@vireo-ai/trellis-ui 0.1.37 → 0.1.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/package.json +1 -1
  2. package/packages/client/src/styles/generated-sources.css +1 -1
  3. package/packages/client/types/assets/full-runtime.generated.d.ts +1 -1
  4. package/packages/client/types/component-api.d.ts +1 -0
  5. package/packages/client/types/components/entry.generated.d.ts +1 -0
  6. package/packages/client/types/components/runtime.d.ts +2 -0
  7. package/packages/client/types/components/virtualizer/contract.d.ts +29 -0
  8. package/packages/client/types/components/virtualizer/entry.generated.d.ts +5 -0
  9. package/packages/client/types/components/virtualizer/index.d.ts +31 -0
  10. package/packages/client/types/components/virtualizer/runtime-docs.d.ts +2 -0
  11. package/packages/client/types/runtime/engine/fragment.d.ts +11 -0
  12. package/packages/client/types/runtime/engine/request.d.ts +1 -5
  13. package/packages/client/types/runtime/engine/stream.d.ts +3 -1
  14. package/packages/client/types/runtime/index.d.ts +2 -0
  15. package/packages/client/types/runtime/virtual-window.d.ts +85 -0
  16. package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.css +3 -0
  17. package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.min.css +1 -1
  18. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/build-metadata.json +261 -222
  19. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/motion.js +1 -1
  20. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/capabilities/sortable.js +1 -1
  21. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{capability-motion-CHT-6DKB.js → capability-motion-VFYcNVM5.js} +2 -2
  22. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{capability-motion-CHT-6DKB.js.map → capability-motion-VFYcNVM5.js.map} +1 -1
  23. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{capability-sortable-CIC0ACle.js → capability-sortable-l7SPMutG.js} +3 -3
  24. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{capability-sortable-CIC0ACle.js.map → capability-sortable-l7SPMutG.js.map} +1 -1
  25. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/core-LsAXy99P.js +2 -0
  26. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/core-LsAXy99P.js.map +1 -0
  27. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-DeIdrz3R.js → entry.generated-2VgVfygk.js} +2 -2
  28. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-DeIdrz3R.js.map → entry.generated-2VgVfygk.js.map} +1 -1
  29. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-CaapC7Ct.js → entry.generated-BVBXXN6t.js} +2 -2
  30. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-CaapC7Ct.js.map → entry.generated-BVBXXN6t.js.map} +1 -1
  31. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-Cj3Cx01k.js → entry.generated-Bsennsyl.js} +2 -2
  32. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-Cj3Cx01k.js.map → entry.generated-Bsennsyl.js.map} +1 -1
  33. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated--6MGmLYe.js → entry.generated-D91HRlIV.js} +2 -2
  34. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated--6MGmLYe.js.map → entry.generated-D91HRlIV.js.map} +1 -1
  35. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-GsY6gpiw.js → entry.generated-DI48yD0K.js} +2 -2
  36. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-GsY6gpiw.js.map → entry.generated-DI48yD0K.js.map} +1 -1
  37. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DuNS3MYH.js +2 -0
  38. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-DuNS3MYH.js.map +1 -0
  39. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-CMEyTYos.js → entry.generated-DvAia1Wz.js} +2 -2
  40. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-CMEyTYos.js.map → entry.generated-DvAia1Wz.js.map} +1 -1
  41. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-B-DK_TD9.js → entry.generated-LUzMUcng.js} +2 -2
  42. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-B-DK_TD9.js.map → entry.generated-LUzMUcng.js.map} +1 -1
  43. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-1CSz8kEV.js → entry.generated-UHQD4FyC.js} +2 -2
  44. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-1CSz8kEV.js.map → entry.generated-UHQD4FyC.js.map} +1 -1
  45. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-IfKkAqoN.js → entry.generated-bERshNT6.js} +2 -2
  46. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-IfKkAqoN.js.map → entry.generated-bERshNT6.js.map} +1 -1
  47. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{entry.generated-BhPEF6oz.js → entry2.generated-BhPEF6oz.js} +1 -1
  48. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry2.generated-BhPEF6oz.js.map +1 -0
  49. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/fragment-Bl3Rq38L.js +2 -0
  50. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/fragment-Bl3Rq38L.js.map +1 -0
  51. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{motion-Dmm9SoIv.js → motion-D44EkjK3.js} +2 -2
  52. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/{motion-Dmm9SoIv.js.map → motion-D44EkjK3.js.map} +1 -1
  53. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/ui-BWVDkV-D.js +4 -0
  54. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/ui-BWVDkV-D.js.map +1 -0
  55. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/accordion.js +1 -1
  56. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/date-picker.js +1 -1
  57. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/dropdown.js +1 -1
  58. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/index.js +1 -1
  59. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/index.js.map +1 -1
  60. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/modal.js +1 -1
  61. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/panels.js +1 -1
  62. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/select.js +1 -1
  63. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/sidebar.js +1 -1
  64. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/table.js +1 -1
  65. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/tabs.js +1 -1
  66. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/toast.js +1 -1
  67. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/components/virtualizer.js +1 -0
  68. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/core.js +1 -1
  69. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js +1 -1
  70. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js.map +1 -1
  71. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/logical-entry-manifest.json +100 -74
  72. package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.js +9 -9
  73. package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.min.js +9 -9
  74. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/core-D8VKfoWC.js +0 -2
  75. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/core-D8VKfoWC.js.map +0 -1
  76. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/entry.generated-BhPEF6oz.js.map +0 -1
  77. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/ui-DQwcal8k.js +0 -4
  78. package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/ui-DQwcal8k.js.map +0 -1
