PageSourceSearch

https://koloapp.in/_next/static/chunks/9687-d052ef4be4a15633.js

js koloapp.in collected 2026-10-01 13:53:44 UTC 220,480 bytes, 47 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9687],{13810:function(e,t,n){n.d(t,{Ry:function(){return u}});var r=new WeakMap,i=new WeakMap,o={},a=0,s=function(e){return e&&(e.host||s(e.parentNode))},l=function(e,t,n,l){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=s(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});o[n]||(o[n]=new WeakMap);var c=o[n],d=[],h=new Set,f=new Set(u),p=function(e){!e||h.has(e)||(h.add(e),p(e.parentNode))};u.forEach(p);var m=function(e){!e||f.has(e)||Array.prototype.forEach.call(e.children,function(e){if(h.has(e))m(e);else try{var t=e.getAttribute(l),o=null!==t&&"false"!==t,a=(r.get(e)||0)+1,s=(c.get(e)||0)+1;r.set(e,a),c.set(e,s),d.push(e),1===a&&o&&i.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(l,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return m(t),h.clear(),a++,function(){d.forEach(function(e){var t=r.get(e)-1,o=c.get(e)-1;r.set(e,t),c.set(e,o),t||(i.has(e)||e.removeAttribute(l),i.delete(e)),o||e.removeAttribute(n)}),--a||(r=new WeakMap,r=new WeakMap,i=new WeakMap,o={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),l(r,i,n,"aria-hidden")):function(){return null}}},26224:function(e,t,n){n.d(t,{Z:function(){return X}});var r,i,o,a,s,l,u,c=n(12933),d=n(14757),h="right-scroll-bar-position",f="width-before-scroll-bar";function p(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var m="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,v=new WeakMap,g=(void 0===r&&(r={}),(void 0===i&&(i=function(e){return e}),o=[],a=!1,s={read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:null},useMedium:function(e){var t=i(e,a);return o.push(t),function(){o=o.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;o.length;){var t=o;o=[],t.forEach(e)}o={push:function(t){return e(t)},filter:function(){return o}}},assignMedium:function(e){a=!0;var t=[];if(o.length){var n=o;o=[],n.forEach(e),t=o}var r=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(r)};i(),o={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),o}}}}).options=(0,c.pi)({async:!0,ssr:!1},r),s),y=function(){},w=d.forwardRef(function(e,t){var n,r,i,o,a=d.useRef(null),s=d.useState({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:y}),l=s[0],u=s[1],h=e.forwardProps,f=e.children,w=e.className,x=e.removeScrollBar,b=e.enabled,S=e.shards,E=e.sideCar,T=e.noRelative,P=e.noIsolation,C=e.inert,M=e.allowPinchZoom,A=e.as,k=e.gapMode,R=(0,c._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=(n=[a,t],r=function(e){return n.forEach(function(t){return p(t,e)})},(i=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,o=i.facade,m(function(){var e=v.get(o);if(e){var t=new Set(e),r=new Set(n),i=o.current;t.forEach(function(e){r.has(e)||p(e,null)}),r.forEach(function(e){t.has(e)||p(e,i)})}v.set(o,n)},[n]),o),j=(0,c.pi)((0,c.pi)({},R),l);return d.createElement(d.Fragment,null,b&&d.createElement(E,{sideCar:g,removeScrollBar:x,shards:S,noRelative:T,noIsolation:P,inert:C,setCallbacks:u,allowPinchZoom:!!M,lockRef:a,gapMode:k}),h?d.cloneElement(d.Children.only(f),(0,c.pi)((0,c.pi)({},j),{ref:D})):d.createElement(void 0===A?"div":A,(0,c.pi)({},j,{className:w,ref:D}),f))});w.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},w.classNames={fullWidth:f,zeroRight:h};var x=function(e){var t=e.sideCar,n=(0,c._T)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,(0,c.pi)({},n))};
1x.isSideCarExport=!0;var b=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=u||n.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},S=function(){var e=b();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},E=function(){var e=S();return function(t){return e(t.styles,t.dynamic),null}},T={left:0,top:0,right:0,gap:0},P=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[P(n),P(r),P(i)]},M=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return T;var t=C(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},A=E(),k="data-scroll-locked",R=function(e,t,n,r){var i=e.left,o=e.top,a=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(s,"px ").concat(r,";\n  }\n  body[").concat(k,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(a,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(s,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(h," {\n    right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(f," {\n    margin-right: ").concat(s,"px ").concat(r,";\n  }\n  \n  .").concat(h," .").concat(h," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(f," .").concat(f," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(k,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n  }\n")},D=function(){var e=parseInt(document.body.getAttribute(k)||"0",10);return isFinite(e)?e:0},j=function(){d.useEffect(function(){return document.body.setAttribute(k,(D()+1).toString()),function(){var e=D()-1;e<=0?document.body.removeAttribute(k):document.body.setAttribute(k,e.toString())}},[])},L=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;j();var o=d.useMemo(function(){return M(i)},[i]);return d.createElement(A,{styles:R(o,!t,i,n?"":"!important")})},V=!1;if("undefined"!=typeof window)try{var N=Object.defineProperty({},"passive",{get:function(){return V=!0,!0}});window.addEventListener("test",N,N),window.removeEventListener("test",N,N)}catch(e){V=!1}var O=!!V&&{passive:!1},F=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},I=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),B(e,r)){var i=$(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},B=function(e,t){return"v"===e?F(t,"overflowY"):F(t,"overflowX")},$=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},W=function(e,t,n,r,i){var o,a=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=a*r,l=n.target,u=t.contains(l),c=!1,d=s>0,h=0,f=0;do{if(!l)break;var p=$(e,l),m=p[0],v=p[1]-p[2]-a*m;(m||v)&&B(e,l)&&(h+=v,f+=m);var g=l.parentNode;l=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(h)||!i&&s>h)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-s>f)&&(c=!0),c},_=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},U=function(e){return[e.deltaX,e.deltaY]},H=function(e){return e&&"current"in e?e.current:e},Z=0,z=[],Y=(l=function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),i=d.use
1State(Z++)[0],o=d.useState(E)[0],a=d.useRef(e);d.useEffect(function(){a.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,c.ev)([e.lockRef.current],(e.shards||[]).map(H),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var s=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!a.current.allowPinchZoom;var i,o=_(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var h=I(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=I(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(l||u)&&(r.current=i),!i)return!0;var f=r.current||i;return W(f,t,e,"h"===f?l:u,!0)},[]),l=d.useCallback(function(e){if(z.length&&z[z.length-1]===o){var n="deltaY"in e?U(e):_(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(H).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?s(e,i[0]):!a.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),u=d.useCallback(function(e,n,r,i){var o={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),h=d.useCallback(function(e){n.current=_(e),r.current=void 0},[]),f=d.useCallback(function(t){u(t.type,U(t),t.target,s(t,e.lockRef.current))},[]),p=d.useCallback(function(t){u(t.type,_(t),t.target,s(t,e.lockRef.current))},[]);d.useEffect(function(){return z.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,O),document.addEventListener("touchmove",l,O),document.addEventListener("touchstart",h,O),function(){z=z.filter(function(e){return e!==o}),document.removeEventListener("wheel",l,O),document.removeEventListener("touchmove",l,O),document.removeEventListener("touchstart",h,O)}},[]);var m=e.removeScrollBar,v=e.inert;return d.createElement(d.Fragment,null,v?d.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?d.createElement(L,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},g.useMedium(l),x),K=d.forwardRef(function(e,t){return d.createElement(w,(0,c.pi)({},e,{ref:t,sideCar:Y}))});K.classNames=w.classNames;var X=K},91785:function(e,t,n){n.d(t,{Z:function(){return d}});var r=n(14757);/**
2 * @license lucide-react v0.539.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */let i=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),a=e=>{let t=o(e);return t.charAt(0).toUpperCase()+t.slice(1)},s=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()},l=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};/**
7 * @license lucide-react v0.539.0 - ISC
8 *
9 * This source code is licensed under the ISC license.
10 * See the LICENSE file in the root directory of this source tree.
11 */var u={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12 * @license lucide-react v0.539.0 - ISC
13 *
14 * This source code is licensed under the ISC license.
15 * See the LICENSE file in the root directory of this source tree.
16 */let c=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:i=24,strokeWidth:o=2,absoluteStrokeWidth:a,className:c="",children:d,iconNode:h,...f}=e;return(0,r.createElement)("svg",{ref:t,...u,width:i,height:i,stroke:n,strokeWidth:a?24*Number(o)/Number(i):o,className:s("lucide",c),...!d&&!l(f)&&{"aria-hidden":"true"},...f},[...h.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(d)?d:[d]])}),d=(e,t)=>{let n=(0,r.forwardRef)((n,o)=>{let{className:l,...u}=n;return(0,r.createElement)(c,{ref:o,iconNode:t,className:s("lucide-".concat(i(a(e))),"lucide-".concat(e),l),...u})});return n.displayName=a(e),n}},24700:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},36224:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("award",[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]])},18607:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]])},73548:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]])},86174:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},51574:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},64109:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},94231:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},1469:function(e,t,n){n.d(t,{Z:function(){return r}});
16let r=(0,n(91785).Z)("clipboard",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]])},52153:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]])},9014:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("dollar-sign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]])},49210:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("file-text",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]])},62909:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("indian-rupee",[["path",{d:"M6 3h12",key:"ggurg9"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"m6 13 8.5 8",key:"u1kupk"}],["path",{d:"M6 13h3",key:"wdp6ag"}],["path",{d:"M9 13c6.667 0 6.667-10 0-10",key:"1nkvk2"}]])},75823:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},48034:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]])},12317:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]])},27214:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("phone",[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]])},19493:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},58948:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]])},85416:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
16],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]])},91768:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},92278:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]])},81019:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("timer-reset",[["path",{d:"M10 2h4",key:"n1abiw"}],["path",{d:"M12 14v-4",key:"1evpnu"}],["path",{d:"M4 13a8 8 0 0 1 8-7 8 8 0 1 1-5.3 14L4 17.6",key:"1ts96g"}],["path",{d:"M9 17H4v5",key:"8t5av"}]])},88880:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("trending-up",[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]])},42903:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]])},13463:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("upload",[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]])},20416:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]])},96234:function(e,t,n){n.d(t,{Z:function(){return r}});let r=(0,n(91785).Z)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},92706:function(e,t,n){n.d(t,{x8:function(){return eo},VY:function(){return en},dk:function(){return ei},aV:function(){return et},h_:function(){return ee},fC:function(){return Q},Dx:function(){return er}});var r=n(14757);function i(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function a(...e){return r.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}(...e),e)}var s=n(34906),l=n(65020),u=n(53476),c=n(22257),d=n(48599),h=n(70103),f=globalThis?.document?r.useLayoutEffect:()=>{},p=e=>{let t,n;let{present:i,children:o}=e,s=function(e){var t,n;let[i,o]=r.useState(),a=r.useRef(null),s=r.useRef(e),l=r.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=m(a.current);l.current="mounted"===u?e:"none"},[u]),f(()=>{let t=a.current,n=s.current;if(n!==e){let r=l.current,i=m(t);e?c("MOUNT"):"none"===i||t?.display==="none"?c("UNMOUNT"):n&&r!==i?c("ANIMATION_OUT"):c("UNMOUNT"),s.current=e}},[e,c]),f(()=>{if(i){let e;let t=i.ownerDocument.defaultView??window,n=n=>{let r=m(a.current).includes(n.animationName);if(n.target===i&&r&&(c("ANIMATION_END"),!s.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},r=e=>{e.target===i&&(l.current=m(a.current))};return i.addEventListener("animationstart",r),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",r),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}c("ANIMATION_END")},[i,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:r.useCallback(e=>{a.current=e?getComputedStyle(e):null,o(e)},[])}}(i),l="function"==typeof o?o({present:s.isPresent}):r.Children.only(o),u=a(s.ref,(t=Object.getOwnPropertyDescriptor(l.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?l.ref:(t=Object.getOwnPropertyDescriptor(l,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?l.props.ref:l.props.ref||l.ref);return"function"==typeof o||s.isPresent?r.cloneElement(l,{ref:u}):null};function m(e){return e?.animationName||"none"}p.displayName="Presence",n(66397);var v=n(64306),g=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
16{let n=(0,v.Z8)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e,a=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),y=n(44780),w=n(26224),x=n(13810),b="Dialog",[S,E]=function(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=r.createContext(i),a=n.length;n=[...n,i];let l=t=>{let{scope:n,children:i,...l}=t,u=n?.[e]?.[a]||o,c=r.useMemo(()=>l,Object.values(l));return(0,s.jsx)(u.Provider,{value:c,children:i})};return l.displayName=t+"Provider",[l,function(n,s){let l=s?.[e]?.[a]||o,u=r.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}(b),[T,P]=S(b),C=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:a,modal:c=!0}=e,d=r.useRef(null),h=r.useRef(null),[f,p]=(0,u.T)({prop:i,defaultProp:o??!1,onChange:a,caller:b});return(0,s.jsx)(T,{scope:t,triggerRef:d,contentRef:h,contentId:(0,l.M)(),titleId:(0,l.M)(),descriptionId:(0,l.M)(),open:f,onOpenChange:p,onOpenToggle:r.useCallback(()=>p(e=>!e),[p]),modal:c,children:n})};C.displayName=b;var M="DialogTrigger";r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=P(M,n),l=a(t,o.triggerRef);return(0,s.jsx)(g.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Y(o.open),...r,ref:l,onClick:i(e.onClick,o.onOpenToggle)})}).displayName=M;var A="DialogPortal",[k,R]=S(A,{forceMount:void 0}),D=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:o}=e,a=P(A,t);return(0,s.jsx)(k,{scope:t,forceMount:n,children:r.Children.map(i,e=>(0,s.jsx)(p,{present:n||a.open,children:(0,s.jsx)(h.h,{asChild:!0,container:o,children:e})}))})};D.displayName=A;var j="DialogOverlay",L=r.forwardRef((e,t)=>{let n=R(j,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=P(j,e.__scopeDialog);return o.modal?(0,s.jsx)(p,{present:r||o.open,children:(0,s.jsx)(N,{...i,ref:t})}):null});L.displayName=j;var V=(0,v.Z8)("DialogOverlay.RemoveScroll"),N=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=P(j,n);return(0,s.jsx)(w.Z,{as:V,allowPinchZoom:!0,shards:[i.contentRef],children:(0,s.jsx)(g.div,{"data-state":Y(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),O="DialogContent",F=r.forwardRef((e,t)=>{let n=R(O,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=P(O,e.__scopeDialog);return(0,s.jsx)(p,{present:r||o.open,children:o.modal?(0,s.jsx)(I,{...i,ref:t}):(0,s.jsx)(B,{...i,ref:t})})});F.displayName=O;var I=r.forwardRef((e,t)=>{let n=P(O,e.__scopeDialog),o=r.useRef(null),l=a(t,n.contentRef,o);return r.useEffect(()=>{let e=o.current;if(e)return(0,x.Ry)(e)},[]),(0,s.jsx)($,{...e,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:i(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:i(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:i(e.onFocusOutside,e=>e.preventDefault())})}),B=r.forwardRef((e,t)=>{let n=P(O,e.__scopeDialog),i=r.useRef(!1),o=r.useRef(!1);return(0,s.jsx)($,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(i.current||n.triggerRef.current?.focus(),t.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(i.current=!0,"pointerdown"!==t.detail.originalEvent.type||(o.current=!0));let r=t.target;n.triggerRef.current?.contains(r)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),$=r.forwardRef((e,t)=>
16{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:l,...u}=e,h=P(O,n),f=r.useRef(null),p=a(t,f);return(0,y.EW)(),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.M,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:l,children:(0,s.jsx)(c.XB,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Y(h.open),...u,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(G,{titleId:h.titleId}),(0,s.jsx)(J,{contentRef:f,descriptionId:h.descriptionId})]})]})}),W="DialogTitle",_=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=P(W,n);return(0,s.jsx)(g.h2,{id:i.titleId,...r,ref:t})});_.displayName=W;var U="DialogDescription",H=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,i=P(U,n);return(0,s.jsx)(g.p,{id:i.descriptionId,...r,ref:t})});H.displayName=U;var Z="DialogClose",z=r.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=P(Z,n);return(0,s.jsx)(g.button,{type:"button",...r,ref:t,onClick:i(e.onClick,()=>o.onOpenChange(!1))})});function Y(e){return e?"open":"closed"}z.displayName=Z;var K="DialogTitleWarning",[X,q]=function(e,t){let n=r.createContext(t),i=e=>{let{children:t,...i}=e,o=r.useMemo(()=>i,Object.values(i));return(0,s.jsx)(n.Provider,{value:o,children:t})};return i.displayName=e+"Provider",[i,function(i){let o=r.useContext(n);if(o)return o;if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}(K,{contentName:O,titleName:W,docsSlug:"dialog"}),G=({titleId:e})=>{let t=q(K),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
17
18If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
19
20For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return r.useEffect(()=>{e&&!document.getElementById(e)&&console.error(n)},[n,e]),null},J=({contentRef:e,descriptionId:t})=>{let n=q("DialogDescriptionWarning"),i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${n.contentName}}.`;return r.useEffect(()=>{let n=e.current?.getAttribute("aria-describedby");t&&n&&!document.getElementById(t)&&console.warn(i)},[i,e,t]),null},Q=C,ee=D,et=L,en=F,er=_,ei=H,eo=z},22257:function(e,t,n){n.d(t,{XB:function(){return m}});var r,i=n(14757);function o(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var a=n(66397),s=n(64306),l=n(34906),u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,s.Z8)(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:i,...o}=e,a=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,l.jsx)(a,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function d(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=c(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():c(e[t],null)}}}}(...e),e)}function h(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var f="dismissableLayer.update",p=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=i.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:m,onDismiss:y,...w}=e,x=i.useContext(p),[b,S]=i.useState(null),E=b?.ownerDocument??globalThis?.document,[,T]=i.useState({}),P=d(t,e=>S(e)),C=Array.from(x.layers),[M]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),A=C.indexOf(M),k=b?C.indexOf(b):-1,R=x.layersWithOutsidePointerEventsDisabled.size>0,D=k>=A,j=function(e,t=globalThis?.document){let n=h(e),r=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){g("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...x.branches].some(e=>e.contains(t));!D||n||(s?.(e),m?.(e),e.defaultPrevented||y?.())},E),L=function(e,t=globalThis?.document){let n=h(e),r=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!r.current&&g("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...x.branches].some(e=>e.contains(t))||(c?.(e),m?.(e),e.defaultPrevented||y?.())},E);return!function(e,t=globalThis?.document){let n=function(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{k!==x.layers.size-1||(a?.(e),!e.defaultPrevented&&y&&(e.preventDefault(),y()))},E),i.useEffect(()=>{if(b)return n&&(0===x.layersWithOutsidePointerEventsDisabled.size&&(r=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(b)),x.layers.add(b),v(
20),()=>{n&&1===x.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=r)}},[b,E,n,x]),i.useEffect(()=>()=>{b&&(x.layers.delete(b),x.layersWithOutsidePointerEventsDisabled.delete(b),v())},[b,x]),i.useEffect(()=>{let e=()=>T({});return document.addEventListener(f,e),()=>document.removeEventListener(f,e)},[]),(0,l.jsx)(u.div,{...w,ref:P,style:{pointerEvents:R?D?"auto":"none":void 0,...e.style},onFocusCapture:o(e.onFocusCapture,L.onFocusCapture),onBlurCapture:o(e.onBlurCapture,L.onBlurCapture),onPointerDownCapture:o(e.onPointerDownCapture,j.onPointerDownCapture)})});function v(){let e=new CustomEvent(f);document.dispatchEvent(e)}function g(e,t,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});(t&&i.addEventListener(e,t,{once:!0}),r)?i&&a.flushSync(()=>i.dispatchEvent(o)):i.dispatchEvent(o)}m.displayName="DismissableLayer",i.forwardRef((e,t)=>{let n=i.useContext(p),r=i.useRef(null),o=d(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,l.jsx)(u.div,{...e,ref:o})}).displayName="DismissableLayerBranch"},44780:function(e,t,n){n.d(t,{EW:function(){return o}});var r=n(14757),i=0;function o(){r.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??a()),document.body.insertAdjacentElement("beforeend",e[1]??a()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function a(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},48599:function(e,t,n){let r;n.d(t,{M:function(){return f}});var i=n(14757);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}n(66397);var a=n(64306),s=n(34906),l=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,a.Z8)(`Primitive.${t}`),r=i.forwardRef((e,r)=>{let{asChild:i,...o}=e,a=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...o,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function u(e){let t=i.useRef(e);return i.useEffect(()=>{t.current=e}),i.useMemo(()=>(...e)=>t.current?.(...e),[])}var c="focusScope.autoFocusOnMount",d="focusScope.autoFocusOnUnmount",h={bubbles:!1,cancelable:!0},f=i.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:f,...y}=e,[w,x]=i.useState(null),b=u(a),S=u(f),E=i.useRef(null),T=function(...e){return i.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}(...e),e)}(t,e=>x(e)),P=i.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;i.useEffect(()=>{if(r){let e=function(e){if(P.paused||!w)return;let t=e.target;w.contains(t)?E.current=t:v(E.current,{select:!0})},t=function(e){if(P.paused||!w)return;let t=e.relatedTarget;null===t||w.contains(t)||v(E.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&v(w)});return w&&n.observe(w,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,w,P.paused]),i.useEffect(()=>{if(w){g.add(P);let e=document.activeElement;if(!w.contains(e)){let t=new CustomEvent(c,h);w.addEventListener(c,b),w.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(v(r,{select:t}),document.activeElement!==n)return}(p(w).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&v(w))}return()=>{w.removeEventListener(c,b),setTimeout(()=>{let t=new CustomEvent(d,h);w.addEventListener(d,S),w.dispatchEvent(t),t.defaultPrevented||v(e??document.body,{select:!0}),w.removeEventListener(d,S),g.remove(P)},0)}}},[w,b,S,P]);let C=i.useCallback(e=>{if(!n&&!r||P.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,o]=function(e){let t=p(e);return[m(t,e),m(t.reverse(),e)]}(t);r&&o?e.shiftKey||i!==o?e.shiftKey&&i===r&&(e.preventDefault(),n&&v(o,{select:!0})):(e.preventDefault(),n&&v(r,{select:!0})):i===t&&e.preventDefault()}},[n,r,P.paused]);return(0,s.jsx)(l.div,{tabIndex:-1,...y,ref:T,onKeyDown:C})});function p(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function m(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function v(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}f.displayName="FocusScope";var g=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=y(r,e)).unshift(e)},remove(e){r=y(r,e),r[0]?.resume()}});function y(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},65020:function(e,t,n){n.d(t,{M:function(){return l}});var r=n(14757),i=n.t(r,2),o=globalThis?.document?r.useLayoutEffect:()=>{},a=i[" useId ".trim().toString()]||(()=>void 0),s=0;function l(e){let[t,n]=r.useState(a());return o(()=>{e||n(e=>e??String(s++))},[e]),e||(t?`radix-${t}`:"")}},72025:function(e,t,n){n.d(t,{f:function(){return l}});var r=n(14757);n(66397);var i=n(64306),o=n(34906),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
20{let n=(0,i.Z8)(`Primitive.${t}`),a=r.forwardRef((e,r)=>{let{asChild:i,...a}=e,s=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(s,{...a,ref:r})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),s=r.forwardRef((e,t)=>(0,o.jsx)(a.label,{...e,ref:t,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var l=s},70103:function(e,t,n){n.d(t,{h:function(){return u}});var r=n(14757),i=n(66397),o=n(64306),a=n(34906),s=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,o.Z8)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e,s=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(s,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),l=globalThis?.document?r.useLayoutEffect:()=>{},u=r.forwardRef((e,t)=>{let{container:n,...o}=e,[u,c]=r.useState(!1);l(()=>c(!0),[]);let d=n||u&&globalThis?.document?.body;return d?i.createPortal((0,a.jsx)(s.div,{...o,ref:t}),d):null});u.displayName="Portal"},87292:function(e,t,n){n.d(t,{VY:function(){return np},JO:function(){return nh},ck:function(){return nv},wU:function(){return ny},eT:function(){return ng},h_:function(){return nf},fC:function(){return nu},$G:function(){return nx},u_:function(){return nw},xz:function(){return nc},B4:function(){return nd},l_:function(){return nm}});var r=n(14757),i=n(66397);function o(e,[t,n]){return Math.min(n,Math.max(t,e))}function a(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}var s=n(34906);function l(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function u(...e){return r.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=l(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():l(e[t],null)}}}}(...e),e)}var c=n(64306);function d(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function h(...e){return r.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=d(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():d(e[t],null)}}}}(...e),e)}var f=r.createContext(void 0),p=n(22257),m=n(44780),v=n(48599),g=n(65020);let y=["top","right","bottom","left"],w=Math.min,x=Math.max,b=Math.round,S=Math.floor,E=e=>({x:e,y:e}),T={left:"right",right:"left",bottom:"top",top:"bottom"},P={start:"end",end:"start"};function C(e,t){return"function"==typeof e?e(t):e}function M(e){return e.split("-")[0]}function A(e){return e.split("-")[1]}function k(e){return"x"===e?"y":"x"}function R(e){return"y"===e?"height":"width"}let D=new Set(["top","bottom"]);function j(e){return D.has(M(e))?"y":"x"}function L(e){return e.replace(/start|end/g,e=>P[e])}let V=["left","right"],N=["right","left"],O=["top","bottom"],F=["bottom","top"];function I(e){return e.replace(/left|right|bottom|top/g,e=>T[e])}function B(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function $(e){let{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 W(e,t,n){let r,{reference:i,floating:o}=e,a=j(t),s=k(j(t)),l=R(s),u=M(t),c="y"===a,d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,f=i[l]/2-o[l]/2;switch(u){case"top":r={x:d,y:i.y-o.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:h};break;case"left":r={x:i.x-o.width,y:h};break;default:r={x:i.x,y:i.y}}switch(A(t)){case"start":r[s]-=f*(n&&c?-1:1);break;case"end":r[s]+=f*(n&&c?-1:1)}return r}let _=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await (null==a.isRTL?void 0:a.isRTL(t)),u=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=W(u,r,l),h=r,f={},p=0;for(let n=0;n<s.length;n++){let{name:o,fn:m}=s[n],{x:v,y:g,data:y,reset:w}=await m({x:c,y:d,initialPlacement:r,placement:h,strategy:i,middlewareData:f,re
20cts:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=g?g:d,f={...f,[o]:{...f[o],...y}},w&&p<=50&&(p++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(u=!0===w.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):w.rects),{x:c,y:d}=W(u,h,l)),n=-1)}return{x:c,y:d,placement:h,strategy:i,middlewareData:f}};async function U(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:h=!1,padding:f=0}=C(t,e),p=B(f),m=s[h?"floating"===d?"reference":"floating":d],v=$(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),g="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await (null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await (null==o.isElement?void 0:o.isElement(y))&&await (null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},x=$(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:l}):g);return{top:(v.top-x.top+p.top)/w.y,bottom:(x.bottom-v.bottom+p.bottom)/w.y,left:(v.left-x.left+p.left)/w.x,right:(x.right-v.right+p.right)/w.x}}function H(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Z(e){return y.some(t=>e[t]>=0)}let z=new Set(["left","top"]);async function Y(e,t){let{placement:n,platform:r,elements:i}=e,o=await (null==r.isRTL?void 0:r.isRTL(i.floating)),a=M(n),s=A(n),l="y"===j(n),u=z.has(a)?-1:1,c=o&&l?-1:1,d=C(t,e),{mainAxis:h,crossAxis:f,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(f="end"===s?-1*p:p),l?{x:f*c,y:h*u}:{x:h*u,y:f*c}}function K(){return"undefined"!=typeof window}function X(e){return J(e)?(e.nodeName||"").toLowerCase():"#document"}function q(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function G(e){var t;return null==(t=(J(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function J(e){return!!K()&&(e instanceof Node||e instanceof q(e).Node)}function Q(e){return!!K()&&(e instanceof Element||e instanceof q(e).Element)}function ee(e){return!!K()&&(e instanceof HTMLElement||e instanceof q(e).HTMLElement)}function et(e){return!!K()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof q(e).ShadowRoot)}let en=new Set(["inline","contents"]);function er(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=ep(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!en.has(i)}let ei=new Set(["table","td","th"]),eo=[":popover-open",":modal"];function ea(e){return eo.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let es=["transform","translate","scale","rotate","perspective"],el=["transform","translate","scale","rotate","perspective","filter"],eu=["paint","layout","strict","content"];function ec(e){let t=ed(),n=Q(e)?ep(e):e;return es.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||el.some(e=>(n.willChange||"").includes(e))||eu.some(e=>(n.contain||"").includes(e))}function ed(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let eh=new Set(["html","body","#document"]);function ef(e){return eh.has(X(e))}function ep(e){return q(e).getComputedStyle(e)}function em(e){return Q(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ev(e){if("html"===X(e))return e;let t=e.assignedSlot||e.parentNode||et(e)&&e.host||G(e);return et(t)?t.host:t}function eg(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=ev(t);return ef(n)?t.ownerDocument?t.ownerDocument.body:t.body:ee(n)&&er(n)?n:e(n)}(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=q(i);if(o){let e=ey(a);
20return t.concat(a,a.visualViewport||[],er(i)?i:[],e&&n?eg(e):[])}return t.concat(i,eg(i,[],n))}function ey(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ew(e){let t=ep(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ee(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=b(n)!==o||b(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function ex(e){return Q(e)?e:e.contextElement}function eb(e){let t=ex(e);if(!ee(t))return E(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=ew(t),a=(o?b(n.width):n.width)/r,s=(o?b(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let eS=E(0);function eE(e){let t=q(e);return ed()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:eS}function eT(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),a=ex(e),s=E(1);t&&(r?Q(r)&&(s=eb(r)):s=eb(e));let l=(void 0===(i=n)&&(i=!1),r&&(!i||r===q(a))&&i)?eE(a):E(0),u=(o.left+l.x)/s.x,c=(o.top+l.y)/s.y,d=o.width/s.x,h=o.height/s.y;if(a){let e=q(a),t=r&&Q(r)?q(r):r,n=e,i=ey(n);for(;i&&r&&t!==n;){let e=eb(i),t=i.getBoundingClientRect(),r=ep(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,h*=e.y,u+=o,c+=a,i=ey(n=q(i))}}return $({width:d,height:h,x:u,y:c})}function eP(e,t){let n=em(e).scrollLeft;return t?t.left+n:eT(G(e)).left+n}function eC(e,t,n){void 0===n&&(n=!1);let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:eP(e,r)),y:r.top+t.scrollTop}}let eM=new Set(["absolute","fixed"]);function eA(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=q(e),r=G(e),i=n.visualViewport,o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;let e=ed();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){let t=G(e),n=em(e),r=e.ownerDocument.body,i=x(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=x(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+eP(e),s=-n.scrollTop;return"rtl"===ep(r).direction&&(a+=x(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(G(e));else if(Q(t))r=function(e,t){let n=eT(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=ee(e)?eb(e):E(1),a=e.clientWidth*o.x;return{width:a,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{let n=eE(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return $(r)}function ek(e){return"static"===ep(e).position}function eR(e,t){if(!ee(e)||"fixed"===ep(e).position)return null;if(t)return t(e);let n=e.offsetParent;return G(e)===n&&(n=n.ownerDocument.body),n}function eD(e,t){var n;let r=q(e);if(ea(e))return r;if(!ee(e)){let t=ev(e);for(;t&&!ef(t);){if(Q(t)&&!ek(t))return t;t=ev(t)}return r}let i=eR(e,t);for(;i&&(n=i,ei.has(X(n)))&&ek(i);)i=eR(i,t);return i&&ef(i)&&ek(i)&&!ec(i)?r:i||function(e){let t=ev(e);for(;ee(t)&&!ef(t);){if(ec(t))return t;if(ea(t))break;t=ev(t)}return null}(e)||r}let ej=async function(e){let t=this.getOffsetParent||eD,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=ee(t),i=G(t),o="fixed"===n,a=eT(e,!0,o,t),s={scrollLeft:0,scrollTop:0},l=E(0);if(r||!r&&!o){if(("body"!==X(t)||er(i))&&(s=em(t)),r){let e=eT(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=eP(i))}o&&!r&&i&&(l.x=eP(i));let u=!i||r||o?E(0):eC(i,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},eL={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,o="fixed"===i,a=G(r),s=!!t&&ea(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},u=E(1),c=E(0),d=ee(r);if((d||!d&&!o)&&(("body"!==X(r)||er(a))&&(l=em(r)),ee(r))){let e=eT(r);u=eb(r),c.x=e.x+r.clientLeft,c.y=e.y+r.clientTop}let h=!a||d||o?E(0):eC(a,l,!0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+h.x,y:n.y*u.y-l.scrollTop*u.y+c.y+h.y}},getDocumentElement:G,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,o=[..."clippingAncestors"===n?ea(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=eg(e,[],!1).filter(e=>Q(e)&&"body"!==X(e)),i=null,o="fixed"===ep(e).position,a=o?ev(e):e;for(;Q(a)&&!ef(a);){let t=ep(a),n=ec(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&!!i&&eM.has(i.position)||er(a)&&!n&&function e(t,n){let r=ev(t);return!(r===n||!Q(r)||ef(r))&&("fixed"===ep(r).position||e(r,n))}(e,a))?r=r.filter(e=>e!==a):i=t,a=ev(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce((e,n)=>{let r=eA(t,n,i);return e.top=x(r.top,e.top),e.right=w(r.right,e.right),e.bottom=w(r.bottom,e.bottom),e.left=x(r.left,e.left),e},eA(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:eD,getElementRects:ej,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ew(e);return{width:t,height:n}},getScale:eb,isElement:Q,isRTL:function(e){return"rtl"===ep(e).direction}};function eV(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eN=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:o,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=C(e,t)||{};if(null==u)return{};let d=B(c),h={x:n,y:r},f=k(j(i)),p=R(f),m=await a.getDimensions(u),v="y"===f,g=v?"clientHeight":"clientWidth",y=o.reference[p]+o.reference[f]-h[f]-o.floating[p],b=h[f]-o.reference[f],S=await (null==a.getOffsetParent?void 0:a.getOffsetParent(u)),E=S?S[g]:0;E&&await (null==a.isElement?void 0:a.isElement(S))||(E=s.floating[g]||o.floating[p]);let T=E/2-m[p]/2-1,P=w(d[v?"top":"left"],T),M=w(d[v?"bottom":"right"],T),D=E-m[p]-M,L=E/2-m[p]/2+(y/2-b/2),V=x(P,w(L,D)),N=!l.arrow&&null!=A(i)&&L!==V&&o.reference[p]/2-(L<P?P:M)-m[p]/2<0,O=N?L<P?L-P:L-D:0;return{[f]:h[f]+O,data:{[f]:V,centerOffset:L-V-O,...N&&{alignmentOffset:O}},reset:N}}}),eO=(e,t,n)=>{let r=new Map,i={platform:eL,...n},o={...i.platform,_c:r};return _(e,t,{...i,platform:o})};var eF="undefined"!=typeof document?r.useLayoutEffect:function(){};function eI(e,t){let n,r,i;if(e===t)return!0;
20if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!eI(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!eI(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function eB(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function e$(e,t){let n=eB(e);return Math.round(t*n)/n}function eW(e){let t=r.useRef(e);return eF(()=>{t.current=e}),t}let e_=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eN({element:n.current,padding:r}).fn(t):{}:n?eN({element:n,padding:r}).fn(t):{}}}),eU=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,r;let{x:i,y:o,placement:a,middlewareData:s}=e,l=await Y(e,n);return a===(null==(t=s.offset)?void 0:t.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}),options:[e,t]}},eH=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:r,placement:i}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=C(n,e),u={x:t,y:r},c=await U(e,l),d=j(M(i)),h=k(d),f=u[h],p=u[d];if(o){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=f+c[e],r=f-c[t];f=x(n,w(f,r))}if(a){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",n=p+c[e],r=p-c[t];p=x(n,w(p,r))}let m=s.fn({...e,[h]:f,[d]:p});return{...m,data:{x:m.x-t,y:m.y-r,enabled:{[h]:o,[d]:a}}}}}),options:[e,t]}},eZ=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:r,placement:i,rects:o,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=C(n,e),c={x:t,y:r},d=j(i),h=k(d),f=c[h],p=c[d],m=C(s,e),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+v.mainAxis,n=o.reference[h]+o.reference[e]-v.mainAxis;f<t?f=t:f>n&&(f=n)}if(u){var g,y;let e="y"===h?"width":"height",t=z.has(M(i)),n=o.reference[d]-o.floating[e]+(t&&(null==(g=a.offset)?void 0:g[d])||0)+(t?0:v.crossAxis),r=o.reference[d]+o.reference[e]+(t?0:(null==(y=a.offset)?void 0:y[d])||0)-(t?v.crossAxis:0);p<n?p=n:p>r&&(p=r)}return{[h]:f,[d]:p}}}),options:[e,t]}},ez=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,r,i,o,a;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:h}=e,{mainAxis:f=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0,...w}=C(n,e);if(null!=(t=l.arrow)&&t.alignmentOffset)return{};let x=M(s),b=j(c),S=M(c)===c,E=await (null==d.isRTL?void 0:d.isRTL(h.floating)),T=m||(S||!y?[I(c)]:function(e){let t=I(e);return[L(e),t,L(t)]}(c)),P="none"!==g;!m&&P&&T.push(...function(e,t,n,r){let i=A(e),o=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?N:V;return t?V:N;case"left":case"right":return t?O:F;default:return[]}}(M(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(L)))),o}(c,y,g,E));let D=[c,...T],B=await U(e,w),$=[],W=(null==(r=l.flip)?void 0:r.overflows)||[];if(f&&$.push(B[x]),p){let e=function(e,t,n){void 0===n&&(n=!1);let r=A(e),i=k(j(e)),o=R(i),a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=I(a)),[a,I(a)]}(s,u,E);$.push(B[e[0]],B[e[1]])}if(W=[...W,{placement:s,overflows:$}],!$.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=D[e];if(t&&(!("alignment"===p&&b!==j(t))||W.every(e=>j(e.placement)!==b||e.overflows[0]>0)))return{data:{index:e,overflows:W},reset:{placement:t}};let n=null==(o=W.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(v){case"bestFit":{let e=null==(a=W.filter(e=>{if(P){let t=j(e.placement);return t===b||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>
20e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:a[0];e&&(n=e);break}case"initialPlacement":n=c}if(s!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},eY=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,r;let i,o;let{placement:a,rects:s,platform:l,elements:u}=e,{apply:c=()=>{},...d}=C(n,e),h=await U(e,d),f=M(a),p=A(a),m="y"===j(a),{width:v,height:g}=s.floating;"top"===f||"bottom"===f?(i=f,o=p===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(o=f,i="end"===p?"top":"bottom");let y=g-h.top-h.bottom,b=v-h.left-h.right,S=w(g-h[i],y),E=w(v-h[o],b),T=!e.middlewareData.shift,P=S,k=E;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(k=b),null!=(r=e.middlewareData.shift)&&r.enabled.y&&(P=y),T&&!p){let e=x(h.left,0),t=x(h.right,0),n=x(h.top,0),r=x(h.bottom,0);m?k=v-2*(0!==e||0!==t?e+t:x(h.left,h.right)):P=g-2*(0!==n||0!==r?n+r:x(h.top,h.bottom))}await c({...e,availableWidth:k,availableHeight:P});let R=await l.getDimensions(u.floating);return v!==R.width||g!==R.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},eK=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:r="referenceHidden",...i}=C(n,e);switch(r){case"referenceHidden":{let n=H(await U(e,{...i,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:Z(n)}}}case"escaped":{let n=H(await U(e,{...i,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:Z(n)}}}default:return{}}}}),options:[e,t]}},eX=(e,t)=>({...e_(e),options:[e,t]});var eq=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,c.Z8)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e,a=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),eG=r.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...o}=e;return(0,s.jsx)(eq.svg,{...o,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,s.jsx)("polygon",{points:"0,0 30,0 15,10"})})});function eJ(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function eQ(...e){return r.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=eJ(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():eJ(e[t],null)}}}}(...e),e)}eG.displayName="Arrow";var e0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,c.Z8)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e,a=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),e1=globalThis?.document?r.useLayoutEffect:()=>{},e2=globalThis?.document?r.useLayoutEffect:()=>{},e5="Popper",[e3,e4]=function(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=r.createContext(i),a=n.length;n=[...n,i];let l=t=>{let{scope:n,children:i,...l}=t,u=n?.[e]?.[a]||o,c=r.useMemo(()=>l,Object.values(l));return(0,s.jsx)(u.Provider,{value:c,children:i})};return l.displayName=t+"Provider",[l,function(n,s){let l=s?.[e]?.[a]||o,u=r.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}(e5),[e7,e6]=e3(e5),e9=e=>{let{__scopePopper:t,children:n}=e,[i,o]=r.useState(null);return(0,s.jsx)(e7,{scope:t,anchor:i,onAnchorChange:o,children:n})};e9.displayName=e5;var e8="PopperAnchor",te=r.forwardRef((e,t)=>
20{let{__scopePopper:n,virtualRef:i,...o}=e,a=e6(e8,n),l=r.useRef(null),u=eQ(t,l);return r.useEffect(()=>{a.onAnchorChange(i?.current||l.current)}),i?null:(0,s.jsx)(e0.div,{...o,ref:u})});te.displayName=e8;var tt="PopperContent",[tn,tr]=e3(tt),ti=r.forwardRef((e,t)=>{let{__scopePopper:n,side:o="bottom",sideOffset:a=0,align:l="center",alignOffset:u=0,arrowPadding:c=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:f=0,sticky:p="partial",hideWhenDetached:m=!1,updatePositionStrategy:v="optimized",onPlaced:g,...y}=e,b=e6(tt,n),[E,T]=r.useState(null),P=eQ(t,e=>T(e)),[C,M]=r.useState(null),A=function(e){let[t,n]=r.useState(void 0);return e2(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(C),k=A?.width??0,R=A?.height??0,D="number"==typeof f?f:{top:0,right:0,bottom:0,left:0,...f},j=Array.isArray(h)?h:[h],L=j.length>0,V={padding:D,boundary:j.filter(tl),altBoundary:L},{refs:N,floatingStyles:O,placement:F,isPositioned:I,middlewareData:B}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:s,floating:l}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[h,f]=r.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=r.useState(o);eI(p,o)||m(o);let[v,g]=r.useState(null),[y,w]=r.useState(null),x=r.useCallback(e=>{e!==T.current&&(T.current=e,g(e))},[]),b=r.useCallback(e=>{e!==P.current&&(P.current=e,w(e))},[]),S=s||v,E=l||y,T=r.useRef(null),P=r.useRef(null),C=r.useRef(h),M=null!=c,A=eW(c),k=eW(a),R=eW(d),D=r.useCallback(()=>{if(!T.current||!P.current)return;let e={placement:t,strategy:n,middleware:p};k.current&&(e.platform=k.current),eO(T.current,P.current,e).then(e=>{let t={...e,isPositioned:!1!==R.current};j.current&&!eI(C.current,t)&&(C.current=t,i.flushSync(()=>{f(t)}))})},[p,t,n,k,R]);eF(()=>{!1===d&&C.current.isPositioned&&(C.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[d]);let j=r.useRef(!1);eF(()=>(j.current=!0,()=>{j.current=!1}),[]),eF(()=>{if(S&&(T.current=S),E&&(P.current=E),S&&E){if(A.current)return A.current(S,E,D);D()}},[S,E,D,A,M]);let L=r.useMemo(()=>({reference:T,floating:P,setReference:x,setFloating:b}),[x,b]),V=r.useMemo(()=>({reference:S,floating:E}),[S,E]),N=r.useMemo(()=>{let e={position:n,left:0,top:0};if(!V.floating)return e;let t=e$(V.floating,h.x),r=e$(V.floating,h.y);return u?{...e,transform:"translate("+t+"px, "+r+"px)",...eB(V.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,u,V.floating,h.x,h.y]);return r.useMemo(()=>({...h,update:D,refs:L,elements:V,floatingStyles:N}),[h,D,L,V,N])}({strategy:"fixed",placement:o+("center"!==l?"-"+l:""),whileElementsMounted:(...e)=>(function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,c=ex(e),d=o||a?[...c?eg(c):[],...eg(t)]:[];d.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let h=c&&l?function(e,t){let n,r=null,i=G(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();let u=e.getBoundingClientRect(),{left:c,top:d,width:h,height:f}=u;if(s||t(),!h||!f)return;let p=S(d),m=S(i.clientWidth-(c+h)),v={rootMargin:-p+"px "+-m+"px "+-S(i.clientHeight-(d+f))+"px "+-S(c)+"px",threshold:x(0,w(1,l))||1},g=!0;function y(t){let r=t[0].intersectionRatio;if(r!==l){if(!g)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||eV(u,e.getBoundingClientRect())||a(),g=!1}try{r=new IntersectionObserver(y,{...v,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(y,v)}r.observe(e)}(!0),o}(c,n):null,f=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!u&&p.observe(c),p.observe(t));let m=u?eT(e):null;return u&&function t(){let r=eT(e);m&&!eV(m,r)&&n(),m=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;
20d.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}})(...e,{animationFrame:"always"===v}),elements:{reference:b.anchor},middleware:[eU({mainAxis:a+R,alignmentAxis:u}),d&&eH({mainAxis:!0,crossAxis:!1,limiter:"partial"===p?eZ():void 0,...V}),d&&ez({...V}),eY({...V,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=t.reference,a=e.floating.style;a.setProperty("--radix-popper-available-width",`${n}px`),a.setProperty("--radix-popper-available-height",`${r}px`),a.setProperty("--radix-popper-anchor-width",`${i}px`),a.setProperty("--radix-popper-anchor-height",`${o}px`)}}),C&&eX({element:C,padding:c}),tu({arrowWidth:k,arrowHeight:R}),m&&eK({strategy:"referenceHidden",...V})]}),[$,W]=tc(F),_=function(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}(g);e1(()=>{I&&_?.()},[I,_]);let U=B.arrow?.x,H=B.arrow?.y,Z=B.arrow?.centerOffset!==0,[z,Y]=r.useState();return e1(()=>{E&&Y(window.getComputedStyle(E).zIndex)},[E]),(0,s.jsx)("div",{ref:N.setFloating,"data-radix-popper-content-wrapper":"",style:{...O,transform:I?O.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:z,"--radix-popper-transform-origin":[B.transformOrigin?.x,B.transformOrigin?.y].join(" "),...B.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,s.jsx)(tn,{scope:n,placedSide:$,onArrowChange:M,arrowX:U,arrowY:H,shouldHideArrow:Z,children:(0,s.jsx)(e0.div,{"data-side":$,"data-align":W,...y,ref:P,style:{...y.style,animation:I?void 0:"none"}})})})});ti.displayName=tt;var to="PopperArrow",ta={top:"bottom",right:"left",bottom:"top",left:"right"},ts=r.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=tr(to,n),o=ta[i.placedSide];return(0,s.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,s.jsx)(eG,{...r,ref:t,style:{...r.style,display:"block"}})})});function tl(e){return null!==e}ts.displayName=to;var tu=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,o=i.arrow?.centerOffset!==0,a=o?0:e.arrowWidth,s=o?0:e.arrowHeight,[l,u]=tc(n),c={start:"0%",center:"50%",end:"100%"}[u],d=(i.arrow?.x??0)+a/2,h=(i.arrow?.y??0)+s/2,f="",p="";return"bottom"===l?(f=o?c:`${d}px`,p=`${-s}px`):"top"===l?(f=o?c:`${d}px`,p=`${r.floating.height+s}px`):"right"===l?(f=`${-s}px`,p=o?c:`${h}px`):"left"===l&&(f=`${r.floating.width+s}px`,p=o?c:`${h}px`),{data:{x:f,y:p}}}});function tc(e){let[t,n="center"]=e.split("-");return[t,n]}var td=n(70103),th=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,c.Z8)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e,a=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),tf=n(53476),tp=globalThis?.document?r.useLayoutEffect:()=>{},tm=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,c.Z8)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...o}=e,a=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,s.jsx)(a,{...o,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),tv=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});r.forwardRef((e,t)=>(0,s.jsx)(tm.span,{...e,ref:t,style:{...tv,...e.style}})).displayName="VisuallyHidden";var tg=n(13810),ty=n(26224),tw=[" ","Enter","ArrowUp","ArrowDown"],tx=[" ","Enter"],tb="Select",[tS,tE,tT]=function(e){let t=e+"CollectionProvider",[n,i]=function(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=r.createContext(i),a=n.length;n=[...n,i];let l=t=>{let{scope:n,children:i,...l}=t,u=n?.[e]?.[a]||o,c=r.useMemo(()=>l,Object.values(l));return(0,s.jsx)(u.Provider,{value:c,children:i})};return l.displayName=t+"Provider",[l,function(n,s){let l=s?.[e]?.[a]||o,u=r.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}(t),[o,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=e=>{let{scope:t,children:n}=e,i=r.useRef(null),a=r.useRef(new Map).current;return(0,s.jsx)(o,{scope:t,itemMap:a,collectionRef:i,children:n})};l.displayName=t;let d=e+"CollectionSlot",h=(0,c.Z8)(d),f=r.forwardRef((e,t)=>
20{let{scope:n,children:r}=e,i=u(t,a(d,n).collectionRef);return(0,s.jsx)(h,{ref:i,children:r})});f.displayName=d;let p=e+"CollectionItemSlot",m="data-radix-collection-item",v=(0,c.Z8)(p),g=r.forwardRef((e,t)=>{let{scope:n,children:i,...o}=e,l=r.useRef(null),c=u(t,l),d=a(p,n);return r.useEffect(()=>(d.itemMap.set(l,{ref:l,...o}),()=>void d.itemMap.delete(l))),(0,s.jsx)(v,{[m]:"",ref:c,children:i})});return g.displayName=p,[{Provider:l,Slot:f,ItemSlot:g},function(t){let n=a(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${m}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},i]}(tb),[tP,tC]=function(e,t=[]){let n=[],i=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let o=r.createContext(i),a=n.length;n=[...n,i];let l=t=>{let{scope:n,children:i,...l}=t,u=n?.[e]?.[a]||o,c=r.useMemo(()=>l,Object.values(l));return(0,s.jsx)(u.Provider,{value:c,children:i})};return l.displayName=t+"Provider",[l,function(n,s){let l=s?.[e]?.[a]||o,u=r.useContext(l);if(u)return u;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}(tb,[tT,e4]),tM=e4(),[tA,tk]=tP(tb),[tR,tD]=tP(tb),tj=e=>{let{__scopeSelect:t,children:n,open:i,defaultOpen:o,onOpenChange:a,value:l,defaultValue:u,onValueChange:c,dir:d,name:h,autoComplete:p,disabled:m,required:v,form:y}=e,w=tM(t),[x,b]=r.useState(null),[S,E]=r.useState(null),[T,P]=r.useState(!1),C=function(e){let t=r.useContext(f);return e||t||"ltr"}(d),[M,A]=(0,tf.T)({prop:i,defaultProp:o??!1,onChange:a,caller:tb}),[k,R]=(0,tf.T)({prop:l,defaultProp:u,onChange:c,caller:tb}),D=r.useRef(null),j=!x||y||!!x.closest("form"),[L,V]=r.useState(new Set),N=Array.from(L).map(e=>e.props.value).join(";");return(0,s.jsx)(e9,{...w,children:(0,s.jsxs)(tA,{required:v,scope:t,trigger:x,onTriggerChange:b,valueNode:S,onValueNodeChange:E,valueNodeHasChildren:T,onValueNodeHasChildrenChange:P,contentId:(0,g.M)(),value:k,onValueChange:R,open:M,onOpenChange:A,dir:C,triggerPointerDownPosRef:D,disabled:m,children:[(0,s.jsx)(tS.Provider,{scope:t,children:(0,s.jsx)(tR,{scope:e.__scopeSelect,onNativeOptionAdd:r.useCallback(e=>{V(t=>new Set(t).add(e))},[]),onNativeOptionRemove:r.useCallback(e=>{V(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),j?(0,s.jsxs)(no,{"aria-hidden":!0,required:v,tabIndex:-1,name:h,autoComplete:p,value:k,onChange:e=>R(e.target.value),disabled:m,form:y,children:[void 0===k?(0,s.jsx)("option",{value:""}):null,Array.from(L)]},N):null]})})};tj.displayName=tb;var tL="SelectTrigger",tV=r.forwardRef((e,t)=>{let{__scopeSelect:n,disabled:i=!1,...o}=e,l=tM(n),u=tk(tL,n),c=u.disabled||i,d=h(t,u.onTriggerChange),f=tE(n),p=r.useRef("touch"),[m,v,g]=ns(e=>{let t=f().filter(e=>!e.disabled),n=t.find(e=>e.value===u.value),r=nl(t,e,n);void 0!==r&&u.onValueChange(r.value)}),y=e=>{c||(u.onOpenChange(!0),g()),e&&(u.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,s.jsx)(te,{asChild:!0,...l,children:(0,s.jsx)(th.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":na(u.value)?"":void 0,...o,ref:d,onClick:a(o.onClick,e=>{e.currentTarget.focus(),"mouse"!==p.current&&y(e)}),onPointerDown:a(o.onPointerDown,e=>{p.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:a(o.onKeyDown,e=>{let t=""!==m.current;
20e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||v(e.key),(!t||" "!==e.key)&&tw.includes(e.key)&&(y(),e.preventDefault())})})})});tV.displayName=tL;var tN="SelectValue",tO=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:o,placeholder:a="",...l}=e,u=tk(tN,n),{onValueNodeHasChildrenChange:c}=u,d=void 0!==o,f=h(t,u.onValueNodeChange);return tp(()=>{c(d)},[c,d]),(0,s.jsx)(th.span,{...l,ref:f,style:{pointerEvents:"none"},children:na(u.value)?(0,s.jsx)(s.Fragment,{children:a}):o})});tO.displayName=tN;var tF=r.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,s.jsx)(th.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});tF.displayName="SelectIcon";var tI=e=>(0,s.jsx)(td.h,{asChild:!0,...e});tI.displayName="SelectPortal";var tB="SelectContent",t$=r.forwardRef((e,t)=>{let n=tk(tB,e.__scopeSelect),[o,a]=r.useState();return(tp(()=>{a(new DocumentFragment)},[]),n.open)?(0,s.jsx)(tH,{...e,ref:t}):o?i.createPortal((0,s.jsx)(tW,{scope:e.__scopeSelect,children:(0,s.jsx)(tS.Slot,{scope:e.__scopeSelect,children:(0,s.jsx)("div",{children:e.children})})}),o):null});t$.displayName=tB;var[tW,t_]=tP(tB),tU=(0,c.Z8)("SelectContent.RemoveScroll"),tH=r.forwardRef((e,t)=>{let{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:l,onPointerDownOutside:u,side:c,sideOffset:d,align:f,alignOffset:g,arrowPadding:y,collisionBoundary:w,collisionPadding:x,sticky:b,hideWhenDetached:S,avoidCollisions:E,...T}=e,P=tk(tB,n),[C,M]=r.useState(null),[A,k]=r.useState(null),R=h(t,e=>M(e)),[D,j]=r.useState(null),[L,V]=r.useState(null),N=tE(n),[O,F]=r.useState(!1),I=r.useRef(!1);r.useEffect(()=>{if(C)return(0,tg.Ry)(C)},[C]),(0,m.EW)();let B=r.useCallback(e=>{let[t,...n]=N().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:"nearest"}),n===t&&A&&(A.scrollTop=0),n===r&&A&&(A.scrollTop=A.scrollHeight),n?.focus(),document.activeElement!==i))return},[N,A]),$=r.useCallback(()=>B([D,C]),[B,D,C]);r.useEffect(()=>{O&&$()},[O,$]);let{onOpenChange:W,triggerPointerDownPosRef:_}=P;r.useEffect(()=>{if(C){let e={x:0,y:0},t=t=>{e={x:Math.abs(Math.round(t.pageX)-(_.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(_.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():C.contains(n.target)||W(!1),document.removeEventListener("pointermove",t),_.current=null};return null!==_.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[C,W,_]),r.useEffect(()=>{let e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[W]);let[U,H]=ns(e=>{let t=N().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=nl(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),Z=r.useCallback((e,t,n)=>{let r=!I.current&&!n;(void 0!==P.value&&P.value===t||r)&&(j(e),r&&(I.current=!0))},[P.value]),z=r.useCallback(()=>C?.focus(),[C]),Y=r.useCallback((e,t,n)=>{let r=!I.current&&!n;(void 0!==P.value&&P.value===t||r)&&V(e)},[P.value]),K="popper"===i?tz:tZ,X=K===tz?{side:c,sideOffset:d,align:f,alignOffset:g,arrowPadding:y,collisionBoundary:w,collisionPadding:x,sticky:b,hideWhenDetached:S,avoidCollisions:E}:{};return(0,s.jsx)(tW,{scope:n,content:C,viewport:A,onViewportChange:k,itemRefCallback:Z,selectedItem:D,onItemLeave:z,itemTextRefCallback:Y,focusSelectedItem:$,selectedItemText:L,position:i,isPositioned:O,searchRef:U,children:(0,s.jsx)(ty.Z,{as:tU,allowPinchZoom:!0,children:(0,s.jsx)(v.M,{asChild:!0,trapped:P.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:a(o,e=>{P.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,s.jsx)(p.XB,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>P.onOpenChange(!1),children:(0,s.jsx)(K,{role:"listbox",id:P.contentId,"data-state":P.open?"open":"closed",dir:P.dir,onContextMenu:e=>e.preventDefault(),...T,...X,onPlaced:()=>F(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...T.style},onKeyDown:a(T.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;
20if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||H(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=N().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>B(t)),e.preventDefault()}})})})})})})});tH.displayName="SelectContentImpl";var tZ=r.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:i,...a}=e,l=tk(tB,n),u=t_(tB,n),[c,d]=r.useState(null),[f,p]=r.useState(null),m=h(t,e=>p(e)),v=tE(n),g=r.useRef(!1),y=r.useRef(!0),{viewport:w,selectedItem:x,selectedItemText:b,focusSelectedItem:S}=u,E=r.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&f&&w&&x&&b){let e=l.trigger.getBoundingClientRect(),t=f.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),r=b.getBoundingClientRect();if("rtl"!==l.dir){let i=r.left-t.left,a=n.left-i,s=e.left-a,l=e.width+s,u=Math.max(l,t.width),d=o(a,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=l+"px",c.style.left=d+"px"}else{let i=t.right-r.right,a=window.innerWidth-n.right-i,s=window.innerWidth-e.right-a,l=e.width+s,u=Math.max(l,t.width),d=o(a,[10,Math.max(10,window.innerWidth-10-u)]);c.style.minWidth=l+"px",c.style.right=d+"px"}let a=v(),s=window.innerHeight-20,u=w.scrollHeight,d=window.getComputedStyle(f),h=parseInt(d.borderTopWidth,10),p=parseInt(d.paddingTop,10),m=parseInt(d.borderBottomWidth,10),y=h+p+u+parseInt(d.paddingBottom,10)+m,S=Math.min(5*x.offsetHeight,y),E=window.getComputedStyle(w),T=parseInt(E.paddingTop,10),P=parseInt(E.paddingBottom,10),C=e.top+e.height/2-10,M=x.offsetHeight/2,A=h+p+(x.offsetTop+M);if(A<=C){let e=a.length>0&&x===a[a.length-1].ref.current;c.style.bottom="0px";let t=f.clientHeight-w.offsetTop-w.offsetHeight;c.style.height=A+Math.max(s-C,M+(e?P:0)+t+m)+"px"}else{let e=a.length>0&&x===a[0].ref.current;c.style.top="0px";let t=Math.max(C,h+w.offsetTop+(e?T:0)+M);c.style.height=t+(y-A)+"px",w.scrollTop=A-C+w.offsetTop}c.style.margin="10px 0",c.style.minHeight=S+"px",c.style.maxHeight=s+"px",i?.(),requestAnimationFrame(()=>g.current=!0)}},[v,l.trigger,l.valueNode,c,f,w,x,b,l.dir,i]);tp(()=>E(),[E]);let[T,P]=r.useState();tp(()=>{f&&P(window.getComputedStyle(f).zIndex)},[f]);let C=r.useCallback(e=>{e&&!0===y.current&&(E(),S?.(),y.current=!1)},[E,S]);return(0,s.jsx)(tY,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:g,onScrollButtonChange:C,children:(0,s.jsx)("div",{ref:d,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T},children:(0,s.jsx)(th.div,{...a,ref:m,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});tZ.displayName="SelectItemAlignedPosition";var tz=r.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:i=10,...o}=e,a=tM(n);return(0,s.jsx)(ti,{...a,...o,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...o.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});tz.displayName="SelectPopperPosition";var[tY,tK]=tP(tB,{}),tX="SelectViewport",tq=r.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:i,...o}=e,l=t_(tX,n),u=tK(tX,n),c=h(t,l.onViewportChange),d=r.useRef(0);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),(0,s.jsx)(tS.Slot,{scope:n,children:(0,s.jsx)(th.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:a(o.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=u;if(r?.current&&n){let e=Math.abs(d.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,i=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(i<r){let o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}d.current=t.scrollTop})})})]})});tq.displayName=tX;var tG="SelectGroup",[tJ,tQ]=tP(tG);r.forwardRef((e,t)=>
20{let{__scopeSelect:n,...r}=e,i=(0,g.M)();return(0,s.jsx)(tJ,{scope:n,id:i,children:(0,s.jsx)(th.div,{role:"group","aria-labelledby":i,...r,ref:t})})}).displayName=tG;var t0="SelectLabel";r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=tQ(t0,n);return(0,s.jsx)(th.div,{id:i.id,...r,ref:t})}).displayName=t0;var t1="SelectItem",[t2,t5]=tP(t1),t3=r.forwardRef((e,t)=>{let{__scopeSelect:n,value:i,disabled:o=!1,textValue:l,...u}=e,c=tk(t1,n),d=t_(t1,n),f=c.value===i,[p,m]=r.useState(l??""),[v,y]=r.useState(!1),w=h(t,e=>d.itemRefCallback?.(e,i,o)),x=(0,g.M)(),b=r.useRef("touch"),S=()=>{o||(c.onValueChange(i),c.onOpenChange(!1))};if(""===i)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,s.jsx)(t2,{scope:n,value:i,disabled:o,textId:x,isSelected:f,onItemTextChange:r.useCallback(e=>{m(t=>t||(e?.textContent??"").trim())},[]),children:(0,s.jsx)(tS.ItemSlot,{scope:n,value:i,disabled:o,textValue:p,children:(0,s.jsx)(th.div,{role:"option","aria-labelledby":x,"data-highlighted":v?"":void 0,"aria-selected":f&&v,"data-state":f?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...u,ref:w,onFocus:a(u.onFocus,()=>y(!0)),onBlur:a(u.onBlur,()=>y(!1)),onClick:a(u.onClick,()=>{"mouse"!==b.current&&S()}),onPointerUp:a(u.onPointerUp,()=>{"mouse"===b.current&&S()}),onPointerDown:a(u.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:a(u.onPointerMove,e=>{b.current=e.pointerType,o?d.onItemLeave?.():"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:a(u.onPointerLeave,e=>{e.currentTarget===document.activeElement&&d.onItemLeave?.()}),onKeyDown:a(u.onKeyDown,e=>{d.searchRef?.current!==""&&" "===e.key||(tx.includes(e.key)&&S()," "===e.key&&e.preventDefault())})})})})});t3.displayName=t1;var t4="SelectItemText",t7=r.forwardRef((e,t)=>{let{__scopeSelect:n,className:o,style:a,...l}=e,u=tk(t4,n),c=t_(t4,n),d=t5(t4,n),f=tD(t4,n),[p,m]=r.useState(null),v=h(t,e=>m(e),d.onItemTextChange,e=>c.itemTextRefCallback?.(e,d.value,d.disabled)),g=p?.textContent,y=r.useMemo(()=>(0,s.jsx)("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:w,onNativeOptionRemove:x}=f;return tp(()=>(w(y),()=>x(y)),[w,x,y]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(th.span,{id:d.textId,...l,ref:v}),d.isSelected&&u.valueNode&&!u.valueNodeHasChildren?i.createPortal(l.children,u.valueNode):null]})});t7.displayName=t4;var t6="SelectItemIndicator",t9=r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return t5(t6,n).isSelected?(0,s.jsx)(th.span,{"aria-hidden":!0,...r,ref:t}):null});t9.displayName=t6;var t8="SelectScrollUpButton",ne=r.forwardRef((e,t)=>{let n=t_(t8,e.__scopeSelect),i=tK(t8,e.__scopeSelect),[o,a]=r.useState(!1),l=h(t,i.onScrollButtonChange);return tp(()=>{if(n.viewport&&n.isPositioned){let e=function(){a(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,s.jsx)(nr,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ne.displayName=t8;var nt="SelectScrollDownButton",nn=r.forwardRef((e,t)=>{let n=t_(nt,e.__scopeSelect),i=tK(nt,e.__scopeSelect),[o,a]=r.useState(!1),l=h(t,i.onScrollButtonChange);return tp(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),o?(0,s.jsx)(nr,{...e,ref:l,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});nn.displayName=nt;var nr=r.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:i,...o}=e,l=t_("SelectScrollButton",n),u=r.useRef(null),c=tE(n),d=r.useCallback(()=>{null!==u.current&&(window.clearInterval(u.current),u.current=null)},[]);return r.useEffect(()=>()=>d(),[d]),tp(()=>{let e=c().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[c]),(0,s.jsx)(th.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:a(o.onPointerDown,()=>{null===u.current&&(u.current=window.setInterval(i,50))}),onPointerMove:a(o.onPointerMove,()=>{l.onItemLeave?.(),null===u.current&&(u.current=window.setInterval(i,50))}),onPointerLeave:a(o.onPointerLeave,()=>{d()})})});r.forwardRef((e,t)=>
20{let{__scopeSelect:n,...r}=e;return(0,s.jsx)(th.div,{"aria-hidden":!0,...r,ref:t})}).displayName="SelectSeparator";var ni="SelectArrow";r.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=tM(n),o=tk(ni,n),a=t_(ni,n);return o.open&&"popper"===a.position?(0,s.jsx)(ts,{...i,...r,ref:t}):null}).displayName=ni;var no=r.forwardRef(({__scopeSelect:e,value:t,...n},i)=>{let o=r.useRef(null),a=h(i,o),l=function(e){let t=r.useRef({value:e,previous:e});return r.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return r.useEffect(()=>{let e=o.current;if(!e)return;let n=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(l!==t&&n){let r=new Event("change",{bubbles:!0});n.call(e,t),e.dispatchEvent(r)}},[l,t]),(0,s.jsx)(th.select,{...n,style:{...tv,...n.style},ref:a,defaultValue:t})});function na(e){return""===e||void 0===e}function ns(e){let t=function(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}(e),n=r.useRef(""),i=r.useRef(0),o=r.useCallback(e=>{let r=n.current+e;t(r),function e(t){n.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(r)},[t]),a=r.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return r.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,o,a]}function nl(e,t,n){var r;let i=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===i.length&&(o=o.filter(e=>e!==n));let a=o.find(e=>e.textValue.toLowerCase().startsWith(i.toLowerCase()));return a!==n?a:void 0}no.displayName="SelectBubbleInput";var nu=tj,nc=tV,nd=tO,nh=tF,nf=tI,np=t$,nm=tq,nv=t3,ng=t7,ny=t9,nw=ne,nx=nn},95242:function(e,t,n){n.d(t,{f:function(){return c}});var r=n(14757);n(66397);var i=n(64306),o=n(34906),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,i.Z8)(`Primitive.${t}`),a=r.forwardRef((e,r)=>{let{asChild:i,...a}=e,s=i?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(s,{...a,ref:r})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{}),s="horizontal",l=["horizontal","vertical"],u=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=s,...i}=e,u=l.includes(r)?r:s;return(0,o.jsx)(a.div,{"data-orientation":u,...n?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},...i,ref:t})});u.displayName="Separator";var c=u},64306:function(e,t,n){n.d(t,{Z8:function(){return a}});var r=n(14757);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var o=n(34906);function a(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e,a;let s=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,l=function(e,t){let n={...t};for(let r in t){let i=e[r],o=t[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...e)=>{let t=o(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props);return n.type!==r.Fragment&&(l.ref=t?function(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}(t,s):s),r.cloneElement(n,l)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...a}=e,s=r.Children.toArray(i),u=s.find(l);if(u){let e=u.props.children,i=s.map(t=>t!==u?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,o.jsx)(t,{...a,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,o.jsx)(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}var s=Symbol("radix.slottable");function l(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===s}},53476:function(e,t,n){n.d(t,{T:function(){return s}});var r=n(14757),i=n.t(r,2),o=globalThis?.document?r.useLayoutEffect:()=>{},a=i[" useInsertionEffect ".trim().toString()]||o;function s({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){let[o,s,l]=function({defaultProp:e,onChange:t}){let[n,i]=r.useState(e),o=r.useRef(n),s=r.useRef(t);return a(()=>{s.current=t},[t]),r.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,i,s]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:o;{let t=r.useRef(void 0!==e);r.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=u},[u,i])}return[c,r.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&l.current?.(n)}else s(t)},[u,e,s,l])]}Symbol("RADIX:SYNC_STATE")},76322:function(e,t,n){n.d(t,{j:function(){return a}});var r=n(95874);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=r.W,a=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:s}=t,l=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],r=null==s?void 0:s[e];if(null===t)return null;let o=i(t)||i(r);return a[e][o]}),u=n&&Object.entries(n).reduce((e,t)=>
20{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return o(e,l,null==t?void 0:null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...i}=t;return Object.entries(i).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...s,...u}[t]):({...s,...u})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},42744:function(e,t,n){n.d(t,{M:function(){return y}});var r=n(34906),i=n(14757),o=n(17124),a=n(5175),s=n(56314),l=n(87051),u=n(36323),c=n(95285);class d extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,u.R)(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h({children:e,isPresent:t,anchorX:n,root:o}){let a=(0,i.useId)(),s=(0,i.useRef)(null),l=(0,i.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:u}=(0,i.useContext)(c._);return(0,i.useInsertionEffect)(()=>{let{width:e,height:r,top:i,left:c,right:d}=l.current;if(t||!s.current||!e||!r)return;let h="left"===n?`left: ${c}`:`right: ${d}`;s.current.dataset.motionPopId=a;let f=document.createElement("style");u&&(f.nonce=u);let p=o??document.head;return p.appendChild(f),f.sheet&&f.sheet.insertRule(`
21          [data-motion-pop-id="${a}"] {
22            position: absolute !important;
23            width: ${e}px !important;
24            height: ${r}px !important;
25            ${h}px !important;
26            top: ${i}px !important;
27          }
28        `),()=>{p.contains(f)&&p.removeChild(f)}},[t]),(0,r.jsx)(d,{isPresent:t,childRef:s,sizeRef:l,children:i.cloneElement(e,{ref:s})})}let f=({children:e,initial:t,isPresent:n,onExitComplete:o,custom:s,presenceAffectsLayout:u,mode:c,anchorX:d,root:f})=>{let m=(0,a.h)(p),v=(0,i.useId)(),g=!0,y=(0,i.useMemo)(()=>(g=!1,{id:v,initial:t,isPresent:n,custom:s,onExitComplete:e=>
28{for(let t of(m.set(e,!0),m.values()))if(!t)return;o&&o()},register:e=>(m.set(e,!1),()=>m.delete(e))}),[n,m,o]);return u&&g&&(y={...y}),(0,i.useMemo)(()=>{m.forEach((e,t)=>m.set(t,!1))},[n]),i.useEffect(()=>{n||m.size||!o||o()},[n]),"popLayout"===c&&(e=(0,r.jsx)(h,{isPresent:n,anchorX:d,root:f,children:e})),(0,r.jsx)(l.O.Provider,{value:y,children:e})};function p(){return new Map}var m=n(6523);let v=e=>e.key||"";function g(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}let y=({children:e,custom:t,initial:n=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1,anchorX:h="left",root:p})=>{let[y,w]=(0,m.oO)(d),x=(0,i.useMemo)(()=>g(e),[e]),b=d&&!y?[]:x.map(v),S=(0,i.useRef)(!0),E=(0,i.useRef)(x),T=(0,a.h)(()=>new Map),[P,C]=(0,i.useState)(x),[M,A]=(0,i.useState)(x);(0,s.L)(()=>{S.current=!1,E.current=x;for(let e=0;e<M.length;e++){let t=v(M[e]);b.includes(t)?T.delete(t):!0!==T.get(t)&&T.set(t,!1)}},[M,b.length,b.join("-")]);let k=[];if(x!==P){let e=[...x];for(let t=0;t<M.length;t++){let n=M[t],r=v(n);b.includes(r)||(e.splice(t,0,n),k.push(n))}return"wait"===c&&k.length&&(e=k),A(g(e)),C(x),null}let{forceRender:R}=(0,i.useContext)(o.p);return(0,r.jsx)(r.Fragment,{children:M.map(e=>{let i=v(e),o=(!d||!!y)&&(x===M||b.includes(i));return(0,r.jsx)(f,{isPresent:o,initial:(!S.current||!!n)&&void 0,custom:t,presenceAffectsLayout:u,mode:c,root:p,onExitComplete:o?void 0:()=>{if(!T.has(i))return;T.set(i,!0);let e=!0;T.forEach(t=>{t||(e=!1)}),e&&(R?.(),A(E.current),d&&w?.(),l&&l())},anchorX:h,children:e},i)})})}},6523:function(e,t,n){n.d(t,{oO:function(){return o}});var r=n(14757),i=n(87051);function o(e=!0){let t=(0,r.useContext)(i.O);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:o,register:a}=t,s=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return a(s)},[e]);let l=(0,r.useCallback)(()=>e&&o&&o(s),[s,o,e]);return!n&&o?[!1,l]:[!0]}},17124:function(e,t,n){n.d(t,{p:function(){return r}});let r=(0,n(14757).createContext)({})},95285:function(e,t,n){n.d(t,{_:function(){return r}});let r=(0,n(14757).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},87051:function(e,t,n){n.d(t,{O:function(){return r}});let r=(0,n(14757).createContext)(null)},9992:function(e,t,n){let r;n.d(t,{E:function(){return ok}});var i,o=n(14757);let a=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],s=new Set(a),l=e=>180*e/Math.PI,u=e=>d(l(Math.atan2(e[1],e[0]))),c={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:u,rotateZ:u,skewX:e=>l(Math.atan(e[1])),skewY:e=>l(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},d=e=>((e%=360)<0&&(e+=360),e),h=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),f=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),p={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:h,scaleY:f,scale:e=>(h(e)+f(e))/2,rotateX:e=>d(l(Math.atan2(e[6],e[5]))),rotateY:e=>d(l(Math.atan2(-e[2],e[0]))),rotateZ:u,rotate:u,skewX:e=>l(Math.atan(e[4])),skewY:e=>l(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function m(e){return e.includes("scale")?1:0}function v(e,t){let n,r;if(!e||"none"===e)return m(t);let i=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)n=p,r=i;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=c,r=t}if(!r)return m(t);let o=n[t],a=r[1].split(",").map(y);return"function"==typeof o?o(a):a[o]}let g=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return v(n,t)};function y(e){return parseFloat(e.trim())}let w=e=>t=>"string"==typeof t&&t.startsWith(e),x=w("--"),b=w("var(--"),S=e=>!!b(e)&&E.test(e.split("/*")[0].trim()),E=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function T({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}let P=(e,t,n)=>e+(t-e)*n;function C(e){return void 0===e||1===e}function M({scale:e,scaleX:t,scaleY:n}){return!C(e)||!C(t)||!C(n)}function A(e){return M(e)||k(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function k(e){var t,n;
28return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function R(e,t,n,r,i){return void 0!==i&&(e=r+i*(e-r)),r+n*(e-r)+t}function D(e,t=0,n=1,r,i){e.min=R(e.min,t,n,r,i),e.max=R(e.max,t,n,r,i)}function j(e,{x:t,y:n}){D(e.x,t.translate,t.scale,t.originPoint),D(e.y,n.translate,n.scale,n.originPoint)}function L(e,t){e.min=e.min+t,e.max=e.max+t}function V(e,t,n,r,i=.5){let o=P(e.min,e.max,i);D(e,t,n,o,r)}function N(e,t){V(e.x,t.x,t.scaleX,t.scale,t.originX),V(e.y,t.y,t.scaleY,t.scale,t.originY)}function O(e,t){return T(function(e,t){if(!t)return e;let 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}}(e.getBoundingClientRect(),t))}let F=new Set(["width","height","top","left","right","bottom",...a]),I=(e,t,n)=>n>t?t:n<e?e:n,B={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},$={...B,transform:e=>I(0,1,e)},W={...B,default:1},_=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),U=_("deg"),H=_("%"),Z=_("px"),z=_("vh"),Y=_("vw"),K={...H,parse:e=>H.parse(e)/100,transform:e=>H.transform(100*e)},X=e=>t=>t.test(e),q=[B,Z,H,U,Y,z,{test:e=>"auto"===e,parse:e=>e}],G=e=>q.find(X(e)),J=()=>{},Q=()=>{},ee=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),et=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,en=e=>e===B||e===Z,er=new Set(["x","y","z"]),ei=a.filter(e=>!er.has(e)),eo={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>v(t,"x"),y:(e,{transform:t})=>v(t,"y")};eo.translateX=eo.x,eo.translateY=eo.y;let ea=e=>e,es={},el=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],eu={value:null,addProjectionMetrics:null};function ec(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=el.reduce((e,n)=>(e[n]=function(e,t){let n=new Set,r=new Set,i=!1,o=!1,a=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},l=0;function u(t){a.has(t)&&(c.schedule(t),e()),l++,t(s)}let c={schedule:(e,t=!1,o=!1)=>{let s=o&&i?n:r;return t&&a.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),a.delete(e)},process:e=>{if(s=e,i){o=!0;return}i=!0,[n,r]=[r,n],n.forEach(u),t&&eu.value&&eu.value.frameloop[t].push(l),l=0,n.clear(),i=!1,o&&(o=!1,c.process(e))}};return c}(o,t?n:void 0),e),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:c,update:d,preRender:h,render:f,postRender:p}=a,m=()=>{let o=es.useManualTiming?i.timestamp:performance.now();n=!1,es.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),l.process(i),u.process(i),c.process(i),d.process(i),h.process(i),f.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(m))},v=()=>{n=!0,r=!0,i.isProcessing||e(m)};return{schedule:el.reduce((e,t)=>{let r=a[t];return e[t]=(e,t=!1,i=!1)=>(n||v(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<el.length;t++)a[el[t]].cancel(e)},state:i,steps:a}}let{schedule:ed,cancel:eh,state:ef,steps:ep}=ec("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:ea,!0),em=new Set,ev=!1,eg=!1,ey=!1;function ew(){if(eg){let e=Array.from(em).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return ei.forEach(n=>{let r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}eg=!1,ev=!1,em.forEach(e=>e.complete(ey)),em.clear()}function ex(){em.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(eg=!0)})}class eb{constructor(e,t,n,r,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(em.add(this),ev||(ev=!0,ed.read(ex),ed.resolveKeyframes(ew))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(null===e[0]){let i=r?.get(),o=e[e.length-1];if(void 0!==i)e[0]=i;else if(n&&t){let r=n.readValue(t,o);null!=r&&(e[0]=r)}void 0===e[0]&&(e[0]=o),r&&void 0===i&&r.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),em.delete(this)}cancel(){"scheduled"===this.state&&(em.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let eS=e=>/^0[^.\s]+$/u.test(e),eE=e=>Math.round(1e5*e)/1e5,eT=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eC=(e,t)=>n=>!!("string"==typeof n&&eP.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),eM=(e,t,n)=>r=>{if("string"!=typeof r)return r;let[i,o,a,s]=r.match(eT);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},eA=e=>I(0,255,e),ek={...B,transform:e=>Math.round(eA(e))},eR={test:eC("rgb","red"),parse:eM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ek.transform(e)+", "+ek.transform(t)+", "+ek.transform(n)+", "+eE($.transform(r))+")"},eD={test:eC("#"),parse:function(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),alph
28a:i?parseInt(i,16)/255:1}},transform:eR.transform},ej={test:eC("hsl","hue"),parse:eM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+H.transform(eE(t))+", "+H.transform(eE(n))+", "+eE($.transform(r))+")"},eL={test:e=>eR.test(e)||eD.test(e)||ej.test(e),parse:e=>eR.test(e)?eR.parse(e):ej.test(e)?ej.parse(e):eD.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eR.transform(e):ej.transform(e),getAnimatableNone:e=>{let t=eL.parse(e);return t.alpha=0,eL.transform(t)}},eV=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eN="number",eO="color",eF=/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 eI(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,a=t.replace(eF,e=>(eL.test(e)?(r.color.push(o),i.push(eO),n.push(eL.parse(e))):e.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(e)):(r.number.push(o),i.push(eN),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:a,indexes:r,types:i}}function eB(e){return eI(e).values}function e$(e){let{split:t,types:n}=eI(e),r=t.length;return e=>{let i="";for(let o=0;o<r;o++)if(i+=t[o],void 0!==e[o]){let t=n[o];t===eN?i+=eE(e[o]):t===eO?i+=eL.transform(e[o]):i+=e[o]}return i}}let eW=e=>"number"==typeof e?0:eL.test(e)?eL.getAnimatableNone(e):e,e_={test:function(e){return isNaN(e)&&"string"==typeof e&&(e.match(eT)?.length||0)+(e.match(eV)?.length||0)>0},parse:eB,createTransformer:e$,getAnimatableNone:function(e){let t=eB(e);return e$(e)(t.map(eW))}},eU=new Set(["brightness","contrast","saturate","opacity"]);function eH(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[r]=n.match(eT)||[];if(!r)return e;let i=n.replace(r,""),o=eU.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}let eZ=/\b([a-z-]*)\(.*?\)/gu,ez={...e_,getAnimatableNone:e=>{let t=e.match(eZ);return t?t.map(eH).join(" "):e}},eY={...B,transform:Math.round},eK={borderWidth:Z,borderTopWidth:Z,borderRightWidth:Z,borderBottomWidth:Z,borderLeftWidth:Z,borderRadius:Z,radius:Z,borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomRightRadius:Z,borderBottomLeftRadius:Z,width:Z,maxWidth:Z,height:Z,maxHeight:Z,top:Z,right:Z,bottom:Z,left:Z,padding:Z,paddingTop:Z,paddingRight:Z,paddingBottom:Z,paddingLeft:Z,margin:Z,marginTop:Z,marginRight:Z,marginBottom:Z,marginLeft:Z,backgroundPositionX:Z,backgroundPositionY:Z,rotate:U,rotateX:U,rotateY:U,rotateZ:U,scale:W,scaleX:W,scaleY:W,scaleZ:W,skew:U,skewX:U,skewY:U,distance:Z,translateX:Z,translateY:Z,translateZ:Z,x:Z,y:Z,z:Z,perspective:Z,transformPerspective:Z,opacity:$,originX:K,originY:K,originZ:Z,zIndex:eY,fillOpacity:$,strokeOpacity:$,numOctaves:eY},eX={...eK,color:eL,backgroundColor:eL,outlineColor:eL,fill:eL,stroke:eL,borderColor:eL,borderTopColor:eL,borderRightColor:eL,borderBottomColor:eL,borderLeftColor:eL,filter:ez,WebkitFilter:ez},eq=e=>eX[e];function eG(e,t){let n=eq(e);return n!==ez&&(n=e_),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let eJ=new Set(["auto","none","0"]);class eQ extends eb{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if("string"==typeof r&&S(r=r.trim())){let i=function e(t,n,r=1){Q(r<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[i,o]=function(e){let t=et.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}(t);if(!i)return;let a=window.getComputedStyle(n).getPropertyValue(i);if(a){let e=a.trim();return ee(e)?parseFloat(e):e}return S(o)?e(o,n,r+1):o}(r,t.current);void 0!==i&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!F.has(n)||2!==e.length)return;let[r,i]=e,o=G(r),a=G(i);if(o!==a){if(en(o)&&en(a))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else eo[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var r;(null===e[t]||("number"==typeof(r=e[t])?0===r:null===r||"none"===r||"0"===r||eS(r)))&&n.push(t)}n.length&&function(e,t,n){let r,i=0;for(;i<e.length&&!r;){let t=e[i];"string"==typeof t&&!eJ.has(t)&&eI(t).values.length&&(r=e[i]),i++}if(r&&n)for(let i of t)e[i]=eG(n,r)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eo[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];void 0!==r&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,o=n[i];n[i]=eo[t](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),this.removedTransforms?.length&&this.removedTransforms.forEac
28h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let e0=e=>!!(e&&e.getVelocity);function e1(){r=void 0}let e2={now:()=>(void 0===r&&e2.set(ef.isProcessing||es.useManualTiming?ef.timestamp:performance.now()),r),set:e=>{r=e,queueMicrotask(e1)}};function e5(e,t){-1===e.indexOf(t)&&e.push(t)}function e3(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}class e4{constructor(){this.subscriptions=[]}add(e){return e5(this.subscriptions,e),()=>e3(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let e7=e=>!isNaN(parseFloat(e)),e6={current:void 0};class e9{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=e2.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=e2.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=e7(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new e4);let n=this.events[e].add(t);return"change"===e?()=>{n(),ed.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return e6.current&&e6.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=e2.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),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.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function e8(e,t){return new e9(e,t)}let te=[...q,eL,e_],tt=e=>te.find(X(e)),{schedule:tn,cancel:tr}=ec(queueMicrotask,!1),ti={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"]},to={};for(let e in ti)to[e]={isEnabled:t=>ti[e].some(e=>!!t[e])};let ta=()=>({translate:0,scale:1,origin:0,originPoint:0}),ts=()=>({x:ta(),y:ta()}),tl=()=>({min:0,max:0}),tu=()=>({x:tl(),y:tl()});var tc=n(36070);let td={current:null},th={current:!1},tf=new WeakMap;function tp(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tm(e){return"string"==typeof e||Array.isArray(e)}let tv=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tg=["initial",...tv];function ty(e){return tp(e.animate)||tg.some(t=>tm(e[t]))}function tw(e){return!!(ty(e)||e.variants)}function tx(e){let t=[{},{}];
28return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function tb(e,t,n,r){if("function"==typeof t){let[i,o]=tx(r);t=t(void 0!==n?n:e.custom,i,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[i,o]=tx(r);t=t(void 0!==n?n:e.custom,i,o)}return t}let tS=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class tE{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eb,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=()=>{let e=e2.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,ed.render(this.render,!1,!0))};let{latestValues:s,renderState:l}=o;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=a,this.blockInitialAnimation=!!i,this.isControllingVariants=ty(t),this.isVariantNode=tw(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==s[e]&&e0(t)&&t.set(s[e])}}mount(e){this.current=e,tf.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),th.current||function(){if(th.current=!0,tc.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>td.current=e.matches;e.addEventListener("change",t),t()}else td.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||td.current),this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in this.projection&&this.projection.unmount(),eh(this.notifyUpdate),eh(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let r=s.has(e);r&&this.onBindTransform&&this.onBindTransform();let i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&ed.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{i(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in to){let t=to[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):tu()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<tS.length;t++){let n=tS[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(e,t,n){for(let r in t){let i=t[r],o=n[r];if(e0(i))e.addValue(r,i);
28else if(e0(o))e.addValue(r,e8(i,{owner:e}));else if(o!==i){if(e.hasValue(r)){let t=e.getValue(r);!0===t.liveStyle?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,e8(void 0!==t?t:i,{owner:e}))}}}for(let r in n)void 0===t[r]&&e.removeValue(r);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=e8(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(ee(n)||eS(n))?n=parseFloat(n):!tt(n)&&e_.test(t)&&(n=eG(e,t)),this.setBaseTarget(e,e0(n)?n.get():n)),e0(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let r=tb(this.props,n,this.presenceContext?.custom);r&&(t=r[e])}if(n&&void 0!==t)return t;let r=this.getBaseTargetFromProps(this.props,e);return void 0===r||e0(r)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new e4),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tn.render(this.render)}}class tT extends tE{constructor(){super(...arguments),this.KeyframeResolver=eQ}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;e0(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}let tP=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tC={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tM=a.length;function tA(e,t,n){let{style:r,vars:i,transformOrigin:o}=e,l=!1,u=!1;for(let e in t){let n=t[e];if(s.has(e)){l=!0;continue}if(x(e)){i[e]=n;continue}{let t=tP(n,eK[e]);e.startsWith("origin")?(u=!0,o[e]=t):r[e]=t}}if(!t.transform&&(l||n?r.transform=function(e,t,n){let r="",i=!0;for(let o=0;o<tM;o++){let s=a[o],l=e[s];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===(s.startsWith("scale")?1:0):0===parseFloat(l))||n){let e=tP(l,eK[s]);if(!u){i=!1;let t=tC[s]||s;r+=`${t}(${e}) `}n&&(t[s]=e)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}(t,e.transform,n):r.transform&&(r.transform="none")),u){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;r.transformOrigin=`${e} ${t} ${n}`}}function tk(e,{style:t,vars:n},r,i){let o;let a=e.style;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}let tR={};function tD(e,{layout:t,layoutId:n}){return s.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!tR[e]||"opacity"===e)}function tj(e,t,n){let{style:r}=e,i={};for(let o in r)(e0(r[o])||t.style&&e0(t.style[o])||tD(o,e)||n?.getValue(o)?.liveStyle!==void 0)&&(i[o]=r[o]);return i}class tL extends tT{constructor(){super(...arguments),this.type="html",this.renderInstance=tk}readValueFromInstance(e,t){if(s.has(t))return this.projection?.isProjecting?m(t):g(e,t);{let n=window.getComputedStyle(e),r=(x(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return O(e,t)}build(e,t,n){tA(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return tj(e,t,n)}}let tV=e=>
28e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),tN={offset:"stroke-dashoffset",array:"stroke-dasharray"},tO={offset:"strokeDashoffset",array:"strokeDasharray"};function tF(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:o=1,pathOffset:a=0,...s},l,u,c){if(tA(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;d.transform&&(h.transform=d.transform,delete d.transform),(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=c?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==i&&function(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?tN:tO;e[o.offset]=Z.transform(-r);let a=Z.transform(t),s=Z.transform(n);e[o.array]=`${a} ${s}`}(d,i,o,a,!1)}let tI=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"]),tB=e=>"string"==typeof e&&"svg"===e.toLowerCase();function t$(e,t,n){let r=tj(e,t,n);for(let n in e)(e0(e[n])||e0(t[n]))&&(r[-1!==a.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return r}class tW extends tT{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=tu}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(s.has(t)){let e=eq(t);return e&&e.default||0}return t=tI.has(t)?t:tV(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return t$(e,t,n)}
28build(e,t,n){tF(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){!function(e,t,n,r){for(let n in tk(e,t,void 0,r),t.attrs)e.setAttribute(tI.has(n)?n:tV(n),t.attrs[n])}(e,t,0,r)}mount(e){this.isSVGTag=tB(e.tagName),super.mount(e)}}let t_=["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 tU(e){if("string"!=typeof e||e.includes("-"));else if(t_.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var tH=n(34906),tZ=n(17124);let tz=(0,o.createContext)({strict:!1});var tY=n(95285);let tK=(0,o.createContext)({});function tX(e){return Array.isArray(e)?e.join(" "):e}let tq=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tG(e,t,n){for(let r in t)e0(t[r])||tD(r,n)||(e[r]=t[r])}let tJ=()=>({...tq(),attrs:{}}),tQ=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 t0(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||tQ.has(e)}let t1=e=>!t0(e);try{i=require("@emotion/is-prop-valid").default,"function"==typeof i&&(t1=e=>e.startsWith("on")?!t0(e):i(e))}catch{}var t2=n(87051),t5=n(5175);function t3(e){return e0(e)?e.get():e}let t4=e=>(t,n)=>{let r=(0,o.useContext)(tK),i=(0,o.useContext)(t2.O),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:function(e,t,n,r){let i={},o=r(e,{});for(let e in o)i[e]=t3(o[e]);let{initial:a,animate:s}=e,l=ty(e),u=tw(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===a)?s:a;if(d&&"boolean"!=typeof d&&!tp(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=tb(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}(n,r,i,e),renderState:t()}})(e,t,r,i);return n?a():(0,t5.h)(a)},t7=t4({scrapeMotionValuesFromProps:tj,createRenderState:tq}),t6=t4({scrapeMotionValuesFromProps:t$,createRenderState:tJ}),t9=Symbol.for("motionComponentSymbol");function t8(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}let ne="data-"+tV("framerAppearId"),nt=(0,o.createContext)({});var nn=n(56314);function nr(e,{forwardMotionProps:t=!1}={},n,r){n&&function(e){for(let t in e)to[t]={...to[t],...e[t]}}(n);let i=tU(e)?t6:t7;function a(n,a){var s;let l;let u={...(0,o.useContext)(tY._),...n,layoutId:function({layoutId:e}){let t=(0,o.useContext)(tZ.p).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:c}=u,d=function(e){let{initial:t,animate:n}=function(e,t){if(ty(e)){let{initial:t,animate:n}=e;return{initial:!1===t||tm(t)?t:void 0,animate:tm(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,o.useContext)(tK));return(0,o.useMemo)(()=>({initial:t,animate:n}),[tX(t),tX(n)])}(n),h=i(n,c);if(!c&&tc.j){(0,o.useContext)(tz).strict;let t=function(e){let{drag:t,layout:n}=to;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(u);l=t.MeasureLayout,d.visualElement=function(e,t,n,r,i){let{visualElement:a}=(0,o.useContext)(tK),s=(0,o.useContext)(tz),l=(0,o.useContext)(t2.O),u=(0,o.useContext)(tY._).reducedMotion,c=(0,o.useRef)(null);r=r||s.renderer,!c.current&&r&&(c.current=r(e,{visualState:t,parent:a,props:n,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));let d=c.current,h=(0,o.useContext)(nt);d&&!d.projection&&i&&("html"===d.type||"svg"===d.type)&&function(e,t,n,r){let{layoutId:i,layout:o,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||s&&t8(s),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:r,crossfade:c,layoutScroll:l,layoutRoot:u})}(c.current,n,i,h);let f=(0,o.useRef)(!1);(0,o.useInsertionEffect)(()=>{d&&f.current&&d.update(n,l)});let p=n[ne],m=(0,o.useRef)(!!p&&!window.MotionHandoffIsComplete?.(p)&&window.MotionHasOptimisedAnimation?.(p));return(0,nn.L)(()=>{d&&(f.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),m.current&&d.animationState&&d.animationState.animateChanges())}),(0,o.useEffect)(()=>{d&&(!m.current&&d.animationState&&d.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(p)}),m.current=!1),d.enteringChildren=void 0)}),d}(e,h,u,r,t.ProjectionNode)}return(0,tH.jsxs)(tK.Provider,{value:d,children:[l&&d.visualElement?(0,tH.jsx)(l,{visualElement:d.visualElement,...u}):null,function(e,t,n,{latestValues:r},i,a=!1){let s=(tU(e)?function(e,t,n,r){let i=(0,o.useMemo)(()=>{let n=tJ();return tF(n,t,tB(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};tG(t,e.style,e),i.style={...t,...i.style}}return i}:function(e,t){let n={},r=function(e,t){let n=e.style||{},r={};return tG(r,n,e),Object.assign(r,function({transformTemplate:e},t){return(0,o.useMemo)(()=>{let n=tq();return tA(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}
28`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n})(t,r,i,e),l=function(e,t,n){let r={};for(let i in e)("values"!==i||"object"!=typeof e.values)&&(t1(i)||!0===n&&t0(i)||!t&&!t0(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(t,"string"==typeof e,a),u=e!==o.Fragment?{...l,...s,ref:n}:{},{children:c}=t,d=(0,o.useMemo)(()=>e0(c)?c.get():c,[c]);return(0,o.createElement)(e,{...u,children:d})}(e,n,(s=d.visualElement,(0,o.useCallback)(e=>{e&&h.onMount&&h.onMount(e),s&&(e?s.mount(e):s.unmount()),a&&("function"==typeof a?a(e):t8(a)&&(a.current=e))},[s])),h,c,t)]})}a.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let s=(0,o.forwardRef)(a);return s[t9]=e,s}function ni(e,t,n){let r=e.getProps();return tb(r,t,void 0!==n?n:r.custom,e)}function no(e,t){return e?.[t]??e?.default??e}let na=e=>Array.isArray(e);function ns(e,t){let n=e.getValue("willChange");if(e0(n)&&n.add)return n.add(t);if(!n&&es.WillChange){let n=new es.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function nl(e){e.duration=0,e.type}let nu=(e,t)=>n=>t(e(n)),nc=(...e)=>e.reduce(nu),nd=e=>1e3*e,nh=e=>e/1e3,nf={layout:0,mainThread:0,waapi:0};
28function np(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function nm(e,t){return n=>n>0?t:e}let nv=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ng=[eD,eR,ej],ny=e=>ng.find(t=>t.test(e));function nw(e){let t=ny(e);if(J(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===ej&&(n=function({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,n/=100;let i=0,o=0,a=0;if(t/=100){let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=np(s,r,e+1/3),o=np(s,r,e),a=np(s,r,e-1/3)}else i=o=a=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*a),alpha:r}}(n)),n}let nx=(e,t)=>{let n=nw(e),r=nw(t);if(!n||!r)return nm(e,t);let i={...n};return e=>(i.red=nv(n.red,r.red,e),i.green=nv(n.green,r.green,e),i.blue=nv(n.blue,r.blue,e),i.alpha=P(n.alpha,r.alpha,e),eR.transform(i))},nb=new Set(["none","hidden"]);function nS(e,t){return n=>P(e,t,n)}function nE(e){return"number"==typeof e?nS:"string"==typeof e?S(e)?nm:eL.test(e)?nx:nC:Array.isArray(e)?nT:"object"==typeof e?eL.test(e)?nx:nP:nm}function nT(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nE(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function nP(e,t){let n={...e,...t},r={};for(let i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=nE(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}let nC=(e,t)=>{let n=e_.createTransformer(t),r=eI(e),i=eI(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?nb.has(e)&&!i.values.length||nb.has(t)&&!r.values.length?nb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e:nc(nT(function(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let o=t.types[i],a=e.indexes[o][r[o]],s=e.values[a]??0;n[i]=s,r[o]++}return n}(r,i),i.values),n):(J(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),nm(e,t))};function nM(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?P(e,t,n):nE(e)(e,t)}let nA=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>ed.update(t,e),stop:()=>eh(t),now:()=>ef.isProcessing?ef.timestamp:e2.now()}},nk=(e,t,n=10)=>{let r="",i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(1e4*e(t/(i-1)))/1e4+", ";return`linear(${r.substring(0,r.length-2)})`};function nR(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function nD(e,t,n){var r,i;let o=Math.max(t-5,0);return r=n-e(o),(i=t-o)?1e3/i*r:0}let nj={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};function nL(e,t){return e*Math.sqrt(1-t*t)}let nV=["duration","bounce"],nN=["stiffness","damping","mass"];function nO(e,t){return t.some(t=>void 0!==e[t])}function nF(e=nj.visualDuration,t=nj.bounce){let n;let r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:i,restDelta:o}=r,a=r.keyframes[0],s=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:c,mass:d,duration:h,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:nj.velocity,stiffness:nj.stiffness,damping:nj.damping,mass:nj.mass,isResolvedFromDuration:!1,...e};if(!nO(e,nN)&&nO(e,nV)){if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),r=n*n,i=2*I(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:nj.mass,stiffness:r,damping:i}}else{let n=function({duration:e=nj.duration,bounce:t=nj.bounce,velocity:n=nj.velocity,mass:r=nj.mass}){let i,o;J(e<=nd(nj.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-t;a=I(nj.minDamping,nj.maxDamping,a),e=I(nj.minDuration,nj.maxDuration,nh(e)),a<1?(i=t=>{let r=t*a,i=r*e;return .001-(r-n)/nL(t,a)*Math.exp(-i)},o=t=>{let r=t*a*e,o=Math.pow(a,2)*Math.pow(t,2)*e,s=nL(Math.pow(t,2),a);return(r*n+n-o)*Math.exp(-r)*(-i(t)+.001>0?-1:1)/s}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let s=function(e,t,n){let r=n;for(let n=1;n<12;n++)r-=e(r)/t(r);return r}(i,o,5/e);if(e=nd(e),isNaN(s))return{stiffness:nj.stiffness,damping:nj.damping,duration:e};{let t=Math.pow(s,2)*r;
28return{stiffness:t,damping:2*a*Math.sqrt(r*t),duration:e}}}(e);(t={...t,...n,mass:nj.mass}).isResolvedFromDuration=!0}}return t}({...r,velocity:-nh(r.velocity||0)}),m=f||0,v=c/(2*Math.sqrt(u*d)),g=s-a,y=nh(Math.sqrt(u/d)),w=5>Math.abs(g);if(i||(i=w?nj.restSpeed.granular:nj.restSpeed.default),o||(o=w?nj.restDelta.granular:nj.restDelta.default),v<1){let e=nL(y,v);n=t=>s-Math.exp(-v*y*t)*((m+v*y*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===v)n=e=>s-Math.exp(-y*e)*(g+(m+y*g)*e);else{let e=y*Math.sqrt(v*v-1);n=t=>{let n=Math.exp(-v*y*t),r=Math.min(e*t,300);return s-n*((m+v*y*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}let x={calculatedDuration:p&&h||null,next:e=>{let t=n(e);if(p)l.done=e>=h;else{let r=0===e?m:0;v<1&&(r=0===e?nd(m):nD(n,e,t));let a=Math.abs(r)<=i,u=Math.abs(s-t)<=o;l.done=a&&u}return l.value=l.done?s:t,l},toString:()=>{let e=Math.min(nR(x),2e4),t=nk(t=>x.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return x}function nI({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let f=e[0],p={done:!1,value:f},m=e=>void 0!==s&&e<s||void 0!==l&&e>l,v=e=>void 0===s?l:void 0===l?s:Math.abs(s-e)<Math.abs(l-e)?s:l,g=n*t,y=f+g,w=void 0===a?y:a(y);w!==y&&(g=w-f);let x=e=>-g*Math.exp(-e/r),b=e=>w+x(e),S=e=>{let t=x(e),n=b(e);p.done=Math.abs(t)<=u,p.value=p.done?w:n},E=e=>{m(p.value)&&(d=e,h=nF({keyframes:[p.value,v(p.value)],velocity:nD(b,e,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,S(e),E(e)),void 0!==d&&e>=d)?h.next(e-d):(t||S(e),p)}}}nF.applyToOptions=e=>{let t=function(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(nR(r),2e4);return{type:"keyframes",ease:e=>r.next(i*e).value/t,duration:nh(i)}}(e,100,nF);return e.ease=t.ease,e.duration=nd(t.duration),e.type="keyframes",e};let nB=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function n$(e,t,n,r){if(e===t&&n===r)return ea;let i=t=>(function(e,t,n,r,i){let o,a;let s=0;do(o=nB(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++s<12);return a})(t,0,1,e,n);return e=>0===e||1===e?e:nB(i(e),t,r)}let nW=n$(.42,0,1,1),n_=n$(0,0,.58,1),nU=n$(.42,0,.58,1),nH=e=>Array.isArray(e)&&"number"!=typeof e[0],nZ=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,nz=e=>t=>1-e(1-t),nY=n$(.33,1.53,.69,.99),nK=nz(nY),nX=nZ(nK),nq=e=>(e*=2)<1?.5*nK(e):.5*(2-Math.pow(2,-10*(e-1))),nG=e=>1-Math.sin(Math.acos(e)),nJ=nz(nG),nQ=nZ(nG),n0=e=>Array.isArray(e)&&"number"==typeof e[0],n1={linear:ea,easeIn:nW,easeInOut:nU,easeOut:n_,circIn:nG,circInOut:nQ,circOut:nJ,backIn:nK,backInOut:nX,backOut:nY,anticipate:nq},n2=e=>"string"==typeof e,n5=e=>{if(n0(e)){Q(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,r,i]=e;return n$(t,n,r,i)}return n2(e)?(Q(void 0!==n1[e],`Invalid easing type '${e}'`,"invalid-easing-type"),n1[e]):e},n3=(e,t,n)=>{let r=t-e;return 0===r?1:(n-e)/r};function n4({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let i=nH(r)?r.map(n5):n5(r),o={done:!1,value:t[0]},a=function(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(Q(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=function(e,t,n){let r=[],i=n||es.mix||nM,o=e.length-1;for(let n=0;n<o;n++){let o=i(e[n],e[n+1]);t&&(o=nc(Array.isArray(t)?t[n]||ea:t,o)),r.push(o)}return r}(t,r,i),l=s.length,u=n=>{if(a&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=n3(e[r],e[r+1],n);return s[r](i)};return n?t=>u(I(e[0],e[o-1],t)):u}((n&&n.length===t.length?n:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=n3(0,t,r);e.push(P(n,1,i))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(i)?i:t.map(()=>i||nU).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}let n7=e=>null!==e;function n6(e,{repeat:t,repeatType:n="loop"},r,i=1){let o=e.filter(n7),a=i<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return a&&void 0!==r?r:o[a]}let n9={decay:nI,inertia:nI,tween:n4,keyframes:n4,spring:nF};function n8(e){"string"==typeof e.type&&(e.type=n9[e.type])}class re{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let rt=e=>e/100;class rn extends re{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==e2.now()&&this.tick(e2.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},nf.mainThread++,this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;n8(e);let{type:t=n4,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=e,{keyframes:a}=e,s=t||n4;s!==n4&&"number"!=typeof a[0]&&(this.mixKeyframes=nc(rt,nM(a[0],a[1])),a=[0,100]);let l=s({...e,keyframes:a});"mirror"===i&&(this.mirroredGenerator=s({...e,keyframes:[...a].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=nR(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:s}=this;if(null===this.startTime)return n.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:d,repeatDelay:h,type:f,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?v<0:v>r;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=r);let y=this.currentTime,w=n;if(c){let e=Math.min(this.currentTime,r)/a,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,c+1))%2&&("reverse"===d?(n=1-n,h&&(n-=h
28/a)):"mirror"===d&&(w=o)),y=I(0,1,n)*a}let x=g?{done:!1,value:u[0]}:w.next(y);i&&(x.value=i(x.value));let{done:b}=x;g||null===s||(b=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return S&&f!==nI&&(x.value=n6(u,this.options,m,this.speed)),p&&p(x.value),S&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return nh(this.calculatedDuration)}get time(){return nh(this.currentTime)}set time(e){e=nd(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(e2.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=nh(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=nA,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let n=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=n):null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime||(this.startTime=t??n),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(e2.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,nf.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let rr=e=>e.startsWith("--");function ri(e){let t;return()=>(void 0===t&&(t=e()),t)}let ro=ri(()=>void 0!==window.ScrollTimeline),ra={},rs=function(e,t){let n=ri(e);return()=>ra[t]??n()}(()=>{try{document.createElement("div").animate({opacity:0}
28,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),rl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ru={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:rl([0,.65,.55,1]),circOut:rl([.55,0,1,.45]),backIn:rl([.31,.01,.66,-.59]),backOut:rl([.33,1.53,.69,.99])};function rc(e){return"function"==typeof e&&"applyToOptions"in e}class rd extends re{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:a,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=e,Q("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function({type:e,...t}){return rc(e)&&rs()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u){let c={[t]:n};l&&(c.offset=l);let d=function e(t,n){if(t)return"function"==typeof t?rs()?nk(t,n):"ease-out":n0(t)?rl(t):Array.isArray(t)?t.map(t=>e(t,n)||ru.easeOut):ru[t]}(s,i);Array.isArray(d)&&(c.easing=d),eu.value&&nf.waapi++;let h={delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"};u&&(h.pseudoElement=u);let f=e.animate(c,h);return eu.value&&f.finished.finally(()=>{nf.waapi--}),f}(t,n,r,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=n6(r,this.options,a,this.speed);this.updateMotionValue?this.updateMotionValue(e):rr(n)?t.style.setProperty(n,e):t.style[n]=e,this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){return nh(Number(this.animation.effect?.getComputedTiming?.().duration||0))}get time(){return nh(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=nd(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&ro())?(this.animation.timeline=e,ea):t(this)}}let rh={anticipate:nq,backInOut:nX,circInOut:nQ};class rf extends rd{constructor(e){"string"==typeof e.ease&&e.ease in rh&&(e.ease=rh[e.ease]),n8(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...o}=this.options;if(!t)return;if(void 0!==e){t.set(e);return}let a=new rn({...o,autoplay:!1}),s=nd(this.finishedTime??this.time);t.setWithVelocity(a.sample(s-10).value,a.sample(s).value,10),a.stop()}}let rp=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(e_.test(e)||"0"===e)&&!e.startsWith("url(")),rm=new Set(["opacity","clipPath","filter","transform"]),rv=ri(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class rg extends re{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",keyframes:a,name:s,motionValue:l,element:u,...c}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=e2.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,name:s,motionValue:l,element:u,...c},h=u?.KeyframeResolver||eb;this.keyframeResolver=new h(a,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,l,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:o,velocity:a,delay:s,isHandoff:l,onUpdate:u}=n;this.resolvedAt=e2.now(),!function(e,t,n,r){let i=e[0];if(null===i)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],a=rp(i,t),s=rp(o,t);return J(a===s,`You are trying to animate ${t} from "${i}" to "${o}". "${a?o:i}" is not an animatable value.`,"value-not-animatable"),!!a&&!!s&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||rc(n))&&r)}(e,i,o,a)&&((es.instantAnimations||!s)&&u?.(n6(e,n,t)),e[0]=e[e.length-1],nl(n),n.repeat=0);let c={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!l&&function(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:a}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;
28let{onUpdate:s,transformTemplate:l}=t.owner.getProps();return rv()&&n&&rm.has(n)&&("transform"!==n||!l)&&!s&&!r&&"mirror"!==i&&0!==o&&"inertia"!==a}(c)?new rf({...c,element:c.motionValue.owner.current}):new rn(c);d.finished.then(()=>this.notifyFinished()).catch(ea),this.pendingTimeline&&(this.stopTimeline=d.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=d}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ey=!0,ex(),ew(),ey=!1),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let ry=e=>null!==e,rw={type:"spring",stiffness:500,damping:25,restSpeed:10},rx=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),rb={type:"keyframes",duration:.8},rS={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rE=(e,{keyframes:t})=>t.length>2?rb:s.has(e)?e.startsWith("scale")?rx(t[1]):rw:rS,rT=(e,t,n,r={},i,o)=>a=>{let s=no(r,e)||{},l=s.delay||r.delay||0,{elapsed:u=0}=r;u-=nd(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:o?void 0:i};!function({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(s)&&Object.assign(c,rE(e,c)),c.duration&&(c.duration=nd(c.duration)),c.repeatDelay&&(c.repeatDelay=nd(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(nl(c),0!==c.delay||(d=!0)),(es.instantAnimations||es.skipAnimations)&&(d=!0,nl(c),c.delay=0),c.allowFlatten=!s.type&&!s.ease,d&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(ry),o=t&&"loop"!==n&&t%2==1?0:i.length-1;return i[o]}(c.keyframes,s);if(void 0!==e){ed.update(()=>{c.onUpdate(e),c.onComplete()});return}}return s.isSync?new rn(c):new rg(c)};function rP(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...s}=t;r&&(o=r);let l=[],u=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(void 0===i||u&&function({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,r}(u,t))continue;let a={delay:n,...no(o||{},t)},c=r.get();if(void 0!==c&&!r.isAnimating&&!Array.isArray(i)&&i===c&&!a.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let n=e.props[ne];if(n){let e=window.MotionHandoffAnimation(n,t,ed);null!==e&&(a.startTime=e,d=!0)}}ns(e,t),r.start(rT(t,r,i,e.shouldReduceMotion&&F.has(t)?{type:!1}:a,e,d));let h=r.animation;h&&l.push(h)}return a&&Promise.all(l).then(()=>{ed.update(()=>{a&&function(e,t){let{transitionEnd:n={},transition:r={},...i}=ni(e,t)||{};for(let t in i={...i,...n}){var o;let n=na(o=i[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,e8(n))}}(e,a)})}),l}function rC(e,t,n,r=0,i=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,s=(a-1)*r;return"function"==typeof n?n(o,a):1===i?o*r:s-o*r}function rM(e,t,n={}){let r=ni(e,t,"exit"===n.type?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(rP(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,r=0,i=0,o=1,a){let s=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),s.push(rM(l,t,{...a,delay:n+("function"==typeof r?0:r)+rC(e.variantChildren,l,r,i,o)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}(e,t,r,o,a,s,n)}:()=>Promise.resolve(),{when:s}=i;
28if(!s)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===s?[o,a]:[a,o];return e().then(()=>t())}}function rA(e,t){if(!Array.isArray(t))return!1;let 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}let rk=tg.length,rR=[...tv].reverse(),rD=tv.length;function rj(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rL(){return{animate:rj(!0),whileInView:rj(),whileHover:rj(),whileTap:rj(),whileDrag:rj(),whileFocus:rj(),exit:rj()}}class rV{constructor(e){this.isMounted=!1,this.node=e}update(){}}class rN extends rV{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let r;if(e.notify("AnimationStart",t),Array.isArray(t))r=Promise.all(t.map(t=>rM(e,t,n)));else if("string"==typeof t)r=rM(e,t,n);else{let i="function"==typeof t?ni(e,t,n.custom):t;r=Promise.all(rP(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=rL(),r=!0,i=t=>(n,r)=>{let i=ni(e,r,"exit"===t?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(o){let{props:a}=e,s=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<rk;e++){let r=tg[e],i=t.props[r];(tm(i)||!1===i)&&(n[r]=i)}return n}(e.parent)||{},l=[],u=new Set,c={},d=1/0;for(let t=0;t<rD;t++){var h;let f=rR[t],p=n[f],m=void 0!==a[f]?a[f]:s[f],v=tm(m),g=f===o?p.isActive:null;!1===g&&(d=t);let y=m===s[f]&&m!==a[f]&&v;if(y&&r&&e.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...c},!p.isActive&&null===g||!m&&!p.prevProp||tp(m)||"boolean"==typeof m)continue;let w=(h=p.prevProp,"string"==typeof m?m!==h:!!Array.isArray(m)&&!rA(m,h)),x=w||f===o&&p.isActive&&!y&&v||t>d&&v,b=!1,S=Array.isArray(m)?m:[m],E=S.reduce(i(f),{});!1===g&&(E={});let{prevResolvedValues:T={}}=p,P={...T,...E},C=t=>{x=!0,u.has(t)&&(b=!0,u.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in P){let t=E[e],n=T[e];if(!c.hasOwnProperty(e))(na(t)&&na(n)?rA(t,n):t===n)?void 0!==t&&u.has(e)?C(e):p.protectedKeys[e]=!0:null!=t?C(e):u.add(e)}p.prevProp=m,p.prevResolvedValues=E,p.isActive&&(c={...c,...E}),r&&e.blockInitialAnimation&&(x=!1);let M=y&&w,A=!M||b;x&&A&&l.push(...S.map(t=>{let n={type:f};if("string"==typeof t&&r&&!M&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=ni(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=rC(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if("boolean"!=typeof a.initial){let n=ni(e,Array.isArray(a.initial)?a.initial[0]:a.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let f=!!l.length;return r&&(!1===a.initial||a.initial===a.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(l):Promise.resolve()}return{animateChanges:o,setActive:function(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=rL(),r=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tp(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let rO=0;class rF extends rV{constructor(){super(...arguments),this.id=rO++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>
28{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}let rI={x:!1,y:!1};function rB(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}let r$=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function rW(e){return{point:{x:e.pageX,y:e.pageY}}}let r_=e=>t=>r$(t)&&e(t,rW(t));function rU(e,t,n,r){return rB(e,t,r_(n),r)}function rH(e){return e.max-e.min}function rZ(e,t,n,r=.5){e.origin=r,e.originPoint=P(t.min,t.max,e.origin),e.scale=rH(n)/rH(t),e.translate=P(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rz(e,t,n,r){rZ(e.x,t.x,n.x,r?r.originX:void 0),rZ(e.y,t.y,n.y,r?r.originY:void 0)}function rY(e,t,n){e.min=n.min+t.min,e.max=e.min+rH(t)}function rK(e,t,n){e.min=t.min-n.min,e.max=e.min+rH(t)}function rX(e,t,n){rK(e.x,t.x,n.x),rK(e.y,t.y,n.y)}function rq(e){return[e("x"),e("y")]}let rG=({current:e})=>e?e.ownerDocument.defaultView:null,rJ=(e,t)=>Math.abs(e-t);class rQ{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=r2(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(e=n.offset,t={x:0,y:0},Math.sqrt(rJ(e.x,t.x)**2+rJ(e.y,t.y)**2)>=this.distanceThreshold);if(!r&&!i)return;let{point:o}=n,{timestamp:a}=ef;this.history.push({...o,timestamp:a});let{onStart:s,onMove:l}=this.handlers;r||(s&&s(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=r0(t,this.transformPagePoint),ed.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=r2("pointercancel"===e.type?this.lastMoveEventInfo:r0(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),r&&r(e,o)},!r$(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=r||window;let a=r0(rW(e),this.transformPagePoint),{point:s}=a,{timestamp:l}=ef;this.history=[{...s,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,r2(a,this.history)),this.removeListeners=nc(rU(this.contextWindow,"pointermove",this.handlePointerMove),rU(this.contextWindow,"pointerup",this.handlePointerUp),rU(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),eh(this.updatePoint)}}function r0(e,t){return t?{point:t(e.point)}:e}function r1(e,t){return{x:e.x-t.x,y:e.y-t.y}}function r2({point:e},t){return{point:e,delta:r1(e,r5(t)),offset:r1(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=r5(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>nd(.1)));)n--;if(!r)return{x:0,y:0};let o=nh(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function r5(e){return e[e.length-1]}function r3(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function r4(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 r7(e,t,n){return{min:r6(e,t),max:r6(e,n)}}function r6(e,t){return"number"==typeof e?e:e[t]||0}let r9=new WeakMap;class r8{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=tu(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:i}=this.getProps();this.panSession=new rQ(e,{onSessionStart:e=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rW(e).point)},onStart:(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===n||"y"===n?rI[n]?null:(rI[n]=!0,()=>{rI[n]=!1}):rI.x||rI.y?null:(rI.x=rI.y=!0,()=>{rI.x=rI.y=!1}),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rq(e=>{let t=this.getAxisMotionValue(e).get()||0;if(H.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];if(r){let e=rH(r);t=parseFloat(t)/100*e}}}this.originPoint[e]=t}),i&&ed.postRender(()=>i(e,t)),ns(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>
28{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:a}=t;if(r&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>rq(e=>"paused"===this.getAnimationState(e)&&this.getAxisMotionValue(e).animation?.play())},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:i,distanceThreshold:n,contextWindow:rG(this.visualElement)})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:a}=this.getProps();a&&ed.postRender(()=>a(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!ie(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},r){return void 0!==t&&e<t?e=r?P(t,e,r.min):Math.max(e,t):void 0!==n&&e>n&&(e=r?P(n,e,r.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&t8(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(e,{top:t,left:n,bottom:r,right:i}){return{x:r3(e.x,n,i),y:r3(e.y,t,r)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:r7(e,"left","right"),y:r7(e,"top","bottom")}}(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rq(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!t8(t))return!1;let r=t.current;Q(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(e,t,n){let r=O(e,n),{scroll:i}=t;return i&&(L(r.x,i.offset.x),L(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a={x:r4((e=i.layout.layoutBox).x,o.x),y:r4(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=T(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{};return Promise.all(rq(a=>{if(!ie(a,t,this.currentDirection))return;let l=s&&s[a]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?e[a]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return ns(this.visualElement,e),n.start(rT(e,n,0,t,this.visualElement,!1))}stopAnimation(){rq(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rq(e=>this.getAxisMotionValue(e).animation?.pause())}getAnimationState(e){return this.getAxisMotionValue(e).animation?.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){rq(t=>{let{drag:n}=this.getProps();if(!ie(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[t];i.set(e[t]-P(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!t8(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rq(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();r[e]=function(e,t){let n=.5,r=rH(e),i=rH(t);return i>r?n=n3(t.min,t.max-r,e.min):r>i&&(n=n3(e.min,e.max-i,t.min)),I(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),rq(t=>{if(!ie(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:o}=this.constraints[t];n.set(P(i,o,r[t]))})}addListeners(){if(!this.visualElement.current)return;r9.set(this.visualElement,this);let e=rU(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:n=!0}
28=this.getProps();t&&n&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();t8(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),ed.read(t);let i=rB(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rq(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),e(),r(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:a}}}function ie(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class it extends rV{constructor(e){super(e),this.removeGroupControls=ea,this.removeListeners=ea,this.controls=new r8(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ea}unmount(){this.removeGroupControls(),this.removeListeners()}}let ir=e=>(t,n)=>{e&&ed.postRender(()=>e(t,n))};class ii extends rV{constructor(){super(...arguments),this.removePointerDownListener=ea}onPointerDown(e){this.session=new rQ(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rG(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:ir(e),onStart:ir(t),onMove:n,onEnd:(e,t)=>{delete this.session,r&&ed.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=rU(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var io=n(6523);let ia={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function is(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let il={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Z.test(e))return e;e=parseFloat(e)}let n=is(e,t.target.x),r=is(e,t.target.y);return`${n}% ${r}%`}},iu=!1;class ic extends o.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;!function(e){for(let t in e)tR[t]=e[t],x(t)&&(tR[t].isCSSVariable=!0)}(ih),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),iu&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),ia.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:o}=n;return o&&(o.isPresent=i,iu=!0,r||e.layoutDependency!==t||void 0===t||e.isPresent!==i?o.willUpdate():this.safeToRemove(),e.isPresent===i||(i?o.promote():o.relegate()||ed.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),tn.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;iu=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function id(e){let[t,n]=(0,io.oO)(),r=(0,o.useContext)(tZ.p);return(0,tH.jsx)(ic,{...e,layoutGroup:r,switchLayoutGroup:(0,o.useContext)(nt),isPresent:t,safeToRemove:n})}let ih={borderRadius:{...il,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:il,borderTopRightRadius:il,borderBottomLeftRadius:il,borderBottomRightRadius:il,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e_.parse(e);if(r.length>5)return e;let i=e_.createTransformer(e),o="number"!=typeof r[0]?1:0,a=n.x.scale*t.x,s=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=s;let l=P(a,s,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};var ip=n(1788);function im(e){return(0,ip.K)(e)&&"ownerSVGElement"in e}let iv=(e,t)=>e.depth-t.depth;class ig{constructor(){this.children=[],this.isDirty=!1}add(e){e5(this.children,e),this.isDirty=!0}remove(e){e3(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(iv),this.isDirty=!1,this.children.forEac
28h(e)}}let iy=["TopLeft","TopRight","BottomLeft","BottomRight"],iw=iy.length,ix=e=>"string"==typeof e?parseFloat(e):e,ib=e=>"number"==typeof e||Z.test(e);function iS(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let iE=iP(0,.5,nJ),iT=iP(.5,.95,ea);function iP(e,t,n){return r=>r<e?0:r>t?1:n(n3(e,t,r))}function iC(e,t){e.min=t.min,e.max=t.max}function iM(e,t){iC(e.x,t.x),iC(e.y,t.y)}function iA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function ik(e,t,n,r,i){return e-=t,e=r+1/n*(e-r),void 0!==i&&(e=r+1/i*(e-r)),e}function iR(e,t,[n,r,i],o,a){!function(e,t=0,n=1,r=.5,i,o=e,a=e){if(H.test(t)&&(t=parseFloat(t),t=P(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=P(o.min,o.max,r);e===o&&(s-=t),e.min=ik(e.min,t,n,s,i),e.max=ik(e.max,t,n,s,i)}(e,t[n],t[r],t[i],t.scale,o,a)}let iD=["x","scaleX","originX"],ij=["y","scaleY","originY"];function iL(e,t,n,r){iR(e.x,t,iD,n?n.x:void 0,r?r.x:void 0),iR(e.y,t,ij,n?n.y:void 0,r?r.y:void 0)}function iV(e){return 0===e.translate&&1===e.scale}function iN(e){return iV(e.x)&&iV(e.y)}function iO(e,t){return e.min===t.min&&e.max===t.max}function iF(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iI(e,t){return iF(e.x,t.x)&&iF(e.y,t.y)}function iB(e){return rH(e.x)/rH(e.y)}function i$(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iW{constructor(){this.members=[]}add(e){e5(this.members,e),e.scheduleRender()}remove(e){if(e3(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:r}=e.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let i_={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},iU=["","X","Y","Z"],iH=0;function iZ(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iz({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=iH++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,eu.value&&(i_.nodes=i_.calculatedTargetDeltas=i_.calculatedProjections=0),this.nodes.forEach(iX),this.nodes.forEach(i2),this.nodes.forEach(i5),this.nodes.forEach(iq),eu.addProjectionMetrics&&eu.addProjectionMetrics(i_)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ig)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new e4),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=im(t)&&!(im(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n;let r=0,i=()=>this.root.updateBlockedByResize=!1;ed.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=e2.now(),r=({timestamp:t})=>{let i=t-n;i>=250&&(eh(r),e(i-250))};return ed.setup(r,!0),()=>eh(r)}(i,0),ia.hasAnimatedSinceResize&&(ia.hasAnimatedSinceResize=!1,this.nodes.forEac
28h(i1)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&i&&(n||r)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||i.getDefaultTransition()||i8,{onLayoutAnimationStart:a,onLayoutAnimationComplete:s}=i.getProps(),l=!this.targetLayout||!iI(this.targetLayout,r),u=!t&&n;if(this.options.layoutRoot||this.resumeFrom||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...no(o,"layout"),onPlay:a,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,u)}else t||i1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eh(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(i3),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let r=n.props[ne];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(r,"transform",ed,!(e||n))}let{parent:i}=t;i&&!i.hasCheckedOptimisedAppear&&e(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iJ);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(iQ);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(i0),this.nodes.forEach(iY),this.nodes.forEach(iK)):this.nodes.forEach(iQ),this.clearAllSnapshots();let e=e2.now();ef.delta=I(0,1e3/60,e-ef.timestamp),ef.timestamp=e,ef.isProcessing=!0,ep.update.process(ef),ep.preRender.process(ef),ep.render.process(ef),ef.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tn.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iG),this.sharedNodes.forEach(i4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ed.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ed.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||rH(this.snapshot.measuredBox.x)||rH(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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=tu(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!iN(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||A(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),r=this.removeElementScroll(n);return e&&(r=this.removeTransform(r)),on((t=r).x),on(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return tu();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(oi))){let{scroll:e}=this.root;e&&(L(t.x,e.offset.x),L(t.y,e.offset.y))}return t}removeElementScroll(e){let t=tu();if(iM(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;r!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&iM(t,e),L(t.x,i.offset.x),L(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=tu();iM(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&N(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),A(r.latestValues)&&N(n,r.latestValues)}return A(this.latestValues)&&N(n,this.latestValues),n}removeTransform(e){let t=tu();iM(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!A(n.latestValues))continue;M(n.latestValues)&&n.updateSnapshot();let r=tu();iM(r,n.measurePageBox()),iL(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return A(this.latestValues)&&iL(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}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!==ef.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
28isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=ef.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tu(),this.relativeTargetOrigin=tu(),rX(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),iM(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if(this.target||(this.target=tu(),this.targetWithTransforms=tu()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var o,a,s;this.forceRelativeParentToResolveTarget(),o=this.target,a=this.relativeTarget,s=this.relativeParent.target,rY(o.x,a.x,s.x),rY(o.y,a.y,s.y)}else this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):iM(this.target,this.layout.layoutBox),j(this.target,this.targetDelta)):iM(this.target,this.layout.layoutBox);if(this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=tu(),this.relativeTargetOrigin=tu(),rX(this.relativeTargetOrigin,this.target,e.target),iM(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}eu.value&&i_.calculatedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||M(this.parent.latestValues)||k(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===ef.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;iM(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(e,t,n,r=!1){let i,o;let a=n.length;if(a){t.x=t.y=1;for(let s=0;s<a;s++){o=(i=n[s]).projectionDelta;let{visualElement:a}=i.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&N(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,j(e,o)),r&&A(i.latestValues)&&N(e,i.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=tu());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iA(this.prevProjectionDelta.x,this.projectionDelta.x),iA(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rz(this.projectionDelta,this.layoutCorrected,s,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&i$(this.projectionDelta.x,this.prevProjectionDelta.x)&&i$(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",s)),eu.value&&i_.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ts(),this.projectionDelta=ts(),this.projectionDeltaWithTransform=ts()}setAnimationOrigin(e,t=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},a=ts();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=tu(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(i9));this.animationProgress=0,this.mixTargetDelta=t=>{let r=t/1e3;if(i7(a.x,e.x,r),i7(a.y,e.y,r),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p;rX(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,i6(f.x,p.x,s.x,r),i6(f.y,p.y,s.y,r),n&&(u=this.relativeTarget,h=n,iO(u.x,h.x)&&iO(u.y,h.y))&&(this.isProjectionDirty=!1),n||(n=tu()),iM(n,this.relativeTarget)}l&&(this.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=P(0,n.opacity??1,iE(r)),e.opacityExit=P(t.opacity??1,0,iT(r))):o&&(e.opacity=P(t.opacity??1,n.opacity??1,r));for(let i=0;i<iw;i++){let o=`border${iy[i]}Radius`,a=iS(t,o),s=iS(n,o);(void 0!==a||void 0!==s)&&(a||(a=0),s||(s=0),0===a||0===s||ib(a)===ib(s)?(e[o]=Math.max(P(ix(a),ix(s),r),0),(H.test(s)||H.test(a))&&(e[o]+="%")):e[o]=s)}(t.rotate||n.rotate)&&(e.rotate=P(t.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eh(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ed.update(()=>{ia.hasAnimatedSinceResize=!0,nf.layout++,this.motionValue||(this.motionValue=e8(0)),this.currentAnimation=function(e,t,n){let r=e0(e)?e:e8(e);return r.start(rT("",r,t,n)),r.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{nf.layout--},onComplete:()=>{nf.layout--,e.onComplete&&e.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);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(t&&n&&r){if(this!==e&&this.layout&&r&&or(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||tu();let t=rH(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=rH(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}iM(t,n),N(t,i),rz(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
28)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iW),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&iZ("z",e,r,this.animationValues);for(let t=0;t<iU.length;t++)iZ(`rotate${iU[t]}`,e,r,this.animationValues),iZ(`skew${iU[t]}`,e,r,this.animationValues);for(let t in e.render(),r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=t3(t?.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=t3(t?.pointerEvents)||""),this.hasProjected&&!A(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();
28let o=function(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,a=n?.z||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(1!==t.x||1!==t.y)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:o,skewX:a,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),a&&(r+=`skewX(${a}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==s||1!==l)&&(r+=`scale(${s}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);n&&(o=n(i,o)),e.transform=o;let{x:a,y:s}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*s.origin}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0,tR){if(void 0===i[t])continue;let{correct:n,applyTo:a,isCSSVariable:s}=tR[t],l="none"===o?i[t]:n(i[t],r);if(a){let t=a.length;for(let n=0;n<t;n++)e[a[n]]=l}else s?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=r===this?t3(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(iJ),this.root.sharedNodes.clear()}}}function iY(e){e.updateLayout()}function iK(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,o=t.source!==e.layout.source;"size"===i?rq(e=>{let r=o?t.measuredBox[e]:t.layoutBox[e],i=rH(r);r.min=n[e].min,r.max=r.min+i}):or(i,t.layoutBox,n)&&rq(r=>{let i=o?t.measuredBox[r]:t.layoutBox[r],a=rH(n[r]);i.max=i.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+a)});let a=ts();rz(a,n,t.layoutBox);let s=ts();o?rz(s,e.applyTransform(r,!0),t.measuredBox):rz(s,n,t.layoutBox);let l=!iN(a),u=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let a=tu();rX(a,t.layoutBox,i.layoutBox);let s=tu();rX(s,n,o.layoutBox),iI(a,s)||(u=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=r)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function iX(e){eu.value&&i_.nodes++,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 iq(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iG(e){e.clearSnapshot()}function iJ(e){e.clearMeasurements()}function iQ(e){e.isLayoutDirty=!1}function i0(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function i1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function i2(e){e.resolveTargetDelta()}function i5(e){e.calcProjection()}function i3(e){e.resetSkewAndRotation()}function i4(e){e.removeLeadSnapshot()}function i7(e,t,n){e.translate=P(t.translate,0,n),e.scale=P(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function i6(e,t,n,r){e.min=P(t.min,n.min,r),e.max=P(t.max,n.max,r)}function i9(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let i8={duration:.45,ease:[.4,0,.1,1]},oe=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ot=oe("applewebkit/")&&!oe("chrome/")?Math.round:ea;function on(e){e.min=ot(e.min),e.max=ot(e.max)}function or(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(iB(t)-iB(n)))}function oi(e){return e!==e.root&&e.scroll?.wasRoot}let oo=iz({attachResizeListener:(e,t)=>rB(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),oa={current:void 0},os=iz({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!oa.current){let e=new oo({});e.mount(window),e.setOptions({layoutScroll:!0}),oa.current=e}return oa.current},resetTransform:(e,t)=>
28{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function ol(e,t){let n=function(e,t,n){if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,n=(void 0)??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e)}(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function ou(e){return!("touch"===e.pointerType||rI.x||rI.y)}function oc(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover","Start"===n);let i=r["onHover"+n];i&&ed.postRender(()=>i(t,rW(t)))}class od extends rV{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=ol(e,n),a=e=>{if(!ou(e))return;let{target:n}=e,r=t(n,e);if("function"!=typeof r||!n)return;let o=e=>{ou(e)&&(r(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,i)};return r.forEach(e=>{e.addEventListener("pointerenter",a,i)}),o}(e,(e,t)=>(oc(this.node,t,"Start"),e=>oc(this.node,e,"End"))))}unmount(){}}class oh extends rV{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&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=nc(rB(this.node.current,"focus",()=>this.onFocus()),rB(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}var of=n(36323);let op=(e,t)=>!!t&&(e===t||op(e,t.parentElement)),om=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ov=new WeakSet;function og(e){return t=>{"Enter"===t.key&&e(t)}}function oy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let ow=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=og(()=>{if(ov.has(n))return;oy(n,"down");let e=og(()=>{oy(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>oy(n,"cancel"),t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function ox(e){return r$(e)&&!(rI.x||rI.y)}function ob(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap","Start"===n);let i=r["onTap"+("End"===n?"":n)];i&&ed.postRender(()=>i(t,rW(t)))}class oS extends rV{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[r,i,o]=ol(e,n),a=e=>{let r=e.currentTarget;if(!ox(e))return;ov.add(r);let o=t(r,e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),ov.has(r)&&ov.delete(r),ox(e)&&"function"==typeof o&&o(e,{success:t})},s=e=>{a(e,r===window||r===document||n.useGlobalTarget||op(r,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,i),window.addEventListener("pointercancel",l,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",a,i),(0,of.R)(e)&&(e.addEventListener("focus",e=>ow(e,i)),om.has(e.tagName)||-1!==e.tabIndex||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(ob(this.node,t,"Start"),(e,{success:t})=>ob(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let oE=new WeakMap,oT=new WeakMap,oP=e=>{let t=oE.get(e.target);t&&t(e)},oC=e=>{e.forEach(oP)},oM={some:0,all:1};class oA extends rV{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:oM[r]};return function(e,t,n){let r=function({root:e,...t}){let n=e||document;oT.has(n)||oT.set(n,{});let r=oT.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(oC,{root:e,...t})),r[i]}(t);return oE.set(e,n),r.observe(e),()=>{oE.delete(e),r.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=t?n:r;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let ok=function(e,t){if("undefined"==typeof Proxy)return nr;let n=new Map,r=(n,r)=>nr(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,o)=>"create"===o?r:(n.has(o)||n.set(o,nr(o,void 0,e,t)),n.get(o))})}({animation:{Feature:rN},exit:{Feature:rF},inView:{Feature:oA},tap:{Feature:oS},focus:{Feature:oh},hover:{Feature:od},pan:{Feature:ii},drag:{Feature:it,ProjectionNode:os,MeasureLayout:id},layout:{ProjectionNode:os,MeasureLayout:id}},(e,t)=>tU(e)?new tW(t):new tL(t,{allowProjection:e!==o.Fragment}))},36070:function(e,t,n){n.d(t,{j:function(){return r}});let r="undefined"!=typeof window},5175:function(e,t,n){n.d(t,{h:function(){return i}});var r=n(14757);function i(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}},56314:function(e,t,n){n.d(t,{L:function(){return i}});var r=n(14757);let i=n(36070).j?r.useLayoutEffect:r.useEffect},4335:function(e,t,n){n.d(t,{VM:function(){return p},uZ:function(){return m}});var r=n(14757),i=Object.defineProperty,o=Object.defineProperties,a=Object.getOwnPropertyDescriptors,s=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t)=>{for(var n in t||(t={}
vendor: 4,626 bytes, line 28
28))l.call(t,n)&&c(e,n,t[n]);if(s)for(var n of s(t))u.call(t,n)&&c(e,n,t[n]);return e},h=(e,t)=>o(e,a(t)),f=(e,t)=>{var n={};for(var r in e)l.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&s)for(var r of s(e))0>t.indexOf(r)&&u.call(e,r)&&(n[r]=e[r]);return n},p=r.createContext({}),m=r.forwardRef((e,t)=>{let n;var i,o,a,s,l,{value:u,onChange:c,maxLength:m,textAlign:y="left",pattern:w,placeholder:x,inputMode:b="numeric",onComplete:S,pushPasswordManagerStrategy:E="increase-width",pasteTransformer:T,containerClassName:P,noScriptCSSFallback:C=g,render:M,children:A}=e,k=f(e,["value","onChange","maxLength","textAlign","pattern","placeholder","inputMode","onComplete","pushPasswordManagerStrategy","pasteTransformer","containerClassName","noScriptCSSFallback","render","children"]);let[R,D]=r.useState("string"==typeof k.defaultValue?k.defaultValue:""),j=null!=u?u:R,L=(n=r.useRef(),r.useEffect(()=>{n.current=j}),n.current),V=r.useCallback(e=>{null==c||c(e),D(e)},[c]),N=r.useMemo(()=>w?"string"==typeof w?new RegExp(w):w:null,[w]),O=r.useRef(null),F=r.useRef(null),I=r.useRef({value:j,onChange:V,isIOS:"undefined"!=typeof window&&(null==(o=null==(i=null==window?void 0:window.CSS)?void 0:i.supports)?void 0:o.call(i,"-webkit-touch-callout","none"))}),B=r.useRef({prev:[null==(a=O.current)?void 0:a.selectionStart,null==(s=O.current)?void 0:s.selectionEnd,null==(l=O.current)?void 0:l.selectionDirection]});r.useImperativeHandle(t,()=>O.current,[]),r.useEffect(()=>{let e=O.current,t=F.current;if(!e||!t)return;function n(){if(document.activeElement!==e){Z(null),Y(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,i=e.maxLength,o=e.value,a=B.current.prev,s=-1,l=-1,u;if(0!==o.length&&null!==t&&null!==n){let e=t===n,r=t===o.length&&o.length<i;if(e&&!r){if(0===t)s=0,l=1,u="forward";else if(t===i)s=t-1,l=t,u="backward";else if(i>1&&o.length>1){let e=0;if(null!==a[0]&&null!==a[1]){u=t<a[1]?"backward":"forward";let n=a[0]===a[1]&&a[0]<i;"backward"!==u||n||(e=-1)}s=e+t,l=e+t+1}}-1!==s&&-1!==l&&s!==l&&O.current.setSelectionRange(s,l,u)}let c=-1!==s?s:t,d=-1!==l?l:n,h=null!=u?u:r;Z(c),Y(d),B.current.prev=[c,d,h]}if(I.current.value!==e.value&&I.current.onChange(e.value),B.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection],document.addEventListener("selectionchange",n,{capture:!0}),n(),document.activeElement===e&&U(!0),!document.getElementById("input-otp-style")){let e=document.createElement("style");if(e.id="input-otp-style",document.head.appendChild(e),e.sheet){let t="background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";v(e.sheet,"[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"),v(e.sheet,`[data-input-otp]:autofill { ${t} }`),v(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),v(e.sheet,"@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"),v(e.sheet,"[data-input-otp] + * { pointer-events: all !important; }")}}let r=()=>{t&&t.style.setProperty("--root-height",`${e.clientHeight}px`)};r();let i=new ResizeObserver(r);return i.observe(e),()=>{document.removeEventListener("selectionchange",n,{capture:!0}),i.disconnect()}},[]);let[$,W]=r.useState(!1),[_,U]=r.useState(!1),[H,Z]=r.useState(null),[z,Y]=r.useState(null);r.useEffect(()=>{var e;setTimeout(e=()=>{var e,t,n,r;null==(e=O.current)||e.dispatchEvent(new Event("input"));let i=null==(t=O.current)?void 0:t.selectionStart,o=null==(n=O.current)?void 0:n.selectionEnd,a=null==(r=O.current)?void 0:r.selectionDirection;null!==i&&null!==o&&(Z(i),Y(o),B.current.prev=[i,o,a])},0),setTimeout(e,10),setTimeout(e,50)},[j,_]),r.useEffect(()=>{void 0!==L&&j!==L&&L.length<m&&j.length===m&&(null==S||S(j))},[m,S,L,j]);let K=function({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:i}){let[o,a]=r.useState(!1),[s,l]=r.useState(!1),[u,c]=r.useState(!1),d=r.useMemo(()=>"none"!==n&&("increase-width"===n||"experimental-no-flickering"===n)&&o&&s,[o,s,n]),h=r.useCallback(()=>{let r=e.current,i=t.current;if(!r||!i||u||"none"===n)return;let o=r.getBoundingClientRect().left+r.offsetWidth,s=r.getBoundingClientRect().top+r.offsetHeight/2;0===document.querySelectorAll('[data-lastpass-icon-root],com-1password-button,[data-dashlanecreated],[style$="2147483647 !important;
28"]').length&&document.elementFromPoint(o-18,s)===r||(a(!0),c(!0))},[e,t,u,n]);return r.useEffect(()=>{let t=e.current;if(!t||"none"===n)return;function r(){l(window.innerWidth-t.getBoundingClientRect().right>=40)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}},[e,n]),r.useEffect(()=>{let e=i||document.activeElement===t.current;if("none"===n||!e)return;let r=setTimeout(h,0),o=setTimeout(h,2e3),a=setTimeout(h,5e3),s=setTimeout(()=>{c(!0)},6e3);return()=>{clearTimeout(r),clearTimeout(o),clearTimeout(a),clearTimeout(s)}},[t,i,n,h]),{hasPWMBadge:o,willPushPWMBadge:d,PWM_BADGE_SPACE_WIDTH:"40px"}}({containerRef:F,inputRef:O,pushPasswordManagerStrategy:E,isFocused:_}),X=r.useCallback(e=>{let t=e.currentTarget.value.slice(0,m);if(t.length>0&&N&&!N.test(t)){e.preventDefault();return}"string"==typeof L&&t.length<L.length&&document.dispatchEvent(new Event("selectionchange")),V(t)},[m,V,L,N]),q=r.useCallback(()=>{var e;if(O.current){let t=Math.min(O.current.value.length,m-1),n=O.current.value.length;null==(e=O.current)||e.setSelectionRange(t,n),Z(t),Y(n)}U(!0)},[m]),G=r.useCallback(e=>{var t,n;let r=O.current;if(!T&&(!I.current.isIOS||!e.clipboardData||!r))return;let i=e.clipboardData.getData("text/plain"),o=T?T(i):i;e.preventDefault();let a=null==(t=O.current)?void 0:t.selectionStart,s=null==(n=O.current)?void 0:n.selectionEnd,l=(a!==s?j.slice(0,a)+o+j.slice(s):j.slice(0,a)+o+j.slice(a)).slice(0,m);if(l.length>0&&N&&!N.test(l))return;r.value=l,V(l);let u=Math.min(l.length,m-1),c=l.length;r.setSelectionRange(u,c),Z(u),Y(c)},[m,V,N,j]),J=r.useMemo(()=>({position:"relative",cursor:k.disabled?"default":"text",userSelect:"none",WebkitUserSelect:"none",pointerEvents:"none"}),[k.disabled]),Q=r.useMemo(()=>({position:"absolute",inset:0,width:K.willPushPWMBadge?`calc(100% + ${K.PWM_BADGE_SPACE_WIDTH})`:"100%",clipPath:K.willPushPWMBadge?`inset(0 ${K.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:"100%",display:"flex",textAlign:y,opacity:"1",color:"transparent",pointerEvents:"all",background:"transparent",caretColor:"transparent",border:"0 solid transparent",outline:"0 solid transparent",boxShadow:"none",lineHeight:"1",letterSpacing:"-.5em",fontSize:"var(--root-height)",fontFamily:"monospace",fontVariantNumeric:"tabular-nums"}),[K.PWM_BADGE_SPACE_WIDTH,K.willPushPWMBadge,y]),ee=r.useMemo(()=>r.createElement("input",h(d({autoComplete:k.autoComplete||"one-time-code"},k),{"data-input-otp":!0,"data-input-otp-placeholder-shown":0===j.length||void 0,"data-input-otp-mss":H,"data-input-otp-mse":z,inputMode:b,pattern:null==N?void 0:N.source,"aria-placeholder":x,style:Q,maxLength:m,value:j,ref:O,onPaste:e=>{var t;G(e),null==(t=k.onPaste)||t.call(k,e)},onChange:X,onMouseOver:e=>{var t;W(!0),null==(t=k.onMouseOver)||t.call(k,e)},onMouseLeave:e=>{var t;W(!1),null==(t=k.onMouseLeave)||t.call(k,e)},onFocus:e=>{var t;q(),null==(t=k.onFocus)||t.call(k,e)},onBlur:e=>{var t;U(!1),null==(t=k.onBlur)||t.call(k,e)}})),[X,q,G,b,Q,m,z,H,k,null==N?void 0:N.source,j]),et=r.useMemo(()=>({slots:Array.from({length:m}).map((e,t)=>{var n;let r=_&&null!==H&&null!==z&&(H===z&&t===H||t>=H&&t<z),i=void 0!==j[t]?j[t]:null;return{char:i,placeholderChar:void 0!==j[0]?null:null!=(n=null==x?void 0:x[t])?n:null,isActive:r,hasFakeCaret:r&&null===i}}),isFocused:_,isHovering:!k.disabled&&$}),[_,$,m,z,H,k.disabled,j]),en=r.useMemo(()=>M?M(et):r.createElement(p.Provider,{value:et},A),[A,et,M]);return r.createElement(r.Fragment,null,null!==C&&r.createElement("noscript",null,r.createElement("style",null,C)),r.createElement("div",{ref:F,"data-input-otp-container":!0,style:J,className:P},en,r.createElement("div",{style:{position:"absolute",inset:0,pointerEvents:"none"}},ee)))});function v(e,t){try{e.insertRule(t)}catch(e){console.error("input-otp could not insert CSS rule:",t)}}m.displayName="Input";var g=`
29[data-input-otp] {
30  --nojs-bg: white !important;
31  --nojs-fg: black !important;
32
33  background-color: var(--nojs-bg) !important;
34  color: var(--nojs-fg) !important;
35  caret-color: var(--nojs-fg) !important;
36  letter-spacing: .25em !important;
37  text-align: center !important;
38  border: 1px solid var(--nojs-fg) !important;
39  border-radius: 4px !important;
40  width: 100% !important;
41}
42@media (prefers-color-scheme: dark) {
43  [data-input-otp] {
44    --nojs-bg: black !important;
45    --nojs-fg: white !important;
46  }
47}`},36323:function(e,t,n){n.d(t,{R:function(){return i}});var r=n(1788);function i(e){return(0,r.K)(e)&&"offsetHeight"in e}},1788:function(e,t,n){n.d(t,{K:function(){return r}});function r(e){return"object"==typeof e&&null!==e}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.