PageSourceSearch

https://www.innovationcodotek.ca/_next/static/chunks/165-4f64b915c…?dpl=dpl_9gthxKTAranMsNXjJ5Yr2BjmoyDr

js innovationcodotek.ca collected 2026-10-02 16:09:00 UTC 186,538 bytes, 3 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{296:(e,t,r)=>{r.d(t,{L:()=>i});let i=(0,r(2115).createContext)({})},737:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return i}});let i=r(8140)._(r(2115)).default.createContext({})},821:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return i}});let r=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},861:(e,t)=>{function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:i=!1}=void 0===e?{}:e;return t||r&&i}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},1124:(e,t)=>{function r(e){var t;let{config:r,src:i,width:n,quality:s}=e,o=s||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(i)+"&w="+n+"&q="+o+(i.startsWith("/_next/static/media/")&&1?"&dpl=dpl_9gthxKTAranMsNXjJ5Yr2BjmoyDr":"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}}),r.__next_img_default=!0;let i=r},1262:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o}});let i=r(2115),n=i.useLayoutEffect,s=i.useEffect;function o(e){let{headManager:t,reduceComponentsToState:r}=e;function o(){if(t&&t.mountedInstances){let n=i.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(n,e))}}return n(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),n(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},1356:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return E}});let i=r(8140),n=r(9417),s=r(5155),o=n._(r(2115)),a=i._(r(7650)),l=i._(r(4841)),u=r(5040),h=r(821),c=r(3455);r(4781);let d=r(9862),p=i._(r(1124)),m=r(3011),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function g(e,t,r,i,n,s,o){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&n(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let i=!1,n=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>i,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{i=!0,t.preventDefault()},stopPropagation:()=>{n=!0,t.stopPropagation()}})}(null==i?void 0:i.current)&&i.current(e)}}))}function y(e){return o.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,o.forwardRef)((e,t)=>{let{src:r,srcSet:i,sizes:n,height:a,width:l,decoding:u,className:h,style:c,fetchPriority:d,placeholder:p,loading:f,unoptimized:v,fill:b,onLoadRef:E,onLoadingCompleteRef:w,setBlurComplete:x,setShowAltText:T,sizesInput:P,onLoad:S,onError:A,...M}=e,C=(0,o.useCallback)(e=>{e&&(A&&(e.src=e.src),e.complete&&g(e,p,E,w,x,v,P))},[r,p,E,w,x,A,v,P]),R=(0,m.useMergedRef)(t,C);return(0,s.jsx)("img",{...M,...y(d),loading:f,width:l,height:a,decoding:u,"data-nimg":b?"fill":"1",className:h,style:c,sizes:n,srcSet:i,src:r,ref:R,onLoad:e=>{g(e.currentTarget,p,E,w,x,v,P)},onError:e=>{T(!0),"empty"!==p&&x(!0),A&&A(e)}})});function b(e){let{isAppRouter:t,imgAttributes:r}=e,i={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...y(r.fetchPriority)};return t&&a.default.preload?(a.default.preload(r.src,i),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...i},"__nimg-"+r.src+r.srcSet+r.sizes)})}let E=(0,o.forwardRef)((e,t)=>{let r=(0,o.useContext)(d.RouterContext),i=(0,o.useContext)(c.ImageConfigContext),n=(0,o.useMemo)(()=>{var e;let t=f||i||h.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>
1e-t),n=t.deviceSizes.sort((e,t)=>e-t),s=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:n,qualities:s}},[i]),{onLoad:a,onLoadingComplete:l}=e,m=(0,o.useRef)(a);(0,o.useEffect)(()=>{m.current=a},[a]);let g=(0,o.useRef)(l);(0,o.useEffect)(()=>{g.current=l},[l]);let[y,E]=(0,o.useState)(!1),[w,x]=(0,o.useState)(!1),{props:T,meta:P}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:n,blurComplete:y,showAltText:w});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{...T,unoptimized:P.unoptimized,placeholder:P.placeholder,fill:P.fill,onLoadRef:m,onLoadingCompleteRef:g,setBlurComplete:E,setShowAltText:x,sizesInput:e.sizes,ref:t}),P.priority?(0,s.jsx)(b,{isAppRouter:!r,imgAttributes:T}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1407:(e,t,r)=>{r.d(t,{I:()=>o});var i=r(2115),n=r(8662),s=r(4741);function o(){s.r.current||(0,n.U)();let[e]=(0,i.useState)(s.O.current);return e}},1847:(e,t,r)=>{r.d(t,{A:()=>a});var i=r(2115);let n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&r.indexOf(e)===t).join(" ")};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let o=(0,i.forwardRef)((e,t)=>{let{color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:u="",children:h,iconNode:c,...d}=e;return(0,i.createElement)("svg",{ref:t,...s,width:o,height:o,stroke:r,strokeWidth:l?24*Number(a)/Number(o):a,className:n("lucide",u),...d},[...c.map(e=>{let[t,r]=e;return(0,i.createElement)(t,r)}),...Array.isArray(h)?h:[h]])}),a=(e,t)=>{let r=(0,i.forwardRef)((r,s)=>{let{className:a,...l}=r;return(0,i.createElement)(o,{ref:s,iconNode:t,className:n("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),a),...l})});return r.displayName="".concat(e),r}},2821:(e,t,r)=>{r.d(t,{$:()=>i});function i(){for(var e,t,r=0,i="",n=arguments.length;r<n;r++)(e=arguments[r])&&(t=function e(t){var r,i,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(i=e(t[r]))&&(n&&(n+=" "),n+=i)}else for(i in t)t[i]&&(n&&(n+=" "),n+=i);return n}(e))&&(i&&(i+=" "),i+=t);return i}},3127:(e,t,r)=>{r.d(t,{Q:()=>i});let i=(0,r(2115).createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"})},3455:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let i=r(8140)._(r(2115)),n=r(821),s=i.default.createContext(n.imageConfigDefault)},3577:(e,t,r)=>{r.d(t,{B:()=>i});let i="undefined"!=typeof window},4105:(e,t)=>{function r(e){let{widthInt:t,heightInt:r,blurWidth:i,blurHeight:n,blurDataURL:s,objectFit:o}=e,a=i?40*i:t,l=n?40*n:r,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"===o?"xMidYMid":"cover"===o?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},4416:(e,t,r)=>{r.d(t,{M:()=>n});var i=r(2115);function n(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}},4652:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return a}});let i=r(8140),n=r(5040),s=r(1356),o=i._(r(1124));function a(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=s.Image},4741:(e,t,r)=>{r.d(t,{O:()=>i,r:()=>n});let i={current:null},n={current:!1}},4841:(e,t,r)=>
1{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return f},defaultHead:function(){return c}});let i=r(8140),n=r(9417),s=r(5155),o=n._(r(2115)),a=i._(r(1262)),l=r(737),u=r(2073),h=r(861);function c(e){void 0===e&&(e=!1);let t=[(0,s.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function d(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(4781);let p=["name","httpEquiv","charSet","itemProp"];function m(e,t){let{inAmpMode:r}=t;return e.reduce(d,[]).reverse().concat(c(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,i={};return n=>{let s=!0,o=!1;if(n.key&&"number"!=typeof n.key&&n.key.indexOf("$")>0){o=!0;let t=n.key.slice(n.key.indexOf("$")+1);e.has(t)?s=!1:e.add(t)}switch(n.type){case"title":case"base":t.has(n.type)?s=!1:t.add(n.type);break;case"meta":for(let e=0,t=p.length;e<t;e++){let t=p[e];if(n.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?s=!1:r.add(t);else{let e=n.props[t],r=i[t]||new Set;("name"!==t||!o)&&r.has(e)?s=!1:(r.add(e),i[t]=r)}}}return s}}()).reverse().map((e,t)=>{let r=e.key||t;return o.default.cloneElement(e,{key:r})})}let f=function(e){let{children:t}=e,r=(0,o.useContext)(l.AmpStateContext),i=(0,o.useContext)(u.HeadManagerContext);return(0,s.jsx)(a.default,{reduceComponentsToState:m,headManager:i,inAmpMode:(0,h.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},5040:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),r(4781);let i=r(4105),n=r(821),s=["-moz-initial","fill","none","scale-down",void 0];function o(e){return void 0!==e.default}function a(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var r,l;let u,h,c,{src:d,sizes:p,unoptimized:m=!1,priority:f=!1,loading:g,className:y,quality:v,width:b,height:E,fill:w=!1,style:x,overrideSrc:T,onLoad:P,onLoadingComplete:S,placeholder:A="empty",blurDataURL:M,fetchPriority:C,decoding:R="async",layout:B,objectFit:L,objectPosition:_,lazyBoundary:I,lazyRoot:D,...H}=e,{imgConf:k,showAltText:N,blurComplete:O,defaultLoader:V}=t,F=k||n.imageConfigDefault;if("allSizes"in F)u=F;else{let e=[...F.deviceSizes,...F.imageSizes].sort((e,t)=>e-t),t=F.deviceSizes.sort((e,t)=>e-t),i=null==(r=F.qualities)?void 0:r.sort((e,t)=>e-t);u={...F,allSizes:e,deviceSizes:t,qualities:i}}if(void 0===V)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let j=H.loader||V;delete H.loader,delete H.srcSet;let U="__next_img_default"in j;if(U){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=j;j=t=>{let{config:r,...i}=t;return e(i)}}if(B){"fill"===B&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[B];e&&(x={...x,...e});let t={responsive:"100vw",fill:"100vw"}[B];t&&!p&&(p=t)}let G="",z=a(b),$=a(E);if((l=d)&&"object"==typeof l&&(o(l)||void 0!==l.src)){let e=o(d)?d.default:d;if(!e.src)throw Object.defineProperty(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(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,
1configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(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(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(h=e.blurWidth,c=e.blurHeight,M=M||e.blurDataURL,G=e.src,!w)if(z||$){if(z&&!$){let t=z/e.width;$=Math.round(e.height*t)}else if(!z&&$){let t=$/e.height;z=Math.round(e.width*t)}}else z=e.width,$=e.height}let W=!f&&("lazy"===g||void 0===g);(!(d="string"==typeof d?d:G)||d.startsWith("data:")||d.startsWith("blob:"))&&(m=!0,W=!1),u.unoptimized&&(m=!0),U&&!u.dangerouslyAllowSVG&&d.split("?",1)[0].endsWith(".svg")&&(m=!0);let X=a(v),K=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:L,objectPosition:_}:{},N?{}:{color:"transparent"},x),Y=O||"empty"===A?null:"blur"===A?'url("data:image/svg+xml;charset=utf-8,'+(0,i.getImageBlurSvg)({widthInt:z,heightInt:$,blurWidth:h,blurHeight:c,blurDataURL:M||"",objectFit:K.objectFit})+'")':'url("'+A+'")',Z=s.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,q=Y?{backgroundSize:Z,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},Q=function(e){let{config:t,src:r,unoptimized:i,width:n,quality:s,sizes:o,loader:a}=e;if(i)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:i,allSizes:n}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let i;i=e.exec(r);)t.push(parseInt(i[2]));if(t.length){let e=.01*Math.min(...t);return{widths:n.filter(t=>t>=i[0]*e),kind:"w"}}return{widths:n,kind:"w"}}return"number"!=typeof t?{widths:i,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>n.find(t=>t>=e)||n[n.length-1]))],kind:"x"}}(t,n,o),h=l.length-1;return{sizes:o||"w"!==u?o:"100vw",srcSet:l.map((e,i)=>a({config:t,src:r,quality:s,width:e})+" "+("w"===u?e:i+1)+u).join(", "),src:a({config:t,src:r,quality:s,width:l[h]})}}({config:u,src:d,unoptimized:m,width:z,quality:X,sizes:p,loader:j});return{props:{...H,loading:W?"lazy":g,fetchPriority:C,width:z,height:$,decoding:R,className:y,style:{...K,...q},sizes:Q.sizes,srcSet:Q.srcSet,src:T||Q.src},meta:{unoptimized:m,priority:f,placeholder:A,fill:w}}}},5239:(e,t,r)=>{r.d(t,{default:()=>n.a});var i=r(4652),n=r.n(i)},5601:(e,t,r)=>{r.d(t,{xQ:()=>s});var i=r(2115),n=r(9686);function s(e=!0){let t=(0,i.useContext)(n.t);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:o,register:a}=t,l=(0,i.useId)();(0,i.useEffect)(()=>{e&&a(l)},[e]);let u=(0,i.useCallback)(()=>e&&o&&o(l),[l,o,e]);return!r&&o?[!1,u]:[!0]}},5889:(e,t,r)=>{r.d(t,{QP:()=>U});let i=(e,t)=>{if(0===e.length)return t.classGroupId;let r=e[0],n=t.nextPart.get(r),s=n?i(e.slice(1),n):void 0;if(s)return s;if(0===t.validators.length)return;let o=e.join("-");return t.validators.find(({validator:e})=>e(o))?.classGroupId},n=/^\[(.+)\]$/,s=(e,t,r,i)=>{e.forEach(e=>{if("string"==typeof e){(""===e?t:o(t,e)).classGroupId=r;return}if("function"==typeof e)return a(e)?void s(e(i),t,r,i):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach(([e,n])=>{s(n,o(t,e),r,i)})})},o=(e,t)=>{let r=e;return t.split("-").forEach(e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)}),r},a=e=>e.isThemeGetter,l=(e,t)=>t?e.map(([e,r])=>[e,r.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,r])=>[t+e,r])):e)]):e,u=e=>{if(e.length<=1)return e;let t=[],r=[];return e.forEach(e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)}),t.push(...r.sort()),t},h=/\s+/;function c(){let e,t,r=0,i="";for(;r<arguments.length;)(e=arguments[r++])&&(t=d(e))&&(i&&(i+=" "),i+=t);return i}let d=e=>{let t;if("string"==typeof e)return e;let r="";for(let i=0;i<e.length;i++)e[i]&&(t=d(e[i]))&&(r&&(r+=" "),r+=t);return r},p=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},m=/^\[(?:([a-z-]+):)?(.+)\]$/i,f=/^\d+\/\d+$/,g=new Set(["px","full","screen"]),y=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,v=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,b=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,w=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,x=e=>P(e)||g.has(e)||f.test(e),T=e=>N(e,"length",O),P=e=>!!e&&!Number.isNaN(Number(e)),S=e=>N(e,"number",P),A=e=>!!e&&Number.isInteger(Number(e)),M=e=>e.endsWith("%")&&P(e.slice(0,-1)),C=e=>m.test(e),R=e=>y.test(e),B=new Set(["length","size","percentage"]),L=e=>N(e,B,V),_=e=>N(e,"position",V),I=new Set(["image","url"]),D=e=>N(e,I,j),H=e=>N(e,"",F),k=()=>!0,N=(e,t,r)=>{let i=m.exec(e);return!!i&&(i[1]?"string"==typeof t?i[1]===t:t.has(i[1]):r(i[2]))},O=e=>v.test(e)&&!b.test(e),V=()=>!1,F=e=>E.test(e),j=e=>w.test(e);Symbol.toStringTag;let U=function(e,...t){let r,o,a,d=function(u){let h;return o=(r={cache:(e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,r=new Map,i=new Map,n=(n,s)=>{r.set(n,s),++t>e&&(t=0,i=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=i.get(e))?(n(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):n(e,t)}}})((h=t.reduce((e,t)=>
1t(e),e())).cacheSize),parseClassName:(e=>{let{separator:t,experimentalParseClassName:r}=e,i=1===t.length,n=t[0],s=t.length,o=e=>{let r,o=[],a=0,l=0;for(let u=0;u<e.length;u++){let h=e[u];if(0===a){if(h===n&&(i||e.slice(u,u+s)===t)){o.push(e.slice(l,u)),l=u+s;continue}if("/"===h){r=u;continue}}"["===h?a++:"]"===h&&a--}let u=0===o.length?e:e.substring(l),h=u.startsWith("!"),c=h?u.substring(1):u;return{modifiers:o,hasImportantModifier:h,baseClassName:c,maybePostfixModifierPosition:r&&r>l?r-l:void 0}};return r?e=>r({className:e,parseClassName:o}):o})(h),...(e=>{let t=(e=>{let{theme:t,prefix:r}=e,i={nextPart:new Map,validators:[]};return l(Object.entries(e.classGroups),r).forEach(([e,r])=>{s(r,i,e,t)}),i})(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{let r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),i(r,t)||(e=>{if(n.test(e)){let t=n.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}})(e)},getConflictingClassGroupIds:(e,t)=>{let i=r[e]||[];return t&&o[e]?[...i,...o[e]]:i}}})(h)}).cache.get,a=r.cache.set,d=p,p(u)};function p(e){let t=o(e);if(t)return t;let i=((e,t)=>{let{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:n}=t,s=[],o=e.trim().split(h),a="";for(let e=o.length-1;e>=0;e-=1){let t=o[e],{modifiers:l,hasImportantModifier:h,baseClassName:c,maybePostfixModifierPosition:d}=r(t),p=!!d,m=i(p?c.substring(0,d):c);if(!m){if(!p||!(m=i(c))){a=t+(a.length>0?" "+a:a);continue}p=!1}let f=u(l).join(":"),g=h?f+"!":f,y=g+m;if(s.includes(y))continue;s.push(y);let v=n(m,p);for(let e=0;e<v.length;++e){let t=v[e];s.push(g+t)}a=t+(a.length>0?" "+a:a)}return a})(e,r);return a(e,i),i}return function(){return d(c.apply(null,arguments))}}(()=>{let e=p("colors"),t=p("spacing"),r=p("blur"),i=p("brightness"),n=p("borderColor"),s=p("borderRadius"),o=p("borderSpacing"),a=p("borderWidth"),l=p("contrast"),u=p("grayscale"),h=p("hueRotate"),c=p("invert"),d=p("gap"),m=p("gradientColorStops"),f=p("gradientColorStopPositions"),g=p("inset"),y=p("margin"),v=p("opacity"),b=p("padding"),E=p("saturate"),w=p("scale"),B=p("sepia"),I=p("skew"),N=p("space"),O=p("translate"),V=()=>["auto","contain","none"],F=()=>["auto","hidden","clip","visible","scroll"],j=()=>["auto",C,t],U=()=>[C,t],G=()=>["",x,T],z=()=>["auto",P,C],$=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],W=()=>["solid","dashed","dotted","double","none"],X=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>["start","end","center","between","around","evenly","stretch"],Y=()=>["","0",C],Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],q=()=>[P,C];return{cacheSize:500,separator:":",theme:{colors:[k],spacing:[x,T],blur:["none","",R,C],brightness:q(),borderColor:[e],borderRadius:["none","","full",R,C],borderSpacing:U(),borderWidth:G(),contrast:q(),grayscale:Y(),hueRotate:q(),invert:Y(),gap:U(),gradientColorStops:[e],gradientColorStopPositions:[M,T],inset:j(),margin:j(),opacity:q(),padding:U(),saturate:q(),scale:q(),sepia:Y(),skew:q(),space:U(),translate:U()},classGroups:{aspect:[{aspect:["auto","square","video",C]}],container:["container"],columns:[{columns:[R]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...$(),C]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}
vendor: 9,885 bytes, line 1
1],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",A,C]}],basis:[{basis:j()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",C]}],grow:[{grow:Y()}],shrink:[{shrink:Y()}],order:[{order:["first","last","none",A,C]}],"grid-cols":[{"grid-cols":[k]}],"col-start-end":[{col:["auto",{span:["full",A,C]},C]}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":[k]}],"row-start-end":[{row:["auto",{span:[A,C]},C]}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",C]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",C]}],gap:[{gap:[d]}],"gap-x":[{"gap-x":[d]}],"gap-y":[{"gap-y":[d]}],"justify-content":[{justify:["normal",...K()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...K(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...K(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[b]}],px:[{px:[b]}],py:[{py:[b]}],ps:[{ps:[b]}],pe:[{pe:[b]}],pt:[{pt:[b]}],pr:[{pr:[b]}],pb:[{pb:[b]}],pl:[{pl:[b]}],m:[{m:[y]}],mx:[{mx:[y]}],my:[{my:[y]}],ms:[{ms:[y]}],me:[{me:[y]}],mt:[{mt:[y]}],mr:[{mr:[y]}],mb:[{mb:[y]}],ml:[{ml:[y]}],"space-x":[{"space-x":[N]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[N]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",C,t]}],"min-w":[{"min-w":[C,t,"min","max","fit"]}],"max-w":[{"max-w":[C,t,"none","full","min","max","fit","prose",{screen:[R]},R]}],h:[{h:[C,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[C,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[C,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[C,t,"auto","min","max","fit"]}],"font-size":[{text:["base",R,T]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",S]}],"font-family":[{font:[k]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",C]}],"line-clamp":[{"line-clamp":["none",P,S]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",x,C]}],"list-image":[{"list-image":["none",C]}],"list-style-type":[{list:["none","disc","decimal",C]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[v]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[v]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",x,T]}],"underline-offset":[{"underline-offset":["auto",x,C]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",C]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",C]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[v]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...$(),_]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",L]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},D]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[f]}],"gradient-via-pos":[{via:[f]}],"gradient-to-pos":[{to:[f]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[a]}],"border-w-x":[{"border-x":[a]}],"border-w-y":[{"border-y":[a]}],"border-w-s":[{"border-s":[a]}],"border-w-e":[{"border-e":[a]}],"border-w-t":[{"border-t":[a]}],"border-w-r":[{"border-r":[a]}],"border-w-b":[{"border-b":[a]}],"border-w-l":[{"border-l":[a]}],"border-opacity":[{"border-opacity":[v]}],"border-style":[{border:[...W(),"hidden"]}],"divide-x":[{"divide-x":[a]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[a]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[v]}],"divide-style":[{divide:W()}],"border-color":[{border:[n]}],"border-color-x":[{"border-x":[n]}],"border-color-y":[{"border-y":[n]}],"border-color-s":[{"border-s":[n]}],"border-color-e":[{"border-e":[n]}],"border-color-t":[{"border-t":[n]}],"border-color-r":[{"border-r":[n]}],"border-color-b":[{"border-b":[n]}],"border-color-l":[{"border-l":[n]}],"divide-color":[{divide:[n]}],"outline-style":[{outline:["",...W()]}],"outline-offset":[{"outline-offset":[x,C]}],"outline-w":[{outline:[x,T]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[v]}],"ring-offset-w":[{"ring-offset":[x,T]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",R,H]}],"shadow-color":[{shadow:[k]}],opacity:[{opacity:[v]}],"mix-blend":[{"mix-blend":[...X(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":X()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[i]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",R,C]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[h]}],invert:[{invert:[c]}],saturate:[{saturate:[E]}],sepia:[{sepia:[B]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[i]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[h]}],"backdrop-invert":[{"backdrop-invert":[c]}],"backdrop-opacity":[{"backdrop-opacity":[v]}],"backdrop-saturate":[{"backdrop-saturate":[E]}],"backdrop-sepia":[{"backdrop-sepia":[B]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",C]}],duration:[{duration:q()}],ease:[{ease:["linear","in","out","in-out",C]}],delay:[{delay:q()}],animate:[{animate:["none","spin","ping","pulse","bounce",C]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[A,C]}],"translate-x":[{"translate-x":[O]}],"translate-y":[{"translate-y":[O]}],"skew-x":[{"skew-x":[I]}],"skew-y":[{"skew-y":[I]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",C]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",C]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}
1],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",C]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[x,T,S]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}})},5937:(e,t,r)=>{let i;function n(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}r.d(t,{P:()=>sn});let s=e=>Array.isArray(e);function o(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function a(e){return"string"==typeof e||Array.isArray(e)}function l(e){let t=[{},{}];return null==e||e.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}
1function u(e,t,r,i){if("function"==typeof t){let[n,s]=l(i);t=t(void 0!==r?r:e.custom,n,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,s]=l(i);t=t(void 0!==r?r:e.custom,n,s)}return t}function h(e,t,r){let i=e.getProps();return u(i,t,void 0!==r?r:i.custom,e)}let c=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...c];function p(e){let t;return()=>(void 0===t&&(t=e()),t)}let m=p(()=>void 0!==window.ScrollTimeline);class f{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e,t){let r=this.animations.map(r=>m()&&r.attachTimeline?r.attachTimeline(e):"function"==typeof t?t(r):void 0);return()=>{r.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class g extends f{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function y(e,t){return e?e[t]||e.default||e:void 0}function v(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}function b(e){return"function"==typeof e}function E(e,t){e.timeline=t,e.onfinish=null}let w=e=>Array.isArray(e)&&"number"==typeof e[0],x={linearEasing:void 0},T=function(e,t){let r=p(e);return()=>{var e;return null!=(e=x[t])?e:r()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),P=(e,t,r)=>{let i=t-e;return 0===i?1:(r-e)/i},S=(e,t,r=10)=>{let i="",n=Math.max(Math.round(t/r),2);for(let t=0;t<n;t++)i+=e(P(0,n-1,t))+", ";return`linear(${i.substring(0,i.length-2)})`},A=([e,t,r,i])=>`cubic-bezier(${e}, ${t}, ${r}, ${i})`,M={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:A([0,.65,.55,1]),circOut:A([.55,0,1,.45]),backIn:A([.31,.01,.66,-.59]),backOut:A([.33,1.53,.69,.99])},C={x:!1,y:!1};function R(e,t){let r=function(e,t,r){if(e instanceof Element)return[e];if("string"==typeof e){let t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),i=new AbortController;return[r,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function B(e){return t=>{"touch"===t.pointerType||C.x||C.y||e(t)}}let L=(e,t)=>!!t&&(e===t||L(e,t.parentElement)),_=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,I=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),D=new WeakSet;function H(e){return t=>{"Enter"===t.key&&e(t)}}function k(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function N(e){return _(e)&&!(C.x||C.y)}let O=e=>1e3*e,V=e=>e,F=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],j=new Set(F),U=new Set(["width","height","top","left","right","bottom",...F]),G=e=>s(e)?e[e.length-1]||0:e,z={skipAnimations:!1,useManualTiming:!1},$=["read","resolveKeyframes","update","preRender","render","postRender"];function W(e,t){let r=!1,i=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,o=$.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,i=!1,n=!1,s=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function a(t){s.has(t)&&(l.schedule(t),e()),t(o)}let l={schedule:(e,n=!1,o=!1)=>{let a=o&&i?t:r;return n&&s.add(e),a.has(e)||a.add(e),e},cancel:e=>{r.delete(e),s.delete(e)},process:e=>{if(o=e,i){n=!0;return}i=!0,[t,r]=[r,t],t.forEach(a),t.clear(),i=!1,n&&(n=!1,l.process(e))}};return l}(s),e),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:c,postRender:d}=o,p=()=>{let s=z.useManualTiming?n.timestamp:performance.now();r=!1,n.delta=i?1e3/60:Math.max(Math.min(s-n.timestamp,40),1),n.timestamp=s,n.isProcessing=!0,a.process(n),l.process(n),u.process(n),h.process(n),c.process(n),d.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(p))};return{schedule:$.reduce((t,s)=>{let a=o[s];return t[s]=(t,s=!1,o=!1)=>(!r&&(r=!0,i=!0,n.isProcessing||e(p)),a.schedule(t,s,o)),t},{}),cancel:e=>{for(let t=0;t<$.length;t++)o[$[t]].cancel(e)},state:n,steps:o}}let{schedule:X,cancel:K,state:Y,steps:Z}=W("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:V,!0);function q(){i=void 0}let Q={now:()=>(void 0===i&&Q.set(Y.isProcessing||z.useManualTiming?Y.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(q)}};function J(e,t){-1===e.indexOf(t)&&e.push(t)}function ee(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class et{constructor(){this.subscriptions=[]}add(e){return J(this.subscriptions,e),()=>ee(this.subscriptions,e)}notify(e,t,r){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,r);else for(let n=0;n<i;n++){let i=this.subscriptions[n];i&&i(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let er={current:void 0};class ei{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=Q.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Q.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new et);let r=this.events[e].add(t);return"change"===e?()=>{r(),X.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return er.current&&er.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=Q.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),r?1e3/r*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function en(e,t){return new ei(e,t)}let es=e=>!!(e&&e.getVelocity);function eo(e,t){let r=e.getValue("willChange");if(es(r)&&r.add)return r.add(t)}let ea=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),el="data-"+ea("framerAppearId"),eu={current:!1},eh=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function ec(e,t,r,i){return e===t&&r===i?V:n=>0===n||1===n?n:eh(function(e,t,r,i,n){let s,o,a=0;do(s=eh(o=t+(r-t)/2,i,n)-e)>0?r=o:t=o;while(Math.abs(s)>1e-7&&++a<12);return o}(n,0,1,e,r),t,i)}let ed=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ep=e=>t=>1-e(1-t),em=ec(.33,1.53,.69,.99),ef=ep(em),eg=ed(ef),ey=e=>(e*=2)<1?.5*ef(e):.5*(2-Math.pow(2,-10*(e-1))),ev=e=>1-Math.sin(Math.acos(e)),eb=ep(ev),eE=ed(ev),ew=e=>/^0[^.\s]+$/u.test(e),ex=(e,t,r)=>r>t?t:r<e?e:r,eT={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},eP={...eT,transform:e=>ex(0,1,e)},eS={...eT,default:1},eA=e=>Math.round(1e5*e)/1e5,eM=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eC=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eR=(e,t)=>r=>!!("string"==typeof r&&eC.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),eB=(e,t,r)=>i=>{if("string"!=typeof i)return i;let[n,s,o,a]=i.match(eM);return{[e]:parseFloat(n),[t]:parseFloat(s),[r]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},eL={...eT,transform:e=>Math.round(ex(0,255,e))},e_={test:eR("rgb","red"),parse:eB("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:i=1})=>"rgba("+eL.transform(e)+", "+eL.transform(t)+", "+eL.transform(r)+", "+eA(eP.transform(i))+")"},eI={test:eR("#"),parse:function(e){let t="",r="",i="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),i=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),i=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,i+=i,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(i,16),alph
1a:n?parseInt(n,16)/255:1}},transform:e_.transform},eD=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),eH=eD("deg"),ek=eD("%"),eN=eD("px"),eO=eD("vh"),eV=eD("vw"),eF={...ek,parse:e=>ek.parse(e)/100,transform:e=>ek.transform(100*e)},ej={test:eR("hsl","hue"),parse:eB("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+ek.transform(eA(t))+", "+ek.transform(eA(r))+", "+eA(eP.transform(i))+")"},eU={test:e=>e_.test(e)||eI.test(e)||ej.test(e),parse:e=>e_.test(e)?e_.parse(e):ej.test(e)?ej.parse(e):eI.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?e_.transform(e):ej.transform(e)},eG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,ez="number",e$="color",eW=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eX(e){let t=e.toString(),r=[],i={color:[],number:[],var:[]},n=[],s=0,o=t.replace(eW,e=>(eU.test(e)?(i.color.push(s),n.push(e$),r.push(eU.parse(e))):e.startsWith("var(")?(i.var.push(s),n.push("var"),r.push(e)):(i.number.push(s),n.push(ez),r.push(parseFloat(e))),++s,"${}")).split("${}");return{values:r,split:o,indexes:i,types:n}}function eK(e){return eX(e).values}function eY(e){let{split:t,types:r}=eX(e),i=t.length;return e=>{let n="";for(let s=0;s<i;s++)if(n+=t[s],void 0!==e[s]){let t=r[s];t===ez?n+=eA(e[s]):t===e$?n+=eU.transform(e[s]):n+=e[s]}return n}}let eZ=e=>"number"==typeof e?0:e,eq={test:function(e){var t,r;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(eM))?void 0:t.length)||0)+((null==(r=e.match(eG))?void 0:r.length)||0)>0},parse:eK,createTransformer:eY,getAnimatableNone:function(e){let t=eK(e);return eY(e)(t.map(eZ))}},eQ=new Set(["brightness","contrast","saturate","opacity"]);function eJ(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=r.match(eM)||[];if(!i)return e;let n=r.replace(i,""),s=+!!eQ.has(t);return i!==r&&(s*=100),t+"("+s+n+")"}let e0=/\b([a-z-]*)\(.*?\)/gu,e1={...eq,getAnimatableNone:e=>{let t=e.match(e0);return t?t.map(eJ).join(" "):e}},e2={...eT,transform:Math.round},e5={borderWidth:eN,borderTopWidth:eN,borderRightWidth:eN,borderBottomWidth:eN,borderLeftWidth:eN,borderRadius:eN,radius:eN,borderTopLeftRadius:eN,borderTopRightRadius:eN,borderBottomRightRadius:eN,borderBottomLeftRadius:eN,width:eN,maxWidth:eN,height:eN,maxHeight:eN,top:eN,right:eN,bottom:eN,left:eN,padding:eN,paddingTop:eN,paddingRight:eN,paddingBottom:eN,paddingLeft:eN,margin:eN,marginTop:eN,marginRight:eN,marginBottom:eN,marginLeft:eN,backgroundPositionX:eN,backgroundPositionY:eN,rotate:eH,rotateX:eH,rotateY:eH,rotateZ:eH,scale:eS,scaleX:eS,scaleY:eS,scaleZ:eS,skew:eH,skewX:eH,skewY:eH,distance:eN,translateX:eN,translateY:eN,translateZ:eN,x:eN,y:eN,z:eN,perspective:eN,transformPerspective:eN,opacity:eP,originX:eF,originY:eF,originZ:eN,zIndex:e2,size:eN,fillOpacity:eP,strokeOpacity:eP,numOctaves:e2},e3={...e5,color:eU,backgroundColor:eU,outlineColor:eU,fill:eU,stroke:eU,borderColor:eU,borderTopColor:eU,borderRightColor:eU,borderBottomColor:eU,borderLeftColor:eU,filter:e1,WebkitFilter:e1},e4=e=>e3[e];function e6(e,t){let r=e4(e);return r!==e1&&(r=eq),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let e8=new Set(["auto","none","0"]),e9=e=>e===eT||e===eN,e7=(e,t)=>parseFloat(e.split(", ")[t]),te=(e,t)=>(r,{transform:i})=>{if("none"===i||!i)return 0;let n=i.match(/^matrix3d\((.+)\)$/u);if(n)return e7(n[1],t);{let t=i.match(/^matrix\((.+)\)$/u);return t?e7(t[1],e):0}},tt=new Set(["x","y","z"]),tr=F.filter(e=>!tt.has(e)),ti={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:te(4,13),y:te(5,14)};ti.translateX=ti.x,ti.translateY=ti.y;let tn=new Set,ts=!1,to=!1;function ta(){if(to){let e=Array.from(tn).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;
1t.forEach(e=>{let t=function(e){let t=[];return tr.forEach(r=>{let i=e.getValue(r);void 0!==i&&(t.push([r,i.get()]),i.set(+!!r.startsWith("scale")))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{var i;null==(i=e.getValue(t))||i.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}to=!1,ts=!1,tn.forEach(e=>e.complete()),tn.clear()}function tl(){tn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(to=!0)})}class tu{constructor(e,t,r,i,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=i,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tn.add(this),ts||(ts=!0,X.read(tl),X.resolveKeyframes(ta))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:i}=this;for(let n=0;n<e.length;n++)if(null===e[n])if(0===n){let n=null==i?void 0:i.get(),s=e[e.length-1];if(void 0!==n)e[0]=n;else if(r&&t){let i=r.readValue(t,s);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=s),i&&void 0===n&&i.set(e[0])}else e[n]=e[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let th=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),tc=e=>t=>"string"==typeof t&&t.startsWith(e),td=tc("--"),tp=tc("var(--"),tm=e=>!!tp(e)&&tf.test(e.split("/*")[0].trim()),tf=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,tg=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ty=e=>t=>t.test(e),tv=[eT,eN,ek,eH,eV,eO,{test:e=>"auto"===e,parse:e=>e}],tb=e=>tv.find(ty(e));class tE extends tu{constructor(e,t,r,i,n){super(e,t,r,i,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let i=e[r];if("string"==typeof i&&tm(i=i.trim())){let n=function e(t,r,i=1){V(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,s]=function(e){let t=tg.exec(e);if(!t)return[,];let[,r,i,n]=t;return[`--${null!=r?r:i}`,n]}(t);if(!n)return;let o=window.getComputedStyle(r).getPropertyValue(n);if(o){let e=o.trim();return th(e)?parseFloat(e):e}return tm(s)?e(s,r,i+1):s}(i,t.current);void 0!==n&&(e[r]=n),r===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!U.has(r)||2!==e.length)return;let[i,n]=e,s=tb(i),o=tb(n);if(s!==o)if(e9(s)&&e9(o))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var i;("number"==typeof(i=e[t])?0===i:null===i||"none"===i||"0"===i||ew(i))&&r.push(t)}r.length&&function(e,t,r){let i,n=0;for(;n<e.length&&!i;){let t=e[n];"string"==typeof t&&!e8.has(t)&&eX(t).values.length&&(i=e[n]),n++}if(i&&r)for(let n of t)e[n]=e6(r,i)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ti[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;let{element:t,name:r,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(r);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,o=i[s];i[s]=ti[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEac
1h(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}let tw=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eq.test(e)||"0"===e)&&!e.startsWith("url(")),tx=e=>null!==e;function tT(e,{repeat:t,repeatType:r="loop"},i){let n=e.filter(tx),s=t&&"loop"!==r&&t%2==1?0:n.length-1;return s&&void 0!==i?i:n[s]}class tP{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:i=0,repeatDelay:n=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Q.now(),this.options={autoplay:e,delay:t,type:r,repeat:i,repeatDelay:n,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tl(),ta()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Q.now(),this.hasAttemptedResolve=!0;let{name:r,type:i,velocity:n,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(e,t,r,i){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],o=tw(n,t),a=tw(s,t);return V(o===a,`You are trying to animate ${t} from "${n}" to "${s}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||b(r))&&i)}(e,r,i,n))if(eu.current||!s){a&&a(tT(e,this.options,t)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}let tS=(e,t,r)=>e+(t-e)*r;function tA(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function tM(e,t){return r=>r>0?t:e}let tC=(e,t,r)=>{let i=e*e,n=r*(t*t-i)+i;return n<0?0:Math.sqrt(n)},tR=[eI,e_,ej];function tB(e){let t=tR.find(t=>t.test(e));if(V(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===ej&&(r=function({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,r/=100;let n=0,s=0,o=0;if(t/=100){let i=r<.5?r*(1+t):r+t-r*t,a=2*r-i;n=tA(a,i,e+1/3),s=tA(a,i,e),o=tA(a,i,e-1/3)}else n=s=o=r;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:i}}(r)),r}let tL=(e,t)=>{let r=tB(e),i=tB(t);if(!r||!i)return tM(e,t);let n={...r};return e=>(n.red=tC(r.red,i.red,e),n.green=tC(r.green,i.green,e),n.blue=tC(r.blue,i.blue,e),n.alpha=tS(r.alpha,i.alpha,e),e_.transform(n))},t_=(e,t)=>r=>t(e(r)),tI=(...e)=>e.reduce(t_),tD=new Set(["none","hidden"]);function tH(e,t){return r=>tS(e,t,r)}function tk(e){return"number"==typeof e?tH:"string"==typeof e?tm(e)?tM:eU.test(e)?tL:tV:Array.isArray(e)?tN:"object"==typeof e?eU.test(e)?tL:tO:tM}function tN(e,t){let r=[...e],i=r.length,n=e.map((e,r)=>tk(e)(e,t[r]));return e=>{for(let t=0;t<i;t++)r[t]=n[t](e);return r}}function tO(e,t){let r={...e,...t},i={};for(let n in r)void 0!==e[n]&&void 0!==t[n]&&(i[n]=tk(e[n])(e[n],t[n]));return e=>{for(let t in i)r[t]=i[t](e);return r}}let tV=(e,t)=>{let r=eq.createTransformer(t),i=eX(e),n=eX(t);return i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length?tD.has(e)&&!n.values.length||tD.has(t)&&!i.values.length?function(e,t){return tD.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):tI(tN(function(e,t){var r;let i=[],n={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){let o=t.types[s],a=e.indexes[o][n[o]],l=null!=(r=e.values[a])?r:0;i[s]=l,n[o]++}return i}(i,n),n.values),r):(V(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),tM(e,t))};function tF(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?tS(e,t,r):tk(e)(e,t)}function tj(e,t,r){var i,n;let s=Math.max(t-5,0);return i=r-e(s),(n=t-s)?1e3/n*i:0}let tU={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tG(e,t){return e*Math.sqrt(1-t*t)}
1let tz=["duration","bounce"],t$=["stiffness","damping","mass"];function tW(e,t){return t.some(t=>void 0!==e[t])}function tX(e=tU.visualDuration,t=tU.bounce){let r,i="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:n,restDelta:s}=i,o=i.keyframes[0],a=i.keyframes[i.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:c,duration:d,velocity:p,isResolvedFromDuration:m}=function(e){let t={velocity:tU.velocity,stiffness:tU.stiffness,damping:tU.damping,mass:tU.mass,isResolvedFromDuration:!1,...e};if(!tW(e,t$)&&tW(e,tz))if(e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),i=r*r,n=2*ex(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:tU.mass,stiffness:i,damping:n}}else{let r=function({duration:e=tU.duration,bounce:t=tU.bounce,velocity:r=tU.velocity,mass:i=tU.mass}){let n,s;V(e<=O(tU.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=ex(tU.minDamping,tU.maxDamping,o),e=ex(tU.minDuration,tU.maxDuration,e/1e3),o<1?(n=t=>{let i=t*o,n=i*e;return .001-(i-r)/tG(t,o)*Math.exp(-n)},s=t=>{let i=t*o*e,s=Math.pow(o,2)*Math.pow(t,2)*e,a=Math.exp(-i),l=tG(Math.pow(t,2),o);return(i*r+r-s)*a*(-n(t)+.001>0?-1:1)/l}):(n=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),s=t=>e*e*(r-t)*Math.exp(-t*e));let a=function(e,t,r){let i=r;for(let r=1;r<12;r++)i-=e(i)/t(i);return i}(n,s,5/e);if(e=O(e),isNaN(a))return{stiffness:tU.stiffness,damping:tU.damping,duration:e};{let t=Math.pow(a,2)*i;return{stiffness:t,damping:2*o*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...r,mass:tU.mass}).isResolvedFromDuration=!0}return t}({...i,velocity:-((i.velocity||0)/1e3)}),f=p||0,g=h/(2*Math.sqrt(u*c)),y=a-o,b=Math.sqrt(u/c)/1e3,E=5>Math.abs(y);if(n||(n=E?tU.restSpeed.granular:tU.restSpeed.default),s||(s=E?tU.restDelta.granular:tU.restDelta.default),g<1){let e=tG(b,g);r=t=>a-Math.exp(-g*b*t)*((f+g*b*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===g)r=e=>a-Math.exp(-b*e)*(y+(f+b*y)*e);else{let e=b*Math.sqrt(g*g-1);r=t=>{let r=Math.exp(-g*b*t),i=Math.min(e*t,300);return a-r*((f+g*b*y)*Math.sinh(i)+e*y*Math.cosh(i))/e}}let w={calculatedDuration:m&&d||null,next:e=>{let t=r(e);if(m)l.done=e>=d;else{let i=0;g<1&&(i=0===e?O(f):tj(r,e,t));let o=Math.abs(a-t)<=s;l.done=Math.abs(i)<=n&&o}return l.value=l.done?a:t,l},toString:()=>{let e=Math.min(v(w),2e4),t=S(t=>w.next(e*t).value,e,30);return e+"ms "+t}};return w}function tK({keyframes:e,velocity:t=0,power:r=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let c,d,p=e[0],m={done:!1,value:p},f=r*t,g=p+f,y=void 0===o?g:o(g);y!==g&&(f=y-p);let v=e=>-f*Math.exp(-e/i),b=e=>y+v(e),E=e=>{let t=v(e),r=b(e);m.done=Math.abs(t)<=u,m.value=m.done?y:r},w=e=>{let t;if(t=m.value,void 0!==a&&t<a||void 0!==l&&t>l){var r;c=e,d=tX({keyframes:[m.value,(r=m.value,void 0===a?l:void 0===l||Math.abs(a-r)<Math.abs(l-r)?a:l)],velocity:tj(b,e,m.value),damping:n,stiffness:s,restDelta:u,restSpeed:h})}};return w(0),{calculatedDuration:null,next:e=>{let t=!1;return(d||void 0!==c||(t=!0,E(e),w(e)),void 0!==c&&e>=c)?d.next(e-c):(t||E(e),m)}}}let tY=ec(.42,0,1,1),tZ=ec(0,0,.58,1),tq=ec(.42,0,.58,1),tQ={linear:V,easeIn:tY,easeInOut:tq,easeOut:tZ,circIn:ev,circInOut:eE,circOut:eb,backIn:ef,backInOut:eg,backOut:em,anticipate:ey},tJ=e=>{if(w(e)){V(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,i,n]=e;return ec(t,r,i,n)}return"string"==typeof e?(V(void 0!==tQ[e],`Invalid easing type '${e}'`),tQ[e]):e};function t0({duration:e=300,keyframes:t,times:r,ease:i="easeInOut"}){var n;let s=Array.isArray(i)&&"number"!=typeof i[0]?i.map(tJ):tJ(i),o={done:!1,value:t[0]},a=function(e,t,{clamp:r=!0,ease:i,mixer:n}={}){let s=e.length;if(V(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,r){let i=[],n=r||tF,s=e.length-1;for(let r=0;r<s;r++){let s=n(e[r],e[r+1]);t&&(s=tI(Array.isArray(t)?t[r]||V:t,s)),i.push(s)}return i}(t,i,n),l=a.length,u=r=>{if(o&&r<e[0])return t[0];let i=0;if(l>1)for(;i<e.length-2&&!(r<e[i+1]);i++);let n=P(e[i],e[i+1],r);return a[i](n)};return r?t=>u(ex(e[0],e[s-1],t)):u}((n=r&&r.length===t.length?r:function(e){let t=[0];return!function(e,t){let r=e[e.length-1];for(let i=1;i<=t;i++){let n=P(0,t,i);e.push(tS(r,1,n))}}(t,e.length-1),t}(t),n.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||tq).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=a(t),o.done=t>=e,o)}}let t1=e=>{let t=({timestamp:t})=>e(t);return{start:()=>X.update(t,!0),stop:()=>K(t),now:()=>Y.isProcessing?Y.timestamp:Q.now()}},t2={decay:tK,inertia:tK,tween:t0,keyframes:t0,spring:tX},t5=e=>e/100;class t3 extends tP{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>
1{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:r,element:i,keyframes:n}=this.options,s=(null==i?void 0:i.KeyframeResolver)||tu,o=(e,t)=>this.onKeyframesResolved(e,t);this.resolver=new s(n,o,t,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,r,{type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=b(i)?i:t2[i]||t0;l!==t0&&"number"!=typeof e[0]&&(t=tI(t5,tF(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===o&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=v(u));let{calculatedDuration:h}=u,c=h+s;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:h,resolvedDuration:c,totalDuration:c*(n+1)-s}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:r}=this;if(!r){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:i,generator:n,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=r;if(null===this.startTime)return n.next(0);let{delay:c,repeat:d,repeatType:p,repeatDelay:m,onUpdate:f}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let g=this.currentTime-c*(this.speed>=0?1:-1),y=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let v=this.currentTime,b=n;if(d){let e=Math.min(this.currentTime,u)/h,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,d+1))%2&&("reverse"===p?(r=1-r,m&&(r-=m/h)):"mirror"===p&&(b=s)),v=ex(0,1,r)*h}let E=y?{done:!1,value:a[0]}:b.next(v);o&&(E.value=o(E.value));let{done:w}=E;y||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return x&&void 0!==i&&(E.value=tT(a,this.options,i)),f&&f(E.value),x&&this.finish(),E}get duration(){let{resolved:e}=this;return e?e.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(e){e=O(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=t1,onPlay:t,startTime:r}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=r?r:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=null!=(e=this.currentTime)?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let t4=new Set(["opacity","clipPath","filter","transform"]),t6=p(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),t8={anticipate:ey,backInOut:eg,cir
1cInOut:eE};class t9 extends tP{constructor(e){super(e);let{name:t,motionValue:r,element:i,keyframes:n}=this.options;this.resolver=new tE(n,(e,t)=>this.onKeyframesResolved(e,t),t,r,i),this.resolver.scheduleResolve()}initPlayback(e,t){var r;let{duration:i=300,times:n,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof s&&T()&&s in t8&&(s=t8[s]),b((r=this.options).type)||"spring"===r.type||!function e(t){return!!("function"==typeof t&&T()||!t||"string"==typeof t&&(t in M||T())||w(t)||Array.isArray(t)&&t.every(e))}(r.ease)){let{onComplete:t,onUpdate:r,motionValue:a,element:l,...u}=this.options,h=function(e,t){let r=new t3({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},n=[],s=0;for(;!i.done&&s<2e4;)n.push((i=r.sample(s)).value),s+=10;return{times:void 0,keyframes:n,duration:s-10,ease:"linear"}}(e,u);1===(e=h.keyframes).length&&(e[1]=e[0]),i=h.duration,n=h.times,s=h.ease,o="keyframes"}let h=function(e,t,r,{delay:i=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[t]:r};l&&(u.offset=l);let h=function e(t,r){if(t)return"function"==typeof t&&T()?S(t,r):w(t)?A(t):Array.isArray(t)?t.map(t=>e(t,r)||M.easeOut):M[t]}(a,n);return Array.isArray(h)&&(u.easing=h),e.animate(u,{delay:i,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"})}(a.owner.current,l,e,{...this.options,duration:i,times:n,ease:s});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(E(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:r}=this.options;a.set(tT(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:n,type:o,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return t/1e3}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(t.currentTime||0)/1e3}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=O(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){let{resolved:t}=this;if(!t)return V;let{animation:r}=t;E(r,e)}else this.pendingTimeline=e;return V}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:i,type:n,ease:s,times:o}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:a,element:l,...u}=this.options,h=new t3({...u,keyframes:r,duration:i,type:n,ease:s,times:o,isGenerator:!0}),c=O(this.time);e.setWithVelocity(h.sample(c-10).value,h.sample(c).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:r,repeatDelay:i,repeatType:n,damping:s,type:o}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=t.owner.getProps();return t6()&&r&&t4.has(r)&&!a&&!l&&!i&&"mirror"!==n&&0!==s&&"inertia"!==o}}let t7={type:"spring",stiffness:500,damping:25,restSpeed:10},re={type:"keyframes",duration:.8},rt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rr=(e,t,r,i={},n,s)=>o=>{let a=y(i,e)||{},l=a.delay||i.delay||0,{elapsed:u=0}=i;u-=O(l);let h={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:e=>{t.set(e),a.onUpdate&&a.onUpdate(e)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:n};!function({when:e,delay:t,delayChildren:r,staggerChildren:i,staggerDirection:n,repeat:s,repeatType:
1o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(h={...h,...((e,{keyframes:t})=>t.length>2?re:j.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:t7:rt)(e,h)}),h.duration&&(h.duration=O(h.duration)),h.repeatDelay&&(h.repeatDelay=O(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let c=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(h.duration=0,0===h.delay&&(c=!0)),(eu.current||z.skipAnimations)&&(c=!0,h.duration=0,h.delay=0),c&&!s&&void 0!==t.get()){let e=tT(h.keyframes,a);if(void 0!==e)return X.update(()=>{h.onUpdate(e),h.onComplete()}),new g([])}return!s&&t9.supports(h)?new t9(h):new t3(h)};function ri(e,t,{delay:r=0,transitionOverride:i,type:n}={}){var s;let{transition:o=e.getDefaultTransition(),transitionEnd:a,...l}=t;i&&(o=i);let u=[],c=n&&e.animationState&&e.animationState.getState()[n];for(let t in l){let i=e.getValue(t,null!=(s=e.latestValues[t])?s:null),n=l[t];if(void 0===n||c&&function({protectedKeys:e,needsAnimating:t},r){let i=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,i}(c,t))continue;let a={delay:r,...y(o||{},t)},h=!1;if(window.MotionHandoffAnimation){let r=e.props[el];if(r){let e=window.MotionHandoffAnimation(r,t,X);null!==e&&(a.startTime=e,h=!0)}}eo(e,t),i.start(rr(t,i,n,e.shouldReduceMotion&&U.has(t)?{type:!1}:a,e,h));let d=i.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{X.update(()=>{a&&function(e,t){let{transitionEnd:r={},transition:i={},...n}=h(e,t)||{};for(let t in n={...n,...r}){let r=G(n[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,en(r))}}(e,a)})}),u}function rn(e,t,r={}){var i;let n=h(e,t,"exit"===r.type?null==(i=e.presenceContext)?void 0:i.custom:void 0),{transition:s=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(s=r.transitionOverride);let o=n?()=>Promise.all(ri(e,n,r)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=s;return function(e,t,r=0,i=0,n=1,s){let o=[],a=(e.variantChildren.size-1)*i,l=1===n?(e=0)=>e*i:(e=0)=>a-e*i;return Array.from(e.variantChildren).sort(rs).forEach((e,i)=>{e.notify("AnimationStart",t),o.push(rn(e,t,{...s,delay:r+l(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(o)}(e,t,n+i,o,a,r)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([o(),a(r.delay)]);{let[e,t]="beforeChildren"===l?[o,a]:[a,o];return e().then(()=>t())}}function rs(e,t){return e.sortNodePosition(t)}let ro=d.length,ra=[...c].reverse(),rl=c.length;function ru(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rh(){return{animate:ru(!0),whileInView:ru(),whileHover:ru(),whileTap:ru(),whileDrag:ru(),whileFocus:ru(),exit:ru()}}class rc{constructor(e){this.isMounted=!1,this.node=e}update(){}}class rd extends rc{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>rn(e,t,r)));else if("string"==typeof t)i=rn(e,t,r);else{let n="function"==typeof t?h(e,t,r.custom):t;i=Promise.all(ri(e,n,r))}return i.then(()=>{e.notify("AnimationComplete",t)})})(e,t,r))),r=rh(),i=!0,l=t=>(r,i)=>{var n;let s=h(e,i,"exit"===t?null==(n=e.presenceContext)?void 0:n.custom:void 0);if(s){let{transition:e,transitionEnd:t,...i}=s;r={...r,...i,...t}}return r};function u(u){let{props:h}=e,c=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<ro;e++){let i=d[e],n=t.props[i];(a(n)||!1===n)&&(r[i]=n)}return r}(e.parent)||{},p=[],m=new Set,f={},g=1/0;for(let t=0;t<rl;t++){var y,v;let d=ra[t],b=r[d],E=void 0!==h[d]?h[d]:c[d],w=a(E),x=d===u?b.isActive:null;!1===x&&(g=t);let T=E===c[d]&&E!==h[d]&&w;if(T&&i&&e.manuallyAnimateOnMount&&(T=!1),b.protectedKeys={...f},!b.isActive&&null===x||!E&&!b.prevProp||n(E)||"boolean"==typeof E)continue;let P=(y=b.prevProp,"string"==typeof(v=E)?v!==y:!!Array.isArray(v)&&!o(v,y)),S=P||d===u&&b.isActive&&!T&&w||t>g&&w,A=!1,M=Array.isArray(E)?E:[E],C=M.reduce(l(d),{});!1===x&&(C={});let{prevResolvedValues:R={}}=b,B={...R,...C},L=t=>{S=!0,m.has(t)&&(A=!0,m.delete(t)),b.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in B){let t=C[e],r=R[e];if(!f.hasOwnProperty(e))(s(t)&&s(r)?o(t,r):t===r)?void 0!==t&&m.has(e)?L(e):b.protectedKeys[e]=!0:null!=t?L(e):m.add(e)}b.prevProp=E,b.prevResolvedValues=C,b.isActive&&(f={...f,...C}),i&&e.blockInitialAnimation&&(S=!1);let _=!(T&&P)||A;S&&_&&p.push(...M.map(e=>({animation:e,options:{type:d}})))}if(m.size){let t={};m.forEach(r=>{let i=e.getBaseTarget(r),n=e.getValue(r);n&&(n.liveStyle=!0),t[r]=null!=i?i:null}),p.push({animation:t})}let b=!!p.length;return i&&(!1===h.initial||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?t(p):Promise.resolve()}return{animateChanges:u,setActive:function(t,i){var n;if(r[t].isActive===i)return Promise.resolve();
1null==(n=e.variantChildren)||n.forEach(e=>{var r;return null==(r=e.animationState)?void 0:r.setActive(t,i)}),r[t].isActive=i;let s=u(t);for(let e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=rh(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();n(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}let rp=0;class rm extends rc{constructor(){super(...arguments),this.id=rp++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}function rf(e,t,r,i={passive:!0}){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r)}function rg(e){return{point:{x:e.pageX,y:e.pageY}}}function ry(e,t,r,i){return rf(e,t,e=>_(e)&&r(e,rg(e)),i)}let rv=(e,t)=>Math.abs(e-t);class rb{constructor(e,t,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=rx(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){return Math.sqrt(rv(e.x,t.x)**2+rv(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:i}=e,{timestamp:n}=Y;this.history.push({...i,timestamp:n});let{onStart:s,onMove:o}=this.handlers;t||(s&&s(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=rE(t,this.transformPagePoint),X.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:i,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rx("pointercancel"===e.type?this.lastMoveEventInfo:rE(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,s),i&&i(e,s)},!_(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=r,this.contextWindow=i||window;let s=rE(rg(e),this.transformPagePoint),{point:o}=s,{timestamp:a}=Y;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=t;l&&l(e,rx(s,this.history)),this.removeListeners=tI(ry(this.contextWindow,"pointermove",this.handlePointerMove),ry(this.contextWindow,"pointerup",this.handlePointerUp),ry(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),K(this.updatePoint)}}function rE(e,t){return t?{point:t(e.point)}:e}function rw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rx({point:e},t){return{point:e,delta:rw(e,rT(t)),offset:rw(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,i=null,n=rT(e);for(;r>=0&&(i=e[r],!(n.timestamp-i.timestamp>O(.1)));)r--;if(!i)return{x:0,y:0};let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let o={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(t,.1)}}function rT(e){return e[e.length-1]}function rP(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function rS(e){return e.max-e.min}function rA(e,t,r,i=.5){e.origin=i,e.originPoint=tS(t.min,t.max,e.origin),e.scale=rS(r)/rS(t),e.translate=tS(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rM(e,t,r,i){rA(e.x,t.x,r.x,i?i.originX:void 0),rA(e.y,t.y,r.y,i?i.originY:void 0)}function rC(e,t,r){e.min=r.min+t.min,e.max=e.min+rS(t)}function rR(e,t,r){e.min=t.min-r.min,e.max=e.min+rS(t)}function rB(e,t,r){rR(e.x,t.x,r.x),rR(e.y,t.y,r.y)}function rL(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function r_(e,t){let r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,i]=[i,r]),{min:r,max:i}}function rI(e,t,r){return{min:rD(e,t),max:rD(e,r)}}function rD(e,t){return"number"==typeof e?e:e[t]||0}let rH=()=>({translate:0,scale:1,origin:0,originPoint:0}),rk=()=>({x:rH(),y:rH()}),rN=()=>({min:0,max:0}),rO=()=>({x:rN(),y:rN()});function rV(e){return[e("x"),e("y")]}function rF({top:e,left:t,right:r,bottom:i}){return{x:{min:t,max:r},y:{min:e,max:i}}}function rj(e){return void 0===e||1===e}function rU({scale:e,scaleX:t,scaleY:r}){return!rj(e)||!rj(t)||!rj(r)}function rG(e){return rU(e)||rz(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rz(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function r$(e,t,r,i,n){return void 0!==n&&(e=i+n*(e-i)),i+r*(e-i)+t}function rW(e,t=0,r=1,i,n){e.min=r$(e.min,t,r,i,n),e.max=r$(e.max,t,r,i,n)}function rX(e,{x:t,y:r}){rW(e.x,t.translate,t.scale,t.originPoint),rW(e.y,r.translate,r.scale,r.originPoint)}function rK(e,t){e.min=e.min+t,e.max=e.max+t}function rY(e,t,r,i,n=.5){let s=tS(e.min,e.max,n);rW(e,t,r,s,i)}function rZ(e,t){rY(e.x,t.x,t.scaleX,t.scale,t.originX),rY(e.y,t.y,t.scaleY,t.scale,t.originY)}function rq(e,t){return rF(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}let rQ=({current:e})=>e?e.ownerDocument.defaultView:null,rJ=new WeakMap;class r0{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rO(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(rg(e).point)},n=(e,t)=>{let{drag:r,dragPropagation:i,onDragStart:n}=this.getProps();if(r&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
1y"===e)if(C[e])return null;else return C[e]=!0,()=>{C[e]=!1};return C.x||C.y?null:(C.x=C.y=!0,()=>{C.x=C.y=!1})}(r),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rV(e=>{let t=this.getAxisMotionValue(e).get()||0;if(ek.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let i=r.layout.layoutBox[e];i&&(t=rS(i)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&X.postRender(()=>n(e,t)),eo(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(e,t)=>{let{dragPropagation:r,dragDirectionLock:i,onDirectionLock:n,onDrag:s}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:o}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,o),this.updateAxis("y",t.point,o),this.visualElement.render(),s&&s(e,t)},o=(e,t)=>this.stop(e,t),a=()=>rV(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new rb(e,{onSessionStart:i,onStart:n,onMove:s,onSessionEnd:o,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:rQ(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:i}=t;this.startAnimation(i);let{onDragEnd:n}=this.getProps();n&&X.postRender(()=>n(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:i}=this.getProps();if(!r||!r1(e,i,this.currentDirection))return;let n=this.getAxisMotionValue(e),s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:r},i){return void 0!==t&&e<t?e=i?tS(t,e,i.min):Math.max(e,t):void 0!==r&&e>r&&(e=i?tS(r,e,i.max):Math.min(e,r)),e}(s,this.constraints[e],this.elastic[e])),n.set(s)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,n=this.constraints;t&&rP(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(e,{top:t,left:r,bottom:i,right:n}){return{x:rL(e.x,r,n),y:rL(e.y,t,i)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rI(e,"left","right"),y:rI(e,"top","bottom")}}(r),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rV(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(i.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!rP(t))return!1;let i=t.current;V(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=function(e,t,r){let i=rq(e,r),{scroll:n}=t;return n&&(rK(i.x,n.offset.x),rK(i.y,n.offset.y)),i}(i,n.root,this.visualElement.getTransformPagePoint()),o=(e=n.layout.layoutBox,{x:r_(e.x,s.x),y:r_(e.y,s.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(o));this.hasMutatedConstraints=!!e,e&&(o=rF(e))}return o}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:i,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(rV(o=>{if(!r1(o,t,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});
1let u={type:"inertia",velocity:r?e[o]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return eo(this.visualElement,e),r.start(rr(e,r,0,t,this.visualElement,!1))}stopAnimation(){rV(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rV(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){rV(t=>{let{drag:r}=this.getProps();if(!r1(t,r,this.currentDirection))return;let{projection:i}=this.visualElement,n=this.getAxisMotionValue(t);if(i&&i.layout){let{min:r,max:s}=i.layout.layoutBox[t];n.set(e[t]-tS(r,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!rP(t)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};rV(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();i[e]=function(e,t){let r=.5,i=rS(e),n=rS(t);return n>i?r=P(t.min,t.max-i,e.min):i>n&&(r=P(e.min,e.max-n,t.min)),ex(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rV(t=>{if(!r1(t,e,null))return;let r=this.getAxisMotionValue(t),{min:n,max:s}=this.constraints[t];r.set(tS(n,s,i[t]))})}addListeners(){if(!this.visualElement.current)return;rJ.set(this.visualElement,this);let e=ry(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();rP(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),X.read(t);let n=rf(window,"resize",()=>this.scalePositionWithinConstraints()),s=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rV(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{n(),e(),i(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:i,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function r1(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class r2 extends rc{constructor(e){super(e),this.removeGroupControls=V,this.removeListeners=V,this.controls=new r0(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||V}unmount(){this.removeGroupControls(),this.removeListeners()}}let r5=e=>(t,r)=>{e&&X.postRender(()=>e(t,r))};class r3 extends rc{constructor(){super(...arguments),this.removePointerDownListener=V}onPointerDown(e){this.session=new rb(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rQ(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:r5(e),onStart:r5(t),onMove:r,onEnd:(e,t)=>{delete this.session,i&&X.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=ry(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var r4,r6,r8=r(5155),r9=r(2115),r7=r(5601),ie=r(296);let it=(0,r9.createContext)({}),ir={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ii(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let is={correct:(e,t)=>
1{if(!t.target)return e;if("string"==typeof e)if(!eN.test(e))return e;else e=parseFloat(e);let r=ii(e,t.target.x),i=ii(e,t.target.y);return`${r}% ${i}%`}},io={},{schedule:ia,cancel:il}=W(queueMicrotask,!1);class iu extends r9.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:i}=this.props,{projection:n}=e;Object.assign(io,ic),n&&(t.group&&t.group.add(n),r&&r.register&&i&&r.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),ir.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:i,isPresent:n}=this.props,s=r.projection;return s&&(s.isPresent=n,i||e.layoutDependency!==t||void 0===t?s.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?s.promote():s.relegate()||X.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),ia.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function ih(e){let[t,r]=(0,r7.xQ)(),i=(0,r9.useContext)(ie.L);return(0,r8.jsx)(iu,{...e,layoutGroup:i,switchLayoutGroup:(0,r9.useContext)(it),isPresent:t,safeToRemove:r})}let ic={borderRadius:{...is,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:is,borderTopRightRadius:is,borderBottomLeftRadius:is,borderBottomRightRadius:is,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let i=eq.parse(e);if(i.length>5)return e;let n=eq.createTransformer(e),s=+("number"!=typeof i[0]),o=r.x.scale*t.x,a=r.y.scale*t.y;i[0+s]/=o,i[1+s]/=a;let l=tS(o,a,.5);return"number"==typeof i[2+s]&&(i[2+s]/=l),"number"==typeof i[3+s]&&(i[3+s]/=l),n(i)}}},id=(e,t)=>e.depth-t.depth;class ip{constructor(){this.children=[],this.isDirty=!1}add(e){J(this.children,e),this.isDirty=!0}remove(e){ee(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(id),this.isDirty=!1,this.children.forEach(e)}}function im(e){let t=es(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}let ig=["TopLeft","TopRight","BottomLeft","BottomRight"],iy=ig.length,iv=e=>"string"==typeof e?parseFloat(e):e,ib=e=>"number"==typeof e||eN.test(e);function iE(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let iw=iT(0,.5,eb),ix=iT(.5,.95,V);function iT(e,t,r){return i=>i<e?0:i>t?1:r(P(e,t,i))}function iP(e,t){e.min=t.min,e.max=t.max}function iS(e,t){iP(e.x,t.x),iP(e.y,t.y)}function iA(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iM(e,t,r,i,n){return e-=t,e=i+1/r*(e-i),void 0!==n&&(e=i+1/n*(e-i)),e}function iC(e,t,[r,i,n],s,o){!function(e,t=0,r=1,i=.5,n,s=e,o=e){if(ek.test(t)&&(t=parseFloat(t),t=tS(o.min,o.max,t/100)-o.min),"number"!=typeof t)return;let a=tS(s.min,s.max,i);e===s&&(a-=t),e.min=iM(e.min,t,r,a,n),e.max=iM(e.max,t,r,a,n)}(e,t[r],t[i],t[n],t.scale,s,o)}let iR=["x","scaleX","originX"],iB=["y","scaleY","originY"];function iL(e,t,r,i){iC(e.x,t,iR,r?r.x:void 0,i?i.x:void 0),iC(e.y,t,iB,r?r.y:void 0,i?i.y:void 0)}function i_(e){return 0===e.translate&&1===e.scale}function iI(e){return i_(e.x)&&i_(e.y)}function iD(e,t){return e.min===t.min&&e.max===t.max}function iH(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ik(e,t){return iH(e.x,t.x)&&iH(e.y,t.y)}function iN(e){return rS(e.x)/rS(e.y)}function iO(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iV{constructor(){this.members=[]}add(e){J(this.members,e),e.scheduleRender()}remove(e){if(ee(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let iF={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},ij="undefined"!=typeof window&&void 0!==window.MotionDebug,iU=["","X","Y","Z"],iG={visibility:"hidden"},iz=0;function i$(e,t,r,i){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),i&&(i[e]=0))}function iW({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(e={},r=null==t?void 0:t()){this.id=iz++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ij&&(iF.totalNodes=iF.resolvedTargetDeltas=iF.recalculatedProjection=0),this.nodes.forEach(iY),this.nodes.forEach(i2),this.nodes.forEach(i5),this.nodes.forEach(iZ),ij&&window.MotionDebug.record(iF)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ip)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new et),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(n||i)&&(this.isLayoutDirty=!0),e){let r,i=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=Q.now(),i=({timestamp:t})=>{let n=t-r;n>=250&&(K(i),e(n-250))};return X.read(i,!0),()=>K(i)}(i,250),ir.hasAnimatedSinceResize&&(ir.hasAnimatedSinceResize=!1,this.nodes.forEach(i1))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||i7,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),l=!this.targetLayout||!ik(this.targetLayout,i)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...y(n,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||i1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,K(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
1h(i3),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let i=r.props[el];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",X,!(e||r))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iQ);return}this.isUpdating||this.nodes.forEach(iJ),this.isUpdating=!1,this.nodes.forEach(i0),this.nodes.forEach(iX),this.nodes.forEach(iK),this.clearAllSnapshots();let e=Q.now();Y.delta=ex(0,1e3/60,e-Y.timestamp),Y.timestamp=e,Y.isProcessing=!0,Z.update.process(Y),Z.preRender.process(Y),Z.render.process(Y),Y.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ia.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iq),this.sharedNodes.forEach(i4)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,X.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){X.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 e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rO(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!iI(this.projectionDelta),r=this.getTransformTemplate(),i=r?r(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;e&&(t||rG(this.latestValues)||s)&&(n(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),i=this.removeElementScroll(r);return e&&(i=this.removeTransform(i)),nr((t=i).x),nr(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return rO();let r=t.measureViewportBox();if(!((null==(e=this.scroll)?void 0:e.wasRoot)||this.path.some(nn))){let{scroll:e}=this.root;e&&(rK(r.x,e.offset.x),rK(r.y,e.offset.y))}return r}removeElementScroll(e){var t;let r=rO();if(iS(r,e),null==(t=this.scroll)?void 0:t.wasRoot)return r;for(let t=0;t<this.path.length;t++){let i=this.path[t],{scroll:n,options:s}=i;i!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&iS(r,e),rK(r.x,n.offset.x),rK(r.y,n.offset.y))}return r}applyTransform(e,t=!1){let r=rO();iS(r,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rZ(r,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),rG(i.latestValues)&&rZ(r,i.latestValues)}return rG(this.latestValues)&&rZ(r,this.latestValues),r}removeTransform(e){let t=rO();iS(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!rG(r.latestValues))continue;rU(r.latestValues)&&r.updateSnapshot();let i=rO();iS(i,r.measurePageBox()),iL(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,i)}return rG(this.latestValues)&&iL(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Y.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,i,n;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(e||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=Y.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rO(),this.relativeTargetOrigin=rO(),rB(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),iS(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rO(),this.targetWithTransforms=rO()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,i=this.relativeTarget,n=this.relativeParent.target,rC(r.x,i.x,n.x),rC(r.y,i.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):iS(this.target,this.layout.layoutBox),rX(this.target,this.targetDelta)):iS(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rO(),this.relativeTargetOrigin=rO(),rB(this.relativeTargetOrigin,this.target,e.target),iS(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ij&&iF.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||rU(this.parent.latestValues)||rz(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(i=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===Y.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;iS(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(e,t,r,i=!1){let n,s,o=r.length;if(o){t.x=t.y=1;for(let a=0;a<o;a++){s=(n=r[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(i&&n.options.layoutScroll&&n.scroll&&n!==n.root&&rZ(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,rX(e,s)),i&&rG(n.latestValues)&&rZ(e,n.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=rO());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iA(this.prevProjectionDelta.x,this.projectionDelta.x),iA(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rM(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&iO(this.projectionDelta.x,this.prevProjectionDelta.x)&&iO(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),ij&&iF.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=rk(),this.projectionDelta=rk(),this.projectionDeltaWithTransform=rk()}setAnimationOrigin(e,t=!1){let r,i=this.snapshot,n=i?i.latestValues:{},s={...this.latestValues},o=rk();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let a=rO(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,c=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(i9));this.animationProgress=0,this.mixTargetDelta=t=>{let i=t/1e3;if(i6(o.x,e.x,i),i6(o.y,e.y,i),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,p,m,f,g;rB(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,m=this.relativeTargetOrigin,f=a,g=i,i8(p.x,m.x,f.x,g),i8(p.y,m.y,f.y,g),r&&(u=this.relativeTarget,d=r,iD(u.x,d.x)&&iD(u.y,d.y))&&(this.isProjectionDirty=!1),r||(r=rO()),iS(r,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,r,i,n,s){n?(e.opacity=tS(0,void 0!==r.opacity?r.opacity:1,iw(i)),e.opacityExit=tS(void 0!==t.opacity?t.opacity:1,0,ix(i))):s&&(e.opacity=tS(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,i));for(let n=0;n<iy;n++){let s=`border${ig[n]}Radius`,o=iE(t,s),a=iE(r,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||ib(o)===ib(a)?(e[s]=Math.max(tS(iv(o),iv(a),i),0),(ek.test(a)||ek.test(o))&&(e[s]+="%")):e[s]=a)}(t.rotate||r.rotate)&&(e.rotate=tS(t.rotate||0,r.rotate||0,i))}(s,n,this.latestValues,i,c,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(K(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=X.update(()=>{ir.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let i=es(0)?0:en(e);return i.start(rr("",i,1e3,r)),i.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:i,latestValues:n}=e;if(t&&r&&i){if(this!==e&&this.layout&&i&&ni(this.options.animationType,this.layout.layoutBox,i.layoutBox)){r=this.target||rO();let t=rS(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let i=rS(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+i}iS(t,r),rZ(t,n),rM(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iV),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let i=this.getStack();i&&i.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let i={};r.z&&i$("z",e,i,this.animationValues);for(let t=0;t<iU.length;t++)i$(`rotate${iU[t]}`,e,i,this.animationValues),i$(`skew${iU[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return iG;let i={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=im(null==e?void 0:e.pointerEvents)||"",i.transform=n?n(this.latestValues,""):"none",i;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=im(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!rG(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}let o=s.animationValues||s.latestValues;this.applyTransformsToTarget(),i.transform=function(e,t,r){let i="",n=e.x.translate/t.x,s=e.y.translate/t.y,o=(null==r?void 0:r.z)||0;if((n||s||o)&&(i=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:n,rotateY:s,skewX:o,skewY:a}=r;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),n&&(i+=`rotateX(${n}deg) `),s&&(i+=`rotateY(${s}deg) `),o&&(i+=`skewX(${o}deg) `),a&&(i+=`skewY(${a}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==a||1!==l)&&(i+=`scale(${a}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),n&&(i.transform=n(o,i.transform));let{x:a,y:l}=this.projectionDelta;for(let e in i.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?i.opacity=s===this?null!=(r=null!=(t=o.opacity)?t:this.latestValues.opacity)?r:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:i.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,io){if(void 0===o[e])continue;let{correct:t,applyTo:r}=io[e],n="none"===i.transform?o[e]:t(o[e],s);if(r){let e=r.length;for(let t=0;t<e;t++)i[r[t]]=n}else i[e]=n}return this.options.layoutId&&(i.pointerEvents=s===this?im(null==e?void 0:e.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(iQ),this.root.sharedNodes.clear()}}}function iX(e){e.updateLayout()}function iK(e){var t;let r=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:i}=e.layout,{animationType:n}=e.options,s=r.source!==e.layout.source;"size"===n?rV(e=>{let i=s?r.measuredBox[e]:r.layoutBox[e],n=rS(i);i.min=t[e].min,i.max=i.min+n}):ni(n,r.layoutBox,t)&&rV(i=>{let n=s?r.measuredBox[i]:r.layoutBox[i],o=rS(t[i]);n.max=n.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+o)});let o=rk();rM(o,t,r.layoutBox);let a=rk();s?rM(a,e.applyTransform(i,!0),r.measuredBox):rM(a,t,r.layoutBox);let l=!iI(o),u=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:n,layout:s}=i;if(n&&s){let o=rO();rB(o,r.layoutBox,n.layoutBox);let a=rO();rB(a,t,s.layoutBox),ik(o,a)||(u=!0),i.options.layoutRoot&&(e.relativeTarget=a,e.relativeTargetOrigin=o,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function iY(e){ij&&iF.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function iZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iq(e){e.clearSnapshot()}function iQ(e){e.clearMeasurements()}function iJ(e){e.isLayoutDirty=!1}function i0(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function i1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function i2(e){e.resolveTargetDelta()}function i5(e){e.calcProjection()}function i3(e){e.resetSkewAndRotation()}function i4(e){e.removeLeadSnapshot()}function i6(e,t,r){e.translate=tS(t.translate,0,r),e.scale=tS(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function i8(e,t,r,i){e.min=tS(t.min,r.min,i),e.max=tS(t.max,r.max,i)}function i9(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let i7={duration:.45,ease:[.4,0,.1,1]},ne=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),nt=ne("applewebkit/")&&!ne("chrome/")?Math.round:V;function nr(e){e.min=nt(e.min),e.max=nt(e.max)}function ni(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(iN(t)-iN(r)))}function nn(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}let ns=iW({attachResizeListener:(e,t)=>rf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),no={current:void 0},na=iW({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!no.current){let e=new ns({});e.mount(window),e.setOptions({layoutScroll:!0}),no.current=e}return no.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function nl(e,t,r){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===r);let n=i["onHover"+r];n&&X.postRender(()=>n(t,rg(t)))}class nu extends rc{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[i,n,s]=R(e,r),o=B(e=>{let{target:r}=e,i=t(e);if("function"!=typeof i||!r)return;let s=B(e=>{i(e),r.removeEventListener("pointerleave",s)});r.addEventListener("pointerleave",s,n)});return i.forEach(e=>{e.addEventListener("pointerenter",o,n)}),s}(e,e=>(nl(this.node,e,"Start"),e=>nl(this.node,e,"End"))))}unmount(){}}class nh extends rc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tI(rf(this.node.current,"focus",()=>this.onFocus()),rf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function nc(e,t,r){let{props:i}=e;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===r);let n=i["onTap"+("End"===r?"":r)];n&&X.postRender(()=>n(t,rg(t)))}class nd extends rc{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[i,n,s]=R(e,r),o=e=>{let i=e.currentTarget;if(!N(e)||D.has(i))return;D.add(i);let s=t(e),o=(e,t)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),N(e)&&D.has(i)&&(D.delete(i),"function"==typeof s&&s(e,{success:t}))},a=e=>{o(e,r.useGlobalTarget||L(i,e.target))},l=e=>{o(e,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};
1return i.forEach(e=>{I.has(e.tagName)||-1!==e.tabIndex||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(r.useGlobalTarget?window:e).addEventListener("pointerdown",o,n),e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let i=H(()=>{if(D.has(r))return;k(r,"down");let e=H(()=>{k(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>k(r,"cancel"),t)});r.addEventListener("keydown",i,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),t)})(e,n),n)}),s}(e,e=>(nc(this.node,e,"Start"),(e,{success:t})=>nc(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let np=new WeakMap,nm=new WeakMap,nf=e=>{let t=np.get(e.target);t&&t(e)},ng=e=>{e.forEach(nf)},ny={some:0,all:1};class nv extends rc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:i="some",once:n}=e,s={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof i?i:ny[i]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,n&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:i}=this.node.getProps(),s=t?r:i;s&&s(e)};var a=this.node.current;let l=function({root:e,...t}){let r=e||document;nm.has(r)||nm.set(r,{});let i=nm.get(r),n=JSON.stringify(t);return i[n]||(i[n]=new IntersectionObserver(ng,{root:e,...t})),i[n]}(s);return np.set(a,o),l.observe(a),()=>{np.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}let nb=(0,r9.createContext)({strict:!1});var nE=r(3127);let nw=(0,r9.createContext)({});function nx(e){return n(e.animate)||d.some(t=>a(e[t]))}function nT(e){return!!(nx(e)||e.variants)}function nP(e){return Array.isArray(e)?e.join(" "):e}var nS=r(3577);let nA={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"]},nM={};for(let e in nA)nM[e]={isEnabled:t=>nA[e].some(e=>!!t[e])};let nC=Symbol.for("motionComponentSymbol");var nR=r(9686),nB=r(6553);let nL=["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 n_(e){if("string"!=typeof e||e.includes("-"));else if(nL.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}var nI=r(4416);let nD=e=>(t,r)=>{let i=(0,r9.useContext)(nw),s=(0,r9.useContext)(nR.t),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:r},i,s,o){let a={latestValues:function(e,t,r,i){let s={},o=i(e,{});for(let e in o)s[e]=im(o[e]);let{initial:a,animate:l}=e,h=nx(e),c=nT(e);t&&c&&!h&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===l&&(l=t.animate));let d=!!r&&!1===r.initial,p=(d=d||!1===a)?l:a;if(p&&"boolean"!=typeof p&&!n(p)){let t=Array.isArray(p)?p:[p];for(let r=0;r<t.length;r++){let i=u(e,t[r]);if(i){let{transitionEnd:e,transition:t,...r}=i;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(s[e]=t)}for(let t in e)s[t]=e[t]}}}return s}(i,s,o,e),renderState:t()};return r&&(a.onMount=e=>r({props:i,current:e,...a}),a.onUpdate=e=>r(e)),a})(e,t,i,s);return r?o():(0,nI.M)(o)},nH=(e,t)=>t&&"number"==typeof e?t.transform(e):e,nk={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nN=F.length;function nO(e,t,r){let{style:i,vars:n,transformOrigin:s}=e,o=!1,a=!1;for(let e in t){let r=t[e];if(j.has(e)){o=!0;continue}if(td(e)){n[e]=r;continue}{let t=nH(r,e5[e]);e.startsWith("origin")?(a=!0,s[e]=t):i[e]=t}}if(!t.transform&&(o||r?i.transform=function(e,t,r){let i="",n=!0;for(let s=0;s<nN;s++){let o=F[s],a=e[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||r){let e=nH(a,e5[o]);if(!l){n=!1;let t=nk[o]||o;i+=`${t}(${e}) `}r&&(t[o]=e)}}return i=i.trim(),r?i=r(t,n?"":i):n&&(i="none"),i}(t,e.transform,r):i.transform&&(i.transform="none")),a){let{originX:e="50%",originY:t="50%",originZ:r=0}=s;i.transformOrigin=`${e} ${t} ${r}`}}let nV={offset:"stroke-dashoffset",array:"stroke-dasharray"},nF={offset:"strokeDashoffset",array:"strokeDasharray"};function nj(e,t,r){return"string"==typeof e?e:eN.transform(t+r*e)}function nU(e,{attrX:t,attrY:r,attrScale:i,originX:n,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u}
1,h,c){if(nO(e,u,c),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:p,dimensions:m}=e;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==n||void 0!==s||p.transform)&&(p.transformOrigin=function(e,t,r){let i=nj(t,e.x,e.width),n=nj(r,e.y,e.height);return`${i} ${n}`}(m,void 0!==n?n:.5,void 0!==s?s:.5)),void 0!==t&&(d.x=t),void 0!==r&&(d.y=r),void 0!==i&&(d.scale=i),void 0!==o&&function(e,t,r=1,i=0,n=!0){e.pathLength=1;let s=n?nV:nF;e[s.offset]=eN.transform(-i);let o=eN.transform(t),a=eN.transform(r);e[s.array]=`${o} ${a}`}(d,o,a,l,!1)}let nG=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),nz=()=>({...nG(),attrs:{}}),n$=e=>"string"==typeof e&&"svg"===e.toLowerCase();function nW(e,{style:t,vars:r},i,n){for(let s in Object.assign(e.style,t,n&&n.getProjectionStyles(i)),r)e.style.setProperty(s,r[s])}let nX=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 nK(e,t,r,i){for(let r in nW(e,t,void 0,i),t.attrs)e.setAttribute(nX.has(r)?r:ea(r),t.attrs[r])}function nY(e,{layout:t,layoutId:r}){return j.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!io[e]||"opacity"===e)}function nZ(e,t,r){var i;let{style:n}=e,s={};for(let o in n)(es(n[o])||t.style&&es(t.style[o])||nY(o,e)||(null==(i=null==r?void 0:r.getValue(o))?void 0:i.liveStyle)!==void 0)&&(s[o]=n[o]);return s}function nq(e,t,r){let i=nZ(e,t,r);for(let r in e)(es(e[r])||es(t[r]))&&(i[-1!==F.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return i}let nQ=["x","y","width","height","cx","cy","r"],nJ={useVisualState:nD({scrapeMotionValuesFromProps:nq,createRenderState:nz,onUpdate:({props:e,prevProps:t,current:r,renderState:i,latestValues:n})=>{if(!r)return;let s=!!e.drag;if(!s){for(let e in n)if(j.has(e)){s=!0;break}}if(!s)return;let o=!t;if(t)for(let r=0;r<nQ.length;r++){let i=nQ[r];e[i]!==t[i]&&(o=!0)}o&&X.read(()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(r,i),X.render(()=>{nU(i,n,n$(r.tagName),e.transformTemplate),nK(r,i)})})}})},n0={useVisualState:nD({scrapeMotionValuesFromProps:nZ,createRenderState:nG})};function n1(e,t,r){for(let i in t)es(t[i])||nY(i,r)||(e[i]=t[i])}let n2=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function n5(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||n2.has(e)}let n3=e=>!n5(e);try{!function(e){e&&(n3=t=>t.startsWith("on")?!n5(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}var n4=r(8662),n6=r(4741);let n8=[...tv,eU,eq],n9=new WeakMap,n7=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class se{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:n,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tu,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Q.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,X.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=nx(t),this.isVariantNode=nT(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:h,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in c){let t=c[e];void 0!==a[e]&&es(t)&&t.set(a[e],!1)}}mount(e){this.current=e,n9.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),n6.r.current||(0,n4.U)(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||n6.O.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in n9.delete(this.current),this.projection&&this.projection.unmount(),K(this.notifyUpdate),K(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){let r;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let i=j.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&X.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),s(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in nM){let t=nM[e];if(!t)continue;let{isEnabled:r,Feature:i}=t;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rO()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<n7.length;t++){let r=n7[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let i=e["on"+r];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=function(e,t,r){for(let i in t){let n=t[i],s=r[i];if(es(n))e.addValue(i,n);else if(es(s))e.addValue(i,en(n,{owner:e}));else if(s!==n)if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(i);e.addValue(i,en(void 0!==t?t:n,{owner:e}))}}for(let i in r)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=en(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let i=void 0===this.latestValues[e]&&this.current?null!=(r=this.getBaseTargetFromProps(this.props,e))?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){if("string"==typeof i&&(th(i)||ew(i)))i=parseFloat(i);else{let r;r=i,!n8.find(ty(r))&&eq.test(t)&&(i=e6(e,t))}this.setBaseTarget(e,es(i)?i.get():i)}return es(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let r,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=u(this.props,i,null==(t=this.presenceContext)?void 0:t.custom);n&&(r=n[e])}if(i&&void 0!==r)return r;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||es(n)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new et),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class st extends se{constructor(){super(...arguments),this.KeyframeResolver=tE}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;es(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class sr extends st{constructor(){super(...arguments),this.type="html",this.renderInstance=nW}readValueFromInstance(e,t){if(j.has(t)){let e=e4(t);return e&&e.default||0}{let r=window.getComputedStyle(e),i=(td(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return rq(e,t)}build(e,t,r){nO(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return nZ(e,t,r)}}class si extends st{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rO}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(j.has(t)){let e=e4(t);return e&&e.default||0}return t=nX.has(t)?t:ea(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return nq(e,t,r)}build(e,t,r){nU(e,t,this.isSVGTag,r.transformTemplate)}
1renderInstance(e,t,r,i){nK(e,t,r,i)}mount(e){this.isSVGTag=n$(e.tagName),super.mount(e)}}let sn=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(r,i)=>"create"===i?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}((r4={animation:{Feature:rd},exit:{Feature:rm},inView:{Feature:nv},tap:{Feature:nd},focus:{Feature:nh},hover:{Feature:nu},pan:{Feature:r3},drag:{Feature:r2,ProjectionNode:na,MeasureLayout:ih},layout:{ProjectionNode:na,MeasureLayout:ih}},r6=(e,t)=>n_(e)?new si(t):new sr(t,{allowProjection:e!==r9.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){var t,r;let{preloadedFeatures:i,createVisualElement:n,useRender:s,useVisualState:o,Component:l}=e;function u(e,t){var r;let i,u={...(0,r9.useContext)(nE.Q),...e,layoutId:function(e){let{layoutId:t}=e,r=(0,r9.useContext)(ie.L).id;return r&&void 0!==t?r+"-"+t:t}(e)},{isStatic:h}=u,c=function(e){let{initial:t,animate:r}=function(e,t){if(nx(e)){let{initial:t,animate:r}=e;return{initial:!1===t||a(t)?t:void 0,animate:a(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,r9.useContext)(nw));return(0,r9.useMemo)(()=>({initial:t,animate:r}),[nP(t),nP(r)])}(e),d=o(e,h);if(!h&&nS.B){(0,r9.useContext)(nb).strict;let e=function(e){let{drag:t,layout:r}=nM;if(!t&&!r)return{};let i={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(u);i=e.MeasureLayout,c.visualElement=function(e,t,r,i,n){var s,o;let{visualElement:a}=(0,r9.useContext)(nw),l=(0,r9.useContext)(nb),u=(0,r9.useContext)(nR.t),h=(0,r9.useContext)(nE.Q).reducedMotion,c=(0,r9.useRef)(null);i=i||l.renderer,!c.current&&i&&(c.current=i(e,{visualState:t,parent:a,props:r,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let d=c.current,p=(0,r9.useContext)(it);d&&!d.projection&&n&&("html"===d.type||"svg"===d.type)&&function(e,t,r,i){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!o||a&&rP(a),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(c.current,r,n,p);let m=(0,r9.useRef)(!1);(0,r9.useInsertionEffect)(()=>{d&&m.current&&d.update(r,u)});let f=r[el],g=(0,r9.useRef)(!!f&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,f))&&(null==(o=window.MotionHasOptimisedAnimation)?void 0:o.call(window,f)));return(0,nB.E)(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),ia.render(d.render),g.current&&d.animationState&&d.animationState.animateChanges())}),(0,r9.useEffect)(()=>{d&&(!g.current&&d.animationState&&d.animationState.animateChanges(),g.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,f)}),g.current=!1))}),d}(l,d,u,n,e.ProjectionNode)}return(0,r8.jsxs)(nw.Provider,{value:c,children:[i&&c.visualElement?(0,r8.jsx)(i,{visualElement:c.visualElement,...u}):null,s(l,e,(r=c.visualElement,(0,r9.useCallback)(e=>{e&&d.onMount&&d.onMount(e),r&&(e?r.mount(e):r.unmount()),t&&("function"==typeof t?t(e):rP(t)&&(t.current=e))},[r])),d,h,c.visualElement)]})}i&&function(e){for(let t in e)nM[t]={...nM[t],...e[t]}}(i),u.displayName="motion.".concat("string"==typeof l?l:"create(".concat(null!=(r=null!=(t=l.displayName)?t:l.name)?r:"",")"));let h=(0,r9.forwardRef)(u);return h[nC]=l,h}({...n_(e)?nJ:n0,preloadedFeatures:r4,useRender:function(e=!1){return(t,r,i,{latestValues:n},s)=>{let o=(n_(t)?function(e,t,r,i){let n=(0,r9.useMemo)(()=>{let r=nz();return nU(r,t,n$(i),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};n1(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let r={},i=function(e,t){let r=e.style||{},i={};return n1(i,r,e),Object.assign(i,function({transformTemplate:e},t){return(0,r9.useMemo)(()=>{let r=nG();return nO(r,t,e),Object.assign({},r.vars,r.style)}
1,[t])}(e,t)),i}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r})(r,n,s,t),a=function(e,t,r){let i={};for(let n in e)("values"!==n||"object"!=typeof e.values)&&(n3(n)||!0===r&&n5(n)||!t&&!n5(n)||e.draggable&&n.startsWith("onDrag"))&&(i[n]=e[n]);return i}(r,"string"==typeof t,e),l=t!==r9.Fragment?{...a,...o,ref:i}:{},{children:u}=r,h=(0,r9.useMemo)(()=>es(u)?u.get():u,[u]);return(0,r9.createElement)(t,{...l,children:h})}}(t),createVisualElement:r6,Component:e})}))},6553:(e,t,r)=>{r.d(t,{E:()=>n});var i=r(2115);let n=r(3577).B?i.useLayoutEffect:i.useEffect},6809:(e,t,r)=>{r.d(t,{Dk:()=>ef,kc:()=>ew,Ym:()=>eE,c3:()=>eb});var i=r(2115);function n(e,t){let r=t&&t.cache?t.cache:u,i=t&&t.serializer?t.serializer:a;return(t&&t.strategy?t.strategy:function(e,t){var r,i;let n=1===e.length?s:o;return r=t.cache.create(),i=t.serializer,n.bind(this,e,r,i)})(e,{cache:r,serializer:i})}function s(e,t,r,i){let n=null==i||"number"==typeof i||"boolean"==typeof i?i:r(i),s=t.get(n);return void 0===s&&(s=e.call(this,i),t.set(n,s)),s}function o(e,t,r){let i=Array.prototype.slice.call(arguments,3),n=r(i),s=t.get(n);return void 0===s&&(s=e.apply(this,i),t.set(n,s)),s}let a=function(){return JSON.stringify(arguments)};class l{cache;constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}}let u={create:function(){return new l}},h={variadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,o.bind(this,e,r,i)},monadic:function(e,t){var r,i;return r=t.cache.create(),i=t.serializer,s.bind(this,e,r,i)}};class c extends Error{constructor(e,t){let r=e;t&&(r+=": "+t),super(r),this.code=e,t&&(this.originalMessage=t)}}var d=function(e){return e.MISSING_MESSAGE="MISSING_MESSAGE",e.MISSING_FORMAT="MISSING_FORMAT",e.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",e.INSUFFICIENT_PATH="INSUFFICIENT_PATH",e.INVALID_MESSAGE="INVALID_MESSAGE",e.INVALID_KEY="INVALID_KEY",e.FORMATTING_ERROR="FORMATTING_ERROR",e}(d||{});function p(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function m(e,t){return n(e,{cache:{create:()=>({get:e=>t[e],set(e,r){t[e]=r}})},strategy:h.variadic})}function f(e,t){return m((...t)=>new e(...t),t)}function g(e){return{getDateTimeFormat:f(Intl.DateTimeFormat,e.dateTime),getNumberFormat:f(Intl.NumberFormat,e.number),getPluralRules:f(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:f(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:f(Intl.ListFormat,e.list),getDisplayNames:f(Intl.DisplayNames,e.displayNames)}}let y=function(e){return e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag",e}({}),v=function(e){return e[e.number=0]="number",e[e.dateTime=1]="dateTime",e}({});function b(e){return e.type===y.literal}function E(e){return e.type===y.number}function w(e){return e.type===y.date}function x(e){return e.type===y.time}function T(e){return e.type===y.select}function P(e){return e.type===y.plural}function S(e){return e.type===y.tag}function A(e){return!!(e&&"object"==typeof e&&e.type===v.number)}function M(e){return!!(e&&"object"==typeof e&&e.type===v.dateTime)}let C=function(e){return e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG",e}({}),R=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,B=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,L=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,_=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,I=/^(@+)?(\+|#+)?[rs]?$/g,D=/(\*)(0+)|(#+)(0+)|(0+)/g,H=/^(0+)$/;function k(e){let t={};return"r"===e[e.length-1]?t.roundingPriority="morePrecision":"s"===e[e.length-1]&&(t.roundingPriority="lessPrecision"),e.replace(I,function(e,r,i){return"string"!=typeof i?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):"+"===i?t.minimumSignificantDigits=r.length:"#"===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+("string"==typeof i?i.length:0)),""}),t}function N(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function O(e){let t=N(e);return t||{}}let V={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GS:["H","h","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
1:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ku-SY":["H","hB"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]},F=RegExp(`^${R.source}*`),j=RegExp(`${R.source}*$`);function U(e,t){return{start:e,end:t}}let G=!!Object.fromEntries,z=!!String.prototype.trimStart,$=!!String.prototype.trimEnd,W=G?Object.fromEntries:function(e){let t={};for(let[r,i]of e)t[r]=i;return t},X=z?function(e){return e.trimStart()}:function(e){return e.replace(F,"")},K=$?function(e){return e.trimEnd()}:function(e){return e.replace(j,"")},Y=RegExp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");class Z{message;position;locale;ignoreTag;requiresOtherClause;shouldParseSkeletons;constructor(e,t={}){this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)}parseMessage(e,t,r){let i=[];for(;!this.isEOF();){let n=this.char();if(123===n){let t=this.parseArgument(e,r);if(t.err)return t;i.push(t.val)}else if(125===n&&e>0)break;else if(35===n&&("plural"===t||"selectordinal"===t)){let e=this.clonePosition();this.bump(),i.push({type:y.pound,location:U(e,this.clonePosition())})}else if(60!==n||this.ignoreTag||47!==this.peek())if(60===n&&!this.ignoreTag&&q(this.peek()||0)){let r=this.parseTag(e,t);if(r.err)return r;i.push(r.val)}else{let r=this.parseLiteral(e,t);if(r.err)return r;i.push(r.val)}else if(!r)return this.error(C.UNMATCHED_CLOSING_TAG,U(this.clonePosition(),this.clonePosition()));else break}return{val:i,err:null}}parseTag(e,t){let r=this.clonePosition();this.bump();let i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:y.literal,value:`<${i}/>`,location:U(r,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(C.INVALID_TAG,U(r,this.clonePosition()));{let n=this.parseMessage(e+1,t,!0);if(n.err)return n;let s=n.val,o=this.clonePosition();if(!this.bumpIf("</"))return this.error(C.UNCLOSED_TAG,U(r,this.clonePosition()));{if(this.isEOF()||!q(this.char()))return this.error(C.INVALID_TAG,U(o,this.clonePosition()));let e=this.clonePosition();return i!==this.parseTagName()?this.error(C.UNMATCHED_CLOSING_TAG,U(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:y.tag,value:i,children:s,location:U(r,this.clonePosition())},err:null}:this.error(C.INVALID_TAG,U(o,this.clonePosition()))}}}parseTagName(){var e;let t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039);)this.bump();return this.message.slice(t,this.offset())}parseLiteral(e,t){let r=this.clonePosition(),i="";for(;;){let r=this.tryParseQuote(t);if(r){i+=r;
1continue}let n=this.tryParseUnquoted(e,t);if(n){i+=n;continue}let s=this.tryParseLeftAngleBracket();if(s){i+=s;continue}break}let n=U(r,this.clonePosition());return{val:{type:y.literal,value:i,location:n},err:null}}tryParseLeftAngleBracket(){var e;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(q(e=this.peek()||0)||47===e)?null:(this.bump(),"<")}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();let t=[this.char()];for(this.bump();!this.isEOF();){let e=this.char();if(39===e)if(39===this.peek())t.push(39),this.bump();else{this.bump();break}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;let r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){let r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(C.EMPTY_ARGUMENT,U(r,this.clonePosition()));let i=this.parseIdentifierIfPossible().value;if(!i)return this.error(C.MALFORMED_ARGUMENT,U(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:y.argument,value:i,location:U(r,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,U(r,this.clonePosition()));return this.parseArgumentOptions(e,t,i,r);default:return this.error(C.MALFORMED_ARGUMENT,U(r,this.clonePosition()))}}parseIdentifierIfPossible(){var e;let t=this.clonePosition(),r=this.offset(),i=(e=this.message,Y.lastIndex=r,Y.exec(e)[1]??""),n=r+i.length;return this.bumpTo(n),{value:i,location:U(t,this.clonePosition())}}parseArgumentOptions(e,t,r,i){let n=this.clonePosition(),s=this.parseIdentifierIfPossible().value,o=this.clonePosition();switch(s){case"":return this.error(C.EXPECT_ARGUMENT_TYPE,U(n,o));case"number":case"date":case"time":{this.bumpSpace();let e=null;if(this.bumpIf(",")){this.bumpSpace();let t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;let i=K(r.val);if(0===i.length)return this.error(C.EXPECT_ARGUMENT_STYLE,U(this.clonePosition(),this.clonePosition()));e={style:i,styleLocation:U(t,this.clonePosition())}}let t=this.tryParseArgumentClose(i);if(t.err)return t;let n=U(i,this.clonePosition());if(e&&e.style.startsWith("::")){let t=X(e.style.slice(2));if("number"===s){let i=this.parseNumberSkeletonFromString(t,e.styleLocation);if(i.err)return i;return{val:{type:y.number,value:r,location:n,style:i.val},err:null}}{if(0===t.length)return this.error(C.EXPECT_DATE_TIME_SKELETON,n);let i=t;this.locale&&(i=function(e,t){let r="";for(let i=0;i<e.length;i++){let n=e.charAt(i);if("j"===n){let s=0;for(;i+1<e.length&&e.charAt(i+1)===n;)s++,i++;let o=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){let t,r=e.hourCycle;if(void 0===r&&e.hourCycles&&e.hourCycles.length&&(r=e.hourCycles[0]),r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}let i=e.language;return"root"!==i&&(t=e.maximize().region),(V[t||""]||V[i||""]||V[`${i}-001`]||V["001"])[0]}(t);for(("H"==l||"k"==l)&&(a=0);a-- >0;)r+="a";for(;o-- >0;)r=l+r}else"J"===n?r+="H":r+=n}return r}(t,this.locale));let o={type:v.dateTime,pattern:i,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?function(e){let t={};return e.replace(B,e=>{let r=e.length;switch(e[0]){case"G":t.era=4===r?"long":5===r?"narrow":"short";break;case"y":t.year=2===r?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===r?"long":5===r?"narrow":"short";break;case"e":if(r<4)throw RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}(i):{}};return{val:{type:"date"===s?y.date:y.time,value:r,location:n,style:o},err:null}}}return{val:{type:"number"===s?y.number:"date"===s?y.date:y.time,value:r,location:n,style:e?.style??null},err:null}}
1case"plural":case"selectordinal":case"select":{let n=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(C.EXPECT_SELECT_ARGUMENT_OPTIONS,U(n,{...n}));this.bumpSpace();let o=this.parseIdentifierIfPossible(),a=0;if("select"!==s&&"offset"===o.value){if(!this.bumpIf(":"))return this.error(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,U(this.clonePosition(),this.clonePosition()));this.bumpSpace();let e=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,C.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(e.err)return e;this.bumpSpace(),o=this.parseIdentifierIfPossible(),a=e.val}let l=this.tryParsePluralOrSelectOptions(e,s,t,o);if(l.err)return l;let u=this.tryParseArgumentClose(i);if(u.err)return u;let h=U(i,this.clonePosition());if("select"===s)return{val:{type:y.select,value:r,options:W(l.val),location:h},err:null};return{val:{type:y.plural,value:r,options:W(l.val),offset:a,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null}}default:return this.error(C.INVALID_ARGUMENT_TYPE,U(n,o))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(C.EXPECT_ARGUMENT_CLOSING_BRACE,U(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0,t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil("'"))return this.error(C.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,U(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw Error("Number skeleton cannot be empty");let t=e.split(L).filter(e=>e.length>0),r=[];for(let e of t){let t=e.split("/");if(0===t.length)throw Error("Invalid number skeleton");let[i,...n]=t;for(let e of n)if(0===e.length)throw Error("Invalid number skeleton");r.push({stem:i,options:n})}return r}(e)}catch{return this.error(C.INVALID_NUMBER_SKELETON,t)}return{val:{type:v.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?function(e){let t={};for(let r of e){switch(r.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=r.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t={...t,notation:"scientific",...r.options.reduce((e,t)=>({...e,...O(t)}),{})};continue;case"engineering":t={...t,notation:"engineering",...r.options.reduce((e,t)=>({...e,...O(t)}),{})};continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(r.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(D,function(e,r,i,n,s,o){if(r)t.minimumIntegerDigits=i.length;else if(n&&s)throw Error("We currently do not support maximum integer digits");else if(o)throw Error("We currently do not support exact integer digits");return""});continue}if(H.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(_.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(_,function(e,r,i,n,s,o){return"*"===i?t.minimumFractionDigits=r.length:n&&"#"===n[0]?t.maximumFractionDigits=n.length:s&&o?(t.minimumFractionDigits=s.length,t.maximumFractionDigits=s.length+o.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),""});let e=r.options[0];
1"w"===e?t={...t,trailingZeroDisplay:"stripIfInteger"}:e&&(t={...t,...k(e)});continue}if(I.test(r.stem)){t={...t,...k(r.stem)};continue}let e=N(r.stem);e&&(t={...t,...e});let i=function(e){let t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){let r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!H.test(e))throw Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(r.stem);i&&(t={...t,...i})}return t}(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,i){let n=!1,s=[],o=new Set,{value:a,location:l}=i;for(;;){if(0===a.length){let e=this.clonePosition();if("select"!==t&&this.bumpIf("=")){let t=this.tryParseDecimalInteger(C.EXPECT_PLURAL_ARGUMENT_SELECTOR,C.INVALID_PLURAL_ARGUMENT_SELECTOR);if(t.err)return t;l=U(e,this.clonePosition()),a=this.message.slice(e.offset,this.offset())}else break}if(o.has(a))return this.error("select"===t?C.DUPLICATE_SELECT_ARGUMENT_SELECTOR:C.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(n=!0),this.bumpSpace();let i=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?C.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:C.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,U(this.clonePosition(),this.clonePosition()));let u=this.parseMessage(e+1,t,r);if(u.err)return u;let h=this.tryParseArgumentClose(i);if(h.err)return h;s.push([a,{value:u.val,location:U(i,this.clonePosition())}]),o.add(a),this.bumpSpace(),{value:a,location:l}=this.parseIdentifierIfPossible()}return 0===s.length?this.error("select"===t?C.EXPECT_SELECT_ARGUMENT_SELECTOR:C.EXPECT_PLURAL_ARGUMENT_SELECTOR,U(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!n?this.error(C.MISSING_OTHER_CLAUSE,U(this.clonePosition(),this.clonePosition())):{val:s,err:null}}tryParseDecimalInteger(e,t){let r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);let n=!1,s=0;for(;!this.isEOF();){let e=this.char();if(e>=48&&e<=57)n=!0,s=10*s+(e-48),this.bump();else break}let o=U(i,this.clonePosition());return n?Number.isSafeInteger(s*=r)?{val:s,err:null}:this.error(t,o):this.error(e,o)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){let e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");let t=this.message.codePointAt(e);if(void 0===t)throw Error(`Offset ${e} is at invalid UTF-16 code unit boundary`);return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;let e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){let t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error(`targetOffset ${e} must be greater than or equal to the current offset ${this.offset()}`);for(e=Math.min(e,this.message.length);;){let t=this.offset();if(t===e)break;if(t>e)throw Error(`targetOffset ${e} is at invalid UTF-16 code unit boundary`);if(this.bump(),this.isEOF())break}}bumpSpace(){for(var e;!this.isEOF()&&((e=this.char())>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e);)this.bump()}peek(){if(this.isEOF())return null;let e=this.char(),t=this.offset();return this.message.charCodeAt(t+(e>=65536?2:1))??null}}function q(e){return e>=97&&e<=122||e>=65&&e<=90}function Q(e,t={}){let r=new Z(e,t={shouldParseSkeletons:!0,requiresOtherClause:!0,...t}).parse();if(r.err){let e=SyntaxError(C[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return t?.captureLocation||function e(t){t.forEach(t=>{if(delete t.location,T(t)||P(t))for(let r in t.options)delete t.options[r].location,e(t.options[r].value);else E(t)&&A(t.style)||(w(t)||x(t))&&M(t.style)?delete t.style.location:S(t)&&e(t.children)})}(r.val),r.val}let J=function(e){return e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API",e}({});
1class ee extends Error{code;originalMessage;constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return`[formatjs Error: ${this.code}] ${this.message}`}}class et extends ee{constructor(e,t,r,i){super(`Invalid values for "${e}": "${t}". Options are "${Object.keys(r).join('", "')}"`,J.INVALID_VALUE,i)}}class er extends ee{constructor(e,t,r){super(`Value for "${e}" must be of type ${t}`,J.INVALID_VALUE,r)}}class ei extends ee{constructor(e,t){super(`The intl string context variable "${e}" was not provided to the string "${t}"`,J.MISSING_VALUE,t)}}let en=function(e){return e[e.literal=0]="literal",e[e.object=1]="object",e}({});function es(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}class eo{ast;locales;resolvedLocale;formatters;formats;message;formatterCache={number:{},dateTime:{},pluralRules:{}};constructor(e,t=eo.defaultLocale,r,i){if(this.locales=t,this.resolvedLocale=eo.resolveLocale(t),"string"==typeof e){if(this.message=e,!eo.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");let{...t}=i||{};this.ast=eo.__parse(e,{...t,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=function(e,t){return t?Object.keys(e).reduce((r,i)=>{var n,s;return r[i]=(n=e[i],(s=t[i])?{...n,...s,...Object.keys(n).reduce((e,t)=>(e[t]={...n[t],...s[t]},e),{})}:n),r},{...e}):e}(eo.formats,r),this.formatters=i&&i.formatters||function(e={number:{},dateTime:{},pluralRules:{}}){return{getNumberFormat:n((...e)=>new Intl.NumberFormat(...e),{cache:es(e.number),strategy:h.variadic}),getDateTimeFormat:n((...e)=>new Intl.DateTimeFormat(...e),{cache:es(e.dateTime),strategy:h.variadic}),getPluralRules:n((...e)=>new Intl.PluralRules(...e),{cache:es(e.pluralRules),strategy:h.variadic})}}(this.formatterCache)}format=e=>{let t=this.formatToParts(e);if(1===t.length)return t[0].value;let r=t.reduce((e,t)=>(e.length&&t.type===en.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e),[]);return r.length<=1?r[0]||"":r};formatToParts=e=>(function e(t,r,i,n,s,o,a){if(1===t.length&&b(t[0]))return[{type:en.literal,value:t[0].value}];let l=[];for(let u of t){if(b(u)){l.push({type:en.literal,value:u.value});continue}if(u.type===y.pound){"number"==typeof o&&l.push({type:en.literal,value:i.getNumberFormat(r).format(o)});continue}let{value:t}=u;if(!(s&&t in s))throw new ei(t,a);let h=s[t];if(u.type===y.argument){h&&"string"!=typeof h&&"number"!=typeof h&&"bigint"!=typeof h||(h="string"==typeof h||"number"==typeof h||"bigint"==typeof h?String(h):""),l.push({type:"string"==typeof h?en.literal:en.object,value:h});continue}if(w(u)){let e="string"==typeof u.style?n.date[u.style]:M(u.style)?u.style.parsedOptions:void 0;l.push({type:en.literal,value:i.getDateTimeFormat(r,e).format(h)});continue}if(x(u)){let e="string"==typeof u.style?n.time[u.style]:M(u.style)?u.style.parsedOptions:n.time.medium;l.push({type:en.literal,value:i.getDateTimeFormat(r,e).format(h)});continue}if(E(u)){let e="string"==typeof u.style?n.number[u.style]:A(u.style)?u.style.parsedOptions:void 0;if(e&&e.scale){let t=e.scale||1;if("bigint"==typeof h){if(!Number.isInteger(t))throw TypeError(`Cannot apply fractional scale ${t} to bigint value. Scale must be an integer when formatting bigint.`);h*=BigInt(t)}else h*=t}l.push({type:en.literal,value:i.getNumberFormat(r,e).format(h)});continue}if(S(u)){let{children:t,value:h}=u,c=s[h];if("function"!=typeof c)throw new er(h,"function",a);let d=c(e(t,r,i,n,s,o).map(e=>e.value));Array.isArray(d)||(d=[d]),l.push(...d.map(e=>({type:"string"==typeof e?en.literal:en.object,value:e})))}if(T(u)){let t=h,o=(Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0)||u.options.other;if(!o)throw new et(u.value,h,Object.keys(u.options),a);l.push(...e(o.value,r,i,n,s));continue}if(P(u)){let t=`=${h}`,o=Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0;if(!o){if(!Intl.PluralRules)throw new ee(`Intl.PluralRules is not available in this environment.
2Try polyfilling it using "@formatjs/intl-pluralrules"
3`,J.MISSING_INTL_API,a);let e="bigint"==typeof h?Number(h):h,t=i.getPluralRules(r,{type:u.pluralType}).select(e-(u.offset||0));o=(Object.prototype.hasOwnProperty.call(u.options,t)?u.options[t]:void 0)||u.options.other}if(!o)throw new et(u.value,h,Object.keys(u.options),a);let c="bigint"==typeof h?Number(h):h;l.push(...e(o.value,r,i,n,s,c-(u.offset||0)));continue}}return l.length<2?l:l.reduce((e,t)=>
3{let r=e[e.length-1];return r&&r.type===en.literal&&t.type===en.literal?r.value+=t.value:e.push(t),e},[])})(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message);resolvedOptions=()=>({locale:this.resolvedLocale?.toString()||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]});getAst=()=>this.ast;static memoizedDefaultLocale=null;static get defaultLocale(){return eo.memoizedDefaultLocale||(eo.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),eo.memoizedDefaultLocale}static resolveLocale=e=>{if(void 0===Intl.Locale)return;let t=Intl.NumberFormat.supportedLocalesOf(e);return new Intl.Locale(t.length>0?t[0]:"string"==typeof e?e:e[0])};static __parse=Q;static formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}function ea(...[e,t,r,n]){let s;if(Array.isArray(t))throw new c(d.INVALID_MESSAGE,void 0);if("object"==typeof t)throw new c(d.INSUFFICIENT_PATH,void 0);if("string"==typeof t){let e=r||/'[{}]/.test(t)?void 0:t;if(e)return e}let{cache:o,formats:a,formatters:l,globalFormats:u,locale:h,timeZone:p}=n;l.getMessageFormat||(l.getMessageFormat=m((...e)=>new eo(e[0],e[1],e[2],{formatters:l,...e[3]}),o.message));try{s=l.getMessageFormat(t,h,function(e,t,r){let i=eo.formats.date,n=eo.formats.time,s={...e?.dateTime,...t?.dateTime},o={date:{...i,...s},time:{...n,...s},number:{...e?.number,...t?.number}};return r&&["date","time"].forEach(e=>{let t=o[e];for(let[e,i]of Object.entries(t))t[e]={timeZone:r,...i}}),o}(u,a,p),{formatters:{...l,getDateTimeFormat:(e,t)=>l.getDateTimeFormat(e,{...t,timeZone:t?.timeZone??p})}})}catch(e){throw new c(d.INVALID_MESSAGE,void 0)}let f=s.format(r);return(0,i.isValidElement)(f)||Array.isArray(f)||"string"==typeof f?f:String(f)}function el(...e){return e.filter(Boolean).join(".")}function eu(e){return el(e.namespace,e.key)}function eh(e){console.error(e)}function ec(e,t,r,i){let n=el(i,r);if(!t)throw Error(n);let s=t;return r.split(".").forEach(t=>{let r=s[t];if(null==t||null==r)throw Error(n+` (${e})`);s=r}),s}ea.raw=!0;let ed={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:2628e3,months:2628e3,quarter:7884e3,quarters:7884e3,year:31536e3,years:31536e3};var ep=r(5155);let em=(0,i.createContext)(void 0);function ef({children:e,formats:t,getMessageFallback:r,locale:n,messages:s,now:o,onError:a,timeZone:l}){let u=(0,i.useContext)(em),h=(0,i.useMemo)(()=>u?.cache||p(),[n,u?.cache]),c=(0,i.useMemo)(()=>u?.formatters||g(h),[h,u?.formatters]),d=(0,i.useMemo)(()=>({...function({formats:e,getMessageFallback:t,messages:r,onError:i,...n}){return{...n,formats:e||void 0,messages:r||void 0,onError:i||eh,getMessageFallback:t||eu}}({locale:n,formats:void 0===t?u?.formats:t,getMessageFallback:r||u?.getMessageFallback,messages:void 0===s?u?.messages:s,now:o||u?.now,onError:a||u?.onError,timeZone:l||u?.timeZone}),formatters:c,cache:h}),[h,t,c,r,n,s,o,a,u,l]);return(0,ep.jsx)(em.Provider,{value:d,children:e})}function eg(){let e=(0,i.useContext)(em);if(!e)throw Error(void 0);return e}let ey=!1,ev="undefined"==typeof window;function eb(e){return function(e,t,r){let{cache:n,formats:s,formatters:o,getMessageFallback:a,locale:l,onError:u,timeZone:h}=eg(),p=e["!"],m="!"===t?void 0:t.slice((r+".").length);return h||ey||!ev||(ey=!0,u(new c(d.ENVIRONMENT_FALLBACK,void 0))),(0,i.useMemo)(()=>(function(e){let t=function(e,t,r){try{if(!t)throw Error(void 0);let i=r?ec(e,t,r):t;if(!i)throw Error(r);return i}catch(e){return new c(d.MISSING_MESSAGE,e.message)}}(e.locale,e.messages,e.namespace);
3return function({cache:e,formats:t,formatters:r,getMessageFallback:n=eu,locale:s,messagesOrError:o,namespace:a,onError:l,timeZone:u}){let h=o instanceof c;function p(e,t,r,i){let s=new c(t,r);return l(s),i??n({error:s,key:e,namespace:a})}function m(m,f,g,y){let v;if(h){if(!y)return l(o),n({error:o,key:m,namespace:a});v=y}else try{v=ec(s,o,m,a)}catch(e){if(!y)return p(m,d.MISSING_MESSAGE,e.message,y);v=y}try{let n=el(a,m);return ea(n,v,f?function(e){let t={};return Object.keys(e).forEach(r=>{let n,s=0,o=e[r];n="function"==typeof o?e=>{let t=o(e);return(0,i.isValidElement)(t)?(0,i.cloneElement)(t,{key:r+s++}):t}:o,t[r]=n}),t}(f):f,{cache:e,formatters:r,globalFormats:t,formats:g,locale:s,timeZone:u})}catch(r){let e,t;return r instanceof c?(e=r.code,t=r.originalMessage):(e=d.FORMATTING_ERROR,t=r.message),p(m,e,t,y)}}function f(e,t,r,i){let n=m(e,t,r,i);return"string"!=typeof n?p(e,d.INVALID_MESSAGE,void 0):n}return f.rich=m,f.markup=(e,t,r,i)=>m(e,t,r,i),f.raw=e=>{if(h)return l(o),n({error:o,key:e,namespace:a});try{return ec(s,o,e,a)}catch(t){return p(e,d.MISSING_MESSAGE,t.message)}},f.has=e=>{if(h)return!1;try{return ec(s,o,e,a),!0}catch{return!1}},f}({...e,messagesOrError:t})})({cache:n,formatters:o,getMessageFallback:a,messages:p,namespace:m,onError:u,formats:s,locale:l,timeZone:h}),[n,o,a,p,m,u,s,l,h])}({"!":eg().messages},e?`!.${e}`:"!","!")}function eE(){return eg().locale}function ew(){let{formats:e,formatters:t,locale:r,now:n,onError:s,timeZone:o}=eg();return(0,i.useMemo)(()=>(function(e){let{_cache:t=p(),_formatters:r=g(t),formats:i,locale:n,onError:s=eh,timeZone:o}=e;function a(e){return e?.timeZone||(o?e={...e,timeZone:o}:s(new c(d.ENVIRONMENT_FALLBACK,void 0))),e}function l(e,t,r,i,n){let o;try{o=function(e,t,r){let i;if("string"==typeof t){if(!(i=e?.[t])){let e=new c(d.MISSING_FORMAT,void 0);throw s(e),e}}else i=t;return r&&(i={...i,...r}),i}(r,e,t)}catch{return n()}try{return i(o)}catch(e){return s(new c(d.FORMATTING_ERROR,e.message)),n()}}function u(e,t,s){return l(t,s,i?.dateTime,t=>(t=a(t),r.getDateTimeFormat(n,t).format(e)),()=>String(e))}function h(){return e.now?e.now:(s(new c(d.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:u,number:function(e,t,s){return l(t,s,i?.number,t=>r.getNumberFormat(n,t).format(e),()=>String(e))},relativeTime:function(e,t){try{var i;let s,o,a={};t instanceof Date||"number"==typeof t?s=new Date(t):t&&(s=null!=t.now?new Date(t.now):h(),o=t.unit,a.style=t.style,a.numberingSystem=t.numberingSystem),s||(s=h());let l=(new Date(e).getTime()-s.getTime())/1e3;o||(o=function(e){let t=Math.abs(e);return t<60?"second":t<3600?"minute":t<86400?"hour":t<604800?"day":t<2628e3?"week":t<31536e3?"month":"year"}(l)),a.numeric="second"===o?"auto":"always";let u=(i=o,Math.round(l/ed[i]));return r.getRelativeTimeFormat(n,a).format(u,o)}catch(t){return s(new c(d.FORMATTING_ERROR,t.message)),String(e)}},list:function(e,t,s){let o=[],a=new Map,u=0;for(let t of e){let e;"object"==typeof t?(e=String(u),a.set(e,t)):e=String(t),o.push(e),u++}return l(t,s,i?.list,e=>{let t=r.getListFormat(n,e).formatToParts(o).map(e=>"literal"===e.type?e.value:a.get(e.value)||e.value);return a.size>0?t:t.join("")},()=>String(e))},dateTimeRange:function(e,t,s,o){return l(s,o,i?.dateTime,i=>(i=a(i),r.getDateTimeFormat(n,i).formatRange(e,t)),()=>[u(e),u(t)].join(" – "))}}})({formats:e,locale:r,now:n,onError:s,timeZone:o,_formatters:t}),[e,t,n,r,s,o])}},8662:(e,t,r)=>{r.d(t,{U:()=>s});var i=r(3577),n=r(4741);function s(){if(n.r.current=!0,i.B)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>n.O.current=e.matches;e.addListener(t),t()}else n.O.current=!1}},8955:(e,t,r)=>{r.d(t,{c:()=>s});var i=r(6809);function n(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let s=n(0,i.c3);n(0,i.kc)},9686:(e,t,r)=>{r.d(t,{t:()=>i});let i=(0,r(2115).createContext)(null)},9862:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return i}});let i=r(8140)._(r(2115)).default.createContext(null)}}]);

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.