@@ -1,3 +1,3 @@
1
- import{_ as e,g as t}from"./ui-DQwcal8k.js";function n(e,t){e.indexOf(t)===-1&&e.push(t)}function r(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var i=(e,t,n)=>n>t?t:n<e?e:n;function a(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var o={},s=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),c=e=>typeof e==`object`&&!!e,l=e=>/^0[^.\s]+$/u.test(e);function u(e){let t;return()=>(t===void 0&&(t=e()),t)}var d=e=>e,f=(...e)=>e.reduce((e,t)=>n=>t(e(n))),p=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},m=class{constructor(){this.subscriptions=[]}add(e){return n(this.subscriptions,e),()=>r(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}},h=e=>e*1e3,g=e=>e/1e3,_=(e,t)=>t?1e3/t*e:0,v=new Set;function y(e,t,n){e||v.has(t)||(console.warn(a(t,n)),v.add(t))}var b=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},x=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,S=1e-7,C=12;function w(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=x(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>S&&++s<C);return o}function T(e,t,n,r){if(e===t&&n===r)return d;let i=t=>w(t,0,1,e,n);return e=>e===0||e===1?e:x(i(e),t,r)}var E=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,D=e=>t=>1-e(1-t),ee=T(.33,1.53,.69,.99),te=D(ee),ne=E(te),re=e=>e>=1?1:(e*=2)<1?.5*te(e):.5*(2-2**(-10*(e-1))),O=e=>1-Math.sin(Math.acos(e)),ie=D(O),ae=E(O),oe=T(.42,0,1,1),se=T(0,0,.58,1),ce=T(.42,0,.58,1),le=e=>Array.isArray(e)&&typeof e[0]!=`number`;function ue(e,t){return le(e)?e[b(0,e.length,t)]:e}var de=e=>Array.isArray(e)&&typeof e[0]==`number`,fe={linear:d,easeIn:oe,easeInOut:ce,easeOut:se,circIn:O,circInOut:ae,circOut:ie,backIn:te,backInOut:ne,backOut:ee,anticipate:re},pe=e=>typeof e==`string`,me=e=>{if(de(e)){e.length;let[t,n,r,i]=e;return T(t,n,r,i)}else if(pe(e))return fe[e],`${e}`,fe[e];return e},he=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function ge(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(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 _e=40;function ve(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=he.reduce((e,t)=>(e[t]=ge(a),e),{}),{setup:c,read:l,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:m,postRender:h}=s,g=()=>{let a=o.useManualTiming,s=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,_e),1)),i.timestamp=s,i.isProcessing=!0,c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},_=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:he.reduce((e,t)=>{let r=s[t];return e[t]=(e,t=!1,i=!1)=>(n||_(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<he.length;t++)s[he[t]].cancel(e)},state:i,steps:s}}var{schedule:k,cancel:ye,state:be,steps:xe}=ve(typeof requestAnimationFrame<`u`?requestAnimationFrame:d,!0),Se;function Ce(){Se=void 0}var A={now:()=>(Se===void 0&&A.set(be.isProcessing||o.useManualTiming?be.timestamp:performance.now()),Se),set:e=>{Se=e,queueMicrotask(Ce)}},we=e=>t=>typeof t==`string`&&t.startsWith(e),Te=we(`--`),Ee=we(`var(--`),De=e=>Ee(e)?Oe.test(e.split(`/*`)[0].trim()):!1,Oe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ke(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Ae={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},je={...Ae,transform:e=>i(0,1,e)},Me={...Ae,default:1},Ne=e=>Math.round(e*1e5)/1e5,Pe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fe(e){return e==null}var Ie=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Le=(e,t)=>n=>!!(typeof n==`string`&&Ie.test(n)&&n.startsWith(e)||t&&!Fe(n)&&Object.prototype.hasOwnProperty.call(n,t)),Re=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Pe);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},ze=e=>i(0,255,e),Be={...Ae,transform:e=>Math.round(ze(e))},j={test:Le(`rgb`,`red`),parse:Re(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Be.transform(e)+`, `+Be.transform(t)+`, `+Be.transform(n)+`, `+Ne(je.transform(r))+`)`};function Ve(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 He={test:Le(`#`),parse:Ve,transform:j.transform},Ue=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),M=Ue(`deg`),N=Ue(`%`),P=Ue(`px`),We=Ue(`vh`),Ge=Ue(`vw`),Ke={...N,parse:e=>N.parse(e)/100,transform:e=>N.transform(e*100)},F={test:Le(`hsl`,`hue`),parse:Re(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+N.transform(Ne(t))+`, `+N.transform(Ne(n))+`, `+Ne(je.transform(r))+`)`},I={test:e=>j.test(e)||He.test(e)||F.test(e),parse:e=>j.test(e)?j.parse(e):F.test(e)?F.parse(e):He.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?j.transform(e):F.transform(e),getAnimatableNone:e=>{let t=I.parse(e);return t.alpha=0,I.transform(t)}},qe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Je(e){return isNaN(e)&&typeof e==`string`&&(e.match(Pe)?.length||0)+(e.match(qe)?.length||0)>0}var Ye=`number`,Xe=`color`,Ze=`var`,Qe=`var(`,$e="${}",et=/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 L(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(et,e=>(I.test(e)?(r.color.push(a),i.push(Xe),n.push(I.parse(e))):e.startsWith(Qe)?(r.var.push(a),i.push(Ze),n.push(e)):(r.number.push(a),i.push(Ye),n.push(parseFloat(e))),++a,$e)).split($e),indexes:r,types:i}}function tt(e){return L(e).values}function nt({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];e===Ye?i+=Ne(r[a]):e===Xe?i+=I.transform(r[a]):i+=r[a]}return i}}function rt(e){return nt(L(e))}var it=e=>typeof e==`number`?0:I.test(e)?I.getAnimatableNone(e):e,at=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:it(e);function ot(e){let t=L(e);return nt(t)(t.values.map((e,n)=>at(e,t.split[n])))}var R={test:Je,parse:tt,createTransformer:rt,getAnimatableNone:ot};function st(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 ct({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=st(s,r,e+1/3),a=st(s,r,e),o=st(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function lt(e,t){return n=>n>0?t:e}var ut=(e,t,n)=>e+(t-e)*n,dt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ft=[He,j,F],pt=e=>ft.find(t=>t.test(e));function mt(e){let t=pt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===F&&(n=ct(n)),n}var ht=(e,t)=>{let n=mt(e),r=mt(t);if(!n||!r)return lt(e,t);let i={...n};return e=>(i.red=dt(n.red,r.red,e),i.green=dt(n.green,r.green,e),i.blue=dt(n.blue,r.blue,e),i.alpha=ut(n.alpha,r.alpha,e),j.transform(i))},gt=new Set([`none`,`hidden`]);function _t(e,t){return gt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vt(e,t){return n=>ut(e,t,n)}function yt(e){return typeof e==`number`?vt:typeof e==`string`?De(e)?lt:I.test(e)?ht:Ct:Array.isArray(e)?bt:typeof e==`object`?I.test(e)?ht:xt:lt}function bt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>yt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function xt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=yt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function St(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]];n[i]=e.values[o]??0,r[a]++}return n}var Ct=(e,t)=>{let n=R.createTransformer(t),r=L(e),i=L(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?gt.has(e)&&!i.values.length||gt.has(t)&&!r.values.length?_t(e,t):f(bt(St(r,i),i.values),n):(`${e}${t}`,lt(e,t))};function wt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?ut(e,t,n):yt(e)(e,t)}var Tt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>k.update(t,e),stop:()=>ye(t),now:()=>be.isProcessing?be.timestamp:A.now()}},Et=(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)})`},Dt=2e4;function Ot(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function kt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Ot(r),Dt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:g(i)}}var z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function At(e,t){return e*Math.sqrt(1-t*t)}var jt=12;function Mt(e,t,n){let r=n;for(let n=1;n<jt;n++)r-=e(r)/t(r);return r}var Nt=.001;function Pt({duration:e=z.duration,bounce:t=z.bounce,velocity:n=z.velocity,mass:r=z.mass}){let a,o;z.maxDuration;let s=1-t;s=i(z.minDamping,z.maxDamping,s),e=i(z.minDuration,z.maxDuration,g(e)),s<1?(a=t=>{let r=t*s,i=r*e,a=r-n,o=At(t,s),c=Math.exp(-i);return Nt-a/o*c},o=t=>{let r=t*s*e,i=r*n+n,o=s**2*t**2*e,c=Math.exp(-r),l=At(t**2,s);return(-a(t)+Nt>0?-1:1)*((i-o)*c)/l}):(a=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>Math.exp(-t*e)*((n-t)*(e*e)));let c=5/e,l=Mt(a,o,c);if(e=h(e),isNaN(l))return{stiffness:z.stiffness,damping:z.damping,duration:e};{let t=l**2*r;return{stiffness:t,damping:s*2*Math.sqrt(r*t),duration:e}}}var Ft=[`duration`,`bounce`],It=[`stiffness`,`damping`,`mass`];function Lt(e,t){return t.some(t=>e[t]!==void 0)}function Rt(e){let t={velocity:z.velocity,stiffness:z.stiffness,damping:z.damping,mass:z.mass,isResolvedFromDuration:!1,...e};if(!Lt(e,It)&&Lt(e,Ft))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,o=2*i(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:z.mass,stiffness:a,damping:o}}else{let n=Pt({...e,velocity:0});t={...t,...n,mass:z.mass},t.isResolvedFromDuration=!0}return t}function B(e=z.visualDuration,t=z.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Rt({...n,velocity:-g(n.velocity||0)}),m=f||0,_=l/(2*Math.sqrt(c*u)),v=o-a,y=g(Math.sqrt(c/u)),b=Math.abs(v)<5;r||=b?z.restSpeed.granular:z.restSpeed.default,i||=b?z.restDelta.granular:z.restDelta.default;let x,S,C,w,T,E;if(_<1)C=At(y,_),w=(m+_*y*v)/C,x=e=>o-Math.exp(-_*y*e)*(w*Math.sin(C*e)+v*Math.cos(C*e)),T=_*y*w+v*C,E=_*y*v-w*C,S=e=>Math.exp(-_*y*e)*(T*Math.sin(C*e)+E*Math.cos(C*e));else if(_===1){x=e=>o-Math.exp(-y*e)*(v+(m+y*v)*e);let e=m+y*v;S=t=>Math.exp(-y*t)*(y*e*t-m)}else{let e=y*Math.sqrt(_*_-1);x=t=>{let n=Math.exp(-_*y*t),r=Math.min(e*t,300);return o-n*((m+_*y*v)*Math.sinh(r)+e*v*Math.cosh(r))/e};let t=(m+_*y*v)/e,n=_*y*t-v*e,r=_*y*v-t*e;S=t=>{let i=Math.exp(-_*y*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let D={calculatedDuration:p&&d||null,velocity:e=>h(S(e)),next:e=>{if(!p&&_<1){let t=Math.exp(-_*y*e),n=Math.sin(C*e),a=Math.cos(C*e),c=o-t*(w*n+v*a),l=h(t*(T*n+E*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=x(e);if(p)s.done=e>=d;else{let n=h(S(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Ot(D),Dt),t=Et(t=>D.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return D}B.applyToOptions=e=>{let t=kt(e,100,B);return e.ease=t.ease,e.duration=h(t.duration),e.type=`keyframes`,e};var zt=5;function Bt(e,t,n){let r=Math.max(t-zt,0);return _(n-e(r),t-r)}function Vt({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=>s!==void 0&&e<s||c!==void 0&&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=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=B({keyframes:[f.value,m(f.value)],velocity:Bt(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Ht(e,t,n){let r=[],i=n||o.mix||wt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=f(Array.isArray(t)?t[n]||d:t,a)),r.push(a)}return r}function Ut(e,t,{clamp:n=!0,ease:r,mixer:a}={}){let o=e.length;if(t.length,o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let c=Ht(t,r,a),l=c.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=p(e[r],e[r+1],n);return c[r](i)};return n?t=>u(i(e[0],e[o-1],t)):u}function Wt(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=p(0,t,r);e.push(ut(n,1,i))}}function Gt(e){let t=[0];return Wt(t,e.length-1),t}function Kt(e,t){return e.map(e=>e*t)}function qt(e,t){return e.map(()=>t||ce).splice(0,e.length-1)}function Jt({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=le(r)?r.map(me):me(r),a={done:!1,value:t[0]},o=Ut(Kt(n&&n.length===t.length?n:Gt(t),e),t,{ease:Array.isArray(i)?i:qt(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Yt=e=>e!==null;function Xt(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Yt),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Zt={decay:Vt,inertia:Vt,tween:Jt,keyframes:Jt,spring:B};function Qt(e){typeof e.type==`string`&&(e.type=Zt[e.type])}var $t=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},en=e=>e/100,tn=class extends $t{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!==A.now()&&this.tick(A.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Qt(e);let{type:t=Jt,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Jt;s!==Jt&&typeof o[0]!=`number`&&(this.mixKeyframes=f(en,wt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Ot(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.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);let{delay:l=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:g}=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 _=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?_<0:_>r;this.currentTime=Math.max(_,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,b=n;if(d){let e=Math.min(this.currentTime,r)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,d+1),t%2&&(f===`reverse`?(n=1-n,p&&(n-=p/s)):f===`mirror`&&(b=o)),y=i(0,1,n)*s}let x;v?(this.delayState.value=u[0],x=this.delayState):x=b.next(y),a&&!v&&(x.value=a(x.value));let{done:S}=x;!v&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&m!==Vt&&(x.value=Xt(u,this.options,g,this.speed)),h&&h(x.value),C&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return g(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(this.currentTime)}set time(e){e=h(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(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Bt(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(A.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=g(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Tt,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(A.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)}};function nn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var V=e=>e*180/Math.PI,rn=e=>on(V(Math.atan2(e[1],e[0]))),an={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:rn,rotateZ:rn,skewX:e=>V(Math.atan(e[1])),skewY:e=>V(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},on=e=>(e%=360,e<0&&(e+=360),e),sn=rn,cn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ln=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),un={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cn,scaleY:ln,scale:e=>(cn(e)+ln(e))/2,rotateX:e=>on(V(Math.atan2(e[6],e[5]))),rotateY:e=>on(V(Math.atan2(-e[2],e[0]))),rotateZ:sn,rotate:sn,skewX:e=>V(Math.atan(e[4])),skewY:e=>V(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function dn(e){return+!!e.includes(`scale`)}function fn(e,t){if(!e||e===`none`)return dn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=un,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=an,i=t}if(!i)return dn(t);let a=r[t],o=i[1].split(`,`).map(mn);return typeof a==`function`?a(o):o[a]}var pn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return fn(n,t)};function mn(e){return parseFloat(e.trim())}var hn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],gn=new Set([...hn,`pathRotation`]),_n=e=>e===Ae||e===P,vn=new Set([`x`,`y`,`z`]),yn=hn.filter(e=>!vn.has(e));function bn(e){let t=[];return yn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var H={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>fn(t,`x`),y:(e,{transform:t})=>fn(t,`y`)};H.translateX=H.x,H.translateY=H.y;var U=new Set,xn=!1,Sn=!1,Cn=!1;function wn(){if(Sn){let e=Array.from(U).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=bn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Sn=!1,xn=!1,U.forEach(e=>e.complete(Cn)),U.clear()}function Tn(){U.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Sn=!0)})}function En(){Cn=!0,Tn(),wn(),Cn=!1}var Dn=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?(U.add(this),xn||(xn=!0,k.read(Tn),k.resolveKeyframes(wn))):(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=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}nn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),U.delete(this)}cancel(){this.state===`scheduled`&&(U.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},On=e=>e.startsWith(`--`);function kn(e,t,n){On(t)?e.style.setProperty(t,n):e.style[t]=n}var An={};function jn(e,t){let n=u(e);return()=>An[t]??n()}var Mn=jn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Nn=jn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Pn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Fn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Pn([0,.65,.55,1]),circOut:Pn([.55,0,1,.45]),backIn:Pn([.31,.01,.66,-.59]),backOut:Pn([.33,1.53,.69,.99])};function In(e,t){if(e)return typeof e==`function`?Nn()?Et(e,t):`ease-out`:de(e)?Pn(e):Array.isArray(e)?e.map(e=>In(e,t)||Fn.easeOut):Fn[e]}function Ln(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=In(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 Rn(e){return typeof e==`function`&&`applyToOptions`in e}function zn({type:e,...t}){return Rn(e)&&Nn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Bn=class extends $t{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=zn(e);this.animation=Ln(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Xt(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),kn(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}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 g(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=h(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,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Mn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),d):r(this)}},Vn={anticipate:re,backInOut:ne,circInOut:ae};function Hn(e){return e in Vn}function Un(e){typeof e.ease==`string`&&Hn(e.ease)&&(e.ease=Vn[e.ease])}var Wn=10,Gn=class extends Bn{constructor(e){Un(e),Qt(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:a,...o}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let s=new tn({...o,autoplay:!1}),c=Math.max(Wn,A.now()-this.startTime),l=i(0,Wn,c-Wn),u=s.sample(c).value,{name:d}=this.options;a&&d&&kn(a,d,u),t.setWithVelocity(s.sample(Math.max(0,c-l)).value,u,l),s.stop()}},Kn=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(R.test(e)||e===`0`)&&!e.startsWith(`url(`));function qn(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 Jn(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=Kn(i,t),s=Kn(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:qn(e)||(n===`spring`||Rn(n))&&r}function Yn(e){e.duration=0,e.type=`keyframes`}var Xn=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Zn=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Qn(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Zn.test(e[t]))return!0;return!1}var $n=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),er=u(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function tr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return er()&&n&&(Xn.has(n)||$n.has(n)&&Qn(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var nr=40,rr=class extends $t{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=A.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Dn;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:s,delay:c,isHandoff:l,onUpdate:u}=n;this.resolvedAt=A.now();let f=!0;Jn(e,i,a,s)||(f=!1,(o.instantAnimations||!c)&&u?.(Xt(e,n,t)),e[0]=e[e.length-1],Yn(n),n.repeat=0);let p={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>nr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},m=f&&!l&&tr(p),h=p.motionValue?.owner?.current,g;if(m)try{g=new Gn({...p,element:h})}catch{g=new tn(p)}else g=new tn(p);g.finished.then(()=>{this.notifyFinished()}).catch(d),this.pendingTimeline&&=(this.stopTimeline=g.attachTimeline(this.pendingTimeline),void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),En()),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()}},ir=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return ar(this.animations,`duration`)}get iterationDuration(){return ar(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function ar(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var or=class extends ir{then(e,t){return this.finished.finally(e).then(()=>{})}},sr=class extends Bn{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()}}},cr=new WeakMap,lr=(e,t=``)=>`${e}:${t}`;function ur(e){let t=cr.get(e);return t||(t=new Map,cr.set(e,t)),t}var dr=30,fr=e=>!isNaN(parseFloat(e)),pr={current:void 0},mr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=A.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=A.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=fr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new m);let n=this.events[e].add(t);return e===`change`?()=>{n(),k.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return pr.current&&pr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=A.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>dr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,dr);return _(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function W(e,t){return new mr(e,t)}function hr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function G(e,t){let n=e?.[t]??e?.default??e;return n===e?n:hr(n,e)}var gr={type:`spring`,stiffness:500,damping:25,restSpeed:10},_r=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vr={type:`keyframes`,duration:.8},yr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},br=(e,{keyframes:t})=>t.length>2?vr:gn.has(e)?e.startsWith(`scale`)?_r(t[1]):gr:yr,xr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Sr(e){for(let t in e)if(!xr.has(t))return!0;return!1}var Cr=(e,t,n,r={},i,a)=>s=>{let c=G(r,e)||{},l=c.delay||r.delay||0,{elapsed:u=0}=r;u-=h(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...c,delay:-u,onUpdate:e=>{t.set(e),c.onUpdate&&c.onUpdate(e)},onComplete:()=>{s(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:i};Sr(c)||Object.assign(d,br(e,d)),d.duration&&=h(d.duration),d.repeatDelay&&=h(d.repeatDelay),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Yn(d),d.delay===0&&(f=!0)),(o.instantAnimations||o.skipAnimations||i?.shouldSkipAnimations||c.skipAnimations)&&(f=!0,Yn(d),d.delay=0),d.allowFlatten=!c.type&&!c.ease,f&&!a&&t.get()!==void 0){let e=Xt(d.keyframes,c);if(e!==void 0){k.update(()=>{d.onUpdate(e),d.onComplete()});return}}return c.isSync?new tn(d):new rr(d)},wr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Tr(e){let t=wr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Er(e,t,n=1){`${e}`;let[r,i]=Tr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return s(e)?parseFloat(e):e}return De(i)?Er(i,t,n+1):i}function Dr(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Or(e,t,n,r){if(typeof t==`function`){let[i,a]=Dr(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Dr(r);t=t(n===void 0?e.custom:n,i,a)}return t}function kr(e,t,n){let r=e.getProps();return Or(r,t,n===void 0?r.custom:n,e)}var Ar=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...hn]),jr=e=>Array.isArray(e);function Mr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,W(n))}function Nr(e){return jr(e)?e[e.length-1]||0:e}function Pr(e,t){let{transitionEnd:n={},transition:r={},...i}=kr(e,t)||{};i={...i,...n};for(let t in i)Mr(e,t,Nr(i[t]))}var K=e=>!!(e&&e.getVelocity);function Fr(e){return!!(K(e)&&e.add)}function Ir(e,t){let n=e.getValue(`willChange`);if(Fr(n))return n.add(t);if(!n&&o.WillChange){let n=new o.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Lr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Rr=`data-`+Lr(`framerAppearId`);function zr(e){return e.props[Rr]}function Br({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?hr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&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&&Br(f,t))continue;let o={delay:n,...G(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){k.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=zr(e);if(n){let e=window.MotionHandoffAnimation(n,t,k);e!==null&&(o.startTime=e,p=!0)}}Ir(e,t);let m=l??e.shouldReduceMotion;r.start(Cr(t,r,i,m&&Ar.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>k.update(()=>{o&&Pr(e,o)});d.length?Promise.all(d).then(t):t()}return d}var Hr={test:e=>e===`auto`,parse:e=>e},Ur=e=>t=>t.test(e),Wr=[Ae,P,N,M,Ge,We,Hr],Gr=e=>Wr.find(Ur(e));function Kr(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||l(e)}var qr=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Jr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Pe)||[];if(!r)return e;let i=n.replace(r,``),a=+!!qr.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Yr=/\b([a-z-]*)\(.*?\)/gu,Xr={...R,getAnimatableNone:e=>{let t=e.match(Yr);return t?t.map(Jr).join(` `):e}},Zr={...R,getAnimatableNone:e=>{let t=R.parse(e);return R.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Qr={...Ae,transform:Math.round},$r={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,rotate:M,pathRotation:M,rotateX:M,rotateY:M,rotateZ:M,scale:Me,scaleX:Me,scaleY:Me,scaleZ:Me,skew:M,skewX:M,skewY:M,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:je,originX:Ke,originY:Ke,originZ:P,zIndex:Qr,fillOpacity:je,strokeOpacity:je,numOctaves:Qr},ei={...$r,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:Xr,WebkitFilter:Xr,mask:Zr,WebkitMask:Zr},ti=e=>ei[e],ni=new Set([Xr,Zr]);function ri(e,t){let n=ti(e);return ni.has(n)||(n=R),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var ii=new Set([`auto`,`none`,`0`]);function ai(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ii.has(t)&&L(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=ri(n,i)}var oi=class extends Dn{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(),De(r))){let i=Er(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ar.has(n)||e.length!==2)return;let[r,i]=e,a=Gr(r),o=Gr(i);if(ke(r)!==ke(i)&&H[n]){this.needsMeasurement=!0;return}if(a!==o)if(_n(a)&&_n(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else H[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Kr(e[t]))&&n.push(t);n.length&&ai(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=H[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=H[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},si=new Set(`borderWidth.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderRadius.borderTopLeftRadius.borderTopRightRadius.borderBottomRightRadius.borderBottomLeftRadius.width.maxWidth.height.maxHeight.top.right.bottom.left.inset.insetBlock.insetBlockStart.insetBlockEnd.insetInline.insetInlineStart.insetInlineEnd.padding.paddingTop.paddingRight.paddingBottom.paddingLeft.paddingBlock.paddingBlockStart.paddingBlockEnd.paddingInline.paddingInlineStart.paddingInlineEnd.margin.marginTop.marginRight.marginBottom.marginLeft.marginBlock.marginBlockStart.marginBlockEnd.marginInline.marginInlineStart.marginInlineEnd.fontSize.backgroundPositionX.backgroundPositionY`.split(`.`));function ci(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&si.has(t)&&(e[n]=e[n]+`px`)}function li(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 ui=(e,t)=>t&&typeof e==`number`?t.transform(e):e,{schedule:di,cancel:fi}=ve(queueMicrotask,!1);function pi(e,t){let n=window.getComputedStyle(e);return On(t)?n.getPropertyValue(t):n[t]}function mi(e){return c(e)&&`ownerSVGElement`in e}function hi(e){return mi(e)&&e.tagName===`svg`}var gi=[...Wr,I,R],_i=e=>gi.find(Ur(e)),vi=0,yi=()=>`motion-view-${vi++}`,bi=e=>e.startsWith(`motion-view-`);function xi(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function Si(e,t,n,r,i){if(n&&(e.style?.setProperty(`view-transition-group`,n),r.push(e),n!==`none`&&i)){let n=getComputedStyle(e);(n.overflowX!==`visible`||n.overflowY!==`visible`)&&i.add(t)}}function Ci(e,t,n,r,i,a=[],o,s=[],c){let l=li(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??yi();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),xi(e,i,a),Si(e,d,o,s,c),d});let u=l.map(e=>t.has(e)?void 0:getComputedStyle(e).getPropertyValue(`view-transition-name`));return l.map((e,r)=>{let l=t.get(e);if(l)return l;let d=u[r],f;return d&&d!==`none`&&d!==`auto`&&d!==`match-element`&&!bi(d)?f=d:(f=yi(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),xi(e,i,a),Si(e,f,o,s,c),f})}function wi(e,t=[],n=[]){for(let t of e)t.style?.removeProperty(`view-transition-name`);for(let e of t)e.style?.removeProperty(`view-transition-class`);for(let e of n)e.style?.removeProperty(`view-transition-group`)}function Ti(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var Ei={},q=null,J={set:(e,t)=>{Ei[e]=t},commit:()=>{q||(q=document.createElement(`style`),q.id=`motion-view`);let e=``;for(let t in Ei){let n=Ei[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
1
+ import{h as e,m as t}from"./ui-BWVDkV-D.js";function n(e,t){e.indexOf(t)===-1&&e.push(t)}function r(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var i=(e,t,n)=>n>t?t:n<e?e:n;function a(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}var o={},s=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),c=e=>typeof e==`object`&&!!e,l=e=>/^0[^.\s]+$/u.test(e);function u(e){let t;return()=>(t===void 0&&(t=e()),t)}var d=e=>e,f=(...e)=>e.reduce((e,t)=>n=>t(e(n))),p=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},m=class{constructor(){this.subscriptions=[]}add(e){return n(this.subscriptions,e),()=>r(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}},h=e=>e*1e3,g=e=>e/1e3,_=(e,t)=>t?1e3/t*e:0,v=new Set;function y(e,t,n){e||v.has(t)||(console.warn(a(t,n)),v.add(t))}var b=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},x=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,S=1e-7,C=12;function w(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=x(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>S&&++s<C);return o}function T(e,t,n,r){if(e===t&&n===r)return d;let i=t=>w(t,0,1,e,n);return e=>e===0||e===1?e:x(i(e),t,r)}var E=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,D=e=>t=>1-e(1-t),ee=T(.33,1.53,.69,.99),te=D(ee),ne=E(te),re=e=>e>=1?1:(e*=2)<1?.5*te(e):.5*(2-2**(-10*(e-1))),O=e=>1-Math.sin(Math.acos(e)),ie=D(O),ae=E(O),oe=T(.42,0,1,1),se=T(0,0,.58,1),ce=T(.42,0,.58,1),le=e=>Array.isArray(e)&&typeof e[0]!=`number`;function ue(e,t){return le(e)?e[b(0,e.length,t)]:e}var de=e=>Array.isArray(e)&&typeof e[0]==`number`,fe={linear:d,easeIn:oe,easeInOut:ce,easeOut:se,circIn:O,circInOut:ae,circOut:ie,backIn:te,backInOut:ne,backOut:ee,anticipate:re},pe=e=>typeof e==`string`,me=e=>{if(de(e)){e.length;let[t,n,r,i]=e;return T(t,n,r,i)}else if(pe(e))return fe[e],`${e}`,fe[e];return e},he=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function ge(e){let t=new Set,n=new Set,r=!1,i=!1,a=new WeakSet,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(c.schedule(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 _e=40;function ve(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=he.reduce((e,t)=>(e[t]=ge(a),e),{}),{setup:c,read:l,resolveKeyframes:u,preUpdate:d,update:f,preRender:p,render:m,postRender:h}=s,g=()=>{let a=o.useManualTiming,s=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,_e),1)),i.timestamp=s,i.isProcessing=!0,c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),h.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},_=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:he.reduce((e,t)=>{let r=s[t];return e[t]=(e,t=!1,i=!1)=>(n||_(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<he.length;t++)s[he[t]].cancel(e)},state:i,steps:s}}var{schedule:k,cancel:ye,state:be,steps:xe}=ve(typeof requestAnimationFrame<`u`?requestAnimationFrame:d,!0),Se;function Ce(){Se=void 0}var A={now:()=>(Se===void 0&&A.set(be.isProcessing||o.useManualTiming?be.timestamp:performance.now()),Se),set:e=>{Se=e,queueMicrotask(Ce)}},we=e=>t=>typeof t==`string`&&t.startsWith(e),Te=we(`--`),Ee=we(`var(--`),De=e=>Ee(e)?Oe.test(e.split(`/*`)[0].trim()):!1,Oe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function ke(e){return typeof e==`string`?e.split(`/*`)[0].includes(`var(--`):!1}var Ae={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},je={...Ae,transform:e=>i(0,1,e)},Me={...Ae,default:1},Ne=e=>Math.round(e*1e5)/1e5,Pe=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fe(e){return e==null}var Ie=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Le=(e,t)=>n=>!!(typeof n==`string`&&Ie.test(n)&&n.startsWith(e)||t&&!Fe(n)&&Object.prototype.hasOwnProperty.call(n,t)),Re=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(Pe);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},ze=e=>i(0,255,e),Be={...Ae,transform:e=>Math.round(ze(e))},j={test:Le(`rgb`,`red`),parse:Re(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Be.transform(e)+`, `+Be.transform(t)+`, `+Be.transform(n)+`, `+Ne(je.transform(r))+`)`};function Ve(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 He={test:Le(`#`),parse:Ve,transform:j.transform},Ue=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),M=Ue(`deg`),N=Ue(`%`),P=Ue(`px`),We=Ue(`vh`),Ge=Ue(`vw`),Ke={...N,parse:e=>N.parse(e)/100,transform:e=>N.transform(e*100)},F={test:Le(`hsl`,`hue`),parse:Re(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+N.transform(Ne(t))+`, `+N.transform(Ne(n))+`, `+Ne(je.transform(r))+`)`},I={test:e=>j.test(e)||He.test(e)||F.test(e),parse:e=>j.test(e)?j.parse(e):F.test(e)?F.parse(e):He.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?j.transform(e):F.transform(e),getAnimatableNone:e=>{let t=I.parse(e);return t.alpha=0,I.transform(t)}},qe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Je(e){return isNaN(e)&&typeof e==`string`&&(e.match(Pe)?.length||0)+(e.match(qe)?.length||0)>0}var Ye=`number`,Xe=`color`,Ze=`var`,Qe=`var(`,$e="${}",et=/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 L(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(et,e=>(I.test(e)?(r.color.push(a),i.push(Xe),n.push(I.parse(e))):e.startsWith(Qe)?(r.var.push(a),i.push(Ze),n.push(e)):(r.number.push(a),i.push(Ye),n.push(parseFloat(e))),++a,$e)).split($e),indexes:r,types:i}}function tt(e){return L(e).values}function nt({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];e===Ye?i+=Ne(r[a]):e===Xe?i+=I.transform(r[a]):i+=r[a]}return i}}function rt(e){return nt(L(e))}var it=e=>typeof e==`number`?0:I.test(e)?I.getAnimatableNone(e):e,at=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:it(e);function ot(e){let t=L(e);return nt(t)(t.values.map((e,n)=>at(e,t.split[n])))}var R={test:Je,parse:tt,createTransformer:rt,getAnimatableNone:ot};function st(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 ct({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=st(s,r,e+1/3),a=st(s,r,e),o=st(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function lt(e,t){return n=>n>0?t:e}var ut=(e,t,n)=>e+(t-e)*n,dt=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ft=[He,j,F],pt=e=>ft.find(t=>t.test(e));function mt(e){let t=pt(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===F&&(n=ct(n)),n}var ht=(e,t)=>{let n=mt(e),r=mt(t);if(!n||!r)return lt(e,t);let i={...n};return e=>(i.red=dt(n.red,r.red,e),i.green=dt(n.green,r.green,e),i.blue=dt(n.blue,r.blue,e),i.alpha=ut(n.alpha,r.alpha,e),j.transform(i))},gt=new Set([`none`,`hidden`]);function _t(e,t){return gt.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vt(e,t){return n=>ut(e,t,n)}function yt(e){return typeof e==`number`?vt:typeof e==`string`?De(e)?lt:I.test(e)?ht:Ct:Array.isArray(e)?bt:typeof e==`object`?I.test(e)?ht:xt:lt}function bt(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>yt(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function xt(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=yt(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function St(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]];n[i]=e.values[o]??0,r[a]++}return n}var Ct=(e,t)=>{let n=R.createTransformer(t),r=L(e),i=L(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?gt.has(e)&&!i.values.length||gt.has(t)&&!r.values.length?_t(e,t):f(bt(St(r,i),i.values),n):(`${e}${t}`,lt(e,t))};function wt(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?ut(e,t,n):yt(e)(e,t)}var Tt=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>k.update(t,e),stop:()=>ye(t),now:()=>be.isProcessing?be.timestamp:A.now()}},Et=(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)})`},Dt=2e4;function Ot(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function kt(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(Ot(r),Dt);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:g(i)}}var z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function At(e,t){return e*Math.sqrt(1-t*t)}var jt=12;function Mt(e,t,n){let r=n;for(let n=1;n<jt;n++)r-=e(r)/t(r);return r}var Nt=.001;function Pt({duration:e=z.duration,bounce:t=z.bounce,velocity:n=z.velocity,mass:r=z.mass}){let a,o;z.maxDuration;let s=1-t;s=i(z.minDamping,z.maxDamping,s),e=i(z.minDuration,z.maxDuration,g(e)),s<1?(a=t=>{let r=t*s,i=r*e,a=r-n,o=At(t,s),c=Math.exp(-i);return Nt-a/o*c},o=t=>{let r=t*s*e,i=r*n+n,o=s**2*t**2*e,c=Math.exp(-r),l=At(t**2,s);return(-a(t)+Nt>0?-1:1)*((i-o)*c)/l}):(a=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>Math.exp(-t*e)*((n-t)*(e*e)));let c=5/e,l=Mt(a,o,c);if(e=h(e),isNaN(l))return{stiffness:z.stiffness,damping:z.damping,duration:e};{let t=l**2*r;return{stiffness:t,damping:s*2*Math.sqrt(r*t),duration:e}}}var Ft=[`duration`,`bounce`],It=[`stiffness`,`damping`,`mass`];function Lt(e,t){return t.some(t=>e[t]!==void 0)}function Rt(e){let t={velocity:z.velocity,stiffness:z.stiffness,damping:z.damping,mass:z.mass,isResolvedFromDuration:!1,...e};if(!Lt(e,It)&&Lt(e,Ft))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,o=2*i(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:z.mass,stiffness:a,damping:o}}else{let n=Pt({...e,velocity:0});t={...t,...n,mass:z.mass},t.isResolvedFromDuration=!0}return t}function B(e=z.visualDuration,t=z.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=Rt({...n,velocity:-g(n.velocity||0)}),m=f||0,_=l/(2*Math.sqrt(c*u)),v=o-a,y=g(Math.sqrt(c/u)),b=Math.abs(v)<5;r||=b?z.restSpeed.granular:z.restSpeed.default,i||=b?z.restDelta.granular:z.restDelta.default;let x,S,C,w,T,E;if(_<1)C=At(y,_),w=(m+_*y*v)/C,x=e=>o-Math.exp(-_*y*e)*(w*Math.sin(C*e)+v*Math.cos(C*e)),T=_*y*w+v*C,E=_*y*v-w*C,S=e=>Math.exp(-_*y*e)*(T*Math.sin(C*e)+E*Math.cos(C*e));else if(_===1){x=e=>o-Math.exp(-y*e)*(v+(m+y*v)*e);let e=m+y*v;S=t=>Math.exp(-y*t)*(y*e*t-m)}else{let e=y*Math.sqrt(_*_-1);x=t=>{let n=Math.exp(-_*y*t),r=Math.min(e*t,300);return o-n*((m+_*y*v)*Math.sinh(r)+e*v*Math.cosh(r))/e};let t=(m+_*y*v)/e,n=_*y*t-v*e,r=_*y*v-t*e;S=t=>{let i=Math.exp(-_*y*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let D={calculatedDuration:p&&d||null,velocity:e=>h(S(e)),next:e=>{if(!p&&_<1){let t=Math.exp(-_*y*e),n=Math.sin(C*e),a=Math.cos(C*e),c=o-t*(w*n+v*a),l=h(t*(T*n+E*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=x(e);if(p)s.done=e>=d;else{let n=h(S(e));s.done=Math.abs(n)<=r&&Math.abs(o-t)<=i}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(Ot(D),Dt),t=Et(t=>D.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return D}B.applyToOptions=e=>{let t=kt(e,100,B);return e.ease=t.ease,e.duration=h(t.duration),e.type=`keyframes`,e};var zt=5;function Bt(e,t,n){let r=Math.max(t-zt,0);return _(n-e(r),t-r)}function Vt({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=>s!==void 0&&e<s||c!==void 0&&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=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=B({keyframes:[f.value,m(f.value)],velocity:Bt(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function Ht(e,t,n){let r=[],i=n||o.mix||wt,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=f(Array.isArray(t)?t[n]||d:t,a)),r.push(a)}return r}function Ut(e,t,{clamp:n=!0,ease:r,mixer:a}={}){let o=e.length;if(t.length,o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let c=Ht(t,r,a),l=c.length,u=n=>{if(s&&n<e[0])return t[0];let r=0;if(l>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=p(e[r],e[r+1],n);return c[r](i)};return n?t=>u(i(e[0],e[o-1],t)):u}function Wt(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=p(0,t,r);e.push(ut(n,1,i))}}function Gt(e){let t=[0];return Wt(t,e.length-1),t}function Kt(e,t){return e.map(e=>e*t)}function qt(e,t){return e.map(()=>t||ce).splice(0,e.length-1)}function Jt({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=le(r)?r.map(me):me(r),a={done:!1,value:t[0]},o=Ut(Kt(n&&n.length===t.length?n:Gt(t),e),t,{ease:Array.isArray(i)?i:qt(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Yt=e=>e!==null;function Xt(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Yt),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Zt={decay:Vt,inertia:Vt,tween:Jt,keyframes:Jt,spring:B};function Qt(e){typeof e.type==`string`&&(e.type=Zt[e.type])}var $t=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},en=e=>e/100,tn=class extends $t{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!==A.now()&&this.tick(A.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;Qt(e);let{type:t=Jt,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Jt;s!==Jt&&typeof o[0]!=`number`&&(this.mixKeyframes=f(en,wt(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=Ot(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.holdTime===null?this.currentTime=t:this.currentTime=this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:c}=this;if(this.startTime===null)return n.next(0);let{delay:l=0,keyframes:u,repeat:d,repeatType:f,repeatDelay:p,type:m,onUpdate:h,finalKeyframe:g}=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 _=this.currentTime-l*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?_<0:_>r;this.currentTime=Math.max(_,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let y=this.currentTime,b=n;if(d){let e=Math.min(this.currentTime,r)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,d+1),t%2&&(f===`reverse`?(n=1-n,p&&(n-=p/s)):f===`mirror`&&(b=o)),y=i(0,1,n)*s}let x;v?(this.delayState.value=u[0],x=this.delayState):x=b.next(y),a&&!v&&(x.value=a(x.value));let{done:S}=x;!v&&c!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let C=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&S);return C&&m!==Vt&&(x.value=Xt(u,this.options,g,this.speed)),h&&h(x.value),C&&this.finish(),x}then(e,t){return this.finished.then(e,t)}get duration(){return g(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(this.currentTime)}set time(e){e=h(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(){let e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);let t=this.generator.next(e).value;return Bt(e=>this.generator.next(e).value,e,t)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(A.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=g(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Tt,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(A.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)}};function nn(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var V=e=>e*180/Math.PI,rn=e=>on(V(Math.atan2(e[1],e[0]))),an={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:rn,rotateZ:rn,skewX:e=>V(Math.atan(e[1])),skewY:e=>V(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},on=e=>(e%=360,e<0&&(e+=360),e),sn=rn,cn=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ln=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),un={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:cn,scaleY:ln,scale:e=>(cn(e)+ln(e))/2,rotateX:e=>on(V(Math.atan2(e[6],e[5]))),rotateY:e=>on(V(Math.atan2(-e[2],e[0]))),rotateZ:sn,rotate:sn,skewX:e=>V(Math.atan(e[4])),skewY:e=>V(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function dn(e){return+!!e.includes(`scale`)}function fn(e,t){if(!e||e===`none`)return dn(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=un,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=an,i=t}if(!i)return dn(t);let a=r[t],o=i[1].split(`,`).map(mn);return typeof a==`function`?a(o):o[a]}var pn=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return fn(n,t)};function mn(e){return parseFloat(e.trim())}var hn=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],gn=new Set([...hn,`pathRotation`]),_n=e=>e===Ae||e===P,vn=new Set([`x`,`y`,`z`]),yn=hn.filter(e=>!vn.has(e));function bn(e){let t=[];return yn.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var H={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r})=>{let i=e.max-e.min;return r===`border-box`?i:i-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>fn(t,`x`),y:(e,{transform:t})=>fn(t,`y`)};H.translateX=H.x,H.translateY=H.y;var U=new Set,xn=!1,Sn=!1,Cn=!1;function wn(){if(Sn){let e=Array.from(U).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=bn(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Sn=!1,xn=!1,U.forEach(e=>e.complete(Cn)),U.clear()}function Tn(){U.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Sn=!0)})}function En(){Cn=!0,Tn(),wn(),Cn=!1}var Dn=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?(U.add(this),xn||(xn=!0,k.read(Tn),k.resolveKeyframes(wn))):(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=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}nn(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),U.delete(this)}cancel(){this.state===`scheduled`&&(U.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},On=e=>e.startsWith(`--`);function kn(e,t,n){On(t)?e.style.setProperty(t,n):e.style[t]=n}var An={};function jn(e,t){let n=u(e);return()=>An[t]??n()}var Mn=jn(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Nn=jn(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Pn=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Fn={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Pn([0,.65,.55,1]),circOut:Pn([.55,0,1,.45]),backIn:Pn([.31,.01,.66,-.59]),backOut:Pn([.33,1.53,.69,.99])};function In(e,t){if(e)return typeof e==`function`?Nn()?Et(e,t):`ease-out`:de(e)?Pn(e):Array.isArray(e)?e.map(e=>In(e,t)||Fn.easeOut):Fn[e]}function Ln(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=In(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 Rn(e){return typeof e==`function`&&`applyToOptions`in e}function zn({type:e,...t}){return Rn(e)&&Nn()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Bn=class extends $t{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=zn(e);this.animation=Ln(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Xt(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),kn(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}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 g(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+g(e)}get time(){return g(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=h(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,rangeStart:t,rangeEnd:n,observe:r}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Mn()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),d):r(this)}},Vn={anticipate:re,backInOut:ne,circInOut:ae};function Hn(e){return e in Vn}function Un(e){typeof e.ease==`string`&&Hn(e.ease)&&(e.ease=Vn[e.ease])}var Wn=10,Gn=class extends Bn{constructor(e){Un(e),Qt(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:a,...o}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let s=new tn({...o,autoplay:!1}),c=Math.max(Wn,A.now()-this.startTime),l=i(0,Wn,c-Wn),u=s.sample(c).value,{name:d}=this.options;a&&d&&kn(a,d,u),t.setWithVelocity(s.sample(Math.max(0,c-l)).value,u,l),s.stop()}},Kn=(e,t)=>t===`zIndex`?!1:!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(R.test(e)||e===`0`)&&!e.startsWith(`url(`));function qn(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 Jn(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=Kn(i,t),s=Kn(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:qn(e)||(n===`spring`||Rn(n))&&r}function Yn(e){e.duration=0,e.type=`keyframes`}var Xn=new Set([`opacity`,`clipPath`,`filter`,`transform`]),Zn=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function Qn(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&Zn.test(e[t]))return!0;return!1}var $n=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),er=u(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function tr(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:c,transformTemplate:l}=t.owner.getProps();return er()&&n&&(Xn.has(n)||$n.has(n)&&Qn(s))&&(n!==`transform`||!l)&&!c&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var nr=40,rr=class extends $t{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=A.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||Dn;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:s,delay:c,isHandoff:l,onUpdate:u}=n;this.resolvedAt=A.now();let f=!0;Jn(e,i,a,s)||(f=!1,(o.instantAnimations||!c)&&u?.(Xt(e,n,t)),e[0]=e[e.length-1],Yn(n),n.repeat=0);let p={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>nr?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},m=f&&!l&&tr(p),h=p.motionValue?.owner?.current,g;if(m)try{g=new Gn({...p,element:h})}catch{g=new tn(p)}else g=new tn(p);g.finished.then(()=>{this.notifyFinished()}).catch(d),this.pendingTimeline&&=(this.stopTimeline=g.attachTimeline(this.pendingTimeline),void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),En()),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()}},ir=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return ar(this.animations,`duration`)}get iterationDuration(){return ar(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function ar(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var or=class extends ir{then(e,t){return this.finished.finally(e).then(()=>{})}},sr=class extends Bn{constructor(e){super(),this.animation=e,e.onfinish=()=>{this.finishedTime=this.time,this.notifyFinished()}}},cr=new WeakMap,lr=(e,t=``)=>`${e}:${t}`;function ur(e){let t=cr.get(e);return t||(t=new Map,cr.set(e,t)),t}var dr=30,fr=e=>!isNaN(parseFloat(e)),pr={current:void 0},mr=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=A.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=A.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=fr(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new m);let n=this.events[e].add(t);return e===`change`?()=>{n(),k.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return pr.current&&pr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=A.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>dr)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,dr);return _(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function W(e,t){return new mr(e,t)}function hr(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function G(e,t){let n=e?.[t]??e?.default??e;return n===e?n:hr(n,e)}var gr={type:`spring`,stiffness:500,damping:25,restSpeed:10},_r=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),vr={type:`keyframes`,duration:.8},yr={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},br=(e,{keyframes:t})=>t.length>2?vr:gn.has(e)?e.startsWith(`scale`)?_r(t[1]):gr:yr,xr=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function Sr(e){for(let t in e)if(!xr.has(t))return!0;return!1}var Cr=(e,t,n,r={},i,a)=>s=>{let c=G(r,e)||{},l=c.delay||r.delay||0,{elapsed:u=0}=r;u-=h(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...c,delay:-u,onUpdate:e=>{t.set(e),c.onUpdate&&c.onUpdate(e)},onComplete:()=>{s(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:a?void 0:i};Sr(c)||Object.assign(d,br(e,d)),d.duration&&=h(d.duration),d.repeatDelay&&=h(d.repeatDelay),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(Yn(d),d.delay===0&&(f=!0)),(o.instantAnimations||o.skipAnimations||i?.shouldSkipAnimations||c.skipAnimations)&&(f=!0,Yn(d),d.delay=0),d.allowFlatten=!c.type&&!c.ease,f&&!a&&t.get()!==void 0){let e=Xt(d.keyframes,c);if(e!==void 0){k.update(()=>{d.onUpdate(e),d.onComplete()});return}}return c.isSync?new tn(d):new rr(d)},wr=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Tr(e){let t=wr.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Er(e,t,n=1){`${e}`;let[r,i]=Tr(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return s(e)?parseFloat(e):e}return De(i)?Er(i,t,n+1):i}function Dr(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Or(e,t,n,r){if(typeof t==`function`){let[i,a]=Dr(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=Dr(r);t=t(n===void 0?e.custom:n,i,a)}return t}function kr(e,t,n){let r=e.getProps();return Or(r,t,n===void 0?r.custom:n,e)}var Ar=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...hn]),jr=e=>Array.isArray(e);function Mr(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,W(n))}function Nr(e){return jr(e)?e[e.length-1]||0:e}function Pr(e,t){let{transitionEnd:n={},transition:r={},...i}=kr(e,t)||{};i={...i,...n};for(let t in i)Mr(e,t,Nr(i[t]))}var K=e=>!!(e&&e.getVelocity);function Fr(e){return!!(K(e)&&e.add)}function Ir(e,t){let n=e.getValue(`willChange`);if(Fr(n))return n.add(t);if(!n&&o.WillChange){let n=new o.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Lr(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Rr=`data-`+Lr(`framerAppearId`);function zr(e){return e.props[Rr]}function Br({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Vr(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?hr(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState&&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&&Br(f,t))continue;let o={delay:n,...G(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){k.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=zr(e);if(n){let e=window.MotionHandoffAnimation(n,t,k);e!==null&&(o.startTime=e,p=!0)}}Ir(e,t);let m=l??e.shouldReduceMotion;r.start(Cr(t,r,i,m&&Ar.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>k.update(()=>{o&&Pr(e,o)});d.length?Promise.all(d).then(t):t()}return d}var Hr={test:e=>e===`auto`,parse:e=>e},Ur=e=>t=>t.test(e),Wr=[Ae,P,N,M,Ge,We,Hr],Gr=e=>Wr.find(Ur(e));function Kr(e){return typeof e==`number`?e===0:e===null?!0:e===`none`||e===`0`||l(e)}var qr=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Jr(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(Pe)||[];if(!r)return e;let i=n.replace(r,``),a=+!!qr.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Yr=/\b([a-z-]*)\(.*?\)/gu,Xr={...R,getAnimatableNone:e=>{let t=e.match(Yr);return t?t.map(Jr).join(` `):e}},Zr={...R,getAnimatableNone:e=>{let t=R.parse(e);return R.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},Qr={...Ae,transform:Math.round},$r={borderWidth:P,borderTopWidth:P,borderRightWidth:P,borderBottomWidth:P,borderLeftWidth:P,borderRadius:P,borderTopLeftRadius:P,borderTopRightRadius:P,borderBottomRightRadius:P,borderBottomLeftRadius:P,width:P,maxWidth:P,height:P,maxHeight:P,top:P,right:P,bottom:P,left:P,inset:P,insetBlock:P,insetBlockStart:P,insetBlockEnd:P,insetInline:P,insetInlineStart:P,insetInlineEnd:P,padding:P,paddingTop:P,paddingRight:P,paddingBottom:P,paddingLeft:P,paddingBlock:P,paddingBlockStart:P,paddingBlockEnd:P,paddingInline:P,paddingInlineStart:P,paddingInlineEnd:P,margin:P,marginTop:P,marginRight:P,marginBottom:P,marginLeft:P,marginBlock:P,marginBlockStart:P,marginBlockEnd:P,marginInline:P,marginInlineStart:P,marginInlineEnd:P,fontSize:P,backgroundPositionX:P,backgroundPositionY:P,rotate:M,pathRotation:M,rotateX:M,rotateY:M,rotateZ:M,scale:Me,scaleX:Me,scaleY:Me,scaleZ:Me,skew:M,skewX:M,skewY:M,distance:P,translateX:P,translateY:P,translateZ:P,x:P,y:P,z:P,perspective:P,transformPerspective:P,opacity:je,originX:Ke,originY:Ke,originZ:P,zIndex:Qr,fillOpacity:je,strokeOpacity:je,numOctaves:Qr},ei={...$r,color:I,backgroundColor:I,outlineColor:I,fill:I,stroke:I,borderColor:I,borderTopColor:I,borderRightColor:I,borderBottomColor:I,borderLeftColor:I,filter:Xr,WebkitFilter:Xr,mask:Zr,WebkitMask:Zr},ti=e=>ei[e],ni=new Set([Xr,Zr]);function ri(e,t){let n=ti(e);return ni.has(n)||(n=R),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var ii=new Set([`auto`,`none`,`0`]);function ai(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!ii.has(t)&&L(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=ri(n,i)}var oi=class extends Dn{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(),De(r))){let i=Er(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ar.has(n)||e.length!==2)return;let[r,i]=e,a=Gr(r),o=Gr(i);if(ke(r)!==ke(i)&&H[n]){this.needsMeasurement=!0;return}if(a!==o)if(_n(a)&&_n(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else H[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Kr(e[t]))&&n.push(t);n.length&&ai(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=H[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=H[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},si=new Set(`borderWidth.borderTopWidth.borderRightWidth.borderBottomWidth.borderLeftWidth.borderRadius.borderTopLeftRadius.borderTopRightRadius.borderBottomRightRadius.borderBottomLeftRadius.width.maxWidth.height.maxHeight.top.right.bottom.left.inset.insetBlock.insetBlockStart.insetBlockEnd.insetInline.insetInlineStart.insetInlineEnd.padding.paddingTop.paddingRight.paddingBottom.paddingLeft.paddingBlock.paddingBlockStart.paddingBlockEnd.paddingInline.paddingInlineStart.paddingInlineEnd.margin.marginTop.marginRight.marginBottom.marginLeft.marginBlock.marginBlockStart.marginBlockEnd.marginInline.marginInlineStart.marginInlineEnd.fontSize.backgroundPositionX.backgroundPositionY`.split(`.`));function ci(e,t){for(let n=0;n<e.length;n++)typeof e[n]==`number`&&si.has(t)&&(e[n]=e[n]+`px`)}function li(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 ui=(e,t)=>t&&typeof e==`number`?t.transform(e):e,{schedule:di,cancel:fi}=ve(queueMicrotask,!1);function pi(e,t){let n=window.getComputedStyle(e);return On(t)?n.getPropertyValue(t):n[t]}function mi(e){return c(e)&&`ownerSVGElement`in e}function hi(e){return mi(e)&&e.tagName===`svg`}var gi=[...Wr,I,R],_i=e=>gi.find(Ur(e)),vi=0,yi=()=>`motion-view-${vi++}`,bi=e=>e.startsWith(`motion-view-`);function xi(e,t,n){t&&(e.style?.setProperty(`view-transition-class`,t),n.push(e))}function Si(e,t,n,r,i){if(n&&(e.style?.setProperty(`view-transition-group`,n),r.push(e),n!==`none`&&i)){let n=getComputedStyle(e);(n.overflowX!==`visible`||n.overflowY!==`visible`)&&i.add(t)}}function Ci(e,t,n,r,i,a=[],o,s=[],c){let l=li(e);if(r)return l.map((e,l)=>{let u=t.get(e);if(u)return u;let d=r[l]??yi();return e.style?.setProperty(`view-transition-name`,d),n.push(e),t.set(e,d),xi(e,i,a),Si(e,d,o,s,c),d});let u=l.map(e=>t.has(e)?void 0:getComputedStyle(e).getPropertyValue(`view-transition-name`));return l.map((e,r)=>{let l=t.get(e);if(l)return l;let d=u[r],f;return d&&d!==`none`&&d!==`auto`&&d!==`match-element`&&!bi(d)?f=d:(f=yi(),e.style?.setProperty(`view-transition-name`,f),n.push(e)),t.set(e,f),xi(e,i,a),Si(e,f,o,s,c),f})}function wi(e,t=[],n=[]){for(let t of e)t.style?.removeProperty(`view-transition-name`);for(let e of t)e.style?.removeProperty(`view-transition-class`);for(let e of n)e.style?.removeProperty(`view-transition-group`)}function Ti(e){return e===`layout`?`group`:e===`enter`||e===`new`?`new`:`old`}var Ei={},q=null,J={set:(e,t)=>{Ei[e]=t},commit:()=>{q||(q=document.createElement(`style`),q.id=`motion-view`);let e=``;for(let t in Ei){let n=Ei[t];e+=`${t} {\n`;for(let[t,r]of Object.entries(n))e+=` ${t}: ${r};\n`;e+=`}
2
2
  `}q.textContent=e,document.head.appendChild(q),Ei={}},remove:()=>{q&&q.parentElement&&q.parentElement.removeChild(q)}};function Di(e){let t=e.match(/::view-transition-(old|new|group-children|group|image-pair)\((.*?)\)/);return t?{layer:t[2],type:t[1]}:null}function Oi(){return document.getAnimations().filter(e=>{let{effect:t}=e;return!!t&&t.target===document.documentElement&&t.pseudoElement?.startsWith(`::view-transition`)})}function ki(e,t){return t.has(e)&&Object.keys(t.get(e)).length>0}var Ai=[`layout`,`enter`,`exit`,`new`,`old`],ji={group:[`layout`],new:[`new`,`enter`],old:[`old`,`exit`]},Mi={new:{opacity:0,scale:.85},old:{opacity:1,scale:1}},Ni=.2;function Pi(e){let{update:t,targets:n,resolveDefs:r,cropOverride:i,pairs:a,classNames:o,flatGroups:s,options:c}=e;if(!document.startViewTransition)return(async()=>(await t(),new ir([])))();let l=new Map,u=[],d=[],f=[],p=new Set,m=new Map,g=new Set,_=new Map,v=new Map,b=new Map,x=new Map,S=e=>{n.forEach((t,n)=>{let c=o.get(n),h=n===`root`||!r.has(n)?void 0:s.has(n)?`none`:`contain`,g;if(n===`root`||!r.has(n))g=[n];else if(a.has(n))if(e===`old`)x.set(n,li(n)),g=Ci(n,l,u,void 0,c,d,h,f,p),b.set(n,g);else{for(let e of x.get(n)??[])e.style?.removeProperty(`view-transition-name`),l.delete(e);g=Ci(a.get(n),l,u,b.get(n),c,d,h,f,p)}else g=Ci(n,l,u,void 0,c,d,h,f,p);let y=i.get(n);g.forEach((n,r)=>{let i=m.get(n);m.set(n,i&&i!==t?{...i,...t}:t),y!==void 0&&_.set(n,y);let a=v.get(n)??{};a[e]=[r,g.length],v.set(n,a)})})},C=(e,t)=>{let n=v.get(e);return(t===`old`?n?.old:t===`new`?n?.new:n?.new??n?.old)??[-1,1]},w=(e,t,n,r,i)=>{let a=Ii(G(c,n),G(Fi(e,t)??{},n));return typeof a.delay==`function`&&(a.delay=a.delay(r,i)),a},T=new Map,E=e=>l.forEach((t,n)=>{let r=n.getBoundingClientRect?.();if(r&&r.height){let n=T.get(t)??{};n[e]={width:r.width,height:r.height},T.set(t,n)}}),D=()=>{g.clear();for(let e of v.keys())e!==`root`&&(_.get(e)??ee(e))&&g.add(e)},ee=e=>{let t=T.get(e);return!t?.old||!t?.new||!t.old.height||!t.new.height?!1:Math.abs(t.old.width/t.old.height-t.new.width/t.new.height)>Ni},te=()=>{ki(`root`,n)||J.set(`:root`,{"view-transition-name":`none`}),J.set(`::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*)`,{"animation-timing-function":`linear !important`}),g.forEach(e=>{J.set(`::view-transition-group(${e})`,{overflow:`clip`}),J.set(`::view-transition-old(${e}), ::view-transition-new(${e})`,{width:`100%`,height:`100%`,"object-fit":`cover`})}),p.forEach(e=>{J.set(`::view-transition-group-children(${e})`,{overflow:`clip`})}),J.commit()},ne=()=>{wi(u,d,f),J.remove()},re=async()=>{await t(),S(`new`),E(`new`),D(),te()},O;try{S(`old`),E(`old`),te(),O=document.startViewTransition(re)}catch(e){return ne(),Promise.reject(e)}return O.finished.finally(ne),new Promise((e,t)=>{O.ready.then(()=>{let t=Oi(),n=[],r=new Set,i=new Set;m.forEach((e,t)=>{let a=v.get(t),o=!!a?.new&&!a?.old,s=!!a?.old&&!a?.new;for(let a of Ai){if(!e[a]||a===`enter`&&!o||a===`exit`&&!s)continue;let l=Ti(a),[u,d]=C(t,l);if(u===-1)continue;let{keyframes:f,options:p}=e[a];for(let[m,g]of Object.entries(f)){if(g==null)continue;if(m===`x`||m===`y`){y(!1,`animateView() animates view-transition layers with CSS properties; the "${m}" shorthand has no effect - use transform, e.g. { transform: "translateX(40px)" }.`);continue}if(a===`new`&&o&&e.enter?.keyframes[m]!=null||a===`old`&&s&&e.exit?.keyframes[m]!=null)continue;let f=Ii(G(c,m),G(p,m));if(!Array.isArray(g)){let t=a===`enter`?e.exit?.keyframes[m]:void 0,n=t==null?m===`opacity`||(l===`new`?o:s)?Mi[l]?.[m]:void 0:Array.isArray(t)?t[t.length-1]:t;n!==void 0&&(g=[n,g])}typeof f.delay==`function`&&(f.delay=f.delay(u,d)),f.duration&&=h(f.duration),f.delay&&=h(f.delay),n.push(new Bn({...f,element:document.documentElement,name:m,pseudoElement:`::view-transition-${l}(${t})`,keyframes:g})),r.add(`${t}:${l}`),m===`opacity`&&i.add(`${t}:${l}`)}}});for(let e of t){if(e.playState===`finished`)continue;let{effect:t}=e;if(!t||!(t instanceof KeyframeEffect))continue;let{pseudoElement:a}=t;if(!a)continue;let o=Di(a);if(!o)continue;let s=m.get(o.layer);if(r.has(`${o.layer}:${o.type}`)){i.has(`${o.layer}:new`)&&i.has(`${o.layer}:old`)&&t.getKeyframes().some(e=>e.mixBlendMode)?n.push(new sr(e)):e.cancel();continue}let c=v.get(o.layer),l=(o.type===`old`||o.type===`new`)&&!!c?.old&&!!c?.new,u=o.type.startsWith(`group`)||l?`group`:o.type,[d,f]=C(o.layer,u),p=w(s,u,u===`group`?`layout`:``,d===-1?0:d,f),g=p.visualDuration;p.duration&&=h(p.duration),p=zn(p);let _=l&&g!==void 0?h(g):p.duration,y=l?`linear`:In(p.ease,p.duration);t.updateTiming({delay:h(p.delay??0),duration:_,easing:y}),n.push(new sr(e))}e(new ir(n))}).catch(()=>O.updateCallbackDone.then(()=>e(new ir([])),t))})}function Fi(e,t){for(let n of ji[t]??[]){let t=e?.[n]?.options;if(t)return t}}function Ii(e,t){let n={...e,...t};return t.duration!==void 0&&(t.visualDuration===void 0&&delete n.visualDuration,t.type===void 0&&delete n.type),n}var Y=[],Li=null;function Ri(){Li=null;let[e]=Y;e&&zi(e)}function zi(e){r(Y,e),Li=e,Pi(e).then(t=>(e.notifyReady(t),t.finished)).catch(t=>e.notifyReject(t)).finally(Ri)}function Bi(){for(let e=Y.length-1;e>=0;e--){let t=Y[e],{interrupt:n}=t.options;if(n===`immediate`){let n=Y.slice(0,e+1).map(e=>e.update),r=Y.slice(e+1);t.update=()=>{n.forEach(e=>e())},Y=[t,...r];break}}(!Li||Y[0]?.options.interrupt===`immediate`)&&Ri()}function Vi(e){Y.push(e),di.render(Bi)}var Hi=class{constructor(e,t={}){this.currentSubject=`root`,this.targets=new Map,this.resolveDefs=new Set,this.cropOverride=new Map,this.pairs=new Map,this.classNames=new Map,this.flatGroups=new Set,this.notifyReady=d,this.notifyReject=d,this.readyPromise=new Promise((e,t)=>{this.notifyReady=e,this.notifyReject=t}),this.update=e,this.options={interrupt:`wait`,...t},this.readyPromise.catch(d),Vi(this)}add(e,t){return this.currentSubject=e,this.resolveDefs.add(e),t!==void 0&&this.pairs.set(e,t),this.targets.has(e)||this.targets.set(e,{}),this}crop(e=!0){return this.cropOverride.set(this.currentSubject,e),this}group(e=!0){return e?this.flatGroups.delete(this.currentSubject):this.flatGroups.add(this.currentSubject),this}class(e){return this.classNames.set(this.currentSubject,e),this}layout(e={}){return this.updateTarget(`layout`,{},e),this}enter(e,t){return this.updateTarget(`enter`,e,t),this}exit(e,t){return this.updateTarget(`exit`,e,t),this}new(e,t){return this.updateTarget(`new`,e,t),this}old(e,t){return this.updateTarget(`old`,e,t),this}updateTarget(e,t,n={}){let{currentSubject:r,targets:i}=this;i.has(r)||i.set(r,{});let a=i.get(r);a[e]={keyframes:t,options:n}}then(e,t){return this.readyPromise.then(e,t)}};function Ui(e,t={}){return new Hi(e,t)}var Wi=()=>({min:0,max:0}),Gi=()=>({x:Wi(),y:Wi()}),Ki=new WeakMap;function qi(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Ji(e){return typeof e==`string`||Array.isArray(e)}var Yi=[`initial`,`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`];function Xi(e){return qi(e.animate)||Yi.some(t=>Ji(e[t]))}function Zi(e){return!!(Xi(e)||e.variants)}function Qi(e,t,n){for(let r in t){let i=t[r],a=n[r];if(K(i))e.addValue(r,i);else if(K(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 $i={current:null},ea={current:!1},ta=typeof window<`u`;function na(){if(ea.current=!0,ta)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>$i.current=e.matches;e.addEventListener(`change`,t),t()}else $i.current=!1}var ra=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],ia={},aa=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=Dn,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=A.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,k.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=Xi(t),this.isVariantNode=Zi(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&&K(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];this.current=e,Ki.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(ea.current||na(),this.shouldReduceMotion=$i.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(),ye(this.notifyUpdate),ye(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&&Xn.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Bn({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:h(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=gn.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&k.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||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in ia){let t=ia[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):Gi()}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<ra.length;t++){let n=ra[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=Qi(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=W(t===null?void 0:t,{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`&&(s(n)||l(n))?n=parseFloat(n):!_i(n)&&R.test(t)&&(n=ri(e,t)),this.setBaseTarget(e,K(n)?n.get():n)),K(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=Or(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!K(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new m),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){di.render(this.render)}},oa=class extends aa{constructor(){super(...arguments),this.KeyframeResolver=oi}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;K(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}};function sa({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ca(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 la(e,t){return sa(ca(e.getBoundingClientRect(),t))}var ua={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},da=hn.length;function fa(e,t,n){let r=``,i=!0;for(let a=0;a<da;a++){let o=hn[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=ui(s,$r[o]);if(!c){i=!1;let t=ua[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${ui(a,$r.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function pa(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(gn.has(e)){o=!0;continue}else if(Te(e)){i[e]=n;continue}else{let t=ui(n,$r[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=fa(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function ma(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])}function ha(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var ga={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(P.test(e))e=parseFloat(e);else return e;return`${ha(e,t.target.x)}% ${ha(e,t.target.y)}%`}},_a={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=R.parse(e);if(i.length>5)return r;let a=R.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=ut(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},va={borderRadius:{...ga,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:ga,borderTopRightRadius:ga,borderBottomLeftRadius:ga,borderBottomRightRadius:ga,boxShadow:_a};function ya(e,{layout:t,layoutId:n}){return gn.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!va[e]||e===`opacity`)}function ba(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(K(r[t])||i&&K(i[t])||ya(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function xa(e){return window.getComputedStyle(e)}var Sa=class extends oa{constructor(){super(...arguments),this.type=`html`,this.renderInstance=ma}readValueFromInstance(e,t){if(gn.has(t))return this.projection?.isProjecting?dn(t):pn(e,t);{let n=xa(e),r=(Te(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return la(e,t)}build(e,t,n){pa(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return ba(e,t,n)}};function Ca(e,t){return e in t}var wa=class extends aa{constructor(){super(...arguments),this.type=`object`}readValueFromInstance(e,t){if(Ca(t,e)){let n=e[t];if(typeof n==`string`||typeof n==`number`)return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return Gi()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}},Ta={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Ea={offset:`strokeDashoffset`,array:`strokeDasharray`};function Da(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Ta:Ea;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var Oa=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function ka(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(pa(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;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of Oa)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Da(d,i,a,o,!1)}var Aa=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`]),ja=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Ma(e,t,n,r){ma(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Aa.has(n)?n:Lr(n),t.attrs[n])}function Na(e,t,n){let r=ba(e,t,n);for(let n in e)if(K(e[n])||K(t[n])){let t=hn.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Pa=class extends oa{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Gi}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(gn.has(t)){let e=ti(t);return e&&e.default||0}return t=Aa.has(t)?t:Lr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Na(e,t,n)}build(e,t,n){ka(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Ma(e,t,n,r)}mount(e){this.isSVGTag=ja(e.tagName),super.mount(e)}};function Fa(e,t,n){let r=K(e)?e:W(e);return r.start(Cr(``,r,t,n)),r.animation}function Ia(e){return typeof e==`object`&&!Array.isArray(e)}function La(e,t,n,r){return e==null?[]:typeof e==`string`&&Ia(t)?li(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function Ra(e,t,n){return e*(t+1)+n*t}function za(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function Ba(e,t,n){for(let i=0;i<e.length;i++){let a=e[i];a.at>t&&a.at<n&&(r(e,a),i--)}}function Va(e,t,n,r,i,a){Ba(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:ut(i,a,r[o]),easing:ue(n,o)})}function Ha(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function Ua(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var Wa=`easeInOut`,Ga=20;function Ka(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}else if(!Array.isArray(o)){l.set(o.name,za(d,o.at,u,l));continue}let[p,m,g={}]=o;g.at!==void 0&&(d=za(d,g.at,u,l));let _=0,v=(e,n,r,o=0,s=0)=>{let c=Ya(e),{delay:l=0,times:u=Gt(c),type:p=t.type||`keyframes`,repeat:m,repeatType:g,repeatDelay:v=0,...y}=n,{ease:b=t.ease||`easeOut`,duration:x}=n,S=typeof l==`function`?l(o,s):l,C=c.length,w=Rn(p)?p:i?.[p||`keyframes`];if(C<=2&&w){let e=100;if(C===2&&Qa(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...y};x!==void 0&&(n.duration=h(x));let r=kt(n,e,w);b=r.ease,x=r.duration}x??=a;let T=d+S;u.length===1&&u[0]===0&&(u[1]=1);let E=u.length-c.length;if(E>0&&Wt(u,E),c.length===1&&c.unshift(null),m&&`${m}${Ga}`,m&&m<Ga){let e=x>0?v/x:0;x=Ra(x,m,v);let t=[...c],n=[...u];b=Array.isArray(b)?[...b]:[b];let r=[...b],i=g===`reverse`||g===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),g===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?D(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),b.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),b.push(e===0?`linear`:ue(f,e-1))}Ha(u,m,e)}let ee=T+x;Va(r,c,b,u,T,ee),_=Math.max(S+x,_),f=Math.max(ee,f)};if(K(p)){let e=qa(p,s);v(m,g,Ja(`default`,e))}else{let e=La(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,g=g;let r=e[n],i=qa(r,s);for(let e in m)v(m[e],Xa(g,e),Ja(e,i),n,t)}}u=d,d+=_}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(Ua);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(p(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(Wa)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...m}=t;u.transition[i]={...m,duration:f,ease:l,times:c,...n}}}),o}function qa(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function Ja(e,t){return t[e]||(t[e]=[]),t[e]}function Ya(e){return Array.isArray(e)?e:[e]}function Xa(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var Za=e=>typeof e==`number`,Qa=e=>e.every(Za);function $a(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=mi(e)&&!hi(e)?new Pa(t):new Sa(t);n.mount(e),Ki.set(e,n)}function eo(e){let t=new wa({presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}});t.mount(e),Ki.set(e,t)}function to(e,t){return K(e)||typeof e==`number`||typeof e==`string`&&!Ia(t)}function no(e,t,n,r){let i=[];if(to(e,t))i.push(Fa(e,Ia(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=La(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s=r instanceof Element?$a:eo;Ki.has(r)||s(r);let c=Ki.get(r),l={...n};`delay`in l&&typeof l.delay==`function`&&(l.delay=l.delay(e,o)),i.push(...Vr(c,{...t,transition:l},{}))}}return i}function ro(e,t,n){let r=[];return Ka(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=W(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:B}).forEach(({keyframes:e,transition:t},n)=>{r.push(...no(n,e,t))}),r}function io(e){return Array.isArray(e)&&e.some(Array.isArray)}function ao(e={}){let{scope:t,reduceMotion:n,skipAnimations:i}=e;function a(e,a,o){let s=[],c,l={};if(n!==void 0&&(l.reduceMotion=n),i!==void 0&&(l.skipAnimations=i),io(e)){let{onComplete:n,...r}=a||{};typeof n==`function`&&(c=n),s=ro(e,{...l,...r},t)}else{let{onComplete:n,...r}=o||{};typeof n==`function`&&(c=n),s=no(e,a,{...l,...r},t)}let u=new or(s);return c&&u.finished.then(c),t&&(t.animations.push(u),u.finished.then(()=>{r(t.animations,u)})),u}return a}var oo=ao();function so(e,t,n,r){if(e==null)return[];let i=li(e,r),a=i.length,o=[];for(let e=0;e<a;e++){let r=i[e],s={...n};typeof s.delay==`function`&&(s.delay=s.delay(e,a));for(let e in t){let n=t[e];Array.isArray(n)||(n=[n]);let i={...G(s,e)};i.duration&&=h(i.duration),i.delay&&=h(i.delay);let a=ur(r),c=lr(e,i.pseudoElement||``),l=a.get(c);l&&l.stop(),o.push({map:a,key:c,unresolvedKeyframes:n,options:{...i,element:r,name:e,allowFlatten:!s.type&&!s.ease}})}}for(let e=0;e<o.length;e++){let{unresolvedKeyframes:t,options:n}=o[e],{element:r,name:i,pseudoElement:a}=n;!a&&t[0]===null&&(t[0]=pi(r,i)),nn(t),ci(t,i),!a&&t.length<2&&t.unshift(pi(r,i)),n.keyframes=t}let s=[];for(let e=0;e<o.length;e++){let{map:t,key:n,options:r}=o[e],i=new Bn(r);t.set(n,i),i.finished.finally(()=>t.delete(n)),s.push(i)}return s}var co=(e=>{function t(t,n,r){return new or(so(t,n,r,e))}return t})(),X=(e,t)=>({finished:e,then:e.then.bind(e),...t}),Z=e=>X((async()=>{await e?.()})(),{cancel(){},stop(){},complete(){}}),lo=(e,t)=>{let n=!1,r=()=>{n||(n=!0,t?.())};return X(e.finished.then(()=>{},()=>{}).finally(r),{cancel(){e.cancel(),r()},stop(){e.stop(),r()},complete(){e.complete(),r()}})},uo=(...e)=>X(Promise.allSettled(e.map(e=>e.finished)).then(()=>{}),{cancel(){e.forEach(e=>e.cancel())},stop(){e.forEach(e=>e.stop())},complete(){e.forEach(e=>e.complete())}}),fo=(...e)=>{let t=!1,n=!1,r=null;return X((async()=>{for(let i of e){if(t)break;r=i(),n&&r.complete(),await r.finished.catch(()=>{})}})(),{cancel(){t=!0,r?.cancel()},stop(){t=!0,r?.stop()},complete(){n=!0,r?.complete()}})},po=`(prefers-reduced-motion: reduce)`,mo=()=>typeof window>`u`||typeof window.matchMedia!=`function`?!1:window.matchMedia(po).matches,ho=(e=`user`)=>e===`always`?!0:e===`never`?!1:mo(),go=(e,t={},n=`user`)=>ho(n)?{...e,duration:0,...t}:e,_o=e=>typeof e==`object`&&!!e&&`initial`in e,vo=e=>{let t={},n=new Map,r=new Map,i;Object.keys(e.values).forEach(r=>{let i=e.values[r];t[r]=W(_o(i)?i.initial:i),_o(i)&&i.transition&&n.set(r,i.transition)});let a=()=>Object.fromEntries(Object.keys(t).map(e=>[e,t[e].get()])),o=e=>{r.get(e)?.stop(),r.delete(e)},s=e=>{Object.keys(e).forEach(n=>{let r=e[n];r===void 0||!t[n]||(o(n),t[n].set(r))})};return{mount:n=>{i?.();let r=new Map,o=()=>{Object.entries(e.style(a())).forEach(([e,t])=>{r.has(e)||r.set(e,e.startsWith(`--`)?n.style.getPropertyValue(e):String(n.style[e]??``)),e.startsWith(`--`)?n.style.setProperty(e,String(t)):n.style[e]=String(t)})},s=Object.values(t).map(e=>e.on(`change`,o));o();let c=!0,l=()=>{c&&(c=!1,s.forEach(e=>e()),r.forEach((e,t)=>{t.startsWith(`--`)?n.style.setProperty(t,e):n.style[t]=e}),i===l&&(i=void 0))};return i=l,l},set:s,animate:(i,a)=>{if(ho(e.reducedMotion))return s(i),Z();let c=Object.keys(i).flatMap(e=>{let s=i[e];if(s===void 0||!t[e])return[];o(e);let c=lo(oo(t[e],s,{...n.get(e),...a}));return r.set(e,c),c.finished.finally(()=>{r.get(e)===c&&r.delete(e)}),[c]});return c.length?uo(...c):Z()},current:a,destroy:()=>{i?.(),r.forEach(e=>e.cancel()),r.clear()}}},yo=new WeakMap,bo=e=>yo.get(e),xo=e=>{let t=yo.get(e);return t?.handle.stop(),t},So=(e,t)=>{yo.set(e,t)},Co=(e,t)=>{yo.get(e)?.handle===t&&yo.delete(e)},wo=(e,t,n,r,i)=>{let a=lo(t(xo(e))),o=()=>a.stop();r?.addEventListener(`abort`,o,{once:!0});let s,c=()=>{r?.removeEventListener(`abort`,o),bo(e)?.handle===s&&i?.(),Co(e,s)};return s=X(a.finished.finally(c),{cancel(){a.cancel(),c()},stop(){a.stop(),c()},complete(){a.complete()}}),So(e,{handle:s,properties:n}),s},Q=Object.freeze({fast:Object.freeze({duration:.08,bounce:0}),moderate:Object.freeze({duration:.16,bounce:0}),slow:Object.freeze({duration:.24,bounce:0})}),$={out:[.23,1,.32,1],inOut:[.77,0,.175,1]},To=Object.freeze({opacity:Object.freeze({in:Object.freeze({opacity:Object.freeze([0,1])}),out:Object.freeze({opacity:Object.freeze([1,0])})}),popover:Object.freeze({in:Object.freeze({opacity:Object.freeze([0,1]),scale:Object.freeze([.97,1])}),out:Object.freeze({opacity:Object.freeze([1,0]),scale:Object.freeze([1,.97])})}),modal:Object.freeze({in:Object.freeze({opacity:Object.freeze([0,1]),y:Object.freeze([8,0]),scale:Object.freeze([.98,1])}),out:Object.freeze({opacity:Object.freeze([1,0]),y:Object.freeze([0,8]),scale:Object.freeze([1,.98])})}),toast:Object.freeze({in:Object.freeze({opacity:Object.freeze([0,1]),transform:Object.freeze([`translateY(calc(var(--ui-toast-stack-offset, 0px) + var(--ui-toast-outside, -100%))) scale(var(--ui-toast-stack-scale, 1))`,`translateY(var(--ui-toast-stack-offset, 0px)) scale(var(--ui-toast-stack-scale, 1))`])}),out:Object.freeze({opacity:0,transform:`translateY(calc(var(--ui-toast-stack-offset, 0px) + var(--ui-toast-outside, -100%))) scale(var(--ui-toast-stack-scale, 1))`})})}),Eo=(e=`moderate`)=>typeof e==`string`?Q[e]:e,Do=e=>Array.isArray(e)?e[e.length-1]:e,Oo=e=>Array.isArray(e)?[...e]:e,ko=e=>!(e instanceof Element)&&typeof e==`object`&&!!e&&`signal`in e,Ao=e=>{let t=e instanceof Element?e:e.el;if(!(t instanceof Element))throw TypeError(`Motion subject requires an Element target.`);return t},jo=(e,t)=>{let n=Ao(e);if(!t)return n;if(t instanceof Element)return t;let r=ko(e)?e.root:n;if(!(r instanceof Element))throw TypeError(`Motion transition subject requires an Element root.`);let i=r.matches(t)?r:r.querySelector(t);if(!i)throw Error(`Motion target not found: ${t}`);return i},Mo=e=>ko(e)?e.signal:null,No=new WeakMap,Po=(e,t)=>{let n=jo(e,t.target);if(!(n instanceof HTMLElement))throw TypeError(`Motion resize requires an HTMLElement target.`);let r=jo(e,t.measure??n);if(r===n)throw Error(`Motion resize requires a separate measurement element.`);if(!(r instanceof HTMLElement))throw TypeError(`Motion resize measurement requires an HTMLElement.`);let i=Mo(e);if(i?.aborted)return Z();let a=xo(n);No.has(n)||No.set(n,{height:n.style.height,opacity:n.style.opacity,overflow:n.style.overflow,willChange:n.style.willChange});let o=Math.max(r.scrollHeight,r.getBoundingClientRect().height),s=a?.properties.has(`block-size`)?n.getBoundingClientRect().height:t.from===`content`?o:0,c=t.to===`content`?o:0,l=ho(),u=Eo(l?`fast`:t.speed),d={},f=new Set;n.style.overflow=`hidden`,n.style.willChange=l?`opacity`:`height, opacity`,l?n.style.height=`${c}px`:(d.height=[s,c],f.add(`block-size`)),t.opacity!==void 0&&(d.opacity=a?.properties.has(`opacity`)?Do(t.opacity):Oo(t.opacity),f.add(`opacity`));let p=lo(co(n,d,l?{duration:`duration`in u?u.duration:Q.fast.duration,ease:$.out}:{type:B,...u})),m=()=>p.stop();i?.addEventListener(`abort`,m,{once:!0});let h,g=()=>{if(i?.removeEventListener(`abort`,m),bo(n)?.handle!==h)return;let e=No.get(n);e&&Object.assign(n.style,e),No.delete(n),Co(n,h)};return h=X(p.finished.finally(g),{cancel(){p.cancel(),g()},stop(){p.stop()},complete(){p.complete()}}),So(n,{handle:h,properties:f}),h},Fo=e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,Array.isArray(t)?[...t]:t])),Io=(e,t=new Set)=>Object.fromEntries(Object.entries(Fo(e)).map(([e,n])=>[e,t.has(e)&&Array.isArray(n)?Do(n):n])),Lo=new Set([`bottom`,`filter`,`height`,`inset`,`insetBlock`,`insetInline`,`left`,`right`,`top`,`transform`,`width`,`translate`,`x`,`y`,`z`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`skew`,`skewX`,`skewY`]),Ro=e=>Object.fromEntries(Object.entries(Fo(e)).flatMap(([e,t])=>Lo.has(e)?[]:[[e,t]])),zo=e=>Object.fromEntries(Object.entries(Fo(e)).flatMap(([e,t])=>Lo.has(e)?[[e,Array.isArray(t)?Do(t):t]]:[])),Bo=(e,t,n)=>{let r=Eo(n?`fast`:e);return{...`stiffness`in r?{type:B,...r}:{duration:r.duration,ease:$.out},...t}},Vo=(e,t,n)=>{let r=jo(e,t.target),i=Mo(e);if(i?.aborted)return Z();let a=ho();if(a){let e=zo(t.keyframes);Object.keys(e).length>0&&oo(r,e,{duration:0}).complete()}let o=a?Ro(t.keyframes):Fo(t.keyframes);return Object.keys(o).length===0?(oo(r,Object.fromEntries(Object.entries(Fo(t.keyframes)).map(([e,t])=>[e,Array.isArray(t)?Do(t):t])),{duration:0}).complete(),Z()):wo(r,e=>oo(r,Io(o,e?.properties),Bo(t.speed??n.speed,{...n.transition,...t.transition},a)),new Set(Object.keys(o)),i)},Ho=(e,t,n)=>{if(t.kind===`animate`)return Vo(e,t,n);let r=t.speed??n.speed??t.options.speed;return Po(e,r===void 0?t.options:{...t.options,speed:r})},Uo=(e,t)=>t===void 0?{keyframes:e}:{target:e,keyframes:t},Wo=class e{#e;#t;#n;constructor(e,t=[],n={}){this.#e=e,this.#t=t,this.#n=n}#r(t,n){if(!n||this.#t.length===0)return new e(this.#e,[...this.#t,[t]],this.#n);let r=this.#t.slice(0,-1),i=this.#t.at(-1)??[];return new e(this.#e,[...r,[...i,t]],this.#n)}#i(t){let n=this.#t.at(-1);if(!n?.length)throw Error(`Declare a motion segment before configuring it.`);let r=this.#t.slice(0,-1);return new e(this.#e,[...r,[...n.slice(0,-1),t(n.at(-1))]],this.#n)}animate(e,t){return this.#r({kind:`animate`,...Uo(e,t)},!1)}with(e,t){return this.#r({kind:`animate`,...Uo(e,t)},!0)}then(e,t){return this.animate(e,t)}resize(e){return this.#r({kind:`resize`,options:e},!1)}speed(e){return this.#i(t=>({...t,speed:e}))}transition(e){return this.#i(t=>t.kind===`animate`?{...t,transition:{...t.transition,...e}}:t)}defaults(t){let n=t.speed??this.#n.speed,r={...this.#n.transition,...t.transition};return new e(this.#e,this.#t,{...n===void 0?{}:{speed:n},...Object.keys(r).length===0?{}:{transition:r}})}play(){return this.#t.length===0?Z():fo(...this.#t.map(e=>()=>uo(...e.map(e=>Ho(this.#e,e,this.#n)))))}},Go=e=>new Wo(e),Ko=e=>{let t=globalThis.CSS;return typeof t?.escape==`function`?t.escape(e):e.replaceAll(`\\`,`\\\\`).replaceAll(`"`,`\\"`)},qo=e=>`[${t}="${Ko(e)}"]`,Jo=e=>`[data-ui-${Ko(e)}]`,Yo=e=>e instanceof Element?null:typeof e==`string`?e:`selector`in e?e.selector:`part`in e?Jo(e.part):`key`in e?qo(e.key):null,Xo=e=>{if(e instanceof Element)return[e];let t=Yo(e);return t?[t]:[]},Zo=(e=document,t)=>t?(Array.isArray(t)?t:[t]).flatMap(e=>{if(e instanceof Element)return[{subject:e}];if(typeof e==`object`&&`from`in e){let t=Xo(e.from),n=Xo(e.to);return t.flatMap((e,t)=>{let r=n[t]??n[0];return r?[{subject:e,newSubject:r}]:[]})}let t=Yo(e);return t?[{subject:t}]:[]}):[],Qo=async()=>{},$o=e=>{Qo=async()=>{await e()}},es={duration:Q.moderate.duration,ease:$.inOut},ts={transform:[`none`,`none`]},ns=`[${t}], [${e}]`,rs=(e,t,n={})=>{if(typeof document.startViewTransition!=`function`||ho(n.reducedMotion))return Z(e);let r=t??(n.layout||n.preset===`layout`?ns:null),i=Zo(n.scope??document,r),a=Ui(e,{duration:Q.moderate.duration,ease:$.inOut,interrupt:`immediate`,...n.transition});return i.forEach(({subject:e,newSubject:t})=>{a.add(e,t),n.className&&a.class(n.className),typeof n.crop==`boolean`&&a.crop(n.crop),typeof n.group==`boolean`&&a.group(n.group),n.layout!==!1&&n.preset!==`none`&&a.layout(typeof n.layout==`object`?n.layout:es);let r=n.newView??(n.preset===`stream`?ts:void 0),i=n.oldView??(n.preset===`stream`?ts:void 0),o=n.enter,s=n.exit;r&&a.new(r,{duration:Q.fast.duration,ease:$.out}),i&&a.old(i,{duration:Q.fast.duration,ease:$.out}),o&&a.enter(o,{duration:Q.fast.duration,ease:$.out}),s&&a.exit(s,{duration:Q.fast.duration,ease:$.out})}),X(Promise.resolve(a.then(()=>{},()=>{})),{cancel(){Oi().forEach(e=>e.cancel())},stop(){Oi().forEach(e=>e.pause())},complete(){Oi().forEach(e=>{try{e.finish()}catch{e.cancel()}})}})},is=Object.assign(Go,{presets:To,speeds:Q,easings:$,createController:vo,withReducedMotion:go,view:(e,t={})=>{let{targets:n,...r}=t;return rs(async()=>{await e(),await Qo()},n,{preset:`layout`,...r})}});export{B as _,qo as a,Q as c,ho as d,Z as f,W as g,li as h,Ko as i,wo as l,oo as m,rs as n,Go as o,co as p,$o as r,$ as s,is as t,xo as u};
3
- //# sourceMappingURL=motion-Dmm9SoIv.js.map
3
+ //# sourceMappingURL=motion-D44EkjK3.js.map