PageSourceSearch

https://fierceisland.com/_next/static/chunks/9050-502a78e067a32350.js

js fierceisland.com collected 2026-10-05 05:37:01 UTC 145,373 bytes, 12 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9050],{74080:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return b}});let r=n(38754),i=n(61757),o=n(85893),s=i._(n(67294)),a=r._(n(73935)),l=r._(n(23867)),u=n(35283),c=n(96594),h=n(23945);n(83179);let d=n(81928),f=r._(n(13872)),p={deviceSizes:[640,750,828,1080,1200,1920],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function m(t,e,n,r,i,o,s){let a=null==t?void 0:t.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&i(!0),null==n?void 0:n.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let r=!1,i=!1;n.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>r,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{r=!0,e.preventDefault()},stopPropagation:()=>{i=!0,e.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(t)}}))}function v(t){return s.use?{fetchPriority:t}:{fetchpriority:t}}let g=(0,s.forwardRef)((t,e)=>{let{src:n,srcSet:r,sizes:i,height:a,width:l,decoding:u,className:c,style:h,fetchPriority:d,placeholder:f,loading:p,unoptimized:g,fill:y,onLoadRef:b,onLoadingCompleteRef:x,setBlurComplete:P,setShowAltText:w,sizesInput:E,onLoad:S,onError:T,...A}=t;return(0,o.jsx)("img",{...A,...v(d),loading:p,width:l,height:a,decoding:u,"data-nimg":y?"fill":"1",className:c,style:h,sizes:i,srcSet:r,src:n,ref:(0,s.useCallback)(t=>{e&&("function"==typeof e?e(t):"object"==typeof e&&(e.current=t)),t&&(T&&(t.src=t.src),t.complete&&m(t,f,b,x,P,g,E))},[n,f,b,x,P,T,g,E,e]),onLoad:t=>{m(t.currentTarget,f,b,x,P,g,E)},onError:t=>{w(!0),"empty"!==f&&P(!0),T&&T(t)}})});function y(t){let{isAppRouter:e,imgAttributes:n}=t,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...v(n.fetchPriority)};return e&&a.default.preload?(a.default.preload(n.src,r),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let b=(0,s.forwardRef)((t,e)=>{let n=(0,s.useContext)(d.RouterContext),r=(0,s.useContext)(h.ImageConfigContext),i=(0,s.useMemo)(()=>{var t;let e=p||r||c.imageConfigDefault,n=[...e.deviceSizes,...e.imageSizes].sort((t,e)=>t-e),i=e.deviceSizes.sort((t,e)=>t-e),o=null==(t=e.qualities)?void 0:t.sort((t,e)=>t-e);return{...e,allSizes:n,deviceSizes:i,qualities:o}},[r]),{onLoad:a,onLoadingComplete:l}=t,m=(0,s.useRef)(a);(0,s.useEffect)(()=>{m.current=a},[a]);let v=(0,s.useRef)(l);(0,s.useEffect)(()=>{v.current=l},[l]);
1let[b,x]=(0,s.useState)(!1),[P,w]=(0,s.useState)(!1),{props:E,meta:S}=(0,u.getImgProps)(t,{defaultLoader:f.default,imgConf:i,blurComplete:b,showAltText:P});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g,{...E,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:v,setBlurComplete:x,setShowAltText:w,sizesInput:t.sizes,ref:e}),S.priority?(0,o.jsx)(y,{isAppRouter:!n,imgAttributes:E}):null]})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},32602:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{default:function(){return a},noSSR:function(){return s}});let r=n(38754);n(85893),n(67294);let i=r._(n(35491));function o(t){return{default:(null==t?void 0:t.default)||t}}function s(t,e){return delete e.webpack,delete e.modules,t(e)}function a(t,e){let n=i.default,r={loading:t=>{let{error:e,isLoading:n,pastDelay:r}=t;return null}};t instanceof Promise?r.loader=()=>t:"function"==typeof t?r.loader=t:"object"==typeof t&&(r={...r,...t});let a=(r={...r,...e}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=a?a().then(o):Promise.resolve(o(()=>null))}):(delete r.webpack,delete r.modules,s(n,r))}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},35283:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImgProps",{enumerable:!0,get:function(){return a}}),n(83179);let r=n(96630),i=n(96594);function o(t){return void 0!==t.default}function s(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function a(t,e){var n,a;let l,u,c,{src:h,sizes:d,unoptimized:f=!1,priority:p=!1,loading:m,className:v,quality:g,width:y,height:b,fill:x=!1,style:P,overrideSrc:w,onLoad:E,onLoadingComplete:S,placeholder:T="empty",blurDataURL:A,fetchPriority:C,decoding:M="async",layout:V,objectFit:R,objectPosition:k,lazyBoundary:D,lazyRoot:j,...O}=t,{imgConf:L,showAltText:F,blurComplete:I,defaultLoader:N}=e,B=L||i.imageConfigDefault;if("allSizes"in B)l=B;else{let t=[...B.deviceSizes,...B.imageSizes].sort((t,e)=>t-e),e=B.deviceSizes.sort((t,e)=>t-e),r=null==(n=B.qualities)?void 0:n.sort((t,e)=>t-e);l={...B,allSizes:t,deviceSizes:e,qualities:r}}if(void 0===N)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let _=O.loader||N;delete O.loader,delete O.srcSet;let z="__next_img_default"in _;if(z){if("custom"===l.loader)throw Error('Image with src "'+h+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let t=_;_=e=>{let{config:n,...r}=e;return t(r)}}if(V){"fill"===V&&(x=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[V];t&&(P={...P,...t});let e={responsive:"100vw",fill:"100vw"}[V];
1e&&!d&&(d=e)}let U="",W=s(y),$=s(b);if("object"==typeof(a=h)&&(o(a)||void 0!==a.src)){let t=o(h)?h.default:h;if(!t.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(t));if(!t.height||!t.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(t));if(u=t.blurWidth,c=t.blurHeight,A=A||t.blurDataURL,U=t.src,!x){if(W||$){if(W&&!$){let e=W/t.width;$=Math.round(t.height*e)}else if(!W&&$){let e=$/t.height;W=Math.round(t.width*e)}}else W=t.width,$=t.height}}let H=!p&&("lazy"===m||void 0===m);(!(h="string"==typeof h?h:U)||h.startsWith("data:")||h.startsWith("blob:"))&&(f=!0,H=!1),l.unoptimized&&(f=!0),z&&h.endsWith(".svg")&&!l.dangerouslyAllowSVG&&(f=!0),p&&(C="high");let G=s(g),Z=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:k}:{},F?{}:{color:"transparent"},P),Y=I||"empty"===T?null:"blur"===T?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:W,heightInt:$,blurWidth:u,blurHeight:c,blurDataURL:A||"",objectFit:Z.objectFit})+'")':'url("'+T+'")',q=Y?{backgroundSize:Z.objectFit||"cover",backgroundPosition:Z.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},X=function(t){let{config:e,src:n,unoptimized:r,width:i,quality:o,sizes:s,loader:a}=t;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(t,e,n){let{deviceSizes:r,allSizes:i}=t;if(n){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let r;r=t.exec(n);r)e.push(parseInt(r[2]));if(e.length){let t=.01*Math.min(...e);return{widths:i.filter(e=>e>=r[0]*t),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof e?{widths:r,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>i.find(e=>e>=t)||i[i.length-1]))],kind:"x"}}(e,i,s),c=l.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:l.map((t,r)=>a({config:e,src:n,quality:o,width:t})+" "+("w"===u?t:r+1)+u).join(", "),src:a({config:e,src:n,quality:o,width:l[c]})}}({config:l,src:h,unoptimized:f,width:W,quality:G,sizes:d,loader:_});return{props:{...O,loading:H?"lazy":m,fetchPriority:C,width:W,height:$,decoding:M,className:v,style:{...Z,...q},sizes:X.sizes,srcSet:X.srcSet,src:w||X.src},meta:{unoptimized:f,priority:p,placeholder:T,fill:x}}}},96630:function(t,e){"use strict";function n(t){let{widthInt:e,heightInt:n,blurWidth:r,blurHeight:i,blurDataURL:o,objectFit:s}=t,a=r?40*r:e,l=i?40*i:n,u=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},76210:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var n in e)Object.defineProperty(t,n,{enumerable:!0,get:e[n]})}(e,{default:function(){return l},getImageProps:function(){return a}});let r=n(38754),i=n(35283),o=n(74080),s=r._(n(13872));function a(t){let{props:e}=(0,i.getImgProps)(t,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[t,n]of Object.entries(e))void 0===n&&delete e[t];return{props:e}}let l=o.Image},13872:function(t,e){"use strict";function n(t){var e;let{config:n,src:r,width:i,quality:o}=t,s=o||(null==(e=n.qualities)?void 0:e.reduce((t,e)=>Math.abs(e-75)<Math.abs(t-75)?e:t))||75;return n.path+"?url="+encodeURIComponent(r)+"&w="+i+"&q="+s}
1Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},1159:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(38754)._(n(67294)).default.createContext(null)},35491:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return d}});let r=n(38754)._(n(67294)),i=n(1159),o=[],s=[],a=!1;function l(t){let e=t(),n={loading:!0,loaded:null,error:null};return n.promise=e.then(t=>(n.loading=!1,n.loaded=t,t)).catch(t=>{throw n.loading=!1,n.error=t,t}),n}class u{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:t,_opts:e}=this;t.loading&&("number"==typeof e.delay&&(0===e.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},e.delay)),"number"==typeof e.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},e.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(t=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(t){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...t},this._callbacks.forEach(t=>t())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(t){return this._callbacks.add(t),()=>{this._callbacks.delete(t)}}constructor(t,e){this._loadFn=t,this._opts=e,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(t){return function(t,e){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},e),o=null;function l(){if(!o){let e=new u(t,n);o={getCurrentValue:e.getCurrentValue.bind(e),subscribe:e.subscribe.bind(e),retry:e.retry.bind(e),promise:e.promise.bind(e)}}return o.promise()}if(!a){let t=n.webpack?n.webpack():n.modules;t&&s.push(e=>{for(let n of t)if(e.includes(n))return l()})}function c(t,e){!function(){l();let t=r.default.useContext(i.LoadableContext);t&&Array.isArray(n.modules)&&n.modules.forEach(e=>{t(e)})}();let s=r.default.useSyncExternalStore(o.subscribe,o.getCurrentValue,o.getCurrentValue);return r.default.useImperativeHandle(e,()=>({retry:o.retry}),[]),r.default.useMemo(()=>{var e;return s.loading||s.error?r.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:o.retry}):s.loaded?r.default.createElement((e=s.loaded)&&e.default?e.default:e,t):null},[t,s])}return c.preload=()=>l(),c.displayName="LoadableComponent",r.default.forwardRef(c)}(l,t)}function h(t,e){let n=[];for(;t.length;){let r=t.pop();n.push(r(e))}return Promise.all(n).then(()=>{if(t.length)return h(t,e)})}c.preloadAll=()=>new Promise((t,e)=>{h(o).then(t,e)}),c.preloadReady=t=>(void 0===t&&(t=[]),new Promise(e=>{let n=()=>(a=!0,e());h(s,t).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let d=c},5152:function(t,e,n){t.exports=n(32602)},25675:function(t,e,n){t.exports=n(76210)},90512:function(t,e,n){"use strict";e.Z=function(){for(var t,e,n=0,r="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=function t(e){var n,r,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e){if(Array.isArray(e)){var o=e.length;for(n=0;n<o;n++)e[n]&&(r=t(e[n]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r)}return i}(t))&&(r&&(r+=" "),r+=e);return r}},51526:function(t,e,n){"use strict";n.d(e,{M:function(){return v}});var r=n(67294),i=n(58868);function o(){let t=(0,r.useRef)(!1);return(0,i.L)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var s=n(2074),a=n(240),l=n(96681);class u extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:t,isPresent:e}){let n=(0,r.useId)(),i=(0,r.useRef)(null),o=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:t,height:r,top:s,left:a}=o.current;if(e||!i.current||!t||!r)return;i.current.dataset.motionPopId=n;
1let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
2          [data-motion-pop-id="${n}"] {
3            position: absolute !important;
4            width: ${t}px !important;
5            height: ${r}px !important;
6            top: ${s}px !important;
7            left: ${a}px !important;
8          }
9        `),()=>{document.head.removeChild(l)}},[e]),r.createElement(u,{isPresent:e,childRef:i,sizeRef:o},r.cloneElement(t,{ref:i}))}let h=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:s,mode:u})=>{let h=(0,l.h)(d),f=(0,r.useId)(),p=(0,r.useMemo)(()=>({id:f,initial:e,isPresent:n,custom:o,onExitComplete:t=>{for(let e of(h.set(t,!0),h.values()))if(!e)return;i&&i()},register:t=>(h.set(t,!1),()=>h.delete(t))}),s?void 0:[n]);return(0,r.useMemo)(()=>{h.forEach((t,e)=>h.set(e,!1))},[n]),r.useEffect(()=>{n||h.size||!i||i()},[n]),"popLayout"===u&&(t=r.createElement(c,{isPresent:n},t)),r.createElement(a.O.Provider,{value:p},t)};function d(){return new Map}var f=n(25364),p=n(45487);let m=t=>t.key||"",v=({children:t,custom:e,initial:n=!0,onExitComplete:a,exitBeforeEnter:l,presenceAffectsLayout:u=!0,mode:c="sync"})=>{var d;(0,p.k)(!l,"Replace exitBeforeEnter with mode='wait'");let v=(0,r.useContext)(f.p).forceRender||function(){let t=o(),[e,n]=(0,r.useState)(0),i=(0,r.useCallback)(()=>{t.current&&n(e+1)},[e]);return[(0,r.useCallback)(()=>s.Wi.postRender(i),[i]),e]}()[0],g=o(),y=function(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}(t),b=y,x=(0,r.useRef)(new Map).current,P=(0,r.useRef)(b),w=(0,r.useRef)(new Map).current,E=(0,r.useRef)(!0);if((0,i.L)(()=>{E.current=!1,function(t,e){t.forEach(t=>{let n=m(t);e.set(n,t)})}(y,w),P.current=b}),d=()=>{E.current=!0,w.clear(),x.clear()},(0,r.useEffect)(()=>()=>d(),[]),E.current)return r.createElement(r.Fragment,null,b.map(t=>r.createElement(h,{key:m(t),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:u,mode:c},t)));b=[...b];let S=P.current.map(m),T=y.map(m),A=S.length;for(let t=0;t<A;t++){let e=S[t];-1!==T.indexOf(e)||x.has(e)||x.set(e,void 0)}return"wait"===c&&x.size&&(b=[]),x.forEach((t,n)=>{if(-1!==T.indexOf(n))return;let i=w.get(n);if(!i)return;let o=S.indexOf(n),s=t;s||(s=r.createElement(h,{key:m(i),isPresent:!1,onExitComplete:()=>{x.delete(n);let t=Array.from(w.keys()).filter(t=>!T.includes(t));if(t.forEach(t=>w.delete(t)),P.current=y.filter(e=>{let r=m(e);return r===n||t.includes(r)}),!x.size){if(!1===g.current)return;v(),a&&a()}},custom:e,presenceAffectsLayout:u,mode:c},i),x.set(n,s)),b.splice(o,0,s)}),b=b.map(t=>{let e=t.key;return x.has(e)?t:r.createElement(h,{key:m(t),isPresent:!0,presenceAffectsLayout:u,mode:c},t)}),r.createElement(r.Fragment,null,x.size?b:b.map(t=>(0,r.cloneElement)(t)))}},25364:function(t,e,n){"use strict";n.d(e,{p:function(){return r}});let r=(0,n(67294).createContext)({})},240:function(t,e,n){"use strict";n.d(e,{O:function(){return r}});let r=(0,n(67294).createContext)(null)},2074:function(t,e,n){"use strict";n.d(e,{Pn:function(){return a},Wi:function(){return s},frameData:function(){return l},S6:function(){return u}});var r=n(81662);class i{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["prepare","read","update","preRender","render","postRender"],{schedule:s,cancel:a,state:l,steps:u}=function(t,e){let n=!1,r=!0,s={delta:0,timestamp:0,isProcessing:!1},a=o.reduce((t,e)=>(t[e]=function(t){let e=new i,n=new i,r=0,o=!1,s=!1,a=new WeakSet,l={schedule:(t,i=!1,s=!1)=>{let l=s&&o,u=l?e:n;return i&&a.add(t),u.add(t)&&l&&o&&(r=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:i=>{if(o){s=!0;return}if(o=!0,[e,n]=[n,e],n.clear(),r=e.order.length)for(let n=0;n<r;n++){let r=e.order[n];r(i),a.has(r)&&(l.schedule(r),t())}o=!1,s&&(s=!1,l.process(i))}};return l}(()=>n=!0),t),{}),l=t=>a[t].process(s),u=()=>{let i=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,o.forEach(l),s.isProcessing=!1,n&&e&&(r=!1,t(u))},c=()=>{n=!0,r=!0,s.isProcessing||t(u)};return{schedule:o.reduce((t,e)=>{let r=a[e];return t[e]=(t,e=!1,i=!1)=>(n||c(),r.schedule(t,e,i)),t},{}),cancel:t=>
9o.forEach(e=>a[e].cancel(t)),state:s,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},43495:function(t,e,n){"use strict";let r;n.d(e,{E:function(){return iH}});var i,o,s=n(67294);let a=(0,s.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),l=(0,s.createContext)({});var u=n(240),c=n(58868);let h=(0,s.createContext)({strict:!1}),d=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),f="data-"+d("framerAppearId");function p(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function m(t){return"string"==typeof t||Array.isArray(t)}function v(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let g=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y=["initial",...g];function b(t){return v(t.animate)||y.some(e=>m(t[e]))}function x(t){return!!(b(t)||t.variants)}function P(t){return Array.isArray(t)?t.join(" "):t}let w={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"]},E={};for(let t in w)E[t]={isEnabled:e=>w[t].some(t=>!!e[t])};var S=n(11741),T=n(25364);let A=(0,s.createContext)({}),C=Symbol.for("motionComponentSymbol"),M=["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 V(t){if("string"!=typeof t||t.includes("-"));else if(M.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let R={},k=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],D=new Set(k);function j(t,{layout:e,layoutId:n}){return D.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!R[t]||"opacity"===t)}let O=t=>!!(t&&t.getVelocity),L={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},F=k.length,I=t=>e=>"string"==typeof e&&e.startsWith(t),N=I("--"),B=I("var(--"),_=(t,e)=>e&&"number"==typeof t?e.transform(t):t,z=(t,e,n)=>Math.min(Math.max(n,t),e),U={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},W={...U,transform:t=>z(0,1,t)},$={...U,default:1},H=t=>Math.round(1e5*t)/1e5,G=/(-)?([\d]*\.?[\d])+/g,Z=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,Y=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function q(t){return"string"==typeof t}let X=t=>({test:e=>q(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),K=X("deg"),J=X("%"),Q=X("px"),tt=X("vh"),te=X("vw"),tn={...J,parse:t=>J.parse(t)/100,transform:t=>J.transform(100*t)},tr={...U,transform:Math.round},ti={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,radius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,size:Q,top:Q,right:Q,bottom:Q,left:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,rotate:K,rotateX:K,rotateY:K,rotateZ:K,scale:$,scaleX:$,scaleY:$,scaleZ:$,skew:K,skewX:K,skewY:K,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:W,originX:tn,originY:tn,originZ:Q,zIndex:tr,fillOpacity:W,strokeOpacity:W,numOctaves:tr};function to(t,e,n,r){let{style:i,vars:o,transform:s,transformOrigin:a}=t,l=!1,u=!1,c=!0;for(let t in e){let n=e[t];if(N(t)){o[t]=n;continue}let r=ti[t],h=_(n,r);if(D.has(t)){if(l=!0,s[t]=h,!c)continue;n!==(r.default||0)&&(c=!1)}else t.startsWith("origin")?(u=!0,a[t]=h):i[t]=h}if(!e.transform&&(l||r?i.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let e=0;e<F;e++){let n=k[e];if(void 0!==t[n]){let e=L[n]||n;o+=`${e}(${t[n]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}(t.transform,n,c,r):i.transform&&(i.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:n=0}=a;i.transformOrigin=`${t} ${e} ${n}`}}let ts=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ta(t,e,n){for(let r in e)O(e[r])||j(r,n)||(t[r]=e[r])}let tl=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function tu(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tl.has(t)}let tc=t=>!tu(t);try{(i=require("@emotion/is-prop-valid").default)&&(tc=t=>t.startsWith("on")?!tu(t):i(t))}catch(t){}function th(t,e,n){return"string"==typeof t?t:Q.transform(e+n*t)}let td={offset:"stroke-dashoffset",array:"stroke-dasharray"},tf={offset:"strokeDashoffset",array:"strokeDasharray"};function tp(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u}
9,c,h,d){if(to(t,u,c,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:p,dimensions:m}=t;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){let r=th(e,t.x,t.width),i=th(n,t.y,t.height);return`${r} ${i}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(f.x=e),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==s&&function(t,e,n=1,r=0,i=!0){t.pathLength=1;let o=i?td:tf;t[o.offset]=Q.transform(-r);let s=Q.transform(e),a=Q.transform(n);t[o.array]=`${s} ${a}`}(f,s,a,l,!1)}let tm=()=>({...ts(),attrs:{}}),tv=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tg(t,{style:e,vars:n},r,i){for(let o in Object.assign(t.style,e,i&&i.getProjectionStyles(r)),n)t.style.setProperty(o,n[o])}let ty=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tb(t,e,n,r){for(let n in tg(t,e,void 0,r),e.attrs)t.setAttribute(ty.has(n)?n:d(n),e.attrs[n])}function tx(t,e){let{style:n}=t,r={};for(let i in n)(O(n[i])||e.style&&O(e.style[i])||j(i,t))&&(r[i]=n[i]);return r}function tP(t,e){let n=tx(t,e);for(let r in t)(O(t[r])||O(e[r]))&&(n[-1!==k.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return n}function tw(t,e,n,r={},i={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),e}var tE=n(96681);let tS=t=>Array.isArray(t),tT=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),tA=t=>tS(t)?t[t.length-1]||0:t;function tC(t){let e=O(t)?t.get():t;return tT(e)?e.toValue():e}let tM=t=>(e,n)=>{let r=(0,s.useContext)(l),i=(0,s.useContext)(u.O),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){let s={latestValues:function(t,e,n,r){let i={},o=r(t,{});for(let t in o)i[t]=tC(o[t]);let{initial:s,animate:a}=t,l=b(t),u=x(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial,h=(c=c||!1===s)?a:s;return h&&"boolean"!=typeof h&&!v(h)&&(Array.isArray(h)?h:[h]).forEach(e=>{let n=tw(t,e);if(!n)return;let{transitionEnd:r,transition:o,...s}=n;for(let t in s){let e=s[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(i[t]=e)}for(let t in r)i[t]=r[t]}),i}(r,i,o,t),renderState:e()};return n&&(s.mount=t=>n(r,t,s)),s})(t,e,r,i);return n?o():(0,tE.h)(o)};var tV=n(2074);let tR={useVisualState:tM({scrapeMotionValuesFromProps:tP,createRenderState:tm,onMount:(t,e,{renderState:n,latestValues:r})=>{tV.Wi.read(()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}}),tV.Wi.render(()=>{tp(n,r,{enableHardwareAcceleration:!1},tv(e.tagName),t.transformTemplate),tb(e,n)})}})},tk={useVisualState:tM({scrapeMotionValuesFromProps:tx,createRenderState:ts})};function tD(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}let tj=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tO(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let tL=t=>e=>tj(e)&&t(e,tO(e));function tF(t,e,n,r){return tD(t,e,tL(n),r)}let tI=(t,e)=>n=>e(t(n)),tN=(...t)=>t.reduce(tI);function tB(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let t_=tB("dragHorizontal"),tz=tB("dragVertical");function tU(t){let e=!1;if("y"===t)e=tz();else if("x"===t)e=t_();else{let t=t_(),n=tz();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function tW(){let t=tU(!0);return!t||(t(),!1)}class t${constructor(t){this.isMounted=!1,this.node=t}update(){}}function tH(t,e){let n="onHover"+(e?"Start":"End");return tF(t.current,"pointer"+(e?"enter":"leave"),(r,i)=>{if("touch"===r.pointerType||tW())return;let o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e),o[n]&&tV.Wi.update(()=>o[n](r,i))},{passive:!t.getProps()[n]})}class tG extends t${mount(){this.unmount=tN(tH(this.node,!0),tH(this.node,!1))}unmount(){}}class tZ extends t${constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tN(tD(this.node.current,"focus",()=>this.onFocus()),tD(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tY=(t,e)=>!!e&&(t===e||tY(t,e.parentElement));var tq=n(81662);function tX(t,e){if(!e)return;let n=new PointerEvent("pointer"+t);e(n,tO(n))}class tK extends t${constructor(){super(...arguments),this.removeStartListeners=tq.Z,this.removeEndListeners=tq.Z,this.removeAccessibleListeners=tq.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),r=tF(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps();tV.Wi.update(()=>{i||tY(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)})},{passive:!(n.onTap||n.onPointerUp)}),i=tF(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=tN(r,i),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=tD(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tD(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&tX("up",(t,e)=>{let{onTap:n}=this.node.getProps();n&&tV.Wi.update(()=>n(t,e))})}),tX("down",(t,e)=>{this.startPress(t,e)}))}),e=tD(this.node.current,"blur",()=>{this.isPressing&&tX("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=tN(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&tV.Wi.update(()=>n(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tW()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&tV.Wi.update(()=>n(t,e))}mount(){let t=this.node.getProps(),e=tF(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=tD(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tN(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let tJ=new WeakMap,tQ=new WeakMap,t0=t=>{let e=tJ.get(t.target);e&&e(t)}
9,t1=t=>{t.forEach(t0)},t2={some:0,all:1};class t5 extends t${constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:t2[r]};return function(t,e,n){let r=function({root:t,...e}){let n=t||document;tQ.has(n)||tQ.set(n,{});let r=tQ.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(t1,{root:t,...e})),r[i]}(e);return tJ.set(t,n),r.observe(t),()=>{tJ.delete(t),r.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,i&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}function t3(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function t6(t,e,n){let r=t.getProps();return tw(r,e,void 0!==n?n:r.custom,function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}var t4=n(45487);let t9=t=>1e3*t,t8=t=>t/1e3,t7={current:!1},et=t=>Array.isArray(t)&&"number"==typeof t[0],ee=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,en={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ee([0,.65,.55,1]),circOut:ee([.55,0,1,.45]),backIn:ee([.31,.01,.66,-.59]),backOut:ee([.33,1.53,.69,.99])},er=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function ei(t,e,n,r){if(t===e&&n===r)return tq.Z;let i=e=>(function(t,e,n,r,i){let o,s;let a=0;do(o=er(s=e+(n-e)/2,r,i)-t)>0?n=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,n);return t=>0===t||1===t?t:er(i(t),e,r)}let eo=ei(.42,0,1,1),es=ei(0,0,.58,1),ea=ei(.42,0,.58,1),el=t=>Array.isArray(t)&&"number"!=typeof t[0],eu=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ec=t=>e=>1-t(1-e),eh=t=>1-Math.sin(Math.acos(t)),ed=ec(eh),ef=eu(eh),ep=ei(.33,1.53,.69,.99),em=ec(ep),ev=eu(em),eg={linear:tq.Z,easeIn:eo,easeInOut:ea,easeOut:es,circIn:eh,circInOut:ef,circOut:ed,backIn:em,backInOut:ev,backOut:ep,anticipate:t=>(t*=2)<1?.5*em(t):.5*(2-Math.pow(2,-10*(t-1)))},ey=t=>{if(Array.isArray(t)){(0,t4.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,r,i]=t;return ei(e,n,r,i)}return"string"==typeof t?((0,t4.k)(void 0!==eg[t],`Invalid easing type '${t}'`),eg[t]):t},eb=(t,e)=>n=>!!(q(n)&&Y.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),ex=(t,e,n)=>r=>{if(!q(r))return r;let[i,o,s,a]=r.match(G);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},eP=t=>z(0,255,t),ew={...U,transform:t=>Math.round(eP(t))},eE={test:eb("rgb","red"),parse:ex("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+ew.transform(t)+", "+ew.transform(e)+", "+ew.transform(n)+", "+H(W.transform(r))+")"},eS={test:eb("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:eE.transform},eT={test:eb("hsl","hue"),parse:ex("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+J.transform(H(e))+", "+J.transform(H(n))+", "+H(W.transform(r))+")"},eA={test:t=>eE.test(t)||eS.test(t)||eT.test(t),parse:t=>eE.test(t)?eE.parse(t):eT.test(t)?eT.parse(t):eS.parse(t),transform:t=>q(t)?t:t.hasOwnProperty("red")?eE.transform(t):eT.transform(t)},eC=(t,e,n)=>-n*t+n*e+t;function eM(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}let eV=(t,e,n)=>{let r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},eR=[eS,eE,eT],ek=t=>eR.find(e=>e.test(t));function eD(t){let e=ek(t);(0,t4.k)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===eT&&(n=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,o=0,s=0;if(e/=100){let r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;i=eM(a,r,t+1/3),o=eM(a,r,t),s=eM(a,r,t-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let ej=(t,e)=>{let n=eD(t),r=eD(e),i={...n};return t=>(i.red=eV(n.red,r.red,t),i.green=eV(n.green,r.green,t),i.blue=eV(n.blue,r.blue,t),i.alpha=eC(n.alpha,r.alpha,t),eE.transform(i))}
9,eO={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:tq.Z},eL={regex:Z,countKey:"Colors",token:"${c}",parse:eA.parse},eF={regex:G,countKey:"Numbers",token:"${n}",parse:U.parse};function eI(t,{regex:e,countKey:n,token:r,parse:i}){let o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function eN(t){let e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&eI(n,eO),eI(n,eL),eI(n,eF),n}function eB(t){return eN(t).values}function e_(t){let{values:e,numColors:n,numVars:r,tokenised:i}=eN(t),o=e.length;return t=>{let e=i;for(let i=0;i<o;i++)e=i<r?e.replace(eO.token,t[i]):i<r+n?e.replace(eL.token,eA.transform(t[i])):e.replace(eF.token,H(t[i]));return e}}let ez=t=>"number"==typeof t?0:t,eU={test:function(t){var e,n;return isNaN(t)&&q(t)&&((null===(e=t.match(G))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(Z))||void 0===n?void 0:n.length)||0)>0},parse:eB,createTransformer:e_,getAnimatableNone:function(t){let e=eB(t);return e_(t)(e.map(ez))}},eW=(t,e)=>n=>`${n>0?e:t}`;function e$(t,e){return"number"==typeof t?n=>eC(t,e,n):eA.test(t)?ej(t,e):t.startsWith("var(")?eW(t,e):eZ(t,e)}let eH=(t,e)=>{let n=[...t],r=n.length,i=t.map((t,n)=>e$(t,e[n]));return t=>{for(let e=0;e<r;e++)n[e]=i[e](t);return n}},eG=(t,e)=>{let n={...t,...e},r={};for(let i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=e$(t[i],e[i]));return t=>{for(let e in r)n[e]=r[e](t);return n}},eZ=(t,e)=>{let n=eU.createTransformer(e),r=eN(t),i=eN(e);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?tN(eH(r.values,i.values),n):((0,t4.K)(!0,`Complex values '${t}' and '${e}' 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.`),eW(t,e))},eY=(t,e,n)=>{let r=e-t;return 0===r?1:(n-t)/r},eq=(t,e)=>n=>eC(t,e,n);function eX(t,e,{clamp:n=!0,ease:r,mixer:i}={}){let o=t.length;if((0,t4.k)(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=function(t,e,n){let r=[],i=n||function(t){if("number"==typeof t);else if("string"==typeof t)return eA.test(t)?ej:eZ;else if(Array.isArray(t))return eH;else if("object"==typeof t)return eG;return eq}(t[0]),o=t.length-1;for(let n=0;n<o;n++){let o=i(t[n],t[n+1]);e&&(o=tN(Array.isArray(e)?e[n]||tq.Z:e,o)),r.push(o)}return r}(e,r,i),a=s.length,l=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);let r=eY(t[n],t[n+1],e);return s[n](r)};return n?e=>l(z(t[0],t[o-1],e)):l}function eK({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){let i=el(r)?r.map(ey):ey(r),o={done:!1,value:e[0]},s=eX((n&&n.length===e.length?n:function(t){let e=[0];return function(t,e){let n=t[t.length-1];for(let r=1;r<=e;r++){let i=eY(0,e,r);t.push(eC(n,1,i))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(i)?i:e.map(()=>i||ea).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=s(e),o.done=e>=t,o)}}function eJ(t,e,n){var r,i;let o=Math.max(e-5,0);return r=n-t(o),(i=e-o)?1e3/i*r:0}function eQ(t,e){return t*Math.sqrt(1-e*e)}let e0=["duration","bounce"],e1=["stiffness","damping","mass"];function e2(t,e){return e.some(e=>void 0!==t[e])}function e5({keyframes:t,restDelta:e,restSpeed:n,...r}){let i;let o=t[0],s=t[t.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,duration:h,velocity:d,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!e2(t,e1)&&e2(t,e0)){let n=function({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;(0,t4.K)(t<=t9(10),"Spring duration must be 10 seconds or less");let s=1-e;s=z(.05,1,s),t=z(.01,10,t8(t)),s<1?(i=e=>{let r=e*s,i=r*t;return .001-(r-n)/eQ(e,s)*Math.exp(-i)},o=e=>{let r=e*s*t,o=Math.pow(s,2)*Math.pow(e,2)*t,a=eQ(Math.pow(e,2),s);return(r*n+n-o)*Math.exp(-r)*(-i(e)+.001>0?-1:1)/a}):(i=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),o=e=>t*t*(n-e)*Math.exp(-e*t));let a=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(i,o,5/t);if(t=t9(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*s*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...n,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-t8(r.velocity||0)}),p=d||0,m=u/(2*Math.sqrt(l*c)),v=s-o,g=t8(Math.sqrt(l/c)),y=5>Math.abs(v);if(n||(n=y?.01:2),e||(e=y?.005:.5),m<1){let t=eQ(g,m);i=e=>s-Math.exp(-m*g*e)*((p+m*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===m)i=t=>s-Math.exp(-g*t)*(v+(p+g*v)*t);else{let t=g*Math.sqrt(m*m-1);i=e=>{let n=Math.exp(-m*g*e),r=Math.min(t*e,300);return s-n*((p+m*g*v)*Math.sinh(r)+t*v*Math.cosh(r))/t}}
9return{calculatedDuration:f&&h||null,next:t=>{let r=i(t);if(f)a.done=t>=h;else{let o=p;0!==t&&(o=m<1?eJ(i,t,r):0);let l=Math.abs(o)<=n,u=Math.abs(s-r)<=e;a.done=l&&u}return a.value=a.done?s:r,a}}}function e3({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d;let f=t[0],p={done:!1,value:f},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=n*e,y=f+g,b=void 0===s?y:s(y);b!==y&&(g=b-f);let x=t=>-g*Math.exp(-t/r),P=t=>b+x(t),w=t=>{let e=x(t),n=P(t);p.done=Math.abs(e)<=u,p.value=p.done?b:n},E=t=>{m(p.value)&&(h=t,d=e5({keyframes:[p.value,v(p.value)],velocity:eJ(P,t,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==h||(e=!0,w(t),E(t)),void 0!==h&&t>h)?d.next(t-h):(e||w(t),p)}}}let e6=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tV.Wi.update(e,!0),stop:()=>(0,tV.Pn)(e),now:()=>tV.frameData.isProcessing?tV.frameData.timestamp:performance.now()}};function e4(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}let e9={decay:e3,inertia:e3,tween:eK,keyframes:eK,spring:e5};function e8({autoplay:t=!0,delay:e=0,driver:n=e6,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:h,...d}){let f,p,m,v,g,y=1,b=!1,x=()=>{p=new Promise(t=>{f=t})};x();let P=e9[i]||eK;P!==eK&&"number"!=typeof r[0]&&(v=eX([0,100],r,{clamp:!1}),r=[0,100]);let w=P({...d,keyframes:r});"mirror"===a&&(g=P({...d,keyframes:[...r].reverse(),velocity:-(d.velocity||0)}));let E="idle",S=null,T=null,A=null;null===w.calculatedDuration&&o&&(w.calculatedDuration=e4(w));let{calculatedDuration:C}=w,M=1/0,V=1/0;null!==C&&(V=(M=C+s)*(o+1)-s);let R=0,k=t=>{if(null===T)return;y>0&&(T=Math.min(T,t)),y<0&&(T=Math.min(t-V/y,T));let n=(R=null!==S?S:Math.round(t-T)*y)-e*(y>=0?1:-1),i=y>=0?n<0:n>V;R=Math.max(n,0),"finished"===E&&null===S&&(R=V);let l=R,u=w;if(o){let t=Math.min(R,V)/M,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,o+1))%2&&("reverse"===a?(n=1-n,s&&(n-=s/M)):"mirror"===a&&(u=g)),l=z(0,1,n)*M}let c=i?{done:!1,value:r[0]}:u.next(l);v&&(c.value=v(c.value));let{done:d}=c;i||null===C||(d=y>=0?R>=V:R<=0);let f=null===S&&("finished"===E||"running"===E&&d);return h&&h(c.value),f&&O(),c},D=()=>{m&&m.stop(),m=void 0},j=()=>{E="idle",D(),f(),x(),T=A=null},O=()=>{E="finished",c&&c(),D(),f()},L=()=>
9{if(b)return;m||(m=n(k));let t=m.now();l&&l(),null!==S?T=t-S:T&&"finished"!==E||(T=t),"finished"===E&&x(),A=T,S=null,E="running",m.start()};t&&L();let F={then:(t,e)=>p.then(t,e),get time(){return t8(R)},set time(newTime){R=newTime=t9(newTime),null===S&&m&&0!==y?T=m.now()-newTime/y:S=newTime},get duration(){return t8(null===w.calculatedDuration?e4(w):w.calculatedDuration)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!m)return;y=newSpeed,F.time=t8(R)},get state(){return E},play:L,pause:()=>{E="paused",S=R},stop:()=>{b=!0,"idle"!==E&&(E="idle",u&&u(),j())},cancel:()=>{null!==A&&k(A),j()},complete:()=>{E="finished"},sample:t=>(T=0,k(t))};return F}let e7=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===r&&(r=o()),r)),nt=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),ne=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&en[e]||et(e)||Array.isArray(e)&&e.every(t))}(e.ease),nn={type:"spring",stiffness:500,damping:25,restSpeed:10},nr=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),ni={type:"keyframes",duration:.8},no={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ns=(t,{keyframes:e})=>e.length>2?ni:D.has(t)?t.startsWith("scale")?nr(e[1]):nn:no,na=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eU.test(e)||"0"===e)&&!e.startsWith("url(")),nl=new Set(["brightness","contrast","saturate","opacity"]);function nu(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=n.match(G)||[];if(!r)return t;let i=n.replace(r,""),o=nl.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}let nc=/([a-z-]*)\(.*?\)/g,nh={...eU,getAnimatableNone:t=>{let e=t.match(nc);return e?e.map(nu).join(" "):t}},nd={...ti,color:eA,backgroundColor:eA,outlineColor:eA,fill:eA,stroke:eA,borderColor:eA,borderTopColor:eA,borderRightColor:eA,borderBottomColor:eA,borderLeftColor:eA,filter:nh,WebkitFilter:nh},nf=t=>nd[t];function np(t,e){let n=nf(t);return n!==nh&&(n=eU),n.getAnimatableNone?n.getAnimatableNone(e):void 0}let nm=t=>/^0[^.\s]+$/.test(t);function nv(t,e){return t[e]||t.default||t}let ng={skipAnimations:!1},ny=(t,e,n,r={})=>i=>{let o=nv(r,t)||{},s=o.delay||r.delay||0,{elapsed:a=0}=r;a-=t9(s);let l=function(t,e,n,r){let i,o;let s=na(e,n);i=Array.isArray(n)?[...n]:[null,n];let a=void 0!==r.from?r.from:t.get(),l=[];for(let t=0;t<i.length;t++){var u;null===i[t]&&(i[t]=0===t?a:i[t-1]),("number"==typeof(u=i[t])?0===u:null!==u?"none"===u||"0"===u||nm(u):void 0)&&l.push(t),"string"==typeof i[t]&&"none"!==i[t]&&"0"!==i[t]&&(o=i[t])}if(s&&l.length&&o)for(let t=0;t<l.length;t++)i[l[t]]=np(e,o);return i}(e,t,n,o),u=l[0],c=l[l.length-1],h=na(t,u),d=na(t,c);(0,t4.K)(h===d,`You are trying to animate ${t} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let f={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&(f={...f,...ns(t,f)}),f.duration&&(f.duration=t9(f.duration)),f.repeatDelay&&(f.repeatDelay=t9(f.repeatDelay)),!h||!d||t7.current||!1===o.type||ng.skipAnimations)return function({keyframes:t,delay:e,onUpdate:n,onComplete:r}){let i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:tq.Z,pause:tq.Z,stop:tq.Z,then:t=>(t(),Promise.resolve()),cancel:tq.Z,complete:tq.Z});return e?e8({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}(t7.current?{...f,delay:0}:f);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate){let n=function(t,e,{onUpdate:n,onComplete:r,...i}){let o,s;if(!(e7()&&nt.has(e)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let a=!1,l=!1,u=()=>{s=new Promise(t=>{o=t})};u();let{keyframes:c,duration:h=300,ease:d,times:f}=i;
9if(ne(e,i)){let t=e8({...i,repeat:0,delay:0}),e={done:!1,value:c[0]},n=[],r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;f=void 0,c=n,h=r-10,d="linear"}let p=function(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){let u={[e]:n};l&&(u.offset=l);let c=function t(e){if(e)return et(e)?ee(e):Array.isArray(e)?e.map(t):en[e]}(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,c,{...i,duration:h,ease:d,times:f}),m=()=>{l=!1,p.cancel()},v=()=>{l=!0,tV.Wi.update(m),o(),u()};return p.onfinish=()=>{l||(t.set(function(t,{repeat:e,repeatType:n="loop"}){let r=e&&"loop"!==n&&e%2==1?0:t.length-1;return t[r]}(c,i)),r&&r(),v())},{then:(t,e)=>s.then(t,e),attachTimeline:t=>(p.timeline=t,p.onfinish=null,tq.Z),get time(){return t8(p.currentTime||0)},set time(newTime){p.currentTime=t9(newTime)},get speed(){return p.playbackRate},set speed(newSpeed){p.playbackRate=newSpeed},get duration(){return t8(h)},play:()=>{a||(p.play(),(0,tV.Pn)(m))},pause:()=>p.pause(),stop:()=>{if(a=!0,"idle"===p.playState)return;let{currentTime:e}=p;if(e){let n=e8({...i,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}v()},complete:()=>{l||p.finish()},cancel:v}}(e,t,f);if(n)return n}return e8(f)};function nb(t){return!!(O(t)&&t.add)}let nx=t=>/^\-?\d*\.?\d+$/.test(t);function nP(t,e){-1===t.indexOf(e)&&t.push(e)}function nw(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}class nE{constructor(){this.subscriptions=[]}add(t){return nP(this.subscriptions,t),()=>nw(this.subscriptions,t)}notify(t,e,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let nS=t=>!isNaN(parseFloat(t)),nT={current:void 0};class nA{constructor(t,e={}){this.version="10.18.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:n,timestamp:r}=tV.frameData;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,tV.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>tV.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=nS(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new nE);let n=this.events[t].add(e);return"change"===t?()=>{n(),tV.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return nT.current&&nT.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t,e;return this.canTrackVelocity?(t=parseFloat(this.current)-parseFloat(this.prev),(e=this.timeDelta)?1e3/e*t:0):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function nC(t,e){return new nA(t,e)}let nM=t=>e=>e.test(t),nV=[U,Q,J,K,te,tt,{test:t=>"auto"===t,parse:t=>t}],nR=t=>nV.find(nM(t)),nk=[...nV,eA,eU],nD=t=>nk.find(nM(t));function nj(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");r&&(o=r);let u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(let e in a){let r=t.getValue(e),i=a[e];if(!r||void 0===i||c&&function({protectedKeys:t,needsAnimating:e},n){let r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}(c,e))continue;let s={delay:n,elapsed:0,...nv(o||{},e)};if(window.HandoffAppearAnimations){let n=t.getProps()[f];if(n){let t=window.HandoffAppearAnimations(n,e,r,tV.Wi);null!==t&&(s.elapsed=t,s.isHandoff=!0)}}let h=!s.isHandoff&&!function(t,e){let n=t.get();if(!Array.isArray(e))return n!==e;for(let t=0;t<e.length;t++)if(e[t]!==n)return!0}(r,i);if("spring"===s.type&&(r.getVelocity()||s.velocity)&&(h=!1),r.animation&&(h=!1),h)continue;r.start(ny(e,r,i,t.shouldReduceMotion&&D.has(e)?{type:!1}:s));let d=r.animation;nb(l)&&(l.add(e),d.then(()=>l.remove(e))),u.push(d)}return s&&Promise.all(u).then(()=>{s&&function(t,e){let n=t6(t,e),{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};for(let e in o={...o,...r}){let n=tA(o[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,nC(n))}}(t,s)}),u}function nO(t,e,n={}){let r=t6(t,e,n.custom),{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(nj(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(t,e,n=0,r=0,i=1,o){let s=[],a=(t.variantChildren.size-1)*r,l=1===i?(t=0)=>t*r:(t=0)=>a-t*r;
9return Array.from(t.variantChildren).sort(nL).forEach((t,r)=>{t.notify("AnimationStart",e),s.push(nO(t,e,{...o,delay:n+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(s)}(t,e,o+r,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(n.delay)]);{let[t,e]="beforeChildren"===a?[o,s]:[s,o];return t().then(()=>e())}}function nL(t,e){return t.sortNodePosition(e)}let nF=[...g].reverse(),nI=g.length;function nN(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class nB extends t${constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>nO(t,e,n)));else if("string"==typeof e)r=nO(t,e,n);else{let i="function"==typeof e?t6(t,e,n.custom):e;r=Promise.all(nj(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))})(t,e,n))),n={animate:nN(!0),whileInView:nN(),whileHover:nN(),whileTap:nN(),whileDrag:nN(),whileFocus:nN(),exit:nN()},r=!0,i=(e,n)=>{let r=t6(t,n);if(r){let{transition:t,transitionEnd:n,...i}=r;e={...e,...i,...n}}return e};function o(o,s){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set,h={},d=1/0;for(let e=0;e<nI;e++){var f;let p=nF[e],g=n[p],y=void 0!==a[p]?a[p]:l[p],b=m(y),x=p===s?g.isActive:null;!1===x&&(d=e);let P=y===l[p]&&y!==a[p]&&b;if(P&&r&&t.manuallyAnimateOnMount&&(P=!1),g.protectedKeys={...h},!g.isActive&&null===x||!y&&!g.prevProp||v(y)||"boolean"==typeof y)continue;let w=(f=g.prevProp,("string"==typeof y?y!==f:!!Array.isArray(y)&&!t3(y,f))||p===s&&g.isActive&&!P&&b||e>d&&b),E=!1,S=Array.isArray(y)?y:[y],T=S.reduce(i,{});!1===x&&(T={});let{prevResolvedValues:A={}}=g,C={...A,...T},M=t=>{w=!0,c.has(t)&&(E=!0,c.delete(t)),g.needsAnimating[t]=!0};for(let t in C){let e=T[t],n=A[t];if(!h.hasOwnProperty(t))(tS(e)&&tS(n)?t3(e,n):e===n)?void 0!==e&&c.has(t)?M(t):g.protectedKeys[t]=!0:void 0!==e?M(t):c.add(t)}g.prevProp=y,g.prevResolvedValues=T,g.isActive&&(h={...h,...T}),r&&t.blockInitialAnimation&&(w=!1),w&&(!P||E)&&u.push(...S.map(t=>({animation:t,options:{type:p,...o}})))}if(c.size){let e={};
9c.forEach(n=>{let r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)}),u.push({animation:e})}let p=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(p=!1),r=!1,p?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,r,i){var s;if(n[e].isActive===r)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)}),n[e].isActive=r;let a=o(i,e);for(let t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),v(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let n_=0;class nz extends t${constructor(){super(...arguments),this.id=n_++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let i=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&i.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let nU=(t,e)=>Math.abs(t-e);class nW{constructor(t,e,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=nG(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(t=n.offset,e={x:0,y:0},Math.sqrt(nU(t.x,e.x)**2+nU(t.y,e.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:s}=tV.frameData;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=n$(e,this.transformPagePoint),tV.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nG("pointercancel"===t.type?this.lastMoveEventInfo:n$(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),r&&r(t,o)},!tj(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;let o=n$(tO(t),this.transformPagePoint),{point:s}=o,{timestamp:a}=tV.frameData;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,nG(o,this.history)),this.removeListeners=tN(tF(this.contextWindow,"pointermove",this.handlePointerMove),tF(this.contextWindow,"pointerup",this.handlePointerUp),tF(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tV.Pn)(this.updatePoint)}}function n$(t,e){return e?{point:e(t.point)}:t}function nH(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nG({point:t},e){return{point:t,delta:nH(t,nZ(e)),offset:nH(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null,i=nZ(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>t9(.1)));)n--;if(!r)return{x:0,y:0};let o=t8(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function nZ(t){return t[t.length-1]}function nY(t){return t.max-t.min}function nq(t,e=0,n=.01){return Math.abs(t-e)<=n}function nX(t,e,n,r=.5){t.origin=r,t.originPoint=eC(e.min,e.max,t.origin),t.scale=nY(n)/nY(e),(nq(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=eC(n.min,n.max,t.origin)-t.originPoint,(nq(t.translate)||isNaN(t.translate))&&(t.translate=0)}function nK(t,e,n,r){nX(t.x,e.x,n.x,r?r.originX:void 0),nX(t.y,e.y,n.y,r?r.originY:void 0)}function nJ(t,e,n){t.min=n.min+e.min,t.max=t.min+nY(e)}function nQ(t,e,n){t.min=e.min-n.min,t.max=t.min+nY(e)}function n0(t,e,n){nQ(t.x,e.x,n.x),nQ(t.y,e.y,n.y)}function n1(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function n2(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function n5(t,e,n){return{min:n3(t,e),max:n3(t,n)}}function n3(t,e){return"number"==typeof t?t:t[e]||0}let n6=()=>({translate:0,scale:1,origin:0,originPoint:0}),n4=()=>({x:n6(),y:n6()}),n9=()=>({min:0,max:0}),n8=()=>({x:n9(),y:n9()});function n7(t){return[t("x"),t("y")]}function rt({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function re(t){return void 0===t||1===t}function rn({scale:t,scaleX:e,scaleY:n}){return!re(t)||!re(e)||!re(n)}function rr(t){return rn(t)||ri(t)||t.z||t.rotate||t.rotateX||t.rotateY}function ri(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function ro(t,e,n,r,i){return void 0!==i&&(t=r+i*(t-r)),r+n*(t-r)+e}function rs(t,e=0,n=1,r,i){t.min=ro(t.min,e,n,r,i),t.max=ro(t.max,e,n,r,i)}function ra(t,{x:e,y:n}){rs(t.x,e.translate,e.scale,e.originPoint),rs(t.y,n.translate,n.scale,n.originPoint)}function rl(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function ru(t,e){t.min=t.min+e,t.max=t.max+e}function rc(t,e,[n,r,i]){let o=void 0!==e[i]?e[i]:.5,s=eC(t.min,t.max,o);rs(t,e[n],e[r],s,e.scale)}let rh=["x","scaleX","originX"],rd=["y","scaleY","originY"];function rf(t,e){rc(t.x,e,rh),rc(t.y,e,rd)}function rp(t,e){return rt(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let rm=({current:t})=>t?t.ownerDocument.defaultView:null,rv=new WeakMap;class rg{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=n8(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new nW(t,{onSessionStart:t=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tO(t,"page").point)},onStart:(t,e)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tU(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),n7(t=>{let e=this.getAxisMotionValue(t).get()||0;if(J.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[t];if(r){let t=nY(r);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),i&&tV.Wi.update(()=>i(t,e),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>n7(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:rm(this.visualElement)})}stop(t,e){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&tV.Wi.update(()=>i(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){let{drag:r}=this.getProps();if(!n||!ry(t,r,this.currentDirection))return;let i=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?eC(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?eC(n,t,r.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,i=this.constraints;e&&p(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:n,bottom:r,right:i}){return{x:n1(t.x,n,i),y:n1(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:n5(t,"left","right"),y:n5(t,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&n7(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!p(e))return!1;let r=e.current;(0,t4.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(t,e,n){let r=rp(t,n),{scroll:i}=e;return i&&(ru(r.x,i.offset.x),ru(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s={x:n2((t=i.layout.layoutBox).x,o.x),y:n2(t.y,o.y)};if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=rt(t))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(n7(s=>{if(!ry(s,e,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return n.start(ny(t,n,0,e))}stopAnimation(){n7(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){n7(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){n7(e=>{let{drag:n}=this.getProps();if(!ry(e,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(e);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[e];i.set(t[e]-eC(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;
9if(!p(e)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};n7(t=>{let e=this.getAxisMotionValue(t);if(e){let n=e.get();r[t]=function(t,e){let n=.5,r=nY(t),i=nY(e);return i>r?n=eY(e.min,e.max-r,t.min):r>i&&(n=eY(t.min,t.max-i,e.min)),z(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),n7(e=>{if(!ry(e,t,null))return;let n=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];n.set(eC(i,o,r[e]))})}addListeners(){if(!this.visualElement.current)return;rv.set(this.visualElement,this);let t=tF(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();p(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();let i=tD(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(n7(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{i(),t(),r(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function ry(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class rb extends t${constructor(t){super(t),this.removeGroupControls=tq.Z,this.removeListeners=tq.Z,this.controls=new rg(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tq.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let rx=t=>(e,n)=>{t&&tV.Wi.update(()=>t(e,n))};class rP extends t${constructor(){super(...arguments),this.removePointerDownListener=tq.Z}onPointerDown(t){this.session=new nW(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rm(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rx(t),onStart:rx(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&tV.Wi.update(()=>r(t,e))}}}mount(){this.removePointerDownListener=tF(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rE(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rS={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Q.test(t))return t;t=parseFloat(t)}let n=rE(t,e.target.x),r=rE(t,e.target.y);return`${n}% ${r}%`}};class rT extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;Object.assign(R,rC),i&&(e.group&&e.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rw.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===i||(i?o.promote():o.relegate()||tV.Wi.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rA(t){let[e,n]=function(){let t=(0,s.useContext)(u.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:r}=t,i=(0,s.useId)();return(0,s.useEffect)(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}(),r=(0,s.useContext)(T.p);return s.createElement(rT,{...t,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(A),isPresent:e,safeToRemove:n})}let rC={borderRadius:{...rS,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rS,borderTopRightRadius:rS,borderBottomLeftRadius:rS,borderBottomRightRadius:rS,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let r=eU.parse(t);if(r.length>5)return t;let i=eU.createTransformer(t),o="number"!=typeof r[0]?1:0,s=n.x.scale*e.x,a=n.y.scale*e.y;r[0+o]/=s,r[1+o]/=a;let l=eC(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}},rM=["TopLeft","TopRight","BottomLeft","BottomRight"],rV=rM.length,rR=t=>"string"==typeof t?parseFloat(t):t,rk=t=>"number"==typeof t||Q.test(t);function rD(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rj=rL(0,.5,ed),rO=rL(.5,.95,tq.Z);function rL(t,e,n){return r=>r<t?0:r>e?1:n(eY(t,e,r))}function rF(t,e){t.min=e.min,t.max=e.max}function rI(t,e){rF(t.x,e.x),rF(t.y,e.y)}function rN(t,e,n,r,i){return t-=e,t=r+1/n*(t-r),void 0!==i&&(t=r+1/i*(t-r)),t}function rB(t,e,[n,r,i],o,s){!function(t,e=0,n=1,r=.5,i,o=t,s=t){if(J.test(e)&&(e=parseFloat(e),e=eC(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=eC(o.min,o.max,r);t===o&&(a-=e),t.min=rN(t.min,e,n,a,i),t.max=rN(t.max,e,n,a,i)}(t,e[n],e[r],e[i],e.scale,o,s)}let r_=["x","scaleX","originX"],rz=["y","scaleY","originY"];function rU(t,e,n,r){rB(t.x,e,r_,n?n.x:void 0,r?r.x:void 0),rB(t.y,e,rz,n?n.y:void 0,r?r.y:void 0)}function rW(t){return 0===t.translate&&1===t.scale}function r$(t){return rW(t.x)&&rW(t.y)}function rH(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function rG(t){return nY(t.x)/nY(t.y)}class rZ{constructor(){this.members=[]}add(t){nP(this.members,t),t.scheduleRender()}remove(t){if(nw(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
9}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function rY(t,e,n){let r="",i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){let{rotate:t,rotateX:e,rotateY:i}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),i&&(r+=`rotateY(${i}deg) `)}let s=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==s||1!==a)&&(r+=`scale(${s}, ${a})`),r||"none"}let rq=(t,e)=>t.depth-e.depth;class rX{constructor(){this.children=[],this.isDirty=!1}add(t){nP(this.children,t),this.isDirty=!0}remove(t){nw(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rq),this.isDirty=!1,this.children.forEach(t)}}let rK=["","X","Y","Z"],rJ={visibility:"hidden"},rQ=0,r0={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function r1({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(t={},n=null==e?void 0:e()){this.id=rQ++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,r0.totalNodes=r0.resolvedTargetDeltas=r0.recalculatedProjection=0,this.nodes.forEach(r3),this.nodes.forEach(ie),this.nodes.forEach(ir),this.nodes.forEach(r6),window.MotionDebug&&window.MotionDebug.record(r0)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,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 t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rX)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new nE),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),t){let n;let r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=performance.now(),r=({timestamp:e})=>{let i=e-n;i>=250&&((0,tV.Pn)(r),t(i-250))};return tV.Wi.read(r,!0),()=>(0,tV.Pn)(r)}(r,0),rw.hasAnimatedSinceResize&&(rw.hasAnimatedSinceResize=!1,this.nodes.forEach(it))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||iu,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!rH(this.targetLayout,r)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...nv(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||it(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,tV.Pn)(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.forEac
9h(ii),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r9);return}this.isUpdating||this.nodes.forEach(r8),this.isUpdating=!1,this.nodes.forEach(r7),this.nodes.forEach(r2),this.nodes.forEach(r5),this.clearAllSnapshots();let t=performance.now();tV.frameData.delta=z(0,1e3/60,t-tV.frameData.timestamp),tV.frameData.timestamp=t,tV.frameData.isProcessing=!0,tV.S6.update.process(tV.frameData),tV.S6.preRender.process(tV.frameData),tV.S6.render.process(tV.frameData),tV.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(r4),this.sharedNodes.forEach(io)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tV.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tV.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=n8(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!r$(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;t&&(e||rr(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),r=this.removeElementScroll(n);return t&&(r=this.removeTransform(r)),id((e=r).x),id(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return n8();let e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(ru(e.x,n.offset.x),ru(e.y,n.offset.y)),e}removeElementScroll(t){let e=n8();rI(e,t);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){rI(e,t);let{scroll:n}=this.root;n&&(ru(e.x,-n.offset.x),ru(e.y,-n.offset.y))}ru(e.x,i.offset.x),ru(e.y,i.offset.y)}}return e}applyTransform(t,e=!1){let n=n8();rI(n,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rf(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),rr(r.latestValues)&&rf(n,r.latestValues)}return rr(this.latestValues)&&rf(n,this.latestValues),n}removeTransform(t){let e=n8();rI(e,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!rr(n.latestValues))continue;rn(n.latestValues)&&n.updateSnapshot();let r=n8();rI(r,n.measurePageBox()),rU(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return rr(this.latestValues)&&rU(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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!==tV.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,n,r,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(t||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tV.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n8(),this.relativeTargetOrigin=n8(),n0(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=n8(),this.targetWithTransforms=n8()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,nJ(n.x,r.x,i.x),nJ(n.y,r.
9y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rI(this.target,this.layout.layoutBox),ra(this.target,this.targetDelta)):rI(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=n8(),this.relativeTargetOrigin=n8(),n0(this.relativeTargetOrigin,this.target,t.target),rI(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}r0.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rn(this.parent.latestValues)||ri(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(){var t;let e=this.getLead(),n=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===tV.frameData.timestamp&&(r=!1),r)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;rI(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,r=!1){let i,o;let s=n.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){o=(i=n[a]).projectionDelta;let s=i.instance;(!s||!s.style||"contents"!==s.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rf(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,ra(t,o)),r&&rr(i.latestValues)&&rf(t,i.latestValues))}e.x=rl(e.x),e.y=rl(e.y)}}(this.layoutCorrected,this.treeScale,this.path,n),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=n4(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=n4(),this.projectionDeltaWithTransform=n4());let u=this.projectionTransform;nK(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=rY(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==s||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),r0.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},s=n4();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=n8(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(il));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(is(s.x,t.x,r),is(s.y,t.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p;n0(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,ia(f.x,p.x,a.x,r),ia(f.y,p.y,a.y,r),n&&(u=this.relativeTarget,d=n,u.x.min===d.x.min&&u.x.max===d.x.max&&u.y.min===d.y.min&&u.y.max===d.y.max)&&(this.isProjectionDirty=!1),n||(n=n8()),rI(n,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,n,r,i,o){i?(t.opacity=eC(0,void 0!==n.opacity?n.opacity:1,rj(r)),t.opacityExit=eC(void 0!==e.opacity?e.opacity:1,0,rO(r))):o&&(t.opacity=eC(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<rV;i++){let o=`border${rM[i]}Radius`,s=rD(e,o),a=rD(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||rk(s)===rk(a)?(t[o]=Math.max(eC(rR(s),rR(a),r),0),(J.test(a)||J.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=eC(e.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,tV.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tV.Wi.update(()=>{rw.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){let r=O(0)?0:nC(0);return r.start(ny("",r,1e3,n)),r.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.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 t=this.getStack();t&&t.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 t=this.getLead(),{targetWithTransforms:e,target:n,layout:r,latestValues:i}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&ip(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||n8();let e=nY(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let r=nY(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}rI(e,n),rf(e,i),nK(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rZ),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;let r={};for(let e=0;e<rK.length;e++){let i="rotate"+rK[e];n[i]&&(r[i]=n[i],t.setStaticValue(i,0))}for(let e in t.render(),r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rJ;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tC(null==t?void 0:t.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=tC(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!rr(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=rY(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,R){if(void 0===s[t])continue;let{correct:e,applyTo:n}=R[t],i="none"===r.transform?s[t]:e(s[t],o);if(n){let t=n.length;for(let e=0;e<t;e++)r[n[e]]=i}else r[t]=i}return this.options.layoutId&&(r.pointerEvents=o===this?tC(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
9resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(r9),this.root.sharedNodes.clear()}}}function r2(t){t.updateLayout()}function r5(t){var e;let n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:i}=t.options,o=n.source!==t.layout.source;"size"===i?n7(t=>{let r=o?n.measuredBox[t]:n.layoutBox[t],i=nY(r);r.min=e[t].min,r.max=r.min+i}):ip(i,n.layoutBox,e)&&n7(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],s=nY(e[r]);i.max=i.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+s)});let s=n4();nK(s,e,n.layoutBox);let a=n4();o?nK(a,t.applyTransform(r,!0),n.measuredBox):nK(a,e,n.layoutBox);let l=!r$(s),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=n8();n0(s,n.layoutBox,i.layoutBox);let a=n8();n0(a,e,o.layoutBox),rH(s,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function r3(t){r0.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function r6(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function r4(t){t.clearSnapshot()}function r9(t){t.clearMeasurements()}function r8(t){t.isLayoutDirty=!1}function r7(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function it(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ie(t){t.resolveTargetDelta()}function ir(t){t.calcProjection()}function ii(t){t.resetRotation()}function io(t){t.removeLeadSnapshot()}function is(t,e,n){t.translate=eC(e.translate,0,n),t.scale=eC(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function ia(t,e,n,r){t.min=eC(e.min,n.min,r),t.max=eC(e.max,n.max,r)}function il(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iu={duration:.45,ease:[.4,0,.1,1]},ic=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),ih=ic("applewebkit/")&&!ic("chrome/")?Math.round:tq.Z;function id(t){t.min=ih(t.min),t.max=ih(t.max)}function ip(t,e,n){return"position"===t||"preserve-aspect"===t&&!nq(rG(e),rG(n),.2)}let im=r1({attachResizeListener:(t,e)=>tD(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iv={current:void 0},ig=r1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iv.current){let t=new im({});t.mount(window),t.setOptions({layoutScroll:!0}),iv.current=t}return iv.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),iy=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ib(t,e,n=1){(0,t4.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,i]=function(t){let e=iy.exec(t);if(!e)return[,];let[,n,r]=e;return[n,r]}(t);if(!r)return;let o=window.getComputedStyle(e).getPropertyValue(r);if(o){let t=o.trim();return nx(t)?parseFloat(t):t}return B(i)?ib(i,e,n+1):i}let ix=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),iP=t=>ix.has(t),iw=t=>Object.keys(t).some(iP),iE=t=>t===U||t===Q,iS=(t,e)=>parseFloat(t.split(", ")[e]),iT=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return iS(i[1],e);{let e=r.match(/^matrix\((.+)\)$/);return e?iS(e[1],t):0}},iA=new Set(["x","y","z"]),iC=k.filter(t=>!iA.has(t)),iM={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:iT(4,13),y:iT(5,14)};iM.translateX=iM.x,iM.translateY=iM.y;let iV=(t,e,n)=>{let r=e.measureViewportBox(),i=getComputedStyle(e.current),{display:o}=i,s={};"none"===o&&e.setStaticValue("display",t.display||"block"),n.forEac
9h(t=>{s[t]=iM[t](r,i)}),e.render();let a=e.measureViewportBox();return n.forEach(n=>{let r=e.getValue(n);r&&r.jump(s[n]),t[n]=iM[n](a,i)}),t},iR=(t,e,n={},r={})=>{e={...e},r={...r};let i=Object.keys(e).filter(iP),o=[],s=!1,a=[];if(i.forEach(i=>{let l;let u=t.getValue(i);if(!t.hasValue(i))return;let c=n[i],h=nR(c),d=e[i];if(tS(d)){let t=d.length,e=null===d[0]?1:0;h=nR(c=d[e]);for(let n=e;n<t&&null!==d[n];n++)l?(0,t4.k)(nR(d[n])===l,"All keyframes must be of the same type"):(l=nR(d[n]),(0,t4.k)(l===h||iE(h)&&iE(l),"Keyframes must be of the same dimension as the current value"))}else l=nR(d);if(h!==l){if(iE(h)&&iE(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof d?e[i]=parseFloat(d):Array.isArray(d)&&l===Q&&(e[i]=d.map(parseFloat))}else(null==h?void 0:h.transform)&&(null==l?void 0:l.transform)&&(0===c||0===d)?0===c?u.set(l.transform(c)):e[i]=h.transform(d):(s||(o=function(t){let e=[];return iC.forEach(n=>{let r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),s=!0),a.push(i),r[i]=void 0!==r[i]?r[i]:e[i],u.jump(d))}}),!a.length)return{target:e,transitionEnd:r};{let n=a.indexOf("height")>=0?window.pageYOffset:null,i=iV(e,t,a);return o.length&&o.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),S.j&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},ik=(t,e,n,r)=>{var i,o;let s=function(t,{...e},n){let r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};for(let i in n&&(n={...n}),t.values.forEach(t=>{let e=t.get();if(!B(e))return;let n=ib(e,r);n&&t.set(n)}),e){let t=e[i];if(!B(t))continue;let o=ib(t,r);o&&(e[i]=o,n||(n={}),void 0===n[i]&&(n[i]=t))}return{target:e,transitionEnd:n}}(t,e,r);return e=s.target,r=s.transitionEnd,i=e,o=r,iw(i)?iR(t,i,n,o):{target:i,transitionEnd:o}},iD={current:null},ij={current:!1},iO=new WeakMap,iL=Object.keys(E),iF=iL.length,iI=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iN=y.length;class iB{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,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.scheduleRender=()=>tV.Wi.render(this.render,!1,!0);let{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=b(e),this.isVariantNode=x(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==s[t]&&O(e)&&(e.set(s[t],!1),nb(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,iO.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),ij.current||function(){if(ij.current=!0,S.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>iD.current=t.matches;t.addListener(e),e()}else iD.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iD.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in iO.delete(this.current),this.projection&&this.projection.unmount(),(0,tV.Pn)(this.notifyUpdate),(0,tV.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let n=D.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tV.Wi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,i){let o,s;for(let t=0;t<iF;t++){let n=iL[t],{isEnabled:r,Feature:i,ProjectionNode:a,MeasureLayout:l}=E[n];a&&(o=a),r(e)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),l&&(s=l))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:!!r||s&&p(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(let t in this.features){let e=this.features[t];
9e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):n8()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<iI.length;e++){let n=iI[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){let{willChange:r}=e;for(let i in e){let o=e[i],s=n[i];if(O(o))t.addValue(i,o),nb(r)&&r.add(i);else if(O(s))t.addValue(i,nC(o,{owner:t})),nb(r)&&r.remove(i);else if(s!==o){if(t.hasValue(i)){let e=t.getValue(i);e.hasAnimated||e.set(o)}else{let e=t.getStaticValue(i);t.addValue(i,nC(void 0!==e?e:o,{owner:t}))}}}for(let r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<iN;t++){let n=y[t],r=this.props[n];(m(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=nC(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=tw(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||O(i)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new nE),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class i_ extends iB{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},i){let o=function(t,e,n){let r={};for(let i in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(i,e);if(void 0!==t)r[i]=t;else{let t=n.getValue(i);t&&(r[i]=t.get())}}return r}(n,t||{},this);if(r&&(e&&(e=r(e)),n&&(n=r(n)),o&&(o=r(o))),i){!function(t,e,n){var r,i;let o=Object.keys(e).filter(e=>!t.hasValue(e)),s=o.length;if(s)for(let a=0;a<s;a++){let s=o[a],l=e[s],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(i=null!==(r=n[s])&&void 0!==r?r:t.readValue(s))&&void 0!==i?i:e[s]),null!=u&&("string"==typeof u&&(nx(u)||nm(u))?u=parseFloat(u):!nD(u)&&eU.test(l)&&(u=np(s,l)),t.addValue(s,nC(u,{owner:t})),void 0===n[s]&&(n[s]=u),null!==u&&t.setBaseTarget(s,u))}}(this,n,o);let t=ik(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class iz extends i_{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(D.has(e)){let t=nf(e);return t&&t.default||0}{let n=window.getComputedStyle(t),r=(N(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return rp(t,e)}build(t,e,n,r){to(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return tx(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;O(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,n,r){tg(t,e,n,r)}}class iU extends i_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(D.has(e)){let t=nf(e);return t&&t.default||0}return e=ty.has(e)?e:d(e),t.getAttribute(e)}measureInstanceViewportBox(){return n8()}scrapeMotionValuesFromProps(t,e){return tP(t,e)}build(t,e,n,r){tp(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){tb(t,e,n,r)}mount(t){this.isSVGTag=tv(t.tagName),super.mount(t)}}let iW=(t,e)=>V(t)?new iU(e,{enableHardwareAcceleration:!1}):new iz(e,{enableHardwareAcceleration:!0}),i$={animation:{Feature:nB},exit:{Feature:nz},inView:{Feature:t5},tap:{Feature:tK},focus:{Feature:tZ},hover:{Feature:tG},pan:{Feature:rP},drag:{Feature:rb,ProjectionNode:ig,MeasureLayout:rA},layout:{ProjectionNode:ig,MeasureLayout:rA}},iH=function(t){function e(e,n={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&function(t){for(let e in t)E[e]={...E[e],...t[e]}}(t);let o=(0,s.forwardRef)(function(o,d){var v;let g;let y={...(0,s.useContext)(a),...o,layoutId:function({layoutId:t}){let e=(0,s.useContext)(T.p).id;return e&&void 0!==t?e+"-"+t:t}(o)},{isStatic:x}=y,w=function(t){let{initial:e,animate:n}=function(t,e){if(b(t)){let{initial:e,animate:n}=t;return{initial:!1===e||m(e)?e:void 0,animate:m(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(l));return(0,s.useMemo)(()=>({initial:e,animate:n}),[P(e),P(n)])}(o),E=r(o,x);if(!x&&S.j){w.visualElement=function(t,e,n,r){let{visualElement:i}=(0,s.useContext)(l),o=(0,s.useContext)(h),d=(0,s.useContext)(u.O),p=(0,s.useContext)(a).reducedMotion,m=(0,s.useRef)();r=r||o.renderer,!m.current&&r&&(m.current=r(t,{visualState:e,parent:i,props:n,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:p}));let v=m.current;(0,s.useInsertionEffect)(()=>{v&&v.update(n,d)});let g=(0,s.useRef)(!!(n[f]&&!window.HandoffComplete));return(0,c.L)(()=>{v&&(v.render(),g.current&&v.animationState&&v.animationState.animateChanges())}),(0,s.useEffect)(()=>{v&&(v.updateFeatures(),!g.current&&v.animationState&&v.animationState.animateChanges(),g.current&&(g.current=!1,window.HandoffComplete=!0))}),v}(i,E,y,e);
9let n=(0,s.useContext)(A),r=(0,s.useContext)(h).strict;w.visualElement&&(g=w.visualElement.loadFeatures(y,r,t,n))}return s.createElement(l.Provider,{value:w},g&&w.visualElement?s.createElement(g,{visualElement:w.visualElement,...y}):null,n(i,o,(v=w.visualElement,(0,s.useCallback)(t=>{t&&E.mount&&E.mount(t),v&&(t?v.mount(t):v.unmount()),d&&("function"==typeof d?d(t):p(d)&&(d.current=t))},[v])),E,x,w.visualElement))});return o[C]=i,o}(t(e,n))}if("undefined"==typeof Proxy)return e;let n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},n,r){return{...V(t)?tR:tk,preloadedFeatures:n,useRender:function(t=!1){return(e,n,r,{latestValues:i},o)=>{let a=(V(e)?function(t,e,n,r){let i=(0,s.useMemo)(()=>{let n=tm();return tp(n,e,{enableHardwareAcceleration:!1},tv(r),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};ta(e,t.style,t),i.style={...e,...i.style}}return i}:function(t,e,n){let r={},i=function(t,e,n){let r=t.style||{},i={};return ta(i,r,t),Object.assign(i,function({transformTemplate:t},e,n){return(0,s.useMemo)(()=>{let r=ts();return to(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}(t,e,n)),t.transformValues?t.transformValues(i):i}(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r})(n,i,o,e),l={...function(t,e,n){let r={};for(let i in t)("values"!==i||"object"!=typeof t.values)&&(tc(i)||!0===n&&tu(i)||!e&&!tu(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),...a,ref:r},{children:u}=n,c=(0,s.useMemo)(()=>O(u)?u.get():u,[u]);return(0,s.createElement)(e,{...l,children:c})}}(e),createVisualElement:r,Component:t}})(t,e,i$,iW))},45487:function(t,e,n){"use strict";n.d(e,{K:function(){return i},k:function(){return o}});var r=n(81662);let i=r.Z,o=r.Z},11741:function(t,e,n){"use strict";n.d(e,{j:function(){return r}});let r="undefined"!=typeof document},81662:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=t=>t},96681:function(t,e,n){"use strict";n.d(e,{h:function(){return i}});var r=n(67294);function i(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},58868:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});var r=n(67294);let i=n(11741).j?r.useLayoutEffect:r.useEffect},71237:function(t,e,n){"use strict";let r;n.d(e,{R:function(){return i}});var i=((r=i||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},80052:function(t,e,n){"use strict";let r,i;n.d(e,{J:function(){return B}});var o=n(67294),s=n(23811),a=n(68354),l=n(32784),u=n(59656),c=n(57110),h=n(39438),d=n(382),f=n(99523),p=n(91034),m=n(85272),v=n(40947),g=n(54751),y=n(51228),b=n(1365),x=n(67257),P=n(58766),w=n(16116),E=n(23233),S=n(83619),T=n(71237),A=((r=A||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),C=((i=C||{})[i.TogglePopover=0]="TogglePopover",i[i.ClosePopover=1]="ClosePopover",i[i.SetButton=2]="SetButton",i[i.SetButtonId=3]="SetButtonId",i[i.SetPanel=4]="SetPanel",i[i.SetPanelId=5]="SetPanelId",i);let M={0:t=>{let e={...t,popoverState:(0,w.E)(t.popoverState,{0:1,1:0})};return 0===e.popoverState&&(e.__demoMode=!1),e},1:t=>1===t.popoverState?t:{...t,popoverState:1},2:(t,e)=>t.button===e.button?t:{...t,button:e.button},3:(t,e)=>t.buttonId===e.buttonId?t:{...t,buttonId:e.buttonId},4:(t,e)=>t.panel===e.panel?t:{...t,panel:e.panel},5:(t,e)=>t.panelId===e.panelId?t:{...t,panelId:e.panelId}},V=(0,o.createContext)(null);function R(t){let e=(0,o.useContext)(V);if(null===e){let e=Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,R),e}return e}V.displayName="PopoverContext";let k=(0,o.createContext)(null);function D(t){let e=(0,o.useContext)(k);if(null===e){let e=Error(`<${t} /> is missing a parent <Popover /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,D),e}return e}k.displayName="PopoverAPIContext";let j=(0,o.createContext)(null);function O(){return(0,o.useContext)(j)}j.displayName="PopoverGroupContext";let L=(0,o.createContext)(null);function F(t,e){return(0,w.E)(e.type,M,t,e)}L.displayName="PopoverPanelContext";let I=S.AN.RenderStrategy|S.AN.Static,N=S.AN.RenderStrategy|S.AN.Static,B=Object.assign((0,S.yV)(function(t,e){var n;let{__demoMode:r=!1,...i}=t,u=(0,o.useRef)(null),c=(0,v.T)(e,(0,v.h)(t=>{u.current=t})),p=(0,o.useRef)([]),g=(0,o.useReducer)(F,{__demoMode:r,popoverState:r?0:1,buttons:p,button:null,buttonId:null,panel:null,panelId:null,beforePanelSentinel:(0,o.createRef)(),afterPanelSentinel:(0,o.createRef)()}),[{popoverState:y,button:x,buttonId:E,panel:T,panelId:A,beforePanelSentinel:C,afterPanelSentinel:M},R]=g,D=(0,f.i)(null!=(n=u.current)?n:x),j=(0,o.useMemo)(()=>
9{if(!x||!T)return!1;for(let t of document.querySelectorAll("body > *"))if(Number(null==t?void 0:t.contains(x))^Number(null==t?void 0:t.contains(T)))return!0;let t=(0,P.GO)(),e=t.indexOf(x),n=(e+t.length-1)%t.length,r=(e+1)%t.length,i=t[n],o=t[r];return!T.contains(i)&&!T.contains(o)},[x,T]),I=(0,h.E)(E),N=(0,h.E)(A),B=(0,o.useMemo)(()=>({buttonId:I,panelId:N,close:()=>R({type:1})}),[I,N,R]),_=O(),z=null==_?void 0:_.registerPopover,U=(0,a.z)(()=>{var t;return null!=(t=null==_?void 0:_.isFocusWithinPopoverGroup())?t:(null==D?void 0:D.activeElement)&&((null==x?void 0:x.contains(D.activeElement))||(null==T?void 0:T.contains(D.activeElement)))});(0,o.useEffect)(()=>null==z?void 0:z(B),[z,B]);let[W,$]=(0,s.k)(),H=(0,m.v)({mainTreeNodeRef:null==_?void 0:_.mainTreeNodeRef,portals:W,defaultContainers:[x,T]});(0,l.O)(null==D?void 0:D.defaultView,"focus",t=>{var e,n,r,i;t.target!==window&&t.target instanceof HTMLElement&&0===y&&(U()||x&&T&&(H.contains(t.target)||null!=(n=null==(e=C.current)?void 0:e.contains)&&n.call(e,t.target)||null!=(i=null==(r=M.current)?void 0:r.contains)&&i.call(r,t.target)||R({type:1})))},!0),(0,d.O)(H.resolveContainers,(t,e)=>{R({type:1}),(0,P.sP)(e,P.tJ.Loose)||(t.preventDefault(),null==x||x.focus())},0===y);let G=(0,a.z)(t=>{R({type:1});let e=t?t instanceof HTMLElement?t:"current"in t&&t.current instanceof HTMLElement?t.current:x:x;null==e||e.focus()}),Z=(0,o.useMemo)(()=>({close:G,isPortalled:j}),[G,j]),Y=(0,o.useMemo)(()=>({open:0===y,close:G}),[y,G]);return o.createElement(L.Provider,{value:null},o.createElement(V.Provider,{value:g},o.createElement(k.Provider,{value:Z},o.createElement(b.up,{value:(0,w.E)(y,{0:b.ZM.Open,1:b.ZM.Closed})},o.createElement($,null,(0,S.sY)({ourProps:{ref:c},theirProps:i,slot:Y,defaultTag:"div",name:"Popover"}),o.createElement(H.MainTreeNode,null))))))}),{Button:(0,S.yV)(function(t,e){let n=(0,u.M)(),{id:r=`headlessui-popover-button-${n}`,...i}=t,[s,l]=R("Popover.Button"),{isPortalled:c}=D("Popover.Button"),h=(0,o.useRef)(null),d=`headlessui-focus-sentinel-${(0,u.M)()}`,m=O(),b=null==m?void 0:m.closeOthers,E=null!==(0,o.useContext)(L);(0,o.useEffect)(()=>{if(!E)return l({type:3,buttonId:r}),()=>{l({type:3,buttonId:null})}},[E,r,l]);let[A]=(0,o.useState)(()=>Symbol()),C=(0,v.T)(h,e,E?null:t=>{if(t)s.buttons.current.push(A);else{let t=s.buttons.current.indexOf(A);-1!==t&&s.buttons.current.splice(t,1)}s.buttons.current.length>1&&console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."),t&&l({type:2,button:t})}),M=(0,v.T)(h,e),V=(0,f.i)(h),k=(0,a.z)(t=>{var e,n,r;if(E){if(1===s.popoverState)return;switch(t.key){case T.R.Space:case T.R.Enter:t.preventDefault(),null==(n=(e=t.target).click)||n.call(e),l({type:1}),null==(r=s.button)||r.focus()}}else switch(t.key){case T.R.Space:case T.R.Enter:t.preventDefault(),t.stopPropagation(),1===s.popoverState&&(null==b||b(s.buttonId)),l({type:0});break;case T.R.Escape:if(0!==s.popoverState)return null==b?void 0:b(s.buttonId);if(!h.current||null!=V&&V.activeElement&&!h.current.contains(V.activeElement))return;t.preventDefault(),t.stopPropagation(),l({type:1})}}),j=(0,a.z)(t=>{E||t.key===T.R.Space&&t.preventDefault()}),F=(0,a.z)(e=>{var n,r;(0,x.P)(e.currentTarget)||t.disabled||(E?(l({type:1}),null==(n=s.button)||n.focus()):(e.preventDefault(),e.stopPropagation(),1===s.popoverState&&(null==b||b(s.buttonId)),l({type:0}),null==(r=s.button)||r.focus()))}),I=(0,a.z)(t=>{t.preventDefault(),t.stopPropagation()}),N=0===s.popoverState,B=(0,o.useMemo)(()=>({open:N}),[N]),_=(0,p.f)(t,h),z=E?{ref:M,type:_,onKeyDown:k,onClick:F}:{ref:C,id:s.buttonId,type:_,"aria-expanded":0===s.popoverState,"aria-controls":s.panel?s.panelId:void 0,onKeyDown:k,onKeyUp:j,onClick:F,onMouseDown:I},U=(0,g.l)(),W=(0,a.z)(()=>{let t=s.panel;t&&(0,w.E)(U.current,{[g.N.Forwards]:()=>(0,P.jA)(t,P.TO.First),[g.N.Backwards]:()=>(0,P.jA)(t,P.TO.Last)})===P.fE.Error&&(0,P.jA)((0,P.GO)().filter(t=>"true"!==t.dataset.headlessuiFocusGuard),(0,w.E)(U.current,{[g.N.Forwards]:P.TO.Next,[g.N.Backwards]:P.TO.Previous}),{relativeTo:s.button})});return o.createElement(o.Fragment,null,(0,S.sY)({ourProps:z,theirProps:i,slot:B,defaultTag:"button",name:"Popover.Button"}),N&&!E&&c&&o.createElement(y._,{id:d,features:y.A.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:W}))}),Overlay:(0,S.yV)(function(t,e){let n=(0,u.M)(),{id:r=`headlessui-popover-overlay-${n}`,...i}=t,[{popoverState:s},l]=R("Popover.Overlay"),c=(0,v.T)(e),h=(0,b.oJ)(),d=null!==h?(h&b.ZM.Open)===b.ZM.Open:0===s,f=(0,a.z)(t=>{if((0,x.P)(t.currentTarget))return t.preventDefault();l({type:1})}),p=(0,o.useMemo)(()=>({open:0===s}),[s]);return(0,S.sY)({ourProps:{ref:c,id:r,"aria-hidden":!0,onClick:f}
9,theirProps:i,slot:p,defaultTag:"div",features:I,visible:d,name:"Popover.Overlay"})}),Panel:(0,S.yV)(function(t,e){let n=(0,u.M)(),{id:r=`headlessui-popover-panel-${n}`,focus:i=!1,...s}=t,[l,h]=R("Popover.Panel"),{close:d,isPortalled:p}=D("Popover.Panel"),m=`headlessui-focus-sentinel-before-${(0,u.M)()}`,x=`headlessui-focus-sentinel-after-${(0,u.M)()}`,E=(0,o.useRef)(null),A=(0,v.T)(E,e,t=>{h({type:4,panel:t})}),C=(0,f.i)(E),M=(0,S.Y2)();(0,c.e)(()=>(h({type:5,panelId:r}),()=>{h({type:5,panelId:null})}),[r,h]);let V=(0,b.oJ)(),k=null!==V?(V&b.ZM.Open)===b.ZM.Open:0===l.popoverState,j=(0,a.z)(t=>{var e;if(t.key===T.R.Escape){if(0!==l.popoverState||!E.current||null!=C&&C.activeElement&&!E.current.contains(C.activeElement))return;t.preventDefault(),t.stopPropagation(),h({type:1}),null==(e=l.button)||e.focus()}});(0,o.useEffect)(()=>{var e;t.static||1===l.popoverState&&(null==(e=t.unmount)||e)&&h({type:4,panel:null})},[l.popoverState,t.unmount,t.static,h]),(0,o.useEffect)(()=>{if(l.__demoMode||!i||0!==l.popoverState||!E.current)return;let t=null==C?void 0:C.activeElement;E.current.contains(t)||(0,P.jA)(E.current,P.TO.First)},[l.__demoMode,i,E,l.popoverState]);let O=(0,o.useMemo)(()=>({open:0===l.popoverState,close:d}),[l,d]),F={ref:A,id:r,onKeyDown:j,onBlur:i&&0===l.popoverState?t=>{var e,n,r,i,o;let s=t.relatedTarget;s&&E.current&&(null!=(e=E.current)&&e.contains(s)||(h({type:1}),(null!=(r=null==(n=l.beforePanelSentinel.current)?void 0:n.contains)&&r.call(n,s)||null!=(o=null==(i=l.afterPanelSentinel.current)?void 0:i.contains)&&o.call(i,s))&&s.focus({preventScroll:!0})))}:void 0,tabIndex:-1},I=(0,g.l)(),B=(0,a.z)(()=>{let t=E.current;t&&(0,w.E)(I.current,{[g.N.Forwards]:()=>{var e;(0,P.jA)(t,P.TO.First)===P.fE.Error&&(null==(e=l.afterPanelSentinel.current)||e.focus())},[g.N.Backwards]:()=>{var t;null==(t=l.button)||t.focus({preventScroll:!0})}})}),_=(0,a.z)(()=>{let t=E.current;t&&(0,w.E)(I.current,{[g.N.Forwards]:()=>{var t;if(!l.button)return;let e=(0,P.GO)(),n=e.indexOf(l.button),r=e.slice(0,n+1),i=[...e.slice(n+1),...r];for(let e of i.slice())if("true"===e.dataset.headlessuiFocusGuard||null!=(t=l.panel)&&t.contains(e)){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}(0,P.jA)(i,P.TO.First,{sorted:!1})},[g.N.Backwards]:()=>{var e;(0,P.jA)(t,P.TO.Previous)===P.fE.Error&&(null==(e=l.button)||e.focus())}})});return o.createElement(L.Provider,{value:r},k&&p&&o.createElement(y._,{id:m,ref:l.beforePanelSentinel,features:y.A.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:B}),(0,S.sY)({mergeRefs:M,ourProps:F,theirProps:s,slot:O,defaultTag:"div",features:N,visible:k,name:"Popover.Panel"}),k&&p&&o.createElement(y._,{id:x,ref:l.afterPanelSentinel,features:y.A.Focusable,"data-headlessui-focus-guard":!0,as:"button",type:"button",onFocus:_}))}),Group:(0,S.yV)(function(t,e){let n=(0,o.useRef)(null),r=(0,v.T)(n,e),[i,s]=(0,o.useState)([]),l=(0,m.H)(),u=(0,a.z)(t=>{s(e=>{let n=e.indexOf(t);if(-1!==n){let t=e.slice();return t.splice(n,1),t}return e})}),c=(0,a.z)(t=>(s(e=>[...e,t]),()=>u(t))),h=(0,a.z)(()=>{var t;let e=(0,E.r)(n);if(!e)return!1;let r=e.activeElement;return!!(null!=(t=n.current)&&t.contains(r))||i.some(t=>{var n,i;return(null==(n=e.getElementById(t.buttonId.current))?void 0:n.contains(r))||(null==(i=e.getElementById(t.panelId.current))?void 0:i.contains(r))})}),d=(0,a.z)(t=>{for(let e of i)e.buttonId.current!==t&&e.close()}),f=(0,o.useMemo)(()=>({registerPopover:c,unregisterPopover:u,isFocusWithinPopoverGroup:h,closeOthers:d,mainTreeNodeRef:l.mainTreeNodeRef}),[c,u,h,d,l.mainTreeNodeRef]),p=(0,o.useMemo)(()=>({}),[]);return o.createElement(j.Provider,{value:f},(0,S.sY)({ourProps:{ref:r},theirProps:t,slot:p,defaultTag:"div",name:"Popover.Group"}),o.createElement(l.MainTreeNode,null))})})},23811:function(t,e,n){"use strict";n.d(e,{h:function(){return b},k:function(){return y}});var r=n(67294),i=n(73935),o=n(68354),s=n(57110),a=n(68916),l=n(99523),u=n(77563),c=n(40947),h=n(89834),d=n(83659),f=n(83619);let p=r.Fragment,m=r.Fragment,v=(0,r.createContext)(null),g=(0,r.createContext)(null);function y(){let t=(0,r.useContext)(g),e=(0,r.useRef)([]),n=(0,o.z)(n=>(e.current.push(n),t&&t.register(n),()=>i(n))),i=(0,o.z)(n=>{let r=e.current.indexOf(n);-1!==r&&e.current.splice(r,1),t&&t.unregister(n)}),s=(0,r.useMemo)(()=>({register:n,unregister:i,portals:e}),[n,i,e]);return[e,(0,r.useMemo)(()=>function({children:t}){return r.createElement(g.Provider,{value:s},t)},[s])]}let b=Object.assign((0,f.yV)(function(t,e){let n=(0,r.useRef)(null),o=(0,c.T)((0,c.h)(t=>{n.current=t}),e),m=(0,l.i)(n),y=function(t){let e=(0,h.n)(),n=(0,r.useContext)(v),i=(0,l.i)(t),[o,s]=(0,r.useState)(()=>
9{if(!e&&null!==n||d.O.isServer)return null;let t=null==i?void 0:i.getElementById("headlessui-portal-root");if(t)return t;if(null===i)return null;let r=i.createElement("div");return r.setAttribute("id","headlessui-portal-root"),i.body.appendChild(r)});return(0,r.useEffect)(()=>{null!==o&&(null!=i&&i.body.contains(o)||null==i||i.body.appendChild(o))},[o,i]),(0,r.useEffect)(()=>{e||null!==n&&s(n.current)},[n,s,e]),o}(n),[b]=(0,r.useState)(()=>{var t;return d.O.isServer?null:null!=(t=null==m?void 0:m.createElement("div"))?t:null}),x=(0,r.useContext)(g),P=(0,u.H)();return(0,s.e)(()=>{!y||!b||y.contains(b)||(b.setAttribute("data-headlessui-portal",""),y.appendChild(b))},[y,b]),(0,s.e)(()=>{if(b&&x)return x.register(b)},[x,b]),(0,a.L)(()=>{var t;y&&b&&(b instanceof Node&&y.contains(b)&&y.removeChild(b),y.childNodes.length<=0&&(null==(t=y.parentElement)||t.removeChild(y)))}),P&&y&&b?(0,i.createPortal)((0,f.sY)({ourProps:{ref:o},theirProps:t,defaultTag:p,name:"Portal"}),b):null}),{Group:(0,f.yV)(function(t,e){let{target:n,...i}=t,o={ref:(0,c.T)(e)};return r.createElement(v.Provider,{value:n},(0,f.sY)({ourProps:o,theirProps:i,defaultTag:m,name:"Popover.Group"}))})})},32784:function(t,e,n){"use strict";n.d(e,{O:function(){return o}});var r=n(67294),i=n(39438);function o(t,e,n,o){let s=(0,i.E)(n);(0,r.useEffect)(()=>{function n(t){s.current(t)}return(t=null!=t?t:window).addEventListener(e,n,o),()=>t.removeEventListener(e,n,o)},[t,e,o])}},68354:function(t,e,n){"use strict";n.d(e,{z:function(){return o}});var r=n(67294),i=n(39438);let o=function(t){let e=(0,i.E)(t);return r.useCallback((...t)=>e.current(...t),[e])}},59656:function(t,e,n){"use strict";n.d(e,{M:function(){return l}});var r,i=n(67294),o=n(83659),s=n(57110),a=n(77563);let l=null!=(r=i.useId)?r:function(){let t=(0,a.H)(),[e,n]=i.useState(t?()=>o.O.nextId():null);return(0,s.e)(()=>{null===e&&n(o.O.nextId())},[e]),null!=e?""+e:void 0}},57110:function(t,e,n){"use strict";n.d(e,{e:function(){return o}});var r=n(67294),i=n(83659);let o=(t,e)=>{i.O.isServer?(0,r.useEffect)(t,e):(0,r.useLayoutEffect)(t,e)}},39438:function(t,e,n){"use strict";n.d(e,{E:function(){return o}});var r=n(67294),i=n(57110);function o(t){let e=(0,r.useRef)(t);return(0,i.e)(()=>{e.current=t},[t]),e}},68916:function(t,e,n){"use strict";n.d(e,{L:function(){return s}});var r=n(67294),i=n(27378),o=n(68354);function s(t){let e=(0,o.z)(t),n=(0,r.useRef)(!1);(0,r.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,i.Y)(()=>{n.current&&e()})}),[e])}},382:function(t,e,n){"use strict";n.d(e,{O:function(){return u}});var r=n(67294),i=n(58766),o=n(66061),s=n(39438);function a(t,e,n){let i=(0,s.E)(e);(0,r.useEffect)(()=>{function e(t){i.current(t)}return document.addEventListener(t,e,n),()=>document.removeEventListener(t,e,n)},[t,n])}var l=n(5495);function u(t,e,n=!0){let s=(0,r.useRef)(!1);function u(n,r){if(!s.current||n.defaultPrevented)return;let o=r(n);if(null!==o&&o.getRootNode().contains(o)&&o.isConnected){for(let e of function t(e){return"function"==typeof e?t(e()):Array.isArray(e)||e instanceof Set?e:[e]}(t)){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(o)||n.composed&&n.composedPath().includes(t))return}return(0,i.sP)(o,i.tJ.Loose)||-1===o.tabIndex||n.preventDefault(),e(n,o)}}(0,r.useEffect)(()=>{requestAnimationFrame(()=>{s.current=n})},[n]);let c=(0,r.useRef)(null);a("pointerdown",t=>{var e,n;s.current&&(c.current=(null==(n=null==(e=t.composedPath)?void 0:e.call(t))?void 0:n[0])||t.target)},!0),a("mousedown",t=>{var e,n;s.current&&(c.current=(null==(n=null==(e=t.composedPath)?void 0:e.call(t))?void 0:n[0])||t.target)},!0),a("click",t=>{(0,o.tq)()||c.current&&(u(t,()=>c.current),c.current=null)},!0),a("touchend",t=>u(t,()=>t.target instanceof HTMLElement?t.target:null),!0),(0,l.s)("blur",t=>u(t,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},99523:function(t,e,n){"use strict";n.d(e,{i:function(){return o}});var r=n(67294),i=n(23233);function o(...t){return(0,r.useMemo)(()=>(0,i.r)(...t),[...t])}},91034:function(t,e,n){"use strict";n.d(e,{f:function(){return s}});var r=n(67294),i=n(57110);function o(t){var e;if(t.type)return t.type;let n=null!=(e=t.as)?e:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function s(t,e){let[n,s]=(0,r.useState)(()=>o(t));return(0,i.e)(()=>{s(o(t))},[t.type,t.as]),(0,i.e)(()=>{n||e.current&&e.current instanceof HTMLButtonElement&&!e.current.hasAttribute("type")&&s("button")},[n,e]),n}},85272:function(t,e,n){"use strict";n.d(e,{H:function(){return l},v:function(){return a}});var r=n(67294),i=n(51228),o=n(68354),s=n(99523);function a({defaultContainers:t=[],portals:e,mainTreeNodeRef:n}={}){var a;let l=(0,r.useRef)(null!=(a=null==n?void 0:n.current)?a:null),u=(0,s.i)(l),c=(0,o.z)(()=>{var n,r,i;let o=[];for(let e of t)null!==e&&(e instanceof HTMLElement?o.push(e):"current"in e&&e.current instanceof HTMLElement&&o.push(e.current));if(null!=e&&e.current)for(let t of e.current)o.push(t);for(let t of null!=(n=null==u?void 0:u.querySelectorAll("html > *, body > *"))?n:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(l.current)||t.contains(null==(i=null==(r=l.current)?void 0:r.getRootNode())?void 0:i.host)||o.some(e=>t.contains(e))||o.push(t));return o}
9);return{resolveContainers:c,contains:(0,o.z)(t=>c().some(e=>e.contains(t))),mainTreeNodeRef:l,MainTreeNode:(0,r.useMemo)(()=>function(){return null!=n?null:r.createElement(i._,{features:i.A.Hidden,ref:l})},[l,n])}}function l(){let t=(0,r.useRef)(null);return{mainTreeNodeRef:t,MainTreeNode:(0,r.useMemo)(()=>function(){return r.createElement(i._,{features:i.A.Hidden,ref:t})},[t])}}},77563:function(t,e,n){"use strict";n.d(e,{H:function(){return s}});var r,i=n(67294),o=n(83659);function s(){let t;let e=(t="undefined"==typeof document,(0,(r||(r=n.t(i,2))).useSyncExternalStore)(()=>()=>{},()=>!1,()=>!t)),[s,a]=i.useState(o.O.isHandoffComplete);return s&&!1===o.O.isHandoffComplete&&a(!1),i.useEffect(()=>{!0!==s&&a(!0)},[s]),i.useEffect(()=>o.O.handoff(),[]),!e&&s}},40947:function(t,e,n){"use strict";n.d(e,{T:function(){return a},h:function(){return s}});var r=n(67294),i=n(68354);let o=Symbol();function s(t,e=!0){return Object.assign(t,{[o]:e})}function a(...t){let e=(0,r.useRef)(t);(0,r.useEffect)(()=>{e.current=t},[t]);let n=(0,i.z)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)});return t.every(t=>null==t||(null==t?void 0:t[o]))?void 0:n}},54751:function(t,e,n){"use strict";let r;n.d(e,{N:function(){return s},l:function(){return a}});var i=n(67294),o=n(5495),s=((r=s||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r);function a(){let t=(0,i.useRef)(0);return(0,o.s)("keydown",e=>{"Tab"===e.key&&(t.current=e.shiftKey?1:0)},!0),t}},5495:function(t,e,n){"use strict";n.d(e,{s:function(){return o}});var r=n(67294),i=n(39438);function o(t,e,n){let o=(0,i.E)(e);(0,r.useEffect)(()=>{function e(t){o.current(t)}return window.addEventListener(t,e,n),()=>window.removeEventListener(t,e,n)},[t,n])}},51228:function(t,e,n){"use strict";let r;n.d(e,{A:function(){return o},_:function(){return s}});var i=n(83619),o=((r=o||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let s=(0,i.yV)(function(t,e){var n;let{features:r=1,...o}=t,s={ref:e,"aria-hidden":(2&r)==2||(null!=(n=o["aria-hidden"])?n:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,i.sY)({ourProps:s,theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})})},1365:function(t,e,n){"use strict";let r;n.d(e,{ZM:function(){return s},oJ:function(){return a},up:function(){return l}});var i=n(67294);let o=(0,i.createContext)(null);o.displayName="OpenClosedContext";var s=((r=s||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function a(){return(0,i.useContext)(o)}function l({value:t,children:e}){return i.createElement(o.Provider,{value:t},e)}},89834:function(t,e,n){"use strict";n.d(e,{O:function(){return s},n:function(){return o}});var r=n(67294);let i=(0,r.createContext)(!1);function o(){return(0,r.useContext)(i)}function s(t){return r.createElement(i.Provider,{value:t.force},t.children)}},67257:function(t,e,n){"use strict";function r(t){let e=t.parentElement,n=null;for(;e&&!(e instanceof HTMLFieldSetElement);)e instanceof HTMLLegendElement&&(n=e),e=e.parentElement;let r=(null==e?void 0:e.getAttribute("disabled"))==="";return!(r&&function(t){if(!t)return!1;let e=t.previousElementSibling;for(;null!==e;){if(e instanceof HTMLLegendElement)return!1;e=e.previousElementSibling}return!0}(n))&&r}n.d(e,{P:function(){return r}})},51573:function(t,e,n){"use strict";function r(...t){return Array.from(new Set(t.flatMap(t=>"string"==typeof t?t.split(" "):[]))).filter(Boolean).join(" ")}n.d(e,{A:function(){return r}})},83659:function(t,e,n){"use strict";n.d(e,{O:function(){return a}});var r=Object.defineProperty,i=(t,e,n)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,o=(t,e,n)=>(i(t,"symbol"!=typeof e?e+"":e,n),n);class s{constructor(){o(this,"current",this.detect()),o(this,"handoffState","pending"),o(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}
9detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}}let a=new s},58766:function(t,e,n){"use strict";let r,i,o,s,a;n.d(e,{C5:function(){return y},GO:function(){return p},TO:function(){return h},fE:function(){return d},jA:function(){return x},sP:function(){return v},tJ:function(){return m},z2:function(){return b}});var l=n(16116),u=n(23233);let c=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>`${t}:not([tabindex='-1'])`).join(",");var h=((r=h||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),d=((i=d||{})[i.Error=0]="Error",i[i.Overflow=1]="Overflow",i[i.Success=2]="Success",i[i.Underflow=3]="Underflow",i),f=((o=f||{})[o.Previous=-1]="Previous",o[o.Next=1]="Next",o);function p(t=document.body){return null==t?[]:Array.from(t.querySelectorAll(c)).sort((t,e)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(e.tabIndex||Number.MAX_SAFE_INTEGER)))}var m=((s=m||{})[s.Strict=0]="Strict",s[s.Loose=1]="Loose",s);function v(t,e=0){var n;return t!==(null==(n=(0,u.r)(t))?void 0:n.body)&&(0,l.E)(e,{0:()=>t.matches(c),1(){let e=t;for(;null!==e;){if(e.matches(c))return!0;e=e.parentElement}return!1}})}var g=((a=g||{})[a.Keyboard=0]="Keyboard",a[a.Mouse=1]="Mouse",a);function y(t){null==t||t.focus({preventScroll:!0})}function b(t,e=t=>t){return t.slice().sort((t,n)=>{let r=e(t),i=e(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function x(t,e,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){var o,s,a;let l=Array.isArray(t)?t.length>0?t[0].ownerDocument:document:t.ownerDocument,u=Array.isArray(t)?n?b(t):t:p(t);i.length>0&&u.length>1&&(u=u.filter(t=>!i.includes(t))),r=null!=r?r:l.activeElement;let c=(()=>{if(5&e)return 1;if(10&e)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=(()=>
9{if(1&e)return 0;if(2&e)return Math.max(0,u.indexOf(r))-1;if(4&e)return Math.max(0,u.indexOf(r))+1;if(8&e)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=32&e?{preventScroll:!0}:{},f=0,m=u.length,v;do{if(f>=m||f+m<=0)return 0;let t=h+f;if(16&e)t=(t+m)%m;else{if(t<0)return 3;if(t>=m)return 1}null==(v=u[t])||v.focus(d),f+=c}while(v!==l.activeElement);return 6&e&&null!=(a=null==(s=null==(o=v)?void 0:o.matches)?void 0:s.call(o,"textarea,input"))&&a&&v.select(),2}"undefined"!=typeof document&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",t=>{1===t.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===t.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},16116:function(t,e,n){"use strict";function r(t,e,...n){if(t in e){let r=e[t];return"function"==typeof r?r(...n):r}let i=Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(e).map(t=>`"${t}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,r),i}n.d(e,{E:function(){return r}})},27378:function(t,e,n){"use strict";function r(t){"function"==typeof queueMicrotask?queueMicrotask(t):Promise.resolve().then(t).catch(t=>setTimeout(()=>{throw t}))}n.d(e,{Y:function(){return r}})},23233:function(t,e,n){"use strict";n.d(e,{r:function(){return i}});var r=n(83659);function i(t){return r.O.isServer?null:t instanceof Node?t.ownerDocument:null!=t&&t.hasOwnProperty("current")&&t.current instanceof Node?t.current.ownerDocument:document}},66061:function(t,e,n){"use strict";function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function i(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(e,{gn:function(){return r},tq:function(){return i}})},83619:function(t,e,n){"use strict";let r,i;n.d(e,{AN:function(){return l},Y2:function(){return d},l4:function(){return u},sY:function(){return c},yV:function(){return m}});var o=n(67294),s=n(51573),a=n(16116),l=((r=l||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),u=((i=u||{})[i.Unmount=0]="Unmount",i[i.Hidden=1]="Hidden",i);function c({ourProps:t,theirProps:e,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:l}){l=null!=l?l:f;let u=p(e,t);if(o)return h(u,n,r,s,l);let c=null!=i?i:0;if(2&c){let{static:t=!1,...e}=u;if(t)return h(e,n,r,s,l)}if(1&c){let{unmount:t=!0,...e}=u;return(0,a.E)(t?0:1,{0:()=>null,1:()=>h({...e,hidden:!0,style:{display:"none"}},n,r,s,l)})}return h(u,n,r,s,l)}function h(t,e={},n,r,i){let{as:a=n,children:l,refName:u="ref",...c}=g(t,["unmount","static"]),h=void 0!==t.ref?{[u]:t.ref}:{},d="function"==typeof l?l(e):l;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(e));let f={};if(e){let t=!1,n=[];for(let[r,i]of Object.entries(e))"boolean"==typeof i&&(t=!0),!0===i&&n.push(r);t&&(f["data-headlessui-state"]=n.join(" "))}if(a===o.Fragment&&Object.keys(v(c)).length>0){if(!(0,o.isValidElement)(d)||Array.isArray(d)&&d.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(t=>`  - ${t}`).join(`
10`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(t=>`  - ${t}`).join(`
11`)].join(`
12`));let t=d.props,e="function"==typeof(null==t?void 0:t.className)?(...e)=>(0,s.A)(null==t?void 0:t.className(...e),c.className):(0,s.A)(null==t?void 0:t.className,c.className);return(0,o.cloneElement)(d,Object.assign({},p(d.props,v(g(c,["ref"]))),f,h,{ref:i(d.ref,h.ref)},e?{className:e}:{}))}return(0,o.createElement)(a,Object.assign({},g(c,["ref"]),a!==o.Fragment&&h,a!==o.Fragment&&f),d)}function d(){let t=(0,o.useRef)([]),e=(0,o.useCallback)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)},[]);return(...n)=>{if(!n.every(t=>null==t))return t.current=n,e}}function f(...t){return t.every(t=>null==t)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function p(...t){if(0===t.length)return{};if(1===t.length)return t[0];let e={},n={};for(let r of t)for(let t in r)t.startsWith("on")&&"function"==typeof r[t]?(null!=n[t]||(n[t]=[]),n[t].push(r[t])):e[t]=r[t];if(e.disabled||e["aria-disabled"])return Object.assign(e,Object.fromEntries(Object.keys(n).map(t=>[t,void 0])));for(let t in n)Object.assign(e,{[t](e,...r){for(let i of n[t]){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;i(e,...r)}}});return e}function m(t){var e;return Object.assign((0,o.forwardRef)(t),{displayName:null!=(e=t.displayName)?e:t.name})}function v(t){let e=Object.assign({},t);for(let t in e)void 0===e[t]&&delete e[t];return e}function g(t,e=[]){let n=Object.assign({},t);for(let t of e)t in n&&delete n[t];return n}}}]);

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.