@fluidattacks/design 3.7.3 → 3.7.5-pr
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/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.d.ts +3 -0
- package/dist/components/card/card-with-options/index.js +1 -0
- package/dist/components/card/card-with-options/types.d.ts +27 -0
- 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/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/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/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/colums-modal/index.d.ts +1 -1
- package/dist/components/modal/colums-modal/index.js +1 -1
- package/dist/components/modal/colums-modal/types.d.ts +3 -8
- 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/modal/multiple-selection/index.js +1 -1
- package/dist/components/modal/multiple-selection/types.d.ts +4 -4
- 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/sortable-list/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-VGsuXGmJ.mjs → components-CxkuJqM2.mjs} +1092 -1000
- package/dist/{components-y_QBC2Vh.js → components-DRcw8i67.js} +270 -266
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/use-columns-modal.d.ts +22 -0
- package/dist/index.js +1 -1
- package/dist/{vendor-FQSEhQIt.js → vendor-BELJFpy_.js} +2 -2
- package/dist/{vendor-BYfrEtgG.mjs → vendor-C5t6BoBf.mjs} +6778 -6778
- package/package.json +1 -1
|
@@ -152,7 +152,7 @@ Check the top-level render call using <`+ue+">.")}return X}function ko(B,X){if(!
|
|
|
152
152
|
* @public
|
|
153
153
|
*/var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,a={},u={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function y(D){return D instanceof c?new c(D.type,y(D.content),D.alias):Array.isArray(D)?D.map(y):D.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(y){return Object.prototype.toString.call(y).slice(8,-1)},objId:function(y){return y.__id||Object.defineProperty(y,"__id",{value:++o}),y.__id},clone:function y(D,P){P=P||{};var E,T;switch(u.util.type(D)){case"Object":if(T=u.util.objId(D),P[T])return P[T];E={},P[T]=E;for(var k in D)D.hasOwnProperty(k)&&(E[k]=y(D[k],P));return E;case"Array":return T=u.util.objId(D),P[T]?P[T]:(E=[],P[T]=E,D.forEach(function(S,U){E[U]=y(S,P)}),E);default:return D}},getLanguage:function(y){for(;y;){var D=i.exec(y.className);if(D)return D[1].toLowerCase();y=y.parentElement}return"none"},setLanguage:function(y,D){y.className=y.className.replace(RegExp(i,"gi"),""),y.classList.add("language-"+D)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(E){var y=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(y){var D=document.getElementsByTagName("script");for(var P in D)if(D[P].src==y)return D[P]}return null}},isActive:function(y,D,P){for(var E="no-"+D;y;){var T=y.classList;if(T.contains(D))return!0;if(T.contains(E))return!1;y=y.parentElement}return!!P}},languages:{plain:a,plaintext:a,text:a,txt:a,extend:function(y,D){var P=u.util.clone(u.languages[y]);for(var E in D)P[E]=D[E];return P},insertBefore:function(y,D,P,E){E=E||u.languages;var T=E[y],k={};for(var S in T)if(T.hasOwnProperty(S)){if(S==D)for(var U in P)P.hasOwnProperty(U)&&(k[U]=P[U]);P.hasOwnProperty(S)||(k[S]=T[S])}var O=E[y];return E[y]=k,u.languages.DFS(u.languages,function(F,G){G===O&&F!=y&&(this[F]=k)}),k},DFS:function y(D,P,E,T){T=T||{};var k=u.util.objId;for(var S in D)if(D.hasOwnProperty(S)){P.call(D,S,D[S],E||S);var U=D[S],O=u.util.type(U);O==="Object"&&!T[k(U)]?(T[k(U)]=!0,y(U,P,null,T)):O==="Array"&&!T[k(U)]&&(T[k(U)]=!0,y(U,P,S,T))}}},plugins:{},highlightAll:function(y,D){u.highlightAllUnder(document,y,D)},highlightAllUnder:function(y,D,P){var E={callback:P,container:y,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 T=0,k;k=E.elements[T++];)u.highlightElement(k,D===!0,E.callback)},highlightElement:function(y,D,P){var E=u.util.getLanguage(y),T=u.languages[E];u.util.setLanguage(y,E);var k=y.parentElement;k&&k.nodeName.toLowerCase()==="pre"&&u.util.setLanguage(k,E);var S=y.textContent,U={element:y,language:E,grammar:T,code:S};function O(G){U.highlightedCode=G,u.hooks.run("before-insert",U),U.element.innerHTML=U.highlightedCode,u.hooks.run("after-highlight",U),u.hooks.run("complete",U),P&&P.call(U.element)}if(u.hooks.run("before-sanity-check",U),k=U.element.parentElement,k&&k.nodeName.toLowerCase()==="pre"&&!k.hasAttribute("tabindex")&&k.setAttribute("tabindex","0"),!U.code){u.hooks.run("complete",U),P&&P.call(U.element);return}if(u.hooks.run("before-highlight",U),!U.grammar){O(u.util.encode(U.code));return}if(D&&r.Worker){var F=new Worker(u.filename);F.onmessage=function(G){O(G.data)},F.postMessage(JSON.stringify({language:U.language,code:U.code,immediateClose:!0}))}else O(u.highlight(U.code,U.grammar,U.language))},highlight:function(y,D,P){var E={code:y,grammar:D,language:P};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),c.stringify(u.util.encode(E.tokens),E.language)},tokenize:function(y,D){var P=D.rest;if(P){for(var E in P)D[E]=P[E];delete D.rest}var T=new h;return m(T,T.head,y),f(y,T,D,T.head,0),v(T)},hooks:{all:{},add:function(y,D){var P=u.hooks.all;P[y]=P[y]||[],P[y].push(D)},run:function(y,D){var P=u.hooks.all[y];if(!(!P||!P.length))for(var E=0,T;T=P[E++];)T(D)}},Token:c};r.Prism=u;function c(y,D,P,E){this.type=y,this.content=D,this.alias=P,this.length=(E||"").length|0}c.stringify=function y(D,P){if(typeof D=="string")return D;if(Array.isArray(D)){var E="";return D.forEach(function(O){E+=y(O,P)}),E}var T={type:D.type,content:y(D.content,P),tag:"span",classes:["token",D.type],attributes:{},language:P},k=D.alias;k&&(Array.isArray(k)?Array.prototype.push.apply(T.classes,k):T.classes.push(k)),u.hooks.run("wrap",T);var S="";for(var U in T.attributes)S+=" "+U+'="'+(T.attributes[U]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+S+">"+T.content+"</"+T.tag+">"};function d(y,D,P,E){y.lastIndex=D;var T=y.exec(P);if(T&&E&&T[1]){var k=T[1].length;T.index+=k,T[0]=T[0].slice(k)}return T}function f(y,D,P,E,T,k){for(var S in P)if(!(!P.hasOwnProperty(S)||!P[S])){var U=P[S];U=Array.isArray(U)?U:[U];for(var O=0;O<U.length;++O){if(k&&k.cause==S+","+O)return;var F=U[O],G=F.inside,K=!!F.lookbehind,W=!!F.greedy,j=F.alias;if(W&&!F.pattern.global){var L=F.pattern.toString().match(/[imsuy]*$/)[0];F.pattern=RegExp(F.pattern.source,L+"g")}for(var _=F.pattern||F,M=E.next,Y=T;M!==D.tail&&!(k&&Y>=k.reach);Y+=M.value.length,M=M.next){var V=M.value;if(D.length>y.length)return;if(!(V instanceof c)){var z=1,re;if(W){if(re=d(_,Y,y,K),!re||re.index>=y.length)break;var Ee=re.index,oe=re.index+re[0].length,fe=Y;for(fe+=M.value.length;Ee>=fe;)M=M.next,fe+=M.value.length;if(fe-=M.value.length,Y=fe,M.value instanceof c)continue;for(var ie=M;ie!==D.tail&&(fe<oe||typeof ie.value=="string");ie=ie.next)z++,fe+=ie.value.length;z--,V=y.slice(Y,fe),re.index-=Y}else if(re=d(_,0,V,K),!re)continue;var Ee=re.index,$e=re[0],ne=V.slice(0,Ee),ye=V.slice(Ee+$e.length),xe=Y+V.length;k&&xe>k.reach&&(k.reach=xe);var he=M.prev;ne&&(he=m(D,he,ne),Y+=ne.length),g(D,he,z);var le=new c(S,G?u.tokenize($e,G):$e,j,$e);if(M=m(D,he,le),ye&&m(D,M,ye),z>1){var Fe={cause:S+","+O,reach:xe};f(y,D,P,M.prev,Y,Fe),k&&Fe.reach>k.reach&&(k.reach=Fe.reach)}}}}}}function h(){var y={value:null,prev:null,next:null},D={value:null,prev:y,next:null};y.next=D,this.head=y,this.tail=D,this.length=0}function m(y,D,P){var E=D.next,T={value:P,prev:D,next:E};return D.next=T,E.prev=T,y.length++,T}function g(y,D,P){for(var E=D.next,T=0;T<P&&E!==y.tail;T++)E=E.next;D.next=E,E.prev=D,y.length-=T}function v(y){for(var D=[],P=y.head.next;P!==y.tail;)D.push(P.value),P=P.next;return D}if(!r.document)return r.addEventListener&&(u.disableWorkerMessageHandler||r.addEventListener("message",function(y){var D=JSON.parse(y.data),P=D.language,E=D.code,T=D.immediateClose;r.postMessage(u.highlight(E,u.languages[P],P)),T&&r.close()},!1)),u;var $=u.util.currentScript();$&&(u.filename=$.src,$.hasAttribute("data-manual")&&(u.manual=!0));function C(){u.manual||u.highlightAll()}if(!u.manual){var x=document.readyState;x==="loading"||x==="interactive"&&$&&$.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return u}(t);e.exports&&(e.exports=n),typeof Li<"u"&&(Li.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,o){var a={};a["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},a.cdata=/^<!\[CDATA\[|\]\]>$/i;var u={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:a}};u["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var c={};c[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",c)}}),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 o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.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($,C){return"✖ Error "+$+" while fetching file: "+C},o="✖ Error: File does not exist or is empty",a={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},u="data-src-status",c="loading",d="loaded",f="failed",h="pre[data-src]:not(["+u+'="'+d+'"]):not(['+u+'="'+c+'"])';function m($,C,x){var y=new XMLHttpRequest;y.open("GET",$,!0),y.onreadystatechange=function(){y.readyState==4&&(y.status<400&&y.responseText?C(y.responseText):y.status>=400?x(i(y.status,y.statusText)):x(o))},y.send(null)}function g($){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec($||"");if(C){var x=Number(C[1]),y=C[2],D=C[3];return y?D?[x,Number(D)]:[x,void 0]:[x,x]}}n.hooks.add("before-highlightall",function($){$.selector+=", "+h}),n.hooks.add("before-sanity-check",function($){var C=$.element;if(C.matches(h)){$.code="",C.setAttribute(u,c);var x=C.appendChild(document.createElement("CODE"));x.textContent=r;var y=C.getAttribute("data-src"),D=$.language;if(D==="none"){var P=(/\.(\w+)$/.exec(y)||[,"none"])[1];D=a[P]||P}n.util.setLanguage(x,D),n.util.setLanguage(C,D);var E=n.plugins.autoloader;E&&E.loadLanguages(D),m(y,function(T){C.setAttribute(u,d);var k=g(C.getAttribute("data-range"));if(k){var S=T.split(/\r\n?|\n/g),U=k[0],O=k[1]==null?S.length:k[1];U<0&&(U+=S.length),U=Math.max(0,Math.min(U-1,S.length)),O<0&&(O+=S.length),O=Math.max(0,Math.min(O,S.length)),T=S.slice(U,O).join(`
|
|
154
154
|
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(U+1))}x.textContent=T,n.highlightElement(x)},function(T){C.setAttribute(u,f),x.textContent=T})}}),n.plugins.fileHighlight={highlight:function(C){for(var x=(C||document).querySelectorAll(h),y=0,D;D=x[y++];)n.highlightElement(D)}};var v=!1;n.fileHighlight=function(){v||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),v=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()}(xg)),xg.exports}var AH=TH();(function(){if(typeof Prism>"u"||typeof document>"u"||!document.querySelector)return;var e="line-numbers",t="linkable-line-numbers",n=/\n(?!$)/g;function r(m,g){return Array.prototype.slice.call((g||document).querySelectorAll(m))}function i(m,g){return m.classList.contains(g)}function o(m){m()}var a=function(){var m;return function(){if(typeof m>"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),m=g.offsetHeight===38,document.body.removeChild(g)}return m}}();function u(m,g){var v=getComputedStyle(m),$=getComputedStyle(g);function C(x){return+x.substr(0,x.length-2)}return g.offsetTop+C($.borderTopWidth)+C($.paddingTop)-C(v.paddingTop)}function c(m){return!m||!/pre/i.test(m.nodeName)?!1:!!(m.hasAttribute("data-line")||m.id&&Prism.util.isActive(m,t))}var d=!0;Prism.plugins.lineHighlight={highlightLines:function(g,v,$){v=typeof v=="string"?v:g.getAttribute("data-line")||"";var C=v.replace(/\s+/g,"").split(",").filter(Boolean),x=+g.getAttribute("data-line-offset")||0,y=a()?parseInt:parseFloat,D=y(getComputedStyle(g).lineHeight),P=Prism.util.isActive(g,e),E=g.querySelector("code"),T=P?g:E||g,k=[],S=E.textContent.match(n),U=S?S.length+1:1,O=!E||T==E?0:u(g,E);C.forEach(function(K){var W=K.split("-"),j=+W[0],L=+W[1]||j;if(L=Math.min(U+x,L),!(L<j)){var _=g.querySelector('.line-highlight[data-range="'+K+'"]')||document.createElement("div");if(k.push(function(){_.setAttribute("aria-hidden","true"),_.setAttribute("data-range",K),_.className=($||"")+" line-highlight"}),P&&Prism.plugins.lineNumbers){var M=Prism.plugins.lineNumbers.getLine(g,j),Y=Prism.plugins.lineNumbers.getLine(g,L);if(M){var V=M.offsetTop+O+"px";k.push(function(){_.style.top=V})}if(Y){var z=Y.offsetTop-M.offsetTop+Y.offsetHeight+"px";k.push(function(){_.style.height=z})}}else k.push(function(){_.setAttribute("data-start",String(j)),L>j&&_.setAttribute("data-end",String(L)),_.style.top=(j-x-1)*D+O+"px",_.textContent=new Array(L-j+2).join(`
|
|
155
|
-
`)});k.push(function(){_.style.width=g.scrollWidth+"px"}),k.push(function(){T.appendChild(_)})}});var F=g.id;if(P&&Prism.util.isActive(g,t)&&F){i(g,t)||k.push(function(){g.classList.add(t)});var G=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(K,W){var j=W+G;K.onclick=function(){var L=F+"."+j;d=!1,location.hash=L,setTimeout(function(){d=!0},1)}})}return function(){k.forEach(o)}}};function f(){var m=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(x){x.parentNode.removeChild(x)});var g=(m.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(m))){var v=m.slice(0,m.lastIndexOf(".")),$=document.getElementById(v);if($){$.hasAttribute("data-line")||$.setAttribute("data-line","");var C=Prism.plugins.lineHighlight.highlightLines($,g,"temporary ");C(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(m){var g=m.element.parentElement;if(c(g)){var v=0;r(".line-highlight",g).forEach(function($){v+=$.textContent.length,$.parentNode.removeChild($)}),v&&/^(?: \n)+$/.test(m.code.slice(-v))&&(m.code=m.code.slice(0,-v))}}),Prism.hooks.add("complete",function m(g){var v=g.element.parentElement;if(c(v)){clearTimeout(h);var $=Prism.plugins.lineNumbers,C=g.plugins&&g.plugins.lineNumbers;if(i(v,e)&&$&&!C)Prism.hooks.add("line-numbers",m);else{var x=Prism.plugins.lineHighlight.highlightLines(v);x(),h=setTimeout(f,1)}}}),window.addEventListener("hashchange",f),window.addEventListener("resize",function(){var m=r("pre").filter(c).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});m.forEach(o)})})();const Mx=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},XP=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Mx(r.ref,n,e):r.refs&&r.refs.forEach(i=>Mx(i,n,e))}},PH=(e,t)=>{t.shouldUseNativeValidation&&XP(e,t);const n={};for(const r in e){const i=Ae(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(_H(t.names||Object.keys(e),r)){const a=Object.assign({},Ae(n,r));Tt(a,"root",o),Tt(n,r,a)}else Tt(n,r,o)}return n},_H=(e,t)=>e.some(n=>n.startsWith(t+"."));function RH(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,u){try{var c=(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(d){return o.shouldUseNativeValidation&&XP({},o),{values:n.raw?r:d,errors:{}}}))}catch(d){return u(d)}return c&&c.then?c.then(void 0,u):c}(0,function(a){if(!a.inner)throw a;return{values:{},errors:PH((u=a,c=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(d,f){if(d[f.path]||(d[f.path]={message:f.message,type:f.type}),c){var h=d[f.path].types,m=h&&h[f.type];d[f.path]=iA(f.path,c,d,f.type,m?[].concat(m,f.message):f.message)}return d},{})),o)};var u,c}))}catch(a){return Promise.reject(a)}}}var wg,Fx;function OH(){if(Fx)return wg;Fx=1;var e=typeof Li=="object"&&Li&&Li.Object===Object&&Li;return wg=e,wg}var Dg,kx;function MH(){if(kx)return Dg;kx=1;var e=OH(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Dg=n,Dg}var Eg,Bx;function QP(){if(Bx)return Eg;Bx=1;var e=MH(),t=e.Symbol;return Eg=t,Eg}var Cg,Ix;function FH(){if(Ix)return Cg;Ix=1;var e=QP(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var u=n.call(a,i),c=a[i];try{a[i]=void 0;var d=!0}catch{}var f=r.call(a);return d&&(u?a[i]=c:delete a[i]),f}return Cg=o,Cg}var Sg,Lx;function kH(){if(Lx)return Sg;Lx=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Sg=n,Sg}var Tg,Vx;function BH(){if(Vx)return Tg;Vx=1;var e=QP(),t=FH(),n=kH(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(u){return u==null?u===void 0?i:r:o&&o in Object(u)?t(u):n(u)}return Tg=a,Tg}var Ag,Nx;function IH(){if(Nx)return Ag;Nx=1;function e(t){return t!=null&&typeof t=="object"}return Ag=e,Ag}var Pg,jx;function LH(){if(jx)return Pg;jx=1;var e=BH(),t=IH(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Pg=r,Pg}var VH=LH();const NH=To(VH),Kx=new Set;function pp(e,t,n){e||Kx.has(t)||(console.warn(t),Kx.add(t))}function jH(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))})}function mp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const uv=e=>Array.isArray(e);function e6(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}function bc(e){return typeof e=="string"||Array.isArray(e)}function Ux(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Qb(e,t,n,r){if(typeof t=="function"){const[i,o]=Ux(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Ux(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function gp(e,t,n){const r=e.getProps();return Qb(r,t,n!==void 0?n:r.custom,e)}const e0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],t0=["initial",...e0],Hc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gs=new Set(Hc),xo=e=>e*1e3,ua=e=>e/1e3,KH={type:"spring",stiffness:500,damping:25,restSpeed:10},UH=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),zH={type:"keyframes",duration:.8},WH={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},HH=(e,{keyframes:t})=>t.length>2?zH:gs.has(e)?e.startsWith("scale")?UH(t[1]):KH:WH;function t6(e,t){return e?e[t]||e.default||e:void 0}const GH={skipAnimations:!1,useManualTiming:!1},qH=e=>e!==null;function yp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(qH),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const fa=e=>e;let Wu=fa,cs=fa;process.env.NODE_ENV!=="production"&&(Wu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},cs=(e,t)=>{if(!e)throw new Error(t)});function YH(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const ff=["read","resolveKeyframes","update","preRender","render","postRender"],ZH=40;function n6(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ff.reduce((x,y)=>(x[y]=YH(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,ZH),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:ff.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<ff.length;y++)a[ff[y]].cancel(x)},state:i,steps:a}}const{schedule:kr,cancel:lv,state:vh,steps:zre}=n6(typeof requestAnimationFrame<"u"?requestAnimationFrame:fa,!0),r6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,JH=1e-7,XH=12;function QH(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=r6(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>JH&&++u<XH);return a}function Gc(e,t,n,r){if(e===t&&n===r)return fa;const i=o=>QH(o,0,1,e,n);return o=>o===0||o===1?o:r6(i(o),t,r)}const i6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,o6=e=>t=>1-e(1-t),a6=Gc(.33,1.53,.69,.99),n0=o6(a6),s6=i6(n0),u6=e=>(e*=2)<1?.5*n0(e):.5*(2-Math.pow(2,-10*(e-1))),r0=e=>1-Math.sin(Math.acos(e)),eG=o6(r0),l6=i6(r0),c6=e=>/^0[^.\s]+$/u.test(e);function tG(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||c6(e):!0}const d6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),f6=e=>t=>typeof t=="string"&&t.startsWith(e),h6=f6("--"),nG=f6("var(--"),i0=e=>nG(e)?rG.test(e.split("/*")[0].trim()):!1,rG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,iG=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function oG(e){const t=iG.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const aG=4;function p6(e,t,n=1){cs(n<=aG,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=oG(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return d6(a)?parseFloat(a):a}return i0(i)?p6(i,t,n+1):i}const ds=(e,t,n)=>n>t?t:n<e?e:n,Hu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$c={...Hu,transform:e=>ds(0,1,e)},hf={...Hu,default:1},qc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yo=qc("deg"),gu=qc("%"),Ze=qc("px"),sG=qc("vh"),uG=qc("vw"),zx={...gu,parse:e=>gu.parse(e)/100,transform:e=>gu.transform(e*100)},lG=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Wx=e=>e===Hu||e===Ze,Hx=(e,t)=>parseFloat(e.split(", ")[t]),Gx=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Hx(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Hx(o[1],e):0}},cG=new Set(["x","y","z"]),dG=Hc.filter(e=>!cG.has(e));function fG(e){const t=[];return dG.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:Gx(4,13),y:Gx(5,14)};_u.translateX=_u.x;_u.translateY=_u.y;const m6=e=>t=>t.test(e),hG={test:e=>e==="auto",parse:e=>e},g6=[Hu,Ze,gu,Yo,uG,sG,hG],qx=e=>g6.find(m6(e)),Xa=new Set;let cv=!1,dv=!1;function y6(){if(dv){const e=Array.from(Xa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=fG(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(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}dv=!1,cv=!1,Xa.forEach(e=>e.complete()),Xa.clear()}function v6(){Xa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(dv=!0)})}function pG(){v6(),y6()}let o0=class{constructor(t,n,r,i,o,a=!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=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xa.add(this),cv||(cv=!0,kr.read(v6),kr.resolveKeyframes(y6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const nc=e=>Math.round(e*1e5)/1e5,a0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function mG(e){return e==null}const gG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,s0=(e,t)=>n=>!!(typeof n=="string"&&gG.test(n)&&n.startsWith(e)||t&&!mG(n)&&Object.prototype.hasOwnProperty.call(n,t)),b6=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(a0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},yG=e=>ds(0,255,e),_g={...Hu,transform:e=>Math.round(yG(e))},Ha={test:s0("rgb","red"),parse:b6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+_g.transform(e)+", "+_g.transform(t)+", "+_g.transform(n)+", "+nc($c.transform(r))+")"};function vG(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 fv={test:s0("#"),parse:vG,transform:Ha.transform},ru={test:s0("hsl","hue"),parse:b6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gu.transform(nc(t))+", "+gu.transform(nc(n))+", "+nc($c.transform(r))+")"},qn={test:e=>Ha.test(e)||fv.test(e)||ru.test(e),parse:e=>Ha.test(e)?Ha.parse(e):ru.test(e)?ru.parse(e):fv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ha.transform(e):ru.transform(e)},bG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $G(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(a0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(bG))===null||n===void 0?void 0:n.length)||0)>0}const $6="number",x6="color",xG="var",wG="var(",Yx="${}",DG=/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 xc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(DG,c=>(qn.test(c)?(r.color.push(o),i.push(x6),n.push(qn.parse(c))):c.startsWith(wG)?(r.var.push(o),i.push(xG),n.push(c)):(r.number.push(o),i.push($6),n.push(parseFloat(c))),++o,Yx)).split(Yx);return{values:n,split:u,indexes:r,types:i}}function w6(e){return xc(e).values}function D6(e){const{split:t,types:n}=xc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===$6?o+=nc(i[a]):u===x6?o+=qn.transform(i[a]):o+=i[a]}return o}}const EG=e=>typeof e=="number"?0:e;function CG(e){const t=w6(e);return D6(e)(t.map(EG))}const Gu={test:$G,parse:w6,createTransformer:D6,getAnimatableNone:CG},SG=new Set(["brightness","contrast","saturate","opacity"]);function TG(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(a0)||[];if(!r)return e;const i=n.replace(r,"");let o=SG.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const AG=/\b([a-z-]*)\(.*?\)/gu,hv={...Gu,getAnimatableNone:e=>{const t=e.match(AG);return t?t.map(TG).join(" "):e}},PG={borderWidth:Ze,borderTopWidth:Ze,borderRightWidth:Ze,borderBottomWidth:Ze,borderLeftWidth:Ze,borderRadius:Ze,radius:Ze,borderTopLeftRadius:Ze,borderTopRightRadius:Ze,borderBottomRightRadius:Ze,borderBottomLeftRadius:Ze,width:Ze,maxWidth:Ze,height:Ze,maxHeight:Ze,top:Ze,right:Ze,bottom:Ze,left:Ze,padding:Ze,paddingTop:Ze,paddingRight:Ze,paddingBottom:Ze,paddingLeft:Ze,margin:Ze,marginTop:Ze,marginRight:Ze,marginBottom:Ze,marginLeft:Ze,backgroundPositionX:Ze,backgroundPositionY:Ze},_G={rotate:Yo,rotateX:Yo,rotateY:Yo,rotateZ:Yo,scale:hf,scaleX:hf,scaleY:hf,scaleZ:hf,skew:Yo,skewX:Yo,skewY:Yo,distance:Ze,translateX:Ze,translateY:Ze,translateZ:Ze,x:Ze,y:Ze,z:Ze,perspective:Ze,transformPerspective:Ze,opacity:$c,originX:zx,originY:zx,originZ:Ze},Zx={...Hu,transform:Math.round},u0={...PG,..._G,zIndex:Zx,size:Ze,fillOpacity:$c,strokeOpacity:$c,numOctaves:Zx},RG={...u0,color:qn,backgroundColor:qn,outlineColor:qn,fill:qn,stroke:qn,borderColor:qn,borderTopColor:qn,borderRightColor:qn,borderBottomColor:qn,borderLeftColor:qn,filter:hv,WebkitFilter:hv},l0=e=>RG[e];function E6(e,t){let n=l0(e);return n!==hv&&(n=Gu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const OG=new Set(["auto","none","0"]);function MG(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!OG.has(o)&&xc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=E6(n,i)}let C6=class extends o0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),i0(d))){const f=p6(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!lG.has(r)||t.length!==2)return;const[i,o]=t,a=qx(i),u=qx(o);if(a!==u)if(Wx(a)&&Wx(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)tG(t[i])&&r.push(i);r.length&&MG(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 o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=_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(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}};function c0(e){return typeof e=="function"}let kf;function FG(){kf=void 0}const la={now:()=>(kf===void 0&&la.set(vh.isProcessing||GH.useManualTiming?vh.timestamp:performance.now()),kf),set:e=>{kf=e,queueMicrotask(FG)}},Jx=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Gu.test(e)||e==="0")&&!e.startsWith("url("));function kG(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 BG(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Jx(i,t),u=Jx(o,t);return Wu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:kG(e)||(n==="spring"||c0(n))&&r}const IG=40;let S6=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=la.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>IG?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&pG(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=la.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!BG(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(yp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},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 d0=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},T6=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(d0(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function A6(e,t){return t?e*(1e3/t):0}const LG=5;function P6(e,t,n){const r=Math.max(t-LG,0);return A6(n-e(r),t-r)}const Jt={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},Xx=.001;function VG({duration:e=Jt.duration,bounce:t=Jt.bounce,velocity:n=Jt.velocity,mass:r=Jt.mass}){let i,o;Wu(e<=xo(Jt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=ds(Jt.minDamping,Jt.maxDamping,a),e=ds(Jt.minDuration,Jt.maxDuration,ua(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=pv(d,a),v=Math.exp(-h);return Xx-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=pv(Math.pow(d,2),a);return(-i(d)+Xx>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=jG(i,o,u);if(e=xo(e),isNaN(c))return{stiffness:Jt.stiffness,damping:Jt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const NG=12;function jG(e,t,n){let r=n;for(let i=1;i<NG;i++)r=r-e(r)/t(r);return r}function pv(e,t){return e*Math.sqrt(1-t*t)}const mv=2e4;function _6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<mv;)t+=n,r=e.next(t);return t>=mv?1/0:t}const KG=["duration","bounce"],UG=["stiffness","damping","mass"];function Qx(e,t){return t.some(n=>e[n]!==void 0)}function zG(e){let t={velocity:Jt.velocity,stiffness:Jt.stiffness,damping:Jt.damping,mass:Jt.mass,isResolvedFromDuration:!1,...e};if(!Qx(e,UG)&&Qx(e,KG))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ds(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Jt.mass,stiffness:i,damping:o}}else{const n=VG(e);t={...t,...n,mass:Jt.mass},t.isResolvedFromDuration=!0}return t}function R6(e=Jt.visualDuration,t=Jt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=zG({...n,velocity:-ua(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=ua(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Jt.restSpeed.granular:Jt.restSpeed.default),i||(i=y?Jt.restDelta.granular:Jt.restDelta.default);let D;if($<1){const E=pv(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?xo(v):P6(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(_6(P),mv),T=T6(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function ew({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=R6({keyframes:[m.value,v(m.value)],velocity:P6(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const WG=Gc(.42,0,1,1),HG=Gc(0,0,.58,1),O6=Gc(.42,0,.58,1),GG=e=>Array.isArray(e)&&typeof e[0]!="number",f0=e=>Array.isArray(e)&&typeof e[0]=="number",tw={linear:fa,easeIn:WG,easeInOut:O6,easeOut:HG,circIn:r0,circInOut:l6,circOut:eG,backIn:n0,backInOut:s6,backOut:a6,anticipate:u6},nw=e=>{if(f0(e)){cs(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Gc(t,n,r,i)}else if(typeof e=="string")return cs(tw[e]!==void 0,`Invalid easing type '${e}'`),tw[e];return e},qG=(e,t)=>n=>t(e(n)),vp=(...e)=>e.reduce(qG),bp=(e,t,n)=>e+(t-e)*n;function Rg(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 YG({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Rg(c,u,e+1/3),o=Rg(c,u,e),a=Rg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function bh(e,t){return n=>n>0?t:e}const Og=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},ZG=[fv,Ha,ru],JG=e=>ZG.find(t=>t.test(e));function rw(e){const t=JG(e);if(Wu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ru&&(n=YG(n)),n}const iw=(e,t)=>{const n=rw(e),r=rw(t);if(!n||!r)return bh(e,t);const i={...n};return o=>(i.red=Og(n.red,r.red,o),i.green=Og(n.green,r.green,o),i.blue=Og(n.blue,r.blue,o),i.alpha=bp(n.alpha,r.alpha,o),Ha.transform(i))},gv=new Set(["none","hidden"]);function XG(e,t){return gv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function QG(e,t){return n=>bp(e,t,n)}function h0(e){return typeof e=="number"?QG:typeof e=="string"?i0(e)?bh:qn.test(e)?iw:nq:Array.isArray(e)?M6:typeof e=="object"?qn.test(e)?iw:eq:bh}function M6(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>h0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function eq(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=h0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function tq(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const nq=(e,t)=>{const n=Gu.createTransformer(t),r=xc(e),i=xc(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?gv.has(e)&&!i.values.length||gv.has(t)&&!r.values.length?XG(e,t):vp(M6(tq(r,i),i.values),n):(Wu(!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.`),bh(e,t))};function F6(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?bp(e,t,n):h0(e)(e,t)}function rq(e,t,n){const r=[],i=n||F6,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||fa:t;u=vp(c,u)}r.push(u)}return r}function iq(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(cs(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=rq(t,r,i),u=a.length,c=d=>{let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=d0(e[f],e[f+1],d);return a[f](h)};return n?d=>c(ds(e[0],e[o-1],d)):c}function oq(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=d0(0,t,r);e.push(bp(n,1,i))}}function aq(e){const t=[0];return oq(t,e.length-1),t}function sq(e,t){return e.map(n=>n*t)}function uq(e,t){return e.map(()=>t||O6).splice(0,e.length-1)}function $h({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=GG(r)?r.map(nw):nw(r),o={done:!1,value:t[0]},a=sq(n&&n.length===t.length?n:aq(t),e),u=iq(a,t,{ease:Array.isArray(i)?i:uq(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const lq=e=>{const t=({timestamp:n})=>e(n);return{start:()=>kr.update(t,!0),stop:()=>lv(t),now:()=>vh.isProcessing?vh.timestamp:la.now()}},cq={decay:ew,inertia:ew,tween:$h,keyframes:$h,spring:R6},dq=e=>e/100;let p0=class extends S6{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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||o0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,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:o,velocity:a=0}=this.options,u=c0(n)?n:cq[n]||$h;let c,d;u!==$h&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&cs(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=vp(dq,F6(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=_6(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,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:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/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 x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=ds(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=yp(c,this.options,i)),C&&C(E.value),k&&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=xo(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=lq,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),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 fq=new Set(["opacity","clipPath","filter","transform"]);function m0(e){let t;return()=>(t===void 0&&(t=e()),t)}const hq={linearEasing:void 0};function pq(e,t){const n=m0(e);return()=>{var r;return(r=hq[t])!==null&&r!==void 0?r:n()}}const xh=pq(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function k6(e){return!!(typeof e=="function"&&xh()||!e||typeof e=="string"&&(e in yv||xh())||f0(e)||Array.isArray(e)&&e.every(k6))}const Wl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,yv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wl([0,.65,.55,1]),circOut:Wl([.55,0,1,.45]),backIn:Wl([.31,.01,.66,-.59]),backOut:Wl([.33,1.53,.69,.99])};function B6(e,t){if(e)return typeof e=="function"&&xh()?T6(e,t):f0(e)?Wl(e):Array.isArray(e)?e.map(n=>B6(n,t)||yv.easeOut):yv[e]}function mq(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=B6(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function ow(e,t){e.timeline=t,e.onfinish=null}const gq=m0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),wh=10,yq=2e4;function vq(e){return c0(e.type)||e.type==="spring"||!k6(e.ease)}function bq(e,t){const n=new p0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<yq;)r=n.sample(o),i.push(r.value),o+=wh;return{times:void 0,keyframes:i,duration:o-wh,ease:"linear"}}const I6={anticipate:u6,backInOut:s6,circInOut:l6};function $q(e){return e in I6}let aw=class extends S6{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new C6(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&xh()&&$q(a)&&(a=I6[a]),vq(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=bq(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=mq(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(ow(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(yp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,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=xo(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 fa;const{animation:r}=n;ow(r,t)}return fa}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:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new p0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=xo(this.time);d.setWithVelocity(v.sample($-wh).value,v.sample($).value,wh)}const{onStop:c}=this.options;c&&c(),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:o,damping:a,type:u}=t;return gq()&&r&&fq.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}};const xq=m0(()=>window.ScrollTimeline!==void 0);let wq=class{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}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=>xq()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].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")}};function Dq({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const Eq=(e,t,n,r={},i,o)=>a=>{const u=t6(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-xo(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};Dq(u)||(f={...f,...HH(e,f)}),f.duration&&(f.duration=xo(f.duration)),f.repeatDelay&&(f.repeatDelay=xo(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=yp(f.keyframes,u);if(m!==void 0)return kr.update(()=>{f.onUpdate(m),f.onComplete()}),new wq([])}return!o&&aw.supports(f)?new aw(f):new p0(f)},Cq=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),Sq=e=>uv(e)?e[e.length-1]||0:e;function Tq(e,t){e.indexOf(t)===-1&&e.push(t)}function Aq(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let L6=class{constructor(){this.subscriptions=[]}add(t){return Tq(this.subscriptions,t),()=>Aq(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 o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};const sw=30,Pq=e=>!isNaN(parseFloat(e));let _q=class{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=la.now();this.updatedAt!==o&&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=la.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Pq(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 L6);const r=this.events[t].add(n);return t==="change"?()=>{r(),kr.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=la.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>sw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,sw);return A6(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 Dh(e,t){return new _q(e,t)}function Rq(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Dh(n))}function Oq(e,t){const n=gp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=Sq(o[a]);Rq(e,a,u)}}const g0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),Mq="framerAppearId",V6="data-"+g0(Mq);function Fq(e){return e.props[V6]}const ur=e=>!!(e&&e.getVelocity);function kq(e){return!!(ur(e)&&e.add)}function Bq(e,t){const n=e.getValue("willChange");if(kq(n))return n.add(t)}function Iq({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function N6(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&Iq(f,h))continue;const v={delay:n,...t6(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=Fq(e);if(x){const y=window.MotionHandoffAnimation(x,h,kr);y!==null&&(v.startTime=y,$=!0)}}Bq(e,h),m.start(Eq(h,m,g,e.shouldReduceMotion&&gs.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{kr.update(()=>{u&&Oq(e,u)})}),d}function vv(e,t,n={}){var r;const i=gp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(N6(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return Lq(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function Lq(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(Vq).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(vv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function Vq(e,t){return e.sortNodePosition(t)}function Nq(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>vv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=vv(e,t,n);else{const i=typeof t=="function"?gp(e,t,n.custom):t;r=Promise.all(N6(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const jq=t0.length;function j6(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?j6(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<jq;n++){const r=t0[n],i=e.props[r];(bc(i)||i===!1)&&(t[r]=i)}return t}const Kq=[...e0].reverse(),Uq=e0.length;function zq(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Nq(e,n,r)))}function Wq(e){let t=zq(e),n=uw(),r=!0;const i=c=>(d,f)=>{var h;const m=gp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=j6(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<Uq;C++){const x=Kq[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=bc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||mp(D)||typeof D=="boolean")continue;const k=Hq(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;uv(M)&&uv(Y)?V=!e6(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=uw(),r=!0}}}function Hq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!e6(t,e):!1}function Fa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function uw(){return{animate:Fa(!0),whileInView:Fa(),whileHover:Fa(),whileTap:Fa(),whileDrag:Fa(),whileFocus:Fa(),exit:Fa()}}let qu=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},Gq=class extends qu{constructor(t){super(t),t.animationState||(t.animationState=Wq(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();mp(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)}},qq=0,Yq=class extends qu{constructor(){super(...arguments),this.id=qq++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};const Zq={animation:{Feature:Gq},exit:{Feature:Yq}},Jq={x:!1,y:!1};function Xq(){return Jq.y}const Qq=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function K6(e){return{point:{x:e.pageX,y:e.pageY}}}function lw(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function U6(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const cw=()=>({min:0,max:0}),z6=()=>({x:cw(),y:cw()});function eY({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function tY(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 nY(e,t){return eY(tY(e.getBoundingClientRect(),t))}const W6=b.createContext(null),rY=b.createContext({}),iY=b.createContext({}),oY={},{schedule:aY,cancel:nie}=n6(queueMicrotask,!1);function sY(e){const t=ur(e)?e.get():e;return Cq(t)?t.toValue():t}function uY(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function H6(e,t){const n=uY(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function dw(e){return t=>{t.pointerType==="touch"||Xq()||e(t)}}function lY(e,t,n={}){const[r,i,o]=H6(e,n),a=dw(u=>{const{target:c}=u,d=t(u);if(!d||!c)return;const f=dw(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}function fw(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&kr.postRender(()=>o(t,K6(t)))}let cY=class extends qu{mount(){const{current:t}=this.node;t&&(this.unmount=lY(t,n=>(fw(this.node,n,"Start"),r=>fw(this.node,r,"End"))))}unmount(){}},dY=class extends qu{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=vp(lw(this.node.current,"focus",()=>this.onFocus()),lw(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};const Hl=new WeakSet;function hw(e){return t=>{t.key==="Enter"&&e(t)}}function Mg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const fY=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=hw(()=>{if(Hl.has(n))return;Mg(n,"down");const i=hw(()=>{Mg(n,"up")}),o=()=>Mg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},hY=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function pY(e){return hY.has(e.tagName)||e.tabIndex!==-1}const G6=(e,t)=>t?e===t?!0:G6(e,t.parentElement):!1;function pw(e){return Qq(e)&&!0}function mY(e,t,n={}){const[r,i,o]=H6(e,n),a=u=>{const c=u.currentTarget;if(!pw(u)||Hl.has(c))return;Hl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!pw(g)||!Hl.has(c))&&(Hl.delete(c),d&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||G6(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{pY(u)||(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>fY(d,i),i)}),o}function mw(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&kr.postRender(()=>o(t,K6(t)))}let gY=class extends qu{mount(){const{current:t}=this.node;t&&(this.unmount=mY(t,n=>(mw(this.node,n,"Start"),(r,{success:i})=>mw(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const bv=new WeakMap,Fg=new WeakMap,yY=e=>{const t=bv.get(e.target);t&&t(e)},vY=e=>{e.forEach(yY)};function bY({root:e,...t}){const n=e||document;Fg.has(n)||Fg.set(n,{});const r=Fg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(vY,{root:e,...t})),r[i]}function $Y(e,t,n){const r=bY(t);return bv.set(e,n),r.observe(e),()=>{bv.delete(e),r.unobserve(e)}}const xY={some:0,all:1};let wY=class extends qu{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:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:xY[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return $Y(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(DY(t,n))&&this.startObserver()}unmount(){}};function DY({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const EY={inView:{Feature:wY},tap:{Feature:gY},focus:{Feature:dY},hover:{Feature:cY}},q6=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),$p=b.createContext({}),y0=typeof window<"u",CY=y0?b.useLayoutEffect:b.useEffect,v0=b.createContext({strict:!1});function SY(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext($p),c=b.useContext(v0),d=b.useContext(W6),f=b.useContext(q6).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(iY);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&TY(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[V6],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return CY(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),aY.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function TY(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Y6(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&U6(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function Y6(e){if(e)return e.options.allowProjection!==!1?e.projection:Y6(e.parent)}function AY(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):U6(n)&&(n.current=r))},[t])}function xp(e){return mp(e.animate)||t0.some(t=>bc(e[t]))}function Z6(e){return!!(xp(e)||e.variants)}function PY(e,t){if(xp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||bc(n)?n:void 0,animate:bc(r)?r:void 0}}return e.inherit!==!1?t:{}}function _Y(e){const{initial:t,animate:n}=PY(e,b.useContext($p));return b.useMemo(()=>({initial:t,animate:n}),[gw(t),gw(n)])}function gw(e){return Array.isArray(e)?e.join(" "):e}const yw={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"]},Ru={};for(const e in yw)Ru[e]={isEnabled:t=>yw[e].some(n=>!!t[n])};function $v(e){for(const t in e)Ru[t]={...Ru[t],...e[t]}}const RY=Symbol.for("motionComponentSymbol");function OY({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&$v(e);function o(u,c){let d;const f={...b.useContext(q6),...u,layoutId:MY(u)},{isStatic:h}=f,m=_Y(u),g=r(u,h);if(!h&&y0){FY(f,e);const v=kY(f);d=v.MeasureLayout,m.visualElement=SY(i,g,f,t,v.ProjectionNode)}return Do.jsxs($p.Provider,{value:m,children:[d&&m.visualElement?Do.jsx(d,{visualElement:m.visualElement,...f}):null,n(i,u,AY(g,m.visualElement,c),g,h,m.visualElement)]})}const a=b.forwardRef(o);return a[RY]=i,a}function MY({layoutId:e}){const t=b.useContext(rY).id;return t&&e!==void 0?t+"-"+e:e}function FY(e,t){const n=b.useContext(v0).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?Wu(!1,r):cs(!1,r)}}function kY(e){const{drag:t,layout:n}=Ru;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 BY=["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 b0(e){return typeof e!="string"||e.includes("-")?!1:!!(BY.indexOf(e)>-1||/[A-Z]/u.test(e))}function J6(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const X6=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 Q6(e,t,n,r){J6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(X6.has(i)?i:g0(i),t.attrs[i])}function e7(e,{layout:t,layoutId:n}){return gs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!oY[e]||e==="opacity")}function $0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(ur(i[a])||t.style&&ur(t.style[a])||e7(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function t7(e,t,n){const r=$0(e,t,n);for(const i in e)if(ur(e[i])||ur(t[i])){const o=Hc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function IY(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function LY({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:VY(r,i,o,e),renderState:t()};return n&&(a.mount=u=>n(r,u,a)),a}const n7=e=>(t,n)=>{const r=b.useContext($p),i=b.useContext(W6),o=()=>LY(e,t,r,i);return n?o():IY(o)};function VY(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=sY(o[m]);let{initial:a,animate:u}=e;const c=xp(e),d=Z6(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!mp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=Qb(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const x0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),r7=()=>({...x0(),attrs:{}}),i7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,NY={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},jY=Hc.length;function KY(e,t,n){let r="",i=!0;for(let o=0;o<jY;o++){const a=Hc[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=i7(u,u0[a]);if(!c){i=!1;const f=NY[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function w0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(gs.has(c)){a=!0;continue}else if(h6(c)){i[c]=d;continue}else{const f=i7(d,u0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=KY(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function vw(e,t,n){return typeof e=="string"?e:Ze.transform(t+n*e)}function UY(e,t,n){const r=vw(t,e.x,e.width),i=vw(n,e.y,e.height);return`${r} ${i}`}const zY={offset:"stroke-dashoffset",array:"stroke-dasharray"},WY={offset:"strokeDashoffset",array:"strokeDasharray"};function HY(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?zY:WY;e[o.offset]=Ze.transform(-r);const a=Ze.transform(t),u=Ze.transform(n);e[o.array]=`${a} ${u}`}function D0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(w0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=UY(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&HY(m,a,u,c,!1)}const E0=e=>typeof e=="string"&&e.toLowerCase()==="svg",GY={useVisualState:n7({scrapeMotionValuesFromProps:t7,createRenderState:r7,onMount:(e,t,{renderState:n,latestValues:r})=>{kr.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),kr.render(()=>{D0(n,r,E0(t.tagName),e.transformTemplate),Q6(t,n)})}})},qY={useVisualState:n7({scrapeMotionValuesFromProps:$0,createRenderState:x0})};function o7(e,t,n){for(const r in t)!ur(t[r])&&!e7(r,n)&&(e[r]=t[r])}function YY({transformTemplate:e},t){return b.useMemo(()=>{const n=x0();return w0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ZY(e,t){const n=e.style||{},r={};return o7(r,n,e),Object.assign(r,YY(e,t)),r}function JY(e,t){const n={},r=ZY(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 XY=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")||XY.has(e)}let a7=e=>!Eh(e);function QY(e){e&&(a7=t=>t.startsWith("on")?!Eh(t):e(t))}try{QY(require("@emotion/is-prop-valid").default)}catch{}function eZ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(a7(i)||n===!0&&Eh(i)||!t&&!Eh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function tZ(e,t,n,r){const i=b.useMemo(()=>{const o=r7();return D0(o,t,E0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};o7(o,e.style,e),i.style={...o,...i.style}}return i}function nZ(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(b0(n)?tZ:JY)(r,o,a,n),d=eZ(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>ur(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function rZ(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...b0(r)?GY:qY,preloadedFeatures:e,useRender:nZ(i),createVisualElement:t,Component:r};return OY(a)}}const xv={current:null},s7={current:!1};function iZ(){if(s7.current=!0,!!y0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>xv.current=e.matches;e.addListener(t),t()}else xv.current=!1}function oZ(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ur(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&pp(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(ur(o))e.addValue(r,Dh(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Dh(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const bw=new WeakMap,aZ=[...g6,qn,Gu],sZ=e=>aZ.find(m6(e)),$w=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let uZ=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=o0,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 m=la.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,kr.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=xp(n),this.isVariantNode=Z6(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const g=h[m];c[m]!==void 0&&ur(g)&&g.set(c[m],!1)}}mount(t){this.current=t,bw.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)),s7.current||iZ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:xv.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(){bw.delete(this.current),this.projection&&this.projection.unmount(),lv(this.notifyUpdate),lv(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=gs.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&kr.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),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 Ru){const n=Ru[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 o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):z6()}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<$w.length;r++){const i=$w[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=oZ(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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=Dh(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"&&(d6(i)||c6(i))?i=parseFloat(i):!sZ(i)&&Gu.test(n)&&(i=E6(t,n)),this.setBaseTarget(t,ur(i)?i.get():i)),ur(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 a=Qb(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ur(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new L6),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},u7=class extends uZ{constructor(){super(...arguments),this.KeyframeResolver=C6}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;ur(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function lZ(e){return window.getComputedStyle(e)}let cZ=class extends u7{constructor(){super(...arguments),this.type="html",this.renderInstance=J6}readValueFromInstance(t,n){if(gs.has(n)){const r=l0(n);return r&&r.default||0}else{const r=lZ(t),i=(h6(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return nY(t,n)}build(t,n,r){w0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return $0(t,n,r)}},dZ=class extends u7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=z6}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gs.has(n)){const r=l0(n);return r&&r.default||0}return n=X6.has(n)?n:g0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return t7(t,n,r)}build(t,n,r){D0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){Q6(t,n,r,i)}mount(t){this.isSVGTag=E0(t.tagName),super.mount(t)}};const fZ=(e,t)=>b0(e)?new dZ(t):new cZ(t,{allowProjection:e!==b.Fragment}),hZ=rZ(),pZ=jH(hZ);function mZ({children:e,features:t,strict:n=!1}){const[,r]=b.useState(!kg(t)),i=b.useRef(void 0);if(!kg(t)){const{renderer:o,...a}=t;i.current=o,$v(a)}return b.useEffect(()=>{kg(t)&&t().then(({renderer:o,...a})=>{$v(a),i.current=o,r(!0)})},[]),Do.jsx(v0.Provider,{value:{renderer:i.current,strict:n},children:e})}function kg(e){return typeof e=="function"}const gZ={renderer:fZ,...Zq,...EY},l7=b.createContext({});function Yc(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const C0=b.createContext(null),S0=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function yZ(e=!0){const t=b.useContext(C0);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=b.useId();b.useEffect(()=>{e&&i(o)},[e]);const a=b.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const T0=typeof window<"u",c7=T0?b.useLayoutEffect:b.useEffect,Er=e=>e;let Yu=Er,Zi=Er;process.env.NODE_ENV!=="production"&&(Yu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Zi=(e,t)=>{if(!e)throw new Error(t)});function A0(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ou=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Hi=e=>e*1e3,wo=e=>e/1e3,vZ={skipAnimations:!1,useManualTiming:!1};function bZ(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const pf=["read","resolveKeyframes","update","preRender","render","postRender"],$Z=40;function d7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=pf.reduce((x,y)=>(x[y]=bZ(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,$Z),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:pf.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<pf.length;y++)a[pf[y]].cancel(x)},state:i,steps:a}}const{schedule:jt,cancel:Co,state:Bn,steps:Bg}=d7(typeof requestAnimationFrame<"u"?requestAnimationFrame:Er,!0),f7=b.createContext({strict:!1}),xw={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 xw)Mu[e]={isEnabled:t=>xw[e].some(n=>!!t[n])};function xZ(e){for(const t in e)Mu[t]={...Mu[t],...e[t]}}const wZ=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 Ch(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wZ.has(e)}let h7=e=>!Ch(e);function DZ(e){e&&(h7=t=>t.startsWith("on")?!Ch(t):e(t))}try{DZ(require("@emotion/is-prop-valid").default)}catch{}function EZ(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(h7(i)||n===!0&&Ch(i)||!t&&!Ch(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const ww=new Set;function wp(e,t,n){e||ww.has(t)||(console.warn(t),ww.add(t))}function CZ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&wp(!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 Dp=b.createContext({});function wc(e){return typeof e=="string"||Array.isArray(e)}function Ep(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const P0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_0=["initial",...P0];function Cp(e){return Ep(e.animate)||_0.some(t=>wc(e[t]))}function p7(e){return!!(Cp(e)||e.variants)}function SZ(e,t){if(Cp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||wc(n)?n:void 0,animate:wc(r)?r:void 0}}return e.inherit!==!1?t:{}}function TZ(e){const{initial:t,animate:n}=SZ(e,b.useContext(Dp));return b.useMemo(()=>({initial:t,animate:n}),[Dw(t),Dw(n)])}function Dw(e){return Array.isArray(e)?e.join(" "):e}const AZ=Symbol.for("motionComponentSymbol");function iu(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function PZ(e,t,n){return b.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):iu(n)&&(n.current=r))},[t])}const R0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),_Z="framerAppearId",m7="data-"+R0(_Z),{schedule:O0,cancel:die}=d7(queueMicrotask,!1),g7=b.createContext({});function RZ(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(Dp),c=b.useContext(f7),d=b.useContext(C0),f=b.useContext(S0).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(g7);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&OZ(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[m7],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return c7(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),O0.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function OZ(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:y7(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&iu(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function y7(e){if(e)return e.options.allowProjection!==!1?e.projection:y7(e.parent)}function MZ({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&xZ(e);function u(d,f){let h;const m={...b.useContext(S0),...d,layoutId:FZ(d)},{isStatic:g}=m,v=TZ(d),$=r(d,g);if(!g&&T0){kZ(m,e);const C=BZ(m);h=C.MeasureLayout,v.visualElement=RZ(i,$,m,t,C.ProjectionNode)}return Do.jsxs(Dp.Provider,{value:v,children:[h&&v.visualElement?Do.jsx(h,{visualElement:v.visualElement,...m}):null,n(i,d,PZ($,v.visualElement,f),$,g,v.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=b.forwardRef(u);return c[AZ]=i,c}function FZ({layoutId:e}){const t=b.useContext(l7).id;return t&&e!==void 0?t+"-"+e:e}function kZ(e,t){const n=b.useContext(f7).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?Yu(!1,r):Zi(!1,r)}}function BZ(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 IZ=["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 M0(e){return typeof e!="string"||e.includes("-")?!1:!!(IZ.indexOf(e)>-1||/[A-Z]/u.test(e))}function Ew(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function F0(e,t,n,r){if(typeof t=="function"){const[i,o]=Ew(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Ew(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const wv=e=>Array.isArray(e),LZ=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),VZ=e=>wv(e)?e[e.length-1]||0:e,In=e=>!!(e&&e.getVelocity);function Bf(e){const t=In(e)?e.get():e;return LZ(t)?t.toValue():t}function NZ({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:jZ(r,i,o,e),renderState:t()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const v7=e=>(t,n)=>{const r=b.useContext(Dp),i=b.useContext(C0),o=()=>NZ(e,t,r,i);return n?o():Yc(o)};function jZ(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=Bf(o[m]);let{initial:a,animate:u}=e;const c=Cp(e),d=p7(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!Ep(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=F0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const Zu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ys=new Set(Zu),b7=e=>t=>typeof t=="string"&&t.startsWith(e),$7=b7("--"),KZ=b7("var(--"),k0=e=>KZ(e)?UZ.test(e.split("/*")[0].trim()):!1,UZ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,x7=(e,t)=>t&&typeof e=="number"?t.transform(e):e,So=(e,t,n)=>n>t?t:n<e?e:n,Ju={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Dc={...Ju,transform:e=>So(0,1,e)},mf={...Ju,default:1},Zc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zo=Zc("deg"),Gi=Zc("%"),Ge=Zc("px"),zZ=Zc("vh"),WZ=Zc("vw"),Cw={...Gi,parse:e=>Gi.parse(e)/100,transform:e=>Gi.transform(e*100)},HZ={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,backgroundPositionX:Ge,backgroundPositionY:Ge},GZ={rotate:Zo,rotateX:Zo,rotateY:Zo,rotateZ:Zo,scale:mf,scaleX:mf,scaleY:mf,scaleZ:mf,skew:Zo,skewX:Zo,skewY:Zo,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:Dc,originX:Cw,originY:Cw,originZ:Ge},Sw={...Ju,transform:Math.round},B0={...HZ,...GZ,zIndex:Sw,size:Ge,fillOpacity:Dc,strokeOpacity:Dc,numOctaves:Sw},qZ={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},YZ=Zu.length;function ZZ(e,t,n){let r="",i=!0;for(let o=0;o<YZ;o++){const a=Zu[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=x7(u,B0[a]);if(!c){i=!1;const f=qZ[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function I0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(ys.has(c)){a=!0;continue}else if($7(c)){i[c]=d;continue}else{const f=x7(d,B0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=ZZ(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function Tw(e,t,n){return typeof e=="string"?e:Ge.transform(t+n*e)}function JZ(e,t,n){const r=Tw(t,e.x,e.width),i=Tw(n,e.y,e.height);return`${r} ${i}`}const XZ={offset:"stroke-dashoffset",array:"stroke-dasharray"},QZ={offset:"strokeDashoffset",array:"strokeDasharray"};function eJ(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?XZ:QZ;e[o.offset]=Ge.transform(-r);const a=Ge.transform(t),u=Ge.transform(n);e[o.array]=`${a} ${u}`}function L0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(I0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=JZ(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&eJ(m,a,u,c,!1)}const V0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),w7=()=>({...V0(),attrs:{}}),N0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function D7(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const E7=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 C7(e,t,n,r){D7(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(E7.has(i)?i:R0(i),t.attrs[i])}const Sh={};function tJ(e){Object.assign(Sh,e)}function S7(e,{layout:t,layoutId:n}){return ys.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Sh[e]||e==="opacity")}function j0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(In(i[a])||t.style&&In(t.style[a])||S7(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function T7(e,t,n){const r=j0(e,t,n);for(const i in e)if(In(e[i])||In(t[i])){const o=Zu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function nJ(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Aw=["x","y","width","height","cx","cy","r"],rJ={useVisualState:v7({scrapeMotionValuesFromProps:T7,createRenderState:w7,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(ys.has(u)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let u=0;u<Aw.length;u++){const c=Aw[u];e[c]!==t[c]&&(a=!0)}a&&(jt.read(()=>nJ(n,r)),jt.render(()=>{L0(r,i,N0(n.tagName),e.transformTemplate),C7(n,r)}))}})},iJ={useVisualState:v7({scrapeMotionValuesFromProps:j0,createRenderState:V0})};function A7(e,t,n){for(const r in t)!In(t[r])&&!S7(r,n)&&(e[r]=t[r])}function oJ({transformTemplate:e},t){return b.useMemo(()=>{const n=V0();return I0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function aJ(e,t){const n=e.style||{},r={};return A7(r,n,e),Object.assign(r,oJ(e,t)),r}function sJ(e,t){const n={},r=aJ(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}function uJ(e,t,n,r){const i=b.useMemo(()=>{const o=w7();return L0(o,t,N0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};A7(o,e.style,e),i.style={...o,...i.style}}return i}function lJ(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(M0(n)?uJ:sJ)(r,o,a,n),d=EZ(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>In(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function cJ(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...M0(r)?rJ:iJ,preloadedFeatures:e,useRender:lJ(i),createVisualElement:t,Component:r};return MZ(a)}}function P7(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}function Sp(e,t,n){const r=e.getProps();return F0(r,t,n!==void 0?n:r.custom,e)}const dJ=A0(()=>window.ScrollTimeline!==void 0);class fJ{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(dJ()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].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 hJ extends fJ{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function K0(e,t){return e?e[t]||e.default||e:void 0}const Dv=2e4;function _7(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Dv;)t+=n,r=e.next(t);return t>=Dv?1/0:t}function U0(e){return typeof e=="function"}function Pw(e,t){e.timeline=t,e.onfinish=null}const z0=e=>Array.isArray(e)&&typeof e[0]=="number",pJ={linearEasing:void 0};function mJ(e,t){const n=A0(e);return()=>{var r;return(r=pJ[t])!==null&&r!==void 0?r:n()}}const Th=mJ(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),R7=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(Ou(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function O7(e){return!!(typeof e=="function"&&Th()||!e||typeof e=="string"&&(e in Ev||Th())||z0(e)||Array.isArray(e)&&e.every(O7))}const Gl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Ev={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Gl([0,.65,.55,1]),circOut:Gl([.55,0,1,.45]),backIn:Gl([.31,.01,.66,-.59]),backOut:Gl([.33,1.53,.69,.99])};function M7(e,t){if(e)return typeof e=="function"&&Th()?R7(e,t):z0(e)?Gl(e):Array.isArray(e)?e.map(n=>M7(n,t)||Ev.easeOut):Ev[e]}const pi={x:!1,y:!1};function F7(){return pi.x||pi.y}function gJ(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function k7(e,t){const n=gJ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _w(e){return t=>{t.pointerType==="touch"||F7()||e(t)}}function yJ(e,t,n={}){const[r,i,o]=k7(e,n),a=_w(u=>{const{target:c}=u,d=t(u);if(typeof d!="function"||!c)return;const f=_w(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}const B7=(e,t)=>t?e===t?!0:B7(e,t.parentElement):!1,W0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,vJ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function bJ(e){return vJ.has(e.tagName)||e.tabIndex!==-1}const ql=new WeakSet;function Rw(e){return t=>{t.key==="Enter"&&e(t)}}function Ig(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const $J=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Rw(()=>{if(ql.has(n))return;Ig(n,"down");const i=Rw(()=>{Ig(n,"up")}),o=()=>Ig(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Ow(e){return W0(e)&&!F7()}function xJ(e,t,n={}){const[r,i,o]=k7(e,n),a=u=>{const c=u.currentTarget;if(!Ow(u)||ql.has(c))return;ql.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!Ow(g)||!ql.has(c))&&(ql.delete(c),typeof d=="function"&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||B7(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{!bJ(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>$J(d,i),i)}),o}function wJ(e){return e==="x"||e==="y"?pi[e]?null:(pi[e]=!0,()=>{pi[e]=!1}):pi.x||pi.y?null:(pi.x=pi.y=!0,()=>{pi.x=pi.y=!1})}const I7=new Set(["width","height","top","left","right","bottom",...Zu]);let If;function DJ(){If=void 0}const qi={now:()=>(If===void 0&&qi.set(Bn.isProcessing||vZ.useManualTiming?Bn.timestamp:performance.now()),If),set:e=>{If=e,queueMicrotask(DJ)}};function H0(e,t){e.indexOf(t)===-1&&e.push(t)}function G0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function EJ([...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,[o]=e.splice(t,1);e.splice(i,0,o)}return e}class q0{constructor(){this.subscriptions=[]}add(t){return H0(this.subscriptions,t),()=>G0(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 o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function L7(e,t){return t?e*(1e3/t):0}const Mw=30,CJ=e=>!isNaN(parseFloat(e)),rc={current:void 0};class SJ{constructor(t,n={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=qi.now();this.updatedAt!==o&&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=qi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=CJ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&wp(!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 q0);const r=this.events[t].add(n);return t==="change"?()=>{r(),jt.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 rc.current&&rc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=qi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Mw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Mw);return L7(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 Fu(e,t){return new SJ(e,t)}function TJ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Fu(n))}function AJ(e,t){const n=Sp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=VZ(o[a]);TJ(e,a,u)}}function PJ(e){return!!(In(e)&&e.add)}function Cv(e,t){const n=e.getValue("willChange");if(PJ(n))return n.add(t)}function V7(e){return e.props[m7]}const N7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_J=1e-7,RJ=12;function OJ(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=N7(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>_J&&++u<RJ);return a}function Jc(e,t,n,r){if(e===t&&n===r)return Er;const i=o=>OJ(o,0,1,e,n);return o=>o===0||o===1?o:N7(i(o),t,r)}const j7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,K7=e=>t=>1-e(1-t),U7=Jc(.33,1.53,.69,.99),Y0=K7(U7),z7=j7(Y0),W7=e=>(e*=2)<1?.5*Y0(e):.5*(2-Math.pow(2,-10*(e-1))),Z0=e=>1-Math.sin(Math.acos(e)),H7=K7(Z0),G7=j7(Z0),q7=e=>/^0[^.\s]+$/u.test(e);function MJ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||q7(e):!0}const ic=e=>Math.round(e*1e5)/1e5,J0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function FJ(e){return e==null}const kJ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,X0=(e,t)=>n=>!!(typeof n=="string"&&kJ.test(n)&&n.startsWith(e)||t&&!FJ(n)&&Object.prototype.hasOwnProperty.call(n,t)),Y7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(J0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},BJ=e=>So(0,255,e),Lg={...Ju,transform:e=>Math.round(BJ(e))},Ga={test:X0("rgb","red"),parse:Y7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Lg.transform(e)+", "+Lg.transform(t)+", "+Lg.transform(n)+", "+ic(Dc.transform(r))+")"};function IJ(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 Sv={test:X0("#"),parse:IJ,transform:Ga.transform},ou={test:X0("hsl","hue"),parse:Y7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gi.transform(ic(t))+", "+Gi.transform(ic(n))+", "+ic(Dc.transform(r))+")"},Yn={test:e=>Ga.test(e)||Sv.test(e)||ou.test(e),parse:e=>Ga.test(e)?Ga.parse(e):ou.test(e)?ou.parse(e):Sv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ga.transform(e):ou.transform(e)},LJ=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function VJ(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(J0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(LJ))===null||n===void 0?void 0:n.length)||0)>0}const Z7="number",J7="color",NJ="var",jJ="var(",Fw="${}",KJ=/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 Ec(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(KJ,c=>(Yn.test(c)?(r.color.push(o),i.push(J7),n.push(Yn.parse(c))):c.startsWith(jJ)?(r.var.push(o),i.push(NJ),n.push(c)):(r.number.push(o),i.push(Z7),n.push(parseFloat(c))),++o,Fw)).split(Fw);return{values:n,split:u,indexes:r,types:i}}function X7(e){return Ec(e).values}function Q7(e){const{split:t,types:n}=Ec(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===Z7?o+=ic(i[a]):u===J7?o+=Yn.transform(i[a]):o+=i[a]}return o}}const UJ=e=>typeof e=="number"?0:e;function zJ(e){const t=X7(e);return Q7(e)(t.map(UJ))}const ha={test:VJ,parse:X7,createTransformer:Q7,getAnimatableNone:zJ},WJ=new Set(["brightness","contrast","saturate","opacity"]);function HJ(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(J0)||[];if(!r)return e;const i=n.replace(r,"");let o=WJ.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const GJ=/\b([a-z-]*)\(.*?\)/gu,Tv={...ha,getAnimatableNone:e=>{const t=e.match(GJ);return t?t.map(HJ).join(" "):e}},qJ={...B0,color:Yn,backgroundColor:Yn,outlineColor:Yn,fill:Yn,stroke:Yn,borderColor:Yn,borderTopColor:Yn,borderRightColor:Yn,borderBottomColor:Yn,borderLeftColor:Yn,filter:Tv,WebkitFilter:Tv},Q0=e=>qJ[e];function e_(e,t){let n=Q0(e);return n!==Tv&&(n=ha),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const YJ=new Set(["auto","none","0"]);function ZJ(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!YJ.has(o)&&Ec(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=e_(n,i)}const kw=e=>e===Ju||e===Ge,Bw=(e,t)=>parseFloat(e.split(", ")[t]),Iw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Bw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?Bw(o[1],e):0}},JJ=new Set(["x","y","z"]),XJ=Zu.filter(e=>!JJ.has(e));function QJ(e){const t=[];return XJ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ku={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:Iw(4,13),y:Iw(5,14)};ku.translateX=ku.x;ku.translateY=ku.y;const Qa=new Set;let Av=!1,Pv=!1;function t_(){if(Pv){const e=Array.from(Qa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=QJ(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(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Pv=!1,Av=!1,Qa.forEach(e=>e.complete()),Qa.clear()}function n_(){Qa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Pv=!0)})}function eX(){n_(),t_()}class e1{constructor(t,n,r,i,o,a=!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=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Qa.add(this),Av||(Av=!0,jt.read(n_),jt.resolveKeyframes(t_))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Qa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Qa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const r_=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),tX=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function nX(e){const t=tX.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const rX=4;function i_(e,t,n=1){Zi(n<=rX,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=nX(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return r_(a)?parseFloat(a):a}return k0(i)?i_(i,t,n+1):i}const o_=e=>t=>t.test(e),iX={test:e=>e==="auto",parse:e=>e},a_=[Ju,Ge,Gi,Zo,WZ,zZ,iX],Lw=e=>a_.find(o_(e));class s_ extends e1{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),k0(d))){const f=i_(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!I7.has(r)||t.length!==2)return;const[i,o]=t,a=Lw(i),u=Lw(o);if(a!==u)if(kw(a)&&kw(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)MJ(t[i])&&r.push(i);r.length&&ZJ(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=ku[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 o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=ku[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(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}const Vw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ha.test(e)||e==="0")&&!e.startsWith("url("));function oX(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 aX(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=Vw(i,t),u=Vw(o,t);return Yu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:oX(e)||(n==="spring"||U0(n))&&r}const sX=e=>e!==null;function Tp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(sX),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const uX=40;class u_{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=qi.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>uX?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&eX(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=qi.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!aX(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(Tp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},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 qt=(e,t,n)=>e+(t-e)*n;function Vg(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 lX({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Vg(c,u,e+1/3),o=Vg(c,u,e),a=Vg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Ah(e,t){return n=>n>0?t:e}const Ng=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},cX=[Sv,Ga,ou],dX=e=>cX.find(t=>t.test(e));function Nw(e){const t=dX(e);if(Yu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===ou&&(n=lX(n)),n}const jw=(e,t)=>{const n=Nw(e),r=Nw(t);if(!n||!r)return Ah(e,t);const i={...n};return o=>(i.red=Ng(n.red,r.red,o),i.green=Ng(n.green,r.green,o),i.blue=Ng(n.blue,r.blue,o),i.alpha=qt(n.alpha,r.alpha,o),Ga.transform(i))},fX=(e,t)=>n=>t(e(n)),Xc=(...e)=>e.reduce(fX),_v=new Set(["none","hidden"]);function hX(e,t){return _v.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pX(e,t){return n=>qt(e,t,n)}function t1(e){return typeof e=="number"?pX:typeof e=="string"?k0(e)?Ah:Yn.test(e)?jw:yX:Array.isArray(e)?l_:typeof e=="object"?Yn.test(e)?jw:mX:Ah}function l_(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>t1(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function mX(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=t1(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function gX(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const yX=(e,t)=>{const n=ha.createTransformer(t),r=Ec(e),i=Ec(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?_v.has(e)&&!i.values.length||_v.has(t)&&!r.values.length?hX(e,t):Xc(l_(gX(r,i),i.values),n):(Yu(!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.`),Ah(e,t))};function c_(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?qt(e,t,n):t1(e)(e,t)}const vX=5;function d_(e,t,n){const r=Math.max(t-vX,0);return L7(n-e(r),t-r)}const Xt={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},Kw=.001;function bX({duration:e=Xt.duration,bounce:t=Xt.bounce,velocity:n=Xt.velocity,mass:r=Xt.mass}){let i,o;Yu(e<=Hi(Xt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=So(Xt.minDamping,Xt.maxDamping,a),e=So(Xt.minDuration,Xt.maxDuration,wo(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=Rv(d,a),v=Math.exp(-h);return Kw-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=Rv(Math.pow(d,2),a);return(-i(d)+Kw>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=xX(i,o,u);if(e=Hi(e),isNaN(c))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const $X=12;function xX(e,t,n){let r=n;for(let i=1;i<$X;i++)r=r-e(r)/t(r);return r}function Rv(e,t){return e*Math.sqrt(1-t*t)}const wX=["duration","bounce"],DX=["stiffness","damping","mass"];function Uw(e,t){return t.some(n=>e[n]!==void 0)}function EX(e){let t={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...e};if(!Uw(e,DX)&&Uw(e,wX))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*So(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Xt.mass,stiffness:i,damping:o}}else{const n=bX(e);t={...t,...n,mass:Xt.mass},t.isResolvedFromDuration=!0}return t}function f_(e=Xt.visualDuration,t=Xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=EX({...n,velocity:-wo(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=wo(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Xt.restSpeed.granular:Xt.restSpeed.default),i||(i=y?Xt.restDelta.granular:Xt.restDelta.default);let D;if($<1){const E=Rv(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?Hi(v):d_(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(_7(P),Dv),T=R7(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function zw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=f_({keyframes:[m.value,v(m.value)],velocity:d_(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const CX=Jc(.42,0,1,1),SX=Jc(0,0,.58,1),h_=Jc(.42,0,.58,1),TX=e=>Array.isArray(e)&&typeof e[0]!="number",Ww={linear:Er,easeIn:CX,easeInOut:h_,easeOut:SX,circIn:Z0,circInOut:G7,circOut:H7,backIn:Y0,backInOut:z7,backOut:U7,anticipate:W7},Hw=e=>{if(z0(e)){Zi(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Jc(t,n,r,i)}else if(typeof e=="string")return Zi(Ww[e]!==void 0,`Invalid easing type '${e}'`),Ww[e];return e};function AX(e,t,n){const r=[],i=n||c_,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Er:t;u=Xc(c,u)}r.push(u)}return r}function p_(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Zi(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=AX(t,r,i),c=u.length,d=f=>{if(a&&f<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const m=Ou(e[h],e[h+1],f);return u[h](m)};return n?f=>d(So(e[0],e[o-1],f)):d}function PX(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=Ou(0,t,r);e.push(qt(n,1,i))}}function _X(e){const t=[0];return PX(t,e.length-1),t}function RX(e,t){return e.map(n=>n*t)}function OX(e,t){return e.map(()=>t||h_).splice(0,e.length-1)}function Ph({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=TX(r)?r.map(Hw):Hw(r),o={done:!1,value:t[0]},a=RX(n&&n.length===t.length?n:_X(t),e),u=p_(a,t,{ease:Array.isArray(i)?i:OX(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const MX=e=>{const t=({timestamp:n})=>e(n);return{start:()=>jt.update(t,!0),stop:()=>Co(t),now:()=>Bn.isProcessing?Bn.timestamp:qi.now()}},FX={decay:zw,inertia:zw,tween:Ph,keyframes:Ph,spring:f_},kX=e=>e/100;class n1 extends u_{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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||e1,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,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:o,velocity:a=0}=this.options,u=U0(n)?n:FX[n]||Ph;let c,d;u!==Ph&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Zi(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Xc(kX,c_(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=_7(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,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:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/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 x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=So(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=Tp(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?wo(t.calculatedDuration):0}get time(){return wo(this.currentTime)}set time(t){t=Hi(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=wo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=MX,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),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 BX=new Set(["opacity","clipPath","filter","transform"]);function IX(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=M7(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const LX=A0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),_h=10,VX=2e4;function NX(e){return U0(e.type)||e.type==="spring"||!O7(e.ease)}function jX(e,t){const n=new n1({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<VX;)r=n.sample(o),i.push(r.value),o+=_h;return{times:void 0,keyframes:i,duration:o-_h,ease:"linear"}}const m_={anticipate:W7,backInOut:z7,circInOut:G7};function KX(e){return e in m_}class Gw extends u_{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new s_(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&Th()&&KX(a)&&(a=m_[a]),NX(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=jX(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=IX(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(Pw(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Tp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return wo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return wo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Hi(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 Er;const{animation:r}=n;Pw(r,t)}return Er}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:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new n1({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Hi(this.time);d.setWithVelocity(v.sample($-_h).value,v.sample($).value,_h)}const{onStop:c}=this.options;c&&c(),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:o,damping:a,type:u}=t;return LX()&&r&&BX.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}}const UX={type:"spring",stiffness:500,damping:25,restSpeed:10},zX=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),WX={type:"keyframes",duration:.8},HX={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},GX=(e,{keyframes:t})=>t.length>2?WX:ys.has(e)?e.startsWith("scale")?zX(t[1]):UX:HX;function qX({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const r1=(e,t,n,r={},i,o)=>a=>{const u=K0(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Hi(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};qX(u)||(f={...f,...GX(e,f)}),f.duration&&(f.duration=Hi(f.duration)),f.repeatDelay&&(f.repeatDelay=Hi(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=Tp(f.keyframes,u);if(m!==void 0)return jt.update(()=>{f.onUpdate(m),f.onComplete()}),new hJ([])}return!o&&Gw.supports(f)?new Gw(f):new n1(f)};function YX({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function g_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&YX(f,h))continue;const v={delay:n,...K0(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=V7(e);if(x){const y=window.MotionHandoffAnimation(x,h,jt);y!==null&&(v.startTime=y,$=!0)}}Cv(e,h),m.start(r1(h,m,g,e.shouldReduceMotion&&I7.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{jt.update(()=>{u&&AJ(e,u)})}),d}function Ov(e,t,n={}){var r;const i=Sp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(g_(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return ZX(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function ZX(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(JX).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(Ov(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function JX(e,t){return e.sortNodePosition(t)}function XX(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Ov(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Ov(e,t,n);else{const i=typeof t=="function"?Sp(e,t,n.custom):t;r=Promise.all(g_(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const QX=_0.length;function y_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?y_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<QX;n++){const r=_0[n],i=e.props[r];(wc(i)||i===!1)&&(t[r]=i)}return t}const eQ=[...P0].reverse(),tQ=P0.length;function nQ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>XX(e,n,r)))}function rQ(e){let t=nQ(e),n=qw(),r=!0;const i=c=>(d,f)=>{var h;const m=Sp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=y_(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<tQ;C++){const x=eQ[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=wc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||Ep(D)||typeof D=="boolean")continue;const k=iQ(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;wv(M)&&wv(Y)?V=!P7(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=qw(),r=!0}}}function iQ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!P7(t,e):!1}function ka(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function qw(){return{animate:ka(!0),whileInView:ka(),whileHover:ka(),whileTap:ka(),whileDrag:ka(),whileFocus:ka(),exit:ka()}}class ya{constructor(t){this.isMounted=!1,this.node=t}update(){}}class oQ extends ya{constructor(t){super(t),t.animationState||(t.animationState=rQ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ep(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 aQ=0;class sQ extends ya{constructor(){super(...arguments),this.id=aQ++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const uQ={animation:{Feature:oQ},exit:{Feature:sQ}};function Cc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Qc(e){return{point:{x:e.pageX,y:e.pageY}}}const lQ=e=>t=>W0(t)&&e(t,Qc(t));function oc(e,t,n,r){return Cc(e,t,lQ(n),r)}const Yw=(e,t)=>Math.abs(e-t);function cQ(e,t){const n=Yw(e.x,t.x),r=Yw(e.y,t.y);return Math.sqrt(n**2+r**2)}class v_{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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=Kg(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=cQ(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:v}=h,{timestamp:$}=Bn;this.history.push({...v,timestamp:$});const{onStart:C,onMove:x}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=jg(m,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Kg(h.type==="pointercancel"?this.lastMoveEventInfo:jg(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),v&&v(h,C)},!W0(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Qc(t),u=jg(a,this.transformPagePoint),{point:c}=u,{timestamp:d}=Bn;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Kg(u,this.history)),this.removeListeners=Xc(oc(this.contextWindow,"pointermove",this.handlePointerMove),oc(this.contextWindow,"pointerup",this.handlePointerUp),oc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Co(this.updatePoint)}}function jg(e,t){return t?{point:t(e.point)}:e}function Zw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Kg({point:e},t){return{point:e,delta:Zw(e,b_(t)),offset:Zw(e,dQ(t)),velocity:fQ(t,.1)}}function dQ(e){return e[0]}function b_(e){return e[e.length-1]}function fQ(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=b_(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Hi(t)));)n--;if(!r)return{x:0,y:0};const o=wo(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const $_=1e-4,hQ=1-$_,pQ=1+$_,x_=.01,mQ=0-x_,gQ=0+x_;function Br(e){return e.max-e.min}function yQ(e,t,n){return Math.abs(e-t)<=n}function Jw(e,t,n,r=.5){e.origin=r,e.originPoint=qt(t.min,t.max,e.origin),e.scale=Br(n)/Br(t),e.translate=qt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=hQ&&e.scale<=pQ||isNaN(e.scale))&&(e.scale=1),(e.translate>=mQ&&e.translate<=gQ||isNaN(e.translate))&&(e.translate=0)}function ac(e,t,n,r){Jw(e.x,t.x,n.x,r?r.originX:void 0),Jw(e.y,t.y,n.y,r?r.originY:void 0)}function Xw(e,t,n){e.min=n.min+t.min,e.max=e.min+Br(t)}function vQ(e,t,n){Xw(e.x,t.x,n.x),Xw(e.y,t.y,n.y)}function Qw(e,t,n){e.min=t.min-n.min,e.max=e.min+Br(t)}function sc(e,t,n){Qw(e.x,t.x,n.x),Qw(e.y,t.y,n.y)}function bQ(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qt(n,e,r.max):Math.min(e,n)),e}function eD(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 $Q(e,{top:t,left:n,bottom:r,right:i}){return{x:eD(e.x,n,i),y:eD(e.y,t,r)}}function tD(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 xQ(e,t){return{x:tD(e.x,t.x),y:tD(e.y,t.y)}}function wQ(e,t){let n=.5;const r=Br(e),i=Br(t);return i>r?n=Ou(t.min,t.max-r,e.min):r>i&&(n=Ou(e.min,e.max-i,t.min)),So(0,1,n)}function DQ(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 Mv=.35;function EQ(e=Mv){return e===!1?e=0:e===!0&&(e=Mv),{x:nD(e,"left","right"),y:nD(e,"top","bottom")}}function nD(e,t,n){return{min:rD(e,t),max:rD(e,n)}}function rD(e,t){return typeof e=="number"?e:e[t]||0}const iD=()=>({translate:0,scale:1,origin:0,originPoint:0}),au=()=>({x:iD(),y:iD()}),oD=()=>({min:0,max:0}),cn=()=>({x:oD(),y:oD()});function Qr(e){return[e("x"),e("y")]}function w_({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function CQ({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function SQ(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 Ug(e){return e===void 0||e===1}function Fv({scale:e,scaleX:t,scaleY:n}){return!Ug(e)||!Ug(t)||!Ug(n)}function Ba(e){return Fv(e)||D_(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function D_(e){return aD(e.x)||aD(e.y)}function aD(e){return e&&e!=="0%"}function Rh(e,t,n){const r=e-n,i=t*r;return n+i}function sD(e,t,n,r,i){return i!==void 0&&(e=Rh(e,i,r)),Rh(e,n,r)+t}function kv(e,t=0,n=1,r,i){e.min=sD(e.min,t,n,r,i),e.max=sD(e.max,t,n,r,i)}function E_(e,{x:t,y:n}){kv(e.x,t.translate,t.scale,t.originPoint),kv(e.y,n.translate,n.scale,n.originPoint)}const uD=.999999999999,lD=1.0000000000001;function TQ(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let u=0;u<i;u++){o=n[u],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&uu(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,E_(e,a)),r&&Ba(o.latestValues)&&uu(e,o.latestValues))}t.x<lD&&t.x>uD&&(t.x=1),t.y<lD&&t.y>uD&&(t.y=1)}function su(e,t){e.min=e.min+t,e.max=e.max+t}function cD(e,t,n,r,i=.5){const o=qt(e.min,e.max,i);kv(e,t,n,o,r)}function uu(e,t){cD(e.x,t.x,t.scaleX,t.scale,t.originX),cD(e.y,t.y,t.scaleY,t.scale,t.originY)}function C_(e,t){return w_(SQ(e.getBoundingClientRect(),t))}function AQ(e,t,n){const r=C_(e,n),{scroll:i}=t;return i&&(su(r.x,i.offset.x),su(r.y,i.offset.y)),r}const S_=({current:e})=>e?e.ownerDocument.defaultView:null,PQ=new WeakMap;class _Q{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=cn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Qc(f).point)},o=(f,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=wJ(m),!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),Qr(C=>{let x=this.getAxisMotionValue(C).get()||0;if(Gi.test(x)){const{projection:y}=this.visualElement;if(y&&y.layout){const D=y.layout.layoutBox[C];D&&(x=Br(D)*(parseFloat(x)/100))}}this.originPoint[C]=x}),v&&jt.postRender(()=>v(f,h)),Cv(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},a=(f,h)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:$}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:C}=h;if(g&&this.currentDirection===null){this.currentDirection=RQ(C),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),$&&$(f,h)},u=(f,h)=>this.stop(f,h),c=()=>Qr(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new v_(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:S_(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&jt.postRender(()=>o(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||!gf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=bQ(a,this.constraints[t],this.elastic[t])),o.set(a)}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,o=this.constraints;n&&iu(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=$Q(i.layoutBox,n):this.constraints=!1,this.elastic=EQ(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=DQ(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!iu(t))return!1;const r=t.current;Zi(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 o=AQ(r,i.root,this.visualElement.getTransformPagePoint());let a=xQ(i.layout.layoutBox,o);if(n){const u=n(CQ(a));this.hasMutatedConstraints=!!u,u&&(a=w_(u))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=Qr(f=>{if(!gf(f,n,this.currentDirection))return;let h=c[f]||{};a&&(h={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Cv(this.visualElement,t),r.start(r1(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qr(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){Qr(n=>{const{drag:r}=this.getProps();if(!gf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:u}=i.layout.layoutBox[n];o.set(t[n]-qt(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!iu(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qr(a=>{const u=this.getAxisMotionValue(a);if(u&&this.constraints!==!1){const c=u.get();i[a]=wQ({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qr(a=>{if(!gf(a,t,null))return;const u=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];u.set(qt(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;PQ.set(this.visualElement,this);const t=this.visualElement.current,n=oc(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();iu(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),jt.read(r);const a=Cc(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qr(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=Mv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}}function gf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function RQ(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class OQ extends ya{constructor(t){super(t),this.removeGroupControls=Er,this.removeListeners=Er,this.controls=new _Q(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Er}unmount(){this.removeGroupControls(),this.removeListeners()}}const dD=e=>(t,n)=>{e&&jt.postRender(()=>e(t,n))};class MQ extends ya{constructor(){super(...arguments),this.removePointerDownListener=Er}onPointerDown(t){this.session=new v_(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S_(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:dD(t),onStart:dD(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&jt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=oc(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 Lf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fD(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ml={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=fD(e,t.target.x),r=fD(e,t.target.y);return`${n}% ${r}%`}},FQ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=ha.parse(e);if(i.length>5)return r;const o=ha.createTransformer(e),a=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=u,i[1+a]/=c;const d=qt(u,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class kQ extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;tJ(BQ),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Lf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||jt.postRender(()=>{const u=a.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),O0.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 T_(e){const[t,n]=yZ(),r=b.useContext(l7);return Do.jsx(kQ,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(g7),isPresent:t,safeToRemove:n})}const BQ={borderRadius:{...Ml,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ml,borderTopRightRadius:Ml,borderBottomLeftRadius:Ml,borderBottomRightRadius:Ml,boxShadow:FQ};function IQ(e,t,n){const r=In(e)?e:Fu(e);return r.start(r1("",r,t,n)),r.animation}function LQ(e){return e instanceof SVGElement&&e.tagName!=="svg"}const VQ=(e,t)=>e.depth-t.depth;class NQ{constructor(){this.children=[],this.isDirty=!1}add(t){H0(this.children,t),this.isDirty=!0}remove(t){G0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(VQ),this.isDirty=!1,this.children.forEach(t)}}function jQ(e,t){const n=qi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Co(r),e(o-t))};return jt.read(r,!0),()=>Co(r)}const A_=["TopLeft","TopRight","BottomLeft","BottomRight"],KQ=A_.length,hD=e=>typeof e=="string"?parseFloat(e):e,pD=e=>typeof e=="number"||Ge.test(e);function UQ(e,t,n,r,i,o){i?(e.opacity=qt(0,n.opacity!==void 0?n.opacity:1,zQ(r)),e.opacityExit=qt(t.opacity!==void 0?t.opacity:1,0,WQ(r))):o&&(e.opacity=qt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<KQ;a++){const u=`border${A_[a]}Radius`;let c=mD(t,u),d=mD(n,u);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||pD(c)===pD(d)?(e[u]=Math.max(qt(hD(c),hD(d),r),0),(Gi.test(d)||Gi.test(c))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=qt(t.rotate||0,n.rotate||0,r))}function mD(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const zQ=P_(0,.5,H7),WQ=P_(.5,.95,Er);function P_(e,t,n){return r=>r<e?0:r>t?1:n(Ou(e,t,r))}function gD(e,t){e.min=t.min,e.max=t.max}function Jr(e,t){gD(e.x,t.x),gD(e.y,t.y)}function yD(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function vD(e,t,n,r,i){return e-=t,e=Rh(e,1/n,r),i!==void 0&&(e=Rh(e,1/i,r)),e}function HQ(e,t=0,n=1,r=.5,i,o=e,a=e){if(Gi.test(t)&&(t=parseFloat(t),t=qt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let u=qt(o.min,o.max,r);e===o&&(u-=t),e.min=vD(e.min,t,n,u,i),e.max=vD(e.max,t,n,u,i)}function bD(e,t,[n,r,i],o,a){HQ(e,t[n],t[r],t[i],t.scale,o,a)}const GQ=["x","scaleX","originX"],qQ=["y","scaleY","originY"];function $D(e,t,n,r){bD(e.x,t,GQ,n?n.x:void 0,r?r.x:void 0),bD(e.y,t,qQ,n?n.y:void 0,r?r.y:void 0)}function xD(e){return e.translate===0&&e.scale===1}function __(e){return xD(e.x)&&xD(e.y)}function wD(e,t){return e.min===t.min&&e.max===t.max}function YQ(e,t){return wD(e.x,t.x)&&wD(e.y,t.y)}function DD(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function R_(e,t){return DD(e.x,t.x)&&DD(e.y,t.y)}function ED(e){return Br(e.x)/Br(e.y)}function CD(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class ZQ{constructor(){this.members=[]}add(t){H0(this.members,t),t.scheduleRender()}remove(t){if(G0(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 o=this.members[i];if(o.isPresent!==!1){r=o;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 JQ(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:h,rotateY:m,skewX:g,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const u=e.x.scale*t.x,c=e.y.scale*t.y;return(u!==1||c!==1)&&(r+=`scale(${u}, ${c})`),r||"none"}const Ia={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Yl=typeof window<"u"&&window.MotionDebug!==void 0,zg=["","X","Y","Z"],XQ={visibility:"hidden"},SD=1e3;let QQ=0;function Wg(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function O_(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=V7(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",jt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&O_(r)}function M_({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=t==null?void 0:t()){this.id=QQ++,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,Yl&&(Ia.totalNodes=Ia.resolvedTargetDeltas=Ia.recalculatedProjection=0),this.nodes.forEach(nee),this.nodes.forEach(see),this.nodes.forEach(uee),this.nodes.forEach(ree),Yl&&window.MotionDebug.record(Ia)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,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 c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new NQ)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new q0),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const c=this.eventHandlers.get(a);c&&c.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=LQ(a),this.instance=a;const{layoutId:c,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||c)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=jQ(m,250),Lf.hasAnimatedSinceResize&&(Lf.hasAnimatedSinceResize=!1,this.nodes.forEach(AD))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||hee,{onLayoutAnimationStart:C,onLayoutAnimationComplete:x}=f.getProps(),y=!this.targetLayout||!R_(this.targetLayout,v)||g,D=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||D||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,D);const P={...K0($,"layout"),onPlay:C,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else m||AD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Co(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(lee),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&O_(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(TD);return}this.isUpdating||this.nodes.forEach(oee),this.isUpdating=!1,this.nodes.forEach(aee),this.nodes.forEach(eee),this.nodes.forEach(tee),this.clearAllSnapshots();const u=qi.now();Bn.delta=So(0,1e3/60,u-Bn.timestamp),Bn.timestamp=u,Bn.isProcessing=!0,Bg.update.process(Bn),Bg.preRender.process(Bn),Bg.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,O0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iee),this.sharedNodes.forEach(cee)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=cn(),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,a?a.layoutBox:void 0)}updateScroll(a="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(u=!1),u){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!__(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&(u||Ba(this.latestValues)||f)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return a&&(c=this.removeTransform(c)),pee(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:u}=this.options;if(!u)return cn();const c=u.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(mee))){const{scroll:f}=this.root;f&&(su(c.x,f.offset.x),su(c.y,f.offset.y))}return c}removeElementScroll(a){var u;const c=cn();if(Jr(c,a),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return c;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:h,options:m}=f;f!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Jr(c,a),su(c.x,h.offset.x),su(c.y,h.offset.y))}return c}applyTransform(a,u=!1){const c=cn();Jr(c,a);for(let d=0;d<this.path.length;d++){const f=this.path[d];!u&&f.options.layoutScroll&&f.scroll&&f!==f.root&&uu(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Ba(f.latestValues)&&uu(c,f.latestValues)}return Ba(this.latestValues)&&uu(c,this.latestValues),c}removeTransform(a){const u=cn();Jr(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Ba(d.latestValues))continue;Fv(d.latestValues)&&d.updateSnapshot();const f=cn(),h=d.measurePageBox();Jr(f,h),$D(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,f)}return Ba(this.latestValues)&&$D(u,this.latestValues),u}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),sc(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=cn(),this.targetWithTransforms=cn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vQ(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jr(this.target,this.layout.layoutBox),E_(this.target,this.targetDelta)):Jr(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=cn(),this.relativeTargetOrigin=cn(),sc(this.relativeTargetOrigin,this.target,g.target),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Yl&&Ia.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||Fv(this.parent.latestValues)||D_(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 a;const u=this.getLead(),c=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(d=!1),d)return;const{layout:f,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||!(f||h))return;Jr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;TQ(this.layoutCorrected,this.treeScale,this.path,c),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=cn());const{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(yD(this.prevProjectionDelta.x,this.projectionDelta.x),yD(this.prevProjectionDelta.y,this.projectionDelta.y)),ac(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!CD(this.projectionDelta.x,this.prevProjectionDelta.x)||!CD(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Yl&&Ia.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=au(),this.projectionDelta=au(),this.projectionDeltaWithTransform=au()}setAnimationOrigin(a,u=!1){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=au();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const m=cn(),g=c?c.source:void 0,v=this.layout?this.layout.source:void 0,$=g!==v,C=this.getStack(),x=!C||C.members.length<=1,y=!!($&&!x&&this.options.crossfade===!0&&!this.path.some(fee));this.animationProgress=0;let D;this.mixTargetDelta=P=>{const E=P/1e3;PD(h.x,a.x,E),PD(h.y,a.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(sc(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),dee(this.relativeTarget,this.relativeTargetOrigin,m,E),D&&YQ(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=cn()),Jr(D,this.relativeTarget)),$&&(this.animationValues=f,UQ(f,d,this.latestValues,E,y,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Co(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{Lf.hasAnimatedSinceResize=!0,this.currentAnimation=IQ(0,SD,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(SD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:f}=a;if(!(!u||!c||!d)){if(this!==a&&this.layout&&d&&F_(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||cn();const h=Br(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+h;const m=Br(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+m}Jr(u,c),uu(u,f),ac(this.projectionDeltaWithTransform,this.layoutCorrected,u,f)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new ZQ),this.sharedNodes.get(a).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:u}=this.options;return u?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:u}=this.options;return u?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let u=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(u=!0),!u)return;const d={};c.z&&Wg("z",a,d,this.animationValues);for(let f=0;f<zg.length;f++)Wg(`rotate${zg[f]}`,a,d,this.animationValues),Wg(`skew${zg[f]}`,a,d,this.animationValues);a.render();for(const f in d)a.setStaticValue(f,d[f]),this.animationValues&&(this.animationValues[f]=d[f]);a.scheduleRender()}getProjectionStyles(a){var u,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return XQ;const d={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=Bf(a==null?void 0:a.pointerEvents)||"",d.transform=f?f(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const $={};return this.options.layoutId&&($.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,$.pointerEvents=Bf(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ba(this.latestValues)&&($.transform=f?f({},""):"none",this.hasProjected=!1),$}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=JQ(this.projectionDeltaWithTransform,this.treeScale,m),f&&(d.transform=f(m,d.transform));const{x:g,y:v}=this.projectionDelta;d.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,h.animationValues?d.opacity=h===this?(c=(u=m.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const $ in Sh){if(m[$]===void 0)continue;const{correct:C,applyTo:x}=Sh[$],y=d.transform==="none"?m[$]:C(m[$],h);if(x){const D=x.length;for(let P=0;P<D;P++)d[x[P]]=y}else d[$]=y}return this.options.layoutId&&(d.pointerEvents=h===this?Bf(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var u;return(u=a.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(TD),this.root.sharedNodes.clear()}}}function eee(e){e.updateLayout()}function tee(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:o}=e.options,a=n.source!==e.layout.source;o==="size"?Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=Br(m);m.min=r[h].min,m.max=m.min+g}):F_(o,n.layoutBox,r)&&Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=Br(r[h]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=au();ac(u,r,n.layoutBox);const c=au();a?ac(c,e.applyTransform(i,!0),n.measuredBox):ac(c,r,n.layoutBox);const d=!__(u);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const v=cn();sc(v,n.layoutBox,m.layoutBox);const $=cn();sc($,r,g.layoutBox),R_(v,$)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=$,e.relativeTargetOrigin=v,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function nee(e){Yl&&Ia.totalNodes++,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 ree(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iee(e){e.clearSnapshot()}function TD(e){e.clearMeasurements()}function oee(e){e.isLayoutDirty=!1}function aee(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function AD(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function see(e){e.resolveTargetDelta()}function uee(e){e.calcProjection()}function lee(e){e.resetSkewAndRotation()}function cee(e){e.removeLeadSnapshot()}function PD(e,t,n){e.translate=qt(t.translate,0,n),e.scale=qt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function _D(e,t,n,r){e.min=qt(t.min,n.min,r),e.max=qt(t.max,n.max,r)}function dee(e,t,n,r){_D(e.x,t.x,n.x,r),_D(e.y,t.y,n.y,r)}function fee(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const hee={duration:.45,ease:[.4,0,.1,1]},RD=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),OD=RD("applewebkit/")&&!RD("chrome/")?Math.round:Er;function MD(e){e.min=OD(e.min),e.max=OD(e.max)}function pee(e){MD(e.x),MD(e.y)}function F_(e,t,n){return e==="position"||e==="preserve-aspect"&&!yQ(ED(t),ED(n),.2)}function mee(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const gee=M_({attachResizeListener:(e,t)=>Cc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Hg={current:void 0},k_=M_({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Hg.current){const e=new gee({});e.mount(window),e.setOptions({layoutScroll:!0}),Hg.current=e}return Hg.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),yee={pan:{Feature:MQ},drag:{Feature:OQ,ProjectionNode:k_,MeasureLayout:T_}};function FD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&jt.postRender(()=>o(t,Qc(t)))}class vee extends ya{mount(){const{current:t}=this.node;t&&(this.unmount=yJ(t,n=>(FD(this.node,n,"Start"),r=>FD(this.node,r,"End"))))}unmount(){}}class bee extends ya{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=Xc(Cc(this.node.current,"focus",()=>this.onFocus()),Cc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function kD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&jt.postRender(()=>o(t,Qc(t)))}class $ee extends ya{mount(){const{current:t}=this.node;t&&(this.unmount=xJ(t,n=>(kD(this.node,n,"Start"),(r,{success:i})=>kD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Bv=new WeakMap,Gg=new WeakMap,xee=e=>{const t=Bv.get(e.target);t&&t(e)},wee=e=>{e.forEach(xee)};function Dee({root:e,...t}){const n=e||document;Gg.has(n)||Gg.set(n,{});const r=Gg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(wee,{root:e,...t})),r[i]}function Eee(e,t,n){const r=Dee(t);return Bv.set(e,n),r.observe(e),()=>{Bv.delete(e),r.unobserve(e)}}const Cee={some:0,all:1};class See extends ya{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:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:Cee[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return Eee(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Tee(t,n))&&this.startObserver()}unmount(){}}function Tee({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Aee={inView:{Feature:See},tap:{Feature:$ee},focus:{Feature:bee},hover:{Feature:vee}},Pee={layout:{ProjectionNode:k_,MeasureLayout:T_}},Iv={current:null},B_={current:!1};function _ee(){if(B_.current=!0,!!T0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Iv.current=e.matches;e.addListener(t),t()}else Iv.current=!1}const Ree=[...a_,Yn,ha],Oee=e=>Ree.find(o_(e)),BD=new WeakMap;function Mee(e,t,n){for(const r in t){const i=t[r],o=n[r];if(In(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&wp(i.version==="11.18.0",`Attempting to mix Motion versions ${i.version} with 11.18.0 may not work as expected.`);else if(In(o))e.addValue(r,Fu(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Fu(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ID=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Fee{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=e1,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=qi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,jt.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:f}=a;this.onUpdate=f,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Cp(n),this.isVariantNode=p7(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const v=m[g];c[g]!==void 0&&In(v)&&v.set(c[g],!1)}}mount(t){this.current=t,BD.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)),B_.current||_ee(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Iv.current,process.env.NODE_ENV!=="production"&&wp(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(){BD.delete(this.current),this.projection&&this.projection.unmount(),Co(this.notifyUpdate),Co(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=ys.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&jt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),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 o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):cn()}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<ID.length;r++){const i=ID[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Mee(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=Fu(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"&&(r_(i)||q7(i))?i=parseFloat(i):!Oee(i)&&ha.test(n)&&(i=e_(t,n)),this.setBaseTarget(t,In(i)?i.get():i)),In(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 a=F0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!In(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new q0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class I_ extends Fee{constructor(){super(...arguments),this.KeyframeResolver=s_}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;In(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function kee(e){return window.getComputedStyle(e)}class Bee extends I_{constructor(){super(...arguments),this.type="html",this.renderInstance=D7}readValueFromInstance(t,n){if(ys.has(n)){const r=Q0(n);return r&&r.default||0}else{const r=kee(t),i=($7(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return C_(t,n)}build(t,n,r){I0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return j0(t,n,r)}}class Iee extends I_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=cn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ys.has(n)){const r=Q0(n);return r&&r.default||0}return n=E7.has(n)?n:R0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return T7(t,n,r)}build(t,n,r){L0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){C7(t,n,r,i)}mount(t){this.isSVGTag=N0(t.tagName),super.mount(t)}}const Lee=(e,t)=>M0(e)?new Iee(t):new Bee(t,{allowProjection:e!==b.Fragment}),Vee=cJ({...uQ,...Aee,...yee,...Pee},Lee),L_=CZ(Vee);function V_(e){const t=Yc(()=>Fu(e)),{isStatic:n}=b.useContext(S0);if(n){const[,r]=b.useState(e);b.useEffect(()=>t.on("change",r),[])}return t}function N_(e,t){const n=V_(t()),r=()=>n.set(t());return r(),c7(()=>{const i=()=>jt.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),Co(r)}}),n}const Nee=e=>e&&typeof e=="object"&&e.mix,jee=e=>Nee(e)?e.mix:void 0;function Kee(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],u=p_(i,o,{mixer:jee(o[0]),...a});return t?u(r):u}function Uee(e){rc.current=[],e();const t=N_(rc.current,e);return rc.current=void 0,t}function zee(e,t,n,r){if(typeof e=="function")return Uee(e);const i=typeof t=="function"?t:Kee(t,n,r);return Array.isArray(e)?LD(e,i):LD([e],([o])=>i(o))}function LD(e,t){const n=Yc(()=>[]);return N_(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const j_=b.createContext(null);function Wee(e,t,n,r){if(!r)return e;const i=e.findIndex(f=>f.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const u=e[i],c=a.layout,d=qt(c.min,c.max,.5);return o===1&&u.layout.max+n>d||o===-1&&u.layout.min+n<d?EJ(e,i,i+o):e}function Hee({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const u=Yc(()=>L_[t]),c=[],d=b.useRef(!1);Zi(!!i,"Reorder.Group must be provided a values prop");const f={axis:n,registerItem:(h,m)=>{const g=c.findIndex(v=>h===v.value);g!==-1?c[g].layout=m[n]:c.push({value:h,layout:m[n]}),c.sort(Yee)},updateOrder:(h,m,g)=>{if(d.current)return;const v=Wee(c,h,m,g);c!==v&&(d.current=!0,r(v.map(qee).filter($=>i.indexOf($)!==-1)))}};return b.useEffect(()=>{d.current=!1}),Do.jsx(u,{...o,ref:a,ignoreStrict:!0,children:Do.jsx(j_.Provider,{value:f,children:e})})}const Gee=b.forwardRef(Hee);function qee(e){return e.value}function Yee(e,t){return e.layout.min-t.layout.min}function VD(e,t=0){return In(e)?e:V_(t)}function Zee({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...a},u){const c=Yc(()=>L_[r]),d=b.useContext(j_),f={x:VD(t.x),y:VD(t.y)},h=zee([f.x,f.y],([$,C])=>$||C?1:"unset");Zi(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:m,registerItem:g,updateOrder:v}=d;return Do.jsx(c,{drag:m,...a,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:o,onDrag:($,C)=>{const{velocity:x}=C;x[m]&&v(n,f[m].get(),x[m]),i&&i($,C)},onLayoutMeasure:$=>g(n,$),ref:u,ignoreStrict:!0,children:e})}const Jee=b.forwardRef(Zee);function K_(e){return t=>typeof t===e}var Xee=K_("function"),Qee=e=>e===null,ND=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",jD=e=>!ete(e)&&!Qee(e)&&(Xee(e)||typeof e=="object"),ete=K_("undefined");function tte(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!lr(e[r],t[r]))return!1;return!0}function nte(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 rte(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(!lr(n[1],t.get(n[0])))return!1;return!0}function ite(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 lr(e,t){if(e===t)return!0;if(e&&jD(e)&&t&&jD(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return tte(e,t);if(e instanceof Map&&t instanceof Map)return rte(e,t);if(e instanceof Set&&t instanceof Set)return ite(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return nte(e,t);if(ND(e)&&ND(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 o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var ote=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ate=["bigint","boolean","null","number","string","symbol","undefined"];function Ap(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(ste(t))return t}function Si(e){return t=>Ap(t)===e}function ste(e){return ote.includes(e)}function Xu(e){return t=>typeof t===e}function ute(e){return ate.includes(e)}var lte=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Oe(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(Oe.array(e))return"Array";if(Oe.plainFunction(e))return"Function";const t=Ap(e);return t||"Object"}Oe.array=Array.isArray;Oe.arrayOf=(e,t)=>!Oe.array(e)&&!Oe.function(t)?!1:e.every(n=>t(n));Oe.asyncGeneratorFunction=e=>Ap(e)==="AsyncGeneratorFunction";Oe.asyncFunction=Si("AsyncFunction");Oe.bigint=Xu("bigint");Oe.boolean=e=>e===!0||e===!1;Oe.date=Si("Date");Oe.defined=e=>!Oe.undefined(e);Oe.domElement=e=>Oe.object(e)&&!Oe.plainObject(e)&&e.nodeType===1&&Oe.string(e.nodeName)&<e.every(t=>t in e);Oe.empty=e=>Oe.string(e)&&e.length===0||Oe.array(e)&&e.length===0||Oe.object(e)&&!Oe.map(e)&&!Oe.set(e)&&Object.keys(e).length===0||Oe.set(e)&&e.size===0||Oe.map(e)&&e.size===0;Oe.error=Si("Error");Oe.function=Xu("function");Oe.generator=e=>Oe.iterable(e)&&Oe.function(e.next)&&Oe.function(e.throw);Oe.generatorFunction=Si("GeneratorFunction");Oe.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Oe.iterable=e=>!Oe.nullOrUndefined(e)&&Oe.function(e[Symbol.iterator]);Oe.map=Si("Map");Oe.nan=e=>Number.isNaN(e);Oe.null=e=>e===null;Oe.nullOrUndefined=e=>Oe.null(e)||Oe.undefined(e);Oe.number=e=>Xu("number")(e)&&!Oe.nan(e);Oe.numericString=e=>Oe.string(e)&&e.length>0&&!Number.isNaN(Number(e));Oe.object=e=>!Oe.nullOrUndefined(e)&&(Oe.function(e)||typeof e=="object");Oe.oneOf=(e,t)=>Oe.array(e)?e.indexOf(t)>-1:!1;Oe.plainFunction=Si("Function");Oe.plainObject=e=>{if(Ap(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Oe.primitive=e=>Oe.null(e)||ute(typeof e);Oe.promise=Si("Promise");Oe.propertyOf=(e,t,n)=>{if(!Oe.object(e)||!t)return!1;const r=e[t];return Oe.function(n)?n(r):Oe.defined(r)};Oe.regexp=Si("RegExp");Oe.set=Si("Set");Oe.string=Xu("string");Oe.symbol=Xu("symbol");Oe.undefined=Xu("undefined");Oe.weakMap=Si("WeakMap");Oe.weakSet=Si("WeakSet");var ke=Oe;function cte(...e){return e.every(t=>ke.string(t)||ke.array(t)||ke.plainObject(t))}function dte(e,t,n){return U_(e,t)?[e,t].every(ke.array)?!e.some(HD(n))&&t.some(HD(n)):[e,t].every(ke.plainObject)?!Object.entries(e).some(WD(n))&&Object.entries(t).some(WD(n)):t===n:!1}function KD(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,u=Ki(e,i),c=Ki(t,i);let d=[u,c].every(ke.number)&&(a==="increased"?u<c:u>c);return ke.undefined(r)||(d=d&&c===r),ke.undefined(o)||(d=d&&u===o),d}function UD(e,t,n){const{key:r,type:i,value:o}=n,a=Ki(e,r),u=Ki(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ke.nullOrUndefined(o)){if(ke.defined(c)){if(ke.array(c)||ke.plainObject(c))return dte(c,d,o)}else return lr(d,o);return!1}return[a,u].every(ke.array)?!d.every(i1(c)):[a,u].every(ke.plainObject)?fte(Object.keys(c),Object.keys(d)):![a,u].every(f=>ke.primitive(f)&&ke.defined(f))&&(i==="added"?!ke.defined(a)&&ke.defined(u):ke.defined(a)&&!ke.defined(u))}function zD(e,t,{key:n}={}){let r=Ki(e,n),i=Ki(t,n);if(!U_(r,i))throw new TypeError("Inputs have different types");if(!cte(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ke.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function WD(e){return([t,n])=>ke.array(e)?lr(e,n)||e.some(r=>lr(r,n)||ke.array(n)&&i1(n)(r)):ke.plainObject(e)&&e[t]?!!e[t]&&lr(e[t],n):lr(e,n)}function fte(e,t){return t.some(n=>!e.includes(n))}function HD(e){return t=>ke.array(e)?e.some(n=>lr(n,t)||ke.array(t)&&i1(t)(n)):lr(e,t)}function Fl(e,t){return ke.array(e)?e.some(n=>lr(n,t)):lr(e,t)}function i1(e){return t=>e.some(n=>lr(n,t))}function U_(...e){return e.every(ke.array)||e.every(ke.number)||e.every(ke.plainObject)||e.every(ke.string)}function Ki(e,t){return ke.plainObject(e)||ke.array(e)?ke.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ke.number(t)?e[t]:e:e}function Oh(e,t){if([e,t].some(ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>ke.plainObject(f)||ke.array(f)))throw new Error("Expected plain objects or array");return{added:(f,h)=>{try{return UD(e,t,{key:f,type:"added",value:h})}catch{return!1}},changed:(f,h,m)=>{try{const g=Ki(e,f),v=Ki(t,f),$=ke.defined(h),C=ke.defined(m);if($||C){const x=C?Fl(m,g):!Fl(h,g),y=Fl(h,v);return x&&y}return[g,v].every(ke.array)||[g,v].every(ke.plainObject)?!lr(g,v):g!==v}catch{return!1}},changedFrom:(f,h,m)=>{if(!ke.defined(f))return!1;try{const g=Ki(e,f),v=Ki(t,f),$=ke.defined(m);return Fl(h,g)&&($?Fl(m,v):!$)}catch{return!1}},decreased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[h,m]=zD(e,t,{key:f});return!!h.length&&!m.length}catch{return!1}},filled:f=>{try{const[h,m]=zD(e,t,{key:f});return!h.length&&!!m.length}catch{return!1}},increased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"increased"})}catch{return!1}},removed:(f,h)=>{try{return UD(e,t,{key:f,type:"removed",value:h})}catch{return!1}}}}var qg,GD;function hte(){if(GD)return qg;GD=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;qg={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,f,h,m){h=h||{},typeof h=="function"&&(m=h,h={}),typeof m!="function"&&(m=a);var g=r(),v=d[u],$=h.ease||o,C=isNaN(h.duration)?350:+h.duration,x=!1;return v===f?m(e,d[u]):requestAnimationFrame(D),y;function y(){x=!0}function D(P){if(x)return m(t,d[u]);var E=r(),T=n(1,(E-g)/C),k=$(T);d[u]=k*(f-v)+v,T<1?requestAnimationFrame(D):requestAnimationFrame(function(){m(null,d[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function a(){}return qg}var pte=hte();const mte=To(pte);var Vf={exports:{}},gte=Vf.exports,qD;function yte(){return qD||(qD=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(gte,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})}(Vf)),Vf.exports}var vte=yte();const z_=To(vte);var Yg,YD;function bte(){if(YD)return Yg;YD=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,Yg=n,Yg}var $te=bte();const ZD=To($te);var Zg,JD;function xte(){if(JD)return Zg;JD=1;var e=function(y){return t(y)&&!n(y)};function t(x){return!!x&&typeof x=="object"}function n(x){var y=Object.prototype.toString.call(x);return y==="[object RegExp]"||y==="[object Date]"||o(x)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(x){return x.$$typeof===i}function a(x){return Array.isArray(x)?[]:{}}function u(x,y){return y.clone!==!1&&y.isMergeableObject(x)?$(a(x),x,y):x}function c(x,y,D){return x.concat(y).map(function(P){return u(P,D)})}function d(x,y){if(!y.customMerge)return $;var D=y.customMerge(x);return typeof D=="function"?D:$}function f(x){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(x).filter(function(y){return Object.propertyIsEnumerable.call(x,y)}):[]}function h(x){return Object.keys(x).concat(f(x))}function m(x,y){try{return y in x}catch{return!1}}function g(x,y){return m(x,y)&&!(Object.hasOwnProperty.call(x,y)&&Object.propertyIsEnumerable.call(x,y))}function v(x,y,D){var P={};return D.isMergeableObject(x)&&h(x).forEach(function(E){P[E]=u(x[E],D)}),h(y).forEach(function(E){g(x,E)||(m(x,E)&&D.isMergeableObject(y[E])?P[E]=d(E,D)(x[E],y[E],D):P[E]=u(y[E],D))}),P}function $(x,y,D){D=D||{},D.arrayMerge=D.arrayMerge||c,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=u;var P=Array.isArray(y),E=Array.isArray(x),T=P===E;return T?P?D.arrayMerge(x,y,D):v(x,y,D):u(y,D)}$.all=function(y,D){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(P,E){return $(P,E,D)},{})};var C=$;return Zg=C,Zg}var wte=xte();const bi=To(wte);var yf={exports:{}},vf={exports:{}},Et={};/** @license React v16.13.1
|
|
155
|
+
`)});k.push(function(){_.style.width=g.scrollWidth+"px"}),k.push(function(){T.appendChild(_)})}});var F=g.id;if(P&&Prism.util.isActive(g,t)&&F){i(g,t)||k.push(function(){g.classList.add(t)});var G=parseInt(g.getAttribute("data-start")||"1");r(".line-numbers-rows > span",g).forEach(function(K,W){var j=W+G;K.onclick=function(){var L=F+"."+j;d=!1,location.hash=L,setTimeout(function(){d=!0},1)}})}return function(){k.forEach(o)}}};function f(){var m=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(x){x.parentNode.removeChild(x)});var g=(m.match(/\.([\d,-]+)$/)||[,""])[1];if(!(!g||document.getElementById(m))){var v=m.slice(0,m.lastIndexOf(".")),$=document.getElementById(v);if($){$.hasAttribute("data-line")||$.setAttribute("data-line","");var C=Prism.plugins.lineHighlight.highlightLines($,g,"temporary ");C(),d&&document.querySelector(".temporary.line-highlight").scrollIntoView()}}}var h=0;Prism.hooks.add("before-sanity-check",function(m){var g=m.element.parentElement;if(c(g)){var v=0;r(".line-highlight",g).forEach(function($){v+=$.textContent.length,$.parentNode.removeChild($)}),v&&/^(?: \n)+$/.test(m.code.slice(-v))&&(m.code=m.code.slice(0,-v))}}),Prism.hooks.add("complete",function m(g){var v=g.element.parentElement;if(c(v)){clearTimeout(h);var $=Prism.plugins.lineNumbers,C=g.plugins&&g.plugins.lineNumbers;if(i(v,e)&&$&&!C)Prism.hooks.add("line-numbers",m);else{var x=Prism.plugins.lineHighlight.highlightLines(v);x(),h=setTimeout(f,1)}}}),window.addEventListener("hashchange",f),window.addEventListener("resize",function(){var m=r("pre").filter(c).map(function(g){return Prism.plugins.lineHighlight.highlightLines(g)});m.forEach(o)})})();const Mx=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Ae(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},XP=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?Mx(r.ref,n,e):r.refs&&r.refs.forEach(i=>Mx(i,n,e))}},PH=(e,t)=>{t.shouldUseNativeValidation&&XP(e,t);const n={};for(const r in e){const i=Ae(t.fields,r),o=Object.assign(e[r]||{},{ref:i&&i.ref});if(_H(t.names||Object.keys(e),r)){const a=Object.assign({},Ae(n,r));Tt(a,"root",o),Tt(n,r,a)}else Tt(n,r,o)}return n},_H=(e,t)=>e.some(n=>n.startsWith(t+"."));function RH(e,t,n){return t===void 0&&(t={}),n===void 0&&(n={}),function(r,i,o){try{return Promise.resolve(function(a,u){try{var c=(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(d){return o.shouldUseNativeValidation&&XP({},o),{values:n.raw?r:d,errors:{}}}))}catch(d){return u(d)}return c&&c.then?c.then(void 0,u):c}(0,function(a){if(!a.inner)throw a;return{values:{},errors:PH((u=a,c=!o.shouldUseNativeValidation&&o.criteriaMode==="all",(u.inner||[]).reduce(function(d,f){if(d[f.path]||(d[f.path]={message:f.message,type:f.type}),c){var h=d[f.path].types,m=h&&h[f.type];d[f.path]=iA(f.path,c,d,f.type,m?[].concat(m,f.message):f.message)}return d},{})),o)};var u,c}))}catch(a){return Promise.reject(a)}}}var wg,Fx;function OH(){if(Fx)return wg;Fx=1;var e=typeof Li=="object"&&Li&&Li.Object===Object&&Li;return wg=e,wg}var Dg,kx;function MH(){if(kx)return Dg;kx=1;var e=OH(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Dg=n,Dg}var Eg,Bx;function QP(){if(Bx)return Eg;Bx=1;var e=MH(),t=e.Symbol;return Eg=t,Eg}var Cg,Ix;function FH(){if(Ix)return Cg;Ix=1;var e=QP(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function o(a){var u=n.call(a,i),c=a[i];try{a[i]=void 0;var d=!0}catch{}var f=r.call(a);return d&&(u?a[i]=c:delete a[i]),f}return Cg=o,Cg}var Sg,Lx;function kH(){if(Lx)return Sg;Lx=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Sg=n,Sg}var Tg,Vx;function BH(){if(Vx)return Tg;Vx=1;var e=QP(),t=FH(),n=kH(),r="[object Null]",i="[object Undefined]",o=e?e.toStringTag:void 0;function a(u){return u==null?u===void 0?i:r:o&&o in Object(u)?t(u):n(u)}return Tg=a,Tg}var Ag,Nx;function IH(){if(Nx)return Ag;Nx=1;function e(t){return t!=null&&typeof t=="object"}return Ag=e,Ag}var Pg,jx;function LH(){if(jx)return Pg;jx=1;var e=BH(),t=IH(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Pg=r,Pg}var VH=LH();const NH=To(VH),e6=b.createContext({});function Hc(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}const Qb=b.createContext(null),e0=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function jH(e=!0){const t=b.useContext(Qb);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,o=b.useId();b.useEffect(()=>{e&&i(o)},[e]);const a=b.useCallback(()=>e&&r&&r(o),[o,r,e]);return!n&&r?[!1,a]:[!0]}const t0=typeof window<"u",t6=t0?b.useLayoutEffect:b.useEffect,Er=e=>e;let Wu=Er,Zi=Er;process.env.NODE_ENV!=="production"&&(Wu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},Zi=(e,t)=>{if(!e)throw new Error(t)});function n0(e){let t;return()=>(t===void 0&&(t=e()),t)}const _u=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Hi=e=>e*1e3,xo=e=>e/1e3,KH={skipAnimations:!1,useManualTiming:!1};function UH(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const ff=["read","resolveKeyframes","update","preRender","render","postRender"],zH=40;function n6(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=ff.reduce((x,y)=>(x[y]=UH(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,zH),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:ff.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<ff.length;y++)a[ff[y]].cancel(x)},state:i,steps:a}}const{schedule:jt,cancel:Co,state:Bn,steps:_g}=n6(typeof requestAnimationFrame<"u"?requestAnimationFrame:Er,!0),r6=b.createContext({strict:!1}),Kx={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"]},Ru={};for(const e in Kx)Ru[e]={isEnabled:t=>Kx[e].some(n=>!!t[n])};function WH(e){for(const t in e)Ru[t]={...Ru[t],...e[t]}}const HH=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 vh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||HH.has(e)}let i6=e=>!vh(e);function GH(e){e&&(i6=t=>t.startsWith("on")?!vh(t):e(t))}try{GH(require("@emotion/is-prop-valid").default)}catch{}function qH(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(i6(i)||n===!0&&vh(i)||!t&&!vh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}const Ux=new Set;function pp(e,t,n){e||Ux.has(t)||(console.warn(t),Ux.add(t))}function YH(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 mp=b.createContext({});function bc(e){return typeof e=="string"||Array.isArray(e)}function gp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const r0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],i0=["initial",...r0];function yp(e){return gp(e.animate)||i0.some(t=>bc(e[t]))}function o6(e){return!!(yp(e)||e.variants)}function ZH(e,t){if(yp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||bc(n)?n:void 0,animate:bc(r)?r:void 0}}return e.inherit!==!1?t:{}}function JH(e){const{initial:t,animate:n}=ZH(e,b.useContext(mp));return b.useMemo(()=>({initial:t,animate:n}),[zx(t),zx(n)])}function zx(e){return Array.isArray(e)?e.join(" "):e}const XH=Symbol.for("motionComponentSymbol");function ru(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function QH(e,t,n){return b.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):ru(n)&&(n.current=r))},[t])}const o0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eG="framerAppearId",a6="data-"+o0(eG),{schedule:a0,cancel:zre}=n6(queueMicrotask,!1),s6=b.createContext({});function tG(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(mp),c=b.useContext(r6),d=b.useContext(Qb),f=b.useContext(e0).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(s6);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&nG(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[a6],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return t6(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),a0.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function nG(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:u6(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&ru(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function u6(e){if(e)return e.options.allowProjection!==!1?e.projection:u6(e.parent)}function rG({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var o,a;e&&WH(e);function u(d,f){let h;const m={...b.useContext(e0),...d,layoutId:iG(d)},{isStatic:g}=m,v=JH(d),$=r(d,g);if(!g&&t0){oG(m,e);const C=aG(m);h=C.MeasureLayout,v.visualElement=tG(i,$,m,t,C.ProjectionNode)}return Do.jsxs(mp.Provider,{value:v,children:[h&&v.visualElement?Do.jsx(h,{visualElement:v.visualElement,...m}):null,n(i,d,QH($,v.visualElement,f),$,g,v.visualElement)]})}u.displayName=`motion.${typeof i=="string"?i:`create(${(a=(o=i.displayName)!==null&&o!==void 0?o:i.name)!==null&&a!==void 0?a:""})`}`;const c=b.forwardRef(u);return c[XH]=i,c}function iG({layoutId:e}){const t=b.useContext(e6).id;return t&&e!==void 0?t+"-"+e:e}function oG(e,t){const n=b.useContext(r6).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?Wu(!1,r):Zi(!1,r)}}function aG(e){const{drag:t,layout:n}=Ru;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 sG=["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 s0(e){return typeof e!="string"||e.includes("-")?!1:!!(sG.indexOf(e)>-1||/[A-Z]/u.test(e))}function Wx(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function u0(e,t,n,r){if(typeof t=="function"){const[i,o]=Wx(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=Wx(r);t=t(n!==void 0?n:e.custom,i,o)}return t}const uv=e=>Array.isArray(e),uG=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),lG=e=>uv(e)?e[e.length-1]||0:e,In=e=>!!(e&&e.getVelocity);function kf(e){const t=In(e)?e.get():e;return uG(t)?t.toValue():t}function cG({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,o){const a={latestValues:dG(r,i,o,e),renderState:t()};return n&&(a.onMount=u=>n({props:r,current:u,...a}),a.onUpdate=u=>n(u)),a}const l6=e=>(t,n)=>{const r=b.useContext(mp),i=b.useContext(Qb),o=()=>cG(e,t,r,i);return n?o():Hc(o)};function dG(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=kf(o[m]);let{initial:a,animate:u}=e;const c=yp(e),d=o6(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!gp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=u0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const Hu=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],gs=new Set(Hu),c6=e=>t=>typeof t=="string"&&t.startsWith(e),d6=c6("--"),fG=c6("var(--"),l0=e=>fG(e)?hG.test(e.split("/*")[0].trim()):!1,hG=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,f6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,So=(e,t,n)=>n>t?t:n<e?e:n,Gu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},$c={...Gu,transform:e=>So(0,1,e)},hf={...Gu,default:1},Gc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Yo=Gc("deg"),Gi=Gc("%"),Ge=Gc("px"),pG=Gc("vh"),mG=Gc("vw"),Hx={...Gi,parse:e=>Gi.parse(e)/100,transform:e=>Gi.transform(e*100)},gG={borderWidth:Ge,borderTopWidth:Ge,borderRightWidth:Ge,borderBottomWidth:Ge,borderLeftWidth:Ge,borderRadius:Ge,radius:Ge,borderTopLeftRadius:Ge,borderTopRightRadius:Ge,borderBottomRightRadius:Ge,borderBottomLeftRadius:Ge,width:Ge,maxWidth:Ge,height:Ge,maxHeight:Ge,top:Ge,right:Ge,bottom:Ge,left:Ge,padding:Ge,paddingTop:Ge,paddingRight:Ge,paddingBottom:Ge,paddingLeft:Ge,margin:Ge,marginTop:Ge,marginRight:Ge,marginBottom:Ge,marginLeft:Ge,backgroundPositionX:Ge,backgroundPositionY:Ge},yG={rotate:Yo,rotateX:Yo,rotateY:Yo,rotateZ:Yo,scale:hf,scaleX:hf,scaleY:hf,scaleZ:hf,skew:Yo,skewX:Yo,skewY:Yo,distance:Ge,translateX:Ge,translateY:Ge,translateZ:Ge,x:Ge,y:Ge,z:Ge,perspective:Ge,transformPerspective:Ge,opacity:$c,originX:Hx,originY:Hx,originZ:Ge},Gx={...Gu,transform:Math.round},c0={...gG,...yG,zIndex:Gx,size:Ge,fillOpacity:$c,strokeOpacity:$c,numOctaves:Gx},vG={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bG=Hu.length;function $G(e,t,n){let r="",i=!0;for(let o=0;o<bG;o++){const a=Hu[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=f6(u,c0[a]);if(!c){i=!1;const f=vG[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function d0(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(gs.has(c)){a=!0;continue}else if(d6(c)){i[c]=d;continue}else{const f=f6(d,c0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=$G(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function qx(e,t,n){return typeof e=="string"?e:Ge.transform(t+n*e)}function xG(e,t,n){const r=qx(t,e.x,e.width),i=qx(n,e.y,e.height);return`${r} ${i}`}const wG={offset:"stroke-dashoffset",array:"stroke-dasharray"},DG={offset:"strokeDashoffset",array:"strokeDasharray"};function EG(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?wG:DG;e[o.offset]=Ge.transform(-r);const a=Ge.transform(t),u=Ge.transform(n);e[o.array]=`${a} ${u}`}function f0(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(d0(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=xG(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&EG(m,a,u,c,!1)}const h0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),h6=()=>({...h0(),attrs:{}}),p0=e=>typeof e=="string"&&e.toLowerCase()==="svg";function p6(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const m6=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 g6(e,t,n,r){p6(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(m6.has(i)?i:o0(i),t.attrs[i])}const bh={};function CG(e){Object.assign(bh,e)}function y6(e,{layout:t,layoutId:n}){return gs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!bh[e]||e==="opacity")}function m0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(In(i[a])||t.style&&In(t.style[a])||y6(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function v6(e,t,n){const r=m0(e,t,n);for(const i in e)if(In(e[i])||In(t[i])){const o=Hu.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function SG(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const Yx=["x","y","width","height","cx","cy","r"],TG={useVisualState:l6({scrapeMotionValuesFromProps:v6,createRenderState:h6,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let o=!!e.drag;if(!o){for(const u in i)if(gs.has(u)){o=!0;break}}if(!o)return;let a=!t;if(t)for(let u=0;u<Yx.length;u++){const c=Yx[u];e[c]!==t[c]&&(a=!0)}a&&(jt.read(()=>SG(n,r)),jt.render(()=>{f0(r,i,p0(n.tagName),e.transformTemplate),g6(n,r)}))}})},AG={useVisualState:l6({scrapeMotionValuesFromProps:m0,createRenderState:h0})};function b6(e,t,n){for(const r in t)!In(t[r])&&!y6(r,n)&&(e[r]=t[r])}function PG({transformTemplate:e},t){return b.useMemo(()=>{const n=h0();return d0(n,t,e),Object.assign({},n.vars,n.style)},[t])}function _G(e,t){const n=e.style||{},r={};return b6(r,n,e),Object.assign(r,PG(e,t)),r}function RG(e,t){const n={},r=_G(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}function OG(e,t,n,r){const i=b.useMemo(()=>{const o=h6();return f0(o,t,p0(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};b6(o,e.style,e),i.style={...o,...i.style}}return i}function MG(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(s0(n)?OG:RG)(r,o,a,n),d=qH(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>In(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function FG(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...s0(r)?TG:AG,preloadedFeatures:e,useRender:MG(i),createVisualElement:t,Component:r};return rG(a)}}function $6(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}function vp(e,t,n){const r=e.getProps();return u0(r,t,n!==void 0?n:r.custom,e)}const kG=n0(()=>window.ScrollTimeline!==void 0);class BG{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(kG()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].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")}}let IG=class extends BG{then(t,n){return Promise.all(this.animations).then(t).catch(n)}};function g0(e,t){return e?e[t]||e.default||e:void 0}const lv=2e4;function x6(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<lv;)t+=n,r=e.next(t);return t>=lv?1/0:t}function y0(e){return typeof e=="function"}function Zx(e,t){e.timeline=t,e.onfinish=null}const v0=e=>Array.isArray(e)&&typeof e[0]=="number",LG={linearEasing:void 0};function VG(e,t){const n=n0(e);return()=>{var r;return(r=LG[t])!==null&&r!==void 0?r:n()}}const $h=VG(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),w6=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(_u(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function D6(e){return!!(typeof e=="function"&&$h()||!e||typeof e=="string"&&(e in cv||$h())||v0(e)||Array.isArray(e)&&e.every(D6))}const Wl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,cv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Wl([0,.65,.55,1]),circOut:Wl([.55,0,1,.45]),backIn:Wl([.31,.01,.66,-.59]),backOut:Wl([.33,1.53,.69,.99])};function E6(e,t){if(e)return typeof e=="function"&&$h()?w6(e,t):v0(e)?Wl(e):Array.isArray(e)?e.map(n=>E6(n,t)||cv.easeOut):cv[e]}const pi={x:!1,y:!1};function C6(){return pi.x||pi.y}function NG(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function S6(e,t){const n=NG(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function Jx(e){return t=>{t.pointerType==="touch"||C6()||e(t)}}function jG(e,t,n={}){const[r,i,o]=S6(e,n),a=Jx(u=>{const{target:c}=u,d=t(u);if(typeof d!="function"||!c)return;const f=Jx(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}const T6=(e,t)=>t?e===t?!0:T6(e,t.parentElement):!1,b0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,KG=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function UG(e){return KG.has(e.tagName)||e.tabIndex!==-1}const Hl=new WeakSet;function Xx(e){return t=>{t.key==="Enter"&&e(t)}}function Rg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const zG=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=Xx(()=>{if(Hl.has(n))return;Rg(n,"down");const i=Xx(()=>{Rg(n,"up")}),o=()=>Rg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function Qx(e){return b0(e)&&!C6()}function WG(e,t,n={}){const[r,i,o]=S6(e,n),a=u=>{const c=u.currentTarget;if(!Qx(u)||Hl.has(c))return;Hl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!Qx(g)||!Hl.has(c))&&(Hl.delete(c),typeof d=="function"&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||T6(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{!UG(u)&&u.getAttribute("tabindex")===null&&(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>zG(d,i),i)}),o}function HG(e){return e==="x"||e==="y"?pi[e]?null:(pi[e]=!0,()=>{pi[e]=!1}):pi.x||pi.y?null:(pi.x=pi.y=!0,()=>{pi.x=pi.y=!1})}const A6=new Set(["width","height","top","left","right","bottom",...Hu]);let Bf;function GG(){Bf=void 0}const qi={now:()=>(Bf===void 0&&qi.set(Bn.isProcessing||KH.useManualTiming?Bn.timestamp:performance.now()),Bf),set:e=>{Bf=e,queueMicrotask(GG)}};function $0(e,t){e.indexOf(t)===-1&&e.push(t)}function x0(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function qG([...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,[o]=e.splice(t,1);e.splice(i,0,o)}return e}let w0=class{constructor(){this.subscriptions=[]}add(t){return $0(this.subscriptions,t),()=>x0(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 o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};function P6(e,t){return t?e*(1e3/t):0}const ew=30,YG=e=>!isNaN(parseFloat(e)),nc={current:void 0};let ZG=class{constructor(t,n={}){this.version="11.18.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=qi.now();this.updatedAt!==o&&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=qi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=YG(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 w0);const r=this.events[t].add(n);return t==="change"?()=>{r(),jt.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 nc.current&&nc.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=qi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>ew)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,ew);return P6(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 Ou(e,t){return new ZG(e,t)}function JG(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ou(n))}function XG(e,t){const n=vp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=lG(o[a]);JG(e,a,u)}}function QG(e){return!!(In(e)&&e.add)}function dv(e,t){const n=e.getValue("willChange");if(QG(n))return n.add(t)}function _6(e){return e.props[a6]}const R6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,eq=1e-7,tq=12;function nq(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=R6(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>eq&&++u<tq);return a}function qc(e,t,n,r){if(e===t&&n===r)return Er;const i=o=>nq(o,0,1,e,n);return o=>o===0||o===1?o:R6(i(o),t,r)}const O6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,M6=e=>t=>1-e(1-t),F6=qc(.33,1.53,.69,.99),D0=M6(F6),k6=O6(D0),B6=e=>(e*=2)<1?.5*D0(e):.5*(2-Math.pow(2,-10*(e-1))),E0=e=>1-Math.sin(Math.acos(e)),I6=M6(E0),L6=O6(E0),V6=e=>/^0[^.\s]+$/u.test(e);function rq(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||V6(e):!0}const rc=e=>Math.round(e*1e5)/1e5,C0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function iq(e){return e==null}const oq=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,S0=(e,t)=>n=>!!(typeof n=="string"&&oq.test(n)&&n.startsWith(e)||t&&!iq(n)&&Object.prototype.hasOwnProperty.call(n,t)),N6=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(C0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},aq=e=>So(0,255,e),Og={...Gu,transform:e=>Math.round(aq(e))},Ha={test:S0("rgb","red"),parse:N6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Og.transform(e)+", "+Og.transform(t)+", "+Og.transform(n)+", "+rc($c.transform(r))+")"};function sq(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 fv={test:S0("#"),parse:sq,transform:Ha.transform},iu={test:S0("hsl","hue"),parse:N6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gi.transform(rc(t))+", "+Gi.transform(rc(n))+", "+rc($c.transform(r))+")"},qn={test:e=>Ha.test(e)||fv.test(e)||iu.test(e),parse:e=>Ha.test(e)?Ha.parse(e):iu.test(e)?iu.parse(e):fv.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ha.transform(e):iu.transform(e)},uq=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function lq(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(C0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(uq))===null||n===void 0?void 0:n.length)||0)>0}const j6="number",K6="color",cq="var",dq="var(",tw="${}",fq=/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 xc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(fq,c=>(qn.test(c)?(r.color.push(o),i.push(K6),n.push(qn.parse(c))):c.startsWith(dq)?(r.var.push(o),i.push(cq),n.push(c)):(r.number.push(o),i.push(j6),n.push(parseFloat(c))),++o,tw)).split(tw);return{values:n,split:u,indexes:r,types:i}}function U6(e){return xc(e).values}function z6(e){const{split:t,types:n}=xc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===j6?o+=rc(i[a]):u===K6?o+=qn.transform(i[a]):o+=i[a]}return o}}const hq=e=>typeof e=="number"?0:e;function pq(e){const t=U6(e);return z6(e)(t.map(hq))}const fa={test:lq,parse:U6,createTransformer:z6,getAnimatableNone:pq},mq=new Set(["brightness","contrast","saturate","opacity"]);function gq(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(C0)||[];if(!r)return e;const i=n.replace(r,"");let o=mq.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const yq=/\b([a-z-]*)\(.*?\)/gu,hv={...fa,getAnimatableNone:e=>{const t=e.match(yq);return t?t.map(gq).join(" "):e}},vq={...c0,color:qn,backgroundColor:qn,outlineColor:qn,fill:qn,stroke:qn,borderColor:qn,borderTopColor:qn,borderRightColor:qn,borderBottomColor:qn,borderLeftColor:qn,filter:hv,WebkitFilter:hv},T0=e=>vq[e];function W6(e,t){let n=T0(e);return n!==hv&&(n=fa),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const bq=new Set(["auto","none","0"]);function $q(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!bq.has(o)&&xc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=W6(n,i)}const nw=e=>e===Gu||e===Ge,rw=(e,t)=>parseFloat(e.split(", ")[t]),iw=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return rw(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?rw(o[1],e):0}},xq=new Set(["x","y","z"]),wq=Hu.filter(e=>!xq.has(e));function Dq(e){const t=[];return wq.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Mu={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:iw(4,13),y:iw(5,14)};Mu.translateX=Mu.x;Mu.translateY=Mu.y;const Xa=new Set;let pv=!1,mv=!1;function H6(){if(mv){const e=Array.from(Xa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=Dq(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(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}mv=!1,pv=!1,Xa.forEach(e=>e.complete()),Xa.clear()}function G6(){Xa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mv=!0)})}function Eq(){G6(),H6()}let A0=class{constructor(t,n,r,i,o,a=!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=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xa.add(this),pv||(pv=!0,jt.read(G6),jt.resolveKeyframes(H6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}};const q6=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Cq=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Sq(e){const t=Cq.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const Tq=4;function Y6(e,t,n=1){Zi(n<=Tq,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=Sq(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return q6(a)?parseFloat(a):a}return l0(i)?Y6(i,t,n+1):i}const Z6=e=>t=>t.test(e),Aq={test:e=>e==="auto",parse:e=>e},J6=[Gu,Ge,Gi,Yo,mG,pG,Aq],ow=e=>J6.find(Z6(e));let X6=class extends A0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),l0(d))){const f=Y6(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!A6.has(r)||t.length!==2)return;const[i,o]=t,a=ow(i),u=ow(o);if(a!==u)if(nw(a)&&nw(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)rq(t[i])&&r.push(i);r.length&&$q(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=Mu[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 o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=Mu[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(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}};const aw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(fa.test(e)||e==="0")&&!e.startsWith("url("));function Pq(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 _q(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=aw(i,t),u=aw(o,t);return Wu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:Pq(e)||(n==="spring"||y0(n))&&r}const Rq=e=>e!==null;function bp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(Rq),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const Oq=40;let Q6=class{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=qi.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>Oq?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&Eq(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=qi.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!_q(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(bp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},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 qt=(e,t,n)=>e+(t-e)*n;function Mg(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 Mq({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Mg(c,u,e+1/3),o=Mg(c,u,e),a=Mg(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function xh(e,t){return n=>n>0?t:e}const Fg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Fq=[fv,Ha,iu],kq=e=>Fq.find(t=>t.test(e));function sw(e){const t=kq(e);if(Wu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===iu&&(n=Mq(n)),n}const uw=(e,t)=>{const n=sw(e),r=sw(t);if(!n||!r)return xh(e,t);const i={...n};return o=>(i.red=Fg(n.red,r.red,o),i.green=Fg(n.green,r.green,o),i.blue=Fg(n.blue,r.blue,o),i.alpha=qt(n.alpha,r.alpha,o),Ha.transform(i))},Bq=(e,t)=>n=>t(e(n)),Yc=(...e)=>e.reduce(Bq),gv=new Set(["none","hidden"]);function Iq(e,t){return gv.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Lq(e,t){return n=>qt(e,t,n)}function P0(e){return typeof e=="number"?Lq:typeof e=="string"?l0(e)?xh:qn.test(e)?uw:jq:Array.isArray(e)?e7:typeof e=="object"?qn.test(e)?uw:Vq:xh}function e7(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>P0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function Vq(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=P0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function Nq(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const jq=(e,t)=>{const n=fa.createTransformer(t),r=xc(e),i=xc(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?gv.has(e)&&!i.values.length||gv.has(t)&&!r.values.length?Iq(e,t):Yc(e7(Nq(r,i),i.values),n):(Wu(!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.`),xh(e,t))};function t7(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?qt(e,t,n):P0(e)(e,t)}const Kq=5;function n7(e,t,n){const r=Math.max(t-Kq,0);return P6(n-e(r),t-r)}const Jt={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},lw=.001;function Uq({duration:e=Jt.duration,bounce:t=Jt.bounce,velocity:n=Jt.velocity,mass:r=Jt.mass}){let i,o;Wu(e<=Hi(Jt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=So(Jt.minDamping,Jt.maxDamping,a),e=So(Jt.minDuration,Jt.maxDuration,xo(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=yv(d,a),v=Math.exp(-h);return lw-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=yv(Math.pow(d,2),a);return(-i(d)+lw>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=Wq(i,o,u);if(e=Hi(e),isNaN(c))return{stiffness:Jt.stiffness,damping:Jt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const zq=12;function Wq(e,t,n){let r=n;for(let i=1;i<zq;i++)r=r-e(r)/t(r);return r}function yv(e,t){return e*Math.sqrt(1-t*t)}const Hq=["duration","bounce"],Gq=["stiffness","damping","mass"];function cw(e,t){return t.some(n=>e[n]!==void 0)}function qq(e){let t={velocity:Jt.velocity,stiffness:Jt.stiffness,damping:Jt.damping,mass:Jt.mass,isResolvedFromDuration:!1,...e};if(!cw(e,Gq)&&cw(e,Hq))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*So(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Jt.mass,stiffness:i,damping:o}}else{const n=Uq(e);t={...t,...n,mass:Jt.mass},t.isResolvedFromDuration=!0}return t}function r7(e=Jt.visualDuration,t=Jt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=qq({...n,velocity:-xo(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=xo(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Jt.restSpeed.granular:Jt.restSpeed.default),i||(i=y?Jt.restDelta.granular:Jt.restDelta.default);let D;if($<1){const E=yv(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?Hi(v):n7(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(x6(P),lv),T=w6(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function dw({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=r7({keyframes:[m.value,v(m.value)],velocity:n7(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const Yq=qc(.42,0,1,1),Zq=qc(0,0,.58,1),i7=qc(.42,0,.58,1),Jq=e=>Array.isArray(e)&&typeof e[0]!="number",fw={linear:Er,easeIn:Yq,easeInOut:i7,easeOut:Zq,circIn:E0,circInOut:L6,circOut:I6,backIn:D0,backInOut:k6,backOut:F6,anticipate:B6},hw=e=>{if(v0(e)){Zi(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return qc(t,n,r,i)}else if(typeof e=="string")return Zi(fw[e]!==void 0,`Invalid easing type '${e}'`),fw[e];return e};function Xq(e,t,n){const r=[],i=n||t7,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||Er:t;u=Yc(c,u)}r.push(u)}return r}function o7(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(Zi(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=Xq(t,r,i),c=u.length,d=f=>{if(a&&f<e[0])return t[0];let h=0;if(c>1)for(;h<e.length-2&&!(f<e[h+1]);h++);const m=_u(e[h],e[h+1],f);return u[h](m)};return n?f=>d(So(e[0],e[o-1],f)):d}function Qq(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=_u(0,t,r);e.push(qt(n,1,i))}}function eY(e){const t=[0];return Qq(t,e.length-1),t}function tY(e,t){return e.map(n=>n*t)}function nY(e,t){return e.map(()=>t||i7).splice(0,e.length-1)}function wh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=Jq(r)?r.map(hw):hw(r),o={done:!1,value:t[0]},a=tY(n&&n.length===t.length?n:eY(t),e),u=o7(a,t,{ease:Array.isArray(i)?i:nY(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const rY=e=>{const t=({timestamp:n})=>e(n);return{start:()=>jt.update(t,!0),stop:()=>Co(t),now:()=>Bn.isProcessing?Bn.timestamp:qi.now()}},iY={decay:dw,inertia:dw,tween:wh,keyframes:wh,spring:r7},oY=e=>e/100;let _0=class extends Q6{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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||A0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,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:o,velocity:a=0}=this.options,u=y0(n)?n:iY[n]||wh;let c,d;u!==wh&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&Zi(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Yc(oY,t7(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=x6(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,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:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/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 x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=So(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=bp(c,this.options,i)),C&&C(E.value),k&&this.finish(),E}get duration(){const{resolved:t}=this;return t?xo(t.calculatedDuration):0}get time(){return xo(this.currentTime)}set time(t){t=Hi(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=xo(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=rY,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),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 aY=new Set(["opacity","clipPath","filter","transform"]);function sY(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=E6(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}const uY=n0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Dh=10,lY=2e4;function cY(e){return y0(e.type)||e.type==="spring"||!D6(e.ease)}function dY(e,t){const n=new _0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<lY;)r=n.sample(o),i.push(r.value),o+=Dh;return{times:void 0,keyframes:i,duration:o-Dh,ease:"linear"}}const a7={anticipate:B6,backInOut:k6,circInOut:L6};function fY(e){return e in a7}let pw=class extends Q6{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new X6(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&$h()&&fY(a)&&(a=a7[a]),cY(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=dY(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=sY(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(Zx(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(bp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return xo(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return xo(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Hi(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 Er;const{animation:r}=n;Zx(r,t)}return Er}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:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new _0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=Hi(this.time);d.setWithVelocity(v.sample($-Dh).value,v.sample($).value,Dh)}const{onStop:c}=this.options;c&&c(),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:o,damping:a,type:u}=t;return uY()&&r&&aY.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}};const hY={type:"spring",stiffness:500,damping:25,restSpeed:10},pY=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mY={type:"keyframes",duration:.8},gY={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},yY=(e,{keyframes:t})=>t.length>2?mY:gs.has(e)?e.startsWith("scale")?pY(t[1]):hY:gY;function vY({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const R0=(e,t,n,r={},i,o)=>a=>{const u=g0(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Hi(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};vY(u)||(f={...f,...yY(e,f)}),f.duration&&(f.duration=Hi(f.duration)),f.repeatDelay&&(f.repeatDelay=Hi(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=bp(f.keyframes,u);if(m!==void 0)return jt.update(()=>{f.onUpdate(m),f.onComplete()}),new IG([])}return!o&&pw.supports(f)?new pw(f):new _0(f)};function bY({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function s7(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&bY(f,h))continue;const v={delay:n,...g0(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=_6(e);if(x){const y=window.MotionHandoffAnimation(x,h,jt);y!==null&&(v.startTime=y,$=!0)}}dv(e,h),m.start(R0(h,m,g,e.shouldReduceMotion&&A6.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{jt.update(()=>{u&&XG(e,u)})}),d}function vv(e,t,n={}){var r;const i=vp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(s7(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return $Y(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function $Y(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort(xY).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(vv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function xY(e,t){return e.sortNodePosition(t)}function wY(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>vv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=vv(e,t,n);else{const i=typeof t=="function"?vp(e,t,n.custom):t;r=Promise.all(s7(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const DY=i0.length;function u7(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?u7(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<DY;n++){const r=i0[n],i=e.props[r];(bc(i)||i===!1)&&(t[r]=i)}return t}const EY=[...r0].reverse(),CY=r0.length;function SY(e){return t=>Promise.all(t.map(({animation:n,options:r})=>wY(e,n,r)))}function TY(e){let t=SY(e),n=mw(),r=!0;const i=c=>(d,f)=>{var h;const m=vp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=u7(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<CY;C++){const x=EY[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=bc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||gp(D)||typeof D=="boolean")continue;const k=AY(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;uv(M)&&uv(Y)?V=!$6(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=mw(),r=!0}}}function AY(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!$6(t,e):!1}function Fa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mw(){return{animate:Fa(!0),whileInView:Fa(),whileHover:Fa(),whileTap:Fa(),whileDrag:Fa(),whileFocus:Fa(),exit:Fa()}}let ya=class{constructor(t){this.isMounted=!1,this.node=t}update(){}},PY=class extends ya{constructor(t){super(t),t.animationState||(t.animationState=TY(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();gp(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)}},_Y=0,RY=class extends ya{constructor(){super(...arguments),this.id=_Y++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}};const OY={animation:{Feature:PY},exit:{Feature:RY}};function wc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Zc(e){return{point:{x:e.pageX,y:e.pageY}}}const MY=e=>t=>b0(t)&&e(t,Zc(t));function ic(e,t,n,r){return wc(e,t,MY(n),r)}const gw=(e,t)=>Math.abs(e-t);function FY(e,t){const n=gw(e.x,t.x),r=gw(e.y,t.y);return Math.sqrt(n**2+r**2)}class l7{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:o=!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=Bg(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,g=FY(h.offset,{x:0,y:0})>=3;if(!m&&!g)return;const{point:v}=h,{timestamp:$}=Bn;this.history.push({...v,timestamp:$});const{onStart:C,onMove:x}=this.handlers;m||(C&&C(this.lastMoveEvent,h),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,h)},this.handlePointerMove=(h,m)=>{this.lastMoveEvent=h,this.lastMoveEventInfo=kg(m,this.transformPagePoint),jt.update(this.updatePoint,!0)},this.handlePointerUp=(h,m)=>{this.end();const{onEnd:g,onSessionEnd:v,resumeAnimation:$}=this.handlers;if(this.dragSnapToOrigin&&$&&$(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const C=Bg(h.type==="pointercancel"?this.lastMoveEventInfo:kg(m,this.transformPagePoint),this.history);this.startEvent&&g&&g(h,C),v&&v(h,C)},!b0(t))return;this.dragSnapToOrigin=o,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const a=Zc(t),u=kg(a,this.transformPagePoint),{point:c}=u,{timestamp:d}=Bn;this.history=[{...c,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,Bg(u,this.history)),this.removeListeners=Yc(ic(this.contextWindow,"pointermove",this.handlePointerMove),ic(this.contextWindow,"pointerup",this.handlePointerUp),ic(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Co(this.updatePoint)}}function kg(e,t){return t?{point:t(e.point)}:e}function yw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Bg({point:e},t){return{point:e,delta:yw(e,c7(t)),offset:yw(e,kY(t)),velocity:BY(t,.1)}}function kY(e){return e[0]}function c7(e){return e[e.length-1]}function BY(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=c7(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Hi(t)));)n--;if(!r)return{x:0,y:0};const o=xo(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};const a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const d7=1e-4,IY=1-d7,LY=1+d7,f7=.01,VY=0-f7,NY=0+f7;function kr(e){return e.max-e.min}function jY(e,t,n){return Math.abs(e-t)<=n}function vw(e,t,n,r=.5){e.origin=r,e.originPoint=qt(t.min,t.max,e.origin),e.scale=kr(n)/kr(t),e.translate=qt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=IY&&e.scale<=LY||isNaN(e.scale))&&(e.scale=1),(e.translate>=VY&&e.translate<=NY||isNaN(e.translate))&&(e.translate=0)}function oc(e,t,n,r){vw(e.x,t.x,n.x,r?r.originX:void 0),vw(e.y,t.y,n.y,r?r.originY:void 0)}function bw(e,t,n){e.min=n.min+t.min,e.max=e.min+kr(t)}function KY(e,t,n){bw(e.x,t.x,n.x),bw(e.y,t.y,n.y)}function $w(e,t,n){e.min=t.min-n.min,e.max=e.min+kr(t)}function ac(e,t,n){$w(e.x,t.x,n.x),$w(e.y,t.y,n.y)}function UY(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qt(n,e,r.max):Math.min(e,n)),e}function xw(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 zY(e,{top:t,left:n,bottom:r,right:i}){return{x:xw(e.x,n,i),y:xw(e.y,t,r)}}function ww(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 WY(e,t){return{x:ww(e.x,t.x),y:ww(e.y,t.y)}}function HY(e,t){let n=.5;const r=kr(e),i=kr(t);return i>r?n=_u(t.min,t.max-r,e.min):r>i&&(n=_u(e.min,e.max-i,t.min)),So(0,1,n)}function GY(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 bv=.35;function qY(e=bv){return e===!1?e=0:e===!0&&(e=bv),{x:Dw(e,"left","right"),y:Dw(e,"top","bottom")}}function Dw(e,t,n){return{min:Ew(e,t),max:Ew(e,n)}}function Ew(e,t){return typeof e=="number"?e:e[t]||0}const Cw=()=>({translate:0,scale:1,origin:0,originPoint:0}),ou=()=>({x:Cw(),y:Cw()}),Sw=()=>({min:0,max:0}),cn=()=>({x:Sw(),y:Sw()});function Qr(e){return[e("x"),e("y")]}function h7({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function YY({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ZY(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 Ig(e){return e===void 0||e===1}function $v({scale:e,scaleX:t,scaleY:n}){return!Ig(e)||!Ig(t)||!Ig(n)}function Ba(e){return $v(e)||p7(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function p7(e){return Tw(e.x)||Tw(e.y)}function Tw(e){return e&&e!=="0%"}function Eh(e,t,n){const r=e-n,i=t*r;return n+i}function Aw(e,t,n,r,i){return i!==void 0&&(e=Eh(e,i,r)),Eh(e,n,r)+t}function xv(e,t=0,n=1,r,i){e.min=Aw(e.min,t,n,r,i),e.max=Aw(e.max,t,n,r,i)}function m7(e,{x:t,y:n}){xv(e.x,t.translate,t.scale,t.originPoint),xv(e.y,n.translate,n.scale,n.originPoint)}const Pw=.999999999999,_w=1.0000000000001;function JY(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let o,a;for(let u=0;u<i;u++){o=n[u],a=o.projectionDelta;const{visualElement:c}=o.options;c&&c.props.style&&c.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&su(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,m7(e,a)),r&&Ba(o.latestValues)&&su(e,o.latestValues))}t.x<_w&&t.x>Pw&&(t.x=1),t.y<_w&&t.y>Pw&&(t.y=1)}function au(e,t){e.min=e.min+t,e.max=e.max+t}function Rw(e,t,n,r,i=.5){const o=qt(e.min,e.max,i);xv(e,t,n,o,r)}function su(e,t){Rw(e.x,t.x,t.scaleX,t.scale,t.originX),Rw(e.y,t.y,t.scaleY,t.scale,t.originY)}function g7(e,t){return h7(ZY(e.getBoundingClientRect(),t))}function XY(e,t,n){const r=g7(e,n),{scroll:i}=t;return i&&(au(r.x,i.offset.x),au(r.y,i.offset.y)),r}const y7=({current:e})=>e?e.ownerDocument.defaultView:null,QY=new WeakMap;class eZ{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=cn(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:h}=this.getProps();h?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Zc(f).point)},o=(f,h)=>{const{drag:m,dragPropagation:g,onDragStart:v}=this.getProps();if(m&&!g&&(this.openDragLock&&this.openDragLock(),this.openDragLock=HG(m),!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),Qr(C=>{let x=this.getAxisMotionValue(C).get()||0;if(Gi.test(x)){const{projection:y}=this.visualElement;if(y&&y.layout){const D=y.layout.layoutBox[C];D&&(x=kr(D)*(parseFloat(x)/100))}}this.originPoint[C]=x}),v&&jt.postRender(()=>v(f,h)),dv(this.visualElement,"transform");const{animationState:$}=this.visualElement;$&&$.setActive("whileDrag",!0)},a=(f,h)=>{const{dragPropagation:m,dragDirectionLock:g,onDirectionLock:v,onDrag:$}=this.getProps();if(!m&&!this.openDragLock)return;const{offset:C}=h;if(g&&this.currentDirection===null){this.currentDirection=tZ(C),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",h.point,C),this.updateAxis("y",h.point,C),this.visualElement.render(),$&&$(f,h)},u=(f,h)=>this.stop(f,h),c=()=>Qr(f=>{var h;return this.getAnimationState(f)==="paused"&&((h=this.getAxisMotionValue(f).animation)===null||h===void 0?void 0:h.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new l7(t,{onSessionStart:i,onStart:o,onMove:a,onSessionEnd:u,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,contextWindow:y7(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:o}=this.getProps();o&&jt.postRender(()=>o(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||!pf(t,i,this.currentDirection))return;const o=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=UY(a,this.constraints[t],this.elastic[t])),o.set(a)}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,o=this.constraints;n&&ru(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=zY(i.layoutBox,n):this.constraints=!1,this.elastic=qY(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Qr(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=GY(i.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ru(t))return!1;const r=t.current;Zi(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 o=XY(r,i.root,this.visualElement.getTransformPagePoint());let a=WY(i.layout.layoutBox,o);if(n){const u=n(YY(a));this.hasMutatedConstraints=!!u,u&&(a=h7(u))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:o,dragSnapToOrigin:a,onDragTransitionEnd:u}=this.getProps(),c=this.constraints||{},d=Qr(f=>{if(!pf(f,n,this.currentDirection))return;let h=c[f]||{};a&&(h={min:0,max:0});const m=i?200:1e6,g=i?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:m,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...o,...h};return this.startAxisValueAnimation(f,v)});return Promise.all(d).then(u)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return dv(this.visualElement,t),r.start(R0(t,r,0,n,this.visualElement,!1))}stopAnimation(){Qr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Qr(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){Qr(n=>{const{drag:r}=this.getProps();if(!pf(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,o=this.getAxisMotionValue(n);if(i&&i.layout){const{min:a,max:u}=i.layout.layoutBox[n];o.set(t[n]-qt(a,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ru(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Qr(a=>{const u=this.getAxisMotionValue(a);if(u&&this.constraints!==!1){const c=u.get();i[a]=HY({min:c,max:c},this.constraints[a])}});const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Qr(a=>{if(!pf(a,t,null))return;const u=this.getAxisMotionValue(a),{min:c,max:d}=this.constraints[a];u.set(qt(c,d,i[a]))})}addListeners(){if(!this.visualElement.current)return;QY.set(this.visualElement,this);const t=this.visualElement.current,n=ic(t,"pointerdown",c=>{const{drag:d,dragListener:f=!0}=this.getProps();d&&f&&this.start(c)}),r=()=>{const{dragConstraints:c}=this.getProps();ru(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,o=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),jt.read(r);const a=wc(window,"resize",()=>this.scalePositionWithinConstraints()),u=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Qr(f=>{const h=this.getAxisMotionValue(f);h&&(this.originPoint[f]+=c[f].translate,h.set(h.get()+c[f].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:o=!1,dragElastic:a=bv,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:o,dragElastic:a,dragMomentum:u}}}function pf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function tZ(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class nZ extends ya{constructor(t){super(t),this.removeGroupControls=Er,this.removeListeners=Er,this.controls=new eZ(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Er}unmount(){this.removeGroupControls(),this.removeListeners()}}const Ow=e=>(t,n)=>{e&&jt.postRender(()=>e(t,n))};class rZ extends ya{constructor(){super(...arguments),this.removePointerDownListener=Er}onPointerDown(t){this.session=new l7(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:y7(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ow(t),onStart:Ow(n),onMove:r,onEnd:(o,a)=>{delete this.session,i&&jt.postRender(()=>i(o,a))}}}mount(){this.removePointerDownListener=ic(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 If={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Mw(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ml={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ge.test(e))e=parseFloat(e);else return e;const n=Mw(e,t.target.x),r=Mw(e,t.target.y);return`${n}% ${r}%`}},iZ={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=fa.parse(e);if(i.length>5)return r;const o=fa.createTransformer(e),a=typeof i[0]!="number"?1:0,u=n.x.scale*t.x,c=n.y.scale*t.y;i[0+a]/=u,i[1+a]/=c;const d=qt(u,c,.5);return typeof i[2+a]=="number"&&(i[2+a]/=d),typeof i[3+a]=="number"&&(i[3+a]/=d),o(i)}};class oZ extends b.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:o}=t;CG(aZ),o&&(n.group&&n.group.add(o),r&&r.register&&i&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",()=>{this.safeToRemove()}),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),If.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:o}=this.props,a=r.projection;return a&&(a.isPresent=o,i||t.layoutDependency!==n||n===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?a.promote():a.relegate()||jt.postRender(()=>{const u=a.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),a0.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 v7(e){const[t,n]=jH(),r=b.useContext(e6);return Do.jsx(oZ,{...e,layoutGroup:r,switchLayoutGroup:b.useContext(s6),isPresent:t,safeToRemove:n})}const aZ={borderRadius:{...Ml,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ml,borderTopRightRadius:Ml,borderBottomLeftRadius:Ml,borderBottomRightRadius:Ml,boxShadow:iZ};function sZ(e,t,n){const r=In(e)?e:Ou(e);return r.start(R0("",r,t,n)),r.animation}function uZ(e){return e instanceof SVGElement&&e.tagName!=="svg"}const lZ=(e,t)=>e.depth-t.depth;class cZ{constructor(){this.children=[],this.isDirty=!1}add(t){$0(this.children,t),this.isDirty=!0}remove(t){x0(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(lZ),this.isDirty=!1,this.children.forEach(t)}}function dZ(e,t){const n=qi.now(),r=({timestamp:i})=>{const o=i-n;o>=t&&(Co(r),e(o-t))};return jt.read(r,!0),()=>Co(r)}const b7=["TopLeft","TopRight","BottomLeft","BottomRight"],fZ=b7.length,Fw=e=>typeof e=="string"?parseFloat(e):e,kw=e=>typeof e=="number"||Ge.test(e);function hZ(e,t,n,r,i,o){i?(e.opacity=qt(0,n.opacity!==void 0?n.opacity:1,pZ(r)),e.opacityExit=qt(t.opacity!==void 0?t.opacity:1,0,mZ(r))):o&&(e.opacity=qt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let a=0;a<fZ;a++){const u=`border${b7[a]}Radius`;let c=Bw(t,u),d=Bw(n,u);if(c===void 0&&d===void 0)continue;c||(c=0),d||(d=0),c===0||d===0||kw(c)===kw(d)?(e[u]=Math.max(qt(Fw(c),Fw(d),r),0),(Gi.test(d)||Gi.test(c))&&(e[u]+="%")):e[u]=d}(t.rotate||n.rotate)&&(e.rotate=qt(t.rotate||0,n.rotate||0,r))}function Bw(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const pZ=$7(0,.5,I6),mZ=$7(.5,.95,Er);function $7(e,t,n){return r=>r<e?0:r>t?1:n(_u(e,t,r))}function Iw(e,t){e.min=t.min,e.max=t.max}function Jr(e,t){Iw(e.x,t.x),Iw(e.y,t.y)}function Lw(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function Vw(e,t,n,r,i){return e-=t,e=Eh(e,1/n,r),i!==void 0&&(e=Eh(e,1/i,r)),e}function gZ(e,t=0,n=1,r=.5,i,o=e,a=e){if(Gi.test(t)&&(t=parseFloat(t),t=qt(a.min,a.max,t/100)-a.min),typeof t!="number")return;let u=qt(o.min,o.max,r);e===o&&(u-=t),e.min=Vw(e.min,t,n,u,i),e.max=Vw(e.max,t,n,u,i)}function Nw(e,t,[n,r,i],o,a){gZ(e,t[n],t[r],t[i],t.scale,o,a)}const yZ=["x","scaleX","originX"],vZ=["y","scaleY","originY"];function jw(e,t,n,r){Nw(e.x,t,yZ,n?n.x:void 0,r?r.x:void 0),Nw(e.y,t,vZ,n?n.y:void 0,r?r.y:void 0)}function Kw(e){return e.translate===0&&e.scale===1}function x7(e){return Kw(e.x)&&Kw(e.y)}function Uw(e,t){return e.min===t.min&&e.max===t.max}function bZ(e,t){return Uw(e.x,t.x)&&Uw(e.y,t.y)}function zw(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function w7(e,t){return zw(e.x,t.x)&&zw(e.y,t.y)}function Ww(e){return kr(e.x)/kr(e.y)}function Hw(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class $Z{constructor(){this.members=[]}add(t){$0(this.members,t),t.scheduleRender()}remove(t){if(x0(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 o=this.members[i];if(o.isPresent!==!1){r=o;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 xZ(e,t,n){let r="";const i=e.x.translate/t.x,o=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((i||o||a)&&(r=`translate3d(${i}px, ${o}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:f,rotateX:h,rotateY:m,skewX:g,skewY:v}=n;d&&(r=`perspective(${d}px) ${r}`),f&&(r+=`rotate(${f}deg) `),h&&(r+=`rotateX(${h}deg) `),m&&(r+=`rotateY(${m}deg) `),g&&(r+=`skewX(${g}deg) `),v&&(r+=`skewY(${v}deg) `)}const u=e.x.scale*t.x,c=e.y.scale*t.y;return(u!==1||c!==1)&&(r+=`scale(${u}, ${c})`),r||"none"}const Ia={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Gl=typeof window<"u"&&window.MotionDebug!==void 0,Lg=["","X","Y","Z"],wZ={visibility:"hidden"},Gw=1e3;let DZ=0;function Vg(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function D7(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=_6(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:o}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",jt,!(i||o))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&D7(r)}function E7({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(a={},u=t==null?void 0:t()){this.id=DZ++,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,Gl&&(Ia.totalNodes=Ia.resolvedTargetDeltas=Ia.recalculatedProjection=0),this.nodes.forEach(SZ),this.nodes.forEach(RZ),this.nodes.forEach(OZ),this.nodes.forEach(TZ),Gl&&window.MotionDebug.record(Ia)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,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 c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new cZ)}addEventListener(a,u){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new w0),this.eventHandlers.get(a).add(u)}notifyListeners(a,...u){const c=this.eventHandlers.get(a);c&&c.notify(...u)}hasListeners(a){return this.eventHandlers.has(a)}mount(a,u=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=uZ(a),this.instance=a;const{layoutId:c,layout:d,visualElement:f}=this.options;if(f&&!f.current&&f.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),u&&(d||c)&&(this.isLayoutDirty=!0),e){let h;const m=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,h&&h(),h=dZ(m,250),If.hasAnimatedSinceResize&&(If.hasAnimatedSinceResize=!1,this.nodes.forEach(Yw))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&f&&(c||d)&&this.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m,hasRelativeTargetChanged:g,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const $=this.options.transition||f.getDefaultTransition()||IZ,{onLayoutAnimationStart:C,onLayoutAnimationComplete:x}=f.getProps(),y=!this.targetLayout||!w7(this.targetLayout,v)||g,D=!m&&g;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||D||m&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(h,D);const P={...g0($,"layout"),onPlay:C,onComplete:x};(f.shouldReduceMotion||this.options.layoutRoot)&&(P.delay=0,P.type=!1),this.startAnimation(P)}else m||Yw(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Co(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(MZ),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&D7(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const h=this.path[f];h.shouldResetTransform=!0,h.updateScroll("snapshot"),h.options.layoutRoot&&h.willUpdate(!1)}const{layoutId:u,layout:c}=this.options;if(u===void 0&&!c)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qw);return}this.isUpdating||this.nodes.forEach(PZ),this.isUpdating=!1,this.nodes.forEach(_Z),this.nodes.forEach(EZ),this.nodes.forEach(CZ),this.clearAllSnapshots();const u=qi.now();Bn.delta=So(0,1e3/60,u-Bn.timestamp),Bn.timestamp=u,Bn.isProcessing=!0,_g.update.process(Bn),_g.preRender.process(Bn),_g.render.process(Bn),Bn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,a0.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(AZ),this.sharedNodes.forEach(FZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let c=0;c<this.path.length;c++)this.path[c].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutCorrected=cn(),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,a?a.layoutBox:void 0)}updateScroll(a="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(u=!1),u){const c=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:c,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:c}}}resetTransform(){if(!i)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!x7(this.projectionDelta),c=this.getTransformTemplate(),d=c?c(this.latestValues,""):void 0,f=d!==this.prevTransformTemplateValue;a&&(u||Ba(this.latestValues)||f)&&(i(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const u=this.measurePageBox();let c=this.removeElementScroll(u);return a&&(c=this.removeTransform(c)),LZ(c),{animationId:this.root.animationId,measuredBox:u,layoutBox:c,latestValues:{},source:this.id}}measurePageBox(){var a;const{visualElement:u}=this.options;if(!u)return cn();const c=u.measureViewportBox();if(!(((a=this.scroll)===null||a===void 0?void 0:a.wasRoot)||this.path.some(VZ))){const{scroll:f}=this.root;f&&(au(c.x,f.offset.x),au(c.y,f.offset.y))}return c}removeElementScroll(a){var u;const c=cn();if(Jr(c,a),!((u=this.scroll)===null||u===void 0)&&u.wasRoot)return c;for(let d=0;d<this.path.length;d++){const f=this.path[d],{scroll:h,options:m}=f;f!==this.root&&h&&m.layoutScroll&&(h.wasRoot&&Jr(c,a),au(c.x,h.offset.x),au(c.y,h.offset.y))}return c}applyTransform(a,u=!1){const c=cn();Jr(c,a);for(let d=0;d<this.path.length;d++){const f=this.path[d];!u&&f.options.layoutScroll&&f.scroll&&f!==f.root&&su(c,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),Ba(f.latestValues)&&su(c,f.latestValues)}return Ba(this.latestValues)&&su(c,this.latestValues),c}removeTransform(a){const u=cn();Jr(u,a);for(let c=0;c<this.path.length;c++){const d=this.path[c];if(!d.instance||!Ba(d.latestValues))continue;$v(d.latestValues)&&d.updateSnapshot();const f=cn(),h=d.measurePageBox();Jr(f,h),jw(u,d.latestValues,d.snapshot?d.snapshot.layoutBox:void 0,f)}return Ba(this.latestValues)&&jw(u,this.latestValues),u}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.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!==Bn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var u;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const d=!!this.resumingFrom||this!==c;if(!(a||d&&this.isSharedProjectionDirty||this.isProjectionDirty||!((u=this.parent)===null||u===void 0)&&u.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:h,layoutId:m}=this.options;if(!(!this.layout||!(h||m))){if(this.resolvedRelativeTargetAt=Bn.timestamp,!this.targetDelta&&!this.relativeTarget){const g=this.getClosestProjectingParent();g&&g.layout&&this.animationProgress!==1?(this.relativeParent=g,this.forceRelativeParentToResolveTarget(),this.relativeTarget=cn(),this.relativeTargetOrigin=cn(),ac(this.relativeTargetOrigin,this.layout.layoutBox,g.layout.layoutBox),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=cn(),this.targetWithTransforms=cn()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),KY(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jr(this.target,this.layout.layoutBox),m7(this.target,this.targetDelta)):Jr(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=cn(),this.relativeTargetOrigin=cn(),ac(this.relativeTargetOrigin,this.target,g.target),Jr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Gl&&Ia.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||$v(this.parent.latestValues)||p7(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 a;const u=this.getLead(),c=!!this.resumingFrom||this!==u;let d=!0;if((this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty)&&(d=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(d=!1),this.resolvedRelativeTargetAt===Bn.timestamp&&(d=!1),d)return;const{layout:f,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||!(f||h))return;Jr(this.layoutCorrected,this.layout.layoutBox);const m=this.treeScale.x,g=this.treeScale.y;JY(this.layoutCorrected,this.treeScale,this.path,c),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=cn());const{target:v}=u;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Lw(this.prevProjectionDelta.x,this.projectionDelta.x),Lw(this.prevProjectionDelta.y,this.projectionDelta.y)),oc(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==m||this.treeScale.y!==g||!Hw(this.projectionDelta.x,this.prevProjectionDelta.x)||!Hw(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),Gl&&Ia.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var u;if((u=this.options.visualElement)===null||u===void 0||u.scheduleRender(),a){const c=this.getStack();c&&c.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ou(),this.projectionDelta=ou(),this.projectionDeltaWithTransform=ou()}setAnimationOrigin(a,u=!1){const c=this.snapshot,d=c?c.latestValues:{},f={...this.latestValues},h=ou();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const m=cn(),g=c?c.source:void 0,v=this.layout?this.layout.source:void 0,$=g!==v,C=this.getStack(),x=!C||C.members.length<=1,y=!!($&&!x&&this.options.crossfade===!0&&!this.path.some(BZ));this.animationProgress=0;let D;this.mixTargetDelta=P=>{const E=P/1e3;Zw(h.x,a.x,E),Zw(h.y,a.y,E),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ac(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),kZ(this.relativeTarget,this.relativeTargetOrigin,m,E),D&&bZ(this.relativeTarget,D)&&(this.isProjectionDirty=!1),D||(D=cn()),Jr(D,this.relativeTarget)),$&&(this.animationValues=f,hZ(f,d,this.latestValues,E,y,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=E},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Co(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jt.update(()=>{If.hasAnimatedSinceResize=!0,this.currentAnimation=sZ(0,Gw,{...a,onUpdate:u=>{this.mixTargetDelta(u),a.onUpdate&&a.onUpdate(u)},onComplete:()=>{a.onComplete&&a.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 a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Gw),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:u,target:c,layout:d,latestValues:f}=a;if(!(!u||!c||!d)){if(this!==a&&this.layout&&d&&C7(this.options.animationType,this.layout.layoutBox,d.layoutBox)){c=this.target||cn();const h=kr(this.layout.layoutBox.x);c.x.min=a.target.x.min,c.x.max=c.x.min+h;const m=kr(this.layout.layoutBox.y);c.y.min=a.target.y.min,c.y.max=c.y.min+m}Jr(u,c),su(u,f),oc(this.projectionDeltaWithTransform,this.layoutCorrected,u,f)}}registerSharedNode(a,u){this.sharedNodes.has(a)||this.sharedNodes.set(a,new $Z),this.sharedNodes.get(a).add(u);const d=u.options.initialPromotionConfig;u.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(u):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var a;const{layoutId:u}=this.options;return u?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:u}=this.options;return u?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:u,preserveFollowOpacity:c}={}){const d=this.getStack();d&&d.promote(this,c),a&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let u=!1;const{latestValues:c}=a;if((c.z||c.rotate||c.rotateX||c.rotateY||c.rotateZ||c.skewX||c.skewY)&&(u=!0),!u)return;const d={};c.z&&Vg("z",a,d,this.animationValues);for(let f=0;f<Lg.length;f++)Vg(`rotate${Lg[f]}`,a,d,this.animationValues),Vg(`skew${Lg[f]}`,a,d,this.animationValues);a.render();for(const f in d)a.setStaticValue(f,d[f]),this.animationValues&&(this.animationValues[f]=d[f]);a.scheduleRender()}getProjectionStyles(a){var u,c;if(!this.instance||this.isSVG)return;if(!this.isVisible)return wZ;const d={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,d.opacity="",d.pointerEvents=kf(a==null?void 0:a.pointerEvents)||"",d.transform=f?f(this.latestValues,""):"none",d;const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){const $={};return this.options.layoutId&&($.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,$.pointerEvents=kf(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Ba(this.latestValues)&&($.transform=f?f({},""):"none",this.hasProjected=!1),$}const m=h.animationValues||h.latestValues;this.applyTransformsToTarget(),d.transform=xZ(this.projectionDeltaWithTransform,this.treeScale,m),f&&(d.transform=f(m,d.transform));const{x:g,y:v}=this.projectionDelta;d.transformOrigin=`${g.origin*100}% ${v.origin*100}% 0`,h.animationValues?d.opacity=h===this?(c=(u=m.opacity)!==null&&u!==void 0?u:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:d.opacity=h===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const $ in bh){if(m[$]===void 0)continue;const{correct:C,applyTo:x}=bh[$],y=d.transform==="none"?m[$]:C(m[$],h);if(x){const D=x.length;for(let P=0;P<D;P++)d[x[P]]=y}else d[$]=y}return this.options.layoutId&&(d.pointerEvents=h===this?kf(a==null?void 0:a.pointerEvents)||"":"none"),d}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var u;return(u=a.currentAnimation)===null||u===void 0?void 0:u.stop()}),this.root.nodes.forEach(qw),this.root.sharedNodes.clear()}}}function EZ(e){e.updateLayout()}function CZ(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:o}=e.options,a=n.source!==e.layout.source;o==="size"?Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=kr(m);m.min=r[h].min,m.max=m.min+g}):C7(o,n.layoutBox,r)&&Qr(h=>{const m=a?n.measuredBox[h]:n.layoutBox[h],g=kr(r[h]);m.max=m.min+g,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[h].max=e.relativeTarget[h].min+g)});const u=ou();oc(u,r,n.layoutBox);const c=ou();a?oc(c,e.applyTransform(i,!0),n.measuredBox):oc(c,r,n.layoutBox);const d=!x7(u);let f=!1;if(!e.resumeFrom){const h=e.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:m,layout:g}=h;if(m&&g){const v=cn();ac(v,n.layoutBox,m.layoutBox);const $=cn();ac($,r,g.layoutBox),w7(v,$)||(f=!0),h.options.layoutRoot&&(e.relativeTarget=$,e.relativeTargetOrigin=v,e.relativeParent=h)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:d,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function SZ(e){Gl&&Ia.totalNodes++,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 TZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function AZ(e){e.clearSnapshot()}function qw(e){e.clearMeasurements()}function PZ(e){e.isLayoutDirty=!1}function _Z(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Yw(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function RZ(e){e.resolveTargetDelta()}function OZ(e){e.calcProjection()}function MZ(e){e.resetSkewAndRotation()}function FZ(e){e.removeLeadSnapshot()}function Zw(e,t,n){e.translate=qt(t.translate,0,n),e.scale=qt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Jw(e,t,n,r){e.min=qt(t.min,n.min,r),e.max=qt(t.max,n.max,r)}function kZ(e,t,n,r){Jw(e.x,t.x,n.x,r),Jw(e.y,t.y,n.y,r)}function BZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const IZ={duration:.45,ease:[.4,0,.1,1]},Xw=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Qw=Xw("applewebkit/")&&!Xw("chrome/")?Math.round:Er;function eD(e){e.min=Qw(e.min),e.max=Qw(e.max)}function LZ(e){eD(e.x),eD(e.y)}function C7(e,t,n){return e==="position"||e==="preserve-aspect"&&!jY(Ww(t),Ww(n),.2)}function VZ(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const NZ=E7({attachResizeListener:(e,t)=>wc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ng={current:void 0},S7=E7({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Ng.current){const e=new NZ({});e.mount(window),e.setOptions({layoutScroll:!0}),Ng.current=e}return Ng.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),jZ={pan:{Feature:rZ},drag:{Feature:nZ,ProjectionNode:S7,MeasureLayout:v7}};function tD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&jt.postRender(()=>o(t,Zc(t)))}let KZ=class extends ya{mount(){const{current:t}=this.node;t&&(this.unmount=jG(t,n=>(tD(this.node,n,"Start"),r=>tD(this.node,r,"End"))))}unmount(){}},UZ=class extends ya{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=Yc(wc(this.node.current,"focus",()=>this.onFocus()),wc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}};function nD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&jt.postRender(()=>o(t,Zc(t)))}let zZ=class extends ya{mount(){const{current:t}=this.node;t&&(this.unmount=WG(t,n=>(nD(this.node,n,"Start"),(r,{success:i})=>nD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}};const wv=new WeakMap,jg=new WeakMap,WZ=e=>{const t=wv.get(e.target);t&&t(e)},HZ=e=>{e.forEach(WZ)};function GZ({root:e,...t}){const n=e||document;jg.has(n)||jg.set(n,{});const r=jg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(HZ,{root:e,...t})),r[i]}function qZ(e,t,n){const r=GZ(t);return wv.set(e,n),r.observe(e),()=>{wv.delete(e),r.unobserve(e)}}const YZ={some:0,all:1};let ZZ=class extends ya{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:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:YZ[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return qZ(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(JZ(t,n))&&this.startObserver()}unmount(){}};function JZ({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const XZ={inView:{Feature:ZZ},tap:{Feature:zZ},focus:{Feature:UZ},hover:{Feature:KZ}},QZ={layout:{ProjectionNode:S7,MeasureLayout:v7}},Dv={current:null},T7={current:!1};function eJ(){if(T7.current=!0,!!t0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Dv.current=e.matches;e.addListener(t),t()}else Dv.current=!1}const tJ=[...J6,qn,fa],nJ=e=>tJ.find(Z6(e)),rD=new WeakMap;function rJ(e,t,n){for(const r in t){const i=t[r],o=n[r];if(In(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&pp(i.version==="11.18.0",`Attempting to mix Motion versions ${i.version} with 11.18.0 may not work as expected.`);else if(In(o))e.addValue(r,Ou(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,Ou(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const iD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let iJ=class{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=A0,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=qi.now();this.renderScheduledAt<g&&(this.renderScheduledAt=g,jt.render(this.render,!1,!0))};const{latestValues:c,renderState:d,onUpdate:f}=a;this.onUpdate=f,this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=yp(n),this.isVariantNode=o6(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:h,...m}=this.scrapeMotionValuesFromProps(n,{},this);for(const g in m){const v=m[g];c[g]!==void 0&&In(v)&&v.set(c[g],!1)}}mount(t){this.current=t,rD.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)),T7.current||eJ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Dv.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(){rD.delete(this.current),this.projection&&this.projection.unmount(),Co(this.notifyUpdate),Co(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=gs.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&jt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),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 Ru){const n=Ru[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 o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):cn()}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<iD.length;r++){const i=iD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=rJ(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=Ou(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"&&(q6(i)||V6(i))?i=parseFloat(i):!nJ(i)&&fa.test(n)&&(i=W6(t,n)),this.setBaseTarget(t,In(i)?i.get():i)),In(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 a=u0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!In(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new w0),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}},A7=class extends iJ{constructor(){super(...arguments),this.KeyframeResolver=X6}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;In(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}};function oJ(e){return window.getComputedStyle(e)}let aJ=class extends A7{constructor(){super(...arguments),this.type="html",this.renderInstance=p6}readValueFromInstance(t,n){if(gs.has(n)){const r=T0(n);return r&&r.default||0}else{const r=oJ(t),i=(d6(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return g7(t,n)}build(t,n,r){d0(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return m0(t,n,r)}},sJ=class extends A7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=cn}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(gs.has(n)){const r=T0(n);return r&&r.default||0}return n=m6.has(n)?n:o0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return v6(t,n,r)}build(t,n,r){f0(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){g6(t,n,r,i)}mount(t){this.isSVGTag=p0(t.tagName),super.mount(t)}};const uJ=(e,t)=>s0(e)?new sJ(t):new aJ(t,{allowProjection:e!==b.Fragment}),lJ=FG({...OY,...XZ,...jZ,...QZ},uJ),P7=YH(lJ);function _7(e){const t=Hc(()=>Ou(e)),{isStatic:n}=b.useContext(e0);if(n){const[,r]=b.useState(e);b.useEffect(()=>t.on("change",r),[])}return t}function R7(e,t){const n=_7(t()),r=()=>n.set(t());return r(),t6(()=>{const i=()=>jt.preRender(r,!1,!0),o=e.map(a=>a.on("change",i));return()=>{o.forEach(a=>a()),Co(r)}}),n}const cJ=e=>e&&typeof e=="object"&&e.mix,dJ=e=>cJ(e)?e.mix:void 0;function fJ(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],a=e[3+n],u=o7(i,o,{mixer:dJ(o[0]),...a});return t?u(r):u}function hJ(e){nc.current=[],e();const t=R7(nc.current,e);return nc.current=void 0,t}function pJ(e,t,n,r){if(typeof e=="function")return hJ(e);const i=typeof t=="function"?t:fJ(t,n,r);return Array.isArray(e)?oD(e,i):oD([e],([o])=>i(o))}function oD(e,t){const n=Hc(()=>[]);return R7(e,()=>{n.length=0;const r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}const O7=b.createContext(null);function mJ(e,t,n,r){if(!r)return e;const i=e.findIndex(f=>f.value===t);if(i===-1)return e;const o=r>0?1:-1,a=e[i+o];if(!a)return e;const u=e[i],c=a.layout,d=qt(c.min,c.max,.5);return o===1&&u.layout.max+n>d||o===-1&&u.layout.min+n<d?qG(e,i,i+o):e}function gJ({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},a){const u=Hc(()=>P7[t]),c=[],d=b.useRef(!1);Zi(!!i,"Reorder.Group must be provided a values prop");const f={axis:n,registerItem:(h,m)=>{const g=c.findIndex(v=>h===v.value);g!==-1?c[g].layout=m[n]:c.push({value:h,layout:m[n]}),c.sort(bJ)},updateOrder:(h,m,g)=>{if(d.current)return;const v=mJ(c,h,m,g);c!==v&&(d.current=!0,r(v.map(vJ).filter($=>i.indexOf($)!==-1)))}};return b.useEffect(()=>{d.current=!1}),Do.jsx(u,{...o,ref:a,ignoreStrict:!0,children:Do.jsx(O7.Provider,{value:f,children:e})})}const yJ=b.forwardRef(gJ);function vJ(e){return e.value}function bJ(e,t){return e.layout.min-t.layout.min}function aD(e,t=0){return In(e)?e:_7(t)}function $J({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...a},u){const c=Hc(()=>P7[r]),d=b.useContext(O7),f={x:aD(t.x),y:aD(t.y)},h=pJ([f.x,f.y],([$,C])=>$||C?1:"unset");Zi(!!d,"Reorder.Item must be a child of Reorder.Group");const{axis:m,registerItem:g,updateOrder:v}=d;return Do.jsx(c,{drag:m,...a,dragSnapToOrigin:!0,style:{...t,x:f.x,y:f.y,zIndex:h},layout:o,onDrag:($,C)=>{const{velocity:x}=C;x[m]&&v(n,f[m].get(),x[m]),i&&i($,C)},onLayoutMeasure:$=>g(n,$),ref:u,ignoreStrict:!0,children:e})}const xJ=b.forwardRef($J),sD=new Set;function $p(e,t,n){e||sD.has(t)||(console.warn(t),sD.add(t))}function wJ(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>(process.env.NODE_ENV!=="production"&&$p(!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))})}function xp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Ev=e=>Array.isArray(e);function M7(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}function Dc(e){return typeof e=="string"||Array.isArray(e)}function uD(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function O0(e,t,n,r){if(typeof t=="function"){const[i,o]=uD(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,o]=uD(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function wp(e,t,n){const r=e.getProps();return O0(r,t,n!==void 0?n:r.custom,e)}const M0=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],F0=["initial",...M0],Jc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ys=new Set(Jc),wo=e=>e*1e3,ua=e=>e/1e3,DJ={type:"spring",stiffness:500,damping:25,restSpeed:10},EJ=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),CJ={type:"keyframes",duration:.8},SJ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},TJ=(e,{keyframes:t})=>t.length>2?CJ:ys.has(e)?e.startsWith("scale")?EJ(t[1]):DJ:SJ;function F7(e,t){return e?e[t]||e.default||e:void 0}const AJ={skipAnimations:!1,useManualTiming:!1},PJ=e=>e!==null;function Dp(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(PJ),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}const ha=e=>e;let qu=ha,cs=ha;process.env.NODE_ENV!=="production"&&(qu=(e,t)=>{!e&&typeof console<"u"&&console.warn(t)},cs=(e,t)=>{if(!e)throw new Error(t)});function _J(e){let t=new Set,n=new Set,r=!1,i=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function u(d){o.has(d)&&(c.schedule(d),e()),d(a)}const c={schedule:(d,f=!1,h=!1)=>{const g=h&&r?t:n;return f&&o.add(d),g.has(d)||g.add(d),d},cancel:d=>{n.delete(d),o.delete(d)},process:d=>{if(a=d,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(u),t.clear(),r=!1,i&&(i=!1,c.process(d))}};return c}const mf=["read","resolveKeyframes","update","preRender","render","postRender"],RJ=40;function k7(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,a=mf.reduce((x,y)=>(x[y]=_J(o),x),{}),{read:u,resolveKeyframes:c,update:d,preRender:f,render:h,postRender:m}=a,g=()=>{const x=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(x-i.timestamp,RJ),1),i.timestamp=x,i.isProcessing=!0,u.process(i),c.process(i),d.process(i),f.process(i),h.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(g))},v=()=>{n=!0,r=!0,i.isProcessing||e(g)};return{schedule:mf.reduce((x,y)=>{const D=a[y];return x[y]=(P,E=!1,T=!1)=>(n||v(),D.schedule(P,E,T)),x},{}),cancel:x=>{for(let y=0;y<mf.length;y++)a[mf[y]].cancel(x)},state:i,steps:a}}const{schedule:Br,cancel:Cv,state:Ch,steps:die}=k7(typeof requestAnimationFrame<"u"?requestAnimationFrame:ha,!0),B7=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,OJ=1e-7,MJ=12;function FJ(e,t,n,r,i){let o,a,u=0;do a=t+(n-t)/2,o=B7(a,r,i)-e,o>0?n=a:t=a;while(Math.abs(o)>OJ&&++u<MJ);return a}function Xc(e,t,n,r){if(e===t&&n===r)return ha;const i=o=>FJ(o,0,1,e,n);return o=>o===0||o===1?o:B7(i(o),t,r)}const I7=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,L7=e=>t=>1-e(1-t),V7=Xc(.33,1.53,.69,.99),k0=L7(V7),N7=I7(k0),j7=e=>(e*=2)<1?.5*k0(e):.5*(2-Math.pow(2,-10*(e-1))),B0=e=>1-Math.sin(Math.acos(e)),kJ=L7(B0),K7=I7(B0),U7=e=>/^0[^.\s]+$/u.test(e);function BJ(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||U7(e):!0}const z7=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),W7=e=>t=>typeof t=="string"&&t.startsWith(e),H7=W7("--"),IJ=W7("var(--"),I0=e=>IJ(e)?LJ.test(e.split("/*")[0].trim()):!1,LJ=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,VJ=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function NJ(e){const t=VJ.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}const jJ=4;function G7(e,t,n=1){cs(n<=jJ,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[r,i]=NJ(e);if(!r)return;const o=window.getComputedStyle(t).getPropertyValue(r);if(o){const a=o.trim();return z7(a)?parseFloat(a):a}return I0(i)?G7(i,t,n+1):i}const ds=(e,t,n)=>n>t?t:n<e?e:n,Yu={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ec={...Yu,transform:e=>ds(0,1,e)},gf={...Yu,default:1},Qc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Zo=Qc("deg"),gu=Qc("%"),Ze=Qc("px"),KJ=Qc("vh"),UJ=Qc("vw"),lD={...gu,parse:e=>gu.parse(e)/100,transform:e=>gu.transform(e*100)},zJ=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),cD=e=>e===Yu||e===Ze,dD=(e,t)=>parseFloat(e.split(", ")[t]),fD=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return dD(i[1],t);{const o=r.match(/^matrix\((.+)\)$/u);return o?dD(o[1],e):0}},WJ=new Set(["x","y","z"]),HJ=Jc.filter(e=>!WJ.has(e));function GJ(e){const t=[];return HJ.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Fu={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:fD(4,13),y:fD(5,14)};Fu.translateX=Fu.x;Fu.translateY=Fu.y;const q7=e=>t=>t.test(e),qJ={test:e=>e==="auto",parse:e=>e},Y7=[Yu,Ze,gu,Zo,UJ,KJ,qJ],hD=e=>Y7.find(q7(e)),Qa=new Set;let Sv=!1,Tv=!1;function Z7(){if(Tv){const e=Array.from(Qa).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=GJ(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(([o,a])=>{var u;(u=r.getValue(o))===null||u===void 0||u.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Tv=!1,Sv=!1,Qa.forEach(e=>e.complete()),Qa.clear()}function J7(){Qa.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Tv=!0)})}function YJ(){J7(),Z7()}class L0{constructor(t,n,r,i,o,a=!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=o,this.isAsync=a}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Qa.add(this),Sv||(Sv=!0,Br.read(J7),Br.resolveKeyframes(Z7))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let o=0;o<t.length;o++)if(t[o]===null)if(o===0){const a=i==null?void 0:i.get(),u=t[t.length-1];if(a!==void 0)t[0]=a;else if(r&&n){const c=r.readValue(n,u);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=u),i&&a===void 0&&i.set(t[0])}else t[o]=t[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Qa.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Qa.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const sc=e=>Math.round(e*1e5)/1e5,V0=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function ZJ(e){return e==null}const JJ=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,N0=(e,t)=>n=>!!(typeof n=="string"&&JJ.test(n)&&n.startsWith(e)||t&&!ZJ(n)&&Object.prototype.hasOwnProperty.call(n,t)),X7=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,o,a,u]=r.match(V0);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(a),alpha:u!==void 0?parseFloat(u):1}},XJ=e=>ds(0,255,e),Kg={...Yu,transform:e=>Math.round(XJ(e))},Ga={test:N0("rgb","red"),parse:X7("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Kg.transform(e)+", "+Kg.transform(t)+", "+Kg.transform(n)+", "+sc(Ec.transform(r))+")"};function QJ(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 Av={test:N0("#"),parse:QJ,transform:Ga.transform},uu={test:N0("hsl","hue"),parse:X7("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+gu.transform(sc(t))+", "+gu.transform(sc(n))+", "+sc(Ec.transform(r))+")"},Yn={test:e=>Ga.test(e)||Av.test(e)||uu.test(e),parse:e=>Ga.test(e)?Ga.parse(e):uu.test(e)?uu.parse(e):Av.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ga.transform(e):uu.transform(e)},eX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function tX(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(V0))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(eX))===null||n===void 0?void 0:n.length)||0)>0}const Q7="number",e_="color",nX="var",rX="var(",pD="${}",iX=/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 Cc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let o=0;const u=t.replace(iX,c=>(Yn.test(c)?(r.color.push(o),i.push(e_),n.push(Yn.parse(c))):c.startsWith(rX)?(r.var.push(o),i.push(nX),n.push(c)):(r.number.push(o),i.push(Q7),n.push(parseFloat(c))),++o,pD)).split(pD);return{values:n,split:u,indexes:r,types:i}}function t_(e){return Cc(e).values}function n_(e){const{split:t,types:n}=Cc(e),r=t.length;return i=>{let o="";for(let a=0;a<r;a++)if(o+=t[a],i[a]!==void 0){const u=n[a];u===Q7?o+=sc(i[a]):u===e_?o+=Yn.transform(i[a]):o+=i[a]}return o}}const oX=e=>typeof e=="number"?0:e;function aX(e){const t=t_(e);return n_(e)(t.map(oX))}const Zu={test:tX,parse:t_,createTransformer:n_,getAnimatableNone:aX},sX=new Set(["brightness","contrast","saturate","opacity"]);function uX(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(V0)||[];if(!r)return e;const i=n.replace(r,"");let o=sX.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}const lX=/\b([a-z-]*)\(.*?\)/gu,Pv={...Zu,getAnimatableNone:e=>{const t=e.match(lX);return t?t.map(uX).join(" "):e}},cX={borderWidth:Ze,borderTopWidth:Ze,borderRightWidth:Ze,borderBottomWidth:Ze,borderLeftWidth:Ze,borderRadius:Ze,radius:Ze,borderTopLeftRadius:Ze,borderTopRightRadius:Ze,borderBottomRightRadius:Ze,borderBottomLeftRadius:Ze,width:Ze,maxWidth:Ze,height:Ze,maxHeight:Ze,top:Ze,right:Ze,bottom:Ze,left:Ze,padding:Ze,paddingTop:Ze,paddingRight:Ze,paddingBottom:Ze,paddingLeft:Ze,margin:Ze,marginTop:Ze,marginRight:Ze,marginBottom:Ze,marginLeft:Ze,backgroundPositionX:Ze,backgroundPositionY:Ze},dX={rotate:Zo,rotateX:Zo,rotateY:Zo,rotateZ:Zo,scale:gf,scaleX:gf,scaleY:gf,scaleZ:gf,skew:Zo,skewX:Zo,skewY:Zo,distance:Ze,translateX:Ze,translateY:Ze,translateZ:Ze,x:Ze,y:Ze,z:Ze,perspective:Ze,transformPerspective:Ze,opacity:Ec,originX:lD,originY:lD,originZ:Ze},mD={...Yu,transform:Math.round},j0={...cX,...dX,zIndex:mD,size:Ze,fillOpacity:Ec,strokeOpacity:Ec,numOctaves:mD},fX={...j0,color:Yn,backgroundColor:Yn,outlineColor:Yn,fill:Yn,stroke:Yn,borderColor:Yn,borderTopColor:Yn,borderRightColor:Yn,borderBottomColor:Yn,borderLeftColor:Yn,filter:Pv,WebkitFilter:Pv},K0=e=>fX[e];function r_(e,t){let n=K0(e);return n!==Pv&&(n=Zu),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const hX=new Set(["auto","none","0"]);function pX(e,t,n){let r=0,i;for(;r<e.length&&!i;){const o=e[r];typeof o=="string"&&!hX.has(o)&&Cc(o).values.length&&(i=e[r]),r++}if(i&&n)for(const o of t)e[o]=r_(n,i)}class i_ extends L0{constructor(t,n,r,i,o){super(t,n,r,i,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let d=t[c];if(typeof d=="string"&&(d=d.trim(),I0(d))){const f=G7(d,n.current);f!==void 0&&(t[c]=f),c===t.length-1&&(this.finalKeyframe=d)}}if(this.resolveNoneKeyframes(),!zJ.has(r)||t.length!==2)return;const[i,o]=t,a=hD(i),u=hD(o);if(a!==u)if(cD(a)&&cD(u))for(let c=0;c<t.length;c++){const d=t[c];typeof d=="string"&&(t[c]=parseFloat(d))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)BJ(t[i])&&r.push(i);r.length&&pX(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=Fu[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 o=n.getValue(r);o&&o.jump(this.measuredOrigin,!1);const a=i.length-1,u=i[a];i[a]=Fu[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(([c,d])=>{n.getValue(c).set(d)}),this.resolveNoneKeyframes()}}function U0(e){return typeof e=="function"}let Lf;function mX(){Lf=void 0}const la={now:()=>(Lf===void 0&&la.set(Ch.isProcessing||AJ.useManualTiming?Ch.timestamp:performance.now()),Lf),set:e=>{Lf=e,queueMicrotask(mX)}},gD=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Zu.test(e)||e==="0")&&!e.startsWith("url("));function gX(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 yX(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const o=e[e.length-1],a=gD(i,t),u=gD(o,t);return qu(a===u,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!a||!u?!1:gX(e)||(n==="spring"||U0(n))&&r}const vX=40;class o_{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:a="loop",...u}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=la.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:o,repeatType:a,...u},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>vX?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&YJ(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=la.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:o,delay:a,onComplete:u,onUpdate:c,isGenerator:d}=this.options;if(!d&&!yX(t,r,i,o))if(a)this.options.duration=0;else{c==null||c(Dp(t,this.options,n)),u==null||u(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},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=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},a_=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let o=0;o<i;o++)r+=e(z0(0,i-1,o))+", ";return`linear(${r.substring(0,r.length-2)})`};function s_(e,t){return t?e*(1e3/t):0}const bX=5;function u_(e,t,n){const r=Math.max(t-bX,0);return s_(n-e(r),t-r)}const Xt={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},yD=.001;function $X({duration:e=Xt.duration,bounce:t=Xt.bounce,velocity:n=Xt.velocity,mass:r=Xt.mass}){let i,o;qu(e<=wo(Xt.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=ds(Xt.minDamping,Xt.maxDamping,a),e=ds(Xt.minDuration,Xt.maxDuration,ua(e)),a<1?(i=d=>{const f=d*a,h=f*e,m=f-n,g=_v(d,a),v=Math.exp(-h);return yD-m/g*v},o=d=>{const h=d*a*e,m=h*n+n,g=Math.pow(a,2)*Math.pow(d,2)*e,v=Math.exp(-h),$=_v(Math.pow(d,2),a);return(-i(d)+yD>0?-1:1)*((m-g)*v)/$}):(i=d=>{const f=Math.exp(-d*e),h=(d-n)*e+1;return-.001+f*h},o=d=>{const f=Math.exp(-d*e),h=(n-d)*(e*e);return f*h});const u=5/e,c=wX(i,o,u);if(e=wo(e),isNaN(c))return{stiffness:Xt.stiffness,damping:Xt.damping,duration:e};{const d=Math.pow(c,2)*r;return{stiffness:d,damping:a*2*Math.sqrt(r*d),duration:e}}}const xX=12;function wX(e,t,n){let r=n;for(let i=1;i<xX;i++)r=r-e(r)/t(r);return r}function _v(e,t){return e*Math.sqrt(1-t*t)}const Rv=2e4;function l_(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Rv;)t+=n,r=e.next(t);return t>=Rv?1/0:t}const DX=["duration","bounce"],EX=["stiffness","damping","mass"];function vD(e,t){return t.some(n=>e[n]!==void 0)}function CX(e){let t={velocity:Xt.velocity,stiffness:Xt.stiffness,damping:Xt.damping,mass:Xt.mass,isResolvedFromDuration:!1,...e};if(!vD(e,EX)&&vD(e,DX))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,o=2*ds(.05,1,1-e.bounce)*Math.sqrt(i);t={...t,mass:Xt.mass,stiffness:i,damping:o}}else{const n=$X(e);t={...t,...n,mass:Xt.mass},t.isResolvedFromDuration=!0}return t}function c_(e=Xt.visualDuration,t=Xt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const o=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],u={done:!1,value:o},{stiffness:c,damping:d,mass:f,duration:h,velocity:m,isResolvedFromDuration:g}=CX({...n,velocity:-ua(n.velocity||0)}),v=m||0,$=d/(2*Math.sqrt(c*f)),C=a-o,x=ua(Math.sqrt(c/f)),y=Math.abs(C)<5;r||(r=y?Xt.restSpeed.granular:Xt.restSpeed.default),i||(i=y?Xt.restDelta.granular:Xt.restDelta.default);let D;if($<1){const E=_v(x,$);D=T=>{const k=Math.exp(-$*x*T);return a-k*((v+$*x*C)/E*Math.sin(E*T)+C*Math.cos(E*T))}}else if($===1)D=E=>a-Math.exp(-x*E)*(C+(v+x*C)*E);else{const E=x*Math.sqrt($*$-1);D=T=>{const k=Math.exp(-$*x*T),S=Math.min(E*T,300);return a-k*((v+$*x*C)*Math.sinh(S)+E*C*Math.cosh(S))/E}}const P={calculatedDuration:g&&h||null,next:E=>{const T=D(E);if(g)u.done=E>=h;else{let k=0;$<1&&(k=E===0?wo(v):u_(D,E,T));const S=Math.abs(k)<=r,U=Math.abs(a-T)<=i;u.done=S&&U}return u.value=u.done?a:T,u},toString:()=>{const E=Math.min(l_(P),Rv),T=a_(k=>P.next(E*k).value,E,30);return E+"ms "+T}};return P}function bD({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:c,restDelta:d=.5,restSpeed:f}){const h=e[0],m={done:!1,value:h},g=S=>u!==void 0&&S<u||c!==void 0&&S>c,v=S=>u===void 0?c:c===void 0||Math.abs(u-S)<Math.abs(c-S)?u:c;let $=n*t;const C=h+$,x=a===void 0?C:a(C);x!==C&&($=x-h);const y=S=>-$*Math.exp(-S/r),D=S=>x+y(S),P=S=>{const U=y(S),O=D(S);m.done=Math.abs(U)<=d,m.value=m.done?x:O};let E,T;const k=S=>{g(m.value)&&(E=S,T=c_({keyframes:[m.value,v(m.value)],velocity:u_(D,S,m.value),damping:i,stiffness:o,restDelta:d,restSpeed:f}))};return k(0),{calculatedDuration:null,next:S=>{let U=!1;return!T&&E===void 0&&(U=!0,P(S),k(S)),E!==void 0&&S>=E?T.next(S-E):(!U&&P(S),m)}}}const SX=Xc(.42,0,1,1),TX=Xc(0,0,.58,1),d_=Xc(.42,0,.58,1),AX=e=>Array.isArray(e)&&typeof e[0]!="number",W0=e=>Array.isArray(e)&&typeof e[0]=="number",$D={linear:ha,easeIn:SX,easeInOut:d_,easeOut:TX,circIn:B0,circInOut:K7,circOut:kJ,backIn:k0,backInOut:N7,backOut:V7,anticipate:j7},xD=e=>{if(W0(e)){cs(e.length===4,"Cubic bezier arrays must contain four numerical values.");const[t,n,r,i]=e;return Xc(t,n,r,i)}else if(typeof e=="string")return cs($D[e]!==void 0,`Invalid easing type '${e}'`),$D[e];return e},PX=(e,t)=>n=>t(e(n)),Ep=(...e)=>e.reduce(PX),Cp=(e,t,n)=>e+(t-e)*n;function Ug(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 _X({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,a=0;if(!t)i=o=a=n;else{const u=n<.5?n*(1+t):n+t-n*t,c=2*n-u;i=Ug(c,u,e+1/3),o=Ug(c,u,e),a=Ug(c,u,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(a*255),alpha:r}}function Sh(e,t){return n=>n>0?t:e}const zg=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},RX=[Av,Ga,uu],OX=e=>RX.find(t=>t.test(e));function wD(e){const t=OX(e);if(qu(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===uu&&(n=_X(n)),n}const DD=(e,t)=>{const n=wD(e),r=wD(t);if(!n||!r)return Sh(e,t);const i={...n};return o=>(i.red=zg(n.red,r.red,o),i.green=zg(n.green,r.green,o),i.blue=zg(n.blue,r.blue,o),i.alpha=Cp(n.alpha,r.alpha,o),Ga.transform(i))},Ov=new Set(["none","hidden"]);function MX(e,t){return Ov.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function FX(e,t){return n=>Cp(e,t,n)}function H0(e){return typeof e=="number"?FX:typeof e=="string"?I0(e)?Sh:Yn.test(e)?DD:IX:Array.isArray(e)?f_:typeof e=="object"?Yn.test(e)?DD:kX:Sh}function f_(e,t){const n=[...e],r=n.length,i=e.map((o,a)=>H0(o)(o,t[a]));return o=>{for(let a=0;a<r;a++)n[a]=i[a](o);return n}}function kX(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=H0(e[i])(e[i],t[i]));return i=>{for(const o in r)n[o]=r[o](i);return n}}function BX(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const a=t.types[o],u=e.indexes[a][i[a]],c=(n=e.values[u])!==null&&n!==void 0?n:0;r[o]=c,i[a]++}return r}const IX=(e,t)=>{const n=Zu.createTransformer(t),r=Cc(e),i=Cc(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?Ov.has(e)&&!i.values.length||Ov.has(t)&&!r.values.length?MX(e,t):Ep(f_(BX(r,i),i.values),n):(qu(!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.`),Sh(e,t))};function h_(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Cp(e,t,n):H0(e)(e,t)}function LX(e,t,n){const r=[],i=n||h_,o=e.length-1;for(let a=0;a<o;a++){let u=i(e[a],e[a+1]);if(t){const c=Array.isArray(t)?t[a]||ha:t;u=Ep(c,u)}r.push(u)}return r}function VX(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const o=e.length;if(cs(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=LX(t,r,i),u=a.length,c=d=>{let f=0;if(u>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=z0(e[f],e[f+1],d);return a[f](h)};return n?d=>c(ds(e[0],e[o-1],d)):c}function NX(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=z0(0,t,r);e.push(Cp(n,1,i))}}function jX(e){const t=[0];return NX(t,e.length-1),t}function KX(e,t){return e.map(n=>n*t)}function UX(e,t){return e.map(()=>t||d_).splice(0,e.length-1)}function Th({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=AX(r)?r.map(xD):xD(r),o={done:!1,value:t[0]},a=KX(n&&n.length===t.length?n:jX(t),e),u=VX(a,t,{ease:Array.isArray(i)?i:UX(t,i)});return{calculatedDuration:e,next:c=>(o.value=u(c),o.done=c>=e,o)}}const zX=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Br.update(t,!0),stop:()=>Cv(t),now:()=>Ch.isProcessing?Ch.timestamp:la.now()}},WX={decay:bD,inertia:bD,tween:Th,keyframes:Th,spring:c_},HX=e=>e/100;class G0 extends o_{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:c}=this.options;c&&c()};const{name:n,motionValue:r,element:i,keyframes:o}=this.options,a=(i==null?void 0:i.KeyframeResolver)||L0,u=(c,d)=>this.onKeyframesResolved(c,d);this.resolver=new a(o,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:o,velocity:a=0}=this.options,u=U0(n)?n:WX[n]||Th;let c,d;u!==Th&&typeof t[0]!="number"&&(process.env.NODE_ENV!=="production"&&cs(t.length===2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`),c=Ep(HX,h_(t[0],t[1])),t=[0,100]);const f=u({...this.options,keyframes:t});o==="mirror"&&(d=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),f.calculatedDuration===null&&(f.calculatedDuration=l_(f));const{calculatedDuration:h}=f,m=h+i,g=m*(r+1)-i;return{generator:f,mirroredGenerator:d,mapPercentToKeyframes:c,calculatedDuration:h,resolvedDuration:m,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:o,mirroredGenerator:a,mapPercentToKeyframes:u,keyframes:c,calculatedDuration:d,totalDuration:f,resolvedDuration:h}=r;if(this.startTime===null)return o.next(0);const{delay:m,repeat:g,repeatType:v,repeatDelay:$,onUpdate:C}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/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 x=this.currentTime-m*(this.speed>=0?1:-1),y=this.speed>=0?x<0:x>f;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let D=this.currentTime,P=o;if(g){const S=Math.min(this.currentTime,f)/h;let U=Math.floor(S),O=S%1;!O&&S>=1&&(O=1),O===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(v==="reverse"?(O=1-O,$&&(O-=$/h)):v==="mirror"&&(P=a)),D=ds(0,1,O)*h}const E=y?{done:!1,value:c[0]}:P.next(D);u&&(E.value=u(E.value));let{done:T}=E;!y&&d!==null&&(T=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&T);return k&&i!==void 0&&(E.value=Dp(c,this.options,i)),C&&C(E.value),k&&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=wo(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=zX,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),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 GX=new Set(["opacity","clipPath","filter","transform"]);function q0(e){let t;return()=>(t===void 0&&(t=e()),t)}const qX={linearEasing:void 0};function YX(e,t){const n=q0(e);return()=>{var r;return(r=qX[t])!==null&&r!==void 0?r:n()}}const Ah=YX(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function p_(e){return!!(typeof e=="function"&&Ah()||!e||typeof e=="string"&&(e in Mv||Ah())||W0(e)||Array.isArray(e)&&e.every(p_))}const ql=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Mv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ql([0,.65,.55,1]),circOut:ql([.55,0,1,.45]),backIn:ql([.31,.01,.66,-.59]),backOut:ql([.33,1.53,.69,.99])};function m_(e,t){if(e)return typeof e=="function"&&Ah()?a_(e,t):W0(e)?ql(e):Array.isArray(e)?e.map(n=>m_(n,t)||Mv.easeOut):Mv[e]}function ZX(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:a="loop",ease:u="easeInOut",times:c}={}){const d={[t]:n};c&&(d.offset=c);const f=m_(u,i);return Array.isArray(f)&&(d.easing=f),e.animate(d,{delay:r,duration:i,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:o+1,direction:a==="reverse"?"alternate":"normal"})}function ED(e,t){e.timeline=t,e.onfinish=null}const JX=q0(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ph=10,XX=2e4;function QX(e){return U0(e.type)||e.type==="spring"||!p_(e.ease)}function eQ(e,t){const n=new G0({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let o=0;for(;!r.done&&o<XX;)r=n.sample(o),i.push(r.value),o+=Ph;return{times:void 0,keyframes:i,duration:o-Ph,ease:"linear"}}const g_={anticipate:j7,backInOut:N7,circInOut:K7};function tQ(e){return e in g_}class CD extends o_{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:o}=this.options;this.resolver=new i_(o,(a,u)=>this.onKeyframesResolved(a,u),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){var r;let{duration:i=300,times:o,ease:a,type:u,motionValue:c,name:d,startTime:f}=this.options;if(!(!((r=c.owner)===null||r===void 0)&&r.current))return!1;if(typeof a=="string"&&Ah()&&tQ(a)&&(a=g_[a]),QX(this.options)){const{onComplete:m,onUpdate:g,motionValue:v,element:$,...C}=this.options,x=eQ(t,C);t=x.keyframes,t.length===1&&(t[1]=t[0]),i=x.duration,o=x.times,a=x.ease,u="keyframes"}const h=ZX(c.owner.current,d,t,{...this.options,duration:i,times:o,ease:a});return h.startTime=f??this.calcStartTime(),this.pendingTimeline?(ED(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{const{onComplete:m}=this.options;c.set(Dp(t,this.options,n)),m&&m(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:i,times:o,type:u,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=wo(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;ED(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:o,ease:a,times:u}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:d,onUpdate:f,onComplete:h,element:m,...g}=this.options,v=new G0({...g,keyframes:r,duration:i,type:o,ease:a,times:u,isGenerator:!0}),$=wo(this.time);d.setWithVelocity(v.sample($-Ph).value,v.sample($).value,Ph)}const{onStop:c}=this.options;c&&c(),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:o,damping:a,type:u}=t;return JX()&&r&&GX.has(r)&&n&&n.owner&&n.owner.current instanceof HTMLElement&&!n.owner.getProps().onUpdate&&!i&&o!=="mirror"&&a!==0&&u!=="inertia"}}const nQ=q0(()=>window.ScrollTimeline!==void 0);class rQ{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}then(t,n){return Promise.all(this.animations).then(t).catch(n)}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=>nQ()&&i.attachTimeline?i.attachTimeline(t):n(i));return()=>{r.forEach((i,o)=>{i&&i(),this.animations[o].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")}}function iQ({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:a,repeatDelay:u,from:c,elapsed:d,...f}){return!!Object.keys(f).length}const oQ=(e,t,n,r={},i,o)=>a=>{const u=F7(r,e)||{},c=u.delay||r.delay||0;let{elapsed:d=0}=r;d=d-wo(c);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-d,onUpdate:m=>{t.set(m),u.onUpdate&&u.onUpdate(m)},onComplete:()=>{a(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:o?void 0:i};iQ(u)||(f={...f,...TJ(e,f)}),f.duration&&(f.duration=wo(f.duration)),f.repeatDelay&&(f.repeatDelay=wo(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let h=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(h=!0)),h&&!o&&t.get()!==void 0){const m=Dp(f.keyframes,u);if(m!==void 0)return Br.update(()=>{f.onUpdate(m),f.onComplete()}),new rQ([])}return!o&&CD.supports(f)?new CD(f):new G0(f)},aQ=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),sQ=e=>Ev(e)?e[e.length-1]||0:e;function uQ(e,t){e.indexOf(t)===-1&&e.push(t)}function lQ(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class y_{constructor(){this.subscriptions=[]}add(t){return uQ(this.subscriptions,t),()=>lQ(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 o=0;o<i;o++){const a=this.subscriptions[o];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const SD=30,cQ=e=>!isNaN(parseFloat(e));class dQ{constructor(t,n={}){this.version="11.15.0",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const o=la.now();this.updatedAt!==o&&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=la.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=cQ(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return process.env.NODE_ENV!=="production"&&$p(!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 y_);const r=this.events[t].add(n);return t==="change"?()=>{r(),Br.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=la.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>SD)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,SD);return s_(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 _h(e,t){return new dQ(e,t)}function fQ(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_h(n))}function hQ(e,t){const n=wp(e,t);let{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(const a in o){const u=sQ(o[a]);fQ(e,a,u)}}const Y0=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),pQ="framerAppearId",v_="data-"+Y0(pQ);function mQ(e){return e.props[v_]}const ur=e=>!!(e&&e.getVelocity);function gQ(e){return!!(ur(e)&&e.add)}function yQ(e,t){const n=e.getValue("willChange");if(gQ(n))return n.add(t)}function vQ({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function b_(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:a=e.getDefaultTransition(),transitionEnd:u,...c}=t;r&&(a=r);const d=[],f=i&&e.animationState&&e.animationState.getState()[i];for(const h in c){const m=e.getValue(h,(o=e.latestValues[h])!==null&&o!==void 0?o:null),g=c[h];if(g===void 0||f&&vQ(f,h))continue;const v={delay:n,...F7(a||{},h)};let $=!1;if(window.MotionHandoffAnimation){const x=mQ(e);if(x){const y=window.MotionHandoffAnimation(x,h,Br);y!==null&&(v.startTime=y,$=!0)}}yQ(e,h),m.start(oQ(h,m,g,e.shouldReduceMotion&&ys.has(h)?{type:!1}:v,e,$));const C=m.animation;C&&d.push(C)}return u&&Promise.all(d).then(()=>{Br.update(()=>{u&&hQ(e,u)})}),d}function Fv(e,t,n={}){var r;const i=wp(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const a=i?()=>Promise.all(b_(e,i,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:f=0,staggerChildren:h,staggerDirection:m}=o;return bQ(e,t,f+d,h,m,n)}:()=>Promise.resolve(),{when:c}=o;if(c){const[d,f]=c==="beforeChildren"?[a,u]:[u,a];return d().then(()=>f())}else return Promise.all([a(),u(n.delay)])}function bQ(e,t,n=0,r=0,i=1,o){const a=[],u=(e.variantChildren.size-1)*r,c=i===1?(d=0)=>d*r:(d=0)=>u-d*r;return Array.from(e.variantChildren).sort($Q).forEach((d,f)=>{d.notify("AnimationStart",t),a.push(Fv(d,t,{...o,delay:n+c(f)}).then(()=>d.notify("AnimationComplete",t)))}),Promise.all(a)}function $Q(e,t){return e.sortNodePosition(t)}function xQ(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(o=>Fv(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Fv(e,t,n);else{const i=typeof t=="function"?wp(e,t,n.custom):t;r=Promise.all(b_(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const wQ=F0.length;function $_(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?$_(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<wQ;n++){const r=F0[n],i=e.props[r];(Dc(i)||i===!1)&&(t[r]=i)}return t}const DQ=[...M0].reverse(),EQ=M0.length;function CQ(e){return t=>Promise.all(t.map(({animation:n,options:r})=>xQ(e,n,r)))}function SQ(e){let t=CQ(e),n=TD(),r=!0;const i=c=>(d,f)=>{var h;const m=wp(e,f,c==="exit"?(h=e.presenceContext)===null||h===void 0?void 0:h.custom:void 0);if(m){const{transition:g,transitionEnd:v,...$}=m;d={...d,...$,...v}}return d};function o(c){t=c(e)}function a(c){const{props:d}=e,f=$_(e.parent)||{},h=[],m=new Set;let g={},v=1/0;for(let C=0;C<EQ;C++){const x=DQ[C],y=n[x],D=d[x]!==void 0?d[x]:f[x],P=Dc(D),E=x===c?y.isActive:null;E===!1&&(v=C);let T=D===f[x]&&D!==d[x]&&P;if(T&&r&&e.manuallyAnimateOnMount&&(T=!1),y.protectedKeys={...g},!y.isActive&&E===null||!D&&!y.prevProp||xp(D)||typeof D=="boolean")continue;const k=TQ(y.prevProp,D);let S=k||x===c&&y.isActive&&!T&&P||C>v&&P,U=!1;const O=Array.isArray(D)?D:[D];let F=O.reduce(i(x),{});E===!1&&(F={});const{prevResolvedValues:G={}}=y,K={...G,...F},W=_=>{S=!0,m.has(_)&&(U=!0,m.delete(_)),y.needsAnimating[_]=!0;const M=e.getValue(_);M&&(M.liveStyle=!1)};for(const _ in K){const M=F[_],Y=G[_];if(g.hasOwnProperty(_))continue;let V=!1;Ev(M)&&Ev(Y)?V=!M7(M,Y):V=M!==Y,V?M!=null?W(_):m.add(_):M!==void 0&&m.has(_)?W(_):y.protectedKeys[_]=!0}y.prevProp=D,y.prevResolvedValues=F,y.isActive&&(g={...g,...F}),r&&e.blockInitialAnimation&&(S=!1),S&&(!(T&&k)||U)&&h.push(...O.map(_=>({animation:_,options:{type:x}})))}if(m.size){const C={};m.forEach(x=>{const y=e.getBaseTarget(x),D=e.getValue(x);D&&(D.liveStyle=!0),C[x]=y??null}),h.push({animation:C})}let $=!!h.length;return r&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&($=!1),r=!1,$?t(h):Promise.resolve()}function u(c,d){var f;if(n[c].isActive===d)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(m=>{var g;return(g=m.animationState)===null||g===void 0?void 0:g.setActive(c,d)}),n[c].isActive=d;const h=a(c);for(const m in n)n[m].protectedKeys={};return h}return{animateChanges:a,setActive:u,setAnimateFunction:o,getState:()=>n,reset:()=>{n=TD(),r=!0}}}function TQ(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!M7(t,e):!1}function ka(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function TD(){return{animate:ka(!0),whileInView:ka(),whileHover:ka(),whileTap:ka(),whileDrag:ka(),whileFocus:ka(),exit:ka()}}class Ju{constructor(t){this.isMounted=!1,this.node=t}update(){}}class AQ extends Ju{constructor(t){super(t),t.animationState||(t.animationState=SQ(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();xp(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 PQ=0;class _Q extends Ju{constructor(){super(...arguments),this.id=PQ++}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}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const RQ={animation:{Feature:AQ},exit:{Feature:_Q}},OQ={x:!1,y:!1};function MQ(){return OQ.y}const FQ=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function x_(e){return{point:{x:e.pageX,y:e.pageY}}}function AD(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function w_(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const PD=()=>({min:0,max:0}),D_=()=>({x:PD(),y:PD()});function kQ({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function BQ(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 IQ(e,t){return kQ(BQ(e.getBoundingClientRect(),t))}const E_=b.createContext(null),LQ=b.createContext({}),VQ=b.createContext({}),NQ={},{schedule:jQ,cancel:fie}=k7(queueMicrotask,!1);function KQ(e){const t=ur(e)?e.get():e;return aQ(t)?t.toValue():t}function UQ(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const o=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}function C_(e,t){const n=UQ(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function _D(e){return t=>{t.pointerType==="touch"||MQ()||e(t)}}function zQ(e,t,n={}){const[r,i,o]=C_(e,n),a=_D(u=>{const{target:c}=u,d=t(u);if(!d||!c)return;const f=_D(h=>{d(h),c.removeEventListener("pointerleave",f)});c.addEventListener("pointerleave",f,i)});return r.forEach(u=>{u.addEventListener("pointerenter",a,i)}),o}function RD(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,o=r[i];o&&Br.postRender(()=>o(t,x_(t)))}class WQ extends Ju{mount(){const{current:t}=this.node;t&&(this.unmount=zQ(t,n=>(RD(this.node,n,"Start"),r=>RD(this.node,r,"End"))))}unmount(){}}class HQ extends Ju{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=Ep(AD(this.node.current,"focus",()=>this.onFocus()),AD(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Yl=new WeakSet;function OD(e){return t=>{t.key==="Enter"&&e(t)}}function Wg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const GQ=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=OD(()=>{if(Yl.has(n))return;Wg(n,"down");const i=OD(()=>{Wg(n,"up")}),o=()=>Wg(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",o,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)},qQ=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function YQ(e){return qQ.has(e.tagName)||e.tabIndex!==-1}const S_=(e,t)=>t?e===t?!0:S_(e,t.parentElement):!1;function MD(e){return FQ(e)&&!0}function ZQ(e,t,n={}){const[r,i,o]=C_(e,n),a=u=>{const c=u.currentTarget;if(!MD(u)||Yl.has(c))return;Yl.add(c);const d=t(u),f=(g,v)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",m),!(!MD(g)||!Yl.has(c))&&(Yl.delete(c),d&&d(g,{success:v}))},h=g=>{f(g,n.useGlobalTarget||S_(c,g.target))},m=g=>{f(g,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",m,i)};return r.forEach(u=>{YQ(u)||(u.tabIndex=0),(n.useGlobalTarget?window:u).addEventListener("pointerdown",a,i),u.addEventListener("focus",d=>GQ(d,i),i)}),o}function FD(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),o=r[i];o&&Br.postRender(()=>o(t,x_(t)))}class JQ extends Ju{mount(){const{current:t}=this.node;t&&(this.unmount=ZQ(t,n=>(FD(this.node,n,"Start"),(r,{success:i})=>FD(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const kv=new WeakMap,Hg=new WeakMap,XQ=e=>{const t=kv.get(e.target);t&&t(e)},QQ=e=>{e.forEach(XQ)};function eee({root:e,...t}){const n=e||document;Hg.has(n)||Hg.set(n,{});const r=Hg.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(QQ,{root:e,...t})),r[i]}function tee(e,t,n){const r=eee(t);return kv.set(e,n),r.observe(e),()=>{kv.delete(e),r.unobserve(e)}}const nee={some:0,all:1};class ree extends Ju{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:o}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:nee[i]},u=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,o&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:f,onViewportLeave:h}=this.node.getProps(),m=d?f:h;m&&m(c)};return tee(this.node.current,a,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(iee(t,n))&&this.startObserver()}unmount(){}}function iee({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const oee={inView:{Feature:ree},tap:{Feature:JQ},focus:{Feature:HQ},hover:{Feature:WQ}},T_=b.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Sp=b.createContext({}),Z0=typeof window<"u",aee=Z0?b.useLayoutEffect:b.useEffect,J0=b.createContext({strict:!1});function see(e,t,n,r,i){var o,a;const{visualElement:u}=b.useContext(Sp),c=b.useContext(J0),d=b.useContext(E_),f=b.useContext(T_).reducedMotion,h=b.useRef(null);r=r||c.renderer,!h.current&&r&&(h.current=r(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:d?d.initial===!1:!1,reducedMotionConfig:f}));const m=h.current,g=b.useContext(VQ);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&uee(h.current,n,i,g);const v=b.useRef(!1);b.useInsertionEffect(()=>{m&&v.current&&m.update(n,d)});const $=n[v_],C=b.useRef(!!$&&!(!((o=window.MotionHandoffIsComplete)===null||o===void 0)&&o.call(window,$))&&((a=window.MotionHasOptimisedAnimation)===null||a===void 0?void 0:a.call(window,$)));return aee(()=>{m&&(v.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),jQ.render(m.render),C.current&&m.animationState&&m.animationState.animateChanges())}),b.useEffect(()=>{m&&(!C.current&&m.animationState&&m.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var x;(x=window.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(window,$)}),C.current=!1))}),m}function uee(e,t,n,r){const{layoutId:i,layout:o,drag:a,dragConstraints:u,layoutScroll:c,layoutRoot:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:A_(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!a||u&&w_(u),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:c,layoutRoot:d})}function A_(e){if(e)return e.options.allowProjection!==!1?e.projection:A_(e.parent)}function lee(e,t,n){return b.useCallback(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):w_(n)&&(n.current=r))},[t])}function Tp(e){return xp(e.animate)||F0.some(t=>Dc(e[t]))}function P_(e){return!!(Tp(e)||e.variants)}function cee(e,t){if(Tp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Dc(n)?n:void 0,animate:Dc(r)?r:void 0}}return e.inherit!==!1?t:{}}function dee(e){const{initial:t,animate:n}=cee(e,b.useContext(Sp));return b.useMemo(()=>({initial:t,animate:n}),[kD(t),kD(n)])}function kD(e){return Array.isArray(e)?e.join(" "):e}const BD={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"]},ku={};for(const e in BD)ku[e]={isEnabled:t=>BD[e].some(n=>!!t[n])};function Bv(e){for(const t in e)ku[t]={...ku[t],...e[t]}}const fee=Symbol.for("motionComponentSymbol");function hee({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&Bv(e);function o(u,c){let d;const f={...b.useContext(T_),...u,layoutId:pee(u)},{isStatic:h}=f,m=dee(u),g=r(u,h);if(!h&&Z0){mee(f,e);const v=gee(f);d=v.MeasureLayout,m.visualElement=see(i,g,f,t,v.ProjectionNode)}return Do.jsxs(Sp.Provider,{value:m,children:[d&&m.visualElement?Do.jsx(d,{visualElement:m.visualElement,...f}):null,n(i,u,lee(g,m.visualElement,c),g,h,m.visualElement)]})}const a=b.forwardRef(o);return a[fee]=i,a}function pee({layoutId:e}){const t=b.useContext(LQ).id;return t&&e!==void 0?t+"-"+e:e}function mee(e,t){const n=b.useContext(J0).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?qu(!1,r):cs(!1,r)}}function gee(e){const{drag:t,layout:n}=ku;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 yee=["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 X0(e){return typeof e!="string"||e.includes("-")?!1:!!(yee.indexOf(e)>-1||/[A-Z]/u.test(e))}function __(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const o in n)e.style.setProperty(o,n[o])}const R_=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 O_(e,t,n,r){__(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(R_.has(i)?i:Y0(i),t.attrs[i])}function M_(e,{layout:t,layoutId:n}){return ys.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!NQ[e]||e==="opacity")}function Q0(e,t,n){var r;const{style:i}=e,o={};for(const a in i)(ur(i[a])||t.style&&ur(t.style[a])||M_(a,e)||((r=n==null?void 0:n.getValue(a))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[a]=i[a]);return o}function F_(e,t,n){const r=Q0(e,t,n);for(const i in e)if(ur(e[i])||ur(t[i])){const o=Jc.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}function vee(e){const t=b.useRef(null);return t.current===null&&(t.current=e()),t.current}function bee({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},r,i,o){const a={latestValues:$ee(r,i,o,e),renderState:t()};return n&&(a.mount=u=>n(r,u,a)),a}const k_=e=>(t,n)=>{const r=b.useContext(Sp),i=b.useContext(E_),o=()=>bee(e,t,r,i);return n?o():vee(o)};function $ee(e,t,n,r){const i={},o=r(e,{});for(const m in o)i[m]=KQ(o[m]);let{initial:a,animate:u}=e;const c=Tp(e),d=P_(e);t&&d&&!c&&e.inherit!==!1&&(a===void 0&&(a=t.initial),u===void 0&&(u=t.animate));let f=n?n.initial===!1:!1;f=f||a===!1;const h=f?u:a;if(h&&typeof h!="boolean"&&!xp(h)){const m=Array.isArray(h)?h:[h];for(let g=0;g<m.length;g++){const v=O0(e,m[g]);if(v){const{transitionEnd:$,transition:C,...x}=v;for(const y in x){let D=x[y];if(Array.isArray(D)){const P=f?D.length-1:0;D=D[P]}D!==null&&(i[y]=D)}for(const y in $)i[y]=$[y]}}}return i}const e1=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),B_=()=>({...e1(),attrs:{}}),I_=(e,t)=>t&&typeof e=="number"?t.transform(e):e,xee={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},wee=Jc.length;function Dee(e,t,n){let r="",i=!0;for(let o=0;o<wee;o++){const a=Jc[o],u=e[a];if(u===void 0)continue;let c=!0;if(typeof u=="number"?c=u===(a.startsWith("scale")?1:0):c=parseFloat(u)===0,!c||n){const d=I_(u,j0[a]);if(!c){i=!1;const f=xee[a]||a;r+=`${f}(${d}) `}n&&(t[a]=d)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function t1(e,t,n){const{style:r,vars:i,transformOrigin:o}=e;let a=!1,u=!1;for(const c in t){const d=t[c];if(ys.has(c)){a=!0;continue}else if(H7(c)){i[c]=d;continue}else{const f=I_(d,j0[c]);c.startsWith("origin")?(u=!0,o[c]=f):r[c]=f}}if(t.transform||(a||n?r.transform=Dee(t,e.transform,n):r.transform&&(r.transform="none")),u){const{originX:c="50%",originY:d="50%",originZ:f=0}=o;r.transformOrigin=`${c} ${d} ${f}`}}function ID(e,t,n){return typeof e=="string"?e:Ze.transform(t+n*e)}function Eee(e,t,n){const r=ID(t,e.x,e.width),i=ID(n,e.y,e.height);return`${r} ${i}`}const Cee={offset:"stroke-dashoffset",array:"stroke-dasharray"},See={offset:"strokeDashoffset",array:"strokeDasharray"};function Tee(e,t,n=1,r=0,i=!0){e.pathLength=1;const o=i?Cee:See;e[o.offset]=Ze.transform(-r);const a=Ze.transform(t),u=Ze.transform(n);e[o.array]=`${a} ${u}`}function n1(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:c=0,...d},f,h){if(t1(e,d,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:m,style:g,dimensions:v}=e;m.transform&&(v&&(g.transform=m.transform),delete m.transform),v&&(i!==void 0||o!==void 0||g.transform)&&(g.transformOrigin=Eee(v,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(m.x=t),n!==void 0&&(m.y=n),r!==void 0&&(m.scale=r),a!==void 0&&Tee(m,a,u,c,!1)}const r1=e=>typeof e=="string"&&e.toLowerCase()==="svg",Aee={useVisualState:k_({scrapeMotionValuesFromProps:F_,createRenderState:B_,onMount:(e,t,{renderState:n,latestValues:r})=>{Br.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Br.render(()=>{n1(n,r,r1(t.tagName),e.transformTemplate),O_(t,n)})}})},Pee={useVisualState:k_({scrapeMotionValuesFromProps:Q0,createRenderState:e1})};function L_(e,t,n){for(const r in t)!ur(t[r])&&!M_(r,n)&&(e[r]=t[r])}function _ee({transformTemplate:e},t){return b.useMemo(()=>{const n=e1();return t1(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ree(e,t){const n=e.style||{},r={};return L_(r,n,e),Object.assign(r,_ee(e,t)),r}function Oee(e,t){const n={},r=Ree(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 Mee=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 Rh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Mee.has(e)}let V_=e=>!Rh(e);function Fee(e){e&&(V_=t=>t.startsWith("on")?!Rh(t):e(t))}try{Fee(require("@emotion/is-prop-valid").default)}catch{}function kee(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(V_(i)||n===!0&&Rh(i)||!t&&!Rh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function Bee(e,t,n,r){const i=b.useMemo(()=>{const o=B_();return n1(o,t,r1(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){const o={};L_(o,e.style,e),i.style={...o,...i.style}}return i}function Iee(e=!1){return(n,r,i,{latestValues:o},a)=>{const c=(X0(n)?Bee:Oee)(r,o,a,n),d=kee(r,typeof n=="string",e),f=n!==b.Fragment?{...d,...c,ref:i}:{},{children:h}=r,m=b.useMemo(()=>ur(h)?h.get():h,[h]);return b.createElement(n,{...f,children:m})}}function Lee(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const a={...X0(r)?Aee:Pee,preloadedFeatures:e,useRender:Iee(i),createVisualElement:t,Component:r};return hee(a)}}const Iv={current:null},N_={current:!1};function Vee(){if(N_.current=!0,!!Z0)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Iv.current=e.matches;e.addListener(t),t()}else Iv.current=!1}function Nee(e,t,n){for(const r in t){const i=t[r],o=n[r];if(ur(i))e.addValue(r,i),process.env.NODE_ENV==="development"&&$p(i.version==="11.15.0",`Attempting to mix Motion versions ${i.version} with 11.15.0 may not work as expected.`);else if(ur(o))e.addValue(r,_h(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(i):a.hasAnimated||a.set(i)}else{const a=e.getStaticValue(r);e.addValue(r,_h(a!==void 0?a:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const LD=new WeakMap,jee=[...Y7,Yn,Zu],Kee=e=>jee.find(q7(e)),VD=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Uee{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:o,visualState:a},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=L0,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 m=la.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,Br.render(this.render,!1,!0))};const{latestValues:c,renderState:d}=a;this.latestValues=c,this.baseTarget={...c},this.initialValues=n.initial?{...c}:{},this.renderState=d,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=u,this.blockInitialAnimation=!!o,this.isControllingVariants=Tp(n),this.isVariantNode=P_(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in h){const g=h[m];c[m]!==void 0&&ur(g)&&g.set(c[m],!1)}}mount(t){this.current=t,LD.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)),N_.current||Vee(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Iv.current,process.env.NODE_ENV!=="production"&&$p(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(){LD.delete(this.current),this.projection&&this.projection.unmount(),Cv(this.notifyUpdate),Cv(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=ys.has(t),i=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Br.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),o=n.on("renderRequest",this.scheduleRender);let a;window.MotionCheckAppearSync&&(a=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),o(),a&&a(),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 ku){const n=ku[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 o=this.features[t];o.isMounted?o.update():(o.mount(),o.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):D_()}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<VD.length;r++){const i=VD[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const o="on"+i,a=t[o];a&&(this.propEventSubscriptions[i]=this.on(i,a))}this.prevMotionValues=Nee(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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=_h(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"&&(z7(i)||U7(i))?i=parseFloat(i):!Kee(i)&&Zu.test(n)&&(i=r_(t,n)),this.setBaseTarget(t,ur(i)?i.get():i)),ur(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 a=O0(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);a&&(i=a[t])}if(r&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!ur(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new y_),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class j_ extends Uee{constructor(){super(...arguments),this.KeyframeResolver=i_}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;ur(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function zee(e){return window.getComputedStyle(e)}class Wee extends j_{constructor(){super(...arguments),this.type="html",this.renderInstance=__}readValueFromInstance(t,n){if(ys.has(n)){const r=K0(n);return r&&r.default||0}else{const r=zee(t),i=(H7(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return IQ(t,n)}build(t,n,r){t1(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Q0(t,n,r)}}class Hee extends j_{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=D_}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(ys.has(n)){const r=K0(n);return r&&r.default||0}return n=R_.has(n)?n:Y0(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return F_(t,n,r)}build(t,n,r){n1(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){O_(t,n,r,i)}mount(t){this.isSVGTag=r1(t.tagName),super.mount(t)}}const Gee=(e,t)=>X0(e)?new Hee(t):new Wee(t,{allowProjection:e!==b.Fragment}),qee=Lee(),Yee=wJ(qee);function Zee({children:e,features:t,strict:n=!1}){const[,r]=b.useState(!Gg(t)),i=b.useRef(void 0);if(!Gg(t)){const{renderer:o,...a}=t;i.current=o,Bv(a)}return b.useEffect(()=>{Gg(t)&&t().then(({renderer:o,...a})=>{Bv(a),i.current=o,r(!0)})},[]),Do.jsx(J0.Provider,{value:{renderer:i.current,strict:n},children:e})}function Gg(e){return typeof e=="function"}const Jee={renderer:Gee,...RQ,...oee};function K_(e){return t=>typeof t===e}var Xee=K_("function"),Qee=e=>e===null,ND=e=>Object.prototype.toString.call(e).slice(8,-1)==="RegExp",jD=e=>!ete(e)&&!Qee(e)&&(Xee(e)||typeof e=="object"),ete=K_("undefined");function tte(e,t){const{length:n}=e;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!lr(e[r],t[r]))return!1;return!0}function nte(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 rte(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(!lr(n[1],t.get(n[0])))return!1;return!0}function ite(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 lr(e,t){if(e===t)return!0;if(e&&jD(e)&&t&&jD(t)){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)&&Array.isArray(t))return tte(e,t);if(e instanceof Map&&t instanceof Map)return rte(e,t);if(e instanceof Set&&t instanceof Set)return ite(e,t);if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t))return nte(e,t);if(ND(e)&&ND(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 o=n[i];if(!(o==="_owner"&&e.$$typeof)&&!lr(e[o],t[o]))return!1}return!0}return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t}var ote=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],ate=["bigint","boolean","null","number","string","symbol","undefined"];function Ap(e){const t=Object.prototype.toString.call(e).slice(8,-1);if(/HTML\w+Element/.test(t))return"HTMLElement";if(ste(t))return t}function Si(e){return t=>Ap(t)===e}function ste(e){return ote.includes(e)}function Xu(e){return t=>typeof t===e}function ute(e){return ate.includes(e)}var lte=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Oe(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(Oe.array(e))return"Array";if(Oe.plainFunction(e))return"Function";const t=Ap(e);return t||"Object"}Oe.array=Array.isArray;Oe.arrayOf=(e,t)=>!Oe.array(e)&&!Oe.function(t)?!1:e.every(n=>t(n));Oe.asyncGeneratorFunction=e=>Ap(e)==="AsyncGeneratorFunction";Oe.asyncFunction=Si("AsyncFunction");Oe.bigint=Xu("bigint");Oe.boolean=e=>e===!0||e===!1;Oe.date=Si("Date");Oe.defined=e=>!Oe.undefined(e);Oe.domElement=e=>Oe.object(e)&&!Oe.plainObject(e)&&e.nodeType===1&&Oe.string(e.nodeName)&<e.every(t=>t in e);Oe.empty=e=>Oe.string(e)&&e.length===0||Oe.array(e)&&e.length===0||Oe.object(e)&&!Oe.map(e)&&!Oe.set(e)&&Object.keys(e).length===0||Oe.set(e)&&e.size===0||Oe.map(e)&&e.size===0;Oe.error=Si("Error");Oe.function=Xu("function");Oe.generator=e=>Oe.iterable(e)&&Oe.function(e.next)&&Oe.function(e.throw);Oe.generatorFunction=Si("GeneratorFunction");Oe.instanceOf=(e,t)=>!e||!t?!1:Object.getPrototypeOf(e)===t.prototype;Oe.iterable=e=>!Oe.nullOrUndefined(e)&&Oe.function(e[Symbol.iterator]);Oe.map=Si("Map");Oe.nan=e=>Number.isNaN(e);Oe.null=e=>e===null;Oe.nullOrUndefined=e=>Oe.null(e)||Oe.undefined(e);Oe.number=e=>Xu("number")(e)&&!Oe.nan(e);Oe.numericString=e=>Oe.string(e)&&e.length>0&&!Number.isNaN(Number(e));Oe.object=e=>!Oe.nullOrUndefined(e)&&(Oe.function(e)||typeof e=="object");Oe.oneOf=(e,t)=>Oe.array(e)?e.indexOf(t)>-1:!1;Oe.plainFunction=Si("Function");Oe.plainObject=e=>{if(Ap(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.getPrototypeOf({})};Oe.primitive=e=>Oe.null(e)||ute(typeof e);Oe.promise=Si("Promise");Oe.propertyOf=(e,t,n)=>{if(!Oe.object(e)||!t)return!1;const r=e[t];return Oe.function(n)?n(r):Oe.defined(r)};Oe.regexp=Si("RegExp");Oe.set=Si("Set");Oe.string=Xu("string");Oe.symbol=Xu("symbol");Oe.undefined=Xu("undefined");Oe.weakMap=Si("WeakMap");Oe.weakSet=Si("WeakSet");var ke=Oe;function cte(...e){return e.every(t=>ke.string(t)||ke.array(t)||ke.plainObject(t))}function dte(e,t,n){return U_(e,t)?[e,t].every(ke.array)?!e.some(HD(n))&&t.some(HD(n)):[e,t].every(ke.plainObject)?!Object.entries(e).some(WD(n))&&Object.entries(t).some(WD(n)):t===n:!1}function KD(e,t,n){const{actual:r,key:i,previous:o,type:a}=n,u=Ki(e,i),c=Ki(t,i);let d=[u,c].every(ke.number)&&(a==="increased"?u<c:u>c);return ke.undefined(r)||(d=d&&c===r),ke.undefined(o)||(d=d&&u===o),d}function UD(e,t,n){const{key:r,type:i,value:o}=n,a=Ki(e,r),u=Ki(t,r),c=i==="added"?a:u,d=i==="added"?u:a;if(!ke.nullOrUndefined(o)){if(ke.defined(c)){if(ke.array(c)||ke.plainObject(c))return dte(c,d,o)}else return lr(d,o);return!1}return[a,u].every(ke.array)?!d.every(i1(c)):[a,u].every(ke.plainObject)?fte(Object.keys(c),Object.keys(d)):![a,u].every(f=>ke.primitive(f)&&ke.defined(f))&&(i==="added"?!ke.defined(a)&&ke.defined(u):ke.defined(a)&&!ke.defined(u))}function zD(e,t,{key:n}={}){let r=Ki(e,n),i=Ki(t,n);if(!U_(r,i))throw new TypeError("Inputs have different types");if(!cte(r,i))throw new TypeError("Inputs don't have length");return[r,i].every(ke.plainObject)&&(r=Object.keys(r),i=Object.keys(i)),[r,i]}function WD(e){return([t,n])=>ke.array(e)?lr(e,n)||e.some(r=>lr(r,n)||ke.array(n)&&i1(n)(r)):ke.plainObject(e)&&e[t]?!!e[t]&&lr(e[t],n):lr(e,n)}function fte(e,t){return t.some(n=>!e.includes(n))}function HD(e){return t=>ke.array(e)?e.some(n=>lr(n,t)||ke.array(t)&&i1(t)(n)):lr(e,t)}function Fl(e,t){return ke.array(e)?e.some(n=>lr(n,t)):lr(e,t)}function i1(e){return t=>e.some(n=>lr(n,t))}function U_(...e){return e.every(ke.array)||e.every(ke.number)||e.every(ke.plainObject)||e.every(ke.string)}function Ki(e,t){return ke.plainObject(e)||ke.array(e)?ke.string(t)?t.split(".").reduce((r,i)=>r&&r[i],e):ke.number(t)?e[t]:e:e}function Oh(e,t){if([e,t].some(ke.nullOrUndefined))throw new Error("Missing required parameters");if(![e,t].every(f=>ke.plainObject(f)||ke.array(f)))throw new Error("Expected plain objects or array");return{added:(f,h)=>{try{return UD(e,t,{key:f,type:"added",value:h})}catch{return!1}},changed:(f,h,m)=>{try{const g=Ki(e,f),v=Ki(t,f),$=ke.defined(h),C=ke.defined(m);if($||C){const x=C?Fl(m,g):!Fl(h,g),y=Fl(h,v);return x&&y}return[g,v].every(ke.array)||[g,v].every(ke.plainObject)?!lr(g,v):g!==v}catch{return!1}},changedFrom:(f,h,m)=>{if(!ke.defined(f))return!1;try{const g=Ki(e,f),v=Ki(t,f),$=ke.defined(m);return Fl(h,g)&&($?Fl(m,v):!$)}catch{return!1}},decreased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"decreased"})}catch{return!1}},emptied:f=>{try{const[h,m]=zD(e,t,{key:f});return!!h.length&&!m.length}catch{return!1}},filled:f=>{try{const[h,m]=zD(e,t,{key:f});return!h.length&&!!m.length}catch{return!1}},increased:(f,h,m)=>{if(!ke.defined(f))return!1;try{return KD(e,t,{key:f,actual:h,previous:m,type:"increased"})}catch{return!1}},removed:(f,h)=>{try{return UD(e,t,{key:f,type:"removed",value:h})}catch{return!1}}}}var qg,GD;function hte(){if(GD)return qg;GD=1;var e=new Error("Element already at target scroll position"),t=new Error("Scroll cancelled"),n=Math.min,r=Date.now;qg={left:i("scrollLeft"),top:i("scrollTop")};function i(u){return function(d,f,h,m){h=h||{},typeof h=="function"&&(m=h,h={}),typeof m!="function"&&(m=a);var g=r(),v=d[u],$=h.ease||o,C=isNaN(h.duration)?350:+h.duration,x=!1;return v===f?m(e,d[u]):requestAnimationFrame(D),y;function y(){x=!0}function D(P){if(x)return m(t,d[u]);var E=r(),T=n(1,(E-g)/C),k=$(T);d[u]=k*(f-v)+v,T<1?requestAnimationFrame(D):requestAnimationFrame(function(){m(null,d[u])})}}}function o(u){return .5*(1-Math.cos(Math.PI*u))}function a(){}return qg}var pte=hte();const mte=To(pte);var Vf={exports:{}},gte=Vf.exports,qD;function yte(){return qD||(qD=1,function(e){(function(t,n){e.exports?e.exports=n():t.Scrollparent=n()})(gte,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})}(Vf)),Vf.exports}var vte=yte();const z_=To(vte);var Yg,YD;function bte(){if(YD)return Yg;YD=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,Yg=n,Yg}var $te=bte();const ZD=To($te);var Zg,JD;function xte(){if(JD)return Zg;JD=1;var e=function(y){return t(y)&&!n(y)};function t(x){return!!x&&typeof x=="object"}function n(x){var y=Object.prototype.toString.call(x);return y==="[object RegExp]"||y==="[object Date]"||o(x)}var r=typeof Symbol=="function"&&Symbol.for,i=r?Symbol.for("react.element"):60103;function o(x){return x.$$typeof===i}function a(x){return Array.isArray(x)?[]:{}}function u(x,y){return y.clone!==!1&&y.isMergeableObject(x)?$(a(x),x,y):x}function c(x,y,D){return x.concat(y).map(function(P){return u(P,D)})}function d(x,y){if(!y.customMerge)return $;var D=y.customMerge(x);return typeof D=="function"?D:$}function f(x){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(x).filter(function(y){return Object.propertyIsEnumerable.call(x,y)}):[]}function h(x){return Object.keys(x).concat(f(x))}function m(x,y){try{return y in x}catch{return!1}}function g(x,y){return m(x,y)&&!(Object.hasOwnProperty.call(x,y)&&Object.propertyIsEnumerable.call(x,y))}function v(x,y,D){var P={};return D.isMergeableObject(x)&&h(x).forEach(function(E){P[E]=u(x[E],D)}),h(y).forEach(function(E){g(x,E)||(m(x,E)&&D.isMergeableObject(y[E])?P[E]=d(E,D)(x[E],y[E],D):P[E]=u(y[E],D))}),P}function $(x,y,D){D=D||{},D.arrayMerge=D.arrayMerge||c,D.isMergeableObject=D.isMergeableObject||e,D.cloneUnlessOtherwiseSpecified=u;var P=Array.isArray(y),E=Array.isArray(x),T=P===E;return T?P?D.arrayMerge(x,y,D):v(x,y,D):u(y,D)}$.all=function(y,D){if(!Array.isArray(y))throw new Error("first argument should be an array");return y.reduce(function(P,E){return $(P,E,D)},{})};var C=$;return Zg=C,Zg}var wte=xte();const bi=To(wte);var yf={exports:{}},vf={exports:{}},Et={};/** @license React v16.13.1
|
|
156
156
|
* react-is.production.min.js
|
|
157
157
|
*
|
|
158
158
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -220,4 +220,4 @@ Valid keys: `+JSON.stringify(Object.keys(V),null," "));var le=he($e,xe,fe,ie,Ee
|
|
|
220
220
|
transform: scale(1);
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ke.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ke.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:u,styles:c}=this.props,d=Bi(i.open),f={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let h;if(e){const m=e;h=qe.createElement(m,{continuous:t,index:n,isLastStep:r,size:a,step:u,...f})}else h=qe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...f},qe.createElement("span",{style:c.beaconInner}),qe.createElement("span",{style:c.beaconOuter}));return h}};function Ere({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return b.createElement("button",{style:o,type:"button",...t},b.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var Cre=Ere;function Sre(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:u,tooltipProps:c}=e,{content:d,hideBackButton:f,hideCloseButton:h,hideFooter:m,showSkipButton:g,styles:v,title:$}=u,C={};return C.primary=qe.createElement("button",{"data-test-id":"button-primary",style:v.buttonNext,type:"button",...o}),g&&!i&&(C.skip=qe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:v.buttonSkip,type:"button",...a})),!f&&r>0&&(C.back=qe.createElement("button",{"data-test-id":"button-back",style:v.buttonBack,type:"button",...t})),C.close=!h&&qe.createElement(Cre,{"data-test-id":"button-close",styles:v.buttonClose,...n}),qe.createElement("div",{key:"JoyrideTooltip","aria-label":Bi($??d),className:"react-joyride__tooltip",style:v.tooltip,...c},qe.createElement("div",{style:v.tooltipContainer},$&&qe.createElement("h1",{"aria-label":Bi($),style:v.tooltipTitle},$),qe.createElement("div",{style:v.tooltipContent},d)),!m&&qe.createElement("div",{style:v.tooltipFooter},qe.createElement("div",{style:v.tooltipFooterSpacer},C.skip),C.back,C.primary),C.close)}var Tre=Sre,Are=class extends qe.Component{constructor(){super(...arguments),Be(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Be(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Be(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Be(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Be(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:u,last:c,next:d,nextLabelWithProgress:f,skip:h}=o.locale,m=Bi(a),g=Bi(u),v=Bi(c),$=Bi(d),C=Bi(h);let x=u,y=g;if(e){if(x=d,y=$,o.showProgress&&!n){const D=Bi(f,{step:t+1,steps:i});x=Uv(f,t+1,i),y=D}n&&(x=c,y=v)}return{backProps:{"aria-label":m,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:m},closeProps:{"aria-label":g,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:g},primaryProps:{"aria-label":y,children:x,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:y},skipProps:{"aria-label":C,children:h,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:C},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:u,...c}=o;let d;if(u){const f={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},h=u;d=qe.createElement(h,{...f})}else d=qe.createElement(Tre,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},Pre=class extends qe.Component{constructor(){super(...arguments),Be(this,"scope",null),Be(this,"tooltip",null),Be(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Qe.TOOLTIP})}),Be(this,"setTooltipRef",e=>{this.tooltip=e}),Be(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||o.placement==="center")&&i===Qe.INIT&&a.update({action:r,lifecycle:Qe.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Be(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return qe.createElement(Are,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;ma({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:a,helpers:u,index:c,lifecycle:d,shouldScroll:f,status:h,step:m,store:g}=this.props,{changed:v,changedFrom:$}=Oh(e,this.props),C=u.info(),x=i&&n!==$t.CLOSE&&(c>0||n===$t.PREV),y=v("action")||v("index")||v("lifecycle")||v("status"),D=$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT),P=v("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE]),E=o&&c===e.index;if(P&&(D||E)&&r({...C,index:e.index,lifecycle:Qe.COMPLETE,step:e.step,type:ri.STEP_AFTER}),m.placement==="center"&&h===ct.RUNNING&&v("index")&&n!==$t.START&&d===Qe.INIT&&g.update({lifecycle:Qe.READY}),y){const T=bo(m.target),k=!!T;k&&tre(T)?($("status",ct.READY,ct.RUNNING)||$("lifecycle",Qe.INIT,Qe.READY))&&r({...C,step:m,type:ri.STEP_BEFORE}):(console.warn(k?"Target not visible":"Target not mounted",m),r({...C,type:ri.TARGET_NOT_FOUND,step:m}),o||g.update({index:c+(n===$t.PREV?-1:1)}))}$("lifecycle",Qe.INIT,Qe.READY)&&g.update({lifecycle:DE(m)||x?Qe.TOOLTIP:Qe.BEACON}),v("index")&&ma({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),v("lifecycle",Qe.BEACON)&&r({...C,step:m,type:ri.BEACON}),v("lifecycle",Qe.TOOLTIP)&&(r({...C,step:m,type:ri.TOOLTIP}),f&&this.tooltip&&(this.scope=new wre(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT)&&((t=this.scope)==null||t.removeScope(),g.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return DE(t)||e===Qe.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,u=bo(a.target);return!wR(a)||!ke.domElement(u)?null:qe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},qe.createElement(f1,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},qe.createElement(Dre,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles})))}},ER=class extends qe.Component{constructor(e){super(e),Be(this,"helpers"),Be(this,"store"),Be(this,"callback",a=>{const{callback:u}=this.props;ke.function(u)&&u(a)}),Be(this,"handleKeyboard",a=>{const{index:u,lifecycle:c}=this.state,{steps:d}=this.props,f=d[u];c===Qe.TOOLTIP&&a.code==="Escape"&&f&&!f.disableCloseOnEsc&&this.store.close("keyboard")}),Be(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:u}=this.props;qs(this.props,u[a]).disableOverlayClose||this.helpers.close("overlay")}),Be(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=yre({...e,controlled:r&&ke.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;ma({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!ea())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;SE(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ea())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:u,stepIndex:c,steps:d}=this.props,{stepIndex:f,steps:h}=e,{reset:m,setSteps:g,start:v,stop:$,update:C}=this.store,{changed:x}=Oh(e,this.props),{changed:y,changedFrom:D}=Oh(t,this.state),P=qs(this.props,d[i]),E=!lr(h,d),T=ke.number(c)&&x("stepIndex"),k=bo(P.target);if(E&&(SE(d,a)?g(d):console.warn("Steps are not valid",d)),x("run")&&(u?v(c):$()),T){let O=ke.number(f)&&f<c?$t.NEXT:$t.PREV;n===$t.STOP&&(O=$t.START),[ct.FINISHED,ct.SKIPPED].includes(o)||C({action:n===$t.CLOSE?$t.CLOSE:O,index:c,lifecycle:Qe.INIT})}!r&&o===ct.RUNNING&&i===0&&!k&&(this.store.update({index:i+1}),this.callback({...this.state,type:ri.TARGET_NOT_FOUND,step:P}));const S={...this.state,index:i,step:P};if(y("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE])&&y("status",ct.PAUSED)){const O=qs(this.props,d[t.index]);this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER})}if(y("status",[ct.FINISHED,ct.SKIPPED])){const O=qs(this.props,d[t.index]);r||this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER}),this.callback({...S,type:ri.TOUR_END,step:O,index:t.index}),m()}else D("status",[ct.IDLE,ct.READY],ct.RUNNING)?this.callback({...S,type:ri.TOUR_START}):(y("status")||y("action",$t.RESET))&&this.callback({...S,type:ri.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:a,scrollOffset:u=20,scrollToFirstStep:c=!1,steps:d}=this.props,f=qs(this.props,d[t]),h=bo(f.target),m=lre({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:f,target:h});if(r===ct.RUNNING&&m){const g=sd(h,o),v=Tc(h,o);let $=Math.floor(rre(h,u,o))||0;ma({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const C=this.store.getPopper("beacon"),x=this.store.getPopper("tooltip");if(n===Qe.BEACON&&C){const{offsets:y,placement:D}=C;!["bottom"].includes(D)&&!g&&($=Math.floor(y.popper.top-u))}else if(n===Qe.TOOLTIP&&x){const{flipped:y,offsets:D,placement:P}=x;["top","right","left"].includes(P)&&!y&&!g?$=Math.floor(D.popper.top-u):$-=f.spotlightPadding}$=$>=0?$:0,r===ct.RUNNING&&ire($,{element:v,duration:a}).then(()=>{setTimeout(()=>{var y;(y=this.store.getPopper("tooltip"))==null||y.instance.update()},10)})}}render(){if(!ea())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:u}=this.props,c=n===ct.RUNNING,d={};if(c&&u[e]){const f=qs(this.props,u[e]);d.step=qe.createElement(Pre,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!f.disableScrolling&&(e!==0||a),step:f,store:this.store}),d.overlay=qe.createElement(xre,{id:"react-joyride-portal"},qe.createElement($re,{...f,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return qe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};Be(ER,"defaultProps",fre);var _re=ER;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=fA;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=zC;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Bc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=kV;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=xn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=Gj;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=qT;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Qn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=JN;exports.$293f70390ea03370$export$497855f14858aa34=jj;exports.$32489daedd52963e$export$1315d136e6f7581=Qj;exports.$337b884510726a0d$export$c6fdb837b070b4ff=Cj;exports.$36a0ac60f04457c5$export$136073280381448e=jN;exports.$3c0fc76039f1c516$export$60e84778edff6d26=XA;exports.$40df3f8667284809$export$d55e7ee900f34e93=rK;exports.$46a4342aab3d8076$export$87e0539f600c24e5=LN;exports.$47b897dc8cdb026b$export$8d15029008292ae=tj;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=QN;exports.$6057a3d2a53a12fd$export$42df105a73306d51=Yj;exports.$64244302c3013299$export$dd0bbc9b26defe37=vN;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=ON;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=nK;exports.$93c38a5e28be6249$export$e50a61c1de9f574=jK;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=IN;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=wK;exports.$a916eb452884faea$export$b7a616150fdb9f44=RN;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=AK;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=FK;exports.$bb77f239b46e8c72$export$3274cf84b703fff=$S;exports.$bcca50147b47f54d$export$56b2c08e277f365=ej;exports.$c132121280ec012d$export$50eacbbf140a3141=Mj;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=kj;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=Wj;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=VN;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=KK;exports.$f2f8a6077418541e$export$542a6fd13ac93354=wj;exports.$fae977aafc393c5c$export$6b862160d295c8e=GV;exports.ACTIONS=$t;exports.AdvancedImage=RW;exports.Cloudinary=SH;exports.EVENTS=ri;exports.FormProvider=aK;exports.LazyMotion=mZ;exports.M=oL;exports.M$1=gi;exports.R=hs;exports.ReorderGroup=Gee;exports.ReorderItem=Jee;exports.STATUS=ct;exports._=GI;exports.autoUpdate=dC;exports.components_default=_re;exports.dayjs=HK;exports.domAnimation=gZ;exports.dt=QE;exports.ee=tP;exports.flip=zI;exports.isNumber=NH;exports.lazyload=Qz;exports.lodashExports=mC;exports.lt=Yv;exports.m=pZ;exports.mt=lI;exports.nt=aI;exports.o=RH;exports.offset=UI;exports.ot=sI;exports.placeholder=rW;exports.prismExports=AH;exports.q=Ob;exports.useController=lK;exports.useFloating=KI;exports.useForm=xK;exports.useFormContext=op;
|
|
223
|
+
`)),t.appendChild(n)}componentDidMount(){const{shouldFocus:e}=this.props;process.env.NODE_ENV!=="production"&&(ke.domElement(this.beacon)||console.warn("beacon is not a valid DOM element")),setTimeout(()=>{ke.domElement(this.beacon)&&e&&this.beacon.focus()},0)}componentWillUnmount(){const e=document.getElementById("joyride-beacon-animation");e!=null&&e.parentNode&&e.parentNode.removeChild(e)}render(){const{beaconComponent:e,continuous:t,index:n,isLastStep:r,locale:i,onClickOrHover:o,size:a,step:u,styles:c}=this.props,d=Bi(i.open),f={"aria-label":d,onClick:o,onMouseEnter:o,ref:this.setBeaconRef,title:d};let h;if(e){const m=e;h=qe.createElement(m,{continuous:t,index:n,isLastStep:r,size:a,step:u,...f})}else h=qe.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:c.beacon,type:"button",...f},qe.createElement("span",{style:c.beaconInner}),qe.createElement("span",{style:c.beaconOuter}));return h}};function Ere({styles:e,...t}){const{color:n,height:r,width:i,...o}=e;return b.createElement("button",{style:o,type:"button",...t},b.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof i=="number"?`${i}px`:i,xmlns:"http://www.w3.org/2000/svg"},b.createElement("g",null,b.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:n}))))}var Cre=Ere;function Sre(e){const{backProps:t,closeProps:n,index:r,isLastStep:i,primaryProps:o,skipProps:a,step:u,tooltipProps:c}=e,{content:d,hideBackButton:f,hideCloseButton:h,hideFooter:m,showSkipButton:g,styles:v,title:$}=u,C={};return C.primary=qe.createElement("button",{"data-test-id":"button-primary",style:v.buttonNext,type:"button",...o}),g&&!i&&(C.skip=qe.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:v.buttonSkip,type:"button",...a})),!f&&r>0&&(C.back=qe.createElement("button",{"data-test-id":"button-back",style:v.buttonBack,type:"button",...t})),C.close=!h&&qe.createElement(Cre,{"data-test-id":"button-close",styles:v.buttonClose,...n}),qe.createElement("div",{key:"JoyrideTooltip","aria-label":Bi($??d),className:"react-joyride__tooltip",style:v.tooltip,...c},qe.createElement("div",{style:v.tooltipContainer},$&&qe.createElement("h1",{"aria-label":Bi($),style:v.tooltipTitle},$),qe.createElement("div",{style:v.tooltipContent},d)),!m&&qe.createElement("div",{style:v.tooltipFooter},qe.createElement("div",{style:v.tooltipFooterSpacer},C.skip),C.back,C.primary),C.close)}var Tre=Sre,Are=class extends qe.Component{constructor(){super(...arguments),Be(this,"handleClickBack",e=>{e.preventDefault();const{helpers:t}=this.props;t.prev()}),Be(this,"handleClickClose",e=>{e.preventDefault();const{helpers:t}=this.props;t.close("button_close")}),Be(this,"handleClickPrimary",e=>{e.preventDefault();const{continuous:t,helpers:n}=this.props;if(!t){n.close("button_primary");return}n.next()}),Be(this,"handleClickSkip",e=>{e.preventDefault();const{helpers:t}=this.props;t.skip()}),Be(this,"getElementsProps",()=>{const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{back:a,close:u,last:c,next:d,nextLabelWithProgress:f,skip:h}=o.locale,m=Bi(a),g=Bi(u),v=Bi(c),$=Bi(d),C=Bi(h);let x=u,y=g;if(e){if(x=d,y=$,o.showProgress&&!n){const D=Bi(f,{step:t+1,steps:i});x=Uv(f,t+1,i),y=D}n&&(x=c,y=v)}return{backProps:{"aria-label":m,children:a,"data-action":"back",onClick:this.handleClickBack,role:"button",title:m},closeProps:{"aria-label":g,children:u,"data-action":"close",onClick:this.handleClickClose,role:"button",title:g},primaryProps:{"aria-label":y,children:x,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:y},skipProps:{"aria-label":C,children:h,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:C},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:e,index:t,isLastStep:n,setTooltipRef:r,size:i,step:o}=this.props,{beaconComponent:a,tooltipComponent:u,...c}=o;let d;if(u){const f={...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:c,setTooltipRef:r},h=u;d=qe.createElement(h,{...f})}else d=qe.createElement(Tre,{...this.getElementsProps(),continuous:e,index:t,isLastStep:n,size:i,step:o});return d}},Pre=class extends qe.Component{constructor(){super(...arguments),Be(this,"scope",null),Be(this,"tooltip",null),Be(this,"handleClickHoverBeacon",e=>{const{step:t,store:n}=this.props;e.type==="mouseenter"&&t.event!=="hover"||n.update({lifecycle:Qe.TOOLTIP})}),Be(this,"setTooltipRef",e=>{this.tooltip=e}),Be(this,"setPopper",(e,t)=>{var n;const{action:r,lifecycle:i,step:o,store:a}=this.props;t==="wrapper"?a.setPopper("beacon",e):a.setPopper("tooltip",e),a.getPopper("beacon")&&(a.getPopper("tooltip")||o.placement==="center")&&i===Qe.INIT&&a.update({action:r,lifecycle:Qe.READY}),(n=o.floaterProps)!=null&&n.getPopper&&o.floaterProps.getPopper(e,t)}),Be(this,"renderTooltip",e=>{const{continuous:t,helpers:n,index:r,size:i,step:o}=this.props;return qe.createElement(Are,{continuous:t,helpers:n,index:r,isLastStep:r+1===i,setTooltipRef:this.setTooltipRef,size:i,step:o,...e})})}componentDidMount(){const{debug:e,index:t}=this.props;ma({title:`step:${t}`,data:[{key:"props",value:this.props}],debug:e})}componentDidUpdate(e){var t;const{action:n,callback:r,continuous:i,controlled:o,debug:a,helpers:u,index:c,lifecycle:d,shouldScroll:f,status:h,step:m,store:g}=this.props,{changed:v,changedFrom:$}=Oh(e,this.props),C=u.info(),x=i&&n!==$t.CLOSE&&(c>0||n===$t.PREV),y=v("action")||v("index")||v("lifecycle")||v("status"),D=$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT),P=v("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE]),E=o&&c===e.index;if(P&&(D||E)&&r({...C,index:e.index,lifecycle:Qe.COMPLETE,step:e.step,type:ri.STEP_AFTER}),m.placement==="center"&&h===ct.RUNNING&&v("index")&&n!==$t.START&&d===Qe.INIT&&g.update({lifecycle:Qe.READY}),y){const T=bo(m.target),k=!!T;k&&tre(T)?($("status",ct.READY,ct.RUNNING)||$("lifecycle",Qe.INIT,Qe.READY))&&r({...C,step:m,type:ri.STEP_BEFORE}):(console.warn(k?"Target not visible":"Target not mounted",m),r({...C,type:ri.TARGET_NOT_FOUND,step:m}),o||g.update({index:c+(n===$t.PREV?-1:1)}))}$("lifecycle",Qe.INIT,Qe.READY)&&g.update({lifecycle:DE(m)||x?Qe.TOOLTIP:Qe.BEACON}),v("index")&&ma({title:`step:${d}`,data:[{key:"props",value:this.props}],debug:a}),v("lifecycle",Qe.BEACON)&&r({...C,step:m,type:ri.BEACON}),v("lifecycle",Qe.TOOLTIP)&&(r({...C,step:m,type:ri.TOOLTIP}),f&&this.tooltip&&(this.scope=new wre(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),$("lifecycle",[Qe.TOOLTIP,Qe.INIT],Qe.INIT)&&((t=this.scope)==null||t.removeScope(),g.cleanupPoppers())}componentWillUnmount(){var e;(e=this.scope)==null||e.removeScope()}get open(){const{lifecycle:e,step:t}=this.props;return DE(t)||e===Qe.TOOLTIP}render(){const{continuous:e,debug:t,index:n,nonce:r,shouldScroll:i,size:o,step:a}=this.props,u=bo(a.target);return!wR(a)||!ke.domElement(u)?null:qe.createElement("div",{key:`JoyrideStep-${n}`,className:"react-joyride__step"},qe.createElement(f1,{...a.floaterProps,component:this.renderTooltip,debug:t,getPopper:this.setPopper,id:`react-joyride-step-${n}`,open:this.open,placement:a.placement,target:a.target},qe.createElement(Dre,{beaconComponent:a.beaconComponent,continuous:e,index:n,isLastStep:n+1===o,locale:a.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:i,size:o,step:a,styles:a.styles})))}},ER=class extends qe.Component{constructor(e){super(e),Be(this,"helpers"),Be(this,"store"),Be(this,"callback",a=>{const{callback:u}=this.props;ke.function(u)&&u(a)}),Be(this,"handleKeyboard",a=>{const{index:u,lifecycle:c}=this.state,{steps:d}=this.props,f=d[u];c===Qe.TOOLTIP&&a.code==="Escape"&&f&&!f.disableCloseOnEsc&&this.store.close("keyboard")}),Be(this,"handleClickOverlay",()=>{const{index:a}=this.state,{steps:u}=this.props;qs(this.props,u[a]).disableOverlayClose||this.helpers.close("overlay")}),Be(this,"syncState",a=>{this.setState(a)});const{debug:t,getHelpers:n,run:r=!0,stepIndex:i}=e;this.store=yre({...e,controlled:r&&ke.number(i)}),this.helpers=this.store.getHelpers();const{addListener:o}=this.store;ma({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:t}),o(this.syncState),n&&n(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!ea())return;const{debug:e,disableCloseOnEsc:t,run:n,steps:r}=this.props,{start:i}=this.store;SE(r,e)&&n&&i(),t||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(e,t){if(!ea())return;const{action:n,controlled:r,index:i,status:o}=this.state,{debug:a,run:u,stepIndex:c,steps:d}=this.props,{stepIndex:f,steps:h}=e,{reset:m,setSteps:g,start:v,stop:$,update:C}=this.store,{changed:x}=Oh(e,this.props),{changed:y,changedFrom:D}=Oh(t,this.state),P=qs(this.props,d[i]),E=!lr(h,d),T=ke.number(c)&&x("stepIndex"),k=bo(P.target);if(E&&(SE(d,a)?g(d):console.warn("Steps are not valid",d)),x("run")&&(u?v(c):$()),T){let O=ke.number(f)&&f<c?$t.NEXT:$t.PREV;n===$t.STOP&&(O=$t.START),[ct.FINISHED,ct.SKIPPED].includes(o)||C({action:n===$t.CLOSE?$t.CLOSE:O,index:c,lifecycle:Qe.INIT})}!r&&o===ct.RUNNING&&i===0&&!k&&(this.store.update({index:i+1}),this.callback({...this.state,type:ri.TARGET_NOT_FOUND,step:P}));const S={...this.state,index:i,step:P};if(y("action",[$t.NEXT,$t.PREV,$t.SKIP,$t.CLOSE])&&y("status",ct.PAUSED)){const O=qs(this.props,d[t.index]);this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER})}if(y("status",[ct.FINISHED,ct.SKIPPED])){const O=qs(this.props,d[t.index]);r||this.callback({...S,index:t.index,lifecycle:Qe.COMPLETE,step:O,type:ri.STEP_AFTER}),this.callback({...S,type:ri.TOUR_END,step:O,index:t.index}),m()}else D("status",[ct.IDLE,ct.READY],ct.RUNNING)?this.callback({...S,type:ri.TOUR_START}):(y("status")||y("action",$t.RESET))&&this.callback({...S,type:ri.TOUR_STATUS});this.scrollToStep(t)}componentWillUnmount(){const{disableCloseOnEsc:e}=this.props;e||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(e){const{index:t,lifecycle:n,status:r}=this.state,{debug:i,disableScrollParentFix:o=!1,scrollDuration:a,scrollOffset:u=20,scrollToFirstStep:c=!1,steps:d}=this.props,f=qs(this.props,d[t]),h=bo(f.target),m=lre({isFirstStep:t===0,lifecycle:n,previousLifecycle:e.lifecycle,scrollToFirstStep:c,step:f,target:h});if(r===ct.RUNNING&&m){const g=sd(h,o),v=Tc(h,o);let $=Math.floor(rre(h,u,o))||0;ma({title:"scrollToStep",data:[{key:"index",value:t},{key:"lifecycle",value:n},{key:"status",value:r}],debug:i});const C=this.store.getPopper("beacon"),x=this.store.getPopper("tooltip");if(n===Qe.BEACON&&C){const{offsets:y,placement:D}=C;!["bottom"].includes(D)&&!g&&($=Math.floor(y.popper.top-u))}else if(n===Qe.TOOLTIP&&x){const{flipped:y,offsets:D,placement:P}=x;["top","right","left"].includes(P)&&!y&&!g?$=Math.floor(D.popper.top-u):$-=f.spotlightPadding}$=$>=0?$:0,r===ct.RUNNING&&ire($,{element:v,duration:a}).then(()=>{setTimeout(()=>{var y;(y=this.store.getPopper("tooltip"))==null||y.instance.update()},10)})}}render(){if(!ea())return null;const{index:e,lifecycle:t,status:n}=this.state,{continuous:r=!1,debug:i=!1,nonce:o,scrollToFirstStep:a=!1,steps:u}=this.props,c=n===ct.RUNNING,d={};if(c&&u[e]){const f=qs(this.props,u[e]);d.step=qe.createElement(Pre,{...this.state,callback:this.callback,continuous:r,debug:i,helpers:this.helpers,nonce:o,shouldScroll:!f.disableScrolling&&(e!==0||a),step:f,store:this.store}),d.overlay=qe.createElement(xre,{id:"react-joyride-portal"},qe.createElement($re,{...f,continuous:r,debug:i,lifecycle:t,onClickOverlay:this.handleClickOverlay}))}return qe.createElement("div",{className:"react-joyride"},d.step,d.overlay)}};Be(ER,"defaultProps",fre);var _re=ER;exports.$131cf43a05231e1e$export$6d095e787d2b5e1f=fA;exports.$14e0f24ef4ac5c92$export$629b0a497aa65267=zC;exports.$14e0f24ef4ac5c92$export$aa8b41735afcabd2=Bc;exports.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654=kV;exports.$14e0f24ef4ac5c92$export$ea39ec197993aef0=xn;exports.$16f0b7bb276bc17e$export$4c842f6a241dc825=Gj;exports.$16f0b7bb276bc17e$export$5591b0b878c1a989=qT;exports.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7=Qn;exports.$28f99e3e86e6ec45$export$e5fda3247f5d67f9=JN;exports.$293f70390ea03370$export$497855f14858aa34=jj;exports.$32489daedd52963e$export$1315d136e6f7581=Qj;exports.$337b884510726a0d$export$c6fdb837b070b4ff=Cj;exports.$36a0ac60f04457c5$export$136073280381448e=jN;exports.$3c0fc76039f1c516$export$60e84778edff6d26=XA;exports.$40df3f8667284809$export$d55e7ee900f34e93=rK;exports.$46a4342aab3d8076$export$87e0539f600c24e5=LN;exports.$47b897dc8cdb026b$export$8d15029008292ae=tj;exports.$5c3e21d68f1c4674$export$439d29a4e110a164=QN;exports.$6057a3d2a53a12fd$export$42df105a73306d51=Yj;exports.$64244302c3013299$export$dd0bbc9b26defe37=vN;exports.$701a24aa0da5b062$export$ea18c227d4417cc3=ON;exports.$887cac91b7cc8801$export$12fd5f0e9f4bb192=nK;exports.$93c38a5e28be6249$export$e50a61c1de9f574=jK;exports.$9942cad8a072a530$export$3ee915f8151bd4f1=IN;exports.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90=wK;exports.$a916eb452884faea$export$b7a616150fdb9f44=RN;exports.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e=AK;exports.$ab5bf3f618090389$export$87194bb378cc3ac2=FK;exports.$bb77f239b46e8c72$export$3274cf84b703fff=$S;exports.$bcca50147b47f54d$export$56b2c08e277f365=ej;exports.$c132121280ec012d$export$50eacbbf140a3141=Mj;exports.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2=kj;exports.$c350ade66beef0af$export$8c18d1b4f7232bbf=Wj;exports.$e3031d1f8c9d64eb$export$cb95147730a423f5=VN;exports.$eff5d8ee529ac4bb$export$fd53cef0cc796101=KK;exports.$f2f8a6077418541e$export$542a6fd13ac93354=wj;exports.$fae977aafc393c5c$export$6b862160d295c8e=GV;exports.ACTIONS=$t;exports.AdvancedImage=RW;exports.Cloudinary=SH;exports.EVENTS=ri;exports.FormProvider=aK;exports.LazyMotion=Zee;exports.M=oL;exports.M$1=gi;exports.R=hs;exports.ReorderGroup=yJ;exports.ReorderItem=xJ;exports.STATUS=ct;exports._=GI;exports.autoUpdate=dC;exports.components_default=_re;exports.dayjs=HK;exports.domAnimation=Jee;exports.dt=QE;exports.ee=tP;exports.flip=zI;exports.isNumber=NH;exports.lazyload=Qz;exports.lodashExports=mC;exports.lt=Yv;exports.m=Yee;exports.mt=lI;exports.nt=aI;exports.o=RH;exports.offset=UI;exports.ot=sI;exports.placeholder=rW;exports.prismExports=AH;exports.q=Ob;exports.useController=lK;exports.useFloating=KI;exports.useForm=xK;exports.useFormContext=op;
|