Files
imen_pishghaman/out/_nuxt/BWho5g3a.js
T

9 lines
180 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{$n as e,An as t,Bn as n,Cn as r,Dn as i,En as a,Gn as o,Hn as s,In as c,Jn as l,Kn as u,Mn as d,Nn as f,On as p,Pn as m,Rn as h,Sn as g,Sr as _,Tn as v,Vn as y,Wn as b,Xn as x,Zn as S,_r as C,br as ee,cn as te,er as ne,g as re,gn as ie,hn as ae,hr as oe,jn as se,kn as w,l as ce,ln as le,qn as T,rr as E,t as ue,tr as de,ur as fe,wn as D,wt as pe,xn as me,xr as he,yr as ge}from"./BLoJslU_.js";var _e=ue(`ArrowUpIcon`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),ve=ue(`AtSignIcon`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`,key:`7n84p3`}]]),ye=ue(`GlobeIcon`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),be=ue(`MenuIcon`,[[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}],[`line`,{x1:`4`,x2:`20`,y1:`6`,y2:`6`,key:`1owob3`}],[`line`,{x1:`4`,x2:`20`,y1:`18`,y2:`18`,key:`yk5zj1`}]]),xe=ue(`PhoneIcon`,[[`path`,{d:`M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z`,key:`foiqr5`}]]),Se=ue(`SendIcon`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),Ce=ue(`ShieldCheckIcon`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),we=ue(`XIcon`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Te=[.22,1,.36,1],Ee=e=>String(e).replace(/\d/g,e=>`۰۱۲۳۴۵۶۷۸۹`[Number(e)]),De=(e=0,t=36)=>({initial:{opacity:0,y:t},whileInView:{opacity:1,y:0},inViewOptions:{once:!0,margin:`-60px`},transition:{duration:.8,delay:e,ease:Te}}),Oe=[{slug:`workwear`,code:`IP-C01`,name:`پوشاک کار و البسه صنعتی`,en:`INDUSTRIAL WORKWEAR`,shortDesc:`لباس‌کار صنعتی با پارچه فلامنت کجراه اعلا، دوخت سه سوزنه و آستر عرق‌گیر؛ مناسب محیط‌های کارگاهی و صنعتی.`,fullDesc:`مجموعه کامل پوشاک کار صنعتی شامل کاپشن و شلوار مهندسی، لباس جوشکاری، پیش‌بند دوبنده و تی‌شرت کار. تمامی مدل‌ها با پارچه فلامنت کجراه اعلا و کتان مقاوم، دوخت صنعتی سه سوزنه پیوسته برای جلوگیری از شکافتگی درزها و آستر عرق‌گیر اختصاصی تولید می‌شوند. موجود در سایزهای M تا 4XL.`,icon:`Shirt`,products:[{code:`IP-W01`,name:`لباسکار مدل آلفا`,en:`ALPHA WORKWEAR`,desc:`کاپشن و شلوار مهندسی با جیب‌های پاکتی و زیپ‌دار، نوار مغزی تزئینی و طراحی ارگونومیک برای تیم‌های فنی و مهندسی.`,specs:[`فلامنت کجراه اعلا`,`دوخت سه سوزنه`,`آستر عرق‌گیر`,`سایز M تا 4XL`],variants:[`طوسی/آبی`,`مشکی/قرمز`,`مشکی/زرد`,`کرم/سرمه‌ای`]},{code:`IP-W02`,name:`لباسکار مدل اورجینال`,en:`ORIGINAL WORKWEAR`,desc:`کاپشن و شلوار استاندارد با دوام بالا، مناسب کادر فنی کارخانجات و خطوط تولید با ترکیب‌های صنعتی دورنگ.`,specs:[`کتان مقاوم`,`دوخت سه سوزنه`,`آستر عرق‌گیر`,`سایز M تا 4XL`],variants:[`ترکیب‌های صنعتی دورنگ`]},{code:`IP-W03`,name:`لباسکار مدل بوفالو`,en:`BUFFALO WORKWEAR`,desc:`طراحی اسپرت با برش‌های تقویتی روی شانه و بازو، زیپ مخفی محافظ‌دار؛ مناسب محیط‌های صنعتی فعال.`,specs:[`فلامنت کجراه اعلا`,`زیپ مخفی محافظ‌دار`,`برش تقویتی شانه`,`سایز M تا 4XL`],variants:[`سرمه‌ای/زرد`,`طوسی/قرمز`,`طوسی/خردلی`,`آبی/مشکی`]},{code:`IP-W04`,name:`لباسکار ست ورک`,en:`SET WORK`,desc:`ست اداری/کارگاهی با انعطاف بالا جهت فعالیت‌های فنی و تعمیراتی؛ قابل استفاده در محیط‌های ستادی و عملیاتی.`,specs:[`کتان مقاوم`,`دوخت سه سوزنه`,`طراحی منعطف`,`سایز M تا 4XL`],variants:[`ترکیب‌های چندگانه کارگاهی`]},{code:`IP-W05`,name:`لباسکار جوشکاری`,en:`WELDING WORKWEAR`,desc:`متریال سنگین کتان یا چرم جهت مقاومت در برابر پاشش جرقه‌های مذاب؛ طراحی‌شده برای جوشکاران صنعتی.`,specs:[`مقاوم به جرقه مذاب`,`کتان سنگین / چرم`,`دوخت صنعتی`,`سایز M تا 4XL`]},{code:`IP-W06`,name:`پیش‌بند دوبنده`,en:`BIB OVERALLS`,desc:`آزادی عمل کامل کتف و شانه با جیب‌های چندمنظوره ابزار بر روی پیش‌سینه؛ ایده‌آل برای کارهای تعمیراتی و مونتاژ.`,specs:[`آزادی حرکت شانه`,`جیب ابزار پیش‌سینه`,`دوخت سه سوزنه`,`سایز M تا 4XL`],variants:[`سرمه‌ای`,`خاکستری`]},{code:`IP-W07`,name:`تی‌شرت صنعتی`,en:`INDUSTRIAL T-SHIRT`,desc:`تی‌شرت یقه‌دار جودون / پنبه‌ای مناسب فصول گرم و زیرپوش کاپشن کارگاهی در سوله‌های سرپوشیده.`,specs:[`پنبه / جودون`,`یقه‌دار`,`مناسب فصول گرم`,`سایز M تا 4XL`]}]},{slug:`safety-footwear`,code:`IP-C02`,name:`پایپوش و کفش ایمنی`,en:`SAFETY FOOTWEAR`,shortDesc:`کفش‌های اداری و کفش‌های ایمنی کارگری؛ راحت و شکیل برای محیط اداری، مقاوم و ضد لغزش برای کارگاه.`,fullDesc:`پایپوش ایمنی شامل کفش‌های اداری برای محیط‌های اداری و سبک صنعتی و کفش‌های ایمنی کارگری برای کارگاه‌ها و پروژه‌های ساختمانی؛ با زیره مقاوم و مواد مقاوم در برابر سایش و مواد شیمیایی سبک.`,icon:`Footprints`,groups:[{slug:`office`,name:`کفش اداری`,desc:`مناسب محیط‌های اداری و سبک صنعتی، راحت، سبک و شکیل با زیره مقاوم.`},{slug:`worker`,name:`کفش ایمنی کارگری`,desc:`مناسب کارگاه‌ها و پروژه‌های ساختمانی، مقاوم در برابر سایش و مواد شیمیایی سبک.`}],products:[{code:`IP-F01`,group:`office`,name:`کفش اداری مدل ۱۱۷۴`,en:`OFFICE SHOE 1174`,desc:`مناسب محیط‌های اداری و سبک صنعتی، راحت، سبک و شکیل با زیره مقاوم.`,specs:[`چرم نبوک`,`بنددار`,`زیره مقاوم`],image:`/images/products/shoes/office/1.webp`},{code:`IP-F02`,group:`office`,name:`کفش اداری بی‌بند مدل ۶`,en:`SLIP-ON OFFICE SHOE`,desc:`مناسب محیط‌های اداری و سبک صنعتی، راحت، سبک و شکیل با زیره مقاوم.`,specs:[`چرم طبیعی`,`بدون بند`,`زیره مقاوم`],image:`/images/products/shoes/office/2.webp`},{code:`IP-F03`,group:`office`,name:`کفش اداری بنددار مشکی`,en:`LACE-UP OFFICE SHOE`,desc:`مناسب محیط‌های اداری و سبک صنعتی، راحت، سبک و شکیل با زیره مقاوم.`,specs:[`چرم طبیعی`,`بنددار`,`زیره مقاوم`],image:`/images/products/shoes/office/3.webp`},{code:`IP-F04`,group:`office`,name:`کفش اداری بی‌بند AAEA075`,en:`SLIP-ON OFFICE SHOE AAEA075`,desc:`مناسب محیط‌های اداری و سبک صنعتی، راحت، سبک و شکیل با زیره مقاوم.`,specs:[`چرم طبیعی`,`بدون بند`,`زیره مقاوم`],image:`/images/products/shoes/office/4.webp`},{code:`IP-F05`,group:`office`,name:`کفش اداری شبرو`,en:`SHEBRO OFFICE SHOE`,desc:`مناسب محیط‌های اداری و سبک صنعتی، راحت، سبک و شکیل با زیره مقاوم.`,specs:[`چرم طبیعی`,`بنددار`,`زیره مقاوم`],image:`/images/products/shoes/office/5.webp`},{code:`IP-F06`,group:`office`,name:`کفش اداری بی‌بند کلاسیک`,en:`CLASSIC SLIP-ON OFFICE SHOE`,desc:`مناسب محیط‌های اداری و سبک صنعتی، راحت، سبک و شکیل با زیره مقاوم.`,specs:[`چرم طبیعی`,`بدون بند`,`زیره مقاوم`],image:`/images/products/shoes/office/6.webp`},{code:`IP-F07`,group:`office`,name:`کفش اداری کالج`,en:`LOAFER OFFICE SHOE`,desc:`مناسب محیط‌های اداری و سبک صنعتی، راحت، سبک و شکیل با زیره مقاوم.`,specs:[`چرم طبیعی`,`کالج`,`زیره مقاوم`],image:`/images/products/shoes/office/7.webp`},{code:`IP-F08`,group:`office`,name:`کفش اداری دیپلمات`,en:`DIPLOMAT OFFICE SHOE`,desc:`مناسب محیط‌های اداری و سبک صنعتی، راحت، سبک و شکیل با زیره مقاوم.`,specs:[`چرم طبیعی`,`بنددار`,`طراحی رسمی`],image:`/images/products/shoes/office/8.webp`},{code:`IP-F09`,group:`worker`,name:`کفش ایمنی کارگری مدل ۱`,en:`WORKER SAFETY SHOE`,desc:`مناسب کارگاه‌ها و پروژه‌های ساختمانی، مقاوم در برابر سایش و مواد شیمیایی سبک.`,specs:[`مقاوم به سایش`,`زیره ضد لغزش`],image:`/images/products/shoes/worker/1.png`},{code:`IP-F10`,group:`worker`,name:`کفش ایمنی کارگری مدل ۲`,en:`WORKER SAFETY SHOE`,desc:`مناسب کارگاه‌ها و پروژه‌های ساختمانی، مقاوم در برابر سایش و مواد شیمیایی سبک.`,specs:[`مقاوم به سایش`,`زیره ضد لغزش`],image:`/images/products/shoes/worker/2.png`},{code:`IP-F11`,group:`worker`,name:`کفش ایمنی کارگری مدل ۹۰`,en:`WORKER SAFETY SHOE 90`,desc:`مناسب کارگاه‌ها و پروژه‌های ساختمانی، مقاوم در برابر سایش و مواد شیمیایی سبک.`,specs:[`مقاوم به سایش`,`زیره ضد لغزش`],image:`/images/products/shoes/worker/3.png`},{code:`IP-F12`,group:`worker`,name:`کفش ایمنی پاتن پدیده تبریز مدل رایکا S1017`,en:`PATEN PADIDEH RAYKA S1017`,desc:`مناسب کارگاه‌ها و پروژه‌های ساختمانی، مقاوم در برابر سایش و مواد شیمیایی سبک.`,specs:[`پاتن پدیده تبریز`,`مقاوم به سایش`,`زیره ضد لغزش`],image:`/images/products/shoes/worker/4.png`},{code:`IP-F13`,group:`worker`,name:`کفش ایمنی پیما مدل دنا`,en:`PAYMA DENA SAFETY SHOE`,desc:`مناسب کارگاه‌ها و پروژه‌های ساختمانی، مقاوم در برابر سایش و مواد شیمیایی سبک.`,specs:[`پیما`,`مقاوم به سایش`,`زیره ضد لغزش`],image:`/images/products/shoes/worker/5.png`},{code:`IP-F14`,group:`worker`,name:`کفش کار کارگری ساق‌دار`,en:`WORKER SAFETY BOOT`,desc:`مناسب کارگاه‌ها و پروژه‌های ساختمانی، مقاوم در برابر سایش و مواد شیمیایی سبک.`,specs:[`ساق‌دار`,`مقاوم به سایش`,`زیره ضد لغزش`],image:`/images/products/shoes/worker/6.png`}]},{slug:`protective-gloves`,code:`IP-C03`,name:`دستکش‌های حفاظتی`,en:`PROTECTIVE GLOVES`,shortDesc:`دستکش‌های ضد برش، چرم، ضد اسید و ضد حلال برای کارهای سنگین صنعتی، جوشکاری و تماس با مواد شیمیایی.`,fullDesc:`دستکش‌های حفاظت فردی شامل مدل‌های ضد برش، چرم، ضد اسید و ضد حلال؛ از برندهای استادکار، امریکن سیفتی، ماکسی درای و NM Safety. هر مدل متناسب با نوع خطر محیط کار انتخاب شده است.`,icon:`Hand`,groups:[{slug:`cut`,name:`دستکش ضد برش`,desc:`ایمن در برابر تیغه‌ها و فلزات تیز.`},{slug:`leather`,name:`دستکش چرم`,desc:`محافظ دست در برابر حرارت، جرقه و سایش در کارهای سنگین و جوشکاری.`},{slug:`acid`,name:`دستکش ضد اسید`,desc:`محافظت کامل در برابر اسیدها و بازها.`},{slug:`solvent`,name:`دستکش ضد حلال`,desc:`مقاومت بالا در برابر تماس با مواد شیمیایی.`}],products:[{code:`IP-G01`,group:`cut`,name:`دستکش ضد برش لاتکسی`,en:`LATEX CUT-RESISTANT GLOVE`,desc:`ایمن در برابر تیغه‌ها و فلزات تیز.`,specs:[`ضد برش`,`پوشش لاتکس`],image:`/images/products/gloves/cut/1.webp`},{code:`IP-G02`,group:`cut`,name:`دستکش ضد برش مدل ۲`,en:`CUT-RESISTANT GLOVE`,desc:`ایمن در برابر تیغه‌ها و فلزات تیز.`,specs:[`ضد برش`],image:`/images/products/gloves/cut/2.webp`},{code:`IP-G03`,group:`cut`,name:`دستکش ضد برش مدل ۳`,en:`CUT-RESISTANT GLOVE`,desc:`ایمن در برابر تیغه‌ها و فلزات تیز.`,specs:[`ضد برش`],image:`/images/products/gloves/cut/3.webp`},{code:`IP-G04`,group:`cut`,name:`دستکش ضد برش استادکار ۱۲ جفتی`,en:`OSTADKAR CUT-RESISTANT GLOVE`,desc:`ایمن در برابر تیغه‌ها و فلزات تیز.`,specs:[`ضد برش`,`استادکار`,`بسته ۱۲ جفتی`],image:`/images/products/gloves/cut/4.webp`},{code:`IP-G05`,group:`cut`,name:`دستکش ضد برش تانگ وانگ`,en:`TANG WANG CUT-RESISTANT GLOVE`,desc:`ایمن در برابر تیغه‌ها و فلزات تیز.`,specs:[`ضد برش`,`تانگ وانگ`],image:`/images/products/gloves/cut/5.webp`},{code:`IP-G06`,group:`leather`,name:`دستکش چرم مدل ۰۷`,en:`LEATHER GLOVE`,desc:`محافظ دست در برابر حرارت، جرقه و سایش در کارهای سنگین و جوشکاری.`,specs:[`چرم`],image:`/images/products/gloves/leather/1.webp`},{code:`IP-G07`,group:`leather`,name:`دستکش چرم BMW`,en:`BMW LEATHER GLOVE`,desc:`محافظ دست در برابر حرارت، جرقه و سایش در کارهای سنگین و جوشکاری.`,specs:[`چرم`,`ساق بلند`],image:`/images/products/gloves/leather/2.webp`},{code:`IP-G08`,group:`leather`,name:`دستکش کف چرم دوبل ساق پارچه‌ای`,en:`DOUBLE-PALM LEATHER GLOVE, FABRIC CUFF`,desc:`محافظ دست در برابر حرارت، جرقه و سایش در کارهای سنگین و جوشکاری.`,specs:[`کف چرم دوبل`,`ساق پارچه‌ای`],image:`/images/products/gloves/leather/3.webp`},{code:`IP-G09`,group:`leather`,name:`دستکش کف چرم دوبل ساق چرم`,en:`DOUBLE-PALM LEATHER GLOVE, LEATHER CUFF`,desc:`محافظ دست در برابر حرارت، جرقه و سایش در کارهای سنگین و جوشکاری.`,specs:[`کف چرم دوبل`,`ساق چرم`],image:`/images/products/gloves/leather/4.webp`},{code:`IP-G10`,group:`leather`,name:`دستکش هوبارت امریکن سیفتی`,en:`AMERICAN SAFETY HOBART GLOVE`,desc:`محافظ دست در برابر حرارت، جرقه و سایش در کارهای سنگین و جوشکاری.`,specs:[`چرم`,`جوشکاری`,`EN 388 / EN 407`],image:`/images/products/gloves/leather/5.webp`},{code:`IP-G11`,group:`leather`,name:`دستکش هوبارت طرح فرانسه`,en:`FRENCH-STYLE HOBART GLOVE`,desc:`محافظ دست در برابر حرارت، جرقه و سایش در کارهای سنگین و جوشکاری.`,specs:[`چرم`,`جوشکاری`],image:`/images/products/gloves/leather/6.webp`},{code:`IP-G12`,group:`acid`,name:`دستکش ضد اسید مدل ۱`,en:`ACID-RESISTANT GLOVE`,desc:`محافظت کامل در برابر اسیدها و بازها.`,specs:[`ضد اسید`],image:`/images/products/gloves/acid/1.webp`},{code:`IP-G13`,group:`acid`,name:`دستکش ضد اسید مدل ۲`,en:`ACID-RESISTANT GLOVE`,desc:`محافظت کامل در برابر اسیدها و بازها.`,specs:[`ضد اسید`],image:`/images/products/gloves/acid/2.webp`},{code:`IP-G14`,group:`acid`,name:`دستکش ضد اسید مدل ۳`,en:`ACID-RESISTANT GLOVE`,desc:`محافظت کامل در برابر اسیدها و بازها.`,specs:[`ضد اسید`],image:`/images/products/gloves/acid/3.webp`},{code:`IP-G15`,group:`acid`,name:`دستکش ضد اسید مقاوم شیمیایی`,en:`CHEMICAL-RESISTANT GLOVE`,desc:`محافظت کامل در برابر اسیدها و بازها.`,specs:[`ضد اسید`,`مقاوم شیمیایی`,`ساق بلند`],image:`/images/products/gloves/acid/4.webp`},{code:`IP-G16`,group:`solvent`,name:`دستکش ضد حلال مدل ۱۳`,en:`SOLVENT-RESISTANT GLOVE`,desc:`مقاومت بالا در برابر تماس با مواد شیمیایی.`,specs:[`ضد حلال`],image:`/images/products/gloves/solvent/1.webp`},{code:`IP-G17`,group:`solvent`,name:`دستکش ماکسی درای پلاس 56-530`,en:`MAXIDRY PLUS 56-530`,desc:`مقاومت بالا در برابر تماس با مواد شیمیایی.`,specs:[`ضد حلال`,`MaxiDry Plus`],image:`/images/products/gloves/solvent/2.webp`},{code:`IP-G18`,group:`solvent`,name:`دستکش ضد حلال نیتریلی`,en:`NITRILE SOLVENT-RESISTANT GLOVE`,desc:`مقاومت بالا در برابر تماس با مواد شیمیایی.`,specs:[`ضد حلال`,`نیتریل`],image:`/images/products/gloves/solvent/3.webp`},{code:`IP-G19`,group:`solvent`,name:`دستکش نیتریل آزمایشگاهی ضد حلال NM Safety`,en:`NM SAFETY NITRILE LAB GLOVE`,desc:`مقاومت بالا در برابر تماس با مواد شیمیایی.`,specs:[`ضد حلال`,`نیتریل`,`آزمایشگاهی`],image:`/images/products/gloves/solvent/4.webp`}]},{slug:`safety-helmets`,code:`IP-C04`,name:`کلاه ایمنی`,en:`SAFETY HELMETS`,shortDesc:`کلاه‌های ایمنی کارگری، مهندسی، کار در ارتفاع و کپ ایمنی؛ مقاوم در برابر ضربه و سقوط اجسام.`,fullDesc:`انواع کلاه ایمنی صنعتی شامل مدل‌های کارگری، مهندسی، کار در ارتفاع با بند چانه قابل تنظیم و کپ ایمنی سبک. با پوسته ضربه‌گیر مقاوم، رگلاژ داخلی قابل تنظیم و تنوع رنگی استاندارد HSE.`,icon:`HardHat`,groups:[{slug:`worker`,name:`کلاه کارگری`,desc:`محافظت از سر در محیط‌های صنعتی و کارگاه‌ها، مقاوم در برابر ضربه و سقوط اجسام.`},{slug:`engineering`,name:`کلاه مهندسی`,desc:`مناسب محیط‌های اداری و صنعتی سبک، راحت و شکیل با تهویه مناسب.`},{slug:`height`,name:`کار در ارتفاع`,desc:`دارای بند چانه قابل تنظیم برای ثبات بیشتر هنگام کار در ارتفاع.`},{slug:`cap`,name:`کپ ایمنی`,desc:`سبک و راحت، مناسب استفاده روزمره در محیط‌های صنعتی و اداری.`}],products:[{code:`IP-H01`,group:`worker`,name:`کلاه ایمنی کارگری آبی`,en:`WORKER SAFETY HELMET`,desc:`محافظت از سر در محیط‌های صنعتی و کارگاه‌ها، مقاوم در برابر ضربه و سقوط اجسام.`,specs:[`پوسته ضربه‌گیر`,`رگلاژ قابل تنظیم`],image:`/images/products/helmets/2.webp`},{code:`IP-H02`,group:`engineering`,name:`کلاه ایمنی مهندسی پادکس`,en:`PADEX ENGINEERING HELMET`,desc:`مناسب محیط‌های اداری و صنعتی سبک، راحت و شکیل با تهویه مناسب.`,specs:[`پادکس`,`تهویه مناسب`,`رگلاژ قابل تنظیم`],image:`/images/products/helmets/11.webp`},{code:`IP-H03`,group:`engineering`,name:`کلاه ایمنی مهندسی پادکس PADX`,en:`PADEX PADX ENGINEERING HELMET`,desc:`مناسب محیط‌های اداری و صنعتی سبک، راحت و شکیل با تهویه مناسب.`,specs:[`پادکس`,`تهویه مناسب`,`رگلاژ قابل تنظیم`],image:`/images/products/helmets/12.webp`},{code:`IP-H04`,group:`engineering`,name:`کلاه ایمنی مهندس پادکس (نمای داخلی)`,en:`PADEX HELMET HARNESS`,desc:`مناسب محیط‌های اداری و صنعتی سبک، راحت و شکیل با تهویه مناسب.`,specs:[`پادکس`,`یراق داخلی`,`رگلاژ قابل تنظیم`],image:`/images/products/helmets/10.webp`},{code:`IP-H05`,group:`height`,name:`کلاه ایمنی کار در ارتفاع با عینک`,en:`HEIGHT HELMET WITH VISOR`,desc:`دارای بند چانه قابل تنظیم برای ثبات بیشتر هنگام کار در ارتفاع.`,specs:[`بند چانه`,`عینک داخلی`,`رگلاژ قابل تنظیم`],image:`/images/products/helmets/1.webp`},{code:`IP-H06`,group:`height`,name:`کلاه ایمنی کار در ارتفاع uvex`,en:`UVEX HEIGHT HELMET`,desc:`دارای بند چانه قابل تنظیم برای ثبات بیشتر هنگام کار در ارتفاع.`,specs:[`uvex`,`بند چانه`,`تهویه مناسب`],image:`/images/products/helmets/3.webp`},{code:`IP-H07`,group:`height`,name:`کلاه ایمنی کار در ارتفاع سبز`,en:`HEIGHT SAFETY HELMET`,desc:`دارای بند چانه قابل تنظیم برای ثبات بیشتر هنگام کار در ارتفاع.`,specs:[`بند چانه`,`رگلاژ قابل تنظیم`],image:`/images/products/helmets/4.webp`},{code:`IP-H08`,group:`height`,name:`کلاه ایمنی صنعتی MK8`,en:`MK8 INDUSTRIAL HELMET`,desc:`دارای بند چانه قابل تنظیم برای ثبات بیشتر هنگام کار در ارتفاع.`,specs:[`MK8`,`بند چانه`,`تهویه مناسب`],image:`/images/products/helmets/9.webp`},{code:`IP-H09`,group:`cap`,name:`کپ ایمنی ضربه‌گیر`,en:`SAFETY BUMP CAP`,desc:`سبک و راحت، مناسب استفاده روزمره در محیط‌های صنعتی و اداری.`,specs:[`نقاب‌دار`,`ضربه‌گیر داخلی`,`سبک‌وزن`],image:`/images/products/helmets/5.webp`}]},{slug:`eye-protection`,code:`IP-C05`,name:`عینک ایمنی و صنعتی`,en:`EYE PROTECTION`,shortDesc:`عینک‌های شفاف و دودی و گاگل‌های محافظتی با ویژگی‌های ضد ضربه، ضد خش، ضد بخار و UV.`,fullDesc:`عینک‌های ایمنی صنعتی شامل عینک‌های شفاف، دودی و UV و گاگل‌های کش‌دار از برندهای uvex، توتاص، کاناسیف و تک پلاست. ضد ضربه، ضد خش، ضد بخار و قابل تنظیم برای انواع سایز صورت.`,icon:`Glasses`,groups:[{slug:`clear`,name:`عینک شفاف`,desc:`محافظت از چشم‌ها در برابر برخورد اجسام و ابزار؛ ضد خش با دید واضح.`},{slug:`tinted`,name:`عینک دودی و UV`,desc:`محافظت در برابر اشعه مضر خورشید و نور شدید.`},{slug:`goggle`,name:`گاگل`,desc:`ضد بخار و ضد ضربه؛ جلوگیری از ایجاد مه در محیط‌های گرم یا مرطوب.`}],products:[{code:`IP-E01`,group:`clear`,name:`عینک ایمنی شفاف دسته قابل تنظیم`,en:`ADJUSTABLE CLEAR SAFETY GLASSES`,desc:`محافظت از چشم‌ها در برابر برخورد اجسام و ابزار؛ قابل تنظیم برای انواع سایز صورت.`,specs:[`ضد ضربه`,`قابل تنظیم`],image:`/images/products/eyewear/1.webp`},{code:`IP-E02`,group:`clear`,name:`عینک ایمنی روطبی`,en:`OVER-SPEC SAFETY GLASSES`,desc:`محافظت از چشم‌ها در برابر برخورد اجسام و ابزار؛ قابل استفاده روی عینک طبی.`,specs:[`ضد ضربه`,`روطبی`],image:`/images/products/eyewear/4.webp`},{code:`IP-E03`,group:`clear`,name:`عینک ایمنی uvex i-5`,en:`UVEX I-5 SAFETY GLASSES`,desc:`محافظت از چشم‌ها در برابر برخورد اجسام و ابزار؛ ضد خش با دید واضح.`,specs:[`uvex`,`ضد ضربه`,`ضد خش`],image:`/images/products/eyewear/5.webp`},{code:`IP-E04`,group:`clear`,name:`عینک شیشه سفید تک پلاست`,en:`TAK PLAST CLEAR GLASSES`,desc:`محافظت از چشم‌ها در برابر برخورد اجسام و ابزار؛ دارای محافظ کناری.`,specs:[`تک پلاست`,`محافظ کناری`],image:`/images/products/eyewear/11.webp`},{code:`IP-E05`,group:`tinted`,name:`عینک ایمنی uvex دودی`,en:`UVEX TINTED SAFETY GLASSES`,desc:`محافظت در برابر اشعه مضر خورشید و نور شدید.`,specs:[`uvex`,`شیشه UV`,`ضد ضربه`],image:`/images/products/eyewear/6.webp`},{code:`IP-E06`,group:`tinted`,name:`عینک ایمنی توتاص AT113`,en:`TOTAS AT113`,desc:`محافظت در برابر اشعه مضر خورشید و نور شدید.`,specs:[`توتاص`,`شیشه UV`,`ضد ضربه`],image:`/images/products/eyewear/7.webp`},{code:`IP-E07`,group:`tinted`,name:`عینک ایمنی کاناسیف 20105`,en:`CANASAFE 20105`,desc:`محافظت در برابر اشعه مضر و نور شدید جوشکاری.`,specs:[`کاناسیف`,`شیشه UV`,`قابل تنظیم`],image:`/images/products/eyewear/9.webp`},{code:`IP-E08`,group:`tinted`,name:`عینک توتاص AT116`,en:`TOTAS AT116`,desc:`محافظت در برابر اشعه مضر خورشید و نور شدید.`,specs:[`توتاص`,`شیشه UV`,`روطبی`],image:`/images/products/eyewear/10.webp`},{code:`IP-E09`,group:`goggle`,name:`گاگل uvex ultravision`,en:`UVEX ULTRAVISION GOGGLE`,desc:`ضد بخار و ضد ضربه؛ جلوگیری از ایجاد مه در محیط‌های گرم یا مرطوب.`,specs:[`uvex`,`ضد بخار`,`کش‌دار`],image:`/images/products/eyewear/2.webp`},{code:`IP-E10`,group:`goggle`,name:`گاگل ایمنی کش‌دار`,en:`SAFETY GOGGLE`,desc:`ضد بخار و ضد ضربه؛ جلوگیری از ایجاد مه در محیط‌های گرم یا مرطوب.`,specs:[`ضد بخار`,`کش‌دار`],image:`/images/products/eyewear/3.webp`},{code:`IP-E11`,group:`goggle`,name:`گاگل ایمنی توتاص ATBM`,en:`TOTAS ATBM GOGGLE`,desc:`ضد بخار و ضد ضربه؛ جلوگیری از ایجاد مه در محیط‌های گرم یا مرطوب.`,specs:[`توتاص`,`ضد بخار`,`کش‌دار`],image:`/images/products/eyewear/8.webp`}]},{slug:`hearing-protection`,code:`IP-C06`,name:`حفاظت شنوایی`,en:`HEARING PROTECTION`,shortDesc:`ایرماف روگوشی با کاهش ۲۸ دسی‌بل و ایرپلاگ‌های اسفنجی و سیلیکونی برای محیط‌های پرسروصدا.`,fullDesc:`تجهیزات حفاظت شنوایی شامل ایرماف (محافظ روگوشی) با کاهش تراز صدا تا ۲۸ دسی‌بل و ایرپلاگ (داخل‌گوشی) در مدل‌های اسفنجی فرم‌گیر و پله‌ای سیلیکونی. مناسب محیط‌های با آلودگی صوتی بالای ۸۵ دسی‌بل، کمپرسورخانه‌ها و خطوط تولید سنگین.`,icon:`Ear`,groups:[{slug:`earmuff`,name:`ایرماف`,desc:`کاهش صدا تا ۲۸ دسی‌بل، مناسب محیط‌های صنعتی و کارگاهی، قابل تنظیم و راحت برای استفاده طولانی.`},{slug:`earplug`,name:`ایرپلاگ`,desc:`محافظت در برابر صداهای شدید و نویز محیط، سبک و راحت، مدل‌های یکبار مصرف و چندبار مصرف.`}],products:[{code:`IP-HP01`,group:`earmuff`,name:`ایرماف هلبرگ`,en:`HELLBERG EARMUFF`,desc:`کاهش صدا تا ۲۸ دسی‌بل، مناسب محیط‌های صنعتی و کارگاهی، قابل تنظیم و راحت برای استفاده طولانی.`,specs:[`Hellberg`,`هدبند قابل تنظیم`,`بالشتک نرم`],image:`/images/products/hearing/1.webp`},{code:`IP-HP02`,group:`earmuff`,name:`ایرماف uvex K2`,en:`UVEX K2 EARMUFF`,desc:`کاهش صدا تا ۲۸ دسی‌بل، مناسب محیط‌های صنعتی و کارگاهی، قابل تنظیم و راحت برای استفاده طولانی.`,specs:[`uvex`,`هدبند قابل تنظیم`,`بالشتک نرم`],image:`/images/products/hearing/2.webp`},{code:`IP-HP03`,group:`earmuff`,name:`ایرماف بوفالو 110`,en:`BUFFALO 110 EARMUFF`,desc:`کاهش صدا تا ۲۸ دسی‌بل، مناسب محیط‌های صنعتی و کارگاهی، قابل تنظیم و راحت برای استفاده طولانی.`,specs:[`بوفالو`,`هدبند قابل تنظیم`,`بالشتک نرم`],image:`/images/products/hearing/4.webp`},{code:`IP-HP04`,group:`earmuff`,name:`گوشی صداگیر 3M`,en:`3M EARMUFF`,desc:`کاهش صدا تا ۲۸ دسی‌بل، مناسب محیط‌های صنعتی و کارگاهی، قابل تنظیم و راحت برای استفاده طولانی.`,specs:[`3M`,`هدبند قابل تنظیم`,`بالشتک نرم`],image:`/images/products/hearing/8.webp`},{code:`IP-HP05`,group:`earplug`,name:`ایرپلاگ کاستا مکس فیت MAXFIT`,en:`COSTA MAXFIT EARPLUG`,desc:`محافظت در برابر صداهای شدید و نویز محیط، سبک و راحت.`,specs:[`سیلیکونی پله‌ای`,`بنددار`,`چندبار مصرف`],image:`/images/products/hearing/3.webp`},{code:`IP-HP06`,group:`earplug`,name:`ایرپلاگ اسفنجی Bilsom 303L`,en:`BILSOM 303L FOAM EARPLUG`,desc:`محافظت در برابر صداهای شدید و نویز محیط، سبک و راحت.`,specs:[`اسفنجی`,`بنددار / بدون بند`,`یکبار مصرف`],image:`/images/products/hearing/5.webp`},{code:`IP-HP07`,group:`earplug`,name:`ایرپلاگ اسفنجی ماگما`,en:`MAGMA FOAM EARPLUG`,desc:`محافظت در برابر صداهای شدید و نویز محیط، سبک و راحت.`,specs:[`اسفنجی`,`یکبار مصرف`],image:`/images/products/hearing/6.webp`},{code:`IP-HP08`,group:`earplug`,name:`ایرپلاگ مکس فیت با قاب`,en:`MAXFIT EARPLUG WITH CASE`,desc:`محافظت در برابر صداهای شدید و نویز محیط، سبک و راحت.`,specs:[`سیلیکونی پله‌ای`,`بنددار`,`قاب نگهداری`],image:`/images/products/hearing/7.webp`}]},{slug:`respiratory-protection`,code:`IP-C07`,name:`حفاظت تنفسی`,en:`RESPIRATORY PROTECTION`,shortDesc:`ماسک‌های نیم‌صورت، تمام‌صورت، شیمیایی، P2/P3 و فیلتردار برای محافظت در برابر گازها و ذرات.`,fullDesc:`تجهیزات حفاظت تنفسی شامل ماسک‌های نیم‌صورت، تمام‌صورت، شیمیایی با کارتریج تخصصی، ماسک‌های فیلتردار P2/P3 برای ذرات میکرونی، ماسک‌های با فیلتر تعویضی اقتصادی و ماسک‌های سه‌لایه بهداشتی. مناسب کار با حلال‌های فرار، غبارهای معدنی، رنگ‌پاشی و خطوط شیمیایی.`,icon:`ShieldPlus`,groups:[{slug:`half`,name:`ماسک نیم‌صورت`,desc:`پوشش‌دهی بینی و دهان با فیلتر قابل تعویض؛ مناسب محیط‌های صنعتی با آلودگی متوسط و بخارات شیمیایی.`},{slug:`full`,name:`ماسک تمام‌صورت`,desc:`محافظت کامل از صورت و چشم‌ها، مناسب کار با مواد شیمیایی و محیط‌های پرخطر.`},{slug:`particulate`,name:`ماسک فیلتردار P2/P3`,desc:`محافظت در برابر گرد و غبار و ذرات معلق در هوا.`},{slug:`medical`,name:`ماسک سه‌لایه`,desc:`ماسک سبک و راحت، مناسب استفاده روزمره و محیط‌های با آلودگی کم.`}],products:[{code:`IP-R01`,group:`half`,name:`ماسک نیم‌صورت با فیلتر تعویضی`,en:`HALF-FACE RESPIRATOR WITH FILTERS`,desc:`پوشش‌دهی بینی و دهان با فیلتر قابل تعویض برای استفاده طولانی‌مدت.`,specs:[`نیم‌صورت`,`فیلتر تعویضی`,`دو کارتریج`],image:`/images/products/respiratory/5.webp`},{code:`IP-R02`,group:`half`,name:`ماسک نیم‌صورت نورث 5500`,en:`NORTH 5500 HALF MASK`,desc:`پوشش‌دهی بینی و دهان، مناسب محیط‌های صنعتی با آلودگی متوسط.`,specs:[`North`,`نیم‌صورت`,`فیلتر تعویضی`],image:`/images/products/respiratory/6.webp`},{code:`IP-R03`,group:`half`,name:`ماسک شیمیایی نیم‌صورت 3M`,en:`3M HALF-FACE RESPIRATOR`,desc:`محافظت در برابر بخارات و گازهای شیمیایی با کارتریج و فیلتر قابل تعویض.`,specs:[`3M`,`کارتریج شیمیایی`,`فیلتر تعویضی`],image:`/images/products/respiratory/7.webp`},{code:`IP-R04`,group:`half`,name:`ماسک نیم‌صورت نورث 7700`,en:`NORTH 7700 HALF MASK`,desc:`پوشش‌دهی بینی و دهان با بدنه سیلیکونی، مناسب استفاده طولانی‌مدت.`,specs:[`North`,`سیلیکونی`,`فیلتر تعویضی`],image:`/images/products/respiratory/11.webp`},{code:`IP-R05`,group:`half`,name:`ماسک نیم‌صورت نورث 7700 (نمای جانبی)`,en:`NORTH 7700 HALF MASK`,desc:`پوشش‌دهی بینی و دهان با بدنه سیلیکونی، مناسب استفاده طولانی‌مدت.`,specs:[`North`,`سیلیکونی`,`فیلتر تعویضی`],image:`/images/products/respiratory/10.webp`},{code:`IP-R06`,group:`full`,name:`ماسک تمام‌صورت`,en:`FULL-FACE RESPIRATOR`,desc:`محافظت کامل از صورت و چشم‌ها، مناسب کار با مواد شیمیایی و محیط‌های پرخطر.`,specs:[`تمام‌صورت`,`شیشه ضد ضربه`,`فیلتر تعویضی`],image:`/images/products/respiratory/4.webp`},{code:`IP-R07`,group:`full`,name:`ماسک تنفسی دراگر`,en:`DRÄGER FULL-FACE RESPIRATOR`,desc:`محافظت کامل از صورت و چشم‌ها، مناسب کار با مواد شیمیایی و محیط‌های پرخطر.`,specs:[`Dräger`,`تمام‌صورت`,`فیلتر چندمنظوره`],image:`/images/products/respiratory/8.webp`},{code:`IP-R08`,group:`particulate`,name:`ماسک فیلتردار تاشو`,en:`FOLDABLE PARTICULATE MASK`,desc:`محافظت در برابر گرد و غبار و ذرات معلق در هوا.`,specs:[`P2`,`تاشو`,`یکبار مصرف`],image:`/images/products/respiratory/1.webp`},{code:`IP-R09`,group:`particulate`,name:`ماسک فیلتردار سوپاپ‌دار`,en:`VALVED PARTICULATE MASK`,desc:`محافظت در برابر گرد و غبار و ذرات معلق در هوا.`,specs:[`P2 / P3`,`سوپاپ بازدمی`,`یکبار مصرف`],image:`/images/products/respiratory/2.webp`},{code:`IP-R10`,group:`particulate`,name:`ماسک فیلتردار دراگر سوپاپ‌دار`,en:`DRÄGER VALVED PARTICULATE MASK`,desc:`محافظت در برابر گرد و غبار و ذرات معلق در هوا.`,specs:[`Dräger`,`سوپاپ بازدمی`,`P2 / P3`],image:`/images/products/respiratory/3.webp`},{code:`IP-R11`,group:`medical`,name:`ماسک سه‌لایه پزشکی`,en:`THREE-LAYER MEDICAL MASK`,desc:`ماسک سبک و راحت، مناسب استفاده روزمره و محیط‌های با آلودگی کم.`,specs:[`سه‌لایه`,`یکبار مصرف`,`بسته ۵۰ عددی`],image:`/images/products/respiratory/9.webp`}]},{slug:`traffic-equipment`,code:`IP-C08`,name:`تجهیزات ترافیکی و ایمنی محیطی`,en:`TRAFFIC & SITE SAFETY`,shortDesc:`مخروط، نیوجرسی، استوانه، سرعت‌گیر، آینه محدب و سایر تجهیزات ایمن‌سازی محوطه صنعتی.`,fullDesc:`تجهیزات ترافیکی و ایمنی محیطی شامل مخروط ترافیکی، نیوجرسی پلاستیکی، استوانه و بولارد، چراغ و تابلوهای هشداردهنده، باتوم ترافیکی، نوارهای خطر، سرعت‌گیر لاستیکی، آینه‌های محدب، محافظ گوشه ستون و گل‌میخ خورشیدی. مناسب ایمن‌سازی محوطه کارخانه، انبارها، رمپ‌ها و پارکینگ‌ها.`,icon:`TriangleAlert`,products:[{code:`IP-T01`,name:`مخروط ترافیکی`,en:`TRAFFIC CONE`,desc:`PVC انعطاف‌پذیر با شبرنگ‌های استاندارد روز و شب؛ مقاوم در برابر واژگونی و ضربه خودرو.`,specs:[`PVC انعطاف‌پذیر`,`شبرنگ استاندارد`,`مقاوم به واژگونی`,`قابل رؤیت شبانه`]},{code:`IP-T02`,name:`نیوجرسی پلاستیکی`,en:`NEW JERSEY BARRIER`,desc:`بدنه پلی‌اتیلنی مدولار قابل اتصال با قابلیت پرشوندگی با آب یا ماسه جهت تثبیت و ایجاد حائل.`,specs:[`پلی‌اتیلن مدولار`,`قابل اتصال`,`پرشدنی با آب/ماسه`,`مقاوم UV`]},{code:`IP-T03`,name:`استوانه ترافیکی`,en:`TRAFFIC BOLLARD`,desc:`پلی‌اورتان ارتجاعی انعطاف‌پذیر پس از ضربه؛ مجهز به حلقه‌های شبرنگ هشدار برای تفکیک مسیر.`,specs:[`پلی‌اورتان ارتجاعی`,`بازگشت پس از ضربه`,`شبرنگ هشدار`,`نصب آسان`]},{code:`IP-T04`,name:`چراغ و تابلوی هشدار`,en:`WARNING LIGHT & SIGN`,desc:`چراغ‌های چشمک‌زن سولار، تابلوی دستی ایست/حرکت و تابلوهای علائم هشداردهنده ترافیکی.`,specs:[`سولار / باتری`,`LED چشمک‌زن`,`تابلوی Stop/Go`,`علائم استاندارد`]},{code:`IP-T05`,name:`باتوم ترافیکی`,en:`TRAFFIC BATON`,desc:`باتوم LED دار دستی جهت هدایت ترافیک در شب و محیط‌های کم‌نور؛ سبک و ارگونومیک.`,specs:[`LED داخلی`,`قابل رؤیت شبانه`,`سبک‌وزن`,`ارگونومیک`]},{code:`IP-T06`,name:`نوار خطر`,en:`CAUTION TAPE`,desc:`نوار شطرنجی و خط‌کشی زرد/قرمز هشدار محوطه گودبرداری و مناطق خطرناک با رول‌های بازتابنده نور.`,specs:[`زرد / قرمز هشدار`,`بازتابنده نور`,`رول بلند`,`مقاوم به پارگی`]},{code:`IP-T07`,name:`سرعت‌گیر لاستیکی`,en:`RUBBER SPEED BUMP`,desc:`قطعات لاستیکی سنگین مدولار با مقاومت وزنی بالا و المان‌های بازتابش شبانه؛ نصب آسان.`,specs:[`لاستیکی مدولار`,`مقاومت وزنی بالا`,`بازتاب شبانه`,`نصب پیچی`]},{code:`IP-T08`,name:`آینه محدب ترافیکی`,en:`CONVEX TRAFFIC MIRROR`,desc:`آینه نشکن فریم‌دار و کلاه‌دار جهت پوشش نقاط کور پیچ‌ها، تقاطع‌ها و درب انبار.`,specs:[`نشکن`,`فریم‌دار و کلاه‌دار`,`پوشش نقاط کور`,`مقاوم به آب و باد`]},{code:`IP-T09`,name:`محافظ گوشه ستون`,en:`CORNER GUARD`,desc:`ضربه‌گیر لاستیکی شبرنگ‌دار جهت نصب روی ستون‌ها برای ممانعت از آسیب لیفتراک و خودروهای سنگین.`,specs:[`لاستیکی ضربه‌گیر`,`شبرنگ‌دار`,`نصب دیواری`,`محافظ ستون`]},{code:`IP-T10`,name:`گل‌میخ ترافیکی خورشیدی`,en:`SOLAR ROAD STUD`,desc:`بدنه آلومینیومی مستحکم مجهز به پنل خورشیدی و LED جهت تعیین مسیر و خط‌کشی شبانه.`,specs:[`آلومینیوم مستحکم`,`پنل خورشیدی`,`LED`,`مقاوم به عبور خودرو`]}]}],ke=e=>Oe.find(t=>t.slug===e);Oe.map(e=>e.slug);var Ae=re(`ui`,{state:()=>({ready:!1,menuOpen:!1}),actions:{setReady(){this.ready=!0},openMenu(){this.menuOpen=!0},closeMenu(){this.menuOpen=!1}}});function je(e,t){let n=typeof e==`string`&&!t?`${e}Context`:t,r=Symbol(n);return[t=>{let n=m(r,t);if(n===void 0)throw Error(`Injection \`${r.toString()}\` not found. Component must be used within ${Array.isArray(e)?`one of the following components: ${e.join(`, `)}`:`\`${e}\``}`);return n},e=>(l(r,e),e),r]}function Me(e,t){let{layoutGroup:n,presenceContext:r,config:i}=t,a=n.id&&e.layoutId?`${n.id}-${e.layoutId}`:e.layoutId||void 0;return{...e,layoutId:a,transition:e.transition??i.transition,layoutGroup:n,motionConfig:i,inViewOptions:e.inViewOptions??i.inViewOptions,presenceContext:r,initial:r.initial===!1?r.initial:e.initial===!0?void 0:e.initial}}function Ne(e,t){e.indexOf(t)===-1&&e.push(t)}function Pe(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var O=(e,t,n)=>n>t?t:n<e?e:n,k={},Fe=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Ie=e=>typeof e==`object`&&!!e,Le=e=>/^0[^.\s]+$/u.test(e);function Re(e){let t;return()=>(t===void 0&&(t=e()),t)}var A=e=>e,ze=(...e)=>e.reduce((e,t)=>n=>t(e(n))),Be=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},Ve=class{constructor(){this.subscriptions=[]}add(e){return Ne(this.subscriptions,e),()=>this.remove(e)}remove(e){Pe(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},j=e=>e*1e3,M=e=>e/1e3,He=(e,t)=>t?1e3/t*e:0,Ue=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,We=1e-7,Ge=12;function Ke(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Ue(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>We&&++s<Ge);return o}function qe(e,t,n,r){if(e===t&&n===r)return A;let i=t=>Ke(t,0,1,e,n);return e=>e===0||e===1?e:Ue(i(e),t,r)}var Je=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Ye=e=>t=>1-e(1-t),Xe=qe(.33,1.53,.69,.99),Ze=Ye(Xe),Qe=Je(Ze),$e=e=>e>=1?1:(e*=2)<1?.5*Ze(e):.5*(2-2**(-10*(e-1))),et=e=>1-Math.sin(Math.acos(e)),tt=Ye(et),nt=Je(et),rt=qe(.42,0,1,1),it=qe(0,0,.58,1),at=qe(.42,0,.58,1),ot=e=>Array.isArray(e)&&typeof e[0]!=`number`,st=e=>Array.isArray(e)&&typeof e[0]==`number`,ct={linear:A,easeIn:rt,easeInOut:at,easeOut:it,circIn:et,circInOut:nt,circOut:tt,backIn:Ze,backInOut:Qe,backOut:Xe,anticipate:$e},lt=e=>typeof e==`string`,ut=e=>{if(st(e)){e.length;let[t,n,r,i]=e;return qe(t,n,r,i)}return lt(e)?(ct[e],`${e}`,ct[e]):e},N={delta:0,timestamp:0,isProcessing:!1},dt;function ft(){dt=void 0}var P={now:()=>(dt===void 0&&P.set(N.isProcessing||k.useManualTiming?N.timestamp:performance.now()),dt),set:e=>{dt=e,queueMicrotask(ft)}},pt=e=>Math.round(e*1e5)/1e5,mt=e=>t=>typeof t==`string`&&t.startsWith(e),ht=mt(`--`),gt=mt(`var(--`),_t=e=>gt(e)?vt.test(e.split(`/*`)[0].trim()):!1,vt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function yt(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var bt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},xt={...bt,transform:e=>O(0,1,e)},St={...bt,default:1},Ct=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function wt(e){return e==null}var Tt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Et=(e,t)=>n=>!!(typeof n==`string`&&Tt.test(n)&&n.startsWith(e)||t&&!wt(n)&&Object.prototype.hasOwnProperty.call(n,t)),Dt=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Ct);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},Ot=e=>O(0,255,e),kt={...bt,transform:e=>Math.round(Ot(e))},At={test:Et(`rgb`,`red`),parse:Dt(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+kt.transform(e)+`, `+kt.transform(t)+`, `+kt.transform(n)+`, `+pt(xt.transform(r))+`)`};function jt(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var Mt={test:Et(`#`),parse:jt,transform:At.transform},Nt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),F=Nt(`deg`),I=Nt(`%`),L=Nt(`px`),Pt=Nt(`vh`),Ft=Nt(`vw`),It={...I,parse:e=>I.parse(e)/100,transform:e=>I.transform(e*100)},Lt={test:Et(`hsl`,`hue`),parse:Dt(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+I.transform(pt(t))+`, `+I.transform(pt(n))+`, `+pt(xt.transform(r))+`)`},R={test:e=>At.test(e)||Mt.test(e)||Lt.test(e),parse:e=>At.test(e)?At.parse(e):Lt.test(e)?Lt.parse(e):Mt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?At.transform(e):Lt.transform(e),getAnimatableNone:e=>{let t=R.parse(e);return t.alpha=0,R.transform(t)}},Rt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,zt=new RegExp(Ct.source),Bt=new RegExp(Rt.source,`i`);function Vt(e){return isNaN(e)&&typeof e==`string`&&(zt.test(e)||Bt.test(e))}var Ht=`number`,Ut=`color`,Wt=`var`,Gt=`var(`,Kt="${}",qt=/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 Jt(e){let t=e.toString();return zt.test(t)||Bt.test(t)}function Yt(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(qt,e=>(R.test(e)?(r.color.push(a),i.push(Ut),n.push(R.parse(e))):e.startsWith(Gt)?(r.var.push(a),i.push(Wt),n.push(e)):(r.number.push(a),i.push(Ht),n.push(parseFloat(e))),++a,Kt)).split(Kt),indexes:r,types:i}}function Xt(e){return Yt(e).values}function Zt({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===Ht?pt(r[a]):e===Ut?R.transform(r[a]):r[a]}return i}}function Qt(e){return Zt(Yt(e))}var $t=e=>typeof e==`number`?0:R.test(e)?R.getAnimatableNone(e):e,en=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:$t(e);function tn(e){let t=Yt(e);return Zt(t)(t.values.map((e,n)=>en(e,t.split[n])))}var z={test:Vt,parse:Xt,createTransformer:Qt,getAnimatableNone:tn};function nn(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function rn({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=nn(s,r,e+1/3),a=nn(s,r,e),o=nn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function an(e,t){return n=>n>0?t:e}var B=(e,t,n)=>e+(t-e)*n,on=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},sn=[Mt,At,Lt],cn=e=>sn.find(t=>t.test(e));function ln(e){let t=cn(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Lt&&(n=rn(n)),n}var un=(e,t)=>{let n=ln(e),r=ln(t);if(!n||!r)return an(e,t);let i={...n};return e=>(i.red=on(n.red,r.red,e),i.green=on(n.green,r.green,e),i.blue=on(n.blue,r.blue,e),i.alpha=B(n.alpha,r.alpha,e),At.transform(i))},dn=new Set([`none`,`hidden`]);function fn(e,t){return dn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pn(e,t){return n=>B(e,t,n)}function mn(e){return typeof e==`number`?pn:typeof e==`string`?_t(e)?an:R.test(e)?un:vn:Array.isArray(e)?hn:typeof e==`object`?R.test(e)?un:gn:an}function hn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>mn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function gn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=mn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function _n(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var vn=(e,t)=>{let n=z.createTransformer(t),r=Yt(e),i=Yt(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?dn.has(e)&&!i.values.length||dn.has(t)&&!r.values.length?fn(e,t):ze(hn(_n(r,i),i.values),n):(`${e}${t}`,an(e,t))},yn=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function bn(e,t){let n=yn.exec(e);if(!n)return;let r=yn.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>pt(B(a,o,e))+i}function xn(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return B(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=bn(e,t);if(n)return n}return mn(e)(e,t)}var Sn=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function Cn(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var wn=40;function Tn(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=Sn.reduce((e,t)=>(e[t]=Cn(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=k.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,wn),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:Sn.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<Sn.length;t++)o[Sn[t]].cancel(e)},state:n,steps:o}}var{schedule:V,cancel:H,steps:En}=Tn(typeof requestAnimationFrame<`u`?requestAnimationFrame:A,!0,N),Dn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>V.update(t,e),stop:()=>H(t),now:()=>N.isProcessing?N.timestamp:P.now()}},On=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},kn=2e4;function An(e,t=50,n=kn,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function jn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(An(r),kn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:M(i)}}var U={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},Mn=e=>e<0?1/Math.max(1+e,U.minDamping):Math.max(1-e,U.minDamping);function Nn(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return In(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Pn(e,t){return e*Math.sqrt(1-t*t)}var Fn=12;function In(e,t,n){let r=n;for(let n=1;n<Fn;n++)r-=e(r)/t(r);return r}var Ln=.001;function Rn({duration:e=U.duration,bounce:t=U.bounce}){let n,r;U.maxDuration;let i=Mn(t);e=O(U.minDuration,U.maxDuration,M(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Pn(t,i),o=Math.exp(-r);return Ln-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Pn(t*t,i);return(-n(t)+Ln>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=In(n,r,a),s=o*Nn(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:j(e)}}var zn=(e,t)=>(t?e>=0:e>0)&&e<1/0;function Bn(e,t){if(zn(e,t))return e}function Vn(e){let t=Bn(e.stiffness),n=Bn(e.damping,!0),r=Bn(e.mass),i={...e,stiffness:t??U.stiffness,damping:n??U.damping,mass:r??U.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Mn(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*Nn(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,Rn(i)),i.isResolvedFromDuration=!0;(!zn(i.stiffness)||!zn(i.damping,!0))&&(i.stiffness=U.stiffness,i.damping=U.damping)}return i}function Hn(e=U.visualDuration,t=U.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=Vn({...n}),f=e=>d?0:-M(e),p=s/(2*Math.sqrt(o*c)),m=M(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?U.restSpeed.granular:U.restSpeed.default),g.restDelta=n.restDelta||(e?U.restDelta.granular:U.restDelta.default)};_();let v,y,b;if(p<1){let e=Pn(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-h*(t-r):-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>j(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=j(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(An(S),kn),t=On(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}Hn.applyToOptions=e=>{let t=jn(e,100,Hn);return e.ease=t.ease,e.duration=j(t.duration),e.type=`keyframes`,e};function Un({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=Hn({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function Wn(e,t,n){let r=[],i=n||k.mix||xn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=ze(Array.isArray(t)?t[n]||A:t,a)),r.push(a)}return r}function Gn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Wn(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Be(e[r],e[r+1],n);return s[r](i)};return n?t=>l(O(e[0],e[a-1],t)):l}function Kn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Be(0,t,r);e.push(B(n,1,i))}}function qn(e){let t=[0];return Kn(t,e.length-1),t}function Jn(e,t){return e.map(e=>e*t)}function Yn(e,t){return e.map(()=>t||at).splice(0,e.length-1)}function Xn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=ot(r)?r.map(ut):ut(r)||at,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(k.mix||xn)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?O(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=Gn(Jn(n&&n.length===t.length?n:qn(t),e),t,{ease:Array.isArray(i)?i:Yn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Zn=5;function Qn(e,t,n){let r=Math.max(t-Zn,0);return He(n-e(r),t-r)}function $n(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):Qn(t=>e.next(t).value,t,e.next(t).value)}var er=e=>e!==null;function tr(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(er),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var nr={decay:Un,inertia:Un,tween:Xn,keyframes:Xn,spring:Hn};function rr(e){typeof e.type==`string`&&(e.type=nr[e.type])}function ir(e,t){return{kind:e,animation:t,timestamp:P.now(),frameTimestamp:N.timestamp,frameIsProcessing:N.isProcessing}}function ar(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...ir(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function or(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...ir(`layout-animation-start`,e),node:t})}catch{}}var sr=class{constructor(){this.isResolved=!1}get finished(){return 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)}},cr=e=>e/100,lr=class extends sr{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!==P.now()&&this.tick(P.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),ar(this,this.options)}initAnimation(){let{options:e}=this;rr(e);let{type:t=Xn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Xn;s!==Xn&&typeof o[0]!=`number`&&(this.mixKeyframes=ze(cr,xn(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=An(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=O(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Un&&(b.value=tr(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return M(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M(e)}get time(){return M(this.currentTime)}set time(e){e=j(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?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 $n(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(P.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=M(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Dn,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(P.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&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(),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)}},ur=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function dr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Ct)||[];if(!r)return e;let i=n.replace(r,``),a=+!!ur.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var fr=/\b([a-z-]*)\(.*?\)/gu,pr={...z,getAnimatableNone:e=>{let t=e.match(fr);return t?t.map(dr).join(` `):e}},mr={...z,getAnimatableNone:e=>{let t=z.parse(e);return z.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},hr={...bt,transform:Math.round},gr={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,top:L,right:L,bottom:L,left:L,inset:L,insetBlock:L,insetBlockStart:L,insetBlockEnd:L,insetInline:L,insetInlineStart:L,insetInlineEnd:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,paddingBlock:L,paddingBlockStart:L,paddingBlockEnd:L,paddingInline:L,paddingInlineStart:L,paddingInlineEnd:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,marginBlock:L,marginBlockStart:L,marginBlockEnd:L,marginInline:L,marginInlineStart:L,marginInlineEnd:L,fontSize:L,backgroundPositionX:L,backgroundPositionY:L,rotate:F,pathRotation:F,rotateX:F,rotateY:F,rotateZ:F,scale:St,scaleX:St,scaleY:St,scaleZ:St,skew:F,skewX:F,skewY:F,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:xt,originX:It,originY:It,originZ:L,zIndex:hr,fillOpacity:xt,strokeOpacity:xt,numOctaves:hr},_r={...gr,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:pr,WebkitFilter:pr,mask:mr,WebkitMask:mr},vr=e=>_r[e],yr=new Set([pr,mr]);function br(e,t){let n=vr(e);return yr.has(n)||(n=z),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function xr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var Sr=e=>e*180/Math.PI,Cr=e=>Tr(Sr(Math.atan2(e[1],e[0]))),wr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Cr,rotateZ:Cr,skewX:e=>Sr(Math.atan(e[1])),skewY:e=>Sr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Tr=e=>(e%=360,e<0&&(e+=360),e),Er=Cr,Dr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Or=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),kr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Dr,scaleY:Or,scale:e=>(Dr(e)+Or(e))/2,rotateX:e=>Tr(Sr(Math.atan2(e[6],e[5]))),rotateY:e=>Tr(Sr(Math.atan2(-e[2],e[0]))),rotateZ:Er,rotate:Er,skewX:e=>Sr(Math.atan(e[4])),skewY:e=>Sr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ar(e){return+!!e.includes(`scale`)}function jr(e,t){if(!e||e===`none`)return Ar(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=kr,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=wr,i=t}if(!i)return Ar(t);let a=r[t],o=i[1].split(`,`).map(Nr);return typeof a==`function`?a(o):o[a]}var Mr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return jr(n,t)};function Nr(e){return parseFloat(e.trim())}var Pr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Fr=new Set([...Pr,`pathRotation`]),Ir=e=>e===bt||e===L,Lr=new Set([`x`,`y`,`z`]),Rr=Pr.filter(e=>!Lr.has(e));function zr(e){let t=[];return Rr.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var Br=new Set([`bottom`,`right`]);function Vr(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var Hr={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Vr(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Vr(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>jr(e,`x`),y:({transform:e})=>jr(e,`y`)};Hr.translateX=Hr.x,Hr.translateY=Hr.y;var Ur=new Set,Wr=!1,Gr=!1,Kr=!1;function qr(){if(Gr){let e=[],t=new Set,n=new Set;Ur.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Br.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=zr(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Gr=!1,Wr=!1,Ur.forEach(e=>e.complete(Kr)),Ur.clear()}function Jr(){Ur.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gr=!0)})}function Yr(){Kr=!0,Jr(),qr(),Kr=!1}function Xr(e,t,n){if(typeof e==`string`){if(Fe(e)||Le(e))return parseFloat(e);if(!z.test(e)&&z.test(n))return br(t,n)}return e??void 0}var Zr=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Ur.add(this),Wr||(Wr=!0,V.read(Jr),V.resolveKeyframes(qr))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=Xr(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}xr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Ur.delete(this)}cancel(){this.state===`scheduled`&&(Ur.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Qr=e=>e.startsWith(`--`);function $r(e,t,n){Qr(t)?e.style.setProperty(t,n):e.style[t]=n}var ei={};function ti(e,t){let n=Re(e);return()=>ei[t]??n()}var ni=ti(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),ri=ti(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),ii=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,ai={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:ii([0,.65,.55,1]),circOut:ii([.55,0,1,.45]),backIn:ii([.31,.01,.66,-.59]),backOut:ii([.33,1.53,.69,.99])};function oi(e,t){if(e)return typeof e==`function`?ri()?On(e,t):`ease-out`:st(e)?ii(e):Array.isArray(e)?e.map(e=>oi(e,t)||ai.easeOut):ai[e]}function si(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=oi(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function ci(e){return typeof e==`function`&&`applyToOptions`in e}function li({type:e,...t}){return ci(e)&&ri()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var ui=class extends sr{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=li(e);this.animation=si(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=tr(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),$r(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},ar(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(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(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return M(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+M(e)}get time(){return M(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=j(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 this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&ni()?(this.animation.timeline=e,t?.(this.animation),A):n(this)}},di={anticipate:$e,backInOut:Qe,circInOut:nt};function fi(e){return e in di}function pi(e){typeof e.ease==`string`&&fi(e.ease)&&(e.ease=di[e.ease])}var mi=10,hi=class extends ui{constructor(e){pi(e),rr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new lr({...a,autoplay:!1}),s=Math.max(mi,P.now()-this.startTime),c=O(0,mi,s-mi),l=o.sample(s).value,{name:u}=this.options;i&&u&&$r(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},gi=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(z.test(e)||e===`0`)&&!e.startsWith(`url(`));function _i(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function vi(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=gi(i,t),s=gi(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):_i(e)||(n===`spring`||ci(n))&&r}function yi(e){e.duration=0,e.type=`keyframes`}var bi=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),xi=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Si(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&xi.test(e[t]))return!0;return!1}var Ci=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),wi=Re(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function Ti(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(bi.has(n)||Ci.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return wi()&&(bi.has(n)||Ci.has(n)&&Si(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var Ei=40,Di=class extends sr{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=P.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||Zr;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=P.now();let u=!0;vi(e,i,a,o)||(u=!1,(k.instantAnimations||!s)&&l?.(tr(e,n,t)),e[0]=e[e.length-1],yi(n),n.repeat=0);let d=r?this.resolvedAt&&this.resolvedAt-this.createdAt>Ei?this.resolvedAt:this.createdAt:void 0,{onComplete:f}=n;n.startTime??=d,n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{f?.(),this.notifyFinished()};let p=u&&!c&&Ti(n),m;if(p){n.element=n.motionValue?.owner?.current;try{m=new hi(n)}catch{m=new lr(n)}}else m=new lr(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}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(),Yr()),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()}};function Oi(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var ki=30,Ai=e=>!isNaN(parseFloat(e)),ji={current:void 0},Mi=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=P.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=P.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ai(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new Ve)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new Ve,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){V.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return ji.current&&ji.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=P.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ki)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,ki);return He(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),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 W(e,t){return new Mi(e,t)}function Ni(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Pi(e,t){let n=e?.[t]??e?.default??e;return n===e?n:Ni(n,e)}var Fi={type:`spring`,stiffness:500,damping:25,restSpeed:10},Ii=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Li={type:`keyframes`,duration:.8},Ri={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},zi=(e,{keyframes:t})=>t.length>2?Li:Fr.has(e)?e.startsWith(`scale`)?Ii(t[1]):Fi:Ri,Bi=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Vi(e){for(let t in e)if(!Bi.has(t))return!0;return!1}var Hi=(e,t,n,r={},i,a)=>o=>{let s=Pi(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=j(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};Vi(s)||Object.assign(u,zi(e,u)),u.duration&&=j(u.duration),u.repeatDelay&&=j(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(yi(u),u.delay===0&&(d=!0)),(k.instantAnimations||k.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,yi(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=tr(u.keyframes,s);if(e!==void 0){V.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new lr(u):new Di(u)},Ui=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Wi(e){let t=Ui.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Gi(e,t,n=1){`${e}`;let[r,i]=Wi(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Fe(e)?parseFloat(e):e}return _t(i)?Gi(i,t,n+1):i}function Ki(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function qi(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...Ki(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Ji(e,t,n){return qi(e.getProps(),t,n,e)}var Yi=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Xi=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Pr]),Zi=e=>Array.isArray(e);function Qi(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,W(n))}function $i(e){return Zi(e)?e[e.length-1]||0:e}function ea(e,t){let{transitionEnd:n={},transition:r={},...i}=Ji(e,t)||{};i={...i,...n};for(let t in i)Qi(e,t,$i(i[t]))}var G=e=>!!(e&&e.getVelocity);function ta(e){return!!(G(e)&&e.add)}function na(e,t){let n=e.getValue(`willChange`);if(ta(n))return n.add(t);if(!n&&k.WillChange){let n=new k.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function ra(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var ia=`data-`+ra(`framerAppearId`);function aa(e){return e.props[ia]}var oa=typeof window<`u`;function sa({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function ca(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?Ni(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&sa(f,t))continue;let o={delay:n,...Pi(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){V.update(()=>r.set(i));continue}let p=!1;if(oa&&window.MotionHandoffAnimation){let n=aa(e);if(n){let e=window.MotionHandoffAnimation(n,t,V);e!==null&&(o.startTime=e,p=!0)}}na(e,t);let m=l??e.shouldReduceMotion;r.start(Hi(t,r,i,m&&Xi.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>V.update(()=>{o&&ea(e,o)});d.length?Promise.all(d).then(t):t()}return d}function la(e,t,n={}){let r=Ji(e,t,Yi(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?ca(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(la(e,t,{...n,delay:r+(typeof o==`function`?0:o)+Oi(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function ua(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>la(e,t,n))):typeof t==`string`?la(e,t,n):Promise.all(ca(e,Ji(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var da={test:e=>e===`auto`,parse:e=>e},fa=e=>t=>t.test(e),pa=[bt,L,I,F,Ft,Pt,da],ma=e=>pa.find(fa(e));function ha(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Le(e)}var ga=new Set([`auto`,`none`,`0`]);function _a(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ga.has(t)&&Jt(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=br(n,i))}var va=class extends Zr{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),_t(r))){let i=Gi(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Xi.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=ma(r),o=ma(i);if(yt(r)!==yt(i)&&Hr[n]){this.needsMeasurement=!0;return}if(a!==o){if(Ir(a)&&Ir(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Hr[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||ha(e[t]))&&n.push(t);n.length&&_a(e,n,t)}measure(){let{element:e,name:t}=this;return Hr[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},ya=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function ba(e){return Ie(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function xa(e){return Ie(e)&&`ownerSVGElement`in e}var Sa=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Ca(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var wa={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Ta=Pr.length;function Ea(e,t,n){let r=``,i=!0;for(let a=0;a<Ta;a++){let o=Pr[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Sa(s,gr[o]);if(!c){i=!1;let t=wa[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Sa(a,gr.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Da(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Fr.has(e)){o=!0;continue}if(ht(e)){i[e]=n;continue}{let t=Sa(n,gr[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Ea(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var Oa={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ka={offset:`strokeDashoffset`,array:`strokeDasharray`};function Aa(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Oa:ka;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var ja=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Ma(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Da(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of ja)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Aa(d,i,a,o,!1)}function Na({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Pa({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Fa(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Ia(e){return e===void 0||e===1}function La({scale:e,scaleX:t,scaleY:n}){return!Ia(e)||!Ia(t)||!Ia(n)}function Ra(e){return La(e)||za(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function za(e){return Ba(e.x)||Ba(e.y)}function Ba(e){return e&&e!==`0%`}function Va(e,t,n){return n+t*(e-n)}function Ha(e,t,n,r,i){return i!==void 0&&(e=Va(e,i,r)),Va(e,n,r)+t}function Ua(e,t=0,n=1,r,i){e.min=Ha(e.min,t,n,r,i),e.max=Ha(e.max,t,n,r,i)}function Wa(e,{x:t,y:n}){Ua(e.x,t.translate,t.scale,t.originPoint),Ua(e.y,n.translate,n.scale,n.originPoint)}var Ga=.999999999999,Ka=1.0000000000001;function qa(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(K(e.x,-a.scroll.offset.x),K(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Wa(e,o)),r&&Ra(a.latestValues)&&Xa(e,a.latestValues,a.layout?.layoutBox))}t.x<Ka&&t.x>Ga&&(t.x=1),t.y<Ka&&t.y>Ga&&(t.y=1)}function K(e,t){e.min+=t,e.max+=t}function Ja(e,t,n,r,i=.5){Ua(e,t,n,B(e.min,e.max,i),r)}function Ya(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function Xa(e,t,n){let r=n??e;Ja(e.x,Ya(t.x,r.x),t.scaleX,t.scale,t.originX),Ja(e.y,Ya(t.y,r.y),t.scaleY,t.scale,t.originY)}function Za(e,t){return Na(Fa(e.getBoundingClientRect(),t))}function Qa(e,t,n){let r=Za(e,n),{scroll:i}=t;return i&&(K(r.x,i.offset.x),K(r.y,i.offset.y)),r}var{schedule:$a,cancel:eo}=Tn(queueMicrotask,!1),to={x:!1,y:!1};function no(){return to.x||to.y}function ro(e,t){let n=Ca(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function io(e){return!(e.pointerType===`touch`||no())}function ao(e,t,n={}){let[r,i,a]=ro(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!io(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var oo=(e,t)=>t?e===t||oo(e,t.parentElement):!1,so=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,co=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function lo(e){return co.has(e.tagName)||e.isContentEditable===!0}var uo=new WeakSet;function fo(e){return t=>{t.key===`Enter`&&e(t)}}function po(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var mo=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=fo(()=>{if(uo.has(n))return;po(n,`down`);let e=fo(()=>{po(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>po(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function ho(e){return so(e)&&!no()}var go=new WeakSet;function _o(e,t,n={}){let[r,i,a]=ro(e,n),o=e=>{let r=e.currentTarget;if(!ho(e)||go.has(e))return;uo.add(r),n.stopPropagation&&go.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),uo.has(r)&&uo.delete(r),ho(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||oo(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),ba(e)&&(e.addEventListener(`focus`,e=>mo(e,i)),!lo(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var vo={value:null,addProjectionMetrics:null};function yo(e){return xa(e)&&e.tagName===`svg`}var bo=new Set,xo=({timestamp:e})=>{bo.forEach(t=>t.tick(e))},So=class extends sr{constructor(e){super(),this.state=`idle`,this.startTime=0,this.currentTime=0,this.started=!1,this.hasNextTarget=!1,this.nextTarget=0,this.stop=()=>{this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.factory=e.type,this.generator=this.factory(e);let{driver:t}=e;t&&(this.driver=t(e=>this.tick(e))),this.startTime=this.now(),this.state=`running`,this.driver?this.driver.start():(bo.size||V.update(xo,!0),bo.add(this))}setTarget(e,t){this.nextTarget=e,this.nextVelocity=t,this.hasNextTarget=!0}retarget(e,t){let{options:n,generator:r}=this;n.keyframes=e,n.velocity=t,this.startTime=this.now(),this.currentTime=0,r.retarget?r.retarget(e,t):this.generator=this.factory(n)}tick(e){let{options:t,hasNextTarget:n}=this,{delay:r=0,onUpdate:i,onPlay:a}=t,o=Math.round(e-this.startTime)-r,s=this.currentTime=Math.max(0,o),c=this.generator.next(s),l=o<0?t.keyframes[0]:c.value;if(n){this.hasNextTarget=!1;let{keyframes:e}=t;e[0]=l,e[1]=this.nextTarget,this.retarget(e,this.nextVelocity??this.getGeneratorVelocity())}(n||!this.started)&&(this.started=!0,a?.()),this.state===`running`&&(i?.(l),c.done&&o>=0&&!n&&!this.hasNextTarget&&this.state===`running`&&(this.notifyFinished(),this.teardown(),this.state=`finished`,t.onComplete?.()))}getGeneratorVelocity(){return $n(this.generator,this.currentTime,this.options.velocity)}now(){return this.driver?this.driver.now():P.now()}teardown(){this.state=`idle`,this.driver?this.driver.stop():(bo.delete(this),bo.size||H(xo))}},Co=e=>typeof e==`number`?e:parseFloat(e);function wo(e,t,n){let r=e.get(),i=null,a,o=typeof r==`string`?r.replace(/[\d.-]/g,``):void 0,s=e=>a(o?e+o:e),c=()=>e.events.animationStart?.notify(),l=()=>{i&&=(i.stop(),null),e.animation=void 0};if(e.attach((t,r)=>{a=r;let o=Co(t);if(i?.state===`running`){i.setTarget(o,n.velocity);return}let u=Co(e.get()),d=i?i.getGeneratorVelocity():e.getVelocity();if(l(),u===o)return;let f=i=new So({keyframes:[u,o],velocity:d,restDelta:.001,restSpeed:.01,...n,onUpdate:s,onPlay:c});e.animation=f,f.then(()=>{i===f&&(i=null,e.animation=void 0,e.events.animationComplete?.notify())})},l),G(t)){let r=n.skipInitialAnimation===!0,i=t.on(`change`,t=>{r?(r=!1,e.jump(To(t,o),!1)):e.set(To(t,o))}),a=e.on(`destroy`,i);return()=>{i(),a()}}return l}function To(e,t){return t?e+t:e}function Eo(e,t,n={}){let r={type:`spring`,...n};return rr(r),r.type=r.type||Xn,wo(e,t,r)}var Do=()=>({translate:0,scale:1,origin:0,originPoint:0}),Oo=()=>({x:Do(),y:Do()}),ko=()=>({min:0,max:0}),q=()=>({x:ko(),y:ko()}),Ao=new WeakMap;function jo(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Mo(e){return typeof e==`string`||Array.isArray(e)}var No=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Po=[`initial`,...No];function Fo(e){if(jo(e.animate))return!0;for(let t=0;t<Po.length;t++)if(Mo(e[Po[t]]))return!0;return!1}function Io(e){return!!(Fo(e)||e.variants)}function Lo(e,t,n){for(let r in t){let i=t[r],a=n[r];if(G(i))e.addValue(r,i);else if(G(a))e.addValue(r,W(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,W(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Ro={current:null},zo={current:!1},Bo=typeof window<`u`;function Vo(){if(zo.current=!0,Bo){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Ro.current=e.matches;e.addEventListener(`change`,t),t()}else Ro.current=!1}}var Ho=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Uo={},Wo=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){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=Zr,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=P.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,V.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Fo(t),this.isVariantNode=Io(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&G(t)&&t.set(c[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];if(this.current=e,Ao.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(zo.current||Vo(),this.shouldReduceMotion=Ro.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),H(this.notifyUpdate),H(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in 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??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&bi.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new ui({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:j(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Fr.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&V.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Uo){let t=Uo[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):q()}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<Ho.length;t++){let n=Ho[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Lo(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}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=W(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(Fe(n)||Le(n))?n=parseFloat(n):typeof n!=`number`&&!z.test(n)&&z.test(t)&&(n=br(e,t)),this.setBaseTarget(e,G(n)?n.get():n)),G(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new Ve),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){$a.render(this.render)}},Go=class extends Wo{constructor(){super(...arguments),this.KeyframeResolver=va}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;G(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function Ko(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}var qo={};function Jo(e){for(let t in e)qo[t]=e[t],ht(t)&&(qo[t].isCSSVariable=!0)}function Yo(e,{layout:t,layoutId:n}){return Fr.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!qo[e]||e===`opacity`)}function Xo(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(G(r[t])||i&&G(i[t])||Yo(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Zo(e){return window.getComputedStyle(e)}var Qo=class extends Go{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Ko}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Fr.has(t))return this.projection?.isProjecting?Ar(t):Mr(e,t);{let n=Zo(e),r=(ht(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Za(e,t)}build(e,t,n){Da(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Xo(e,t,n)}},$o=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),es=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function ts(e,t,n,r){Ko(e,t,void 0,r);for(let n in t.attrs)e.setAttribute($o.has(n)?n:ra(n),t.attrs[n])}function ns(e,t,n){let r=Xo(e,t,n);for(let n in e)if(G(e[n])||G(t[n])){let t=Pr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var rs=class extends Go{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=q}getBaseTargetFromProps(e,t){return Fr.has(t)?super.getBaseTargetFromProps(e,t)??Ar(t):e[t]}getDefaultValue(e){return Fr.has(e)?this.latestValues[e]??Ar(e):void 0}readValueFromInstance(e,t){if(Fr.has(t)){let e=vr(t);return e&&e.default||0}if(ja.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=$o.has(t)?t:ra(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ns(e,t,n)}build(e,t,n){Ma(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){ts(e,t,n,r)}mount(e){this.isSVGTag=es(e.tagName),super.mount(e)}};function is(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var as=[...No].reverse();function os(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>ua(e,t,n))),n=cs(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,l=r||i,u=[],d=new Set,f={},p=1/0,m=e;do m=m.props.inherit!==!1&&m.parent;while(m&&!m.isControllingVariants);if(as.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?Mo(g)||g===!1?g:void 0:h,v=Mo(_),y=t===a?i.isActive:null;y===!1&&(p=r);let b=v&&h===void 0&&!(l&&c);if(i.protectedKeys={...f},!i.isActive&&y===null||!_&&!i.prevProp||jo(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=ss(i.prevProp,_),S=x||v&&(y&&!b||r>p),C=!1,ee=Array.isArray(_)?_:[_],te={};if(y!==!1)for(let n of ee){let{transition:r,transitionEnd:i,...a}=Ji(e,n,Yi(e,t))||{};te={...te,...a,...i}}let{prevResolvedValues:ne}=i;for(let t in{...ne,...te}){if(t in f)continue;let n=te[t],r=ne[t],a=Array.isArray(n)&&Array.isArray(r)?!is(n,r)||x:n!==r;if(a&&n==null)d.add(t);else if(a||n!==void 0&&d.has(t)){S=!0,d.delete(t)&&(C=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0}if(i.prevProp=_,i.prevResolvedValues=te,i.isActive&&(f={...f,...te}),S&&(!(b&&x)||C))for(let n of ee){let r={type:t};if(typeof n==`string`&&l&&c&&s?.enteringChildren){let t=Ji(s,n)?.transition?.delayChildren;r.delay=Oi(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&Ji(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);r&&r.transition&&(n.transition=r.transition),d.forEach(i=>{let a=e.getValue(i);a&&(a.liveStyle=!0);let s=r&&!Array.isArray(t)?r[i]:void 0,c=e.getBaseTargetFromProps(o,i);n[i]=(s===void 0?c!==void 0&&!G(c)?c:e.initialValues[i]===void 0?e.baseTarget[i]:void 0:s)??null}),u.push({animation:n})}let h=l&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!h&&u.length?t(u):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=cs(),i=!0}}}function ss(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!is(t,e):!1}function cs(){let e={};for(let t of No)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}function ls(e,t){e.min=t.min,e.max=t.max}function J(e,t){ls(e.x,t.x),ls(e.y,t.y)}function us(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var ds=.9999,fs=1.0001,ps=-.01,ms=.01;function Y(e){return e.max-e.min}function hs(e,t,n){return Math.abs(e-t)<=n}function gs(e,t,n,r=.5){e.origin=r,e.originPoint=B(t.min,t.max,e.origin),e.scale=Y(n)/Y(t),e.translate=B(n.min,n.max,e.origin)-e.originPoint,(e.scale>=ds&&e.scale<=fs||isNaN(e.scale))&&(e.scale=1),(e.translate>=ps&&e.translate<=ms||isNaN(e.translate))&&(e.translate=0)}function _s(e,t,n,r){gs(e.x,t.x,n.x,r?r.originX:void 0),gs(e.y,t.y,n.y,r?r.originY:void 0)}function vs(e,t,n,r=0){e.min=(r?B(n.min,n.max,r):n.min)+t.min,e.max=e.min+Y(t)}function ys(e,t,n,r){vs(e.x,t.x,n.x,r?.x),vs(e.y,t.y,n.y,r?.y)}function bs(e,t,n,r=0){let i=r?B(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Y(t)}function xs(e,t,n,r){bs(e.x,t.x,n.x,r?.x),bs(e.y,t.y,n.y,r?.y)}function Ss(e,t,n,r,i){return e-=t,e=Va(e,1/n,r),i!==void 0&&(e=Va(e,1/i,r)),e}function Cs(e,t=0,n=1,r=.5,i,a=e,o=e){if(I.test(t)&&(t=parseFloat(t),t=B(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=B(a.min,a.max,r);e===a&&(s-=t),e.min=Ss(e.min,t,n,s,i),e.max=Ss(e.max,t,n,s,i)}function ws(e,t,[n,r,i],a,o){Cs(e,t[n],t[r],t[i],t.scale,a,o)}var Ts=[`x`,`scaleX`,`originX`],Es=[`y`,`scaleY`,`originY`];function Ds(e,t,n,r){ws(e.x,t,Ts,n?n.x:void 0,r?r.x:void 0),ws(e.y,t,Es,n?n.y:void 0,r?r.y:void 0)}function Os(e){return e.translate===0&&e.scale===1}function ks(e){return Os(e.x)&&Os(e.y)}function As(e,t){return e.min===t.min&&e.max===t.max}function js(e,t){return As(e.x,t.x)&&As(e.y,t.y)}function Ms(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ns(e,t){return Ms(e.x,t.x)&&Ms(e.y,t.y)}function Ps(e){return Y(e.x)/Y(e.y)}function Fs(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function X(e){return[e(`x`),e(`y`)]}function Is(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Z={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(L.test(e))e=parseFloat(e);else return e}return`${Is(e,t.target.x)}% ${Is(e,t.target.y)}%`}},Ls={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=z.parse(e);if(i.length>5)return r;let a=z.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=B(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}};function Rs(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var zs=ya.length,Bs=e=>typeof e==`number`||L.test(e);function Vs(e,t,n,r,i,a){i?(e.opacity=B(0,n.opacity??1,Us(r)),e.opacityExit=B(t.opacity??1,0,Ws(r))):a&&(e.opacity=B(t.opacity??1,n.opacity??1,r));for(let i=0;i<zs;i++){let a=ya[i],o=Hs(t,a),s=Hs(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||Bs(o)===Bs(s)?(e[a]=Math.max(B(Co(o),Co(s),r),0),(I.test(s)||I.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=B(t.rotate||0,n.rotate||0,r))}function Hs(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Us=Gs(0,.5,tt),Ws=Gs(.5,.95,A);function Gs(e,t,n){return r=>r<e?0:r>t?1:n(Be(e,t,r))}function Ks(e,t,n){let r=G(e)?e:W(e);return r.start(Hi(``,r,t,n)),r.animation}function qs(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var Js=(e,t)=>e.depth-t.depth,Ys=class{constructor(){this.children=[],this.isDirty=!1}add(e){Ne(this.children,e),this.isDirty=!0}remove(e){Pe(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Js),this.isDirty=!1,this.children.forEach(e)}};function Xs(e,t){let n=P.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(H(r),e(a-t))};return V.setup(r,!0),()=>H(r)}function Zs(e){return G(e)?e.get():e}var Qs=class{constructor(){this.members=[]}add(e){Ne(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Pe(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Pe(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(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.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)}},$s={borderRadius:{...Z,applyTo:[...ya]},borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomLeftRadius:Z,borderBottomRightRadius:Z,boxShadow:Ls},ec={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(qo,{...$s,...qo});var tc={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},nc=[``,`X`,`Y`,`Z`],rc=1e3,ic=0;function ac(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function oc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=aa(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,V,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&oc(r)}function sc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=ic++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,vo.value&&(tc.nodes=tc.calculatedTargetDeltas=tc.calculatedProjections=0),this.nodes.forEach(uc),this.nodes.forEach(bc),this.nodes.forEach(xc),this.nodes.forEach(dc),vo.addProjectionMetrics&&vo.addProjectionMetrics(tc)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ys)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new Ve),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=xa(t)&&!yo(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;V.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Xs(i,250),ec.hasAnimatedSinceResize&&(ec.hasAnimatedSinceResize=!1,this.nodes.forEach(yc)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Oc,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Ns(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Pi(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||yc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),H(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(Sc),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&&oc(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,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(mc),this.nodes.forEach(pc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(hc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(gc),this.nodes.forEach(_c),this.nodes.forEach(vc),this.nodes.forEach(cc),this.nodes.forEach(lc)):this.nodes.forEach(hc),this.clearAllSnapshots();let e=P.now();N.delta=O(0,1e3/60,e-N.timestamp),N.timestamp=e,N.isProcessing=!0,En.update.process(N),En.preRender.process(N),En.render.process(N),N.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$a.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(fc),this.sharedNodes.forEach(Cc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,V.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){V.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!Y(this.snapshot.measuredBox.x)&&!Y(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=q(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!ks(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Ra(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Mc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return q();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Pc))){let{scroll:e}=this.root;e&&(K(t.x,e.offset.x),K(t.y,e.offset.y))}return t}removeElementScroll(e){let t=q();if(J(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&J(t,e),K(t.x,i.offset.x),K(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||q();J(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(K(r.x,-n.scroll.offset.x),K(r.y,-n.scroll.offset.y)),Ra(n.latestValues)&&Xa(r,n.latestValues,n.layout?.layoutBox)}return Ra(this.latestValues)&&Xa(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=q();J(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Ra(n.latestValues))continue;let r;n.instance&&(La(n.latestValues)&&n.updateSnapshot(),r=q(),J(r,n.measurePageBox())),Ds(t,n.latestValues,n.snapshot?.layoutBox,r)}return Ra(this.latestValues)&&Ds(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||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!==N.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=N.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=q(),this.targetWithTransforms=q()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),ys(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):J(this.target,this.layout.layoutBox),Wa(this.target,this.targetDelta)):J(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),vo.value&&tc.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||La(this.parent.latestValues)||za(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=q(),this.relativeTargetOrigin=q(),xs(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),J(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===N.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;J(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;qa(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=q());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(us(this.prevProjectionDelta.x,this.projectionDelta.x),us(this.prevProjectionDelta.y,this.projectionDelta.y)),_s(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Fs(this.projectionDelta.x,this.prevProjectionDelta.x)||!Fs(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),vo.value&&tc.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Oo(),this.projectionDelta=Oo(),this.projectionDeltaWithTransform=Oo()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=Oo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=q(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(Dc));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=B(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=B(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(wc(o.x,e.x,n),wc(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xs(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Ec(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&js(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=q(),J(f,this.relativeTarget)),c&&(this.animationValues=a,Vs(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(H(this.pendingAnimation),void 0),this.pendingAnimation=V.update(()=>{ec.hasAnimatedSinceResize=!0,this.motionValue||=W(0),this.motionValue.jump(0,!1),this.currentAnimation=Ks(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),or(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(rc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&Nc(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||q();let t=Y(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=Y(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}J(t,i),Xa(t,r),_s(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Qs),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&ac(`z`,e,r,this.animationValues);for(let t=0;t<nc.length;t++)ac(`rotate${nc[t]}`,e,r,this.animationValues),ac(`skew${nc[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Zs(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Zs(t?.pointerEvents)||``),this.hasProjected&&!Ra(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=Rs(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in qo){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=qo[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Zs(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(pc),this.root.sharedNodes.clear()}}}function cc(e){e.updateLayout()}function lc(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)X(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Y(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;ls(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Nc(i,t.layoutBox,n)&&X(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Y(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=Oo();_s(o,n,t.layoutBox);let s=Oo();a?_s(s,e.applyTransform(r,!0),t.measuredBox):_s(s,n,t.layoutBox);let c=!ks(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=q();xs(s,t.layoutBox,i.layoutBox,o);let c=q();xs(c,n,a.layoutBox,o),Ns(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function uc(e){vo.value&&tc.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function dc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function fc(e){e.clearSnapshot()}function pc(e){e.clearMeasurements()}function mc(e){e.isLayoutDirty=!0,e.updateLayout()}function hc(e){e.isLayoutDirty=!1}function gc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function _c(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function vc(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function yc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function bc(e){e.resolveTargetDelta()}function xc(e){e.calcProjection()}function Sc(e){e.resetSkewAndRotation()}function Cc(e){e.removeLeadSnapshot()}function wc(e,t,n){e.translate=B(t.translate,0,n),e.scale=B(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Tc(e,t,n,r){e.min=B(t.min,n.min,r),e.max=B(t.max,n.max,r)}function Ec(e,t,n,r){Tc(e.x,t.x,n.x,r),Tc(e.y,t.y,n.y,r)}function Dc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Oc={duration:.45,ease:[.4,0,.1,1]},kc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ac=kc(`applewebkit/`)&&!kc(`chrome/`)?Math.round:A;function jc(e){e.min=Ac(e.min),e.max=Ac(e.max)}function Mc(e){jc(e.x),jc(e.y)}function Nc(e,t,n){return e===`position`||e===`preserve-aspect`&&!hs(Ps(t),Ps(n),.2)}function Pc(e){return e!==e.root&&e.scroll?.wasRoot}var Fc=sc({attachResizeListener:(e,t)=>qs(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Ic={current:void 0},Lc=sc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ic.current){let e=new Fc({});e.mount(window),e.setOptions({layoutScroll:!0}),Ic.current=e}return Ic.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Rc={some:0,all:1};function zc(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=Ca(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:Rc[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}var Bc=(e,t)=>Math.abs(e-t);function Vc(e,t){let n=Bc(e.x,t.x),r=Bc(e.y,t.y);return Math.sqrt(n**2+r**2)}function Hc({current:e}){return e?e.ownerDocument.defaultView:null}function Uc(e){if(e)return e.nodeType===3||e.nodeType===8?Uc(e.nextSibling):e}var[Wc,Gc,Kc]=je(`Motion`),[qc,Jc,Yc]=je(`LayoutGroup`),Xc={reducedMotion:`never`,transition:void 0,nonce:void 0},[Zc,Qc,$c]=je(`MotionConfig`);function el(){return Zc(g(()=>Xc))}function tl(e,t,n){if(Array.isArray(e))return e.reduce((e,r)=>{let i=tl(r,t,n);return i?{...e,...i}:e},{});if(typeof e==`object`)return e;if(e&&t){let r=t[e];return typeof r==`function`?r(n):r}}function nl(e,t,n){let r=tl(e,t,n);if(!r)return;let{transition:i,transitionEnd:a,...o}=r;return{...o,...a}}function rl(e,t){let n=(e.initial===void 0&&e.variants?t?.initial:e.initial)===!1?[`initial`,`animate`]:[`initial`],r=e.custom??e.presenceContext?.custom;return n.reduce((n,i)=>({...n,...nl(e[i]||t?.[i],e.variants,r)}),{})}var il=new Set(`animate.circle.defs.desc.ellipse.g.image.line.filter.marker.mask.metadata.path.pattern.polygon.polyline.rect.stop.svg.switch.symbol.text.tspan.use.view.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDistantLight.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`));function al(e){return il.has(e)}var ol=new WeakMap,sl=class{constructor(e,t,n={}){this.element=null,this.isExiting=!1,this.children=new Set,this.features=new Map,this.featureCtors=[],this._context=null,this.options=e,this.parent=t,t?.children?.add(this),this.latestValues=rl(e,this.context),this.type=al(this.options.as)?`svg`:`html`,this.setBundle(n)}get context(){if(!this._context){let e={get:(e,t)=>{let n=this.options[t];return Mo(n)||t===`initial`&&n===!1?n:this.parent?.context[t]}};this._context=new Proxy({},e)}return this._context}setBundle(e){e.renderer&&this.initVisualElement(e.renderer),e.features?.length&&(this.featureCtors=e.features),this.updateFeatures()}updateFeatures(){if(this.visualElement)for(let e of this.featureCtors){let t=this.features.get(e.key);t||(t=new e(this),this.features.set(e.key,t)),this.isMounted()&&(t.isMount?t.update():(t.mount(),t.isMount=!0))}}updateOptions(e){this.options=e,this.visualElement?.update({...this.options,whileTap:this.options.whilePress},this.options.presenceContext??null)}mount(e){ol.set(e,this),this.element=e,this.features.get(`layout`)?.refreshRootScroll(),this.visualElement?.mount(e),this.updateFeatures()}beforeUnmount(){this.getSnapshot(!1)}unmount(){this.parent?.children?.delete(this),this.element&&ol.delete(this.element),this.features.forEach(e=>{e.unmount(),e.isMount=!1}),this.visualElement?.unmount(),this.element=null}beforeUpdate(){this.getSnapshot(!this.isExiting)}update(){this.updateFeatures(),this.didUpdate()}getFeature(e){return this.features.get(e)}setActive(e,t){e===`exit`&&t&&(this.isExiting=!0);let n=e===`whilePress`?`whileTap`:e;this.visualElement?.animationState?.setActive(n,t).then(()=>{e===`exit`&&t&&(this.isExiting=!1)})}isMounted(){return!!this.element}initVisualElement(e){this.visualElement||(this.visualElement=e(this.options.as,{presenceContext:this.options.presenceContext??null,parent:this.parent?.visualElement,props:{...this.options,whileTap:this.options.whilePress},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{...this.latestValues}},reducedMotionConfig:this.options.motionConfig?.reducedMotion}),this.isMounted()&&this.visualElement.mount(this.element))}getSnapshot(e){this.features.get(`layout`)?.getSnapshot(e)}didUpdate(){}},Q=class{constructor(e){this.isMount=!1,this.state=e}mount(){}beforeUnmount(){}unmount(){}update(){}getSnapshot(e){}};function cl(e){return e.style.display===`none`||e.offsetParent===null&&window.getComputedStyle(e).position!==`fixed`}var ll=class extends Q{static{this.key=`animation`}constructor(e){super(e);let t=e.visualElement;t.animationState||=os(t)}updateAnimationControlsSubscription(){let{animate:e}=this.state.options;jo(e)&&(this.unmountControls=e.subscribe(this.state.visualElement))}mount(){cl(this.state.element)?this.state.setActive(`exit`,!0):this.state.visualElement.animationState?.animateChanges(),this.updateAnimationControlsSubscription()}update(){this.state.visualElement.animationState?.animateChanges();let{animate:e}=this.state.visualElement.getProps(),{animate:t}=this.state.visualElement.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.state.visualElement.animationState.reset(),this.unmountControls?.()}},ul=class extends Q{constructor(...e){super(...e),this.exitGeneration=0}static{this.key=`exit`}exit(){let e=++this.exitGeneration,t=this.state;t.isExiting=!0;let n=new Promise(e=>{this.pendingExit={resolve:e}}),r=t.visualElement?.animationState?.setActive(`exit`,!0);return r?r.then(()=>{e===this.exitGeneration&&(t.isExiting=!1,t.options?.layoutId?V.postRender(()=>this.tryCompleteExit(e)):this.tryCompleteExit(e))}):(t.isExiting=!1,this.tryCompleteExit(e)),t.getSnapshot(!1),n}reenter(){this.exitGeneration++,this.settleExit(),this.state.isExiting=!1,this.state.setActive(`exit`,!1),this.state.getSnapshot(!0)}completeExitFromProjection(){this.tryCompleteExit(this.exitGeneration)}tryCompleteExit(e){e!==this.exitGeneration||this.state.isExiting||this.state.options?.layoutId&&this.state.visualElement.projection?.currentAnimation?.state===`running`||this.settleExit()}settleExit(){this.pendingExit?.resolve(),this.pendingExit=void 0}mount(){this.state.options.presenceContext?.register?.(this.state)}unmount(){this.state.options.presenceContext?.unregister?.(this.state),this.settleExit()}};function dl(e,t){return al(e)?new rs(t):new Qo(t)}function fl(e){return{point:{x:e.pageX,y:e.pageY}}}var pl=class extends Q{static{this.key=`press`}constructor(e){super(e)}isActive(){let{whilePress:e,onPress:t,onPressCancel:n,onPressStart:r}=this.state.options;return!!(e||t||n||r)}register(){let e=this.state.element;e&&this.isActive()&&(this.removePress?.(),this.removePress=_o(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whilePress`,!0),n.onPressStart&&V.postRender(()=>n.onPressStart(t,fl(t))),(e,{success:t})=>{this.state.setActive(`whilePress`,!1);let n=t?`onPress`:`onPressCancel`,r=this.state.options[n];r&&V.postRender(()=>r(e,fl(e)))}},{useGlobalTarget:this.state.options.globalPressTarget}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whilePress||e?.whileTap||e?.onPress||e?.onPressCancel||e?.onPressStart)&&this.isActive()&&this.register()}unmount(){this.removePress?.(),this.removePress=void 0}};function ml(e){return e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1}function hl(e,t=`page`){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}function gl(e){return t=>ml(t)&&e(t,hl(t))}var _l=class extends Q{static{this.key=`hover`}constructor(e){super(e)}isActive(){let{whileHover:e,onHoverStart:t,onHoverEnd:n}=this.state.options;return!!(e||t||n)}register(){let e=this.state.element;e&&this.isActive()&&(this.removeHover?.(),this.removeHover=ao(e,(e,t)=>{let n=this.state.options;return this.state.setActive(`whileHover`,!0),n.onHoverStart&&V.postRender(()=>n.onHoverStart(t,hl(t))),e=>{this.state.setActive(`whileHover`,!1);let t=this.state.options.onHoverEnd;t&&V.postRender(()=>t(e,hl(e)))}}))}mount(){this.register()}update(){let e=this.state.visualElement.prevProps;!(e?.whileHover||e?.onHoverStart||e?.onHoverEnd)&&this.isActive()&&this.register()}unmount(){this.removeHover?.(),this.removeHover=void 0}},vl=class extends Q{static{this.key=`inView`}constructor(e){super(e)}isActive(){let{whileInView:e,onViewportEnter:t,onViewportLeave:n}=this.state.options;return!!(e||t||n)}startObserver(){let e=this.state.element;if(!e||!this.isActive())return;this.removeObserver?.();let{once:t,...n}=this.state.options.inViewOptions||{};this.removeObserver=zc(e,(e,n)=>{let r=this.state.options;if(this.state.setActive(`whileInView`,!0),r.onViewportEnter&&V.postRender(()=>r.onViewportEnter(n)),!t)return()=>{this.state.setActive(`whileInView`,!1);let e=this.state.options.onViewportLeave;e&&V.postRender(()=>e(n))}},n)}mount(){this.startObserver()}update(){let{props:e,prevProps:t}=this.state.visualElement;[`amount`,`margin`,`root`].some(n=>e.inViewOptions?.[n]!==t?.inViewOptions?.[n])&&this.startObserver()}unmount(){this.removeObserver?.(),this.removeObserver=void 0}},yl=class extends Q{static{this.key=`focus`}constructor(e){super(e),this.isFocused=!1}onFocus(){let e=!1;try{e=this.state.element.matches(`:focus-visible`)}catch{e=!0}e&&(this.state.setActive(`whileFocus`,!0),this.isFocused=!0)}onBlur(){this.isFocused&&=(this.state.setActive(`whileFocus`,!1),!1)}mount(){let e=this.state.element;this.removeFocus=ze(qs(e,`focus`,()=>this.onFocus()),qs(e,`blur`,()=>this.onBlur()))}unmount(){this.removeFocus?.(),this.removeFocus=void 0}};function bl(e){if(e)return e.options.allowProjection===!1?bl(e.parent):e.projection}var xl={borderRadius:{...Z,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:Z,borderTopRightRadius:Z,borderBottomLeftRadius:Z,borderBottomRightRadius:Z,boxShadow:Ls};function Sl(e){return typeof e==`object`&&!!e&&`nodeType`in e}var Cl=typeof window>`u`,wl=class extends Q{static{this.key=`projection`}constructor(e){super(e),Jo(xl),Cl||this.initProjection()}initProjection(){let e=this.state.options;this.state.visualElement.projection=new Lc(this.state.visualElement.latestValues,e[`data-framer-portal-id`]?void 0:bl(this.state.visualElement.parent)),this.projection=this.state.visualElement.projection,this.projection.isPresent=!0,this.setOptions()}setOptions(){let e=this.state.options,{layoutId:t,layout:n,drag:r=!1,dragConstraints:i=!1}=e;this.projection?.setOptions({layout:n,layoutId:t,alwaysMeasureLayout:!!t||!!r||i&&Sl(i),visualElement:this.state.visualElement,animationType:typeof e.layout==`string`?e.layout:`both`,layoutRoot:e.layoutRoot,layoutScroll:e.layoutScroll,crossfade:e.crossfade,onExitComplete:()=>{!this.projection?.isPresent&&this.state.options.layoutId&&!this.state.isExiting&&queueMicrotask(()=>{this.state.getFeature(`exit`)?.completeExitFromProjection()})}})}update(){this.setOptions()}mount(){this.projection?.mount(this.state.element)}};function Tl(e,t,n,r){return qs(e,t,gl(n),r)}var El=new Set([`auto`,`scroll`]),Dl=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=Al(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=Vc(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=N;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Ol(t,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Al(e.type===`pointercancel`?this.lastMoveEventInfo:Ol(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!ml(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||window;let o=Ol(hl(e),this.transformPagePoint),{point:s}=o,{timestamp:c}=N;this.history=[{...s,timestamp:c}];let{onSessionStart:l}=t;l&&l(e,Al(o,this.history)),this.removeListeners=ze(Tl(this.contextWindow,`pointermove`,this.handlePointerMove),Tl(this.contextWindow,`pointerup`,this.handlePointerUp),Tl(this.contextWindow,`pointercancel`,this.handlePointerUp)),a&&this.startScrollTracking(a)}isScrollable(e){let t=window.getComputedStyle(e);return t.overflow===`auto`||t.overflow===`scroll`||t.overflowX===`auto`||t.overflowX===`scroll`||t.overflowY===`auto`||t.overflowY===`scroll`}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(El.has(e.overflowX)||El.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,passive:!0}),window.addEventListener(`scroll`,this.onWindowScroll,{passive:!0}),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 n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),V.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners?.(),this.scrollPositions.clear(),H(this.updatePoint)}};function Ol(e,t){return t?{point:t(e.point)}:e}function kl(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Al({point:e},t){return{point:e,delta:kl(e,Ml(t)),offset:kl(e,jl(t)),velocity:Nl(t,.1)}}function jl(e){return e[0]}function Ml(e){return e[e.length-1]}function Nl(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=Ml(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>j(t)));)n--;if(!r)return{x:0,y:0};let a=M(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function Pl(e){return(t,n)=>{e&&V.postRender(()=>e(t,n))}}var Fl=class extends Q{constructor(...e){super(...e),this.removePointerDownListener=A}static{this.key=`pan`}onPointerDown(e){this.session=new Dl(e,this.createPanHandlers(),{transformPagePoint:this.state.visualElement.getTransformPagePoint(),contextWindow:Hc(this.state.visualElement)})}createPanHandlers(){return{onSessionStart:Pl((e,t)=>{let{onPanSessionStart:n}=this.state.options;n&&n(e,t)}),onStart:Pl((e,t)=>{let{onPanStart:n}=this.state.options;n&&n(e,t)}),onMove:(e,t)=>{let{onPan:n}=this.state.options;n&&n(e,t)},onEnd:(e,t)=>{let{onPanEnd:n}=this.state.options;delete this.session,n&&V.postRender(()=>n(e,t))}}}mount(){this.removePointerDownListener=Tl(this.state.element,`pointerdown`,this.onPointerDown.bind(this))}update(){}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}};function Il(e){let t=null;return()=>t===null&&(t=e,()=>{t=null})}var Ll=Il(`dragHorizontal`),Rl=Il(`dragVertical`);function zl(e){let t=!1;if(e===`y`)t=Rl();else if(e===`x`)t=Ll();else{let e=Ll(),n=Rl();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Bl(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?B(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?B(n,e,r.max):Math.min(e,n)),e}var Vl=.35;function Hl(e,{top:t,left:n,bottom:r,right:i}){return{x:Ul(e.x,n,i),y:Ul(e.y,t,r)}}function Ul(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function Wl(e=Vl){return e===!1?e=0:e===!0&&(e=Vl),{x:Gl(e,`left`,`right`),y:Gl(e,`top`,`bottom`)}}function Gl(e,t,n){return{min:Kl(e,t),max:Kl(e,n)}}function Kl(e,t){return typeof e==`number`?e:e[t]||0}function ql(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}function Jl(e,t){return{x:Yl(e.x,t.x),y:Yl(e.y,t.y)}}function Yl(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Xl(e,t){let n=.5,r=Y(e),i=Y(t);return i>r?n=Be(t.min,t.max-r,e.min):r>i&&(n=Be(e.min,e.max-i,t.min)),O(0,1,n)}var Zl=new WeakMap,Ql=class{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=q(),this.state=e}get visualElement(){return this.state.visualElement}start(e,{snapToCursor:t=!1}={}){let n=e=>{t&&this.snapToCursor(hl(e,`page`).point),this.stopAnimation()},r=(e,t)=>{this.stopAnimation();let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=zl(n),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),X(e=>{let t=this.getAxisMotionValue(e).get()||0;if(I.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Y(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&V.postRender(()=>i(e,t)),na(this.visualElement,`transform`),this.state.setActive(`whileDrag`,!0))},i=(e,t)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=eu(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&a(e,t)},a=(e,t)=>this.stop(e,t),o=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:s}=this.getProps();this.panSession=new Dl(e,{onSessionStart:n,onStart:r,onMove:i,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:s,contextWindow:Hc(this.visualElement),element:this.state.element})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&V.postRender(()=>i(e,t))}cancel(){this.isDragging=!1;let{projection:e}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:t}=this.getProps();!t&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),this.state.setActive(`whileDrag`,!1)}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!$l(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=Bl(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Sl(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?Hl(n.layoutBox,e):!1,this.elastic=Wl(t),r!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&X(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=ql(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Sl(e))return!1;let n=e,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=Qa(n,r.root,this.visualElement.getTransformPagePoint()),a=Jl(r.layout.layoutBox,i);if(t){let e=t(Pa(a));this.hasMutatedConstraints=!!e,e&&(a=Na(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=X(o=>{if(!$l(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return na(this.visualElement,e),n.start(Hi(e,n,0,t,this.visualElement,!1))}stopAnimation(){this.visualElement.projection?.isPresent&&X(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){X(t=>{let{drag:n}=this.getProps();if(!$l(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t];i.set(e[t]-B(n,a,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Sl(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};X(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=Xl({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.state.element.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),X(t=>{if(!$l(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(B(i,a,r[t]))})}addListeners(){if(!this.state.element)return;Zl.set(this.visualElement,this);let e=this.state.element,t=Tl(e,`pointerdown`,e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),n=()=>{let{dragConstraints:e}=this.getProps();Sl(e)&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener(`measure`,n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),V.read(n);let a=qs(window,`resize`,()=>this.scalePositionWithinConstraints()),o=r.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(X(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{a(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Vl,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function $l(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function eu(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var tu={renderer:dl,features:[ll,ul,pl,_l,vl,yl,wl,Fl,class extends Q{static{this.key=`drag`}constructor(e){super(e),this.removeGroupControls=A,this.removeListeners=A,this.controls=new Ql(e)}mount(){let{dragControls:e}=this.state.options;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||A}unmount(){this.removeGroupControls(),this.removeListeners()}},class extends Q{static{this.key=`layout`}constructor(e){super(e),Jo(xl)}updatePrevLead(e){let t=this.state.visualElement.projection;t.isPresent!==e&&(t.isPresent=e,e?!t.isLead()&&t?.promote():t.isLead()&&t?.relegate())}didUpdate(){(this.state.options.layout||this.state.options.layoutId||this.state.options.drag)&&this.state.visualElement.projection?.root?.didUpdate()}mount(){let e=this.state.options,t=this.state.options.layoutGroup;if(e.layout||e.layoutId){let n=this.state.visualElement.projection;if(e.layoutId){let e=!cl(this.state.element);n.isPresent=e,e?n?.promote():n?.relegate()}t?.group?.add(n),ec.hasEverUpdated=!0}this.didUpdate()}unmount(){let e=this.state.options.layoutGroup,t=this.state.visualElement.projection;t&&e?.group&&(this.state.options.layout||this.state.options.layoutId)&&e.group.remove(t)}getSnapshot(e){let t=this.state.visualElement.projection,{layout:n,layoutId:r,drag:i,layoutDependency:a}=this.state.visualElement.props,o=this.state.visualElement.prevProps;t&&(n||r||i)&&((i||o.layoutDependency!==a||a===void 0||e!==t.isPresent)&&t.willUpdate(),r&&this.updatePrevLead(e),this.didUpdate())}refreshRootScroll(){let e=this.state.visualElement?.projection?.root;e&&this.state.options.layoutId&&(e.scroll=void 0,e.updateScroll?.())}}]},[nu,ru]=je(`LazyMotionContext`),[iu,au,ou]=je(`AnimatePresenceContext`);function su(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}function cu(){return{transform:{},transformOrigin:{},style:{},vars:{}}}function lu(){return{...cu(),attrs:{}}}function uu(e){let t=cu();Da(t,e);let n={...t.style};for(let e in t.vars)n[e]=t.vars[e];return Object.keys(n).length===0?null:n}function du(e,t,n){let r=lu();Ma(r,e,es(t),void 0,n);let i={};for(let e in r.attrs){let t=$o.has(e)?e:su(e);i[t]=r.attrs[e]}return{attrs:i,style:{...r.style,...r.vars}}}function fu(e,t={}){let r=Wc(null),i=qc({}),a=el(),c=iu({}),l=nu({features:fe({}),strict:!1}),d=ne();function f(){return Me(e,{layoutGroup:i,presenceContext:c,config:a.value})}function p(){return{...d,...f()}}let m=new sl(p(),r,t);Gc(m),de(l.features,e=>{m.setBundle(e)},{immediate:!0,flush:`pre`});function g(){let t=m.type===`svg`,n={...d};Object.keys(d).forEach(e=>{G(d[e])&&(n[e]=d[e].get())});let r=m.visualElement?.latestValues||m.latestValues,i={...e.style,...t?{}:r};for(let e in i)G(i[e])&&(i[e]=i[e].get());if(t){let{attrs:t,style:a}=du({...r,...i},m.options.as,e.style);Object.assign(n,t),i=a}e.drag&&e.dragListener!==!1&&Object.assign(i,{userSelect:`none`,WebkitUserSelect:`none`,WebkitTouchCallout:`none`,touchAction:e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`});let a=uu(i);return a&&(n.style=a),n}let _=se()?.proxy;function v(){let e=Uc(_?.$el);m.mount(e)}n(()=>{m.updateOptions(p()),m.beforeUnmount()}),b(v);function x(){Uc(_?.$el)?.isConnected||m.unmount()}return o(x),s(x),h(()=>{m.isMounted()||v()}),y(()=>{m.updateOptions(p()),m.beforeUpdate()}),u(()=>{m.update()}),{getProps:f,getAttrs:g,layoutGroup:i,state:m}}var pu={ignoreStrict:{type:Boolean},forwardMotionProps:{type:Boolean,default:!1},asChild:{type:Boolean,default:!1},whileDrag:{type:[String,Array,Object]},whileHover:{type:[String,Array,Object]},whilePress:{type:[String,Array,Object]},whileInView:{type:[String,Array,Object]},whileFocus:{type:[String,Array,Object]},custom:{type:[String,Number,Object,Array]},initial:{type:[String,Array,Object,Boolean],default:void 0},animate:{type:[String,Array,Object],default:void 0},exit:{type:[String,Array,Object]},variants:{type:Object},inherit:{type:Boolean,default:void 0},style:{type:Object},transformTemplate:{type:Function},transition:{type:Object},onAnimationComplete:{type:Function},onUpdate:{type:Function},layout:{type:[Boolean,String],default:!1},layoutId:{type:String,default:void 0},layoutScroll:{type:Boolean,default:!1},layoutRoot:{type:Boolean,default:!1},"data-framer-portal-id":{type:String},crossfade:{type:Boolean,default:!0},layoutDependency:{type:null,default:void 0},onBeforeLayoutMeasure:{type:Function},onLayoutMeasure:{type:Function},onLayoutAnimationStart:{type:Function},onLayoutAnimationComplete:{type:Function},globalPressTarget:{type:Boolean},onPressStart:{type:Function},onPress:{type:Function},onPressCancel:{type:Function},onHoverStart:{type:Function},onHoverEnd:{type:Function},inViewOptions:{type:Object},onViewportEnter:{type:Function},onViewportLeave:{type:Function},drag:{type:[Boolean,String]},dragSnapToOrigin:{type:Boolean},dragDirectionLock:{type:Boolean},dragPropagation:{type:Boolean},dragConstraints:{type:[Boolean,Object]},dragElastic:{type:[Boolean,Number,Object],default:.5},dragMomentum:{type:Boolean,default:!0},dragTransition:{type:Object},dragListener:{type:Boolean,default:!0},dragControls:{type:Object},onDragStart:{type:Function},onDragEnd:{type:Function},onDrag:{type:Function},onDirectionLock:{type:Function},onDragTransitionEnd:{type:Function},onMeasureDragConstraints:{type:Function},onPanSessionStart:{type:Function},onPanStart:{type:Function},onPan:{type:Function},onPanEnd:{type:Function}},mu=new Map,hu=new Map;function gu(e){if(!Array.isArray(e))return[e];let t=[];for(let n of e)Array.isArray(n)?t.push(...n):t.push(n);return t}var _u=[`area`,`img`,`input`];function vu(e,t,n){if(typeof e==`string`&&_u.includes(e))return f(e,t);if(e===`template`){if(!n.default)return null;let e=gu(n.default()),r=e.findIndex(e=>e.type!==ae);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?c(t,i.props):t;t.class&&i.props?.class&&delete i.props.class;let o=me(i,a);for(let e in a)e.startsWith(`on`)&&(o.props||={},o.props[e]=a[e]);return e.length===1?o:(e[r]=o,e)}return null}function yu(e,n={}){let r=typeof e==`string`,i=r?e:e.name||``,a=n.renderer?mu:hu;if(r&&a.has(e))return a.get(e);let o=t({inheritAttrs:!1,props:{...pu,as:{type:[String,Object],default:e||`div`}},name:i?`motion.${i}`:`Motion`,setup(e,{slots:t}){let{getProps:r,getAttrs:i,state:a}=fu(e,n);function o(){let t=a.element;if((typeof e.as!=`object`||e.asChild)&&t){let{style:e}=i();if(e)for(let[n,r]of Object.entries(e))t.style[n]=r}}return()=>{let n=r(),a=i(),s=e.asChild?`template`:e.as,c={...e.forwardMotionProps?n:{},...a,onVnodeUpdated:o},l=vu(s,c,t);return l===null?f(s,{...c},t):l}}});return r&&a.set(e,o),o}function bu(e){return new Proxy({},{get(t,n){return n===`create`?(t,n)=>yu(t,{...n,...e}):yu(n,{...e})}})}var $=bu(tu);$.create(`div`);var xu=0;function Su(e){let t=new Map;function n(t){if(e.props.mode!==`popLayout`)return;let n=t.el,r=n.offsetParent,i=r instanceof HTMLElement&&r.offsetWidth||0,a={height:n.offsetHeight||0,width:n.offsetWidth||0,top:n.offsetTop,left:n.offsetLeft,right:0};a.right=i-a.width-a.left;let o=e.props.anchorX===`left`?`left: ${a.left}px`:`right: ${a.right}px`,s=`pop-${xu++}`;n.dataset.motionPopId=s;let c=document.createElement(`style`),l=e.getNonce();l&&(c.nonce=l),t.popStyle=c,document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
[data-motion-pop-id="${s}"] {
position: absolute !important;
width: ${a.width}px !important;
height: ${a.height}px !important;
top: ${a.top}px !important;
${o} !important;
}
`)}function r(e){let t=e.popStyle;t&&(e.popStyle=void 0,V.render(()=>{document.head.removeChild(t)}))}function i(e,r,i){let a={el:e,states:r,done:i,aborted:!1};t.set(e,a),n(a);let s=r.map(e=>e.getFeature(`exit`)?.exit()??Promise.resolve());Promise.all(s).then(()=>{a.aborted||o(a)})}function a(e){let n=t.get(e);n&&(n.aborted=!0,t.delete(e),r(n))}function o(n){t.delete(n.el),r(n),n.states.forEach(e=>{e.getSnapshot(!1)}),n.done(),n.el.isConnected||n.states.forEach(e=>{e.unmount()}),e.onAllComplete()}function s(){t.forEach(e=>{e.states.forEach(e=>{e.unmount()})}),t.clear()}return{track:i,abort:a,dispose:s}}function Cu(e){let t=el(),n=Su({props:e,getNonce:()=>t.value.nonce,onAllComplete:()=>e.onExitComplete?.()}),r=new Set,i=!1;au({get initial(){return i?void 0:e.initial},get custom(){return e.custom},register:e=>r.add(e),unregister:e=>r.delete(e)}),b(()=>{i=!0});function a(e){let t=[];for(let n of r){let r=n.element;r&&(r===e||e.contains(r))&&t.push(n)}return t}function s(e,t){n.abort(e),a(e).forEach(e=>{e.getFeature(`exit`)?.reenter()}),t()}function c(t,r){let i=t,o=a(i);if(o.length===0){r(),e.onExitComplete?.();return}n.track(i,o,r)}return o(()=>{n.dispose()}),{enter:s,exit:c}}var wu=t({name:`AnimatePresence`,inheritAttrs:!0,__name:`AnimatePresence`,props:{mode:{default:`sync`},initial:{type:Boolean,default:!0},as:{},custom:{},onExitComplete:{},anchorX:{default:`left`}},setup(t){let n=t,{enter:r,exit:i}=Cu(n),a=g(()=>n.mode===`wait`?{mode:n.mode===`wait`?`out-in`:void 0}:{tag:n.as});return(n,o)=>(T(),D(e(t.mode===`wait`?te:le),c(a.value,{appear:``,css:!1,onLeave:C(i),onEnter:C(r)}),{default:E(()=>[S(n.$slots,`default`)]),_:3},16,[`onLeave`,`onEnter`]))}});function Tu(e,t={}){let n=W(G(e)?e.get():e);return de(()=>oe(t),(r,i,a)=>{let o=Eo(n,e,{type:`spring`,...oe(t)});a(()=>{o?.()})},{immediate:!0}),n}var Eu=globalThis.setInterval,Du={class:`flex items-center gap-4`},Ou={class:`flex size-12 items-center justify-center rounded-xl bg-accent text-bg`},ku={class:`mt-12 font-mono text-7xl font-semibold tabular-nums md:text-8xl`},Au={class:`mt-8 h-[3px] w-64 overflow-hidden rounded-full bg-line md:w-80`},ju={class:`mt-6 flex items-center gap-3 text-xs text-muted`},Mu=Object.assign(t({__name:`Preloader`,emits:[`complete`],setup(e,{emit:t}){let i=[`بررسی سیستم‌های ایمنی`,`تأیید استانداردهای بین‌المللی`,`بارگذاری تجهیزات حفاظت فردی`,`محیط کاری آماده است`],a=t,o=fe(0),s=!1,c;b(()=>{let e=0;c=Eu(()=>{e+=Math.floor(Math.random()*11)+7,e>=100&&(e=100,clearInterval(c),s||(s=!0,setTimeout(()=>a(`complete`),450))),o.value=e},140)}),n(()=>clearInterval(c));let l=g(()=>i[Math.min(i.length-1,Math.floor(o.value/100*i.length))]);return(e,t)=>(T(),D(C($).div,{exit:{y:`-100%`},transition:{duration:.85,ease:[.76,0,.24,1]},class:`fixed inset-0 z-[200] flex flex-col items-center justify-center bg-bg`},{default:E(()=>[t[4]||=r(`div`,{class:`hazard absolute inset-x-0 top-0 h-3`},null,-1),t[5]||=r(`div`,{class:`hazard absolute inset-x-0 bottom-0 h-3`},null,-1),r(`div`,Du,[r(`span`,Ou,[w(C(Ce),{class:`size-7`})]),t[0]||=r(`span`,{class:`font-mono text-xs tracking-[0.35em] text-muted`},` IMEN PISHGAMAN CO. `,-1)]),r(`div`,ku,[p(_(C(o).toLocaleString(`fa-IR`)),1),t[1]||=r(`span`,{class:`text-accent`},`٪`,-1)]),r(`div`,Au,[r(`div`,{class:`h-full bg-accent transition-all duration-200`,style:he({width:`${C(o)}%`})},null,4)]),r(`div`,ju,[t[2]||=r(`span`,{class:`size-1.5 animate-pulse rounded-full bg-accent`},null,-1),p(` `+_(C(l))+` `,1),t[3]||=r(`span`,{class:`animate-blink text-accent`},`▍`,-1)])]),_:1}))}}),{__name:`LayoutPreloader`}),Nu={class:`pointer-events-none fixed inset-0 z-[120] hidden [@media(pointer:fine)]:block`},Pu=Object.assign(t({__name:`Cursor`,setup(e){let t=W(-100),i=W(-100),o=Tu(t,{stiffness:550,damping:45,mass:.4}),s=Tu(i,{stiffness:550,damping:45,mass:.4}),c=fe(!1),l=fe(!1),u=e=>{t.set(e.clientX),i.set(e.clientY),l.value=!0},d=e=>{let t=e.target;c.value=!!t?.closest?.(`a, button, input, textarea, select, label, [data-hover]`)};return b(()=>{window.addEventListener(`mousemove`,u,{passive:!0}),window.addEventListener(`mouseover`,d,{passive:!0})}),n(()=>{window.removeEventListener(`mousemove`,u),window.removeEventListener(`mouseover`,d)}),(e,t)=>(T(),a(`div`,Nu,[w(C($).div,{style:he({x:C(o),y:C(s)}),class:`absolute -left-4 -top-4 size-8`},{default:E(()=>[w(C($).div,{animate:{scale:C(c)?1.9:1,opacity:+!!C(l),rotate:C(c)?45:0},transition:{type:`spring`,stiffness:320,damping:24},class:`size-8 rounded-md border-2 border-accent/80`},null,8,[`animate`]),r(`div`,{class:ge(`absolute inset-0 m-auto size-1 rounded-full bg-accent transition-opacity duration-300 ${C(l)?`opacity-100`:`opacity-0`}`)},null,2)]),_:1},8,[`style`])]))}}),{__name:`LayoutCursor`});function Fu(e){let t=fe(!1),r=()=>t.value=window.scrollY>e;return b(()=>{r(),window.addEventListener(`scroll`,r,{passive:!0})}),n(()=>window.removeEventListener(`scroll`,r)),t}function Iu(){let e=fe(null),t;return b(()=>{e.value=new Date,t=Eu(()=>e.value=new Date,15e3)}),n(()=>clearInterval(t)),{time:g(()=>e.value?new Intl.DateTimeFormat(`fa-IR`,{hour:`2-digit`,minute:`2-digit`,timeZone:`Asia/Tehran`}).format(e.value):`--:--`),shift:g(()=>{if(!e.value)return``;let t=Number(new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,hour12:!1,timeZone:`Asia/Tehran`}).format(e.value));return t>=6&&t<14?`صبح`:t>=14&&t<22?`عصر`:`شب`})}}var Lu=pe(`/images/logo.png`),Ru=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},zu={};function Bu(e,t){let n=ce;return T(),D(n,{to:`/`,class:`flex items-center gap-3`,"aria-label":`ایمن پیشگامان`},{default:E(()=>[...t[0]||=[r(`span`,{class:`flex size-10 items-center justify-center rounded-xl bg-white shadow-[0_0_28px_rgba(10,30,92,0.45)]`},[r(`img`,{src:Lu,alt:`ایمن پیشگامان`,width:`28`,height:`28`,class:`size-7 object-contain`})],-1),r(`span`,{class:`leading-tight`},[r(`span`,{class:`block text-lg font-black`},`ایمن پیشگامان`),r(`span`,{class:`block font-mono text-[9px] tracking-[0.32em] text-muted`},` IMEN PISHGAMAN CO. `)],-1)]]),_:1})}var Vu=Object.assign(Ru(zu,[[`render`,Bu]]),{__name:`UiLogo`}),Hu={class:`mx-auto flex max-w-[1480px] items-center justify-between px-5 md:px-8`},Uu={class:`hidden items-center gap-7 lg:flex`},Wu=[`href`],Gu={class:`flex items-center gap-3`},Ku={class:`hidden items-center gap-2.5 rounded-full border border-line px-4 py-2 text-[11px] text-muted xl:flex`},qu={class:`font-mono`},Ju={href:`/#contact`,class:`hidden items-center gap-2 rounded-full bg-accent px-5 py-2.5 text-sm font-bold text-bg transition-all duration-300 hover:bg-accent-soft hover:shadow-[0_0_30px_rgba(255,90,0,0.4)] md:flex`},Yu={class:`flex items-center justify-between border-b border-line px-5 py-4 md:px-8`},Xu={class:`flex flex-1 flex-col justify-center gap-1 overflow-y-auto px-8`},Zu={class:`font-mono text-xs text-accent`},Qu={class:`text-3xl font-black transition-colors group-hover:text-accent`},$u={class:`flex items-center justify-between border-t border-line p-8 text-sm`},ed={class:`flex items-center gap-3 text-muted`},td={class:`text-xs text-muted`},nd=Object.assign(t({__name:`Header`,setup(e){let t=[{href:`/#home`,label:`خانه`},{href:`/#products`,label:`محصولات`},{href:`/#about`,label:`درباره ما`},{href:`/#services`,label:`خدمات`},{href:`/#standards`,label:`استانداردها`},{href:`/#industries`,label:`صنایع`},{href:`/#contact`,label:`تماس`}],i=Ae(),o=Fu(40),{time:s,shift:c}=Iu();return de(()=>i.menuOpen,e=>{document.body.style.overflow=e?`hidden`:``}),n(()=>{document.body.style.overflow=``}),(e,n)=>(T(),a(ie,null,[w(C($).header,{initial:{y:-90,opacity:0},animate:C(i).ready?{y:0,opacity:1}:{},transition:{duration:.9,delay:.15,ease:`EASE`in e?e.EASE:C(Te)},class:ge(`fixed inset-x-0 top-0 z-[80] transition-all duration-500 ${C(o)?`border-b border-line bg-bg/85 py-3 backdrop-blur-xl`:`py-5`}`)},{default:E(()=>[r(`div`,Hu,[w(Vu),r(`nav`,Uu,[(T(),a(ie,null,x(t,e=>r(`a`,{key:e.href,href:e.href,class:`group relative py-2 text-sm text-ink/75 transition-colors hover:text-ink`},[p(_(e.label)+` `,1),n[2]||=r(`span`,{class:`absolute bottom-0 start-0 h-0.5 w-full origin-right scale-x-0 bg-accent transition-transform duration-300 group-hover:scale-x-100`},null,-1)],8,Wu)),64))]),r(`div`,Gu,[r(`div`,Ku,[n[3]||=r(`span`,{class:`size-1.5 animate-pulse rounded-full bg-emerald-400`},null,-1),r(`span`,qu,_(C(s)),1),n[4]||=r(`span`,{class:`text-muted/50`},`|`,-1),r(`span`,null,`تهران — شیفت `+_(C(c)),1)]),r(`a`,Ju,[w(C(xe),{class:`size-4`}),n[5]||=p(` درخواست مشاوره `,-1)]),r(`button`,{"aria-label":`باز کردن منو`,class:`flex size-11 items-center justify-center rounded-lg border border-line text-ink transition-colors hover:border-accent hover:text-accent lg:hidden`,onClick:n[0]||=(...e)=>C(i).openMenu&&C(i).openMenu(...e)},[w(C(be),{class:`size-5`})])])])]),_:1},8,[`animate`,`transition`,`class`]),w(C(wu),null,{default:E(()=>[C(i).menuOpen?(T(),D(C($).div,{key:0,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.35},class:`fixed inset-0 z-[110] flex flex-col bg-bg/95 backdrop-blur-2xl`},{default:E(()=>[r(`div`,Yu,[w(Vu),r(`button`,{"aria-label":`بستن منو`,class:`flex size-11 items-center justify-center rounded-lg border border-line transition-colors hover:border-accent hover:text-accent`,onClick:n[1]||=(...e)=>C(i).closeMenu&&C(i).closeMenu(...e)},[w(C(we),{class:`size-5`})])]),r(`nav`,Xu,[(T(),a(ie,null,x(t,(t,n)=>w(C($).a,{key:t.href,href:t.href,initial:{opacity:0,x:44},animate:{opacity:1,x:0},transition:{delay:.08+n*.055,duration:.55,ease:`EASE`in e?e.EASE:C(Te)},class:`group flex items-baseline gap-5 border-b border-line/60 py-4`,onClick:C(i).closeMenu},{default:E(()=>[r(`span`,Zu,_((`faNum`in e?e.faNum:C(Ee))(String(n+1).padStart(2,`0`))),1),r(`span`,Qu,_(t.label),1)]),_:2},1032,[`href`,`transition`,`onClick`])),64))]),r(`div`,$u,[r(`div`,ed,[w(C(xe),{class:`size-4 text-accent`}),n[6]||=r(`span`,{class:`font-mono`},`۰۲۱-۹۱۰۰۸۸۰۰`,-1)]),r(`div`,td,`تهران — شیفت `+_(C(c))+`، `+_(C(s)),1)])]),_:1})):v(``,!0)]),_:1})],64))}}),{__name:`LayoutHeader`}),rd=Object.assign(t({__name:`BackToTop`,setup(e){let t=Fu(700);return(e,n)=>(T(),D(C(wu),null,{default:E(()=>[C(t)?(T(),D(C($).a,{key:0,href:`#home`,"aria-label":`بازگشت به بالا`,initial:{opacity:0,y:24},animate:{opacity:1,y:0},exit:{opacity:0,y:24},class:`fixed bottom-6 left-6 z-[70] flex size-12 items-center justify-center rounded-full border border-line bg-panel/90 text-ink shadow-[0_10px_40px_rgba(0,0,0,0.5)] backdrop-blur transition-colors hover:border-accent hover:text-accent`},{default:E(()=>[w(C(_e),{class:`size-5`})]),_:1})):v(``,!0)]),_:1}))}}),{__name:`LayoutBackToTop`}),id=Object.assign(t({__name:`AppShell`,setup(e){let t=Ae();return(e,n)=>(T(),a(ie,null,[w(C(wu),null,{default:E(()=>[C(t).ready?v(``,!0):(T(),D(Mu,{key:0,onComplete:C(t).setReady},null,8,[`onComplete`]))]),_:1}),w(Pu),n[0]||=r(`div`,{class:`noise`,"aria-hidden":`true`},null,-1),w(nd),S(e.$slots,`default`),w(rd)],64))}}),{__name:`LayoutAppShell`}),ad={class:`relative overflow-hidden border-t border-line`},od={class:`mx-auto max-w-[1480px] px-5 md:px-8`},sd={class:`grid gap-12 py-16 md:grid-cols-12 md:py-20`},cd={class:`md:col-span-5`},ld={class:`mt-7 flex gap-3`},ud=[`aria-label`],dd={class:`md:col-span-2`},fd={class:`mt-5 space-y-3`},pd=[`href`],md={class:`md:col-span-2`},hd={class:`mt-5 space-y-3`},gd=Object.assign(t({__name:`Footer`,setup(t){let n=[{href:`/#home`,label:`خانه`},{href:`/#products`,label:`محصولات`},{href:`/#about`,label:`درباره ما`},{href:`/#services`,label:`خدمات`},{href:`/#standards`,label:`استانداردها`},{href:`/#industries`,label:`صنایع`}],o=Oe.map(e=>({label:e.name,href:`/categories/${e.slug}`})),s=[{icon:ye,label:`وب‌سایت`},{icon:Se,label:`تلگرام`},{icon:ve,label:`ایمیل`},{icon:xe,label:`تماس`}];return(t,c)=>{let l=ce;return T(),a(`footer`,ad,[c[6]||=r(`div`,{class:`hazard h-2.5`},null,-1),r(`div`,od,[r(`div`,sd,[r(`div`,cd,[w(Vu),c[0]||=r(`p`,{class:`mt-6 max-w-sm text-sm leading-8 text-muted`},` تأمین‌کننده تخصصی تجهیزات حفاظت فردی و راهکارهای ایمنی صنعتی؛ همراه سازمان‌ها از سال ۱۳۸۶ در مسیر صفر شدن حوادث کاری. `,-1),r(`div`,ld,[(T(),a(ie,null,x(s,t=>r(`a`,{key:t.label,href:`/#contact`,"aria-label":t.label,class:`flex size-10 items-center justify-center rounded-lg border border-line text-muted transition-all duration-300 hover:border-accent hover:bg-accent hover:text-bg`},[(T(),D(e(t.icon),{class:`size-4`}))],8,ud)),64))])]),r(`div`,dd,[c[1]||=r(`div`,{class:`font-mono text-xs tracking-[0.25em] text-accent`},`// دسترسی`,-1),r(`ul`,fd,[(T(),a(ie,null,x(n,e=>r(`li`,{key:e.href},[r(`a`,{href:e.href,class:`text-sm text-muted transition-colors hover:text-ink`},_(e.label),9,pd)])),64))])]),r(`div`,md,[c[2]||=r(`div`,{class:`font-mono text-xs tracking-[0.25em] text-accent`},`// محصولات`,-1),r(`ul`,hd,[(T(!0),a(ie,null,x(C(o),e=>(T(),a(`li`,{key:e.href},[w(l,{to:e.href,class:`text-sm text-muted transition-colors hover:text-ink`},{default:E(()=>[p(_(e.label),1)]),_:2},1032,[`to`])]))),128))])]),c[3]||=i(`<div class="md:col-span-3"><div class="font-mono text-xs tracking-[0.25em] text-accent">// ارتباط</div><address class="mt-5 space-y-3 text-sm text-muted not-italic"><p class="leading-7"> تهران، خیابان کارگر شمالی، <br> خیابان فر، کوچه دوم، پلاک ۱۲ </p><p class="font-mono tracking-wider" dir="ltr">۰۲۱ - ۹۱ ۰۰ ۸۸ ۰۰</p><p class="font-mono tracking-wider" dir="ltr">info@imenpishgaman.ir</p><p class="pt-2 text-xs leading-6"> شنبه تا پنجشنبه — ۸:۰۰ تا ۱۷:۰۰ <br> پشتیبانی اضطراری: ۲۴/۷ </p></address></div>`,1)]),c[4]||=r(`div`,{"aria-hidden":`true`,class:`pointer-events-none select-none pb-6`},[r(`div`,{class:`text-outline text-center text-[17vw] font-black leading-[0.85] md:text-[11vw]`},` ایمن پیشگامان `)],-1),c[5]||=r(`div`,{class:`flex flex-wrap items-center justify-between gap-4 border-t border-line py-6 text-xs text-muted`},[r(`div`,null,`© ۱۴۰۴ ایمن پیشگامان — تمامی حقوق محفوظ است.`),r(`div`,{class:`font-mono text-[10px] tracking-[0.25em]`},` ISO 9001:2015 — CE CERTIFIED PPE SUPPLIER `)],-1)])])}}}),{__name:`LayoutFooter`}),_d=Object.assign(t({__name:`Reveal`,props:{delay:{default:0}},setup(e){let t=e,n=g(()=>De(t.delay,34));return(e,t)=>(T(),D(C($).div,ee(d(C(n))),{default:E(()=>[S(e.$slots,`default`)]),_:3},16))}}),{__name:`UiReveal`}),vd={class:`font-mono text-xs tracking-[0.25em] text-muted`},yd=[`id`],bd=Object.assign(t({__name:`SectionHead`,props:{tag:{},title:{},desc:{},center:{type:Boolean,default:!1},headingId:{}},setup(e){return(t,n)=>(T(),a(`div`,{class:ge(e.center?`text-center`:``)},[w(_d,null,{default:E(()=>[r(`div`,{class:ge(`flex items-center gap-3 ${e.center?`justify-center`:``}`)},[n[0]||=r(`span`,{class:`font-mono text-sm text-accent`},`//`,-1),r(`span`,vd,_(e.tag),1),n[1]||=r(`span`,{class:`h-px w-14 bg-line`},null,-1)],2)]),_:1}),w(_d,{delay:.08},{default:E(()=>[r(`h2`,{id:e.headingId,class:`mt-5 text-3xl font-black leading-[1.25] md:text-5xl md:leading-[1.2]`},[S(t.$slots,`title`,{},()=>[p(_(e.title),1)])],8,yd)]),_:3}),e.desc?(T(),D(_d,{key:0,delay:.16},{default:E(()=>[r(`p`,{class:ge(`mt-5 max-w-xl leading-8 text-muted ${e.center?`mx-auto`:``}`)},_(e.desc),3)]),_:1})):v(``,!0)],2))}}),{__name:`UiSectionHead`});export{Se as _,Eu as a,$ as c,Oe as d,ke as f,Ce as g,De as h,id as i,zc as l,Ee as m,_d as n,Tu as o,Te as p,gd as r,wu as s,bd as t,W as u,xe as v,ye as y};