@fluidattacks/design 3.10.3 → 3.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/web-form/index.js +1 -1
- package/dist/{components-DPrwFH7O.mjs → components-Be5vY-MX.mjs} +2 -2
- package/dist/{components-DNegr3Bw.js → components-Da8k01uM.js} +2 -2
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{vendor-DV7B21xO.js → vendor-BkOGcq-r.js} +1 -1
- package/dist/{vendor-B0NiF4AQ.mjs → vendor-Sf9Y3XyV.mjs} +11 -7
- package/package.json +3 -3
|
@@ -142,7 +142,7 @@ Check the top-level render call using <`+se+">.")}return X}function ga(I,X){if(!
|
|
|
142
142
|
* @public
|
|
143
143
|
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,a=0,o={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function v(w){return w instanceof l?new l(w.type,v(w.content),w.alias):Array.isArray(w)?w.map(v):w.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(v){return Object.prototype.toString.call(v).slice(8,-1)},objId:function(v){return v.__id||Object.defineProperty(v,"__id",{value:++a}),v.__id},clone:function v(w,T){T=T||{};var E,A;switch(u.util.type(w)){case"Object":if(A=u.util.objId(w),T[A])return T[A];E={},T[A]=E;for(var M in w)w.hasOwnProperty(M)&&(E[M]=v(w[M],T));return E;case"Array":return A=u.util.objId(w),T[A]?T[A]:(E=[],T[A]=E,w.forEach(function(S,z){E[z]=v(S,T)}),E);default:return w}},getLanguage:function(v){for(;v;){var w=i.exec(v.className);if(w)return w[1].toLowerCase();v=v.parentElement}return"none"},setLanguage:function(v,w){v.className=v.className.replace(RegExp(i,"gi"),""),v.classList.add("language-"+w)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(E){var v=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(v){var w=document.getElementsByTagName("script");for(var T in w)if(w[T].src==v)return w[T]}return null}},isActive:function(v,w,T){for(var E="no-"+w;v;){var A=v.classList;if(A.contains(w))return!0;if(A.contains(E))return!1;v=v.parentElement}return!!T}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(v,w){var T=u.util.clone(u.languages[v]);for(var E in w)T[E]=w[E];return T},insertBefore:function(v,w,T,E){E=E||u.languages;var A=E[v],M={};for(var S in A)if(A.hasOwnProperty(S)){if(S==w)for(var z in T)T.hasOwnProperty(z)&&(M[z]=T[z]);T.hasOwnProperty(S)||(M[S]=A[S])}var j=E[v];return E[v]=M,u.languages.DFS(u.languages,function(O,Z){Z===j&&O!=v&&(this[O]=M)}),M},DFS:function v(w,T,E,A){A=A||{};var M=u.util.objId;for(var S in w)if(w.hasOwnProperty(S)){T.call(w,S,w[S],E||S);var z=w[S],j=u.util.type(z);j==="Object"&&!A[M(z)]?(A[M(z)]=!0,v(z,T,null,A)):j==="Array"&&!A[M(z)]&&(A[M(z)]=!0,v(z,T,S,A))}}},plugins:{},highlightAll:function(v,w){u.highlightAllUnder(document,v,w)},highlightAllUnder:function(v,w,T){var E={callback:T,container:v,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};u.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),u.hooks.run("before-all-elements-highlight",E);for(var A=0,M;M=E.elements[A++];)u.highlightElement(M,w===!0,E.callback)},highlightElement:function(v,w,T){var E=u.util.getLanguage(v),A=u.languages[E];u.util.setLanguage(v,E);var M=v.parentElement;M&&M.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(M,E);var S=v.textContent,z={element:v,language:E,grammar:A,code:S};function j(Z){z.highlightedCode=Z,u.hooks.run("before-insert",z),z.element.innerHTML=z.highlightedCode,u.hooks.run("after-highlight",z),u.hooks.run("complete",z),T&&T.call(z.element)}if(u.hooks.run("before-sanity-check",z),M=z.element.parentElement,M&&M.nodeName.toLowerCase()==="pre"&&!M.hasAttribute("tabindex")&&M.setAttribute("tabindex","0"),!z.code){u.hooks.run("complete",z),T&&T.call(z.element);return}if(u.hooks.run("before-highlight",z),!z.grammar){j(u.util.encode(z.code));return}if(w&&r.Worker){var O=new Worker(u.filename);O.onmessage=function(Z){j(Z.data)},O.postMessage(JSON.stringify({language:z.language,code:z.code,immediateClose:!0}))}else j(u.highlight(z.code,z.grammar,z.language))},highlight:function(v,w,T){var E={code:v,grammar:w,language:T};if(u.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=u.tokenize(E.code,E.grammar),u.hooks.run("after-tokenize",E),l.stringify(u.util.encode(E.tokens),E.language)},tokenize:function(v,w){var T=w.rest;if(T){for(var E in T)w[E]=T[E];delete w.rest}var A=new h;return p(A,A.head,v),d(v,A,w,A.head,0),y(A)},hooks:{all:{},add:function(v,w){var T=u.hooks.all;T[v]=T[v]||[],T[v].push(w)},run:function(v,w){var T=u.hooks.all[v];if(!(!T||!T.length))for(var E=0,A;A=T[E++];)A(w)}},Token:l};r.Prism=u;function l(v,w,T,E){this.type=v,this.content=w,this.alias=T,this.length=(E||"").length|0}l.stringify=function v(w,T){if(typeof w=="string")return w;if(Array.isArray(w)){var E="";return w.forEach(function(j){E+=v(j,T)}),E}var A={type:w.type,content:v(w.content,T),tag:"span",classes:["token",w.type],attributes:{},language:T},M=w.alias;M&&(Array.isArray(M)?Array.prototype.push.apply(A.classes,M):A.classes.push(M)),u.hooks.run("wrap",A);var S="";for(var z in A.attributes)S+=" "+z+'="'+(A.attributes[z]||"").replace(/"/g,""")+'"';return"<"+A.tag+' class="'+A.classes.join(" ")+'"'+S+">"+A.content+"</"+A.tag+">"};function f(v,w,T,E){v.lastIndex=w;var A=v.exec(T);if(A&&E&&A[1]){var M=A[1].length;A.index+=M,A[0]=A[0].slice(M)}return A}function d(v,w,T,E,A,M){for(var S in T)if(!(!T.hasOwnProperty(S)||!T[S])){var z=T[S];z=Array.isArray(z)?z:[z];for(var j=0;j<z.length;++j){if(M&&M.cause==S+","+j)return;var O=z[j],Z=O.inside,R=!!O.lookbehind,V=!!O.greedy,W=O.alias;if(V&&!O.pattern.global){var L=O.pattern.toString().match(/[imsuy]*$/)[0];O.pattern=RegExp(O.pattern.source,L+"g")}for(var k=O.pattern||O,_=E.next,H=A;_!==w.tail&&!(M&&H>=M.reach);H+=_.value.length,_=_.next){var U=_.value;if(w.length>v.length)return;if(!(U instanceof l)){var N=1,ne;if(V){if(ne=f(k,H,v,R),!ne||ne.index>=v.length)break;var De=ne.index,ie=ne.index+ne[0].length,ce=H;for(ce+=_.value.length;De>=ce;)_=_.next,ce+=_.value.length;if(ce-=_.value.length,H=ce,_.value instanceof l)continue;for(var xe=_;xe!==w.tail&&(ce<ie||typeof xe.value=="string");xe=xe.next)N++,ce+=xe.value.length;N--,U=v.slice(H,ce),ne.index-=H}else if(ne=f(k,0,U,R),!ne)continue;var De=ne.index,Ee=ne[0],J=U.slice(0,De),ye=U.slice(De+Ee.length),we=H+U.length;M&&we>M.reach&&(M.reach=we);var me=_.prev;J&&(me=p(w,me,J),H+=J.length),g(w,me,N);var ue=new l(S,Z?u.tokenize(Ee,Z):Ee,W,Ee);if(_=p(w,me,ue),ye&&p(w,_,ye),N>1){var Le={cause:S+","+j,reach:we};d(v,w,T,_.prev,H,Le),M&&Le.reach>M.reach&&(M.reach=Le.reach)}}}}}}function h(){var v={value:null,prev:null,next:null},w={value:null,prev:v,next:null};v.next=w,this.head=v,this.tail=w,this.length=0}function p(v,w,T){var E=w.next,A={value:T,prev:w,next:E};return w.next=A,E.prev=A,v.length++,A}function g(v,w,T){for(var E=w.next,A=0;A<T&&E!==v.tail;A++)E=E.next;w.next=E,E.prev=w,v.length-=A}function y(v){for(var w=[],T=v.head.next;T!==v.tail;)w.push(T.value),T=T.next;return w}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(v){var w=JSON.parse(v.data),T=w.language,E=w.code,A=w.immediateClose;r.postMessage(u.highlight(E,u.languages[T],T)),A&&r.close()},!1)),u;var b=u.util.currentScript();b&&(u.filename=b.src,b.hasAttribute("data-manual")&&(u.manual=!0));function D(){u.manual||u.highlightAll()}if(!u.manual){var $=document.readyState;$==="loading"||$==="interactive"&&b&&b.defer?document.addEventListener("DOMContentLoaded",D):window.requestAnimationFrame?window.requestAnimationFrame(D):window.setTimeout(D,16)}return u}(t);e.exports&&(e.exports=n),typeof yi<"u"&&(yi.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,a){var o={};o["language-"+a]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[a]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};u["language-"+a]={pattern:/[\s\S]+/,inside:n.languages[a]};var l={};l[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:u},n.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var a=r.languages.markup;a&&(a.tag.addInlined("style","css"),a.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading…",i=function(b,D){return"✖ Error "+b+" while fetching file: "+D},a="✖ Error: File does not exist or is empty",o={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",l="loading",f="loaded",d="failed",h="pre[data-src]:not(["+u+'="'+f+'"]):not(['+u+'="'+l+'"])';function p(b,D,$){var v=new XMLHttpRequest;v.open("GET",b,!0),v.onreadystatechange=function(){v.readyState==4&&(v.status<400&&v.responseText?D(v.responseText):v.status>=400?$(i(v.status,v.statusText)):$(a))},v.send(null)}function g(b){var D=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(b||"");if(D){var $=Number(D[1]),v=D[2],w=D[3];return v?w?[$,Number(w)]:[$,void 0]:[$,$]}}n.hooks.add("before-highlightall",function(b){b.selector+=", "+h}),n.hooks.add("before-sanity-check",function(b){var D=b.element;if(D.matches(h)){b.code="",D.setAttribute(u,l);var $=D.appendChild(document.createElement("CODE"));$.textContent=r;var v=D.getAttribute("data-src"),w=b.language;if(w==="none"){var T=(/\.(\w+)$/.exec(v)||[,"none"])[1];w=o[T]||T}n.util.setLanguage($,w),n.util.setLanguage(D,w);var E=n.plugins.autoloader;E&&E.loadLanguages(w),p(v,function(A){D.setAttribute(u,f);var M=g(D.getAttribute("data-range"));if(M){var S=A.split(/\r\n?|\n/g),z=M[0],j=M[1]==null?S.length:M[1];z<0&&(z+=S.length),z=Math.max(0,Math.min(z-1,S.length)),j<0&&(j+=S.length),j=Math.max(0,Math.min(j,S.length)),A=S.slice(z,j).join(`
|
|
144
144
|
`),D.hasAttribute("data-start")||D.setAttribute("data-start",String(z+1))}$.textContent=A,n.highlightElement($)},function(A){D.setAttribute(u,d),$.textContent=A})}}),n.plugins.fileHighlight={highlight:function(D){for(var $=(D||document).querySelectorAll(h),v=0,w;w=$[v++];)n.highlightElement(w)}};var y=!1;n.fileHighlight=function(){y||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),y=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(Hv)),Hv.exports}var PQ=AQ();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(p,g){return Array.prototype.slice.call((g||document).querySelectorAll(p))}function i(p,g){return p.classList.contains(g)}function a(p){p()}var o=function(){var p;return function(){if(typeof p>"u"){var g=document.createElement("div");g.style.fontSize="13px",g.style.lineHeight="1.5",g.style.padding="0",g.style.border="0",g.innerHTML=" <br /> ",document.body.appendChild(g),p=g.offsetHeight===38,document.body.removeChild(g)}return p}}();function u(p,g){var y=getComputedStyle(p),b=getComputedStyle(g);function D($){return+$.substr(0,$.length-2)}return g.offsetTop+D(b.borderTopWidth)+D(b.paddingTop)-D(y.paddingTop)}function l(p){return!p||!/pre/i.test(p.nodeName)?!1:!!(p.hasAttribute("data-line")||p.id&&Prism.util.isActive(p,t))}var f=!0;Prism.plugins.lineHighlight={highlightLines:function(g,y,b){y=typeof y=="string"?y:g.getAttribute("data-line")||"";var D=y.replace(/\s+/g,"").split(",").filter(Boolean),$=+g.getAttribute("data-line-offset")||0,v=o()?parseInt:parseFloat,w=v(getComputedStyle(g).lineHeight),T=Prism.util.isActive(g,e),E=g.querySelector("code"),A=T?g:E||g,M=[],S=E.textContent.match(n),z=S?S.length+1:1,j=!E||A==E?0:u(g,E);D.forEach(function(R){var V=R.split("-"),W=+V[0],L=+V[1]||W;if(L=Math.min(z+$,L),!(L<W)){var k=g.querySelector('.line-highlight[data-range="'+R+'"]')||document.createElement("div");if(M.push(function(){k.setAttribute("aria-hidden","true"),k.setAttribute("data-range",R),k.className=(b||"")+" line-highlight"}),T&&Prism.plugins.lineNumbers){var _=Prism.plugins.lineNumbers.getLine(g,W),H=Prism.plugins.lineNumbers.getLine(g,L);if(_){var U=_.offsetTop+j+"px";M.push(function(){k.style.top=U})}if(H){var N=H.offsetTop-_.offsetTop+H.offsetHeight+"px";M.push(function(){k.style.height=N})}}else M.push(function(){k.setAttribute("data-start",String(W)),L>W&&k.setAttribute("data-end",String(L)),k.style.top=(W-$-1)*w+j+"px",k.textContent=new Array(L-W+2).join(`
|
|
145
|
-
`)});M.push(function(){k.style.width=g.scrollWidth+"px"}),M.push(function(){A.appendChild(k)})}});var O=g.id;if(T&&Prism.util.isActive(g,t)&&O){i(g,t)||M.push(function(){g.classList.add(t)});var Z=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(R,V){var W=V+Z;R.onclick=function(){var L=O+"."+W;f=!1,location.hash=L,setTimeout(function(){f=!0},1)}})}return function(){M.forEach(a)}}};function d(){var p=location.hash.slice(1);r(".temporary.line-highlight").forEach(function($){$.parentNode.removeChild($)});var g=(p.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(p))){var y=p.slice(0,p.lastIndexOf(".")),b=document.getElementById(y);if(b){b.hasAttribute("data-line")||b.setAttribute("data-line","");var D=Prism.plugins.lineHighlight.highlightLines(b,g,"temporary ");D(),f&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(p){var g=p.element.parentElement;if(l(g)){var y=0;r(".line-highlight",g).forEach(function(b){y+=b.textContent.length,b.parentNode.removeChild(b)}),y&&/^(?: \n)+$/.test(p.code.slice(-y))&&(p.code=p.code.slice(0,-y))}}),Prism.hooks.add("complete",function p(g){var y=g.element.parentElement;if(l(y)){clearTimeout(h);var b=Prism.plugins.lineNumbers,D=g.plugins&&g.plugins.lineNumbers;if(i(y,e)&&b&&!D)Prism.hooks.add("line-numbers",p);else{var $=Prism.plugins.lineHighlight.highlightLines(y);$(),h=setTimeout(d,1)}}}),window.addEventListener("hashchange",d),window.addEventListener("resize",function(){var p=r("pre").filter(l).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});p.forEach(a)})})();const XO=C.createContext({});function Qc(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const S4=C.createContext(null),T4=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function _Q(e=!0){const t=C.useContext(S4);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=C.useId();C.useEffect(()=>{e&&i(a)},[e]);const o=C.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const A4=typeof window<"u",QO=A4?C.useLayoutEffect:C.useEffect,Zn=e=>e;let Mu=Zn,Pi=Zn;process.env.NODE_ENV!=="production"&&(Mu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Pi=(e,t)=>{if(!e)throw new Error(t)});function P4(e){let t;return()=>(t===void 0&&(t=e()),t)}const pu=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Si=e=>e*1e3,ta=e=>e/1e3,RQ={useManualTiming:!1},bd=["read","resolveKeyframes","update","preRender","render","postRender"];function OQ(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(f.schedule(d),e()),d(u)}const f={schedule:(d,h=!1,p=!1)=>{const y=p&&i?n:r;return h&&o.add(d),y.has(d)||y.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(u=d,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,f.process(d))}};return f}const MQ=40;function eM(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=bd.reduce(($,v)=>($[v]=OQ(a),$),{}),{read:u,resolveKeyframes:l,update:f,preRender:d,render:h,postRender:p}=o,g=()=>{const $=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min($-i.timestamp,MQ),1),i.timestamp=$,i.isProcessing=!0,u.process(i),l.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},y=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:bd.reduce(($,v)=>{const w=o[v];return $[v]=(T,E=!1,A=!1)=>(n||y(),w.schedule(T,E,A)),$},{}),cancel:$=>{for(let v=0;v<bd.length;v++)o[bd[v]].cancel($)},state:i,steps:o}}const{schedule:Et,cancel:aa,state:hn,steps:Gv}=eM(typeof requestAnimationFrame<"u"?requestAnimationFrame:Zn,!0),tM=C.createContext({strict:!1}),$S={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"]},mu={};for(const e in $S)mu[e]={isEnabled:t=>$S[e].some(n=>!!t[n])};function FQ(e){for(const t in e)mu[t]={...mu[t],...e[t]}}const kQ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Eh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kQ.has(e)}let nM=e=>!Eh(e);function IQ(e){e&&(nM=t=>t.startsWith("on")?!Eh(t):e(t))}try{IQ(require("@emotion/is-prop-valid").default)}catch{}function BQ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(nM(i)||n===!0&&Eh(i)||!t&&!Eh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const xS=new Set;function Pp(e,t,n){e||xS.has(t)||(console.warn(t),xS.add(t))}function LQ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Pp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const _p=C.createContext({});function Rp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ec(e){return typeof e=="string"||Array.isArray(e)}const _4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],R4=["initial",..._4];function Op(e){return Rp(e.animate)||R4.some(t=>Ec(e[t]))}function rM(e){return!!(Op(e)||e.variants)}function VQ(e,t){if(Op(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ec(n)?n:void 0,animate:Ec(r)?r:void 0}}return e.inherit!==!1?t:{}}function NQ(e){const{initial:t,animate:n}=VQ(e,C.useContext(_p));return C.useMemo(()=>({initial:t,animate:n}),[wS(t),wS(n)])}function wS(e){return Array.isArray(e)?e.join(" "):e}const jQ=Symbol.for("motionComponentSymbol");function js(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function KQ(e,t,n){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):js(n)&&(n.current=r))},[t])}const O4=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),UQ="framerAppearId",iM="data-"+O4(UQ),{schedule:M4}=eM(queueMicrotask,!1),aM=C.createContext({});function zQ(e,t,n,r,i){var a,o;const{visualElement:u}=C.useContext(_p),l=C.useContext(tM),f=C.useContext(S4),d=C.useContext(T4).reducedMotion,h=C.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:d}));const p=h.current,g=C.useContext(aM);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&qQ(h.current,n,i,g);const y=C.useRef(!1);C.useInsertionEffect(()=>{p&&y.current&&p.update(n,f)});const b=n[iM],D=C.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,b)));return QO(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),M4.render(p.render),D.current&&p.animationState&&p.animationState.animateChanges())}),C.useEffect(()=>{p&&(!D.current&&p.animationState&&p.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var $;($=window.MotionHandoffMarkAsComplete)===null||$===void 0||$.call(window,b)}),D.current=!1))}),p}function qQ(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:u,layoutScroll:l,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:oM(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||u&&js(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:f})}function oM(e){if(e)return e.options.allowProjection!==!1?e.projection:oM(e.parent)}function WQ({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;e&&FQ(e);function u(f,d){let h;const p={...C.useContext(T4),...f,layoutId:HQ(f)},{isStatic:g}=p,y=NQ(f),b=r(f,g);if(!g&&A4){GQ(p,e);const D=YQ(p);h=D.MeasureLayout,y.visualElement=zQ(i,b,p,t,D.ProjectionNode)}return ra.jsxs(_p.Provider,{value:y,children:[h&&y.visualElement?ra.jsx(h,{visualElement:y.visualElement,...p}):null,n(i,f,KQ(b,y.visualElement,d),b,g,y.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(o=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&o!==void 0?o:""})`}`;const l=C.forwardRef(u);return l[jQ]=i,l}function HQ({layoutId:e}){const t=C.useContext(XO).id;return t&&e!==void 0?t+"-"+e:e}function GQ(e,t){const n=C.useContext(tM).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Mu(!1,r):Pi(!1,r)}}function YQ(e){const{drag:t,layout:n}=mu;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const sM=e=>t=>typeof t=="string"&&t.startsWith(e),F4=sM("--"),ZQ=sM("var(--"),k4=e=>ZQ(e)?JQ.test(e.split("/*")[0].trim()):!1,JQ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Sc={};function XQ(e){for(const t in e)Sc[t]=e[t],F4(t)&&(Sc[t].isCSSVariable=!0)}const Fu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qo=new Set(Fu);function uM(e,{layout:t,layoutId:n}){return Qo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Sc[e]||e==="opacity")}const pn=e=>!!(e&&e.getVelocity),lM=(e,t)=>t&&typeof e=="number"?t.transform(e):e,oa=(e,t,n)=>n>t?t:n<e?e:n,ku={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tc={...ku,transform:e=>oa(0,1,e)},$d={...ku,default:1},ef=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_a=ef("deg"),Ti=ef("%"),qe=ef("px"),QQ=ef("vh"),eee=ef("vw"),DS={...Ti,parse:e=>Ti.parse(e)/100,transform:e=>Ti.transform(e*100)},tee={borderWidth:qe,borderTopWidth:qe,borderRightWidth:qe,borderBottomWidth:qe,borderLeftWidth:qe,borderRadius:qe,radius:qe,borderTopLeftRadius:qe,borderTopRightRadius:qe,borderBottomRightRadius:qe,borderBottomLeftRadius:qe,width:qe,maxWidth:qe,height:qe,maxHeight:qe,top:qe,right:qe,bottom:qe,left:qe,padding:qe,paddingTop:qe,paddingRight:qe,paddingBottom:qe,paddingLeft:qe,margin:qe,marginTop:qe,marginRight:qe,marginBottom:qe,marginLeft:qe,backgroundPositionX:qe,backgroundPositionY:qe},nee={rotate:_a,rotateX:_a,rotateY:_a,rotateZ:_a,scale:$d,scaleX:$d,scaleY:$d,scaleZ:$d,skew:_a,skewX:_a,skewY:_a,distance:qe,translateX:qe,translateY:qe,translateZ:qe,x:qe,y:qe,z:qe,perspective:qe,transformPerspective:qe,opacity:Tc,originX:DS,originY:DS,originZ:qe},CS={...ku,transform:Math.round},I4={...tee,...nee,zIndex:CS,size:qe,fillOpacity:Tc,strokeOpacity:Tc,numOctaves:CS},ree={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iee=Fu.length;function aee(e,t,n){let r="",i=!0;for(let a=0;a<iee;a++){const o=Fu[a],u=e[o];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(o.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const f=lM(u,I4[o]);if(!l){i=!1;const d=ree[o]||o;r+=`${d}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function B4(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,u=!1;for(const l in t){const f=t[l];if(Qo.has(l)){o=!0;continue}else if(F4(l)){i[l]=f;continue}else{const d=lM(f,I4[l]);l.startsWith("origin")?(u=!0,a[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=aee(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:f="50%",originZ:d=0}=a;r.transformOrigin=`${l} ${f} ${d}`}}const L4=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cM(e,t,n){for(const r in t)!pn(t[r])&&!uM(r,n)&&(e[r]=t[r])}function oee({transformTemplate:e},t){return C.useMemo(()=>{const n=L4();return B4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function see(e,t){const n=e.style||{},r={};return cM(r,n,e),Object.assign(r,oee(e,t)),r}function uee(e,t){const n={},r=see(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}const lee=["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 V4(e){return typeof e!="string"||e.includes("-")?!1:!!(lee.indexOf(e)>-1||/[A-Z]/u.test(e))}const cee={offset:"stroke-dashoffset",array:"stroke-dasharray"},fee={offset:"strokeDashoffset",array:"strokeDasharray"};function dee(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?cee:fee;e[a.offset]=qe.transform(-r);const o=qe.transform(t),u=qe.transform(n);e[a.array]=`${o} ${u}`}function ES(e,t,n){return typeof e=="string"?e:qe.transform(t+n*e)}function hee(e,t,n){const r=ES(t,e.x,e.width),i=ES(n,e.y,e.height);return`${r} ${i}`}function N4(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:u=1,pathOffset:l=0,...f},d,h){if(B4(e,f,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:y}=e;p.transform&&(y&&(g.transform=p.transform),delete p.transform),y&&(i!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=hee(y,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&dee(p,o,u,l,!1)}const fM=()=>({...L4(),attrs:{}}),j4=e=>typeof e=="string"&&e.toLowerCase()==="svg";function pee(e,t,n,r){const i=C.useMemo(()=>{const a=fM();return N4(a,t,j4(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};cM(a,e.style,e),i.style={...a,...i.style}}return i}function mee(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=(V4(n)?pee:uee)(r,a,o,n),f=BQ(r,typeof n=="string",e),d=n!==C.Fragment?{...f,...l,ref:i}:{},{children:h}=r,p=C.useMemo(()=>pn(h)?h.get():h,[h]);return C.createElement(n,{...d,children:p})}}function SS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function K4(e,t,n,r){if(typeof t=="function"){const[i,a]=SS(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=SS(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const T0=e=>Array.isArray(e),gee=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),yee=e=>T0(e)?e[e.length-1]||0:e;function Ud(e){const t=pn(e)?e.get():e;return gee(t)?t.toValue():t}function vee({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const o={latestValues:bee(r,i,a,e),renderState:t()};return n&&(o.onMount=u=>n({props:r,current:u,...o}),o.onUpdate=u=>n(u)),o}const dM=e=>(t,n)=>{const r=C.useContext(_p),i=C.useContext(S4),a=()=>vee(e,t,r,i);return n?a():Qc(a)};function bee(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=Ud(a[p]);let{initial:o,animate:u}=e;const l=Op(e),f=rM(e);t&&f&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?u:o;if(h&&typeof h!="boolean"&&!Rp(h)){const p=Array.isArray(h)?h:[h];for(let g=0;g<p.length;g++){const y=K4(e,p[g]);if(y){const{transitionEnd:b,transition:D,...$}=y;for(const v in $){let w=$[v];if(Array.isArray(w)){const T=d?w.length-1:0;w=w[T]}w!==null&&(i[v]=w)}for(const v in b)i[v]=b[v]}}}return i}function U4(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(pn(i[o])||t.style&&pn(t.style[o])||uM(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return a}const $ee={useVisualState:dM({scrapeMotionValuesFromProps:U4,createRenderState:L4})};function hM(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function pM(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const mM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function gM(e,t,n,r){pM(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(mM.has(i)?i:O4(i),t.attrs[i])}function yM(e,t,n){const r=U4(e,t,n);for(const i in e)if(pn(e[i])||pn(t[i])){const a=Fu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const TS=["x","y","width","height","cx","cy","r"],xee={useVisualState:dM({scrapeMotionValuesFromProps:yM,createRenderState:fM,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const u in i)if(Qo.has(u)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let u=0;u<TS.length;u++){const l=TS[u];e[l]!==t[l]&&(o=!0)}o&&Et.read(()=>{hM(n,r),Et.render(()=>{N4(r,i,j4(n.tagName),e.transformTemplate),gM(n,r)})})}})};function wee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...V4(r)?xee:$ee,preloadedFeatures:e,useRender:mee(i),createVisualElement:t,Component:r};return WQ(o)}}function Ac(e,t,n){const r=e.getProps();return K4(r,t,n!==void 0?n:r.custom,e)}const Dee=P4(()=>window.ScrollTimeline!==void 0);let Cee=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(Dee()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},Eee=class extends Cee{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function z4(e,t){return e?e[t]||e.default||e:void 0}const A0=2e4;function vM(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<A0;)t+=n,r=e.next(t);return t>=A0?1/0:t}function q4(e){return typeof e=="function"}function AS(e,t){e.timeline=t,e.onfinish=null}const W4=e=>Array.isArray(e)&&typeof e[0]=="number",See={linearEasing:void 0};function Tee(e,t){const n=P4(e);return()=>{var r;return(r=See[t])!==null&&r!==void 0?r:n()}}const Sh=Tee(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bM=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(pu(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function $M(e){return!!(typeof e=="function"&&Sh()||!e||typeof e=="string"&&(e in P0||Sh())||W4(e)||Array.isArray(e)&&e.every($M))}const Zl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,P0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zl([0,.65,.55,1]),circOut:Zl([.55,0,1,.45]),backIn:Zl([.31,.01,.66,-.59]),backOut:Zl([.33,1.53,.69,.99])};function xM(e,t){if(e)return typeof e=="function"&&Sh()?bM(e,t):W4(e)?Zl(e):Array.isArray(e)?e.map(n=>xM(n,t)||P0.easeOut):P0[e]}const Vr={x:!1,y:!1};function wM(){return Vr.x||Vr.y}function Aee(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function DM(e,t){const n=Aee(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function PS(e){return!(e.pointerType==="touch"||wM())}function Pee(e,t,n={}){const[r,i,a]=DM(e,n),o=u=>{if(!PS(u))return;const{target:l}=u,f=t(l,u);if(typeof f!="function"||!l)return;const d=h=>{PS(h)&&(f(h),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,i)};return r.forEach(u=>{u.addEventListener("pointerenter",o,i)}),a}const CM=(e,t)=>t?e===t?!0:CM(e,t.parentElement):!1,H4=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_ee=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ree(e){return _ee.has(e.tagName)||e.tabIndex!==-1}const Jl=new WeakSet;function _S(e){return t=>{t.key==="Enter"&&e(t)}}function Yv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Oee=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_S(()=>{if(Jl.has(n))return;Yv(n,"down");const i=_S(()=>{Yv(n,"up")}),a=()=>Yv(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function RS(e){return H4(e)&&!wM()}function Mee(e,t,n={}){const[r,i,a]=DM(e,n),o=u=>{const l=u.currentTarget;if(!RS(u)||Jl.has(l))return;Jl.add(l);const f=t(l,u),d=(g,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),!(!RS(g)||!Jl.has(l))&&(Jl.delete(l),typeof f=="function"&&f(g,{success:y}))},h=g=>{d(g,n.useGlobalTarget||CM(l,g.target))},p=g=>{d(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",p,i)};return r.forEach(u=>{!Ree(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",o,i),u.addEventListener("focus",f=>Oee(f,i),i)}),a}function Fee(e){return e==="x"||e==="y"?Vr[e]?null:(Vr[e]=!0,()=>{Vr[e]=!1}):Vr.x||Vr.y?null:(Vr.x=Vr.y=!0,()=>{Vr.x=Vr.y=!1})}const EM=new Set(["width","height","top","left","right","bottom",...Fu]);let zd;function kee(){zd=void 0}const Ai={now:()=>(zd===void 0&&Ai.set(hn.isProcessing||RQ.useManualTiming?hn.timestamp:performance.now()),zd),set:e=>{zd=e,queueMicrotask(kee)}};function G4(e,t){e.indexOf(t)===-1&&e.push(t)}function Y4(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Iee([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[a]=e.splice(t,1);e.splice(i,0,a)}return e}let Z4=class{constructor(){this.subscriptions=[]}add(t){return G4(this.subscriptions,t),()=>Y4(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function SM(e,t){return t?e*(1e3/t):0}const OS=30,Bee=e=>!isNaN(parseFloat(e)),oc={current:void 0};let Lee=class{constructor(t,n={}){this.version="12.4.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Ai.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ai.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Bee(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Pp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Z4);const r=this.events[t].add(n);return t==="change"?()=>{r(),Et.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return oc.current&&oc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Ai.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>OS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,OS);return SM(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function gu(e,t){return new Lee(e,t)}function Vee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,gu(n))}function Nee(e,t){const n=Ac(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const u=yee(a[o]);Vee(e,o,u)}}function jee(e){return!!(pn(e)&&e.add)}function _0(e,t){const n=e.getValue("willChange");if(jee(n))return n.add(t)}function TM(e){return e.props[iM]}const AM=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Kee=1e-7,Uee=12;function zee(e,t,n,r,i){let a,o,u=0;do o=t+(n-t)/2,a=AM(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Kee&&++u<Uee);return o}function tf(e,t,n,r){if(e===t&&n===r)return Zn;const i=a=>zee(a,0,1,e,n);return a=>a===0||a===1?a:AM(i(a),t,r)}const PM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_M=e=>t=>1-e(1-t),RM=tf(.33,1.53,.69,.99),J4=_M(RM),OM=PM(J4),MM=e=>(e*=2)<1?.5*J4(e):.5*(2-Math.pow(2,-10*(e-1))),X4=e=>1-Math.sin(Math.acos(e)),FM=_M(X4),kM=PM(X4),IM=e=>/^0[^.\s]+$/u.test(e);function qee(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||IM(e):!0}const sc=e=>Math.round(e*1e5)/1e5,Q4=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Wee(e){return e==null}const Hee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,e3=(e,t)=>n=>!!(typeof n=="string"&&Hee.test(n)&&n.startsWith(e)||t&&!Wee(n)&&Object.prototype.hasOwnProperty.call(n,t)),BM=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,u]=r.match(Q4);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},Gee=e=>oa(0,255,e),Zv={...ku,transform:e=>Math.round(Gee(e))},_o={test:e3("rgb","red"),parse:BM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zv.transform(e)+", "+Zv.transform(t)+", "+Zv.transform(n)+", "+sc(Tc.transform(r))+")"};function Yee(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const R0={test:e3("#"),parse:Yee,transform:_o.transform},Ks={test:e3("hsl","hue"),parse:BM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ti.transform(sc(t))+", "+Ti.transform(sc(n))+", "+sc(Tc.transform(r))+")"},xn={test:e=>_o.test(e)||R0.test(e)||Ks.test(e),parse:e=>_o.test(e)?_o.parse(e):Ks.test(e)?Ks.parse(e):R0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_o.transform(e):Ks.transform(e)},Zee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jee(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Q4))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Zee))===null||n===void 0?void 0:n.length)||0)>0}const LM="number",VM="color",Xee="var",Qee="var(",MS="${}",ete=/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 Pc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const u=t.replace(ete,l=>(xn.test(l)?(r.color.push(a),i.push(VM),n.push(xn.parse(l))):l.startsWith(Qee)?(r.var.push(a),i.push(Xee),n.push(l)):(r.number.push(a),i.push(LM),n.push(parseFloat(l))),++a,MS)).split(MS);return{values:n,split:u,indexes:r,types:i}}function NM(e){return Pc(e).values}function jM(e){const{split:t,types:n}=Pc(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const u=n[o];u===LM?a+=sc(i[o]):u===VM?a+=xn.transform(i[o]):a+=i[o]}return a}}const tte=e=>typeof e=="number"?0:e;function nte(e){const t=NM(e);return jM(e)(t.map(tte))}const Wa={test:Jee,parse:NM,createTransformer:jM,getAnimatableNone:nte},rte=new Set(["brightness","contrast","saturate","opacity"]);function ite(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Q4)||[];if(!r)return e;const i=n.replace(r,"");let a=rte.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const ate=/\b([a-z-]*)\(.*?\)/gu,O0={...Wa,getAnimatableNone:e=>{const t=e.match(ate);return t?t.map(ite).join(" "):e}},ote={...I4,color:xn,backgroundColor:xn,outlineColor:xn,fill:xn,stroke:xn,borderColor:xn,borderTopColor:xn,borderRightColor:xn,borderBottomColor:xn,borderLeftColor:xn,filter:O0,WebkitFilter:O0},t3=e=>ote[e];function KM(e,t){let n=t3(e);return n!==O0&&(n=Wa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ste=new Set(["auto","none","0"]);function ute(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!ste.has(a)&&Pc(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=KM(n,i)}const FS=e=>e===ku||e===qe,kS=(e,t)=>parseFloat(e.split(", ")[t]),IS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return kS(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?kS(a[1],e):0}},lte=new Set(["x","y","z"]),cte=Fu.filter(e=>!lte.has(e));function fte(e){const t=[];return cte.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const yu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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:IS(4,13),y:IS(5,14)};yu.translateX=yu.x;yu.translateY=yu.y;const Io=new Set;let M0=!1,F0=!1;function UM(){if(F0){const e=Array.from(Io).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=fte(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var u;(u=r.getValue(a))===null||u===void 0||u.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}F0=!1,M0=!1,Io.forEach(e=>e.complete()),Io.clear()}function zM(){Io.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(F0=!0)})}function dte(){zM(),UM()}let n3=class{constructor(t,n,r,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Io.add(this),M0||(M0=!0,Et.read(zM),Et.resolveKeyframes(UM))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Io.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Io.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const qM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),hte=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pte(e){const t=hte.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const mte=4;function WM(e,t,n=1){Pi(n<=mte,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=pte(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return qM(o)?parseFloat(o):o}return k4(i)?WM(i,t,n+1):i}const HM=e=>t=>t.test(e),gte={test:e=>e==="auto",parse:e=>e},GM=[ku,qe,Ti,_a,eee,QQ,gte],BS=e=>GM.find(HM(e));let YM=class extends n3{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),k4(f))){const d=WM(f,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!EM.has(r)||t.length!==2)return;const[i,a]=t,o=BS(i),u=BS(a);if(o!==u)if(FS(o)&&FS(u))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)qee(t[i])&&r.push(i);r.length&&ute(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=yu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,u=i[o];i[o]=yu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,f])=>{n.getValue(l).set(f)}),this.resolveNoneKeyframes()}};const LS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Wa.test(e)||e==="0")&&!e.startsWith("url("));function yte(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function vte(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=LS(i,t),u=LS(a,t);return Mu(o===u,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!u?!1:yte(e)||(n==="spring"||q4(n))&&r}const bte=e=>e!==null;function Mp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(bte),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const $te=40;let ZM=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ai.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>$te?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&dte(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ai.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:u,onUpdate:l,isGenerator:f}=this.options;if(!f&&!vte(t,r,i,a))if(o)this.options.duration=0;else{l&&l(Mp(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const Ft=(e,t,n)=>e+(t-e)*n;function Jv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xte({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{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=Jv(l,u,e+1/3),a=Jv(l,u,e),o=Jv(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Th(e,t){return n=>n>0?t:e}const Xv=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},wte=[R0,_o,Ks],Dte=e=>wte.find(t=>t.test(e));function VS(e){const t=Dte(e);if(Mu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ks&&(n=xte(n)),n}const NS=(e,t)=>{const n=VS(e),r=VS(t);if(!n||!r)return Th(e,t);const i={...n};return a=>(i.red=Xv(n.red,r.red,a),i.green=Xv(n.green,r.green,a),i.blue=Xv(n.blue,r.blue,a),i.alpha=Ft(n.alpha,r.alpha,a),_o.transform(i))},Cte=(e,t)=>n=>t(e(n)),nf=(...e)=>e.reduce(Cte),k0=new Set(["none","hidden"]);function Ete(e,t){return k0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ste(e,t){return n=>Ft(e,t,n)}function r3(e){return typeof e=="number"?Ste:typeof e=="string"?k4(e)?Th:xn.test(e)?NS:Pte:Array.isArray(e)?JM:typeof e=="object"?xn.test(e)?NS:Tte:Th}function JM(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>r3(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function Tte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=r3(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function Ate(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],u=e.indexes[o][i[o]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[a]=l,i[o]++}return r}const Pte=(e,t)=>{const n=Wa.createTransformer(t),r=Pc(e),i=Pc(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?k0.has(e)&&!i.values.length||k0.has(t)&&!r.values.length?Ete(e,t):nf(JM(Ate(r,i),i.values),n):(Mu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Th(e,t))};function XM(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ft(e,t,n):r3(e)(e,t)}const _te=5;function QM(e,t,n){const r=Math.max(t-_te,0);return SM(n-e(r),t-r)}const It={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},jS=.001;function Rte({duration:e=It.duration,bounce:t=It.bounce,velocity:n=It.velocity,mass:r=It.mass}){let i,a;Mu(e<=Si(It.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=oa(It.minDamping,It.maxDamping,o),e=oa(It.minDuration,It.maxDuration,ta(e)),o<1?(i=f=>{const d=f*o,h=d*e,p=d-n,g=I0(f,o),y=Math.exp(-h);return jS-p/g*y},a=f=>{const h=f*o*e,p=h*n+n,g=Math.pow(o,2)*Math.pow(f,2)*e,y=Math.exp(-h),b=I0(Math.pow(f,2),o);return(-i(f)+jS>0?-1:1)*((p-g)*y)/b}):(i=f=>{const d=Math.exp(-f*e),h=(f-n)*e+1;return-.001+d*h},a=f=>{const d=Math.exp(-f*e),h=(n-f)*(e*e);return d*h});const u=5/e,l=Mte(i,a,u);if(e=Si(e),isNaN(l))return{stiffness:It.stiffness,damping:It.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const Ote=12;function Mte(e,t,n){let r=n;for(let i=1;i<Ote;i++)r=r-e(r)/t(r);return r}function I0(e,t){return e*Math.sqrt(1-t*t)}const Fte=["duration","bounce"],kte=["stiffness","damping","mass"];function KS(e,t){return t.some(n=>e[n]!==void 0)}function Ite(e){let t={velocity:It.velocity,stiffness:It.stiffness,damping:It.damping,mass:It.mass,isResolvedFromDuration:!1,...e};if(!KS(e,kte)&&KS(e,Fte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*oa(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:It.mass,stiffness:i,damping:a}}else{const n=Rte(e);t={...t,...n,mass:It.mass},t.isResolvedFromDuration=!0}return t}function eF(e=It.visualDuration,t=It.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:l,damping:f,mass:d,duration:h,velocity:p,isResolvedFromDuration:g}=Ite({...n,velocity:-ta(n.velocity||0)}),y=p||0,b=f/(2*Math.sqrt(l*d)),D=o-a,$=ta(Math.sqrt(l/d)),v=Math.abs(D)<5;r||(r=v?It.restSpeed.granular:It.restSpeed.default),i||(i=v?It.restDelta.granular:It.restDelta.default);let w;if(b<1){const E=I0($,b);w=A=>{const M=Math.exp(-b*$*A);return o-M*((y+b*$*D)/E*Math.sin(E*A)+D*Math.cos(E*A))}}else if(b===1)w=E=>o-Math.exp(-$*E)*(D+(y+$*D)*E);else{const E=$*Math.sqrt(b*b-1);w=A=>{const M=Math.exp(-b*$*A),S=Math.min(E*A,300);return o-M*((y+b*$*D)*Math.sinh(S)+E*D*Math.cosh(S))/E}}const T={calculatedDuration:g&&h||null,next:E=>{const A=w(E);if(g)u.done=E>=h;else{let M=0;b<1&&(M=E===0?Si(y):QM(w,E,A));const S=Math.abs(M)<=r,z=Math.abs(o-A)<=i;u.done=S&&z}return u.value=u.done?o:A,u},toString:()=>{const E=Math.min(vM(T),A0),A=bM(M=>T.next(E*M).value,E,30);return E+"ms "+A}};return T}function US({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:u,max:l,restDelta:f=.5,restSpeed:d}){const h=e[0],p={done:!1,value:h},g=S=>u!==void 0&&S<u||l!==void 0&&S>l,y=S=>u===void 0?l:l===void 0||Math.abs(u-S)<Math.abs(l-S)?u:l;let b=n*t;const D=h+b,$=o===void 0?D:o(D);$!==D&&(b=$-h);const v=S=>-b*Math.exp(-S/r),w=S=>$+v(S),T=S=>{const z=v(S),j=w(S);p.done=Math.abs(z)<=f,p.value=p.done?$:j};let E,A;const M=S=>{g(p.value)&&(E=S,A=eF({keyframes:[p.value,y(p.value)],velocity:QM(w,S,p.value),damping:i,stiffness:a,restDelta:f,restSpeed:d}))};return M(0),{calculatedDuration:null,next:S=>{let z=!1;return!A&&E===void 0&&(z=!0,T(S),M(S)),E!==void 0&&S>=E?A.next(S-E):(!z&&T(S),p)}}}const Bte=tf(.42,0,1,1),Lte=tf(0,0,.58,1),tF=tf(.42,0,.58,1),Vte=e=>Array.isArray(e)&&typeof e[0]!="number",zS={linear:Zn,easeIn:Bte,easeInOut:tF,easeOut:Lte,circIn:X4,circInOut:kM,circOut:FM,backIn:J4,backInOut:OM,backOut:RM,anticipate:MM},qS=e=>{if(W4(e)){Pi(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return tf(t,n,r,i)}else if(typeof e=="string")return Pi(zS[e]!==void 0,`Invalid easing type '${e}'`),zS[e];return e};function Nte(e,t,n){const r=[],i=n||XM,a=e.length-1;for(let o=0;o<a;o++){let u=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Zn:t;u=nf(l,u)}r.push(u)}return r}function nF(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Pi(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Nte(t,r,i),l=u.length,f=d=>{if(o&&d<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const p=pu(e[h],e[h+1],d);return u[h](p)};return n?d=>f(oa(e[0],e[a-1],d)):f}function jte(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=pu(0,t,r);e.push(Ft(n,1,i))}}function Kte(e){const t=[0];return jte(t,e.length-1),t}function Ute(e,t){return e.map(n=>n*t)}function zte(e,t){return e.map(()=>t||tF).splice(0,e.length-1)}function Ah({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Vte(r)?r.map(qS):qS(r),a={done:!1,value:t[0]},o=Ute(n&&n.length===t.length?n:Kte(t),e),u=nF(o,t,{ease:Array.isArray(i)?i:zte(t,i)});return{calculatedDuration:e,next:l=>(a.value=u(l),a.done=l>=e,a)}}const qte=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Et.update(t,!0),stop:()=>aa(t),now:()=>hn.isProcessing?hn.timestamp:Ai.now()}},Wte={decay:US,inertia:US,tween:Ah,keyframes:Ah,spring:eF},Hte=e=>e/100;let i3=class extends ZM{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||n3,u=(l,f)=>this.onKeyframesResolved(l,f);this.resolver=new o(a,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,u=q4(n)?n:Wte[n]||Ah;let l,f;u!==Ah&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Pi(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=nf(Hte,XM(t[0],t[1])),t=[0,100]);const d=u({...this.options,keyframes:t});a==="mirror"&&(f=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=vM(d));const{calculatedDuration:h}=d,p=h+i,g=p*(r+1)-i;return{generator:d,mirroredGenerator:f,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:p,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:f,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return a.next(0);const{delay:p,repeat:g,repeatType:y,repeatDelay:b,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const $=this.currentTime-p*(this.speed>=0?1:-1),v=this.speed>=0?$<0:$>d;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,T=a;if(g){const S=Math.min(this.currentTime,d)/h;let z=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&z--,z=Math.min(z,g+1),!!(z%2)&&(y==="reverse"?(j=1-j,b&&(j-=b/h)):y==="mirror"&&(T=o)),w=oa(0,1,j)*h}const E=v?{done:!1,value:l[0]}:T.next(w);u&&(E.value=u(E.value));let{done:A}=E;!v&&f!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&i!==void 0&&(E.value=Mp(l,this.options,i)),D&&D(E.value),M&&this.finish(),E}get duration(){const{resolved:t}=this;return t?ta(t.calculatedDuration):0}get time(){return ta(this.currentTime)}set time(t){t=Si(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ta(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=qte,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const Gte=new Set(["opacity","clipPath","filter","transform"]);function Yte(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:u="easeInOut",times:l}={}){const f={[t]:n};l&&(f.offset=l);const d=xM(u,i);return Array.isArray(d)&&(f.easing=d),e.animate(f,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const Zte=P4(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ph=10,Jte=2e4;function Xte(e){return q4(e.type)||e.type==="spring"||!$M(e.ease)}function Qte(e,t){const n=new i3({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<Jte;)r=n.sample(a),i.push(r.value),a+=Ph;return{times:void 0,keyframes:i,duration:a-Ph,ease:"linear"}}const rF={anticipate:MM,backInOut:OM,circInOut:kM};function ene(e){return e in rF}let WS=class extends ZM{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new YM(a,(o,u)=>this.onKeyframesResolved(o,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:o,motionValue:u,name:l,startTime:f}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof a=="string"&&Sh()&&ene(a)&&(a=rF[a]),Xte(this.options)){const{onComplete:h,onUpdate:p,motionValue:g,element:y,...b}=this.options,D=Qte(t,b);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,a=D.ease,o="keyframes"}const d=Yte(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:a});return d.startTime=f??this.calcStartTime(),this.pendingTimeline?(AS(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;u.set(Mp(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ta(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ta(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Si(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Zn;const{animation:r}=n;AS(r,t)}return Zn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:d,onComplete:h,element:p,...g}=this.options,y=new i3({...g,keyframes:r,duration:i,type:a,ease:o,times:u,isGenerator:!0}),b=Si(this.time);f.setWithVelocity(y.sample(b-Ph).value,y.sample(b).value,Ph)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:f}=n.owner.getProps();return Zte()&&r&&Gte.has(r)&&!l&&!f&&!i&&a!=="mirror"&&o!==0&&u!=="inertia"}};const tne={type:"spring",stiffness:500,damping:25,restSpeed:10},nne=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),rne={type:"keyframes",duration:.8},ine={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ane=(e,{keyframes:t})=>t.length>2?rne:Qo.has(e)?e.startsWith("scale")?nne(t[1]):tne:ine;function one({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:u,from:l,elapsed:f,...d}){return!!Object.keys(d).length}const a3=(e,t,n,r={},i,a)=>o=>{const u=z4(r,e)||{},l=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Si(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:p=>{t.set(p),u.onUpdate&&u.onUpdate(p)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:i};one(u)||(d={...d,...ane(e,d)}),d.duration&&(d.duration=Si(d.duration)),d.repeatDelay&&(d.repeatDelay=Si(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!a&&t.get()!==void 0){const p=Mp(d.keyframes,u);if(p!==void 0)return Et.update(()=>{d.onUpdate(p),d.onComplete()}),new Eee([])}return!a&&WS.supports(d)?new WS(d):new i3(d)};function sne({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function iF(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(o=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const p=e.getValue(h,(a=e.latestValues[h])!==null&&a!==void 0?a:null),g=l[h];if(g===void 0||d&&sne(d,h))continue;const y={delay:n,...z4(o||{},h)};let b=!1;if(window.MotionHandoffAnimation){const $=TM(e);if($){const v=window.MotionHandoffAnimation($,h,Et);v!==null&&(y.startTime=v,b=!0)}}_0(e,h),p.start(a3(h,p,g,e.shouldReduceMotion&&EM.has(h)?{type:!1}:y,e,b));const D=p.animation;D&&f.push(D)}return u&&Promise.all(f).then(()=>{Et.update(()=>{u&&Nee(e,u)})}),f}function B0(e,t,n={}){var r;const i=Ac(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(iF(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:p}=a;return une(e,t,d+f,h,p,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[f,d]=l==="beforeChildren"?[o,u]:[u,o];return f().then(()=>d())}else return Promise.all([o(),u(n.delay)])}function une(e,t,n=0,r=0,i=1,a){const o=[],u=(e.variantChildren.size-1)*r,l=i===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(lne).forEach((f,d)=>{f.notify("AnimationStart",t),o.push(B0(f,t,{...a,delay:n+l(d)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(o)}function lne(e,t){return e.sortNodePosition(t)}function cne(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>B0(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=B0(e,t,n);else{const i=typeof t=="function"?Ac(e,t,n.custom):t;r=Promise.all(iF(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function aF(e,t){if(!Array.isArray(t))return!1;const 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}const fne=R4.length;function oF(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?oF(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<fne;n++){const r=R4[n],i=e.props[r];(Ec(i)||i===!1)&&(t[r]=i)}return t}const dne=[..._4].reverse(),hne=_4.length;function pne(e){return t=>Promise.all(t.map(({animation:n,options:r})=>cne(e,n,r)))}function mne(e){let t=pne(e),n=HS(),r=!0;const i=l=>(f,d)=>{var h;const p=Ac(e,d,l==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(p){const{transition:g,transitionEnd:y,...b}=p;f={...f,...b,...y}}return f};function a(l){t=l(e)}function o(l){const{props:f}=e,d=oF(e.parent)||{},h=[],p=new Set;let g={},y=1/0;for(let D=0;D<hne;D++){const $=dne[D],v=n[$],w=f[$]!==void 0?f[$]:d[$],T=Ec(w),E=$===l?v.isActive:null;E===!1&&(y=D);let A=w===d[$]&&w!==f[$]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...g},!v.isActive&&E===null||!w&&!v.prevProp||Rp(w)||typeof w=="boolean")continue;const M=gne(v.prevProp,w);let S=M||$===l&&v.isActive&&!A&&T||D>y&&T,z=!1;const j=Array.isArray(w)?w:[w];let O=j.reduce(i($),{});E===!1&&(O={});const{prevResolvedValues:Z={}}=v,R={...Z,...O},V=k=>{S=!0,p.has(k)&&(z=!0,p.delete(k)),v.needsAnimating[k]=!0;const _=e.getValue(k);_&&(_.liveStyle=!1)};for(const k in R){const _=O[k],H=Z[k];if(g.hasOwnProperty(k))continue;let U=!1;T0(_)&&T0(H)?U=!aF(_,H):U=_!==H,U?_!=null?V(k):p.add(k):_!==void 0&&p.has(k)?V(k):v.protectedKeys[k]=!0}v.prevProp=w,v.prevResolvedValues=O,v.isActive&&(g={...g,...O}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(A&&M)||z)&&h.push(...j.map(k=>({animation:k,options:{type:$}})))}if(p.size){const D={};if(typeof f.initial!="boolean"){const $=Ac(e,Array.isArray(f.initial)?f.initial[0]:f.initial);$&&$.transition&&(D.transition=$.transition)}p.forEach($=>{const v=e.getBaseTarget($),w=e.getValue($);w&&(w.liveStyle=!0),D[$]=v??null}),h.push({animation:D})}let b=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(h):Promise.resolve()}function u(l,f){var d;if(n[l].isActive===f)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,f)}),n[l].isActive=f;const h=o(l);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:o,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=HS(),r=!0}}}function gne(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!aF(t,e):!1}function bo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function HS(){return{animate:bo(!0),whileInView:bo(),whileHover:bo(),whileTap:bo(),whileDrag:bo(),whileFocus:bo(),exit:bo()}}let Ja=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},yne=class extends Ja{constructor(t){super(t),t.animationState||(t.animationState=mne(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},vne=0,bne=class extends Ja{constructor(){super(...arguments),this.id=vne++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};const $ne={animation:{Feature:yne},exit:{Feature:bne}};function _c(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rf(e){return{point:{x:e.pageX,y:e.pageY}}}const xne=e=>t=>H4(t)&&e(t,rf(t));function uc(e,t,n,r){return _c(e,t,xne(n),r)}const GS=(e,t)=>Math.abs(e-t);function wne(e,t){const n=GS(e.x,t.x),r=GS(e.y,t.y);return Math.sqrt(n**2+r**2)}class sF{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=eb(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=wne(h.offset,{x:0,y:0})>=3;if(!p&&!g)return;const{point:y}=h,{timestamp:b}=hn;this.history.push({...y,timestamp:b});const{onStart:D,onMove:$}=this.handlers;p||(D&&D(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Qv(p,this.transformPagePoint),Et.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=eb(h.type==="pointercancel"?this.lastMoveEventInfo:Qv(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,D),y&&y(h,D)},!H4(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=rf(t),u=Qv(o,this.transformPagePoint),{point:l}=u,{timestamp:f}=hn;this.history=[{...l,timestamp:f}];const{onSessionStart:d}=n;d&&d(t,eb(u,this.history)),this.removeListeners=nf(uc(this.contextWindow,"pointermove",this.handlePointerMove),uc(this.contextWindow,"pointerup",this.handlePointerUp),uc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),aa(this.updatePoint)}}function Qv(e,t){return t?{point:t(e.point)}:e}function YS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eb({point:e},t){return{point:e,delta:YS(e,uF(t)),offset:YS(e,Dne(t)),velocity:Cne(t,.1)}}function Dne(e){return e[0]}function uF(e){return e[e.length-1]}function Cne(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=uF(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Si(t)));)n--;if(!r)return{x:0,y:0};const a=ta(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const 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}const lF=1e-4,Ene=1-lF,Sne=1+lF,cF=.01,Tne=0-cF,Ane=0+cF;function On(e){return e.max-e.min}function Pne(e,t,n){return Math.abs(e-t)<=n}function ZS(e,t,n,r=.5){e.origin=r,e.originPoint=Ft(t.min,t.max,e.origin),e.scale=On(n)/On(t),e.translate=Ft(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ene&&e.scale<=Sne||isNaN(e.scale))&&(e.scale=1),(e.translate>=Tne&&e.translate<=Ane||isNaN(e.translate))&&(e.translate=0)}function lc(e,t,n,r){ZS(e.x,t.x,n.x,r?r.originX:void 0),ZS(e.y,t.y,n.y,r?r.originY:void 0)}function JS(e,t,n){e.min=n.min+t.min,e.max=e.min+On(t)}function _ne(e,t,n){JS(e.x,t.x,n.x),JS(e.y,t.y,n.y)}function XS(e,t,n){e.min=t.min-n.min,e.max=e.min+On(t)}function cc(e,t,n){XS(e.x,t.x,n.x),XS(e.y,t.y,n.y)}function Rne(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ft(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ft(n,e,r.max):Math.min(e,n)),e}function QS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function One(e,{top:t,left:n,bottom:r,right:i}){return{x:QS(e.x,n,i),y:QS(e.y,t,r)}}function e5(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 Mne(e,t){return{x:e5(e.x,t.x),y:e5(e.y,t.y)}}function Fne(e,t){let n=.5;const r=On(e),i=On(t);return i>r?n=pu(t.min,t.max-r,e.min):r>i&&(n=pu(e.min,e.max-i,t.min)),oa(0,1,n)}function kne(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const L0=.35;function Ine(e=L0){return e===!1?e=0:e===!0&&(e=L0),{x:t5(e,"left","right"),y:t5(e,"top","bottom")}}function t5(e,t,n){return{min:n5(e,t),max:n5(e,n)}}function n5(e,t){return typeof e=="number"?e:e[t]||0}const r5=()=>({translate:0,scale:1,origin:0,originPoint:0}),Us=()=>({x:r5(),y:r5()}),i5=()=>({min:0,max:0}),qt=()=>({x:i5(),y:i5()});function $r(e){return[e("x"),e("y")]}function fF({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Bne({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Lne(e,t){if(!t)return e;const 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 tb(e){return e===void 0||e===1}function V0({scale:e,scaleX:t,scaleY:n}){return!tb(e)||!tb(t)||!tb(n)}function xo(e){return V0(e)||dF(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dF(e){return a5(e.x)||a5(e.y)}function a5(e){return e&&e!=="0%"}function _h(e,t,n){const r=e-n,i=t*r;return n+i}function o5(e,t,n,r,i){return i!==void 0&&(e=_h(e,i,r)),_h(e,n,r)+t}function N0(e,t=0,n=1,r,i){e.min=o5(e.min,t,n,r,i),e.max=o5(e.max,t,n,r,i)}function hF(e,{x:t,y:n}){N0(e.x,t.translate,t.scale,t.originPoint),N0(e.y,n.translate,n.scale,n.originPoint)}const s5=.999999999999,u5=1.0000000000001;function Vne(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let u=0;u<i;u++){a=n[u],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&qs(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,hF(e,o)),r&&xo(a.latestValues)&&qs(e,a.latestValues))}t.x<u5&&t.x>s5&&(t.x=1),t.y<u5&&t.y>s5&&(t.y=1)}function zs(e,t){e.min=e.min+t,e.max=e.max+t}function l5(e,t,n,r,i=.5){const a=Ft(e.min,e.max,i);N0(e,t,n,a,r)}function qs(e,t){l5(e.x,t.x,t.scaleX,t.scale,t.originX),l5(e.y,t.y,t.scaleY,t.scale,t.originY)}function pF(e,t){return fF(Lne(e.getBoundingClientRect(),t))}function Nne(e,t,n){const r=pF(e,n),{scroll:i}=t;return i&&(zs(r.x,i.offset.x),zs(r.y,i.offset.y)),r}const mF=({current:e})=>e?e.ownerDocument.defaultView:null,jne=new WeakMap;class Kne{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=qt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(rf(d).point)},a=(d,h)=>{const{drag:p,dragPropagation:g,onDragStart:y}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Fee(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$r(D=>{let $=this.getAxisMotionValue(D).get()||0;if(Ti.test($)){const{projection:v}=this.visualElement;if(v&&v.layout){const w=v.layout.layoutBox[D];w&&($=On(w)*(parseFloat($)/100))}}this.originPoint[D]=$}),y&&Et.postRender(()=>y(d,h)),_0(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},o=(d,h)=>{const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:y,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:D}=h;if(g&&this.currentDirection===null){this.currentDirection=Une(D),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,D),this.updateAxis("y",h.point,D),this.visualElement.render(),b&&b(d,h)},u=(d,h)=>this.stop(d,h),l=()=>$r(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new sF(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:mF(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Et.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!xd(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Rne(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&js(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=One(i.layoutBox,n):this.constraints=!1,this.elastic=Ine(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&$r(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=kne(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!js(t))return!1;const r=t.current;Pi(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Nne(r,i.root,this.visualElement.getTransformPagePoint());let o=Mne(i.layout.layoutBox,a);if(n){const u=n(Bne(o));this.hasMutatedConstraints=!!u,u&&(o=fF(u))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},f=$r(d=>{if(!xd(d,n,this.currentDirection))return;let h=l&&l[d]||{};o&&(h={min:0,max:0});const p=i?200:1e6,g=i?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...h};return this.startAxisValueAnimation(d,y)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return _0(this.visualElement,t),r.start(a3(t,r,0,n,this.visualElement,!1))}stopAnimation(){$r(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){$r(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){$r(n=>{const{drag:r}=this.getProps();if(!xd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:u}=i.layout.layoutBox[n];a.set(t[n]-Ft(o,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!js(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$r(o=>{const u=this.getAxisMotionValue(o);if(u&&this.constraints!==!1){const l=u.get();i[o]=Fne({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),$r(o=>{if(!xd(o,t,null))return;const u=this.getAxisMotionValue(o),{min:l,max:f}=this.constraints[o];u.set(Ft(l,f,i[o]))})}addListeners(){if(!this.visualElement.current)return;jne.set(this.visualElement,this);const t=this.visualElement.current,n=uc(t,"pointerdown",l=>{const{drag:f,dragListener:d=!0}=this.getProps();f&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();js(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Et.read(r);const o=_c(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f})=>{this.isDragging&&f&&($r(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=l[d].translate,h.set(h.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=L0,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:u}}}function xd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Une(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class zne extends Ja{constructor(t){super(t),this.removeGroupControls=Zn,this.removeListeners=Zn,this.controls=new Kne(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zn}unmount(){this.removeGroupControls(),this.removeListeners()}}const c5=e=>(t,n)=>{e&&Et.postRender(()=>e(t,n))};class qne extends Ja{constructor(){super(...arguments),this.removePointerDownListener=Zn}onPointerDown(t){this.session=new sF(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mF(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:c5(t),onStart:c5(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Et.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=uc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const qd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function f5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const kl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(qe.test(e))e=parseFloat(e);else return e;const n=f5(e,t.target.x),r=f5(e,t.target.y);return`${n}% ${r}%`}},Wne={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Wa.parse(e);if(i.length>5)return r;const a=Wa.createTransformer(e),o=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=u,i[1+o]/=l;const f=Ft(u,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=f),typeof i[3+o]=="number"&&(i[3+o]/=f),a(i)}};class Hne extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;XQ(Gne),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),qd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Et.postRender(()=>{const u=o.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),M4.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function gF(e){const[t,n]=_Q(),r=C.useContext(XO);return ra.jsx(Hne,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(aM),isPresent:t,safeToRemove:n})}const Gne={borderRadius:{...kl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kl,borderTopRightRadius:kl,borderBottomLeftRadius:kl,borderBottomRightRadius:kl,boxShadow:Wne};function Yne(e,t,n){const r=pn(e)?e:gu(e);return r.start(a3("",r,t,n)),r.animation}function Zne(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Jne=(e,t)=>e.depth-t.depth;class Xne{constructor(){this.children=[],this.isDirty=!1}add(t){G4(this.children,t),this.isDirty=!0}remove(t){Y4(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Jne),this.isDirty=!1,this.children.forEach(t)}}function Qne(e,t){const n=Ai.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(aa(r),e(a-t))};return Et.read(r,!0),()=>aa(r)}const yF=["TopLeft","TopRight","BottomLeft","BottomRight"],ere=yF.length,d5=e=>typeof e=="string"?parseFloat(e):e,h5=e=>typeof e=="number"||qe.test(e);function tre(e,t,n,r,i,a){i?(e.opacity=Ft(0,n.opacity!==void 0?n.opacity:1,nre(r)),e.opacityExit=Ft(t.opacity!==void 0?t.opacity:1,0,rre(r))):a&&(e.opacity=Ft(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<ere;o++){const u=`border${yF[o]}Radius`;let l=p5(t,u),f=p5(n,u);if(l===void 0&&f===void 0)continue;l||(l=0),f||(f=0),l===0||f===0||h5(l)===h5(f)?(e[u]=Math.max(Ft(d5(l),d5(f),r),0),(Ti.test(f)||Ti.test(l))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=Ft(t.rotate||0,n.rotate||0,r))}function p5(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const nre=vF(0,.5,FM),rre=vF(.5,.95,Zn);function vF(e,t,n){return r=>r<e?0:r>t?1:n(pu(e,t,r))}function m5(e,t){e.min=t.min,e.max=t.max}function vr(e,t){m5(e.x,t.x),m5(e.y,t.y)}function g5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function y5(e,t,n,r,i){return e-=t,e=_h(e,1/n,r),i!==void 0&&(e=_h(e,1/i,r)),e}function ire(e,t=0,n=1,r=.5,i,a=e,o=e){if(Ti.test(t)&&(t=parseFloat(t),t=Ft(o.min,o.max,t/100)-o.min),typeof t!="number")return;let u=Ft(a.min,a.max,r);e===a&&(u-=t),e.min=y5(e.min,t,n,u,i),e.max=y5(e.max,t,n,u,i)}function v5(e,t,[n,r,i],a,o){ire(e,t[n],t[r],t[i],t.scale,a,o)}const are=["x","scaleX","originX"],ore=["y","scaleY","originY"];function b5(e,t,n,r){v5(e.x,t,are,n?n.x:void 0,r?r.x:void 0),v5(e.y,t,ore,n?n.y:void 0,r?r.y:void 0)}function $5(e){return e.translate===0&&e.scale===1}function bF(e){return $5(e.x)&&$5(e.y)}function x5(e,t){return e.min===t.min&&e.max===t.max}function sre(e,t){return x5(e.x,t.x)&&x5(e.y,t.y)}function w5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $F(e,t){return w5(e.x,t.x)&&w5(e.y,t.y)}function D5(e){return On(e.x)/On(e.y)}function C5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ure{constructor(){this.members=[]}add(t){G4(this.members,t),t.scheduleRender()}remove(t){if(Y4(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lre(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0: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){const{transformPerspective:f,rotate:d,rotateX:h,rotateY:p,skewX:g,skewY:y}=n;f&&(r=`perspective(${f}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),p&&(r+=`rotateY(${p}deg) `),g&&(r+=`skewX(${g}deg) `),y&&(r+=`skewY(${y}deg) `)}const u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(r+=`scale(${u}, ${l})`),r||"none"}const nb=["","X","Y","Z"],cre={visibility:"hidden"},E5=1e3;let fre=0;function rb(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function xF(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=TM(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Et,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&xF(r)}function wF({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},u=t==null?void 0:t()){this.id=fre++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(pre),this.nodes.forEach(bre),this.nodes.forEach($re),this.nodes.forEach(mre)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xne)}addEventListener(o,u){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Z4),this.eventHandlers.get(o).add(u)}notifyListeners(o,...u){const l=this.eventHandlers.get(o);l&&l.notify(...u)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Zne(o),this.instance=o;const{layoutId:l,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(f||l)&&(this.isLayoutDirty=!0),e){let h;const p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Qne(p,250),qd.hasAnimatedSinceResize&&(qd.hasAnimatedSinceResize=!1,this.nodes.forEach(T5))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||Ere,{onLayoutAnimationStart:D,onLayoutAnimationComplete:$}=d.getProps(),v=!this.targetLayout||!$F(this.targetLayout,y),w=!p&&g;if(this.options.layoutRoot||this.resumeFrom||w||p&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,w);const T={...z4(b,"layout"),onPlay:D,onComplete:$};(d.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else p||T5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,aa(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(xre),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xF(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:l}=this.options;if(u===void 0&&!l)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(S5);return}this.isUpdating||this.nodes.forEach(yre),this.isUpdating=!1,this.nodes.forEach(vre),this.nodes.forEach(dre),this.nodes.forEach(hre),this.clearAllSnapshots();const u=Ai.now();hn.delta=oa(0,1e3/60,u-hn.timestamp),hn.timestamp=u,hn.isProcessing=!0,Gv.update.process(hn),Gv.preRender.process(hn),Gv.render.process(hn),hn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,M4.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(gre),this.sharedNodes.forEach(wre)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!On(this.snapshot.measuredBox.x)&&!On(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=qt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(u=!1),u){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!bF(this.projectionDelta),l=this.getTransformTemplate(),f=l?l(this.latestValues,""):void 0,d=f!==this.prevTransformTemplateValue;o&&(u||xo(this.latestValues)||d)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const u=this.measurePageBox();let l=this.removeElementScroll(u);return o&&(l=this.removeTransform(l)),Sre(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:u}=this.options;if(!u)return qt();const l=u.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(Tre))){const{scroll:d}=this.root;d&&(zs(l.x,d.offset.x),zs(l.y,d.offset.y))}return l}removeElementScroll(o){var u;const l=qt();if(vr(l,o),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return l;for(let f=0;f<this.path.length;f++){const d=this.path[f],{scroll:h,options:p}=d;d!==this.root&&h&&p.layoutScroll&&(h.wasRoot&&vr(l,o),zs(l.x,h.offset.x),zs(l.y,h.offset.y))}return l}applyTransform(o,u=!1){const l=qt();vr(l,o);for(let f=0;f<this.path.length;f++){const d=this.path[f];!u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&qs(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),xo(d.latestValues)&&qs(l,d.latestValues)}return xo(this.latestValues)&&qs(l,this.latestValues),l}removeTransform(o){const u=qt();vr(u,o);for(let l=0;l<this.path.length;l++){const f=this.path[l];if(!f.instance||!xo(f.latestValues))continue;V0(f.latestValues)&&f.updateSnapshot();const d=qt(),h=f.measurePageBox();vr(d,h),b5(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,d)}return xo(this.latestValues)&&b5(u,this.latestValues),u}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}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!==hn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var u;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==l;if(!(o||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:p}=this.options;if(!(!this.layout||!(h||p))){if(this.resolvedRelativeTargetAt=hn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),cc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),vr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=qt(),this.targetWithTransforms=qt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_ne(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):vr(this.target,this.layout.layoutBox),hF(this.target,this.targetDelta)):vr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),cc(this.relativeTargetOrigin,this.target,g.target),vr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||V0(this.parent.latestValues)||dF(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const u=this.getLead(),l=!!this.resumingFrom||this!==u;let f=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(f=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===hn.timestamp&&(f=!1),f)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;vr(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;Vne(this.layoutCorrected,this.treeScale,this.path,l),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=qt());const{target:y}=u;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(g5(this.prevProjectionDelta.x,this.projectionDelta.x),g5(this.prevProjectionDelta.y,this.projectionDelta.y)),lc(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!C5(this.projectionDelta.x,this.prevProjectionDelta.x)||!C5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Us(),this.projectionDelta=Us(),this.projectionDeltaWithTransform=Us()}setAnimationOrigin(o,u=!1){const l=this.snapshot,f=l?l.latestValues:{},d={...this.latestValues},h=Us();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const p=qt(),g=l?l.source:void 0,y=this.layout?this.layout.source:void 0,b=g!==y,D=this.getStack(),$=!D||D.members.length<=1,v=!!(b&&!$&&this.options.crossfade===!0&&!this.path.some(Cre));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const E=T/1e3;A5(h.x,o.x,E),A5(h.y,o.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Dre(this.relativeTarget,this.relativeTargetOrigin,p,E),w&&sre(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=qt()),vr(w,this.relativeTarget)),b&&(this.animationValues=d,tre(d,f,this.latestValues,E,v,$)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(aa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Et.update(()=>{qd.hasAnimatedSinceResize=!0,this.currentAnimation=Yne(0,E5,{...o,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(E5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:u,target:l,layout:f,latestValues:d}=o;if(!(!u||!l||!f)){if(this!==o&&this.layout&&f&&DF(this.options.animationType,this.layout.layoutBox,f.layoutBox)){l=this.target||qt();const h=On(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const p=On(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+p}vr(u,l),qs(u,d),lc(this.projectionDeltaWithTransform,this.layoutCorrected,u,d)}}registerSharedNode(o,u){this.sharedNodes.has(o)||this.sharedNodes.set(o,new ure),this.sharedNodes.get(o).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:u}=this.options;return u?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:u}=this.options;return u?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:u,preserveFollowOpacity:l}={}){const f=this.getStack();f&&f.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let u=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(u=!0),!u)return;const f={};l.z&&rb("z",o,f,this.animationValues);for(let d=0;d<nb.length;d++)rb(`rotate${nb[d]}`,o,f,this.animationValues),rb(`skew${nb[d]}`,o,f,this.animationValues);o.render();for(const d in f)o.setStaticValue(d,f[d]),this.animationValues&&(this.animationValues[d]=f[d]);o.scheduleRender()}getProjectionStyles(o){var u,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return cre;const f={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Ud(o==null?void 0:o.pointerEvents)||"",f.transform=d?d(this.latestValues,""):"none",f;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ud(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!xo(this.latestValues)&&(b.transform=d?d({},""):"none",this.hasProjected=!1),b}const p=h.animationValues||h.latestValues;this.applyTransformsToTarget(),f.transform=lre(this.projectionDeltaWithTransform,this.treeScale,p),d&&(f.transform=d(p,f.transform));const{x:g,y}=this.projectionDelta;f.transformOrigin=`${g.origin*100}% ${y.origin*100}% 0`,h.animationValues?f.opacity=h===this?(l=(u=p.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:f.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in Sc){if(p[b]===void 0)continue;const{correct:D,applyTo:$,isCSSVariable:v}=Sc[b],w=f.transform==="none"?p[b]:D(p[b],h);if($){const T=$.length;for(let E=0;E<T;E++)f[$[E]]=w}else v?this.options.visualElement.renderState.vars[b]=w:f[b]=w}return this.options.layoutId&&(f.pointerEvents=h===this?Ud(o==null?void 0:o.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var u;return(u=o.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(S5),this.root.sharedNodes.clear()}}}function dre(e){e.updateLayout()}function hre(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?$r(h=>{const p=o?n.measuredBox[h]:n.layoutBox[h],g=On(p);p.min=r[h].min,p.max=p.min+g}):DF(a,n.layoutBox,r)&&$r(h=>{const p=o?n.measuredBox[h]:n.layoutBox[h],g=On(r[h]);p.max=p.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=Us();lc(u,r,n.layoutBox);const l=Us();o?lc(l,e.applyTransform(i,!0),n.measuredBox):lc(l,r,n.layoutBox);const f=!bF(u);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:p,layout:g}=h;if(p&&g){const y=qt();cc(y,n.layoutBox,p.layoutBox);const b=qt();cc(b,r,g.layoutBox),$F(y,b)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=y,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function pre(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function mre(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gre(e){e.clearSnapshot()}function S5(e){e.clearMeasurements()}function yre(e){e.isLayoutDirty=!1}function vre(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function T5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function bre(e){e.resolveTargetDelta()}function $re(e){e.calcProjection()}function xre(e){e.resetSkewAndRotation()}function wre(e){e.removeLeadSnapshot()}function A5(e,t,n){e.translate=Ft(t.translate,0,n),e.scale=Ft(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function P5(e,t,n,r){e.min=Ft(t.min,n.min,r),e.max=Ft(t.max,n.max,r)}function Dre(e,t,n,r){P5(e.x,t.x,n.x,r),P5(e.y,t.y,n.y,r)}function Cre(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ere={duration:.45,ease:[.4,0,.1,1]},_5=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),R5=_5("applewebkit/")&&!_5("chrome/")?Math.round:Zn;function O5(e){e.min=R5(e.min),e.max=R5(e.max)}function Sre(e){O5(e.x),O5(e.y)}function DF(e,t,n){return e==="position"||e==="preserve-aspect"&&!Pne(D5(t),D5(n),.2)}function Tre(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Are=wF({attachResizeListener:(e,t)=>_c(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ib={current:void 0},CF=wF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ib.current){const e=new Are({});e.mount(window),e.setOptions({layoutScroll:!0}),ib.current=e}return ib.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Pre={pan:{Feature:qne},drag:{Feature:zne,ProjectionNode:CF,MeasureLayout:gF}};function M5(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&Et.postRender(()=>a(t,rf(t)))}let _re=class extends Ja{mount(){const{current:t}=this.node;t&&(this.unmount=Pee(t,(n,r)=>(M5(this.node,r,"Start"),i=>M5(this.node,i,"End"))))}unmount(){}},Rre=class extends Ja{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=nf(_c(this.node.current,"focus",()=>this.onFocus()),_c(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function F5(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&Et.postRender(()=>a(t,rf(t)))}let Ore=class extends Ja{mount(){const{current:t}=this.node;t&&(this.unmount=Mee(t,(n,r)=>(F5(this.node,r,"Start"),(i,{success:a})=>F5(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const j0=new WeakMap,ab=new WeakMap,Mre=e=>{const t=j0.get(e.target);t&&t(e)},Fre=e=>{e.forEach(Mre)};function kre({root:e,...t}){const n=e||document;ab.has(n)||ab.set(n,{});const r=ab.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Fre,{root:e,...t})),r[i]}function Ire(e,t,n){const r=kre(t);return j0.set(e,n),r.observe(e),()=>{j0.delete(e),r.unobserve(e)}}const Bre={some:0,all:1};let Lre=class extends Ja{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Bre[i]},u=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),p=f?d:h;p&&p(l)};return Ire(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Vre(t,n))&&this.startObserver()}unmount(){}};function Vre({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Nre={inView:{Feature:Lre},tap:{Feature:Ore},focus:{Feature:Rre},hover:{Feature:_re}},jre={layout:{ProjectionNode:CF,MeasureLayout:gF}},K0={current:null},EF={current:!1};function Kre(){if(EF.current=!0,!!A4)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>K0.current=e.matches;e.addListener(t),t()}else K0.current=!1}const Ure=[...GM,xn,Wa],zre=e=>Ure.find(HM(e)),qre=new WeakMap;function Wre(e,t,n){for(const r in t){const i=t[r],a=n[r];if(pn(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Pp(i.version==="12.4.1",`Attempting to mix Motion versions ${i.version} with 12.4.1 may not work as expected.`);else if(pn(a))e.addValue(r,gu(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,gu(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const k5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Hre=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=n3,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=Ai.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Et.render(this.render,!1,!0))};const{latestValues:l,renderState:f,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=Op(n),this.isVariantNode=rM(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in p){const y=p[g];l[g]!==void 0&&pn(y)&&y.set(l[g],!1)}}mount(t){this.current=t,qre.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),EF.current||Kre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:K0.current,process.env.NODE_ENV!=="production"&&Pp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),aa(this.notifyUpdate),aa(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Qo.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Et.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in mu){const n=mu[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<k5.length;r++){const i=k5[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Wre(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=gu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(qM(i)||IM(i))?i=parseFloat(i):!zre(i)&&Wa.test(n)&&(i=KM(t,n)),this.setBaseTarget(t,pn(i)?i.get():i)),pn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=K4(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!pn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Z4),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},SF=class extends Hre{constructor(){super(...arguments),this.KeyframeResolver=YM}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;pn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function Gre(e){return window.getComputedStyle(e)}let Yre=class extends SF{constructor(){super(...arguments),this.type="html",this.renderInstance=pM}readValueFromInstance(t,n){if(Qo.has(n)){const r=t3(n);return r&&r.default||0}else{const r=Gre(t),i=(F4(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return pF(t,n)}build(t,n,r){B4(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return U4(t,n,r)}},Zre=class extends SF{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&hM(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Qo.has(n)){const r=t3(n);return r&&r.default||0}return n=mM.has(n)?n:O4(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return yM(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Et.postRender(this.updateDimensions)}build(t,n,r){N4(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){gM(t,n,r,i)}mount(t){this.isSVGTag=j4(t.tagName),super.mount(t)}};const Jre=(e,t)=>V4(e)?new Zre(t):new Yre(t,{allowProjection:e!==C.Fragment}),Xre=wee({...$ne,...Nre,...Pre,...jre},Jre),TF=LQ(Xre);function AF(e){const t=Qc(()=>gu(e)),{isStatic:n}=C.useContext(T4);if(n){const[,r]=C.useState(e);C.useEffect(()=>t.on("change",r),[])}return t}function PF(e,t){const n=AF(t()),r=()=>n.set(t());return r(),QO(()=>{const i=()=>Et.preRender(r,!1,!0),a=e.map(o=>o.on("change",i));return()=>{a.forEach(o=>o()),aa(r)}}),n}const Qre=e=>e&&typeof e=="object"&&e.mix,eie=e=>Qre(e)?e.mix:void 0;function tie(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],u=nF(i,a,{mixer:eie(a[0]),...o});return t?u(r):u}function nie(e){oc.current=[],e();const t=PF(oc.current,e);return oc.current=void 0,t}function rie(e,t,n,r){if(typeof e=="function")return nie(e);const i=typeof t=="function"?t:tie(t,n,r);return Array.isArray(e)?I5(e,i):I5([e],([a])=>i(a))}function I5(e,t){const n=Qc(()=>[]);return PF(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const _F=C.createContext(null);function iie(e,t,n,r){if(!r)return e;const i=e.findIndex(d=>d.value===t);if(i===-1)return e;const a=r>0?1:-1,o=e[i+a];if(!o)return e;const u=e[i],l=o.layout,f=Ft(l.min,l.max,.5);return a===1&&u.layout.max+n>f||a===-1&&u.layout.min+n<f?Iee(e,i,i+a):e}function aie({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...a},o){const u=Qc(()=>TF[t]),l=[],f=C.useRef(!1);Pi(!!i,"Reorder.Group must be provided a values prop");const d={axis:n,registerItem:(h,p)=>{const g=l.findIndex(y=>h===y.value);g!==-1?l[g].layout=p[n]:l.push({value:h,layout:p[n]}),l.sort(uie)},updateOrder:(h,p,g)=>{if(f.current)return;const y=iie(l,h,p,g);l!==y&&(f.current=!0,r(y.map(sie).filter(b=>i.indexOf(b)!==-1)))}};return C.useEffect(()=>{f.current=!1}),ra.jsx(u,{...a,ref:o,ignoreStrict:!0,children:ra.jsx(_F.Provider,{value:d,children:e})})}const oie=C.forwardRef(aie);function sie(e){return e.value}function uie(e,t){return e.layout.min-t.layout.min}function B5(e,t=0){return pn(e)?e:AF(t)}function lie({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:a=!0,...o},u){const l=Qc(()=>TF[r]),f=C.useContext(_F),d={x:B5(t.x),y:B5(t.y)},h=rie([d.x,d.y],([b,D])=>b||D?1:"unset");Pi(!!f,"Reorder.Item must be a child of Reorder.Group");const{axis:p,registerItem:g,updateOrder:y}=f;return ra.jsx(l,{drag:p,...o,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:h},layout:a,onDrag:(b,D)=>{const{velocity:$}=D;$[p]&&y(n,d[p].get(),$[p]),i&&i(b,D)},onLayoutMeasure:b=>g(n,b),ref:u,ignoreStrict:!0,children:e})}const cie=C.forwardRef(lie),L5=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},RF=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?L5(r.ref,n,e):r.refs&&r.refs.forEach(i=>L5(i,n,e))}},fie=(e,t)=>{t.shouldUseNativeValidation&&RF(e,t);const n={};for(const r in e){const i=Ae(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(die(t.names||Object.keys(e),r)){const o=Object.assign({},Ae(n,r));gt(o,"root",a),gt(n,r,o)}else gt(n,r,a)}return n},die=(e,t)=>e.some(n=>n.startsWith(t+"."));function hie(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,u){try{var l=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(f){return a.shouldUseNativeValidation&&RF({},a),{values:n.raw?r:f,errors:{}}}))}catch(f){return u(f)}return l&&l.then?l.then(void 0,u):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:fie((u=o,l=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(u.inner||[]).reduce(function(f,d){if(f[d.path]||(f[d.path]={message:d.message,type:d.type}),l){var h=f[d.path].types,p=h&&h[d.type];f[d.path]=fA(d.path,l,f,d.type,p?[].concat(p,d.message):d.message)}return f},{})),a)};var u,l}))}catch(o){return Promise.reject(o)}}}var ob,V5;function pie(){if(V5)return ob;V5=1;var e=_u(),t=Ou(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return ob=r,ob}var mie=pie();const gie=sa(mie),yie=C.createContext({});function vie(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const OF=C.createContext(null),MF=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),o3=typeof window<"u",bie=o3?C.useLayoutEffect:C.useEffect,Ha=e=>e;let af=Ha,vu=Ha;process.env.NODE_ENV!=="production"&&(af=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vu=(e,t)=>{if(!e)throw new Error(t)});const $ie={useManualTiming:!1},wd=["read","resolveKeyframes","update","preRender","render","postRender"];function xie(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(f.schedule(d),e()),d(u)}const f={schedule:(d,h=!1,p=!1)=>{const y=p&&i?n:r;return h&&o.add(d),y.has(d)||y.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(u=d,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,f.process(d))}};return f}const wie=40;function FF(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=wd.reduce(($,v)=>($[v]=xie(a),$),{}),{read:u,resolveKeyframes:l,update:f,preRender:d,render:h,postRender:p}=o,g=()=>{const $=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min($-i.timestamp,wie),1),i.timestamp=$,i.isProcessing=!0,u.process(i),l.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},y=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:wd.reduce(($,v)=>{const w=o[v];return $[v]=(T,E=!1,A=!1)=>(n||y(),w.schedule(T,E,A)),$},{}),cancel:$=>{for(let v=0;v<wd.length;v++)o[wd[v]].cancel($)},state:i,steps:o}}const{schedule:Jn,cancel:U0,state:Rh}=FF(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ha,!0),s3=C.createContext({strict:!1}),N5={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"]},bu={};for(const e in N5)bu[e]={isEnabled:t=>N5[e].some(n=>!!t[n])};function j5(e){for(const t in e)bu[t]={...bu[t],...e[t]}}function Die({children:e,features:t,strict:n=!1}){const[,r]=C.useState(!sb(t)),i=C.useRef(void 0);if(!sb(t)){const{renderer:a,...o}=t;i.current=a,j5(o)}return C.useEffect(()=>{sb(t)&&t().then(({renderer:a,...o})=>{j5(o),i.current=a,r(!0)})},[]),ra.jsx(s3.Provider,{value:{renderer:i.current,strict:n},children:e})}function sb(e){return typeof e=="function"}const Cie=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Oh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Cie.has(e)}let kF=e=>!Oh(e);function Eie(e){e&&(kF=t=>t.startsWith("on")?!Oh(t):e(t))}try{Eie(require("@emotion/is-prop-valid").default)}catch{}function Sie(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(kF(i)||n===!0&&Oh(i)||!t&&!Oh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const K5=new Set;function Fp(e,t,n){e||K5.has(t)||(console.warn(t),K5.add(t))}function Tie(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Fp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const kp=C.createContext({});function Ip(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Rc(e){return typeof e=="string"||Array.isArray(e)}const u3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],l3=["initial",...u3];function Bp(e){return Ip(e.animate)||l3.some(t=>Rc(e[t]))}function IF(e){return!!(Bp(e)||e.variants)}function Aie(e,t){if(Bp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Rc(n)?n:void 0,animate:Rc(r)?r:void 0}}return e.inherit!==!1?t:{}}function Pie(e){const{initial:t,animate:n}=Aie(e,C.useContext(kp));return C.useMemo(()=>({initial:t,animate:n}),[U5(t),U5(n)])}function U5(e){return Array.isArray(e)?e.join(" "):e}const _ie=Symbol.for("motionComponentSymbol");function BF(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Rie(e,t,n){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):BF(n)&&(n.current=r))},[t])}const c3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Oie="framerAppearId",LF="data-"+c3(Oie),{schedule:Mie}=FF(queueMicrotask,!1),Fie=C.createContext({});function kie(e,t,n,r,i){var a,o;const{visualElement:u}=C.useContext(kp),l=C.useContext(s3),f=C.useContext(OF),d=C.useContext(MF).reducedMotion,h=C.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:d}));const p=h.current,g=C.useContext(Fie);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&Iie(h.current,n,i,g);const y=C.useRef(!1);C.useInsertionEffect(()=>{p&&y.current&&p.update(n,f)});const b=n[LF],D=C.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,b)));return bie(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Mie.render(p.render),D.current&&p.animationState&&p.animationState.animateChanges())}),C.useEffect(()=>{p&&(!D.current&&p.animationState&&p.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var $;($=window.MotionHandoffMarkAsComplete)===null||$===void 0||$.call(window,b)}),D.current=!1))}),p}function Iie(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:u,layoutScroll:l,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:VF(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||u&&BF(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:f})}function VF(e){if(e)return e.options.allowProjection!==!1?e.projection:VF(e.parent)}function Bie({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;function u(f,d){let h;const p={...C.useContext(MF),...f,layoutId:Lie(f)},{isStatic:g}=p,y=Pie(f),b=r(f,g);if(!g&&o3){Vie(p,e);const D=Nie(p);h=D.MeasureLayout,y.visualElement=kie(i,b,p,t,D.ProjectionNode)}return ra.jsxs(kp.Provider,{value:y,children:[h&&y.visualElement?ra.jsx(h,{visualElement:y.visualElement,...p}):null,n(i,f,Rie(b,y.visualElement,d),b,g,y.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(o=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&o!==void 0?o:""})`}`;const l=C.forwardRef(u);return l[_ie]=i,l}function Lie({layoutId:e}){const t=C.useContext(yie).id;return t&&e!==void 0?t+"-"+e:e}function Vie(e,t){C.useContext(s3).strict,process.env.NODE_ENV}function Nie(e){const{drag:t,layout:n}=bu;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const NF=e=>t=>typeof t=="string"&&t.startsWith(e),jF=NF("--"),jie=NF("var(--"),f3=e=>jie(e)?Kie.test(e.split("/*")[0].trim()):!1,Kie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Uie={},Iu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],es=new Set(Iu);function KF(e,{layout:t,layoutId:n}){return es.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Uie[e]||e==="opacity")}const Mn=e=>!!(e&&e.getVelocity),UF=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Go=(e,t,n)=>n>t?t:n<e?e:n,Bu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Oc={...Bu,transform:e=>Go(0,1,e)},Dd={...Bu,default:1},of=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ra=of("deg"),eu=of("%"),We=of("px"),zie=of("vh"),qie=of("vw"),z5={...eu,parse:e=>eu.parse(e)/100,transform:e=>eu.transform(e*100)},Wie={borderWidth:We,borderTopWidth:We,borderRightWidth:We,borderBottomWidth:We,borderLeftWidth:We,borderRadius:We,radius:We,borderTopLeftRadius:We,borderTopRightRadius:We,borderBottomRightRadius:We,borderBottomLeftRadius:We,width:We,maxWidth:We,height:We,maxHeight:We,top:We,right:We,bottom:We,left:We,padding:We,paddingTop:We,paddingRight:We,paddingBottom:We,paddingLeft:We,margin:We,marginTop:We,marginRight:We,marginBottom:We,marginLeft:We,backgroundPositionX:We,backgroundPositionY:We},Hie={rotate:Ra,rotateX:Ra,rotateY:Ra,rotateZ:Ra,scale:Dd,scaleX:Dd,scaleY:Dd,scaleZ:Dd,skew:Ra,skewX:Ra,skewY:Ra,distance:We,translateX:We,translateY:We,translateZ:We,x:We,y:We,z:We,perspective:We,transformPerspective:We,opacity:Oc,originX:z5,originY:z5,originZ:We},q5={...Bu,transform:Math.round},d3={...Wie,...Hie,zIndex:q5,size:We,fillOpacity:Oc,strokeOpacity:Oc,numOctaves:q5},Gie={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yie=Iu.length;function Zie(e,t,n){let r="",i=!0;for(let a=0;a<Yie;a++){const o=Iu[a],u=e[o];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(o.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const f=UF(u,d3[o]);if(!l){i=!1;const d=Gie[o]||o;r+=`${d}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function h3(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,u=!1;for(const l in t){const f=t[l];if(es.has(l)){o=!0;continue}else if(jF(l)){i[l]=f;continue}else{const d=UF(f,d3[l]);l.startsWith("origin")?(u=!0,a[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=Zie(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:f="50%",originZ:d=0}=a;r.transformOrigin=`${l} ${f} ${d}`}}const p3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zF(e,t,n){for(const r in t)!Mn(t[r])&&!KF(r,n)&&(e[r]=t[r])}function Jie({transformTemplate:e},t){return C.useMemo(()=>{const n=p3();return h3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Xie(e,t){const n=e.style||{},r={};return zF(r,n,e),Object.assign(r,Jie(e,t)),r}function Qie(e,t){const n={},r=Xie(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}const eae=["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 m3(e){return typeof e!="string"||e.includes("-")?!1:!!(eae.indexOf(e)>-1||/[A-Z]/u.test(e))}const tae={offset:"stroke-dashoffset",array:"stroke-dasharray"},nae={offset:"strokeDashoffset",array:"strokeDasharray"};function rae(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?tae:nae;e[a.offset]=We.transform(-r);const o=We.transform(t),u=We.transform(n);e[a.array]=`${o} ${u}`}function W5(e,t,n){return typeof e=="string"?e:We.transform(t+n*e)}function iae(e,t,n){const r=W5(t,e.x,e.width),i=W5(n,e.y,e.height);return`${r} ${i}`}function g3(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:u=1,pathOffset:l=0,...f},d,h){if(h3(e,f,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:y}=e;p.transform&&(y&&(g.transform=p.transform),delete p.transform),y&&(i!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=iae(y,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&rae(p,o,u,l,!1)}const qF=()=>({...p3(),attrs:{}}),y3=e=>typeof e=="string"&&e.toLowerCase()==="svg";function aae(e,t,n,r){const i=C.useMemo(()=>{const a=qF();return g3(a,t,y3(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};zF(a,e.style,e),i.style={...a,...i.style}}return i}function oae(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=(m3(n)?aae:Qie)(r,a,o,n),f=Sie(r,typeof n=="string",e),d=n!==C.Fragment?{...f,...l,ref:i}:{},{children:h}=r,p=C.useMemo(()=>Mn(h)?h.get():h,[h]);return C.createElement(n,{...d,children:p})}}function H5(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function v3(e,t,n,r){if(typeof t=="function"){const[i,a]=H5(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=H5(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const z0=e=>Array.isArray(e),sae=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),uae=e=>z0(e)?e[e.length-1]||0:e;function lae(e){const t=Mn(e)?e.get():e;return sae(t)?t.toValue():t}function cae({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const o={latestValues:fae(r,i,a,e),renderState:t()};return n&&(o.onMount=u=>n({props:r,current:u,...o}),o.onUpdate=u=>n(u)),o}const WF=e=>(t,n)=>{const r=C.useContext(kp),i=C.useContext(OF),a=()=>cae(e,t,r,i);return n?a():vie(a)};function fae(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=lae(a[p]);let{initial:o,animate:u}=e;const l=Bp(e),f=IF(e);t&&f&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?u:o;if(h&&typeof h!="boolean"&&!Ip(h)){const p=Array.isArray(h)?h:[h];for(let g=0;g<p.length;g++){const y=v3(e,p[g]);if(y){const{transitionEnd:b,transition:D,...$}=y;for(const v in $){let w=$[v];if(Array.isArray(w)){const T=d?w.length-1:0;w=w[T]}w!==null&&(i[v]=w)}for(const v in b)i[v]=b[v]}}}return i}function b3(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(Mn(i[o])||t.style&&Mn(t.style[o])||KF(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return a}const dae={useVisualState:WF({scrapeMotionValuesFromProps:b3,createRenderState:p3})};function HF(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function GF(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const YF=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ZF(e,t,n,r){GF(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(YF.has(i)?i:c3(i),t.attrs[i])}function JF(e,t,n){const r=b3(e,t,n);for(const i in e)if(Mn(e[i])||Mn(t[i])){const a=Iu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const G5=["x","y","width","height","cx","cy","r"],hae={useVisualState:WF({scrapeMotionValuesFromProps:JF,createRenderState:qF,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const u in i)if(es.has(u)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let u=0;u<G5.length;u++){const l=G5[u];e[l]!==t[l]&&(o=!0)}o&&Jn.read(()=>{HF(n,r),Jn.render(()=>{g3(r,i,y3(n.tagName),e.transformTemplate),ZF(n,r)})})}})};function pae(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...m3(r)?hae:dae,preloadedFeatures:e,useRender:oae(i),createVisualElement:t,Component:r};return Bie(o)}}const mae=pae(),gae=Tie(mae);function Mc(e,t,n){const r=e.getProps();return v3(r,t,n!==void 0?n:r.custom,e)}function XF(e,t){return e?e[t]||e.default||e:void 0}const QF=new Set(["width","height","top","left","right","bottom",...Iu]);let Wd;function yae(){Wd=void 0}const Ka={now:()=>(Wd===void 0&&Ka.set(Rh.isProcessing||$ie.useManualTiming?Rh.timestamp:performance.now()),Wd),set:e=>{Wd=e,queueMicrotask(yae)}};function vae(e,t){e.indexOf(t)===-1&&e.push(t)}function bae(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class e9{constructor(){this.subscriptions=[]}add(t){return vae(this.subscriptions,t),()=>bae(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function t9(e,t){return t?e*(1e3/t):0}const Y5=30,$ae=e=>!isNaN(parseFloat(e));class xae{constructor(t,n={}){this.version="12.4.1",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Ka.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ka.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=$ae(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Fp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new e9);const r=this.events[t].add(n);return t==="change"?()=>{r(),Jn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ka.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Y5)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Y5);return t9(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mh(e,t){return new xae(e,t)}function wae(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mh(n))}function Dae(e,t){const n=Mc(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const u=uae(a[o]);wae(e,o,u)}}function Cae(e){return!!(Mn(e)&&e.add)}function Eae(e,t){const n=e.getValue("willChange");if(Cae(n))return n.add(t)}function Sae(e){return e.props[LF]}function $3(e){let t;return()=>(t===void 0&&(t=e()),t)}const Tae=$3(()=>window.ScrollTimeline!==void 0);class Aae{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(Tae()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Pae extends Aae{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const na=e=>e*1e3,Ua=e=>e/1e3;function x3(e){return typeof e=="function"}function Z5(e,t){e.timeline=t,e.onfinish=null}const w3=e=>Array.isArray(e)&&typeof e[0]=="number",_ae={linearEasing:void 0};function Rae(e,t){const n=$3(e);return()=>{var r;return(r=_ae[t])!==null&&r!==void 0?r:n()}}const Fh=Rae(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),D3=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},n9=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(D3(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function r9(e){return!!(typeof e=="function"&&Fh()||!e||typeof e=="string"&&(e in q0||Fh())||w3(e)||Array.isArray(e)&&e.every(r9))}const Xl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,q0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xl([0,.65,.55,1]),circOut:Xl([.55,0,1,.45]),backIn:Xl([.31,.01,.66,-.59]),backOut:Xl([.33,1.53,.69,.99])};function i9(e,t){if(e)return typeof e=="function"&&Fh()?n9(e,t):w3(e)?Xl(e):Array.isArray(e)?e.map(n=>i9(n,t)||q0.easeOut):q0[e]}const a9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Oae=1e-7,Mae=12;function Fae(e,t,n,r,i){let a,o,u=0;do o=t+(n-t)/2,a=a9(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Oae&&++u<Mae);return o}function sf(e,t,n,r){if(e===t&&n===r)return Ha;const i=a=>Fae(a,0,1,e,n);return a=>a===0||a===1?a:a9(i(a),t,r)}const o9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,s9=e=>t=>1-e(1-t),u9=sf(.33,1.53,.69,.99),C3=s9(u9),l9=o9(C3),c9=e=>(e*=2)<1?.5*C3(e):.5*(2-Math.pow(2,-10*(e-1))),E3=e=>1-Math.sin(Math.acos(e)),kae=s9(E3),f9=o9(E3),d9=e=>/^0[^.\s]+$/u.test(e);function Iae(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||d9(e):!0}const fc=e=>Math.round(e*1e5)/1e5,S3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Bae(e){return e==null}const Lae=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,T3=(e,t)=>n=>!!(typeof n=="string"&&Lae.test(n)&&n.startsWith(e)||t&&!Bae(n)&&Object.prototype.hasOwnProperty.call(n,t)),h9=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,u]=r.match(S3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},Vae=e=>Go(0,255,e),ub={...Bu,transform:e=>Math.round(Vae(e))},Ro={test:T3("rgb","red"),parse:h9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ub.transform(e)+", "+ub.transform(t)+", "+ub.transform(n)+", "+fc(Oc.transform(r))+")"};function Nae(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const W0={test:T3("#"),parse:Nae,transform:Ro.transform},Ws={test:T3("hsl","hue"),parse:h9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+eu.transform(fc(t))+", "+eu.transform(fc(n))+", "+fc(Oc.transform(r))+")"},wn={test:e=>Ro.test(e)||W0.test(e)||Ws.test(e),parse:e=>Ro.test(e)?Ro.parse(e):Ws.test(e)?Ws.parse(e):W0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ro.transform(e):Ws.transform(e)},jae=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Kae(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(S3))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(jae))===null||n===void 0?void 0:n.length)||0)>0}const p9="number",m9="color",Uae="var",zae="var(",J5="${}",qae=/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 Fc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const u=t.replace(qae,l=>(wn.test(l)?(r.color.push(a),i.push(m9),n.push(wn.parse(l))):l.startsWith(zae)?(r.var.push(a),i.push(Uae),n.push(l)):(r.number.push(a),i.push(p9),n.push(parseFloat(l))),++a,J5)).split(J5);return{values:n,split:u,indexes:r,types:i}}function g9(e){return Fc(e).values}function y9(e){const{split:t,types:n}=Fc(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const u=n[o];u===p9?a+=fc(i[o]):u===m9?a+=wn.transform(i[o]):a+=i[o]}return a}}const Wae=e=>typeof e=="number"?0:e;function Hae(e){const t=g9(e);return y9(e)(t.map(Wae))}const Lu={test:Kae,parse:g9,createTransformer:y9,getAnimatableNone:Hae},Gae=new Set(["brightness","contrast","saturate","opacity"]);function Yae(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(S3)||[];if(!r)return e;const i=n.replace(r,"");let a=Gae.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const Zae=/\b([a-z-]*)\(.*?\)/gu,H0={...Lu,getAnimatableNone:e=>{const t=e.match(Zae);return t?t.map(Yae).join(" "):e}},Jae={...d3,color:wn,backgroundColor:wn,outlineColor:wn,fill:wn,stroke:wn,borderColor:wn,borderTopColor:wn,borderRightColor:wn,borderBottomColor:wn,borderLeftColor:wn,filter:H0,WebkitFilter:H0},A3=e=>Jae[e];function v9(e,t){let n=A3(e);return n!==H0&&(n=Lu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xae=new Set(["auto","none","0"]);function Qae(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!Xae.has(a)&&Fc(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=v9(n,i)}const X5=e=>e===Bu||e===We,Q5=(e,t)=>parseFloat(e.split(", ")[t]),eT=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Q5(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?Q5(a[1],e):0}},eoe=new Set(["x","y","z"]),toe=Iu.filter(e=>!eoe.has(e));function noe(e){const t=[];return toe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const $u={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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:eT(4,13),y:eT(5,14)};$u.translateX=$u.x;$u.translateY=$u.y;const Bo=new Set;let G0=!1,Y0=!1;function b9(){if(Y0){const e=Array.from(Bo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=noe(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var u;(u=r.getValue(a))===null||u===void 0||u.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Y0=!1,G0=!1,Bo.forEach(e=>e.complete()),Bo.clear()}function $9(){Bo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Y0=!0)})}function roe(){$9(),b9()}class P3{constructor(t,n,r,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Bo.add(this),G0||(G0=!0,Jn.read($9),Jn.resolveKeyframes(b9))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Bo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Bo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const x9=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ioe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function aoe(e){const t=ioe.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const ooe=4;function w9(e,t,n=1){vu(n<=ooe,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=aoe(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return x9(o)?parseFloat(o):o}return f3(i)?w9(i,t,n+1):i}const D9=e=>t=>t.test(e),soe={test:e=>e==="auto",parse:e=>e},C9=[Bu,We,eu,Ra,qie,zie,soe],tT=e=>C9.find(D9(e));class E9 extends P3{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),f3(f))){const d=w9(f,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!QF.has(r)||t.length!==2)return;const[i,a]=t,o=tT(i),u=tT(a);if(o!==u)if(X5(o)&&X5(u))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Iae(t[i])&&r.push(i);r.length&&Qae(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$u[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,u=i[o];i[o]=$u[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,f])=>{n.getValue(l).set(f)}),this.resolveNoneKeyframes()}}const nT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Lu.test(e)||e==="0")&&!e.startsWith("url("));function uoe(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function loe(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=nT(i,t),u=nT(a,t);return af(o===u,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!u?!1:uoe(e)||(n==="spring"||x3(n))&&r}const coe=e=>e!==null;function Lp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(coe),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const foe=40;class S9{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ka.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>foe?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&roe(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ka.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:u,onUpdate:l,isGenerator:f}=this.options;if(!f&&!loe(t,r,i,a))if(o)this.options.duration=0;else{l&&l(Lp(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Z0=2e4;function T9(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Z0;)t+=n,r=e.next(t);return t>=Z0?1/0:t}const Vp=(e,t,n)=>e+(t-e)*n;function lb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function doe({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{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=lb(l,u,e+1/3),a=lb(l,u,e),o=lb(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function kh(e,t){return n=>n>0?t:e}const cb=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},hoe=[W0,Ro,Ws],poe=e=>hoe.find(t=>t.test(e));function rT(e){const t=poe(e);if(af(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ws&&(n=doe(n)),n}const iT=(e,t)=>{const n=rT(e),r=rT(t);if(!n||!r)return kh(e,t);const i={...n};return a=>(i.red=cb(n.red,r.red,a),i.green=cb(n.green,r.green,a),i.blue=cb(n.blue,r.blue,a),i.alpha=Vp(n.alpha,r.alpha,a),Ro.transform(i))},moe=(e,t)=>n=>t(e(n)),Np=(...e)=>e.reduce(moe),J0=new Set(["none","hidden"]);function goe(e,t){return J0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function yoe(e,t){return n=>Vp(e,t,n)}function _3(e){return typeof e=="number"?yoe:typeof e=="string"?f3(e)?kh:wn.test(e)?iT:$oe:Array.isArray(e)?A9:typeof e=="object"?wn.test(e)?iT:voe:kh}function A9(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>_3(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function voe(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=_3(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function boe(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],u=e.indexes[o][i[o]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[a]=l,i[o]++}return r}const $oe=(e,t)=>{const n=Lu.createTransformer(t),r=Fc(e),i=Fc(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?J0.has(e)&&!i.values.length||J0.has(t)&&!r.values.length?goe(e,t):Np(A9(boe(r,i),i.values),n):(af(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),kh(e,t))};function P9(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Vp(e,t,n):_3(e)(e,t)}const xoe=5;function _9(e,t,n){const r=Math.max(t-xoe,0);return t9(n-e(r),t-r)}const Bt={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},aT=.001;function woe({duration:e=Bt.duration,bounce:t=Bt.bounce,velocity:n=Bt.velocity,mass:r=Bt.mass}){let i,a;af(e<=na(Bt.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Go(Bt.minDamping,Bt.maxDamping,o),e=Go(Bt.minDuration,Bt.maxDuration,Ua(e)),o<1?(i=f=>{const d=f*o,h=d*e,p=d-n,g=X0(f,o),y=Math.exp(-h);return aT-p/g*y},a=f=>{const h=f*o*e,p=h*n+n,g=Math.pow(o,2)*Math.pow(f,2)*e,y=Math.exp(-h),b=X0(Math.pow(f,2),o);return(-i(f)+aT>0?-1:1)*((p-g)*y)/b}):(i=f=>{const d=Math.exp(-f*e),h=(f-n)*e+1;return-.001+d*h},a=f=>{const d=Math.exp(-f*e),h=(n-f)*(e*e);return d*h});const u=5/e,l=Coe(i,a,u);if(e=na(e),isNaN(l))return{stiffness:Bt.stiffness,damping:Bt.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const Doe=12;function Coe(e,t,n){let r=n;for(let i=1;i<Doe;i++)r=r-e(r)/t(r);return r}function X0(e,t){return e*Math.sqrt(1-t*t)}const Eoe=["duration","bounce"],Soe=["stiffness","damping","mass"];function oT(e,t){return t.some(n=>e[n]!==void 0)}function Toe(e){let t={velocity:Bt.velocity,stiffness:Bt.stiffness,damping:Bt.damping,mass:Bt.mass,isResolvedFromDuration:!1,...e};if(!oT(e,Soe)&&oT(e,Eoe))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Go(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Bt.mass,stiffness:i,damping:a}}else{const n=woe(e);t={...t,...n,mass:Bt.mass},t.isResolvedFromDuration=!0}return t}function R9(e=Bt.visualDuration,t=Bt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:l,damping:f,mass:d,duration:h,velocity:p,isResolvedFromDuration:g}=Toe({...n,velocity:-Ua(n.velocity||0)}),y=p||0,b=f/(2*Math.sqrt(l*d)),D=o-a,$=Ua(Math.sqrt(l/d)),v=Math.abs(D)<5;r||(r=v?Bt.restSpeed.granular:Bt.restSpeed.default),i||(i=v?Bt.restDelta.granular:Bt.restDelta.default);let w;if(b<1){const E=X0($,b);w=A=>{const M=Math.exp(-b*$*A);return o-M*((y+b*$*D)/E*Math.sin(E*A)+D*Math.cos(E*A))}}else if(b===1)w=E=>o-Math.exp(-$*E)*(D+(y+$*D)*E);else{const E=$*Math.sqrt(b*b-1);w=A=>{const M=Math.exp(-b*$*A),S=Math.min(E*A,300);return o-M*((y+b*$*D)*Math.sinh(S)+E*D*Math.cosh(S))/E}}const T={calculatedDuration:g&&h||null,next:E=>{const A=w(E);if(g)u.done=E>=h;else{let M=0;b<1&&(M=E===0?na(y):_9(w,E,A));const S=Math.abs(M)<=r,z=Math.abs(o-A)<=i;u.done=S&&z}return u.value=u.done?o:A,u},toString:()=>{const E=Math.min(T9(T),Z0),A=n9(M=>T.next(E*M).value,E,30);return E+"ms "+A}};return T}function sT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:u,max:l,restDelta:f=.5,restSpeed:d}){const h=e[0],p={done:!1,value:h},g=S=>u!==void 0&&S<u||l!==void 0&&S>l,y=S=>u===void 0?l:l===void 0||Math.abs(u-S)<Math.abs(l-S)?u:l;let b=n*t;const D=h+b,$=o===void 0?D:o(D);$!==D&&(b=$-h);const v=S=>-b*Math.exp(-S/r),w=S=>$+v(S),T=S=>{const z=v(S),j=w(S);p.done=Math.abs(z)<=f,p.value=p.done?$:j};let E,A;const M=S=>{g(p.value)&&(E=S,A=R9({keyframes:[p.value,y(p.value)],velocity:_9(w,S,p.value),damping:i,stiffness:a,restDelta:f,restSpeed:d}))};return M(0),{calculatedDuration:null,next:S=>{let z=!1;return!A&&E===void 0&&(z=!0,T(S),M(S)),E!==void 0&&S>=E?A.next(S-E):(!z&&T(S),p)}}}const Aoe=sf(.42,0,1,1),Poe=sf(0,0,.58,1),O9=sf(.42,0,.58,1),_oe=e=>Array.isArray(e)&&typeof e[0]!="number",uT={linear:Ha,easeIn:Aoe,easeInOut:O9,easeOut:Poe,circIn:E3,circInOut:f9,circOut:kae,backIn:C3,backInOut:l9,backOut:u9,anticipate:c9},lT=e=>{if(w3(e)){vu(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return sf(t,n,r,i)}else if(typeof e=="string")return vu(uT[e]!==void 0,`Invalid easing type '${e}'`),uT[e];return e};function Roe(e,t,n){const r=[],i=n||P9,a=e.length-1;for(let o=0;o<a;o++){let u=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Ha:t;u=Np(l,u)}r.push(u)}return r}function Ooe(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(vu(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Roe(t,r,i),l=u.length,f=d=>{if(o&&d<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const p=D3(e[h],e[h+1],d);return u[h](p)};return n?d=>f(Go(e[0],e[a-1],d)):f}function Moe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=D3(0,t,r);e.push(Vp(n,1,i))}}function Foe(e){const t=[0];return Moe(t,e.length-1),t}function koe(e,t){return e.map(n=>n*t)}function Ioe(e,t){return e.map(()=>t||O9).splice(0,e.length-1)}function Ih({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=_oe(r)?r.map(lT):lT(r),a={done:!1,value:t[0]},o=koe(n&&n.length===t.length?n:Foe(t),e),u=Ooe(o,t,{ease:Array.isArray(i)?i:Ioe(t,i)});return{calculatedDuration:e,next:l=>(a.value=u(l),a.done=l>=e,a)}}const Boe=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Jn.update(t,!0),stop:()=>U0(t),now:()=>Rh.isProcessing?Rh.timestamp:Ka.now()}},Loe={decay:sT,inertia:sT,tween:Ih,keyframes:Ih,spring:R9},Voe=e=>e/100;class R3 extends S9{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||P3,u=(l,f)=>this.onKeyframesResolved(l,f);this.resolver=new o(a,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,u=x3(n)?n:Loe[n]||Ih;let l,f;u!==Ih&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&vu(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=Np(Voe,P9(t[0],t[1])),t=[0,100]);const d=u({...this.options,keyframes:t});a==="mirror"&&(f=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=T9(d));const{calculatedDuration:h}=d,p=h+i,g=p*(r+1)-i;return{generator:d,mirroredGenerator:f,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:p,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:f,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return a.next(0);const{delay:p,repeat:g,repeatType:y,repeatDelay:b,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const $=this.currentTime-p*(this.speed>=0?1:-1),v=this.speed>=0?$<0:$>d;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,T=a;if(g){const S=Math.min(this.currentTime,d)/h;let z=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&z--,z=Math.min(z,g+1),!!(z%2)&&(y==="reverse"?(j=1-j,b&&(j-=b/h)):y==="mirror"&&(T=o)),w=Go(0,1,j)*h}const E=v?{done:!1,value:l[0]}:T.next(w);u&&(E.value=u(E.value));let{done:A}=E;!v&&f!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&i!==void 0&&(E.value=Lp(l,this.options,i)),D&&D(E.value),M&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Ua(t.calculatedDuration):0}get time(){return Ua(this.currentTime)}set time(t){t=na(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ua(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Boe,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Noe=new Set(["opacity","clipPath","filter","transform"]);function joe(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:u="easeInOut",times:l}={}){const f={[t]:n};l&&(f.offset=l);const d=i9(u,i);return Array.isArray(d)&&(f.easing=d),e.animate(f,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const Koe=$3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Bh=10,Uoe=2e4;function zoe(e){return x3(e.type)||e.type==="spring"||!r9(e.ease)}function qoe(e,t){const n=new R3({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<Uoe;)r=n.sample(a),i.push(r.value),a+=Bh;return{times:void 0,keyframes:i,duration:a-Bh,ease:"linear"}}const M9={anticipate:c9,backInOut:l9,circInOut:f9};function Woe(e){return e in M9}class cT extends S9{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new E9(a,(o,u)=>this.onKeyframesResolved(o,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:o,motionValue:u,name:l,startTime:f}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof a=="string"&&Fh()&&Woe(a)&&(a=M9[a]),zoe(this.options)){const{onComplete:h,onUpdate:p,motionValue:g,element:y,...b}=this.options,D=qoe(t,b);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,a=D.ease,o="keyframes"}const d=joe(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:a});return d.startTime=f??this.calcStartTime(),this.pendingTimeline?(Z5(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;u.set(Lp(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ua(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ua(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=na(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ha;const{animation:r}=n;Z5(r,t)}return Ha}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:d,onComplete:h,element:p,...g}=this.options,y=new R3({...g,keyframes:r,duration:i,type:a,ease:o,times:u,isGenerator:!0}),b=na(this.time);f.setWithVelocity(y.sample(b-Bh).value,y.sample(b).value,Bh)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:f}=n.owner.getProps();return Koe()&&r&&Noe.has(r)&&!l&&!f&&!i&&a!=="mirror"&&o!==0&&u!=="inertia"}}const Hoe={type:"spring",stiffness:500,damping:25,restSpeed:10},Goe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Yoe={type:"keyframes",duration:.8},Zoe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Joe=(e,{keyframes:t})=>t.length>2?Yoe:es.has(e)?e.startsWith("scale")?Goe(t[1]):Hoe:Zoe;function Xoe({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:u,from:l,elapsed:f,...d}){return!!Object.keys(d).length}const Qoe=(e,t,n,r={},i,a)=>o=>{const u=XF(r,e)||{},l=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-na(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:p=>{t.set(p),u.onUpdate&&u.onUpdate(p)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:i};Xoe(u)||(d={...d,...Joe(e,d)}),d.duration&&(d.duration=na(d.duration)),d.repeatDelay&&(d.repeatDelay=na(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!a&&t.get()!==void 0){const p=Lp(d.keyframes,u);if(p!==void 0)return Jn.update(()=>{d.onUpdate(p),d.onComplete()}),new Pae([])}return!a&&cT.supports(d)?new cT(d):new R3(d)};function ese({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function F9(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(o=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const p=e.getValue(h,(a=e.latestValues[h])!==null&&a!==void 0?a:null),g=l[h];if(g===void 0||d&&ese(d,h))continue;const y={delay:n,...XF(o||{},h)};let b=!1;if(window.MotionHandoffAnimation){const $=Sae(e);if($){const v=window.MotionHandoffAnimation($,h,Jn);v!==null&&(y.startTime=v,b=!0)}}Eae(e,h),p.start(Qoe(h,p,g,e.shouldReduceMotion&&QF.has(h)?{type:!1}:y,e,b));const D=p.animation;D&&f.push(D)}return u&&Promise.all(f).then(()=>{Jn.update(()=>{u&&Dae(e,u)})}),f}function Q0(e,t,n={}){var r;const i=Mc(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(F9(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:p}=a;return tse(e,t,d+f,h,p,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[f,d]=l==="beforeChildren"?[o,u]:[u,o];return f().then(()=>d())}else return Promise.all([o(),u(n.delay)])}function tse(e,t,n=0,r=0,i=1,a){const o=[],u=(e.variantChildren.size-1)*r,l=i===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(nse).forEach((f,d)=>{f.notify("AnimationStart",t),o.push(Q0(f,t,{...a,delay:n+l(d)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(o)}function nse(e,t){return e.sortNodePosition(t)}function rse(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Q0(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Q0(e,t,n);else{const i=typeof t=="function"?Mc(e,t,n.custom):t;r=Promise.all(F9(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function k9(e,t){if(!Array.isArray(t))return!1;const 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}const ise=l3.length;function I9(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?I9(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<ise;n++){const r=l3[n],i=e.props[r];(Rc(i)||i===!1)&&(t[r]=i)}return t}const ase=[...u3].reverse(),ose=u3.length;function sse(e){return t=>Promise.all(t.map(({animation:n,options:r})=>rse(e,n,r)))}function use(e){let t=sse(e),n=fT(),r=!0;const i=l=>(f,d)=>{var h;const p=Mc(e,d,l==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(p){const{transition:g,transitionEnd:y,...b}=p;f={...f,...b,...y}}return f};function a(l){t=l(e)}function o(l){const{props:f}=e,d=I9(e.parent)||{},h=[],p=new Set;let g={},y=1/0;for(let D=0;D<ose;D++){const $=ase[D],v=n[$],w=f[$]!==void 0?f[$]:d[$],T=Rc(w),E=$===l?v.isActive:null;E===!1&&(y=D);let A=w===d[$]&&w!==f[$]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...g},!v.isActive&&E===null||!w&&!v.prevProp||Ip(w)||typeof w=="boolean")continue;const M=lse(v.prevProp,w);let S=M||$===l&&v.isActive&&!A&&T||D>y&&T,z=!1;const j=Array.isArray(w)?w:[w];let O=j.reduce(i($),{});E===!1&&(O={});const{prevResolvedValues:Z={}}=v,R={...Z,...O},V=k=>{S=!0,p.has(k)&&(z=!0,p.delete(k)),v.needsAnimating[k]=!0;const _=e.getValue(k);_&&(_.liveStyle=!1)};for(const k in R){const _=O[k],H=Z[k];if(g.hasOwnProperty(k))continue;let U=!1;z0(_)&&z0(H)?U=!k9(_,H):U=_!==H,U?_!=null?V(k):p.add(k):_!==void 0&&p.has(k)?V(k):v.protectedKeys[k]=!0}v.prevProp=w,v.prevResolvedValues=O,v.isActive&&(g={...g,...O}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(A&&M)||z)&&h.push(...j.map(k=>({animation:k,options:{type:$}})))}if(p.size){const D={};if(typeof f.initial!="boolean"){const $=Mc(e,Array.isArray(f.initial)?f.initial[0]:f.initial);$&&$.transition&&(D.transition=$.transition)}p.forEach($=>{const v=e.getBaseTarget($),w=e.getValue($);w&&(w.liveStyle=!0),D[$]=v??null}),h.push({animation:D})}let b=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(h):Promise.resolve()}function u(l,f){var d;if(n[l].isActive===f)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,f)}),n[l].isActive=f;const h=o(l);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:o,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=fT(),r=!0}}}function lse(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!k9(t,e):!1}function $o(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fT(){return{animate:$o(!0),whileInView:$o(),whileHover:$o(),whileTap:$o(),whileDrag:$o(),whileFocus:$o(),exit:$o()}}class Vu{constructor(t){this.isMounted=!1,this.node=t}update(){}}class cse extends Vu{constructor(t){super(t),t.animationState||(t.animationState=use(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ip(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let fse=0;class dse extends Vu{constructor(){super(...arguments),this.id=fse++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const hse={animation:{Feature:cse},exit:{Feature:dse}},pse={y:!1};function mse(){return pse.y}const gse=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function dT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function B9(e){return{point:{x:e.pageX,y:e.pageY}}}const hT=()=>({min:0,max:0}),L9=()=>({x:hT(),y:hT()});function yse({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vse(e,t){if(!t)return e;const 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 bse(e,t){return yse(vse(e.getBoundingClientRect(),t))}function $se(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function V9(e,t){const n=$se(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function pT(e){return!(e.pointerType==="touch"||mse())}function xse(e,t,n={}){const[r,i,a]=V9(e,n),o=u=>{if(!pT(u))return;const{target:l}=u,f=t(l,u);if(typeof f!="function"||!l)return;const d=h=>{pT(h)&&(f(h),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,i)};return r.forEach(u=>{u.addEventListener("pointerenter",o,i)}),a}function mT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&Jn.postRender(()=>a(t,B9(t)))}class wse extends Vu{mount(){const{current:t}=this.node;t&&(this.unmount=xse(t,(n,r)=>(mT(this.node,r,"Start"),i=>mT(this.node,i,"End"))))}unmount(){}}class Dse extends Vu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Np(dT(this.node.current,"focus",()=>this.onFocus()),dT(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const N9=(e,t)=>t?e===t?!0:N9(e,t.parentElement):!1,Cse=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ese(e){return Cse.has(e.tagName)||e.tabIndex!==-1}const Ql=new WeakSet;function gT(e){return t=>{t.key==="Enter"&&e(t)}}function fb(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Sse=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=gT(()=>{if(Ql.has(n))return;fb(n,"down");const i=gT(()=>{fb(n,"up")}),a=()=>fb(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function yT(e){return gse(e)&&!0}function Tse(e,t,n={}){const[r,i,a]=V9(e,n),o=u=>{const l=u.currentTarget;if(!yT(u)||Ql.has(l))return;Ql.add(l);const f=t(l,u),d=(g,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),!(!yT(g)||!Ql.has(l))&&(Ql.delete(l),typeof f=="function"&&f(g,{success:y}))},h=g=>{d(g,n.useGlobalTarget||N9(l,g.target))},p=g=>{d(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",p,i)};return r.forEach(u=>{!Ese(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",o,i),u.addEventListener("focus",f=>Sse(f,i),i)}),a}function vT(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&Jn.postRender(()=>a(t,B9(t)))}class Ase extends Vu{mount(){const{current:t}=this.node;t&&(this.unmount=Tse(t,(n,r)=>(vT(this.node,r,"Start"),(i,{success:a})=>vT(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const e1=new WeakMap,db=new WeakMap,Pse=e=>{const t=e1.get(e.target);t&&t(e)},_se=e=>{e.forEach(Pse)};function Rse({root:e,...t}){const n=e||document;db.has(n)||db.set(n,{});const r=db.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(_se,{root:e,...t})),r[i]}function Ose(e,t,n){const r=Rse(t);return e1.set(e,n),r.observe(e),()=>{e1.delete(e),r.unobserve(e)}}const Mse={some:0,all:1};class Fse extends Vu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Mse[i]},u=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),p=f?d:h;p&&p(l)};return Ose(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(kse(t,n))&&this.startObserver()}unmount(){}}function kse({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Ise={inView:{Feature:Fse},tap:{Feature:Ase},focus:{Feature:Dse},hover:{Feature:wse}},t1={current:null},j9={current:!1};function Bse(){if(j9.current=!0,!!o3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>t1.current=e.matches;e.addListener(t),t()}else t1.current=!1}const Lse=[...C9,wn,Lu],Vse=e=>Lse.find(D9(e)),Nse=new WeakMap;function jse(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Mn(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Fp(i.version==="12.4.1",`Attempting to mix Motion versions ${i.version} with 12.4.1 may not work as expected.`);else if(Mn(a))e.addValue(r,Mh(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Mh(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Kse{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=P3,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=Ka.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Jn.render(this.render,!1,!0))};const{latestValues:l,renderState:f,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=Bp(n),this.isVariantNode=IF(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in p){const y=p[g];l[g]!==void 0&&Mn(y)&&y.set(l[g],!1)}}mount(t){this.current=t,Nse.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),j9.current||Bse(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:t1.current,process.env.NODE_ENV!=="production"&&Fp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),U0(this.notifyUpdate),U0(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=es.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Jn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in bu){const n=bu[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L9()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<bT.length;r++){const i=bT[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=jse(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Mh(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(x9(i)||d9(i))?i=parseFloat(i):!Vse(i)&&Lu.test(n)&&(i=v9(t,n)),this.setBaseTarget(t,Mn(i)?i.get():i)),Mn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=v3(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Mn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new e9),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class K9 extends Kse{constructor(){super(...arguments),this.KeyframeResolver=E9}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Mn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Use(e){return window.getComputedStyle(e)}class zse extends K9{constructor(){super(...arguments),this.type="html",this.renderInstance=GF}readValueFromInstance(t,n){if(es.has(n)){const r=A3(n);return r&&r.default||0}else{const r=Use(t),i=(jF(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return bse(t,n)}build(t,n,r){h3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return b3(t,n,r)}}class qse extends K9{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=L9,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&HF(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(es.has(n)){const r=A3(n);return r&&r.default||0}return n=YF.has(n)?n:c3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return JF(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Jn.postRender(this.updateDimensions)}build(t,n,r){g3(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){ZF(t,n,r,i)}mount(t){this.isSVGTag=y3(t.tagName),super.mount(t)}}const Wse=(e,t)=>m3(e)?new qse(t):new zse(t,{allowProjection:e!==C.Fragment}),Hse={renderer:Wse,...hse,...Ise};function U9(e){return t=>typeof t===e}var Gse=U9("function"),Yse=e=>e===null,$T=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",xT=e=>!Zse(e)&&!Yse(e)&&(Gse(e)||typeof e=="object"),Zse=U9("undefined");function Jse(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Fn(e[r],t[r]))return!1;return!0}function Xse(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function Qse(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!Fn(n[1],t.get(n[0])))return!1;return!0}function eue(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function Fn(e,t){if(e===t)return!0;if(e&&xT(e)&&t&&xT(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Jse(e,t);if(e instanceof Map&&t instanceof Map)return Qse(e,t);if(e instanceof Set&&t instanceof Set)return eue(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Xse(e,t);if($T(e)&&$T(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!Fn(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var tue=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],nue=["bigint","boolean","null","number","string","symbol","undefined"];function jp(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(rue(t))return t}function Zr(e){return t=>jp(t)===e}function rue(e){return tue.includes(e)}function Nu(e){return t=>typeof t===e}function iue(e){return nue.includes(e)}var aue=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Re(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Re.array(e))return"Array";if(Re.plainFunction(e))return"Function";const t=jp(e);return t||"Object"}Re.array=Array.isArray;Re.arrayOf=(e,t)=>!Re.array(e)&&!Re.function(t)?!1:e.every(n=>t(n));Re.asyncGeneratorFunction=e=>jp(e)==="AsyncGeneratorFunction";Re.asyncFunction=Zr("AsyncFunction");Re.bigint=Nu("bigint");Re.boolean=e=>e===!0||e===!1;Re.date=Zr("Date");Re.defined=e=>!Re.undefined(e);Re.domElement=e=>Re.object(e)&&!Re.plainObject(e)&&e.nodeType===1&&Re.string(e.nodeName)&&aue.every(t=>t in e);Re.empty=e=>Re.string(e)&&e.length===0||Re.array(e)&&e.length===0||Re.object(e)&&!Re.map(e)&&!Re.set(e)&&Object.keys(e).length===0||Re.set(e)&&e.size===0||Re.map(e)&&e.size===0;Re.error=Zr("Error");Re.function=Nu("function");Re.generator=e=>Re.iterable(e)&&Re.function(e.next)&&Re.function(e.throw);Re.generatorFunction=Zr("GeneratorFunction");Re.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Re.iterable=e=>!Re.nullOrUndefined(e)&&Re.function(e[Symbol.iterator]);Re.map=Zr("Map");Re.nan=e=>Number.isNaN(e);Re.null=e=>e===null;Re.nullOrUndefined=e=>Re.null(e)||Re.undefined(e);Re.number=e=>Nu("number")(e)&&!Re.nan(e);Re.numericString=e=>Re.string(e)&&e.length>0&&!Number.isNaN(Number(e));Re.object=e=>!Re.nullOrUndefined(e)&&(Re.function(e)||typeof e=="object");Re.oneOf=(e,t)=>Re.array(e)?e.indexOf(t)>-1:!1;Re.plainFunction=Zr("Function");Re.plainObject=e=>{if(jp(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Re.primitive=e=>Re.null(e)||iue(typeof e);Re.promise=Zr("Promise");Re.propertyOf=(e,t,n)=>{if(!Re.object(e)||!t)return!1;const r=e[t];return Re.function(n)?n(r):Re.defined(r)};Re.regexp=Zr("RegExp");Re.set=Zr("Set");Re.string=Nu("string");Re.symbol=Nu("symbol");Re.undefined=Nu("undefined");Re.weakMap=Zr("WeakMap");Re.weakSet=Zr("WeakSet");var Me=Re;function oue(...e){return e.every(t=>Me.string(t)||Me.array(t)||Me.plainObject(t))}function sue(e,t,n){return z9(e,t)?[e,t].every(Me.array)?!e.some(ST(n))&&t.some(ST(n)):[e,t].every(Me.plainObject)?!Object.entries(e).some(ET(n))&&Object.entries(t).some(ET(n)):t===n:!1}function wT(e,t,n){const{actual:r,key:i,previous:a,type:o}=n,u=wi(e,i),l=wi(t,i);let f=[u,l].every(Me.number)&&(o==="increased"?u<l:u>l);return Me.undefined(r)||(f=f&&l===r),Me.undefined(a)||(f=f&&u===a),f}function DT(e,t,n){const{key:r,type:i,value:a}=n,o=wi(e,r),u=wi(t,r),l=i==="added"?o:u,f=i==="added"?u:o;if(!Me.nullOrUndefined(a)){if(Me.defined(l)){if(Me.array(l)||Me.plainObject(l))return sue(l,f,a)}else return Fn(f,a);return!1}return[o,u].every(Me.array)?!f.every(O3(l)):[o,u].every(Me.plainObject)?uue(Object.keys(l),Object.keys(f)):![o,u].every(d=>Me.primitive(d)&&Me.defined(d))&&(i==="added"?!Me.defined(o)&&Me.defined(u):Me.defined(o)&&!Me.defined(u))}function CT(e,t,{key:n}={}){let r=wi(e,n),i=wi(t,n);if(!z9(r,i))throw new TypeError("Inputs have different types");if(!oue(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(Me.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function ET(e){return([t,n])=>Me.array(e)?Fn(e,n)||e.some(r=>Fn(r,n)||Me.array(n)&&O3(n)(r)):Me.plainObject(e)&&e[t]?!!e[t]&&Fn(e[t],n):Fn(e,n)}function uue(e,t){return t.some(n=>!e.includes(n))}function ST(e){return t=>Me.array(e)?e.some(n=>Fn(n,t)||Me.array(t)&&O3(t)(n)):Fn(e,t)}function Il(e,t){return Me.array(e)?e.some(n=>Fn(n,t)):Fn(e,t)}function O3(e){return t=>e.some(n=>Fn(n,t))}function z9(...e){return e.every(Me.array)||e.every(Me.number)||e.every(Me.plainObject)||e.every(Me.string)}function wi(e,t){return Me.plainObject(e)||Me.array(e)?Me.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):Me.number(t)?e[t]:e:e}function Lh(e,t){if([e,t].some(Me.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(d=>Me.plainObject(d)||Me.array(d)))throw new Error("Expected plain objects or array");return{added:(d,h)=>{try{return DT(e,t,{key:d,type:"added",value:h})}catch{return!1}},changed:(d,h,p)=>{try{const g=wi(e,d),y=wi(t,d),b=Me.defined(h),D=Me.defined(p);if(b||D){const $=D?Il(p,g):!Il(h,g),v=Il(h,y);return $&&v}return[g,y].every(Me.array)||[g,y].every(Me.plainObject)?!Fn(g,y):g!==y}catch{return!1}},changedFrom:(d,h,p)=>{if(!Me.defined(d))return!1;try{const g=wi(e,d),y=wi(t,d),b=Me.defined(p);return Il(h,g)&&(b?Il(p,y):!b)}catch{return!1}},decreased:(d,h,p)=>{if(!Me.defined(d))return!1;try{return wT(e,t,{key:d,actual:h,previous:p,type:"decreased"})}catch{return!1}},emptied:d=>{try{const[h,p]=CT(e,t,{key:d});return!!h.length&&!p.length}catch{return!1}},filled:d=>{try{const[h,p]=CT(e,t,{key:d});return!h.length&&!!p.length}catch{return!1}},increased:(d,h,p)=>{if(!Me.defined(d))return!1;try{return wT(e,t,{key:d,actual:h,previous:p,type:"increased"})}catch{return!1}},removed:(d,h)=>{try{return DT(e,t,{key:d,type:"removed",value:h})}catch{return!1}}}}var hb,TT;function lue(){if(TT)return hb;TT=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;hb={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(f,d,h,p){h=h||{},typeof h=="function"&&(p=h,h={}),typeof p!="function"&&(p=o);var g=r(),y=f[u],b=h.ease||a,D=isNaN(h.duration)?350:+h.duration,$=!1;return y===d?p(e,f[u]):requestAnimationFrame(w),v;function v(){$=!0}function w(T){if($)return p(t,f[u]);var E=r(),A=n(1,(E-g)/D),M=b(A);f[u]=M*(d-y)+y,A<1?requestAnimationFrame(w):requestAnimationFrame(function(){p(null,f[u])})}}}function a(u){return .5*(1-Math.cos(Math.PI*u))}function o(){}return hb}var cue=lue();const fue=sa(cue);var Hd={exports:{}},due=Hd.exports,AT;function hue(){return AT||(AT=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(due,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})}(Hd)),Hd.exports}var pue=hue();const q9=sa(pue);var pb,PT;function mue(){if(PT)return pb;PT=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,pb=n,pb}var gue=mue();const _T=sa(gue);var mb,RT;function yue(){if(RT)return mb;RT=1;var e=function(v){return t(v)&&!n(v)};function t($){return!!$&&typeof $=="object"}function n($){var v=Object.prototype.toString.call($);return v==="[object RegExp]"||v==="[object Date]"||a($)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a($){return $.$$typeof===i}function o($){return Array.isArray($)?[]:{}}function u($,v){return v.clone!==!1&&v.isMergeableObject($)?b(o($),$,v):$}function l($,v,w){return $.concat(v).map(function(T){return u(T,w)})}function f($,v){if(!v.customMerge)return b;var w=v.customMerge($);return typeof w=="function"?w:b}function d($){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols($).filter(function(v){return Object.propertyIsEnumerable.call($,v)}):[]}function h($){return Object.keys($).concat(d($))}function p($,v){try{return v in $}catch{return!1}}function g($,v){return p($,v)&&!(Object.hasOwnProperty.call($,v)&&Object.propertyIsEnumerable.call($,v))}function y($,v,w){var T={};return w.isMergeableObject($)&&h($).forEach(function(E){T[E]=u($[E],w)}),h(v).forEach(function(E){g($,E)||(p($,E)&&w.isMergeableObject(v[E])?T[E]=f(E,w)($[E],v[E],w):T[E]=u(v[E],w))}),T}function b($,v,w){w=w||{},w.arrayMerge=w.arrayMerge||l,w.isMergeableObject=w.isMergeableObject||e,w.cloneUnlessOtherwiseSpecified=u;var T=Array.isArray(v),E=Array.isArray($),A=T===E;return A?T?w.arrayMerge($,v,w):y($,v,w):u(v,w)}b.all=function(v,w){if(!Array.isArray(v))throw new Error("first argument should be an array");return v.reduce(function(T,E){return b(T,E,w)},{})};var D=b;return mb=D,mb}var vue=yue();const zr=sa(vue);var Cd={exports:{}},Ed={exports:{}},ht={};/** @license React v16.13.1
|
|
145
|
+
`)});M.push(function(){k.style.width=g.scrollWidth+"px"}),M.push(function(){A.appendChild(k)})}});var O=g.id;if(T&&Prism.util.isActive(g,t)&&O){i(g,t)||M.push(function(){g.classList.add(t)});var Z=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(R,V){var W=V+Z;R.onclick=function(){var L=O+"."+W;f=!1,location.hash=L,setTimeout(function(){f=!0},1)}})}return function(){M.forEach(a)}}};function d(){var p=location.hash.slice(1);r(".temporary.line-highlight").forEach(function($){$.parentNode.removeChild($)});var g=(p.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(p))){var y=p.slice(0,p.lastIndexOf(".")),b=document.getElementById(y);if(b){b.hasAttribute("data-line")||b.setAttribute("data-line","");var D=Prism.plugins.lineHighlight.highlightLines(b,g,"temporary ");D(),f&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(p){var g=p.element.parentElement;if(l(g)){var y=0;r(".line-highlight",g).forEach(function(b){y+=b.textContent.length,b.parentNode.removeChild(b)}),y&&/^(?: \n)+$/.test(p.code.slice(-y))&&(p.code=p.code.slice(0,-y))}}),Prism.hooks.add("complete",function p(g){var y=g.element.parentElement;if(l(y)){clearTimeout(h);var b=Prism.plugins.lineNumbers,D=g.plugins&&g.plugins.lineNumbers;if(i(y,e)&&b&&!D)Prism.hooks.add("line-numbers",p);else{var $=Prism.plugins.lineHighlight.highlightLines(y);$(),h=setTimeout(d,1)}}}),window.addEventListener("hashchange",d),window.addEventListener("resize",function(){var p=r("pre").filter(l).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});p.forEach(a)})})();const XO=C.createContext({});function Qc(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const S4=C.createContext(null),T4=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function _Q(e=!0){const t=C.useContext(S4);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=C.useId();C.useEffect(()=>{e&&i(a)},[e]);const o=C.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}const A4=typeof window<"u",QO=A4?C.useLayoutEffect:C.useEffect,Zn=e=>e;let Mu=Zn,Pi=Zn;process.env.NODE_ENV!=="production"&&(Mu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Pi=(e,t)=>{if(!e)throw new Error(t)});function P4(e){let t;return()=>(t===void 0&&(t=e()),t)}const pu=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Si=e=>e*1e3,ta=e=>e/1e3,RQ={useManualTiming:!1},bd=["read","resolveKeyframes","update","preRender","render","postRender"];function OQ(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(f.schedule(d),e()),d(u)}const f={schedule:(d,h=!1,p=!1)=>{const y=p&&i?n:r;return h&&o.add(d),y.has(d)||y.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(u=d,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,f.process(d))}};return f}const MQ=40;function eM(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=bd.reduce(($,v)=>($[v]=OQ(a),$),{}),{read:u,resolveKeyframes:l,update:f,preRender:d,render:h,postRender:p}=o,g=()=>{const $=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min($-i.timestamp,MQ),1),i.timestamp=$,i.isProcessing=!0,u.process(i),l.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},y=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:bd.reduce(($,v)=>{const w=o[v];return $[v]=(T,E=!1,A=!1)=>(n||y(),w.schedule(T,E,A)),$},{}),cancel:$=>{for(let v=0;v<bd.length;v++)o[bd[v]].cancel($)},state:i,steps:o}}const{schedule:Et,cancel:aa,state:hn,steps:Gv}=eM(typeof requestAnimationFrame<"u"?requestAnimationFrame:Zn,!0),tM=C.createContext({strict:!1}),$S={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"]},mu={};for(const e in $S)mu[e]={isEnabled:t=>$S[e].some(n=>!!t[n])};function FQ(e){for(const t in e)mu[t]={...mu[t],...e[t]}}const kQ=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Eh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||kQ.has(e)}let nM=e=>!Eh(e);function IQ(e){e&&(nM=t=>t.startsWith("on")?!Eh(t):e(t))}try{IQ(require("@emotion/is-prop-valid").default)}catch{}function BQ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(nM(i)||n===!0&&Eh(i)||!t&&!Eh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const xS=new Set;function Pp(e,t,n){e||xS.has(t)||(console.warn(t),xS.add(t))}function LQ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Pp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const _p=C.createContext({});function Rp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ec(e){return typeof e=="string"||Array.isArray(e)}const _4=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],R4=["initial",..._4];function Op(e){return Rp(e.animate)||R4.some(t=>Ec(e[t]))}function rM(e){return!!(Op(e)||e.variants)}function VQ(e,t){if(Op(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Ec(n)?n:void 0,animate:Ec(r)?r:void 0}}return e.inherit!==!1?t:{}}function NQ(e){const{initial:t,animate:n}=VQ(e,C.useContext(_p));return C.useMemo(()=>({initial:t,animate:n}),[wS(t),wS(n)])}function wS(e){return Array.isArray(e)?e.join(" "):e}const jQ=Symbol.for("motionComponentSymbol");function js(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function KQ(e,t,n){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):js(n)&&(n.current=r))},[t])}const O4=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),UQ="framerAppearId",iM="data-"+O4(UQ),{schedule:M4}=eM(queueMicrotask,!1),aM=C.createContext({});function zQ(e,t,n,r,i){var a,o;const{visualElement:u}=C.useContext(_p),l=C.useContext(tM),f=C.useContext(S4),d=C.useContext(T4).reducedMotion,h=C.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:d}));const p=h.current,g=C.useContext(aM);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&qQ(h.current,n,i,g);const y=C.useRef(!1);C.useInsertionEffect(()=>{p&&y.current&&p.update(n,f)});const b=n[iM],D=C.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,b)));return QO(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),M4.render(p.render),D.current&&p.animationState&&p.animationState.animateChanges())}),C.useEffect(()=>{p&&(!D.current&&p.animationState&&p.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var $;($=window.MotionHandoffMarkAsComplete)===null||$===void 0||$.call(window,b)}),D.current=!1))}),p}function qQ(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:u,layoutScroll:l,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:oM(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||u&&js(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:f})}function oM(e){if(e)return e.options.allowProjection!==!1?e.projection:oM(e.parent)}function WQ({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;e&&FQ(e);function u(f,d){let h;const p={...C.useContext(T4),...f,layoutId:HQ(f)},{isStatic:g}=p,y=NQ(f),b=r(f,g);if(!g&&A4){GQ(p,e);const D=YQ(p);h=D.MeasureLayout,y.visualElement=zQ(i,b,p,t,D.ProjectionNode)}return ra.jsxs(_p.Provider,{value:y,children:[h&&y.visualElement?ra.jsx(h,{visualElement:y.visualElement,...p}):null,n(i,f,KQ(b,y.visualElement,d),b,g,y.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(o=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&o!==void 0?o:""})`}`;const l=C.forwardRef(u);return l[jQ]=i,l}function HQ({layoutId:e}){const t=C.useContext(XO).id;return t&&e!==void 0?t+"-"+e:e}function GQ(e,t){const n=C.useContext(tM).strict;if(process.env.NODE_ENV!=="production"&&t&&n){const r="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";e.ignoreStrict?Mu(!1,r):Pi(!1,r)}}function YQ(e){const{drag:t,layout:n}=mu;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const sM=e=>t=>typeof t=="string"&&t.startsWith(e),F4=sM("--"),ZQ=sM("var(--"),k4=e=>ZQ(e)?JQ.test(e.split("/*")[0].trim()):!1,JQ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Sc={};function XQ(e){for(const t in e)Sc[t]=e[t],F4(t)&&(Sc[t].isCSSVariable=!0)}const Fu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qo=new Set(Fu);function uM(e,{layout:t,layoutId:n}){return Qo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Sc[e]||e==="opacity")}const pn=e=>!!(e&&e.getVelocity),lM=(e,t)=>t&&typeof e=="number"?t.transform(e):e,oa=(e,t,n)=>n>t?t:n<e?e:n,ku={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Tc={...ku,transform:e=>oa(0,1,e)},$d={...ku,default:1},ef=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),_a=ef("deg"),Ti=ef("%"),qe=ef("px"),QQ=ef("vh"),eee=ef("vw"),DS={...Ti,parse:e=>Ti.parse(e)/100,transform:e=>Ti.transform(e*100)},tee={borderWidth:qe,borderTopWidth:qe,borderRightWidth:qe,borderBottomWidth:qe,borderLeftWidth:qe,borderRadius:qe,radius:qe,borderTopLeftRadius:qe,borderTopRightRadius:qe,borderBottomRightRadius:qe,borderBottomLeftRadius:qe,width:qe,maxWidth:qe,height:qe,maxHeight:qe,top:qe,right:qe,bottom:qe,left:qe,padding:qe,paddingTop:qe,paddingRight:qe,paddingBottom:qe,paddingLeft:qe,margin:qe,marginTop:qe,marginRight:qe,marginBottom:qe,marginLeft:qe,backgroundPositionX:qe,backgroundPositionY:qe},nee={rotate:_a,rotateX:_a,rotateY:_a,rotateZ:_a,scale:$d,scaleX:$d,scaleY:$d,scaleZ:$d,skew:_a,skewX:_a,skewY:_a,distance:qe,translateX:qe,translateY:qe,translateZ:qe,x:qe,y:qe,z:qe,perspective:qe,transformPerspective:qe,opacity:Tc,originX:DS,originY:DS,originZ:qe},CS={...ku,transform:Math.round},I4={...tee,...nee,zIndex:CS,size:qe,fillOpacity:Tc,strokeOpacity:Tc,numOctaves:CS},ree={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iee=Fu.length;function aee(e,t,n){let r="",i=!0;for(let a=0;a<iee;a++){const o=Fu[a],u=e[o];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(o.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const f=lM(u,I4[o]);if(!l){i=!1;const d=ree[o]||o;r+=`${d}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function B4(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,u=!1;for(const l in t){const f=t[l];if(Qo.has(l)){o=!0;continue}else if(F4(l)){i[l]=f;continue}else{const d=lM(f,I4[l]);l.startsWith("origin")?(u=!0,a[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=aee(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:f="50%",originZ:d=0}=a;r.transformOrigin=`${l} ${f} ${d}`}}const L4=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cM(e,t,n){for(const r in t)!pn(t[r])&&!uM(r,n)&&(e[r]=t[r])}function oee({transformTemplate:e},t){return C.useMemo(()=>{const n=L4();return B4(n,t,e),Object.assign({},n.vars,n.style)},[t])}function see(e,t){const n=e.style||{},r={};return cM(r,n,e),Object.assign(r,oee(e,t)),r}function uee(e,t){const n={},r=see(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}const lee=["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 V4(e){return typeof e!="string"||e.includes("-")?!1:!!(lee.indexOf(e)>-1||/[A-Z]/u.test(e))}const cee={offset:"stroke-dashoffset",array:"stroke-dasharray"},fee={offset:"strokeDashoffset",array:"strokeDasharray"};function dee(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?cee:fee;e[a.offset]=qe.transform(-r);const o=qe.transform(t),u=qe.transform(n);e[a.array]=`${o} ${u}`}function ES(e,t,n){return typeof e=="string"?e:qe.transform(t+n*e)}function hee(e,t,n){const r=ES(t,e.x,e.width),i=ES(n,e.y,e.height);return`${r} ${i}`}function N4(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:u=1,pathOffset:l=0,...f},d,h){if(B4(e,f,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:y}=e;p.transform&&(y&&(g.transform=p.transform),delete p.transform),y&&(i!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=hee(y,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&dee(p,o,u,l,!1)}const fM=()=>({...L4(),attrs:{}}),j4=e=>typeof e=="string"&&e.toLowerCase()==="svg";function pee(e,t,n,r){const i=C.useMemo(()=>{const a=fM();return N4(a,t,j4(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};cM(a,e.style,e),i.style={...a,...i.style}}return i}function mee(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=(V4(n)?pee:uee)(r,a,o,n),f=BQ(r,typeof n=="string",e),d=n!==C.Fragment?{...f,...l,ref:i}:{},{children:h}=r,p=C.useMemo(()=>pn(h)?h.get():h,[h]);return C.createElement(n,{...d,children:p})}}function SS(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function K4(e,t,n,r){if(typeof t=="function"){const[i,a]=SS(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=SS(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const T0=e=>Array.isArray(e),gee=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),yee=e=>T0(e)?e[e.length-1]||0:e;function Ud(e){const t=pn(e)?e.get():e;return gee(t)?t.toValue():t}function vee({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const o={latestValues:bee(r,i,a,e),renderState:t()};return n&&(o.onMount=u=>n({props:r,current:u,...o}),o.onUpdate=u=>n(u)),o}const dM=e=>(t,n)=>{const r=C.useContext(_p),i=C.useContext(S4),a=()=>vee(e,t,r,i);return n?a():Qc(a)};function bee(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=Ud(a[p]);let{initial:o,animate:u}=e;const l=Op(e),f=rM(e);t&&f&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?u:o;if(h&&typeof h!="boolean"&&!Rp(h)){const p=Array.isArray(h)?h:[h];for(let g=0;g<p.length;g++){const y=K4(e,p[g]);if(y){const{transitionEnd:b,transition:D,...$}=y;for(const v in $){let w=$[v];if(Array.isArray(w)){const T=d?w.length-1:0;w=w[T]}w!==null&&(i[v]=w)}for(const v in b)i[v]=b[v]}}}return i}function U4(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(pn(i[o])||t.style&&pn(t.style[o])||uM(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return a}const $ee={useVisualState:dM({scrapeMotionValuesFromProps:U4,createRenderState:L4})};function hM(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function pM(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const mM=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function gM(e,t,n,r){pM(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(mM.has(i)?i:O4(i),t.attrs[i])}function yM(e,t,n){const r=U4(e,t,n);for(const i in e)if(pn(e[i])||pn(t[i])){const a=Fu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const TS=["x","y","width","height","cx","cy","r"],xee={useVisualState:dM({scrapeMotionValuesFromProps:yM,createRenderState:fM,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const u in i)if(Qo.has(u)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let u=0;u<TS.length;u++){const l=TS[u];e[l]!==t[l]&&(o=!0)}o&&Et.read(()=>{hM(n,r),Et.render(()=>{N4(r,i,j4(n.tagName),e.transformTemplate),gM(n,r)})})}})};function wee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...V4(r)?xee:$ee,preloadedFeatures:e,useRender:mee(i),createVisualElement:t,Component:r};return WQ(o)}}function Ac(e,t,n){const r=e.getProps();return K4(r,t,n!==void 0?n:r.custom,e)}const Dee=P4(()=>window.ScrollTimeline!==void 0);let Cee=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(Dee()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}},Eee=class extends Cee{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function z4(e,t){return e?e[t]||e.default||e:void 0}const A0=2e4;function vM(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<A0;)t+=n,r=e.next(t);return t>=A0?1/0:t}function q4(e){return typeof e=="function"}function AS(e,t){e.timeline=t,e.onfinish=null}const W4=e=>Array.isArray(e)&&typeof e[0]=="number",See={linearEasing:void 0};function Tee(e,t){const n=P4(e);return()=>{var r;return(r=See[t])!==null&&r!==void 0?r:n()}}const Sh=Tee(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),bM=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(pu(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function $M(e){return!!(typeof e=="function"&&Sh()||!e||typeof e=="string"&&(e in P0||Sh())||W4(e)||Array.isArray(e)&&e.every($M))}const Zl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,P0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Zl([0,.65,.55,1]),circOut:Zl([.55,0,1,.45]),backIn:Zl([.31,.01,.66,-.59]),backOut:Zl([.33,1.53,.69,.99])};function xM(e,t){if(e)return typeof e=="function"&&Sh()?bM(e,t):W4(e)?Zl(e):Array.isArray(e)?e.map(n=>xM(n,t)||P0.easeOut):P0[e]}const Vr={x:!1,y:!1};function wM(){return Vr.x||Vr.y}function Aee(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function DM(e,t){const n=Aee(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function PS(e){return!(e.pointerType==="touch"||wM())}function Pee(e,t,n={}){const[r,i,a]=DM(e,n),o=u=>{if(!PS(u))return;const{target:l}=u,f=t(l,u);if(typeof f!="function"||!l)return;const d=h=>{PS(h)&&(f(h),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,i)};return r.forEach(u=>{u.addEventListener("pointerenter",o,i)}),a}const CM=(e,t)=>t?e===t?!0:CM(e,t.parentElement):!1,H4=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,_ee=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ree(e){return _ee.has(e.tagName)||e.tabIndex!==-1}const Jl=new WeakSet;function _S(e){return t=>{t.key==="Enter"&&e(t)}}function Yv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Oee=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=_S(()=>{if(Jl.has(n))return;Yv(n,"down");const i=_S(()=>{Yv(n,"up")}),a=()=>Yv(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function RS(e){return H4(e)&&!wM()}function Mee(e,t,n={}){const[r,i,a]=DM(e,n),o=u=>{const l=u.currentTarget;if(!RS(u)||Jl.has(l))return;Jl.add(l);const f=t(l,u),d=(g,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),!(!RS(g)||!Jl.has(l))&&(Jl.delete(l),typeof f=="function"&&f(g,{success:y}))},h=g=>{d(g,n.useGlobalTarget||CM(l,g.target))},p=g=>{d(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",p,i)};return r.forEach(u=>{!Ree(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",o,i),u.addEventListener("focus",f=>Oee(f,i),i)}),a}function Fee(e){return e==="x"||e==="y"?Vr[e]?null:(Vr[e]=!0,()=>{Vr[e]=!1}):Vr.x||Vr.y?null:(Vr.x=Vr.y=!0,()=>{Vr.x=Vr.y=!1})}const EM=new Set(["width","height","top","left","right","bottom",...Fu]);let zd;function kee(){zd=void 0}const Ai={now:()=>(zd===void 0&&Ai.set(hn.isProcessing||RQ.useManualTiming?hn.timestamp:performance.now()),zd),set:e=>{zd=e,queueMicrotask(kee)}};function G4(e,t){e.indexOf(t)===-1&&e.push(t)}function Y4(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function Iee([...e],t,n){const r=t<0?e.length+t:t;if(r>=0&&r<e.length){const i=n<0?e.length+n:n,[a]=e.splice(t,1);e.splice(i,0,a)}return e}let Z4=class{constructor(){this.subscriptions=[]}add(t){return G4(this.subscriptions,t),()=>Y4(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function SM(e,t){return t?e*(1e3/t):0}const OS=30,Bee=e=>!isNaN(parseFloat(e)),oc={current:void 0};let Lee=class{constructor(t,n={}){this.version="12.4.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Ai.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ai.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Bee(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Pp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Z4);const r=this.events[t].add(n);return t==="change"?()=>{r(),Et.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return oc.current&&oc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Ai.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>OS)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,OS);return SM(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function gu(e,t){return new Lee(e,t)}function Vee(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,gu(n))}function Nee(e,t){const n=Ac(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const u=yee(a[o]);Vee(e,o,u)}}function jee(e){return!!(pn(e)&&e.add)}function _0(e,t){const n=e.getValue("willChange");if(jee(n))return n.add(t)}function TM(e){return e.props[iM]}const AM=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Kee=1e-7,Uee=12;function zee(e,t,n,r,i){let a,o,u=0;do o=t+(n-t)/2,a=AM(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Kee&&++u<Uee);return o}function tf(e,t,n,r){if(e===t&&n===r)return Zn;const i=a=>zee(a,0,1,e,n);return a=>a===0||a===1?a:AM(i(a),t,r)}const PM=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_M=e=>t=>1-e(1-t),RM=tf(.33,1.53,.69,.99),J4=_M(RM),OM=PM(J4),MM=e=>(e*=2)<1?.5*J4(e):.5*(2-Math.pow(2,-10*(e-1))),X4=e=>1-Math.sin(Math.acos(e)),FM=_M(X4),kM=PM(X4),IM=e=>/^0[^.\s]+$/u.test(e);function qee(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||IM(e):!0}const sc=e=>Math.round(e*1e5)/1e5,Q4=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Wee(e){return e==null}const Hee=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,e3=(e,t)=>n=>!!(typeof n=="string"&&Hee.test(n)&&n.startsWith(e)||t&&!Wee(n)&&Object.prototype.hasOwnProperty.call(n,t)),BM=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,u]=r.match(Q4);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},Gee=e=>oa(0,255,e),Zv={...ku,transform:e=>Math.round(Gee(e))},_o={test:e3("rgb","red"),parse:BM("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Zv.transform(e)+", "+Zv.transform(t)+", "+Zv.transform(n)+", "+sc(Tc.transform(r))+")"};function Yee(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const R0={test:e3("#"),parse:Yee,transform:_o.transform},Ks={test:e3("hsl","hue"),parse:BM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Ti.transform(sc(t))+", "+Ti.transform(sc(n))+", "+sc(Tc.transform(r))+")"},xn={test:e=>_o.test(e)||R0.test(e)||Ks.test(e),parse:e=>_o.test(e)?_o.parse(e):Ks.test(e)?Ks.parse(e):R0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?_o.transform(e):Ks.transform(e)},Zee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Jee(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Q4))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(Zee))===null||n===void 0?void 0:n.length)||0)>0}const LM="number",VM="color",Xee="var",Qee="var(",MS="${}",ete=/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 Pc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const u=t.replace(ete,l=>(xn.test(l)?(r.color.push(a),i.push(VM),n.push(xn.parse(l))):l.startsWith(Qee)?(r.var.push(a),i.push(Xee),n.push(l)):(r.number.push(a),i.push(LM),n.push(parseFloat(l))),++a,MS)).split(MS);return{values:n,split:u,indexes:r,types:i}}function NM(e){return Pc(e).values}function jM(e){const{split:t,types:n}=Pc(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const u=n[o];u===LM?a+=sc(i[o]):u===VM?a+=xn.transform(i[o]):a+=i[o]}return a}}const tte=e=>typeof e=="number"?0:e;function nte(e){const t=NM(e);return jM(e)(t.map(tte))}const Wa={test:Jee,parse:NM,createTransformer:jM,getAnimatableNone:nte},rte=new Set(["brightness","contrast","saturate","opacity"]);function ite(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Q4)||[];if(!r)return e;const i=n.replace(r,"");let a=rte.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const ate=/\b([a-z-]*)\(.*?\)/gu,O0={...Wa,getAnimatableNone:e=>{const t=e.match(ate);return t?t.map(ite).join(" "):e}},ote={...I4,color:xn,backgroundColor:xn,outlineColor:xn,fill:xn,stroke:xn,borderColor:xn,borderTopColor:xn,borderRightColor:xn,borderBottomColor:xn,borderLeftColor:xn,filter:O0,WebkitFilter:O0},t3=e=>ote[e];function KM(e,t){let n=t3(e);return n!==O0&&(n=Wa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ste=new Set(["auto","none","0"]);function ute(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!ste.has(a)&&Pc(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=KM(n,i)}const FS=e=>e===ku||e===qe,kS=(e,t)=>parseFloat(e.split(", ")[t]),IS=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return kS(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?kS(a[1],e):0}},lte=new Set(["x","y","z"]),cte=Fu.filter(e=>!lte.has(e));function fte(e){const t=[];return cte.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const yu={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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:IS(4,13),y:IS(5,14)};yu.translateX=yu.x;yu.translateY=yu.y;const Io=new Set;let M0=!1,F0=!1;function UM(){if(F0){const e=Array.from(Io).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=fte(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var u;(u=r.getValue(a))===null||u===void 0||u.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}F0=!1,M0=!1,Io.forEach(e=>e.complete()),Io.clear()}function zM(){Io.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(F0=!0)})}function dte(){zM(),UM()}let n3=class{constructor(t,n,r,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Io.add(this),M0||(M0=!0,Et.read(zM),Et.resolveKeyframes(UM))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Io.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Io.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const qM=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),hte=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function pte(e){const t=hte.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const mte=4;function WM(e,t,n=1){Pi(n<=mte,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=pte(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return qM(o)?parseFloat(o):o}return k4(i)?WM(i,t,n+1):i}const HM=e=>t=>t.test(e),gte={test:e=>e==="auto",parse:e=>e},GM=[ku,qe,Ti,_a,eee,QQ,gte],BS=e=>GM.find(HM(e));let YM=class extends n3{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),k4(f))){const d=WM(f,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!EM.has(r)||t.length!==2)return;const[i,a]=t,o=BS(i),u=BS(a);if(o!==u)if(FS(o)&&FS(u))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)qee(t[i])&&r.push(i);r.length&&ute(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=yu[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,u=i[o];i[o]=yu[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,f])=>{n.getValue(l).set(f)}),this.resolveNoneKeyframes()}};const LS=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Wa.test(e)||e==="0")&&!e.startsWith("url("));function yte(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function vte(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=LS(i,t),u=LS(a,t);return Mu(o===u,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!u?!1:yte(e)||(n==="spring"||q4(n))&&r}const bte=e=>e!==null;function Mp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(bte),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const $te=40;let ZM=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ai.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>$te?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&dte(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ai.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:u,onUpdate:l,isGenerator:f}=this.options;if(!f&&!vte(t,r,i,a))if(o)this.options.duration=0;else{l&&l(Mp(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}};const Ft=(e,t,n)=>e+(t-e)*n;function Jv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function xte({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{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=Jv(l,u,e+1/3),a=Jv(l,u,e),o=Jv(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Th(e,t){return n=>n>0?t:e}const Xv=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},wte=[R0,_o,Ks],Dte=e=>wte.find(t=>t.test(e));function VS(e){const t=Dte(e);if(Mu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ks&&(n=xte(n)),n}const NS=(e,t)=>{const n=VS(e),r=VS(t);if(!n||!r)return Th(e,t);const i={...n};return a=>(i.red=Xv(n.red,r.red,a),i.green=Xv(n.green,r.green,a),i.blue=Xv(n.blue,r.blue,a),i.alpha=Ft(n.alpha,r.alpha,a),_o.transform(i))},Cte=(e,t)=>n=>t(e(n)),nf=(...e)=>e.reduce(Cte),k0=new Set(["none","hidden"]);function Ete(e,t){return k0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Ste(e,t){return n=>Ft(e,t,n)}function r3(e){return typeof e=="number"?Ste:typeof e=="string"?k4(e)?Th:xn.test(e)?NS:Pte:Array.isArray(e)?JM:typeof e=="object"?xn.test(e)?NS:Tte:Th}function JM(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>r3(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function Tte(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=r3(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function Ate(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],u=e.indexes[o][i[o]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[a]=l,i[o]++}return r}const Pte=(e,t)=>{const n=Wa.createTransformer(t),r=Pc(e),i=Pc(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?k0.has(e)&&!i.values.length||k0.has(t)&&!r.values.length?Ete(e,t):nf(JM(Ate(r,i),i.values),n):(Mu(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Th(e,t))};function XM(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Ft(e,t,n):r3(e)(e,t)}const _te=5;function QM(e,t,n){const r=Math.max(t-_te,0);return SM(n-e(r),t-r)}const It={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},jS=.001;function Rte({duration:e=It.duration,bounce:t=It.bounce,velocity:n=It.velocity,mass:r=It.mass}){let i,a;Mu(e<=Si(It.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=oa(It.minDamping,It.maxDamping,o),e=oa(It.minDuration,It.maxDuration,ta(e)),o<1?(i=f=>{const d=f*o,h=d*e,p=d-n,g=I0(f,o),y=Math.exp(-h);return jS-p/g*y},a=f=>{const h=f*o*e,p=h*n+n,g=Math.pow(o,2)*Math.pow(f,2)*e,y=Math.exp(-h),b=I0(Math.pow(f,2),o);return(-i(f)+jS>0?-1:1)*((p-g)*y)/b}):(i=f=>{const d=Math.exp(-f*e),h=(f-n)*e+1;return-.001+d*h},a=f=>{const d=Math.exp(-f*e),h=(n-f)*(e*e);return d*h});const u=5/e,l=Mte(i,a,u);if(e=Si(e),isNaN(l))return{stiffness:It.stiffness,damping:It.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const Ote=12;function Mte(e,t,n){let r=n;for(let i=1;i<Ote;i++)r=r-e(r)/t(r);return r}function I0(e,t){return e*Math.sqrt(1-t*t)}const Fte=["duration","bounce"],kte=["stiffness","damping","mass"];function KS(e,t){return t.some(n=>e[n]!==void 0)}function Ite(e){let t={velocity:It.velocity,stiffness:It.stiffness,damping:It.damping,mass:It.mass,isResolvedFromDuration:!1,...e};if(!KS(e,kte)&&KS(e,Fte))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*oa(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:It.mass,stiffness:i,damping:a}}else{const n=Rte(e);t={...t,...n,mass:It.mass},t.isResolvedFromDuration=!0}return t}function eF(e=It.visualDuration,t=It.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:l,damping:f,mass:d,duration:h,velocity:p,isResolvedFromDuration:g}=Ite({...n,velocity:-ta(n.velocity||0)}),y=p||0,b=f/(2*Math.sqrt(l*d)),D=o-a,$=ta(Math.sqrt(l/d)),v=Math.abs(D)<5;r||(r=v?It.restSpeed.granular:It.restSpeed.default),i||(i=v?It.restDelta.granular:It.restDelta.default);let w;if(b<1){const E=I0($,b);w=A=>{const M=Math.exp(-b*$*A);return o-M*((y+b*$*D)/E*Math.sin(E*A)+D*Math.cos(E*A))}}else if(b===1)w=E=>o-Math.exp(-$*E)*(D+(y+$*D)*E);else{const E=$*Math.sqrt(b*b-1);w=A=>{const M=Math.exp(-b*$*A),S=Math.min(E*A,300);return o-M*((y+b*$*D)*Math.sinh(S)+E*D*Math.cosh(S))/E}}const T={calculatedDuration:g&&h||null,next:E=>{const A=w(E);if(g)u.done=E>=h;else{let M=0;b<1&&(M=E===0?Si(y):QM(w,E,A));const S=Math.abs(M)<=r,z=Math.abs(o-A)<=i;u.done=S&&z}return u.value=u.done?o:A,u},toString:()=>{const E=Math.min(vM(T),A0),A=bM(M=>T.next(E*M).value,E,30);return E+"ms "+A}};return T}function US({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:u,max:l,restDelta:f=.5,restSpeed:d}){const h=e[0],p={done:!1,value:h},g=S=>u!==void 0&&S<u||l!==void 0&&S>l,y=S=>u===void 0?l:l===void 0||Math.abs(u-S)<Math.abs(l-S)?u:l;let b=n*t;const D=h+b,$=o===void 0?D:o(D);$!==D&&(b=$-h);const v=S=>-b*Math.exp(-S/r),w=S=>$+v(S),T=S=>{const z=v(S),j=w(S);p.done=Math.abs(z)<=f,p.value=p.done?$:j};let E,A;const M=S=>{g(p.value)&&(E=S,A=eF({keyframes:[p.value,y(p.value)],velocity:QM(w,S,p.value),damping:i,stiffness:a,restDelta:f,restSpeed:d}))};return M(0),{calculatedDuration:null,next:S=>{let z=!1;return!A&&E===void 0&&(z=!0,T(S),M(S)),E!==void 0&&S>=E?A.next(S-E):(!z&&T(S),p)}}}const Bte=tf(.42,0,1,1),Lte=tf(0,0,.58,1),tF=tf(.42,0,.58,1),Vte=e=>Array.isArray(e)&&typeof e[0]!="number",zS={linear:Zn,easeIn:Bte,easeInOut:tF,easeOut:Lte,circIn:X4,circInOut:kM,circOut:FM,backIn:J4,backInOut:OM,backOut:RM,anticipate:MM},qS=e=>{if(W4(e)){Pi(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return tf(t,n,r,i)}else if(typeof e=="string")return Pi(zS[e]!==void 0,`Invalid easing type '${e}'`),zS[e];return e};function Nte(e,t,n){const r=[],i=n||XM,a=e.length-1;for(let o=0;o<a;o++){let u=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Zn:t;u=nf(l,u)}r.push(u)}return r}function nF(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(Pi(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Nte(t,r,i),l=u.length,f=d=>{if(o&&d<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const p=pu(e[h],e[h+1],d);return u[h](p)};return n?d=>f(oa(e[0],e[a-1],d)):f}function jte(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=pu(0,t,r);e.push(Ft(n,1,i))}}function Kte(e){const t=[0];return jte(t,e.length-1),t}function Ute(e,t){return e.map(n=>n*t)}function zte(e,t){return e.map(()=>t||tF).splice(0,e.length-1)}function Ah({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Vte(r)?r.map(qS):qS(r),a={done:!1,value:t[0]},o=Ute(n&&n.length===t.length?n:Kte(t),e),u=nF(o,t,{ease:Array.isArray(i)?i:zte(t,i)});return{calculatedDuration:e,next:l=>(a.value=u(l),a.done=l>=e,a)}}const qte=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Et.update(t,!0),stop:()=>aa(t),now:()=>hn.isProcessing?hn.timestamp:Ai.now()}},Wte={decay:US,inertia:US,tween:Ah,keyframes:Ah,spring:eF},Hte=e=>e/100;let i3=class extends ZM{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||n3,u=(l,f)=>this.onKeyframesResolved(l,f);this.resolver=new o(a,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,u=q4(n)?n:Wte[n]||Ah;let l,f;u!==Ah&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Pi(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=nf(Hte,XM(t[0],t[1])),t=[0,100]);const d=u({...this.options,keyframes:t});a==="mirror"&&(f=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=vM(d));const{calculatedDuration:h}=d,p=h+i,g=p*(r+1)-i;return{generator:d,mirroredGenerator:f,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:p,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:f,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return a.next(0);const{delay:p,repeat:g,repeatType:y,repeatDelay:b,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const $=this.currentTime-p*(this.speed>=0?1:-1),v=this.speed>=0?$<0:$>d;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,T=a;if(g){const S=Math.min(this.currentTime,d)/h;let z=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&z--,z=Math.min(z,g+1),!!(z%2)&&(y==="reverse"?(j=1-j,b&&(j-=b/h)):y==="mirror"&&(T=o)),w=oa(0,1,j)*h}const E=v?{done:!1,value:l[0]}:T.next(w);u&&(E.value=u(E.value));let{done:A}=E;!v&&f!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&i!==void 0&&(E.value=Mp(l,this.options,i)),D&&D(E.value),M&&this.finish(),E}get duration(){const{resolved:t}=this;return t?ta(t.calculatedDuration):0}get time(){return ta(this.currentTime)}set time(t){t=Si(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ta(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=qte,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}};const Gte=new Set(["opacity","clipPath","filter","transform"]);function Yte(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:u="easeInOut",times:l}={}){const f={[t]:n};l&&(f.offset=l);const d=xM(u,i);return Array.isArray(d)&&(f.easing=d),e.animate(f,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const Zte=P4(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ph=10,Jte=2e4;function Xte(e){return q4(e.type)||e.type==="spring"||!$M(e.ease)}function Qte(e,t){const n=new i3({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<Jte;)r=n.sample(a),i.push(r.value),a+=Ph;return{times:void 0,keyframes:i,duration:a-Ph,ease:"linear"}}const rF={anticipate:MM,backInOut:OM,circInOut:kM};function ene(e){return e in rF}let WS=class extends ZM{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new YM(a,(o,u)=>this.onKeyframesResolved(o,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:o,motionValue:u,name:l,startTime:f}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof a=="string"&&Sh()&&ene(a)&&(a=rF[a]),Xte(this.options)){const{onComplete:h,onUpdate:p,motionValue:g,element:y,...b}=this.options,D=Qte(t,b);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,a=D.ease,o="keyframes"}const d=Yte(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:a});return d.startTime=f??this.calcStartTime(),this.pendingTimeline?(AS(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;u.set(Mp(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ta(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ta(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Si(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Zn;const{animation:r}=n;AS(r,t)}return Zn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:d,onComplete:h,element:p,...g}=this.options,y=new i3({...g,keyframes:r,duration:i,type:a,ease:o,times:u,isGenerator:!0}),b=Si(this.time);f.setWithVelocity(y.sample(b-Ph).value,y.sample(b).value,Ph)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:f}=n.owner.getProps();return Zte()&&r&&Gte.has(r)&&!l&&!f&&!i&&a!=="mirror"&&o!==0&&u!=="inertia"}};const tne={type:"spring",stiffness:500,damping:25,restSpeed:10},nne=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),rne={type:"keyframes",duration:.8},ine={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},ane=(e,{keyframes:t})=>t.length>2?rne:Qo.has(e)?e.startsWith("scale")?nne(t[1]):tne:ine;function one({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:u,from:l,elapsed:f,...d}){return!!Object.keys(d).length}const a3=(e,t,n,r={},i,a)=>o=>{const u=z4(r,e)||{},l=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-Si(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:p=>{t.set(p),u.onUpdate&&u.onUpdate(p)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:i};one(u)||(d={...d,...ane(e,d)}),d.duration&&(d.duration=Si(d.duration)),d.repeatDelay&&(d.repeatDelay=Si(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!a&&t.get()!==void 0){const p=Mp(d.keyframes,u);if(p!==void 0)return Et.update(()=>{d.onUpdate(p),d.onComplete()}),new Eee([])}return!a&&WS.supports(d)?new WS(d):new i3(d)};function sne({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function iF(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(o=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const p=e.getValue(h,(a=e.latestValues[h])!==null&&a!==void 0?a:null),g=l[h];if(g===void 0||d&&sne(d,h))continue;const y={delay:n,...z4(o||{},h)};let b=!1;if(window.MotionHandoffAnimation){const $=TM(e);if($){const v=window.MotionHandoffAnimation($,h,Et);v!==null&&(y.startTime=v,b=!0)}}_0(e,h),p.start(a3(h,p,g,e.shouldReduceMotion&&EM.has(h)?{type:!1}:y,e,b));const D=p.animation;D&&f.push(D)}return u&&Promise.all(f).then(()=>{Et.update(()=>{u&&Nee(e,u)})}),f}function B0(e,t,n={}){var r;const i=Ac(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(iF(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:p}=a;return une(e,t,d+f,h,p,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[f,d]=l==="beforeChildren"?[o,u]:[u,o];return f().then(()=>d())}else return Promise.all([o(),u(n.delay)])}function une(e,t,n=0,r=0,i=1,a){const o=[],u=(e.variantChildren.size-1)*r,l=i===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(lne).forEach((f,d)=>{f.notify("AnimationStart",t),o.push(B0(f,t,{...a,delay:n+l(d)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(o)}function lne(e,t){return e.sortNodePosition(t)}function cne(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>B0(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=B0(e,t,n);else{const i=typeof t=="function"?Ac(e,t,n.custom):t;r=Promise.all(iF(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function aF(e,t){if(!Array.isArray(t))return!1;const 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}const fne=R4.length;function oF(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?oF(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<fne;n++){const r=R4[n],i=e.props[r];(Ec(i)||i===!1)&&(t[r]=i)}return t}const dne=[..._4].reverse(),hne=_4.length;function pne(e){return t=>Promise.all(t.map(({animation:n,options:r})=>cne(e,n,r)))}function mne(e){let t=pne(e),n=HS(),r=!0;const i=l=>(f,d)=>{var h;const p=Ac(e,d,l==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(p){const{transition:g,transitionEnd:y,...b}=p;f={...f,...b,...y}}return f};function a(l){t=l(e)}function o(l){const{props:f}=e,d=oF(e.parent)||{},h=[],p=new Set;let g={},y=1/0;for(let D=0;D<hne;D++){const $=dne[D],v=n[$],w=f[$]!==void 0?f[$]:d[$],T=Ec(w),E=$===l?v.isActive:null;E===!1&&(y=D);let A=w===d[$]&&w!==f[$]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...g},!v.isActive&&E===null||!w&&!v.prevProp||Rp(w)||typeof w=="boolean")continue;const M=gne(v.prevProp,w);let S=M||$===l&&v.isActive&&!A&&T||D>y&&T,z=!1;const j=Array.isArray(w)?w:[w];let O=j.reduce(i($),{});E===!1&&(O={});const{prevResolvedValues:Z={}}=v,R={...Z,...O},V=k=>{S=!0,p.has(k)&&(z=!0,p.delete(k)),v.needsAnimating[k]=!0;const _=e.getValue(k);_&&(_.liveStyle=!1)};for(const k in R){const _=O[k],H=Z[k];if(g.hasOwnProperty(k))continue;let U=!1;T0(_)&&T0(H)?U=!aF(_,H):U=_!==H,U?_!=null?V(k):p.add(k):_!==void 0&&p.has(k)?V(k):v.protectedKeys[k]=!0}v.prevProp=w,v.prevResolvedValues=O,v.isActive&&(g={...g,...O}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(A&&M)||z)&&h.push(...j.map(k=>({animation:k,options:{type:$}})))}if(p.size){const D={};if(typeof f.initial!="boolean"){const $=Ac(e,Array.isArray(f.initial)?f.initial[0]:f.initial);$&&$.transition&&(D.transition=$.transition)}p.forEach($=>{const v=e.getBaseTarget($),w=e.getValue($);w&&(w.liveStyle=!0),D[$]=v??null}),h.push({animation:D})}let b=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(h):Promise.resolve()}function u(l,f){var d;if(n[l].isActive===f)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,f)}),n[l].isActive=f;const h=o(l);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:o,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=HS(),r=!0}}}function gne(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!aF(t,e):!1}function bo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function HS(){return{animate:bo(!0),whileInView:bo(),whileHover:bo(),whileTap:bo(),whileDrag:bo(),whileFocus:bo(),exit:bo()}}let Ja=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},yne=class extends Ja{constructor(t){super(t),t.animationState||(t.animationState=mne(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rp(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}},vne=0,bne=class extends Ja{constructor(){super(...arguments),this.id=vne++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}};const $ne={animation:{Feature:yne},exit:{Feature:bne}};function _c(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function rf(e){return{point:{x:e.pageX,y:e.pageY}}}const xne=e=>t=>H4(t)&&e(t,rf(t));function uc(e,t,n,r){return _c(e,t,xne(n),r)}const GS=(e,t)=>Math.abs(e-t);function wne(e,t){const n=GS(e.x,t.x),r=GS(e.y,t.y);return Math.sqrt(n**2+r**2)}class sF{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const h=eb(this.lastMoveEventInfo,this.history),p=this.startEvent!==null,g=wne(h.offset,{x:0,y:0})>=3;if(!p&&!g)return;const{point:y}=h,{timestamp:b}=hn;this.history.push({...y,timestamp:b});const{onStart:D,onMove:$}=this.handlers;p||(D&&D(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,h)},this.handlePointerMove=(h,p)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=Qv(p,this.transformPagePoint),Et.update(this.updatePoint,!0)},this.handlePointerUp=(h,p)=>{this.end();const{onEnd:g,onSessionEnd:y,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=eb(h.type==="pointercancel"?this.lastMoveEventInfo:Qv(p,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,D),y&&y(h,D)},!H4(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const o=rf(t),u=Qv(o,this.transformPagePoint),{point:l}=u,{timestamp:f}=hn;this.history=[{...l,timestamp:f}];const{onSessionStart:d}=n;d&&d(t,eb(u,this.history)),this.removeListeners=nf(uc(this.contextWindow,"pointermove",this.handlePointerMove),uc(this.contextWindow,"pointerup",this.handlePointerUp),uc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),aa(this.updatePoint)}}function Qv(e,t){return t?{point:t(e.point)}:e}function YS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eb({point:e},t){return{point:e,delta:YS(e,uF(t)),offset:YS(e,Dne(t)),velocity:Cne(t,.1)}}function Dne(e){return e[0]}function uF(e){return e[e.length-1]}function Cne(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=uF(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Si(t)));)n--;if(!r)return{x:0,y:0};const a=ta(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const 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}const lF=1e-4,Ene=1-lF,Sne=1+lF,cF=.01,Tne=0-cF,Ane=0+cF;function On(e){return e.max-e.min}function Pne(e,t,n){return Math.abs(e-t)<=n}function ZS(e,t,n,r=.5){e.origin=r,e.originPoint=Ft(t.min,t.max,e.origin),e.scale=On(n)/On(t),e.translate=Ft(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Ene&&e.scale<=Sne||isNaN(e.scale))&&(e.scale=1),(e.translate>=Tne&&e.translate<=Ane||isNaN(e.translate))&&(e.translate=0)}function lc(e,t,n,r){ZS(e.x,t.x,n.x,r?r.originX:void 0),ZS(e.y,t.y,n.y,r?r.originY:void 0)}function JS(e,t,n){e.min=n.min+t.min,e.max=e.min+On(t)}function _ne(e,t,n){JS(e.x,t.x,n.x),JS(e.y,t.y,n.y)}function XS(e,t,n){e.min=t.min-n.min,e.max=e.min+On(t)}function cc(e,t,n){XS(e.x,t.x,n.x),XS(e.y,t.y,n.y)}function Rne(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Ft(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Ft(n,e,r.max):Math.min(e,n)),e}function QS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function One(e,{top:t,left:n,bottom:r,right:i}){return{x:QS(e.x,n,i),y:QS(e.y,t,r)}}function e5(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 Mne(e,t){return{x:e5(e.x,t.x),y:e5(e.y,t.y)}}function Fne(e,t){let n=.5;const r=On(e),i=On(t);return i>r?n=pu(t.min,t.max-r,e.min):r>i&&(n=pu(e.min,e.max-i,t.min)),oa(0,1,n)}function kne(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const L0=.35;function Ine(e=L0){return e===!1?e=0:e===!0&&(e=L0),{x:t5(e,"left","right"),y:t5(e,"top","bottom")}}function t5(e,t,n){return{min:n5(e,t),max:n5(e,n)}}function n5(e,t){return typeof e=="number"?e:e[t]||0}const r5=()=>({translate:0,scale:1,origin:0,originPoint:0}),Us=()=>({x:r5(),y:r5()}),i5=()=>({min:0,max:0}),qt=()=>({x:i5(),y:i5()});function $r(e){return[e("x"),e("y")]}function fF({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Bne({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Lne(e,t){if(!t)return e;const 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 tb(e){return e===void 0||e===1}function V0({scale:e,scaleX:t,scaleY:n}){return!tb(e)||!tb(t)||!tb(n)}function xo(e){return V0(e)||dF(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function dF(e){return a5(e.x)||a5(e.y)}function a5(e){return e&&e!=="0%"}function _h(e,t,n){const r=e-n,i=t*r;return n+i}function o5(e,t,n,r,i){return i!==void 0&&(e=_h(e,i,r)),_h(e,n,r)+t}function N0(e,t=0,n=1,r,i){e.min=o5(e.min,t,n,r,i),e.max=o5(e.max,t,n,r,i)}function hF(e,{x:t,y:n}){N0(e.x,t.translate,t.scale,t.originPoint),N0(e.y,n.translate,n.scale,n.originPoint)}const s5=.999999999999,u5=1.0000000000001;function Vne(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let u=0;u<i;u++){a=n[u],o=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&qs(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,hF(e,o)),r&&xo(a.latestValues)&&qs(e,a.latestValues))}t.x<u5&&t.x>s5&&(t.x=1),t.y<u5&&t.y>s5&&(t.y=1)}function zs(e,t){e.min=e.min+t,e.max=e.max+t}function l5(e,t,n,r,i=.5){const a=Ft(e.min,e.max,i);N0(e,t,n,a,r)}function qs(e,t){l5(e.x,t.x,t.scaleX,t.scale,t.originX),l5(e.y,t.y,t.scaleY,t.scale,t.originY)}function pF(e,t){return fF(Lne(e.getBoundingClientRect(),t))}function Nne(e,t,n){const r=pF(e,n),{scroll:i}=t;return i&&(zs(r.x,i.offset.x),zs(r.y,i.offset.y)),r}const mF=({current:e})=>e?e.ownerDocument.defaultView:null,jne=new WeakMap;class Kne{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=qt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=d=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(rf(d).point)},a=(d,h)=>{const{drag:p,dragPropagation:g,onDragStart:y}=this.getProps();if(p&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Fee(p),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),$r(D=>{let $=this.getAxisMotionValue(D).get()||0;if(Ti.test($)){const{projection:v}=this.visualElement;if(v&&v.layout){const w=v.layout.layoutBox[D];w&&($=On(w)*(parseFloat($)/100))}}this.originPoint[D]=$}),y&&Et.postRender(()=>y(d,h)),_0(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},o=(d,h)=>{const{dragPropagation:p,dragDirectionLock:g,onDirectionLock:y,onDrag:b}=this.getProps();if(!p&&!this.openDragLock)return;const{offset:D}=h;if(g&&this.currentDirection===null){this.currentDirection=Une(D),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",h.point,D),this.updateAxis("y",h.point,D),this.visualElement.render(),b&&b(d,h)},u=(d,h)=>this.stop(d,h),l=()=>$r(d=>{var h;return this.getAnimationState(d)==="paused"&&((h=this.getAxisMotionValue(d).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:f}=this.getProps();this.panSession=new sF(t,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:u,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:f,contextWindow:mF(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&Et.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!xd(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=Rne(o,this.constraints[t],this.elastic[t])),a.set(o)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&js(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=One(i.layoutBox,n):this.constraints=!1,this.elastic=Ine(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&$r(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=kne(i.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!js(t))return!1;const r=t.current;Pi(r!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=Nne(r,i.root,this.visualElement.getTransformPagePoint());let o=Mne(i.layout.layoutBox,a);if(n){const u=n(Bne(o));this.hasMutatedConstraints=!!u,u&&(o=fF(u))}return o}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:u}=this.getProps(),l=this.constraints||{},f=$r(d=>{if(!xd(d,n,this.currentDirection))return;let h=l&&l[d]||{};o&&(h={min:0,max:0});const p=i?200:1e6,g=i?40:1e7,y={type:"inertia",velocity:r?t[d]:0,bounceStiffness:p,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...a,...h};return this.startAxisValueAnimation(d,y)});return Promise.all(f).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return _0(this.visualElement,t),r.start(a3(t,r,0,n,this.visualElement,!1))}stopAnimation(){$r(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){$r(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){$r(n=>{const{drag:r}=this.getProps();if(!xd(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:u}=i.layout.layoutBox[n];a.set(t[n]-Ft(o,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!js(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};$r(o=>{const u=this.getAxisMotionValue(o);if(u&&this.constraints!==!1){const l=u.get();i[o]=Fne({min:l,max:l},this.constraints[o])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),$r(o=>{if(!xd(o,t,null))return;const u=this.getAxisMotionValue(o),{min:l,max:f}=this.constraints[o];u.set(Ft(l,f,i[o]))})}addListeners(){if(!this.visualElement.current)return;jne.set(this.visualElement,this);const t=this.visualElement.current,n=uc(t,"pointerdown",l=>{const{drag:f,dragListener:d=!0}=this.getProps();f&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();js(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),Et.read(r);const o=_c(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:f})=>{this.isDragging&&f&&($r(d=>{const h=this.getAxisMotionValue(d);h&&(this.originPoint[d]+=l[d].translate,h.set(h.get()+l[d].translate))}),this.visualElement.render())});return()=>{o(),n(),a(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=L0,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:u}}}function xd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Une(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class zne extends Ja{constructor(t){super(t),this.removeGroupControls=Zn,this.removeListeners=Zn,this.controls=new Kne(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zn}unmount(){this.removeGroupControls(),this.removeListeners()}}const c5=e=>(t,n)=>{e&&Et.postRender(()=>e(t,n))};class qne extends Ja{constructor(){super(...arguments),this.removePointerDownListener=Zn}onPointerDown(t){this.session=new sF(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:mF(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:c5(t),onStart:c5(n),onMove:r,onEnd:(a,o)=>{delete this.session,i&&Et.postRender(()=>i(a,o))}}}mount(){this.removePointerDownListener=uc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const qd={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function f5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const kl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(qe.test(e))e=parseFloat(e);else return e;const n=f5(e,t.target.x),r=f5(e,t.target.y);return`${n}% ${r}%`}},Wne={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Wa.parse(e);if(i.length>5)return r;const a=Wa.createTransformer(e),o=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=u,i[1+o]/=l;const f=Ft(u,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=f),typeof i[3+o]=="number"&&(i[3+o]/=f),a(i)}};class Hne extends C.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;XQ(Gne),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),qd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,o=r.projection;return o&&(o.isPresent=a,i||t.layoutDependency!==n||n===void 0?o.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?o.promote():o.relegate()||Et.postRender(()=>{const u=o.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),M4.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function gF(e){const[t,n]=_Q(),r=C.useContext(XO);return ra.jsx(Hne,{...e,layoutGroup:r,switchLayoutGroup:C.useContext(aM),isPresent:t,safeToRemove:n})}const Gne={borderRadius:{...kl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:kl,borderTopRightRadius:kl,borderBottomLeftRadius:kl,borderBottomRightRadius:kl,boxShadow:Wne};function Yne(e,t,n){const r=pn(e)?e:gu(e);return r.start(a3("",r,t,n)),r.animation}function Zne(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Jne=(e,t)=>e.depth-t.depth;class Xne{constructor(){this.children=[],this.isDirty=!1}add(t){G4(this.children,t),this.isDirty=!0}remove(t){Y4(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Jne),this.isDirty=!1,this.children.forEach(t)}}function Qne(e,t){const n=Ai.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(aa(r),e(a-t))};return Et.read(r,!0),()=>aa(r)}const yF=["TopLeft","TopRight","BottomLeft","BottomRight"],ere=yF.length,d5=e=>typeof e=="string"?parseFloat(e):e,h5=e=>typeof e=="number"||qe.test(e);function tre(e,t,n,r,i,a){i?(e.opacity=Ft(0,n.opacity!==void 0?n.opacity:1,nre(r)),e.opacityExit=Ft(t.opacity!==void 0?t.opacity:1,0,rre(r))):a&&(e.opacity=Ft(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let o=0;o<ere;o++){const u=`border${yF[o]}Radius`;let l=p5(t,u),f=p5(n,u);if(l===void 0&&f===void 0)continue;l||(l=0),f||(f=0),l===0||f===0||h5(l)===h5(f)?(e[u]=Math.max(Ft(d5(l),d5(f),r),0),(Ti.test(f)||Ti.test(l))&&(e[u]+="%")):e[u]=f}(t.rotate||n.rotate)&&(e.rotate=Ft(t.rotate||0,n.rotate||0,r))}function p5(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const nre=vF(0,.5,FM),rre=vF(.5,.95,Zn);function vF(e,t,n){return r=>r<e?0:r>t?1:n(pu(e,t,r))}function m5(e,t){e.min=t.min,e.max=t.max}function vr(e,t){m5(e.x,t.x),m5(e.y,t.y)}function g5(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function y5(e,t,n,r,i){return e-=t,e=_h(e,1/n,r),i!==void 0&&(e=_h(e,1/i,r)),e}function ire(e,t=0,n=1,r=.5,i,a=e,o=e){if(Ti.test(t)&&(t=parseFloat(t),t=Ft(o.min,o.max,t/100)-o.min),typeof t!="number")return;let u=Ft(a.min,a.max,r);e===a&&(u-=t),e.min=y5(e.min,t,n,u,i),e.max=y5(e.max,t,n,u,i)}function v5(e,t,[n,r,i],a,o){ire(e,t[n],t[r],t[i],t.scale,a,o)}const are=["x","scaleX","originX"],ore=["y","scaleY","originY"];function b5(e,t,n,r){v5(e.x,t,are,n?n.x:void 0,r?r.x:void 0),v5(e.y,t,ore,n?n.y:void 0,r?r.y:void 0)}function $5(e){return e.translate===0&&e.scale===1}function bF(e){return $5(e.x)&&$5(e.y)}function x5(e,t){return e.min===t.min&&e.max===t.max}function sre(e,t){return x5(e.x,t.x)&&x5(e.y,t.y)}function w5(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $F(e,t){return w5(e.x,t.x)&&w5(e.y,t.y)}function D5(e){return On(e.x)/On(e.y)}function C5(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ure{constructor(){this.members=[]}add(t){G4(this.members,t),t.scheduleRender()}remove(t){if(Y4(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lre(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,o=(n==null?void 0: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){const{transformPerspective:f,rotate:d,rotateX:h,rotateY:p,skewX:g,skewY:y}=n;f&&(r=`perspective(${f}px) ${r}`),d&&(r+=`rotate(${d}deg) `),h&&(r+=`rotateX(${h}deg) `),p&&(r+=`rotateY(${p}deg) `),g&&(r+=`skewX(${g}deg) `),y&&(r+=`skewY(${y}deg) `)}const u=e.x.scale*t.x,l=e.y.scale*t.y;return(u!==1||l!==1)&&(r+=`scale(${u}, ${l})`),r||"none"}const nb=["","X","Y","Z"],cre={visibility:"hidden"},E5=1e3;let fre=0;function rb(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function xF(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=TM(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Et,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&xF(r)}function wF({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(o={},u=t==null?void 0:t()){this.id=fre++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(pre),this.nodes.forEach(bre),this.nodes.forEach($re),this.nodes.forEach(mre)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=u?u.root||u:this,this.path=u?[...u.path,u]:[],this.parent=u,this.depth=u?u.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Xne)}addEventListener(o,u){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Z4),this.eventHandlers.get(o).add(u)}notifyListeners(o,...u){const l=this.eventHandlers.get(o);l&&l.notify(...u)}hasListeners(o){return this.eventHandlers.has(o)}mount(o,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=Zne(o),this.instance=o;const{layoutId:l,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(f||l)&&(this.isLayoutDirty=!0),e){let h;const p=()=>this.root.updateBlockedByResize=!1;e(o,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=Qne(p,250),qd.hasAnimatedSinceResize&&(qd.hasAnimatedSinceResize=!1,this.nodes.forEach(T5))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||f)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:p,hasRelativeLayoutChanged:g,layout:y})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||d.getDefaultTransition()||Ere,{onLayoutAnimationStart:D,onLayoutAnimationComplete:$}=d.getProps(),v=!this.targetLayout||!$F(this.targetLayout,y),w=!p&&g;if(this.options.layoutRoot||this.resumeFrom||w||p&&(v||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,w);const T={...z4(b,"layout"),onPlay:D,onComplete:$};(d.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T)}else p||T5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=y})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,aa(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(xre),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&xF(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const h=this.path[d];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:l}=this.options;if(u===void 0&&!l)return;const f=this.getTransformTemplate();this.prevTransformTemplateValue=f?f(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(S5);return}this.isUpdating||this.nodes.forEach(yre),this.isUpdating=!1,this.nodes.forEach(vre),this.nodes.forEach(dre),this.nodes.forEach(hre),this.clearAllSnapshots();const u=Ai.now();hn.delta=oa(0,1e3/60,u-hn.timestamp),hn.timestamp=u,hn.isProcessing=!0,Gv.update.process(hn),Gv.preRender.process(hn),Gv.render.process(hn),hn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,M4.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(gre),this.sharedNodes.forEach(wre)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Et.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Et.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!On(this.snapshot.measuredBox.x)&&!On(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 l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutCorrected=qt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:u}=this.options;u&&u.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(u=!1),u){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!bF(this.projectionDelta),l=this.getTransformTemplate(),f=l?l(this.latestValues,""):void 0,d=f!==this.prevTransformTemplateValue;o&&(u||xo(this.latestValues)||d)&&(i(this.instance,f),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const u=this.measurePageBox();let l=this.removeElementScroll(u);return o&&(l=this.removeTransform(l)),Sre(l),{animationId:this.root.animationId,measuredBox:u,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var o;const{visualElement:u}=this.options;if(!u)return qt();const l=u.measureViewportBox();if(!(((o=this.scroll)===null||o===void 0?void 0:o.wasRoot)||this.path.some(Tre))){const{scroll:d}=this.root;d&&(zs(l.x,d.offset.x),zs(l.y,d.offset.y))}return l}removeElementScroll(o){var u;const l=qt();if(vr(l,o),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return l;for(let f=0;f<this.path.length;f++){const d=this.path[f],{scroll:h,options:p}=d;d!==this.root&&h&&p.layoutScroll&&(h.wasRoot&&vr(l,o),zs(l.x,h.offset.x),zs(l.y,h.offset.y))}return l}applyTransform(o,u=!1){const l=qt();vr(l,o);for(let f=0;f<this.path.length;f++){const d=this.path[f];!u&&d.options.layoutScroll&&d.scroll&&d!==d.root&&qs(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),xo(d.latestValues)&&qs(l,d.latestValues)}return xo(this.latestValues)&&qs(l,this.latestValues),l}removeTransform(o){const u=qt();vr(u,o);for(let l=0;l<this.path.length;l++){const f=this.path[l];if(!f.instance||!xo(f.latestValues))continue;V0(f.latestValues)&&f.updateSnapshot();const d=qt(),h=f.measurePageBox();vr(d,h),b5(u,f.latestValues,f.snapshot?f.snapshot.layoutBox:void 0,d)}return xo(this.latestValues)&&b5(u,this.latestValues),u}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}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!==hn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var u;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==l;if(!(o||f&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:p}=this.options;if(!(!this.layout||!(h||p))){if(this.resolvedRelativeTargetAt=hn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),cc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),vr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=qt(),this.targetWithTransforms=qt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_ne(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):vr(this.target,this.layout.layoutBox),hF(this.target,this.targetDelta)):vr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const g=this.getClosestProjectingParent();g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),cc(this.relativeTargetOrigin,this.target,g.target),vr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||V0(this.parent.latestValues)||dF(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var o;const u=this.getLead(),l=!!this.resumingFrom||this!==u;let f=!0;if((this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty)&&(f=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===hn.timestamp&&(f=!1),f)return;const{layout:d,layoutId:h}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||h))return;vr(this.layoutCorrected,this.layout.layoutBox);const p=this.treeScale.x,g=this.treeScale.y;Vne(this.layoutCorrected,this.treeScale,this.path,l),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=qt());const{target:y}=u;if(!y){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(g5(this.prevProjectionDelta.x,this.projectionDelta.x),g5(this.prevProjectionDelta.y,this.projectionDelta.y)),lc(this.projectionDelta,this.layoutCorrected,y,this.latestValues),(this.treeScale.x!==p||this.treeScale.y!==g||!C5(this.projectionDelta.x,this.prevProjectionDelta.x)||!C5(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",y))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Us(),this.projectionDelta=Us(),this.projectionDeltaWithTransform=Us()}setAnimationOrigin(o,u=!1){const l=this.snapshot,f=l?l.latestValues:{},d={...this.latestValues},h=Us();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const p=qt(),g=l?l.source:void 0,y=this.layout?this.layout.source:void 0,b=g!==y,D=this.getStack(),$=!D||D.members.length<=1,v=!!(b&&!$&&this.options.crossfade===!0&&!this.path.some(Cre));this.animationProgress=0;let w;this.mixTargetDelta=T=>{const E=T/1e3;A5(h.x,o.x,E),A5(h.y,o.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(cc(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),Dre(this.relativeTarget,this.relativeTargetOrigin,p,E),w&&sre(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=qt()),vr(w,this.relativeTarget)),b&&(this.animationValues=d,tre(d,f,this.latestValues,E,v,$)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(aa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Et.update(()=>{qd.hasAnimatedSinceResize=!0,this.currentAnimation=Yne(0,E5,{...o,onUpdate:u=>{this.mixTargetDelta(u),o.onUpdate&&o.onUpdate(u)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.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);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(E5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:u,target:l,layout:f,latestValues:d}=o;if(!(!u||!l||!f)){if(this!==o&&this.layout&&f&&DF(this.options.animationType,this.layout.layoutBox,f.layoutBox)){l=this.target||qt();const h=On(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const p=On(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+p}vr(u,l),qs(u,d),lc(this.projectionDeltaWithTransform,this.layoutCorrected,u,d)}}registerSharedNode(o,u){this.sharedNodes.has(o)||this.sharedNodes.set(o,new ure),this.sharedNodes.get(o).add(u);const f=u.options.initialPromotionConfig;u.promote({transition:f?f.transition:void 0,preserveFollowOpacity:f&&f.shouldPreserveFollowOpacity?f.shouldPreserveFollowOpacity(u):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var o;const{layoutId:u}=this.options;return u?((o=this.getStack())===null||o===void 0?void 0:o.lead)||this:this}getPrevLead(){var o;const{layoutId:u}=this.options;return u?(o=this.getStack())===null||o===void 0?void 0:o.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:u,preserveFollowOpacity:l}={}){const f=this.getStack();f&&f.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let u=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(u=!0),!u)return;const f={};l.z&&rb("z",o,f,this.animationValues);for(let d=0;d<nb.length;d++)rb(`rotate${nb[d]}`,o,f,this.animationValues),rb(`skew${nb[d]}`,o,f,this.animationValues);o.render();for(const d in f)o.setStaticValue(d,f[d]),this.animationValues&&(this.animationValues[d]=f[d]);o.scheduleRender()}getProjectionStyles(o){var u,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return cre;const f={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Ud(o==null?void 0:o.pointerEvents)||"",f.transform=d?d(this.latestValues,""):"none",f;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Ud(o==null?void 0:o.pointerEvents)||""),this.hasProjected&&!xo(this.latestValues)&&(b.transform=d?d({},""):"none",this.hasProjected=!1),b}const p=h.animationValues||h.latestValues;this.applyTransformsToTarget(),f.transform=lre(this.projectionDeltaWithTransform,this.treeScale,p),d&&(f.transform=d(p,f.transform));const{x:g,y}=this.projectionDelta;f.transformOrigin=`${g.origin*100}% ${y.origin*100}% 0`,h.animationValues?f.opacity=h===this?(l=(u=p.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:f.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const b in Sc){if(p[b]===void 0)continue;const{correct:D,applyTo:$,isCSSVariable:v}=Sc[b],w=f.transform==="none"?p[b]:D(p[b],h);if($){const T=$.length;for(let E=0;E<T;E++)f[$[E]]=w}else v?this.options.visualElement.renderState.vars[b]=w:f[b]=w}return this.options.layoutId&&(f.pointerEvents=h===this?Ud(o==null?void 0:o.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var u;return(u=o.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(S5),this.root.sharedNodes.clear()}}}function dre(e){e.updateLayout()}function hre(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;a==="size"?$r(h=>{const p=o?n.measuredBox[h]:n.layoutBox[h],g=On(p);p.min=r[h].min,p.max=p.min+g}):DF(a,n.layoutBox,r)&&$r(h=>{const p=o?n.measuredBox[h]:n.layoutBox[h],g=On(r[h]);p.max=p.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=Us();lc(u,r,n.layoutBox);const l=Us();o?lc(l,e.applyTransform(i,!0),n.measuredBox):lc(l,r,n.layoutBox);const f=!bF(u);let d=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:p,layout:g}=h;if(p&&g){const y=qt();cc(y,n.layoutBox,p.layoutBox);const b=qt();cc(b,r,g.layoutBox),$F(y,b)||(d=!0),h.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=y,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:u,hasLayoutChanged:f,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function pre(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function mre(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function gre(e){e.clearSnapshot()}function S5(e){e.clearMeasurements()}function yre(e){e.isLayoutDirty=!1}function vre(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function T5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function bre(e){e.resolveTargetDelta()}function $re(e){e.calcProjection()}function xre(e){e.resetSkewAndRotation()}function wre(e){e.removeLeadSnapshot()}function A5(e,t,n){e.translate=Ft(t.translate,0,n),e.scale=Ft(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function P5(e,t,n,r){e.min=Ft(t.min,n.min,r),e.max=Ft(t.max,n.max,r)}function Dre(e,t,n,r){P5(e.x,t.x,n.x,r),P5(e.y,t.y,n.y,r)}function Cre(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ere={duration:.45,ease:[.4,0,.1,1]},_5=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),R5=_5("applewebkit/")&&!_5("chrome/")?Math.round:Zn;function O5(e){e.min=R5(e.min),e.max=R5(e.max)}function Sre(e){O5(e.x),O5(e.y)}function DF(e,t,n){return e==="position"||e==="preserve-aspect"&&!Pne(D5(t),D5(n),.2)}function Tre(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const Are=wF({attachResizeListener:(e,t)=>_c(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ib={current:void 0},CF=wF({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ib.current){const e=new Are({});e.mount(window),e.setOptions({layoutScroll:!0}),ib.current=e}return ib.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Pre={pan:{Feature:qne},drag:{Feature:zne,ProjectionNode:CF,MeasureLayout:gF}};function M5(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&Et.postRender(()=>a(t,rf(t)))}let _re=class extends Ja{mount(){const{current:t}=this.node;t&&(this.unmount=Pee(t,(n,r)=>(M5(this.node,r,"Start"),i=>M5(this.node,i,"End"))))}unmount(){}},Rre=class extends Ja{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=nf(_c(this.node.current,"focus",()=>this.onFocus()),_c(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function F5(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&Et.postRender(()=>a(t,rf(t)))}let Ore=class extends Ja{mount(){const{current:t}=this.node;t&&(this.unmount=Mee(t,(n,r)=>(F5(this.node,r,"Start"),(i,{success:a})=>F5(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const j0=new WeakMap,ab=new WeakMap,Mre=e=>{const t=j0.get(e.target);t&&t(e)},Fre=e=>{e.forEach(Mre)};function kre({root:e,...t}){const n=e||document;ab.has(n)||ab.set(n,{});const r=ab.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Fre,{root:e,...t})),r[i]}function Ire(e,t,n){const r=kre(t);return j0.set(e,n),r.observe(e),()=>{j0.delete(e),r.unobserve(e)}}const Bre={some:0,all:1};let Lre=class extends Ja{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Bre[i]},u=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),p=f?d:h;p&&p(l)};return Ire(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Vre(t,n))&&this.startObserver()}unmount(){}};function Vre({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Nre={inView:{Feature:Lre},tap:{Feature:Ore},focus:{Feature:Rre},hover:{Feature:_re}},jre={layout:{ProjectionNode:CF,MeasureLayout:gF}},K0={current:null},EF={current:!1};function Kre(){if(EF.current=!0,!!A4)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>K0.current=e.matches;e.addListener(t),t()}else K0.current=!1}const Ure=[...GM,xn,Wa],zre=e=>Ure.find(HM(e)),qre=new WeakMap;function Wre(e,t,n){for(const r in t){const i=t[r],a=n[r];if(pn(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Pp(i.version==="12.4.2",`Attempting to mix Motion versions ${i.version} with 12.4.2 may not work as expected.`);else if(pn(a))e.addValue(r,gu(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,gu(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const k5=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Hre=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=n3,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=Ai.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Et.render(this.render,!1,!0))};const{latestValues:l,renderState:f,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=Op(n),this.isVariantNode=rM(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in p){const y=p[g];l[g]!==void 0&&pn(y)&&y.set(l[g],!1)}}mount(t){this.current=t,qre.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),EF.current||Kre(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:K0.current,process.env.NODE_ENV!=="production"&&Pp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),aa(this.notifyUpdate),aa(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=Qo.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Et.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in mu){const n=mu[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<k5.length;r++){const i=k5[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=Wre(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=gu(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(qM(i)||IM(i))?i=parseFloat(i):!zre(i)&&Wa.test(n)&&(i=KM(t,n)),this.setBaseTarget(t,pn(i)?i.get():i)),pn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=K4(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!pn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Z4),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},SF=class extends Hre{constructor(){super(...arguments),this.KeyframeResolver=YM}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;pn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function Gre(e){return window.getComputedStyle(e)}let Yre=class extends SF{constructor(){super(...arguments),this.type="html",this.renderInstance=pM}readValueFromInstance(t,n){if(Qo.has(n)){const r=t3(n);return r&&r.default||0}else{const r=Gre(t),i=(F4(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return pF(t,n)}build(t,n,r){B4(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return U4(t,n,r)}},Zre=class extends SF{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qt,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&hM(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Qo.has(n)){const r=t3(n);return r&&r.default||0}return n=mM.has(n)?n:O4(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return yM(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Et.postRender(this.updateDimensions)}build(t,n,r){N4(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){gM(t,n,r,i)}mount(t){this.isSVGTag=j4(t.tagName),super.mount(t)}};const Jre=(e,t)=>V4(e)?new Zre(t):new Yre(t,{allowProjection:e!==C.Fragment}),Xre=wee({...$ne,...Nre,...Pre,...jre},Jre),TF=LQ(Xre);function AF(e){const t=Qc(()=>gu(e)),{isStatic:n}=C.useContext(T4);if(n){const[,r]=C.useState(e);C.useEffect(()=>t.on("change",r),[])}return t}function PF(e,t){const n=AF(t()),r=()=>n.set(t());return r(),QO(()=>{const i=()=>Et.preRender(r,!1,!0),a=e.map(o=>o.on("change",i));return()=>{a.forEach(o=>o()),aa(r)}}),n}const Qre=e=>e&&typeof e=="object"&&e.mix,eie=e=>Qre(e)?e.mix:void 0;function tie(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],u=nF(i,a,{mixer:eie(a[0]),...o});return t?u(r):u}function nie(e){oc.current=[],e();const t=PF(oc.current,e);return oc.current=void 0,t}function rie(e,t,n,r){if(typeof e=="function")return nie(e);const i=typeof t=="function"?t:tie(t,n,r);return Array.isArray(e)?I5(e,i):I5([e],([a])=>i(a))}function I5(e,t){const n=Qc(()=>[]);return PF(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const _F=C.createContext(null);function iie(e,t,n,r){if(!r)return e;const i=e.findIndex(d=>d.value===t);if(i===-1)return e;const a=r>0?1:-1,o=e[i+a];if(!o)return e;const u=e[i],l=o.layout,f=Ft(l.min,l.max,.5);return a===1&&u.layout.max+n>f||a===-1&&u.layout.min+n<f?Iee(e,i,i+a):e}function aie({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...a},o){const u=Qc(()=>TF[t]),l=[],f=C.useRef(!1);Pi(!!i,"Reorder.Group must be provided a values prop");const d={axis:n,registerItem:(h,p)=>{const g=l.findIndex(y=>h===y.value);g!==-1?l[g].layout=p[n]:l.push({value:h,layout:p[n]}),l.sort(uie)},updateOrder:(h,p,g)=>{if(f.current)return;const y=iie(l,h,p,g);l!==y&&(f.current=!0,r(y.map(sie).filter(b=>i.indexOf(b)!==-1)))}};return C.useEffect(()=>{f.current=!1}),ra.jsx(u,{...a,ref:o,ignoreStrict:!0,children:ra.jsx(_F.Provider,{value:d,children:e})})}const oie=C.forwardRef(aie);function sie(e){return e.value}function uie(e,t){return e.layout.min-t.layout.min}function B5(e,t=0){return pn(e)?e:AF(t)}function lie({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:a=!0,...o},u){const l=Qc(()=>TF[r]),f=C.useContext(_F),d={x:B5(t.x),y:B5(t.y)},h=rie([d.x,d.y],([b,D])=>b||D?1:"unset");Pi(!!f,"Reorder.Item must be a child of Reorder.Group");const{axis:p,registerItem:g,updateOrder:y}=f;return ra.jsx(l,{drag:p,...o,dragSnapToOrigin:!0,style:{...t,x:d.x,y:d.y,zIndex:h},layout:a,onDrag:(b,D)=>{const{velocity:$}=D;$[p]&&y(n,d[p].get(),$[p]),i&&i(b,D)},onLayoutMeasure:b=>g(n,b),ref:u,ignoreStrict:!0,children:e})}const cie=C.forwardRef(lie),L5=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},RF=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?L5(r.ref,n,e):r&&r.refs&&r.refs.forEach(i=>L5(i,n,e))}},fie=(e,t)=>{t.shouldUseNativeValidation&&RF(e,t);const n={};for(const r in e){const i=Ae(t.fields,r),a=Object.assign(e[r]||{},{ref:i&&i.ref});if(die(t.names||Object.keys(e),r)){const o=Object.assign({},Ae(n,r));gt(o,"root",a),gt(n,r,o)}else gt(n,r,a)}return n},die=(e,t)=>e.some(n=>n.match(`^${t}\\.\\d+`));function hie(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,a){try{return Promise.resolve(function(o,u){try{var l=(t.context&&process.env.NODE_ENV==="development"&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(e[n.mode==="sync"?"validateSync":"validate"](r,Object.assign({abortEarly:!1},t,{context:i}))).then(function(f){return a.shouldUseNativeValidation&&RF({},a),{values:n.raw?Object.assign({},r):f,errors:{}}}))}catch(f){return u(f)}return l&&l.then?l.then(void 0,u):l}(0,function(o){if(!o.inner)throw o;return{values:{},errors:fie((u=o,l=!a.shouldUseNativeValidation&&a.criteriaMode==="all",(u.inner||[]).reduce(function(f,d){if(f[d.path]||(f[d.path]={message:d.message,type:d.type}),l){var h=f[d.path].types,p=h&&h[d.type];f[d.path]=fA(d.path,l,f,d.type,p?[].concat(p,d.message):d.message)}return f},{})),a)};var u,l}))}catch(o){return Promise.reject(o)}}}var ob,V5;function pie(){if(V5)return ob;V5=1;var e=_u(),t=Ou(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return ob=r,ob}var mie=pie();const gie=sa(mie),yie=C.createContext({});function vie(e){const t=C.useRef(null);return t.current===null&&(t.current=e()),t.current}const OF=C.createContext(null),MF=C.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),o3=typeof window<"u",bie=o3?C.useLayoutEffect:C.useEffect,Ha=e=>e;let af=Ha,vu=Ha;process.env.NODE_ENV!=="production"&&(af=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},vu=(e,t)=>{if(!e)throw new Error(t)});const $ie={useManualTiming:!1},wd=["read","resolveKeyframes","update","preRender","render","postRender"];function xie(e,t){let n=new Set,r=new Set,i=!1,a=!1;const o=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function l(d){o.has(d)&&(f.schedule(d),e()),d(u)}const f={schedule:(d,h=!1,p=!1)=>{const y=p&&i?n:r;return h&&o.add(d),y.has(d)||y.add(d),d},cancel:d=>{r.delete(d),o.delete(d)},process:d=>{if(u=d,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),n.clear(),i=!1,a&&(a=!1,f.process(d))}};return f}const wie=40;function FF(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=wd.reduce(($,v)=>($[v]=xie(a),$),{}),{read:u,resolveKeyframes:l,update:f,preRender:d,render:h,postRender:p}=o,g=()=>{const $=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min($-i.timestamp,wie),1),i.timestamp=$,i.isProcessing=!0,u.process(i),l.process(i),f.process(i),d.process(i),h.process(i),p.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},y=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:wd.reduce(($,v)=>{const w=o[v];return $[v]=(T,E=!1,A=!1)=>(n||y(),w.schedule(T,E,A)),$},{}),cancel:$=>{for(let v=0;v<wd.length;v++)o[wd[v]].cancel($)},state:i,steps:o}}const{schedule:Jn,cancel:U0,state:Rh}=FF(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ha,!0),s3=C.createContext({strict:!1}),N5={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"]},bu={};for(const e in N5)bu[e]={isEnabled:t=>N5[e].some(n=>!!t[n])};function j5(e){for(const t in e)bu[t]={...bu[t],...e[t]}}function Die({children:e,features:t,strict:n=!1}){const[,r]=C.useState(!sb(t)),i=C.useRef(void 0);if(!sb(t)){const{renderer:a,...o}=t;i.current=a,j5(o)}return C.useEffect(()=>{sb(t)&&t().then(({renderer:a,...o})=>{j5(o),i.current=a,r(!0)})},[]),ra.jsx(s3.Provider,{value:{renderer:i.current,strict:n},children:e})}function sb(e){return typeof e=="function"}const Cie=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Oh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Cie.has(e)}let kF=e=>!Oh(e);function Eie(e){e&&(kF=t=>t.startsWith("on")?!Oh(t):e(t))}try{Eie(require("@emotion/is-prop-valid").default)}catch{}function Sie(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(kF(i)||n===!0&&Oh(i)||!t&&!Oh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const K5=new Set;function Fp(e,t,n){e||K5.has(t)||(console.warn(t),K5.add(t))}function Tie(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&Fp(!1,"motion() is deprecated. Use motion.create() instead."),e(...r));return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const kp=C.createContext({});function Ip(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Rc(e){return typeof e=="string"||Array.isArray(e)}const u3=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],l3=["initial",...u3];function Bp(e){return Ip(e.animate)||l3.some(t=>Rc(e[t]))}function IF(e){return!!(Bp(e)||e.variants)}function Aie(e,t){if(Bp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Rc(n)?n:void 0,animate:Rc(r)?r:void 0}}return e.inherit!==!1?t:{}}function Pie(e){const{initial:t,animate:n}=Aie(e,C.useContext(kp));return C.useMemo(()=>({initial:t,animate:n}),[U5(t),U5(n)])}function U5(e){return Array.isArray(e)?e.join(" "):e}const _ie=Symbol.for("motionComponentSymbol");function BF(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Rie(e,t,n){return C.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):BF(n)&&(n.current=r))},[t])}const c3=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Oie="framerAppearId",LF="data-"+c3(Oie),{schedule:Mie}=FF(queueMicrotask,!1),Fie=C.createContext({});function kie(e,t,n,r,i){var a,o;const{visualElement:u}=C.useContext(kp),l=C.useContext(s3),f=C.useContext(OF),d=C.useContext(MF).reducedMotion,h=C.useRef(null);r=r||l.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:d}));const p=h.current,g=C.useContext(Fie);p&&!p.projection&&i&&(p.type==="html"||p.type==="svg")&&Iie(h.current,n,i,g);const y=C.useRef(!1);C.useInsertionEffect(()=>{p&&y.current&&p.update(n,f)});const b=n[LF],D=C.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((o=window.MotionHasOptimisedAnimation)===null||o===void 0?void 0:o.call(window,b)));return bie(()=>{p&&(y.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),Mie.render(p.render),D.current&&p.animationState&&p.animationState.animateChanges())}),C.useEffect(()=>{p&&(!D.current&&p.animationState&&p.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var $;($=window.MotionHandoffMarkAsComplete)===null||$===void 0||$.call(window,b)}),D.current=!1))}),p}function Iie(e,t,n,r){const{layoutId:i,layout:a,drag:o,dragConstraints:u,layoutScroll:l,layoutRoot:f}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:VF(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||u&&BF(u),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:f})}function VF(e){if(e)return e.options.allowProjection!==!1?e.projection:VF(e.parent)}function Bie({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,o;function u(f,d){let h;const p={...C.useContext(MF),...f,layoutId:Lie(f)},{isStatic:g}=p,y=Pie(f),b=r(f,g);if(!g&&o3){Vie(p,e);const D=Nie(p);h=D.MeasureLayout,y.visualElement=kie(i,b,p,t,D.ProjectionNode)}return ra.jsxs(kp.Provider,{value:y,children:[h&&y.visualElement?ra.jsx(h,{visualElement:y.visualElement,...p}):null,n(i,f,Rie(b,y.visualElement,d),b,g,y.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(o=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&o!==void 0?o:""})`}`;const l=C.forwardRef(u);return l[_ie]=i,l}function Lie({layoutId:e}){const t=C.useContext(yie).id;return t&&e!==void 0?t+"-"+e:e}function Vie(e,t){C.useContext(s3).strict,process.env.NODE_ENV}function Nie(e){const{drag:t,layout:n}=bu;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const NF=e=>t=>typeof t=="string"&&t.startsWith(e),jF=NF("--"),jie=NF("var(--"),f3=e=>jie(e)?Kie.test(e.split("/*")[0].trim()):!1,Kie=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Uie={},Iu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],es=new Set(Iu);function KF(e,{layout:t,layoutId:n}){return es.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Uie[e]||e==="opacity")}const Mn=e=>!!(e&&e.getVelocity),UF=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Go=(e,t,n)=>n>t?t:n<e?e:n,Bu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Oc={...Bu,transform:e=>Go(0,1,e)},Dd={...Bu,default:1},of=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Ra=of("deg"),eu=of("%"),We=of("px"),zie=of("vh"),qie=of("vw"),z5={...eu,parse:e=>eu.parse(e)/100,transform:e=>eu.transform(e*100)},Wie={borderWidth:We,borderTopWidth:We,borderRightWidth:We,borderBottomWidth:We,borderLeftWidth:We,borderRadius:We,radius:We,borderTopLeftRadius:We,borderTopRightRadius:We,borderBottomRightRadius:We,borderBottomLeftRadius:We,width:We,maxWidth:We,height:We,maxHeight:We,top:We,right:We,bottom:We,left:We,padding:We,paddingTop:We,paddingRight:We,paddingBottom:We,paddingLeft:We,margin:We,marginTop:We,marginRight:We,marginBottom:We,marginLeft:We,backgroundPositionX:We,backgroundPositionY:We},Hie={rotate:Ra,rotateX:Ra,rotateY:Ra,rotateZ:Ra,scale:Dd,scaleX:Dd,scaleY:Dd,scaleZ:Dd,skew:Ra,skewX:Ra,skewY:Ra,distance:We,translateX:We,translateY:We,translateZ:We,x:We,y:We,z:We,perspective:We,transformPerspective:We,opacity:Oc,originX:z5,originY:z5,originZ:We},q5={...Bu,transform:Math.round},d3={...Wie,...Hie,zIndex:q5,size:We,fillOpacity:Oc,strokeOpacity:Oc,numOctaves:q5},Gie={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Yie=Iu.length;function Zie(e,t,n){let r="",i=!0;for(let a=0;a<Yie;a++){const o=Iu[a],u=e[o];if(u===void 0)continue;let l=!0;if(typeof u=="number"?l=u===(o.startsWith("scale")?1:0):l=parseFloat(u)===0,!l||n){const f=UF(u,d3[o]);if(!l){i=!1;const d=Gie[o]||o;r+=`${d}(${f}) `}n&&(t[o]=f)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function h3(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let o=!1,u=!1;for(const l in t){const f=t[l];if(es.has(l)){o=!0;continue}else if(jF(l)){i[l]=f;continue}else{const d=UF(f,d3[l]);l.startsWith("origin")?(u=!0,a[l]=d):r[l]=d}}if(t.transform||(o||n?r.transform=Zie(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:l="50%",originY:f="50%",originZ:d=0}=a;r.transformOrigin=`${l} ${f} ${d}`}}const p3=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function zF(e,t,n){for(const r in t)!Mn(t[r])&&!KF(r,n)&&(e[r]=t[r])}function Jie({transformTemplate:e},t){return C.useMemo(()=>{const n=p3();return h3(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Xie(e,t){const n=e.style||{},r={};return zF(r,n,e),Object.assign(r,Jie(e,t)),r}function Qie(e,t){const n={},r=Xie(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}const eae=["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 m3(e){return typeof e!="string"||e.includes("-")?!1:!!(eae.indexOf(e)>-1||/[A-Z]/u.test(e))}const tae={offset:"stroke-dashoffset",array:"stroke-dasharray"},nae={offset:"strokeDashoffset",array:"strokeDasharray"};function rae(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?tae:nae;e[a.offset]=We.transform(-r);const o=We.transform(t),u=We.transform(n);e[a.array]=`${o} ${u}`}function W5(e,t,n){return typeof e=="string"?e:We.transform(t+n*e)}function iae(e,t,n){const r=W5(t,e.x,e.width),i=W5(n,e.y,e.height);return`${r} ${i}`}function g3(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:o,pathSpacing:u=1,pathOffset:l=0,...f},d,h){if(h3(e,f,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:p,style:g,dimensions:y}=e;p.transform&&(y&&(g.transform=p.transform),delete p.transform),y&&(i!==void 0||a!==void 0||g.transform)&&(g.transformOrigin=iae(y,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(p.x=t),n!==void 0&&(p.y=n),r!==void 0&&(p.scale=r),o!==void 0&&rae(p,o,u,l,!1)}const qF=()=>({...p3(),attrs:{}}),y3=e=>typeof e=="string"&&e.toLowerCase()==="svg";function aae(e,t,n,r){const i=C.useMemo(()=>{const a=qF();return g3(a,t,y3(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};zF(a,e.style,e),i.style={...a,...i.style}}return i}function oae(e=!1){return(n,r,i,{latestValues:a},o)=>{const l=(m3(n)?aae:Qie)(r,a,o,n),f=Sie(r,typeof n=="string",e),d=n!==C.Fragment?{...f,...l,ref:i}:{},{children:h}=r,p=C.useMemo(()=>Mn(h)?h.get():h,[h]);return C.createElement(n,{...d,children:p})}}function H5(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function v3(e,t,n,r){if(typeof t=="function"){const[i,a]=H5(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=H5(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const z0=e=>Array.isArray(e),sae=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),uae=e=>z0(e)?e[e.length-1]||0:e;function lae(e){const t=Mn(e)?e.get():e;return sae(t)?t.toValue():t}function cae({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const o={latestValues:fae(r,i,a,e),renderState:t()};return n&&(o.onMount=u=>n({props:r,current:u,...o}),o.onUpdate=u=>n(u)),o}const WF=e=>(t,n)=>{const r=C.useContext(kp),i=C.useContext(OF),a=()=>cae(e,t,r,i);return n?a():vie(a)};function fae(e,t,n,r){const i={},a=r(e,{});for(const p in a)i[p]=lae(a[p]);let{initial:o,animate:u}=e;const l=Bp(e),f=IF(e);t&&f&&!l&&e.inherit!==!1&&(o===void 0&&(o=t.initial),u===void 0&&(u=t.animate));let d=n?n.initial===!1:!1;d=d||o===!1;const h=d?u:o;if(h&&typeof h!="boolean"&&!Ip(h)){const p=Array.isArray(h)?h:[h];for(let g=0;g<p.length;g++){const y=v3(e,p[g]);if(y){const{transitionEnd:b,transition:D,...$}=y;for(const v in $){let w=$[v];if(Array.isArray(w)){const T=d?w.length-1:0;w=w[T]}w!==null&&(i[v]=w)}for(const v in b)i[v]=b[v]}}}return i}function b3(e,t,n){var r;const{style:i}=e,a={};for(const o in i)(Mn(i[o])||t.style&&Mn(t.style[o])||KF(o,e)||((r=n==null?void 0:n.getValue(o))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[o]=i[o]);return a}const dae={useVisualState:WF({scrapeMotionValuesFromProps:b3,createRenderState:p3})};function HF(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}function GF(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const YF=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ZF(e,t,n,r){GF(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(YF.has(i)?i:c3(i),t.attrs[i])}function JF(e,t,n){const r=b3(e,t,n);for(const i in e)if(Mn(e[i])||Mn(t[i])){const a=Iu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}const G5=["x","y","width","height","cx","cy","r"],hae={useVisualState:WF({scrapeMotionValuesFromProps:JF,createRenderState:qF,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const u in i)if(es.has(u)){a=!0;break}}if(!a)return;let o=!t;if(t)for(let u=0;u<G5.length;u++){const l=G5[u];e[l]!==t[l]&&(o=!0)}o&&Jn.read(()=>{HF(n,r),Jn.render(()=>{g3(r,i,y3(n.tagName),e.transformTemplate),ZF(n,r)})})}})};function pae(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const o={...m3(r)?hae:dae,preloadedFeatures:e,useRender:oae(i),createVisualElement:t,Component:r};return Bie(o)}}const mae=pae(),gae=Tie(mae);function Mc(e,t,n){const r=e.getProps();return v3(r,t,n!==void 0?n:r.custom,e)}function XF(e,t){return e?e[t]||e.default||e:void 0}const QF=new Set(["width","height","top","left","right","bottom",...Iu]);let Wd;function yae(){Wd=void 0}const Ka={now:()=>(Wd===void 0&&Ka.set(Rh.isProcessing||$ie.useManualTiming?Rh.timestamp:performance.now()),Wd),set:e=>{Wd=e,queueMicrotask(yae)}};function vae(e,t){e.indexOf(t)===-1&&e.push(t)}function bae(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class e9{constructor(){this.subscriptions=[]}add(t){return vae(this.subscriptions,t),()=>bae(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const o=this.subscriptions[a];o&&o(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function t9(e,t){return t?e*(1e3/t):0}const Y5=30,$ae=e=>!isNaN(parseFloat(e));class xae{constructor(t,n={}){this.version="12.4.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=Ka.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ka.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=$ae(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&Fp(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new e9);const r=this.events[t].add(n);return t==="change"?()=>{r(),Jn.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ka.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Y5)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Y5);return t9(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Mh(e,t){return new xae(e,t)}function wae(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Mh(n))}function Dae(e,t){const n=Mc(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const o in a){const u=uae(a[o]);wae(e,o,u)}}function Cae(e){return!!(Mn(e)&&e.add)}function Eae(e,t){const n=e.getValue("willChange");if(Cae(n))return n.add(t)}function Sae(e){return e.props[LF]}function $3(e){let t;return()=>(t===void 0&&(t=e()),t)}const Tae=$3(()=>window.ScrollTimeline!==void 0);class Aae{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(Tae()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class Pae extends Aae{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}const na=e=>e*1e3,Ua=e=>e/1e3;function x3(e){return typeof e=="function"}function Z5(e,t){e.timeline=t,e.onfinish=null}const w3=e=>Array.isArray(e)&&typeof e[0]=="number",_ae={linearEasing:void 0};function Rae(e,t){const n=$3(e);return()=>{var r;return(r=_ae[t])!==null&&r!==void 0?r:n()}}const Fh=Rae(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),D3=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},n9=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(D3(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function r9(e){return!!(typeof e=="function"&&Fh()||!e||typeof e=="string"&&(e in q0||Fh())||w3(e)||Array.isArray(e)&&e.every(r9))}const Xl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,q0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Xl([0,.65,.55,1]),circOut:Xl([.55,0,1,.45]),backIn:Xl([.31,.01,.66,-.59]),backOut:Xl([.33,1.53,.69,.99])};function i9(e,t){if(e)return typeof e=="function"&&Fh()?n9(e,t):w3(e)?Xl(e):Array.isArray(e)?e.map(n=>i9(n,t)||q0.easeOut):q0[e]}const a9=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Oae=1e-7,Mae=12;function Fae(e,t,n,r,i){let a,o,u=0;do o=t+(n-t)/2,a=a9(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>Oae&&++u<Mae);return o}function sf(e,t,n,r){if(e===t&&n===r)return Ha;const i=a=>Fae(a,0,1,e,n);return a=>a===0||a===1?a:a9(i(a),t,r)}const o9=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,s9=e=>t=>1-e(1-t),u9=sf(.33,1.53,.69,.99),C3=s9(u9),l9=o9(C3),c9=e=>(e*=2)<1?.5*C3(e):.5*(2-Math.pow(2,-10*(e-1))),E3=e=>1-Math.sin(Math.acos(e)),kae=s9(E3),f9=o9(E3),d9=e=>/^0[^.\s]+$/u.test(e);function Iae(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||d9(e):!0}const fc=e=>Math.round(e*1e5)/1e5,S3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Bae(e){return e==null}const Lae=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,T3=(e,t)=>n=>!!(typeof n=="string"&&Lae.test(n)&&n.startsWith(e)||t&&!Bae(n)&&Object.prototype.hasOwnProperty.call(n,t)),h9=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,o,u]=r.match(S3);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:u!==void 0?parseFloat(u):1}},Vae=e=>Go(0,255,e),ub={...Bu,transform:e=>Math.round(Vae(e))},Ro={test:T3("rgb","red"),parse:h9("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+ub.transform(e)+", "+ub.transform(t)+", "+ub.transform(n)+", "+fc(Oc.transform(r))+")"};function Nae(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const W0={test:T3("#"),parse:Nae,transform:Ro.transform},Ws={test:T3("hsl","hue"),parse:h9("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+eu.transform(fc(t))+", "+eu.transform(fc(n))+", "+fc(Oc.transform(r))+")"},wn={test:e=>Ro.test(e)||W0.test(e)||Ws.test(e),parse:e=>Ro.test(e)?Ro.parse(e):Ws.test(e)?Ws.parse(e):W0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ro.transform(e):Ws.transform(e)},jae=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Kae(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(S3))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(jae))===null||n===void 0?void 0:n.length)||0)>0}const p9="number",m9="color",Uae="var",zae="var(",J5="${}",qae=/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 Fc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const u=t.replace(qae,l=>(wn.test(l)?(r.color.push(a),i.push(m9),n.push(wn.parse(l))):l.startsWith(zae)?(r.var.push(a),i.push(Uae),n.push(l)):(r.number.push(a),i.push(p9),n.push(parseFloat(l))),++a,J5)).split(J5);return{values:n,split:u,indexes:r,types:i}}function g9(e){return Fc(e).values}function y9(e){const{split:t,types:n}=Fc(e),r=t.length;return i=>{let a="";for(let o=0;o<r;o++)if(a+=t[o],i[o]!==void 0){const u=n[o];u===p9?a+=fc(i[o]):u===m9?a+=wn.transform(i[o]):a+=i[o]}return a}}const Wae=e=>typeof e=="number"?0:e;function Hae(e){const t=g9(e);return y9(e)(t.map(Wae))}const Lu={test:Kae,parse:g9,createTransformer:y9,getAnimatableNone:Hae},Gae=new Set(["brightness","contrast","saturate","opacity"]);function Yae(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(S3)||[];if(!r)return e;const i=n.replace(r,"");let a=Gae.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const Zae=/\b([a-z-]*)\(.*?\)/gu,H0={...Lu,getAnimatableNone:e=>{const t=e.match(Zae);return t?t.map(Yae).join(" "):e}},Jae={...d3,color:wn,backgroundColor:wn,outlineColor:wn,fill:wn,stroke:wn,borderColor:wn,borderTopColor:wn,borderRightColor:wn,borderBottomColor:wn,borderLeftColor:wn,filter:H0,WebkitFilter:H0},A3=e=>Jae[e];function v9(e,t){let n=A3(e);return n!==H0&&(n=Lu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xae=new Set(["auto","none","0"]);function Qae(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!Xae.has(a)&&Fc(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=v9(n,i)}const X5=e=>e===Bu||e===We,Q5=(e,t)=>parseFloat(e.split(", ")[t]),eT=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Q5(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?Q5(a[1],e):0}},eoe=new Set(["x","y","z"]),toe=Iu.filter(e=>!eoe.has(e));function noe(e){const t=[];return toe.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const $u={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-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:eT(4,13),y:eT(5,14)};$u.translateX=$u.x;$u.translateY=$u.y;const Bo=new Set;let G0=!1,Y0=!1;function b9(){if(Y0){const e=Array.from(Bo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=noe(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,o])=>{var u;(u=r.getValue(a))===null||u===void 0||u.set(o)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Y0=!1,G0=!1,Bo.forEach(e=>e.complete()),Bo.clear()}function $9(){Bo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Y0=!0)})}function roe(){$9(),b9()}class P3{constructor(t,n,r,i,a,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Bo.add(this),G0||(G0=!0,Jn.read($9),Jn.resolveKeyframes(b9))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const o=i==null?void 0:i.get(),u=t[t.length-1];if(o!==void 0)t[0]=o;else if(r&&n){const l=r.readValue(n,u);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=u),i&&o===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Bo.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Bo.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const x9=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ioe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function aoe(e){const t=ioe.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const ooe=4;function w9(e,t,n=1){vu(n<=ooe,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=aoe(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const o=a.trim();return x9(o)?parseFloat(o):o}return f3(i)?w9(i,t,n+1):i}const D9=e=>t=>t.test(e),soe={test:e=>e==="auto",parse:e=>e},C9=[Bu,We,eu,Ra,qie,zie,soe],tT=e=>C9.find(D9(e));class E9 extends P3{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let f=t[l];if(typeof f=="string"&&(f=f.trim(),f3(f))){const d=w9(f,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!QF.has(r)||t.length!==2)return;const[i,a]=t,o=tT(i),u=tT(a);if(o!==u)if(X5(o)&&X5(u))for(let l=0;l<t.length;l++){const f=t[l];typeof f=="string"&&(t[l]=parseFloat(f))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)Iae(t[i])&&r.push(i);r.length&&Qae(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=$u[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const o=i.length-1,u=i[o];i[o]=$u[r](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,f])=>{n.getValue(l).set(f)}),this.resolveNoneKeyframes()}}const nT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Lu.test(e)||e==="0")&&!e.startsWith("url("));function uoe(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function loe(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],o=nT(i,t),u=nT(a,t);return af(o===u,`You are trying to animate ${t} from "${i}" to "${a}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${a} via the \`style\` property.`),!o||!u?!1:uoe(e)||(n==="spring"||x3(n))&&r}const coe=e=>e!==null;function Lp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(coe),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const foe=40;class S9{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:o="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Ka.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:o,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>foe?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&roe(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=Ka.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:o,onComplete:u,onUpdate:l,isGenerator:f}=this.options;if(!f&&!loe(t,r,i,a))if(o)this.options.duration=0;else{l&&l(Lp(t,this.options,n)),u&&u(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const Z0=2e4;function T9(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Z0;)t+=n,r=e.next(t);return t>=Z0?1/0:t}const Vp=(e,t,n)=>e+(t-e)*n;function lb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function doe({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{const u=n<.5?n*(1+t):n+t-n*t,l=2*n-u;i=lb(l,u,e+1/3),a=lb(l,u,e),o=lb(l,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function kh(e,t){return n=>n>0?t:e}const cb=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},hoe=[W0,Ro,Ws],poe=e=>hoe.find(t=>t.test(e));function rT(e){const t=poe(e);if(af(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===Ws&&(n=doe(n)),n}const iT=(e,t)=>{const n=rT(e),r=rT(t);if(!n||!r)return kh(e,t);const i={...n};return a=>(i.red=cb(n.red,r.red,a),i.green=cb(n.green,r.green,a),i.blue=cb(n.blue,r.blue,a),i.alpha=Vp(n.alpha,r.alpha,a),Ro.transform(i))},moe=(e,t)=>n=>t(e(n)),Np=(...e)=>e.reduce(moe),J0=new Set(["none","hidden"]);function goe(e,t){return J0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function yoe(e,t){return n=>Vp(e,t,n)}function _3(e){return typeof e=="number"?yoe:typeof e=="string"?f3(e)?kh:wn.test(e)?iT:$oe:Array.isArray(e)?A9:typeof e=="object"?wn.test(e)?iT:voe:kh}function A9(e,t){const n=[...e],r=n.length,i=e.map((a,o)=>_3(a)(a,t[o]));return a=>{for(let o=0;o<r;o++)n[o]=i[o](a);return n}}function voe(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=_3(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function boe(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const o=t.types[a],u=e.indexes[o][i[o]],l=(n=e.values[u])!==null&&n!==void 0?n:0;r[a]=l,i[o]++}return r}const $oe=(e,t)=>{const n=Lu.createTransformer(t),r=Fc(e),i=Fc(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?J0.has(e)&&!i.values.length||J0.has(t)&&!r.values.length?goe(e,t):Np(A9(boe(r,i),i.values),n):(af(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),kh(e,t))};function P9(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Vp(e,t,n):_3(e)(e,t)}const xoe=5;function _9(e,t,n){const r=Math.max(t-xoe,0);return t9(n-e(r),t-r)}const Bt={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},aT=.001;function woe({duration:e=Bt.duration,bounce:t=Bt.bounce,velocity:n=Bt.velocity,mass:r=Bt.mass}){let i,a;af(e<=na(Bt.maxDuration),"Spring duration must be 10 seconds or less");let o=1-t;o=Go(Bt.minDamping,Bt.maxDamping,o),e=Go(Bt.minDuration,Bt.maxDuration,Ua(e)),o<1?(i=f=>{const d=f*o,h=d*e,p=d-n,g=X0(f,o),y=Math.exp(-h);return aT-p/g*y},a=f=>{const h=f*o*e,p=h*n+n,g=Math.pow(o,2)*Math.pow(f,2)*e,y=Math.exp(-h),b=X0(Math.pow(f,2),o);return(-i(f)+aT>0?-1:1)*((p-g)*y)/b}):(i=f=>{const d=Math.exp(-f*e),h=(f-n)*e+1;return-.001+d*h},a=f=>{const d=Math.exp(-f*e),h=(n-f)*(e*e);return d*h});const u=5/e,l=Coe(i,a,u);if(e=na(e),isNaN(l))return{stiffness:Bt.stiffness,damping:Bt.damping,duration:e};{const f=Math.pow(l,2)*r;return{stiffness:f,damping:o*2*Math.sqrt(r*f),duration:e}}}const Doe=12;function Coe(e,t,n){let r=n;for(let i=1;i<Doe;i++)r=r-e(r)/t(r);return r}function X0(e,t){return e*Math.sqrt(1-t*t)}const Eoe=["duration","bounce"],Soe=["stiffness","damping","mass"];function oT(e,t){return t.some(n=>e[n]!==void 0)}function Toe(e){let t={velocity:Bt.velocity,stiffness:Bt.stiffness,damping:Bt.damping,mass:Bt.mass,isResolvedFromDuration:!1,...e};if(!oT(e,Soe)&&oT(e,Eoe))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Go(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Bt.mass,stiffness:i,damping:a}}else{const n=woe(e);t={...t,...n,mass:Bt.mass},t.isResolvedFromDuration=!0}return t}function R9(e=Bt.visualDuration,t=Bt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],u={done:!1,value:a},{stiffness:l,damping:f,mass:d,duration:h,velocity:p,isResolvedFromDuration:g}=Toe({...n,velocity:-Ua(n.velocity||0)}),y=p||0,b=f/(2*Math.sqrt(l*d)),D=o-a,$=Ua(Math.sqrt(l/d)),v=Math.abs(D)<5;r||(r=v?Bt.restSpeed.granular:Bt.restSpeed.default),i||(i=v?Bt.restDelta.granular:Bt.restDelta.default);let w;if(b<1){const E=X0($,b);w=A=>{const M=Math.exp(-b*$*A);return o-M*((y+b*$*D)/E*Math.sin(E*A)+D*Math.cos(E*A))}}else if(b===1)w=E=>o-Math.exp(-$*E)*(D+(y+$*D)*E);else{const E=$*Math.sqrt(b*b-1);w=A=>{const M=Math.exp(-b*$*A),S=Math.min(E*A,300);return o-M*((y+b*$*D)*Math.sinh(S)+E*D*Math.cosh(S))/E}}const T={calculatedDuration:g&&h||null,next:E=>{const A=w(E);if(g)u.done=E>=h;else{let M=0;b<1&&(M=E===0?na(y):_9(w,E,A));const S=Math.abs(M)<=r,z=Math.abs(o-A)<=i;u.done=S&&z}return u.value=u.done?o:A,u},toString:()=>{const E=Math.min(T9(T),Z0),A=n9(M=>T.next(E*M).value,E,30);return E+"ms "+A}};return T}function sT({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:u,max:l,restDelta:f=.5,restSpeed:d}){const h=e[0],p={done:!1,value:h},g=S=>u!==void 0&&S<u||l!==void 0&&S>l,y=S=>u===void 0?l:l===void 0||Math.abs(u-S)<Math.abs(l-S)?u:l;let b=n*t;const D=h+b,$=o===void 0?D:o(D);$!==D&&(b=$-h);const v=S=>-b*Math.exp(-S/r),w=S=>$+v(S),T=S=>{const z=v(S),j=w(S);p.done=Math.abs(z)<=f,p.value=p.done?$:j};let E,A;const M=S=>{g(p.value)&&(E=S,A=R9({keyframes:[p.value,y(p.value)],velocity:_9(w,S,p.value),damping:i,stiffness:a,restDelta:f,restSpeed:d}))};return M(0),{calculatedDuration:null,next:S=>{let z=!1;return!A&&E===void 0&&(z=!0,T(S),M(S)),E!==void 0&&S>=E?A.next(S-E):(!z&&T(S),p)}}}const Aoe=sf(.42,0,1,1),Poe=sf(0,0,.58,1),O9=sf(.42,0,.58,1),_oe=e=>Array.isArray(e)&&typeof e[0]!="number",uT={linear:Ha,easeIn:Aoe,easeInOut:O9,easeOut:Poe,circIn:E3,circInOut:f9,circOut:kae,backIn:C3,backInOut:l9,backOut:u9,anticipate:c9},lT=e=>{if(w3(e)){vu(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return sf(t,n,r,i)}else if(typeof e=="string")return vu(uT[e]!==void 0,`Invalid easing type '${e}'`),uT[e];return e};function Roe(e,t,n){const r=[],i=n||P9,a=e.length-1;for(let o=0;o<a;o++){let u=i(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||Ha:t;u=Np(l,u)}r.push(u)}return r}function Ooe(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(vu(a===t.length,"Both input and output ranges must be the same length"),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Roe(t,r,i),l=u.length,f=d=>{if(o&&d<e[0])return t[0];let h=0;if(l>1)for(;h<e.length-2&&!(d<e[h+1]);h++);const p=D3(e[h],e[h+1],d);return u[h](p)};return n?d=>f(Go(e[0],e[a-1],d)):f}function Moe(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=D3(0,t,r);e.push(Vp(n,1,i))}}function Foe(e){const t=[0];return Moe(t,e.length-1),t}function koe(e,t){return e.map(n=>n*t)}function Ioe(e,t){return e.map(()=>t||O9).splice(0,e.length-1)}function Ih({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=_oe(r)?r.map(lT):lT(r),a={done:!1,value:t[0]},o=koe(n&&n.length===t.length?n:Foe(t),e),u=Ooe(o,t,{ease:Array.isArray(i)?i:Ioe(t,i)});return{calculatedDuration:e,next:l=>(a.value=u(l),a.done=l>=e,a)}}const Boe=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Jn.update(t,!0),stop:()=>U0(t),now:()=>Rh.isProcessing?Rh.timestamp:Ka.now()}},Loe={decay:sT,inertia:sT,tween:Ih,keyframes:Ih,spring:R9},Voe=e=>e/100;class R3 extends S9{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,o=(i==null?void 0:i.KeyframeResolver)||P3,u=(l,f)=>this.onKeyframesResolved(l,f);this.resolver=new o(a,u,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=this.options,u=x3(n)?n:Loe[n]||Ih;let l,f;u!==Ih&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&vu(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),l=Np(Voe,P9(t[0],t[1])),t=[0,100]);const d=u({...this.options,keyframes:t});a==="mirror"&&(f=u({...this.options,keyframes:[...t].reverse(),velocity:-o})),d.calculatedDuration===null&&(d.calculatedDuration=T9(d));const{calculatedDuration:h}=d,p=h+i,g=p*(r+1)-i;return{generator:d,mirroredGenerator:f,mapPercentToKeyframes:l,calculatedDuration:h,resolvedDuration:p,totalDuration:g}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:S}=this.options;return{done:!0,value:S[S.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:o,mapPercentToKeyframes:u,keyframes:l,calculatedDuration:f,totalDuration:d,resolvedDuration:h}=r;if(this.startTime===null)return a.next(0);const{delay:p,repeat:g,repeatType:y,repeatDelay:b,onUpdate:D}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const $=this.currentTime-p*(this.speed>=0?1:-1),v=this.speed>=0?$<0:$>d;this.currentTime=Math.max($,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let w=this.currentTime,T=a;if(g){const S=Math.min(this.currentTime,d)/h;let z=Math.floor(S),j=S%1;!j&&S>=1&&(j=1),j===1&&z--,z=Math.min(z,g+1),!!(z%2)&&(y==="reverse"?(j=1-j,b&&(j-=b/h)):y==="mirror"&&(T=o)),w=Go(0,1,j)*h}const E=v?{done:!1,value:l[0]}:T.next(w);u&&(E.value=u(E.value));let{done:A}=E;!v&&f!==null&&(A=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return M&&i!==void 0&&(E.value=Lp(l,this.options,i)),D&&D(E.value),M&&this.finish(),E}get duration(){const{resolved:t}=this;return t?Ua(t.calculatedDuration):0}get time(){return Ua(this.currentTime)}set time(t){t=na(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ua(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=Boe,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const Noe=new Set(["opacity","clipPath","filter","transform"]);function joe(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o="loop",ease:u="easeInOut",times:l}={}){const f={[t]:n};l&&(f.offset=l);const d=i9(u,i);return Array.isArray(d)&&(f.easing=d),e.animate(f,{delay:r,duration:i,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:a+1,direction:o==="reverse"?"alternate":"normal"})}const Koe=$3(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Bh=10,Uoe=2e4;function zoe(e){return x3(e.type)||e.type==="spring"||!r9(e.ease)}function qoe(e,t){const n=new R3({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<Uoe;)r=n.sample(a),i.push(r.value),a+=Bh;return{times:void 0,keyframes:i,duration:a-Bh,ease:"linear"}}const M9={anticipate:c9,backInOut:l9,circInOut:f9};function Woe(e){return e in M9}class cT extends S9{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new E9(a,(o,u)=>this.onKeyframesResolved(o,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:o,motionValue:u,name:l,startTime:f}=this.options;if(!u.owner||!u.owner.current)return!1;if(typeof a=="string"&&Fh()&&Woe(a)&&(a=M9[a]),zoe(this.options)){const{onComplete:h,onUpdate:p,motionValue:g,element:y,...b}=this.options,D=qoe(t,b);t=D.keyframes,t.length===1&&(t[1]=t[0]),r=D.duration,i=D.times,a=D.ease,o="keyframes"}const d=joe(u.owner.current,l,t,{...this.options,duration:r,times:i,ease:a});return d.startTime=f??this.calcStartTime(),this.pendingTimeline?(Z5(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:h}=this.options;u.set(Lp(t,this.options,n)),h&&h(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:i,type:o,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ua(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ua(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=na(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return Ha;const{animation:r}=n;Z5(r,t)}return Ha}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:o,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:f,onUpdate:d,onComplete:h,element:p,...g}=this.options,y=new R3({...g,keyframes:r,duration:i,type:a,ease:o,times:u,isGenerator:!0}),b=na(this.time);f.setWithVelocity(y.sample(b-Bh).value,y.sample(b).value,Bh)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:o,type:u}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:f}=n.owner.getProps();return Koe()&&r&&Noe.has(r)&&!l&&!f&&!i&&a!=="mirror"&&o!==0&&u!=="inertia"}}const Hoe={type:"spring",stiffness:500,damping:25,restSpeed:10},Goe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Yoe={type:"keyframes",duration:.8},Zoe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Joe=(e,{keyframes:t})=>t.length>2?Yoe:es.has(e)?e.startsWith("scale")?Goe(t[1]):Hoe:Zoe;function Xoe({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:o,repeatDelay:u,from:l,elapsed:f,...d}){return!!Object.keys(d).length}const Qoe=(e,t,n,r={},i,a)=>o=>{const u=XF(r,e)||{},l=u.delay||r.delay||0;let{elapsed:f=0}=r;f=f-na(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-f,onUpdate:p=>{t.set(p),u.onUpdate&&u.onUpdate(p)},onComplete:()=>{o(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:a?void 0:i};Xoe(u)||(d={...d,...Joe(e,d)}),d.duration&&(d.duration=na(d.duration)),d.repeatDelay&&(d.repeatDelay=na(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let h=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(h=!0)),h&&!a&&t.get()!==void 0){const p=Lp(d.keyframes,u);if(p!==void 0)return Jn.update(()=>{d.onUpdate(p),d.onComplete()}),new Pae([])}return!a&&cT.supports(d)?new cT(d):new R3(d)};function ese({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function F9(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:o=e.getDefaultTransition(),transitionEnd:u,...l}=t;r&&(o=r);const f=[],d=i&&e.animationState&&e.animationState.getState()[i];for(const h in l){const p=e.getValue(h,(a=e.latestValues[h])!==null&&a!==void 0?a:null),g=l[h];if(g===void 0||d&&ese(d,h))continue;const y={delay:n,...XF(o||{},h)};let b=!1;if(window.MotionHandoffAnimation){const $=Sae(e);if($){const v=window.MotionHandoffAnimation($,h,Jn);v!==null&&(y.startTime=v,b=!0)}}Eae(e,h),p.start(Qoe(h,p,g,e.shouldReduceMotion&&QF.has(h)?{type:!1}:y,e,b));const D=p.animation;D&&f.push(D)}return u&&Promise.all(f).then(()=>{Jn.update(()=>{u&&Dae(e,u)})}),f}function Q0(e,t,n={}){var r;const i=Mc(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const o=i?()=>Promise.all(F9(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:d=0,staggerChildren:h,staggerDirection:p}=a;return tse(e,t,d+f,h,p,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[f,d]=l==="beforeChildren"?[o,u]:[u,o];return f().then(()=>d())}else return Promise.all([o(),u(n.delay)])}function tse(e,t,n=0,r=0,i=1,a){const o=[],u=(e.variantChildren.size-1)*r,l=i===1?(f=0)=>f*r:(f=0)=>u-f*r;return Array.from(e.variantChildren).sort(nse).forEach((f,d)=>{f.notify("AnimationStart",t),o.push(Q0(f,t,{...a,delay:n+l(d)}).then(()=>f.notify("AnimationComplete",t)))}),Promise.all(o)}function nse(e,t){return e.sortNodePosition(t)}function rse(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Q0(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Q0(e,t,n);else{const i=typeof t=="function"?Mc(e,t,n.custom):t;r=Promise.all(F9(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function k9(e,t){if(!Array.isArray(t))return!1;const 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}const ise=l3.length;function I9(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?I9(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<ise;n++){const r=l3[n],i=e.props[r];(Rc(i)||i===!1)&&(t[r]=i)}return t}const ase=[...u3].reverse(),ose=u3.length;function sse(e){return t=>Promise.all(t.map(({animation:n,options:r})=>rse(e,n,r)))}function use(e){let t=sse(e),n=fT(),r=!0;const i=l=>(f,d)=>{var h;const p=Mc(e,d,l==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(p){const{transition:g,transitionEnd:y,...b}=p;f={...f,...b,...y}}return f};function a(l){t=l(e)}function o(l){const{props:f}=e,d=I9(e.parent)||{},h=[],p=new Set;let g={},y=1/0;for(let D=0;D<ose;D++){const $=ase[D],v=n[$],w=f[$]!==void 0?f[$]:d[$],T=Rc(w),E=$===l?v.isActive:null;E===!1&&(y=D);let A=w===d[$]&&w!==f[$]&&T;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),v.protectedKeys={...g},!v.isActive&&E===null||!w&&!v.prevProp||Ip(w)||typeof w=="boolean")continue;const M=lse(v.prevProp,w);let S=M||$===l&&v.isActive&&!A&&T||D>y&&T,z=!1;const j=Array.isArray(w)?w:[w];let O=j.reduce(i($),{});E===!1&&(O={});const{prevResolvedValues:Z={}}=v,R={...Z,...O},V=k=>{S=!0,p.has(k)&&(z=!0,p.delete(k)),v.needsAnimating[k]=!0;const _=e.getValue(k);_&&(_.liveStyle=!1)};for(const k in R){const _=O[k],H=Z[k];if(g.hasOwnProperty(k))continue;let U=!1;z0(_)&&z0(H)?U=!k9(_,H):U=_!==H,U?_!=null?V(k):p.add(k):_!==void 0&&p.has(k)?V(k):v.protectedKeys[k]=!0}v.prevProp=w,v.prevResolvedValues=O,v.isActive&&(g={...g,...O}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(A&&M)||z)&&h.push(...j.map(k=>({animation:k,options:{type:$}})))}if(p.size){const D={};if(typeof f.initial!="boolean"){const $=Mc(e,Array.isArray(f.initial)?f.initial[0]:f.initial);$&&$.transition&&(D.transition=$.transition)}p.forEach($=>{const v=e.getBaseTarget($),w=e.getValue($);w&&(w.liveStyle=!0),D[$]=v??null}),h.push({animation:D})}let b=!!h.length;return r&&(f.initial===!1||f.initial===f.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(h):Promise.resolve()}function u(l,f){var d;if(n[l].isActive===f)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(p=>{var g;return(g=p.animationState)===null||g===void 0?void 0:g.setActive(l,f)}),n[l].isActive=f;const h=o(l);for(const p in n)n[p].protectedKeys={};return h}return{animateChanges:o,setActive:u,setAnimateFunction:a,getState:()=>n,reset:()=>{n=fT(),r=!0}}}function lse(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!k9(t,e):!1}function $o(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function fT(){return{animate:$o(!0),whileInView:$o(),whileHover:$o(),whileTap:$o(),whileDrag:$o(),whileFocus:$o(),exit:$o()}}class Vu{constructor(t){this.isMounted=!1,this.node=t}update(){}}class cse extends Vu{constructor(t){super(t),t.animationState||(t.animationState=use(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ip(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let fse=0;class dse extends Vu{constructor(){super(...arguments),this.id=fse++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const hse={animation:{Feature:cse},exit:{Feature:dse}},pse={y:!1};function mse(){return pse.y}const gse=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function dT(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function B9(e){return{point:{x:e.pageX,y:e.pageY}}}const hT=()=>({min:0,max:0}),L9=()=>({x:hT(),y:hT()});function yse({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function vse(e,t){if(!t)return e;const 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 bse(e,t){return yse(vse(e.getBoundingClientRect(),t))}function $se(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function V9(e,t){const n=$se(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function pT(e){return!(e.pointerType==="touch"||mse())}function xse(e,t,n={}){const[r,i,a]=V9(e,n),o=u=>{if(!pT(u))return;const{target:l}=u,f=t(l,u);if(typeof f!="function"||!l)return;const d=h=>{pT(h)&&(f(h),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,i)};return r.forEach(u=>{u.addEventListener("pointerenter",o,i)}),a}function mT(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&Jn.postRender(()=>a(t,B9(t)))}class wse extends Vu{mount(){const{current:t}=this.node;t&&(this.unmount=xse(t,(n,r)=>(mT(this.node,r,"Start"),i=>mT(this.node,i,"End"))))}unmount(){}}class Dse extends Vu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Np(dT(this.node.current,"focus",()=>this.onFocus()),dT(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const N9=(e,t)=>t?e===t?!0:N9(e,t.parentElement):!1,Cse=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Ese(e){return Cse.has(e.tagName)||e.tabIndex!==-1}const Ql=new WeakSet;function gT(e){return t=>{t.key==="Enter"&&e(t)}}function fb(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Sse=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=gT(()=>{if(Ql.has(n))return;fb(n,"down");const i=gT(()=>{fb(n,"up")}),a=()=>fb(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function yT(e){return gse(e)&&!0}function Tse(e,t,n={}){const[r,i,a]=V9(e,n),o=u=>{const l=u.currentTarget;if(!yT(u)||Ql.has(l))return;Ql.add(l);const f=t(l,u),d=(g,y)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",p),!(!yT(g)||!Ql.has(l))&&(Ql.delete(l),typeof f=="function"&&f(g,{success:y}))},h=g=>{d(g,n.useGlobalTarget||N9(l,g.target))},p=g=>{d(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",p,i)};return r.forEach(u=>{!Ese(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",o,i),u.addEventListener("focus",f=>Sse(f,i),i)}),a}function vT(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&Jn.postRender(()=>a(t,B9(t)))}class Ase extends Vu{mount(){const{current:t}=this.node;t&&(this.unmount=Tse(t,(n,r)=>(vT(this.node,r,"Start"),(i,{success:a})=>vT(this.node,i,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const e1=new WeakMap,db=new WeakMap,Pse=e=>{const t=e1.get(e.target);t&&t(e)},_se=e=>{e.forEach(Pse)};function Rse({root:e,...t}){const n=e||document;db.has(n)||db.set(n,{});const r=db.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(_se,{root:e,...t})),r[i]}function Ose(e,t,n){const r=Rse(t);return e1.set(e,n),r.observe(e),()=>{e1.delete(e),r.unobserve(e)}}const Mse={some:0,all:1};class Fse extends Vu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,o={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Mse[i]},u=l=>{const{isIntersecting:f}=l;if(this.isInView===f||(this.isInView=f,a&&!f&&this.hasEnteredView))return;f&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",f);const{onViewportEnter:d,onViewportLeave:h}=this.node.getProps(),p=f?d:h;p&&p(l)};return Ose(this.node.current,o,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(kse(t,n))&&this.startObserver()}unmount(){}}function kse({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Ise={inView:{Feature:Fse},tap:{Feature:Ase},focus:{Feature:Dse},hover:{Feature:wse}},t1={current:null},j9={current:!1};function Bse(){if(j9.current=!0,!!o3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>t1.current=e.matches;e.addListener(t),t()}else t1.current=!1}const Lse=[...C9,wn,Lu],Vse=e=>Lse.find(D9(e)),Nse=new WeakMap;function jse(e,t,n){for(const r in t){const i=t[r],a=n[r];if(Mn(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&Fp(i.version==="12.4.2",`Attempting to mix Motion versions ${i.version} with 12.4.2 may not work as expected.`);else if(Mn(a))e.addValue(r,Mh(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const o=e.getValue(r);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=e.getStaticValue(r);e.addValue(r,Mh(o!==void 0?o:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Kse{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:o},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=P3,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const g=Ka.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,Jn.render(this.render,!1,!0))};const{latestValues:l,renderState:f,onUpdate:d}=o;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=f,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!a,this.isControllingVariants=Bp(n),this.isVariantNode=IF(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in p){const y=p[g];l[g]!==void 0&&Mn(y)&&y.set(l[g],!1)}}mount(t){this.current=t,Nse.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),j9.current||Bse(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:t1.current,process.env.NODE_ENV!=="production"&&Fp(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),U0(this.notifyUpdate),U0(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=es.has(t);r&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Jn.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let o;window.MotionCheckAppearSync&&(o=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),o&&o(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in bu){const n=bu[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L9()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<bT.length;r++){const i=bT[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,o=t[a];o&&(this.propEventSubscriptions[i]=this.on(i,o))}this.prevMotionValues=jse(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Mh(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(x9(i)||d9(i))?i=parseFloat(i):!Vse(i)&&Lu.test(n)&&(i=v9(t,n)),this.setBaseTarget(t,Mn(i)?i.get():i)),Mn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const o=v3(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);o&&(i=o[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Mn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new e9),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class K9 extends Kse{constructor(){super(...arguments),this.KeyframeResolver=E9}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Mn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Use(e){return window.getComputedStyle(e)}class zse extends K9{constructor(){super(...arguments),this.type="html",this.renderInstance=GF}readValueFromInstance(t,n){if(es.has(n)){const r=A3(n);return r&&r.default||0}else{const r=Use(t),i=(jF(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return bse(t,n)}build(t,n,r){h3(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return b3(t,n,r)}}class qse extends K9{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=L9,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&HF(this.current,this.renderState)}}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(es.has(n)){const r=A3(n);return r&&r.default||0}return n=YF.has(n)?n:c3(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return JF(t,n,r)}onBindTransform(){this.current&&!this.renderState.dimensions&&Jn.postRender(this.updateDimensions)}build(t,n,r){g3(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){ZF(t,n,r,i)}mount(t){this.isSVGTag=y3(t.tagName),super.mount(t)}}const Wse=(e,t)=>m3(e)?new qse(t):new zse(t,{allowProjection:e!==C.Fragment}),Hse={renderer:Wse,...hse,...Ise};function U9(e){return t=>typeof t===e}var Gse=U9("function"),Yse=e=>e===null,$T=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",xT=e=>!Zse(e)&&!Yse(e)&&(Gse(e)||typeof e=="object"),Zse=U9("undefined");function Jse(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Fn(e[r],t[r]))return!1;return!0}function Xse(e,t){if(e.byteLength!==t.byteLength)return!1;const n=new DataView(e.buffer),r=new DataView(t.buffer);let i=e.byteLength;for(;i--;)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function Qse(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;for(const n of e.entries())if(!Fn(n[1],t.get(n[0])))return!1;return!0}function eue(e,t){if(e.size!==t.size)return!1;for(const n of e.entries())if(!t.has(n[0]))return!1;return!0}function Fn(e,t){if(e===t)return!0;if(e&&xT(e)&&t&&xT(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return Jse(e,t);if(e instanceof Map&&t instanceof Map)return Qse(e,t);if(e instanceof Set&&t instanceof Set)return eue(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return Xse(e,t);if($T(e)&&$T(t))return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=n.length;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[i]))return!1;for(let i=n.length;i--!==0;){const a=n[i];if(!(a==="_owner"&&e.$$typeof)&&!Fn(e[a],t[a]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var tue=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],nue=["bigint","boolean","null","number","string","symbol","undefined"];function jp(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(rue(t))return t}function Zr(e){return t=>jp(t)===e}function rue(e){return tue.includes(e)}function Nu(e){return t=>typeof t===e}function iue(e){return nue.includes(e)}var aue=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Re(e){if(e===null)return"null";switch(typeof e){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Re.array(e))return"Array";if(Re.plainFunction(e))return"Function";const t=jp(e);return t||"Object"}Re.array=Array.isArray;Re.arrayOf=(e,t)=>!Re.array(e)&&!Re.function(t)?!1:e.every(n=>t(n));Re.asyncGeneratorFunction=e=>jp(e)==="AsyncGeneratorFunction";Re.asyncFunction=Zr("AsyncFunction");Re.bigint=Nu("bigint");Re.boolean=e=>e===!0||e===!1;Re.date=Zr("Date");Re.defined=e=>!Re.undefined(e);Re.domElement=e=>Re.object(e)&&!Re.plainObject(e)&&e.nodeType===1&&Re.string(e.nodeName)&&aue.every(t=>t in e);Re.empty=e=>Re.string(e)&&e.length===0||Re.array(e)&&e.length===0||Re.object(e)&&!Re.map(e)&&!Re.set(e)&&Object.keys(e).length===0||Re.set(e)&&e.size===0||Re.map(e)&&e.size===0;Re.error=Zr("Error");Re.function=Nu("function");Re.generator=e=>Re.iterable(e)&&Re.function(e.next)&&Re.function(e.throw);Re.generatorFunction=Zr("GeneratorFunction");Re.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Re.iterable=e=>!Re.nullOrUndefined(e)&&Re.function(e[Symbol.iterator]);Re.map=Zr("Map");Re.nan=e=>Number.isNaN(e);Re.null=e=>e===null;Re.nullOrUndefined=e=>Re.null(e)||Re.undefined(e);Re.number=e=>Nu("number")(e)&&!Re.nan(e);Re.numericString=e=>Re.string(e)&&e.length>0&&!Number.isNaN(Number(e));Re.object=e=>!Re.nullOrUndefined(e)&&(Re.function(e)||typeof e=="object");Re.oneOf=(e,t)=>Re.array(e)?e.indexOf(t)>-1:!1;Re.plainFunction=Zr("Function");Re.plainObject=e=>{if(jp(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Re.primitive=e=>Re.null(e)||iue(typeof e);Re.promise=Zr("Promise");Re.propertyOf=(e,t,n)=>{if(!Re.object(e)||!t)return!1;const r=e[t];return Re.function(n)?n(r):Re.defined(r)};Re.regexp=Zr("RegExp");Re.set=Zr("Set");Re.string=Nu("string");Re.symbol=Nu("symbol");Re.undefined=Nu("undefined");Re.weakMap=Zr("WeakMap");Re.weakSet=Zr("WeakSet");var Me=Re;function oue(...e){return e.every(t=>Me.string(t)||Me.array(t)||Me.plainObject(t))}function sue(e,t,n){return z9(e,t)?[e,t].every(Me.array)?!e.some(ST(n))&&t.some(ST(n)):[e,t].every(Me.plainObject)?!Object.entries(e).some(ET(n))&&Object.entries(t).some(ET(n)):t===n:!1}function wT(e,t,n){const{actual:r,key:i,previous:a,type:o}=n,u=wi(e,i),l=wi(t,i);let f=[u,l].every(Me.number)&&(o==="increased"?u<l:u>l);return Me.undefined(r)||(f=f&&l===r),Me.undefined(a)||(f=f&&u===a),f}function DT(e,t,n){const{key:r,type:i,value:a}=n,o=wi(e,r),u=wi(t,r),l=i==="added"?o:u,f=i==="added"?u:o;if(!Me.nullOrUndefined(a)){if(Me.defined(l)){if(Me.array(l)||Me.plainObject(l))return sue(l,f,a)}else return Fn(f,a);return!1}return[o,u].every(Me.array)?!f.every(O3(l)):[o,u].every(Me.plainObject)?uue(Object.keys(l),Object.keys(f)):![o,u].every(d=>Me.primitive(d)&&Me.defined(d))&&(i==="added"?!Me.defined(o)&&Me.defined(u):Me.defined(o)&&!Me.defined(u))}function CT(e,t,{key:n}={}){let r=wi(e,n),i=wi(t,n);if(!z9(r,i))throw new TypeError("Inputs have different types");if(!oue(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(Me.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function ET(e){return([t,n])=>Me.array(e)?Fn(e,n)||e.some(r=>Fn(r,n)||Me.array(n)&&O3(n)(r)):Me.plainObject(e)&&e[t]?!!e[t]&&Fn(e[t],n):Fn(e,n)}function uue(e,t){return t.some(n=>!e.includes(n))}function ST(e){return t=>Me.array(e)?e.some(n=>Fn(n,t)||Me.array(t)&&O3(t)(n)):Fn(e,t)}function Il(e,t){return Me.array(e)?e.some(n=>Fn(n,t)):Fn(e,t)}function O3(e){return t=>e.some(n=>Fn(n,t))}function z9(...e){return e.every(Me.array)||e.every(Me.number)||e.every(Me.plainObject)||e.every(Me.string)}function wi(e,t){return Me.plainObject(e)||Me.array(e)?Me.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):Me.number(t)?e[t]:e:e}function Lh(e,t){if([e,t].some(Me.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(d=>Me.plainObject(d)||Me.array(d)))throw new Error("Expected plain objects or array");return{added:(d,h)=>{try{return DT(e,t,{key:d,type:"added",value:h})}catch{return!1}},changed:(d,h,p)=>{try{const g=wi(e,d),y=wi(t,d),b=Me.defined(h),D=Me.defined(p);if(b||D){const $=D?Il(p,g):!Il(h,g),v=Il(h,y);return $&&v}return[g,y].every(Me.array)||[g,y].every(Me.plainObject)?!Fn(g,y):g!==y}catch{return!1}},changedFrom:(d,h,p)=>{if(!Me.defined(d))return!1;try{const g=wi(e,d),y=wi(t,d),b=Me.defined(p);return Il(h,g)&&(b?Il(p,y):!b)}catch{return!1}},decreased:(d,h,p)=>{if(!Me.defined(d))return!1;try{return wT(e,t,{key:d,actual:h,previous:p,type:"decreased"})}catch{return!1}},emptied:d=>{try{const[h,p]=CT(e,t,{key:d});return!!h.length&&!p.length}catch{return!1}},filled:d=>{try{const[h,p]=CT(e,t,{key:d});return!h.length&&!!p.length}catch{return!1}},increased:(d,h,p)=>{if(!Me.defined(d))return!1;try{return wT(e,t,{key:d,actual:h,previous:p,type:"increased"})}catch{return!1}},removed:(d,h)=>{try{return DT(e,t,{key:d,type:"removed",value:h})}catch{return!1}}}}var hb,TT;function lue(){if(TT)return hb;TT=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;hb={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(f,d,h,p){h=h||{},typeof h=="function"&&(p=h,h={}),typeof p!="function"&&(p=o);var g=r(),y=f[u],b=h.ease||a,D=isNaN(h.duration)?350:+h.duration,$=!1;return y===d?p(e,f[u]):requestAnimationFrame(w),v;function v(){$=!0}function w(T){if($)return p(t,f[u]);var E=r(),A=n(1,(E-g)/D),M=b(A);f[u]=M*(d-y)+y,A<1?requestAnimationFrame(w):requestAnimationFrame(function(){p(null,f[u])})}}}function a(u){return .5*(1-Math.cos(Math.PI*u))}function o(){}return hb}var cue=lue();const fue=sa(cue);var Hd={exports:{}},due=Hd.exports,AT;function hue(){return AT||(AT=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(due,function(){function t(r){var i=getComputedStyle(r,null).getPropertyValue("overflow");return i.indexOf("scroll")>-1||i.indexOf("auto")>-1}function n(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var i=r.parentNode;i.parentNode;){if(t(i))return i;i=i.parentNode}return document.scrollingElement||document.documentElement}}return n})}(Hd)),Hd.exports}var pue=hue();const q9=sa(pue);var pb,PT;function mue(){if(PT)return pb;PT=1;var e=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},t=function(r,i){return r+n(i)},n=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(t,""):e(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?n(r.props.children):""};return n.default=n,pb=n,pb}var gue=mue();const _T=sa(gue);var mb,RT;function yue(){if(RT)return mb;RT=1;var e=function(v){return t(v)&&!n(v)};function t($){return!!$&&typeof $=="object"}function n($){var v=Object.prototype.toString.call($);return v==="[object RegExp]"||v==="[object Date]"||a($)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function a($){return $.$$typeof===i}function o($){return Array.isArray($)?[]:{}}function u($,v){return v.clone!==!1&&v.isMergeableObject($)?b(o($),$,v):$}function l($,v,w){return $.concat(v).map(function(T){return u(T,w)})}function f($,v){if(!v.customMerge)return b;var w=v.customMerge($);return typeof w=="function"?w:b}function d($){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols($).filter(function(v){return Object.propertyIsEnumerable.call($,v)}):[]}function h($){return Object.keys($).concat(d($))}function p($,v){try{return v in $}catch{return!1}}function g($,v){return p($,v)&&!(Object.hasOwnProperty.call($,v)&&Object.propertyIsEnumerable.call($,v))}function y($,v,w){var T={};return w.isMergeableObject($)&&h($).forEach(function(E){T[E]=u($[E],w)}),h(v).forEach(function(E){g($,E)||(p($,E)&&w.isMergeableObject(v[E])?T[E]=f(E,w)($[E],v[E],w):T[E]=u(v[E],w))}),T}function b($,v,w){w=w||{},w.arrayMerge=w.arrayMerge||l,w.isMergeableObject=w.isMergeableObject||e,w.cloneUnlessOtherwiseSpecified=u;var T=Array.isArray(v),E=Array.isArray($),A=T===E;return A?T?w.arrayMerge($,v,w):y($,v,w):u(v,w)}b.all=function(v,w){if(!Array.isArray(v))throw new Error("first argument should be an array");return v.reduce(function(T,E){return b(T,E,w)},{})};var D=b;return mb=D,mb}var vue=yue();const zr=sa(vue);var Cd={exports:{}},Ed={exports:{}},ht={};/** @license React v16.13.1
|
|
146
146
|
* react-is.production.min.js
|
|
147
147
|
*
|
|
148
148
|
* Copyright (c) Facebook, Inc. and its affiliates.
|