vendor: 6,177 bytes, line 1
1import{a as e,i as t,n,r}from"./CNC7AqOf.js";import{n as i,t as a}from"./C5KgTtL52.js";import{i as o}from"./DTbR38vj2.js";import{x as s}from"./IGt-hQ4R2.js";var c=s(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),l=`-`;function u(e){let t=m(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;function i(e){let n=e.split(l);return n[0]===``&&n.length!==1&&n.shift(),d(n,t)||p(e)}function a(e,t){let i=n[e]||[];return t&&r[e]?[...i,...r[e]]:i}return{getClassGroupId:i,getConflictingClassGroupIds:a}}function d(e,t){if(e.length===0)return t.classGroupId;let n=e[0],r=t.nextPart.get(n),i=r?d(e.slice(1),r):void 0;if(i)return i;if(t.validators.length===0)return;let a=e.join(l);return t.validators.find(({validator:e})=>e(a))?.classGroupId}var f=/^\[(.+)\]$/;function p(e){if(f.test(e)){let t=f.exec(e)[1],n=t?.substring(0,t.indexOf(`:`));if(n)return`arbitrary..`+n}}function m(e){let{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return v(Object.entries(e.classGroups),n).forEach(([e,n])=>{h(n,r,e,t)}),r}function h(e,t,n,r){e.forEach(e=>{if(typeof e==`string`){let r=e===``?t:g(t,e);r.classGroupId=n;return}if(typeof e==`function`){if(_(e)){h(e(r),t,n,r);return}t.validators.push({validator:e,classGroupId:n});return}Object.entries(e).forEach(([e,i])=>{h(i,g(t,e),n,r)})})}function g(e,t){let n=e;return t.split(l).forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n}function _(e){return e.isThemeGetter}function v(e,t){return t?e.map(([e,n])=>[e,n.map(e=>typeof e==`string`?t+e:typeof e==`object`?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e}function y(e){if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=new Map,r=new Map;function i(i,a){n.set(i,a),t++,t>e&&(t=0,r=n,n=new Map)}return{get(e){let t=n.get(e);if(t!==void 0)return t;if((t=r.get(e))!==void 0)return i(e,t),t},set(e,t){n.has(e)?n.set(e,t):i(e,t)}}}var b=`!`;function x(e){let t=e.separator,n=t.length===1,r=t[0],i=t.length;return function(e){let a=[],o=0,s=0,c;for(let l=0;l<e.length;l++){let u=e[l];if(o===0){if(u===r&&(n||e.slice(l,l+i)===t)){a.push(e.slice(s,l)),s=l+i;continue}if(u===`/`){c=l;continue}}u===`[`?o++:u===`]`&&o--}let l=a.length===0?e:e.substring(s),u=l.startsWith(b);return{modifiers:a,hasImportantModifier:u,baseClassName:u?l.substring(1):l,maybePostfixModifierPosition:c&&c>s?c-s:void 0}}}function S(e){if(e.length<=1)return e;let t=[],n=[];return e.forEach(e=>{e[0]===`[`?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t}function C(e){return{cache:y(e.cacheSize),splitModifiers:x(e),...u(e)}}var w=/\s+/;function ee(e,t){let{splitModifiers:n,getClassGroupId:r,getConflictingClassGroupIds:i}=t,a=new Set;return e.trim().split(w).map(e=>{let{modifiers:t,hasImportantModifier:i,baseClassName:a,maybePostfixModifierPosition:o}=n(e),s=r(o?a.substring(0,o):a),c=!!o;if(!s){if(!o||(s=r(a),!s))return{isTailwindClass:!1,originalClassName:e};c=!1}let l=S(t).join(`:`);return{isTailwindClass:!0,modifierId:i?l+b:l,classGroupId:s,originalClassName:e,hasPostfixModifier:c}}).reverse().filter(e=>{if(!e.isTailwindClass)return!0;let{modifierId:t,classGroupId:n,hasPostfixModifier:r}=e,o=t+n;return a.has(o)?!1:(a.add(o),i(n,r).forEach(e=>a.add(t+e)),!0)}).reverse().map(e=>e.originalClassName).join(` `)}function te(){let e=0,t,n,r=``;for(;e<arguments.length;)(t=arguments[e++])&&(n=ne(t))&&(r&&(r+=` `),r+=n);return r}function ne(e){if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=ne(e[r]))&&(n&&(n+=` `),n+=t);return n}function T(e,...t){let n,r,i,a=o;function o(o){return n=C(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)}function s(e){let t=r(e);if(t)return t;let a=ee(e,n);return i(e,a),a}return function(){return a(te.apply(null,arguments))}}function E(e){let t=t=>t[e]||[];return t.isThemeGetter=!0,t}var re=/^\[(?:([a-z-]+):)?(.+)\]$/i,ie=/^\d+\/\d+$/,ae=new Set([`px`,`full`,`screen`]),oe=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,se=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ce=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,le=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ue=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/;function D(e){return fe(e)||ae.has(e)||ie.test(e)}function de(e){return Ce(e,`length`,we)}function fe(e){return!!e&&!Number.isNaN(Number(e))}function pe(e){return Ce(e,`number`,fe)}function me(e){return!!e&&Number.isInteger(Number(e))}function he(e){return e.endsWith(`%`)&&fe(e.slice(0,-1))}function O(e){return re.test(e)}function k(e){return oe.test(e)}var ge=new Set([`length`,`size`,`percentage`]);function _e(e){return Ce(e,ge,Te)}function ve(e){return Ce(e,`position`,Te)}var ye=new Set([`image`,`url`]);function be(e){return Ce(e,ye,De)}function xe(e){return Ce(e,``,Ee)}function Se(){return!0}function Ce(e,t,n){let r=re.exec(e);return r?r[1]?typeof t==`string`?r[1]===t:t.has(r[1]):n(r[2]):!1}function we(e){return se.test(e)&&!ce.test(e)}function Te(){return!1}function Ee(e){return le.test(e)}function De(e){return ue.test(e)}function Oe(){let e=E(`colors`),t=E(`spacing`),n=E(`blur`),r=E(`brightness`),i=E(`borderColor`),a=E(`borderRadius`),o=E(`borderSpacing`),s=E(`borderWidth`),c=E(`contrast`),l=E(`grayscale`),u=E(`hueRotate`),d=E(`invert`),f=E(`gap`),p=E(`gradientColorStops`),m=E(`gradientColorStopPositions`),h=E(`inset`),g=E(`margin`),_=E(`opacity`),v=E(`padding`),y=E(`saturate`),b=E(`scale`),x=E(`sepia`),S=E(`skew`),C=E(`space`),w=E(`translate`),ee=()=>[`auto`,`contain`,`none`],te=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],ne=()=>[`auto`,O,t],T=()=>[O,t],re=()=>[``,D,de],ie=()=>[`auto`,fe,O],ae=()=>[`bottom`,`center`,`left`,`left-bottom`,`left-top`,`right`,`right-bottom`,`right-top`,`top`],oe=()=>[`solid`,`dashed`,`dotted`,`double`,`none`],se=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`,`plus-lighter`],ce=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`],le=()=>[``,`0`,O],ue=()=>
vendor: 10,687 bytes, line 1
1[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],ge=()=>[fe,pe],ye=()=>[fe,O];return{cacheSize:500,separator:`:`,theme:{colors:[Se],spacing:[D,de],blur:[`none`,``,k,O],brightness:ge(),borderColor:[e],borderRadius:[`none`,``,`full`,k,O],borderSpacing:T(),borderWidth:re(),contrast:ge(),grayscale:le(),hueRotate:ye(),invert:le(),gap:T(),gradientColorStops:[e],gradientColorStopPositions:[he,de],inset:ne(),margin:ne(),opacity:ge(),padding:T(),saturate:ge(),scale:ge(),sepia:le(),skew:ye(),space:T(),translate:T()},classGroups:{aspect:[{aspect:[`auto`,`square`,`video`,O]}],container:[`container`],columns:[{columns:[k]}],"break-after":[{"break-after":ue()}],"break-before":[{"break-before":ue()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:[...ae(),O]}],overflow:[{overflow:te()}],"overflow-x":[{"overflow-x":te()}],"overflow-y":[{"overflow-y":te()}],overscroll:[{overscroll:ee()}],"overscroll-x":[{"overscroll-x":ee()}],"overscroll-y":[{"overscroll-y":ee()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[`auto`,me,O]}],basis:[{basis:ne()}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`wrap`,`wrap-reverse`,`nowrap`]}],flex:[{flex:[`1`,`auto`,`initial`,`none`,O]}],grow:[{grow:le()}],shrink:[{shrink:le()}],order:[{order:[`first`,`last`,`none`,me,O]}],"grid-cols":[{"grid-cols":[Se]}],"col-start-end":[{col:[`auto`,{span:[`full`,me,O]},O]}],"col-start":[{"col-start":ie()}],"col-end":[{"col-end":ie()}],"grid-rows":[{"grid-rows":[Se]}],"row-start-end":[{row:[`auto`,{span:[me,O]},O]}],"row-start":[{"row-start":ie()}],"row-end":[{"row-end":ie()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":[`auto`,`min`,`max`,`fr`,O]}],"auto-rows":[{"auto-rows":[`auto`,`min`,`max`,`fr`,O]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:[`normal`,...ce()]}],"justify-items":[{"justify-items":[`start`,`end`,`center`,`stretch`]}],"justify-self":[{"justify-self":[`auto`,`start`,`end`,`center`,`stretch`]}],"align-content":[{content:[`normal`,...ce(),`baseline`]}],"align-items":[{items:[`start`,`end`,`center`,`baseline`,`stretch`]}],"align-self":[{self:[`auto`,`start`,`end`,`center`,`stretch`,`baseline`]}],"place-content":[{"place-content":[...ce(),`baseline`]}],"place-items":[{"place-items":[`start`,`end`,`center`,`baseline`,`stretch`]}],"place-self":[{"place-self":[`auto`,`start`,`end`,`center`,`stretch`]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[C]}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":[C]}],"space-y-reverse":[`space-y-reverse`],w:[{w:[`auto`,`min`,`max`,`fit`,`svw`,`lvw`,`dvw`,O,t]}],"min-w":[{"min-w":[O,t,`min`,`max`,`fit`]}],"max-w":[{"max-w":[O,t,`none`,`full`,`min`,`max`,`fit`,`prose`,{screen:[k]},k]}],h:[{h:[O,t,`auto`,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"min-h":[{"min-h":[O,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],"max-h":[{"max-h":[O,t,`min`,`max`,`fit`,`svh`,`lvh`,`dvh`]}],size:[{size:[O,t,`auto`,`min`,`max`,`fit`]}],"font-size":[{text:[`base`,k,de]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`,pe]}],"font-family":[{font:[Se]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractons`],tracking:[{tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`,O]}],"line-clamp":[{"line-clamp":[`none`,fe,pe]}],leading:[{leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`,D,O]}],"list-image":[{"list-image":[`none`,O]}],"list-style-type":[{list:[`none`,`disc`,`decimal`,O]}],"list-style-position":[{list:[`inside`,`outside`]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[_]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[_]}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...oe(),`wavy`]}],"text-decoration-thickness":[{decoration:[`auto`,`from-font`,D,de]}],"underline-offset":[{"underline-offset":[`auto`,D,O]}],"text-decoration-color":[{decoration:[e]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:T()}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,O]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,O]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-opacity":[{"bg-opacity":[_]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:[...ae(),ve]}],"bg-repeat":[{bg:[`no-repeat`,{repeat:[``,`x`,`y`,`round`,`space`]}]}],"bg-size":[{bg:[`auto`,`cover`,`contain`,_e]}],"bg-image":[{bg:[`none`,{"gradient-to":[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},be]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[_]}],"border-style":[{border:[...oe(),`hidden`]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":[`divide-y-reverse`],"divide-opacity":[{"divide-opacity":[_]}],"divide-style":[{divide:oe()}],"border-color":[{border:[i]}],"border-color-x":[{"border-x":[i]}],"border-color-y":[{"border-y":[i]}],"border-color-t":[{"border-t":[i]}],"border-color-r":[{"border-r":[i]}],"border-color-b":[{"border-b":[i]}],"border-color-l":[{"border-l":[i]}],"divide-color":[{divide:[i]}],"outline-style":[{outline:[``,...oe()]}],"outline-offset":[{"outline-offset":[D,O]}],"outline-w":[{outline:[D,de]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:re()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[_]}],"ring-offset-w":[{"ring-offset":[D,de]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:[``,`inner`,`none`,k,xe]}],"shadow-color":[{shadow:[Se]}],opacity:[{opacity:[_]}],"mix-blend":[{"mix-blend":se()}],"bg-blend":[{"bg-blend":se()}],filter:[{filter:[``,`none`]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[c]}],"drop-shadow":[{"drop-shadow":[``,`none`,k,O]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":[``,`none`]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[c]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[_]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":[o]}],"border-spacing-x":[{"border-spacing-x":[o]}],"border-spacing-y":[{"border-spacing-y":[o]}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[`none`,`all`,``,`colors`,`opacity`,`shadow`,`transform`,O]}],duration:[{duration:ye()}],ease:[{ease:[`linear`,`in`,`out`,`in-out`,O]}],delay:[{delay:ye()}],animate:[{animate:[`none`,`spin`,`ping`,`pulse`,`bounce`,O]}],transform:[{transform:[``,`gpu`,`none`]}],scale:[{scale:[b]}],"scale-x":[{"scale-x":[b]}],"scale-y":[{"scale-y":[b]}],rotate:[{rotate:[me,O]}],"translate-x":[{"translate-x":[w]}],"translate-y":[{"translate-y":[w]}],"skew-x":[{"skew-x":[S]}],"skew-y":[{"skew-y":[S]}],"transform-origin":[{origin:[`center`,`top`,`top-right`,`right`,`bottom-right`,`bottom`,`bottom-left`,`left`,`top-left`,O]}],accent:[{accent:[`auto`,e]}],appearance:[{appearance:[`none`,`auto`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom
1-in`,`zoom-out`,O]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":[`none`,`auto`]}],resize:[{resize:[`none`,`y`,`x`,``]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,O]}],fill:[{fill:[e,`none`]}],"stroke-w":[{stroke:[D,de,pe]}],stroke:[{stroke:[e,`none`]}],sr:[`sr-only`,`not-sr-only`],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-s`,`border-w-e`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]}}}var ke=T(Oe);function Ae(...e){return ke(o(e))}var A=a(),j=e(i(),1),je=(0,j.createContext)({});function Me(e){let t=(0,j.useRef)(null);return t.current===null&&(t.current=e()),t.current}var Ne=typeof window<`u`?j.useLayoutEffect:j.useEffect,Pe=(0,j.createContext)(null);function Fe(e,t){e.indexOf(t)===-1&&e.push(t)}function Ie(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var M=(e,t,n)=>n>t?t:n<e?e:n,Le={},Re=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ze=e=>typeof e==`object`&&!!e,Be=e=>/^0[^.\s]+$/u.test(e);function Ve(e){let t;return()=>(t===void 0&&(t=e()),t)}var N=e=>e,He=(...e)=>e.reduce((e,t)=>
1n=>t(e(n))),Ue=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},We=class{constructor(){this.subscriptions=[]}add(e){return Fe(this.subscriptions,e),()=>Ie(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}},P=e=>e*1e3,F=e=>e/1e3,Ge=(e,t)=>t?1e3/t*e:0,Ke=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,qe=1e-7,Je=12;function Ye(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Ke(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>qe&&++s<Je);return o}function Xe(e,t,n,r){if(e===t&&n===r)return N;let i=t=>Ye(t,0,1,e,n);return e=>e===0||e===1?e:Ke(i(e),t,r)}var Ze=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Qe=e=>t=>1-e(1-t),$e=Xe(.33,1.53,.69,.99),et=Qe($e),tt=Ze(et),nt=e=>e>=1?1:(e*=2)<1?.5*et(e):.5*(2-2**(-10*(e-1))),rt=e=>1-Math.sin(Math.acos(e)),it=Qe(rt),at=Ze(rt),ot=Xe(.42,0,1,1),st=Xe(0,0,.58,1),ct=Xe(.42,0,.58,1),lt=e=>Array.isArray(e)&&typeof e[0]!=`number`,ut=e=>Array.isArray(e)&&typeof e[0]==`number`,dt={linear:N,easeIn:ot,easeInOut:ct,easeOut:st,circIn:rt,circInOut:at,circOut:it,backIn:et,backInOut:tt,backOut:$e,anticipate:nt},ft=e=>typeof e==`string`,pt=e=>{if(ut(e)){e.length;let[t,n,r,i]=e;return Xe(t,n,r,i)}else if(ft(e))return dt[e],`${e}`,dt[e];return e},mt=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function ht(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 gt=40;function _t(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=mt.reduce((e,t)=>(e[t]=ht(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=Le.useManualTiming,o=a?i.timestamp:performance.now();n=!1,a||(i.delta=r?1e3/60:Math.max(Math.min(o-i.timestamp,gt),1)),i.timestamp=o,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:mt.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<mt.length;t++)o[mt[t]].cancel(e)},state:i,steps:o}}var{schedule:I,cancel:L,state:R,steps:vt}=_t(typeof requestAnimationFrame<`u`?requestAnimationFrame:N,!0),yt;function bt(){yt=void 0}var z={now:()=>(yt===void 0&&z.set(R.isProcessing||Le.useManualTiming?R.timestamp:performance.now()),yt),set:e=>{yt=e,queueMicrotask(bt)}},xt=e=>t=>typeof t==`string`&&t.startsWith(e),St=xt(`--`),Ct=xt(`var(--`),wt=e=>Ct(e)?Tt.test(e.split(`/*`)[0].trim()):!1,Tt=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Et(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var Dt={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},Ot={...Dt,transform:e=>M(0,1,e)},kt={...Dt,default:1},At=e=>Math.round(e*1e5)/1e5,jt=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Mt(e){return e==null}var Nt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Pt=(e,t)=>n=>!!(typeof n==`string`&&Nt.test(n)&&n.startsWith(e)||t&&!Mt(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ft=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(jt);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},It=e=>M(0,255,e),Lt={...Dt,transform:e=>Math.round(It(e))},Rt={test:Pt(`rgb`,`red`),parse:Ft(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+Lt.transform(e)+`, `+Lt.transform(t)+`, `+Lt.transform(n)+`, `+At(Ot.transform(r))+`)`};function zt(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),alph
1a:i?parseInt(i,16)/255:1}}var Bt={test:Pt(`#`),parse:zt,transform:Rt.transform},Vt=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),B=Vt(`deg`),V=Vt(`%`),H=Vt(`px`),Ht=Vt(`vh`),Ut=Vt(`vw`),Wt={...V,parse:e=>V.parse(e)/100,transform:e=>V.transform(e*100)},Gt={test:Pt(`hsl`,`hue`),parse:Ft(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+V.transform(At(t))+`, `+V.transform(At(n))+`, `+At(Ot.transform(r))+`)`},U={test:e=>Rt.test(e)||Bt.test(e)||Gt.test(e),parse:e=>Rt.test(e)?Rt.parse(e):Gt.test(e)?Gt.parse(e):Bt.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?Rt.transform(e):Gt.transform(e),getAnimatableNone:e=>{let t=U.parse(e);return t.alpha=0,U.transform(t)}},Kt=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function qt(e){return isNaN(e)&&typeof e==`string`&&(e.match(jt)?.length||0)+(e.match(Kt)?.length||0)>0}var Jt=`number`,Yt=`color`,Xt=`var`,Zt=`var(`,Qt="${}",$t=/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 en(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace($t,e=>(U.test(e)?(r.color.push(a),i.push(Yt),n.push(U.parse(e))):e.startsWith(Zt)?(r.var.push(a),i.push(Xt),n.push(e)):(r.number.push(a),i.push(Jt),n.push(parseFloat(e))),++a,Qt)).split(Qt),indexes:r,types:i}}function tn(e){return en(e).values}function nn({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===Jt?i+=At(r[a]):e===Yt?i+=U.transform(r[a]):i+=r[a]}return i}}function rn(e){return nn(en(e))}var an=e=>typeof e==`number`?0:U.test(e)?U.getAnimatableNone(e):e,on=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:an(e);function sn(e){let t=en(e);return nn(t)(t.values.map((e,n)=>on(e,t.split[n])))}var W={test:qt,parse:tn,createTransformer:rn,getAnimatableNone:sn};function cn(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 ln({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=cn(s,r,e+1/3),a=cn(s,r,e),o=cn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function un(e,t){return n=>n>0?t:e}var G=(e,t,n)=>e+(t-e)*n,dn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},fn=[Bt,Rt,Gt],pn=e=>fn.find(t=>t.test(e));function mn(e){let t=pn(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===Gt&&(n=ln(n)),n}var hn=(e,t)=>{let n=mn(e),r=mn(t);if(!n||!r)return un(e,t);let i={...n};return e=>(i.red=dn(n.red,r.red,e),i.green=dn(n.green,r.green,e),i.blue=dn(n.blue,r.blue,e),i.alpha=G(n.alpha,r.alpha,e),Rt.transform(i))},gn=new Set([`none`,`hidden`]);function _n(e,t){return gn.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function vn(e,t){return n=>G(e,t,n)}function yn(e){return typeof e==`number`?vn:typeof e==`string`?wt(e)?un:U.test(e)?hn:Cn:Array.isArray(e)?bn:typeof e==`object`?U.test(e)?hn:xn:un}function bn(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>yn(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function xn(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=yn(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function Sn(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 Cn=(e,t)=>{let n=W.createTransformer(t),r=en(e),i=en(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?gn.has(e)&&!i.values.length||gn.has(t)&&!r.values.length?_n(e,t):He(bn(Sn(r,i),i.values),n):(`${e}${t}`,un(e,t))};function wn(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`
1number`?G(e,t,n):yn(e)(e,t)}var Tn=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>I.update(t,e),stop:()=>L(t),now:()=>R.isProcessing?R.timestamp:z.now()}},En=(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)})`},Dn=2e4;function On(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 kn(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(On(r),Dn);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:F(i)}}var K={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 An(e,t){return e*Math.sqrt(1-t*t)}var jn=12;function Mn(e,t,n){let r=n;for(let n=1;n<jn;n++)r-=e(r)/t(r);return r}var Nn=.001;function Pn({duration:e=K.duration,bounce:t=K.bounce,velocity:n=K.velocity,mass:r=K.mass}){let i,a;K.maxDuration;let o=1-t;o=M(K.minDamping,K.maxDamping,o),e=M(K.minDuration,K.maxDuration,F(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=An(t,o),c=Math.exp(-i);return Nn-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=An(t**2,o);return(-i(t)+Nn>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=Mn(i,a,s);if(e=P(e),isNaN(c))return{stiffness:K.stiffness,damping:K.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var Fn=[`duration`,`bounce`],In=[`stiffness`,`damping`,`mass`];function Ln(e,t){return t.some(t=>e[t]!==void 0)}function Rn(e){let t={velocity:K.velocity,stiffness:K.stiffness,damping:K.damping,mass:K.mass,isResolvedFromDuration:!1,...e};if(!Ln(e,In)&&Ln(e,Fn))if(t.velocity=0,e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*M(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:K.mass,stiffness:i,damping:a}}else{let n=Pn({...e,velocity:0});t={...t,...n,mass:K.mass},t.isResolvedFromDuration=!0}return t}function zn(e=K.visualDuration,t=K.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}=Rn({...n,velocity:-F(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=F(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?K.restSpeed.granular:K.restSpeed.default,i||=v?K.restDelta.granular:K.restDelta.default;let y,b,x,S,C,w;if(h<1)x=An(_,h),S=(m+h*_*g)/x,y=e=>{let t=Math.exp(-h*_*e);return o-t*(S*Math.sin(x*e)+g*Math.cos(x*e))},C=h*_*S+g*x,w=h*_*g-S*x,b=e=>Math.exp(-h*_*e)*(C*Math.sin(x*e)+w*Math.cos(x*e));else if(h===1){y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);let e=m+_*g;b=t=>Math.exp(-_*t)*(_*e*t-m)}else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e};let t=(m+h*_*g)/e,n=h*_*t-g*e,r=h*_*g-t*e;b=t=>{let i=Math.exp(-h*_*t),a=Math.min(e*t,300);return i*(n*Math.sinh(a)+r*Math.cosh(a))}}let ee={calculatedDuration:p&&d||null,velocity:e=>P(b(e)),next:e=>{if(!p&&h<1){let t=Math.exp(-h*_*e),n=Math.sin(x*e),a=Math.cos(x*e),c=o-t*(S*n+g*a),l=P(t*(C*n+w*a));return s.done=Math.abs(l)<=r&&Math.abs(o-c)<=i,s.value=s.done?o:c,s}let t=y(e);if(p)s.done=e>=d;else{let n=P(b(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(On(ee),Dn),t=En(t=>ee.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return ee}zn.applyToOptions=e=>{let t=kn(e,100,zn);return e.ease=t.ease,e.duration=P(t.duration),e.type=`keyframes`,e};var Bn=5;function Vn(e,t,n){let r=Math.max(t-Bn,0);return Ge(n-e(r),t-r)}function Hn({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=zn({keyframes:[f.value,m(f.value)],velocity:Vn(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 Un(e,t,n){let r=[],i=n||Le.mix||wn,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=He(Array.isArray(t)?t[n]||N:t,a)),r.push(a)}return r}function Wn(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Un(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=Ue(e[r],e[r+1],n);return s[r](i)};return n?t=>l(M(e[0],e[a-1],t)):l}function Gn(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Ue(0,t,r);e.push(G(n,1,i))}}function Kn(e){let t=[0];return Gn(t,e.length-1),t}function qn(e,t){return e.map(e=>e*t)}function Jn(e,t){return e.map(()=>t||ct).splice(0,e.length-1)}function Yn({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=lt(r)?r.map(pt):pt(r),a={done:!1,value:t[0]},o=Wn(qn(n&&n.length===t.length?n:Kn(t),e),t,{ease:Array.isArray(i)?i:Jn(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Xn=e=>e!==null;function Zn(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Xn),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var Qn={decay:Hn,inertia:Hn,tween:Yn,keyframes:Yn,spring:zn};function $n(e){typeof e.type==`string`&&(e.type=Qn[e.type])}var er=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)}},tr=e=>e/100,nr=class extends er{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!==z.now()&&this.tick(z.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;$n(e);let{type:t=Yn,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Yn;s!==Yn&&typeof o[0]!=`number`&&(this.mixKeyframes=He(tr,wn(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=On(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:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=M(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Hn&&(b.value=Zn(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return F(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+F(e)}get time(){return F(this.currentTime)}set time(e){e=P(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 Vn(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(z.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=F(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=Tn,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(z.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 rr(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var ir=e=>e*180/Math.PI,ar=e=>sr(ir(Math.atan2(e[1],e[0]))),or={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ar,rotateZ:ar,skewX:e=>ir(Math.atan(e[1])),skewY:e=>ir(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},sr=e=>(e%=360,e<0&&(e+=360),e),cr=ar,lr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ur=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),dr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:lr,scaleY:ur,scale:e=>(lr(e)+ur(e))/2,rotateX:e=>sr(ir(Math.atan2(e[6],e[5]))),rotateY:e=>sr(ir(Math.atan2(-e[2],e[0]))),rotateZ:cr,rotate:cr,skewX:e=>ir(Math.atan(e[4])),skewY:e=>ir(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function fr(e){return+!!e.includes(`scale`)}
1function pr(e,t){if(!e||e===`none`)return fr(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=dr,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=or,i=t}if(!i)return fr(t);let a=r[t],o=i[1].split(`,`).map(hr);return typeof a==`function`?a(o):o[a]}var mr=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return pr(n,t)};function hr(e){return parseFloat(e.trim())}var gr=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],_r=new Set([...gr,`pathRotation`]),vr=e=>e===Dt||e===H,yr=new Set([`x`,`y`,`z`]),br=gr.filter(e=>!yr.has(e));function xr(e){let t=[];return br.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var Sr={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})=>pr(t,`x`),y:(e,{transform:t})=>pr(t,`y`)};Sr.translateX=Sr.x,Sr.translateY=Sr.y;var Cr=new Set,wr=!1,Tr=!1,Er=!1;function Dr(){if(Tr){let e=Array.from(Cr).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=xr(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)})}Tr=!1,wr=!1,Cr.forEach(e=>e.complete(Er)),Cr.clear()}function Or(){Cr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tr=!0)})}function kr(){Er=!0,Or(),Dr(),Er=!1}var Ar=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?(Cr.add(this),wr||(wr=!0,I.read(Or),I.resolveKeyframes(Dr))):(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])}rr(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Cr.delete(this)}cancel(){this.state===`scheduled`&&(Cr.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},jr=e=>e.startsWith(`--`);function Mr(e,t,n){jr(t)?e.style.setProperty(t,n):e.style[t]=n}var Nr={};function Pr(e,t){let n=Ve(e);return()=>Nr[t]??n()}var Fr=Pr(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Ir=Pr(()=>{try{document.createElement(`div`).animate({opacity:0}
1,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Lr=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Rr={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Lr([0,.65,.55,1]),circOut:Lr([.55,0,1,.45]),backIn:Lr([.31,.01,.66,-.59]),backOut:Lr([.33,1.53,.69,.99])};function zr(e,t){if(e)return typeof e==`function`?Ir()?En(e,t):`ease-out`:ut(e)?Lr(e):Array.isArray(e)?e.map(e=>zr(e,t)||Rr.easeOut):Rr[e]}function Br(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=zr(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 Vr(e){return typeof e==`function`&&`applyToOptions`in e}function Hr({type:e,...t}){return Vr(e)&&Ir()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var Ur=class extends er{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=Hr(e);this.animation=Br(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Zn(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Mr(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 F(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+F(e)}get time(){return F(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=P(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:`f
1inished`}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&&Fr()?(this.animation.timeline=e,t&&(this.animation.rangeStart=t),n&&(this.animation.rangeEnd=n),N):r(this)}},Wr={anticipate:nt,backInOut:tt,circInOut:at};function Gr(e){return e in Wr}function Kr(e){typeof e.ease==`string`&&Gr(e.ease)&&(e.ease=Wr[e.ease])}var qr=10,Jr=class extends Ur{constructor(e){Kr(e),$n(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new nr({...a,autoplay:!1}),s=Math.max(qr,z.now()-this.startTime),c=M(0,qr,s-qr),l=o.sample(s).value,{name:u}=this.options;i&&u&&Mr(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},Yr=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(W.test(e)||e===`0`)&&!e.startsWith(`url(`));function Xr(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 Zr(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=Yr(i,t),s=Yr(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:Xr(e)||(n===`spring`||Vr(n))&&r}function Qr(e){e.duration=0,e.type=`keyframes`}var $r=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),ei=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ti(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&ei.test(e[t]))return!0;return!1}var ni=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),ri=Ve(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function ii(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e,c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return ri()&&n&&($r.has(n)||ni.has(n)&&ti(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var ai=40,oi=class extends er{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=z.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||Ar;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:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=z.now();let u=!0;Zr(e,i,a,o)||(u=!1,(Le.instantAnimations||!s)&&l?.(Zn(e,n,t)),e[0]=e[e.length-1],Qr(n),n.repeat=0);let d={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>ai?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},f=u&&!c&&ii(d),p=d.motionValue?.owner?.current,m;if(f)try{m=new Jr({...d,element:p})}catch{m=new nr(d)}else m=new nr(d);m.finished.then(()=>{this.notifyFinished()}).catch(N),this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}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(),kr()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function si(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>
1e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var ci=30,li=e=>!isNaN(parseFloat(e)),ui={current:void 0},di=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=z.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=z.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=li(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 We);let n=this.events[e].add(t);return e===`change`?()=>{n(),I.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 ui.current&&ui.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=z.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>ci)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,ci);return Ge(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 fi(e,t){return new di(e,t)}function pi(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function mi(e,t){let n=e?.[t]??e?.default??e;return n===e?n:pi(n,e)}var hi={type:`spring`,stiffness:500,damping:25,restSpeed:10},gi=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),_i={type:`keyframes`,duration:.8},vi={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},yi=(e,{keyframes:t})=>t.length>2?_i:_r.has(e)?e.startsWith(`scale`)?gi(t[1]):hi:vi,bi=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function xi(e){for(let t in e)if(!bi.has(t))return!0;return!1}var Si=(e,t,n,r={},i,a)=>o=>{let s=mi(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=P(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};xi(s)||Object.assign(u,yi(e,u)),u.duration&&=P(u.duration),u.repeatDelay&&=P(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(Qr(u),u.delay===0&&(d=!0)),(Le.instantAnimations||Le.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,Qr(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Zn(u.keyframes,s);if(e!==void 0){I.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new nr(u):new oi(u)},Ci=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wi(e){let t=Ci.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Ti(e,t,n=1){`${e}`;let[r,i]=wi(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return Re(e)?parseFloat(e):e}return wt(i)?Ti(i,t,n+1):i}function Ei(e){let t=[{},{}];
1return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Di(e,t,n,r){if(typeof t==`function`){let[i,a]=Ei(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]=Ei(r);t=t(n===void 0?e.custom:n,i,a)}return t}function Oi(e,t,n){let r=e.getProps();return Di(r,t,n===void 0?r.custom:n,e)}var ki=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...gr]),Ai=e=>Array.isArray(e);function ji(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fi(n))}function Mi(e){return Ai(e)?e[e.length-1]||0:e}function Ni(e,t){let{transitionEnd:n={},transition:r={},...i}=Oi(e,t)||{};i={...i,...n};for(let t in i)ji(e,t,Mi(i[t]))}var q=e=>!!(e&&e.getVelocity);function Pi(e){return!!(q(e)&&e.add)}function Fi(e,t){let n=e.getValue(`willChange`);if(Pi(n))return n.add(t);if(!n&&Le.WillChange){let n=new Le.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function Ii(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var Li=`data-`+Ii(`framerAppearId`);function Ri(e){return e.props[Li]}function zi({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Bi(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?pi(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&&zi(f,t))continue;let o={delay:n,...mi(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){I.update(()=>r.set(i));continue}let p=!1;if(window.MotionHandoffAnimation){let n=Ri(e);if(n){let e=window.MotionHandoffAnimation(n,t,I);e!==null&&(o.startTime=e,p=!0)}}Fi(e,t);let m=l??e.shouldReduceMotion;r.start(Si(t,r,i,m&&ki.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>I.update(()=>{o&&Ni(e,o)});d.length?Promise.all(d).then(t):t()}return d}function Vi(e,t,n={}){let r=Oi(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(Bi(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return Hi(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}else return Promise.all([a(),o(n.delay)])}function Hi(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(Vi(c,t,{...o,delay:n+(typeof r==`function`?0:r)+si(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function Ui(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>Vi(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=Vi(e,t,n);else{let i=typeof t==`function`?Oi(e,t,n.custom):t;r=Promise.all(Bi(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var Wi={test:e=>e===`auto`,parse:e=>e},Gi=e=>t=>t.test(e),Ki=[Dt,H,V,B,Ut,Ht,Wi],qi=e=>Ki.find(Gi(e));function Ji(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||Be(e)}var Yi=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function Xi(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(jt)||[];if(!r)return e;let i=n.replace(r,``),a=+!!Yi.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var Zi=/\b([a-z-]*)\(.*?\)/gu,Qi={...W,getAnimatableNone:e=>{let t=e.match(Zi);return t?t.map(Xi).join(` `):e}},$i={...W,getAnimatableNone:e=>{let t=W.parse(e);return W.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},ea={...Dt,transform:Math.round},ta={borderWidth:H,borderTopWidth:H,borderRightWidth:H,borderBottomWidth:H,borderLeftWidth:H,borderRadius:H,borderTopLeftRadius:H,borderTopRightRadius:H,borderBottomRightRadius:H,borderBottomLeftRadius:H,width:H,maxWidth:H,height:H,maxHeight:H,top:H,right:H,bottom:H,left:H,inset:H,insetBlock:H,insetBlockStart:H,insetBlockEnd:H,insetInline:H,insetInlineStart:H,insetInlineEnd:H,padding:H,paddingTop:H,paddingRight:H,paddingBottom:H,paddingLeft:H,paddingBlock:H,paddingBlockStart:H,paddingBlockEnd:H,paddingInline:H,paddingInlineStart:H,paddingInlineEnd:H,margin:H,marginTop:H,marginRight:H,marginBottom:H,marginLeft:H,marginBlock:H,marginBlockStart:H,marginBlockEnd:H,marginInline:H,marginInlineStart:H,marginInlineEnd:H,fontSize:H,backgroundPositionX:H,backgroundPositionY:H,rotate:B,pathRotation:B,rotateX:B,rotateY:B,rotateZ:B,scale:kt,scaleX:kt,scaleY:kt,scaleZ:kt,skew:B,skewX:B,skewY:B,distance:H,translateX:H,translateY:H,translateZ:H,x:H,y:H,z:H,perspective:H,transformPerspective:H,opacity:Ot,originX:Wt,originY:Wt,originZ:H,zIndex:ea,fillOpacity:Ot,strokeOpacity:Ot,numOctaves:ea},na={...ta,color:U,backgroundColor:U,outlineColor:U,fill:U,stroke:U,borderColor:U,borderTopColor:U,borderRightColor:U,borderBottomColor:U,borderLeftColor:U,filter:Qi,WebkitFilter:Qi,mask:$i,WebkitMask:$i},ra=e=>na[e],ia=new Set([Qi,$i]);function aa(e,t){let n=ra(e);return ia.has(n)||(n=W),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var oa=new Set([`auto`,`none`,`0`]);function sa(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!oa.has(t)&&en(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=aa(n,i)}var ca=class extends Ar{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(),wt(r))){let i=Ti(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!ki.has(n)||e.length!==2)return;let[r,i]=e,a=qi(r),o=qi(i);if(Et(r)!==Et(i)&&Sr[n]){this.needsMeasurement=!0;return}if(a!==o)if(vr(a)&&vr(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Sr[n]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||Ji(e[t]))&&n.push(t);n.length&&sa(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=Sr[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]=Sr[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
1h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},la=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`];function ua(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 da=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function fa(e){return ze(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}var{schedule:pa,cancel:ma}=_t(queueMicrotask,!1),J={x:!1,y:!1};function ha(){return J.x||J.y}function ga(e){return e===`x`||e===`y`?J[e]?null:(J[e]=!0,()=>{J[e]=!1}):J.x||J.y?null:(J.x=J.y=!0,()=>{J.x=J.y=!1})}function _a(e,t){let n=ua(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function va(e){return!(e.pointerType===`touch`||ha())}function ya(e,t,n={}){let[r,i,a]=_a(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!va(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var ba=(e,t)=>t?e===t||ba(e,t.parentElement):!1,xa=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Sa=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ca(e){return Sa.has(e.tagName)||e.isContentEditable===!0}var wa=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function Ta(e){return wa.has(e.tagName)||e.isContentEditable===!0}var Ea=new WeakSet;function Da(e){return t=>{t.key===`Enter`&&e(t)}}function Oa(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var ka=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Da(()=>{if(Ea.has(n))return;Oa(n,`down`);let e=Da(()=>{Oa(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Oa(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Aa(e){return xa(e)&&!ha()}var ja=new WeakSet;function Ma(e,t,n={}){let[r,i,a]=_a(e,n),o=e=>{let r=e.currentTarget;if(!Aa(e)||ja.has(e))return;Ea.add(r),n.stopPropagation&&ja.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Ea.has(r)&&Ea.delete(r),Aa(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||ba(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),fa(e)&&(e.addEventListener(`focus`,e=>ka(e,i)),!Ca(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function Na(e){return ze(e)&&`ownerSVGElement`in e}var Pa=new WeakMap,Fa,Ia=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Na(r)&&`getBBox`in r?r.getBBox()[t]:r[n],La=Ia(`inline`,`width`,`offsetWidth`),Ra=Ia(`block`,`height`,`offsetHeight`);function za({target:e,borderBoxSize:t}){Pa.get(e)?.forEach(n=>{n(e,{get width(){return La(e,t)},get height(){return Ra(e,t)}})})}function Ba(e){e.forEach(za)}function Va(){typeof ResizeObserver>`u`||(Fa=new ResizeObserver(Ba))}function Ha(e,t){Fa||Va();let n=ua(e);return n.forEach(e=>{let n=Pa.get(e);n||(n=new Set,Pa.set(e,n)),n.add(t),Fa?.observe(e)}),()=>{n.forEach(e=>{let n=Pa.get(e);n?.delete(t),n?.size||Fa?.unobserve(e)})}}var Ua=new Set,Wa;function Ga(){Wa=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Ua.forEach(t=>t(e))},window.addEventListener(`resize`,Wa)}function Ka(e){return Ua.add(e),Wa||Ga(),()=>{Ua.delete(e),!Ua.size&&typeof Wa==`function`&&(window.removeEventListener(`resize`,Wa),Wa=void 0)}}function qa(e,t){return typeof e==`function`?Ka(e):Ha(e,t)}var Ja={value:null,addProjectionMetrics:null};function Ya(e){return Na(e)&&e.tagName===`svg`}var Xa=[...Ki,U,W],Za=e=>Xa.find(Gi(e)),Qa=()=>({translate:0,scale:1,origin:0,originPoint:0}),$a=()=>({x:Qa(),y:Qa()}),eo=()=>({min:0,max:0}),Y=()=>({x:eo(),y:eo()}),to=new WeakMap;function no(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function ro(e){return typeof e==`string`||Array.isArray(e)}var io=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],ao=[`initial`,...io];function oo(e){return no(e.animate)||ao.some(t=>ro(e[t]))}function so(e){return!!(oo(e)||e.variants)}function co(e,t,n){for(let r in t){let i=t[r],a=n[r];if(q(i))e.addValue(r,i);else if(q(a))e.addValue(r,fi(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,fi(t===void 0?i:t,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var lo={current:null},uo={current:!1},fo=typeof window<`u`;function po(){if(uo.current=!0,fo)if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>lo.current=e.matches;e.addEventListener(`change`,t),t()}else lo.current=!1}var mo=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],ho={};function go(e){ho=e}function _o(){return ho}var vo=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=Ar,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=z.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,I.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=oo(t),this.isVariantNode=so(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&&q(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,to.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(uo.current||po(),this.shouldReduceMotion=lo.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(),L(this.notifyUpdate),L(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&&$r.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new Ur({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:P(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=_r.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&I.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 ho){let t=ho[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):Y()}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<mo.length;t++){let n=mo[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=co(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=fi(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`&&(Re(n)||Be(n))?n=parseFloat(n):!Za(n)&&W.test(t)&&(n=aa(e,t)),this.setBaseTarget(e,q(n)?n.get():n)),q(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=Di(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&&!q(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 We),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){pa.render(this.render)}},yo=class extends vo{constructor(){super(...arguments),this.KeyframeResolver=ca}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;q(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},bo=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function xo({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function So({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Co(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 wo(e){return e===void 0||e===1}function To({scale:e,scaleX:t,scaleY:n}){return!wo(e)||!wo(t)||!wo(n)}function Eo(e){return To(e)||Do(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Do(e){return Oo(e.x)||Oo(e.y)}function Oo(e){return e&&e!==`0%`}function ko(e,t,n){return n+t*(e-n)}function Ao(e,t,n,r,i){return i!==void 0&&(e=ko(e,i,r)),ko(e,n,r)+t}function jo(e,t=0,n=1,r,i){e.min=Ao(e.min,t,n,r,i),e.max=Ao(e.max,t,n,r,i)}function Mo(e,{x:t,y:n}){jo(e.x,t.translate,t.scale,t.originPoint),jo(e.y,n.translate,n.scale,n.originPoint)}var No=.999999999999,Po=1.0000000000001;function Fo(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(X(e.x,-a.scroll.offset.x),X(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Mo(e,o)),r&&Eo(a.latestValues)&&Ro(e,a.latestValues,a.layout?.layoutBox))}t.x<Po&&t.x>No&&(t.x=1),t.y<Po&&t.y>No&&(t.y=1)}function X(e,t){e.min+=t,e.max+=t}function Io(e,t,n,r,i=.5){jo(e,t,n,G(e.min,e.max,i),r)}function Lo(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}
1function Ro(e,t,n){let r=n??e;Io(e.x,Lo(t.x,r.x),t.scaleX,t.scale,t.originX),Io(e.y,Lo(t.y,r.y),t.scaleY,t.scale,t.originY)}function zo(e,t){return xo(Co(e.getBoundingClientRect(),t))}function Bo(e,t,n){let r=zo(e,n),{scroll:i}=t;return i&&(X(r.x,i.offset.x),X(r.y,i.offset.y)),r}var Vo={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Ho=gr.length;function Uo(e,t,n){let r=``,i=!0;for(let a=0;a<Ho;a++){let o=gr[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=da(s,ta[o]);if(!c){i=!1;let t=Vo[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${da(a,ta.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Wo(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(_r.has(e)){o=!0;continue}else if(St(e)){i[e]=n;continue}else{let t=da(n,ta[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Uo(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 Go(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 Ko(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var qo={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`)if(H.test(e))e=parseFloat(e);else return e;return`${Ko(e,t.target.x)}% ${Ko(e,t.target.y)}%`}},Jo={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=W.parse(e);if(i.length>5)return r;let a=W.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=G(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},Yo={borderRadius:{...qo,applyTo:[...la]},borderTopLeftRadius:qo,borderTopRightRadius:qo,borderBottomLeftRadius:qo,borderBottomRightRadius:qo,boxShadow:Jo};function Xo(e,{layout:t,layoutId:n}){return _r.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Yo[e]||e===`opacity`)}function Zo(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(q(r[t])||i&&q(i[t])||Xo(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Qo(e){return window.getComputedStyle(e)}var $o=class extends yo{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Go}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(_r.has(t))return this.projection?.isProjecting?fr(t):mr(e,t);{let n=Qo(e),r=(St(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return zo(e,t)}build(e,t,n){Wo(e,t,n.transformTemplate)}
1scrapeMotionValuesFromProps(e,t,n){return Zo(e,t,n)}},es={offset:`stroke-dashoffset`,array:`stroke-dasharray`},ts={offset:`strokeDashoffset`,array:`strokeDasharray`};function ns(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?es:ts;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var rs=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function is(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Wo(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 rs)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&&ns(d,i,a,o,!1)}var as=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`]),os=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function ss(e,t,n,r){Go(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(as.has(n)?n:Ii(n),t.attrs[n])}function cs(e,t,n){let r=Zo(e,t,n);for(let n in e)if(q(e[n])||q(t[n])){let t=gr.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var ls=class extends yo{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Y}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(_r.has(t)){let e=ra(t);return e&&e.default||0}return t=as.has(t)?t:Ii(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return cs(e,t,n)}
1build(e,t,n){is(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){ss(e,t,n,r)}mount(e){this.isSVGTag=os(e.tagName),super.mount(e)}},us=ao.length;function ds(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&ds(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<us;n++){let r=ao[n],i=e.props[r];(ro(i)||i===!1)&&(t[r]=i)}return t}function fs(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var ps=[...io].reverse(),ms=io.length;function hs(e){return t=>Promise.all(t.map(({animation:t,options:n})=>Ui(e,t,n)))}function gs(e){let t=hs(e),n=ys(),r=!0,i=!1,a=t=>(n,r)=>{let i=Oi(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function o(n){t=n(e)}function s(o){let{props:s}=e,c=ds(e.parent)||{},l=[],u=new Set,d={},f=1/0;for(let t=0;t<ms;t++){let p=ps[t],m=n[p],h=s[p]===void 0?c[p]:s[p],g=ro(h),_=p===o?m.isActive:null;_===!1&&(f=t);let v=h===c[p]&&h!==s[p]&&g;if(v&&(r||i)&&e.manuallyAnimateOnMount&&(v=!1),m.protectedKeys={...d},!m.isActive&&_===null||!h&&!m.prevProp||no(h)||typeof h==`boolean`)continue;if(p===`exit`&&m.isActive&&_!==!0){m.prevResolvedValues&&(d={...d,...m.prevResolvedValues});continue}let y=_s(m.prevProp,h),b=y||p===o&&m.isActive&&!v&&g||t>f&&g,x=!1,S=Array.isArray(h)?h:[h],C=S.reduce(a(p),{});_===!1&&(C={});let{prevResolvedValues:w={}}=m,ee={...w,...C},te=t=>{b=!0,u.has(t)&&(x=!0,u.delete(t)),m.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in ee){let t=C[e],n=w[e];if(d.hasOwnProperty(e))continue;let r=!1;r=Ai(t)&&Ai(n)?!fs(t,n)||y:t!==n,r?t==null?u.add(e):te(e):t!==void 0&&u.has(e)?te(e):m.protectedKeys[e]=!0}m.prevProp=h,m.prevResolvedValues=C,m.isActive&&(d={...d,...C}),(r||i)&&e.blockInitialAnimation&&(b=!1);let ne=v&&y;b&&(!ne||x)&&l.push(...S.map(t=>{let n={type:p};if(typeof t==`string`&&(r||i)&&!ne&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=Oi(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=si(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(u.size){let t={};if(typeof s.initial!=`boolean`){let n=Oi(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}u.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),l.push({animation:t})}let p=!!l.length;return r&&(s.initial===!1||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(p=!1),r=!1,i=!1,p?t(l):Promise.resolve()}function c(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=s(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:s,setActive:c,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ys(),i=!0}}}function _s(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!fs(t,e):!1}function vs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ys(){return{animate:vs(!0),whileInView:vs(),whileHover:vs(),whileTap:vs(),whileDrag:vs(),whileFocus:vs(),exit:vs()}}function bs(e,t){e.min=t.min,e.max=t.max}function Z(e,t){bs(e.x,t.x),bs(e.y,t.y)}function xs(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var Ss=.9999,Cs=1.0001,ws=-.01,Ts=.01;function Q(e){return e.max-e.min}function Es(e,t,n){return Math.abs(e-t)<=n}function Ds(e,t,n,r=.5){e.origin=r,e.originPoint=G(t.min,t.max,e.origin),e.scale=Q(n)/Q(t),e.translate=G(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ss&&e.scale<=Cs||isNaN(e.scale))&&(e.scale=1),(e.translate>=ws&&e.translate<=Ts||isNaN(e.translate))&&(e.translate=0)}function Os(e,t,n,r){Ds(e.x,t.x,n.x,r?r.originX:void 0),Ds(e.y,t.y,n.y,r?r.originY:void 0)}function ks(e,t,n,r=0){e.min=(r?G(n.min,n.max,r):n.min)+t.min,e.max=e.min+Q(t)}function As(e,t,n,r){ks(e.x,t.x,n.x,r?.x),ks(e.y,t.y,n.y,r?.y)}function js(e,t,n,r=0){let i=r?G(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+Q(t)}function Ms(e,t,n,r){js(e.x,t.x,n.x,r?.x),js(e.y,t.y,n.y,r?.y)}function Ns(e,t,n,r,i){return e-=t,e=ko(e,1/n,r),i!==void 0&&(e=ko(e,1/i,r)),e}function Ps(e,t=0,n=1,r=.5,i,a=e,o=e){if(V.test(t)&&(t=parseFloat(t),t=G(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=G(a.min,a.max,r);e===a&&(s-=t),e.min=Ns(e.min,t,n,s,i),e.max=Ns(e.max,t,n,s,i)}function Fs(e,t,[n,r,i],a,o){Ps(e,t[n],t[r],t[i],t.scale,a,o)}var Is=[`x`,`scaleX`,`originX`],Ls=[`y`,`scaleY`,`originY`];function Rs(e,t,n,r){Fs(e.x,t,Is,n?n.x:void 0,r?r.x:void 0),Fs(e.y,t,Ls,n?n.y:void 0,r?r.y:void 0)}function zs(e){return e.translate===0&&e.scale===1}function Bs(e){return zs(e.x)&&zs(e.y)}function Vs(e,t){return e.min===t.min&&e.max===t.max}function Hs(e,t){return Vs(e.x,t.x)&&Vs(e.y,t.y)}function Us(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ws(e,t){return Us(e.x,t.x)&&Us(e.y,t.y)}function Gs(e){return Q(e.x)/Q(e.y)}function Ks(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function $(e){return[e(`x`),e(`y`)]}
1function qs(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Js=la.length,Ys=e=>typeof e==`string`?parseFloat(e):e,Xs=e=>typeof e==`number`||H.test(e);function Zs(e,t,n,r,i,a){i?(e.opacity=G(0,n.opacity??1,$s(r)),e.opacityExit=G(t.opacity??1,0,ec(r))):a&&(e.opacity=G(t.opacity??1,n.opacity??1,r));for(let i=0;i<Js;i++){let a=la[i],o=Qs(t,a),s=Qs(n,a);o===void 0&&s===void 0||(o||=0,s||=0,o===0||s===0||Xs(o)===Xs(s)?(e[a]=Math.max(G(Ys(o),Ys(s),r),0),(V.test(s)||V.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=G(t.rotate||0,n.rotate||0,r))}function Qs(e,t){return e[t]===void 0?e.borderRadius:e[t]}var $s=tc(0,.5,it),ec=tc(.5,.95,N);function tc(e,t,n){return r=>r<e?0:r>t?1:n(Ue(e,t,r))}function nc(e,t,n){let r=q(e)?e:fi(e);return r.start(Si(``,r,t,n)),r.animation}function rc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var ic=(e,t)=>e.depth-t.depth,ac=class{constructor(){this.children=[],this.isDirty=!1}add(e){Fe(this.children,e),this.isDirty=!0}remove(e){Ie(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ic),this.isDirty=!1,this.children.forEach(e)}};function oc(e,t){let n=z.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(L(r),e(a-t))};return I.setup(r,!0),()=>L(r)}function sc(e){return q(e)?e.get():e}var cc=class{constructor(){this.members=[]}add(e){Fe(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(Ie(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(Ie(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},lc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},uc={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},dc=[``,`X`,`Y`,`Z`],fc=1e3,pc=0;function mc(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function hc(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=Ri(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,I,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&hc(r)}function gc({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=pc++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Ja.value&&(uc.nodes=uc.calculatedTargetDeltas=uc.calculatedProjections=0),this.nodes.forEac
1h(yc),this.nodes.forEach(Oc),this.nodes.forEach(kc),this.nodes.forEach(bc),Ja.addProjectionMetrics&&Ja.addProjectionMetrics(uc)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ac)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new We),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Na(t)&&!Ya(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;I.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=oc(i,250),lc.hasAnimatedSinceResize&&(lc.hasAnimatedSinceResize=!1,this.nodes.forEach(Dc)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||Ic,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Ws(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...mi(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||Dc(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),L(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Ac),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&hc(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(Cc),this.nodes.forEach(Sc);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(wc);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEac
1h(Tc),this.nodes.forEach(Ec),this.nodes.forEach(_c),this.nodes.forEach(vc)):this.nodes.forEach(wc),this.clearAllSnapshots();let e=z.now();R.delta=M(0,1e3/60,e-R.timestamp),R.timestamp=e,R.isProcessing=!0,vt.update.process(R),vt.preRender.process(R),vt.render.process(R),R.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,pa.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xc),this.sharedNodes.forEach(jc)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,I.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){I.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Q(this.snapshot.measuredBox.x)&&!Q(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||=Y(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Bs(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||Eo(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Bc(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Y();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Hc))){let{scroll:e}=this.root;e&&(X(t.x,e.offset.x),X(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Y();if(Z(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Z(t,e),X(t.x,i.offset.x),X(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||Y();Z(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(X(r.x,-n.scroll.offset.x),X(r.y,-n.scroll.offset.y)),Eo(n.latestValues)&&Ro(r,n.latestValues,n.layout?.layoutBox)}return Eo(this.latestValues)&&Ro(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=Y();Z(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!Eo(n.latestValues))continue;let r;n.instance&&(To(n.latestValues)&&n.updateSnapshot(),r=Y(),Z(r,n.measurePageBox())),Rs(t,n.latestValues,n.snapshot?.layoutBox,r)}return Eo(this.latestValues)&&Rs(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==R.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;
1if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=R.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Y(),this.targetWithTransforms=Y()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),As(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Z(this.target,this.layout.layoutBox),Mo(this.target,this.targetDelta)):Z(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),Ja.value&&uc.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||To(this.parent.latestValues)||Do(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Y(),this.relativeTargetOrigin=Y(),Ms(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Z(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===R.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Z(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;Fo(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Y());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(xs(this.prevProjectionDelta.x,this.projectionDelta.x),xs(this.prevProjectionDelta.y,this.projectionDelta.y)),Os(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!Ks(this.projectionDelta.x,this.prevProjectionDelta.x)||!Ks(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),Ja.value&&uc.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=$a(),this.projectionDelta=$a(),this.projectionDeltaWithTransform=$a()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=$a();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=Y(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!!(c&&!u&&this.options.crossfade===!0&&!this.path.some(Fc));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=G(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=G(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(Mc(o.x,e.x,n),Mc(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ms(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Pc(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&Hs(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=Y(),Z(f,this.relativeTarget)),c&&(this.animationValues=a,Zs(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(L(this.pendingAnimation),void 0),this.pendingAnimation=I.update(()=>{lc.hasAnimatedSinceResize=!0,this.motionValue||=fi(0),this.motionValue.jump(0,!1),this.currentAnimation=nc(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&Vc(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Y();let t=Q(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=Q(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}Z(t,n),Ro(t,i),Os(this.projectionDeltaWithTransform,this.layoutCorrected,t,i
1)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new cc),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&mc(`z`,e,r,this.animationValues);for(let t=0;t<dc.length;t++)mc(`rotate${dc[t]}`,e,r,this.animationValues),mc(`skew${dc[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=sc(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=sc(t?.pointerEvents)||``),this.hasProjected&&!Eo(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=qs(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,r.animationValues?e.opacity=r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:e.opacity=r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Yo){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Yo[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?sc(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(Sc),this.root.sharedNodes.clear()}}}function _c(e){e.updateLayout()}function vc(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)$(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=Q(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;bs(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else Vc(i,t.layoutBox,n)&&$(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=Q(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=$a();Os(o,n,t.layoutBox);let s=$a();a?Os(s,e.applyTransform(r,!0),t.measuredBox):Os(s,n,t.layoutBox);let c=!Bs(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=Y();Ms(s,t.layoutBox,i.layoutBox,o);let c=Y();Ms(c,n,a.layoutBox,o),Ws(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function yc(e){Ja.value&&uc.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function bc(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xc(e){e.clearSnapshot()}function Sc(e){e.clearMeasurements()}function Cc(e){e.isLayoutDirty=!0,e.updateLayout()}function wc(e){e.isLayoutDirty=!1}function Tc(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Ec(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function Dc(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Oc(e){e.resolveTargetDelta()}function kc(e){e.calcProjection()}
1function Ac(e){e.resetSkewAndRotation()}function jc(e){e.removeLeadSnapshot()}function Mc(e,t,n){e.translate=G(t.translate,0,n),e.scale=G(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Nc(e,t,n,r){e.min=G(t.min,n.min,r),e.max=G(t.max,n.max,r)}function Pc(e,t,n,r){Nc(e.x,t.x,n.x,r),Nc(e.y,t.y,n.y,r)}function Fc(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var Ic={duration:.45,ease:[.4,0,.1,1]},Lc=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rc=Lc(`applewebkit/`)&&!Lc(`chrome/`)?Math.round:N;function zc(e){e.min=Rc(e.min),e.max=Rc(e.max)}function Bc(e){zc(e.x),zc(e.y)}function Vc(e,t,n){return e===`position`||e===`preserve-aspect`&&!Es(Gs(t),Gs(n),.2)}function Hc(e){return e!==e.root&&e.scroll?.wasRoot}var Uc=gc({attachResizeListener:(e,t)=>rc(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Wc={current:void 0},Gc=gc({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wc.current){let e=new Uc({});e.mount(window),e.setOptions({layoutScroll:!0}),Wc.current=e}return Wc.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),Kc=(0,j.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function qc(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Jc(...e){return t=>{let n=!1,r=e.map(e=>{let r=qc(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():qc(e[t],null)}}}}function Yc(...e){return j.useCallback(Jc(...e),e)}var Xc=class extends j.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(fa(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=fa(e)&&e.offsetWidth||0,r=fa(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Zc({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,j.useId)(),s=(0,j.useRef)(null),c=(0,j.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,j.useContext)(Kc),u=Yc(s,a===!1?void 0:e.props?.ref??e?.ref);return(0,j.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(` 2 [data-motion-pop-id="${o}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${u}px !important; 6 ${_}px !important; 7 ${v}px !important; 8 } 9 `),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,A.jsx)(Xc,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:j.cloneElement(e,{ref:u})})}var Qc=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=Me($c),d=(0,j.useId)(),f=(0,j.useRef)(n),p=(0,j.useRef)(r);Ne(()=>{f.current=n,p.current=r});let m=!0,h=(0,j.useMemo)(()=>(m=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&p.current?.()})}),[n,u,r]);return a&&m&&(h={...h}),(0,j.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),j.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,A.jsx)(Zc,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,A.jsx)(Pe.Provider,{value:h,children:e})};function $c(){return new Map}function el(e=!0){let t=(0,j.useContext)(Pe);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,j.useId)();(0,j.useEffect)(()=>
9{if(e)return i(a)},[e]);let o=(0,j.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var tl=e=>e.key||``;function nl(e){let t=[];return j.Children.forEach(e,e=>{(0,j.isValidElement)(e)&&t.push(e)}),t}var rl=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=el(o),f=(0,j.useMemo)(()=>nl(e),[e]),p=o&&!u?[]:f.map(tl),m=(0,j.useRef)(!0),h=(0,j.useRef)(f),g=Me(()=>new Map),_=(0,j.useRef)(new Set),[v,y]=(0,j.useState)(f),[b,x]=(0,j.useState)(f);Ne(()=>{m.current=!1,h.current=f;for(let e=0;e<b.length;e++){let t=tl(b[e]);p.includes(t)?(g.delete(t),_.current.delete(t)):g.get(t)!==!0&&g.set(t,!1)}},[b,p.length,p.join(`-`)]);let S=[];if(f!==v){let e=[...f];for(let t=0;t<b.length;t++){let n=b[t],r=tl(n);p.includes(r)||(e.splice(t,0,n),S.push(n))}return a===`wait`&&S.length&&(e=S),x(nl(e)),y(f),null}let{forceRender:C}=(0,j.useContext)(je);return(0,A.jsx)(A.Fragment,{children:b.map(e=>{let v=tl(e),y=o&&!u?!1:f===b||p.includes(v);return(0,A.jsx)(Qc,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(g.has(v))_.current.add(v),g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(C?.(),x(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})},il=(0,j.createContext)({strict:!1}),al={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},ol=!1;function sl(){if(ol)return;let e={};for(let t in al)e[t]={isEnabled:e=>al[t].some(t=>!!e[t])};go(e),ol=!0}function cl(){return sl(),_o()}function ll(e){let t=cl();for(let n in e)t[n]={...t[n],...e[n]};go(t)}var ul=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function dl(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||ul.has(e)}function fl(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var pl=n((()=>{})),ml=r({default:()=>gl}),hl,gl,_l=n((()=>{pl(),hl=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRen
9dering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,gl=fl(function(e){return hl.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})})),vl=e=>!dl(e);function yl(e){typeof e==`function`&&(vl=t=>t.startsWith(`on`)?!dl(t):e(t))}try{yl((_l(),t(ml)).default)}catch{}function bl(e,t,n){let r={};for(let i in e)i===`values`&&typeof e.values==`object`||q(e[i])||(vl(i)||n===!0&&dl(i)||!t&&!dl(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var xl=(0,j.createContext)({});function Sl(e,t){if(oo(e)){let{initial:t,animate:n}=e;return{initial:t===!1||ro(t)?t:void 0,animate:ro(n)?n:void 0}}return e.inherit===!1?{}:t}function Cl(e){let{initial:t,animate:n}=Sl(e,(0,j.useContext)(xl));return(0,j.useMemo)(()=>({initial:t,animate:n}),[wl(t),wl(n)])}function wl(e){return Array.isArray(e)?e.join(` `):e}var Tl=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function El(e,t,n){for(let r in t)!q(t[r])&&!Xo(r,n)&&(e[r]=t[r])}function Dl({transformTemplate:e},t){return(0,j.useMemo)(()=>{let n=Tl();return Wo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ol(e,t){let n=e.style||{},r={};return El(r,n,e),Object.assign(r,Dl(e,t)),r}function kl(e,t){let n={},r=Ol(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var Al=()=>({...Tl(),attrs:{}});function jl(e,t,n,r){let i=(0,j.useMemo)(()=>{let n=Al();return is(n,t,os(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};El(t,e.style,e),i.style={...t,...i.style}}return i}var Ml=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function Nl(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(Ml.indexOf(e)>-1||/[A-Z]/u.test(e))}function Pl(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??Nl(e)?jl:kl)(t,r,i,e),c=bl(t,typeof e==`string`,a),l=e===j.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,j.useMemo)(()=>q(u)?u.get():u,[u]);return(0,j.createElement)(e,{...l,children:d})}function Fl({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Il(n,r,i,e),renderState:t()}}function Il(e,t,n,r){let i={}
9,a=r(e,{});for(let e in a)i[e]=sc(a[e]);let{initial:o,animate:s}=e,c=oo(e),l=so(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!no(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Di(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Ll=e=>(t,n)=>{let r=(0,j.useContext)(xl),i=(0,j.useContext)(Pe),a=()=>Fl(e,t,r,i);return n?a():Me(a)},Rl=Ll({scrapeMotionValuesFromProps:Zo,createRenderState:Tl}),zl=Ll({scrapeMotionValuesFromProps:cs,createRenderState:Al}),Bl=Symbol.for(`motionComponentSymbol`);function Vl(e,t,n){let r=(0,j.useRef)(n);(0,j.useInsertionEffect)(()=>{r.current=n});let i=(0,j.useRef)(null);return(0,j.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`)if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n);else a&&(a.current=n)},[t])}var Hl=(0,j.createContext)({});function Ul(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Wl(e,t,n,r,i,a){let{visualElement:o}=(0,j.useContext)(xl),s=(0,j.useContext)(il),c=(0,j.useContext)(Pe),l=(0,j.useContext)(Kc),u=l.reducedMotion,d=l.skipAnimations,f=(0,j.useRef)(null),p=(0,j.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,j.useContext)(Hl);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&Gl(f.current,n,i,h);let g=(0,j.useRef)(!1);(0,j.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[Li],v=(0,j.useRef)(!!_&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return Ne(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,j.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function Gl(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Kl(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&Ul(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Kl(e){if(e)return e.options.allowProjection===!1?Kl(e.parent):e.projection}function ql(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&ll(r);let a=n?n===`svg`:Nl(e),o=a?zl:Rl;function s(n,s){let c,l={...(0,j.useContext)(Kc),...n,layoutId:Jl(n)},{isStatic:u}=l,d=Cl(n),f=o(n,u);if(!u&&typeof window<`u`){Yl(l,r);let t=Xl(l);c=t.MeasureLayout,d.visualElement=Wl(e,f,l,i,t.ProjectionNode,a)}return(0,A.jsxs)(xl.Provider,{value:d,children:[c&&d.visualElement?(0,A.jsx)(c,{visualElement:d.visualElement,...l}):null,Pl(e,n,Vl(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,j.forwardRef)(s);return c[Bl]=e,c}function Jl({layoutId:e}){let t=(0,j.useContext)(je).id;return t&&e!==void 0?t+`-`+e:e}function Yl(e,t){(0,j.useContext)(il).strict}function Xl(e){let{drag:t,layout:n}=cl();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Zl(e,t){if(typeof Proxy>`u`)return ql;let n=new Map,r=(n,r)=>ql(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,ql(a,void 0,e,t)),n.get(a))})}var Ql=(e,t)=>t.isSVG??Nl(e)?new ls(t):new $o(t,{allowProjection:e!==j.Fragment}),$l=class extends bo{constructor(e){super(e),e.animationState||=gs(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();no(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},eu=0,tu={animation:{Feature:$l},exit:{Feature:class extends bo{constructor(){super(...arguments),this.id=eu++,this.isExitComplete=!1}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;if(e&&n===!1){if(this.isExitComplete){let{initial:e,custom:t}=this.node.getProps();if(typeof e==`string`||typeof e==`object`&&e&&!Array.isArray(e)){let n=Oi(this.node,e,t);if(n){let{transition:e,transitionEnd:t,...r}=n;for(let e in r)this.node.getValue(e)?.jump(r[e])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive(`exit`,!1);this.isExitComplete=!1;return}let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>
9{this.isExitComplete=!0,t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function nu(e){return{point:{x:e.pageX,y:e.pageY}}}var ru=e=>t=>xa(t)&&e(t,nu(t));function iu(e,t,n,r){return rc(e,t,ru(n),r)}var au=({current:e})=>e?e.ownerDocument.defaultView:null,ou=(e,t)=>Math.abs(e-t);function su(e,t){let n=ou(e.x,t.x),r=ou(e.y,t.y);return Math.sqrt(n**2+r**2)}var cu=new Set([`auto`,`scroll`]),lu=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=uu(this.lastRawMoveEventInfo,this.transformPagePoint));let e=fu(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=su(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=R;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=uu(t,this.transformPagePoint),I.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=fu(e.type===`pointercancel`?this.lastMoveEventInfo:uu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!xa(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=uu(nu(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=R;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,fu(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=He(iu(this.contextWindow,`pointermove`,this.handlePointerMove,d),iu(this.contextWindow,`pointerup`,this.handlePointerUp,d),iu(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(cu.has(e.overflowX)||cu.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};i.x===0&&i.y===0||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),I.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),L(this.updatePoint)}};function uu(e,t){return t?{point:t(e.point)}:e}function du(e,t){return{x:e.x-t.x,y:e.y-t.y}}function fu({point:e},t){return{point:e,delta:du(e,mu(t)),offset:du(e,pu(t)),velocity:hu(t,.1)}}function pu(e){return e[0]}function mu(e){return e[e.length-1]}function hu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=mu(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>P(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>P(t)*2&&(r=e[1]);let a=F(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function gu(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?G(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?G(n,e,r.max):Math.min(e,n)),e}function _u(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function vu(e,{top:t,left:n,bottom:r,right:i}){return{x:_u(e.x,n,i),y:_u(e.y,t,r)}}function yu(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function bu(e,t){return{x:yu(e.x,t.x),y:yu(e.y,t.y)}}function xu(e,t){let n=.5,r=Q(e),i=Q(t);return i>r?n=Ue(t.min,t.max-r,e.min):r>i&&(n=Ue(e.min,e.max-i,t.min)),M(0,1,n)}function Su(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var Cu=.35;function wu(e=Cu){return e===!1?e=0:e===!0&&(e=Cu),{x:Tu(e,`left`,`right`),y:Tu(e,`top`,`bottom`)}}function Tu(e,t,n){return{min:Eu(e,t),max:Eu(e,n)}}function Eu(e,t){return typeof e==`number`?e:e[t]||0}var Du=new WeakMap,Ou=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Y(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(nu(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ga(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$(e=>{let t=this.getAxisMotionValue(e).get()||0;if(V.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=Q(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&I.update(()=>i(e,t),!1,!0),Fi(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=Mu(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&I.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new lu(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:au(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&I.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!ju(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=gu(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&Ul(e)?this.constraints||=this.resolveRefConstraints():e&&n?this.constraints=vu(n.layoutBox,e):this.constraints=!1,this.elastic=wu(t),r!==this.constraints&&!Ul(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&$(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=Su(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Ul(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=Bo(n,r.root,this.visualElement.getTransformPagePoint()),a=bu(r.layout.layoutBox,i);if(t){let e=t(So(a));this.hasMutatedConstraints=!!e,e&&(a=xo(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=$(o=>{if(!ju(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Fi(this.visualElement,e),n.start(Si(e,n,0,t,this.visualElement,!1))}stopAnimation(){$(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor(e){$(t=>{let{drag:n}=this.getProps();if(!ju(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-G(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ul(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};$(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=xu({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),$(t=>{if(!ju(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set(G(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;Du.set(this.visualElement,this);let e=this.visualElement.current,t=iu(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&Ta(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();Ul(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=Au(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),I.read(r);let o=rc(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&($(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=Cu,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function ku(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function Au(e,t,n){let r=qa(e,ku(n)),i=qa(t,ku(n));return()=>{r(),i()}}function ju(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Mu(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var Nu=class extends bo{constructor(e){super(e),this.removeGroupControls=N,this.removeListeners=N,this.controls=new Ou(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||N}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},Pu=e=>(t,n)=>{e&&I.update(()=>e(t,n),!1,!0)},Fu=class extends bo{constructor(){super(...arguments),this.removePointerDownListener=N}onPointerDown(e){this.session=new lu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:au(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:Pu(e),onStart:Pu(t),onMove:Pu(n),onEnd:(e,t)=>{delete this.session,r&&I.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=iu(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Iu=!1,Lu=class extends j.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Iu&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),lc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Iu=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||I.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),pa.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;
9Iu=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Ru(e){let[t,n]=el(),r=(0,j.useContext)(je);return(0,A.jsx)(Lu,{...e,layoutGroup:r,switchLayoutGroup:(0,j.useContext)(Hl),isPresent:t,safeToRemove:n})}var zu={pan:{Feature:Fu},drag:{Feature:Nu,ProjectionNode:Gc,MeasureLayout:Ru}};function Bu(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&I.postRender(()=>i(t,nu(t)))}var Vu=class extends bo{mount(){let{current:e}=this.node;e&&(this.unmount=ya(e,(e,t)=>(Bu(this.node,t,`Start`),e=>Bu(this.node,e,`End`))))}unmount(){}},Hu=class extends bo{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=He(rc(this.node.current,`focus`,()=>this.onFocus()),rc(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Uu(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&I.postRender(()=>i(t,nu(t)))}var Wu=class extends bo{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Ma(e,(e,t)=>(Uu(this.node,t,`Start`),(e,{success:t})=>Uu(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Gu=new WeakMap,Ku=new WeakMap,qu=e=>{let t=Gu.get(e.target);t&&t(e)},Ju=e=>{e.forEach(qu)};function Yu({root:e,...t}){let n=e||document;Ku.has(n)||Ku.set(n,{});let r=Ku.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ju,{root:e,...t})),r[i]}function Xu(e,t,n){let r=Yu(t);return Gu.set(e,n),r.observe(e),()=>{Gu.delete(e),r.unobserve(e)}}var Zu={some:0,all:1},Qu=class extends bo{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Zu[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Xu(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some($u(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function $u({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var ed={inView:{Feature:Qu},tap:{Feature:Wu},focus:{Feature:Hu},hover:{Feature:Vu}},td={layout:{ProjectionNode:Gc,MeasureLayout:Ru}},nd=Zl({...tu,...ed,...zu,...td},Ql);export{c as i,rl as n,Ae as r,nd as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.