PageSourceSearch

https://gptimage1-5.ai/_next/static/chunks/3299-7a178b6bebb3ff01.js?dpl=dpl_8cRYQDebh4VdrVfub6qUh5RAk7f7

js gptimage1-5.ai collected 2026-10-05 13:17:09 UTC 145,670 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3299],{4477:(t,e,i)=>{"use strict";i.d(e,{L:()=>r});let r=(0,i(38425).createContext)({})},4941:(t,e,i)=>{"use strict";i.d(e,{M:()=>n});var r=i(38425);function n(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},5395:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});var r=i(93657);function n(t,e,i,n){if(!t||n===i||null==n||!e)return;let s=(0,r.DT)(e),{name:o,...a}=t;a.path||(a.path=""!==s?s:"/");let l=`${o}=${n};`;for(let[t,e]of Object.entries(a))l+=`${"maxAge"===t?"max-age":t}`,"boolean"!=typeof e&&(l+="="+e),l+=";";document.cookie=l}},7512:(t,e,i)=>{"use strict";i.d(e,{jH:()=>s});var r=i(38425);i(62573);var n=r.createContext(void 0);function s(t){let e=r.useContext(n);return t||e||"ltr"}},11444:(t,e,i)=>{"use strict";i.d(e,{UC:()=>X,Y9:()=>q,bL:()=>$,l9:()=>H,q7:()=>z});var r=i(38425),n=i(41811),s=i(55883),o=i(69935),a=i(89437),l=i(27902),u=i(75032),h=i(60556),d=i(25050),c=i(7512),p=i(62573),f="Accordion",m=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[v,g,y]=(0,s.N)(f),[x,w]=(0,n.A)(f,[y,h.z3]),b=(0,h.z3)(),T=r.forwardRef((t,e)=>{let{type:i,...r}=t;return(0,p.jsx)(v.Provider,{scope:t.__scopeAccordion,children:"multiple"===i?(0,p.jsx)(C,{...r,ref:e}):(0,p.jsx)(E,{...r,ref:e})})});T.displayName=f;var[P,S]=x(f),[A,_]=x(f,{collapsible:!1}),E=r.forwardRef((t,e)=>{let{value:i,defaultValue:n,onValueChange:s=()=>{},collapsible:o=!1,...a}=t,[u,h]=(0,l.i)({prop:i,defaultProp:n,onChange:s});return(0,p.jsx)(P,{scope:t.__scopeAccordion,value:u?[u]:[],onItemOpen:h,onItemClose:r.useCallback(()=>o&&h(""),[o,h]),children:(0,p.jsx)(A,{scope:t.__scopeAccordion,collapsible:o,children:(0,p.jsx)(M,{...a,ref:e})})})}),C=r.forwardRef((t,e)=>{let{value:i,defaultValue:n,onValueChange:s=()=>{},...o}=t,[a=[],u]=(0,l.i)({prop:i,defaultProp:n,onChange:s}),h=r.useCallback(t=>u(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...e,t]}),[u]),d=r.useCallback(t=>u(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(e=>e!==t)}),[u]);return(0,p.jsx)(P,{scope:t.__scopeAccordion,value:a,onItemOpen:h,onItemClose:d,children:(0,p.jsx)(A,{scope:t.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(M,{...o,ref:e})})})}),[R,k]=x(f),M=r.forwardRef((t,e)=>{let{__scopeAccordion:i,disabled:n,dir:s,orientation:l="vertical",...h}=t,d=r.useRef(null),f=(0,o.s)(d,e),y=g(i),x="ltr"===(0,c.jH)(s),w=(0,a.m)(t.onKeyDown,t=>{var e;if(!m.includes(t.key))return;let i=t.target,r=y().filter(t=>{var e;return!(null===(e=t.ref.current)||void 0===e?void 0:e.disabled)}),n=r.findIndex(t=>t.ref.current===i),s=r.length;if(-1===n)return;t.preventDefault();let o=n,a=s-1,u=()=>{(o=n+1)>a&&(o=0)},h=()=>{(o=n-1)<0&&(o=a)};switch(t.key){case"Home":o=0;break;case"End":o=a;break;case"ArrowRight":"horizontal"===l&&(x?u():h());break;case"ArrowDown":"vertical"===l&&u();break;case"ArrowLeft":"horizontal"===l&&(x?h():u());break;case"ArrowUp":"vertical"===l&&h()}null===(e=r[o%s].ref.current)||void 0===e||e.focus()});return(0,p.jsx)(R,{scope:i,disabled:n,direction:s,orientation:l,children:(0,p.jsx)(v.Slot,{scope:i,children:(0,p.jsx)(u.sG.div,{...h,"data-orientation":l,ref:f,onKeyDown:n?void 0:w})})})}),V="AccordionItem",[D,j]=x(V),L=r.forwardRef((t,e)=>{let{__scopeAccordion:i,value:r,...n}=t,s=k(V,i),o=S(V,i),a=b(i),l=(0,d.B)(),u=r&&o.value.includes(r)||!1,c=s.disabled||t.disabled;return(0,p.jsx)(D,{scope:i,open:u,disabled:c,triggerId:l,children:(0,p.jsx)(h.bL,{"data-orientation":s.orientation,"data-state":W(u),...a,...n,ref:e,disabled:c,open:u,onOpenChange:t=>{t?o.onItemOpen(r):o.onItemClose(r)}})})});L.displayName=V;var F="AccordionHeader",O=r.forwardRef((t,e)=>{let{__scopeAccordion:i,...r}=t,n=k(f,i),s=j(F,i);return(0,p.jsx)(u.sG.h3,{"data-orientation":n.orientation,"data-state":W(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:e})});O.displayName=F;var B="AccordionTrigger",I=r.forwardRef((t,e)=>{let{__scopeAccordion:i,...r}=t,n=k(f,i),s=j(B,i),o=_(B,i),a=b(i);return(0,p.jsx)(v.ItemSlot,{scope:i,children:(0,p.jsx)(h.l9,{"aria-disabled":s.open&&!o.collapsible||void 0,"data-orientation":n.orientation,id:s.triggerId,...a,...r,ref:e})})});I.displayName=B;var N="AccordionContent",U=r.forwardRef((t,e)=>{let{__scopeAccordion:i,...r}=t,n=k(f,i),s=j(N,i),o=b(i);return(0,p.jsx)(h.UC,{role:"region","aria-labelledby":s.triggerId,"data-orientation":n.orientation,...o,...r,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...t.style}})});function W(t){return t?"open":"closed"}U.displayName=N;var $=T,z=L,q=O,H=I,X=U},13596:(t,e,i)=>{"use strict";i.d(e,{N:()=>g});var r=i(62573),n=i(38425),s=i(4477),o=i(4941),a=i(19381),l=i(89580);class u extends n.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;
1if(e&&t.isPresent&&!this.props.isPresent){let t=e.offsetParent,i=t instanceof HTMLElement&&t.offsetWidth||0,r=this.props.sizeRef.current;r.height=e.offsetHeight||0,r.width=e.offsetWidth||0,r.top=e.offsetTop,r.left=e.offsetLeft,r.right=i-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function h(t){let{children:e,isPresent:i,anchorX:s}=t,o=(0,n.useId)(),a=(0,n.useRef)(null),h=(0,n.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=(0,n.useContext)(l.Q);return(0,n.useInsertionEffect)(()=>{let{width:t,height:e,top:r,left:n,right:l}=h.current;if(i||!a.current||!t||!e)return;a.current.dataset.motionPopId=o;let u=document.createElement("style");return d&&(u.nonce=d),document.head.appendChild(u),u.sheet&&u.sheet.insertRule('\n          [data-motion-pop-id="'.concat(o,'"] {\n            position: absolute !important;\n            width: ').concat(t,"px !important;\n            height: ").concat(e,"px !important;\n            ").concat("left"===s?"left: ".concat(n):"right: ".concat(l),"px !important;\n            top: ").concat(r,"px !important;\n          }\n        ")),()=>{document.head.removeChild(u)}},[i]),(0,r.jsx)(u,{isPresent:i,childRef:a,sizeRef:h,children:n.cloneElement(e,{ref:a})})}let d=t=>{let{children:e,initial:i,isPresent:s,onExitComplete:l,custom:u,presenceAffectsLayout:d,mode:p,anchorX:f}=t,m=(0,o.M)(c),v=(0,n.useId)(),g=(0,n.useCallback)(t=>
1{for(let e of(m.set(t,!0),m.values()))if(!e)return;l&&l()},[m,l]),y=(0,n.useMemo)(()=>({id:v,initial:i,isPresent:s,custom:u,onExitComplete:g,register:t=>(m.set(t,!1),()=>m.delete(t))}),d?[Math.random(),g]:[s,g]);return(0,n.useMemo)(()=>{m.forEach((t,e)=>m.set(e,!1))},[s]),n.useEffect(()=>{s||m.size||!l||l()},[s]),"popLayout"===p&&(e=(0,r.jsx)(h,{isPresent:s,anchorX:f,children:e})),(0,r.jsx)(a.t.Provider,{value:y,children:e})};function c(){return new Map}var p=i(43786);let f=t=>t.key||"";function m(t){let e=[];return n.Children.forEach(t,t=>{(0,n.isValidElement)(t)&&e.push(t)}),e}var v=i(66670);let g=t=>{let{children:e,custom:i,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:h="sync",propagate:c=!1,anchorX:g="left"}=t,[y,x]=(0,p.xQ)(c),w=(0,n.useMemo)(()=>m(e),[e]),b=c&&!y?[]:w.map(f),T=(0,n.useRef)(!0),P=(0,n.useRef)(w),S=(0,o.M)(()=>new Map),[A,_]=(0,n.useState)(w),[E,C]=(0,n.useState)(w);(0,v.E)(()=>{T.current=!1,P.current=w;for(let t=0;t<E.length;t++){let e=f(E[t]);b.includes(e)?S.delete(e):!0!==S.get(e)&&S.set(e,!1)}},[E,b.length,b.join("-")]);let R=[];if(w!==A){let t=[...w];for(let e=0;e<E.length;e++){let i=E[e],r=f(i);b.includes(r)||(t.splice(e,0,i),R.push(i))}return"wait"===h&&R.length&&(t=R),C(m(t)),_(w),null}let{forceRender:k}=(0,n.useContext)(s.L);return(0,r.jsx)(r.Fragment,{children:E.map(t=>{let e=f(t),n=(!c||!!y)&&(w===E||b.includes(e));return(0,r.jsx)(d,{isPresent:n,initial:(!T.current||!!a)&&void 0,custom:i,presenceAffectsLayout:u,mode:h,onExitComplete:n?void 0:()=>{if(!S.has(e))return;S.set(e,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(null==k||k(),C(P.current),c&&(null==x||x()),l&&l())},anchorX:g,children:t},e)})})}},18936:()=>{},19086:(t,e,i)=>{"use strict";t.exports=i(58853)},19381:(t,e,i)=>{"use strict";i.d(e,{t:()=>r});let r=(0,i(38425).createContext)(null)},20154:t=>{t.exports={root:"tweet-info-created-at_root__f1A_1"}},22461:(t,e,i)=>{"use strict";i.d(e,{default:()=>u});var r=i(57074),n=i(45047),s=i(38425),o=i(20035),a=i(5395),l=i(62573),u=(0,s.forwardRef)(function(t,e){let{href:i,locale:s,localeCookie:u,onClick:h,prefetch:d,...c}=t,p=(0,o.Ym)(),f=null!=s&&s!==p,m=(0,n.usePathname)();return f&&(d=!1),(0,l.jsx)(r,{ref:e,href:i,hrefLang:f?s:void 0,onClick:function(t){(0,a.A)(u,m,p,s),h&&h(t)},prefetch:d,...c})})},30080:(t,e,i)=>{"use strict";let r;function n(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function s(t){let e=[{},{}];return null==t||t.values.forEach((t,i)=>{e[0][i]=t.get(),e[1][i]=t.getVelocity()}),e}function o(t,e,i,r){if("function"==typeof e){let[n,o]=s(r);e=e(void 0!==i?i:t.custom,n,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[n,o]=s(r);e=e(void 0!==i?i:t.custom,n,o)}return e}function a(t,e,i){let r=t.getProps();return o(r,e,void 0!==i?i:r.custom,t)}function l(t,e){return t?t[e]||t.default||t:void 0}i.d(e,{P:()=>sg});let u=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],h=new Set(u),d=new Set(["width","height","top","left","right","bottom",...u]),c=t=>Array.isArray(t),p=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),f=t=>c(t)?t[t.length-1]||0:t,m={skipAnimations:!1,useManualTiming:!1},v=t=>t,g=["read","resolveKeyframes","update","preRender","render","postRender"],y={value:null,addProjectionMetrics:null};function x(t,e){let i=!1,r=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>i=!0,o=g.reduce((t,i)=>(t[i]=function(t,e){let i=new Set,r=new Set,n=!1,s=!1,o=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){o.has(e)&&(h.schedule(e),t()),l++,e(a)}let h={schedule:(t,e=!1,s=!1)=>{let a=s&&n?i:r;return e&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{r.delete(t),o.delete(t)},process:t=>{if(a=t,n){s=!0;return}n=!0,[i,r]=[r,i],i.forEach(u),e&&y.value&&y.value.frameloop[e].push(l),l=0,i.clear(),n=!1,s&&(s=!1,h.process(t))}};return h}(s,e?i:void 0),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:h,render:d,postRender:c}=o,p=()=>{let s=m.useManualTiming?n.timestamp:performance.now();i=!1,m.useManualTiming||(n.delta=r?1e3/60:Math.max(Math.min(s-n.timestamp,40),1)),n.timestamp=s,n.isProcessing=!0,a.process(n),l.process(n),u.process(n),h.process(n),d.process(n),c.process(n),n.isProcessing=!1,i&&e&&(r=!1,t(p))},f=()=>{i=!0,r=!0,n.isProcessing||t(p)};return{schedule:g.reduce((t,e)=>{let r=o[e];return t[e]=(t,e=!1,n=!1)=>(i||f(),r.schedule(t,e,n)),t},{}),cancel:t=>{for(let e=0;e<g.length;e++)o[g[e]].cancel(t)},state:n,steps:o}}let{schedule:w,cancel:b,state:T,steps:P}=x("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:v,!0);function S(){r=void 0}let A={now:()=>(void 0===r&&A.set(T.isProcessing||m.useManualTiming?T.timestamp:performance.now()),r),set:t=>{r=t,queueMicrotask(S)}};function _(t,e){-1===t.indexOf(e)&&t.push(e)}function E(t,e){let i=t.indexOf(e);i>-1&&t.splice(i,1)}class C{constructor(){this.subscriptions=[]}add(t){return _(this.subscriptions,t),()=>E(this.subscriptions,t)}notify(t,e,i){let r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,i);else for(let n=0;n<r;n++){let r=this.subscriptions[n];r&&r(t,e,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let R=t=>!isNaN(parseFloat(t)),k={current:void 0};class M{constructor(t,e={}){this.version="12.4.3",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let i=A.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=A.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=R(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new C);let i=this.events[t].add(e);return"change"===t?()=>{i(),w.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,i){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return k.current&&k.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=A.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let i=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),i?1e3/i*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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 V(t,e){return new M(t,e)}let D=t=>!!(t&&t.getVelocity);function j(t,e){let i=t.getValue("willChange");if(D(i)&&i.add)return i.add(e)}let L=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),F="data-"+L("framerAppearId");function O(t){let e;return()=>(void 0===e&&(e=t()),e)}let B=O(()=>void 0!==window.ScrollTimeline);class I{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,e){for(let i=0;i<this.animations.length;i++)this.animations[i][t]=e}attachTimeline(t,e){let i=this.animations.map(i=>B()&&i.attachTimeline?i.attachTimeline(t):"function"==typeof e?e(i):void 0);return()=>
1{i.forEach((t,e)=>{t&&t(),this.animations[e].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 e=0;e<this.animations.length;e++)t=Math.max(t,this.animations[e].duration);return t}runAll(t){this.animations.forEach(e=>e[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class N extends I{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}let U=t=>1e3*t,W=t=>t/1e3,$={current:!1};function z(t){return"function"==typeof t}function q(t,e){t.timeline=e,t.onfinish=null}let H=t=>Array.isArray(t)&&"number"==typeof t[0],X={linearEasing:void 0},Y=function(t,e){let i=O(t);return()=>{var t;return null!==(t=X[e])&&void 0!==t?t:i()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),K=(t,e,i)=>{let r=e-t;return 0===r?1:(i-t)/r},G=(t,e,i=10)=>{let r="",n=Math.max(Math.round(e/i),2);for(let e=0;e<n;e++)r+=t(K(0,n-1,e))+", ";return`linear(${r.substring(0,r.length-2)})`},Z=([t,e,i,r])=>`cubic-bezier(${t}, ${e}, ${i}, ${r})`,Q={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Z([0,.65,.55,1]),circOut:Z([.55,0,1,.45]),backIn:Z([.31,.01,.66,-.59]),backOut:Z([.33,1.53,.69,.99])},J=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t;function tt(t,e,i,r){if(t===e&&i===r)return v;let n=e=>(function(t,e,i,r,n){let s,o,a=0;do(s=J(o=e+(i-e)/2,r,n)-t)>0?i=o:e=o;while(Math.abs(s)>1e-7&&++a<12);return o})(e,0,1,t,i);return t=>0===t||1===t?t:J(n(t),e,r)}let te=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ti=t=>e=>1-t(1-e),tr=tt(.33,1.53,.69,.99),tn=ti(tr),ts=te(tn),to=t=>(t*=2)<1?.5*tn(t):.5*(2-Math.pow(2,-10*(t-1))),ta=t=>1-Math.sin(Math.acos(t)),tl=ti(ta),tu=te(ta),th=t=>/^0[^.\s]+$/u.test(t),td=(t,e,i)=>i>e?e:i<t?t:i,tc={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tp={...tc,transform:t=>td(0,1,t)},tf={...tc,default:1},tm=t=>Math.round(1e5*t)/1e5,tv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tg=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,ty=(t,e)=>i=>!!("string"==typeof i&&tg.test(i)&&i.startsWith(t)||e&&null!=i&&Object.prototype.hasOwnProperty.call(i,e)),tx=(t,e,i)=>r=>{if("string"!=typeof r)return r;let[n,s,o,a]=r.match(tv);return{[t]:parseFloat(n),[e]:parseFloat(s),[i]:parseFloat(o),alpha:void 0!==a?parseFloat(a):1}},tw=t=>td(0,255,t),tb={...tc,transform:t=>Math.round(tw(t))},tT={test:ty("rgb","red"),parse:tx("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:r=1})=>"rgba("+tb.transform(t)+", "+tb.transform(e)+", "+tb.transform(i)+", "+tm(tp.transform(r))+")"},tP={test:ty("#"),parse:function(t){let e="",i="",r="",n="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),r=t.substring(5,7),n=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),r=t.substring(3,4),n=t.substring(4,5),e+=e,i+=i,r+=r,n+=n),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(r,16),alpha:n?parseInt(n,16)/255:1}},transform:tT.transform},tS=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tA=tS("deg"),t_=tS("%"),tE=tS("px"),tC=tS("vh"),tR=tS("vw"),tk={...t_,parse:t=>t_.parse(t)/100,transform:t=>t_.transform(100*t)},tM={test:ty("hsl","hue"),parse:tx("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:r=1})=>"hsla("+Math.round(t)+", "+t_.transform(tm(e))+", "+t_.transform(tm(i))+", "+tm(tp.transform(r))+")"},tV={test:t=>tT.test(t)||tP.test(t)||tM.test(t),parse:t=>tT.test(t)?tT.parse(t):tM.test(t)?tM.parse(t):tP.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tT.transform(t):tM.transform(t)},tD=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tj="number",tL="color",tF=/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 tO(t){let e=t.toString(),i=[],r={color:[],number:[],var:[]},n=[],s=0,o=e.replace(tF,t=>(tV.test(t)?(r.color.push(s),n.push(tL),i.push(tV.parse(t))):t.startsWith("var(")?(r.var.push(s),n.push("var"),i.push(t)):(r.number.push(s),n.push(tj),i.push(parseFloat(t))),++s,"${}")).split("${}");return{values:i,split:o,indexes:r,types:n}}function tB(t){return tO(t).values}function tI(t){let{split:e,types:i}=tO(t),r=e.length;return t=>{let n="";for(let s=0;s<r;s++)if(n+=e[s],void 0!==t[s]){let e=i[s];e===tj?n+=tm(t[s]):e===tL?n+=tV.transform(t[s]):n+=t[s]}return n}}let tN=t=>"number"==typeof t?0:t,tU={test:function(t){var e,i;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(tv))||void 0===e?void 0:e.length)||0)+((null===(i=t.match(tD))||void 0===i?void 0:i.length)||0)>0},parse:tB,createTransformer:tI,getAnimatableNone:function(t){let e=tB(t);return tI(t)(e.map(tN))}},tW=new Set(["brightness","contrast","saturate","opacity"]);function t$(t){let[e,i]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=i.match(tv)||[];if(!r)return t;let n=i.replace(r,""),s=+!!tW.has(e);return r!==i&&(s*=100),e+"("+s+n+")"}let tz=/\b([a-z-]*)\(.*?\)/gu,tq={...tU,getAnimatableNone:t=>{let e=t.match(tz);return e?e.map(t$).join(" "):t}},tH={...tc,transform:Math.round},tX={borderWidth:tE,borderTopWidth:tE,borderRightWidth:tE,borderBottomWidth:tE,borderLeftWidth:tE,borderRadius:tE,radius:tE,borderTopLeftRadius:tE,borderTopRightRadius:tE,borderBottomRightRadius:tE,borderBottomLeftRadius:tE,width:tE,maxWidth:tE,height:tE,maxHeight:tE,top:tE,right:tE,bottom:tE,left:tE,padding:tE,paddingTop:tE,paddingRight:tE,paddingBottom:tE,paddingLeft:tE,margin:tE,marginTop:tE,marginRight:tE,marginBottom:tE,marginLeft:tE,backgroundPositionX:tE,backgroundPositionY:tE,rotate:tA,rotateX:tA,rotateY:tA,rotateZ:tA,scale:tf,scaleX:tf,scaleY:tf,scaleZ:tf,skew:tA,
1skewX:tA,skewY:tA,distance:tE,translateX:tE,translateY:tE,translateZ:tE,x:tE,y:tE,z:tE,perspective:tE,transformPerspective:tE,opacity:tp,originX:tk,originY:tk,originZ:tE,zIndex:tH,size:tE,fillOpacity:tp,strokeOpacity:tp,numOctaves:tH},tY={...tX,color:tV,backgroundColor:tV,outlineColor:tV,fill:tV,stroke:tV,borderColor:tV,borderTopColor:tV,borderRightColor:tV,borderBottomColor:tV,borderLeftColor:tV,filter:tq,WebkitFilter:tq},tK=t=>tY[t];function tG(t,e){let i=tK(t);return i!==tq&&(i=tU),i.getAnimatableNone?i.getAnimatableNone(e):void 0}let tZ=new Set(["auto","none","0"]),tQ=t=>t===tc||t===tE,tJ=(t,e)=>parseFloat(t.split(", ")[e]),t0=(t,e)=>(i,{transform:r})=>{if("none"===r||!r)return 0;let n=r.match(/^matrix3d\((.+)\)$/u);if(n)return tJ(n[1],e);{let e=r.match(/^matrix\((.+)\)$/u);return e?tJ(e[1],t):0}},t1=new Set(["x","y","z"]),t2=u.filter(t=>!t1.has(t)),t5={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:t0(4,13),y:t0(5,14)};t5.translateX=t5.x,t5.translateY=t5.y;let t3=new Set,t4=!1,t9=!1;function t6(){if(t9){let t=Array.from(t3).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),i=new Map;e.forEach(t=>{let e=function(t){let e=[];return t2.forEach(i=>{let r=t.getValue(i);void 0!==r&&(e.push([i,r.get()]),r.set(+!!i.startsWith("scale")))}),e}(t);e.length&&(i.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=i.get(t);e&&e.forEach(([e,i])=>{var r;null===(r=t.getValue(e))||void 0===r||r.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}t9=!1,t4=!1,t3.forEach(t=>t.complete()),t3.clear()}function t7(){t3.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(t9=!0)})}class t8{constructor(t,e,i,r,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=i,this.motionValue=r,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(t3.add(this),t4||(t4=!0,w.read(t7),w.resolveKeyframes(t6))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:i,motionValue:r}=this;for(let n=0;n<t.length;n++)if(null===t[n])if(0===n){let n=null==r?void 0:r.get(),s=t[t.length-1];if(void 0!==n)t[0]=n;else if(i&&e){let r=i.readValue(e,s);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=s),r&&void 0===n&&r.set(t[0])}else t[n]=t[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),t3.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,t3.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let et=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ee=t=>e=>"string"==typeof e&&e.startsWith(t),ei=ee("--"),er=ee("var(--"),en=t=>!!er(t)&&es.test(t.split("/*")[0].trim()),es=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,eo=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,ea=t=>e=>e.test(t),el=[tc,tE,t_,tA,tR,tC,{test:t=>"auto"===t,parse:t=>t}],eu=t=>el.find(ea(t));class eh extends t8{constructor(t,e,i,r,n){super(t,e,i,r,n,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:i}=this;if(!e||!e.current)return;super.readKeyframes();for(let i=0;i<t.length;i++){let r=t[i];if("string"==typeof r&&en(r=r.trim())){let n=function t(e,i,r=1){v(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,s]=function(t){let e=eo.exec(t);if(!e)return[,];let[,i,r,n]=e;return[`--${null!=i?i:r}`,n]}(e);if(!n)return;let o=window.getComputedStyle(i).getPropertyValue(n);if(o){let t=o.trim();return et(t)?parseFloat(t):t}return en(s)?t(s,i,r+1):s}(r,e.current);void 0!==n&&(t[i]=n),i===t.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!d.has(i)||2!==t.length)return;let[r,n]=t,s=eu(r),o=eu(n);if(s!==o)if(tQ(s)&&tQ(o))for(let e=0;e<t.length;e++){let i=t[e];"string"==typeof i&&(t[e]=parseFloat(i))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,i=[];for(let e=0;e<t.length;e++){var r;("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||th(r))&&i.push(e)}if(i.length){let r,n=0;for(;n<t.length&&!r;){let e=t[n];"string"==typeof e&&!tZ.has(e)&&tO(e).values.length&&(r=t[n]),n++}if(r&&e)for(let n of i)t[n]=tG(e,r)}}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:i}=this;if(!t||!t.current)return;"height"===i&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=t5[i](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(i,r).jump(r,!1)}measureEndState(){var t;let{element:e,name:i,unresolvedKeyframes:r}=this;if(!e||!e.current)return;let n=e.getValue(i);n&&n.jump(this.measuredOrigin,!1);let s=r.length-1,o=r[s];r[s]=t5[i](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==o&&void 0===this.finalKeyframe&&(this.finalKeyframe=o),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,i])=>{e.getValue(t).set(i)}),this.resolveNoneKeyframes()}}let ed=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tU.test(t)||"0"===t)&&!t.startsWith("url(")),ec=t=>null!==t;function ep(t,{repeat:e,repeatType:i="loop"},r){let n=t.filter(ec),s=e&&"loop"!==i&&e%2==1?0:n.length-1;return s&&void 0!==r?r:n[s]}class ef{constructor({autoplay:t=!0,delay:e=0,type:i="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=A.now(),this.options={autoplay:t,delay:e,type:i,repeat:r,repeatDelay:n,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(t7(),t6()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=A.now(),this.hasAttemptedResolve=!0;let{name:i,type:r,velocity:n,delay:s,onComplete:o,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,i,r){let n=t[0];if(null===n)return!1;if("display"===e||"visibility"===e)return!0;let s=t[t.length-1],o=ed(n,e),a=ed(s,e);return v(o===a,`You are trying to animate ${e} from "${n}" to "${s}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${s} via the \`style\` property.`),!!o&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}(t)||("spring"===i||z(i))&&r)}(t,i,r,n))if($.current||!s){a&&a(ep(t,this.options,e)),o&&o(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function em(t){let e=0,i=t.next(e);for(;!i.done&&e<2e4;)e+=50,i=t.next(e);return e>=2e4?1/0:e}let ev={layout:0,mainThread:0,waapi:0},eg=(t,e,i)=>t+(e-t)*i;function ey(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function ex(t,e){return i=>i>0?e:t}let ew=(t,e,i)=>{let r=t*t,n=i*(e*e-r)+r;return n<0?0:Math.sqrt(n)},eb=[tP,tT,tM],eT=t=>eb.find(e=>e.test(t));function eP(t){let e=eT(t);if(v(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let i=e.parse(t);return e===tM&&(i=function({hue:t,saturation:e,lightness:i,alpha:r}){t/=360,i/=100;let n=0,s=0,o=0;if(e/=100){let r=i<.5?i*(1+e):i+e-i*e,a=2*i-r;n=ey(a,r,t+1/3),s=ey(a,r,t),o=ey(a,r,t-1/3)}else n=s=o=i;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*o),alpha:r}}(i)),i}let eS=(t,e)=>{let i=eP(t),r=eP(e);if(!i||!r)return ex(t,e);let n={...i};return t=>(n.red=ew(i.red,r.red,t),n.green=ew(i.green,r.green,t),n.blue=ew(i.blue,r.blue,t),n.alpha=eg(i.alpha,r.alpha,t),tT.transform(n))},eA=(t,e)=>i=>e(t(i)),e_=(...t)=>t.reduce(eA),eE=new Set(["none","hidden"]);function eC(t,e){return i=>eg(t,e,i)}function eR(t){return"number"==typeof t?eC:"string"==typeof t?en(t)?ex:tV.test(t)?eS:eV:Array.isArray(t)?ek:"object"==typeof t?tV.test(t)?eS:eM:ex}function ek(t,e){let i=[...t],r=i.length,n=t.map((t,i)=>eR(t)(t,e[i]));return t=>{for(let e=0;e<r;e++)i[e]=n[e](t);return i}}function eM(t,e){let i={...t,...e},r={};for(let n in i)void 0!==t[n]&&void 0!==e[n]&&(r[n]=eR(t[n])(t[n],e[n]));return t=>{for(let e in r)i[e]=r[e](t);return i}}let eV=(t,e)=>{let i=tU.createTransformer(e),r=tO(t),n=tO(e);return r.indexes.var.length===n.indexes.var.length&&r.indexes.color.length===n.indexes.color.length&&r.indexes.number.length>=n.indexes.number.length?eE.has(t)&&!n.values.length||eE.has(e)&&!r.values.length?function(t,e){return eE.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}(t,e):e_(ek(function(t,e){var i;let r=[],n={color:0,var:0,number:0};for(let s=0;s<e.values.length;s++){let o=e.types[s],a=t.indexes[o][n[o]],l=null!==(i=t.values[a])&&void 0!==i?i:0;r[s]=l,n[o]++}return r}(r,n),n.values),i):(v(!0,`Complex values '${t}' and '${e}
1' 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.`),ex(t,e))};function eD(t,e,i){return"number"==typeof t&&"number"==typeof e&&"number"==typeof i?eg(t,e,i):eR(t)(t,e)}function ej(t,e,i){var r,n;let s=Math.max(e-5,0);return r=i-t(s),(n=e-s)?1e3/n*r:0}let eL={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function eF(t,e){return t*Math.sqrt(1-e*e)}let eO=["duration","bounce"],eB=["stiffness","damping","mass"];function eI(t,e){return e.some(e=>void 0!==t[e])}function eN(t=eL.visualDuration,e=eL.bounce){let i,r="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:n,restDelta:s}=r,o=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],l={done:!1,value:o},{stiffness:u,damping:h,mass:d,duration:c,velocity:p,isResolvedFromDuration:f}=function(t){let e={velocity:eL.velocity,stiffness:eL.stiffness,damping:eL.damping,mass:eL.mass,isResolvedFromDuration:!1,...t};if(!eI(t,eB)&&eI(t,eO))if(t.visualDuration){let i=2*Math.PI/(1.2*t.visualDuration),r=i*i,n=2*td(.05,1,1-(t.bounce||0))*Math.sqrt(r);e={...e,mass:eL.mass,stiffness:r,damping:n}}else{let i=function({duration:t=eL.duration,bounce:e=eL.bounce,velocity:i=eL.velocity,mass:r=eL.mass}){let n,s;v(t<=U(eL.maxDuration),"Spring duration must be 10 seconds or less");let o=1-e;o=td(eL.minDamping,eL.maxDamping,o),t=td(eL.minDuration,eL.maxDuration,W(t)),o<1?(n=e=>{let r=e*o,n=r*t;return .001-(r-i)/eF(e,o)*Math.exp(-n)},s=e=>{let r=e*o*t,s=Math.pow(o,2)*Math.pow(e,2)*t,a=Math.exp(-r),l=eF(Math.pow(e,2),o);return(r*i+i-s)*a*(-n(e)+.001>0?-1:1)/l}):(n=e=>-.001+Math.exp(-e*t)*((e-i)*t+1),s=e=>t*t*(i-e)*Math.exp(-e*t));let a=function(t,e,i){let r=i;for(let i=1;i<12;i++)r-=t(r)/e(r);return r}(n,s,5/t);if(t=U(t),isNaN(a))return{stiffness:eL.stiffness,damping:eL.damping,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*o*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...i,mass:eL.mass}).isResolvedFromDuration=!0}return e}({...r,velocity:-W(r.velocity||0)}),m=p||0,g=h/(2*Math.sqrt(u*d)),y=a-o,x=W(Math.sqrt(u/d)),w=5>Math.abs(y);if(n||(n=w?eL.restSpeed.granular:eL.restSpeed.default),s||(s=w?eL.restDelta.granular:eL.restDelta.default),g<1){let t=eF(x,g);i=e=>a-Math.exp(-g*x*e)*((m+g*x*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===g)i=t=>a-Math.exp(-x*t)*(y+(m+x*y)*t);else{let t=x*Math.sqrt(g*g-1);i=e=>{let i=Math.exp(-g*x*e),r=Math.min(t*e,300);return a-i*((m+g*x*y)*Math.sinh(r)+t*y*Math.cosh(r))/t}}let b={calculatedDuration:f&&c||null,next:t=>{let e=i(t);if(f)l.done=t>=c;else{let r=0;g<1&&(r=0===t?U(m):ej(i,t,e));let o=Math.abs(a-e)<=s;l.done=Math.abs(r)<=n&&o}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(em(b),2e4),e=G(e=>b.next(t*e).value,t,30);return t+"ms "+e}};return b}function eU({keyframes:t,velocity:e=0,power:i=.8,timeConstant:r=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:h}){let d,c,p=t[0],f={done:!1,value:p},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=i*e,y=p+g,x=void 0===o?y:o(y);x!==y&&(g=x-p);let w=t=>-g*Math.exp(-t/r),b=t=>x+w(t),T=t=>{let e=w(t),i=b(t);f.done=Math.abs(e)<=u,f.value=f.done?x:i},P=t=>{m(f.value)&&(d=t,c=eN({keyframes:[f.value,v(f.value)],velocity:ej(b,t,f.value),damping:n,stiffness:s,restDelta:u,restSpeed:h}))};return P(0),{calculatedDuration:null,next:t=>{let e=!1;return(c||void 0!==d||(e=!0,T(t),P(t)),void 0!==d&&t>=d)?c.next(t-d):(e||T(t),f)}}}let eW=tt(.42,0,1,1),e$=tt(0,0,.58,1),ez=tt(.42,0,.58,1),eq=t=>Array.isArray(t)&&"number"!=typeof t[0],eH={linear:v,easeIn:eW,easeInOut:ez,easeOut:e$,circIn:ta,circInOut:tu,circOut:tl,backIn:tn,backInOut:ts,backOut:tr,anticipate:to},eX=t=>{if(H(t)){v(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,i,r,n]=t;return tt(e,i,r,n)}return"string"==typeof t?(v(void 0!==eH[t],`Invalid easing type '${t}'`),eH[t]):t};function eY({duration:t=300,keyframes:e,times:i,ease:r="easeInOut"}){let n=eq(r)?r.map(eX):eX(r),s={done:!1,value:e[0]},o=function(t,e,{clamp:i=!0,ease:r,mixer:n}={}){let s=t.length;if(v(s===e.length,"Both input and output ranges must be the same length"),1===s)return()=>e[0];if(2===s&&e[0]===e[1])return()=>e[1];let o=t[0]===t[1];t[0]>t[s-1]&&(t=[...t].reverse(),e=[...e].reverse());
1let a=function(t,e,i){let r=[],n=i||eD,s=t.length-1;for(let i=0;i<s;i++){let s=n(t[i],t[i+1]);e&&(s=e_(Array.isArray(e)?e[i]||v:e,s)),r.push(s)}return r}(e,r,n),l=a.length,u=i=>{if(o&&i<t[0])return e[0];let r=0;if(l>1)for(;r<t.length-2&&!(i<t[r+1]);r++);let n=K(t[r],t[r+1],i);return a[r](n)};return i?e=>u(td(t[0],t[s-1],e)):u}((i&&i.length===e.length?i:function(t){let e=[0];return function(t,e){let i=t[t.length-1];for(let r=1;r<=e;r++){let n=K(0,e,r);t.push(eg(i,1,n))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(n)?n:e.map(()=>n||ez).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(s.value=o(e),s.done=e>=t,s)}}let eK=t=>{let e=({timestamp:e})=>t(e);return{start:()=>w.update(e,!0),stop:()=>b(e),now:()=>T.isProcessing?T.timestamp:A.now()}},eG={decay:eU,inertia:eU,tween:eY,keyframes:eY,spring:eN},eZ=t=>t/100;class eQ extends ef{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,"idle"===this.state)return;this.teardown();let{onStop:t}=this.options;t&&t()};let{name:e,motionValue:i,element:r,keyframes:n}=this.options,s=(null==r?void 0:r.KeyframeResolver)||t8;this.resolver=new s(n,(t,e)=>this.onKeyframesResolved(t,e),e,i,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,i,{type:r="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:o,velocity:a=0}=this.options,l=z(r)?r:eG[r]||eY;l!==eY&&"number"!=typeof t[0]&&(e=e_(eZ,eD(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===o&&(i=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=em(u));let{calculatedDuration:h}=u,d=h+s;return{generator:u,mirroredGenerator:i,mapPercentToKeyframes:e,calculatedDuration:h,resolvedDuration:d,totalDuration:d*(n+1)-s}}onPostResolved(){let{autoplay:t=!0}=this.options;ev.mainThread++,this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:i}=this;if(!i){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:r,generator:n,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:h}=i;if(null===this.startTime)return n.next(0);let{delay:d,repeat:c,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;let v=this.currentTime-d*(this.speed>=0?1:-1),g=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,x=n;if(c){let t=Math.min(this.currentTime,u)/h,e=Math.floor(t),i=t%1;!i&&t>=1&&(i=1),1===i&&e--,(e=Math.min(e,c+1))%2&&("reverse"===p?(i=1-i,f&&(i-=f/h)):"mirror"===p&&(x=s)),y=td(0,1,i)*h}let w=g?{done:!1,value:a[0]}:x.next(y);o&&(w.value=o(w.value));let{done:b}=w;g||null===l||(b=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&b);return T&&void 0!==r&&(w.value=ep(a,this.options,r)),m&&m(w.value),T&&this.finish(),w}get duration(){let{resolved:t}=this;return t?W(t.calculatedDuration):0}get time(){return W(this.currentTime)}set time(t){t=U(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=W(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=eK,onPlay:e,startTime:i}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=i?i:this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
1ise(),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=null!==(t=this.currentTime)&&void 0!==t?t:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:t}=this.options;t&&t()}cancel(){null!==this.cancelTime&&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(),ev.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let eJ=new Set(["opacity","clipPath","filter","transform"]),e0=O(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),e1={anticipate:to,backInOut:ts,circInOut:tu};class e2 extends ef{constructor(t){super(t);let{name:e,motionValue:i,element:r,keyframes:n}=this.options;this.resolver=new eh(n,(t,e)=>this.onKeyframesResolved(t,e),e,i,r),this.resolver.scheduleResolve()}initPlayback(t,e){var i;let{duration:r=300,times:n,ease:s,type:o,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof s&&Y()&&s in e1&&(s=e1[s]),z((i=this.options).type)||"spring"===i.type||!function t(e){return!!("function"==typeof e&&Y()||!e||"string"==typeof e&&(e in Q||Y())||H(e)||Array.isArray(e)&&e.every(t))}(i.ease)){let{onComplete:e,onUpdate:i,motionValue:a,element:l,...u}=this.options,h=function(t,e){let i=new eQ({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:t[0]},n=[],s=0;for(;!r.done&&s<2e4;)n.push((r=i.sample(s)).value),s+=10;return{times:void 0,keyframes:n,duration:s-10,ease:"linear"}}(t,u);1===(t=h.keyframes).length&&(t[1]=t[0]),r=h.duration,n=h.times,s=h.ease,o="keyframes"}let h=function(t,e,i,{delay:r=0,duration:n=300,repeat:s=0,repeatType:o="loop",ease:a="easeInOut",times:l}={}){let u={[e]:i};l&&(u.offset=l);let h=function t(e,i){if(e)return"function"==typeof e&&Y()?G(e,i):H(e)?Z(e):Array.isArray(e)?e.map(e=>t(e,i)||Q.easeOut):Q[e]}(a,n);Array.isArray(h)&&(u.easing=h),y.value&&ev.waapi++;let d=t.animate(u,{delay:r,duration:n,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:s+1,direction:"reverse"===o?"alternate":"normal"});return y.value&&d.finished.finally(()=>{ev.waapi--}),d}(a.owner.current,l,t,{...this.options,duration:r,times:n,ease:s});return h.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(q(h,this.pendingTimeline),this.pendingTimeline=void 0):h.onfinish=()=>{let{onComplete:i}=this.options;a.set(ep(t,this.options,e)),i&&i(),this.cancel(),this.resolveFinishedPromise()},{animation:h,duration:r,times:n,type:o,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return W(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return W(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.currentTime=U(t)}get speed(){let{resolved:t}=this;if(!t)return 1;let{animation:e}=t;return e.playbackRate}set speed(t){let{resolved:e}=this;if(!e)return;let{animation:i}=e;i.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}get startTime(){let{resolved:t}=this;if(!t)return null;let{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return v;let{animation:i}=e;q(i,t)}else this.pendingTimeline=t;return v}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:i,duration:r,type:n,ease:s,times:o}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,h=new eQ({...u,keyframes:i,duration:r,type:n,ease:s,times:o,isGenerator:!0}),d=U(this.time);t.setWithVelocity(h.sample(d-10).value,h.sample(d).value,10)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:t}=this;t&&t.animation.finish()}cancel(){let{resolved:t}=this;t&&t.animation.cancel()}
1static supports(t){let{motionValue:e,name:i,repeatDelay:r,repeatType:n,damping:s,type:o}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return e0()&&i&&eJ.has(i)&&!a&&!l&&!r&&"mirror"!==n&&0!==s&&"inertia"!==o}}let e5={type:"spring",stiffness:500,damping:25,restSpeed:10},e3=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),e4={type:"keyframes",duration:.8},e9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},e6=(t,{keyframes:e})=>e.length>2?e4:h.has(t)?t.startsWith("scale")?e3(e[1]):e5:e9,e7=(t,e,i,r={},n,s)=>o=>{let a=l(r,t)||{},u=a.delay||r.delay||0,{elapsed:h=0}=r;h-=U(u);let d={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-h,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:s?void 0:n};!function({when:t,delay:e,delayChildren:i,staggerChildren:r,staggerDirection:n,repeat:s,repeatType:o,repeatDelay:a,from:l,elapsed:u,...h}){return!!Object.keys(h).length}(a)&&(d={...d,...e6(t,d)}),d.duration&&(d.duration=U(d.duration)),d.repeatDelay&&(d.repeatDelay=U(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let c=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0!==d.delay||(c=!0)),($.current||m.skipAnimations)&&(c=!0,d.duration=0,d.delay=0),c&&!s&&void 0!==e.get()){let t=ep(d.keyframes,a);if(void 0!==t)return w.update(()=>{d.onUpdate(t),d.onComplete()}),new N([])}return!s&&e2.supports(d)?new e2(d):new eQ(d)};function e8(t,e,{delay:i=0,transitionOverride:r,type:n}={}){var s;let{transition:o=t.getDefaultTransition(),transitionEnd:u,...h}=e;r&&(o=r);let c=[],p=n&&t.animationState&&t.animationState.getState()[n];for(let e in h){let r=t.getValue(e,null!==(s=t.latestValues[e])&&void 0!==s?s:null),n=h[e];if(void 0===n||p&&function({protectedKeys:t,needsAnimating:e},i){let r=t.hasOwnProperty(i)&&!0!==e[i];return e[i]=!1,r}(p,e))continue;let a={delay:i,...l(o||{},e)},u=!1;if(window.MotionHandoffAnimation){let i=t.props[F];if(i){let t=window.MotionHandoffAnimation(i,e,w);null!==t&&(a.startTime=t,u=!0)}}j(t,e),r.start(e7(e,r,n,t.shouldReduceMotion&&d.has(e)?{type:!1}:a,t,u));let f=r.animation;f&&c.push(f)}return u&&Promise.all(c).then(()=>{w.update(()=>{u&&function(t,e){let{transitionEnd:i={},transition:r={},...n}=a(t,e)||{};for(let e in n={...n,...i}){let i=f(n[e]);t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,V(i))}}(t,u)})}),c}function it(t,e,i={}){var r;let n=a(t,e,"exit"===i.type?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0),{transition:s=t.getDefaultTransition()||{}}=n||{};i.transitionOverride&&(s=i.transitionOverride);let o=n?()=>Promise.all(e8(t,n,i)):()=>Promise.resolve(),l=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:n=0,staggerChildren:o,staggerDirection:a}=s;return function(t,e,i=0,r=0,n=1,s){let o=[],a=(t.variantChildren.size-1)*r,l=1===n?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(ie).forEach((t,r)=>{t.notify("AnimationStart",e),o.push(it(t,e,{...s,delay:i+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(o)}(t,e,n+r,o,a,i)}:()=>Promise.resolve(),{when:u}=s;if(!u)return Promise.all([o(),l(i.delay)]);{let[t,e]="beforeChildren"===u?[o,l]:[l,o];return t().then(()=>e())}}function ie(t,e){return t.sortNodePosition(e)}function ii(t,e){if(!Array.isArray(e))return!1;let i=e.length;if(i!==t.length)return!1;for(let r=0;r<i;r++)if(e[r]!==t[r])return!1;return!0}function ir(t){return"string"==typeof t||Array.isArray(t)}let is=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],io=["initial",...is],ia=io.length,il=[...is].reverse(),iu=is.length;function ih(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function id(){return{animate:ih(!0),whileInView:ih(),whileHover:ih(),whileTap:ih(),whileDrag:ih(),whileFocus:ih(),exit:ih()}}class ic{constructor(t){this.isMounted=!1,this.node=t}update(){}}class ip extends ic{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:i})=>
1(function(t,e,i={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>it(t,e,i)));else if("string"==typeof e)r=it(t,e,i);else{let n="function"==typeof e?a(t,e,i.custom):e;r=Promise.all(e8(t,n,i))}return r.then(()=>{t.notify("AnimationComplete",e)})})(t,e,i))),i=id(),r=!0,s=e=>(i,r)=>{var n;let s=a(t,r,"exit"===e?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0);if(s){let{transition:t,transitionEnd:e,...r}=s;i={...i,...r,...e}}return i};function o(o){let{props:l}=t,u=function t(e){if(!e)return;if(!e.isControllingVariants){let i=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(i.initial=e.props.initial),i}let i={};for(let t=0;t<ia;t++){let r=io[t],n=e.props[r];(ir(n)||!1===n)&&(i[r]=n)}return i}(t.parent)||{},h=[],d=new Set,p={},f=1/0;for(let e=0;e<iu;e++){var m,v;let a=il[e],g=i[a],y=void 0!==l[a]?l[a]:u[a],x=ir(y),w=a===o?g.isActive:null;!1===w&&(f=e);let b=y===u[a]&&y!==l[a]&&x;if(b&&r&&t.manuallyAnimateOnMount&&(b=!1),g.protectedKeys={...p},!g.isActive&&null===w||!y&&!g.prevProp||n(y)||"boolean"==typeof y)continue;let T=(m=g.prevProp,"string"==typeof(v=y)?v!==m:!!Array.isArray(v)&&!ii(v,m)),P=T||a===o&&g.isActive&&!b&&x||e>f&&x,S=!1,A=Array.isArray(y)?y:[y],_=A.reduce(s(a),{});!1===w&&(_={});let{prevResolvedValues:E={}}=g,C={...E,..._},R=e=>{P=!0,d.has(e)&&(S=!0,d.delete(e)),g.needsAnimating[e]=!0;let i=t.getValue(e);i&&(i.liveStyle=!1)};for(let t in C){let e=_[t],i=E[t];if(p.hasOwnProperty(t))continue;let r=!1;(c(e)&&c(i)?ii(e,i):e===i)?void 0!==e&&d.has(t)?R(t):g.protectedKeys[t]=!0:null!=e?R(t):d.add(t)}g.prevProp=y,g.prevResolvedValues=_,g.isActive&&(p={...p,..._}),r&&t.blockInitialAnimation&&(P=!1);let k=!(b&&T)||S;P&&k&&h.push(...A.map(t=>({animation:t,options:{type:a}})))}if(d.size){let e={};if("boolean"!=typeof l.initial){let i=a(t,Array.isArray(l.initial)?l.initial[0]:l.initial);i&&i.transition&&(e.transition=i.transition)}d.forEach(i=>{let r=t.getBaseTarget(i),n=t.getValue(i);n&&(n.liveStyle=!0),e[i]=null!=r?r:null}),h.push({animation:e})}let g=!!h.length;return r&&(!1===l.initial||l.initial===l.animate)&&!t.manuallyAnimateOnMount&&(g=!1),r=!1,g?e(h):Promise.resolve()}return{animateChanges:o,setActive:function(e,r){var n;if(i[e].isActive===r)return Promise.resolve();null===(n=t.variantChildren)||void 0===n||n.forEach(t=>{var i;return null===(i=t.animationState)||void 0===i?void 0:i.setActive(e,r)}),i[e].isActive=r;let s=o(e);for(let t in i)i[t].protectedKeys={};return s},setAnimateFunction:function(i){e=i(t)},getState:()=>i,reset:()=>{i=id(),r=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();n(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}let im=0;class iv extends ic{constructor(){super(...arguments),this.id=im++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};
1e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}let ig={x:!1,y:!1},iy=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ix(t,e,i,r={passive:!0}){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i)}function iw(t){return{point:{x:t.pageX,y:t.pageY}}}let ib=t=>e=>iy(e)&&t(e,iw(e));function iT(t,e,i,r){return ix(t,e,ib(i),r)}let iP=(t,e)=>Math.abs(t-e);class iS{constructor(t,e,{transformPagePoint:i,contextWindow:r,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=iE(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,i=function(t,e){return Math.sqrt(iP(t.x,e.x)**2+iP(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!i)return;let{point:r}=t,{timestamp:n}=T;this.history.push({...r,timestamp:n});let{onStart:s,onMove:o}=this.handlers;e||(s&&s(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=iA(e,this.transformPagePoint),w.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:i,onSessionEnd:r,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=iE("pointercancel"===t.type?this.lastMoveEventInfo:iA(e,this.transformPagePoint),this.history);this.startEvent&&i&&i(t,s),r&&r(t,s)},!iy(t))return;this.dragSnapToOrigin=n,this.handlers=e,this.transformPagePoint=i,this.contextWindow=r||window;let s=iA(iw(t),this.transformPagePoint),{point:o}=s,{timestamp:a}=T;this.history=[{...o,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,iE(s,this.history)),this.removeListeners=e_(iT(this.contextWindow,"pointermove",this.handlePointerMove),iT(this.contextWindow,"pointerup",this.handlePointerUp),iT(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),b(this.updatePoint)}}function iA(t,e){return e?{point:e(t.point)}:t}function i_(t,e){return{x:t.x-e.x,y:t.y-e.y}}function iE({point:t},e){return{point:t,delta:i_(t,iC(e)),offset:i_(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,r=null,n=iC(t);for(;i>=0&&(r=t[i],!(n.timestamp-r.timestamp>U(.1)));)i--;if(!r)return{x:0,y:0};let s=W(n.timestamp-r.timestamp);if(0===s)return{x:0,y:0};let o={x:(n.x-r.x)/s,y:(n.y-r.y)/s};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}(e,.1)}}function iC(t){return t[t.length-1]}function iR(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function ik(t){return t.max-t.min}function iM(t,e,i,r=.5){t.origin=r,t.originPoint=eg(e.min,e.max,t.origin),t.scale=ik(i)/ik(e),t.translate=eg(i.min,i.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function iV(t,e,i,r){iM(t.x,e.x,i.x,r?r.originX:void 0),iM(t.y,e.y,i.y,r?r.originY:void 0)}function iD(t,e,i){t.min=i.min+e.min,t.max=t.min+ik(e)}function ij(t,e,i){t.min=e.min-i.min,t.max=t.min+ik(e)}function iL(t,e,i){ij(t.x,e.x,i.x),ij(t.y,e.y,i.y)}function iF(t,e,i){return{min:void 0!==e?t.min+e:void 0,max:void 0!==i?t.max+i-(t.max-t.min):void 0}}function iO(t,e){let i=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,r]=[r,i]),{min:i,max:r}}function iB(t,e,i){return{min:iI(t,e),max:iI(t,i)}}function iI(t,e){return"number"==typeof t?t:t[e]||0}let iN=()=>({translate:0,scale:1,origin:0,originPoint:0}),iU=()=>({x:iN(),y:iN()}),iW=()=>({min:0,max:0}),i$=()=>({x:iW(),y:iW()});function iz(t){return[t("x"),t("y")]}function iq({top:t,left:e,right:i,bottom:r}){return{x:{min:e,max:i},y:{min:t,max:r}}}function iH(t){return void 0===t||1===t}function iX({scale:t,scaleX:e,scaleY:i}){return!iH(t)||!iH(e)||!iH(i)}function iY(t){return iX(t)||iK(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function iK(t){var e,i;return(e=t.x)&&"0%"!==e||(i=t.y)&&"0%"!==i}function iG(t,e,i,r,n){return void 0!==n&&(t=r+n*(t-r)),r+i*(t-r)+e}function iZ(t,e=0,i=1,r,n){t.min=iG(t.min,e,i,r,n),t.max=iG(t.max,e,i,r,n)}function iQ(t,{x:e,y:i}){iZ(t.x,e.translate,e.scale,e.originPoint),iZ(t.y,i.translate,i.scale,i.originPoint)}function iJ(t,e){t.min=t.min+e,t.max=t.max+e}function i0(t,e,i,r,n=.5){let s=eg(t.min,t.max,n);iZ(t,e,i,s,r)}function i1(t,e){i0(t.x,e.x,e.scaleX,e.scale,e.originX),i0(t.y,e.y,e.scaleY,e.scale,e.originY)}function i2(t,e){return iq(function(t,e){if(!e)return t;let i=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let i5=({current:t})=>t?t.ownerDocument.defaultView:null,i3=new WeakMap;class i4{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=i$(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new iS(t,{onSessionStart:t=>{let{dragSnapToOrigin:i}=this.getProps();i?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(iw(t).point)},onStart:(t,e)=>{let{drag:i,dragPropagation:r,onDragStart:n}=this.getProps();if(i&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(ig[t])return null;else return ig[t]=!0,()=>{ig[t]=!1};return ig.x||ig.y?null:(ig.x=ig.y=!0,()=>{ig.x=ig.y=!1})}(i),!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),iz(t=>{let e=this.getAxisMotionValue(t).get()||0;if(t_.test(e)){let{projection:i}=this.visualElement;if(i&&i.layout){let r=i.layout.layoutBox[t];r&&(e=ik(r)*(parseFloat(e)/100))}}this.originPoint[t]=e}),n&&w.postRender(()=>n(t,e)),j(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:i,dragDirectionLock:r,onDirectionLock:n,onDrag:s}=this.getProps();if(!i&&!this.openDragLock)return;let{offset:o}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}(o),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",e.point,o),this.updateAxis("y",e.point,o),this.visualElement.render(),s&&s(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>iz(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:i5(this.visualElement)})}stop(t,e){let i=this.isDragging;if(this.cancel(),!i)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:n}=this.getProps();n&&w.postRender(()=>n(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,i){let{drag:r}=this.getProps();if(!i||!i9(t,r,this.currentDirection))return;let n=this.getAxisMotionValue(t),s=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(s=function(t,{min:e,max:i},r){return void 0!==e&&t<e?t=r?eg(e,t,r.min):Math.max(t,e):void 0!==i&&t>i&&(t=r?eg(i,t,r.max):Math.min(t,i)),t}(s,this.constraints[t],this.elastic[t])),n.set(s)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:i}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,n=this.constraints;e&&iR(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:i,bottom:r,right:n}){return{x:iF(t.x,i,n),y:iF(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:iB(t,"left","right"),y:iB(t,"top","bottom")}}(i),n!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&iz(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let i={};return void 0!==e.min&&(i.min=e.min-t.min),void 0!==e.max&&(i.max=e.max-t.min),i}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!iR(e))return!1;let r=e.current;v(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;
1let s=function(t,e,i){let r=i2(t,i),{scroll:n}=e;return n&&(iJ(r.x,n.offset.x),iJ(r.y,n.offset.y)),r}(r,n.root,this.visualElement.getTransformPagePoint()),o={x:iO((t=n.layout.layoutBox).x,s.x),y:iO(t.y,s.y)};if(i){let t=i(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(o));this.hasMutatedConstraints=!!t,t&&(o=iq(t))}return o}startAnimation(t){let{drag:e,dragMomentum:i,dragElastic:r,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),a=this.constraints||{};return Promise.all(iz(o=>{if(!i9(o,e,this.currentDirection))return;let l=a&&a[o]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:i?t[o]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(o,u)})).then(o)}startAxisValueAnimation(t,e){let i=this.getAxisMotionValue(t);return j(this.visualElement,t),i.start(e7(t,i,0,e,this.visualElement,!1))}stopAnimation(){iz(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){iz(t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()})}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){let e=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps();return i[e]||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){iz(e=>{let{drag:i}=this.getProps();if(!i9(e,i,this.currentDirection))return;let{projection:r}=this.visualElement,n=this.getAxisMotionValue(e);if(r&&r.layout){let{min:i,max:s}=r.layout.layoutBox[e];n.set(t[e]-eg(i,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:i}=this.visualElement;if(!iR(e)||!i||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};iz(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let i=e.get();r[t]=function(t,e){let i=.5,r=ik(t),n=ik(e);return n>r?i=K(e.min,e.max-r,t.min):r>n&&(i=K(t.min,t.max-n,e.min)),td(0,1,i)}({min:i,max:i},this.constraints[t])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),iz(e=>{if(!i9(e,t,null))return;let i=this.getAxisMotionValue(e),{min:n,max:s}=this.constraints[e];i.set(eg(n,s,r[e]))})}addListeners(){if(!this.visualElement.current)return;i3.set(this.visualElement,this);let t=iT(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:i=!0}=this.getProps();e&&i&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();iR(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,r=i.addEventListener("measure",e);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),w.read(e);let n=ix(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(iz(e=>{let i=this.getAxisMotionValue(e);i&&(this.originPoint[e]+=t[e].translate,i.set(i.get()+t[e].translate))}),this.visualElement.render())});return()=>{n(),t(),r(),s&&s()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:i=!1,dragPropagation:r=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:o=!0}=t;return{...t,drag:e,dragDirectionLock:i,dragPropagation:r,dragConstraints:n,dragElastic:s,dragMomentum:o}}}function i9(t,e,i){return(!0===e||e===t)&&(null===i||i===t)}class i6 extends ic{constructor(t){super(t),this.removeGroupControls=v,this.removeListeners=v,this.controls=new i4(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||v}unmount(){this.removeGroupControls(),this.removeListeners()}}let i7=t=>(e,i)=>{t&&w.postRender(()=>t(e,i))};class i8 extends ic{constructor(){super(...arguments),this.removePointerDownListener=v}onPointerDown(t){this.session=new iS(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:i5(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:i,onPanEnd:r}=this.node.getProps();return{onSessionStart:i7(t),onStart:i7(e),onMove:i,onEnd:(t,e)=>{delete this.session,r&&w.postRender(()=>r(t,e))}}}mount(){this.removePointerDownListener=iT(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var rt,re,ri=i(62573),rr=i(38425),rn=i(43786),rs=i(4477);let ro=(0,rr.createContext)({}),ra={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rl(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let ru={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!tE.test(t))return t;else t=parseFloat(t);let i=rl(t,e.target.x),r=rl(t,e.target.y);return`${i}% ${r}%`}},rh={},{schedule:rd,cancel:rc}=x(queueMicrotask,!1);class rp extends rr.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i,layoutId:r}=this.props,{projection:n}=t;
1for(let t in rm)rh[t]=rm[t],ei(t)&&(rh[t].isCSSVariable=!0);n&&(e.group&&e.group.add(n),i&&i.register&&r&&i.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),ra.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:i,drag:r,isPresent:n}=this.props,s=i.projection;return s&&(s.isPresent=n,r||t.layoutDependency!==e||void 0===e?s.willUpdate():this.safeToRemove(),t.isPresent===n||(n?s.promote():s.relegate()||w.postRender(()=>{let t=s.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),rd.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:i}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),i&&i.deregister&&i.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rf(t){let[e,i]=(0,rn.xQ)(),r=(0,rr.useContext)(rs.L);return(0,ri.jsx)(rp,{...t,layoutGroup:r,switchLayoutGroup:(0,rr.useContext)(ro),isPresent:e,safeToRemove:i})}let rm={borderRadius:{...ru,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ru,borderTopRightRadius:ru,borderBottomLeftRadius:ru,borderBottomRightRadius:ru,boxShadow:{correct:(t,{treeScale:e,projectionDelta:i})=>{let r=tU.parse(t);if(r.length>5)return t;let n=tU.createTransformer(t),s=+("number"!=typeof r[0]),o=i.x.scale*e.x,a=i.y.scale*e.y;r[0+s]/=o,r[1+s]/=a;let l=eg(o,a,.5);return"number"==typeof r[2+s]&&(r[2+s]/=l),"number"==typeof r[3+s]&&(r[3+s]/=l),n(r)}}},rv=(t,e)=>t.depth-e.depth;class rg{constructor(){this.children=[],this.isDirty=!1}add(t){_(this.children,t),this.isDirty=!0}remove(t){E(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(rv),this.isDirty=!1,this.children.forEach(t)}}function ry(t){let e=D(t)?t.get():t;return p(e)?e.toValue():e}let rx=["TopLeft","TopRight","BottomLeft","BottomRight"],rw=rx.length,rb=t=>"string"==typeof t?parseFloat(t):t,rT=t=>"number"==typeof t||tE.test(t);function rP(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let rS=r_(0,.5,tl),rA=r_(.5,.95,v);function r_(t,e,i){return r=>r<t?0:r>e?1:i(K(t,e,r))}function rE(t,e){t.min=e.min,t.max=e.max}function rC(t,e){rE(t.x,e.x),rE(t.y,e.y)}function rR(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function rk(t,e,i,r,n){return t-=e,t=r+1/i*(t-r),void 0!==n&&(t=r+1/n*(t-r)),t}function rM(t,e,[i,r,n],s,o){!function(t,e=0,i=1,r=.5,n,s=t,o=t){if(t_.test(e)&&(e=parseFloat(e),e=eg(o.min,o.max,e/100)-o.min),"number"!=typeof e)return;let a=eg(s.min,s.max,r);t===s&&(a-=e),t.min=rk(t.min,e,i,a,n),t.max=rk(t.max,e,i,a,n)}(t,e[i],e[r],e[n],e.scale,s,o)}let rV=["x","scaleX","originX"],rD=["y","scaleY","originY"];function rj(t,e,i,r){rM(t.x,e,rV,i?i.x:void 0,r?r.x:void 0),rM(t.y,e,rD,i?i.y:void 0,r?r.y:void 0)}function rL(t){return 0===t.translate&&1===t.scale}function rF(t){return rL(t.x)&&rL(t.y)}function rO(t,e){return t.min===e.min&&t.max===e.max}function rB(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function rI(t,e){return rB(t.x,e.x)&&rB(t.y,e.y)}function rN(t){return ik(t.x)/ik(t.y)}function rU(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class rW{constructor(){this.members=[]}add(t){_(this.members,t),t.scheduleRender()}remove(t){if(E(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e,i=this.members.findIndex(e=>t===e);if(0===i)return!1;for(let t=i;t>=0;t--){let i=this.members[t];if(!1!==i.isPresent){e=i;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,e&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&i.hide()}}
1exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:i}=t;e.onExitComplete&&e.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let r$={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},rz=["","X","Y","Z"],rq={visibility:"hidden"},rH=0;function rX(t,e,i,r){let{latestValues:n}=e;n[t]&&(i[t]=n[t],e.setStaticValue(t,0),r&&(r[t]=0))}function rY({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:r,resetTransform:n}){return class{constructor(t={},i=null==e?void 0:e()){this.id=rH++,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,y.value&&(r$.nodes=r$.calculatedTargetDeltas=r$.calculatedProjections=0),this.nodes.forEach(rZ),this.nodes.forEach(r3),this.nodes.forEach(r4),this.nodes.forEach(rQ),y.addProjectionMetrics&&y.addProjectionMetrics(r$)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=i?i.root||i:this,this.path=i?[...i.path,i]:[],this.parent=i,this.depth=i?i.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rg)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new C),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let i=this.eventHandlers.get(t);i&&i.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,i=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),i&&(n||r)&&(this.isLayoutDirty=!0),t){let i,r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,i&&i(),i=function(t,e){let i=A.now(),r=({timestamp:n})=>{let s=n-i;s>=250&&(b(r),t(s-e))};return w.read(r,!0),()=>b(r)}(r,250),ra.hasAnimatedSinceResize&&(ra.hasAnimatedSinceResize=!1,this.nodes.forEach(r5))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&s&&(r||n)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeLayoutChanged:i,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||ne,{onLayoutAnimationStart:o,onLayoutAnimationComplete:a}=s.getProps(),u=!this.targetLayout||!rI(this.targetLayout,r),h=!e&&i;if(this.options.layoutRoot||this.resumeFrom||h||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,h);let e={...l(n,"layout"),onPlay:o,onComplete:a};(s.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||r5(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,b(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.forEac
1h(r9),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:i}=e.options;if(!i)return;let r=i.props[F];if(window.MotionHasOptimisedAnimation(r,"transform")){let{layout:t,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",w,!(t||i))}let{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&t(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:i}=this.options;if(void 0===e&&!i)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(r0);return}this.isUpdating||this.nodes.forEach(r1),this.isUpdating=!1,this.nodes.forEach(r2),this.nodes.forEach(rK),this.nodes.forEach(rG),this.clearAllSnapshots();let t=A.now();T.delta=td(0,1e3/60,t-T.timestamp),T.timestamp=t,T.isProcessing=!0,P.update.process(T),P.preRender.process(T),P.render.process(T),T.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,rd.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(rJ),this.sharedNodes.forEach(r6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,w.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){w.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),!this.snapshot||ik(this.snapshot.measuredBox.x)||ik(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=i$(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){let e=r(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!n)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!rF(this.projectionDelta),i=this.getTransformTemplate(),r=i?i(this.latestValues,""):void 0,s=r!==this.prevTransformTemplateValue;t&&(e||iY(this.latestValues)||s)&&(n(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let i=this.measurePageBox(),r=this.removeElementScroll(i);return t&&(r=this.removeTransform(r)),nn((e=r).x),nn(e.y),{animationId:this.root.animationId,measuredBox:i,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return i$();let i=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(no))){let{scroll:t}=this.root;t&&(iJ(i.x,t.offset.x),iJ(i.y,t.offset.y))}return i}removeElementScroll(t){var e;let i=i$();if(rC(i,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return i;for(let e=0;e<this.path.length;e++){let r=this.path[e],{scroll:n,options:s}=r;r!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&rC(i,t),iJ(i.x,n.offset.x),iJ(i.y,n.offset.y))}return i}applyTransform(t,e=!1){let i=i$();rC(i,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&i1(i,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),iY(r.latestValues)&&i1(i,r.latestValues)}return iY(this.latestValues)&&i1(i,this.latestValues),i}removeTransform(t){let e=i$();rC(e,t);for(let t=0;t<this.path.length;t++){let i=this.path[t];if(!i.instance||!iY(i.latestValues))continue;iX(i.latestValues)&&i.updateSnapshot();let r=i$();rC(r,i.measurePageBox()),rj(e,i.latestValues,i.snapshot?i.snapshot.layoutBox:void 0,r)}return iY(this.latestValues)&&rj(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==T.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,i,r,n;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let o=!!this.resumingFrom||this!==s;if(!(t||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=T.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=i$(),this.relativeTargetOrigin=i$(),iL(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),rC(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=i$(),this.targetWithTransforms=i$()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),i=this.target,r=this.relativeTarget,n=this.relativeParent.target,iD(i.x,r.x,n.x),iD(i.y,r.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rC(this.target,this.layout.layoutBox),iQ(this.target,this.targetDelta)):rC(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=i$(),this.relativeTargetOrigin=i$(),iL(this.relativeTargetOrigin,this.target,t.target),rC(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}y.value&&r$.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||iX(this.parent.latestValues)||iK(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),i=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),i&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===T.timestamp&&(r=!1),r)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;rC(this.layoutCorrected,this.layout.layoutBox);let o=this.treeScale.x,a=this.treeScale.y;!function(t,e,i,r=!1){let n,s,o=i.length;if(o){e.x=e.y=1;for(let a=0;a<o;a++){s=(n=i[a]).projectionDelta;let{visualElement:o}=n.options;(!o||!o.props.style||"contents"!==o.props.style.display)&&(r&&n.options.layoutScroll&&n.scroll&&n!==n.root&&i1(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(e.x*=s.x.scale,e.y*=s.y.scale,iQ(t,s)),r&&iY(n.latestValues)&&i1(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,i),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=i$());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(rR(this.prevProjectionDelta.x,this.projectionDelta.x),rR(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),iV(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===o&&this.treeScale.y===a&&rU(this.projectionDelta.x,this.prevProjectionDelta.x)&&rU(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),y.value&&r$.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=iU(),this.projectionDelta=iU(),this.projectionDeltaWithTransform=iU()}setAnimationOrigin(t,e=!1){let i,r=this.snapshot,n=r?r.latestValues:{},s={...this.latestValues},o=iU();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=i$(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),h=!u||u.members.length<=1,d=!!(l&&!h&&
1!0===this.options.crossfade&&!this.path.some(nt));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(r7(o.x,t.x,r),r7(o.y,t.y,r),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,p,f,m,v;if(iL(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=a,v=r,r8(p.x,f.x,m.x,v),r8(p.y,f.y,m.y,v),i&&(u=this.relativeTarget,c=i,rO(u.x,c.x)&&rO(u.y,c.y)))this.isProjectionDirty=!1;i||(i=i$()),rC(i,this.relativeTarget)}l&&(this.animationValues=s,function(t,e,i,r,n,s){n?(t.opacity=eg(0,void 0!==i.opacity?i.opacity:1,rS(r)),t.opacityExit=eg(void 0!==e.opacity?e.opacity:1,0,rA(r))):s&&(t.opacity=eg(void 0!==e.opacity?e.opacity:1,void 0!==i.opacity?i.opacity:1,r));for(let n=0;n<rw;n++){let s=`border${rx[n]}Radius`,o=rP(e,s),a=rP(i,s);(void 0!==o||void 0!==a)&&(o||(o=0),a||(a=0),0===o||0===a||rT(o)===rT(a)?(t[s]=Math.max(eg(rb(o),rb(a),r),0),(t_.test(a)||t_.test(o))&&(t[s]+="%")):t[s]=a)}(e.rotate||i.rotate)&&(t.rotate=eg(e.rotate||0,i.rotate||0,r))}(s,n,this.latestValues,r,d,h)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(b(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=w.update(()=>{ra.hasAnimatedSinceResize=!0,ev.layout++,this.currentAnimation=function(t,e,i){let r=D(0)?0:V(t);return r.start(e7("",r,1e3,i)),r.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{ev.layout--},onComplete:()=>{ev.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:i,layout:r,latestValues:n}=t;if(e&&i&&r){if(this!==t&&this.layout&&r&&ns(this.options.animationType,this.layout.layoutBox,r.layoutBox)){i=this.target||i$();let e=ik(this.layout.layoutBox.x);i.x.min=t.target.x.min,i.x.max=i.x.min+e;let r=ik(this.layout.layoutBox.y);i.y.min=t.target.y.min,i.y.max=i.y.min+r}rC(e,i),i1(e,n),iV(this.projectionDeltaWithTransform,this.layoutCorrected,e,n)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rW),this.sharedNodes.get(t).add(e);let i=e.options.initialPromotionConfig;e.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:i}={}){let r=this.getStack();r&&r.promote(this,i),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:i}=t;if((i.z||i.rotate||i.rotateX||i.rotateY||i.rotateZ||i.skewX||i.skewY)&&(e=!0),!e)return;let r={};i.z&&rX("z",t,r,this.animationValues);for(let e=0;e<rz.length;e++)rX(`rotate${rz[e]}`,t,r,this.animationValues),rX(`skew${rz[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}getProjectionStyles(t){var e,i;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rq;let r={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=ry(null==t?void 0:t.pointerEvents)||"",r.transform=n?n(this.latestValues,""):"none",r;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=ry(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!iY(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1),e}let o=s.animationValues||s.latestValues;
1this.applyTransformsToTarget(),r.transform=function(t,e,i){let r="",n=t.x.translate/e.x,s=t.y.translate/e.y,o=(null==i?void 0:i.z)||0;if((n||s||o)&&(r=`translate3d(${n}px, ${s}px, ${o}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),i){let{transformPerspective:t,rotate:e,rotateX:n,rotateY:s,skewX:o,skewY:a}=i;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),n&&(r+=`rotateX(${n}deg) `),s&&(r+=`rotateY(${s}deg) `),o&&(r+=`skewX(${o}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(r+=`scale(${a}, ${l})`),r||"none"}(this.projectionDeltaWithTransform,this.treeScale,o),n&&(r.transform=n(o,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,s.animationValues?r.opacity=s===this?null!==(i=null!==(e=o.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==i?i:1:this.preserveOpacity?this.latestValues.opacity:o.opacityExit:r.opacity=s===this?void 0!==o.opacity?o.opacity:"":void 0!==o.opacityExit?o.opacityExit:0,rh){if(void 0===o[t])continue;let{correct:e,applyTo:i,isCSSVariable:n}=rh[t],a="none"===r.transform?o[t]:e(o[t],s);if(i){let t=i.length;for(let e=0;e<t;e++)r[i[e]]=a}else n?this.options.visualElement.renderState.vars[t]=a:r[t]=a}return this.options.layoutId&&(r.pointerEvents=s===this?ry(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(r0),this.root.sharedNodes.clear()}}}function rK(t){t.updateLayout()}function rG(t){var e;let i=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&i&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:n}=t.options,s=i.source!==t.layout.source;"size"===n?iz(t=>{let r=s?i.measuredBox[t]:i.layoutBox[t],n=ik(r);r.min=e[t].min,r.max=r.min+n}):ns(n,i.layoutBox,e)&&iz(r=>{let n=s?i.measuredBox[r]:i.layoutBox[r],o=ik(e[r]);n.max=n.min+o,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+o)});let o=iU();iV(o,e,i.layoutBox);let a=iU();s?iV(a,t.applyTransform(r,!0),i.measuredBox):iV(a,e,i.layoutBox);let l=!rF(o),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:n,layout:s}=r;if(n&&s){let o=i$();iL(o,i.layoutBox,n.layoutBox);let a=i$();iL(a,e,s.layoutBox),rI(o,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=o,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:i,delta:a,layoutDelta:o,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rZ(t){y.value&&r$.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rQ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rJ(t){t.clearSnapshot()}function r0(t){t.clearMeasurements()}function r1(t){t.isLayoutDirty=!1}function r2(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function r5(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function r3(t){t.resolveTargetDelta()}function r4(t){t.calcProjection()}function r9(t){t.resetSkewAndRotation()}function r6(t){t.removeLeadSnapshot()}function r7(t,e,i){t.translate=eg(e.translate,0,i),t.scale=eg(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function r8(t,e,i,r){t.min=eg(e.min,i.min,r),t.max=eg(e.max,i.max,r)}function nt(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let ne={duration:.45,ease:[.4,0,.1,1]},ni=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),nr=ni("applewebkit/")&&!ni("chrome/")?Math.round:v;function nn(t){t.min=nr(t.min),t.max=nr(t.max)}
1function ns(t,e,i){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(rN(e)-rN(i)))}function no(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let na=rY({attachResizeListener:(t,e)=>ix(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),nl={current:void 0},nu=rY({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!nl.current){let t=new na({});t.mount(window),t.setOptions({layoutScroll:!0}),nl.current=t}return nl.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function nh(t,e){let i=function(t,e,i){var r;if(t instanceof Element)return[t];if("string"==typeof t){let e=document,i=(r=void 0,e.querySelectorAll(t));return i?Array.from(i):[]}return Array.from(t)}(t),r=new AbortController;return[i,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function nd(t){return!("touch"===t.pointerType||ig.x||ig.y)}function nc(t,e,i){let{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===i);let n=r["onHover"+i];n&&w.postRender(()=>n(e,iw(e)))}class np extends ic{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=nh(t,i),o=t=>{if(!nd(t))return;let{target:i}=t,r=e(i,t);if("function"!=typeof r||!i)return;let s=t=>{nd(t)&&(r(t),i.removeEventListener("pointerleave",s))};i.addEventListener("pointerleave",s,n)};return r.forEach(t=>{t.addEventListener("pointerenter",o,n)}),s}(t,(t,e)=>(nc(this.node,e,"Start"),t=>nc(this.node,t,"End"))))}unmount(){}}class nf extends ic{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){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=e_(ix(this.node.current,"focus",()=>this.onFocus()),ix(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let nm=(t,e)=>!!e&&(t===e||nm(t,e.parentElement)),nv=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),ng=new WeakSet;function ny(t){return e=>{"Enter"===e.key&&t(e)}}function nx(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let nw=(t,e)=>{let i=t.currentTarget;if(!i)return;let r=ny(()=>{if(ng.has(i))return;nx(i,"down");let t=ny(()=>{nx(i,"up")});i.addEventListener("keyup",t,e),i.addEventListener("blur",()=>nx(i,"cancel"),e)});i.addEventListener("keydown",r,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",r),e)};function nb(t){return iy(t)&&!(ig.x||ig.y)}function nT(t,e,i){let{props:r}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===i);let n=r["onTap"+("End"===i?"":i)];n&&w.postRender(()=>n(e,iw(e)))}class nP extends ic{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,i={}){let[r,n,s]=nh(t,i),o=t=>{let r=t.currentTarget;if(!nb(t)||ng.has(r))return;ng.add(r);let s=e(r,t),o=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),nb(t)&&ng.has(r)&&(ng.delete(r),"function"==typeof s&&s(t,{success:e}))},a=t=>{o(t,i.useGlobalTarget||nm(r,t.target))},l=t=>{o(t,!1)};window.addEventListener("pointerup",a,n),window.addEventListener("pointercancel",l,n)};return r.forEach(t=>{!nv.has(t.tagName)&&-1===t.tabIndex&&null===t.getAttribute("tabindex")&&(t.tabIndex=0),(i.useGlobalTarget?window:t).addEventListener("pointerdown",o,n),t.addEventListener("focus",t=>nw(t,n),n)}),s}(t,(t,e)=>(nT(this.node,e,"Start"),(t,{success:e})=>nT(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let nS=new WeakMap,nA=new WeakMap,n_=t=>{let e=nS.get(t.target);e&&e(t)},nE=t=>{t.forEach(n_)},nC={some:0,all:1};
1class nR extends ic{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:i,amount:r="some",once:n}=t,s={root:e?e.current:void 0,rootMargin:i,threshold:"number"==typeof r?r:nC[r]};return function(t,e,i){let r=function({root:t,...e}){let i=t||document;nA.has(i)||nA.set(i,{});let r=nA.get(i),n=JSON.stringify(e);return r[n]||(r[n]=new IntersectionObserver(nE,{root:t,...e})),r[n]}(e);return nS.set(t,i),r.observe(t),()=>{nS.delete(t),r.unobserve(t)}}(this.node.current,s,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,n&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:i,onViewportLeave:r}=this.node.getProps(),s=e?i:r;s&&s(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}(t,e))&&this.startObserver()}unmount(){}}let nk=(0,rr.createContext)({strict:!1});var nM=i(89580);let nV=(0,rr.createContext)({});function nD(t){return n(t.animate)||io.some(e=>ir(t[e]))}function nj(t){return!!(nD(t)||t.variants)}function nL(t){return Array.isArray(t)?t.join(" "):t}var nF=i(81828);let nO={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"]},nB={};for(let t in nO)nB[t]={isEnabled:e=>nO[t].some(t=>!!e[t])};let nI=Symbol.for("motionComponentSymbol");var nN=i(19381),nU=i(66670);function nW(t,{layout:e,layoutId:i}){return h.has(t)||t.startsWith("origin")||(e||void 0!==i)&&(!!rh[t]||"opacity"===t)}let n$=(t,e)=>e&&"number"==typeof t?e.transform(t):t,nz={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nq=u.length;function nH(t,e,i){let{style:r,vars:n,transformOrigin:s}=t,o=!1,a=!1;for(let t in e){let i=e[t];if(h.has(t)){o=!0;continue}if(ei(t)){n[t]=i;continue}{let e=n$(i,tX[t]);t.startsWith("origin")?(a=!0,s[t]=e):r[t]=e}}if(!e.transform&&(o||i?r.transform=function(t,e,i){let r="",n=!0;for(let s=0;s<nq;s++){let o=u[s],a=t[o];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===+!!o.startsWith("scale"):0===parseFloat(a))||i){let t=n$(a,tX[o]);if(!l){n=!1;let e=nz[o]||o;r+=`${e}(${t}) `}i&&(e[o]=t)}}return r=r.trim(),i?r=i(e,n?"":r):n&&(r="none"),r}(e,t.transform,i):r.transform&&(r.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:i=0}=s;r.transformOrigin=`${t} ${e} ${i}`}}let nX=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function nY(t,e,i){for(let r in e)D(e[r])||nW(r,i)||(t[r]=e[r])}let nK=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 nG(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||nK.has(t)}let nZ=t=>!nG(t);try{!function(t){t&&(nZ=e=>e.startsWith("on")?!nG(e):t(e))}(require("@emotion/is-prop-valid").default)}catch(t){}let nQ=["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 nJ(t){if("string"!=typeof t||t.includes("-"));else if(nQ.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let n0={offset:"stroke-dashoffset",array:"stroke-dasharray"},n1={offset:"strokeDashoffset",array:"strokeDasharray"};function n2(t,e,i){return"string"==typeof t?t:tE.transform(e+i*t)}function n5(t,{attrX:e,attrY:i,attrScale:r,originX:n,originY:s,pathLength:o,pathSpacing:a=1,pathOffset:l=0,...u}
1,h,d){if(nH(t,u,d),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:c,style:p,dimensions:f}=t;c.transform&&(f&&(p.transform=c.transform),delete c.transform),f&&(void 0!==n||void 0!==s||p.transform)&&(p.transformOrigin=function(t,e,i){let r=n2(e,t.x,t.width),n=n2(i,t.y,t.height);return`${r} ${n}`}(f,void 0!==n?n:.5,void 0!==s?s:.5)),void 0!==e&&(c.x=e),void 0!==i&&(c.y=i),void 0!==r&&(c.scale=r),void 0!==o&&function(t,e,i=1,r=0,n=!0){t.pathLength=1;let s=n?n0:n1;t[s.offset]=tE.transform(-r);let o=tE.transform(e),a=tE.transform(i);t[s.array]=`${o} ${a}`}(c,o,a,l,!1)}let n3=()=>({...nX(),attrs:{}}),n4=t=>"string"==typeof t&&"svg"===t.toLowerCase();var n9=i(4941);let n6=t=>(e,i)=>{let r=(0,rr.useContext)(nV),s=(0,rr.useContext)(nN.t),a=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:i},r,s,a){let l={latestValues:function(t,e,i,r){let s={},a=r(t,{});for(let t in a)s[t]=ry(a[t]);let{initial:l,animate:u}=t,h=nD(t),d=nj(t);e&&d&&!h&&!1!==t.inherit&&(void 0===l&&(l=e.initial),void 0===u&&(u=e.animate));let c=!!i&&!1===i.initial,p=(c=c||!1===l)?u:l;if(p&&"boolean"!=typeof p&&!n(p)){let e=Array.isArray(p)?p:[p];for(let i=0;i<e.length;i++){let r=o(t,e[i]);if(r){let{transitionEnd:t,transition:e,...i}=r;for(let t in i){let e=i[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(s[t]=e)}for(let e in t)s[e]=t[e]}}}return s}(r,s,a,t),renderState:e()};return i&&(l.onMount=t=>i({props:r,current:t,...l}),l.onUpdate=t=>i(t)),l})(t,e,r,s);return i?a():(0,n9.M)(a)};function n7(t,e,i){var r;let{style:n}=t,s={};for(let o in n)(D(n[o])||e.style&&D(e.style[o])||nW(o,t)||(null===(r=null==i?void 0:i.getValue(o))||void 0===r?void 0:r.liveStyle)!==void 0)&&(s[o]=n[o]);return s}let n8={useVisualState:n6({scrapeMotionValuesFromProps:n7,createRenderState:nX})};function st(t,e){try{e.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(t){e.dimensions={x:0,y:0,width:0,height:0}}}function se(t,{style:e,vars:i},r,n){for(let s in Object.assign(t.style,e,n&&n.getProjectionStyles(r)),i)t.style.setProperty(s,i[s])}let si=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 sr(t,e,i,r){for(let i in se(t,e,void 0,r),e.attrs)t.setAttribute(si.has(i)?i:L(i),e.attrs[i])}function sn(t,e,i){let r=n7(t,e,i);for(let i in t)(D(t[i])||D(e[i]))&&(r[-1!==u.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i]=t[i]);return r}let ss=["x","y","width","height","cx","cy","r"],so={useVisualState:n6({scrapeMotionValuesFromProps:sn,createRenderState:n3,onUpdate:({props:t,prevProps:e,current:i,renderState:r,latestValues:n})=>{if(!i)return;let s=!!t.drag;if(!s){for(let t in n)if(h.has(t)){s=!0;break}}if(!s)return;let o=!e;if(e)for(let i=0;i<ss.length;i++){let r=ss[i];t[r]!==e[r]&&(o=!0)}o&&w.read(()=>{st(i,r),w.render(()=>{n5(r,n,n4(i.tagName),t.transformTemplate),sr(i,r)})})}})},sa={current:null},sl={current:!1},su=[...el,tV,tU],sh=t=>su.find(ea(t)),sd=new WeakMap,sc=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class sp{scrapeMotionValuesFromProps(t,e,i){return{}}constructor({parent:t,props:e,presenceContext:i,reducedMotionConfig:r,blockInitialAnimation:n,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=t8,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=()=>{let t=A.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,w.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.blockInitialAnimation=!!n,this.isControllingVariants=nD(e),this.isVariantNode=nj(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:h,...d}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in d){let e=d[t];void 0!==a[t]&&D(e)&&e.set(a[t],!1)}}mount(t){if(this.current=t,sd.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.forEac
1h((t,e)=>this.bindToMotionValue(e,t)),!sl.current&&(sl.current=!0,nF.B))if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>sa.current=t.matches;t.addListener(e),e()}else sa.current=!1;this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||sa.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in this.projection&&this.projection.unmount(),b(this.notifyUpdate),b(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){let i;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let r=h.has(t);r&&this.onBindTransform&&this.onBindTransform();let n=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&w.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{n(),s(),i&&i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in nB){let e=nB[t];if(!e)continue;let{isEnabled:i,Feature:r}=e;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):i$()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<sc.length;e++){let i=sc[e];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);let r=t["on"+i];r&&(this.propEventSubscriptions[i]=this.on(i,r))}this.prevMotionValues=function(t,e,i){for(let r in e){let n=e[r],s=i[r];if(D(n))t.addValue(r,n);else if(D(s))t.addValue(r,V(n,{owner:t}));else if(s!==n)if(t.hasValue(r)){let e=t.getValue(r);!0===e.liveStyle?e.jump(n):e.hasAnimated||e.set(n)}else{let e=t.getStaticValue(r);t.addValue(r,V(void 0!==e?e:n,{owner:t}))}}for(let r in i)void 0===e[r]&&t.removeValue(r);return e}(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){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let i=this.values.get(t);e!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return void 0===i&&void 0!==e&&(i=V(null===e?void 0:e,{owner:this}),this.addValue(t,i)),i}readValue(t,e){var i;let r=void 0===this.latestValues[t]&&this.current?null!==(i=this.getBaseTargetFromProps(this.props,t))&&void 0!==i?i:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=r&&("string"==typeof r&&(et(r)||th(r))?r=parseFloat(r):!sh(r)&&tU.test(e)&&(r=tG(t,e)),this.setBaseTarget(t,D(r)?r.get():r)),D(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let i,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let n=o(this.props,r,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);n&&(i=n[t])}if(r&&void 0!==i)return i;let n=this.getBaseTargetFromProps(this.props,t);return void 0===n||D(n)?void 0!==this.initialValues[t]&&void 0===i?void 0:this.baseTarget[t]:n}on(t,e){return this.events[t]||(this.events[t]=new C),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class sf extends sp{constructor(){super(...arguments),this.KeyframeResolver=eh}sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:i}){delete e[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;D(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class sm extends sf{constructor(){super(...arguments),this.type="html",this.renderInstance=se}readValueFromInstance(t,e){if(h.has(e)){let t=tK(e);return t&&t.default||0}{let i=window.getComputedStyle(t),r=(ei(e)?i.getPropertyValue(e):i[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return i2(t,e)}build(t,e,i){nH(t,e,i.transformTemplate)}
1scrapeMotionValuesFromProps(t,e,i){return n7(t,e,i)}}class sv extends sf{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=i$,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&st(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(h.has(e)){let t=tK(e);return t&&t.default||0}return e=si.has(e)?e:L(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,i){return sn(t,e,i)}onBindTransform(){this.current&&!this.renderState.dimensions&&w.postRender(this.updateDimensions)}build(t,e,i){n5(t,e,this.isSVGTag,i.transformTemplate)}renderInstance(t,e,i,r){sr(t,e,i,r)}mount(t){this.isSVGTag=n4(t.tagName),super.mount(t)}}let sg=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(i,r)=>"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}((rt={animation:{Feature:ip},exit:{Feature:iv},inView:{Feature:nR},tap:{Feature:nP},focus:{Feature:nf},hover:{Feature:np},pan:{Feature:i8},drag:{Feature:i6,ProjectionNode:nu,MeasureLayout:rf},layout:{ProjectionNode:nu,MeasureLayout:rf}},re=(t,e)=>nJ(t)?new sv(e):new sm(e,{allowProjection:t!==rr.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,i;let{preloadedFeatures:r,createVisualElement:n,useRender:s,useVisualState:o,Component:a}=t;function l(t,e){var i,r,l;let u,h={...(0,rr.useContext)(nM.Q),...t,layoutId:function(t){let{layoutId:e}=t,i=(0,rr.useContext)(rs.L).id;return i&&void 0!==e?i+"-"+e:e}(t)},{isStatic:d}=h,c=function(t){let{initial:e,animate:i}=function(t,e){if(nD(t)){let{initial:e,animate:i}=t;return{initial:!1===e||ir(e)?e:void 0,animate:ir(i)?i:void 0}}return!1!==t.inherit?e:{}}(t,(0,rr.useContext)(nV));return(0,rr.useMemo)(()=>({initial:e,animate:i}),[nL(e),nL(i)])}(t),p=o(t,d);if(!d&&nF.B){r=0,l=0,(0,rr.useContext)(nk).strict;let t=function(t){let{drag:e,layout:i}=nB;if(!e&&!i)return{};let r={...e,...i};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==i?void 0:i.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(h);u=t.MeasureLayout,c.visualElement=function(t,e,i,r,n){var s,o;let{visualElement:a}=(0,rr.useContext)(nV),l=(0,rr.useContext)(nk),u=(0,rr.useContext)(nN.t),h=(0,rr.useContext)(nM.Q).reducedMotion,d=(0,rr.useRef)(null);r=r||l.renderer,!d.current&&r&&(d.current=r(t,{visualState:e,parent:a,props:i,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:h}));let c=d.current,p=(0,rr.useContext)(ro);c&&!c.projection&&n&&("html"===c.type||"svg"===c.type)&&function(t,e,i,r){let{layoutId:n,layout:s,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!o||a&&iR(a),visualElement:t,animationType:"string"==typeof s?s:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(d.current,i,n,p);let f=(0,rr.useRef)(!1);(0,rr.useInsertionEffect)(()=>{c&&f.current&&c.update(i,u)});let m=i[F],v=(0,rr.useRef)(!!m&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,m))&&(null===(o=window.MotionHasOptimisedAnimation)||void 0===o?void 0:o.call(window,m)));return(0,nU.E)(()=>{c&&(f.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),rd.render(c.render),v.current&&c.animationState&&c.animationState.animateChanges())}),(0,rr.useEffect)(()=>{c&&(!v.current&&c.animationState&&c.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,m)}),v.current=!1))}),c}(a,p,h,n,t.ProjectionNode)}return(0,ri.jsxs)(nV.Provider,{value:c,children:[u&&c.visualElement?(0,ri.jsx)(u,{visualElement:c.visualElement,...h}):null,s(a,t,(i=c.visualElement,(0,rr.useCallback)(t=>{t&&p.onMount&&p.onMount(t),i&&(t?i.mount(t):i.unmount()),e&&("function"==typeof e?e(t):iR(e)&&(e.current=t))},[i])),p,d,c.visualElement)]})}r&&function(t){for(let e in t)nB[e]={...nB[e],...t[e]}}(r),l.displayName="motion.".concat("string"==typeof a?a:"create(".concat(null!==(i=null!==(e=a.displayName)&&void 0!==e?e:a.name)&&void 0!==i?i:"",")"));let u=(0,rr.forwardRef)(l);return u[nI]=a,u}({...nJ(t)?so:n8,preloadedFeatures:rt,useRender:function(t=!1){return(e,i,r,{latestValues:n},s)=>
1{let o=(nJ(e)?function(t,e,i,r){let n=(0,rr.useMemo)(()=>{let i=n3();return n5(i,e,n4(r),t.transformTemplate),{...i.attrs,style:{...i.style}}},[e]);if(t.style){let e={};nY(e,t.style,t),n.style={...e,...n.style}}return n}:function(t,e){let i={},r=function(t,e){let i=t.style||{},r={};return nY(r,i,t),Object.assign(r,function({transformTemplate:t},e){return(0,rr.useMemo)(()=>{let i=nX();return nH(i,e,t),Object.assign({},i.vars,i.style)},[e])}(t,e)),r}(t,e);return t.drag&&!1!==t.dragListener&&(i.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=r,i})(i,n,s,e),a=function(t,e,i){let r={};for(let n in t)("values"!==n||"object"!=typeof t.values)&&(nZ(n)||!0===i&&nG(n)||!e&&!nG(n)||t.draggable&&n.startsWith("onDrag"))&&(r[n]=t[n]);return r}(i,"string"==typeof e,t),l=e!==rr.Fragment?{...a,...o,ref:r}:{},{children:u}=i,h=(0,rr.useMemo)(()=>D(u)?u.get():u,[u]);return(0,rr.createElement)(e,{...l,children:h})}}(e),createVisualElement:re,Component:t})}))},37920:t=>{t.exports={header:"tweet-header_header___QUuu",avatar:"tweet-header_avatar__ZGVrr",avatarOverflow:"tweet-header_avatarOverflow__a8885",avatarSquare:"tweet-header_avatarSquare__hbARr",avatarShadow:"tweet-header_avatarShadow__fB9Kb",author:"tweet-header_author__ZiP_j",authorLink:"tweet-header_authorLink___i2Rw",authorVerified:"tweet-header_authorVerified__Xas5Z",authorLinkText:"tweet-header_authorLinkText__wOXub",authorMeta:"tweet-header_authorMeta__uerHE",authorFollow:"tweet-header_authorFollow__PIBrU",username:"tweet-header_username__fTvjQ",follow:"tweet-header_follow__kwXVM",separator:"tweet-header_separator__Y1RLM",brand:"tweet-header_brand__ONeX2",twitterIcon:"tweet-header_twitterIcon__N0HdT"}},39508:t=>{t.exports={actions:"tweet-actions_actions__RLHhh",like:"tweet-actions_like__q7K9J",reply:"tweet-actions_reply__4MCG1",copy:"tweet-actions_copy__p6Fsc",likeIconWrapper:"tweet-actions_likeIconWrapper__YBMan",likeCount:"tweet-actions_likeCount__UtBQr",replyIconWrapper:"tweet-actions_replyIconWrapper__WCpZj",copyIconWrapper:"tweet-actions_copyIconWrapper__HHa6t",likeIcon:"tweet-actions_likeIcon__RXmji",replyIcon:"tweet-actions_replyIcon__DLlii",copyIcon:"tweet-actions_copyIcon__P30YO",replyText:"tweet-actions_replyText__hSs1S",copyText:"tweet-actions_copyText__nW3a1"}},40944:(t,e,i)=>{"use strict";i.d(e,{FD:()=>g,MY:()=>s,PJ:()=>o,Wl:()=>l,XP:()=>d,_x:()=>n,bL:()=>c,po:()=>u,ql:()=>h,wO:()=>a,yL:()=>y});var r=i(81853);function n(t){return("object"==typeof t?null==t.host&&null==t.hostname:!/^[a-z]+:/i.test(t))&&!function(t){let e="object"==typeof t?t.pathname:t;return null!=e&&!e.startsWith("/")}(t)}function s(t,e){return t.replace(RegExp(`^${e}`),"")||"/"}function o(t,e){let i=t;return/^\/(\?.*)?$/.test(e)&&(e=e.slice(1)),i+=e}function a(t,e){return e===t||e.startsWith(`${t}/`)}function l(t,e,i){return"string"==typeof t?t:t[e]||i}function u(t){let e=function(){try{return"true"===r.env._next_intl_trailing_slash}catch{return!1}}();if("/"!==t){let i=t.endsWith("/");e&&!i?t+="/":!e&&i&&(t=t.slice(0,-1))}return t}function h(t,e){let i=u(t),r=u(e);return(function(t){let e=t.replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"?(.*)").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)");return RegExp(`^${e}$`)})(i).test(r)}function d(t,e){return"never"!==e.mode&&e.prefixes?.[t]||c(t)}function c(t){return"/"+t}function p(t){return t.includes("[[...")}function f(t){return t.includes("[...")}function m(t){return t.includes("[")}function v(t,e){let i=t.split("/"),r=e.split("/"),n=Math.max(i.length,r.length);for(let t=0;t<n;t++){let e=i[t],n=r[t];if(!e&&n)return -1;if(e&&!n)return 1;if(e||n){if(!m(e)&&m(n))return -1;if(m(e)&&!m(n))return 1;if(!f(e)&&f(n))return -1;if(f(e)&&!f(n))return 1;if(!p(e)&&p(n))return -1;if(p(e)&&!p(n))return 1}}return 0}function g(t){return t.sort(v)}function y(t){return"function"==typeof t.then}},42793:t=>{t.exports={root:"tweet-link_root__oJ5ca"}},43786:(t,e,i)=>{"use strict";i.d(e,{xQ:()=>s});var r=i(38425),n=i(19381);function s(t=!0){let e=(0,r.useContext)(n.t);if(null===e)return[!0,null];let{isPresent:i,onExitComplete:o,register:a}=e,l=(0,r.useId)();(0,r.useEffect)(()=>{t&&a(l)},[t]);let u=(0,r.useCallback)(()=>t&&o&&o(l),[l,o,t]);return!i&&o?[!1,u]:[!0]}},44484:t=>{t.exports={verified:"icons_verified__SVJqD"}},45354:(t,e,i)=>{"use strict";i.r(e),i.d(e,{QuotedTweetContainer:()=>s});var r=i(62573),n=i(84444);let s=t=>{let{tweet:e,children:i}=t;return(0,r.jsx)("div",{className:n.root,onClick:t=>{t.preventDefault(),window.open(e.url,"_blank")},children:(0,r.jsx)("article",{className:n.article,children:i})})}},46516:(t,e,i)=>{"use strict";let r;i.r(e),i.d(e,{useMounted:()=>tu,useTweet:()=>tl});var n=i(38425),s=i(19086),o=Object.prototype.hasOwnProperty;let a=new WeakMap,l=()=>{},u=l(),h=Object,d=t=>t===u,c=t=>"function"==typeof t,p=(t,e)=>({...t,...e}),f=t=>c(t.then),m={},v={},g="undefined",y=typeof window!=g,x=typeof document!=g,w=y&&"Deno"in window,b=()=>y&&typeof window.requestAnimationFrame!=g,T=(t,e)=>{let i=a.get(t);return[()=>!d(e)&&t.get(e)||m,r=>{if(!d(e)){let n=t.get(e);e in v||(v[e]=n),i[5](e,p(n,r),n||m)}},i[6],()=>!d(e)&&e in v?v[e]:!d(e)&&t.get(e)||m]},P=!0,[S,A]=y&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[l,l],_={initFocus:t=>(x&&document.addEventListener("visibilitychange",t),S("focus",t),()=>{x&&document.removeEventListener("visibilitychange",t),A("focus",t)}),initReconnect:t=>{let e=()=>{P=!0,t()},i=()=>{P=!1};return S("online",e),S("offline",i),()=>{A("online",e),A("offline",i)}}},E=!n.useId,C=!y||w,R=t=>b()?window.requestAnimationFrame(t):setTimeout(t,1),k=C?n.useEffect:n.useLayoutEffect,M="undefined"!=typeof navigator&&navigator.connection,V=!C&&M&&(["slow-2g","2g"].includes(M.effectiveType)||M.saveData),D=new WeakMap,j=(t,e)=>h.prototype.toString.call(t)==="[object ".concat(e,"]"),L=0,F=t=>{let e,i,r=typeof t,n=j(t,"Date"),s=j(t,"RegExp"),o=j(t,"Object");
1if(h(t)!==t||n||s)e=n?t.toJSON():"symbol"==r?t.toString():"string"==r?JSON.stringify(t):""+t;else{if(e=D.get(t))return e;if(e=++L+"~",D.set(t,e),Array.isArray(t)){for(i=0,e="@";i<t.length;i++)e+=F(t[i])+",";D.set(t,e)}if(o){e="#";let r=h.keys(t).sort();for(;!d(i=r.pop());)d(t[i])||(e+=i+":"+F(t[i])+",");D.set(t,e)}}return e},O=t=>{if(c(t))try{t=t()}catch(e){t=""}let e=t;return[t="string"==typeof t?t:(Array.isArray(t)?t.length:t)?F(t):"",e]},B=0,I=()=>++B;async function N(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];let[r,n,s,o]=e,l=p({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{}),h=l.populateCache,m=l.rollbackOnError,v=l.optimisticData,g=t=>"function"==typeof m?m(t):!1!==m,y=l.throwOnError;if(c(n)){let t=[];for(let e of r.keys())!/^\$(inf|sub)\$/.test(e)&&n(r.get(e)._k)&&t.push(e);return Promise.all(t.map(x))}return x(n);async function x(t){let i,[n]=O(t);if(!n)return;let[o,p]=T(r,n),[m,x,w,b]=a.get(r),P=()=>{let e=m[n];return(c(l.revalidate)?l.revalidate(o().data,t):!1!==l.revalidate)&&(delete w[n],delete b[n],e&&e[0])?e[0](2).then(()=>o().data):o().data};if(e.length<3)return P();let S=s,A=I();x[n]=[A,0];let _=!d(v),E=o(),C=E.data,R=E._c,k=d(R)?C:R;if(_&&p({data:v=c(v)?v(k,C):v,_c:k}),c(S))try{S=S(k)}catch(t){i=t}if(S&&f(S)){if(S=await S.catch(t=>{i=t}
1),A!==x[n][0]){if(i)throw i;return S}i&&_&&g(i)&&(h=!0,p({data:k,_c:u}))}if(h&&!i&&(c(h)?p({data:h(S,k),error:u,_c:u}):p({data:S,error:u,_c:u})),x[n][1]=I(),Promise.resolve(P()).then(()=>{p({_c:u})}),i){if(y)throw i;return}return S}}let U=(t,e)=>{for(let i in t)t[i][0]&&t[i][0](e)},W=(t,e)=>{if(!a.has(t)){let i=p(_,e),r={},n=N.bind(u,t),s=l,o={},h=(t,e)=>{let i=o[t]||[];return o[t]=i,i.push(e),()=>i.splice(i.indexOf(e),1)},d=(e,i,r)=>{t.set(e,i);let n=o[e];if(n)for(let t of n)t(i,r)},c=()=>{if(!a.has(t)&&(a.set(t,[r,{},{},{},n,d,h]),!C)){let e=i.initFocus(setTimeout.bind(u,U.bind(u,r,0))),n=i.initReconnect(setTimeout.bind(u,U.bind(u,r,1)));s=()=>{e&&e(),n&&n(),a.delete(t)}}};return c(),[t,n,c,s]}return[t,a.get(t)[4]]},[$,z]=W(new Map),q=p({onLoadingSlow:l,onSuccess:l,onError:l,onErrorRetry:(t,e,i,r,n)=>{let s=i.errorRetryCount,o=n.retryCount,a=~~((Math.random()+.5)*(1<<(o<8?o:8)))*i.errorRetryInterval;(d(s)||!(o>s))&&setTimeout(r,a,n)},onDiscarded:l,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:V?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:V?5e3:3e3,compare:function t(e,i){var r,n;if(e===i)return!0;if(e&&i&&(r=e.constructor)===i.constructor){if(r===Date)return e.getTime()===i.getTime();if(r===RegExp)return e.toString()===i.toString();if(r===Array){if((n=e.length)===i.length)for(;n--&&t(e[n],i[n]););return -1===n}if(!r||"object"==typeof e){for(r in n=0,e)if(o.call(e,r)&&++n&&!o.call(i,r)||!(r in i)||!t(e[r],i[r]))return!1;return Object.keys(i).length===n}}return e!=e&&i!=i},isPaused:()=>!1,cache:$,mutate:z,fallback:{}},{isOnline:()=>P,isVisible:()=>{let t=x&&document.visibilityState;return d(t)||"hidden"!==t}}),H=(t,e)=>{let i=p(t,e);if(e){let{use:r,fallback:n}=t,{use:s,fallback:o}=e;r&&s&&(i.use=r.concat(s)),n&&o&&(i.fallback=p(n,o))}return i},X=(0,n.createContext)({}),Y=y&&window.__SWR_DEVTOOLS_USE__,K=Y?window.__SWR_DEVTOOLS_USE__:[],G=t=>c(t[1])?[t[0],t[1],t[2]||{}]:[t[0],null,(null===t[1]?t[2]:t[1])||{}],Z=()=>p(q,(0,n.useContext)(X)),Q=K.concat(t=>(e,i,r)=>{let n=i&&((...t)=>{let[r]=O(e),[,,,n]=a.get($);if(r.startsWith("$inf$"))return i(...t);let s=n[r];return d(s)?i(...t):(delete n[r],s)});return t(e,n,r)}),J=(t,e,i)=>{let r=e[t]||(e[t]=[]);return r.push(i),()=>{let t=r.indexOf(i);t>=0&&(r[t]=r[r.length-1],r.pop())}};Y&&(window.__SWR_DEVTOOLS_REACT__=n);let tt=()=>{},te=tt();new WeakMap;let ti=n.use||(t=>{switch(t.status){case"pending":throw t;case"fulfilled":return t.value;case"rejected":throw t.reason;default:throw t.status="pending",t.then(e=>{t.status="fulfilled",t.value=e},e=>{t.status="rejected",t.reason=e}),t}}),tr={dedupe:!0};h.defineProperty(t=>{let{value:e}=t,i=(0,n.useContext)(X),r=c(e),s=(0,n.useMemo)(()=>r?e(i):e,[r,i,e]),o=(0,n.useMemo)(()=>r?s:H(i,s),[r,i,s]),a=s&&s.provider,l=(0,n.useRef)(u);a&&!l.current&&(l.current=W(a(o.cache||$),s));let h=l.current;return h&&(o.cache=h[0],o.mutate=h[1]),k(()=>{if(h)return h[2]&&h[2](),h[3]},[]),(0,n.createElement)(X.Provider,p(t,{value:o}))},"defaultValue",{value:q});let tn=(r=(t,e,i)=>{let{cache:r,compare:o,suspense:l,fallbackData:h,revalidateOnMount:m,revalidateIfStale:v,refreshInterval:g,refreshWhenHidden:y,refreshWhenOffline:x,keepPreviousData:w}=i,[b,P,S,A]=a.get(r),[_,M]=O(t),V=(0,n.useRef)(!1),D=(0,n.useRef)(!1),j=(0,n.useRef)(_),L=(0,n.useRef)(e),F=(0,n.useRef)(i),B=()=>F.current,U=()=>B().isVisible()&&B().isOnline(),[W,$,z,q]=T(r,_),H=(0,n.useRef)({}).current,X=d(h)?d(i.fallback)?u:i.fallback[_]:h,Y=(t,e)=>{for(let i in H)if("data"===i){if(!o(t[i],e[i])&&(!d(t[i])||!o(to,e[i])))return!1}else if(e[i]!==t[i])return!1;return!0},K=(0,n.useMemo)(()=>{let t=!!_&&!!e&&(d(m)?!B().isPaused()&&!l&&!1!==v:m),i=e=>{let i=p(e);return(delete i._k,t)?{isValidating:!0,isLoading:!0,...i}:i},r=W(),n=q(),s=i(r),o=r===n?s:i(n),a=s;return[()=>{let t=i(W());return Y(t,a)?(a.data=t.data,a.isLoading=t.isLoading,a.isValidating=t.isValidating,a.error=t.error,a):(a=t,t)},()=>o]},[r,_]),G=(0,s.useSyncExternalStore)((0,n.useCallback)(t=>z(_,(e,i)=>{Y(i,e)||t()}),[r,_]),K[0],K[1]),Z=!V.current,Q=b[_]&&b[_].length>0,tt=G.data,te=d(tt)?X&&f(X)?ti(X):X:tt,tn=G.error,ts=(0,n.useRef)(te),to=w?d(tt)?d(ts.current)?te:ts.current:tt:te,ta=(!Q||!!d(tn))&&(Z&&!d(m)?m:!B().isPaused()&&(l?!d(te)&&v:d(te)||v)),tl=!!(_&&e&&Z&&ta),tu=d(G.isValidating)?tl:G.isValidating,th=d(G.isLoading)?tl:G.isLoading,td=(0,n.useCallback)(async t=>{let e,r,n=L.current;if(!_||!n||D.current||B().isPaused())return!1;let s=!0,a=t||{},l=!S[_]||!a.dedupe,h=()=>E?!D.current&&_===j.current&&V.current:_===j.current,p={isValidating:!1,isLoading:!1},f=()=>{$(p)},m=()=>{let t=S[_];t&&t[1]===r&&delete S[_]},v={isValidating:!0};
1d(W().data)&&(v.isLoading=!0);try{if(l&&($(v),i.loadingTimeout&&d(W().data)&&setTimeout(()=>{s&&h()&&B().onLoadingSlow(_,i)},i.loadingTimeout),S[_]=[n(M),I()]),[e,r]=S[_],e=await e,l&&setTimeout(m,i.dedupingInterval),!S[_]||S[_][1]!==r)return l&&h()&&B().onDiscarded(_),!1;p.error=u;let t=P[_];if(!d(t)&&(r<=t[0]||r<=t[1]||0===t[1]))return f(),l&&h()&&B().onDiscarded(_),!1;let a=W().data;p.data=o(a,e)?a:e,l&&h()&&B().onSuccess(e,_,i)}catch(i){m();let t=B(),{shouldRetryOnError:e}=t;!t.isPaused()&&(p.error=i,l&&h()&&(t.onError(i,_,t),(!0===e||c(e)&&e(i))&&(!B().revalidateOnFocus||!B().revalidateOnReconnect||U())&&t.onErrorRetry(i,_,t,t=>{let e=b[_];e&&e[0]&&e[0](3,t)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return s=!1,f(),!0},[_,r]),tc=(0,n.useCallback)((...t)=>N(r,j.current,...t),[]);if(k(()=>{L.current=e,F.current=i,d(tt)||(ts.current=tt)}),k(()=>{if(!_)return;let t=td.bind(u,tr),e=0,i=J(_,b,(i,r={})=>{if(0==i){let i=Date.now();B().revalidateOnFocus&&i>e&&U()&&(e=i+B().focusThrottleInterval,t())}else if(1==i)B().revalidateOnReconnect&&U()&&t();else if(2==i)return td();else if(3==i)return td(r)});return D.current=!1,j.current=_,V.current=!0,$({_k:M}),ta&&(d(te)||C?t():R(t)),()=>{D.current=!0,i()}},[_]),k(()=>{let t;function e(){let e=c(g)?g(W().data):g;e&&-1!==t&&(t=setTimeout(i,e))}function i(){!W().error&&(y||B().isVisible())&&(x||B().isOnline())?td(tr).then(e):e()}return e(),()=>{t&&(clearTimeout(t),t=-1)}},[g,y,x,_]),(0,n.useDebugValue)(to),l&&d(te)&&_){if(!E&&C)throw Error("Fallback data is required when using Suspense in SSR.");L.current=e,F.current=i,D.current=!1;let t=A[_];if(d(t)||ti(tc(t)),d(tn)){let t=td(tr);d(to)||(t.status="fulfilled",t.value=!0),ti(t)}else throw tn}return{mutate:tc,get data(){return H.data=!0,to},get error(){return H.error=!0,tn},get isValidating(){return H.isValidating=!0,tu},get isLoading(){return H.isLoading=!0,th}}},function(...t){let e=Z(),[i,n,s]=G(t),o=H(e,s),a=r,{use:l}=o,u=(l||[]).concat(Q);for(let t=u.length;t--;)a=u[t](a);return a(i,n||o.fetcher||null,o)});class ts extends Error{constructor({message:t,status:e,data:i}){super(t),this.name="TwitterApiError",this.status=e,this.data=i}}let to=tn.default||tn;async function ta(t){let[e,i]=t,r=await fetch(e,i),n=await r.json();if(r.ok)return n.data||null;throw new ts({message:'Failed to fetch tweet at "'.concat(e,'" with "').concat(r.status,'".'),data:n,status:r.status})}let tl=(t,e,i)=>{let{isLoading:r,data:n,error:s}=to(()=>e||t?[e||t&&"".concat("https://react-tweet.vercel.app","/api/tweet/").concat(t),i]:null,ta,{revalidateIfStale:!1,revalidateOnFocus:!1,shouldRetryOnError:!1});return{isLoading:!!(r||void 0===n&&!s),data:n,error:s}},tu=()=>{let[t,e]=(0,n.useState)(!1);return(0,n.useEffect)(()=>e(!0),[]),t}},55883:(t,e,i)=>{"use strict";i.d(e,{N:()=>l});var r=i(38425),n=i(41811),s=i(69935),o=i(24762),a=i(62573);function l(t){let e=t+"CollectionProvider",[i,l]=(0,n.A)(e),[u,h]=i(e,{collectionRef:{current:null},itemMap:new Map}),d=t=>{let{scope:e,children:i}=t,n=r.useRef(null),s=r.useRef(new Map).current;return(0,a.jsx)(u,{scope:e,itemMap:s,collectionRef:n,children:i})};d.displayName=e;let c=t+"CollectionSlot",p=r.forwardRef((t,e)=>{let{scope:i,children:r}=t,n=h(c,i),l=(0,s.s)(e,n.collectionRef);return(0,a.jsx)(o.DX,{ref:l,children:r})});p.displayName=c;let f=t+"CollectionItemSlot",m="data-radix-collection-item",v=r.forwardRef((t,e)=>{let{scope:i,children:n,...l}=t,u=r.useRef(null),d=(0,s.s)(e,u),c=h(f,i);return r.useEffect(()=>(c.itemMap.set(u,{ref:u,...l}),()=>void c.itemMap.delete(u))),(0,a.jsx)(o.DX,{[m]:"",ref:d,children:n})});return v.displayName=f,[{Provider:d,Slot:p,ItemSlot:v},function(e){let i=h(t+"CollectionConsumer",e);return r.useCallback(()=>{let t=i.collectionRef.current;if(!t)return[];let e=Array.from(t.querySelectorAll("[".concat(m,"]")));return Array.from(i.itemMap.values()).sort((t,i)=>e.indexOf(t.ref.current)-e.indexOf(i.ref.current))},[i.collectionRef,i.itemMap])},l]}},56967:(t,e,i)=>{"use strict";i.r(e),i.d(e,{TweetMediaVideo:()=>d});var r=i(62573),n=i(38425),s=i(60298);let o=(t,e)=>{let i=new URL(t.media_url_https),r=i.pathname.split(".").pop();return r?(i.pathname=i.pathname.replace(`.${r}`,""),i.searchParams.set("format",r),i.searchParams.set("name",e),i.toString()):t.media_url_https},a=t=>{let{variants:e}=t.video_info;return e.filter(t=>"video/mp4"===t.content_type).sort((t,e)=>{var i,r;return(null!=(i=e.bitrate)?i:0)-(null!=(r=t.bitrate)?r:0)})},l=t=>{let e=a(t);return e.length>1?e[1]:e[0]};var u=i(78643),h=i(74321);let d=t=>{let{tweet:e,media:i}
1=t,[a,d]=(0,n.useState)(!0),[c,p]=(0,n.useState)(!1),[f,m]=(0,n.useState)(!1),v=l(i),g=0;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("video",{className:u.image,poster:o(i,"small"),controls:!a,playsInline:!0,preload:"none",tabIndex:a?-1:0,onPlay:()=>{g&&window.clearTimeout(g),c||p(!0),f&&m(!1)},onPause:()=>{g&&window.clearTimeout(g),g=window.setTimeout(()=>{c&&p(!1),g=0},100)},onEnded:()=>{m(!0)},children:(0,r.jsx)("source",{src:v.url,type:v.content_type})}),a&&(0,r.jsx)("button",{type:"button",className:h.videoButton,"aria-label":"View video on X",onClick:t=>{let e=t.currentTarget.previousSibling;t.preventDefault(),d(!1),e.load(),e.play().then(()=>{p(!0),e.focus()}).catch(t=>{console.error("Error playing video:",t),d(!0),p(!1)})},children:(0,r.jsx)("svg",{viewBox:"0 0 24 24",className:h.videoButtonIcon,"aria-hidden":"true",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M21 12L4 2v20l17-10z"})})})}),!c&&!f&&(0,r.jsx)("div",{className:h.watchOnTwitter,children:(0,r.jsx)("a",{href:e.url,className:h.anchor,target:"_blank",rel:"noopener noreferrer",children:a?"Watch on X":"Continue watching on X"})}),f&&(0,r.jsx)("a",{href:e.url,className:(0,s.A)(h.anchor,h.viewReplies),target:"_blank",rel:"noopener noreferrer",children:"View replies"})]})}},58853:(t,e,i)=>{"use strict";var r=i(38425),n="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},s=r.useState,o=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function u(t){var e=t.getSnapshot;t=t.value;try{var i=e();return!n(t,i)}catch(t){return!0}}var h="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var i=e(),r=s({inst:{value:i,getSnapshot:e}}),n=r[0].inst,h=r[1];return a(function(){n.value=i,n.getSnapshot=e,u(n)&&h({inst:n})},[t,i,e]),o(function(){return u(n)&&h({inst:n}),t(function(){u(n)&&h({inst:n})})},[t]),l(i),i};e.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:h},59225:t=>{t.exports={root:"quoted-tweet-body_root__1jzyU"}},59445:t=>{t.exports={root:"tweet-body_root__GEOeB"}},60556:(t,e,i)=>{"use strict";i.d(e,{Ke:()=>T,R6:()=>w,UC:()=>E,bL:()=>A,l9:()=>_,z3:()=>m});var r=i(38425),n=i(89437),s=i(41811),o=i(27902),a=i(45816),l=i(69935),u=i(75032),h=i(63873),d=i(25050),c=i(62573),p="Collapsible",[f,m]=(0,s.A)(p),[v,g]=f(p),y=r.forwardRef((t,e)=>{let{__scopeCollapsible:i,open:n,defaultOpen:s,disabled:a,onOpenChange:l,...h}=t,[p=!1,f]=(0,o.i)({prop:n,defaultProp:s,onChange:l});return(0,c.jsx)(v,{scope:i,disabled:a,contentId:(0,d.B)(),open:p,onOpenToggle:r.useCallback(()=>f(t=>!t),[f]),children:(0,c.jsx)(u.sG.div,{"data-state":S(p),"data-disabled":a?"":void 0,...h,ref:e})})});y.displayName=p;var x="CollapsibleTrigger",w=r.forwardRef((t,e)=>{let{__scopeCollapsible:i,...r}=t,s=g(x,i);return(0,c.jsx)(u.sG.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":S(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...r,ref:e,onClick:(0,n.m)(t.onClick,s.onOpenToggle)})});w.displayName=x;var b="CollapsibleContent",T=r.forwardRef((t,e)=>{let{forceMount:i,...r}=t,n=g(b,t.__scopeCollapsible);return(0,c.jsx)(h.C,{present:i||n.open,children:t=>{let{present:i}=t;return(0,c.jsx)(P,{...r,ref:e,present:i})}})});T.displayName=b;var P=r.forwardRef((t,e)=>{let{__scopeCollapsible:i,present:n,children:s,...o}=t,h=g(b,i),[d,p]=r.useState(n),f=r.useRef(null),m=(0,l.s)(e,f),v=r.useRef(0),y=v.current,x=r.useRef(0),w=x.current,T=h.open||d,P=r.useRef(T),A=r.useRef(void 0);return r.useEffect(()=>{let t=requestAnimationFrame(()=>P.current=!1);return()=>cancelAnimationFrame(t)},[]),(0,a.N)(()=>{let t=f.current;if(t){A.current=A.current||{transitionDuration:t.style.transitionDuration,animationName:t.style.animationName},t.style.transitionDuration="0s",t.style.animationName="none";let e=t.getBoundingClientRect();v.current=e.height,x.current=e.width,P.current||(t.style.transitionDuration=A.current.transitionDuration,t.style.animationName=A.current.animationName),p(n)}},[h.open,n]),(0,c.jsx)(u.sG.div,{"data-state":S(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!T,...o,ref:m,style:{"--radix-collapsible-content-height":y?"".concat(y,"px"):void 0,"--radix-collapsible-content-width":w?"".concat(w,"px"):void 0,...t.style},children:T&&s})});function S(t){return t?"open":"closed"}var A=y,_=w,E=T},62625:(t,e,i)=>{"use strict";i.d(e,{c3:()=>s});var r=i(20035);function n(t,e){return(...t)=>{try{return e(...t)}catch{throw Error(void 0)}}}let s=n(0,r.c3);n(0,r.kc)},64068:(t,e,i)=>{"use strict";i.d(e,{H4:()=>b,_V:()=>w,bL:()=>x});var r=i(38425),n=i(41811),s=i(95746),o=i(45816),a=i(75032),l=i(62573),u="Avatar",[h,d]=(0,n.A)(u),[c,p]=h(u),f=r.forwardRef((t,e)=>{let{__scopeAvatar:i,...n}=t,[s,o]=r.useState("idle");return(0,l.jsx)(c,{scope:i,imageLoadingStatus:s,onImageLoadingStatusChange:o,children:(0,l.jsx)(a.sG.span,{...n,ref:e})})});f.displayName=u;var m="AvatarImage",v=r.forwardRef((t,e)=>{let{__scopeAvatar:i,src:n,onLoadingStatusChange:u=()=>{},...h}=t,d=p(m,i),c=function(t,e){let[i,n]=r.useState("idle");return(0,o.N)(()=>
1{if(!t){n("error");return}let i=!0,r=new window.Image,s=t=>()=>{i&&n(t)};return n("loading"),r.onload=s("loaded"),r.onerror=s("error"),r.src=t,e&&(r.referrerPolicy=e),()=>{i=!1}},[t,e]),i}(n,h.referrerPolicy),f=(0,s.c)(t=>{u(t),d.onImageLoadingStatusChange(t)});return(0,o.N)(()=>{"idle"!==c&&f(c)},[c,f]),"loaded"===c?(0,l.jsx)(a.sG.img,{...h,ref:e,src:n}):null});v.displayName=m;var g="AvatarFallback",y=r.forwardRef((t,e)=>{let{__scopeAvatar:i,delayMs:n,...s}=t,o=p(g,i),[u,h]=r.useState(void 0===n);return r.useEffect(()=>{if(void 0!==n){let t=window.setTimeout(()=>h(!0),n);return()=>window.clearTimeout(t)}},[n]),u&&"loaded"!==o.imageLoadingStatus?(0,l.jsx)(a.sG.span,{...s,ref:e}):null});y.displayName=g;var x=f,w=v,b=y},66534:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});let r=(0,i(59017).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},66670:(t,e,i)=>{"use strict";i.d(e,{E:()=>n});var r=i(38425);let n=i(81828).B?r.useLayoutEffect:r.useEffect},73331:t=>{t.exports={verifiedOld:"verified-badge_verifiedOld__wdoRh",verifiedBlue:"verified-badge_verifiedBlue__qVaCB",verifiedGovernment:"verified-badge_verifiedGovernment__49jCk"}},74321:t=>{t.exports={anchor:"tweet-media-video_anchor__bVNCd",videoButton:"tweet-media-video_videoButton__IoDX_",videoButtonIcon:"tweet-media-video_videoButtonIcon__kmApX",watchOnTwitter:"tweet-media-video_watchOnTwitter__TUAUr",viewReplies:"tweet-media-video_viewReplies__JUyEI"}},76063:t=>{t.exports={root:"tweet-not-found_root__yRn8i"}},76293:t=>{t.exports={info:"tweet-info_info__j1l1o",infoLink:"tweet-info_infoLink__C22cG",infoIcon:"tweet-info_infoIcon__JQcdr"}},77087:t=>{t.exports={replies:"tweet-replies_replies__vzTU1",link:"tweet-replies_link__hdZOG",text:"tweet-replies_text__8D6Ae"}},78643:t=>{t.exports={root:"tweet-media_root___fSdA",rounded:"tweet-media_rounded__syiID",mediaWrapper:"tweet-media_mediaWrapper__nVuDg",grid2Columns:"tweet-media_grid2Columns__R7jYz",grid3:"tweet-media_grid3__vkpsF",grid2x2:"tweet-media_grid2x2__D4MEm",mediaContainer:"tweet-media_mediaContainer__7PuQs",mediaLink:"tweet-media_mediaLink__kQ_HB",skeleton:"tweet-media_skeleton__udLLx",image:"tweet-media_image__aO_rp"}},79454:t=>{t.exports={skeleton:"skeleton_skeleton__k1Bsq",loading:"skeleton_loading__XOEjU"}},80599:(t,e,i)=>{"use strict";i.d(e,{default:()=>s});var r=i(20035),n=i(62573);function s(t){let{locale:e,...i}=t;if(!e)throw Error(void 0);return(0,n.jsx)(r.Dk,{locale:e,...i})}},81828:(t,e,i)=>{"use strict";i.d(e,{B:()=>r});let r="undefined"!=typeof window},82380:(t,e,i)=>{"use strict";i.r(e),i.d(e,{TweetActionsCopy:()=>o});var r=i(62573),n=i(38425),s=i(39508);let o=t=>{let{tweet:e}=t,[i,o]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{if(i){let t=setTimeout(()=>{o(!1)},6e3);return()=>clearTimeout(t)}},[i]),(0,r.jsxs)("button",{type:"button",className:s.copy,"aria-label":"Copy link",onClick:()=>{navigator.clipboard.writeText(e.url),o(!0)},children:[(0,r.jsx)("div",{className:s.copyIconWrapper,children:i?(0,r.jsx)("svg",{viewBox:"0 0 24 24",className:s.copyIcon,"aria-hidden":"true",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M9.64 18.952l-5.55-4.861 1.317-1.504 3.951 3.459 8.459-10.948L19.4 6.32 9.64 18.952z"})})}):(0,r.jsx)("svg",{viewBox:"0 0 24 24",className:s.copyIcon,"aria-hidden":"true",children:(0,r.jsx)("g",{children:(0,r.jsx)("path",{d:"M18.36 5.64c-1.95-1.96-5.11-1.96-7.07 0L9.88 7.05 8.46 5.64l1.42-1.42c2.73-2.73 7.16-2.73 9.9 0 2.73 2.74 2.73 7.17 0 9.9l-1.42 1.42-1.41-1.42 1.41-1.41c1.96-1.96 1.96-5.12 0-7.07zm-2.12 3.53l-7.07 7.07-1.41-1.41 7.07-7.07 1.41 1.41zm-12.02.71l1.42-1.42 1.41 1.42-1.41 1.41c-1.96 1.96-1.96 5.12 0 7.07 1.95 1.96 5.11 1.96 7.07 0l1.41-1.41 1.42 1.41-1.42 1.42c-2.73 2.73-7.16 2.73-9.9 0-2.73-2.74-2.73-7.17 0-9.9z"})})})}),(0,r.jsx)("span",{className:s.copyText,children:i?"Copied!":"Copy link"})]})}},82940:t=>{t.exports={header:"quoted-tweet-header_header__lhLRR",avatar:"quoted-tweet-header_avatar__dfw0O",avatarSquare:"quoted-tweet-header_avatarSquare__aCw4X",author:"quoted-tweet-header_author__TFWou",authorText:"quoted-tweet-header_authorText__e9_kr",username:"quoted-tweet-header_username__Jawd0"}},84444:t=>{t.exports={root:"quoted-tweet-container_root__6WyIA",article:"quoted-tweet-container_article__a9uCb"}},86991:t=>{t.exports={root:"tweet-in-reply-to_root__Zn3p6"}},88702:t=>{t.exports={root:"tweet-skeleton_root__PNKmg"}},89256:t=>{t.exports={root:"tweet-container_root__oeRq7",article:"tweet-container_article__wfo9C"}},89580:(t,e,i)=>{"use strict";i.d(e,{Q:()=>r});let r=(0,i(38425).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},93657:(t,e,i)=>{"use strict";i.d(e,{DT:()=>l,FP:()=>o,TK:()=>n,Zn:()=>s,aM:()=>a,x3:()=>u});var r=i(40944);function n(t){return"string"==typeof t?{pathname:t}:t}function s(t){let e=new URLSearchParams;for(let[i,r]of Object.entries(t))Array.isArray(r)?r.forEach(t=>{e.append(i,String(t))}):e.set(i,String(r));return"?"+e.toString()}function o({pathname:t,locale:e,params:i,pathnames:n,query:o}){function a(t){let e=n[t];return e||(e=t),e}function l(t,n){let a=(0,r.Wl)(t,e,n);
1return i&&Object.entries(i).forEach(([t,e])=>{let i,r;Array.isArray(e)?(i=`(\\[)?\\[...${t}\\](\\])?`,r=e.map(t=>String(t)).join("/")):(i=`\\[${t}\\]`,r=String(e)),a=a.replace(RegExp(i,"g"),r)}),a=a.replace(/\[\[\.\.\..+\]\]/g,""),a=(0,r.po)(a),o&&(a+=s(o)),a}if("string"==typeof t)return l(a(t),t);{let{pathname:e,...i}=t;return{...i,pathname:l(a(e),e)}}}function a(t,e,i){let n=(0,r.FD)(Object.keys(i)),s=decodeURI(e);for(let e of n){let n=i[e];if("string"==typeof n){if((0,r.ql)(n,s))return e}else if((0,r.ql)((0,r.Wl)(n,t,e),s))return e}return e}function l(t,e=window.location.pathname){return"/"===t?e:e.replace(t,"")}function u(t,e,i,n){let s,{mode:o}=i.localePrefix;return void 0!==n?s=n:(0,r._x)(t)&&("always"===o?s=!0:"as-needed"===o&&(s=i.domains?!i.domains.some(t=>t.defaultLocale===e):e!==i.defaultLocale)),s?(0,r.PJ)((0,r.XP)(e,i.localePrefix),t):t}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.