1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7343],{2958:function(t,e,r){"use strict";var n=r(9973);e.Z=void 0;var i=n(r(59815)),o=r(57437);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft")},93209:function(t,e,r){"use strict";var n=r(9973);e.Z=void 0;var i=n(r(59815)),o=r(57437);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight")},81705:function(t,e,r){"use strict";var n=r(9973);e.Z=void 0;var i=n(r(59815)),o=r(57437);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close")},6328:function(t,e,r){"use strict";var n=r(9973);e.Z=void 0;var i=n(r(59815)),o=r(57437);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1M8 13h8v-2H8zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5"}),"Link")},94255:function(t,e,r){"use strict";var n=r(9973);e.Z=void 0;var i=n(r(59815)),o=r(57437);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause")},37666:function(t,e,r){"use strict";var n=r(9973);e.Z=void 0;var i=n(r(59815)),o=r(57437);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow")},17430:function(t,e,r){"use strict";var n=r(9973);e.Z=void 0;var i=n(r(59815)),o=r(57437);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff")},56499:function(t,e,r){"use strict";var n=r(9973);e.Z=void 0;var i=n(r(59815)),o=r(57437);e.Z=(0,i.default)((0,o.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp")},35389:function(t,e,r){"use strict";r.d(e,{Z:function(){return D}});var n=r(3659),i=r(74610),o=r(1119),s=r(2265),a=r(61994),l=r(20801),u=r(3146),c=r(85657),h=r(37053),d=r(16210),f=r(94143),p=r(50738);function m(t){return(0,p.ZP)("MuiCircularProgress",t)}(0,f.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var v=r(57437);function y(){let t=(0,n._)(["\n 0% {\n transform: rotate(0deg);\n }\n\n 100% {\n transform: rotate(360deg);\n }\n"]);return y=function(){return t},t}function g(){let t=(0,n._)(["\n 0% {\n stroke-dasharray: 1px, 200px;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -15px;\n }\n\n 100% {\n stroke-dasharray: 100px, 200px;\n stroke-dashoffset: -125px;\n }\n"]);return g=function(){return t},t}function b(){let t=(0,n._)(["\n animation: "," 1.4s linear infinite;\n "]);return b=function(){return t},t}function x(){let t=(0,n._)(["\n animation: "," 1.4s ease-in-out infinite;\n "]);return x=function(){return t},t}let w=["className","color","disableShrink","size","style","thickness","value","variant"],P=t=>t,S,E,M,j,T=(0,u.F4)(S||(S=P(y()))),A=(0,u.F4)(E||(E=P(g()))),O=t=>{let{classes:e,variant:r,color:n,disableShrink:i}=t,o={root:["root",r,"color".concat((0,c.Z)(n))],svg:["svg"],circle:["circle","circle".concat((0,c.Z)(r)),i&&"circleDisableShrink"]};return(0,l.Z)(o,m,e)},C=(0,d.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,e[r.variant],e["color".concat((0,c.Z)(r.color))]]}})(t=>{let{ownerState:e,theme:r}=t;return(0,o.Z)({display:"inline-block"},"determinate"===e.variant&&{transition:r.transitions.create("transform")},"inherit"!==e.color&&{color:(r.vars||r).palette[e.color].main})},t=>{let{ownerState:e}=t;
1return"indeterminate"===e.variant&&(0,u.iv)(M||(M=P(b(),0)),T)}),_=(0,d.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),k=(0,d.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.circle,e["circle".concat((0,c.Z)(r.variant))],r.disableShrink&&e.circleDisableShrink]}})(t=>{let{ownerState:e,theme:r}=t;return(0,o.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})},t=>{let{ownerState:e}=t;return"indeterminate"===e.variant&&!e.disableShrink&&(0,u.iv)(j||(j=P(x(),0)),A)});var D=s.forwardRef(function(t,e){let r=(0,h.i)({props:t,name:"MuiCircularProgress"}),{className:n,color:s="primary",disableShrink:l=!1,size:u=40,style:c,thickness:d=3.6,value:f=0,variant:p="indeterminate"}=r,m=(0,i.Z)(r,w),y=(0,o.Z)({},r,{color:s,disableShrink:l,size:u,thickness:d,value:f,variant:p}),g=O(y),b={},x={},P={};if("determinate"===p){let t=2*Math.PI*((44-d)/2);b.strokeDasharray=t.toFixed(3),P["aria-valuenow"]=Math.round(f),b.strokeDashoffset="".concat(((100-f)/100*t).toFixed(3),"px"),x.transform="rotate(-90deg)"}return(0,v.jsx)(C,(0,o.Z)({className:(0,a.Z)(g.root,n),style:(0,o.Z)({width:u,height:u},x,c),ownerState:y,ref:e,role:"progressbar"},P,m,{children:(0,v.jsx)(_,{className:g.svg,ownerState:y,viewBox:"".concat(22," ").concat(22," ").concat(44," ").concat(44),children:(0,v.jsx)(k,{className:g.circle,style:b,ownerState:y,cx:44,cy:44,r:(44-d)/2,fill:"none",strokeWidth:d})})}))})},8444:function(t,e,r){"use strict";r.d(e,{Z:function(){return U}});var n=r(74610),i=r(1119),o=r(2265),s=r(20801),a=r(15988),l=r(96375),u=r(8659),c=r(44393),h=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{autoHideDuration:e=null,disableWindowBlurListener:r=!1,onClose:n,open:s,resumeHideDuration:a}=t,h=(0,l.Z)();o.useEffect(()=>{if(s)return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)};function t(t){t.defaultPrevented||"Escape"!==t.key&&"Esc"!==t.key||null==n||n(t,"escapeKeyDown")}},[s,n]);let d=(0,u.Z)((t,e)=>{null==n||n(t,e)}),f=(0,u.Z)(t=>{n&&null!=t&&h.start(t,()=>{d(null,"timeout")})});o.useEffect(()=>(s&&f(e),h.clear),[s,e,f,h]);let p=h.clear,m=o.useCallback(()=>{null!=e&&f(null!=a?a:.5*e)},[e,a,f]),v=t=>e=>{let r=t.onBlur;null==r||r(e),m()},y=t=>e=>{let r=t.onFocus;null==r||r(e),p()},g=t=>e=>{let r=t.onMouseEnter;null==r||r(e),p()},b=t=>e=>{let r=t.onMouseLeave;null==r||r(e),m()};return o.useEffect(()=>{if(!r&&s)return window.addEventListener("focus",m),window.addEventListener("blur",p),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",p)}},[r,s,m,p]),{getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=(0,i.Z)({},(0,c.Z)(t),(0,c.Z)(e));return(0,i.Z)({role:"presentation"},e,r,{onBlur:v(r),onFocus:y(r),onMouseEnter:g(r),onMouseLeave:b(r)})},onClickAway:t=>{null==n||n(t,"clickaway")}}},d=r(23947),f=r(72786),p=r(30628),m=r(57437);function v(t){return t.substring(2).toLowerCase()}function y(t){let{children:e,disableReactTree:r=!1,mouseEvent:n="onClick",onClickAway:i,touchEvent:s="onTouchEnd"}=t,a=o.useRef(!1),l=o.useRef(null),c=o.useRef(!1),h=o.useRef(!1);o.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let y=(0,d.Z)((0,p.Z)(e),l),g=(0,u.Z)(t=>{let e=h.current;h.current=!1;let n=(0,f.Z)(l.current);if(c.current&&l.current&&(!("clientX"in t)||!(n.documentElement.clientWidth<t.clientX)&&!(n.documentElement.clientHeight<t.clientY))){if(a.current){a.current=!1;return}(t.composedPath?t.composedPath().indexOf(l.current)>-1:!n.documentElement.contains(t.target)||l.current.contains(t.target))||!r&&e||i(t)}}),b=t=>r=>{h.current=!0;let n=e.props[t];n&&n(r)},x={ref:y};return!1!==s&&(x[s]=b(s)),o.useEffect(()=>{if(!1!==s){let t=v(s),e=(0,f.Z)(l.current),r=()=>{a.current=!0};return e.addEventListener(t,g),e.addEventListener("touchmove",r),()=>{e.removeEventListener(t,g),e.removeEventListener("touchmove",r)}}},[g,s]),!1!==n&&(x[n]=b(n)),o.useEffect(()=>{if(!1!==n){let t=v(n),e=(0,f.Z)(l.current);return e.addEventListener(t,g),()=>{e.removeEventListener(t,g)}}},[g,n]),(0,m.jsx)(o.Fragment,{children:o.cloneElement(e,x)})}var g=r(16210),b=r(31691),x=r(37053),w=r(85657),P=r(78826),S=r(61994),E=r(14031),M=r(96207),j=r(94143),T=r(50738);function A(t){return(0,T.ZP)("MuiSnackbarContent",t)}(0,j.Z)("MuiSnackbarContent",["root","message","action"]);let O=["action","className","message","role"],C=t=>{let{classes:e}=t;return(0,s.Z)({root:["root"],action:["action"],message:["message"]},A,e)},_=(0,g.ZP)(M.Z,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(t,e)=>e.root})(t=>{let{theme:e}=t,r="light"===e.palette.mode?.8:.98,n=(0,E._4)(e.palette.background.default,r);return(0,i.Z)({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),k=(0,g.ZP)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0"}),D=(0,g.ZP)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),V=o.forwardRef(function(t,e){let r=(0,x.i)({props:t,name:"MuiSnackbarContent"}),{action:o,className:s,message:a,role:l="alert"}=r,u=(0,n.Z)(r,O),c=C(r);return(0,m.jsxs)(_,(0,i.Z)({role:l,square:!0,elevation:6,className:(0,S.Z)(c.root,s),ownerState:r,ref:e},u,{children:[(0,m.jsx)(k,{className:c.message,ownerState:r,children:a}),o?(0,m.jsx)(D,{className:c.action,ownerState:r,children:o}):null]}))});function R(t){return(0,T.ZP)("MuiSnackbar",t)}(0,j.Z)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);let L=["onEnter","onExited"],I=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],F=t=>{let{classes:e,anchorOrigin:r}=t,n={root:["root","anchorOrigin".concat((0,w.Z)(r.vertical)).concat((0,w.Z)(r.horizontal))]};return(0,s.Z)(n,R,e)},B=(0,g.ZP)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{let{ownerState:r}=t;return[e.root,e["anchorOrigin".concat((0,w.Z)(r.anchorOrigin.vertical)).concat((0,w.Z)(r.anchorOrigin.horizontal))]]}})(t=>{let{theme:e,ownerState:r}=t;return(0,i.Z)({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===r.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===r.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===r.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:(0,i.Z)({},"top"===r.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===r.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===r.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===r.anchorOrigin.horizontal&&{right:24,left:"auto"})})});var U=o.forwardRef(function(t,e){let r=(0,x.i)({props:t,name:"MuiSnackbar"}),s=(0,b.Z)(),l={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{action:u,anchorOrigin:{vertical:c,horizontal:d}={vertical:"bottom",horizontal:"left"},autoHideDuration:f=null,children:p,className:v,ClickAwayListenerProps:g,ContentProps:w,disableWindowBlurListener:S=!1,message:E,open:M,TransitionComponent:j=P.Z,transitionDuration:T=l,TransitionProps:{onEnter:A,onExited:O}={}}=r,C=(0,n.Z)(r.TransitionProps,L),_=(0,n.Z)(r,I),k=(0,i.Z)({},r,{anchorOrigin:{vertical:c,horizontal:d},autoHideDuration:f,disableWindowBlurListener:S,TransitionComponent:j,transitionDuration:T}),D=F(k),{getRootProps:R,onClickAway:U}=h((0,i.Z)({}
1,k)),[N,Z]=o.useState(!0),z=(0,a.Z)({elementType:B,getSlotProps:R,externalForwardedProps:_,ownerState:k,additionalProps:{ref:e},className:[D.root,v]});return!M&&N?null:(0,m.jsx)(y,(0,i.Z)({onClickAway:U},g,{children:(0,m.jsx)(B,(0,i.Z)({},z,{children:(0,m.jsx)(j,(0,i.Z)({appear:!0,in:M,timeout:T,direction:"top"===c?"down":"up",onEnter:(t,e)=>{Z(!1),A&&A(t,e)},onExited:t=>{Z(!0),O&&O(t)}},C,{children:p||(0,m.jsx)(V,(0,i.Z)({message:E,action:u},w))}))}))}))})},8356:function(t,e,r){var n;n=t=>(()=>{"use strict";var e={931:(t,e,r)=>{r.r(e),r.d(e,{default:()=>a});var n=r(639),i=r.n(n),o=["styles"];function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}let a=function(t){t.styles;var e=function(t,e){if(null==t)return{};var r,n,i=function(t,e){if(null==t)return{};var r,n,i={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(i[r]=t[r]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}(t,o);return i().createElement("svg",s({width:"44",height:"44",xmlns:"http://www.w3.org/2000/svg",stroke:"#fff"},e),i().createElement("g",{fill:"none",fillRule:"evenodd",strokeWidth:"2"},i().createElement("circle",{cx:"22",cy:"22",r:"1"},i().createElement("animate",{attributeName:"r",begin:"0s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),i().createElement("animate",{attributeName:"stroke-opacity",begin:"0s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"})),i().createElement("circle",{cx:"22",cy:"22",r:"1"},i().createElement("animate",{attributeName:"r",begin:"-0.9s",dur:"1.8s",values:"1; 20",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.165, 0.84, 0.44, 1",repeatCount:"indefinite"}),i().createElement("animate",{attributeName:"stroke-opacity",begin:"-0.9s",dur:"1.8s",values:"1; 0",calcMode:"spline",keyTimes:"0; 1",keySplines:"0.3, 0.61, 0.355, 1",repeatCount:"indefinite"}))))}},120:function(t,e,r){function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var o=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&o(e,t,r);return s(e,t),e},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var u=a(r(639)),c=l(r(267)),h=l(r(486)),d=l(r(552)),f=l(r(832)),p=l(r(913)),m=l(r(342)),v=r(402);e.default=function(){var t=n((0,u.useState)(0),2),e=t[0],r=t[1],i=n((0,u.useState)(!0),2),o=i[0],s=i[1],a=n((0,u.useState)(!0),2),l=a[0],g=a[1],b=n((0,u.useState)(0),2),x=b[0],w=b[1],P=(0,m.default)(),S=(0,u.useRef)(),E=(0,u.useContext)(c.default),M=E.width,j=E.height,T=E.loop,A=E.currentIndex,O=E.isPaused,C=E.keyboardNavigation,_=E.preventDefault,k=E.storyContainerStyles,D=E.onAllStoriesEnd,V=E.onPrevious,R=E.onNext,L=E.preloadCount,I=(0,u.useContext)(h.default).stories;(0,v.usePreLoader)(I,e,L),(0,u.useEffect)(function(){"number"==typeof A&&(A>=0&&A<I.length?U(function(){return A}):console.error("Index out of bounds. Current index was set to value more than the length of stories array.",A))},[A]),(0,u.useEffect)(function(){"boolean"==typeof O&&s(O)},[O]),(0,u.useEffect)(function(){if("undefined"!=typeof window&&window.document&&"boolean"==typeof C&&C)return document.addEventListener("keydown",F),function(){document.removeEventListener("keydown",F)}},[C]);var F=function(t){"ArrowLeft"===t.key?N():"ArrowRight"===t.key&&Z({isSkippedByUser:!0})},B=function(t,e){s("pause"===t),g(!!e)},U=function(t){r(t),B("pause",!0)},N=function(){void 0!=V&&V(),U(function(t){return t>0?t-1:t})},Z=function(t){void 0!=R&&(null==t?void 0:t.isSkippedByUser)&&R(),P()&&(T?z():W())},z=function(){U(function(t){return t>=I.length-1&&D&&D(e,I),(t+1)%I.length})},W=function(){U(function(t){return t<I.length-1?t+1:(D&&D(e,I),t)})},$=function(t){t.preventDefault(),S.current=setTimeout(function(){B("pause")},200)},H=function(t){return function(e){e.preventDefault(),S.current&&clearTimeout(S.current),o?B("play"):"next"===t?Z({isSkippedByUser:!0}):N()}};return u.default.createElement("div",{style:Object.assign(Object.assign(Object.assign({},y.container),void 0===k?{}:k),{width:M,height:j})},u.default.createElement(d.default.Provider,{value:{bufferAction:l,videoDuration:x,currentId:e,pause:o,next:Z}},u.default.createElement(p.default,null)),u.default.createElement(f.default,{action:B,bufferAction:l,playState:o,story:I[e],getVideoDuration:function(t){w(1e3*t)}}),!_&&u.default.createElement("div",{style:y.overlay},u.default.createElement("div",{style:{width:"50%",zIndex:999},onTouchStart:$,onTouchEnd:H("previous"),onMouseDown:$,onMouseUp:H("previous")}),u.default.createElement("div",{style:{width:"50%",zIndex:999},onTouchStart:$,onTouchEnd:H("next"),onMouseDown:$,onMouseUp:H("next")})))};var y={container:{display:"flex",flexDirection:"column",background:"#111",position:"relative",WebkitUserSelect:"none"},overlay:{position:"absolute",height:"inherit",width:"inherit",display:"flex"}}},463:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(639)),o={main:{display:"flex",alignItems:"center"},img:{width:40,height:40,borderRadius:40,marginRight:10,filter:"drop-shadow(0 0px 2px rgba(0, 0, 0, 0.5))",border:"2px solid rgba(255, 255, 255, 0.8)"},text:{display:"flex",flexDirection:"column",filter:"drop-shadow(0 0px 3px rgba(0, 0, 0, 0.9))"},heading:{fontSize:"1rem",color:"rgba(255, 255, 255, 0.9)",margin:0,marginBottom:2},subheading:{fontSize:"0.6rem",color:"rgba(255, 255, 255, 0.8)",margin:0}};e.default=function(t){var e=t.profileImage,r=t.heading,n=t.subheading;return i.default.createElement("div",{style:o.main},e&&i.default.createElement("img",{style:o.img,src:e}),i.default.createElement("span",{style:o.text},i.default.createElement("p",{style:o.heading},r),i.default.createElement("p",{style:o.subheading},n)))}},911:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(r(639)),l=s(r(424)),u=s(r(267)),c=s(r(552));e.default=function(t){var e=(0,a.useContext)(u.default).progressStyles,r=(0,a.useContext)(c.default),n=r.bufferAction,i=r.pause,o=t.width,s=t.active;return a.default.createElement(l.default,{width:o,pause:i,bufferAction:n},a.default.createElement("div",{style:Object.assign(Object.assign(Object.assign({},h.inner),e),function(e){switch(e.active){case 2:return{width:"100%"};case 1:return{transform:"scaleX(".concat(t.count/100,")")};default:return{width:0}}}({active:s}))}))};var h={inner:{background:"#fff",height:"100%",maxWidth:"100%",borderRadius:2,transformOrigin:"center left",WebkitBackfaceVisibility:"hidden",MozBackfaceVisibility:"hidden",msBackfaceVisibility:"hidden",backfaceVisibility:"hidden",WebkitPerspective:1e3,MozPerspective:1e3,msPerspective:1e3,perspective:1e3}}},913:function(t,e,r){function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=s(r(639)),u=a(r(911)),c=a(r(552)),h=a(r(267)),d=a(r(486)),f=r(335);e.default=function(){var t,e=function(t){if(Array.isArray(t))return t}(t=(0,l.useState)(0))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{for(o=(r=r.call(t)).next;!(l=(n=o.call(r)).done)&&(a.push(n.value),2!==a.length);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(t,2)||function(t,e){if(t){if("string"==typeof t)return n(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,2)}}
1(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),r=e[0],i=e[1],o=(0,l.useRef)(),s=(0,l.useContext)(c.default),a=s.currentId,m=s.next,v=s.videoDuration,y=s.pause,g=s.bufferAction,b=(0,l.useContext)(h.default),x=b.defaultInterval,w=b.onStoryEnd,P=b.onStoryStart,S=b.progressContainerStyles,E=(0,l.useContext)(d.default).stories;(0,l.useEffect)(function(){i(0)},[a,E]),(0,l.useEffect)(function(){return y||(M.current=requestAnimationFrame(T),o.current=(0,f.timestamp)()),function(){cancelAnimationFrame(M.current)}},[a,y]);var M=(0,l.useRef)(),j=r,T=function t(){0===j&&A(),void 0==o.current&&(o.current=(0,f.timestamp)());var e=(0,f.timestamp)(),r=e-o.current;o.current=e,i(function(t){return j=t+100*r/C()}),j<100?M.current=requestAnimationFrame(t):(O(),cancelAnimationFrame(M.current),m())},A=function(){P&&P(a,E[a])},O=function(){w&&w(a,E[a])},C=function(){return"video"===E[a].type?v:"number"==typeof E[a].duration?E[a].duration:x};return l.default.createElement("div",{style:Object.assign(Object.assign(Object.assign({},p.progressArr),S),{opacity:y&&!g?0:1})},E.map(function(t,e){return l.default.createElement(u.default,{key:e,count:r,width:1/E.length,active:e===a?1:e<a?2:0})}))};var p={progressArr:{display:"flex",justifyContent:"center",maxWidth:"100%",flexWrap:"nowrap",position:"absolute",width:"98%",padding:5,paddingTop:7,alignSelf:"center",zIndex:1001,filter:"drop-shadow(0 1px 8px #222)",transition:"opacity 400ms ease-in-out"}}},424:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(r(639)),l=s(r(267)),u=function(t){var e=t.width;return{width:"".concat(100*e,"%")}},c={height:2,maxWidth:"100%",background:"#555",margin:2,borderRadius:2,WebkitBackfaceVisibility:"hidden",MozBackfaceVisibility:"hidden",msBackfaceVisibility:"hidden",backfaceVisibility:"hidden"};e.default=function(t){var e=(0,a.useContext)(l.default).progressWrapperStyles;return a.default.createElement("div",{style:Object.assign(Object.assign(Object.assign({},c),e),u(t))},t.children)}},771:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(r(639)),l=s(r(267));e.default=function(t){var e=t.seeMoreContent,r=t.customCollapsed,n=(0,a.useContext)(l.default).keyboardNavigation;(0,a.useEffect)(function(){if("undefined"!=typeof window&&window.document&&"boolean"==typeof n&&n)return document.addEventListener("keydown",i),function(){document.removeEventListener("keydown",i)}},[n]);var i=function(e){"ArrowUp"===e.key?(e.preventDefault(),t.toggleMore(!0)):("ArrowDown"===e.key||"Escape"===e.key)&&
1(e.preventDefault(),t.toggleMore(!1))};return t.showContent?a.default.createElement("div",{style:u.seeMoreExpanded},a.default.createElement(e,{close:function(){return t.toggleMore(!1)}})):r?a.default.createElement(r,{action:t.action,toggleMore:t.toggleMore}):a.default.createElement("div",{style:u.seeMore,onClick:function(e){e.preventDefault(),e.stopPropagation(),t.toggleMore(!0)}},a.default.createElement("span",{style:u.seeMoreIcon},"â"),a.default.createElement("span",{style:u.seeMoreText},"See more"))};var u={seeMore:{height:"10vh",background:"linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.2))",display:"flex",flexDirection:"column",width:"100%",alignItems:"center",justifyContent:"flex-end",bottom:0},seeMoreExpanded:{position:"absolute",top:0,left:0,width:"100%",height:"100%",boxSizing:"border-box",zIndex:99999},seeMoreText:{color:"white",textAlign:"center",letterSpacing:"0.1em",marginBottom:"2.2vh",textTransform:"capitalize",opacity:"1",fontSize:"0.8em",transition:"opacity 300ms ease-in-out"},seeMoreIcon:{color:"white",textAlign:"center",letterSpacing:"0.2em",marginBottom:"0.4vh",opacity:"1",filter:"drop-shadow(0 0 5px black)",textTransform:"capitalize",transition:"opacity 300ms ease-in-out"}}},353:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(639)),o=n(r(931));e.default=function(){return i.default.createElement(o.default,null)}},832:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var a=o(r(639)),l=s(r(267)),u={display:"flex",position:"relative",overflow:"hidden",alignItems:"center"};e.default=function(t){var e,r=(0,a.useContext)(l.default),n=r.width,i=r.height,o=r.loader,s=r.header,c=r.storyStyles,h=r.storyInnerContainerStyles;return a.default.createElement("div",{style:Object.assign(Object.assign(Object.assign({},u),void 0===h?{}:h),{width:n,height:i})},(e=t.story.content,a.default.createElement(e,{action:t.action,isPaused:t.playState,story:t.story,config:{width:n,height:i,loader:o,header:s,storyStyles:c},messageHandler:function(e,r){if("UPDATE_VIDEO_DURATION"===e)return t.getVideoDuration(r.duration),{ack:"OK"}}})))}},267:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.initialContext=void 0;var i=n(r(639));e.initialContext={defaultInterval:4e3,width:360,height:640};var o=i.default.createContext(e.initialContext);e.default=o},552:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(r(639));e.default=i.default.createContext({currentId:0,videoDuration:0,bufferAction:!1,pause:!1,next:function(){}})},486:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.initialContext=void 0;var i=n(r(639));e.initialContext={stories:[]};var o=i.default.createContext(e.initialContext);e.default=o},370:function(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var o=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&o(e,t,r);return s(e,t),e},l=this&&this.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&0>e.indexOf(n)&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(t);i<n.length;i++)0>e.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(t,n[i])&&(r[n[i]]=t[n[i]]);return r},u=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};
1Object.defineProperty(e,"__esModule",{value:!0}),e.WithSeeMore=e.WithHeader=void 0;var c=a(r(639)),h=u(r(120)),d=u(r(267)),f=u(r(486)),p=r(371),m=r(942),v=u(r(803)),y=u(r(763)),g=function(t,e){return t.map(function(t){var r={};"string"==typeof t?(r.url=t,r.type="image"):"object"===n(t)&&(r=Object.assign(r,t));var i=(0,p.getRenderer)(r,e);return r.originalContent=r.content,r.content=i,r})};e.WithHeader=v.default,e.WithSeeMore=y.default,e.default=function(t){var e,r=t.width,n=t.height,o=t.defaultInterval,s=t.preloadCount,a=l(t,["width","height","defaultInterval","preloadCount"]),u=a.renderers?a.renderers.concat(m.renderers):m.renderers,p={width:void 0===r?360:r,height:void 0===n?640:n,loader:a.loader,header:a.header,storyContainerStyles:a.storyContainerStyles,storyInnerContainerStyles:a.storyInnerContainerStyles,storyStyles:a.storyStyles,progressContainerStyles:a.progressContainerStyles,progressWrapperStyles:a.progressWrapperStyles,progressStyles:a.progressStyles,loop:a.loop,defaultInterval:void 0===o?4e3:o,isPaused:a.isPaused,currentIndex:a.currentIndex,onStoryStart:a.onStoryStart,onStoryEnd:a.onStoryEnd,onAllStoriesEnd:a.onAllStoriesEnd,onNext:a.onNext,onPrevious:a.onPrevious,keyboardNavigation:a.keyboardNavigation,preventDefault:a.preventDefault,preloadCount:void 0===s?1:s},v=function(t){if(Array.isArray(t))return t}(e=(0,c.useState)({stories:g(a.stories,u)}))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{for(o=(r=r.call(t)).next;!(l=(n=o.call(r)).done)&&(a.push(n.value),2!==a.length);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,2)||function(t,e){if(t){if("string"==typeof t)return i(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),y=v[0],b=v[1];return(0,c.useEffect)(function(){b({stories:g(a.stories,u)})},[a.stories,a.renderers]),c.default.createElement(d.default.Provider,{value:p},c.default.createElement(f.default.Provider,{value:y},c.default.createElement(h.default,null)))}},350:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};Object.defineProperty(e,"__esModule",{value:!0}),e.tester=e.renderer=void 0;var s=o(r(639));e.renderer=function(t){s.useEffect(function(){t.action("play")},[t.story]);var e=t.story.originalContent;return s.createElement(e,Object.assign({},t))},e.tester=function(t){return{condition:!!t.content,priority:2}},e.default={renderer:e.renderer,tester:e.tester}},248:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e};
1Object.defineProperty(e,"__esModule",{value:!0}),e.tester=e.renderer=void 0;var s=o(r(639));e.renderer=function(t){var e=t.story,r=t.action;return s.useEffect(function(){r("play")},[e]),s.createElement("div",{style:a.storyContent},s.createElement("p",{style:a.text},"This story could not be loaded."))};var a={storyContent:{width:"100%",maxHeight:"100%",margin:"auto"},text:{textAlign:"center",color:"white",width:"90%",margin:"auto"}};e.tester=function(){return{condition:!0,priority:1}},e.default={renderer:e.renderer,tester:e.tester}},209:function(t,e,r){function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.tester=e.renderer=void 0;var l=s(r(639)),u=a(r(353)),c=a(r(803)),h=a(r(763));
1e.renderer=function(t){var e,r=t.story,i=t.action,o=(t.isPaused,t.config),s=function(t){if(Array.isArray(t))return t}(e=l.useState(!1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{for(o=(r=r.call(t)).next;!(l=(n=o.call(r)).done)&&(a.push(n.value),2!==a.length);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,2)||function(t,e){if(t){if("string"==typeof t)return n(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),a=s[0],f=s[1],p=o.width,m=o.height,v=o.loader,y=o.storyStyles,g=Object.assign(Object.assign({},d.storyContent),y||{});return l.createElement(c.default,Object.assign({},{story:r,globalHeader:o.header}),l.createElement(h.default,Object.assign({},{story:r,action:i}),l.createElement("div",null,l.createElement("img",{style:g,src:r.url,onLoad:function(){f(!0),i("play")}}),!a&&l.createElement("div",{style:{width:p,height:m,position:"absolute",left:0,top:0,background:"rgba(0, 0, 0, 0.9)",zIndex:9,display:"flex",justifyContent:"center",alignItems:"center",color:"#ccc"}},v||l.createElement(u.default,null)))))};var d={storyContent:{width:"auto",maxWidth:"100%",maxHeight:"100%",margin:"auto"}};e.tester=function(t){return{condition:!t.content&&(!t.type||"image"===t.type),priority:2}},e.default={renderer:e.renderer,tester:e.tester}},544:function(t,e,r){function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==e);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,e)}}(t,e)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var o=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),s=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&o(e,t,r);return s(e,t),e},l=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.tester=e.renderer=void 0;var u=a(r(639)),c=l(r(353)),h=l(r(803)),d=l(r(763));
1e.renderer=function(t){var e=t.story,r=t.action,i=t.isPaused,o=t.config,s=t.messageHandler,a=n(u.useState(!1),2),l=a[0],p=a[1],m=n(u.useState(e.muted||!1),2),v=m[0],y=m[1],g=o.width,b=o.height,x=o.loader,w=o.storyStyles,P=Object.assign(Object.assign({},f.storyContent),w||{}),S=u.useRef(null);return u.useEffect(function(){S.current&&(i?S.current.pause():S.current.play().catch(function(){}))},[i]),u.createElement(h.default,Object.assign({},{story:e,globalHeader:o.header}),u.createElement(d.default,Object.assign({},{story:e,action:r}),u.createElement("div",{style:f.videoContainer},u.createElement("video",{ref:S,style:P,src:e.url,controls:!1,onLoadedData:function(){s("UPDATE_VIDEO_DURATION",{duration:S.current.duration}),p(!0),S.current.play().then(function(){r("play")}).catch(function(){y(!0),S.current.play().finally(function(){r("play")})})},playsInline:!0,onWaiting:function(){r("pause",!0)},onPlaying:function(){r("play",!0)},muted:v,autoPlay:!0,"webkit-playsinline":"true"}),!l&&u.createElement("div",{style:{width:g,height:b,position:"absolute",left:0,top:0,background:"rgba(0, 0, 0, 0.9)",zIndex:9,display:"flex",justifyContent:"center",alignItems:"center",color:"#ccc"}},x||u.createElement(c.default,null)))))};var f={storyContent:{width:"auto",maxWidth:"100%",maxHeight:"100%",margin:"auto"},videoContainer:{display:"flex",alignItems:"center",justifyContent:"center"}};e.tester=function(t){return{condition:"video"===t.type,priority:2}},e.default={renderer:e.renderer,tester:e.tester}},942:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.renderers=void 0;var i=n(r(209)),o=n(r(544)),s=n(r(248)),a=n(r(350));e.renderers=[i.default,o.default,a.default,s.default]},803:function(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=i(r(639)),s=i(r(463));e.default=function(t){var e=t.story,r=t.globalHeader,i=t.children;return o.default.createElement(o.default.Fragment,null,i,e.header&&o.default.createElement("div",{style:{position:"absolute",left:12,top:20,zIndex:19}},"object"===n(e)?r?r(e.header):o.default.createElement(s.default,{heading:e.header.heading,subheading:e.header.subheading,profileImage:e.header.profileImage}):null))}},763:function(t,e,r){function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var i=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),s=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&i(e,t,r);return o(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var l=s(r(639)),u=a(r(771));e.default=function(t){var e,r=t.story,i=t.action,o=t.customCollapsed,s=t.children,a=function(t){if(Array.isArray(t))return t}(e=(0,l.useState)(!1))||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,s,a=[],l=!0,u=!1;try{for(o=(r=r.call(t)).next;!(l=(n=o.call(r)).done)&&(a.push(n.value),2!==a.length);l=!0);}catch(t){u=!0,i=t}finally{try{if(!l&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(u)throw i}}return a}}(e,2)||function(t,e){if(t){if("string"==typeof t)return n(t,2);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(t,2)}}
1(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=a[0],h=a[1],d=u.default;return l.default.createElement(l.default.Fragment,null,s,r.seeMore&&l.default.createElement("div",{style:{position:"absolute",margin:"auto",bottom:c?"unset":0,zIndex:9999,width:"100%",height:c?"100%":"auto"}},l.default.createElement(d,{action:i,toggleMore:function(t){i(t?"pause":"play"),h(t)},showContent:c,seeMoreContent:r.seeMore,customCollapsed:o||r.seeMoreCollapsed})))}},371:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getRenderer=void 0,e.getRenderer=function(t,e){var r=e.map(function(e){return Object.assign(Object.assign({},e),{testerResult:e.tester(t)})}).filter(function(t){return t.testerResult.condition});return r.sort(function(t,e){return e.testerResult.priority-t.testerResult.priority}),r[0].renderer}},335:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.timestamp=void 0,e.timestamp=function(){return window.performance&&window.performance.now?window.performance.now():new Date().getTime()}},342:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0});var n=r(639);e.default=function(){var t=(0,n.useRef)(!1);return(0,n.useEffect)(function(){return t.current=!0,function(){t.current=!1}},[]),(0,n.useCallback)(function(){return t.current},[])}},402:function(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){i=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var i,s,a=Object.create((e&&e.prototype instanceof p?e:p).prototype);return o(a,"_invoke",{value:(i=new M(n||[]),s="suspendedStart",function(e,n){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===e)throw n;return T()}for(i.method=e,i.arg=n;;){var o=i.delegate;if(o){var a=function t(e,r){var n=r.method,i=e.iterator[n];if(void 0===i)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var o=d(i,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,f;var s=o.arg;return s?s.done?(r[e.resultName]=s.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):s:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(o,i);if(a){if(a===f)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===s)throw s="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);s="executing";var l=d(t,r,i);if("normal"===l.type){if(s=i.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(s="completed",i.method="throw",i.arg=l.arg)}})}),a}function d(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=h;var f={};function p(){}function m(){}function v(){}var y={};c(y,a,function(){return this});var g=Object.getPrototypeOf,b=g&&g(g(j([])));b&&b!==e&&r.call(b,a)&&(y=b);var x=v.prototype=p.prototype=Object.create(y);function w(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function P(t,e){var i;o(this,"_invoke",{value:function(o,s){function a(){return new e(function(i,a){!function i(o,s,a,l){var u=d(t[o],t,s);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==n(h)&&r.call(h,"__await")?e.resolve(h.__await).then(function(t){i("next",t,a,l)},function(t){i("throw",t,a,l)}):e.resolve(h).then(function(t){c.value=t,a(c)},function(t){return i("throw",t,a,l)})}l(u.arg)}(o,s,i,a)})}return i=i?i.then(a,a):a()}})}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function M(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:T}}function T(){return{value:void 0,done:!0}}return m.prototype=v,o(x,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:m,configurable:!0}),m.displayName=c(v,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,u,"GeneratorFunction")),t.prototype=Object.create(x),t},t.awrap=function(t){return{__await:t}},w(P.prototype),c(P.prototype,l,function(){return this}),t.AsyncIterator=P,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var s=new P(h(e,r,n,i),o);return t.isGeneratorFunction(r)?s:s.next().then(function(t){return t.done?t.value:s.next()})},w(x),c(x,u,"Generator"),c(x,a,function(){return this}),c(x,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=j,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEac
1h(E),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(r,n){return s.type="throw",s.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},t}var o=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):((e=t.value)instanceof r?e:new r(function(t){t(e)})).then(s,a)}l((n=n.apply(t,e||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.usePreLoader=void 0;var s=r(639),a=new Set,l=function(t){t.forEach(function(t){a.add(t.url)})},u=function(t){return!(!t.url||a.has(t.url))&&(void 0!==t.preloadResource?t.preloadResource:"video"!==t.type)};e.usePreLoader=function(t,e,r){(0,s.useEffect)(function(){var n=t.slice(e+1,e+r+1).filter(u);l(n),o(void 0,void 0,void 0,i().mark(function t(){var e;return i().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.map(function(t){return new Promise(function(e,r){if(t.url){if("video"===t.type){var n=document.createElement("video");n.src=t.url,n.onloadeddata=e,n.onerror=r;return}var i=new Image;i.src=t.url,i.onload=e,i.onerror=r}})}),t.next=3,Promise.all(e);case 3:case"end":return t.stop()}},t)}))},[e,r,t])}},639:e=>{e.exports=t}},r={};function n(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}};return e[t].call(o.exports,o,o.exports,n),o.exports}return n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n(370)})(),t.exports=n(r(2265))},48614:function(t,e,r){"use strict";r.d(e,{M:function(){return y}});var n=r(57437),i=r(2265),o=r(58881),s=r(53576),a=r(64252),l=r(45750);class u extends i.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c(t){let{children:e,isPresent:r}=t,o=(0,i.useId)(),s=(0,i.useRef)(null),a=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:c}=(0,i.useContext)(l._);return(0,i.useInsertionEffect)(()=>{let{width:t,height:e,top:n,left:i}=a.current;if(r||!s.current||!t||!e)return;s.current.dataset.motionPopId=o;
1let l=document.createElement("style");return c&&(l.nonce=c),document.head.appendChild(l),l.sheet&&l.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 top: ").concat(n,"px !important;\n left: ").concat(i,"px !important;\n }\n ")),()=>{document.head.removeChild(l)}},[r]),(0,n.jsx)(u,{isPresent:r,childRef:s,sizeRef:a,children:i.cloneElement(e,{ref:s})})}let h=t=>{let{children:e,initial:r,isPresent:o,onExitComplete:l,custom:u,presenceAffectsLayout:h,mode:f}=t,p=(0,s.h)(d),m=(0,i.useId)(),v=(0,i.useCallback)(t=>{for(let e of(p.set(t,!0),p.values()))if(!e)return;l&&l()},[p,l]),y=(0,i.useMemo)(()=>({id:m,initial:r,isPresent:o,custom:u,onExitComplete:v,register:t=>(p.set(t,!1),()=>p.delete(t))}),h?[Math.random(),v]:[o,v]);return(0,i.useMemo)(()=>{p.forEach((t,e)=>p.set(e,!1))},[o]),i.useEffect(()=>{o||p.size||!l||l()},[o]),"popLayout"===f&&(e=(0,n.jsx)(c,{isPresent:o,children:e})),(0,n.jsx)(a.O.Provider,{value:y,children:e})};function d(){return new Map}var f=r(49637);let p=t=>t.key||"";function m(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}var v=r(11534);let y=t=>{let{children:e,custom:r,initial:a=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1}=t,[y,g]=(0,f.oO)(d),b=(0,i.useMemo)(()=>m(e),[e]),x=d&&!y?[]:b.map(p),w=(0,i.useRef)(!0),P=(0,i.useRef)(b),S=(0,s.h)(()=>new Map),[E,M]=(0,i.useState)(b),[j,T]=(0,i.useState)(b);(0,v.L)(()=>{w.current=!1,P.current=b;for(let t=0;t<j.length;t++){let e=p(j[t]);x.includes(e)?S.delete(e):!0!==S.get(e)&&S.set(e,!1)}},[j,x.length,x.join("-")]);let A=[];if(b!==E){let t=[...b];for(let e=0;e<j.length;e++){let r=j[e],n=p(r);x.includes(n)||(t.splice(e,0,r),A.push(r))}"wait"===c&&A.length&&(t=A),T(m(t)),M(b);return}let{forceRender:O}=(0,i.useContext)(o.p);return(0,n.jsx)(n.Fragment,{children:j.map(t=>{let e=p(t),i=(!d||!!y)&&(b===j||x.includes(e));return(0,n.jsx)(h,{isPresent:i,initial:(!w.current||!!a)&&void 0,custom:i?void 0:r,presenceAffectsLayout:u,mode:c,onExitComplete:i?void 0:()=>{if(!S.has(e))return;S.set(e,!0);let t=!0;S.forEach(e=>{e||(t=!1)}),t&&(null==O||O(),T(P.current),d&&(null==g||g()),l&&l())},children:t},e)})})}},49637:function(t,e,r){"use strict";r.d(e,{oO:function(){return o}});var n=r(2265),i=r(64252);function o(t=!0){let e=(0,n.useContext)(i.O);if(null===e)return[!0,null];let{isPresent:r,onExitComplete:o,register:s}=e,a=(0,n.useId)();(0,n.useEffect)(()=>{t&&s(a)},[t]);let l=(0,n.useCallback)(()=>t&&o&&o(a),[a,o,t]);return!r&&o?[!1,l]:[!0]}},58881:function(t,e,r){"use strict";r.d(e,{p:function(){return n}});let n=(0,r(2265).createContext)({})},45750:function(t,e,r){"use strict";r.d(e,{_:function(){return n}});let n=(0,r(2265).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},64252:function(t,e,r){"use strict";r.d(e,{O:function(){return n}});let n=(0,r(2265).createContext)(null)},40521:function(t,e,r){"use strict";let n;function i(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}r.d(e,{E:function(){return ov}});let o=t=>Array.isArray(t);function s(t,e){if(!Array.isArray(e))return!1;let r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function a(t){return"string"==typeof t||Array.isArray(t)}function l(t){let e=[{},{}];return null==t||t.values.forEach((t,r)=>{e[0][r]=t.get(),e[1][r]=t.getVelocity()}),e}function u(t,e,r,n){if("function"==typeof e){let[i,o]=l(n);e=e(void 0!==r?r:t.custom,i,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[i,o]=l(n);e=e(void 0!==r?r:t.custom,i,o)}return e}function c(t,e,r){let n=t.getProps();return u(n,e,void 0!==r?r:n.custom,t)}let h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],d=["initial",...h];function f(t){let e;return()=>(void 0===e&&(e=t()),e)}let p=f(()=>void 0!==window.ScrollTimeline);class m{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 r=0;r<this.animations.length;r++)this.animations[r][t]=e}attachTimeline(t,e){let r=this.animations.map(r=>p()&&r.attachTimeline?r.attachTimeline(t):"function"==typeof e?e(r):void 0);return()=>{r.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}
1runAll(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 v extends m{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function y(t,e){return t?t[e]||t.default||t:void 0}function g(t){let e=0,r=t.next(e);for(;!r.done&&e<2e4;)e+=50,r=t.next(e);return e>=2e4?1/0:e}function b(t){return"function"==typeof t}function x(t,e){t.timeline=e,t.onfinish=null}let w=t=>Array.isArray(t)&&"number"==typeof t[0],P={linearEasing:void 0},S=function(t,e){let r=f(t);return()=>{var t;return null!==(t=P[e])&&void 0!==t?t:r()}}(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),E=(t,e,r)=>{let n=e-t;return 0===n?1:(r-t)/n},M=(t,e,r=10)=>{let n="",i=Math.max(Math.round(e/r),2);for(let e=0;e<i;e++)n+=t(E(0,i-1,e))+", ";return`linear(${n.substring(0,n.length-2)})`},j=([t,e,r,n])=>`cubic-bezier(${t}, ${e}, ${r}, ${n})`,T={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:j([0,.65,.55,1]),circOut:j([.55,0,1,.45]),backIn:j([.31,.01,.66,-.59]),backOut:j([.33,1.53,.69,.99])},A={x:!1,y:!1};function O(t,e){let r=function(t,e,r){if(t instanceof Element)return[t];if("string"==typeof t){let e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),n=new AbortController;return[r,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function C(t){return e=>{"touch"===e.pointerType||A.x||A.y||t(e)}}let _=(t,e)=>!!e&&(t===e||_(t,e.parentElement)),k=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,D=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),V=new WeakSet;function R(t){return e=>{"Enter"===e.key&&t(e)}}function L(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}let I=(t,e)=>{let r=t.currentTarget;if(!r)return;let n=R(()=>{if(V.has(r))return;L(r,"down");let t=R(()=>{L(r,"up")});r.addEventListener("keyup",t,e),r.addEventListener("blur",()=>L(r,"cancel"),e)});r.addEventListener("keydown",n,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),e)};function F(t){return k(t)&&!(A.x||A.y)}let B=t=>1e3*t,U=t=>t/1e3,N=t=>t,Z=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],z=new Set(Z),W=new Set(["width","height","top","left","right","bottom",...Z]),$=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),H=t=>o(t)?t[t.length-1]||0:t,Y={skipAnimations:!1,useManualTiming:!1},X=["read","resolveKeyframes","update","preRender","render","postRender"];function K(t,e){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,s=X.reduce((t,e)=>(t[e]=function(t){let e=new Set,r=new Set,n=!1,i=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(e){o.has(e)&&(l.schedule(e),t()),e(s)}let l={schedule:(t,i=!1,s=!1)=>{let a=s&&n?e:r;return i&&o.add(t),a.has(t)||a.add(t),t},cancel:t=>{r.delete(t),o.delete(t)},process:t=>{if(s=t,n){i=!0;return}n=!0,[e,r]=[r,e],e.forEach(a),e.clear(),n=!1,i&&(i=!1,l.process(t))}};return l}(o),t),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:h,postRender:d}=s,f=()=>{let o=Y.useManualTiming?i.timestamp:performance.now();r=!1,i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),d.process(i),i.isProcessing=!1,r&&e&&(n=!1,t(f))},p=()=>{r=!0,n=!0,i.isProcessing||t(f)};return{schedule:X.reduce((t,e)=>{let n=s[e];return t[e]=(t,e=!1,i=!1)=>(r||p(),n.schedule(t,e,i)),t},{}),cancel:t=>{for(let e=0;e<X.length;e++)s[X[e]].cancel(t)},state:i,steps:s}}let{schedule:G,cancel:q,state:J,steps:Q}=K("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:N,!0);function tt(){n=void 0}let te={now:()=>(void 0===n&&te.set(J.isProcessing||Y.useManualTiming?J.timestamp:performance.now()),n),set:t=>{n=t,queueMicrotask(tt)}};function tr(t,e){-1===t.indexOf(e)&&t.push(e)}function tn(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}class ti{constructor(){this.subscriptions=[]}add(t){return tr(this.subscriptions,t),()=>tn(this.subscriptions,t)}notify(t,e,r){let n=this.subscriptions.length;if(n){if(1===n)this.subscriptions[0](t,e,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(t,e,r)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let to=t=>!isNaN(parseFloat(t)),ts={current:void 0};class ta{constructor(t,e={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(t,e=!0)=>{let r=te.now();this.updatedAt!==r&&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=te.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=to(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 ti);let r=this.events[t].add(e);return"change"===t?()=>{r(),G.read(()=>{this.events.change.getSize()||this.stop()})}:r}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,r){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}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 ts.current&&ts.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=te.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),r?1e3/r*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 tl(t,e){return new ta(t,e)}let tu=t=>!!(t&&t.getVelocity);function tc(t,e){let r=t.getValue("willChange");if(tu(r)&&r.add)return r.add(e)}let th=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),td="data-"+th("framerAppearId"),tf={current:!1},tp=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t;function tm(t,e,r,n){if(t===e&&r===n)return N;let i=e=>(function(t,e,r,n,i){let o,s;let a=0;do(o=tp(s=e+(r-e)/2,n,i)-t)>0?r=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,r);return t=>0===t||1===t?t:tp(i(t),e,n)}let tv=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ty=t=>e=>1-t(1-e),tg=tm(.33,1.53,.69,.99),tb=ty(tg),tx=tv(tb),tw=t=>(t*=2)<1?.5*tb(t):.5*(2-Math.pow(2,-10*(t-1))),tP=t=>1-Math.sin(Math.acos(t)),tS=ty(tP),tE=tv(tP),tM=t=>/^0[^.\s]+$/u.test(t),tj=(t,e,r)=>r>e?e:r<t?t:r,tT={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},tA={...tT,transform:t=>tj(0,1,t)},tO={...tT,default:1},tC=t=>Math.round(1e5*t)/1e5,t_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tk=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tD=(t,e)=>r=>!!("string"==typeof r&&tk.test(r)&&r.startsWith(t)||e&&null!=r&&Object.prototype.hasOwnProperty.call(r,e)),tV=(t,e,r)=>n=>{if("string"!=typeof n)return n;let[i,o,s,a]=n.match(t_);return{[t]:parseFloat(i),[e]:parseFloat(o),[r]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},tR=t=>tj(0,255,t),tL={...tT,transform:t=>Math.round(tR(t))},tI={test:tD("rgb","red"),parse:tV("red","green","blue"),transform:({red:t,green:e,blue:r,alpha:n=1})=>"rgba("+tL.transform(t)+", "+tL.transform(e)+", "+tL.transform(r)+", "+tC(tA.transform(n))+")"},tF={test:tD("#"),parse:function(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alph
1a:i?parseInt(i,16)/255:1}},transform:tI.transform},tB=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tU=tB("deg"),tN=tB("%"),tZ=tB("px"),tz=tB("vh"),tW=tB("vw"),t$={...tN,parse:t=>tN.parse(t)/100,transform:t=>tN.transform(100*t)},tH={test:tD("hsl","hue"),parse:tV("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:r,alpha:n=1})=>"hsla("+Math.round(t)+", "+tN.transform(tC(e))+", "+tN.transform(tC(r))+", "+tC(tA.transform(n))+")"},tY={test:t=>tI.test(t)||tF.test(t)||tH.test(t),parse:t=>tI.test(t)?tI.parse(t):tH.test(t)?tH.parse(t):tF.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tI.transform(t):tH.transform(t)},tX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tK="number",tG="color",tq=/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 tJ(t){let e=t.toString(),r=[],n={color:[],number:[],var:[]},i=[],o=0,s=e.replace(tq,t=>(tY.test(t)?(n.color.push(o),i.push(tG),r.push(tY.parse(t))):t.startsWith("var(")?(n.var.push(o),i.push("var"),r.push(t)):(n.number.push(o),i.push(tK),r.push(parseFloat(t))),++o,"${}")).split("${}");return{values:r,split:s,indexes:n,types:i}}function tQ(t){return tJ(t).values}function t0(t){let{split:e,types:r}=tJ(t),n=e.length;return t=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],void 0!==t[o]){let e=r[o];e===tK?i+=tC(t[o]):e===tG?i+=tY.transform(t[o]):i+=t[o]}return i}}let t1=t=>"number"==typeof t?0:t,t2={test:function(t){var e,r;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(t_))||void 0===e?void 0:e.length)||0)+((null===(r=t.match(tX))||void 0===r?void 0:r.length)||0)>0},parse:tQ,createTransformer:t0,getAnimatableNone:function(t){let e=tQ(t);return t0(t)(e.map(t1))}},t5=new Set(["brightness","contrast","saturate","opacity"]);function t3(t){let[e,r]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=r.match(t_)||[];if(!n)return t;let i=r.replace(n,""),o=t5.has(e)?1:0;return n!==r&&(o*=100),e+"("+o+i+")"}let t9=/\b([a-z-]*)\(.*?\)/gu,t4={...t2,getAnimatableNone:t=>{let e=t.match(t9);return e?e.map(t3).join(" "):t}},t6={...tT,transform:Math.round},t7={borderWidth:tZ,borderTopWidth:tZ,borderRightWidth:tZ,borderBottomWidth:tZ,borderLeftWidth:tZ,borderRadius:tZ,radius:tZ,borderTopLeftRadius:tZ,borderTopRightRadius:tZ,borderBottomRightRadius:tZ,borderBottomLeftRadius:tZ,width:tZ,maxWidth:tZ,height:tZ,maxHeight:tZ,top:tZ,right:tZ,bottom:tZ,left:tZ,padding:tZ,paddingTop:tZ,paddingRight:tZ,paddingBottom:tZ,paddingLeft:tZ,margin:tZ,marginTop:tZ,marginRight:tZ,marginBottom:tZ,marginLeft:tZ,backgroundPositionX:tZ,backgroundPositionY:tZ,rotate:tU,rotateX:tU,rotateY:tU,rotateZ:tU,scale:tO,scaleX:tO,scaleY:tO,scaleZ:tO,skew:tU,skewX:tU,skewY:tU,distance:tZ,translateX:tZ,translateY:tZ,translateZ:tZ,x:tZ,y:tZ,z:tZ,perspective:tZ,transformPerspective:tZ,opacity:tA,originX:t$,originY:t$,originZ:tZ,zIndex:t6,size:tZ,fillOpacity:tA,strokeOpacity:tA,numOctaves:t6},t8={...t7,color:tY,backgroundColor:tY,outlineColor:tY,fill:tY,stroke:tY,borderColor:tY,borderTopColor:tY,borderRightColor:tY,borderBottomColor:tY,borderLeftColor:tY,filter:t4,WebkitFilter:t4},et=t=>t8[t];function ee(t,e){let r=et(t);return r!==t4&&(r=t2),r.getAnimatableNone?r.getAnimatableNone(e):void 0}let er=new Set(["auto","none","0"]),en=t=>t===tT||t===tZ,ei=(t,e)=>parseFloat(t.split(", ")[e]),eo=(t,e)=>(r,{transform:n})=>{if("none"===n||!n)return 0;let i=n.match(/^matrix3d\((.+)\)$/u);if(i)return ei(i[1],e);{let e=n.match(/^matrix\((.+)\)$/u);return e?ei(e[1],t):0}},es=new Set(["x","y","z"]),ea=Z.filter(t=>!es.has(t)),el={width:({x:t},{paddingLeft:e="0",paddingRight:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),height:({y:t},{paddingTop:e="0",paddingBottom:r="0"})=>t.max-t.min-parseFloat(e)-parseFloat(r),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:eo(4,13),y:eo(5,14)};el.translateX=el.x,el.translateY=el.y;let eu=new Set,ec=!1,eh=!1;function ed(){if(eh){let t=Array.from(eu).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),r=new Map;e.forEach(t=>{let e=function(t){let e=[];return ea.forEach(r=>{let n=t.getValue(r);void 0!==n&&(e.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),e}(t);e.length&&(r.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=r.get(t);e&&e.forEach(([e,r])=>{var n;null===(n=t.getValue(e))||void 0===n||n.set(r)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}eh=!1,ec=!1,eu.forEach(t=>t.complete()),eu.clear()}function ef(){eu.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(eh=!0)})}class ep{constructor(t,e,r,n,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=r,this.motionValue=n,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(eu.add(this),ec||(ec=!0,G.read(ef),G.resolveKeyframes(ed))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:r,motionValue:n}=this;for(let i=0;i<t.length;i++)if(null===t[i]){if(0===i){let i=null==n?void 0:n.get(),o=t[t.length-1];if(void 0!==i)t[0]=i;else if(r&&e){let n=r.readValue(e,o);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=o),n&&void 0===i&&n.set(t[0])}else t[i]=t[i-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),eu.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,eu.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let em=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),ev=t=>e=>"string"==typeof e&&e.startsWith(t),ey=ev("--"),eg=ev("var(--"),eb=t=>!!eg(t)&&ex.test(t.split("/*")[0].trim()),ex=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ew=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eP=t=>e=>e.test(t),eS=[tT,tZ,tN,tU,tW,tz,{test:t=>"auto"===t,parse:t=>t}],eE=t=>eS.find(eP(t));class eM extends ep{constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:r}=this;if(!e||!e.current)return;super.readKeyframes();for(let r=0;r<t.length;r++){let n=t[r];
1if("string"==typeof n&&eb(n=n.trim())){let i=function t(e,r,n=1){N(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,o]=function(t){let e=ew.exec(t);if(!e)return[,];let[,r,n,i]=e;return[`--${null!=r?r:n}`,i]}(e);if(!i)return;let s=window.getComputedStyle(r).getPropertyValue(i);if(s){let t=s.trim();return em(t)?parseFloat(t):t}return eb(o)?t(o,r,n+1):o}(n,e.current);void 0!==i&&(t[r]=i),r===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!W.has(r)||2!==t.length)return;let[n,i]=t,o=eE(n),s=eE(i);if(o!==s){if(en(o)&&en(s))for(let e=0;e<t.length;e++){let r=t[e];"string"==typeof r&&(t[e]=parseFloat(r))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,r=[];for(let e=0;e<t.length;e++){var n;("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||tM(n))&&r.push(e)}r.length&&function(t,e,r){let n,i=0;for(;i<t.length&&!n;){let e=t[i];"string"==typeof e&&!er.has(e)&&tJ(e).values.length&&(n=t[i]),i++}if(n&&r)for(let i of e)t[i]=ee(r,n)}(t,r,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:r}=this;if(!t||!t.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=el[r](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(r,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:r,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let i=e.getValue(r);i&&i.jump(this.measuredOrigin,!1);let o=n.length-1,s=n[o];n[o]=el[r](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null===(t=this.removedTransforms)||void 0===t?void 0:t.length)&&this.removedTransforms.forEac
1h(([t,r])=>{e.getValue(t).set(r)}),this.resolveNoneKeyframes()}}let ej=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(t2.test(t)||"0"===t)&&!t.startsWith("url(")),eT=t=>null!==t;function eA(t,{repeat:e,repeatType:r="loop"},n){let i=t.filter(eT),o=e&&"loop"!==r&&e%2==1?0:i.length-1;return o&&void 0!==n?n:i[o]}class eO{constructor({autoplay:t=!0,delay:e=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=te.now(),this.options={autoplay:t,delay:e,type:r,repeat:n,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(ef(),ed()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=te.now(),this.hasAttemptedResolve=!0;let{name:r,type:n,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!function(t,e,r,n){let i=t[0];if(null===i)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],s=ej(i,e),a=ej(o,e);return N(s===a,`You are trying to animate ${e} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!!s&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}(t)||("spring"===r||b(r))&&n)}(t,r,n,i)){if(tf.current||!o){a&&a(eA(t,this.options,e)),s&&s(),this.resolveFinishedPromise();return}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})}}let eC=(t,e,r)=>t+(e-t)*r;function e_(t,e,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function ek(t,e){return r=>r>0?e:t}let eD=(t,e,r)=>{let n=t*t,i=r*(e*e-n)+n;return i<0?0:Math.sqrt(i)},eV=[tF,tI,tH],eR=t=>eV.find(e=>e.test(t));function eL(t){let e=eR(t);if(N(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`),!e)return!1;let r=e.parse(t);return e===tH&&(r=function({hue:t,saturation:e,lightness:r,alpha:n}){t/=360,r/=100;let i=0,o=0,s=0;if(e/=100){let n=r<.5?r*(1+e):r+e-r*e,a=2*r-n;i=e_(a,n,t+1/3),o=e_(a,n,t),s=e_(a,n,t-1/3)}else i=o=s=r;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:n}}(r)),r}let eI=(t,e)=>{let r=eL(t),n=eL(e);if(!r||!n)return ek(t,e);let i={...r};return t=>(i.red=eD(r.red,n.red,t),i.green=eD(r.green,n.green,t),i.blue=eD(r.blue,n.blue,t),i.alpha=eC(r.alpha,n.alpha,t),tI.transform(i))},eF=(t,e)=>r=>e(t(r)),eB=(...t)=>t.reduce(eF),eU=new Set(["none","hidden"]);function eN(t,e){return r=>eC(t,e,r)}function eZ(t){return"number"==typeof t?eN:"string"==typeof t?eb(t)?ek:tY.test(t)?eI:e$:Array.isArray(t)?ez:"object"==typeof t?tY.test(t)?eI:eW:ek}function ez(t,e){let r=[...t],n=r.length,i=t.map((t,r)=>eZ(t)(t,e[r]));return t=>{for(let e=0;e<n;e++)r[e]=i[e](t);return r}}function eW(t,e){let r={...t,...e},n={};for(let i in r)void 0!==t[i]&&void 0!==e[i]&&(n[i]=eZ(t[i])(t[i],e[i]));return t=>{for(let e in n)r[e]=n[e](t);return r}}let e$=(t,e)=>{let r=t2.createTransformer(e),n=tJ(t),i=tJ(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?eU.has(t)&&!i.values.length||eU.has(e)&&!n.values.length?eU.has(t)?r=>r<=0?t:e:r=>r>=1?e:t:eB(ez(function(t,e){var r;let n=[],i={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){let s=e.types[o],a=t.indexes[s][i[s]],l=null!==(r=t.values[a])&&void 0!==r?r:0;n[o]=l,i[s]++}return n}(n,i),i.values),r):(N(!0,`Complex values '${t}' and '${e}' 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.`),ek(t,e))};function eH(t,e,r){return"number"==typeof t&&"number"==typeof e&&"number"==typeof r?eC(t,e,r):eZ(t)(t,e)}function eY(t,e,r){var n,i;let o=Math.max(e-5,0);return n=r-t(o),(i=e-o)?1e3/i*n:0}let eX={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 eK(t,e){return t*Math.sqrt(1-e*e)}let eG=["duration","bounce"],eq=["stiffness","damping","mass"];function eJ(t,e){return e.some(e=>void 0!==t[e])}function eQ(t=eX.visualDuration,e=eX.bounce){let r;let n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t,{restSpeed:i,restDelta:o}=n,s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:h,duration:d,velocity:f,isResolvedFromDuration:p}=function(t){let e={velocity:eX.velocity,stiffness:eX.stiffness,damping:eX.damping,mass:eX.mass,isResolvedFromDuration:!1,...t};if(!eJ(t,eq)&&eJ(t,eG)){if(t.visualDuration){let r=2*Math.PI/(1.2*t.visualDuration),n=r*r,i=2*tj(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:eX.mass,stiffness:n,damping:i}}else{let r=function({duration:t=eX.duration,bounce:e=eX.bounce,velocity:r=eX.velocity,mass:n=eX.mass}){let i,o;N(t<=B(eX.maxDuration),"Spring duration must be 10 seconds or less");let s=1-e;s=tj(eX.minDamping,eX.maxDamping,s),t=tj(eX.minDuration,eX.maxDuration,U(t)),s<1?(i=e=>{let n=e*s,i=n*t;
1return .001-(n-r)/eK(e,s)*Math.exp(-i)},o=e=>{let n=e*s*t,o=Math.pow(s,2)*Math.pow(e,2)*t,a=eK(Math.pow(e,2),s);return(n*r+r-o)*Math.exp(-n)*(-i(e)+.001>0?-1:1)/a}):(i=e=>-.001+Math.exp(-e*t)*((e-r)*t+1),o=e=>t*t*(r-e)*Math.exp(-e*t));let a=function(t,e,r){let n=r;for(let r=1;r<12;r++)n-=t(n)/e(n);return n}(i,o,5/t);if(t=B(t),isNaN(a))return{stiffness:eX.stiffness,damping:eX.damping,duration:t};{let e=Math.pow(a,2)*n;return{stiffness:e,damping:2*s*Math.sqrt(n*e),duration:t}}}(t);(e={...e,...r,mass:eX.mass}).isResolvedFromDuration=!0}}return e}({...n,velocity:-U(n.velocity||0)}),m=f||0,v=c/(2*Math.sqrt(u*h)),y=a-s,b=U(Math.sqrt(u/h)),x=5>Math.abs(y);if(i||(i=x?eX.restSpeed.granular:eX.restSpeed.default),o||(o=x?eX.restDelta.granular:eX.restDelta.default),v<1){let t=eK(b,v);r=e=>a-Math.exp(-v*b*e)*((m+v*b*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}else if(1===v)r=t=>a-Math.exp(-b*t)*(y+(m+b*y)*t);else{let t=b*Math.sqrt(v*v-1);r=e=>{let r=Math.exp(-v*b*e),n=Math.min(t*e,300);return a-r*((m+v*b*y)*Math.sinh(n)+t*y*Math.cosh(n))/t}}let w={calculatedDuration:p&&d||null,next:t=>{let e=r(t);if(p)l.done=t>=d;else{let n=0;v<1&&(n=0===t?B(m):eY(r,t,e));let s=Math.abs(n)<=i,u=Math.abs(a-e)<=o;l.done=s&&u}return l.value=l.done?a:e,l},toString:()=>{let t=Math.min(g(w),2e4),e=M(e=>w.next(t*e).value,t,30);return t+"ms "+e}};return w}function e0({keyframes:t,velocity:e=0,power:r=.8,timeConstant:n=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let h,d;let f=t[0],p={done:!1,value:f},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,y=r*e,g=f+y,b=void 0===s?g:s(g);b!==g&&(y=b-f);let x=t=>-y*Math.exp(-t/n),w=t=>b+x(t),P=t=>{let e=x(t),r=w(t);p.done=Math.abs(e)<=u,p.value=p.done?b:r},S=t=>{m(p.value)&&(h=t,d=eQ({keyframes:[p.value,v(p.value)],velocity:eY(w,t,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return(d||void 0!==h||(e=!0,P(t),S(t)),void 0!==h&&t>=h)?d.next(t-h):(e||P(t),p)}}}let e1=tm(.42,0,1,1),e2=tm(0,0,.58,1),e5=tm(.42,0,.58,1),e3=t=>Array.isArray(t)&&"number"!=typeof t[0],e9={linear:N,easeIn:e1,easeInOut:e5,easeOut:e2,circIn:tP,circInOut:tE,circOut:tS,backIn:tb,backInOut:tx,backOut:tg,anticipate:tw},e4=t=>{if(w(t)){N(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,r,n,i]=t;return tm(e,r,n,i)}return"string"==typeof t?(N(void 0!==e9[t],`Invalid easing type '${t}'`),e9[t]):t};function e6({duration:t=300,keyframes:e,times:r,ease:n="easeInOut"}){let i=e3(n)?n.map(e4):e4(n),o={done:!1,value:e[0]},s=function(t,e,{clamp:r=!0,ease:n,mixer:i}={}){let o=t.length;if(N(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];let s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,r){let n=[],i=r||eH,o=t.length-1;for(let r=0;r<o;r++){let o=i(t[r],t[r+1]);e&&(o=eB(Array.isArray(e)?e[r]||N:e,o)),n.push(o)}return n}(e,n,i),l=a.length,u=r=>{if(s&&r<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(r<t[n+1]);n++);let i=E(t[n],t[n+1],r);return a[n](i)};return r?e=>u(tj(t[0],t[o-1],e)):u}((r&&r.length===e.length?r:function(t){let e=[0];return function(t,e){let r=t[t.length-1];for(let n=1;n<=e;n++){let i=E(0,e,n);t.push(eC(r,1,i))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(i)?i:e.map(()=>i||e5).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=s(e),o.done=e>=t,o)}}let e7=t=>{let e=({timestamp:e})=>t(e);return{start:()=>G.update(e,!0),stop:()=>q(e),now:()=>J.isProcessing?J.timestamp:te.now()}},e8={decay:e0,inertia:e0,tween:e6,keyframes:e6,spring:eQ},rt=t=>t/100;class re extends eO{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:r,element:n,keyframes:i}=this.options,o=(null==n?void 0:n.KeyframeResolver)||ep;
1this.resolver=new o(i,(t,e)=>this.onKeyframesResolved(t,e),e,r,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){let e,r;let{type:n="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=this.options,l=b(n)?n:e8[n]||e6;l!==e6&&"number"!=typeof t[0]&&(e=eB(rt,eH(t[0],t[1])),t=[0,100]);let u=l({...this.options,keyframes:t});"mirror"===s&&(r=l({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===u.calculatedDuration&&(u.calculatedDuration=g(u));let{calculatedDuration:c}=u,h=c+o;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:e,calculatedDuration:c,resolvedDuration:h,totalDuration:h*(i+1)-o}}onPostResolved(){let{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t,e=!1){let{resolved:r}=this;if(!r){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:n,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return i.next(0);let{delay:h,repeat:d,repeatType:f,repeatDelay:p,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-h*(this.speed>=0?1:-1),y=this.speed>=0?v<0:v>u;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let g=this.currentTime,b=i;if(d){let t=Math.min(this.currentTime,u)/c,e=Math.floor(t),r=t%1;!r&&t>=1&&(r=1),1===r&&e--,(e=Math.min(e,d+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/c)):"mirror"===f&&(b=o)),g=tj(0,1,r)*c}let x=y?{done:!1,value:a[0]}:b.next(g);s&&(x.value=s(x.value));let{done:w}=x;
1y||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return P&&void 0!==n&&(x.value=eA(a,this.options,n)),m&&m(x.value),P&&this.finish(),x}get duration(){let{resolved:t}=this;return t?U(t.calculatedDuration):0}get time(){return U(this.currentTime)}set time(t){t=B(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=U(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=e7,onPlay:e,startTime:r}=this.options;this.driver||(this.driver=t(t=>this.tick(t))),e&&e();let n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=r?r:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=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()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}let rr=new Set(["opacity","clipPath","filter","transform"]),rn=f(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),ri={anticipate:tw,backInOut:tx,circInOut:tE};class ro extends eO{constructor(t){super(t);let{name:e,motionValue:r,element:n,keyframes:i}=this.options;this.resolver=new eM(i,(t,e)=>this.onKeyframesResolved(t,e),e,r,n),this.resolver.scheduleResolve()}initPlayback(t,e){var r;let{duration:n=300,times:i,ease:o,type:s,motionValue:a,name:l,startTime:u}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof o&&S()&&o in ri&&(o=ri[o]),b((r=this.options).type)||"spring"===r.type||!function t(e){return!!("function"==typeof e&&S()||!e||"string"==typeof e&&(e in T||S())||w(e)||Array.isArray(e)&&e.every(t))}(r.ease)){let{onComplete:e,onUpdate:r,motionValue:a,element:l,...u}=this.options,c=function(t,e){let r=new re({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),n={done:!1,value:t[0]},i=[],o=0;for(;!n.done&&o<2e4;)i.push((n=r.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(t,u);1===(t=c.keyframes).length&&(t[1]=t[0]),n=c.duration,i=c.times,o=c.ease,s="keyframes"}let c=function(t,e,r,{delay:n=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeInOut",times:l}={}){let u={[e]:r};l&&(u.offset=l);let c=function t(e,r){if(e)return"function"==typeof e&&S()?M(e,r):w(e)?j(e):Array.isArray(e)?e.map(e=>t(e,r)||T.easeOut):T[e]}(a,i);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:n,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(a.owner.current,l,t,{...this.options,duration:n,times:i,ease:o});return c.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(x(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:r}=this.options;a.set(eA(t,this.options,e)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:i,type:s,ease:o,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return U(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return U(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:r}=e;r.currentTime=B(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:r}=e;r.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 N;let{animation:r}=e;x(r,t)}else this.pendingTimeline=t;return N}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;
1"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:r,duration:n,type:i,ease:o,times:s}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,c=new re({...u,keyframes:r,duration:n,type:i,ease:o,times:s,isGenerator:!0}),h=B(this.time);t.setWithVelocity(c.sample(h-10).value,c.sample(h).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()}static supports(t){let{motionValue:e,name:r,repeatDelay:n,repeatType:i,damping:o,type:s}=t;if(!e||!e.owner||!(e.owner.current instanceof HTMLElement))return!1;let{onUpdate:a,transformTemplate:l}=e.owner.getProps();return rn()&&r&&rr.has(r)&&!a&&!l&&!n&&"mirror"!==i&&0!==o&&"inertia"!==s}}let rs={type:"spring",stiffness:500,damping:25,restSpeed:10},ra=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),rl={type:"keyframes",duration:.8},ru={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rc=(t,{keyframes:e})=>e.length>2?rl:z.has(t)?t.startsWith("scale")?ra(e[1]):rs:ru,rh=(t,e,r,n={},i,o)=>s=>{let a=y(n,t)||{},l=a.delay||n.delay||0,{elapsed:u=0}=n;u-=B(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:o?void 0:i};!function({when:t,delay:e,delayChildren:r,staggerChildren:n,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(a)&&(c={...c,...rc(t,c)}),c.duration&&(c.duration=B(c.duration)),c.repeatDelay&&(c.repeatDelay=B(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let h=!1;if(!1!==c.type&&(0!==c.duration||c.repeatDelay)||(c.duration=0,0!==c.delay||(h=!0)),(tf.current||Y.skipAnimations)&&(h=!0,c.duration=0,c.delay=0),h&&!o&&void 0!==e.get()){let t=eA(c.keyframes,a);if(void 0!==t)return G.update(()=>{c.onUpdate(t),c.onComplete()}),new v([])}return!o&&ro.supports(c)?new ro(c):new re(c)};function rd(t,e,{delay:r=0,transitionOverride:n,type:i}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...l}=e;n&&(s=n);let u=[],h=i&&t.animationState&&t.animationState.getState()[i];for(let e in l){let n=t.getValue(e,null!==(o=t.latestValues[e])&&void 0!==o?o:null),i=l[e];if(void 0===i||h&&function({protectedKeys:t,needsAnimating:e},r){let n=t.hasOwnProperty(r)&&!0!==e[r];return e[r]=!1,n}(h,e))continue;let a={delay:r,...y(s||{},e)},c=!1;if(window.MotionHandoffAnimation){let r=t.props[td];if(r){let t=window.MotionHandoffAnimation(r,e,G);null!==t&&(a.startTime=t,c=!0)}}tc(t,e),n.start(rh(e,n,i,t.shouldReduceMotion&&W.has(e)?{type:!1}:a,t,c));let d=n.animation;d&&u.push(d)}return a&&Promise.all(u).then(()=>{G.update(()=>{a&&function(t,e){let{transitionEnd:r={},transition:n={},...i}=c(t,e)||{};for(let e in i={...i,...r}){let r=H(i[e]);t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,tl(r))}}(t,a)})}),u}function rf(t,e,r={}){var n;let i=c(t,e,"exit"===r.type?null===(n=t.presenceContext)||void 0===n?void 0:n.custom:void 0),{transition:o=t.getDefaultTransition()||{}}=i||{};r.transitionOverride&&(o=r.transitionOverride);let s=i?()=>Promise.all(rd(t,i,r)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(n=0)=>{let{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(t,e,r=0,n=0,i=1,o){let s=[],a=(t.variantChildren.size-1)*n,l=1===i?(t=0)=>t*n:(t=0)=>a-t*n;return Array.from(t.variantChildren).sort(rp).forEach((t,n)=>{t.notify("AnimationStart",e),s.push(rf(t,e,{...o,delay:r+l(n)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(s)}(t,e,i+n,s,a,r)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(r.delay)]);{let[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then(()=>e())}}function rp(t,e){return t.sortNodePosition(e)}let rm=d.length,rv=[...h].reverse(),ry=h.length;function rg(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rb(){return{animate:rg(!0),whileInView:rg(),whileHover:rg(),whileTap:rg(),whileDrag:rg(),whileFocus:rg(),exit:rg()}}class rx{constructor(t){this.isMounted=!1,this.node=t}update(){}}class rw extends rx{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:r})=>(function(t,e,r={}){let n;if(t.notify("AnimationStart",e),Array.isArray(e))n=Promise.all(e.map(e=>rf(t,e,r)));else if("string"==typeof e)n=rf(t,e,r);else{let i="function"==typeof e?c(t,e,r.custom):e;n=Promise.all(rd(t,i,r))}return n.then(()=>{t.notify("AnimationComplete",e)})})(t,e,r))),r=rb(),n=!0,l=e=>(r,n)=>{var i;let o=c(t,n,"exit"===e?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){let{transition:t,transitionEnd:e,...n}=o;r={...r,...n,...e}}return r};function u(u){let{props:c}=t,h=function t(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(r.initial=e.props.initial),r}let r={};for(let t=0;t<rm;t++){let n=d[t],i=e.props[n];(a(i)||!1===i)&&(r[n]=i)}return r}(t.parent)||{},f=[],p=new Set,m={},v=1/0;for(let e=0;e<ry;e++){var y;let d=rv[e],g=r[d],b=void 0!==c[d]?c[d]:h[d],x=a(b),w=d===u?g.isActive:null;!1===w&&(v=e);let P=b===h[d]&&b!==c[d]&&x;if(P&&n&&t.manuallyAnimateOnMount&&(P=!1),g.protectedKeys={...m},!g.isActive&&null===w||!b&&!g.prevProp||i(b)||"boolean"==typeof b)continue;let S=(y=g.prevProp,"string"==typeof b?b!==y:!!Array.isArray(b)&&!s(b,y)),E=S||d===u&&g.isActive&&!P&&x||e>v&&x,M=!1,j=Array.isArray(b)?b:[b],T=j.reduce(l(d),{});!1===w&&(T={});let{prevResolvedValues:A={}}=g,O={...A,...T},C=e=>{E=!0,p.has(e)&&(M=!0,p.delete(e)),g.needsAnimating[e]=!0;let r=t.getValue(e);r&&(r.liveStyle=!1)};for(let t in O){let e=T[t],r=A[t];if(!m.hasOwnProperty(t))(o(e)&&o(r)?s(e,r):e===r)?void 0!==e&&p.has(t)?C(t):g.protectedKeys[t]=!0:null!=e?C(t):p.add(t)}g.prevProp=b,g.prevResolvedValues=T,g.isActive&&(m={...m,...T}),n&&t.blockInitialAnimation&&(E=!1);let _=!(P&&S)||M;
1E&&_&&f.push(...j.map(t=>({animation:t,options:{type:d}})))}if(p.size){let e={};p.forEach(r=>{let n=t.getBaseTarget(r),i=t.getValue(r);i&&(i.liveStyle=!0),e[r]=null!=n?n:null}),f.push({animation:e})}let g=!!f.length;return n&&(!1===c.initial||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(g=!1),n=!1,g?e(f):Promise.resolve()}return{animateChanges:u,setActive:function(e,n){var i;if(r[e].isActive===n)return Promise.resolve();null===(i=t.variantChildren)||void 0===i||i.forEach(t=>{var r;return null===(r=t.animationState)||void 0===r?void 0:r.setActive(e,n)}),r[e].isActive=n;let o=u(e);for(let t in r)r[t].protectedKeys={};return o},setAnimateFunction:function(r){e=r(t)},getState:()=>r,reset:()=>{r=rb(),n=!0}}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();i(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 rP=0;class rS extends rx{constructor(){super(...arguments),this.id=rP++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}function rE(t,e,r,n={passive:!0}){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}function rM(t){return{point:{x:t.pageX,y:t.pageY}}}let rj=t=>e=>k(e)&&t(e,rM(e));function rT(t,e,r,n){return rE(t,e,rj(r),n)}let rA=(t,e)=>Math.abs(t-e);class rO{constructor(t,e,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let r=rk(this.lastMoveEventInfo,this.history),n=null!==this.startEvent,i=(t=r.offset,e={x:0,y:0},Math.sqrt(rA(t.x,e.x)**2+rA(t.y,e.y)**2)>=3);if(!n&&!i)return;let{point:o}=r,{timestamp:s}=J;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;n||(a&&a(this.lastMoveEvent,r),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,r)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=rC(e,this.transformPagePoint),G.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=rk("pointercancel"===t.type?this.lastMoveEventInfo:rC(e,this.transformPagePoint),this.history);this.startEvent&&r&&r(t,o),n&&n(t,o)},!k(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=r,this.contextWindow=n||window;let o=rC(rM(t),this.transformPagePoint),{point:s}=o,{timestamp:a}=J;this.history=[{...s,timestamp:a}];let{onSessionStart:l}=e;l&&l(t,rk(o,this.history)),this.removeListeners=eB(rT(this.contextWindow,"pointermove",this.handlePointerMove),rT(this.contextWindow,"pointerup",this.handlePointerUp),rT(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),q(this.updatePoint)}}function rC(t,e){return e?{point:e(t.point)}:t}function r_(t,e){return{x:t.x-e.x,y:t.y-e.y}}function rk({point:t},e){return{point:t,delta:r_(t,rD(e)),offset:r_(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null,i=rD(t);for(;r>=0&&(n=t[r],!(i.timestamp-n.timestamp>B(.1)));)r--;if(!n)return{x:0,y:0};let o=U(i.timestamp-n.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function rD(t){return t[t.length-1]}function rV(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function rR(t){return t.max-t.min}function rL(t,e,r,n=.5){t.origin=n,t.originPoint=eC(e.min,e.max,t.origin),t.scale=rR(r)/rR(e),t.translate=eC(r.min,r.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)}
1function rI(t,e,r,n){rL(t.x,e.x,r.x,n?n.originX:void 0),rL(t.y,e.y,r.y,n?n.originY:void 0)}function rF(t,e,r){t.min=r.min+e.min,t.max=t.min+rR(e)}function rB(t,e,r){t.min=e.min-r.min,t.max=t.min+rR(e)}function rU(t,e,r){rB(t.x,e.x,r.x),rB(t.y,e.y,r.y)}function rN(t,e,r){return{min:void 0!==e?t.min+e:void 0,max:void 0!==r?t.max+r-(t.max-t.min):void 0}}function rZ(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,n]=[n,r]),{min:r,max:n}}function rz(t,e,r){return{min:rW(t,e),max:rW(t,r)}}function rW(t,e){return"number"==typeof t?t:t[e]||0}let r$=()=>({translate:0,scale:1,origin:0,originPoint:0}),rH=()=>({x:r$(),y:r$()}),rY=()=>({min:0,max:0}),rX=()=>({x:rY(),y:rY()});function rK(t){return[t("x"),t("y")]}function rG({top:t,left:e,right:r,bottom:n}){return{x:{min:e,max:r},y:{min:t,max:n}}}function rq(t){return void 0===t||1===t}function rJ({scale:t,scaleX:e,scaleY:r}){return!rq(t)||!rq(e)||!rq(r)}function rQ(t){return rJ(t)||r0(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function r0(t){var e,r;return(e=t.x)&&"0%"!==e||(r=t.y)&&"0%"!==r}function r1(t,e,r,n,i){return void 0!==i&&(t=n+i*(t-n)),n+r*(t-n)+e}function r2(t,e=0,r=1,n,i){t.min=r1(t.min,e,r,n,i),t.max=r1(t.max,e,r,n,i)}function r5(t,{x:e,y:r}){r2(t.x,e.translate,e.scale,e.originPoint),r2(t.y,r.translate,r.scale,r.originPoint)}function r3(t,e){t.min=t.min+e,t.max=t.max+e}function r9(t,e,r,n,i=.5){let o=eC(t.min,t.max,i);r2(t,e,r,o,n)}function r4(t,e){r9(t.x,e.x,e.scaleX,e.scale,e.originX),r9(t.y,e.y,e.scaleY,e.scale,e.originY)}function r6(t,e){return rG(function(t,e){if(!e)return t;let r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let r7=({current:t})=>t?t.ownerDocument.defaultView:null,r8=new WeakMap;class nt{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=rX(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let{dragSnapToOrigin:n}=this.getProps();this.panSession=new rO(t,{onSessionStart:t=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(rM(t).point)},onStart:(t,e)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===r||"y"===r?A[r]?null:(A[r]=!0,()=>{A[r]=!1}):A.x||A.y?null:(A.x=A.y=!0,()=>{A.x=A.y=!1}),!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),rK(t=>{let e=this.getAxisMotionValue(t).get()||0;if(tN.test(e)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[t];if(n){let t=rR(n);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),i&&G.postRender(()=>i(t,e)),tc(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:s}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t,e=10){let r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>rK(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:n,contextWindow:r7(this.visualElement)})}stop(t,e){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:n}=e;this.startAnimation(n);let{onDragEnd:i}=this.getProps();i&&G.postRender(()=>i(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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,r){let{drag:n}=this.getProps();if(!r||!ne(t,n,this.currentDirection))return;let i=this.getAxisMotionValue(t),o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:r},n){return void 0!==e&&t<e?t=n?eC(e,t,n.min):Math.max(t,e):void 0!==r&&t>r&&(t=n?eC(r,t,n.max):Math.min(t,r)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,i=this.constraints;e&&rV(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,{top:e,left:r,bottom:n,right:i}){return{x:rN(t.x,r,i),y:rN(t.y,e,n)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:rz(t,"left","right"),y:rz(t,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&rK(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let r={};return void 0!==e.min&&(r.min=e.min-t.min),void 0!==e.max&&(r.max=e.max-t.min),r}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!rV(e))return!1;let n=e.current;N(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(t,e,r){let n=r6(t,r),{scroll:i}=e;return i&&(r3(n.x,i.offset.x),r3(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),s={x:rZ((t=i.layout.layoutBox).x,o.x),y:rZ(t.y,o.y)};if(r){let t=r(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=rG(t))}return s}startAnimation(t){let{drag:e,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(rK(s=>{if(!ne(s,e,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:r?t[s]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let r=this.getAxisMotionValue(t);return tc(this.visualElement,t),r.start(rh(t,r,0,e,this.visualElement,!1))}stopAnimation(){rK(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rK(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()}`,r=this.visualElement.getProps();return r[e]||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rK(e=>{let{drag:r}=this.getProps();if(!ne(e,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(e);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[e];i.set(t[e]-eC(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:r}=this.visualElement;if(!rV(e)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};rK(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let r=e.get();n[t]=function(t,e){let r=.5,n=rR(t),i=rR(e);return i>n?r=E(e.min,e.max-n,t.min):n>i&&(r=E(t.min,t.max-i,e.min)),tj(0,1,r)}({min:r,max:r},this.constraints[t])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rK(e=>{if(!ne(e,t,null))return;let r=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];r.set(eC(i,o,n[e]))})}addListeners(){if(!this.visualElement.current)return;r8.set(this.visualElement,this);let t=rT(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:r=!0}=this.getProps();e&&r&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();rV(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",e);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),G.read(e);let i=rE(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(rK(e=>{let r=this.getAxisMotionValue(e);r&&(this.originPoint[e]+=t[e].translate,r.set(r.get()+t[e].translate))}),this.visualElement.render())});return()=>{i(),t(),n(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function ne(t,e,r){return(!0===e||e===t)&&(null===r||r===t)}class nr extends rx{constructor(t){super(t),this.removeGroupControls=N,this.removeListeners=N,this.controls=new nt(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||N}unmount(){this.removeGroupControls(),this.removeListeners()}}let nn=t=>(e,r)=>{t&&G.postRender(()=>t(e,r))};
1class ni extends rx{constructor(){super(...arguments),this.removePointerDownListener=N}onPointerDown(t){this.session=new rO(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:r7(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:nn(t),onStart:nn(e),onMove:r,onEnd:(t,e)=>{delete this.session,n&&G.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=rT(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 no,ns,na,nl=r(57437),nu=r(2265),nc=r(49637),nh=r(58881);let nd=(0,nu.createContext)({}),nf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function np(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let nm={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!tZ.test(t))return t;t=parseFloat(t)}let r=np(t,e.target.x),n=np(t,e.target.y);return`${r}% ${n}%`}},nv={},{schedule:ny,cancel:ng}=K(queueMicrotask,!1);class nb extends nu.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=t;Object.assign(nv,nw),i&&(e.group&&e.group.add(i),r&&r.register&&n&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:r,drag:n,isPresent:i}=this.props,o=r.projection;return o&&(o.isPresent=i,n||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===i||(i?o.promote():o.relegate()||G.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ny.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r}=this.props,{projection:n}=t;n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nx(t){let[e,r]=(0,nc.oO)(),n=(0,nu.useContext)(nh.p);return(0,nl.jsx)(nb,{...t,layoutGroup:n,switchLayoutGroup:(0,nu.useContext)(nd),isPresent:e,safeToRemove:r})}let nw={borderRadius:{...nm,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nm,borderTopRightRadius:nm,borderBottomLeftRadius:nm,borderBottomRightRadius:nm,boxShadow:{correct:(t,{treeScale:e,projectionDelta:r})=>{let n=t2.parse(t);if(n.length>5)return t;let i=t2.createTransformer(t),o="number"!=typeof n[0]?1:0,s=r.x.scale*e.x,a=r.y.scale*e.y;n[0+o]/=s,n[1+o]/=a;let l=eC(s,a,.5);return"number"==typeof n[2+o]&&(n[2+o]/=l),"number"==typeof n[3+o]&&(n[3+o]/=l),i(n)}}},nP=(t,e)=>t.depth-e.depth;class nS{constructor(){this.children=[],this.isDirty=!1}add(t){tr(this.children,t),this.isDirty=!0}remove(t){tn(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(nP),this.isDirty=!1,this.children.forEach(t)}}function nE(t){let e=tu(t)?t.get():t;return $(e)?e.toValue():e}let nM=["TopLeft","TopRight","BottomLeft","BottomRight"],nj=nM.length,nT=t=>"string"==typeof t?parseFloat(t):t,nA=t=>"number"==typeof t||tZ.test(t);function nO(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nC=nk(0,.5,tS),n_=nk(.5,.95,N);function nk(t,e,r){return n=>n<t?0:n>e?1:r(E(t,e,n))}function nD(t,e){t.min=e.min,t.max=e.max}function nV(t,e){nD(t.x,e.x),nD(t.y,e.y)}function nR(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function nL(t,e,r,n,i){return t-=e,t=n+1/r*(t-n),void 0!==i&&(t=n+1/i*(t-n)),t}function nI(t,e,[r,n,i],o,s){!function(t,e=0,r=1,n=.5,i,o=t,s=t){if(tN.test(e)&&(e=parseFloat(e),e=eC(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=eC(o.min,o.max,n);t===o&&(a-=e),t.min=nL(t.min,e,r,a,i),t.max=nL(t.max,e,r,a,i)}(t,e[r],e[n],e[i],e.scale,o,s)}let nF=["x","scaleX","originX"],nB=["y","scaleY","originY"];function nU(t,e,r,n){nI(t.x,e,nF,r?r.x:void 0,n?n.x:void 0),nI(t.y,e,nB,r?r.y:void 0,n?n.y:void 0)}function nN(t){return 0===t.translate&&1===t.scale}function nZ(t){return nN(t.x)&&nN(t.y)}function nz(t,e){return t.min===e.min&&t.max===e.max}function nW(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function n$(t,e){return nW(t.x,e.x)&&nW(t.y,e.y)}function nH(t){return rR(t.x)/rR(t.y)}function nY(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class nX{constructor(){this.members=[]}add(t){tr(this.members,t),t.scheduleRender()}remove(t){if(tn(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)}
1}relegate(t){let e;let r=this.members.findIndex(e=>t===e);if(0===r)return!1;for(let t=r;t>=0;t--){let r=this.members[t];if(!1!==r.isPresent){e=r;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,e&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:r}=t;e.onExitComplete&&e.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let nK={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},nG="undefined"!=typeof window&&void 0!==window.MotionDebug,nq=["","X","Y","Z"],nJ={visibility:"hidden"},nQ=0;function n0(t,e,r,n){let{latestValues:i}=e;i[t]&&(r[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function n1({attachResizeListener:t,defaultParent:e,measureScroll:r,checkIsScrollRoot:n,resetTransform:i}){return class{constructor(t={},r=null==e?void 0:e()){this.id=nQ++,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,nG&&(nK.totalNodes=nK.resolvedTargetDeltas=nK.recalculatedProjection=0),this.nodes.forEach(n3),this.nodes.forEach(ie),this.nodes.forEach(ir),this.nodes.forEach(n9),nG&&window.MotionDebug.record(nK)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new nS)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new ti),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let r=this.eventHandlers.get(t);r&&r.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:n,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||n)&&(this.isLayoutDirty=!0),t){let r;let n=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(t,e){let r=te.now(),n=({timestamp:e})=>{let i=e-r;i>=250&&(q(n),t(i-250))};return G.read(n,!0),()=>q(n)}(n,0),nf.hasAnimatedSinceResize&&(nf.hasAnimatedSinceResize=!1,this.nodes.forEach(it))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&o&&(n||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||iu,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!n$(this.targetLayout,n)||r,u=!e&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...y(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||it(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n})}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,q(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(ii),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:r}=e.options;if(!r)return;let n=r.props[td];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",G,!(t||r))}let{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&t(i)}(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:r}=this.options;if(void 0===e&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(n6);return}this.isUpdating||this.nodes.forEach(n7),this.isUpdating=!1,this.nodes.forEach(n8),this.nodes.forEach(n2),this.nodes.forEach(n5),this.clearAllSnapshots();let t=te.now();J.delta=tj(0,1e3/60,t-J.timestamp),J.timestamp=t,J.isProcessing=!0,Q.update.process(J),Q.preRender.process(J),Q.render.process(J),J.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,ny.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(n4),this.sharedNodes.forEach(io)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,G.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){G.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rX(),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=n(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!i)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!nZ(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,o=n!==this.prevTransformTemplateValue;t&&(e||rQ(this.latestValues)||o)&&(i(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let r=this.measurePageBox(),n=this.removeElementScroll(r);return t&&(n=this.removeTransform(n)),id((e=n).x),id(e.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return rX();let r=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(im))){let{scroll:t}=this.root;t&&(r3(r.x,t.offset.x),r3(r.y,t.offset.y))}return r}removeElementScroll(t){var e;let r=rX();if(nV(r,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return r;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:i,options:o}=n;n!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&nV(r,t),r3(r.x,i.offset.x),r3(r.y,i.offset.y))}return r}applyTransform(t,e=!1){let r=rX();nV(r,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&r4(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),rQ(n.latestValues)&&r4(r,n.latestValues)}return rQ(this.latestValues)&&r4(r,this.latestValues),r}removeTransform(t){let e=rX();nV(e,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];if(!r.instance||!rQ(r.latestValues))continue;rJ(r.latestValues)&&r.updateSnapshot();let n=rX();nV(n,r.measurePageBox()),nU(e,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return rQ(this.latestValues)&&nU(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!==J.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,r,n,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(t||s&&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=J.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rX(),this.relativeTargetOrigin=rX(),rU(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),nV(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rX(),this.targetWithTransforms=rX()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,n=this.relativeTarget,i=this.relativeParent.target,rF(r.x,n.x,i.x),rF(r.y,n.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):nV(this.target,this.layout.layoutBox),r5(this.target,this.targetDelta)):nV(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=rX(),this.relativeTargetOrigin=rX(),rU(this.relativeTargetOrigin,this.target,t.target),nV(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}nG&&nK.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rJ(this.parent.latestValues)||r0(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),r=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===J.timestamp&&(n=!1),n)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;nV(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(t,e,r,n=!1){let i,o;let s=r.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){o=(i=r[a]).projectionDelta;let{visualElement:s}=i.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&r4(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,r5(t,o)),n&&rQ(i.latestValues)&&r4(t,i.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,r),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=rX());let{target:l}=e;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(nR(this.prevProjectionDelta.x,this.projectionDelta.x),nR(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rI(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&nY(this.projectionDelta.x,this.prevProjectionDelta.x)&&nY(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),nG&&nK.recalculatedProjection++}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=rH(),this.projectionDelta=rH(),this.projectionDeltaWithTransform=rH()}setAnimationOrigin(t,e=!1){let r;let n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},s=rH();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=rX(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(il));this.animationProgress=0,this.mixTargetDelta=e=>{let n=e/1e3;if(is(s.x,t.x,n),is(s.y,t.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p;rU(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,ia(f.x,p.x,a.x,n),ia(f.y,p.y,a.y,n),r&&(u=this.relativeTarget,d=r,nz(u.x,d.x)&&nz(u.y,d.y))&&(this.isProjectionDirty=!1),r||(r=rX()),nV(r,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,r,n,i,o){i?(t.opacity=eC(0,void 0!==r.opacity?r.opacity:1,nC(n)),t.opacityExit=eC(void 0!==e.opacity?e.opacity:1,0,n_(n))):o&&(t.opacity=eC(void 0!==e.opacity?e.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let i=0;i<nj;i++){let o=`border${nM[i]}Radius`,s=nO(e,o),a=nO(r,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||nA(s)===nA(a)?(t[o]=Math.max(eC(nT(s),nT(a),n),0),(tN.test(a)||tN.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||r.rotate)&&(t.rotate=eC(e.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,n,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(q(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=G.update(()=>{nf.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,r){let n=tu(0)?0:tl(0);return n.start(rh("",n,1e3,r)),n.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{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:r,layout:n,latestValues:i}=t;if(e&&r&&n){if(this!==t&&this.layout&&n&&ip(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||rX();let e=rR(this.layout.layoutBox.x);r.x.min=t.target.x.min,r.x.max=r.x.min+e;let n=rR(this.layout.layoutBox.y);r.y.min=t.target.y.min,r.y.max=r.y.min+n}nV(e,r),r4(e,i),rI(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new nX),this.sharedNodes.get(t).add(e);let r=e.options.initialPromotionConfig;e.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.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:r}={}){let n=this.getStack();n&&n.promote(this,r),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}
1resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:r}=t;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(e=!0),!e)return;let n={};r.z&&n0("z",t,n,this.animationValues);for(let e=0;e<nq.length;e++)n0(`rotate${nq[e]}`,t,n,this.animationValues),n0(`skew${nq[e]}`,t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}getProjectionStyles(t){var e,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return nJ;let n={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=nE(null==t?void 0:t.pointerEvents)||"",n.transform=i?i(this.latestValues,""):"none",n;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=nE(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!rQ(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),n.transform=function(t,e,r){let n="",i=t.x.translate/e.x,o=t.y.translate/e.y,s=(null==r?void 0:r.z)||0;if((i||o||s)&&(n=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==e.x||1!==e.y)&&(n+=`scale(${1/e.x}, ${1/e.y}) `),r){let{transformPerspective:t,rotate:e,rotateX:i,rotateY:o,skewX:s,skewY:a}=r;t&&(n=`perspective(${t}px) ${n}`),e&&(n+=`rotate(${e}deg) `),i&&(n+=`rotateX(${i}deg) `),o&&(n+=`rotateY(${o}deg) `),s&&(n+=`skewX(${s}deg) `),a&&(n+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+=`scale(${a}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,s),i&&(n.transform=i(s,n.transform));let{x:a,y:l}=this.projectionDelta;for(let t in n.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?n.opacity=o===this?null!==(r=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:n.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,nv){if(void 0===s[t])continue;let{correct:e,applyTo:r}=nv[t],i="none"===n.transform?s[t]:e(s[t],o);if(r){let t=r.length;for(let e=0;e<t;e++)n[r[e]]=i}else n[t]=i}return this.options.layoutId&&(n.pointerEvents=o===this?nE(null==t?void 0:t.pointerEvents)||"":"none"),n}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(n6),this.root.sharedNodes.clear()}}}function n2(t){t.updateLayout()}function n5(t){var e;let r=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:i}=t.options,o=r.source!==t.layout.source;"size"===i?rK(t=>{let n=o?r.measuredBox[t]:r.layoutBox[t],i=rR(n);n.min=e[t].min,n.max=n.min+i}):ip(i,r.layoutBox,e)&&rK(n=>{let i=o?r.measuredBox[n]:r.layoutBox[n],s=rR(e[n]);i.max=i.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+s)});let s=rH();rI(s,e,r.layoutBox);let a=rH();o?rI(a,t.applyTransform(n,!0),r.measuredBox):rI(a,e,r.layoutBox);let l=!nZ(s),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let s=rX();rU(s,r.layoutBox,i.layoutBox);let a=rX();rU(a,e,o.layoutBox),n$(s,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:r,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function n3(t){nG&&nK.totalNodes++,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 n9(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function n4(t){t.clearSnapshot()}function n6(t){t.clearMeasurements()}function n7(t){t.isLayoutDirty=!1}function n8(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function it(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function ie(t){t.resolveTargetDelta()}function ir(t){t.calcProjection()}
1function ii(t){t.resetSkewAndRotation()}function io(t){t.removeLeadSnapshot()}function is(t,e,r){t.translate=eC(e.translate,0,r),t.scale=eC(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function ia(t,e,r,n){t.min=eC(e.min,r.min,n),t.max=eC(e.max,r.max,n)}function il(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iu={duration:.45,ease:[.4,0,.1,1]},ic=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),ih=ic("applewebkit/")&&!ic("chrome/")?Math.round:N;function id(t){t.min=ih(t.min),t.max=ih(t.max)}function ip(t,e,r){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(nH(e)-nH(r)))}function im(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}let iv=n1({attachResizeListener:(t,e)=>rE(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iy={current:void 0},ig=n1({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iy.current){let t=new iv({});t.mount(window),t.setOptions({layoutScroll:!0}),iy.current=t}return iy.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function ib(t,e,r){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&G.postRender(()=>i(e,rM(e)))}class ix extends rx{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,r={}){let[n,i,o]=O(t,r),s=C(t=>{let{target:r}=t,n=e(t);if("function"!=typeof n||!r)return;let o=C(t=>{n(t),r.removeEventListener("pointerleave",o)});r.addEventListener("pointerleave",o,i)});return n.forEach(t=>{t.addEventListener("pointerenter",s,i)}),o}(t,t=>(ib(this.node,t,"Start"),t=>ib(this.node,t,"End"))))}unmount(){}}class iw extends rx{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=eB(rE(this.node.current,"focus",()=>this.onFocus()),rE(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function iP(t,e,r){let{props:n}=t;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&G.postRender(()=>i(e,rM(e)))}class iS extends rx{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e,r={}){let[n,i,o]=O(t,r),s=t=>{let n=t.currentTarget;if(!F(t)||V.has(n))return;V.add(n);let o=e(t),s=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),F(t)&&V.has(n)&&(V.delete(n),"function"==typeof o&&o(t,{success:e}))},a=t=>{s(t,r.useGlobalTarget||_(n,t.target))},l=t=>{s(t,!1)};window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",l,i)};return n.forEach(t=>{D.has(t.tagName)||-1!==t.tabIndex||null!==t.getAttribute("tabindex")||(t.tabIndex=0),(r.useGlobalTarget?window:t).addEventListener("pointerdown",s,i),t.addEventListener("focus",t=>I(t,i),i)}),o}(t,t=>(iP(this.node,t,"Start"),(t,{success:e})=>iP(this.node,t,e?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let iE=new WeakMap,iM=new WeakMap,ij=t=>{let e=iE.get(t.target);e&&e(t)},iT=t=>{t.forEach(ij)},iA={some:0,all:1};class iO extends rx{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:r,amount:n="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:iA[n]};return function(t,e,r){let n=function({root:t,...e}){let r=t||document;iM.has(r)||iM.set(r,{});let n=iM.get(r),i=JSON.stringify(e);return n[i]||(n[i]=new IntersectionObserver(iT,{root:t,...e})),n[i]}(e);return iE.set(t,r),n.observe(t),()=>{iE.delete(t),n.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,i&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=e?r:n;o&&o(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 r=>t[r]!==e[r]}(t,e))&&this.startObserver()}unmount(){}}let iC=(0,nu.createContext)({strict:!1});var i_=r(45750);let ik=(0,nu.createContext)({});function iD(t){return i(t.animate)||d.some(e=>a(t[e]))}function iV(t){return!!(iD(t)||t.variants)}function iR(t){return Array.isArray(t)?t.join(" "):t}var iL=r(44563);let iI={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"]},iF={};for(let t in iI)iF[t]={isEnabled:e=>iI[t].some(t=>!!e[t])};let iB=Symbol.for("motionComponentSymbol");
1var iU=r(64252),iN=r(11534);let iZ=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function iz(t){if("string"!=typeof t||t.includes("-"));else if(iZ.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var iW=r(53576);let i$=t=>(e,r)=>{let n=(0,nu.useContext)(ik),o=(0,nu.useContext)(iU.O),s=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onUpdate:r},n,o,s){let a={latestValues:function(t,e,r,n){let o={},s=n(t,{});for(let t in s)o[t]=nE(s[t]);let{initial:a,animate:l}=t,c=iD(t),h=iV(t);e&&h&&!c&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let d=!!r&&!1===r.initial,f=(d=d||!1===a)?l:a;if(f&&"boolean"!=typeof f&&!i(f)){let e=Array.isArray(f)?f:[f];for(let r=0;r<e.length;r++){let n=u(t,e[r]);if(n){let{transitionEnd:t,transition:e,...r}=n;for(let t in r){let e=r[t];if(Array.isArray(e)){let t=d?e.length-1:0;e=e[t]}null!==e&&(o[t]=e)}for(let e in t)o[e]=t[e]}}}return o}(n,o,s,t),renderState:e()};return r&&(a.onMount=t=>r({props:n,current:t,...a}),a.onUpdate=t=>r(t)),a})(t,e,n,o);return r?s():(0,iW.h)(s)},iH=(t,e)=>e&&"number"==typeof t?e.transform(t):t,iY={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},iX=Z.length;function iK(t,e,r){let{style:n,vars:i,transformOrigin:o}=t,s=!1,a=!1;for(let t in e){let r=e[t];if(z.has(t)){s=!0;continue}if(ey(t)){i[t]=r;continue}{let e=iH(r,t7[t]);t.startsWith("origin")?(a=!0,o[t]=e):n[t]=e}}if(!e.transform&&(s||r?n.transform=function(t,e,r){let n="",i=!0;for(let o=0;o<iX;o++){let s=Z[o],a=t[s];if(void 0===a)continue;let l=!0;if(!(l="number"==typeof a?a===(s.startsWith("scale")?1:0):0===parseFloat(a))||r){let t=iH(a,t7[s]);if(!l){i=!1;let e=iY[s]||s;n+=`${e}(${t}) `}r&&(e[s]=t)}}return n=n.trim(),r?n=r(e,i?"":n):i&&(n="none"),n}(e,t.transform,r):n.transform&&(n.transform="none")),a){let{originX:t="50%",originY:e="50%",originZ:r=0}=o;n.transformOrigin=`${t} ${e} ${r}`}}let iG={offset:"stroke-dashoffset",array:"stroke-dasharray"},iq={offset:"strokeDashoffset",array:"strokeDasharray"};function iJ(t,e,r){return"string"==typeof t?t:tZ.transform(e+r*t)}function iQ(t,{attrX:e,attrY:r,attrScale:n,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u},c,h){if(iK(t,u,h),c){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:f,dimensions:p}=t;d.transform&&(p&&(f.transform=d.transform),delete d.transform),p&&(void 0!==i||void 0!==o||f.transform)&&(f.transformOrigin=function(t,e,r){let n=iJ(e,t.x,t.width),i=iJ(r,t.y,t.height);return`${n} ${i}`}(p,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==r&&(d.y=r),void 0!==n&&(d.scale=n),void 0!==s&&function(t,e,r=1,n=0,i=!0){t.pathLength=1;let o=i?iG:iq;t[o.offset]=tZ.transform(-n);let s=tZ.transform(e),a=tZ.transform(r);t[o.array]=`${s} ${a}`}(d,s,a,l,!1)}let i0=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),i1=()=>({...i0(),attrs:{}}),i2=t=>"string"==typeof t&&"svg"===t.toLowerCase();function i5(t,{style:e,vars:r},n,i){for(let o in Object.assign(t.style,e,i&&i.getProjectionStyles(n)),r)t.style.setProperty(o,r[o])}let i3=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 i9(t,e,r,n){for(let r in i5(t,e,void 0,n),e.attrs)t.setAttribute(i3.has(r)?r:th(r),e.attrs[r])}function i4(t,{layout:e,layoutId:r}){return z.has(t)||t.startsWith("origin")||(e||void 0!==r)&&(!!nv[t]||"opacity"===t)}function i6(t,e,r){var n;let{style:i}=t,o={};for(let s in i)(tu(i[s])||e.style&&tu(e.style[s])||i4(s,t)||(null===(n=null==r?void 0:r.getValue(s))||void 0===n?void 0:n.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function i7(t,e,r){let n=i6(t,e,r);for(let r in t)(tu(t[r])||tu(e[r]))&&(n[-1!==Z.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return n}let i8=["x","y","width","height","cx","cy","r"],ot={useVisualState:i$({scrapeMotionValuesFromProps:i7,createRenderState:i1,onUpdate:({props:t,prevProps:e,current:r,render
1State:n,latestValues:i})=>{if(!r)return;let o=!!t.drag;if(!o){for(let t in i)if(z.has(t)){o=!0;break}}if(!o)return;let s=!e;if(e)for(let r=0;r<i8.length;r++){let n=i8[r];t[n]!==e[n]&&(s=!0)}s&&G.read(()=>{!function(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}}}(r,n),G.render(()=>{iQ(n,i,i2(r.tagName),t.transformTemplate),i9(r,n)})})}})},oe={useVisualState:i$({scrapeMotionValuesFromProps:i6,createRenderState:i0})};function or(t,e,r){for(let n in e)tu(e[n])||i4(n,r)||(t[n]=e[n])}let on=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 oi(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||on.has(t)}let oo=t=>!oi(t);try{(no=require("@emotion/is-prop-valid").default)&&(oo=t=>t.startsWith("on")?!oi(t):no(t))}catch(t){}let os={current:null},oa={current:!1},ol=[...eS,tY,t2],ou=t=>ol.find(eP(t)),oc=new WeakMap,oh=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class od{scrapeMotionValuesFromProps(t,e,r){return{}}constructor({parent:t,props:e,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ep,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=te.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,G.render(this.render,!1,!0))};let{latestValues:a,renderState:l,onUpdate:u}=o;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=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=iD(e),this.isVariantNode=iV(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:c,...h}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in h){let e=h[t];void 0!==a[t]&&tu(e)&&e.set(a[t],!1)}}mount(t){this.current=t,oc.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),oa.current||function(){if(oa.current=!0,iL.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>os.current=t.matches;t.addListener(e),e()}else os.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||os.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in oc.delete(this.current),this.projection&&this.projection.unmount(),q(this.notifyUpdate),q(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 r;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=z.has(t),i=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&G.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),o=e.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{i(),o(),r&&r(),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 iF){let e=iF[t];if(!e)continue;let{isEnabled:r,Feature:n}=e;if(!this.features[t]&&n&&r(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];
1e.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):rX()}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<oh.length;e++){let r=oh[e];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=t["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(t,e,r){for(let n in e){let i=e[n],o=r[n];if(tu(i))t.addValue(n,i);else if(tu(o))t.addValue(n,tl(i,{owner:t}));else if(o!==i){if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(i):e.hasAnimated||e.set(i)}else{let e=t.getStaticValue(n);t.addValue(n,tl(void 0!==e?e:i,{owner:t}))}}}for(let n in r)void 0===e[n]&&t.removeValue(n);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 r=this.values.get(t);e!==r&&(r&&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 r=this.values.get(t);return void 0===r&&void 0!==e&&(r=tl(null===e?void 0:e,{owner:this}),this.addValue(t,r)),r}readValue(t,e){var r;let n=void 0===this.latestValues[t]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,t))&&void 0!==r?r:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=n&&("string"==typeof n&&(em(n)||tM(n))?n=parseFloat(n):!ou(n)&&t2.test(e)&&(n=ee(t,e)),this.setBaseTarget(t,tu(n)?n.get():n)),tu(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let r;let{initial:n}=this.props;if("string"==typeof n||"object"==typeof n){let i=u(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);i&&(r=i[t])}if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||tu(i)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new ti),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class of extends od{constructor(){super(...arguments),this.KeyframeResolver=eM}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:r}){delete e[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tu(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}}class op extends of{constructor(){super(...arguments),this.type="html",this.renderInstance=i5}readValueFromInstance(t,e){if(z.has(e)){let t=et(e);return t&&t.default||0}{let r=window.getComputedStyle(t),n=(ey(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,{transformPagePoint:e}){return r6(t,e)}build(t,e,r){iK(t,e,r.transformTemplate)}scrapeMotionValuesFromProps(t,e,r){return i6(t,e,r)}}class om extends of{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rX}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(z.has(e)){let t=et(e);return t&&t.default||0}return e=i3.has(e)?e:th(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,r){return i7(t,e,r)}build(t,e,r){iQ(t,e,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,r,n){i9(t,e,r,n)}mount(t){this.isSVGTag=i2(t.tagName),super.mount(t)}}let ov=function(t){if("undefined"==typeof Proxy)return t;let e=new Map;return new Proxy((...e)=>t(...e),{get:(r,n)=>"create"===n?t:(e.has(n)||e.set(n,t(n)),e.get(n))})}((ns={animation:{Feature:rw},exit:{Feature:rS},inView:{Feature:iO},tap:{Feature:iS},focus:{Feature:iw},hover:{Feature:ix},pan:{Feature:ni},drag:{Feature:nr,ProjectionNode:ig,MeasureLayout:nx},layout:{ProjectionNode:ig,MeasureLayout:nx}},na=(t,e)=>iz(t)?new om(e):new op(e,{allowProjection:t!==nu.Fragment}),function(t,{forwardMotionProps:e}={forwardMotionProps:!1}){return function(t){var e,r;let{preloadedFeatures:n,createVisualElement:i,useRender:o,useVisualState:s,Component:l}=t;function u(t,e){var r;let n;let u={...(0,nu.useContext)(i_._),...t,layoutId:function(t){let{layoutId:e}=t,r=(0,nu.useContext)(nh.p).id;return r&&void 0!==e?r+"-"+e:e}(t)},{isStatic:c}=u,h=function(t){let{initial:e,animate:r}=function(t,e){if(iD(t)){let{initial:e,animate:r}=t;return{initial:!1===e||a(e)?e:void 0,animate:a(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,(0,nu.useContext)(ik));return(0,nu.useMemo)(()=>({initial:e,animate:r}),[iR(e),iR(r)])}(t),d=s(t,c);if(!c&&iL.j){(0,nu.useContext)(iC).strict;let t=function(t){let{drag:e,layout:r}=iF;if(!e&&!r)return{};let n={...e,...r};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==r?void 0:r.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}
1(u);n=t.MeasureLayout,h.visualElement=function(t,e,r,n,i){var o,s;let{visualElement:a}=(0,nu.useContext)(ik),l=(0,nu.useContext)(iC),u=(0,nu.useContext)(iU.O),c=(0,nu.useContext)(i_._).reducedMotion,h=(0,nu.useRef)(null);n=n||l.renderer,!h.current&&n&&(h.current=n(t,{visualState:e,parent:a,props:r,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));let d=h.current,f=(0,nu.useContext)(nd);d&&!d.projection&&i&&("html"===d.type||"svg"===d.type)&&function(t,e,r,n){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new r(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:i,layout:o,alwaysMeasureLayout:!!s||a&&rV(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(h.current,r,i,f);let p=(0,nu.useRef)(!1);(0,nu.useInsertionEffect)(()=>{d&&p.current&&d.update(r,u)});let m=r[td],v=(0,nu.useRef)(!!m&&!(null===(o=window.MotionHandoffIsComplete)||void 0===o?void 0:o.call(window,m))&&(null===(s=window.MotionHasOptimisedAnimation)||void 0===s?void 0:s.call(window,m)));return(0,iN.L)(()=>{d&&(p.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),ny.render(d.render),v.current&&d.animationState&&d.animationState.animateChanges())}),(0,nu.useEffect)(()=>{d&&(!v.current&&d.animationState&&d.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,m)}),v.current=!1))}),d}(l,d,u,i,t.ProjectionNode)}return(0,nl.jsxs)(ik.Provider,{value:h,children:[n&&h.visualElement?(0,nl.jsx)(n,{visualElement:h.visualElement,...u}):null,o(l,t,(r=h.visualElement,(0,nu.useCallback)(t=>{t&&d.onMount&&d.onMount(t),r&&(t?r.mount(t):r.unmount()),e&&("function"==typeof e?e(t):rV(e)&&(e.current=t))},[r])),d,c,h.visualElement)]})}n&&function(t){for(let e in t)iF[e]={...iF[e],...t[e]}}(n),u.displayName="motion.".concat("string"==typeof l?l:"create(".concat(null!==(r=null!==(e=l.displayName)&&void 0!==e?e:l.name)&&void 0!==r?r:"",")"));let c=(0,nu.forwardRef)(u);return c[iB]=l,c}({...iz(t)?ot:oe,preloadedFeatures:ns,useRender:function(t=!1){return(e,r,n,{latestValues:i},o)=>{let s=(iz(e)?function(t,e,r,n){let i=(0,nu.useMemo)(()=>{let r=i1();return iQ(r,e,i2(n),t.transformTemplate),{...r.attrs,style:{...r.style}}},[e]);if(t.style){let e={};or(e,t.style,t),i.style={...e,...i.style}}return i}:function(t,e){let r={},n=function(t,e){let r=t.style||{},n={};return or(n,r,t),Object.assign(n,function({transformTemplate:t},e){return(0,nu.useMemo)(()=>{let r=i0();return iK(r,e,t),Object.assign({},r.vars,r.style)},[e])}(t,e)),n}(t,e);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=n,r})(r,i,o,e),a=function(t,e,r){let n={};for(let i in t)("values"!==i||"object"!=typeof t.values)&&(oo(i)||!0===r&&oi(i)||!e&&!oi(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}(r,"string"==typeof e,t),l=e!==nu.Fragment?{...a,...s,ref:n}:{},{children:u}=r,c=(0,nu.useMemo)(()=>tu(u)?u.get():u,[u]);return(0,nu.createElement)(e,{...l,children:c})}}(e),createVisualElement:na,Component:t})}))},44563:function(t,e,r){"use strict";r.d(e,{j:function(){return n}});let n="undefined"!=typeof window},53576:function(t,e,r){"use strict";r.d(e,{h:function(){return i}});var n=r(2265);function i(t){let e=(0,n.useRef)(null);return null===e.current&&(e.current=t()),e.current}},11534:function(t,e,r){"use strict";r.d(e,{L:function(){return i}});var n=r(2265);let i=r(44563).j?n.useLayoutEffect:n.useEffect}}]);
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.