(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{3454:function(e,t,n){"use strict";var i,s;e.exports=(null==(i=n.g.process)?void 0:i.env)&&"object"==typeof(null==(s=n.g.process)?void 0:s.env)?n.g.process:n(7663)},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(9672)}])},597:function(e,t,n){var i=n(3454);n(1479);var s=n(7294),o=s&&"object"==typeof s&&"default"in s?s:{default:s};function _defineProperties(e,t){for(var n=0;n>>0},l={};function computeId(e,t){if(!t)return"jsx-"+e;var n=String(t),i=e+n;return l[i]||(l[i]="jsx-"+stringHash(e+"-"+n)),l[i]}function computeSelector(e,t){var n=e+t;return l[n]||(l[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),l[n]}var c=function(){function StyleSheetRegistry(e){var t=void 0===e?{}:e,n=t.styleSheet,i=void 0===n?null:n,s=t.optimizeForSpeed,o=void 0!==s&&s;this._sheet=i||new u({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),i&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var e=StyleSheetRegistry.prototype;return e.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),i=n.styleId,s=n.rules;if(i in this._instancesCounts){this._instancesCounts[i]+=1;return}var o=s.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[i]=o,this._instancesCounts[i]=1},e.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var i=this._fromServer&&this._fromServer[n];i?(i.parentNode.removeChild(i),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},e.update=function(e,t){this.add(t),this.remove(e)},e.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},e.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},e.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],i=e[1];return o.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:i}})})},e.getIdAndRules=function(e){var t=e.children,n=e.dynamic,i=e.id;if(n){var s=computeId(i,n);return{styleId:s,rules:Array.isArray(t)?t.map(function(e){return computeSelector(s,e)}):[computeSelector(s,t)]}}return{styleId:computeId(i),rules:Array.isArray(t)?t:[t]}},e.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},StyleSheetRegistry}(),d=s.createContext(null);d.displayName="StyleSheetContext";var h=o.default.useInsertionEffect||o.default.useLayoutEffect,f=new c;function JSXStyle(e){var t=f||s.useContext(d);return t&&h(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}JSXStyle.dynamic=function(e){return e.map(function(e){return computeId(e[0],e[1])}).join(" ")},t.style=JSXStyle},5379:function(e,t,n){"use strict";e.exports=n(597).style},9672:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return c}});var i=n(5893),s=n(9797);n(2352);var o=n(3175),a=n(5650),u=n(3791),NextUIProvider=({children:e,locale:t="en-US",navigate:n,...s})=>{let l=e;return n&&(l=(0,i.jsx)(a.pG,{navigate:n,children:l})),(0,i.jsx)(o.bd,{locale:t,children:(0,i.jsx)(u.N3,{...s,children:l})})},l=n(4866),c=s.h.withTRPC(e=>{let{Component:t,pageProps:n}=e;return(0,i.jsxs)(NextUIProvider,{children:[(0,i.jsx)(l.I,{}),(0,i.jsx)(t,{...n})]})})},4866:function(e,t,n){"use strict";n.d(t,{I:function(){return toast_ToastContainer},A:function(){return toast}});var i,s,o=n(5893),a=n(5379),u=n.n(a),l=n(7294),c=l.memo(()=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",children:(0,o.jsx)("g",{transform:"translate(.077 .077)",children:(0,o.jsx)("g",{children:(0,o.jsx)("path",{fill:"none",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M3.719 7.884L6.235 10.4l3.032-3.032 2.774-2.774"})})})})),d=l.memo(()=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",children:(0,o.jsx)("g",{transform:"translate(.077 .077)",children:(0,o.jsx)("g",{children:(0,o.jsx)("path",{fill:"#fff",d:"M10.915 9.98l2.853-2.846a.666.666 0 00-.942-.942L9.979 9.044 7.133 6.191a.666.666 0 00-.942.942L9.044 9.98 6.19 12.826a.666.666 0 10.942.942l2.846-2.853 2.846 2.853a.666.666 0 10.942-.942z",transform:"translate(-2.017 -2.018)"})})})})),h=l.memo(()=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",children:(0,o.jsx)("g",{transform:"translate(-1533 -39)",children:(0,o.jsxs)("g",{fill:"#fff",transform:"translate(-.358 -1.639)",children:[(0,o.jsx)("circle",{cx:"1.134",cy:"1.134",r:"1.134",transform:"rotate(180 771.246 22.823)"}),(0,o.jsx)("path",{d:"M1 0a1 1 0 00-1 1v5a1 1 0 002 0V1a1 1 0 00-1-1z",transform:"rotate(180 771.17 26.882)"})]})})})),f=l.memo(()=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",children:(0,o.jsx)("g",{transform:"rotate(180 774.5 27.5)",children:(0,o.jsxs)("g",{fill:"#fff",transform:"translate(-.358 -1.639)",children:[(0,o.jsx)("circle",{cx:"1.134",cy:"1.134",r:"1.134",transform:"rotate(180 771.246 22.823)"}),(0,o.jsx)("path",{d:"M1 0a1 1 0 00-1 1v5a1 1 0 002 0V1a1 1 0 00-1-1z",transform:"rotate(180 771.17 26.882)"})]})})}));(i=s||(s={})).SHOW="show",i.HIDE="hide",i.HIDE_ALL="hideAll";let toastIcon=e=>{let{type:t}=e;switch(t){case"error":return(0,o.jsx)(d,{});case"info":return(0,o.jsx)(h,{});case"warning":return(0,o.jsx)(f,{});default:return(0,o.jsx)(c,{})}};var p=n(2951);let m=(()=>{let e=new Map;return{on(t,n){e.has(t)||e.set(t,[]),e.get(t).push(n)},emit(t,n){e.has(t)&&e.get(t).forEach(e=>e(n))},off(){e.clear()}}})(),toaster=e=>{let{content:t,type:n,config:i}=e;return{id:Math.random().toString(36).substr(2,10),content:t,type:n,config:i}},toastDispatcher=e=>{let{dispatch:t,delay:n}=e;m.on(s.SHOW,e=>{t({type:"ADD",toast:e}),n&&setTimeout(()=>{t({type:"REMOVE",id:e.id})},n)}),m.on(s.HIDE,e=>t({type:"REMOVE",id:e})),m.on(s.HIDE_ALL,()=>t({type:"REMOVE_ALL"}))};var y=n(2491),v=n.n(y),Toast_Toast=e=>{let{id:t,content:n,type:i,config:{backgroundColor:a}={},onClose:u}=e;return(0,l.useEffect)(()=>{let e=setTimeout(()=>{m.emit(s.HIDE,t)},3e3);return()=>{clearTimeout(e)}},[t]),(0,o.jsxs)(p.E.div,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.5},className:"".concat(v().toast," ").concat(v().error),style:{backgroundColor:a},children:[(0,o.jsx)("div",{className:v().icon,children:toastIcon({type:i})}),(0,o.jsx)("div",{className:v().content,children:(0,o.jsx)("p",{style:{color:"white"},children:n})}),(0,o.jsx)("div",{className:v().close,onClick:()=>u(t),children:(0,o.jsx)(d,{})})]},t)};let g={toasts:[]},toastReducer=(e,t)=>{switch(t.type){case"ADD":return{...e,toasts:[...e.toasts,t.toast]};case"REMOVE":return{...e,toasts:[...e.toasts.filter(e=>e.id!==t.id)]};case"REMOVE_ALL":return{...e,toasts:[]};default:throw Error()}},useToast=()=>{let[e,t]=(0,l.useReducer)(toastReducer,g);return{...e,dispatch:t}};var b=n(1526),toast_ToastContainer=e=>{let{position:t="bottom-left",delay:n}=e,{toasts:i,dispatch:a}=useToast();(0,l.useEffect)(()=>(toastDispatcher({dispatch:a,delay:n}),()=>{m.off()}),[a,n]);let c=(0,l.useCallback)(e=>{m.emit(s.HIDE,e)},[]);return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u(),{id:"dddfe7f8cc1edadf",children:".toastContainer{overflow:hidden;overflow-x:auto;z-index:9223372036854775807;display:grid;grid-gap:20px;position:fixed;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.top-left{top:20px;left:20px}.top-center{top:20px;left:50%;-webkit-transform:translate(-50%,0);-moz-transform:translate(-50%,0);-ms-transform:translate(-50%,0);-o-transform:translate(-50%,0);transform:translate(-50%,0)}.top-right{top:20px;right:20px}.bottom-left{bottom:20px;left:20px}.bottom-center{bottom:20px;left:50%;-webkit-transform:translate(-50%,0);-moz-transform:translate(-50%,0);-ms-transform:translate(-50%,0);-o-transform:translate(-50%,0);transform:translate(-50%,0)}.bottom-right{bottom:20px;right:20px}"}),(0,o.jsx)("div",{className:"jsx-dddfe7f8cc1edadf "+"toastContainer ".concat(t),children:(0,o.jsx)(b.M,{children:i.map(e=>(0,o.jsx)(Toast_Toast,{...e,onClose:c},e.id))})})]})};let applyToast=e=>{let{...t}=e;return m.emit(s.SHOW,toaster({...t}))},toast=(e,t)=>applyToast({content:e,type:"default",config:t});toast.success=(e,t)=>applyToast({content:e,type:"success",config:t}),toast.error=(e,t)=>applyToast({content:e,type:"error",config:t}),toast.info=(e,t)=>applyToast({content:e,type:"info",config:t}),toast.warn=(e,t)=>applyToast({content:e,type:"warning",config:t}),toast.hideAll=()=>m.emit(s.HIDE_ALL)},9797:function(e,t,n){"use strict";let i;n.d(t,{h:function(){return eR}});let ObservableAbortError=class ObservableAbortError extends Error{constructor(e){super(e),this.name="ObservableAbortError",Object.setPrototypeOf(this,ObservableAbortError.prototype)}};function observable_ade1bad8_observable(e){let t={subscribe(t){let n=null,i=!1,s=!1,o=!1;function unsubscribe(){if(null===n){o=!0;return}!s&&(s=!0,"function"==typeof n?n():n&&n.unsubscribe())}return n=e({next(e){i||t.next?.(e)},error(e){i||(i=!0,t.error?.(e),unsubscribe())},complete(){i||(i=!0,t.complete?.(),unsubscribe())}}),o&&unsubscribe(),{unsubscribe}},pipe:(...e)=>(0===e.length?function(e){return e}:1===e.length?e[0]:function(t){return e.reduce((e,t)=>t(e),t)})(t)};return t}function isObject(e){return!!e&&!Array.isArray(e)&&"object"==typeof e}let TransformResultError=class TransformResultError extends Error{constructor(){super("Unable to transform response from server")}};function transformResult(e,t){let n;try{n=function(e,t){if("error"in e){let n=t.transformer.deserialize(e.error);return{ok:!1,error:{...e,error:n}}}let n={...e.result,...(!e.result.type||"data"===e.result.type)&&{type:"data",data:t.transformer.deserialize(e.result.data)}};return{ok:!0,result:n}}(e,t)}catch(e){throw new TransformResultError}if(!n.ok&&(!isObject(n.error.error)||"number"!=typeof n.error.error.code)||n.ok&&!isObject(n.result))throw new TransformResultError;return n}let TRPCClientError=class TRPCClientError extends Error{static from(e,t={}){return e instanceof TRPCClientError||e instanceof Error&&"TRPCClientError"===e.name?(t.meta&&(e.meta={...e.meta,...t.meta}),e):isObject(e)&&isObject(e.error)&&"number"==typeof e.error.code&&"string"==typeof e.error.message?new TRPCClientError(e.error.message,{...t,result:e}):e instanceof Error?new TRPCClientError(e.message,{...t,cause:e}):new TRPCClientError("Unknown error",{...t,cause:e})}constructor(e,t){let n=t?.cause;super(e,{cause:n}),this.meta=t?.meta,this.cause=n,this.shape=t?.result?.error,this.data=t?.result?.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,TRPCClientError.prototype)}};function invert(e){let t=Object.create(null);for(let n in e){let i=e[n];t[i]=n}return t}let s={PARSE_ERROR:-32700,BAD_REQUEST:-32600,INTERNAL_SERVER_ERROR:-32603,NOT_IMPLEMENTED:-32603,UNAUTHORIZED:-32001,FORBIDDEN:-32003,NOT_FOUND:-32004,METHOD_NOT_SUPPORTED:-32005,TIMEOUT:-32008,CONFLICT:-32009,PRECONDITION_FAILED:-32012,PAYLOAD_TOO_LARGE:-32013,UNPROCESSABLE_CONTENT:-32022,TOO_MANY_REQUESTS:-32029,CLIENT_CLOSED_REQUEST:-32099};invert(s),invert(s);let noop=()=>{},createRecursiveProxy=e=>(function createInnerProxy(e,t){let n=new Proxy(noop,{get(n,i){if("string"==typeof i&&"then"!==i)return createInnerProxy(e,[...t,i])},apply(n,i,s){let o="apply"===t[t.length-1];return e({args:o?s.length>=2?s[1]:[]:s,path:o?t.slice(0,-1):t})}});return n})(e,[]),createFlatProxy=e=>new Proxy(noop,{get(t,n){if("string"==typeof n&&"then"!==n)return e(n)}}),isFunction=e=>"function"==typeof e;function resolveHTTPLinkOptions(e){var t;return{url:e.url.toString().replace(/\/$/,""),fetch:e.fetch,AbortController:(t=e.AbortController)?t:"undefined"!=typeof window&&window.AbortController?window.AbortController:"undefined"!=typeof globalThis&&globalThis.AbortController?globalThis.AbortController:null}}let o={query:"GET",mutation:"POST"};function getInput(e){return"input"in e?e.runtime.transformer.serialize(e.input):function(e){let t={};for(let n=0;ne.runtime.transformer.serialize(t)))}let getUrl=e=>{let t=e.url+"/"+e.path,n=[];if("inputs"in e&&n.push("batch=1"),"query"===e.type){let t=getInput(e);void 0!==t&&n.push(`input=${encodeURIComponent(JSON.stringify(t))}`)}return n.length&&(t+="?"+n.join("&")),t},getBody=e=>{if("query"===e.type)return;let t=getInput(e);return void 0!==t?JSON.stringify(t):void 0},jsonHttpRequester=e=>httpRequest({...e,contentTypeHeader:"application/json",getUrl,getBody});async function fetchHTTPResponse(e,t){let n=e.getUrl(e),i=e.getBody(e),{type:s}=e,a=await e.headers();/* istanbul ignore if -- @preserve */if("subscription"===s)throw Error("Subscriptions should use wsLink");let u={...e.contentTypeHeader?{"content-type":e.contentTypeHeader}:{},...e.batchModeHeader?{"trpc-batch-mode":e.batchModeHeader}:{},...a};return(function(e){if(e)return e;if("undefined"!=typeof window&&isFunction(window.fetch))return window.fetch;if("undefined"!=typeof globalThis&&isFunction(globalThis.fetch))return globalThis.fetch;throw Error("No fetch implementation found")})(e.fetch)(n,{method:o[s],signal:t?.signal,body:i,headers:u})}function httpRequest(e){let t=e.AbortController?new e.AbortController:null,n={},i=!1,s=new Promise((s,o)=>{fetchHTTPResponse(e,t).then(e=>(n.response=e,i=!0,e.json())).then(e=>{n.responseJSON=e,s({json:e,meta:n})}).catch(e=>{i=!0,o(TRPCClientError.from(e,{meta:n}))})});return{promise:s,cancel:()=>{i||t?.abort()}}}let throwFatalError=()=>{throw Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function dataLoader(e){let t=null,n=null,destroyTimerAndPendingItems=()=>{clearTimeout(n),n=null,t=null};function dispatch(){let n=function(t){let n=[[]],i=0;for(;;){let s=t[i];if(!s)break;let o=n[n.length-1];if(s.aborted){s.reject?.(Error("Aborted")),i++;continue}let a=e.validate(o.concat(s).map(e=>e.key));if(a){o.push(s),i++;continue}if(0===o.length){s.reject?.(Error("Input is too big for a single dispatch")),i++;continue}n.push([])}return n}(t);for(let t of(destroyTimerAndPendingItems(),n)){if(!t.length)continue;let n={items:t,cancel:throwFatalError};for(let e of t)e.batch=n;let unitResolver=(e,t)=>{let i=n.items[e];i.resolve?.(t),i.batch=null,i.reject=null,i.resolve=null},{promise:i,cancel:s}=e.fetch(n.items.map(e=>e.key),unitResolver);n.cancel=s,i.then(e=>{for(let t=0;t{for(let t of n.items)t.reject?.(e),t.batch=null})}}return{load:function(e){let i={aborted:!1,key:e,batch:null,resolve:throwFatalError,reject:throwFatalError},s=new Promise((e,n)=>{i.reject=n,i.resolve=e,t||(t=[]),t.push(i)});return n||(n=setTimeout(dispatch)),{promise:s,cancel:()=>{i.aborted=!0,i.batch?.items.every(e=>e.aborted)&&(i.batch.cancel(),i.batch=null)}}}}}function createHTTPBatchLink(e){return function(t){let n=resolveHTTPLinkOptions(t),i=t.maxURLLength??1/0;return s=>{let batchLoader=o=>{let a=e({...n,runtime:s,type:o,opts:t});return{validate:e=>{if(i===1/0)return!0;let t=e.map(e=>e.path).join(","),a=e.map(e=>e.input),u=getUrl({...n,runtime:s,type:o,path:t,inputs:a});return u.length<=i},fetch:a}},o=dataLoader(batchLoader("query")),a=dataLoader(batchLoader("mutation")),u=dataLoader(batchLoader("subscription")),l={query:o,subscription:u,mutation:a};return({op:e})=>observable_ade1bad8_observable(t=>{let n;let i=l[e.type],{promise:o,cancel:a}=i.load(e);return o.then(e=>{n=e;let i=transformResult(e.json,s);if(!i.ok){t.error(TRPCClientError.from(i.error,{meta:e.meta}));return}t.next({context:e.meta,result:i.result}),t.complete()}).catch(e=>{t.error(TRPCClientError.from(e,{meta:n?.meta}))}),()=>{a()}})}}}let a=createHTTPBatchLink(e=>t=>{let n=t.map(e=>e.path).join(","),i=t.map(e=>e.input),{promise:s,cancel:o}=jsonHttpRequester({...e,path:n,inputs:i,headers:()=>e.opts.headers?"function"==typeof e.opts.headers?e.opts.headers({opList:t}):e.opts.headers:{}});return{promise:s.then(e=>{let n=Array.isArray(e.json)?e.json:t.map(()=>e.json),i=n.map(t=>({meta:e.meta,json:t}));return i}),cancel:o}});function httpLinkFactory(e){return t=>{let n=resolveHTTPLinkOptions(t);return i=>({op:s})=>observable_ade1bad8_observable(o=>{let a;let{path:u,input:l,type:c}=s,{promise:d,cancel:h}=e.requester({...n,runtime:i,type:c,path:u,input:l,headers:()=>t.headers?"function"==typeof t.headers?t.headers({op:s}):t.headers:{}});return d.then(e=>{a=e.meta;let t=transformResult(e.json,i);if(!t.ok){o.error(TRPCClientError.from(t.error,{meta:a}));return}o.next({context:e.meta,result:t.result}),o.complete()}).catch(e=>{o.error(TRPCClientError.from(e,{meta:a}))}),()=>{h()}})}}httpLinkFactory({requester:jsonHttpRequester});let u={css:{query:["72e3ff","3fb0d8"],mutation:["c5a3fc","904dfc"],subscription:["ff49e1","d83fbe"]},ansi:{regular:{query:["\x1b[30;46m","\x1b[97;46m"],mutation:["\x1b[30;45m","\x1b[97;45m"],subscription:["\x1b[30;42m","\x1b[97;42m"]},bold:{query:["\x1b[1;30;46m","\x1b[1;97;46m"],mutation:["\x1b[1;30;45m","\x1b[1;97;45m"],subscription:["\x1b[1;30;42m","\x1b[1;97;42m"]}}},defaultLogger=({c:e=console,colorMode:t="css"})=>n=>{let i=n.input,s="undefined"!=typeof FormData&&i instanceof FormData?Object.fromEntries(i):i,{parts:o,args:a}=function(e){let{direction:t,type:n,path:i,id:s,input:o}=e,a=[],l=[];if("ansi"===e.colorMode){let[o,c]=u.ansi.regular[n],[d,h]=u.ansi.bold[n];return a.push("up"===t?o:c,"up"===t?">>":"<<",n,"up"===t?d:h,`#${s}`,i,"\x1b[0m"),"up"===t?l.push({input:e.input}):l.push({input:e.input,result:"result"in e.result?e.result.result:e.result,elapsedMs:e.elapsedMs}),{parts:a,args:l}}let[c,d]=u.css[n],h=` background-color: #${"up"===t?c:d}; color: ${"up"===t?"black":"white"}; padding: 2px; `;return a.push("%c","up"===t?">>":"<<",n,`#${s}`,`%c${i}%c`,"%O"),l.push(h,`${h}; font-weight: bold;`,`${h}; font-weight: normal;`),"up"===t?l.push({input:o,context:e.context}):l.push({input:o,result:e.result,elapsedMs:e.elapsedMs,context:e.context}),{parts:a,args:l}}({...n,colorMode:t,input:s}),l="down"===n.direction&&n.result&&(n.result instanceof Error||"error"in n.result.result)?"error":"log";e[l].apply(null,[o.join(" ")].concat(a))};let TRPCUntypedClient=class TRPCUntypedClient{$request({type:e,input:t,path:n,context:i={}}){var s;let o=(s={links:this.links,op:{id:++this.requestId,type:e,path:n,input:t,context:i}},observable_ade1bad8_observable(e=>{let t=function execute(e=0,t=s.op){let n=s.links[e];if(!n)throw Error("No more links to execute - did you forget to add an ending link?");let i=n({op:t,next(t){let n=execute(e+1,t);return n}});return i}();return t.subscribe(e)}));return o.pipe(e=>{let t=0,n=null,i=[];return{subscribe:s=>(t++,i.push(s),n||(n=e.subscribe({next(e){for(let t of i)t.next?.(e)},error(e){for(let t of i)t.error?.(e)},complete(){for(let e of i)e.complete?.()}})),{unsubscribe(){t--,function(){if(0===t&&n){let e=n;n=null,e.unsubscribe()}}();let e=i.findIndex(e=>e===s);e>-1&&i.splice(e,1)}})}})}requestAsPromise(e){let t=this.$request(e),{promise:n,abort:i}=function(e){let t;let n=new Promise((n,i)=>{let s=!1;function onDone(){s||(s=!0,i(new ObservableAbortError("This operation was aborted.")),o.unsubscribe())}let o=e.subscribe({next(e){s=!0,n(e),onDone()},error(e){s=!0,i(e),onDone()},complete(){s=!0,onDone()}});t=onDone});return{promise:n,abort:t}}(t),s=new Promise((t,s)=>{e.signal?.addEventListener("abort",i),n.then(e=>{t(e.result.data)}).catch(e=>{s(TRPCClientError.from(e))})});return s}query(e,t,n){return this.requestAsPromise({type:"query",path:e,input:t,context:n?.context,signal:n?.signal})}mutation(e,t,n){return this.requestAsPromise({type:"mutation",path:e,input:t,context:n?.context,signal:n?.signal})}subscription(e,t,n){let i=this.$request({type:"subscription",path:e,input:t,context:n?.context});return i.subscribe({next(e){"started"===e.result.type?n.onStarted?.():"stopped"===e.result.type?n.onStopped?.():n.onData?.(e.result.data)},error(e){n.onError?.(e)},complete(){n.onComplete?.()}})}constructor(e){this.requestId=0;let t=(()=>{let t=e.transformer;return t?"input"in t?e.transformer:{input:t,output:t}:{input:{serialize:e=>e,deserialize:e=>e},output:{serialize:e=>e,deserialize:e=>e}}})();this.runtime={transformer:{serialize:e=>t.input.serialize(e),deserialize:e=>t.output.deserialize(e)},combinedTransformer:t},this.links=e.links.map(e=>e(this.runtime))}};function createTRPCClient(e){let t=new TRPCUntypedClient(e);return t}let l={query:"query",mutate:"mutation",subscribe:"subscription"},clientCallTypeToProcedureType=e=>l[e];async function parseJSONStream(e){let t=e.parse??JSON.parse;await readLines(e.readableStream,n=>{if(e.signal?.aborted||!n||"}"===n)return;let i=n.indexOf(":"),s=n.substring(2,i-1),o=n.substring(i+1);e.onSingle(Number(s),t(o))},e.textDecoder)}async function readLines(e,t,n){let i="",onChunk=e=>{let s=n.decode(e),o=s.split("\n");if(1===o.length)i+=o[0];else if(o.length>1){t(i+o[0]);for(let e=1;e{e.on("data",onChunk),e.on("end",t)}),t(i)}async function readStandardChunks(e,t){let n=e.getReader(),i=await n.read();for(;!i.done;)t(i.value),i=await n.read()}let streamingJsonHttpRequester=(e,t)=>{let n=e.AbortController?new e.AbortController:null,i=fetchHTTPResponse({...e,contentTypeHeader:"application/json",batchModeHeader:"stream",getUrl:getUrl,getBody:getBody},n),s=i.then(async i=>{if(!i.body)throw Error("Received response without body");let s={response:i};return parseJSONStream({readableStream:i.body,onSingle:t,parse:e=>({json:JSON.parse(e),meta:s}),signal:n?.signal,textDecoder:e.textDecoder})});return{cancel:()=>n?.abort(),promise:s}};createHTTPBatchLink(e=>{let t=function(e){if(e)return e;if("undefined"!=typeof window&&window.TextDecoder)return new window.TextDecoder;if("undefined"!=typeof globalThis&&globalThis.TextDecoder)return new globalThis.TextDecoder;throw Error("No TextDecoder implementation found")}(e.opts.textDecoder);return(n,i)=>{let s=n.map(e=>e.path).join(","),o=n.map(e=>e.input),{cancel:a,promise:u}=streamingJsonHttpRequester({...e,textDecoder:t,path:s,inputs:o,headers:()=>e.opts.headers?"function"==typeof e.opts.headers?e.opts.headers({opList:n}):e.opts.headers:{}},(e,t)=>{i(e,t)});return{promise:u.then(()=>[]),cancel:a}}});let dist_getBody=e=>{if("input"in e){if(!(e.input instanceof FormData))throw Error("Input is not FormData");return e.input}};httpLinkFactory({requester:e=>{if("mutation"!==e.type)throw Error("We only handle mutations with formdata");return httpRequest({...e,getUrl:()=>`${e.url}/${e.path}`,getBody:dist_getBody})}});var c,d=n(7294);let h=d.createContext(void 0),f=d.createContext(!1);function getQueryClientContext(e,t){return e||(t&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=h),window.ReactQueryClientContext):h)}let useQueryClient=({context:e}={})=>{let t=d.useContext(getQueryClientContext(e,d.useContext(f)));if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},QueryClientProvider=({client:e,children:t,context:n,contextSharing:i=!1})=>{d.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);let s=getQueryClientContext(n,i);return d.createElement(f.Provider,{value:!n&&i},d.createElement(s.Provider,{value:e},t))};function defaultShouldDehydrateMutation(e){return e.state.isPaused}function defaultShouldDehydrateQuery(e){return"success"===e.state.status}let Hydrate=({children:e,options:t,state:n})=>(!function(e,t={}){let n=useQueryClient({context:t.context}),i=d.useRef(t);i.current=t,d.useMemo(()=>{e&&function(e,t,n){if("object"!=typeof t||null===t)return;let i=e.getMutationCache(),s=e.getQueryCache(),o=t.mutations||[],a=t.queries||[];o.forEach(t=>{var s;i.build(e,{...null==n?void 0:null==(s=n.defaultOptions)?void 0:s.mutations,mutationKey:t.mutationKey},t.state)}),a.forEach(({queryKey:t,state:i,queryHash:o})=>{var a;let u=s.get(o);if(u){if(u.state.dataUpdatedAt=0&&e!==1/0}function difference(e,t){return e.filter(e=>!t.includes(e))}function timeUntilStale(e,t){return Math.max(e+(t||0)-Date.now(),0)}function parseQueryArgs(e,t,n){return isQueryKey(e)?"function"==typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function parseFilterArgs(e,t,n){return isQueryKey(e)?[{...t,queryKey:e},n]:[e||{},t]}function matchQuery(e,t){let{type:n="all",exact:i,fetchStatus:s,predicate:o,queryKey:a,stale:u}=e;if(isQueryKey(a)){if(i){if(t.queryHash!==hashQueryKeyByOptions(a,t.options))return!1}else{if(!partialDeepEqual(t.queryKey,a))return!1}}if("all"!==n){let e=t.isActive();if("active"===n&&!e||"inactive"===n&&e)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(void 0===s||s===t.state.fetchStatus)&&(!o||!!o(t))}function matchMutation(e,t){let{exact:n,fetching:i,predicate:s,mutationKey:o}=e;if(isQueryKey(o)){if(!t.options.mutationKey)return!1;if(n){if(hashQueryKey(t.options.mutationKey)!==hashQueryKey(o))return!1}else{if(!partialDeepEqual(t.options.mutationKey,o))return!1}}return("boolean"!=typeof i||"loading"===t.state.status===i)&&(!s||!!s(t))}function hashQueryKeyByOptions(e,t){let n=(null==t?void 0:t.queryKeyHashFn)||hashQueryKey;return n(e)}function hashQueryKey(e){return JSON.stringify(e,(e,t)=>isPlainObject(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function partialDeepEqual(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(n=>!partialDeepEqual(e[n],t[n]))}function shallowEqualObjects(e,t){if(e&&!t||t&&!e)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function isPlainArray(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function isPlainObject(e){if(!hasObjectPrototype(e))return!1;let t=e.constructor;if(void 0===t)return!0;let n=t.prototype;return!!(hasObjectPrototype(n)&&n.hasOwnProperty("isPrototypeOf"))}function hasObjectPrototype(e){return"[object Object]"===Object.prototype.toString.call(e)}function isQueryKey(e){return Array.isArray(e)}function sleep(e){return new Promise(t=>{setTimeout(t,e)})}function scheduleMicrotask(e){sleep(0).then(e)}function replaceData(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?function replaceEqualDeep(e,t){if(e===t)return e;let n=isPlainArray(e)&&isPlainArray(t);if(n||isPlainObject(e)&&isPlainObject(t)){let i=n?e.length:Object.keys(e).length,s=n?t:Object.keys(t),o=s.length,a=n?[]:{},u=0;for(let i=0;i{e()},batchNotifyFn=e=>{e()},schedule=n=>{t?e.push(n):scheduleMicrotask(()=>{notifyFn(n)})},flush=()=>{let t=e;e=[],t.length&&scheduleMicrotask(()=>{batchNotifyFn(()=>{t.forEach(e=>{notifyFn(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{--t||flush()}return n},batchCalls:e=>(...t)=>{schedule(()=>{e(...t)})},schedule,setNotifyFunction:e=>{notifyFn=e},setBatchNotifyFunction:e=>{batchNotifyFn=e}}}();let Subscribable=class Subscribable{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){let t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}};let y=new class extends Subscribable{constructor(){super(),this.setup=e=>{if(!p&&window.addEventListener){let listener=()=>e();return window.addEventListener("visibilitychange",listener,!1),window.addEventListener("focus",listener,!1),()=>{window.removeEventListener("visibilitychange",listener),window.removeEventListener("focus",listener)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){let t=this.focused!==e;t&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach(({listener:e})=>{e()})}isFocused(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},v=["online","offline"],g=new class extends Subscribable{constructor(){super(),this.setup=e=>{if(!p&&window.addEventListener){let listener=()=>e();return v.forEach(e=>{window.addEventListener(e,listener,!1)}),()=>{v.forEach(e=>{window.removeEventListener(e,listener)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.cleanup)||e.call(this),this.cleanup=void 0}}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e(e=>{"boolean"==typeof e?this.setOnline(e):this.onOnline()})}setOnline(e){let t=this.online!==e;t&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach(({listener:e})=>{e()})}isOnline(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine}};function defaultRetryDelay(e){return Math.min(1e3*2**e,3e4)}function canFetch(e){return(null!=e?e:"online")!=="online"||g.isOnline()}let CancelledError=class CancelledError{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function isCancelledError(e){return e instanceof CancelledError}function createRetryer(e){let t,n,i,s=!1,o=0,a=!1,u=new Promise((e,t)=>{n=e,i=t}),shouldPause=()=>!y.isFocused()||"always"!==e.networkMode&&!g.isOnline(),resolve=i=>{a||(a=!0,null==e.onSuccess||e.onSuccess(i),null==t||t(),n(i))},reject=n=>{a||(a=!0,null==e.onError||e.onError(n),null==t||t(),i(n))},pause=()=>new Promise(n=>{t=e=>{let t=a||!shouldPause();return t&&n(e),t},null==e.onPause||e.onPause()}).then(()=>{t=void 0,a||null==e.onContinue||e.onContinue()}),run=()=>{let t;if(!a){try{t=e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(resolve).catch(t=>{var n,i;if(a)return;let u=null!=(n=e.retry)?n:3,l=null!=(i=e.retryDelay)?i:defaultRetryDelay,c="function"==typeof l?l(o,t):l,d=!0===u||"number"==typeof u&&o{if(shouldPause())return pause()}).then(()=>{s?reject(t):run()})})}};return canFetch(e.networkMode)?run():pause().then(run),{promise:u,cancel:t=>{a||(reject(new CancelledError(t)),null==e.abort||e.abort())},continue:()=>{let e=null==t?void 0:t();return e?u:Promise.resolve()},cancelRetry:()=>{s=!0},continueRetry:()=>{s=!1}}}let QueryObserver=class QueryObserver extends Subscribable{constructor(e,t){super(),this.client=e,this.options=t,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.currentQuery.addObserver(this),shouldFetchOnMount(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return shouldFetchOn(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(e,t){let n=this.options,i=this.currentQuery;if(this.options=this.client.defaultQueryOptions(e),shallowEqualObjects(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();let s=this.hasListeners();s&&shouldFetchOptionally(this.currentQuery,i,this.options,n)&&this.executeFetch(),this.updateResult(t),s&&(this.currentQuery!==i||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();let o=this.computeRefetchInterval();s&&(this.currentQuery!==i||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(e){let t=this.client.getQueryCache().build(this.client,e),n=this.createResult(t,e);return e.keepPreviousData||(void 0!==e.placeholderData?!n.isPlaceholderData:shallowEqualObjects(this.getCurrentResult(),n))||(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(e){let t={};return Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),e[n])})}),t}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:e,...t}={}){return this.fetch({...t,meta:{refetchPage:e}})}fetchOptimistic(e){let t=this.client.defaultQueryOptions(e),n=this.client.getQueryCache().build(this.client,t);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,t))}fetch(e){var t;return this.executeFetch({...e,cancelRefetch:null==(t=e.cancelRefetch)||t}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(e){this.updateQuery();let t=this.currentQuery.fetch(this.options,e);return null!=e&&e.throwOnError||(t=t.catch(utils_noop)),t}updateStaleTimeout(){if(this.clearStaleTimeout(),p||this.currentResult.isStale||!isValidTimeout(this.options.staleTime))return;let e=timeUntilStale(this.currentResult.dataUpdatedAt,this.options.staleTime);this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},e+1)}computeRefetchInterval(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e}updateRefetchInterval(e){this.clearRefetchInterval(),this.currentRefetchInterval=e,!p&&!1!==this.options.enabled&&isValidTimeout(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||y.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(e,t){let n;let i=this.currentQuery,s=this.options,o=this.currentResult,a=this.currentResultState,u=this.currentResultOptions,l=e!==i,c=l?e.state:this.currentQueryInitialState,d=l?this.currentResult:this.previousQueryResult,{state:h}=e,{dataUpdatedAt:f,error:p,errorUpdatedAt:m,fetchStatus:y,status:v}=h,g=!1,b=!1;if(t._optimisticResults){let n=this.hasListeners(),o=!n&&shouldFetchOnMount(e,t),a=n&&shouldFetchOptionally(e,i,t,s);(o||a)&&(y=canFetch(e.options.networkMode)?"fetching":"paused",f||(v="loading")),"isRestoring"===t._optimisticResults&&(y="idle")}if(t.keepPreviousData&&!h.dataUpdatedAt&&null!=d&&d.isSuccess&&"error"!==v)n=d.data,f=d.dataUpdatedAt,v=d.status,g=!0;else if(t.select&&void 0!==h.data){if(o&&h.data===(null==a?void 0:a.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(h.data),n=replaceData(null==o?void 0:o.data,n,t),this.selectResult=n,this.selectError=null}catch(e){this.selectError=e}}else n=h.data;if(void 0!==t.placeholderData&&void 0===n&&"loading"===v){let e;if(null!=o&&o.isPlaceholderData&&t.placeholderData===(null==u?void 0:u.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.selectError=null}catch(e){this.selectError=e}void 0!==e&&(v="success",n=replaceData(null==o?void 0:o.data,e,t),b=!0)}this.selectError&&(p=this.selectError,n=this.selectResult,m=Date.now(),v="error");let x="fetching"===y,$="loading"===v,E="error"===v,S={status:v,fetchStatus:y,isLoading:$,isSuccess:"success"===v,isError:E,isInitialLoading:$&&x,data:n,dataUpdatedAt:f,error:p,errorUpdatedAt:m,failureCount:h.fetchFailureCount,failureReason:h.fetchFailureReason,errorUpdateCount:h.errorUpdateCount,isFetched:h.dataUpdateCount>0||h.errorUpdateCount>0,isFetchedAfterMount:h.dataUpdateCount>c.dataUpdateCount||h.errorUpdateCount>c.errorUpdateCount,isFetching:x,isRefetching:x&&!$,isLoadingError:E&&0===h.dataUpdatedAt,isPaused:"paused"===y,isPlaceholderData:b,isPreviousData:g,isRefetchError:E&&0!==h.dataUpdatedAt,isStale:isStale(e,t),refetch:this.refetch,remove:this.remove};return S}updateResult(e){let t=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,shallowEqualObjects(n,t))return;this.currentResult=n;let i={cache:!0};(null==e?void 0:e.listeners)!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.trackedProps.size)return!0;let i=new Set(null!=n?n:this.trackedProps);return this.options.useErrorBoundary&&i.add("error"),Object.keys(this.currentResult).some(e=>{let n=this.currentResult[e]!==t[e];return n&&i.has(e)})})()&&(i.listeners=!0),this.notify({...i,...e})}updateQuery(){let e=this.client.getQueryCache().build(this.client,this.options);if(e===this.currentQuery)return;let t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}onQueryUpdate(e){let t={};"success"===e.type?t.onSuccess=!e.manual:"error"!==e.type||isCancelledError(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()}notify(e){m.batch(()=>{var t,n,i,s,o,a,u,l;e.onSuccess?(null==(t=(n=this.options).onSuccess)||t.call(n,this.currentResult.data),null==(i=(s=this.options).onSettled)||i.call(s,this.currentResult.data,null)):e.onError&&(null==(o=(a=this.options).onError)||o.call(a,this.currentResult.error),null==(u=(l=this.options).onSettled)||u.call(l,void 0,this.currentResult.error)),e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)}),e.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}};function shouldFetchOnMount(e,t){return!1!==t.enabled&&!e.state.dataUpdatedAt&&!("error"===e.state.status&&!1===t.retryOnMount)||e.state.dataUpdatedAt>0&&shouldFetchOn(e,t,t.refetchOnMount)}function shouldFetchOn(e,t,n){if(!1!==t.enabled){let i="function"==typeof n?n(e):n;return"always"===i||!1!==i&&isStale(e,t)}return!1}function shouldFetchOptionally(e,t,n,i){return!1!==n.enabled&&(e!==t||!1===i.enabled)&&(!n.suspense||"error"!==e.state.status)&&isStale(e,n)}function isStale(e,t){return e.isStaleByTime(t.staleTime)}var b=n(1688);let x=b.useSyncExternalStore,$=d.createContext((i=!1,{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i})),useQueryErrorResetBoundary=()=>d.useContext($),E=d.createContext(!1),useIsRestoring=()=>d.useContext(E);function shouldThrowError(e,t){return"function"==typeof e?e(...t):!!e}E.Provider;let ensurePreventErrorBoundaryRetry=(e,t)=>{(e.suspense||e.useErrorBoundary)&&!t.isReset()&&(e.retryOnMount=!1)},useClearResetErrorBoundary=e=>{d.useEffect(()=>{e.clearReset()},[e])},getHasError=({result:e,errorResetBoundary:t,useErrorBoundary:n,query:i})=>e.isError&&!t.isReset()&&!e.isFetching&&shouldThrowError(n,[e.error,i]),ensureStaleTime=e=>{e.suspense&&"number"!=typeof e.staleTime&&(e.staleTime=1e3)},willFetch=(e,t)=>e.isLoading&&e.isFetching&&!t,shouldSuspend=(e,t,n)=>(null==e?void 0:e.suspense)&&willFetch(t,n),fetchOptimistic=(e,t,n)=>t.fetchOptimistic(e).then(({data:t})=>{null==e.onSuccess||e.onSuccess(t),null==e.onSettled||e.onSettled(t,null)}).catch(t=>{n.clearReset(),null==e.onError||e.onError(t),null==e.onSettled||e.onSettled(void 0,t)});function useBaseQuery(e,t){let n=useQueryClient({context:e.context}),i=useIsRestoring(),s=useQueryErrorResetBoundary(),o=n.defaultQueryOptions(e);o._optimisticResults=i?"isRestoring":"optimistic",o.onError&&(o.onError=m.batchCalls(o.onError)),o.onSuccess&&(o.onSuccess=m.batchCalls(o.onSuccess)),o.onSettled&&(o.onSettled=m.batchCalls(o.onSettled)),ensureStaleTime(o),ensurePreventErrorBoundaryRetry(o,s),useClearResetErrorBoundary(s);let[a]=d.useState(()=>new t(n,o)),u=a.getOptimisticResult(o);if(x(d.useCallback(e=>{let t=i?()=>void 0:a.subscribe(m.batchCalls(e));return a.updateResult(),t},[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),d.useEffect(()=>{a.setOptions(o,{listeners:!1})},[o,a]),shouldSuspend(o,u,i))throw fetchOptimistic(o,a,s);if(getHasError({result:u,errorResetBoundary:s,useErrorBoundary:o.useErrorBoundary,query:a.getCurrentQuery()}))throw u.error;return o.notifyOnChangeProps?u:a.trackResult(u)}let S=console;let Removable=class Removable{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),isValidTimeout(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:p?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}};let Mutation=class Mutation extends Removable{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||S,this.observers=[],this.state=e.state||getDefaultState(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter(t=>t!==e),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){var e,t,n,i,s,o,a,u,l,c,d,h,f,p,m,y,v,g,b,x;let $="loading"===this.state.status;try{if(!$){this.dispatch({type:"loading",variables:this.options.variables}),await (null==(l=(c=this.mutationCache.config).onMutate)?void 0:l.call(c,this.state.variables,this));let e=await (null==(d=(h=this.options).onMutate)?void 0:d.call(h,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}let f=await (()=>{var e;return this.retryer=createRetryer({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise})();return await (null==(e=(t=this.mutationCache.config).onSuccess)?void 0:e.call(t,f,this.state.variables,this.state.context,this)),await (null==(n=(i=this.options).onSuccess)?void 0:n.call(i,f,this.state.variables,this.state.context)),await (null==(s=(o=this.mutationCache.config).onSettled)?void 0:s.call(o,f,null,this.state.variables,this.state.context,this)),await (null==(a=(u=this.options).onSettled)?void 0:a.call(u,f,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:f}),f}catch(e){try{throw await (null==(f=(p=this.mutationCache.config).onError)?void 0:f.call(p,e,this.state.variables,this.state.context,this)),await (null==(m=(y=this.options).onError)?void 0:m.call(y,e,this.state.variables,this.state.context)),await (null==(v=(g=this.mutationCache.config).onSettled)?void 0:v.call(g,void 0,e,this.state.variables,this.state.context,this)),await (null==(b=(x=this.options).onSettled)?void 0:b.call(x,void 0,e,this.state.variables,this.state.context)),e}finally{this.dispatch({type:"error",error:e})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!canFetch(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),m.batch(()=>{this.observers.forEach(t=>{t.onMutationUpdate(e)}),this.mutationCache.notify({mutation:this,type:"updated",action:e})})}};function getDefaultState(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}let MutationObserver=class MutationObserver extends Subscribable{constructor(e,t){super(),this.client=e,this.setOptions(t),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;let n=this.options;this.options=this.client.defaultMutationOptions(e),shallowEqualObjects(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),null==(t=this.currentMutation)||t.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var e;null==(e=this.currentMutation)||e.removeObserver(this)}}onMutationUpdate(e){this.updateResult();let t={listeners:!0};"success"===e.type?t.onSuccess=!0:"error"===e.type&&(t.onError=!0),this.notify(t)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(e,t){return this.mutateOptions=t,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:void 0!==e?e:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){let e=this.currentMutation?this.currentMutation.state:getDefaultState(),t={...e,isLoading:"loading"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset};this.currentResult=t}notify(e){m.batch(()=>{if(this.mutateOptions&&this.hasListeners()){var t,n,i,s,o,a,u,l;e.onSuccess?(null==(t=(n=this.mutateOptions).onSuccess)||t.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),null==(i=(s=this.mutateOptions).onSettled)||i.call(s,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)):e.onError&&(null==(o=(a=this.mutateOptions).onError)||o.call(a,this.currentResult.error,this.currentResult.variables,this.currentResult.context),null==(u=(l=this.mutateOptions).onSettled)||u.call(l,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context))}e.listeners&&this.listeners.forEach(({listener:e})=>{e(this.currentResult)})})}};function useMutation_noop(){}function infiniteQueryBehavior(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,i,s,o,a;let u;let l=null==(t=e.fetchOptions)?void 0:null==(n=t.meta)?void 0:n.refetchPage,c=null==(i=e.fetchOptions)?void 0:null==(s=i.meta)?void 0:s.fetchMore,d=null==c?void 0:c.pageParam,h=(null==c?void 0:c.direction)==="forward",f=(null==c?void 0:c.direction)==="backward",p=(null==(o=e.state.data)?void 0:o.pages)||[],m=(null==(a=e.state.data)?void 0:a.pageParams)||[],y=m,v=!1,addSignalProperty=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?v=!0:null==(n=e.signal)||n.addEventListener("abort",()=>{v=!0}),e.signal}})},g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),buildNewPages=(e,t,n,i)=>(y=i?[t,...y]:[...y,t],i?[n,...e]:[...e,n]),fetchPage=(t,n,i,s)=>{if(v)return Promise.reject("Cancelled");if(void 0===i&&!n&&t.length)return Promise.resolve(t);let o={queryKey:e.queryKey,pageParam:i,meta:e.options.meta};addSignalProperty(o);let a=g(o),u=Promise.resolve(a).then(e=>buildNewPages(t,i,e,s));return u};if(p.length){if(h){let t=void 0!==d,n=t?d:getNextPageParam(e.options,p);u=fetchPage(p,t,n)}else if(f){let t=void 0!==d,n=t?d:getPreviousPageParam(e.options,p);u=fetchPage(p,t,n,!0)}else{y=[];let t=void 0===e.options.getNextPageParam,n=!l||!p[0]||l(p[0],0,p);u=n?fetchPage([],t,m[0]):Promise.resolve(buildNewPages([],m[0],p[0]));for(let n=1;n{let s=!l||!p[n]||l(p[n],n,p);if(s){let s=t?m[n]:getNextPageParam(e.options,i);return fetchPage(i,t,s)}return Promise.resolve(buildNewPages(i,m[n],p[n]))})}}else u=fetchPage([]);let b=u.then(e=>({pages:e,pageParams:y}));return b}}}}function getNextPageParam(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function getPreviousPageParam(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}let InfiniteQueryObserver=class InfiniteQueryObserver extends QueryObserver{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e,t){super.setOptions({...e,behavior:infiniteQueryBehavior()},t)}getOptimisticResult(e){return e.behavior=infiniteQueryBehavior(),super.getOptimisticResult(e)}fetchNextPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"forward",pageParam:e}}})}fetchPreviousPage({pageParam:e,...t}={}){return this.fetch({...t,meta:{fetchMore:{direction:"backward",pageParam:e}}})}createResult(e,t){var n,i,s,o,a,u;let{state:l}=e,c=super.createResult(e,t),{isFetching:d,isRefetching:h}=c,f=d&&(null==(n=l.fetchMeta)?void 0:null==(i=n.fetchMore)?void 0:i.direction)==="forward",p=d&&(null==(s=l.fetchMeta)?void 0:null==(o=s.fetchMore)?void 0:o.direction)==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:function(e,t){if(e.getNextPageParam&&Array.isArray(t)){let n=getNextPageParam(e,t);return null!=n&&!1!==n}}(t,null==(a=l.data)?void 0:a.pages),hasPreviousPage:function(e,t){if(e.getPreviousPageParam&&Array.isArray(t)){let n=getPreviousPageParam(e,t);return null!=n&&!1!==n}}(t,null==(u=l.data)?void 0:u.pages),isFetchingNextPage:f,isFetchingPreviousPage:p,isRefetching:h&&!f&&!p}}};let QueriesObserver=class QueriesObserver extends Subscribable{constructor(e,t){super(),this.client=e,this.queries=[],this.result=[],this.observers=[],this.observersMap={},t&&this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.observers.forEach(e=>{e.subscribe(t=>{this.onUpdate(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.observers.forEach(e=>{e.destroy()})}setQueries(e,t){this.queries=e,m.batch(()=>{let e=this.observers,n=this.findMatchingObservers(this.queries);n.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions,t));let i=n.map(e=>e.observer),s=Object.fromEntries(i.map(e=>[e.options.queryHash,e])),o=i.map(e=>e.getCurrentResult()),a=i.some((t,n)=>t!==e[n]);(e.length!==i.length||a)&&(this.observers=i,this.observersMap=s,this.result=o,this.hasListeners()&&(difference(e,i).forEach(e=>{e.destroy()}),difference(i,e).forEach(e=>{e.subscribe(t=>{this.onUpdate(e,t)})}),this.notify()))})}getCurrentResult(){return this.result}getQueries(){return this.observers.map(e=>e.getCurrentQuery())}getObservers(){return this.observers}getOptimisticResult(e){return this.findMatchingObservers(e).map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions))}findMatchingObservers(e){let t=this.observers,n=new Map(t.map(e=>[e.options.queryHash,e])),i=e.map(e=>this.client.defaultQueryOptions(e)),s=i.flatMap(e=>{let t=n.get(e.queryHash);return null!=t?[{defaultedQueryOptions:e,observer:t}]:[]}),o=new Set(s.map(e=>e.defaultedQueryOptions.queryHash)),a=i.filter(e=>!o.has(e.queryHash)),u=new Set(s.map(e=>e.observer)),l=t.filter(e=>!u.has(e)),getObserver=e=>{let t=this.client.defaultQueryOptions(e),n=this.observersMap[t.queryHash];return null!=n?n:new QueryObserver(this.client,t)},c=a.map((e,t)=>{if(e.keepPreviousData){let n=l[t];if(void 0!==n)return{defaultedQueryOptions:e,observer:n}}return{defaultedQueryOptions:e,observer:getObserver(e)}});return s.concat(c).sort((e,t)=>i.indexOf(e.defaultedQueryOptions)-i.indexOf(t.defaultedQueryOptions))}onUpdate(e,t){let n=this.observers.indexOf(e);-1!==n&&(this.result=function(e,t,n){let i=e.slice(0);return i[t]=n,i}(this.result,n,t),this.notify())}notify(){m.batch(()=>{this.listeners.forEach(({listener:e})=>{e(this.result)})})}};function getQueryKeyInternal(e,t){return e.length?void 0===t?[e]:[e,t]:[]}function createReactProxyDecoration(e,t){return createRecursiveProxy(n=>{let i=n.args,s=[e,...n.path],o=s.pop(),a=s.join(".");if("useMutation"===o)return t[o](a,...i);let[u,...l]=i,c=getQueryKeyInternal(a,u);if("getQueryKey"===o)return getArrayQueryKey_86134f8b_getArrayQueryKey(c,l[0]??"any");if("_def"===o)return{path:s};if(o.startsWith("useSuspense")){let e=l[0]||{},n=t["useSuspenseQuery"===o?"useQuery":"useInfiniteQuery"](c,{...e,suspense:!0,enabled:!0});return[n.data,n]}return t[o](c,...l)})}let T=["client","ssrContext","ssrState","abortOnUnmount"],P=(0,d.createContext)(null);function createReactQueryUtilsProxy(e){return createFlatProxy(t=>{if("client"===t){var n;return n=e.client,createFlatProxy(e=>n.hasOwnProperty(e)?n[e]:"__untypedClient"===e?n:createRecursiveProxy(({path:t,args:i})=>{let s=[e,...t],o=clientCallTypeToProcedureType(s.pop()),a=s.join(".");return n[o](a,...i)}))}return T.includes(t)?e[t]:createRecursiveProxy(({path:n,args:i})=>{let s=[t,...n],o=s.pop(),a=s.join("."),{queryKey:u,rest:l,updater:c}=(e=>{if(["setData","setInfiniteData"].includes(e)){let[e,t,...n]=i,s=getQueryKeyInternal(a,e);return{queryKey:s,updater:t,rest:n}}let[t,...n]=i,s=getQueryKeyInternal(a,t);return{queryKey:s,rest:n}})(o);return({fetch:()=>e.fetchQuery(u,...l),fetchInfinite:()=>e.fetchInfiniteQuery(u,...l),prefetch:()=>e.prefetchQuery(u,...l),prefetchInfinite:()=>e.prefetchInfiniteQuery(u,...l),ensureData:()=>e.ensureQueryData(u,...l),invalidate:()=>e.invalidateQueries(u,...l),reset:()=>e.resetQueries(u,...l),refetch:()=>e.refetchQueries(u,...l),cancel:()=>e.cancelQuery(u,...l),setData:()=>{e.setQueryData(u,c,...l)},setInfiniteData:()=>{e.setInfiniteQueryData(u,c,...l)},getData:()=>e.getQueryData(u),getInfiniteData:()=>e.getInfiniteQueryData(u)})[o]()})})}function getClientArgs(e,t){let[n,i]=e;return[n,i,t?.trpc]}function useHookResult(e){let t=(0,d.useRef)(e);return t.current.path=e.path,t.current}function createHooksInternal_bdff7171_createHooksInternal(e){return function(e){let t=(e?.overrides??e?.unstable_overrides)?.useMutation?.onSuccess??(e=>e.originalFn()),n=e?.context??P,i=e?.reactQueryContext;function useContext(){return d.useContext(n)}function useSSRQueryOptionsIfNeeded(e,t,n){let{queryClient:i,ssrState:s}=useContext();return s&&"mounted"!==s&&i.getQueryCache().find(getArrayQueryKey_86134f8b_getArrayQueryKey(e,t))?.state.status==="error"?{retryOnMount:!1,...n}:n}return{Provider:e=>{let{abortOnUnmount:t=!1,client:i,queryClient:s,ssrContext:o}=e,[a,u]=(0,d.useState)(e.ssrState??!1);return(0,d.useEffect)(()=>{u(e=>!!e&&"mounted")},[]),d.createElement(n.Provider,{value:{abortOnUnmount:t,queryClient:s,client:i,ssrContext:o??null,ssrState:a,fetchQuery:(0,d.useCallback)((e,t)=>s.fetchQuery({...t,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"query"),queryFn:()=>i.query(...getClientArgs(e,t))}),[i,s]),fetchInfiniteQuery:(0,d.useCallback)((e,t)=>s.fetchInfiniteQuery({...t,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"infinite"),queryFn:({pageParam:n})=>{let[s,o]=e,a={...o,cursor:n};return i.query(...getClientArgs([s,a],t))}}),[i,s]),prefetchQuery:(0,d.useCallback)((e,t)=>s.prefetchQuery({...t,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"query"),queryFn:()=>i.query(...getClientArgs(e,t))}),[i,s]),prefetchInfiniteQuery:(0,d.useCallback)((e,t)=>s.prefetchInfiniteQuery({...t,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"infinite"),queryFn:({pageParam:n})=>{let[s,o]=e,a={...o,cursor:n};return i.query(...getClientArgs([s,a],t))}}),[i,s]),ensureQueryData:(0,d.useCallback)((e,t)=>s.ensureQueryData({...t,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"query"),queryFn:()=>i.query(...getClientArgs(e,t))}),[i,s]),invalidateQueries:(0,d.useCallback)((e,t,n)=>s.invalidateQueries({...t,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"any")},n),[s]),resetQueries:(0,d.useCallback)((...e)=>{let[t,n,i]=e;return s.resetQueries({...n,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(t,"any")},i)},[s]),refetchQueries:(0,d.useCallback)((...e)=>{let[t,n,i]=e;return s.refetchQueries({...n,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(t,"any")},i)},[s]),cancelQuery:(0,d.useCallback)(e=>s.cancelQueries({queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"any")}),[s]),setQueryData:(0,d.useCallback)((...e)=>{let[t,...n]=e;return s.setQueryData(getArrayQueryKey_86134f8b_getArrayQueryKey(t,"query"),...n)},[s]),getQueryData:(0,d.useCallback)((...e)=>{let[t,...n]=e;return s.getQueryData(getArrayQueryKey_86134f8b_getArrayQueryKey(t,"query"),...n)},[s]),setInfiniteQueryData:(0,d.useCallback)((...e)=>{let[t,...n]=e;return s.setQueryData(getArrayQueryKey_86134f8b_getArrayQueryKey(t,"infinite"),...n)},[s]),getInfiniteQueryData:(0,d.useCallback)((...e)=>{let[t,...n]=e;return s.getQueryData(getArrayQueryKey_86134f8b_getArrayQueryKey(t,"infinite"),...n)},[s])}},e.children)},createClient:e=>createTRPCClient(e),useContext,useUtils:useContext,useQuery:function(t,n){let s=useContext();if(!s)throw Error("Unable to retrieve application context. Did you forget to wrap your App inside `withTRPC` HoC?");let{abortOnUnmount:o,client:a,ssrState:u,queryClient:l,prefetchQuery:c}=s,d=l.getQueryDefaults(getArrayQueryKey_86134f8b_getArrayQueryKey(t,"query"));"undefined"!=typeof window||"prepass"!==u||n?.trpc?.ssr===!1||(n?.enabled??d?.enabled)===!1||l.getQueryCache().find(getArrayQueryKey_86134f8b_getArrayQueryKey(t,"query"))||c(t,n);let h=useSSRQueryOptionsIfNeeded(t,"query",{...d,...n}),f=n?.trpc?.abortOnUnmount??e?.abortOnUnmount??o,p=function(e,t,n){let i=parseQueryArgs(e,void 0,void 0);return useBaseQuery(i,QueryObserver)}({...h,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(t,"query"),queryFn:e=>{let n={...h,trpc:{...h?.trpc,...f?{signal:e.signal}:{}}};return a.query(...getClientArgs(t,n))},context:i});return p.trpc=useHookResult({path:t[0]}),p},useQueries:(e,t)=>{let{ssrState:n,queryClient:i,prefetchQuery:s,client:o}=useContext(),a=createRecursiveProxy(e=>{let t=e.path.join("."),[n,i]=e.args,s=getQueryKeyInternal(t,n),a={queryKey:s,queryFn:()=>o.query(t,n,i?.trpc),...i};return a}),u=e(a);if("undefined"==typeof window&&"prepass"===n)for(let e of u)e.trpc?.ssr===!1||i.getQueryCache().find(getArrayQueryKey_86134f8b_getArrayQueryKey(e.queryKey,"query"))||s(e.queryKey,e);return function({queries:e,context:t}){let n=useQueryClient({context:t}),i=useIsRestoring(),s=useQueryErrorResetBoundary(),o=d.useMemo(()=>e.map(e=>{let t=n.defaultQueryOptions(e);return t._optimisticResults=i?"isRestoring":"optimistic",t}),[e,n,i]);o.forEach(e=>{ensureStaleTime(e),ensurePreventErrorBoundaryRetry(e,s)}),useClearResetErrorBoundary(s);let[a]=d.useState(()=>new QueriesObserver(n,o)),u=a.getOptimisticResult(o);x(d.useCallback(e=>i?()=>void 0:a.subscribe(m.batchCalls(e)),[a,i]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),d.useEffect(()=>{a.setQueries(o,{listeners:!1})},[o,a]);let l=u.some((e,t)=>shouldSuspend(o[t],e,i)),c=l?u.flatMap((e,t)=>{let n=o[t],u=a.getObservers()[t];if(n&&u){if(shouldSuspend(n,e,i))return fetchOptimistic(n,u,s);willFetch(e,i)&&fetchOptimistic(n,u,s)}return[]}):[];if(c.length>0)throw Promise.all(c);let h=a.getQueries(),f=u.find((e,t)=>{var n,i;return getHasError({result:e,errorResetBoundary:s,useErrorBoundary:null!=(n=null==(i=o[t])?void 0:i.useErrorBoundary)&&n,query:h[t]})});if(null!=f&&f.error)throw f.error;return u}({queries:u.map(e=>({...e,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e.queryKey,"query")})),context:t})},useMutation:function(e,n){let{client:s}=useContext(),o=useQueryClient({context:i}),a=Array.isArray(e)?e[0]:e,u=o.getMutationDefaults([a.split(".")]),l=function(e,t,n){var i;let s=(i=void 0,isQueryKey(e)?"function"==typeof i?{mutationKey:e,mutationFn:i}:{...i,mutationKey:e}:"function"==typeof e?{...i,mutationFn:e}:{...e}),o=useQueryClient({context:s.context}),[a]=d.useState(()=>new MutationObserver(o,s));d.useEffect(()=>{a.setOptions(s)},[a,s]);let u=x(d.useCallback(e=>a.subscribe(m.batchCalls(e)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),l=d.useCallback((e,t)=>{a.mutate(e,t).catch(useMutation_noop)},[a]);if(u.error&&shouldThrowError(a.options.useErrorBoundary,[u.error]))throw u.error;return{...u,mutate:l,mutateAsync:u.mutate}}({...n,mutationKey:[a.split(".")],mutationFn:e=>s.mutation(...getClientArgs([a,e],n)),context:i,onSuccess:(...e)=>t({originalFn:()=>n?.onSuccess?.(...e)??u?.onSuccess?.(...e),queryClient:o,meta:n?.meta??u?.meta??{}})});return l.trpc=useHookResult({path:a}),l},useSubscription:/* istanbul ignore next -- @preserve */function(e,t){let n=t?.enabled??!0,i=hashQueryKey(e),{client:s}=useContext(),o=(0,d.useRef)(t);o.current=t,(0,d.useEffect)(()=>{if(!n)return;let[t,i]=e,a=!1,u=s.subscription(t,i??void 0,{onStarted:()=>{a||o.current.onStarted?.()},onData:e=>{a||o.current.onData(e)},onError:e=>{a||o.current.onError?.(e)}});return()=>{a=!0,u.unsubscribe()}},[i,n])},useDehydratedState:(e,t)=>{let n=(0,d.useMemo)(()=>t?e.runtime.transformer.deserialize(t):t,[t,e]);return n},useInfiniteQuery:function(e,t){let[n,s]=e,{client:o,ssrState:a,prefetchInfiniteQuery:u,queryClient:l,abortOnUnmount:c}=useContext(),d=l.getQueryDefaults(getArrayQueryKey_86134f8b_getArrayQueryKey(e,"infinite"));"undefined"!=typeof window||"prepass"!==a||t?.trpc?.ssr===!1||(t?.enabled??d?.enabled)===!1||l.getQueryCache().find(getArrayQueryKey_86134f8b_getArrayQueryKey(e,"infinite"))||u(e,{...d,...t});let h=useSSRQueryOptionsIfNeeded(e,"infinite",{...d,...t}),f=t?.trpc?.abortOnUnmount??c,p=function(e,t,n){let i=parseQueryArgs(e,void 0,void 0);return useBaseQuery(i,InfiniteQueryObserver)}({...h,queryKey:getArrayQueryKey_86134f8b_getArrayQueryKey(e,"infinite"),queryFn:e=>{let i={...h,trpc:{...h?.trpc,...f?{signal:e.signal}:{}}},a={...s??{},cursor:e.pageParam??t?.initialCursor};return o.query(...getClientArgs([n,a],i))},context:i});return p.trpc=useHookResult({path:n}),p}}}(e)}let Query=class Query extends Removable{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||S,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,i=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=i?i:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){let n=replaceData(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;let n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(utils_noop).catch(utils_noop):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(e=>!1!==e.options.enabled)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!timeUntilStale(this.state.dataUpdatedAt,e)}onFocus(){var e;let t=this.observers.find(e=>e.shouldFetchOnWindowFocus());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;let t=this.observers.find(e=>e.shouldFetchOnReconnect());t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,i,s,o;if("idle"!==this.state.fetchStatus){if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise)return null==(s=this.retryer)||s.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let a=function(){if("function"==typeof AbortController)return new AbortController}(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},addSignalProperty=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(a)return this.abortSignalConsumed=!0,a.signal}})};addSignalProperty(u);let l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};addSignalProperty(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(i=l.fetchOptions)?void 0:i.meta))&&this.dispatch({type:"fetch",meta:null==(o=l.fetchOptions)?void 0:o.meta});let onError=e=>{if(isCancelledError(e)&&e.silent||this.dispatch({type:"error",error:e}),!isCancelledError(e)){var t,n,i,s;null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(i=(s=this.cache.config).onSettled)||i.call(s,this.state.data,e,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=createRetryer({fn:l.fetchFn,abort:null==a?void 0:a.abort.bind(a),onSuccess:e=>{var t,n,i,s;if(void 0===e){onError(Error(this.queryHash+" data is undefined"));return}this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(i=(s=this.cache.config).onSettled)||i.call(s,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,i;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:canFetch(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(i=e.dataUpdatedAt)?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let s=e.error;if(isCancelledError(s)&&s.revert&&this.revertState)return{...this.revertState,fetchStatus:"idle"};return{...t,error:s,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),m.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate(e)}),this.cache.notify({query:this,type:"updated",action:e})})}};let QueryCache=class QueryCache extends Subscribable{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var i;let s=t.queryKey,o=null!=(i=t.queryHash)?i:hashQueryKeyByOptions(s,t),a=this.get(o);return a||(a=new Query({cache:this,logger:e.getLogger(),queryKey:s,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(s)}),this.add(a)),a}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){let t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter(t=>t!==e),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){m.batch(()=>{this.queries.forEach(e=>{this.remove(e)})})}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){let[n]=parseFilterArgs(e,t);return void 0===n.exact&&(n.exact=!0),this.queries.find(e=>matchQuery(n,e))}findAll(e,t){let[n]=parseFilterArgs(e,t);return Object.keys(n).length>0?this.queries.filter(e=>matchQuery(n,e)):this.queries}notify(e){m.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}onFocus(){m.batch(()=>{this.queries.forEach(e=>{e.onFocus()})})}onOnline(){m.batch(()=>{this.queries.forEach(e=>{e.onOnline()})})}};let MutationCache=class MutationCache extends Subscribable{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){let i=new Mutation({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(i),i}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter(t=>t!==e),this.notify({type:"removed",mutation:e})}clear(){m.batch(()=>{this.mutations.forEach(e=>{this.remove(e)})})}getAll(){return this.mutations}find(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find(t=>matchMutation(e,t))}findAll(e){return this.mutations.filter(t=>matchMutation(e,t))}notify(e){m.batch(()=>{this.listeners.forEach(({listener:t})=>{t(e)})})}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then(()=>{let e=this.mutations.filter(e=>e.state.isPaused);return m.batch(()=>e.reduce((e,t)=>e.then(()=>t.continue().catch(utils_noop)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}};let QueryClient=class QueryClient{constructor(e={}){this.queryCache=e.queryCache||new QueryCache,this.mutationCache=e.mutationCache||new MutationCache,this.logger=e.logger||S,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,1===this.mountCount&&(this.unsubscribeFocus=y.subscribe(()=>{y.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=g.subscribe(()=>{g.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var e,t;this.mountCount--,0===this.mountCount&&(null==(e=this.unsubscribeFocus)||e.call(this),this.unsubscribeFocus=void 0,null==(t=this.unsubscribeOnline)||t.call(this),this.unsubscribeOnline=void 0)}isFetching(e,t){let[n]=parseFilterArgs(e,t);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(e){return this.mutationCache.findAll({...e,fetching:!0}).length}getQueryData(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}ensureQueryData(e,t,n){let i=parseQueryArgs(e,t,n),s=this.getQueryData(i.queryKey);return s?Promise.resolve(s):this.fetchQuery(i)}getQueriesData(e){return this.getQueryCache().findAll(e).map(({queryKey:e,state:t})=>{let n=t.data;return[e,n]})}setQueryData(e,t,n){let i=this.queryCache.find(e),s=null==i?void 0:i.state.data,o="function"==typeof t?t(s):t;if(void 0===o)return;let a=parseQueryArgs(e),u=this.defaultQueryOptions(a);return this.queryCache.build(this,u).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return m.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}removeQueries(e,t){let[n]=parseFilterArgs(e,t),i=this.queryCache;m.batch(()=>{i.findAll(n).forEach(e=>{i.remove(e)})})}resetQueries(e,t,n){let[i,s]=parseFilterArgs(e,t,n),o=this.queryCache,a={type:"active",...i};return m.batch(()=>(o.findAll(i).forEach(e=>{e.reset()}),this.refetchQueries(a,s)))}cancelQueries(e,t,n){let[i,s={}]=parseFilterArgs(e,t,n);void 0===s.revert&&(s.revert=!0);let o=m.batch(()=>this.queryCache.findAll(i).map(e=>e.cancel(s)));return Promise.all(o).then(utils_noop).catch(utils_noop)}invalidateQueries(e,t,n){let[i,s]=parseFilterArgs(e,t,n);return m.batch(()=>{var e,t;if(this.queryCache.findAll(i).forEach(e=>{e.invalidate()}),"none"===i.refetchType)return Promise.resolve();let n={...i,type:null!=(e=null!=(t=i.refetchType)?t:i.type)?e:"active"};return this.refetchQueries(n,s)})}refetchQueries(e,t,n){let[i,s]=parseFilterArgs(e,t,n),o=m.batch(()=>this.queryCache.findAll(i).filter(e=>!e.isDisabled()).map(e=>{var t;return e.fetch(void 0,{...s,cancelRefetch:null==(t=null==s?void 0:s.cancelRefetch)||t,meta:{refetchPage:i.refetchPage}})})),a=Promise.all(o).then(utils_noop);return null!=s&&s.throwOnError||(a=a.catch(utils_noop)),a}fetchQuery(e,t,n){let i=parseQueryArgs(e,t,n),s=this.defaultQueryOptions(i);void 0===s.retry&&(s.retry=!1);let o=this.queryCache.build(this,s);return o.isStaleByTime(s.staleTime)?o.fetch(s):Promise.resolve(o.state.data)}prefetchQuery(e,t,n){return this.fetchQuery(e,t,n).then(utils_noop).catch(utils_noop)}fetchInfiniteQuery(e,t,n){let i=parseQueryArgs(e,t,n);return i.behavior=infiniteQueryBehavior(),this.fetchQuery(i)}prefetchInfiniteQuery(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(utils_noop).catch(utils_noop)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(e){this.defaultOptions=e}setQueryDefaults(e,t){let n=this.queryDefaults.find(t=>hashQueryKey(e)===hashQueryKey(t.queryKey));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}getQueryDefaults(e){if(!e)return;let t=this.queryDefaults.find(t=>partialDeepEqual(e,t.queryKey));return null==t?void 0:t.defaultOptions}setMutationDefaults(e,t){let n=this.mutationDefaults.find(t=>hashQueryKey(e)===hashQueryKey(t.mutationKey));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}getMutationDefaults(e){if(!e)return;let t=this.mutationDefaults.find(t=>partialDeepEqual(e,t.mutationKey));return null==t?void 0:t.defaultOptions}defaultQueryOptions(e){if(null!=e&&e._defaulted)return e;let t={...this.defaultOptions.queries,...this.getQueryDefaults(null==e?void 0:e.queryKey),...e,_defaulted:!0};return!t.queryHash&&t.queryKey&&(t.queryHash=hashQueryKeyByOptions(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}defaultMutationOptions(e){return null!=e&&e._defaulted?e:{...this.defaultOptions.mutations,...this.getMutationDefaults(null==e?void 0:e.mutationKey),...e,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}};let getQueryClient=e=>e.queryClient??new QueryClient(e.queryClientConfig);function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t0){for(var n=_extends({},e.state),i=0,s=t.length;i0;){var l=e[e.length-1].shift();if(void 0!==l){var c=visitElement(l,s,o);e.push(c),t.push(flushPrevContextMap()),n.push(flushPrevContextStore()),i.push(getCurrentErrorFrame())}else e.pop(),restoreContextMap(t.pop()),restoreContextStore(n.pop()),setCurrentErrorFrame(i.pop());if(ep&&Date.now()-u>5)return!0}return!1}catch(e){var d=getCurrentErrorFrame();if(!d)throw e;return d.error=e,s.unshift(d),!1}finally{ef.current=a}},makeYieldFrame=function(e,t,n,i){return{contextMap:getCurrentContextMap(),contextStore:getCurrentContextStore(),errorFrame:getCurrentErrorFrame(),thenable:null,kind:"frame.yield",traversalChildren:e,traversalMap:t,traversalStore:n,traversalErrorFrame:i}},visit=function(e,t,n){var i=[e],s=[flushPrevContextMap()],o=[flushPrevContextStore()],a=[getCurrentErrorFrame()];visitLoop(i,s,o,a,t,n)&&t.unshift(makeYieldFrame(i,s,o,a))},update=function(e,t,n){if("frame.yield"===e.kind)setCurrentIdentity(null),setCurrentContextMap(e.contextMap),setCurrentContextStore(e.contextStore),setCurrentErrorFrame(e.errorFrame),visitLoop(e.traversalChildren,e.traversalMap,e.traversalStore,e.traversalErrorFrame,t,n)&&t.unshift(makeYieldFrame(e.traversalChildren,e.traversalMap,e.traversalStore,e.traversalErrorFrame));else{var i=ef.current,s=null;ef.current=eh;try{"frame.class"===e.kind?s=function(e,t){if(setCurrentIdentity(null),setCurrentContextMap(t.contextMap),setCurrentContextStore(t.contextStore),setCurrentErrorFrame(t.errorFrame),t.error){if(++t.instance.updater._thrown>=25)return null;t.instance._isMounted=!0,"function"==typeof t.instance.componentDidCatch&&t.instance.componentDidCatch(t.error),"function"==typeof t.type.getDerivedStateFromError&&t.instance.updater.enqueueSetState(t.instance,t.type.getDerivedStateFromError(t.error))}return render$1(t.type,t.instance,e)}(t,e):"frame.hooks"===e.kind?(setFirstHook(e.hook),setCurrentIdentity(e.id),setCurrentContextMap(e.contextMap),setCurrentContextStore(e.contextStore),setCurrentErrorFrame(e.errorFrame),s=render$2(e.type,e.props,t)):"frame.lazy"===e.kind&&(setCurrentIdentity(null),setCurrentContextMap(e.contextMap),setCurrentContextStore(e.contextStore),setCurrentErrorFrame(e.errorFrame),s=render$3(e.type,e.props))}catch(e){var o=getCurrentErrorFrame();if(!o)throw e;o.error=e,t.unshift(o),s=null}finally{ef.current=i}visit(getChildrenArray(s),t,n)}};function _ref(e,t){setImmediate(e)}var flushFrames=function(e,t,n){var i=e.shift();return i?(ep&&"frame.yield"===i.kind&&(i.thenable=new Promise(_ref)),Promise.resolve(i.thenable).then(function(){return ei.current=n,update(i,e,t),flushFrames(e,t,n)},function(n){if(!i.errorFrame)throw n;i.errorFrame.error=n,update(i.errorFrame,e,t)})):Promise.resolve()},defaultVisitor=function(){},renderPrepass=function(e,t){t||(t=defaultVisitor);var n=[],i=ei.current={uniqueID:0};setCurrentContextMap({}),setCurrentContextStore(new Map),setCurrentErrorFrame(null);try{visit(getChildrenArray(e),n,t)}catch(e){return Promise.reject(e)}return flushFrames(n,t,i)};function transformQueryOrMutationCacheErrors(e){let t=e.state.error;if(t instanceof Error&&"TRPCClientError"===t.name){let n={message:t.message,data:t.data,shape:t.shape};return{...e,state:{...e.state,error:n}}}return e}var em=function(){function DoubleIndexedKV(){this.keyToValue=new Map,this.valueToKey=new Map}return DoubleIndexedKV.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},DoubleIndexedKV.prototype.getByKey=function(e){return this.keyToValue.get(e)},DoubleIndexedKV.prototype.getByValue=function(e){return this.valueToKey.get(e)},DoubleIndexedKV.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},DoubleIndexedKV}(),ey=function(){function Registry(e){this.generateIdentifier=e,this.kv=new em}return Registry.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},Registry.prototype.clear=function(){this.kv.clear()},Registry.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},Registry.prototype.getValue=function(e){return this.kv.getByKey(e)},Registry}(),ev=(c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),eg=function(e){function ClassRegistry(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return ev(ClassRegistry,e),ClassRegistry.prototype.register=function(t,n){"object"==typeof n?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),e.prototype.register.call(this,t,n.identifier)):e.prototype.register.call(this,t,n)},ClassRegistry.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},ClassRegistry}(ey),__read=function(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,s,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){s={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(s)throw s.error}}return a};function forEach(e,t){Object.entries(e).forEach(function(e){var n=__read(e,2),i=n[0];return t(n[1],i)})}function includes(e,t){return -1!==e.indexOf(t)}function findArr(e,t){for(var n=0;n0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){s={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(s)throw s.error}}return a},__spreadArray=function(e,t){for(var n=0,i=t.length,s=e.length;n0?"Infinity":"-Infinity"},Number),simpleTransformation(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),simpleTransformation(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function compositeTransformation(e,t,n,i){return{isApplicable:e,annotation:t,transform:n,untransform:i}}var e$=compositeTransformation(function(e,t){return!!isSymbol(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,n){var i=n.symbolRegistry.getValue(t[1]);if(!i)throw Error("Trying to deserialize unknown symbol");return i}),eE=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),eS=compositeTransformation(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return __spreadArray([],transformer_read(e))},function(e,t){var n=eE[t[1]];if(!n)throw Error("Trying to deserialize unknown typed array");return new n(e)});function isInstanceOfRegisteredClass(e,t){return null!=e&&!!e.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}var eT=compositeTransformation(isInstanceOfRegisteredClass,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return __assign({},e);var i={};return n.forEach(function(t){i[t]=e[t]}),i},function(e,t,n){var i=n.classRegistry.getValue(t[1]);if(!i)throw Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(i.prototype),e)}),eP=compositeTransformation(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,n){var i=n.customTransformerRegistry.findByName(t[1]);if(!i)throw Error("Trying to deserialize unknown custom value");return i.deserialize(e)}),eC=[eT,e$,eP,eS],transformValue=function(e,t){var n=findArr(eC,function(n){return n.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};var i=findArr(ex,function(n){return n.isApplicable(e,t)});if(i)return{value:i.transform(e,t),type:i.annotation}},ew={};ex.forEach(function(e){ew[e.annotation]=e});var untransformValue=function(e,t,n){if(isArray(t))switch(t[0]){case"symbol":return e$.untransform(e,t,n);case"class":return eT.untransform(e,t,n);case"custom":return eP.untransform(e,t,n);case"typed-array":return eS.untransform(e,t,n);default:throw Error("Unknown transformation: "+t)}else{var i=ew[t];if(!i)throw Error("Unknown transformation: "+t);return i.untransform(e,n)}},getNthKey=function(e,t){for(var n=e.keys();t>0;)n.next(),t--;return n.next().value};function validatePath(e){if(includes(e,"__proto__"))throw Error("__proto__ is not allowed as a property");if(includes(e,"prototype"))throw Error("prototype is not allowed as a property");if(includes(e,"constructor"))throw Error("constructor is not allowed as a property")}var getDeep=function(e,t){validatePath(t);for(var n=0;n0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){s={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(s)throw s.error}}return a},plainer_spreadArray=function(e,t){for(var n=0,i=t.length,s=e.length;n0)&&!(i=o.next()).done;)a.push(i.value)}catch(e){s={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(s)throw s.error}}return a},esm_spreadArray=function(e,t){for(var n=0,i=t.length,s=e.length;ncopy(e,t));if(!function(e){if("Object"!==dist_getType(e))return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(e))return e;let n=Object.getOwnPropertyNames(e),i=Object.getOwnPropertySymbols(e);return[...n,...i].reduce((n,i)=>{if(dist_isArray(t.props)&&!t.props.includes(i))return n;let s=e[i],o=copy(s,t);return function(e,t,n,i,s){let o=({}).propertyIsEnumerable.call(i,t)?"enumerable":"nonenumerable";"enumerable"===o&&(e[t]=n),s&&"nonenumerable"===o&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}(n,i,o,e,t.nonenumerable),n},{})}(s);return(null==o?void 0:o.values)&&(t=a,n=o.values,i=this,function traverse(e,t,n){if(void 0===n&&(n=[]),e){if(!isArray(e)){forEach(e,function(e,i){return traverse(e,t,plainer_spreadArray(plainer_spreadArray([],plainer_read(n)),plainer_read(parsePath(i))))});return}var i=plainer_read(e,2),s=i[0],o=i[1];o&&forEach(o,function(e,i){traverse(e,t,plainer_spreadArray(plainer_spreadArray([],plainer_read(n)),plainer_read(parsePath(i))))}),t(s,n)}}(n,function(e,n){t=setDeep(t,n,function(t){return untransformValue(t,e,i)})}),a=t),(null==o?void 0:o.referentialEqualities)&&(a=function(e,t){function apply(t,n){var i=getDeep(e,parsePath(n));t.map(parsePath).forEach(function(t){e=setDeep(e,t,function(){return i})})}if(isArray(t)){var n=plainer_read(t,2),i=n[0],s=n[1];i.forEach(function(t){e=setDeep(e,parsePath(t),function(){return e})}),s&&forEach(s,apply)}else forEach(t,apply);return e}(a,o.referentialEqualities)),a},SuperJSON.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},SuperJSON.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},SuperJSON.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},SuperJSON.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},SuperJSON.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(esm_assign({name:t},e))},SuperJSON.prototype.allowErrorProps=function(){for(var e,t=[],n=0;n"",eR=/* istanbul ignore file -- @preserve */function(e){let t=createHooksInternal_bdff7171_createHooksInternal(e),n=function(e){let{config:t}=e;return n=>{let i=function(e){let t=createHooksInternal_bdff7171_createHooksInternal(e),n=createFlatProxy(e=>"useContext"===e||"useUtils"===e?()=>{let e=t.useUtils();return(0,d.useMemo)(()=>createReactQueryUtilsProxy(e),[e])}:t.hasOwnProperty(e)?t[e]:createReactProxyDecoration(e,t));return{...t,proxy:n}}(e),WithTRPC=s=>{let[o]=(0,d.useState)(()=>{if(s.trpc)return s.trpc;let n=t({}),o=getQueryClient(n),a=i.createClient(n);return{abortOnUnmount:n.abortOnUnmount,queryClient:o,trpcClient:a,ssrState:!!e.ssr&&"mounting",ssrContext:null}}),{queryClient:a,trpcClient:u,ssrState:l,ssrContext:c}=o,h=i.useDehydratedState(u,s.pageProps?.trpcState);return d.createElement(i.Provider,{abortOnUnmount:o.abortOnUnmount??!1,client:u,queryClient:a,ssrState:l,ssrContext:c},d.createElement(QueryClientProvider,{client:a},d.createElement(Hydrate,{state:h},d.createElement(n,Object.assign({},s)))))};(n.getInitialProps??e.ssr)&&(WithTRPC.getInitialProps=async i=>{let shouldSsr=async()=>{if("function"==typeof e.ssr){if("undefined"!=typeof window)return!1;try{return await e.ssr({ctx:i.ctx})}catch(e){return!1}}return e.ssr},s=await shouldSsr(),o=i.AppTree,a=!!i.Component,u=a?i.ctx:i,l={};if(n.getInitialProps){let e=await n.getInitialProps(i),t=a?e.pageProps??{}:e;l={...t,...l}}let getAppTreeProps=e=>a?{pageProps:e}:e;if("undefined"!=typeof window||!s)return getAppTreeProps(l);let c=t({ctx:u}),h=createTRPCClient(c),f=getQueryClient(c),p={pageProps:l,trpc:{config:c,trpcClient:h,queryClient:f,ssrState:"prepass",ssrContext:u}};for(;await renderPrepass((0,d.createElement)(o,p)),f.isFetching();)await new Promise(e=>{let t=f.getQueryCache().subscribe(n=>{n?.query.getObserversCount()===0&&(e(),t())})});let m=function(e,t={}){let n=[],i=[];if(!1!==t.dehydrateMutations){let i=t.shouldDehydrateMutation||defaultShouldDehydrateMutation;e.getMutationCache().getAll().forEach(e=>{i(e)&&n.push({mutationKey:e.options.mutationKey,state:e.state})})}if(!1!==t.dehydrateQueries){let n=t.shouldDehydrateQuery||defaultShouldDehydrateQuery;e.getQueryCache().getAll().forEach(e=>{n(e)&&i.push({state:e.state,queryKey:e.queryKey,queryHash:e.queryHash})})}return{mutations:n,queries:i}}(f,{shouldDehydrateQuery:()=>!0}),y={...m,queries:m.queries.map(transformQueryOrMutationCacheErrors),mutations:m.mutations.map(transformQueryOrMutationCacheErrors)};l.trpcState=h.runtime.combinedTransformer.output.serialize(y);let v=getAppTreeProps(l);if("responseMeta"in e){let t=e.responseMeta?.({ctx:u,clientErrors:[...m.queries,...m.mutations].map(e=>e.state.error).flatMap(e=>e instanceof Error&&"TRPCClientError"===e.name?[e]:[])})??{};for(let[e,n]of Object.entries(t.headers??{}))"string"==typeof n&&u.res?.setHeader(e,n);t.status&&u.res&&(u.res.statusCode=t.status)}return v});let s=n.displayName??n.name??"Component";return WithTRPC.displayName=`withTRPC(${s})`,WithTRPC}}(e);return createFlatProxy(e=>"useContext"===e||"useUtils"===e?()=>{let e=t.useUtils();return(0,d.useMemo)(()=>createReactQueryUtilsProxy(e),[e])}:"useQueries"===e?t.useQueries:"withTRPC"===e?n:createReactProxyDecoration(e,t))}({config:()=>({transformer:eA,links:[function(e={}){let{enabled:t=()=>!0}=e,n=e.colorMode??("undefined"==typeof window?"ansi":"css"),{logger:i=defaultLogger({c:e.console,colorMode:n})}=e;return()=>({op:e,next:n})=>observable_ade1bad8_observable(s=>{var o;t({...e,direction:"up"})&&i({...e,direction:"up"});let a=Date.now();function logResult(n){let s=Date.now()-a;t({...e,direction:"down",result:n})&&i({...e,direction:"down",elapsedMs:s,result:n})}return n(e).pipe((o={next(e){logResult(e)},error(e){logResult(e)}},e=>({subscribe:t=>e.subscribe({next(e){o.next?.(e),t.next?.(e)},error(e){o.error?.(e),t.error?.(e)},complete(){o.complete?.(),t.complete?.()}})}))).subscribe(s)})}({enabled:e=>"down"===e.direction&&e.result instanceof Error}),a({url:"".concat(getBaseUrl(),"/api/trpc")})]}),ssr:!1})},1479:function(){},2352:function(){},2491:function(e){e.exports={toast:"Toast_toast__g33Rb",default:"Toast_default__ltbVS",success:"Toast_success__itWr_",error:"Toast_error__h8fcv",info:"Toast_info__sRAsv",warning:"Toast_warning__g4owQ",content:"Toast_content__QK8xe",close:"Toast_close__BexyN",icon:"Toast_icon__7b3Ow"}},7663:function(e){!function(){var t={229:function(e){var t,n,i,s=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{n="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){n=defaultClearTimeout}}();var o=[],a=!1,u=-1;function cleanUpNextTick(){a&&i&&(a=!1,i.length?o=i.concat(o):u=-1,o.length&&drainQueue())}function drainQueue(){if(!a){var e=runTimeout(cleanUpNextTick);a=!0;for(var t=o.length;t;){for(i=o,o=[];++u1)for(var n=1;n{document.activeElement===t&&document.contains(e)&&(0,s.Ao)(e)})}else(0,s.Ao)(e)}let a=i.createContext(null),u=null;function $9bf71ea28793e738$export$20e40289641fbbb6(e){let t,n,{children:o,contain:l,restoreFocus:c,autoFocus:d}=e,f=(0,i.useRef)(null),p=(0,i.useRef)(null),m=(0,i.useRef)([]),{parentNode:y}=(0,i.useContext)(a)||{},v=(0,i.useMemo)(()=>new $9bf71ea28793e738$var$TreeNode({scopeRef:m}),[m]);(0,s.bt)(()=>{let e=y||h.root;if(h.getTreeNode(e.scopeRef)&&u&&!$9bf71ea28793e738$var$isAncestorScope(u,e.scopeRef)){let t=h.getTreeNode(u);t&&(e=t)}e.addChild(v),h.addNode(v)},[v,y]),(0,s.bt)(()=>{let e=h.getTreeNode(m);e&&(e.contain=!!l)},[l]),(0,s.bt)(()=>{var e;let t=null===(e=f.current)||void 0===e?void 0:e.nextSibling,n=[];for(;t&&t!==p.current;)n.push(t),t=t.nextSibling;m.current=n},[o]),(0,s.bt)(()=>{if(c||l)return;let e=m.current,onFocus=e=>{let t=e.target;$9bf71ea28793e738$var$isElementInScope(t,m.current)?u=m:$9bf71ea28793e738$var$isElementInChildScope(t)||(u=null)};return document.addEventListener("focusin",onFocus,!1),null==e||e.forEach(e=>e.addEventListener("focusin",onFocus,!1)),()=>{document.removeEventListener("focusin",onFocus,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",onFocus,!1))}},[m,c,l]),t=(0,i.useRef)(),n=(0,i.useRef)(),(0,s.bt)(()=>{let e=m.current;if(!l){n.current&&(cancelAnimationFrame(n.current),n.current=void 0);return}let onKeyDown=e=>{if("Tab"!==e.key||e.altKey||e.ctrlKey||e.metaKey||!$9bf71ea28793e738$var$shouldContainFocus(m))return;let t=document.activeElement,n=m.current;if(!n||!$9bf71ea28793e738$var$isElementInScope(t,n))return;let i=$9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(n),{tabbable:!0},n);if(!t)return;i.currentNode=t;let s=e.shiftKey?i.previousNode():i.nextNode();s||(i.currentNode=e.shiftKey?n[n.length-1].nextElementSibling:n[0].previousElementSibling,s=e.shiftKey?i.previousNode():i.nextNode()),e.preventDefault(),s&&$9bf71ea28793e738$var$focusElement(s,!0)},onFocus=e=>{(!u||$9bf71ea28793e738$var$isAncestorScope(u,m))&&$9bf71ea28793e738$var$isElementInScope(e.target,m.current)?(u=m,t.current=e.target):$9bf71ea28793e738$var$shouldContainFocus(m)&&!$9bf71ea28793e738$var$isElementInChildScope(e.target,m)?t.current?t.current.focus():u&&u.current&&$9bf71ea28793e738$var$focusFirstInScope(u.current):$9bf71ea28793e738$var$shouldContainFocus(m)&&(t.current=e.target)},onBlur=e=>{n.current&&cancelAnimationFrame(n.current),n.current=requestAnimationFrame(()=>{if(document.activeElement&&$9bf71ea28793e738$var$shouldContainFocus(m)&&!$9bf71ea28793e738$var$isElementInChildScope(document.activeElement,m)){if(u=m,document.body.contains(e.target)){var n;t.current=e.target,null===(n=t.current)||void 0===n||n.focus()}else u.current&&$9bf71ea28793e738$var$focusFirstInScope(u.current)}})};return document.addEventListener("keydown",onKeyDown,!1),document.addEventListener("focusin",onFocus,!1),null==e||e.forEach(e=>e.addEventListener("focusin",onFocus,!1)),null==e||e.forEach(e=>e.addEventListener("focusout",onBlur,!1)),()=>{document.removeEventListener("keydown",onKeyDown,!1),document.removeEventListener("focusin",onFocus,!1),null==e||e.forEach(e=>e.removeEventListener("focusin",onFocus,!1)),null==e||e.forEach(e=>e.removeEventListener("focusout",onBlur,!1))}},[m,l]),(0,s.bt)(()=>()=>{n.current&&cancelAnimationFrame(n.current)},[n]),function(e,t,n){let o=(0,i.useRef)("undefined"!=typeof document?document.activeElement:null);(0,s.bt)(()=>{let i=e.current;if(!t||n)return;let onFocus=()=>{(!u||$9bf71ea28793e738$var$isAncestorScope(u,e))&&$9bf71ea28793e738$var$isElementInScope(document.activeElement,e.current)&&(u=e)};return document.addEventListener("focusin",onFocus,!1),null==i||i.forEach(e=>e.addEventListener("focusin",onFocus,!1)),()=>{document.removeEventListener("focusin",onFocus,!1),null==i||i.forEach(e=>e.removeEventListener("focusin",onFocus,!1))}},[e,n]),(0,s.bt)(()=>{if(!t)return;let onKeyDown=t=>{if("Tab"!==t.key||t.altKey||t.ctrlKey||t.metaKey||!$9bf71ea28793e738$var$shouldContainFocus(e))return;let n=document.activeElement;if(!$9bf71ea28793e738$var$isElementInScope(n,e.current))return;let i=h.getTreeNode(e);if(!i)return;let s=i.nodeToRestore,o=$9bf71ea28793e738$export$2d6ec8fc375ceafa(document.body,{tabbable:!0});o.currentNode=n;let a=t.shiftKey?o.previousNode():o.nextNode();if(s&&document.body.contains(s)&&s!==document.body||(s=void 0,i.nodeToRestore=void 0),(!a||!$9bf71ea28793e738$var$isElementInScope(a,e.current))&&s){o.currentNode=s;do a=t.shiftKey?o.previousNode():o.nextNode();while($9bf71ea28793e738$var$isElementInScope(a,e.current));(t.preventDefault(),t.stopPropagation(),a)?$9bf71ea28793e738$var$focusElement(a,!0):$9bf71ea28793e738$var$isElementInChildScope(s)?$9bf71ea28793e738$var$focusElement(s,!0):n.blur()}};return n||document.addEventListener("keydown",onKeyDown,!0),()=>{n||document.removeEventListener("keydown",onKeyDown,!0)}},[e,t,n]),(0,s.bt)(()=>{var n;if(!t)return;let i=h.getTreeNode(e);if(i)return i.nodeToRestore=null!==(n=o.current)&&void 0!==n?n:void 0,()=>{let n=h.getTreeNode(e);if(!n)return;let i=n.nodeToRestore;if(t&&i&&($9bf71ea28793e738$var$isElementInScope(document.activeElement,e.current)||document.activeElement===document.body&&function(e){let t=h.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.nodeToRestore)return!1;t=t.parent}return(null==t?void 0:t.scopeRef)===e}(e))){let t=h.clone();requestAnimationFrame(()=>{if(document.activeElement===document.body){let n=t.getTreeNode(e);for(;n;){if(n.nodeToRestore&&document.body.contains(n.nodeToRestore)){$9bf71ea28793e738$var$focusElement(n.nodeToRestore);return}n=n.parent}for(n=t.getTreeNode(e);n;){if(n.scopeRef&&n.scopeRef.current&&h.getTreeNode(n.scopeRef)){$9bf71ea28793e738$var$focusFirstInScope(n.scopeRef.current,!0);return}n=n.parent}}})}}},[e,t])}(m,c,l),function(e,t){let n=i.useRef(t);(0,i.useEffect)(()=>{n.current&&(u=e,!$9bf71ea28793e738$var$isElementInScope(document.activeElement,u.current)&&e.current&&$9bf71ea28793e738$var$focusFirstInScope(e.current)),n.current=!1},[e])}(m,d),(0,i.useEffect)(()=>{let e=document.activeElement,t=null;if($9bf71ea28793e738$var$isElementInScope(e,m.current)){for(let n of h.traverse())n.scopeRef&&$9bf71ea28793e738$var$isElementInScope(e,n.scopeRef.current)&&(t=n);t===h.getTreeNode(m)&&(u=t.scopeRef)}},[m]),(0,s.bt)(()=>()=>{var e,t,n;let i=null!==(n=null===(t=h.getTreeNode(m))||void 0===t?void 0:null===(e=t.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==n?n:null;(m===u||$9bf71ea28793e738$var$isAncestorScope(m,u))&&(!i||h.getTreeNode(i))&&(u=i),h.removeTreeNode(m)},[m]);let g=(0,i.useMemo)(()=>({focusNext(e={}){let t=m.current,{from:n,tabbable:i,wrap:s,accept:o}=e,a=n||document.activeElement,u=t[0].previousElementSibling,l=$9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(t),{tabbable:i,accept:o},t);l.currentNode=$9bf71ea28793e738$var$isElementInScope(a,t)?a:u;let c=l.nextNode();return!c&&s&&(l.currentNode=u,c=l.nextNode()),c&&$9bf71ea28793e738$var$focusElement(c,!0),c},focusPrevious(e={}){let t=m.current,{from:n,tabbable:i,wrap:s,accept:o}=e,a=n||document.activeElement,u=t[t.length-1].nextElementSibling,l=$9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(t),{tabbable:i,accept:o},t);l.currentNode=$9bf71ea28793e738$var$isElementInScope(a,t)?a:u;let c=l.previousNode();return!c&&s&&(l.currentNode=u,c=l.previousNode()),c&&$9bf71ea28793e738$var$focusElement(c,!0),c},focusFirst(e={}){let t=m.current,{tabbable:n,accept:i}=e,s=$9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(t),{tabbable:n,accept:i},t);s.currentNode=t[0].previousElementSibling;let o=s.nextNode();return o&&$9bf71ea28793e738$var$focusElement(o,!0),o},focusLast(e={}){let t=m.current,{tabbable:n,accept:i}=e,s=$9bf71ea28793e738$export$2d6ec8fc375ceafa($9bf71ea28793e738$var$getScopeRoot(t),{tabbable:n,accept:i},t);s.currentNode=t[t.length-1].nextElementSibling;let o=s.previousNode();return o&&$9bf71ea28793e738$var$focusElement(o,!0),o}}),[]),b=(0,i.useMemo)(()=>({focusManager:g,parentNode:v}),[v,g]);return i.createElement(a.Provider,{value:b},i.createElement("span",{"data-focus-scope-start":!0,hidden:!0,ref:f}),o,i.createElement("span",{"data-focus-scope-end":!0,hidden:!0,ref:p}))}let l=["input:not([disabled]):not([type=hidden])","select:not([disabled])","textarea:not([disabled])","button:not([disabled])","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[contenteditable]"],c=l.join(":not([hidden]),")+",[tabindex]:not([disabled]):not([hidden])";l.push('[tabindex]:not([tabindex="-1"]):not([disabled])');let d=l.join(':not([hidden]):not([tabindex="-1"]),');function $9bf71ea28793e738$var$getScopeRoot(e){return e[0].parentElement}function $9bf71ea28793e738$var$shouldContainFocus(e){let t=h.getTreeNode(u);for(;t&&t.scopeRef!==e;){if(t.contain)return!1;t=t.parent}return!0}function $9bf71ea28793e738$var$isElementInScope(e,t){return!!e&&!!t&&t.some(t=>t.contains(e))}function $9bf71ea28793e738$var$isElementInChildScope(e,t=null){if(e instanceof Element&&e.closest("[data-react-aria-top-layer]"))return!0;for(let{scopeRef:n}of h.traverse(h.getTreeNode(t)))if(n&&$9bf71ea28793e738$var$isElementInScope(e,n.current))return!0;return!1}function $9bf71ea28793e738$export$1258395f99bf9cbf(e){return $9bf71ea28793e738$var$isElementInChildScope(e,u)}function $9bf71ea28793e738$var$isAncestorScope(e,t){var n;let i=null===(n=h.getTreeNode(t))||void 0===n?void 0:n.parent;for(;i;){if(i.scopeRef===e)return!0;i=i.parent}return!1}function $9bf71ea28793e738$var$focusElement(e,t=!1){if(null==e||t){if(null!=e)try{e.focus()}catch(e){}}else try{$6a99195332edec8b$export$80f3e147d781571c(e)}catch(e){}}function $9bf71ea28793e738$var$focusFirstInScope(e,t=!0){let n=e[0].previousElementSibling,i=$9bf71ea28793e738$var$getScopeRoot(e),s=$9bf71ea28793e738$export$2d6ec8fc375ceafa(i,{tabbable:t},e);s.currentNode=n;let o=s.nextNode();t&&!o&&((s=$9bf71ea28793e738$export$2d6ec8fc375ceafa(i=$9bf71ea28793e738$var$getScopeRoot(e),{tabbable:!1},e)).currentNode=n,o=s.nextNode()),$9bf71ea28793e738$var$focusElement(o)}function $9bf71ea28793e738$export$2d6ec8fc375ceafa(e,t,n){let i=(null==t?void 0:t.tabbable)?d:c,s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode(e){var s;return(null==t?void 0:null===(s=t.from)||void 0===s?void 0:s.contains(e))?NodeFilter.FILTER_REJECT:e.matches(i)&&function $645f2e67b85a24c9$export$e989c0fffaa6b27a(e,t){return"#comment"!==e.nodeName&&function(e){if(!(e instanceof HTMLElement)&&!(e instanceof SVGElement))return!1;let{display:t,visibility:n}=e.style,i="none"!==t&&"hidden"!==n&&"collapse"!==n;if(i){let{getComputedStyle:t}=e.ownerDocument.defaultView,{display:n,visibility:s}=t(e);i="none"!==n&&"hidden"!==s&&"collapse"!==s}return i}(e)&&!e.hasAttribute("hidden")&&("DETAILS"!==e.nodeName||!t||"SUMMARY"===t.nodeName||e.hasAttribute("open"))&&(!e.parentElement||$645f2e67b85a24c9$export$e989c0fffaa6b27a(e.parentElement,e))}(e)&&(!n||$9bf71ea28793e738$var$isElementInScope(e,n))&&(!(null==t?void 0:t.accept)||t.accept(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});return(null==t?void 0:t.from)&&(s.currentNode=t.from),s}let $9bf71ea28793e738$var$Tree=class $9bf71ea28793e738$var$Tree{get size(){return this.fastMap.size}getTreeNode(e){return this.fastMap.get(e)}addTreeNode(e,t,n){let i=this.fastMap.get(null!=t?t:null);if(!i)return;let s=new $9bf71ea28793e738$var$TreeNode({scopeRef:e});i.addChild(s),s.parent=i,this.fastMap.set(e,s),n&&(s.nodeToRestore=n)}addNode(e){this.fastMap.set(e.scopeRef,e)}removeTreeNode(e){if(null===e)return;let t=this.fastMap.get(e);if(!t)return;let n=t.parent;for(let e of this.traverse())e!==t&&t.nodeToRestore&&e.nodeToRestore&&t.scopeRef&&t.scopeRef.current&&$9bf71ea28793e738$var$isElementInScope(e.nodeToRestore,t.scopeRef.current)&&(e.nodeToRestore=t.nodeToRestore);let i=t.children;n&&(n.removeChild(t),i.size>0&&i.forEach(e=>n&&n.addChild(e))),this.fastMap.delete(t.scopeRef)}*traverse(e=this.root){if(null!=e.scopeRef&&(yield e),e.children.size>0)for(let t of e.children)yield*this.traverse(t)}clone(){var e,t;let n=new $9bf71ea28793e738$var$Tree;for(let i of this.traverse())n.addTreeNode(i.scopeRef,null!==(t=null===(e=i.parent)||void 0===e?void 0:e.scopeRef)&&void 0!==t?t:null,i.nodeToRestore);return n}constructor(){this.fastMap=new Map,this.root=new $9bf71ea28793e738$var$TreeNode({scopeRef:null}),this.fastMap.set(null,this.root)}};let $9bf71ea28793e738$var$TreeNode=class $9bf71ea28793e738$var$TreeNode{addChild(e){this.children.add(e),e.parent=this}removeChild(e){this.children.delete(e),e.parent=void 0}constructor(e){this.children=new Set,this.contain=!1,this.scopeRef=e.scopeRef}};let h=new $9bf71ea28793e738$var$Tree;function $f7dceffc5ad7768b$export$4e328f61c538687f(e={}){let{autoFocus:t=!1,isTextInput:n,within:s}=e,a=(0,i.useRef)({isFocused:!1,isFocusVisible:t||(0,o.E)()}),[u,l]=(0,i.useState)(!1),[c,d]=(0,i.useState)(()=>a.current.isFocused&&a.current.isFocusVisible),h=(0,i.useCallback)(()=>d(a.current.isFocused&&a.current.isFocusVisible),[]),f=(0,i.useCallback)(e=>{a.current.isFocused=e,l(e),h()},[h]);(0,o.mG)(e=>{a.current.isFocusVisible=e,h()},[],{isTextInput:n});let{focusProps:p}=(0,o.KK)({isDisabled:s,onFocusChange:f}),{focusWithinProps:m}=(0,o.L_)({isDisabled:!s,onFocusWithinChange:f});return{isFocused:u,isFocusVisible:c,focusProps:s?m:p}}let f=i.createContext(null);function $e6afbd83fe6ebbd2$export$4c014de7c8940b4c(e,t){let{focusProps:n}=(0,o.KK)(e),{keyboardProps:a}=(0,o.v5)(e),u=(0,s.dG)(n,a),l=function(e){let t=(0,i.useContext)(f)||{};(0,s.lE)(t,e);let{ref:n,...o}=t;return o}(t),c=e.isDisabled?{}:l,d=(0,i.useRef)(e.autoFocus);return(0,i.useEffect)(()=>{d.current&&t.current&&$6a99195332edec8b$export$80f3e147d781571c(t.current),d.current=!1},[t]),{focusableProps:(0,s.dG)({...u,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},c)}}},3175:function(e,t,n){"use strict";n.d(t,{bd:function(){return $18f2051aff69b9bf$export$a54013f0d02a8f82},qb:function(){return $fca6afa0e843324b$export$f12b703ca79dfbb1}});var i=n(7294),s=n(6769);let $5b160d28a433310d$export$c17fa47878dc55b6=class $5b160d28a433310d$export$c17fa47878dc55b6{getStringForLocale(e,t){let n=this.strings[t];n||(n=function(e,t,n="en-US"){if(t[e])return t[e];let i=Intl.Locale?new Intl.Locale(e).language:e.split("-")[0];if(t[i])return t[i];for(let e in t)if(e.startsWith(i+"-"))return t[e];return t[n]}(t,this.strings,this.defaultLocale),this.strings[t]=n);let i=n[e];if(!i)throw Error(`Could not find intl message ${e} in ${t} locale`);return i}constructor(e,t="en-US"){this.strings={...e},this.defaultLocale=t}};let o=new Map,a=new Map;let $6db58dc88e78b024$export$2f817fcdc4b89ae0=class $6db58dc88e78b024$export$2f817fcdc4b89ae0{format(e,t){let n=this.strings.getStringForLocale(e,this.locale);return"function"==typeof n?n(t,this):n}plural(e,t,n="cardinal"){let i=t["="+e];if(i)return"function"==typeof i?i():i;let s=this.locale+":"+n,a=o.get(s);return a||(a=new Intl.PluralRules(this.locale,{type:n}),o.set(s,a)),"function"==typeof(i=t[a.select(e)]||t.other)?i():i}number(e){let t=a.get(this.locale);return t||(t=new Intl.NumberFormat(this.locale),a.set(this.locale,t)),t.format(e)}select(e,t){let n=e[t]||e.other;return"function"==typeof n?n():n}constructor(e,t){this.locale=e,this.strings=t}};let u=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),l=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function $148a7a147e38ea7f$export$702d680b21cbd764(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize().script;return!!t&&u.has(t)}let t=e.split("-")[0];return l.has(t)}function $1e5a04cdaf7d1af8$export$f09106e7c6677ec5(){let e="undefined"!=typeof navigator&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch(t){e="en-US"}return{locale:e,direction:$148a7a147e38ea7f$export$702d680b21cbd764(e)?"rtl":"ltr"}}let c=$1e5a04cdaf7d1af8$export$f09106e7c6677ec5(),d=new Set;function $1e5a04cdaf7d1af8$var$updateLocale(){for(let e of(c=$1e5a04cdaf7d1af8$export$f09106e7c6677ec5(),d))e(c)}function $1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a(){let e=(0,s.Av)(),[t,n]=(0,i.useState)(c);return((0,i.useEffect)(()=>(0===d.size&&window.addEventListener("languagechange",$1e5a04cdaf7d1af8$var$updateLocale),d.add(n),()=>{d.delete(n),0===d.size&&window.removeEventListener("languagechange",$1e5a04cdaf7d1af8$var$updateLocale)}),[]),e)?{locale:"en-US",direction:"ltr"}:t}let h=i.createContext(null);function $18f2051aff69b9bf$export$a54013f0d02a8f82(e){let{locale:t,children:n}=e,s=$1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a(),o=t?{locale:t,direction:$148a7a147e38ea7f$export$702d680b21cbd764(t)?"rtl":"ltr"}:s;return i.createElement(h.Provider,{value:o},n)}let f=new WeakMap;function $fca6afa0e843324b$export$f12b703ca79dfbb1(e){let t;let{locale:n}=(t=$1e5a04cdaf7d1af8$export$188ec29ebc2bdc3a(),(0,i.useContext)(h)||t),s=(0,i.useMemo)(()=>{let t;return(t=f.get(e))||(t=new $5b160d28a433310d$export$c17fa47878dc55b6(e),f.set(e,t)),t},[e]);return(0,i.useMemo)(()=>new $6db58dc88e78b024$export$2f817fcdc4b89ae0(n,s),[n,s])}},2290:function(e,t,n){"use strict";n.d(t,{mk:function(){return $f1ab8c75478c6f73$export$cf75428e0b9ed1ea},Jz:function(){return $507fabe10e71c6fb$export$630ff653c5ada6a9},E:function(){return $507fabe10e71c6fb$export$b9b3dfddab17db27},_w:function(){return $507fabe10e71c6fb$export$8397ddfc504fdb9a},KK:function(){return $a1ea59d68270f0dd$export$f8168d8dd8fd66e6},mG:function(){return $507fabe10e71c6fb$export$ec71b4b83ac08ec3},L_:function(){return $9ab94262bd0047c7$export$420e68273165f4ec},XI:function(){return $6179b936705e76d3$export$ae780daf29e6d456},Fc:function(){return $e0b6e0b68ec7f50f$export$872b660ac5a1ff98},v5:function(){return $46d819fcbaf35654$export$8f71654801c2f7cd},r7:function(){return $f6c31cce2adf654f$export$45712eceda6fad21}});var i=n(5650),s=n(7294);function _class_extract_field_descriptor(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function _class_private_field_set(e,t,n){var i=_class_extract_field_descriptor(e,t,"set");return!function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=n}}(e,i,n),n}let o="default",a="",u=new WeakMap;function $14c0b72509d70225$export$16a4697467175487(e){if((0,i.gn)()){if("default"===o){let t=(0,i.r3)(e);a=t.documentElement.style.webkitUserSelect,t.documentElement.style.webkitUserSelect="none"}o="disabled"}else(e instanceof HTMLElement||e instanceof SVGElement)&&(u.set(e,e.style.userSelect),e.style.userSelect="none")}function $14c0b72509d70225$export$b0d6fa1ab32e3295(e){if((0,i.gn)())"disabled"===o&&(o="restoring",setTimeout(()=>{(0,i.QB)(()=>{if("restoring"===o){let t=(0,i.r3)(e);"none"===t.documentElement.style.webkitUserSelect&&(t.documentElement.style.webkitUserSelect=a||""),a="",o="default"}})},300));else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&u.has(e)){let t=u.get(e);"none"===e.style.userSelect&&t&&(e.style.userSelect=t),""===e.getAttribute("style")&&e.removeAttribute("style"),u.delete(e)}}let l=s.createContext({register:()=>{}});l.displayName="PressResponderContext";var c=new WeakMap;let $f6c31cce2adf654f$var$PressEvent=class $f6c31cce2adf654f$var$PressEvent{continuePropagation(){_class_private_field_set(this,c,!1)}get shouldStopPropagation(){var e;return(e=_class_extract_field_descriptor(this,c,"get")).get?e.get.call(this):e.value}constructor(e,t,n){!function(e,t){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object")}(this,c),c.set(this,{writable:!0,value:void 0}),_class_private_field_set(this,c,!0),this.type=e,this.pointerType=t,this.target=n.currentTarget,this.shiftKey=n.shiftKey,this.metaKey=n.metaKey,this.ctrlKey=n.ctrlKey,this.altKey=n.altKey}};let d=Symbol("linkClicked");function $f6c31cce2adf654f$export$45712eceda6fad21(e){let{onPress:t,onPressChange:n,onPressStart:o,onPressEnd:a,onPressUp:u,isDisabled:c,isPressed:h,preventFocusOnPress:f,shouldCancelOnPointerExit:p,allowTextSelectionOnPress:m,ref:y,...v}=function(e){let t=(0,s.useContext)(l);if(t){let{register:n,...s}=t;e=(0,i.dG)(s,e),n()}return(0,i.lE)(t,e.ref),e}(e),[g,b]=(0,s.useState)(!1),x=(0,s.useRef)({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,isTriggeringEvent:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:$,removeAllGlobalListeners:E}=(0,i.xi)(),S=(0,i.iW)((e,t)=>{let i=x.current;if(c||i.didFirePressStart)return!1;let s=!0;if(i.isTriggeringEvent=!0,o){let n=new $f6c31cce2adf654f$var$PressEvent("pressstart",t,e);o(n),s=n.shouldStopPropagation}return n&&n(!0),i.isTriggeringEvent=!1,i.didFirePressStart=!0,b(!0),s}),T=(0,i.iW)((e,i,s=!0)=>{let o=x.current;if(!o.didFirePressStart)return!1;o.ignoreClickAfterPress=!0,o.didFirePressStart=!1,o.isTriggeringEvent=!0;let u=!0;if(a){let t=new $f6c31cce2adf654f$var$PressEvent("pressend",i,e);a(t),u=t.shouldStopPropagation}if(n&&n(!1),b(!1),t&&s&&!c){let n=new $f6c31cce2adf654f$var$PressEvent("press",i,e);t(n),u&&(u=n.shouldStopPropagation)}return o.isTriggeringEvent=!1,u}),P=(0,i.iW)((e,t)=>{let n=x.current;if(c)return!1;if(u){n.isTriggeringEvent=!0;let i=new $f6c31cce2adf654f$var$PressEvent("pressup",t,e);return u(i),n.isTriggeringEvent=!1,i.shouldStopPropagation}return!0}),C=(0,i.iW)(e=>{let t=x.current;t.isPressed&&t.target&&(t.isOverTarget&&null!=t.pointerType&&T($f6c31cce2adf654f$var$createEvent(t.target,e),t.pointerType,!1),t.isPressed=!1,t.isOverTarget=!1,t.activePointerId=null,t.pointerType=null,E(),m||$14c0b72509d70225$export$b0d6fa1ab32e3295(t.target))}),w=(0,i.iW)(e=>{p&&C(e)}),A=(0,s.useMemo)(()=>{let e=x.current,t={onKeyDown(t){if($f6c31cce2adf654f$var$isValidKeyboardEvent(t.nativeEvent,t.currentTarget)&&t.currentTarget.contains(t.target)){var n;$f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(t.target,t.key)&&t.preventDefault();let s=!0;e.isPressed||t.repeat||(e.target=t.currentTarget,e.isPressed=!0,s=S(t,"keyboard"),$((0,i.r3)(t.currentTarget),"keyup",onKeyUp,!1)),s&&t.stopPropagation(),t.metaKey&&(0,i.V5)()&&(null===(n=e.metaKeyEvents)||void 0===n||n.set(t.key,t.nativeEvent))}else"Meta"===t.key&&(e.metaKeyEvents=new Map)},onKeyUp(t){$f6c31cce2adf654f$var$isValidKeyboardEvent(t.nativeEvent,t.currentTarget)&&!t.repeat&&t.currentTarget.contains(t.target)&&e.target&&P($f6c31cce2adf654f$var$createEvent(e.target,t),"keyboard")},onClick(t){if((!t||t.currentTarget.contains(t.target))&&t&&0===t.button&&!e.isTriggeringEvent&&!i.nG.isOpening){let n=!0;if(c&&t.preventDefault(),!e.ignoreClickAfterPress&&!e.ignoreEmulatedMouseEvents&&!e.isPressed&&("virtual"===e.pointerType||(0,i.Zj)(t.nativeEvent))){c||f||(0,i.Ao)(t.currentTarget);let e=S(t,"virtual"),s=P(t,"virtual"),o=T(t,"virtual");n=e&&s&&o}e.ignoreEmulatedMouseEvents=!1,e.ignoreClickAfterPress=!1,n&&t.stopPropagation()}}},onKeyUp=t=>{var n,s,o;if(e.isPressed&&e.target&&$f6c31cce2adf654f$var$isValidKeyboardEvent(t,e.target)){$f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(t.target,t.key)&&t.preventDefault();let n=t.target,o=T($f6c31cce2adf654f$var$createEvent(e.target,t),"keyboard",e.target.contains(n));E(),o&&t.stopPropagation(),"Enter"!==t.key&&$f6c31cce2adf654f$var$isHTMLAnchorLink(e.target)&&e.target.contains(n)&&!t[d]&&(t[d]=!0,(0,i.nG)(e.target,t,!1)),e.isPressed=!1,null===(s=e.metaKeyEvents)||void 0===s||s.delete(t.key)}else if("Meta"===t.key&&(null===(n=e.metaKeyEvents)||void 0===n?void 0:n.size)){let t=e.metaKeyEvents;for(let n of(e.metaKeyEvents=void 0,t.values()))null===(o=e.target)||void 0===o||o.dispatchEvent(new KeyboardEvent("keyup",n))}};if("undefined"!=typeof PointerEvent){t.onPointerDown=t=>{if(0!==t.button||!t.currentTarget.contains(t.target))return;if((0,i.cr)(t.nativeEvent)){e.pointerType="virtual";return}$f6c31cce2adf654f$var$shouldPreventDefault(t.currentTarget)&&t.preventDefault(),e.pointerType=t.pointerType;let n=!0;e.isPressed||(e.isPressed=!0,e.isOverTarget=!0,e.activePointerId=t.pointerId,e.target=t.currentTarget,c||f||(0,i.Ao)(t.currentTarget),m||$14c0b72509d70225$export$16a4697467175487(e.target),n=S(t,e.pointerType),$((0,i.r3)(t.currentTarget),"pointermove",onPointerMove,!1),$((0,i.r3)(t.currentTarget),"pointerup",onPointerUp,!1),$((0,i.r3)(t.currentTarget),"pointercancel",onPointerCancel,!1)),n&&t.stopPropagation()},t.onMouseDown=e=>{e.currentTarget.contains(e.target)&&0===e.button&&($f6c31cce2adf654f$var$shouldPreventDefault(e.currentTarget)&&e.preventDefault(),e.stopPropagation())},t.onPointerUp=t=>{t.currentTarget.contains(t.target)&&"virtual"!==e.pointerType&&0===t.button&&$f6c31cce2adf654f$var$isOverTarget(t,t.currentTarget)&&P(t,e.pointerType||t.pointerType)};let onPointerMove=t=>{t.pointerId===e.activePointerId&&(e.target&&$f6c31cce2adf654f$var$isOverTarget(t,e.target)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,S($f6c31cce2adf654f$var$createEvent(e.target,t),e.pointerType)):e.target&&e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,T($f6c31cce2adf654f$var$createEvent(e.target,t),e.pointerType,!1),w(t)))},onPointerUp=t=>{t.pointerId===e.activePointerId&&e.isPressed&&0===t.button&&e.target&&($f6c31cce2adf654f$var$isOverTarget(t,e.target)&&null!=e.pointerType?T($f6c31cce2adf654f$var$createEvent(e.target,t),e.pointerType):e.isOverTarget&&null!=e.pointerType&&T($f6c31cce2adf654f$var$createEvent(e.target,t),e.pointerType,!1),e.isPressed=!1,e.isOverTarget=!1,e.activePointerId=null,e.pointerType=null,E(),m||$14c0b72509d70225$export$b0d6fa1ab32e3295(e.target))},onPointerCancel=e=>{C(e)};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&C(e)}}else{t.onMouseDown=t=>{if(0===t.button&&t.currentTarget.contains(t.target)){if($f6c31cce2adf654f$var$shouldPreventDefault(t.currentTarget)&&t.preventDefault(),e.ignoreEmulatedMouseEvents){t.stopPropagation();return}e.isPressed=!0,e.isOverTarget=!0,e.target=t.currentTarget,e.pointerType=(0,i.Zj)(t.nativeEvent)?"virtual":"mouse",c||f||(0,i.Ao)(t.currentTarget),S(t,e.pointerType)&&t.stopPropagation(),$((0,i.r3)(t.currentTarget),"mouseup",onMouseUp,!1)}},t.onMouseEnter=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!0,n=S(t,e.pointerType)),n&&t.stopPropagation()},t.onMouseLeave=t=>{if(!t.currentTarget.contains(t.target))return;let n=!0;e.isPressed&&!e.ignoreEmulatedMouseEvents&&null!=e.pointerType&&(e.isOverTarget=!1,n=T(t,e.pointerType,!1),w(t)),n&&t.stopPropagation()},t.onMouseUp=t=>{t.currentTarget.contains(t.target)&&!e.ignoreEmulatedMouseEvents&&0===t.button&&P(t,e.pointerType||"mouse")};let onMouseUp=t=>{if(0===t.button){if(e.isPressed=!1,E(),e.ignoreEmulatedMouseEvents){e.ignoreEmulatedMouseEvents=!1;return}e.target&&$f6c31cce2adf654f$var$isOverTarget(t,e.target)&&null!=e.pointerType?T($f6c31cce2adf654f$var$createEvent(e.target,t),e.pointerType):e.target&&e.isOverTarget&&null!=e.pointerType&&T($f6c31cce2adf654f$var$createEvent(e.target,t),e.pointerType,!1),e.isOverTarget=!1}};t.onTouchStart=t=>{if(!t.currentTarget.contains(t.target))return;let n=function(e){let{targetTouches:t}=e;return t.length>0?t[0]:null}(t.nativeEvent);n&&(e.activePointerId=n.identifier,e.ignoreEmulatedMouseEvents=!0,e.isOverTarget=!0,e.isPressed=!0,e.target=t.currentTarget,e.pointerType="touch",c||f||(0,i.Ao)(t.currentTarget),m||$14c0b72509d70225$export$16a4697467175487(e.target),S(t,e.pointerType)&&t.stopPropagation(),$((0,i.kR)(t.currentTarget),"scroll",onScroll,!0))},t.onTouchMove=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=$f6c31cce2adf654f$var$getTouchById(t.nativeEvent,e.activePointerId),i=!0;n&&$f6c31cce2adf654f$var$isOverTarget(n,t.currentTarget)?e.isOverTarget||null==e.pointerType||(e.isOverTarget=!0,i=S(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(e.isOverTarget=!1,i=T(t,e.pointerType,!1),w(t)),i&&t.stopPropagation()},t.onTouchEnd=t=>{if(!t.currentTarget.contains(t.target))return;if(!e.isPressed){t.stopPropagation();return}let n=$f6c31cce2adf654f$var$getTouchById(t.nativeEvent,e.activePointerId),i=!0;n&&$f6c31cce2adf654f$var$isOverTarget(n,t.currentTarget)&&null!=e.pointerType?(P(t,e.pointerType),i=T(t,e.pointerType)):e.isOverTarget&&null!=e.pointerType&&(i=T(t,e.pointerType,!1)),i&&t.stopPropagation(),e.isPressed=!1,e.activePointerId=null,e.isOverTarget=!1,e.ignoreEmulatedMouseEvents=!0,e.target&&!m&&$14c0b72509d70225$export$b0d6fa1ab32e3295(e.target),E()},t.onTouchCancel=t=>{t.currentTarget.contains(t.target)&&(t.stopPropagation(),e.isPressed&&C(t))};let onScroll=t=>{e.isPressed&&t.target.contains(e.target)&&C({currentTarget:e.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};t.onDragStart=e=>{e.currentTarget.contains(e.target)&&C(e)}}return t},[$,c,f,E,m,C,w,T,S,P]);return(0,s.useEffect)(()=>()=>{var e;m||$14c0b72509d70225$export$b0d6fa1ab32e3295(null!==(e=x.current.target)&&void 0!==e?e:void 0)},[m]),{isPressed:h||g,pressProps:(0,i.dG)(v,A)}}function $f6c31cce2adf654f$var$isHTMLAnchorLink(e){return"A"===e.tagName&&e.hasAttribute("href")}function $f6c31cce2adf654f$var$isValidKeyboardEvent(e,t){let{key:n,code:s}=e,o=t.getAttribute("role");return("Enter"===n||" "===n||"Spacebar"===n||"Space"===s)&&!(t instanceof(0,i.kR)(t).HTMLInputElement&&!$f6c31cce2adf654f$var$isValidInputKey(t,n)||t instanceof(0,i.kR)(t).HTMLTextAreaElement||t.isContentEditable)&&!(("link"===o||!o&&$f6c31cce2adf654f$var$isHTMLAnchorLink(t))&&"Enter"!==n)}function $f6c31cce2adf654f$var$getTouchById(e,t){let n=e.changedTouches;for(let e=0;eo.right)&&!(o.left>s.right)&&!(s.top>o.bottom)&&!(o.top>s.bottom)}function $f6c31cce2adf654f$var$shouldPreventDefault(e){return!(e instanceof HTMLElement)||!e.hasAttribute("draggable")}function $f6c31cce2adf654f$var$shouldPreventDefaultKeyboard(e,t){return e instanceof HTMLInputElement?!$f6c31cce2adf654f$var$isValidInputKey(e,t):e instanceof HTMLButtonElement?"submit"!==e.type&&"reset"!==e.type:!$f6c31cce2adf654f$var$isHTMLAnchorLink(e)}let h=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function $f6c31cce2adf654f$var$isValidInputKey(e,t){return"checkbox"===e.type||"radio"===e.type?" "===t:h.has(e.type)}function $f1ab8c75478c6f73$export$cf75428e0b9ed1ea({children:e}){let t=(0,s.useMemo)(()=>({register:()=>{}}),[]);return s.createElement(l.Provider,{value:t},e)}let $8a9cb279dc87e130$export$905e7fc544a71f36=class $8a9cb279dc87e130$export$905e7fc544a71f36{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}};function $8a9cb279dc87e130$export$715c682d09d639cc(e){let t=(0,s.useRef)({isFocused:!1,observer:null});(0,i.bt)(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=(0,i.iW)(t=>{null==e||e(t)});return(0,s.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=e.target;i.addEventListener("focusout",e=>{t.current.isFocused=!1,i.disabled&&n(new $8a9cb279dc87e130$export$905e7fc544a71f36("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function $a1ea59d68270f0dd$export$f8168d8dd8fd66e6(e){let{isDisabled:t,onFocus:n,onBlur:i,onFocusChange:o}=e,a=(0,s.useCallback)(e=>{if(e.target===e.currentTarget)return i&&i(e),o&&o(!1),!0},[i,o]),u=$8a9cb279dc87e130$export$715c682d09d639cc(a),l=(0,s.useCallback)(e=>{e.target===e.currentTarget&&document.activeElement===e.target&&(n&&n(e),o&&o(!0),u(e))},[o,n,u]);return{focusProps:{onFocus:!t&&(n||o||i)?l:void 0,onBlur:!t&&(i||o)?a:void 0}}}let f=null,p=new Set,m=!1,y=!1,v=!1,g={Tab:!0,Escape:!0};function $507fabe10e71c6fb$var$triggerChangeHandlers(e,t){for(let n of p)n(e,t)}function $507fabe10e71c6fb$var$handleKeyboardEvent(e){y=!0,e.metaKey||!(0,i.V5)()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(f="keyboard",$507fabe10e71c6fb$var$triggerChangeHandlers("keyboard",e))}function $507fabe10e71c6fb$var$handlePointerEvent(e){f="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(y=!0,$507fabe10e71c6fb$var$triggerChangeHandlers("pointer",e))}function $507fabe10e71c6fb$var$handleClickEvent(e){(0,i.Zj)(e)&&(y=!0,f="virtual")}function $507fabe10e71c6fb$var$handleFocusEvent(e){e.target!==window&&e.target!==document&&(y||v||(f="virtual",$507fabe10e71c6fb$var$triggerChangeHandlers("virtual",e)),y=!1,v=!1)}function $507fabe10e71c6fb$var$handleWindowBlur(){y=!1,v=!0}function $507fabe10e71c6fb$var$setupGlobalFocusEvents(){if("undefined"==typeof window||m)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){y=!0,e.apply(this,arguments)},document.addEventListener("keydown",$507fabe10e71c6fb$var$handleKeyboardEvent,!0),document.addEventListener("keyup",$507fabe10e71c6fb$var$handleKeyboardEvent,!0),document.addEventListener("click",$507fabe10e71c6fb$var$handleClickEvent,!0),window.addEventListener("focus",$507fabe10e71c6fb$var$handleFocusEvent,!0),window.addEventListener("blur",$507fabe10e71c6fb$var$handleWindowBlur,!1),"undefined"!=typeof PointerEvent?(document.addEventListener("pointerdown",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("pointermove",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("pointerup",$507fabe10e71c6fb$var$handlePointerEvent,!0)):(document.addEventListener("mousedown",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("mousemove",$507fabe10e71c6fb$var$handlePointerEvent,!0),document.addEventListener("mouseup",$507fabe10e71c6fb$var$handlePointerEvent,!0)),m=!0}function $507fabe10e71c6fb$export$b9b3dfddab17db27(){return"pointer"!==f}function $507fabe10e71c6fb$export$630ff653c5ada6a9(){return f}function $507fabe10e71c6fb$export$8397ddfc504fdb9a(e){f=e,$507fabe10e71c6fb$var$triggerChangeHandlers(e,null)}"undefined"!=typeof document&&("loading"!==document.readyState?$507fabe10e71c6fb$var$setupGlobalFocusEvents():document.addEventListener("DOMContentLoaded",$507fabe10e71c6fb$var$setupGlobalFocusEvents));let b=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function $507fabe10e71c6fb$export$ec71b4b83ac08ec3(e,t,n){$507fabe10e71c6fb$var$setupGlobalFocusEvents(),(0,s.useEffect)(()=>{let handler=(t,i)=>{var s,o;(!(((null==n?void 0:n.isTextInput)||(null==i?void 0:i.target)instanceof HTMLInputElement&&!b.has(null==i?void 0:null===(o=i.target)||void 0===o?void 0:o.type)||(null==i?void 0:i.target)instanceof HTMLTextAreaElement||(null==i?void 0:i.target)instanceof HTMLElement&&(null==i?void 0:i.target.isContentEditable))&&"keyboard"===t&&i instanceof KeyboardEvent)||g[i.key])&&e($507fabe10e71c6fb$export$b9b3dfddab17db27())};return p.add(handler),()=>{p.delete(handler)}},t)}function $9ab94262bd0047c7$export$420e68273165f4ec(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:i,onFocusWithinChange:o}=e,a=(0,s.useRef)({isFocusWithin:!1}),u=(0,s.useCallback)(e=>{a.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(a.current.isFocusWithin=!1,n&&n(e),o&&o(!1))},[n,o,a]),l=$8a9cb279dc87e130$export$715c682d09d639cc(u),c=(0,s.useCallback)(e=>{a.current.isFocusWithin||document.activeElement!==e.target||(i&&i(e),o&&o(!0),a.current.isFocusWithin=!0,l(e))},[i,o,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:c,onBlur:u}}}let x=!1,$=0;function $6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents(){x=!0,setTimeout(()=>{x=!1},50)}function $6179b936705e76d3$var$handleGlobalPointerEvent(e){"touch"===e.pointerType&&$6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents()}function $6179b936705e76d3$var$setupGlobalTouchEvents(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",$6179b936705e76d3$var$handleGlobalPointerEvent):document.addEventListener("touchend",$6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents),$++,()=>{--$>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",$6179b936705e76d3$var$handleGlobalPointerEvent):document.removeEventListener("touchend",$6179b936705e76d3$var$setGlobalIgnoreEmulatedMouseEvents))}}function $6179b936705e76d3$export$ae780daf29e6d456(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:i,isDisabled:o}=e,[a,u]=(0,s.useState)(!1),l=(0,s.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,s.useEffect)($6179b936705e76d3$var$setupGlobalTouchEvents,[]);let{hoverProps:c,triggerHoverEnd:d}=(0,s.useMemo)(()=>{let triggerHoverStart=(e,i)=>{if(l.pointerType=i,o||"touch"===i||l.isHovered||!e.currentTarget.contains(e.target))return;l.isHovered=!0;let s=e.currentTarget;l.target=s,t&&t({type:"hoverstart",target:s,pointerType:i}),n&&n(!0),u(!0)},triggerHoverEnd=(e,t)=>{if(l.pointerType="",l.target=null,"touch"===t||!l.isHovered)return;l.isHovered=!1;let s=e.currentTarget;i&&i({type:"hoverend",target:s,pointerType:t}),n&&n(!1),u(!1)},e={};return"undefined"!=typeof PointerEvent?(e.onPointerEnter=e=>{x&&"mouse"===e.pointerType||triggerHoverStart(e,e.pointerType)},e.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&triggerHoverEnd(e,e.pointerType)}):(e.onTouchStart=()=>{l.ignoreEmulatedMouseEvents=!0},e.onMouseEnter=e=>{l.ignoreEmulatedMouseEvents||x||triggerHoverStart(e,"mouse"),l.ignoreEmulatedMouseEvents=!1},e.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&triggerHoverEnd(e,"mouse")}),{hoverProps:e,triggerHoverEnd:triggerHoverEnd}},[t,n,i,o,l]);return(0,s.useEffect)(()=>{o&&d({currentTarget:l.target},l.pointerType)},[o]),{hoverProps:c,isHovered:a}}function $e0b6e0b68ec7f50f$export$872b660ac5a1ff98(e){let{ref:t,onInteractOutside:n,isDisabled:o,onInteractOutsideStart:a}=e,u=(0,s.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=(0,i.iW)(e=>{n&&$e0b6e0b68ec7f50f$var$isValidEvent(e,t)&&(a&&a(e),u.current.isPointerDown=!0)}),c=(0,i.iW)(e=>{n&&n(e)});(0,s.useEffect)(()=>{let e=u.current;if(o)return;let n=t.current,s=(0,i.r3)(n);if("undefined"!=typeof PointerEvent){let onPointerUp=n=>{e.isPointerDown&&$e0b6e0b68ec7f50f$var$isValidEvent(n,t)&&c(n),e.isPointerDown=!1};return s.addEventListener("pointerdown",l,!0),s.addEventListener("pointerup",onPointerUp,!0),()=>{s.removeEventListener("pointerdown",l,!0),s.removeEventListener("pointerup",onPointerUp,!0)}}{let onMouseUp=n=>{e.ignoreEmulatedMouseEvents?e.ignoreEmulatedMouseEvents=!1:e.isPointerDown&&$e0b6e0b68ec7f50f$var$isValidEvent(n,t)&&c(n),e.isPointerDown=!1},onTouchEnd=n=>{e.ignoreEmulatedMouseEvents=!0,e.isPointerDown&&$e0b6e0b68ec7f50f$var$isValidEvent(n,t)&&c(n),e.isPointerDown=!1};return s.addEventListener("mousedown",l,!0),s.addEventListener("mouseup",onMouseUp,!0),s.addEventListener("touchstart",l,!0),s.addEventListener("touchend",onTouchEnd,!0),()=>{s.removeEventListener("mousedown",l,!0),s.removeEventListener("mouseup",onMouseUp,!0),s.removeEventListener("touchstart",l,!0),s.removeEventListener("touchend",onTouchEnd,!0)}}},[t,o,l,c])}function $e0b6e0b68ec7f50f$var$isValidEvent(e,t){if(e.button>0)return!1;if(e.target){let t=e.target.ownerDocument;if(!t||!t.documentElement.contains(e.target)||e.target.closest("[data-react-aria-top-layer]"))return!1}return t.current&&!t.current.contains(e.target)}function $93925083ecbb358c$export$48d1ea6320830260(e){if(!e)return;let t=!0;return n=>{e({...n,preventDefault(){n.preventDefault()},isDefaultPrevented:()=>n.isDefaultPrevented(),stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}}),t&&n.stopPropagation()}}function $46d819fcbaf35654$export$8f71654801c2f7cd(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:$93925083ecbb358c$export$48d1ea6320830260(e.onKeyDown),onKeyUp:$93925083ecbb358c$export$48d1ea6320830260(e.onKeyUp)}}}},3791:function(e,t,n){"use strict";n.d(t,{U4:function(){return $86ea4cb521eb2e37$export$2317d149ed6f78c4},aV:function(){return $337b884510726a0d$export$c6fdb837b070b4ff},N3:function(){return $f57aed4a881a3485$export$bf688221f59024e5},RP:function(){return $5e3802645cc19319$export$1c3ebcada18427bf},Ir:function(){return $a11501f3d1d39e6c$export$ea8f71083e90600f},Bq:function(){return $337b884510726a0d$export$14c98a7594375490}});var i=n(7294),s=n(5650),o=n(3175),a=n(8628),u=n(2290),l=n(3935),c=n(6769);let d={border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"};function $5c3e21d68f1c4674$export$439d29a4e110a164(e){let{children:t,elementType:n="div",isFocusable:o,style:a,...l}=e,{visuallyHiddenProps:c}=function(e={}){let{style:t,isFocusable:n}=e,[s,o]=(0,i.useState)(!1),{focusWithinProps:a}=(0,u.L_)({isDisabled:!n,onFocusWithinChange:e=>o(e)}),l=(0,i.useMemo)(()=>s?t:t?{...d,...t}:d,[s]);return{visuallyHiddenProps:{...a,style:l}}}(e);return i.createElement(n,(0,s.dG)(l,c),t)}"undefined"!=typeof document&&window.visualViewport,new WeakMap,"undefined"!=typeof document&&window.visualViewport;let h=[];function $a11501f3d1d39e6c$export$ea8f71083e90600f(e,t){let{onClose:n,shouldCloseOnBlur:s,isOpen:o,isDismissable:l=!1,isKeyboardDismissDisabled:c=!1,shouldCloseOnInteractOutside:d}=e;(0,i.useEffect)(()=>(o&&h.push(t),()=>{let e=h.indexOf(t);e>=0&&h.splice(e,1)}),[o,t]);let onHide=()=>{h[h.length-1]===t&&n&&n()};(0,u.Fc)({ref:t,onInteractOutside:l&&o?e=>{(!d||d(e.target))&&(h[h.length-1]===t&&(e.stopPropagation(),e.preventDefault()),onHide())}:null,onInteractOutsideStart:e=>{(!d||d(e.target))&&h[h.length-1]===t&&(e.stopPropagation(),e.preventDefault())}});let{focusWithinProps:f}=(0,u.L_)({isDisabled:!s,onBlurWithin:e=>{!(!e.relatedTarget||(0,a.cW)(e.relatedTarget))&&(!d||d(e.relatedTarget))&&n()}});return{overlayProps:{onKeyDown:e=>{"Escape"!==e.key||c||(e.stopPropagation(),e.preventDefault(),onHide())},...f},underlayProps:{onPointerDown:e=>{e.target===e.currentTarget&&e.preventDefault()}}}}"undefined"!=typeof document&&window.visualViewport;let f=i.createContext(null);function $f57aed4a881a3485$export$178405afcd8c5eb(e){let{children:t}=e,n=(0,i.useContext)(f),[s,o]=(0,i.useState)(0),a=(0,i.useMemo)(()=>({parent:n,modalCount:s,addModal(){o(e=>e+1),n&&n.addModal()},removeModal(){o(e=>e-1),n&&n.removeModal()}}),[n,s]);return i.createElement(f.Provider,{value:a},t)}function $f57aed4a881a3485$var$OverlayContainerDOM(e){let t;let{modalProviderProps:n}={modalProviderProps:{"aria-hidden":!!(t=(0,i.useContext)(f))&&t.modalCount>0||null}};return i.createElement("div",{"data-overlay-container":!0,...e,...n})}function $f57aed4a881a3485$export$bf688221f59024e5(e){return i.createElement($f57aed4a881a3485$export$178405afcd8c5eb,null,i.createElement($f57aed4a881a3485$var$OverlayContainerDOM,e))}var p={};function $86ea4cb521eb2e37$export$2317d149ed6f78c4(e){var t;let{onDismiss:n,...a}=e,u=(0,o.qb)((t=p)&&t.__esModule?t.default:t),l=(0,s.bE)(a,u.format("dismiss"));return i.createElement($5c3e21d68f1c4674$export$439d29a4e110a164,null,i.createElement("button",{...l,tabIndex:-1,onClick:()=>{n&&n()}}))}p={"ar-AE":{dismiss:`\u{62A}\u{62C}\u{627}\u{647}\u{644}`},"bg-BG":{dismiss:`\u{41E}\u{442}\u{445}\u{432}\u{44A}\u{440}\u{43B}\u{44F}\u{43D}\u{435}`},"cs-CZ":{dismiss:"Odstranit"},"da-DK":{dismiss:"Luk"},"de-DE":{dismiss:`Schlie\xdfen`},"el-GR":{dismiss:`\u{391}\u{3C0}\u{3CC}\u{3C1}\u{3C1}\u{3B9}\u{3C8}\u{3B7}`},"en-US":{dismiss:"Dismiss"},"es-ES":{dismiss:"Descartar"},"et-EE":{dismiss:`L\xf5peta`},"fi-FI":{dismiss:`Hylk\xe4\xe4`},"fr-FR":{dismiss:"Rejeter"},"he-IL":{dismiss:`\u{5D4}\u{5EA}\u{5E2}\u{5DC}\u{5DD}`},"hr-HR":{dismiss:"Odbaci"},"hu-HU":{dismiss:`Elutas\xedt\xe1s`},"it-IT":{dismiss:"Ignora"},"ja-JP":{dismiss:`\u{9589}\u{3058}\u{308B}`},"ko-KR":{dismiss:`\u{BB34}\u{C2DC}`},"lt-LT":{dismiss:"Atmesti"},"lv-LV":{dismiss:`Ner\u{101}d\u{12B}t`},"nb-NO":{dismiss:"Lukk"},"nl-NL":{dismiss:"Negeren"},"pl-PL":{dismiss:"Zignoruj"},"pt-BR":{dismiss:"Descartar"},"pt-PT":{dismiss:"Dispensar"},"ro-RO":{dismiss:"Revocare"},"ru-RU":{dismiss:`\u{41F}\u{440}\u{43E}\u{43F}\u{443}\u{441}\u{442}\u{438}\u{442}\u{44C}`},"sk-SK":{dismiss:`Zru\u{161}i\u{165}`},"sl-SI":{dismiss:"Opusti"},"sr-SP":{dismiss:"Odbaci"},"sv-SE":{dismiss:"Avvisa"},"tr-TR":{dismiss:"Kapat"},"uk-UA":{dismiss:`\u{421}\u{43A}\u{430}\u{441}\u{443}\u{432}\u{430}\u{442}\u{438}`},"zh-CN":{dismiss:`\u{53D6}\u{6D88}`},"zh-TW":{dismiss:`\u{95DC}\u{9589}`}};let m=new WeakMap,y=[];function $5e3802645cc19319$export$1c3ebcada18427bf(e,t=document.body){let n=new Set(e),i=new Set,walk=e=>{for(let t of e.querySelectorAll("[data-live-announcer], [data-react-aria-top-layer]"))n.add(t);let acceptNode=e=>{if(n.has(e)||i.has(e.parentElement)&&"row"!==e.parentElement.getAttribute("role"))return NodeFilter.FILTER_REJECT;for(let t of n)if(e.contains(t))return NodeFilter.FILTER_SKIP;return NodeFilter.FILTER_ACCEPT},t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:acceptNode}),s=acceptNode(e);if(s===NodeFilter.FILTER_ACCEPT&&hide(e),s!==NodeFilter.FILTER_REJECT){let e=t.nextNode();for(;null!=e;)hide(e),e=t.nextNode()}},hide=e=>{var t;let n=null!==(t=m.get(e))&&void 0!==t?t:0;("true"!==e.getAttribute("aria-hidden")||0!==n)&&(0===n&&e.setAttribute("aria-hidden","true"),i.add(e),m.set(e,n+1))};y.length&&y[y.length-1].disconnect(),walk(t);let s=new MutationObserver(e=>{for(let t of e)if("childList"===t.type&&0!==t.addedNodes.length&&![...n,...i].some(e=>e.contains(t.target))){for(let e of t.removedNodes)e instanceof Element&&(n.delete(e),i.delete(e));for(let e of t.addedNodes)(e instanceof HTMLElement||e instanceof SVGElement)&&("true"===e.dataset.liveAnnouncer||"true"===e.dataset.reactAriaTopLayer)?n.add(e):e instanceof Element&&walk(e)}});s.observe(t,{childList:!0,subtree:!0});let o={observe(){s.observe(t,{childList:!0,subtree:!0})},disconnect(){s.disconnect()}};return y.push(o),()=>{for(let e of(s.disconnect(),i)){let t=m.get(e);1===t?(e.removeAttribute("aria-hidden"),m.delete(e)):m.set(e,t-1)}o===y[y.length-1]?(y.pop(),y.length&&y[y.length-1].observe()):y.splice(y.indexOf(o),1)}}let v=i.createContext(null);function $337b884510726a0d$export$c6fdb837b070b4ff(e){let t=(0,c.Av)(),{portalContainer:n=t?null:document.body,isExiting:s}=e,[o,d]=(0,i.useState)(!1),h=(0,i.useMemo)(()=>({contain:o,setContain:d}),[o,d]);if(!n)return null;let f=e.children;return e.disableFocusManagement||(f=i.createElement(a.MT,{restoreFocus:!0,contain:o&&!s},f)),f=i.createElement(v.Provider,{value:h},i.createElement(u.mk,null,f)),l.createPortal(f,n)}function $337b884510726a0d$export$14c98a7594375490(){let e=(0,i.useContext)(v),t=null==e?void 0:e.setContain;(0,s.bt)(()=>{null==t||t(!0)},[t])}},6769:function(e,t,n){"use strict";n.d(t,{Av:function(){return $b5e257d569688ac6$export$535bd6ca7f90a273},gP:function(){return c}});var i=n(7294);let s={prefix:String(Math.round(1e10*Math.random())),current:0},o=i.createContext(s),a=i.createContext(!1),u=!!("undefined"!=typeof window&&window.document&&window.document.createElement),l=new WeakMap,c="function"==typeof i.useId?function(e){let t=i.useId(),[n]=(0,i.useState)($b5e257d569688ac6$export$535bd6ca7f90a273()),o=n?"react-aria":`react-aria${s.prefix}`;return e||`${o}-${t}`}:function(e){let t=(0,i.useContext)(o);t!==s||u||console.warn("When server rendering, you must wrap your application in an to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=(0,i.useContext)(o),n=(0,i.useRef)(null);if(null===n.current&&!e){var s,a;let e=null===(a=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===a?void 0:null===(s=a.ReactCurrentOwner)||void 0===s?void 0:s.current;if(e){let n=l.get(e);null==n?l.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,l.delete(e))}n.current=++t.current}return n.current}(!!e),a=`react-aria${t.prefix}`;return e||`${a}-${n}`};function $b5e257d569688ac6$var$getSnapshot(){return!1}function $b5e257d569688ac6$var$getServerSnapshot(){return!0}function $b5e257d569688ac6$var$subscribe(e){return()=>{}}function $b5e257d569688ac6$export$535bd6ca7f90a273(){return"function"==typeof i.useSyncExternalStore?i.useSyncExternalStore($b5e257d569688ac6$var$subscribe,$b5e257d569688ac6$var$getSnapshot,$b5e257d569688ac6$var$getServerSnapshot):(0,i.useContext)(a)}},5650:function(e,t,n){"use strict";n.d(t,{pG:function(){return $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb},tS:function(){return $ff5963eb1fccf552$export$e08e3b67e392101e},zL:function(){return $65484d02dcb7eb3e$export$457c3d6518dd4c6f},Ao:function(){return $7215afc6de606d6b$export$de79e2c695e052f3},r3:function(){return $431fbd86ca7dc216$export$b204af158042fbac},kR:function(){return $431fbd86ca7dc216$export$f21a1ffae260145a},gn:function(){return $c87311424ea30a05$export$fedb369cb70207f1},V5:function(){return $c87311424ea30a05$export$9ac100e40613ea10},Zj:function(){return $6a7db85432448f7f$export$60278871457622de},cr:function(){return $6a7db85432448f7f$export$29bf1b5f2c56cf63},dG:function(){return $3ef42575df84b30b$export$9d1611c77c2fe928},lq:function(){return $5dc95899b306f630$export$c9058316764c140e},nG:function(){return $ea8dcbcb9ea1b556$export$95185d699e05d4d7},QB:function(){return $bbed8b41f857bcc0$export$24490316f764c430},iW:function(){return $8ae05eaa5c114e9c$export$7f54fc3180508a52},y$:function(){return $99facab73266f662$export$5add1d006293d136},xi:function(){return $03deb23ff14920c4$export$4eaf04e54aa8eed6},Me:function(){return $bdb11010cef70236$export$f680877a34711e37},bE:function(){return $313b98861ee5dd6c$export$d6875122194c7b44},bt:function(){return o},mp:function(){return $bdb11010cef70236$export$b4cc09c592e8fdb8},lE:function(){return $e7801be82b4b2a53$export$4debdb1a3f0fa79e}});var i=n(7294),s=n(6769),clsx_m=function(){for(var e,t,n=0,i="";n{};function $8ae05eaa5c114e9c$export$7f54fc3180508a52(e){let t=(0,i.useRef)(null);return o(()=>{t.current=e},[e]),(0,i.useCallback)((...e)=>{let n=t.current;return n(...e)},[])}let a=!!("undefined"!=typeof window&&window.document&&window.document.createElement),u=new Map;function $bdb11010cef70236$export$f680877a34711e37(e){let[t,n]=(0,i.useState)(e),l=(0,i.useRef)(null),c=(0,s.gP)(t),d=(0,i.useCallback)(e=>{l.current=e},[]);return a&&u.set(c,d),o(()=>()=>{u.delete(c)},[c]),(0,i.useEffect)(()=>{let e=l.current;e&&(l.current=null,n(e))}),c}function $bdb11010cef70236$export$b4cc09c592e8fdb8(e=[]){let t=$bdb11010cef70236$export$f680877a34711e37(),[n,s]=function(e){let[t,n]=(0,i.useState)(e),s=(0,i.useRef)(null),a=$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{let e=s.current.next();if(e.done){s.current=null;return}t===e.value?a():n(e.value)});o(()=>{s.current&&a()});let u=$8ae05eaa5c114e9c$export$7f54fc3180508a52(e=>{s.current=e(t),a()});return[t,u]}(t),a=(0,i.useCallback)(()=>{s(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,s]);return o(a,[t,a,...e]),n}function $ff5963eb1fccf552$export$e08e3b67e392101e(...e){return(...t)=>{for(let n of e)"function"==typeof n&&n(...t)}}let $431fbd86ca7dc216$export$b204af158042fbac=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},$431fbd86ca7dc216$export$f21a1ffae260145a=e=>{if(e&&"window"in e&&e.window===e)return e;let t=$431fbd86ca7dc216$export$b204af158042fbac(e);return t.defaultView||window};function $3ef42575df84b30b$export$9d1611c77c2fe928(...e){let t={...e[0]};for(let n=1;n=65&&90>=e.charCodeAt(2)?t[e]=$ff5963eb1fccf552$export$e08e3b67e392101e(n,s):("className"===e||"UNSAFE_className"===e)&&"string"==typeof n&&"string"==typeof s?t[e]=clsx_m(n,s):"id"===e&&n&&s?t.id=function(e,t){if(e===t)return e;let n=u.get(e);if(n)return n(t),t;let i=u.get(t);return i?(i(e),e):t}(n,s):t[e]=void 0!==s?s:n}}return t}function $5dc95899b306f630$export$c9058316764c140e(...e){return 1===e.length?e[0]:t=>{for(let n of e)"function"==typeof n?n(t):null!=n&&(n.current=t)}}let l=new Set(["id"]),c=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),d=new Set(["href","target","rel","download","ping","referrerPolicy"]),h=/^(data-.*)$/;function $65484d02dcb7eb3e$export$457c3d6518dd4c6f(e,t={}){let{labelable:n,isLink:i,propNames:s}=t,o={};for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(l.has(t)||n&&c.has(t)||i&&d.has(t)||(null==s?void 0:s.has(t))||h.test(t))&&(o[t]=e[t]);return o}function $7215afc6de606d6b$export$de79e2c695e052f3(e){if(function(){if(null==f){f=!1;try{document.createElement("div").focus({get preventScroll(){return f=!0,!0}})}catch(e){}}return f}())e.focus({preventScroll:!0});else{let t=function(e){for(var t=e.parentNode,n=[],i=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==i;)(t.offsetHeighte.test(t.brand)))||e.test(window.navigator.userAgent))}function $c87311424ea30a05$var$testPlatform(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function $c87311424ea30a05$export$9ac100e40613ea10(){return $c87311424ea30a05$var$testPlatform(/^Mac/i)}function $c87311424ea30a05$export$7bef049ce92e4224(){return $c87311424ea30a05$var$testPlatform(/^iPad/i)||$c87311424ea30a05$export$9ac100e40613ea10()&&navigator.maxTouchPoints>1}function $c87311424ea30a05$export$fedb369cb70207f1(){return $c87311424ea30a05$var$testPlatform(/^iPhone/i)||$c87311424ea30a05$export$7bef049ce92e4224()}function $c87311424ea30a05$export$a11b0059900ceec8(){return $c87311424ea30a05$var$testUserAgent(/Android/i)}let p=(0,i.createContext)({isNative:!0,open:function(e,t){$ea8dcbcb9ea1b556$var$getSyntheticLink(e,e=>$ea8dcbcb9ea1b556$export$95185d699e05d4d7(e,t))}});function $ea8dcbcb9ea1b556$export$323e4fc2fa4753fb(e){let{children:t,navigate:n}=e,s=(0,i.useMemo)(()=>({isNative:!1,open:(e,t)=>{$ea8dcbcb9ea1b556$var$getSyntheticLink(e,e=>{let i;(i=e.getAttribute("target"))&&"_self"!==i||e.origin!==location.origin||e.hasAttribute("download")||t.metaKey||t.ctrlKey||t.altKey||t.shiftKey?$ea8dcbcb9ea1b556$export$95185d699e05d4d7(e,t):n(e.pathname+e.search+e.hash)})}}),[n]);return i.createElement(p.Provider,{value:s},t)}function $ea8dcbcb9ea1b556$export$95185d699e05d4d7(e,t,n=!0){var i,s;let{metaKey:o,ctrlKey:a,altKey:u,shiftKey:l}=t;$c87311424ea30a05$var$testUserAgent(/Firefox/i)&&(null===(s=window.event)||void 0===s?void 0:null===(i=s.type)||void 0===i?void 0:i.startsWith("key"))&&"_blank"===e.target&&($c87311424ea30a05$export$9ac100e40613ea10()?o=!0:a=!0);let c=$c87311424ea30a05$var$testUserAgent(/AppleWebKit/i)&&!$c87311424ea30a05$var$testUserAgent(/Chrome/i)&&$c87311424ea30a05$export$9ac100e40613ea10()&&!$c87311424ea30a05$export$7bef049ce92e4224()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:o,ctrlKey:a,altKey:u,shiftKey:l}):new MouseEvent("click",{metaKey:o,ctrlKey:a,altKey:u,shiftKey:l,bubbles:!0,cancelable:!0});$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening=n,$7215afc6de606d6b$export$de79e2c695e052f3(e),e.dispatchEvent(c),$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening=!1}function $ea8dcbcb9ea1b556$var$getSyntheticLink(e,t){if(e instanceof HTMLAnchorElement)t(e);else if(e.hasAttribute("data-href")){let n=document.createElement("a");n.href=e.getAttribute("data-href"),e.hasAttribute("data-target")&&(n.target=e.getAttribute("data-target")),e.hasAttribute("data-rel")&&(n.rel=e.getAttribute("data-rel")),e.hasAttribute("data-download")&&(n.download=e.getAttribute("data-download")),e.hasAttribute("data-ping")&&(n.ping=e.getAttribute("data-ping")),e.hasAttribute("data-referrer-policy")&&(n.referrerPolicy=e.getAttribute("data-referrer-policy")),e.appendChild(n),t(n),e.removeChild(n)}}$ea8dcbcb9ea1b556$export$95185d699e05d4d7.isOpening=!1;let m=new Map,y=new Set;function $bbed8b41f857bcc0$var$setupGlobalEvents(){if("undefined"==typeof window)return;let onTransitionEnd=e=>{let t=m.get(e.target);if(t&&(t.delete(e.propertyName),0===t.size&&(e.target.removeEventListener("transitioncancel",onTransitionEnd),m.delete(e.target)),0===m.size)){for(let e of y)e();y.clear()}};document.body.addEventListener("transitionrun",e=>{let t=m.get(e.target);t||(t=new Set,m.set(e.target,t),e.target.addEventListener("transitioncancel",onTransitionEnd)),t.add(e.propertyName)}),document.body.addEventListener("transitionend",onTransitionEnd)}function $bbed8b41f857bcc0$export$24490316f764c430(e){requestAnimationFrame(()=>{0===m.size?e():y.add(e)})}function $03deb23ff14920c4$export$4eaf04e54aa8eed6(){let e=(0,i.useRef)(new Map),t=(0,i.useCallback)((t,n,i,s)=>{let o=(null==s?void 0:s.once)?(...t)=>{e.current.delete(i),i(...t)}:i;e.current.set(i,{type:n,eventTarget:t,fn:o,options:s}),t.addEventListener(n,i,s)},[]),n=(0,i.useCallback)((t,n,i,s)=>{var o;let a=(null===(o=e.current.get(i))||void 0===o?void 0:o.fn)||i;t.removeEventListener(n,a,s),e.current.delete(i)},[]),s=(0,i.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,i.useEffect)(()=>s,[s]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:s}}function $313b98861ee5dd6c$export$d6875122194c7b44(e,t){let{id:n,"aria-label":i,"aria-labelledby":s}=e;return n=$bdb11010cef70236$export$f680877a34711e37(n),s&&i?s=[...new Set([n,...s.trim().split(/\s+/)])].join(" "):s&&(s=s.trim().split(/\s+/).join(" ")),i||s||!t||(i=t),{id:n,"aria-label":i,"aria-labelledby":s}}function $e7801be82b4b2a53$export$4debdb1a3f0fa79e(e,t){o(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}})}function $6a7db85432448f7f$export$60278871457622de(e){return 0===e.mozInputSource&&!!e.isTrusted||($c87311424ea30a05$export$a11b0059900ceec8()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function $6a7db85432448f7f$export$29bf1b5f2c56cf63(e){return!$c87311424ea30a05$export$a11b0059900ceec8()&&0===e.width&&0===e.height||1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType}function $99facab73266f662$export$5add1d006293d136(e,t,n){let s=(0,i.useRef)(t),o=$8ae05eaa5c114e9c$export$7f54fc3180508a52(()=>{n&&n(s.current)});(0,i.useEffect)(()=>{var t;let n=null==e?void 0:null===(t=e.current)||void 0===t?void 0:t.form;return null==n||n.addEventListener("reset",o),()=>{null==n||n.removeEventListener("reset",o)}},[e,o])}"undefined"!=typeof document&&("loading"!==document.readyState?$bbed8b41f857bcc0$var$setupGlobalEvents():document.addEventListener("DOMContentLoaded",$bbed8b41f857bcc0$var$setupGlobalEvents)),"undefined"!=typeof document&&window.visualViewport},1526:function(e,t,n){"use strict";n.d(t,{M:function(){return AnimatePresence}});var i=n(7294),s=n(8868);function useIsMounted(){let e=(0,i.useRef)(!1);return(0,s.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var o=n(2074),a=n(240),u=n(6681);let PopChildMeasure=class PopChildMeasure extends i.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function PopChild({children:e,isPresent:t}){let n=(0,i.useId)(),s=(0,i.useRef)(null),o=(0,i.useRef)({width:0,height:0,top:0,left:0});return(0,i.useInsertionEffect)(()=>{let{width:e,height:i,top:a,left:u}=o.current;if(t||!s.current||!e||!i)return;s.current.dataset.motionPopId=n;let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` [data-motion-pop-id="${n}"] { position: absolute !important; width: ${e}px !important; height: ${i}px !important; top: ${a}px !important; left: ${u}px !important; } `),()=>{document.head.removeChild(l)}},[t]),i.createElement(PopChildMeasure,{isPresent:t,childRef:s,sizeRef:o},i.cloneElement(e,{ref:s}))}let PresenceChild=({children:e,initial:t,isPresent:n,onExitComplete:s,custom:o,presenceAffectsLayout:l,mode:c})=>{let d=(0,u.h)(newChildrenMap),h=(0,i.useId)(),f=(0,i.useMemo)(()=>({id:h,initial:t,isPresent:n,custom:o,onExitComplete:e=>{for(let t of(d.set(e,!0),d.values()))if(!t)return;s&&s()},register:e=>(d.set(e,!1),()=>d.delete(e))}),l?void 0:[n]);return(0,i.useMemo)(()=>{d.forEach((e,t)=>d.set(t,!1))},[n]),i.useEffect(()=>{n||d.size||!s||s()},[n]),"popLayout"===c&&(e=i.createElement(PopChild,{isPresent:n},e)),i.createElement(a.O.Provider,{value:f},e)};function newChildrenMap(){return new Map}var l=n(5364),c=n(5487);let getChildKey=e=>e.key||"",AnimatePresence=({children:e,custom:t,initial:n=!0,onExitComplete:a,exitBeforeEnter:u,presenceAffectsLayout:d=!0,mode:h="sync"})=>{var f;(0,c.k)(!u,"Replace exitBeforeEnter with mode='wait'");let p=(0,i.useContext)(l.p).forceRender||function(){let e=useIsMounted(),[t,n]=(0,i.useState)(0),s=(0,i.useCallback)(()=>{e.current&&n(t+1)},[t]),a=(0,i.useCallback)(()=>o.Wi.postRender(s),[s]);return[a,t]}()[0],m=useIsMounted(),y=function(e){let t=[];return i.Children.forEach(e,e=>{(0,i.isValidElement)(e)&&t.push(e)}),t}(e),v=y,g=(0,i.useRef)(new Map).current,b=(0,i.useRef)(v),x=(0,i.useRef)(new Map).current,$=(0,i.useRef)(!0);if((0,s.L)(()=>{$.current=!1,function(e,t){e.forEach(e=>{let n=getChildKey(e);t.set(n,e)})}(y,x),b.current=v}),f=()=>{$.current=!0,x.clear(),g.clear()},(0,i.useEffect)(()=>()=>f(),[]),$.current)return i.createElement(i.Fragment,null,v.map(e=>i.createElement(PresenceChild,{key:getChildKey(e),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:d,mode:h},e)));v=[...v];let E=b.current.map(getChildKey),S=y.map(getChildKey),T=E.length;for(let e=0;e{if(-1!==S.indexOf(n))return;let s=x.get(n);if(!s)return;let o=E.indexOf(n),u=e;u||(u=i.createElement(PresenceChild,{key:getChildKey(s),isPresent:!1,onExitComplete:()=>{g.delete(n);let e=Array.from(x.keys()).filter(e=>!S.includes(e));if(e.forEach(e=>x.delete(e)),b.current=y.filter(t=>{let i=getChildKey(t);return i===n||e.includes(i)}),!g.size){if(!1===m.current)return;p(),a&&a()}},custom:t,presenceAffectsLayout:d,mode:h},s),g.set(n,u)),v.splice(o,0,u)}),v=v.map(e=>{let t=e.key;return g.has(t)?e:i.createElement(PresenceChild,{key:getChildKey(e),isPresent:!0,presenceAffectsLayout:d,mode:h},e)}),i.createElement(i.Fragment,null,g.size?v:v.map(e=>(0,i.cloneElement)(e)))}},5364:function(e,t,n){"use strict";n.d(t,{p:function(){return s}});var i=n(7294);let s=(0,i.createContext)({})},240:function(e,t,n){"use strict";n.d(t,{O:function(){return s}});var i=n(7294);let s=(0,i.createContext)(null)},2074:function(e,t,n){"use strict";n.d(t,{Pn:function(){return a},Wi:function(){return o},frameData:function(){return u},S6:function(){return l}});var i=n(1662);let Queue=class Queue{constructor(){this.order=[],this.scheduled=new Set}add(e){if(!this.scheduled.has(e))return this.scheduled.add(e),this.order.push(e),!0}remove(e){let t=this.order.indexOf(e);-1!==t&&(this.order.splice(t,1),this.scheduled.delete(e))}clear(){this.order.length=0,this.scheduled.clear()}};let s=["prepare","read","update","preRender","render","postRender"],{schedule:o,cancel:a,state:u,steps:l}=function(e,t){let n=!1,i=!0,o={delta:0,timestamp:0,isProcessing:!1},a=s.reduce((e,t)=>(e[t]=function(e){let t=new Queue,n=new Queue,i=0,s=!1,o=!1,a=new WeakSet,u={schedule:(e,o=!1,u=!1)=>{let l=u&&s,c=l?t:n;return o&&a.add(e),c.add(e)&&l&&s&&(i=t.order.length),e},cancel:e=>{n.remove(e),a.delete(e)},process:l=>{if(s){o=!0;return}if(s=!0,[t,n]=[n,t],n.clear(),i=t.order.length)for(let n=0;nn=!0),e),{}),processStep=e=>a[e].process(o),processBatch=()=>{let a=performance.now();n=!1,o.delta=i?1e3/60:Math.max(Math.min(a-o.timestamp,40),1),o.timestamp=a,o.isProcessing=!0,s.forEach(processStep),o.isProcessing=!1,n&&t&&(i=!1,e(processBatch))},wake=()=>{n=!0,i=!0,o.isProcessing||e(processBatch)},u=s.reduce((e,t)=>{let i=a[t];return e[t]=(e,t=!1,s=!1)=>(n||wake(),i.schedule(e,t,s)),e},{});return{schedule:u,cancel:e=>s.forEach(t=>a[t].cancel(e)),state:o,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.Z,!0)},2951:function(e,t,n){"use strict";let i;n.d(t,{E:function(){return tp}});var s,o,a=n(7294);let u=(0,a.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),l=(0,a.createContext)({});var c=n(240),d=n(8868);let h=(0,a.createContext)({strict:!1});function isRefObject(e){return"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function isVariantLabel(e){return"string"==typeof e||Array.isArray(e)}function isAnimationControls(e){return"object"==typeof e&&"function"==typeof e.start}let f=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],p=["initial",...f];function isControllingVariants(e){return isAnimationControls(e.animate)||p.some(t=>isVariantLabel(e[t]))}function isVariantNode(e){return!!(isControllingVariants(e)||e.variants)}function variantLabelsAsDependency(e){return Array.isArray(e)?e.join(" "):e}let m={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},y={};for(let e in m)y[e]={isEnabled:t=>m[e].some(e=>!!t[e])};var v=n(1741),g=n(5364);let b=(0,a.createContext)({}),x=Symbol.for("motionComponentSymbol"),$=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function isSVGComponent(e){if("string"!=typeof e||e.includes("-"));else if($.indexOf(e)>-1||/[A-Z]/.test(e))return!0;return!1}let E={},S=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],T=new Set(S);function isForcedMotionValue(e,{layout:t,layoutId:n}){return T.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!E[e]||"opacity"===e)}let isMotionValue=e=>!!(e&&e.getVelocity),P={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},C=S.length,checkStringStartsWith=e=>t=>"string"==typeof t&&t.startsWith(e),w=checkStringStartsWith("--"),A=checkStringStartsWith("var(--"),getValueAsType=(e,t)=>t&&"number"==typeof e?t.transform(e):e,clamp=(e,t,n)=>Math.min(Math.max(n,e),t),R={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},M={...R,transform:e=>clamp(0,1,e)},O={...R,default:1},sanitize=e=>Math.round(1e5*e)/1e5,D=/(-)?([\d]*\.?[\d])+/g,_=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,F=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString(e){return"string"==typeof e}let createUnitType=e=>({test:t=>isString(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),k=createUnitType("deg"),V=createUnitType("%"),L=createUnitType("px"),I=createUnitType("vh"),j=createUnitType("vw"),N={...V,parse:e=>V.parse(e)/100,transform:e=>V.transform(100*e)},B={...R,transform:Math.round},Q={borderWidth:L,borderTopWidth:L,borderRightWidth:L,borderBottomWidth:L,borderLeftWidth:L,borderRadius:L,radius:L,borderTopLeftRadius:L,borderTopRightRadius:L,borderBottomRightRadius:L,borderBottomLeftRadius:L,width:L,maxWidth:L,height:L,maxHeight:L,size:L,top:L,right:L,bottom:L,left:L,padding:L,paddingTop:L,paddingRight:L,paddingBottom:L,paddingLeft:L,margin:L,marginTop:L,marginRight:L,marginBottom:L,marginLeft:L,rotate:k,rotateX:k,rotateY:k,rotateZ:k,scale:O,scaleX:O,scaleY:O,scaleZ:O,skew:k,skewX:k,skewY:k,distance:L,translateX:L,translateY:L,translateZ:L,x:L,y:L,z:L,perspective:L,transformPerspective:L,opacity:M,originX:N,originY:N,originZ:L,zIndex:B,fillOpacity:M,strokeOpacity:M,numOctaves:B};function buildHTMLStyles(e,t,n,i){let{style:s,vars:o,transform:a,transformOrigin:u}=e,l=!1,c=!1,d=!0;for(let e in t){let n=t[e];if(w(e)){o[e]=n;continue}let i=Q[e],h=getValueAsType(n,i);if(T.has(e)){if(l=!0,a[e]=h,!d)continue;n!==(i.default||0)&&(d=!1)}else e.startsWith("origin")?(c=!0,u[e]=h):s[e]=h}if(!t.transform&&(l||i?s.transform=function(e,{enableHardwareAcceleration:t=!0,allowTransformNone:n=!0},i,s){let o="";for(let t=0;t({style:{},transform:{},transformOrigin:{},vars:{}});function copyRawValuesOnly(e,t,n){for(let i in t)isMotionValue(t[i])||isForcedMotionValue(i,n)||(e[i]=t[i])}function useHTMLProps(e,t,n){let i={},s=function(e,t,n){let i=e.style||{},s={};return copyRawValuesOnly(s,i,e),Object.assign(s,function({transformTemplate:e},t,n){return(0,a.useMemo)(()=>{let i=createHtmlRenderState();return buildHTMLStyles(i,t,{enableHardwareAcceleration:!n},e),Object.assign({},i.vars,i.style)},[t])}(e,t,n)),e.transformValues?e.transformValues(s):s}(e,t,n);return e.drag&&!1!==e.dragListener&&(i.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(i.tabIndex=0),i.style=s,i}let K=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function isValidMotionProp(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||K.has(e)}let shouldForward=e=>!isValidMotionProp(e);try{(s=require("@emotion/is-prop-valid").default)&&(shouldForward=e=>e.startsWith("on")?!isValidMotionProp(e):s(e))}catch(e){}function calcOrigin(e,t,n){return"string"==typeof e?e:L.transform(t+n*e)}let q={offset:"stroke-dashoffset",array:"stroke-dasharray"},U={offset:"strokeDashoffset",array:"strokeDasharray"};function buildSVGAttrs(e,{attrX:t,attrY:n,attrScale:i,originX:s,originY:o,pathLength:a,pathSpacing:u=1,pathOffset:l=0,...c},d,h,f){if(buildHTMLStyles(e,c,d,f),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:m,dimensions:y}=e;p.transform&&(y&&(m.transform=p.transform),delete p.transform),y&&(void 0!==s||void 0!==o||m.transform)&&(m.transformOrigin=function(e,t,n){let i=calcOrigin(t,e.x,e.width),s=calcOrigin(n,e.y,e.height);return`${i} ${s}`}(y,void 0!==s?s:.5,void 0!==o?o:.5)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==i&&(p.scale=i),void 0!==a&&function(e,t,n=1,i=0,s=!0){e.pathLength=1;let o=s?q:U;e[o.offset]=L.transform(-i);let a=L.transform(t),u=L.transform(n);e[o.array]=`${a} ${u}`}(p,a,u,l,!1)}let createSvgRenderState=()=>({...createHtmlRenderState(),attrs:{}}),isSVGTag=e=>"string"==typeof e&&"svg"===e.toLowerCase();function useSVGProps(e,t,n,i){let s=(0,a.useMemo)(()=>{let n=createSvgRenderState();return buildSVGAttrs(n,t,{enableHardwareAcceleration:!1},isSVGTag(i),e.transformTemplate),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};copyRawValuesOnly(t,e.style,e),s.style={...t,...s.style}}return s}let camelToDash=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function renderHTML(e,{style:t,vars:n},i,s){for(let o in Object.assign(e.style,t,s&&s.getProjectionStyles(i)),n)e.style.setProperty(o,n[o])}let H=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function renderSVG(e,t,n,i){for(let n in renderHTML(e,t,void 0,i),t.attrs)e.setAttribute(H.has(n)?n:camelToDash(n),t.attrs[n])}function scrapeMotionValuesFromProps(e,t){let{style:n}=e,i={};for(let s in n)(isMotionValue(n[s])||t.style&&isMotionValue(t.style[s])||isForcedMotionValue(s,e))&&(i[s]=n[s]);return i}function scrape_motion_values_scrapeMotionValuesFromProps(e,t){let n=scrapeMotionValuesFromProps(e,t);for(let i in e)if(isMotionValue(e[i])||isMotionValue(t[i])){let t=-1!==S.indexOf(i)?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;n[t]=e[i]}return n}function resolveVariantFromProps(e,t,n,i={},s={}){return"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,s)),"string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t&&(t=t(void 0!==n?n:e.custom,i,s)),t}var z=n(6681);let isKeyframesTarget=e=>Array.isArray(e),isCustomValue=e=>!!(e&&"object"==typeof e&&e.mix&&e.toValue),resolveFinalValueInKeyframes=e=>isKeyframesTarget(e)?e[e.length-1]||0:e;function resolveMotionValue(e){let t=isMotionValue(e)?e.get():e;return isCustomValue(t)?t.toValue():t}let makeUseVisualState=e=>(t,n)=>{let i=(0,a.useContext)(l),s=(0,a.useContext)(c.O),make=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:n},i,s,o){let a={latestValues:function(e,t,n,i){let s={},o=i(e,{});for(let e in o)s[e]=resolveMotionValue(o[e]);let{initial:a,animate:u}=e,l=isControllingVariants(e),c=isVariantNode(e);t&&c&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===u&&(u=t.animate));let d=!!n&&!1===n.initial;d=d||!1===a;let h=d?u:a;if(h&&"boolean"!=typeof h&&!isAnimationControls(h)){let t=Array.isArray(h)?h:[h];t.forEach(t=>{let n=resolveVariantFromProps(e,t);if(!n)return;let{transitionEnd:i,transition:o,...a}=n;for(let e in a){let t=a[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(s[e]=t)}for(let e in i)s[e]=i[e]})}return s}(i,s,o,e),renderState:t()};return n&&(a.mount=e=>n(i,e,a)),a})(e,t,i,s);return n?make():(0,z.h)(make)};var W=n(2074);let G={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrape_motion_values_scrapeMotionValuesFromProps,createRenderState:createSvgRenderState,onMount:(e,t,{renderState:n,latestValues:i})=>{W.Wi.read(()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}}),W.Wi.render(()=>{buildSVGAttrs(n,i,{enableHardwareAcceleration:!1},isSVGTag(t.tagName),e.transformTemplate),renderSVG(t,n)})}})},J={useVisualState:makeUseVisualState({scrapeMotionValuesFromProps:scrapeMotionValuesFromProps,createRenderState:createHtmlRenderState})};function addDomEvent(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}let isPrimaryPointer=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function extractEventInfo(e,t="page"){return{point:{x:e[t+"X"],y:e[t+"Y"]}}}let addPointerInfo=e=>t=>isPrimaryPointer(t)&&e(t,extractEventInfo(t));function addPointerEvent(e,t,n,i){return addDomEvent(e,t,addPointerInfo(n),i)}let combineFunctions=(e,t)=>n=>t(e(n)),pipe=(...e)=>e.reduce(combineFunctions);function createLock(e){let t=null;return()=>null===t&&(t=e,()=>{t=null})}let Z=createLock("dragHorizontal"),Y=createLock("dragVertical");function getGlobalLock(e){let t=!1;if("y"===e)t=Y();else if("x"===e)t=Z();else{let e=Z(),n=Y();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function isDragActive(){let e=getGlobalLock(!0);return!e||(e(),!1)}let Feature=class Feature{constructor(e){this.isMounted=!1,this.node=e}update(){}};function addHoverEvent(e,t){let n="pointer"+(t?"enter":"leave"),i="onHover"+(t?"Start":"End");return addPointerEvent(e.current,n,(n,s)=>{if("touch"===n.type||isDragActive())return;let o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[i]&&W.Wi.update(()=>o[i](n,s))},{passive:!e.getProps()[i]})}let isNodeOrChild=(e,t)=>!!t&&(e===t||isNodeOrChild(e,t.parentElement));var X=n(1662);function fireSyntheticPointerEvent(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,extractEventInfo(n))}let ee=new WeakMap,et=new WeakMap,fireObserverCallback=e=>{let t=ee.get(e.target);t&&t(e)},fireAllObserverCallbacks=e=>{e.forEach(fireObserverCallback)},er={some:0,all:1};function shallowCompare(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;it[n]=e.get()),t}(e),function(e){let t={};return e.values.forEach((e,n)=>t[n]=e.getVelocity()),t}(e))}let en="data-"+camelToDash("framerAppearId");var ei=n(5487);let secondsToMilliseconds=e=>1e3*e,millisecondsToSeconds=e=>e/1e3,es={current:!1},isBezierDefinition=e=>Array.isArray(e)&&"number"==typeof e[0],cubicBezierAsString=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,eo={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cubicBezierAsString([0,.65,.55,1]),circOut:cubicBezierAsString([.55,0,1,.45]),backIn:cubicBezierAsString([.31,.01,.66,-.59]),backOut:cubicBezierAsString([.33,1.53,.69,.99])},calcBezier=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function cubicBezier(e,t,n,i){if(e===t&&n===i)return X.Z;let getTForX=t=>(function(e,t,n,i,s){let o,a;let u=0;do(o=calcBezier(a=t+(n-t)/2,i,s)-e)>0?n=a:t=a;while(Math.abs(o)>1e-7&&++u<12);return a})(t,0,1,e,n);return e=>0===e||1===e?e:calcBezier(getTForX(e),t,i)}let ea=cubicBezier(.42,0,1,1),eu=cubicBezier(0,0,.58,1),el=cubicBezier(.42,0,.58,1),isEasingArray=e=>Array.isArray(e)&&"number"!=typeof e[0],mirrorEasing=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,reverseEasing=e=>t=>1-e(1-t),circIn=e=>1-Math.sin(Math.acos(e)),ec=reverseEasing(circIn),ed=mirrorEasing(ec),eh=cubicBezier(.33,1.53,.69,.99),ef=reverseEasing(eh),ep=mirrorEasing(ef),em={linear:X.Z,easeIn:ea,easeInOut:el,easeOut:eu,circIn:circIn,circInOut:ed,circOut:ec,backIn:ef,backInOut:ep,backOut:eh,anticipate:e=>(e*=2)<1?.5*ef(e):.5*(2-Math.pow(2,-10*(e-1)))},easingDefinitionToFunction=e=>{if(Array.isArray(e)){(0,ei.k)(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,n,i,s]=e;return cubicBezier(t,n,i,s)}return"string"==typeof e?((0,ei.k)(void 0!==em[e],`Invalid easing type '${e}'`),em[e]):e},isColorString=(e,t)=>n=>!!(isString(n)&&F.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t)),splitColor=(e,t,n)=>i=>{if(!isString(i))return i;let[s,o,a,u]=i.match(D);return{[e]:parseFloat(s),[t]:parseFloat(o),[n]:parseFloat(a),alpha:void 0!==u?parseFloat(u):1}},clampRgbUnit=e=>clamp(0,255,e),ey={...R,transform:e=>Math.round(clampRgbUnit(e))},ev={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+ey.transform(e)+", "+ey.transform(t)+", "+ey.transform(n)+", "+sanitize(M.transform(i))+")"},eg={test:isColorString("#"),parse:function(e){let t="",n="",i="",s="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),s=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),s=e.substring(4,5),t+=t,n+=n,i+=i,s+=s),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:s?parseInt(s,16)/255:1}},transform:ev.transform},eb={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+V.transform(sanitize(t))+", "+V.transform(sanitize(n))+", "+sanitize(M.transform(i))+")"},ex={test:e=>ev.test(e)||eg.test(e)||eb.test(e),parse:e=>ev.test(e)?ev.parse(e):eb.test(e)?eb.parse(e):eg.parse(e),transform:e=>isString(e)?e:e.hasOwnProperty("red")?ev.transform(e):eb.transform(e)},mix=(e,t,n)=>-n*e+n*t+e;function hueToRgb(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}let mixLinearColor=(e,t,n)=>{let i=e*e;return Math.sqrt(Math.max(0,n*(t*t-i)+i))},e$=[eg,ev,eb],getColorType=e=>e$.find(t=>t.test(e));function asRGBA(e){let t=getColorType(e);(0,ei.k)(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`);let n=t.parse(e);return t===eb&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,n/=100;let s=0,o=0,a=0;if(t/=100){let i=n<.5?n*(1+t):n+t-n*t,u=2*n-i;s=hueToRgb(u,i,e+1/3),o=hueToRgb(u,i,e),a=hueToRgb(u,i,e-1/3)}else s=o=a=n;return{red:Math.round(255*s),green:Math.round(255*o),blue:Math.round(255*a),alpha:i}}(n)),n}let mixColor=(e,t)=>{let n=asRGBA(e),i=asRGBA(t),s={...n};return e=>(s.red=mixLinearColor(n.red,i.red,e),s.green=mixLinearColor(n.green,i.green,e),s.blue=mixLinearColor(n.blue,i.blue,e),s.alpha=mix(n.alpha,i.alpha,e),ev.transform(s))},eE={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:X.Z},eS={regex:_,countKey:"Colors",token:"${c}",parse:ex.parse},eT={regex:D,countKey:"Numbers",token:"${n}",parse:R.parse};function tokenise(e,{regex:t,countKey:n,token:i,parse:s}){let o=e.tokenised.match(t);o&&(e["num"+n]=o.length,e.tokenised=e.tokenised.replace(t,i),e.values.push(...o.map(s)))}function analyseComplexValue(e){let t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&tokenise(n,eE),tokenise(n,eS),tokenise(n,eT),n}function parseComplexValue(e){return analyseComplexValue(e).values}function createTransformer(e){let{values:t,numColors:n,numVars:i,tokenised:s}=analyseComplexValue(e),o=t.length;return e=>{let t=s;for(let s=0;s"number"==typeof e?0:e,eP={test:function(e){var t,n;return isNaN(e)&&isString(e)&&((null===(t=e.match(D))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(_))||void 0===n?void 0:n.length)||0)>0},parse:parseComplexValue,createTransformer,getAnimatableNone:function(e){let t=parseComplexValue(e),n=createTransformer(e);return n(t.map(convertNumbersToZero))}},mixImmediate=(e,t)=>n=>`${n>0?t:e}`;function getMixer(e,t){return"number"==typeof e?n=>mix(e,t,n):ex.test(e)?mixColor(e,t):e.startsWith("var(")?mixImmediate(e,t):mixComplex(e,t)}let mixArray=(e,t)=>{let n=[...e],i=n.length,s=e.map((e,n)=>getMixer(e,t[n]));return e=>{for(let t=0;t{let n={...e,...t},i={};for(let s in n)void 0!==e[s]&&void 0!==t[s]&&(i[s]=getMixer(e[s],t[s]));return e=>{for(let t in i)n[t]=i[t](e);return n}},mixComplex=(e,t)=>{let n=eP.createTransformer(t),i=analyseComplexValue(e),s=analyseComplexValue(t),o=i.numVars===s.numVars&&i.numColors===s.numColors&&i.numNumbers>=s.numNumbers;return o?pipe(mixArray(i.values,s.values),n):((0,ei.K)(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),mixImmediate(e,t))},progress=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i},mixNumber=(e,t)=>n=>mix(e,t,n);function interpolate(e,t,{clamp:n=!0,ease:i,mixer:s}={}){let o=e.length;if((0,ei.k)(o===t.length,"Both input and output ranges must be the same length"),1===o)return()=>t[0];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=function(e,t,n){let i=[],s=n||function(e){if("number"==typeof e);else if("string"==typeof e)return ex.test(e)?mixColor:mixComplex;else if(Array.isArray(e))return mixArray;else if("object"==typeof e)return mixObject;return mixNumber}(e[0]),o=e.length-1;for(let n=0;n{let n=0;if(u>1)for(;ninterpolator(clamp(e[0],e[o-1],t)):interpolator}function keyframes({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let s=isEasingArray(i)?i.map(easingDefinitionToFunction):easingDefinitionToFunction(i),o={done:!1,value:t[0]},a=(n&&n.length===t.length?n:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let s=progress(0,t,i);e.push(mix(n,1,s))}}(t,e.length-1),t}(t)).map(t=>t*e),u=interpolate(a,t,{ease:Array.isArray(s)?s:t.map(()=>s||el).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=u(t),o.done=t>=e,o)}}function calcGeneratorVelocity(e,t,n){var i,s;let o=Math.max(t-5,0);return i=n-e(o),(s=t-o)?i*(1e3/s):0}function calcAngularFreq(e,t){return e*Math.sqrt(1-t*t)}let eC=["duration","bounce"],ew=["stiffness","damping","mass"];function isSpringType(e,t){return t.some(t=>void 0!==e[t])}function spring({keyframes:e,restDelta:t,restSpeed:n,...i}){let s;let o=e[0],a=e[e.length-1],u={done:!1,value:o},{stiffness:l,damping:c,mass:d,velocity:h,duration:f,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!isSpringType(e,ew)&&isSpringType(e,eC)){let n=function({duration:e=800,bounce:t=.25,velocity:n=0,mass:i=1}){let s,o;(0,ei.K)(e<=secondsToMilliseconds(10),"Spring duration must be 10 seconds or less");let a=1-t;a=clamp(.05,1,a),e=clamp(.01,10,millisecondsToSeconds(e)),a<1?(s=t=>{let i=t*a,s=i*e,o=calcAngularFreq(t,a);return .001-(i-n)/o*Math.exp(-s)},o=t=>{let i=t*a,o=i*e,u=Math.pow(a,2)*Math.pow(t,2)*e,l=calcAngularFreq(Math.pow(t,2),a),c=-s(t)+.001>0?-1:1;return c*((o*n+n-u)*Math.exp(-o))/l}):(s=t=>{let i=Math.exp(-t*e),s=(t-n)*e+1;return -.001+i*s},o=t=>{let i=Math.exp(-t*e),s=(n-t)*(e*e);return i*s});let u=5/e,l=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(s,o,u);if(e=secondsToMilliseconds(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let t=Math.pow(l,2)*i;return{stiffness:t,damping:2*a*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return t}(i),m=h?-millisecondsToSeconds(h):0,y=c/(2*Math.sqrt(l*d)),v=a-o,g=millisecondsToSeconds(Math.sqrt(l/d)),b=5>Math.abs(v);if(n||(n=b?.01:2),t||(t=b?.005:.5),y<1){let e=calcAngularFreq(g,y);s=t=>{let n=Math.exp(-y*g*t);return a-n*((m+y*g*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}}else if(1===y)s=e=>a-Math.exp(-g*e)*(v+(m+g*v)*e);else{let e=g*Math.sqrt(y*y-1);s=t=>{let n=Math.exp(-y*g*t),i=Math.min(e*t,300);return a-n*((m+y*g*v)*Math.sinh(i)+e*v*Math.cosh(i))/e}}return{calculatedDuration:p&&f||null,next:e=>{let i=s(e);if(p)u.done=e>=f;else{let o=m;0!==e&&(o=y<1?calcGeneratorVelocity(s,e,i):0);let l=Math.abs(o)<=n,c=Math.abs(a-i)<=t;u.done=l&&c}return u.value=u.done?a:i,u}}}function inertia({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:s=10,bounceStiffness:o=500,modifyTarget:a,min:u,max:l,restDelta:c=.5,restSpeed:d}){let h,f;let p=e[0],m={done:!1,value:p},isOutOfBounds=e=>void 0!==u&&el,nearestBoundary=e=>void 0===u?l:void 0===l?u:Math.abs(u-e)-y*Math.exp(-e/i),calcLatest=e=>g+calcDelta(e),applyFriction=e=>{let t=calcDelta(e),n=calcLatest(e);m.done=Math.abs(t)<=c,m.value=m.done?g:n},checkCatchBoundary=e=>{isOutOfBounds(m.value)&&(h=e,f=spring({keyframes:[m.value,nearestBoundary(m.value)],velocity:calcGeneratorVelocity(calcLatest,e,m.value),damping:s,stiffness:o,restDelta:c,restSpeed:d}))};return checkCatchBoundary(0),{calculatedDuration:null,next:e=>{let t=!1;return(f||void 0!==h||(t=!0,applyFriction(e),checkCatchBoundary(e)),void 0!==h&&e>h)?f.next(e-h):(t||applyFriction(e),m)}}}let frameloopDriver=e=>{let passTimestamp=({timestamp:t})=>e(t);return{start:()=>W.Wi.update(passTimestamp,!0),stop:()=>(0,W.Pn)(passTimestamp),now:()=>W.frameData.isProcessing?W.frameData.timestamp:performance.now()}};function calcGeneratorDuration(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}let eA={decay:inertia,inertia:inertia,tween:keyframes,keyframes:keyframes,spring:spring};function animateValue({autoplay:e=!0,delay:t=0,driver:n=frameloopDriver,keyframes:i,type:s="keyframes",repeat:o=0,repeatDelay:a=0,repeatType:u="loop",onPlay:l,onStop:c,onComplete:d,onUpdate:h,...f}){let p,m,y,v,g,b=1,x=!1,updateFinishedPromise=()=>{m=new Promise(e=>{p=e})};updateFinishedPromise();let $=eA[s]||keyframes;$!==keyframes&&"number"!=typeof i[0]&&(v=interpolate([0,100],i,{clamp:!1}),i=[0,100]);let E=$({...f,keyframes:i});"mirror"===u&&(g=$({...f,keyframes:[...i].reverse(),velocity:-(f.velocity||0)}));let S="idle",T=null,P=null,C=null;null===E.calculatedDuration&&o&&(E.calculatedDuration=calcGeneratorDuration(E));let{calculatedDuration:w}=E,A=1/0,R=1/0;null!==w&&(R=(A=w+a)*(o+1)-a);let M=0,tick=e=>{if(null===P)return;b>0&&(P=Math.min(P,e)),b<0&&(P=Math.min(e-R/b,P)),M=null!==T?T:Math.round(e-P)*b;let n=M-t*(b>=0?1:-1),s=b>=0?n<0:n>R;M=Math.max(n,0),"finished"===S&&null===T&&(M=R);let l=M,c=E;if(o){let e=M/A,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,o+1);let i=!!(t%2);i&&("reverse"===u?(n=1-n,a&&(n-=a/A)):"mirror"===u&&(c=g));let s=clamp(0,1,n);M>R&&(s="reverse"===u&&i?1:0),l=s*A}let d=s?{done:!1,value:i[0]}:c.next(l);v&&(d.value=v(d.value));let{done:f}=d;s||null===w||(f=b>=0?M>=R:M<=0);let p=null===T&&("finished"===S||"running"===S&&f);return h&&h(d.value),p&&finish(),d},stopAnimationDriver=()=>{y&&y.stop(),y=void 0},cancel=()=>{S="idle",stopAnimationDriver(),p(),updateFinishedPromise(),P=C=null},finish=()=>{S="finished",d&&d(),stopAnimationDriver(),p()},play=()=>{if(x)return;y||(y=n(tick));let e=y.now();l&&l(),null!==T?P=e-T:P&&"finished"!==S||(P=e),"finished"===S&&updateFinishedPromise(),C=P,T=null,S="running",y.start()};e&&play();let O={then:(e,t)=>m.then(e,t),get time(){return millisecondsToSeconds(M)},set time(newTime){M=newTime=secondsToMilliseconds(newTime),null===T&&y&&0!==b?P=y.now()-newTime/b:T=newTime},get duration(){let e=null===E.calculatedDuration?calcGeneratorDuration(E):E.calculatedDuration;return millisecondsToSeconds(e)},get speed(){return b},set speed(newSpeed){if(newSpeed===b||!y)return;b=newSpeed,O.time=millisecondsToSeconds(M)},get state(){return S},play,pause:()=>{S="paused",T=M},stop:()=>{x=!0,"idle"!==S&&(S="idle",c&&c(),cancel())},cancel:()=>{null!==C&&tick(C),cancel()},complete:()=>{S="finished"},sample:e=>(P=0,tick(e))};return O}let eR=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===i&&(i=o()),i)),eM=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),requiresPregeneratedKeyframes=(e,t)=>"spring"===t.type||"backgroundColor"===e||!function isWaapiSupportedEasing(e){return!!(!e||"string"==typeof e&&eo[e]||isBezierDefinition(e)||Array.isArray(e)&&e.every(isWaapiSupportedEasing))}(t.ease),eO={type:"spring",stiffness:500,damping:25,restSpeed:10},criticallyDampedSpring=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),eD={type:"keyframes",duration:.8},e_={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},getDefaultTransition=(e,{keyframes:t})=>t.length>2?eD:T.has(e)?e.startsWith("scale")?criticallyDampedSpring(t[1]):eO:e_,isAnimatable=(e,t)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(eP.test(t)||"0"===t)&&!t.startsWith("url(")),eF=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(D)||[];if(!i)return e;let s=n.replace(i,""),o=eF.has(t)?1:0;return i!==n&&(o*=100),t+"("+o+s+")"}let ek=/([a-z-]*)\(.*?\)/g,eV={...eP,getAnimatableNone:e=>{let t=e.match(ek);return t?t.map(applyDefaultFilter).join(" "):e}},eL={...Q,color:ex,backgroundColor:ex,outlineColor:ex,fill:ex,stroke:ex,borderColor:ex,borderTopColor:ex,borderRightColor:ex,borderBottomColor:ex,borderLeftColor:ex,filter:eV,WebkitFilter:eV},getDefaultValueType=e=>eL[e];function animatable_none_getAnimatableNone(e,t){let n=getDefaultValueType(e);return n!==eV&&(n=eP),n.getAnimatableNone?n.getAnimatableNone(t):void 0}let isZeroValueString=e=>/^0[^.\s]+$/.test(e);function getValueTransition(e,t){return e[t]||e.default||e}let animateMotionValue=(e,t,n,i={})=>s=>{let o=getValueTransition(i,e)||{},a=o.delay||i.delay||0,{elapsed:u=0}=i;u-=secondsToMilliseconds(a);let l=function(e,t,n,i){let s,o;let a=isAnimatable(t,n);s=Array.isArray(n)?[...n]:[null,n];let u=void 0!==i.from?i.from:e.get(),l=[];for(let e=0;e{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{s(),o.onComplete&&o.onComplete()}};if(!function({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:s,repeat:o,repeatType:a,repeatDelay:u,from:l,elapsed:c,...d}){return!!Object.keys(d).length}(o)&&(p={...p,...getDefaultTransition(e,p)}),p.duration&&(p.duration=secondsToMilliseconds(p.duration)),p.repeatDelay&&(p.repeatDelay=secondsToMilliseconds(p.repeatDelay)),!h||!f||es.current||!1===o.type)return function({keyframes:e,delay:t,onUpdate:n,onComplete:i}){let setValue=()=>(n&&n(e[e.length-1]),i&&i(),{time:0,speed:1,duration:0,play:X.Z,pause:X.Z,stop:X.Z,then:e=>(e(),Promise.resolve()),cancel:X.Z,complete:X.Z});return t?animateValue({keyframes:[0,1],duration:0,delay:t,onComplete:setValue}):setValue()}(es.current?{...p,delay:0}:p);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){let n=function(e,t,{onUpdate:n,onComplete:i,...s}){let o,a;let u=eR()&&eM.has(t)&&!s.repeatDelay&&"mirror"!==s.repeatType&&0!==s.damping&&"inertia"!==s.type;if(!u)return!1;let l=!1,updateFinishedPromise=()=>{a=new Promise(e=>{o=e})};updateFinishedPromise();let{keyframes:c,duration:d=300,ease:h,times:f}=s;if(requiresPregeneratedKeyframes(t,s)){let e=animateValue({...s,repeat:0,delay:0}),t={done:!1,value:c[0]},n=[],i=0;for(;!t.done&&i<2e4;)t=e.sample(i),n.push(t.value),i+=10;f=void 0,c=n,d=i-10,h="linear"}let p=function(e,t,n,{delay:i=0,duration:s,repeat:o=0,repeatType:a="loop",ease:u,times:l}={}){let c={[t]:n};l&&(c.offset=l);let d=function mapEasingToNativeEasing(e){if(e)return isBezierDefinition(e)?cubicBezierAsString(e):Array.isArray(e)?e.map(mapEasingToNativeEasing):eo[e]}(u);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:i,duration:s,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:o+1,direction:"reverse"===a?"alternate":"normal"})}(e.owner.current,t,c,{...s,duration:d,ease:h,times:f});s.syncStart&&(p.startTime=W.frameData.isProcessing?W.frameData.timestamp:document.timeline?document.timeline.currentTime:performance.now());let cancelAnimation=()=>p.cancel(),safeCancel=()=>{W.Wi.update(cancelAnimation),o(),updateFinishedPromise()};return p.onfinish=()=>{e.set(function(e,{repeat:t,repeatType:n="loop"}){let i=t&&"loop"!==n&&t%2==1?0:e.length-1;return e[i]}(c,s)),i&&i(),safeCancel()},{then:(e,t)=>a.then(e,t),attachTimeline:e=>(p.timeline=e,p.onfinish=null,X.Z),get time(){return millisecondsToSeconds(p.currentTime||0)},set time(newTime){p.currentTime=secondsToMilliseconds(newTime)},get speed(){return p.playbackRate},set speed(newSpeed){p.playbackRate=newSpeed},get duration(){return millisecondsToSeconds(d)},play:()=>{l||(p.play(),(0,W.Pn)(cancelAnimation))},pause:()=>p.pause(),stop:()=>{if(l=!0,"idle"===p.playState)return;let{currentTime:t}=p;if(t){let n=animateValue({...s,autoplay:!1});e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}safeCancel()},complete:()=>p.finish(),cancel:safeCancel}}(t,e,p);if(n)return n}return animateValue(p)};function isWillChangeMotionValue(e){return!!(isMotionValue(e)&&e.add)}let isNumericalString=e=>/^\-?\d*\.?\d+$/.test(e);function addUniqueItem(e,t){-1===e.indexOf(t)&&e.push(t)}function removeItem(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}let SubscriptionManager=class SubscriptionManager{constructor(){this.subscriptions=[]}add(e){return addUniqueItem(this.subscriptions,e),()=>removeItem(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](e,t,n);else for(let s=0;s!isNaN(parseFloat(e)),eI={current:void 0};let MotionValue=class MotionValue{constructor(e,t={}){this.version="10.16.9",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(e,t=!0)=>{this.prev=this.current,this.current=e;let{delta:n,timestamp:i}=W.frameData;this.lastUpdated!==i&&(this.timeDelta=n,this.lastUpdated=i,W.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>W.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:e})=>{e!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=e,this.canTrackVelocity=isFloat(this.current),this.owner=t.owner}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new SubscriptionManager);let n=this.events[e].add(t);return"change"===e?()=>{n(),W.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}jump(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return eI.current&&eI.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e,t;return this.canTrackVelocity?(e=parseFloat(this.current)-parseFloat(this.prev),(t=this.timeDelta)?e*(1e3/t):0):0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function motionValue(e,t){return new MotionValue(e,t)}let testValueType=e=>t=>t.test(e),ej=[R,L,V,k,j,I,{test:e=>"auto"===e,parse:e=>e}],findDimensionValueType=e=>ej.find(testValueType(e)),eN=[...ej,ex,eP],findValueType=e=>eN.find(testValueType(e));function animateTarget(e,t,{delay:n=0,transitionOverride:i,type:s}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:a,...u}=e.makeTargetAnimatable(t),l=e.getValue("willChange");i&&(o=i);let c=[],d=s&&e.animationState&&e.animationState.getState()[s];for(let t in u){let i=e.getValue(t),s=u[t];if(!i||void 0===s||d&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(d,t))continue;let a={delay:n,elapsed:0,...getValueTransition(o||{},t)},h=!0;if(window.HandoffAppearAnimations&&!i.hasAnimated){let n=e.getProps()[en];n&&(h=!1,a.elapsed=window.HandoffAppearAnimations(n,t,i,W.Wi),a.syncStart=!0)}let f=h&&s===i.get();if("spring"===a.type&&(i.getVelocity()||a.velocity)&&(f=!1),f||h&&s===i.get()&&("spring"!==a.type||!i.getVelocity()&&!a.velocity))continue;i.start(animateMotionValue(t,i,s,e.shouldReduceMotion&&T.has(t)?{type:!1}:a));let p=i.animation;isWillChangeMotionValue(l)&&(l.add(t),p.then(()=>l.remove(t))),c.push(p)}return a&&Promise.all(c).then(()=>{a&&function(e,t){let n=resolveVariant(e,t),{transitionEnd:i={},transition:s={},...o}=n?e.makeTargetAnimatable(n,!1):{};for(let t in o={...o,...i}){let n=resolveFinalValueInKeyframes(o[t]);e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,motionValue(n))}}(e,a)}),c}function animateVariant(e,t,n={}){let i=resolveVariant(e,t,n.custom),{transition:s=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(s=n.transitionOverride);let o=i?()=>Promise.all(animateTarget(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:o=0,staggerChildren:a,staggerDirection:u}=s;return function(e,t,n=0,i=0,s=1,o){let a=[],u=(e.variantChildren.size-1)*i,l=1===s?(e=0)=>e*i:(e=0)=>u-e*i;return Array.from(e.variantChildren).sort(sortByTreeOrder).forEach((e,i)=>{e.notify("AnimationStart",t),a.push(animateVariant(e,t,{...o,delay:n+l(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,o+i,a,u,n)}:()=>Promise.resolve(),{when:u}=s;if(!u)return Promise.all([o(),a(n.delay)]);{let[e,t]="beforeChildren"===u?[o,a]:[a,o];return e().then(()=>t())}}function sortByTreeOrder(e,t){return e.sortNodePosition(t)}let eB=[...f].reverse(),eQ=f.length;function createTypeState(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}let eK=0,distance=(e,t)=>Math.abs(e-t);let PanSession=class PanSession{constructor(e,t,{transformPagePoint:n,contextWindow:i}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=getPanInfo(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){let n=distance(e.x,t.x),i=distance(e.y,t.y);return Math.sqrt(n**2+i**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;let{point:i}=e,{timestamp:s}=W.frameData;this.history.push({...i,timestamp:s});let{onStart:o,onMove:a}=this.handlers;t||(o&&o(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=transformPoint(t,this.transformPagePoint),W.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:n,onSessionEnd:i}=this.handlers,s=getPanInfo("pointercancel"===e.type?this.lastMoveEventInfo:transformPoint(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,s),i&&i(e,s)},!isPrimaryPointer(e))return;this.handlers=t,this.transformPagePoint=n,this.contextWindow=i||window;let s=extractEventInfo(e),o=transformPoint(s,this.transformPagePoint),{point:a}=o,{timestamp:u}=W.frameData;this.history=[{...a,timestamp:u}];let{onSessionStart:l}=t;l&&l(e,getPanInfo(o,this.history)),this.removeListeners=pipe(addPointerEvent(this.contextWindow,"pointermove",this.handlePointerMove),addPointerEvent(this.contextWindow,"pointerup",this.handlePointerUp),addPointerEvent(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),(0,W.Pn)(this.updatePoint)}};function transformPoint(e,t){return t?{point:t(e.point)}:e}function subtractPoint(e,t){return{x:e.x-t.x,y:e.y-t.y}}function getPanInfo({point:e},t){return{point:e,delta:subtractPoint(e,lastDevicePoint(t)),offset:subtractPoint(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,s=lastDevicePoint(e);for(;n>=0&&(i=e[n],!(s.timestamp-i.timestamp>secondsToMilliseconds(.1)));)n--;if(!i)return{x:0,y:0};let o=millisecondsToSeconds(s.timestamp-i.timestamp);if(0===o)return{x:0,y:0};let a={x:(s.x-i.x)/o,y:(s.y-i.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,0)}}function lastDevicePoint(e){return e[e.length-1]}function calcLength(e){return e.max-e.min}function isNear(e,t=0,n=.01){return Math.abs(e-t)<=n}function calcAxisDelta(e,t,n,i=.5){e.origin=i,e.originPoint=mix(t.min,t.max,e.origin),e.scale=calcLength(n)/calcLength(t),(isNear(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=mix(n.min,n.max,e.origin)-e.originPoint,(isNear(e.translate)||isNaN(e.translate))&&(e.translate=0)}function calcBoxDelta(e,t,n,i){calcAxisDelta(e.x,t.x,n.x,i?i.originX:void 0),calcAxisDelta(e.y,t.y,n.y,i?i.originY:void 0)}function calcRelativeAxis(e,t,n){e.min=n.min+t.min,e.max=e.min+calcLength(t)}function calcRelativeAxisPosition(e,t,n){e.min=t.min-n.min,e.max=e.min+calcLength(t)}function calcRelativePosition(e,t,n){calcRelativeAxisPosition(e.x,t.x,n.x),calcRelativeAxisPosition(e.y,t.y,n.y)}function calcRelativeAxisConstraints(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function calcViewportAxisConstraints(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min({translate:0,scale:1,origin:0,originPoint:0}),createDelta=()=>({x:createAxisDelta(),y:createAxisDelta()}),createAxis=()=>({min:0,max:0}),createBox=()=>({x:createAxis(),y:createAxis()});function eachAxis(e){return[e("x"),e("y")]}function convertBoundingBoxToBox({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function isIdentityScale(e){return void 0===e||1===e}function hasScale({scale:e,scaleX:t,scaleY:n}){return!isIdentityScale(e)||!isIdentityScale(t)||!isIdentityScale(n)}function hasTransform(e){return hasScale(e)||has2DTranslate(e)||e.z||e.rotate||e.rotateX||e.rotateY}function has2DTranslate(e){var t,n;return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function applyPointDelta(e,t,n,i,s){return void 0!==s&&(e=i+s*(e-i)),i+n*(e-i)+t}function applyAxisDelta(e,t=0,n=1,i,s){e.min=applyPointDelta(e.min,t,n,i,s),e.max=applyPointDelta(e.max,t,n,i,s)}function applyBoxDelta(e,{x:t,y:n}){applyAxisDelta(e.x,t.translate,t.scale,t.originPoint),applyAxisDelta(e.y,n.translate,n.scale,n.originPoint)}function snapToDefault(e){return Number.isInteger(e)?e:e>1.0000000000001||e<.999999999999?e:1}function translateAxis(e,t){e.min=e.min+t,e.max=e.max+t}function transformAxis(e,t,[n,i,s]){let o=void 0!==t[s]?t[s]:.5,a=mix(e.min,e.max,o);applyAxisDelta(e,t[n],t[i],a,t.scale)}let eq=["x","scaleX","originX"],eU=["y","scaleY","originY"];function transformBox(e,t){transformAxis(e.x,t,eq),transformAxis(e.y,t,eU)}function measureViewportBox(e,t){return convertBoundingBoxToBox(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}let getContextWindow=({current:e})=>e?e.ownerDocument.defaultView:null,eH=new WeakMap;let VisualElementDragControls=class VisualElementDragControls{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=createBox(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;n&&!1===n.isPresent||(this.panSession=new PanSession(e,{onSessionStart:e=>{this.stopAnimation(),t&&this.snapToCursor(extractEventInfo(e,"page").point)},onStart:(e,t)=>{let{drag:n,dragPropagation:i,onDragStart:s}=this.getProps();if(n&&!i&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=getGlobalLock(n),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),eachAxis(e=>{let t=this.getAxisMotionValue(e).get()||0;if(V.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];if(i){let e=calcLength(i);t=e*(parseFloat(t)/100)}}}this.originPoint[e]=t}),s&&W.Wi.update(()=>s(e,t),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>{let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:s,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:a}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(a),null!==this.currentDirection&&s&&s(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),o&&o(e,t)},onSessionEnd:(e,t)=>this.stop(e,t)},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:getContextWindow(this.visualElement)}))}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:i}=t;this.startAnimation(i);let{onDragEnd:s}=this.getProps();s&&W.Wi.update(()=>s(e,t))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!shouldDrag(e,i,this.currentDirection))return;let s=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},i){return void 0!==t&&en&&(e=i?mix(n,e,i.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),s.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,s=this.constraints;t&&isRefObject(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(e,{top:t,left:n,bottom:i,right:s}){return{x:calcRelativeAxisConstraints(e.x,n,s),y:calcRelativeAxisConstraints(e.y,t,i)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:resolveAxisElastic(e,"left","right"),y:resolveAxisElastic(e,"top","bottom")}}(n),s!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&eachAxis(e=>{this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!isRefObject(t))return!1;let i=t.current;(0,ei.k)(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:s}=this.visualElement;if(!s||!s.layout)return!1;let o=function(e,t,n){let i=measureViewportBox(e,n),{scroll:s}=t;return s&&(translateAxis(i.x,s.offset.x),translateAxis(i.y,s.offset.y)),i}(i,s.root,this.visualElement.getTransformPagePoint()),a={x:calcViewportAxisConstraints((e=s.layout.layoutBox).x,o.x),y:calcViewportAxisConstraints(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=convertBoundingBoxToBox(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:s,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),u=this.constraints||{},l=eachAxis(a=>{if(!shouldDrag(a,t,this.currentDirection))return;let l=u&&u[a]||{};o&&(l={min:0,max:0});let c={type:"inertia",velocity:n?e[a]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...s,...l};return this.startAxisValueAnimation(a,c)});return Promise.all(l).then(a)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return n.start(animateMotionValue(e,n,0,t))}stopAnimation(){eachAxis(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),i=n[t];return i||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){eachAxis(t=>{let{drag:n}=this.getProps();if(!shouldDrag(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,s=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[t];s.set(e[t]-mix(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!isRefObject(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};eachAxis(e=>{let t=this.getAxisMotionValue(e);if(t){let n=t.get();i[e]=function(e,t){let n=.5,i=calcLength(e),s=calcLength(t);return s>i?n=progress(t.min,t.max-i,e.min):i>s&&(n=progress(e.min,e.max-s,t.min)),clamp(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),eachAxis(t=>{if(!shouldDrag(t,e,null))return;let n=this.getAxisMotionValue(t),{min:s,max:o}=this.constraints[t];n.set(mix(s,o,i[t]))})}addListeners(){if(!this.visualElement.current)return;eH.set(this.visualElement,this);let e=this.visualElement.current,t=addPointerEvent(e,"pointerdown",e=>{let{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)}),measureDragConstraints=()=>{let{dragConstraints:e}=this.getProps();isRefObject(e)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,i=n.addEventListener("measure",measureDragConstraints);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),measureDragConstraints();let s=addDomEvent(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(eachAxis(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{s(),t(),i(),o&&o()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:s=!1,dragElastic:o=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:s,dragElastic:o,dragMomentum:a}}};function shouldDrag(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}let asyncHandler=e=>(t,n)=>{e&&W.Wi.update(()=>e(t,n))},ez={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function pixelsToPercent(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let eW={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!L.test(e))return e;e=parseFloat(e)}let n=pixelsToPercent(e,t.target.x),i=pixelsToPercent(e,t.target.y);return`${n}% ${i}%`}};let MeasureLayoutWithContext=class MeasureLayoutWithContext extends a.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:s}=e;Object.assign(E,eG),s&&(t.group&&t.group.add(s),n&&n.register&&i&&n.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),ez.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:s}=this.props,o=n.projection;return o&&(o.isPresent=s,i||e.layoutDependency!==t||void 0===t?o.willUpdate():this.safeToRemove(),e.isPresent===s||(s?o.promote():o.relegate()||W.Wi.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),queueMicrotask(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function MeasureLayout(e){let[t,n]=function(){let e=(0,a.useContext)(c.O);if(null===e)return[!0,null];let{isPresent:t,onExitComplete:n,register:i}=e,s=(0,a.useId)();return(0,a.useEffect)(()=>i(s),[]),!t&&n?[!1,()=>n&&n(s)]:[!0]}(),i=(0,a.useContext)(g.p);return a.createElement(MeasureLayoutWithContext,{...e,layoutGroup:i,switchLayoutGroup:(0,a.useContext)(b),isPresent:t,safeToRemove:n})}let eG={borderRadius:{...eW,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eW,borderTopRightRadius:eW,borderBottomLeftRadius:eW,borderBottomRightRadius:eW,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let i=eP.parse(e);if(i.length>5)return e;let s=eP.createTransformer(e),o="number"!=typeof i[0]?1:0,a=n.x.scale*t.x,u=n.y.scale*t.y;i[0+o]/=a,i[1+o]/=u;let l=mix(a,u,.5);return"number"==typeof i[2+o]&&(i[2+o]/=l),"number"==typeof i[3+o]&&(i[3+o]/=l),s(i)}}},eJ=["TopLeft","TopRight","BottomLeft","BottomRight"],eZ=eJ.length,asNumber=e=>"string"==typeof e?parseFloat(e):e,isPx=e=>"number"==typeof e||L.test(e);function getRadius(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let eY=compress(0,.5,ec),eX=compress(.5,.95,X.Z);function compress(e,t,n){return i=>it?1:n(progress(e,t,i))}function copyAxisInto(e,t){e.min=t.min,e.max=t.max}function copyBoxInto(e,t){copyAxisInto(e.x,t.x),copyAxisInto(e.y,t.y)}function removePointDelta(e,t,n,i,s){return e-=t,e=i+1/n*(e-i),void 0!==s&&(e=i+1/s*(e-i)),e}function removeAxisTransforms(e,t,[n,i,s],o,a){!function(e,t=0,n=1,i=.5,s,o=e,a=e){if(V.test(t)){t=parseFloat(t);let e=mix(a.min,a.max,t/100);t=e-a.min}if("number"!=typeof t)return;let u=mix(o.min,o.max,i);e===o&&(u-=t),e.min=removePointDelta(e.min,t,n,u,s),e.max=removePointDelta(e.max,t,n,u,s)}(e,t[n],t[i],t[s],t.scale,o,a)}let e0=["x","scaleX","originX"],e1=["y","scaleY","originY"];function removeBoxTransforms(e,t,n,i){removeAxisTransforms(e.x,t,e0,n?n.x:void 0,i?i.x:void 0),removeAxisTransforms(e.y,t,e1,n?n.y:void 0,i?i.y:void 0)}function isAxisDeltaZero(e){return 0===e.translate&&1===e.scale}function isDeltaZero(e){return isAxisDeltaZero(e.x)&&isAxisDeltaZero(e.y)}function boxEqualsRounded(e,t){return Math.round(e.x.min)===Math.round(t.x.min)&&Math.round(e.x.max)===Math.round(t.x.max)&&Math.round(e.y.min)===Math.round(t.y.min)&&Math.round(e.y.max)===Math.round(t.y.max)}function aspectRatio(e){return calcLength(e.x)/calcLength(e.y)}let NodeStack=class NodeStack{constructor(){this.members=[]}add(e){addUniqueItem(this.members,e),e.scheduleRender()}remove(e){if(removeItem(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};function buildProjectionTransform(e,t,n){let i="",s=e.x.translate/t.x,o=e.y.translate/t.y;if((s||o)&&(i=`translate3d(${s}px, ${o}px, 0) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{rotate:e,rotateX:t,rotateY:s}=n;e&&(i+=`rotate(${e}deg) `),t&&(i+=`rotateX(${t}deg) `),s&&(i+=`rotateY(${s}deg) `)}let a=e.x.scale*t.x,u=e.y.scale*t.y;return(1!==a||1!==u)&&(i+=`scale(${a}, ${u})`),i||"none"}let compareByDepth=(e,t)=>e.depth-t.depth;let FlatTree=class FlatTree{constructor(){this.children=[],this.isDirty=!1}add(e){addUniqueItem(this.children,e),this.isDirty=!0}remove(e){removeItem(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(compareByDepth),this.isDirty=!1,this.children.forEach(e)}};let e7=["","X","Y","Z"],e3={visibility:"hidden"},e6=0,e8={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function createProjectionNode({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:s}){return class{constructor(e={},n=null==t?void 0:t()){this.id=e6++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,e8.totalNodes=e8.resolvedTargetDeltas=e8.recalculatedProjection=0,this.nodes.forEach(propagateDirtyNodes),this.nodes.forEach(resolveTargetDelta),this.nodes.forEach(calcProjection),this.nodes.forEach(cleanDirtyNodes),window.MotionDebug&&window.MotionDebug.record(e8)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;ethis.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=performance.now(),checkElapsed=({timestamp:i})=>{let s=i-n;s>=t&&((0,W.Pn)(checkElapsed),e(s-t))};return W.Wi.read(checkElapsed,!0),()=>(0,W.Pn)(checkElapsed)}(resizeUnblockUpdate,250),ez.hasAnimatedSinceResize&&(ez.hasAnimatedSinceResize=!1,this.nodes.forEach(finishAnimation))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&o&&(i||s)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||o.getDefaultTransition()||e2,{onLayoutAnimationStart:a,onLayoutAnimationComplete:u}=o.getProps(),l=!this.targetLayout||!boxEqualsRounded(this.targetLayout,i)||n,c=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||c||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);let t={...getValueTransition(s,"layout"),onPlay:a,onComplete:u};(o.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||finishAnimation(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,W.Pn)(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(resetRotation),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;ethis.update()))}clearAllSnapshots(){this.nodes.forEach(clearSnapshot),this.sharedNodes.forEach(removeLeadSnapshots)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,W.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){W.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e{let i=t/1e3;if(mixAxisDelta(a.x,e.x,i),mixAxisDelta(a.y,e.y,i),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var l,c,h,m;calcRelativePosition(u,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,m=this.relativeTargetOrigin,mixAxis(h.x,m.x,u.x,i),mixAxis(h.y,m.y,u.y,i),n&&(l=this.relativeTarget,c=n,l.x.min===c.x.min&&l.x.max===c.x.max&&l.y.min===c.y.min&&l.y.max===c.y.max)&&(this.isProjectionDirty=!1),n||(n=createBox()),copyBoxInto(n,this.relativeTarget)}d&&(this.animationValues=o,function(e,t,n,i,s,o){s?(e.opacity=mix(0,void 0!==n.opacity?n.opacity:1,eY(i)),e.opacityExit=mix(void 0!==t.opacity?t.opacity:1,0,eX(i))):o&&(e.opacity=mix(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,i));for(let s=0;s{ez.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){let i=isMotionValue(e)?e:motionValue(e);return i.start(animateMotionValue("",i,1e3,n)),i.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:s}=e;if(t&&n&&i){if(this!==e&&this.layout&&i&&shouldAnimatePositionOnly(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||createBox();let t=calcLength(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=calcLength(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}copyBoxInto(t,n),transformBox(t,s),calcBoxDelta(this.projectionDeltaWithTransform,this.layoutCorrected,t,s)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new NodeStack);let n=this.sharedNodes.get(e);n.add(t);let i=t.options.initialPromotionConfig;t.promote({transition:i?i.transition:void 0,preserveFollowOpacity:i&&i.shouldPreserveFollowOpacity?i.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),!t)return;let i={};for(let t=0;t{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()}),this.root.nodes.forEach(clearMeasurements),this.root.sharedNodes.clear()}}}function updateLayout(e){e.updateLayout()}function notifyLayoutUpdate(e){var t;let n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:i}=e.layout,{animationType:s}=e.options,o=n.source!==e.layout.source;"size"===s?eachAxis(e=>{let i=o?n.measuredBox[e]:n.layoutBox[e],s=calcLength(i);i.min=t[e].min,i.max=i.min+s}):shouldAnimatePositionOnly(s,n.layoutBox,t)&&eachAxis(i=>{let s=o?n.measuredBox[i]:n.layoutBox[i],a=calcLength(t[i]);s.max=s.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+a)});let a=createDelta();calcBoxDelta(a,t,n.layoutBox);let u=createDelta();o?calcBoxDelta(u,e.applyTransform(i,!0),n.measuredBox):calcBoxDelta(u,t,n.layoutBox);let l=!isDeltaZero(a),c=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:s,layout:o}=i;if(s&&o){let a=createBox();calcRelativePosition(a,n.layoutBox,s.layoutBox);let u=createBox();calcRelativePosition(u,t,o.layoutBox),boxEqualsRounded(a,u)||(c=!0),i.options.layoutRoot&&(e.relativeTarget=u,e.relativeTargetOrigin=a,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:u,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function propagateDirtyNodes(e){e8.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function cleanDirtyNodes(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function clearSnapshot(e){e.clearSnapshot()}function clearMeasurements(e){e.clearMeasurements()}function clearIsLayoutDirty(e){e.isLayoutDirty=!1}function resetTransformStyle(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function finishAnimation(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function resolveTargetDelta(e){e.resolveTargetDelta()}function calcProjection(e){e.calcProjection()}function resetRotation(e){e.resetRotation()}function removeLeadSnapshots(e){e.removeLeadSnapshot()}function mixAxisDelta(e,t,n){e.translate=mix(t.translate,0,n),e.scale=mix(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mixAxis(e,t,n,i){e.min=mix(t.min,n.min,i),e.max=mix(t.max,n.max,i)}function hasOpacityCrossfade(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let e2={duration:.45,ease:[.4,0,.1,1]},userAgentContains=e=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(e),e5=userAgentContains("applewebkit/")&&!userAgentContains("chrome/")?Math.round:X.Z;function roundAxis(e){e.min=e5(e.min),e.max=e5(e.max)}function shouldAnimatePositionOnly(e,t,n){return"position"===e||"preserve-aspect"===e&&!isNear(aspectRatio(t),aspectRatio(n),.2)}let e9=createProjectionNode({attachResizeListener:(e,t)=>addDomEvent(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),e4={current:void 0},te=createProjectionNode({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!e4.current){let e=new e9({});e.mount(window),e.setOptions({layoutScroll:!0}),e4.current=e}return e4.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),tt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function getVariableValue(e,t,n=1){(0,ei.k)(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[i,s]=function(e){let t=tt.exec(e);if(!t)return[,];let[,n,i]=t;return[n,i]}(e);if(!i)return;let o=window.getComputedStyle(t).getPropertyValue(i);if(o){let e=o.trim();return isNumericalString(e)?parseFloat(e):e}return A(s)?getVariableValue(s,t,n+1):s}let tr=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),isPositionalKey=e=>tr.has(e),hasPositionalKey=e=>Object.keys(e).some(isPositionalKey),isNumOrPxType=e=>e===R||e===L,getPosFromMatrix=(e,t)=>parseFloat(e.split(", ")[t]),getTranslateFromMatrix=(e,t)=>(n,{transform:i})=>{if("none"===i||!i)return 0;let s=i.match(/^matrix3d\((.+)\)$/);if(s)return getPosFromMatrix(s[1],t);{let t=i.match(/^matrix\((.+)\)$/);return t?getPosFromMatrix(t[1],e):0}},tn=new Set(["x","y","z"]),ti=S.filter(e=>!tn.has(e)),ts={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:getTranslateFromMatrix(4,13),y:getTranslateFromMatrix(5,14)};ts.translateX=ts.x,ts.translateY=ts.y;let convertChangedValueTypes=(e,t,n)=>{let i=t.measureViewportBox(),s=t.current,o=getComputedStyle(s),{display:a}=o,u={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach(e=>{u[e]=ts[e](i,o)}),t.render();let l=t.measureViewportBox();return n.forEach(n=>{let i=t.getValue(n);i&&i.jump(u[n]),e[n]=ts[n](l,o)}),e},checkAndConvertChangedValueTypes=(e,t,n={},i={})=>{t={...t},i={...i};let s=Object.keys(t).filter(isPositionalKey),o=[],a=!1,u=[];if(s.forEach(s=>{let l;let c=e.getValue(s);if(!e.hasValue(s))return;let d=n[s],h=findDimensionValueType(d),f=t[s];if(isKeyframesTarget(f)){let e=f.length,t=null===f[0]?1:0;h=findDimensionValueType(d=f[t]);for(let n=t;n{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t.length&&e.render(),t}(e),a=!0),u.push(s),i[s]=void 0!==i[s]?i[s]:t[s],c.jump(f))}}),!u.length)return{target:t,transitionEnd:i};{let n=u.indexOf("height")>=0?window.pageYOffset:null,s=convertChangedValueTypes(t,e,u);return o.length&&o.forEach(([t,n])=>{e.getValue(t).set(n)}),e.render(),v.j&&null!==n&&window.scrollTo({top:n}),{target:s,transitionEnd:i}}},parseDomVariant=(e,t,n,i)=>{var s,o;let a=function(e,{...t},n){let i=e.current;if(!(i instanceof Element))return{target:t,transitionEnd:n};for(let s in n&&(n={...n}),e.values.forEach(e=>{let t=e.get();if(!A(t))return;let n=getVariableValue(t,i);n&&e.set(n)}),t){let e=t[s];if(!A(e))continue;let o=getVariableValue(e,i);o&&(t[s]=o,n||(n={}),void 0===n[s]&&(n[s]=e))}return{target:t,transitionEnd:n}}(e,t,i);return t=a.target,i=a.transitionEnd,s=t,o=i,hasPositionalKey(s)?checkAndConvertChangedValueTypes(e,s,n,o):{target:s,transitionEnd:o}},to={current:null},ta={current:!1},tu=new WeakMap,tl=Object.keys(y),tc=tl.length,td=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],th=p.length;let VisualElement=class VisualElement{constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>W.Wi.render(this.render,!1,!0);let{latestValues:a,renderState:u}=s;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=u,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.isControllingVariants=isControllingVariants(t),this.isVariantNode=isVariantNode(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:l,...c}=this.scrapeMotionValuesFromProps(t,{});for(let e in c){let t=c[e];void 0!==a[e]&&isMotionValue(t)&&(t.set(a[e],!1),isWillChangeMotionValue(l)&&l.add(e))}}scrapeMotionValuesFromProps(e,t){return{}}mount(e){this.current=e,tu.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),ta.current||function(){if(ta.current=!0,v.j){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),setReducedMotionPreferences=()=>to.current=e.matches;e.addListener(setReducedMotionPreferences),setReducedMotionPreferences()}else to.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||to.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in tu.delete(this.current),this.projection&&this.projection.unmount(),(0,W.Pn)(this.notifyUpdate),(0,W.Pn)(this.render),this.valueSubscriptions.forEach(e=>e()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(let e in this.features)this.features[e].unmount();this.current=null}bindToMotionValue(e,t){let n=T.has(e),i=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&W.Wi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,()=>{i(),s()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}loadFeatures({children:e,...t},n,i,s){let o,a;for(let e=0;ethis.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:s,layoutScroll:u,layoutRoot:l})}return a}updateFeatures(){for(let e in this.features){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):createBox()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}makeTargetAnimatable(e,t=!0){return this.makeTargetAnimatableFromInstance(e,this.props,t)}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;tt.variantChildren.delete(e)}addValue(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=motionValue(t,{owner:this}),this.addValue(e,n)),n}readValue(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,i="string"==typeof n||"object"==typeof n?null===(t=resolveVariantFromProps(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==i)return i;let s=this.getBaseTargetFromProps(this.props,e);return void 0===s||isMotionValue(s)?void 0!==this.initialValues[e]&&void 0===i?void 0:this.baseTarget[e]:s}on(e,t){return this.events[e]||(this.events[e]=new SubscriptionManager),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}};let DOMVisualElement=class DOMVisualElement extends VisualElement{sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}makeTargetAnimatableFromInstance({transition:e,transitionEnd:t,...n},{transformValues:i},s){let o=function(e,t,n){let i={};for(let s in e){let e=function(e,t){if(!t)return;let n=t[e]||t.default||t;return n.from}(s,t);if(void 0!==e)i[s]=e;else{let e=n.getValue(s);e&&(i[s]=e.get())}}return i}(n,e||{},this);if(i&&(t&&(t=i(t)),n&&(n=i(n)),o&&(o=i(o))),s){!function(e,t,n){var i,s;let o=Object.keys(t).filter(t=>!e.hasValue(t)),a=o.length;if(a)for(let u=0;u{this.current&&(this.current.textContent=`${e}`)}))}renderInstance(e,t,n,i){renderHTML(e,t,n,i)}};let SVGVisualElement=class SVGVisualElement extends DOMVisualElement{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(T.has(t)){let e=getDefaultValueType(t);return e&&e.default||0}return t=H.has(t)?t:camelToDash(t),e.getAttribute(t)}measureInstanceViewportBox(){return createBox()}scrapeMotionValuesFromProps(e,t){return scrape_motion_values_scrapeMotionValuesFromProps(e,t)}build(e,t,n,i){buildSVGAttrs(e,t,n,this.isSVGTag,i.transformTemplate)}renderInstance(e,t,n,i){renderSVG(e,t,n,i)}mount(e){this.isSVGTag=isSVGTag(e.tagName),super.mount(e)}};let create_visual_element_createDomVisualElement=(e,t)=>isSVGComponent(e)?new SVGVisualElement(t,{enableHardwareAcceleration:!1}):new HTMLVisualElement(t,{enableHardwareAcceleration:!0}),tf={animation:{Feature:class extends Feature{constructor(e){super(e),e.animationState||(e.animationState=function(e){let animate=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t)){let s=t.map(t=>animateVariant(e,t,n));i=Promise.all(s)}else if("string"==typeof t)i=animateVariant(e,t,n);else{let s="function"==typeof t?resolveVariant(e,t,n.custom):t;i=Promise.all(animateTarget(e,s,n))}return i.then(()=>e.notify("AnimationComplete",t))})(e,t,n))),t={animate:createTypeState(!0),whileInView:createTypeState(),whileHover:createTypeState(),whileTap:createTypeState(),whileDrag:createTypeState(),whileFocus:createTypeState(),exit:createTypeState()},n=!0,buildResolvedTypeValues=(t,n)=>{let i=resolveVariant(e,n);if(i){let{transition:e,transitionEnd:n,...s}=i;t={...t,...s,...n}}return t};function animateChanges(i,s){let o=e.getProps(),a=e.getVariantContext(!0)||{},u=[],l=new Set,c={},d=1/0;for(let f=0;fd&&v,E=Array.isArray(y)?y:[y],S=E.reduce(buildResolvedTypeValues,{});!1===g&&(S={});let{prevResolvedValues:T={}}=m,P={...T,...S},markToAnimate=e=>{$=!0,l.delete(e),m.needsAnimating[e]=!0};for(let e in P){let t=S[e],n=T[e];c.hasOwnProperty(e)||(t!==n?isKeyframesTarget(t)&&isKeyframesTarget(n)?!shallowCompare(t,n)||x?markToAnimate(e):m.protectedKeys[e]=!0:void 0!==t?markToAnimate(e):l.add(e):void 0!==t&&l.has(e)?markToAnimate(e):m.protectedKeys[e]=!0)}m.prevProp=y,m.prevResolvedValues=S,m.isActive&&(c={...c,...S}),n&&e.blockInitialAnimation&&($=!1),$&&!b&&u.push(...E.map(e=>({animation:e,options:{type:p,...i}})))}if(l.size){let t={};l.forEach(n=>{let i=e.getBaseTarget(n);void 0!==i&&(t[n]=i)}),u.push({animation:t})}let f=!!u.length;return n&&!1===o.initial&&!e.manuallyAnimateOnMount&&(f=!1),n=!1,f?animate(u):Promise.resolve()}return{animateChanges,setActive:function(n,i,s){var o;if(t[n].isActive===i)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach(e=>{var t;return null===(t=e.animationState)||void 0===t?void 0:t.setActive(n,i)}),t[n].isActive=i;let a=animateChanges(s,n);for(let e in t)t[e].protectedKeys={};return a},setAnimateFunction:function(t){animate=t(e)},getState:()=>t}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();this.unmount(),isAnimationControls(e)&&(this.unmount=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){}}},exit:{Feature:class extends Feature{constructor(){super(...arguments),this.id=eK++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t,custom:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===i)return;let s=this.node.animationState.setActive("exit",!e,{custom:null!=n?n:this.node.getProps().custom});t&&!e&&s.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}},inView:{Feature:class extends Feature{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:s}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:er[i]};return function(e,t,n){let i=function({root:e,...t}){let n=e||document;et.has(n)||et.set(n,{});let i=et.get(n),s=JSON.stringify(t);return i[s]||(i[s]=new IntersectionObserver(fireAllObserverCallbacks,{root:e,...t})),i[s]}(t);return ee.set(e,n),i.observe(e),()=>{ee.delete(e),i.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,s&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=t?n:i;o&&o(e)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node,n=["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Feature{constructor(){super(...arguments),this.removeStartListeners=X.Z,this.removeEndListeners=X.Z,this.removeAccessibleListeners=X.Z,this.startPointerPress=(e,t)=>{if(this.removeEndListeners(),this.isPressing)return;let n=this.node.getProps(),i=addPointerEvent(window,"pointerup",(e,t)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:i}=this.node.getProps();W.Wi.update(()=>{isNodeOrChild(this.node.current,e.target)?n&&n(e,t):i&&i(e,t)})},{passive:!(n.onTap||n.onPointerUp)}),s=addPointerEvent(window,"pointercancel",(e,t)=>this.cancelPress(e,t),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=pipe(i,s),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=addDomEvent(this.node.current,"keydown",e=>{"Enter"!==e.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=addDomEvent(this.node.current,"keyup",e=>{"Enter"===e.key&&this.checkPressEnd()&&fireSyntheticPointerEvent("up",(e,t)=>{let{onTap:n}=this.node.getProps();n&&W.Wi.update(()=>n(e,t))})}),fireSyntheticPointerEvent("down",(e,t)=>{this.startPress(e,t)}))}),t=addDomEvent(this.node.current,"blur",()=>{this.isPressing&&fireSyntheticPointerEvent("cancel",(e,t)=>this.cancelPress(e,t))});this.removeAccessibleListeners=pipe(e,t)}}startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:i}=this.node.getProps();i&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&W.Wi.update(()=>n(e,t))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;let e=this.node.getProps();return e.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!isDragActive()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&W.Wi.update(()=>n(e,t))}mount(){let e=this.node.getProps(),t=addPointerEvent(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=addDomEvent(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=pipe(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Feature{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=pipe(addDomEvent(this.node.current,"focus",()=>this.onFocus()),addDomEvent(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}},hover:{Feature:class extends Feature{mount(){this.unmount=pipe(addHoverEvent(this.node,!0),addHoverEvent(this.node,!1))}unmount(){}}},pan:{Feature:class extends Feature{constructor(){super(...arguments),this.removePointerDownListener=X.Z}onPointerDown(e){this.session=new PanSession(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:getContextWindow(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:asyncHandler(e),onStart:asyncHandler(t),onMove:n,onEnd:(e,t)=>{delete this.session,i&&W.Wi.update(()=>i(e,t))}}}mount(){this.removePointerDownListener=addPointerEvent(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Feature{constructor(e){super(e),this.removeGroupControls=X.Z,this.removeListeners=X.Z,this.controls=new VisualElementDragControls(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||X.Z}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:te,MeasureLayout:MeasureLayout},layout:{ProjectionNode:te,MeasureLayout:MeasureLayout}},tp=function(e){function custom(t,n={}){return function({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:i,Component:s}){e&&function(e){for(let t in e)y[t]={...y[t],...e[t]}}(e);let o=(0,a.forwardRef)(function(o,f){var p;let m;let y={...(0,a.useContext)(u),...o,layoutId:function({layoutId:e}){let t=(0,a.useContext)(g.p).id;return t&&void 0!==e?t+"-"+e:e}(o)},{isStatic:x}=y,$=function(e){let{initial:t,animate:n}=function(e,t){if(isControllingVariants(e)){let{initial:t,animate:n}=e;return{initial:!1===t||isVariantLabel(t)?t:void 0,animate:isVariantLabel(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,a.useContext)(l));return(0,a.useMemo)(()=>({initial:t,animate:n}),[variantLabelsAsDependency(t),variantLabelsAsDependency(n)])}(o),E=i(o,x);if(!x&&v.j){$.visualElement=function(e,t,n,i){let{visualElement:s}=(0,a.useContext)(l),o=(0,a.useContext)(h),f=(0,a.useContext)(c.O),p=(0,a.useContext)(u).reducedMotion,m=(0,a.useRef)();i=i||o.renderer,!m.current&&i&&(m.current=i(e,{visualState:t,parent:s,props:n,presenceContext:f,blockInitialAnimation:!!f&&!1===f.initial,reducedMotionConfig:p}));let y=m.current;(0,a.useInsertionEffect)(()=>{y&&y.update(n,f)});let v=(0,a.useRef)(!!window.HandoffAppearAnimations);return(0,d.L)(()=>{y&&(y.render(),v.current&&y.animationState&&y.animationState.animateChanges())}),(0,a.useEffect)(()=>{y&&(y.updateFeatures(),!v.current&&y.animationState&&y.animationState.animateChanges(),window.HandoffAppearAnimations=!1,v.current=!1)}),y}(s,E,y,t);let n=(0,a.useContext)(b),i=(0,a.useContext)(h).strict;$.visualElement&&(m=$.visualElement.loadFeatures(y,i,e,n))}return a.createElement(l.Provider,{value:$},m&&$.visualElement?a.createElement(m,{visualElement:$.visualElement,...y}):null,n(s,o,(p=$.visualElement,(0,a.useCallback)(e=>{e&&E.mount&&E.mount(e),p&&(e?p.mount(e):p.unmount()),f&&("function"==typeof f?f(e):isRefObject(f)&&(f.current=e))},[p])),E,x,$.visualElement))});return o[x]=s,o}(e(t,n))}if("undefined"==typeof Proxy)return custom;let t=new Map;return new Proxy(custom,{get:(e,n)=>(t.has(n)||t.set(n,custom(n)),t.get(n))})}((e,t)=>(function(e,{forwardMotionProps:t=!1},n,i){let s=isSVGComponent(e)?G:J;return{...s,preloadedFeatures:n,useRender:function(e=!1){return(t,n,i,{latestValues:s},o)=>{let u=isSVGComponent(t)?useSVGProps:useHTMLProps,l=u(n,s,o,t),c=function(e,t,n){let i={};for(let s in e)("values"!==s||"object"!=typeof e.values)&&(shouldForward(s)||!0===n&&isValidMotionProp(s)||!t&&!isValidMotionProp(s)||e.draggable&&s.startsWith("onDrag"))&&(i[s]=e[s]);return i}(n,"string"==typeof t,e),d={...c,...l,ref:i},{children:h}=n,f=(0,a.useMemo)(()=>isMotionValue(h)?h.get():h,[h]);return(0,a.createElement)(t,{...d,children:f})}}(t),createVisualElement:i,Component:e}})(e,t,tf,create_visual_element_createDomVisualElement))},5487:function(e,t,n){"use strict";n.d(t,{K:function(){return s},k:function(){return o}});var i=n(1662);let s=i.Z,o=i.Z},1741:function(e,t,n){"use strict";n.d(t,{j:function(){return i}});let i="undefined"!=typeof document},1662:function(e,t,n){"use strict";n.d(t,{Z:function(){return noop}});let noop=e=>e},6681:function(e,t,n){"use strict";n.d(t,{h:function(){return useConstant}});var i=n(7294);function useConstant(e){let t=(0,i.useRef)(null);return null===t.current&&(t.current=e()),t.current}},8868:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var i=n(7294),s=n(1741);let o=s.j?i.useLayoutEffect:i.useEffect}},function(e){var __webpack_exec__=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return __webpack_exec__(6840),__webpack_exec__(9974)}),_N_E=e.O()}]);