1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4609],{4217:(e,t,r)=>{var n=r(36713),i=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(i,""):e}},7543:(e,t,r)=>{"use strict";r.d(t,{A:()=>function e(t,r={delimiter:"-",prefix:""}){if(r.delimiter||(r.delimiter="-"),r.prefix||(r.prefix=""),!t||"boolean"==typeof t)return"";let{delimiter:n,prefix:a}=r;if("boolean"==typeof t)return"";if("string"==typeof t||"number"==typeof t){let e=i(a,n,!0),r=i(String(t),n);return e?`${e}${n}${r}`:r}return"children"in t?e(t.children):"type"in t?e(t.props.children,r):Symbol.iterator in t?e(Array.from(t).map(t=>e(t,{delimiter:n})).join(n),r):""}});var n=r(25711);function i(e,t,r=!1){let a=(0,n.TF)(e).trim().toLowerCase(),o=t.split("").map(e=>`\\${e}`).join("");return r?a.replace(/\s+/g,t):a.replace(RegExp(`[^a-z0-9${o}]+`,"g"),t).replace(RegExp(`${o}+`,"g"),t).replace(RegExp(`^${o}`,"g"),"").replace(RegExp(`${o}$`,"g"),"")}},7985:(e,t,r)=>{e.exports="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g},14468:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=s(r(59835)),i=s(r(87032)),a=s(r(90240)),o=s(r(99397));function s(e){return e&&e.__esModule?e:{default:e}}var l=(0,n.default)("youtube-player"),u={};u.proxyEvents=function(e){var t={},r=function(r){var n="on"+r.slice(0,1).toUpperCase()+r.slice(1);t[n]=function(t){l('event "%s"',n,t),e.trigger(r,t)}},n=!0,i=!1,o=void 0;try{for(var s,u=a.default[Symbol.iterator]();!(n=(s=u.next()).done);n=!0){var c=s.value;r(c)}}catch(e){i=!0,o=e}finally{try{!n&&u.return&&u.return()}finally{if(i)throw o}}return t},u.promisifyPlayer=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={},n=function(n){t&&o.default[n]?r[n]=function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.then(function(e){var t=o.default[n],i=e.getPlayerState(),a=e[n].apply(e,r);return t.stateChangeRequired||Array.isArray(t.acceptableStates)&&-1===t.acceptableStates.indexOf(i)?new Promise(function(r){e.addEventListener("onStateChange",function n(){var i=e.getPlayerState(),a=void 0;"number"==typeof t.timeout&&(a=setTimeout(function(){e.removeEventListener("onStateChange",n),r()},t.timeout)),Array.isArray(t.acceptableStates)&&-1!==t.acceptableStates.indexOf(i)&&(e.removeEventListener("onStateChange",n),clearTimeout(a),r())})}).then(function(){return a}):a})}:r[n]=function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];return e.then(function(e){return e[n].apply(e,r)})}},a=!0,s=!1,l=void 0;try{for(var u,c=i.default[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var d=u.value;n(d)}}catch(e){s=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(s)throw l}}return r},t.default=u,e.exports=t.default},15977:(e,t,r)=>{"use strict";r.d(t,{UC:()=>nN,YJ:()=>nD,In:()=>nj,q7:()=>nL,VF:()=>nV,p4:()=>nI,JU:()=>nM,ZL:()=>nR,bL:()=>nT,wn:()=>n$,PP:()=>nB,wv:()=>nZ,l9:()=>nP,WT:()=>nO,LM:()=>nF});var n,i,a,o=r(12115),s=r.t(o,2),l=r(47650);function u(e,[t,r]){return Math.min(r,Math.max(t,e))}function c(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}var d=r(94971),f=r(95920),h=r(86266),p=r(95155);function m(e,t=[]){let r=[],n=()=>{let t=r.map(e=>o.createContext(e));return function(r){let n=r?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=o.createContext(n),a=r.length;r=[...r,n];let s=t=>{let{scope:r,children:n,...s}=t,l=r?.[e]?.[a]||i,u=o.useMemo(()=>s,Object.values(s));return(0,p.jsx)(l.Provider,{value:u,children:n})};return s.displayName=t+"Provider",[s,function(r,s){let l=s?.[e]?.[a]||i,u=o.useContext(l);if(u)return u;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}function v(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function y(...e){return o.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=v(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():v(e[t],null)}}}}(...e),e)}var g=r(66634),b=new WeakMap;function w(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=x(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}(e,t);return -1===r?void 0:e[r]}function x(e){return e!=e||0===e?0:Math.trunc(e)}n=new WeakMap;var _=o.createContext(void 0);function k(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}var E=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let r=(0,g.TL)(`Primitive.${t}`),n=o.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(i?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function A(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function S(...e){return o.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=A(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():A(e[t],null)}}}}(...e),e)}var C=r(39033),T="dismissableLayer.update",P=o.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),O=o.forwardRef((e,t)=>{var r,n;let{disableOutsidePointerEvents:a=!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:c,onDismiss:d,...f}=e,h=o.useContext(P),[m,v]=o.useState(null),y=null!==(n=null==m?void 0:m.ownerDocument)&&void 0!==n?n:null===(r=globalThis)||void 0===r?void 0:r.document,[,g]=o.useState({}),b=S(t,e=>v(e)),w=Array.from(h.layers),[x]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),_=w.indexOf(x),A=m?w.indexOf(m):-1,O=h.layersWithOutsidePointerEventsDisabled.size>0,N=A>=_,F=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,C.c)(e),i=o.useRef(!1),a=o.useRef(()=>{});return o.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let t=function(){R("dismissableLayer.pointerDownOutside",n,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(r.removeEventListener("click",a.current),a.current=t,r.addEventListener("click",a.current,{once:!0})):t()}else r.removeEventListener("click",a.current);i.current=!1},t=window.setTimeout(()=>{r.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),r.removeEventListener("pointerdown",e),r.removeEventListener("click",a.current)}},[r,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,r=[...h.branches].some(e=>e.contains(t));!N||r||(null==l||l(e),null==c||c(e),e.defaultPrevented||null==d||d())},y),D=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===(t=globalThis)||void 0===t?void 0:t.document,n=(0,C.c)(e),i=o.useRef(!1);return o.useEffect(()=>{let e=e=>{e.target&&!i.current&&R("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return r.addEventListener("focusin",e),()=>r.removeEventListener("focusin",e)},[r,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...h.branches].some(e=>e.contains(t))||(null==u||u(e),null==c||c(e),e.defaultPrevented||null==d||d())},y);return!function(e,t=globalThis?.document){let r=(0,C.c)(e);o.useEffect(()=>{let e=e=>{"Escape"===e.key&&r(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[r,t])}(e=>{A===h.layers.size-1&&(null==s||s(e),!e.defaultPrevented&&d&&(e.preventDefault(),d()))},y),o.useEffect(()=>{if(m)return a&&(0===h.layersWithOutsidePointerEventsDisabled.size&&(i=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(m)),h.layers.add(m),j(),()=>{a&&1===h.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=i)}},[m,y,a,h]),o.useEffect(()=>()=>{m&&(h.layers.delete(m),h.layersWithOutsidePointerEventsDisabled.delete(m),j())},[m,h]),o.useEffect(()=>{let e=()=>g({});return document.addEventListener(T,e),()=>document.removeEventListener(T,e)},[]),(0,p.jsx)(E.div,{...f,ref:b,style:{pointerEvents:O?N?"auto":"none":void 0,...e.style},onFocusCapture:k(e.onFocusCapture,D.onFocusCapture),onBlurCapture:k(e.onBlurCapture,D.onBlurCapture),onPointerDownCapture:k(e.onPointerDownCapture,F.onPointerDownCapture)})});function j(){let e=new CustomEvent(T);document.dispatchEvent(e)}function R(e,t,r,n){let{discrete:i}=n,a=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});if(t&&a.addEventListener(e,t,{once:!0}),i)a&&l.flushSync(()=>a.dispatchEvent(o));else a.dispatchEvent(o)}O.displayName="DismissableLayer",o.forwardRef((e,t)=>
1{let r=o.useContext(P),n=o.useRef(null),i=S(t,n);return o.useEffect(()=>{let e=n.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),(0,p.jsx)(E.div,{...e,ref:i})}).displayName="DismissableLayerBranch";var N=0;function F(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}function D(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var M=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,g.TL)(`Primitive.${t}`),n=o.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(i?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),L="focusScope.autoFocusOnMount",I="focusScope.autoFocusOnUnmount",V={bubbles:!1,cancelable:!0},B=o.forwardRef((e,t)=>{let{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[l,u]=o.useState(null),c=(0,C.c)(i),d=(0,C.c)(a),f=o.useRef(null),h=function(...e){return o.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=D(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():D(e[t],null)}}}}(...e),e)}(t,e=>u(e)),m=o.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;o.useEffect(()=>{if(n){let e=function(e){if(m.paused||!l)return;let t=e.target;l.contains(t)?f.current=t:W(f.current,{select:!0})},t=function(e){if(m.paused||!l)return;let t=e.relatedTarget;null===t||l.contains(t)||W(f.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&W(l)});return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[n,l,m.paused]),o.useEffect(()=>{if(l){U.add(m);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(L,V);l.addEventListener(L,c),l.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(W(n,{select:t}),document.activeElement!==r)return}($(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&W(l))}return()=>{l.removeEventListener(L,c),setTimeout(()=>{let t=new CustomEvent(I,V);l.addEventListener(I,d),l.dispatchEvent(t),t.defaultPrevented||W(null!=e?e:document.body,{select:!0}),l.removeEventListener(I,d),U.remove(m)},0)}}},[l,c,d,m]);let v=o.useCallback(e=>{if(!r&&!n||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[n,a]=function(e){let t=$(e);return[Z(t,e),Z(t.reverse(),e)]}(t);n&&a?e.shiftKey||i!==a?e.shiftKey&&i===n&&(e.preventDefault(),r&&W(a,{select:!0})):(e.preventDefault(),r&&W(n,{select:!0})):i===t&&e.preventDefault()}},[r,n,m.paused]);return(0,p.jsx)(M.div,{tabIndex:-1,...s,ref:h,onKeyDown:v})});function $(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Z(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function W(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}B.displayName="FocusScope";var U=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=z(e,t)).unshift(t)},remove(t){var r;null===(r=(e=z(e,t))[0])||void 0===r||r.resume()}}}();function z(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}var H=globalThis?.document?o.useLayoutEffect:()=>{},q=s[" useId ".trim().toString()]||(()=>void 0),K=0;function Y(e){let[t,r]=o.useState(q());return H(()=>{e||r(e=>e??String(K++))},[e]),e||(t?`radix-${t}`:"")}let G=["top","right","bottom","left"],X=Math.min,J=Math.max,Q=Math.round,ee=Math.floor,et=e=>({x:e,y:e}
1),er={left:"right",right:"left",bottom:"top",top:"bottom"},en={start:"end",end:"start"};function ei(e,t){return"function"==typeof e?e(t):e}function ea(e){return e.split("-")[0]}function eo(e){return e.split("-")[1]}function es(e){return"x"===e?"y":"x"}function el(e){return"y"===e?"height":"width"}let eu=new Set(["top","bottom"]);function ec(e){return eu.has(ea(e))?"y":"x"}function ed(e){return e.replace(/start|end/g,e=>en[e])}let ef=["left","right"],eh=["right","left"],ep=["top","bottom"],em=["bottom","top"];function ev(e){return e.replace(/left|right|bottom|top/g,e=>er[e])}function ey(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function eg(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function eb(e,t,r){let n,{reference:i,floating:a}=e,o=ec(t),s=es(ec(t)),l=el(s),u=ea(t),c="y"===o,d=i.x+i.width/2-a.width/2,f=i.y+i.height/2-a.height/2,h=i[l]/2-a[l]/2;switch(u){case"top":n={x:d,y:i.y-a.height};break;case"bottom":n={x:d,y:i.y+i.height};break;case"right":n={x:i.x+i.width,y:f};break;case"left":n={x:i.x-a.width,y:f};break;default:n={x:i.x,y:i.y}}switch(eo(t)){case"start":n[s]-=h*(r&&c?-1:1);break;case"end":n[s]+=h*(r&&c?-1:1)}return n}let ew=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:o}=r,s=a.filter(Boolean),l=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=eb(u,n,l),f=n,h={},p=0;for(let r=0;r<s.length;r++){let{name:a,fn:m}=s[r],{x:v,y:y,data:g,reset:b}=await m({x:c,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:u,platform:o,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=y?y:d,h={...h,[a]:{...h[a],...g}},b&&p<=50&&(p++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(u=!0===b.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):b.rects),{x:c,y:d}=eb(u,f,l)),r=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}};async function ex(e,t){var r;void 0===t&&(t={});let{x:n,y:i,platform:a,rects:o,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:h=0}=ei(t,e),p=ey(h),m=s[f?"floating"===d?"reference":"floating":d],v=eg(await a.getClippingRect({element:null==(r=await (null==a.isElement?void 0:a.isElement(m)))||r?m:m.contextElement||await (null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),y="floating"===d?{x:n,y:i,width:o.floating.width,height:o.floating.height}:o.reference,g=await (null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),b=await (null==a.isElement?void 0:a.isElement(g))&&await (null==a.getScale?void 0:a.getScale(g))||{x:1,y:1},w=eg(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:g,strategy:l}):y);return{top:(v.top-w.top+p.top)/b.y,bottom:(w.bottom-v.bottom+p.bottom)/b.y,left:(v.left-w.left+p.left)/b.x,right:(w.right-v.right+p.right)/b.x}}function e_(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ek(e){return G.some(t=>e[t]>=0)}let eE=new Set(["left","top"]);async function eA(e,t){let{placement:r,platform:n,elements:i}=e,a=await (null==n.isRTL?void 0:n.isRTL(i.floating)),o=ea(r),s=eo(r),l="y"===ec(r),u=eE.has(o)?-1:1,c=a&&l?-1:1,d=ei(t,e),{mainAxis:f,crossAxis:h,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(h="end"===s?-+p:p),l?{x:h*c,y:f*u}:{x:f*u,y:h*c}}function eS(){return"undefined"!=typeof window}function eC(e){return eO(e)?(e.nodeName||"").toLowerCase():"#document"}function eT(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function eP(e){var t;return null==(t=(eO(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function eO(e){return!!eS()&&(e instanceof Node||e instanceof eT(e).Node)}function ej(e){return!!eS()&&(e instanceof Element||e instanceof eT(e).Element)}function eR(e){return!!eS()&&(e instanceof HTMLElement||e instanceof eT(e).HTMLElement)}function eN(e){return!!eS()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof eT(e).ShadowRoot)}let eF=new Set(["inline","contents"]);function eD(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=eH(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!eF.has(i)}let eM=new Set(["table","td","th"]),eL=[":popover-open",":modal"];function eI(e){return eL.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let eV=["transform","translate","scale","rotate","perspective"],eB=["transform","translate","scale","rotate","perspective","filter"],e$=["paint","layout","strict","content"];function eZ(e){let t=eW(),r=ej(e)?eH(e):e;return eV.some(e=>!!r[e]&&"none"!==r[e])||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||eB.some(e=>(r.willChange||"").includes(e))||e$.some(e=>(r.contain||"").includes(e))}function eW(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let eU=new Set(["html","body","#document"]);function ez(e){return eU.has(eC(e))}function eH(e){return eT(e).getComputedStyle(e)}function eq(e){return ej(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function eK(e){if("html"===eC(e))return e;let t=e.assignedSlot||e.parentNode||eN(e)&&e.host||eP(e);return eN(t)?t.host:t}function eY(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);let i=function e(t){let r=eK(t);return ez(r)?t.ownerDocument?t.ownerDocument.body:t.body:eR(r)&&eD(r)?r:e(r)}(e),a=i===(null==(n=e.ownerDocument)?void 0:n.body),o=eT(i);if(a){let e=eG(o);
1return t.concat(o,o.visualViewport||[],eD(i)?i:[],e&&r?eY(e):[])}return t.concat(i,eY(i,[],r))}function eG(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function eX(e){let t=eH(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=eR(e),a=i?e.offsetWidth:r,o=i?e.offsetHeight:n,s=Q(r)!==a||Q(n)!==o;return s&&(r=a,n=o),{width:r,height:n,$:s}}function eJ(e){return ej(e)?e:e.contextElement}function eQ(e){let t=eJ(e);if(!eR(t))return et(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:a}=eX(t),o=(a?Q(r.width):r.width)/n,s=(a?Q(r.height):r.height)/i;return o&&Number.isFinite(o)||(o=1),s&&Number.isFinite(s)||(s=1),{x:o,y:s}}let e0=et(0);function e1(e){let t=eT(e);return eW()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:e0}function e2(e,t,r,n){var i;void 0===t&&(t=!1),void 0===r&&(r=!1);let a=e.getBoundingClientRect(),o=eJ(e),s=et(1);t&&(n?ej(n)&&(s=eQ(n)):s=eQ(e));let l=(void 0===(i=r)&&(i=!1),n&&(!i||n===eT(o))&&i)?e1(o):et(0),u=(a.left+l.x)/s.x,c=(a.top+l.y)/s.y,d=a.width/s.x,f=a.height/s.y;if(o){let e=eT(o),t=n&&ej(n)?eT(n):n,r=e,i=eG(r);for(;i&&n&&t!==r;){let e=eQ(i),t=i.getBoundingClientRect(),n=eH(i),a=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;u*=e.x,c*=e.y,d*=e.x,f*=e.y,u+=a,c+=o,i=eG(r=eT(i))}}return eg({width:d,height:f,x:u,y:c})}function e9(e,t){let r=eq(e).scrollLeft;return t?t.left+r:e2(eP(e)).left+r}function e4(e,t){let r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-e9(e,r),y:r.top+t.scrollTop}}let e3=new Set(["absolute","fixed"]);function e5(e,t,r){let n;if("viewport"===t)n=function(e,t){let r=eT(e),n=eP(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;let e=eW();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}let u=e9(n);if(u<=0){let e=n.ownerDocument,t=e.body,r=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,o=Math.abs(n.clientWidth-t.clientWidth-i);o<=25&&(a-=o)}else u<=25&&(a+=u);return{width:a,height:o,x:s,y:l}}(e,r);else if("document"===t)n=function(e){let t=eP(e),r=eq(e),n=e.ownerDocument.body,i=J(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),a=J(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),o=-r.scrollLeft+e9(e),s=-r.scrollTop;return"rtl"===eH(n).direction&&(o+=J(t.clientWidth,n.clientWidth)-i),{width:i,height:a,x:o,y:s}}(eP(e));else if(ej(t))n=function(e,t){let r=e2(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,a=eR(e)?eQ(e):et(1),o=e.clientWidth*a.x,s=e.clientHeight*a.y;return{width:o,height:s,x:i*a.x,y:n*a.y}}(t,r);else{let r=e1(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return eg(n)}function e6(e){return"static"===eH(e).position}function e8(e,t){if(!eR(e)||"fixed"===eH(e).position)return null;if(t)return t(e);let r=e.offsetParent;return eP(e)===r&&(r=r.ownerDocument.body),r}function e7(e,t){var r;let n=eT(e);if(eI(e))return n;if(!eR(e)){let t=eK(e);for(;t&&!ez(t);){if(ej(t)&&!e6(t))return t;t=eK(t)}return n}let i=e8(e,t);for(;i&&(r=i,eM.has(eC(r)))&&e6(i);)i=e8(i,t);return i&&ez(i)&&e6(i)&&!eZ(i)?n:i||function(e){let t=eK(e);for(;eR(t)&&!ez(t);){if(eZ(t))return t;if(eI(t))break;t=eK(t)}return null}(e)||n}let te=async function(e){let t=this.getOffsetParent||e7,r=this.getDimensions,n=await r(e.floating);return{reference:function(e,t,r){let n=eR(t),i=eP(t),a="fixed"===r,o=e2(e,!0,a,t),s={scrollLeft:0,scrollTop:0},l=et(0);if(n||!n&&!a)if(("body"!==eC(t)||eD(i))&&(s=eq(t)),n){let e=e2(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=e9(i));a&&!n&&i&&(l.x=e9(i));let u=!i||n||a?et(0):e4(i,s);return{x:o.left+s.scrollLeft-l.x-u.x,y:o.top+s.scrollTop-l.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},tt={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,a="fixed"===i,o=eP(n),s=!!t&&eI(t.floating);if(n===o||s&&a)return r;let l={scrollLeft:0,scrollTop:0},u=et(1),c=et(0),d=eR(n);
1if((d||!d&&!a)&&(("body"!==eC(n)||eD(o))&&(l=eq(n)),eR(n))){let e=e2(n);u=eQ(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}let f=!o||d||a?et(0):e4(o,l);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:r.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:eP,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,a=[..."clippingAncestors"===r?eI(t)?[]:function(e,t){let r=t.get(e);if(r)return r;let n=eY(e,[],!1).filter(e=>ej(e)&&"body"!==eC(e)),i=null,a="fixed"===eH(e).position,o=a?eK(e):e;for(;ej(o)&&!ez(o);){let t=eH(o),r=eZ(o);r||"fixed"!==t.position||(i=null),(a?!r&&!i:!r&&"static"===t.position&&!!i&&e3.has(i.position)||eD(o)&&!r&&function e(t,r){let n=eK(t);return!(n===r||!ej(n)||ez(n))&&("fixed"===eH(n).position||e(n,r))}(e,o))?n=n.filter(e=>e!==o):i=t,o=eK(o)}return t.set(e,n),n}(t,this._c):[].concat(r),n],o=a[0],s=a.reduce((e,r)=>{let n=e5(t,r,i);return e.top=J(n.top,e.top),e.right=X(n.right,e.right),e.bottom=X(n.bottom,e.bottom),e.left=J(n.left,e.left),e},e5(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:e7,getElementRects:te,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:r}=eX(e);return{width:t,height:r}},getScale:eQ,isElement:ej,isRTL:function(e){return"rtl"===eH(e).direction}};function tr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let tn=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:a,platform:o,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=ei(e,t)||{};if(null==u)return{};let d=ey(c),f={x:r,y:n},h=es(ec(i)),p=el(h),m=await o.getDimensions(u),v="y"===h,y=v?"clientHeight":"clientWidth",g=a.reference[p]+a.reference[h]-f[h]-a.floating[p],b=f[h]-a.reference[h],w=await (null==o.getOffsetParent?void 0:o.getOffsetParent(u)),x=w?w[y]:0;x&&await (null==o.isElement?void 0:o.isElement(w))||(x=s.floating[y]||a.floating[p]);let _=x/2-m[p]/2-1,k=X(d[v?"top":"left"],_),E=X(d[v?"bottom":"right"],_),A=x-m[p]-E,S=x/2-m[p]/2+(g/2-b/2),C=J(k,X(S,A)),T=!l.arrow&&null!=eo(i)&&S!==C&&a.reference[p]/2-(S<k?k:E)-m[p]/2<0,P=T?S<k?S-k:S-A:0;return{[h]:f[h]+P,data:{[h]:C,centerOffset:S-C-P,...T&&{alignmentOffset:P}},reset:T}}}),ti=(e,t,r)=>{let n=new Map,i={platform:tt,...r},a={...i.platform,_c:n};return ew(e,t,{...i,platform:a})};var ta="undefined"!=typeof document?o.useLayoutEffect:function(){};function to(e,t){let r,n,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((r=e.length)!==t.length)return!1;for(n=r;0!=n--;)if(!to(e[n],t[n]))return!1;return!0}if((r=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!({}).hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!=n--;){let r=i[n];if(("_owner"!==r||!e.$$typeof)&&!to(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function ts(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function tl(e,t){let r=ts(e);return Math.round(t*r)/r}function tu(e){let t=o.useRef(e);return ta(()=>{t.current=e}),t}let tc=e=>({name:"arrow",options:e,fn(t){let{element:r,padding:n}="function"==typeof e?e(t):e;return r&&({}).hasOwnProperty.call(r,"current")?null!=r.current?tn({element:r.current,padding:n}).fn(t):{}:r?tn({element:r,padding:n}).fn(t):{}}}),td=(e,t)=>({...function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:a,placement:o,middlewareData:s}=t,l=await eA(t,e);return o===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:o}}}}}(e),options:[e,t]}),tf=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=ei(e,t),u={x:r,y:n},c=await ex(t,l),d=ec(ea(i)),f=es(d),h=u[f],p=u[d];if(a){let e="y"===f?"top":"left",t="y"===f?"bottom":"right",r=h+c[e],n=h-c[t];h=J(r,X(h,n))}if(o){let e="y"===d?"top":"left",t="y"===d?"bottom":"right",r=p+c[e],n=p-c[t];p=J(r,X(p,n))}let m=s.fn({...t,[f]:h,[d]:p});return{...m,data:{x:m.x-r,y:m.y-n,enabled:{[f]:a,[d]:o}}}}}}(e),options:[e,t]}),th=(e,t)=>({...function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:r,y:n,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:u=!0}=ei(e,t),c={x:r,y:n},d=ec(i),f=es(d),h=c[f],p=c[d],m=ei(s,t),v="number"==typeof m?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){let e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+v.mainAxis,r=a.reference[f]+a.reference[e]-v.mainAxis;h<t?h=t:h>r&&(h=r)}if(u){var y,g;let e="y"===f?"width":"height",t=eE.has(ea(i)),r=a.reference[d]-a.floating[e]+(t&&(null==(y=o.offset)?void 0:y[d])||0)+(t?0:v.crossAxis),n=a.reference[d]+a.reference[e]+(t?0:(null==(g=o.offset)?void 0:g[d])||0)-(t?v.crossAxis:0);p<r?p=r:p>n&&(p=n)}return{[f]:h,[d]:p}}}}(e),options:[e,t]}),tp=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n,i,a,o;let{placement:s,middlewareData:l,rects:u,initialPlacement:c,platform:d,elements:f}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:m,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...b}=ei(e,t);if(null!=(r=l.arrow)&&r.alignmentOffset)return{};let w=ea(s),x=ec(c),_=ea(c)===c,k=await (null==d.isRTL?void 0:d.isRTL(f.floating)),E=m||(_||!g?[ev(c)]:function(e){let t=ev(e);return[ed(e),t,ed(t)]}(c)),A="none"!==y;!m&&A&&E.push(...function(e,t,r,n){let i=eo(e),a=function(e,t,r){switch(e){case"top":case"bottom":if(r)return t?eh:ef;return t?ef:eh;case"left":case"right":return t?ep:em;default:return[]}}(ea(e),"start"===r,n);return i&&(a=a.map(e=>e+"-"+i),t&&(a=a.concat(a.map(ed)))),a}(c,g,y,k));let S=[c,...E],C=await ex(t,b),T=[],P=(null==(n=l.flip)?void 0:n.overflows)||[];if(h&&T.push(C[w]),p){let e=function(e,t,r){void 0===r&&(r=!1);let n=eo(e),i=es(ec(e)),a=el(i),o="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=ev(o)),[o,ev(o)]}(s,u,k);T.push(C[e[0]],C[e[1]])}if(P=[...P,{placement:s,overflows:T}],!T.every(e=>e<=0)){let e=((null==(i=l.flip)?void 0:i.index)||0)+1,t=S[e];if(t&&("alignment"!==p||x===ec(t)||P.every(e=>ec(e.placement)!==x||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:t}};let r=null==(a=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>
1e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!r)switch(v){case"bestFit":{let e=null==(o=P.filter(e=>{if(A){let t=ec(e.placement);return t===x||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(r=e);break}case"initialPlacement":r=c}if(s!==r)return{reset:{placement:r}}}return{}}}}(e),options:[e,t]}),tm=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;let i,a,{placement:o,rects:s,platform:l,elements:u}=t,{apply:c=()=>{},...d}=ei(e,t),f=await ex(t,d),h=ea(o),p=eo(o),m="y"===ec(o),{width:v,height:y}=s.floating;"top"===h||"bottom"===h?(i=h,a=p===(await (null==l.isRTL?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(a=h,i="end"===p?"top":"bottom");let g=y-f.top-f.bottom,b=v-f.left-f.right,w=X(y-f[i],g),x=X(v-f[a],b),_=!t.middlewareData.shift,k=w,E=x;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(E=b),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(k=g),_&&!p){let e=J(f.left,0),t=J(f.right,0),r=J(f.top,0),n=J(f.bottom,0);m?E=v-2*(0!==e||0!==t?e+t:J(f.left,f.right)):k=y-2*(0!==r||0!==n?r+n:J(f.top,f.bottom))}await c({...t,availableWidth:E,availableHeight:k});let A=await l.getDimensions(u.floating);return v!==A.width||y!==A.height?{reset:{rects:!0}}:{}}}}(e),options:[e,t]}),tv=(e,t)=>({...function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=ei(e,t);switch(n){case"referenceHidden":{let e=e_(await ex(t,{...i,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:ek(e)}}}case"escaped":{let e=e_(await ex(t,{...i,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:ek(e)}}}default:return{}}}}}(e),options:[e,t]}),ty=(e,t)=>({...tc(e),options:[e,t]});var tg=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,g.TL)(`Primitive.${t}`),n=o.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(i?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),tb=o.forwardRef((e,t)=>{let{children:r,width:n=10,height:i=5,...a}=e;return(0,p.jsx)(tg.svg,{...a,ref:t,width:n,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:(0,p.jsx)("polygon",{points:"0,0 30,0 15,10"})})});function tw(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function tx(...e){return o.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=tw(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():tw(e[t],null)}}}}(...e),e)}tb.displayName="Arrow";var t_=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,g.TL)(`Primitive.${t}`),n=o.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(i?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),tk=globalThis?.document?o.useLayoutEffect:()=>{},tE=r(47602),tA="Popper",[tS,tC]=function(e,t=[]){let r=[],n=()=>{let t=r.map(e=>o.createContext(e));return function(r){let n=r?.[e]||t;return o.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let i=o.createContext(n),a=r.length;r=[...r,n];let s=t=>{let{scope:r,children:n,...s}=t,l=r?.[e]?.[a]||i,u=o.useMemo(()=>s,Object.values(s));return(0,p.jsx)(l.Provider,{value:u,children:n})};return s.displayName=t+"Provider",[s,function(r,s){let l=s?.[e]?.[a]||i,u=o.useContext(l);if(u)return u;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return o.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}(tA),[tT,tP]=tS(tA),tO=e=>{let{__scopePopper:t,children:r}=e,[n,i]=o.useState(null);return(0,p.jsx)(tT,{scope:t,anchor:n,onAnchorChange:i,children:r})};tO.displayName=tA;var tj="PopperAnchor",tR=o.forwardRef((e,t)=>
1{let{__scopePopper:r,virtualRef:n,...i}=e,a=tP(tj,r),s=o.useRef(null),l=tx(t,s);return o.useEffect(()=>{a.onAnchorChange((null==n?void 0:n.current)||s.current)}),n?null:(0,p.jsx)(t_.div,{...i,ref:l})});tR.displayName=tj;var tN="PopperContent",[tF,tD]=tS(tN),tM=o.forwardRef((e,t)=>{var r,n,i,a,s,u,c,d;let{__scopePopper:f,side:h="bottom",sideOffset:m=0,align:v="center",alignOffset:y=0,arrowPadding:g=0,avoidCollisions:b=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:_="partial",hideWhenDetached:k=!1,updatePositionStrategy:E="optimized",onPlaced:A,...S}=e,T=tP(tN,f),[P,O]=o.useState(null),j=tx(t,e=>O(e)),[R,N]=o.useState(null),F=(0,tE.X)(R),D=null!==(c=null==F?void 0:F.width)&&void 0!==c?c:0,M=null!==(d=null==F?void 0:F.height)&&void 0!==d?d:0,L="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},I=Array.isArray(w)?w:[w],V=I.length>0,B={padding:L,boundary:I.filter(tB),altBoundary:V},{refs:$,floatingStyles:Z,placement:W,isPositioned:U,middlewareData:z}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:a,floating:s}={},transform:u=!0,whileElementsMounted:c,open:d}=e,[f,h]=o.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[p,m]=o.useState(n);to(p,n)||m(n);let[v,y]=o.useState(null),[g,b]=o.useState(null),w=o.useCallback(e=>{e!==E.current&&(E.current=e,y(e))},[]),x=o.useCallback(e=>{e!==A.current&&(A.current=e,b(e))},[]),_=a||v,k=s||g,E=o.useRef(null),A=o.useRef(null),S=o.useRef(f),C=null!=c,T=tu(c),P=tu(i),O=tu(d),j=o.useCallback(()=>{if(!E.current||!A.current)return;let e={placement:t,strategy:r,middleware:p};P.current&&(e.platform=P.current),ti(E.current,A.current,e).then(e=>{let t={...e,isPositioned:!1!==O.current};R.current&&!to(S.current,t)&&(S.current=t,l.flushSync(()=>{h(t)}))})},[p,t,r,P,O]);ta(()=>{!1===d&&S.current.isPositioned&&(S.current.isPositioned=!1,h(e=>({...e,isPositioned:!1})))},[d]);let R=o.useRef(!1);ta(()=>(R.current=!0,()=>{R.current=!1}),[]),ta(()=>{if(_&&(E.current=_),k&&(A.current=k),_&&k){if(T.current)return T.current(_,k,j);j()}},[_,k,j,T,C]);let N=o.useMemo(()=>({reference:E,floating:A,setReference:w,setFloating:x}),[w,x]),F=o.useMemo(()=>({reference:_,floating:k}),[_,k]),D=o.useMemo(()=>{let e={position:r,left:0,top:0};if(!F.floating)return e;let t=tl(F.floating,f.x),n=tl(F.floating,f.y);return u?{...e,transform:"translate("+t+"px, "+n+"px)",...ts(F.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,u,F.floating,f.x,f.y]);return o.useMemo(()=>({...f,update:j,refs:N,elements:F,floatingStyles:D}),[f,j,N,F,D])}({strategy:"fixed",placement:h+("center"!==v?"-"+v:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,t,r,n){let i;void 0===n&&(n={});let{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=n,c=eJ(e),d=a||o?[...c?eY(c):[],...eY(t)]:[];d.forEach(e=>{a&&e.addEventListener("scroll",r,{passive:!0}),o&&e.addEventListener("resize",r)});let f=c&&l?function(e,t){let r,n=null,i=eP(e);function a(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return!function o(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();let u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:h}=u;if(s||t(),!f||!h)return;let p=ee(d),m=ee(i.clientWidth-(c+f)),v={rootMargin:-p+"px "+-m+"px "+-ee(i.clientHeight-(d+h))+"px "+-ee(c)+"px",threshold:J(0,X(1,l))||1},y=!0;function g(t){let n=t[0].intersectionRatio;if(n!==l){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}1!==n||tr(u,e.getBoundingClientRect())||o(),y=!1}try{n=new IntersectionObserver(g,{...v,root:i.ownerDocument})}catch(e){n=new IntersectionObserver(g,v)}n.observe(e)}(!0),a}(c,r):null,h=-1,p=null;s&&(p=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),r()}),c&&!u&&p.observe(c),p.observe(t));let m=u?e2(e):null;return u&&function t(){let n=e2(e);m&&!tr(m,n)&&r(),m=n,i=requestAnimationFrame(t)}(),r(),()=>{var e;
1d.forEach(e=>{a&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)}),null==f||f(),null==(e=p)||e.disconnect(),p=null,u&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===E})},elements:{reference:T.anchor},middleware:[td({mainAxis:m+M,alignmentAxis:y}),b&&tf({mainAxis:!0,crossAxis:!1,limiter:"partial"===_?th():void 0,...B}),b&&tp({...B}),tm({...B,apply:e=>{let{elements:t,rects:r,availableWidth:n,availableHeight:i}=e,{width:a,height:o}=r.reference,s=t.floating.style;s.setProperty("--radix-popper-available-width","".concat(n,"px")),s.setProperty("--radix-popper-available-height","".concat(i,"px")),s.setProperty("--radix-popper-anchor-width","".concat(a,"px")),s.setProperty("--radix-popper-anchor-height","".concat(o,"px"))}}),R&&ty({element:R,padding:g}),t$({arrowWidth:D,arrowHeight:M}),k&&tv({strategy:"referenceHidden",...B})]}),[H,q]=tZ(W),K=(0,C.c)(A);tk(()=>{U&&(null==K||K())},[U,K]);let Y=null===(r=z.arrow)||void 0===r?void 0:r.x,G=null===(n=z.arrow)||void 0===n?void 0:n.y,Q=(null===(i=z.arrow)||void 0===i?void 0:i.centerOffset)!==0,[et,er]=o.useState();return tk(()=>{P&&er(window.getComputedStyle(P).zIndex)},[P]),(0,p.jsx)("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...Z,transform:U?Z.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:et,"--radix-popper-transform-origin":[null===(a=z.transformOrigin)||void 0===a?void 0:a.x,null===(s=z.transformOrigin)||void 0===s?void 0:s.y].join(" "),...(null===(u=z.hide)||void 0===u?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,p.jsx)(tF,{scope:f,placedSide:H,onArrowChange:N,arrowX:Y,arrowY:G,shouldHideArrow:Q,children:(0,p.jsx)(t_.div,{"data-side":H,"data-align":q,...S,ref:j,style:{...S.style,animation:U?void 0:"none"}})})})});tM.displayName=tN;var tL="PopperArrow",tI={top:"bottom",right:"left",bottom:"top",left:"right"},tV=o.forwardRef(function(e,t){let{__scopePopper:r,...n}=e,i=tD(tL,r),a=tI[i.placedSide];return(0,p.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]: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},children:(0,p.jsx)(tb,{...n,ref:t,style:{...n.style,display:"block"}})})});function tB(e){return null!==e}tV.displayName=tL;var t$=e=>({name:"transformOrigin",options:e,fn(t){var r,n,i,a,o;let{placement:s,rects:l,middlewareData:u}=t,c=(null===(r=u.arrow)||void 0===r?void 0:r.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=tZ(s),m={start:"0%",center:"50%",end:"100%"}[p],v=(null!==(a=null===(n=u.arrow)||void 0===n?void 0:n.x)&&void 0!==a?a:0)+d/2,y=(null!==(o=null===(i=u.arrow)||void 0===i?void 0:i.y)&&void 0!==o?o:0)+f/2,g="",b="";return"bottom"===h?(g=c?m:"".concat(v,"px"),b="".concat(-f,"px")):"top"===h?(g=c?m:"".concat(v,"px"),b="".concat(l.floating.height+f,"px")):"right"===h?(g="".concat(-f,"px"),b=c?m:"".concat(y,"px")):"left"===h&&(g="".concat(l.floating.width+f,"px"),b=c?m:"".concat(y,"px")),{data:{x:g,y:b}}}});function tZ(e){let[t,r="center"]=e.split("-");return[t,r]}var tW=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,g.TL)(`Primitive.${t}`),n=o.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(i?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),tU=globalThis?.document?o.useLayoutEffect:()=>{},tz=o.forwardRef((e,t)=>{var r,n;let{container:i,...a}=e,[s,u]=o.useState(!1);tU(()=>u(!0),[]);let c=i||s&&(null===(n=globalThis)||void 0===n?void 0:null===(r=n.document)||void 0===r?void 0:r.body);return c?l.createPortal((0,p.jsx)(tW.div,{...a,ref:t}),c):null});tz.displayName="Portal";var tH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let r=(0,g.TL)(`Primitive.${t}`),n=o.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(i?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),tq=s[" useInsertionEffect ".trim().toString()]||H;function tK({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[i,a,s]=function({defaultProp:e,onChange:t}){let[r,n]=o.useState(e),i=o.useRef(r),a=o.useRef(t);return tq(()=>{a.current=t},[t]),o.useEffect(()=>{i.current!==r&&(a.current?.(r),i.current=r)},[r,i]),[r,n,a]}({defaultProp:t,onChange:r}),l=void 0!==e,u=l?e:i;{let t=o.useRef(void 0!==e);o.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,n])}return[u,o.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else a(t)},[l,e,a,s])]}Symbol("RADIX:SYNC_STATE");var tY=r(45503),tG=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,g.TL)(`Primitive.${t}`),n=o.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,p.jsx)(i?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),tX=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"});o.forwardRef((e,t)=>(0,p.jsx)(tG.span,{...e,ref:t,style:{...tX,...e.style}})).displayName="VisuallyHidden";var tJ=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},tQ=new WeakMap,t0=new WeakMap,t1={},t2=0,t9=function(e){return e&&(e.host||t9(e.parentNode))},t4=function(e,t,r,n){var i=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=t9(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});t1[r]||(t1[r]=new WeakMap);var a=t1[r],o=[],s=new Set,l=new Set(i),u=function(e){!e||s.has(e)||(s.add(e),u(e.parentNode))};i.forEach(u);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))c(e);else try{var t=e.getAttribute(n),i=null!==t&&"false"!==t,l=(tQ.get(e)||0)+1,u=(a.get(e)||0)+1;tQ.set(e,l),a.set(e,u),o.push(e),1===l&&i&&t0.set(e,!0),1===u&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),s.clear(),t2++,function(){o.forEach(function(e){var t=tQ.get(e)-1,i=a.get(e)-1;tQ.set(e,t),a.set(e,i),t||(t0.has(e)||e.removeAttribute(n),t0.delete(e)),i||e.removeAttribute(r)}),--t2||(tQ=new WeakMap,tQ=new WeakMap,t0=new WeakMap,t1={})}},t3=function(e,t,r){void 0===r&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=t||tJ(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),t4(n,i,r,"aria-hidden")):function(){return null}},t5=r(39249),t6="right-scroll-bar-position",t8="width-before-scroll-bar";function t7(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var re="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,rt=new WeakMap;function rr(e){return e}var rn=function(e){void 0===e&&(e={});var t,r,n,i,a=(t=null,void 0===r&&(r=rr),n=[],i=!1,{read:function(){if(i)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var t=r(e,i);return n.push(t),function(){n=n.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(i=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){i=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var a=function(){var r=t;t=[],r.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}});return a.options=(0,t5.Cl)({async:!0,ssr:!1},e),a}(),ri=function(){},ra=o.forwardRef(function(e,t){var r,n,i,a,s=o.useRef(null),l=o.useState({onScrollCapture:ri,onWheelCapture:ri,onTouchMoveCapture:ri}),u=l[0],c=l[1],d=e.forwardProps,f=e.children,h=e.className,p=e.removeScrollBar,m=e.enabled,v=e.shards,y=e.sideCar,g=e.noRelative,b=e.noIsolation,w=e.inert,x=e.allowPinchZoom,_=e.as,k=e.gapMode,E=(0,t5.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=(r=[s,t],n=function(e){return r.forEach(function(t){return t7(t,e)})},(i=(0,o.useState)(function(){return{value:null,callback:n,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=n,a=i.facade,re(function(){var e=rt.get(a);if(e){var t=new Set(e),n=new Set(r),i=a.current;t.forEach(function(e){n.has(e)||t7(e,null)}
1),n.forEach(function(e){t.has(e)||t7(e,i)})}rt.set(a,r)},[r]),a),S=(0,t5.Cl)((0,t5.Cl)({},E),u);return o.createElement(o.Fragment,null,m&&o.createElement(y,{sideCar:rn,removeScrollBar:p,shards:v,noRelative:g,noIsolation:b,inert:w,setCallbacks:c,allowPinchZoom:!!x,lockRef:s,gapMode:k}),d?o.cloneElement(o.Children.only(f),(0,t5.Cl)((0,t5.Cl)({},S),{ref:A})):o.createElement(void 0===_?"div":_,(0,t5.Cl)({},S,{className:h,ref:A}),f))});ra.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},ra.classNames={fullWidth:t8,zeroRight:t6};var ro=function(e){var t=e.sideCar,r=(0,t5.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return o.createElement(n,(0,t5.Cl)({},r))};ro.isSideCarExport=!0;var rs=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a||r.nc;return t&&e.setAttribute("nonce",t),e}())){var i,o;(i=t).styleSheet?i.styleSheet.cssText=n:i.appendChild(document.createTextNode(n)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},rl=function(){var e=rs();return function(t,r){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ru=function(){var e=rl();return function(t){return e(t.styles,t.dynamic),null}},rc={left:0,top:0,right:0,gap:0},rd=function(e){return parseInt(e||"",10)||0},rf=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[rd(r),rd(n),rd(i)]},rh=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return rc;var t=rf(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},rp=ru(),rm="data-scroll-locked",rv=function(e,t,r,n){var i=e.left,a=e.top,o=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(rm,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(o,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(t6," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(t8," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(t6," .").concat(t6," {\n right: 0 ").concat(n,";\n }\n \n .").concat(t8," .").concat(t8," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(rm,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},ry=function(){var e=parseInt(document.body.getAttribute(rm)||"0",10);return isFinite(e)?e:0},rg=function(){o.useEffect(function(){return document.body.setAttribute(rm,(ry()+1).toString()),function(){var e=ry()-1;e<=0?document.body.removeAttribute(rm):document.body.setAttribute(rm,e.toString())}},[])},rb=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=void 0===n?"margin":n;rg();var a=o.useMemo(function(){return rh(i)},[i]);return o.createElement(rp,{styles:rv(a,!t,i,r?"":"!important")})},rw=!1;if("undefined"!=typeof window)try{var rx=Object.defineProperty({},"passive",{get:function(){return rw=!0,!0}});window.addEventListener("test",rx,rx),window.removeEventListener("test",rx,rx)}catch(e){rw=!1}var r_=!!rw&&{passive:!1},rk=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},rE=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),rA(e,n)){var i=rS(e,n);if(i[1]>i[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},rA=function(e,t){return"v"===e?rk(t,"overflowY"):rk(t,"overflowX")},rS=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},rC=function(e,t,r,n,i){var a,o=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),s=o*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,h=0;
1do{if(!l)break;var p=rS(e,l),m=p[0],v=p[1]-p[2]-o*m;(m||v)&&rA(e,l)&&(f+=v,h+=m);var y=l.parentNode;l=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(i&&1>Math.abs(f)||!i&&s>f)?c=!0:!d&&(i&&1>Math.abs(h)||!i&&-s>h)&&(c=!0),c},rT=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rP=function(e){return[e.deltaX,e.deltaY]},rO=function(e){return e&&"current"in e?e.current:e},rj=0,rR=[];let rN=(rn.useMedium(function(e){var t=o.useRef([]),r=o.useRef([0,0]),n=o.useRef(),i=o.useState(rj++)[0],a=o.useState(ru)[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,t5.fX)([e.lockRef.current],(e.shards||[]).map(rO),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var l=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,a=rT(e),o=r.current,l="deltaX"in e?e.deltaX:o[0]-a[0],u="deltaY"in e?e.deltaY:o[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),h=f&&f.anchorNode;if(h&&(h===c||h.contains(c)))return!1;var p=rE(d,c);if(!p)return!0;if(p?i=d:(i="v"===d?"h":"v",p=rE(d,c)),!p)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=i),!i)return!0;var m=n.current||i;return rC(m,t,e,"h"===m?l:u,!0)},[]),u=o.useCallback(function(e){if(rR.length&&rR[rR.length-1]===a){var r="deltaY"in e?rP(e):rT(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta)[0]===r[0]&&n[1]===r[1]})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var i=(s.current.shards||[]).map(rO).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?l(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=o.useCallback(function(e,r,n,i){var a={name:e,delta:r,target:n,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=o.useCallback(function(e){r.current=rT(e),n.current=void 0},[]),f=o.useCallback(function(t){c(t.type,rP(t),t.target,l(t,e.lockRef.current))},[]),h=o.useCallback(function(t){c(t.type,rT(t),t.target,l(t,e.lockRef.current))},[]);o.useEffect(function(){return rR.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,r_),document.addEventListener("touchmove",u,r_),document.addEventListener("touchstart",d,r_),function(){rR=rR.filter(function(e){return e!==a}),document.removeEventListener("wheel",u,r_),document.removeEventListener("touchmove",u,r_),document.removeEventListener("touchstart",d,r_)}},[]);var p=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(a,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,p?o.createElement(rb,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}),ro);var rF=o.forwardRef(function(e,t){return o.createElement(ra,(0,t5.Cl)({},e,{ref:t,sideCar:rN}))});rF.classNames=ra.classNames;var rD=[" ","Enter","ArrowUp","ArrowDown"],rM=[" ","Enter"],rL="Select",[rI,rV,rB]=function(e){let t=e+"CollectionProvider",[r,n]=m(t),[i,a]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,n=o.useRef(null),a=o.useRef(new Map).current;return(0,p.jsx)(i,{scope:t,itemMap:a,collectionRef:n,children:r})};s.displayName=t;let l=e+"CollectionSlot",u=(0,g.TL)(l),c=o.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=y(t,a(l,r).collectionRef);return(0,p.jsx)(u,{ref:i,children:n})});c.displayName=l;let d=e+"CollectionItemSlot",f="data-radix-collection-item",h=(0,g.TL)(d),v=o.forwardRef((e,t)=>
1{let{scope:r,children:n,...i}=e,s=o.useRef(null),l=y(t,s),u=a(d,r);return o.useEffect(()=>(u.itemMap.set(s,{ref:s,...i}),()=>void u.itemMap.delete(s))),(0,p.jsx)(h,{[f]:"",ref:l,children:n})});return v.displayName=d,[{Provider:s,Slot:c,ItemSlot:v},function(t){let r=a(e+"CollectionConsumer",t);return o.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(f,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}(rL),[r$,rZ]=m(rL,[rB,tC]),rW=tC(),[rU,rz]=r$(rL),[rH,rq]=r$(rL),rK=e=>{let{__scopeSelect:t,children:r,open:n,defaultOpen:i,onOpenChange:a,value:s,defaultValue:l,onValueChange:u,dir:c,name:d,autoComplete:f,disabled:h,required:m,form:v}=e,y=rW(t),[g,b]=o.useState(null),[w,x]=o.useState(null),[k,E]=o.useState(!1),A=function(e){let t=o.useContext(_);return e||t||"ltr"}(c),[S,C]=tK({prop:n,defaultProp:null!=i&&i,onChange:a,caller:rL}),[T,P]=tK({prop:s,defaultProp:l,onChange:u,caller:rL}),O=o.useRef(null),j=!g||v||!!g.closest("form"),[R,N]=o.useState(new Set),F=Array.from(R).map(e=>e.props.value).join(";");return(0,p.jsx)(tO,{...y,children:(0,p.jsxs)(rU,{required:m,scope:t,trigger:g,onTriggerChange:b,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:k,onValueNodeHasChildrenChange:E,contentId:Y(),value:T,onValueChange:P,open:S,onOpenChange:C,dir:A,triggerPointerDownPosRef:O,disabled:h,children:[(0,p.jsx)(rI.Provider,{scope:t,children:(0,p.jsx)(rH,{scope:e.__scopeSelect,onNativeOptionAdd:o.useCallback(e=>{N(t=>new Set(t).add(e))},[]),onNativeOptionRemove:o.useCallback(e=>{N(t=>{let r=new Set(t);return r.delete(e),r})},[]),children:r})}),j?(0,p.jsxs)(nE,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:f,value:T,onChange:e=>P(e.target.value),disabled:h,form:v,children:[void 0===T?(0,p.jsx)("option",{value:""}):null,Array.from(R)]},F):null]})})};rK.displayName=rL;var rY="SelectTrigger",rG=o.forwardRef((e,t)=>{let{__scopeSelect:r,disabled:n=!1,...i}=e,a=rW(r),s=rz(rY,r),l=s.disabled||n,u=y(t,s.onTriggerChange),d=rV(r),f=o.useRef("touch"),[h,m,v]=nS(e=>{let t=d().filter(e=>!e.disabled),r=t.find(e=>e.value===s.value),n=nC(t,e,r);void 0!==n&&s.onValueChange(n.value)}),g=e=>{l||(s.onOpenChange(!0),v()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,p.jsx)(tR,{asChild:!0,...a,children:(0,p.jsx)(tH.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":nA(s.value)?"":void 0,...i,ref:u,onClick:c(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&g(e)}),onPointerDown:c(i.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())}),onKeyDown:c(i.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),(!t||" "!==e.key)&&rD.includes(e.key)&&(g(),e.preventDefault())})})})});rG.displayName=rY;var rX="SelectValue",rJ=o.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:i,children:a,placeholder:o="",...s}=e,l=rz(rX,r),{onValueNodeHasChildrenChange:u}=l,c=void 0!==a,d=y(t,l.onValueNodeChange);return H(()=>{u(c)},[u,c]),(0,p.jsx)(tH.span,{...s,ref:d,style:{pointerEvents:"none"},children:nA(l.value)?(0,p.jsx)(p.Fragment,{children:o}):a})});rJ.displayName=rX;var rQ=o.forwardRef((e,t)=>{let{__scopeSelect:r,children:n,...i}=e;return(0,p.jsx)(tH.span,{"aria-hidden":!0,...i,ref:t,children:n||"â¼"})});rQ.displayName="SelectIcon";var r0=e=>(0,p.jsx)(tz,{asChild:!0,...e});r0.displayName="SelectPortal";var r1="SelectContent",r2=o.forwardRef((e,t)=>{let r=rz(r1,e.__scopeSelect),[n,i]=o.useState();return(H(()=>{i(new DocumentFragment)},[]),r.open)?(0,p.jsx)(r5,{...e,ref:t}):n?l.createPortal((0,p.jsx)(r9,{scope:e.__scopeSelect,children:(0,p.jsx)(rI.Slot,{scope:e.__scopeSelect,children:(0,p.jsx)("div",{children:e.children})})}),n):null});r2.displayName=r1;var[r9,r4]=r$(r1),r3=(0,g.TL)("SelectContent.RemoveScroll"),r5=o.forwardRef((e,t)=>
1{let{__scopeSelect:r,position:n="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:s,side:l,sideOffset:u,align:d,alignOffset:f,arrowPadding:h,collisionBoundary:m,collisionPadding:v,sticky:g,hideWhenDetached:b,avoidCollisions:w,...x}=e,_=rz(r1,r),[k,E]=o.useState(null),[A,S]=o.useState(null),C=y(t,e=>E(e)),[T,P]=o.useState(null),[j,R]=o.useState(null),D=rV(r),[M,L]=o.useState(!1),I=o.useRef(!1);o.useEffect(()=>{if(k)return t3(k)},[k]),o.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!==(e=r[0])&&void 0!==e?e:F()),document.body.insertAdjacentElement("beforeend",null!==(t=r[1])&&void 0!==t?t:F()),N++,()=>{1===N&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),N--}},[]);let V=o.useCallback(e=>{let[t,...r]=D().map(e=>e.ref.current),[n]=r.slice(-1),i=document.activeElement;for(let r of e)if(r===i||(null==r||r.scrollIntoView({block:"nearest"}),r===t&&A&&(A.scrollTop=0),r===n&&A&&(A.scrollTop=A.scrollHeight),null==r||r.focus(),document.activeElement!==i))return},[D,A]),$=o.useCallback(()=>V([T,k]),[V,T,k]);o.useEffect(()=>{M&&$()},[M,$]);let{onOpenChange:Z,triggerPointerDownPosRef:W}=_;o.useEffect(()=>{if(k){let e={x:0,y:0},t=t=>{var r,n,i,a;e={x:Math.abs(Math.round(t.pageX)-(null!==(i=null===(r=W.current)||void 0===r?void 0:r.x)&&void 0!==i?i:0)),y:Math.abs(Math.round(t.pageY)-(null!==(a=null===(n=W.current)||void 0===n?void 0:n.y)&&void 0!==a?a:0))}},r=r=>{e.x<=10&&e.y<=10?r.preventDefault():k.contains(r.target)||Z(!1),document.removeEventListener("pointermove",t),W.current=null};return null!==W.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",r,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",r,{capture:!0})}}},[k,Z,W]),o.useEffect(()=>{let e=()=>Z(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[Z]);let[U,z]=nS(e=>{let t=D().filter(e=>!e.disabled),r=t.find(e=>e.ref.current===document.activeElement),n=nC(t,e,r);n&&setTimeout(()=>n.ref.current.focus())}),H=o.useCallback((e,t,r)=>{let n=!I.current&&!r;(void 0!==_.value&&_.value===t||n)&&(P(e),n&&(I.current=!0))},[_.value]),q=o.useCallback(()=>null==k?void 0:k.focus(),[k]),K=o.useCallback((e,t,r)=>{let n=!I.current&&!r;(void 0!==_.value&&_.value===t||n)&&R(e)},[_.value]),Y="popper"===n?r8:r6,G=Y===r8?{side:l,sideOffset:u,align:d,alignOffset:f,arrowPadding:h,collisionBoundary:m,collisionPadding:v,sticky:g,hideWhenDetached:b,avoidCollisions:w}:{};return(0,p.jsx)(r9,{scope:r,content:k,viewport:A,onViewportChange:S,itemRefCallback:H,selectedItem:T,onItemLeave:q,itemTextRefCallback:K,focusSelectedItem:$,selectedItemText:j,position:n,isPositioned:M,searchRef:U,children:(0,p.jsx)(rF,{as:r3,allowPinchZoom:!0,children:(0,p.jsx)(B,{asChild:!0,trapped:_.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:c(i,e=>{var t;null===(t=_.trigger)||void 0===t||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,p.jsx)(O,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:(0,p.jsx)(Y,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:e=>e.preventDefault(),...x,...G,onPlaced:()=>L(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:c(x.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=D().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let r=e.target,n=t.indexOf(r);t=t.slice(n+1)}setTimeout(()=>V(t)),e.preventDefault()}})})})})})})});r5.displayName="SelectContentImpl";var r6=o.forwardRef((e,t)=>{let{__scopeSelect:r,onPlaced:n,...i}=e,a=rz(r1,r),s=r4(r1,r),[l,c]=o.useState(null),[d,f]=o.useState(null),h=y(t,e=>f(e)),m=rV(r),v=o.useRef(!1),g=o.useRef(!0),{viewport:b,selectedItem:w,selectedItemText:x,focusSelectedItem:_}=s,k=o.useCallback(()=>
1{if(a.trigger&&a.valueNode&&l&&d&&b&&w&&x){let e=a.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),r=a.valueNode.getBoundingClientRect(),i=x.getBoundingClientRect();if("rtl"!==a.dir){let n=i.left-t.left,a=r.left-n,o=e.left-a,s=e.width+o,c=Math.max(s,t.width),d=u(a,[10,Math.max(10,window.innerWidth-10-c)]);l.style.minWidth=s+"px",l.style.left=d+"px"}else{let n=t.right-i.right,a=window.innerWidth-r.right-n,o=window.innerWidth-e.right-a,s=e.width+o,c=Math.max(s,t.width),d=u(a,[10,Math.max(10,window.innerWidth-10-c)]);l.style.minWidth=s+"px",l.style.right=d+"px"}let o=m(),s=window.innerHeight-20,c=b.scrollHeight,f=window.getComputedStyle(d),h=parseInt(f.borderTopWidth,10),p=parseInt(f.paddingTop,10),y=parseInt(f.borderBottomWidth,10),g=h+p+c+parseInt(f.paddingBottom,10)+y,_=Math.min(5*w.offsetHeight,g),k=window.getComputedStyle(b),E=parseInt(k.paddingTop,10),A=parseInt(k.paddingBottom,10),S=e.top+e.height/2-10,C=w.offsetHeight/2,T=h+p+(w.offsetTop+C);if(T<=S){let e=o.length>0&&w===o[o.length-1].ref.current;l.style.bottom="0px";let t=Math.max(s-S,C+(e?A:0)+(d.clientHeight-b.offsetTop-b.offsetHeight)+y);l.style.height=T+t+"px"}else{let e=o.length>0&&w===o[0].ref.current;l.style.top="0px";let t=Math.max(S,h+b.offsetTop+(e?E:0)+C);l.style.height=t+(g-T)+"px",b.scrollTop=T-S+b.offsetTop}l.style.margin="".concat(10,"px 0"),l.style.minHeight=_+"px",l.style.maxHeight=s+"px",null==n||n(),requestAnimationFrame(()=>v.current=!0)}},[m,a.trigger,a.valueNode,l,d,b,w,x,a.dir,n]);H(()=>k(),[k]);let[E,A]=o.useState();H(()=>{d&&A(window.getComputedStyle(d).zIndex)},[d]);let S=o.useCallback(e=>{e&&!0===g.current&&(k(),null==_||_(),g.current=!1)},[k,_]);return(0,p.jsx)(r7,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:v,onScrollButtonChange:S,children:(0,p.jsx)("div",{ref:c,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:(0,p.jsx)(tH.div,{...i,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});r6.displayName="SelectItemAlignedPosition";var r8=o.forwardRef((e,t)=>{let{__scopeSelect:r,align:n="start",collisionPadding:i=10,...a}=e,o=rW(r);return(0,p.jsx)(tM,{...o,...a,ref:t,align:n,collisionPadding:i,style:{boxSizing:"border-box",...a.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});r8.displayName="SelectPopperPosition";var[r7,ne]=r$(r1,{}),nt="SelectViewport",nr=o.forwardRef((e,t)=>{let{__scopeSelect:r,nonce:n,...i}=e,a=r4(nt,r),s=ne(nt,r),l=y(t,a.onViewportChange),u=o.useRef(0);return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:n}),(0,p.jsx)(rI.Slot,{scope:r,children:(0,p.jsx)(tH.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:c(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:r,shouldExpandOnScrollRef:n}=s;if((null==n?void 0:n.current)&&r){let e=Math.abs(u.current-t.scrollTop);if(e>0){let n=window.innerHeight-20,i=Math.max(parseFloat(r.style.minHeight),parseFloat(r.style.height));if(i<n){let a=i+e,o=Math.min(n,a),s=a-o;r.style.height=o+"px","0px"===r.style.bottom&&(t.scrollTop=s>0?s:0,r.style.justifyContent="flex-end")}}}u.current=t.scrollTop})})})]})});nr.displayName=nt;var nn="SelectGroup",[ni,na]=r$(nn),no=o.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=Y();return(0,p.jsx)(ni,{scope:r,id:i,children:(0,p.jsx)(tH.div,{role:"group","aria-labelledby":i,...n,ref:t})})});no.displayName=nn;var ns="SelectLabel",nl=o.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=na(ns,r);return(0,p.jsx)(tH.div,{id:i.id,...n,ref:t})});nl.displayName=ns;var nu="SelectItem",[nc,nd]=r$(nu),nf=o.forwardRef((e,t)=>
1{let{__scopeSelect:r,value:n,disabled:i=!1,textValue:a,...s}=e,l=rz(nu,r),u=r4(nu,r),d=l.value===n,[f,h]=o.useState(null!=a?a:""),[m,v]=o.useState(!1),g=y(t,e=>{var t;return null===(t=u.itemRefCallback)||void 0===t?void 0:t.call(u,e,n,i)}),b=Y(),w=o.useRef("touch"),x=()=>{i||(l.onValueChange(n),l.onOpenChange(!1))};if(""===n)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,p.jsx)(nc,{scope:r,value:n,disabled:i,textId:b,isSelected:d,onItemTextChange:o.useCallback(e=>{h(t=>{var r;return t||(null!==(r=null==e?void 0:e.textContent)&&void 0!==r?r:"").trim()})},[]),children:(0,p.jsx)(rI.ItemSlot,{scope:r,value:n,disabled:i,textValue:f,children:(0,p.jsx)(tH.div,{role:"option","aria-labelledby":b,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:g,onFocus:c(s.onFocus,()=>v(!0)),onBlur:c(s.onBlur,()=>v(!1)),onClick:c(s.onClick,()=>{"mouse"!==w.current&&x()}),onPointerUp:c(s.onPointerUp,()=>{"mouse"===w.current&&x()}),onPointerDown:c(s.onPointerDown,e=>{w.current=e.pointerType}),onPointerMove:c(s.onPointerMove,e=>{if(w.current=e.pointerType,i){var t;null===(t=u.onItemLeave)||void 0===t||t.call(u)}else"mouse"===w.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:c(s.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null===(t=u.onItemLeave)||void 0===t||t.call(u)}}),onKeyDown:c(s.onKeyDown,e=>{var t;((null===(t=u.searchRef)||void 0===t?void 0:t.current)===""||" "!==e.key)&&(rM.includes(e.key)&&x()," "===e.key&&e.preventDefault())})})})})});nf.displayName=nu;var nh="SelectItemText",np=o.forwardRef((e,t)=>{let{__scopeSelect:r,className:n,style:i,...a}
1=e,s=rz(nh,r),u=r4(nh,r),c=nd(nh,r),d=rq(nh,r),[f,h]=o.useState(null),m=y(t,e=>h(e),c.onItemTextChange,e=>{var t;return null===(t=u.itemTextRefCallback)||void 0===t?void 0:t.call(u,e,c.value,c.disabled)}),v=null==f?void 0:f.textContent,g=o.useMemo(()=>(0,p.jsx)("option",{value:c.value,disabled:c.disabled,children:v},c.value),[c.disabled,c.value,v]),{onNativeOptionAdd:b,onNativeOptionRemove:w}=d;return H(()=>(b(g),()=>w(g)),[b,w,g]),(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(tH.span,{id:c.textId,...a,ref:m}),c.isSelected&&s.valueNode&&!s.valueNodeHasChildren?l.createPortal(a.children,s.valueNode):null]})});np.displayName=nh;var nm="SelectItemIndicator",nv=o.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return nd(nm,r).isSelected?(0,p.jsx)(tH.span,{"aria-hidden":!0,...n,ref:t}):null});nv.displayName=nm;var ny="SelectScrollUpButton",ng=o.forwardRef((e,t)=>{let r=r4(ny,e.__scopeSelect),n=ne(ny,e.__scopeSelect),[i,a]=o.useState(!1),s=y(t,n.onScrollButtonChange);return H(()=>{if(r.viewport&&r.isPositioned){let e=function(){a(t.scrollTop>0)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),i?(0,p.jsx)(nx,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});ng.displayName=ny;var nb="SelectScrollDownButton",nw=o.forwardRef((e,t)=>{let r=r4(nb,e.__scopeSelect),n=ne(nb,e.__scopeSelect),[i,a]=o.useState(!1),s=y(t,n.onScrollButtonChange);return H(()=>{if(r.viewport&&r.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;a(Math.ceil(t.scrollTop)<e)},t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),i?(0,p.jsx)(nx,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});nw.displayName=nb;var nx=o.forwardRef((e,t)=>{let{__scopeSelect:r,onAutoScroll:n,...i}=e,a=r4("SelectScrollButton",r),s=o.useRef(null),l=rV(r),u=o.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return o.useEffect(()=>()=>u(),[u]),H(()=>{var e;let t=l().find(e=>e.ref.current===document.activeElement);null==t||null===(e=t.ref.current)||void 0===e||e.scrollIntoView({block:"nearest"})},[l]),(0,p.jsx)(tH.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:c(i.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(n,50))}),onPointerMove:c(i.onPointerMove,()=>{var e;null===(e=a.onItemLeave)||void 0===e||e.call(a),null===s.current&&(s.current=window.setInterval(n,50))}),onPointerLeave:c(i.onPointerLeave,()=>{u()})})}),n_=o.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e;return(0,p.jsx)(tH.div,{"aria-hidden":!0,...n,ref:t})});n_.displayName="SelectSeparator";var nk="SelectArrow";o.forwardRef((e,t)=>{let{__scopeSelect:r,...n}=e,i=rW(r),a=rz(nk,r),o=r4(nk,r);return a.open&&"popper"===o.position?(0,p.jsx)(tV,{...i,...n,ref:t}):null}).displayName=nk;var nE=o.forwardRef((e,t)=>{let{__scopeSelect:r,value:n,...i}=e,a=o.useRef(null),s=y(t,a),l=(0,tY.Z)(n);return o.useEffect(()=>{let e=a.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(l!==n&&t){let r=new Event("change",{bubbles:!0});t.call(e,n),e.dispatchEvent(r)}},[l,n]),(0,p.jsx)(tH.select,{...i,style:{...tX,...i.style},ref:s,defaultValue:n})});function nA(e){return""===e||void 0===e}function nS(e){let t=(0,C.c)(e),r=o.useRef(""),n=o.useRef(0),i=o.useCallback(e=>{let i=r.current+e;t(i),function e(t){r.current=t,window.clearTimeout(n.current),""!==t&&(n.current=window.setTimeout(()=>e(""),1e3))}(i)},[t]),a=o.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,i,a]}function nC(e,t,r){var n,i;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1,s=(n=e,i=Math.max(o,0),n.map((e,t)=>n[(i+t)%n.length]));1===a.length&&(s=s.filter(e=>e!==r));let l=s.find(e=>e.textValue.toLowerCase().startsWith(a.toLowerCase()));return l!==r?l:void 0}nE.displayName="SelectBubbleInput";var nT=rK,nP=rG,nO=rJ,nj=rQ,nR=r0,nN=r2,nF=nr,nD=no,nM=nl,nL=nf,nI=np,nV=nv,nB=ng,n$=nw,nZ=n_},20570:(e,t,r)=>{var n=r(24376),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var i=o.call(e);return n&&(t?e[s]=r:delete e[s]),i}},23546:e=>{function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(Error("Failed to load "+this.src),e)}}
1e.exports=function(e,r,n){var i=document.head||document.getElementsByTagName("head")[0],a=document.createElement("script");"function"==typeof r&&(n=r,r={}),n=n||function(){},a.type=(r=r||{}).type||"text/javascript",a.charset=r.charset||"utf8",a.async=!("async"in r)||!!r.async,a.src=e,r.attrs&&function(e,t){for(var r in t)e.setAttribute(r,t[r])}(a,r.attrs),r.text&&(a.text=""+r.text),("onload"in a?t:function(e,t){e.onreadystatechange=function(){("complete"==this.readyState||"loaded"==this.readyState)&&(this.onreadystatechange=null,t(null,e))}})(a,n),a.onload||t(a,n),i.appendChild(a)}},24376:(e,t,r)=>{e.exports=r(82500).Symbol},24724:(e,t,r)=>{var n;function i(e){function r(){if(r.enabled){var e=+new Date;r.diff=e-(n||e),r.prev=n,r.curr=e,n=e;for(var i=Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];i[0]=t.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var o=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(e,n){if("%%"===e)return e;o++;var a=t.formatters[n];if("function"==typeof a){var s=i[o];e=a.call(r,s),i.splice(o,1),o--}return e}),t.formatArgs.call(r,i),(r.log||t.log||console.log.bind(console)).apply(r,i)}}return r.namespace=e,r.enabled=t.enabled(e),r.useColors=t.useColors(),r.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r)|0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(r),r}(t=e.exports=i.debug=i.default=i).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,i=0;i<n;i++)r[i]&&("-"===(e=r[i].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.substr(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=r(66853),t.names=[],t.skips=[],t.formatters={}},25711:(e,t)=>
1{t.TF=function(e){return e.replace(/[^\u0000-\u007e]/g,function(e){return n[e]||e})};for(var r=[{base:" ",chars:"\xa0"},{base:"0",chars:"ß"},{base:"A",chars:"â¶ï¼¡\xc0\xc1\xc2ẦẤẪẨ\xc3ÄÄáº°áº®áº´áº²È¦Ç \xc4ÇẢ\xc5ǺÇÈÈẠẬẶá¸ÄȺⱯ"},{base:"AA",chars:"ê²"},{base:"AE",chars:"\xc6ǼǢ"},{base:"AO",chars:"ê´"},{base:"AU",chars:"ê¶"},{base:"AV",chars:"ê¸êº"},{base:"AY",chars:"ê¼"},{base:"B",chars:"â·ï¼¢á¸á¸á¸ÉÆ"},{base:"C",chars:"â¸ï¼£ê¾á¸ÄCÄÄÄ\xc7ÆÈ»"},{base:"D",chars:"â¹ï¼¤á¸Äá¸á¸á¸á¸ÄÆÆá´
ê¹"},{base:"Dh",chars:"\xd0"},{base:"DZ",chars:"DZÇ"},{base:"Dz",chars:"DzÇ
"},{base:"E",chars:"Éâºï¼¥\xc8\xc9\xcaá»áº¾á»á»áº¼Äá¸á¸ÄÄ\xcbẺÄÈÈẸá»È¨á¸Äá¸á¸ÆÆá´"},{base:"F",chars:"ê¼â»ï¼¦á¸Æê»"},{base:"G",chars:"â¼ï¼§Ç´ÄḠÄÄ Ç¦Ä¢Ç¤Æê ê½ê¾É¢"},{base:"H",chars:"â½ï¼¨Ä¤á¸¢á¸¦ÈḤḨḪĦⱧⱵê"},{base:"I",chars:"â¾ï¼©\xcc\xcd\xceĨĪĬİ\xcfḮá»ÇÈÈá»Ä®á¸¬Æ"},{base:"J",chars:"â¿ï¼ªÄ´ÉÈ·"},{base:"K",chars:"âKḰǨḲĶḴÆâ±©êêêê¢"},{base:"L",chars:"âLĿĹĽḶḸĻḼḺÅȽⱢⱠêêê"},{base:"LJ",chars:"Ç"},{base:"Lj",chars:"Ç"},{base:"M",chars:"âï¼á¸¾á¹á¹â±®ÆÏ»"},{base:"N",chars:"ê¤È âNǸÅ\xd1á¹Åá¹Å
á¹á¹Æêá´"},{base:"NJ",chars:"Ç"},{base:"Nj",chars:"Ç"},{base:"O",chars:"âO\xd2\xd3\xd4á»á»á»á»\xd5á¹È¬á¹Åá¹á¹ÅȮȰ\xd6Ȫá»ÅÇÈÈÆ á»á»á» á»á»¢á»á»ÇªÇ¬\xd8Ç¾ÆÆêê"},{base:"OE",chars:"Å"},{base:"OI",chars:"Æ¢"},{base:"OO",chars:"ê"},{base:"OU",chars:"È¢"},{base:"P",chars:"â
ï¼°á¹á¹Æ¤â±£êêê"},{base:"Q",chars:"âï¼±êêÉ"},{base:"R",chars:"âï¼²Åá¹ÅÈÈá¹á¹Åá¹ÉⱤêê¦ê"},{base:"S",chars:"âï¼³áºÅṤÅṠŠṦṢṨÈÅâ±¾ê¨ê"},{base:"T",chars:"âTṪŤṬÈŢṰṮŦƬƮȾê"},{base:"Th",chars:"\xde"},{base:"TZ",chars:"ê¨"},{base:"U",chars:"âï¼µ\xd9\xda\xdbŨṸŪṺŬ\xdcÇÇÇÇỦŮŰÇÈÈÆ¯á»ªá»¨á»®á»¬á»°á»¤á¹²Å²á¹¶á¹´É"},{base:"V",chars:"âVṼṾƲêÉ
"},{base:"VY",chars:"ê "},{base:"W",chars:"âï¼·áºáºÅ´áºáºáºâ±²"},{base:"X",chars:"âXáºáº"},{base:"Y",chars:"âYỲ\xddŶỸȲáºÅ¸á»¶á»´Æ³ÉỾ"},{base:"Z",chars:"âZŹáºÅ»Å½áºáºÆµÈ¤â±¿â±«ê¢"},{base:"a",chars:"âï½áº\xe0\xe1\xe2ầấẫẩ\xe3ÄÄằắẵẳȧǡ\xe4Çả\xe5Ç»ÇÈÈạáºáº·á¸Ä
â±¥ÉÉ"},{base:"aa",chars:"ê³"},{base:"ae",chars:"\xe6ǽǣ"},{base:"ao",chars:"êµ"},{base:"au",chars:"ê·"},{base:"av",chars:"ê¹ê»"},{base:"ay",chars:"ê½"},{base:"b",chars:"âï½á¸á¸
á¸ÆÆÉÆ"},{base:"c",chars:"ï½âÄÄÄÄ\xe7á¸ÆÈ¼ê¿â"},{base:"d",chars:"âï½á¸Äá¸á¸á¸á¸ÄÆÉÉÆá§Ôêª"},{base:"dh",chars:"\xf0"},{base:"dz",chars:"dzÇ"},{base:"e",chars:"âï½
\xe8\xe9\xeaá»áº¿á»
á»áº½Äá¸á¸ÄÄ\xebẻÄÈ
Èẹá»È©á¸Äá¸á¸ÉÇ"},{base:"f",chars:"âï½á¸Æ"},{base:"ff",chars:"ï¬"},{base:"fi",chars:"ï¬"},{base:"fl",chars:"ï¬"},{base:"ffi",chars:"ï¬"},{base:"ffl",chars:"ï¬"},{base:"g",chars:"âï½ÇµÄḡÄÄ¡Ç§Ä£Ç¥É ê¡ê¿áµ¹"},{base:"h",chars:"âï½Ä¥á¸£á¸§ÈḥḩḫáºÄ§â±¨â±¶É¥"},{base:"hv",chars:"Æ"},{base:"i",chars:"âï½\xec\xed\xeeĩīÄ\xefḯá»ÇÈÈá»Ä¯á¸É¨Ä±"},{base:"j",chars:"âï½ÄµÇ°É"},{base:"k",chars:"âï½á¸±Ç©á¸³Ä·á¸µÆâ±ªêêê
ê£"},{base:"l",chars:"âï½ÅÄºÄ¾á¸·á¸¹Ä¼á¸½á¸»Å¿ÅÆÉ«â±¡êêêÉ"},{base:"lj",chars:"Ç"},{base:"m",chars:"âï½á¸¿á¹á¹É±É¯"},{base:"n",chars:"âï½Ç¹Å\xf1á¹
Åá¹Åá¹á¹ÆÉ²Åêê¥Ð»Ô"},{base:"nj",chars:"Ç"},{base:"o",chars:"âï½\xf2\xf3\xf4á»á»á»á»\xf5á¹Èá¹Åá¹á¹Åȯȱ\xf6È«á»ÅÇÈÈÆ¡á»á»á»¡á»á»£á»á»Ç«Ç\xf8Ç¿êêɵÉá´"},{base:"oe",chars:"Å"},{base:"oi",chars:"Æ£"},{base:"oo",chars:"ê"},{base:"ou",chars:"È£"},{base:"p",chars:"âï½á¹á¹Æ¥áµ½êêêÏ"},{base:"q",chars:"â ï½Éêê"},{base:"r",chars:"â¡ï½Åá¹ÅÈÈá¹á¹Åá¹Éɽêê§ê"},{base:"s",chars:"â¢ï½Åá¹¥ÅṡšṧṣṩÈÅÈ¿ê©ê
áºÊ"},{base:"ss",chars:"\xdf"},{base:"t",chars:"â£ï½á¹«áºÅ¥á¹ÈţṱṯŧÆÊⱦê"},{base:"th",chars:"\xfe"},{base:"tz",chars:"ê©"},{base:"u",chars:"â¤ï½\xf9\xfa\xfbũṹūṻÅ\xfcÇÇÇÇủůűÇÈÈÆ°á»«á»©á»¯á»á»±á»¥á¹³Å³á¹·á¹µÊ"},{base:"v",chars:"â¥ï½á¹½á¹¿ÊêÊ"},{base:"vy",chars:"ê¡"},{base:"w",chars:"â¦ï½áºáºÅµáºáº
áºáºâ±³"},{base:"x",chars:"â§ï½áºáº"},{base:"y",chars:"â¨ï½á»³\xfdŷỹȳáº\xffá»·áºá»µÆ´Éỿ"},{base:"z",chars:"â©ï½ÅºáºÅ¼Å¾áºáºÆ¶È¥Éⱬê£"}],n={},i=0;i<r.length;i+=1)for(var a=r[i].chars,o=0;o<a.length;o+=1)n[a[o]]=r[i].base},36713:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},36815:(e,t,r)=>{var n=r(4217),i=r(67460),a=r(70771),o=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return o;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?c(e.slice(2),r?2:8):s.test(e)?o:+e}},38637:(e,t,r)=>{e.exports=r(79399)()},39033:(e,t,r)=>{"use strict";r.d(t,{c:()=>i});var n=r(12115);function i(e){let t=n.useRef(e);return n.useEffect(()=>{t.current=e}),n.useMemo(()=>(...e)=>t.current?.(...e),[])}},39249:(e,t,r)=>{"use strict";r.d(t,{C6:()=>i,Cl:()=>a,Ju:()=>u,Tt:()=>o,YH:()=>l,fX:()=>d,sH:()=>s,zs:()=>c});
1var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return(a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function s(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{l(n.next(e))}catch(e){a(e)}}function s(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}l((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){var u=[s,l];if(r)throw TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function u(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,a=r.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return o}function d(e,t,r){if(r||2==arguments.length)for(var n,i=0,a=t.length;i<a;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;Object.create,"function"==typeof SuppressedError&&SuppressedError},42475:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let n={direction:"forward",speed:2,startDelay:1e3,active:!0,breakpoints:{},playOnInit:!0,stopOnFocusIn:!0,stopOnInteraction:!0,stopOnMouseEnter:!1,rootNode:null};function i(e={}){let t,r,a,o,s,l=0,u=!1,c=!1;function d(){if(a||u)return;r.emit("autoScroll:play");let e=r.internalEngine(),{ownerWindow:n}=e;l=n.setTimeout(()=>{e.scrollBody=function(e){let{location:n,previousLocation:i,offsetLocation:a,target:o,scrollTarget:s,index:l,indexPrevious:u,limit:{reachedMin:c,reachedMax:d,constrain:h},options:{loop:p}}=e,m="forward"===t.direction?-1:1,v=()=>_,y=0,g=0,b=n.get(),w=0,x=!1,_={direction:()=>g,duration:()=>-1,velocity:()=>y,settled:()=>x,seek:function(){let e=0;i.set(n),y=m*t.speed,b+=y,n.add(y),o.set(n),g=Math.sign(b-w),w=b;let v=s.byDistance(0,!1).index;l.get()!==v&&(u.set(l.get()),l.set(v),r.emit("select"));let k="forward"===t.direction?c(a.get()):d(a.get());if(!p&&k){x=!0;let e=h(n.get());n.set(e),o.set(n),f()}return _},useBaseFriction:v,useBaseDuration:v,useFriction:v,useDuration:v};return _}(e),e.animation.start()},o),u=!0}function f(){if(a||!u)return;r.emit("autoScroll:stop");let e=r.internalEngine(),{ownerWindow:t}=e;e.scrollBody=s,t.clearTimeout(l),l=0,u=!1}function h(){c||f()}function p(){c||g()}function m(){c=!0,f()}function v(){c=!1,d()}function y(){r.off("settle",y),d()}function g(){r.on("settle",y)}return{name:"autoScroll",options:e,init:function(l,u){r=l;let{mergeOptions:c,optionsAtMedia:y}=u,g=c(n,i.globalOptions);if(t=y(c(g,e)),r.scrollSnapList().length<=1)return;o=t.startDelay,a=!1,s=r.internalEngine().scrollBody;let{eventStore:b}=r.internalEngine(),w=!!r.internalEngine().options.watchDrag,x=function(e,t){let r=e.rootNode();return t&&t(r)||r}(r,t.rootNode);
1w&&r.on("pointerDown",h),w&&!t.stopOnInteraction&&r.on("pointerUp",p),t.stopOnMouseEnter&&b.add(x,"mouseenter",m),t.stopOnMouseEnter&&!t.stopOnInteraction&&b.add(x,"mouseleave",v),t.stopOnFocusIn&&r.on("slideFocusStart",f),t.stopOnFocusIn&&!t.stopOnInteraction&&b.add(r.containerNode(),"focusout",d),t.playOnInit&&d()},destroy:function(){r.off("pointerDown",h).off("pointerUp",p).off("slideFocusStart",f).off("settle",y),f(),a=!0,u=!1},play:function(e){void 0!==e&&(o=e),d()},stop:function(){u&&f()},reset:function(){u&&(f(),g())},isPlaying:function(){return u}}}i.globalOptions=void 0},43304:(e,t,r)=>{"use strict";r.d(t,{A:()=>Q});var n=r(12115);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function o(){o=function(){return e};var e={},t=Object.prototype,r=t.hasOwnProperty,n=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function c(e,t,r,i){var a,o,s,l,u=Object.create((t&&t.prototype instanceof h?t:h).prototype);return n(u,"_invoke",{value:(a=e,o=r,s=new E(i||[]),l="suspendedStart",function(e,t){if("executing"===l)throw Error("Generator is already running");if("completed"===l){if("throw"===e)throw t;return S()}for(s.method=e,s.arg=t;;){var r=s.delegate;if(r){var n=function e(t,r){var n=r.method,i=t.iterator[n];if(void 0===i)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=void 0,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=TypeError("The iterator does not provide a '"+n+"' method")),f;var a=d(i,t.iterator,r.arg);if("throw"===a.type)return r.method="throw",r.arg=a.arg,r.delegate=null,f;var o=a.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):o:(r.method="throw",r.arg=TypeError("iterator result is not an object"),r.delegate=null,f)}(r,s);if(n){if(n===f)continue;return n}}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===l)throw l="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);l="executing";var i=d(a,o,s);if("normal"===i.type){if(l=s.done?"completed":"suspendedYield",i.arg===f)continue;return{value:i.arg,done:s.done}}"throw"===i.type&&(l="completed",s.method="throw",s.arg=i.arg)}})}),u}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var f={};function h(){}function p(){}function m(){}var v={};u(v,a,function(){return this});var y=Object.getPrototypeOf,g=y&&y(y(A([])));g&&g!==t&&r.call(g,a)&&(v=g);var b=m.prototype=h.prototype=Object.create(v);function w(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function x(e,t){var i;n(this,"_invoke",{value:function(n,a){function o(){return new t(function(i,o){!function n(i,a,o,s){var l=d(e[i],e,a);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==typeof c&&r.call(c,"__await")?t.resolve(c.__await).then(function(e){n("next",e,o,s)},function(e){n("throw",e,o,s)}):t.resolve(c).then(function(e){u.value=e,o(u)},function(e){return n("throw",e,o,s)})}s(l.arg)}(n,a,i,o)})}return i=i?i.then(o,o):o()}})}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);
vendor: 12,880 bytes, line 1
1if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=m,n(b,"constructor",{value:m,configurable:!0}),n(m,"constructor",{value:p,configurable:!0}),p.displayName=u(m,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,u(e,l,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(x.prototype),u(x.prototype,s,function(){return this}),e.AsyncIterator=x,e.async=function(t,r,n,i,a){void 0===a&&(a=Promise);var o=new x(c(t,r,n,i),a);return e.isGeneratorFunction(r)?o:o.next().then(function(e){return e.done?e.value:o.next()})},w(b),u(b,l,"Generator"),u(b,a,function(){return this}),u(b,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=A,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;k(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function s(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(e){r(e);return}s.done?t(l):Promise.resolve(l).then(n,i)}function l(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(e){s(a,n,i,o,l,"next",e)}function l(e){s(a,n,i,o,l,"throw",e)}o(void 0)})}}function u(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,w(n.key),n)}}function d(e,t,r){return t&&c(e.prototype,t),r&&c(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t,r){return(t=w(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function v(e,t,r){return(v=m()?Reflect.construct.bind():function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&p(i,r.prototype),i}).apply(null,arguments)}function y(e){var t="function"==typeof Map?new Map:void 0;return(y=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return v(e,arguments,h(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),p(r,e)})(e)}function g(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function w(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var x=void 0!==r.g&&"[object global]"===({}).toString.call(r.g),_="undefined"!=typeof Bun,k="undefined"!=typeof Deno,E=x||_||k;function A(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function S(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(e)}function C(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(e)}function T(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.id,r=e.url,n=t||r;if(!n)throw Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(!isNaN(parseFloat(n))&&isFinite(n)&&Math.floor(n)==n)return"https://vimeo.com/".concat(n);if(S(n))return n.replace("http:","https:");if(t)throw TypeError("â".concat(t,"â is not a valid video id."));throw TypeError("â".concat(n,"â is not a vimeo.com url."))}var P=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",a="string"==typeof t?[t]:t;return a.forEach(function(t){e[n](t,r)}),{cancel:function(){return a.forEach(function(t){return e[i](t,r)})}}};function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;if(!e||!t||"function"!=typeof t.querySelectorAll)return null;for(var r=t.querySelectorAll("iframe"),n=0;n<r.length;n++)if(r[n]&&r[n].contentWindow===e)return r[n];return null}var j=void 0!==Array.prototype.indexOf,R="undefined"!=typeof window&&void 0!==window.postMessage;if(!E&&(!j||!R))throw Error("Sorry, the Vimeo Player API is not available in this browser.");var N="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,r=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),n=function(e,t,n){r?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:n}):e[t]=n};e.WeakMap=function(){function e(){if(void 0===this)throw TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id","_WeakMap_"+a()+"."+a()),arguments.length>0)throw TypeError("WeakMap iterable is not supported")}function r(e,r){if(!i(e)||!t.call(e,"_id"))throw TypeError(r+" method called on incompatible receiver "+typeof e)}function a(){return Math.random().toString().substring(2)}return n(e.prototype,"delete",function(e){if(r(this,"delete"),!i(e))return!1;var t=e[this._id];return!!t&&t[0]===e&&(delete e[this._id],!0)}),n(e.prototype,"get",function(e){if(r(this,"get"),i(e)){var t=e[this._id];if(t&&t[0]===e)return t[1]}}),n(e.prototype,"has",function(e){if(r(this,"has"),!i(e))return!1;var t=e[this._id];return!!t&&t[0]===e}),n(e.prototype,"set",function(e,t){if(r(this,"set"),!i(e))throw TypeError("Invalid value used as weak map key");var a=e[this._id];return a&&a[0]===e?a[1]=t:n(e,this._id,[e,t]),this}),n(e,"_polyfill",!0),e}()}function i(e){return Object(e)===e}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:N);var F=function(e,t){return e(t={exports:{}},t.exports),t.exports}(function(e){var t;N[t="Promise"]=N[t]||function(){var e,t,r,n=Object.prototype.toString,i="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,r,n){return Object.defineProperty(e,t,{value:r,writable:!0,configurable:!1!==n})}}catch(t){e=function(e,t,r){return e[t]=r,e}}function a(e,n){r.add(e,n),t||(t=i(r.drain))}function o(e){var t,r=typeof e;return null!=e&&("object"==r||"function"==r)&&(t=e.then),"function"==typeof t&&t}function s(){for(var e=0;e<this.chain.length;e++)(function(e,t,r){var n,i;try{!1===t?r.reject(e.msg):(n=!0===t?e.msg:t.call(void 0,e.msg))===r.promise?r.reject(TypeError("Promise-chain cycle")):(i=o(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(e){r.reject(e)}})(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e){var t,r=this;if(!r.triggered){r.triggered=!0,r.def&&(r=r.def);try{(t=o(e))?a(function(){var n=new d(r);try{t.call(e,function(){l.apply(n,arguments)},function(){u.apply(n,arguments)})}catch(e){u.call(n,e)}}):(r.msg=e,r.state=1,r.chain.length>0&&a(s,r))}catch(e){u.call(new d(r),e)}}}function u(e){var t=this;!t.triggered&&(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&a(s,t))}function c(e,t,r,n){for(var i=0;i<t.length;i++)!function(i){e.resolve(t[i]).then(function(e){r(i,e)},n)}(i)}function d(e){this.def=e,this.triggered=!1}function f(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function h(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new f(this);this.then=function(e,r){var n={success:"function"!=typeof e||e,failure:"function"==typeof r&&r};return n.promise=new this.constructor(function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");n.resolve=e,n.reject=t}),t.chain.push(n),0!==t.state&&a(s,t),n.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,function(e){l.call(t,e)},function(e){u.call(t,e)})}catch(e){u.call(t,e)}}r=function(){var e,r,n;function i(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,a){n=new i(t,a),r?r.next=n:e=n,r=n,n=void 0},drain:function(){var n=e;for(e=r=t=void 0;n;)n.fn.call(n.self),n=n.next}}}();var p=e({},"constructor",h,!1);return h.prototype=p,e(p,"__NPO__",0,!1),e(h,"resolve",function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");t(e)})}),e(h,"reject",function(e){return new this(function(t,r){if("function"!=typeof t||"function"!=typeof r)throw TypeError("Not a function");r(e)})}),e(h,"all",function(e){var t=this;return"[object Array]"!=n.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");var i=e.length,a=Array(i),o=0;c(t,e,function(e,t){a[e]=t,++o===i&&r(a)},n)})}),e(h,"race",function(e){var t=this;return"[object Array]"!=n.call(e)?t.reject(TypeError("Not an array")):new t(function(r,n){if("function"!=typeof r||"function"!=typeof n)throw TypeError("Not a function");c(t,e,function(e,t){r(t)},n)})}),h}(),e.exports&&(e.exports=N[t])}),D=new WeakMap;function M(e,t,r){var n=D.get(e.element)||{};t in n||(n[t]=[]),n[t].push(r),D.set(e.element,n)}function L(e,t){return(D.get(e.element)||{})[t]||[]}function I(e,t,r){var n=D.get(e.element)||{};if(!n[t])return!0;
1if(!r)return n[t]=[],D.set(e.element,n),!0;var i=n[t].indexOf(r);return -1!==i&&n[t].splice(i,1),D.set(e.element,n),n[t]&&0===n[t].length}function V(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function B(e,t,r){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var n={method:t};void 0!==r&&(n.value=r);var i=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));i>=8&&i<10&&(n=JSON.stringify(n)),e.element.contentWindow.postMessage(n,e.origin)}}var $=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","initial_quality","interactive_params","keyboard","loop","maxheight","max_quality","maxwidth","min_quality","muted","play_button_position","playsinline","portrait","preload","progress_bar","quality","quality_selector","responsive","skipping_forward","speed","start_time","texttrack","thumbnail_id","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function Z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $.reduce(function(t,r){var n=e.getAttribute("data-vimeo-".concat(r));return(n||""===n)&&(t[r]=""===n?1:n),t},t)}function W(e,t){var r=e.html;if(!t)throw TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=r,t.appendChild(n.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return new Promise(function(n,i){if(!S(e))throw TypeError("â".concat(e,"â is not a vimeo.com url."));var a=function(e){for(var t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),r=(t&&t[1]||"").replace("player.",""),n=0,i=[".videoji.hk",".vimeo.work",".videoji.cn"];n<i.length;n++){var a=i[n];if(r.endsWith(a))return r}return"vimeo.com"}(e),o="https://".concat(a,"/api/oembed.json?url=").concat(encodeURIComponent(e));for(var s in t)t.hasOwnProperty(s)&&(o+="&".concat(s,"=").concat(encodeURIComponent(t[s])));var l="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;l.open("GET",o,!0),l.onload=function(){if(404===l.status){i(Error("â".concat(e,"â was not found.")));return}if(403===l.status){i(Error("â".concat(e,"â is not embeddable.")));return}try{var t=JSON.parse(l.responseText);if(403===t.domain_status_code){W(t,r),i(Error("â".concat(e,"â is not embeddable.")));return}n(t)}catch(e){i(e)}},l.onerror=function(){var e=l.status?" (".concat(l.status,")"):"";i(Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},l.send()})}var z={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},H=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");c.prototype=Object.create(e&&e.prototype,{constructor:{value:c,writable:!0,configurable:!0}}),Object.defineProperty(c,"prototype",{writable:!1}),e&&p(c,e);var t,r,n,i,s=(t=m(),function(){var e,r=h(c);e=t?Reflect.construct(r,arguments,h(this).constructor):r.apply(this,arguments);if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");return g(this)});function c(e,t){var r,n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},d=arguments.length>3?arguments[3]:void 0;return u(this,c),f(g(n=s.call(this)),"logger",void 0),f(g(n),"speedAdjustment",0),f(g(n),"adjustSpeed",(r=l(o().mark(function e(t,r){var i;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n.speedAdjustment!==r){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.getPlaybackRate();case 4:return e.t0=e.sent,e.t1=n.speedAdjustment,e.t2=e.t0-e.t1,e.t3=r,i=e.t2+e.t3,n.log("New playbackRate: ".concat(i)),e.next=12,t.setPlaybackRate(i);case 12:n.speedAdjustment=r;case 13:case"end":return e.stop()}},e)})),function(e,t){return r.apply(this,arguments)}
1)),n.logger=d,n.init(t,e,a(a({},z),i)),n}return d(c,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(r=l(o().mark(function e(t,r,n){var i,a,s,l=this;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTOReadyState(t,"open");case 2:if("viewer"!==n.role){e.next=10;break}return e.next=5,this.updatePlayer(t,r,n);case 5:i=P(t,"change",function(){return l.updatePlayer(t,r,n)}),a=this.maintainPlaybackPosition(t,r,n),this.addEventListener("disconnect",function(){a.cancel(),i.cancel()}),e.next=14;break;case 10:return e.next=12,this.updateTimingObject(t,r);case 12:s=P(r,["seeked","play","pause","ratechange"],function(){return l.updateTimingObject(t,r)},"on","off"),this.addEventListener("disconnect",function(){return s.cancel()});case 14:case"end":return e.stop()}},e,this)})),function(e,t,n){return r.apply(this,arguments)})},{key:"updateTimingObject",value:(n=l(o().mark(function e(t,r){var n,i,a,s;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([r.getCurrentTime(),r.getPaused(),r.getPlaybackRate()]);case 2:var o;i=(n=function(e){if(Array.isArray(e))return e}(o=e.sent)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,u=!1;try{a=(r=r.call(e)).next,!1;for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(o,3)||function(e,t){if(e){if("string"==typeof e)return b(e,3);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}}(o,3)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],a=n[1],s=n[2],t.update({position:i,velocity:a?0:s});case 8:case"end":return e.stop()}},e)})),function(e,t){return n.apply(this,arguments)})},{key:"updatePlayer",value:(i=l(o().mark(function e(t,r,n){var i,a,s;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(a=(i=t.query()).position,s=i.velocity,"number"==typeof a&&r.setCurrentTime(a),"number"!=typeof s){e.next=25;break}if(0!==s){e.next=11;break}return e.next=6,r.getPaused();case 6:if(e.t0=e.sent,!1!==e.t0){e.next=9;break}r.pause();case 9:e.next=25;break;case 11:if(!(s>0)){e.next=25;break}return e.next=14,r.getPaused();case 14:if(e.t1=e.sent,!0!==e.t1){e.next=19;break}return e.next=18,r.play().catch(function(){var e=l(o().mark(function e(t){return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!("NotAllowedError"===t.name&&n.autoPlayMuted)){e.next=5;break}return e.next=3,r.setMuted(!0);case 3:return e.next=5,r.play().catch(function(e){return console.error("Couldn't play the video from TimingSrcConnector. Error:",e)});case 5:case"end":return e.stop()}},e)}));return function(t){return e.apply(this,arguments)}}());case 18:this.updatePlayer(t,r,n);case 19:return e.next=21,r.getPlaybackRate();case 21:if(e.t2=e.sent,e.t3=s,e.t2===e.t3){e.next=25;break}r.setPlaybackRate(s);case 25:case"end":return e.stop()}},e,this)})),function(e,t,r){return i.apply(this,arguments)})},{key:"maintainPlaybackPosition",value:function(e,t,r){var n,i=this,a=r.allowedDrift,s=r.maxAllowedDrift,u=r.minCheckInterval,c=r.maxRateAdjustment,d=r.maxTimeToCatchUp,f=1e3*Math.min(d,Math.max(u,s)),h=(n=l(o().mark(function r(){var n,l,u,f,h;return o().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(r.t0=0===e.query().velocity,r.t0){r.next=6;break}return r.next=4,t.getPaused();case 4:r.t1=r.sent,r.t0=!0===r.t1;case 6:if(!r.t0){r.next=8;break}return r.abrupt("return");case 8:return r.t2=e.query().position,r.next=11,t.getCurrentTime();case 11:if(r.t3=r.sent,l=Math.abs(n=r.t2-r.t3),i.log("Drift: ".concat(n)),!(l>s)){r.next=22;break}return r.next=18,i.adjustSpeed(t,0);case 18:t.setCurrentTime(e.query().position),i.log("Resync by currentTime"),r.next=29;break;case 22:if(!(l>a)){r.next=29;break}return h=(u=l/d)<(f=c)?(f-u)/2:f,r.next=28,i.adjustSpeed(t,h*Math.sign(n));case 28:i.log("Resync by playbackRate");case 29:case"end":return r.stop()}},r)})),function(){return n.apply(this,arguments)}),p=setInterval(function(){return h()},f);return{cancel:function(){return clearInterval(p)}}}},{key:"log",value:function(e){var t;null===(t=this.logger)||void 0===t||t.call(this,"TimingSrcConnector: ".concat(e))}},{key:"waitForTOReadyState",value:function(e,t){return new Promise(function(r){!function n(){e.readyState===t?r():e.addEventListener("readystatechange",n,{once:!0})}()})}}]),c}(y(EventTarget)),q=new WeakMap,K=new WeakMap,Y={},G=function(){var e;function t(e){var r,n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(u(this,t),window.jQuery&&e instanceof jQuery&&(e.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),e=e[0]),"undefined"!=typeof document&&"string"==typeof e&&(e=document.getElementById(e)),!((r=e)&&1===r.nodeType&&"nodeName"in r&&r.ownerDocument&&r.ownerDocument.defaultView))throw TypeError("You must pass either a valid element or a valid id.");
vendor: 7,359 bytes, line 1
1if("IFRAME"!==e.nodeName){var a=e.querySelector("iframe");a&&(e=a)}if("IFRAME"===e.nodeName&&!S(e.getAttribute("src")||""))throw Error("The player element passed isnât a Vimeo embed.");if(q.has(e))return q.get(e);this._window=e.ownerDocument.defaultView,this.element=e,this.origin="*";var o=new F(function(t,r){if(n._onMessage=function(e){if(S(e.origin)&&n.element.contentWindow===e.source){"*"===n.origin&&(n.origin=e.origin);var i=V(e.data);if(i&&"error"===i.event&&i.data&&"ready"===i.data.method){var a=Error(i.data.message);a.name=i.data.name,r(a);return}var o=i&&"ready"===i.event,s=i&&"ping"===i.method;if(o||s){n.element.setAttribute("data-ready","true"),t();return}var l=i;l=V(l);var u,c=[];if(l.event)"error"===l.event&&L(n,l.data.method).forEach(function(e){var t=Error(l.data.message);t.name=l.data.name,e.reject(t),I(n,l.data.method,e)}),c=L(n,"event:".concat(l.event)),u=l.data;else if(l.method){var d=function(e,t){var r=L(e,t);if(r.length<1)return!1;var n=r.shift();return I(e,t,n),n}(n,l.method);d&&(c.push(d),u=l.value)}c.forEach(function(e){try{if("function"==typeof e){e.call(n,u);return}e.resolve(u)}catch(e){}})}},n._window.addEventListener("message",n._onMessage),"IFRAME"!==n.element.nodeName){var a=Z(e,i);U(T(a),a,e).then(function(t){var r,i,a=W(t,e);return n.element=a,n._originalElement=e,r=e,i=D.get(r),D.set(a,i),D.delete(r),q.set(n.element,n),t}).catch(r)}});if(K.set(this,o),q.set(this.element,this),"IFRAME"===this.element.nodeName&&B(this,"ping"),Y.isEnabled){var s=function(){return Y.exit()};this.fullscreenchangeHandler=function(){Y.isFullscreen?M(n,"event:exitFullscreen",s):I(n,"event:exitFullscreen",s),n.ready().then(function(){B(n,"fullscreenchange",Y.isFullscreen)})},Y.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return d(t,[{key:"callMethod",value:function(e){for(var t=this,r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];if(null==e)throw TypeError("You must pass a method name.");return new F(function(r,i){return t.ready().then(function(){M(t,e,{resolve:r,reject:i}),0===n.length?n={}:1===n.length&&(n=n[0]),B(t,e,n)}).catch(i)})}},{key:"get",value:function(e){var t=this;return new F(function(r,n){return e=A(e,"get"),t.ready().then(function(){M(t,e,{resolve:r,reject:n}),B(t,e)}).catch(n)})}},{key:"set",value:function(e,t){var r=this;return new F(function(n,i){if(e=A(e,"set"),null==t)throw TypeError("There must be a value to set.");return r.ready().then(function(){M(r,e,{resolve:n,reject:i}),B(r,e,t)}).catch(i)})}},{key:"on",value:function(e,t){if(!e)throw TypeError("You must pass an event name.");if(!t)throw TypeError("You must pass a callback function.");if("function"!=typeof t)throw TypeError("The callback must be a function.");0===L(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch(function(){}),M(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw TypeError("The callback must be a function.");I(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch(function(e){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=K.get(this)||new F(function(e,t){t(Error("Unknown player. Probably unloaded."))});return F.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];if(!e)throw TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t,showing:r})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"selectAudioTrack",value:function(e,t){if(!e)throw TypeError("You must pass a language.");return this.callMethod("selectAudioTrack",{language:e,kind:t})}},{key:"selectDefaultAudioTrack",value:function(){return this.callMethod("selectDefaultAudioTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return Y.isEnabled?Y.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return Y.isEnabled?Y.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return Y.isEnabled?F.resolve(Y.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new F(function(t){if(K.delete(e),q.delete(e.element),e._originalElement&&(q.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&"DIV"===e.element.nodeName&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var r=e.element.querySelector("iframe");r&&r.parentNode&&(r.parentNode.parentNode&&e._originalElement&&e._originalElement!==r.parentNode?r.parentNode.parentNode.removeChild(r.parentNode):r.parentNode.removeChild(r))}e._window.removeEventListener("message",e._onMessage),Y.isEnabled&&Y.off("fullscreenchange",e.fullscreenchangeHandler),t()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return F.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"setColors",value:function(e){if(!Array.isArray(e))return new F(function(e,t){return t(TypeError("Argument must be an array."))});var t=new F(function(e){return e(null)}),r=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return F.all(r)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}
1},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getAudioTracks",value:function(){return this.get("audioTracks")}},{key:"getEnabledAudioTrack",value:function(){return this.get("enabledAudioTrack")}},{key:"getDefaultAudioTrack",value:function(){return this.get("defaultAudioTrack")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}},{key:"setTimingSrc",value:(e=l(o().mark(function e(t,r){var n,i=this;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw TypeError("A Timing Object must be provided.");case 2:return e.next=4,this.ready();case 4:return n=new H(this,t,r),B(this,"notifyTimingObjectConnect"),n.addEventListener("disconnect",function(){return B(i,"notifyTimingObjectDisconnect")}),e.abrupt("return",n);case 8:case"end":return e.stop()}},e,this)})),function(t,r){return e.apply(this,arguments)})}],[{key:"isVimeoUrl",value:function(e){return S(e)}}]),t}();function X(e,t){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}!E&&(Y=function(){var e=function(){for(var e,t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],r=0,n=t.length,i={};r<n;r++)if((e=t[r])&&e[1]in document){for(r=0;r<e.length;r++)i[t[0][r]]=e[r];return i}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},r={request:function(t){return new Promise(function(n,i){var a=function e(){r.off("fullscreenchange",e),n()};r.on("fullscreenchange",a);var o=(t=t||document.documentElement)[e.requestFullscreen]();o instanceof Promise&&o.then(a).catch(i)})},exit:function(){return new Promise(function(t,n){if(!r.isFullscreen){t();return}var i=function e(){r.off("fullscreenchange",e),t()};r.on("fullscreenchange",i);var a=document[e.exitFullscreen]();a instanceof Promise&&a.then(i).catch(n)})},on:function(e,r){var n=t[e];n&&document.addEventListener(n,r)},off:function(e,r){var n=t[e];n&&document.removeEventListener(n,r)}};return Object.defineProperties(r,{isFullscreen:{get:function(){return!!document[e.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[e.fullscreenEnabled]}}}),r}(),!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),r=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))};t.forEach(function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=Z(e),n=T(t);U(n,t,e).then(function(t){return W(t,e)}).catch(r)}catch(e){r(e)}})}(),!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;!window.VimeoPlayerResizeEmbeds_&&(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",function(t){if(S(t.origin)&&t.data&&"spacechange"===t.data.event){var r=t.source?O(t.source,e):null;r&&(r.parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px"))}}))}(),!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;!window.VimeoSeoMetadataAppended&&(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",function(t){if(S(t.origin)){var r=V(t.data);if(r&&"ready"===r.event){var n=t.source?O(t.source,e):null;n&&C(n.src)&&new G(n).callMethod("appendVideoMetadata",window.location.href)}}}))}(),!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam
1=!0;var t=function(e){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(e))};window.addEventListener("message",function(r){if(S(r.origin)){var n=V(r.data);if(n&&"ready"===n.event){var i=r.source?O(r.source,e):null;if(i&&C(i.src)){var a=new G(i);a.getVideoId().then(function(e){var t=new RegExp("[?&]vimeo_t_".concat(e,"=([^&#]*)")).exec(window.location.href);if(t&&t[1]){var r=decodeURI(t[1]);a.setCurrentTime(r)}}).catch(t)}}}})}}(),!window.VimeoDRMEmbedsUpdated)&&(window.VimeoDRMEmbedsUpdated=!0,window.addEventListener("message",function(e){if(S(e.origin)){var t=V(e.data);if(t&&"drminitfailed"===t.event){var r=e.source?O(e.source):null;if(r){var n=r.getAttribute("allow")||"";if(!n.includes("encrypted-media")){r.setAttribute("allow","".concat(n,"; encrypted-media"));var i=new URL(r.getAttribute("src"));i.searchParams.set("forcereload","drm"),r.setAttribute("src",i.toString());return}}}}}));var J={play:"onPlay",playing:"onPlaying",pause:"onPause",ended:"onEnd",timeupdate:"onTimeUpdate",progress:"onProgress",seeked:"onSeeked",texttrackchange:"onTextTrackChange",cuechange:"onCueChange",cuepoint:"onCuePoint",volumechange:"onVolumeChange",playbackratechange:"onPlaybackRateChange",error:"onError",loaded:"onLoaded"},Q=function(e){function t(t){var r;return(r=e.call(this,t)||this).refContainer=r.refContainer.bind(r),r}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,X(t,e);var r=t.prototype;return r.componentDidMount=function(){this.createPlayer()},r.componentDidUpdate=function(e){var t=this,r=Object.keys(this.props).filter(function(r){return t.props[r]!==e[r]});this.updateProps(r)},r.componentWillUnmount=function(){this.player.destroy()},r.getInitialOptions=function(){var e,t=this.props.video,r=/^https?:/i.test(t)?"url":"id";return(e={})[r]=t,e.width=this.props.width,e.height=this.props.height,e.autopause=this.props.autopause,e.autoplay=this.props.autoplay,e.byline=this.props.showByline,e.color=this.props.color,e.controls=this.props.controls,e.loop=this.props.loop,e.portrait=this.props.showPortrait,e.title=this.props.showTitle,e.muted=this.props.muted,e.background=this.props.background,e.responsive=this.props.responsive,e.dnt=this.props.dnt,e.speed=this.props.speed,e.keyboard=this.props.keyboard,e.pip=this.props.pip,e.playsinline=this.props.playsInline,e.quality=this.props.quality,e.texttrack=this.props.textTrack,e.transparent=this.props.transparent,e},r.updateProps=function(e){var t=this,r=this.player;e.forEach(function(e){var n=t.props[e];switch(e){case"autopause":r.setAutopause(n);break;case"color":r.setColor(n);break;case"loop":r.setLoop(n);break;case"volume":r.setVolume(n);break;case"paused":r.getPaused().then(function(e){return n&&!e?r.pause():!n&&e?r.play():null});break;case"width":case"height":r.element[e]=n;break;case"video":if(n){var i=t.props.start,a=r.loadVideo(n);"number"==typeof i&&a.then(function(){r.setCurrentTime(i)})}else r.unload();break;case"playbackRate":r.setPlaybackRate(n);break;case"quality":r.setQuality(n)}})},r.createPlayer=function(){var e=this,t=this.props,r=t.start,n=t.volume,i=t.playbackRate;this.player=new G(this.container,this.getInitialOptions()),Object.keys(J).forEach(function(t){var r=J[t];e.player.on(t,function(t){var n=e.props[r];n&&n(t)})});var a=this.props,o=a.onError,s=a.onReady;this.player.ready().then(function(){s&&s(e.player)},function(e){if(o)o(e);else throw e}),"number"==typeof r&&this.player.setCurrentTime(r),"number"==typeof n&&this.updateProps(["volume"]),"number"==typeof i&&this.updateProps(["playbackRate"])},r.refContainer=function(e){this.container=e},r.render=function(){var e=this.props,t=e.id,r=e.className,i=e.style;return n.createElement("div",{id:t,className:r,style:i,ref:this.refContainer})},t}(n.Component);Q.defaultProps={autopause:!0,autoplay:!1,showByline:!0,controls:!0,loop:!1,showPortrait:!0,showTitle:!0,muted:!1,background:!1,responsive:!1,dnt:!1,speed:!1,keyboard:!0,pip:!1,playsInline:!0,transparent:!0}},43969:(e,t,r)=>{"use strict";function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}r.d(t,{_:()=>n})},45503:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(12115);function i(e){let t=n.useRef({value:e,previous:e});return n.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}},45964:(e,t,r)=>{var n=r(67460),i=r(76685),a=r(36815),o=Math.max,s=Math.min;e.exports=function(e,t,r){var l,u,c,d,f,h,p=0,m=!1,v=!1,y=!0;if("function"!=typeof e)throw TypeError("Expected a function");function g(t){var r=l,n=u;return l=u=void 0,p=t,d=e.apply(n,r)}function b(e){var r=e-h,n=e-p;return void 0===h||r>=t||r<0||v&&n>=c}function w(){var e,r,n,a=i();if(b(a))return x(a);f=setTimeout(w,(e=a-h,r=a-p,n=t-e,v?s(n,c-r):n))}function x(e){return(f=void 0,y&&l)?g(e):(l=u=void 0,d)}function _(){var e,r=i(),n=b(r);if(l=arguments,u=this,h=r,n){if(void 0===f)return p=e=h,f=setTimeout(w,t),m?g(e):d;if(v)return clearTimeout(f),f=setTimeout(w,t),g(h)}return void 0===f&&(f=setTimeout(w,t)),d}return t=a(t)||0,n(r)&&(m=!!r.leading,c=(v="maxWait"in r)?o(a(r.maxWait)||0,t):c,y="trailing"in r?!!r.trailing:y),_.cancel=function(){void 0!==f&&clearTimeout(f),p=0,l=h=u=f=void 0},_.flush=function(){return void 0===f?d:x(i())},_}},47602:(e,t,r)=>{"use strict";r.d(t,{X:()=>a});var n=r(12115),i=globalThis?.document?n.useLayoutEffect:()=>{};function a(e){let[t,r]=n.useState(void 0);return i(()=>
1{if(e){r({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let n,i;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;n=t.inlineSize,i=t.blockSize}else n=e.offsetWidth,i=e.offsetHeight;r({width:n,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}r(void 0)},[e]),t}},48611:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},51616:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(a=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,a[i]))return!1;for(i=n;0!=i--;){var n,i,a,o=a[i];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},55594:(e,t,r)=>{"use strict";let n;r.d(t,{z:()=>tu}),function(e){e.assertEqual=e=>e,e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),n={};for(let e of r)n[e]=t[e];return e.objectValues(n)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(tn||(tn={})),(ti||(ti={})).mergeShapes=(e,t)=>({...e,...t});let i=tn.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),a=e=>{switch(typeof e){case"undefined":return i.undefined;case"string":return i.string;case"number":return isNaN(e)?i.nan:i.number;case"boolean":return i.boolean;case"function":return i.function;case"bigint":return i.bigint;case"symbol":return i.symbol;case"object":if(Array.isArray(e))return i.array;if(null===e)return i.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return i.promise;if("undefined"!=typeof Map&&e instanceof Map)return i.map;if("undefined"!=typeof Set&&e instanceof Set)return i.set;if("undefined"!=typeof Date&&e instanceof Date)return i.date;return i.object;default:return i.unknown}}
vendor: 5,774 bytes, line 1
1,o=tn.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class s extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},n=e=>{for(let i of e.issues)if("invalid_union"===i.code)i.unionErrors.map(n);else if("invalid_return_type"===i.code)n(i.returnTypeError);else if("invalid_arguments"===i.code)n(i.argumentsError);else if(0===i.path.length)r._errors.push(t(i));else{let e=r,n=0;for(;n<i.path.length;){let r=i.path[n];n===i.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(i))):e[r]=e[r]||{_errors:[]},e=e[r],n++}}};return n(this),r}static assert(e){if(!(e instanceof s))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,tn.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let n of this.issues)n.path.length>0?(t[n.path[0]]=t[n.path[0]]||[],t[n.path[0]].push(e(n))):r.push(e(n));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}s.create=e=>new s(e);let l=(e,t)=>{let r;switch(e.code){case o.invalid_type:r=e.received===i.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case o.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,tn.jsonStringifyReplacer)}`;break;case o.unrecognized_keys:r=`Unrecognized key(s) in object: ${tn.joinValues(e.keys,", ")}`;break;case o.invalid_union:r="Invalid input";break;case o.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${tn.joinValues(e.options)}`;break;case o.invalid_enum_value:r=`Invalid enum value. Expected ${tn.joinValues(e.options)}, received '${e.received}'`;break;case o.invalid_arguments:r="Invalid function arguments";break;case o.invalid_return_type:r="Invalid function return type";break;case o.invalid_date:r="Invalid date";break;case o.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:tn.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case o.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case o.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case o.custom:r="Invalid input";break;case o.invalid_intersection_types:r="Intersection results could not be merged";break;case o.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case o.not_finite:r="Number must be finite";break;default:r=t.defaultError,tn.assertNever(e)}return{message:r}},u=l;function c(){return u}let d=e=>{let{data:t,path:r,errorMaps:n,issueData:i}=e,a=[...r,...i.path||[]],o={...i,path:a};if(void 0!==i.message)return{...i,path:a,message:i.message};let s="";for(let e of n.filter(e=>!!e).slice().reverse())s=e(o,{data:t,defaultError:s}).message;return{...i,path:a,message:s}};function f(e,t){let r=c(),n=d({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===l?void 0:l].filter(e=>!!e)});e.common.issues.push(n)}class h{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let n of t){if("aborted"===n.status)return p;"dirty"===n.status&&e.dirty(),r.push(n.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,n=await e.value;r.push({key:t,value:n})}return h.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let n of t){let{key:t,value:i}=n;if("aborted"===t.status||"aborted"===i.status)return p;"dirty"===t.status&&e.dirty(),"dirty"===i.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==i.value||n.alwaysSet)&&(r[t.value]=i.value)}return{status:e.value,value:r}}}let p=Object.freeze({status:"aborted"}),m=e=>({status:"dirty",value:e}),v=e=>
1({status:"valid",value:e}),y=e=>"aborted"===e.status,g=e=>"dirty"===e.status,b=e=>"valid"===e.status,w=e=>"undefined"!=typeof Promise&&e instanceof Promise;function x(e,t,r,n){if("a"===r&&!n)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function _(e,t,r,n,i){if("m"===n)throw TypeError("Private method is not writable");if("a"===n&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?i.call(e,r):i?i.value=r:t.set(e,r),r}"function"==typeof SuppressedError&&SuppressedError,function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:null==e?void 0:e.message}(ta||(ta={}));class k{constructor(e,t,r,n){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=n}get path(){return this._cachedPath.length||(this._key instanceof Array?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let E=(e,t)=>{if(b(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new s(e.common.issues);return this._error=t,this._error}}};function A(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:n,description:i}=e;if(t&&(r||n))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:i}:{errorMap:(t,i)=>{var a,o;let{message:s}=e;return"invalid_enum_value"===t.code?{message:null!=s?s:i.defaultError}:void 0===i.data?{message:null!==(a=null!=s?s:n)&&void 0!==a?a:i.defaultError}:"invalid_type"!==t.code?{message:i.defaultError}:{message:null!==(o=null!=s?s:r)&&void 0!==o?o:i.defaultError}},description:i}}class S{get description(){return this._def.description}_getType(e){return a(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new h,ctx:{common:e.parent.common,data:e.data,parsedType:a(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(w(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){var r;let n={common:{issues:[],async:null!==(r=null==t?void 0:t.async)&&void 0!==r&&r,contextualErrorMap:null==t?void 0:t.errorMap},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},i=this._parseSync({data:e,path:n.path,parent:n});return E(n,i)}"~validate"(e){var t,r;let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)};if(!this["~standard"].async)try{let t=this._parseSync({data:e,path:[],parent:n});return b(t)?{value:t.value}:{issues:n.common.issues}}catch(e){(null===(r=null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.toLowerCase())||void 0===r?void 0:r.includes("encountered"))&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:n}).then(e=>b(e)?{value:e.value}:{issues:n.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:null==t?void 0:t.errorMap,async:!0},path:(null==t?void 0:t.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:a(e)},n=this._parse({data:e,path:r.path,parent:r});return E(r,await (w(n)?n:Promise.resolve(n)))}refine(e,t){let r=e=>"string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(e):t;return this._refinement((t,n)=>{let i=e(t),a=()=>n.addIssue({code:o.custom,...r(t)});return"undefined"!=typeof Promise&&i instanceof Promise?i.then(e=>!!e||(a(),!1)):!!i||(a(),!1)})}refinement(e,t){return this._refinement((r,n)=>!!e(r)||(n.addIssue("function"==typeof t?t(r,n):t),!1))}_refinement(e){return new ew({schema:this,typeName:tl.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return ex.create(this,this._def)}nullable(){return e_.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return en.create(this)}promise(){return eb.create(this,this._def)}or(e){return ea.create([this,e],this._def)}and(e){return el.create(this,e,this._def)}transform(e){return new ew({...A(this._def),schema:this,typeName:tl.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new ek({...A(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:tl.ZodDefault})}brand(){return new eC({typeName:tl.ZodBranded,type:this,...A(this._def)})}catch(e){return new eE({...A(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:tl.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return eT.create(this,e)}readonly(){return eP.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let C=/^c[^\s-]{8,}
1$/i,T=/^[0-9a-z]+$/,P=/^[0-9A-HJKMNP-TV-Z]{26}$/i,O=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,j=/^[a-z0-9_-]{21}$/i,R=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,N=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,F=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,D=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,M=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,L=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,I=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,V=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,B=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,$="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Z=RegExp(`^${$}$`);function W(e){let t="([01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d";return e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`),t}function U(e){let t=`${$}T${W(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)}class z extends S{_parse(e){var t,r,a,s;let l;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==i.string){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.string,received:t.parsedType}),p}let u=new h;for(let i of this._def.checks)if("min"===i.kind)e.data.length<i.value&&(f(l=this._getOrReturnCtx(e,l),{code:o.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),u.dirty());else if("max"===i.kind)e.data.length>i.value&&(f(l=this._getOrReturnCtx(e,l),{code:o.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),u.dirty());else if("length"===i.kind){let t=e.data.length>i.value,r=e.data.length<i.value;(t||r)&&(l=this._getOrReturnCtx(e,l),t?f(l,{code:o.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):r&&f(l,{code:o.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),u.dirty())}else if("email"===i.kind)F.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"email",code:o.invalid_string,message:i.message}),u.dirty());else if("emoji"===i.kind)n||(n=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),n.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"emoji",code:o.invalid_string,message:i.message}),u.dirty());else if("uuid"===i.kind)O.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"uuid",code:o.invalid_string,message:i.message}),u.dirty());else if("nanoid"===i.kind)j.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"nanoid",code:o.invalid_string,message:i.message}),u.dirty());else if("cuid"===i.kind)C.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"cuid",code:o.invalid_string,message:i.message}),u.dirty());else if("cuid2"===i.kind)T.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"cuid2",code:o.invalid_string,message:i.message}),u.dirty());else if("ulid"===i.kind)P.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"ulid",code:o.invalid_string,message:i.message}),u.dirty());else if("url"===i.kind)try{new URL(e.data)}catch(t){f(l=this._getOrReturnCtx(e,l),{validation:"url",code:o.invalid_string,message:i.message}),u.dirty()}else"regex"===i.kind?(i.regex.lastIndex=0,i.regex.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"regex",code:o.invalid_string,message:i.message}),u.dirty())):"trim"===i.kind?e.data=e.data.trim():"includes"===i.kind?e.data.includes(i.value,i.position)||(f(l=this._getOrReturnCtx(e,l),{code:o.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),u.dirty()):"toLowerCase"===i.kind?e.data=e.data.toLowerCase():"toUpperCase"===i.kind?e.data=e.data.toUpperCase():"startsWith"===i.kind?e.data.startsWith(i.value)||(f(l=this._getOrReturnCtx(e,l),{code:o.invalid_string,validation:{startsWith:i.value},message:i.message}),u.dirty()):"endsWith"===i.kind?e.data.endsWith(i.value)||(f(l=this._getOrReturnCtx(e,l),{code:o.invalid_string,validation:{endsWith:i.value},message:i.message}),u.dirty()):"datetime"===i.kind?U(i).test(e.data)||(f(l=this._getOrReturnCtx(e,l),{code:o.invalid_string,validation:"datetime",message:i.message}),u.dirty()):"date"===i.kind?Z.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{code:o.invalid_string,validation:"date",message:i.message}),u.dirty()):"time"===i.kind?RegExp(`^${W(i)}$`).test(e.data)||(f(l=this._getOrReturnCtx(e,l),{code:o.invalid_string,validation:"time",message:i.message}),u.dirty()):"duration"===i.kind?N.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"duration",code:o.invalid_string,message:i.message}),u.dirty()):"ip"===i.kind?(t=e.data,!(("v4"===(r=i.version)||!r)&&D.test(t)||("v6"===r||!r)&&L.test(t))&&(f(l=this._getOrReturnCtx(e,l),{validation:"ip",code:o.invalid_string,message:i.message}),u.dirty())):"jwt"===i.kind?!function(e,t){if(!R.test(e))return!1;try{let[r]=e.split("."),n=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),i=JSON.parse(atob(n));if("object"!=typeof i||null===i||!i.typ||!i.alg||t&&i.alg!==t)return!1;return!0}catch(e){return!1}}(e.data,i.alg)&&(f(l=this._getOrReturnCtx(e,l),{validation:"jwt",code:o.invalid_string,message:i.message}),u.dirty()):"cidr"===i.kind?(a=e.data,!(("v4"===(s=i.version)||!s)&&M.test(a)||("v6"===s||!s)&&I.test(a))&&(f(l=this._getOrReturnCtx(e,l),{validation:"cidr",code:o.invalid_string,message:i.message}),u.dirty())):"base64"===i.kind?V.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"base64",code:o.invalid_string,message:i.message}),u.dirty()):"base64url"===i.kind?B.test(e.data)||(f(l=this._getOrReturnCtx(e,l),{validation:"base64url",code:o.invalid_string,message:i.message}),u.dirty()):tn.assertNever(i);return{status:u.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:o.invalid_string,...ta.errToObj(r)})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...ta.errToObj(e)})}url(e){return this._addCheck({kind:"url",...ta.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...ta.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...ta.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...ta.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...ta.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...ta.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...ta.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...ta.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...ta.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...ta.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...ta.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...ta.errToObj(e)})}datetime(e){var t,r;return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,offset:null!==(t=null==e?void 0:e.offset)&&void 0!==t&&t,local:null!==(r=null==e?void 0:e.local)&&void 0!==r&&r,...ta.errToObj(null==e?void 0:e.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===(null==e?void 0:e.precision)?null:null==e?void 0:e.precision,...ta.errToObj(null==e?void 0:e.message)})}duration(e){return this._addCheck({kind:"duration",...ta.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...ta.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:null==t?void 0:t.position,...ta.errToObj(null==t?void 0:t.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...ta.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...ta.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...ta.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...ta.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...ta.errToObj(t)})}nonempty(e){return this.min(1,ta.errToObj(e))}trim(){return new z({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new z({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new z({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}
1get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}z.create=e=>{var t;return new z({checks:[],typeName:tl.ZodString,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...A(e)})};class H extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==i.number){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.number,received:t.parsedType}),p}let r=new h;for(let n of this._def.checks)"int"===n.kind?tn.isInteger(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:o.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,n=(t.toString().split(".")[1]||"").length,i=r>n?r:n;return parseInt(e.toFixed(i).replace(".",""))%parseInt(t.toFixed(i).replace(".",""))/Math.pow(10,i)}(e.data,n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(f(t=this._getOrReturnCtx(e,t),{code:o.not_finite,message:n.message}),r.dirty()):tn.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,ta.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ta.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ta.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ta.toString(t))}setLimit(e,t,r,n){return new H({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:ta.toString(n)}]})}_addCheck(e){return new H({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:ta.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ta.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ta.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ta.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ta.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ta.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:ta.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ta.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ta.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&tn.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}H.create=e=>new H({checks:[],typeName:tl.ZodNumber,coerce:(null==e?void 0:e.coerce)||!1,...A(e)});class q extends S{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch(t){return this._getInvalidInput(e)}if(this._getType(e)!==i.bigint)return this._getInvalidInput(e);let r=new h;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(f(t=this._getOrReturnCtx(e,t),{code:o.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):tn.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.bigint,received:t.parsedType}),p}gte(e,t){return this.setLimit("min",e,!0,ta.toString(t))}gt(e,t){return this.setLimit("min",e,!1,ta.toString(t))}lte(e,t){return this.setLimit("max",e,!0,ta.toString(t))}lt(e,t){return this.setLimit("max",e,!1,ta.toString(t))}setLimit(e,t,r,n){return new q({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:ta.toString(n)}]})}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}
1positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ta.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ta.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ta.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ta.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:ta.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}q.create=e=>{var t;return new q({checks:[],typeName:tl.ZodBigInt,coerce:null!==(t=null==e?void 0:e.coerce)&&void 0!==t&&t,...A(e)})};class K extends S{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==i.boolean){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.boolean,received:t.parsedType}),p}return v(e.data)}}K.create=e=>new K({typeName:tl.ZodBoolean,coerce:(null==e?void 0:e.coerce)||!1,...A(e)});class Y extends S{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==i.date){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.date,received:t.parsedType}),p}if(isNaN(e.data.getTime()))return f(this._getOrReturnCtx(e),{code:o.invalid_date}),p;let r=new h;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(f(t=this._getOrReturnCtx(e,t),{code:o.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):tn.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new Y({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:ta.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:ta.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}Y.create=e=>new Y({checks:[],coerce:(null==e?void 0:e.coerce)||!1,typeName:tl.ZodDate,...A(e)});class G extends S{_parse(e){if(this._getType(e)!==i.symbol){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.symbol,received:t.parsedType}),p}return v(e.data)}}G.create=e=>new G({typeName:tl.ZodSymbol,...A(e)});class X extends S{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.undefined,received:t.parsedType}),p}return v(e.data)}}X.create=e=>new X({typeName:tl.ZodUndefined,...A(e)});class J extends S{_parse(e){if(this._getType(e)!==i.null){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.null,received:t.parsedType}),p}return v(e.data)}}J.create=e=>new J({typeName:tl.ZodNull,...A(e)});class Q extends S{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}Q.create=e=>new Q({typeName:tl.ZodAny,...A(e)});class ee extends S{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}ee.create=e=>new ee({typeName:tl.ZodUnknown,...A(e)});class et extends S{_parse(e){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.never,received:t.parsedType}),p}}et.create=e=>new et({typeName:tl.ZodNever,...A(e)});class er extends S{_parse(e){if(this._getType(e)!==i.undefined){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.void,received:t.parsedType}),p}return v(e.data)}}er.create=e=>new er({typeName:tl.ZodVoid,...A(e)});class en extends S{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),n=this._def;if(t.parsedType!==i.array)return f(t,{code:o.invalid_type,expected:i.array,received:t.parsedType}),p;if(null!==n.exactLength){let e=t.data.length>n.exactLength.value,i=t.data.length<n.exactLength.value;(e||i)&&(f(t,{code:e?o.too_big:o.too_small,minimum:i?n.exactLength.value:void 0,maximum:e?n.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:n.exactLength.message}),r.dirty())}if(null!==n.minLength&&t.data.length<n.minLength.value&&(f(t,{code:o.too_small,minimum:n.minLength.value,type:"array",inclusive:!0,exact:!1,message:n.minLength.message}),r.dirty()),null!==n.maxLength&&t.data.length>n.maxLength.value&&(f(t,{code:o.too_big,maximum:n.maxLength.value,type:"array",inclusive:!0,exact:!1,message:n.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>n.type._parseAsync(new k(t,e,t.path,r)))).then(e=>h.mergeArray(r,e));let a=[...t.data].map((e,r)=>n.type._parseSync(new k(t,e,t.path,r)));return h.mergeArray(r,a)}
1get element(){return this._def.type}min(e,t){return new en({...this._def,minLength:{value:e,message:ta.toString(t)}})}max(e,t){return new en({...this._def,maxLength:{value:e,message:ta.toString(t)}})}length(e,t){return new en({...this._def,exactLength:{value:e,message:ta.toString(t)}})}nonempty(e){return this.min(1,e)}}en.create=(e,t)=>new en({type:e,minLength:null,maxLength:null,exactLength:null,typeName:tl.ZodArray,...A(t)});class ei extends S{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=tn.objectKeys(e);return this._cached={shape:e,keys:t}}_parse(e){if(this._getType(e)!==i.object){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.object,received:t.parsedType}),p}let{status:t,ctx:r}=this._processInputParams(e),{shape:n,keys:a}=this._getCached(),s=[];if(!(this._def.catchall instanceof et&&"strip"===this._def.unknownKeys))for(let e in r.data)a.includes(e)||s.push(e);let l=[];for(let e of a){let t=n[e],i=r.data[e];l.push({key:{status:"valid",value:e},value:t._parse(new k(r,i,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof et){let e=this._def.unknownKeys;if("passthrough"===e)for(let e of s)l.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)s.length>0&&(f(r,{code:o.unrecognized_keys,keys:s}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of s){let n=r.data[t];l.push({key:{status:"valid",value:t},value:e._parse(new k(r,n,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of l){let r=await t.key,n=await t.value;e.push({key:r,value:n,alwaysSet:t.alwaysSet})}return e}).then(e=>h.mergeObjectSync(t,e)):h.mergeObjectSync(t,l)}get shape(){return this._def.shape()}strict(e){return ta.errToObj,new ei({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{var n,i,a,o;let s=null!==(a=null===(i=(n=this._def).errorMap)||void 0===i?void 0:i.call(n,t,r).message)&&void 0!==a?a:r.defaultError;return"unrecognized_keys"===t.code?{message:null!==(o=ta.errToObj(e).message)&&void 0!==o?o:s}:{message:s}}}:{}})}strip(){return new ei({...this._def,unknownKeys:"strip"})}passthrough(){return new ei({...this._def,unknownKeys:"passthrough"})}extend(e){return new ei({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ei({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:tl.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ei({...this._def,catchall:e})}pick(e){let t={};return tn.objectKeys(e).forEach(r=>{e[r]&&this.shape[r]&&(t[r]=this.shape[r])}),new ei({...this._def,shape:()=>t})}omit(e){let t={};return tn.objectKeys(this.shape).forEach(r=>{e[r]||(t[r]=this.shape[r])}),new ei({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ei){let r={};for(let n in t.shape){let i=t.shape[n];r[n]=ex.create(e(i))}return new ei({...t._def,shape:()=>r})}if(t instanceof en)return new en({...t._def,type:e(t.element)});if(t instanceof ex)return ex.create(e(t.unwrap()));if(t instanceof e_)return e_.create(e(t.unwrap()));if(t instanceof eu)return eu.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};return tn.objectKeys(this.shape).forEach(r=>{let n=this.shape[r];e&&!e[r]?t[r]=n:t[r]=n.optional()}),new ei({...this._def,shape:()=>t})}required(e){let t={};return tn.objectKeys(this.shape).forEach(r=>{if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof ex;)e=e._def.innerType;t[r]=e}}),new ei({...this._def,shape:()=>t})}keyof(){return ev(tn.objectKeys(this.shape))}}ei.create=(e,t)=>new ei({shape:()=>e,unknownKeys:"strip",catchall:et.create(),typeName:tl.ZodObject,...A(t)}),ei.strictCreate=(e,t)=>new ei({shape:()=>e,unknownKeys:"strict",catchall:et.create(),typeName:tl.ZodObject,...A(t)}),ei.lazycreate=(e,t)=>
1new ei({shape:e,unknownKeys:"strip",catchall:et.create(),typeName:tl.ZodObject,...A(t)});class ea extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new s(e.ctx.common.issues));return f(t,{code:o.invalid_union,unionErrors:r}),p});{let e,n=[];for(let i of r){let r={...t,common:{...t.common,issues:[]},parent:null},a=i._parseSync({data:t.data,path:t.path,parent:r});if("valid"===a.status)return a;"dirty"!==a.status||e||(e={result:a,ctx:r}),r.common.issues.length&&n.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let i=n.map(e=>new s(e));return f(t,{code:o.invalid_union,unionErrors:i}),p}}get options(){return this._def.options}}ea.create=(e,t)=>new ea({options:e,typeName:tl.ZodUnion,...A(t)});let eo=e=>{if(e instanceof ep)return eo(e.schema);if(e instanceof ew)return eo(e.innerType());if(e instanceof em)return[e.value];if(e instanceof ey)return e.options;if(e instanceof eg)return tn.objectValues(e.enum);else if(e instanceof ek)return eo(e._def.innerType);else if(e instanceof X)return[void 0];else if(e instanceof J)return[null];else if(e instanceof ex)return[void 0,...eo(e.unwrap())];else if(e instanceof e_)return[null,...eo(e.unwrap())];else if(e instanceof eC)return eo(e.unwrap());else if(e instanceof eP)return eo(e.unwrap());else if(e instanceof eE)return eo(e._def.innerType);else return[]};class es extends S{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.object)return f(t,{code:o.invalid_type,expected:i.object,received:t.parsedType}),p;let r=this.discriminator,n=t.data[r],a=this.optionsMap.get(n);return a?t.common.async?a._parseAsync({data:t.data,path:t.path,parent:t}):a._parseSync({data:t.data,path:t.path,parent:t}):(f(t,{code:o.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),p)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let n=new Map;for(let r of t){let t=eo(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let i of t){if(n.has(i))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(i)}`);n.set(i,r)}}return new es({typeName:tl.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:n,...A(r)})}}class el extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if(y(e)||y(n))return p;let s=function e(t,r){let n=a(t),o=a(r);if(t===r)return{valid:!0,data:t};if(n===i.object&&o===i.object){let n=tn.objectKeys(r),i=tn.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let n of i){let i=e(t[n],r[n]);if(!i.valid)return{valid:!1};a[n]=i.data}return{valid:!0,data:a}}if(n===i.array&&o===i.array){if(t.length!==r.length)return{valid:!1};let n=[];for(let i=0;i<t.length;i++){let a=e(t[i],r[i]);if(!a.valid)return{valid:!1};n.push(a.data)}return{valid:!0,data:n}}if(n===i.date&&o===i.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return s.valid?((g(e)||g(n))&&t.dirty(),{status:t.value,value:s.data}):(f(r,{code:o.invalid_intersection_types}),p)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}el.create=(e,t,r)=>new el({left:e,right:t,typeName:tl.ZodIntersection,...A(r)});class eu extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.array)return f(r,{code:o.invalid_type,expected:i.array,received:r.parsedType}),p;if(r.data.length<this._def.items.length)return f(r,{code:o.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),p;!this._def.rest&&r.data.length>this._def.items.length&&(f(r,{code:o.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let n=[...r.data].map((e,t)=>{let n=this._def.items[t]||this._def.rest;return n?n._parse(new k(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(n).then(e=>h.mergeArray(t,e)):h.mergeArray(t,n)}get items(){return this._def.items}rest(e){return new eu({...this._def,rest:e})}}eu.create=(e,t)=>
1{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new eu({items:e,typeName:tl.ZodTuple,rest:null,...A(t)})};class ec extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.object)return f(r,{code:o.invalid_type,expected:i.object,received:r.parsedType}),p;let n=[],a=this._def.keyType,s=this._def.valueType;for(let e in r.data)n.push({key:a._parse(new k(r,e,r.path,e)),value:s._parse(new k(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?h.mergeObjectAsync(t,n):h.mergeObjectSync(t,n)}get element(){return this._def.valueType}static create(e,t,r){return new ec(t instanceof S?{keyType:e,valueType:t,typeName:tl.ZodRecord,...A(r)}:{keyType:z.create(),valueType:e,typeName:tl.ZodRecord,...A(t)})}}class ed extends S{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.map)return f(r,{code:o.invalid_type,expected:i.map,received:r.parsedType}),p;let n=this._def.keyType,a=this._def.valueType,s=[...r.data.entries()].map(([e,t],i)=>({key:n._parse(new k(r,e,r.path,[i,"key"])),value:a._parse(new k(r,t,r.path,[i,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of s){let n=await r.key,i=await r.value;if("aborted"===n.status||"aborted"===i.status)return p;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of s){let n=r.key,i=r.value;if("aborted"===n.status||"aborted"===i.status)return p;("dirty"===n.status||"dirty"===i.status)&&t.dirty(),e.set(n.value,i.value)}return{status:t.value,value:e}}}}ed.create=(e,t,r)=>new ed({valueType:t,keyType:e,typeName:tl.ZodMap,...A(r)});class ef extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==i.set)return f(r,{code:o.invalid_type,expected:i.set,received:r.parsedType}),p;let n=this._def;null!==n.minSize&&r.data.size<n.minSize.value&&(f(r,{code:o.too_small,minimum:n.minSize.value,type:"set",inclusive:!0,exact:!1,message:n.minSize.message}),t.dirty()),null!==n.maxSize&&r.data.size>n.maxSize.value&&(f(r,{code:o.too_big,maximum:n.maxSize.value,type:"set",inclusive:!0,exact:!1,message:n.maxSize.message}),t.dirty());let a=this._def.valueType;function s(e){let r=new Set;for(let n of e){if("aborted"===n.status)return p;"dirty"===n.status&&t.dirty(),r.add(n.value)}return{status:t.value,value:r}}let l=[...r.data.values()].map((e,t)=>a._parse(new k(r,e,r.path,t)));return r.common.async?Promise.all(l).then(e=>s(e)):s(l)}min(e,t){return new ef({...this._def,minSize:{value:e,message:ta.toString(t)}})}max(e,t){return new ef({...this._def,maxSize:{value:e,message:ta.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}ef.create=(e,t)=>new ef({valueType:e,minSize:null,maxSize:null,typeName:tl.ZodSet,...A(t)});class eh extends S{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==i.function)return f(t,{code:o.invalid_type,expected:i.function,received:t.parsedType}),p;function r(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:o.invalid_arguments,argumentsError:r}})}function n(e,r){return d({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c(),l].filter(e=>!!e),issueData:{code:o.invalid_return_type,returnTypeError:r}})}let a={errorMap:t.common.contextualErrorMap},u=t.data;if(this._def.returns instanceof eb){let e=this;return v(async function(...t){let i=new s([]),o=await e._def.args.parseAsync(t,a).catch(e=>{throw i.addIssue(r(t,e)),i}),l=await Reflect.apply(u,this,o);return await e._def.returns._def.type.parseAsync(l,a).catch(e=>{throw i.addIssue(n(l,e)),i})})}{let e=this;return v(function(...t){let i=e._def.args.safeParse(t,a);if(!i.success)throw new s([r(t,i.error)]);let o=Reflect.apply(u,this,i.data),l=e._def.returns.safeParse(o,a);if(!l.success)throw new s([n(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eh({...this._def,args:eu.create(e).rest(ee.create())})}returns(e){return new eh({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eh({args:e||eu.create([]).rest(ee.create()),returns:t||ee.create(),typeName:tl.ZodFunction,...A(r)})}}class ep extends S{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ep.create=(e,t)=>
1new ep({getter:e,typeName:tl.ZodLazy,...A(t)});class em extends S{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return f(t,{received:t.data,code:o.invalid_literal,expected:this._def.value}),p}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ev(e,t){return new ey({values:e,typeName:tl.ZodEnum,...A(t)})}em.create=(e,t)=>new em({value:e,typeName:tl.ZodLiteral,...A(t)});class ey extends S{constructor(){super(...arguments),to.set(this,void 0)}_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return f(t,{expected:tn.joinValues(r),received:t.parsedType,code:o.invalid_type}),p}if(x(this,to,"f")||_(this,to,new Set(this._def.values),"f"),!x(this,to,"f").has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return f(t,{received:t.data,code:o.invalid_enum_value,options:r}),p}return v(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ey.create(e,{...this._def,...t})}exclude(e,t=this._def){return ey.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}to=new WeakMap,ey.create=ev;class eg extends S{constructor(){super(...arguments),ts.set(this,void 0)}_parse(e){let t=tn.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==i.string&&r.parsedType!==i.number){let e=tn.objectValues(t);return f(r,{expected:tn.joinValues(e),received:r.parsedType,code:o.invalid_type}),p}if(x(this,ts,"f")||_(this,ts,new Set(tn.getValidEnumValues(this._def.values)),"f"),!x(this,ts,"f").has(e.data)){let e=tn.objectValues(t);return f(r,{received:r.data,code:o.invalid_enum_value,options:e}),p}return v(e.data)}get enum(){return this._def.values}}ts=new WeakMap,eg.create=(e,t)=>new eg({values:e,typeName:tl.ZodNativeEnum,...A(t)});class eb extends S{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==i.promise&&!1===t.common.async?(f(t,{code:o.invalid_type,expected:i.promise,received:t.parsedType}),p):v((t.parsedType===i.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}eb.create=(e,t)=>new eb({type:e,typeName:tl.ZodPromise,...A(t)});class ew extends S{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===tl.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,i={addIssue:e=>{f(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),"preprocess"===n.type){let e=n.transform(r.data,i);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return p;let n=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===n.status?p:"dirty"===n.status||"dirty"===t.value?m(n.value):n});{if("aborted"===t.value)return p;let n=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===n.status?p:"dirty"===n.status||"dirty"===t.value?m(n.value):n}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,i);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?p:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let n=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===n.status?p:("dirty"===n.status&&t.dirty(),e(n.value),{status:t.value,value:n.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>b(e)?Promise.resolve(n.transform(e.value,i)).then(e=>({status:t.value,value:e})):e);else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!b(e))return e;let a=n.transform(e.value,i);if(a instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:a}}tn.assertNever(n)}}ew.create=(e,t,r)=>new ew({schema:e,typeName:tl.ZodEffects,effect:t,...A(r)}),ew.createWithPreprocess=(e,t,r)=>new ew({schema:t,effect:{type:"preprocess",transform:e},typeName:tl.ZodEffects,...A(r)});class ex extends S{_parse(e){return this._getType(e)===i.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ex.create=(e,t)=>
1new ex({innerType:e,typeName:tl.ZodOptional,...A(t)});class e_ extends S{_parse(e){return this._getType(e)===i.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:tl.ZodNullable,...A(t)});class ek extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===i.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}ek.create=(e,t)=>new ek({innerType:e,typeName:tl.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...A(t)});class eE extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},n=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return w(n)?n.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===n.status?n.value:this._def.catchValue({get error(){return new s(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}eE.create=(e,t)=>new eE({innerType:e,typeName:tl.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...A(t)});class eA extends S{_parse(e){if(this._getType(e)!==i.nan){let t=this._getOrReturnCtx(e);return f(t,{code:o.invalid_type,expected:i.nan,received:t.parsedType}),p}return{status:"valid",value:e.data}}}eA.create=e=>new eA({typeName:tl.ZodNaN,...A(e)});let eS=Symbol("zod_brand");class eC extends S{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class eT extends S{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),m(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?p:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new eT({in:e,out:t,typeName:tl.ZodPipeline})}}class eP extends S{_parse(e){let t=this._def.innerType._parse(e),r=e=>(b(e)&&(e.value=Object.freeze(e.value)),e);return w(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}function eO(e,t){let r="function"==typeof e?e(t):"string"==typeof e?{message:e}:e;return"string"==typeof r?{message:r}:r}function ej(e,t={},r){return e?Q.create().superRefine((n,i)=>{var a,o;let s=e(n);if(s instanceof Promise)return s.then(e=>{var a,o;if(!e){let e=eO(t,n),s=null===(o=null!==(a=e.fatal)&&void 0!==a?a:r)||void 0===o||o;i.addIssue({code:"custom",...e,fatal:s})}});if(!s){let e=eO(t,n),s=null===(o=null!==(a=e.fatal)&&void 0!==a?a:r)||void 0===o||o;i.addIssue({code:"custom",...e,fatal:s})}}):Q.create()}eP.create=(e,t)=>new eP({innerType:e,typeName:tl.ZodReadonly,...A(t)});let eR={object:ei.lazycreate};!function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(tl||(tl={}));let eN=z.create,eF=H.create,eD=eA.create,eM=q.create,eL=K.create,eI=Y.create,eV=G.create,eB=X.create,e$=J.create,eZ=Q.create,eW=ee.create,eU=et.create,ez=er.create,eH=en.create,eq=ei.create,eK=ei.str
1ictCreate,eY=ea.create,eG=es.create,eX=el.create,eJ=eu.create,eQ=ec.create,e0=ed.create,e1=ef.create,e2=eh.create,e9=ep.create,e4=em.create,e3=ey.create,e5=eg.create,e6=eb.create,e8=ew.create,e7=ex.create,te=e_.create,tt=ew.createWithPreprocess,tr=eT.create;var tn,ti,ta,to,ts,tl,tu=Object.freeze({__proto__:null,defaultErrorMap:l,setErrorMap:function(e){u=e},getErrorMap:c,makeIssue:d,EMPTY_PATH:[],addIssueToContext:f,ParseStatus:h,INVALID:p,DIRTY:m,OK:v,isAborted:y,isDirty:g,isValid:b,isAsync:w,get util(){return tn},get objectUtil(){return ti},ZodParsedType:i,getParsedType:a,ZodType:S,datetimeRegex:U,ZodString:z,ZodNumber:H,ZodBigInt:q,ZodBoolean:K,ZodDate:Y,ZodSymbol:G,ZodUndefined:X,ZodNull:J,ZodAny:Q,ZodUnknown:ee,ZodNever:et,ZodVoid:er,ZodArray:en,ZodObject:ei,ZodUnion:ea,ZodDiscriminatedUnion:es,ZodIntersection:el,ZodTuple:eu,ZodRecord:ec,ZodMap:ed,ZodSet:ef,ZodFunction:eh,ZodLazy:ep,ZodLiteral:em,ZodEnum:ey,ZodNativeEnum:eg,ZodPromise:eb,ZodEffects:ew,ZodTransformer:ew,ZodOptional:ex,ZodNullable:e_,ZodDefault:ek,ZodCatch:eE,ZodNaN:eA,BRAND:eS,ZodBranded:eC,ZodPipeline:eT,ZodReadonly:eP,custom:ej,Schema:S,ZodSchema:S,late:eR,get ZodFirstPartyTypeKind(){return tl},coerce:{string:e=>z.create({...e,coerce:!0}),number:e=>H.create({...e,coerce:!0}),boolean:e=>K.create({...e,coerce:!0}),bigint:e=>q.create({...e,coerce:!0}),date:e=>Y.create({...e,coerce:!0})},any:eZ,array:eH,bigint:eM,boolean:eL,date:eI,discriminatedUnion:eG,effect:e8,enum:e3,function:e2,instanceof:(e,t={message:`Input not instance of ${e.name}`})=>ej(t=>t instanceof e,t),intersection:eX,lazy:e9,literal:e4,map:e0,nan:eD,nativeEnum:e5,never:eU,null:e$,nullable:te,number:eF,object:eq,oboolean:()=>eL().optional(),onumber:()=>eF().optional(),optional:e7,ostring:()=>eN().optional(),pipeline:tr,preprocess:tt,promise:e6,record:eQ,set:e1,strictObject:eK,string:eN,symbol:eV,transformer:e8,tuple:eJ,undefined:eB,union:eY,unknown:eW,void:ez,NEVER:p,ZodIssueCode:o,quotelessJson:e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ZodError:s})},58027:e=>{"use strict";e.exports=function(){var e={},t={};return e.on=function(e,r){var n={name:e,handler:r};return t[e]=t[e]||[],t[e].unshift(n),n},e.off=function(e){var r=t[e.name].indexOf(e);-1!==r&&t[e.name].splice(r,1)},e.trigger=function(e,r){var n,i=t[e];if(i)for(n=i.length;n--;)i[n].handler(r)},e}},59835:(e,t,r)=>{var n=r(87358);function i(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}(t=e.exports=r(24724)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var r=this.useColors;if(e[0]=(r?"%c":"")+this.namespace+(r?" %c":" ")+e[0]+(r?"%c ":" ")+"+"+t.humanize(this.diff),r){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,a=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&(i++,"%c"===e&&(a=i))}),e.splice(a,0,n)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=i,t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&"renderer"===window.process.type||"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(i())},62177:(e,t,r)=>{"use strict";r.d(t,{Gb:()=>R,Jt:()=>y,Op:()=>C,hZ:()=>x,mN:()=>e_,xI:()=>j,xW:()=>S});var n=r(12115),i=e=>"checkbox"===e.type,a=e=>e instanceof Date,o=e=>null==e;let s=e=>"object"==typeof e;var l=e=>!o(e)&&!Array.isArray(e)&&s(e)&&!a(e),u=e=>l(e)&&e.target?i(e.target)?e.target.checked:e.target.value:e,c=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,d=(e,t)=>e.has(c(t)),f=e=>{let t=e.constructor&&e.constructor.prototype;return l(t)&&t.hasOwnProperty("isPrototypeOf")},h="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function p(e){let t,r=Array.isArray(e),n="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(h&&(e instanceof Blob||n))&&(r||l(e))))return e;else if(t=r?[]:{},r||f(e))for(let r in e)e.hasOwnProperty(r)&&(t[r]=p(e[r]));else t=e;return t}var m=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,y=(e,t,r)=>{if(!t||!l(e))return r;let n=m(t.split(/[,[\].]+?/)).reduce((e,t)=>
1o(e)?e:e[t],e);return v(n)||n===e?v(e[t])?r:e[t]:n},g=e=>"boolean"==typeof e,b=e=>/^\w*$/.test(e),w=e=>m(e.replace(/["|']|\]/g,"").split(/\.|\[/)),x=(e,t,r)=>{let n=-1,i=b(t)?[t]:w(t),a=i.length,o=a-1;for(;++n<a;){let t=i[n],a=r;if(n!==o){let r=e[t];a=l(r)||Array.isArray(r)?r:isNaN(+i[n+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=a,e=e[t]}};let _={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},k={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},E={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},A=n.createContext(null),S=()=>n.useContext(A),C=e=>{let{children:t,...r}=e;return n.createElement(A.Provider,{value:r},t)};var T=(e,t,r,n=!0)=>{let i={defaultValues:t._defaultValues};for(let a in e)Object.defineProperty(i,a,{get:()=>(t._proxyFormState[a]!==k.all&&(t._proxyFormState[a]=!n||k.all),r&&(r[a]=!0),e[a])});return i},P=e=>"string"==typeof e,O=(e,t,r,n,i)=>P(e)?(n&&t.watch.add(e),y(r,e,i)):Array.isArray(e)?e.map(e=>(n&&t.watch.add(e),y(r,e))):(n&&(t.watchAll=!0),r);let j=e=>e.render(function(e){let t=S(),{name:r,disabled:i,control:a=t.control,shouldUnregister:o}=e,s=d(a._names.array,r),l=function(e){let t=S(),{control:r=t.control,name:i,defaultValue:a,disabled:o,exact:s}=e||{},l=n.useRef(i),u=n.useRef(a);l.current=i,n.useEffect(()=>r._subscribe({name:l.current,formState:{values:!0},exact:s,callback:e=>!o&&d(O(l.current,r._names,e.values||r._formValues,!1,u.current))}),[r,o,s]);let[c,d]=n.useState(r._getWatch(i,a));return n.useEffect(()=>r._removeUnmounted()),c}({control:a,name:r,defaultValue:y(a._formValues,r,y(a._defaultValues,r,e.defaultValue)),exact:!0}),c=function(e){let t=S(),{control:r=t.control,disabled:i,name:a,exact:o}=e||{},[s,l]=n.useState(r._formState),u=n.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=n.useRef(a);return c.current=a,n.useEffect(()=>r._subscribe({name:c.current,formState:u.current,exact:o,callback:e=>{i||l({...r._formState,...e})}}),[r,i,o]),n.useEffect(()=>{u.current.isValid&&r._setValid(!0)},[r]),n.useMemo(()=>T(s,r,u.current,!1),[s,r])}({control:a,name:r,exact:!0}),f=n.useRef(e),h=n.useRef(a.register(r,{...e.rules,value:l,...g(e.disabled)?{disabled:e.disabled}:{}})),m=n.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!y(c.errors,r)},isDirty:{enumerable:!0,get:()=>!!y(c.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!y(c.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!y(c.validatingFields,r)},error:{enumerable:!0,get:()=>y(c.errors,r)}}),[c,r]),b=n.useCallback(e=>h.current.onChange({target:{value:u(e),name:r},type:_.CHANGE}),[r]),w=n.useCallback(()=>h.current.onBlur({target:{value:y(a._formValues,r),name:r},type:_.BLUR}),[r,a._formValues]),k=n.useCallback(e=>{let t=y(a._fields,r);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})},[a._fields,r]),E=n.useMemo(()=>({name:r,value:l,...g(i)||c.disabled?{disabled:c.disabled||i}:{},onChange:b,onBlur:w,ref:k}),[r,i,c.disabled,b,w,k,l]);return n.useEffect(()=>{let e=a._options.shouldUnregister||o;a.register(r,{...f.current.rules,...g(f.current.disabled)?{disabled:f.current.disabled}:{}});let t=(e,t)=>{let r=y(a._fields,e);r&&r._f&&(r._f.mount=t)};if(t(r,!0),e){let e=p(y(a._options.defaultValues,r));x(a._defaultValues,r,e),v(y(a._formValues,r))&&x(a._formValues,r,e)}return s||a.register(r),()=>{(s?e&&!a._state.action:e)?a.unregister(r):t(r,!1)}},[r,a,s,o]),n.useEffect(()=>{a._setDisabledField({disabled:i,name:r})},[i,r,a]),n.useMemo(()=>({field:E,formState:c,fieldState:m}),[E,c,m])}(e));var R=(e,t,r,n,i)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[n]:i||!0}}:{},N=e=>Array.isArray(e)?e:[e],F=()=>{let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},D=e=>o(e)||!s(e);function M(e,t){if(D(e)||D(t))return e===t;if(a(e)&&a(t))return e.getTime()===t.getTime();let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i of r){let r=e[i];if(!n.includes(i))return!1;if("ref"!==i){let e=t[i];if(a(r)&&a(e)||l(r)&&l(e)||Array.isArray(r)&&Array.isArray(e)?!M(r,e):r!==e)return!1}}return!0}var L=e=>l(e)&&!Object.keys(e).length,I=e=>"file"===e.type,V=e=>"function"==typeof e,B=e=>{if(!h)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},$=e=>"select-multiple"===e.type,Z=e=>"radio"===e.type,W=e=>Z(e)||i(e),U=e=>B(e)&&e.isConnected;function z(e,t){let r=Array.isArray(t)?t:b(t)?[t]:w(t),n=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,n=0;for(;n<r;)e=v(e)?n++:e[t[n++]];return e}(e,r),i=r.length-1,a=r[i];return n&&delete n[a],0!==i&&(l(n)&&L(n)||Array.isArray(n)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!v(e[t]))return!1;return!0}(n))&&z(e,r.slice(0,-1)),e}
1var H=e=>{for(let t in e)if(V(e[t]))return!0;return!1};function q(e,t={}){let r=Array.isArray(e);if(l(e)||r)for(let r in e)Array.isArray(e[r])||l(e[r])&&!H(e[r])?(t[r]=Array.isArray(e[r])?[]:{},q(e[r],t[r])):o(e[r])||(t[r]=!0);return t}var K=(e,t)=>(function e(t,r,n){let i=Array.isArray(t);if(l(t)||i)for(let i in t)Array.isArray(t[i])||l(t[i])&&!H(t[i])?v(r)||D(n[i])?n[i]=Array.isArray(t[i])?q(t[i],[]):{...q(t[i])}:e(t[i],o(r)?{}:r[i],n[i]):n[i]=!M(t[i],r[i]);return n})(e,t,q(t));let Y={value:!1,isValid:!1},G={value:!0,isValid:!0};var X=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?G:{value:e[0].value,isValid:!0}:G:Y}return Y},J=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:n})=>v(e)?e:t?""===e?NaN:e?+e:e:r&&P(e)?new Date(e):n?n(e):e;let Q={isValid:!1,value:null};var ee=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,Q):Q;function et(e){let t=e.ref;return I(t)?t.files:Z(t)?ee(e.refs).value:$(t)?[...t.selectedOptions].map(({value:e})=>e):i(t)?X(e.refs).value:J(v(t.value)?e.ref.value:t.value,e)}var er=(e,t,r,n)=>{let i={};for(let r of e){let e=y(t,r);e&&x(i,r,e._f)}return{criteriaMode:r,names:[...e],fields:i,shouldUseNativeValidation:n}},en=e=>e instanceof RegExp,ei=e=>v(e)?e:en(e)?e.source:l(e)?en(e.value)?e.value.source:e.value:e,ea=e=>({isOnSubmit:!e||e===k.onSubmit,isOnBlur:e===k.onBlur,isOnChange:e===k.onChange,isOnAll:e===k.all,isOnTouch:e===k.onTouched});let eo="AsyncFunction";var es=e=>!!e&&!!e.validate&&!!(V(e.validate)&&e.validate.constructor.name===eo||l(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===eo)),el=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),eu=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let ec=(e,t,r,n)=>{for(let i of r||Object.keys(e)){let r=y(e,i);if(r){let{_f:e,...a}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!n)return!0;else if(e.ref&&t(e.ref,e.name)&&!n)return!0;else if(ec(a,t))break}else if(l(a)&&ec(a,t))break}}};function ed(e,t,r){let n=y(e,r);if(n||b(r))return{error:n,name:r};let i=r.split(".");for(;i.length;){let n=i.join("."),a=y(t,n),o=y(e,n);if(a&&!Array.isArray(a)&&r!==n)break;if(o&&o.type)return{name:n,error:o};i.pop()}return{name:r}}var ef=(e,t,r,n)=>{r(e);let{name:i,...a}=e;return L(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(e=>t[e]===(!n||k.all))},eh=(e,t,r)=>!e||!t||e===t||N(e).some(e=>e&&(r?e===t:e.startsWith(t)||t.startsWith(e))),ep=(e,t,r,n,i)=>!i.isOnAll&&(!r&&i.isOnTouch?!(t||e):(r?n.isOnBlur:i.isOnBlur)?!e:(r?!n.isOnChange:!i.isOnChange)||e),em=(e,t)=>!m(y(e,t)).length&&z(e,t),ev=(e,t,r)=>{let n=N(y(e,r));return x(n,"root",t[r]),x(e,r,n),e},ey=e=>P(e);function eg(e,t,r="validate"){if(ey(e)||Array.isArray(e)&&e.every(ey)||g(e)&&!e)return{type:r,message:ey(e)?e:"",ref:t}}var eb=e=>l(e)&&!en(e)?e:{value:e,message:""},ew=async(e,t,r,n,a,s)=>{let{ref:u,refs:c,required:d,maxLength:f,minLength:h,min:p,max:m,pattern:b,validate:w,name:x,valueAsNumber:_,mount:k}=e._f,A=y(r,x);if(!k||t.has(x))return{};let S=c?c[0]:u,C=e=>{a&&S.reportValidity&&(S.setCustomValidity(g(e)?"":e||""),S.reportValidity())},T={},O=Z(u),j=i(u),N=(_||I(u))&&v(u.value)&&v(A)||B(u)&&""===u.value||""===A||Array.isArray(A)&&!A.length,F=R.bind(null,x,n,T),D=(e,t,r,n=E.maxLength,i=E.minLength)=>{let a=e?t:r;T[x]={type:e?n:i,message:a,ref:u,...F(e?n:i,a)}};if(s?!Array.isArray(A)||!A.length:d&&(!(O||j)&&(N||o(A))||g(A)&&!A||j&&!X(c).isValid||O&&!ee(c).isValid)){let{value:e,message:t}=ey(d)?{value:!!d,message:d}:eb(d);if(e&&(T[x]={type:E.required,message:t,ref:S,...F(E.required,t)},!n))return C(t),T}if(!N&&(!o(p)||!o(m))){let e,t,r=eb(m),i=eb(p);if(o(A)||isNaN(A)){let n=u.valueAsDate||new Date(A),a=e=>new Date(new Date().toDateString()+" "+e),o="time"==u.type,s="week"==u.type;P(r.value)&&A&&(e=o?a(A)>a(r.value):s?A>r.value:n>new Date(r.value)),P(i.value)&&A&&(t=o?a(A)<a(i.value):s?A<i.value:n<new Date(i.value))}else{let n=u.valueAsNumber||(A?+A:A);o(r.value)||(e=n>r.value),o(i.value)||(t=n<i.value)}if((e||t)&&(D(!!e,r.message,i.message,E.max,E.min),!n))return C(T[x].message),T}if((f||h)&&!N&&(P(A)||s&&Array.isArray(A))){let e=eb(f),t=eb(h),r=!o(e.value)&&A.length>+e.value,i=!o(t.value)&&A.length<+t.value;if((r||i)&&(D(r,e.message,t.message),!n))return C(T[x].message),T}if(b&&!N&&P(A)){let{value:e,message:t}=eb(b);if(en(e)&&!A.match(e)&&(T[x]={type:E.pattern,message:t,ref:u,...F(E.pattern,t)},!n))return C(t),T}if(w){if(V(w)){let e=eg(await w(A,r),S);if(e&&(T[x]={...e,...F(E.validate,e.message)},!n))return C(e.message),T}else if(l(w)){let e={};for(let t in w){if(!L(e)&&!n)break;let i=eg(await w[t](A,r),S,t);
1i&&(e={...i,...F(t,i.message)},C(i.message),n&&(T[x]=e))}if(!L(e)&&(T[x]={ref:S,...e},!n))return T}}return C(!0),T};let ex={mode:k.onSubmit,reValidateMode:k.onChange,shouldFocusError:!0};function e_(e={}){let t=n.useRef(void 0),r=n.useRef(void 0),[s,c]=n.useState({isDirty:!1,isValidating:!1,isLoading:V(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:V(e.defaultValues)?void 0:e.defaultValues});!t.current&&(t.current={...e.formControl?e.formControl:function(e={}){let t,r={...ex,...e},n={submitCount:0,isDirty:!1,isLoading:V(r.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:r.errors||{},disabled:r.disabled||!1},s={},c=(l(r.defaultValues)||l(r.values))&&p(r.values||r.defaultValues)||{},f=r.shouldUnregister?{}:p(c),b={action:!1,mount:!1,watch:!1},w={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},E=0,A={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},S={...A},C={array:F(),state:F()},T=ea(r.mode),j=ea(r.reValidateMode),R=r.criteriaMode===k.all,D=e=>t=>{clearTimeout(E),E=setTimeout(e,t)},Z=async e=>{if(!r.disabled&&(A.isValid||S.isValid||e)){let e=r.resolver?L((await Q()).errors):await en(s,!0);e!==n.isValid&&C.state.next({isValid:e})}},H=(e,t)=>{!r.disabled&&(A.isValidating||A.validatingFields||S.isValidating||S.validatingFields)&&((e||Array.from(w.mount)).forEach(e=>{e&&(t?x(n.validatingFields,e,t):z(n.validatingFields,e))}),C.state.next({validatingFields:n.validatingFields,isValidating:!L(n.validatingFields)}))},q=(e,t)=>{x(n.errors,e,t),C.state.next({errors:n.errors})},Y=(e,t,r,n)=>{let i=y(s,e);if(i){let a=y(f,e,v(r)?y(c,e):r);v(a)||n&&n.defaultChecked||t?x(f,e,t?a:et(i._f)):eg(e,a),b.mount&&Z()}},G=(e,t,i,a,o)=>{let s=!1,l=!1,u={name:e};if(!r.disabled){if(!i||a){(A.isDirty||S.isDirty)&&(l=n.isDirty,n.isDirty=u.isDirty=eo(),s=l!==u.isDirty);let r=M(y(c,e),t);l=!!y(n.dirtyFields,e),r?z(n.dirtyFields,e):x(n.dirtyFields,e,!0),u.dirtyFields=n.dirtyFields,s=s||(A.dirtyFields||S.dirtyFields)&&!r!==l}if(i){let t=y(n.touchedFields,e);t||(x(n.touchedFields,e,i),u.touchedFields=n.touchedFields,s=s||(A.touchedFields||S.touchedFields)&&t!==i)}s&&o&&C.state.next(u)}return s?u:{}},X=(e,i,a,o)=>{let s=y(n.errors,e),l=(A.isValid||S.isValid)&&g(i)&&n.isValid!==i;if(r.delayError&&a?(t=D(()=>q(e,a)))(r.delayError):(clearTimeout(E),t=null,a?x(n.errors,e,a):z(n.errors,e)),(a?!M(s,a):s)||!L(o)||l){let t={...o,...l&&g(i)?{isValid:i}:{},errors:n.errors,name:e};n={...n,...t},C.state.next(t)}},Q=async e=>{H(e,!0);let t=await r.resolver(f,r.context,er(e||w.mount,s,r.criteriaMode,r.shouldUseNativeValidation));return H(e),t},ee=async e=>{let{errors:t}=await Q(e);if(e)for(let r of e){let e=y(t,r);e?x(n.errors,r,e):z(n.errors,r)}else n.errors=t;return t},en=async(e,t,i={valid:!0})=>{for(let a in e){let o=e[a];if(o){let{_f:e,...s}=o;if(e){let s=w.array.has(e.name),l=o._f&&es(o._f);l&&A.validatingFields&&H([a],!0);let u=await ew(o,w.disabled,f,R,r.shouldUseNativeValidation&&!t,s);if(l&&A.validatingFields&&H([a]),u[e.name]&&(i.valid=!1,t))break;t||(y(u,e.name)?s?ev(n.errors,u,e.name):x(n.errors,e.name,u[e.name]):z(n.errors,e.name))}L(s)||await en(s,t,i)}}return i.valid},eo=(e,t)=>!r.disabled&&(e&&t&&x(f,e,t),!M(eS(),c)),ey=(e,t,r)=>O(e,w,{...b.mount?f:v(t)?c:P(e)?{[e]:t}:t},r,t),eg=(e,t,r={})=>{let n=y(s,e),a=t;if(n){let r=n._f;r&&(r.disabled||x(f,e,J(t,r)),a=B(r.ref)&&o(t)?"":t,$(r.ref)?[...r.ref.options].forEach(e=>e.selected=a.includes(e.value)):r.refs?i(r.ref)?r.refs.length>1?r.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find(t=>t===e.value):a===e.value)):r.refs[0]&&(r.refs[0].checked=!!a):r.refs.forEach(e=>e.checked=e.value===a):I(r.ref)?r.ref.value="":(r.ref.value=a,r.ref.type||C.state.next({name:e,values:p(f)})))}(r.shouldDirty||r.shouldTouch)&&G(e,a,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&eA(e)},eb=(e,t,r)=>{for(let n in t){let i=t[n],o=`${e}.${n}`,u=y(s,o);(w.array.has(e)||l(i)||u&&!u._f)&&!a(i)?eb(o,i,r):eg(o,i,r)}},e_=(e,t,r={})=>{let i=y(s,e),a=w.array.has(e),l=p(t);x(f,e,l),a?(C.array.next({name:e,values:p(f)}),(A.isDirty||A.dirtyFields||S.isDirty||S.dirtyFields)&&r.shouldDirty&&C.state.next({name:e,dirtyFields:K(c,f),isDirty:eo(e,l)})):!i||i._f||o(l)?eg(e,l,r):eb(e,l,r),eu(e,w)&&C.state.next({...n}),C.state.next({name:b.mount?e:void 0,values:p(f)})},ek=async e=>{b.mount=!0;
1let i=e.target,o=i.name,l=!0,c=y(s,o),d=e=>{l=Number.isNaN(e)||a(e)&&isNaN(e.getTime())||M(e,y(f,o,e))};if(c){let a,h,m=i.type?et(c._f):u(e),v=e.type===_.BLUR||e.type===_.FOCUS_OUT,g=!el(c._f)&&!r.resolver&&!y(n.errors,o)&&!c._f.deps||ep(v,y(n.touchedFields,o),n.isSubmitted,j,T),b=eu(o,w,v);x(f,o,m),v?(c._f.onBlur&&c._f.onBlur(e),t&&t(0)):c._f.onChange&&c._f.onChange(e);let k=G(o,m,v),E=!L(k)||b;if(v||C.state.next({name:o,type:e.type,values:p(f)}),g)return(A.isValid||S.isValid)&&("onBlur"===r.mode?v&&Z():v||Z()),E&&C.state.next({name:o,...b?{}:k});if(!v&&b&&C.state.next({...n}),r.resolver){let{errors:e}=await Q([o]);if(d(m),l){let t=ed(n.errors,s,o),r=ed(e,s,t.name||o);a=r.error,o=r.name,h=L(e)}}else H([o],!0),a=(await ew(c,w.disabled,f,R,r.shouldUseNativeValidation))[o],H([o]),d(m),l&&(a?h=!1:(A.isValid||S.isValid)&&(h=await en(s,!0)));l&&(c._f.deps&&eA(c._f.deps),X(o,h,a,k))}},eE=(e,t)=>{if(y(n.errors,t)&&e.focus)return e.focus(),1},eA=async(e,t={})=>{let i,a,o=N(e);if(r.resolver){let t=await ee(v(e)?e:o);i=L(t),a=e?!o.some(e=>y(t,e)):i}else e?((a=(await Promise.all(o.map(async e=>{let t=y(s,e);return await en(t&&t._f?{[e]:t}:t)}))).every(Boolean))||n.isValid)&&Z():a=i=await en(s);return C.state.next({...!P(e)||(A.isValid||S.isValid)&&i!==n.isValid?{}:{name:e},...r.resolver||!e?{isValid:i}:{},errors:n.errors}),t.shouldFocus&&!a&&ec(s,eE,e?o:w.mount),a},eS=e=>{let t={...b.mount?f:c};return v(e)?t:P(e)?y(t,e):e.map(e=>y(t,e))},eC=(e,t)=>({invalid:!!y((t||n).errors,e),isDirty:!!y((t||n).dirtyFields,e),error:y((t||n).errors,e),isValidating:!!y(n.validatingFields,e),isTouched:!!y((t||n).touchedFields,e)}),eT=(e,t,r)=>{let i=(y(s,e,{_f:{}})._f||{}).ref,{ref:a,message:o,type:l,...u}=y(n.errors,e)||{};x(n.errors,e,{...u,...t,ref:i}),C.state.next({name:e,errors:n.errors,isValid:!1}),r&&r.shouldFocus&&i&&i.focus&&i.focus()},eP=e=>C.state.subscribe({next:t=>{eh(e.name,t.name,e.exact)&&ef(t,e.formState||A,eL,e.reRenderRoot)&&e.callback({values:{...f},...n,...t})}}).unsubscribe,eO=(e,t={})=>{for(let i of e?N(e):w.mount)w.mount.delete(i),w.array.delete(i),t.keepValue||(z(s,i),z(f,i)),t.keepError||z(n.errors,i),t.keepDirty||z(n.dirtyFields,i),t.keepTouched||z(n.touchedFields,i),t.keepIsValidating||z(n.validatingFields,i),r.shouldUnregister||t.keepDefaultValue||z(c,i);C.state.next({values:p(f)}),C.state.next({...n,...t.keepDirty?{isDirty:eo()}:{}}),t.keepIsValid||Z()},ej=({disabled:e,name:t})=>{(g(e)&&b.mount||e||w.disabled.has(t))&&(e?w.disabled.add(t):w.disabled.delete(t))},eR=(e,t={})=>{let n=y(s,e),i=g(t.disabled)||g(r.disabled);return x(s,e,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:e}},name:e,mount:!0,...t}}),w.mount.add(e),n?ej({disabled:g(t.disabled)?t.disabled:r.disabled,name:e}):Y(e,!0,t.value),{...i?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:ei(t.min),max:ei(t.max),minLength:ei(t.minLength),maxLength:ei(t.maxLength),pattern:ei(t.pattern)}:{},name:e,onChange:ek,onBlur:ek,ref:i=>{if(i){eR(e,t),n=y(s,e);let r=v(i.value)&&i.querySelectorAll&&i.querySelectorAll("input,select,textarea")[0]||i,a=W(r),o=n._f.refs||[];(a?o.find(e=>e===r):r===n._f.ref)||(x(s,e,{_f:{...n._f,...a?{refs:[...o.filter(U),r,...Array.isArray(y(c,e))?[{}]:[]],ref:{type:r.type,name:e}}:{ref:r}}}),Y(e,!1,void 0,r))}else(n=y(s,e,{}))._f&&(n._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&!(d(w.array,e)&&b.action)&&w.unMount.add(e)}}},eN=()=>r.shouldFocusError&&ec(s,eE,w.mount),eF=(e,t)=>async i=>{let a;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let o=p(f);if(C.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await Q();n.errors=e,o=t}else await en(s);if(w.disabled.size)for(let e of w.disabled)x(o,e,void 0);if(z(n.errors,"root"),L(n.errors)){C.state.next({errors:{}});try{await e(o,i)}catch(e){a=e}}else t&&await t({...n.errors},i),eN(),setTimeout(eN);if(C.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:L(n.errors)&&!a,submitCount:n.submitCount+1,errors:n.errors}),a)throw a},eD=(e,t={})=>{let i=e?p(e):c,a=p(i),o=L(e),l=o?c:a;if(t.keepDefaultValues||(c=i),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...w.mount,...Object.keys(K(c,f))])))y(n.dirtyFields,e)?x(l,e,y(f,e)):e_(e,y(l,e));else{if(h&&v(e))for(let e of w.mount){let t=y(s,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(B(e)){let t=e.closest("form");if(t){t.reset();break}}}}for(let e of w.mount)e_(e,y(l,e))}f=p(l),C.array.next({values:{...l}}),C.state.next({values:{...l}})}w={mount:t.keepDirtyValues?w.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!A.isValid||!!t.keepIsValid||!!t.keepDirtyValues,b.watch=!!r.shouldUnregister,C.state.next({submitCount:t.keepSubmitCount?n.submitCount:0,isDirty:!o&&(t.keepDirty?n.isDirty:!!(t.keepDefaultValues&&!M(e,c))),isSubmitted:!!t.keepIsSubmitted&&n.isSubmitted,dirtyFields:o?{}:t.keepDirtyValues?t.keepDefaultValues&&f?K(c,f):n.dirtyFields:t.keepDefaultValues&&e?K(c,e):t.keepDirty?n.dirtyFields:{},touchedFields:t.keepTouched?n.touchedFields:{},errors:t.keepErrors?n.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&n.isSubmitSuccessful,isSubmitting:!1})},eM=(e,t)=>eD(V(e)?e(f):e,t),eL=e=>{n={...n,...e}},eI={control:{register:eR,unregister:eO,getFieldState:eC,handleSubmit:eF,setError:eT,_subscribe:eP,_runSchema:Q,_getWatch:ey,_getDirty:eo,_setValid:Z,_setFieldArray:(e,t=[],i,a,o=!0,l=!0)=>
1{if(a&&i&&!r.disabled){if(b.action=!0,l&&Array.isArray(y(s,e))){let t=i(y(s,e),a.argA,a.argB);o&&x(s,e,t)}if(l&&Array.isArray(y(n.errors,e))){let t=i(y(n.errors,e),a.argA,a.argB);o&&x(n.errors,e,t),em(n.errors,e)}if((A.touchedFields||S.touchedFields)&&l&&Array.isArray(y(n.touchedFields,e))){let t=i(y(n.touchedFields,e),a.argA,a.argB);o&&x(n.touchedFields,e,t)}(A.dirtyFields||S.dirtyFields)&&(n.dirtyFields=K(c,f)),C.state.next({name:e,isDirty:eo(e,t),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else x(f,e,t)},_setDisabledField:ej,_setErrors:e=>{n.errors=e,C.state.next({errors:n.errors,isValid:!1})},_getFieldArray:e=>m(y(b.mount?f:c,e,r.shouldUnregister?y(c,e,[]):[])),_reset:eD,_resetDefaultValues:()=>V(r.defaultValues)&&r.defaultValues().then(e=>{eM(e,r.resetOptions),C.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of w.unMount){let t=y(s,e);t&&(t._f.refs?t._f.refs.every(e=>!U(e)):!U(t._f.ref))&&eO(e)}w.unMount=new Set},_disableForm:e=>{g(e)&&(C.state.next({disabled:e}),ec(s,(t,r)=>{let n=y(s,r);n&&(t.disabled=n._f.disabled||e,Array.isArray(n._f.refs)&&n._f.refs.forEach(t=>{t.disabled=n._f.disabled||e}))},0,!1))},_subjects:C,_proxyFormState:A,get _fields(){return s},get _formValues(){return f},get _state(){return b},set _state(value){b=value},get _defaultValues(){return c},get _names(){return w},set _names(value){w=value},get _formState(){return n},get _options(){return r},set _options(value){r={...r,...value}}},subscribe:e=>(b.mount=!0,S={...S,...e.formState},eP({...e,formState:S})),trigger:eA,register:eR,handleSubmit:eF,watch:(e,t)=>V(e)?C.state.subscribe({next:r=>e(ey(void 0,t),r)}):ey(e,t,!0),setValue:e_,getValues:eS,reset:eM,resetField:(e,t={})=>{y(s,e)&&(v(t.defaultValue)?e_(e,p(y(c,e))):(e_(e,t.defaultValue),x(c,e,p(t.defaultValue))),t.keepTouched||z(n.touchedFields,e),t.keepDirty||(z(n.dirtyFields,e),n.isDirty=t.defaultValue?eo(e,p(y(c,e))):eo()),!t.keepError&&(z(n.errors,e),A.isValid&&Z()),C.state.next({...n}))},clearErrors:e=>{e&&N(e).forEach(e=>z(n.errors,e)),C.state.next({errors:e?n.errors:{}})},unregister:eO,setError:eT,setFocus:(e,t={})=>{let r=y(s,e),n=r&&r._f;if(n){let e=n.refs?n.refs[0]:n.ref;e.focus&&(e.focus(),t.shouldSelect&&V(e.select)&&e.select())}},getFieldState:eC};return{...eI,formControl:eI}}(e),formState:s},e.formControl&&e.defaultValues&&!V(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions));let f=t.current.control;return f._options=e,n.useLayoutEffect(()=>f._subscribe({formState:f._proxyFormState,callback:()=>c({...f._formState}),reRenderRoot:!0}),[f]),n.useEffect(()=>f._disableForm(e.disabled),[f,e.disabled]),n.useEffect(()=>{if(f._proxyFormState.isDirty){let e=f._getDirty();e!==s.isDirty&&f._subjects.state.next({isDirty:e})}},[f,s.isDirty]),n.useEffect(()=>{e.values&&!M(e.values,r.current)?(f._reset(e.values,f._options.resetOptions),r.current=e.values,c(e=>({...e}))):f._resetDefaultValues()},[e.values,f]),n.useEffect(()=>{e.errors&&!L(e.errors)&&f._setErrors(e.errors)},[e.errors,f]),n.useEffect(()=>{f._state.mount||(f._setValid(),f._state.mount=!0),f._state.watch&&(f._state.watch=!1,f._subjects.state.next({...f._formState})),f._removeUnmounted()}),n.useEffect(()=>{e.shouldUnregister&&f._subjects.state.next({values:f._getWatch()})},[e.shouldUnregister,f]),t.current.formState=T(s,f),t.current}},64439:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},65492:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=s(r(58027)),a=s(r(98359)),o=s(r(14468));function s(e){return e&&e.__esModule?e:{default:e}}var l=void 0;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=(0,i.default)();if(l||(l=(0,a.default)(s)),t.events)throw Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw Error('Element "'+e+'" does not exist.');t.events=o.default.proxyEvents(s);var u=new Promise(function(r){(void 0===e?"undefined":n(e))==="object"&&e.playVideo instanceof Function?r(e):l.then(function(n){var i=new n.Player(e,t);return s.on("ready",function(){r(i)}),null})}),c=o.default.promisifyPlayer(u,r);return c.on=s.on,c.off=s.off,c},e.exports=t.default},66444:(e,t,r)=>{"use strict";r.d(t,{A:()=>k});var n=r(38637),i=r.n(n),a=r(12115),o=r(51616),s=r.n(o),l=r(65492),u=r.n(l),c=Object.defineProperty,d=Object.defineProperties,f=Object.getOwnPropertyDescriptors,h=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,v=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,y=(e,t)=>{for(var r in t||(t={}))p.call(t,r)&&v(e,r,t[r]);if(h)for(var r of h(t))m.call(t,r)&&v(e,r,t[r]);return e},g=(e,t)=>d(e,f(t)),b=(e,t,r)=>new Promise((n,i)=>{var a=e=>
1{try{s(r.next(e))}catch(e){i(e)}},o=e=>{try{s(r.throw(e))}catch(e){i(e)}},s=e=>e.done?n(e.value):Promise.resolve(e.value).then(a,o);s((r=r.apply(e,t)).next())});function w(e={}){return g(y({},e),{height:0,width:0,playerVars:g(y({},e.playerVars),{autoplay:0,start:0,end:0})})}var x={videoId:i().string,id:i().string,className:i().string,iframeClassName:i().string,style:i().object,title:i().string,loading:i().oneOf(["lazy","eager"]),opts:i().objectOf(i().any),onReady:i().func,onError:i().func,onPlay:i().func,onPause:i().func,onEnd:i().func,onStateChange:i().func,onPlaybackRateChange:i().func,onPlaybackQualityChange:i().func},_=class extends a.Component{constructor(e){super(e),this.destroyPlayerPromise=void 0,this.onPlayerReady=e=>{var t,r;return null==(r=(t=this.props).onReady)?void 0:r.call(t,e)},this.onPlayerError=e=>{var t,r;return null==(r=(t=this.props).onError)?void 0:r.call(t,e)},this.onPlayerStateChange=e=>{var t,r,n,i,a,o,s,l;switch(null==(r=(t=this.props).onStateChange)||r.call(t,e),e.data){case _.PlayerState.ENDED:null==(i=(n=this.props).onEnd)||i.call(n,e);break;case _.PlayerState.PLAYING:null==(o=(a=this.props).onPlay)||o.call(a,e);break;case _.PlayerState.PAUSED:null==(l=(s=this.props).onPause)||l.call(s,e)}},this.onPlayerPlaybackRateChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackRateChange)?void 0:r.call(t,e)},this.onPlayerPlaybackQualityChange=e=>{var t,r;return null==(r=(t=this.props).onPlaybackQualityChange)?void 0:r.call(t,e)},this.destroyPlayer=()=>this.internalPlayer?(this.destroyPlayerPromise=this.internalPlayer.destroy().then(()=>this.destroyPlayerPromise=void 0),this.destroyPlayerPromise):Promise.resolve(),this.createPlayer=()=>{if("undefined"==typeof document)return;if(this.destroyPlayerPromise){this.destroyPlayerPromise.then(this.createPlayer);return}let e=g(y({},this.props.opts),{videoId:this.props.videoId});this.internalPlayer=u()(this.container,e),this.internalPlayer.on("ready",this.onPlayerReady),this.internalPlayer.on("error",this.onPlayerError),this.internalPlayer.on("stateChange",this.onPlayerStateChange),this.internalPlayer.on("playbackRateChange",this.onPlayerPlaybackRateChange),this.internalPlayer.on("playbackQualityChange",this.onPlayerPlaybackQualityChange),(this.props.title||this.props.loading)&&this.internalPlayer.getIframe().then(e=>{this.props.title&&e.setAttribute("title",this.props.title),this.props.loading&&e.setAttribute("loading",this.props.loading)})},this.resetPlayer=()=>this.destroyPlayer().then(this.createPlayer),this.updatePlayer=()=>{var e;null==(e=this.internalPlayer)||e.getIframe().then(e=>{this.props.id?e.setAttribute("id",this.props.id):e.removeAttribute("id"),this.props.iframeClassName?e.setAttribute("class",this.props.iframeClassName):e.removeAttribute("class"),this.props.opts&&this.props.opts.width?e.setAttribute("width",this.props.opts.width.toString()):e.removeAttribute("width"),this.props.opts&&this.props.opts.height?e.setAttribute("height",this.props.opts.height.toString()):e.removeAttribute("height"),this.props.title?e.setAttribute("title",this.props.title):e.setAttribute("title","YouTube video player"),this.props.loading?e.setAttribute("loading",this.props.loading):e.removeAttribute("loading")})},this.getInternalPlayer=()=>this.internalPlayer,this.updateVideo=()=>{var e,t,r,n;if(void 0===this.props.videoId||null===this.props.videoId){null==(e=this.internalPlayer)||e.stopVideo();return}let i=!1,a={videoId:this.props.videoId};if((null==(t=this.props.opts)?void 0:t.playerVars)&&(i=1===this.props.opts.playerVars.autoplay,"start"in this.props.opts.playerVars&&(a.startSeconds=this.props.opts.playerVars.start),"end"in this.props.opts.playerVars&&(a.endSeconds=this.props.opts.playerVars.end)),i){null==(r=this.internalPlayer)||r.loadVideoById(a);return}null==(n=this.internalPlayer)||n.cueVideoById(a)},this.refContainer=e=>{this.container=e},this.container=null,this.internalPlayer=null}componentDidMount(){this.createPlayer()}componentDidUpdate(e){return b(this,null,function*(){var t,r,n,i,a,o;t=this.props,(e.id!==t.id||e.className!==t.className||(null==(r=e.opts)?void 0:r.width)!==(null==(n=t.opts)?void 0:n.width)||(null==(i=e.opts)?void 0:i.height)!==(null==(a=t.opts)?void 0:a.height)||e.iframeClassName!==t.iframeClassName||e.title!==t.title)&&this.updatePlayer(),o=this.props,(e.videoId!==o.videoId||!s()(w(e.opts),w(o.opts)))&&(yield this.resetPlayer()),function(e,t){var r,n;if(e.videoId!==t.videoId)return!0;let i=(null==(r=e.opts)?void 0:r.playerVars)||{},a=(null==(n=t.opts)?void 0:n.playerVars)||{};return i.start!==a.start||i.end!==a.end}(e,this.props)&&this.updateVideo()})}componentWillUnmount(){this.destroyPlayer()}render(){return a.createElement("div",{className:this.props.className,style:this.props.style},a.createElement("div",{id:this.props.id,className:this.props.iframeClassName,ref:this.refContainer}))}};_.propTypes=x,_.defaultProps={videoId:"",id:"",className:"",iframeClassName:"",style:{},title:"",loading:void 0,opts:{},onReady:()=>{},onError:()=>{},onPlay:()=>{},onPause:()=>{},onEnd:()=>{},onStateChange:()=>{},onPlaybackRateChange:()=>{},onPlaybackQualityChange:()=>{}},_.PlayerState={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3,CUED:5};var k=_},66634:(e,t,r)=>{"use strict";r.d(t,{DX:()=>s,TL:()=>o});var n=r(12115);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var a=r(95155);function o(e){let t=function(e){let t=n.forwardRef((e,t)=>
1{let{children:r,...a}=e;if(n.isValidElement(r)){var o;let e,s,l=(o=r,(s=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(s=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let r={...t};for(let n in t){let i=e[n],a=t[n];/^on[A-Z]/.test(n)?i&&a?r[n]=(...e)=>{a(...e),i(...e)}:i&&(r[n]=i):"style"===n?r[n]={...i,...a}:"className"===n&&(r[n]=[i,a].filter(Boolean).join(" "))}return{...e,...r}}(a,r.props);return r.type!==n.Fragment&&(u.ref=t?function(...e){return t=>{let r=!1,n=e.map(e=>{let n=i(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():i(e[t],null)}}}}(t,l):l),n.cloneElement(r,u)}return n.Children.count(r)>1?n.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),r=n.forwardRef((e,r)=>{let{children:i,...o}=e,s=n.Children.toArray(i),l=s.find(u);if(l){let e=l.props.children,i=s.map(t=>t!==l?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,a.jsx)(t,{...o,ref:r,children:n.isValidElement(e)?n.cloneElement(e,void 0,i):null})}return(0,a.jsx)(t,{...o,ref:r,children:i})});return r.displayName=`${e}.Slot`,r}var s=o("Slot"),l=Symbol("radix.slottable");function u(e){return n.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===l}},66766:(e,t,r)=>{"use strict";r.d(t,{default:()=>i.a});var n=r(71469),i=r.n(n)},66853:e=>{function t(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}e.exports=function(e,r){r=r||{};var n,i,a=typeof e;if("string"===a&&e.length>0){var o=e;if(!((o=String(o)).length>100)){var s=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(o);if(s){var l=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"days":case"day":case"d":return 864e5*l;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*l;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*l;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:break}}}return}if("number"===a&&!1===isNaN(e)){return r.long?t(n=e,864e5,"day")||t(n,36e5,"hour")||t(n,6e4,"minute")||t(n,1e3,"second")||n+" ms":(i=e)>=864e5?Math.round(i/864e5)+"d":i>=36e5?Math.round(i/36e5)+"h":i>=6e4?Math.round(i/6e4)+"m":i>=1e3?Math.round(i/1e3)+"s":i+"ms"}throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},67460:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},70607:(e,t,r)=>{"use strict";function n(e){return Array.isArray?Array.isArray(e):"[object Array]"===c(e)}r.d(t,{A:()=>Q});let i=1/0;function a(e){return"string"==typeof e}function o(e){return"number"==typeof e}function s(e){return"object"==typeof e}function l(e){return null!=e}function u(e){return!e.trim().length}function c(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}let d=e=>`Invalid value for key ${e}`,f=e=>`Pattern length exceeds max of ${e}.`,h=e=>`Missing ${e} property in key`,p=e=>`Property 'weight' in key '${e}' must be a positive integer`,m=Object.prototype.hasOwnProperty;class v{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(e=>{let r=y(e);this._keys.push(r),this._keyMap[r.id]=r,t+=r.weight}),this._keys.forEach(e=>{e.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function y(e){let t=null,r=null,i=null,o=1,s=null;if(a(e)||n(e))i=e,t=g(e),r=b(e);else{if(!m.call(e,"name"))throw Error(h("name"));let n=e.name;if(i=n,m.call(e,"weight")&&(o=e.weight)<=0)throw Error(p(n));t=g(n),r=b(n),s=e.getFn}return{path:t,id:r,weight:o,src:i,getFn:s}}function g(e){return n(e)?e:e.split(".")}function b(e){return n(e)?e.join("."):e}var w={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1,includeMatches:!1,findAllMatches:!1,minMatchCharLength:1,location:0,threshold:.6,distance:100,useExtendedSearch:!1,getFn:function(e,t){let r=[],u=!1,d=(e,t,f)=>{if(l(e))if(t[f]){var h,p;let m=e[t[f]];if(!l(m))return;if(f===t.length-1&&(a(m)||o(m)||!0===(h=m)||!1===h||s(p=h)&&null!==p&&"[object Boolean]"==c(h)))r.push(null==m?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-i?"-0":t}(m));else if(n(m)){u=!0;for(let e=0,r=m.length;e<r;e+=1)d(m[e],t,f+1)}else t.length&&d(m,t,f+1)}else r.push(e)};return d(e,a(t)?t.split("."):t,0),u?r:r[0]},ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};let x=/[^ ]+/g;class _{constructor({getFn:e=w.getFn,fieldNormWeight:t=w.fieldNormWeight}={}){this.norm=function(e=1,t=3){let r=new Map,n=Math.pow(10,t);return{get(t){let i=t.match(x).length;if(r.has(i))return r.get(i);let a=parseFloat(Math.round(1/Math.pow(i,.5*e)*n)/n);return r.set(i,a),a},clear(){r.clear()}}}(t,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((e,t)=>{this._keysMap[e.id]=t})}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,a(this.docs[0])?this.docs.forEach((e,t)=>{this._addString(e,t)}):this.docs.forEach((e,t)=>{this._addObject(e,t)}),this.norm.clear())}add(e){let t=this.size();a(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,r=this.size();t<r;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_addString(e,t){if(!l(e)||u(e))return;let r={v:e,i:t,n:this.norm.get(e)};this.records.push(r)}_addObject(e,t){let r={i:t,$:{}};this.keys.forEach((t,i)=>{let o=t.getFn?t.getFn(e):this.getFn(e,t.path);if(l(o)){if(n(o)){let e=[],t=[{nestedArrIndex:-1,value:o}];for(;t.length;){let{nestedArrIndex:r,value:i}=t.pop();if(l(i))if(a(i)&&!u(i)){let t={v:i,i:r,n:this.norm.get(i)};e.push(t)}
1else n(i)&&i.forEach((e,r)=>{t.push({nestedArrIndex:r,value:e})})}r.$[i]=e}else if(a(o)&&!u(o)){let e={v:o,n:this.norm.get(o)};r.$[i]=e}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function k(e,t,{getFn:r=w.getFn,fieldNormWeight:n=w.fieldNormWeight}={}){let i=new _({getFn:r,fieldNormWeight:n});return i.setKeys(e.map(y)),i.setSources(t),i.create(),i}function E(e,{errors:t=0,currentLocation:r=0,expectedLocation:n=0,distance:i=w.distance,ignoreLocation:a=w.ignoreLocation}={}){let o=t/e.length;if(a)return o;let s=Math.abs(n-r);return i?o+s/i:s?1:o}let A=String.prototype.normalize?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,""):e=>e;class S{constructor(e,{location:t=w.location,threshold:r=w.threshold,distance:n=w.distance,includeMatches:i=w.includeMatches,findAllMatches:a=w.findAllMatches,minMatchCharLength:o=w.minMatchCharLength,isCaseSensitive:s=w.isCaseSensitive,ignoreDiacritics:l=w.ignoreDiacritics,ignoreLocation:u=w.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:u},e=s?e:e.toLowerCase(),e=l?A(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;let c=(e,t)=>{this.chunks.push({pattern:e,alphabet:function(e){let t={};for(let r=0,n=e.length;r<n;r+=1){let i=e.charAt(r);t[i]=(t[i]||0)|1<<n-r-1}return t}(e),startIndex:t})},d=this.pattern.length;if(d>32){let e=0,t=d%32,r=d-t;for(;e<r;)c(this.pattern.substr(e,32),e),e+=32;if(t){let e=d-32;c(this.pattern.substr(e),e)}}else c(this.pattern,0)}searchIn(e){let{isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n}=this.options;if(e=t?e:e.toLowerCase(),e=r?A(e):e,this.pattern===e){let t={isMatch:!0,score:0};return n&&(t.indices=[[0,e.length-1]]),t}let{location:i,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:l,ignoreLocation:u}=this.options,c=[],d=0,h=!1;this.chunks.forEach(({pattern:t,alphabet:r,startIndex:p})=>{let{isMatch:m,score:v,indices:y}=function(e,t,r,{location:n=w.location,distance:i=w.distance,threshold:a=w.threshold,findAllMatches:o=w.findAllMatches,minMatchCharLength:s=w.minMatchCharLength,includeMatches:l=w.includeMatches,ignoreLocation:u=w.ignoreLocation}={}){let c;if(t.length>32)throw Error(f(32));let d=t.length,h=e.length,p=Math.max(0,Math.min(n,h)),m=a,v=p,y=s>
11||l,g=y?Array(h):[];for(;(c=e.indexOf(t,v))>-1;)if(m=Math.min(E(t,{currentLocation:c,expectedLocation:p,distance:i,ignoreLocation:u}),m),v=c+d,y){let e=0;for(;e<d;)g[c+e]=1,e+=1}v=-1;let b=[],x=1,_=d+h,k=1<<d-1;for(let n=0;n<d;n+=1){let a=0,s=_;for(;a<s;)E(t,{errors:n,currentLocation:p+s,expectedLocation:p,distance:i,ignoreLocation:u})<=m?a=s:_=s,s=Math.floor((_-a)/2+a);_=s;let l=Math.max(1,p-s+1),c=o?h:Math.min(p+s,h)+d,f=Array(c+2);f[c+1]=(1<<n)-1;for(let a=c;a>=l;a-=1){let o=a-1,s=r[e.charAt(o)];if(y&&(g[o]=+!!s),f[a]=(f[a+1]<<1|1)&s,n&&(f[a]|=(b[a+1]|b[a])<<1|1|b[a+1]),f[a]&k&&(x=E(t,{errors:n,currentLocation:o,expectedLocation:p,distance:i,ignoreLocation:u}))<=m){if(m=x,(v=o)<=p)break;l=Math.max(1,2*p-v)}}if(E(t,{errors:n+1,currentLocation:p,expectedLocation:p,distance:i,ignoreLocation:u})>m)break;b=f}let A={isMatch:v>=0,score:Math.max(.001,x)};if(y){let e=function(e=[],t=w.minMatchCharLength){let r=[],n=-1,i=-1,a=0;for(let o=e.length;a<o;a+=1){let o=e[a];o&&-1===n?n=a:o||-1===n||((i=a-1)-n+1>=t&&r.push([n,i]),n=-1)}return e[a-1]&&a-n>=t&&r.push([n,a-1]),r}(g,s);e.length?l&&(A.indices=e):A.isMatch=!1}return A}(e,t,r,{location:i+p,distance:a,threshold:o,findAllMatches:s,minMatchCharLength:l,includeMatches:n,ignoreLocation:u});m&&(h=!0),d+=v,m&&y&&(c=[...c,...y])});let p={isMatch:h,score:h?d/this.chunks.length:1};return h&&n&&(p.indices=c),p}}class C{constructor(e){this.pattern=e}static isMultiMatch(e){return T(e,this.multiRegex)}static isSingleMatch(e){return T(e,this.singleRegex)}search(){}}function T(e,t){let r=e.match(t);return r?r[1]:null}class P extends C{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){let t=e===this.pattern;return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}}class O extends C{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){let t=-1===e.indexOf(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class j extends C{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){let t=e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,this.pattern.length-1]}}}class R extends C{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){let t=!e.startsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class N extends C{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){let t=e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[e.length-this.pattern.length,e.length-1]}}}class F extends C{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){let t=!e.endsWith(this.pattern);return{isMatch:t,score:+!t,indices:[0,e.length-1]}}}class D extends C{constructor(e,{location:t=w.location,threshold:r=w.threshold,distance:n=w.distance,includeMatches:i=w.includeMatches,findAllMatches:a=w.findAllMatches,minMatchCharLength:o=w.minMatchCharLength,isCaseSensitive:s=w.isCaseSensitive,ignoreDiacritics:l=w.ignoreDiacritics,ignoreLocation:u=w.ignoreLocation}={}){super(e),this._bitapSearch=new S(e,{location:t,threshold:r,distance:n,includeMatches:i,findAllMatches:a,minMatchCharLength:o,isCaseSensitive:s,ignoreDiacritics:l,ignoreLocation:u})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class M extends C{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,r=0,n=[],i=this.pattern.length;for(;(t=e.indexOf(this.pattern,r))>-1;)r=t+i,n.push([t,r-1]);let a=!!n.length;return{isMatch:a,score:+!a,indices:n}}}let L=[P,M,j,R,F,N,O,D],I=L.length,V=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,B=new Set([D.type,M.t
1ype]);class ${constructor(e,{isCaseSensitive:t=w.isCaseSensitive,ignoreDiacritics:r=w.ignoreDiacritics,includeMatches:n=w.includeMatches,minMatchCharLength:i=w.minMatchCharLength,ignoreLocation:a=w.ignoreLocation,findAllMatches:o=w.findAllMatches,location:s=w.location,threshold:l=w.threshold,distance:u=w.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:n,minMatchCharLength:i,findAllMatches:o,ignoreLocation:a,location:s,threshold:l,distance:u},e=t?e:e.toLowerCase(),e=r?A(e):e,this.pattern=e,this.query=function(e,t={}){return e.split("|").map(e=>{let r=e.trim().split(V).filter(e=>e&&!!e.trim()),n=[];for(let e=0,i=r.length;e<i;e+=1){let i=r[e],a=!1,o=-1;for(;!a&&++o<I;){let e=L[o],r=e.isMultiMatch(i);r&&(n.push(new e(r,t)),a=!0)}if(!a)for(o=-1;++o<I;){let e=L[o],r=e.isSingleMatch(i);if(r){n.push(new e(r,t));break}}}return n})}(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:n,ignoreDiacritics:i}=this.options;e=n?e:e.toLowerCase(),e=i?A(e):e;let a=0,o=[],s=0;for(let n=0,i=t.length;n<i;n+=1){let i=t[n];o.length=0,a=0;for(let t=0,n=i.length;t<n;t+=1){let n=i[t],{isMatch:l,indices:u,score:c}=n.search(e);if(l){if(a+=1,s+=c,r){let e=n.constructor.type;B.has(e)?o=[...o,...u]:o.push(u)}}else{s=0,a=0,o.length=0;break}}if(a){let e={isMatch:!0,score:s/a};return r&&(e.indices=o),e}}return{isMatch:!1,score:1}}}let Z=[];function W(e,t){for(let r=0,n=Z.length;r<n;r+=1){let n=Z[r];if(n.condition(e,t))return new n(e,t)}return new S(e,t)}let U={AND:"$and",OR:"$or"},z={PATH:"$path",PATTERN:"$val"},H=e=>!!(e[U.AND]||e[U.OR]),q=e=>!!e[z.PATH],K=e=>!n(e)&&s(e)&&!H(e),Y=e=>({[U.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function G(e,t,{auto:r=!0}={}){let i=e=>{let o=Object.keys(e),s=q(e);if(!s&&o.length>1&&!H(e))return i(Y(e));if(K(e)){let n=s?e[z.PATH]:o[0],i=s?e[z.PATTERN]:e[n];if(!a(i))throw Error(d(n));let l={keyId:b(n),pattern:i};return r&&(l.searcher=W(i,t)),l}let l={children:[],operator:o[0]};return o.forEach(t=>{let r=e[t];n(r)&&r.forEach(e=>{l.children.push(i(e))})}),l};return H(e)||(e=Y(e)),i(e)}function X(e,t){let r=e.matches;t.matches=[],l(r)&&r.forEach(e=>{if(!l(e.indices)||!e.indices.length)return;let{indices:r,value:n}=e,i={indices:r,value:n};e.key&&(i.key=e.key.src),e.idx>-1&&(i.refIndex=e.idx),t.matches.push(i)})}function J(e,t){t.score=e.score}class Q{constructor(e,t={},r){this.options={...w,...t},this.options.useExtendedSearch,this._keyStore=new v(this.options.keys),this.setCollection(e,r)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof _))throw Error("Incorrect 'index' type");this._myIndex=t||k(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){l(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){let t=[];for(let r=0,n=this._docs.length;r<n;r+=1){let i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,n-=1,t.push(i))}return t}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:t=-1}={}){let{includeMatches:r,includeScore:n,shouldSort:i,sortFn:s,ignoreFieldNorm:l}=this.options,u=a(e)?a(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return!function(e,{ignoreFieldNorm:t=w.ignoreFieldNorm}){e.forEach(e=>{let r=1;e.matches.forEach(({key:e,norm:n,score:i})=>{let a=e?e.weight:null;r*=Math.pow(0===i&&a?Number.EPSILON:i,(a||1)*(t?1:n))}),e.score=r})}(u,{ignoreFieldNorm:l}),i&&u.sort(s),o(t)&&t>-1&&(u=u.slice(0,t)),function(e,t,{includeMatches:r=w.includeMatches,includeScore:n=w.includeScore}={}){let i=[];return r&&i.push(X),n&&i.push(J),e.map(e=>{let{idx:r}=e,n={item:t[r],refIndex:r};return i.length&&i.forEach(t=>{t(e,n)}),n})}(u,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){let t=W(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:e,i:r,n:i})=>{if(!l(e))return;let{isMatch:a,score:o,indices:s}=t.searchIn(e);a&&n.push({item:e,idx:r,matches:[{score:o,value:e,norm:i,indices:s}]})}),n}_searchLogical(e){let t=G(e,this.options),r=(e,t,n)=>{if(!e.children){let{keyId:r,searcher:i}=e,a=this._findMatches({key:this._keyStore.get(r),value:this._myIndex.getValueForItemAtKeyId(t,r),searcher:i});return a&&a.length?[{idx:n,item:t,matches:a}]:[]}let i=[];for(let a=0,o=e.children.length;a<o;
1a+=1){let o=r(e.children[a],t,n);if(o.length)i.push(...o);else if(e.operator===U.AND)return[]}return i},n=this._myIndex.records,i={},a=[];return n.forEach(({$:e,i:n})=>{if(l(e)){let o=r(t,e,n);o.length&&(i[n]||(i[n]={idx:n,item:e,matches:[]},a.push(i[n])),o.forEach(({matches:e})=>{i[n].matches.push(...e)}))}}),a}_searchObjectList(e){let t=W(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:e,i:n})=>{if(!l(e))return;let a=[];r.forEach((r,n)=>{a.push(...this._findMatches({key:r,value:e[n],searcher:t}))}),a.length&&i.push({idx:n,item:e,matches:a})}),i}_findMatches({key:e,value:t,searcher:r}){if(!l(t))return[];let i=[];if(n(t))t.forEach(({v:t,i:n,n:a})=>{if(!l(t))return;let{isMatch:o,score:s,indices:u}=r.searchIn(t);o&&i.push({score:s,key:e,value:t,idx:n,norm:a,indices:u})});else{let{v:n,n:a}=t,{isMatch:o,score:s,indices:l}=r.searchIn(n);o&&i.push({score:s,key:e,value:n,norm:a,indices:l})}return i}}Q.version="7.1.0",Q.createIndex=k,Q.parseIndex=function(e,{getFn:t=w.getFn,fieldNormWeight:r=w.fieldNormWeight}={}){let{keys:n,records:i}=e,a=new _({getFn:t,fieldNormWeight:r});return a.setKeys(n),a.setIndexRecords(i),a},Q.config=w,Q.parseQuery=G,function(...e){Z.push(...e)}($)},70765:(e,t,r)=>{"use strict";r.d(t,{G:()=>h});var n=r(15853);let i=e=>e&&"object"==typeof e&&e.mix,a=e=>i(e)?e.mix:void 0;var o=r(76168),s=r(46182),l=r(69025),u=r(99967),c=r(12115),d=r(7471);function f(e,t){let r=function(e){let t=(0,o.M)(()=>(0,u.OQ)(e)),{isStatic:r}=(0,c.useContext)(d.Q);if(r){let[,r]=(0,c.useState)(e);(0,c.useEffect)(()=>t.on("change",r),[])}return t}(t()),n=()=>r.set(t());return n(),(0,l.E)(()=>{let t=()=>s.Gt.preRender(n,!1,!0),r=e.map(e=>e.on("change",t));return()=>{r.forEach(e=>e()),(0,s.WG)(n)}}),r}function h(e,t,r,i){if("function"==typeof e){u.bt.current=[],e();let t=f(u.bt.current,e);return u.bt.current=void 0,t}let o="function"==typeof t?t:function(...e){let t=!Array.isArray(e[0]),r=t?0:-1,i=e[0+r],o=e[1+r],s=e[2+r],l=e[3+r],u=(0,n.G)(o,s,{mixer:a(s[0]),...l});return t?u(i):u}(t,r,i);return Array.isArray(e)?p(e,o):p([e],([e])=>o(e))}function p(e,t){let r=(0,o.M)(()=>[]);return f(e,()=>{r.length=0;let n=e.length;for(let t=0;t<n;t++)r[t]=e[t].get();return t(r)})}},70771:(e,t,r)=>{var n=r(98233),i=r(48611);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==n(e)}},71469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let n=r(88229),i=r(38883),a=r(33063),o=n._(r(51193));function s(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:o.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=a.Image},72797:(e,t,r)=>{"use strict";r.d(t,{b:()=>l});var n=r(12115);r(47650);var i=r(66634),a=r(95155),o=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,i.TL)(`Primitive.${t}`),o=n.forwardRef((e,n)=>{let{asChild:i,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,a.jsx)(i?r:t,{...o,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),s=n.forwardRef((e,t)=>(0,a.jsx)(o.label,{...e,ref:t,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||(null===(r=e.onMouseDown)||void 0===r||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));s.displayName="Label";var l=s},72948:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},74466:(e,t,r)=>{"use strict";r.d(t,{F:()=>o});var n=r(52596);let i=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,a=n.$,o=(e,t)=>r=>{var n;if((null==t?void 0:t.variants)==null)return a(e,null==r?void 0:r.class,null==r?void 0:r.className);let{variants:o,defaultVariants:s}=t,l=Object.keys(o).map(e=>{let t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;let a=i(t)||i(n);return o[e][a]}),u=r&&Object.entries(r).reduce((e,t)=>
1{let[r,n]=t;return void 0===n||(e[r]=n),e},{});return a(e,l,null==t?void 0:null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce((e,t)=>{let{class:r,className:n,...i}=t;return Object.entries(i).every(e=>{let[t,r]=e;return Array.isArray(r)?r.includes({...s,...u}[t]):({...s,...u})[t]===r})?[...e,r,n]:e},[]),null==r?void 0:r.class,null==r?void 0:r.className)}},76685:(e,t,r)=>{var n=r(82500);e.exports=function(){return n.Date.now()}},79105:(e,t,r)=>{"use strict";r.d(t,{L:()=>i});var n=r(12115);function i(e,t,r){(0,n.useInsertionEffect)(()=>e.on(t,r),[e,t,r])}},79399:(e,t,r)=>{"use strict";var n=r(72948);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i}
1;return r.PropTypes=r,r}},81085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={BUFFERING:3,ENDED:0,PAUSED:2,PLAYING:1,UNSTARTED:-1,VIDEO_CUED:5},e.exports=t.default},82500:(e,t,r)=>{var n=r(7985),i="object"==typeof self&&self&&self.Object===Object&&self;e.exports=n||i||Function("return this")()},85005:(e,t,r)=>{"use strict";r.d(t,{A:()=>A});var n=r(12115);function i(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function a(e,t){let r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&r.every(r=>{let n=e[r],o=t[r];return"function"==typeof n?`${n}`==`${o}`:i(n)&&i(o)?a(n,o):n===o})}function o(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function s(e){return"number"==typeof e}function l(e){return"string"==typeof e}function u(e){return"boolean"==typeof e}function c(e){return"[object Object]"===Object.prototype.toString.call(e)}function d(e){return Math.abs(e)}function f(e){return Math.sign(e)}function h(e){return y(e).map(Number)}function p(e){return e[m(e)]}function m(e){return Math.max(0,e.length-1)}function v(e,t=0){return Array.from(Array(e),(e,r)=>t+r)}function y(e){return Object.keys(e)}function g(e,t){return void 0!==t.MouseEvent&&e instanceof t.MouseEvent}function b(){let e=[],t={add:function(r,n,i,a={passive:!0}){let o;return"addEventListener"in r?(r.addEventListener(n,i,a),o=()=>r.removeEventListener(n,i,a)):(r.addListener(i),o=()=>r.removeListener(i)),e.push(o),t},clear:function(){e=e.filter(e=>e())}};return t}function w(e=0,t=0){let r=d(e-t);function n(r){return r<e||r>t}return{length:r,max:t,min:e,constrain:function(r){return n(r)?r<e?e:t:r},reachedAny:n,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return r?e-r*Math.ceil((e-t)/r):e}}}function x(e){let t=e;function r(e){return s(e)?e:e.get()}return{get:function(){return t},set:function(e){t=r(e)},add:function(e){t+=r(e)},subtract:function(e){t-=r(e)}}}function _(e,t){let r="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},n=t.style,i=null,a=!1;return{clear:function(){a||(n.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(a)return;let o=Math.round(100*e.direction(t))/100;o!==i&&(n.transform=r(o),i=o)},toggleActive:function(e){a=!e}}}let k={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function E(e,t,r){let n,i,a,o,A,S=e.ownerDocument,C=S.defaultView,T=function(e){function t(e,t){return function e(t,r){return[t,r].reduce((t,r)=>(y(r).forEach(n=>{let i=t[n],a=r[n],o=c(i)&&c(a);t[n]=o?e(i,a):a}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(r){let n=r.breakpoints||{},i=y(n).filter(t=>e.matchMedia(t).matches).map(e=>n[e]).reduce((e,r)=>t(e,r),{});return t(r,i)},optionsMediaQueries:function(t){return t.map(e=>y(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(C),P=(A=[],{init:function(e,t){return(A=t.filter(({options:e})=>!1!==T.optionsAtMedia(e).active)).forEach(t=>t.init(e,T)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){A=A.filter(e=>e.destroy())}}),O=b(),j=function(){let e,t={},r={init:function(t){e=t},emit:function(n){return(t[n]||[]).forEach(t=>t(e,n)),r},off:function(e,n){return t[e]=(t[e]||[]).filter(e=>e!==n),r},on:function(e,n){return t[e]=(t[e]||[]).concat([n]),r},clear:function(){t={}}};return r}(),{mergeOptions:R,optionsAtMedia:N,optionsMediaQueries:F}=T,{on:D,off:M,emit:L}=j,I=!1,V=R(k,E.globalOptions),B=R(V),$=[];function Z(t,r){if(I)return;B=N(V=R(V,t)),$=r||$;let{container:c,slides:k}=B;a=(l(c)?e.querySelector(c):c)||e.children[0];let E=l(k)?a.querySelectorAll(k):k;o=[].slice.call(E||a.children),n=function t(r){let n=function(e,t,r,n,i,a,o){let c,k,{align:E,axis:A,direction:S,startIndex:C,loop:T,duration:P,dragFree:O,dragThreshold:j,inViewThreshold:R,slidesToScroll:N,skipSnaps:F,containScroll:D,watchResize:M,watchSlides:L,watchDrag:I,watchFocus:V}=a,B={measure:function(e){let{offsetTop:t,offsetLeft:r,offsetWidth:n,offsetHeight:i}=e;return{top:t,right:r+n,bottom:t+i,left:r,width:n,height:i}}},$=B.measure(t),Z=r.map(B.measure),W=function(e,t){let r="rtl"===t,n="y"===e,i=!n&&r?-1:1;return{scroll:n?"y":"x",cross:n?"x":"y",startEdge:n?"top":r?"right":"left",endEdge:n?"bottom":r?"left":"right",measureSize:function(e){let{height:t,width:r}=e;return n?t:r},direction:function(e){return e*i}}}(A,S),U=W.measureSize($),z={measure:function(e){return e/100*U}},H=function(e,t){let r={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}}
1;return{measure:function(n,i){return l(e)?r[e](n):e(t,n,i)}}}(E,U),q=!T&&!!D,{slideSizes:K,slideSizesWithGaps:Y,startGap:G,endGap:X}=function(e,t,r,n,i,a){let{measureSize:o,startEdge:s,endEdge:l}=e,u=r[0]&&i,c=function(){if(!u)return 0;let e=r[0];return d(t[s]-e[s])}(),f=u?parseFloat(a.getComputedStyle(p(n)).getPropertyValue(`margin-${l}`)):0,h=r.map(o),v=r.map((e,t,r)=>{let n=t===m(r);return t?n?h[t]+f:r[t+1][s]-e[s]:h[t]+c}).map(d);return{slideSizes:h,slideSizesWithGaps:v,startGap:c,endGap:f}}(W,$,Z,r,T||!!D,i),J=function(e,t,r,n,i,a,o,l,u){let{startEdge:c,endEdge:f,direction:v}=e,y=s(r);return{groupSlides:function(e){return y?h(e).filter(e=>e%r==0).map(t=>e.slice(t,t+r)):e.length?h(e).reduce((r,s,u)=>{let h=p(r)||0,y=s===m(e),g=i[c]-a[h][c],b=i[c]-a[s][f],w=n||0!==h?0:v(o),x=d(b-(!n&&y?v(l):0)-(g+w));return u&&x>t+2&&r.push(s),y&&r.push(e.length),r},[]).map((t,r,n)=>{let i=Math.max(n[r-1]||0);return e.slice(i,t)}):[]}}}(W,U,N,T,$,Z,G,X,0),{snaps:Q,snapsAligned:ee}=function(e,t,r,n,i){let{startEdge:a,endEdge:o}=e,{groupSlides:s}=i,l=s(n).map(e=>p(e)[o]-e[0][a]).map(d).map(t.measure),u=n.map(e=>r[a]-e[a]).map(e=>-d(e)),c=s(u).map(e=>e[0]).map((e,t)=>e+l[t]);return{snaps:u,snapsAligned:c}}(W,H,$,Z,J),et=-p(Q)+p(Y),{snapsContained:er,scrollContainLimit:en}=function(e,t,r,n,i){let a=w(-t+e,0),o=r.map((e,t)=>{let{min:n,max:i}=a,o=a.constrain(e),s=t===m(r);return t?s||function(e,t){return 1>=d(e-t)}(n,o)?n:function(e,t){return 1>=d(e-t)}(i,o)?i:o:i}).map(e=>parseFloat(e.toFixed(3))),s=function(){let e=o[0],t=p(o);return w(o.lastIndexOf(e),o.indexOf(t)+1)}();function l(e,t){return 1>=d(e-t)}return{snapsContained:function(){if(t<=e+2)return[a.max];if("keepSnaps"===n)return o;let{min:r,max:i}=s;return o.slice(r,i)}(),scrollContainLimit:s}}(U,et,ee,D,0),ei=q?er:ee,{limit:ea}=function(e,t,r){let n=t[0];return{limit:w(r?n-e:p(t),n)}}(et,ei,T),eo=function e(t,r,n){let{constrain:i}=w(0,t),a=t+1,o=s(r);function s(e){return n?d((a+e)%a):i(e)}function l(){return e(t,o,n)}let u={get:function(){return o},set:function(e){return o=s(e),u},add:function(e){return l().set(o+e)},clone:l};return u}(m(ei),C,T),es=eo.clone(),el=h(r),eu=({dragHandler:e,scrollBody:t,scrollBounds:r,options:{loop:n}})=>{n||r.constrain(e.pointerDown()),t.seek()},ec=({scrollBody:e,translate:t,location:r,offsetLocation:n,previousLocation:i,scrollLooper:a,slideLooper:o,dragHandler:s,animation:l,eventHandler:u,scrollBounds:c,options:{loop:d}},f)=>{let h=e.settled(),p=!c.shouldConstrain(),m=d?h:h&&p;m&&!s.pointerDown()&&(l.stop(),u.emit("settle")),m||u.emit("scroll");let v=r.get()*f+i.get()*(1-f);n.set(v),d&&(a.loop(e.direction()),o.loop()),t.to(n.get())},ed=function(e,t,r,n){let i=b(),a=1e3/60,o=null,s=0,l=0;function u(e){if(!l)return;o||(o=e,r(),r());let i=e-o;for(o=e,s+=i;s>=a;)r(),s-=a;n(s/a),l&&(l=t.requestAnimationFrame(u))}function c(){t.cancelAnimationFrame(l),o=null,s=0,l=0}return{init:function(){i.add(e,"visibilitychange",()=>{e.hidden&&(o=null,s=0)})},destroy:function(){c(),i.clear()},start:function(){l||(l=t.requestAnimationFrame(u))},stop:c,update:r,render:n}}(n,i,()=>eu(eA),e=>ec(eA,e)),ef=ei[eo.get()],eh=x(ef),ep=x(ef),em=x(ef),ev=x(ef),ey=function(e,t,r,n,i,a){let o=0,s=0,l=i,u=.68,c=e.get(),h=0;function p(e){return l=e,v}function m(e){return u=e,v}let v={direction:function(){return s},duration:function(){return l},velocity:function(){return o},seek:function(){let t=n.get()-e.get(),i=0;return l?(r.set(e),o+=t/l,o*=u,c+=o,e.add(o),i=c-h):(o=0,r.set(n),e.set(n),i=t),s=f(i),h=c,v},settled:function(){return .001>d(n.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return p(i)},useFriction:m,useDuration:p};return v}(eh,em,ep,ev,P,.68),eg=function(e,t,r,n,i){let{reachedAny:a,removeOffset:o,constrain:s}=n;function l(e){return e.concat().sort((e,t)=>d(e)-d(t))[0]}function u(t,n){let i=[t,t+r,t-r];if(!e)return t;if(!n)return l(i);let a=i.filter(e=>f(e)===n);return a.length?l(a):p(i)-r}return{byDistance:function(r,n){let l=i.get()+r,{index:c,distance:f}=function(r){let n=e?o(r):s(r),{index:i}=t.map((e,t)=>({diff:u(e-n,0),index:t})).sort((e,t)=>
1d(e.diff)-d(t.diff))[0];return{index:i,distance:n}}(l),h=!e&&a(l);if(!n||h)return{index:c,distance:r};let p=r+u(t[c]-f,0);return{index:c,distance:p}},byIndex:function(e,r){let n=u(t[e]-i.get(),r);return{index:e,distance:n}},shortcut:u}}(T,ei,et,ea,ev),eb=function(e,t,r,n,i,a,o){function s(i){let s=i.distance,l=i.index!==t.get();a.add(s),s&&(n.duration()?e.start():(e.update(),e.render(1),e.update())),l&&(r.set(t.get()),t.set(i.index),o.emit("select"))}return{distance:function(e,t){s(i.byDistance(e,t))},index:function(e,r){let n=t.clone().set(e);s(i.byIndex(n.get(),r))}}}(ed,eo,es,ey,eg,ev,o),ew=function(e){let{max:t,length:r}=e;return{get:function(e){return r?-((e-t)/r):0}}}(ea),ex=b(),e_=function(e,t,r,n){let i,a={},o=null,s=null,l=!1;return{init:function(){i=new IntersectionObserver(e=>{l||(e.forEach(e=>{a[t.indexOf(e.target)]=e}),o=null,s=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:n}),t.forEach(e=>i.observe(e))},destroy:function(){i&&i.disconnect(),l=!0},get:function(e=!0){if(e&&o)return o;if(!e&&s)return s;let t=y(a).reduce((t,r)=>{let n=parseInt(r),{isIntersecting:i}=a[n];return(e&&i||!e&&!i)&&t.push(n),t},[]);return e&&(o=t),e||(s=t),t}}}(t,r,o,R),{slideRegistry:ek}=function(e,t,r,n,i,a){let{groupSlides:o}=i,{min:s,max:l}=n;return{slideRegistry:function(){let n=o(a);return 1===r.length?[a]:e&&"keepSnaps"!==t?n.slice(s,l).map((e,t,r)=>{let n=t===m(r);return t?n?v(m(a)-p(r)[0]+1,p(r)[0]):e:v(p(r[0])+1)}):n}()}}(q,D,ei,en,J,el),eE=function(e,t,r,n,i,a,o,l){let c={passive:!0,capture:!0},d=0;function f(e){"Tab"===e.code&&(d=new Date().getTime())}return{init:function(h){l&&(a.add(document,"keydown",f,!1),t.forEach((t,f)=>{a.add(t,"focus",t=>{(u(l)||l(h,t))&&function(t){if(new Date().getTime()-d>10)return;o.emit("slideFocusStart"),e.scrollLeft=0;let a=r.findIndex(e=>e.includes(t));s(a)&&(i.useDuration(0),n.index(a,0),o.emit("slideFocus"))}(f)},c)}))}}}(e,r,ek,eb,ey,ex,o,V),eA={ownerDocument:n,ownerWindow:i,eventHandler:o,containerRect:$,slideRects:Z,animation:ed,axis:W,dragHandler:function(e,t,r,n,i,a,o,s,l,c,h,p,m,v,y,x,_,k,E){let{cross:A,direction:S}=e,C=["INPUT","SELECT","TEXTAREA"],T={passive:!1},P=b(),O=b(),j=w(50,225).constrain(v.measure(20)),R={mouse:300,touch:400},N={mouse:500,touch:600},F=y?43:25,D=!1,M=0,L=0,I=!1,V=!1,B=!1,$=!1;function Z(e){if(!g(e,n)&&e.touches.length>=2)return W(e);let t=a.readPoint(e),r=a.readPoint(e,A),o=d(t-M),l=d(r-L);if(!V&&!$&&(!e.cancelable||!(V=o>l)))return W(e);let u=a.pointerMove(e);o>x&&(B=!0),c.useFriction(.3).useDuration(.75),s.start(),i.add(S(u)),e.preventDefault()}function W(e){let t=h.byDistance(0,!1).index!==p.get(),r=a.pointerUp(e)*(y?N:R)[$?"mouse":"touch"],n=function(e,t){let r=p.add(-+f(e)),n=h.byDistance(e,!y).distance;return y||d(e)<j?n:_&&t?.5*n:h.byIndex(r.get(),0).distance}(S(r),t),i=function(e,t){var r,n;if(0===e||0===t||d(e)<=d(t))return 0;let i=(r=d(e),n=d(t),d(r-n));return d(i/e)}(r,n);V=!1,I=!1,O.clear(),c.useDuration(F-10*i).useFriction(.68+i/50),l.distance(n,!y),$=!1,m.emit("pointerUp")}function U(e){B&&(e.stopPropagation(),e.preventDefault(),B=!1)}return{init:function(e){E&&P.add(t,"dragstart",e=>e.preventDefault(),T).add(t,"touchmove",()=>void 0,T).add(t,"touchend",()=>void 0).add(t,"touchstart",s).add(t,"mousedown",s).add(t,"touchcancel",W).add(t,"contextmenu",W).add(t,"click",U,!0);function s(s){(u(E)||E(e,s))&&function(e){let s=g(e,n);if($=s,B=y&&s&&!e.buttons&&D,D=d(i.get()-o.get())>=2,(!s||0===e.button)&&!function(e){let t=e.nodeName||"";return C.includes(t)}(e.target)){I=!0,a.pointerDown(e),c.useFriction(0).useDuration(0),i.set(o);let n=$?r:t;O.add(n,"touchmove",Z,T).add(n,"touchend",W).add(n,"mousemove",Z,T).add(n,"mouseup",W),M=a.readPoint(e),L=a.readPoint(e,A),m.emit("pointerDown")}}(s)}},destroy:function(){P.clear(),O.clear()},pointerDown:function(){return I}}}(W,e,n,i,ev,function(e,t){let r,n;function i(e){return e.timeStamp}function a(r,n){let i=n||e.scroll,a=`client${"x"===i?"X":"Y"}`;return(g(r,t)?r:r.touches[0])[a]}return{pointerDown:function(e){return r=e,n=e,a(e)},pointerMove:function(e){let t=a(e)-a(n),o=i(e)-i(r)>170;return n=e,o&&(r=e),t},pointerUp:function(e){if(!r||!n)return 0;let t=a(n)-a(r),o=i(e)-i(r),s=i(e)-i(n)>170,l=t/o;return o&&!s&&d(l)>.1?l:0},readPoint:a}}(W,i),eh,ed,eb,ey,eg,eo,o,z,O,j,F,0,I),eventStore:ex,percentOfView:z,index:eo,indexPrevious:es,limit:ea,location:eh,offsetLocation:em,previousLocation:ep,options:a,resizeHandler:function(e,t,r,n,i,a,o){let s,l,c=[e].concat(n),f=[],h=!1;function p(e){return i.measureSize(o.measure(e))}return{init:function(i){a&&(l=p(e),f=n.map(p),s=new ResizeObserver(r=>{(u(a)||a(i,r))&&function(r){for(let a of r){if(h)return;let r=a.target===e,o=n.indexOf(a.target),s=r?l:f[o];
1if(d(p(r?e:n[o])-s)>=.5){i.reInit(),t.emit("resize");break}}}(r)}),r.requestAnimationFrame(()=>{c.forEach(e=>s.observe(e))}))},destroy:function(){h=!0,s&&s.disconnect()}}}(t,o,i,r,W,M,B),scrollBody:ey,scrollBounds:function(e,t,r,n,i){let a=i.measure(10),o=i.measure(50),s=w(.1,.99),l=!1;function u(){return!!(!l&&e.reachedAny(r.get())&&e.reachedAny(t.get()))}return{shouldConstrain:u,constrain:function(i){if(!u())return;let l=e.reachedMin(t.get())?"min":"max",c=d(e[l]-t.get()),f=r.get()-t.get(),h=s.constrain(c/o);r.subtract(f*h),!i&&d(f)<a&&(r.set(e.constrain(r.get())),n.useDuration(25).useBaseFriction())},toggleActive:function(e){l=!e}}}(ea,em,ev,ey,z),scrollLooper:function(e,t,r,n){let{reachedMin:i,reachedMax:a}=w(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?a(r.get()):-1===t&&i(r.get())))return;let o=-(e*+t);n.forEach(e=>e.add(o))}}}(et,ea,em,[eh,em,ep,ev]),scrollProgress:ew,scrollSnapList:ei.map(ew.get),scrollSnaps:ei,scrollTarget:eg,scrollTo:eb,slideLooper:function(e,t,r,n,i,a,o,s,l){let u=h(i),c=h(i).reverse(),d=m(p(c,o[0]),r,!1).concat(m(p(u,t-o[0]-1),-r,!0));function f(e,t){return e.reduce((e,t)=>e-i[t],t)}function p(e,t){return e.reduce((e,r)=>f(e,t)>0?e.concat([r]):e,[])}function m(i,o,u){let c=a.map((e,r)=>({start:e-n[r]+.5+o,end:e+t-.5+o}));return i.map(t=>{let n=u?0:-r,i=u?r:0,a=c[t][u?"end":"start"];return{index:t,loopPoint:a,slideLocation:x(-1),translate:_(e,l[t]),target:()=>s.get()>a?n:i}})}return{canLoop:function(){return d.every(({index:e})=>.1>=f(u.filter(t=>t!==e),t))},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:r,slideLocation:n}=e,i=t();i!==n.get()&&(r.to(i),n.set(i))})},loopPoints:d}}(W,U,et,K,Y,Q,ei,em,r),slideFocus:eE,slidesHandler:(k=!1,{init:function(e){L&&(c=new MutationObserver(t=>{!k&&(u(L)||L(e,t))&&function(t){for(let r of t)if("childList"===r.type){e.reInit(),o.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){c&&c.disconnect(),k=!0}}),slidesInView:e_,slideIndexes:el,slideRegistry:ek,slidesToScroll:J,target:ev,translate:_(W,t)};return eA}(e,a,o,S,C,r,j);return r.loop&&!n.slideLooper.canLoop()?t(Object.assign({},r,{loop:!1})):n}(B),F([V,...$.map(({options:e})=>e)]).forEach(e=>O.add(e,"change",W)),B.active&&(n.translate.to(n.location.get()),n.animation.init(),n.slidesInView.init(),n.slideFocus.init(q),n.eventHandler.init(q),n.resizeHandler.init(q),n.slidesHandler.init(q),n.options.loop&&n.slideLooper.loop(),a.offsetParent&&o.length&&n.dragHandler.init(q),i=P.init(q,$))}function W(e,t){let r=H();U(),Z(R({startIndex:r},e),t),j.emit("reInit")}function U(){n.dragHandler.destroy(),n.eventStore.clear(),n.translate.clear(),n.slideLooper.clear(),n.resizeHandler.destroy(),n.slidesHandler.destroy(),n.slidesInView.destroy(),n.animation.destroy(),P.destroy(),O.clear()}function z(e,t,r){B.active&&!I&&(n.scrollBody.useBaseFriction().useDuration(!0===t?0:B.duration),n.scrollTo.index(e,r||0))}function H(){return n.index.get()}let q={canScrollNext:function(){return n.index.add(1).get()!==H()},canScrollPrev:function(){return n.index.add(-1).get()!==H()},containerNode:function(){return a},internalEngine:function(){return n},destroy:function(){I||(I=!0,O.clear(),U(),j.emit("destroy"),j.clear())},off:M,on:D,emit:L,plugins:function(){return i},previousScrollSnap:function(){return n.indexPrevious.get()},reInit:W,rootNode:function(){return e},scrollNext:function(e){z(n.index.add(1).get(),e,-1)},scrollPrev:function(e){z(n.index.add(-1).get(),e,1)},scrollProgress:function(){return n.scrollProgress.get(n.location.get())},scrollSnapList:function(){return n.scrollSnapList},scrollTo:z,selectedScrollSnap:H,slideNodes:function(){return o},slidesInView:function(){return n.slidesInView.get()},slidesNotInView:function(){return n.slidesInView.get(!1)}};return Z(t,r),setTimeout(()=>j.emit("init"),0),q}function A(e={}
1,t=[]){let r=(0,n.useRef)(e),i=(0,n.useRef)(t),[s,l]=(0,n.useState)(),[u,c]=(0,n.useState)(),d=(0,n.useCallback)(()=>{s&&s.reInit(r.current,i.current)},[s]);return(0,n.useEffect)(()=>{a(r.current,e)||(r.current=e,d())},[e,d]),(0,n.useEffect)(()=>{!function(e,t){if(e.length!==t.length)return!1;let r=o(e),n=o(t);return r.every((e,t)=>a(e,n[t]))}(i.current,t)&&(i.current=t,d())},[t,d]),(0,n.useEffect)(()=>{if("undefined"!=typeof window&&window.document&&window.document.createElement&&u){E.globalOptions=A.globalOptions;let e=E(u,r.current,i.current);return l(e),()=>e.destroy()}l(void 0)},[u,l]),[c,s]}E.globalOptions=void 0,A.globalOptions=void 0},86266:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(43969);function i(e,t,r){var i=(0,n._)(e,t,"set");if(i.set)i.set.call(e,r);else{if(!i.writable)throw TypeError("attempted to set read only private field");i.value=r}return r}},87032:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["cueVideoById","loadVideoById","cueVideoByUrl","loadVideoByUrl","playVideo","pauseVideo","stopVideo","getVideoLoadedFraction","cuePlaylist","loadPlaylist","nextVideo","previousVideo","playVideoAt","setShuffle","setLoop","getPlaylist","getPlaylistIndex","setOption","mute","unMute","isMuted","
1setVolume","getVolume","seekTo","getPlayerState","getPlaybackRate","setPlaybackRate","getAvailablePlaybackRates","getPlaybackQuality","setPlaybackQuality","getAvailableQualityLevels","getCurrentTime","getDuration","removeEventListener","getVideoUrl","getVideoEmbedCode","getOptions","getOption","addEventListener","destroy","setSize","getIframe"],e.exports=t.default},87188:(e,t,r)=>{"use strict";r.d(t,{A:()=>u});var n=r(12115);function i(e){return"string"==typeof e&&"%"===e[e.length-1]&&function(e){let t=parseFloat(e);return!isNaN(t)&&isFinite(t)}(e.substring(0,e.length-1))}function a(e,t,r){0===t&&!r&&(null==e?void 0:e.style)&&(null==e?void 0:e.children.length)>0&&(e.style.display="none")}let o={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function s(e,t){return[e.static,0===t&&e.staticHeightZero,"number"==typeof t&&t>0?e.staticHeightSpecific:null,"auto"===t&&e.staticHeightAuto].filter(e=>e).join(" ")}let l=["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","contentRef","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style","disableDisplayNone"],u=n.forwardRef((e,t)=>{let{animateOpacity:r=!1,animationStateClasses:u={},applyInlineTransitions:c=!0,children:d,className:f="",contentClassName:h,delay:p=0,disableDisplayNone:m=!1,duration:v=500,easing:y="ease",height:g,onHeightAnimationEnd:b,onHeightAnimationStart:w,style:x,contentRef:_}=e,k=Object.assign({},e);l.forEach(e=>{delete k[e]});let E=(0,n.useRef)(g),A=(0,n.useRef)(null),S=(0,n.useRef)(),C=(0,n.useRef)(),T=(0,n.useRef)(Object.assign(Object.assign({},o),u)),P="undefined"!=typeof window,O=(0,n.useRef)(!!P&&!!window.matchMedia&&window.matchMedia("(prefers-reduced-motion)").matches),j=O.current?0:p,R=O.current?0:v,N=g,F="visible";"number"==typeof g?(N=g<0?0:g,F="hidden"):i(N)&&(N="0%"===g?0:g,F="hidden");let[D,M]=(0,n.useState)(N),[L,I]=(0,n.useState)(F),[V,B]=(0,n.useState)(!1),[$,Z]=(0,n.useState)(s(T.current,g));(0,n.useEffect)(()=>{a(A.current,D,m)},[]),(0,n.useEffect)(()=>{if(g!==E.current&&A.current){let e,t;(function(e,t){0===t&&(null==e?void 0:e.style)&&(e.style.display="")})(A.current,E.current),A.current.style.overflow="hidden";let r=A.current.offsetHeight;A.current.style.overflow="";let n=R+j,o="hidden",l="auto"===E.current;"number"==typeof g?t=e=g<0?0:g:i(g)?t=e="0%"===g?0:g:(e=r,t="auto",o=void 0),l&&(t=e,e=r);let u=[T.current.animating,("auto"===E.current||g<E.current)&&T.current.animatingUp,("auto"===g||g>E.current)&&T.current.animatingDown,0===t&&T.current.animatingToHeightZero,"auto"===t&&T.current.animatingToHeightAuto,"number"==typeof t&&t>0?T.current.animatingToHeightSpecific:null].filter(e=>e).join(" "),c=s(T.current,t);M(e),I("hidden"),B(!l),Z(u),clearTimeout(C.current),clearTimeout(S.current),l?(C.current=setTimeout(()=>{M(t),I(o),B(!0),null==w||w(t)},50),S.current=setTimeout(()=>{B(!1),Z(c),a(A.current,t,m),null==b||b(t)},n)):(null==w||w(e),C.current=setTimeout(()=>{M(t),I(o),B(!1),Z(c),"auto"!==g&&a(A.current,e,m),null==b||b(e)},n))}return E.current=g,()=>{clearTimeout(C.current),clearTimeout(S.current)}},[g]);let W=Object.assign(Object.assign({},x),{height:D,overflow:L||(null==x?void 0:x.overflow)});V&&c&&(W.transition=`height ${R}ms ${y} ${j}ms`,(null==x?void 0:x.transition)&&(W.transition=`${x.transition}, ${W.transition}`),W.WebkitTransition=W.transition);let U={};r&&(U.transition=`opacity ${R}ms ${y} ${j}ms`,U.WebkitTransition=U.transition,0===D&&(U.opacity=0));let z=void 0!==k["aria-hidden"]?k["aria-hidden"]:0===g;return n.createElement("div",Object.assign({},k,{"aria-hidden":z,className:`${$} ${f}`,style:W,ref:t}),n.createElement("div",{className:h,style:U,ref:e=>{A.current=e,_&&(_.current=e)}},d))})},89065:(e,t,r)=>{"use strict";r.d(t,{C1:()=>eA,q7:()=>eE,bL:()=>ek});var n,i=r(12115),a=r.t(i,2);function o(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}function s(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return i.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=s(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():s(e[t],null)}}}}(...e),e)}var u=r(95155);function c(e,t=[]){let r=[],n=()=>{let t=r.map(e=>i.createContext(e));return function(r){let n=r?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let a=i.createContext(n),o=r.length;r=[...r,n];let s=t=>{let{scope:r,children:n,...s}=t,l=r?.[e]?.[o]||a,c=i.useMemo(()=>s,Object.values(s));return(0,u.jsx)(l.Provider,{value:c,children:n})};return s.displayName=t+"Provider",[s,function(r,s){let l=s?.[e]?.[o]||a,u=i.useContext(l);if(u)return u;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}r(47650);var d=r(66634),f=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{let r=(0,d.TL)(`Primitive.${t}`),n=i.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(i?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function h(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e?.(n),!1===r||!n.defaultPrevented)return t?.(n)}}var p=r(94971),m=r(95920),v=r(86266);function y(e,t=[]){let r=[],n=()=>{let t=r.map(e=>i.createContext(e));return function(r){let n=r?.[e]||t;return i.useMemo(()=>({[`__scope${e}`]:{...r,[e]:n}}),[r,n])}};return n.scopeName=e,[function(t,n){let a=i.createContext(n),o=r.length;r=[...r,n];let s=t=>{let{scope:r,children:n,...s}=t,l=r?.[e]?.[o]||a,c=i.useMemo(()=>s,Object.values(s));return(0,u.jsx)(l.Provider,{value:c,children:n})};return s.displayName=t+"Provider",[s,function(r,s){let l=s?.[e]?.[o]||a,u=i.useContext(l);if(u)return u;if(void 0!==n)return n;throw Error(`\`${r}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let r=()=>{let r=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let n=r.reduce((t,{useScope:r,scopeName:n})=>{let i=r(e)[`__scope${n}`];return{...t,...i}},{});return i.useMemo(()=>({[`__scope${t.scopeName}`]:n}),[n])}};return r.scopeName=t.scopeName,r}(n,...t)]}function g(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function b(...e){return i.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=g(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():g(e[t],null)}}}}(...e),e)}var w=new WeakMap;function x(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=_(t),i=n>=0?n:r+n;return i<0||i>=r?-1:i}(e,t);return -1===r?void 0:e[r]}function _(e){return e!=e||0===e?0:Math.trunc(e)}n=new WeakMap;var k=globalThis?.document?i.useLayoutEffect:()=>{},E=a[" useId ".trim().toString()]||(()=>void 0),A=0,S=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let r=(0,d.TL)(`Primitive.${t}`),n=i.forwardRef((e,n)=>{let{asChild:i,...a}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,u.jsx)(i?r:t,{...a,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),C=r(39033),T=a[" useInsertionEffect ".trim().toString()]||k,P=(Symbol("RADIX:SYNC_STATE"),i.createContext(void 0)),O="rovingFocusGroup.onEntryFocus",j={bubbles:!1,cancelable:!0},R="RovingFocusGroup",[N,F,D]=function(e){let t=e+"CollectionProvider",[r,n]=y(t),[a,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:r}=e,n=i.useRef(null),o=i.useRef(new Map).current;return(0,u.jsx)(a,{scope:t,itemMap:o,collectionRef:n,children:r})};s.displayName=t;let l=e+"CollectionSlot",c=(0,d.TL)(l),f=i.forwardRef((e,t)=>{let{scope:r,children:n}=e,i=b(t,o(l,r).collectionRef);return(0,u.jsx)(c,{ref:i,children:n})});f.displayName=l;let h=e+"CollectionItemSlot",p="data-radix-collection-item",m=(0,d.TL)(h),v=i.forwardRef((e,t)=>{let{scope:r,children:n,...a}=e,s=i.useRef(null),l=b(t,s),c=o(h,r);return i.useEffect(()=>(c.itemMap.set(s,{ref:s,...a}),()=>void c.itemMap.delete(s))),(0,u.jsx)(m,{[p]:"",ref:l,children:n})});return v.displayName=h,[{Provider:s,Slot:f,ItemSlot:v},function(t){let r=o(e+"CollectionConsumer",t);return i.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(p,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}(R),[M,L]=y(R,[D]),[I,V]=M(R),B=i.forwardRef((e,t)=>(0,u.jsx)(N.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)(N.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,u.jsx)($,{...e,ref:t})})}));B.displayName=R;var $=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:n,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:c,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,m=i.useRef(null),v=b(t,m),y=function(e){let t=i.useContext(P);return e||t||"ltr"}(o),[g,w]=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,o,s]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),a=i.useRef(r),o=i.useRef(t);return T(()=>{o.current=t},[t]),i.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,n,o]}({defaultProp:t,onChange:r}),l=void 0!==e,u=l?e:a;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,n])}return[u,i.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else o(t)},[l,e,o,s])]}({prop:s,defaultProp:null!=l?l:null,onChange:c,caller:R}),[x,_]=i.useState(!1),k=(0,C.c)(d),E=F(r),A=i.useRef(!1),[N,D]=i.useState(0);return i.useEffect(()=>{let e=m.current;if(e)return e.addEventListener(O,k),()=>e.removeEventListener(O,k)},[k]),(0,u.jsx)(I,{scope:r,orientation:n,dir:y,loop:a,currentTabStopId:g,onItemFocus:i.useCallback(e=>w(e),[w]),onItemShiftTab:i.useCallback(()=>_(!0),[]),onFocusableItemAdd:i.useCallback(()=>D(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>D(e=>e-1),[]),children:(0,u.jsx)(S.div,{tabIndex:x||0===N?-1:0,"data-orientation":n,...p,ref:v,style:{outline:"none",...e.style},onMouseDown:h(e.onMouseDown,()=>{A.current=!0}),onFocus:h(e.onFocus,e=>{let t=!A.current;if(e.target===e.currentTarget&&t&&!x){let t=new CustomEvent(O,j);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=E().filter(e=>
1e.focusable);z([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),f)}}A.current=!1}),onBlur:h(e.onBlur,()=>_(!1))})})}),Z="RovingFocusGroupItem",W=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:n=!0,active:a=!1,tabStopId:o,children:s,...l}=e,c=function(e){let[t,r]=i.useState(E());return k(()=>{r(e=>e??String(A++))},[void 0]),e||(t?`radix-${t}`:"")}(),d=o||c,f=V(Z,r),p=f.currentTabStopId===d,m=F(r),{onFocusableItemAdd:v,onFocusableItemRemove:y,currentTabStopId:g}=f;return i.useEffect(()=>{if(n)return v(),()=>y()},[n,v,y]),(0,u.jsx)(N.ItemSlot,{scope:r,id:d,focusable:n,active:a,children:(0,u.jsx)(S.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...l,ref:t,onMouseDown:h(e.onMouseDown,e=>{n?f.onItemFocus(d):e.preventDefault()}),onFocus:h(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:h(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){f.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let i=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return U[i]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=f.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>z(r))}}),children:"function"==typeof s?s({isCurrentTabStop:p,hasTabStop:null!=g}):s})})});W.displayName=Z;var U={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function z(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var H=globalThis?.document?i.useLayoutEffect:()=>{},q=a[" useInsertionEffect ".trim().toString()]||H,K=(Symbol("RADIX:SYNC_STATE"),i.createContext(void 0)),Y=r(47602),G=r(45503);function X(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var J=globalThis?.document?i.useLayoutEffect:()=>{},Q=e=>{let{present:t,children:r}=e,n=function(e){var t,r;let[n,a]=i.useState(),o=i.useRef(null),s=i.useRef(e),l=i.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",r={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},i.useReducer((e,t)=>{let n=r[e][t];return null!=n?n:e},t));return i.useEffect(()=>{let e=ee(o.current);l.current="mounted"===u?e:"none"},[u]),J(()=>{let t=o.current,r=s.current;if(r!==e){let n=l.current,i=ee(t);e?c("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):r&&n!==i?c("ANIMATION_OUT"):c("UNMOUNT"),s.current=e}},[e,c]),J(()=>{if(n){var e;let t,r=null!==(e=n.ownerDocument.defaultView)&&void 0!==e?e:window,i=e=>{let i=ee(o.current).includes(e.animationName);if(e.target===n&&i&&(c("ANIMATION_END"),!s.current)){let e=n.style.animationFillMode;n.style.animationFillMode="forwards",t=r.setTimeout(()=>{"forwards"===n.style.animationFillMode&&(n.style.animationFillMode=e)})}},a=e=>{e.target===n&&(l.current=ee(o.current))};return n.addEventListener("animationstart",a),n.addEventListener("animationcancel",i),n.addEventListener("animationend",i),()=>{r.clearTimeout(t),n.removeEventListener("animationstart",a),n.removeEventListener("animationcancel",i),n.removeEventListener("animationend",i)}}c("ANIMATION_END")},[n,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:i.useCallback(e=>{o.current=e?getComputedStyle(e):null,a(e)},[])}}(t),a="function"==typeof r?r({present:n.isPresent}):i.Children.only(r),o=function(...e){return i.useCallback(function(...e){return t=>{let r=!1,n=e.map(e=>{let n=X(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t<n.length;t++){let r=n[t];"function"==typeof r?r():X(e[t],null)}}}}(...e),e)}(n.ref,function(e){var t,r;let n=null===(t=Object.getOwnPropertyDescriptor(e.props,"ref"))||void 0===t?void 0:t.get,i=n&&"isReactWarning"in n&&n.isReactWarning;return i?e.ref:(i=(n=null===(r=Object.getOwnPropertyDescriptor(e,"ref"))||void 0===r?void 0:r.get)&&"isReactWarning"in n&&n.isReactWarning)?e.props.ref:e.props.ref||e.ref}(a));return"function"==typeof r||n.isPresent?i.cloneElement(a,{ref:o}):null};function ee(e){return(null==e?void 0:e.animationName)||"none"}Q.displayName="Presence";var et="Radio",[er,en]=c(et),[ei,ea]=er(et),eo=i.forwardRef((e,t)=>
1{let{__scopeRadio:r,name:n,checked:a=!1,required:s,disabled:c,value:d="on",onCheck:h,form:p,...m}=e,[v,y]=i.useState(null),g=l(t,e=>y(e)),b=i.useRef(!1),w=!v||p||!!v.closest("form");return(0,u.jsxs)(ei,{scope:r,checked:a,disabled:c,children:[(0,u.jsx)(f.button,{type:"button",role:"radio","aria-checked":a,"data-state":ec(a),"data-disabled":c?"":void 0,disabled:c,value:d,...m,ref:g,onClick:o(e.onClick,e=>{a||null==h||h(),w&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),w&&(0,u.jsx)(eu,{control:v,bubbles:!b.current,name:n,value:d,checked:a,required:s,disabled:c,form:p,style:{transform:"translateX(-100%)"}})]})});eo.displayName=et;var es="RadioIndicator",el=i.forwardRef((e,t)=>{let{__scopeRadio:r,forceMount:n,...i}=e,a=ea(es,r);return(0,u.jsx)(Q,{present:n||a.checked,children:(0,u.jsx)(f.span,{"data-state":ec(a.checked),"data-disabled":a.disabled?"":void 0,...i,ref:t})})});el.displayName=es;var eu=i.forwardRef((e,t)=>{let{__scopeRadio:r,control:n,checked:a,bubbles:o=!0,...s}=e,c=i.useRef(null),d=l(c,t),h=(0,G.Z)(a),p=(0,Y.X)(n);return i.useEffect(()=>{let e=c.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set;if(h!==a&&t){let r=new Event("click",{bubbles:o});t.call(e,a),e.dispatchEvent(r)}},[h,a,o]),(0,u.jsx)(f.input,{type:"radio","aria-hidden":!0,defaultChecked:a,...s,tabIndex:-1,ref:d,style:{...s.style,...p,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function ec(e){return e?"checked":"unchecked"}eu.displayName="RadioBubbleInput";var ed=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],ef="RadioGroup",[eh,ep]=c(ef,[L,en]),em=L(),ev=en(),[ey,eg]=eh(ef),eb=i.forwardRef((e,t)=>{let{__scopeRadioGroup:r,name:n,defaultValue:a,value:o,required:s=!1,disabled:l=!1,orientation:c,dir:d,loop:h=!0,onValueChange:p,...m}=e,v=em(r),y=function(e){let t=i.useContext(K);return e||t||"ltr"}(d),[g,b]=function({prop:e,defaultProp:t,onChange:r=()=>{},caller:n}){let[a,o,s]=function({defaultProp:e,onChange:t}){let[r,n]=i.useState(e),a=i.useRef(r),o=i.useRef(t);return q(()=>{o.current=t},[t]),i.useEffect(()=>{a.current!==r&&(o.current?.(r),a.current=r)},[r,a]),[r,n,o]}({defaultProp:t,onChange:r}),l=void 0!==e,u=l?e:a;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==l){let t=l?"controlled":"uncontrolled";console.warn(`${n} is changing from ${e?"controlled":"uncontrolled"} to ${t}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`)}t.current=l},[l,n])}return[u,i.useCallback(t=>{if(l){let r="function"==typeof t?t(e):t;r!==e&&s.current?.(r)}else o(t)},[l,e,o,s])]}({prop:o,defaultProp:null!=a?a:"",onChange:p,caller:ef});return(0,u.jsx)(ey,{scope:r,name:n,required:s,disabled:l,value:g,onValueChange:b,children:(0,u.jsx)(B,{asChild:!0,...v,orientation:c,dir:y,loop:h,children:(0,u.jsx)(f.div,{role:"radiogroup","aria-required":s,"aria-orientation":c,"data-disabled":l?"":void 0,dir:y,...m,ref:t})})})});eb.displayName=ef;var ew="RadioGroupItem",ex=i.forwardRef((e,t)=>{let{__scopeRadioGroup:r,disabled:n,...a}=e,s=eg(ew,r),c=s.disabled||n,d=em(r),f=ev(r),h=i.useRef(null),p=l(t,h),m=s.value===a.value,v=i.useRef(!1);return i.useEffect(()=>{let e=e=>{ed.includes(e.key)&&(v.current=!0)},t=()=>v.current=!1;return document.addEventListener("keydown",e),document.addEventListener("keyup",t),()=>{document.removeEventListener("keydown",e),document.removeEventListener("keyup",t)}},[]),(0,u.jsx)(W,{asChild:!0,...d,focusable:!c,active:m,children:(0,u.jsx)(eo,{disabled:c,required:s.required,
1checked:m,...f,...a,name:s.name,ref:p,onCheck:()=>s.onValueChange(a.value),onKeyDown:o(e=>{"Enter"===e.key&&e.preventDefault()}),onFocus:o(a.onFocus,()=>{var e;v.current&&(null===(e=h.current)||void 0===e||e.click())})})})});ex.displayName=ew;var e_=i.forwardRef((e,t)=>{let{__scopeRadioGroup:r,...n}=e,i=ev(r);return(0,u.jsx)(el,{...i,...n,ref:t})});e_.displayName="RadioGroupIndicator";var ek=eb,eE=ex,eA=e_},89603:(e,t,r)=>{"use strict";let n,i;r.d(t,{L:()=>W});var a=r(94449),o=r(99967),s=r(12115),l=r(96299),u=r(21116),c=r(46182);function d(e,t){let r,n=()=>{let{currentTime:n}=t,i=(null===n?0:n.value)/100;r!==i&&e(i),r=i};return c.Gt.update(n,!0),()=>(0,c.WG)(n)}var f=r(80793);let h=new WeakMap;function p({target:e,contentRect:t,borderBoxSize:r}){var n;null===(n=h.get(e))||void 0===n||n.forEach(n=>{n({target:e,contentSize:t,get size(){if(r){let{inlineSize:e,blockSize:t}=r[0];return{width:e,height:t}}if(e instanceof SVGElement&&"getBBox"in e)return e.getBBox();return{width:e.offsetWidth,height:e.offsetHeight}}})})}function m(e){e.forEach(p)}let v=new Set;var y=r(38865),g=r(64530);let b=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),w=()=>({time:0,x:b(),y:b()}),x={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function _(e,t,r,n){let i=r[t],{length:a,position:o}=x[t],s=i.current,l=r.time;i.current=e[`scroll${o}`],i.scrollLength=e[`scroll${a}`]-e[`client${a}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=(0,y.q)(0,i.scrollLength,i.current);let u=n-l;i.velocity=u>50?0:(0,g.f)(i.current-s,u)}var k=r(25737),E=r(15853),A=r(84657);let S={start:0,center:.5,end:1};function C(e,t,r=0){let n=0;if(e in S&&(e=S[e]),"string"==typeof e){let t=parseFloat(e);e.endsWith("px")?n=t:e.endsWith("%")?e=t/100:e.endsWith("vw")?n=t/100*document.documentElement.clientWidth:e.endsWith("vh")?n=t/100*document.documentElement.clientHeight:e=t}return"number"==typeof e&&(n=t*e),r+n}let T=[0,0],P={All:[[0,0],[1,1]]},O={x:0,y:0},j=new WeakMap,R=new WeakMap,N=new WeakMap,F=e=>e===document.documentElement?window:e;function D(e,{container:t=document.documentElement,...r}={}){let a=N.get(t);a||(a=new Set,N.set(t,a));let o=function(e,t,r,n={}){return{measure:()=>(function(e,t=e,r){if(r.x.targetOffset=0,r.y.targetOffset=0,t!==e){let n=t;for(;n&&n!==e;)r.x.targetOffset+=n.offsetLeft,r.y.targetOffset+=n.offsetTop,n=n.offsetParent}r.x.targetLength=t===e?t.scrollWidth:t.clientWidth,r.y.targetLength=t===e?t.scrollHeight:t.clientHeight,r.x.containerLength=e.clientWidth,r.y.containerLength=e.clientHeight})(e,n.target,r),update:t=>{_(e,"x",r,t),_(e,"y",r,t),r.time=t,(n.offset||n.target)&&function(e,t,r){let{offset:n=P.All}=r,{target:i=e,axis:a="y"}=r,o="y"===a?"height":"width",s=i!==e?function(e,t){let r={x:0,y:0},n=e;for(;n&&n!==t;)if(n instanceof HTMLElement)r.x+=n.offsetLeft,r.y+=n.offsetTop,n=n.offsetParent;else if("svg"===n.tagName){let e=n.getBoundingClientRect(),t=(n=n.parentElement).getBoundingClientRect();r.x+=e.left-t.left,r.y+=e.top-t.top}else if(n instanceof SVGGraphicsElement){let{x:e,y:t}=n.getBBox();r.x+=e,r.y+=t;let i=null,a=n.parentNode;for(;!i;)"svg"===a.tagName&&(i=a),a=n.parentNode;n=i}else break;return r}(i,e):O,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:"getBBox"in i&&"svg"!==i.tagName?i.getBBox():{width:i.clientWidth,height:i.clientHeight},u={width:e.clientWidth,height:e.clientHeight};t[a].offset.length=0;let c=!t[a].interpolate,d=n.length;for(let e=0;e<d;e++){let r=function(e,t,r,n){let i=Array.isArray(e)?e:T,a=0,o=0;return"number"==typeof e?i=[e,e]:"string"==typeof e&&(i=(e=e.trim()).includes(" ")?e.split(" "):[e,S[e]?e:"0"]),(a=C(i[0],r,n))-C(i[1],t)}(n[e],u[o],l[o],s[a]);c||r===t[a].interpolatorOffsets[e]||(c=!0),t[a].offset[e]=r}c&&(t[a].interpolate=(0,E.G)(t[a].offset,(0,A.Z)(n),{clamp:!1}),t[a].interpolatorOffsets=[...t[a].offset]),t[a].progress=(0,k.q)(0,1,t[a].interpolate(t[a].current))}(e,r,n)},notify:()=>t(r)}}(t,e,w(),r);if(a.add(o),!j.has(t)){let e=()=>{for(let e of a)e.measure()},r=()=>{for(let e of a)e.update(c.uv.timestamp)},o=()=>{for(let e of a)e.notify()},s=()=>{c.Gt.read(e,!1,!0),c.Gt.read(r,!1,!0),c.Gt.update(o,!1,!0)};j.set(t,s);let l=F(t);if(window.addEventListener("resize",s,{passive:!0}),t!==document.documentElement)R.set(t,"function"==typeof t?(v.add(t),i||(i=()=>{let e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};
1v.forEach(e=>e(t))},window.addEventListener("resize",i)),()=>{v.delete(t),!v.size&&i&&(i=void 0)}):function(e,t){n||"undefined"==typeof ResizeObserver||(n=new ResizeObserver(m));let r=(0,f.K)(e);return r.forEach(e=>{let r=h.get(e);r||(r=new Set,h.set(e,r)),r.add(t),null==n||n.observe(e)}),()=>{r.forEach(e=>{let r=h.get(e);null==r||r.delete(t),(null==r?void 0:r.size)||null==n||n.unobserve(e)})}}(t,s));l.addEventListener("scroll",s,{passive:!0})}let s=j.get(t);return c.Gt.read(s,!1,!0),()=>{var e;(0,c.WG)(s);let r=N.get(t);if(!r||(r.delete(o),r.size))return;let n=j.get(t);j.delete(t),n&&(F(t).removeEventListener("scroll",n),null===(e=R.get(t))||void 0===e||e(),window.removeEventListener("resize",n))}}let M=new Map;function L({source:e,container:t=document.documentElement,axis:r="y"}={}){e&&(t=e),M.has(t)||M.set(t,{});let n=M.get(t);return n[r]||(n[r]=(0,l.J)()?new ScrollTimeline({source:t,axis:r}):function({source:e,container:t,axis:r="y"}){e&&(t=e);let n={value:0},i=D(e=>{n.value=100*e[r].progress},{container:t,axis:r});return{currentTime:n,cancel:i}}({source:t,axis:r})),n[r]}function I(e){return e&&(e.target||e.offset)}var V=r(76168),B=r(69025);function $(e,t){(0,a.$)(!!(!t||t.current),`You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}let Z=()=>({scrollX:(0,o.OQ)(0),scrollY:(0,o.OQ)(0),scrollXProgress:(0,o.OQ)(0),scrollYProgress:(0,o.OQ)(0)});function W({container:e,target:t,layoutEffect:r=!0,...n}={}){let i=(0,V.M)(Z);return(r?B.E:s.useEffect)(()=>($("target",t),$("container",e),function(e,{axis:t="y",...r}={}){var n,i;let a={axis:t,...r};return"function"==typeof e?(n=e,i=a,2===n.length||I(i)?D(e=>{n(e[i.axis].progress,e)},i):d(n,L(i))):function(e,t){if(e.flatten(),I(t))return e.pause(),D(r=>{e.time=e.duration*r[t.axis].progress},t);{let r=L(t);return e.attachTimeline?e.attachTimeline(r,e=>(e.pause(),d(t=>{e.time=e.duration*t},r))):u.l}}(e,a)}((e,{x:t,y:r})=>{i.scrollX.set(t.current),i.scrollXProgress.set(t.progress),i.scrollY.set(r.current),i.scrollYProgress.set(r.progress)},{...n,container:(null==e?void 0:e.current)||void 0,target:(null==t?void 0:t.current)||void 0})),[e,t,JSON.stringify(n.offset)]),i}},90221:(e,t,r)=>{"use strict";r.d(t,{u:()=>u});var n=r(62177);let i=(e,t,r)=>{if(e&&"reportValidity"in e){let i=(0,n.Jt)(r,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},a=(e,t)=>{for(let r in t.fields){let n=t.fields[r];n&&n.ref&&"reportValidity"in n.ref?i(n.ref,r,e):n&&n.refs&&n.refs.forEach(t=>i(t,r,e))}},o=(e,t)=>{t.shouldUseNativeValidation&&a(e,t);let r={};for(let i in e){let a=(0,n.Jt)(t.fields,i),o=Object.assign(e[i]||{},{ref:a&&a.ref});if(s(t.names||Object.keys(e),i)){let e=Object.assign({},(0,n.Jt)(r,i));(0,n.hZ)(e,"root",o),(0,n.hZ)(r,i,e)}else(0,n.hZ)(r,i,o)}return r},s=(e,t)=>{let r=l(t);return e.some(e=>l(e).match(`^${r}\\.\\d+`))};function l(e){return e.replace(/\]|\[/g,"")}function u(e,t,r){return void 0===r&&(r={}),function(i,s,l){try{return Promise.resolve(function(n,o){try{var s=Promise.resolve(e["sync"===r.mode?"parse":"parseAsync"](i,t)).then(function(e){return l.shouldUseNativeValidation&&a({},l),{errors:{},values:r.raw?Object.assign({},i):e}})}catch(e){return o(e)}return s&&s.then?s.then(void 0,o):s}(0,function(e){if(Array.isArray(null==e?void 0:e.errors))return{values:{},errors:o(function(e,t){for(var r={};e.length;){var i=e[0],a=i.code,o=i.message,s=i.path.join(".");if(!r[s])if("unionErrors"in i){var l=i.unionErrors[0].errors[0];r[s]={message:l.message,type:l.code}}else r[s]={message:o,type:a};if("unionErrors"in i&&i.unionErrors.forEach(function(t){return t.errors.forEach(function(t){return e.push(t)})}),t){var u=r[s].types,c=u&&u[i.code];r[s]=(0,n.Gb)(s,t,r,a,c?[].concat(c,i.message):i.message)}e.shift()}return r}(e.errors,!l.shouldUseNativeValidation&&"all"===l.criteriaMode),l)};throw e}))}catch(e){return Promise.reject(e)}}}},90240:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=["ready","stateChange","playbackQualityChange","playbackRateChange","error","apiChange","volumeChange"],e.exports=t.default},91959:(e,t,r)=>{var n=r(45964),i=r(67460);e.exports=function(e,t,r){var a=!0,o=!0;if("function"!=typeof e)throw TypeError("Expected a function");return i(r)&&(a="leading"in r?!!r.leading:a,o="trailing"in r?!!r.trailing:o),n(e,t,{leading:a,maxWait:t,trailing:o})}},94971:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(43969);function i(e,t){var r=(0,n._)(e,t,"get");return r.get?r.get.call(e):r.value}},95920:(e,t,r)=>{"use strict";function n(e,t,r){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,r)}r.d(t,{_:()=>n})},98233:(e,t,r)=>
1{var n=r(24376),i=r(20570),a=r(64439),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},98359:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(23546));t.default=function(e){return new Promise(function(t){if(window.YT&&window.YT.Player&&window.YT.Player instanceof Function){t(window.YT);return}var r="http:"===window.location.protocol?"http:":"https:";(0,n.default)(r+"//www.youtube.com/iframe_api",function(t){t&&e.trigger("error",t)});var i=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=function(){i&&i(),t(window.YT)}})},e.exports=t.default},99397:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(r(81085));t.default={pauseVideo:{acceptableStates:[n.default.ENDED,n.default.PAUSED],stateChangeRequired:!1},playVideo:{acceptableStates:[n.default.ENDED,n.default.PLAYING],stateChangeRequired:!1},seekTo:{acceptableStates:[n.default.ENDED,n.default.PLAYING,n.default.PAUSED],stateChangeRequired:!0,timeout:3e3}},e.exports=t.default}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.