1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,85437,(e,t,i)=>{"use strict";e.i(47167),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"Image",{enumerable:!0,get:function(){return w}});let s=e.r(55682),n=e.r(90809),r=e.r(43476),a=n._(e.r(71645)),o=s._(e.r(74080)),l=s._(e.r(25633)),c=e.r(8927),u=e.r(87690),d=e.r(18556),h=e.r(65856),p=s._(e.r(1948)),m=e.r(18581),f={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],qualities:[75],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function y(e,t,i,s,n,r,a){let o=e?.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&n(!0),i?.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let s=!1,n=!1;i.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>s,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{s=!0,t.preventDefault()},stopPropagation:()=>{n=!0,t.stopPropagation()}})}s?.current&&s.current(e)}}))}function x(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}"u"<typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let g="u"<typeof window?a.useEffect:a.useLayoutEffect,v=(0,a.forwardRef)(({src:e,srcSet:t,sizes:i,height:s,width:n,decoding:o,className:l,style:c,fetchPriority:u,placeholder:d,loading:h,unoptimized:p,fill:f,onLoadRef:v,onLoadingCompleteRef:b,setBlurComplete:w,setShowAltText:j,sizesInput:k,onLoad:S,onError:P,...T},N)=>{let A=(0,a.useRef)(!1),C=(0,a.useRef)(null);g(()=>{let{current:e}=A,{current:t}=C;e||null===t||(P&&(t.src=t.src),t.complete&&y(t,d,v,b,w,p,k),A.current=!0)},[e,d,v,b,P,p,k]);let _=(0,m.useMergedRef)(N,C);return(0,r.jsx)("img",{...T,...x(u),loading:h,width:n,height:s,decoding:o,"data-nimg":f?"fill":"1",className:l,style:c,sizes:i,srcSet:t,src:e,ref:_,onLoad:e=>{y(e.currentTarget,d,v,b,w,p,k)},onError:e=>{j(!0),"empty"!==d&&w(!0),P&&P(e)}})});function b({isAppRouter:e,imgAttributes:t}){let i={as:"image",imageSrcSet:t.srcSet,imageSizes:t.sizes,crossOrigin:t.crossOrigin,referrerPolicy:t.referrerPolicy,...x(t.fetchPriority)};return e&&o.default.preload?(o.default.preload(t.src,i),null):(0,r.jsx)(l.default,{children:(0,r.jsx)("link",{rel:"preload",href:t.srcSet?void 0:t.src,...i},"__nimg-"+t.src+t.srcSet+t.sizes)})}let w=(0,a.forwardRef)((e,t)=>{let i=(0,a.useContext)(h.RouterContext),s=(0,a.useContext)(d.ImageConfigContext),n=(0,a.useMemo)(()=>{let e=f||s||u.imageConfigDefault,t=[...e.deviceSizes,...e.imageSizes].sort((e,t)=>e-t),i=e.deviceSizes.sort((e,t)=>e-t),n=e.qualities?.sort((e,t)=>e-t);return{...e,allSizes:t,deviceSizes:i,qualities:n,localPatterns:"u"<typeof window?s?.localPatterns:e.localPatterns}},[s]),{onLoad:o,onLoadingComplete:l}=e,m=(0,a.useRef)(o);(0,a.useEffect)(()=>{m.current=o},[o]);let y=(0,a.useRef)(l);(0,a.useEffect)(()=>{y.current=l},[l]);let[x,g]=(0,a.useState)(!1),[w,j]=(0,a.useState)(!1),{props:k,meta:S}=(0,c.getImgProps)(e,{defaultLoader:p.default,imgConf:n,blurComplete:x,showAltText:w});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(v,{...k,unoptimized:S.unoptimized,placeholder:S.placeholder,fill:S.fill,onLoadRef:m,onLoadingCompleteRef:y,setBlurComplete:g,setShowAltText:j,sizesInput:e.sizes,ref:t}),S.preload?(0,r.jsx)(b,{isAppRouter:!i,imgAttributes:k}):null]})});("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},25633,(e,t,i)=>{"use strict";e.i(47167),Object.defineProperty(i,"__esModule",{value:!0});var s={default:function(){return f},defaultHead:function(){return d}};for(var n in s)Object.defineProperty(i,n,{enumerable:!0,get:s[n]});let r=e.r(55682),a=e.r(90809),o=e.r(43476),l=a._(e.r(71645)),c=r._(e.r(98879)),u=e.r(42732);function d(){return[(0,o.jsx)("meta",{charSet:"utf-8"},"charset"),(0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function h(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>
1"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}let p=["name","httpEquiv","charSet","itemProp"];function m(e){let t,i,s,n;return e.reduce(h,[]).reverse().concat(d().reverse()).filter((t=new Set,i=new Set,s=new Set,n={},e=>{let r=!0,a=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){a=!0;let i=e.key.slice(e.key.indexOf("$")+1);t.has(i)?r=!1:t.add(i)}switch(e.type){case"title":case"base":i.has(e.type)?r=!1:i.add(e.type);break;case"meta":for(let t=0,i=p.length;t<i;t++){let i=p[t];if(e.props.hasOwnProperty(i))if("charSet"===i)s.has(i)?r=!1:s.add(i);else{let t=e.props[i],s=n[i]||new Set;("name"!==i||!a)&&s.has(t)?r=!1:(s.add(t),n[i]=s)}}}return r})).reverse().map((e,t)=>{let i=e.key||t;return l.default.cloneElement(e,{key:i})})}let f=function({children:e}){let t=(0,l.useContext)(u.HeadManagerContext);return(0,o.jsx)(c.default,{reduceComponentsToState:m,headManager:t,children:e})};("function"==typeof i.default||"object"==typeof i.default&&null!==i.default)&&void 0===i.default.__esModule&&(Object.defineProperty(i.default,"__esModule",{value:!0}),Object.assign(i.default,i),t.exports=i.default)},88143,(e,t,i)=>{"use strict";function s({widthInt:e,heightInt:t,blurWidth:i,blurHeight:n,blurDataURL:r,objectFit:a}){let o=i?40*i:e,l=n?40*n:t,c=o&&l?`viewBox='0 0 ${o} ${l}'`:"";return`%3Csvg xmlns='http://www.w3.org/2000/svg' ${c}%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='${c?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none"}' style='filter: url(%23b);' href='${r}'/%3E%3C/svg%3E`}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImageBlurSvg",{enumerable:!0,get:function(){return s}})},87690,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s={VALID_LOADERS:function(){return r},imageConfigDefault:function(){return a}};for(var n in s)Object.defineProperty(i,n,{enumerable:!0,get:s[n]});let r=["default","imgix","cloudinary","akamai","custom"],a={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}},8927,(e,t,i)=>{"use strict";e.i(47167),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"getImgProps",{enumerable:!0,get:function(){return c}});let s=e.r(43369),n=e.r(88143),r=e.r(87690),a=["-moz-initial","fill","none","scale-down",void 0];function o(e){return void 0!==e.default}function l(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 c({src:e,sizes:t,unoptimized:i=!1,priority:u=!1,preload:d=!1,loading:h,className:p,quality:m,width:f,height:y,fill:x=!1,style:g,overrideSrc:v,onLoad:b,onLoadingComplete:w,placeholder:j="empty",blurDataURL:k,fetchPriority:S,decoding:P="async",layout:T,objectFit:N,objectPosition:A,lazyBoundary:C,lazyRoot:_,...E},M){var V;let R,D,L,{imgConf:O,showAltText:F,blurComplete:I,defaultLoader:B}=M,z=O||r.imageConfigDefault;if("allSizes"in z)R=z;else{let e=[...z.deviceSizes,...z.imageSizes].sort((e,t)=>e-t),t=z.deviceSizes.sort((e,t)=>e-t),i=z.qualities?.sort((e,t)=>e-t);R={...z,allSizes:e,deviceSizes:t,qualities:i}}if(void 0===B)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,
1configurable:!0});let $=E.loader||B;delete E.loader,delete E.srcSet;let X="__next_img_default"in $;if(X){if("custom"===R.loader)throw Object.defineProperty(Error(`Image with src "${e}" is missing "loader" prop. 2Read more: https://nextjs.org/docs/messages/next-image-missing-loader`),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=$;$=t=>{let{config:i,...s}=t;return e(s)}}if(T){"fill"===T&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[T];e&&(g={...g,...e});let i={responsive:"100vw",fill:"100vw"}[T];i&&!t&&(t=i)}let U="",H=l(f),W=l(y);if((V=e)&&"object"==typeof V&&(o(V)||void 0!==V.src)){let t=o(e)?e.default:e;if(!t.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(t)}`),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.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(t)}`),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(D=t.blurWidth,L=t.blurHeight,k=k||t.blurDataURL,U=t.src,!x)if(H||W){if(H&&!W){let e=H/t.width;W=Math.round(t.height*e)}else if(!H&&W){let e=W/t.height;H=Math.round(t.width*e)}}else H=t.width,W=t.height}let Q=!u&&!d&&("lazy"===h||void 0===h);(!(e="string"==typeof e?e:U)||e.startsWith("data:")||e.startsWith("blob:"))&&(i=!0,Q=!1),R.unoptimized&&(i=!0),X&&!R.dangerouslyAllowSVG&&e.split("?",1)[0].endsWith(".svg")&&(i=!0);let Y=l(m),q=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:N,objectPosition:A}:{},F?{}:{color:"transparent"},g),K=I||"empty"===j?null:"blur"===j?`url("data:image/svg+xml;charset=utf-8,${(0,n.getImageBlurSvg)({widthInt:H,heightInt:W,blurWidth:D,blurHeight:L,blurDataURL:k||"",objectFit:q.objectFit})}")`:`url("${j}")`,G=a.includes(q.objectFit)?"fill"===q.objectFit?"100% 100%":"cover":q.objectFit,Z=K?{backgroundSize:G,backgroundPosition:q.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},J=function({config:e,src:t,unoptimized:i,width:n,quality:r,sizes:a,loader:o}){if(i){if(t.startsWith("/")&&!t.startsWith("//")){let e=(0,s.getDeploymentId)();if(t.includes("/_next/static/immutable")&&!(0,s.getAssetToken)())e=void 0;else if(e){let i=t.indexOf("?");if(-1!==i){let s=new URLSearchParams(t.slice(i+1));s.get("dpl")||(s.append("dpl",e),t=t.slice(0,i)+"?"+s.toString())}else t+=`?dpl=${e}`}}return{src:t,srcSet:void 0,sizes:void 0}}let{widths:l,kind:c}=function({deviceSizes:e,allSizes:t},i,s){if(s){let i=/(^|\s)(1?\d?\d)vw/g,n=[];for(let e;e=i.exec(s);)n.push(parseInt(e[2]));if(n.length){let i=.01*Math.min(...n);return{widths:t.filter(t=>t>=e[0]*i),kind:"w"}}return{widths:t,kind:"w"}}return"number"!=typeof i?{widths:e,kind:"w"}:{widths:[...new Set([i,2*i].map(e=>t.find(t=>t>=e)||t[t.length-1]))],kind:"x"}}(e,n,a),u=l.length-1;return{sizes:a||"w"!==c?a:"100vw",srcSet:l.map((i,s)=>`${o({config:e,src:t,quality:r,width:i})} ${"w"===c?i:s+1}${c}`).join(", "),src:o({config:e,src:t,quality:r,width:l[u]})}}({config:R,src:e,unoptimized:i,width:H,quality:Y,sizes:t,loader:$}),ee=Q?"lazy":h;return{props:{...E,loading:ee,fetchPriority:S,width:H,height:W,decoding:P,className:p,style:{...q,...Z},sizes:J.sizes,srcSet:J.srcSet,src:v||J.src},meta:{unoptimized:i,preload:d||u,placeholder:j,fill:x}}}},18556,(e,t,i)=>{"use strict";e.i(47167),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"ImageConfigContext",{enumerable:!0,get:function(){return r}});let s=e.r(55682)._(e.r(71645)),n=e.r(87690),r=s.default.createContext(n.imageConfigDefault)},65856,(e,t,i)=>{"use strict";e.i(47167),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"RouterContext",{enumerable:!0,get:function(){return s}});let s=e.r(55682)._(e.r(71645)).default.createContext(null)},70965,(e,t,i)=>{"use strict";function s(e,t){let i=e||75;return t?.qualities?.length?t.qualities.reduce((e,t)=>
2Math.abs(t-i)<Math.abs(e-i)?t:e,t.qualities[0]):i}Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"findClosestQuality",{enumerable:!0,get:function(){return s}})},1948,(e,t,i)=>{"use strict";e.i(47167),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return a}});let s=e.r(70965),n=e.r(43369);function r({config:e,src:t,width:i,quality:a}){let o=(0,n.getDeploymentId)();if(t.startsWith("/")&&!t.startsWith("//"))if(t.includes("/_next/static/immutable")&&!(0,n.getAssetToken)())o=void 0;else{let e=t.indexOf("?");if(-1!==e){let i=new URLSearchParams(t.slice(e+1)),s=i.get("dpl");if(s){o=s,i.delete("dpl");let n=i.toString();t=t.slice(0,e)+(n?"?"+n:"")}}}if(t.startsWith("/")&&t.includes("?")&&e.localPatterns?.length===1&&"**"===e.localPatterns[0].pathname&&""===e.localPatterns[0].search)throw Object.defineProperty(Error(`Image with src "${t}" is using a query string which is not configured in images.localPatterns. 3Read more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`),"__NEXT_ERROR_CODE",{value:"E871",enumerable:!1,configurable:!0});let l=(0,s.findClosestQuality)(a,e);return`${e.path}?url=${encodeURIComponent(t)}&w=${i}&q=${l}${t.startsWith("/")&&o?`&dpl=${o}`:""}`}r.__next_img_default=!0;let a=r},98879,(e,t,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(i,"default",{enumerable:!0,get:function(){return o}});let s=e.r(71645),n="u"<typeof window,r=n?()=>{}:s.useLayoutEffect,a=n?()=>{}:s.useEffect;function o(e){let{headManager:t,reduceComponentsToState:i}=e;function o(){if(t&&t.mountedInstances){let e=s.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(i(e))}}return n&&(t?.mountedInstances?.add(e.children),o()),r(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),r(()=>(t&&(t._pendingUpdate=o),()=>{t&&(t._pendingUpdate=o)})),a(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},21488,e=>{"use strict";var t=e.i(43476),i=e.i(71645),s=e.i(64455),n=e.i(78388),r=e.i(2528),a=e.i(6932),o=e.i(23084),l=e.i(26448),c=e.i(33245),u=e.i(75157),d=e.i(94390);let h={plain:void 0,comment:"text-ty-muted",string:"text-ty-mint",keyword:"text-ty-lime"},p=new Set(["and","as","async","await","class","def","elif","else","except","False","finally","for","from","if","import","in","is","lambda","None","not","or","pass","raise","return","True","try","while","with","yield"]),m={cli:/^[A-Za-z_][\w./-]*/,python:/^[A-Za-z_]\w*/,manifest:/^[A-Za-z_][\w-]*/};function f({lines:e}){return(0,t.jsx)("code",{children:e.map((s,n)=>(0,t.jsxs)(i.Fragment,{children:[s.map((e,i)=>(0,t.jsx)("span",{className:h[e.kind],children:e.text},i)),n<e.length-1?"\n":null]},n))})}async function y(e,t){try{return await navigator.clipboard.writeText(e),!0}catch{let i=document.createElement("textarea");i.value=e,i.setAttribute("readonly",""),i.style.cssText="position:fixed;top:0;left:0;opacity:0;pointer-events:none",document.body.append(i),i.select();let s=!1;try{s=document.execCommand("copy")}catch{s=!1}return i.remove(),t.focus({preventScroll:!0}),s}}function x(){return(0,t.jsxs)("span",{className:"flex gap-2",children:[(0,t.jsx)("span",{className:"size-1 bg-ty-ink"}),(0,t.jsx)("span",{className:"size-1 bg-ty-ink"})]})}function g(){return(0,t.jsxs)("div",{"aria-hidden":!0,className:"flex h-1 shrink-0 justify-between",children:[(0,t.jsx)(x,{}),(0,t.jsx)(x,{})]})}function v({className:e,children:i}){return(0,t.jsxs)("div",{className:(0,u.cn)("flex flex-col gap-2 px-3 py-2 outline-1 -outline-offset-1 outline-ty-line outline-solid",e),children:[(0,t.jsx)(g,{}),i,(0,t.jsx)(g,{})]})}let b=(0,i.memo)(function({title:e,snippets:s,active:n=0,copyLabel:r,copiedLabel:a,fill:o=!1,wrap:l=!1,panelId:c,labelledBy:h,className:x}){let[g,v]=(0,i.useState)(0),b=(0,i.useMemo)(()=>s.map(e=>{var t,i;return t=e.code,i=e.id,t.split("\n").map(e=>(function(e,t){let i=[],s=(e,t)=>{let s=i[i.length-1];s&&s.kind===t?s.text+=e:i.push({text:e,kind:t})},n=e.trimStart();if(n.startsWith("#")||n.startsWith("//"))return s(e,"comment"),i;let r=0;for(;r<e.length;){let i=e[r],n=r>0?e[r-1]:" ";if('"'===i||"'"===i){let t=r+1;for(;t<e.length&&e[t]!==i;)t+="\\"===e[t]?2:1;t=Math.min(t+1,e.length),s(e.slice(r,t),"string"),r=t;continue}if("#"===i&&/\s/.test(n)){s(e.slice(r),"comment");break}if("python"===t&&"@"===i&&/\s/.test(n)){let t=/^@[\w.]+/.exec(e.slice(r));if(t){s(t[0],"keyword"),r+=t[0].length;continue}}if(/[A-Za-z_]/.test(i)&&!/\w/.test(n)){let i=m[t].exec(e.slice(r));if(i){var a;let n=i[0];
3s(n,(a=e.slice(r+n.length),"cli"===t?"teriyaki"===n:"python"===t?p.has(n):a.startsWith(":")&&(1===a.length||" "===a[1]))?"keyword":"plain"),r+=n.length;continue}}s(i,"plain"),r+=1}return i})(e,i))}),[s]);(0,i.useEffect)(()=>{if(!g)return;let e=setTimeout(()=>v(0),1500);return()=>clearTimeout(e)},[g]);let w=async e=>{let t=s[n];t&&await y(t.code,e.currentTarget)&&v(e=>e+1)},j=s[n];return(0,t.jsxs)("div",{className:(0,u.cn)("relative flex flex-col overflow-hidden bg-ty-ink text-ty-paper",o&&"min-h-0 flex-1",x),children:[(0,t.jsxs)("div",{className:"flex h-11 shrink-0 items-center justify-between gap-3 border-b border-ty-ink bg-[rgb(var(--ty-paper-rgb)/0.05)] pr-3 pl-3.5",children:[(0,t.jsx)("span",{className:"min-w-0 truncate font-mono text-[14px] leading-[18px] font-medium tracking-[-0.56px]",children:e}),(0,t.jsxs)("button",{type:"button",onClick:w,className:(0,u.cn)("flex h-8 shrink-0 items-center gap-2 px-2.5 py-2 font-mono text-[14px] leading-[14px] font-medium tracking-[-0.56px] transition-colors duration-300 hover:text-ty-lime",g?"text-ty-lime":"text-ty-paper"),children:[(0,t.jsx)("span",{"aria-live":"polite",children:g?a:r}),g?(0,t.jsx)(d.CheckIcon,{className:"size-4 shrink-0"}):(0,t.jsx)(d.CopyIcon,{className:"size-4 shrink-0"})]})]}),(0,t.jsxs)("div",{className:(0,u.cn)("relative",o&&"min-h-0 flex-1"),children:[(0,t.jsx)("div",{id:c,role:c?"tabpanel":"group","aria-labelledby":c?h:void 0,"aria-label":c?void 0:j?.label,tabIndex:0,className:(0,u.cn)("p-4 [scrollbar-color:var(--ty-ink-line)_transparent] [scrollbar-width:thin]",o?"h-full overflow-x-hidden overflow-y-auto":"max-h-[420px] overflow-x-auto overflow-y-auto"),children:(0,t.jsx)("div",{className:(0,u.cn)("grid",!l&&"w-max min-w-full"),children:s.map((e,i)=>(0,t.jsx)("pre",{"aria-hidden":i!==n||void 0,className:(0,u.cn)("col-start-1 row-start-1 pb-[30px] font-code text-[13px] leading-[20.15px] tracking-[-0.13px] transition-[opacity,visibility] duration-300",l?"break-words whitespace-pre-wrap":"whitespace-pre",i===n?"visible opacity-100":"invisible opacity-0"),children:(0,t.jsx)(f,{lines:b[i]})},e.id))})}),(0,t.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-x-0 bottom-0 h-[50px] bg-linear-to-b from-transparent to-ty-ink"})]})]})}),w=(e,t)=>`${e}-tab-${t}`,j=e=>`${e}-panel`;function k({progress:e}){return(0,t.jsxs)("div",{"aria-hidden":!0,className:"relative w-2 shrink-0 self-stretch",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-1 w-px bg-[image:repeating-linear-gradient(to_bottom,var(--ty-faint)_0_3px,transparent_3px_5px)]"}),(0,t.jsx)("span",{className:"absolute top-0 left-[3px] w-0.5 bg-ty-ink",style:{height:`calc(14px + (100% - 14px) * ${e})`}}),(0,t.jsx)("span",{className:"absolute top-0 left-0 size-2 bg-ty-ink"}),(0,t.jsx)("span",{className:"absolute bottom-0 left-0 size-2 bg-ty-ink"})]})}let S={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1},P=(0,i.memo)(function({tabs:e,active:i,label:s,idBase:n,onSelect:r}){return(0,t.jsx)("div",{role:"tablist","aria-label":s,"aria-orientation":"vertical",onKeyDown:t=>{let s=Number(t.target.dataset.tab??i),a=S[t.key],o=-1;a?o=(s+a+e.length)%e.length:"Home"===t.key?o=0:"End"===t.key&&(o=e.length-1),o<0||(t.preventDefault(),document.getElementById(w(n,o))?.focus({preventScroll:!0}),r(o))},className:"flex max-w-[520px] min-w-0 flex-1 flex-col gap-6",children:e.map((e,s)=>{let a=s===i;return(0,t.jsxs)("button",{id:w(n,s),"data-tab":s,type:"button",role:"tab","aria-selected":a,"aria-controls":j(n),"aria-labelledby":`${w(n,s)}-label`,"aria-describedby":a?`${w(n,s)}-body`:void 0,tabIndex:a?0:-1,onClick:()=>r(s),className:"group/tab flex flex-col items-start text-left",children:[(0,t.jsx)("span",{id:`${w(n,s)}-label`,className:(0,u.cn)("text-[24px] leading-[31.2px] font-normal tracking-[-1.2px] transition-colors duration-300",a?"text-ty-ink":"text-ty-ink/50 group-hover/tab:text-ty-ink"),children:e.label}),(0,t.jsx)("span",{className:(0,u.cn)("grid transition-[grid-template-rows,opacity] duration-500 ease-ty",a?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:(0,t.jsx)("span",{className:"min-h-0 overflow-hidden",children:(0,t.jsx)("span",{id:`${w(n,s)}-body`,className:"block max-w-[420px] pt-1 text-[16px] leading-[20.8px] tracking-[-0.8px] text-ty-ink-soft",children:e.body})})})]},e.id)})})}),T=(0,i.memo)(function({tabs:e,title:s,copyLabel:n,copiedLabel:r,idBase:a}){let[o,l]=(0,i.useState)(0),c=(0,i.useMemo)(()=>e.map(e=>[e]),[e]);return(0,t.jsx)("div",{className:"flex flex-col desktop:hidden",children:e.map((e,i)=>{let h=o===i,p=`${a}-row-${i}`,m=`${a}-row-${i}-panel`;return(0,t.jsxs)("div",{className:"border-b border-ty-line py-4",children:[(0,t.jsx)("h3",{children:(0,t.jsxs)("button",{id:p,type:"button","aria-expanded":h,"aria-controls":m,onClick:()=>l(h?null:i),className:"group/row flex w-full items-start justify-between gap-4 text-left",children:[(0,t.jsx)("span",{className:(0,u.cn)("text-[24px] leading-[31.2px] font-normal tracking-[-1.2px] transition-colors duration-300","text-ty-ink"),children:e.label}
3),(0,t.jsx)("span",{"aria-hidden":!0,className:(0,u.cn)("flex size-8 shrink-0 items-center justify-center bg-ty-ink transition-colors duration-300",h?"text-ty-lime":"text-ty-paper group-hover/row:bg-ty-ink-soft"),children:(0,t.jsx)(d.PlusIcon,{className:(0,u.cn)("size-4 transition-transform duration-300 ease-ty",h&&"rotate-45")})})]})}),(0,t.jsx)("div",{id:m,role:"region","aria-labelledby":p,className:(0,u.cn)("grid pt-1 transition-[grid-template-rows,visibility] duration-500 ease-ty",h?"visible grid-rows-[1fr]":"invisible grid-rows-[0fr]"),children:(0,t.jsxs)("div",{className:"min-h-0 overflow-hidden",children:[(0,t.jsx)("p",{className:"max-w-[420px] text-[16px] leading-[20.8px] tracking-[-0.8px] text-ty-ink-soft",children:e.body}),(0,t.jsx)(v,{className:"mt-6",children:(0,t.jsx)(b,{title:s,snippets:c[i],copyLabel:n,copiedLabel:r})})]})})]},e.id)})})}),N=(0,i.memo)(function({title:e,cta:i}){return(0,t.jsxs)("div",{className:"flex flex-col items-start gap-10",children:[(0,t.jsx)(a.SectionHeading,{lines:e,className:"w-full"}),(0,t.jsx)(o.PrimaryButton,{label:i.label,href:i.href})]})});e.s(["CodeSection",0,function({locale:e}){let{code:a,ui:o}=(0,s.getContent)(e),u=a.tabs,d=(0,i.useRef)(null),h=(0,l.useStickyProgress)(d),p=Math.min(u.length-1,Math.floor(h*u.length)),m=(0,l.usePrefersReducedMotion)(),f=(0,i.useId)(),y=(0,i.useCallback)(e=>{let t=d.current;if(!t)return;let i=t.getBoundingClientRect(),s=i.height-window.innerHeight;if(s<=0)return;let n=window.scrollY+i.top+(e+.5)/u.length*s;window.scrollTo({top:n,behavior:m?"auto":"smooth"})},[m,u.length]);return(0,t.jsx)(n.Section,{id:"code",flush:!0,className:"py-10 tablet:py-16 desktop:pt-0 desktop:pb-20",children:(0,t.jsx)("div",{ref:d,className:"relative desktop:h-(--code-track)",style:{"--code-track":`${900*u.length}px`},children:(0,t.jsxs)("div",{className:"flex flex-col gap-6 desktop:sticky desktop:h-[922px] desktop:py-20",style:{top:"calc(min(0px, 100vh - 842px) + max(0px, (100vh - 922px) / 2))"},children:[(0,t.jsx)(r.SectionLabel,{index:(0,c.sectionNumber)("code"),total:c.SECTION_TOTAL,label:a.label,prefix:o.section.counterPrefix,tone:"light"}),(0,t.jsxs)("div",{className:"desktop:grid desktop:h-[720px] desktop:grid-cols-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-10 tablet:gap-16 desktop:col-start-2 desktop:row-start-1 desktop:justify-between desktop:gap-0 desktop:pl-12",children:[(0,t.jsx)(N,{title:a.title,cta:a.cta}),(0,t.jsxs)("div",{className:"hidden gap-6 desktop:flex",children:[(0,t.jsx)(k,{progress:h}),(0,t.jsx)(P,{tabs:u,active:p,label:o.code.tabs,idBase:f,onSelect:y})]}),(0,t.jsx)(T,{tabs:u,title:a.panelTitle,copyLabel:o.code.copy,copiedLabel:o.code.copied,idBase:f})]}),(0,t.jsx)("div",{className:"ty-dots relative hidden min-w-0 items-center justify-center overflow-hidden p-10 desktop:col-start-1 desktop:row-start-1 desktop:flex",children:(0,t.jsx)(v,{className:"h-[560px] w-full max-w-[520px]",children:(0,t.jsx)(b,{title:a.panelTitle,snippets:u,active:p,copyLabel:o.code.copy,copiedLabel:o.code.copied,fill:!0,wrap:!0,panelId:j(f),labelledBy:w(f,p)})})})]})]})})})}],21488)},39527,e=>{e.v({board:"FactoryVisuals-module__vXOAra__board","ctx-core":"FactoryVisuals-module__vXOAra__ctx-core","ctx-dot-in":"FactoryVisuals-module__vXOAra__ctx-dot-in","ctx-dot-out":"FactoryVisuals-module__vXOAra__ctx-dot-out","ctx-drop":"FactoryVisuals-module__vXOAra__ctx-drop","ctx-frame":"FactoryVisuals-module__vXOAra__ctx-frame","ctx-in":"FactoryVisuals-module__vXOAra__ctx-in","ctx-in-bar":"FactoryVisuals-module__vXOAra__ctx-in-bar","ctx-link":"FactoryVisuals-module__vXOAra__ctx-link","ctx-out":"FactoryVisuals-module__vXOAra__ctx-out","ctx-out-bar":"FactoryVisuals-module__vXOAra__ctx-out-bar","ctx-ping":"FactoryVisuals-module__vXOAra__ctx-ping","ctx-signal":"FactoryVisuals-module__vXOAra__ctx-signal",ctxCore:"FactoryVisuals-module__vXOAra__ctxCore",ctxDotIn:"FactoryVisuals-module__vXOAra__ctxDotIn",ctxDotOut:"FactoryVisuals-module__vXOAra__ctxDotOut",ctxDrop:"FactoryVisuals-module__vXOAra__ctxDrop",ctxFrame:"FactoryVisuals-module__vXOAra__ctxFrame",ctxIn:"FactoryVisuals-module__vXOAra__ctxIn",ctxInBar:"FactoryVisuals-module__vXOAra__ctxInBar",ctxLink:"FactoryVisuals-module__vXOAra__ctxLink",ctxOut:"FactoryVisuals-module__vXOAra__ctxOut",ctxOutBar:"FactoryVisuals-module__vXOAra__ctxOutBar",ctxPing:"FactoryVisuals-module__vXOAra__ctxPing",ctxSignal:"FactoryVisuals-module__vXOAra__ctxSignal","fac-approve":"FactoryVisuals-module__vXOAra__fac-approve","fac-cases":"FactoryVisuals-module__vXOAra__fac-cases","fac-cursor":"FactoryVisuals-module__vXOAra__fac-cursor","fac-drop":"FactoryVisuals-module__vXOAra__fac-drop","fac-fill":"FactoryVisuals-module__vXOAra__fac-fill","fac-tick":"FactoryVisuals-module__vXOAra__fac-tick","fac-type":"FactoryVisuals-module__vXOAra__fac-type","fac-verdict":"FactoryVisuals-module__vXOAra__fac-verdict",facApprove:"FactoryVisuals-module__vXOAra__facApprove",facCases:"FactoryVisuals-module__vXOAra__facCases",facCursor:"FactoryVisuals-module__vXOAra__facCursor",facDrop:"FactoryVisuals-module__vXOAra__facDrop",facFill:"FactoryVisuals-module__vXOAra__facFill",facTick:"FactoryVisuals-module__vXOAra__facTick",facType:"FactoryVisuals-module__vXOAra__facType",facVerdict:"FactoryVisuals-module__vXOAra__facVerdict",off:"FactoryVisuals-module__vXOAra__off",paused:"FactoryVisuals-module__vXOAra__paused","rt-done":"FactoryVisuals-module__vXOAra__rt-done","rt-dot":"FactoryVisuals-module__vXOAra__rt-dot","rt-drop":"FactoryVisuals-module__vXOAra__rt-drop","rt-enter"
3:"FactoryVisuals-module__vXOAra__rt-enter","rt-seg-0":"FactoryVisuals-module__vXOAra__rt-seg-0","rt-seg-1":"FactoryVisuals-module__vXOAra__rt-seg-1","rt-seg-2":"FactoryVisuals-module__vXOAra__rt-seg-2",rtDone:"FactoryVisuals-module__vXOAra__rtDone",rtDot:"FactoryVisuals-module__vXOAra__rtDot",rtDrop:"FactoryVisuals-module__vXOAra__rtDrop",rtEnter:"FactoryVisuals-module__vXOAra__rtEnter",rtSeg0:"FactoryVisuals-module__vXOAra__rtSeg0",rtSeg1:"FactoryVisuals-module__vXOAra__rtSeg1",rtSeg2:"FactoryVisuals-module__vXOAra__rtSeg2"})},51831,e=>{"use strict";var t=e.i(43476),i=e.i(71645),s=e.i(75157),n=e.i(77856),r=e.i(26448),a=e.i(94390),o=e.i(41632),l=e.i(39527);let c=["context","factory","runtime"],u="font-mono text-[12px] leading-[15.6px] font-medium tracking-[-0.48px] uppercase",d="text-[14px] leading-[18.2px] tracking-[-0.7px]",h=e=>({"--i":e});function p({active:e,labels:n}){let{ref:a,inView:o}=(0,r.useInView)({once:!1,rootMargin:"0px"}),u=(0,r.usePrefersReducedMotion)(),d=function(e){let[t,s]=(0,i.useState)(null);return(0,i.useEffect)(()=>{let t=e.current;if(!t)return;let i=new ResizeObserver(([e])=>{let{width:t,height:i}=e.contentRect;t>0&&i>0&&s(Math.min(t/600,i/692))});return i.observe(t),()=>i.disconnect()},[e]),t}(a);return(0,t.jsx)("div",{ref:a,className:"absolute inset-0",children:(0,t.jsx)("div",{className:(0,s.cn)("absolute top-1/2 left-1/2 h-[692px] w-[600px] [--fit:0.57] [transform:translate(-50%,-50%)_scale(var(--fit))] tablet:[--fit:0.809] desktop:[--fit:1]",l.default.board),style:d?{"--fit":d}:void 0,children:c.map(i=>{let r=i===e;return(0,t.jsxs)("div",{"aria-hidden":!r||void 0,inert:!r,className:(0,s.cn)("absolute inset-0 transition-opacity duration-300 ease-ty-io",r?"opacity-100":"opacity-0",r?!o&&l.default.paused:l.default.off),children:["context"===i&&(0,t.jsx)(w,{labels:n.context}),"factory"===i&&(0,t.jsx)(k,{labels:n.factory}),"runtime"===i&&(0,t.jsx)(P,{labels:n.runtime,running:r&&o&&!u})]},i)})})})}function m({title:e,aside:i,className:n,style:r,children:a}){return(0,t.jsxs)("div",{className:(0,s.cn)("absolute border bg-ty-ink",n),style:r,children:[(0,t.jsxs)("div",{className:(0,s.cn)("flex h-10 items-center justify-between gap-3 border-b px-4 text-ty-muted",u),children:[(0,t.jsx)("span",{className:"truncate",children:e}),i]}),a]})}function f({left:e,top:i,height:n,pulseClassName:r,pulseKey:a}){return(0,t.jsxs)("span",{"aria-hidden":!0,className:"absolute w-[3px] overflow-hidden",style:{left:e-1,top:i,height:n},children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-px w-px bg-ty-ink-line"}),r&&(0,t.jsx)("span",{className:(0,s.cn)("absolute -top-8 left-0 h-8 w-[3px] bg-ty-lime",r)},a)]})}function y({left:e,top:i,dotClassName:n}){return(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute h-px w-12 bg-ty-ink-line",style:{left:e,top:i},children:(0,t.jsx)("span",{className:(0,s.cn)("absolute -top-[3px] left-0 size-[7px] bg-ty-lime opacity-0",n)})})}let x=[a.MicIcon,a.FileTextIcon,a.TableIcon,a.BookIcon],g=[a.FlowIcon,a.HandoffIcon,a.AlertIcon,a.ClockIcon],v=[a.ChartIcon,a.TargetIcon,a.BoltIcon];function b({title:e,items:i,icons:n,side:r,left:a,top:o}){let c="in"===r;return(0,t.jsx)(m,{title:e,aside:(0,t.jsx)("span",{className:"shrink-0 text-ty-subtle",children:String(i.length).padStart(2,"0")}),style:{left:a,top:o,width:180},children:(0,t.jsx)("ul",{className:"divide-y",children:i.map((e,i)=>{let r=n[i%n.length];return(0,t.jsxs)("li",{className:(0,s.cn)("relative flex h-10 items-center gap-2 px-4 text-ty-subtle",d,c?l.default.ctxIn:l.default.ctxOut),style:h(i),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.cn)("absolute top-2 bottom-2 w-0.5 opacity-0",c?(0,s.cn)("right-0 bg-ty-lime",l.default.ctxInBar):(0,s.cn)("left-0 bg-ty-mint",l.default.ctxOutBar))}),(0,t.jsx)(r,{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 truncate",children:e})]},e)})})})}function w({labels:e}){return(0,t.jsxs)("div",{className:"absolute inset-0",children:[(0,t.jsx)(b,{title:e.inputsTitle,items:e.inputs,icons:x,side:"in",left:24,top:140}),(0,t.jsx)(b,{title:e.outputsTitle,items:e.outputs,icons:g,side:"out",left:396,top:140}),(0,t.jsx)(y,{left:204,top:241,dotClassName:l.default.ctxDotIn}),(0,t.jsx)(y,{left:348,top:241,dotClassName:l.default.ctxDotOut}),(0,t.jsx)("div",{className:(0,s.cn)("absolute flex size-24 items-center justify-center border bg-ty-ink",l.default.ctxCore),style:{left:252,top:193},children:(0,t.jsx)(o.TeriyakiMark,{className:"w-10"})}
3),(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.cn)("absolute size-24 border border-ty-lime! opacity-0",l.default.ctxPing),style:{left:252,top:193}}),(0,t.jsx)(f,{left:300,top:289,height:151,pulseClassName:l.default.ctxDrop}),(0,t.jsxs)("div",{className:(0,s.cn)("absolute border bg-ty-ink",l.default.ctxFrame),style:{left:168,top:440,width:264},children:[(0,t.jsx)("div",{className:(0,s.cn)("flex h-9 items-center justify-center text-ty-muted",u),children:e.signalsTitle}),(0,t.jsx)("div",{"aria-hidden":!0,className:"flex items-center justify-center gap-2.5 pb-5",children:v.map((e,n)=>(0,t.jsxs)(i.Fragment,{children:[n>0&&(0,t.jsx)("span",{className:(0,s.cn)("size-1 bg-ty-ink-line",l.default.ctxLink),style:h(n)}),(0,t.jsx)("span",{className:"flex size-12 items-center justify-center border bg-ty-ink",children:(0,t.jsx)(e,{className:(0,s.cn)("size-5 text-ty-subtle",l.default.ctxSignal),style:h(n)})})]},n))})]})]})}let j=[{indent:0,width:132},{indent:16,width:196},{indent:16,width:148},{indent:32,width:168,typed:!0},{indent:32,width:104},{indent:0,width:176}];function k({labels:e}){return(0,t.jsxs)("div",{className:"absolute inset-0",children:[(0,t.jsx)(m,{title:(0,t.jsx)("span",{className:"normal-case",children:e.specTitle}),aside:(0,t.jsxs)("span",{"aria-hidden":!0,className:"flex shrink-0 gap-1",children:[(0,t.jsx)("span",{className:"size-1.5 bg-ty-ink-line"}),(0,t.jsx)("span",{className:"size-1.5 bg-ty-ink-line"}),(0,t.jsx)("span",{className:"size-1.5 bg-ty-ink-line"})]}),style:{left:48,top:112,width:336},children:(0,t.jsx)("div",{"aria-hidden":!0,className:"flex flex-col gap-3.5 px-4 py-5",children:j.map((e,i)=>(0,t.jsxs)("span",{className:"relative block h-2",style:{marginLeft:e.indent,width:e.width},children:[(0,t.jsx)("span",{className:"absolute inset-0 bg-ty-ink-line"}),e.typed&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:(0,s.cn)("absolute inset-0 bg-ty-lime",l.default.facType)}),(0,t.jsx)("span",{className:(0,s.cn)("absolute -top-1 left-0 h-4 w-0.5 bg-ty-paper",l.default.facCursor)})]})]},i))})}),(0,t.jsx)(m,{title:e.casesTitle,aside:(0,t.jsx)(a.CheckDoubleIcon,{className:"size-4 shrink-0 text-ty-subtle"}),className:l.default.facCases,style:{left:320,top:256,width:232},children:(0,t.jsxs)("dl",{className:(0,s.cn)("divide-y",d),children:[(0,t.jsxs)("div",{className:"flex h-11 items-center justify-between gap-3 px-4",children:[(0,t.jsx)("dt",{className:"truncate text-ty-subtle",children:e.visible}),(0,t.jsx)("dd",{className:"font-mono text-ty-paper",children:"8"})]}),(0,t.jsxs)("div",{className:"flex h-11 items-center justify-between gap-3 px-4",children:[(0,t.jsx)("dt",{className:"truncate text-ty-subtle",children:e.hidden}),(0,t.jsx)("dd",{children:(0,t.jsx)(n.Chip,{tone:"lime",size:"sm",className:"px-1.5",children:"4"})})]})]})}),(0,t.jsx)(f,{left:96,top:312,height:128,pulseClassName:l.default.facDrop}),(0,t.jsx)(f,{left:436,top:386,height:54,pulseClassName:l.default.facDrop}),(0,t.jsxs)("div",{className:"absolute flex h-14 items-center gap-3 border bg-ty-ink px-4",style:{left:48,top:440,width:504},children:[(0,t.jsx)(a.ShieldIcon,{className:"size-4 shrink-0 text-ty-subtle"}),(0,t.jsx)("span",{className:(0,s.cn)("shrink-0 text-ty-muted",u),children:e.validator}),(0,t.jsx)("span",{"aria-hidden":!0,className:"relative h-2 min-w-0 flex-1 overflow-hidden border",children:(0,t.jsx)("span",{className:(0,s.cn)("absolute inset-0 origin-left bg-ty-lime",l.default.facFill)})}),(0,t.jsxs)(n.Chip,{tone:"mint",size:"sm",className:(0,s.cn)("shrink-0 gap-1 px-1.5",l.default.facVerdict),children:[(0,t.jsx)(a.CheckIcon,{className:"size-3"}),e.verdict]})]}),(0,t.jsx)(f,{left:96,top:496,height:24}),(0,t.jsxs)("div",{className:"absolute flex h-14 items-center justify-between gap-3 border bg-ty-ink px-4",style:{left:48,top:520,width:504},children:[(0,t.jsxs)("span",{className:(0,s.cn)("flex min-w-0 items-center gap-2 text-ty-subtle",d),children:[(0,t.jsx)(a.HandoffIcon,{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"truncate",children:e.approval})]}),(0,t.jsxs)("span",{className:(0,s.cn)("flex h-7 shrink-0 items-center gap-2 border px-2 text-ty-muted",u,l.default.facApprove),children:[(0,t.jsx)("span",{"aria-hidden":!0,
3className:"flex size-3.5 items-center justify-center border border-current!",children:(0,t.jsx)(a.CheckIcon,{className:(0,s.cn)("size-3",l.default.facTick)})}),e.approver]})]})]})}let S=[a.FormIcon,a.ApiIcon,a.ChatIcon,a.PlugIcon];function P({labels:e,running:n}){let r=function(e){let[t,s]=(0,i.useState)(1044);return(0,i.useEffect)(()=>{if(!e)return;let t=window.setInterval(()=>s(e=>e+1),1400);return()=>window.clearInterval(t)},[e]),t}(n),o=Array.from({length:5},(e,t)=>r-t);return(0,t.jsxs)("div",{className:"absolute inset-0",children:[(0,t.jsx)(m,{title:e.title,aside:(0,t.jsx)("span",{"aria-hidden":!0,className:"size-1.5 shrink-0 bg-ty-lime"}),style:{left:48,top:124,width:504},children:(0,t.jsx)("ul",{className:"grid grid-cols-2",children:e.endpoints.map((e,i)=>{let n=S[i%S.length];return(0,t.jsxs)("li",{className:(0,s.cn)("flex h-12 items-center gap-2 px-4 text-ty-subtle",d,i%2==0&&"border-r",i<2&&"border-b"),children:[(0,t.jsx)(n,{className:"size-4 shrink-0"}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e}),(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.cn)("size-1.5 shrink-0 bg-ty-lime",l.default.rtDot),style:h(i)})]},e)})})}),(0,t.jsx)(f,{left:300,top:262,height:40,pulseClassName:l.default.rtDrop,pulseKey:r}),(0,t.jsx)(m,{title:e.ledgerTitle,style:{left:48,top:302,width:504},children:(0,t.jsx)("ol",{className:"relative overflow-hidden",style:{height:144},children:o.map((i,n)=>{let r=0===n,a=4===n;return(0,t.jsx)("li",{"aria-hidden":a||void 0,className:"absolute inset-x-0 transition-[transform,opacity] duration-500 ease-ty",style:{top:-1,height:37,transform:`translateY(${36*n}px)`,opacity:+!a},children:(0,t.jsxs)("div",{className:(0,s.cn)("relative flex h-full items-center gap-3 border-t px-4 transition-colors duration-300",u,r?(0,s.cn)("text-ty-paper",l.default.rtEnter):"text-ty-subtle"),children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.cn)("absolute top-2 bottom-2 left-0 w-0.5 bg-ty-lime transition-opacity duration-300",r?"opacity-100":"opacity-0")}),(0,t.jsxs)("span",{className:"shrink-0",children:["#",i]}),(0,t.jsx)("span",{"aria-hidden":!0,className:"min-w-0 flex-1 border-t border-dotted"}),(0,t.jsx)("span",{className:"shrink-0",children:e.ledgerRow}),(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.cn)("size-1.5 shrink-0 transition-colors duration-300",r?"bg-ty-mint":"bg-ty-ink-line")})]})},i)})})}),(0,t.jsxs)("div",{className:"absolute flex h-14 items-center gap-3 border bg-ty-ink px-4",style:{left:48,top:512,width:504},children:[(0,t.jsx)("span",{className:(0,s.cn)("shrink-0 text-ty-muted",u),children:e.traceTitle}),(0,t.jsx)("span",{"aria-hidden":!0,className:"flex min-w-0 flex-1 gap-1",children:[l.default.rtSeg0,l.default.rtSeg1,l.default.rtSeg2].map((e,i)=>(0,t.jsx)("span",{className:"relative h-2 flex-1 overflow-hidden border",children:(0,t.jsx)("span",{className:(0,s.cn)("absolute inset-0 origin-left bg-ty-lime",e)})},i))}),(0,t.jsx)(a.CheckIcon,{className:(0,s.cn)("size-4 shrink-0 text-ty-lime",l.default.rtDone)})]})]})}let T=(0,i.createContext)(null);function N(){let e=(0,i.useContext)(T);if(!e)throw Error("Factory tabs must be rendered inside FactoryTabsProvider");return e}let A=(e,t)=>`${e}-tab-${t}`,C=e=>`${e}-panel`;e.s(["FactoryPanel",0,function({tabs:e,visuals:i,className:n}){let{active:r,baseId:a}=N();return(0,t.jsx)("div",{role:"tabpanel",id:C(a),"aria-labelledby":A(a,r),tabIndex:0,className:(0,s.cn)("ty-dots-dark relative overflow-hidden bg-ty-ink-raised",n),children:(0,t.jsx)(p,{active:e[r].visual,labels:i})})},"FactoryTabList",0,function({tabs:e,label:r,className:a}){let{active:o,select:l,baseId:c}=N(),u=(0,i.useRef)([]);return(0,t.jsx)("div",{role:"tablist","aria-orientation":"vertical","aria-label":r,onKeyDown:t=>{let i={ArrowDown:o+1,ArrowRight:o+1,ArrowUp:o-1,ArrowLeft:o-1,Home:0,End:e.length-1};if(t.key in i){let s;t.preventDefault(),l(s=(i[t.key]+e.length)%e.length),u.current[s]?.focus()}},className:(0,s.cn)("flex min-h-[320px] w-full flex-col",a),children:e.map((e,i)=>{let r=i===o,a=`${A(c,i)}-title`,d=`${A(c,i)}-body`;return(0,t.jsxs)("button",{ref:e=>{u.current[i]=e},id:A(c,i),type:"button",role:"tab","aria-selected":r,"aria-controls":C(c),"aria-labelledby":a,"aria-describedby":r?d:void 0,tabIndex:r?0:-1,onClick:()=>l(i),className:(0,s.cn)("flex w-full flex-col py-4 text-left transition-opacity duration-300 ease-ty",r?"cursor-default opacity-100":"cursor-pointer opacity-30 hover:opacity-60"),children:[(0,t.jsx)("span",{"aria-hidden":!0,
3className:(0,s.cn)("grid w-full transition-[grid-template-rows] duration-400 ease-ty",r?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,t.jsx)("span",{className:"min-h-0 overflow-hidden",children:(0,t.jsx)("span",{className:"flex flex-wrap gap-2 pb-2",children:e.chips.map(e=>(0,t.jsx)(n.Chip,{tone:"lime",className:"px-0 py-0.5",children:e},e))})})}),(0,t.jsxs)("span",{className:"flex w-full items-center gap-2",children:[(0,t.jsxs)("span",{className:"flex min-w-0 items-center",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.cn)("flex shrink-0 overflow-hidden transition-[width] duration-400 ease-ty",r?"w-4":"w-0"),children:(0,t.jsx)("span",{className:"size-2 shrink-0 bg-ty-lime"})}),(0,t.jsx)("span",{id:a,className:"text-[24px] leading-[31.2px] font-normal tracking-[-1.2px] text-ty-paper",children:e.title})]}),(0,t.jsx)("span",{"aria-hidden":!0,className:"min-w-4 flex-1 border-t border-dotted border-ty-ink-line!"}),(0,t.jsxs)("span",{className:"shrink-0 text-right text-[16px] leading-[20.8px] tracking-[-0.8px] text-ty-paper",children:["// ",e.n]})]}),(0,t.jsx)("span",{"aria-hidden":!r||void 0,className:(0,s.cn)("grid w-full transition-[grid-template-rows] duration-400 ease-ty",r?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,t.jsx)("span",{className:"min-h-0 overflow-hidden",children:(0,t.jsx)("span",{id:d,className:"block max-w-[424px] pt-3 text-[16px] leading-[20.8px] tracking-[-0.8px] text-ty-subtle",children:e.body})})})]},e.n)})})},"FactoryTabsProvider",0,function({children:e}){let[s,n]=(0,i.useState)(0),r=(0,i.useId)();return(0,t.jsx)(T,{value:{active:s,select:n,baseId:r},children:e})}],51831)},35906,e=>{"use strict";var t=e.i(43476),i=e.i(71645),s=e.i(75157),n=e.i(77856),r=e.i(94390);let a="duration-[350ms] ease-ty";e.s(["FaqAccordion",0,function({items:e,labels:o}){let[l,c]=(0,i.useState)(null),u=(0,i.useId)();return(0,t.jsx)("div",{className:"w-full",children:e.map((e,i)=>{let d=l===i,h=`${u}-q${i}`,p=`${u}-a${i}`;return(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.cn)("ty-dots pointer-events-none absolute inset-0 transition-opacity duration-300",d?"opacity-100":"opacity-0")}),(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.cn)("pointer-events-none absolute inset-x-0 top-0 h-px transition-colors duration-300",d?"bg-ty-ink":"bg-ty-line")}),(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.cn)("pointer-events-none absolute inset-x-0 bottom-0 h-px bg-ty-ink transition-opacity duration-300",d?"opacity-100":"opacity-0")}),(0,t.jsx)("h3",{children:(0,t.jsxs)("button",{id:h,type:"button","aria-expanded":d,"aria-controls":p,onClick:()=>c(d?null:i),className:(0,s.cn)("group/faq relative flex w-full items-start px-4 text-left transition-[padding] focus-visible:-outline-offset-2! tablet:px-8",a,d?"pt-6 pb-0":"py-4"),children:[(0,t.jsxs)("span",{"aria-hidden":!0,className:(0,s.cn)("hidden h-8 w-32 shrink-0 items-center gap-2 pr-4 tablet:flex [&_span]:transition-colors [&_span]:duration-300",d&&"[&_span]:text-ty-ink"),children:[(0,t.jsx)(n.NumberTag,{n:String(i+1).padStart(3,"0")}),(0,t.jsx)("span",{className:"h-px min-w-0 flex-1 bg-[repeating-linear-gradient(to_right,var(--ty-line)_0_3px,transparent_3px_5px)]"})]}),(0,t.jsx)("span",{className:(0,s.cn)("min-w-0 flex-1 pr-4 text-[24px] leading-[31.2px] font-normal tracking-[-1.2px] transition-colors duration-300","text-ty-ink"),children:e.q}),(0,t.jsx)("span",{className:"sr-only",children:d?o.close:o.open}),(0,t.jsxs)("span",{"aria-hidden":!0,className:(0,s.cn)("relative grid size-8 shrink-0 place-items-center transition-colors duration-300",d?"bg-ty-lime text-ty-ink":"bg-ty-ink text-ty-paper group-hover/faq:bg-ty-ink-soft"),children:[(0,t.jsx)(r.PlusIcon,{className:(0,s.cn)("absolute size-4 transition-[rotate,opacity] duration-300",d?"rotate-90 opacity-0":"rotate-0 opacity-100")}),(0,t.jsx)(r.CloseIcon,{className:(0,s.cn)("absolute size-4 transition-[rotate,opacity] duration-300",d?"rotate-0 opacity-100":"-rotate-90 opacity-0")})]})]})}),(0,t.jsx)("div",{id:p,role:"region","aria-labelledby":h,inert:!d,className:(0,s.cn)("relative grid transition-[grid-template-rows]",a,d?"grid-rows-[1fr]":"grid-rows-[0fr]"),children:(0,t.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,t.jsx)("div",{className:"px-4 pt-3 pb-6 tablet:pr-8 tablet:pl-40",children:(0,t.jsx)("p",{className:"max-w-[480px] pr-12 text-[16px] leading-[20.8px] tracking-[-0.8px] text-ty-ink-soft tablet:pr-0",children:e.a})})})})]},h)})})}])},64626,e=>{"use strict";var t=e.i(43476),i=e.i(71645),s=e.i(75157),n=e.i(64455),r=e.i(23084),a=e.i(77856),o=e.i(26448),l=e.i(94390),c=e.i(41632),u=e.i(33245);let d="font-mono text-[14px] leading-[18.2px] font-medium tracking-[-0.56px] uppercase",h="ty-mobile-menu";function p({label:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,
3children:"<"}),e,(0,t.jsx)("span",{"aria-hidden":!0,children:">"})]})}function m({content:e}){let{nav:i,ui:n}=e,a=i.links.filter(e=>(0,u.isLinkVisible)(e.href));return(0,t.jsx)("div",{className:"hidden px-[120px] desktop:block",children:(0,t.jsxs)("div",{className:"mx-auto flex h-10 max-w-[1200px] items-start justify-between",children:[(0,t.jsx)("nav",{"aria-label":n.nav.label,className:"pointer-events-auto",children:(0,t.jsxs)("ul",{className:"flex items-start",children:[(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:i.home.href,"aria-current":"page",className:(0,s.cn)(d,"flex h-10 items-center border border-ty-ink-soft bg-ty-lime px-[7px] text-ty-ink"),children:(0,t.jsx)(p,{label:i.home.label})})}),a.map((e,i)=>(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:e.href,className:(0,s.cn)(d,"flex h-8 items-center border-y border-l border-ty-ink-soft bg-ty-paper pr-2 pl-[7px] text-ty-ink transition-colors duration-300 hover:bg-ty-lime",i===a.length-1&&"border-r pr-[7px]"),children:e.label})},e.href))]})}),(0,t.jsx)(r.ArrowButton,{label:i.contact.label,href:i.contact.href,className:"pointer-events-auto border-ty-ink"})]})})}function f({content:e}){let{nav:n,hero:m,ui:y}=e,[x,g]=(0,i.useState)(!1),v=(0,o.useMinWidth)(1200),b=x&&!v,w=()=>g(!1);(0,i.useEffect)(()=>{if(!b)return;let e=document.documentElement,t=e.style.overflow;e.style.overflow="hidden";let i=e=>{"Escape"===e.key&&g(!1)};return document.addEventListener("keydown",i),()=>{document.removeEventListener("keydown",i),e.style.overflow=t}},[b]);let j=(0,s.cn)(d,"flex items-center py-2 text-ty-ink decoration-ty-lime decoration-2 underline-offset-4 hover:underline");return(0,t.jsxs)("div",{className:"pointer-events-auto desktop:hidden",children:[(0,t.jsx)("div",{"aria-hidden":!0,onClick:w,className:(0,s.cn)("fixed inset-0 bg-ty-ink/40 transition-opacity duration-300 ease-ty",b?"opacity-100":"pointer-events-none opacity-0")}),(0,t.jsxs)("div",{className:"relative bg-ty-paper",children:[(0,t.jsxs)("div",{className:"flex h-[60px] items-center justify-between border-b border-ty-line px-6 tablet:px-10",children:[(0,t.jsxs)("div",{className:"flex items-end gap-2.5",children:[(0,t.jsx)("a",{href:n.home.href,"aria-label":y.nav.home,onClick:w,className:"flex text-ty-ink",children:(0,t.jsx)(c.TeriyakiLogo,{className:"h-6"})}),(0,t.jsx)(a.Chip,{tone:"wash",size:"sm",className:"py-1",children:m.tag})]}),(0,t.jsx)("button",{type:"button","aria-expanded":b,"aria-controls":h,"aria-label":b?y.nav.closeMenu:y.nav.openMenu,onClick:()=>g(e=>!e),className:"-m-2 flex p-2 text-ty-ink",children:b?(0,t.jsx)(l.CloseIcon,{className:"size-6"}):(0,t.jsx)(l.MenuIcon,{className:"size-6"})})]}),(0,t.jsx)("div",{id:h,inert:!b,className:(0,s.cn)("grid transition-[grid-template-rows,opacity] duration-300 ease-ty",b?"grid-rows-[1fr] opacity-100":"grid-rows-[0fr] opacity-0"),children:(0,t.jsx)("div",{className:"min-h-0 overflow-hidden",children:(0,t.jsxs)("nav",{"aria-label":y.nav.label,className:"flex flex-col items-start gap-6 border-b border-ty-line p-6 tablet:px-10",children:[(0,t.jsxs)("ul",{className:"flex flex-col gap-1 self-stretch",children:[(0,t.jsx)("li",{className:"flex",children:(0,t.jsx)("a",{href:n.home.href,"aria-current":"page",onClick:w,className:(0,s.cn)(d,"relative flex bg-ty-lime px-1 text-ty-ink after:absolute after:inset-x-0 after:-inset-y-2 after:content-['']"),children:(0,t.jsx)(p,{label:n.home.label})})}),n.links.filter(e=>(0,u.isLinkVisible)(e.href)).map(e=>(0,t.jsx)("li",{children:(0,t.jsx)("a",{href:e.href,onClick:w,className:j,children:e.label})},e.href))]}),(0,t.jsx)(r.ArrowButton,{label:n.contact.label,href:n.contact.href,onClick:w,className:"border-ty-ink"})]})})})]})]})}e.s(["Header",0,function({locale:e}){let i=(0,n.getContent)(e);return(0,t.jsxs)("header",{className:"pointer-events-none fixed inset-x-0 top-0 z-50",children:[(0,t.jsx)(m,{content:i}),(0,t.jsx)(f,{content:i})]})}])},78828,e=>{"use strict";var t=e.i(43476),i=e.i(71645),s=e.i(41632),n=e.i(75157),r=e.i(26448);let a="!<>-_\\/[]{}=+*^?#%&";function o({text:e,offset:i,state:s}){let n=s.typed-i;return s.full||n>=e.length?(0,t.jsx)(t.Fragment,{children:e}):n<0?(0,t.jsx)("span",{className:"opacity-0",children:e}):(0,t.jsxs)(t.Fragment,{children:[e.slice(0,n),(0,t.jsx)("span",{children:s.cursor}),(0,t.jsx)("span",{className:"opacity-0",children:e.slice(n+1)})]})}
3function l(){return(0,t.jsxs)("span",{"aria-hidden":!0,className:"hidden shrink-0 items-center gap-2.5 tablet:flex",children:[(0,t.jsx)("span",{className:"size-1 bg-ty-ink"}),(0,t.jsx)("span",{className:"size-1 bg-ty-ink"}),(0,t.jsx)("span",{className:"size-1 bg-ty-ink"})]})}function c({children:e}){return(0,t.jsx)("span",{"aria-hidden":!0,className:"hidden shrink-0 font-mono text-[32px] leading-[41.6px] tracking-[-0.8px] text-ty-ink tablet:block",children:e})}e.s(["HeroBanner",0,function({items:e}){let u=(0,r.usePrefersReducedMotion)(),d=(0,r.useIsClient)(),{ref:h,inView:p}=(0,r.useInView)({rootMargin:"0px 0px -12% 0px"}),[m,f]=(0,i.useState)(0),[y,x]=(0,i.useState)("_"),[g,v]=(0,i.useState)(!1),{offsets:b,total:w}=function(e){let t=[],i=0;for(let s=0;s<e.length;s++){let n=s===e.length-1;n&&(i+=1),t.push(i),i+=e[s].length+ +!n}return{offsets:t,total:i}}(e),j=e.length-1;(0,i.useEffect)(()=>{if(!p||u||g)return;let e=0,t=performance.now(),i=s=>{let n=Math.floor((s-t)/32);n>=w?v(!0):(f(n),x(n%3==0?"_":a[Math.floor(Math.random()*a.length)]),e=requestAnimationFrame(i))};return e=requestAnimationFrame(i),()=>cancelAnimationFrame(e)},[p,u,g,w]);let k={typed:m,cursor:y,full:!d||u||g},S=!k.full&&m<b[j];return(0,t.jsx)("div",{className:"ty-dots flex h-[280px] items-center p-6 tablet:p-8",children:(0,t.jsxs)("div",{className:"flex w-full items-center justify-center gap-8",children:[(0,t.jsx)(l,{}),(0,t.jsx)(c,{children:">"}),(0,t.jsxs)("p",{ref:h,className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"sr-only",children:e.join(", ")}),(0,t.jsx)("span",{"aria-hidden":!0,className:"flex flex-wrap items-center justify-center font-mono text-[24px] leading-[28px] tracking-[-0.06em] uppercase tablet:text-[32px] tablet:leading-[35.2px]",children:e.map((e,i)=>(0,t.jsxs)("span",{className:"inline-flex items-center whitespace-pre",children:[i===j&&(0,t.jsx)(s.TeriyakiMark,{className:(0,n.cn)("mr-3 size-[0.75em]",S&&"opacity-0")}),(0,t.jsx)("span",{className:"text-ty-ink",children:(0,t.jsx)(o,{text:e,offset:b[i],state:k})}),i<j&&(0,t.jsx)("span",{className:"mx-3 text-ty-ink",children:(0,t.jsx)(o,{text:"→",offset:b[i]+e.length,state:k})})]},e))})]}),(0,t.jsx)(c,{children:"<"}),(0,t.jsx)(l,{})]})})}])},57727,e=>{"use strict";var t=e.i(43476),i=e.i(23084),s=e.i(6332);e.s(["HeroFilmButton",0,function({label:e,className:n}){let{open:r}=(0,s.useLaunchFilm)();return(0,t.jsx)(i.PlayTextButton,{label:e,onClick:r,className:n})}])},37053,e=>{"use strict";var t=e.i(43476),i=e.i(71645),s=e.i(75157),n=e.i(64455),r=e.i(33245),a=e.i(23084),o=e.i(78388),l=e.i(2528),c=e.i(26448),u=e.i(6932);let d="/sites/aeye-framer-ai-58d3c447/root-8a5edab2/art";function h({steps:e,trackRef:s,reduced:n}){let r=(0,c.useMinWidth)(1200),a=(0,c.useStickyProgress)(s),o=(0,i.useRef)(null),l=function(e,t){let[s,n]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let i=e.current;if(!t||!i)return;let s=Array.from(i.children),r=s.map(()=>!1),a=new IntersectionObserver(e=>{for(let t of e){let e=s.indexOf(t.target);if(e<0)continue;let i=t.rootBounds?.top??0;r[e]=t.isIntersecting||t.boundingClientRect.top<i}n(r.lastIndexOf(!0))},{rootMargin:"0px 0px -50% 0px"});return s.forEach(e=>a.observe(e)),()=>a.disconnect()},[e,t]),s}(o,!r&&!n);return(0,t.jsx)("ol",{ref:o,className:"grid grid-cols-1 gap-2 tablet:grid-cols-2 desktop:grid-cols-4",children:e.map((i,s)=>{let o,c;if(n)o=!0,c=1;else if(r){let t=a*e.length-s;o=t>=0,c=Math.min(1,Math.max(0,t))}else c=+!!(o=s<=l);return(0,t.jsx)(p,{step:i,reached:o,fill:c},i.n)})})}function p({step:e,reached:i,fill:n}){return(0,t.jsxs)("li",{className:"grid grid-cols-[minmax(0,1fr)_auto] gap-x-4 border border-ty-line ty-glass p-[15px] tablet:min-h-[384px] tablet:grid-cols-1 tablet:grid-rows-[auto_1fr_auto_auto_auto]",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.cn)("col-1 row-1 text-[16px] leading-[20.8px] font-medium tracking-[-0.8px] text-ty-ink-soft transition-opacity duration-400 ease-ty",!i&&"opacity-50"),children:`// ${e.n}`}),(0,t.jsx)("h3",{className:(0,s.cn)("col-1 row-2 mt-2 self-end text-[24px] leading-[31.2px] font-medium tracking-[-1.2px] transition-[color,opacity] duration-400 ease-ty tablet:row-4 tablet:mt-[29px] tablet:self-auto",i?"text-ty-ink":"text-ty-ink opacity-50"),children:e.title}),(0,t.jsx)("p",{className:(0,s.cn)("col-span-full row-4 mt-4 text-[16px] leading-[20.8px] tracking-[-0.8px] text-ty-ink-soft transition-opacity duration-400 ease-ty tablet:row-2 tablet:mt-3 tablet:self-end",!i&&"opacity-0"),children:e.body}),(0,t.jsx)(m,{icon:e.icon,reached:i,className:"col-2 row-[1/span_2] tablet:col-1 tablet:row-5 tablet:mt-6 tablet:justify-self-end"}),(0,t.jsx)(f,{reached:i,fill:n,className:"col-span-full row-3 -mx-[15px] mt-4 tablet:mt-7"})]})}function m({icon:e,reached:i,className:n}
3){return(0,t.jsxs)("span",{"aria-hidden":!0,className:(0,s.cn)("relative block size-16 tablet:size-20",n),children:[(0,t.jsx)("img",{src:`${d}/b-${e}-line.svg`,alt:"",draggable:!1,className:(0,s.cn)("absolute inset-0 size-full transition-opacity duration-400 ease-ty",i?"opacity-0":"opacity-45")}),(0,t.jsx)("img",{src:`${d}/b-${e}-pixel-lime.svg`,alt:"",draggable:!1,className:(0,s.cn)("absolute inset-0 size-full transition-opacity duration-400 ease-ty",i?"opacity-100":"opacity-0")})]})}function f({reached:e,fill:i,className:n}){return(0,t.jsx)("div",{"aria-hidden":!0,className:(0,s.cn)("ty-dots relative h-6 overflow-hidden",n),children:(0,t.jsxs)("div",{className:"absolute inset-x-0 inset-y-2 transition-transform duration-700 ease-ty will-change-transform desktop:transition-none",style:{transform:e?`translateX(${(i-1)*100}%)`:"translateX(calc(-100% - 16px))"},children:[(0,t.jsx)("div",{className:"size-full bg-ty-lime"}),(0,t.jsx)("div",{className:"absolute top-0 left-[calc(100%+5px)] size-2 bg-ty-ink"})]})})}e.s(["MethodSection",0,function({locale:e}){let{method:d,ui:p}=(0,n.getContent)(e),m=(0,i.useRef)(null),f=(0,c.usePrefersReducedMotion)();return(0,t.jsx)(o.Section,{id:"method",tone:"light",flush:!0,className:"py-10 tablet:py-16 desktop:pt-0 desktop:pb-20",children:(0,t.jsx)("div",{ref:m,className:(0,s.cn)("relative",!f&&"desktop:h-[1800px]"),children:(0,t.jsxs)("div",{className:(0,s.cn)("flex flex-col gap-6 desktop:pt-20",!f&&"desktop:sticky desktop:top-[min(0px,calc(100vh_-_693px))]"),children:[(0,t.jsx)(l.SectionLabel,{index:(0,r.sectionNumber)("method"),total:r.SECTION_TOTAL,label:d.label,prefix:p.section.counterPrefix,tone:"light"}),(0,t.jsxs)("div",{className:"flex flex-col gap-10 tablet:gap-16",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start gap-8 tablet:flex-row tablet:justify-between tablet:gap-10",children:[(0,t.jsx)(u.SectionHeading,{lines:d.title,className:"tablet:min-w-0 tablet:flex-1"}),(0,t.jsx)(a.PrimaryButton,{label:d.cta.label,href:d.cta.href})]}),(0,t.jsx)(h,{steps:d.steps,trackRef:m,reduced:f})]})]})})})}])},3098,e=>{"use strict";var t=e.i(43476),i=e.i(64455),s=e.i(78388),n=e.i(2528),r=e.i(6932),a=e.i(33245),o=e.i(71645),l=e.i(75157),c=e.i(94390),u=e.i(77856),d=e.i(23084),h=e.i(6332),p=e.i(41632);function m({active:e}){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{"aria-hidden":!0,className:(0,l.cn)("pointer-events-none absolute inset-0 border transition-colors duration-300",e?"border-ty-lime!":"border-ty-ink-line!")}),(0,t.jsx)("span",{"aria-hidden":!0,className:(0,l.cn)("pointer-events-none absolute inset-x-0 bottom-0 h-1 origin-left bg-ty-lime transition-transform duration-500 ease-ty",e?"scale-x-100":"scale-x-0")})]})}let f="text-[18px] leading-[23.4px] font-medium tracking-[-0.9px]",y="text-[16px] leading-[20.8px] tracking-[-0.8px] text-ty-subtle",x="text-[20px] leading-[26px] tracking-[-1px]";function g({item:e,active:s,locale:n}){let{principles:r,ui:a}=(0,i.getContent)(n);return(0,t.jsxs)("div",{className:"group/arrow relative flex w-full flex-col overflow-hidden bg-ty-ink text-ty-paper",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-6 p-6",children:[(0,t.jsxs)("div",{className:"flex items-start gap-2",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 items-start gap-3",children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-12 shrink-0 items-center justify-center bg-ty-paper text-ty-ink",children:(0,t.jsx)(p.TeriyakiMark,{className:"w-7"})}),(0,t.jsxs)("div",{className:"flex min-w-0 flex-col gap-1",children:[(0,t.jsx)("p",{className:f,children:a.brand.teriyaki}),(0,t.jsx)("p",{className:y,children:e.meta})]})]}),(0,t.jsx)(p.TeriyakiMark,{mono:!0,className:"w-6 text-ty-subtle"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("p",{className:x,children:e.text}),(0,t.jsx)("p",{className:"font-mono text-[12px] leading-[15.6px] font-medium tracking-[-0.48px] text-ty-muted uppercase",children:r.label})]})]}),(0,t.jsxs)("a",{href:e.href,draggable:!1,className:(0,l.cn)("flex h-14 items-center justify-between p-4 transition-colors duration-300 group-hover/arrow:text-ty-lime","after:absolute after:inset-0 focus-visible:outline-offset-[-2px]!",s&&"text-ty-lime"),children:[(0,t.jsx)("span",{className:"flex size-6 items-center justify-center",children:(0,t.jsx)(d.ArrowSwap,{className:"scale-[1.2]"})}),(0,t.jsxs)("span",{className:"font-mono text-[16px] leading-[20.8px] font-medium tracking-[-0.8px] uppercase",children:[a.carousel.readMore,(0,t.jsxs)("span",{className:"sr-only",children:[": ",e.meta]})]})]}),(0,t.jsx)(m,{active:s})]})}function v({item:e,active:s,locale:n}){let{launch:r,ui:a}=(0,i.getContent)(n),{open:o}=(0,h.useLaunchFilm)();return(0,t.jsxs)("button",{type:"button",onClick:o,"aria-label":a.film.play,className:"group/film relative isolate flex w-full flex-1 cursor-pointer flex-col items-start justify-between overflow-hidden bg-ty-ink p-6 text-left text-ty-paper focus-visible:outline-offset-[-2px]!",children:[(0,t.jsx)("img",{src:r.poster,alt:"",loading:"lazy",decoding:"async",draggable:!1,
3className:"absolute inset-0 size-full object-cover mix-blend-luminosity brightness-[.62] contrast-[1.1] grayscale transition-transform duration-700 ease-ty group-hover/film:scale-[1.03]"}),(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-x-0 bottom-0 h-2/5 bg-linear-to-t from-ty-ink/85 to-transparent"}),(0,t.jsx)(u.Chip,{size:"sm",className:"relative self-end py-1 text-ty-ink",children:e.meta}),(0,t.jsxs)("span",{className:"relative flex items-center gap-1 pr-3",children:[(0,t.jsx)("span",{className:"flex size-10 items-center justify-center",children:(0,t.jsx)(c.PlayIcon,{className:"size-6 transition-colors duration-300 group-hover/film:text-ty-lime"})}),(0,t.jsxs)("span",{className:"flex gap-1 text-[16px] leading-[20.8px] tracking-[-0.8px]",children:[(0,t.jsx)("span",{children:r.duration}),(0,t.jsx)("span",{className:"text-ty-subtle",children:r.durationUnit})]})]}),(0,t.jsx)(m,{active:s})]})}function b({item:e,active:s,locale:n}){let{ui:r}=(0,i.getContent)(n);return(0,t.jsxs)("div",{className:"relative flex w-full flex-1 flex-col justify-between gap-6 overflow-hidden bg-ty-ink p-6 text-ty-paper",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsx)("div",{className:"flex h-10 items-center",children:(0,t.jsx)(p.HoploLogo,{alt:r.brand.hoplo,tone:"light",className:"h-6"})}),(0,t.jsx)("p",{className:x,children:e.text})]}),(0,t.jsxs)("div",{className:"flex items-end gap-3",children:[(0,t.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col gap-1",children:[(0,t.jsx)("p",{className:f,children:r.brand.teriyaki}),(0,t.jsx)("p",{className:y,children:e.meta})]}),(0,t.jsx)("span",{"aria-hidden":!0,className:"flex size-16 shrink-0 items-center justify-center bg-ty-paper text-ty-ink",children:(0,t.jsx)(p.TeriyakiMark,{className:"w-9"})})]}),(0,t.jsx)(m,{active:s})]})}function w(e){return"film"===e.item.kind?(0,t.jsx)(v,{...e}):"quote"===e.item.kind?(0,t.jsx)(b,{...e}):(0,t.jsx)(g,{...e})}var j=e.i(26448);let k=["start","start","end","start","end","start"],S=(0,l.cn)("relative flex h-[400px] gap-4 overflow-x-auto overscroll-x-contain snap-x snap-mandatory tablet:h-[450px]","[scrollbar-width:none] [&::-webkit-scrollbar]:hidden","[--bleed:max(24px,calc((100vw_-_1200px)/2))] tablet:[--bleed:max(40px,calc((100vw_-_1200px)/2))] desktop:[--bleed:max(120px,calc((100vw_-_1200px)/2))]","-mx-[var(--bleed)] px-[var(--bleed)] scroll-px-[var(--bleed)]");function P({label:e,disabled:i,controls:s,onClick:n,children:r}){return(0,t.jsx)("button",{type:"button","aria-label":e,"aria-controls":s,"aria-disabled":i,onClick:()=>!i&&n(),className:"flex size-10 cursor-pointer items-center justify-center bg-ty-paper text-ty-ink transition-[background-color,opacity] duration-300 hover:bg-ty-lime aria-disabled:cursor-default aria-disabled:opacity-40 aria-disabled:hover:bg-ty-paper",children:r})}function T({locale:e}){let s,n,r,{principles:a,ui:u}=(0,i.getContent)(e),d=a.items.map((e,t)=>({item:e,align:k[t%k.length]})).filter(({item:e})=>!0),h=(0,o.useId)(),{trackRef:p,setSlide:m,active:f,dragging:y,...x}=function(e){let t=(0,o.useRef)(null),i=(0,o.useRef)([]),s=(0,o.useRef)(0),n=(0,o.useRef)(null),[r,a]=(0,o.useState)(0),[l,c]=(0,o.useState)(!1),u=(0,j.usePrefersReducedMotion)(),d=(0,o.useCallback)(e=>{let s=t.current,n=i.current[0],r=i.current[e];return s&&n&&r?Math.max(0,Math.min(s.scrollWidth-s.clientWidth,r.offsetLeft-n.offsetLeft)):0},[]),h=(0,o.useCallback)(()=>{let i=t.current?.scrollLeft??0,s=0;for(let t=1;t<e;t++)Math.abs(d(t)-i)<Math.abs(d(s)-i)-.5&&(s=t);return s},[e,d]),p=(0,o.useCallback)(i=>{let r=Math.max(0,Math.min(e-1,i));s.current=r,a(r);let o=t.current;if(!o)return r;let l=d(r);return 2>Math.abs(o.scrollLeft-l)?(n.current=null,c(!1)):(n.current=l,o.scrollTo({left:l,behavior:u?"auto":"smooth"})),r},[e,u,d]),m=(0,o.useCallback)(e=>p(s.current+e),[p]),f=(0,o.useCallback)(e=>{let s=t.current?.getBoundingClientRect(),n=i.current[e]?.getBoundingClientRect();return!!s&&!!n&&n.left>=s.left-1&&n.right<=s.right+1},[]),y=(0,o.useCallback)(e=>f(e)?(s.current=e,a(e),e):p(e),[p,f]);(0,o.useEffect)(()=>{let e=t.current;if(!e)return;let r=0,o=()=>
3{if(window.clearTimeout(r),null!==n.current){if(Math.abs(e.scrollLeft-n.current)>2)return;n.current=null,c(!1);return}let t=s.current;if(2>Math.abs(d(t)-e.scrollLeft)||i.current[t]?.contains(document.activeElement)&&f(t))return;let o=h();s.current=o,a(o)},l=()=>{window.clearTimeout(r),r=window.setTimeout(o,150)},u=()=>{n.current=null};return e.addEventListener("scroll",l,{passive:!0}),e.addEventListener("scrollend",o),e.addEventListener("wheel",u,{passive:!0}),e.addEventListener("touchstart",u,{passive:!0}),()=>{window.clearTimeout(r),e.removeEventListener("scroll",l),e.removeEventListener("scrollend",o),e.removeEventListener("wheel",u),e.removeEventListener("touchstart",u)}},[f,h,d]);let x=(0,o.useCallback)(e=>t=>{i.current[e]=t},[]),g=(0,o.useCallback)(()=>(n.current=null,t.current?.scrollLeft??0),[]),v=(0,o.useCallback)(e=>{t.current&&(t.current.scrollLeft=e)},[]),b=(0,o.useCallback)(e=>{let t=i.current[e],s=t?.querySelector("a[href], button")??t;s?.focus({preventScroll:!0})},[]);return{trackRef:t,setSlide:x,active:r,isActive:(0,o.useCallback)(e=>e===s.current,[]),dragging:l,setDragging:c,goTo:p,goBy:m,focusSelect:y,nearest:h,dragStart:g,dragTo:v,focusCard:b}}(d.length),{trackProps:g,onSlideFocus:v}=(s=(0,o.useRef)(null),n=(0,o.useRef)(!1),{onSlideFocus:e=>t=>{!x.isActive(e)&&t.target.matches(":focus-visible")&&x.focusSelect(e)},trackProps:{onPointerDown:e=>{n.current=!1,"mouse"===e.pointerType&&0===e.button&&(s.current={id:e.pointerId,x:e.clientX,left:x.dragStart(),moved:!1})},onPointerMove:e=>{let t=s.current;if(!t||t.id!==e.pointerId)return;let i=e.clientX-t.x;if(!t.moved){if(6>Math.abs(i))return;t.moved=!0,e.currentTarget.setPointerCapture(e.pointerId),x.setDragging(!0)}x.dragTo(t.left-i)},onPointerUp:r=()=>{let e=s.current;s.current=null,e?.moved&&(n.current=!0,x.goTo(x.nearest()))},onPointerCancel:r,onClickCapture:e=>{n.current&&(n.current=!1,e.preventDefault(),e.stopPropagation())},onKeyDown:e=>{("ArrowLeft"===e.key||"ArrowRight"===e.key)&&(e.preventDefault(),x.focusCard(x.goBy("ArrowRight"===e.key?1:-1)))},onDragStart:e=>e.preventDefault()}}),[b,N]=(0,o.useState)(""),A=e=>{let{item:t}=d[x.goBy(e)];N([t.meta,t.text].filter(Boolean).join(". "))};return(0,t.jsxs)("div",{role:"region","aria-label":u.carousel.label,className:"relative flex flex-col gap-10",children:[(0,t.jsxs)("div",{className:"flex gap-2 tablet:absolute tablet:right-0 tablet:bottom-[calc(100%+64px)]",children:[(0,t.jsx)(P,{label:u.carousel.previous,disabled:0===f,controls:h,onClick:()=>A(-1),children:(0,t.jsx)(c.ChevronLeftIcon,{className:"size-5"})}),(0,t.jsx)(P,{label:u.carousel.next,disabled:f===d.length-1,controls:h,onClick:()=>A(1),children:(0,t.jsx)(c.ChevronRightIcon,{className:"size-5"})})]}),(0,t.jsx)("ul",{id:h,ref:p,role:"list",className:(0,l.cn)(S,y&&"cursor-grabbing snap-none select-none"),...g,children:d.map(({item:i,align:s},n)=>(0,t.jsx)("li",{ref:m(n),tabIndex:-1,"aria-current":n===f?"true":void 0,onFocus:v(n),className:(0,l.cn)("flex w-[min(300px,100%)] shrink-0 snap-start flex-col focus-visible:outline-offset-[-2px]! tablet:w-[360px] desktop:w-[calc((100%_-_32px)/3)]","end"===s?"justify-end":"justify-start"),children:(0,t.jsx)(w,{item:i,active:n===f,locale:e})},n))}),(0,t.jsx)("p",{className:"sr-only","aria-live":"polite","aria-atomic":"true",children:b})]})}e.s(["PrinciplesSection",0,function({locale:e}){let{principles:o,ui:l}=(0,i.getContent)(e);return(0,t.jsx)(s.Section,{id:"principles",tone:"dark",children:(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsx)(n.SectionLabel,{index:(0,a.sectionNumber)("principles"),total:a.SECTION_TOTAL,label:o.label,prefix:l.section.counterPrefix,tone:"dark"}),(0,t.jsxs)("div",{className:"flex flex-col gap-6 tablet:gap-16",children:[(0,t.jsx)(r.SectionHeading,{lines:o.title,className:"tablet:pr-20"}),(0,t.jsx)(T,{locale:e})]})]})})}],3098)},70836,e=>{"use strict";var t=e.i(43476),i=e.i(71645),s=e.i(75157),n=e.i(94390),r=e.i(26448);function a({heights:e,className:i}){let n=1e3/e.length;return(0,t.jsx)("svg",{viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:(0,s.cn)("absolute inset-0 size-full",i),"aria-hidden":!0,
3children:e.map((e,i)=>(0,t.jsx)("rect",{x:Math.round((i*n+.14*n)*100)/100,y:Math.round((100-100*e)*100)/100,width:Math.round(72*n)/100,height:Math.round(1e4*e)/100,fill:"currentColor"},i))})}e.s(["ProofChart",0,function({without:e,withLabel:o,axis:l,label:c}){let u=(0,i.useMemo)(()=>(function(){let e,t=(e=0x135283e,()=>{e|=0;let t=Math.imul((e=e+0x6d2b79f5|0)^e>>>15,1|e);return(((t=t+Math.imul(t^t>>>7,61|t)^t)^t>>>14)>>>0)/0x100000000}),i=[],s=[];for(let e=0;e<96;e++){let n=(Math.sin(e/6.5)+1)/2,r=e%23>18?.25:1;i.push(Math.max(.03,(.14+.32*n+.16*t())*r));let a=(Math.sin(e/9+1.3)+1)/2;s.push(Math.min(1,.58+.22*a+.2*t()))}let n=e=>Math.round(1e3*e)/1e3;return{without:i.map(n),with:s.map(n)}})(),[]),d=(0,r.usePrefersReducedMotion)(),[h,p]=(0,i.useState)(50),m=(0,i.useRef)(null),f=(0,i.useRef)(!1),y=(0,i.useCallback)(e=>{let t=m.current?.getBoundingClientRect();t&&0!==t.width&&p(Math.min(100,Math.max(0,(e-t.left)/t.width*100)))},[]),x=()=>{f.current=!1},g=d?"none":"clip-path 0.18s ease-out, left 0.18s ease-out";return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsxs)("div",{className:"relative h-[264px] w-full tablet:h-[440px] desktop:h-[359px]",children:[l.map((e,i)=>(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-y-0 w-px border-l border-dashed border-ty-line",style:{left:`${i/(l.length-1)*100}%`}},i)),(0,t.jsxs)("div",{ref:m,className:"absolute inset-0 cursor-ew-resize touch-pan-y select-none",onPointerMove:e=>{("mouse"===e.pointerType||f.current)&&y(e.clientX)},onPointerDown:e=>{f.current=!0,e.currentTarget.setPointerCapture(e.pointerId),y(e.clientX)},onPointerUp:x,onPointerCancel:x,children:[(0,t.jsx)("div",{className:"absolute inset-0",style:{clipPath:`inset(0 ${100-h}% 0 0)`,transition:g},children:(0,t.jsx)(a,{heights:u.without,className:"text-ty-faint"})}),(0,t.jsx)("div",{className:"absolute inset-0",style:{clipPath:`inset(0 0 0 ${h}%)`,transition:g},children:(0,t.jsx)(a,{heights:u.with,className:"text-ty-lime"})}),(0,t.jsxs)("div",{className:"pointer-events-none absolute inset-y-0",style:{left:`${h}%`,transition:g},children:[(0,t.jsx)("span",{"aria-hidden":!0,className:"absolute inset-y-0 -left-px w-px bg-ty-ink"}),(0,t.jsxs)("div",{className:"absolute top-1/2 left-0 flex -translate-y-1/2 items-center",children:[(0,t.jsxs)("span",{className:"absolute right-[16px] flex items-center gap-1.5 border border-ty-line bg-ty-paper-deep px-1 py-0.5 font-mono text-[12px] leading-[13.2px] font-medium whitespace-nowrap text-ty-ink/85 uppercase",children:[e,(0,t.jsx)(n.ChevronLeftIcon,{className:"size-3"})]}),(0,t.jsx)("div",{role:"slider",tabIndex:0,"aria-label":c,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(h),onKeyDown:e=>{let t=e.shiftKey?10:5,i=null;("ArrowLeft"===e.key||"ArrowDown"===e.key)&&(i=h-t),("ArrowRight"===e.key||"ArrowUp"===e.key)&&(i=h+t),"Home"===e.key&&(i=0),"End"===e.key&&(i=100),null!==i&&(e.preventDefault(),p(Math.min(100,Math.max(0,i))))},className:"pointer-events-auto absolute -left-3 size-6 border-2 border-ty-ink bg-ty-lime"}),(0,t.jsxs)("span",{className:"absolute left-[16px] flex items-center gap-1.5 border border-ty-line bg-ty-paper-deep px-1 py-0.5 font-mono text-[12px] leading-[13.2px] font-medium whitespace-nowrap text-ty-ink/85 uppercase",children:[(0,t.jsx)(n.ChevronRightIcon,{className:"size-3"}),o]})]})]})]})]}),(0,t.jsx)("div",{className:"relative h-[60px] w-full",children:l.map((e,i)=>{let n=0===i,r=i===l.length-1;return(0,t.jsx)("span",{"aria-hidden":!0,className:(0,s.cn)("absolute top-4 text-[12px] leading-[15.6px] text-ty-ink-soft tablet:text-[18px] tablet:leading-[23.4px] tablet:tracking-[-0.9px]",n?"translate-x-0":r?"-translate-x-full":"-translate-x-1/2",i%2==1&&"hidden tablet:block"),style:{left:`${i/(l.length-1)*100}%`},children:e},i)})}),(0,t.jsx)("p",{className:"font-mono text-[12px] leading-[15.6px] font-medium tracking-[-0.48px] text-ty-muted uppercase",children:c})]})}])},33245,e=>{"use strict";let t=["why","proof","factory","method","code","deliverables","principles","engage","shipped","notes","about","faq"],i=new Set(["code"]),s=t.filter(e=>!i.has(e)),n=s.length;e.s(["SECTION_TOTAL",0,n,"isLinkVisible",0,function(e){if(!e.startsWith("#"))return!0;let s=e.slice(1);return!t.includes(s)||!i.has(s)},"sectionNumber",0,function(e){let t=s.indexOf(e);if(t<0)throw Error(`Section "${e}" is hidden: it has no number`);return t+1}])},6332,e=>{"use strict";let t,i,s;var n=e.i(43476),r=e.i(71645),a=e.i(74080),o=e.i(47167);let l=(0,r.createContext)({});function c(e){let t=(0,r.useRef)(null);return null===t.current&&(t.current=e()),t.current}let u="u">typeof window?r.useLayoutEffect:r.useEffect,d=(0,r.createContext)(null),h=e=>"object"==typeof e&&null!==e;function p(e){return h(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}var m=r;let f=(0,r.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function y(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class x extends m.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(p(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,
3i=p(e)&&e.offsetWidth||0,s=p(e)&&e.offsetHeight||0,n=getComputedStyle(t),r=this.props.sizeRef.current;r.height=parseFloat(n.height),r.width=parseFloat(n.width),r.top=t.offsetTop,r.left=t.offsetLeft,r.right=i-r.width-r.left,r.bottom=s-r.height-r.top,r.direction=n.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function g({children:e,isPresent:t,anchorX:i,anchorY:s,root:a,pop:o}){let l=(0,m.useId)(),c=(0,m.useRef)(null),u=(0,m.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:d}=(0,m.useContext)(f),h=function(...e){return r.useCallback(function(...e){return t=>{let i=!1,s=e.map(e=>{let s=y(e,t);return i||"function"!=typeof s||(i=!0),s});if(i)return()=>{for(let t=0;t<s.length;t++){let i=s[t];"function"==typeof i?i():y(e[t],null)}}}}(...e),e)}(c,!1!==o?e.props?.ref??e?.ref:void 0);return(0,m.useInsertionEffect)(()=>{let{width:e,height:n,top:r,left:h,right:p,bottom:m,direction:f}=u.current;if(t||!1===o||!c.current||!e||!n)return;let y="rtl"===f,x="left"===i?y?`right: ${p}`:`left: ${h}`:y?`left: ${h}`:`right: ${p}`,g="bottom"===s?`bottom: ${m}`:`top: ${r}`;c.current.dataset.motionPopId=l;let v=document.createElement("style");d&&(v.nonce=d);let b=a??document.head;return b.appendChild(v),v.sheet&&v.sheet.insertRule(` 4 [data-motion-pop-id="${l}"] { 5 position: absolute !important; 6 width: ${e}px !important; 7 height: ${n}px !important; 8 ${x}px !important; 9 ${g}px !important; 10 } 11 `),()=>{c.current?.removeAttribute("data-motion-pop-id"),b.contains(v)&&b.removeChild(v)}},[t]),(0,n.jsx)(x,{isPresent:t,childRef:c,sizeRef:u,pop:o,children:!1===o?e:m.cloneElement(e,{ref:h})})}let v=({children:e,initial:t,isPresent:i,onExitComplete:s,custom:a,presenceAffectsLayout:o,mode:l,anchorX:h,anchorY:p,root:m})=>{let f=c(b),y=(0,r.useId)(),x=(0,r.useRef)(i),v=(0,r.useRef)(s);u(()=>{x.current=i,v.current=s});let w=!0,j=(0,r.useMemo)(()=>(w=!1,{id:y,initial:t,isPresent:i,custom:a,onExitComplete:e=>{for(let t of(f.set(e,!0),f.values()))if(!t)return;s&&s()},register:e=>(f.set(e,!1),()=>{f.delete(e),x.current||f.size||v.current?.()})}),[i,f,s]);return o&&w&&(j={...j}),(0,r.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[i]),r.useEffect(()=>{i||f.size||!s||s()},[i]),e=(0,n.jsx)(g,{pop:"popLayout"===l,isPresent:i,anchorX:h,anchorY:p,root:m,children:e}),(0,n.jsx)(d.Provider,{value:j,children:e})};function b(){return new Map}function w(e=!0){let t=(0,r.useContext)(d);if(null===t)return[!0,null];let{isPresent:i,onExitComplete:s,register:n}=t,a=(0,r.useId)();(0,r.useEffect)(()=>{if(e)return n(a)},[e]);let o=(0,r.useCallback)(()=>e&&s&&s(a),[a,s,e]);return!i&&s?[!1,o]:[!0]}let j=e=>e.key||"";function k(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let S=({children:e,custom:t,initial:i=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:o="sync",propagate:d=!1,anchorX:h="left",anchorY:p="top",root:m})=>{let[f,y]=w(d),x=(0,r.useMemo)(()=>k(e),[e]),g=d&&!f?[]:x.map(j),b=(0,r.useRef)(!0),S=(0,r.useRef)(x),P=c(()=>new Map),T=(0,r.useRef)(new Set),[N,A]=(0,r.useState)(x),[C,_]=(0,r.useState)(x);u(()=>{!d||f||C.length||y?.()},[f,d,C.length,y]),u(()=>{b.current=!1,S.current=x;for(let e=0;e<C.length;e++){let t=j(C[e]);g.includes(t)?(P.delete(t),T.current.delete(t)):!0!==P.get(t)&&P.set(t,!1)}},[C,g.length,g.join("-")]);let E=[];if(x!==N){let e=[...x],t=0;for(let i of C){let s=g.indexOf(j(i));-1===s?(e.splice(t++,0,i),E.push(i)):t=s+E.length+1}return"wait"===o&&E.length&&(e=E),_(k(e)),A(x),null}let{forceRender:M}=(0,r.useContext)(l);return(0,n.jsx)(n.Fragment,{children:C.map(e=>{let r=j(e),l=(!d||!!f)&&(x===C||g.includes(r));return(0,n.jsx)(v,{isPresent:l,initial:(!b.current||!!i)&&void 0,custom:t,presenceAffectsLayout:a,mode:o,root:m,onExitComplete:l?void 0:()=>{if(T.current.has(r)||!P.has(r))return;T.current.add(r),P.set(r,!0);let e=!0;P.forEach(t=>{t||(e=!1)}),e&&(M?.(),_(S.current),d&&y?.(),s&&s())},anchorX:h,anchorY:p,children:e},r)})})};function P(e,t){if(e?.inherit&&t){let{inherit:i,...s}=e;return{...t,...s}}return e}function T({children:e,...t}){let i=(0,r.useContext)(f);(t={...i,...t}).transition=P(t.transition,i.transition),t.isStatic=c(()=>t.isStatic);let s=(0,r.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,n.jsx)(f.Provider,{value:s,children:e})}let N=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],A=new Set([...N,"pathRotation"]),C=(e,t,i)=>i>t?t:i<e?e:i,_={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},E={..._,transform:e=>C(0,1,e)},M={..._,default:1},V=e=>Math.round(1e5*e)/1e5,R=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,D=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,L=(e,t)=>i=>!!("string"==typeof i&&D.test(i)&&i.startsWith(e)||t&&null!=i&&Object.prototype.hasOwnProperty.call(i,t)),O=(e,t,i)=>s=>{if("string"!=typeof s)return s;let[n,r,a,o]=s.match(R);return{[e]:parseFloat(n),[t]:parseFloat(r),[i]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},F={..._,transform:e=>Math.round(C(0,255,e))},I={test:L("rgb","red"),parse:O("red","green","blue"),transform:({red:e,green:t,blue:i,alpha:s=1})=>"rgba("+F.transform(e)+", "+F.transform(t)+", "+F.transform(i)+", "+V(E.transform(s))+")"},B={test:L("#"),parse:function(e){let t="",i="",s="",n="";return e.length>5?(t=e.substring(1,3),i=e.substring(3,5),s=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),i=e.substring(2,3),s=e.substring(3,4),n=e.substring(4,5),t+=t,i+=i,s+=s,n+=n),{red:parseInt(t,16),green:parseInt(i,16),blue:parseInt(s,16),alph
11a:n?parseInt(n,16)/255:1}},transform:I.transform},z=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),$=z("deg"),X=z("%"),U=z("px"),H=z("vh"),W=z("vw"),Q={...X,parse:e=>X.parse(e)/100,transform:e=>X.transform(100*e)},Y={test:L("hsl","hue"),parse:O("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:i,alpha:s=1})=>"hsla("+Math.round(e)+", "+X.transform(V(t))+", "+X.transform(V(i))+", "+V(E.transform(s))+")"},q={test:e=>I.test(e)||B.test(e)||Y.test(e),parse:e=>I.test(e)?I.parse(e):Y.test(e)?Y.parse(e):B.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?I.transform(e):Y.transform(e),getAnimatableNone:e=>{let t=q.parse(e);return t.alpha=0,q.transform(t)}},K=new RegExp(R.source),G=RegExp(/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu.source,"i"),Z="number",J="color",ee=/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 et(e){let t=e.toString(),i=[],s={color:[],number:[],var:[]},n=[],r=0,a=t.replace(ee,e=>(q.test(e)?(s.color.push(r),n.push(J),i.push(q.parse(e))):e.startsWith("var(")?(s.var.push(r),n.push("var"),i.push(e)):(s.number.push(r),n.push(Z),i.push(parseFloat(e))),++r,"${}")).split("${}");return{values:i,split:a,indexes:s,types:n}}function ei({split:e,types:t}){let i=e.length;return s=>{let n="";for(let r=0;r<i;r++)if(n+=e[r],void 0!==s[r]){let e=t[r];e===Z?n+=V(s[r]):e===J?n+=q.transform(s[r]):n+=s[r]}return n}}let es={test:function(e){return isNaN(e)&&"string"==typeof e&&(K.test(e)||G.test(e))},parse:function(e){return et(e).values},createTransformer:function(e){return ei(et(e))},getAnimatableNone:function(e){let t=et(e);return ei(t)(t.values.map((e,i)=>((e,t)=>"number"==typeof e?t?.trim().endsWith("/")?e:0:"number"==typeof e?0:q.test(e)?q.getAnimatableNone(e):e)(e,t.split[i])))}},en=new Set(["brightness","contrast","saturate","opacity"]);function er(e){let[t,i]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[s]=i.match(R)||[];if(!s)return e;let n=i.replace(s,""),r=+!!en.has(t);return s!==i&&(r*=100),t+"("+r+n+")"}let ea=/\b([a-z-]*)\(.*?\)/gu,eo={...es,getAnimatableNone:e=>{let t=e.match(ea);return t?t.map(er).join(" "):e}},el={...es,getAnimatableNone:e=>{let t=es.parse(e);return es.createTransformer(e)(t.map(e=>"number"==typeof e?0:"object"==typeof e?{...e,alpha:1}:e))}},ec={..._,transform:Math.round},eu={borderWidth:U,borderTopWidth:U,borderRightWidth:U,borderBottomWidth:U,borderLeftWidth:U,borderRadius:U,borderTopLeftRadius:U,borderTopRightRadius:U,borderBottomRightRadius:U,borderBottomLeftRadius:U,width:U,maxWidth:U,height:U,maxHeight:U,top:U,right:U,bottom:U,left:U,inset:U,insetBlock:U,insetBlockStart:U,insetBlockEnd:U,insetInline:U,insetInlineStart:U,insetInlineEnd:U,padding:U,paddingTop:U,paddingRight:U,paddingBottom:U,paddingLeft:U,paddingBlock:U,paddingBlockStart:U,paddingBlockEnd:U,paddingInline:U,paddingInlineStart:U,paddingInlineEnd:U,margin:U,marginTop:U,marginRight:U,marginBottom:U,marginLeft:U,marginBlock:U,marginBlockStart:U,marginBlockEnd:U,marginInline:U,marginInlineStart:U,marginInlineEnd:U,fontSize:U,backgroundPositionX:U,backgroundPositionY:U,rotate:$,pathRotation:$,rotateX:$,rotateY:$,rotateZ:$,scale:M,scaleX:M,scaleY:M,scaleZ:M,skew:$,skewX:$,skewY:$,distance:U,translateX:U,translateY:U,translateZ:U,x:U,y:U,z:U,perspective:U,transformPerspective:U,opacity:E,originX:Q,originY:Q,originZ:U,zIndex:ec,fillOpacity:E,strokeOpacity:E,numOctaves:ec},ed={...eu,color:q,backgroundColor:q,outlineColor:q,fill:q,stroke:q,borderColor:q,borderTopColor:q,borderRightColor:q,borderBottomColor:q,borderLeftColor:q,filter:eo,WebkitFilter:eo,mask:el,WebkitMask:el},eh=e=>ed[e],ep=()=>({translate:0,scale:1,origin:0,originPoint:0}),em=()=>({x:ep(),y:ep()}),ef=()=>({min:0,max:0}),ey=()=>({x:ef(),y:ef()}),ex=e=>!!(e&&e.getVelocity),eg=new Set(["width","height","top","left","right","bottom",...N]),ev=[_,U,X,$,W,H,{test:e=>"auto"===e,parse:e=>e}],eb=e=>ev.find(t=>t.test(e)),ew=()=>{},ej=()=>{};o.default;let ek=e=>t=>"string"==typeof t&&t.startsWith(e),eS=ek("--"),eP=ek("var(--"),eT=e=>!!eP(e)&&eN.test(e.split("/*")[0].trim()),eN=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function eA(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let eC=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,e_=new Set([eo,el]);function eE(e,t){let i=eh(e);return e_.has(i)||(i=es),i.getAnimatableNone?i.getAnimatableNone(t):void 0}let eM=e=>180*e/Math.PI,eV=e=>eD(eM(Math.atan2(e[1],e[0]))),eR={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:eV,rotateZ:eV,skewX:e=>eM(Math.atan(e[1])),skewY:e=>eM(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},eD=e=>((e%=360)<0&&(e+=360),e),eL=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eO=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eF={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:eL,scaleY:eO,scale:e=>(eL(e)+eO(e))/2,rotateX:e=>eD(eM(Math.atan2(e[6],e[5]))),rotateY:e=>eD(eM(Math.atan2(-e[2],e[0]))),rotateZ:eV,rotate:eV,skewX:e=>eM(Math.atan(e[4])),skewY:e=>eM(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function eI(e){return+!!e.includes("scale")}function eB(e,t){let i,s;if(!e||"none"===e)return eI(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(n)i=eF,s=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=eR,s=t}if(!s)return eI(t);let r=i[t],a=s[1].split(",").map(ez);return"function"==typeof r?r(a):a[r]}function ez(e){return parseFloat(e.trim())}let e$=e=>e===_||e===U,eX=new Set(["x","y","z"]),eU=N.filter(e=>!eX.has(e)),eH=new Set(["bottom","right"]);function eW(e,t,i,s,n,r){let a=parseFloat(e);
11if(!isNaN(a))return a;let{min:o,max:l}=t()[i],c=l-o;return"border-box"===r?c:c-parseFloat(s)-parseFloat(n)}let eQ={width:({width:e,paddingLeft:t="0",paddingRight:i="0",boxSizing:s},n)=>eW(e,n,"x",t,i,s),height:({height:e,paddingTop:t="0",paddingBottom:i="0",boxSizing:s},n)=>eW(e,n,"y",t,i,s),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:i}=t();return parseFloat(e)+(i.max-i.min)},right:({left:e},t)=>{let{x:i}=t();return parseFloat(e)+(i.max-i.min)},x:({transform:e})=>eB(e,"x"),y:({transform:e})=>eB(e,"y")};eQ.translateX=eQ.x,eQ.translateY=eQ.y;let eY=e=>e,eq={},eK=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function eG(e,t){let i=!1,s=!0,n={delta:0,timestamp:0,isProcessing:!1},r=()=>i=!0,a=eK.reduce((e,t)=>(e[t]=function(e){let t=new Set,i=new Set,s=!1,n=!1,r=new Set,a={delta:0,timestamp:0,isProcessing:!1};function o(t){r.has(t)&&(i.add(t),e()),t(a)}let l={schedule:(e,n=!1,a=!1)=>{let o=a&&s?t:i;return n&&r.add(e),o.add(e),e},cancel:e=>{i.delete(e),r.delete(e)},process:e=>{if(a=e,s){n=!0;return}s=!0;let r=t;t=i,i=r,t.forEach(o),t.clear(),s=!1,n&&(n=!1,l.process(e))}};return l}(r),e),{}),{setup:o,read:l,resolveKeyframes:c,preUpdate:u,update:d,preRender:h,render:p,postRender:m}=a,f=()=>{let r=eq.useManualTiming,a=r?n.timestamp:performance.now();i=!1,r||(n.delta=s?1e3/60:Math.max(Math.min(a-n.timestamp,40),1)),n.timestamp=a,n.isProcessing=!0,o.process(n),l.process(n),c.process(n),u.process(n),d.process(n),h.process(n),p.process(n),m.process(n),n.isProcessing=!1,i&&t&&(s=!1,e(f))};return{schedule:eK.reduce((t,r)=>{let o=a[r];return t[r]=(t,r=!1,a=!1)=>(!i&&(i=!0,s=!0,n.isProcessing||e(f)),o.schedule(t,r,a)),t},{}),cancel:e=>{for(let t=0;t<eK.length;t++)a[eK[t]].cancel(e)},state:n,steps:a}}let{schedule:eZ,cancel:eJ,state:e0,steps:e1}=eG("u">typeof requestAnimationFrame?requestAnimationFrame:eY,!0),e2=new Set,e3=!1,e4=!1,e5=!1;
11function e6(){if(e4){let e=[],t=new Set,i=new Set;e2.forEach(s=>{s.needsMeasurement&&(e.push(s),t.add(s.element),eH.has(s.name)&&i.add(s.element))});let s=new Map;i.forEach(e=>{let t,i=(t=[],eU.forEach(i=>{let s=e.getValue(i);if(void 0!==s){let e=s.get(),n=+!!i.startsWith("scale");if(e===n)return;t.push([i,e]),s.set(n)}}),t);i.length&&(s.set(e,i),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=s.get(e);t&&t.forEach(([t,i])=>{e.getValue(t)?.set(i)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}e4=!1,e3=!1,e2.forEach(e=>e.complete(e5)),e2.clear()}function e8(){e2.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(e4=!0)})}class e7{constructor(e,t,i,s,n,r=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=i,this.motionValue=s,this.element=n,this.isAsync=r}scheduleResolve(){this.state="scheduled",this.isAsync?(e2.add(this),e3||(e3=!0,eZ.read(e8),eZ.resolveKeyframes(e6))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:i,motionValue:s}=this;if(null===e[0]){let n=s?.get(),r=e[e.length-1];if(void 0!==n)e[0]=n;else if(i&&t){let s=function(e,t,i){if("string"==typeof e){if(/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)||/^0[^.\s]+$/u.test(e))return parseFloat(e);if(!es.test(e)&&es.test(i))return eE(t,i)}return e??void 0}(i.readValue(t,r),t,r);void 0!==s&&(e[0]=s)}void 0===e[0]&&(e[0]=r),s&&void 0===n&&s.set(e[0])}for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),e2.delete(this)}cancel(){"scheduled"===this.state&&(e2.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let e9=new Set(["auto","none","0"]);class te extends e7{constructor(e,t,i,s,n){super(e,t,i,s,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:i}=this;if(!t||!t.current)return;super.readKeyframes();for(let i=0;i<e.length;i++){let s=e[i];if("string"==typeof s&&eT(s=s.trim())){let n=function e(t,i,s=1){ej(`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,r]=function(e){let t=eC.exec(e);if(!t)return[,];let[,i,s,n]=t;return[`--${i??s}`,n]}(t);if(!n)return;let a=window.getComputedStyle(i).getPropertyValue(n);if(a){let e=a.trim();return/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e)?parseFloat(e):e}return eT(r)?e(r,i,s+1):r}(s,t.current);void 0!==n&&(e[i]=n),i===e.length-1&&(this.finalKeyframe=s)}}if(this.resolveNoneKeyframes(),!eg.has(i)||2!==e.length)return;let[s,n]=e;if("number"==typeof s&&"number"==typeof n)return;let r=eb(s),a=eb(n);if(eA(s)!==eA(n)&&eQ[i]){this.needsMeasurement=!0;return}if(r!==a)if(e$(r)&&e$(a))for(let t=0;t<e.length;t++){let i=e[t];"string"==typeof i&&(e[t]=parseFloat(i))}else eQ[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,i=[];for(let t=0;t<e.length;t++)(null===e[t]||function(e){if("number"==typeof e)return 0===e;if(null===e)return!0;return"none"===e||"0"===e||/^0[^.\s]+$/u.test(e)}(e[t]))&&i.push(t);i.length&&function(e,t,i){let s,n=0;for(;n<e.length&&!s;){let t=e[n];"string"==typeof t&&!e9.has(t)&&function(e){let t=e.toString();return K.test(t)||G.test(t)}(t)&&(s=e[n]),n++}if(s&&i)for(let n of t)e[n]!==s&&(e[n]=eE(i,s))}(e,i,t)}measure(){let{element:e,name:t}=this;return eQ[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:i}=this;if(!e||!e.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let s=t[t.length-1];void 0!==s&&this.motionValue?.jump(s,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let i=t.length-1,s=t[i];t[i]=this.measure(),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),this.removedTransforms?.length&&this.removedTransforms.forEac
11h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let tt=e=>1e3*e;function ti(e,t){-1===e.indexOf(t)&&e.push(t)}function ts(e,t){let i=e.indexOf(t);i>-1&&e.splice(i,1)}class tn{constructor(){this.subscriptions=[]}add(e){return ti(this.subscriptions,e),()=>this.remove(e)}remove(e){ts(this.subscriptions,e)}notify(e,t,i){let s=this.subscriptions.length;if(s)if(1===s)this.subscriptions[0](e,t,i);else for(let n=0;n<s;n++){let s=this.subscriptions[n];s&&s(e,t,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tr(e,t,i){t.startsWith("--")?e.style.setProperty(t,i):e.style[t]=i}function ta(e){let t;return()=>(void 0===t&&(t=e()),t)}let to={};function tl(e,t){let i=ta(e);return()=>to[t]??i()}let tc=tl(()=>void 0!==window.ScrollTimeline,"scrollTimeline"),tu=e=>null!==e;function td(e,{repeat:t,repeatType:i="loop"},s,n=1){let r=e.filter(tu),a=n<0||t&&"loop"!==i&&t%2==1?0:r.length-1;return a&&void 0!==s?s:r[a]}class th{constructor(){this.isResolved=!1}get finished(){return this._finished||(this._finished=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e})),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}}function tp(){t=void 0}let tm={now:()=>(void 0===t&&tm.set(e0.isProcessing||eq.useManualTiming?e0.timestamp:performance.now()),t),set:e=>{t=e,queueMicrotask(tp)}};function tf(e,t){return{kind:e,animation:t,timestamp:tm.now(),frameTimestamp:e0.timestamp,frameIsProcessing:e0.isProcessing}}function ty(e,t,i){let s=globalThis.__MOTION_INSPECT__;if(s)try{s({...tf("animation-start",e),options:i?{...t,...i}:t})}catch{}}let tx=e=>Array.isArray(e)&&"number"==typeof e[0],tg=tl(()=>{try{document.createElement("div").animate({opacity:0}
11,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),tv=(e,t,i=10)=>{let s="",n=Math.max(Math.round(t/i),2);for(let t=0;t<n;t++)s+=Math.round(1e4*e(t/(n-1)))/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},tb=([e,t,i,s])=>`cubic-bezier(${e}, ${t}, ${i}, ${s})`,tw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tb([0,.65,.55,1]),circOut:tb([.55,0,1,.45]),backIn:tb([.31,.01,.66,-.59]),backOut:tb([.33,1.53,.69,.99])};function tj(e){return"function"==typeof e&&"applyToOptions"in e}class tk extends th{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:t,name:i,keyframes:s,pseudoElement:n,allowFlatten:r=!1,finalKeyframe:a,onComplete:o}=e;this.isPseudoElement=!!n,this.allowFlatten=r,this.options=e,ej(e.type);const l=function({type:e,...t}){return tj(e)&&tg()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,i,{delay:s=0,duration:n=300,repeat:r=0,repeatType:a="loop",ease:o="easeOut",times:l}={},c){let u={[t]:i};l&&(u.offset=l);let d=function e(t,i){if(t)return"function"==typeof t?tg()?tv(t,i):"ease-out":tx(t)?tb(t):Array.isArray(t)?t.map(t=>e(t,i)||tw.easeOut):tw[t]}(o,n);Array.isArray(d)&&(u.easing=d);let h={delay:s,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:r+1,direction:"reverse"===a?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(u,h)}(t,i,s,l,n),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!n){let e=td(s,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(e),tr(t,i,e),this.animation.cancel()}o?.(),this.notifyFinished()},ty(this,e,l)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch(e){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"!==e&&"finished"!==e&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){return Number(this.animation.effect?.getComputedTiming?.().duration||0)/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(e){let t=null!==this.finishedTime;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=tt(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:t,rangeEnd:i,observe:s}){return(this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,e&&tc())?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),i&&(this.animation.rangeEnd=i),eY):s(this)}}let tS=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),{schedule:tP}=eG(queueMicrotask,!1),tT=(e,t)=>t?1e3/t*e:0,tN;class tA{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=tm.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=tm.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){var i;return"change"===e?this.onChangeSubscribe(t):((i=this.events)[e]||(i[e]=new tn)).add(t)}onChangeSubscribe(e){let{events:t}=this;return t.change||this.changeSubscriber?(t.change||(t.change=new tn,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)):this.changeSubscriber=e,()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){eZ.read(()=>{this.changeSubscriber||this.events.change?.getSize()||this.stop()})}clearListeners(){for(let e in this.changeSubscriber=void 0,this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,i){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-i}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return tN&&tN.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=tm.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tT(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{let i;this.hasAnimated=!0;let s=!1;i=e(()=>{s=!0,this.events.animationComplete?.notify(),this.animation===i&&this.clearAnimation(),t()}),s||(this.animation=i),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function tC(e,t){return new tA(e,t)}let t_=new WeakMap;function tE(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function tM(e){return"string"==typeof e||Array.isArray(e)}let tV=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tR=["initial",...tV];function tD(e){if(tE(e.animate))return!0;for(let t=0;t<tR.length;t++)if(tM(e[tR[t]]))return!0;return!1}function tL(e){return!!(tD(e)||e.variants)}let tO={current:null},tF={current:!1},tI="u">typeof window;function tB(e){let t=[{},{}];
11return e?.values.forEach((e,i)=>{t[0][i]=e.get(),t[1][i]=e.getVelocity()}),t}function tz(e,t,i,s){if("function"==typeof t){let[n,r]=tB(s);t=t(void 0!==i?i:e.custom,n,r)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,r]=tB(s);t=t(void 0!==i?i:e.custom,n,r)}return t}let t$=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],tX={};class tU{scrapeMotionValuesFromProps(e,t,i){return{}}constructor({parent:e,props:t,presenceContext:i,reducedMotionConfig:s,skipAnimations:n,blockInitialAnimation:r,visualState:a},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=e7,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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=tm.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eZ.render(this.render,!1,!0))};const{latestValues:l,renderState:c}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=t.initial?{...l}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=i,this.depth=e?e.depth+1:0,this.reducedMotionConfig=s,this.skipAnimationsConfig=n,this.options=o,this.blockInitialAnimation=!!r,this.isControllingVariants=tD(t),this.isVariantNode=tL(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==l[e]&&ex(t)&&t.set(l[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,t_.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(tF.current||function(){if(tF.current=!0,tI)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>tO.current=e.matches;e.addEventListener("change",t),t()}else tO.current=!1}(),this.shouldReduceMotion=tO.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){for(let e in this.projection&&this.projection.unmount(),eJ(this.notifyUpdate),eJ(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this),this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let i;if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&tS.has(e)&&this.current instanceof HTMLElement){let{factory:i,keyframes:s,times:n,ease:r,duration:a}=t.accelerate,o=new tk({element:this.current,name:e,keyframes:s,times:n,ease:r,duration:tt(a)}),l=i(o);this.valueSubscriptions.set(e,()=>{l(),o.cancel()});return}let s=A.has(e);s&&this.onBindTransform&&this.onBindTransform();let n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&eZ.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),i&&i()})}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 tX){let t=tX[e];if(!t)continue;let{isEnabled:i,Feature:s}=t;if(!this.features[e]&&s&&i(this.props)&&(this.features[e]=new s(this)),this.features[e]){let t=this.features[e];
11t.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):ey()}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<t$.length;t++){let i=t$[t];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let s=e["on"+i];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=function(e,t,i){for(let s in t){let n=t[s],r=i[s];if(ex(n))e.addValue(s,n);else if(ex(r))e.addValue(s,tC(n,{owner:e}));else if(r!==n)if(e.hasValue(s)){let t=e.getValue(s);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(s);e.addValue(s,tC(void 0!==t?t:n,{owner:e}))}}for(let s in i)void 0===t[s]&&e.removeValue(s);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let i=this.values.get(e);t!==i&&(i&&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 i=this.values.get(e);return void 0===i&&void 0!==t&&(i=tC(null===t?void 0:t,{owner:this}),this.addValue(e,i)),i}readValue(e,t){let i=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];if(null!=i){let s,n;"string"==typeof i&&(s=i,/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(s)||(n=i,/^0[^.\s]+$/u.test(n)))?i=parseFloat(i):"number"!=typeof i&&!es.test(i)&&es.test(t)&&(i=eE(e,t)),this.setBaseTarget(e,ex(i)?i.get():i)}return ex(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let t,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let s=tz(this.props,i,this.presenceContext?.custom);s&&(t=s[e])}if(i&&void 0!==t)return t;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||ex(s)?void 0!==this.initialValues[e]&&void 0===t?void 0:this.baseTarget[e]:s}on(e,t){return this.events[e]||(this.events[e]=new tn),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){tP.render(this.render)}}class tH extends tU{constructor(){super(...arguments),this.KeyframeResolver=te}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let i=e.style;return i?i[t]:void 0}removeValueFromRenderState(e,{vars:t,style:i}){delete t[e],delete i[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;ex(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}function tW(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let tQ=(e,t)=>t&&"number"==typeof e?t.transform(e):e,tY={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},tq=N.length;function tK(e,t,i){let{style:s,vars:n,transformOrigin:r}=e,a=!1,o=!1;for(let e in t){let i=t[e];if(A.has(e)){a=!0;continue}if(eS(e)){n[e]=i;continue}{let t=tQ(i,eu[e]);e.startsWith("origin")?(o=!0,r[e]=t):s[e]=t}}if(!t.transform&&(a||i?s.transform=function(e,t,i){let s="",n=!0;for(let r=0;r<tq;r++){let a=N[r],o=e[a];if(void 0===o)continue;let l=!0;if("number"==typeof o)l=o===+!!a.startsWith("scale");else{let e=parseFloat(o);l=a.startsWith("scale")?1===e:0===e}
11if(!l||i){let e=tQ(o,eu[a]);if(!l){n=!1;let t=tY[a]||a;s+=`${t}(${e}) `}i&&(t[a]=e)}}let r=e.pathRotation;return r&&(n=!1,s+=`rotate(${tQ(r,eu.pathRotation)}) `),s=s.trim(),i?s=i(t,n?"":s):n&&(s="none"),s}(t,e.transform,i):s.transform&&(s.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:i=0}=r;s.transformOrigin=`${e} ${t} ${i}`}}let tG={offset:"stroke-dashoffset",array:"stroke-dasharray"},tZ={offset:"strokeDashoffset",array:"strokeDasharray"},tJ=["transform","opacity","offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function t0(e,{attrX:t,attrY:i,attrScale:s,pathLength:n,pathSpacing:r=1,pathOffset:a=0,...o},l,c,u){if(tK(e,o,c),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h}=e;for(let e of tJ)void 0!==d[e]&&(h[e]=d[e],delete d[e]);(h.transform||d.transformOrigin)&&(h.transformOrigin=d.transformOrigin??"50% 50%",delete d.transformOrigin),h.transform&&(h.transformBox=u?.transformBox??"fill-box",delete d.transformBox),void 0!==t&&(d.x=t),void 0!==i&&(d.y=i),void 0!==s&&(d.scale=s),void 0!==n&&function(e,t,i=1,s=0,n=!0){e.pathLength=1;let r=n?tG:tZ;e[r.offset]=`${-s}`,e[r.array]=`${t} ${i}`}(d,n,r,a,!1)}let t1=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"]),t2=e=>"string"==typeof e&&"svg"===e.toLowerCase();function t3(e,{style:t,vars:i},s,n){let r,a=e.style;for(r in t)a[r]=t[r];for(r in n?.applyProjectionStyles(a,s),i)a.setProperty(r,i[r])}let t4=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function t5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let t6={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e)if(!U.test(e))return e;else e=parseFloat(e);let i=t5(e,t.target.x),s=t5(e,t.target.y);return`${i}% ${s}%`}},t8=(e,t,i)=>e+(t-e)*i,t7={borderRadius:{...t6,applyTo:[...t4]},borderTopLeftRadius:t6,borderTopRightRadius:t6,borderBottomLeftRadius:t6,borderBottomRightRadius:t6,boxShadow:{correct:(e,{treeScale:t,projectionDelta:i})=>{let s=es.parse(e);if(s.length>5)return e;let n=es.createTransformer(e),r=+("number"!=typeof s[0]),a=i.x.scale*t.x,o=i.y.scale*t.y;s[0+r]/=a,s[1+r]/=o;let l=t8(a,o,.5);return"number"==typeof s[2+r]&&(s[2+r]/=l),"number"==typeof s[3+r]&&(s[3+r]/=l),n(s)}}};function t9(e,{layout:t,layoutId:i}){return A.has(e)||e.startsWith("origin")||(t||void 0!==i)&&(!!t7[e]||"opacity"===e)}function ie(e,t,i){let s=e.style,n=t?.style,r={};if(!s)return r;for(let t in s)(ex(s[t])||n&&ex(n[t])||t9(t,e)||i?.getValue(t)?.liveStyle!==void 0)&&(r[t]=s[t]);return r}function it(e,t,i){let s=ie(e,t,i);for(let i in e)(ex(e[i])||ex(t[i]))&&(s[-1!==N.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=e[i]);return s}class ii extends tH{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ey}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(A.has(t)){let e=eh(t);return e&&e.default||0}if(tJ.includes(t)){let i=getComputedStyle(e)[t];if("string"==typeof i&&i)return i.trim()}return t=t1.has(t)?t:tW(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,i){return it(e,t,i)}build(e,t,i){t0(e,t,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(e,t,i,s){for(let i in t3(e,t,void 0,s),t.attrs)e.setAttribute(t1.has(i)?i:tW(i),t.attrs[i])}mount(e){this.isSVGTag=t2(e.tagName),super.mount(e)}}function is({top:e,left:t,right:i,bottom:s}){return{x:{min:t,max:i},y:{min:e,max:s}}}function ir(e){return void 0===e||1===e}function ia({scale:e,scaleX:t,scaleY:i}){return!ir(e)||!ir(t)||!ir(i)}function io(e){return ia(e)||il(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function il(e){var t,i;return(t=e.x)&&"0%"!==t||(i=e.y)&&"0%"!==i}function ic(e,t,i,s,n){return void 0!==n&&(e=s+n*(e-s)),s+i*(e-s)+t}function iu(e,t=0,i=1,s,n){e.min=ic(e.min,t,i,s,n),e.max=ic(e.max,t,i,s,n)}function id(e,{x:t,y:i}){iu(e.x,t.translate,t.scale,t.originPoint),iu(e.y,i.translate,i.scale,i.originPoint)}function ih(e,t){e.min+=t,e.max+=t}function ip(e,t,i,s,n=.5){let r=t8(e.min,e.max,n);iu(e,t,i,r,s)}function im(e,t){return"string"==typeof e?parseFloat(e)/100*(t.max-t.min):e}function iy(e,t,i){let s=i??e;ip(e.x,im(t.x,s.x),t.scaleX,t.scale,t.originX),ip(e.y,im(t.y,s.y),t.scaleY,t.scale,t.originY)}function ix(e,t){return is(function(e,t){if(!t)return e;let i=t({x:e.left,y:e.top}),s=t({x:e.right,y:e.bottom});return{top:i.y,left:i.x,bottom:s.y,right:s.x}}(e.getBoundingClientRect(),t))}class ig extends tH{constructor(){super(...arguments),this.type="html",this.renderInstance=t3}mount(e){ej(e.style),super.mount(e)}readValueFromInstance(e,t){if(A.has(t))return this.projection?.isProjecting?eI(t):((e,t)=>{let{transform:i="none"}=getComputedStyle(e);return eB(i,t)})(e,t);{let i=window.getComputedStyle(e),s=(eS(t)?i.getPropertyValue(t):i[t])||0;return"string"==typeof s?s.trim():s}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ix(e,t)}build(e,t,i){tK(e,t,i.transformTemplate)}scrapeMotionValuesFromProps(e,t,i){return ie(e,t,i)}}let iv=["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 ib(e){if("string"!=typeof e||e.includes("-"));else if(iv.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let iw=(0,r.createContext)({strict:!1}),ij=(0,r.createContext)({});function ik(e){return Array.isArray(e)?e.join(" "):e}let iS=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function iP(e,t,i){for(let s in t)ex(t[s])||t9(s,i)||(e[s]=t[s])}let iT=()=>({...iS(),attrs:{}}),iN=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","propagate","ignoreStrict","viewport"]);function iA(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||iN.has(e)}function iC(e){return ex(e)?e.get():e}let i_=e=>(t,i)=>{let s=(0,r.useContext)(ij),n=(0,r.useContext)(d),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},i,s,n){return{latestValues:function(e,t,i,s){let n={},r=s(e,{});for(let e in r)n[e]=iC(r[e]);let{initial:a,animate:o}=e,l=tD(e),c=tL(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===o&&(o=t.animate));let u=!!i&&!1===i.initial,d=(u=u||!1===a)?o:a;if(d&&"boolean"!=typeof d&&!tE(d)){let t=Array.isArray(d)?d:[d];for(let i=0;i<t.length;i++){let s=tz(e,t[i]);if(s){let{transitionEnd:e,transition:t,...i}=s;for(let e in i){let t=i[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}null!==t&&(n[e]=t)}for(let t in e)n[t]=e[t]}}}return n}(i,s,n,e),renderState:t()}})(e,t,s,n);return i?a():c(a)},iE=i_({scrapeMotionValuesFromProps:ie,createRenderState:iS}),iM=i_({scrapeMotionValuesFromProps:it,createRenderState:iT}),iV={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"]},iR=!1;function iD(){return!function(){if(iR)return;let e={};for(let t in iV)e[t]={isEnabled:e=>iV[t].some(t=>!!e[t])};tX=e,iR=!0}(),tX}let iL=Symbol.for("motionComponentSymbol"),iO="data-"+tW("framerAppearId"),iF=(0,r.createContext)({});function iI(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function iB(e,{forwardMotionProps:t=!1,type:i}={},s,a){s&&function(e){let t=iD();for(let i in e)t[i]={...t[i],...e[i]};tX=t}(s);let o=i?"svg"===i:ib(e),c=o?iM:iE;function h(i,s){var h;let p,m,y,x={...(0,r.useContext)(f),...i,layoutId:function({layoutId:e}){let t=(0,r.useContext)(l).id;return t&&void 0!==e?t+"-"+e:e}(i)},{isStatic:g,isValidProp:v}=x,b=function(e){let{initial:t,animate:i}=function(e,t){if(tD(e)){let{initial:t,animate:i}=e;return{initial:!1===t||tM(t)?t:void 0,animate:tM(i)?i:void 0}}return!1!==e.inherit?t:{}}(e,(0,r.useContext)(ij));return(0,r.useMemo)(()=>({initial:t,animate:i}),[ik(t),ik(i)])}(i),w=c(i,g);
11if(!g&&"u">typeof window){(0,r.useContext)(iw).strict;let t=function(e){let{drag:t,layout:i}=iD();if(!t&&!i)return{};let s={...t,...i};return{MeasureLayout:t?.isEnabled(e)||i?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}(x);p=t.MeasureLayout,b.visualElement=function(e,t,i,s,n,a){let{visualElement:o}=(0,r.useContext)(ij),l=(0,r.useContext)(iw),c=(0,r.useContext)(d),h=(0,r.useContext)(f),p=h.reducedMotion,m=h.skipAnimations,y=(0,r.useRef)(null),x=(0,r.useRef)(!1);s=s||l.renderer,!y.current&&s&&(y.current=s(e,{visualState:t,parent:o,props:i,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:p,skipAnimations:m,isSVG:a}),x.current&&y.current&&(y.current.manuallyAnimateOnMount=!0));let g=y.current,v=(0,r.useContext)(iF);g&&!g.projection&&n&&("html"===g.type||"svg"===g.type)&&function(e,t,i,s){let{layoutId:n,layout:r,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:c,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new i(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:r,alwaysMeasureLayout:!!a||o&&iI(o),visualElement:e,animationType:"string"==typeof r?r:"both",initialPromotionConfig:s,crossfade:d,layoutScroll:l,layoutRoot:c,layoutAnchor:u})}(y.current,i,n,v);let b=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{g&&b.current&&g.update(i,c)});let w=i[iO],j=(0,r.useRef)(!!w&&"u">typeof window&&!window.MotionHandoffIsComplete?.(w)&&window.MotionHasOptimisedAnimation?.(w));return u(()=>{x.current=!0,g&&(b.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),j.current&&g.animationState&&g.animationState.animateChanges())}),(0,r.useEffect)(()=>{g&&(!j.current&&g.animationState&&g.animationState.animateChanges(),j.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(w)}),j.current=!1),g.enteringChildren=void 0)}),g}(e,w,x,a,t.ProjectionNode,o)}return(0,n.jsxs)(ij.Provider,{value:b,children:[p&&b.visualElement?(0,n.jsx)(p,{visualElement:b.visualElement,...x}):null,function(e,t,i,{latestValues:s},n,a=!1,o,l){let c=(o??ib(e)?function(e,t,i,s){let n=(0,r.useMemo)(()=>{let i=iT();return t0(i,t,t2(s),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){let t={};iP(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let i,s,n={},a=(i=e.style||{},iP(s={},i,e),Object.assign(s,function({transformTemplate:e},t){return(0,r.useMemo)(()=>{let i=iS();return tK(i,t,e),Object.assign({},i.vars,i.style)},[t])}(e,t)),s);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=a,n})(t,s,n,e),u=function(e,t,i,s){let n={};for(let r in e)("values"!==r||"object"!=typeof e.values)&&!ex(e[r])&&((r.startsWith("on")?!iA(r):s?.(r)??!iA(r))||!0===i&&iA(r)||!t&&!iA(r)||e.draggable&&r.startsWith("onDrag"))&&(n[r]=e[r]);return n}(t,"string"==typeof e,a,l),d=e!==r.Fragment?{...u,...c,ref:i}:{},{children:h}=t,p=(0,r.useMemo)(()=>ex(h)?h.get():h,[h]);return(0,r.createElement)(e,{...d,children:p})}(e,i,(h=b.visualElement,m=(0,r.useRef)(s),(0,r.useInsertionEffect)(()=>{m.current=s}),y=(0,r.useRef)(null),(0,r.useCallback)(e=>{e&&w.onMount?.(e),h&&(e?h.mount(e):h.unmount());let t=m.current;if("function"==typeof t)if(e){let i=t(e);"function"==typeof i&&(y.current=i)}else y.current?(y.current(),y.current=null):t(e);else t&&(t.current=e)},[h])),w,g,t,o,v)]})}h.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let p=(0,r.forwardRef)(h);return p[iL]=e,p}class iz{constructor(e){this.isMounted=!1,this.node=e}update(){}}function i$(e,t,i){let s=e.getProps();return tz(s,t,void 0!==i?i:s.custom,e)}function iX(e,t){let i=e?.[t]??e?.default??e;return i!==e?P(i,e):i}let iU=e=>Array.isArray(e);function iH(e,t){let i=e.getValue("willChange");if(ex(i)&&i.add)return i.add(t);if(!i&&eq.WillChange){let i=new eq.WillChange("auto");
11e.addValue("willChange",i),i.add(t)}}let iW=(...e)=>e.reduce((e,t)=>i=>t(e(i)));function iQ(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function iY(e,t){return i=>i>0?t:e}let iq=(e,t,i)=>{let s=e*e,n=i*(t*t-s)+s;return n<0?0:Math.sqrt(n)},iK=[B,I,Y];function iG(e){let t=iK.find(t=>t.test(e));if(!t)return ew(`'${e}' is not an animatable color. Use the equivalent color code instead.`),!1;let i=t.parse(e);return t===Y&&(i=function({hue:e,saturation:t,lightness:i,alpha:s}){e/=360,i/=100;let n=0,r=0,a=0;if(t/=100){let s=i<.5?i*(1+t):i+t-i*t,o=2*i-s;n=iQ(o,s,e+1/3),r=iQ(o,s,e),a=iQ(o,s,e-1/3)}else n=r=a=i;return{red:Math.round(255*n),green:Math.round(255*r),blue:Math.round(255*a),alpha:s}}(i)),i}let iZ=(e,t)=>{let i=iG(e),s=iG(t);if(!i||!s)return iY(e,t);let n={...i};return e=>(n.red=iq(i.red,s.red,e),n.green=iq(i.green,s.green,e),n.blue=iq(i.blue,s.blue,e),n.alpha=t8(i.alpha,s.alpha,e),I.transform(n))},iJ=new Set(["none","hidden"]);function i0(e,t){return i=>t8(e,t,i)}function i1(e){return"number"==typeof e?i0:"string"==typeof e?eT(e)?iY:q.test(e)?iZ:i4:Array.isArray(e)?i2:"object"==typeof e?q.test(e)?iZ:i3:iY}function i2(e,t){let i=[...e],s=i.length,n=e.map((e,i)=>i1(e)(e,t[i]));return e=>{for(let t=0;t<s;t++)i[t]=n[t](e);return i}}function i3(e,t){let i={...e,...t},s={};for(let n in i)void 0!==e[n]&&void 0!==t[n]&&(s[n]=i1(e[n])(e[n],t[n]));return e=>{for(let t in s)i[t]=s[t](e);return i}}let i4=(e,t)=>{let i=es.createTransformer(t),s=et(e),n=et(t);if(!(s.indexes.var.length===n.indexes.var.length&&s.indexes.color.length===n.indexes.color.length&&s.indexes.number.length>=n.indexes.number.length))return ew(`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.`),iY(e,t);if(iJ.has(e)&&!n.values.length||iJ.has(t)&&!s.values.length)return iJ.has(e)?i=>i<=0?e:t:i=>i>=1?t:e;return iW(i2(function(e,t){let i=[],s={color:0,var:0,number:0};for(let n=0;n<t.values.length;n++){let r=t.types[n],a=e.indexes[r][s[r]],o=e.values[a]??0;i[n]=o,s[r]++}return i}(s,n),n.values),i)},i5=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function i6(e,t,i){if("number"==typeof e&&"number"==typeof t&&"number"==typeof i)return t8(e,t,i);if("string"==typeof e&&"string"==typeof t){let i=function(e,t){let i=i5.exec(e);if(!i)return;let s=i5.exec(t);if(!s||i[2]!==s[2])return;let n=i[2],r=parseFloat(i[1]),a=parseFloat(s[1]);return e=>V(t8(r,a,e))+n}(e,t);if(i)return i}return i1(e)(e,t)}let i8=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eZ.update(t,e),stop:()=>eJ(t),now:()=>e0.isProcessing?e0.timestamp:tm.now()}};function i7(e,t=50,i=2e4,s){let n=0,r=e.next(n);for(s?.push(r.value);!r.done&&n<i;)n+=t,r=e.next(n),s?.push(r.value);return n>=i?1/0:n}let i9=.01,se=2,st=.005,si=.5;function ss(e,t){return e*Math.sqrt(1-t*t)}let sn=["duration","bounce"],sr=["stiffness","damping","mass"];function sa(e,t){return t.some(t=>void 0!==e[t])}function so(e=.3,t=.3){let i,s,n,r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,a=r.keyframes[0],o=r.keyframes[r.keyframes.length-1],l={done:!1,value:a},{stiffness:c,damping:u,mass:d,duration:h,velocity:p,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!sa(e,sr)&&sa(e,sn))if(t.velocity=0,e.visualDuration){let i=2*Math.PI/(1.2*e.visualDuration),s=i*i,n=2*C(.05,1,1-(e.bounce||0))*Math.sqrt(s);t={...t,mass:1,stiffness:s,damping:n}}else{let i=function({duration:e=800,bounce:t=.3,velocity:i=0,mass:s=1}){let n,r;ew(tt(10));let a=1-t;a=C(.05,1,a),e=C(.01,10,e/1e3),a<1?(n=t=>{let s=t*a,n=s*e;return .001-(s-i)/ss(t,a)*Math.exp(-n)},r=t=>{let s=t*a*e,r=a*a*t*t*e,o=Math.exp(-s),l=ss(t*t,a);return(s*i+i-r)*o*(-n(t)+.001>0?-1:1)/l}):(n=t=>-.001+Math.exp(-t*e)*((t-i)*e+1),r=t=>e*e*(i-t)*Math.exp(-t*e));let o=function(e,t,i){let s=i;for(let i=1;i<12;i++)s-=e(s)/t(s);return s}(n,r,5/e);if(e=tt(e),isNaN(o))return{stiffness:100,damping:10,duration:e};{let t=o*o*s;
11return{stiffness:t,damping:2*a*Math.sqrt(s*t),duration:e}}}({...e,velocity:0});(t={...t,...i,mass:1}).isResolvedFromDuration=!0}return t}({...r,velocity:-((r.velocity||0)/1e3)}),f=u/(2*Math.sqrt(c*d)),y=Math.sqrt(c/d)/1e3,x=f*y,g={target:o,delta:o-a,velocity:p||0,restSpeed:0,restDelta:0},v=()=>{let e=5>Math.abs(g.delta);g.restSpeed=r.restSpeed||(e?i9:se),g.restDelta=r.restDelta||(e?st:si)};if(v(),f<1){let e=ss(y,f),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};n=()=>{t.A=(g.velocity+x*g.delta)/e,t.sinC=x*t.A+g.delta*e,t.cosC=x*g.delta-t.A*e};let r=i=>{i!==t.t&&(t.t=i,t.env=Math.exp(-x*i),t.sin=Math.sin(e*i),t.cos=Math.cos(e*i))};i=e=>(r(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),s=e=>(r(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(1===f){i=e=>g.target-Math.exp(-y*e)*(g.delta+(g.velocity+y*g.delta)*e);let e={C:0};n=()=>{e.C=g.velocity+y*g.delta},s=t=>Math.exp(-y*t)*(y*e.C*t-g.velocity)}else{let e=y*Math.sqrt(f*f-1);i=t=>{let i=Math.exp(-x*t),s=Math.min(e*t,300);return g.target-i*((g.velocity+x*g.delta)*Math.sinh(s)+e*g.delta*Math.cosh(s))/e};let t={P:0,sinh:0,cosh:0};n=()=>{t.P=(g.velocity+x*g.delta)/e,t.sinh=x*t.P-g.delta*e,t.cosh=x*g.delta-t.P*e},s=i=>{let s=Math.exp(-x*i),n=Math.min(e*i,300);return s*(t.sinh*Math.sinh(n)+t.cosh*Math.cosh(n))}}n();let b=!sa(r,sr)&&sa(r,sn),w=m&&h||null,j={calculatedDuration:w,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=b?0:-(t/1e3),r.restSpeed&&r.restDelta||v(),j.calculatedDuration=w,l.done=!1,n()},velocity:e=>tt(s(e)),next:e=>{let t=i(e);return m?l.done=e>=h:l.done=Math.abs(tt(s(e)))<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta,l.value=l.done?g.target:t,l},toString:()=>{let e=Math.min(i7(j),2e4),t=tv(t=>j.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return j}function sl({keyframes:e,velocity:t=0,power:i=.8,timeConstant:s=325,bounceDamping:n=10,bounceStiffness:r=500,modifyTarget:a,min:o,max:l,restDelta:c=.5,restSpeed:u}){let d,h,p=e[0],m={done:!1,value:p},f=i*t,y=p+f,x=void 0===a?y:a(y);x!==y&&(f=x-p);let g=e=>-f*Math.exp(-e/s),v=e=>{let t=g(e);m.done=Math.abs(t)<=c,m.value=m.done?x:x+t},b=e=>{let t;if((t=m.value)<o||t>l){var i;d=e,h=so({keyframes:[m.value,(i=m.value,void 0===o?l:void 0===l||Math.abs(o-i)<Math.abs(l-i)?o:l)],velocity:-g(e)/s*1e3,damping:n,stiffness:r,restDelta:c,restSpeed:u})}};return b(0),{calculatedDuration:null,next:e=>{let t=!1;return(h||void 0!==d||(t=!0,v(e),b(e)),void 0!==d&&e>=d)?h.next(e-d):(t||v(e),m)}}}so.applyToOptions=e=>{let t=function(e,t=100,i){let s=i({...e,keyframes:[0,t]}),n=Math.min(i7(s),2e4);return{type:"keyframes",ease:e=>s.next(n*e).value/t,duration:n/1e3}}(e,100,so);return e.ease=t.ease,e.duration=tt(t.duration),e.type="keyframes",e};let sc=(e,t,i)=>(((1-3*i+3*t)*e+(3*i-6*t))*e+3*t)*e;function su(e,t,i,s){return e===t&&i===s?eY:n=>0===n||1===n?n:sc(function(e,t,i,s,n){let r,a,o=0;do(r=sc(a=t+(i-t)/2,s,n)-e)>0?i=a:t=a;while(Math.abs(r)>1e-7&&++o<12)return a}(n,0,1,e,i),t,s)}let sd=su(.42,0,1,1),sh=su(0,0,.58,1),sp=su(.42,0,.58,1),sm=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,sf=e=>t=>1-e(1-t),sy=su(.33,1.53,.69,.99),sx=sf(sy),sg=sm(sx),sv=e=>e>=1?1:(e*=2)<1?.5*sx(e):.5*(2-Math.pow(2,-10*(e-1))),sb=e=>1-Math.sin(Math.acos(e)),sw=sf(sb),sj=sm(sb),sk={linear:eY,easeIn:sd,easeInOut:sp,easeOut:sh,circIn:sb,circInOut:sj,circOut:sw,backIn:sx,backInOut:sg,backOut:sy,anticipate:sv},sS=e=>{if(tx(e)){ej(e.length);let[t,i,s,n]=e;return su(t,i,s,n)}return"string"==typeof e?(ej(sk[e],`Invalid easing type '${e}'`),sk[e]):e},sP=(e,t,i)=>{let s=t-e;return s?(i-e)/s:1};function sT({duration:e=300,keyframes:t,times:i,ease:s="easeInOut"}){var n;let r,a=Array.isArray(s)&&"number"!=typeof s[0]?s.map(sS):sS(s),o={done:!1,value:t[0]};if(2===t.length&&!Array.isArray(a)&&(!i||2!==i.length||0===i[0]&&1===i[1])){let[i,s]=t,n=i===s?void 0:(eq.mix||i6)(i,s);return{calculatedDuration:e,next:t=>(o.value=n?n(a(e>0?C(0,1,t/e):1)):s,o.done=t>=e,o)}}let l=function(e,t,{clamp:i=!0,ease:s,mixer:n}={}){let r=e.length;if(ej(t.length),1===r)return()=>t[0];if(2===r&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[r-1]&&(e=[...e].reverse(),t=[...t].reverse());let o=function(e,t,i){let s=[],n=i||eq.mix||i6,r=e.length-1;for(let i=0;i<r;i++){let r=n(e[i],e[i+1]);t&&(r=iW(Array.isArray(t)?t[i]||eY:t,r)),s.push(r)}return s}(t,s,n),l=o.length,c=i=>{if(a&&i<e[0])return t[0];let s=0;if(l>1)for(;s<e.length-2&&!(i<e[s+1]);s++);let n=sP(e[s],e[s+1],i);return o[s](n)};return i?t=>c(C(e[0],e[r-1],t)):c}
11((n=i&&i.length===t.length?i:(!function(e,t){let i=e[e.length-1];for(let s=1;s<=t;s++){let n=sP(0,t,s);e.push(t8(i,1,n))}}(r=[0],t.length-1),r),n.map(t=>t*e)),t,{ease:Array.isArray(a)?a:t.map(()=>a||sp).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=l(t),o.done=t>=e,o)}}let sN={decay:sl,inertia:sl,tween:sT,keyframes:sT,spring:so};function sA(e){"string"==typeof e.type&&(e.type=sN[e.type])}let sC=e=>e/100;class s_ extends th{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==tm.now()&&this.tick(tm.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause(),ty(this,this.options)}initAnimation(){let{options:e}=this;sA(e);let{type:t=sT,repeat:i=0,repeatDelay:s=0,repeatType:n,velocity:r=0}=e,{keyframes:a}=e,o=t||sT;o!==sT&&"number"!=typeof a[0]&&(this.mixKeyframes=iW(sC,i6(a[0],a[1])),a=[0,100]);let l=o(a===e.keyframes?e:{...e,keyframes:a});"mirror"===n&&(this.mirroredGenerator=o({...e,keyframes:[...a].reverse(),velocity:-r})),null===l.calculatedDuration&&(l.calculatedDuration=i7(l));let{calculatedDuration:c}=l;this.calculatedDuration=c,this.resolvedDuration=c+s,this.totalDuration=this.resolvedDuration*(i+1)-s,this.generator=l}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let i,{generator:s,totalDuration:n,mixKeyframes:r,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:l}=this;if(null===this.startTime)return s.next(0);let{delay:c=0,keyframes:u,repeat:d,repeatType:h,repeatDelay:p,type:m,onUpdate:f,finalKeyframe:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-n/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let x=this.currentTime-c*(this.playbackSpeed>=0?1:-1),g=this.playbackSpeed>=0?x<0:x>n;this.currentTime=Math.max(x,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let v=this.currentTime,b=s;if(d){let e=Math.min(this.currentTime,n)/o,t=Math.floor(e),i=e%1;!i&&e>=1&&(i=1),1===i&&t--,(t=Math.min(t,d+1))%2&&("reverse"===h?(i=1-i,p&&(i-=p/o)):"mirror"===h&&(b=a)),v=C(0,1,i)*o}g?(this.delayState.value=u[0],i=this.delayState):i=b.next(v),r&&!g&&(i.value=r(i.value));let{done:w}=i;g||null===l||(w=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let j=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return j&&m!==sl&&(i.value=td(u,this.options,y,this.speed)),f&&f(i.value),j&&this.finish(),i}then(e,t){return this.finished.then(e,t)}get duration(){return this.calculatedDuration/1e3}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+e/1e3}get time(){return this.currentTime/1e3}set time(e){e=tt(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return function(e,t,i=0){var s,n;let r;return t<=0?i:e.velocity?e.velocity(t):(s=t=>e.next(t).value,n=e.next(t).value,tT(n-s(r=Math.max(t-5,0)),t-r))}(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(tm.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=this.currentTime/1e3)}play(){if(this.isStopped)return;let{driver:e=i8,startTime:t}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),this.options.onPlay?.();let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=t??i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tm.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),e.observe(this)}}let sE={anticipate:sv,backInOut:sg,circInOut:sj};class sM extends tk{constructor(e){!function(e){"string"==typeof e.ease&&e.ease in sE&&(e.ease=sE[e.ease])}(e),sA(e),super(e),void 0!==e.startTime&&!1!==e.autoplay&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:i,onComplete:s,element:n,...r}=this.options;if(!t)return;if(void 0!==e)return void t.set(e);let a=new s_({...r,autoplay:!1}),o=Math.max(10,tm.now()-this.startTime),l=C(0,10,o-10),c=a.sample(o).value,{name:u}=this.options;n&&u&&tr(n,u,c),t.setWithVelocity(a.sample(Math.max(0,o-l)).value,c,l),a.stop()}}let sV=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(es.test(e)||"0"===e)&&!e.startsWith("url("));function sR(e){e.duration=0,e.type="keyframes"}
11let sD=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/,sL=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),sO=ta(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class sF extends th{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tm.now();const{keyframes:t,name:i,motionValue:s,element:n}=e;e.autoplay??(e.autoplay=!0),e.delay??(e.delay=0),e.type??(e.type="keyframes"),e.repeat??(e.repeat=0),e.repeatDelay??(e.repeatDelay=0),e.repeatType??(e.repeatType="loop");const r=n?.KeyframeResolver||e7;this.keyframeResolver=new r(t,(t,i,s)=>this.onKeyframesResolved(t,i,e,!s),i,s,n),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,i,s){let n;this.keyframeResolver=void 0;let{name:r,type:a,velocity:o,delay:l,isHandoff:c,onUpdate:u}=i;this.resolvedAt=tm.now();let d=!0;!function(e,t,i,s){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let r=e[e.length-1],a=sV(n,t),o=sV(r,t);return a&&o?function(e){let t=e[0];if(1===e.length)return!0;for(let i=0;i<e.length;i++)if(e[i]!==t)return!0}(e)||("spring"===i||tj(i))&&s:(a!==o&&ew(`You are trying to animate ${t} from "${n}" to "${r}". "${a?r:n}" is not an animatable value.`),!1)}(e,r,a,o)&&(d=!1,(eq.instantAnimations||!l)&&u?.(td(e,i,t)),e[0]=e[e.length-1],sR(i),i.repeat=0);let h=s?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,{onComplete:p}=i;if(i.startTime??(i.startTime=h),i.finalKeyframe=t,i.keyframes=e,i.onComplete=()=>{p?.(),this.notifyFinished()},d&&!c&&function(e){let{motionValue:t,name:i,repeatDelay:s,repeatType:n,damping:r,type:a,keyframes:o}=e;if(!i||!(tS.has(i)||sL.has(i)))return!1;let l=t?.owner?.current;if(!(l instanceof HTMLElement)&&!(l instanceof SVGElement))return!1;let{onUpdate:c,transformTemplate:u}=t.owner.getProps();return sO()&&(tS.has(i)||sL.has(i)&&function(e){for(let t=0;t<e.length;t++)if("string"==typeof e[t]&&sD.test(e[t]))return!0;return!1}(o))&&("transform"!==i||!u)&&!c&&!s&&"mirror"!==n&&0!==r&&"inertia"!==a}(i)){i.element=i.motionValue?.owner?.current;try{n=new sM(i)}catch{n=new s_(i)}}else n=new s_(i);this.pendingTimeline&&(this.stopTimeline=n.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=n}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),e5=!0,e8(),e6(),e5=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}let sI={type:"spring",stiffness:500,damping:25,restSpeed:10},sB={type:"keyframes",duration:.8},sz={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},s$=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]),sX=(e,t,i,s={},n,r)=>a=>{let o=iX(s,e)||{},l=o.delay||s.delay||0,{elapsed:c=0}=s;c-=tt(l);let u={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-c,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:r?void 0:n};!function(e){for(let t in e)if(!s$.has(t))return!0;return!1}(o)&&Object.assign(u,((e,{keyframes:t})=>t.length>2?sB:A.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:sI:sz)(e,u)),u.duration&&(u.duration=tt(u.duration)),u.repeatDelay&&(u.repeatDelay=tt(u.repeatDelay)),void 0!==u.from&&(u.keyframes[0]=u.from);let d=!1;if(!1!==u.type&&(0!==u.duration||u.repeatDelay)||(sR(u),0===u.delay&&(d=!0)),(eq.instantAnimations||eq.skipAnimations||n?.shouldSkipAnimations||o.skipAnimations)&&(d=!0,sR(u),u.delay=0),u.allowFlatten=!o.type&&!o.ease,d&&!r&&void 0!==t.get()){let e=td(u.keyframes,o);if(void 0!==e)return void eZ.update(()=>{u.onUpdate(e),u.onComplete()})}return o.isSync?new s_(u):new sF(u)},sU="u">typeof window;
11function sH(e,t,{delay:i=0,transitionOverride:s,type:n}={}){let{transition:r,transitionEnd:a,...o}=t,l=e.getDefaultTransition();r=r?P(r,l):l;let c=r?.reduceMotion,u=r?.skipAnimations;s&&(r=s);let d=[],h=n&&e.animationState&&e.animationState.getState()[n],p=r?.path;for(let t in p&&p.animateVisualElement(e,o,r,i,d),o){let s=e.getValue(t,e.latestValues[t]??null),n=o[t];if(void 0===n||h&&function({protectedKeys:e,needsAnimating:t},i){let s=e.hasOwnProperty(i)&&!0!==t[i];return t[i]=!1,s}(h,t))continue;let a={delay:i,...iX(r||{},t)};u&&(a.skipAnimations=!0);let l=s.get();if(void 0!==l&&!s.isAnimating()&&!Array.isArray(n)&&n===l&&!a.velocity){eZ.update(()=>s.set(n));continue}let p=!1;if(sU&&window.MotionHandoffAnimation){let i=e.props[iO];if(i){let e=window.MotionHandoffAnimation(i,t,eZ);null!==e&&(a.startTime=e,p=!0)}}iH(e,t);let m=c??e.shouldReduceMotion;s.start(sX(t,s,n,m&&eg.has(t)?{type:!1}:a,e,p));let f=s.animation;f&&d.push(f)}if(a){let t=()=>eZ.update(()=>{a&&function(e,t){let{transitionEnd:i={},transition:s={},...n}=i$(e,t)||{};for(let t in n={...n,...i}){var r;let i=iU(r=n[t])?r[r.length-1]||0:r;e.hasValue(t)?e.getValue(t).set(i):e.addValue(t,tC(i))}}(e,a)});d.length?Promise.all(d).then(t):t()}return d}function sW(e,t,i,s=0,n=1){let r=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),a=e.size,o=(a-1)*s;return"function"==typeof i?i(r,a):1===n?r*s:o-r*s}function sQ(e,t,i={}){let s=i$(e,t,"exit"===i.type?e.presenceContext?.custom:void 0),{transition:n=e.getDefaultTransition()||{}}=s||{};i.transitionOverride&&(n=i.transitionOverride);let r=s?()=>Promise.all(sH(e,s,i)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(s=0)=>{let{delayChildren:r=0,staggerChildren:a,staggerDirection:o}=n;return function(e,t,i=0,s=0,n=0,r=1,a){let o=[];for(let l of e.variantChildren)l.notify("AnimationStart",t),o.push(sQ(l,t,{...a,delay:i+("function"==typeof s?0:s)+sW(e.variantChildren,l,s,n,r)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(o)}(e,t,s,r,a,o,i)}:()=>Promise.resolve(),{when:o}=n;if(!o)return Promise.all([r(),a(i.delay)]);{let[e,t]="beforeChildren"===o?[r,a]:[a,r];return e().then(()=>t())}}let sY=tR.length;function sq(e,t){if(!Array.isArray(t))return!1;let i=t.length;if(i!==e.length)return!1;for(let s=0;s<i;s++)if(t[s]!==e[s])return!1;return!0}let sK=[...tV].reverse(),sG=tV.length;function sZ(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sJ(){return{animate:sZ(!0),whileInView:sZ(),whileHover:sZ(),whileTap:sZ(),whileDrag:sZ(),whileFocus:sZ(),exit:sZ()}}let s0=0;function s1(e){return[e("x"),e("y")]}function s2(e,t,i,s={passive:!0}){return e.addEventListener(t,i,s),()=>e.removeEventListener(t,i,s)}let s3={x:!1,y:!1};function s4(e){return e.max-e.min}function s5(e,t,i,s=.5){e.origin=s,e.originPoint=t8(t.min,t.max,e.origin),e.scale=s4(i)/s4(t),e.translate=t8(i.min,i.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 s6(e,t,i,s){s5(e.x,t.x,i.x,s?s.originX:void 0),s5(e.y,t.y,i.y,s?s.originY:void 0)}function s8(e,t,i,s=0){e.min=(s?t8(i.min,i.max,s):i.min)+t.min,e.max=e.min+s4(t)}function s7(e,t,i,s=0){let n=s?t8(i.min,i.max,s):i.min;e.min=t.min-n,e.max=e.min+s4(t)}function s9(e,t,i,s){s7(e.x,t.x,i.x,s?.x),s7(e.y,t.y,i.y,s?.y)}function ne(e){return h(e)&&"ownerSVGElement"in e}function nt(e,t,i){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let s=document;t&&(s=t.current);let n=i?.[e]??s.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(e=>null!=e)}let ni=new WeakMap,ns=(e,t,i)=>(s,n)=>n&&n[0]?n[0][e+"Size"]:ne(s)&&"getBBox"in s?s.getBBox()[t]:s[i],nn=ns("inline","width","offsetWidth"),nr=ns("block","height","offsetHeight");function na({target:e,borderBoxSize:t}){ni.get(e)?.forEach(i=>{i(e,{get width(){return nn(e,t)},get height(){return nr(e,t)}})})}function no(e){e.forEach(na)}let nl=new Set;function nc(e,t){let n;return"function"==typeof e?(nl.add(e),s||(s=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};nl.forEach(t=>t(e))},window.addEventListener("resize",s)),()=>{nl.delete(e),nl.size||"function"!=typeof s||(window.removeEventListener("resize",s),s=void 0)}):(!i&&"u">typeof ResizeObserver&&(i=new ResizeObserver(no)),(n=nt(e)).forEac
11h(e=>{let s=ni.get(e);s||(s=new Set,ni.set(e,s)),s.add(t),i?.observe(e)}),()=>{n.forEach(e=>{let s=ni.get(e);s?.delete(t),s?.size||i?.unobserve(e)})})}let nu=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),nd=new Set(["INPUT","SELECT","TEXTAREA"]),nh=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function np(e){return{point:{x:e.pageX,y:e.pageY}}}function nm(e,t,i,s){return s2(e,t,e=>nh(e)&&i(e,np(e)),s)}let nf=({current:e})=>e?e.ownerDocument.defaultView:null,ny=(e,t)=>Math.abs(e-t),nx=new Set(["auto","scroll"]);class ng{constructor(e,t,{transformPagePoint:i,contextWindow:s=window,dragSnapToOrigin:n=!1,distanceThreshold:r=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=nv(this.lastRawMoveEventInfo,this.transformPagePoint));let i=nw(this.lastMoveEventInfo,this.history),s=null!==this.startEvent,n=(e=i.offset,t={x:0,y:0},Math.sqrt(ny(e.x,t.x)**2+ny(e.y,t.y)**2)>=this.distanceThreshold);if(!s&&!n)return;let{point:r}=i,{timestamp:a}=e0;this.history.push({...r,timestamp:a});let{onStart:o,onMove:l}=this.handlers;s||(o&&o(this.lastMoveEvent,i),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,i)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=nv(t,this.transformPagePoint),eZ.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:i,onSessionEnd:s,resumeAnimation:n}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=nw("pointercancel"===e.type?this.lastMoveEventInfo:nv(t,this.transformPagePoint),this.history);this.startEvent&&i&&i(e,r),s&&s(e,r)},!nh(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=i,this.distanceThreshold=r,this.contextWindow=s||window;const o=nv(np(e),this.transformPagePoint),{point:l}=o,{timestamp:c}=e0;this.history=[{...l,timestamp:c}];const{onSessionStart:u}=t;u&&u(e,nw(o,this.history));const d={passive:!0,capture:!0};this.removeListeners=iW(nm(this.contextWindow,"pointermove",this.handlePointerMove,d),nm(this.contextWindow,"pointerup",this.handlePointerUp,d),nm(this.contextWindow,"pointercancel",this.handlePointerUp,d)),a&&this.startScrollTracking(a)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(nx.has(e.overflowX)||nx.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let i=e===window,s=i?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},n={x:s.x-t.x,y:s.y-t.y};(0!==n.x||0!==n.y)&&(i?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=n.x,this.lastMoveEventInfo.point.y+=n.y):this.history.length>0&&(this.history[0].x-=n.x,this.history[0].y-=n.y),this.scrollPositions.set(e,s),eZ.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),eJ(this.updatePoint)}}function nv(e,t){return t?{point:t(e.point)}:e}function nb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function nw({point:e},t){return{point:e,delta:nb(e,nj(t)),offset:nb(e,t[0]),velocity:function(e){if(e.length<2)return{x:0,y:0};let t=e.length-1,i=null,s=nj(e);for(;t>=0&&(i=e[t],!(s.timestamp-i.timestamp>tt(.1)));)t--;if(!i)return{x:0,y:0};i===e[0]&&e.length>2&&s.timestamp-i.timestamp>2*tt(.1)&&(i=e[1]);let n=(s.timestamp-i.timestamp)/1e3;if(0===n)return{x:0,y:0};let r={x:(s.x-i.x)/n,y:(s.y-i.y)/n};return r.x===1/0&&(r.x=0),r.y===1/0&&(r.y=0),r}(t)}}function nj(e){return e[e.length-1]}function nk(e,t,i){return{min:void 0!==t?e.min+t:void 0,max:void 0!==i?e.max+i-(e.max-e.min):void 0}}function nS(e,t){let i=t.min-e.min,s=t.max-e.max;return t.max-t.min<e.max-e.min&&([i,s]=[s,i]),{min:i,max:s}}function nP(e,t,i){return{min:nT(e,t),max:nT(e,i)}}function nT(e,t){return"number"==typeof e?e:e[t]||0}let nN=new WeakMap;
11class nA{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=ey(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:i}={}){let{presenceContext:s}=this.visualElement;if(s&&!1===s.isPresent)return;let n=e=>{t&&this.snapToCursor(np(e).point),this.stopAnimation()},r=(e,t)=>{let{drag:i,dragPropagation:s,onDragStart:n}=this.getProps();if(i&&!s&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"y"===e)if(s3[e])return null;else return s3[e]=!0,()=>{s3[e]=!1};return s3.x||s3.y?null:(s3.x=s3.y=!0,()=>{s3.x=s3.y=!1})}(i),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),s1(e=>{let t=this.getAxisMotionValue(e).get()||0;if(X.test(t)){let{projection:i}=this.visualElement;if(i&&i.layout){let s=i.layout.layoutBox[e];s&&(t=s4(s)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&eZ.update(()=>n(e,t),!1,!0),iH(this.visualElement,"transform");let{animationState:r}=this.visualElement;r&&r.setActive("whileDrag",!0)},a=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:i,dragDirectionLock:s,onDirectionLock:n,onDrag:r}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:a}=t;if(s&&null===this.currentDirection){this.currentDirection=function(e,t=10){let i=null;return Math.abs(e.y)>t?i="y":Math.abs(e.x)>t&&(i="x"),i}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),r&&eZ.update(()=>r(e,t),!1,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new ng(e,{onSessionStart:n,onStart:r,onMove:a,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:i,contextWindow:nf(this.visualElement),element:this.visualElement.current})}stop(e,t){let i=e||this.latestPointerEvent,s=t||this.latestPanInfo,n=this.isDragging;if(this.cancel(),!n||!s||!i)return;let{velocity:r}=s;this.startAnimation(r);let{onDragEnd:a}=this.getProps();a&&eZ.postRender(()=>a(i,s))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,i){let{drag:s}=this.getProps();if(!i||!n_(e,s,this.currentDirection))return;let n=this.getAxisMotionValue(e),r=this.originPoint[e]+i[e];this.constraints&&this.constraints[e]&&(r=function(e,{min:t,max:i},s){return void 0!==t&&e<t?e=s?t8(t,e,s.min):Math.max(e,t):void 0!==i&&e>i&&(e=s?t8(i,e,s.max):Math.min(e,i)),e}(r,this.constraints[e],this.elastic[e])),n.set(r)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,s=this.constraints;e&&iI(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&i?this.constraints=function(e,{top:t,left:i,bottom:s,right:n}){return{x:nk(e.x,i,n),y:nk(e.y,t,s)}}(i.layoutBox,e):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:nP(e,"left","right"),y:nP(e,"top","bottom")}}(t),s!==this.constraints&&!iI(e)&&i&&this.constraints&&!this.hasMutatedConstraints&&s1(e=>{var t,s;let n;!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=(t=i.layoutBox[e],s=this.constraints[e],n={},void 0!==s.min&&(n.min=s.min-t.min),void 0!==s.max&&(n.max=s.max-t.min),n))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:i}=this.getProps();if(!t||!iI(t))return!1;let s=t.current;ej();let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;n.root&&(n.root.scroll=void 0,n.root.updateScroll());let r=function(e,t,i){let s=ix(e,i),{scroll:n}=t;return n&&(ih(s.x,n.offset.x),ih(s.y,n.offset.y)),s}(s,n.root,this.visualElement.getTransformPagePoint()),a=(e=n.layout.layoutBox,{x:nS(e.x,r.x),y:nS(e.y,r.y)});if(i){let e=i(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=is(e))}return a}startAnimation(e){let{drag:t,dragMomentum:i,dragElastic:s,dragTransition:n,dragSnapToOrigin:r,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(s1(a=>
11{if(!n_(a,t,this.currentDirection))return;let l=o&&o[a]||{};(!0===r||r===a)&&(l={min:0,max:0});let c={type:"inertia",velocity:i?e[a]:0,bounceStiffness:s?200:1e6,bounceDamping:s?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,c)})).then(a)}startAxisValueAnimation(e,t){let i=this.getAxisMotionValue(e);return iH(this.visualElement,e),i.start(sX(e,i,0,t,this.visualElement,!1))}stopAnimation(){s1(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){s1(t=>{let{drag:i}=this.getProps();if(!n_(t,i,this.currentDirection))return;let{projection:s}=this.visualElement,n=this.getAxisMotionValue(t);if(s&&s.layout){let{min:i,max:r}=s.layout.layoutBox[t],a=n.get()||0;n.set(e[t]-t8(i,r,.5)+a)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:i}=this.visualElement;if(!iI(t)||!i||!this.constraints)return;this.stopAnimation();let s={x:0,y:0};s1(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){var i,n;let r,a,o,l=t.get();s[e]=(i={min:l,max:l},n=this.constraints[e],r=.5,a=s4(i),(o=s4(n))>a?r=sP(n.min,n.max-a,i.min):a>o&&(r=sP(i.min,i.max-o,n.min)),C(0,1,r))}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.constraints=!1,this.resolveConstraints(),s1(t=>{if(!n_(t,e,null))return;let i=this.getAxisMotionValue(t),{min:n,max:r}=this.constraints[t];i.set(t8(n,r,s[t]))}),this.visualElement.render()}addListeners(){let e;if(!this.visualElement.current)return;nN.set(this.visualElement,this);let t=this.visualElement.current,i=nm(t,"pointerdown",e=>{let{drag:i,dragListener:s=!0}=this.getProps(),n=e.target,r=n!==t&&(nd.has(n.tagName)||!0===n.isContentEditable);i&&s&&!r&&this.start(e)}),s=()=>{var i,s,n;let r,a,{dragConstraints:o}=this.getProps();iI(o)&&o.current&&(this.constraints=this.resolveRefConstraints(),e||(i=t,s=o.current,r=nc(i,nC(n=()=>this.scalePositionWithinConstraints())),a=nc(s,nC(n)),e=()=>{r(),a()}))},{projection:n}=this.visualElement,r=n.addEventListener("measure",s);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),eZ.read(s);let a=s2(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(s1(t=>{let i=this.getAxisMotionValue(t);i&&(this.originPoint[t]+=e[t].translate,i.set(i.get()+e[t].translate))}),this.visualElement.render())});return()=>{a(),i(),r(),o&&o(),e&&e()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:i=!1,dragPropagation:s=!1,dragConstraints:n=!1,dragElastic:r=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:i,dragPropagation:s,dragConstraints:n,dragElastic:r,dragMomentum:a}}}function nC(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function n_(e,t,i){return(!0===t||t===e)&&(null===i||i===e)}let nE=e=>(t,i)=>{e&&eZ.update(()=>e(t,i),!1,!0)},nM={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var nV=r;let nR=!1;class nD extends nV.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i,layoutId:s}=this.props,{projection:n}=e;n&&(t.group&&t.group.add(n),i&&i.register&&s&&i.register(n),nR&&n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),nM.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:i,drag:s,isPresent:n}=this.props,{projection:r}=i;return r&&(r.isPresent=n,e.layoutDependency!==t&&r.setOptions({...r.options,layoutDependency:t}),nR=!0,s||e.layoutDependency!==t||void 0===t||e.isPresent!==n?r.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?r.promote():r.relegate()||eZ.postRender(()=>{let e=r.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:i}=e;i&&(i.options.layoutAnchor=t,i.root.didUpdate(),tP.postRender(()=>{!i.currentAnimation&&i.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:i}=this.props,{projection:s}=e;nR=!0,s&&(s.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(s),i&&i.deregister&&i.deregister(s))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function nL(e){let[t,i]=w(),s=(0,nV.useContext)(l);return(0,n.jsx)(nD,{...e,layoutGroup:s,switchLayoutGroup:(0,nV.useContext)(iF),isPresent:t,safeToRemove:i})}let nO=t4.length,nF=e=>"string"==typeof e?parseFloat(e):e,nI=e=>"number"==typeof e||U.test(e);function nB(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let nz=nX(0,.5,sw),n$=nX(.5,.95,eY);function nX(e,t,i){return s=>s<e?0:s>
11t?1:i(sP(e,t,s))}function nU(e,t){e.min=t.min,e.max=t.max}function nH(e,t){nU(e.x,t.x),nU(e.y,t.y)}function nW(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function nQ(e,t,i,s,n){return e-=t,e=s+1/i*(e-s),void 0!==n&&(e=s+1/n*(e-s)),e}function nY(e,t,[i,s,n],r,a){!function(e,t=0,i=1,s=.5,n,r=e,a=e){if(X.test(t)&&(t=parseFloat(t),t=t8(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=t8(r.min,r.max,s);e===r&&(o-=t),e.min=nQ(e.min,t,i,o,n),e.max=nQ(e.max,t,i,o,n)}(e,t[i],t[s],t[n],t.scale,r,a)}let nq=["x","scaleX","originX"],nK=["y","scaleY","originY"];function nG(e,t,i,s){nY(e.x,t,nq,i?i.x:void 0,s?s.x:void 0),nY(e.y,t,nK,i?i.y:void 0,s?s.y:void 0)}function nZ(e){return 0===e.translate&&1===e.scale}function nJ(e){return nZ(e.x)&&nZ(e.y)}function n0(e,t){return e.min===t.min&&e.max===t.max}function n1(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function n2(e,t){return n1(e.x,t.x)&&n1(e.y,t.y)}function n3(e){return s4(e.x)/s4(e.y)}function n4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class n5{constructor(){this.members=[]}add(e){ti(this.members,e);for(let t=this.members.length-1;t>=0;t--){let i=this.members[t];if(i===e||i===this.lead||i===this.prevLead)continue;let s=i.instance;s&&!1!==s.isConnected||i.snapshot||(ts(this.members,i),i.unmount())}e.scheduleRender()}remove(e){if(ts(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){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(!1!==e.isPresent&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let i=this.lead;if(e!==i&&(this.prevLead=i,this.lead=e,e.show(),i)){i.updateSnapshot(),e.scheduleRender();let{layoutDependency:s}=i.options,{layoutDependency:n}=e.options;(void 0===s||s!==n)&&(e.resumeFrom=i,t&&(i.preserveOpacity=!0),i.snapshot&&(e.snapshot=i.snapshot,e.snapshot.latestValues=i.animationValues||i.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),!1===e.options.crossfade&&i.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}let n6=(e,t)=>e.depth-t.depth;class n8{constructor(){this.children=[],this.isDirty=!1}add(e){ti(this.children,e),this.isDirty=!0}remove(e){ts(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(n6),this.isDirty=!1,this.children.forEach(e)}}let n7=["","X","Y","Z"],n9=0;function re(e,t,i,s){let{latestValues:n}=t;n[e]&&(i[e]=n[e],t.setStaticValue(e,0),s&&(s[e]=0))}function rt({attachResizeListener:e,defaultParent:t,measureScroll:i,checkIsScrollRoot:s,resetTransform:n}){return class{constructor(e={},i=t?.()){this.id=n9++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(rn),this.nodes.forEach(rp),this.nodes.forEach(rm),this.nodes.forEach(rr)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new n8)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new tn),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let i=this.eventHandlers.get(e);i&&i.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=ne(t)&&!(ne(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:i,layout:s,visualElement:n}=this.options;if(n&&!n.current&&n.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(s||i)&&(this.isLayoutDirty=!0),e){let i,s=0,n=()=>this.root.updateBlockedByResize=!1;eZ.read(()=>{s=window.innerWidth}),e(t,()=>{let e=window.innerWidth;if(e!==s){let t,r;s=e,this.root.updateBlockedByResize=!0,i&&i(),t=tm.now(),r=({timestamp:e})=>{let i=e-t;i>=250&&(eJ(r),n())},eZ.setup(r,!0),i=()=>
11eJ(r),nM.hasAnimatedSinceResize&&(nM.hasAnimatedSinceResize=!1,this.nodes.forEach(rh))}})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&n&&(i||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:i,layout:s})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let r=this.options.transition||n.getDefaultTransition()||rb,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=n.getProps(),l=!this.targetLayout||!n2(this.targetLayout,s),c=!t&&i;if(this.options.layoutRoot||this.resumeFrom||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...iX(r,"layout"),onPlay:a,onComplete:o};(n.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c,t.path)}else t||rh(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=s})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),eJ(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(rf),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:i}=t.options;if(!i)return;let s=i.props[iO];if(window.MotionHasOptimisedAnimation(s,"transform")){let{layout:e,layoutId:i}=t.options;window.MotionCancelOptimisedAnimation(s,"transform",eZ,!(e||i))}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,("string"==typeof t.latestValues.x||"string"==typeof t.latestValues.y)&&(t.isLayoutDirty=!0),t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:i}=this.options;if(void 0===t&&!i)return;let s=this.getTransformTemplate();this.prevTransformTemplateValue=s?s(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(rl),this.nodes.forEach(ro);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(rc);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(ru),this.nodes.forEach(rd),this.nodes.forEach(ri),this.nodes.forEach(rs)):this.nodes.forEach(rc),this.clearAllSnapshots();let e=tm.now();e0.delta=C(0,1e3/60,e-e0.timestamp),e0.timestamp=e,e0.isProcessing=!0,e1.update.process(e0),e1.preRender.process(e0),e1.render.process(e0),e0.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tP.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ra),this.sharedNodes.forEach(ry)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eZ.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eZ.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||s4(this.snapshot.measuredBox.x)||s4(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ey()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=s(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:i(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&&!nJ(this.projectionDelta),i=this.getTransformTemplate(),s=i?i(this.latestValues,""):void 0,r=s!==this.prevTransformTemplateValue;e&&this.instance&&(t||io(this.latestValues)||r)&&(n(this.instance,s),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let i=this.measurePageBox(),s=this.removeElementScroll(i);return e&&(s=this.removeTransform(s)),rk((t=s).x),rk(t.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:s,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return ey();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(rP))){let{scroll:e}=this.root;e&&(ih(t.x,e.offset.x),ih(t.y,e.offset.y))}return t}removeElementScroll(e){let t=ey();if(nH(t,e),this.scroll?.wasRoot)return t;for(let i=0;i<this.path.length;i++){let s=this.path[i],{scroll:n,options:r}=s;s!==this.root&&n&&r.layoutScroll&&(n.wasRoot&&nH(t,e),ih(t.x,n.offset.x),ih(t.y,n.offset.y))}return t}applyTransform(e,t=!1,i){let s=i||ey();nH(s,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&(ih(s.x,-i.scroll.offset.x),ih(s.y,-i.scroll.offset.y)),io(i.latestValues)&&iy(s,i.latestValues,i.layout?.layoutBox)}return io(this.latestValues)&&iy(s,this.latestValues,this.layout?.layoutBox),s}removeTransform(e){let t=ey();nH(t,e);for(let e=0;e<this.path.length;e++){let i,s=this.path[e];io(s.latestValues)&&(s.instance&&(ia(s.latestValues)&&s.updateSnapshot(),nH(i=ey(),s.measurePageBox())),nG(t,s.latestValues,s.snapshot?.layoutBox,i))}return io(this.latestValues)&&nG(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!==e0.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=t.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=t.
11isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=t.isSharedProjectionDirty);let i=!!this.resumingFrom||this!==t;if(!(e||i&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:s,layoutId:n}=this.options;if(!this.layout||!(s||n))return;this.resolvedRelativeTargetAt=e0.timestamp;let r=this.getClosestProjectingParent();if(r&&this.linkedParentVersion!==r.layoutVersion&&!r.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(!1!==this.options.layoutAnchor&&r&&r.layout?this.createRelativeTarget(r,this.layout.layoutBox,r.layout.layoutBox):this.removeRelativeTarget()),this.relativeTarget||this.targetDelta){if(this.target||(this.target=ey(),this.targetWithTransforms=ey()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target){var a,o,l,c;this.forceRelativeParentToResolveTarget(),a=this.target,o=this.relativeTarget,l=this.relativeParent.target,c=this.options.layoutAnchor||void 0,s8(a.x,o.x,l.x,c?.x),s8(a.y,o.y,l.y,c?.y)}else this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):nH(this.target,this.layout.layoutBox),id(this.target,this.targetDelta)):nH(this.target,this.layout.layoutBox);this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,!1!==this.options.layoutAnchor&&r&&!!r.resumingFrom==!!this.resumingFrom&&!r.options.layoutScroll&&r.target&&1!==this.animationProgress?this.createRelativeTarget(r,this.target,r.target):this.relativeParent=this.relativeTarget=void 0)}}getClosestProjectingParent(){if(!(!this.parent||ia(this.parent.latestValues)||il(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)}createRelativeTarget(e,t,i){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ey(),this.relativeTargetOrigin=ey(),s9(this.relativeTargetOrigin,t,i,this.options.layoutAnchor||void 0),nH(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,i=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(i=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===e0.timestamp&&(i=!1),i)return;let{layout:s,layoutId:n}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(s||n))return;nH(this.layoutCorrected,this.layout.layoutBox);let r=this.treeScale.x,a=this.treeScale.y;!function(e,t,i,s=!1){let n,r,a=i.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){r=(n=i[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(s&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(ih(e.x,-n.scroll.offset.x),ih(e.y,-n.scroll.offset.y)),r&&(t.x*=r.x.scale,t.y*=r.y.scale,id(e,r)),s&&io(n.latestValues)&&iy(e,n.latestValues,n.layout?.layoutBox))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ey());let{target:o}=e;if(!o){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nW(this.prevProjectionDelta.x,this.projectionDelta.x),nW(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),s6(this.projectionDelta,this.layoutCorrected,o,this.latestValues),this.treeScale.x===r&&this.treeScale.y===a&&n4(this.projectionDelta.x,this.prevProjectionDelta.x)&&n4(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",o))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=em(),this.projectionDelta=em(),this.projectionDeltaWithTransform=em()}setAnimationOrigin(e,t=!1,i){let s,n=this.snapshot,r=n?n.latestValues:{},a={...this.latestValues},o=em();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=ey(),c=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,h=!!(c&&!d&&!0===this.options.crossfade&&!this.path.some(rv));this.animationProgress=0;let p=i?.interpolateProjection(e);this.mixTargetDelta=t=>{let i=t/1e3,n=p?.(i);if(n?(o.x.translate=n.x,o.x.scale=t8(e.x.scale,1,i),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=n.y,o.y.scale=t8(e.y.scale,1,i),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(rx(o.x,e.x,i),rx(o.y,e.y,i)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,m,f,y,x,g;s9(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),f=this.relativeTarget,y=this.relativeTargetOrigin,x=l,g=i,rg(f.x,y.x,x.x,g),rg(f.y,y.y,x.y,g),s&&(u=this.relativeTarget,m=s,n0(u.x,m.x)&&n0(u.y,m.y))&&(this.isProjectionDirty=!1),s||(s=ey()),nH(s,this.relativeTarget)}c&&(this.animationValues=a,function(e,t,i,s,n,r){n?(e.opacity=t8(0,i.opacity??1,nz(s)),e.opacityExit=t8(t.opacity??1,0,n$(s))):r&&(e.opacity=t8(t.opacity??1,i.opacity??1,s));for(let n=0;n<nO;n++){let r=t4[n],a=nB(t,r),o=nB(i,r);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||nI(a)===nI(o)?(e[r]=Math.max(t8(nF(a),nF(o),s),0),(X.test(o)||X.test(a))&&(e[r]+="%")):e[r]=o)}(t.rotate||i.rotate)&&(e.rotate=t8(t.rotate||0,i.rotate||0,s))}(a,r,this.latestValues,i,h,d)),n&&void 0!==n.rotate&&(this.animationValues||(this.animationValues=a),this.animationValues.pathRotation=n.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(eJ(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=eZ.update(()=>{var t,i,s;let n;nM.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=tC(0)),this.motionValue.jump(0,!1),this.currentAnimation=(t=this.motionValue,i=[0,1e3],s={...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}},(n=ex(t)?t:tC(t)).start(sX("",n,i,s)),n.animation),function(e,t){let i=globalThis.__MOTION_INSPECT__;if(i)try{i({...tf("layout-animation-start",e),node:t})}catch{}}(this.currentAnimation,this),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,layout:i,latestValues:s}=e,{target:n}=e;
11if(t&&n&&i){if(this!==e&&this.layout&&i&&rS(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||ey();let t=s4(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=s4(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}nH(t,n),iy(t,s),s6(this.projectionDeltaWithTransform,this.layoutCorrected,t,s)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new n5),this.sharedNodes.get(e).add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:i}={}){let s=this.getStack();s&&s.promote(this,i),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:i}=e;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(t=!0),!t)return;let s={};i.z&&re("z",e,s,this.animationValues);for(let t=0;t<n7.length;t++)re(`rotate${n7[t]}`,e,s,this.animationValues),re(`skew${n7[t]}`,e,s,this.animationValues);for(let t in e.render(),s)e.setStaticValue(t,s[t]),this.animationValues&&(this.animationValues[t]=s[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let i=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=iC(t?.pointerEvents)||"",e.transform=i?i(this.latestValues,""):"none";return}let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=iC(t?.pointerEvents)||""),this.hasProjected&&!io(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1);return}e.visibility="";let n=s.animationValues||s.latestValues;this.applyTransformsToTarget();let r=function(e,t,i){let s="",n=e.x.translate/t.x,r=e.y.translate/t.y,a=i?.z||0;if((n||r||a)&&(s=`translate3d(${n}px, ${r}px, ${a}px) `),(1!==t.x||1!==t.y)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),i){let{transformPerspective:e,rotate:t,pathRotation:n,rotateX:r,rotateY:a,skewX:o,skewY:l}=i;e&&(s=`perspective(${e}px) ${s}`),t&&(s+=`rotate(${t}deg) `),n&&(s+=`rotate(${n}deg) `),r&&(s+=`rotateX(${r}deg) `),a&&(s+=`rotateY(${a}deg) `),o&&(s+=`skewX(${o}deg) `),l&&(s+=`skewY(${l}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(s+=`scale(${o}, ${l})`),s||"none"}(this.projectionDeltaWithTransform,this.treeScale,n);i&&(r=i(n,r)),e.transform=r;let{x:a,y:o}=this.projectionDelta;for(let t in e.transformOrigin=`${100*a.origin}% ${100*o.origin}% 0`,s.animationValues?e.opacity=s===this?n.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:n.opacityExit:e.opacity=s===this?void 0!==n.opacity?n.opacity:"":void 0!==n.opacityExit?n.opacityExit:0,t7){if(void 0===n[t])continue;let{correct:i,applyTo:a,isCSSVariable:o}=t7[t],l="none"===r?n[t]:i(n[t],s);if(a){let t=a.length;for(let i=0;i<t;i++)e[a[i]]=l}else o?this.options.visualElement.renderState.vars[t]=l:e[t]=l}this.options.layoutId&&(e.pointerEvents=s===this?iC(t?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(ro),this.root.sharedNodes.clear()}}}function ri(e){e.updateLayout()}function rs(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:s}=e.layout,{animationType:n}=e.options,r=t.source!==e.layout.source;if("size"===n)s1(e=>{let s=r?t.measuredBox[e]:t.layoutBox[e],n=s4(s);s.min=i[e].min,s.max=s.min+n});else if("x"===n||"y"===n){let e="x"===n?"y":"x";nU(r?t.measuredBox[e]:t.layoutBox[e],i[e])}else rS(n,t.layoutBox,i)&&s1(s=>{let n=r?t.measuredBox[s]:t.layoutBox[s],a=s4(i[s]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[s].max=e.relativeTarget[s].min+a)});let a=em();s6(a,i,t.layoutBox);let o=em();r?s6(o,e.applyTransform(s,!0),t.measuredBox):s6(o,i,t.layoutBox);let l=!nJ(a),c=!1;if(!e.resumeFrom){let s=e.getClosestProjectingParent();if(s&&!s.resumeFrom){let{snapshot:n,layout:r}=s;if(n&&r){let a=e.options.layoutAnchor||void 0,o=ey();s9(o,t.layoutBox,n.layoutBox,a);let l=ey();s9(l,i,r.layoutBox,a),n2(o,l)||(c=!0),s.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=o,e.relativeParent=s)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function rn(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rr(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ra(e){e.clearSnapshot()}function ro(e){e.clearMeasurements()}function rl(e){e.isLayoutDirty=!0,e.updateLayout()}function rc(e){e.isLayoutDirty=!1}function ru(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function rd(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function rh(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function rp(e){e.resolveTargetDelta()}function rm(e){e.calcProjection()}
11function rf(e){e.resetSkewAndRotation()}function ry(e){e.removeLeadSnapshot()}function rx(e,t,i){e.translate=t8(t.translate,0,i),e.scale=t8(t.scale,1,i),e.origin=t.origin,e.originPoint=t.originPoint}function rg(e,t,i,s){e.min=t8(t.min,i.min,s),e.max=t8(t.max,i.max,s)}function rv(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let rb={duration:.45,ease:[.4,0,.1,1]},rw=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),rj=rw("applewebkit/")&&!rw("chrome/")?Math.round:eY;function rk(e){e.min=rj(e.min),e.max=rj(e.max)}function rS(e,t,i){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(n3(t)-n3(i)))}function rP(e){return e!==e.root&&e.scroll?.wasRoot}let rT=rt({attachResizeListener:(e,t)=>s2(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),rN={current:void 0},rA=rt({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rN.current){let e=new rT({});e.mount(window),e.setOptions({layoutScroll:!0}),rN.current=e}return rN.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function rC(e,t){let i=nt(e),s=new AbortController;return[i,{passive:!0,...t,signal:s.signal},()=>s.abort()]}function r_(e,t,i){let{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover","Start"===i);let n=s["onHover"+i];n&&eZ.postRender(()=>n(t,np(t)))}let rE=(e,t)=>!!t&&(e===t||rE(e,t.parentElement)),rM=new WeakSet;function rV(e){return t=>{"Enter"===t.key&&e(t)}}function rR(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function rD(e){return nh(e)&&!(s3.x||s3.y)}let rL=new WeakSet;function rO(e,t,i){let{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap","Start"===i);let n=s["onTap"+("End"===i?"":i)];n&&eZ.postRender(()=>n(t,np(t)))}let rF=new WeakMap,rI=new WeakMap,rB=e=>{let t=rF.get(e.target);t&&t(e)},rz=e=>{e.forEach(rB)},r$={some:0,all:1},rX=function(e,t){if("u"<typeof Proxy)return iB;let i=new Map,s=(i,s)=>iB(i,s,e,t);return new Proxy((e,t)=>s(e,t),{get:(n,r)=>"create"===r?s:(i.has(r)||i.set(r,iB(r,void 0,e,t)),i.get(r))})}({animation:{Feature:class extends iz{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:i})=>(function(e,t,i={}){let s;if(e.notify("AnimationStart",t),Array.isArray(t))s=Promise.all(t.map(t=>sQ(e,t,i)));else if("string"==typeof t)s=sQ(e,t,i);else{let n="function"==typeof t?i$(e,t,i.custom):t;s=Promise.all(sH(e,n,i))}return s.then(()=>{e.notify("AnimationComplete",t)})})(e,t,i))),i=sJ(),s=!0,n=!1,r=t=>(i,s)=>{let n=i$(e,s,"exit"===t?e.presenceContext?.custom:void 0);if(n){let{transition:e,transitionEnd:t,...s}=n;i={...i,...s,...t}}return i};function a(a){let{props:o}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let i=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(i.initial=t.props.initial),i}let i={};for(let e=0;e<sY;e++){let s=tR[e],n=t.props[s];(tM(n)||!1===n)&&(i[s]=n)}return i}(e.parent)||{},c=[],u=new Set,d={},h=1/0;for(let t=0;t<sG;t++){var p,m;let f=sK[t],y=i[f],x=void 0!==o[f]?o[f]:l[f],g=tM(x),v=f===a?y.isActive:null;!1===v&&(h=t);let b=x===l[f]&&x!==o[f]&&g;if(b&&(s||n)&&e.manuallyAnimateOnMount&&(b=!1),y.protectedKeys={...d},!y.isActive&&null===v||!x&&!y.prevProp||tE(x)||"boolean"==typeof x)continue;if("exit"===f&&y.isActive&&!0!==v){y.prevResolvedValues&&(d={...d,...y.prevResolvedValues});continue}let w=(p=y.prevProp,"string"==typeof(m=x)?m!==p:!!Array.isArray(m)&&!sq(m,p)),j=w||f===a&&y.isActive&&!b&&g||t>h&&g,k=!1,S=Array.isArray(x)?x:[x],P=S.reduce(r(f),{});!1===v&&(P={});let{prevResolvedValues:T={}}=y,N={...T,...P},A=t=>{j=!0,u.has(t)&&(k=!0,u.delete(t)),y.needsAnimating[t]=!0;let i=e.getValue(t);i&&(i.liveStyle=!1)};for(let e in N){let t=P[e],i=T[e];
11if(!d.hasOwnProperty(e))(iU(t)&&iU(i)?!sq(t,i)||w:t!==i)?null!=t?A(e):u.add(e):void 0!==t&&u.has(e)?A(e):y.protectedKeys[e]=!0}y.prevProp=x,y.prevResolvedValues=P,y.isActive&&(d={...d,...P}),(s||n)&&e.blockInitialAnimation&&(j=!1);let C=b&&w,_=!C||k;j&&_&&c.push(...S.map(t=>{let i={type:f};if("string"==typeof t&&(s||n)&&!C&&e.manuallyAnimateOnMount&&e.parent){let{parent:s}=e,n=i$(s,t);if(s.enteringChildren&&n){let{delayChildren:t}=n.transition||{};i.delay=sW(s.enteringChildren,e,t)}}return{animation:t,options:i}}))}if(u.size){let t={};if("boolean"!=typeof o.initial){let i=i$(e,Array.isArray(o.initial)?o.initial[0]:o.initial);i&&i.transition&&(t.transition=i.transition)}u.forEach(i=>{let s=e.getBaseTarget(i),n=e.getValue(i);n&&(n.liveStyle=!0),t[i]=s??null}),c.push({animation:t})}let f=!!c.length;return s&&(!1===o.initial||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),s=!1,n=!1,f?t(c):Promise.resolve()}return{animateChanges:a,setActive:function(t,s){if(i[t].isActive===s)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,s)),i[t].isActive=s;let n=a(t);for(let e in i)i[e].protectedKeys={};return n},setAnimateFunction:function(i){t=i(e)},getState:()=>i,reset:()=>{i=sJ(),n=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();tE(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}},exit:{Feature:class extends iz{constructor(){super(...arguments),this.id=s0++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;if(e&&!1===i){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if("string"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)){let i=i$(this.node,e,t);if(i){let{transition:e,transitionEnd:t,...s}=i;for(let e in s)this.node.getValue(e)?.jump(s[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}let s=this.node.animationState.setActive("exit",!e);t&&!e&&s.then(()=>{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends iz{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var e;let t;this.stopObserver?.();let{viewport:i={}}=this.node.getProps(),{root:s,margin:n,amount:r="some",once:a}=i,o={root:s?s.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:r$[r]},l=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:i,onViewportLeave:s}=this.node.getProps(),n=t?i:s;n&&n(e)};this.stopObserver=(e=this.node.current,t=function({root:e,...t}){let i=e||document;rI.has(i)||rI.set(i,{});let s=rI.get(i),n=JSON.stringify(t);return s[n]||(s[n]=new IntersectionObserver(rz,{root:e,...t})),s[n]}(o),rF.set(e,l),t.observe(e),()=>{rF.delete(e),t.unobserve(e)})}mount(){this.startObserver()}update(){if("u"<typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return i=>e[i]!==t[i]}(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends iz{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:i}=this.node.props;this.unmount=function(e,t,i={}){let[s,n,r]=rC(e,i),a=e=>{let s=e.currentTarget;if(!rD(e)||rL.has(e))return;rM.add(s),i.stopPropagation&&rL.add(e);let r=t(s,e),a={...n,capture:!0},o=(e,t)=>{window.removeEventListener("pointerup",l,a),window.removeEventListener("pointercancel",c,a),rM.has(s)&&rM.delete(s),rD(e)&&"function"==typeof r&&r(e,{success:t})},l=e=>{o(e,s===window||s===document||i.useGlobalTarget||rE(s,e.target))},c=e=>{o(e,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",c,a)};
11return s.forEach(e=>{((i.useGlobalTarget?window:e).addEventListener("pointerdown",a,n),p(e))&&(e.addEventListener("focus",e=>((e,t)=>{let i=e.currentTarget;if(!i)return;let s=rV(()=>{if(rM.has(i))return;rR(i,"down");let e=rV(()=>{rR(i,"up")});i.addEventListener("keyup",e,t),i.addEventListener("blur",()=>rR(i,"cancel"),t)});i.addEventListener("keydown",s,t),i.addEventListener("blur",()=>i.removeEventListener("keydown",s),t)})(e,n)),nu.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),r}(e,(e,t)=>(rO(this.node,t,"Start"),(e,{success:t})=>rO(this.node,e,t?"End":"Cancel")),{useGlobalTarget:t,stopPropagation:i?.tap===!1})}unmount(){}}},focus:{Feature:class extends iz{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=iW(s2(this.node.current,"focus",()=>this.onFocus()),s2(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends iz{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,i={}){let[s,n,r]=rC(e,i);return s.forEach(e=>{let i,s=!1,r=!1,a=t=>{i&&(i(t),i=void 0),e.removeEventListener("pointerleave",l)},o=e=>{s=!1,window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",o),r&&(r=!1,a(e))},l=e=>{if("touch"!==e.pointerType){if(s){r=!0;return}a(e)}};e.addEventListener("pointerenter",s=>{if("touch"===s.pointerType||s3.x||s3.y)return;r=!1;let a=t(e,s);"function"==typeof a&&(i=a,e.addEventListener("pointerleave",l,n))},n),e.addEventListener("pointerdown",()=>{s=!0,window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",o,n)},n)}),r}(e,(e,t)=>(r_(this.node,t,"Start"),e=>r_(this.node,e,"End"))))}unmount(){}}},pan:{Feature:class extends iz{constructor(){super(...arguments),this.removePointerDownListener=eY}onPointerDown(e){this.session=new ng(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nf(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:i,onPanEnd:s}=this.node.getProps();return{onSessionStart:nE(e),onStart:nE(t),onMove:nE(i),onEnd:(e,t)=>{delete this.session,s&&eZ.postRender(()=>s(e,t))}}}mount(){this.removePointerDownListener=nm(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends iz{constructor(e){super(e),this.removeGroupControls=eY,this.removeListeners=eY,this.controls=new nA(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||eY}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},ProjectionNode:rA,MeasureLayout:nL},layout:{ProjectionNode:rA,MeasureLayout:nL}},(e,t)=>t.isSVG??ib(e)?new ii(t):new ig(t,{allowProjection:e!==r.Fragment}));var rU=e.i(64455),rH=e.i(26448),rW=e.i(94390);let rQ=(0,r.createContext)(null),rY={duration:.25,ease:[.22,1,.36,1]};e.s(["LaunchFilmProvider",0,function({locale:e,children:t}){let{launch:i,ui:s}=(0,rU.getContent)(e),[o,l]=(0,r.useState)(!1),c=(0,rH.useIsClient)(),u=(0,r.useRef)(null),d=(0,r.useRef)(null),h=(0,r.useRef)(null),p=(0,r.useRef)(null),m=(0,r.useRef)(!1),f=(0,r.useCallback)(()=>{u.current=document.activeElement instanceof HTMLElement?document.activeElement:null,l(!0)},[]),y=(0,r.useCallback)(()=>{p.current?.pause(),l(!1)},[]);return(0,r.useEffect)(()=>{if(!o)return;let e=document.documentElement,t=d.current,i=u.current,s={overflow:e.style.overflow,gutter:e.style.scrollbarGutter};e.style.scrollbarGutter="stable",e.style.overflow="hidden";let n=[];for(let e of Array.from(document.body.children))e instanceof HTMLElement&&e!==t&&!e.contains(t)&&!e.inert&&(e.inert=!0,n.push(e));h.current?.focus({preventScroll:!0});let r=e=>{"Escape"===e.key&&(e.preventDefault(),y())};return document.addEventListener("keydown",r),()=>{for(let e of(document.removeEventListener("keydown",r),n))e.inert=!1;e.style.overflow=s.overflow,e.style.scrollbarGutter=s.gutter,i?.focus({preventScroll:!0})}},[o,y]),(0,n.jsxs)(rQ.Provider,{value:{open:f},children:[t,c&&(0,a.createPortal)((0,n.jsx)(T,{reducedMotion:"user",children:(0,n.jsx)(S,{children:o&&(0,n.jsx)(rX.div,{ref:d,role:"dialog","aria-modal":"true","aria-label":s.film.play,className:"fixed inset-0 z-[60] flex items-center justify-center bg-[rgb(var(--ty-ink-rgb)/0.88)] backdrop-blur-[8px]",initial:{opacity:0}
11,animate:{opacity:1},exit:{opacity:0},transition:rY,onPointerDown:e=>{m.current=e.target===e.currentTarget},onClick:e=>{m.current&&e.target===e.currentTarget&&y(),m.current=!1},children:(0,n.jsxs)(rX.div,{className:"relative w-[calc(100%-32px)] max-w-[min(1100px,calc((100dvh_-_128px)*16/9))]",initial:{opacity:0,scale:.97},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.97},transition:rY,children:[(0,n.jsx)("button",{ref:h,type:"button","aria-label":s.film.close,onClick:y,className:"absolute right-0 bottom-full mb-3 flex size-10 items-center justify-center bg-ty-paper text-ty-ink transition-colors duration-300 hover:bg-ty-lime",children:(0,n.jsx)(rW.CloseIcon,{className:"size-5"})}),(0,n.jsx)("div",{className:"aspect-video w-full overflow-hidden border border-ty-ink-line bg-black",children:(0,n.jsxs)("video",{ref:p,className:"block size-full",controls:!0,autoPlay:!0,playsInline:!0,preload:"metadata",poster:i.poster,children:[(0,n.jsx)("source",{src:i.video,type:"video/mp4"}),i.captions&&(0,n.jsx)("track",{kind:"captions",src:i.captions,srcLang:e,label:s.film.captionsLabel,default:!0})]})})]})},"launch-film")})}),document.body)]})},"useLaunchFilm",0,function(){let e=(0,r.useContext)(rQ);if(!e)throw Error("useLaunchFilm must be used inside <LaunchFilmProvider>");return e}],6332)},41632,e=>{"use strict";var t=e.i(43476),i=e.i(75157);function s(e){return e?{role:"img","aria-label":e}:{"aria-hidden":!0}}function n({mono:e}){return e?(0,t.jsx)("path",{fillRule:"evenodd",d:"M0 0H16V16H0ZM6 6V10H10V6Z"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("path",{className:"fill-ty-lime",d:"M0 0H16V16H0Z"}),(0,t.jsx)("path",{className:"fill-ty-ink",d:"M6 6H10V10H6Z"})]})}e.s(["HoploLogo",0,function({alt:e,tone:s="dark",className:n}){return(0,t.jsx)("img",{src:"light"===s?"/sites/aeye-framer-ai-58d3c447/shared/brand/hoplo-logo-white-trim.png":"/sites/aeye-framer-ai-58d3c447/shared/brand/hoplo-logo-trim.png",alt:e,className:(0,i.cn)("inline-block h-4 w-auto","light"===s?"aspect-[1497/426]":"aspect-[2152/613]",n)})},"TeriyakiLogo",0,function({className:e,label:r,mono:a=!1}){return(0,t.jsxs)("svg",{viewBox:"0 0 379.15 86.1",fill:"currentColor",className:(0,i.cn)("inline-block aspect-[379.15/86.1] h-6 w-auto shrink-0",e),...s(r),children:[(0,t.jsx)("g",{transform:"translate(0 .1) scale(4.4375)",shapeRendering:"crispEdges",children:(0,t.jsx)(n,{mono:a})}),(0,t.jsx)("path",{transform:"translate(-9.25 0)",d:"M119.9 71.1Q112.7 71.1 109.25 67.8Q105.8 64.5 105.8 57.5V25.5H98V18.1H105.8V5.7H114.2V18.1H128.3V25.5H114.2V57.3Q114.2 60.9 115.8 62.3Q117.4 63.7 120.7 63.7H128.3V71.1ZM154.3 72.3Q146.8 72.3 141.35 68.9Q135.9 65.5 132.95 59.25Q130 53 130 44.6Q130 36.2 132.95 30Q135.9 23.8 141.25 20.35Q146.6 16.9 153.9 16.9Q160.8 16.9 166.1 20.15Q171.4 23.4 174.35 29.6Q177.3 35.8 177.3 44.7V47.2H138.8Q139.3 55.7 143.35 60Q147.4 64.3 154.3 64.3Q159.5 64.3 162.85 61.85Q166.2 59.4 167.5 55.4L176.5 56.1Q174.4 63.2 168.55 67.75Q162.7 72.3 154.3 72.3ZM138.8 39.8H168.1Q167.5 32.1 163.65 28.5Q159.8 24.9 153.9 24.9Q147.8 24.9 143.85 28.65Q139.9 32.4 138.8 39.8ZM184.2 71.1V18.1H191.6L191.9 27.9Q194.6 18.1 204.5 18.1H209.7V26.1H204.6Q192.6 26.1 192.6 39.1V71.1ZM214.6 71.1V18.1H223V71.1ZM214.4 9.8V0H223.2V9.8ZM235.8 86.1V78.7H241.9Q244.7 78.7 246.05 77.85Q247.4 77 248.1 75.1L250 70.1H247.1L227.7 18.1H236.9L252.7 62.3L267.8 18.1H277L255.5 77.8Q254 82.1 251 84.1Q248 86.1 242.7 86.1ZM294.8 72.3Q286.6 72.3 281.75 68.5Q276.9 64.7 276.9 57.9Q276.9 51.1 280.9 47.2Q284.9 43.3 293.6 41.7L312.4 38.2Q312.4 24.9 299.8 24.9Q294.3 24.9 291.1 27.35Q287.9 29.8 286.7 34.4L277.8 33.7Q279.3 26.2 285.05 21.55Q290.8 16.9 299.8 16.9Q310 16.9 315.4 22.65Q320.8 28.4 320.8 38.5V60.4Q320.8 63.7 323.6 63.7H325.7V71.1Q324.5 71.3 322.5 71.3Q317.9 71.3 315.55 69.45Q313.2 67.6 312.6 63.4L312.5 62.9Q310.5 67 305.6 69.65Q300.7 72.3 294.8 72.3ZM295.6 64.9Q303.6 64.9 308 60.4Q312.4 55.9 312.4 49.3V45.5L295.2 48.7Q289.8 49.7 287.75 51.75Q285.7 53.8 285.7 57.1Q285.7 60.8 288.35 62.85Q291 64.9 295.6 64.9ZM330.3 71.1V0.1H338.7V46.6L364.5 18.1H375.7L354.8 40.6L376.6 71.1H366.4L349.1 46.3L338.7 57.3V71.1ZM379.8 71.1V18.1H388.2V71.1ZM379.6 9.8V0H388.4V9.8Z"})]})},"TeriyakiMark",0,function({className:e,label:r,mono:a=!1}){return(0,t.jsx)("svg",{viewBox:"0 0 16 16",fill:"currentColor",shapeRendering:"crispEdges",className:(0,i.cn)("inline-block aspect-square w-6 shrink-0",e),...s(r),children:(0,t.jsx)(n,{mono:a})})}])},64114,e=>{"use strict";var t=e.i(43476),i=e.i(71645),s=e.i(75157);e.s(["PixelGrid",0,function({className:e}){let n=(0,i.useRef)(null),[r,a]=(0,i.useState)(null);return(0,i.useEffect)(()=>{let e=n.current;if(!e)return;let t=new ResizeObserver(([e])=>{let{width:t,height:i}=e.contentRect,s=2*(Math.ceil(t/2/48)+1),n=2*(Math.ceil(i/2/48)+1);a(e=>e&&e.cols===s&&e.rows===n?e:{cols:s,rows:n})});return t.observe(e),()=>t.disconnect()}
11,[]),(0,t.jsx)("div",{ref:n,"aria-hidden":!0,className:(0,s.cn)("absolute inset-0 overflow-hidden",e),children:r&&(0,t.jsx)("div",{className:"absolute top-1/2 left-1/2 grid -translate-x-1/2 -translate-y-1/2",style:{gridTemplateColumns:`repeat(${r.cols}, 48px)`,gridAutoRows:"48px"},children:Array.from({length:r.cols*r.rows},(e,i)=>(0,t.jsx)("span",{className:"border-t border-l border-transparent bg-clip-padding transition-[background-color] duration-700 ease-out hover:bg-ty-lime/80 hover:duration-0"},i))})})}])},78388,2528,e=>{"use strict";var t=e.i(43476),i=e.i(75157);e.s(["Section",0,function({id:e,tone:s="light",flush:n=!1,className:r,innerClassName:a,children:o}){return(0,t.jsx)("section",{id:e,className:(0,i.cn)("relative w-full scroll-mt-10 px-6 tablet:px-10 desktop:px-[120px]",!n&&"py-10 tablet:py-16 desktop:py-20","dark"===s?"bg-ty-ink text-ty-paper":"bg-transparent text-ty-ink",r),children:(0,t.jsx)("div",{className:(0,i.cn)("mx-auto w-full max-w-[1200px]",a),children:o})})}],78388),e.s(["SectionLabel",0,function({index:e,total:s,label:n,prefix:r="N.",tone:a="light",line:o=!0,className:l}){let c="dark"===a,u=e=>String(e).padStart(2,"0"),d=c?"text-ty-subtle":"text-ty-muted",h=c?"text-ty-muted":"text-ty-subtle",p=c?"bg-ty-ink-line":"bg-ty-line";return(0,t.jsxs)("div",{className:(0,i.cn)("flex w-full items-center gap-4 font-mono text-[14px] leading-[18.2px] font-medium tracking-[-0.56px] uppercase",l),children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2",children:[(0,t.jsxs)("span",{className:"flex",children:[(0,t.jsxs)("span",{className:d,children:["[",r]}),(0,t.jsx)("span",{className:d,children:u(e)}),(0,t.jsx)("span",{className:c?h:d,children:"/"}),(0,t.jsx)("span",{className:h,children:u(s)}),(0,t.jsx)("span",{className:c?h:d,children:"]"})]}),(0,t.jsx)("span",{"aria-hidden":!0,className:(0,i.cn)("h-px w-6",p)}),(0,t.jsxs)("span",{className:d,children:["> ",n]})]}),o&&(0,t.jsx)("span",{"aria-hidden":!0,className:(0,i.cn)("h-px min-w-0 flex-1",p)})]})}],2528)},77856,e=>{"use strict";var t=e.i(43476),i=e.i(75157);e.s(["Chip",0,function({children:e,tone:s="wash",size:n="md",className:r}){return(0,t.jsx)("span",{className:(0,i.cn)("inline-flex items-center px-0.5 font-mono font-medium uppercase","md"===n?"py-1 text-[14px] leading-[18.2px] tracking-[-0.56px]":"py-0.5 text-[12px] leading-[15.6px] tracking-[-0.48px]",{wash:"bg-ty-paper-deep text-ty-muted",mint:"bg-ty-mint text-ty-ink-soft",lilac:"bg-ty-lilac text-ty-ink-soft",coral:"bg-ty-coral text-ty-ink-soft",lime:"bg-ty-lime text-ty-ink",ink:"bg-ty-ink text-ty-paper"}[s],r),children:e})},"NumberTag",0,function({n:e,tone:s="light",className:n}){return(0,t.jsxs)("span",{className:(0,i.cn)("inline-flex items-end font-sans text-[16px] leading-[20.8px] font-medium tracking-[-0.8px]",n),children:[(0,t.jsx)("span",{className:"dark"===s?"text-ty-muted":"text-ty-faint",children:"//"}),(0,t.jsx)("span",{className:"dark"===s?"text-ty-subtle":"text-ty-ink-soft",children:e})]})}])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.