(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[292],{54227:function(t,e,n){"use strict";n.d(e,{YF:function(){return d},x7:function(){return a}});var r=n(5050),i=n(83764),o=n(2265),s=n(54887);let a=t=>({name:"arrow",options:t,fn(e){let{element:n,padding:i}="function"==typeof t?t(e):t;if(n&&({}).hasOwnProperty.call(n,"current")){if(null!=n.current)return(0,r.x7)({element:n.current,padding:i}).fn(e)}else if(n)return(0,r.x7)({element:n,padding:i}).fn(e);return{}}});var u="undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function l(t,e){let n,r,i;if(t===e)return!0;if(typeof t!=typeof e)return!1;if("function"==typeof t&&t.toString()===e.toString())return!0;if(t&&e&&"object"==typeof t){if(Array.isArray(t)){if((n=t.length)!=e.length)return!1;for(r=n;0!=r--;)if(!l(t[r],e[r]))return!1;return!0}if((n=(i=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(e,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!t.$$typeof)&&!l(t[n],e[n]))return!1}return!0}return t!=t&&e!=e}function c(t){return"undefined"==typeof window?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function h(t,e){let n=c(t);return Math.round(e*n)/n}function f(t){let e=o.useRef(t);return u(()=>{e.current=t}),e}function d(t){void 0===t&&(t={});let{placement:e="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:d,floating:p}={},transform:m=!0,whileElementsMounted:v,open:g}=t,[y,b]=o.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[E,w]=o.useState(r);l(E,r)||w(r);let[_,x]=o.useState(null),[S,T]=o.useState(null),C=o.useCallback(t=>{t!=M.current&&(M.current=t,x(t))},[x]),P=o.useCallback(t=>{t!==N.current&&(N.current=t,T(t))},[T]),A=d||_,O=p||S,M=o.useRef(null),N=o.useRef(null),k=o.useRef(y),R=f(v),D=f(a),L=o.useCallback(()=>{if(!M.current||!N.current)return;let t={placement:e,strategy:n,middleware:E};D.current&&(t.platform=D.current),(0,i.oo)(M.current,N.current,t).then(t=>{let e={...t,isPositioned:!0};I.current&&!l(k.current,e)&&(k.current=e,s.flushSync(()=>{b(e)}))})},[E,e,n,D]);u(()=>{!1===g&&k.current.isPositioned&&(k.current.isPositioned=!1,b(t=>({...t,isPositioned:!1})))},[g]);let I=o.useRef(!1);u(()=>(I.current=!0,()=>{I.current=!1}),[]),u(()=>{if(A&&(M.current=A),O&&(N.current=O),A&&O){if(R.current)return R.current(A,O,L);L()}},[A,O,L,R]);let B=o.useMemo(()=>({reference:M,floating:N,setReference:C,setFloating:P}),[C,P]),F=o.useMemo(()=>({reference:A,floating:O}),[A,O]),V=o.useMemo(()=>{let t={position:n,left:0,top:0};if(!F.floating)return t;let e=h(F.floating,y.x),r=h(F.floating,y.y);return m?{...t,transform:"translate("+e+"px, "+r+"px)",...c(F.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:e,top:r}},[n,m,F.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:L,refs:B,elements:F,floatingStyles:V}),[y,L,B,F,V])}},2801:function(t,e,n){"use strict";n.d(e,{aV:function(){return tu},fC:function(){return ta},xz:function(){return tl}});var r=n(58442),i=n(2265),o=n.t(i,2);function s(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==t||t(r),!1===n||!r.defaultPrevented)return null==e?void 0:e(r)}}function a(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==t||t(r),!1===n||!r.defaultPrevented)return null==e?void 0:e(r)}}function u(...t){return e=>t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}function l(...t){return(0,i.useCallback)(u(...t),t)}let c=(0,i.forwardRef)((t,e)=>{let{children:n,...o}=t,s=i.Children.toArray(n),a=s.find(d);if(a){let t=a.props.children,n=s.map(e=>e!==a?e:i.Children.count(t)>1?i.Children.only(null):(0,i.isValidElement)(t)?t.props.children:null);return(0,i.createElement)(h,(0,r.Z)({},o,{ref:e}),(0,i.isValidElement)(t)?(0,i.cloneElement)(t,void 0,n):null)}return(0,i.createElement)(h,(0,r.Z)({},o,{ref:e}),n)});c.displayName="Slot";let h=(0,i.forwardRef)((t,e)=>{let{children:n,...r}=t;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(t,e){let n={...e};for(let r in e){let i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...t)=>{o(...t),i(...t)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}(r,n.props),ref:u(e,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});h.displayName="SlotClone";let f=({children:t})=>(0,i.createElement)(i.Fragment,null,t);function d(t){return(0,i.isValidElement)(t)&&t.type===f}function p(...t){return e=>t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}let m=(null==globalThis?void 0:globalThis.document)?i.useLayoutEffect:()=>{},v=o["useId".toString()]||(()=>void 0),g=0;function y(t){let[e,n]=i.useState(v());return m(()=>{t||n(t=>null!=t?t:String(g++))},[t]),t||(e?`radix-${e}`:"")}var b=n(54887);let E=(0,i.forwardRef)((t,e)=>{let{children:n,...o}=t,s=i.Children.toArray(n),a=s.find(x);if(a){let t=a.props.children,n=s.map(e=>e!==a?e:i.Children.count(t)>1?i.Children.only(null):(0,i.isValidElement)(t)?t.props.children:null);return(0,i.createElement)(w,(0,r.Z)({},o,{ref:e}),(0,i.isValidElement)(t)?(0,i.cloneElement)(t,void 0,n):null)}return(0,i.createElement)(w,(0,r.Z)({},o,{ref:e}),n)});E.displayName="Slot";let w=(0,i.forwardRef)((t,e)=>{let{children:n,...r}=t;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(t,e){let n={...e};for(let r in e){let i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...t)=>{o(...t),i(...t)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}(r,n.props),ref:p(e,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});w.displayName="SlotClone";let _=({children:t})=>(0,i.createElement)(i.Fragment,null,t);function x(t){return(0,i.isValidElement)(t)&&t.type===_}let S=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((t,e)=>{let n=(0,i.forwardRef)((t,n)=>{let{asChild:o,...s}=t,a=o?E:e;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(a,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function T(t){let e=(0,i.useRef)(t);return(0,i.useEffect)(()=>{e.current=t}),(0,i.useMemo)(()=>(...t)=>{var n;return null===(n=e.current)||void 0===n?void 0:n.call(e,...t)},[])}function C({prop:t,defaultProp:e,onChange:n=()=>{}}){let[r,o]=function({defaultProp:t,onChange:e}){let n=(0,i.useState)(t),[r]=n,o=(0,i.useRef)(r),s=T(e);return(0,i.useEffect)(()=>{o.current!==r&&(s(r),o.current=r)},[r,o,s]),n}({defaultProp:e,onChange:n}),s=void 0!==t,a=s?t:r,u=T(n);return[a,(0,i.useCallback)(e=>{if(s){let n="function"==typeof e?e(t):e;n!==t&&u(n)}else o(e)},[s,t,o,u])]}let P=(0,i.createContext)(void 0);function A(t){let e=(0,i.useContext)(P);return t||e||"ltr"}let O="rovingFocusGroup.onEntryFocus",M={bubbles:!1,cancelable:!0},N="RovingFocusGroup",[k,R,D]=function(t){let e=t+"CollectionProvider",[n,r]=function(t,e=[]){let n=[],r=()=>{let e=n.map(t=>(0,i.createContext)(t));return function(n){let r=(null==n?void 0:n[t])||e;return(0,i.useMemo)(()=>({[`__scope${t}`]:{...n,[t]:r}}),[n,r])}};return r.scopeName=t,[function(e,r){let o=(0,i.createContext)(r),s=n.length;function a(e){let{scope:n,children:r,...a}=e,u=(null==n?void 0:n[t][s])||o,l=(0,i.useMemo)(()=>a,Object.values(a));return(0,i.createElement)(u.Provider,{value:l},r)}return n=[...n,r],a.displayName=e+"Provider",[a,function(n,a){let u=(null==a?void 0:a[t][s])||o,l=(0,i.useContext)(u);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let n=()=>{let n=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let r=n.reduce((e,{useScope:n,scopeName:r})=>{let i=n(t)[`__scope${r}`];return{...e,...i}},{});return(0,i.useMemo)(()=>({[`__scope${e.scopeName}`]:r}),[r])}};return n.scopeName=e.scopeName,n}(r,...e)]}(e),[o,s]=n(e,{collectionRef:{current:null},itemMap:new Map}),a=t+"CollectionSlot",u=i.forwardRef((t,e)=>{let{scope:n,children:r}=t,o=l(e,s(a,n).collectionRef);return i.createElement(c,{ref:o},r)}),h=t+"CollectionItemSlot",f="data-radix-collection-item";return[{Provider:t=>{let{scope:e,children:n}=t,r=i.useRef(null),s=i.useRef(new Map).current;return i.createElement(o,{scope:e,itemMap:s,collectionRef:r},n)},Slot:u,ItemSlot:i.forwardRef((t,e)=>{let{scope:n,children:r,...o}=t,a=i.useRef(null),u=l(e,a),d=s(h,n);return i.useEffect(()=>(d.itemMap.set(a,{ref:a,...o}),()=>void d.itemMap.delete(a))),i.createElement(c,{[f]:"",ref:u},r)})},function(e){let n=s(t+"CollectionConsumer",e);return i.useCallback(()=>{let t=n.collectionRef.current;if(!t)return[];let e=Array.from(t.querySelectorAll(`[${f}]`));return Array.from(n.itemMap.values()).sort((t,n)=>e.indexOf(t.ref.current)-e.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}(N),[L,I]=function(t,e=[]){let n=[],r=()=>{let e=n.map(t=>(0,i.createContext)(t));return function(n){let r=(null==n?void 0:n[t])||e;return(0,i.useMemo)(()=>({[`__scope${t}`]:{...n,[t]:r}}),[n,r])}};return r.scopeName=t,[function(e,r){let o=(0,i.createContext)(r),s=n.length;function a(e){let{scope:n,children:r,...a}=e,u=(null==n?void 0:n[t][s])||o,l=(0,i.useMemo)(()=>a,Object.values(a));return(0,i.createElement)(u.Provider,{value:l},r)}return n=[...n,r],a.displayName=e+"Provider",[a,function(n,a){let u=(null==a?void 0:a[t][s])||o,l=(0,i.useContext)(u);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let n=()=>{let n=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let r=n.reduce((e,{useScope:n,scopeName:r})=>{let i=n(t)[`__scope${r}`];return{...e,...i}},{});return(0,i.useMemo)(()=>({[`__scope${e.scopeName}`]:r}),[r])}};return n.scopeName=e.scopeName,n}(r,...e)]}(N,[D]),[B,F]=L(N),V=(0,i.forwardRef)((t,e)=>(0,i.createElement)(k.Provider,{scope:t.__scopeRovingFocusGroup},(0,i.createElement)(k.Slot,{scope:t.__scopeRovingFocusGroup},(0,i.createElement)(j,(0,r.Z)({},t,{ref:e}))))),j=(0,i.forwardRef)((t,e)=>{let{__scopeRovingFocusGroup:n,orientation:o,loop:s=!1,dir:u,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:h,onEntryFocus:f,...d}=t,m=(0,i.useRef)(null),v=function(...t){return(0,i.useCallback)(p(...t),t)}(e,m),g=A(u),[y=null,b]=C({prop:l,defaultProp:c,onChange:h}),[E,w]=(0,i.useState)(!1),_=function(t){let e=(0,i.useRef)(t);return(0,i.useEffect)(()=>{e.current=t}),(0,i.useMemo)(()=>(...t)=>{var n;return null===(n=e.current)||void 0===n?void 0:n.call(e,...t)},[])}(f),x=R(n),T=(0,i.useRef)(!1),[P,N]=(0,i.useState)(0);return(0,i.useEffect)(()=>{let t=m.current;if(t)return t.addEventListener(O,_),()=>t.removeEventListener(O,_)},[_]),(0,i.createElement)(B,{scope:n,orientation:o,dir:g,loop:s,currentTabStopId:y,onItemFocus:(0,i.useCallback)(t=>b(t),[b]),onItemShiftTab:(0,i.useCallback)(()=>w(!0),[]),onFocusableItemAdd:(0,i.useCallback)(()=>N(t=>t+1),[]),onFocusableItemRemove:(0,i.useCallback)(()=>N(t=>t-1),[])},(0,i.createElement)(S.div,(0,r.Z)({tabIndex:E||0===P?-1:0,"data-orientation":o},d,{ref:v,style:{outline:"none",...t.style},onMouseDown:a(t.onMouseDown,()=>{T.current=!0}),onFocus:a(t.onFocus,t=>{let e=!T.current;if(t.target===t.currentTarget&&e&&!E){let e=new CustomEvent(O,M);if(t.currentTarget.dispatchEvent(e),!e.defaultPrevented){let t=x().filter(t=>t.focusable);U([t.find(t=>t.active),t.find(t=>t.id===y),...t].filter(Boolean).map(t=>t.ref.current))}}T.current=!1}),onBlur:a(t.onBlur,()=>w(!1))})))}),H=(0,i.forwardRef)((t,e)=>{let{__scopeRovingFocusGroup:n,focusable:o=!0,active:s=!1,tabStopId:u,...l}=t,c=y(),h=u||c,f=F("RovingFocusGroupItem",n),d=f.currentTabStopId===h,p=R(n),{onFocusableItemAdd:m,onFocusableItemRemove:v}=f;return(0,i.useEffect)(()=>{if(o)return m(),()=>v()},[o,m,v]),(0,i.createElement)(k.ItemSlot,{scope:n,id:h,focusable:o,active:s},(0,i.createElement)(S.span,(0,r.Z)({tabIndex:d?0:-1,"data-orientation":f.orientation},l,{ref:e,onMouseDown:a(t.onMouseDown,t=>{o?f.onItemFocus(h):t.preventDefault()}),onFocus:a(t.onFocus,()=>f.onItemFocus(h)),onKeyDown:a(t.onKeyDown,t=>{if("Tab"===t.key&&t.shiftKey){f.onItemShiftTab();return}if(t.target!==t.currentTarget)return;let e=function(t,e,n){var r;let i=(r=t.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===e&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===e&&["ArrowUp","ArrowDown"].includes(i)))return $[i]}(t,f.orientation,f.dir);if(void 0!==e){t.preventDefault();let i=p().filter(t=>t.focusable).map(t=>t.ref.current);if("last"===e)i.reverse();else if("prev"===e||"next"===e){var n,r;"prev"===e&&i.reverse();let o=i.indexOf(t.currentTarget);i=f.loop?(n=i,r=o+1,n.map((t,e)=>n[(r+e)%n.length])):i.slice(o+1)}setTimeout(()=>U(i))}})})))}),$={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function U(t){let e=document.activeElement;for(let n of t)if(n===e||(n.focus(),document.activeElement!==e))return}function G(...t){return e=>t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}let Z=(null==globalThis?void 0:globalThis.document)?i.useLayoutEffect:()=>{};function W(t){return(null==t?void 0:t.animationName)||"none"}let z=(0,i.forwardRef)((t,e)=>{let{children:n,...o}=t,s=i.Children.toArray(n),a=s.find(X);if(a){let t=a.props.children,n=s.map(e=>e!==a?e:i.Children.count(t)>1?i.Children.only(null):(0,i.isValidElement)(t)?t.props.children:null);return(0,i.createElement)(Y,(0,r.Z)({},o,{ref:e}),(0,i.isValidElement)(t)?(0,i.cloneElement)(t,void 0,n):null)}return(0,i.createElement)(Y,(0,r.Z)({},o,{ref:e}),n)});z.displayName="Slot";let Y=(0,i.forwardRef)((t,e)=>{let{children:n,...r}=t;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(t,e){let n={...e};for(let r in e){let i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...t)=>{o(...t),i(...t)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}(r,n.props),ref:G(e,n.ref)}):i.Children.count(n)>1?i.Children.only(null):null});Y.displayName="SlotClone";let q=({children:t})=>(0,i.createElement)(i.Fragment,null,t);function X(t){return(0,i.isValidElement)(t)&&t.type===q}let K=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((t,e)=>{let n=(0,i.forwardRef)((t,n)=>{let{asChild:o,...s}=t,a=o?z:e;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(a,(0,r.Z)({},s,{ref:n}))});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{}),J="Tabs",[Q,tt]=function(t,e=[]){let n=[],r=()=>{let e=n.map(t=>(0,i.createContext)(t));return function(n){let r=(null==n?void 0:n[t])||e;return(0,i.useMemo)(()=>({[`__scope${t}`]:{...n,[t]:r}}),[n,r])}};return r.scopeName=t,[function(e,r){let o=(0,i.createContext)(r),s=n.length;function a(e){let{scope:n,children:r,...a}=e,u=(null==n?void 0:n[t][s])||o,l=(0,i.useMemo)(()=>a,Object.values(a));return(0,i.createElement)(u.Provider,{value:l},r)}return n=[...n,r],a.displayName=e+"Provider",[a,function(n,a){let u=(null==a?void 0:a[t][s])||o,l=(0,i.useContext)(u);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let n=()=>{let n=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let r=n.reduce((e,{useScope:n,scopeName:r})=>{let i=n(t)[`__scope${r}`];return{...e,...i}},{});return(0,i.useMemo)(()=>({[`__scope${e.scopeName}`]:r}),[r])}};return n.scopeName=e.scopeName,n}(r,...e)]}(J,[I]),te=I(),[tn,tr]=Q(J),ti=(0,i.forwardRef)((t,e)=>{let{__scopeTabs:n,value:o,onValueChange:s,defaultValue:a,orientation:u="horizontal",dir:l,activationMode:c="automatic",...h}=t,f=A(l),[d,p]=C({prop:o,onChange:s,defaultProp:a});return(0,i.createElement)(tn,{scope:n,baseId:y(),value:d,onValueChange:p,orientation:u,dir:f,activationMode:c},(0,i.createElement)(K.div,(0,r.Z)({dir:f,"data-orientation":u},h,{ref:e})))}),to=(0,i.forwardRef)((t,e)=>{let{__scopeTabs:n,loop:o=!0,...s}=t,a=tr("TabsList",n),u=te(n);return(0,i.createElement)(V,(0,r.Z)({asChild:!0},u,{orientation:a.orientation,dir:a.dir,loop:o}),(0,i.createElement)(K.div,(0,r.Z)({role:"tablist","aria-orientation":a.orientation},s,{ref:e})))}),ts=(0,i.forwardRef)((t,e)=>{let{__scopeTabs:n,value:o,disabled:a=!1,...u}=t,l=tr("TabsTrigger",n),c=te(n),h=function(t,e){return`${t}-trigger-${e}`}(l.baseId,o),f=function(t,e){return`${t}-content-${e}`}(l.baseId,o),d=o===l.value;return(0,i.createElement)(H,(0,r.Z)({asChild:!0},c,{focusable:!a,active:d}),(0,i.createElement)(K.button,(0,r.Z)({type:"button",role:"tab","aria-selected":d,"aria-controls":f,"data-state":d?"active":"inactive","data-disabled":a?"":void 0,disabled:a,id:h},u,{ref:e,onMouseDown:s(t.onMouseDown,t=>{a||0!==t.button||!1!==t.ctrlKey?t.preventDefault():l.onValueChange(o)}),onKeyDown:s(t.onKeyDown,t=>{[" ","Enter"].includes(t.key)&&l.onValueChange(o)}),onFocus:s(t.onFocus,()=>{let t="manual"!==l.activationMode;d||a||!t||l.onValueChange(o)})})))}),ta=ti,tu=to,tl=ts},42670:function(t,e,n){"use strict";n.d(e,{cZ:function(){return ec},t9:function(){return eu}});var r,i,o,s=n(2265);function a(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}var u=a()?s.useLayoutEffect:s.useEffect,l=n(54887),c=function(t){var e,n=t.children,r=t.type,i=void 0===r?"reach-portal":r,o=t.containerRef,a=(0,s.useRef)(null),c=(0,s.useRef)(null),h=(e=(0,s.useState)(Object.create(null))[1],(0,s.useCallback)(function(){e(Object.create(null))},[]));return u(function(){if(a.current){var t=a.current.ownerDocument,e=(null==o?void 0:o.current)||t.body;return c.current=null==t?void 0:t.createElement(i),e.appendChild(c.current),h(),function(){c.current&&e&&e.removeChild(c.current)}}},[i,h,o]),c.current?(0,l.createPortal)(n,c.current):(0,s.createElement)("span",{ref:a})};function h(){}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function d(t,e){return function(n){if(t&&t(n),!n.defaultPrevented)return e(n)}}var p=n(58442),m="data-focus-lock",v="data-focus-lock-disabled";function g(t,e){var n,r;return n=function(e){return t.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(r=(0,s.useState)(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(value){var t=r.value;t!==value&&(r.value=value,r.callback(value,t))}}}})[0]).callback=n,r.facade}var y={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},b=function(t){var e=t.children;return s.createElement(s.Fragment,null,s.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:y}),e,e&&s.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:y}))};b.propTypes={},b.defaultProps={children:null};var E=function(){return(E=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function w(t){return t}function _(t,e){void 0===e&&(e=w);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(t){var i=e(t,r);return n.push(i),function(){n=n.filter(function(t){return t!==i})}},assignSyncMedium:function(t){for(r=!0;n.length;){var e=n;n=[],e.forEach(t)}n={push:function(e){return t(e)},filter:function(){return n}}},assignMedium:function(t){r=!0;var e=[];if(n.length){var i=n;n=[],i.forEach(t),e=n}var o=function(){var n=e;e=[],n.forEach(t)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(t){e.push(t),s()},filter:function(t){return e=e.filter(t),n}}}}}function x(t,e){return void 0===e&&(e=w),_(t,e)}function S(t){void 0===t&&(t={});var e=_(null);return e.options=E({async:!0,ssr:!1},t),e}var T=x({},function(t){return{target:t.target,currentTarget:t.currentTarget}}),C=x(),P=x(),A=S({async:!0}),O=[],M=s.forwardRef(function(t,e){var n,r=s.useState(),i=r[0],o=r[1],a=s.useRef(),u=s.useRef(!1),l=s.useRef(null),c=t.children,h=t.disabled,f=t.noFocusGuards,d=t.persistentFocus,b=t.crossFrame,E=t.autoFocus,w=(t.allowTextSelection,t.group),_=t.className,x=t.whiteList,S=t.shards,P=void 0===S?O:S,M=t.as,N=t.lockProps,k=t.sideCar,R=t.returnFocus,D=t.focusOptions,L=t.onActivation,I=t.onDeactivation,B=s.useState({})[0],F=s.useCallback(function(){l.current=l.current||document&&document.activeElement,a.current&&L&&L(a.current),u.current=!0},[L]),V=s.useCallback(function(){u.current=!1,I&&I(a.current)},[I]);(0,s.useEffect)(function(){h||(l.current=null)},[]);var j=s.useCallback(function(t){var e=l.current;if(e&&e.focus){var n="function"==typeof R?R(e):R;if(n){var r="object"==typeof n?n:void 0;l.current=null,t?Promise.resolve().then(function(){return e.focus(r)}):e.focus(r)}}},[R]),H=s.useCallback(function(t){u.current&&T.useMedium(t)},[]),$=C.useMedium,U=s.useCallback(function(t){a.current!==t&&(a.current=t,o(t))},[]),G=(0,p.Z)(((n={})[v]=h&&"disabled",n[m]=w,n),void 0===N?{}:N),Z=!0!==f,W=Z&&"tail"!==f,z=g([e,U]);return s.createElement(s.Fragment,null,Z&&[s.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:h?-1:0,style:y}),s.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:h?-1:1,style:y})],!h&&s.createElement(k,{id:B,sideCar:A,observed:i,disabled:h,persistentFocus:d,crossFrame:b,autoFocus:E,whiteList:x,shards:P,onActivation:F,onDeactivation:V,returnFocus:j,focusOptions:D}),s.createElement(void 0===M?"div":M,(0,p.Z)({ref:z},G,{className:_,onBlur:$,onFocus:H}),c),W&&s.createElement("div",{"data-focus-guard":!0,tabIndex:h?-1:0,style:y}))});function N(t,e){return(N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}M.propTypes={},M.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var k=function(t){for(var e=Array(t.length),n=0;n<t.length;++n)e[n]=t[n];return e},R=function(t){return Array.isArray(t)?t:[t]},D=function(t){for(var e=new Set,n=t.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=t[r].compareDocumentPosition(t[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&e.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&e.add(r)}return t.filter(function(t,n){return!e.has(n)})},L=function(t){return t.parentNode?L(t.parentNode):t},I=function(t){return R(t).filter(Boolean).reduce(function(t,e){var n=e.getAttribute(m);return t.push.apply(t,n?D(k(L(e).querySelectorAll("["+m+'="'+n+'"]:not(['+v+'="disabled"])'))):[e]),t},[])},B=function(t){var e=document&&document.activeElement;return!!e&&(!e.dataset||!e.dataset.focusGuard)&&I(t).reduce(function(t,n){return t||n.contains(e)||!!k(n.querySelectorAll("iframe")).some(function(t){return t===document.activeElement})},!1)},F=function(t){return"INPUT"===t.tagName&&"radio"===t.type},V=function(t,e){return F(t)&&t.name&&e.filter(F).filter(function(e){return e.name===t.name}).filter(function(t){return t.checked})[0]||t},j=function(t){var e=new Set;return t.forEach(function(n){return e.add(V(n,t))}),t.filter(function(t){return e.has(t)})},H=function(t){return t[0]&&t.length>1?V(t[0],t):t[0]},$=function(t,e){return t.length>1?t.indexOf(V(t[e],t)):e},U=function(t){if(t.nodeType!==Node.ELEMENT_NODE)return!1;var e=window.getComputedStyle(t,null);return!!e&&!!e.getPropertyValue&&("none"===e.getPropertyValue("display")||"hidden"===e.getPropertyValue("visibility"))},G=function(t,e){var n,r=t.get(e);if(void 0!==r)return r;var i=(n=G.bind(void 0,t),!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!U(e)&&n(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode));return t.set(e,i),i},Z=function(t){return!!(t&&t.dataset&&t.dataset.focusGuard)},W=function(t){return!Z(t)},z=function(t){return!!t},Y="NEW_FOCUS",q=function(t,e,n,r){var i=t.length,o=t[0],s=t[i-1],a=Z(n);if(!(t.indexOf(n)>=0)){var u=e.indexOf(n),l=r?e.indexOf(r):u,c=r?t.indexOf(r):-1,h=u-l,f=e.indexOf(o),d=e.indexOf(s),p=j(e),m=p.indexOf(n)-(r?p.indexOf(r):u),v=$(t,0),g=$(t,i-1);if(-1===u||-1===c)return Y;if(!h&&c>=0)return c;if(u<=f&&a&&Math.abs(h)>1)return g;if(u>=d&&a&&Math.abs(h)>1)return v;if(h&&Math.abs(m)>1)return c;if(u<=f)return g;if(u>d)return v;if(h)return Math.abs(h)>1?c:(i+c+h)%i}},X=function(t,e){var n=t.tabIndex-e.tabIndex,r=t.index-e.index;if(n){if(!t.tabIndex)return 1;if(!e.tabIndex)return -1}return n||r},K=function(t,e,n){return k(t).map(function(t,e){return{node:t,index:e,tabIndex:n&&-1===t.tabIndex?(t.dataset||{}).focusGuard?0:-1:t.tabIndex}}).filter(function(t){return!e||t.tabIndex>=0}).sort(X)},J="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",Q=J+", [data-focus-guard]",tt=function(t,e){return t.reduce(function(t,n){return t.concat(k(n.querySelectorAll(e?Q:J)),n.parentNode?k(n.parentNode.querySelectorAll(J)).filter(function(t){return t===n}):[])},[])},te=function(t,e){return k(t).filter(function(t){return G(e,t)}).filter(function(t){return!(("INPUT"===t.tagName||"BUTTON"===t.tagName)&&("hidden"===t.type||t.disabled))})},tn=function(t,e,n){return K(te(tt(t,n),e),!0,n)},tr=function(t,e){return K(te(tt(t),e),!1)},ti=function(t,e){return void 0===e&&(e=[]),e.push(t),t.parentNode&&ti(t.parentNode,e),e},to=function(t,e){for(var n=ti(t),r=ti(e),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},ts=function(t,e,n){var r=R(t),i=R(e),o=r[0],s=!1;return i.filter(Boolean).forEach(function(t){s=to(s||t,t)||s,n.filter(Boolean).forEach(function(t){var e=to(o,t);e&&(s=!s||e.contains(s)?e:to(e,s))})}),s},ta=function(t,e){var n=new Map;return e.forEach(function(t){return n.set(t.node,t)}),t.map(function(t){return n.get(t)}).filter(z)},tu=function(t,e){var n=document&&document.activeElement,r=I(t).filter(W),i=ts(n||t,t,r),o=new Map,s=tr(r,o),a=tn(r,o).filter(function(t){return W(t.node)});if(a[0]||(a=s)[0]){var u=tr([i],o).map(function(t){return t.node}),l=ta(u,a),c=l.map(function(t){return t.node}),h=q(c,u,n,e);if(h===Y){var f,d=s.map(function(t){return t.node}).filter((f=r.reduce(function(t,e){return t.concat(te(k(e.querySelectorAll("[data-autofocus-inside]")).map(function(t){return tt([t])}).reduce(function(t,e){return t.concat(e)},[]),o))},[]),function(t){return t.autofocus||t.dataset&&!!t.dataset.autofocus||f.indexOf(t)>=0}));return{node:d&&d.length?H(d):H(c)}}return void 0===h?h:l[h]}},tl=function(t,e){t.focus(e),"contentWindow"in t&&t.contentWindow&&t.contentWindow.focus()},tc=0,th=!1,tf=function(t,e,n){void 0===n&&(n={});var r=tu(t,e);if(!th&&r){if(tc>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),th=!0,setTimeout(function(){th=!1},1);return}tc++,tl(r.node,n.focusOptions),tc--}},td=function(t){var e=I(t).filter(W),n=ts(t,t,e),r=new Map,i=tn([n],r,!0),o=tn(e,r).filter(function(t){return W(t.node)}).map(function(t){return t.node});return i.map(function(t){var e=t.node;return{node:e,index:t.index,lockItem:o.indexOf(e)>=0,guard:Z(e)}})};function tp(t){var e=window.setImmediate;void 0!==e?e(t):setTimeout(t,1)}var tm=null,tv=null,tg=null,ty=!1,tb=function(t,e){tg={observerNode:t,portaledElement:e}};function tE(t,e,n,r){var i=null,o=t;do{var s=r[o];if(s.guard)s.node.dataset.focusAutoGuard&&(i=s);else if(s.lockItem){if(o!==t)return;i=null}else break}while((o+=n)!==e);i&&(i.node.tabIndex=0)}var tw=function(t){return t&&"current"in t?t.current:t},t_=function(){var t=!1;if(tm){var e=tm,n=e.observed,r=e.persistentFocus,i=e.autoFocus,o=e.shards,s=e.crossFrame,a=e.focusOptions,u=n||tg&&tg.portaledElement,l=document&&document.activeElement;if(u){var c=[u].concat(o.map(tw).filter(Boolean));if((!l||(tm.whiteList||function(){return!0})(l))&&(r||(s?!!ty:"meanwhile"===ty)||!(document&&document.activeElement===document.body||document&&k(document.querySelectorAll("[data-no-focus-lock]")).some(function(t){return t.contains(document.activeElement)}))||!tv&&i)&&(u&&!(B(c)||tg&&tg.portaledElement===l)&&(document&&!tv&&l&&!i?(l.blur&&l.blur(),document.body.focus()):(t=tf(c,tv,{focusOptions:a}),tg={})),ty=!1,tv=document&&document.activeElement),document){var h=document&&document.activeElement,f=td(c),d=f.map(function(t){return t.node}).indexOf(h);d>-1&&(f.filter(function(t){var e=t.guard,n=t.node;return e&&n.dataset.focusAutoGuard}).forEach(function(t){return t.node.removeAttribute("tabIndex")}),tE(d,f.length,1,f),tE(d,-1,-1,f))}}}return t},tx=function(t){t_()&&t&&(t.stopPropagation(),t.preventDefault())},tS=function(){return tp(t_)},tT=function(){ty="just",setTimeout(function(){ty="meanwhile"},0)},tC=function(){document.addEventListener("focusin",tx),document.addEventListener("focusout",tS),window.addEventListener("blur",tT)},tP=function(){document.removeEventListener("focusin",tx),document.removeEventListener("focusout",tS),window.removeEventListener("blur",tT)};T.assignSyncMedium(function(t){var e=t.target,n=t.currentTarget;n.contains(e)||tb(n,e)}),C.assignMedium(tS),P.assignMedium(function(t){return t({moveFocusInside:tf,focusInside:B})});var tA=(r=function(t){return t.filter(function(t){return!t.disabled})},i=function(t){var e=t.slice(-1)[0];e&&!tm&&tC();var n=tm,r=n&&e&&e.id===n.id;tm=e,!n||r||(n.onDeactivation(),t.filter(function(t){return t.id===n.id}).length||n.returnFocus(!e)),e?(tv=null,r&&n.observed===e.observed||e.onActivation(),t_(!0),tp(t_)):(tP(),tv=null)},function(t){var e,n,o,a=[];function u(){i(o=r(a.map(function(t){return t.props})))}var l=function(e){function n(){return e.apply(this,arguments)||this}n.prototype=Object.create(e.prototype),n.prototype.constructor=n,N(n,e),n.peek=function(){return o};var r=n.prototype;return r.componentDidMount=function(){a.push(this),u()},r.componentDidUpdate=function(){u()},r.componentWillUnmount=function(){var t=a.indexOf(this);a.splice(t,1),u()},r.render=function(){return s.createElement(t,this.props)},n}(s.PureComponent);return e="displayName",n="SideEffect("+(t.displayName||t.name||"Component")+")",e in l?Object.defineProperty(l,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):l[e]=n,l})(function(){return null}),tO=s.forwardRef(function(t,e){return s.createElement(M,(0,p.Z)({sideCar:tA,ref:e},t))}),tM=M.propTypes||{};tM.sideCar,function(t,e){if(null!=t){var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||(i[n]=t[n])}}(tM,["sideCar"]),tO.propTypes={};var tN=function(){return(tN=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},tk="right-scroll-bar-position",tR="width-before-scroll-bar",tD=S(),tL=function(){},tI=s.forwardRef(function(t,e){var n=s.useRef(null),r=s.useState({onScrollCapture:tL,onWheelCapture:tL,onTouchMoveCapture:tL}),i=r[0],o=r[1],a=t.forwardProps,u=t.children,l=t.className,c=t.removeScrollBar,h=t.enabled,f=t.shards,d=t.sideCar,p=t.noIsolation,m=t.inert,v=t.allowPinchZoom,y=t.as,b=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=g([n,e]),w=tN({},b,i);return s.createElement(s.Fragment,null,h&&s.createElement(d,{sideCar:tD,removeScrollBar:c,shards:f,noIsolation:p,inert:m,setCallbacks:o,allowPinchZoom:!!v,lockRef:n}),a?s.cloneElement(s.Children.only(u),tN({},w,{ref:E})):s.createElement(void 0===y?"div":y,tN({},w,{className:l,ref:E}),u))});tI.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tI.classNames={fullWidth:tR,zeroRight:tk};var tB=function(t){var e=t.sideCar,n=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}(t,["sideCar"]);if(!e)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw Error("Sidecar medium not found");return s.createElement(r,E({},n))};tB.isSideCarExport=!0;var tF=n(37280),tV=function(){var t=0,e=null;return{add:function(n){if(0==t&&(e=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=(0,tF.V)();return e&&t.setAttribute("nonce",e),t}())){var r,i;(r=e).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),i=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}t++},remove:function(){--t||!e||(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},tj=function(){var t=tV();return function(e){s.useEffect(function(){return t.add(e),function(){t.remove()}},[])}},tH=function(){var t=tj();return function(e){return t(e.styles),null}},t$={left:0,top:0,right:0,gap:0},tU=function(t){return parseInt(t||"",10)||0},tG=function(t){var e=window.getComputedStyle(document.body),n=e["padding"===t?"paddingLeft":"marginLeft"],r=e["padding"===t?"paddingTop":"marginTop"],i=e["padding"===t?"paddingRight":"marginRight"];return[tU(n),tU(r),tU(i)]},tZ=function(t){if(void 0===t&&(t="margin"),"undefined"==typeof window)return t$;var e=tG(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},tW=tH(),tz=function(t,e,n,r){var i=t.left,o=t.top,s=t.right,a=t.gap;return void 0===n&&(n="margin"),"\n  .with-scroll-bars-hidden {\n   overflow: hidden "+r+";\n   padding-right: "+a+"px "+r+";\n  }\n  body {\n    overflow: hidden "+r+";\n    "+[e&&"position: relative "+r+";","margin"===n&&"\n    padding-left: "+i+"px;\n    padding-top: "+o+"px;\n    padding-right: "+s+"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: "+a+"px "+r+";\n    ","padding"===n&&"padding-right: "+a+"px "+r+";"].filter(Boolean).join("")+"\n  }\n  \n  ."+tk+" {\n    right: "+a+"px "+r+";\n  }\n  \n  ."+tR+" {\n    margin-right: "+a+"px "+r+";\n  }\n  \n  ."+tk+" ."+tk+" {\n    right: 0 "+r+";\n  }\n  \n  ."+tR+" ."+tR+" {\n    margin-right: 0 "+r+";\n  }\n  \n  body {\n    --removed-body-scroll-bar-size: "+a+"px;\n  }\n"},tY=function(t){var e=s.useState(tZ(t.gapMode)),n=e[0],r=e[1];s.useEffect(function(){r(tZ(t.gapMode))},[t.gapMode]);var i=t.noRelative,o=t.noImportant,a=t.gapMode;return s.createElement(tW,{styles:tz(n,!i,void 0===a?"margin":a,o?"":"!important")})},tq=function(t){var e=window.getComputedStyle(t);return"hidden"!==e.overflowY&&!(e.overflowY===e.overflowX&&"visible"===e.overflowY)},tX=function(t){var e=window.getComputedStyle(t);return"range"===t.type||"hidden"!==e.overflowX&&!(e.overflowY===e.overflowX&&"visible"===e.overflowX)},tK=function(t,e){var n=e;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),tJ(t,n)){var r=tQ(t,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},tJ=function(t,e){return"v"===t?tq(e):tX(e)},tQ=function(t,e){return"v"===t?[e.scrollTop,e.scrollHeight,e.clientHeight]:[e.scrollLeft,e.scrollWidth,e.clientWidth]},t0=function(t,e,n,r,i){var o=n.target,s=e.contains(o),a=!1,u=r>0,l=0,c=0;do{var h=tQ(t,o),f=h[0],d=h[1]-h[2]-f;(f||d)&&tJ(t,o)&&(l+=d,c+=f),o=o.parentNode}while(!s&&o!==document.body||s&&(e.contains(o)||e===o));return u&&(i&&0===l||!i&&r>l)?a=!0:!u&&(i&&0===c||!i&&-r>c)&&(a=!0),a},t1=!1;if("undefined"!=typeof window)try{var t2=Object.defineProperty({},"passive",{get:function(){return t1=!0,!0}});window.addEventListener("test",t2,t2),window.removeEventListener("test",t2,t2)}catch(t){t1=!1}var t5=!!t1&&{passive:!1},t6=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},t3=function(t){return[t.deltaX,t.deltaY]},t4=function(t){return t&&"current"in t?t.current:t},t8=0,t7=[],t9=(o=function(t){var e=s.useRef([]),n=s.useRef([0,0]),r=s.useRef(),i=s.useState(t8++)[0],o=s.useState(function(){return tH()})[0],a=s.useRef(t);s.useEffect(function(){a.current=t},[t]),s.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-"+i);var e=[t.lockRef.current].concat((t.shards||[]).map(t4)).filter(Boolean);return e.forEach(function(t){return t.classList.add("allow-interactivity-"+i)}),function(){document.body.classList.remove("block-interactivity-"+i),e.forEach(function(t){return t.classList.remove("allow-interactivity-"+i)})}}},[t.inert,t.lockRef.current,t.shards]);var u=s.useCallback(function(t,e){if("touches"in t&&2===t.touches.length)return!a.current.allowPinchZoom;var i,o=t6(t),s=n.current,u="deltaX"in t?t.deltaX:s[0]-o[0],l="deltaY"in t?t.deltaY:s[1]-o[1],c=t.target,h=Math.abs(u)>Math.abs(l)?"h":"v",f=tK(h,c);if(!f)return!0;if(f?i=h:(i="v"===h?"h":"v",f=tK(h,c)),!f)return!1;if(!r.current&&"changedTouches"in t&&(u||l)&&(r.current=i),!i)return!0;var d=r.current||i;return t0(d,e,t,"h"===d?u:l,!0)},[]),l=s.useCallback(function(t){if(t7.length&&t7[t7.length-1]===o){var n="deltaY"in t?t3(t):t6(t),r=e.current.filter(function(e){var r;return e.name===t.type&&e.target===t.target&&(r=e.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){t.preventDefault();return}if(!r){var i=(a.current.shards||[]).map(t4).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?u(t,i[0]):!a.current.noIsolation)&&t.preventDefault()}}},[]),c=s.useCallback(function(t,n,r,i){var o={name:t,delta:n,target:r,should:i};e.current.push(o),setTimeout(function(){e.current=e.current.filter(function(t){return t!==o})},1)},[]),h=s.useCallback(function(t){n.current=t6(t),r.current=void 0},[]),f=s.useCallback(function(e){c(e.type,t3(e),e.target,u(e,t.lockRef.current))},[]),d=s.useCallback(function(e){c(e.type,t6(e),e.target,u(e,t.lockRef.current))},[]);s.useEffect(function(){return t7.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:d}),document.addEventListener("wheel",l,t5),document.addEventListener("touchmove",l,t5),document.addEventListener("touchstart",h,t5),function(){t7=t7.filter(function(t){return t!==o}),document.removeEventListener("wheel",l,t5),document.removeEventListener("touchmove",l,t5),document.removeEventListener("touchstart",h,t5)}},[]);var p=t.removeScrollBar,m=t.inert;return s.createElement(s.Fragment,null,m?s.createElement(o,{styles:"\n  .block-interactivity-"+i+" {pointer-events: none;}\n  .allow-interactivity-"+i+" {pointer-events: all;}\n"}):null,p?s.createElement(tY,{gapMode:"margin"}):null)},tD.useMedium(o),tB),et=s.forwardRef(function(t,e){return s.createElement(tI,tN({},t,{ref:e,sideCar:t9}))});et.classNames=tI.classNames;var ee=n(69160),en=n.n(ee);function er(){return(er=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function ei(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}var eo=["as","isOpen"],es=["allowPinchZoom","as","dangerouslyBypassFocusLock","dangerouslyBypassScrollLock","initialFocusRef","onClick","onDismiss","onKeyDown","onMouseDown","unstable_lockFocusAcrossFrames"],ea=["as","onClick","onKeyDown"];en().bool,en().bool,en().bool,en().func;var eu=(0,s.forwardRef)(function(t,e){var n=t.as,r=t.isOpen,i=void 0===r||r,o=ei(t,eo);return(0,s.useEffect)(function(){i?window.__REACH_DISABLE_TOOLTIPS=!0:window.requestAnimationFrame(function(){window.__REACH_DISABLE_TOOLTIPS=!1})},[i]),i?(0,s.createElement)(c,{"data-reach-dialog-wrapper":""},(0,s.createElement)(el,er({ref:e,as:void 0===n?"div":n},o))):null}),el=(0,s.forwardRef)(function(t,e){var n=t.allowPinchZoom,r=t.as,i=t.dangerouslyBypassFocusLock,o=t.dangerouslyBypassScrollLock,u=t.initialFocusRef,l=t.onClick,c=t.onDismiss,p=void 0===c?h:c,m=t.onKeyDown,v=t.onMouseDown,g=t.unstable_lockFocusAcrossFrames,y=ei(t,es),b=(0,s.useRef)(null),E=(0,s.useRef)(null),w=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return(0,s.useCallback)(function(t){for(var n,r=function(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return f(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,void 0)}}(t))){n&&(t=n);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=t[Symbol.iterator]()).next.bind(n)}(e);!(n=r()).done;)!function(t,e){if(null!=t){if(t&&"[object Function]"==({}).toString.call(t))t(e);else try{t.current=e}catch(n){throw Error('Cannot assign value "'+e+'" to ref "'+t+'"')}}}(n.value,t)},e)}(E,e),_=(0,s.useCallback)(function(){u&&u.current&&u.current.focus()},[u]);return(0,s.useEffect)(function(){var t,e,n,r;return E.current?(t=E.current,e=[],n=[],r=a()?t?t.ownerDocument:document:null,t?(Array.prototype.forEach.call(r.querySelectorAll("body > *"),function(r){if(r!==(null==(i=t.parentNode)?void 0:null==(o=i.parentNode)?void 0:o.parentNode)){var i,o,s=r.getAttribute("aria-hidden");(null===s||"false"===s)&&(e.push(s),n.push(r),r.setAttribute("aria-hidden","true"))}}),function(){n.forEach(function(t,n){var r=e[n];null===r?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",r)})}):h):void 0},[]),(0,s.createElement)(tO,{autoFocus:!0,returnFocus:!0,onActivation:_,disabled:void 0!==i&&i,crossFrame:null==g||g},(0,s.createElement)(et,{allowPinchZoom:n,enabled:!(void 0!==o&&o)},(0,s.createElement)(void 0===r?"div":r,er({},y,{ref:w,"data-reach-dialog-overlay":"",onClick:d(l,function(t){b.current===t.target&&(t.stopPropagation(),p(t))}),onKeyDown:d(m,function(t){"Escape"===t.key&&(t.stopPropagation(),p(t))}),onMouseDown:d(v,function(t){b.current=t.target})}))))}),ec=(0,s.forwardRef)(function(t,e){var n=t.as,r=t.onClick;t.onKeyDown;var i=ei(t,ea);return(0,s.createElement)(void 0===n?"div":n,er({"aria-modal":"true",role:"dialog",tabIndex:-1},i,{ref:e,"data-reach-dialog-content":"",onClick:d(r,function(t){t.stopPropagation()})}))})},1922:function(t,e,n){"use strict";let r,i,o,s,a;n.d(e,{Pf:function(){return es}});var u,l,c=n(43491);function h(){let t=c.n2,e=t.crypto||t.msCrypto,n=()=>16*Math.random();try{if(e&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e&&e.getRandomValues&&(n=()=>e.getRandomValues(new Uint8Array(1))[0])}catch(t){}return"10000000100040008000100000000000".replace(/[018]/g,t=>(t^(15&n())>>t/4).toString(16))}function f(t){return t.exception&&t.exception.values?t.exception.values[0]:void 0}function d(t){let{message:e,event_id:n}=t;if(e)return e;let r=f(t);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function p(t,e,n){let r=t.exception=t.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=e||""),o.type||(o.type=n||"Error")}function m(t,e){let n=f(t);if(!n)return;let r=n.mechanism;if(n.mechanism={type:"generic",handled:!0,...r,...e},e&&"data"in e){let t={...r&&r.data,...e.data};n.mechanism.data=t}}var v=n(20592);let g=["debug","info","warn","error","log","assert","trace"],y={};function b(t){if(!("console"in c.n2))return t();let e=c.n2.console,n={},r=Object.keys(y);r.forEach(t=>{let r=y[t];n[t]=e[t],e[t]=r});try{return t()}finally{r.forEach(t=>{e[t]=n[t]})}}let E=function(){let t=!1,e={enable:()=>{t=!0},disable:()=>{t=!1},isEnabled:()=>t};return"undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__?g.forEach(n=>{e[n]=(...e)=>{t&&b(()=>{c.n2.console[n](`Sentry Logger [${n}]:`,...e)})}}):g.forEach(t=>{e[t]=()=>void 0}),e}(),w=Object.prototype.toString;function _(t){switch(w.call(t)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return M(t,Error)}}function x(t,e){return w.call(t)===`[object ${e}]`}function S(t){return x(t,"ErrorEvent")}function T(t){return x(t,"DOMError")}function C(t){return x(t,"String")}function P(t){return x(t,"Object")}function A(t){return"undefined"!=typeof Event&&M(t,Event)}function O(t){return!!(t&&t.then&&"function"==typeof t.then)}function M(t,e){try{return t instanceof e}catch(t){return!1}}function N(t){return!!("object"==typeof t&&null!==t&&(t.__isVue||t._isVue))}(u=l||(l={}))[u.PENDING=0]="PENDING",u[u.RESOLVED=1]="RESOLVED",u[u.REJECTED=2]="REJECTED";class k{constructor(t){k.prototype.__init.call(this),k.prototype.__init2.call(this),k.prototype.__init3.call(this),k.prototype.__init4.call(this),this._state=l.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}then(t,e){return new k((n,r)=>{this._handlers.push([!1,e=>{if(t)try{n(t(e))}catch(t){r(t)}else n(e)},t=>{if(e)try{n(e(t))}catch(t){r(t)}else r(t)}]),this._executeHandlers()})}catch(t){return this.then(t=>t,t)}finally(t){return new k((e,n)=>{let r,i;return this.then(e=>{i=!1,r=e,t&&t()},e=>{i=!0,r=e,t&&t()}).then(()=>{if(i){n(r);return}e(r)})})}__init(){this._resolve=t=>{this._setResult(l.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(l.REJECTED,t)}}__init3(){this._setResult=(t,e)=>{if(this._state===l.PENDING){if(O(e)){e.then(this._resolve,this._reject);return}this._state=t,this._value=e,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===l.PENDING)return;let t=this._handlers.slice();this._handlers=[],t.forEach(t=>{t[0]||(this._state===l.RESOLVED&&t[1](this._value),this._state===l.REJECTED&&t[2](this._value),t[0]=!0)})}}}let R=(0,c.Rf)();function D(t,e={}){if(!t)return"<unknown>";try{let n,r=t,i=[],o=0,s=0,a=Array.isArray(e)?e:e.keyAttrs,u=!Array.isArray(e)&&e.maxStringLength||80;for(;r&&o++<5&&(n=function(t,e){let n,r,i,o,s;let a=[];if(!t||!t.tagName)return"";a.push(t.tagName.toLowerCase());let u=e&&e.length?e.filter(e=>t.getAttribute(e)).map(e=>[e,t.getAttribute(e)]):null;if(u&&u.length)u.forEach(t=>{a.push(`[${t[0]}="${t[1]}"]`)});else if(t.id&&a.push(`#${t.id}`),(n=t.className)&&C(n))for(s=0,r=n.split(/\s+/);s<r.length;s++)a.push(`.${r[s]}`);let l=["aria-label","type","name","title","alt"];for(s=0;s<l.length;s++)i=l[s],(o=t.getAttribute(i))&&a.push(`[${i}="${o}"]`);return a.join("")}(r,a),"html"!==n&&(!(o>1)||!(s+3*i.length+n.length>=u)));)i.push(n),s+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(t){return"<unknown>"}}function L(t,e=0){return"string"!=typeof t||0===e?t:t.length<=e?t:`${t.slice(0,e)}...`}function I(t,e){if(!Array.isArray(t))return"";let n=[];for(let e=0;e<t.length;e++){let r=t[e];try{N(r)?n.push("[VueViewModel]"):n.push(String(r))}catch(t){n.push("[value cannot be serialized]")}}return n.join(e)}function B(t,e=[],n=!1){return e.some(e=>(function(t,e,n=!1){return!!C(t)&&(x(e,"RegExp")?e.test(t):!!C(e)&&(n?t===e:t.includes(e)))})(t,e,n))}function F(t,e,n){if(!(e in t))return;let r=t[e],i=n(r);"function"==typeof i&&j(i,r),t[e]=i}function V(t,e,n){try{Object.defineProperty(t,e,{value:n,writable:!0,configurable:!0})}catch(n){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.log(`Failed to add non-enumerable property "${e}" to object`,t)}}function j(t,e){try{let n=e.prototype||{};t.prototype=e.prototype=n,V(t,"__sentry_original__",e)}catch(t){}}function H(t){return t.__sentry_original__}function $(t){if(_(t))return{message:t.message,name:t.name,stack:t.stack,...G(t)};if(!A(t))return t;{let e={type:t.type,target:U(t.target),currentTarget:U(t.currentTarget),...G(t)};return"undefined"!=typeof CustomEvent&&M(t,CustomEvent)&&(e.detail=t.detail),e}}function U(t){try{return"undefined"!=typeof Element&&M(t,Element)?D(t):Object.prototype.toString.call(t)}catch(t){return"<unknown>"}}function G(t){if("object"!=typeof t||null===t)return{};{let e={};for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}}function Z(t,e={}){if(!e.user||(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),t.did||e.did||(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||(0,v.ph)(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=32===e.sid.length?e.sid:h()),void 0!==e.init&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),"number"==typeof e.started&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if("number"==typeof e.duration)t.duration=e.duration;else{let e=t.timestamp-t.started;t.duration=e>=0?e:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),"number"==typeof e.errors&&(t.errors=e.errors),e.status&&(t.status=e.status)}class W{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=z()}static clone(t){let e=new W;return t&&(e._breadcrumbs=[...t._breadcrumbs],e._tags={...t._tags},e._extra={...t._extra},e._contexts={...t._contexts},e._user=t._user,e._level=t._level,e._span=t._span,e._session=t._session,e._transactionName=t._transactionName,e._fingerprint=t._fingerprint,e._eventProcessors=[...t._eventProcessors],e._requestSession=t._requestSession,e._attachments=[...t._attachments],e._sdkProcessingMetadata={...t._sdkProcessingMetadata},e._propagationContext={...t._propagationContext}),e}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{},this._session&&Z(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,e){return this._tags={...this._tags,[t]:e},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,e){return this._extra={...this._extra,[t]:e},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,e){return null===e?delete this._contexts[t]:this._contexts[t]=e,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){let t=this.getSpan();return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if("function"==typeof t){let e=t(this);return e instanceof W?e:this}return t instanceof W?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):P(t)&&(this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=z(),this}addBreadcrumb(t,e){let n="number"==typeof e?e:100;if(n<=0)return this;let r={timestamp:(0,v.yW)(),...t},i=this._breadcrumbs;return i.push(r),this._breadcrumbs=i.length>n?i.slice(-n):i,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this._attachments}clearAttachments(){return this._attachments=[],this}applyToEvent(t,e={},n){if(this._extra&&Object.keys(this._extra).length&&(t.extra={...this._extra,...t.extra}),this._tags&&Object.keys(this._tags).length&&(t.tags={...this._tags,...t.tags}),this._user&&Object.keys(this._user).length&&(t.user={...this._user,...t.user}),this._contexts&&Object.keys(this._contexts).length&&(t.contexts={...this._contexts,...t.contexts}),this._level&&(t.level=this._level),this._transactionName&&(t.transaction=this._transactionName),this._span){t.contexts={trace:this._span.getTraceContext(),...t.contexts};let e=this._span.transaction;if(e){t.sdkProcessingMetadata={dynamicSamplingContext:e.getDynamicSamplingContext(),...t.sdkProcessingMetadata};let n=e.name;n&&(t.tags={transaction:n,...t.tags})}}this._applyFingerprint(t);let r=this._getBreadcrumbs(),i=[...t.breadcrumbs||[],...r];return t.breadcrumbs=i.length>0?i:void 0,t.sdkProcessingMetadata={...t.sdkProcessingMetadata,...this._sdkProcessingMetadata,propagationContext:this._propagationContext},function t(e,n,r,i=0){return new k((o,s)=>{let a=e[i];if(null===n||"function"!=typeof a)o(n);else{let u=a({...n},r);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&a.id&&null===u&&E.log(`Event processor "${a.id}" dropped event`),O(u)?u.then(n=>t(e,n,r,i+1).then(o)).then(null,s):t(e,u,r,i+1).then(o).then(null,s)}})}([...n||[],...(0,c.YO)("globalEventProcessors",()=>[]),...this._eventProcessors],t,e)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}_getBreadcrumbs(){return this._breadcrumbs}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}_applyFingerprint(t){var e;t.fingerprint=t.fingerprint?Array.isArray(e=t.fingerprint)?e:[e]:[],this._fingerprint&&(t.fingerprint=t.fingerprint.concat(this._fingerprint)),t.fingerprint&&!t.fingerprint.length&&delete t.fingerprint}}function z(){return{traceId:h(),spanId:h().substring(16)}}class Y{constructor(t,e=new W,n=4){this._version=n,this._stack=[{scope:e}],t&&this.bindClient(t)}isOlderThan(t){return this._version<t}bindClient(t){this.getStackTop().client=t,t&&t.setupIntegrations&&t.setupIntegrations()}pushScope(){let t=W.clone(this.getScope());return this.getStack().push({client:this.getClient(),scope:t}),t}popScope(){return!(this.getStack().length<=1)&&!!this.getStack().pop()}withScope(t){let e=this.pushScope();try{t(e)}finally{this.popScope()}}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,e){let n=this._lastEventId=e&&e.event_id?e.event_id:h(),r=Error("Sentry syntheticException");return this._withClient((i,o)=>{i.captureException(t,{originalException:t,syntheticException:r,...e,event_id:n},o)}),n}captureMessage(t,e,n){let r=this._lastEventId=n&&n.event_id?n.event_id:h(),i=Error(t);return this._withClient((o,s)=>{o.captureMessage(t,e,{originalException:t,syntheticException:i,...n,event_id:r},s)}),r}captureEvent(t,e){let n=e&&e.event_id?e.event_id:h();return t.type||(this._lastEventId=n),this._withClient((r,i)=>{r.captureEvent(t,{...e,event_id:n},i)}),n}lastEventId(){return this._lastEventId}addBreadcrumb(t,e){let{scope:n,client:r}=this.getStackTop();if(!r)return;let{beforeBreadcrumb:i=null,maxBreadcrumbs:o=100}=r.getOptions&&r.getOptions()||{};if(o<=0)return;let s={timestamp:(0,v.yW)(),...t},a=i?b(()=>i(s,e)):s;null!==a&&(r.emit&&r.emit("beforeAddBreadcrumb",a,e),n.addBreadcrumb(a,o))}setUser(t){this.getScope().setUser(t)}setTags(t){this.getScope().setTags(t)}setExtras(t){this.getScope().setExtras(t)}setTag(t,e){this.getScope().setTag(t,e)}setExtra(t,e){this.getScope().setExtra(t,e)}setContext(t,e){this.getScope().setContext(t,e)}configureScope(t){let{scope:e,client:n}=this.getStackTop();n&&t(e)}run(t){let e=X(this);try{t(this)}finally{X(e)}}getIntegration(t){let e=this.getClient();if(!e)return null;try{return e.getIntegration(t)}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,e){let n=this._callExtensionMethod("startTransaction",t,e);return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&!n&&(this.getClient()?console.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
Sentry.addTracingExtensions();
Sentry.init({...});
`):console.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),n}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){let t=this.getStackTop().scope,e=t.getSession();if(e){let t;t={},"ok"===e.status&&(t={status:"exited"}),Z(e,t)}this._sendSessionUpdate(),t.setSession()}startSession(t){let{scope:e,client:n}=this.getStackTop(),{release:r,environment:i="production"}=n&&n.getOptions()||{},{userAgent:o}=c.n2.navigator||{},s=function(t){let e=(0,v.ph)(),n={sid:h(),init:!0,timestamp:e,started:e,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>(function t(e,n){if(P(e)){let r=n.get(e);if(void 0!==r)return r;let i={};for(let r of(n.set(e,i),Object.keys(e)))void 0!==e[r]&&(i[r]=t(e[r],n));return i}if(Array.isArray(e)){let r=n.get(e);if(void 0!==r)return r;let i=[];return n.set(e,i),e.forEach(e=>{i.push(t(e,n))}),i}return e})({sid:`${n.sid}`,init:n.init,started:new Date(1e3*n.started).toISOString(),timestamp:new Date(1e3*n.timestamp).toISOString(),status:n.status,errors:n.errors,did:"number"==typeof n.did||"string"==typeof n.did?`${n.did}`:void 0,duration:n.duration,abnormal_mechanism:n.abnormal_mechanism,attrs:{release:n.release,environment:n.environment,ip_address:n.ipAddress,user_agent:n.userAgent}},new Map)};return t&&Z(n,t),n}({release:r,environment:i,user:e.getUser(),...o&&{userAgent:o},...t}),a=e.getSession&&e.getSession();return a&&"ok"===a.status&&Z(a,{status:"exited"}),this.endSession(),e.setSession(s),s}shouldSendDefaultPii(){let t=this.getClient(),e=t&&t.getOptions();return!!(e&&e.sendDefaultPii)}_sendSessionUpdate(){let{scope:t,client:e}=this.getStackTop(),n=t.getSession();n&&e&&e.captureSession&&e.captureSession(n)}_withClient(t){let{scope:e,client:n}=this.getStackTop();n&&t(n,e)}_callExtensionMethod(t,...e){let n=q().__SENTRY__;if(n&&n.extensions&&"function"==typeof n.extensions[t])return n.extensions[t].apply(this,e);("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function q(){return c.n2.__SENTRY__=c.n2.__SENTRY__||{extensions:{},hub:void 0},c.n2}function X(t){let e=q(),n=J(e);return Q(e,t),n}function K(){let t=q();if(t.__SENTRY__&&t.__SENTRY__.acs){let e=t.__SENTRY__.acs.getCurrentHub();if(e)return e}return function(t=q()){return(!(t&&t.__SENTRY__&&t.__SENTRY__.hub)||J(t).isOlderThan(4))&&Q(t,new Y),J(t)}(t)}function J(t){return(0,c.YO)("hub",()=>new Y,t)}function Q(t,e){return!!t&&((t.__SENTRY__=t.__SENTRY__||{}).hub=e,!0)}let tt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],te=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/];class tn{static __initStatic(){this.id="InboundFilters"}constructor(t={}){this.name=tn.id,this._options=t}setupOnce(t,e){}processEvent(t,e,n){var r,i;let o=n.getOptions();return((r=function(t={},e={}){return{allowUrls:[...t.allowUrls||[],...e.allowUrls||[]],denyUrls:[...t.denyUrls||[],...e.denyUrls||[]],ignoreErrors:[...t.ignoreErrors||[],...e.ignoreErrors||[],...t.disableErrorDefaults?[]:tt],ignoreTransactions:[...t.ignoreTransactions||[],...e.ignoreTransactions||[],...t.disableTransactionDefaults?[]:te],ignoreInternal:void 0===t.ignoreInternal||t.ignoreInternal}}(this._options,o)).ignoreInternal&&function(t){try{return"SentryError"===t.exception.values[0].type}catch(t){}return!1}(t)?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.warn(`Event dropped due to being internal Sentry Error.
Event: ${d(t)}`),0):(i=r.ignoreErrors,!t.type&&i&&i.length&&(function(t){let e;let n=[];t.message&&n.push(t.message);try{e=t.exception.values[t.exception.values.length-1]}catch(t){}return e&&e.value&&(n.push(e.value),e.type&&n.push(`${e.type}: ${e.value}`)),("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&0===n.length&&E.error(`Could not extract message for event ${d(t)}`),n})(t).some(t=>B(t,i)))?(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.warn(`Event dropped due to being matched by \`ignoreErrors\` option.
Event: ${d(t)}`),0):!function(t,e){if("transaction"!==t.type||!e||!e.length)return!1;let n=t.transaction;return!!n&&B(n,e)}(t,r.ignoreTransactions)?!function(t,e){if(!e||!e.length)return!1;let n=tr(t);return!!n&&B(n,e)}(t,r.denyUrls)?function(t,e){if(!e||!e.length)return!0;let n=tr(t);return!n||B(n,e)}(t,r.allowUrls)||(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.warn(`Event dropped due to not being matched by \`allowUrls\` option.
Event: ${d(t)}.
Url: ${tr(t)}`),0):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.warn(`Event dropped due to being matched by \`denyUrls\` option.
Event: ${d(t)}.
Url: ${tr(t)}`),0):(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.warn(`Event dropped due to being matched by \`ignoreTransactions\` option.
Event: ${d(t)}`),0))?t:null}}function tr(t){try{let e;try{e=t.exception.values[0].stacktrace.frames}catch(t){}return e?function(t=[]){for(let e=t.length-1;e>=0;e--){let n=t[e];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(e):null}catch(e){return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.error(`Cannot extract url for event ${d(t)}`),null}}tn.__initStatic();class ti{static __initStatic(){this.id="FunctionToString"}constructor(){this.name=ti.id}setupOnce(){r=Function.prototype.toString;try{Function.prototype.toString=function(...t){let e=H(this)||this;return r.apply(e,t)}}catch(t){}}}ti.__initStatic();let to=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ts(t){return{protocol:t.protocol,publicKey:t.publicKey||"",pass:t.pass||"",host:t.host,port:t.port||"",path:t.path||"",projectId:t.projectId}}function ta(t,e){return K().captureException(t,{captureContext:e})}function tu(t){K().withScope(t)}let tl=c.n2,tc=0;function th(t,e={},n){if("function"!=typeof t)return t;try{let e=t.__sentry_wrapped__;if(e)return e;if(H(t))return t}catch(e){return t}let r=function(){let r=Array.prototype.slice.call(arguments);try{n&&"function"==typeof n&&n.apply(this,arguments);let i=r.map(t=>th(t,e));return t.apply(this,i)}catch(t){throw tc++,setTimeout(()=>{tc--}),tu(n=>{n.addEventProcessor(t=>(e.mechanism&&(p(t,void 0,void 0),m(t,e.mechanism)),t.extra={...t.extra,arguments:r},t)),ta(t)}),t}};try{for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}catch(t){}j(r,t),V(t,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:()=>t.name})}catch(t){}return r}let tf="<anonymous>";function td(t){try{if(!t||"function"!=typeof t)return tf;return t.name||tf}catch(t){return tf}}let tp=(0,c.Rf)();function tm(t){return t&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(t.toString())}let tv=(0,c.Rf)(),tg=(0,c.Rf)(),ty="__sentry_xhr_v2__",tb={},tE={};function tw(t,e){tb[t]=tb[t]||[],tb[t].push(e),function(t){if(!tE[t])switch(tE[t]=!0,t){case"console":"console"in c.n2&&g.forEach(function(t){t in c.n2.console&&F(c.n2.console,t,function(e){return y[t]=e,function(...e){t_("console",{args:e,level:t});let n=y[t];n&&n.apply(c.n2.console,e)}})});break;case"dom":(function(){if(!tg.document)return;let t=t_.bind(null,"dom"),e=tT(t,!0);tg.document.addEventListener("click",e,!1),tg.document.addEventListener("keypress",e,!1),["EventTarget","Node"].forEach(e=>{let n=tg[e]&&tg[e].prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(F(n,"addEventListener",function(e){return function(n,r,i){if("click"===n||"keypress"==n)try{let r=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=r[n]=r[n]||{refCount:0};if(!o.handler){let r=tT(t);o.handler=r,e.call(this,n,r,i)}o.refCount++}catch(t){}return e.call(this,n,r,i)}}),F(n,"removeEventListener",function(t){return function(e,n,r){if("click"===e||"keypress"==e)try{let n=this.__sentry_instrumentation_handlers__||{},i=n[e];i&&(i.refCount--,i.refCount<=0&&(t.call(this,e,i.handler,r),i.handler=void 0,delete n[e]),0===Object.keys(n).length&&delete this.__sentry_instrumentation_handlers__)}catch(t){}return t.call(this,e,n,r)}}))})})();break;case"xhr":(function(){if(!tg.XMLHttpRequest)return;let t=XMLHttpRequest.prototype;F(t,"open",function(t){return function(...e){let n=Date.now(),r=e[1],i=this[ty]={method:C(e[0])?e[0].toUpperCase():e[0],url:e[1],request_headers:{}};C(r)&&"POST"===i.method&&r.match(/sentry_key/)&&(this.__sentry_own_request__=!0);let o=()=>{let t=this[ty];if(t&&4===this.readyState){try{t.status_code=this.status}catch(t){}t_("xhr",{args:e,endTimestamp:Date.now(),startTimestamp:n,xhr:this})}};return"onreadystatechange"in this&&"function"==typeof this.onreadystatechange?F(this,"onreadystatechange",function(t){return function(...e){return o(),t.apply(this,e)}}):this.addEventListener("readystatechange",o),F(this,"setRequestHeader",function(t){return function(...e){let[n,r]=e,i=this[ty];return i&&(i.request_headers[n.toLowerCase()]=r),t.apply(this,e)}}),t.apply(this,e)}}),F(t,"send",function(t){return function(...e){let n=this[ty];return n&&void 0!==e[0]&&(n.body=e[0]),t_("xhr",{args:e,startTimestamp:Date.now(),xhr:this}),t.apply(this,e)}})})();break;case"fetch":!function(){if(!function(){if(!("fetch"in tp))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(t){return!1}}())return!1;if(tm(tp.fetch))return!0;let t=!1,e=tp.document;if(e&&"function"==typeof e.createElement)try{let n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(t=tm(n.contentWindow.fetch)),e.head.removeChild(n)}catch(t){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",t)}return t}()||F(c.n2,"fetch",function(t){return function(...e){let{method:n,url:r}=function(t){if(0===t.length)return{method:"GET",url:""};if(2===t.length){let[e,n]=t;return{url:tS(e),method:tx(n,"method")?String(n.method).toUpperCase():"GET"}}let e=t[0];return{url:tS(e),method:tx(e,"method")?String(e.method).toUpperCase():"GET"}}(e),i={args:e,fetchData:{method:n,url:r},startTimestamp:Date.now()};return t_("fetch",{...i}),t.apply(c.n2,e).then(t=>(t_("fetch",{...i,endTimestamp:Date.now(),response:t}),t),t=>{throw t_("fetch",{...i,endTimestamp:Date.now(),error:t}),t})}});break;case"history":(function(){if(!function(){let t=tv.chrome,e=t&&t.app&&t.app.runtime,n="history"in tv&&!!tv.history.pushState&&!!tv.history.replaceState;return!e&&n}())return;let t=tg.onpopstate;function e(t){return function(...e){let n=e.length>2?e[2]:void 0;if(n){let t=i,e=String(n);i=e,t_("history",{from:t,to:e})}return t.apply(this,e)}}tg.onpopstate=function(...e){let n=tg.location.href,r=i;if(i=n,t_("history",{from:r,to:n}),t)try{return t.apply(this,e)}catch(t){}},F(tg.history,"pushState",e),F(tg.history,"replaceState",e)})();break;case"error":tC=tg.onerror,tg.onerror=function(t,e,n,r,i){return t_("error",{column:r,error:i,line:n,msg:t,url:e}),!!tC&&!tC.__SENTRY_LOADER__&&tC.apply(this,arguments)},tg.onerror.__SENTRY_INSTRUMENTED__=!0;break;case"unhandledrejection":tP=tg.onunhandledrejection,tg.onunhandledrejection=function(t){return t_("unhandledrejection",t),!tP||!!tP.__SENTRY_LOADER__||tP.apply(this,arguments)},tg.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0;break;default:("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.warn("unknown instrumentation type:",t);return}}(t)}function t_(t,e){if(t&&tb[t])for(let n of tb[t]||[])try{n(e)}catch(e){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.error(`Error while triggering instrumentation handler.
Type: ${t}
Name: ${td(n)}
Error:`,e)}}function tx(t,e){return!!t&&"object"==typeof t&&!!t[e]}function tS(t){return"string"==typeof t?t:t?tx(t,"url")?t.url:t.toString?t.toString():"":""}function tT(t,e=!1){return n=>{if(!n||n._sentryCaptured)return;let r=function(t){try{return t.target}catch(t){return null}}(n);if("keypress"===n.type&&(!r||!r.tagName||"INPUT"!==r.tagName&&"TEXTAREA"!==r.tagName&&!r.isContentEditable))return;V(n,"_sentryCaptured",!0),r&&!r._sentryId&&V(r,"_sentryId",h());let i="keypress"===n.type?"input":n.type;!function(t){if(t.type!==s)return!1;try{if(!t.target||t.target._sentryId!==a)return!1}catch(t){}return!0}(n)&&(t({event:n,name:i,global:e}),s=n.type,a=r?r._sentryId:void 0),clearTimeout(o),o=tg.setTimeout(()=>{a=void 0,s=void 0},1e3)}}let tC=null,tP=null;function tA(t,e){let n=tM(t,e),r={type:e&&e.name,value:function(t){let e=t&&t.message;return e?e.error&&"string"==typeof e.error.message?e.error.message:e:"No error message"}(e)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function tO(t,e){return{exception:{values:[tA(t,e)]}}}function tM(t,e){let n=e.stacktrace||e.stack||"",r=function(t){if(t){if("number"==typeof t.framesToPop)return t.framesToPop;if(tN.test(t.message))return 1}return 0}(e);try{return t(n,r)}catch(t){}return[]}let tN=/Minified React error #\d+;/i;function tk(t,e,r,i,o){let s;if(S(e)&&e.error)return tO(t,e.error);if(T(e)||x(e,"DOMException")){if("stack"in e)s=tO(t,e);else{let n=e.name||(T(e)?"DOMError":"DOMException"),o=e.message?`${n}: ${e.message}`:n;p(s=tR(t,o,r,i),o)}return"code"in e&&(s.tags={...s.tags,"DOMException.code":`${e.code}`}),s}return _(e)?tO(t,e):(P(e)||A(e)?m(s=function(t,e,r,i){let o=K().getClient(),s=o&&o.getOptions().normalizeDepth,a={exception:{values:[{type:A(e)?e.constructor.name:i?"UnhandledRejection":"Error",value:function(t,{isUnhandledRejection:e}){let n=function(t,e=40){let n=Object.keys($(t));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=e)return L(n[0],e);for(let t=n.length;t>0;t--){let r=n.slice(0,t).join(", ");if(!(r.length>e)){if(t===n.length)return r;return L(r,e)}}return""}(t),r=e?"promise rejection":"exception";if(S(t))return`Event \`ErrorEvent\` captured as ${r} with message \`${t.message}\``;if(A(t)){let e=function(t){try{let e=Object.getPrototypeOf(t);return e?e.constructor.name:void 0}catch(t){}}(t);return`Event \`${e}\` (type=${t.type}) captured as ${r}`}return`Object captured as ${r} with keys: ${n}`}(e,{isUnhandledRejection:i})}]},extra:{__serialized__:function t(e,r=3,i=102400){let o=function(t,e=100,r=Infinity){try{return function t(e,r,i=Infinity,o=Infinity,s=function(){let t="function"==typeof WeakSet,e=t?new WeakSet:[];return[function(n){if(t)return!!e.has(n)||(e.add(n),!1);for(let t=0;t<e.length;t++)if(e[t]===n)return!0;return e.push(n),!1},function(n){if(t)e.delete(n);else for(let t=0;t<e.length;t++)if(e[t]===n){e.splice(t,1);break}}]}()){let[a,u]=s;if(null==r||["number","boolean","string"].includes(typeof r)&&!("number"==typeof r&&r!=r))return r;let l=function(t,e){try{if("domain"===t&&e&&"object"==typeof e&&e._events)return"[Domain]";if("domainEmitter"===t)return"[DomainEmitter]";if(void 0!==n.g&&e===n.g)return"[Global]";if("undefined"!=typeof window&&e===window)return"[Window]";if("undefined"!=typeof document&&e===document)return"[Document]";if(N(e))return"[VueViewModel]";if(P(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e)return"[SyntheticEvent]";if("number"==typeof e&&e!=e)return"[NaN]";if("function"==typeof e)return`[Function: ${td(e)}]`;if("symbol"==typeof e)return`[${String(e)}]`;if("bigint"==typeof e)return`[BigInt: ${String(e)}]`;let r=function(t){let e=Object.getPrototypeOf(t);return e?e.constructor.name:"null prototype"}(e);if(/^HTML(\w*)Element$/.test(r))return`[HTMLElement: ${r}]`;return`[object ${r}]`}catch(t){return`**non-serializable** (${t})`}}(e,r);if(!l.startsWith("[object "))return l;if(r.__sentry_skip_normalization__)return r;let c="number"==typeof r.__sentry_override_normalization_depth__?r.__sentry_override_normalization_depth__:i;if(0===c)return l.replace("object ","");if(a(r))return"[Circular ~]";if(r&&"function"==typeof r.toJSON)try{let e=r.toJSON();return t("",e,c-1,o,s)}catch(t){}let h=Array.isArray(r)?[]:{},f=0,d=$(r);for(let e in d){if(!Object.prototype.hasOwnProperty.call(d,e))continue;if(f>=o){h[e]="[MaxProperties ~]";break}let n=d[e];h[e]=t(e,n,c-1,o,s),f++}return u(r),h}("",t,e,r)}catch(t){return{ERROR:`**non-serializable** (${t})`}}}(e,r);return~-encodeURI(JSON.stringify(o)).split(/%..|./).length>i?t(e,r-1,i):o}(e,s)}};if(r){let e=tM(t,r);e.length&&(a.exception.values[0].stacktrace={frames:e})}return a}(t,e,r,o),{synthetic:!0}):(p(s=tR(t,e,r,i),`${e}`,void 0),m(s,{synthetic:!0})),s)}function tR(t,e,n,r){let i={message:e};if(r&&n){let r=tM(t,n);r.length&&(i.exception={values:[{value:e,stacktrace:{frames:r}}]})}return i}class tD{static __initStatic(){this.id="GlobalHandlers"}constructor(t){this.name=tD.id,this._options={onerror:!0,onunhandledrejection:!0,...t},this._installFunc={onerror:tL,onunhandledrejection:tI}}setupOnce(){Error.stackTraceLimit=50;let t=this._options;for(let e in t){let n=this._installFunc[e];n&&t[e]&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.log(`Global Handler attached: ${e}`),n(),this._installFunc[e]=void 0)}}}function tL(){tw("error",t=>{let[e,n,r]=tV();if(!e.getIntegration(tD))return;let{msg:i,url:o,line:s,column:a,error:u}=t;if(tc>0||u&&u.__sentry_own_request__)return;let l=void 0===u&&C(i)?function(t,e,n,r){let i=S(t)?t.message:t,o="Error",s=i.match(/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i);return s&&(o=s[1],i=s[2]),tB({exception:{values:[{type:o,value:i}]}},e,n,r)}(i,o,s,a):tB(tk(n,u||i,void 0,r,!1),o,s,a);l.level="error",tF(e,u,l,"onerror")})}function tI(){tw("unhandledrejection",t=>{var e,n;let[r,i,o]=tV();if(!r.getIntegration(tD))return;let s=t;try{"reason"in t?s=t.reason:"detail"in t&&"reason"in t.detail&&(s=t.detail.reason)}catch(t){}if(tc>0||s&&s.__sentry_own_request__)return!0;let a=null===(e=s)||"object"!=typeof e&&"function"!=typeof e?(n=s,{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(n)}`}]}}):tk(i,s,void 0,o,!0);a.level="error",tF(r,s,a,"onunhandledrejection")})}function tB(t,e,n,r){let i=t.exception=t.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},u=a.frames=a.frames||[],l=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,h=C(e)&&e.length>0?e:function(){try{return R.document.location.href}catch(t){return""}}();return 0===u.length&&u.push({colno:l,filename:h,function:"?",in_app:!0,lineno:c}),t}function tF(t,e,n,r){m(n,{handled:!1,type:r}),t.captureEvent(n,{originalException:e})}function tV(){let t=K(),e=t.getClient(),n=e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1};return[t,n.stackParser,n.attachStacktrace]}tD.__initStatic();let tj=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];class tH{static __initStatic(){this.id="TryCatch"}constructor(t){this.name=tH.id,this._options={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...t}}setupOnce(){this._options.setTimeout&&F(tl,"setTimeout",t$),this._options.setInterval&&F(tl,"setInterval",t$),this._options.requestAnimationFrame&&F(tl,"requestAnimationFrame",tU),this._options.XMLHttpRequest&&"XMLHttpRequest"in tl&&F(XMLHttpRequest.prototype,"send",tG);let t=this._options.eventTarget;t&&(Array.isArray(t)?t:tj).forEach(tZ)}}function t$(t){return function(...e){let n=e[0];return e[0]=th(n,{mechanism:{data:{function:td(t)},handled:!1,type:"instrument"}}),t.apply(this,e)}}function tU(t){return function(e){return t.apply(this,[th(e,{mechanism:{data:{function:"requestAnimationFrame",handler:td(t)},handled:!1,type:"instrument"}})])}}function tG(t){return function(...e){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(t=>{t in n&&"function"==typeof n[t]&&F(n,t,function(e){let n={mechanism:{data:{function:t,handler:td(e)},handled:!1,type:"instrument"}},r=H(e);return r&&(n.mechanism.data.handler=td(r)),th(e,n)})}),t.apply(this,e)}}function tZ(t){let e=tl[t]&&tl[t].prototype;e&&e.hasOwnProperty&&e.hasOwnProperty("addEventListener")&&(F(e,"addEventListener",function(e){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=th(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:td(r),target:t},handled:!1,type:"instrument"}}))}catch(t){}return e.apply(this,[n,th(r,{mechanism:{data:{function:"addEventListener",handler:td(r),target:t},handled:!1,type:"instrument"}}),i])}}),F(e,"removeEventListener",function(t){return function(e,n,r){try{let i=n&&n.__sentry_wrapped__;i&&t.call(this,e,i,r)}catch(t){}return t.call(this,e,n,r)}}))}tH.__initStatic();let tW=["fatal","error","warning","log","info","debug"];function tz(t){if(!t)return{};let e=t.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};let n=e[6]||"",r=e[8]||"";return{host:e[4],path:e[5],protocol:e[2],search:n,hash:r,relative:e[5]+n+r}}class tY{static __initStatic(){this.id="Breadcrumbs"}constructor(t){this.name=tY.id,this.options={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...t}}setupOnce(){var t;if(this.options.console&&tw("console",tX),this.options.dom&&tw("dom",(t=this.options.dom,function(e){let n;let r="object"==typeof t?t.serializeAttribute:void 0,i="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;i&&i>1024&&(("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.warn(`\`dom.maxStringLength\` cannot exceed 1024, but a value of ${i} was configured. Sentry will use 1024 instead.`),i=1024),"string"==typeof r&&(r=[r]);try{let t=e.event;n=t&&t.target?D(t.target,{keyAttrs:r,maxStringLength:i}):D(t,{keyAttrs:r,maxStringLength:i})}catch(t){n="<unknown>"}0!==n.length&&K().addBreadcrumb({category:`ui.${e.name}`,message:n},{event:e.event,name:e.name,global:e.global})})),this.options.xhr&&tw("xhr",tK),this.options.fetch&&tw("fetch",tJ),this.options.history&&tw("history",tQ),this.options.sentry){let t=K().getClient();t&&t.on&&t.on("beforeSendEvent",tq)}}}function tq(t){K().addBreadcrumb({category:`sentry.${"transaction"===t.type?"transaction":"event"}`,event_id:t.event_id,level:t.level,message:d(t)},{event:t})}function tX(t){var e;let n={category:"console",data:{arguments:t.args,logger:"console"},level:"warn"===(e=t.level)?"warning":tW.includes(e)?e:"log",message:I(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message=`Assertion failed: ${I(t.args.slice(1)," ")||"console.assert"}`,n.data.arguments=t.args.slice(1)}K().addBreadcrumb(n,{input:t.args,level:t.level})}function tK(t){let{startTimestamp:e,endTimestamp:n}=t,r=t.xhr[ty];if(!e||!n||!r)return;let{method:i,url:o,status_code:s,body:a}=r,u={xhr:t.xhr,input:a,startTimestamp:e,endTimestamp:n};K().addBreadcrumb({category:"xhr",data:{method:i,url:o,status_code:s},type:"http"},u)}function tJ(t){let{startTimestamp:e,endTimestamp:n}=t;if(!(!n||t.fetchData.url.match(/sentry_key/)&&"POST"===t.fetchData.method)){if(t.error){let r=t.fetchData,i={data:t.error,input:t.args,startTimestamp:e,endTimestamp:n};K().addBreadcrumb({category:"fetch",data:r,level:"error",type:"http"},i)}else{let r={...t.fetchData,status_code:t.response&&t.response.status},i={input:t.args,response:t.response,startTimestamp:e,endTimestamp:n};K().addBreadcrumb({category:"fetch",data:r,type:"http"},i)}}}function tQ(t){let e=t.from,n=t.to,r=tz(tl.location.href),i=tz(e),o=tz(n);i.path||(i=r),r.protocol===o.protocol&&r.host===o.host&&(n=o.relative),r.protocol===i.protocol&&r.host===i.host&&(e=i.relative),K().addBreadcrumb({category:"navigation",data:{from:e,to:n}})}function t0(t,e){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,is_exception_group:!0,exception_id:e}}function t1(t,e,n,r){t.mechanism=t.mechanism||{type:"generic",handled:!0},t.mechanism={...t.mechanism,type:"chained",source:e,exception_id:n,parent_id:r}}tY.__initStatic();class t2{static __initStatic(){this.id="LinkedErrors"}constructor(t={}){this.name=t2.id,this._key=t.key||"cause",this._limit=t.limit||5}setupOnce(){}preprocessEvent(t,e,n){let r=n.getOptions();!function(t,e,n=250,r,i,o,s){if(!o.exception||!o.exception.values||!s||!M(s.originalException,Error))return;let a=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;a&&(o.exception.values=(function t(e,n,r,i,o,s,a,u){if(s.length>=r+1)return s;let l=[...s];if(M(i[o],Error)){t0(a,u);let s=e(n,i[o]),c=l.length;t1(s,o,c,u),l=t(e,n,r,i[o],o,[s,...l],s,c)}return Array.isArray(i.errors)&&i.errors.forEach((i,s)=>{if(M(i,Error)){t0(a,u);let c=e(n,i),h=l.length;t1(c,`errors[${s}]`,h,u),l=t(e,n,r,i,o,[c,...l],c,h)}}),l})(t,e,i,s.originalException,r,o.exception.values,a,0).map(t=>(t.value&&(t.value=L(t.value,n)),t)))}(tA,r.stackParser,r.maxValueLength,this._key,this._limit,t,e)}}t2.__initStatic();class t5{static __initStatic(){this.id="HttpContext"}constructor(){this.name=t5.id}setupOnce(){}preprocessEvent(t){if(!tl.navigator&&!tl.location&&!tl.document)return;let e=t.request&&t.request.url||tl.location&&tl.location.href,{referrer:n}=tl.document||{},{userAgent:r}=tl.navigator||{},i={...t.request&&t.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},o={...t.request,...e&&{url:e},headers:i};t.request=o}}t5.__initStatic();class t6{static __initStatic(){this.id="Dedupe"}constructor(){this.name=t6.id}setupOnce(t,e){}processEvent(t){if(t.type)return t;try{var e;if((e=this._previousEvent)&&(function(t,e){let n=t.message,r=e.message;return!!((n||r)&&(!n||r)&&(n||!r)&&n===r&&t4(t,e)&&t3(t,e))}(t,e)||function(t,e){let n=t8(e),r=t8(t);return!!(n&&r&&n.type===r.type&&n.value===r.value&&t4(t,e)&&t3(t,e))}(t,e)))return("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(t){}return this._previousEvent=t}}function t3(t,e){let n=t7(t),r=t7(e);if(!n&&!r)return!0;if(n&&!r||!n&&r||r.length!==n.length)return!1;for(let t=0;t<r.length;t++){let e=r[t],i=n[t];if(e.filename!==i.filename||e.lineno!==i.lineno||e.colno!==i.colno||e.function!==i.function)return!1}return!0}function t4(t,e){let n=t.fingerprint,r=e.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(t){return!1}}function t8(t){return t.exception&&t.exception.values&&t.exception.values[0]}function t7(t){let e=t.exception;if(e)try{return e.values[0].stacktrace.frames}catch(t){}}function t9(t={},e=K()){if(!tl.document){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.error("Global document not defined in showReportDialog call");return}let{client:n,scope:r}=e.getStackTop(),i=t.dsn||n&&n.getDsn();if(!i){("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.error("DSN not configured for showReportDialog call");return}r&&(t.user={...r.getUser(),...t.user}),t.eventId||(t.eventId=e.lastEventId());let o=tl.document.createElement("script");o.async=!0,o.crossOrigin="anonymous",o.src=function(t,e){let n=function(t){let e="string"==typeof t?function(t){let e=to.exec(t);if(!e){console.error(`Invalid Sentry Dsn: ${t}`);return}let[n,r,i="",o,s="",a]=e.slice(1),u="",l=a,c=l.split("/");if(c.length>1&&(u=c.slice(0,-1).join("/"),l=c.pop()),l){let t=l.match(/^\d+/);t&&(l=t[0])}return ts({host:o,pass:i,path:u,projectId:l,port:s,protocol:n,publicKey:r})}(t):ts(t);if(e&&function(t){if(!("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__))return!0;let{port:e,projectId:n,protocol:r}=t;return!["protocol","publicKey","host","projectId"].find(e=>!t[e]&&(E.error(`Invalid Sentry Dsn: ${e} missing`),!0))&&(n.match(/^\d+$/)?"http"===r||"https"===r?!(e&&isNaN(parseInt(e,10)))||(E.error(`Invalid Sentry Dsn: Invalid port ${e}`),!1):(E.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(E.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1))}(e))return e}(t);if(!n)return"";let r=`${function(t){let e=t.protocol?`${t.protocol}:`:"",n=t.port?`:${t.port}`:"";return`${e}//${t.host}${n}${t.path?`/${t.path}`:""}/api/`}(n)}embed/error-page/`,i=`dsn=${function(t,e=!1){let{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:u}=t;return`${a}://${u}${e&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r?`${r}/`:r}${s}`}(n)}`;for(let t in e)if("dsn"!==t){if("user"===t){let t=e.user;if(!t)continue;t.name&&(i+=`&name=${encodeURIComponent(t.name)}`),t.email&&(i+=`&email=${encodeURIComponent(t.email)}`)}else i+=`&${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`}return`${r}?${i}`}(i,t),t.onLoad&&(o.onload=t.onLoad);let s=tl.document.head||tl.document.body;s?s.appendChild(o):("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.error("Not injecting report dialog. No injection point found in HTML")}t6.__initStatic(),new tn,new ti,new tH,new tY,new tD,new t2,new t6,new t5;var et=n(71810),ee=n.n(et),en=n(2265);let er="/home/runner/work/sentry-javascript/sentry-javascript/packages/react/src/errorboundary.tsx",ei={componentStack:null,error:null,eventId:null};class eo extends en.Component{constructor(t){super(t),eo.prototype.__init.call(this),this.state=ei,this._openFallbackReportDialog=!0;let e=K().getClient();e&&e.on&&t.showDialog&&(this._openFallbackReportDialog=!1,e.on("afterSendEvent",e=>{e.type||e.event_id!==this._lastEventId||t9({...t.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(t,{componentStack:e}){let{beforeCapture:n,onError:r,showDialog:i,dialogOptions:o}=this.props;tu(s=>{if(function(t){let e=t.match(/^([^.]+)/);return null!==e&&parseInt(e[0])>=17}(en.version)&&_(t)){let n=Error(t.message);n.name=`React ErrorBoundary ${t.name}`,n.stack=e,function(t,e){let n=new WeakMap;!function t(e,r){if(!n.has(e)){if(e.cause)return n.set(e,!0),t(e.cause,r);e.cause=r}}(t,e)}(t,n)}n&&n(s,t,e),s.addEventProcessor(t=>(m(t,{handled:!1}),t));let a=ta(t,{contexts:{react:{componentStack:e}}});r&&r(t,e,a),i&&(this._lastEventId=a,this._openFallbackReportDialog&&t9({...o,eventId:a})),this.setState({error:t,componentStack:e,eventId:a})})}componentDidMount(){let{onMount:t}=this.props;t&&t()}componentWillUnmount(){let{error:t,componentStack:e,eventId:n}=this.state,{onUnmount:r}=this.props;r&&r(t,e,n)}__init(){this.resetErrorBoundary=()=>{let{onReset:t}=this.props,{error:e,componentStack:n,eventId:r}=this.state;t&&t(e,n,r),this.setState(ei)}}render(){let{fallback:t,children:e}=this.props,n=this.state;if(n.error){let e;return(e="function"==typeof t?t({error:n.error,componentStack:n.componentStack,resetError:this.resetErrorBoundary,eventId:n.eventId}):t,en.isValidElement(e))?e:(t&&("undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__)&&E.warn("fallback did not produce a valid ReactElement"),null)}return"function"==typeof e?e():e}}function es(t,e){let n=t.displayName||t.name||"unknown",r=n=>en.createElement(eo,{...e,__self:this,__source:{fileName:er,lineNumber:234}},en.createElement(t,{...n,__self:this,__source:{fileName:er,lineNumber:235}}));return r.displayName=`errorBoundary(${n})`,ee()(r,t),r}},48798:function(t,e,n){"use strict";n.d(e,{l$:function(){return o},KV:function(){return i}}),t=n.hmd(t);var r=n(20357);function i(){return!("undefined"!=typeof __SENTRY_BROWSER_BUNDLE__&&__SENTRY_BROWSER_BUNDLE__)&&"[object process]"===Object.prototype.toString.call(void 0!==r?r:0)}function o(t,e){return t.require(e)}},20592:function(t,e,n){"use strict";n.d(e,{ph:function(){return c},yW:function(){return l}});var r=n(48798),i=n(43491);t=n.hmd(t);let o=(0,i.Rf)(),s={nowSeconds:()=>Date.now()/1e3},a=(0,r.KV)()?function(){try{return(0,r.l$)(t,"perf_hooks").performance}catch(t){return}}():function(){let{performance:t}=o;if(t&&t.now)return{now:()=>t.now(),timeOrigin:Date.now()-t.now()}}(),u=void 0===a?s:{nowSeconds:()=>(a.timeOrigin+a.now())/1e3},l=s.nowSeconds.bind(s),c=u.nowSeconds.bind(u);(()=>{let{performance:t}=o;if(!t||!t.now)return;let e=t.now(),n=Date.now(),r=t.timeOrigin?Math.abs(t.timeOrigin+e-n):36e5,i=t.timing&&t.timing.navigationStart,s="number"==typeof i?Math.abs(i+e-n):36e5;if(r<36e5||s<36e5)return r<=s?t.timeOrigin:void 0})()},43491:function(t,e,n){"use strict";function r(t){return t&&t.Math==Math?t:void 0}n.d(e,{Rf:function(){return o},YO:function(){return s},n2:function(){return i}});let i="object"==typeof globalThis&&r(globalThis)||"object"==typeof window&&r(window)||"object"==typeof self&&r(self)||"object"==typeof n.g&&r(n.g)||function(){return this}()||{};function o(){return i}function s(t,e,n){let r=n||i,o=r.__SENTRY__=r.__SENTRY__||{};return o[t]||(o[t]=e())}},13442:function(t,e){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var o=typeof n;if("string"===o||"number"===o)t.push(n);else if(Array.isArray(n)){if(n.length){var s=i.apply(null,n);s&&t.push(s)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){t.push(n.toString());continue}for(var a in n)r.call(n,a)&&n[a]&&t.push(a)}}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0!==(n=(function(){return i}).apply(e,[]))&&(t.exports=n)}()},37280:function(t,e,n){"use strict";n.d(e,{V:function(){return i}});var r,i=function(){return r||n.nc}},71810:function(t,e,n){"use strict";var r=n(61704),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function u(t){return r.isMemo(t)?s:a[t.$$typeof]||i}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=s;var l=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,n,r){if("string"!=typeof n){if(p){var i=d(n);i&&i!==p&&t(e,i,r)}var s=c(n);h&&(s=s.concat(h(n)));for(var a=u(e),m=u(n),v=0;v<s.length;++v){var g=s[v];if(!o[g]&&!(r&&r[g])&&!(m&&m[g])&&!(a&&a[g])){var y=f(n,g);try{l(e,g,y)}catch(t){}}}}return e}},62837:function(t,e,n){"use strict";n.r(e),n.d(e,{ErrorCode:function(){return d},FormatError:function(){return td},IntlMessageFormat:function(){return tE},InvalidValueError:function(){return tp},InvalidValueTypeError:function(){return tm},MissingValueError:function(){return tv},PART_TYPE:function(){return p},default:function(){return tw},formatToParts:function(){return ty},isFormatXMLElementFn:function(){return tg}});var r,i,o,s,a,u,l,c,h,f,d,p,m=n(19506);function v(t){return t.type===l.literal}function g(t){return t.type===l.number}function y(t){return t.type===l.date}function b(t){return t.type===l.time}function E(t){return t.type===l.select}function w(t){return t.type===l.plural}function _(t){return t.type===l.tag}function x(t){return!!(t&&"object"==typeof t&&t.type===c.number)}function S(t){return!!(t&&"object"==typeof t&&t.type===c.dateTime)}(r=u||(u={}))[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",(i=l||(l={}))[i.literal=0]="literal",i[i.argument=1]="argument",i[i.number=2]="number",i[i.date=3]="date",i[i.time=4]="time",i[i.select=5]="select",i[i.plural=6]="plural",i[i.pound=7]="pound",i[i.tag=8]="tag",(o=c||(c={}))[o.number=0]="number",o[o.dateTime=1]="dateTime";var T=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,C=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,P=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,A=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,O=/^(@+)?(\+|#+)?[rs]?$/g,M=/(\*)(0+)|(#+)(0+)|(0+)/g,N=/^(0+)$/;function k(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(O,function(t,n,r){return"string"!=typeof r?(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length):"+"===r?e.minimumSignificantDigits=n.length:"#"===n[0]?e.maximumSignificantDigits=n.length:(e.minimumSignificantDigits=n.length,e.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""}),e}function R(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function D(t){return R(t)||{}}var L={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]},I=new RegExp("^".concat(T.source,"*")),B=new RegExp("".concat(T.source,"*$"));function F(t,e){return{start:t,end:e}}var V=!!String.prototype.startsWith,j=!!String.fromCodePoint,H=!!Object.fromEntries,$=!!String.prototype.codePointAt,U=!!String.prototype.trimStart,G=!!String.prototype.trimEnd,Z=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&9007199254740991>=Math.abs(t)},W=!0;try{var z=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");W=(null===(h=z.exec("a"))||void 0===h?void 0:h[0])==="a"}catch(t){W=!1}var Y=V?function(t,e,n){return t.startsWith(e,n)}:function(t,e,n){return t.slice(n,n+e.length)===e},q=j?String.fromCodePoint:function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r="",i=e.length,o=0;i>o;){if((t=e[o++])>1114111)throw RangeError(t+" is not a valid code point");r+=t<65536?String.fromCharCode(t):String.fromCharCode(((t-=65536)>>10)+55296,t%1024+56320)}return r},X=H?Object.fromEntries:function(t){for(var e={},n=0;n<t.length;n++){var r=t[n],i=r[0],o=r[1];e[i]=o}return e},K=$?function(t,e){return t.codePointAt(e)}:function(t,e){var n,r=t.length;if(!(e<0)&&!(e>=r)){var i=t.charCodeAt(e);return i<55296||i>56319||e+1===r||(n=t.charCodeAt(e+1))<56320||n>57343?i:(i-55296<<10)+(n-56320)+65536}},J=U?function(t){return t.trimStart()}:function(t){return t.replace(I,"")},Q=G?function(t){return t.trimEnd()}:function(t){return t.replace(B,"")};function tt(t,e){return new RegExp(t,e)}if(W){var te=tt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");f=function(t,e){var n;return te.lastIndex=e,null!==(n=te.exec(t)[1])&&void 0!==n?n:""}}else f=function(t,e){for(var n=[];;){var r,i=K(t,e);if(void 0===i||ti(i)||(r=i)>=33&&r<=35||36===r||r>=37&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||r>=46&&r<=47||r>=58&&r<=59||r>=60&&r<=62||r>=63&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||r>=162&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||r>=8208&&r<=8213||r>=8214&&r<=8215||8216===r||8217===r||8218===r||r>=8219&&r<=8220||8221===r||8222===r||8223===r||r>=8224&&r<=8231||r>=8240&&r<=8248||8249===r||8250===r||r>=8251&&r<=8254||r>=8257&&r<=8259||8260===r||8261===r||8262===r||r>=8263&&r<=8273||8274===r||8275===r||r>=8277&&r<=8286||r>=8592&&r<=8596||r>=8597&&r<=8601||r>=8602&&r<=8603||r>=8604&&r<=8607||8608===r||r>=8609&&r<=8610||8611===r||r>=8612&&r<=8613||8614===r||r>=8615&&r<=8621||8622===r||r>=8623&&r<=8653||r>=8654&&r<=8655||r>=8656&&r<=8657||8658===r||8659===r||8660===r||r>=8661&&r<=8691||r>=8692&&r<=8959||r>=8960&&r<=8967||8968===r||8969===r||8970===r||8971===r||r>=8972&&r<=8991||r>=8992&&r<=8993||r>=8994&&r<=9e3||9001===r||9002===r||r>=9003&&r<=9083||9084===r||r>=9085&&r<=9114||r>=9115&&r<=9139||r>=9140&&r<=9179||r>=9180&&r<=9185||r>=9186&&r<=9254||r>=9255&&r<=9279||r>=9280&&r<=9290||r>=9291&&r<=9311||r>=9472&&r<=9654||9655===r||r>=9656&&r<=9664||9665===r||r>=9666&&r<=9719||r>=9720&&r<=9727||r>=9728&&r<=9838||9839===r||r>=9840&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||r>=10132&&r<=10175||r>=10176&&r<=10180||10181===r||10182===r||r>=10183&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||r>=10224&&r<=10239||r>=10240&&r<=10495||r>=10496&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||r>=10649&&r<=10711||10712===r||10713===r||10714===r||10715===r||r>=10716&&r<=10747||10748===r||10749===r||r>=10750&&r<=11007||r>=11008&&r<=11055||r>=11056&&r<=11076||r>=11077&&r<=11078||r>=11079&&r<=11084||r>=11085&&r<=11123||r>=11124&&r<=11125||r>=11126&&r<=11157||11158===r||r>=11159&&r<=11263||r>=11776&&r<=11777||11778===r||11779===r||11780===r||11781===r||r>=11782&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||r>=11790&&r<=11798||11799===r||r>=11800&&r<=11801||11802===r||11803===r||11804===r||11805===r||r>=11806&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||r>=11818&&r<=11822||11823===r||r>=11824&&r<=11833||r>=11834&&r<=11835||r>=11836&&r<=11839||11840===r||11841===r||11842===r||r>=11843&&r<=11855||r>=11856&&r<=11857||11858===r||r>=11859&&r<=11903||r>=12289&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||r>=12306&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||r>=12318&&r<=12319||12320===r||12336===r||64830===r||64831===r||r>=65093&&r<=65094)break;n.push(i),e+=i>=65536?2:1}return q.apply(void 0,n)};var tn=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,n){for(var r=[];!this.isEOF();){var i=this.char();if(123===i){var o=this.parseArgument(t,n);if(o.err)return o;r.push(o.val)}else if(125===i&&t>0)break;else if(35===i&&("plural"===e||"selectordinal"===e)){var s=this.clonePosition();this.bump(),r.push({type:l.pound,location:F(s,this.clonePosition())})}else if(60!==i||this.ignoreTag||47!==this.peek()){if(60===i&&!this.ignoreTag&&tr(this.peek()||0)){var o=this.parseTag(t,e);if(o.err)return o;r.push(o.val)}else{var o=this.parseLiteral(t,e);if(o.err)return o;r.push(o.val)}}else{if(!n)return this.error(u.UNMATCHED_CLOSING_TAG,F(this.clonePosition(),this.clonePosition()));break}}return{val:r,err:null}},t.prototype.parseTag=function(t,e){var n=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:l.literal,value:"<".concat(r,"/>"),location:F(n,this.clonePosition())},err:null};if(!this.bumpIf(">"))return this.error(u.INVALID_TAG,F(n,this.clonePosition()));var i=this.parseMessage(t+1,e,!0);if(i.err)return i;var o=i.val,s=this.clonePosition();if(!this.bumpIf("</"))return this.error(u.UNCLOSED_TAG,F(n,this.clonePosition()));if(this.isEOF()||!tr(this.char()))return this.error(u.INVALID_TAG,F(s,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(u.UNMATCHED_CLOSING_TAG,F(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">"))?{val:{type:l.tag,value:r,children:o,location:F(n,this.clonePosition())},err:null}:this.error(u.INVALID_TAG,F(s,this.clonePosition()))},t.prototype.parseTagName=function(){var t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},t.prototype.parseLiteral=function(t,e){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(e);if(i){r+=i;continue}var o=this.tryParseUnquoted(t,e);if(o){r+=o;continue}var s=this.tryParseLeftAngleBracket();if(s){r+=s;continue}break}var a=F(n,this.clonePosition());return{val:{type:l.literal,value:r,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){var t;return this.isEOF()||60!==this.char()||!this.ignoreTag&&(tr(t=this.peek()||0)||47===t)?null:(this.bump(),"<")},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(39===n){if(39===this.peek())e.push(39),this.bump();else{this.bump();break}}else e.push(n);this.bump()}return q.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var n=this.char();return 60===n||123===n||35===n&&("plural"===e||"selectordinal"===e)||125===n&&t>0?null:(this.bump(),q(n))},t.prototype.parseArgument=function(t,e){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,F(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(u.EMPTY_ARGUMENT,F(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(u.MALFORMED_ARGUMENT,F(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,F(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:l.argument,value:r,location:F(n,this.clonePosition())},err:null};case 44:if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,F(n,this.clonePosition()));return this.parseArgumentOptions(t,e,r,n);default:return this.error(u.MALFORMED_ARGUMENT,F(n,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),n=f(this.message,e),r=e+n.length;return this.bumpTo(r),{value:n,location:F(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(u.EXPECT_ARGUMENT_TYPE,F(o,a));case"number":case"date":case"time":this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var p=Q(d.val);if(0===p.length)return this.error(u.EXPECT_ARGUMENT_STYLE,F(this.clonePosition(),this.clonePosition()));h={style:p,styleLocation:F(f,this.clonePosition())}}var v=this.tryParseArgumentClose(r);if(v.err)return v;var g=F(r,this.clonePosition());if(h&&Y(null==h?void 0:h.style,"::",0)){var y,b=J(h.style.slice(2));if("number"===s){var d=this.parseNumberSkeletonFromString(b,h.styleLocation);if(d.err)return d;return{val:{type:l.number,value:n,location:g,style:d.val},err:null}}if(0===b.length)return this.error(u.EXPECT_DATE_TIME_SKELETON,g);var E=b;this.locale&&(E=function(t,e){for(var n="",r=0;r<t.length;r++){var i=t.charAt(r);if("j"===i){for(var o=0;r+1<t.length&&t.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),u=function(t){var e,n=t.hourCycle;if(void 0===n&&t.hourCycles&&t.hourCycles.length&&(n=t.hourCycles[0]),n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw Error("Invalid hourCycle")}var r=t.language;return"root"!==r&&(e=t.maximize().region),(L[e||""]||L[r||""]||L["".concat(r,"-001")]||L["001"])[0]}(e);for(("H"==u||"k"==u)&&(a=0);a-- >0;)n+="a";for(;s-- >0;)n=u+n}else"J"===i?n+="H":n+=i}return n}(b,this.locale));var p={type:c.dateTime,pattern:E,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?(y={},E.replace(C,function(t){var e=t.length;switch(t[0]){case"G":y.era=4===e?"long":5===e?"narrow":"short";break;case"y":y.year=2===e?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":y.month=["numeric","2-digit","short","long","narrow"][e-1];break;case"w":case"W":throw RangeError("`w/W` (week) patterns are not supported");case"d":y.day=["numeric","2-digit"][e-1];break;case"D":case"F":case"g":throw RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":y.weekday=4===e?"short":5===e?"narrow":"short";break;case"e":if(e<4)throw RangeError("`e..eee` (weekday) patterns are not supported");y.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw RangeError("`c..ccc` (weekday) patterns are not supported");y.weekday=["short","long","narrow","short"][e-4];break;case"a":y.hour12=!0;break;case"b":case"B":throw RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":y.hourCycle="h12",y.hour=["numeric","2-digit"][e-1];break;case"H":y.hourCycle="h23",y.hour=["numeric","2-digit"][e-1];break;case"K":y.hourCycle="h11",y.hour=["numeric","2-digit"][e-1];break;case"k":y.hourCycle="h24",y.hour=["numeric","2-digit"][e-1];break;case"j":case"J":case"C":throw RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":y.minute=["numeric","2-digit"][e-1];break;case"s":y.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":y.timeZoneName=e<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),y):{}};return{val:{type:"date"===s?l.date:l.time,value:n,location:g,style:p},err:null}}return{val:{type:"number"===s?l.number:"date"===s?l.date:l.time,value:n,location:g,style:null!==(i=null==h?void 0:h.style)&&void 0!==i?i:null},err:null};case"plural":case"selectordinal":case"select":var w=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(u.EXPECT_SELECT_ARGUMENT_OPTIONS,F(w,(0,m.pi)({},w)));this.bumpSpace();var _=this.parseIdentifierIfPossible(),x=0;if("select"!==s&&"offset"===_.value){if(!this.bumpIf(":"))return this.error(u.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,F(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(u.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,u.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),_=this.parseIdentifierIfPossible(),x=d.val}var S=this.tryParsePluralOrSelectOptions(t,s,e,_);if(S.err)return S;var v=this.tryParseArgumentClose(r);if(v.err)return v;var T=F(r,this.clonePosition());if("select"===s)return{val:{type:l.select,value:n,options:X(S.val),location:T},err:null};return{val:{type:l.plural,value:n,options:X(S.val),offset:x,pluralType:"plural"===s?"cardinal":"ordinal",location:T},err:null};default:return this.error(u.INVALID_ARGUMENT_TYPE,F(o,a))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(u.EXPECT_ARGUMENT_CLOSING_BRACE,F(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(u.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,F(n,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var n=[];try{n=function(t){if(0===t.length)throw Error("Number skeleton cannot be empty");for(var e=t.split(P).filter(function(t){return t.length>0}),n=[],r=0;r<e.length;r++){var i=e[r].split("/");if(0===i.length)throw Error("Invalid number skeleton");for(var o=i[0],s=i.slice(1),a=0;a<s.length;a++)if(0===s[a].length)throw Error("Invalid number skeleton");n.push({stem:o,options:s})}return n}(t)}catch(t){return this.error(u.INVALID_NUMBER_SKELETON,e)}return{val:{type:c.number,tokens:n,location:e,parsedOptions:this.shouldParseSkeletons?function(t){for(var e={},n=0;n<t.length;n++){var r=t[n];switch(r.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=r.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=r.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=(0,m.pi)((0,m.pi)((0,m.pi)({},e),{notation:"scientific"}),r.options.reduce(function(t,e){return(0,m.pi)((0,m.pi)({},t),R(e)||{})},{}));continue;case"engineering":e=(0,m.pi)((0,m.pi)((0,m.pi)({},e),{notation:"engineering"}),r.options.reduce(function(t,e){return(0,m.pi)((0,m.pi)({},t),R(e)||{})},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(r.options[0]);continue;case"integer-width":if(r.options.length>1)throw RangeError("integer-width stems only accept a single optional option");r.options[0].replace(M,function(t,n,r,i,o,s){if(n)e.minimumIntegerDigits=r.length;else if(i&&o)throw Error("We currently do not support maximum integer digits");else if(s)throw Error("We currently do not support exact integer digits");return""});continue}if(N.test(r.stem)){e.minimumIntegerDigits=r.stem.length;continue}if(A.test(r.stem)){if(r.options.length>1)throw RangeError("Fraction-precision stems only accept a single optional option");r.stem.replace(A,function(t,n,r,i,o,s){return"*"===r?e.minimumFractionDigits=n.length:i&&"#"===i[0]?e.maximumFractionDigits=i.length:o&&s?(e.minimumFractionDigits=o.length,e.maximumFractionDigits=o.length+s.length):(e.minimumFractionDigits=n.length,e.maximumFractionDigits=n.length),""});var i=r.options[0];"w"===i?e=(0,m.pi)((0,m.pi)({},e),{trailingZeroDisplay:"stripIfInteger"}):i&&(e=(0,m.pi)((0,m.pi)({},e),k(i)));continue}if(O.test(r.stem)){e=(0,m.pi)((0,m.pi)({},e),k(r.stem));continue}var o=R(r.stem);o&&(e=(0,m.pi)((0,m.pi)({},e),o));var s=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var n=t.slice(0,2);if("+!"===n?(e.signDisplay="always",t=t.slice(2)):"+?"===n&&(e.signDisplay="exceptZero",t=t.slice(2)),!N.test(t))throw Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(r.stem);s&&(e=(0,m.pi)((0,m.pi)({},e),s))}return e}(n):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,n,r){for(var i,o=!1,s=[],a=new Set,l=r.value,c=r.location;;){if(0===l.length){var h=this.clonePosition();if("select"!==e&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(u.EXPECT_PLURAL_ARGUMENT_SELECTOR,u.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=F(h,this.clonePosition()),l=this.message.slice(h.offset,this.offset())}else break}if(a.has(l))return this.error("select"===e?u.DUPLICATE_SELECT_ARGUMENT_SELECTOR:u.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);"other"===l&&(o=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?u.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:u.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,F(this.clonePosition(),this.clonePosition()));var p=this.parseMessage(t+1,e,n);if(p.err)return p;var m=this.tryParseArgumentClose(d);if(m.err)return m;s.push([l,{value:p.val,location:F(d,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(i=this.parseIdentifierIfPossible()).value,c=i.location}return 0===s.length?this.error("select"===e?u.EXPECT_SELECT_ARGUMENT_SELECTOR:u.EXPECT_PLURAL_ARGUMENT_SELECTOR,F(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(u.MISSING_OTHER_CLAUSE,F(this.clonePosition(),this.clonePosition())):{val:s,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(s>=48&&s<=57)i=!0,o=10*o+(s-48),this.bump();else break}var a=F(r,this.clonePosition());return i?Z(o*=n)?{val:o,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=K(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(Y(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),n=this.message.indexOf(t,e);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&ti(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),n=this.message.charCodeAt(e+(t>=65536?2:1));return null!=n?n:null},t}();function tr(t){return t>=97&&t<=122||t>=65&&t<=90}function ti(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function to(t,e){void 0===e&&(e={});var n=new tn(t,e=(0,m.pi)({shouldParseSkeletons:!0,requiresOtherClause:!0},e)).parse();if(n.err){var r=SyntaxError(u[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return(null==e?void 0:e.captureLocation)||function t(e){e.forEach(function(e){if(delete e.location,E(e)||w(e))for(var n in e.options)delete e.options[n].location,t(e.options[n].value);else g(e)&&x(e.style)?delete e.style.location:(y(e)||b(e))&&S(e.style)?delete e.style.location:_(e)&&t(e.children)})}(n.val),n.val}function ts(t,e){var n=e&&e.cache?e.cache:th,r=e&&e.serializer?e.serializer:tl;return(e&&e.strategy?e.strategy:function(t,e){var n,r,i=1===t.length?ta:tu;return n=e.cache.create(),r=e.serializer,i.bind(this,t,n,r)})(t,{cache:n,serializer:r})}function ta(t,e,n,r){var i=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),o=e.get(i);return void 0===o&&(o=t.call(this,r),e.set(i,o)),o}function tu(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=e.get(i);return void 0===o&&(o=t.apply(this,r),e.set(i,o)),o}var tl=function(){return JSON.stringify(arguments)};function tc(){this.cache=Object.create(null)}tc.prototype.get=function(t){return this.cache[t]},tc.prototype.set=function(t,e){this.cache[t]=e};var th={create:function(){return new tc}},tf={variadic:function(t,e){var n,r;return n=e.cache.create(),r=e.serializer,tu.bind(this,t,n,r)},monadic:function(t,e){var n,r;return n=e.cache.create(),r=e.serializer,ta.bind(this,t,n,r)}};(s=d||(d={})).MISSING_VALUE="MISSING_VALUE",s.INVALID_VALUE="INVALID_VALUE",s.MISSING_INTL_API="MISSING_INTL_API";var td=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.code=n,i.originalMessage=r,i}return(0,m.ZT)(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),tp=function(t){function e(e,n,r,i){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(n,'". Options are "').concat(Object.keys(r).join('", "'),'"'),d.INVALID_VALUE,i)||this}return(0,m.ZT)(e,t),e}(td),tm=function(t){function e(e,n,r){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(n),d.INVALID_VALUE,r)||this}return(0,m.ZT)(e,t),e}(td),tv=function(t){function e(e,n){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(n,'"'),d.MISSING_VALUE,n)||this}return(0,m.ZT)(e,t),e}(td);function tg(t){return"function"==typeof t}function ty(t,e,n,r,i,o,s){if(1===t.length&&v(t[0]))return[{type:p.literal,value:t[0].value}];for(var a=[],u=0;u<t.length;u++){var c=t[u];if(v(c)){a.push({type:p.literal,value:c.value});continue}if(c.type===l.pound){"number"==typeof o&&a.push({type:p.literal,value:n.getNumberFormat(e).format(o)});continue}var h=c.value;if(!(i&&h in i))throw new tv(h,s);var f=i[h];if(c.type===l.argument){f&&"string"!=typeof f&&"number"!=typeof f||(f="string"==typeof f||"number"==typeof f?String(f):""),a.push({type:"string"==typeof f?p.literal:p.object,value:f});continue}if(y(c)){var m="string"==typeof c.style?r.date[c.style]:S(c.style)?c.style.parsedOptions:void 0;a.push({type:p.literal,value:n.getDateTimeFormat(e,m).format(f)});continue}if(b(c)){var m="string"==typeof c.style?r.time[c.style]:S(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:p.literal,value:n.getDateTimeFormat(e,m).format(f)});continue}if(g(c)){var m="string"==typeof c.style?r.number[c.style]:x(c.style)?c.style.parsedOptions:void 0;m&&m.scale&&(f*=m.scale||1),a.push({type:p.literal,value:n.getNumberFormat(e,m).format(f)});continue}if(_(c)){var T=c.children,C=c.value,P=i[C];if(!tg(P))throw new tm(C,"function",s);var A=P(ty(T,e,n,r,i,o).map(function(t){return t.value}));Array.isArray(A)||(A=[A]),a.push.apply(a,A.map(function(t){return{type:"string"==typeof t?p.literal:p.object,value:t}}))}if(E(c)){var O=c.options[f]||c.options.other;if(!O)throw new tp(c.value,f,Object.keys(c.options),s);a.push.apply(a,ty(O.value,e,n,r,i));continue}if(w(c)){var O=c.options["=".concat(f)];if(!O){if(!Intl.PluralRules)throw new td('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',d.MISSING_INTL_API,s);var M=n.getPluralRules(e,{type:c.pluralType}).select(f-(c.offset||0));O=c.options[M]||c.options.other}if(!O)throw new tp(c.value,f,Object.keys(c.options),s);a.push.apply(a,ty(O.value,e,n,r,i,f-(c.offset||0)));continue}}return a.length<2?a:a.reduce(function(t,e){var n=t[t.length-1];return n&&n.type===p.literal&&e.type===p.literal?n.value+=e.value:t.push(e),t},[])}function tb(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,n){t[e]=n}}}}}(a=p||(p={}))[a.literal=0]="literal",a[a.object=1]="object";var tE=function(){function t(e,n,r,i){var o,s,a=this;if(void 0===n&&(n=t.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=a.formatToParts(t);if(1===e.length)return e[0].value;var n=e.reduce(function(t,e){return t.length&&e.type===p.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return n.length<=1?n[0]||"":n},this.formatToParts=function(t){return ty(a.ast,a.locales,a.formatters,a.formats,t,void 0,a.message)},this.resolvedOptions=function(){return{locale:a.resolvedLocale.toString()}},this.getAst=function(){return a.ast},this.locales=n,this.resolvedLocale=t.resolveLocale(n),"string"==typeof e){if(this.message=e,!t.__parse)throw TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=t.__parse(e,{ignoreTag:null==i?void 0:i.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw TypeError("A message must be provided as a String or AST.");this.formats=(o=t.formats,r?Object.keys(o).reduce(function(t,e){var n,i;return t[e]=(n=o[e],(i=r[e])?(0,m.pi)((0,m.pi)((0,m.pi)({},n||{}),i||{}),Object.keys(n).reduce(function(t,e){return t[e]=(0,m.pi)((0,m.pi)({},n[e]),i[e]||{}),t},{})):n),t},(0,m.pi)({},o)):o),this.formatters=i&&i.formatters||(void 0===(s=this.formatterCache)&&(s={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:ts(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,(0,m.ev)([void 0],e,!1)))},{cache:tb(s.number),strategy:tf.variadic}),getDateTimeFormat:ts(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,(0,m.ev)([void 0],e,!1)))},{cache:tb(s.dateTime),strategy:tf.variadic}),getPluralRules:ts(function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,(0,m.ev)([void 0],e,!1)))},{cache:tb(s.pluralRules),strategy:tf.variadic})})}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return new Intl.Locale(e.length>0?e[0]:"string"==typeof t?t:t[0])},t.__parse=to,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}(),tw=tE},87957:function(t,e,n){var r=n(73972)(n(26443),"DataView");t.exports=r},74581:function(t,e,n){var r=n(52201),i=n(8e3),o=n(197),s=n(81057),a=n(50074);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},82845:function(t,e,n){var r=n(28096),i=n(81947),o=n(19793),s=n(71671),a=n(30432);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},65685:function(t,e,n){var r=n(73972)(n(26443),"Map");t.exports=r},54162:function(t,e,n){var r=n(47059),i=n(67639),o=n(37700),s=n(73088),a=n(15515);function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=s,u.prototype.set=a,t.exports=u},46373:function(t,e,n){var r=n(73972)(n(26443),"Promise");t.exports=r},36105:function(t,e,n){var r=n(73972)(n(26443),"Set");t.exports=r},89832:function(t,e,n){var r=n(54162),i=n(87626),o=n(12443);function s(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}s.prototype.add=s.prototype.push=i,s.prototype.has=o,t.exports=s},11502:function(t,e,n){var r=n(82845),i=n(1924),o=n(61794),s=n(31614),a=n(22804),u=n(10733);function l(t){var e=this.__data__=new r(t);this.size=e.size}l.prototype.clear=i,l.prototype.delete=o,l.prototype.get=s,l.prototype.has=a,l.prototype.set=u,t.exports=l},72604:function(t,e,n){var r=n(26443).Symbol;t.exports=r},2560:function(t,e,n){var r=n(26443).Uint8Array;t.exports=r},94726:function(t,e,n){var r=n(73972)(n(26443),"WeakMap");t.exports=r},7315:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n<r;){var s=t[n];e(s,n,t)&&(o[i++]=s)}return o}},25394:function(t,e,n){var r=n(86290),i=n(4193),o=n(62274),s=n(18244),a=n(78866),u=n(2026),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=o(t),c=!n&&i(t),h=!n&&!c&&s(t),f=!n&&!c&&!h&&u(t),d=n||c||h||f,p=d?r(t.length,String):[],m=p.length;for(var v in t)(e||l.call(t,v))&&!(d&&("length"==v||h&&("offset"==v||"parent"==v)||f&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||a(v,m)))&&p.push(v);return p}},37273:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},86728:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},43957:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},82284:function(t,e,n){var r=n(47596);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return -1}},97605:function(t,e,n){var r=n(46218),i=n(33627)(r);t.exports=i},17242:function(t,e,n){var r=n(51e3)();t.exports=r},46218:function(t,e,n){var r=n(17242),i=n(88002);t.exports=function(t,e){return t&&r(t,e,i)}},33166:function(t,e,n){var r=n(28277),i=n(22434);t.exports=function(t,e){e=r(e,t);for(var n=0,o=e.length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},83369:function(t,e,n){var r=n(86728),i=n(62274);t.exports=function(t,e,n){var o=e(t);return i(t)?o:r(o,n(t))}},67615:function(t,e,n){var r=n(72604),i=n(42791),o=n(9275),s=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?i(t):o(t)}},55594:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},92020:function(t,e,n){var r=n(67615),i=n(13857);t.exports=function(t){return i(t)&&"[object Arguments]"==r(t)}},66463:function(t,e,n){var r=n(62164),i=n(13857);t.exports=function t(e,n,o,s,a){return e===n||(null!=e&&null!=n&&(i(e)||i(n))?r(e,n,o,s,t,a):e!=e&&n!=n)}},62164:function(t,e,n){var r=n(11502),i=n(22979),o=n(59059),s=n(75638),a=n(41562),u=n(62274),l=n(18244),c=n(2026),h="[object Arguments]",f="[object Array]",d="[object Object]",p=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,m,v,g){var y=u(t),b=u(e),E=y?f:a(t),w=b?f:a(e);E=E==h?d:E,w=w==h?d:w;var _=E==d,x=w==d,S=E==w;if(S&&l(t)){if(!l(e))return!1;y=!0,_=!1}if(S&&!_)return g||(g=new r),y||c(t)?i(t,e,n,m,v,g):o(t,e,E,n,m,v,g);if(!(1&n)){var T=_&&p.call(t,"__wrapped__"),C=x&&p.call(e,"__wrapped__");if(T||C){var P=T?t.value():t,A=C?e.value():e;return g||(g=new r),v(P,A,n,m,g)}}return!!S&&(g||(g=new r),s(t,e,n,m,v,g))}},66987:function(t,e,n){var r=n(11502),i=n(66463);t.exports=function(t,e,n,o){var s=n.length,a=s,u=!o;if(null==t)return!a;for(t=Object(t);s--;){var l=n[s];if(u&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++s<a;){var c=(l=n[s])[0],h=t[c],f=l[1];if(u&&l[2]){if(void 0===h&&!(c in t))return!1}else{var d=new r;if(o)var p=o(h,f,c,t,e,d);if(!(void 0===p?i(f,h,3,o,d):p))return!1}}return!0}},9025:function(t,e,n){var r=n(6095),i=n(5096),o=n(50420),s=n(70582),a=/^\[object .+?Constructor\]$/,u=Object.prototype,l=Function.prototype.toString,c=u.hasOwnProperty,h=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||i(t))&&(r(t)?h:a).test(s(t))}},10193:function(t,e,n){var r=n(67615),i=n(74840),o=n(13857),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&i(t.length)&&!!s[r(t)]}},58873:function(t,e,n){var r=n(73431),i=n(43466),o=n(28165),s=n(62274),a=n(81384);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?s(t)?i(t[0],t[1]):r(t):a(t)}},45094:function(t,e,n){var r=n(42323),i=n(93180),o=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return i(t);var e=[];for(var n in Object(t))o.call(t,n)&&"constructor"!=n&&e.push(n);return e}},6846:function(t,e,n){var r=n(97605),i=n(4749);t.exports=function(t,e){var n=-1,o=i(t)?Array(t.length):[];return r(t,function(t,r,i){o[++n]=e(t,r,i)}),o}},73431:function(t,e,n){var r=n(66987),i=n(87449),o=n(67130);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},43466:function(t,e,n){var r=n(66463),i=n(57918),o=n(71005),s=n(22019),a=n(67971),u=n(67130),l=n(22434);t.exports=function(t,e){return s(t)&&a(e)?u(l(t),e):function(n){var s=i(n,t);return void 0===s&&s===e?o(n,t):r(e,s,3)}}},78201:function(t,e,n){var r=n(37273),i=n(33166),o=n(58873),s=n(6846),a=n(41062),u=n(6781),l=n(14464),c=n(28165),h=n(62274);t.exports=function(t,e,n){e=e.length?r(e,function(t){return h(t)?function(e){return i(e,1===t.length?t[0]:t)}:t}):[c];var f=-1;return e=r(e,u(o)),a(s(t,function(t,n,i){return{criteria:r(e,function(e){return e(t)}),index:++f,value:t}}),function(t,e){return l(t,e,n)})}},93376:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},32669:function(t,e,n){var r=n(33166);t.exports=function(t){return function(e){return r(e,t)}}},41062:function(t){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},86290:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},29452:function(t,e,n){var r=n(72604),i=n(37273),o=n(62274),s=n(48874),a=1/0,u=r?r.prototype:void 0,l=u?u.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(s(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-a?"-0":n}},6781:function(t){t.exports=function(t){return function(e){return t(e)}}},99115:function(t){t.exports=function(t,e){return t.has(e)}},28277:function(t,e,n){var r=n(62274),i=n(22019),o=n(70047),s=n(78651);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(s(t))}},53761:function(t,e,n){var r=n(48874);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,s=r(t),a=void 0!==e,u=null===e,l=e==e,c=r(e);if(!u&&!c&&!s&&t>e||s&&a&&l&&!u&&!c||i&&a&&l||!n&&l||!o)return 1;if(!i&&!s&&!c&&t<e||c&&n&&o&&!i&&!s||u&&n&&o||!a&&o||!l)return -1}return 0}},14464:function(t,e,n){var r=n(53761);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,s=e.criteria,a=o.length,u=n.length;++i<a;){var l=r(o[i],s[i]);if(l){if(i>=u)return l;return l*("desc"==n[i]?-1:1)}}return t.index-e.index}},83896:function(t,e,n){var r=n(26443)["__core-js_shared__"];t.exports=r},33627:function(t,e,n){var r=n(4749);t.exports=function(t,e){return function(n,i){if(null==n)return n;if(!r(n))return t(n,i);for(var o=n.length,s=e?o:-1,a=Object(n);(e?s--:++s<o)&&!1!==i(a[s],s,a););return n}}},51e3:function(t){t.exports=function(t){return function(e,n,r){for(var i=-1,o=Object(e),s=r(e),a=s.length;a--;){var u=s[t?a:++i];if(!1===n(o[u],u,o))break}return e}}},22979:function(t,e,n){var r=n(89832),i=n(43957),o=n(99115);t.exports=function(t,e,n,s,a,u){var l=1&n,c=t.length,h=e.length;if(c!=h&&!(l&&h>c))return!1;var f=u.get(t),d=u.get(e);if(f&&d)return f==e&&d==t;var p=-1,m=!0,v=2&n?new r:void 0;for(u.set(t,e),u.set(e,t);++p<c;){var g=t[p],y=e[p];if(s)var b=l?s(y,g,p,e,t,u):s(g,y,p,t,e,u);if(void 0!==b){if(b)continue;m=!1;break}if(v){if(!i(e,function(t,e){if(!o(v,e)&&(g===t||a(g,t,n,s,u)))return v.push(e)})){m=!1;break}}else if(!(g===y||a(g,y,n,s,u))){m=!1;break}}return u.delete(t),u.delete(e),m}},59059:function(t,e,n){var r=n(72604),i=n(2560),o=n(47596),s=n(22979),a=n(61250),u=n(81924),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;t.exports=function(t,e,n,r,l,h,f){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)break;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":if(t.byteLength!=e.byteLength||!h(new i(t),new i(e)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var d=a;case"[object Set]":var p=1&r;if(d||(d=u),t.size!=e.size&&!p)break;var m=f.get(t);if(m)return m==e;r|=2,f.set(t,e);var v=s(d(t),d(e),r,l,h,f);return f.delete(t),v;case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},75638:function(t,e,n){var r=n(18648),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,s,a){var u=1&n,l=r(t),c=l.length;if(c!=r(e).length&&!u)return!1;for(var h=c;h--;){var f=l[h];if(!(u?f in e:i.call(e,f)))return!1}var d=a.get(t),p=a.get(e);if(d&&p)return d==e&&p==t;var m=!0;a.set(t,e),a.set(e,t);for(var v=u;++h<c;){var g=t[f=l[h]],y=e[f];if(o)var b=u?o(y,g,f,e,t,a):o(g,y,f,t,e,a);if(!(void 0===b?g===y||s(g,y,n,o,a):b)){m=!1;break}v||(v="constructor"==f)}if(m&&!v){var E=t.constructor,w=e.constructor;E!=w&&"constructor"in t&&"constructor"in e&&!("function"==typeof E&&E instanceof E&&"function"==typeof w&&w instanceof w)&&(m=!1)}return a.delete(t),a.delete(e),m}},35722:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},18648:function(t,e,n){var r=n(83369),i=n(23495),o=n(88002);t.exports=function(t){return r(t,o,i)}},83110:function(t,e,n){var r=n(49112);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},87449:function(t,e,n){var r=n(67971),i=n(88002);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],s=t[o];e[n]=[o,s,r(s)]}return e}},73972:function(t,e,n){var r=n(9025),i=n(43407);t.exports=function(t,e){var n=i(t,e);return r(n)?n:void 0}},42791:function(t,e,n){var r=n(72604),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[a]=n:delete t[a]),i}},23495:function(t,e,n){var r=n(7315),i=n(42487),o=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:r(s(t=Object(t)),function(e){return o.call(t,e)})}:i;t.exports=a},41562:function(t,e,n){var r=n(87957),i=n(65685),o=n(46373),s=n(36105),a=n(94726),u=n(67615),l=n(70582),c="[object Map]",h="[object Promise]",f="[object Set]",d="[object WeakMap]",p="[object DataView]",m=l(r),v=l(i),g=l(o),y=l(s),b=l(a),E=u;(r&&E(new r(new ArrayBuffer(1)))!=p||i&&E(new i)!=c||o&&E(o.resolve())!=h||s&&E(new s)!=f||a&&E(new a)!=d)&&(E=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?l(n):"";if(r)switch(r){case m:return p;case v:return c;case g:return h;case y:return f;case b:return d}return e}),t.exports=E},43407:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},31474:function(t,e,n){var r=n(28277),i=n(4193),o=n(62274),s=n(78866),a=n(74840),u=n(22434);t.exports=function(t,e,n){e=r(e,t);for(var l=-1,c=e.length,h=!1;++l<c;){var f=u(e[l]);if(!(h=null!=t&&n(t,f)))break;t=t[f]}return h||++l!=c?h:!!(c=null==t?0:t.length)&&a(c)&&s(f,c)&&(o(t)||i(t))}},52201:function(t,e,n){var r=n(22995);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},8e3:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},197:function(t,e,n){var r=n(22995),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return i.call(e,t)?e[t]:void 0}},81057:function(t,e,n){var r=n(22995),i=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:i.call(e,t)}},50074:function(t,e,n){var r=n(22995);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},78866:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},22019:function(t,e,n){var r=n(62274),i=n(48874),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!!("number"==n||"symbol"==n||"boolean"==n||null==t||i(t))||s.test(t)||!o.test(t)||null!=e&&t in Object(e)}},49112:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5096:function(t,e,n){var r,i=n(83896),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!o&&o in t}},42323:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},67971:function(t,e,n){var r=n(50420);t.exports=function(t){return t==t&&!r(t)}},28096:function(t){t.exports=function(){this.__data__=[],this.size=0}},81947:function(t,e,n){var r=n(82284),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():i.call(e,n,1),--this.size,!0)}},19793:function(t,e,n){var r=n(82284);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},71671:function(t,e,n){var r=n(82284);t.exports=function(t){return r(this.__data__,t)>-1}},30432:function(t,e,n){var r=n(82284);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},47059:function(t,e,n){var r=n(74581),i=n(82845),o=n(65685);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},67639:function(t,e,n){var r=n(83110);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},37700:function(t,e,n){var r=n(83110);t.exports=function(t){return r(this,t).get(t)}},73088:function(t,e,n){var r=n(83110);t.exports=function(t){return r(this,t).has(t)}},15515:function(t,e,n){var r=n(83110);t.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},61250:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},67130:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},2119:function(t,e,n){var r=n(77111);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},22995:function(t,e,n){var r=n(73972)(Object,"create");t.exports=r},93180:function(t,e,n){var r=n(74006)(Object.keys,Object);t.exports=r},47425:function(t,e,n){t=n.nmd(t);var r=n(35722),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,s=o&&o.exports===i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;if(t)return t;return s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},9275:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},74006:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},26443:function(t,e,n){var r=n(35722),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},87626:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},12443:function(t){t.exports=function(t){return this.__data__.has(t)}},81924:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},1924:function(t,e,n){var r=n(82845);t.exports=function(){this.__data__=new r,this.size=0}},61794:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},31614:function(t){t.exports=function(t){return this.__data__.get(t)}},22804:function(t){t.exports=function(t){return this.__data__.has(t)}},10733:function(t,e,n){var r=n(82845),i=n(65685),o=n(54162);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<199)return s.push([t,e]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(t,e),this.size=n.size,this}},70047:function(t,e,n){var r=n(2119),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,s=r(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)}),e});t.exports=s},22434:function(t,e,n){var r=n(48874),i=1/0;t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-i?"-0":e}},70582:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},47596:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},57918:function(t,e,n){var r=n(33166);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},71005:function(t,e,n){var r=n(55594),i=n(31474);t.exports=function(t,e){return null!=t&&i(t,e,r)}},28165:function(t){t.exports=function(t){return t}},4193:function(t,e,n){var r=n(92020),i=n(13857),o=Object.prototype,s=o.hasOwnProperty,a=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return i(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},62274:function(t){var e=Array.isArray;t.exports=e},4749:function(t,e,n){var r=n(6095),i=n(74840);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},18244:function(t,e,n){t=n.nmd(t);var r=n(26443),i=n(41570),o=e&&!e.nodeType&&e,s=o&&t&&!t.nodeType&&t,a=s&&s.exports===o?r.Buffer:void 0,u=a?a.isBuffer:void 0;t.exports=u||i},6095:function(t,e,n){var r=n(67615),i=n(50420);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},74840:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},50420:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},13857:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},48874:function(t,e,n){var r=n(67615),i=n(13857);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},2026:function(t,e,n){var r=n(10193),i=n(6781),o=n(47425),s=o&&o.isTypedArray,a=s?i(s):r;t.exports=a},88002:function(t,e,n){var r=n(25394),i=n(45094),o=n(4749);t.exports=function(t){return o(t)?r(t):i(t)}},77111:function(t,e,n){var r=n(54162);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},37951:function(t,e,n){var r=n(78201),i=n(62274);t.exports=function(t,e,n,o){return null==t?[]:(i(e)||(e=null==e?[]:[e]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},81384:function(t,e,n){var r=n(93376),i=n(32669),o=n(22019),s=n(22434);t.exports=function(t){return o(t)?r(s(t)):i(t)}},42487:function(t){t.exports=function(){return[]}},41570:function(t){t.exports=function(){return!1}},78651:function(t,e,n){var r=n(29452);t.exports=function(t){return null==t?"":r(t)}},14641:function(t,e,n){"use strict";var r=n(38340);function i(){}function o(){}o.resetWarningCache=i,t.exports=function(){function t(t,e,n,i,o,s){if(s!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},69160:function(t,e,n){t.exports=n(14641)()},38340:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44882:function(t,e){"use strict";var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,a=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,l=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,v=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,E=n?Symbol.for("react.scope"):60119;function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case r:switch(t=t.type){case c:case h:case o:case a:case s:case d:return t;default:switch(t=t&&t.$$typeof){case l:case f:case v:case m:case u:return t;default:return e}}case i:return e}}}function _(t){return w(t)===h}e.AsyncMode=c,e.ConcurrentMode=h,e.ContextConsumer=l,e.ContextProvider=u,e.Element=r,e.ForwardRef=f,e.Fragment=o,e.Lazy=v,e.Memo=m,e.Portal=i,e.Profiler=a,e.StrictMode=s,e.Suspense=d,e.isAsyncMode=function(t){return _(t)||w(t)===c},e.isConcurrentMode=_,e.isContextConsumer=function(t){return w(t)===l},e.isContextProvider=function(t){return w(t)===u},e.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===r},e.isForwardRef=function(t){return w(t)===f},e.isFragment=function(t){return w(t)===o},e.isLazy=function(t){return w(t)===v},e.isMemo=function(t){return w(t)===m},e.isPortal=function(t){return w(t)===i},e.isProfiler=function(t){return w(t)===a},e.isStrictMode=function(t){return w(t)===s},e.isSuspense=function(t){return w(t)===d},e.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===h||t===a||t===s||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===v||t.$$typeof===m||t.$$typeof===u||t.$$typeof===l||t.$$typeof===f||t.$$typeof===y||t.$$typeof===b||t.$$typeof===E||t.$$typeof===g)},e.typeOf=w},61704:function(t,e,n){"use strict";t.exports=n(44882)},19506:function(t,e,n){"use strict";n.d(e,{ZT:function(){return i},_T:function(){return s},ev:function(){return a},pi:function(){return o}});var r=function(t,e){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function s(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function a(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}},69947:function(t,e,n){"use strict";var r=n(2265).createContext(void 0);e.IntlContext=r},56995:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2265),i=n(17988),o=n(69947),s=r&&r.__esModule?r:{default:r};e.IntlProvider=function(t){let{children:e,defaultTranslationValues:n,formats:a,getMessageFallback:u,locale:l,messages:c,now:h,onError:f,timeZone:d}=t,[p]=r.useState(()=>new Map),m=r.useMemo(()=>({...i.initializeConfig({locale:l,defaultTranslationValues:n,formats:a,getMessageFallback:u,messages:c,now:h,onError:f,timeZone:d}),messageFormatCache:p}),[n,a,u,l,p,c,h,f,d]);return s.default.createElement(o.IntlContext.Provider,{value:m},e)}},78764:function(t,e,n){"use strict";var r=n(2265),i=n(69947);function o(){let t=r.useContext(i.IntlContext);if(!t)throw Error(void 0);return t}e.useIntlContext=o,e.useLocale=function(){return o().locale}},96889:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(73132),i=n(17988);n(62837),n(2265),e.IntlError=r.IntlError,e.IntlErrorCode=r.IntlErrorCode,e.createFormatter=r.createFormatter,e.initializeConfig=i.initializeConfig,e.createTranslator=function(t){let{getMessageFallback:e=i.defaultGetMessageFallback,messages:n,namespace:o,onError:s=i.defaultOnError,...a}=t;return function(t,e){let{getMessageFallback:n,messages:i,namespace:o,onError:s,...a}=t;return i=i["!"],o=r.resolveNamespace(o,"!"),r.createBaseTranslator({...a,onError:s,getMessageFallback:n,messages:i,namespace:o})}({...a,onError:s,getMessageFallback:e,messages:{"!":n},namespace:o?"!.".concat(o):"!"},0)}},73132:function(t,e,n){"use strict";var r,i=n(62837),o=n(2265),s=n(17988),a=i&&i.__esModule?i:{default:i};function u(t,e,n){var r;return(e="symbol"==typeof(r=function(t,e){if("object"!=typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?r:String(r))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}let l=((r={}).MISSING_MESSAGE="MISSING_MESSAGE",r.MISSING_FORMAT="MISSING_FORMAT",r.ENVIRONMENT_FALLBACK="ENVIRONMENT_FALLBACK",r.INSUFFICIENT_PATH="INSUFFICIENT_PATH",r.INVALID_MESSAGE="INVALID_MESSAGE",r.INVALID_KEY="INVALID_KEY",r.FORMATTING_ERROR="FORMATTING_ERROR",r);class c extends Error{constructor(t,e){let n=t;e&&(n+=": "+e),super(n),u(this,"code",void 0),u(this,"originalMessage",void 0),this.code=t,e&&(this.originalMessage=e)}}function h(t,e){return t?Object.keys(t).reduce((n,r)=>(n[r]={timeZone:e,...t[r]},n),{}):t}function f(t,e,n,r){let i=s.joinPath(r,n);if(!e)throw Error(i);let o=e;return n.split(".").forEach(e=>{let n=o[e];if(null==e||null==n)throw Error(i+" (".concat(t,")"));o=n}),o}let d=365/12*86400,p={second:1,seconds:1,minute:60,minutes:60,hour:3600,hours:3600,day:86400,days:86400,week:604800,weeks:604800,month:365/12*86400,months:365/12*86400,quarter:365/12*259200,quarters:365/12*259200,year:31536e3,years:31536e3};e.IntlError=c,e.IntlErrorCode=l,e.createBaseTranslator=function(t){let e=function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:s.defaultOnError;try{if(!e)throw Error(void 0);let r=n?f(t,e,n):e;if(!r)throw Error(n);return r}catch(e){let t=new c(l.MISSING_MESSAGE,e.message);return r(t),t}}(t.locale,t.messages,t.namespace,t.onError);return function(t){let{defaultTranslationValues:e,formats:n,getMessageFallback:r=s.defaultGetMessageFallback,locale:i,messageFormatCache:u,messagesOrError:d,namespace:p,onError:m,timeZone:v}=t;function g(t,e,n){let i=new c(e,n);return m(i),r({error:i,key:t,namespace:p})}function y(t,m,y){let b,E;if(d instanceof c)return r({error:d,key:t,namespace:p});try{b=f(i,d,t,p)}catch(e){return g(t,l.MISSING_MESSAGE,e.message)}let w=s.joinPath(i,p,t,String(b));if(null!=u&&u.has(w))E=u.get(w);else{if("object"==typeof b){let e;return g(t,Array.isArray(b)?l.INVALID_MESSAGE:l.INSUFFICIENT_PATH,e)}let e=function(t,e){if(e)return;let n=t.replace(/'([{}])/gi,"$1");return/<|{/.test(n)?void 0:n}(b,m);if(e)return e;try{E=new a.default(b,i,function(t,e){let n=e?{...t,dateTime:h(t.dateTime,e)}:t,r=a.default.formats.date,i=e?h(r,e):r,o=a.default.formats.time,s=e?h(o,e):o;return{...n,date:{...i,...null==n?void 0:n.dateTime},time:{...s,...null==n?void 0:n.dateTime}}}({...n,...y},v),{formatters:{getNumberFormat:(t,e)=>new Intl.NumberFormat(t,e),getDateTimeFormat:(t,e)=>new Intl.DateTimeFormat(t,{timeZone:v,...e}),getPluralRules:(t,e)=>new Intl.PluralRules(t,e)}})}catch(e){return g(t,l.INVALID_MESSAGE,e.message)}null==u||u.set(w,E)}try{let t=E.format(function(t){if(0===Object.keys(t).length)return;let e={};return Object.keys(t).forEach(n=>{let r,i=0,s=t[n];r="function"==typeof s?t=>{let e=s(t);return o.isValidElement(e)?o.cloneElement(e,{key:n+i++}):e}:s,e[n]=r}),e}({...e,...m}));if(null==t)throw Error(void 0);return o.isValidElement(t)||Array.isArray(t)||"string"==typeof t?t:String(t)}catch(e){return g(t,l.FORMATTING_ERROR,e.message)}}function b(t,e,n){let r=y(t,e,n);return"string"!=typeof r?g(t,l.INVALID_MESSAGE,void 0):r}return b.rich=y,b.markup=(t,e,n)=>{let i=y(t,e,n);if("string"!=typeof i){let e=new c(l.FORMATTING_ERROR,void 0);return m(e),r({error:e,key:t,namespace:p})}return i},b.raw=t=>{if(d instanceof c)return r({error:d,key:t,namespace:p});try{return f(i,d,t,p)}catch(e){return g(t,l.MISSING_MESSAGE,e.message)}},b}({...t,messagesOrError:e})},e.createFormatter=function(t){let{formats:e,locale:n,now:r,onError:i=s.defaultOnError,timeZone:o}=t;function a(t,e,n,r){let o;try{o=function(t,e){let n;if("string"==typeof e){if(!(n=null==t?void 0:t[e])){let t=new c(l.MISSING_FORMAT,void 0);throw i(t),t}}else n=e;return n}(n,e)}catch(e){return String(t)}try{return r(o)}catch(e){return i(new c(l.FORMATTING_ERROR,e.message)),String(t)}}return{dateTime:function(t,r){return a(t,r,null==e?void 0:e.dateTime,e=>{var r;return null!==(r=e)&&void 0!==r&&r.timeZone||(o?e={...e,timeZone:o}:i(new c(l.ENVIRONMENT_FALLBACK,void 0))),new Intl.DateTimeFormat(n,e).format(t)})},number:function(t,r){return a(t,r,null==e?void 0:e.number,e=>new Intl.NumberFormat(n,e).format(t))},relativeTime:function(t,e){try{let o=new Date(t),s=e instanceof Date||"number"==typeof e?new Date(e):void 0!==(null==e?void 0:e.now)?new Date(e.now):r||(i(new c(l.ENVIRONMENT_FALLBACK,void 0)),new Date),a=(o.getTime()-s.getTime())/1e3,u="number"==typeof e||e instanceof Date||void 0===(null==e?void 0:e.unit)?function(t){let e=Math.abs(t);return e<60?"second":e<3600?"minute":e<86400?"hour":e<604800?"day":e<d?"week":e<31536e3?"month":"year"}(a):e.unit,h=Math.round(a/p[u]);return new Intl.RelativeTimeFormat(n,{numeric:"second"===u?"auto":"always"}).format(h,u)}catch(e){return i(new c(l.FORMATTING_ERROR,e.message)),String(t)}},list:function(t,r){return a(t,r,null==e?void 0:e.list,e=>new Intl.ListFormat(n,e).format(t))}}},e.resolveNamespace=function(t,e){return t===e?void 0:t.slice((e+".").length)}},61996:function(t,e,n){"use strict";var r=n(73132),i=n(96889),o=n(17988),s=n(56995),a=n(12068),u=n(78764);n(62837),n(2265),n(69947),r.IntlError,r.IntlErrorCode,r.createFormatter,e.eX=i.createTranslator,o.initializeConfig,s.IntlProvider,a.useFormatter,a.useMessages,a.useNow,a.useTimeZone,a.useTranslations,u.useLocale},17988:function(t,e){"use strict";function n(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter(Boolean).join(".")}function r(t){return n(t.namespace,t.key)}function i(t){console.error(t)}e.defaultGetMessageFallback=r,e.defaultOnError=i,e.initializeConfig=function(t){let{getMessageFallback:e,messages:n,onError:o,...s}=t;return{...s,messages:n,onError:o||i,getMessageFallback:e||r}},e.joinPath=n},12068:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(56995),i=n(78764),o=n(2265),s=n(73132);n(17988),n(69947),n(62837);let a=!1,u="undefined"==typeof window;e.IntlProvider=r.IntlProvider,e.useLocale=i.useLocale,e.useFormatter=function(){let{formats:t,locale:e,now:n,onError:r,timeZone:a}=i.useIntlContext();return o.useMemo(()=>s.createFormatter({formats:t,locale:e,now:n,onError:r,timeZone:a}),[t,n,e,r,a])},e.useMessages=function(){let t=i.useIntlContext();if(!t.messages)throw Error(void 0);return t.messages},e.useNow=function(t){let e=null==t?void 0:t.updateInterval,{now:n}=i.useIntlContext(),[r,s]=o.useState(n||new Date);return o.useEffect(()=>{if(!e)return;let t=setInterval(()=>{s(new Date)},e);return()=>{clearInterval(t)}},[n,e]),r},e.useTimeZone=function(){return i.useIntlContext().timeZone},e.useTranslations=function(t){return function(t,e,n){let{defaultTranslationValues:r,formats:l,getMessageFallback:c,locale:h,messageFormatCache:f,onError:d,timeZone:p}=i.useIntlContext();return t=t["!"],e=s.resolveNamespace(e,"!"),p||a||!u||(a=!0,d(new s.IntlError(s.IntlErrorCode.ENVIRONMENT_FALLBACK,void 0))),o.useMemo(()=>s.createBaseTranslator({messageFormatCache:f,getMessageFallback:c,messages:t,defaultTranslationValues:r,namespace:e,onError:d,formats:l,locale:h,timeZone:p}),[f,c,t,e,d,r,l,h,p])}({"!":i.useIntlContext().messages},t?"!.".concat(t):"!",0)}},3317:function(t,e,n){"use strict";n.d(e,{Z:function(){return o}});var r=n(2265);function i(t,e,n){return t[e]?t[e][0]?t[e][0][n]:t[e][n]:"contentBoxSize"===e?t.contentRect["inlineSize"===n?"width":"height"]:void 0}function o(t){void 0===t&&(t={});var e,n,o,s,a,u,l=t.onResize,c=(0,r.useRef)(void 0);c.current=l;var h=t.round||Math.round,f=(0,r.useRef)(),d=(0,r.useState)({width:void 0,height:void 0}),p=d[0],m=d[1],v=(0,r.useRef)(!1);(0,r.useEffect)(function(){return v.current=!1,function(){v.current=!0}},[]);var g=(0,r.useRef)({width:void 0,height:void 0}),y=(e=(0,r.useCallback)(function(e){return f.current&&f.current.box===t.box&&f.current.round===h||(f.current={box:t.box,round:h,instance:new ResizeObserver(function(e){var n=e[0],r="border-box"===t.box?"borderBoxSize":"device-pixel-content-box"===t.box?"devicePixelContentBoxSize":"contentBoxSize",o=i(n,r,"inlineSize"),s=i(n,r,"blockSize"),a=o?h(o):void 0,u=s?h(s):void 0;if(g.current.width!==a||g.current.height!==u){var l={width:a,height:u};g.current.width=a,g.current.height=u,c.current?c.current(l):v.current||m(l)}})}),f.current.instance.observe(e,{box:t.box}),function(){f.current&&f.current.instance.unobserve(e)}},[t.box,h]),n=t.ref,o=(0,r.useRef)(null),(s=(0,r.useRef)(null)).current=n,a=(0,r.useRef)(null),(0,r.useEffect)(function(){u()}),u=(0,r.useCallback)(function(){var t=a.current,n=s.current,r=t||(n?n instanceof Element?n:n.current:null);o.current&&o.current.element===r&&o.current.subscriber===e||(o.current&&o.current.cleanup&&o.current.cleanup(),o.current={element:r,subscriber:e,cleanup:r?e(r):void 0})},[e]),(0,r.useEffect)(function(){return function(){o.current&&o.current.cleanup&&(o.current.cleanup(),o.current=null)}},[]),(0,r.useCallback)(function(t){a.current=t,u()},[u]));return(0,r.useMemo)(function(){return{ref:y,width:p.width,height:p.height}},[y,p.width,p.height])}},58442:function(t,e,n){"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}n.d(e,{Z:function(){return r}})},5050:function(t,e,n){"use strict";function r(t){return t.split("-")[1]}function i(t){return"y"===t?"height":"width"}function o(t){return t.split("-")[0]}function s(t){return["top","bottom"].includes(o(t))?"x":"y"}function a(t,e,n){let a,{reference:u,floating:l}=t,c=u.x+u.width/2-l.width/2,h=u.y+u.height/2-l.height/2,f=s(e),d=i(f),p=u[d]/2-l[d]/2,m="x"===f;switch(o(e)){case"top":a={x:c,y:u.y-l.height};break;case"bottom":a={x:c,y:u.y+u.height};break;case"right":a={x:u.x+u.width,y:h};break;case"left":a={x:u.x-l.width,y:h};break;default:a={x:u.x,y:u.y}}switch(r(e)){case"start":a[f]-=p*(n&&m?-1:1);break;case"end":a[f]+=p*(n&&m?-1:1)}return a}n.d(e,{Cp:function(){return S},JB:function(){return h},RR:function(){return w},cv:function(){return T},dp:function(){return O},dr:function(){return A},oo:function(){return u},uY:function(){return P},x7:function(){return m}});let u=async(t,e,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,u=o.filter(Boolean),l=await (null==s.isRTL?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:f}=a(c,r,l),d=r,p={},m=0;for(let n=0;n<u.length;n++){let{name:o,fn:v}=u[n],{x:g,y:y,data:b,reset:E}=await v({x:h,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:p,rects:c,platform:s,elements:{reference:t,floating:e}});h=null!=g?g:h,f=null!=y?y:f,p={...p,[o]:{...p[o],...b}},E&&m<=50&&(m++,"object"==typeof E&&(E.placement&&(d=E.placement),E.rects&&(c=!0===E.rects?await s.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:h,y:f}=a(c,d,l)),n=-1)}return{x:h,y:f,placement:d,strategy:i,middlewareData:p}};function l(t,e){return"function"==typeof t?t(e):t}function c(t){return"number"!=typeof t?{top:0,right:0,bottom:0,left:0,...t}:{top:t,right:t,bottom:t,left:t}}function h(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function f(t,e){var n;void 0===e&&(e={});let{x:r,y:i,platform:o,rects:s,elements:a,strategy:u}=t,{boundary:f="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:m=!1,padding:v=0}=l(e,t),g=c(v),y=a[m?"floating"===p?"reference":"floating":p],b=h(await o.getClippingRect({element:null==(n=await (null==o.isElement?void 0:o.isElement(y)))||n?y:y.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:f,rootBoundary:d,strategy:u})),E="floating"===p?{...s.floating,x:r,y:i}:s.reference,w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),_=await (null==o.isElement?void 0:o.isElement(w))&&await (null==o.getScale?void 0:o.getScale(w))||{x:1,y:1},x=h(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({rect:E,offsetParent:w,strategy:u}):E);return{top:(b.top-x.top+g.top)/_.y,bottom:(x.bottom-b.bottom+g.bottom)/_.y,left:(b.left-x.left+g.left)/_.x,right:(x.right-b.right+g.right)/_.x}}let d=Math.min,p=Math.max,m=t=>({name:"arrow",options:t,async fn(e){let{x:n,y:o,placement:a,rects:u,platform:h,elements:f}=e,{element:m,padding:v=0}=l(t,e)||{};if(null==m)return{};let g=c(v),y={x:n,y:o},b=s(a),E=i(b),w=await h.getDimensions(m),_="y"===b,x=_?"clientHeight":"clientWidth",S=u.reference[E]+u.reference[b]-y[b]-u.floating[E],T=y[b]-u.reference[b],C=await (null==h.getOffsetParent?void 0:h.getOffsetParent(m)),P=C?C[x]:0;P&&await (null==h.isElement?void 0:h.isElement(C))||(P=f.floating[x]||u.floating[E]);let A=P/2-w[E]/2-1,O=d(g[_?"top":"left"],A),M=d(g[_?"bottom":"right"],A),N=P-w[E]-M,k=P/2-w[E]/2+(S/2-T/2),R=p(O,d(k,N)),D=null!=r(a)&&k!=R&&u.reference[E]/2-(k<O?O:M)-w[E]/2<0?k<O?O-k:N-k:0;return{[b]:y[b]-D,data:{[b]:R,centerOffset:k-R+D}}}}),v=["top","right","bottom","left"],g=(v.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]),{left:"right",right:"left",bottom:"top",top:"bottom"});function y(t){return t.replace(/left|right|bottom|top/g,t=>g[t])}let b={start:"end",end:"start"};function E(t){return t.replace(/start|end/g,t=>b[t])}let w=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,a,u,c;let{placement:h,middlewareData:d,rects:p,initialPlacement:m,platform:v,elements:g}=e,{mainAxis:b=!0,crossAxis:w=!0,fallbackPlacements:_,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:T=!0,...C}=l(t,e),P=o(h),A=o(m)===m,O=await (null==v.isRTL?void 0:v.isRTL(g.floating)),M=_||(A||!T?[y(m)]:function(t){let e=y(t);return[E(t),e,E(e)]}(m));_||"none"===S||M.push(...function(t,e,n,i){let s=r(t),a=function(t,e,n){let r=["left","right"],i=["right","left"];switch(t){case"top":case"bottom":return n?e?i:r:e?r:i;case"left":case"right":return e?["top","bottom"]:["bottom","top"];default:return[]}}(o(t),"start"===n,i);return s&&(a=a.map(t=>t+"-"+s),e&&(a=a.concat(a.map(E)))),a}(m,T,S,O));let N=[m,...M],k=await f(e,C),R=[],D=(null==(n=d.flip)?void 0:n.overflows)||[];if(b&&R.push(k[P]),w){let{main:t,cross:e}=function(t,e,n){void 0===n&&(n=!1);let o=r(t),a=s(t),u=i(a),l="x"===a?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[u]>e.floating[u]&&(l=y(l)),{main:l,cross:y(l)}}(h,p,O);R.push(k[t],k[e])}if(D=[...D,{placement:h,overflows:R}],!R.every(t=>t<=0)){let t=((null==(a=d.flip)?void 0:a.index)||0)+1,e=N[t];if(e)return{data:{index:t,overflows:D},reset:{placement:e}};let n=null==(u=D.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:u.placement;if(!n)switch(x){case"bestFit":{let t=null==(c=D.map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:c[0];t&&(n=t);break}case"initialPlacement":n=m}if(h!==n)return{reset:{placement:n}}}return{}}}};function _(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function x(t){return v.some(e=>t[e]>=0)}let S=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){let{rects:n}=e,{strategy:r="referenceHidden",...i}=l(t,e);switch(r){case"referenceHidden":{let t=_(await f(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:x(t)}}}case"escaped":{let t=_(await f(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:x(t)}}}default:return{}}}}},T=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){let{x:n,y:i}=e,a=await async function(t,e){let{placement:n,platform:i,elements:a}=t,u=await (null==i.isRTL?void 0:i.isRTL(a.floating)),c=o(n),h=r(n),f="x"===s(n),d=["left","top"].includes(c)?-1:1,p=u&&f?-1:1,m=l(e,t),{mainAxis:v,crossAxis:g,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return h&&"number"==typeof y&&(g="end"===h?-1*y:y),f?{x:g*p,y:v*d}:{x:v*d,y:g*p}}(e,t);return{x:n+a.x,y:i+a.y,data:a}}}};function C(t){return"x"===t?"y":"x"}let P=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){let{x:n,y:r,placement:i}=e,{mainAxis:a=!0,crossAxis:u=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...h}=l(t,e),m={x:n,y:r},v=await f(e,h),g=s(o(i)),y=C(g),b=m[g],E=m[y];if(a){let t="y"===g?"bottom":"right";b=p(b+v["y"===g?"top":"left"],d(b,b-v[t]))}if(u){let t="y"===y?"bottom":"right";E=p(E+v["y"===y?"top":"left"],d(E,E-v[t]))}let w=c.fn({...e,[g]:b,[y]:E});return{...w,data:{x:w.x-n,y:w.y-r}}}}},A=function(t){return void 0===t&&(t={}),{options:t,fn(e){let{x:n,y:r,placement:i,rects:a,middlewareData:u}=e,{offset:c=0,mainAxis:h=!0,crossAxis:f=!0}=l(t,e),d={x:n,y:r},p=s(i),m=C(p),v=d[p],g=d[m],y=l(c,e),b="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(h){let t="y"===p?"height":"width",e=a.reference[p]-a.floating[t]+b.mainAxis,n=a.reference[p]+a.reference[t]-b.mainAxis;v<e?v=e:v>n&&(v=n)}if(f){var E,w;let t="y"===p?"width":"height",e=["top","left"].includes(o(i)),n=a.reference[m]-a.floating[t]+(e&&(null==(E=u.offset)?void 0:E[m])||0)+(e?0:b.crossAxis),r=a.reference[m]+a.reference[t]+(e?0:(null==(w=u.offset)?void 0:w[m])||0)-(e?b.crossAxis:0);g<n?g=n:g>r&&(g=r)}return{[p]:v,[m]:g}}}},O=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){let n,i;let{placement:a,rects:u,platform:c,elements:h}=e,{apply:m=()=>{},...v}=l(t,e),g=await f(e,v),y=o(a),b=r(a),E="x"===s(a),{width:w,height:_}=u.floating;"top"===y||"bottom"===y?(n=y,i=b===(await (null==c.isRTL?void 0:c.isRTL(h.floating))?"start":"end")?"left":"right"):(i=y,n="end"===b?"top":"bottom");let x=_-g[n],S=w-g[i],T=!e.middlewareData.shift,C=x,P=S;if(E){let t=w-g.left-g.right;P=b||T?d(S,t):t}else{let t=_-g.top-g.bottom;C=b||T?d(x,t):t}if(T&&!b){let t=p(g.left,0),e=p(g.right,0),n=p(g.top,0),r=p(g.bottom,0);E?P=w-2*(0!==t||0!==e?t+e:p(g.left,g.right)):C=_-2*(0!==n||0!==r?n+r:p(g.top,g.bottom))}await m({...e,availableWidth:P,availableHeight:C});let A=await c.getDimensions(h.floating);return w!==A.width||_!==A.height?{reset:{rects:!0}}:{}}}}},83764:function(t,e,n){"use strict";n.d(e,{Me:function(){return L},oo:function(){return I}});var r=n(5050);function i(t){var e;return(null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function o(t){return i(t).getComputedStyle(t)}function s(t){return t instanceof i(t).Node}function a(t){return s(t)?(t.nodeName||"").toLowerCase():"#document"}function u(t){return t instanceof i(t).HTMLElement}function l(t){return t instanceof i(t).Element}function c(t){return"undefined"!=typeof ShadowRoot&&(t instanceof i(t).ShadowRoot||t instanceof ShadowRoot)}function h(t){let{overflow:e,overflowX:n,overflowY:r,display:i}=o(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&!["inline","contents"].includes(i)}function f(t){let e=d(),n=o(t);return"none"!==n.transform||"none"!==n.perspective||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(t=>(n.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(n.contain||"").includes(t))}function d(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function p(t){return["html","body","#document"].includes(a(t))}let m=Math.min,v=Math.max,g=Math.round,y=Math.floor,b=t=>({x:t,y:t});function E(t){let e=o(t),n=parseFloat(e.width)||0,r=parseFloat(e.height)||0,i=u(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:r,l=g(n)!==s||g(r)!==a;return l&&(n=s,r=a),{width:n,height:r,$:l}}function w(t){return l(t)?t:t.contextElement}function _(t){let e=w(t);if(!u(e))return b(1);let n=e.getBoundingClientRect(),{width:r,height:i,$:o}=E(e),s=(o?g(n.width):n.width)/r,a=(o?g(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}let x=b(0);function S(t,e,n){var r,o;if(void 0===e&&(e=!0),!d())return x;let s=t?i(t):window;return!n||e&&n!==s?x:{x:(null==(r=s.visualViewport)?void 0:r.offsetLeft)||0,y:(null==(o=s.visualViewport)?void 0:o.offsetTop)||0}}function T(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);let s=t.getBoundingClientRect(),a=w(t),u=b(1);e&&(o?l(o)&&(u=_(o)):u=_(t));let c=S(a,n,o),h=(s.left+c.x)/u.x,f=(s.top+c.y)/u.y,d=s.width/u.x,p=s.height/u.y;if(a){let t=i(a),e=o&&l(o)?i(o):o,n=t.frameElement;for(;n&&o&&e!==t;){let t=_(n),e=n.getBoundingClientRect(),r=getComputedStyle(n),o=e.left+(n.clientLeft+parseFloat(r.paddingLeft))*t.x,s=e.top+(n.clientTop+parseFloat(r.paddingTop))*t.y;h*=t.x,f*=t.y,d*=t.x,p*=t.y,h+=o,f+=s,n=i(n).frameElement}}return(0,r.JB)({width:d,height:p,x:h,y:f})}function C(t){return((s(t)?t.ownerDocument:t.document)||window.document).documentElement}function P(t){return l(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function A(t){return T(C(t)).left+P(t).scrollLeft}function O(t){if("html"===a(t))return t;let e=t.assignedSlot||t.parentNode||c(t)&&t.host||C(t);return c(e)?e.host:e}function M(t,e){var n;void 0===e&&(e=[]);let r=function t(e){let n=O(e);return p(n)?e.ownerDocument?e.ownerDocument.body:e.body:u(n)&&h(n)?n:t(n)}(t),o=r===(null==(n=t.ownerDocument)?void 0:n.body),s=i(r);return o?e.concat(s,s.visualViewport||[],h(r)?r:[]):e.concat(r,M(r))}function N(t,e,n){let s;if("viewport"===e)s=function(t,e){let n=i(t),r=C(t),o=n.visualViewport,s=r.clientWidth,a=r.clientHeight,u=0,l=0;if(o){s=o.width,a=o.height;let t=d();(!t||t&&"fixed"===e)&&(u=o.offsetLeft,l=o.offsetTop)}return{width:s,height:a,x:u,y:l}}(t,n);else if("document"===e)s=function(t){let e=C(t),n=P(t),r=t.ownerDocument.body,i=v(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=v(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),a=-n.scrollLeft+A(t),u=-n.scrollTop;return"rtl"===o(r).direction&&(a+=v(e.clientWidth,r.clientWidth)-i),{width:i,height:s,x:a,y:u}}(C(t));else if(l(e))s=function(t,e){let n=T(t,!0,"fixed"===e),r=n.top+t.clientTop,i=n.left+t.clientLeft,o=u(t)?_(t):b(1);return{width:t.clientWidth*o.x,height:t.clientHeight*o.y,x:i*o.x,y:r*o.y}}(e,n);else{let n=S(t);s={...e,x:e.x-n.x,y:e.y-n.y}}return(0,r.JB)(s)}function k(t,e){return u(t)&&"fixed"!==o(t).position?e?e(t):t.offsetParent:null}function R(t,e){let n=i(t);if(!u(t))return n;let r=k(t,e);for(;r&&["table","td","th"].includes(a(r))&&"static"===o(r).position;)r=k(r,e);return r&&("html"===a(r)||"body"===a(r)&&"static"===o(r).position&&!f(r))?n:r||function(t){let e=O(t);for(;u(e)&&!p(e);){if(f(e))return e;e=O(e)}return null}(t)||n}let D={getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:i}=t,s=[..."clippingAncestors"===n?function(t,e){let n=e.get(t);if(n)return n;let r=M(t).filter(t=>l(t)&&"body"!==a(t)),i=null,s="fixed"===o(t).position,u=s?O(t):t;for(;l(u)&&!p(u);){let e=o(u),n=f(u);n||"fixed"!==e.position||(i=null),(s?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||h(u)&&!n&&function t(e,n){let r=O(e);return!(r===n||!l(r)||p(r))&&("fixed"===o(r).position||t(r,n))}(t,u))?r=r.filter(t=>t!==u):i=e,u=O(u)}return e.set(t,r),r}(e,this._c):[].concat(n),r],u=s[0],c=s.reduce((t,n)=>{let r=N(e,n,i);return t.top=v(r.top,t.top),t.right=m(r.right,t.right),t.bottom=m(r.bottom,t.bottom),t.left=v(r.left,t.left),t},N(e,u,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:n,strategy:r}=t,i=u(n),o=C(n);if(n===o)return e;let s={scrollLeft:0,scrollTop:0},l=b(1),c=b(0);if((i||!i&&"fixed"!==r)&&(("body"!==a(n)||h(o))&&(s=P(n)),u(n))){let t=T(n);l=_(n),c.x=t.x+n.clientLeft,c.y=t.y+n.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+c.x,y:e.y*l.y-s.scrollTop*l.y+c.y}},isElement:l,getDimensions:function(t){return E(t)},getOffsetParent:R,getDocumentElement:C,getScale:_,async getElementRects(t){let{reference:e,floating:n,strategy:r}=t,i=this.getOffsetParent||R,o=this.getDimensions;return{reference:function(t,e,n){let r=u(e),i=C(e),o="fixed"===n,s=T(t,!0,o,e),l={scrollLeft:0,scrollTop:0},c=b(0);if(r||!r&&!o){if(("body"!==a(e)||h(i))&&(l=P(e)),u(e)){let t=T(e,!0,o,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=A(i))}return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}(e,await i(n),r),floating:{x:0,y:0,...await o(n)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>"rtl"===o(t).direction};function L(t,e,n,r){void 0===r&&(r={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=!0,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,l=w(t),c=i||o?[...l?M(l):[],...M(e)]:[];c.forEach(t=>{i&&t.addEventListener("scroll",n,{passive:!0}),o&&t.addEventListener("resize",n)});let h=l&&a?function(t,e){let n,r=null,i=C(t);function o(){clearTimeout(n),r&&r.disconnect(),r=null}return function s(a,u){void 0===a&&(a=!1),void 0===u&&(u=1),o();let{left:l,top:c,width:h,height:f}=t.getBoundingClientRect();if(a||e(),!h||!f)return;let d=y(c),p=y(i.clientWidth-(l+h)),m=y(i.clientHeight-(c+f)),v=y(l),g=!0;(r=new IntersectionObserver(t=>{let e=t[0].intersectionRatio;if(e!==u){if(!g)return s();0===e?n=setTimeout(()=>{s(!1,1e-7)},100):s(!1,e)}g=!1},{rootMargin:-d+"px "+-p+"px "+-m+"px "+-v+"px",threshold:u})).observe(t)}(!0),o}(l,n):null,f,d=null;s&&(d=new ResizeObserver(n),l&&!u&&d.observe(l),d.observe(e));let p=u?T(t):null;return u&&function e(){let r=T(t);p&&(r.x!==p.x||r.y!==p.y||r.width!==p.width||r.height!==p.height)&&n(),p=r,f=requestAnimationFrame(e)}(),n(),()=>{c.forEach(t=>{i&&t.removeEventListener("scroll",n),o&&t.removeEventListener("resize",n)}),h&&h(),d&&d.disconnect(),d=null,u&&cancelAnimationFrame(f)}}let I=(t,e,n)=>{let i=new Map,o={platform:D,...n},s={...o.platform,_c:i};return(0,r.oo)(t,e,{...o,platform:s})}},43251:function(t,e,n){"use strict";function r(t,e,{checkForDefaultPrevented:n=!0}={}){return function(r){if(null==t||t(r),!1===n||!r.defaultPrevented)return null==e?void 0:e(r)}}n.d(e,{M:function(){return r}})},53730:function(t,e,n){"use strict";n.d(e,{f:function(){return s}});var r=n(58442),i=n(2265),o=n(63999);let s=(0,i.forwardRef)((t,e)=>{let{children:n,width:s=10,height:a=5,...u}=t;return(0,i.createElement)(o.WV.svg,(0,r.Z)({},u,{ref:e,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),t.asChild?n:(0,i.createElement)("polygon",{points:"0,0 30,0 15,10"}))})},30651:function(t,e,n){"use strict";n.d(e,{F:function(){return i},e:function(){return o}});var r=n(2265);function i(...t){return e=>t.forEach(t=>{"function"==typeof t?t(e):null!=t&&(t.current=e)})}function o(...t){return(0,r.useCallback)(i(...t),t)}},80306:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});var r=n(2265);function i(t,e=[]){let n=[],i=()=>{let e=n.map(t=>(0,r.createContext)(t));return function(n){let i=(null==n?void 0:n[t])||e;return(0,r.useMemo)(()=>({[`__scope${t}`]:{...n,[t]:i}}),[n,i])}};return i.scopeName=t,[function(e,i){let o=(0,r.createContext)(i),s=n.length;function a(e){let{scope:n,children:i,...a}=e,u=(null==n?void 0:n[t][s])||o,l=(0,r.useMemo)(()=>a,Object.values(a));return(0,r.createElement)(u.Provider,{value:l},i)}return n=[...n,i],a.displayName=e+"Provider",[a,function(n,a){let u=(null==a?void 0:a[t][s])||o,l=(0,r.useContext)(u);if(l)return l;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${e}\``)}]},function(...t){let e=t[0];if(1===t.length)return e;let n=()=>{let n=t.map(t=>({useScope:t(),scopeName:t.scopeName}));return function(t){let i=n.reduce((e,{useScope:n,scopeName:r})=>{let i=n(t)[`__scope${r}`];return{...e,...i}},{});return(0,r.useMemo)(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return n.scopeName=e.scopeName,n}(i,...e)]}},57002:function(t,e,n){"use strict";let r,i;n.d(e,{Eh:function(){return eo},VY:function(){return ei},h_:function(){return er},fC:function(){return ee},xz:function(){return en}});var o,s,a,u,l,c,h=n(58442),f=n(2265),d=n.t(f,2),p=n(43251),m=n(30651),v=n(80306),g=n(63999),y=n(78851),b=n(27571);let E="dismissableLayer.update",w=(0,f.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_=(0,f.forwardRef)((t,e)=>{var n;let{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:u,onDismiss:l,...c}=t,d=(0,f.useContext)(w),[v,_]=(0,f.useState)(null),T=null!==(n=null==v?void 0:v.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,C]=(0,f.useState)({}),P=(0,m.e)(e,t=>_(t)),A=Array.from(d.layers),[O]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),M=A.indexOf(O),N=v?A.indexOf(v):-1,k=d.layersWithOutsidePointerEventsDisabled.size>0,R=N>=M,D=function(t,e=null==globalThis?void 0:globalThis.document){let n=(0,y.W)(t),r=(0,f.useRef)(!1),i=(0,f.useRef)(()=>{});return(0,f.useEffect)(()=>{let t=t=>{if(t.target&&!r.current){let r={originalEvent:t};function o(){S("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===t.pointerType?(e.removeEventListener("click",i.current),i.current=o,e.addEventListener("click",i.current,{once:!0})):o()}else e.removeEventListener("click",i.current);r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",t)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",t),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}(t=>{let e=t.target,n=[...d.branches].some(t=>t.contains(e));!R||n||(null==s||s(t),null==u||u(t),t.defaultPrevented||null==l||l())},T),L=function(t,e=null==globalThis?void 0:globalThis.document){let n=(0,y.W)(t),r=(0,f.useRef)(!1);return(0,f.useEffect)(()=>{let t=t=>{t.target&&!r.current&&S("dismissableLayer.focusOutside",n,{originalEvent:t},{discrete:!1})};return e.addEventListener("focusin",t),()=>e.removeEventListener("focusin",t)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(t=>{let e=t.target;[...d.branches].some(t=>t.contains(e))||(null==a||a(t),null==u||u(t),t.defaultPrevented||null==l||l())},T);return(0,b.e)(t=>{N!==d.layers.size-1||(null==o||o(t),!t.defaultPrevented&&l&&(t.preventDefault(),l()))},T),(0,f.useEffect)(()=>{if(v)return i&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(r=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(v)),d.layers.add(v),x(),()=>{i&&1===d.layersWithOutsidePointerEventsDisabled.size&&(T.body.style.pointerEvents=r)}},[v,T,i,d]),(0,f.useEffect)(()=>()=>{v&&(d.layers.delete(v),d.layersWithOutsidePointerEventsDisabled.delete(v),x())},[v,d]),(0,f.useEffect)(()=>{let t=()=>C({});return document.addEventListener(E,t),()=>document.removeEventListener(E,t)},[]),(0,f.createElement)(g.WV.div,(0,h.Z)({},c,{ref:P,style:{pointerEvents:k?R?"auto":"none":void 0,...t.style},onFocusCapture:(0,p.M)(t.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,p.M)(t.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,p.M)(t.onPointerDownCapture,D.onPointerDownCapture)}))});function x(){let t=new CustomEvent(E);document.dispatchEvent(t)}function S(t,e,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?(0,g.jH)(i,o):i.dispatchEvent(o)}let T=0;function C(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",t}let P="focusScope.autoFocusOnMount",A="focusScope.autoFocusOnUnmount",O={bubbles:!1,cancelable:!0},M=(0,f.forwardRef)((t,e)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:o,...s}=t,[a,u]=(0,f.useState)(null),l=(0,y.W)(i),c=(0,y.W)(o),d=(0,f.useRef)(null),p=(0,m.e)(e,t=>u(t)),v=(0,f.useRef)({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;(0,f.useEffect)(()=>{if(r){function t(t){if(v.paused||!a)return;let e=t.target;a.contains(e)?d.current=e:R(d.current,{select:!0})}function e(t){if(v.paused||!a)return;let e=t.relatedTarget;null===e||a.contains(e)||R(d.current,{select:!0})}document.addEventListener("focusin",t),document.addEventListener("focusout",e);let n=new MutationObserver(function(t){if(document.activeElement===document.body)for(let e of t)e.removedNodes.length>0&&R(a)});return a&&n.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",t),document.removeEventListener("focusout",e),n.disconnect()}}},[r,a,v.paused]),(0,f.useEffect)(()=>{if(a){D.add(v);let t=document.activeElement;if(!a.contains(t)){let e=new CustomEvent(P,O);a.addEventListener(P,l),a.dispatchEvent(e),e.defaultPrevented||(function(t,{select:e=!1}={}){let n=document.activeElement;for(let r of t)if(R(r,{select:e}),document.activeElement!==n)return}(N(a).filter(t=>"A"!==t.tagName),{select:!0}),document.activeElement===t&&R(a))}return()=>{a.removeEventListener(P,l),setTimeout(()=>{let e=new CustomEvent(A,O);a.addEventListener(A,c),a.dispatchEvent(e),e.defaultPrevented||R(null!=t?t:document.body,{select:!0}),a.removeEventListener(A,c),D.remove(v)},0)}}},[a,l,c,v]);let b=(0,f.useCallback)(t=>{if(!n&&!r||v.paused)return;let e="Tab"===t.key&&!t.altKey&&!t.ctrlKey&&!t.metaKey,i=document.activeElement;if(e&&i){let e=t.currentTarget,[r,o]=function(t){let e=N(t);return[k(e,t),k(e.reverse(),t)]}(e);r&&o?t.shiftKey||i!==o?t.shiftKey&&i===r&&(t.preventDefault(),n&&R(o,{select:!0})):(t.preventDefault(),n&&R(r,{select:!0})):i===e&&t.preventDefault()}},[n,r,v.paused]);return(0,f.createElement)(g.WV.div,(0,h.Z)({tabIndex:-1},s,{ref:p,onKeyDown:b}))});function N(t){let e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:t=>{let e="INPUT"===t.tagName&&"hidden"===t.type;return t.disabled||t.hidden||e?NodeFilter.FILTER_SKIP:t.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function k(t,e){for(let n of t)if(!function(t,{upTo:e}){if("hidden"===getComputedStyle(t).visibility)return!0;for(;t&&(void 0===e||t!==e);){if("none"===getComputedStyle(t).display)return!0;t=t.parentElement}return!1}(n,{upTo:e}))return n}function R(t,{select:e=!1}={}){if(t&&t.focus){var n;let r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&(n=t)instanceof HTMLInputElement&&"select"in n&&e&&t.select()}}let D=(i=[],{add(t){let e=i[0];t!==e&&(null==e||e.pause()),(i=L(i,t)).unshift(t)},remove(t){var e;null===(e=(i=L(i,t))[0])||void 0===e||e.resume()}});function L(t,e){let n=[...t],r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}var I=n(38728);let B=d["useId".toString()]||(()=>void 0),F=0;var V=n(54227),j=n(83764),H=n(5050),$=n(53730),U=n(95985);let G="Popper",[Z,W]=(0,v.b)(G),[z,Y]=Z(G),q=(0,f.forwardRef)((t,e)=>{let{__scopePopper:n,virtualRef:r,...i}=t,o=Y("PopperAnchor",n),s=(0,f.useRef)(null),a=(0,m.e)(e,s);return(0,f.useEffect)(()=>{o.onAnchorChange((null==r?void 0:r.current)||s.current)}),r?null:(0,f.createElement)(g.WV.div,(0,h.Z)({},i,{ref:a}))}),X="PopperContent",[K,J]=Z(X),Q=(0,f.forwardRef)((t,e)=>{var n,r,i,o,s,a,u,l;let{__scopePopper:c,side:d="bottom",sideOffset:p=0,align:v="center",alignOffset:b=0,arrowPadding:E=0,avoidCollisions:w=!0,collisionBoundary:_=[],collisionPadding:x=0,sticky:S="partial",hideWhenDetached:T=!1,updatePositionStrategy:C="optimized",onPlaced:P,...A}=t,O=Y(X,c),[M,N]=(0,f.useState)(null),k=(0,m.e)(e,t=>N(t)),[R,D]=(0,f.useState)(null),L=(0,U.t)(R),B=null!==(n=null==L?void 0:L.width)&&void 0!==n?n:0,F=null!==(r=null==L?void 0:L.height)&&void 0!==r?r:0,$="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},G=Array.isArray(_)?_:[_],Z=G.length>0,W={padding:$,boundary:G.filter(tn),altBoundary:Z},{refs:z,floatingStyles:q,placement:J,isPositioned:Q,middlewareData:tt}=(0,V.YF)({strategy:"fixed",placement:d+("center"!==v?"-"+v:""),whileElementsMounted:(...t)=>(0,j.Me)(...t,{animationFrame:"always"===C}),elements:{reference:O.anchor},middleware:[(0,H.cv)({mainAxis:p+F,alignmentAxis:b}),w&&(0,H.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===S?(0,H.dr)():void 0,...W}),w&&(0,H.RR)({...W}),(0,H.dp)({...W,apply:({elements:t,rects:e,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=e.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${i}px`),s.setProperty("--radix-popper-anchor-height",`${o}px`)}}),R&&(0,V.x7)({element:R,padding:E}),tr({arrowWidth:B,arrowHeight:F}),T&&(0,H.Cp)({strategy:"referenceHidden",...W})]}),[te,to]=ti(J),ts=(0,y.W)(P);(0,I.b)(()=>{Q&&(null==ts||ts())},[Q,ts]);let ta=null===(i=tt.arrow)||void 0===i?void 0:i.x,tu=null===(o=tt.arrow)||void 0===o?void 0:o.y,tl=(null===(s=tt.arrow)||void 0===s?void 0:s.centerOffset)!==0,[tc,th]=(0,f.useState)();return(0,I.b)(()=>{M&&th(window.getComputedStyle(M).zIndex)},[M]),(0,f.createElement)("div",{ref:z.setFloating,"data-radix-popper-content-wrapper":"",style:{...q,transform:Q?q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:tc,"--radix-popper-transform-origin":[null===(a=tt.transformOrigin)||void 0===a?void 0:a.x,null===(u=tt.transformOrigin)||void 0===u?void 0:u.y].join(" ")},dir:t.dir},(0,f.createElement)(K,{scope:c,placedSide:te,onArrowChange:D,arrowX:ta,arrowY:tu,shouldHideArrow:tl},(0,f.createElement)(g.WV.div,(0,h.Z)({"data-side":te,"data-align":to},A,{ref:k,style:{...A.style,animation:Q?void 0:"none",opacity:null!==(l=tt.hide)&&void 0!==l&&l.referenceHidden?0:void 0}}))))}),tt={top:"bottom",right:"left",bottom:"top",left:"right"},te=(0,f.forwardRef)(function(t,e){let{__scopePopper:n,...r}=t,i=J("PopperArrow",n),o=tt[i.placedSide];return(0,f.createElement)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},(0,f.createElement)($.f,(0,h.Z)({},r,{ref:e,style:{...r.style,display:"block"}})))});function tn(t){return null!==t}let tr=t=>({name:"transformOrigin",options:t,fn(e){var n,r,i,o,s;let{placement:a,rects:u,middlewareData:l}=e,c=(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset)!==0,h=c?0:t.arrowWidth,f=c?0:t.arrowHeight,[d,p]=ti(a),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=l.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+h/2,g=(null!==(o=null===(s=l.arrow)||void 0===s?void 0:s.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===d?(y=c?m:`${v}px`,b=`${-f}px`):"top"===d?(y=c?m:`${v}px`,b=`${u.floating.height+f}px`):"right"===d?(y=`${-f}px`,b=c?m:`${g}px`):"left"===d&&(y=`${u.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function ti(t){let[e,n="center"]=t.split("-");return[e,n]}let to=t=>{let{__scopePopper:e,children:n}=t,[r,i]=(0,f.useState)(null);return(0,f.createElement)(z,{scope:e,anchor:r,onAnchorChange:i},n)};var ts=n(54887);let ta=(0,f.forwardRef)((t,e)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...i}=t;return r?ts.createPortal((0,f.createElement)(g.WV.div,(0,h.Z)({},i,{ref:e})),r):null});var tu=n(58010),tl=n(33501),tc=new WeakMap,th=new WeakMap,tf={},td=0,tp=function(t,e,n){void 0===e&&(e="undefined"==typeof document?null:(Array.isArray(t)?t[0]:t).ownerDocument.body),void 0===n&&(n="data-aria-hidden");var r=Array.isArray(t)?t:[t];tf[n]||(tf[n]=new WeakMap);var i=tf[n],o=[],s=new Set,a=function(t){!t||s.has(t)||(s.add(t),a(t.parentNode))};r.forEach(a);var u=function(t){!t||r.indexOf(t)>=0||Array.prototype.forEach.call(t.children,function(t){if(s.has(t))u(t);else{var e=t.getAttribute("aria-hidden"),r=null!==e&&"false"!==e,a=(tc.get(t)||0)+1,l=(i.get(t)||0)+1;tc.set(t,a),i.set(t,l),o.push(t),1===a&&r&&th.set(t,!0),1===l&&t.setAttribute(n,"true"),r||t.setAttribute("aria-hidden","true")}})};return u(e),s.clear(),td++,function(){o.forEach(function(t){var e=tc.get(t)-1,r=i.get(t)-1;tc.set(t,e),i.set(t,r),e||(th.has(t)||t.removeAttribute("aria-hidden"),th.delete(t)),r||t.removeAttribute(n)}),--td||(tc=new WeakMap,tc=new WeakMap,th=new WeakMap,tf={})}},tm=n(19506),tv="right-scroll-bar-position",tg="width-before-scroll-bar",ty=(void 0===o&&(o={}),(void 0===s&&(s=function(t){return t}),a=[],u=!1,l={read:function(){if(u)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return a.length?a[a.length-1]:null},useMedium:function(t){var e=s(t,u);return a.push(e),function(){a=a.filter(function(t){return t!==e})}},assignSyncMedium:function(t){for(u=!0;a.length;){var e=a;a=[],e.forEach(t)}a={push:function(e){return t(e)},filter:function(){return a}}},assignMedium:function(t){u=!0;var e=[];if(a.length){var n=a;a=[],n.forEach(t),e=a}var r=function(){var n=e;e=[],n.forEach(t)},i=function(){return Promise.resolve().then(r)};i(),a={push:function(t){e.push(t),i()},filter:function(t){return e=e.filter(t),a}}}}).options=(0,tm.pi)({async:!0,ssr:!1},o),l),tb=function(){},tE=f.forwardRef(function(t,e){var n,r,i,o=f.useRef(null),s=f.useState({onScrollCapture:tb,onWheelCapture:tb,onTouchMoveCapture:tb}),a=s[0],u=s[1],l=t.forwardProps,c=t.children,h=t.className,d=t.removeScrollBar,p=t.enabled,m=t.shards,v=t.sideCar,g=t.noIsolation,y=t.inert,b=t.allowPinchZoom,E=t.as,w=(0,tm._T)(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),_=(n=[o,e],r=function(t){return n.forEach(function(e){return"function"==typeof e?e(t):e&&(e.current=t),e})},(i=(0,f.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var t=i.value;t!==value&&(i.value=value,i.callback(value,t))}}}})[0]).callback=r,i.facade),x=(0,tm.pi)((0,tm.pi)({},w),a);return f.createElement(f.Fragment,null,p&&f.createElement(v,{sideCar:ty,removeScrollBar:d,shards:m,noIsolation:g,inert:y,setCallbacks:u,allowPinchZoom:!!b,lockRef:o}),l?f.cloneElement(f.Children.only(c),(0,tm.pi)((0,tm.pi)({},x),{ref:_})):f.createElement(void 0===E?"div":E,(0,tm.pi)({},x,{className:h,ref:_}),c))});tE.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},tE.classNames={fullWidth:tg,zeroRight:tv};var tw=function(t){var e=t.sideCar,n=(0,tm._T)(t,["sideCar"]);if(!e)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw Error("Sidecar medium not found");return f.createElement(r,(0,tm.pi)({},n))};tw.isSideCarExport=!0;var t_=n(37280),tx=function(){var t=0,e=null;return{add:function(n){if(0==t&&(e=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=(0,t_.V)();return e&&t.setAttribute("nonce",e),t}())){var r,i;(r=e).styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),i=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}t++},remove:function(){--t||!e||(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},tS=function(){var t=tx();return function(e,n){f.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},tT=function(){var t=tS();return function(e){return t(e.styles,e.dynamic),null}},tC={left:0,top:0,right:0,gap:0},tP=function(t){return parseInt(t||"",10)||0},tA=function(t){var e=window.getComputedStyle(document.body),n=e["padding"===t?"paddingLeft":"marginLeft"],r=e["padding"===t?"paddingTop":"marginTop"],i=e["padding"===t?"paddingRight":"marginRight"];return[tP(n),tP(r),tP(i)]},tO=function(t){if(void 0===t&&(t="margin"),"undefined"==typeof window)return tC;var e=tA(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},tM=tT(),tN=function(t,e,n,r){var i=t.left,o=t.top,s=t.right,a=t.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(a,"px ").concat(r,";\n  }\n  body {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([e&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(o,"px;\n    padding-right: ").concat(s,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(a,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(tv," {\n    right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(tg," {\n    margin-right: ").concat(a,"px ").concat(r,";\n  }\n  \n  .").concat(tv," .").concat(tv," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(tg," .").concat(tg," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n  }\n")},tk=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=void 0===r?"margin":r,o=f.useMemo(function(){return tO(i)},[i]);return f.createElement(tM,{styles:tN(o,!e,i,n?"":"!important")})},tR=!1;if("undefined"!=typeof window)try{var tD=Object.defineProperty({},"passive",{get:function(){return tR=!0,!0}});window.addEventListener("test",tD,tD),window.removeEventListener("test",tD,tD)}catch(t){tR=!1}var tL=!!tR&&{passive:!1},tI=function(t,e){var n=window.getComputedStyle(t);return"hidden"!==n[e]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==t.tagName&&"visible"===n[e])},tB=function(t,e){var n=e;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),tF(t,n)){var r=tV(t,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},tF=function(t,e){return"v"===t?tI(e,"overflowY"):tI(e,"overflowX")},tV=function(t,e){return"v"===t?[e.scrollTop,e.scrollHeight,e.clientHeight]:[e.scrollLeft,e.scrollWidth,e.clientWidth]},tj=function(t,e,n,r,i){var o,s=(o=window.getComputedStyle(e).direction,"h"===t&&"rtl"===o?-1:1),a=s*r,u=n.target,l=e.contains(u),c=!1,h=a>0,f=0,d=0;do{var p=tV(t,u),m=p[0],v=p[1]-p[2]-s*m;(m||v)&&tF(t,u)&&(f+=v,d+=m),u=u.parentNode}while(!l&&u!==document.body||l&&(e.contains(u)||e===u));return h&&(i&&0===f||!i&&a>f)?c=!0:!h&&(i&&0===d||!i&&-a>d)&&(c=!0),c},tH=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},t$=function(t){return[t.deltaX,t.deltaY]},tU=function(t){return t&&"current"in t?t.current:t},tG=0,tZ=[],tW=(c=function(t){var e=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),i=f.useState(tG++)[0],o=f.useState(function(){return tT()})[0],s=f.useRef(t);f.useEffect(function(){s.current=t},[t]),f.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=(0,tm.ev)([t.lockRef.current],(t.shards||[]).map(tU),!0).filter(Boolean);return e.forEach(function(t){return t.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=f.useCallback(function(t,e){if("touches"in t&&2===t.touches.length)return!s.current.allowPinchZoom;var i,o=tH(t),a=n.current,u="deltaX"in t?t.deltaX:a[0]-o[0],l="deltaY"in t?t.deltaY:a[1]-o[1],c=t.target,h=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in t&&"h"===h&&"range"===c.type)return!1;var f=tB(h,c);if(!f)return!0;if(f?i=h:(i="v"===h?"h":"v",f=tB(h,c)),!f)return!1;if(!r.current&&"changedTouches"in t&&(u||l)&&(r.current=i),!i)return!0;var d=r.current||i;return tj(d,e,t,"h"===d?u:l,!0)},[]),u=f.useCallback(function(t){if(tZ.length&&tZ[tZ.length-1]===o){var n="deltaY"in t?t$(t):tH(t),r=e.current.filter(function(e){var r;return e.name===t.type&&e.target===t.target&&(r=e.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){t.cancelable&&t.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(tU).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?a(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),l=f.useCallback(function(t,n,r,i){var o={name:t,delta:n,target:r,should:i};e.current.push(o),setTimeout(function(){e.current=e.current.filter(function(t){return t!==o})},1)},[]),c=f.useCallback(function(t){n.current=tH(t),r.current=void 0},[]),h=f.useCallback(function(e){l(e.type,t$(e),e.target,a(e,t.lockRef.current))},[]),d=f.useCallback(function(e){l(e.type,tH(e),e.target,a(e,t.lockRef.current))},[]);f.useEffect(function(){return tZ.push(o),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",u,tL),document.addEventListener("touchmove",u,tL),document.addEventListener("touchstart",c,tL),function(){tZ=tZ.filter(function(t){return t!==o}),document.removeEventListener("wheel",u,tL),document.removeEventListener("touchmove",u,tL),document.removeEventListener("touchstart",c,tL)}},[]);var p=t.removeScrollBar,m=t.inert;return f.createElement(f.Fragment,null,m?f.createElement(o,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?f.createElement(tk,{gapMode:"margin"}):null)},ty.useMedium(c),tw),tz=f.forwardRef(function(t,e){return f.createElement(tE,(0,tm.pi)({},t,{ref:e,sideCar:tW}))});tz.classNames=tE.classNames;let tY="Popover",[tq,tX]=(0,v.b)(tY,[W]),tK=W(),[tJ,tQ]=tq(tY),t0=(0,f.forwardRef)((t,e)=>{let{__scopePopover:n,...r}=t,i=tQ("PopoverTrigger",n),o=tK(n),s=(0,m.e)(e,i.triggerRef),a=(0,f.createElement)(g.WV.button,(0,h.Z)({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":et(i.open)},r,{ref:s,onClick:(0,p.M)(t.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?a:(0,f.createElement)(q,(0,h.Z)({asChild:!0},o),a)}),t1="PopoverPortal",[t2,t5]=tq(t1,{forceMount:void 0}),t6="PopoverContent",t3=(0,f.forwardRef)((t,e)=>{let n=t5(t6,t.__scopePopover),{forceMount:r=n.forceMount,...i}=t,o=tQ(t6,t.__scopePopover);return(0,f.createElement)(tu.z,{present:r||o.open},o.modal?(0,f.createElement)(t4,(0,h.Z)({},i,{ref:e})):(0,f.createElement)(t8,(0,h.Z)({},i,{ref:e})))}),t4=(0,f.forwardRef)((t,e)=>{let n=tQ(t6,t.__scopePopover),r=(0,f.useRef)(null),i=(0,m.e)(e,r),o=(0,f.useRef)(!1);return(0,f.useEffect)(()=>{let t=r.current;if(t)return tp(t)},[]),(0,f.createElement)(tz,{as:tl.g7,allowPinchZoom:!0},(0,f.createElement)(t7,(0,h.Z)({},t,{ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,p.M)(t.onCloseAutoFocus,t=>{var e;t.preventDefault(),o.current||null===(e=n.triggerRef.current)||void 0===e||e.focus()}),onPointerDownOutside:(0,p.M)(t.onPointerDownOutside,t=>{let e=t.detail.originalEvent,n=0===e.button&&!0===e.ctrlKey,r=2===e.button||n;o.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,p.M)(t.onFocusOutside,t=>t.preventDefault(),{checkForDefaultPrevented:!1})})))}),t8=(0,f.forwardRef)((t,e)=>{let n=tQ(t6,t.__scopePopover),r=(0,f.useRef)(!1),i=(0,f.useRef)(!1);return(0,f.createElement)(t7,(0,h.Z)({},t,{ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:e=>{var o,s;null===(o=t.onCloseAutoFocus)||void 0===o||o.call(t,e),e.defaultPrevented||(r.current||null===(s=n.triggerRef.current)||void 0===s||s.focus(),e.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:e=>{var o,s;null===(o=t.onInteractOutside)||void 0===o||o.call(t,e),e.defaultPrevented||(r.current=!0,"pointerdown"!==e.detail.originalEvent.type||(i.current=!0));let a=e.target;(null===(s=n.triggerRef.current)||void 0===s?void 0:s.contains(a))&&e.preventDefault(),"focusin"===e.detail.originalEvent.type&&i.current&&e.preventDefault()}}))}),t7=(0,f.forwardRef)((t,e)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:l,onInteractOutside:c,...d}=t,p=tQ(t6,n),m=tK(n);return(0,f.useEffect)(()=>{var t,e;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(t=n[0])&&void 0!==t?t:C()),document.body.insertAdjacentElement("beforeend",null!==(e=n[1])&&void 0!==e?e:C()),T++,()=>{1===T&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),T--}},[]),(0,f.createElement)(M,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o},(0,f.createElement)(_,{asChild:!0,disableOutsidePointerEvents:s,onInteractOutside:c,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:l,onDismiss:()=>p.onOpenChange(!1)},(0,f.createElement)(Q,(0,h.Z)({"data-state":et(p.open),role:"dialog",id:p.contentId},m,d,{ref:e,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}}))))}),t9=(0,f.forwardRef)((t,e)=>{let{__scopePopover:n,...r}=t,i=tK(n);return(0,f.createElement)(te,(0,h.Z)({},i,r,{ref:e}))});function et(t){return t?"open":"closed"}let ee=t=>{let{__scopePopover:e,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:s=!1}=t,a=tK(e),u=(0,f.useRef)(null),[l,c]=(0,f.useState)(!1),[h=!1,d]=function({prop:t,defaultProp:e,onChange:n=()=>{}}){let[r,i]=function({defaultProp:t,onChange:e}){let n=(0,f.useState)(t),[r]=n,i=(0,f.useRef)(r),o=(0,y.W)(e);return(0,f.useEffect)(()=>{i.current!==r&&(o(r),i.current=r)},[r,i,o]),n}({defaultProp:e,onChange:n}),o=void 0!==t,s=o?t:r,a=(0,y.W)(n);return[s,(0,f.useCallback)(e=>{if(o){let n="function"==typeof e?e(t):e;n!==t&&a(n)}else i(e)},[o,t,i,a])]}({prop:r,defaultProp:i,onChange:o});return(0,f.createElement)(to,a,(0,f.createElement)(tJ,{scope:e,contentId:function(t){let[e,n]=f.useState(B());return(0,I.b)(()=>{n(t=>null!=t?t:String(F++))},[void 0]),e?`radix-${e}`:""}(),triggerRef:u,open:h,onOpenChange:d,onOpenToggle:(0,f.useCallback)(()=>d(t=>!t),[d]),hasCustomAnchor:l,onCustomAnchorAdd:(0,f.useCallback)(()=>c(!0),[]),onCustomAnchorRemove:(0,f.useCallback)(()=>c(!1),[]),modal:s},n))},en=t0,er=t=>{let{__scopePopover:e,forceMount:n,children:r,container:i}=t,o=tQ(t1,e);return(0,f.createElement)(t2,{scope:e,forceMount:n},(0,f.createElement)(tu.z,{present:n||o.open},(0,f.createElement)(ta,{asChild:!0,container:i},r)))},ei=t3,eo=t9},58010:function(t,e,n){"use strict";n.d(e,{z:function(){return a}});var r=n(2265),i=n(54887),o=n(30651),s=n(38728);let a=t=>{let{present:e,children:n}=t,a=function(t){var e,n;let[o,a]=(0,r.useState)(),l=(0,r.useRef)({}),c=(0,r.useRef)(t),h=(0,r.useRef)("none"),[f,d]=(e=t?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},(0,r.useReducer)((t,e)=>{let r=n[t][e];return null!=r?r:t},e));return(0,r.useEffect)(()=>{let t=u(l.current);h.current="mounted"===f?t:"none"},[f]),(0,s.b)(()=>{let e=l.current,n=c.current;if(n!==t){let r=h.current,i=u(e);t?d("MOUNT"):"none"===i||(null==e?void 0:e.display)==="none"?d("UNMOUNT"):n&&r!==i?d("ANIMATION_OUT"):d("UNMOUNT"),c.current=t}},[t,d]),(0,s.b)(()=>{if(o){let t=t=>{let e=u(l.current).includes(t.animationName);t.target===o&&e&&(0,i.flushSync)(()=>d("ANIMATION_END"))},e=t=>{t.target===o&&(h.current=u(l.current))};return o.addEventListener("animationstart",e),o.addEventListener("animationcancel",t),o.addEventListener("animationend",t),()=>{o.removeEventListener("animationstart",e),o.removeEventListener("animationcancel",t),o.removeEventListener("animationend",t)}}d("ANIMATION_END")},[o,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:(0,r.useCallback)(t=>{t&&(l.current=getComputedStyle(t)),a(t)},[])}}(e),l="function"==typeof n?n({present:a.isPresent}):r.Children.only(n),c=(0,o.e)(a.ref,l.ref);return"function"==typeof n||a.isPresent?(0,r.cloneElement)(l,{ref:c}):null};function u(t){return(null==t?void 0:t.animationName)||"none"}a.displayName="Presence"},63999:function(t,e,n){"use strict";n.d(e,{WV:function(){return a},jH:function(){return u}});var r=n(58442),i=n(2265),o=n(54887),s=n(33501);let a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((t,e)=>{let n=(0,i.forwardRef)((t,n)=>{let{asChild:o,...a}=t,u=o?s.g7:e;return(0,i.useEffect)(()=>{window[Symbol.for("radix-ui")]=!0},[]),(0,i.createElement)(u,(0,r.Z)({},a,{ref:n}))});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function u(t,e){t&&(0,o.flushSync)(()=>t.dispatchEvent(e))}},33501:function(t,e,n){"use strict";n.d(e,{A4:function(){return u},g7:function(){return s}});var r=n(58442),i=n(2265),o=n(30651);let s=(0,i.forwardRef)((t,e)=>{let{children:n,...o}=t,s=i.Children.toArray(n),u=s.find(l);if(u){let t=u.props.children,n=s.map(e=>e!==u?e:i.Children.count(t)>1?i.Children.only(null):(0,i.isValidElement)(t)?t.props.children:null);return(0,i.createElement)(a,(0,r.Z)({},o,{ref:e}),(0,i.isValidElement)(t)?(0,i.cloneElement)(t,void 0,n):null)}return(0,i.createElement)(a,(0,r.Z)({},o,{ref:e}),n)});s.displayName="Slot";let a=(0,i.forwardRef)((t,e)=>{let{children:n,...r}=t;return(0,i.isValidElement)(n)?(0,i.cloneElement)(n,{...function(t,e){let n={...e};for(let r in e){let i=t[r],o=e[r];/^on[A-Z]/.test(r)?i&&o?n[r]=(...t)=>{o(...t),i(...t)}:i&&(n[r]=i):"style"===r?n[r]={...i,...o}:"className"===r&&(n[r]=[i,o].filter(Boolean).join(" "))}return{...t,...n}}(r,n.props),ref:e?(0,o.F)(e,n.ref):n.ref}):i.Children.count(n)>1?i.Children.only(null):null});a.displayName="SlotClone";let u=({children:t})=>(0,i.createElement)(i.Fragment,null,t);function l(t){return(0,i.isValidElement)(t)&&t.type===u}},20758:function(t,e,n){"use strict";let r;n.d(e,{Eh:function(){return tb},VY:function(){return ty},h_:function(){return tg},zt:function(){return tp},fC:function(){return tm},xz:function(){return tv}});var i=n(58442),o=n(2265),s=n.t(o,2),a=n(43251),u=n(30651),l=n(80306),c=n(63999),h=n(78851),f=n(27571);let d="dismissableLayer.update",p=(0,o.createContext)({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),m=(0,o.forwardRef)((t,e)=>{var n;let{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:l,onPointerDownOutside:m,onFocusOutside:y,onInteractOutside:b,onDismiss:E,...w}=t,_=(0,o.useContext)(p),[x,S]=(0,o.useState)(null),T=null!==(n=null==x?void 0:x.ownerDocument)&&void 0!==n?n:null==globalThis?void 0:globalThis.document,[,C]=(0,o.useState)({}),P=(0,u.e)(e,t=>S(t)),A=Array.from(_.layers),[O]=[..._.layersWithOutsidePointerEventsDisabled].slice(-1),M=A.indexOf(O),N=x?A.indexOf(x):-1,k=_.layersWithOutsidePointerEventsDisabled.size>0,R=N>=M,D=function(t,e=null==globalThis?void 0:globalThis.document){let n=(0,h.W)(t),r=(0,o.useRef)(!1),i=(0,o.useRef)(()=>{});return(0,o.useEffect)(()=>{let t=t=>{if(t.target&&!r.current){let r={originalEvent:t};function o(){g("dismissableLayer.pointerDownOutside",n,r,{discrete:!0})}"touch"===t.pointerType?(e.removeEventListener("click",i.current),i.current=o,e.addEventListener("click",i.current,{once:!0})):o()}r.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",t)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",t),e.removeEventListener("click",i.current)}},[e,n]),{onPointerDownCapture:()=>r.current=!0}}(t=>{let e=t.target,n=[..._.branches].some(t=>t.contains(e));!R||n||(null==m||m(t),null==b||b(t),t.defaultPrevented||null==E||E())},T),L=function(t,e=null==globalThis?void 0:globalThis.document){let n=(0,h.W)(t),r=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{let t=t=>{t.target&&!r.current&&g("dismissableLayer.focusOutside",n,{originalEvent:t},{discrete:!1})};return e.addEventListener("focusin",t),()=>e.removeEventListener("focusin",t)},[e,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(t=>{let e=t.target;[..._.branches].some(t=>t.contains(e))||(null==y||y(t),null==b||b(t),t.defaultPrevented||null==E||E())},T);return(0,f.e)(t=>{N!==_.layers.size-1||(null==l||l(t),!t.defaultPrevented&&E&&(t.preventDefault(),E()))},T),(0,o.useEffect)(()=>{if(x)return s&&(0===_.layersWithOutsidePointerEventsDisabled.size&&(r=T.body.style.pointerEvents,T.body.style.pointerEvents="none"),_.layersWithOutsidePointerEventsDisabled.add(x)),_.layers.add(x),v(),()=>{s&&1===_.layersWithOutsidePointerEventsDisabled.size&&(T.body.style.pointerEvents=r)}},[x,T,s,_]),(0,o.useEffect)(()=>()=>{x&&(_.layers.delete(x),_.layersWithOutsidePointerEventsDisabled.delete(x),v())},[x,_]),(0,o.useEffect)(()=>{let t=()=>C({});return document.addEventListener(d,t),()=>document.removeEventListener(d,t)},[]),(0,o.createElement)(c.WV.div,(0,i.Z)({},w,{ref:P,style:{pointerEvents:k?R?"auto":"none":void 0,...t.style},onFocusCapture:(0,a.M)(t.onFocusCapture,L.onFocusCapture),onBlurCapture:(0,a.M)(t.onBlurCapture,L.onBlurCapture),onPointerDownCapture:(0,a.M)(t.onPointerDownCapture,D.onPointerDownCapture)}))});function v(){let t=new CustomEvent(d);document.dispatchEvent(t)}function g(t,e,n,{discrete:r}){let i=n.originalEvent.target,o=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&i.addEventListener(t,e,{once:!0}),r?(0,c.jH)(i,o):i.dispatchEvent(o)}var y=n(38728);let b=s["useId".toString()]||(()=>void 0),E=0;var w=n(54227),_=n(83764),x=n(5050),S=n(53730),T=n(95985);let C="Popper",[P,A]=(0,l.b)(C),[O,M]=P(C),N=(0,o.forwardRef)((t,e)=>{let{__scopePopper:n,virtualRef:r,...s}=t,a=M("PopperAnchor",n),l=(0,o.useRef)(null),h=(0,u.e)(e,l);return(0,o.useEffect)(()=>{a.onAnchorChange((null==r?void 0:r.current)||l.current)}),r?null:(0,o.createElement)(c.WV.div,(0,i.Z)({},s,{ref:h}))}),k="PopperContent",[R,D]=P(k),L=(0,o.forwardRef)((t,e)=>{var n,r,s,a,l,f,d,p;let{__scopePopper:m,side:v="bottom",sideOffset:g=0,align:b="center",alignOffset:E=0,arrowPadding:S=0,collisionBoundary:C=[],collisionPadding:P=0,sticky:A="partial",hideWhenDetached:O=!1,avoidCollisions:N=!0,onPlaced:D,...L}=t,I=M(k,m),[B,H]=(0,o.useState)(null),$=(0,u.e)(e,t=>H(t)),[U,G]=(0,o.useState)(null),Z=(0,T.t)(U),W=null!==(n=null==Z?void 0:Z.width)&&void 0!==n?n:0,z=null!==(r=null==Z?void 0:Z.height)&&void 0!==r?r:0,Y="number"==typeof P?P:{top:0,right:0,bottom:0,left:0,...P},q=Array.isArray(C)?C:[C],X=q.length>0,K={padding:Y,boundary:q.filter(F),altBoundary:X},{refs:J,floatingStyles:Q,placement:tt,isPositioned:te,middlewareData:tn}=(0,w.YF)({strategy:"fixed",placement:v+("center"!==b?"-"+b:""),whileElementsMounted:_.Me,elements:{reference:I.anchor},middleware:[(0,x.cv)({mainAxis:g+z,alignmentAxis:E}),N&&(0,x.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===A?(0,x.dr)():void 0,...K}),N&&(0,x.RR)({...K}),(0,x.dp)({...K,apply:({elements:t,rects:e,availableWidth:n,availableHeight:r})=>{let{width:i,height:o}=e.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${i}px`),s.setProperty("--radix-popper-anchor-height",`${o}px`)}}),U&&(0,w.x7)({element:U,padding:S}),V({arrowWidth:W,arrowHeight:z}),O&&(0,x.Cp)({strategy:"referenceHidden"})]}),[tr,ti]=j(tt),to=(0,h.W)(D);(0,y.b)(()=>{te&&(null==to||to())},[te,to]);let ts=null===(s=tn.arrow)||void 0===s?void 0:s.x,ta=null===(a=tn.arrow)||void 0===a?void 0:a.y,tu=(null===(l=tn.arrow)||void 0===l?void 0:l.centerOffset)!==0,[tl,tc]=(0,o.useState)();return(0,y.b)(()=>{B&&tc(window.getComputedStyle(B).zIndex)},[B]),(0,o.createElement)("div",{ref:J.setFloating,"data-radix-popper-content-wrapper":"",style:{...Q,transform:te?Q.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:tl,"--radix-popper-transform-origin":[null===(f=tn.transformOrigin)||void 0===f?void 0:f.x,null===(d=tn.transformOrigin)||void 0===d?void 0:d.y].join(" ")},dir:t.dir},(0,o.createElement)(R,{scope:m,placedSide:tr,onArrowChange:G,arrowX:ts,arrowY:ta,shouldHideArrow:tu},(0,o.createElement)(c.WV.div,(0,i.Z)({"data-side":tr,"data-align":ti},L,{ref:$,style:{...L.style,animation:te?void 0:"none",opacity:null!==(p=tn.hide)&&void 0!==p&&p.referenceHidden?0:void 0}}))))}),I={top:"bottom",right:"left",bottom:"top",left:"right"},B=(0,o.forwardRef)(function(t,e){let{__scopePopper:n,...r}=t,s=D("PopperArrow",n),a=I[s.placedSide];return(0,o.createElement)("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0}},(0,o.createElement)(S.f,(0,i.Z)({},r,{ref:e,style:{...r.style,display:"block"}})))});function F(t){return null!==t}let V=t=>({name:"transformOrigin",options:t,fn(e){var n,r,i,o,s;let{placement:a,rects:u,middlewareData:l}=e,c=(null===(n=l.arrow)||void 0===n?void 0:n.centerOffset)!==0,h=c?0:t.arrowWidth,f=c?0:t.arrowHeight,[d,p]=j(a),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(r=null===(i=l.arrow)||void 0===i?void 0:i.x)&&void 0!==r?r:0)+h/2,g=(null!==(o=null===(s=l.arrow)||void 0===s?void 0:s.y)&&void 0!==o?o:0)+f/2,y="",b="";return"bottom"===d?(y=c?m:`${v}px`,b=`${-f}px`):"top"===d?(y=c?m:`${v}px`,b=`${u.floating.height+f}px`):"right"===d?(y=`${-f}px`,b=c?m:`${g}px`):"left"===d&&(y=`${u.floating.width+f}px`,b=c?m:`${g}px`),{data:{x:y,y:b}}}});function j(t){let[e,n="center"]=t.split("-");return[e,n]}let H=t=>{let{__scopePopper:e,children:n}=t,[r,i]=(0,o.useState)(null);return(0,o.createElement)(O,{scope:e,anchor:r,onAnchorChange:i},n)};var $=n(54887);let U=(0,o.forwardRef)((t,e)=>{var n;let{container:r=null==globalThis?void 0:null===(n=globalThis.document)||void 0===n?void 0:n.body,...s}=t;return r?$.createPortal((0,o.createElement)(c.WV.div,(0,i.Z)({},s,{ref:e})),r):null});var G=n(58010),Z=n(33501);let W=(0,o.forwardRef)((t,e)=>(0,o.createElement)(c.WV.span,(0,i.Z)({},t,{ref:e,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...t.style}}))),[z,Y]=(0,l.b)("Tooltip",[A]),q=A(),X="tooltip.open",[K,J]=z("TooltipProvider"),Q="Tooltip",[tt,te]=z(Q),tn="TooltipTrigger",tr=(0,o.forwardRef)((t,e)=>{let{__scopeTooltip:n,...r}=t,s=te(tn,n),l=J(tn,n),h=q(n),f=(0,o.useRef)(null),d=(0,u.e)(e,f,s.onTriggerChange),p=(0,o.useRef)(!1),m=(0,o.useRef)(!1),v=(0,o.useCallback)(()=>p.current=!1,[]);return(0,o.useEffect)(()=>()=>document.removeEventListener("pointerup",v),[v]),(0,o.createElement)(N,(0,i.Z)({asChild:!0},h),(0,o.createElement)(c.WV.button,(0,i.Z)({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},r,{ref:d,onPointerMove:(0,a.M)(t.onPointerMove,t=>{"touch"===t.pointerType||m.current||l.isPointerInTransitRef.current||(s.onTriggerEnter(),m.current=!0)}),onPointerLeave:(0,a.M)(t.onPointerLeave,()=>{s.onTriggerLeave(),m.current=!1}),onPointerDown:(0,a.M)(t.onPointerDown,()=>{p.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:(0,a.M)(t.onFocus,()=>{p.current||s.onOpen()}),onBlur:(0,a.M)(t.onBlur,s.onClose),onClick:(0,a.M)(t.onClick,s.onClose)})))}),ti="TooltipPortal",[to,ts]=z(ti,{forceMount:void 0}),ta="TooltipContent",tu=(0,o.forwardRef)((t,e)=>{let n=ts(ta,t.__scopeTooltip),{forceMount:r=n.forceMount,side:s="top",...a}=t,u=te(ta,t.__scopeTooltip);return(0,o.createElement)(G.z,{present:r||u.open},u.disableHoverableContent?(0,o.createElement)(tf,(0,i.Z)({side:s},a,{ref:e})):(0,o.createElement)(tl,(0,i.Z)({side:s},a,{ref:e})))}),tl=(0,o.forwardRef)((t,e)=>{let n=te(ta,t.__scopeTooltip),r=J(ta,t.__scopeTooltip),s=(0,o.useRef)(null),a=(0,u.e)(e,s),[l,c]=(0,o.useState)(null),{trigger:h,onClose:f}=n,d=s.current,{onPointerInTransitChange:p}=r,m=(0,o.useCallback)(()=>{c(null),p(!1)},[p]),v=(0,o.useCallback)((t,e)=>{let n=t.currentTarget,r={x:t.clientX,y:t.clientY},i=function(t,e){let n=Math.abs(e.top-t.y),r=Math.abs(e.bottom-t.y),i=Math.abs(e.right-t.x),o=Math.abs(e.left-t.x);switch(Math.min(n,r,i,o)){case o:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());c(function(t){let e=t.slice();return e.sort((t,e)=>t.x<e.x?-1:t.x>e.x?1:t.y<e.y?-1:t.y>e.y?1:0),function(t){if(t.length<=1)return t.slice();let e=[];for(let n=0;n<t.length;n++){let r=t[n];for(;e.length>=2;){let t=e[e.length-1],n=e[e.length-2];if((t.x-n.x)*(r.y-n.y)>=(t.y-n.y)*(r.x-n.x))e.pop();else break}e.push(r)}e.pop();let n=[];for(let e=t.length-1;e>=0;e--){let r=t[e];for(;n.length>=2;){let t=n[n.length-1],e=n[n.length-2];if((t.x-e.x)*(r.y-e.y)>=(t.y-e.y)*(r.x-e.x))n.pop();else break}n.push(r)}return(n.pop(),1===e.length&&1===n.length&&e[0].x===n[0].x&&e[0].y===n[0].y)?e:e.concat(n)}(e)}([...function(t,e,n=5){let r=[];switch(e){case"top":r.push({x:t.x-n,y:t.y+n},{x:t.x+n,y:t.y+n});break;case"bottom":r.push({x:t.x-n,y:t.y-n},{x:t.x+n,y:t.y-n});break;case"left":r.push({x:t.x+n,y:t.y-n},{x:t.x+n,y:t.y+n});break;case"right":r.push({x:t.x-n,y:t.y-n},{x:t.x-n,y:t.y+n})}return r}(r,i),...function(t){let{top:e,right:n,bottom:r,left:i}=t;return[{x:i,y:e},{x:n,y:e},{x:n,y:r},{x:i,y:r}]}(e.getBoundingClientRect())])),p(!0)},[p]);return(0,o.useEffect)(()=>()=>m(),[m]),(0,o.useEffect)(()=>{if(h&&d){let t=t=>v(t,d),e=t=>v(t,h);return h.addEventListener("pointerleave",t),d.addEventListener("pointerleave",e),()=>{h.removeEventListener("pointerleave",t),d.removeEventListener("pointerleave",e)}}},[h,d,v,m]),(0,o.useEffect)(()=>{if(l){let t=t=>{let e=t.target,n={x:t.clientX,y:t.clientY},r=(null==h?void 0:h.contains(e))||(null==d?void 0:d.contains(e)),i=!function(t,e){let{x:n,y:r}=t,i=!1;for(let t=0,o=e.length-1;t<e.length;o=t++){let s=e[t].x,a=e[t].y,u=e[o].x,l=e[o].y;a>r!=l>r&&n<(u-s)*(r-a)/(l-a)+s&&(i=!i)}return i}(n,l);r?m():i&&(m(),f())};return document.addEventListener("pointermove",t),()=>document.removeEventListener("pointermove",t)}},[h,d,l,f,m]),(0,o.createElement)(tf,(0,i.Z)({},t,{ref:a}))}),[tc,th]=z(Q,{isInside:!1}),tf=(0,o.forwardRef)((t,e)=>{let{__scopeTooltip:n,children:r,"aria-label":s,onEscapeKeyDown:a,onPointerDownOutside:u,...l}=t,c=te(ta,n),h=q(n),{onClose:f}=c;return(0,o.useEffect)(()=>(document.addEventListener(X,f),()=>document.removeEventListener(X,f)),[f]),(0,o.useEffect)(()=>{if(c.trigger){let t=t=>{let e=t.target;null!=e&&e.contains(c.trigger)&&f()};return window.addEventListener("scroll",t,{capture:!0}),()=>window.removeEventListener("scroll",t,{capture:!0})}},[c.trigger,f]),(0,o.createElement)(m,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:u,onFocusOutside:t=>t.preventDefault(),onDismiss:f},(0,o.createElement)(L,(0,i.Z)({"data-state":c.stateAttribute},h,l,{ref:e,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),(0,o.createElement)(Z.A4,null,r),(0,o.createElement)(tc,{scope:n,isInside:!0},(0,o.createElement)(W,{id:c.contentId,role:"tooltip"},s||r))))}),td=(0,o.forwardRef)((t,e)=>{let{__scopeTooltip:n,...r}=t,s=q(n);return th("TooltipArrow",n).isInside?null:(0,o.createElement)(B,(0,i.Z)({},s,r,{ref:e}))}),tp=t=>{let{__scopeTooltip:e,delayDuration:n=700,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=t,[a,u]=(0,o.useState)(!0),l=(0,o.useRef)(!1),c=(0,o.useRef)(0);return(0,o.useEffect)(()=>{let t=c.current;return()=>window.clearTimeout(t)},[]),(0,o.createElement)(K,{scope:e,isOpenDelayed:a,delayDuration:n,onOpen:(0,o.useCallback)(()=>{window.clearTimeout(c.current),u(!1)},[]),onClose:(0,o.useCallback)(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>u(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:(0,o.useCallback)(t=>{l.current=t},[]),disableHoverableContent:i},s)},tm=t=>{let{__scopeTooltip:e,children:n,open:r,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:a,delayDuration:u}=t,l=J(Q,t.__scopeTooltip),c=q(e),[f,d]=(0,o.useState)(null),p=function(t){let[e,n]=o.useState(b());return(0,y.b)(()=>{n(t=>null!=t?t:String(E++))},[void 0]),e?`radix-${e}`:""}(),m=(0,o.useRef)(0),v=null!=a?a:l.disableHoverableContent,g=null!=u?u:l.delayDuration,w=(0,o.useRef)(!1),[_=!1,x]=function({prop:t,defaultProp:e,onChange:n=()=>{}}){let[r,i]=function({defaultProp:t,onChange:e}){let n=(0,o.useState)(t),[r]=n,i=(0,o.useRef)(r),s=(0,h.W)(e);return(0,o.useEffect)(()=>{i.current!==r&&(s(r),i.current=r)},[r,i,s]),n}({defaultProp:e,onChange:n}),s=void 0!==t,a=s?t:r,u=(0,h.W)(n);return[a,(0,o.useCallback)(e=>{if(s){let n="function"==typeof e?e(t):e;n!==t&&u(n)}else i(e)},[s,t,i,u])]}({prop:r,defaultProp:i,onChange:t=>{t?(l.onOpen(),document.dispatchEvent(new CustomEvent(X))):l.onClose(),null==s||s(t)}}),S=(0,o.useMemo)(()=>_?w.current?"delayed-open":"instant-open":"closed",[_]),T=(0,o.useCallback)(()=>{window.clearTimeout(m.current),w.current=!1,x(!0)},[x]),C=(0,o.useCallback)(()=>{window.clearTimeout(m.current),x(!1)},[x]),P=(0,o.useCallback)(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{w.current=!0,x(!0)},g)},[g,x]);return(0,o.useEffect)(()=>()=>window.clearTimeout(m.current),[]),(0,o.createElement)(H,c,(0,o.createElement)(tt,{scope:e,contentId:p,open:_,stateAttribute:S,trigger:f,onTriggerChange:d,onTriggerEnter:(0,o.useCallback)(()=>{l.isOpenDelayed?P():T()},[l.isOpenDelayed,P,T]),onTriggerLeave:(0,o.useCallback)(()=>{v?C():window.clearTimeout(m.current)},[C,v]),onOpen:T,onClose:C,disableHoverableContent:v},n))},tv=tr,tg=t=>{let{__scopeTooltip:e,forceMount:n,children:r,container:i}=t,s=te(ti,e);return(0,o.createElement)(to,{scope:e,forceMount:n},(0,o.createElement)(G.z,{present:n||s.open},(0,o.createElement)(U,{asChild:!0,container:i},r)))},ty=tu,tb=td},78851:function(t,e,n){"use strict";n.d(e,{W:function(){return i}});var r=n(2265);function i(t){let e=(0,r.useRef)(t);return(0,r.useEffect)(()=>{e.current=t}),(0,r.useMemo)(()=>(...t)=>{var n;return null===(n=e.current)||void 0===n?void 0:n.call(e,...t)},[])}},27571:function(t,e,n){"use strict";n.d(e,{e:function(){return o}});var r=n(2265),i=n(78851);function o(t,e=null==globalThis?void 0:globalThis.document){let n=(0,i.W)(t);(0,r.useEffect)(()=>{let t=t=>{"Escape"===t.key&&n(t)};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)},[n,e])}},38728:function(t,e,n){"use strict";n.d(e,{b:function(){return i}});var r=n(2265);let i=(null==globalThis?void 0:globalThis.document)?r.useLayoutEffect:()=>{}},95985:function(t,e,n){"use strict";n.d(e,{t:function(){return o}});var r=n(2265),i=n(38728);function o(t){let[e,n]=(0,r.useState)(void 0);return(0,i.b)(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});let e=new ResizeObserver(e=>{let r,i;if(!Array.isArray(e)||!e.length)return;let o=e[0];if("borderBoxSize"in o){let t=o.borderBoxSize,e=Array.isArray(t)?t[0]:t;r=e.inlineSize,i=e.blockSize}else r=t.offsetWidth,i=t.offsetHeight;n({width:r,height:i})});return e.observe(t,{box:"border-box"}),()=>e.unobserve(t)}n(void 0)},[t]),e}},18755:function(t,e,n){"use strict";function r(){}function i(t){return null==t?r:function(){return this.querySelector(t)}}function o(){return[]}function s(t){return null==t?o:function(){return this.querySelectorAll(t)}}function a(t){return function(){return this.matches(t)}}function u(t){return function(e){return e.matches(t)}}n.d(e,{tiA:function(){return function t(){var e,n,r=(function t(){var e=new ep,n=[],r=[],i=eg;function o(t){let o=e.get(t);if(void 0===o){if(i!==eg)return i;e.set(t,o=n.push(t)-1)}return r[o%r.length]}return o.domain=function(t){if(!arguments.length)return n.slice();for(let r of(n=[],e=new ep,t))e.has(r)||e.set(r,n.push(r)-1);return o},o.range=function(t){return arguments.length?(r=Array.from(t),o):r.slice()},o.unknown=function(t){return arguments.length?(i=t,o):i},o.copy=function(){return t(n,r).unknown(i)},ed.apply(o,arguments),o})().unknown(void 0),i=r.domain,o=r.range,s=0,a=1,u=!1,l=0,c=0,h=.5;function f(){var t=i().length,r=a<s,f=r?a:s,d=r?s:a;e=(d-f)/Math.max(1,t-l+2*c),u&&(e=Math.floor(e)),f+=(d-f-e*(t-l))*h,n=e*(1-l),u&&(f=Math.round(f),n=Math.round(n));var p=(function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=Array(i);++r<i;)o[r]=t+r*n;return o})(t).map(function(t){return f+e*t});return o(r?p.reverse():p)}return delete r.unknown,r.domain=function(t){return arguments.length?(i(t),f()):i()},r.range=function(t){return arguments.length?([s,a]=t,s=+s,a=+a,f()):[s,a]},r.rangeRound=function(t){return[s,a]=t,s=+s,a=+a,u=!0,f()},r.bandwidth=function(){return n},r.step=function(){return e},r.round=function(t){return arguments.length?(u=!!t,f()):u},r.padding=function(t){return arguments.length?(l=Math.min(1,c=+t),f()):l},r.paddingInner=function(t){return arguments.length?(l=Math.min(1,t),f()):l},r.paddingOuter=function(t){return arguments.length?(c=+t,f()):c},r.align=function(t){return arguments.length?(h=Math.max(0,Math.min(1,t)),f()):h},r.copy=function(){return t(i(),[s,a]).round(u).paddingInner(l).paddingOuter(c).align(h)},ed.apply(f(),arguments)}}});var l,c=Array.prototype.find;function h(){return this.firstElementChild}var f=Array.prototype.filter;function d(){return Array.from(this.children)}function p(t){return Array(t.length)}function m(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function v(t,e,n,r,i,o){for(var s,a=0,u=e.length,l=o.length;a<l;++a)(s=e[a])?(s.__data__=o[a],r[a]=s):n[a]=new m(t,o[a]);for(;a<u;++a)(s=e[a])&&(i[a]=s)}function g(t,e,n,r,i,o,s){var a,u,l,c=new Map,h=e.length,f=o.length,d=Array(h);for(a=0;a<h;++a)(u=e[a])&&(d[a]=l=s.call(u,u.__data__,a,e)+"",c.has(l)?i[a]=u:c.set(l,u));for(a=0;a<f;++a)l=s.call(t,o[a],a,o)+"",(u=c.get(l))?(r[a]=u,u.__data__=o[a],c.delete(l)):n[a]=new m(t,o[a]);for(a=0;a<h;++a)(u=e[a])&&c.get(d[a])===u&&(i[a]=u)}function y(t){return t.__data__}function b(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}m.prototype={constructor:m,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var E="http://www.w3.org/1999/xhtml",w={svg:"http://www.w3.org/2000/svg",xhtml:E,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function _(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),w.hasOwnProperty(e)?{space:w[e],local:t}:t}function x(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function S(t,e){return t.style.getPropertyValue(e)||x(t).getComputedStyle(t,null).getPropertyValue(e)}function T(t){return t.trim().split(/^|\s+/)}function C(t){return t.classList||new P(t)}function P(t){this._node=t,this._names=T(t.getAttribute("class")||"")}function A(t,e){for(var n=C(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function O(t,e){for(var n=C(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function M(){this.textContent=""}function N(){this.innerHTML=""}function k(){this.nextSibling&&this.parentNode.appendChild(this)}function R(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function D(t){var e=_(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===E&&e.documentElement.namespaceURI===E?e.createElement(t):e.createElementNS(n,t)}})(e)}function L(){return null}function I(){var t=this.parentNode;t&&t.removeChild(this)}function B(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function F(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function V(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)(n=e[r],t.type&&n.type!==t.type||n.name!==t.name)?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function j(t,e,n){return function(){var r,i=this.__on,o=function(t){e.call(this,t,this.__data__)};if(i){for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function H(t,e,n){var r=x(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}P.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var $=[null];function U(t,e){this._groups=t,this._parents=e}function G(){return new U([[document.documentElement]],$)}U.prototype=G.prototype={constructor:U,select:function(t){"function"!=typeof t&&(t=i(t));for(var e=this._groups,n=e.length,r=Array(n),o=0;o<n;++o)for(var s,a,u=e[o],l=u.length,c=r[o]=Array(l),h=0;h<l;++h)(s=u[h])&&(a=t.call(s,s.__data__,h,u))&&("__data__"in s&&(a.__data__=s.__data__),c[h]=a);return new U(r,this._parents)},selectAll:function(t){if("function"==typeof t){var e;e=t,t=function(){var t;return t=e.apply(this,arguments),null==t?[]:Array.isArray(t)?t:Array.from(t)}}else t=s(t);for(var n=this._groups,r=n.length,i=[],o=[],a=0;a<r;++a)for(var u,l=n[a],c=l.length,h=0;h<c;++h)(u=l[h])&&(i.push(t.call(u,u.__data__,h,l)),o.push(u));return new U(i,o)},selectChild:function(t){var e;return this.select(null==t?h:(e="function"==typeof t?t:u(t),function(){return c.call(this.children,e)}))},selectChildren:function(t){var e;return this.selectAll(null==t?d:(e="function"==typeof t?t:u(t),function(){return f.call(this.children,e)}))},filter:function(t){"function"!=typeof t&&(t=a(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,s=e[i],u=s.length,l=r[i]=[],c=0;c<u;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&l.push(o);return new U(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,y);var n=e?g:v,r=this._parents,i=this._groups;"function"!=typeof t&&(w=t,t=function(){return w});for(var o=i.length,s=Array(o),a=Array(o),u=Array(o),l=0;l<o;++l){var c=r[l],h=i[l],f=h.length,d="object"==typeof(E=t.call(c,c&&c.__data__,l,r))&&"length"in E?E:Array.from(E),p=d.length,m=a[l]=Array(p),b=s[l]=Array(p);n(c,h,m,b,u[l]=Array(f),d,e);for(var E,w,_,x,S=0,T=0;S<p;++S)if(_=m[S]){for(S>=T&&(T=S+1);!(x=b[T])&&++T<p;);_._next=x||null}}return(s=new U(s,r))._enter=a,s._exit=u,s},enter:function(){return new U(this._enter||this._groups.map(p),this._parents)},exit:function(){return new U(this._exit||this._groups.map(p),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,s=Math.min(i,o),a=Array(i),u=0;u<s;++u)for(var l,c=n[u],h=r[u],f=c.length,d=a[u]=Array(f),p=0;p<f;++p)(l=c[p]||h[p])&&(d[p]=l);for(;u<i;++u)a[u]=n[u];return new U(a,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,s=i[o];--o>=0;)(r=i[o])&&(s&&4^r.compareDocumentPosition(s)&&s.parentNode.insertBefore(r,s),s=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=b);for(var n=this._groups,r=n.length,i=Array(r),o=0;o<r;++o){for(var s,a=n[o],u=a.length,l=i[o]=Array(u),c=0;c<u;++c)(s=a[c])&&(l[c]=s);l.sort(e)}return new U(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null},size:function(){let t=0;for(let e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],s=0,a=o.length;s<a;++s)(i=o[s])&&t.call(i,i.__data__,s,o);return this},attr:function(t,e){var n=_(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}:function(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):S(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=T(t+"");if(arguments.length<2){for(var r=C(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?A:O)(this,t)}}:e?function(t){return function(){A(this,t)}}:function(t){return function(){O(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?M:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?N:("function"==typeof t?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(k)},lower:function(){return this.each(R)},append:function(t){var e="function"==typeof t?t:D(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:D(t),r=null==e?L:"function"==typeof e?e:i(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(I)},clone:function(t){return this.select(t?F:B)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),s=o.length;if(arguments.length<2){var a=this.node().__on;if(a){for(var u,l=0,c=a.length;l<c;++l)for(r=0,u=a[l];r<s;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value}return}for(r=0,a=e?j:V;r<s;++r)this.each(a(o[r],e,n));return this},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return H(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return H(this,t,e)}})(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,s=i.length;o<s;++o)(r=i[o])&&(yield r)}};var Z={value:()=>{}};function W(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw Error("illegal type: "+t);r[t]=[]}return new z(r)}function z(t){this._=t}function Y(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Z,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}z.prototype=W.prototype={constructor:z,on:function(t,e){var n,r=this._,i=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),t&&!r.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:e}}),o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((n=(t=i[o]).type)&&(n=function(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}(r[n],t.name)))return n;return}if(null!=e&&"function"!=typeof e)throw Error("invalid callback: "+e);for(;++o<s;)if(n=(t=i[o]).type)r[n]=Y(r[n],t.name,e);else if(null==e)for(n in r)r[n]=Y(r[n],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new z(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(r=this._[t],o=0,n=r.length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var q,X,K=0,J=0,Q=0,tt=0,te=0,tn=0,tr="object"==typeof performance&&performance.now?performance:Date,ti="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function to(){return te||(ti(ts),te=tr.now()+tn)}function ts(){te=0}function ta(){this._call=this._time=this._next=null}function tu(t,e,n){var r=new ta;return r.restart(t,e,n),r}function tl(){te=(tt=tr.now())+tn,K=J=0;try{!function(){to(),++K;for(var t,e=q;e;)(t=te-e._time)>=0&&e._call.call(void 0,t),e=e._next;--K}()}finally{K=0,function(){for(var t,e,n=q,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:q=e);X=t,th(r)}(),te=0}}function tc(){var t=tr.now(),e=t-tt;e>1e3&&(tn-=e,tt=t)}function th(t){!K&&(J&&(J=clearTimeout(J)),t-te>24?(t<1/0&&(J=setTimeout(tl,t-tr.now()-tn)),Q&&(Q=clearInterval(Q))):(Q||(tt=tr.now(),Q=setInterval(tc,1e3)),K=1,ti(tl)))}function tf(t,e,n){var r=new ta;return e=null==e?0:+e,r.restart(n=>{r.stop(),t(n+e)},e,n),r}ta.prototype=tu.prototype={constructor:ta,restart:function(t,e,n){if("function"!=typeof t)throw TypeError("callback is not a function");n=(null==n?to():+n)+(null==e?0:+e),this._next||X===this||(X?X._next=this:q=this,X=this),this._call=t,this._time=n,th()},stop:function(){this._call&&(this._call=null,this._time=1/0,th())}};var td=W("start","end","cancel","interrupt"),tp=[];function tm(t,e,n,r,i,o){var s=t.__transition;if(s){if(n in s)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(u){var l,c,h,f;if(1!==n.state)return a();for(l in i)if((f=i[l]).name===n.name){if(3===f.state)return tf(o);4===f.state?(f.state=6,f.timer.stop(),f.on.call("interrupt",t,t.__data__,f.index,f.group),delete i[l]):+l<e&&(f.state=6,f.timer.stop(),f.on.call("cancel",t,t.__data__,f.index,f.group),delete i[l])}if(tf(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(l=0,n.state=3,r=Array(h=n.tween.length),c=-1;l<h;++l)(f=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++c]=f);r.length=c+1}}function s(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(a),n.state=5,1),o=-1,s=r.length;++o<s;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),a())}function a(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=tu(function(t){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)},0,n.time)}(t,n,{name:e,index:r,group:i,on:td,tween:tp,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function tv(t,e){var n=ty(t,e);if(n.state>0)throw Error("too late; already scheduled");return n}function tg(t,e){var n=ty(t,e);if(n.state>3)throw Error("too late; already running");return n}function ty(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw Error("transition not found");return n}function tb(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var tE=180/Math.PI,tw={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function t_(t,e,n,r,i,o){var s,a,u;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(u=t*n+e*r)&&(n-=t*u,r-=e*u),(a=Math.sqrt(n*n+r*r))&&(n/=a,r/=a,u/=a),t*r<e*n&&(t=-t,e=-e,u=-u,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*tE,skewX:Math.atan(u)*tE,scaleX:s,scaleY:a}}function tx(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,s){var a,u,l,c,h=[],f=[];return o=t(o),s=t(s),!function(t,r,i,o,s,a){if(t!==i||r!==o){var u=s.push("translate(",null,e,null,n);a.push({i:u-4,x:tb(t,i)},{i:u-2,x:tb(r,o)})}else(i||o)&&s.push("translate("+i+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,h,f),(a=o.rotate)!==(u=s.rotate)?(a-u>180?u+=360:u-a>180&&(a+=360),f.push({i:h.push(i(h)+"rotate(",null,r)-2,x:tb(a,u)})):u&&h.push(i(h)+"rotate("+u+r),(l=o.skewX)!==(c=s.skewX)?f.push({i:h.push(i(h)+"skewX(",null,r)-2,x:tb(l,c)}):c&&h.push(i(h)+"skewX("+c+r),!function(t,e,n,r,o,s){if(t!==n||e!==r){var a=o.push(i(o)+"scale(",null,",",null,")");s.push({i:a-4,x:tb(t,n)},{i:a-2,x:tb(e,r)})}else(1!==n||1!==r)&&o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,h,f),o=s=null,function(t){for(var e,n=-1,r=f.length;++n<r;)h[(e=f[n]).i]=e.x(t);return h.join("")}}}var tS=tx(function(t){let e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?tw:t_(e.a,e.b,e.c,e.d,e.e,e.f)},"px, ","px)","deg)"),tT=tx(function(t){return null==t?tw:(l||(l=document.createElementNS("http://www.w3.org/2000/svg","g")),l.setAttribute("transform",t),t=l.transform.baseVal.consolidate())?t_((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):tw},", ",")",")");function tC(t,e,n){var r=t._id;return t.each(function(){var t=tg(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)}),function(t){return ty(t,r).value[e]}}function tP(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function tA(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function tO(){}var tM="\\s*([+-]?\\d+)\\s*",tN="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",tk="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",tR=/^#([0-9a-f]{3,8})$/,tD=RegExp(`^rgb\\(${tM},${tM},${tM}\\)$`),tL=RegExp(`^rgb\\(${tk},${tk},${tk}\\)$`),tI=RegExp(`^rgba\\(${tM},${tM},${tM},${tN}\\)$`),tB=RegExp(`^rgba\\(${tk},${tk},${tk},${tN}\\)$`),tF=RegExp(`^hsl\\(${tN},${tk},${tk}\\)$`),tV=RegExp(`^hsla\\(${tN},${tk},${tk},${tN}\\)$`),tj={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function tH(){return this.rgb().formatHex()}function t$(){return this.rgb().formatRgb()}function tU(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=tR.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?tG(e):3===n?new tz(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?tZ(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?tZ(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=tD.exec(t))?new tz(e[1],e[2],e[3],1):(e=tL.exec(t))?new tz(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=tI.exec(t))?tZ(e[1],e[2],e[3],e[4]):(e=tB.exec(t))?tZ(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=tF.exec(t))?tQ(e[1],e[2]/100,e[3]/100,1):(e=tV.exec(t))?tQ(e[1],e[2]/100,e[3]/100,e[4]):tj.hasOwnProperty(t)?tG(tj[t]):"transparent"===t?new tz(NaN,NaN,NaN,0):null}function tG(t){return new tz(t>>16&255,t>>8&255,255&t,1)}function tZ(t,e,n,r){return r<=0&&(t=e=n=NaN),new tz(t,e,n,r)}function tW(t,e,n,r){var i;return 1==arguments.length?((i=t)instanceof tO||(i=tU(i)),i)?new tz((i=i.rgb()).r,i.g,i.b,i.opacity):new tz:new tz(t,e,n,null==r?1:r)}function tz(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function tY(){return`#${tJ(this.r)}${tJ(this.g)}${tJ(this.b)}`}function tq(){let t=tX(this.opacity);return`${1===t?"rgb(":"rgba("}${tK(this.r)}, ${tK(this.g)}, ${tK(this.b)}${1===t?")":`, ${t})`}`}function tX(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function tK(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function tJ(t){return((t=tK(t))<16?"0":"")+t.toString(16)}function tQ(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new t1(t,e,n,r)}function t0(t){if(t instanceof t1)return new t1(t.h,t.s,t.l,t.opacity);if(t instanceof tO||(t=tU(t)),!t)return new t1;if(t instanceof t1)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,u=(o+i)/2;return a?(s=e===o?(n-r)/a+(n<r)*6:n===o?(r-e)/a+2:(e-n)/a+4,a/=u<.5?o+i:2-o-i,s*=60):a=u>0&&u<1?0:s,new t1(s,a,u,t.opacity)}function t1(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function t2(t){return(t=(t||0)%360)<0?t+360:t}function t5(t){return Math.max(0,Math.min(1,t||0))}function t6(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function t3(t,e,n,r,i){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*r+s*i)/6}tP(tO,tU,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:tH,formatHex:tH,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return t0(this).formatHsl()},formatRgb:t$,toString:t$}),tP(tz,tW,tA(tO,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new tz(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new tz(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new tz(tK(this.r),tK(this.g),tK(this.b),tX(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tY,formatHex:tY,formatHex8:function(){return`#${tJ(this.r)}${tJ(this.g)}${tJ(this.b)}${tJ((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:tq,toString:tq})),tP(t1,function(t,e,n,r){return 1==arguments.length?t0(t):new t1(t,e,n,null==r?1:r)},tA(tO,{brighter(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new t1(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?.7:Math.pow(.7,t),new t1(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new tz(t6(t>=240?t-240:t+120,i,r),t6(t,i,r),t6(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new t1(t2(this.h),t5(this.s),t5(this.l),tX(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=tX(this.opacity);return`${1===t?"hsl(":"hsla("}${t2(this.h)}, ${100*t5(this.s)}%, ${100*t5(this.l)}%${1===t?")":`, ${t})`}`}}));var t4=t=>()=>t;function t8(t,e){var n=e-t;return n?function(e){return t+e*n}:t4(isNaN(t)?e:t)}var t7=function t(e){var n,r=1==(n=+(n=e))?t8:function(t,e){var r,i,o;return e-t?(r=t,i=e,r=Math.pow(r,o=n),i=Math.pow(i,o)-r,o=1/o,function(t){return Math.pow(r+t*i,o)}):t4(isNaN(t)?e:t)};function i(t,e){var n=r((t=tW(t)).r,(e=tW(e)).r),i=r(t.g,e.g),o=r(t.b,e.b),s=t8(t.opacity,e.opacity);return function(e){return t.r=n(e),t.g=i(e),t.b=o(e),t.opacity=s(e),t+""}}return i.gamma=t,i}(1);function t9(t){return function(e){var n,r,i=e.length,o=Array(i),s=Array(i),a=Array(i);for(n=0;n<i;++n)r=tW(e[n]),o[n]=r.r||0,s[n]=r.g||0,a[n]=r.b||0;return o=t(o),s=t(s),a=t(a),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=a(t),r+""}}}t9(function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],s=r>0?t[r-1]:2*i-o,a=r<e-1?t[r+2]:2*o-i;return t3((n-r/e)*e,s,i,o,a)}}),t9(function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],s=t[(r+1)%e],a=t[(r+2)%e];return t3((n-r/e)*e,i,o,s,a)}});var et=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ee=RegExp(et.source,"g");function en(t,e){var n;return("number"==typeof e?tb:e instanceof tU?t7:(n=tU(e))?(e=n,t7):function(t,e){var n,r,i,o,s,a=et.lastIndex=ee.lastIndex=0,u=-1,l=[],c=[];for(t+="",e+="";(i=et.exec(t))&&(o=ee.exec(e));)(s=o.index)>a&&(s=e.slice(a,s),l[u]?l[u]+=s:l[++u]=s),(i=i[0])===(o=o[0])?l[u]?l[u]+=o:l[++u]=o:(l[++u]=null,c.push({i:u,x:tb(i,o)})),a=ee.lastIndex;return a<e.length&&(s=e.slice(a),l[u]?l[u]+=s:l[++u]=s),l.length<2?c[0]?(n=c[0].x,function(t){return n(t)+""}):(r=e,function(){return r}):(e=c.length,function(t){for(var n,r=0;r<e;++r)l[(n=c[r]).i]=n.x(t);return l.join("")})})(t,e)}var er=G.prototype.constructor;function ei(t){return function(){this.style.removeProperty(t)}}var eo=0;function es(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}var ea=G.prototype;es.prototype=(function(t){return G().transition(t)}).prototype={constructor:es,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=i(t));for(var r=this._groups,o=r.length,s=Array(o),a=0;a<o;++a)for(var u,l,c=r[a],h=c.length,f=s[a]=Array(h),d=0;d<h;++d)(u=c[d])&&(l=t.call(u,u.__data__,d,c))&&("__data__"in u&&(l.__data__=u.__data__),f[d]=l,tm(f[d],e,n,d,f,ty(u,n)));return new es(s,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=s(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var l,c=r[u],h=c.length,f=0;f<h;++f)if(l=c[f]){for(var d,p=t.call(l,l.__data__,f,c),m=ty(l,n),v=0,g=p.length;v<g;++v)(d=p[v])&&tm(d,e,n,v,p,m);o.push(p),a.push(l)}return new es(o,a,e,n)},selectChild:ea.selectChild,selectChildren:ea.selectChildren,filter:function(t){"function"!=typeof t&&(t=a(t));for(var e=this._groups,n=e.length,r=Array(n),i=0;i<n;++i)for(var o,s=e[i],u=s.length,l=r[i]=[],c=0;c<u;++c)(o=s[c])&&t.call(o,o.__data__,c,s)&&l.push(o);return new es(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),s=Array(r),a=0;a<o;++a)for(var u,l=e[a],c=n[a],h=l.length,f=s[a]=Array(h),d=0;d<h;++d)(u=l[d]||c[d])&&(f[d]=u);for(;a<r;++a)s[a]=e[a];return new es(s,this._parents,this._name,this._id)},selection:function(){return new er(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=++eo,r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],u=a.length,l=0;l<u;++l)if(s=a[l]){var c=ty(s,e);tm(s,t,n,l,a,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new es(r,this._parents,t,n)},call:ea.call,nodes:ea.nodes,node:ea.node,size:ea.size,empty:ea.empty,each:ea.each,on:function(t,e){var n,r,i,o=this._id;return arguments.length<2?ty(this.node(),o).on.on(t):this.each((i=(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t})?tv:tg,function(){var s=i(this,o),a=s.on;a!==n&&(r=(n=a).copy()).on(t,e),s.on=r}))},attr:function(t,e){var n=_(t),r="transform"===n?tT:en;return this.attrTween(t,"function"==typeof e?(n.local?function(t,e,n){var r,i,o;return function(){var s,a,u=n(this);return null==u?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local))===(a=u+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,u))}}:function(t,e,n){var r,i,o;return function(){var s,a,u=n(this);return null==u?void this.removeAttribute(t):(s=this.getAttribute(t))===(a=u+"")?null:s===r&&a===i?o:(i=a,o=e(r=s,u))}})(n,r,tC(this,"attr."+t,e)):null==e?(n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(n):(n.local?function(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttributeNS(t.space,t.local);return s===o?null:s===r?i:i=e(r=s,n)}}:function(t,e,n){var r,i,o=n+"";return function(){var s=this.getAttribute(t);return s===o?null:s===r?i:i=e(r=s,n)}})(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw Error();var r=_(t);return this.tween(n,(r.local?function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttributeNS(t.space,t.local,i.call(this,e))}),n}return i._value=e,i}:function(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(e){this.setAttribute(t,i.call(this,e))}),n}return i._value=e,i})(r,e))},style:function(t,e,n){var r,i,o,s,a,u,l,c,h,f,d,p,m,v,g,y,b,E,w,_,x,T="transform"==(t+="")?tS:en;return null==e?this.styleTween(t,(r=t,function(){var t=S(this,r),e=(this.style.removeProperty(r),S(this,r));return t===e?null:t===i&&e===o?s:s=T(i=t,o=e)})).on("end.style."+t,ei(t)):"function"==typeof e?this.styleTween(t,(a=t,u=tC(this,"style."+t,e),function(){var t=S(this,a),e=u(this),n=e+"";return null==e&&(this.style.removeProperty(a),n=e=S(this,a)),t===n?null:t===l&&n===c?h:(c=n,h=T(l=t,e))})).each((f=this._id,b="end."+(y="style."+(d=t)),function(){var t=tg(this,f),e=t.on,n=null==t.value[y]?g||(g=ei(d)):void 0;(e!==p||v!==n)&&(m=(p=e).copy()).on(b,v=n),t.on=m})):this.styleTween(t,(E=t,x=e+"",function(){var t=S(this,E);return t===x?null:t===w?_:_=T(w=t,e)}),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw Error();return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(e){this.style.setProperty(t,o.call(this,e),n)}),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){var e,n;return this.tween("text","function"==typeof t?(e=tC(this,"text",t),function(){var t=e(this);this.textContent=null==t?"":t}):(n=null==t?"":t+"",function(){this.textContent=n}))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw Error();return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){this.textContent=r.call(this,t)}),e}return r._value=t,r}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=ty(this.node(),n).tween,o=0,s=i.length;o<s;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?function(t,e){var n,r;return function(){var i=tg(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){(r=r.slice()).splice(s,1);break}}i.tween=r}}:function(t,e,n){var r,i;if("function"!=typeof n)throw Error();return function(){var o=tg(this,t),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:n},u=0,l=i.length;u<l;++u)if(i[u].name===e){i[u]=a;break}u===l&&i.push(a)}o.tween=i}})(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tv(this,t).delay=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tv(this,t).delay=e}})(e,t)):ty(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?function(t,e){return function(){tg(this,t).duration=+e.apply(this,arguments)}}:function(t,e){return e=+e,function(){tg(this,t).duration=e}})(e,t)):ty(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw Error();return function(){tg(this,t).ease=e}}(e,t)):ty(this.node(),e).ease},easeVarying:function(t){var e;if("function"!=typeof t)throw Error();return this.each((e=this._id,function(){var n=t.apply(this,arguments);if("function"!=typeof n)throw Error();tg(this,e).ease=n}))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise(function(o,s){var a={value:s},u={value:function(){0==--i&&o()}};n.each(function(){var n=tg(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(a),e._.interrupt.push(a),e._.end.push(u)),n.on=e}),0===i&&o()})},[Symbol.iterator]:ea[Symbol.iterator]};var eu={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};G.prototype.interrupt=function(t){return this.each(function(){!function(t,e){var n,r,i,o=t.__transition,s=!0;if(o){for(i in e=null==e?null:e+"",o){if((n=o[i]).name!==e){s=!1;continue}r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]}s&&delete t.__transition}}(this,t)})},G.prototype.transition=function(t){var e,n;t instanceof es?(e=t._id,t=t._name):(e=++eo,(n=eu).time=to(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s,a=r[o],u=a.length,l=0;l<u;++l)(s=a[l])&&tm(s,t,e,l,a,n||function(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw Error(`transition ${e} not found`);return n}(s,e));return new es(r,this._parents,t,e)};let{abs:el,max:ec,min:eh}=Math;function ef(t){return{type:t}}function ed(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}["w","e"].map(ef),["n","s"].map(ef),["n","w","e","s","nw","ne","sw","se"].map(ef);class ep extends Map{constructor(t,e=ev){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(let[e,n]of t)this.set(e,n)}get(t){return super.get(em(this,t))}has(t){return super.has(em(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){let r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}(this,t))}}function em({_intern:t,_key:e},n){let r=e(n);return t.has(r)?t.get(r):n}function ev(t){return null!==t&&"object"==typeof t?t.valueOf():t}let eg=Symbol("implicit");function ey(t,e,n){this.k=t,this.x=e,this.y=n}ey.prototype={constructor:ey,scale:function(t){return 1===t?this:new ey(this.k*t,this.x,this.y)},translate:function(t,e){return 0===t&0===e?this:new ey(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new ey(1,0,0),ey.prototype},31493:function(t,e,n){"use strict";n.d(e,{M:function(){return y}});var r=n(57437),i=n(2265),o=n(35236);function s(){let t=(0,i.useRef)(!1);return(0,o.L)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var a=n(53872),u=n(68753),l=n(13150),c=n(29182);class h 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 f({children:t,isPresent:e}){let n=(0,i.useId)(),o=(0,i.useRef)(null),s=(0,i.useRef)({width:0,height:0,top:0,left:0}),{nonce:a}=(0,i.useContext)(c._);return(0,i.useInsertionEffect)(()=>{let{width:t,height:r,top:i,left:u}=s.current;if(e||!o.current||!t||!r)return;o.current.dataset.motionPopId=n;let l=document.createElement("style");return a&&(l.nonce=a),document.head.appendChild(l),l.sheet&&l.sheet.insertRule(`
          [data-motion-pop-id="${n}"] {
            position: absolute !important;
            width: ${t}px !important;
            height: ${r}px !important;
            top: ${i}px !important;
            left: ${u}px !important;
          }
        `),()=>{document.head.removeChild(l)}},[e]),(0,r.jsx)(h,{isPresent:e,childRef:o,sizeRef:s,children:i.cloneElement(t,{ref:o})})}let d=({children:t,initial:e,isPresent:n,onExitComplete:o,custom:s,presenceAffectsLayout:a,mode:c})=>{let h=(0,l.h)(p),d=(0,i.useId)(),m=(0,i.useMemo)(()=>({id:d,initial:e,isPresent:n,custom:s,onExitComplete:t=>{for(let e of(h.set(t,!0),h.values()))if(!e)return;o&&o()},register:t=>(h.set(t,!1),()=>h.delete(t))}),a?[Math.random()]:[n]);return(0,i.useMemo)(()=>{h.forEach((t,e)=>h.set(e,!1))},[n]),i.useEffect(()=>{n||h.size||!o||o()},[n]),"popLayout"===c&&(t=(0,r.jsx)(f,{isPresent:n,children:t})),(0,r.jsx)(u.O.Provider,{value:m,children:t})};function p(){return new Map}var m=n(80845),v=n(67720);let g=t=>t.key||"",y=({children:t,custom:e,initial:n=!0,onExitComplete:u,exitBeforeEnter:l,presenceAffectsLayout:c=!0,mode:h="sync"})=>{var f;(0,v.k)(!l,"Replace exitBeforeEnter with mode='wait'");let p=(0,i.useContext)(m.p).forceRender||function(){let t=s(),[e,n]=(0,i.useState)(0),r=(0,i.useCallback)(()=>{t.current&&n(e+1)},[e]);return[(0,i.useCallback)(()=>a.Wi.postRender(r),[r]),e]}()[0],y=s(),b=function(t){let e=[];return i.Children.forEach(t,t=>{(0,i.isValidElement)(t)&&e.push(t)}),e}(t),E=b,w=(0,i.useRef)(new Map).current,_=(0,i.useRef)(E),x=(0,i.useRef)(new Map).current,S=(0,i.useRef)(!0);if((0,o.L)(()=>{S.current=!1,function(t,e){t.forEach(t=>{let n=g(t);e.set(n,t)})}(b,x),_.current=E}),f=()=>{S.current=!0,x.clear(),w.clear()},(0,i.useEffect)(()=>()=>f(),[]),S.current)return(0,r.jsx)(r.Fragment,{children:E.map(t=>(0,r.jsx)(d,{isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:c,mode:h,children:t},g(t)))});E=[...E];let T=_.current.map(g),C=b.map(g),P=T.length;for(let t=0;t<P;t++){let e=T[t];-1!==C.indexOf(e)||w.has(e)||w.set(e,void 0)}return"wait"===h&&w.size&&(E=[]),w.forEach((t,n)=>{if(-1!==C.indexOf(n))return;let i=x.get(n);if(!i)return;let o=T.indexOf(n),s=t;s||(s=(0,r.jsx)(d,{isPresent:!1,onExitComplete:()=>{w.delete(n);let t=Array.from(x.keys()).filter(t=>!C.includes(t));if(t.forEach(t=>x.delete(t)),_.current=b.filter(e=>{let r=g(e);return r===n||t.includes(r)}),!w.size){if(!1===y.current)return;p(),u&&u()}},custom:e,presenceAffectsLayout:c,mode:h,children:i},g(i)),w.set(n,s)),E.splice(o,0,s)}),E=E.map(t=>{let e=t.key;return w.has(e)?t:(0,r.jsx)(d,{isPresent:!0,presenceAffectsLayout:c,mode:h,children:t},g(t))}),(0,r.jsx)(r.Fragment,{children:w.size?E:E.map(t=>(0,i.cloneElement)(t))})}},80845:function(t,e,n){"use strict";n.d(e,{p:function(){return r}});let r=(0,n(2265).createContext)({})},29182:function(t,e,n){"use strict";n.d(e,{_:function(){return r}});let r=(0,n(2265).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},68753:function(t,e,n){"use strict";n.d(e,{O:function(){return r}});let r=(0,n(2265).createContext)(null)},87817:function(t,e,n){"use strict";n.d(e,{Z:function(){return s}});var r=n(83790);class i{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["read","resolveKeyframes","update","preRender","render","postRender"];function s(t,e){let n=!1,s=!0,a={delta:0,timestamp:0,isProcessing:!1},u=o.reduce((t,e)=>(t[e]=function(t){let e=new i,n=new i,r=0,o=!1,s=!1,a=new WeakSet,u={schedule:(t,i=!1,s=!1)=>{let u=s&&o,l=u?e:n;return i&&a.add(t),l.add(t)&&u&&o&&(r=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:i=>{if(o){s=!0;return}if(o=!0,[e,n]=[n,e],n.clear(),r=e.order.length)for(let n=0;n<r;n++){let r=e.order[n];a.has(r)&&(u.schedule(r),t()),r(i)}o=!1,s&&(s=!1,u.process(i))}};return u}(()=>n=!0),t),{}),l=t=>{u[t].process(a)},c=()=>{let i=r.c.useManualTiming?a.timestamp:performance.now();n=!1,a.delta=s?1e3/60:Math.max(Math.min(i-a.timestamp,40),1),a.timestamp=i,a.isProcessing=!0,o.forEach(l),a.isProcessing=!1,n&&e&&(s=!1,t(c))},h=()=>{n=!0,s=!0,a.isProcessing||t(c)};return{schedule:o.reduce((t,e)=>{let r=u[e];return t[e]=(t,e=!1,i=!1)=>(n||h(),r.schedule(t,e,i)),t},{}),cancel:t=>o.forEach(e=>u[e].cancel(t)),state:a,steps:u}}},53872:function(t,e,n){"use strict";n.d(e,{Pn:function(){return o},S6:function(){return a},Wi:function(){return i},frameData:function(){return s}});var r=n(18586);let{schedule:i,cancel:o,state:s,steps:a}=(0,n(87817).Z)("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},51682:function(t,e,n){"use strict";let r,i;n.d(e,{E:function(){return i3}});var o,s,a=n(57437),u=n(2265),l=n(29182);let c=(0,u.createContext)({});var h=n(68753),f=n(35236);let d=(0,u.createContext)({strict:!1}),p=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),m="data-"+p("framerAppearId"),{schedule:v,cancel:g}=(0,n(87817).Z)(queueMicrotask,!1);function y(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function b(t){return"string"==typeof t||Array.isArray(t)}function E(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}let w=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],_=["initial",...w];function x(t){return E(t.animate)||_.some(e=>b(t[e]))}function S(t){return!!(x(t)||t.variants)}function T(t){return Array.isArray(t)?t.join(" "):t}let C={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"]},P={};for(let t in C)P[t]={isEnabled:e=>C[t].some(t=>!!e[t])};var A=n(52478),O=n(80845);let M=(0,u.createContext)({}),N=Symbol.for("motionComponentSymbol"),k=["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 R(t){if("string"!=typeof t||t.includes("-"));else if(k.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}let D={},L=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],I=new Set(L);function B(t,{layout:e,layoutId:n}){return I.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!D[t]||"opacity"===t)}let F=t=>!!(t&&t.getVelocity),V={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},j=L.length,H=t=>e=>"string"==typeof e&&e.startsWith(t),$=H("--"),U=H("var(--"),G=t=>!!U(t)&&Z.test(t.split("/*")[0].trim()),Z=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,W=(t,e)=>e&&"number"==typeof t?e.transform(t):t,z=(t,e,n)=>n>e?e:n<t?t:n,Y={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},q={...Y,transform:t=>z(0,1,t)},X={...Y,default:1},K=t=>Math.round(1e5*t)/1e5,J=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Q=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function te(t){return"string"==typeof t}let tn=t=>({test:e=>te(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),tr=tn("deg"),ti=tn("%"),to=tn("px"),ts=tn("vh"),ta=tn("vw"),tu={...ti,parse:t=>ti.parse(t)/100,transform:t=>ti.transform(100*t)},tl={...Y,transform:Math.round},tc={borderWidth:to,borderTopWidth:to,borderRightWidth:to,borderBottomWidth:to,borderLeftWidth:to,borderRadius:to,radius:to,borderTopLeftRadius:to,borderTopRightRadius:to,borderBottomRightRadius:to,borderBottomLeftRadius:to,width:to,maxWidth:to,height:to,maxHeight:to,size:to,top:to,right:to,bottom:to,left:to,padding:to,paddingTop:to,paddingRight:to,paddingBottom:to,paddingLeft:to,margin:to,marginTop:to,marginRight:to,marginBottom:to,marginLeft:to,rotate:tr,rotateX:tr,rotateY:tr,rotateZ:tr,scale:X,scaleX:X,scaleY:X,scaleZ:X,skew:tr,skewX:tr,skewY:tr,distance:to,translateX:to,translateY:to,translateZ:to,x:to,y:to,z:to,perspective:to,transformPerspective:to,opacity:q,originX:tu,originY:tu,originZ:to,zIndex:tl,backgroundPositionX:to,backgroundPositionY:to,fillOpacity:q,strokeOpacity:q,numOctaves:tl};function th(t,e,n,r){let{style:i,vars:o,transform:s,transformOrigin:a}=t,u=!1,l=!1,c=!0;for(let t in e){let n=e[t];if($(t)){o[t]=n;continue}let r=tc[t],h=W(n,r);if(I.has(t)){if(u=!0,s[t]=h,!c)continue;n!==(r.default||0)&&(c=!1)}else t.startsWith("origin")?(l=!0,a[t]=h):i[t]=h}if(!e.transform&&(u||r?i.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let e=0;e<j;e++){let n=L[e];if(void 0!==t[n]){let e=V[n]||n;o+=`${e}(${t[n]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}(t.transform,n,c,r):i.transform&&(i.transform="none")),l){let{originX:t="50%",originY:e="50%",originZ:n=0}=a;i.transformOrigin=`${t} ${e} ${n}`}}let tf=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function td(t,e,n){for(let r in e)F(e[r])||B(r,n)||(t[r]=e[r])}let tp=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 tm(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||tp.has(t)}let tv=t=>!tm(t);try{(o=require("@emotion/is-prop-valid").default)&&(tv=t=>t.startsWith("on")?!tm(t):o(t))}catch(t){}function tg(t,e,n){return"string"==typeof t?t:to.transform(e+n*t)}let ty={offset:"stroke-dashoffset",array:"stroke-dasharray"},tb={offset:"strokeDashoffset",array:"strokeDasharray"};function tE(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:u=0,...l},c,h,f){if(th(t,l,c,f),h){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:d,style:p,dimensions:m}=t;d.transform&&(m&&(p.transform=d.transform),delete d.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){let r=tg(e,t.x,t.width),i=tg(n,t.y,t.height);return`${r} ${i}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(d.x=e),void 0!==n&&(d.y=n),void 0!==r&&(d.scale=r),void 0!==s&&function(t,e,n=1,r=0,i=!0){t.pathLength=1;let o=i?ty:tb;t[o.offset]=to.transform(-r);let s=to.transform(e),a=to.transform(n);t[o.array]=`${s} ${a}`}(d,s,a,u,!1)}let tw=()=>({...tf(),attrs:{}}),t_=t=>"string"==typeof t&&"svg"===t.toLowerCase();function tx(t,{style:e,vars:n},r,i){for(let o in Object.assign(t.style,e,i&&i.getProjectionStyles(r)),n)t.style.setProperty(o,n[o])}let tS=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 tT(t,e,n,r){for(let n in tx(t,e,void 0,r),e.attrs)t.setAttribute(tS.has(n)?n:p(n),e.attrs[n])}function tC(t,e,n){var r;let{style:i}=t,o={};for(let s in i)(F(i[s])||e.style&&F(e.style[s])||B(s,t)||(null===(r=null==n?void 0:n.getValue(s))||void 0===r?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return o}function tP(t,e,n){let r=tC(t,e,n);for(let n in t)(F(t[n])||F(e[n]))&&(r[-1!==L.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=t[n]);return r}function tA(t,e,n,r={},i={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),e}var tO=n(13150);let tM=t=>Array.isArray(t),tN=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),tk=t=>tM(t)?t[t.length-1]||0:t;function tR(t){let e=F(t)?t.get():t;return tN(e)?e.toValue():e}let tD=t=>(e,n)=>{let r=(0,u.useContext)(c),i=(0,u.useContext)(h.O),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){let s={latestValues:function(t,e,n,r){let i={},o=r(t,{});for(let t in o)i[t]=tR(o[t]);let{initial:s,animate:a}=t,u=x(t),l=S(t);e&&l&&!u&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial,h=(c=c||!1===s)?a:s;return h&&"boolean"!=typeof h&&!E(h)&&(Array.isArray(h)?h:[h]).forEach(e=>{let n=tA(t,e);if(!n)return;let{transitionEnd:r,transition:o,...s}=n;for(let t in s){let e=s[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(i[t]=e)}for(let t in r)i[t]=r[t]}),i}(r,i,o,t),renderState:e()};return n&&(s.mount=t=>n(r,t,s)),s})(t,e,r,i);return n?o():(0,tO.h)(o)};var tL=n(53872);let tI={useVisualState:tD({scrapeMotionValuesFromProps:tP,createRenderState:tw,onMount:(t,e,{renderState:n,latestValues:r})=>{tL.Wi.read(()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}}),tL.Wi.render(()=>{tE(n,r,{enableHardwareAcceleration:!1},t_(e.tagName),t.transformTemplate),tT(e,n)})}})},tB={useVisualState:tD({scrapeMotionValuesFromProps:tC,createRenderState:tf})};function tF(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}let tV=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function tj(t,e="page"){return{point:{x:t[`${e}X`],y:t[`${e}Y`]}}}let tH=t=>e=>tV(e)&&t(e,tj(e));function t$(t,e,n,r){return tF(t,e,tH(n),r)}let tU=(t,e)=>n=>e(t(n)),tG=(...t)=>t.reduce(tU);function tZ(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tW=tZ("dragHorizontal"),tz=tZ("dragVertical");function tY(t){let e=!1;if("y"===t)e=tz();else if("x"===t)e=tW();else{let t=tW(),n=tz();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function tq(){let t=tY(!0);return!t||(t(),!1)}class tX{constructor(t){this.isMounted=!1,this.node=t}update(){}}function tK(t,e){let n=e?"onHoverStart":"onHoverEnd";return t$(t.current,e?"pointerenter":"pointerleave",(r,i)=>{if("touch"===r.pointerType||tq())return;let o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e);let s=o[n];s&&s(r,i)},{passive:!t.getProps()[n]})}class tJ extends tX{mount(){this.unmount=tG(tK(this.node,!0),tK(this.node,!1))}unmount(){}}class tQ extends tX{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=tG(tF(this.node.current,"focus",()=>this.onFocus()),tF(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let t0=(t,e)=>!!e&&(t===e||t0(t,e.parentElement));var t1=n(18586);function t2(t,e){if(!e)return;let n=new PointerEvent("pointer"+t);e(n,tj(n))}class t5 extends tX{constructor(){super(...arguments),this.removeStartListeners=t1.Z,this.removeEndListeners=t1.Z,this.removeAccessibleListeners=t1.Z,this.startPointerPress=(t,e)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),r=t$(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r,globalTapTarget:i}=this.node.getProps();i||t0(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)},{passive:!(n.onTap||n.onPointerUp)}),i=t$(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=tG(r,i),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=tF(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tF(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&t2("up",(t,e)=>{let{onTap:n}=this.node.getProps();n&&n(t,e)})}),t2("down",(t,e)=>{this.startPress(t,e)}))}),e=tF(this.node.current,"blur",()=>{this.isPressing&&t2("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=tG(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&n(t,e)}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tq()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&n(t,e)}mount(){let t=this.node.getProps(),e=t$(t.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=tF(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=tG(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let t6=new WeakMap,t3=new WeakMap,t4=t=>{let e=t6.get(t.target);e&&e(t)},t8=t=>{t.forEach(t4)},t7={some:0,all:1};class t9 extends tX{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:t7[r]};return function(t,e,n){let r=function({root:t,...e}){let n=t||document;t3.has(n)||t3.set(n,{});let r=t3.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(t8,{root:t,...e})),r[i]}(e);return t6.set(t,n),r.observe(t),()=>{t6.delete(t),r.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:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;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 n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}function et(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function ee(t,e,n){let r=t.getProps();return tA(r,e,void 0!==n?n:r.custom,function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}let en=t=>1e3*t,er=t=>t/1e3,ei={type:"spring",stiffness:500,damping:25,restSpeed:10},eo=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),es={type:"keyframes",duration:.8},ea={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eu=(t,{keyframes:e})=>e.length>2?es:I.has(t)?t.startsWith("scale")?eo(e[1]):ei:ea;function el(t,e){return t[e]||t.default||t}var ec=n(83790);let eh={current:!1},ef=t=>null!==t;function ed(t,{repeat:e,repeatType:n="loop"},r){let i=t.filter(ef),o=e&&"loop"!==n&&e%2==1?0:i.length-1;return o&&void 0!==r?r:i[o]}function ep(){r=void 0}let em={now:()=>(void 0===r&&em.set(tL.frameData.isProcessing||ec.c.useManualTiming?tL.frameData.timestamp:performance.now()),r),set:t=>{r=t,queueMicrotask(ep)}},ev=t=>/^0[^.\s]+$/u.test(t);var eg=n(67720);let ey=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),eb=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,eE=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),ew=t=>t===Y||t===to,e_=(t,e)=>parseFloat(t.split(", ")[e]),ex=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return e_(i[1],e);{let e=r.match(/^matrix\((.+)\)$/u);return e?e_(e[1],t):0}},eS=new Set(["x","y","z"]),eT=L.filter(t=>!eS.has(t)),eC={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),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:ex(4,13),y:ex(5,14)};eC.translateX=eC.x,eC.translateY=eC.y;let eP=t=>e=>e.test(t),eA=[Y,to,ti,tr,ta,ts,{test:t=>"auto"===t,parse:t=>t}],eO=t=>eA.find(eP(t)),eM=new Set,eN=!1,ek=!1;function eR(){if(ek){let t=Array.from(eM).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),n=new Map;e.forEach(t=>{let e=function(t){let e=[];return eT.forEach(n=>{let r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e}(t);e.length&&(n.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=n.get(t);e&&e.forEach(([e,n])=>{var r;null===(r=t.getValue(e))||void 0===r||r.set(n)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}ek=!1,eN=!1,eM.forEach(t=>t.complete()),eM.clear()}function eD(){eM.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(ek=!0)})}class eL{constructor(t,e,n,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(eM.add(this),eN||(eN=!0,tL.Wi.read(eD),tL.Wi.resolveKeyframes(eR))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:n,motionValue:r}=this;for(let i=0;i<t.length;i++)if(null===t[i]){if(0===i){let i=null==r?void 0:r.get(),o=t[t.length-1];if(void 0!==i)t[0]=i;else if(n&&e){let r=n.readValue(e,o);null!=r&&(t[0]=r)}void 0===t[0]&&(t[0]=o),r&&void 0===i&&r.set(t[0])}else t[i]=t[i-1]}}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),eM.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,eM.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let eI=(t,e)=>n=>!!(te(n)&&tt.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),eB=(t,e,n)=>r=>{if(!te(r))return r;let[i,o,s,a]=r.match(J);return{[t]:parseFloat(i),[e]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},eF=t=>z(0,255,t),eV={...Y,transform:t=>Math.round(eF(t))},ej={test:eI("rgb","red"),parse:eB("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+eV.transform(t)+", "+eV.transform(e)+", "+eV.transform(n)+", "+K(q.transform(r))+")"},eH={test:eI("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:ej.transform},e$={test:eI("hsl","hue"),parse:eB("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:r=1})=>"hsla("+Math.round(t)+", "+ti.transform(K(e))+", "+ti.transform(K(n))+", "+K(q.transform(r))+")"},eU={test:t=>ej.test(t)||eH.test(t)||e$.test(t),parse:t=>ej.test(t)?ej.parse(t):e$.test(t)?e$.parse(t):eH.parse(t),transform:t=>te(t)?t:t.hasOwnProperty("red")?ej.transform(t):e$.transform(t)},eG="number",eZ="color",eW=/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 ez(t){let e=t.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,s=e.replace(eW,t=>(eU.test(t)?(r.color.push(o),i.push(eZ),n.push(eU.parse(t))):t.startsWith("var(")?(r.var.push(o),i.push("var"),n.push(t)):(r.number.push(o),i.push(eG),n.push(parseFloat(t))),++o,"${}")).split("${}");return{values:n,split:s,indexes:r,types:i}}function eY(t){return ez(t).values}function eq(t){let{split:e,types:n}=ez(t),r=e.length;return t=>{let i="";for(let o=0;o<r;o++)if(i+=e[o],void 0!==t[o]){let e=n[o];e===eG?i+=K(t[o]):e===eZ?i+=eU.transform(t[o]):i+=t[o]}return i}}let eX=t=>"number"==typeof t?0:t,eK={test:function(t){var e,n;return isNaN(t)&&te(t)&&((null===(e=t.match(J))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(Q))||void 0===n?void 0:n.length)||0)>0},parse:eY,createTransformer:eq,getAnimatableNone:function(t){let e=eY(t);return eq(t)(e.map(eX))}},eJ=new Set(["brightness","contrast","saturate","opacity"]);function eQ(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=n.match(J)||[];if(!r)return t;let i=n.replace(r,""),o=eJ.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}let e0=/\b([a-z-]*)\(.*?\)/gu,e1={...eK,getAnimatableNone:t=>{let e=t.match(e0);return e?e.map(eQ).join(" "):t}},e2={...tc,color:eU,backgroundColor:eU,outlineColor:eU,fill:eU,stroke:eU,borderColor:eU,borderTopColor:eU,borderRightColor:eU,borderBottomColor:eU,borderLeftColor:eU,filter:e1,WebkitFilter:e1},e5=t=>e2[t];function e6(t,e){let n=e5(t);return n!==e1&&(n=eK),n.getAnimatableNone?n.getAnimatableNone(e):void 0}class e3 extends eL{constructor(t,e,n,r){super(t,e,n,r,null==r?void 0:r.owner,!0)}readKeyframes(){let{unresolvedKeyframes:t,element:e,name:n}=this;if(!e.current)return;super.readKeyframes();for(let n=0;n<t.length;n++){let r=t[n];if("string"==typeof r&&G(r)){let i=function t(e,n,r=1){(0,eg.k)(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,o]=function(t){let e=eb.exec(t);if(!e)return[,];let[,n,r,i]=e;return[`--${null!=n?n:r}`,i]}(e);if(!i)return;let s=window.getComputedStyle(n).getPropertyValue(i);if(s){let t=s.trim();return ey(t)?parseFloat(t):t}return G(o)?t(o,n,r+1):o}(r,e.current);void 0!==i&&(t[n]=i),n===t.length-1&&(this.finalKeyframe=r)}}if(!eE.has(n)||2!==t.length)return this.resolveNoneKeyframes();let[r,i]=t,o=eO(r),s=eO(i);if(o!==s){if(ew(o)&&ew(s))for(let e=0;e<t.length;e++){let n=t[e];"string"==typeof n&&(t[e]=parseFloat(n))}else this.needsMeasurement=!0}}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,n=[];for(let e=0;e<t.length;e++){var r;("number"==typeof(r=t[e])?0===r:null===r||"none"===r||"0"===r||ev(r))&&n.push(e)}n.length&&function(t,e,n){let r,i=0;for(;i<t.length&&!r;)"string"==typeof t[i]&&"none"!==t[i]&&"0"!==t[i]&&(r=t[i]),i++;if(r&&n)for(let i of e)t[i]=e6(n,r)}(t,n,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:n}=this;if(!t.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=eC[n](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let r=e[e.length-1];void 0!==r&&t.getValue(n,r).jump(r,!1)}measureEndState(){var t;let{element:e,name:n,unresolvedKeyframes:r}=this;if(!e.current)return;let i=e.getValue(n);i&&i.jump(this.measuredOrigin,!1);let o=r.length-1,s=r[o];r[o]=eC[n](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.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}}let e4=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(eK.test(t)||"0"===t)&&!t.startsWith("url("));class e8{constructor({autoplay:t=!0,delay:e=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:t,delay:e,type:n,repeat:r,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(eD(),eR()),this._resolved}onKeyframesResolved(t,e){this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:u}=this.options;if(!u&&!function(t,e,n,r){let i=t[0];if(null===i)return!1;let o=t[t.length-1],s=e4(i,e),a=e4(o,e);return(0,eg.K)(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 n=0;n<t.length;n++)if(t[n]!==e)return!0}(t)||"spring"===n&&r)}(t,n,r,i)){if(eh.current||!o){null==a||a(ed(t,this.options,e)),null==s||s(),this.resolveFinishedPromise();return}this.options.duration=0}let l=this.initPlayback(t,e);!1!==l&&(this._resolved={keyframes:t,finalKeyframe:e,...l},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}function e7(t,e,n){var r,i;let o=Math.max(e-5,0);return r=n-t(o),(i=e-o)?1e3/i*r:0}function e9(t,e){return t*Math.sqrt(1-e*e)}let nt=["duration","bounce"],ne=["stiffness","damping","mass"];function nn(t,e){return e.some(e=>void 0!==t[e])}function nr({keyframes:t,restDelta:e,restSpeed:n,...r}){let i;let o=t[0],s=t[t.length-1],a={done:!1,value:o},{stiffness:u,damping:l,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!nn(t,ne)&&nn(t,nt)){let n=function({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;(0,eg.K)(t<=en(10),"Spring duration must be 10 seconds or less");let s=1-e;s=z(.05,1,s),t=z(.01,10,er(t)),s<1?(i=e=>{let r=e*s,i=r*t;return .001-(r-n)/e9(e,s)*Math.exp(-i)},o=e=>{let r=e*s*t,o=Math.pow(s,2)*Math.pow(e,2)*t,a=e9(Math.pow(e,2),s);return(r*n+n-o)*Math.exp(-r)*(-i(e)+.001>0?-1:1)/a}):(i=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),o=e=>t*t*(n-e)*Math.exp(-e*t));let a=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(i,o,5/t);if(t=en(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*s*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...n,mass:1}).isResolvedFromDuration=!0}return e}({...r,velocity:-er(r.velocity||0)}),p=f||0,m=l/(2*Math.sqrt(u*c)),v=s-o,g=er(Math.sqrt(u/c)),y=5>Math.abs(v);if(n||(n=y?.01:2),e||(e=y?.005:.5),m<1){let t=e9(g,m);i=e=>s-Math.exp(-m*g*e)*((p+m*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===m)i=t=>s-Math.exp(-g*t)*(v+(p+g*v)*t);else{let t=g*Math.sqrt(m*m-1);i=e=>{let n=Math.exp(-m*g*e),r=Math.min(t*e,300);return s-n*((p+m*g*v)*Math.sinh(r)+t*v*Math.cosh(r))/t}}return{calculatedDuration:d&&h||null,next:t=>{let r=i(t);if(d)a.done=t>=h;else{let o=p;0!==t&&(o=m<1?e7(i,t,r):0);let u=Math.abs(o)<=n,l=Math.abs(s-r)<=e;a.done=u&&l}return a.value=a.done?s:r,a}}}function ni({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:u,restDelta:l=.5,restSpeed:c}){let h,f;let d=t[0],p={done:!1,value:d},m=t=>void 0!==a&&t<a||void 0!==u&&t>u,v=t=>void 0===a?u:void 0===u?a:Math.abs(a-t)<Math.abs(u-t)?a:u,g=n*e,y=d+g,b=void 0===s?y:s(y);b!==y&&(g=b-d);let E=t=>-g*Math.exp(-t/r),w=t=>b+E(t),_=t=>{let e=E(t),n=w(t);p.done=Math.abs(e)<=l,p.value=p.done?b:n},x=t=>{m(p.value)&&(h=t,f=nr({keyframes:[p.value,v(p.value)],velocity:e7(w,t,p.value),damping:i,stiffness:o,restDelta:l,restSpeed:c}))};return x(0),{calculatedDuration:null,next:t=>{let e=!1;return(f||void 0!==h||(e=!0,_(t),x(t)),void 0!==h&&t>=h)?f.next(t-h):(e||_(t),p)}}}let no=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function ns(t,e,n,r){if(t===e&&n===r)return t1.Z;let i=e=>(function(t,e,n,r,i){let o,s;let a=0;do(o=no(s=e+(n-e)/2,r,i)-t)>0?n=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,n);return t=>0===t||1===t?t:no(i(t),e,r)}let na=ns(.42,0,1,1),nu=ns(0,0,.58,1),nl=ns(.42,0,.58,1),nc=t=>Array.isArray(t)&&"number"!=typeof t[0],nh=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,nf=t=>e=>1-t(1-e),nd=t=>1-Math.sin(Math.acos(t)),np=nf(nd),nm=nh(nd),nv=ns(.33,1.53,.69,.99),ng=nf(nv),ny=nh(ng),nb={linear:t1.Z,easeIn:na,easeInOut:nl,easeOut:nu,circIn:nd,circInOut:nm,circOut:np,backIn:ng,backInOut:ny,backOut:nv,anticipate:t=>(t*=2)<1?.5*ng(t):.5*(2-Math.pow(2,-10*(t-1)))},nE=t=>{if(Array.isArray(t)){(0,eg.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,r,i]=t;return ns(e,n,r,i)}return"string"==typeof t?((0,eg.k)(void 0!==nb[t],`Invalid easing type '${t}'`),nb[t]):t},nw=(t,e,n)=>{let r=e-t;return 0===r?1:(n-t)/r},n_=(t,e,n)=>t+(e-t)*n;function nx(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}let nS=(t,e,n)=>{let r=t*t,i=n*(e*e-r)+r;return i<0?0:Math.sqrt(i)},nT=[eH,ej,e$],nC=t=>nT.find(e=>e.test(t));function nP(t){let e=nC(t);(0,eg.k)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===e$&&(n=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,o=0,s=0;if(e/=100){let r=n<.5?n*(1+e):n+e-n*e,a=2*n-r;i=nx(a,r,t+1/3),o=nx(a,r,t),s=nx(a,r,t-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let nA=(t,e)=>{let n=nP(t),r=nP(e),i={...n};return t=>(i.red=nS(n.red,r.red,t),i.green=nS(n.green,r.green,t),i.blue=nS(n.blue,r.blue,t),i.alpha=n_(n.alpha,r.alpha,t),ej.transform(i))};function nO(t,e){return n=>n>0?e:t}function nM(t,e){return n=>n_(t,e,n)}function nN(t){return"number"==typeof t?nM:"string"==typeof t?G(t)?nO:eU.test(t)?nA:nD:Array.isArray(t)?nk:"object"==typeof t?eU.test(t)?nA:nR:nO}function nk(t,e){let n=[...t],r=n.length,i=t.map((t,n)=>nN(t)(t,e[n]));return t=>{for(let e=0;e<r;e++)n[e]=i[e](t);return n}}function nR(t,e){let n={...t,...e},r={};for(let i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=nN(t[i])(t[i],e[i]));return t=>{for(let e in r)n[e]=r[e](t);return n}}let nD=(t,e)=>{let n=eK.createTransformer(e),r=ez(t),i=ez(e);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?tG(nk(function(t,e){var n;let r=[],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]],u=null!==(n=t.values[a])&&void 0!==n?n:0;r[o]=u,i[s]++}return r}(r,i),i.values),n):((0,eg.K)(!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.`),nO(t,e))};function nL(t,e,n){return"number"==typeof t&&"number"==typeof e&&"number"==typeof n?n_(t,e,n):nN(t)(t,e)}function nI({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){let i=nc(r)?r.map(nE):nE(r),o={done:!1,value:e[0]},s=function(t,e,{clamp:n=!0,ease:r,mixer:i}={}){let o=t.length;if((0,eg.k)(o===e.length,"Both input and output ranges must be the same length"),1===o)return()=>e[0];if(2===o&&t[0]===t[1])return()=>e[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let s=function(t,e,n){let r=[],i=n||nL,o=t.length-1;for(let n=0;n<o;n++){let o=i(t[n],t[n+1]);e&&(o=tG(Array.isArray(e)?e[n]||t1.Z:e,o)),r.push(o)}return r}(e,r,i),a=s.length,u=e=>{let n=0;if(a>1)for(;n<t.length-2&&!(e<t[n+1]);n++);let r=nw(t[n],t[n+1],e);return s[n](r)};return n?e=>u(z(t[0],t[o-1],e)):u}((n&&n.length===e.length?n:function(t){let e=[0];return function(t,e){let n=t[t.length-1];for(let r=1;r<=e;r++){let i=nw(0,e,r);t.push(n_(n,1,i))}}(e,t.length-1),e}(e)).map(e=>e*t),e,{ease:Array.isArray(i)?i:e.map(()=>i||nl).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=s(e),o.done=e>=t,o)}}let nB=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tL.Wi.update(e,!0),stop:()=>(0,tL.Pn)(e),now:()=>tL.frameData.isProcessing?tL.frameData.timestamp:em.now()}},nF={decay:ni,inertia:ni,tween:nI,keyframes:nI,spring:nr},nV=t=>t/100;class nj extends e8{constructor({KeyframeResolver:t=eL,...e}){super(e),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",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:n,motionValue:r,keyframes:i}=this.options,o=(t,e)=>this.onKeyframesResolved(t,e);n&&r&&r.owner?this.resolver=r.owner.resolveKeyframes(i,o,n,r):this.resolver=new t(i,o,n,r),this.resolver.scheduleResolve()}initPlayback(t){let e,n;let{type:r="keyframes",repeat:i=0,repeatDelay:o=0,repeatType:s,velocity:a=0}=this.options,u=nF[r]||nI;u!==nI&&"number"!=typeof t[0]&&(e=tG(nV,nL(t[0],t[1])),t=[0,100]);let l=u({...this.options,keyframes:t});"mirror"===s&&(n=u({...this.options,keyframes:[...t].reverse(),velocity:-a})),null===l.calculatedDuration&&(l.calculatedDuration=function(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}(l));let{calculatedDuration:c}=l,h=c+o;return{generator:l,mirroredGenerator:n,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:n}=this;if(!n){let{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:u,totalDuration:l,resolvedDuration:c}=n;if(null===this.startTime)return i.next(0);let{delay:h,repeat:f,repeatType:d,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-l/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),g=this.speed>=0?v<0:v>l;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=l);let y=this.currentTime,b=i;if(f){let t=Math.min(this.currentTime,l)/c,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,(e=Math.min(e,f+1))%2&&("reverse"===d?(n=1-n,p&&(n-=p/c)):"mirror"===d&&(b=o)),y=z(0,1,n)*c}let E=g?{done:!1,value:a[0]}:b.next(y);s&&(E.value=s(E.value));let{done:w}=E;g||null===u||(w=this.speed>=0?this.currentTime>=l:this.currentTime<=0);let _=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return _&&void 0!==r&&(E.value=ed(a,this.options,r)),m&&m(E.value),_&&this.finish(),E}get duration(){let{resolved:t}=this;return t?er(t.calculatedDuration):0}get time(){return er(this.currentTime)}set time(t){t=en(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=er(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:t=nB,onPlay:e}=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),"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 nH=t=>Array.isArray(t)&&"number"==typeof t[0],n$=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,nU={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:n$([0,.65,.55,1]),circOut:n$([.55,0,1,.45]),backIn:n$([.31,.01,.66,-.59]),backOut:n$([.33,1.53,.69,.99])};function nG(t){return nZ(t)||nU.easeOut}function nZ(t){if(t)return nH(t)?n$(t):Array.isArray(t)?t.map(nG):nU[t]}let nW=(s=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===i&&(i=s()),i)),nz=new Set(["opacity","clipPath","filter","transform"]);class nY extends e8{constructor(t){super(t);let{name:e,motionValue:n,keyframes:r}=this.options;this.resolver=new e3(r,(t,e)=>this.onKeyframesResolved(t,e),e,n),this.resolver.scheduleResolve()}initPlayback(t,e){var n,r;let{duration:i=300,times:o,ease:s,type:a,motionValue:u,name:l}=this.options;if(!(null===(n=u.owner)||void 0===n?void 0:n.current))return!1;if("spring"===(r=this.options).type||"backgroundColor"===r.name||!function t(e){return!!(!e||"string"==typeof e&&e in nU||nH(e)||Array.isArray(e)&&e.every(t))}(r.ease)){let{onComplete:e,onUpdate:n,motionValue:r,...u}=this.options,l=function(t,e){let n=new nj({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:t[0]},i=[],o=0;for(;!r.done&&o<2e4;)i.push((r=n.sample(o)).value),o+=10;return{times:void 0,keyframes:i,duration:o-10,ease:"linear"}}(t,u);1===(t=l.keyframes).length&&(t[1]=t[0]),i=l.duration,o=l.times,s=l.ease,a="keyframes"}let c=function(t,e,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a,times:u}={}){let l={[e]:n};u&&(l.offset=u);let c=nZ(a);return Array.isArray(c)&&(l.easing=c),t.animate(l,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(u.owner.current,l,t,{...this.options,duration:i,times:o,ease:s});return c.startTime=em.now(),this.pendingTimeline?(c.timeline=this.pendingTimeline,this.pendingTimeline=void 0):c.onfinish=()=>{let{onComplete:n}=this.options;u.set(ed(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:i,times:o,type:a,ease:s,keyframes:t}}get duration(){let{resolved:t}=this;if(!t)return 0;let{duration:e}=t;return er(e)}get time(){let{resolved:t}=this;if(!t)return 0;let{animation:e}=t;return er(e.currentTime||0)}set time(t){let{resolved:e}=this;if(!e)return;let{animation:n}=e;n.currentTime=en(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:n}=e;n.playbackRate=t}get state(){let{resolved:t}=this;if(!t)return"idle";let{animation:e}=t;return e.playState}attachTimeline(t){if(this._resolved){let{resolved:e}=this;if(!e)return t1.Z;let{animation:n}=e;n.timeline=t,n.onfinish=null}else this.pendingTimeline=t;return t1.Z}play(){if(this.isStopped)return;let{resolved:t}=this;if(!t)return;let{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){let{resolved:t}=this;if(!t)return;let{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;let{resolved:t}=this;if(!t)return;let{animation:e,keyframes:n,duration:r,type:i,ease:o,times:s}=t;if("idle"!==e.playState&&"finished"!==e.playState){if(this.time){let{motionValue:t,onUpdate:e,onComplete:a,...u}=this.options,l=new nj({...u,keyframes:n,duration:r,type:i,ease:o,times:s,isGenerator:!0}),c=en(this.time);t.setWithVelocity(l.sample(c-10).value,l.sample(c).value,10)}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:n,repeatDelay:r,repeatType:i,damping:o,type:s}=t;return nW()&&n&&nz.has(n)&&e&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUpdate&&!r&&"mirror"!==i&&0!==o&&"inertia"!==s}}let nq=(t,e,n,r={},i,o)=>s=>{let a=el(r,t)||{},u=a.delay||r.delay||0,{elapsed:l=0}=r;l-=en(u);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-l,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:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:u,elapsed:l,...c}){return!!Object.keys(c).length}(a)&&(c={...c,...eu(t,c)}),c.duration&&(c.duration=en(c.duration)),c.repeatDelay&&(c.repeatDelay=en(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)),(eh.current||ec.c.skipAnimations)&&(h=!0,c.duration=0,c.delay=0),h&&!o&&void 0!==e.get()){let t=ed(c.keyframes,a);if(void 0!==t){tL.Wi.update(()=>{c.onUpdate(t),c.onComplete()});return}}return!o&&nY.supports(c)?new nY(c):new nj(c)};function nX(t){return!!(F(t)&&t.add)}function nK(t,e){-1===t.indexOf(e)&&t.push(e)}function nJ(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}class nQ{constructor(){this.subscriptions=[]}add(t){return nK(this.subscriptions,t),()=>nJ(this.subscriptions,t)}notify(t,e,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let n0=t=>!isNaN(parseFloat(t)),n1={current:void 0};class n2{constructor(t,e={}){this.version="11.1.7",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{let n=em.now();this.updatedAt!==n&&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.canTrackVelocity=n0(this.current),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=em.now()}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 nQ);let n=this.events[t].add(e);return"change"===t?()=>{n(),tL.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}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,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}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 n1.current&&n1.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=em.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*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 n5(t,e){return new n2(t,e)}function n6(t,e,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=t.getDefaultTransition(),transitionEnd:a,...u}=e,l=t.getValue("willChange");r&&(s=r);let c=[],h=i&&t.animationState&&t.animationState.getState()[i];for(let e in u){let r=t.getValue(e,null!==(o=t.latestValues[e])&&void 0!==o?o:null),i=u[e];if(void 0===i||h&&function({protectedKeys:t,needsAnimating:e},n){let r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}(h,e))continue;let a={delay:n,elapsed:0,...el(s||{},e)},f=!1;if(window.HandoffAppearAnimations){let n=t.getProps()[m];if(n){let t=window.HandoffAppearAnimations(n,e);null!==t&&(a.elapsed=t,f=!0)}}r.start(nq(e,r,i,t.shouldReduceMotion&&I.has(e)?{type:!1}:a,t,f));let d=r.animation;d&&(nX(l)&&(l.add(e),d.then(()=>l.remove(e))),c.push(d))}return a&&Promise.all(c).then(()=>{tL.Wi.update(()=>{a&&function(t,e){let{transitionEnd:n={},transition:r={},...i}=ee(t,e)||{};for(let e in i={...i,...n}){let n=tk(i[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,n5(n))}}(t,a)})}),c}function n3(t,e,n={}){var r;let i=ee(t,e,"exit"===n.type?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0),{transition:o=t.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let s=i?()=>Promise.all(n6(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(t,e,n=0,r=0,i=1,o){let s=[],a=(t.variantChildren.size-1)*r,u=1===i?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(n4).forEach((t,r)=>{t.notify("AnimationStart",e),s.push(n3(t,e,{...o,delay:n+u(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(s)}(t,e,i+r,s,a,n)}:()=>Promise.resolve(),{when:u}=o;if(!u)return Promise.all([s(),a(n.delay)]);{let[t,e]="beforeChildren"===u?[s,a]:[a,s];return t().then(()=>e())}}function n4(t,e){return t.sortNodePosition(e)}let n8=[...w].reverse(),n7=w.length;function n9(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class rt extends tX{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>n3(t,e,n)));else if("string"==typeof e)r=n3(t,e,n);else{let i="function"==typeof e?ee(t,e,n.custom):e;r=Promise.all(n6(t,i,n))}return r.then(()=>{tL.Wi.postRender(()=>{t.notify("AnimationComplete",e)})})})(t,e,n))),n={animate:n9(!0),whileInView:n9(),whileHover:n9(),whileTap:n9(),whileDrag:n9(),whileFocus:n9(),exit:n9()},r=!0,i=e=>(n,r)=>{var i;let o=ee(t,r,"exit"===e?null===(i=t.presenceContext)||void 0===i?void 0:i.custom:void 0);if(o){let{transition:t,transitionEnd:e,...r}=o;n={...n,...r,...e}}return n};function o(o){let s=t.getProps(),a=t.getVariantContext(!0)||{},u=[],l=new Set,c={},h=1/0;for(let e=0;e<n7;e++){var f;let d=n8[e],p=n[d],m=void 0!==s[d]?s[d]:a[d],v=b(m),g=d===o?p.isActive:null;!1===g&&(h=e);let y=m===a[d]&&m!==s[d]&&v;if(y&&r&&t.manuallyAnimateOnMount&&(y=!1),p.protectedKeys={...c},!p.isActive&&null===g||!m&&!p.prevProp||E(m)||"boolean"==typeof m)continue;let w=(f=p.prevProp,("string"==typeof m?m!==f:!!Array.isArray(m)&&!et(m,f))||d===o&&p.isActive&&!y&&v||e>h&&v),_=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(d),{});!1===g&&(S={});let{prevResolvedValues:T={}}=p,C={...T,...S},P=e=>{w=!0,l.has(e)&&(_=!0,l.delete(e)),p.needsAnimating[e]=!0;let n=t.getValue(e);n&&(n.liveStyle=!1)};for(let t in C){let e=S[t],n=T[t];if(!c.hasOwnProperty(t))(tM(e)&&tM(n)?et(e,n):e===n)?void 0!==e&&l.has(t)?P(t):p.protectedKeys[t]=!0:null!=e?P(t):l.add(t)}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(c={...c,...S}),r&&t.blockInitialAnimation&&(w=!1),w&&(!y||_)&&u.push(...x.map(t=>({animation:t,options:{type:d}})))}if(l.size){let e={};l.forEach(n=>{let r=t.getBaseTarget(n),i=t.getValue(n);i&&(i.liveStyle=!0),e[n]=null!=r?r:null}),u.push({animation:e})}let d=!!u.length;return r&&(!1===s.initial||s.initial===s.animate)&&!t.manuallyAnimateOnMount&&(d=!1),r=!1,d?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,r){var i;if(n[e].isActive===r)return Promise.resolve();null===(i=t.variantChildren)||void 0===i||i.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)}),n[e].isActive=r;let s=o(e);for(let t in n)n[t].protectedKeys={};return s},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),E(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let re=0;class rn extends tX{constructor(){super(...arguments),this.id=re++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;let r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let rr=(t,e)=>Math.abs(t-e);class ri{constructor(t,e,{transformPagePoint:n,contextWindow:r,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 n=ra(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(t=n.offset,e={x:0,y:0},Math.sqrt(rr(t.x,e.x)**2+rr(t.y,e.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:s}=tL.frameData;this.history.push({...o,timestamp:s});let{onStart:a,onMove:u}=this.handlers;r||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=ro(e,this.transformPagePoint),tL.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=ra("pointercancel"===t.type?this.lastMoveEventInfo:ro(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,o),r&&r(t,o)},!tV(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;let o=ro(tj(t),this.transformPagePoint),{point:s}=o,{timestamp:a}=tL.frameData;this.history=[{...s,timestamp:a}];let{onSessionStart:u}=e;u&&u(t,ra(o,this.history)),this.removeListeners=tG(t$(this.contextWindow,"pointermove",this.handlePointerMove),t$(this.contextWindow,"pointerup",this.handlePointerUp),t$(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tL.Pn)(this.updatePoint)}}function ro(t,e){return e?{point:e(t.point)}:t}function rs(t,e){return{x:t.x-e.x,y:t.y-e.y}}function ra({point:t},e){return{point:t,delta:rs(t,ru(e)),offset:rs(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null,i=ru(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>en(.1)));)n--;if(!r)return{x:0,y:0};let o=er(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function ru(t){return t[t.length-1]}function rl(t){return t.max-t.min}function rc(t,e=0,n=.01){return Math.abs(t-e)<=n}function rh(t,e,n,r=.5){t.origin=r,t.originPoint=n_(e.min,e.max,t.origin),t.scale=rl(n)/rl(e),(rc(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=n_(n.min,n.max,t.origin)-t.originPoint,(rc(t.translate)||isNaN(t.translate))&&(t.translate=0)}function rf(t,e,n,r){rh(t.x,e.x,n.x,r?r.originX:void 0),rh(t.y,e.y,n.y,r?r.originY:void 0)}function rd(t,e,n){t.min=n.min+e.min,t.max=t.min+rl(e)}function rp(t,e,n){t.min=e.min-n.min,t.max=t.min+rl(e)}function rm(t,e,n){rp(t.x,e.x,n.x),rp(t.y,e.y,n.y)}function rv(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function rg(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function ry(t,e,n){return{min:rb(t,e),max:rb(t,n)}}function rb(t,e){return"number"==typeof t?t:t[e]||0}let rE=()=>({translate:0,scale:1,origin:0,originPoint:0}),rw=()=>({x:rE(),y:rE()}),r_=()=>({min:0,max:0}),rx=()=>({x:r_(),y:r_()});function rS(t){return[t("x"),t("y")]}function rT({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function rC(t){return void 0===t||1===t}function rP({scale:t,scaleX:e,scaleY:n}){return!rC(t)||!rC(e)||!rC(n)}function rA(t){return rP(t)||rO(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function rO(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function rM(t,e,n,r,i){return void 0!==i&&(t=r+i*(t-r)),r+n*(t-r)+e}function rN(t,e=0,n=1,r,i){t.min=rM(t.min,e,n,r,i),t.max=rM(t.max,e,n,r,i)}function rk(t,{x:e,y:n}){rN(t.x,e.translate,e.scale,e.originPoint),rN(t.y,n.translate,n.scale,n.originPoint)}function rR(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function rD(t,e){t.min=t.min+e,t.max=t.max+e}function rL(t,e,[n,r,i]){let o=void 0!==e[i]?e[i]:.5,s=n_(t.min,t.max,o);rN(t,e[n],e[r],s,e.scale)}let rI=["x","scaleX","originX"],rB=["y","scaleY","originY"];function rF(t,e){rL(t.x,e,rI),rL(t.y,e,rB)}function rV(t,e){return rT(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let rj=({current:t})=>t?t.ownerDocument.defaultView:null,rH=new WeakMap;class r${constructor(t){this.openGlobalLock=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:n}=this.visualElement;if(n&&!1===n.isPresent)return;let{dragSnapToOrigin:r}=this.getProps();this.panSession=new ri(t,{onSessionStart:t=>{let{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(tj(t,"page").point)},onStart:(t,e)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tY(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rS(t=>{let e=this.getAxisMotionValue(t).get()||0;if(ti.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[t];if(r){let t=rl(r);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),i&&i(t,e);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(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:()=>rS(t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:rj(this.visualElement)})}stop(t,e){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&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:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){let{drag:r}=this.getProps();if(!n||!rU(t,r,this.currentDirection))return;let i=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?n_(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?n_(n,t,r.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,i=this.constraints;e&&y(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:n,bottom:r,right:i}){return{x:rv(t.x,n,i),y:rv(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:ry(t,"left","right"),y:ry(t,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&rS(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!y(e))return!1;let r=e.current;(0,eg.k)(null!==r,"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,n){let r=rV(t,n),{scroll:i}=e;return i&&(rD(r.x,i.offset.x),rD(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s={x:rg((t=i.layout.layoutBox).x,o.x),y:rg(t.y,o.y)};if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=rT(t))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(rS(s=>{if(!rU(s,e,this.currentDirection))return;let u=a&&a[s]||{};o&&(u={min:0,max:0});let l={type:"inertia",velocity:n?t[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(s,l)})).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return n.start(nq(t,n,0,e,this.visualElement))}stopAnimation(){rS(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rS(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()}`,n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){rS(e=>{let{drag:n}=this.getProps();if(!rU(e,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(e);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[e];i.set(t[e]-n_(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!y(e)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};rS(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let n=e.get();r[t]=function(t,e){let n=.5,r=rl(t),i=rl(e);return i>r?n=nw(e.min,e.max-r,t.min):r>i&&(n=nw(t.min,t.max-i,e.min)),z(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),rS(e=>{if(!rU(e,t,null))return;let n=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];n.set(n_(i,o,r[e]))})}addListeners(){if(!this.visualElement.current)return;rH.set(this.visualElement,this);let t=t$(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();y(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();let i=tF(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(rS(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{i(),t(),r(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function rU(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class rG extends tX{constructor(t){super(t),this.removeGroupControls=t1.Z,this.removeListeners=t1.Z,this.controls=new r$(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||t1.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let rZ=t=>(e,n)=>{t&&t(e,n)};class rW extends tX{constructor(){super(...arguments),this.removePointerDownListener=t1.Z}onPointerDown(t){this.session=new ri(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rj(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:rZ(t),onStart:rZ(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&r(t,e)}}}mount(){this.removePointerDownListener=t$(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let rz={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rY(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let rq={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!to.test(t))return t;t=parseFloat(t)}let n=rY(t,e.target.x),r=rY(t,e.target.y);return`${n}% ${r}%`}};class rX extends u.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;Object.assign(D,rJ),i&&(e.group&&e.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),rz.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===i||(i?o.promote():o.relegate()||tL.Wi.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),v.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function rK(t){let[e,n]=function(){let t=(0,u.useContext)(h.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:r}=t,i=(0,u.useId)();return(0,u.useEffect)(()=>r(i),[]),!e&&n?[!1,()=>n&&n(i)]:[!0]}(),r=(0,u.useContext)(O.p);return(0,a.jsx)(rX,{...t,layoutGroup:r,switchLayoutGroup:(0,u.useContext)(M),isPresent:e,safeToRemove:n})}let rJ={borderRadius:{...rq,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rq,borderTopRightRadius:rq,borderBottomLeftRadius:rq,borderBottomRightRadius:rq,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let r=eK.parse(t);if(r.length>5)return t;let i=eK.createTransformer(t),o="number"!=typeof r[0]?1:0,s=n.x.scale*e.x,a=n.y.scale*e.y;r[0+o]/=s,r[1+o]/=a;let u=n_(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=u),"number"==typeof r[3+o]&&(r[3+o]/=u),i(r)}}},rQ=["TopLeft","TopRight","BottomLeft","BottomRight"],r0=rQ.length,r1=t=>"string"==typeof t?parseFloat(t):t,r2=t=>"number"==typeof t||to.test(t);function r5(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let r6=r4(0,.5,np),r3=r4(.5,.95,t1.Z);function r4(t,e,n){return r=>r<t?0:r>e?1:n(nw(t,e,r))}function r8(t,e){t.min=e.min,t.max=e.max}function r7(t,e){r8(t.x,e.x),r8(t.y,e.y)}function r9(t,e,n,r,i){return t-=e,t=r+1/n*(t-r),void 0!==i&&(t=r+1/i*(t-r)),t}function it(t,e,[n,r,i],o,s){!function(t,e=0,n=1,r=.5,i,o=t,s=t){if(ti.test(e)&&(e=parseFloat(e),e=n_(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=n_(o.min,o.max,r);t===o&&(a-=e),t.min=r9(t.min,e,n,a,i),t.max=r9(t.max,e,n,a,i)}(t,e[n],e[r],e[i],e.scale,o,s)}let ie=["x","scaleX","originX"],ir=["y","scaleY","originY"];function ii(t,e,n,r){it(t.x,e,ie,n?n.x:void 0,r?r.x:void 0),it(t.y,e,ir,n?n.y:void 0,r?r.y:void 0)}function io(t){return 0===t.translate&&1===t.scale}function is(t){return io(t.x)&&io(t.y)}function ia(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function iu(t){return rl(t.x)/rl(t.y)}class il{constructor(){this.members=[]}add(t){nK(this.members,t),t.scheduleRender()}remove(t){if(nJ(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ic(t,e,n){let r="",i=t.x.translate/e.x,o=t.y.translate/e.y,s=(null==n?void 0:n.z)||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){let{transformPerspective:t,rotate:e,rotateX:i,rotateY:o,skewX:s,skewY:a}=n;t&&(r=`perspective(${t}px) ${r}`),e&&(r+=`rotate(${e}deg) `),i&&(r+=`rotateX(${i}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),a&&(r+=`skewY(${a}deg) `)}let a=t.x.scale*e.x,u=t.y.scale*e.y;return(1!==a||1!==u)&&(r+=`scale(${a}, ${u})`),r||"none"}let ih=(t,e)=>t.depth-e.depth;class id{constructor(){this.children=[],this.isDirty=!1}add(t){nK(this.children,t),this.isDirty=!0}remove(t){nJ(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ih),this.isDirty=!1,this.children.forEach(t)}}let ip=["","X","Y","Z"],im={visibility:"hidden"},iv=0,ig={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function iy(t,e,n,r){let{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),r&&(r[t]=0))}function ib({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(t={},n=null==e?void 0:e()){this.id=iv++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,ig.totalNodes=ig.resolvedTargetDeltas=ig.recalculatedProjection=0,this.nodes.forEach(i_),this.nodes.forEach(iO),this.nodes.forEach(iM),this.nodes.forEach(ix),window.MotionDebug&&window.MotionDebug.record(ig)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new id)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new nQ),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,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),n&&(i||r)&&(this.isLayoutDirty=!0),t){let n;let r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=em.now(),r=({timestamp:e})=>{let i=e-n;i>=250&&((0,tL.Pn)(r),t(i-250))};return tL.Wi.read(r,!0),()=>(0,tL.Pn)(r)}(r,0),rz.hasAnimatedSinceResize&&(rz.hasAnimatedSinceResize=!1,this.nodes.forEach(iA))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||iI,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),u=!this.targetLayout||!ia(this.targetLayout,r)||n,l=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||l||e&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,l);let e={...el(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||iA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,tL.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(iN),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(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:n}=this.options;if(void 0===e&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iT);return}this.isUpdating||this.nodes.forEach(iC),this.isUpdating=!1,window.HandoffCancelAllAnimations&&window.HandoffCancelAllAnimations(),this.nodes.forEach(iP),this.nodes.forEach(iE),this.nodes.forEach(iw),this.clearAllSnapshots();let t=em.now();tL.frameData.delta=z(0,1e3/60,t-tL.frameData.timestamp),tL.frameData.timestamp=t,tL.frameData.isProcessing=!0,tL.S6.update.process(tL.frameData),tL.S6.preRender.process(tL.frameData),tL.S6.render.process(tL.frameData),tL.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,v.read(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(iS),this.sharedNodes.forEach(ik)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tL.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tL.Wi.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);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!is(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;t&&(e||rA(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),r=this.removeElementScroll(n);return t&&(r=this.removeTransform(r)),iV((e=r).x),iV(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return rx();let e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(rD(e.x,n.offset.x),rD(e.y,n.offset.y)),e}removeElementScroll(t){let e=rx();r7(e,t);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){r7(e,t);let{scroll:n}=this.root;n&&(rD(e.x,-n.offset.x),rD(e.y,-n.offset.y))}rD(e.x,i.offset.x),rD(e.y,i.offset.y)}}return e}applyTransform(t,e=!1){let n=rx();r7(n,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&rF(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),rA(r.latestValues)&&rF(n,r.latestValues)}return rA(this.latestValues)&&rF(n,this.latestValues),n}removeTransform(t){let e=rx();r7(e,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!rA(n.latestValues))continue;rP(n.latestValues)&&n.updateSnapshot();let r=rx();r7(r,n.measurePageBox()),ii(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return rA(this.latestValues)&&ii(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!==tL.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,n,r,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))return;let{layout:a,layoutId:u}=this.options;if(this.layout&&(a||u)){if(this.resolvedRelativeTargetAt=tL.frameData.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(),rm(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),r7(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(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,rd(n.x,r.x,i.x),rd(n.y,r.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):r7(this.target,this.layout.layoutBox),rk(this.target,this.targetDelta)):r7(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(),rm(this.relativeTargetOrigin,this.target,t.target),r7(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}ig.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||rP(this.parent.latestValues)||rO(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(),n=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===tL.frameData.timestamp&&(r=!1),r)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;r7(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,r=!1){let i,o;let s=n.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){o=(i=n[a]).projectionDelta;let s=i.instance;(!s||!s.style||"contents"!==s.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rF(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,rk(t,o)),r&&rA(i.latestValues)&&rF(t,i.latestValues))}e.x=rR(e.x),e.y=rR(e.y)}}(this.layoutCorrected,this.treeScale,this.path,n),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=rx());let{target:u}=e;if(!u){this.projectionTransform&&(this.projectionDelta=rw(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=rw(),this.projectionDeltaWithTransform=rw());let l=this.projectionTransform;rf(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.projectionTransform=ic(this.projectionDelta,this.treeScale),(this.projectionTransform!==l||this.treeScale.x!==s||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u)),ig.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},s=rw();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=rx(),u=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),c=!l||l.members.length<=1,h=!!(u&&!c&&!0===this.options.crossfade&&!this.path.some(iL));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(iR(s.x,t.x,r),iR(s.y,t.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var l,f,d,p;rm(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),d=this.relativeTarget,p=this.relativeTargetOrigin,iD(d.x,p.x,a.x,r),iD(d.y,p.y,a.y,r),n&&(l=this.relativeTarget,f=n,l.x.min===f.x.min&&l.x.max===f.x.max&&l.y.min===f.y.min&&l.y.max===f.y.max)&&(this.isProjectionDirty=!1),n||(n=rx()),r7(n,this.relativeTarget)}u&&(this.animationValues=o,function(t,e,n,r,i,o){i?(t.opacity=n_(0,void 0!==n.opacity?n.opacity:1,r6(r)),t.opacityExit=n_(void 0!==e.opacity?e.opacity:1,0,r3(r))):o&&(t.opacity=n_(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<r0;i++){let o=`border${rQ[i]}Radius`,s=r5(e,o),a=r5(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||r2(s)===r2(a)?(t[o]=Math.max(n_(r1(s),r1(a),r),0),(ti.test(a)||ti.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=n_(e.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},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&&((0,tL.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tL.Wi.update(()=>{rz.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){let r=F(0)?0:n5(0);return r.start(nq("",r,1e3,n)),r.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:n,layout:r,latestValues:i}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&ij(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||rx();let e=rl(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let r=rl(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}r7(e,n),rF(e,i),rf(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new il),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.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:n}={}){let r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;let r={};n.z&&iy("z",t,r,this.animationValues);for(let e=0;e<ip.length;e++)iy(`rotate${ip[e]}`,t,r,this.animationValues),iy(`skew${ip[e]}`,t,r,this.animationValues);for(let e in t.render(),r)t.setStaticValue(e,r[e]),this.animationValues&&(this.animationValues[e]=r[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return im;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=tR(null==t?void 0:t.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;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=tR(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!rA(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=ic(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));let{x:a,y:u}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*u.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,D){if(void 0===s[t])continue;let{correct:e,applyTo:n}=D[t],i="none"===r.transform?s[t]:e(s[t],o);if(n){let t=n.length;for(let e=0;e<t;e++)r[n[e]]=i}else r[t]=i}return this.options.layoutId&&(r.pointerEvents=o===this?tR(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(iT),this.root.sharedNodes.clear()}}}function iE(t){t.updateLayout()}function iw(t){var e;let n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:i}=t.options,o=n.source!==t.layout.source;"size"===i?rS(t=>{let r=o?n.measuredBox[t]:n.layoutBox[t],i=rl(r);r.min=e[t].min,r.max=r.min+i}):ij(i,n.layoutBox,e)&&rS(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],s=rl(e[r]);i.max=i.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+s)});let s=rw();rf(s,e,n.layoutBox);let a=rw();o?rf(a,t.applyTransform(r,!0),n.measuredBox):rf(a,e,n.layoutBox);let u=!is(s),l=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=rx();rm(s,n.layoutBox,i.layoutBox);let a=rx();rm(a,e,o.layoutBox),ia(s,a)||(l=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:u,hasRelativeTargetChanged:l})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function i_(t){ig.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 ix(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function iS(t){t.clearSnapshot()}function iT(t){t.clearMeasurements()}function iC(t){t.isLayoutDirty=!1}function iP(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function iA(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function iO(t){t.resolveTargetDelta()}function iM(t){t.calcProjection()}function iN(t){t.resetSkewAndRotation()}function ik(t){t.removeLeadSnapshot()}function iR(t,e,n){t.translate=n_(e.translate,0,n),t.scale=n_(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function iD(t,e,n,r){t.min=n_(e.min,n.min,r),t.max=n_(e.max,n.max,r)}function iL(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iI={duration:.45,ease:[.4,0,.1,1]},iB=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),iF=iB("applewebkit/")&&!iB("chrome/")?Math.round:t1.Z;function iV(t){t.min=iF(t.min),t.max=iF(t.max)}function ij(t,e,n){return"position"===t||"preserve-aspect"===t&&!rc(iu(e),iu(n),.2)}let iH=ib({attachResizeListener:(t,e)=>tF(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),i$={current:void 0},iU=ib({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!i$.current){let t=new iH({});t.mount(window),t.setOptions({layoutScroll:!0}),i$.current=t}return i$.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),iG={current:null},iZ={current:!1},iW=new WeakMap,iz=[...eA,eU,eK],iY=t=>iz.find(eP(t)),iq=Object.keys(P),iX=iq.length,iK=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],iJ=_.length;class iQ{scrapeMotionValuesFromProps(t,e,n){return{}}constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},s={}){this.resolveKeyframes=(t,e,n,r)=>new this.KeyframeResolver(t,e,n,r,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=eL,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.scheduleRender=()=>tL.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:u}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=u,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=x(e),this.isVariantNode=S(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&F(e)&&(e.set(a[t],!1),nX(l)&&l.add(t))}}mount(t){this.current=t,iW.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)),iZ.current||function(){if(iZ.current=!0,A.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>iG.current=t.matches;t.addListener(e),e()}else iG.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||iG.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){var t;for(let t in iW.delete(this.current),this.projection&&this.projection.unmount(),(0,tL.Pn)(this.notifyUpdate),(0,tL.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let e in this.features)null===(t=this.features[e])||void 0===t||t.unmount();this.current=null}bindToMotionValue(t,e){let n=I.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tL.Wi.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),i(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,i){let o,s;for(let t=0;t<iX;t++){let n=iq[t],{isEnabled:r,Feature:i,ProjectionNode:a,MeasureLayout:u}=P[n];a&&(o=a),r(e)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),u&&(s=u))}if(("html"===this.type||"svg"===this.type)&&!this.projection&&o){this.projection=new o(this.latestValues,function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(this.parent));let{layoutId:t,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:u}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:!!r||s&&y(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:u})}return s}updateFeatures(){for(let t in this.features){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,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<iK.length;e++){let n=iK[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){let{willChange:r}=e;for(let i in e){let o=e[i],s=n[i];if(F(o))t.addValue(i,o),nX(r)&&r.add(i);else if(F(s))t.addValue(i,n5(o,{owner:t})),nX(r)&&r.remove(i);else if(s!==o){if(t.hasValue(i)){let e=t.getValue(i);!0===e.liveStyle?e.jump(o):e.hasAnimated||e.set(o)}else{let e=t.getStaticValue(i);t.addValue(i,n5(void 0!==e?e:o,{owner:t}))}}}for(let r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<iJ;t++){let n=_[t],r=this.props[n];(b(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let n=this.values.get(t);e!==n&&(n&&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 n=this.values.get(t);return void 0===n&&void 0!==e&&(n=n5(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let r=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];return null!=r&&("string"==typeof r&&(ey(r)||ev(r))?r=parseFloat(r):!iY(r)&&eK.test(e)&&(r=e6(t,e)),this.setBaseTarget(t,F(r)?r.get():r)),F(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let n;let{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){let i=tA(this.props,r,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);i&&(n=i[t])}if(r&&void 0!==n)return n;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||F(i)?void 0!==this.initialValues[t]&&void 0===n?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new nQ),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class i0 extends iQ{constructor(){super(...arguments),this.KeyframeResolver=e3}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:n}){delete e[t],delete n[t]}}class i1 extends i0{constructor(){super(...arguments),this.type="html"}readValueFromInstance(t,e){if(I.has(e)){let t=e5(e);return t&&t.default||0}{let n=window.getComputedStyle(t),r=($(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return rV(t,e)}build(t,e,n,r){th(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return tC(t,e,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;F(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,n,r){tx(t,e,n,r)}}class i2 extends i0{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(I.has(e)){let t=e5(e);return t&&t.default||0}return e=tS.has(e)?e:p(e),t.getAttribute(e)}measureInstanceViewportBox(){return rx()}scrapeMotionValuesFromProps(t,e,n){return tP(t,e,n)}build(t,e,n,r){tE(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){tT(t,e,n,r)}mount(t){this.isSVGTag=t_(t.tagName),super.mount(t)}}let i5=(t,e)=>R(t)?new i2(e,{enableHardwareAcceleration:!1}):new i1(e,{allowProjection:t!==u.Fragment,enableHardwareAcceleration:!0}),i6={animation:{Feature:rt},exit:{Feature:rn},inView:{Feature:t9},tap:{Feature:t5},focus:{Feature:tQ},hover:{Feature:tJ},pan:{Feature:rW},drag:{Feature:rG,ProjectionNode:iU,MeasureLayout:rK},layout:{ProjectionNode:iU,MeasureLayout:rK}},i3=function(t){function e(e,n={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&function(t){for(let e in t)P[e]={...P[e],...t[e]}}(t);let o=(0,u.forwardRef)(function(o,s){var p;let g;let E={...(0,u.useContext)(l._),...o,layoutId:function({layoutId:t}){let e=(0,u.useContext)(O.p).id;return e&&void 0!==t?e+"-"+t:t}(o)},{isStatic:w}=E,_=function(t){let{initial:e,animate:n}=function(t,e){if(x(t)){let{initial:e,animate:n}=t;return{initial:!1===e||b(e)?e:void 0,animate:b(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,u.useContext)(c));return(0,u.useMemo)(()=>({initial:e,animate:n}),[T(e),T(n)])}(o),S=r(o,w);if(!w&&A.j){_.visualElement=function(t,e,n,r){let{visualElement:i}=(0,u.useContext)(c),o=(0,u.useContext)(d),s=(0,u.useContext)(h.O),a=(0,u.useContext)(l._).reducedMotion,p=(0,u.useRef)();r=r||o.renderer,!p.current&&r&&(p.current=r(t,{visualState:e,parent:i,props:n,presenceContext:s,blockInitialAnimation:!!s&&!1===s.initial,reducedMotionConfig:a}));let g=p.current;(0,u.useInsertionEffect)(()=>{g&&g.update(n,s)});let y=(0,u.useRef)(!!(n[m]&&!window.HandoffComplete));return(0,f.L)(()=>{g&&(v.postRender(g.render),y.current&&g.animationState&&g.animationState.animateChanges())}),(0,u.useEffect)(()=>{g&&(g.updateFeatures(),!y.current&&g.animationState&&g.animationState.animateChanges(),y.current&&(y.current=!1,window.HandoffComplete=!0))}),g}(i,S,E,e);let n=(0,u.useContext)(M),r=(0,u.useContext)(d).strict;_.visualElement&&(g=_.visualElement.loadFeatures(E,r,t,n))}return(0,a.jsxs)(c.Provider,{value:_,children:[g&&_.visualElement?(0,a.jsx)(g,{visualElement:_.visualElement,...E}):null,n(i,o,(p=_.visualElement,(0,u.useCallback)(t=>{t&&S.mount&&S.mount(t),p&&(t?p.mount(t):p.unmount()),s&&("function"==typeof s?s(t):y(s)&&(s.current=t))},[p])),S,w,_.visualElement)]})});return o[N]=i,o}(t(e,n))}if("undefined"==typeof Proxy)return e;let n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},n,r){return{...R(t)?tI:tB,preloadedFeatures:n,useRender:function(t=!1){return(e,n,r,{latestValues:i},o)=>{let s=(R(e)?function(t,e,n,r){let i=(0,u.useMemo)(()=>{let n=tw();return tE(n,e,{enableHardwareAcceleration:!1},t_(r),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};td(e,t.style,t),i.style={...e,...i.style}}return i}:function(t,e,n){let r={},i=function(t,e,n){let r=t.style||{},i={};return td(i,r,t),Object.assign(i,function({transformTemplate:t},e,n){return(0,u.useMemo)(()=>{let r=tf();return th(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}(t,e,n)),i}(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,r})(n,i,o,e),a=function(t,e,n){let r={};for(let i in t)("values"!==i||"object"!=typeof t.values)&&(tv(i)||!0===n&&tm(i)||!e&&!tm(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),l=e!==u.Fragment?{...a,...s,ref:r}:{},{children:c}=n,h=(0,u.useMemo)(()=>F(c)?c.get():c,[c]);return(0,u.createElement)(e,{...l,children:h})}}(e),createVisualElement:r,Component:t}})(t,e,i6,i5))},83790:function(t,e,n){"use strict";n.d(e,{c:function(){return r}});let r={skipAnimations:!1,useManualTiming:!1}},67720:function(t,e,n){"use strict";n.d(e,{K:function(){return i},k:function(){return o}});var r=n(18586);let i=r.Z,o=r.Z},52478:function(t,e,n){"use strict";n.d(e,{j:function(){return r}});let r="undefined"!=typeof document},18586:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});let r=t=>t},13150:function(t,e,n){"use strict";n.d(e,{h:function(){return i}});var r=n(2265);function i(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},35236:function(t,e,n){"use strict";n.d(e,{L:function(){return i}});var r=n(2265);let i=n(52478).j?r.useLayoutEffect:r.useEffect},41493:function(t,e,n){"use strict";n.d(e,{ou:function(){return nO},nL:function(){return eF},Xp:function(){return ej},Zr:function(){return th}});class r extends Error{}class i extends r{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class o extends r{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class s extends r{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class a extends r{}class u extends r{constructor(t){super(`Invalid unit ${t}`)}}class l extends r{}class c extends r{constructor(){super("Zone is an abstract class")}}let h="numeric",f="short",d="long",p={year:h,month:h,day:h},m={year:h,month:f,day:h},v={year:h,month:f,day:h,weekday:f},g={year:h,month:d,day:h},y={year:h,month:d,day:h,weekday:d},b={hour:h,minute:h},E={hour:h,minute:h,second:h},w={hour:h,minute:h,second:h,timeZoneName:f},_={hour:h,minute:h,second:h,timeZoneName:d},x={hour:h,minute:h,hourCycle:"h23"},S={hour:h,minute:h,second:h,hourCycle:"h23"},T={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:f},C={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:d},P={year:h,month:h,day:h,hour:h,minute:h},A={year:h,month:h,day:h,hour:h,minute:h,second:h},O={year:h,month:f,day:h,hour:h,minute:h},M={year:h,month:f,day:h,hour:h,minute:h,second:h},N={year:h,month:f,day:h,weekday:f,hour:h,minute:h},k={year:h,month:d,day:h,hour:h,minute:h,timeZoneName:f},R={year:h,month:d,day:h,hour:h,minute:h,second:h,timeZoneName:f},D={year:h,month:d,day:h,weekday:d,hour:h,minute:h,timeZoneName:d},L={year:h,month:d,day:h,weekday:d,hour:h,minute:h,second:h,timeZoneName:d};class I{get type(){throw new c}get name(){throw new c}get ianaName(){return this.name}get isUniversal(){throw new c}offsetName(t,e){throw new c}formatOffset(t,e){throw new c}offset(t){throw new c}equals(t){throw new c}get isValid(){throw new c}}let B=null;class F extends I{static get instance(){return null===B&&(B=new F),B}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return tM(t,e,n)}formatOffset(t,e){return tD(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let V={},j={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},H={};class $ extends I{static create(t){return H[t]||(H[t]=new $(t)),H[t]}static resetCache(){H={},V={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=$.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return tM(t,e,n,this.name)}formatOffset(t,e){return tD(this.offset(t),e)}offset(t){var e;let n=new Date(t);if(isNaN(n))return NaN;let r=(V[e=this.name]||(V[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),V[e]),[i,o,s,a,u,l,c]=r.formatToParts?function(t,e){let n=t.formatToParts(e),r=[];for(let t=0;t<n.length;t++){let{type:e,value:i}=n[t],o=j[e];"era"===e?r[o]=i:tf(o)||(r[o]=parseInt(i,10))}return r}(r,n):function(t,e){let n=t.format(e).replace(/\u200E/g,""),[,r,i,o,s,a,u,l]=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n);return[o,r,i,s,a,u,l]}(r,n);"BC"===a&&(i=-Math.abs(i)+1);let h=tP({year:i,month:o,day:s,hour:24===u?0:u,minute:l,second:c,millisecond:0}),f=+n,d=f%1e3;return(h-(f-=d>=0?d:1e3+d))/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let U={},G={};function Z(t,e={}){let n=JSON.stringify([t,e]),r=G[n];return r||(r=new Intl.DateTimeFormat(t,e),G[n]=r),r}let W={},z={},Y=null;function q(t,e,n,r,i){let o=t.listingMode(n);return"error"===o?null:"en"===o?r(e):i(e)}class X{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:r,floor:i,...o}=n;if(!e||Object.keys(o).length>0){let e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t,e={}){let n=JSON.stringify([t,e]),r=W[n];return r||(r=new Intl.NumberFormat(t,e),W[n]=r),r}(t,e)}}format(t){if(!this.inf)return tb(this.floor?Math.floor(t):tx(t,3),this.padTo);{let e=this.floor?Math.floor(t):t;return this.inf.format(e)}}}class K{constructor(t,e,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){let e=-(t.offset/60*1),n=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&$.create(n).valid?(r=n,this.dt=t):(r="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let i={...this.opts};i.timeZone=i.timeZone||r,this.dtf=Z(e,i)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(t=>{if("timeZoneName"!==t.type)return t;{let e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}}):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class J{constructor(t,e,n){this.opts={style:"long",...n},!e&&tm()&&(this.rtf=function(t,e={}){let{base:n,...r}=e,i=JSON.stringify([t,r]),o=z[i];return o||(o=new Intl.RelativeTimeFormat(t,e),z[i]=o),o}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n="always",r=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&o){let n="days"===t;switch(e){case 1:return n?"tomorrow":`next ${i[t][0]}`;case -1:return n?"yesterday":`last ${i[t][0]}`;case 0:return n?"today":`this ${i[t][0]}`}}let s=Object.is(e,-0)||e<0,a=Math.abs(e),u=1===a,l=i[t],c=r?u?l[1]:l[2]||l[1]:u?i[t][0]:t;return s?`${a} ${c} ago`:`in ${a} ${c}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}class Q{static fromOpts(t){return Q.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,e,n,r=!1){let i=t||th.defaultLocale;return new Q(i||(r?"en-US":Y||(Y=new Intl.DateTimeFormat().resolvedOptions().locale)),e||th.defaultNumberingSystem,n||th.defaultOutputCalendar,i)}static resetCache(){Y=null,G={},W={},z={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:n}={}){return Q.create(t,e,n)}constructor(t,e,n,r){var i,o,s;let[a,u,l]=function(t){let e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));let n=t.indexOf("-u-");if(-1===n)return[t];{let e,r;try{e=Z(t).resolvedOptions(),r=t}catch(o){let i=t.substring(0,n);e=Z(i).resolvedOptions(),r=i}let{numberingSystem:i,calendar:o}=e;return[r,i,o]}}(t);this.locale=a,this.numberingSystem=e||u||null,this.outputCalendar=n||l||null,this.intl=(i=this.locale,o=this.numberingSystem,((s=this.outputCalendar)||o)&&(i.includes("-u-")||(i+="-u"),s&&(i+=`-ca-${s}`),o&&(i+=`-nu-${o}`)),i),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return null==this.fastNumbersCached&&(this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(this.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),e=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?Q.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1,n=!0){return q(this,t,n,tV,()=>{let n=e?{month:t,day:"numeric"}:{month:t},r=e?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=function(t){let e=[];for(let n=1;n<=12;n++){let r=nO.utc(2016,n,1);e.push(t(r))}return e}(t=>this.extract(t,n,"month"))),this.monthsCache[r][t]})}weekdays(t,e=!1,n=!0){return q(this,t,n,tU,()=>{let n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=function(t){let e=[];for(let n=1;n<=7;n++){let r=nO.utc(2016,11,13+n);e.push(t(r))}return e}(t=>this.extract(t,n,"weekday"))),this.weekdaysCache[r][t]})}meridiems(t=!0){return q(this,void 0,t,()=>tG,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[nO.utc(2016,11,13,9),nO.utc(2016,11,13,19)].map(e=>this.extract(e,t,"dayperiod"))}return this.meridiemCache})}eras(t,e=!0){return q(this,t,e,tY,()=>{let e={era:t};return this.eraCache[t]||(this.eraCache[t]=[nO.utc(-40,1,1),nO.utc(2017,1,1)].map(t=>this.extract(t,e,"era"))),this.eraCache[t]})}extract(t,e,n){let r=this.dtFormatter(t,e).formatToParts().find(t=>t.type.toLowerCase()===n);return r?r.value:null}numberFormatter(t={}){return new X(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new K(t,this.intl,e)}relFormatter(t={}){return new J(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){let n=JSON.stringify([t,e]),r=U[n];return r||(r=new Intl.ListFormat(t,e),U[n]=r),r}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let tt=null;class te extends I{static get utcInstance(){return null===tt&&(tt=new te(0)),tt}static instance(t){return 0===t?te.utcInstance:new te(t)}static parseSpecifier(t){if(t){let e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new te(tN(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${tD(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${tD(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return tD(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class tn extends I{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function tr(t,e){if(tf(t)||null===t)return e;if(t instanceof I)return t;if("string"==typeof t){let n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?F.instance:"utc"===n||"gmt"===n?te.utcInstance:te.parseSpecifier(n)||$.create(t)}return td(t)?te.instance(t):"object"==typeof t&&t.offset&&"number"==typeof t.offset?t:new tn(t)}let ti=()=>Date.now(),to="system",ts=null,ta=null,tu=null,tl=60,tc;class th{static get now(){return ti}static set now(t){ti=t}static set defaultZone(t){to=t}static get defaultZone(){return tr(to,F.instance)}static get defaultLocale(){return ts}static set defaultLocale(t){ts=t}static get defaultNumberingSystem(){return ta}static set defaultNumberingSystem(t){ta=t}static get defaultOutputCalendar(){return tu}static set defaultOutputCalendar(t){tu=t}static get twoDigitCutoffYear(){return tl}static set twoDigitCutoffYear(t){tl=t%100}static get throwOnInvalid(){return tc}static set throwOnInvalid(t){tc=t}static resetCaches(){Q.resetCache(),$.resetCache()}}function tf(t){return void 0===t}function td(t){return"number"==typeof t}function tp(t){return"number"==typeof t&&t%1==0}function tm(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function tv(t,e,n){if(0!==t.length)return t.reduce((t,r)=>{let i=[e(r),r];return t&&n(t[0],i[0])===t[0]?t:i},null)[1]}function tg(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ty(t,e,n){return tp(t)&&t>=e&&t<=n}function tb(t,e=2){return t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0")}function tE(t){if(!tf(t)&&null!==t&&""!==t)return parseInt(t,10)}function tw(t){if(!tf(t)&&null!==t&&""!==t)return parseFloat(t)}function t_(t){if(!tf(t)&&null!==t&&""!==t)return Math.floor(1e3*parseFloat("0."+t))}function tx(t,e,n=!1){let r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function tS(t){return t%4==0&&(t%100!=0||t%400==0)}function tT(t){return tS(t)?366:365}function tC(t,e){var n;let r=(n=e-1)-12*Math.floor(n/12)+1;return 2===r?tS(t+(e-r)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function tP(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e)).setUTCFullYear(t.year,t.month-1,t.day),+e}function tA(t){let e=t-1;return 4==(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7||3==(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7?53:52}function tO(t){return t>99?t:t>th.twoDigitCutoffYear?1900+t:2e3+t}function tM(t,e,n,r=null){let i=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);let s={timeZoneName:e,...o},a=new Intl.DateTimeFormat(n,s).formatToParts(i).find(t=>"timezonename"===t.type.toLowerCase());return a?a.value:null}function tN(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);let r=parseInt(e,10)||0,i=n<0||Object.is(n,-0)?-r:r;return 60*n+i}function tk(t){let e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new l(`Invalid unit value ${t}`);return e}function tR(t,e){let n={};for(let r in t)if(tg(t,r)){let i=t[r];if(null==i)continue;n[e(r)]=tk(i)}return n}function tD(t,e){let n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return`${i}${tb(n,2)}:${tb(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${tb(n,2)}${tb(r,2)}`;default:throw RangeError(`Value format ${e} is out of range for property format`)}}function tL(t){return["hour","minute","second","millisecond"].reduce((e,n)=>(e[n]=t[n],e),{})}let tI=["January","February","March","April","May","June","July","August","September","October","November","December"],tB=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tF=["J","F","M","A","M","J","J","A","S","O","N","D"];function tV(t){switch(t){case"narrow":return[...tF];case"short":return[...tB];case"long":return[...tI];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}let tj=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],tH=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],t$=["M","T","W","T","F","S","S"];function tU(t){switch(t){case"narrow":return[...t$];case"short":return[...tH];case"long":return[...tj];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}let tG=["AM","PM"],tZ=["Before Christ","Anno Domini"],tW=["BC","AD"],tz=["B","A"];function tY(t){switch(t){case"narrow":return[...tz];case"short":return[...tW];case"long":return[...tZ];default:return null}}function tq(t,e){let n="";for(let r of t)r.literal?n+=r.val:n+=e(r.val);return n}let tX={D:p,DD:m,DDD:g,DDDD:y,t:b,tt:E,ttt:w,tttt:_,T:x,TT:S,TTT:T,TTTT:C,f:P,ff:O,fff:k,ffff:D,F:A,FF:M,FFF:R,FFFF:L};class tK{static create(t,e={}){return new tK(t,e)}static parseFormat(t){let e=null,n="",r=!1,i=[];for(let o=0;o<t.length;o++){let s=t.charAt(o);"'"===s?(n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),e=null,n="",r=!r):r?n+=s:s===e?n+=s:(n.length>0&&i.push({literal:/^\s+$/.test(n),val:n}),n=s,e=s)}return n.length>0&&i.push({literal:r||/^\s+$/.test(n),val:n}),i}static macroTokenToFormatOpts(t){return tX[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTime(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).format()}formatDateTimeParts(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).formatToParts()}formatInterval(t,e={}){return this.loc.dtFormatter(t.start,{...this.opts,...e}).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e}).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return tb(t,e);let n={...this.opts};return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,e){let n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(e,n)=>this.loc.extract(t,e,n),o=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",s=()=>n?tG[t.hour<12?0:1]:i({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(e,r)=>n?tV(e)[t.month-1]:i(r?{month:e}:{month:e,day:"numeric"},"month"),u=(e,r)=>n?tU(e)[t.weekday-1]:i(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),l=e=>{let n=tK.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},c=e=>n?tY(e)[t.year<0?0:1]:i({era:e},"era");return tq(tK.parseFormat(e),e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return o({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return o({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return o({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return s();case"d":return r?i({day:"numeric"},"day"):this.num(t.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(t.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(t.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(t.year,6);case"G":return c("short");case"GG":return c("long");case"GGGGG":return c("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return l(e)}})}formatDurationFromString(t,e){let n;let r=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=tK.parseFormat(e),o=i.reduce((t,{literal:e,val:n})=>e?t:t.concat(n),[]);return tq(i,(n=t.shiftTo(...o.map(r).filter(t=>t)),t=>{let e=r(t);return e?this.num(n.get(e),t.length):t}))}}class tJ{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}let tQ=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function t0(...t){let e=t.reduce((t,e)=>t+e.source,"");return RegExp(`^${e}$`)}function t1(...t){return e=>t.reduce(([t,n,r],i)=>{let[o,s,a]=i(e,r);return[{...t,...o},s||n,a]},[{},null,1]).slice(0,2)}function t2(t,...e){if(null==t)return[null,null];for(let[n,r]of e){let e=n.exec(t);if(e)return r(e)}return[null,null]}function t5(...t){return(e,n)=>{let r;let i={};for(r=0;r<t.length;r++)i[t[r]]=tE(e[n+r]);return[i,null,n+r]}}let t6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,t3=`(?:${t6.source}?(?:\\[(${tQ.source})\\])?)?`,t4=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,t8=RegExp(`${t4.source}${t3}`),t7=RegExp(`(?:T${t8.source})?`),t9=t5("weekYear","weekNumber","weekDay"),et=t5("year","ordinal"),ee=RegExp(`${t4.source} ?(?:${t6.source}|(${tQ.source}))?`),en=RegExp(`(?: ${ee.source})?`);function er(t,e,n){let r=t[e];return tf(r)?n:tE(r)}function ei(t,e){return[{hours:er(t,e,0),minutes:er(t,e+1,0),seconds:er(t,e+2,0),milliseconds:t_(t[e+3])},null,e+4]}function eo(t,e){let n=!t[e]&&!t[e+1],r=tN(t[e+1],t[e+2]);return[{},n?null:te.instance(r),e+3]}function es(t,e){return[{},t[e]?$.create(t[e]):null,e+1]}let ea=RegExp(`^T?${t4.source}$`),eu=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function el(t){let[e,n,r,i,o,s,a,u,l]=t,c="-"===e[0],h=u&&"-"===u[0],f=(t,e=!1)=>void 0!==t&&(e||t&&c)?-t:t;return[{years:f(tw(n)),months:f(tw(r)),weeks:f(tw(i)),days:f(tw(o)),hours:f(tw(s)),minutes:f(tw(a)),seconds:f(tw(u),"-0"===u),milliseconds:f(t_(l),h)}]}let ec={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function eh(t,e,n,r,i,o,s){let a={year:2===e.length?tO(tE(e)):tE(e),month:tB.indexOf(n)+1,day:tE(r),hour:tE(i),minute:tE(o)};return s&&(a.second=tE(s)),t&&(a.weekday=t.length>3?tj.indexOf(t)+1:tH.indexOf(t)+1),a}let ef=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function ed(t){let[,e,n,r,i,o,s,a,u,l,c,h]=t;return[eh(e,i,r,n,o,s,a),new te(u?ec[u]:l?0:tN(c,h))]}let ep=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,em=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,ev=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function eg(t){let[,e,n,r,i,o,s,a]=t;return[eh(e,i,r,n,o,s,a),te.utcInstance]}function ey(t){let[,e,n,r,i,o,s,a]=t;return[eh(e,a,n,r,i,o,s),te.utcInstance]}let eb=t0(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,t7),eE=t0(/(\d{4})-?W(\d\d)(?:-?(\d))?/,t7),ew=t0(/(\d{4})-?(\d{3})/,t7),e_=t0(t8),ex=t1(function(t,e){return[{year:er(t,e),month:er(t,e+1,1),day:er(t,e+2,1)},null,e+3]},ei,eo,es),eS=t1(t9,ei,eo,es),eT=t1(et,ei,eo,es),eC=t1(ei,eo,es),eP=t1(ei),eA=t0(/(\d{4})-(\d\d)-(\d\d)/,en),eO=t0(ee),eM=t1(ei,eo,es),eN={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},ek={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...eN},eR={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:31556952,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...eN},eD=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],eL=eD.slice(0).reverse();function eI(t,e,n=!1){return new eF({values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix})}function eB(t,e,n,r,i){let o=t[i][n],s=e[n]/o,a=Math.sign(s)!==Math.sign(r[i])&&0!==r[i]&&1>=Math.abs(s)?s<0?Math.floor(s):Math.ceil(s):Math.trunc(s);r[i]+=a,e[n]-=a*o}class eF{constructor(t){let e="longterm"===t.conversionAccuracy,n=e?eR:ek;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||Q.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return eF.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new l(`Duration.fromObject: argument expected to be an object, got ${null===t?"null":typeof t}`);return new eF({values:tR(t,eF.normalizeUnit),loc:Q.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(td(t))return eF.fromMillis(t);if(eF.isDuration(t))return t;if("object"==typeof t)return eF.fromObject(t);throw new l(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){let[n]=t2(t,[eu,el]);return n?eF.fromObject(n,e):eF.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){let[n]=t2(t,[ea,eP]);return n?eF.fromObject(n,e):eF.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new l("need to specify a reason the Duration is invalid");let n=t instanceof tJ?t:new tJ(t,e);if(!th.throwOnInvalid)return new eF({invalid:n});throw new s(n)}static normalizeUnit(t){let e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new u(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){let n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?tK.create(this.loc,n).formatDurationFromString(this,t):"Invalid Duration"}toHuman(t={}){let e=eD.map(e=>{let n=this.values[e];return tf(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(n)}).filter(t=>t);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(t+=tx(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let e=this.toMillis();if(e<0||e>=864e5)return null;t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t};let n=this.shiftTo("hours","minutes","seconds","milliseconds"),r="basic"===t.format?"hhmm":"hh:mm";t.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===t.format?"ss":":ss",t.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));let i=n.toFormat(r);return t.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let e=eF.fromDurationLike(t),n={};for(let t of eD)(tg(e.values,t)||tg(this.values,t))&&(n[t]=e.get(t)+this.get(t));return eI(this,{values:n},!0)}minus(t){if(!this.isValid)return this;let e=eF.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;let e={};for(let n of Object.keys(this.values))e[n]=tk(t(this.values[n],n));return eI(this,{values:e},!0)}get(t){return this[eF.normalizeUnit(t)]}set(t){return this.isValid?eI(this,{values:{...this.values,...tR(t,eF.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:r}={}){return eI(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){var t;if(!this.isValid)return this;let e=this.toObject();return t=this.matrix,eL.reduce((n,r)=>tf(e[r])?n:(n&&eB(t,e,n,e,r),r),null),eI(this,{values:e},!0)}rescale(){return this.isValid?eI(this,{values:function(t){let e={};for(let[n,r]of Object.entries(t))0!==r&&(e[n]=r);return e}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){let e;if(!this.isValid||0===t.length)return this;t=t.map(t=>eF.normalizeUnit(t));let n={},r={},i=this.toObject();for(let o of eD)if(t.indexOf(o)>=0){e=o;let t=0;for(let e in r)t+=this.matrix[e][o]*r[e],r[e]=0;td(i[o])&&(t+=i[o]);let s=Math.trunc(t);for(let e in n[o]=s,r[o]=(1e3*t-1e3*s)/1e3,i)eD.indexOf(e)>eD.indexOf(o)&&eB(this.matrix,i,e,n,o)}else td(i[o])&&(r[o]=i[o]);for(let t in r)0!==r[t]&&(n[e]+=t===e?r[t]:r[t]/this.matrix[e][t]);return eI(this,{values:n},!0).normalize()}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return eI(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;for(let r of eD){var e,n;if(e=this.values[r],n=t.values[r],void 0===e||0===e?void 0!==n&&0!==n:e!==n)return!1}return!0}}let eV="Invalid Interval";class ej{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new l("need to specify a reason the Interval is invalid");let n=t instanceof tJ?t:new tJ(t,e);if(!th.throwOnInvalid)return new ej({invalid:n});throw new o(n)}static fromDateTimes(t,e){let n=nM(t),r=nM(e),i=n&&n.isValid?r&&r.isValid?r<n?ej.invalid("end before start",`The end of an interval must be after its start, but you had start=${n.toISO()} and end=${r.toISO()}`):null:ej.invalid("missing or invalid end"):ej.invalid("missing or invalid start");return null==i?new ej({start:n,end:r}):i}static after(t,e){let n=eF.fromDurationLike(e),r=nM(t);return ej.fromDateTimes(r,r.plus(n))}static before(t,e){let n=eF.fromDurationLike(e),r=nM(t);return ej.fromDateTimes(r.minus(n),r)}static fromISO(t,e){let[n,r]=(t||"").split("/",2);if(n&&r){let t,i,o,s;try{i=(t=nO.fromISO(n,e)).isValid}catch(t){i=!1}try{s=(o=nO.fromISO(r,e)).isValid}catch(t){s=!1}if(i&&s)return ej.fromDateTimes(t,o);if(i){let n=eF.fromISO(r,e);if(n.isValid)return ej.after(t,n)}else if(s){let t=eF.fromISO(n,e);if(t.isValid)return ej.before(o,t)}}return ej.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;let e=this.start.startOf(t),n=this.end.startOf(t);return Math.floor(n.diff(e,t).get(t))+(n.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?ej.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];let e=t.map(nM).filter(t=>this.contains(t)).sort(),n=[],{s:r}=this,i=0;for(;r<this.e;){let t=e[i]||this.e,o=+t>+this.e?this.e:t;n.push(ej.fromDateTimes(r,o)),r=o,i+=1}return n}splitBy(t){let e=eF.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let{s:n}=this,r=1,i,o=[];for(;n<this.e;){let t=this.start.plus(e.mapUnits(t=>t*r));i=+t>+this.e?this.e:t,o.push(ej.fromDateTimes(n,i)),n=i,r+=1}return o}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!!this.isValid&&!!t.isValid&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let e=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return e>=n?null:ej.fromDateTimes(e,n)}union(t){if(!this.isValid)return this;let e=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return ej.fromDateTimes(e,n)}static merge(t){let[e,n]=t.sort((t,e)=>t.s-e.s).reduce(([t,e],n)=>e?e.overlaps(n)||e.abutsStart(n)?[t,e.union(n)]:[t.concat([e]),n]:[t,n],[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0,r=[],i=t.map(t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}]);for(let t of Array.prototype.concat(...i).sort((t,e)=>t.time-e.time))1===(n+="s"===t.type?1:-1)?e=t.time:(e&&+e!=+t.time&&r.push(ej.fromDateTimes(e,t.time)),e=null);return ej.merge(r)}difference(...t){return ej.xor([this].concat(t)).map(t=>this.intersection(t)).filter(t=>t&&!t.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:eV}toLocaleString(t=p,e={}){return this.isValid?tK.create(this.s.loc.clone(e),t).formatInterval(this):eV}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:eV}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:eV}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:eV}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:eV}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):eF.invalid(this.invalidReason)}mapEndpoints(t){return ej.fromDateTimes(t(this.s),t(this.e))}}class eH{static hasDST(t=th.defaultZone){let e=nO.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return $.isValidZone(t)}static normalizeZone(t){return tr(t,th.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Q.create(e,n,i)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Q.create(e,n,i)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Q.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Q.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Q.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return Q.create(e,null,"gregory").eras(t)}static features(){return{relative:tm()}}}function e$(t,e){let n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(eF.fromMillis(r).as("days"))}let eU={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[０-９]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},eG={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},eZ=eU.hanidec.replace(/[\[|\]]/g,"").split("");function eW({numberingSystem:t},e=""){return RegExp(`${eU[t||"latn"]}${e}`)}function ez(t,e=t=>t){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(!isNaN(e))return e;e="";for(let n=0;n<t.length;n++){let r=t.charCodeAt(n);if(-1!==t[n].search(eU.hanidec))e+=eZ.indexOf(t[n]);else for(let t in eG){let[n,i]=eG[t];r>=n&&r<=i&&(e+=r-n)}}return parseInt(e,10)}(t))}}let eY=String.fromCharCode(160),eq=`[ ${eY}]`,eX=RegExp(eq,"g");function eK(t){return t.replace(/\./g,"\\.?").replace(eX,eq)}function eJ(t){return t.replace(/\./g,"").replace(eX," ").toLowerCase()}function eQ(t,e){return null===t?null:{regex:RegExp(t.map(eK).join("|")),deser:([n])=>t.findIndex(t=>eJ(n)===eJ(t))+e}}function e0(t,e){return{regex:t,deser:([,t,e])=>tN(t,e),groups:e}}function e1(t){return{regex:t,deser:([t])=>t}}let e2={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},e5=null;function e6(t,e){return Array.prototype.concat(...t.map(t=>(function(t,e){if(t.literal)return t;let n=e4(tK.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n})(t,e)))}function e3(t,e,n){let r=e6(tK.parseFormat(n),t),i=r.map(e=>(function(t,e){let n=eW(e),r=eW(e,"{2}"),i=eW(e,"{3}"),o=eW(e,"{4}"),s=eW(e,"{6}"),a=eW(e,"{1,2}"),u=eW(e,"{1,3}"),l=eW(e,"{1,6}"),c=eW(e,"{1,9}"),h=eW(e,"{2,4}"),f=eW(e,"{4,6}"),d=t=>({regex:RegExp(t.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:([t])=>t,literal:!0}),p=(p=>{if(t.literal)return d(p);switch(p.val){case"G":return eQ(e.eras("short",!1),0);case"GG":return eQ(e.eras("long",!1),0);case"y":return ez(l);case"yy":case"kk":return ez(h,tO);case"yyyy":case"kkkk":return ez(o);case"yyyyy":return ez(f);case"yyyyyy":return ez(s);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return ez(a);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return ez(r);case"MMM":return eQ(e.months("short",!0,!1),1);case"MMMM":return eQ(e.months("long",!0,!1),1);case"LLL":return eQ(e.months("short",!1,!1),1);case"LLLL":return eQ(e.months("long",!1,!1),1);case"o":case"S":return ez(u);case"ooo":case"SSS":return ez(i);case"u":return e1(c);case"uu":return e1(a);case"uuu":case"E":case"c":return ez(n);case"a":return eQ(e.meridiems(),0);case"EEE":return eQ(e.weekdays("short",!1,!1),1);case"EEEE":return eQ(e.weekdays("long",!1,!1),1);case"ccc":return eQ(e.weekdays("short",!0,!1),1);case"cccc":return eQ(e.weekdays("long",!0,!1),1);case"Z":case"ZZ":return e0(RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return e0(RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return e1(/[a-z_+-/]{1,256}?/i);case" ":return e1(/[^\S\n\r]/);default:return d(p)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return p.token=t,p})(e,t)),o=i.find(t=>t.invalidReason);if(o)return{input:e,tokens:r,invalidReason:o.invalidReason};{let[t,n]=function(t){let e=t.map(t=>t.regex).reduce((t,e)=>`${t}(${e.source})`,"");return[`^${e}$`,t]}(i),o=RegExp(t,"i"),[s,u]=function(t,e,n){let r=t.match(e);if(!r)return[r,{}];{let t={},e=1;for(let i in n)if(tg(n,i)){let o=n[i],s=o.groups?o.groups+1:1;!o.literal&&o.token&&(t[o.token.val[0]]=o.deser(r.slice(e,e+s))),e+=s}return[r,t]}}(e,o,n),[l,c,h]=u?function(t){let e;let n=t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null;return tf(t.z)||(r=$.create(t.z)),tf(t.Z)||(r||(r=new te(t.Z)),e=t.Z),tf(t.q)||(t.M=(t.q-1)*3+1),tf(t.h)||(t.h<12&&1===t.a?t.h+=12:12!==t.h||0!==t.a||(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),tf(t.u)||(t.S=t_(t.u)),[Object.keys(t).reduce((e,r)=>{let i=n(r);return i&&(e[i]=t[r]),e},{}),r,e]}(u):[null,null,void 0];if(tg(u,"a")&&tg(u,"H"))throw new a("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:o,rawMatches:s,matches:u,result:l,zone:c,specificOffset:h}}}function e4(t,e){return t?tK.create(e,t).formatDateTimeParts((e5||(e5=nO.fromMillis(1555555555555)),e5)).map(e=>(function(t,e){let{type:n,value:r}=t;if("literal"===n){let t=/^\s+$/.test(r);return{literal:!t,val:t?" ":r}}let i=e[n],o=e2[n];if("object"==typeof o&&(o=o[i]),o)return{literal:!1,val:o}})(e,t)):null}let e8=[0,31,59,90,120,151,181,212,243,273,304,334],e7=[0,31,60,91,121,152,182,213,244,274,305,335];function e9(t,e){return new tJ("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function nt(t,e,n){let r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);let i=r.getUTCDay();return 0===i?7:i}function ne(t,e){let n=tS(t)?e7:e8,r=n.findIndex(t=>t<e),i=e-n[r];return{month:r+1,day:i}}function nn(t){let{year:e,month:n,day:r}=t,i=r+(tS(e)?e7:e8)[n-1],o=nt(e,n,r),s=Math.floor((i-o+10)/7),a;return s<1?s=tA(a=e-1):s>tA(e)?(a=e+1,s=1):a=e,{weekYear:a,weekNumber:s,weekday:o,...tL(t)}}function nr(t){let{weekYear:e,weekNumber:n,weekday:r}=t,i=nt(e,1,4),o=tT(e),s=7*n+r-i-3,a;s<1?s+=tT(a=e-1):s>o?(a=e+1,s-=tT(e)):a=e;let{month:u,day:l}=ne(a,s);return{year:a,month:u,day:l,...tL(t)}}function ni(t){let{year:e,month:n,day:r}=t,i=r+(tS(e)?e7:e8)[n-1];return{year:e,ordinal:i,...tL(t)}}function no(t){let{year:e,ordinal:n}=t,{month:r,day:i}=ne(e,n);return{year:e,month:r,day:i,...tL(t)}}function ns(t){let e=tp(t.year),n=ty(t.month,1,12),r=ty(t.day,1,tC(t.year,t.month));return e?n?!r&&e9("day",t.day):e9("month",t.month):e9("year",t.year)}function na(t){let{hour:e,minute:n,second:r,millisecond:i}=t,o=ty(e,0,23)||24===e&&0===n&&0===r&&0===i,s=ty(n,0,59),a=ty(r,0,59),u=ty(i,0,999);return o?s?a?!u&&e9("millisecond",i):e9("second",r):e9("minute",n):e9("hour",e)}let nu="Invalid DateTime";function nl(t){return new tJ("unsupported zone",`the zone "${t.name}" is not supported`)}function nc(t){return null===t.weekData&&(t.weekData=nn(t.c)),t.weekData}function nh(t,e){let n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new nO({...n,...e,old:n})}function nf(t,e,n){let r=t-6e4*e,i=n.offset(r);if(e===i)return[r,e];r-=(i-e)*6e4;let o=n.offset(r);return i===o?[r,i]:[t-6e4*Math.min(i,o),Math.max(i,o)]}function nd(t,e){let n=new Date(t+=6e4*e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function np(t,e){let n=t.o,r=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),o={...t.c,year:r,month:i,day:Math.min(t.c.day,tC(r,i))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},s=eF.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),[a,u]=nf(tP(o),n,t.zone);return 0!==s&&(a+=s,u=t.zone.offset(a)),{ts:a,o:u}}function nm(t,e,n,r,i,o){let{setZone:s,zone:a}=n;if((!t||0===Object.keys(t).length)&&!e)return nO.invalid(new tJ("unparsable",`the input "${i}" can't be parsed as ${r}`));{let r=nO.fromObject(t,{...n,zone:e||a,specificOffset:o});return s?r:r.setZone(a)}}function nv(t,e,n=!0){return t.isValid?tK.create(Q.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function ng(t,e){let n=t.c.year>9999||t.c.year<0,r="";return n&&t.c.year>=0&&(r+="+"),r+=tb(t.c.year,n?6:4),e?r+="-"+tb(t.c.month)+"-"+tb(t.c.day):r+=tb(t.c.month)+tb(t.c.day),r}function ny(t,e,n,r,i,o){let s=tb(t.c.hour);return e?(s+=":"+tb(t.c.minute),0===t.c.second&&n||(s+=":")):s+=tb(t.c.minute),0===t.c.second&&n||(s+=tb(t.c.second),0===t.c.millisecond&&r||(s+="."+tb(t.c.millisecond,3))),i&&(t.isOffsetFixed&&0===t.offset&&!o?s+="Z":t.o<0?s+="-"+tb(Math.trunc(-t.o/60))+":"+tb(Math.trunc(-t.o%60)):s+="+"+tb(Math.trunc(t.o/60))+":"+tb(Math.trunc(t.o%60))),o&&(s+="["+t.zone.ianaName+"]"),s}let nb={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},nE={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},nw={ordinal:1,hour:0,minute:0,second:0,millisecond:0},n_=["year","month","day","hour","minute","second","millisecond"],nx=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],nS=["year","ordinal","hour","minute","second","millisecond"];function nT(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new u(t);return e}function nC(t,e){let n,r;let i=tr(e.zone,th.defaultZone),o=Q.fromObject(e),s=th.now();if(tf(t.year))n=s;else{for(let e of n_)tf(t[e])&&(t[e]=nb[e]);let e=ns(t)||na(t);if(e)return nO.invalid(e);let o=i.offset(s);[n,r]=nf(tP(t),o,i)}return new nO({ts:n,zone:i,loc:o,o:r})}function nP(t,e,n){let r=!!tf(n.round)||n.round,i=(t,i)=>(t=tx(t,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(t,i)),o=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return i(o(n.unit),n.unit);for(let t of n.units){let e=o(t);if(Math.abs(e)>=1)return i(e,t)}return i(t>e?-0:0,n.units[n.units.length-1])}function nA(t){let e={},n;return t.length>0&&"object"==typeof t[t.length-1]?(e=t[t.length-1],n=Array.from(t).slice(0,t.length-1)):n=Array.from(t),[e,n]}class nO{constructor(t){let e=t.zone||th.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new tJ("invalid input"):null)||(e.isValid?null:nl(e));this.ts=tf(t.ts)?th.now():t.ts;let r=null,i=null;if(!n){if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,i]=[t.old.c,t.old.o];else{let t=e.offset(this.ts);r=(n=Number.isNaN((r=nd(this.ts,t)).year)?new tJ("invalid input"):null)?null:r,i=n?null:t}}this._zone=e,this.loc=t.loc||Q.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new nO({})}static local(){let[t,e]=nA(arguments),[n,r,i,o,s,a,u]=e;return nC({year:n,month:r,day:i,hour:o,minute:s,second:a,millisecond:u},t)}static utc(){let[t,e]=nA(arguments),[n,r,i,o,s,a,u]=e;return t.zone=te.utcInstance,nC({year:n,month:r,day:i,hour:o,minute:s,second:a,millisecond:u},t)}static fromJSDate(t,e={}){let n="[object Date]"===Object.prototype.toString.call(t)?t.valueOf():NaN;if(Number.isNaN(n))return nO.invalid("invalid input");let r=tr(e.zone,th.defaultZone);return r.isValid?new nO({ts:n,zone:r,loc:Q.fromObject(e)}):nO.invalid(nl(r))}static fromMillis(t,e={}){if(td(t))return t<-864e13||t>864e13?nO.invalid("Timestamp out of range"):new nO({ts:t,zone:tr(e.zone,th.defaultZone),loc:Q.fromObject(e)});throw new l(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(td(t))return new nO({ts:1e3*t,zone:tr(e.zone,th.defaultZone),loc:Q.fromObject(e)});throw new l("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};let n=tr(e.zone,th.defaultZone);if(!n.isValid)return nO.invalid(nl(n));let r=th.now(),i=tf(e.specificOffset)?n.offset(r):e.specificOffset,o=tR(t,nT),s=!tf(o.ordinal),u=!tf(o.year),l=!tf(o.month)||!tf(o.day),c=u||l,h=o.weekYear||o.weekNumber,f=Q.fromObject(e);if((c||s)&&h)throw new a("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new a("Can't mix ordinal dates with month/day");let d=h||o.weekday&&!c,p,m,v=nd(r,i);d?(p=nx,m=nE,v=nn(v)):s?(p=nS,m=nw,v=ni(v)):(p=n_,m=nb);let g=!1;for(let t of p)tf(o[t])?g?o[t]=m[t]:o[t]=v[t]:g=!0;let y=(d?function(t){let e=tp(t.weekYear),n=ty(t.weekNumber,1,tA(t.weekYear)),r=ty(t.weekday,1,7);return e?n?!r&&e9("weekday",t.weekday):e9("week",t.week):e9("weekYear",t.weekYear)}(o):s?function(t){let e=tp(t.year),n=ty(t.ordinal,1,tT(t.year));return e?!n&&e9("ordinal",t.ordinal):e9("year",t.year)}(o):ns(o))||na(o);if(y)return nO.invalid(y);let[b,E]=nf(tP(d?nr(o):s?no(o):o),i,n),w=new nO({ts:b,zone:n,o:E,loc:f});return o.weekday&&c&&t.weekday!==w.weekday?nO.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${w.toISO()}`):w}static fromISO(t,e={}){let[n,r]=t2(t,[eb,ex],[eE,eS],[ew,eT],[e_,eC]);return nm(n,r,e,"ISO 8601",t)}static fromRFC2822(t,e={}){let[n,r]=t2(t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[ef,ed]);return nm(n,r,e,"RFC 2822",t)}static fromHTTP(t,e={}){let[n,r]=t2(t,[ep,eg],[em,eg],[ev,ey]);return nm(n,r,e,"HTTP",e)}static fromFormat(t,e,n={}){if(tf(t)||tf(e))throw new l("fromFormat requires an input string and a format");let{locale:r=null,numberingSystem:i=null}=n,[o,s,a,u]=function(t,e,n){let{result:r,zone:i,specificOffset:o,invalidReason:s}=e3(t,e,n);return[r,i,o,s]}(Q.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),t,e);return u?nO.invalid(u):nm(o,s,n,`format ${e}`,t,a)}static fromString(t,e,n={}){return nO.fromFormat(t,e,n)}static fromSQL(t,e={}){let[n,r]=t2(t,[eA,ex],[eO,eM]);return nm(n,r,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new l("need to specify a reason the DateTime is invalid");let n=t instanceof tJ?t:new tJ(t,e);if(!th.throwOnInvalid)return new nO({invalid:n});throw new i(n)}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){let n=e4(t,Q.fromObject(e));return n?n.map(t=>t?t.val:null).join(""):null}static expandFormat(t,e={}){return e6(tK.parseFormat(t),Q.fromObject(e)).map(t=>t.val).join("")}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?nc(this).weekYear:NaN}get weekNumber(){return this.isValid?nc(this).weekNumber:NaN}get weekday(){return this.isValid?nc(this).weekday:NaN}get ordinal(){return this.isValid?ni(this.c).ordinal:NaN}get monthShort(){return this.isValid?eH.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?eH.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?eH.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?eH.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return tS(this.year)}get daysInMonth(){return tC(this.year,this.month)}get daysInYear(){return this.isValid?tT(this.year):NaN}get weeksInWeekYear(){return this.isValid?tA(this.weekYear):NaN}resolvedLocaleOptions(t={}){let{locale:e,numberingSystem:n,calendar:r}=tK.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:r}}toUTC(t=0,e={}){return this.setZone(te.instance(t),e)}toLocal(){return this.setZone(th.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=tr(t,th.defaultZone)).equals(this.zone))return this;if(!t.isValid)return nO.invalid(nl(t));{let i=this.ts;if(e||n){var r;let e=t.offset(this.ts),n=this.toObject();[i]=(r=t,nf(tP(n),e,r))}return nh(this,{ts:i,zone:t})}}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return nh(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){var e,n,r;let i;if(!this.isValid)return this;let o=tR(t,nT),s=!tf(o.weekYear)||!tf(o.weekNumber)||!tf(o.weekday),u=!tf(o.ordinal),l=!tf(o.year),c=!tf(o.month)||!tf(o.day),h=o.weekYear||o.weekNumber;if((l||c||u)&&h)throw new a("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&u)throw new a("Can't mix ordinal dates with month/day");s?i=nr({...nn(this.c),...o}):tf(o.ordinal)?(i={...this.toObject(),...o},tf(o.day)&&(i.day=Math.min(tC(i.year,i.month),i.day))):i=no({...ni(this.c),...o});let[f,d]=(e=i,n=this.o,r=this.zone,nf(tP(e),n,r));return nh(this,{ts:f,o:d})}plus(t){return this.isValid?nh(this,np(this,eF.fromDurationLike(t))):this}minus(t){return this.isValid?nh(this,np(this,eF.fromDurationLike(t).negate())):this}startOf(t){if(!this.isValid)return this;let e={},n=eF.normalizeUnit(t);switch(n){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===n&&(e.weekday=1),"quarters"===n){let t=Math.ceil(this.month/3);e.month=(t-1)*3+1}return this.set(e)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,e={}){return this.isValid?tK.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):nu}toLocaleString(t=p,e={}){return this.isValid?tK.create(this.loc.clone(e),t).formatDateTime(this):nu}toLocaleParts(t={}){return this.isValid?tK.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;let o="extended"===t;return ng(this,o)+"T"+ny(this,o,e,n,r,i)}toISODate({format:t="extended"}={}){return this.isValid?ng(this,"extended"===t):null}toISOWeekDate(){return nv(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+ny(this,"extended"===o,e,t,n,i):null}toRFC2822(){return nv(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return nv(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ng(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(e||t)&&(n&&(r+=" "),e?r+="z":t&&(r+="ZZ")),nv(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():nu}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",n={}){if(!this.isValid||!t.isValid)return eF.invalid("created by diffing an invalid DateTime");let r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=(Array.isArray(e)?e:[e]).map(eF.normalizeUnit),o=t.valueOf()>this.valueOf(),s=function(t,e,n,r){let[i,o,s,a]=function(t,e,n){let r,i;let o={},s=t;for(let[a,u]of[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+(e.year-t.year)*4],["months",(t,e)=>e.month-t.month+(e.year-t.year)*12],["weeks",(t,e)=>{let n=e$(t,e);return(n-n%7)/7}],["days",e$]])n.indexOf(a)>=0&&(r=a,o[a]=u(t,e),(i=s.plus(o))>e?(o[a]--,t=s.plus(o)):t=i);return[t,o,i,r]}(t,e,n),u=e-i,l=n.filter(t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0);0===l.length&&(s<e&&(s=i.plus({[a]:1})),s!==i&&(o[a]=(o[a]||0)+u/(s-i)));let c=eF.fromObject(o,r);return l.length>0?eF.fromMillis(u,r).shiftTo(...l).plus(c):c}(o?this:t,o?t:this,i,r);return o?s.negate():s}diffNow(t="milliseconds",e={}){return this.diff(nO.now(),t,e)}until(t){return this.isValid?ej.fromDateTimes(this,t):this}hasSame(t,e){if(!this.isValid)return!1;let n=t.valueOf(),r=this.setZone(t.zone,{keepLocalTime:!0});return r.startOf(e)<=n&&n<=r.endOf(e)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let e=t.base||nO.fromObject({},{zone:this.zone}),n=t.padding?this<e?-t.padding:t.padding:0,r=["years","months","days","hours","minutes","seconds"],i=t.unit;return Array.isArray(t.unit)&&(r=t.unit,i=void 0),nP(e,this.plus(n),{...t,numeric:"always",units:r,unit:i})}toRelativeCalendar(t={}){return this.isValid?nP(t.base||nO.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(nO.isDateTime))throw new l("min requires all arguments be DateTimes");return tv(t,t=>t.valueOf(),Math.min)}static max(...t){if(!t.every(nO.isDateTime))throw new l("max requires all arguments be DateTimes");return tv(t,t=>t.valueOf(),Math.max)}static fromFormatExplain(t,e,n={}){let{locale:r=null,numberingSystem:i=null}=n;return e3(Q.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return nO.fromFormatExplain(t,e,n)}static get DATE_SHORT(){return p}static get DATE_MED(){return m}static get DATE_MED_WITH_WEEKDAY(){return v}static get DATE_FULL(){return g}static get DATE_HUGE(){return y}static get TIME_SIMPLE(){return b}static get TIME_WITH_SECONDS(){return E}static get TIME_WITH_SHORT_OFFSET(){return w}static get TIME_WITH_LONG_OFFSET(){return _}static get TIME_24_SIMPLE(){return x}static get TIME_24_WITH_SECONDS(){return S}static get TIME_24_WITH_SHORT_OFFSET(){return T}static get TIME_24_WITH_LONG_OFFSET(){return C}static get DATETIME_SHORT(){return P}static get DATETIME_SHORT_WITH_SECONDS(){return A}static get DATETIME_MED(){return O}static get DATETIME_MED_WITH_SECONDS(){return M}static get DATETIME_MED_WITH_WEEKDAY(){return N}static get DATETIME_FULL(){return k}static get DATETIME_FULL_WITH_SECONDS(){return R}static get DATETIME_HUGE(){return D}static get DATETIME_HUGE_WITH_SECONDS(){return L}}function nM(t){if(nO.isDateTime(t))return t;if(t&&t.valueOf&&td(t.valueOf()))return nO.fromJSDate(t);if(t&&"object"==typeof t)return nO.fromObject(t);throw new l(`Unknown datetime argument: ${t}, of type ${typeof t}`)}}}]);