import{a as Mn,b as hv,c as mo,d as E,e as ye,f as Ln,g as wf,h as Yt}from"./chunk-FIZTVOUW.mjs";import{a as xf,b as ze,c as I}from"./chunk-A3IIQ6X3.mjs";var Ot={};xf(Ot,{Children:()=>cn,Component:()=>Fe,Fragment:()=>wn,Profiler:()=>fF,PureComponent:()=>dF,StrictMode:()=>hF,Suspense:()=>xr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>pF,cloneElement:()=>wr,createContext:()=>ke,createElement:()=>Ur,createFactory:()=>mF,createRef:()=>Cv,default:()=>w,forwardRef:()=>Oe,isValidElement:()=>_t,lazy:()=>gF,memo:()=>wl,startTransition:()=>Ve,unstable_act:()=>vF,useCallback:()=>G,useContext:()=>z,useDebugValue:()=>yF,useDeferredValue:()=>bF,useEffect:()=>$,useId:()=>Sr,useImperativeHandle:()=>xF,useInsertionEffect:()=>ct,useLayoutEffect:()=>He,useMemo:()=>re,useReducer:()=>wF,useRef:()=>V,useState:()=>Re,useSyncExternalStore:()=>SF,useTransition:()=>kF,version:()=>CF});var w={},Is=Symbol.for("react.element"),KE=Symbol.for("react.portal"),QE=Symbol.for("react.fragment"),ZE=Symbol.for("react.strict_mode"),JE=Symbol.for("react.profiler"),eF=Symbol.for("react.provider"),tF=Symbol.for("react.context"),nF=Symbol.for("react.forward_ref"),rF=Symbol.for("react.suspense"),iF=Symbol.for("react.memo"),oF=Symbol.for("react.lazy"),pv=Symbol.iterator;function sF(e){return e===null||typeof e!="object"?null:(e=pv&&e[pv]||e["@@iterator"],typeof e=="function"?e:null)}var vv={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},yv=Object.assign,bv={};function go(e,t,n){this.props=e,this.context=t,this.refs=bv,this.updater=n||vv}go.prototype.isReactComponent={};go.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};go.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xv(){}xv.prototype=go.prototype;function kf(e,t,n){this.props=e,this.context=t,this.refs=bv,this.updater=n||vv}var Cf=kf.prototype=new xv;Cf.constructor=kf;yv(Cf,go.prototype);Cf.isPureReactComponent=!0;var mv=Array.isArray,wv=Object.prototype.hasOwnProperty,Rf={current:null},Sv={key:!0,ref:!0,__self:!0,__source:!0};function kv(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)wv.call(t,r)&&!Sv.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1<a){for(var l=Array(a),c=0;c<a;c++)l[c]=arguments[c+2];i.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:Is,type:e,key:o,ref:s,props:i,_owner:Rf.current}}function aF(e,t){return{$$typeof:Is,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Tf(e){return typeof e=="object"&&e!==null&&e.$$typeof===Is}function lF(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var gv=/\/+/g;function Sf(e,t){return typeof e=="object"&&e!==null&&e.key!=null?lF(""+e.key):t.toString(36)}function bl(e,t,n,r,i){var o=typeof e;o!=="undefined"&&o!=="boolean"||(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case Is:case KE:s=!0}}if(s)return s=e,i=i(s),e=r===""?"."+Sf(s,0):r,mv(i)?(n="",e!=null&&(n=e.replace(gv,"$&/")+"/"),bl(i,t,n,"",function(c){return c})):i!=null&&(Tf(i)&&(i=aF(i,n+(!i.key||s&&s.key===i.key?"":(""+i.key).replace(gv,"$&/")+"/")+e)),t.push(i)),1;if(s=0,r=r===""?".":r+":",mv(e))for(var a=0;a<e.length;a++){o=e[a];var l=r+Sf(o,a);s+=bl(o,t,n,l,i)}else if(l=sF(e),typeof l=="function")for(e=l.call(e),a=0;!(o=e.next()).done;)o=o.value,l=r+Sf(o,a++),s+=bl(o,t,n,l,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function yl(e,t,n){if(e==null)return e;var r=[],i=0;return bl(e,r,"","",function(o){return t.call(n,o,i++)}),r}function cF(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){e._status!==0&&e._status!==-1||(e._status=1,e._result=n)},function(n){e._status!==0&&e._status!==-1||(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var jt={current:null},xl={transition:null},uF={ReactCurrentDispatcher:jt,ReactCurrentBatchConfig:xl,ReactCurrentOwner:Rf};w.Children={map:yl,forEach:function(e,t,n){yl(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return yl(e,function(){t++}),t},toArray:function(e){return yl(e,function(t){return t})||[]},only:function(e){if(!Tf(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};w.Component=go;w.Fragment=QE;w.Profiler=JE;w.PureComponent=kf;w.StrictMode=ZE;w.Suspense=rF;w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=uF;w.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=yv({},e.props),i=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Rf.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(l in t)wv.call(t,l)&&!Sv.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&a!==void 0?a[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){a=Array(l);for(var c=0;c<l;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:Is,type:e.type,key:i,ref:o,props:r,_owner:s}};w.createContext=function(e){return e={$$typeof:tF,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:eF,_context:e},e.Consumer=e};w.createElement=kv;w.createFactory=function(e){var t=kv.bind(null,e);return t.type=e,t};w.createRef=function(){return{current:null}};w.forwardRef=function(e){return{$$typeof:nF,render:e}};w.isValidElement=Tf;w.lazy=function(e){return{$$typeof:oF,_payload:{_status:-1,_result:e},_init:cF}};w.memo=function(e,t){return{$$typeof:iF,type:e,compare:t===void 0?null:t}};w.startTransition=function(e){var t=xl.transition;xl.transition={};try{e()}finally{xl.transition=t}};w.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};w.useCallback=function(e,t){return jt.current.useCallback(e,t)};w.useContext=function(e){return jt.current.useContext(e)};w.useDebugValue=function(){};w.useDeferredValue=function(e){return jt.current.useDeferredValue(e)};w.useEffect=function(e,t){return jt.current.useEffect(e,t)};w.useId=function(){return jt.current.useId()};w.useImperativeHandle=function(e,t,n){return jt.current.useImperativeHandle(e,t,n)};w.useInsertionEffect=function(e,t){return jt.current.useInsertionEffect(e,t)};w.useLayoutEffect=function(e,t){return jt.current.useLayoutEffect(e,t)};w.useMemo=function(e,t){return jt.current.useMemo(e,t)};w.useReducer=function(e,t,n){return jt.current.useReducer(e,t,n)};w.useRef=function(e){return jt.current.useRef(e)};w.useState=function(e){return jt.current.useState(e)};w.useSyncExternalStore=function(e,t,n){return jt.current.useSyncExternalStore(e,t,n)};w.useTransition=function(){return jt.current.useTransition()};w.version="18.2.0";var cn=w.Children,Fe=w.Component,wn=w.Fragment,fF=w.Profiler,dF=w.PureComponent,hF=w.StrictMode,xr=w.Suspense,pF=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,wr=w.cloneElement,ke=w.createContext,Ur=w.createElement,mF=w.createFactory,Cv=w.createRef,Oe=w.forwardRef,_t=w.isValidElement,gF=w.lazy,wl=w.memo,Ve=w.startTransition,vF=w.unstable_act,G=w.useCallback,z=w.useContext,yF=w.useDebugValue,bF=w.useDeferredValue,$=w.useEffect,Sr=w.useId,xF=w.useImperativeHandle,ct=w.useInsertionEffect,He=w.useLayoutEffect,re=w.useMemo,wF=w.useReducer,V=w.useRef,Re=w.useState,SF=w.useSyncExternalStore,kF=w.useTransition,CF=w.version;var RF="default"in Ot?w:Ot,vo={},TF=RF,EF=Symbol.for("react.element"),FF=Symbol.for("react.fragment"),PF=Object.prototype.hasOwnProperty,IF=TF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_F={key:!0,ref:!0,__self:!0,__source:!0};function Rv(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)PF.call(t,r)&&!_F.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:EF,type:e,key:o,ref:s,props:i,_owner:IF.current}}vo.Fragment=FF;vo.jsx=Rv;vo.jsxs=Rv;var ht=vo.Fragment,k=vo.jsx,be=vo.jsxs;var OF=Mn({"../../../node_modules/@emotion/memoize/dist/memoize.browser.cjs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(n){var r={};return function(i){return r[i]===void 0&&(r[i]=n(i)),r[i]}}e.default=t}}),MF=Mn({"../../../node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.cjs.js"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function t(o){return o&&typeof o=="object"&&"default"in o?o.default:o}var n=t(OF()),r=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,i=n(function(o){return r.test(o)||o.charCodeAt(0)===111&&o.charCodeAt(1)===110&&o.charCodeAt(2)<91});e.default=i}}),Dl={skipAnimations:!1,useManualTiming:!1},Rt=e=>e;function LF(e){let t=new Set,n=new Set,r=!1,i=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1};function a(c){o.has(c)&&(l.schedule(c),e()),c(s)}let l={schedule:(c,u=!1,f=!1)=>{let h=f&&r?t:n;return u&&o.add(c),h.has(c)||h.add(c),c},cancel:c=>{n.delete(c),o.delete(c)},process:c=>{if(s=c,r){i=!0;return}r=!0,[t,n]=[n,t],n.clear(),t.forEach(a),r=!1,i&&(i=!1,l.process(c))}};return l}var Ms=["read","resolveKeyframes","update","preRender","render","postRender"],VF=40;function Ky(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=Ms.reduce((m,g)=>(m[g]=LF(o),m),{}),{read:a,resolveKeyframes:l,update:c,preRender:u,render:f,postRender:d}=s,h=()=>{let m=Dl.useManualTiming?i.timestamp:performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,VF),1),i.timestamp=m,i.isProcessing=!0,a.process(i),l.process(i),c.process(i),u.process(i),f.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},p=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:Ms.reduce((m,g)=>{let v=s[g];return m[g]=(b,C=!1,S=!1)=>(n||p(),v.schedule(b,C,S)),m},{}),cancel:m=>{for(let g=0;g<Ms.length;g++)s[Ms[g]].cancel(m)},state:i,steps:s}}var{schedule:Q,cancel:Tt,state:et,steps:Rl}=Ky(typeof requestAnimationFrame<"u"?requestAnimationFrame:Rt,!0),Qy=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,AF=1e-7,DF=12;function zF(e,t,n,r,i){let o,s,a=0;do s=t+(n-t)/2,o=Qy(s,r,i)-e,o>0?n=s:t=s;while(Math.abs(o)>AF&&++a<DF);return s}function To(e,t,n,r){if(e===t&&n===r)return Rt;let i=o=>zF(o,0,1,e,n);return o=>o===0||o===1?o:Qy(i(o),t,r)}var ad=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ld=e=>t=>1-e(1-t),cd=To(.33,1.53,.69,.99),zl=ld(cd),ud=ad(zl),fd=e=>(e*=2)<1?.5*zl(e):.5*(2-Math.pow(2,-10*(e-1))),Bl=e=>1-Math.sin(Math.acos(e)),dd=ld(Bl),hd=ad(Bl),Eo=Rt,un=Rt,Cr=(e,t,n)=>n>t?t:n<e?e:n,qs=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Gr=qs("deg"),Yn=qs("%"),oe=qs("px"),BF=qs("vh"),$F=qs("vw"),Tv={...Yn,parse:e=>Yn.parse(e)/100,transform:e=>Yn.transform(e*100)},Fo={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ns={...Fo,transform:e=>Cr(0,1,e)},Sl={...Fo,default:1},As=e=>Math.round(e*1e5)/1e5,pd=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function NF(e){return e==null}var jF=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,md=(e,t)=>n=>!!(typeof n=="string"&&jF.test(n)&&n.startsWith(e)||t&&!NF(n)&&Object.prototype.hasOwnProperty.call(n,t)),Zy=(e,t,n)=>r=>{if(typeof r!="string")return r;let[i,o,s,a]=r.match(pd);return{[e]:parseFloat(i),[t]:parseFloat(o),[n]:parseFloat(s),alpha:a!==void 0?parseFloat(a):1}},HF=e=>Cr(0,255,e),Ef={...Fo,transform:e=>Math.round(HF(e))},Vi={test:md("rgb","red"),parse:Zy("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Ef.transform(e)+", "+Ef.transform(t)+", "+Ef.transform(n)+", "+As(Ns.transform(r))+")"};function WF(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var $f={test:md("#"),parse:WF,transform:Vi.transform},yo={test:md("hsl","hue"),parse:Zy("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Yn.transform(As(t))+", "+Yn.transform(As(n))+", "+As(Ns.transform(r))+")"},Ct={test:e=>Vi.test(e)||$f.test(e)||yo.test(e),parse:e=>Vi.test(e)?Vi.parse(e):yo.test(e)?yo.parse(e):$f.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Vi.transform(e):yo.transform(e)},UF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function GF(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(pd))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(UF))===null||n===void 0?void 0:n.length)||0)>0}var Jy="number",e0="color",qF="var",XF="var(",Ev="${}",YF=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function js(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],o=0,a=t.replace(YF,l=>(Ct.test(l)?(r.color.push(o),i.push(e0),n.push(Ct.parse(l))):l.startsWith(XF)?(r.var.push(o),i.push(qF),n.push(l)):(r.number.push(o),i.push(Jy),n.push(parseFloat(l))),++o,Ev)).split(Ev);return{values:n,split:a,indexes:r,types:i}}function t0(e){return js(e).values}function n0(e){let{split:t,types:n}=js(e),r=t.length;return i=>{let o="";for(let s=0;s<r;s++)if(o+=t[s],i[s]!==void 0){let a=n[s];a===Jy?o+=As(i[s]):a===e0?o+=Ct.transform(i[s]):o+=i[s]}return o}}var KF=e=>typeof e=="number"?0:e;function QF(e){let t=t0(e);return n0(e)(t.map(KF))}var Rr={test:GF,parse:t0,createTransformer:n0,getAnimatableNone:QF},Vn=e=>e*1e3,Kn=e=>e/1e3,Ff=.001,ZF=.01,Fv=10,JF=.05,eP=1;function r0({duration:e=800,bounce:t=.25,velocity:n=0,mass:r=1}){let i,o;Eo(e<=Vn(Fv),"Spring duration must be 10 seconds or less");let s=1-t;s=Cr(JF,eP,s),e=Cr(ZF,Fv,Kn(e)),s<1?(i=c=>{let u=c*s,f=u*e,d=u-n,h=Nf(c,s),p=Math.exp(-f);return Ff-d/h*p},o=c=>{let f=c*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(c,2)*e,p=Math.exp(-f),y=Nf(Math.pow(c,2),s);return(-i(c)+Ff>0?-1:1)*((d-h)*p)/y}):(i=c=>{let u=Math.exp(-c*e),f=(c-n)*e+1;return-Ff+u*f},o=c=>{let u=Math.exp(-c*e),f=(n-c)*(e*e);return u*f});let a=5/e,l=nP(i,o,a);if(e=Vn(e),isNaN(l))return{stiffness:100,damping:10,duration:e};{let c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}var tP=12;function nP(e,t,n){let r=n;for(let i=1;i<tP;i++)r=r-e(r)/t(r);return r}function Nf(e,t){return e*Math.sqrt(1-t*t)}function gd(e,t){return t?e*(1e3/t):0}var rP=5;function i0(e,t,n){let r=Math.max(t-rP,0);return gd(n-e(r),t-r)}var iP=["duration","bounce"],oP=["stiffness","damping","mass"];function Pv(e,t){return t.some(n=>e[n]!==void 0)}function sP(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!Pv(e,oP)&&Pv(e,iP)){let n=r0(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}function Xs({keyframes:e,restDelta:t,restSpeed:n,...r}){let i=e[0],o=e[e.length-1],s={done:!1,value:i},{stiffness:a,damping:l,mass:c,duration:u,velocity:f,isResolvedFromDuration:d}=sP({...r,velocity:-Kn(r.velocity||0)}),h=f||0,p=l/(2*Math.sqrt(a*c)),y=o-i,x=Kn(Math.sqrt(a/c)),m=Math.abs(y)<5;n||(n=m?.01:2),t||(t=m?.005:.5);let g;if(p<1){let v=Nf(x,p);g=b=>{let C=Math.exp(-p*x*b);return o-C*((h+p*x*y)/v*Math.sin(v*b)+y*Math.cos(v*b))}}else if(p===1)g=v=>o-Math.exp(-x*v)*(y+(h+x*y)*v);else{let v=x*Math.sqrt(p*p-1);g=b=>{let C=Math.exp(-p*x*b),S=Math.min(v*b,300);return o-C*((h+p*x*y)*Math.sinh(S)+v*y*Math.cosh(S))/v}}return{calculatedDuration:d&&u||null,next:v=>{let b=g(v);if(d)s.done=v>=u;else{let C=0;p<1&&(C=v===0?Vn(h):i0(g,v,b));let S=Math.abs(C)<=n,R=Math.abs(o-b)<=t;s.done=S&&R}return s.value=s.done?o:b,s}}}function jf({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:c=.5,restSpeed:u}){let f=e[0],d={done:!1,value:f},h=T=>a!==void 0&&T<a||l!==void 0&&T>l,p=T=>a===void 0?l:l===void 0||Math.abs(a-T)<Math.abs(l-T)?a:l,y=n*t,x=f+y,m=s===void 0?x:s(x);m!==x&&(y=m-f);let g=T=>-y*Math.exp(-T/r),v=T=>m+g(T),b=T=>{let F=g(T),P=v(T);d.done=Math.abs(F)<=c,d.value=d.done?m:P},C,S,R=T=>{h(d.value)&&(C=T,S=Xs({keyframes:[d.value,p(d.value)],velocity:i0(v,T,d.value),damping:i,stiffness:o,restDelta:c,restSpeed:u}))};return R(0),{calculatedDuration:null,next:T=>{let F=!1;return!S&&C===void 0&&(F=!0,b(T),R(T)),C!==void 0&&T>=C?S.next(T-C):(!F&&b(T),d)}}}var o0=To(.42,0,1,1),s0=To(0,0,.58,1),vd=To(.42,0,.58,1),aP=(e,t)=>n=>t(e(n)),Qn=(...e)=>e.reduce(aP),Tr=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},Be=(e,t,n)=>e+(t-e)*n;function Pf(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function lP({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,o=0,s=0;if(!t)i=o=s=n;else{let a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;i=Pf(l,a,e+1/3),o=Pf(l,a,e),s=Pf(l,a,e-1/3)}return{red:Math.round(i*255),green:Math.round(o*255),blue:Math.round(s*255),alpha:r}}function Il(e,t){return n=>n>0?t:e}var If=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},cP=[$f,Vi,yo],uP=e=>cP.find(t=>t.test(e));function Iv(e){let t=uP(e);if(Eo(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let n=t.parse(e);return t===yo&&(n=lP(n)),n}var _v=(e,t)=>{let n=Iv(e),r=Iv(t);if(!n||!r)return Il(e,t);let i={...n};return o=>(i.red=If(n.red,r.red,o),i.green=If(n.green,r.green,o),i.blue=If(n.blue,r.blue,o),i.alpha=Be(n.alpha,r.alpha,o),Vi.transform(i))},a0=e=>t=>typeof t=="string"&&t.startsWith(e),l0=a0("--"),fP=a0("var(--"),yd=e=>fP(e)?dP.test(e.split("/*")[0].trim()):!1,dP=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Hf=new Set(["none","hidden"]);function hP(e,t){return Hf.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function pP(e,t){return n=>Be(e,t,n)}function bd(e){return typeof e=="number"?pP:typeof e=="string"?yd(e)?Il:Ct.test(e)?_v:vP:Array.isArray(e)?c0:typeof e=="object"?Ct.test(e)?_v:mP:Il}function c0(e,t){let n=[...e],r=n.length,i=e.map((o,s)=>bd(o)(o,t[s]));return o=>{for(let s=0;s<r;s++)n[s]=i[s](o);return n}}function mP(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=bd(e[i])(e[i],t[i]));return i=>{for(let o in r)n[o]=r[o](i);return n}}function gP(e,t){var n;let r=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){let s=t.types[o],a=e.indexes[s][i[s]],l=(n=e.values[a])!==null&&n!==void 0?n:0;r[o]=l,i[s]++}return r}var vP=(e,t)=>{let n=Rr.createTransformer(t),r=js(e),i=js(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Hf.has(e)&&!i.values.length||Hf.has(t)&&!r.values.length?hP(e,t):Qn(c0(gP(r,i),i.values),n):(Eo(!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.`),Il(e,t))};function xd(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Be(e,t,n):bd(e)(e,t)}function yP(e,t,n){let r=[],i=n||xd,o=e.length-1;for(let s=0;s<o;s++){let a=i(e[s],e[s+1]);if(t){let l=Array.isArray(t)?t[s]||Rt:t;a=Qn(l,a)}r.push(a)}return r}function Po(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let o=e.length;if(un(o===t.length,"Both input and output ranges must be the same length"),o===1)return()=>t[0];if(o===2&&e[0]===e[1])return()=>t[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=yP(t,r,i),a=s.length,l=c=>{let u=0;if(a>1)for(;u<e.length-2&&!(c<e[u+1]);u++);let f=Tr(e[u],e[u+1],c);return s[u](f)};return n?c=>l(Cr(e[0],e[o-1],c)):l}var u0=e=>Array.isArray(e)&&typeof e[0]!="number",wd=e=>Array.isArray(e)&&typeof e[0]=="number",Ov={linear:Rt,easeIn:o0,easeInOut:vd,easeOut:s0,circIn:Bl,circInOut:hd,circOut:dd,backIn:zl,backInOut:ud,backOut:cd,anticipate:fd},Wf=e=>{if(wd(e)){un(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,n,r,i]=e;return To(t,n,r,i)}else if(typeof e=="string")return un(Ov[e]!==void 0,`Invalid easing type '${e}'`),Ov[e];return e};function f0(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=Tr(0,t,r);e.push(Be(n,1,i))}}function Sd(e){let t=[0];return f0(t,e.length-1),t}function bP(e,t){return e.map(n=>n*t)}function xP(e,t){return e.map(()=>t||vd).splice(0,e.length-1)}function Hs({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){let i=u0(r)?r.map(Wf):Wf(r),o={done:!1,value:t[0]},s=bP(n&&n.length===t.length?n:Sd(t),e),a=Po(s,t,{ease:Array.isArray(i)?i:xP(t,i)});return{calculatedDuration:e,next:l=>(o.value=a(l),o.done=l>=e,o)}}var Ys=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xr=new Set(Ys),wP=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Mv=e=>e===Fo||e===oe,Lv=(e,t)=>parseFloat(e.split(", ")[t]),Vv=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/u);if(i)return Lv(i[1],t);{let o=r.match(/^matrix\((.+)\)$/u);return o?Lv(o[1],e):0}},SP=new Set(["x","y","z"]),kP=Ys.filter(e=>!SP.has(e));function CP(e){let t=[];return kP.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}var ko={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:Vv(4,13),y:Vv(5,14)};ko.translateX=ko.x;ko.translateY=ko.y;var Ai=new Set,Uf=!1,Gf=!1;function d0(){if(Gf){let e=Array.from(Ai).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{let i=CP(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();let i=n.get(r);i&&i.forEach(([o,s])=>{var a;(a=r.getValue(o))===null||a===void 0||a.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&I.scrollTo(0,r.suspendedScrollY)})}Gf=!1,Uf=!1,Ai.forEach(e=>e.complete()),Ai.clear()}function h0(){Ai.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gf=!0)})}function RP(){h0(),d0()}var kd=class{constructor(e,t,n,r,i,o=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=o}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Ai.add(this),Uf||(Uf=!0,Q.read(h0),Q.resolveKeyframes(d0))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;for(let i=0;i<e.length;i++)if(e[i]===null)if(i===0){let o=r?.get(),s=e[e.length-1];if(o!==void 0)e[0]=o;else if(n&&t){let a=n.readValue(t,s);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=s),r&&o===void 0&&r.set(e[0])}else e[i]=e[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Ai.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Ai.delete(this))}resume(){this.isComplete||this.scheduleResolve()}},Tl;function TP(){Tl=void 0}var Zn={now:()=>(Tl===void 0&&Zn.set(et.isProcessing||Dl.useManualTiming?et.timestamp:performance.now()),Tl),set:e=>{Tl=e,queueMicrotask(TP)}},_l={current:!1};function $l(e){return typeof e=="function"}var Av=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Rr.test(e)||e==="0")&&!e.startsWith("url("));function EP(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function FP(e,t,n,r){let i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;let o=e[e.length-1],s=Av(i,t),a=Av(o,t);return Eo(s===a,`You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`),!s||!a?!1:EP(e)||(n==="spring"||$l(n))&&r}var PP=e=>e!==null;function Nl(e,{repeat:t,repeatType:n="loop"},r){let i=e.filter(PP),o=t&&n!=="loop"&&t%2===1?0:i.length-1;return!o||r===void 0?i[o]:r}var IP=40,p0=class{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:o="loop",...s}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Zn.now(),this.options={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:o,...s},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>IP?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&RP(),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Zn.now(),this.hasAttemptedResolve=!0;let{name:n,type:r,velocity:i,delay:o,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!FP(e,n,r,i))if(_l.current||!o){a?.(Nl(e,this.options,t)),s?.(),this.resolveFinishedPromise();return}else this.options.duration=0;let c=this.initPlayback(e,t);c!==!1&&(this._resolved={keyframes:e,finalKeyframe:t,...c},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}},qf=2e4;function m0(e){let t=0,n=50,r=e.next(t);for(;!r.done&&t<qf;)t+=n,r=e.next(t);return t>=qf?1/0:t}var _P=e=>{let t=({timestamp:n})=>e(n);return{start:()=>Q.update(t,!0),stop:()=>Tt(t),now:()=>et.isProcessing?et.timestamp:Zn.now()}},OP={decay:jf,inertia:jf,tween:Hs,keyframes:Hs,spring:Xs},MP=e=>e/100,jl=class extends p0{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();let{onStop:a}=this.options;a&&a()};let{name:t,motionValue:n,element:r,keyframes:i}=this.options,o=r?.KeyframeResolver||kd,s=(a,l)=>this.onKeyframesResolved(a,l);this.resolver=new o(i,s,t,n,r),this.resolver.scheduleResolve()}initPlayback(e){let{type:t="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:o=0}=this.options,s=$l(t)?t:OP[t]||Hs,a,l;s!==Hs&&typeof e[0]!="number"&&(a=Qn(MP,xd(e[0],e[1])),e=[0,100]);let c=s({...this.options,keyframes:e});i==="mirror"&&(l=s({...this.options,keyframes:[...e].reverse(),velocity:-o})),c.calculatedDuration===null&&(c.calculatedDuration=m0(c));let{calculatedDuration:u}=c,f=u+r,d=f*(n+1)-r;return{generator:c,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:u,resolvedDuration:f,totalDuration:d}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!e?this.pause():this.state=this.pendingPlayState}tick(e,t=!1){let{resolved:n}=this;if(!n){let{keyframes:R}=this.options;return{done:!0,value:R[R.length-1]}}let{finalKeyframe:r,generator:i,mirroredGenerator:o,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:c,resolvedDuration:u}=n;if(this.startTime===null)return i.next(0);let{delay:f,repeat:d,repeatType:h,repeatDelay:p,onUpdate:y}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-c/this.speed,this.startTime)),t?this.currentTime=e:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let x=this.currentTime-f*(this.speed>=0?1:-1),m=this.speed>=0?x<0:x>c;this.currentTime=Math.max(x,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let g=this.currentTime,v=i;if(d){let R=Math.min(this.currentTime,c)/u,T=Math.floor(R),F=R%1;!F&&R>=1&&(F=1),F===1&&T--,T=Math.min(T,d+1),!!(T%2)&&(h==="reverse"?(F=1-F,p&&(F-=p/u)):h==="mirror"&&(v=o)),g=Cr(0,1,F)*u}let b=m?{done:!1,value:a[0]}:v.next(g);s&&(b.value=s(b.value));let{done:C}=b;!m&&l!==null&&(C=this.speed>=0?this.currentTime>=c:this.currentTime<=0);let S=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return S&&r!==void 0&&(b.value=Nl(a,this.options,r)),y&&y(b.value),S&&this.finish(),b}get duration(){let{resolved:e}=this;return e?Kn(e.calculatedDuration):0}get time(){return Kn(this.currentTime)}set time(e){e=Vn(e),this.currentTime=e,this.holdTime!==null||this.speed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Kn(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=_P,onPlay:t,startTime:n}=this.options;this.driver||(this.driver=e(i=>this.tick(i))),t&&t();let r=this.driver.now();this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=r):this.startTime=n??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(e=this.currentTime)!==null&&e!==void 0?e:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}};function Cd(e){return new jl(e)}var g0=e=>/^0[^.\s]+$/u.test(e);function LP(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||g0(e):!0}var v0=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),VP=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function AP(e){let t=VP.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}var DP=4;function y0(e,t,n=1){un(n<=DP,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[r,i]=AP(e);if(!r)return;let o=I.getComputedStyle(t).getPropertyValue(r);if(o){let s=o.trim();return v0(s)?parseFloat(s):s}return yd(i)?y0(i,t,n+1):i}var b0=e=>t=>t.test(e),zP={test:e=>e==="auto",parse:e=>e},x0=[Fo,oe,Yn,Gr,$F,BF,zP],Dv=e=>x0.find(b0(e)),BP=new Set(["brightness","contrast","saturate","opacity"]);function $P(e){let[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[r]=n.match(pd)||[];if(!r)return e;let i=n.replace(r,""),o=BP.has(t)?1:0;return r!==n&&(o*=100),t+"("+o+i+")"}var NP=/\b([a-z-]*)\(.*?\)/gu,Xf={...Rr,getAnimatableNone:e=>{let t=e.match(NP);return t?t.map($P).join(" "):e}},jP={borderWidth:oe,borderTopWidth:oe,borderRightWidth:oe,borderBottomWidth:oe,borderLeftWidth:oe,borderRadius:oe,radius:oe,borderTopLeftRadius:oe,borderTopRightRadius:oe,borderBottomRightRadius:oe,borderBottomLeftRadius:oe,width:oe,maxWidth:oe,height:oe,maxHeight:oe,top:oe,right:oe,bottom:oe,left:oe,padding:oe,paddingTop:oe,paddingRight:oe,paddingBottom:oe,paddingLeft:oe,margin:oe,marginTop:oe,marginRight:oe,marginBottom:oe,marginLeft:oe,backgroundPositionX:oe,backgroundPositionY:oe},HP={rotate:Gr,rotateX:Gr,rotateY:Gr,rotateZ:Gr,scale:Sl,scaleX:Sl,scaleY:Sl,scaleZ:Sl,skew:Gr,skewX:Gr,skewY:Gr,distance:oe,translateX:oe,translateY:oe,translateZ:oe,x:oe,y:oe,z:oe,perspective:oe,transformPerspective:oe,opacity:Ns,originX:Tv,originY:Tv,originZ:oe},zv={...Fo,transform:Math.round},Rd={...jP,...HP,zIndex:zv,size:oe,fillOpacity:Ns,strokeOpacity:Ns,numOctaves:zv},WP={...Rd,color:Ct,backgroundColor:Ct,outlineColor:Ct,fill:Ct,stroke:Ct,borderColor:Ct,borderTopColor:Ct,borderRightColor:Ct,borderBottomColor:Ct,borderLeftColor:Ct,filter:Xf,WebkitFilter:Xf},Td=e=>WP[e];function w0(e,t){let n=Td(e);return n!==Xf&&(n=Rr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var UP=new Set(["auto","none","0"]);function GP(e,t,n){let r=0,i;for(;r<e.length&&!i;){let o=e[r];typeof o=="string"&&!UP.has(o)&&js(o).values.length&&(i=e[r]),r++}if(i&&n)for(let o of t)e[o]=w0(n,i)}var S0=class extends kd{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let a=0;a<e.length;a++){let l=e[a];if(typeof l=="string"&&(l=l.trim(),yd(l))){let c=y0(l,t.current);c!==void 0&&(e[a]=c),a===e.length-1&&(this.finalKeyframe=l)}}if(this.resolveNoneKeyframes(),!wP.has(n)||e.length!==2)return;let[r,i]=e,o=Dv(r),s=Dv(i);if(o!==s)if(Mv(o)&&Mv(s))for(let a=0;a<e.length;a++){let l=e[a];typeof l=="string"&&(e[a]=parseFloat(l))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let r=0;r<e.length;r++)LP(e[r])&&n.push(r);n.length&&GP(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n==="height"&&(this.suspendedScrollY=I.pageYOffset),this.measuredOrigin=ko[n](e.measureViewportBox(),I.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;let i=t.getValue(n);i&&i.jump(this.measuredOrigin,!1);let o=r.length-1,s=r[o];r[o]=ko[n](t.measureViewportBox(),I.getComputedStyle(t.current)),s!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=s),!((e=this.removedTransforms)===null||e===void 0)&&e.length&&this.removedTransforms.forEach(([a,l])=>{t.getValue(a).set(l)}),this.resolveNoneKeyframes()}},k0=new Set(["opacity","clipPath","filter","transform"]),qP=10,XP=(e,t)=>{let n="",r=Math.max(Math.round(t/qP),2);for(let i=0;i<r;i++)n+=e(Tr(0,r-1,i))+", ";return`linear(${n.substring(0,n.length-2)})`};function Ed(e){let t;return()=>(t===void 0&&(t=e()),t)}var YP={linearEasing:void 0};function KP(e,t){let n=Ed(e);return()=>{var r;return(r=YP[t])!==null&&r!==void 0?r:n()}}var Ol=KP(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing");function C0(e){return!!(typeof e=="function"&&Ol()||!e||typeof e=="string"&&(e in Yf||Ol())||wd(e)||Array.isArray(e)&&e.every(C0))}var Ls=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Yf={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ls([0,.65,.55,1]),circOut:Ls([.55,0,1,.45]),backIn:Ls([.31,.01,.66,-.59]),backOut:Ls([.33,1.53,.69,.99])};function R0(e,t){if(e)return typeof e=="function"&&Ol()?XP(e,t):wd(e)?Ls(e):Array.isArray(e)?e.map(n=>R0(n,t)||Yf.easeOut):Yf[e]}function QP(e,t,n,{delay:r=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){let c={[t]:n};l&&(c.offset=l);let u=R0(a,i);return Array.isArray(u)&&(c.easing=u),e.animate(c,{delay:r,duration:i,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:o+1,direction:s==="reverse"?"alternate":"normal"})}function Bv(e,t){e.timeline=t,e.onfinish=null}var ZP=Ed(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Ml=10,JP=2e4;function eI(e){return $l(e.type)||e.type==="spring"||!C0(e.ease)}function tI(e,t){let n=new jl({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),r={done:!1,value:e[0]},i=[],o=0;for(;!r.done&&o<JP;)r=n.sample(o),i.push(r.value),o+=Ml;return{times:void 0,keyframes:i,duration:o-Ml,ease:"linear"}}var T0={anticipate:fd,backInOut:ud,circInOut:hd};function nI(e){return e in T0}var Kf=class extends p0{constructor(e){super(e);let{name:t,motionValue:n,element:r,keyframes:i}=this.options;this.resolver=new S0(i,(o,s)=>this.onKeyframesResolved(o,s),t,n,r),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:r=300,times:i,ease:o,type:s,motionValue:a,name:l,startTime:c}=this.options;if(!(!((n=a.owner)===null||n===void 0)&&n.current))return!1;if(typeof o=="string"&&Ol()&&nI(o)&&(o=T0[o]),eI(this.options)){let{onComplete:f,onUpdate:d,motionValue:h,element:p,...y}=this.options,x=tI(e,y);e=x.keyframes,e.length===1&&(e[1]=e[0]),r=x.duration,i=x.times,o=x.ease,s="keyframes"}let u=QP(a.owner.current,l,e,{...this.options,duration:r,times:i,ease:o});return u.startTime=c??this.calcStartTime(),this.pendingTimeline?(Bv(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{let{onComplete:f}=this.options;a.set(Nl(e,this.options,t)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:i,type:s,ease:o,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return Kn(t)}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return Kn(t.currentTime||0)}set time(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.currentTime=Vn(e)}get speed(){let{resolved:e}=this;if(!e)return 1;let{animation:t}=e;return t.playbackRate}set speed(e){let{resolved:t}=this;if(!t)return;let{animation:n}=t;n.playbackRate=e}get state(){let{resolved:e}=this;if(!e)return"idle";let{animation:t}=e;return t.playState}get startTime(){let{resolved:e}=this;if(!e)return null;let{animation:t}=e;return t.startTime}attachTimeline(e){if(!this._resolved)this.pendingTimeline=e;else{let{resolved:t}=this;if(!t)return Rt;let{animation:n}=t;Bv(n,e)}return Rt}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.playState==="finished"&&this.updateFinishedPromise(),t.play()}pause(){let{resolved:e}=this;if(!e)return;let{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:n,duration:r,type:i,ease:o,times:s}=e;if(t.playState==="idle"||t.playState==="finished")return;if(this.time){let{motionValue:l,onUpdate:c,onComplete:u,element:f,...d}=this.options,h=new jl({...d,keyframes:n,duration:r,type:i,ease:o,times:s,isGenerator:!0}),p=Vn(this.time);l.setWithVelocity(h.sample(p-Ml).value,h.sample(p).value,Ml)}let{onStop:a}=this.options;a&&a(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}static supports(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:o,type:s}=e;return ZP()&&n&&k0.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!r&&i!=="mirror"&&o!==0&&s!=="inertia"}};function Fd(e,t){e.indexOf(t)===-1&&e.push(t)}function Hl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function rI([...e],t,n){let r=t<0?e.length+t:t;if(r>=0&&r<e.length){let i=n<0?e.length+n:n,[o]=e.splice(t,1);e.splice(i,0,o)}return e}var Pd=class{constructor(){this.subscriptions=[]}add(e){return Fd(this.subscriptions,e),()=>Hl(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let o=this.subscriptions[i];o&&o(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},$v=30,iI=e=>!isNaN(parseFloat(e)),Ds={current:void 0},Wl=class{constructor(e,t={}){this.version="11.11.7",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(n,r=!0)=>{let i=Zn.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(n),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),r&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Zn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=iI(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new Pd);let n=this.events[e].add(t);return e==="change"?()=>{n(),Q.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.updateAndNotify(e,t):this.passiveEffect(e,this.updateAndNotify)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Ds.current&&Ds.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Zn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>$v)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,$v);return gd(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}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 We(e,t){return new Wl(e,t)}var Ul=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),oI="framerAppearId",Gl="data-"+Ul(oI),Ue=e=>!!(e&&e.getVelocity);function Nv(e){let t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Id(e,t,n,r){if(typeof t=="function"){let[i,o]=Nv(r);t=t(n!==void 0?n:e.custom,i,o)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){let[i,o]=Nv(r);t=t(n!==void 0?n:e.custom,i,o)}return t}function ql(e,t,n){let r=e.getProps();return Id(r,t,n!==void 0?n:r.custom,e)}var sI={type:"spring",stiffness:500,damping:25,restSpeed:10},aI=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),lI={type:"keyframes",duration:.8},cI={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},uI=(e,{keyframes:t})=>t.length>2?lI:Xr.has(e)?e.startsWith("scale")?aI(t[1]):sI:cI;function _d(e,t){return e?e[t]||e.default||e:void 0}var E0=Ed(()=>I.ScrollTimeline!==void 0),F0=class{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e,t){let n=this.animations.map(r=>E0()&&r.attachTimeline?r.attachTimeline(e):t(r));return()=>{n.forEach((r,i)=>{r&&r(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}};function fI({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:c,...u}){return!!Object.keys(u).length}var Od=(e,t,n,r={},i,o)=>s=>{let a=_d(r,e)||{},l=a.delay||r.delay||0,{elapsed:c=0}=r;c=c-Vn(l);let u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-c,onUpdate:d=>{t.set(d),a.onUpdate&&a.onUpdate(d)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:o?void 0:i};fI(a)||(u={...u,...uI(e,u)}),u.duration&&(u.duration=Vn(u.duration)),u.repeatDelay&&(u.repeatDelay=Vn(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let f=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(u.duration=0,u.delay===0&&(f=!0)),(_l.current||Dl.skipAnimations)&&(f=!0,u.duration=0,u.delay=0),f&&!o&&t.get()!==void 0){let d=Nl(u.keyframes,a);if(d!==void 0)return Q.update(()=>{u.onUpdate(d),u.onComplete()}),new F0([])}return!o&&Kf.supports(u)?new Kf(u):new jl(u)},Qf=e=>Array.isArray(e),dI=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),hI=e=>Qf(e)?e[e.length-1]||0:e;function pI(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,We(n))}function Md(e,t){let n=ql(e,t),{transitionEnd:r={},transition:i={},...o}=n||{};o={...o,...r};for(let s in o){let a=hI(o[s]);pI(e,s,a)}}function P0(e){return e.props[Gl]}function mI(e){return!!(Ue(e)&&e.add)}function I0(e){if(Xr.has(e))return"transform";if(k0.has(e))return Ul(e)}function Zf(e,t){var n;if(!e.applyWillChange)return;let r=e.getValue("willChange");if(mI(r))return r.add(t);!(!((n=e.props.style)===null||n===void 0)&&n.willChange)&&I0(t)&&e.setStaticValue("willChange","transform")}function gI({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Ld(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var o;let{transition:s=e.getDefaultTransition(),transitionEnd:a,...l}=t;r&&(s=r);let c=[],u=i&&e.animationState&&e.animationState.getState()[i];for(let f in l){let d=e.getValue(f,(o=e.latestValues[f])!==null&&o!==void 0?o:null),h=l[f];if(h===void 0||u&&gI(u,f))continue;let p={delay:n,..._d(s||{},f)},y=!1;if(I.MotionHandoffAnimation){let m=P0(e);if(m){let g=I.MotionHandoffAnimation(m,f,Q);g!==null&&(p.startTime=g,y=!0)}}Zf(e,f),d.start(Od(f,d,h,e.shouldReduceMotion&&Xr.has(f)?{type:!1}:p,e,y));let x=d.animation;x&&c.push(x)}return a&&Promise.all(c).then(()=>{Q.update(()=>{a&&Md(e,a)})}),c}function Jf(e,t,n={}){var r;let i=ql(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);let s=i?()=>Promise.all(Ld(e,i,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(c=0)=>{let{delayChildren:u=0,staggerChildren:f,staggerDirection:d}=o;return vI(e,t,u+c,f,d,n)}:()=>Promise.resolve(),{when:l}=o;if(l){let[c,u]=l==="beforeChildren"?[s,a]:[a,s];return c().then(()=>u())}else return Promise.all([s(),a(n.delay)])}function vI(e,t,n=0,r=0,i=1,o){let s=[],a=(e.variantChildren.size-1)*r,l=i===1?(c=0)=>c*r:(c=0)=>a-c*r;return Array.from(e.variantChildren).sort(yI).forEach((c,u)=>{c.notify("AnimationStart",t),s.push(Jf(c,t,{...o,delay:n+l(u)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function yI(e,t){return e.sortNodePosition(t)}function Vd(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){let i=t.map(o=>Jf(e,o,n));r=Promise.all(i)}else if(typeof t=="string")r=Jf(e,t,n);else{let i=typeof t=="function"?ql(e,t,n.custom):t;r=Promise.all(Ld(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Ws(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function _0(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Us(e){return typeof e=="string"||Array.isArray(e)}var Ad=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Dd=["initial",...Ad],bI=Dd.length;function O0(e){if(!e)return;if(!e.isControllingVariants){let n=e.parent?O0(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}let t={};for(let n=0;n<bI;n++){let r=Dd[n],i=e.props[r];(Us(i)||i===!1)&&(t[r]=i)}return t}var xI=[...Ad].reverse(),wI=Ad.length;function SI(e){return t=>Promise.all(t.map(({animation:n,options:r})=>Vd(e,n,r)))}function kI(e){let t=SI(e),n=jv(),r=!0,i=l=>(c,u)=>{var f;let d=ql(e,u,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){let{transition:h,transitionEnd:p,...y}=d;c={...c,...y,...p}}return c};function o(l){t=l(e)}function s(l){let{props:c}=e,u=O0(e.parent)||{},f=[],d=new Set,h={},p=1/0;for(let x=0;x<wI;x++){let m=xI[x],g=n[m],v=c[m]!==void 0?c[m]:u[m],b=Us(v),C=m===l?g.isActive:null;C===!1&&(p=x);let S=v===u[m]&&v!==c[m]&&b;if(S&&r&&e.manuallyAnimateOnMount&&(S=!1),g.protectedKeys={...h},!g.isActive&&C===null||!v&&!g.prevProp||Ws(v)||typeof v=="boolean")continue;let R=CI(g.prevProp,v),T=R||m===l&&g.isActive&&!S&&b||x>p&&b,F=!1,P=Array.isArray(v)?v:[v],B=P.reduce(i(m),{});C===!1&&(B={});let{prevResolvedValues:H={}}=g,L={...H,...B},Y=U=>{T=!0,d.has(U)&&(F=!0,d.delete(U)),g.needsAnimating[U]=!0;let ee=e.getValue(U);ee&&(ee.liveStyle=!1)};for(let U in L){let ee=B[U],ae=H[U];if(h.hasOwnProperty(U))continue;let me=!1;Qf(ee)&&Qf(ae)?me=!_0(ee,ae):me=ee!==ae,me?ee!=null?Y(U):d.add(U):ee!==void 0&&d.has(U)?Y(U):g.protectedKeys[U]=!0}g.prevProp=v,g.prevResolvedValues=B,g.isActive&&(h={...h,...B}),r&&e.blockInitialAnimation&&(T=!1),T&&(!(S&&R)||F)&&f.push(...P.map(U=>({animation:U,options:{type:m}})))}if(d.size){let x={};d.forEach(m=>{let g=e.getBaseTarget(m),v=e.getValue(m);v&&(v.liveStyle=!0),x[m]=g??null}),f.push({animation:x})}let y=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(f):Promise.resolve()}function a(l,c){var u;if(n[l].isActive===c)return Promise.resolve();(u=e.variantChildren)===null||u===void 0||u.forEach(d=>{var h;return(h=d.animationState)===null||h===void 0?void 0:h.setActive(l,c)}),n[l].isActive=c;let f=s(l);for(let d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:a,setAnimateFunction:o,getState:()=>n,reset:()=>{n=jv(),r=!0}}}function CI(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!_0(t,e):!1}function Oi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function jv(){return{animate:Oi(!0),whileInView:Oi(),whileHover:Oi(),whileTap:Oi(),whileDrag:Oi(),whileFocus:Oi(),exit:Oi()}}var Yr=class{constructor(e){this.isMounted=!1,this.node=e}update(){}},RI=class extends Yr{constructor(e){super(e),e.animationState||(e.animationState=kI(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();Ws(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)===null||e===void 0||e.call(this)}},TI=0,EI=class extends Yr{constructor(){super(...arguments),this.id=TI++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive("exit",!e);t&&!e&&r.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}},Xl={animation:{Feature:RI},exit:{Feature:EI}},M0=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1;function Yl(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}var L0=e=>t=>M0(t)&&e(t,Yl(t));function kr(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Jn(e,t,n,r){return kr(e,t,L0(n),r)}var ed=(e,t)=>Math.abs(e-t);function V0(e,t){let n=ed(e.x,t.x),r=ed(e.y,t.y);return Math.sqrt(n**2+r**2)}function A0(e){let t=null;return()=>{let n=()=>{t=null};return t===null?(t=e,n):!1}}var Hv=A0("dragHorizontal"),Wv=A0("dragVertical");function D0(e){let t=!1;if(e==="y")t=Wv();else if(e==="x")t=Hv();else{let n=Hv(),r=Wv();n&&r?t=()=>{n(),r()}:(n&&n(),r&&r())}return t}function zd(){let e=D0(!0);return e?(e(),!1):!0}var z0=1e-4,FI=1-z0,PI=1+z0,B0=.01,II=0-B0,_I=0+B0;function Kt(e){return e.max-e.min}function OI(e,t,n){return Math.abs(e-t)<=n}function Uv(e,t,n,r=.5){e.origin=r,e.originPoint=Be(t.min,t.max,e.origin),e.scale=Kt(n)/Kt(t),e.translate=Be(n.min,n.max,e.origin)-e.originPoint,(e.scale>=FI&&e.scale<=PI||isNaN(e.scale))&&(e.scale=1),(e.translate>=II&&e.translate<=_I||isNaN(e.translate))&&(e.translate=0)}function zs(e,t,n,r){Uv(e.x,t.x,n.x,r?r.originX:void 0),Uv(e.y,t.y,n.y,r?r.originY:void 0)}function Gv(e,t,n){e.min=n.min+t.min,e.max=e.min+Kt(t)}function MI(e,t,n){Gv(e.x,t.x,n.x),Gv(e.y,t.y,n.y)}function qv(e,t,n){e.min=t.min-n.min,e.max=e.min+Kt(t)}function Bs(e,t,n){qv(e.x,t.x,n.x),qv(e.y,t.y,n.y)}var Xv=()=>({translate:0,scale:1,origin:0,originPoint:0}),bo=()=>({x:Xv(),y:Xv()}),Yv=()=>({min:0,max:0}),qe=()=>({x:Yv(),y:Yv()}),Io=ke(null);function Kl(){let e=z(Io);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:n,register:r}=e,i=Sr();$(()=>r(i),[]);let o=G(()=>n&&n(i),[i,n]);return!t&&n?[!1,o]:[!0]}var Gs=ke({}),Ql=ke({}),Ll={};function Bd(e){Object.assign(Ll,e)}var LI=(e,t)=>e.depth-t.depth,$0=class{constructor(){this.children=[],this.isDirty=!1}add(e){Fd(this.children,e),this.isDirty=!0}remove(e){Hl(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(LI),this.isDirty=!1,this.children.forEach(e)}};function Mt(e){let t=Ue(e)?e.get():e;return dI(t)?t.toValue():t}function N0(e,t){let n=Zn.now(),r=({timestamp:i})=>{let o=i-n;o>=t&&(Tt(r),e(o-t))};return Q.read(r,!0),()=>Tt(r)}var er=ke({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),Ks=ke({}),Zl=typeof I<"u",Kr=Zl?He:$,j0=ke({strict:!1}),{schedule:$d,cancel:o8}=Ky(queueMicrotask,!1);function xo(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function VI(e,t,n,r,i){var o,s;let{visualElement:a}=z(Ks),l=z(j0),c=z(Io),u=z(er).reducedMotion,f=V();r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:a,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u}));let d=f.current,h=z(Ql);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&AI(f.current,n,i,h),ct(()=>{d&&d.update(n,c)});let p=n[Gl],y=V(!!p&&!(!((o=I.MotionHandoffIsComplete)===null||o===void 0)&&o.call(I,p))&&((s=I.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(I,p)));return Kr(()=>{d&&(I.MotionIsMounted=!0,d.updateFeatures(),$d.render(d.render),y.current&&d.animationState&&d.animationState.animateChanges())}),$(()=>{d&&(!y.current&&d.animationState&&d.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var x;(x=I.MotionHandoffMarkAsComplete)===null||x===void 0||x.call(I,p)}),y.current=!1))}),d}function AI(e,t,n,r){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:H0(e.parent)),e.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&xo(a),visualElement:e,animationType:typeof o=="string"?o:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function H0(e){if(e)return e.options.allowProjection!==!1?e.projection:H0(e.parent)}function DI(e,t,n){return G(r=>{r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):xo(n)&&(n.current=r))},[t])}function Jl(e){return Ws(e.animate)||Dd.some(t=>Us(e[t]))}function W0(e){return!!(Jl(e)||e.variants)}function zI(e,t){if(Jl(e)){let{initial:n,animate:r}=e;return{initial:n===!1||Us(n)?n:void 0,animate:Us(r)?r:void 0}}return e.inherit!==!1?t:{}}function BI(e){let{initial:t,animate:n}=zI(e,z(Ks));return re(()=>({initial:t,animate:n}),[Kv(t),Kv(n)])}function Kv(e){return Array.isArray(e)?e.join(" "):e}var Qv={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"]},Co={};for(let e in Qv)Co[e]={isEnabled:t=>Qv[e].some(n=>!!t[n])};function $I(e){for(let t in e)Co[t]={...Co[t],...e[t]}}var Nd=Symbol.for("motionComponentSymbol");function U0({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){e&&$I(e);function o(a,l){let c,u={...z(er),...a,layoutId:NI(a)},{isStatic:f}=u,d=BI(a),h=r(a,f);if(!f&&Zl){jI(u,e);let p=HI(u);c=p.MeasureLayout,d.visualElement=VI(i,h,u,t,p.ProjectionNode)}return be(Ks.Provider,{value:d,children:[c&&d.visualElement?k(c,{visualElement:d.visualElement,...u}):null,n(i,a,DI(h,d.visualElement,l),h,f,d.visualElement)]})}let s=Oe(o);return s[Nd]=i,s}function NI({layoutId:e}){let t=z(Gs).id;return t&&e!==void 0?t+"-"+e:e}function jI(e,t){let n=z(j0).strict}function HI(e){let{drag:t,layout:n}=Co;if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function nr(e){let t=V(null);return t.current===null&&(t.current=e()),t.current}function WI({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:r},i,o,s,a){let l={latestValues:UI(i,o,s,a?!1:e,t),renderState:n()};return r&&(l.mount=c=>r(i,c,l)),l}var ec=e=>(t,n)=>{let r=z(Ks),i=z(Io),o=()=>WI(e,t,r,i,n);return n?o():nr(o)};function Zv(e,t,n){let r=Array.isArray(t)?t:[t];for(let i=0;i<r.length;i++){let o=Id(e,r[i]);if(o){let{transitionEnd:s,transition:a,...l}=o;n(l,s)}}}function UI(e,t,n,r,i){var o;let s={},a=r&&((o=e.style)===null||o===void 0?void 0:o.willChange)===void 0,l=i(e,{});for(let y in l)s[y]=Mt(l[y]);let{initial:c,animate:u}=e,f=Jl(e),d=W0(e);t&&d&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),u===void 0&&(u=t.animate));let h=n?n.initial===!1:!1;h=h||c===!1;let p=h?u:c;return p&&typeof p!="boolean"&&!Ws(p)&&Zv(e,p,(y,x)=>{for(let m in y){let g=y[m];if(Array.isArray(g)){let v=h?g.length-1:0;g=g[v]}g!==null&&(s[m]=g)}for(let m in x)s[m]=x[m]}),a&&u&&c!==!1&&!Ws(u)&&Zv(e,u,y=>{for(let x in y)if(I0(x)){s.willChange="transform";return}}),s}var G0=(e,t)=>t&&typeof e=="number"?t.transform(e):e,GI={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qI=Ys.length;function q0(e,t,n){let r="",i=!0;for(let o=0;o<qI;o++){let s=Ys[o],a=e[s];if(a===void 0)continue;let l=!0;if(typeof a=="number"?l=a===(s.startsWith("scale")?1:0):l=parseFloat(a)===0,!l||n){let c=G0(a,Rd[s]);if(!l){i=!1;let u=GI[s]||s;r+=`${u}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}var XI=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ro(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||XI.has(e)}var X0=e=>!Ro(e);function Y0(e){e&&(X0=t=>t.startsWith("on")?!Ro(t):e(t))}try{Y0(MF().default)}catch{}function K0(e,t,n){let r={};for(let i in e)i==="values"&&typeof e.values=="object"||(X0(i)||n===!0&&Ro(i)||!t&&!Ro(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}var tr=new WeakMap,Vl={current:null},jd={current:!1};function Q0(){if(jd.current=!0,!!Zl)if(I.matchMedia){let e=I.matchMedia("(prefers-reduced-motion)"),t=()=>Vl.current=e.matches;e.addListener(t),t()}else Vl.current=!1}function YI(e,t,n){for(let r in t){let i=t[r],o=n[r];if(Ue(i))e.addValue(r,i);else if(Ue(o))e.addValue(r,We(i,{owner:e}));else if(o!==i)if(e.hasValue(r)){let s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{let s=e.getStaticValue(r);e.addValue(r,We(s!==void 0?s:i,{owner:e}))}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var KI=[...x0,Ct,Rr],QI=e=>KI.find(b0(e)),Jv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Hd=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,blockInitialAnimation:i,visualState:o},s={}){this.applyWillChange=!1,this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=kd,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let f=Zn.now();this.renderScheduledAt<f&&(this.renderScheduledAt=f,Q.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=t.initial?{...a}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=Jl(t),this.isVariantNode=W0(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:c,...u}=this.scrapeMotionValuesFromProps(t,{},this);for(let f in u){let d=u[f];a[f]!==void 0&&Ue(d)&&d.set(a[f],!1)}}mount(e){this.current=e,tr.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((t,n)=>this.bindToMotionValue(n,t)),jd.current||Q0(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Vl.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){tr.delete(this.current),this.projection&&this.projection.unmount(),Tt(this.notifyUpdate),Tt(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=Xr.has(e),r=t.on("change",s=>{this.latestValues[e]=s,this.props.onUpdate&&Q.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=t.on("renderRequest",this.scheduleRender),o;I.MotionCheckAppearSync&&(o=I.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i(),o&&o(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Co){let t=Co[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let i=this.features[e];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qe()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=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 n=0;n<Jv.length;n++){let r=Jv[n];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let i="on"+r,o=e[i];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=YI(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&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 n===void 0&&t!==void 0&&(n=We(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let r=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:(n=this.getBaseTargetFromProps(this.props,e))!==null&&n!==void 0?n:this.readValueFromInstance(this.current,e,this.options);return r!=null&&(typeof r=="string"&&(v0(r)||g0(r))?r=parseFloat(r):!QI(r)&&Rr.test(t)&&(r=w0(e,t)),this.setBaseTarget(e,Ue(r)?r.get():r)),Ue(r)?r.get():r}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let{initial:n}=this.props,r;if(typeof n=="string"||typeof n=="object"){let o=Id(this.props,n,(t=this.presenceContext)===null||t===void 0?void 0:t.custom);o&&(r=o[e])}if(n&&r!==void 0)return r;let i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!Ue(i)?i:this.initialValues[e]!==void 0&&r===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new Pd),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}};function ZI(e){if(typeof Proxy>"u")return e;let t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}var Z0=class{constructor(e,t,{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=I,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let u=Of(this.lastMoveEventInfo,this.history),f=this.startEvent!==null,d=V0(u.offset,{x:0,y:0})>=3;if(!f&&!d)return;let{point:h}=u,{timestamp:p}=et;this.history.push({...h,timestamp:p});let{onStart:y,onMove:x}=this.handlers;f||(y&&y(this.lastMoveEvent,u),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,u)},this.handlePointerMove=(u,f)=>{this.lastMoveEvent=u,this.lastMoveEventInfo=_f(f,this.transformPagePoint),Q.update(this.updatePoint,!0)},this.handlePointerUp=(u,f)=>{this.end();let{onEnd:d,onSessionEnd:h,resumeAnimation:p}=this.handlers;if(this.dragSnapToOrigin&&p&&p(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let y=Of(u.type==="pointercancel"?this.lastMoveEventInfo:_f(f,this.transformPagePoint),this.history);this.startEvent&&d&&d(u,y),h&&h(u,y)},!M0(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.contextWindow=r||I;let o=Yl(e),s=_f(o,this.transformPagePoint),{point:a}=s,{timestamp:l}=et;this.history=[{...a,timestamp:l}];let{onSessionStart:c}=t;c&&c(e,Of(s,this.history)),this.removeListeners=Qn(Jn(this.contextWindow,"pointermove",this.handlePointerMove),Jn(this.contextWindow,"pointerup",this.handlePointerUp),Jn(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Tt(this.updatePoint)}};function _f(e,t){return t?{point:t(e.point)}:e}function ey(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Of({point:e},t){return{point:e,delta:ey(e,J0(t)),offset:ey(e,JI(t)),velocity:e2(t,.1)}}function JI(e){return e[0]}function J0(e){return e[e.length-1]}function e2(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=J0(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Vn(t)));)n--;if(!r)return{x:0,y:0};let o=Kn(i.timestamp-r.timestamp);if(o===0)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function t2(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Be(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Be(n,e,r.max):Math.min(e,n)),e}function ty(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function n2(e,{top:t,left:n,bottom:r,right:i}){return{x:ty(e.x,n,i),y:ty(e.y,t,r)}}function ny(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function r2(e,t){return{x:ny(e.x,t.x),y:ny(e.y,t.y)}}function i2(e,t){let n=.5,r=Kt(e),i=Kt(t);return i>r?n=Tr(t.min,t.max-r,e.min):r>i&&(n=Tr(e.min,e.max-i,t.min)),Cr(0,1,n)}function o2(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var td=.35;function s2(e=td){return e===!1?e=0:e===!0&&(e=td),{x:ry(e,"left","right"),y:ry(e,"top","bottom")}}function ry(e,t,n){return{min:iy(e,t),max:iy(e,n)}}function iy(e,t){return typeof e=="number"?e:e[t]||0}function kn(e){return[e("x"),e("y")]}function eb({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function a2({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function l2(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Mf(e){return e===void 0||e===1}function nd({scale:e,scaleX:t,scaleY:n}){return!Mf(e)||!Mf(t)||!Mf(n)}function Mi(e){return nd(e)||tb(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function tb(e){return oy(e.x)||oy(e.y)}function oy(e){return e&&e!=="0%"}function Al(e,t,n){let r=e-n,i=t*r;return n+i}function sy(e,t,n,r,i){return i!==void 0&&(e=Al(e,i,r)),Al(e,n,r)+t}function rd(e,t=0,n=1,r,i){e.min=sy(e.min,t,n,r,i),e.max=sy(e.max,t,n,r,i)}function nb(e,{x:t,y:n}){rd(e.x,t.translate,t.scale,t.originPoint),rd(e.y,n.translate,n.scale,n.originPoint)}var ay=.999999999999,ly=1.0000000000001;function c2(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let o,s;for(let a=0;a<i;a++){o=n[a],s=o.projectionDelta;let{visualElement:l}=o.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&So(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,nb(e,s)),r&&Mi(o.latestValues)&&So(e,o.latestValues))}t.x<ly&&t.x>ay&&(t.x=1),t.y<ly&&t.y>ay&&(t.y=1)}function wo(e,t){e.min=e.min+t,e.max=e.max+t}function cy(e,t,n,r,i=.5){let o=Be(e.min,e.max,i);rd(e,t,n,o,r)}function So(e,t){cy(e.x,t.x,t.scaleX,t.scale,t.originX),cy(e.y,t.y,t.scaleY,t.scale,t.originY)}function rb(e,t){return eb(l2(e.getBoundingClientRect(),t))}function u2(e,t,n){let r=rb(e,n),{scroll:i}=t;return i&&(wo(r.x,i.offset.x),wo(r.y,i.offset.y)),r}var ib=({current:e})=>e?e.ownerDocument.defaultView:null,f2=new WeakMap,d2=class{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=qe(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:n}=this.visualElement;if(n&&n.isPresent===!1)return;let r=c=>{let{dragSnapToOrigin:u}=this.getProps();u?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Yl(c,"page").point)},i=(c,u)=>{let{drag:f,dragPropagation:d,onDragStart:h}=this.getProps();if(f&&!d&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=D0(f),!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),kn(y=>{let x=this.getAxisMotionValue(y).get()||0;if(Yn.test(x)){let{projection:m}=this.visualElement;if(m&&m.layout){let g=m.layout.layoutBox[y];g&&(x=Kt(g)*(parseFloat(x)/100))}}this.originPoint[y]=x}),h&&Q.postRender(()=>h(c,u)),Zf(this.visualElement,"transform");let{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},o=(c,u)=>{let{dragPropagation:f,dragDirectionLock:d,onDirectionLock:h,onDrag:p}=this.getProps();if(!f&&!this.openGlobalLock)return;let{offset:y}=u;if(d&&this.currentDirection===null){this.currentDirection=h2(y),this.currentDirection!==null&&h&&h(this.currentDirection);return}this.updateAxis("x",u.point,y),this.updateAxis("y",u.point,y),this.visualElement.render(),p&&p(c,u)},s=(c,u)=>this.stop(c,u),a=()=>kn(c=>{var u;return this.getAnimationState(c)==="paused"&&((u=this.getAxisMotionValue(c).animation)===null||u===void 0?void 0:u.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new Z0(e,{onSessionStart:r,onStart:i,onMove:o,onSessionEnd:s,resumeAnimation:a},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:ib(this.visualElement)})}stop(e,t){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=t;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&Q.postRender(()=>i(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:r}=this.getProps();if(!n||!kl(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=t2(o,this.constraints[e],this.elastic[e])),i.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(e=this.visualElement.projection)===null||e===void 0?void 0:e.layout,i=this.constraints;t&&xo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=n2(r.layoutBox,t):this.constraints=!1,this.elastic=s2(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&kn(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=o2(r.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!xo(e))return!1;let n=e.current;un(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=u2(n,r.root,this.visualElement.getTransformPagePoint()),o=r2(r.layout.layoutBox,i);if(t){let s=t(a2(o));this.hasMutatedConstraints=!!s,s&&(o=eb(s))}return o}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=kn(c=>{if(!kl(c,t,this.currentDirection))return;let u=a&&a[c]||{};o&&(u={min:0,max:0});let f=r?200:1e6,d=r?40:1e7,h={type:"inertia",velocity:n?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...i,...u};return this.startAxisValueAnimation(c,h)});return Promise.all(l).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Zf(this.visualElement,e),n.start(Od(e,n,0,t,this.visualElement,!1))}stopAnimation(){kn(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){kn(e=>{var t;return(t=this.getAxisMotionValue(e).animation)===null||t===void 0?void 0:t.pause()})}getAnimationState(e){var t;return(t=this.getAxisMotionValue(e).animation)===null||t===void 0?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){kn(t=>{let{drag:n}=this.getProps();if(!kl(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:o,max:s}=r.layout.layoutBox[t];i.set(e[t]-Be(o,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!xo(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};kn(o=>{let s=this.getAxisMotionValue(o);if(s&&this.constraints!==!1){let a=s.get();r[o]=i2({min:a,max:a},this.constraints[o])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),kn(o=>{if(!kl(o,e,null))return;let s=this.getAxisMotionValue(o),{min:a,max:l}=this.constraints[o];s.set(Be(a,l,r[o]))})}addListeners(){if(!this.visualElement.current)return;f2.set(this.visualElement,this);let e=this.visualElement.current,t=Jn(e,"pointerdown",a=>{let{drag:l,dragListener:c=!0}=this.getProps();l&&c&&this.start(a)}),n=()=>{let{dragConstraints:a}=this.getProps();xo(a)&&a.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Q.read(n);let o=kr(I,"resize",()=>this.scalePositionWithinConstraints()),s=r.addEventListener("didUpdate",({delta:a,hasLayoutChanged:l})=>{this.isDragging&&l&&(kn(c=>{let u=this.getAxisMotionValue(c);u&&(this.originPoint[c]+=a[c].translate,u.set(u.get()+a[c].translate))}),this.visualElement.render())});return()=>{o(),t(),i(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=td,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}};function kl(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function h2(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}var p2=class extends Yr{constructor(e){super(e),this.removeGroupControls=Rt,this.removeListeners=Rt,this.controls=new d2(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Rt}unmount(){this.removeGroupControls(),this.removeListeners()}},uy=e=>(t,n)=>{e&&Q.postRender(()=>e(t,n))},m2=class extends Yr{constructor(){super(...arguments),this.removePointerDownListener=Rt}onPointerDown(e){this.session=new Z0(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:ib(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:uy(e),onStart:uy(t),onMove:n,onEnd:(i,o)=>{delete this.session,r&&Q.postRender(()=>r(i,o))}}}mount(){this.removePointerDownListener=Jn(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},El={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function fy(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var _s={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(oe.test(e))e=parseFloat(e);else return e;let n=fy(e,t.target.x),r=fy(e,t.target.y);return`${n}% ${r}%`}},g2={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Rr.parse(e);if(i.length>5)return r;let o=Rr.createTransformer(e),s=typeof i[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=a,i[1+s]/=l;let c=Be(a,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=c),typeof i[3+s]=="number"&&(i[3+s]/=c),o(i)}},v2=class extends Fe{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;Bd(y2),i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),El.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||e.layoutDependency!==t||t===void 0?o.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?o.promote():o.relegate()||Q.postRender(()=>{let s=o.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),$d.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function ob(e){let[t,n]=Kl(),r=z(Gs);return k(v2,{...e,layoutGroup:r,switchLayoutGroup:z(Ql),isPresent:t,safeToRemove:n})}var y2={borderRadius:{..._s,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:_s,borderTopRightRadius:_s,borderBottomLeftRadius:_s,borderBottomRightRadius:_s,boxShadow:g2},sb=["TopLeft","TopRight","BottomLeft","BottomRight"],b2=sb.length,dy=e=>typeof e=="string"?parseFloat(e):e,hy=e=>typeof e=="number"||oe.test(e);function x2(e,t,n,r,i,o){i?(e.opacity=Be(0,n.opacity!==void 0?n.opacity:1,w2(r)),e.opacityExit=Be(t.opacity!==void 0?t.opacity:1,0,S2(r))):o&&(e.opacity=Be(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<b2;s++){let a=`border${sb[s]}Radius`,l=py(t,a),c=py(n,a);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||hy(l)===hy(c)?(e[a]=Math.max(Be(dy(l),dy(c),r),0),(Yn.test(c)||Yn.test(l))&&(e[a]+="%")):e[a]=c}(t.rotate||n.rotate)&&(e.rotate=Be(t.rotate||0,n.rotate||0,r))}function py(e,t){return e[t]!==void 0?e[t]:e.borderRadius}var w2=ab(0,.5,dd),S2=ab(.5,.95,Rt);function ab(e,t,n){return r=>r<e?0:r>t?1:n(Tr(e,t,r))}function my(e,t){e.min=t.min,e.max=t.max}function Sn(e,t){my(e.x,t.x),my(e.y,t.y)}function gy(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function vy(e,t,n,r,i){return e-=t,e=Al(e,1/n,r),i!==void 0&&(e=Al(e,1/i,r)),e}function k2(e,t=0,n=1,r=.5,i,o=e,s=e){if(Yn.test(t)&&(t=parseFloat(t),t=Be(s.min,s.max,t/100)-s.min),typeof t!="number")return;let a=Be(o.min,o.max,r);e===o&&(a-=t),e.min=vy(e.min,t,n,a,i),e.max=vy(e.max,t,n,a,i)}function yy(e,t,[n,r,i],o,s){k2(e,t[n],t[r],t[i],t.scale,o,s)}var C2=["x","scaleX","originX"],R2=["y","scaleY","originY"];function by(e,t,n,r){yy(e.x,t,C2,n?n.x:void 0,r?r.x:void 0),yy(e.y,t,R2,n?n.y:void 0,r?r.y:void 0)}function xy(e){return e.translate===0&&e.scale===1}function lb(e){return xy(e.x)&&xy(e.y)}function wy(e,t){return e.min===t.min&&e.max===t.max}function T2(e,t){return wy(e.x,t.x)&&wy(e.y,t.y)}function Sy(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function cb(e,t){return Sy(e.x,t.x)&&Sy(e.y,t.y)}function ky(e){return Kt(e.x)/Kt(e.y)}function Cy(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}var E2=class{constructor(){this.members=[]}add(e){Fd(this.members,e),e.scheduleRender()}remove(e){if(Hl(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(e){let t=this.members.findIndex(r=>e===r);if(t===0)return!1;let n;for(let r=t;r>=0;r--){let i=this.members[r];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}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:r}=e.options;r===!1&&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 F2(e,t,n){let r="",i=e.x.translate/t.x,o=e.y.translate/t.y,s=n?.z||0;if((i||o||s)&&(r=`translate3d(${i}px, ${o}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:c,rotate:u,rotateX:f,rotateY:d,skewX:h,skewY:p}=n;c&&(r=`perspective(${c}px) ${r}`),u&&(r+=`rotate(${u}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),p&&(r+=`skewY(${p}deg) `)}let a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(r+=`scale(${a}, ${l})`),r||"none"}function ub(e){return e instanceof SVGElement&&e.tagName!=="svg"}function fb(e,t,n){let r=Ue(e)?e:We(e);return r.start(Od("",r,t,n)),r.animation}var Li={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Vs=typeof I<"u"&&I.MotionDebug!==void 0,Lf=["","X","Y","Z"],P2={visibility:"hidden"},Ry=1e3,I2=0;function Vf(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function db(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=P0(t);if(I.MotionHasOptimisedAnimation(n,"transform")){let{layout:i,layoutId:o}=e.options;I.MotionCancelOptimisedAnimation(n,"transform",Q,!(i||o))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&db(r)}function hb({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},a=t?.()){this.id=I2++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Vs&&(Li.totalNodes=Li.resolvedTargetDeltas=Li.recalculatedProjection=0),this.nodes.forEach(M2),this.nodes.forEach(z2),this.nodes.forEach(B2),this.nodes.forEach(L2),Vs&&I.MotionDebug.record(Li)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new $0)}addEventListener(s,a){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Pd),this.eventHandlers.get(s).add(a)}notifyListeners(s,...a){let l=this.eventHandlers.get(s);l&&l.notify(...a)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,a=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=ub(s),this.instance=s;let{layoutId:l,layout:c,visualElement:u}=this.options;if(u&&!u.current&&u.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),a&&(c||l)&&(this.isLayoutDirty=!0),e){let f,d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=N0(d,250),El.hasAnimatedSinceResize&&(El.hasAnimatedSinceResize=!1,this.nodes.forEach(Ey))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&u&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:p})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let y=this.options.transition||u.getDefaultTransition()||W2,{onLayoutAnimationStart:x,onLayoutAnimationComplete:m}=u.getProps(),g=!this.targetLayout||!cb(this.targetLayout,p)||h,v=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);let b={..._d(y,"layout"),onPlay:x,onComplete:m};(u.shouldReduceMotion||this.options.layoutRoot)&&(b.delay=0,b.type=!1),this.startAnimation(b)}else d||Ey(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=p})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Tt(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($2),this.animationId++)}getTransformTemplate(){let{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(I.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&db(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let u=0;u<this.path.length;u++){let f=this.path[u];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}let{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;let c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Ty);return}this.isUpdating||this.nodes.forEach(A2),this.isUpdating=!1,this.nodes.forEach(D2),this.nodes.forEach(_2),this.nodes.forEach(O2),this.clearAllSnapshots();let a=Zn.now();et.delta=Cr(0,1e3/60,a-et.timestamp),et.timestamp=a,et.isProcessing=!0,Rl.update.process(et),Rl.preRender.process(et),Rl.render.process(et),et.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$d.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(V2),this.sharedNodes.forEach(N2)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Q.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Q.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 l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=qe(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(a=!1),a){let l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;let s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!lb(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,u=c!==this.prevTransformTemplateValue;s&&(a||Mi(this.latestValues)||u)&&(i(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){let a=this.measurePageBox(),l=this.removeElementScroll(a);return s&&(l=this.removeTransform(l)),U2(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;let{visualElement:a}=this.options;if(!a)return qe();let l=a.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(G2))){let{scroll:u}=this.root;u&&(wo(l.x,u.offset.x),wo(l.y,u.offset.y))}return l}removeElementScroll(s){var a;let l=qe();if(Sn(l,s),!((a=this.scroll)===null||a===void 0)&&a.wasRoot)return l;for(let c=0;c<this.path.length;c++){let u=this.path[c],{scroll:f,options:d}=u;u!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&Sn(l,s),wo(l.x,f.offset.x),wo(l.y,f.offset.y))}return l}applyTransform(s,a=!1){let l=qe();Sn(l,s);for(let c=0;c<this.path.length;c++){let u=this.path[c];!a&&u.options.layoutScroll&&u.scroll&&u!==u.root&&So(l,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),Mi(u.latestValues)&&So(l,u.latestValues)}return Mi(this.latestValues)&&So(l,this.latestValues),l}removeTransform(s){let a=qe();Sn(a,s);for(let l=0;l<this.path.length;l++){let c=this.path[l];if(!c.instance||!Mi(c.latestValues))continue;nd(c.latestValues)&&c.updateSnapshot();let u=qe(),f=c.measurePageBox();Sn(u,f),by(a,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,u)}return Mi(this.latestValues)&&by(a,this.latestValues),a}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==et.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var a;let l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);let c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((a=this.parent)===null||a===void 0)&&a.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=et.timestamp,!this.targetDelta&&!this.relativeTarget){let h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qe(),this.relativeTargetOrigin=qe(),Bs(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=qe(),this.targetWithTransforms=qe()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),MI(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Sn(this.target,this.layout.layoutBox),nb(this.target,this.targetDelta)):Sn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qe(),this.relativeTargetOrigin=qe(),Bs(this.relativeTargetOrigin,this.target,h.target),Sn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Vs&&Li.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||nd(this.parent.latestValues)||tb(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;let a=this.getLead(),l=!!this.resumingFrom||this!==a,c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===et.timestamp&&(c=!1),c)return;let{layout:u,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||f))return;Sn(this.layoutCorrected,this.layout.layoutBox);let d=this.treeScale.x,h=this.treeScale.y;c2(this.layoutCorrected,this.treeScale,this.path,l),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=qe());let{target:p}=a;if(!p){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(gy(this.prevProjectionDelta.x,this.projectionDelta.x),gy(this.prevProjectionDelta.y,this.projectionDelta.y)),zs(this.projectionDelta,this.layoutCorrected,p,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!Cy(this.projectionDelta.x,this.prevProjectionDelta.x)||!Cy(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",p)),Vs&&Li.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var a;if((a=this.options.visualElement)===null||a===void 0||a.scheduleRender(),s){let l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=bo(),this.projectionDelta=bo(),this.projectionDeltaWithTransform=bo()}setAnimationOrigin(s,a=!1){let l=this.snapshot,c=l?l.latestValues:{},u={...this.latestValues},f=bo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;let d=qe(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,y=h!==p,x=this.getStack(),m=!x||x.members.length<=1,g=!!(y&&!m&&this.options.crossfade===!0&&!this.path.some(H2));this.animationProgress=0;let v;this.mixTargetDelta=b=>{let C=b/1e3;Fy(f.x,s.x,C),Fy(f.y,s.y,C),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bs(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),j2(this.relativeTarget,this.relativeTargetOrigin,d,C),v&&T2(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=qe()),Sn(v,this.relativeTarget)),y&&(this.animationValues=u,x2(u,c,this.latestValues,C,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=C},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Tt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Q.update(()=>{El.hasAnimatedSinceResize=!0,this.currentAnimation=fb(0,Ry,{...s,onUpdate:a=>{this.mixTargetDelta(a),s.onUpdate&&s.onUpdate(a)},onComplete:()=>{s.onComplete&&s.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 s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Ry),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let s=this.getLead(),{targetWithTransforms:a,target:l,layout:c,latestValues:u}=s;if(!(!a||!l||!c)){if(this!==s&&this.layout&&c&&pb(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||qe();let f=Kt(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;let d=Kt(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Sn(a,l),So(a,u),zs(this.projectionDeltaWithTransform,this.layoutCorrected,a,u)}}registerSharedNode(s,a){this.sharedNodes.has(s)||this.sharedNodes.set(s,new E2),this.sharedNodes.get(s).add(a);let c=a.options.initialPromotionConfig;a.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(a):void 0})}isLead(){let s=this.getStack();return s?s.lead===this:!0}getLead(){var s;let{layoutId:a}=this.options;return a?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;let{layoutId:a}=this.options;return a?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){let{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:a,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){let s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){let{visualElement:s}=this.options;if(!s)return;let a=!1,{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;let c={};l.z&&Vf("z",s,c,this.animationValues);for(let u=0;u<Lf.length;u++)Vf(`rotate${Lf[u]}`,s,c,this.animationValues),Vf(`skew${Lf[u]}`,s,c,this.animationValues);s.render();for(let u in c)s.setStaticValue(u,c[u]),this.animationValues&&(this.animationValues[u]=c[u]);s.scheduleRender()}getProjectionStyles(s){var a,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return P2;let c={visibility:""},u=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Mt(s?.pointerEvents)||"",c.transform=u?u(this.latestValues,""):"none",c;let f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){let y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Mt(s?.pointerEvents)||""),this.hasProjected&&!Mi(this.latestValues)&&(y.transform=u?u({},""):"none",this.hasProjected=!1),y}let d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=F2(this.projectionDeltaWithTransform,this.treeScale,d),u&&(c.transform=u(d,c.transform));let{x:h,y:p}=this.projectionDelta;c.transformOrigin=`${h.origin*100}% ${p.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(a=d.opacity)!==null&&a!==void 0?a:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:c.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(let y in Ll){if(d[y]===void 0)continue;let{correct:x,applyTo:m}=Ll[y],g=c.transform==="none"?d[y]:x(d[y],f);if(m){let v=m.length;for(let b=0;b<v;b++)c[m[b]]=g}else c[y]=g}return this.options.layoutId&&(c.pointerEvents=f===this?Mt(s?.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var a;return(a=s.currentAnimation)===null||a===void 0?void 0:a.stop()}),this.root.nodes.forEach(Ty),this.root.sharedNodes.clear()}}}function _2(e){e.updateLayout()}function O2(e){var t;let n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:r,measuredBox:i}=e.layout,{animationType:o}=e.options,s=n.source!==e.layout.source;o==="size"?kn(f=>{let d=s?n.measuredBox[f]:n.layoutBox[f],h=Kt(d);d.min=r[f].min,d.max=d.min+h}):pb(o,n.layoutBox,r)&&kn(f=>{let d=s?n.measuredBox[f]:n.layoutBox[f],h=Kt(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});let a=bo();zs(a,r,n.layoutBox);let l=bo();s?zs(l,e.applyTransform(i,!0),n.measuredBox):zs(l,r,n.layoutBox);let c=!lb(a),u=!1;if(!e.resumeFrom){let f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){let{snapshot:d,layout:h}=f;if(d&&h){let p=qe();Bs(p,n.layoutBox,d.layoutBox);let y=qe();Bs(y,r,h.layoutBox),cb(p,y)||(u=!0),f.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=p,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:a,hasLayoutChanged:c,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function M2(e){Vs&&Li.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 L2(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function V2(e){e.clearSnapshot()}function Ty(e){e.clearMeasurements()}function A2(e){e.isLayoutDirty=!1}function D2(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ey(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function z2(e){e.resolveTargetDelta()}function B2(e){e.calcProjection()}function $2(e){e.resetSkewAndRotation()}function N2(e){e.removeLeadSnapshot()}function Fy(e,t,n){e.translate=Be(t.translate,0,n),e.scale=Be(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Py(e,t,n,r){e.min=Be(t.min,n.min,r),e.max=Be(t.max,n.max,r)}function j2(e,t,n,r){Py(e.x,t.x,n.x,r),Py(e.y,t.y,n.y,r)}function H2(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var W2={duration:.45,ease:[.4,0,.1,1]},Iy=e=>typeof ze<"u"&&ze.userAgent&&ze.userAgent.toLowerCase().includes(e),_y=Iy("applewebkit/")&&!Iy("chrome/")?Math.round:Rt;function Oy(e){e.min=_y(e.min),e.max=_y(e.max)}function U2(e){Oy(e.x),Oy(e.y)}function pb(e,t,n){return e==="position"||e==="preserve-aspect"&&!OI(ky(t),ky(n),.2)}function G2(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}var q2=hb({attachResizeListener:(e,t)=>kr(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Di={current:void 0},mb=hb({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Di.current){let e=new q2({});e.mount(I),e.setOptions({layoutScroll:!0}),Di.current=e}return Di.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>I.getComputedStyle(e).position==="fixed"}),gb={pan:{Feature:m2},drag:{Feature:p2,ProjectionNode:mb,MeasureLayout:ob}};function My(e,t){let n=t?"pointerenter":"pointerleave",r=t?"onHoverStart":"onHoverEnd",i=(o,s)=>{if(o.pointerType==="touch"||zd())return;let a=e.getProps();e.animationState&&a.whileHover&&e.animationState.setActive("whileHover",t);let l=a[r];l&&Q.postRender(()=>l(o,s))};return Jn(e.current,n,i,{passive:!e.getProps()[r]})}var X2=class extends Yr{mount(){this.unmount=Qn(My(this.node,!0),My(this.node,!1))}unmount(){}},Y2=class extends Yr{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{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=Qn(kr(this.node.current,"focus",()=>this.onFocus()),kr(this.node.current,"blur",()=>this.onBlur()))}unmount(){}},vb=(e,t)=>t?e===t?!0:vb(e,t.parentElement):!1;function Af(e,t){if(!t)return;let n=new PointerEvent("pointer"+e);t(n,Yl(n))}var K2=class extends Yr{constructor(){super(...arguments),this.removeStartListeners=Rt,this.removeEndListeners=Rt,this.removeAccessibleListeners=Rt,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();let n=this.node.getProps(),i=Jn(I,"pointerup",(s,a)=>{if(!this.checkPressEnd())return;let{onTap:l,onTapCancel:c,globalTapTarget:u}=this.node.getProps(),f=!u&&!vb(this.node.current,s.target)?c:l;f&&Q.update(()=>f(s,a))},{passive:!(n.onTap||n.onPointerUp)}),o=Jn(I,"pointercancel",(s,a)=>this.cancelPress(s,a),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Qn(i,o),this.startPress(e,t)},this.startAccessiblePress=()=>{let e=i=>{if(i.key!=="Enter"||this.isPressing)return;let o=s=>{s.key!=="Enter"||!this.checkPressEnd()||Af("up",(a,l)=>{let{onTap:c}=this.node.getProps();c&&Q.postRender(()=>c(a,l))})};this.removeEndListeners(),this.removeEndListeners=kr(this.node.current,"keyup",o),Af("down",(s,a)=>{this.startPress(s,a)})},t=kr(this.node.current,"keydown",e),n=()=>{this.isPressing&&Af("cancel",(i,o)=>this.cancelPress(i,o))},r=kr(this.node.current,"blur",n);this.removeAccessibleListeners=Qn(t,r)}}startPress(e,t){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&Q.postRender(()=>n(e,t))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!zd()}cancelPress(e,t){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&Q.postRender(()=>n(e,t))}mount(){let e=this.node.getProps(),t=Jn(e.globalTapTarget?I:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=kr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Qn(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}},id=new WeakMap,Df=new WeakMap,Q2=e=>{let t=id.get(e.target);t&&t(e)},Z2=e=>{e.forEach(Q2)};function J2({root:e,...t}){let n=e||document;Df.has(n)||Df.set(n,{});let r=Df.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Z2,{root:e,...t})),r[i]}function e_(e,t,n){let r=J2(t);return id.set(e,n),r.observe(e),()=>{id.delete(e),r.unobserve(e)}}var t_={some:0,all:1},n_=class extends Yr{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r="some",once:i}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:typeof r=="number"?r:t_[r]},s=a=>{let{isIntersecting:l}=a;if(this.isInView===l||(this.isInView=l,i&&!l&&this.hasEnteredView))return;l&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",l);let{onViewportEnter:c,onViewportLeave:u}=this.node.getProps(),f=l?c:u;f&&f(a)};return e_(this.node.current,o,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(r_(e,t))&&this.startObserver()}unmount(){}};function r_({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var yb={inView:{Feature:n_},tap:{Feature:K2},focus:{Feature:Y2},hover:{Feature:X2}},bb={layout:{ProjectionNode:mb,MeasureLayout:ob}},i_=["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 Wd(e){return typeof e!="string"||e.includes("-")?!1:!!(i_.indexOf(e)>-1||/[A-Z]/u.test(e))}function xb(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(let o in n)e.style.setProperty(o,n[o])}var wb=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 Sb(e,t,n,r){xb(e,t,void 0,r);for(let i in t.attrs)e.setAttribute(wb.has(i)?i:Ul(i),t.attrs[i])}function kb(e,{layout:t,layoutId:n}){return Xr.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Ll[e]||e==="opacity")}function Ud(e,t,n){var r;let{style:i}=e,o={};for(let s in i)(Ue(i[s])||t.style&&Ue(t.style[s])||kb(s,e)||((r=n?.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(o[s]=i[s]);return n&&i&&typeof i.willChange=="string"&&(n.applyWillChange=!1),o}function Cb(e,t,n){let r=Ud(e,t,n);for(let i in e)if(Ue(e[i])||Ue(t[i])){let o=Ys.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[o]=e[i]}return r}var Gd=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Rb=()=>({...Gd(),attrs:{}});function qd(e,t,n){let{style:r,vars:i,transformOrigin:o}=e,s=!1,a=!1;for(let l in t){let c=t[l];if(Xr.has(l)){s=!0;continue}else if(l0(l)){i[l]=c;continue}else{let u=G0(c,Rd[l]);l.startsWith("origin")?(a=!0,o[l]=u):r[l]=u}}if(t.transform||(s||n?r.transform=q0(t,e.transform,n):r.transform&&(r.transform="none")),a){let{originX:l="50%",originY:c="50%",originZ:u=0}=o;r.transformOrigin=`${l} ${c} ${u}`}}function Ly(e,t,n){return typeof e=="string"?e:oe.transform(t+n*e)}function o_(e,t,n){let r=Ly(t,e.x,e.width),i=Ly(n,e.y,e.height);return`${r} ${i}`}var s_={offset:"stroke-dashoffset",array:"stroke-dasharray"},a_={offset:"strokeDashoffset",array:"strokeDasharray"};function l_(e,t,n=1,r=0,i=!0){e.pathLength=1;let o=i?s_:a_;e[o.offset]=oe.transform(-r);let s=oe.transform(t),a=oe.transform(n);e[o.array]=`${s} ${a}`}function Xd(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...c},u,f){if(qd(e,c,f),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:h,dimensions:p}=e;d.transform&&(p&&(h.transform=d.transform),delete d.transform),p&&(i!==void 0||o!==void 0||h.transform)&&(h.transformOrigin=o_(p,i!==void 0?i:.5,o!==void 0?o:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&l_(d,s,a,l,!1)}var Yd=e=>typeof e=="string"&&e.toLowerCase()==="svg",c_={useVisualState:ec({scrapeMotionValuesFromProps:Cb,createRenderState:Rb,onMount:(e,t,{renderState:n,latestValues:r})=>{Q.read(()=>{try{n.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch{n.dimensions={x:0,y:0,width:0,height:0}}}),Q.render(()=>{Xd(n,r,Yd(t.tagName),e.transformTemplate),Sb(t,n)})}})},u_={useVisualState:ec({applyWillChange:!0,scrapeMotionValuesFromProps:Ud,createRenderState:Gd})};function Tb(e,t,n){for(let r in t)!Ue(t[r])&&!kb(r,n)&&(e[r]=t[r])}function f_({transformTemplate:e},t){return re(()=>{let n=Gd();return qd(n,t,e),Object.assign({},n.vars,n.style)},[t])}function d_(e,t){let n=e.style||{},r={};return Tb(r,n,e),Object.assign(r,f_(e,t)),r}function h_(e,t){let n={},r=d_(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function p_(e,t,n,r){let i=re(()=>{let o=Rb();return Xd(o,t,Yd(r),e.transformTemplate),{...o.attrs,style:{...o.style}}},[t]);if(e.style){let o={};Tb(o,e.style,e),i.style={...o,...i.style}}return i}function m_(e=!1){return(n,r,i,{latestValues:o},s)=>{let l=(Wd(n)?p_:h_)(r,o,s,n),c=K0(r,typeof n=="string",e),u=n!==wn?{...c,...l,ref:i}:{},{children:f}=r,d=re(()=>Ue(f)?f.get():f,[f]);return Ur(n,{...u,children:d})}}function g_(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){let s={...Wd(r)?c_:u_,preloadedFeatures:e,useRender:m_(i),createVisualElement:t,Component:r};return U0(s)}}var Eb=class extends Hd{constructor(){super(...arguments),this.KeyframeResolver=S0}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?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]}};function v_(e){return I.getComputedStyle(e)}var Fb=class extends Eb{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=xb}readValueFromInstance(e,t){if(Xr.has(t)){let n=Td(t);return n&&n.default||0}else{let n=v_(e),r=(l0(t)?n.getPropertyValue(t):n[t])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return rb(e,t)}build(e,t,n){qd(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Ud(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Ue(e)&&(this.childSubscription=e.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}},Pb=class extends Eb{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qe}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(Xr.has(t)){let n=Td(t);return n&&n.default||0}return t=wb.has(t)?t:Ul(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Cb(e,t,n)}build(e,t,n){Xd(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,r){Sb(e,t,n,r)}mount(e){this.isSVGTag=Yd(e.tagName),super.mount(e)}},Kd=(e,t)=>Wd(e)?new Pb(t):new Fb(t,{allowProjection:e!==wn}),y_=g_({...Xl,...yb,...gb,...bb},Kd),Xe=ZI(y_);var b_=class extends Fe{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function x_({children:e,isPresent:t}){let n=Sr(),r=V(null),i=V({width:0,height:0,top:0,left:0}),{nonce:o}=z(er);return ct(()=>{let{width:s,height:a,top:l,left:c}=i.current;if(t||!r.current||!s||!a)return;r.current.dataset.motionPopId=n;let u=document.createElement("style");return o&&(u.nonce=o),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`
          [data-motion-pop-id="${n}"] {
            position: absolute !important;
            width: ${s}px !important;
            height: ${a}px !important;
            top: ${l}px !important;
            left: ${c}px !important;
          }
        `),()=>{document.head.removeChild(u)}},[t]),k(b_,{isPresent:t,childRef:r,sizeRef:i,children:wr(e,{ref:r})})}var w_=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:o,mode:s})=>{let a=nr(S_),l=Sr(),c=G(f=>{a.set(f,!0);for(let d of a.values())if(!d)return;r&&r()},[a,r]),u=re(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:c,register:f=>(a.set(f,!1),()=>a.delete(f))}),o?[Math.random(),c]:[n,c]);return re(()=>{a.forEach((f,d)=>a.set(d,!1))},[n]),$(()=>{!n&&!a.size&&r&&r()},[n]),s==="popLayout"&&(e=k(x_,{isPresent:n,children:e})),k(Io.Provider,{value:u,children:e})};function S_(){return new Map}var Cl=e=>e.key||"";function Vy(e){let t=[];return cn.forEach(e,n=>{_t(n)&&t.push(n)}),t}var Qd=({children:e,exitBeforeEnter:t,custom:n,initial:r=!0,onExitComplete:i,presenceAffectsLayout:o=!0,mode:s="sync"})=>{un(!t,"Replace exitBeforeEnter with mode='wait'");let a=re(()=>Vy(e),[e]),l=a.map(Cl),c=V(!0),u=V(a),f=nr(()=>new Map),[d,h]=Re(a),[p,y]=Re(a);Kr(()=>{c.current=!1,u.current=a;for(let g=0;g<p.length;g++){let v=Cl(p[g]);l.includes(v)?f.delete(v):f.get(v)!==!0&&f.set(v,!1)}},[p,l.length,l.join("-")]);let x=[];if(a!==d){let g=[...a];for(let v=0;v<p.length;v++){let b=p[v],C=Cl(b);l.includes(C)||(g.splice(v,0,b),x.push(b))}s==="wait"&&x.length&&(g=x),y(Vy(g)),h(a);return}let{forceRender:m}=z(Gs);return k(ht,{children:p.map(g=>{let v=Cl(g),b=a===p||l.includes(v),C=()=>{if(f.has(v))f.set(v,!0);else return;let S=!0;f.forEach(R=>{R||(S=!1)}),S&&(m?.(),y(u.current),i&&i())};return k(w_,{isPresent:b,initial:!c.current||r?void 0:!1,custom:b?void 0:n,presenceAffectsLayout:o,mode:s,onExitComplete:b?void 0:C,children:g},v)})})};function Ib({children:e,isValidProp:t,...n}){t&&Y0(t),n={...z(er),...n},n.isStatic=nr(()=>n.isStatic);let r=re(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return k(er.Provider,{value:r,children:e})}var _b=ke(null);function k_(){let e=V(!1);return Kr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Zd(){let e=k_(),[t,n]=Re(0),r=G(()=>{e.current&&n(t+1)},[t]);return[G(()=>Q.postRender(r),[r]),t]}var C_=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Ay(){let e=new Set,t=new WeakMap,n=()=>e.forEach(C_);return{add:r=>{e.add(r),t.set(r,r.addEventListener("willUpdate",n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var Ob=e=>e===!0,R_=e=>Ob(e===!0)||e==="id",Mb=({children:e,id:t,inherit:n=!0})=>{let r=z(Gs),i=z(_b),[o,s]=Zd(),a=V(null),l=r.id||i;a.current===null&&(R_(n)&&l&&(t=t?l+"-"+t:l),a.current={id:t,group:Ob(n)&&r.group||Ay()});let c=re(()=>({...a.current,forceRender:o}),[s]);return k(Gs.Provider,{value:c,children:e})},T_={renderer:Kd,...Xl},Lb={renderer:Kd,...Xl,...yb},E_={...Lb,...gb,...bb};function rr(e){let t=nr(()=>We(e)),{isStatic:n}=z(er);if(n){let[,r]=Re(e);$(()=>t.on("change",r),[])}return t}function Vb(e,t){let n=rr(t()),r=()=>n.set(t());return r(),Kr(()=>{let i=()=>Q.preRender(r,!1,!0),o=e.map(s=>s.on("change",i));return()=>{o.forEach(s=>s()),Tt(r)}}),n}var F_=e=>e&&typeof e=="object"&&e.mix,P_=e=>F_(e)?e.mix:void 0;function _o(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],o=e[2+n],s=e[3+n],a=Po(i,o,{mixer:P_(o[0]),...s});return t?a(r):a}function I_(e){Ds.current=[],e();let t=Vb(Ds.current,e);return Ds.current=void 0,t}function Ht(e,t,n,r){if(typeof e=="function")return I_(e);let i=typeof t=="function"?t:_o(t,n,r);return Array.isArray(e)?Dy(e,i):Dy([e],([o])=>i(o))}function Dy(e,t){let n=nr(()=>[]);return Vb(e,()=>{n.length=0;let r=e.length;for(let i=0;i<r;i++)n[i]=e[i].get();return t(n)})}function zy(e){return typeof e=="number"?e:parseFloat(e)}function Jd(e,t={}){let{isStatic:n}=z(er),r=V(null),i=rr(Ue(e)?zy(e.get()):e),o=V(i.get()),s=V(()=>{}),a=()=>{let c=r.current;c&&c.time===0&&c.sample(et.delta),l(),r.current=Cd({keyframes:[i.get(),o.current],velocity:i.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...t,onUpdate:s.current})},l=()=>{r.current&&r.current.stop()};return ct(()=>i.attach((c,u)=>n?u(c):(o.current=c,s.current=u,Q.update(a),i.get()),l),[JSON.stringify(t)]),Kr(()=>{if(Ue(e))return e.on("change",c=>i.set(zy(c)))},[i]),i}function eh(e,t,n){var r;if(typeof e=="string"){let i=document;t&&(un(!!t.current,"Scope provided, but no element detected."),i=t.current),n?((r=n[e])!==null&&r!==void 0||(n[e]=i.querySelectorAll(e)),e=n[e]):e=i.querySelectorAll(e)}else e instanceof Element&&(e=[e]);return Array.from(e||[])}var Fl=new WeakMap,qr;function __(e,t){if(t){let{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function O_({target:e,contentRect:t,borderBoxSize:n}){var r;(r=Fl.get(e))===null||r===void 0||r.forEach(i=>{i({target:e,contentSize:t,get size(){return __(e,n)}})})}function M_(e){e.forEach(O_)}function L_(){typeof ResizeObserver>"u"||(qr=new ResizeObserver(M_))}function V_(e,t){qr||L_();let n=eh(e);return n.forEach(r=>{let i=Fl.get(r);i||(i=new Set,Fl.set(r,i)),i.add(t),qr?.observe(r)}),()=>{n.forEach(r=>{let i=Fl.get(r);i?.delete(t),i?.size||qr?.unobserve(r)})}}var Pl=new Set,$s;function A_(){$s=()=>{let e={width:I.innerWidth,height:I.innerHeight},t={target:I,size:e,contentSize:e};Pl.forEach(n=>n(t))},I.addEventListener("resize",$s)}function D_(e){return Pl.add(e),$s||A_(),()=>{Pl.delete(e),!Pl.size&&$s&&($s=void 0)}}function z_(e,t){return typeof e=="function"?D_(e):V_(e,t)}var B_=50,By=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),$_=()=>({time:0,x:By(),y:By()}),N_={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function $y(e,t,n,r){let i=n[t],{length:o,position:s}=N_[t],a=i.current,l=n.time;i.current=e[`scroll${s}`],i.scrollLength=e[`scroll${o}`]-e[`client${o}`],i.offset.length=0,i.offset[0]=0,i.offset[1]=i.scrollLength,i.progress=Tr(0,i.scrollLength,i.current);let c=r-l;i.velocity=c>B_?0:gd(i.current-a,c)}function j_(e,t,n){$y(e,"x",t,n),$y(e,"y",t,n),t.time=n}function H_(e,t){let n={x:0,y:0},r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){let i=r.getBoundingClientRect();r=r.parentElement;let o=r.getBoundingClientRect();n.x+=i.left-o.left,n.y+=i.top-o.top}else if(r instanceof SVGGraphicsElement){let{x:i,y:o}=r.getBBox();n.x+=i,n.y+=o;let s=null,a=r.parentNode;for(;!s;)a.tagName==="svg"&&(s=a),a=r.parentNode;r=s}else break;return n}var W_={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},od={start:0,center:.5,end:1};function Ny(e,t,n=0){let r=0;if(e in od&&(e=od[e]),typeof e=="string"){let i=parseFloat(e);e.endsWith("px")?r=i:e.endsWith("%")?e=i/100:e.endsWith("vw")?r=i/100*document.documentElement.clientWidth:e.endsWith("vh")?r=i/100*document.documentElement.clientHeight:e=i}return typeof e=="number"&&(r=t*e),n+r}var U_=[0,0];function G_(e,t,n,r){let i=Array.isArray(e)?e:U_,o=0,s=0;return typeof e=="number"?i=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?i=e.split(" "):i=[e,od[e]?e:"0"]),o=Ny(i[0],n,r),s=Ny(i[1],t),o-s}var q_={x:0,y:0};function X_(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Y_(e,t,n){let{offset:r=W_.All}=n,{target:i=e,axis:o="y"}=n,s=o==="y"?"height":"width",a=i!==e?H_(i,e):q_,l=i===e?{width:e.scrollWidth,height:e.scrollHeight}:X_(i),c={width:e.clientWidth,height:e.clientHeight};t[o].offset.length=0;let u=!t[o].interpolate,f=r.length;for(let d=0;d<f;d++){let h=G_(r[d],c[s],l[s],a[o]);!u&&h!==t[o].interpolatorOffsets[d]&&(u=!0),t[o].offset[d]=h}u&&(t[o].interpolate=Po(t[o].offset,Sd(r)),t[o].interpolatorOffsets=[...t[o].offset]),t[o].progress=t[o].interpolate(t[o].current)}function K_(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function Q_(e,t,n,r={}){return{measure:()=>K_(e,r.target,n),update:i=>{j_(e,n,i),(r.offset||r.target)&&Y_(e,n,r)},notify:()=>t(n)}}var Os=new WeakMap,jy=new WeakMap,zf=new WeakMap,Hy=e=>e===document.documentElement?I:e;function Er(e,{container:t=document.documentElement,...n}={}){let r=zf.get(t);r||(r=new Set,zf.set(t,r));let i=$_(),o=Q_(t,e,i,n);if(r.add(o),!Os.has(t)){let a=()=>{for(let d of r)d.measure()},l=()=>{for(let d of r)d.update(et.timestamp)},c=()=>{for(let d of r)d.notify()},u=()=>{Q.read(a,!1,!0),Q.read(l,!1,!0),Q.update(c,!1,!0)};Os.set(t,u);let f=Hy(t);I.addEventListener("resize",u,{passive:!0}),t!==document.documentElement&&jy.set(t,z_(t,u)),f.addEventListener("scroll",u,{passive:!0})}let s=Os.get(t);return Q.read(s,!1,!0),()=>{var a;Tt(s);let l=zf.get(t);if(!l||(l.delete(o),l.size))return;let c=Os.get(t);Os.delete(t),c&&(Hy(t).removeEventListener("scroll",c),(a=jy.get(t))===null||a===void 0||a(),I.removeEventListener("resize",c))}}function Ab(e,t){let n,r=()=>{let{currentTime:i}=t,s=(i===null?0:i.value)/100;n!==s&&e(s),n=s};return Q.update(r,!0),()=>Tt(r)}function Z_({source:e,container:t,axis:n="y"}){e&&(t=e);let r={value:0},i=Er(o=>{r.value=o[n].progress*100},{container:t,axis:n});return{currentTime:r,cancel:i}}var Bf=new Map;function Db({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),Bf.has(t)||Bf.set(t,{});let r=Bf.get(t);return r[n]||(r[n]=E0()?new ScrollTimeline({source:t,axis:n}):Z_({source:t,axis:n})),r[n]}function J_(e){return e.length===2}function zb(e){return e&&(e.target||e.offset)}function eO(e,t){return J_(e)||zb(t)?Er(n=>{e(n[t.axis].progress,n)},t):Ab(e,Db(t))}function tO(e,t){if(zb(t))return e.pause(),Er(n=>{e.time=e.duration*n[t.axis].progress},t);{let n=Db(t);return e.attachTimeline(n,r=>(r.pause(),Ab(i=>{r.time=r.duration*i},n)))}}function Bb(e,{axis:t="y",...n}={}){let r={axis:t,...n};return typeof e=="function"?eO(e,r):tO(e,r)}function Wy(e,t){Eo(!!(!t||t.current),`You have defined a ${e} options but the provided ref is not yet hydrated, probably because it's defined higher up the tree. Try calling useScroll() in the same component as the ref, or setting its \`layoutEffect: false\` option.`)}var nO=()=>({scrollX:We(0),scrollY:We(0),scrollXProgress:We(0),scrollYProgress:We(0)});function $b({container:e,target:t,layoutEffect:n=!0,...r}={}){let i=nr(nO);return(n?Kr:$)(()=>(Wy("target",t),Wy("container",e),Bb((s,{x:a,y:l})=>{i.scrollX.set(a.current),i.scrollXProgress.set(a.progress),i.scrollY.set(l.current),i.scrollYProgress.set(l.progress)},{...r,container:e?.current||void 0,target:t?.current||void 0})),[e,t,JSON.stringify(r.offset)]),i}function rO(e){let t=V(0),{isStatic:n}=z(er);$(()=>{if(n)return;let r=({timestamp:i,delta:o})=>{t.current||(t.current=i),e(i-t.current,o)};return Q.update(r,!0),()=>Tt(r)},[e])}function Nb(){!jd.current&&Q0();let[e]=Re(Vl.current);return e}function zi(){let e=Nb(),{reducedMotion:t}=z(er);return t==="never"?!1:t==="always"?!0:e}function iO(e){e.values.forEach(t=>t.stop())}function sd(e,t){[...t].reverse().forEach(r=>{let i=e.getVariant(r);i&&Md(e,i),e.variantChildren&&e.variantChildren.forEach(o=>{sd(o,t)})})}function oO(e,t){if(Array.isArray(t))return sd(e,t);if(typeof t=="string")return sd(e,[t]);Md(e,t)}function jb(){let e=!1,t=new Set,n={subscribe(r){return t.add(r),()=>void t.delete(r)},start(r,i){un(e,"controls.start() should only be called after a component has mounted. Consider calling within a useEffect hook.");let o=[];return t.forEach(s=>{o.push(Vd(s,r,{transitionOverride:i}))}),Promise.all(o)},set(r){return un(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),t.forEach(i=>{oO(i,r)})},stop(){t.forEach(r=>{iO(r)})},mount(){return e=!0,()=>{e=!1,n.stop()}}};return n}var Hb=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e};function sO(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(m0(r),qf);return{type:"keyframes",ease:o=>r.next(i*o).value/t,duration:Kn(i)}}function th(e){return typeof e=="object"&&!Array.isArray(e)}function Wb(e,t,n,r){return typeof e=="string"&&th(t)?eh(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function Uy(e,t,n,r){var i;return typeof t=="number"?t:t.startsWith("-")||t.startsWith("+")?Math.max(0,e+parseFloat(t)):t==="<"?n:(i=r.get(t))!==null&&i!==void 0?i:e}function aO(e,t){return u0(e)?e[Hb(0,e.length,t)]:e}function lO(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(Hl(e,i),r--)}}function cO(e,t,n,r,i,o){lO(e,i,o);for(let s=0;s<t.length;s++)e.push({value:t[s],at:Be(i,o,r[s]),easing:aO(n,s)})}function uO(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var fO="easeInOut";function dO(e,{defaultTransition:t={},...n}={},r,i){let o=t.duration||.3,s=new Map,a=new Map,l={},c=new Map,u=0,f=0,d=0;for(let h=0;h<e.length;h++){let p=e[h];if(typeof p=="string"){c.set(p,f);continue}else if(!Array.isArray(p)){c.set(p.name,Uy(f,p.at,u,c));continue}let[y,x,m={}]=p;m.at!==void 0&&(f=Uy(f,m.at,u,c));let g=0,v=(b,C,S,R=0,T=0)=>{let F=hO(b),{delay:P=0,times:B=Sd(F),type:H="keyframes",...L}=C,{ease:Y=t.ease||"easeOut",duration:W}=C,ne=typeof P=="function"?P(R,T):P,U=F.length,ee=$l(H)?H:i?.[H];if(U<=2&&ee){let se=100;if(U===2&&gO(F)){let Ce=F[1]-F[0];se=Math.abs(Ce)}let fe={...L};W!==void 0&&(fe.duration=Vn(W));let ie=sO(fe,se,ee);Y=ie.ease,W=ie.duration}W??(W=o);let ae=f+ne,me=ae+W;B.length===1&&B[0]===0&&(B[1]=1);let K=B.length-F.length;K>0&&f0(B,K),F.length===1&&F.unshift(null),cO(S,F,Y,B,ae,me),g=Math.max(ne+W,g),d=Math.max(me,d)};if(Ue(y)){let b=Gy(y,a);v(x,m,qy("default",b))}else{let b=Wb(y,x,r,l),C=b.length;for(let S=0;S<C;S++){x=x,m=m;let R=b[S],T=Gy(R,a);for(let F in x)v(x[F],pO(m,F),qy(F,T),S,C)}}u=f,f+=g}return a.forEach((h,p)=>{for(let y in h){let x=h[y];x.sort(uO);let m=[],g=[],v=[];for(let C=0;C<x.length;C++){let{at:S,value:R,easing:T}=x[C];m.push(R),g.push(Tr(0,d,S)),v.push(T||"easeOut")}g[0]!==0&&(g.unshift(0),m.unshift(m[0]),v.unshift(fO)),g[g.length-1]!==1&&(g.push(1),m.push(null)),s.has(p)||s.set(p,{keyframes:{},transition:{}});let b=s.get(p);b.keyframes[y]=m,b.transition[y]={...t,duration:d,ease:v,times:g,...n}}}),s}function Gy(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function qy(e,t){return t[e]||(t[e]=[]),t[e]}function hO(e){return Array.isArray(e)?e:[e]}function pO(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var mO=e=>typeof e=="number",gO=e=>e.every(mO);function vO(e,t){return e in t}var yO=class extends Hd{constructor(){super(...arguments),this.type="object"}readValueFromInstance(e,t){if(vO(t,e)){let n=e[t];if(typeof n=="string"||typeof n=="number")return n}}getBaseTargetFromProps(){}removeValueFromRenderState(e,t){delete t.output[e]}measureInstanceViewportBox(){return qe()}build(e,t){Object.assign(e.output,t)}renderInstance(e,{output:t}){Object.assign(e,t)}sortInstanceNodePosition(){return 0}};function bO(e){let t={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=ub(e)?new Pb(t):new Fb(t);n.mount(e),tr.set(e,n)}function xO(e){let t={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new yO(t);n.mount(e),tr.set(e,n)}function wO(e,t){return Ue(e)||typeof e=="number"||typeof e=="string"&&!th(t)}function Ub(e,t,n,r){let i=[];if(wO(e,t))i.push(fb(e,th(t)&&t.default||t,n&&(n.default||n)));else{let o=Wb(e,t,r),s=o.length;un(!!s,"No valid elements provided.");for(let a=0;a<s;a++){let l=o[a],c=l instanceof Element?bO:xO;tr.has(l)||c(l);let u=tr.get(l),f={...n};"delay"in f&&typeof f.delay=="function"&&(f.delay=f.delay(a,s)),i.push(...Ld(u,{...t,transition:f},{}))}}return i}function SO(e,t,n){let r=[];return dO(e,t,n,{spring:Xs}).forEach(({keyframes:o,transition:s},a)=>{r.push(...Ub(a,o,s))}),r}function kO(e){return Array.isArray(e)&&Array.isArray(e[0])}function Gb(e){function t(n,r,i){let o=[];kO(n)?o=SO(n,r,e):o=Ub(n,r,i,e);let s=new F0(o);return e&&e.animations.push(s),s}return t}var ir=Gb();function qb(){let e=nr(jb);return Kr(e.mount,[]),e}var Xb=qb;var CO={some:0,all:1};function tc(e,t,{root:n,margin:r,amount:i="some"}={}){let o=eh(e),s=new WeakMap,a=c=>{c.forEach(u=>{let f=s.get(u.target);if(u.isIntersecting!==!!f)if(u.isIntersecting){let d=t(u);typeof d=="function"?s.set(u.target,d):l.unobserve(u.target)}else f&&(f(u),s.delete(u.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:r,threshold:typeof i=="number"?i:CO[i]});return o.forEach(c=>l.observe(c)),()=>l.disconnect()}function RO(e,{root:t,margin:n,amount:r,once:i=!1}={}){let[o,s]=Re(!1);return $(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),l={root:t&&t.current||void 0,margin:n,amount:r};return tc(e.current,a,l)},[t,e,n,i,r]),o}function nc(e){return e!==null&&typeof e=="object"&&Nd in e}function nh(e){if(nc(e))return e[Nd]}function rh(){return TO}function TO(e){Di.current&&(Di.current.isUpdating=!1,Di.current.blockUpdate(),e&&e())}function Yb(){let[e,t]=Zd(),n=rh(),r=V();return $(()=>{Q.postRender(()=>Q.postRender(()=>{t===r.current&&(_l.current=!1)}))},[t]),i=>{n(()=>{_l.current=!0,e(),i(),r.current=t+1})}}function Kb(){return G(()=>{let t=Di.current;t&&t.resetTree()},[])}var Xy=()=>({});var q8=ec({scrapeMotionValuesFromProps:Xy,createRenderState:Xy});var Qb={};hv(Qb,{Group:()=>PO,Item:()=>MO});var Zb=ke(null);function EO(e,t,n,r){if(!r)return e;let i=e.findIndex(u=>u.value===t);if(i===-1)return e;let o=r>0?1:-1,s=e[i+o];if(!s)return e;let a=e[i],l=s.layout,c=Be(l.min,l.max,.5);return o===1&&a.layout.max+n>c||o===-1&&a.layout.min+n<c?rI(e,i,i+o):e}function FO({children:e,as:t="ul",axis:n="y",onReorder:r,values:i,...o},s){let a=nr(()=>Xe[t]),l=[],c=V(!1);un(!!i,"Reorder.Group must be provided a values prop");let u={axis:n,registerItem:(f,d)=>{let h=l.findIndex(p=>f===p.value);h!==-1?l[h].layout=d[n]:l.push({value:f,layout:d[n]}),l.sort(_O)},updateOrder:(f,d,h)=>{if(c.current)return;let p=EO(l,f,d,h);l!==p&&(c.current=!0,r(p.map(IO).filter(y=>i.indexOf(y)!==-1)))}};return $(()=>{c.current=!1}),k(a,{...o,ref:s,ignoreStrict:!0,children:k(Zb.Provider,{value:u,children:e})})}var PO=Oe(FO);function IO(e){return e.value}function _O(e,t){return e.layout.min-t.layout.min}function Yy(e,t=0){return Ue(e)?e:rr(t)}function OO({children:e,style:t={},value:n,as:r="li",onDrag:i,layout:o=!0,...s},a){let l=nr(()=>Xe[r]),c=z(Zb),u={x:Yy(t.x),y:Yy(t.y)},f=Ht([u.x,u.y],([y,x])=>y||x?1:"unset");un(!!c,"Reorder.Item must be a child of Reorder.Group");let{axis:d,registerItem:h,updateOrder:p}=c;return k(l,{drag:d,...s,dragSnapToOrigin:!0,style:{...t,x:u.x,y:u.y,zIndex:f},layout:o,onDrag:(y,x)=>{let{velocity:m}=x;m[d]&&p(n,u[d].get(),m[d]),i&&i(y,x)},onLayoutMeasure:y=>h(n,y),ref:a,ignoreStrict:!0,children:e})}var MO=Oe(OO);function LO(e,t){if(e==="first")return 0;{let n=t-1;return e==="last"?n:n/2}}function ih(e=.1,{startDelay:t=0,from:n=0,ease:r}={}){return(i,o)=>{let s=typeof n=="number"?n:LO(n,o),a=Math.abs(s-i),l=e*a;if(r){let c=o*e;l=Wf(r)(l/c)*c}return t+l}}var VO=Ms.reduce((e,t)=>(e[t]=n=>Tt(n),e),{});var gV={};xf(gV,{__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>iV,createPortal:()=>oV,createRoot:()=>sV,default:()=>vm,findDOMNode:()=>aV,flushSync:()=>lV,hydrate:()=>cV,hydrateRoot:()=>uV,render:()=>fV,unmountComponentAtNode:()=>dV,unstable_batchedUpdates:()=>hV,unstable_renderSubtreeIntoContainer:()=>pV,version:()=>mV});var lc={};xf(lc,{default:()=>le,unstable_IdlePriority:()=>zO,unstable_ImmediatePriority:()=>BO,unstable_LowPriority:()=>$O,unstable_NormalPriority:()=>NO,unstable_Profiling:()=>jO,unstable_UserBlockingPriority:()=>HO,unstable_cancelCallback:()=>WO,unstable_continueExecution:()=>UO,unstable_forceFrameRate:()=>GO,unstable_getCurrentPriorityLevel:()=>qO,unstable_getFirstCallbackNode:()=>XO,unstable_next:()=>YO,unstable_now:()=>DO,unstable_pauseExecution:()=>KO,unstable_requestPaint:()=>QO,unstable_runWithPriority:()=>ZO,unstable_scheduleCallback:()=>JO,unstable_shouldYield:()=>eM,unstable_wrapCallback:()=>tM});var le={};function lh(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<rc(i,t)))break e;e[r]=t,e[n]=i,n=r}}function An(e){return e.length===0?null:e[0]}function oc(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,a=e[s],l=s+1,c=e[l];if(0>rc(a,n))l<i&&0>rc(c,a)?(e[r]=c,e[l]=n,r=l):(e[r]=a,e[s]=n,r=s);else{if(!(l<i&&0>rc(c,n)))break e;e[r]=c,e[l]=n,r=l}}}return t}function rc(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Jb=performance,le.unstable_now=function(){return Jb.now()}):(oh=Date,ex=oh.now(),le.unstable_now=function(){return oh.now()-ex});var Jb,oh,ex,or=[],Qr=[],AO=1,Cn=null,Lt=3,sc=!1,Bi=!1,Zs=!1,rx=typeof setTimeout=="function"?setTimeout:null,ix=typeof clearTimeout=="function"?clearTimeout:null,tx=typeof setImmediate<"u"?setImmediate:null;typeof ze<"u"&&ze.scheduling!==void 0&&ze.scheduling.isInputPending!==void 0&&ze.scheduling.isInputPending.bind(ze.scheduling);function ch(e){for(var t=An(Qr);t!==null;){if(t.callback===null)oc(Qr);else{if(!(t.startTime<=e))break;oc(Qr),t.sortIndex=t.expirationTime,lh(or,t)}t=An(Qr)}}function uh(e){if(Zs=!1,ch(e),!Bi)if(An(or)!==null)Bi=!0,dh(fh);else{var t=An(Qr);t!==null&&hh(uh,t.startTime-e)}}function fh(e,t){Bi=!1,Zs&&(Zs=!1,ix(Js),Js=-1),sc=!0;var n=Lt;try{for(ch(t),Cn=An(or);Cn!==null&&(!(Cn.expirationTime>t)||e&&!ax());){var r=Cn.callback;if(typeof r=="function"){Cn.callback=null,Lt=Cn.priorityLevel;var i=r(Cn.expirationTime<=t);t=le.unstable_now(),typeof i=="function"?Cn.callback=i:Cn===An(or)&&oc(or),ch(t)}else oc(or);Cn=An(or)}if(Cn!==null)var o=!0;else{var s=An(Qr);s!==null&&hh(uh,s.startTime-t),o=!1}return o}finally{Cn=null,Lt=n,sc=!1}}var ac=!1,ic=null,Js=-1,ox=5,sx=-1;function ax(){return!(le.unstable_now()-sx<ox)}function sh(){if(ic!==null){var e=le.unstable_now();sx=e;var t=!0;try{t=ic(!0,e)}finally{t?Qs():(ac=!1,ic=null)}}else ac=!1}var Qs;typeof tx=="function"?Qs=function(){tx(sh)}:typeof MessageChannel<"u"?(ah=new MessageChannel,nx=ah.port2,ah.port1.onmessage=sh,Qs=function(){nx.postMessage(null)}):Qs=function(){rx(sh,0)};var ah,nx;function dh(e){ic=e,ac||(ac=!0,Qs())}function hh(e,t){Js=rx(function(){e(le.unstable_now())},t)}le.unstable_IdlePriority=5;le.unstable_ImmediatePriority=1;le.unstable_LowPriority=4;le.unstable_NormalPriority=3;le.unstable_Profiling=null;le.unstable_UserBlockingPriority=2;le.unstable_cancelCallback=function(e){e.callback=null};le.unstable_continueExecution=function(){Bi||sc||(Bi=!0,dh(fh))};le.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ox=0<e?Math.floor(1e3/e):5};le.unstable_getCurrentPriorityLevel=function(){return Lt};le.unstable_getFirstCallbackNode=function(){return An(or)};le.unstable_next=function(e){switch(Lt){case 1:case 2:case 3:var t=3;break;default:t=Lt}var n=Lt;Lt=t;try{return e()}finally{Lt=n}};le.unstable_pauseExecution=function(){};le.unstable_requestPaint=function(){};le.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=Lt;Lt=e;try{return t()}finally{Lt=n}};le.unstable_scheduleCallback=function(e,t,n){var r=le.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?r+n:r):n=r,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:AO++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>r?(e.sortIndex=n,lh(Qr,e),An(or)===null&&e===An(Qr)&&(Zs?(ix(Js),Js=-1):Zs=!0,hh(uh,n-r))):(e.sortIndex=i,lh(or,e),Bi||sc||(Bi=!0,dh(fh))),e};le.unstable_shouldYield=ax;le.unstable_wrapCallback=function(e){var t=Lt;return function(){var n=Lt;Lt=t;try{return e.apply(this,arguments)}finally{Lt=n}}};var DO=le.unstable_now,zO=le.unstable_IdlePriority,BO=le.unstable_ImmediatePriority,$O=le.unstable_LowPriority,NO=le.unstable_NormalPriority,jO=le.unstable_Profiling,HO=le.unstable_UserBlockingPriority,WO=le.unstable_cancelCallback,UO=le.unstable_continueExecution,GO=le.unstable_forceFrameRate,qO=le.unstable_getCurrentPriorityLevel,XO=le.unstable_getFirstCallbackNode,YO=le.unstable_next,KO=le.unstable_pauseExecution,QO=le.unstable_requestPaint,ZO=le.unstable_runWithPriority,JO=le.unstable_scheduleCallback,eM=le.unstable_shouldYield,tM=le.unstable_wrapCallback;var nM="default"in Ot?w:Ot,rM="default"in lc?le:lc,mn={},pw=nM,pn=rM;function D(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var mw=new Set,wa={};function Zi(e,t){Zo(e,t),Zo(e+"Capture",t)}function Zo(e,t){for(wa[e]=t,e=0;e<t.length;e++)mw.add(t[e])}var Mr=!(typeof I>"u"||typeof I.document>"u"||typeof I.document.createElement>"u"),Ah=Object.prototype.hasOwnProperty,iM=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,lx={},cx={};function oM(e){return Ah.call(cx,e)?!0:Ah.call(lx,e)?!1:iM.test(e)?cx[e]=!0:(lx[e]=!0,!1)}function sM(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function aM(e,t,n,r){if(t===null||typeof t>"u"||sM(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Gt(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var Pt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pt[e]=new Gt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pt[t]=new Gt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pt[e]=new Gt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pt[e]=new Gt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Pt[e]=new Gt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pt[e]=new Gt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pt[e]=new Gt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pt[e]=new Gt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pt[e]=new Gt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ep=/[\-:]([a-z])/g;function Fp(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ep,Fp);Pt[t]=new Gt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ep,Fp);Pt[t]=new Gt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ep,Fp);Pt[t]=new Gt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pt[e]=new Gt(e,1,!1,e.toLowerCase(),null,!1,!1)});Pt.xlinkHref=new Gt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pt[e]=new Gt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Pp(e,t,n,r){var i=Pt.hasOwnProperty(t)?Pt[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(aM(t,n,i,r)&&(n=null),r||i===null?oM(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type!==3&&"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Dr=pw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,cc=Symbol.for("react.element"),Lo=Symbol.for("react.portal"),Vo=Symbol.for("react.fragment"),Ip=Symbol.for("react.strict_mode"),Dh=Symbol.for("react.profiler"),gw=Symbol.for("react.provider"),vw=Symbol.for("react.context"),_p=Symbol.for("react.forward_ref"),zh=Symbol.for("react.suspense"),Bh=Symbol.for("react.suspense_list"),Op=Symbol.for("react.memo"),Jr=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var yw=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var ux=Symbol.iterator;function ea(e){return e===null||typeof e!="object"?null:(e=ux&&e[ux]||e["@@iterator"],typeof e=="function"?e:null)}var ph,Qe=Object.assign;function la(e){if(ph===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ph=t&&t[1]||""}return`
`+ph+e}var mh=!1;function gh(e,t){if(!e||mh)return"";mh=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&typeof c.stack=="string"){for(var i=c.stack.split(`
`),o=r.stack.split(`
`),s=i.length-1,a=o.length-1;1<=s&&0<=a&&i[s]!==o[a];)a--;for(;1<=s&&0<=a;s--,a--)if(i[s]!==o[a]){if(s!==1||a!==1)do if(s--,a--,0>a||i[s]!==o[a]){var l=`
`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=a);break}}}finally{mh=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?la(e):""}function lM(e){switch(e.tag){case 5:return la(e.type);case 16:return la("Lazy");case 13:return la("Suspense");case 19:return la("SuspenseList");case 0:case 2:case 15:return e=gh(e.type,!1),e;case 11:return e=gh(e.type.render,!1),e;case 1:return e=gh(e.type,!0),e;default:return""}}function $h(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Vo:return"Fragment";case Lo:return"Portal";case Dh:return"Profiler";case Ip:return"StrictMode";case zh:return"Suspense";case Bh:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vw:return(e.displayName||"Context")+".Consumer";case gw:return(e._context.displayName||"Context")+".Provider";case _p:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Op:return t=e.displayName||null,t!==null?t:$h(e.type)||"Memo";case Jr:t=e._payload,e=e._init;try{return $h(e(t))}catch{}}return null}function cM(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return $h(t);case 8:return t===Ip?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function hi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bw(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function uM(e){var t=bw(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function uc(e){e._valueTracker||(e._valueTracker=uM(e))}function xw(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bw(e)?e.checked?"true":"false":e.value),e=r,e!==n&&(t.setValue(e),!0)}function zc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Nh(e,t){var n=t.checked;return Qe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function fx(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=hi(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ww(e,t){t=t.checked,t!=null&&Pp(e,"checked",t,!1)}function jh(e,t){ww(e,t);var n=hi(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Hh(e,t.type,n):t.hasOwnProperty("defaultValue")&&Hh(e,t.type,hi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function dx(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Hh(e,t,n){t==="number"&&zc(e.ownerDocument)===e||(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var ca=Array.isArray;function Go(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+hi(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wh(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(D(91));return Qe({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hx(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(D(92));if(ca(n)){if(1<n.length)throw Error(D(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:hi(n)}}function Sw(e,t){var n=hi(t.value),r=hi(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function px(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function kw(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Uh(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?kw(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var fc,Cw=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(fc=fc||document.createElement("div"),fc.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=fc.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Sa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var da={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},fM=["Webkit","ms","Moz","O"];Object.keys(da).forEach(function(e){fM.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),da[t]=da[e]})});function Rw(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||da.hasOwnProperty(e)&&da[e]?(""+t).trim():t+"px"}function Tw(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Rw(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var dM=Qe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Gh(e,t){if(t){if(dM[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(D(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(D(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(D(61))}if(t.style!=null&&typeof t.style!="object")throw Error(D(62))}}function qh(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Xh=null;function Mp(e){return e=e.target||e.srcElement||I,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yh=null,qo=null,Xo=null;function mx(e){if(e=$a(e)){if(typeof Yh!="function")throw Error(D(280));var t=e.stateNode;t&&(t=du(t),Yh(e.stateNode,e.type,t))}}function Ew(e){qo?Xo?Xo.push(e):Xo=[e]:qo=e}function Fw(){if(qo){var e=qo,t=Xo;if(Xo=qo=null,mx(e),t)for(e=0;e<t.length;e++)mx(t[e])}}function Pw(e,t){return e(t)}function Iw(){}var vh=!1;function _w(e,t,n){if(vh)return e(t,n);vh=!0;try{return Pw(e,t,n)}finally{vh=!1,(qo!==null||Xo!==null)&&(Iw(),Fw())}}function ka(e,t){var n=e.stateNode;if(n===null)return null;var r=du(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(D(231,t,typeof n));return n}var Kh=!1;if(Mr)try{Oo={},Object.defineProperty(Oo,"passive",{get:function(){Kh=!0}}),I.addEventListener("test",Oo,Oo),I.removeEventListener("test",Oo,Oo)}catch{Kh=!1}var Oo;function hM(e,t,n,r,i,o,s,a,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var ha=!1,Bc=null,$c=!1,Qh=null,pM={onError:function(e){ha=!0,Bc=e}};function mM(e,t,n,r,i,o,s,a,l){ha=!1,Bc=null,hM.apply(pM,arguments)}function gM(e,t,n,r,i,o,s,a,l){if(mM.apply(this,arguments),ha){if(!ha)throw Error(D(198));var c=Bc;ha=!1,Bc=null,$c||($c=!0,Qh=c)}}function Ji(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(4098&t.flags)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Ow(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function gx(e){if(Ji(e)!==e)throw Error(D(188))}function vM(e){var t=e.alternate;if(!t){if(t=Ji(e),t===null)throw Error(D(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return gx(i),e;if(o===r)return gx(i),t;o=o.sibling}throw Error(D(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,a=i.child;a;){if(a===n){s=!0,n=i,r=o;break}if(a===r){s=!0,r=i,n=o;break}a=a.sibling}if(!s){for(a=o.child;a;){if(a===n){s=!0,n=o,r=i;break}if(a===r){s=!0,r=o,n=i;break}a=a.sibling}if(!s)throw Error(D(189))}}if(n.alternate!==r)throw Error(D(190))}if(n.tag!==3)throw Error(D(188));return n.stateNode.current===n?e:t}function Mw(e){return e=vM(e),e!==null?Lw(e):null}function Lw(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Lw(e);if(t!==null)return t;e=e.sibling}return null}var Vw=pn.unstable_scheduleCallback,vx=pn.unstable_cancelCallback,yM=pn.unstable_shouldYield,bM=pn.unstable_requestPaint,it=pn.unstable_now,xM=pn.unstable_getCurrentPriorityLevel,Lp=pn.unstable_ImmediatePriority,Aw=pn.unstable_UserBlockingPriority,Nc=pn.unstable_NormalPriority,wM=pn.unstable_LowPriority,Dw=pn.unstable_IdlePriority,lu=null,cr=null;function SM(e){if(cr&&typeof cr.onCommitFiberRoot=="function")try{cr.onCommitFiberRoot(lu,e,void 0,(128&e.current.flags)===128)}catch{}}var Nn=Math.clz32?Math.clz32:RM,kM=Math.log,CM=Math.LN2;function RM(e){return e>>>=0,e===0?32:31-(kM(e)/CM|0)|0}var dc=64,hc=4194304;function ua(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function jc(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=268435455&n;if(s!==0){var a=s&~i;a!==0?r=ua(a):(o&=s,o!==0&&(r=ua(o)))}else s=n&~i,s!==0?r=ua(s):o!==0&&(r=ua(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,o=t&-t,i>=o||i===16&&(4194240&o)!==0))return t;if((4&r)!==0&&(r|=16&n),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-Nn(t),i=1<<n,r|=e[n],t&=~i;return r}function TM(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function EM(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-Nn(o),a=1<<s,l=i[s];l===-1?(a&n)!==0&&(a&r)===0||(i[s]=TM(a,t)):l<=t&&(e.expiredLanes|=a),o&=~a}}function Zh(e){return e=-1073741825&e.pendingLanes,e!==0?e:1073741824&e?1073741824:0}function zw(){var e=dc;return dc<<=1,(4194240&dc)===0&&(dc=64),e}function yh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function za(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Nn(t),e[t]=n}function FM(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-Nn(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function Vp(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Nn(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var _e=0;function Bw(e){return e&=-e,1<e?4<e?(268435455&e)!==0?16:536870912:4:1}var $w,Ap,Nw,jw,Hw,Jh=!1,pc=[],oi=null,si=null,ai=null,Ca=new Map,Ra=new Map,ti=[],PM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function yx(e,t){switch(e){case"focusin":case"focusout":oi=null;break;case"dragenter":case"dragleave":si=null;break;case"mouseover":case"mouseout":ai=null;break;case"pointerover":case"pointerout":Ca.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ra.delete(t.pointerId)}}function ta(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=$a(t),t!==null&&Ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function IM(e,t,n,r,i){switch(t){case"focusin":return oi=ta(oi,e,t,n,r,i),!0;case"dragenter":return si=ta(si,e,t,n,r,i),!0;case"mouseover":return ai=ta(ai,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Ca.set(o,ta(Ca.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ra.set(o,ta(Ra.get(o)||null,e,t,n,r,i)),!0}return!1}function Ww(e){var t=ji(e.target);if(t!==null){var n=Ji(t);if(n!==null){if(t=n.tag,t===13){if(t=Ow(n),t!==null){e.blockedOn=t,Hw(e.priority,function(){Nw(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fc(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ep(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n!==null)return t=$a(n),t!==null&&Ap(t),e.blockedOn=n,!1;n=e.nativeEvent;var r=new n.constructor(n.type,n);Xh=r,n.target.dispatchEvent(r),Xh=null,t.shift()}return!0}function bx(e,t,n){Fc(e)&&n.delete(t)}function _M(){Jh=!1,oi!==null&&Fc(oi)&&(oi=null),si!==null&&Fc(si)&&(si=null),ai!==null&&Fc(ai)&&(ai=null),Ca.forEach(bx),Ra.forEach(bx)}function na(e,t){e.blockedOn===t&&(e.blockedOn=null,Jh||(Jh=!0,pn.unstable_scheduleCallback(pn.unstable_NormalPriority,_M)))}function Ta(e){function t(i){return na(i,e)}if(0<pc.length){na(pc[0],e);for(var n=1;n<pc.length;n++){var r=pc[n];r.blockedOn===e&&(r.blockedOn=null)}}for(oi!==null&&na(oi,e),si!==null&&na(si,e),ai!==null&&na(ai,e),Ca.forEach(t),Ra.forEach(t),n=0;n<ti.length;n++)r=ti[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<ti.length&&(n=ti[0],n.blockedOn===null);)Ww(n),n.blockedOn===null&&ti.shift()}var Yo=Dr.ReactCurrentBatchConfig,Hc=!0;function OM(e,t,n,r){var i=_e,o=Yo.transition;Yo.transition=null;try{_e=1,Dp(e,t,n,r)}finally{_e=i,Yo.transition=o}}function MM(e,t,n,r){var i=_e,o=Yo.transition;Yo.transition=null;try{_e=4,Dp(e,t,n,r)}finally{_e=i,Yo.transition=o}}function Dp(e,t,n,r){if(Hc){var i=ep(e,t,n,r);if(i===null)Rh(e,t,r,Wc,n),yx(e,r);else if(IM(i,e,t,n,r))r.stopPropagation();else if(yx(e,r),4&t&&-1<PM.indexOf(e)){for(;i!==null;){var o=$a(i);if(o!==null&&$w(o),o=ep(e,t,n,r),o===null&&Rh(e,t,r,Wc,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Rh(e,t,r,null,n)}}var Wc=null;function ep(e,t,n,r){if(Wc=null,e=Mp(r),e=ji(e),e!==null)if(t=Ji(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Ow(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Wc=e,null}function Uw(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(xM()){case Lp:return 1;case Aw:return 4;case Nc:case wM:return 16;case Dw:return 536870912;default:return 16}default:return 16}}var ri=null,zp=null,Pc=null;function Gw(){if(Pc)return Pc;var e,t,n=zp,r=n.length,i="value"in ri?ri.value:ri.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var s=r-e;for(t=1;t<=s&&n[r-t]===i[o-t];t++);return Pc=i.slice(e,1<t?1-t:void 0)}function Ic(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mc(){return!0}function xx(){return!1}function gn(e){function t(n,r,i,o,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var a in e)e.hasOwnProperty(a)&&(n=e[a],this[a]=n?n(o):o[a]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?mc:xx,this.isPropagationStopped=xx,this}return Qe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=mc)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mc)},persist:function(){},isPersistent:mc}),t}var bh,xh,ra,os={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Bp=gn(os),Ba=Qe({},os,{view:0,detail:0}),LM=gn(Ba),cu=Qe({},Ba,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$p,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ra&&(ra&&e.type==="mousemove"?(bh=e.screenX-ra.screenX,xh=e.screenY-ra.screenY):xh=bh=0,ra=e),bh)},movementY:function(e){return"movementY"in e?e.movementY:xh}}),wx=gn(cu),VM=Qe({},cu,{dataTransfer:0}),AM=gn(VM),DM=Qe({},Ba,{relatedTarget:0}),wh=gn(DM),zM=Qe({},os,{animationName:0,elapsedTime:0,pseudoElement:0}),BM=gn(zM),$M=Qe({},os,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:I.clipboardData}}),NM=gn($M),jM=Qe({},os,{data:0}),Sx=gn(jM),HM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},WM={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},UM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function GM(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=UM[e])&&!!t[e]}function $p(){return GM}var qM=Qe({},Ba,{key:function(e){if(e.key){var t=HM[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ic(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?WM[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$p,charCode:function(e){return e.type==="keypress"?Ic(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ic(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),XM=gn(qM),YM=Qe({},cu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kx=gn(YM),KM=Qe({},Ba,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$p}),QM=gn(KM),ZM=Qe({},os,{propertyName:0,elapsedTime:0,pseudoElement:0}),JM=gn(ZM),eL=Qe({},cu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),tL=gn(eL),nL=[9,13,27,32],Np=Mr&&"CompositionEvent"in I,pa=null;Mr&&"documentMode"in document&&(pa=document.documentMode);var rL=Mr&&"TextEvent"in I&&!pa,qw=Mr&&(!Np||pa&&8<pa&&11>=pa),Cx=" ",Rx=!1;function Xw(e,t){switch(e){case"keyup":return nL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yw(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ao=!1;function iL(e,t){switch(e){case"compositionend":return Yw(t);case"keypress":return t.which!==32?null:(Rx=!0,Cx);case"textInput":return e=t.data,e===Cx&&Rx?null:e;default:return null}}function oL(e,t){if(Ao)return e==="compositionend"||!Np&&Xw(e,t)?(e=Gw(),Pc=zp=ri=null,Ao=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return qw&&t.locale!=="ko"?null:t.data;default:return null}}var sL={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Tx(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sL[e.type]:t==="textarea"}function Kw(e,t,n,r){Ew(r),t=Uc(t,"onChange"),0<t.length&&(n=new Bp("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ma=null,Ea=null;function aL(e){aS(e,0)}function uu(e){var t=Bo(e);if(xw(t))return e}function lL(e,t){if(e==="change")return t}var Qw=!1;Mr&&(Mr?(vc="oninput"in document,vc||(Sh=document.createElement("div"),Sh.setAttribute("oninput","return;"),vc=typeof Sh.oninput=="function"),gc=vc):gc=!1,Qw=gc&&(!document.documentMode||9<document.documentMode));var gc,vc,Sh;function Ex(){ma&&(ma.detachEvent("onpropertychange",Zw),Ea=ma=null)}function Zw(e){if(e.propertyName==="value"&&uu(Ea)){var t=[];Kw(t,Ea,e,Mp(e)),_w(aL,t)}}function cL(e,t,n){e==="focusin"?(Ex(),ma=t,Ea=n,ma.attachEvent("onpropertychange",Zw)):e==="focusout"&&Ex()}function uL(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return uu(Ea)}function fL(e,t){if(e==="click")return uu(t)}function dL(e,t){if(e==="input"||e==="change")return uu(t)}function hL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hn=typeof Object.is=="function"?Object.is:hL;function Fa(e,t){if(Hn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ah.call(t,i)||!Hn(e[i],t[i]))return!1}return!0}function Fx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Px(e,t){var n=Fx(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Fx(n)}}function Jw(e,t){return!(!e||!t)&&(e===t||(!e||e.nodeType!==3)&&(t&&t.nodeType===3?Jw(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function eS(){for(var e=I,t=zc();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(!n)break;e=t.contentWindow,t=zc(e.document)}return t}function jp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function pL(e){var t=eS(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Jw(n.ownerDocument.documentElement,n)){if(r!==null&&jp(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||I,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Px(n,o);var s=Px(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mL=Mr&&"documentMode"in document&&11>=document.documentMode,Do=null,tp=null,ga=null,np=!1;function Ix(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;np||Do==null||Do!==zc(r)||(r=Do,"selectionStart"in r&&jp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||I).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ga&&Fa(ga,r)||(ga=r,r=Uc(tp,"onSelect"),0<r.length&&(t=new Bp("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Do)))}function yc(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var zo={animationend:yc("Animation","AnimationEnd"),animationiteration:yc("Animation","AnimationIteration"),animationstart:yc("Animation","AnimationStart"),transitionend:yc("Transition","TransitionEnd")},kh={},tS={};Mr&&(tS=document.createElement("div").style,"AnimationEvent"in I||(delete zo.animationend.animation,delete zo.animationiteration.animation,delete zo.animationstart.animation),"TransitionEvent"in I||delete zo.transitionend.transition);function fu(e){if(kh[e])return kh[e];if(!zo[e])return e;var t,n=zo[e];for(t in n)if(n.hasOwnProperty(t)&&t in tS)return kh[e]=n[t];return e}var nS=fu("animationend"),rS=fu("animationiteration"),iS=fu("animationstart"),oS=fu("transitionend"),sS=new Map,_x="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function mi(e,t){sS.set(e,t),Zi(t,[e])}for(bc=0;bc<_x.length;bc++)xc=_x[bc],Ox=xc.toLowerCase(),Mx=xc[0].toUpperCase()+xc.slice(1),mi(Ox,"on"+Mx);var xc,Ox,Mx,bc;mi(nS,"onAnimationEnd");mi(rS,"onAnimationIteration");mi(iS,"onAnimationStart");mi("dblclick","onDoubleClick");mi("focusin","onFocus");mi("focusout","onBlur");mi(oS,"onTransitionEnd");Zo("onMouseEnter",["mouseout","mouseover"]);Zo("onMouseLeave",["mouseout","mouseover"]);Zo("onPointerEnter",["pointerout","pointerover"]);Zo("onPointerLeave",["pointerout","pointerover"]);Zi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Zi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Zi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Zi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Zi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Zi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),gL=new Set("cancel close invalid load scroll toggle".split(" ").concat(fa));function Lx(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,gM(r,t,void 0,e),e.currentTarget=null}function aS(e,t){t=(4&t)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var s=r.length-1;0<=s;s--){var a=r[s],l=a.instance,c=a.currentTarget;if(a=a.listener,l!==o&&i.isPropagationStopped())break e;Lx(i,a,c),o=l}else for(s=0;s<r.length;s++){if(a=r[s],l=a.instance,c=a.currentTarget,a=a.listener,l!==o&&i.isPropagationStopped())break e;Lx(i,a,c),o=l}}}if($c)throw e=Qh,$c=!1,Qh=null,e}function $e(e,t){var n=t[ap];n===void 0&&(n=t[ap]=new Set);var r=e+"__bubble";n.has(r)||(lS(t,e,2,!1),n.add(r))}function Ch(e,t,n){var r=0;t&&(r|=4),lS(n,e,r,t)}var wc="_reactListening"+Math.random().toString(36).slice(2);function Pa(e){if(!e[wc]){e[wc]=!0,mw.forEach(function(n){n!=="selectionchange"&&(gL.has(n)||Ch(n,!1,e),Ch(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wc]||(t[wc]=!0,Ch("selectionchange",!1,t))}}function lS(e,t,n,r){switch(Uw(t)){case 1:var i=OM;break;case 4:i=MM;break;default:i=Dp}n=i.bind(null,t,n,e),i=void 0,!Kh||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Rh(e,t,n,r,i){var o=r;if((1&t)===0&&(2&t)===0&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var a=r.stateNode.containerInfo;if(a===i||a.nodeType===8&&a.parentNode===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===i||l.nodeType===8&&l.parentNode===i))return;s=s.return}for(;a!==null;){if(s=ji(a),s===null)return;if(l=s.tag,l===5||l===6){r=o=s;continue e}a=a.parentNode}}r=r.return}_w(function(){var c=o,u=Mp(n),f=[];e:{var d=sS.get(e);if(d!==void 0){var h=Bp,p=e;switch(e){case"keypress":if(Ic(n)===0)break e;case"keydown":case"keyup":h=XM;break;case"focusin":p="focus",h=wh;break;case"focusout":p="blur",h=wh;break;case"beforeblur":case"afterblur":h=wh;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=wx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=AM;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=QM;break;case nS:case rS:case iS:h=BM;break;case oS:h=JM;break;case"scroll":h=LM;break;case"wheel":h=tL;break;case"copy":case"cut":case"paste":h=NM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=kx}var y=(4&t)!==0,x=!y&&e==="scroll",m=y?d!==null?d+"Capture":null:d;y=[];for(var g,v=c;v!==null;){g=v;var b=g.stateNode;if(g.tag===5&&b!==null&&(g=b,m!==null&&(b=ka(v,m),b!=null&&y.push(Ia(v,b,g)))),x)break;v=v.return}0<y.length&&(d=new h(d,p,null,n,u),f.push({event:d,listeners:y}))}}if((7&t)===0){if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",(!d||n===Xh||!(p=n.relatedTarget||n.fromElement)||!ji(p)&&!p[Lr])&&(h||d)&&(d=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:I,h?(p=n.relatedTarget||n.toElement,h=c,p=p?ji(p):null,p!==null&&(x=Ji(p),p!==x||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=c),h!==p)){if(y=wx,b="onMouseLeave",m="onMouseEnter",v="mouse",e!=="pointerout"&&e!=="pointerover"||(y=kx,b="onPointerLeave",m="onPointerEnter",v="pointer"),x=h==null?d:Bo(h),g=p==null?d:Bo(p),d=new y(b,v+"leave",h,n,u),d.target=x,d.relatedTarget=g,b=null,ji(u)===c&&(y=new y(m,v+"enter",p,n,u),y.target=g,y.relatedTarget=x,b=y),x=b,h&&p)e:{for(y=h,m=p,v=0,g=y;g;g=Mo(g))v++;for(g=0,b=m;b;b=Mo(b))g++;for(;0<v-g;)y=Mo(y),v--;for(;0<g-v;)m=Mo(m),g--;for(;v--;){if(y===m||m!==null&&y===m.alternate)break e;y=Mo(y),m=Mo(m)}y=null}else y=null;h!==null&&Vx(f,d,h,y,!1),p!==null&&x!==null&&Vx(f,x,p,y,!0)}if(d=c?Bo(c):I,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var C=lL;else if(Tx(d))if(Qw)C=dL;else{C=uL;var S=cL}else(h=d.nodeName)&&h.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(C=fL);switch(C&&(C=C(e,c))?Kw(f,C,n,u):(S&&S(e,d,c),e==="focusout"&&(S=d._wrapperState)&&S.controlled&&d.type==="number"&&Hh(d,"number",d.value)),S=c?Bo(c):I,e){case"focusin":(Tx(S)||S.contentEditable==="true")&&(Do=S,tp=c,ga=null);break;case"focusout":ga=tp=Do=null;break;case"mousedown":np=!0;break;case"contextmenu":case"mouseup":case"dragend":np=!1,Ix(f,n,u);break;case"selectionchange":if(mL)break;case"keydown":case"keyup":Ix(f,n,u)}var R;if(Np)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Ao?Xw(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(qw&&n.locale!=="ko"&&(Ao||T!=="onCompositionStart"?T==="onCompositionEnd"&&Ao&&(R=Gw()):(ri=u,zp="value"in ri?ri.value:ri.textContent,Ao=!0)),S=Uc(c,T),0<S.length&&(T=new Sx(T,e,null,n,u),f.push({event:T,listeners:S}),R?T.data=R:(R=Yw(n),R!==null&&(T.data=R)))),(R=rL?iL(e,n):oL(e,n))&&(c=Uc(c,"onBeforeInput"),0<c.length&&(u=new Sx("onBeforeInput","beforeinput",null,n,u),f.push({event:u,listeners:c}),u.data=R))}aS(f,t)})}function Ia(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Uc(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=ka(e,n),o!=null&&r.unshift(Ia(e,o,i)),o=ka(e,t),o!=null&&r.push(Ia(e,o,i))),e=e.return}return r}function Mo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Vx(e,t,n,r,i){for(var o=t._reactName,s=[];n!==null&&n!==r;){var a=n,l=a.alternate,c=a.stateNode;if(l!==null&&l===r)break;a.tag===5&&c!==null&&(a=c,i?(l=ka(n,o),l!=null&&s.unshift(Ia(n,l,a))):i||(l=ka(n,o),l!=null&&s.push(Ia(n,l,a)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var vL=/\r\n?/g,yL=/\u0000|\uFFFD/g;function Ax(e){return(typeof e=="string"?e:""+e).replace(vL,`
`).replace(yL,"")}function Sc(e,t,n){if(t=Ax(t),Ax(e)!==t&&n)throw Error(D(425))}function Gc(){}var rp=null,ip=null;function op(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var sp=typeof setTimeout=="function"?setTimeout:void 0,bL=typeof clearTimeout=="function"?clearTimeout:void 0,Dx=typeof Promise=="function"?Promise:void 0,xL=typeof queueMicrotask=="function"?queueMicrotask:typeof Dx<"u"?function(e){return Dx.resolve(null).then(e).catch(wL)}:sp;function wL(e){setTimeout(function(){throw e})}function Th(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Ta(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Ta(t)}function li(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function zx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ss=Math.random().toString(36).slice(2),lr="__reactFiber$"+ss,_a="__reactProps$"+ss,Lr="__reactContainer$"+ss,ap="__reactEvents$"+ss,SL="__reactListeners$"+ss,kL="__reactHandles$"+ss;function ji(e){var t=e[lr];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Lr]||n[lr]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=zx(e);e!==null;){if(n=e[lr])return n;e=zx(e)}return t}e=n,n=e.parentNode}return null}function $a(e){return e=e[lr]||e[Lr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Bo(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(D(33))}function du(e){return e[_a]||null}var lp=[],$o=-1;function gi(e){return{current:e}}function Ne(e){0>$o||(e.current=lp[$o],lp[$o]=null,$o--)}function De(e,t){$o++,lp[$o]=e.current,e.current=t}var pi={},zt=gi(pi),Jt=gi(!1),qi=pi;function Jo(e,t){var n=e.type.contextTypes;if(!n)return pi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function en(e){return e=e.childContextTypes,e!=null}function qc(){Ne(Jt),Ne(zt)}function Bx(e,t,n){if(zt.current!==pi)throw Error(D(168));De(zt,t),De(Jt,n)}function cS(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(D(108,cM(e)||"Unknown",i));return Qe({},n,r)}function Xc(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||pi,qi=zt.current,De(zt,e),De(Jt,Jt.current),!0}function $x(e,t,n){var r=e.stateNode;if(!r)throw Error(D(169));n?(e=cS(e,t,qi),r.__reactInternalMemoizedMergedChildContext=e,Ne(Jt),Ne(zt),De(zt,e)):Ne(Jt),De(Jt,n)}var Pr=null,hu=!1,Eh=!1;function uS(e){Pr===null?Pr=[e]:Pr.push(e)}function CL(e){hu=!0,uS(e)}function vi(){if(!Eh&&Pr!==null){Eh=!0;var e=0,t=_e;try{var n=Pr;for(_e=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}Pr=null,hu=!1}catch(i){throw Pr!==null&&(Pr=Pr.slice(e+1)),Vw(Lp,vi),i}finally{_e=t,Eh=!1}}return null}var No=[],jo=0,Yc=null,Kc=0,Rn=[],Tn=0,Xi=null,Ir=1,_r="";function $i(e,t){No[jo++]=Kc,No[jo++]=Yc,Yc=e,Kc=t}function fS(e,t,n){Rn[Tn++]=Ir,Rn[Tn++]=_r,Rn[Tn++]=Xi,Xi=e;var r=Ir;e=_r;var i=32-Nn(r)-1;r&=~(1<<i),n+=1;var o=32-Nn(t)+i;if(30<o){var s=i-i%5;o=(r&(1<<s)-1).toString(32),r>>=s,i-=s,Ir=1<<32-Nn(t)+i|n<<i|r,_r=o+e}else Ir=1<<o|n<<i|r,_r=e}function Hp(e){e.return!==null&&($i(e,1),fS(e,1,0))}function Wp(e){for(;e===Yc;)Yc=No[--jo],No[jo]=null,Kc=No[--jo],No[jo]=null;for(;e===Xi;)Xi=Rn[--Tn],Rn[Tn]=null,_r=Rn[--Tn],Rn[Tn]=null,Ir=Rn[--Tn],Rn[Tn]=null}var hn=null,dn=null,Ge=!1,$n=null;function dS(e,t){var n=En(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Nx(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null&&(e.stateNode=t,hn=e,dn=li(t.firstChild),!0);case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null&&(e.stateNode=t,hn=e,dn=null,!0);case 13:return t=t.nodeType!==8?null:t,t!==null&&(n=Xi!==null?{id:Ir,overflow:_r}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=En(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,hn=e,dn=null,!0);default:return!1}}function cp(e){return(1&e.mode)!==0&&(128&e.flags)===0}function up(e){if(Ge){var t=dn;if(t){var n=t;if(!Nx(e,t)){if(cp(e))throw Error(D(418));t=li(n.nextSibling);var r=hn;t&&Nx(e,t)?dS(r,n):(e.flags=-4097&e.flags|2,Ge=!1,hn=e)}}else{if(cp(e))throw Error(D(418));e.flags=-4097&e.flags|2,Ge=!1,hn=e}}}function jx(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;hn=e}function kc(e){if(e!==hn)return!1;if(!Ge)return jx(e),Ge=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!op(e.type,e.memoizedProps)),t&&(t=dn)){if(cp(e))throw hS(),Error(D(418));for(;t;)dS(e,t),t=li(t.nextSibling)}if(jx(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(D(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){dn=li(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}dn=null}}else dn=hn?li(e.stateNode.nextSibling):null;return!0}function hS(){for(var e=dn;e;)e=li(e.nextSibling)}function es(){dn=hn=null,Ge=!1}function Up(e){$n===null?$n=[e]:$n.push(e)}var RL=Dr.ReactCurrentBatchConfig;function zn(e,t){if(e&&e.defaultProps){t=Qe({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}var Qc=gi(null),Zc=null,Ho=null,Gp=null;function qp(){Gp=Ho=Zc=null}function Xp(e){var t=Qc.current;Ne(Qc),e._currentValue=t}function fp(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ko(e,t){Zc=e,Gp=Ho=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Zt=!0),e.firstContext=null)}function Pn(e){var t=e._currentValue;if(Gp!==e)if(e={context:e,memoizedValue:t,next:null},Ho===null){if(Zc===null)throw Error(D(308));Ho=e,Zc.dependencies={lanes:0,firstContext:e}}else Ho=Ho.next=e;return t}var Hi=null;function Yp(e){Hi===null?Hi=[e]:Hi.push(e)}function pS(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Yp(t)):(n.next=i.next,i.next=n),t.interleaved=n,Vr(e,r)}function Vr(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var ei=!1;function Kp(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function mS(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Or(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ci(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(2&Te)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Vr(e,n)}return i=r.interleaved,i===null?(t.next=t,Yp(r)):(t.next=i.next,i.next=t),r.interleaved=t,Vr(e,n)}function _c(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(4194240&n)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vp(e,n)}}function Hx(e,t){var n=e.updateQueue,r=e.alternate;if(r===null||(r=r.updateQueue,n!==r))e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t;else{var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=s:o=o.next=s,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n}}function Jc(e,t,n,r){var i=e.updateQueue;ei=!1;var o=i.firstBaseUpdate,s=i.lastBaseUpdate,a=i.shared.pending;if(a!==null){i.shared.pending=null;var l=a,c=l.next;l.next=null,s===null?o=c:s.next=c,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,a=u.lastBaseUpdate,a!==s&&(a===null?u.firstBaseUpdate=c:a.next=c,u.lastBaseUpdate=l))}if(o!==null){var f=i.baseState;s=0,u=c=l=null,a=o;do{var d=a.lane,h=a.eventTime;if((r&d)===d){u!==null&&(u=u.next={eventTime:h,lane:0,tag:a.tag,payload:a.payload,callback:a.callback,next:null});e:{var p=e,y=a;switch(d=t,h=n,y.tag){case 1:if(p=y.payload,typeof p=="function"){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(p=y.payload,d=typeof p=="function"?p.call(h,f,d):p,d==null)break e;f=Qe({},f,d);break e;case 2:ei=!0}}a.callback!==null&&a.lane!==0&&(e.flags|=64,d=i.effects,d===null?i.effects=[a]:d.push(a))}else h={eventTime:h,lane:d,tag:a.tag,payload:a.payload,callback:a.callback,next:null},u===null?(c=u=h,l=f):u=u.next=h,s|=d;if(a=a.next,a===null){if(a=i.shared.pending,a===null)break;d=a,a=d.next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}while(!0);if(u===null&&(l=f),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Ki|=s,e.lanes=s,e.memoizedState=f}}function Wx(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(D(191,i));i.call(r)}}}var gS=new pw.Component().refs;function dp(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Qe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var pu={isMounted:function(e){return!!(e=e._reactInternals)&&Ji(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ut(),i=fi(e),o=Or(r,i);o.payload=t,n!=null&&(o.callback=n),t=ci(e,o,i),t!==null&&(jn(t,e,i,r),_c(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ut(),i=fi(e),o=Or(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=ci(e,o,i),t!==null&&(jn(t,e,i,r),_c(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ut(),r=fi(e),i=Or(n,r);i.tag=2,t!=null&&(i.callback=t),t=ci(e,i,r),t!==null&&(jn(t,e,r,n),_c(t,e,r))}};function Ux(e,t,n,r,i,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,s):!t.prototype||!t.prototype.isPureReactComponent||!Fa(n,r)||!Fa(i,o)}function vS(e,t,n){var r=!1,i=pi,o=t.contextType;return typeof o=="object"&&o!==null?o=Pn(o):(i=en(t)?qi:zt.current,r=t.contextTypes,o=(r=r!=null)?Jo(e,i):pi),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=pu,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Gx(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&pu.enqueueReplaceState(t,t.state,null)}function hp(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=gS,Kp(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Pn(o):(o=en(t)?qi:zt.current,i.context=Jo(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(dp(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&pu.enqueueReplaceState(i,i.state,null),Jc(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function ia(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(D(309));var r=n.stateNode}if(!r)throw Error(D(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var a=i.refs;a===gS&&(a=i.refs={}),s===null?delete a[o]:a[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(D(284));if(!n._owner)throw Error(D(290,e))}return e}function Cc(e,t){throw e=Object.prototype.toString.call(t),Error(D(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function qx(e){var t=e._init;return t(e._payload)}function yS(e){function t(m,g){if(e){var v=m.deletions;v===null?(m.deletions=[g],m.flags|=16):v.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m,g){for(m=new Map;g!==null;)g.key!==null?m.set(g.key,g):m.set(g.index,g),g=g.sibling;return m}function i(m,g){return m=di(m,g),m.index=0,m.sibling=null,m}function o(m,g,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<g?(m.flags|=2,g):v):(m.flags|=2,g)):(m.flags|=1048576,g)}function s(m){return e&&m.alternate===null&&(m.flags|=2),m}function a(m,g,v,b){return g===null||g.tag!==6?(g=Lh(v,m.mode,b),g.return=m,g):(g=i(g,v),g.return=m,g)}function l(m,g,v,b){var C=v.type;return C===Vo?u(m,g,v.props.children,b,v.key):g!==null&&(g.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Jr&&qx(C)===g.type)?(b=i(g,v.props),b.ref=ia(m,g,v),b.return=m,b):(b=Dc(v.type,v.key,v.props,null,m.mode,b),b.ref=ia(m,g,v),b.return=m,b)}function c(m,g,v,b){return g===null||g.tag!==4||g.stateNode.containerInfo!==v.containerInfo||g.stateNode.implementation!==v.implementation?(g=Vh(v,m.mode,b),g.return=m,g):(g=i(g,v.children||[]),g.return=m,g)}function u(m,g,v,b,C){return g===null||g.tag!==7?(g=Gi(v,m.mode,b,C),g.return=m,g):(g=i(g,v),g.return=m,g)}function f(m,g,v){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Lh(""+g,m.mode,v),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case cc:return v=Dc(g.type,g.key,g.props,null,m.mode,v),v.ref=ia(m,null,g),v.return=m,v;case Lo:return g=Vh(g,m.mode,v),g.return=m,g;case Jr:var b=g._init;return f(m,b(g._payload),v)}if(ca(g)||ea(g))return g=Gi(g,m.mode,v,null),g.return=m,g;Cc(m,g)}return null}function d(m,g,v,b){var C=g!==null?g.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return C!==null?null:a(m,g,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case cc:return v.key===C?l(m,g,v,b):null;case Lo:return v.key===C?c(m,g,v,b):null;case Jr:return C=v._init,d(m,g,C(v._payload),b)}if(ca(v)||ea(v))return C!==null?null:u(m,g,v,b,null);Cc(m,v)}return null}function h(m,g,v,b,C){if(typeof b=="string"&&b!==""||typeof b=="number")return m=m.get(v)||null,a(g,m,""+b,C);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case cc:return m=m.get(b.key===null?v:b.key)||null,l(g,m,b,C);case Lo:return m=m.get(b.key===null?v:b.key)||null,c(g,m,b,C);case Jr:var S=b._init;return h(m,g,v,S(b._payload),C)}if(ca(b)||ea(b))return m=m.get(v)||null,u(g,m,b,C,null);Cc(g,b)}return null}function p(m,g,v,b){for(var C=null,S=null,R=g,T=g=0,F=null;R!==null&&T<v.length;T++){R.index>T?(F=R,R=null):F=R.sibling;var P=d(m,R,v[T],b);if(P===null){R===null&&(R=F);break}e&&R&&P.alternate===null&&t(m,R),g=o(P,g,T),S===null?C=P:S.sibling=P,S=P,R=F}if(T===v.length)return n(m,R),Ge&&$i(m,T),C;if(R===null){for(;T<v.length;T++)R=f(m,v[T],b),R!==null&&(g=o(R,g,T),S===null?C=R:S.sibling=R,S=R);return Ge&&$i(m,T),C}for(R=r(m,R);T<v.length;T++)F=h(R,m,T,v[T],b),F!==null&&(e&&F.alternate!==null&&R.delete(F.key===null?T:F.key),g=o(F,g,T),S===null?C=F:S.sibling=F,S=F);return e&&R.forEach(function(B){return t(m,B)}),Ge&&$i(m,T),C}function y(m,g,v,b){var C=ea(v);if(typeof C!="function")throw Error(D(150));if(v=C.call(v),v==null)throw Error(D(151));for(var S=C=null,R=g,T=g=0,F=null,P=v.next();R!==null&&!P.done;T++,P=v.next()){R.index>T?(F=R,R=null):F=R.sibling;var B=d(m,R,P.value,b);if(B===null){R===null&&(R=F);break}e&&R&&B.alternate===null&&t(m,R),g=o(B,g,T),S===null?C=B:S.sibling=B,S=B,R=F}if(P.done)return n(m,R),Ge&&$i(m,T),C;if(R===null){for(;!P.done;T++,P=v.next())P=f(m,P.value,b),P!==null&&(g=o(P,g,T),S===null?C=P:S.sibling=P,S=P);return Ge&&$i(m,T),C}for(R=r(m,R);!P.done;T++,P=v.next())P=h(R,m,T,P.value,b),P!==null&&(e&&P.alternate!==null&&R.delete(P.key===null?T:P.key),g=o(P,g,T),S===null?C=P:S.sibling=P,S=P);return e&&R.forEach(function(H){return t(m,H)}),Ge&&$i(m,T),C}function x(m,g,v,b){if(typeof v=="object"&&v!==null&&v.type===Vo&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case cc:e:{for(var C=v.key,S=g;S!==null;){if(S.key===C){if(C=v.type,C===Vo){if(S.tag===7){n(m,S.sibling),g=i(S,v.props.children),g.return=m,m=g;break e}}else if(S.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===Jr&&qx(C)===S.type){n(m,S.sibling),g=i(S,v.props),g.ref=ia(m,S,v),g.return=m,m=g;break e}n(m,S);break}t(m,S),S=S.sibling}v.type===Vo?(g=Gi(v.props.children,m.mode,b,v.key),g.return=m,m=g):(b=Dc(v.type,v.key,v.props,null,m.mode,b),b.ref=ia(m,g,v),b.return=m,m=b)}return s(m);case Lo:e:{for(S=v.key;g!==null;){if(g.key===S){if(g.tag===4&&g.stateNode.containerInfo===v.containerInfo&&g.stateNode.implementation===v.implementation){n(m,g.sibling),g=i(g,v.children||[]),g.return=m,m=g;break e}n(m,g);break}t(m,g),g=g.sibling}g=Vh(v,m.mode,b),g.return=m,m=g}return s(m);case Jr:return S=v._init,x(m,g,S(v._payload),b)}if(ca(v))return p(m,g,v,b);if(ea(v))return y(m,g,v,b);Cc(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,g!==null&&g.tag===6?(n(m,g.sibling),g=i(g,v),g.return=m,m=g):(n(m,g),g=Lh(v,m.mode,b),g.return=m,m=g),s(m)):n(m,g)}return x}var ts=yS(!0),bS=yS(!1),Na={},ur=gi(Na),Oa=gi(Na),Ma=gi(Na);function Wi(e){if(e===Na)throw Error(D(174));return e}function Qp(e,t){switch(De(Ma,t),De(Oa,e),De(ur,Na),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Uh(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Uh(t,e)}Ne(ur),De(ur,t)}function ns(){Ne(ur),Ne(Oa),Ne(Ma)}function xS(e){Wi(Ma.current);var t=Wi(ur.current),n=Uh(t,e.type);t!==n&&(De(Oa,e),De(ur,n))}function Zp(e){Oa.current===e&&(Ne(ur),Ne(Oa))}var Ye=gi(0);function eu(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((128&t.flags)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Fh=[];function Jp(){for(var e=0;e<Fh.length;e++)Fh[e]._workInProgressVersionPrimary=null;Fh.length=0}var Oc=Dr.ReactCurrentDispatcher,Ph=Dr.ReactCurrentBatchConfig,Yi=0,Ke=null,pt=null,bt=null,tu=!1,va=!1,La=0,TL=0;function Vt(){throw Error(D(321))}function em(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Hn(e[n],t[n]))return!1;return!0}function tm(e,t,n,r,i,o){if(Yi=o,Ke=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Oc.current=e===null||e.memoizedState===null?IL:_L,e=n(r,i),va){o=0;do{if(va=!1,La=0,25<=o)throw Error(D(301));o+=1,bt=pt=null,t.updateQueue=null,Oc.current=OL,e=n(r,i)}while(va)}if(Oc.current=nu,t=pt!==null&&pt.next!==null,Yi=0,bt=pt=Ke=null,tu=!1,t)throw Error(D(300));return e}function nm(){var e=La!==0;return La=0,e}function ar(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?Ke.memoizedState=bt=e:bt=bt.next=e,bt}function In(){if(pt===null){var e=Ke.alternate;e=e!==null?e.memoizedState:null}else e=pt.next;var t=bt===null?Ke.memoizedState:bt.next;if(t!==null)bt=t,pt=e;else{if(e===null)throw Error(D(310));pt=e,e={memoizedState:pt.memoizedState,baseState:pt.baseState,baseQueue:pt.baseQueue,queue:pt.queue,next:null},bt===null?Ke.memoizedState=bt=e:bt=bt.next=e}return bt}function Va(e,t){return typeof t=="function"?t(e):t}function Ih(e){var t=In(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=pt,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var a=s=null,l=null,c=o;do{var u=c.lane;if((Yi&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var f={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(a=l=f,s=r):l=l.next=f,Ke.lanes|=u,Ki|=u}c=c.next}while(c!==null&&c!==o);l===null?s=r:l.next=a,Hn(r,t.memoizedState)||(Zt=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Ke.lanes|=o,Ki|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function _h(e){var t=In(),n=t.queue;if(n===null)throw Error(D(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do o=e(o,s.action),s=s.next;while(s!==i);Hn(o,t.memoizedState)||(Zt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function wS(){}function SS(e,t){var n=Ke,r=In(),i=t(),o=!Hn(r.memoizedState,i);if(o&&(r.memoizedState=i,Zt=!0),r=r.queue,rm(RS.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||bt!==null&&1&bt.memoizedState.tag){if(n.flags|=2048,Aa(9,CS.bind(null,n,r,i,t),void 0,null),xt===null)throw Error(D(349));(30&Yi)!==0||kS(n,t,i)}return i}function kS(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ke.updateQueue,t===null?(t={lastEffect:null,stores:null},Ke.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function CS(e,t,n,r){t.value=n,t.getSnapshot=r,TS(t)&&ES(e)}function RS(e,t,n){return n(function(){TS(t)&&ES(e)})}function TS(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Hn(e,n)}catch{return!0}}function ES(e){var t=Vr(e,1);t!==null&&jn(t,e,1,-1)}function Xx(e){var t=ar();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Va,lastRenderedState:e},t.queue=e,e=e.dispatch=PL.bind(null,Ke,e),[t.memoizedState,e]}function Aa(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ke.updateQueue,t===null?(t={lastEffect:null,stores:null},Ke.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function FS(){return In().memoizedState}function Mc(e,t,n,r){var i=ar();Ke.flags|=e,i.memoizedState=Aa(1|t,n,void 0,r===void 0?null:r)}function mu(e,t,n,r){var i=In();r=r===void 0?null:r;var o=void 0;if(pt!==null){var s=pt.memoizedState;if(o=s.destroy,r!==null&&em(r,s.deps)){i.memoizedState=Aa(t,n,o,r);return}}Ke.flags|=e,i.memoizedState=Aa(1|t,n,o,r)}function Yx(e,t){return Mc(8390656,8,e,t)}function rm(e,t){return mu(2048,8,e,t)}function PS(e,t){return mu(4,2,e,t)}function IS(e,t){return mu(4,4,e,t)}function _S(e,t){return typeof t=="function"?(e=e(),t(e),function(){t(null)}):t!=null?(e=e(),t.current=e,function(){t.current=null}):void 0}function OS(e,t,n){return n=n!=null?n.concat([e]):null,mu(4,4,_S.bind(null,t,e),n)}function im(){}function MS(e,t){var n=In();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&em(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function LS(e,t){var n=In();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&em(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function VS(e,t,n){return(21&Yi)===0?(e.baseState&&(e.baseState=!1,Zt=!0),e.memoizedState=n):(Hn(n,t)||(n=zw(),Ke.lanes|=n,Ki|=n,e.baseState=!0),t)}function EL(e,t){var n=_e;_e=n!==0&&4>n?n:4,e(!0);var r=Ph.transition;Ph.transition={};try{e(!1),t()}finally{_e=n,Ph.transition=r}}function AS(){return In().memoizedState}function FL(e,t,n){var r=fi(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},DS(e))zS(t,n);else if(n=pS(e,t,n,r),n!==null){var i=Ut();jn(n,e,r,i),BS(n,t,r)}}function PL(e,t,n){var r=fi(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(DS(e))zS(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Hn(a,s)){var l=t.interleaved;l===null?(i.next=i,Yp(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}n=pS(e,t,i,r),n!==null&&(i=Ut(),jn(n,e,r,i),BS(n,t,r))}}function DS(e){var t=e.alternate;return e===Ke||t!==null&&t===Ke}function zS(e,t){va=tu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function BS(e,t,n){if((4194240&n)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Vp(e,n)}}var nu={readContext:Pn,useCallback:Vt,useContext:Vt,useEffect:Vt,useImperativeHandle:Vt,useInsertionEffect:Vt,useLayoutEffect:Vt,useMemo:Vt,useReducer:Vt,useRef:Vt,useState:Vt,useDebugValue:Vt,useDeferredValue:Vt,useTransition:Vt,useMutableSource:Vt,useSyncExternalStore:Vt,useId:Vt,unstable_isNewReconciler:!1},IL={readContext:Pn,useCallback:function(e,t){return ar().memoizedState=[e,t===void 0?null:t],e},useContext:Pn,useEffect:Yx,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Mc(4194308,4,_S.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Mc(4194308,4,e,t)},useInsertionEffect:function(e,t){return Mc(4,2,e,t)},useMemo:function(e,t){var n=ar();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ar();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=FL.bind(null,Ke,e),[r.memoizedState,e]},useRef:function(e){var t=ar();return e={current:e},t.memoizedState=e},useState:Xx,useDebugValue:im,useDeferredValue:function(e){return ar().memoizedState=e},useTransition:function(){var e=Xx(!1),t=e[0];return e=EL.bind(null,e[1]),ar().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ke,i=ar();if(Ge){if(n===void 0)throw Error(D(407));n=n()}else{if(n=t(),xt===null)throw Error(D(349));(30&Yi)!==0||kS(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Yx(RS.bind(null,r,o,e),[e]),r.flags|=2048,Aa(9,CS.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=ar(),t=xt.identifierPrefix;if(Ge){var n=_r,r=Ir;n=(r&~(1<<32-Nn(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=La++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=TL++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},_L={readContext:Pn,useCallback:MS,useContext:Pn,useEffect:rm,useImperativeHandle:OS,useInsertionEffect:PS,useLayoutEffect:IS,useMemo:LS,useReducer:Ih,useRef:FS,useState:function(){return Ih(Va)},useDebugValue:im,useDeferredValue:function(e){var t=In();return VS(t,pt.memoizedState,e)},useTransition:function(){var e=Ih(Va)[0],t=In().memoizedState;return[e,t]},useMutableSource:wS,useSyncExternalStore:SS,useId:AS,unstable_isNewReconciler:!1},OL={readContext:Pn,useCallback:MS,useContext:Pn,useEffect:rm,useImperativeHandle:OS,useInsertionEffect:PS,useLayoutEffect:IS,useMemo:LS,useReducer:_h,useRef:FS,useState:function(){return _h(Va)},useDebugValue:im,useDeferredValue:function(e){var t=In();return pt===null?t.memoizedState=e:VS(t,pt.memoizedState,e)},useTransition:function(){var e=_h(Va)[0],t=In().memoizedState;return[e,t]},useMutableSource:wS,useSyncExternalStore:SS,useId:AS,unstable_isNewReconciler:!1};function rs(e,t){try{var n="",r=t;do n+=lM(r),r=r.return;while(r);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function Oh(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function pp(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var ML=typeof WeakMap=="function"?WeakMap:Map;function $S(e,t,n){n=Or(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){iu||(iu=!0,kp=r),pp(e,t)},n}function NS(e,t,n){n=Or(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){pp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){pp(e,t),typeof r!="function"&&(ui===null?ui=new Set([this]):ui.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function Kx(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ML;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=qL.bind(null,e,t,n),t.then(e,e))}function Qx(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Zx(e,t,n,r,i){return(1&e.mode)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Or(-1,1),t.tag=2,ci(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var LL=Dr.ReactCurrentOwner,Zt=!1;function Wt(e,t,n,r){t.child=e===null?bS(t,null,n,r):ts(t,e.child,n,r)}function Jx(e,t,n,r,i){n=n.render;var o=t.ref;return Ko(t,i),r=tm(e,t,n,r,o,i),n=nm(),e!==null&&!Zt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ar(e,t,i)):(Ge&&n&&Hp(t),t.flags|=1,Wt(e,t,r,i),t.child)}function ew(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!dm(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,jS(e,t,o,r,i)):(e=Dc(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:Fa,n(s,r)&&e.ref===t.ref)return Ar(e,t,i)}return t.flags|=1,e=di(o,r),e.ref=t.ref,e.return=t,t.child=e}function jS(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Fa(o,r)&&e.ref===t.ref){if(Zt=!1,t.pendingProps=r=o,(e.lanes&i)===0)return t.lanes=e.lanes,Ar(e,t,i);(131072&e.flags)!==0&&(Zt=!0)}}return mp(e,t,n,r,i)}function HS(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((1&t.mode)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},De(Uo,fn),fn|=n;else{if((1073741824&n)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,De(Uo,fn),fn|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,De(Uo,fn),fn|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,De(Uo,fn),fn|=r;return Wt(e,t,i,n),t.child}function WS(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function mp(e,t,n,r,i){var o=en(n)?qi:zt.current;return o=Jo(t,o),Ko(t,i),n=tm(e,t,n,r,o,i),r=nm(),e!==null&&!Zt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Ar(e,t,i)):(Ge&&r&&Hp(t),t.flags|=1,Wt(e,t,n,i),t.child)}function tw(e,t,n,r,i){if(en(n)){var o=!0;Xc(t)}else o=!1;if(Ko(t,i),t.stateNode===null)Lc(e,t),vS(t,n,r),hp(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var l=s.context,c=n.contextType;typeof c=="object"&&c!==null?c=Pn(c):(c=en(n)?qi:zt.current,c=Jo(t,c));var u=n.getDerivedStateFromProps,f=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";f||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||l!==c)&&Gx(t,s,r,c),ei=!1;var d=t.memoizedState;s.state=d,Jc(t,r,s,i),l=t.memoizedState,a!==r||d!==l||Jt.current||ei?(typeof u=="function"&&(dp(t,n,u,r),l=t.memoizedState),(a=ei||Ux(t,n,a,r,d,l,c))?(f||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),s.props=r,s.state=l,s.context=c,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,mS(e,t),a=t.memoizedProps,c=t.type===t.elementType?a:zn(t.type,a),s.props=c,f=t.pendingProps,d=s.context,l=n.contextType,typeof l=="object"&&l!==null?l=Pn(l):(l=en(n)?qi:zt.current,l=Jo(t,l));var h=n.getDerivedStateFromProps;(u=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==f||d!==l)&&Gx(t,s,r,l),ei=!1,d=t.memoizedState,s.state=d,Jc(t,r,s,i);var p=t.memoizedState;a!==f||d!==p||Jt.current||ei?(typeof h=="function"&&(dp(t,n,h,r),p=t.memoizedState),(c=ei||Ux(t,n,c,r,d,p,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,p,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,p,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),s.props=r,s.state=p,s.context=l,r=c):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return gp(e,t,n,r,o,i)}function gp(e,t,n,r,i,o){WS(e,t);var s=(128&t.flags)!==0;if(!r&&!s)return i&&$x(t,n,!1),Ar(e,t,o);r=t.stateNode,LL.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=ts(t,e.child,null,o),t.child=ts(t,null,a,o)):Wt(e,t,a,o),t.memoizedState=r.state,i&&$x(t,n,!0),t.child}function US(e){var t=e.stateNode;t.pendingContext?Bx(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Bx(e,t.context,!1),Qp(e,t.containerInfo)}function nw(e,t,n,r,i){return es(),Up(i),t.flags|=256,Wt(e,t,n,r),t.child}var vp={dehydrated:null,treeContext:null,retryLane:0};function yp(e){return{baseLanes:e,cachePool:null,transitions:null}}function GS(e,t,n){var r,i=t.pendingProps,o=Ye.current,s=!1,a=(128&t.flags)!==0;if((r=a)||(r=(e===null||e.memoizedState!==null)&&(2&o)!==0),r?(s=!0,t.flags&=-129):e!==null&&e.memoizedState===null||(o|=1),De(Ye,1&o),e===null)return up(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((1&t.mode)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=i.children,e=i.fallback,s?(i=t.mode,s=t.child,a={mode:"hidden",children:a},(1&i)===0&&s!==null?(s.childLanes=0,s.pendingProps=a):s=yu(a,i,0,null),e=Gi(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=yp(n),t.memoizedState=vp,e):om(t,a));if(o=e.memoizedState,o!==null&&(r=o.dehydrated,r!==null))return VL(e,t,a,i,r,o,n);if(s){s=i.fallback,a=t.mode,o=e.child,r=o.sibling;var l={mode:"hidden",children:i.children};return(1&a)===0&&t.child!==o?(i=t.child,i.childLanes=0,i.pendingProps=l,t.deletions=null):(i=di(o,l),i.subtreeFlags=14680064&o.subtreeFlags),r!==null?s=di(r,s):(s=Gi(s,a,n,null),s.flags|=2),s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,a=e.child.memoizedState,a=a===null?yp(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},s.memoizedState=a,s.childLanes=e.childLanes&~n,t.memoizedState=vp,i}return s=e.child,e=s.sibling,i=di(s,{mode:"visible",children:i.children}),(1&t.mode)===0&&(i.lanes=n),i.return=t,i.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function om(e,t){return t=yu({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Rc(e,t,n,r){return r!==null&&Up(r),ts(t,e.child,null,n),e=om(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function VL(e,t,n,r,i,o,s){if(n)return 256&t.flags?(t.flags&=-257,r=Oh(Error(D(422))),Rc(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=yu({mode:"visible",children:r.children},i,0,null),o=Gi(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(1&t.mode)!==0&&ts(t,e.child,null,s),t.child.memoizedState=yp(s),t.memoizedState=vp,o);if((1&t.mode)===0)return Rc(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(D(419)),r=Oh(o,r,void 0),Rc(e,t,s,r)}if(a=(s&e.childLanes)!==0,Zt||a){if(r=xt,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|s))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Vr(e,i),jn(r,e,i,-1))}return fm(),r=Oh(Error(D(421))),Rc(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=XL.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,dn=li(i.nextSibling),hn=t,Ge=!0,$n=null,e!==null&&(Rn[Tn++]=Ir,Rn[Tn++]=_r,Rn[Tn++]=Xi,Ir=e.id,_r=e.overflow,Xi=t),t=om(t,r.children),t.flags|=4096,t)}function rw(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),fp(e.return,t,n)}function Mh(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function qS(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Wt(e,t,r.children,n),r=Ye.current,(2&r)!==0)r=1&r|2,t.flags|=128;else{if(e!==null&&(128&e.flags)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&rw(e,n,t);else if(e.tag===19)rw(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(De(Ye,r),(1&t.mode)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&eu(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Mh(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&eu(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Mh(t,!0,n,null,o);break;case"together":Mh(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Lc(e,t){(1&t.mode)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ar(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ki|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(D(153));if(t.child!==null){for(e=t.child,n=di(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=di(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function AL(e,t,n){switch(t.tag){case 3:US(t),es();break;case 5:xS(t);break;case 1:en(t.type)&&Xc(t);break;case 4:Qp(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;De(Qc,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(De(Ye,1&Ye.current),t.flags|=128,null):(n&t.child.childLanes)!==0?GS(e,t,n):(De(Ye,1&Ye.current),e=Ar(e,t,n),e!==null?e.sibling:null);De(Ye,1&Ye.current);break;case 19:if(r=(n&t.childLanes)!==0,(128&e.flags)!==0){if(r)return qS(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),De(Ye,Ye.current),r)break;return null;case 22:case 23:return t.lanes=0,HS(e,t,n)}return Ar(e,t,n)}var XS,bp,YS,KS;XS=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};bp=function(){};YS=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Wi(ur.current);var o=null;switch(n){case"input":i=Nh(e,i),r=Nh(e,r),o=[];break;case"select":i=Qe({},i,{value:void 0}),r=Qe({},r,{value:void 0}),o=[];break;case"textarea":i=Wh(e,i),r=Wh(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Gc)}Gh(n,r);var s;n=null;for(c in i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&i[c]!=null)if(c==="style"){var a=i[c];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(wa.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var l=r[c];if(a=i?.[c],r.hasOwnProperty(c)&&l!==a&&(l!=null||a!=null))if(c==="style")if(a){for(s in a)!a.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in l)l.hasOwnProperty(s)&&a[s]!==l[s]&&(n||(n={}),n[s]=l[s])}else n||(o||(o=[]),o.push(c,n)),n=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,a=a?a.__html:void 0,l!=null&&a!==l&&(o=o||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(wa.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&$e("scroll",e),o||a===l||(o=[])):(o=o||[]).push(c,l))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}};KS=function(e,t,n,r){n!==r&&(t.flags|=4)};function oa(e,t){if(!Ge)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function At(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function DL(e,t,n){var r=t.pendingProps;switch(Wp(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(t),null;case 1:return en(t.type)&&qc(),At(t),null;case 3:return r=t.stateNode,ns(),Ne(Jt),Ne(zt),Jp(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),e!==null&&e.child!==null||(kc(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(256&t.flags)===0||(t.flags|=1024,$n!==null&&(Tp($n),$n=null))),bp(e,t),At(t),null;case 5:Zp(t);var i=Wi(Ma.current);if(n=t.type,e!==null&&t.stateNode!=null)YS(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(D(166));return At(t),null}if(e=Wi(ur.current),kc(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[lr]=t,r[_a]=o,e=(1&t.mode)!==0,n){case"dialog":$e("cancel",r),$e("close",r);break;case"iframe":case"object":case"embed":$e("load",r);break;case"video":case"audio":for(i=0;i<fa.length;i++)$e(fa[i],r);break;case"source":$e("error",r);break;case"img":case"image":case"link":$e("error",r),$e("load",r);break;case"details":$e("toggle",r);break;case"input":fx(r,o),$e("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},$e("invalid",r);break;case"textarea":hx(r,o),$e("invalid",r)}Gh(n,o),i=null;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];s==="children"?typeof a=="string"?r.textContent!==a&&(o.suppressHydrationWarning!==!0&&Sc(r.textContent,a,e),i=["children",a]):typeof a=="number"&&r.textContent!==""+a&&(o.suppressHydrationWarning!==!0&&Sc(r.textContent,a,e),i=["children",""+a]):wa.hasOwnProperty(s)&&a!=null&&s==="onScroll"&&$e("scroll",r)}switch(n){case"input":uc(r),dx(r,o,!0);break;case"textarea":uc(r),px(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Gc)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{s=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=kw(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[lr]=t,e[_a]=r,XS(e,t,!1,!1),t.stateNode=e;e:{switch(s=qh(n,r),n){case"dialog":$e("cancel",e),$e("close",e),i=r;break;case"iframe":case"object":case"embed":$e("load",e),i=r;break;case"video":case"audio":for(i=0;i<fa.length;i++)$e(fa[i],e);i=r;break;case"source":$e("error",e),i=r;break;case"img":case"image":case"link":$e("error",e),$e("load",e),i=r;break;case"details":$e("toggle",e),i=r;break;case"input":fx(e,r),i=Nh(e,r),$e("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=Qe({},r,{value:void 0}),$e("invalid",e);break;case"textarea":hx(e,r),i=Wh(e,r),$e("invalid",e);break;default:i=r}Gh(n,i),a=i;for(o in a)if(a.hasOwnProperty(o)){var l=a[o];o==="style"?Tw(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Cw(e,l)):o==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&Sa(e,l):typeof l=="number"&&Sa(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(wa.hasOwnProperty(o)?l!=null&&o==="onScroll"&&$e("scroll",e):l!=null&&Pp(e,o,l,s))}switch(n){case"input":uc(e),dx(e,r,!1);break;case"textarea":uc(e),px(e);break;case"option":r.value!=null&&e.setAttribute("value",""+hi(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Go(e,!!r.multiple,o,!1):r.defaultValue!=null&&Go(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Gc)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return At(t),null;case 6:if(e&&t.stateNode!=null)KS(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(D(166));if(n=Wi(Ma.current),Wi(ur.current),kc(t)){if(r=t.stateNode,n=t.memoizedProps,r[lr]=t,(o=r.nodeValue!==n)&&(e=hn,e!==null))switch(e.tag){case 3:Sc(r.nodeValue,n,(1&e.mode)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Sc(r.nodeValue,n,(1&e.mode)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[lr]=t,t.stateNode=r}return At(t),null;case 13:if(Ne(Ye),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ge&&dn!==null&&(1&t.mode)!==0&&(128&t.flags)===0)hS(),es(),t.flags|=98560,o=!1;else if(o=kc(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(D(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(D(317));o[lr]=t}else es(),(128&t.flags)===0&&(t.memoizedState=null),t.flags|=4;At(t),o=!1}else $n!==null&&(Tp($n),$n=null),o=!0;if(!o)return 65536&t.flags?t:null}return(128&t.flags)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(1&t.mode)!==0&&(e===null||(1&Ye.current)!==0?mt===0&&(mt=3):fm())),t.updateQueue!==null&&(t.flags|=4),At(t),null);case 4:return ns(),bp(e,t),e===null&&Pa(t.stateNode.containerInfo),At(t),null;case 10:return Xp(t.type._context),At(t),null;case 17:return en(t.type)&&qc(),At(t),null;case 19:if(Ne(Ye),o=t.memoizedState,o===null)return At(t),null;if(r=(128&t.flags)!==0,s=o.rendering,s===null)if(r)oa(o,!1);else{if(mt!==0||e!==null&&(128&e.flags)!==0)for(e=t.child;e!==null;){if(s=eu(e),s!==null){for(t.flags|=128,oa(o,!1),r=s.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return De(Ye,1&Ye.current|2),t.child}e=e.sibling}o.tail!==null&&it()>is&&(t.flags|=128,r=!0,oa(o,!1),t.lanes=4194304)}else{if(!r)if(e=eu(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),oa(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Ge)return At(t),null}else 2*it()-o.renderingStartTime>is&&n!==1073741824&&(t.flags|=128,r=!0,oa(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=it(),t.sibling=null,n=Ye.current,De(Ye,r?1&n|2:1&n),t):(At(t),null);case 22:case 23:return um(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(1&t.mode)!==0?(1073741824&fn)!==0&&(At(t),6&t.subtreeFlags&&(t.flags|=8192)):At(t),null;case 24:return null;case 25:return null}throw Error(D(156,t.tag))}function zL(e,t){switch(Wp(t),t.tag){case 1:return en(t.type)&&qc(),e=t.flags,65536&e?(t.flags=-65537&e|128,t):null;case 3:return ns(),Ne(Jt),Ne(zt),Jp(),e=t.flags,(65536&e)!==0&&(128&e)===0?(t.flags=-65537&e|128,t):null;case 5:return Zp(t),null;case 13:if(Ne(Ye),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(D(340));es()}return e=t.flags,65536&e?(t.flags=-65537&e|128,t):null;case 19:return Ne(Ye),null;case 4:return ns(),null;case 10:return Xp(t.type._context),null;case 22:case 23:return um(),null;case 24:return null;default:return null}}var Tc=!1,Dt=!1,BL=typeof WeakSet=="function"?WeakSet:Set,q=null;function Wo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){tt(e,t,r)}else n.current=null}function QS(e,t,n){try{n()}catch(r){tt(e,t,r)}}var iw=!1;function $L(e,t){if(rp=Hc,e=eS(),jp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||I;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,l=-1,c=0,u=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(a=s+i),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++c===i&&(a=s),d===o&&++u===r&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=a===-1||l===-1?null:{start:a,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(ip={focusedElem:e,selectionRange:n},Hc=!1,q=t;q!==null;)if(t=q,e=t.child,(1028&t.subtreeFlags)!==0&&e!==null)e.return=t,q=e;else for(;q!==null;){t=q;try{var p=t.alternate;if((1024&t.flags)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var y=p.memoizedProps,x=p.memoizedState,m=t.stateNode,g=m.getSnapshotBeforeUpdate(t.elementType===t.type?y:zn(t.type,y),x);m.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(b){tt(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,q=e;break}q=t.return}return p=iw,iw=!1,p}function ya(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&QS(t,n,o)}i=i.next}while(i!==r)}}function gu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function xp(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ZS(e){var t=e.alternate;t!==null&&(e.alternate=null,ZS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[lr],delete t[_a],delete t[ap],delete t[SL],delete t[kL])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function JS(e){return e.tag===5||e.tag===3||e.tag===4}function ow(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||JS(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(2&e.flags||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function wp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gc));else if(r!==4&&(e=e.child,e!==null))for(wp(e,t,n),e=e.sibling;e!==null;)wp(e,t,n),e=e.sibling}function Sp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Sp(e,t,n),e=e.sibling;e!==null;)Sp(e,t,n),e=e.sibling}var Et=null,Bn=!1;function Zr(e,t,n){for(n=n.child;n!==null;)e1(e,t,n),n=n.sibling}function e1(e,t,n){if(cr&&typeof cr.onCommitFiberUnmount=="function")try{cr.onCommitFiberUnmount(lu,n)}catch{}switch(n.tag){case 5:Dt||Wo(n,t);case 6:var r=Et,i=Bn;Et=null,Zr(e,t,n),Et=r,Bn=i,Et!==null&&(Bn?(e=Et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Et.removeChild(n.stateNode));break;case 18:Et!==null&&(Bn?(e=Et,n=n.stateNode,e.nodeType===8?Th(e.parentNode,n):e.nodeType===1&&Th(e,n),Ta(e)):Th(Et,n.stateNode));break;case 4:r=Et,i=Bn,Et=n.stateNode.containerInfo,Bn=!0,Zr(e,t,n),Et=r,Bn=i;break;case 0:case 11:case 14:case 15:if(!Dt&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&((2&o)!==0||(4&o)!==0)&&QS(n,t,s),i=i.next}while(i!==r)}Zr(e,t,n);break;case 1:if(!Dt&&(Wo(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){tt(n,t,a)}Zr(e,t,n);break;case 21:Zr(e,t,n);break;case 22:1&n.mode?(Dt=(r=Dt)||n.memoizedState!==null,Zr(e,t,n),Dt=r):Zr(e,t,n);break;default:Zr(e,t,n)}}function sw(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new BL),t.forEach(function(r){var i=YL.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Dn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,s=t,a=s;e:for(;a!==null;){switch(a.tag){case 5:Et=a.stateNode,Bn=!1;break e;case 3:Et=a.stateNode.containerInfo,Bn=!0;break e;case 4:Et=a.stateNode.containerInfo,Bn=!0;break e}a=a.return}if(Et===null)throw Error(D(160));e1(o,s,i),Et=null,Bn=!1;var l=i.alternate;l!==null&&(l.return=null),i.return=null}catch(c){tt(i,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;t!==null;)t1(t,e),t=t.sibling}function t1(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Dn(t,e),sr(e),4&r){try{ya(3,e,e.return),gu(3,e)}catch(y){tt(e,e.return,y)}try{ya(5,e,e.return)}catch(y){tt(e,e.return,y)}}break;case 1:Dn(t,e),sr(e),512&r&&n!==null&&Wo(n,n.return);break;case 5:if(Dn(t,e),sr(e),512&r&&n!==null&&Wo(n,n.return),32&e.flags){var i=e.stateNode;try{Sa(i,"")}catch(y){tt(e,e.return,y)}}if(4&r&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,s=n!==null?n.memoizedProps:o,a=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{a==="input"&&o.type==="radio"&&o.name!=null&&ww(i,o),qh(a,s);var c=qh(a,o);for(s=0;s<l.length;s+=2){var u=l[s],f=l[s+1];u==="style"?Tw(i,f):u==="dangerouslySetInnerHTML"?Cw(i,f):u==="children"?Sa(i,f):Pp(i,u,f,c)}switch(a){case"input":jh(i,o);break;case"textarea":Sw(i,o);break;case"select":var d=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var h=o.value;h!=null?Go(i,!!o.multiple,h,!1):d!==!!o.multiple&&(o.defaultValue!=null?Go(i,!!o.multiple,o.defaultValue,!0):Go(i,!!o.multiple,o.multiple?[]:"",!1))}i[_a]=o}catch(y){tt(e,e.return,y)}}break;case 6:if(Dn(t,e),sr(e),4&r){if(e.stateNode===null)throw Error(D(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(y){tt(e,e.return,y)}}break;case 3:if(Dn(t,e),sr(e),4&r&&n!==null&&n.memoizedState.isDehydrated)try{Ta(t.containerInfo)}catch(y){tt(e,e.return,y)}break;case 4:Dn(t,e),sr(e);break;case 13:Dn(t,e),sr(e),i=e.child,8192&i.flags&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(lm=it())),4&r&&sw(e);break;case 22:if(u=n!==null&&n.memoizedState!==null,1&e.mode?(Dt=(c=Dt)||u,Dn(t,e),Dt=c):Dn(t,e),sr(e),8192&r){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!u&&(1&e.mode)!==0)for(q=e,u=e.child;u!==null;){for(f=q=u;q!==null;){switch(d=q,h=d.child,d.tag){case 0:case 11:case 14:case 15:ya(4,d,d.return);break;case 1:Wo(d,d.return);var p=d.stateNode;if(typeof p.componentWillUnmount=="function"){r=d,n=d.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(y){tt(r,n,y)}}break;case 5:Wo(d,d.return);break;case 22:if(d.memoizedState!==null){lw(f);continue}}h!==null?(h.return=d,q=h):lw(f)}u=u.sibling}e:for(u=null,f=e;;){if(f.tag===5){if(u===null){u=f;try{i=f.stateNode,c?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(a=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,a.style.display=Rw("display",s))}catch(y){tt(e,e.return,y)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=c?"":f.memoizedProps}catch(y){tt(e,e.return,y)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Dn(t,e),sr(e),4&r&&sw(e);break;case 21:break;default:Dn(t,e),sr(e)}}function sr(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;n!==null;){if(JS(n)){var r=n;break e}n=n.return}throw Error(D(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(Sa(i,""),r.flags&=-33);var o=ow(e);Sp(e,o,i);break;case 3:case 4:var s=r.stateNode.containerInfo,a=ow(e);wp(e,a,s);break;default:throw Error(D(161))}}catch(l){tt(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function NL(e,t,n){q=e,n1(e,t,n)}function n1(e,t,n){for(var r=(1&e.mode)!==0;q!==null;){var i=q,o=i.child;if(i.tag===22&&r){var s=i.memoizedState!==null||Tc;if(!s){var a=i.alternate,l=a!==null&&a.memoizedState!==null||Dt;a=Tc;var c=Dt;if(Tc=s,(Dt=l)&&!c)for(q=i;q!==null;)s=q,l=s.child,s.tag===22&&s.memoizedState!==null?cw(i):l!==null?(l.return=s,q=l):cw(i);for(;o!==null;)q=o,n1(o,t,n),o=o.sibling;q=i,Tc=a,Dt=c}aw(e,t,n)}else(8772&i.subtreeFlags)!==0&&o!==null?(o.return=i,q=o):aw(e,t,n)}}function aw(e){for(;q!==null;){var t=q;if((8772&t.flags)!==0){var n=t.alternate;try{if((8772&t.flags)!==0)switch(t.tag){case 0:case 11:case 15:Dt||gu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Dt)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:zn(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Wx(t,o,r);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Wx(t,s,n)}break;case 5:var a=t.stateNode;if(n===null&&4&t.flags){n=a;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var f=u.dehydrated;f!==null&&Ta(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}Dt||512&t.flags&&xp(t)}catch(d){tt(t,t.return,d)}}if(t===e){q=null;break}if(n=t.sibling,n!==null){n.return=t.return,q=n;break}q=t.return}}function lw(e){for(;q!==null;){var t=q;if(t===e){q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,q=n;break}q=t.return}}function cw(e){for(;q!==null;){var t=q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{gu(4,t)}catch(l){tt(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(l){tt(t,i,l)}}var o=t.return;try{xp(t)}catch(l){tt(t,o,l)}break;case 5:var s=t.return;try{xp(t)}catch(l){tt(t,s,l)}}}catch(l){tt(t,t.return,l)}if(t===e){q=null;break}var a=t.sibling;if(a!==null){a.return=t.return,q=a;break}q=t.return}}var jL=Math.ceil,ru=Dr.ReactCurrentDispatcher,sm=Dr.ReactCurrentOwner,Fn=Dr.ReactCurrentBatchConfig,Te=0,xt=null,ut=null,Ft=0,fn=0,Uo=gi(0),mt=0,Da=null,Ki=0,vu=0,am=0,ba=null,Qt=null,lm=0,is=1/0,Fr=null,iu=!1,kp=null,ui=null,Ec=!1,ii=null,ou=0,xa=0,Cp=null,Vc=-1,Ac=0;function Ut(){return(6&Te)!==0?it():Vc!==-1?Vc:Vc=it()}function fi(e){return(1&e.mode)===0?1:(2&Te)!==0&&Ft!==0?Ft&-Ft:RL.transition!==null?(Ac===0&&(Ac=zw()),Ac):(e=_e,e!==0||(e=I.event,e=e===void 0?16:Uw(e.type)),e)}function jn(e,t,n,r){if(50<xa)throw xa=0,Cp=null,Error(D(185));za(e,n,r),(2&Te)!==0&&e===xt||(e===xt&&((2&Te)===0&&(vu|=n),mt===4&&ni(e,Ft)),tn(e,r),n===1&&Te===0&&(1&t.mode)===0&&(is=it()+500,hu&&vi()))}function tn(e,t){var n=e.callbackNode;EM(e,t);var r=jc(e,e===xt?Ft:0);if(r===0)n!==null&&vx(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&vx(n),t===1)e.tag===0?CL(uw.bind(null,e)):uS(uw.bind(null,e)),xL(function(){(6&Te)===0&&vi()}),n=null;else{switch(Bw(r)){case 1:n=Lp;break;case 4:n=Aw;break;case 16:n=Nc;break;case 536870912:n=Dw;break;default:n=Nc}n=u1(n,r1.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function r1(e,t){if(Vc=-1,Ac=0,(6&Te)!==0)throw Error(D(327));var n=e.callbackNode;if(Qo()&&e.callbackNode!==n)return null;var r=jc(e,e===xt?Ft:0);if(r===0)return null;if((30&r)!==0||(r&e.expiredLanes)!==0||t)t=su(e,r);else{t=r;var i=Te;Te|=2;var o=o1();xt===e&&Ft===t||(Fr=null,is=it()+500,Ui(e,t));do try{UL();break}catch(a){i1(e,a)}while(!0);qp(),ru.current=o,Te=i,ut!==null?t=0:(xt=null,Ft=0,t=mt)}if(t!==0){if(t===2&&(i=Zh(e),i!==0&&(r=i,t=Rp(e,i))),t===1)throw n=Da,Ui(e,0),ni(e,r),tn(e,it()),n;if(t===6)ni(e,r);else{if(i=e.current.alternate,(30&r)===0&&!HL(i)&&(t=su(e,r),t===2&&(o=Zh(e),o!==0&&(r=o,t=Rp(e,o))),t===1))throw n=Da,Ui(e,0),ni(e,r),tn(e,it()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(D(345));case 2:Ni(e,Qt,Fr);break;case 3:if(ni(e,r),(130023424&r)===r&&(t=lm+500-it(),10<t)){if(jc(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){Ut(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=sp(Ni.bind(null,e,Qt,Fr),t);break}Ni(e,Qt,Fr);break;case 4:if(ni(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-Nn(r);o=1<<s,s=t[s],s>i&&(i=s),r&=~o}if(r=i,r=it()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*jL(r/1960))-r,10<r){e.timeoutHandle=sp(Ni.bind(null,e,Qt,Fr),r);break}Ni(e,Qt,Fr);break;case 5:Ni(e,Qt,Fr);break;default:throw Error(D(329))}}}return tn(e,it()),e.callbackNode===n?r1.bind(null,e):null}function Rp(e,t){var n=ba;return e.current.memoizedState.isDehydrated&&(Ui(e,t).flags|=256),e=su(e,t),e!==2&&(t=Qt,Qt=n,t!==null&&Tp(t)),e}function Tp(e){Qt===null?Qt=e:Qt.push.apply(Qt,e)}function HL(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Hn(o(),i))return!1}catch{return!1}}}if(n=t.child,16384&t.subtreeFlags&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ni(e,t){for(t&=~am,t&=~vu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-Nn(t),r=1<<n;e[n]=-1,t&=~r}}function uw(e){if((6&Te)!==0)throw Error(D(327));Qo();var t=jc(e,0);if((1&t)===0)return tn(e,it()),null;var n=su(e,t);if(e.tag!==0&&n===2){var r=Zh(e);r!==0&&(t=r,n=Rp(e,r))}if(n===1)throw n=Da,Ui(e,0),ni(e,t),tn(e,it()),n;if(n===6)throw Error(D(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ni(e,Qt,Fr),tn(e,it()),null}function cm(e,t){var n=Te;Te|=1;try{return e(t)}finally{Te=n,Te===0&&(is=it()+500,hu&&vi())}}function Qi(e){ii!==null&&ii.tag===0&&(6&Te)===0&&Qo();var t=Te;Te|=1;var n=Fn.transition,r=_e;try{if(Fn.transition=null,_e=1,e)return e()}finally{_e=r,Fn.transition=n,Te=t,(6&Te)===0&&vi()}}function um(){fn=Uo.current,Ne(Uo)}function Ui(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,bL(n)),ut!==null)for(n=ut.return;n!==null;){var r=n;switch(Wp(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&qc();break;case 3:ns(),Ne(Jt),Ne(zt),Jp();break;case 5:Zp(r);break;case 4:ns();break;case 13:Ne(Ye);break;case 19:Ne(Ye);break;case 10:Xp(r.type._context);break;case 22:case 23:um()}n=n.return}if(xt=e,ut=e=di(e.current,null),Ft=fn=t,mt=0,Da=null,am=vu=Ki=0,Qt=ba=null,Hi!==null){for(t=0;t<Hi.length;t++)if(n=Hi[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var s=o.next;o.next=i,r.next=s}n.pending=r}Hi=null}return e}function i1(e,t){do{var n=ut;try{if(qp(),Oc.current=nu,tu){for(var r=Ke.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}tu=!1}if(Yi=0,bt=pt=Ke=null,va=!1,La=0,sm.current=null,n===null||n.return===null){mt=1,Da=t,ut=null;break}e:{var o=e,s=n.return,a=n,l=t;if(t=Ft,a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=a,f=u.tag;if((1&u.mode)===0&&(f===0||f===11||f===15)){var d=u.alternate;d?(u.updateQueue=d.updateQueue,u.memoizedState=d.memoizedState,u.lanes=d.lanes):(u.updateQueue=null,u.memoizedState=null)}var h=Qx(s);if(h!==null){h.flags&=-257,Zx(h,s,a,o,t),1&h.mode&&Kx(o,c,t),t=h,l=c;var p=t.updateQueue;if(p===null){var y=new Set;y.add(l),t.updateQueue=y}else p.add(l);break e}if((1&t)===0){Kx(o,c,t),fm();break e}l=Error(D(426))}else if(Ge&&1&a.mode){var x=Qx(s);if(x!==null){(65536&x.flags)===0&&(x.flags|=256),Zx(x,s,a,o,t),Up(rs(l,a));break e}}o=l=rs(l,a),mt!==4&&(mt=2),ba===null?ba=[o]:ba.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var m=$S(o,l,t);Hx(o,m);break e;case 1:a=l;var g=o.type,v=o.stateNode;if((128&o.flags)===0&&(typeof g.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(ui===null||!ui.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var b=NS(o,a,t);Hx(o,b);break e}}o=o.return}while(o!==null)}a1(n)}catch(C){t=C,ut===n&&n!==null&&(ut=n=n.return);continue}break}while(!0)}function o1(){var e=ru.current;return ru.current=nu,e===null?nu:e}function fm(){mt!==0&&mt!==3&&mt!==2||(mt=4),xt===null||(268435455&Ki)===0&&(268435455&vu)===0||ni(xt,Ft)}function su(e,t){var n=Te;Te|=2;var r=o1();xt===e&&Ft===t||(Fr=null,Ui(e,t));do try{WL();break}catch(i){i1(e,i)}while(!0);if(qp(),Te=n,ru.current=r,ut!==null)throw Error(D(261));return xt=null,Ft=0,mt}function WL(){for(;ut!==null;)s1(ut)}function UL(){for(;ut!==null&&!yM();)s1(ut)}function s1(e){var t=c1(e.alternate,e,fn);e.memoizedProps=e.pendingProps,t===null?a1(e):ut=t,sm.current=null}function a1(e){var t=e;do{var n=t.alternate;if(e=t.return,(32768&t.flags)===0){if(n=DL(n,t,fn),n!==null){ut=n;return}}else{if(n=zL(n,t),n!==null){n.flags&=32767,ut=n;return}if(e===null){mt=6,ut=null;return}e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(t=t.sibling,t!==null){ut=t;return}ut=t=e}while(t!==null);mt===0&&(mt=5)}function Ni(e,t,n){var r=_e,i=Fn.transition;try{Fn.transition=null,_e=1,GL(e,t,n,r)}finally{Fn.transition=i,_e=r}return null}function GL(e,t,n,r){do Qo();while(ii!==null);if((6&Te)!==0)throw Error(D(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(D(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(FM(e,o),e===xt&&(ut=xt=null,Ft=0),(2064&n.subtreeFlags)===0&&(2064&n.flags)===0||Ec||(Ec=!0,u1(Nc,function(){return Qo(),null})),o=(15990&n.flags)!==0,(15990&n.subtreeFlags)!==0||o){o=Fn.transition,Fn.transition=null;var s=_e;_e=1;var a=Te;Te|=4,sm.current=null,$L(e,n),t1(n,e),pL(ip),Hc=!!rp,ip=rp=null,e.current=n,NL(n,e,i),bM(),Te=a,_e=s,Fn.transition=o}else e.current=n;if(Ec&&(Ec=!1,ii=e,ou=i),o=e.pendingLanes,o===0&&(ui=null),SM(n.stateNode,r),tn(e,it()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(iu)throw iu=!1,e=kp,kp=null,e;return(1&ou)!==0&&e.tag!==0&&Qo(),o=e.pendingLanes,(1&o)!==0?e===Cp?xa++:(xa=0,Cp=e):xa=0,vi(),null}function Qo(){if(ii!==null){var e=Bw(ou),t=Fn.transition,n=_e;try{if(Fn.transition=null,_e=16>e?16:e,ii===null)var r=!1;else{if(e=ii,ii=null,ou=0,(6&Te)!==0)throw Error(D(331));var i=Te;for(Te|=4,q=e.current;q!==null;){var o=q,s=o.child;if((16&q.flags)!==0){var a=o.deletions;if(a!==null){for(var l=0;l<a.length;l++){var c=a[l];for(q=c;q!==null;){var u=q;switch(u.tag){case 0:case 11:case 15:ya(8,u,o)}var f=u.child;if(f!==null)f.return=u,q=f;else for(;q!==null;){u=q;var d=u.sibling,h=u.return;if(ZS(u),u===c){q=null;break}if(d!==null){d.return=h,q=d;break}q=h}}}var p=o.alternate;if(p!==null){var y=p.child;if(y!==null){p.child=null;do{var x=y.sibling;y.sibling=null,y=x}while(y!==null)}}q=o}}if((2064&o.subtreeFlags)!==0&&s!==null)s.return=o,q=s;else e:for(;q!==null;){if(o=q,(2048&o.flags)!==0)switch(o.tag){case 0:case 11:case 15:ya(9,o,o.return)}var m=o.sibling;if(m!==null){m.return=o.return,q=m;break e}q=o.return}}var g=e.current;for(q=g;q!==null;){s=q;var v=s.child;if((2064&s.subtreeFlags)!==0&&v!==null)v.return=s,q=v;else e:for(s=g;q!==null;){if(a=q,(2048&a.flags)!==0)try{switch(a.tag){case 0:case 11:case 15:gu(9,a)}}catch(C){tt(a,a.return,C)}if(a===s){q=null;break e}var b=a.sibling;if(b!==null){b.return=a.return,q=b;break e}q=a.return}}if(Te=i,vi(),cr&&typeof cr.onPostCommitFiberRoot=="function")try{cr.onPostCommitFiberRoot(lu,e)}catch{}r=!0}return r}finally{_e=n,Fn.transition=t}}return!1}function fw(e,t,n){t=rs(n,t),t=$S(e,t,1),e=ci(e,t,1),t=Ut(),e!==null&&(za(e,1,t),tn(e,t))}function tt(e,t,n){if(e.tag===3)fw(e,e,n);else for(;t!==null;){if(t.tag===3){fw(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ui===null||!ui.has(r))){e=rs(n,e),e=NS(t,e,1),t=ci(t,e,1),e=Ut(),t!==null&&(za(t,1,e),tn(t,e));break}}t=t.return}}function qL(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Ut(),e.pingedLanes|=e.suspendedLanes&n,xt===e&&(Ft&n)===n&&(mt===4||mt===3&&(130023424&Ft)===Ft&&500>it()-lm?Ui(e,0):am|=n),tn(e,t)}function l1(e,t){t===0&&((1&e.mode)===0?t=1:(t=hc,hc<<=1,(130023424&hc)===0&&(hc=4194304)));var n=Ut();e=Vr(e,t),e!==null&&(za(e,t,n),tn(e,n))}function XL(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),l1(e,n)}function YL(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(D(314))}r!==null&&r.delete(t),l1(e,n)}var c1;c1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Jt.current)Zt=!0;else{if((e.lanes&n)===0&&(128&t.flags)===0)return Zt=!1,AL(e,t,n);Zt=(131072&e.flags)!==0}else Zt=!1,Ge&&(1048576&t.flags)!==0&&fS(t,Kc,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Lc(e,t),e=t.pendingProps;var i=Jo(t,zt.current);Ko(t,n),i=tm(null,t,r,e,i,n);var o=nm();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,en(r)?(o=!0,Xc(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Kp(t),i.updater=pu,t.stateNode=i,i._reactInternals=t,hp(t,r,e,n),t=gp(null,t,r,!0,o,n)):(t.tag=0,Ge&&o&&Hp(t),Wt(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Lc(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=QL(r),e=zn(r,e),i){case 0:t=mp(null,t,r,e,n);break e;case 1:t=tw(null,t,r,e,n);break e;case 11:t=Jx(null,t,r,e,n);break e;case 14:t=ew(null,t,r,zn(r.type,e),n);break e}throw Error(D(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zn(r,i),mp(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zn(r,i),tw(e,t,r,i,n);case 3:e:{if(US(t),e===null)throw Error(D(387));r=t.pendingProps,o=t.memoizedState,i=o.element,mS(e,t),Jc(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){i=rs(Error(D(423)),t),t=nw(e,t,r,n,i);break e}if(r!==i){i=rs(Error(D(424)),t),t=nw(e,t,r,n,i);break e}for(dn=li(t.stateNode.containerInfo.firstChild),hn=t,Ge=!0,$n=null,n=bS(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(es(),r===i){t=Ar(e,t,n);break e}Wt(e,t,r,n)}t=t.child}return t;case 5:return xS(t),e===null&&up(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,op(r,i)?s=null:o!==null&&op(r,o)&&(t.flags|=32),WS(e,t),Wt(e,t,s,n),t.child;case 6:return e===null&&up(t),null;case 13:return GS(e,t,n);case 4:return Qp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ts(t,null,r,n):Wt(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zn(r,i),Jx(e,t,r,i,n);case 7:return Wt(e,t,t.pendingProps,n),t.child;case 8:return Wt(e,t,t.pendingProps.children,n),t.child;case 12:return Wt(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,De(Qc,r._currentValue),r._currentValue=s,o!==null)if(Hn(o.value,s)){if(o.children===i.children&&!Jt.current){t=Ar(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var l=a.firstContext;l!==null;){if(l.context===r){if(o.tag===1){l=Or(-1,n&-n),l.tag=2;var c=o.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),fp(o.return,n,t),a.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(D(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),fp(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Wt(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ko(t,n),i=Pn(i),r=r(i),t.flags|=1,Wt(e,t,r,n),t.child;case 14:return r=t.type,i=zn(r,t.pendingProps),i=zn(r.type,i),ew(e,t,r,i,n);case 15:return jS(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:zn(r,i),Lc(e,t),t.tag=1,en(r)?(e=!0,Xc(t)):e=!1,Ko(t,n),vS(t,r,i),hp(t,r,i,n),gp(null,t,r,!0,e,n);case 19:return qS(e,t,n);case 22:return HS(e,t,n)}throw Error(D(156,t.tag))};function u1(e,t){return Vw(e,t)}function KL(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function En(e,t,n,r){return new KL(e,t,n,r)}function dm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function QL(e){if(typeof e=="function")return dm(e)?1:0;if(e!=null){if(e=e.$$typeof,e===_p)return 11;if(e===Op)return 14}return 2}function di(e,t){var n=e.alternate;return n===null?(n=En(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")dm(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Vo:return Gi(n.children,i,o,t);case Ip:s=8,i|=8;break;case Dh:return e=En(12,n,t,2|i),e.elementType=Dh,e.lanes=o,e;case zh:return e=En(13,n,t,i),e.elementType=zh,e.lanes=o,e;case Bh:return e=En(19,n,t,i),e.elementType=Bh,e.lanes=o,e;case yw:return yu(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case gw:s=10;break e;case vw:s=9;break e;case _p:s=11;break e;case Op:s=14;break e;case Jr:s=16,r=null;break e}throw Error(D(130,e==null?e:typeof e,""))}return t=En(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Gi(e,t,n,r){return e=En(7,e,r,t),e.lanes=n,e}function yu(e,t,n,r){return e=En(22,e,r,t),e.elementType=yw,e.lanes=n,e.stateNode={isHidden:!1},e}function Lh(e,t,n){return e=En(6,e,null,t),e.lanes=n,e}function Vh(e,t,n){return t=En(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ZL(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yh(0),this.expirationTimes=yh(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yh(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hm(e,t,n,r,i,o,s,a,l){return e=new ZL(e,t,n,a,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=En(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Kp(o),e}function JL(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Lo,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function f1(e){if(!e)return pi;e=e._reactInternals;e:{if(Ji(e)!==e||e.tag!==1)throw Error(D(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(en(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(D(171))}if(e.tag===1){var n=e.type;if(en(n))return cS(e,n,t)}return t}function d1(e,t,n,r,i,o,s,a,l){return e=hm(n,r,!0,e,i,o,s,a,l),e.context=f1(null),n=e.current,r=Ut(),i=fi(n),o=Or(r,i),o.callback=t??null,ci(n,o,i),e.current.lanes=i,za(e,i,r),tn(e,r),e}function bu(e,t,n,r){var i=t.current,o=Ut(),s=fi(i);return n=f1(n),t.context===null?t.context=n:t.pendingContext=n,t=Or(o,s),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=ci(i,t,s),e!==null&&(jn(e,i,s,o),_c(e,i,s)),s}function au(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function dw(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pm(e,t){dw(e,t),(e=e.alternate)&&dw(e,t)}function eV(){return null}var h1=typeof reportError=="function"?reportError:function(e){console.error(e)};function mm(e){this._internalRoot=e}xu.prototype.render=mm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(D(409));bu(e,t,null,null)};xu.prototype.unmount=mm.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qi(function(){bu(null,e,null,null)}),t[Lr]=null}};function xu(e){this._internalRoot=e}xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=jw();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ti.length&&t!==0&&t<ti[n].priority;n++);ti.splice(n,0,e),n===0&&Ww(e)}};function gm(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hw(){}function tV(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var c=au(s);o.call(c)}}var s=d1(t,r,e,0,null,!1,!1,"",hw);return e._reactRootContainer=s,e[Lr]=s.current,Pa(e.nodeType===8?e.parentNode:e),Qi(),s}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var a=r;r=function(){var c=au(l);a.call(c)}}var l=hm(e,0,!1,null,null,!1,!1,"",hw);return e._reactRootContainer=l,e[Lr]=l.current,Pa(e.nodeType===8?e.parentNode:e),Qi(function(){bu(t,l,n,r)}),l}function Su(e,t,n,r,i){var o=n._reactRootContainer;if(o){var s=o;if(typeof i=="function"){var a=i;i=function(){var l=au(s);a.call(l)}}bu(t,s,e,i)}else s=tV(n,t,e,i,r);return au(s)}$w=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ua(t.pendingLanes);n!==0&&(Vp(t,1|n),tn(t,it()),(6&Te)===0&&(is=it()+500,vi()))}break;case 13:Qi(function(){var r=Vr(e,1);if(r!==null){var i=Ut();jn(r,e,1,i)}}),pm(e,1)}};Ap=function(e){if(e.tag===13){var t=Vr(e,134217728);if(t!==null){var n=Ut();jn(t,e,134217728,n)}pm(e,134217728)}};Nw=function(e){if(e.tag===13){var t=fi(e),n=Vr(e,t);if(n!==null){var r=Ut();jn(n,e,t,r)}pm(e,t)}};jw=function(){return _e};Hw=function(e,t){var n=_e;try{return _e=e,t()}finally{_e=n}};Yh=function(e,t,n){switch(t){case"input":if(jh(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=du(r);if(!i)throw Error(D(90));xw(r),jh(r,i)}}}break;case"textarea":Sw(e,n);break;case"select":t=n.value,t!=null&&Go(e,!!n.multiple,t,!1)}};Pw=cm;Iw=Qi;var nV={usingClientEntryPoint:!1,Events:[$a,Bo,du,Ew,Fw,cm]},sa={findFiberByHostInstance:ji,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rV={bundleType:sa.bundleType,version:sa.version,rendererPackageName:sa.rendererPackageName,rendererConfig:sa.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Dr.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Mw(e),e===null?null:e.stateNode},findFiberByHostInstance:sa.findFiberByHostInstance||eV,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(aa=__REACT_DEVTOOLS_GLOBAL_HOOK__,!aa.isDisabled&&aa.supportsFiber))try{lu=aa.inject(rV),cr=aa}catch{}var aa;mn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=nV;mn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gm(t))throw Error(D(200));return JL(e,t,null,n)};mn.createRoot=function(e,t){if(!gm(e))throw Error(D(299));var n=!1,r="",i=h1;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=hm(e,1,!1,null,null,n,!1,r,i),e[Lr]=t.current,Pa(e.nodeType===8?e.parentNode:e),new mm(t)};mn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(D(188)):(e=Object.keys(e).join(","),Error(D(268,e)));return e=Mw(t),e=e===null?null:e.stateNode,e};mn.flushSync=function(e){return Qi(e)};mn.hydrate=function(e,t,n){if(!wu(t))throw Error(D(200));return Su(null,e,t,!0,n)};mn.hydrateRoot=function(e,t,n){if(!gm(e))throw Error(D(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",s=h1;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=d1(t,null,e,1,n??null,i,!1,o,s),e[Lr]=t.current,Pa(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new xu(t)};mn.render=function(e,t,n){if(!wu(t))throw Error(D(200));return Su(null,e,t,!1,n)};mn.unmountComponentAtNode=function(e){if(!wu(e))throw Error(D(40));return!!e._reactRootContainer&&(Qi(function(){Su(null,null,e,!1,function(){e._reactRootContainer=null,e[Lr]=null})}),!0)};mn.unstable_batchedUpdates=cm;mn.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!wu(n))throw Error(D(200));if(e==null||e._reactInternals===void 0)throw Error(D(38));return Su(e,t,n,!1,r)};mn.version="18.2.0-next-9e3b772b8-20220608";function p1(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE=="function")try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(p1)}catch(e){console.error(e)}}p1();var vn=mn,vm=vn,iV=vn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,oV=vn.createPortal,sV=vn.createRoot,aV=vn.findDOMNode,lV=vn.flushSync,cV=vn.hydrate,uV=vn.hydrateRoot,fV=vn.render,dV=vn.unmountComponentAtNode,hV=vn.unstable_batchedUpdates,pV=vn.unstable_renderSubtreeIntoContainer,mV=vn.version;var vV=Mn({"../../../node_modules/hsluv/dist/hsluv.cjs"(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Hsluv=void 0;var t=class j{constructor(){this.hex="#000000",this.rgb_r=0,this.rgb_g=0,this.rgb_b=0,this.xyz_x=0,this.xyz_y=0,this.xyz_z=0,this.luv_l=0,this.luv_u=0,this.luv_v=0,this.lch_l=0,this.lch_c=0,this.lch_h=0,this.hsluv_h=0,this.hsluv_s=0,this.hsluv_l=0,this.hpluv_h=0,this.hpluv_p=0,this.hpluv_l=0,this.r0s=0,this.r0i=0,this.r1s=0,this.r1i=0,this.g0s=0,this.g0i=0,this.g1s=0,this.g1i=0,this.b0s=0,this.b0i=0,this.b1s=0,this.b1i=0}static fromLinear(r){return r<=.0031308?12.92*r:1.055*Math.pow(r,1/2.4)-.055}static toLinear(r){return r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92}static yToL(r){return r<=j.epsilon?r/j.refY*j.kappa:116*Math.pow(r/j.refY,1/3)-16}static lToY(r){return r<=8?j.refY*r/j.kappa:j.refY*Math.pow((r+16)/116,3)}static rgbChannelToHex(r){let i=Math.round(r*255),o=i%16,s=(i-o)/16|0;return j.hexChars.charAt(s)+j.hexChars.charAt(o)}static hexToRgbChannel(r,i){let o=j.hexChars.indexOf(r.charAt(i)),s=j.hexChars.indexOf(r.charAt(i+1));return(o*16+s)/255}static distanceFromOriginAngle(r,i,o){let s=i/(Math.sin(o)-r*Math.cos(o));return s<0?1/0:s}static distanceFromOrigin(r,i){return Math.abs(i)/Math.sqrt(Math.pow(r,2)+1)}static min6(r,i,o,s,a,l){return Math.min(r,Math.min(i,Math.min(o,Math.min(s,Math.min(a,l)))))}rgbToHex(){this.hex="#",this.hex+=j.rgbChannelToHex(this.rgb_r),this.hex+=j.rgbChannelToHex(this.rgb_g),this.hex+=j.rgbChannelToHex(this.rgb_b)}hexToRgb(){this.hex=this.hex.toLowerCase(),this.rgb_r=j.hexToRgbChannel(this.hex,1),this.rgb_g=j.hexToRgbChannel(this.hex,3),this.rgb_b=j.hexToRgbChannel(this.hex,5)}xyzToRgb(){this.rgb_r=j.fromLinear(j.m_r0*this.xyz_x+j.m_r1*this.xyz_y+j.m_r2*this.xyz_z),this.rgb_g=j.fromLinear(j.m_g0*this.xyz_x+j.m_g1*this.xyz_y+j.m_g2*this.xyz_z),this.rgb_b=j.fromLinear(j.m_b0*this.xyz_x+j.m_b1*this.xyz_y+j.m_b2*this.xyz_z)}rgbToXyz(){let r=j.toLinear(this.rgb_r),i=j.toLinear(this.rgb_g),o=j.toLinear(this.rgb_b);this.xyz_x=.41239079926595*r+.35758433938387*i+.18048078840183*o,this.xyz_y=.21263900587151*r+.71516867876775*i+.072192315360733*o,this.xyz_z=.019330818715591*r+.11919477979462*i+.95053215224966*o}xyzToLuv(){let r=this.xyz_x+15*this.xyz_y+3*this.xyz_z,i=4*this.xyz_x,o=9*this.xyz_y;r!==0?(i/=r,o/=r):(i=NaN,o=NaN),this.luv_l=j.yToL(this.xyz_y),this.luv_l===0?(this.luv_u=0,this.luv_v=0):(this.luv_u=13*this.luv_l*(i-j.refU),this.luv_v=13*this.luv_l*(o-j.refV))}luvToXyz(){if(this.luv_l===0){this.xyz_x=0,this.xyz_y=0,this.xyz_z=0;return}let r=this.luv_u/(13*this.luv_l)+j.refU,i=this.luv_v/(13*this.luv_l)+j.refV;this.xyz_y=j.lToY(this.luv_l),this.xyz_x=0-9*this.xyz_y*r/((r-4)*i-r*i),this.xyz_z=(9*this.xyz_y-15*i*this.xyz_y-i*this.xyz_x)/(3*i)}luvToLch(){if(this.lch_l=this.luv_l,this.lch_c=Math.sqrt(this.luv_u*this.luv_u+this.luv_v*this.luv_v),this.lch_c<1e-8)this.lch_h=0;else{let r=Math.atan2(this.luv_v,this.luv_u);this.lch_h=r*180/Math.PI,this.lch_h<0&&(this.lch_h=360+this.lch_h)}}lchToLuv(){let r=this.lch_h/180*Math.PI;this.luv_l=this.lch_l,this.luv_u=Math.cos(r)*this.lch_c,this.luv_v=Math.sin(r)*this.lch_c}calculateBoundingLines(r){let i=Math.pow(r+16,3)/1560896,o=i>j.epsilon?i:r/j.kappa,s=o*(284517*j.m_r0-94839*j.m_r2),a=o*(838422*j.m_r2+769860*j.m_r1+731718*j.m_r0),l=o*(632260*j.m_r2-126452*j.m_r1),c=o*(284517*j.m_g0-94839*j.m_g2),u=o*(838422*j.m_g2+769860*j.m_g1+731718*j.m_g0),f=o*(632260*j.m_g2-126452*j.m_g1),d=o*(284517*j.m_b0-94839*j.m_b2),h=o*(838422*j.m_b2+769860*j.m_b1+731718*j.m_b0),p=o*(632260*j.m_b2-126452*j.m_b1);this.r0s=s/l,this.r0i=a*r/l,this.r1s=s/(l+126452),this.r1i=(a-769860)*r/(l+126452),this.g0s=c/f,this.g0i=u*r/f,this.g1s=c/(f+126452),this.g1i=(u-769860)*r/(f+126452),this.b0s=d/p,this.b0i=h*r/p,this.b1s=d/(p+126452),this.b1i=(h-769860)*r/(p+126452)}calcMaxChromaHpluv(){let r=j.distanceFromOrigin(this.r0s,this.r0i),i=j.distanceFromOrigin(this.r1s,this.r1i),o=j.distanceFromOrigin(this.g0s,this.g0i),s=j.distanceFromOrigin(this.g1s,this.g1i),a=j.distanceFromOrigin(this.b0s,this.b0i),l=j.distanceFromOrigin(this.b1s,this.b1i);return j.min6(r,i,o,s,a,l)}calcMaxChromaHsluv(r){let i=r/360*Math.PI*2,o=j.distanceFromOriginAngle(this.r0s,this.r0i,i),s=j.distanceFromOriginAngle(this.r1s,this.r1i,i),a=j.distanceFromOriginAngle(this.g0s,this.g0i,i),l=j.distanceFromOriginAngle(this.g1s,this.g1i,i),c=j.distanceFromOriginAngle(this.b0s,this.b0i,i),u=j.distanceFromOriginAngle(this.b1s,this.b1i,i);return j.min6(o,s,a,l,c,u)}hsluvToLch(){if(this.hsluv_l>99.9999999)this.lch_l=100,this.lch_c=0;else if(this.hsluv_l<1e-8)this.lch_l=0,this.lch_c=0;else{this.lch_l=this.hsluv_l,this.calculateBoundingLines(this.hsluv_l);let r=this.calcMaxChromaHsluv(this.hsluv_h);this.lch_c=r/100*this.hsluv_s}this.lch_h=this.hsluv_h}lchToHsluv(){if(this.lch_l>99.9999999)this.hsluv_s=0,this.hsluv_l=100;else if(this.lch_l<1e-8)this.hsluv_s=0,this.hsluv_l=0;else{this.calculateBoundingLines(this.lch_l);let r=this.calcMaxChromaHsluv(this.lch_h);this.hsluv_s=this.lch_c/r*100,this.hsluv_l=this.lch_l}this.hsluv_h=this.lch_h}hpluvToLch(){if(this.hpluv_l>99.9999999)this.lch_l=100,this.lch_c=0;else if(this.hpluv_l<1e-8)this.lch_l=0,this.lch_c=0;else{this.lch_l=this.hpluv_l,this.calculateBoundingLines(this.hpluv_l);let r=this.calcMaxChromaHpluv();this.lch_c=r/100*this.hpluv_p}this.lch_h=this.hpluv_h}lchToHpluv(){if(this.lch_l>99.9999999)this.hpluv_p=0,this.hpluv_l=100;else if(this.lch_l<1e-8)this.hpluv_p=0,this.hpluv_l=0;else{this.calculateBoundingLines(this.lch_l);let r=this.calcMaxChromaHpluv();this.hpluv_p=this.lch_c/r*100,this.hpluv_l=this.lch_l}this.hpluv_h=this.lch_h}hsluvToRgb(){this.hsluvToLch(),this.lchToLuv(),this.luvToXyz(),this.xyzToRgb()}hpluvToRgb(){this.hpluvToLch(),this.lchToLuv(),this.luvToXyz(),this.xyzToRgb()}hsluvToHex(){this.hsluvToRgb(),this.rgbToHex()}hpluvToHex(){this.hpluvToRgb(),this.rgbToHex()}rgbToHsluv(){this.rgbToXyz(),this.xyzToLuv(),this.luvToLch(),this.lchToHpluv(),this.lchToHsluv()}rgbToHpluv(){this.rgbToXyz(),this.xyzToLuv(),this.luvToLch(),this.lchToHpluv(),this.lchToHpluv()}hexToHsluv(){this.hexToRgb(),this.rgbToHsluv()}hexToHpluv(){this.hexToRgb(),this.rgbToHpluv()}};e.Hsluv=t,t.hexChars="0123456789abcdef",t.refY=1,t.refU=.19783000664283,t.refV=.46831999493879,t.kappa=903.2962962,t.epsilon=.0088564516,t.m_r0=3.240969941904521,t.m_r1=-1.537383177570093,t.m_r2=-.498610760293,t.m_g0=-.96924363628087,t.m_g1=1.87596750150772,t.m_g2=.041555057407175,t.m_b0=.055630079696993,t.m_b1=-.20397695888897,t.m_b2=1.056971514242878}}),yV=Mn({"../../../node_modules/eventemitter3/index.js"(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function o(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function s(c,u,f,d,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new o(f,d||c,h),y=r?r+u:u;return c._events[y]?c._events[y].fn?c._events[y]=[c._events[y],p]:c._events[y].push(p):(c._events[y]=p,c._eventsCount++),c}function a(c,u){--c._eventsCount===0?c._events=new i:delete c._events[u]}function l(){this._events=new i,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],f,d;if(this._eventsCount===0)return u;for(d in f=this._events)n.call(f,d)&&u.push(r?d.slice(1):d);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=r?r+u:u,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,p=d.length,y=new Array(p);h<p;h++)y[h]=d[h].fn;return y},l.prototype.listenerCount=function(u){var f=r?r+u:u,d=this._events[f];return d?d.fn?1:d.length:0},l.prototype.emit=function(u,f,d,h,p,y){var x=r?r+u:u;if(!this._events[x])return!1;var m=this._events[x],g=arguments.length,v,b;if(m.fn){switch(m.once&&this.removeListener(u,m.fn,void 0,!0),g){case 1:return m.fn.call(m.context),!0;case 2:return m.fn.call(m.context,f),!0;case 3:return m.fn.call(m.context,f,d),!0;case 4:return m.fn.call(m.context,f,d,h),!0;case 5:return m.fn.call(m.context,f,d,h,p),!0;case 6:return m.fn.call(m.context,f,d,h,p,y),!0}for(b=1,v=new Array(g-1);b<g;b++)v[b-1]=arguments[b];m.fn.apply(m.context,v)}else{var C=m.length,S;for(b=0;b<C;b++)switch(m[b].once&&this.removeListener(u,m[b].fn,void 0,!0),g){case 1:m[b].fn.call(m[b].context);break;case 2:m[b].fn.call(m[b].context,f);break;case 3:m[b].fn.call(m[b].context,f,d);break;case 4:m[b].fn.call(m[b].context,f,d,h);break;default:if(!v)for(S=1,v=new Array(g-1);S<g;S++)v[S-1]=arguments[S];m[b].fn.apply(m[b].context,v)}}return!0},l.prototype.on=function(u,f,d){return s(this,u,f,d,!1)},l.prototype.once=function(u,f,d){return s(this,u,f,d,!0)},l.prototype.removeListener=function(u,f,d,h){var p=r?r+u:u;if(!this._events[p])return this;if(!f)return a(this,p),this;var y=this._events[p];if(y.fn)y.fn===f&&(!h||y.once)&&(!d||y.context===d)&&a(this,p);else{for(var x=0,m=[],g=y.length;x<g;x++)(y[x].fn!==f||h&&!y[x].once||d&&y[x].context!==d)&&m.push(y[x]);m.length?this._events[p]=m.length===1?m[0]:m:a(this,p)}return this},l.prototype.removeAllListeners=function(u){var f;return u?(f=r?r+u:u,this._events[f]&&a(this,f)):(this._events=new i,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,typeof t<"u"&&(t.exports=l)}}),bV=Mn({"../../../node_modules/@juggle/resize-observer/lib/exports/resize-observer.umd.js"(e,t){"use strict";(function(n,r){typeof e=="object"&&typeof t<"u"?r(e):typeof define=="function"&&define.amd?define(["exports"],r):(n=typeof globalThis<"u"?globalThis:n||self,r(n.ResizeObserver={}))})(e,function(n){"use strict";var r=[],i=function(){return r.some(function(O){return O.activeTargets.length>0})},o=function(){return r.some(function(O){return O.skippedTargets.length>0})},s="ResizeObserver loop completed with undelivered notifications.",a=function(){var O;typeof ErrorEvent=="function"?O=new ErrorEvent("error",{message:s}):(O=document.createEvent("Event"),O.initEvent("error",!1,!1),O.message=s),I.dispatchEvent(O)},l;(function(O){O.BORDER_BOX="border-box",O.CONTENT_BOX="content-box",O.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(l||(l={}));var c=function(O){return Object.freeze(O)},u=function(){function O(_,A){this.inlineSize=_,this.blockSize=A,c(this)}return O}(),f=function(){function O(_,A,te,Se){return this.x=_,this.y=A,this.width=te,this.height=Se,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,c(this)}return O.prototype.toJSON=function(){var _=this,A=_.x,te=_.y,Se=_.top,Nt=_.right,kt=_.bottom,rt=_.left,br=_.width,ln=_.height;return{x:A,y:te,top:Se,right:Nt,bottom:kt,left:rt,width:br,height:ln}},O.fromRect=function(_){return new O(_.x,_.y,_.width,_.height)},O}(),d=function(O){return O instanceof SVGElement&&"getBBox"in O},h=function(O){if(d(O)){var _=O.getBBox(),A=_.width,te=_.height;return!A&&!te}var Se=O,Nt=Se.offsetWidth,kt=Se.offsetHeight;return!(Nt||kt||O.getClientRects().length)},p=function(O){var _,A;if(O instanceof Element)return!0;var te=(A=(_=O)===null||_===void 0?void 0:_.ownerDocument)===null||A===void 0?void 0:A.defaultView;return!!(te&&O instanceof te.Element)},y=function(O){switch(O.tagName){case"INPUT":if(O.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},x=typeof I<"u"?I:{},m=new WeakMap,g=/auto|scroll/,v=/^tb|vertical/,b=/msie|trident/i.test(x.navigator&&x.navigator.userAgent),C=function(O){return parseFloat(O||"0")},S=function(O,_,A){return O===void 0&&(O=0),_===void 0&&(_=0),A===void 0&&(A=!1),new u((A?_:O)||0,(A?O:_)||0)},R=c({devicePixelContentBoxSize:S(),borderBoxSize:S(),contentBoxSize:S(),contentRect:new f(0,0,0,0)}),T=function(O,_){if(_===void 0&&(_=!1),m.has(O)&&!_)return m.get(O);if(h(O))return m.set(O,R),R;var A=getComputedStyle(O),te=d(O)&&O.ownerSVGElement&&O.getBBox(),Se=!b&&A.boxSizing==="border-box",Nt=v.test(A.writingMode||""),kt=!te&&g.test(A.overflowY||""),rt=!te&&g.test(A.overflowX||""),br=te?0:C(A.paddingTop),ln=te?0:C(A.paddingRight),_i=te?0:C(A.paddingBottom),po=te?0:C(A.paddingLeft),jE=te?0:C(A.borderTopWidth),HE=te?0:C(A.borderRightWidth),WE=te?0:C(A.borderBottomWidth),UE=te?0:C(A.borderLeftWidth),lv=po+ln,cv=br+_i,yf=UE+HE,bf=jE+WE,uv=rt?O.offsetHeight-bf-O.clientHeight:0,fv=kt?O.offsetWidth-yf-O.clientWidth:0,GE=Se?lv+yf:0,qE=Se?cv+bf:0,gl=te?te.width:C(A.width)-GE-fv,vl=te?te.height:C(A.height)-qE-uv,XE=gl+lv+fv+yf,YE=vl+cv+uv+bf,dv=c({devicePixelContentBoxSize:S(Math.round(gl*devicePixelRatio),Math.round(vl*devicePixelRatio),Nt),borderBoxSize:S(XE,YE,Nt),contentBoxSize:S(gl,vl,Nt),contentRect:new f(po,br,gl,vl)});return m.set(O,dv),dv},F=function(O,_,A){var te=T(O,A),Se=te.borderBoxSize,Nt=te.contentBoxSize,kt=te.devicePixelContentBoxSize;switch(_){case l.DEVICE_PIXEL_CONTENT_BOX:return kt;case l.BORDER_BOX:return Se;default:return Nt}},P=function(){function O(_){var A=T(_);this.target=_,this.contentRect=A.contentRect,this.borderBoxSize=c([A.borderBoxSize]),this.contentBoxSize=c([A.contentBoxSize]),this.devicePixelContentBoxSize=c([A.devicePixelContentBoxSize])}return O}(),B=function(O){if(h(O))return 1/0;for(var _=0,A=O.parentNode;A;)_+=1,A=A.parentNode;return _},H=function(){var O=1/0,_=[];r.forEach(function(kt){if(kt.activeTargets.length!==0){var rt=[];kt.activeTargets.forEach(function(ln){var _i=new P(ln.target),po=B(ln.target);rt.push(_i),ln.lastReportedSize=F(ln.target,ln.observedBox),po<O&&(O=po)}),_.push(function(){kt.callback.call(kt.observer,rt,kt.observer)}),kt.activeTargets.splice(0,kt.activeTargets.length)}});for(var A=0,te=_;A<te.length;A++){var Se=te[A];Se()}return O},L=function(O){r.forEach(function(A){A.activeTargets.splice(0,A.activeTargets.length),A.skippedTargets.splice(0,A.skippedTargets.length),A.observationTargets.forEach(function(Se){Se.isActive()&&(B(Se.target)>O?A.activeTargets.push(Se):A.skippedTargets.push(Se))})})},Y=function(){var O=0;for(L(O);i();)O=H(),L(O);return o()&&a(),O>0},W,ne=[],U=function(){return ne.splice(0).forEach(function(O){return O()})},ee=function(O){if(!W){var _=0,A=document.createTextNode(""),te={characterData:!0};new MutationObserver(function(){return U()}).observe(A,te),W=function(){A.textContent=""+(_?_--:_++)}}ne.push(O),W()},ae=function(O){ee(function(){requestAnimationFrame(O)})},me=0,K=function(){return!!me},se=250,fe={attributes:!0,characterData:!0,childList:!0,subtree:!0},ie=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ce=function(O){return O===void 0&&(O=0),Date.now()+O},Pe=!1,Le=function(){function O(){var _=this;this.stopped=!0,this.listener=function(){return _.schedule()}}return O.prototype.run=function(_){var A=this;if(_===void 0&&(_=se),!Pe){Pe=!0;var te=Ce(_);ae(function(){var Se=!1;try{Se=Y()}finally{if(Pe=!1,_=te-Ce(),!K())return;Se?A.run(1e3):_>0?A.run(_):A.start()}})}},O.prototype.schedule=function(){this.stop(),this.run()},O.prototype.observe=function(){var _=this,A=function(){return _.observer&&_.observer.observe(document.body,fe)};document.body?A():x.addEventListener("DOMContentLoaded",A)},O.prototype.start=function(){var _=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ie.forEach(function(A){return x.addEventListener(A,_.listener,!0)}))},O.prototype.stop=function(){var _=this;this.stopped||(this.observer&&this.observer.disconnect(),ie.forEach(function(A){return x.removeEventListener(A,_.listener,!0)}),this.stopped=!0)},O}(),Ie=new Le,dt=function(O){!me&&O>0&&Ie.start(),me+=O,!me&&Ie.stop()},sn=function(O){return!d(O)&&!y(O)&&getComputedStyle(O).display==="inline"},yr=function(){function O(_,A){this.target=_,this.observedBox=A||l.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return O.prototype.isActive=function(){var _=F(this.target,this.observedBox,!0);return sn(this.target)&&(this.lastReportedSize=_),this.lastReportedSize.inlineSize!==_.inlineSize||this.lastReportedSize.blockSize!==_.blockSize},O}(),de=function(){function O(_,A){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=_,this.callback=A}return O}(),an=new WeakMap,St=function(O,_){for(var A=0;A<O.length;A+=1)if(O[A].target===_)return A;return-1},lt=function(){function O(){}return O.connect=function(_,A){var te=new de(_,A);an.set(_,te)},O.observe=function(_,A,te){var Se=an.get(_),Nt=Se.observationTargets.length===0;St(Se.observationTargets,A)<0&&(Nt&&r.push(Se),Se.observationTargets.push(new yr(A,te&&te.box)),dt(1),Ie.schedule())},O.unobserve=function(_,A){var te=an.get(_),Se=St(te.observationTargets,A),Nt=te.observationTargets.length===1;Se>=0&&(Nt&&r.splice(r.indexOf(te),1),te.observationTargets.splice(Se,1),dt(-1))},O.disconnect=function(_){var A=this,te=an.get(_);te.observationTargets.slice().forEach(function(Se){return A.unobserve(_,Se.target)}),te.activeTargets.splice(0,te.activeTargets.length)},O}(),ho=function(){function O(_){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof _!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");lt.connect(this,_)}return O.prototype.observe=function(_,A){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(_))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");lt.observe(this,_,A)},O.prototype.unobserve=function(_){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!p(_))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");lt.unobserve(this,_)},O.prototype.disconnect=function(){lt.disconnect(this)},O.toString=function(){return"function ResizeObserver () { [polyfill code] }"},O}();n.ResizeObserver=ho,n.ResizeObserverEntry=P,n.ResizeObserverSize=u,Object.defineProperty(n,"__esModule",{value:!0})})}}),xV=Mn({"../../../node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js"(e){"use strict";var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,s=t?Symbol.for("react.profiler"):60114,a=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,f=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,h=t?Symbol.for("react.suspense_list"):60120,p=t?Symbol.for("react.memo"):60115,y=t?Symbol.for("react.lazy"):60116,x=t?Symbol.for("react.block"):60121,m=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function b(S){if(typeof S=="object"&&S!==null){var R=S.$$typeof;switch(R){case n:switch(S=S.type,S){case c:case u:case i:case s:case o:case d:return S;default:switch(S=S&&S.$$typeof,S){case l:case f:case y:case p:case a:return S;default:return R}}case r:return R}}}function C(S){return b(S)===u}e.AsyncMode=c,e.ConcurrentMode=u,e.ContextConsumer=l,e.ContextProvider=a,e.Element=n,e.ForwardRef=f,e.Fragment=i,e.Lazy=y,e.Memo=p,e.Portal=r,e.Profiler=s,e.StrictMode=o,e.Suspense=d,e.isAsyncMode=function(S){return C(S)||b(S)===c},e.isConcurrentMode=C,e.isContextConsumer=function(S){return b(S)===l},e.isContextProvider=function(S){return b(S)===a},e.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===n},e.isForwardRef=function(S){return b(S)===f},e.isFragment=function(S){return b(S)===i},e.isLazy=function(S){return b(S)===y},e.isMemo=function(S){return b(S)===p},e.isPortal=function(S){return b(S)===r},e.isProfiler=function(S){return b(S)===s},e.isStrictMode=function(S){return b(S)===o},e.isSuspense=function(S){return b(S)===d},e.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===i||S===u||S===s||S===o||S===d||S===h||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===p||S.$$typeof===a||S.$$typeof===l||S.$$typeof===f||S.$$typeof===m||S.$$typeof===g||S.$$typeof===v||S.$$typeof===x)},e.typeOf=b}}),wV=Mn({"../../../node_modules/hoist-non-react-statics/node_modules/react-is/index.js"(e,t){"use strict";t.exports=xV()}}),nf=Mn({"../../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(e,t){"use strict";var n=wV(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};a[n.ForwardRef]=o,a[n.Memo]=s;function l(x){return n.isMemo(x)?s:a[x.$$typeof]||r}var c=Object.defineProperty,u=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;function y(x,m,g){if(typeof m!="string"){if(p){var v=h(m);v&&v!==p&&y(x,v,g)}var b=u(m);f&&(b=b.concat(f(m)));for(var C=l(x),S=l(m),R=0;R<b.length;++R){var T=b[R];if(!i[T]&&!(g&&g[T])&&!(S&&S[T])&&!(C&&C[T])){var F=d(m,T);try{c(x,T,F)}catch{}}}}return x}t.exports=y}}),SV=Mn({"../../../node_modules/fontfaceobserver/fontfaceobserver.standalone.js"(e,t){"use strict";(function(){function n(m,g){document.addEventListener?m.addEventListener("scroll",g,!1):m.attachEvent("scroll",g)}function r(m){document.body?m():document.addEventListener?document.addEventListener("DOMContentLoaded",function g(){document.removeEventListener("DOMContentLoaded",g),m()}):document.attachEvent("onreadystatechange",function g(){(document.readyState=="interactive"||document.readyState=="complete")&&(document.detachEvent("onreadystatechange",g),m())})}function i(m){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(m)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function o(m,g){m.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+g+";"}function s(m){var g=m.a.offsetWidth,v=g+100;return m.f.style.width=v+"px",m.c.scrollLeft=v,m.b.scrollLeft=m.b.scrollWidth+100,m.g!==g?(m.g=g,!0):!1}function a(m,g){function v(){var C=b;s(C)&&C.a.parentNode&&g(C.g)}var b=m;n(m.b,v),n(m.c,v),s(m)}function l(m,g){var v=g||{};this.family=m,this.style=v.style||"normal",this.weight=v.weight||"normal",this.stretch=v.stretch||"normal"}var c=null,u=null,f=null,d=null;function h(){if(u===null)if(p()&&/Apple/.test(I.navigator.vendor)){var m=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(I.navigator.userAgent);u=!!m&&603>parseInt(m[1],10)}else u=!1;return u}function p(){return d===null&&(d=!!document.fonts),d}function y(){if(f===null){var m=document.createElement("div");try{m.style.font="condensed 100px sans-serif"}catch{}f=m.style.font!==""}return f}function x(m,g){return[m.style,m.weight,y()?m.stretch:"","100px",g].join(" ")}l.prototype.load=function(m,g){var v=this,b=m||"BESbswy",C=0,S=g||3e3,R=new Date().getTime();return new Promise(function(T,F){if(p()&&!h()){var P=new Promise(function(H,L){function Y(){new Date().getTime()-R>=S?L(Error(""+S+"ms timeout exceeded")):document.fonts.load(x(v,'"'+v.family+'"'),b).then(function(W){1<=W.length?H():setTimeout(Y,25)},L)}Y()}),B=new Promise(function(H,L){C=setTimeout(function(){L(Error(""+S+"ms timeout exceeded"))},S)});Promise.race([B,P]).then(function(){clearTimeout(C),T(v)},F)}else r(function(){function H(){var ie;(ie=U!=-1&&ee!=-1||U!=-1&&ae!=-1||ee!=-1&&ae!=-1)&&((ie=U!=ee&&U!=ae&&ee!=ae)||(c===null&&(ie=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(I.navigator.userAgent),c=!!ie&&(536>parseInt(ie[1],10)||parseInt(ie[1],10)===536&&11>=parseInt(ie[2],10))),ie=c&&(U==me&&ee==me&&ae==me||U==K&&ee==K&&ae==K||U==se&&ee==se&&ae==se)),ie=!ie),ie&&(fe.parentNode&&fe.parentNode.removeChild(fe),clearTimeout(C),T(v))}function L(){if(new Date().getTime()-R>=S)fe.parentNode&&fe.parentNode.removeChild(fe),F(Error(""+S+"ms timeout exceeded"));else{var ie=document.hidden;(ie===!0||ie===void 0)&&(U=Y.a.offsetWidth,ee=W.a.offsetWidth,ae=ne.a.offsetWidth,H()),C=setTimeout(L,50)}}var Y=new i(b),W=new i(b),ne=new i(b),U=-1,ee=-1,ae=-1,me=-1,K=-1,se=-1,fe=document.createElement("div");fe.dir="ltr",o(Y,x(v,"sans-serif")),o(W,x(v,"serif")),o(ne,x(v,"monospace")),fe.appendChild(Y.a),fe.appendChild(W.a),fe.appendChild(ne.a),document.body.appendChild(fe),me=Y.a.offsetWidth,K=W.a.offsetWidth,se=ne.a.offsetWidth,L(),a(Y,function(ie){U=ie,H()}),o(Y,x(v,'"'+v.family+'",sans-serif')),a(W,function(ie){ee=ie,H()}),o(W,x(v,'"'+v.family+'",serif')),a(ne,function(ie){ae=ie,H()}),o(ne,x(v,'"'+v.family+'",monospace'))})})},typeof t=="object"?t.exports=l:(I.FontFaceObserver=l,I.FontFaceObserver.prototype.load=l.prototype.load)})()}}),kV="preload";function FC(e){return typeof e=="object"&&e!==null&&!w.isValidElement(e)&&kV in e}function s9(e){let t=w.lazy(e),n,r,i=w.forwardRef(function(s,a){return w.createElement(r??t,a?{ref:a,...s}:s)});return i.preload=()=>(n||(n=e().then(o=>(r=o.default,r))),n),i}function rf(e,t){if(t&&e)return e.elements&&t in e.elements?e.elements[t]:t}function PC(e){if("scheduler"in I){if("yield"in scheduler)return scheduler.yield(e);if("postTask"in scheduler)return scheduler.postTask(()=>{},e)}return e?.priority==="user-blocking"?Promise.resolve():new Promise(t=>{setTimeout(t)})}async function IC(e,t){return await PC(t),e()}function Ei(e){return new Promise(t=>{setTimeout(t,100),requestAnimationFrame(()=>{IC(t,e)})})}function CV(e,t,n,r=He){r(()=>{let i=async s=>(await Ei(n),s()),o=i(e);return()=>{(async()=>{let s=await o;s&&i(s)})()}},t)}var RV=[],so=Object.keys;function Gu(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var TV="equals";function m1(e){return e===null||!(TV in e)?!1:typeof e.equals=="function"}function Tg(e,t){return e===t?!0:e!==e&&t!==t}function EV(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!Tg(e[r],t[r]))return!1;return!0}function FV(e,t){let n=e.length;if(n!==t.length)return!1;for(let r=n;r--!==0;)if(!of(e[r],t[r],!0))return!1;return!0}function PV(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!Tg(r,t.get(n)))return!1;return!0}function IV(e,t){if(e.size!==t.size)return!1;for(let[n,r]of e.entries())if(!of(r,t.get(n),!0))return!1;return!0}function _V(e,t){if(e.size!==t.size)return!1;for(let n of e.keys())if(!t.has(n))return!1;return!0}function OV(e,t){let n=so(e);if(n.length!==so(t).length)return!1;for(let r of n){if(!Gu(t,r))return!1;if(!(r==="_owner"&&Gu(e,"$$typeof")&&e.$$typeof)&&!Tg(e[r],t[r]))return!1}return!0}function MV(e,t){let n=so(e);if(n.length!==so(t).length)return!1;for(let r of n){if(!Gu(t,r))return!1;if(!(r==="_owner"&&Gu(e,"$$typeof")&&e.$$typeof)&&!of(e[r],t[r],!0))return!1}return!0}function of(e,t,n){if(e===t)return!0;if(!e||!t)return e!==e&&t!==t;let r=typeof e;if(r!==typeof t||r!=="object")return!1;let o=Array.isArray(e),s=Array.isArray(t);if(o&&s)return n?FV(e,t):EV(e,t);if(o!==s)return!1;let a=e instanceof Map,l=t instanceof Map;if(a&&l)return n?IV(e,t):PV(e,t);if(a!==l)return!1;let c=e instanceof Set,u=t instanceof Set;if(c&&u)return _V(e,t);if(c!==u)return!1;let f=e instanceof Date,d=t instanceof Date;if(f&&d)return e.getTime()===t.getTime();if(f!==d)return!1;let h=e instanceof RegExp,p=t instanceof RegExp;return h&&p?e.toString()===t.toString():h!==p?!1:m1(e)&&m1(t)?e.equals(t):n?MV(e,t):OV(e,t)}function sf(e,t,n=!0){try{return of(e,t,n)}catch(r){if(r instanceof Error&&/stack|recursion/iu.exec(r.message))return console.warn("Warning: isEqual does not handle circular references.",r.name,r.message),!1;throw r}}function _C(e){return w.useCallback(t=>e[t],[e])}var Eg=w.createContext({});function LV({api:e,children:t}){return k(Eg.Provider,{value:e,children:t})}function Ii(){return w.useContext(Eg)}function VV({routes:e,children:t}){let n=_C(e);return k(Eg.Provider,{value:{getRoute:n},children:t})}var AV=w.createContext(void 0);function Wr(){var e;let t=Ii(),n=z(AV),r=n??t.currentRouteId;if(!r)return;let i=(e=t.getRoute)==null?void 0:e.call(t,r);if(i)return{...i,id:r,pathVariables:n?void 0:t.currentPathVariables}}function Fg(){let e=Wr();if(e)return`${e.id}-${JSON.stringify(e.pathVariables)}`}function af(e){let t=Wr(),[n,r]=w.useState(t);sf(n,t)||!t||(r(t),e(t))}function DV(e){var t;let n=Ii();if(e)return(t=n.getRoute)==null?void 0:t.call(n,e)}function p9(e,t){let n=Wr(),r=DV(t)??n;return w.useMemo(()=>r?rf(r,e):e,[e,r])}function m9(){var e;return(e=Wr())==null?void 0:e.pathVariables}function on(e){return typeof e=="function"}function Pg(e){return typeof e=="boolean"}function ue(e){return typeof e=="string"}function Ae(e){return Number.isFinite(e)}function lf(e){return Array.isArray(e)}function ge(e){return e!==null&&typeof e=="object"&&!lf(e)}function at(e){return typeof e>"u"}function hr(e){return e===null}function zV(e){return e==null}function OC(e){return e instanceof Date&&!Number.isNaN(e.getTime())}function MC(e){return ge(e)&&on(e.return)}var qu=()=>{},uo=typeof I<"u",el=uo&&/bot|-google|google-|yandex|ia_archiver|crawl|spider/iu.test(ze.userAgent),LC=uo&&typeof I.requestIdleCallback=="function",Ig=LC?I.requestIdleCallback:setTimeout,_g=!el;function BV(e,t=!0){let{getRoute:n}=Ii();$(()=>{if(!(!n||!t||!_g))for(let r of e)VC(n(r))},[e,n,t])}async function VC(e){if(!_g||!e)return;let t=e.page;if(!(!t||!FC(t))){await PC();try{await t.preload()}catch{}}}var $V={addEventListener:()=>{},removeEventListener:()=>{},dispatchEvent:()=>!1,ResizeObserver:void 0,onpointerdown:!1,onpointermove:!1,onpointerup:!1,ontouchstart:!1,ontouchmove:!1,ontouchend:!1,onmousedown:!1,onmousemove:!1,onmouseup:!1,devicePixelRatio:1,scrollX:0,scrollY:0,location:{hash:"",hostname:"",href:"",origin:"",pathname:"",search:""},document:{baseURI:"",cookie:"",referrer:null},setTimeout:()=>0,clearTimeout:()=>{},setInterval:()=>0,clearInterval:()=>{},requestAnimationFrame:()=>0,cancelAnimationFrame:()=>{},requestIdleCallback:()=>0,getSelection:()=>null,matchMedia:e=>({matches:!1,media:e,onchange:()=>{},addEventListener:()=>{},removeEventListener:()=>{},addListener:()=>{},removeListener:()=>{},dispatchEvent:()=>!1}),innerHeight:0,innerWidth:0,SVGSVGElement:{},open:function(e,t,n){},__framer_events:[]},xe=uo?I:$V,Km,Qm;function AC(){let e=Intl.DateTimeFormat().resolvedOptions();Km=e.timeZone,Qm=e.locale}Ig(AC);function jr(e,t){xe.__framer_events&&((!Km||!Qm)&&AC(),xe.__framer_events.push([e,{referrer:null,url:xe.location.href,hostname:xe.location.hostname||null,pathname:xe.location.pathname||null,hash:xe.location.hash||null,search:xe.location.search||null,timezone:Km,locale:Qm,...t}]))}function Zm(e,t){if(!e.startsWith("/")||!t.startsWith("/"))throw new Error("from/to paths are expected to be absolute");let[n]=g1(e),[r,i]=g1(t),o=NV(n,r);return o===""&&(o="."),!o.startsWith(".")&&!o.startsWith("/")&&(o="./"+o),o+"/"+i}function g1(e){let t=e.lastIndexOf("/");return[e.substring(0,t+1),e.substring(t+1)]}var ym=46,hs=47,Ti=(e,t)=>e.charCodeAt(t),v1=(e,t)=>e.lastIndexOf(t),gs=(e,t,n)=>e.slice(t,n);function NV(e,t){if(e===t||(e="/"+b1(e),t="/"+b1(t),e===t))return"";let n=1,r=e.length,i=r-n,o=1,s=t.length-o,a=i<s?i:s,l=-1,c=0;for(;c<a;c++){let f=Ti(e,n+c);if(f!==Ti(t,o+c))break;f===hs&&(l=c)}if(c===a)if(s>a){if(Ti(t,o+c)===hs)return gs(t,o+c+1);if(c===0)return gs(t,o+c)}else i>a&&(Ti(e,n+c)===hs?l=c:c===0&&(l=0));let u="";for(c=n+l+1;c<=r;++c)(c===r||Ti(e,c)===hs)&&(u+=u.length===0?"..":"/..");return`${u}${gs(t,o+l)}`}var jV=!1,ku="/",y1=e=>e===hs;function b1(e){let t="",n=0,r=-1,i=0,o=0;for(let s=0;s<=e.length;++s){if(s<e.length)o=Ti(e,s);else{if(y1(o))break;o=hs}if(y1(o)){if(!(r===s-1||i===1))if(i===2){if(t.length<2||n!==2||Ti(t,t.length-1)!==ym||Ti(t,t.length-2)!==ym){if(t.length>2){let a=v1(t,ku);a===-1?(t="",n=0):(t=gs(t,0,a),n=t.length-1-v1(t,ku)),r=s,i=0;continue}else if(t.length!==0){t="",n=0,r=s,i=0;continue}}jV&&(t+=t.length>0?`${ku}..`:"..",n=2)}else t.length>0?t+=`${ku}${gs(e,r+1,s)}`:t=gs(e,r+1,s),n=s-r-1;r=s,i=0}else o===ym&&i!==-1?++i:i=-1}return t}var HV=new Set(["/404.html","/404","/404/"]),WV=":([a-z]\\w*)",ao=new RegExp(WV,"gi");function DC(e,t){return e.replace(ao,(n,r)=>{let i=t[r];return typeof i!="string"||i.length===0?n:encodeURIComponent(i)})}function zC(e){let t=typeof I<"u"?I.location.search:"";return t?UV(t,e):e}function UV(e,t){let n=t.indexOf("#"),r=n===-1?t:t.substring(0,n),i=n===-1?"":t.substring(n),o=r.indexOf("?");if(o===-1)return r+e+i;let s=new URLSearchParams(e),a=r.substring(o+1),l=new URLSearchParams(a);for(let[c,u]of s)l.has(c)||l.append(c,u);return r.substring(0,o+1)+l.toString()+i}async function GV(e,t,n,r,i,o,s){var a;let l=e,c=!1,u={...o},f=Array.from(l.matchAll(ao)),d=await Promise.all(f.map(async x=>{var m;let g=x?.[0],v=x?.[1];if(!g||!v)throw new Error("Failed to replace path variables: unexpected regex match group");let b=o[v];if(!b||!ue(b))throw new Error(`No slug found for path variable ${v}`);let C=await((m=s?.[i])==null?void 0:m.call(s));if(!C||!t)return b;let S=await C.getRecordIdBySlug(b,t);if(!S)return b;let R=await C.getSlugByRecordId(S,n);if(!R){c=!0;let T=await C.getSlugByRecordId(S,r);return T&&(u[v]=T),T??b}return u[v]=R,R})),h=0,p="",y=!1;for(let x=0;x<f.length;x++){let m=f[x],g=d[x];!m||!g||(p+=l.substring(h,m.index),h=(m.index??0)+(((a=m[0])==null?void 0:a.length)??0),p+=d[x],y=!0)}return y&&(l=p),{path:l,pathVariables:u,isMissingInLocale:c}}async function qV({currentLocale:e,nextLocale:t,defaultLocale:n,route:r,pathVariables:i,collectionUtils:o,preserveQueryParams:s}){let{path:a}=r,l={path:a,pathVariables:i,isMissingInLocale:!1};if(!a)return l;if(i&&r.collectionId)try{l=await GV(a,e,t,n,r.collectionId,i,o)}catch{}return t.slug&&(l.path="/"+t.slug+l.path),s&&l.path&&(l.path=zC(l.path)),l}function XV(e){if(!e)return"";let t;try{t=new URL(e)}catch{return""}return t.pathname==="/"||I.location.origin!==t.origin?"":t.pathname.endsWith("/")?t.pathname.slice(0,-1):t.pathname}var YV={global:void 0,routes:{}},BC=w.createContext(YV);function S9({children:e,value:t}){return k(BC.Provider,{value:t,children:e})}function KV(){return w.useContext(BC)}function QV(e,t,{global:n,routes:r}){var i;return((i=r[e])==null?void 0:i[t])||n}var bm=10,ZV=1e4;function JV(e){let t=bm,n=e.next(0),r=[n.value];for(;!n.done&&t<ZV;)n=e.next(t),r.push(n.value),t+=bm;return r.length===1&&r.push(n.value),{easing:`linear(${r.join(",")})`,duration:t-bm}}var Nr=e=>`--view-transition-${e}`;function Jm(e){return[parseFloat(e),e.endsWith("px")?"px":"%"]}function $C(e){let{innerWidth:t,innerHeight:n}=I,[r,i]=Jm(e.x),[o,s]=Jm(e.y);return{x:i==="px"?r:t*(r/100),y:s==="px"?o:n*(o/100)}}var eA={makeKeyframe:(e,t,n)=>{let r=0;return(n==="exit"&&e.angularDirection==="clockwise"&&t==="start"||n==="exit"&&e.angularDirection==="counter-clockwise"&&t==="end"||n==="enter"&&e.angularDirection==="counter-clockwise"&&t==="start"||n==="enter"&&e.angularDirection==="clockwise"&&t==="end")&&(r=e.sweepAngle/360*100),`${Nr("conic-offset")}: ${r}%;`},makeStyles:(e,t)=>{let n=`var(${Nr("conic-offset")})`,r=t==="exit"&&e.angularDirection==="clockwise"||t==="enter"&&e.angularDirection==="counter-clockwise",i=r?"transparent":"black",o=r?"black":"transparent",s="conic-gradient(from ";return s+=`${e.angle}deg at ${e.x} ${e.y}, `,s+=`${i} 0%, ${i} ${n}, `,s+=`${o} ${n}, ${o} 100%)`,`mask-image: ${s}; -webkit-mask-image: ${s};`},makePropertyRules:()=>`
        @property ${Nr("conic-offset")} {
            syntax: '<percentage>';
            initial-value: 0%;
            inherits: false;
        }
    `},tA={makeKeyframe:(e,t)=>{let{x:n,y:r}=$C(e);return t==="start"?`clip-path: circle(0 at ${n}px ${r}px);`:`clip-path: circle(${Math.hypot(Math.max(n,I.innerWidth-n),Math.max(r,I.innerHeight-r))}px at ${n}px ${r}px);`}},nA={makeKeyframe:(e,t)=>{let{x:n,y:r}=$C(e),i=I.innerHeight-r,o=I.innerWidth-n;return t==="start"?`clip-path: inset(${r}px ${o}px ${i}px ${n}px round ${e.round}px);`:"clip-path: inset(0 round 0);"}},rA={makeKeyframe:(e,t,n)=>{let[,r]=Jm(e.width),i=`0${r}`;return(t==="start"&&n==="exit"||t==="end"&&n==="enter")&&(i=e.width),`${Nr("blinds-width")}: ${i};`},makeStyles:(e,t)=>{let n=`var(${Nr("blinds-width")})`,r=t==="exit"?"transparent":"black",i=t==="exit"?"black":"transparent",o="repeating-linear-gradient(";return o+=e.angle+90+"deg, ",o+=`${r} 0px, ${r} ${n}, `,o+=`${i} ${n}, ${i} ${e.width})`,`mask-image: ${o}; -webkit-mask-image: ${o};`},makePropertyRules:()=>`
            @property ${Nr("blinds-width")} {
                syntax: '<length-percentage>';
                initial-value: 0px;
                inherits: false;
            }
        `},iA={makeKeyframe:(e,t,n)=>{let r=t==="start"&&n==="exit"||t==="end"&&n==="enter"?1:0;return`${Nr("wipe-offset")}: ${r};`},makeStyles:(e,t)=>{let n=`var(${Nr("wipe-offset")})`,r=t==="exit"?"transparent":"black",i=t==="exit"?"black":"transparent",o="linear-gradient(";return o+=e.angle+90+"deg, ",o+=`${r} calc(calc(0% - ${e.width}) + calc(calc(100% + ${e.width}) * ${n})), `,o+=`${i} calc(calc(100% + ${e.width}) * ${n}))`,`mask-image: ${o}; -webkit-mask-image: ${o};`},makePropertyRules:()=>`
            @property ${Nr("wipe-offset")} {
                syntax: '<number>';
                initial-value: 0;
                inherits: false;
            }
        `},oA={circle:tA,conic:eA,inset:nA,blinds:rA,wipe:iA},sA={opacity:1,x:"0px",y:"0px",scale:1,rotate:0,rotateX:0,rotateY:0,mask:void 0};function x1(e,t,n,r){var i;let o=`
      opacity: ${e.opacity};
      transform: translate(${e.x}, ${e.y}) scale(${e.scale}) rotateX(${e.rotateX}deg) rotateY(${e.rotateY}deg) rotateZ(${e.rotate}deg);
    `;return e.mask&&(o+=((i=r?.makeKeyframe)==null?void 0:i.call(r,e.mask,t,n))||""),o}function aA(e){return e?oA[e]:void 0}function w1(e,{transition:t,...n}){var r;let i="view-transition-"+e,o={duration:"0s",easing:"linear"};if(t.type==="tween")o.duration=t.duration+"s",o.easing=`cubic-bezier(${t.ease.join(",")})`;else if(lA(t)){let{easing:c,duration:u}=JV(Xs({keyframes:[0,1],...cA(t),restDelta:.001,restSpeed:1e-4}));o.duration=u+"ms",o.easing=c}let s=aA((r=n?.mask)==null?void 0:r.type),a=x1(n,"start",e,s),l=x1({...sA,mask:n.mask},"end",e,s);return e==="exit"&&([a,l]=[l,a]),`
        ${n.mask&&s?.makePropertyRules?s.makePropertyRules(n.mask):""}

        @keyframes ${i} {
            0% {
                ${a}
            }

            100% {
                ${l}
            }
        }

        ::view-transition-${e==="enter"?"new":"old"}(root) {
            animation-name: ${i};
            animation-duration: ${o.duration};
            animation-delay: ${t.delay}s;
            animation-timing-function: ${o.easing};
            animation-fill-mode: both;
            ${n.mask&&s?.makeStyles?s.makeStyles(n.mask,e):""}
        }
    `}function lA(e){return e.type==="spring"}function cA(e){return e.durationBasedSpring?{duration:e.duration,bounce:e.bounce}:{stiffness:e.stiffness,damping:e.damping,mass:e.mass}}var NC="view-transition-styles",uA={x:"0px",y:"0px",scale:1,opacity:1,rotate3d:!1,rotate:0,rotateX:0,rotateY:0,mask:void 0,transition:{type:"tween",delay:0,duration:.2,ease:[.27,0,.51,1],stiffness:400,damping:30,mass:1}};function fA({exit:e=uA,enter:t}){let n=document.createElement("style");n.id=NC;let r=`
        @media (prefers-reduced-motion) {
            ::view-transition-group(*),
            ::view-transition-old(*),
            ::view-transition-new(*) {
                animation: none !important;
            }
        }
    `;(e.mask||t.mask||e.opacity||t.opacity||e.transition.delay||t.transition.delay)&&(r+=`
            ::view-transition-old(*),
            ::view-transition-new(*) {
                mix-blend-mode: normal;
            }
        `),r+=`
        ::view-transition-old(*),
        ::view-transition-new(*) {
            backface-visibility: hidden;
        }
    `,r+=w1("exit",e),r+=w1("enter",t),n.textContent=r,document.head.appendChild(n)}function dA(){Ig(()=>{Q.render(()=>{performance.mark("framer-vt-remove");let e=document.getElementById(NC);e&&document.head.removeChild(e)})})}var S1=()=>{};function hA(){return!!document.startViewTransition}function pA(e){return new Promise(t=>{Q.render(()=>{performance.mark("framer-vt-style"),fA(e),t()})})}async function k1(e,t,n){if(!hA()){e();return}if(await pA(t),n?.aborted)return;performance.mark("framer-vt");let r=document.startViewTransition(async()=>{performance.mark("framer-vt-freeze"),!n?.aborted&&(n?.addEventListener("abort",()=>r.skipTransition()),await e())});return r.updateCallbackDone.then(()=>{performance.mark("framer-vt-unfreeze")}).catch(S1),Promise.all([r.ready,r.finished]).then(()=>{performance.mark("framer-vt-finished"),dA()}).catch(S1),r}function jC(){let e=KV(),t=V(void 0);return $(()=>{t.current&&(t.current(),t.current=void 0)}),G((n,r,i,o,s)=>{let a=QV(n,r,e);if(a){let l=new Promise(f=>{t.current=f}),c=async()=>{i(),await l},u=async()=>(await Ei({priority:"user-blocking",signal:s}).catch(qu),k1(c,a,s));return o?u():k1(c,a)}i()},[e])}function HC(e,t){Ig(()=>{let n=document.querySelector("link[rel='canonical']");if(!n)return;let r=new URL(e,t);r.search="",n.setAttribute("href",r.toString())})}var yi,WC=()=>{yi||(yi=document.createElement("div"),yi.setAttribute("aria-live","assertive"),yi.setAttribute("aria-atomic","true"),yi.style.position="absolute",yi.style.transform="scale(0)",document.body.append(yi)),setTimeout(()=>{yi.textContent=document.title},60)};function UC(e){let t=`${e}-start`,n=`${e}-end`,r=V(void 0);return CV(()=>{r.current&&(r.current(),r.current=void 0)},void 0,{priority:"user-blocking"}),G(()=>{let i=new Promise(o=>{r.current=o});return performance.mark(t),i.finally(()=>{performance.mark(n),performance.measure(e,t,n)}).catch(o=>{console.error(o)})},[e,t,n])}async function C1(e,t,{currentRoutePath:n,currentPathVariables:r,hash:i,pathVariables:o,localeId:s,preserveQueryParams:a,siteCanonicalURL:l},c=!1,u=!1){let{path:f}=t;if(!f)return;let d=cf(t,{currentRoutePath:n,currentPathVariables:r,hash:i,pathVariables:o,preserveQueryParams:a,siteCanonicalURL:l});try{return await XC({routeId:e,hash:i,pathVariables:o,localeId:s},d,c,u)}catch{}}function GC(e){return ge(e)&&ue(e["routeId"])}function qC(e,t,n=!1){performance.mark("framer-history-replace"),(n?I.history.__proto__.replaceState:I.history.replaceState).call(I.history,e,"",t)}var Cu=!0,R1=(()=>{if(typeof ze>"u")return!1;let e=ze.userAgent,t=e.indexOf("Chrome/"),n=+e.slice(t+7,e.indexOf(".",t));return n>101&&n<128})();async function XC(e,t,n=!1,r=!1){if(n&&await Ei({priority:"user-blocking"}),performance.mark("framer-history-push"),HC(t,I.location.href),!r){I.history.pushState(e,"",t);return}let i=!1,o;Cu&&(o=()=>{if(i=!0,R1)return;let s="Popstate called after intercept(). Please report this to the Framer team.";console.error(s),jr("published_site_load_recoverable_error",{message:s})},I.addEventListener("popstate",o,{once:!0})),R1&&Cu?I.history.__proto__.pushState.call(I.history,e,"",t):I.history.pushState(e,"",t),Cu&&queueMicrotask(()=>{i||(Cu=!1,I.removeEventListener("popstate",o))})}function mA({disabled:e,routeId:t,initialPathVariables:n,initialLocaleId:r}){He(()=>{e||(performance.mark("framer-history-set-initial-state"),qC({routeId:t,pathVariables:n,localeId:r},void 0,!0))},[])}var eg=(()=>{var e;return uo&&typeof((e=I.navigation)==null?void 0:e.back)=="function"})();function gA(e,t){let n=jC(),r=UC("framer-route-change-popstate"),i=V(void 0),o=G(async({state:a})=>{var l,c,u,f,d,h;if((l=I.navigation)!=null&&l.transition&&((u=(c=I.navigation)==null?void 0:c.transition)==null?void 0:u.navigationType)!=="traverse"||!ge(a))return;let{routeId:p,hash:y,pathVariables:x,localeId:m}=a;if(!ue(p))return;let g=r(),v=()=>{t(p,ue(m)?m:void 0,ue(y)?y:void 0,ge(x)?x:void 0,!0,!1)},b=await n(e.current,p,v,!1),C=(f=I.navigation)==null?void 0:f.transition;await(b?.updateCallbackDone??Promise.resolve()).then((d=i.current)==null?void 0:d.resolve).catch((h=i.current)==null?void 0:h.reject),await g;try{await C?.finished}catch(S){console.warn("Popstate transition failed",S)}WC(),HC(I.location.href)},[e,r,t,n]),s=G(a=>{a.navigationType==="traverse"&&a.intercept({async handler(){await new Promise((l,c)=>{i.current={resolve:l,reject:c}}),i.current=void 0},scroll:"after-transition"})},[]);$(()=>(I.addEventListener("popstate",o),eg&&I.navigation.addEventListener("navigate",s),()=>{I.removeEventListener("popstate",o),eg&&I.navigation.removeEventListener("navigate",s)}),[o,s])}function vA(e,t,n){let r=rf(t,e);if(!r)return;let i=Object.assign({},t?.elements,n);return r.replace(ao,(o,s)=>String(i[s]??o))}function cf(e,{currentRoutePath:t,currentPathVariables:n,hash:r,pathVariables:i,hashVariables:o,relative:s=!0,preserveQueryParams:a,onlyHash:l=!1,siteCanonicalURL:c}){let u=vA(r,e,o);if(l)return u??"";let f=t??"/";n&&(f=f.replace(ao,(y,x)=>String(n[x]||y)));let h=e?.path??"/";i&&(h=h.replace(ao,(y,x)=>String(i[x]||y)));let p=f===h&&u;if(s)if(HV.has(f)&&typeof I<"u"){let y=XV(c);h=Zm(I.location.pathname,y+h)}else h=Zm(f,h);return(a||p)&&(h=zC(h)),u&&(h=`${h}#${u}`),h}async function yA(e,t,n){if(!e.path||!t)return!1;let i=`${n.slug?`/${n.slug}`:""}${DC(e.path,t)}`;return(await fetch(i,{method:"HEAD",redirect:"manual"})).type==="opaqueredirect"?(I.location.href=I.location.origin+i,!0):!1}async function bA(e){let t=await qV(e);if(t){try{localStorage.setItem("preferredLocale",e.nextLocale.code)}catch{}try{if(!ue(t.path))throw new Error("Expected result.path to be a string");if(t.isMissingInLocale&&await yA(e.route,t.pathVariables,e.nextLocale))return}catch{}return t}}function xA(e,t){try{let n=I.history.state;if(!GC(n))return;let r=n?.paginationInfo===void 0||n.paginationInfo[e]===void 0,i={...n.paginationInfo,[e]:t};qC({...n,paginationInfo:i},void 0,r)}catch{}}function wA(){let e=V(Promise.resolve()),t=V(),n=G(r=>{if(r.navigationType==="traverse")return;let i=t.current;i?.signal.addEventListener("abort",()=>{i.abort("user aborted")}),r.intercept({handler:()=>e.current})},[]);return G((r,i,o)=>{if(!eg){i();return}e.current=r,t.current=o,I.navigation.addEventListener("navigate",n),i(!0),r.finally(()=>{I.navigation.removeEventListener("navigate",n)})},[n])}var SA=async()=>{},kA={activeLocale:null,locales:[],setLocale:SA},YC=w.createContext(kA);function sl(){return w.useContext(YC)}function T9(){var e;return((e=sl().activeLocale)==null?void 0:e.code)??"en-US"}var Ka=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset"],KC=e=>{var t,n;(n=(t=e.target)==null?void 0:t.closest)!=null&&n.call(t,"#main")&&(e.stopPropagation(),performance.mark("framer-react-event-handling-prevented"))},QC=!1;function F9(){if(!Ka)return;QC=!0,performance.mark("framer-react-event-handling-start");let e={capture:!0};Ka.forEach(t=>document.body.addEventListener(t,KC,e))}function CA(){return $(()=>{if(!QC||!Ka)return;let e={capture:!0};Ka.forEach(t=>document.body.removeEventListener(t,KC,e)),Ka=void 0,performance.mark("framer-react-event-handling-end")},[]),null}var Og=!1;function I9(){Og=!0}function RA(){Og=!1}function TA(){let e=V(!uo||Og);return $(()=>{e.current=!1},[]),e}function Br(e,t,n){try{performance.measure(e,t,n)}catch(r){console.warn(`Could not measure ${e}`,r)}}var mr=!1;function O9(){mr=!0,performance.mark("framer-hydration-start")}var T1=!1,E1=!1,F1=!1;function EA(){let e="framer-hydration-router";ct(()=>{T1||!mr||(T1=!0,performance.mark(`${e}-insertion-effect`))},[]),He(()=>{E1||!mr||(E1=!0,performance.mark(`${e}-layout-effect`))},[]),$(()=>{F1||!mr||(F1=!0,performance.mark(`${e}-effect`))},[])}var P1=!1,I1=!1,_1=!1,ZC=!1;function FA(){let e="framer-hydration-",t=`${e}layout-effects-end`,n=`${e}effects-end`,r=`${e}browser-render-start`,i=`${e}render-end`;return ct(()=>{P1||!mr||(P1=!0,performance.mark(i),Br(`${e}render`,`${e}start`,i),performance.mark(`${e}insertion-effects-start`))},[]),He(()=>{if(!(I1||!mr)){if(I1=!0,performance.mark(`${e}layout-effects-start`),document.visibilityState!=="visible"){ZC=!0;return}requestAnimationFrame(()=>{var o,s;performance.mark(r),Br(`${e}uho`,((o=performance.getEntriesByName(n)[0])==null?void 0:o.name)??((s=performance.getEntriesByName(t)[0])==null?void 0:s.name),r)})}},[]),$(()=>{var o;if(_1||!mr)return;_1=!0;let s=`${e}effects-start`;performance.mark(s),((o=performance.getEntriesByName(r)[0])==null?void 0:o.name)||(Br(`${e}commit`,t,s),performance.mark(`${e}effects-sync`))},[]),null}var O1=!1,M1=!1,L1=!1;function PA(){let e="framer-hydration-",t=`${e}layout-effects-end`,n=`${e}effects-end`,r=`${e}browser-render-start`,i=`${e}start`,o=`${e}insertion-effects-end`,s=`${e}first-paint`,a=`${e}browser-raf-end`;return ct(()=>{O1||!mr||(O1=!0,performance.mark(o),Br(`${e}insertion-effects`,`${e}insertion-effects-start`,o))},[]),He(()=>{M1||!mr||(M1=!0,performance.mark(t),Br(`${e}layout-effects`,`${e}layout-effects-start`,t),!(ZC||document.visibilityState!=="visible")&&requestAnimationFrame(()=>{performance.mark(a),Br(`${e}raf`,r,a),IC(()=>{performance.mark(s),Br(`${e}time-to-first-paint`,i,s),Br(`${e}browser-render`,a,s)})}))},[]),$(()=>{var l,c;L1||!mr||(L1=!0,performance.mark(n),Br(`${e}effects`,((l=performance.getEntriesByName(s)[0])==null?void 0:l.name)??((c=performance.getEntriesByName(`${e}effects-start`)[0])==null?void 0:c.name),n))},[]),null}function IA(){return FA(),null}function _A(){return PA(),null}var V1={Start:IA,End:_A};function tg(e,t){let n={style:t,"data-framer-root":""};return w.isValidElement(e)?w.cloneElement(e,n):w.createElement(e,n)}var OA=class extends Error{},JC=class extends Error{constructor(){super(...arguments),E(this,"cause")}},MA=class extends Fe{constructor(e){super(e),this.state={error:void 0,forceUpdateKey:e.forceUpdateKey}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){if(e.forceUpdateKey!==t.forceUpdateKey){let n={forceUpdateKey:e.forceUpdateKey};return t.error&&(n.error=void 0),n}return null}render(){if(this.state.error===void 0)return this.props.children;if(!(this.state.error instanceof OA)){let n=new JC;throw n.cause=this.state.error,n}let{notFoundPage:e,defaultPageStyle:t}=this.props;if(!e)throw this.state.error;return tg(e,t)}},Ru,xm,A1;function LA(e){if(A1!==e){Ru={};for(let[t,{path:n}]of Object.entries(e))n&&(Ru[n]={path:n,depth:VA(n),routeId:t});xm=Object.values(Ru),xm.sort(({depth:t},{depth:n})=>n-t),A1=e}return[Ru,xm]}function eR(e,t,n=!0,r=[]){let[i,o]=LA(e),s,a,l=t;if(r.length>0){let d=l.split("/").find(Boolean);if(d&&(s=r.find(({slug:h})=>h===d),s&&(a=s.id,l=l.substring(s.slug.length+1))),!a){let h=r.find(({slug:p})=>p==="");h&&(a=h.id)}}let c=i[l];if(c){let d=D1(l,c.path);if(d.isMatch)return{routeId:c.routeId,localeId:a,pathVariables:d.pathVariables}}for(let{path:d,routeId:h}of o){let p=D1(l,d);if(p.isMatch)return{routeId:h,localeId:a,pathVariables:p.pathVariables}}if(!n)throw new Error("No exact match found for path");let u=i["/"];if(u)return{routeId:u.routeId,localeId:a};let f=Object.keys(e)[0];if(!f)throw new Error("Router should not have undefined routes");return{routeId:f,localeId:a}}function VA(e){let t=e.replace(/^\/|\/$/gu,"");return t===""?0:t.split("/").length}function D1(e,t){let n=[],i=AA(t).replace(ao,(c,u)=>(n.push(u),"([^/]+)")),o=new RegExp(i+"$"),s=e.match(o);if(!s)return{isMatch:!1};if(s.length===1)return{isMatch:!0};let a={},l=s.slice(1);for(let c=0;c<n.length;++c){let u=n[c];if(u===void 0)continue;let f=l[c],d=a[u];if(d){if(d!==f)return{isMatch:!1};continue}if(f===void 0)throw new Error("Path variable values cannot be undefined");a[u]=f}return{isMatch:!0,pathVariables:a}}function AA(e){return e.replace(/[|\\{}()[\]^$+*?.]/gu,"\\$&").replace(/-/gu,"\\x2d")}function DA(){var e;if("PerformanceServerTiming"in I){let t=(e=performance.getEntriesByType("navigation")[0])==null?void 0:e.serverTiming;if(!t||t.length===0)return new URLSearchParams;let n=t.find(r=>r.name==="abtests");return n?new URLSearchParams(n.description):new URLSearchParams}return new URLSearchParams}var zA=/[^|; ]?framerAbTestingOverrides=(?<value>[^;]*)[;|$]?/u;function BA(){var e;let t="";try{let n=zA.exec(document.cookie);t=((e=n?.groups)==null?void 0:e.value)??""}catch{}return new URLSearchParams(t)}function $A(e,t,n){let r=e[n];if(!r)return;let i=r.abTestingParentId;i&&e[i]&&(e[i]={...r,abTestingVariantId:n,abTestId:t})}function z1(e,t){for(let[n,r]of t)$A(e,n,r)}function NA(e,t){var n,r;for(let i in e)i!==t&&((n=e[i])!=null&&n.abTestingParentId)&&!((r=e[i])!=null&&r.abTestId)&&delete e[i]}function jA(e,t){if(!e[t]||!e[t].abTestingParentId)return;let n=e[t].abTestingParentId;e[n]={...e[t],abTestingVariantId:t}}function V9(e,t){typeof I>"u"||(t&&jA(e,t),z1(e,DA()),z1(e,BA()),NA(e,t))}var B1=new Set;function vs(e,...t){B1.has(e)||(B1.add(e),console.warn(e,...t))}function HA(e,t,n){let r=n?`, use ${n} instead`:"",i=`Deprecation warning: ${e} will be removed in version ${t}${r}.`;vs(i)}var tR=class{constructor(){E(this,"observers",new Set),E(this,"transactions",{})}add(e){this.observers.add(e);let t=!1;return()=>{t||(t=!0,this.remove(e))}}remove(e){this.observers.delete(e)}notify(e,t){if(t){let n=this.transactions[t]||e;n.value=e.value,this.transactions[t]=n}else this.callObservers(e)}finishTransaction(e){let t=this.transactions[e];return delete this.transactions[e],this.callObservers(t,e)}callObservers(e,t){let n=[];return new Set(this.observers).forEach(r=>{typeof r=="function"?r(e,t):(r.update(e,t),n.push(r.finish))}),n}},vt=(()=>{function e(t){return HA("Animatable()","2.0.0","the new animation API (https://www.framer.com/api/animation/)"),Xn(t)?t:new UA(t)}return e.transaction=t=>{let n=Math.random(),r=new Set;t((s,a)=>{s.set(a,n),r.add(s)},n);let o=[];r.forEach(s=>{o.push(...s.finishTransaction(n))}),o.forEach(s=>{s(n)})},e.getNumber=(t,n=0)=>e.get(t,n),e.get=(t,n)=>t==null?n:Xn(t)?t.get():t,e.objectToValues=t=>{if(!t)return t;let n={};for(let r in t){let i=t[r];Xn(i)?n[r]=i.get():n[r]=i}return n},e})(),$1="onUpdate",N1="finishTransaction";function Xn(e){return e!==null&&typeof e=="object"&&$1 in e&&e[$1]instanceof Function&&N1 in e&&e[N1]instanceof Function}function WA(e,t){return{interpolate(n,r){let i=n.get(),o=r.get(),s=vt(i);return a=>{let l=t.interpolate(i,o)(a);return s.set(l),s}},difference(n,r){let i=n.get();return t.difference(i,r.get())}}}var UA=class{constructor(e){this.value=e,E(this,"observers",new tR)}static interpolationFor(e,t){if(Xn(e))return WA(e,t)}get(){return this.value}set(e,t){let n=this.value;Xn(e)&&(e=e.get()),this.value=e;let r={value:e,oldValue:n};this.observers.notify(r,t)}finishTransaction(e){return this.observers.finishTransaction(e)}onUpdate(e){return this.observers.add(e)}};function Tu(e,t){let r=10**Math.round(Math.abs(t));return Math.round(e*r)/r}function j1(e,t){return t===0?Math.round(e):(t-=t|0,t<0&&(t=1-t),Math.round(e-t)+t)}function $t(e,t){return{x:e,y:t}}(e=>{e.isQuadrilateralPoints=i=>i?.length===4,e.add=(...i)=>i.reduce((o,s)=>({x:o.x+s.x,y:o.y+s.y}),{x:0,y:0}),e.subtract=(i,o)=>({x:i.x-o.x,y:i.y-o.y}),e.multiply=(i,o)=>({x:i.x*o,y:i.y*o}),e.divide=(i,o)=>({x:i.x/o,y:i.y/o}),e.absolute=i=>({x:Math.abs(i.x),y:Math.abs(i.y)}),e.reverse=i=>({x:i.x*-1,y:i.y*-1}),e.pixelAligned=(i,o={x:0,y:0})=>({x:j1(i.x,o.x),y:j1(i.y,o.y)}),e.distance=(i,o)=>{let s=Math.abs(i.x-o.x),a=Math.abs(i.y-o.y);return Math.sqrt(s*s+a*a)},e.angle=(i,o)=>Math.atan2(o.y-i.y,o.x-i.x)*180/Math.PI-90,e.angleFromX=(i,o)=>Math.atan2(o.y-i.y,o.x-i.x)*180/Math.PI,e.isEqual=(i,o)=>i.x===o.x&&i.y===o.y,e.rotationNormalizer=()=>{let i;return o=>{typeof i!="number"&&(i=o);let s=i-o,a=Math.abs(s)+180,l=Math.floor(a/360);return s<180&&(o-=l*360),s>180&&(o+=l*360),i=o,o}};function t(i,o){return{x:(i.x+o.x)/2,y:(i.y+o.y)/2}}e.center=t;function n(i){let o=0,s=0;i.forEach(c=>{o+=c.x,s+=c.y});let a=o/i.length,l=s/i.length;return{x:a,y:l}}e.centroid=n;function r(i){let o=e.centroid(i),s=new Map;for(let a=0;a<i.length;a++){let l=i[a];l&&s.set(l,Math.atan2(l.y-o.y,l.x-o.x))}return i.sort((a,l)=>(s.get(a)??0)-(s.get(l)??0))}e.sortClockwise=r})($t||($t={}));var ng={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function bi(e,t,n,r=!1){let[i,o]=t,[s,a]=n,l=o-i;if(l===0)return(a+s)/2;let c=a-s;if(c===0)return s;let u=s+(e-i)/l*c;if(r===!0)if(s<a){if(u<s)return s;if(u>a)return a}else{if(u>s)return s;if(u<a)return a}return u}function ys(e){return!Number.isNaN(e)&&Number.isFinite(e)}function xi(e){let t=rg(e);return t!==void 0?e.includes("%")?t/100:t:0}function rg(e){let t=/\d?\.?\d+/u.exec(e);return t?Number(t[0]):void 0}var GA=vV().Hsluv,nn=new GA;function qA(e,t,n){return nn.rgb_r=e/255,nn.rgb_g=t/255,nn.rgb_b=n/255,nn.rgbToHsluv(),{h:nn.hsluv_h,s:nn.hsluv_s,l:nn.hsluv_l}}function XA(e,t,n,r=1){return nn.hsluv_h=e,nn.hsluv_s=t,nn.hsluv_l=n,nn.hsluvToRgb(),{r:nn.rgb_r*255,g:nn.rgb_g*255,b:nn.rgb_b*255,a:r}}function ja(e,t,n,r){let i=Math.round(e),o=Math.round(t*100),s=Math.round(n*100);return r===void 0||r===1?"hsv("+i+", "+o+"%, "+s+"%)":"hsva("+i+", "+o+"%, "+s+"%, "+r+")"}function YA(e,t,n){return{r:ys(e)?Xt(e,255)*255:0,g:ys(t)?Xt(t,255)*255:0,b:ys(n)?Xt(n,255)*255:0}}function H1(e,t,n,r){let i=[Sm(Math.round(e).toString(16)),Sm(Math.round(t).toString(16)),Sm(Math.round(n).toString(16))];return r&&i[0].charAt(0)===i[0].charAt(1)&&i[1].charAt(0)===i[1].charAt(1)&&i[2].charAt(0)===i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function uf(e,t,n){let r,i,o=Xt(e,255),s=Xt(t,255),a=Xt(n,255),l=Math.max(o,s,a),c=Math.min(o,s,a),u=i=r=(l+c)/2;if(l===c)u=i=0;else{let f=l-c;switch(i=r>.5?f/(2-l-c):f/(l+c),l){case o:u=(s-a)/f+(s<a?6:0);break;case s:u=(a-o)/f+2;break;case a:u=(o-s)/f+4;break}u/=6}return{h:u*360,s:i,l:r}}function wm(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function KA(e,t,n){let r,i,o;if(e=Xt(e,360),t=Xt(t*100,100),n=Xt(n*100,100),t===0)r=i=o=n;else{let s=n<.5?n*(1+t):n+t-n*t,a=2*n-s;r=wm(a,s,e+1/3),i=wm(a,s,e),o=wm(a,s,e-1/3)}return{r:r*255,g:i*255,b:o*255}}function W1(e,t,n){e=Xt(e,255),t=Xt(t,255),n=Xt(n,255);let r=Math.max(e,t,n),i=Math.min(e,t,n),o=r-i,s,a=r===0?0:o/r,l=r;if(r===i)s=0;else{switch(r){case e:s=(t-n)/o+(t<n?6:0);break;case t:s=(n-e)/o+2;break;case n:s=(e-t)/o+4;break}s/=6}return{h:s,s:a,v:l}}function QA(e,t,n){e=Xt(e,360)*6,t=Xt(t*100,100),n=Xt(n*100,100);let r=Math.floor(e),i=e-r,o=n*(1-t),s=n*(1-i*t),a=n*(1-(1-i)*t),l=r%6,c=[n,s,o,o,a,n][l],u=[a,n,n,s,o,o][l],f=[o,o,a,n,n,s][l];return{r:c*255,g:u*255,b:f*255}}function Xt(e,t){let n,r;if(typeof t=="string"?n=parseFloat(t):n=t,typeof e=="string"){ZA(e)&&(e="100%");let i=JA(e);r=Math.min(n,Math.max(0,parseFloat(e))),i&&(r=Math.floor(r*n)/100)}else r=e;return Math.abs(r-n)<1e-6?1:r%n/n}function ZA(e){return typeof e=="string"&&e.includes(".")&&parseFloat(e)===1}function JA(e){return typeof e=="string"&&e.includes("%")}function Sm(e){return e.length===1?"0"+e:""+e}var fr=(()=>{let n="(?:"+"[-\\+]?\\d*\\.\\d+%?"+")|(?:"+"[-\\+]?\\d+%?"+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^([\da-f])([\da-f])([\da-f])$/iu,hex6:/^([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu,hex4:/^#?([\da-f])([\da-f])([\da-f])([\da-f])$/iu,hex8:/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu}})();function Mg(e){if(e.includes("gradient(")||e.includes("var("))return!1;let t=/^[\s,#]+/u,n=e.replace(t,"").trimEnd().toLowerCase(),r=ng[n];if(r&&(n=r),n==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let i;return(i=fr.rgb.exec(n))?{r:parseInt(i[1]??""),g:parseInt(i[2]??""),b:parseInt(i[3]??""),a:1,format:"rgb"}:(i=fr.rgba.exec(n))?{r:parseInt(i[1]??""),g:parseInt(i[2]??""),b:parseInt(i[3]??""),a:parseFloat(i[4]??""),format:"rgb"}:(i=fr.hsl.exec(n))?{h:parseInt(i[1]??""),s:xi(i[2]??""),l:xi(i[3]??""),a:1,format:"hsl"}:(i=fr.hsla.exec(n))?{h:parseInt(i[1]??""),s:xi(i[2]??""),l:xi(i[3]??""),a:parseFloat(i[4]??""),format:"hsl"}:(i=fr.hsv.exec(n))?{h:parseInt(i[1]??""),s:xi(i[2]??""),v:xi(i[3]??""),a:1,format:"hsv"}:(i=fr.hsva.exec(n))?{h:parseInt(i[1]??""),s:xi(i[2]??""),v:xi(i[3]??""),a:parseFloat(i[4]??""),format:"hsv"}:(i=fr.hex8.exec(n))?{r:bn(i[1]??""),g:bn(i[2]??""),b:bn(i[3]??""),a:U1(i[4]??""),format:r?"name":"hex"}:(i=fr.hex6.exec(n))?{r:bn(i[1]??""),g:bn(i[2]??""),b:bn(i[3]??""),a:1,format:r?"name":"hex"}:(i=fr.hex4.exec(n))?{r:bn(`${i[1]}${i[1]}`),g:bn(`${i[2]}${i[2]}`),b:bn(`${i[3]}${i[3]}`),a:U1(i[4]+""+i[4]),format:r?"name":"hex"}:(i=fr.hex3.exec(n))?{r:bn(`${i[1]}${i[1]}`),g:bn(`${i[2]}${i[2]}`),b:bn(`${i[3]}${i[3]}`),a:1,format:r?"name":"hex"}:!1}function bn(e){return parseInt(e,16)}function U1(e){return bn(e)/255}var eD=/^color\(display-p3\s+(?<r>\d+\.\d+|\d+|\.\d+)\s+(?<g>\d+\.\d+|\d+|\.\d+)\s+(?<b>\d+\.\d+|\d+|\.\d+)(?:\s*\/\s*(?<a>\d+\.\d+|\d+|\.\d+))?\)$/u;function tD(e){let t=eD.exec(e);if(!t)return null;let{r:n="0",g:r="0",b:i="0",a:o}=t.groups??{};return{r:parseFloat(n),g:parseFloat(r),b:parseFloat(i),a:o?parseFloat(o):1}}function km(e=0){let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*((t+.055)/1.055)**2.4}function nR({r:e,g:t,b:n,a:r}){return{r:km(e),g:km(t),b:km(n),a:r}}function Cm(e=0){let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*t**(1/2.4)-.055):e*12.92}function rR({r:e,g:t,b:n,a:r}){return{r:Cm(e),g:Cm(t),b:Cm(n),a:r}}var nD=e=>{let{r:t,g:n,b:r,a:i}=nR(e);return{x:.486570948648216*t+.265667693169093*n+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*n+.079286914093745*r,z:0*t+.0451133818589026*n+1.043944368900976*r,a:i}},rD=({x:e=0,y:t=0,z:n=0,a:r=1})=>rR({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*n,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*n,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*n,a:r}),iD=e=>{let{r:t,g:n,b:r,a:i}=nR(e);return{x:.4123907992659593*t+.357584339383878*n+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*n+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*n+.9505321522496607*r,a:i}},oD=({x:e=0,y:t=0,z:n=0,a:r=1})=>rR({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*n,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*n,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*n,a:r});function sD({r:e,g:t,b:n,a:r}){let i=Math.max(e,t,n),o=Math.min(e,t,n),s={h:0,s:i===0?0:1-o/i,v:i,a:r};return i-o!==0&&(s.h=(i===e?(t-n)/(i-o)+(t<n?6:0):i===t?(n-e)/(i-o)+2:(e-t)/(i-o)+4)*60),s}function aD(e){return(e=e%360)<0?e+360:e}function G1({h:e=0,s:t=0,v:n=0,a:r=1}){let i=aD(e),o=Math.abs(i/60%2-1);switch(Math.floor(i/60)){case 0:return{r:n,g:n*(1-t*o),b:n*(1-t),a:r};case 1:return{r:n*(1-t*o),g:n,b:n*(1-t),a:r};case 2:return{r:n*(1-t),g:n,b:n*(1-t*o),a:r};case 3:return{r:n*(1-t),g:n*(1-t*o),b:n,a:r};case 4:return{r:n*(1-t*o),g:n*(1-t),b:n,a:r};case 5:return{r:n,g:n*(1-t),b:n*(1-t*o),a:r};default:return{r:n*(1-t),g:n*(1-t),b:n*(1-t),a:r}}}function q1(e){return oD(iD(e))}function lD(e){return rD(nD(e))}var cD=class ki{constructor(t){E(this,"format"),E(this,"r"),E(this,"g"),E(this,"b"),E(this,"a"),this.r=t.r??0,this.g=t.g??0,this.b=t.b??0,this.a=t.a??1}hsv(){return sD(this)}rgb(){return lD(this)}hsl(){return uf(this.r,this.g,this.b)}toString(t="p3",n){switch(t){case"p3":{let r=n?.r??this.r,i=n?.g??this.g,o=n?.b??this.b,s=n?.a??this.a;return s===1?`color(display-p3 ${r} ${i} ${o})`:`color(display-p3 ${r} ${i} ${o} / ${s})`}case"srgb":{let r=this.rgb(),i=Math.round(Math.max(0,Math.min(r.r,1))*100)/100,o=Math.round(Math.max(0,Math.min(r.g,1))*100)/100,s=Math.round(Math.max(0,Math.min(r.b,1))*100)/100,a=n?.r??i*255,l=n?.g??o*255,c=n?.b??s*255,u=n?.a??r.a??1;return u===1?`rgb(${a}, ${l}, ${c})`:`rgba(${a}, ${l}, ${c}, ${u})`}}}static isP3String(t){return t.startsWith("color(display-p3")}static fromHSV(t,n="p3"){switch(n){case"p3":return new ki(G1(t));case"srgb":return new ki(q1(G1(t)))}}static fromRGB(t){return new ki(q1({r:Math.round(t.r/255*1e4)/1e4,g:Math.round(t.g/255*1e4)/1e4,b:Math.round(t.b/255*1e4)/1e4,a:t.a??1}))}static fromRGBString(t){let n=X(t);if(n)return ki.fromRGB(n)}static fromString(t){if(!ki.isP3String(t))return;let n=tD(t);if(n)return new ki({r:n.r,g:n.g,b:n.b,a:n.a})}static srgbFromValue(t){if(!ue(t)||!X.isP3String(t))return t;let n=ki.fromString(t);return n?n.toString("srgb"):t}};var X1=new Map,X=(()=>{function e(o,s,a,l){if(typeof o=="string"){let u=X1.get(o);return u||(u=t(o),u===void 0?{...e("black"),isValid:!1}:(X1.set(o,u),u))}let c=t(o,s,a,l);return c!==void 0?c:{...e("black"),isValid:!1}}function t(o,s,a,l){if(o==="")return;let c=uD(o,s,a,l);if(c){let u={r:c.r,g:c.g,b:c.b,a:c.a,h:c.h,s:c.s,l:c.l,initialValue:typeof o=="string"&&c.format!=="hsv"?o:void 0,roundA:Math.round(100*c.a)/100,format:c.format,mix:e.mix,toValue:()=>e.toRgbString(u)};return u}else return}let n={isRGB(o){return o==="rgb"||o==="rgba"},isHSL(o){return o==="hsl"||o==="hsla"}};e.inspect=(o,s)=>o.format==="hsl"?`<${o.constructor.name} h:${o.h} s:${o.s} l:${o.l} a:${o.a}>`:o.format==="hex"||o.format==="name"?`<${o.constructor.name} "${s}">`:`<${o.constructor.name} r:${o.r} g:${o.g} b:${o.b} a:${o.a}>`,e.isColor=o=>typeof o=="string"?e.isColorString(o):e.isColorObject(o),e.isColorString=o=>typeof o=="string"?Mg(o)!==!1:!1,e.isColorObject=o=>ge(o)&&typeof o.r=="number"&&typeof o.g=="number"&&typeof o.b=="number"&&typeof o.h=="number"&&typeof o.s=="number"&&typeof o.l=="number"&&typeof o.a=="number"&&typeof o.roundA=="number"&&typeof o.format=="string",e.toString=o=>e.toRgbString(o),e.toHex=(o,s=!1)=>H1(o.r,o.g,o.b,s),e.toHexString=(o,s=!1)=>`#${e.toHex(o,s)}`,e.isP3String=o=>typeof o!="string"?!1:cD.isP3String(o),e.toRgbString=o=>o.a===1?"rgb("+Math.round(o.r)+", "+Math.round(o.g)+", "+Math.round(o.b)+")":"rgba("+Math.round(o.r)+", "+Math.round(o.g)+", "+Math.round(o.b)+", "+o.roundA+")",e.toHusl=o=>({...qA(o.r,o.g,o.b),a:o.roundA}),e.toHslString=o=>{let s=e.toHsl(o),a=Math.round(s.h),l=Math.round(s.s*100),c=Math.round(s.l*100);return o.a===1?"hsl("+a+", "+l+"%, "+c+"%)":"hsla("+a+", "+l+"%, "+c+"%, "+o.roundA+")"},e.toHsv=o=>{let s=W1(o.r,o.g,o.b);return{h:s.h*360,s:s.s,v:s.v,a:o.a}},e.toHsvString=o=>{let s=W1(o.r,o.g,o.b),a=Math.round(s.h*360),l=Math.round(s.s*100),c=Math.round(s.v*100);return o.a===1?"hsv("+a+", "+l+"%, "+c+"%)":"hsva("+a+", "+l+"%, "+c+"%, "+o.roundA+")"},e.toName=o=>{if(o.a===0)return"transparent";if(o.a<1)return!1;let s=H1(o.r,o.g,o.b,!0);for(let a of Object.keys(ng))if(ng[a]===s)return a;return!1},e.toHsl=o=>({h:Math.round(o.h),s:o.s,l:o.l,a:o.a}),e.toRgb=o=>({r:Math.round(o.r),g:Math.round(o.g),b:Math.round(o.b),a:o.a}),e.brighten=(o,s=10)=>{let a=e.toRgb(o);return a.r=Math.max(0,Math.min(255,a.r-Math.round(255*-(s/100)))),a.g=Math.max(0,Math.min(255,a.g-Math.round(255*-(s/100)))),a.b=Math.max(0,Math.min(255,a.b-Math.round(255*-(s/100)))),e(a)},e.lighten=(o,s=10)=>{let a=e.toHsl(o);return a.l+=s/100,a.l=Math.min(1,Math.max(0,a.l)),e(a)},e.darken=(o,s=10)=>{let a=e.toHsl(o);return a.l-=s/100,a.l=Math.min(1,Math.max(0,a.l)),e(a)},e.saturate=(o,s=10)=>{let a=e.toHsl(o);return a.s+=s/100,a.s=Math.min(1,Math.max(0,a.s)),e(a)},e.desaturate=(o,s=10)=>{let a=e.toHsl(o);return a.s-=s/100,a.s=Math.min(1,Math.max(0,a.s)),e(a)},e.grayscale=o=>e.desaturate(o,100),e.hueRotate=(o,s)=>{let a=e.toHsl(o);return a.h+=s,a.h=a.h>360?a.h-360:a.h,e(a)},e.alpha=(o,s=1)=>e({r:o.r,g:o.g,b:o.b,a:s}),e.transparent=o=>e.alpha(o,0),e.multiplyAlpha=(o,s=1)=>e({r:o.r,g:o.g,b:o.b,a:o.a*s}),e.interpolate=(o,s,a="rgb")=>{if(!e.isColorObject(o)||!e.isColorObject(s))throw new TypeError("Both arguments for Color.interpolate must be Color objects");return l=>e.mixAsColor(o,s,l,!1,a)},e.mix=(o,s,{model:a="rgb"}={})=>{let l=typeof o=="string"?e(o):o,c=e.interpolate(l,s,a);return u=>e.toRgbString(c(u))},e.mixAsColor=(o,s,a=.5,l=!1,c="rgb")=>{let u=null;if(n.isRGB(c))u=e({r:bi(a,[0,1],[o.r,s.r],l),g:bi(a,[0,1],[o.g,s.g],l),b:bi(a,[0,1],[o.b,s.b],l),a:bi(a,[0,1],[o.a,s.a],l)});else{let f,d;n.isHSL(c)?(f=e.toHsl(o),d=e.toHsl(s)):(f=e.toHusl(o),d=e.toHusl(s)),f.s===0?f.h=d.h:d.s===0&&(d.h=f.h);let h=f.h,p=d.h,y=p-h;y>180?y=p-360-h:y<-180&&(y=p+360-h);let x={h:bi(a,[0,1],[h,h+y],l),s:bi(a,[0,1],[f.s,d.s],l),l:bi(a,[0,1],[f.l,d.l],l),a:bi(a,[0,1],[o.a,s.a],l)};n.isHSL(c)?u=e(x):u=e(XA(x.h,x.s,x.l,x.a))}return u},e.random=(o=1)=>{function s(){return Math.floor(Math.random()*255)}return e("rgba("+s()+", "+s()+", "+s()+", "+o+")")},e.grey=(o=.5,s=1)=>(o=Math.floor(o*255),e("rgba("+o+", "+o+", "+o+", "+s+")")),e.gray=e.grey,e.rgbToHsl=(o,s,a)=>uf(o,s,a),e.isValidColorProperty=(o,s)=>!!((o.toLowerCase().slice(-5)==="color"||o==="fill"||o==="stroke")&&typeof s=="string"&&e.isColorString(s)),e.difference=(o,s)=>{let a=(o.r+s.r)/2,l=o.r-s.r,c=o.g-s.g,u=o.b-s.b,f=Math.pow(l,2),d=Math.pow(c,2),h=Math.pow(u,2);return Math.sqrt(2*f+4*d+3*h+a*(f-h)/256)},e.equal=(o,s,a=.1)=>!(Math.abs(o.r-s.r)>=a||Math.abs(o.g-s.g)>=a||Math.abs(o.b-s.b)>=a||Math.abs(o.a-s.a)*256>=a);let r=Po([0,255],[0,1]);function i(o){o=r(o);let s=Math.abs(o);return s<.04045?o/12.92:(Math.sign(o)||1)*Math.pow((s+.055)/1.055,2.4)}return e.luminance=o=>{let{r:s,g:a,b:l}=e.toRgb(o);return .2126*i(s)+.7152*i(a)+.0722*i(l)},e.contrast=(o,s)=>{let a=e.luminance(o),l=e.luminance(s);return(Math.max(a,l)+.05)/(Math.min(a,l)+.05)},e})();function uD(e,t,n,r=1){let i;return typeof e=="number"&&!Number.isNaN(e)&&typeof t=="number"&&!Number.isNaN(t)&&typeof n=="number"&&!Number.isNaN(n)?i=ig({r:e,g:t,b:n,a:r}):typeof e=="string"?i=fD(e):typeof e=="object"&&(e.hasOwnProperty("r")&&e.hasOwnProperty("g")&&e.hasOwnProperty("b")?i=ig(e):i=iR(e)),i}function fD(e){let t=Mg(e);if(t)return t.format==="hsl"?iR(t):t.format==="hsv"?dD(t):ig(t)}function dD(e){let t=QA(e.h,e.s,e.v);return{...uf(t.r,t.g,t.b),...t,format:"rgb",a:e.a!==void 0?oR(e.a):1}}function ig(e){let t=YA(e.r,e.g,e.b);return{...uf(t.r,t.g,t.b),...t,format:"rgb",a:e.a!==void 0?oR(e.a):1}}function iR(e){let t,n,r,i={r:0,g:0,b:0},o={h:0,s:0,l:0};return t=ys(e.h)?e.h:0,t=(t+360)%360,n=ys(e.s)?e.s:1,typeof e.s=="string"&&(n=rg(e.s)),r=ys(e.l)?e.l:.5,typeof e.l=="string"&&(r=rg(e.l)),i=KA(t,n,r),o={h:t,s:n,l:r},{...i,...o,a:e.a===void 0?1:e.a,format:"hsl"}}function oR(e){return e=parseFloat(e),e<0&&(e=0),(Number.isNaN(e)||e>1)&&(e=1),e}var Y1=e=>e instanceof Wl;var hD=yV().EventEmitter,pD=class{constructor(){E(this,"_emitter",new hD)}eventNames(){return this._emitter.eventNames()}eventListeners(){let e={};for(let t of this._emitter.eventNames())e[t]=this._emitter.listeners(t);return e}on(e,t){this.addEventListener(e,t,!1,!1,this)}off(e,t){this.removeEventListeners(e,t)}once(e,t){this.addEventListener(e,t,!0,!1,this)}unique(e,t){this.addEventListener(e,t,!1,!0,this)}addEventListener(e,t,n,r,i){if(r){for(let o of this._emitter.eventNames())if(t===this._emitter.listeners(o))return}n===!0?this._emitter.once(e,t,i):this._emitter.addListener(e,t,i)}removeEventListeners(e,t){e?this._emitter.removeListener(e,t):this.removeAllEventListeners()}removeAllEventListeners(){this._emitter.removeAllListeners()}countEventListeners(e,t){if(e)return this._emitter.listeners(e).length;{let n=0;for(let r of this._emitter.eventNames())n+=this._emitter.listeners(r).length;return n}}emit(e,...t){this._emitter.emit(e,...t)}},mD=e=>{setTimeout(e,1/60)},gD=xe.requestAnimationFrame||mD,K1=e=>gD(e),Ha=1/60,vD=class extends pD{constructor(e=!1){super(),E(this,"_started",!1),E(this,"_frame",0),E(this,"_frameTasks",[]),E(this,"tick",()=>{this._started&&(K1(this.tick),this.emit("update",this._frame,Ha),this.emit("render",this._frame,Ha),this._processFrameTasks(),this._frame++)}),e&&this.start()}addFrameTask(e){this._frameTasks.push(e)}_processFrameTasks(){var e;let t=this._frameTasks,n=t.length;if(n!==0){for(let r=0;r<n;r++)(e=t[r])==null||e.call(t);t.length=0}}static set TimeStep(e){Ha=e}static get TimeStep(){return Ha}start(){return this._started?this:(this._frame=0,this._started=!0,K1(this.tick),this)}stop(){return this._started=!1,this}get frame(){return this._frame}get time(){return this._frame*Ha}},sR=new vD,og={target:"PREVIEW",zoom:1};var he={canvas:"CANVAS",export:"EXPORT",thumbnail:"THUMBNAIL",preview:"PREVIEW",current:()=>og.target,hasRestrictions:()=>{let e=og.target;return e==="CANVAS"||e==="EXPORT"}};var Eu=e=>({correct:(t,{delta:n,treeScale:r})=>{if(typeof t=="string"&&(t=parseFloat(t)),t===0)return"0px";let i=t;return n&&r&&(i=Math.round(t/n[e].scale/r[e]),i=Math.max(i,1)),i+"px"}});Bd({borderTopWidth:Eu("y"),borderLeftWidth:Eu("x"),borderRightWidth:Eu("x"),borderBottomWidth:Eu("y")});function N(e,...t){var n,r;if(e)return;let i=Error("Assertion Error"+(t.length>0?": "+t.join(" "):""));if(i.stack)try{let o=i.stack.split(`
`);(n=o[1])!=null&&n.includes("assert")?(o.splice(1,1),i.stack=o.join(`
`)):(r=o[0])!=null&&r.includes("assert")&&(o.splice(0,1),i.stack=o.join(`
`))}catch{}throw i}function we(e,t){throw t||new Error(e?`Unexpected value: ${e}`:"Application entered invalid state")}var xs=w.createContext({getLayoutId:e=>null,persistLayoutIdCache:()=>{},top:!1,enabled:!0});function yD({children:e}){if(z(xs).top)return k(ht,{children:e});let n=V({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{},count:{byId:{},byName:{}}}),r=V({byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}}),i=V(new Set).current,o=G(({id:l,name:c,duplicatedFrom:u})=>{if(!l)return null;let f=c?"byName":"byId",d=n.current[f][l];if(d)return d;let h=c||l;if(!u&&!i.has(h)&&(!n.current.byLayoutId[h]||n.current.byLayoutId[h]===h))return n.current.count[f][h]===void 0&&(n.current.count[f][h]=0,n.current.byLayoutId[h]=h,r.current[f][l]=h),i.add(h),h;let p;if(u?.length)for(let S=u.length-1;S>=0;S--){let R=u[S];N(!!R,"duplicatedId must be defined");let T=n.current[f][R],F=n.current.byLastId[R];if(F&&!p){let H=n.current.byLayoutId[F],L=!H||H===c;F&&!i.has(F)&&(!c||L)&&(p=[F,R])}let P=T?n.current.byLayoutId[T]:void 0,B=!P||P===c;if(T&&!i.has(T)&&(!c||B))return r.current[f][l]=T,r.current.byLastId[R]=T,i.add(T),T}let y=n.current.byLastId[l];if(y&&!i.has(y))return i.add(y),r.current.byId[l]=y,y;if(p){let[S,R]=p;return r.current[f][l]=S,r.current.byLastId[R]=S,i.add(S),S}let x=n.current.byPossibleId[l];if(x&&!i.has(x))return i.add(x),r.current.byId[l]=x,x;let m=u?.[0],g=c||m||l,v=(n.current.count[f][g]??-1)+1,{layoutId:b,value:C}=bD(g,v,i);if(n.current.count[f][g]=C,r.current[f][l]=b,u?.length&&!c){let S=u[u.length-1];if(S&&(r.current.byLastId[S]=b),u.length>1)for(let R=0;R<u.length-1;R++){let T=u[R];T!==void 0&&(r.current.byPossibleId[T]||(r.current.byPossibleId[T]=b))}}return r.current.byLayoutId[b]=h,i.add(b),b},[]),s=G(()=>{n.current={byId:{...n.current.byId,...r.current.byId},byLastId:{...n.current.byLastId,...r.current.byLastId},byPossibleId:{...n.current.byPossibleId,...r.current.byPossibleId},byName:{...n.current.byName,...r.current.byName},byLastName:{...n.current.byLastName,...r.current.byLastName},byLayoutId:{...n.current.byLayoutId,...r.current.byLayoutId},count:{...n.current.count,byName:{}}},r.current={byId:{},byName:{},byLastId:{},byPossibleId:{},byLastName:{},byLayoutId:{}},i.clear()},[]),a=V({getLayoutId:o,persistLayoutIdCache:s,top:!0,enabled:!0}).current;return k(xs.Provider,{value:a,children:e})}function bD(e,t,n){let r=t,i=r?`${e}-${r}`:e;for(;n.has(i);)r++,i=`${e}-${r}`;return{layoutId:i,value:r}}function xD({enabled:e=!0,...t}){let n=z(xs),r=re(()=>({...n,enabled:e}),[e]);return k(xs.Provider,{...t,value:r})}function st(e){let t=V(null);return t.current===null&&(t.current=e()),t.current}var wD={background:void 0,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",lineHeight:"1.4em",textOverflow:"ellipsis",overflow:"hidden",minHeight:0,width:"100%",height:"100%"},SD={...wD,border:"1px solid rgba(149, 149, 149, 0.15)",borderRadius:6,fontSize:"12px",backgroundColor:"rgba(149, 149, 149, 0.1)",color:"#a5a5a5"},aR={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",flexShrink:0,padding:"0 10px"},kD={...aR,fontWeight:500},CD={...aR,whiteSpace:"pre",maxHeight:"calc(50% - calc(20px * var(--framerInternalCanvas-canvasPlaceholderContentScaleFactor, 1)))",WebkitMaskImage:"linear-gradient(to bottom, black 80%, transparent 100%)"};function j9(e){let{error:t,file:n}=e,r=n?`Error in ${RD(n)}`:"Error",i=t instanceof Error?t.message:""+t;return be("div",{style:SD,children:[k("div",{className:"text",style:kD,children:r}),i&&k("div",{className:"text",style:CD,children:i})]})}function RD(e){return e.startsWith("./")?e.replace("./",""):e}function ce(e){return Number.isFinite(e)}function TD(e){return!e||!Object.keys(e).length&&e.constructor===Object}function Qa(e){return typeof e!="string"&&typeof e!="number"}function Za(e){return e!==null&&typeof e<"u"&&typeof e!="boolean"&&!TD(e)}function ED(e){return e*(Math.PI/180)}var It=(()=>{function e(t,n){return{a:t,b:n}}return e.offset=(t,n)=>{let r=$t.angleFromX(t.a,t.b),i=ED(r),o=n*Math.sin(i),s=n*Math.cos(i);return e({x:t.a.x+o,y:t.a.y-s},{x:t.b.x+o,y:t.b.y-s})},e.intersection=(t,n,r)=>{let i=t.a.x,o=t.a.y,s=t.b.x,a=t.b.y,l=n.a.x,c=n.a.y,u=n.b.x,f=n.b.y,d=(u-l)*(c-o)-(f-c)*(l-i),h=(u-l)*(a-o)-(f-c)*(s-i),p=(s-i)*(c-o)-(a-o)*(l-i);if(d===0&&h===0||h===0)return null;let y=d/h,x=p/h;return r&&(y<0||y>1||x<0||x>1)?null:{x:i+y*(s-i),y:o+y*(a-o)}},e.intersectionAngle=(t,n)=>{let r=t.b.x-t.a.x,i=t.b.y-t.a.y,o=n.b.x-n.a.x,s=n.b.y-n.a.y;return Math.atan2(r*s-i*o,r*o+i*s)*(180/Math.PI)},e.isOrthogonal=t=>t.a.x===t.b.x||t.a.y===t.b.y,e.perpendicular=(t,n)=>{let r=t.a.x-t.b.x,i=t.a.y-t.b.y,o=$t(n.x-i,n.y+r);return e(o,n)},e.projectPoint=(t,n)=>{let r=e.perpendicular(t,n);return e.intersection(t,r)},e.pointAtPercentDistance=(t,n)=>{let r=e.distance(t),i=n*r/r;return{x:i*t.b.x+(1-i)*t.a.x,y:i*t.b.y+(1-i)*t.a.y}},e.distance=t=>$t.distance(t.a,t.b),e})(),Z={equals:function(e,t){return e===t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height},atOrigin:e=>({...e,x:0,y:0}),fromTwoPoints:(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),width:Math.abs(e.x-t.x),height:Math.abs(e.y-t.y)}),fromRect:e=>({x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}),multiply:(e,t)=>({x:e.x*t,y:e.y*t,width:e.width*t,height:e.height*t}),divide:(e,t)=>Z.multiply(e,1/t),offset:(e,t)=>{let n=typeof t.x=="number"?t.x:0,r=typeof t.y=="number"?t.y:0;return{...e,x:e.x+n,y:e.y+r}},inflate:(e,t)=>{if(t===0)return e;let n=2*t;return{x:e.x-t,y:e.y-t,width:e.width+n,height:e.height+n}},pixelAligned:e=>{let t=Math.round(e.x),n=Math.round(e.y),r=Math.round(e.x+e.width),i=Math.round(e.y+e.height),o=Math.max(r-t,0),s=Math.max(i-n,0);return{x:t,y:n,width:o,height:s}},halfPixelAligned:e=>{let t=Math.round(e.x*2)/2,n=Math.round(e.y*2)/2,r=Math.round((e.x+e.width)*2)/2,i=Math.round((e.y+e.height)*2)/2,o=Math.max(r-t,1),s=Math.max(i-n,1);return{x:t,y:n,width:o,height:s}},round:(e,t=0)=>{let n=Tu(e.x,t),r=Tu(e.y,t),i=Tu(e.width,t),o=Tu(e.height,t);return{x:n,y:r,width:i,height:o}},roundToOutside:e=>{let t=Math.floor(e.x),n=Math.floor(e.y),r=Math.ceil(e.x+e.width),i=Math.ceil(e.y+e.height),o=Math.max(r-t,0),s=Math.max(i-n,0);return{x:t,y:n,width:o,height:s}},minX:e=>e.x,maxX:e=>e.x+e.width,minY:e=>e.y,maxY:e=>e.y+e.height,positions:e=>({minX:e.x,midX:e.x+e.width/2,maxX:Z.maxX(e),minY:e.y,midY:e.y+e.height/2,maxY:Z.maxY(e)}),center:e=>({x:e.x+e.width/2,y:e.y+e.height/2}),boundingRectFromPoints:e=>{let t=1/0,n=-1/0,r=1/0,i=-1/0;for(let o=0;o<e.length;o++){let s=e[o];t=Math.min(t,s.x),n=Math.max(n,s.x),r=Math.min(r,s.y),i=Math.max(i,s.y)}return{x:t,y:r,width:n-t,height:i-r}},fromPoints:e=>{let[t,n,r,i]=e,{x:o,y:s}=t,a=$t.distance(t,n),l=$t.distance(t,i);return{x:o,y:s,width:a,height:l}},merge:(...e)=>{let t={x:Math.min(...e.map(Z.minX)),y:Math.min(...e.map(Z.minY))},n={x:Math.max(...e.map(Z.maxX)),y:Math.max(...e.map(Z.maxY))};return Z.fromTwoPoints(t,n)},intersection:(e,t)=>{let n=Math.max(e.x,t.x),r=Math.min(e.x+e.width,t.x+t.width),i=Math.max(e.y,t.y),o=Math.min(e.y+e.height,t.y+t.height);return{x:n,y:i,width:r-n,height:o-i}},points:e=>[{x:Z.minX(e),y:Z.minY(e)},{x:Z.minX(e),y:Z.maxY(e)},{x:Z.maxX(e),y:Z.minY(e)},{x:Z.maxX(e),y:Z.maxY(e)}],pointsAtOrigin:e=>[{x:0,y:0},{x:e.width,y:0},{x:e.width,y:e.height},{x:0,y:e.height}],transform:(e,t)=>{let{x:n,y:r}=t.transformPoint({x:e.x,y:e.y}),{x:i,y:o}=t.transformPoint({x:e.x+e.width,y:e.y}),{x:s,y:a}=t.transformPoint({x:e.x+e.width,y:e.y+e.height}),{x:l,y:c}=t.transformPoint({x:e.x,y:e.y+e.height}),u=Math.min(n,i,s,l),f=Math.max(n,i,s,l)-u,d=Math.min(r,o,a,c),h=Math.max(r,o,a,c)-d;return{x:u,y:d,width:f,height:h}},containsPoint:(e,t)=>!(t.x<Z.minX(e)||t.x>Z.maxX(e)||t.y<Z.minY(e)||t.y>Z.maxY(e)||Number.isNaN(e.x)||Number.isNaN(e.y)),containsRect:(e,t)=>{for(let n of Z.points(t))if(!Z.containsPoint(e,n))return!1;return!0},toCSS:e=>({display:"block",transform:`translate(${e.x}px, ${e.y}px)`,width:`${e.width}px`,height:`${e.height}px`}),inset:(e,t)=>({x:e.x+t,y:e.y+t,width:Math.max(0,e.width-2*t),height:Math.max(0,e.height-2*t)}),intersects:(e,t)=>!(t.x>=Z.maxX(e)||Z.maxX(t)<=e.x||t.y>=Z.maxY(e)||Z.maxY(t)<=e.y),overlapHorizontally:(e,t)=>{let n=Z.maxX(e),r=Z.maxX(t);return n>t.x&&r>e.x},overlapVertically:(e,t)=>{let n=Z.maxY(e),r=Z.maxY(t);return n>t.y&&r>e.y},doesNotIntersect:(e,t)=>t.find(n=>Z.intersects(n,e))===void 0,isEqual:(e,t)=>Z.equals(e,t),cornerPoints:e=>{let t=e.x,n=e.x+e.width,r=e.y,i=e.y+e.height;return[{x:t,y:r},{x:n,y:r},{x:n,y:i},{x:t,y:i}]},midPoints:e=>{let t=e.x,n=e.x+e.width/2,r=e.x+e.width,i=e.y,o=e.y+e.height/2,s=e.y+e.height;return[{x:n,y:i},{x:r,y:o},{x:n,y:s},{x:t,y:o}]},pointDistance:(e,t)=>{let n=0,r=0;return t.x<e.x?n=e.x-t.x:t.x>Z.maxX(e)&&(n=t.x-Z.maxX(e)),t.y<e.y?r=e.y-t.y:t.y>Z.maxY(e)&&(r=t.y-Z.maxY(e)),$t.distance({x:n,y:r},{x:0,y:0})},fromAny:(e,t={x:0,y:0,width:0,height:0})=>({x:e.x||t.x,y:e.y||t.y,width:e.width||t.width,height:e.height||t.height}),delta:(e,t)=>{let n={x:Z.minX(e),y:Z.minY(e)},r={x:Z.minX(t),y:Z.minY(t)};return{x:n.x-r.x,y:n.y-r.y}},withMinSize:(e,t)=>{let{width:n,height:r}=t,i=e.width-n,o=e.height-r;return{width:Math.max(e.width,n),height:Math.max(e.height,r),x:e.width<n?e.x+i/2:e.x,y:e.height<r?e.y+o/2:e.y}},anyPointsOutsideRect:(e,t)=>{let n=Z.minX(e),r=Z.minY(e),i=Z.maxX(e),o=Z.maxY(e);for(let s of t)if(s.x<n||s.x>i||s.y<r||s.y>o)return!0;return!1},edges:e=>{let[t,n,r,i]=Z.cornerPoints(e);return[It(t,n),It(n,r),It(r,i),It(i,t)]},rebaseRectOnto:(e,t,n,r)=>{let i={...e};switch(n){case"bottom":case"top":switch(r){case"start":i.x=t.x;break;case"center":i.x=t.x+t.width/2-e.width/2;break;case"end":i.x=t.x+t.width-e.width;break;default:we(r)}break;case"left":i.x=t.x-e.width;break;case"right":i.x=t.x+t.width;break;default:we(n)}switch(n){case"left":case"right":switch(r){case"start":i.y=t.y;break;case"center":i.y=t.y+t.height/2-e.height/2;break;case"end":i.y=t.y+t.height-e.height;break;default:we(r)}break;case"top":i.y=t.y-e.height;break;case"bottom":i.y=t.y+t.height;break;default:we(n)}return i}};var lR={quickfix:e=>((e.widthType===2||e.heightType===2)&&(e.aspectRatio=null),ce(e.aspectRatio)&&(e.left&&e.right&&(e.widthType=0),e.top&&e.bottom&&(e.heightType=0),e.left&&e.right&&e.top&&e.bottom&&(e.bottom=!1),e.widthType!==0&&e.heightType!==0&&(e.heightType=0)),e.left&&e.right&&((e.fixedSize||e.widthType===2||ce(e.maxWidth))&&(e.right=!1),e.widthType=0),e.top&&e.bottom&&((e.fixedSize||e.heightType===2||ce(e.maxHeight))&&(e.bottom=!1),e.heightType=0),e)};function Xu(e){if(typeof e=="string"){let t=e.trim();if(t==="auto")return 2;if(t.endsWith("fr"))return 3;if(t.endsWith("%"))return 1;if(t.endsWith("vw")||t.endsWith("vh"))return 4}return 0}var cR={fromProperties:e=>{let{left:t,right:n,top:r,bottom:i,width:o,height:s,centerX:a,centerY:l,aspectRatio:c,autoSize:u}=e,f=lR.quickfix({left:ce(t)||Xn(t),right:ce(n)||Xn(n),top:ce(r)||Xn(r),bottom:ce(i)||Xn(i),widthType:Xu(o),heightType:Xu(s),aspectRatio:c||null,fixedSize:u===!0}),d=null,h=null,p=0,y=0;if(f.widthType!==0&&typeof o=="string"){let g=parseFloat(o);o.endsWith("fr")?(p=3,d=g):o==="auto"?p=2:(p=1,d=g/100)}else o!==void 0&&typeof o!="string"&&(d=vt.getNumber(o));if(f.heightType!==0&&typeof s=="string"){let g=parseFloat(s);s.endsWith("fr")?(y=3,h=g):s==="auto"?y=2:(y=1,h=parseFloat(s)/100)}else s!==void 0&&typeof s!="string"&&(h=vt.getNumber(s));let x=.5,m=.5;return a&&(x=parseFloat(a)/100),l&&(m=parseFloat(l)/100),{left:f.left?vt.getNumber(t):null,right:f.right?vt.getNumber(n):null,top:f.top?vt.getNumber(r):null,bottom:f.bottom?vt.getNumber(i):null,widthType:p,heightType:y,width:d,height:h,aspectRatio:f.aspectRatio||null,centerAnchorX:x,centerAnchorY:m}},toSize:(e,t,n,r)=>{let i=null,o=null,s=t?.sizing?vt.getNumber(t?.sizing.width):null,a=t?.sizing?vt.getNumber(t?.sizing.height):null,l=Q1(e.left,e.right);if(s&&ce(l))i=s-l;else if(n&&e.widthType===2)i=n.width;else if(ce(e.width))switch(e.widthType){case 0:i=e.width;break;case 3:i=r?r.freeSpaceInParent.width/r.freeSpaceUnitDivisor.width*e.width:null;break;case 1:case 4:s&&(i=s*e.width);break;case 2:break;default:we(e.widthType)}let c=Q1(e.top,e.bottom);if(a&&ce(c))o=a-c;else if(n&&e.heightType===2)o=n.height;else if(ce(e.height))switch(e.heightType){case 0:o=e.height;break;case 3:o=r?r.freeSpaceInParent.height/r.freeSpaceUnitDivisor.height*e.height:null;break;case 1:case 4:a&&(o=a*e.height);break;case 2:break;default:we(e.heightType)}return MD(i,o,e,{height:a??0,width:s??0},t?.viewport)},toRect:(e,t=null,n=null,r=!1,i=null)=>{let o=e.left||0,s=e.top||0,{width:a,height:l}=cR.toSize(e,t,n,i),c=t?.positioning??null,u=c?vt.getNumber(c.width):null,f=c?vt.getNumber(c.height):null;e.left!==null?o=e.left:u&&e.right!==null?o=u-e.right-a:u&&(o=e.centerAnchorX*u-a/2),e.top!==null?s=e.top:f&&e.bottom!==null?s=f-e.bottom-l:f&&(s=e.centerAnchorY*f-l/2);let d={x:o,y:s,width:a,height:l};return r?Z.pixelAligned(d):d}},FD=200,PD=200;function Yu(e,t,n,r){if(typeof t=="string"){if(t.endsWith("%")&&n)switch(e){case"maxWidth":case"minWidth":return parseFloat(t)/100*n.width;case"maxHeight":case"minHeight":return parseFloat(t)/100*n.height;default:break}if(t.endsWith("vh")){if(!r)return ID(e);switch(e){case"maxWidth":case"minWidth":return parseFloat(t)/100*r.width;case"maxHeight":case"minHeight":return parseFloat(t)/100*r.height;default:break}}return parseFloat(t)}return t}function ID(e){switch(e){case"minWidth":case"minHeight":return Number.NEGATIVE_INFINITY;case"maxWidth":case"maxHeight":return Number.POSITIVE_INFINITY;default:we(e,"unknown constraint key")}}function _D(e,t,n,r){return t.minHeight&&(e=Math.max(Yu("minHeight",t.minHeight,n,r),e)),t.maxHeight&&(e=Math.min(Yu("maxHeight",t.maxHeight,n,r),e)),e}function OD(e,t,n,r){return t.minWidth&&(e=Math.max(Yu("minWidth",t.minWidth,n,r),e)),t.maxWidth&&(e=Math.min(Yu("maxWidth",t.maxWidth,n,r),e)),e}function MD(e,t,n,r,i){let o=OD(ce(e)?e:FD,n,r,i),s=_D(ce(t)?t:PD,n,r,i);return ce(n.aspectRatio)&&n.aspectRatio>0&&(ce(n.left)&&ce(n.right)?s=o/n.aspectRatio:ce(n.top)&&ce(n.bottom)?o=s*n.aspectRatio:n.widthType!==0?s=o/n.aspectRatio:o=s*n.aspectRatio),{width:o,height:s}}function Q1(e,t){return!ce(e)||!ce(t)?null:e+t}function LD(e){return typeof e.right=="string"||typeof e.bottom=="string"||typeof e.left=="string"&&(!e.center||e.center==="y")||typeof e.top=="string"&&(!e.center||e.center==="x")}function al(e){return!e._constraints||LD(e)?!1:e._constraints.enabled}function VD(e){let{size:t}=e,{width:n,height:r}=e;return ce(t)&&(n===void 0&&(n=t),r===void 0&&(r=t)),ce(n)&&ce(r)?{width:n,height:r}:null}function AD(e){let t=VD(e);if(t===null)return null;let{left:n,top:r}=e;return ce(n)&&ce(r)?{x:n,y:r,...t}:null}function tl(e,t,n=!0){if(e.positionFixed||e.positionAbsolute)return null;let r=t===1||t===2;if(!al(e)||r)return AD(e);let i=DD(e),o=zD(t),s=o?{sizing:o,positioning:o,viewport:null}:null;return cR.toRect(i,s,null,n,null)}function DD(e){let{left:t,right:n,top:r,bottom:i,center:o,_constraints:s,size:a}=e,{width:l,height:c}=e;l===void 0&&(l=a),c===void 0&&(c=a);let{aspectRatio:u,autoSize:f}=s,d=lR.quickfix({left:ce(t),right:ce(n),top:ce(r),bottom:ce(i),widthType:Xu(l),heightType:Xu(c),aspectRatio:u||null,fixedSize:f===!0}),h=null,p=null,y=0,x=0;if(d.widthType!==0&&typeof l=="string"){let v=parseFloat(l);l.endsWith("fr")?(y=3,h=v):l==="auto"?y=2:(y=1,h=v/100)}else l!==void 0&&typeof l!="string"&&(h=l);if(d.heightType!==0&&typeof c=="string"){let v=parseFloat(c);c.endsWith("fr")?(x=3,p=v):c==="auto"?x=2:(x=1,p=parseFloat(c)/100)}else c!==void 0&&typeof c!="string"&&(p=c);let m=.5,g=.5;return(o===!0||o==="x")&&(d.left=!1,typeof t=="string"&&(m=parseFloat(t)/100)),(o===!0||o==="y")&&(d.top=!1,typeof r=="string"&&(g=parseFloat(r)/100)),{left:d.left?t:null,right:d.right?n:null,top:d.top?r:null,bottom:d.bottom?i:null,widthType:y,heightType:x,width:h,height:p,aspectRatio:d.aspectRatio||null,centerAnchorX:m,centerAnchorY:g,minHeight:e.minHeight,maxHeight:e.maxHeight,minWidth:e.minWidth,maxWidth:e.maxWidth}}var uR=w.createContext({parentSize:0});function zD(e){return e===0||e===1||e===2?null:e}function ll(){return w.useContext(uR).parentSize}function fR(e){return typeof e=="object"}var BD=e=>{let t=ll(),{parentSize:n,children:r}=e,i=w.useMemo(()=>({parentSize:n}),[$D(n),ND(n)]);return t===1?r?k(ht,{children:r}):null:k(uR.Provider,{value:i,children:r})};function $D(e){return fR(e)?e.width:e}function ND(e){return fR(e)?e.height:e}function jD(e,t){return k(BD,{parentSize:t,children:e})}function HD(e){let t=ll();return tl(e,t,!0)}function dR({width:e,height:t}){return e==="auto"||e==="min-content"||t==="auto"||t==="min-content"}var WD=(e=>(e.Boolean="boolean",e.Number="number",e.String="string",e.RichText="richtext",e.FusedNumber="fusednumber",e.Enum="enum",e.SegmentedEnum="segmentedenum",e.Color="color",e.Image="image",e.ResponsiveImage="responsiveimage",e.File="file",e.ComponentInstance="componentinstance",e.Array="array",e.EventHandler="eventhandler",e.Transition="transition",e.BoxShadow="boxshadow",e.Link="link",e.Date="date",e.Object="object",e.Font="font",e.PageScope="pagescope",e.ScrollSectionRef="scrollsectionref",e.CustomCursor="customcursor",e.Border="border",e.Cursor="cursor",e.Padding="padding",e.BorderRadius="borderradius",e.CollectionReference="collectionreference",e.MultiCollectionReference="multicollectionreference",e.TrackingId="trackingid",e.VectorSetItem="vectorsetitem",e))(WD||{}),Rm;function UD(){if(Rm!==void 0)return Rm;let e=document.createElement("div");Object.assign(e.style,{position:"absolute",display:"flex",flexDirection:"column",rowGap:"1px"}),e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);let t=e.scrollHeight===1;return e.parentNode&&e.parentNode.removeChild(e),Rm=t,t}var lo="flexbox-gap-not-supported",Z1=!1;function q9(){Z1||(Z1=!0,!UD()&&document.body.classList.add(lo))}var GD=`
[data-framer-component-type="DeprecatedRichText"] p,
[data-framer-component-type="DeprecatedRichText"] div,
[data-framer-component-type="DeprecatedRichText"] h1,
[data-framer-component-type="DeprecatedRichText"] h2,
[data-framer-component-type="DeprecatedRichText"] h3,
[data-framer-component-type="DeprecatedRichText"] h4,
[data-framer-component-type="DeprecatedRichText"] h5,
[data-framer-component-type="DeprecatedRichText"] h6,
[data-framer-component-type="DeprecatedRichText"] li,
[data-framer-component-type="DeprecatedRichText"] ol,
[data-framer-component-type="DeprecatedRichText"] ul,
[data-framer-component-type="DeprecatedRichText"] span:not([data-text-fill]) {
    font-family: var(--framer-font-family, Inter, Inter Placeholder, sans-serif);
    font-style: var(--framer-font-style, normal);
    font-weight: var(--framer-font-weight, 400);
    color: var(--framer-text-color, #000);
    font-size: var(--framer-font-size, 16px);
    letter-spacing: var(--framer-letter-spacing, 0);
    text-transform: var(--framer-text-transform, none);
    text-decoration: var(--framer-text-decoration, none);
    line-height: var(--framer-line-height, 1.2em);
    text-align: var(--framer-text-alignment, start);
}
`,qD=`
[data-framer-component-type="DeprecatedRichText"] p:not(:first-child),
[data-framer-component-type="DeprecatedRichText"] div:not(:first-child),
[data-framer-component-type="DeprecatedRichText"] h1:not(:first-child),
[data-framer-component-type="DeprecatedRichText"] h2:not(:first-child),
[data-framer-component-type="DeprecatedRichText"] h3:not(:first-child),
[data-framer-component-type="DeprecatedRichText"] h4:not(:first-child),
[data-framer-component-type="DeprecatedRichText"] h5:not(:first-child),
[data-framer-component-type="DeprecatedRichText"] h6:not(:first-child),
[data-framer-component-type="DeprecatedRichText"] ol:not(:first-child),
[data-framer-component-type="DeprecatedRichText"] ul:not(:first-child),
[data-framer-component-type="DeprecatedRichText"] .framer-image:not(:first-child) {
    margin-top: var(--framer-paragraph-spacing, 0);
}
`,XD=`
[data-framer-component-type="DeprecatedRichText"] span[data-text-fill] {
    display: inline-block;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
`,YD=`
[data-framer-component-type="DeprecatedRichText"] a,
[data-framer-component-type="DeprecatedRichText"] a span:not([data-text-fill]) {
    font-family: var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif));
    font-style: var(--framer-link-font-style, var(--framer-font-style, normal));
    font-weight: var(--framer-link-font-weight, var(--framer-font-weight, 400));
    color: var(--framer-link-text-color, var(--framer-text-color, #000));
    font-size: var(--framer-link-font-size, var(--framer-font-size, 16px));
    text-transform: var(--framer-link-text-transform, var(--framer-text-transform, none));
    text-decoration: var(--framer-link-text-decoration, var(--framer-text-decoration, none));
}
`,KD=`
[data-framer-component-type="DeprecatedRichText"] a:hover,
[data-framer-component-type="DeprecatedRichText"] a:hover span:not([data-text-fill]) {
    font-family: var(--framer-link-hover-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)));
    font-style: var(--framer-link-hover-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)));
    font-weight: var(--framer-link-hover-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)));
    color: var(--framer-link-hover-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)));
    font-size: var(--framer-link-hover-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)));
    text-transform: var(--framer-link-hover-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)));
    text-decoration: var(--framer-link-hover-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none)));
}
`,QD=`
[data-framer-component-type="DeprecatedRichText"] a[data-framer-page-link-current],
[data-framer-component-type="DeprecatedRichText"] a[data-framer-page-link-current] span:not([data-text-fill]):not([data-nested-link]) {
    font-family: var(--framer-link-current-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)));
    font-style: var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)));
    font-weight: var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)));
    color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)));
    font-size: var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)));
    text-transform: var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)));
    text-decoration: var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none)));
}
`,ZD=`
[data-framer-component-type="DeprecatedRichText"] a[data-framer-page-link-current]:hover,
[data-framer-component-type="DeprecatedRichText"] a[data-framer-page-link-current]:hover span:not([data-text-fill]):not([data-nested-link]) {
    font-family: var(--framer-link-hover-font-family, var(--framer-link-current-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))));
    font-style: var(--framer-link-hover-font-style, var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))));
    font-weight: var(--framer-link-hover-font-weight, var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))));
    color: var(--framer-link-hover-text-color, var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))));
    font-size: var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px))));
    text-transform: var(--framer-link-hover-text-transform, var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))));
    text-decoration: var(--framer-link-hover-text-decoration, var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none))));
}
`,JD=`
[data-framer-component-type="DeprecatedRichText"] strong {
    font-weight: bolder;
}
`,e3=`
[data-framer-component-type="DeprecatedRichText"] em {
    font-style: italic;
}
`,t3=`
[data-framer-component-type="DeprecatedRichText"] .framer-image {
    display: block;
    max-width: 100%;
    height: auto;
}
`,n3=`
[data-framer-component-type="DeprecatedRichText"] p,
[data-framer-component-type="DeprecatedRichText"] div,
[data-framer-component-type="DeprecatedRichText"] h1,
[data-framer-component-type="DeprecatedRichText"] h2,
[data-framer-component-type="DeprecatedRichText"] h3,
[data-framer-component-type="DeprecatedRichText"] h4,
[data-framer-component-type="DeprecatedRichText"] h5,
[data-framer-component-type="DeprecatedRichText"] h6 {
    margin: 0;
    padding: 0;
}
`,r3=`
[data-framer-component-type="DeprecatedRichText"] .text-styles-preset-reset {
    --framer-font-family: Inter, Inter Placeholder, sans-serif;
    --framer-font-style: normal;
    --framer-font-weight: 500;
    --framer-text-color: #000;
    --framer-font-size: 16px;
    --framer-letter-spacing: 0;
    --framer-text-transform: none;
    --framer-text-decoration: none;
    --framer-line-height: 1.2em;
    --framer-text-alignment: start;
    --framer-font-open-type-features: normal;
    --font-variation-settings: normal;
}
`,i3=`
[data-framer-component-type="DeprecatedRichText"] ul,
[data-framer-component-type="DeprecatedRichText"] ol {
    display: table;
    width: 100%;
    padding-left: 0;
    margin: 0;
}
`,o3=`
[data-framer-component-type="DeprecatedRichText"] li {
    display: table-row;
    counter-increment: list-item;
    list-style: none;
}
`,s3=`
[data-framer-component-type="DeprecatedRichText"] ol > li::before {
    display: table-cell;
    width: 2.25ch;
    box-sizing: border-box;
    padding-right: 0.75ch;
    content: counter(list-item) ".";
    white-space: nowrap;
}
`,a3=`
[data-framer-component-type="DeprecatedRichText"] ul > li::before {
    display: table-cell;
    width: 2.25ch;
    box-sizing: border-box;
    padding-right: 0.75ch;
    content: "\u2022";
}
`,l3=['[data-framer-component-type="DeprecatedRichText"] { cursor: inherit; }',r3,n3,GD,qD,XD,YD,KD,QD,ZD,JD,e3,t3,i3,o3,s3,a3],hR=(e=>(e.Padding="--framer-input-padding",e.BorderRadiusTopLeft="--framer-input-border-radius-top-left",e.BorderRadiusTopRight="--framer-input-border-radius-top-right",e.BorderRadiusBottomRight="--framer-input-border-radius-bottom-right",e.BorderRadiusBottomLeft="--framer-input-border-radius-bottom-left",e.BorderColor="--framer-input-border-color",e.BorderTopWidth="--framer-input-border-top-width",e.BorderRightWidth="--framer-input-border-right-width",e.BorderBottomWidth="--framer-input-border-bottom-width",e.BorderLeftWidth="--framer-input-border-left-width",e.BorderStyle="--framer-input-border-style",e.Background="--framer-input-background",e.FontFamily="--framer-input-font-family",e.FontWeight="--framer-input-font-weight",e.FontSize="--framer-input-font-size",e.FontColor="--framer-input-font-color",e.FontStyle="--framer-input-font-style",e.FontLetterSpacing="--framer-input-font-letter-spacing",e.FontTextAlignment="--framer-input-font-text-alignment",e.FontLineHeight="--framer-input-font-line-height",e.FontOpenType="--framer-input-font-open-type-features",e.PlaceholderColor="--framer-input-placeholder-color",e.BoxShadow="--framer-input-box-shadow",e.FocusedBorderColor="--framer-input-focused-border-color",e.FocusedBorderWidth="--framer-input-focused-border-width",e.FocusedBorderStyle="--framer-input-focused-border-style",e.FocusedBackground="--framer-input-focused-background",e.FocusedBoxShadow="--framer-input-focused-box-shadow",e.FocusedTransition="--framer-input-focused-transition",e.BooleanCheckedBackground="--framer-input-boolean-checked-background",e.BooleanCheckedBorderColor="--framer-input-boolean-checked-border-color",e.BooleanCheckedBorderWidth="--framer-input-boolean-checked-border-width",e.BooleanCheckedBorderStyle="--framer-input-boolean-checked-border-style",e.BooleanCheckedBoxShadow="--framer-input-boolean-checked-box-shadow",e.BooleanCheckedTransition="--framer-input-boolean-checked-transition",e.InvalidTextColor="--framer-input-invalid-text-color",e.IconBackgroundImage="--framer-input-icon-image",e.IconMaskImage="--framer-input-icon-mask-image",e.IconColor="--framer-input-icon-color",e.WrapperHeight="--framer-input-wrapper-height",e))(hR||{}),Me=hR,Bt="framer-form-input",cl="framer-form-input-wrapper",pR="framer-form-input-empty",ws="framer-form-input-forced-focus",Tm="framer-form-input-forced-checked";function c3(e){return typeof e=="number"?e:e.startsWith("--")?M.variable(e):e===""?'""':e}function M(e,t){let n=" ";for(let r in t){let i=t[r];n+=`${r.replace(/([A-Z])/gu,"-$1").toLowerCase()}: ${c3(i)}; `}return e+" {"+n+"}"}(e=>{function t(...n){let r=n[n.length-1],i=r.startsWith("--")?`var(${r})`:r;for(let o=n.length-2;o>=0;o--)i=`var(${n[o]}, ${i})`;return i}e.variable=t})(M||(M={}));var mR=[M(`.${Bt}`,{padding:M.variable(Me.Padding),background:"transparent",fontFamily:M.variable(Me.FontFamily),fontWeight:M.variable(Me.FontWeight),fontSize:M.variable(Me.FontSize),fontStyle:M.variable(Me.FontStyle),color:M.variable(Me.FontColor),fontFeatureSettings:M.variable(Me.FontOpenType),border:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",width:"100%",height:M.variable(Me.WrapperHeight,"100%"),letterSpacing:M.variable(Me.FontLetterSpacing),textAlign:M.variable(Me.FontTextAlignment),lineHeight:M.variable(Me.FontLineHeight)}),M(`.${Bt}:focus-visible`,{outline:"none"})],gR=[M(`.${cl}`,{overflow:"hidden"})],ps=`var(${Me.BorderTopWidth}) var(${Me.BorderRightWidth}) var(${Me.BorderBottomWidth}) var(${Me.BorderLeftWidth})`,vR=[`.${cl}:after {
        content: "";
        pointer-events: none;
        box-sizing: border-box;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-top-left-radius: var(${Me.BorderRadiusTopLeft});
        border-top-right-radius: var(${Me.BorderRadiusTopRight});
        border-bottom-right-radius: var(${Me.BorderRadiusBottomRight});
        border-bottom-left-radius: var(${Me.BorderRadiusBottomLeft});
        border-color: var(${Me.BorderColor});
        border-top-width: var(${Me.BorderTopWidth});
        border-right-width: var(${Me.BorderRightWidth});
        border-bottom-width: var(${Me.BorderBottomWidth});
        border-left-width: var(${Me.BorderLeftWidth});
        border-style: var(${Me.BorderStyle});
        transition: var(${Me.FocusedTransition});
        transition-property: border-color, border-width, border-style, border-top-left-radius, border-top-right-radius, border-bottom-right-radius, border-bottom-left-radius;
    }`],u3="customError",f3="valid";function d3(e){return e!==u3&&e!==f3}function J1(e){for(let t in e)if(d3(t)&&e?.[t]===!0)return!0;return!1}function Lg(e,t,n,r,i){let o=w.useRef(null),s=w.useCallback(c=>{t&&o.current!==!1&&(o.current=!1,c.currentTarget.setCustomValidity(" "),c.currentTarget.reportValidity(),t(c))},[t]),a=w.useCallback(c=>{if(n?.(c),!t&&!e)return;let u=c.target.validity;o.current===!1&&!J1(u)&&(c.currentTarget.setCustomValidity(""),c.target.reportValidity(),o.current=!0,e?.())},[t,e,n]),l=w.useCallback(c=>{if(!t){r?.(c);return}if(o.current===!1)return;let u=c.currentTarget.validity;if(J1(u)){s(c);return}r?.(c)},[s,r,t]);return w.useMemo(()=>({onInvalid:s,onChange:a,onBlur:l,onFocus:i}),[s,a,l,i])}var bs=10,Em=16,Vg={content:"",display:"block",position:"absolute",right:0,top:0,bottom:0,width:`${Em}px`,boxSizing:"content-box",padding:M.variable(Me.Padding),border:"none",pointerEvents:"none",backgroundRepeat:"no-repeat",backgroundSize:`${Em}px`,maskRepeat:"no-repeat",maskSize:`${Em}px`,backgroundColor:M.variable(Me.IconColor)};function Wn(e,t){return M.variable(...e.flatMap(n=>[`${n}-rgb`,n]),t)}var h3=[`
        p.framer-text,
        div.framer-text,
        figure.framer-text,
        h1.framer-text,
        h2.framer-text,
        h3.framer-text,
        h4.framer-text,
        h5.framer-text,
        h6.framer-text,
        ol.framer-text,
        ul.framer-text {
            margin: 0;
            padding: 0;
        }
    `,`
        p.framer-text,
        div.framer-text,
        h1.framer-text,
        h2.framer-text,
        h3.framer-text,
        h4.framer-text,
        h5.framer-text,
        h6.framer-text,
        li.framer-text,
        ol.framer-text,
        ul.framer-text,
        span.framer-text:not([data-text-fill]) {
            font-family: var(--framer-blockquote-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif));
            font-style: var(--framer-blockquote-font-style, var(--framer-font-style, normal));
            font-weight: var(--framer-blockquote-font-weight, var(--framer-font-weight, 400));
            color: var(--framer-blockquote-text-color, var(--framer-text-color, #000));
            font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1));
            letter-spacing: var(--framer-blockquote-letter-spacing, var(--framer-letter-spacing, 0));
            text-transform: var(--framer-blockquote-text-transform, var(--framer-text-transform, none));
            text-decoration: var(--framer-blockquote-text-decoration, var(--framer-text-decoration, none));
            line-height: var(--framer-blockquote-line-height, var(--framer-line-height, 1.2em));
            text-align: var(--framer-blockquote-text-alignment, var(--framer-text-alignment, start));
            -webkit-text-stroke-width: var(--framer-text-stroke-width, initial);
            -webkit-text-stroke-color: var(--framer-text-stroke-color, initial);
            -moz-font-feature-settings: var(--framer-font-open-type-features, initial);
            -webkit-font-feature-settings: var(--framer-font-open-type-features, initial);
            font-feature-settings: var(--framer-font-open-type-features, initial);
            font-variation-settings: var(--framer-font-variation-axes, normal);
            text-wrap: var(--framer-text-wrap-override, var(--framer-text-wrap));
        }
    `,`
        @supports not (color: color(display-p3 1 1 1)) {
            p.framer-text,
            div.framer-text,
            h1.framer-text,
            h2.framer-text,
            h3.framer-text,
            h4.framer-text,
            h5.framer-text,
            h6.framer-text,
            li.framer-text,
            ol.framer-text,
            ul.framer-text,
            span.framer-text:not([data-text-fill]) {
                color: ${Wn(["--framer-blockquote-text-color","--framer-text-color"],"#000")};
                -webkit-text-stroke-color: ${Wn(["--framer-text-stroke-color"],"initial")};
            }
        }
    `,`
        .framer-fit-text .framer-text {
            white-space: nowrap;
            white-space-collapse: preserve;
        }
    `,`
        strong.framer-text {
            font-family: var(--framer-blockquote-font-family-bold, var(--framer-font-family-bold));
            font-style: var(--framer-blockquote-font-style-bold, var(--framer-font-style-bold));
            font-weight: var(--framer-blockquote-font-weight-bold, var(--framer-font-weight-bold, bolder));
            font-variation-settings: var(--framer-blockquote-font-variation-axes-bold, var(--framer-font-variation-axes-bold));
        }
    `,`
        em.framer-text {
            font-family: var(--framer-blockquote-font-family-italic, var(--framer-font-family-italic));
            font-style: var(--framer-blockquote-font-style-italic, var(--framer-font-style-italic, italic));
            font-weight: var(--framer-blockquote-font-weight-italic, var(--framer-font-weight-italic));
            font-variation-settings: var(--framer-blockquote-font-variation-axes-italic, var(--framer-font-variation-axes-italic));
        }
    `,`
        em.framer-text > strong.framer-text {
            font-family: var(--framer-blockquote-font-family-bold-italic, var(--framer-font-family-bold-italic));
            font-style: var(--framer-blockquote-font-style-bold-italic, var(--framer-font-style-bold-italic, italic));
            font-weight: var(--framer-blockquote-font-weight-bold-italic, var(--framer-font-weight-bold-italic, bolder));
            font-variation-settings: var(--framer-blockquote-font-variation-axes-bold-italic, var(--framer-font-variation-axes-bold-italic));
        }
    `,`
        p.framer-text:not(:first-child),
        div.framer-text:not(:first-child),
        h1.framer-text:not(:first-child),
        h2.framer-text:not(:first-child),
        h3.framer-text:not(:first-child),
        h4.framer-text:not(:first-child),
        h5.framer-text:not(:first-child),
        h6.framer-text:not(:first-child),
        ol.framer-text:not(:first-child),
        ul.framer-text:not(:first-child),
        blockquote.framer-text:not(:first-child),
        table.framer-text:not(:first-child),
        figure.framer-text:not(:first-child),
        .framer-image.framer-text:not(:first-child) {
            margin-top: var(--framer-blockquote-paragraph-spacing, var(--framer-paragraph-spacing, 0));
        }
    `,`
        li.framer-text > ul.framer-text:nth-child(2),
        li.framer-text > ol.framer-text:nth-child(2) {
            margin-top: 0;
        }
    `,`
        .framer-text[data-text-fill] {
            display: inline-block;
            background-clip: text;
            -webkit-background-clip: text;
            /* make this a transparent color if you want to visualise the clipping  */
            -webkit-text-fill-color: transparent;
            padding: max(0em, calc(calc(1.3em - var(--framer-blockquote-line-height, var(--framer-line-height, 1.3em))) / 2));
            margin: min(0em, calc(calc(1.3em - var(--framer-blockquote-line-height, var(--framer-line-height, 1.3em))) / -2));
        }
    `,`
        code.framer-text,
        code.framer-text span.framer-text:not([data-text-fill]) {
            font-family: var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif));
            font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal)));
            font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400)));
            color: var(--framer-blockquote-text-color, var(--framer-code-text-color, var(--framer-text-color, #000)));
            font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1));
            letter-spacing: var(--framer-blockquote-letter-spacing, var(--framer-letter-spacing, 0));
            line-height: var(--framer-blockquote-line-height, var(--framer-line-height, 1.2em));
        }
    `,`
        @supports not (color: color(display-p3 1 1 1)) {
            code.framer-text,
            code.framer-text span.framer-text:not([data-text-fill]) {
                color: ${Wn(["--framer-blockquote-text-color","--framer-code-text-color","--framer-text-color"],"#000")};
            }
        }
    `,`
        blockquote.framer-text {
            margin-block-start: initial;
            margin-block-end: initial;
            margin-inline-start: initial;
            margin-inline-end: initial;
            unicode-bidi: initial;
        }
    `,`
        a.framer-text,
        a.framer-text span.framer-text:not([data-text-fill]),
        span.framer-text[data-nested-link],
        span.framer-text[data-nested-link] span.framer-text:not([data-text-fill]) {
            font-family: var(--framer-blockquote-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)));
            font-style: var(--framer-blockquote-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)));
            font-weight: var(--framer-blockquote-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)));
            color: var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)));
            font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1));
            text-transform: var(--framer-blockquote-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)));
            text-decoration: var(--framer-blockquote-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none)));
            /* Cursor inherit to overwrite the user agent stylesheet on rich text links. */
            cursor: var(--framer-custom-cursors, pointer);
        }
    `,`
        @supports not (color: color(display-p3 1 1 1)) {
            a.framer-text,
            a.framer-text span.framer-text:not([data-text-fill]),
            span.framer-text[data-nested-link],
            span.framer-text[data-nested-link] span.framer-text:not([data-text-fill]) {
                color: ${Wn(["--framer-blockquote-text-color","--framer-link-text-color","--framer-text-color"],"#000")};
            }
        }
    `,`
        code.framer-text a.framer-text,
        code.framer-text a.framer-text span.framer-text:not([data-text-fill]),
        code.framer-text span.framer-text[data-nested-link],
        code.framer-text span.framer-text[data-nested-link] span.framer-text:not([data-text-fill]) {
            font-family: var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif));
            font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal)));
            font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400)));
            color: var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000))));
            font-size: calc(var(--framer-blockquote-font-size, var(--framer-font-size, 16px)) * var(--framer-font-size-scale, 1));
        }
    `,`
        @supports not (color: color(display-p3 1 1 1)) {
            code.framer-text a.framer-text,
            code.framer-text a.framer-text span.framer-text:not([data-text-fill]),
            code.framer-text span.framer-text[data-nested-link],
            code.framer-text span.framer-text[data-nested-link] span.framer-text:not([data-text-fill]) {
                color: ${Wn(["--framer-blockquote-text-color","--framer-link-text-color","--framer-code-text-color","--framer-text-color"],"#000")};
            }
        }
    `,`
        a.framer-text:hover,
        a.framer-text:hover span.framer-text:not([data-text-fill]),
        span.framer-text[data-nested-link]:hover,
        span.framer-text[data-nested-link]:hover span.framer-text:not([data-text-fill]) {
            font-family: var(--framer-link-hover-font-family, var(--framer-blockquote-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))));
            font-style: var(--framer-link-hover-font-style, var(--framer-blockquote-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))));
            font-weight: var(--framer-link-hover-font-weight, var(--framer-blockquote-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))));
            color: var(--framer-link-hover-text-color, var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))));
            font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size, var(--framer-font-size, 16px))) * var(--framer-font-size-scale, 1));
            text-transform: var(--framer-link-hover-text-transform, var(--framer-blockquote-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))));
            text-decoration: var(--framer-link-hover-text-decoration, var(--framer-blockquote-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none))));
        }
    `,`
    @supports not (color: color(display-p3 1 1 1)) {
        a.framer-text:hover,
        a.framer-text:hover span.framer-text:not([data-text-fill]),
        span.framer-text[data-nested-link]:hover,
        span.framer-text[data-nested-link]:hover span.framer-text:not([data-text-fill]) {
            color: ${Wn(["--framer-link-hover-text-color","--framer-blockquote-text-color","--framer-link-text-color","--framer-text-color"],"#000")};
        }
    }
    `,`
        code.framer-text a.framer-text:hover,
        code.framer-text a.framer-text:hover span.framer-text:not([data-text-fill]),
        code.framer-text span.framer-text[data-nested-link]:hover,
        code.framer-text span.framer-text[data-nested-link]:hover span.framer-text:not([data-text-fill]) {
            font-family: var(var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)));
            font-style: var(--framer-blockquote-font-style, var(--framer-code-font-style, var(--framer-font-style, normal)));
            font-weight: var(--framer-blockquote-font-weight, var(--framer-code-font-weight, var(--framer-font-weight, 400)));
            color: var(--framer-link-hover-text-color, var(--framer-blockquote-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000)))));
            font-size: calc(var(--framer-link-hover-font-size, var(--framer-blockquote-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))) * var(--framer-font-size-scale, 1));
        }
    `,`
    @supports not (color: color(display-p3 1 1 1)) {
        code.framer-text a.framer-text:hover,
        code.framer-text a.framer-text:hover span.framer-text:not([data-text-fill]),
        code.framer-text span.framer-text[data-nested-link]:hover,
        code.framer-text span.framer-text[data-nested-link]:hover span.framer-text:not([data-text-fill]) {
            color: ${Wn(["--framer-link-hover-text-color","--framer-blockquote-text-color","--framer-link-text-color","--framer-text-color"],"#000")};
        }
    }
   `,`
        a.framer-text[data-framer-page-link-current],
        a.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]),
        span.framer-text[data-framer-page-link-current],
        span.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]) {
            font-family: var(--framer-link-current-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif)));
            font-style: var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal)));
            font-weight: var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400)));
            color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000)));
            font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px))) * var(--framer-font-size-scale, 1));
            text-transform: var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none)));
            text-decoration: var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none)));
        }
    `,`
        @supports not (color: color(display-p3 1 1 1)) {
            a.framer-text[data-framer-page-link-current],
            a.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]),
            span.framer-text[data-framer-page-link-current],
            span.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]) {
                color: ${Wn(["--framer-link-current-text-color","--framer-link-text-color","--framer-text-color"],"#000")};
            }
        }
    `,`
        code.framer-text a.framer-text[data-framer-page-link-current],
        code.framer-text a.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]),
        code.framer-text span.framer-text[data-framer-page-link-current],
        code.framer-text span.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]) {
            font-family: var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif));
            font-style: var(--framer-code-font-style, var(--framer-font-style, normal));
            font-weight: var(--framer-code-font-weight, var(--framer-font-weight, 400));
            color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000))));
            font-size: calc(var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px))) * var(--framer-font-size-scale, 1));
        }
    `,`
        @supports not (color: color(display-p3 1 1 1)) {
            code.framer-text a.framer-text[data-framer-page-link-current],
            code.framer-text a.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]),
            code.framer-text span.framer-text[data-framer-page-link-current],
            code.framer-text span.framer-text[data-framer-page-link-current] span.framer-text:not([data-text-fill]) {
                color: ${Wn(["--framer-link-current-text-color","--framer-link-text-color","--framer-code-text-color","--framer-text-color"],"#000")};
            }
        }
    `,`
        a.framer-text[data-framer-page-link-current]:hover,
        a.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]),
        span.framer-text[data-framer-page-link-current]:hover,
        span.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]) {
            font-family: var(--framer-link-hover-font-family, var(--framer-link-current-font-family, var(--framer-link-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif))));
            font-style: var(--framer-link-hover-font-style, var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style, normal))));
            font-weight: var(--framer-link-hover-font-weight, var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight, 400))));
            color: var(--framer-link-hover-text-color, var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color, #000))));
            font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))) * var(--framer-font-size-scale, 1));
            text-transform: var(--framer-link-hover-text-transform, var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform, none))));
            text-decoration: var(--framer-link-hover-text-decoration, var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration, none))));
        }
    `,`
        @supports not (color: color(display-p3 1 1 1)) {
            a.framer-text[data-framer-page-link-current]:hover,
            a.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]),
            span.framer-text[data-framer-page-link-current]:hover,
            span.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]) {
                color: ${Wn(["--framer-link-hover-text-color","--framer-link-current-text-color","--framer-link-text-color","--framer-code-text-color","--framer-text-color"],"#000")};
            }
        }
    `,`
        code.framer-text a.framer-text[data-framer-page-link-current]:hover,
        code.framer-text a.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]),
        code.framer-text span.framer-text[data-framer-page-link-current]:hover,
        code.framer-text span.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]) {
            font-family: var(--framer-code-font-family, var(--framer-font-family, Inter, Inter Placeholder, sans-serif));
            font-style: var(--framer-code-font-style, var(--framer-font-style, normal));
            font-weight: var(--framer-code-font-weight, var(--framer-font-weight, 400));
            color: var(--framer-link-hover-text-color, var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-code-text-color, var(--framer-text-color, #000)))));
            font-size: calc(var(--framer-link-hover-font-size, var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size, 16px)))) * var(--framer-font-size-scale, 1));
        }
    `,`
        @supports not (color: color(display-p3 1 1 1)) {
            code.framer-text a.framer-text[data-framer-page-link-current]:hover,
            code.framer-text a.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]),
            code.framer-text span.framer-text[data-framer-page-link-current]:hover,
            code.framer-text span.framer-text[data-framer-page-link-current]:hover span.framer-text:not([data-text-fill]) {
                color: ${Wn(["--framer-link-hover-text-color","--framer-link-current-text-color","--framer-link-text-color","--framer-code-text-color","--framer-text-color"],"#000")};
            }
        }
    `,`
        .framer-image.framer-text {
            display: block;
            max-width: 100%;
            height: auto;
        }
    `,`
        .text-styles-preset-reset.framer-text {
            --framer-font-family: Inter, Inter Placeholder, sans-serif;
            --framer-font-style: normal;
            --framer-font-weight: 500;
            --framer-text-color: #000;
            --framer-font-size: 16px;
            --framer-letter-spacing: 0;
            --framer-text-transform: none;
            --framer-text-decoration: none;
            --framer-line-height: 1.2em;
            --framer-text-alignment: start;
            --framer-font-open-type-features: normal;
        }
    `,`
        ol.framer-text {
            --list-style-type: decimal;
        }
    `,`
        ul.framer-text,
        ol.framer-text {
            display: table;
            width: 100%;
        }
    `,`
        li.framer-text {
            display: table-row;
            counter-increment: list-item;
            list-style: none;
        }
    `,`
        ol.framer-text > li.framer-text::before {
            display: table-cell;
            width: 2.25ch;
            box-sizing: border-box;
            padding-inline-end: 0.75ch;
            content: counter(list-item, var(--list-style-type)) ".";
            white-space: nowrap;
        }
    `,`
        ul.framer-text > li.framer-text::before {
            display: table-cell;
            width: 2.25ch;
            box-sizing: border-box;
            padding-inline-end: 0.75ch;
            content: "\u2022";
        }
    `,`
        .framer-table-wrapper {
            overflow-x: auto;
        }
    `,`
        table.framer-text,
        .framer-table-wrapper table.framer-text {
            border-collapse: separate;
            border-spacing: 0;
            table-layout: auto;
            word-break: normal;
            width: 100%;
        }
    `,`
        td.framer-text,
        th.framer-text {
            min-width: 16ch;
            vertical-align: top;
        }
    `,`
        .framer-text-module[style*="aspect-ratio"] > :first-child {
            width: 100%;
        }
    `,`
        @supports not (aspect-ratio: 1) {
            .framer-text-module[style*="aspect-ratio"] {
                position: relative;
            }
        }
    `,`
        @supports not (aspect-ratio: 1) {
            .framer-text-module[style*="aspect-ratio"]::before {
                content: "";
                display: block;
                padding-bottom: calc(100% / calc(var(--aspect-ratio)));
            }
        }
    `,`
        @supports not (aspect-ratio: 1) {
            .framer-text-module[style*="aspect-ratio"] > :first-child {
                position: absolute;
                top: 0;
                left: 0;
                height: 100%;
            }
        }
    `],p3=new Set,Fm;function yR(e,t,n=p3){if(!(!e||n.has(e)||typeof document>"u")){if(n.add(e),!t){if(!Fm){let r=document.createElement("style");if(r.setAttribute("type","text/css"),r.setAttribute("data-framer-css","true"),!document.head){console.warn("not injecting CSS: the document is missing a <head> element");return}if(document.head.appendChild(r),r.sheet)Fm=r.sheet;else{console.warn("not injecting CSS: injected <style> element does not have a sheet",r);return}}t=Fm}try{t.insertRule(e,t.cssRules.length)}catch{}}}var m3=["[data-framer-component-type] { position: absolute; }"],g3=`
[data-framer-component-type="Text"] > * {
    text-align: var(--framer-text-alignment, start);
}`,v3=`
[data-framer-component-type="Text"] span span,
[data-framer-component-type="Text"] p span,
[data-framer-component-type="Text"] h1 span,
[data-framer-component-type="Text"] h2 span,
[data-framer-component-type="Text"] h3 span,
[data-framer-component-type="Text"] h4 span,
[data-framer-component-type="Text"] h5 span,
[data-framer-component-type="Text"] h6 span {
    display: block;
}`,y3=`
[data-framer-component-type="Text"] span span span,
[data-framer-component-type="Text"] p span span,
[data-framer-component-type="Text"] h1 span span,
[data-framer-component-type="Text"] h2 span span,
[data-framer-component-type="Text"] h3 span span,
[data-framer-component-type="Text"] h4 span span,
[data-framer-component-type="Text"] h5 span span,
[data-framer-component-type="Text"] h6 span span {
    display: unset;
}`,b3=`
[data-framer-component-type="Text"] div div span,
[data-framer-component-type="Text"] a div span,
[data-framer-component-type="Text"] span span span,
[data-framer-component-type="Text"] p span span,
[data-framer-component-type="Text"] h1 span span,
[data-framer-component-type="Text"] h2 span span,
[data-framer-component-type="Text"] h3 span span,
[data-framer-component-type="Text"] h4 span span,
[data-framer-component-type="Text"] h5 span span,
[data-framer-component-type="Text"] h6 span span,
[data-framer-component-type="Text"] a {
    font-family: var(--font-family);
    font-style: var(--font-style);
    font-weight: min(calc(var(--framer-font-weight-increase, 0) + var(--font-weight, 400)), 900);
    color: var(--text-color);
    letter-spacing: var(--letter-spacing);
    font-size: var(--font-size);
    text-transform: var(--text-transform);
    text-decoration: var(--text-decoration);
    line-height: var(--line-height);
}`,x3=`
[data-framer-component-type="Text"] div div span,
[data-framer-component-type="Text"] a div span,
[data-framer-component-type="Text"] span span span,
[data-framer-component-type="Text"] p span span,
[data-framer-component-type="Text"] h1 span span,
[data-framer-component-type="Text"] h2 span span,
[data-framer-component-type="Text"] h3 span span,
[data-framer-component-type="Text"] h4 span span,
[data-framer-component-type="Text"] h5 span span,
[data-framer-component-type="Text"] h6 span span,
[data-framer-component-type="Text"] a {
    --font-family: var(--framer-font-family);
    --font-style: var(--framer-font-style);
    --font-weight: var(--framer-font-weight);
    --text-color: var(--framer-text-color);
    --letter-spacing: var(--framer-letter-spacing);
    --font-size: var(--framer-font-size);
    --text-transform: var(--framer-text-transform);
    --text-decoration: var(--framer-text-decoration);
    --line-height: var(--framer-line-height);
}`,w3=`
[data-framer-component-type="Text"] a,
[data-framer-component-type="Text"] a div span,
[data-framer-component-type="Text"] a span span span,
[data-framer-component-type="Text"] a p span span,
[data-framer-component-type="Text"] a h1 span span,
[data-framer-component-type="Text"] a h2 span span,
[data-framer-component-type="Text"] a h3 span span,
[data-framer-component-type="Text"] a h4 span span,
[data-framer-component-type="Text"] a h5 span span,
[data-framer-component-type="Text"] a h6 span span {
    --font-family: var(--framer-link-font-family, var(--framer-font-family));
    --font-style: var(--framer-link-font-style, var(--framer-font-style));
    --font-weight: var(--framer-link-font-weight, var(--framer-font-weight));
    --text-color: var(--framer-link-text-color, var(--framer-text-color));
    --font-size: var(--framer-link-font-size, var(--framer-font-size));
    --text-transform: var(--framer-link-text-transform, var(--framer-text-transform));
    --text-decoration: var(--framer-link-text-decoration, var(--framer-text-decoration));
}`,S3=`
[data-framer-component-type="Text"] a:hover,
[data-framer-component-type="Text"] a div span:hover,
[data-framer-component-type="Text"] a span span span:hover,
[data-framer-component-type="Text"] a p span span:hover,
[data-framer-component-type="Text"] a h1 span span:hover,
[data-framer-component-type="Text"] a h2 span span:hover,
[data-framer-component-type="Text"] a h3 span span:hover,
[data-framer-component-type="Text"] a h4 span span:hover,
[data-framer-component-type="Text"] a h5 span span:hover,
[data-framer-component-type="Text"] a h6 span span:hover {
    --font-family: var(--framer-link-hover-font-family, var(--framer-link-font-family, var(--framer-font-family)));
    --font-style: var(--framer-link-hover-font-style, var(--framer-link-font-style, var(--framer-font-style)));
    --font-weight: var(--framer-link-hover-font-weight, var(--framer-link-font-weight, var(--framer-font-weight)));
    --text-color: var(--framer-link-hover-text-color, var(--framer-link-text-color, var(--framer-text-color)));
    --font-size: var(--framer-link-hover-font-size, var(--framer-link-font-size, var(--framer-font-size)));
    --text-transform: var(--framer-link-hover-text-transform, var(--framer-link-text-transform, var(--framer-text-transform)));
    --text-decoration: var(--framer-link-hover-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration)));
}`,k3=`
[data-framer-component-type="Text"].isCurrent a,
[data-framer-component-type="Text"].isCurrent a div span,
[data-framer-component-type="Text"].isCurrent a span span span,
[data-framer-component-type="Text"].isCurrent a p span span,
[data-framer-component-type="Text"].isCurrent a h1 span span,
[data-framer-component-type="Text"].isCurrent a h2 span span,
[data-framer-component-type="Text"].isCurrent a h3 span span,
[data-framer-component-type="Text"].isCurrent a h4 span span,
[data-framer-component-type="Text"].isCurrent a h5 span span,
[data-framer-component-type="Text"].isCurrent a h6 span span {
    --font-family: var(--framer-link-current-font-family, var(--framer-link-font-family, var(--framer-font-family)));
    --font-style: var(--framer-link-current-font-style, var(--framer-link-font-style, var(--framer-font-style)));
    --font-weight: var(--framer-link-current-font-weight, var(--framer-link-font-weight, var(--framer-font-weight)));
    --text-color: var(--framer-link-current-text-color, var(--framer-link-text-color, var(--framer-text-color)));
    --font-size: var(--framer-link-current-font-size, var(--framer-link-font-size, var(--framer-font-size)));
    --text-transform: var(--framer-link-current-text-transform, var(--framer-link-text-transform, var(--framer-text-transform)));
    --text-decoration: var(--framer-link-current-text-decoration, var(--framer-link-text-decoration, var(--framer-text-decoration)));
}`,C3=['[data-framer-component-type="Text"] { cursor: inherit; }',"[data-framer-component-text-autosized] * { white-space: pre; }",g3,v3,y3,b3,x3,w3,S3,k3],R3=`
:not([data-framer-generated]) > [data-framer-stack-content-wrapper] > *,
:not([data-framer-generated]) > [data-framer-stack-content-wrapper] > [data-framer-component-type],
:not([data-framer-generated]) > [data-framer-stack-content-wrapper] > [data-framer-legacy-stack-gap-enabled] > *,
:not([data-framer-generated]) > [data-framer-stack-content-wrapper] > [data-framer-legacy-stack-gap-enabled] > [data-framer-component-type] {
    position: relative;
}`,T3=[`[data-framer-stack-content-wrapper][data-framer-stack-gap-enabled="true"] {
        row-gap: var(--stack-native-row-gap);
        column-gap: var(--stack-native-column-gap);
    }`,`.${lo} [data-framer-stack-content-wrapper][data-framer-stack-gap-enabled="true"] {
        row-gap: unset;
        column-gap: unset;
    }`],E3=`
.${lo} [data-framer-legacy-stack-gap-enabled="true"] > *, [data-framer-legacy-stack-gap-enabled="true"][data-framer-stack-flexbox-gap="false"] {
    margin-top: calc(var(--stack-gap-y) / 2);
    margin-bottom: calc(var(--stack-gap-y) / 2);
    margin-right: calc(var(--stack-gap-x) / 2);
    margin-left: calc(var(--stack-gap-x) / 2);
}
`,F3=`
.${lo}
[data-framer-stack-direction-reverse="false"]
[data-framer-legacy-stack-gap-enabled="true"]
> *:first-child,
[data-framer-stack-direction-reverse="false"]
[data-framer-legacy-stack-gap-enabled="true"][data-framer-stack-flexbox-gap="false"]
> *:first-child,
.${lo}
[data-framer-stack-direction-reverse="true"]
[data-framer-legacy-stack-gap-enabled="true"]
> *:last-child,
[data-framer-stack-direction-reverse="true"]
[data-framer-legacy-stack-gap-enabled="true"][data-framer-stack-flexbox-gap="false"]
> *:last-child {
    margin-top: 0;
    margin-left: 0;
}`,P3=`
.${lo}
[data-framer-stack-direction-reverse="false"]
[data-framer-legacy-stack-gap-enabled="true"]
> *:last-child,
[data-framer-stack-direction-reverse="false"]
[data-framer-legacy-stack-gap-enabled="true"][data-framer-stack-flexbox-gap="false"]
> *:last-child,
.${lo}
[data-framer-stack-direction-reverse="true"]
[data-framer-legacy-stack-gap-enabled="true"]
> *:first-child,
[data-framer-stack-direction-reverse="true"]
[data-framer-legacy-stack-gap-enabled="true"][data-framer-stack-flexbox-gap="false"]
> *:first-child {
    margin-right: 0;
    margin-bottom: 0;
}`,I3=[R3,E3,...T3,F3,P3],_3=[`
NavigationContainer
[data-framer-component-type="NavigationContainer"] > *,
[data-framer-component-type="NavigationContainer"] > [data-framer-component-type] {
    position: relative;
}`],O3=['[data-framer-component-type="Scroll"]::-webkit-scrollbar { display: none; }','[data-framer-component-type="ScrollContentWrapper"] > * { position: relative; }'],M3=['[data-framer-component-type="NativeScroll"] { -webkit-overflow-scrolling: touch; }','[data-framer-component-type="NativeScroll"] > * { position: relative; }','[data-framer-component-type="NativeScroll"].direction-both { overflow-x: scroll; overflow-y: scroll; }','[data-framer-component-type="NativeScroll"].direction-vertical { overflow-x: hidden; overflow-y: scroll; }','[data-framer-component-type="NativeScroll"].direction-horizontal { overflow-x: scroll; overflow-y: hidden; }','[data-framer-component-type="NativeScroll"].direction-vertical > * { width: 100% !important; }','[data-framer-component-type="NativeScroll"].direction-horizontal > * { height: 100% !important; }','[data-framer-component-type="NativeScroll"].scrollbar-hidden::-webkit-scrollbar { display: none; }'],L3=['[data-framer-component-type="DeviceComponent"].no-device > * { width: 100% !important; height: 100% !important; }'],V3=['[data-framer-component-type="PageContentWrapper"] > *, [data-framer-component-type="PageContentWrapper"] > [data-framer-component-type] { position: relative; }'],A3=['[data-is-present="false"], [data-is-present="false"] * { pointer-events: none !important; }'],D3=['[data-framer-cursor="pointer"] { cursor: pointer; }','[data-framer-cursor="grab"] { cursor: grab; }','[data-framer-cursor="grab"]:active { cursor: grabbing; }'],z3=['[data-framer-component-type="Frame"] *, [data-framer-component-type="Stack"] * { pointer-events: auto; }',"[data-framer-generated] * { pointer-events: unset }"],B3=[`[data-reset="button"] {
        border-width: 0;
        padding: 0;
        background: none;
}`],$3=['[data-hide-scrollbars="true"]::-webkit-scrollbar { width: 0px; height: 0px; }','[data-hide-scrollbars="true"]::-webkit-scrollbar-thumb { background: transparent; }','[data-hide-scrollbars="true"] { scrollbar-width: none; }'],Pm="--framer-will-change-override",N3="--framer-will-change-effect-override",j3="(background: -webkit-named-image(i))",H3="(grid-template-rows: subgrid)",W3=e=>e?[`body { ${Pm}: none; }`,`@supports ${j3} and (not ${H3}) { body { ${Pm}: transform; } }`]:[`body { ${Pm}: none; ${N3}: none; }`],U3=e=>e?z3:[],G3=[".svgContainer svg { display: block; }"],bR=e=>[...W3(e),...m3,...C3,...h3,...l3,...I3,..._3,...O3,...M3,...V3,...L3,...A3,...D3,...U3(e),...G3,...B3,...$3],q3=bR(!1),X3=bR(!0),ek=!1;function ul(){if(ek)return;ek=!0;let e=he.current()===he.preview?X3:q3;for(let t of e)yR(t,void 0,void 0)}function Y3(e){return ge(e)||on(e)}var tk="optional";function K3(e){return!!e&&tk in e&&e[tk]===!0}function Q3(e){try{switch(e.type){case"string":case"collectionreference":case"multicollectionreference":case"color":case"date":case"link":case"boxshadow":case"padding":case"borderradius":return ue(e.defaultValue)?e.defaultValue:void 0;case"boolean":return Pg(e.defaultValue)?e.defaultValue:void 0;case"enum":return at(e.defaultValue)?void 0:e.options.includes(e.defaultValue)?e.defaultValue:void 0;case"fusednumber":case"number":return Ae(e.defaultValue)?e.defaultValue:void 0;case"transition":return ge(e.defaultValue)?e.defaultValue:void 0;case"border":return ge(e.defaultValue)?e.defaultValue:void 0;case"font":return ge(e.defaultValue)?e.defaultValue:void 0;case"object":{let t=ge(e.defaultValue)?e.defaultValue:{};return ge(e.controls)&&xR(t,e.controls),t}case"array":return lf(e.defaultValue)?e.defaultValue:void 0;case"file":case"image":case"richtext":case"pagescope":case"eventhandler":case"segmentedenum":case"responsiveimage":case"componentinstance":case"scrollsectionref":case"customcursor":case"cursor":case"trackingid":case"vectorsetitem":return;default:return}}catch{return}}function xR(e,t){for(let n in t){let r=t[n];if(!r)continue;let i=e[n];if(!at(i)||K3(r))continue;let o=Q3(r);at(o)||(e[n]=o)}}function Z3(e){if(ge(e.defaultProps))return e.defaultProps;let t={};return e.defaultProps=t,t}function J3(e,t){if(!Y3(e))return;let n=Z3(e);xR(n,t)}function Y9(e,t){Object.assign(e,{propertyControls:t}),J3(e,t)}function e5(e){return e.propertyControls}function fl(){let e=he.current();return e===he.canvas||e===he.export}function t5(){let[e]=Re(()=>fl());return e}var ft=e=>e;function n5(e){let t=Object.create(Object.prototype);return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var r5=/^(?:children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|[dkrxyz]|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y1|y2|yChannelSelector|zoomAndPan|for|class|autofocus|(?:[Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*)$/u,i5=n5(e=>r5.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91),nk=e=>()=>{vs(e)},o5=()=>()=>{},s5={useImageSource(e){return e.src??""},useImageElement(e,t,n){let r=new Image;return r.src=yt.useImageSource(e,t,n),e.srcSet&&(r.srcset=e.srcSet),r},canRenderOptimizedCanvasImage(){return!1}},a5=!1,l5={get(e,t,n){return Reflect.has(e,t)?Reflect.get(e,t,n):["getLogger"].includes(String(t))?o5():nk(a5?`${String(t)} is not available in this version of Framer.`:`${String(t)} is only available inside of Framer. https://www.framer.com/`)}},yt=new Proxy(s5,l5);var rk={position:"absolute",borderRadius:"inherit",top:0,right:0,bottom:0,left:0},c5={backgroundRepeat:"repeat",backgroundPosition:"left top",backgroundSize:"126px auto",backgroundImage:"url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMTI2IiBoZWlnaHQ9IjEyNiI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0xMjYgMHYyMS41ODRMMjEuNTg0IDEyNkgwdi0xNy41ODVMMTA4LjQxNSAwSDEyNlptMCAxMDguNDE0VjEyNmgtMTcuNTg2TDEyNiAxMDguNDE0Wm0wLTg0djM5LjE3MUw2My41ODUgMTI2SDI0LjQxNEwxMjYgMjQuNDE0Wm0wIDQydjM5LjE3TDEwNS41ODQgMTI2aC0zOS4xN0wxMjYgNjYuNDE0Wk0xMDUuNTg2IDAgMCAxMDUuNTg2VjY2LjQxNUw2Ni40MTUgMGgzOS4xNzFabS00MiAwTDAgNjMuNTg2VjI0LjQxNUwyNC40MTUgMGgzOS4xNzFabS00MiAwTDAgMjEuNTg2VjBoMjEuNTg2WiIvPjwvZGVmcz48dXNlIHhsaW5rOmhyZWY9IiNhIiBmaWxsPSIjODg4IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)",opacity:.2};function u5(e){switch(e){case"fit":return"contain";case"stretch":return"fill";default:return"cover"}}function wR(e,t){let n=e??"center",r=t??"center";return n==="center"&&r==="center"?"center":n+" "+r}function Ag(e){return{display:"block",width:"100%",height:"100%",borderRadius:"inherit",objectPosition:wR(e.positionX,e.positionY),objectFit:u5(e.fit)}}function f5({image:e,containerSize:t,nodeId:n,alt:r,draggable:i,syncDecoding:o}){let s=yt.useImageSource(e,t,n),a=Ag(e),l=w.useRef(null);return k("img",{ref:l,decoding:o?"sync":"async",fetchpriority:e.fetchPriority,loading:e.loading,sizes:e.sizes,srcSet:e.srcSet,src:s,alt:r??e.alt??"",style:a,draggable:i})}function d5({image:e,containerSize:t,nodeId:n}){let r=w.useRef(null),i=yt.useImageElement(e,t,n),o=Ag(e);return w.useLayoutEffect(()=>{let s=r.current;if(s!==null)return s.appendChild(i),()=>{s.removeChild(i)}},[i]),Object.assign(i.style,o),k("div",{ref:r,style:{display:"contents",borderRadius:"inherit"}})}function h5({nodeId:e,image:t,containerSize:n}){let r=w.useRef(null),i=yt.useImageSource(t,n,e);return w.useLayoutEffect(()=>{let o=r.current;if(o===null)return;let s=Ag(t);yt.renderOptimizedCanvasImage(o,i,s,e)},[e,t,i]),k("div",{ref:r,style:{display:"contents",borderRadius:"inherit"}})}function SR({layoutId:e,image:t,...n}){e&&(e=e+"-background");let r={...rk,...c5},i=null;if(ue(t.src))if(t.fit==="tile"&&t.pixelWidth&&t.pixelHeight){let o=Ae(t.backgroundSize)?t.backgroundSize:1,s={width:Math.round(o*t.pixelWidth),height:Math.round(o*t.pixelHeight)},a=yt.useImageSource(t,s);r.backgroundImage=`url(${a})`,r.backgroundRepeat="repeat",r.backgroundPosition=wR(t.positionX,t.positionY),r.opacity=void 0,r.border=0,r.backgroundSize=`${(o*(t.pixelWidth/2)).toFixed(2)}px auto`,i=null}else he.current()!==he.canvas?i=k(f5,{image:t,syncDecoding:he.current()===he.export,...n}):yt.canRenderOptimizedCanvasImage(yt.useImageSource(t))?i=k(h5,{image:t,...n}):i=k(d5,{image:t,...n});return k(Xe.div,{layoutId:e,style:i?rk:r,"data-framer-background-image-wrapper":!0,children:i})}function p5(e,t,n=!0){let{borderWidth:r,borderStyle:i,borderColor:o}=e;if(!r)return;let s,a,l,c;if(typeof r=="number"?s=a=l=c=r:(s=r.top||0,a=r.bottom||0,l=r.left||0,c=r.right||0),!(s===0&&a===0&&l===0&&c===0)){if(n&&s===a&&s===l&&s===c){t.border=`${s}px ${i} ${o}`;return}t.borderStyle=e.borderStyle,t.borderColor=e.borderColor,t.borderTopWidth=`${s}px`,t.borderBottomWidth=`${a}px`,t.borderLeftWidth=`${l}px`,t.borderRightWidth=`${c}px`}}function m5(e){let t=e.layoutId?`${e.layoutId}-border`:void 0;if(!e.borderWidth)return null;let n={position:"absolute",left:0,right:0,top:0,bottom:0,borderRadius:"inherit",pointerEvents:"none"};return e.border?(n.border=e.border,k(Xe.div,{style:n})):(p5(e,n,!1),k(Xe.div,{"data-frame-border":!0,style:n,layoutId:t}))}var g5="src",io={isImageObject:function(e){return!e||typeof e=="string"?!1:g5 in e}};function v5(e,t){let{_forwardedOverrideId:n,_forwardedOverrides:r,id:i}=t,o=n??i,s=r&&o?r[o]:void 0;return s&&typeof s=="string"&&(e={...e,src:s}),e}function y5(e){let{background:t,image:n}=e;if(n!==void 0&&t&&!io.isImageObject(t))return;let r=null;if(ue(n)?r={alt:"",src:n}:r=vt.get(t,null),!!io.isImageObject(r))return v5(r,e)}function dl(e){return e&&e!=="search"&&e!=="slot"&&e!=="template"?Xe[e]:Xe.div}var rn=typeof ze<"u"?ze:void 0,gr=()=>typeof document=="object";var b5=()=>rn&&/Chrome/u.test(rn.userAgent)&&/Google Inc/u.test(rn.vendor)&&!k5(),x5=()=>rn&&/Safari/u.test(rn.userAgent)&&/Apple Computer/u.test(rn.vendor),w5=()=>rn&&/Firefox\/\d+\.\d+$/u.test(rn.userAgent),S5=()=>rn&&/FramerX/u.test(rn.userAgent),k5=()=>rn&&/Edg\//u.test(rn.userAgent);var C5=()=>rn&&/iPhone|iPod|iPad/iu.test(rn.platform);var Dg=()=>!1;var R5=b5();function T5(e,t){e["data-framer-layout-hint-center-x"]=t===!0||t==="x"?!0:void 0,e["data-framer-layout-hint-center-y"]=t===!0||t==="y"?!0:void 0}function kR(e){let t={};return!e||!R5||he.current()!==he.canvas||T5(t,e),t}function zg(e){return e.replace(/^id_/u,"").replace(/\\/gu,"")}function E5(e,t){if(!t&&(t=e.children,!t))return{props:e,children:t};let n=e._forwardedOverrides;return n?(t=w.Children.map(t,r=>w.isValidElement(r)?w.cloneElement(r,{_forwardedOverrides:n}):r),{props:e,children:t}):{props:e,children:t}}function ff(e){return(t,n)=>e===!0?`translate(-50%, -50%) ${n}`:e==="x"?`translateX(-50%) ${n}`:e==="y"?`translateY(-50%) ${n}`:n||"none"}function hl(e,{specificLayoutId:t,postfix:n}={}){let{name:r,layoutIdKey:i,duplicatedFrom:o,__fromCodeComponentNode:s=!1,drag:a}=e,{getLayoutId:l,enabled:c}=z(xs);return re(()=>{if(!c)return e.layoutId;let u=t||e.layoutId;if(!u&&(a||!i||s))return;let f=u||l({id:i,name:r,duplicatedFrom:o});if(f)return n?`${f}-${n}`:f},[c])}var sg=typeof document<"u"?He:$,fo=w.createContext(!1);function df(){let[e,t]=w.useState(0);return w.useCallback(()=>t(n=>n+1),[])}var F5=bV().ResizeObserver;var P5=class{constructor(){E(this,"sharedResizeObserver"),E(this,"callbacks",new WeakMap);let e=xe.ResizeObserver??F5;this.sharedResizeObserver=new e(this.updateResizedElements.bind(this))}updateResizedElements(e){for(let t of e){let n=this.callbacks.get(t.target);n&&n(t.contentRect)}}observeElementWithCallback(e,t){this.sharedResizeObserver.observe(e),this.callbacks.set(e,t)}unobserve(e){this.sharedResizeObserver.unobserve(e),this.callbacks.delete(e)}},Fu=gr()?new P5:void 0;function I5(e){let t=df();$(()=>{let n=e?.current;if(n)return Fu?.observeElementWithCallback(e.current,t),()=>{Fu?.unobserve(n)}},[e,t])}var _5="data-framer-size-compatibility-wrapper";function O5(e){return[...e.firstElementChild&&e.firstElementChild.hasAttribute(_5)?e.firstElementChild.children:e.children].filter(CR).map(RR)}function CR(e){return e instanceof HTMLBaseElement||e instanceof HTMLHeadElement||e instanceof HTMLLinkElement||e instanceof HTMLMetaElement||e instanceof HTMLScriptElement||e instanceof HTMLStyleElement||e instanceof HTMLTitleElement?!1:e instanceof HTMLElement||e instanceof SVGElement}function RR(e){if(!(e instanceof HTMLElement)||e.children.length===0||e.style.display!=="contents")return e;let t=[...e.children].find(CR);return t?RR(t):e}function hf(e,t,n=()=>[],r={}){let{id:i,visible:o,_needsMeasure:s}=e,{skipHook:a=!1}=r,l=!!z(fo),c=he.current()===he.canvas;sg(()=>{!c||l||a||t.current&&i&&o&&s&&yt.queueMeasureRequest(zg(i),t.current,n(t.current))})}function M5(e){let t=e.closest("[data-framer-component-container]");t&&yt.queueMeasureRequest(zg(t.id),t,O5(t))}var TR="0.000001px",Im=` translateZ(${TR})`,ER=S5()||x5()||Dg();function L5(e){e.willChange="transform";let t=he.current()===he.canvas;ER&&t&&(e.translateZ=TR)}function Bg(e){e.willChange="transform",V5(e,!0)}function V5(e,t){let n=he.current()===he.canvas;if(!ER||!n)return;let r=ue(e.transform)&&e.transform||"";t?r.includes(Im)||(e.transform=r+Im):e.transform=r.replace(Im,"")}function FR(e,t,n,r=!0){if(!e)return;let i=ft(e.style),o=n||i[t],s=()=>{i[t]=o};i[t]=null,r?Promise.resolve().then(s):setTimeout(s,0)}var Du=(()=>{class e extends Fe{constructor(){super(...arguments),E(this,"layerElement",null),E(this,"setLayerElement",n=>{this.layerElement=n})}static applyWillChange(n,r,i){n.willChangeTransform&&(i?L5(r):Bg(r))}shouldComponentUpdate(n,r){return n._needsMeasure||this.state!==r||!sf(this.props,n)}componentDidUpdate(n){ft(this.props).clip&&ft(this.props).radius===0&&ft(n).radius!==0&&FR(this.layerElement,"overflow","hidden",!1)}}return E(e,"defaultProps",{}),e})();function A5(e,t){if(e.size<t)return;let r=Math.round(Math.random());for(let i of e.keys())(++r&1)!==1&&e.delete(i)}function D5(e,t,n,r){let i=t.get(n);if(i)return i;A5(t,e);let o=r(n);return t.set(n,o),o}var PR=e=>{let t=0,n,r;if(e.length===0)return t;for(n=0;n<e.length;n++)r=e.charCodeAt(n),t=(t<<5)-t+r,t|=0;return t},$g={hueRotate:(e,t)=>X.toHslString(X.hueRotate(X(e),t)),setAlpha:(e,t)=>X.toRgbString(X.alpha(X(e),t)),getAlpha:e=>{let t=Mg(e);return t?t.a:1},multiplyAlpha:(e,t)=>X.toRgbString(X.multiplyAlpha(X(e),t)),toHexValue:e=>X.toHex(X(e)).toUpperCase(),toHex:e=>X.toHexString(X(e)).toUpperCase(),toRgb:e=>X.toRgb(X(e)),toRgbString:e=>X.toRgbString(X(e)),toHSV:e=>X.toHsv(X(e)),toHSL:e=>X.toHsl(X(e)),toHslString:e=>X.toHslString(X(e)),toHsvString:e=>X.toHsvString(X(e)),hsvToHSLString:e=>X.toHslString(X(ja(e.h,e.s,e.v,e.a))),hsvToHexValue:e=>X.toHex(X(ja(e.h,e.s,e.v,e.a))).toUpperCase(),hsvToHex:e=>X.toHexString(X(ja(e.h,e.s,e.v,e.a))).toUpperCase(),hsvToRgbString:e=>X.toRgbString(X(ja(e.h,e.s,e.v,e.a))),hsvToString:e=>ja(e.h,e.s,e.v),rgbaToString:e=>X.toRgbString(X(e)),rgbToHexValue:e=>X.toHex(X(e)),rgbToHexString:e=>X.toHexString(X(e)),hslToString:e=>X.toHslString(X(e)),hslToRgbString:e=>X.toRgbString(X(e)),toColorPickerSquare:e=>X.toRgbString(X({h:e,s:1,l:.5,a:1})),isValid:e=>X(e).isValid!==!1,equals:(e,t)=>X.isP3String(e)||X.isP3String(t)?e===t:(typeof e=="string"&&(e=X(e)),typeof t=="string"&&(t=X(t)),X.equal(e,t)),toHexOrRgbaString:e=>{let t=X(e);return t.a!==1?X.toRgbString(t):X.toHexString(t)},toFormatString:e=>X.isP3String(e)?e:X.toRgbString(X(e))},z5=/var\(.+\)/u,B5=new Map;function $5(e,t){let n=[e,t];return z5.test(e)?e:D5(1e3,B5,n,()=>$g.multiplyAlpha(e,t))}function pl(e,t=1){let n;return"stops"in e?n=e.stops:n=[{value:e.start,position:0},{value:e.end,position:1}],t===1?n:n.map(r=>({...r,value:$5(r.value,t)}))}function IR(e,t){let n=0;return pl(e,t).forEach(r=>{n^=PR(r.value)^r.position}),n}var N5=["stops"];function _R(e){return e&&N5.every(t=>t in e)}var j5=["start","end"];function OR(e){return e&&j5.every(t=>t in e)}var H5=["angle","alpha"],nl={isLinearGradient:e=>ge(e)&&H5.every(t=>t in e)&&(OR(e)||_R(e)),hash:e=>e.angle^IR(e,e.alpha),toCSS:(e,t,n)=>{let r=pl(e,e.alpha),i=t!==void 0?t:e.angle,o=r.map(s=>`${n?.(s.value)??s.value} ${s.position*100}%`);return`linear-gradient(${i}deg, ${o.join(", ")})`}},W5=["widthFactor","heightFactor","centerAnchorX","centerAnchorY","alpha"],rl={isRadialGradient:e=>ge(e)&&W5.every(t=>t in e)&&(OR(e)||_R(e)),hash:e=>e.centerAnchorX^e.centerAnchorY^e.widthFactor^e.heightFactor^IR(e,e.alpha),toCSS:(e,t)=>{let{alpha:n,widthFactor:r,heightFactor:i,centerAnchorX:o,centerAnchorY:s}=e,a=pl(e,n),l=a.map((c,u)=>{let f=a[u+1],d=c.position===1&&f?.position===1?c.position-1e-4:c.position;return`${t?.(c.value)??c.value} ${d*100}%`});return`radial-gradient(${r*100}% ${i*100}% at ${o*100}% ${s*100}%, ${l.join(", ")})`}};function U5({background:e,backgroundColor:t},n){t?typeof t=="string"||Y1(t)?n.backgroundColor=t:X.isColorObject(e)&&(n.backgroundColor=e.initialValue||X.toRgbString(e)):e&&(e=vt.get(e,null),typeof e=="string"||Y1(e)?n.background=e:nl.isLinearGradient(e)?n.background=nl.toCSS(e):rl.isRadialGradient(e)?n.background=rl.toCSS(e):X.isColorObject(e)&&(n.backgroundColor=e.initialValue||X.toRgbString(e)))}function Ee(e,t,n,r){if(r===void 0&&(r=t),e[t]!==void 0){n[r]=e[t];return}}function G5(e){return e?e.left!==void 0&&e.right!==void 0:!1}function q5(e){return e?e.top!==void 0&&e.bottom!==void 0:!1}function X5(e){if(!e)return{};let t={};return e.preserve3d===!0?t.transformStyle="preserve-3d":e.preserve3d===!1&&(t.transformStyle="flat"),e.backfaceVisible===!0?t.backfaceVisibility="visible":e.backfaceVisible===!1&&(t.backfaceVisibility="hidden"),t.backfaceVisibility&&(t.WebkitBackfaceVisibility=t.backfaceVisibility),e.perspective!==void 0&&(t.perspective=t.WebkitPerspective=e.perspective),e.__fromCanvasComponent||(e.center===!0?(t.left="50%",t.top="50%"):e.center==="x"?t.left="50%":e.center==="y"&&(t.top="50%")),Ee(e,"size",t),Ee(e,"width",t),Ee(e,"height",t),Ee(e,"minWidth",t),Ee(e,"minHeight",t),Ee(e,"top",t),Ee(e,"right",t),Ee(e,"bottom",t),Ee(e,"left",t),Ee(e,"position",t),Ee(e,"overflow",t),Ee(e,"opacity",t),(!e._border||!e._border.borderWidth)&&Ee(e,"border",t),Ee(e,"borderRadius",t),Ee(e,"radius",t,"borderRadius"),Ee(e,"color",t),Ee(e,"shadow",t,"boxShadow"),Ee(e,"x",t),Ee(e,"y",t),Ee(e,"z",t),Ee(e,"rotate",t),Ee(e,"rotateX",t),Ee(e,"rotateY",t),Ee(e,"rotateZ",t),Ee(e,"scale",t),Ee(e,"scaleX",t),Ee(e,"scaleY",t),Ee(e,"skew",t),Ee(e,"skewX",t),Ee(e,"skewY",t),Ee(e,"originX",t),Ee(e,"originY",t),Ee(e,"originZ",t),U5(e,t),t}function Y5(e){for(let t in e)if(t==="drag"||t.startsWith("while")||typeof ft(e)[t]=="function"&&t.startsWith("on")&&!t.includes("Animation"))return!0;return!1}var ik=["onClick","onDoubleClick","onMouse","onMouseDown","onMouseUp","onTapDown","onTap","onTapUp","onPointer","onPointerDown","onPointerUp","onTouch","onTouchDown","onTouchUp"],K5=new Set([...ik,...ik.map(e=>`${e}Capture`)]);function Q5(e){if(e.drag)return"grab";for(let t in e)if(K5.has(t))return"pointer"}var _m="overflow";function Z5(e){return ok(e)?!0:e.style?!!ok(e.style):!1}function ok(e){return _m in e&&(e[_m]==="scroll"||e[_m]==="auto")}function MR(e){let{left:t,top:n,bottom:r,right:i,width:o,height:s,center:a,_constraints:l,size:c,widthType:u,heightType:f,positionFixed:d,positionAbsolute:h}=e,p=Mt(e.minWidth),y=Mt(e.minHeight),x=Mt(e.maxWidth),m=Mt(e.maxHeight);return{top:Mt(n),left:Mt(t),bottom:Mt(r),right:Mt(i),width:Mt(o),height:Mt(s),size:Mt(c),center:a,_constraints:l,widthType:u,heightType:f,positionFixed:d,positionAbsolute:h,minWidth:p,minHeight:y,maxWidth:x,maxHeight:m}}var sk={x:0,y:0,width:200,height:200};function J5(e){w.useInsertionEffect(()=>{ul()},[]);let t=!!z(fo),{style:n,_initialStyle:r,__fromCanvasComponent:i,size:o}=e,s=MR(e),a=HD(s),l={display:"block",flex:n?.flex??"0 0 auto",userSelect:he.current()!==he.preview?"none":void 0};e.__fromCanvasComponent||(l.backgroundColor=e.background===void 0?"rgba(0, 170, 255, 0.3)":void 0);let c=!Y5(e)&&!e.__fromCanvasComponent&&!Z5(e),u=e.style?!("pointerEvents"in e.style):!0;c&&u&&(l.pointerEvents="none");let d=w.Children.count(e.children)>0&&w.Children.toArray(e.children).every(m=>typeof m=="string"||typeof m=="number")&&{display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center"},h=X5(e);o===void 0&&!i&&(G5(h)||(l.width=sk.width),q5(h)||(l.height=sk.height)),s.minWidth!==void 0&&(l.minWidth=s.minWidth),s.minHeight!==void 0&&(l.minHeight=s.minHeight);let p={};al(s)&&a&&!dR(e)&&(p={left:a.x,top:a.y,width:a.width,height:a.height,right:void 0,bottom:void 0}),Object.assign(l,d,r,h,p,n),Object.assign(l,{overflowX:l.overflowX??l.overflow,overflowY:l.overflowY??l.overflow,overflow:void 0}),Du.applyWillChange(e,l,!0);let y=l;l.transform||(y={x:0,y:0,...l});let x=fl();return e.positionSticky?(!x||t)&&(y.position="sticky",y.willChange="transform",y.zIndex=1,y.top=e.positionStickyTop,y.right=e.positionStickyRight,y.bottom=e.positionStickyBottom,y.left=e.positionStickyLeft):x&&(e.positionFixed||e.positionAbsolute)&&(y.position="absolute"),"rotate"in y&&y.rotate===void 0&&delete y.rotate,[y,a]}var e4=new Set(["width","height","opacity","overflow","radius","background","color","x","y","z","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","skew","skewX","skewY","originX","originY","originZ"]);function t4(e){let t={};for(let n in e)(Ro(n)||i5(n))&&!e4.has(n)?t[n]=ft(e)[n]:(n==="positionTransition"||n==="layoutTransition")&&(t.layout=!0,typeof ft(e)[n]!="boolean"&&!e.transition&&(t.transition=ft(e)[n]));return t}function n4(e){return"data-framer-name"in e}var r4=Oe(function(t,n){let{name:r,center:i,border:o,_border:s,__portal:a}=t,{props:l,children:c}=E5(t),u=t4(l),f=hl(t),d=Q5(t),h=V(null),p=n??h,y={"data-framer-component-type":t.componentType??"Frame","data-framer-cursor":d,"data-framer-highlight":d==="pointer"?!0:void 0,"data-layoutid":f,"data-framer-offset-parent-id":ft(t)["data-framer-offset-parent-id"]};!n4(t)&&r&&(ft(y)["data-framer-name"]=r);let[x,m]=J5(l),g=MR(l),v=dR(g);i&&!(m&&!v&&al(g))?(u.transformTemplate||(u.transformTemplate=ff(i)),Object.assign(y,kR(i))):u.transformTemplate||(u.transformTemplate=void 0),hf(t,p);let b=y5(t),C=!!z(fo),S=i4(l,g,m,C),R=jD(be(ht,{children:[b?k(SR,{alt:t.alt??"",image:b,containerSize:m??void 0,nodeId:t.id&&zg(t.id),layoutId:f}):null,c,k(m5,{...s,border:o,layoutId:f})]}),S),T=dl(t.as),{size:F,radius:P,shadow:B}=x;return F!==void 0&&(delete x.size,x.height===void 0&&(x.height=F),x.width===void 0&&(x.width=F)),P!==void 0&&(delete x.radius,x.borderRadius=P),B!==void 0&&(delete x.shadow,x.boxShadow=B),be(T,{...y,...u,layoutId:f,style:x,ref:p,children:[R,a]})}),zu=Oe(function(t,n){let{visible:r=!0}=t;return r?k(r4,{...t,ref:n}):null});function i4(e,t,n,r){if(r)return n?{width:n.width,height:n.height}:1;let{_usesDOMRect:i}=e,{widthType:o=0,heightType:s=0,width:a,height:l}=t;return n&&!i?n:o===0&&s===0&&typeof a=="number"&&typeof l=="number"?{width:a,height:l}:i||e.positionFixed||e.positionAbsolute?2:0}var Ng="__LAYOUT_TREE_ROOT",LR=w.createContext({schedulePromoteTree:()=>{},scheduleProjectionDidUpdate:()=>{},initLead:()=>{}}),o4=class extends Fe{constructor(){super(...arguments),E(this,"shouldAnimate",!1),E(this,"transition"),E(this,"lead"),E(this,"follow"),E(this,"scheduledPromotion",!1),E(this,"scheduledDidUpdate",!1),E(this,"scheduleProjectionDidUpdate",()=>{this.scheduledDidUpdate=!0}),E(this,"schedulePromoteTree",(e,t,n)=>{this.follow=this.lead,this.shouldAnimate=n,this.lead=e,this.transition=t,this.scheduledPromotion=!0}),E(this,"initLead",(e,t)=>{this.follow=this.lead,this.lead=e,this.follow&&t&&(this.follow.layoutMaybeMutated=!0)}),E(this,"sharedLayoutContext",{schedulePromoteTree:this.schedulePromoteTree,scheduleProjectionDidUpdate:this.scheduleProjectionDidUpdate,initLead:this.initLead})}getSnapshotBeforeUpdate(){var e;if(!this.scheduledPromotion||!this.lead||!this.follow)return null;let t=!!((e=this.lead)!=null&&e.layoutMaybeMutated)&&!this.shouldAnimate;return this.lead.projectionNodes.forEach(n=>{var r;n?.promote({needsReset:t,transition:this.shouldAnimate?this.transition:void 0,preserveFollowOpacity:n.options.layoutId===Ng&&!((r=this.follow)!=null&&r.isExiting)})}),this.shouldAnimate?this.follow.layoutMaybeMutated=!0:this.scheduleProjectionDidUpdate(),this.lead.layoutMaybeMutated=!1,this.transition=void 0,this.scheduledPromotion=!1,null}componentDidUpdate(){var e,t;if(!this.lead)return null;this.scheduledDidUpdate&&((t=(e=this.lead.rootProjectionNode)==null?void 0:e.root)==null||t.didUpdate(),this.scheduledDidUpdate=!1)}render(){return k(LR.Provider,{value:this.sharedLayoutContext,children:this.props.children})}},s4={width:"100%",height:"100%",backgroundColor:"none"};function a4(e){return k(Xe.div,{layoutId:Ng,style:s4,children:e.children})}function ak(e,t){on(e)?e(t):jg(e)&&(e.current=t)}function jg(e){return ge(e)&&"current"in e}function l4(e){return jg(e)&&e.current!==null}function c4(){let e=st(()=>new Set),t=st(()=>new Map);return st(()=>(n,r)=>({get current(){return n.current},set current(i){r&&r(i),n.current=i;let o=i===null;e.forEach(s=>{if(o&&t.has(s))return;let a=s(i);a&&t.set(s,a)}),o&&(t.forEach(s=>s()),t.clear())},observe(i,o=!1){e.has(i)||(e.add(i),!o&&n.current&&i(n.current))},unobserve(i){i&&e.delete(i)},cleanup(i){var o;return!i||!t.has(i)?!1:((o=t.get(i))==null||o(),!0)}}))}function Hg(e){let t=V(null),n=c4();return st(()=>jg(e)?n(e):on(e)?n(t,e):n(t))}function co(e,t,n){var r;let i=V(),o=V();if(re(()=>{o.current!==void 0&&(o.current=!0)},n??[{}]),!e)return;let s=o.current;if(s){o.current=!1,e.cleanup(i.current)||(r=i.current)==null||r.call(i,null);let a=e.current;a&&t?.(a)}i.current!==t&&(e.unobserve(i.current),i.current=t,e.observe(t,s),o.current===void 0&&(o.current=!1))}var u4=class{constructor(e){E(this,"sharedIntersectionObserver"),E(this,"callbacks",new WeakMap),this.sharedIntersectionObserver=new IntersectionObserver(this.intersectionObserverCallback.bind(this),e)}intersectionObserverCallback(e,t){for(let n of e){let r=this.callbacks.get(n.target);r&&r(n,t)}}observeElementWithCallback(e,t){this.sharedIntersectionObserver&&(this.sharedIntersectionObserver.observe(e),this.callbacks.set(e,t))}unobserve(e){this.sharedIntersectionObserver&&(this.sharedIntersectionObserver.unobserve(e),this.callbacks.delete(e))}get root(){var e;return(e=this.sharedIntersectionObserver)==null?void 0:e.root}},f4=ke(new Map);function d4(e,t,n){let r=st(()=>`${n.rootMargin}`),i=z(f4),{enabled:o,root:s,rootMargin:a,threshold:l}=n;co(e,c=>{if(!o||c===null)return;let u=i.get(r);return(!u||u.root!==s?.current)&&(u=new u4({root:s?.current,rootMargin:a,threshold:l}),i.set(r,u)),u.observeElementWithCallback(c,t),()=>{u?.unobserve(c)}},[o,t,s,a,l])}var VR=typeof IntersectionObserver>"u"?qu:d4,h4=new Array(100).fill(void 0).map((e,t)=>t*.01),p4=w.createContext(null);function AR(e,t,n){let r=w.useRef({isInView:!1,hasAnimatedOnce:!1}),{enabled:i,animateOnce:o,threshold:s,rootMargin:a="0px 0px 0px 0px"}=n,l=w.useCallback(c=>{let{isInView:u,hasAnimatedOnce:f}=r.current,d=g4(c,s?.y??0);if(d&&!u){if(o&&f)return;r.current.hasAnimatedOnce=!0,r.current.isInView=!0,t(!0);return}if(!d&&u){if(r.current.isInView=!1,o)return;t(!1);return}},[o,s?.y,t]);VR(e,l,{threshold:h4,rootMargin:a,enabled:i??!0})}function m4(e,t){return t.height===0?0:e.height/Math.min(t.height,xe.innerHeight)}function g4({boundingClientRect:e,intersectionRect:t,isIntersecting:n},r){return e.height===0?n:n&&m4(t,e)>=r}var EU=mo(nf(),1);var PU=mo(nf(),1);var lk=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),$r=Symbol("private"),Om=(()=>{function e(t={},n=!1,r=!0){let i={[$r]:{makeAnimatables:n,observeAnimatables:r,observers:new tR,reset(){for(let s in o)if(lk(o,s)){let a=lk(t,s)?ft(t)[s]:void 0;a!==void 0?o[s]=a:delete o[s]}},transactions:new Set}},o=new Proxy(i,y4);return Object.assign(o,t),o}return e.resetObject=t=>t[$r].reset(),e.addObserver=(t,n)=>t[$r].observers.add(n),e})(),v4=class{constructor(){E(this,"set",(e,t,n,r)=>{if(t===$r)return!1;let i=e[$r],o,s;if(Xn(n)?(o=n,s=o.get()):s=n,i.makeAnimatables&&typeof n!="function"&&typeof n!="object"&&!o&&(o=vt(n)),i.observeAnimatables&&o){let u=i.transactions;o.onUpdate({update:(f,d)=>{d&&u.add(d),i.observers.notify({value:r},d)},finish:f=>{u.delete(f)&&i.observers.finishTransaction(f)}})}let a=!1,l=!0,c=ft(e)[t];if(c!==void 0){Xn(c)?(l=c.get()!==s,c.set(s)):(l=c!==s,ft(e)[t]=s);let u=s!==null&&typeof s=="object";(Array.isArray(s)||u)&&(l=!0),a=!0}else o&&(n=o),a=Reflect.set(e,t,n);return l&&i.observers.notify({value:r}),a}),E(this,"get",(e,t,n)=>{if(t===$r)return ft(e)[t];let r=Reflect.get(e,t,n);return typeof r=="function"?r.bind(n):r})}deleteProperty(e,t){let n=Reflect.deleteProperty(e,t);return e[$r].observers.notify({value:e}),n}ownKeys(e){let t=Reflect.ownKeys(e),n=t.indexOf($r);return n!==-1&&t.splice(n,1),t}getOwnPropertyDescriptor(e,t){if(t!==$r)return Reflect.getOwnPropertyDescriptor(e,t)}},y4=new v4;var b4="opacity";function x4(e){return b4 in e}function w4(e,t){if(!x4(e))return;let n=vt.getNumber(e.opacity);n!==1&&(t.opacity=n)}function S4(e){let t=[];if(e&&e.length){let n=e.map(r=>`drop-shadow(${r.x}px ${r.y}px ${r.blur}px ${r.color})`);t.push(...n)}return t}function DR(e,t){if(!e.shadows||e.shadows.length===0)return;let n=e.shadows.map(r=>`${r.x}px ${r.y}px ${r.blur}px ${r.color}`).join(", ");n&&(t.textShadow=n)}function k4(e,t){let n=[];ce(e.brightness)&&n.push(`brightness(${e.brightness/100})`),ce(e.contrast)&&n.push(`contrast(${e.contrast/100})`),ce(e.grayscale)&&n.push(`grayscale(${e.grayscale/100})`),ce(e.hueRotate)&&n.push(`hue-rotate(${e.hueRotate}deg)`),ce(e.invert)&&n.push(`invert(${e.invert/100})`),ce(e.saturate)&&n.push(`saturate(${e.saturate/100})`),ce(e.sepia)&&n.push(`sepia(${e.sepia/100})`),ce(e.blur)&&n.push(`blur(${e.blur}px)`),e.dropShadows&&n.push(...S4(e.dropShadows)),n.length!==0&&(t.filter=t.WebkitFilter=n.join(" "))}function C4(e,t){ce(e.backgroundBlur)&&(t.backdropFilter=t.WebkitBackdropFilter=`blur(${e.backgroundBlur}px)`)}function Wg(e,t){C4(e,t),k4(e,t)}var R4=class extends Fe{constructor(){super(...arguments),E(this,"layoutMaybeMutated"),E(this,"projectionNodes",new Map),E(this,"rootProjectionNode"),E(this,"isExiting"),E(this,"shouldPreserveFollowOpacity",e=>e.options.layoutId===Ng&&!this.props.isExiting),E(this,"switchLayoutGroupContext",{register:e=>this.addChild(e),deregister:e=>this.removeChild(e),transition:this.props.isLead!==void 0&&this.props.animatesLayout?this.props.transition:void 0,shouldPreserveFollowOpacity:this.shouldPreserveFollowOpacity})}componentDidMount(){this.props.isLead&&this.props.sharedLayoutContext.initLead(this,!!this.props.animatesLayout)}shouldComponentUpdate(e){let{isLead:t,isExiting:n,isOverlayed:r,animatesLayout:i,transition:o,sharedLayoutContext:s}=e;if(this.isExiting=n,t===void 0)return!0;let a=!this.props.isLead&&!!t,l=this.props.isExiting&&!n,c=a||l,u=!!this.props.isLead&&!t,f=this.props.isOverlayed!==r;return(c||u)&&this.projectionNodes.forEach(d=>d?.willUpdate()),c?s.schedulePromoteTree(this,o,!!i):f&&s.scheduleProjectionDidUpdate(),!!c&&!!i}addChild(e){let t=e.options.layoutId;t&&(this.projectionNodes.set(t,e),this.setRootChild(e))}setRootChild(e){if(!this.rootProjectionNode)return this.rootProjectionNode=e;this.rootProjectionNode=this.rootProjectionNode.depth<e.depth?this.rootProjectionNode:e}removeChild(e){let t=e.options.layoutId;t&&this.projectionNodes.delete(t)}render(){return k(Ql.Provider,{value:this.switchLayoutGroupContext,children:this.props.children})}},T4=e=>{let t=w.useContext(LR);return k(R4,{...e,sharedLayoutContext:t})},E4=w.createContext(!0);function F4(){return new Map}function P4(){return st(F4)}var zR=ke({register:()=>{},deregister:()=>{}}),I4=({isCurrent:e,isOverlayed:t,children:n})=>{let r=P4(),i=G(a=>{if(r.has(a)){console.warn("NavigationTargetWrapper: already registered");return}r.set(a,void 0)},[r]),o=G(a=>{let l=r.get(a);l?.(),r.delete(a)},[r]),s=V({register:i,deregister:o}).current;return $(()=>(r.forEach((a,l)=>{let c=l(e,t);r.set(l,on(c)?c:void 0)}),()=>{r.forEach((a,l)=>{a&&(a(),r.set(l,void 0))})}),[e,t,r]),k(zR.Provider,{value:s,children:n})};function BR(e,t=[]){let{register:n,deregister:r}=z(zR);$(()=>{if(e)return n(e),()=>r(e)},[n,r,...t])}var Mm=w.memo(function({isLayeredContainer:t,isCurrent:n,isPrevious:r,isOverlayed:i=!1,visible:o,transitionProps:s,children:a,backdropColor:l,onTapBackdrop:c,backfaceVisible:u,exitBackfaceVisible:f,animation:d,exitAnimation:h,instant:p,initialProps:y,exitProps:x,position:m={top:0,right:0,bottom:0,left:0},withMagicMotion:g,index:v,areMagicMotionLayersPresent:b,id:C,isInitial:S}){let R=Xb(),T=z(Io),{persistLayoutIdCache:F}=z(xs),P=V({wasCurrent:void 0,wasPrevious:!1,wasBeingRemoved:!1,wasReset:!0,origins:ck({},y,s)}),B=V(null),H=T!==null&&!T.isPresent;n&&P.current.wasCurrent===void 0&&F(),$(()=>{if(t||!R)return;if(H){P.current={...P.current,wasBeingRemoved:H};return}let{wasPrevious:fe,wasCurrent:ie}=P.current,Ce=n&&!ie||!H&&P.current.wasBeingRemoved&&n,Pe=r&&!fe,Le=ck(P.current.origins,y,s),Ie=P.current.wasReset;Ce||Pe?(R.stop(),R.start({zIndex:v,...Le,...s}),Ie=!1):Ie===!1&&(R.stop(),R.set({zIndex:v,...oo,opacity:0}),Ie=!0),P.current={wasCurrent:!!n,wasPrevious:!!r,wasBeingRemoved:!1,wasReset:Ie,origins:Le}},[n,r,H]);let L=p?{type:!1}:"velocity"in d?{...d,velocity:0}:d,Y=p?{type:!1}:h||d,W={...m};(W.left===void 0||W.right===void 0)&&(W.width="auto"),(W.top===void 0||W.bottom===void 0)&&(W.height="auto");let U=(uk(s)||uk(y))&&(t||n||r)?1200:void 0,ee={...oo,...P.current.origins},ae=t?{initial:{...ee,...y},animate:{...ee,...s,transition:L},exit:{...ee,...x,transition:d}}:{animate:R,exit:{...ee,...x,transition:Y}},me=!(H||b===!1),K=!!n&&me;return be(zu,{"data-framer-component-type":"NavigationContainerWrapper",width:"100%",height:"100%",style:{position:"absolute",transformStyle:"flat",backgroundColor:"transparent",overflow:"hidden",zIndex:t||H||n&&g?v:void 0,pointerEvents:void 0,visibility:o?"visible":"hidden",perspective:U},children:[t&&k(zu,{width:"100%",height:"100%","data-framer-component-type":"NavigationContainerBackdrop",transition:d,initial:{opacity:p&&o?1:0},animate:{opacity:1},exit:{opacity:0},backgroundColor:l||"transparent",onTap:H?void 0:c}),k(zu,{...W,...ae,transition:{default:L,originX:{type:!1},originY:{type:!1},originZ:{type:!1}},backgroundColor:"transparent",backfaceVisible:H?f:u,"data-framer-component-type":"NavigationContainer","data-framer-is-current-navigation-target":!!n,style:{pointerEvents:void 0,opacity:n&&S||t||n&&g?1:0},"data-is-present":me?void 0:!1,ref:B,children:k(p4.Provider,{value:B,children:k(E4.Provider,{value:K,children:k(I4,{isCurrent:K,isOverlayed:i,children:k(T4,{isLead:n,animatesLayout:!!g,transition:L,isExiting:!me,isOverlayed:i,id:C,children:a})})})})})]})},_4);function _4(e,t){return!(t.isCurrent===void 0||e.isCurrent!==t.isCurrent||e.isPrevious!==t.isPrevious||t.isCurrent&&e.isOverlayed!==t.isOverlayed)}function ck(e,t,n){let r={...e};return t&&(ce(t.originX)&&(r.originX=t.originX),ce(t.originY)&&(r.originY=t.originY),ce(t.originZ)&&(r.originZ=t.originZ)),n&&(ce(n.originX)&&(r.originX=n.originX),ce(n.originY)&&(r.originY=n.originY),ce(n.originZ)&&(r.originZ=n.originZ)),r}function uk(e){var t,n,r;if(!e||!("rotateX"in e||"rotateY"in e||"z"in e))return!1;let o=e.rotateX!==0||e.rotateY!==0||e.z!==0,s=((t=e?.transition)==null?void 0:t.rotateX.from)!==0||((n=e?.transition)==null?void 0:n.rotateY.from)!==0||((r=e?.transition)==null?void 0:r.z.from)!==0;return o||s}var oo={x:0,y:0,z:0,rotate:0,rotateX:0,rotateY:0,rotateZ:0,scale:1,scaleX:1,scaleY:1,scaleZ:1,skew:0,skewX:0,skewY:0,originX:.5,originY:.5,originZ:0,opacity:1},O4=class{constructor(){E(this,"warning",()=>{vs("The Navigator API is only available inside of Framer: https://www.framer.com/")}),E(this,"goBack",()=>this.warning()),E(this,"instant",()=>this.warning()),E(this,"fade",()=>this.warning()),E(this,"push",()=>this.warning()),E(this,"modal",()=>this.warning()),E(this,"overlay",()=>this.warning()),E(this,"flip",()=>this.warning()),E(this,"customTransition",()=>this.warning()),E(this,"magicMotion",()=>this.warning())}},M4=new O4,L4=ke(M4),wt={Fade:{exit:{opacity:0},enter:{opacity:0}},PushLeft:{exit:{x:"-30%"},enter:{x:"100%"}},PushRight:{exit:{x:"30%"},enter:{x:"-100%"}},PushUp:{exit:{y:"-30%"},enter:{y:"100%"}},PushDown:{exit:{y:"30%"},enter:{y:"-100%"}},Instant:{animation:{type:!1},enter:{opacity:0}},Modal:{overCurrentContext:!0,goBackOnTapOutside:!0,position:{center:!0},enter:{opacity:0,scale:1.2}},OverlayLeft:{overCurrentContext:!0,goBackOnTapOutside:!0,position:{right:0,top:0,bottom:0},enter:{x:"100%"}},OverlayRight:{overCurrentContext:!0,goBackOnTapOutside:!0,position:{left:0,top:0,bottom:0},enter:{x:"-100%"}},OverlayUp:{overCurrentContext:!0,goBackOnTapOutside:!0,position:{bottom:0,left:0,right:0},enter:{y:"100%"}},OverlayDown:{overCurrentContext:!0,goBackOnTapOutside:!0,position:{top:0,left:0,right:0},enter:{y:"-100%"}},FlipLeft:{backfaceVisible:!1,exit:{rotateY:-180},enter:{rotateY:180}},FlipRight:{backfaceVisible:!1,exit:{rotateY:180},enter:{rotateY:-180}},FlipUp:{backfaceVisible:!1,exit:{rotateX:180},enter:{rotateX:-180}},FlipDown:{backfaceVisible:!1,exit:{rotateX:-180},enter:{rotateX:180}},MagicMotion:{withMagicMotion:!0}};function V4(e){switch(e&&e.appearsFrom?e.appearsFrom:"right"){case"right":return wt.PushLeft;case"left":return wt.PushRight;case"bottom":return wt.PushUp;case"top":return wt.PushDown}}function A4(e){switch(e&&e.appearsFrom?e.appearsFrom:"bottom"){case"right":return wt.OverlayLeft;case"left":return wt.OverlayRight;case"bottom":return wt.OverlayUp;case"top":return wt.OverlayDown}}function D4(e){switch(e&&e.appearsFrom?e.appearsFrom:"bottom"){case"right":return wt.FlipLeft;case"left":return wt.FlipRight;case"bottom":return wt.FlipUp;case"top":return wt.FlipDown}}var z4=()=>({current:-1,previous:-1,currentOverlay:-1,previousOverlay:-1,visualIndex:0,overlayItemId:0,historyItemId:0,history:[],overlayStack:[],containers:{},containerIndex:{},containerVisualIndex:{},containerIsRemoved:{},transitionForContainer:{},previousTransition:null});function fk(e,t){switch(t.type){case"addOverlay":return $4(e,t.transition,t.component);case"removeOverlay":return N4(e);case"add":return $R(e,t.key,t.transition,t.component);case"remove":return NR(e);case"update":return B4(e,t.key,t.component);case"back":return j4(e);case"forward":return H4(e);default:return}}function B4(e,t,n){return{...e,containers:{...e.containers,[t]:n}}}function $4(e,t,n){let r=e.overlayStack[e.currentOverlay];if(r&&r.component===n)return;let i=e.overlayItemId+1,o=[...e.overlayStack,{key:`stack-${i}`,component:n,transition:t}];return{...e,overlayStack:o,overlayItemId:i,currentOverlay:Math.max(0,Math.min(e.currentOverlay+1,o.length-1)),previousOverlay:e.currentOverlay}}function N4(e){return{...e,overlayStack:[],currentOverlay:-1,previousOverlay:e.currentOverlay}}function $R(e,t,n,r){e.containers[t]||(e.containers[t]=r),e.history=e.history.slice(0,e.current+1),e.visualIndex=Math.max(e.history.length,0);let i=e.history[e.history.length-1],o=i&&i.key===t;if(e.overlayStack=[],o&&e.currentOverlay>-1)return{...e,currentOverlay:-1,previousOverlay:e.currentOverlay};if(o)return;let s=e.containerVisualIndex[t],a=e.containerIsRemoved[t],l=i?.key&&n.withMagicMotion?q4(t,s,a,e.history):!0;e.history.push({key:t,transition:n,visualIndex:l?Math.max(e.visualIndex,0):e.containerVisualIndex[t]});let c=e.current+1,u=e.current;for(let p in e.containerIndex)e.containerIndex[p]===c&&(e.containerIndex[p]=G4(p,e.history));e.containerIndex[t]=c;let{containerVisualIndex:f,containerIsRemoved:d}=W4(e,t,l),h=jR(c,u,e.history,e.containerIndex,e.transitionForContainer);return{...e,current:c,previous:u,containerVisualIndex:f,containerIsRemoved:d,transitionForContainer:h,previousTransition:null,currentOverlay:-1,historyItemId:e.historyItemId+1,previousOverlay:e.currentOverlay}}function j4(e){let t={...e.containers},n=NR(e);if(n)return n.containers=t,n}function H4(e){let t=e.history[e.current+1];if(!t)return;let{key:n,transition:r,component:i}=t,o=[...e.history],s=$R(e,n,r,i);if(s)return s.history=o,s}function NR(e){let t=[...e.history.slice(0,e.current+1)];if(t.length===1)return;let n=t.pop();if(!n)return;let r=t[t.length-1];N(r,"The navigation history must have at least one component"),e.containerIndex[r.key]=t.length-1,t.every(d=>d.key!==n.key)&&delete e.containers[n.key];let o=e.current-1,s=e.current,{containerIsRemoved:a,containerVisualIndex:l,previousTransition:c,visualIndex:u}=U4(e,r,n),f=jR(o,s,e.history,e.containerIndex,e.transitionForContainer);return{...e,current:o,previous:s,containerIsRemoved:a,containerVisualIndex:l,previousTransition:c,visualIndex:u,transitionForContainer:f}}function W4(e,t,n){let r={containerVisualIndex:{...e.containerVisualIndex},containerIsRemoved:{...e.containerIsRemoved}};if(n)r.containerVisualIndex[t]=e.history.length-1,r.containerIsRemoved[t]=!1;else{let i=e.containerVisualIndex[t];for(let[o,s]of Object.entries(e.containerVisualIndex))i!==void 0&&s>i&&(r.containerIsRemoved[o]=!0)}return r}function U4(e,t,n){let r=[t.key,n.key],i=e.history[e.history.length-2],o=e.previousTransition===null?null:{...e.previousTransition},s={containerIsRemoved:{...e.containerIsRemoved},containerVisualIndex:{...e.containerVisualIndex},previousTransition:o,visualIndex:e.visualIndex};i&&r.push(i.key);let a=e.containerVisualIndex[t.key],l=e.containerVisualIndex[n.key],c=a!==void 0&&l!==void 0&&a<=l||t.visualIndex!==void 0&&t.visualIndex<e.history.length-1,u=t.visualIndex;return c?(s.containerIsRemoved[n.key]=!0,s.containerVisualIndex[t.key]=u!==void 0?u:e.history.length-1):(s.visualIndex=e.visualIndex+1,s.containerVisualIndex[t.key]=e.visualIndex+1),n.transition.withMagicMotion&&(s.previousTransition=n.transition||null),e.containerIsRemoved[t.key]=!1,s}function G4(e,t){var n;for(let r=t.length;r>t.length;r--)if(((n=t[r])==null?void 0:n.key)===e)return r;return-1}function jR(e,t,n,r,i){let o={...i};for(let[s,a]of Object.entries(r)){let l=X4(a,{current:e,previous:t,history:n});l&&(o[s]=l)}return o}function q4(e,t,n,r){return n||t===void 0?!0:t===0?!1:r.slice(t,r.length).findIndex(s=>s.key===e)>-1?!0:!(r.slice(0,t-1).findIndex(s=>s.key===e)>-1)}function X4(e,t){let{current:n,previous:r,history:i}=t;if(!(e!==n&&e!==r)){if(e===n&&n>r){let o=i[e];return Pu("enter",o?.transition.enter,o?.transition.animation)}if(e===r&&n>r){let o=i[e+1];return Pu("exit",o?.transition.exit,o?.transition.animation)}if(e===n&&n<r){let o=i[e+1];return Pu("enter",o?.transition.exit,o?.transition.animation)}if(e===r&&n<r){let o=i[e];return Pu("exit",o?.transition.enter,o?.transition.animation)}}}var Y4=so(oo);function Pu(e,t,n){let r={},i={};return Y4.forEach(o=>{r[o]=oo[o],i[o]={...n,from:oo[o]}}),t&&Object.keys(t).forEach(o=>{if(t[o]===void 0)return;let s=t[o],a=typeof t[o]=="string"?`${ft(oo)[o]}%`:ft(oo)[o];ft(r)[o]=e==="enter"?a:s,i[o]={...n,from:e==="enter"?s:a,velocity:0}}),{...r,transition:{...i}}}var K4=w.createContext(void 0);var HR=w.createContext(void 0),Q4=(()=>{var e,t,n,r,i,o,s;return t=class extends Fe{constructor(a){var l;super(a),Ln(this,n),Ln(this,e,null),E(this,"state",z4()),Ln(this,o,p=>{if(!this.props.enabled&&this.state.history.length>0)return;let y=fk(this.state,p);if(!y)return;let{skipLayoutAnimation:x}=this.props,m=y.history[y.current],g=p.type==="add"&&p.transition.withMagicMotion||p.type==="forward"&&m?.transition.withMagicMotion||p.type==="remove"&&!!y.previousTransition,v=()=>{var b;this.setState(y),m?.key&&((b=this.context)==null||b.call(this,m.key))};x&&!g?x(v):v()}),E(this,"goBack",()=>{var p;if(!Yt(this,n,i).call(this))return wf(this,e,((p=globalThis.event)==null?void 0:p.timeStamp)||null),this.state.currentOverlay!==-1?ye(this,o).call(this,{type:"removeOverlay"}):ye(this,o).call(this,{type:"remove"})});let c=this.props.children;if(!c||!Za(c)||!Qa(c))return;let u={...wt.Instant},d={type:"add",key:((l=c.key)==null?void 0:l.toString())||`stack-${this.state.historyItemId+1}`,transition:u,component:c},h=fk(this.state,d);h&&(this.state=h)}componentDidMount(){var a;let l=this.state.history[this.state.current];l&&((a=this.context)==null||a.call(this,l.key))}UNSAFE_componentWillReceiveProps(a){var l;let c=a.children;if(!Za(c)||!Qa(c))return;let u=(l=c.key)==null?void 0:l.toString();u&&(this.state.history.length===0?Yt(this,n,s).call(this,c,wt.Instant):ye(this,o).call(this,{type:"update",key:u,component:c}))}componentWillUnmount(){var a,l;(l=(a=this.props).resetProjection)==null||l.call(a)}instant(a){Yt(this,n,s).call(this,a,wt.Instant,void 0)}fade(a,l){Yt(this,n,s).call(this,a,wt.Fade,l)}push(a,l){Yt(this,n,s).call(this,a,V4(l),l)}modal(a,l){Yt(this,n,s).call(this,a,wt.Modal,l)}overlay(a,l){Yt(this,n,s).call(this,a,A4(l),l)}flip(a,l){Yt(this,n,s).call(this,a,D4(l),l)}magicMotion(a,l){Yt(this,n,s).call(this,a,wt.MagicMotion,l)}customTransition(a,l){Yt(this,n,s).call(this,a,l)}render(){var a,l,c,u,f;let d=Yt(this,n,r).call(this,{overCurrentContext:!1}),h=Yt(this,n,r).call(this,{overCurrentContext:!0}),p=Z4(h),y=h.current>-1,x=this.state.history.length===1,m=[];for(let[v,b]of Object.entries(this.state.containers)){let C=this.state.containerIndex[v];N(C!==void 0,"Container's index must be registered");let S=this.state.containerVisualIndex[v];N(S!==void 0,"Container's visual index must be registered");let R=this.state.containerIsRemoved[v],T=this.state.history[C],F=this.state.transitionForContainer[v],P=C===this.state.current,B=C===this.state.previous,H=P?!1:R,L=((a=T?.transition)==null?void 0:a.withMagicMotion)||P&&!!this.state.previousTransition;m.push(k(Mm,{id:v,index:S,isInitial:x,isCurrent:P,isPrevious:B,isOverlayed:y,visible:P||B,position:(l=T?.transition)==null?void 0:l.position,instant:hk(C,d),transitionProps:F,animation:dk(C,d),backfaceVisible:oz(C,d),exitAnimation:(c=T?.transition)==null?void 0:c.animation,exitBackfaceVisible:(u=T?.transition)==null?void 0:u.backfaceVisible,exitProps:(f=T?.transition)==null?void 0:f.enter,withMagicMotion:L,areMagicMotionLayersPresent:H?!1:void 0,children:k(a4,{children:pk({component:b,transition:T?.transition})})},v))}let g=this.state.overlayStack.map((v,b)=>k(Mm,{isLayeredContainer:!0,isCurrent:b===this.state.currentOverlay,position:v.transition.position,initialProps:iz(b,h),transitionProps:sz(b,h),instant:hk(b,h,!0),animation:dk(b,h),exitProps:v.transition.enter,visible:az(b,h),backdropColor:nz(v.transition),backfaceVisible:rz(b,h),onTapBackdrop:lz(v.transition,this.goBack),index:this.state.current+1+b,children:pk({component:v.component,transition:v.transition})},v.key));return k(zu,{"data-framer-component-type":"NavigationRoot",top:0,left:0,width:"100%",height:"100%",position:"relative",style:{overflow:"hidden",backgroundColor:"unset",pointerEvents:void 0,...this.props.style},children:k(L4.Provider,{value:this,children:be(HR.Provider,{value:x,children:[k(Mm,{isLayeredContainer:!0,position:void 0,initialProps:{},instant:!1,transitionProps:J4(p),animation:ez(p),backfaceVisible:tz(p),visible:!0,backdropColor:void 0,onTapBackdrop:void 0,index:0,children:k(yD,{children:k(o4,{children:k(Qd,{presenceAffectsLayout:!1,children:m})})})}),k(Qd,{children:g})]})})})}},e=new WeakMap,n=new WeakSet,r=function(a){let{current:l,previous:c,currentOverlay:u,previousOverlay:f}=this.state;return a.overCurrentContext?{current:u,previous:f,history:this.state.overlayStack}:{current:l,previous:c,history:this.state.history}},i=function(){return globalThis.event?ye(this,e)===globalThis.event.timeStamp:!1},o=new WeakMap,s=function(a,l,c){var u,f;if(Yt(this,n,i).call(this)||(wf(this,e,((u=globalThis.event)==null?void 0:u.timeStamp)||null),!a||!Za(a)||!Qa(a)))return;let d={...l,...c};if(!!d.overCurrentContext)return ye(this,o).call(this,{type:"addOverlay",transition:d,component:a});let p=((f=a.key)==null?void 0:f.toString())||`stack-${this.state.historyItemId+1}`;ye(this,o).call(this,{type:"add",key:p,transition:d,component:a})},E(t,"defaultProps",{enabled:!0}),E(t,"contextType",K4),t})(),WR={stiffness:500,damping:50,restDelta:1,type:"spring"};function Z4(e){let t,n;return e.current!==-1?t=e.history[e.current]:n=e.history[e.previous],{currentOverlayItem:t,previousOverlayItem:n}}function J4({currentOverlayItem:e}){return e&&e.transition.exit}function ez({currentOverlayItem:e,previousOverlayItem:t}){return e&&e.transition.animation?e.transition.animation:t&&t.transition.animation?t.transition.animation:WR}function tz({currentOverlayItem:e,previousOverlayItem:t}){return e?e.transition.backfaceVisible:t&&t.transition.backfaceVisible}function nz(e){if(e.backdropColor)return e.backdropColor;if(e.overCurrentContext)return"rgba(4,4,15,.4)"}function rz(e,t){let{current:n,history:r}=t;if(e===n){let i=r[e];return i&&i.transition?i.transition.backfaceVisible:!0}else if(e<n){let i=r[e+1];return i&&i.transition?i.transition.backfaceVisible:!0}else{let i=r[e];return i&&i.transition?i.transition.backfaceVisible:!0}}function iz(e,t){let n=t.history[e];if(n)return n.transition.enter}function oz(e,t){var n,r,i,o;let{current:s,previous:a,history:l}=t;return e===a&&s>a||e===s&&s<a?(r=(n=l[e+1])==null?void 0:n.transition)==null?void 0:r.backfaceVisible:(o=(i=l[e])==null?void 0:i.transition)==null?void 0:o.backfaceVisible}function sz(e,t){let{current:n,history:r}=t;if(e!==n)if(e<n){let i=r[e+1];if(i&&i.transition)return i.transition.exit}else{let i=r[e];if(i&&i.transition)return i.transition.enter}}function dk(e,t){let{current:n,previous:r,history:i}=t,o=r>n?r:n;if(e<o){let s=i[e+1];if(s&&s.transition.animation)return s.transition.animation}else if(e!==o){let s=i[e];if(s&&s.transition.animation)return s.transition.animation}else{let s=i[e];if(s?.transition.animation)return s.transition.animation}return WR}function hk(e,t,n){let{current:r,previous:i,history:o}=t;return!!(n&&o.length>1||e!==i&&e!==r||r===i)}function az(e,t){let{current:n,previous:r}=t;return e>n&&e>r?!1:e===n}function pk(e){return w.Children.map(e.component,n=>{var r;if(!Za(n)||!Qa(n)||!n.props)return n;let i={style:n.props.style??{}},o=(r=e?.transition)==null?void 0:r.position,s=!o||o.left!==void 0&&o.right!==void 0,a=!o||o.top!==void 0&&o.bottom!==void 0,l="style"in n.props?ge(n.props.style):!0;return s&&("width"in n.props&&(i.width="100%"),l&&(i.style.width="100%")),a&&("height"in n.props&&(i.height="100%"),l&&(i.style.height="100%")),w.cloneElement(n,i)})}function lz(e,t){if(e.goBackOnTapOutside!==!1)return t}function cz(e){let t=Kb(),n=rh();return w.useInsertionEffect(()=>{ul()},[]),k(Q4,{...e,resetProjection:t,skipLayoutAnimation:n,children:e.children})}var UU=mo(nf(),1);function uz(e,t){let n,r=(...o)=>{xe.clearTimeout(n),n=xe.setTimeout(e,t,...o)},i=()=>{xe.clearTimeout(n)};return r.cancel=i,r}function Fi(...e){return e.filter(Boolean).join(" ")}var fz=(()=>{function e(t={}){let n=Om(t,!1,!1);return e.addData(n),n}return e._stores=[],e.addData=t=>{e._stores.push(t)},e.reset=()=>{e._stores.forEach(t=>Om.resetObject(t))},e.addObserver=(t,n)=>Om.addObserver(t,n),e})(),Lm=fz;var dz={update:0},UR=w.createContext({update:NaN});function w7(){let e=w.useContext(UR);return!Number.isNaN(e.update)}var hz=class extends Fe{constructor(){super(...arguments),E(this,"observers",[]),E(this,"state",dz),E(this,"taskAdded",!1),E(this,"frameTask",()=>{this.setState({update:this.state.update+1}),this.taskAdded=!1}),E(this,"observer",()=>{this.taskAdded||(this.taskAdded=!0,sR.addFrameTask(this.frameTask))})}componentWillUnmount(){this.observers.map(e=>e()),Lm.reset()}render(){let{children:e}=this.props;return this.observers.map(t=>t()),this.observers=[],Lm._stores.forEach(t=>{let n=Lm.addObserver(t,this.observer);this.observers.push(n)}),k(UR.Provider,{value:{...this.state},children:e})}},S7=mo(nf(),1);var GR="__framer__",pz=GR.length;function mz(e,t){let n={},r={};for(let i in e){let o=qR(i);if(o&&t.has(o)){n[o]=e[i];continue}r[i]=e[i]}return[n,r]}function qR(e){if(e.startsWith(GR))return e.substr(pz)}var XR=w.createContext(void 0);function gz(e,t,n){let r=cn.map(e,i=>_t(i)?wr(i,t):i);return n?r:k(ht,{children:r})}function pf(e){let t=st(()=>vz(e));return t.useSetup(e),t.cloneAsElement}function vz(e){let t={forwardedRef:e,childRef:null,ref:null};t.ref=mk(t);let n=(s,a)=>{if(!t.forwardedRef&&t.forwardedRef===s){t.ref=a;return}let l=!1;t.childRef!==a&&(t.childRef=a,l=!0),t.forwardedRef!==s&&(t.forwardedRef=s,l=!0),l&&(t.ref=mk(t))},r=!1;function i(s,a){if(r)throw new ReferenceError("useCloneChildrenWithPropsAndRef: You should not call cloneChildrenWithPropsAndRef more than once during the render cycle.");return r=!0,cn.count(s)>1&&e&&(t.forwardedRef=void 0,t.ref=t.childRef),cn.map(s,l=>{if(_t(l)){let c="ref"in l?l.ref:void 0;n(t.forwardedRef,c);let u=on(a)?a(l.props):a;return wr(l,t.ref!==c?{...u,ref:t.ref}:u)}return l})}let o=function(a,l){return k(ht,{children:i(a,l)})};return o.cloneAsArray=i,{useSetup:s=>{r=!1,n(s,t.childRef)},cloneAsElement:o}}function mk(e){if(!e.forwardedRef)return e.childRef;let{forwardedRef:t,childRef:n}=e;return r=>{ak(n,r),ak(t,r)}}var yz=w.createContext(void 0),bz="style[data-framer-css-ssr-minified]",xz=(()=>{var e;if(!gr())return new Set;let t=(e=document.querySelector(bz))==null?void 0:e.getAttribute("data-framer-components");return t?new Set(t.split(" ")):new Set})(),wz="data-framer-css-ssr",ml=(e,t,n)=>w.forwardRef((r,i)=>{let{sheet:o,cache:s}=w.useContext(yz)??{},a=n;if(!gr()){on(t)&&(t=t(he.current()));let l=Array.isArray(t)?t.join(`
`):t;return be(ht,{children:[k("style",{[wz]:!0,"data-framer-component":a,dangerouslySetInnerHTML:{__html:l}}),k(e,{...r,ref:i})]})}return ct(()=>{if(a&&xz.has(a))return;(on(t)?t(he.current()):Array.isArray(t)?t:t.split(`
`)).forEach(c=>c&&yR(c,o,s))},[]),k(e,{...r,ref:i})}),Ug=w.createContext(void 0),YR="ssr-variant";function gk(e,t,n,r,i,o,s,a){let l=w.Children.toArray(t),c=l[0];if(l.length!==1||!w.isValidElement(c))return console.warn("PropertyOverrides: expected exactly one React element for a child",t),s(t,n);let u=[],f=[];for(let[y]of Object.entries(r)){if(y===i)continue;let x=e[y];if(!x||!kz(c.props,x)){f.push(y);continue}let m=vk([y],o);m.length&&u.push({variants:m,propOverrides:x})}if(u.length===0)return s(c,n);let d=[i,...f],h=vk(d,o);h.length&&u.unshift({variants:h});let p=[];for(let{variants:y,propOverrides:x}of u){if(a&&!y.includes(a))continue;let m=y.join("+"),g=k(Ug.Provider,{value:{primaryVariantId:i,variants:new Set(y)},children:s(c,x?{...n,...x}:n)},m),v=Sz(y,o,r);v.length?(N(u.length>1,"Must branch out when there are hiddenClassNames"),g=k("div",{className:`${YR} ${v.join(" ")}`,children:g},m)):N(u.length===1,"Cannot branch out when hiddenClassNames is empty"),p.push(g)}return N(!a||p.length===1,"Must render exactly one branch when activeVariantId is given"),p}function KR(e){return e.split("-")[2]}function Sz(e,t,n){let r=[];for(let[i,o]of Object.entries(n)){let s=t&&!t.has(i);e.includes(i)||s||r.push(`hidden-${KR(o)}`)}return r}function vk(e,t){return t?e.filter(n=>t.has(n)):e}function kz(e,t){for(let n of Object.keys(t))if(!sf(e[n],t[n],!0))return!0;return!1}function Cz(e,t,n){return!n||!e?t:{...t,...n[e]}}var Rz=w.forwardRef(function({breakpoint:t,overrides:n,children:r,...i},o){let s=pf(o),a=w.useContext(Ug),l=TA(),c=st(()=>l.current?gr()?1:2:0),u=w.useContext(XR);if(!u)return console.warn("PropertyOverrides is missing GeneratedComponentContext"),s(r,i);let{primaryVariantId:f,variantClassNames:d}=u,h=a?.primaryVariantId===f?a?.variants:void 0;switch(c){case 0:return s(r,Cz(t,i,n));case 1:return gk(n,r,i,d,f,h,s,t);case 2:return gk(n,r,i,d,f,h,gz,void 0);default:we(c)}}),V7=ml(Rz,`.${YR} { display: contents }`,"PropertyOverrides"),Bu="default",Tz=new Set([Bu]),$u,Ez=class{constructor(){E(this,"entries",new Map),Ln(this,$u,{})}set(e,t,n,r){switch(t){case"transformTemplate":{N(typeof n=="string",`transformTemplate must be a string, received: ${n}`),this.setHash(e,r,{transformTemplate:n,legacy:!0});break}case"initial":case"animate":{N(typeof n=="object",`${t} must be a valid object, received: ${n}`),this.setHash(e,r,{[t]:n,legacy:!0});break}default:break}}setHash(e,t=Bu,n){let r=this.entries.get(e)??{},i=r[t]??{};r[t]=n===null?null:{...i,...n},this.entries.set(e,r)}variantHash(e,t){if(e===t?.primaryVariantId)return Bu;let n=ye(this,$u)[e];if(n)return n;let r=t?.variantClassNames[e];return r?ye(this,$u)[e]=KR(r):Bu}setAll(e,t=Tz,n,r){var i;if(n===null){for(let c of t)this.setHash(e,this.variantHash(c,r),null);return}let o=on(n.transformTemplate)?(i=n.transformTemplate)==null?void 0:i.call(n,{},Fz):void 0,s=n.__framer__presenceInitial??n.initial,a=n.__framer__presenceAnimate??n.animate,l={initial:ge(s)?s:void 0,animate:ge(a)?a:void 0,transformTemplate:ue(o)?o:void 0};for(let c of t)this.setHash(e,this.variantHash(c,r),l)}clear(){this.entries.clear()}toObject(){return Object.fromEntries(this.entries)}};$u=new WeakMap;var QR=new Ez;function D7(e){return w.forwardRef(({optimized:t,...n},r)=>{var i;let o=w.useContext(XR),s=(i=w.useContext(Ug))==null?void 0:i.variants,a=n[Pz];a&&!gr()&&QR.setAll(a,s,t?n:null,o);let l=ZR(n);return k(e,{ref:r,...n,...l})})}var z7=(e,t,n,r)=>(gr()||QR.set(t,e,n,r),n),Fz="__Appear_Animation_Transform__";var Pz="data-framer-appear-id",B7="data-framer-appear-animation",ZR=e=>{if(fl())return{animate:yk(e.animate)?e.animate:void 0,initial:yk(e.initial)?e.initial:void 0,exit:void 0}};function yk(e){return ue(e)||Array.isArray(e)}var _n=["opacity","x","y","scale","rotate","rotateX","rotateY","skewX","skewY","transformPerspective"],Ku=e=>({x:We(e?.x??0),y:We(e?.y??0),opacity:We(e?.opacity??1),scale:We(e?.scale??1),rotate:We(e?.rotate??0),rotateX:We(e?.rotateX??0),rotateY:We(e?.rotateY??0),skewX:We(e?.skewX??0),skewY:We(e?.skewY??0),transformPerspective:We(e?.transformPerspective??0)}),Ze={x:0,y:0,scale:1,opacity:1,rotate:0,rotateX:0,rotateY:0,skewX:0,skewY:0,transformPerspective:0};function JR(e){return e in Ze}var Rs={willChange:"transform"};Object.freeze(Rs);var Ts={};Object.freeze(Ts);function eT(e,t){let n=st(()=>({values:Ku(t?e:void 0)}));return w.useEffect(()=>{if(!t)for(let r of _n){let i=Ze[r];at(i)||n.values[r].set(i)}},[t]),n}var Iz=new Set(["loopEffectEnabled","loopTransition","loop","loopRepeatType","loopRepeatDelay","loopPauseOffscreen"]),_z=()=>{let e=V();return $(()=>()=>{clearTimeout(e.current)},[]),async t=>new Promise(n=>{e.current=setTimeout(()=>{n(!0)},t*1e3)})};function Oz({loopEffectEnabled:e,loopRepeatDelay:t,loopTransition:n,loopRepeatType:r,loop:i,loopPauseOffscreen:o},s){let a=zi(),l=st(Ku),c=V(!1),u=_z(),f=G(async()=>{if(!i)return;let S=n||void 0,R=c.current&&r==="mirror",T=R?Ze:i,F=R?i:Ze;return c.current=!c.current,Promise.all(_n.map(P=>{if(!(a&&P!=="opacity"))return l[P].set(F[P]??Ze[P]),new Promise(B=>{let H={...S,onComplete:()=>B()},L=T[P]??F[P];typeof L=="number"&&ir(l[P],L,H)})}))},[i,r,n,a]),[d,h]=Re(!1),p=V(!1),y=G(async()=>{!e||!p.current||(await f(),await u(t??0),await y())},[f,u,e,t]),x=G(()=>{p.current||(p.current=!0,Ve(()=>h(!0)),y())},[y]),m=G((S=!0)=>{_n.forEach(R=>{l[R].stop()}),_n.forEach(R=>{l[R].set(Ze[R])}),c.current=!1,S&&(p.current=!1,Ve(()=>h(!1)))},[]),g=e&&i,v=G(()=>{document.hidden?m(!1):p.current&&(p.current=!1,x())},[x,m]);$(()=>{if(g)return document.addEventListener("visibilitychange",v),()=>{document.removeEventListener("visibilitychange",v)}},[g,v]),$(()=>{g&&o||(g?x():m())},[x,m,o,g]),$(()=>()=>m(),[]);let b=G(S=>{S.isIntersecting?x():m()},[x,m]);VR(s,b,{enabled:g&&o});let C=d||!o;return re(()=>({values:l,style:g&&C?Rs:Ts}),[g,C])}function Mz(e,t,n,r,i){let o=n/100-1,s=i?(t-r)*o:0,a=-e*o;return s+a}var Lz=new Set(["speed","adjustPosition","offset","parallaxTransformEnabled"]);function Vz(e,t,n){let{speed:r=100,offset:i=0,adjustPosition:o=!1,parallaxTransformEnabled:s}=e,a=w.useRef(null),l=zi(),c=w.useCallback(p=>a.current===null||r===100?0:Mz(p,a.current,r,i,o),[r,i,o]),{scrollY:u}=$b(),f=Ht(u,c),d=rr(o&&a.current===null?"hidden":n),h=rr(0);return co(t,p=>{p!==null&&(Q.read(()=>{var y;a.current=((y=p.getBoundingClientRect())==null?void 0:y.top)??0}),Q.update(()=>{f.set(c(u.get())),o&&d.set(n??"initial")}))},[o]),af(()=>f.set(0)),{values:{y:l||!s?h:f},style:s?{...Rs,visibility:d}:Ts}}function Az(e){if(!(ue(e)||!ge(e)))return e?.transition}function Vm(e,t,n,r,i,o){let s=Az(e);return Promise.all(_n.map(a=>new Promise(l=>{if(n&&a!=="opacity")return l();let c=t.values[a];c.stop();let u=ge(e)?e?.[a]??Ze[a]:Ze[a];if(Ue(u)&&(u=u.get()),!Ae(u))return l();let f=tr.get(r.current);f&&f.setBaseTarget(a,u);let d;if(ue(i)&&!c?.hasAnimated&&xe.MotionHandoffAnimation){let h=xe.MotionHandoffAnimation(i,a,Q);h&&(d=h)}o?c.set(u):ir(c,u,{...s,velocity:0,startTime:d,onComplete:()=>l()})})))}var Dz=new Set(["presenceInitial","presenceAnimate","presenceExit"]);function zz({initial:e,animate:t,exit:n,presenceInitial:r,presenceAnimate:i,presenceExit:o},s,a,l,c){let u=r??e,f=i??t,d=o??n,[h,p]=Kl(),y=V({lastPresence:!1,lastAnimate:f,hasMounted:!1,running:!1}),x=st(()=>{let v=u??l;if(!ge(v))return{values:Ku()};let b={};for(let C in v){let S=ge(v)?v[C]:void 0;Ae(S)&&(b[C]=S)}return{values:Ku(b)}});co(s,v=>{let{hasMounted:b}=y.current;if(b&&f)return;let C=tr.get(v);if(C){Object.assign(y.current,{hasMounted:!0});for(let S in x.values){if(!JR(S))continue;let R=l?.[S];C.setBaseTarget(S,Ae(R)?R:Ze[S])}}},[f]);let m=zi();co(s,v=>{if(!a){p?.();return}if(v===null)return;if(h!==y.current.lastPresence){Object.assign(y.current,{lastPresence:h}),h?u&&f&&(Object.assign(y.current,{running:!0}),Vm(f,x,m,s,c).then(()=>Object.assign(y.current,{running:!1}))):d?(Object.assign(y.current,{running:!0}),Vm(d,x,m,s,c).then(()=>Object.assign(y.current,{running:!1})).then(()=>p())):p();return}let{lastAnimate:b,running:C}=y.current;sf(f,b)||!f||(Object.assign(y.current,{lastAnimate:f}),Vm(f,x,m,s,c,!C).then(()=>Object.assign(y.current,{running:!1})))});let g=a&&f;return re(()=>({values:x.values,style:g?Rs:Ts}),[g])}function Bz(e,t){let n=0,r=e;for(;r&&r!==t&&r instanceof HTMLElement;)n+=r.offsetTop,r=r.offsetParent;return n}var $z=1;function Gg(e,t=0,n){var r;let i=[],o=[];for(let s=e.length;s>=0;s--){let{ref:a,offset:l}=e[s]??{};if(!a||!a.current)continue;let u=Bz(a.current,document.documentElement)-$z-(l??0)-t,f=((r=a.current)==null?void 0:r.clientHeight)??0,d=i[i.length-1],h=Math.max(u+f,0);i.push(u),o.unshift(Math.max(u,0),d===void 0?h:Math.min(h,Math.max(d-1,0))),n?.(s)}return o}function Nz(e,t=0){return e<t?"up":"down"}var jz=4;function tT(e,t,n={}){let{direction:r,target:i}=e??{},{repeat:o=!0,enabled:s=!0}=n,a=Fg();w.useEffect(()=>{if(!r||!s)return;let l=a,c,u=0,f,d;return Er(({y:h})=>{if(!o&&d===i||h.current>h.scrollLength||h.current<0)return;let p=Nz(h.current,c);c=h.current;let y=p!==f;if(f=p,y)u=h.current;else{if(Math.abs(h.current-u)<jz)return;let m=p===r?i:void 0;m!==d&&t(m),d=m}})},[a,r,o,i,s,t])}var Hz=new Set(["threshold","animateOnce","opacity","targetOpacity","x","y","scale","transition","rotate","rotateX","rotateY","perspective","enter","exit","animate","styleAppearEffectEnabled","targets","scrollDirection"]),Wz=["animate","animate"],bk={inputRange:[],outputRange:[]};function Uz(e,t,n){let r=Gg(e,t),i=[...Wz],o=r[0];if(!Ae(o))return bk;if(o>1&&(r.unshift(0,o-1),i.unshift("initial","initial")),n){let s=r.length-1,a=r[s];if(!Ae(a))return bk;r.push(a+1),i.push("exit")}return{inputRange:r,outputRange:i}}function Am(e){return{x:e?.x??Ze.x,y:e?.y??Ze.y,scale:e?.scale??Ze.scale,opacity:e?.opacity??Ze.opacity,transformPerspective:e?.transformPerspective??Ze.transformPerspective,rotate:e?.rotate??Ze.rotate,rotateX:e?.rotateX??Ze.rotateX,rotateY:e?.rotateY??Ze.rotateY,skewX:e?.skewX??Ze.skewX,skewY:e?.skewY??Ze.skewY,transition:e?.transition??void 0}}function Gz({opacity:e,targetOpacity:t,perspective:n,enter:r,exit:i,animate:o,...s}){return w.useMemo(()=>({initial:r??Am({...s,opacity:e??t??1,transformPerspective:n}),animate:o??Am({opacity:t}),exit:i??Am()}),[o,s,r,i,e,t,n])}function qz(e,t){let n=zi(),r=Gz(e),i=e.styleAppearEffectEnabled,o=eT(i?r.initial:r.animate,i),s=w.useRef({isPlaying:!1,scheduledAppearState:void 0,lastAppearState:!e.styleAppearEffectEnabled}),a=Fg(),l=w.useRef(),c=w.useCallback(async({transition:h,...p},y)=>{let x=h??r.animate.transition??e.transition;await l.current;let m=tr.get(t.current);l.current=Promise.all(_n.map(g=>{y&&o.values[g].set(r.initial[g]??Ze[g]);let v=p[g]??Ze[g];return m&&typeof v!="object"&&m.setBaseTarget(g,v),new Promise(b=>{if(n&&g!=="opacity")Ae(v)&&o.values[g].set(v),b();else{let C={restDelta:g==="scale"?.001:void 0,...x,onComplete:()=>b()};typeof v=="number"&&ir(o.values[g],v,C)}})}))},[]),u=e.animateOnce&&s.current.lastAppearState===!0,f=!e.targets&&e.styleAppearEffectEnabled&&!e.scrollDirection&&!u;AR(t,h=>{let{isPlaying:p,lastAppearState:y}=s.current;if(p){s.current.scheduledAppearState=h;return}s.current.scheduledAppearState=void 0,s.current.lastAppearState=h,y!==h&&c(h?r.animate:r.exit,h)},{enabled:f,animateOnce:!!e.animateOnce,threshold:{y:e.threshold}});let d=e.targets&&i&&!e.scrollDirection;return w.useEffect(()=>{if(!d)return;let h={initial:!0},p=a,y="initial";return Er(({y:x})=>{let{targets:m}=e;if(!m||!m[0]||m[0].ref&&!m[0].ref.current)return;let{inputRange:g,outputRange:v}=Uz(m,(e.threshold??0)*x.containerLength,!!e.exit);if(g.length===0||g.length!==v.length)return;let b=_o(x.current,g,v);if(e.animateOnce&&h[b]||(h[b]=!0,y===b))return;y=b;let C=ft(r)[b];C&&c(C)})},[a,d]),tT(e.scrollDirection,h=>c(h??r.animate),{enabled:i,repeat:!e.animateOnce}),af(()=>{var h;if(i&&!(!e.targets&&!e.scrollDirection))for(let p of _n)o.values[p].set(((h=r.initial)==null?void 0:h[p])??Ze[p])}),re(()=>({values:o.values,style:i?Rs:Ts}),[i])}var Xz=new Set(["transformViewportThreshold","styleTransformEffectEnabled","transformTargets","spring","transformTrigger"]),xk=(e,t)=>{var n;let r=(n=e?.[0])==null?void 0:n.target;return t?{opacity:r?.opacity??1}:r},nT=()=>({opacity:[],x:[],y:[],scale:[],rotate:[],rotateX:[],rotateY:[],skewX:[],skewY:[],transformPerspective:[]});function Yz(e,t){let n=w.useRef({});w.useEffect(()=>{if(t!==void 0)for(let r of so(e)){let i=e[r];i.attach((o,s)=>{let a=n.current[r];if(a&&a.stop(),n.current[r]=Cd({keyframes:[i.get(),o],velocity:i.getVelocity(),...t,restDelta:.001,onUpdate:s}),!et.isProcessing){let l=performance.now()-et.timestamp;l<40&&(n.current[r].time=l/1e3)}return i.get()})}},[JSON.stringify(t)])}function Kz(e,t){let n=nT();return{inputRange:Gg(e,t,i=>{var o,s,a;let l=(o=e[i-1])==null?void 0:o.target,c=(s=e[i])==null?void 0:s.target;for(let u of _n)(a=n[u])==null||a.unshift(l?.[u]??0,c?.[u]??0)}),effectKeyOutputRange:n}}function Qz(e){var t;let n=nT();for(let{target:r}of e)for(let i of _n)(t=n[i])==null||t.push(r[i]);return n}var wk=[0,1];function Zz({transformTrigger:e,styleTransformEffectEnabled:t,transformTargets:n,spring:r,transformViewportThreshold:i=0},o){let s=zi(),a=eT(xk(n,s),t),l=!t||!n,c=e==="onScrollTarget",u=Fg();return He(()=>{if(!(l||!c))return Er(({y:f})=>{if(!n[0]||n[0].ref&&!n[0].ref.current)return;let{inputRange:d,effectKeyOutputRange:h}=Kz(n,i*f.containerLength);if(d.length!==0)for(let p of _n)s&&p!=="opacity"||d.length===h[p].length&&h[p][0]!==void 0&&a.values[p].set(_o(f.current,d,h[p]))})},[s,c,i,n,l]),co(o,f=>{if(l||c||f===null)return;let d=u,h=Qz(n);return Er(({y:p})=>{for(let y of _n)s&&y!=="opacity"||wk.length===h[y].length&&h[y][0]!==void 0&&a.values[y].set(_o(p.progress,wk,h[y]))},e==="onInView"?{target:f??void 0,offset:["start end","end end"]}:void 0)},[u,s,e,c,n,l]),Yz(a.values,r),af(()=>{if(l)return;let f=xk(n,s);for(let d of _n)a.values[d].set(f?.[d]??Ze[d])}),w.useMemo(()=>({values:a.values,style:t?Rs:Ts}),[t])}var rT={parallax:Lz,styleAppear:Hz,styleTransform:Xz,loop:Iz,presence:Dz},Jz=so(rT);function Sk(e,t,n){return!(e in n)&&t in n||n[e]===!0}function eB(e){let t={parallax:{},styleAppear:{},styleTransform:{},presence:{animate:e.animate,initial:e.initial,exit:e.exit},loop:{},forwardedProps:{}};for(let n in e){let r=qR(n);if(r)for(let i of Jz){let o=rT[i];if(o?.has(r)){t[i][r]=ft(e)[n];break}}else t.forwardedProps[n]=ft(e)[n]}return t.parallax.parallaxTransformEnabled=Sk("parallaxTransformEnabled","speed",t.parallax),t.styleAppear.styleAppearEffectEnabled=Sk("styleAppearEffectEnabled","animateOnce",t.styleAppear),t}var wi=e=>e.reduce((t,n)=>t+=n,0),kk=e=>e.reduce((t,n)=>t=t*n,1),tB="current";function nB(e){return ge(e)&&tB in e}function rB(e,t){if(!e||!ge(e))return t;for(let n in e){let r=e[n];!Ue(r)||!JR(n)||Ae(r.get())&&t[n].push(r)}}function Dm(e){return ue(e)||Array.isArray(e)}var X7=e=>w.forwardRef((t,n)=>{var r;if(t.__withFX)return k(e,{...t,animate:void 0,initial:void 0,exit:void 0,ref:n});let i=ZR(t);if(i)return k(e,{...t,...i,ref:n});let{parallax:o={},styleAppear:s={},styleTransform:a={},presence:l={},loop:c={},forwardedProps:u}=eB(t),{__targetOpacity:f,__perspectiveFX:d,__smartComponentFX:h=!1}=t,p=rr(f??1),y=Hg(n),{values:x,style:m}=zz(l,y,h,t.style,t[Gl]),{values:g,style:v}=Vz(o,y,(r=t.style)==null?void 0:r.visibility),{values:b,style:C}=Zz(a,y),{values:S,style:R}=qz(s,y),{values:T,style:F}=Oz(c,y),P=w.useMemo(()=>({scale:[S.scale,T.scale,x.scale,b.scale],opacity:[S.opacity,T.opacity,x.opacity,p,b.opacity],x:[S.x,T.x,x.x,b.x],y:[S.y,T.y,g.y,x.y,b.y],rotate:[S.rotate,T.rotate,x.rotate,b.rotate],rotateX:[S.rotateX,T.rotateX,x.rotateX,b.rotateX],rotateY:[S.rotateY,T.rotateY,x.rotateY,b.rotateY],skewX:[S.skewX,T.skewX,x.skewX,b.skewX],skewY:[S.skewY,T.skewY,x.skewY,b.skewY],transformPerspective:[b.transformPerspective,S.transformPerspective]}),[p,b,g,S,T,x]);rB(t.style,P);let B=Ht(P.scale,kk),H=Ht(P.opacity,kk),L=Ht(P.x,wi),Y=Ht(P.y,wi),W=Ht(P.rotate,wi),ne=Ht(P.rotateX,wi),U=Ht(P.rotateY,wi),ee=Ht(P.skewX,wi),ae=Ht(P.skewY,wi),me=Ht(P.transformPerspective,wi),{drag:K,dragConstraints:se}=u;I5(K&&nB(se)?se:void 0);let fe={opacity:H,scale:B,x:L,y:Y,rotate:W,rotateX:ne,rotateY:U,skewX:ee,skewY:ae};at(d)&&(fe.transformPerspective=me);let ie=Dm(t.animate)?t.animate:void 0,Ce=Dm(t.initial)?t.initial:void 0,Pe=Dm(t.exit)?t.exit:void 0,Le=h&&!l.presenceInitial?{initial:Ce,animate:ie,exit:Pe}:{};return k(e,{...u,...Le,__withFX:!0,style:{...t.style,...v,...C,...F,...fe,...R,...m},values:x,ref:y})});var iT=w.createContext({});function J7(){return w.useContext(iT)}var eG=w.forwardRef(function({width:t,height:n,y:r,children:i,...o},s){let a=w.useMemo(()=>({width:t,height:n,y:r}),[t,n,r]),l=pf(s);return k(iT.Provider,{value:a,children:l(i,o)})}),iB=e=>w.forwardRef((t,n)=>{let r=hl(t);return k(e,{layoutId:r,...t,layoutIdKey:void 0,duplicatedFrom:void 0,ref:n})}),oB=class extends Fe{constructor(){super(...arguments),E(this,"state",{error:void 0})}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){let n=t?.componentStack;console.error(`Caught error in SuspenseErrorBoundary:
`,e,n);let r=e instanceof Error&&typeof e.stack=="string"?e.stack:void 0;jr("published_site_load_recoverable_error",{message:String(e),stack:r,componentStack:r?void 0:n})}render(){let e=this.state.error;if(e===void 0)return this.props.children;if(e instanceof JC)throw e.cause;return I.__framer_STPD_OPT_OUT__=!0,k(xr,{children:this.props.fallbackChildren})}},sB=typeof I<"u"?new Promise(()=>{}):null;function aB(){if(typeof I>"u"||I.__framer_STPD_OPT_OUT__)return k("div",{hidden:!0,dangerouslySetInnerHTML:{__html:"<!-- SuspenseThatPreservesDOM fallback rendered -->"}});throw sB}function qg({children:e}){return k(oB,{fallbackChildren:e,children:k(xr,{fallback:k(aB,{}),children:e})})}function lB(){return k("div",{hidden:!0,dangerouslySetInnerHTML:{__html:"<!-- Code boundary fallback rendered -->"}})}var oT=k(lB,{});function sT(e,t){if(!uo||Math.random()>.01)return;let n=e instanceof Error&&typeof e.stack=="string"?e.stack:null,r=t?.componentStack;jr("published_site_load_recoverable_error",{message:String(e),stack:n,componentStack:n?void 0:r})}function cB(...e){console.error(...e)}function uB(){return he.current()!==he.canvas}function fB({errorMessage:e,fallback:t,children:n}){return uB()?k(hB,{fallback:t,children:k(dB,{fallback:t,errorMessage:e,children:n})}):n}var dB=class extends Fe{constructor(){super(...arguments),E(this,"state",{hasError:!1})}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){cB(this.props.errorMessage,t?.componentStack),sT(e,t)}render(){let{children:e,fallback:t=oT}=this.props,{hasError:n}=this.state;return n?t:e}};function hB({children:e,fallback:t=oT}){return typeof I>"u"?k(xr,{fallback:t,children:e}):k(qg,{children:e})}var pB=class extends Fe{constructor(){super(...arguments),E(this,"state",{hasError:!1})}componentDidCatch(e,t){let n=t?.componentStack;console.error("Error in component (see previous log). This component has been hidden. Please check any custom code or code overrides to fix.",n),this.setState({hasError:!0}),sT(e,t)}render(){let{children:e}=this.props,{hasError:t}=this.state;return t?null:e}},aT=w.createContext(void 0);function Xg(){return w.useContext(aT)}function mB(){let e=Xg();return w.useMemo(()=>{if(!e)return;let n=e;for(;n.parent&&n.parent.level>0;)n=n.parent;return n},[e])}function gB({children:e,scopeId:t,nodeId:n}){let r=Xg(),i=w.useMemo(()=>({level:(r?.level??0)+1,scopeId:t,nodeId:n,parent:r}),[t,n,r]);return k(aT.Provider,{value:i,children:e})}var vB="code-crash:";function yB(e,t){return`${vB}${e}:${t}`}function bB(e,t){return xB("component",e,t)}function xB(e,t,n){return`A code ${e} crashed while rendering due to the error above. To find and fix it, open the project in the editor \u2192 open Quick Actions (press Cmd+K or Ctrl+K) \u2192 paste this: ${yB(t,n)} \u2192 click \u201CShow Layer\u201D.`}function wB(e,t,n,r,i,o){let s=SB(e,t,n,o);return s&&!i&&r||s&&i}function SB(e,t,n,r){return!!(at(n)||n===1&&r&&e===t)}function kB(e,t,n,r,i,o){let s=Xg();return at(t)||at(n)?k(pB,{children:e}):(wB(t,s?.scopeId,s?.level,r??!1,i??!1,o??!1)&&(e=k(fB,{errorMessage:bB(t,n),fallback:null,children:e})),i&&(e=k(gB,{scopeId:t,nodeId:n,children:e})),e)}var CB=w.forwardRef(({children:e,layoutId:t,as:n,scopeId:r,nodeId:i,isAuthoredByUser:o,isModuleExternal:s,inComponentSlot:a,...l},c)=>{let u=st(()=>t?`${t}-container`:void 0),f=dl(n),d=w.Children.map(e,p=>w.isValidElement(p)?w.cloneElement(p,{layoutId:t}):p),h=kB(d,r,i,o,s,a);return k(f,{layoutId:u,...l,ref:c,children:k(fo.Provider,{value:!0,children:k(xD,{enabled:!1,children:k(Mb,{id:t??"",inherit:"id",children:h})})})})}),gG=iB(CB);var Yg=ke({onRegisterCursors:()=>()=>{},registerCursors:()=>{}}),Qu="framer-cursor-none",ag="framer-pointer-events-none";function RB(e,t,n){let r={};for(let[,i]of e)for(let o of i){let s=r[o]??t[o]??n[o];s&&(r[o]=s)}return r}var TB=wl(function({children:t}){let n=st(()=>{let i=new Set,o={},s=new Map;return{onRegisterCursors:a=>(a(o),i.add(a),()=>i.delete(a)),registerCursors:(a,l)=>{s.set(l,Object.keys(a)),o=RB(s,o,a);for(let c of i)c(o);return()=>{s.delete(l)}}}}),r=zi();return be(Yg.Provider,{value:n,children:[t,!r&&k(_B,{})]})}),EB=ml(TB,[`.${Qu}, .${Qu} * { cursor: none !important; }`,`.${ag}, .${ag} * { pointer-events: none !important; }`],"framer-lib-cursors-host"),FB={position:"fixed",top:0,left:0,zIndex:13,pointerEvents:"none"};function PB(e){return!(!e||e.placement||e.alignment)}function Iu(e){switch(e){case"start":return"0%";case"center":return"-50%";case"end":return"-100%";default:we(e)}}function IB(e,t="center"){switch(e){case"top":return`${Iu(t)}, -100%`;case"right":return`0%, ${Iu(t)}`;case"bottom":return`${Iu(t)}, 0%`;case"left":return`-100%, ${Iu(t)}`;default:return"-50%, -50%"}}var Ck="data-framer-portal-id";function Rk(e,t){let n=document.elementFromPoint(e,t);for(;n;){if(n===document.body)return;let r=n.getAttribute("data-framer-cursor");if(r)return r;if(n.hasAttribute(Ck)){let i=n.getAttribute(Ck);n=n.parentElement,i&&(n=document.getElementById(i)??n)}else n=n.parentElement}}function Tk(e){for(let t in e)return!1;return!0}var _B=wl(function(){let{onRegisterCursors:t}=z(Yg),[n,r]=Re(!1),i=rr(0),o=rr(0),s=rr(0),a=V(null),l=V({cursors:{},cursorHash:void 0}),c=df();He(()=>{let R=xe.matchMedia("(any-hover: none)");function T(F){F.matches?Ve(()=>r(!1)):r(!0)}return R.addEventListener("change",T),R.matches||r(!0),()=>{R.removeEventListener("change",T)}},[]),$(()=>{if(!n)return;let R=0,T=0;function F(){i.set(R),o.set(T),ir(s,1,{type:"tween",duration:.2})}let P=()=>{if(Tk(l.current.cursors))return;let L=Rk(R,T);L!==l.current.cursorHash&&(l.current.cursorHash=L,Q.update(()=>c()))};function B(L){if(L.pointerType==="touch"){Tt(P);return}Q.read(P,!0),R=L.clientX,T=L.clientY,Q.update(F)}function H(L){if(L.target===a.current||!a.current)return;let Y=new PointerEvent(L.type,{bubbles:!0,cancelable:L.cancelable,pointerType:L.pointerType,pointerId:L.pointerId,composed:L.composed,isPrimary:L.isPrimary,buttons:L.buttons,button:L.button});Q.update(()=>{var W;(W=a.current)==null||W.dispatchEvent(Y)})}return xe.addEventListener("pointermove",B),document.addEventListener("pointerdown",H),document.addEventListener("pointerup",H),Q.read(P,!0),()=>{xe.removeEventListener("pointermove",B),document.removeEventListener("pointerdown",H),document.removeEventListener("pointerup",H),Tt(P)}},[s,i,o,c,n]),$(()=>{if(!n)return;function R(){ir(s,0,{type:"tween",duration:.2})}return document.addEventListener("mouseleave",R),xe.addEventListener("blur",R),()=>{document.removeEventListener("mouseleave",R),xe.removeEventListener("blur",R)}},[s,n]),He(()=>{function R(F){l.current.cursors=F,l.current.cursorHash=Tk(F)?null:Rk(i.get(),o.get()),c()}let T=t(R);return()=>{T(),document.body.classList.toggle(Qu,!1)}},[i,o,t,c]);let{cursors:u,cursorHash:f}=l.current,d=f?u[f]:null,h=PB(d);He(()=>{n&&document.body.classList.toggle(Qu,h)},[h,n]);let p=d?.component,y=d?.transition??{duration:0},x=Jd(i,y),m=Jd(o,y),g=Ht(()=>{var R;return x.get()+(((R=d?.offset)==null?void 0:R.x)??0)}),v=Ht(()=>{var R;return m.get()+(((R=d?.offset)==null?void 0:R.y)??0)}),b=d?.alignment,C=d?.placement,S=G((R,T)=>`translate(${IB(C,b)}) ${T}`,[b,C]);return!n||!d||!p?null:k(p,{transformTemplate:S,style:{...FB,x:g,y:v,opacity:s},globalTapTarget:!0,variant:d?.variant,ref:a,className:ag})});function bG(e){let{registerCursors:t}=z(Yg),n=st(()=>e),r=Sr();He(()=>t(n,r),[t,r])}var us={isClockwise:e=>us.signedArea(e)<=0,signedArea:e=>{let t=0,n=e.length;for(let r=0;r<n;r++){let i=e[r],o=e[(r+1)%n];!i||!o||(t+=i.x*-o.y-o.x*-i.y)}return 1/2*t},containsPoint:(e,t)=>{var n,r,i,o;let s;for(let a=0;a<e.length;a++){if($t.isEqual(e[a],t))return!0;let l=((n=e[a])==null?void 0:n.x)??0,c=((r=e[a])==null?void 0:r.y)??0,u=(a+1)%e.length;if($t.isEqual(e[u],t))return!0;let f=((i=e[u])==null?void 0:i.x)??0,d=((o=e[u])==null?void 0:o.y)??0,h=(t.x-l)*(d-c)-(t.y-c)*(f-l);if(h===0)continue;let p=h>0;if(s??=p,s!==p)return!1}return!0},intersects:(e,t)=>{if(e.length<1||t.length<1)return!1;let n=Z.boundingRectFromPoints(e),r=Z.boundingRectFromPoints(t);if(!Z.intersects(n,r))return!1;let i=[],o=e.length;e.forEach((l,c)=>{let u=e[(c+1)%o];u&&i.push(It(l,u))});let s=[],a=t.length;t.forEach((l,c)=>{let u=t[(c+1)%a];u&&s.push(It(l,u))});for(let l of i)for(let c of s)if(It.intersection(l,c,!0))return!0;return!!(us.containsPoint(t,e[0])||us.containsPoint(e,t[0]))},contains:(e,t)=>{for(let n=0;n<t.length;n++)if(!us.containsPoint(e,t[n]))return!1;return!0},clipToRect:(e,t)=>{let n=Z.edges(t),r=new Set,i=e.length,o=[],s=[];for(let a=0;a<i;a++){let l=e[a],c=e[(a+1)%i];if(Z.containsPoint(t,l)){let f=zm(l);if(r.add(f),s.push(l),Z.containsPoint(t,c))continue}let u=It(l,c);n.forEach(f=>{let d=It.intersection(u,f,!0);if(!d)return;let h=zm(d);r.has(h)||(r.add(h),o.push(d))})}return o.length===0?s:(Z.points(t).forEach(a=>{us.containsPoint(e,a)&&(r.add(zm(a)),o.push(a))}),$t.sortClockwise([...s,...o]))}};function zm(e){return`${e?.x}-${e?.y}`}function Ek(e){switch(e){case"top":return"bottom";case"right":return"left";case"bottom":return"top";case"left":return"right";default:we(e)}}function Fk(e,t,n,r=0){let i=Math.max(e,r);if(e<i)return i;let o=t+r;return i+o>n?n-o:i}function OB(e,t,n){switch(e){case"top":case"bottom":return t.y<0||t.y+t.height>n.height?"y":void 0;case"left":case"right":return t.x<0||t.x+t.width>n.width?"x":void 0;default:we(e)}}function MB(e,t,n,r){switch(OB(t,e,r)){case"x":return{placement:Ek(t),x:n.x*-1,y:n.y};case"y":return{placement:Ek(t),x:n.x,y:n.y*-1};default:return{placement:t,x:n.x,y:n.y}}}function LB(e,t,n,r,i,o,s){let a=Z.rebaseRectOnto(t,e,n,r),l={x:a.x+i.x,y:a.y+i.y,width:t.width,height:t.height};if(!o)return[n,l];let{x:c,y:u,placement:f}=MB(l,n,i,o),d=Z.rebaseRectOnto(t,e,f,r);return[f,{x:Fk(d.x+c,t.width,o.width,s),y:Fk(d.y+u,t.height,o.height,s),width:t.width,height:t.height}]}function Si(e,t,n){return us.containsPoint([t,...n],e)?t:e}var _u=5;function VB(e){return{constrainX:t=>Math.min(Math.max(t,e.x+_u),e.x+e.width-_u),constrainY:t=>Math.min(Math.max(t,e.y+_u),e.y+e.height-_u)}}var Ou=4;function AB({x:e,y:t},n,r,{constrainX:i,constrainY:o}){let[s,a,l,c]=Z.points(r);switch(n){case"left":{let u={x:i(e-Ou),y:t};return[u,Si(c,a,[u,l]),Si(l,s,[u,c])]}case"right":{let u={x:i(e+Ou),y:t};return[u,Si(a,c,[u,s]),Si(s,l,[u,a])]}case"top":{let u={x:e,y:o(t-Ou)};return[u,Si(a,s,[u,c]),Si(c,l,[u,a])]}case"bottom":{let u={x:e,y:o(t+Ou)};return[u,Si(s,a,[u,l]),Si(l,c,[u,s])]}default:we(n)}}function DB(e,t){switch(e){case"left":return`${Math.min(t.y,0)}px auto auto 0px`;case"right":return`${Math.min(t.y,0)}px 0px auto auto`;case"top":return`0px auto auto ${Math.min(t.x,0)}px`;case"bottom":return`auto auto 0px ${Math.min(t.x,0)}px`;default:we(e)}}function zB(e,t,n,r,i){let o=Math.min(i.x,r.x),s=Math.min(i.y,r.y),a=Z.merge(r,i),l=AB({x:e,y:t},n,i,VB(r)).map(c=>`${c.x-o}px ${c.y-s}px`).join(", ");return{height:`${a.height}px`,width:`${a.width}px`,clipPath:`polygon(${l})`,inset:DB(n,Z.delta(r,i))}}function Mu(e){switch(e){case"start":return 0;case"center":return .5;case"end":return 1;default:we(e)}}function Pk(e="bottom",t="center"){switch(e){case"top":return{originX:Mu(t),originY:1};case"right":return{originX:0,originY:Mu(t)};case"bottom":return{originX:Mu(t),originY:0};case"left":return{originX:1,originY:Mu(t)};default:we(e)}}function BB(e){var t;let n=e.current,r={position:"absolute",scrolls:!1};for(;n;){if(n?.tagName==="BODY"||(((t=getComputedStyle(n))==null?void 0:t.position)==="fixed"&&(r.position="fixed"),(n.scrollWidth>n.clientWidth||n.scrollHeight>n.clientHeight)&&(r.scrolls=!0),r.scrolls&&r.position==="fixed"))return r;n=n.parentElement}return r}function $B(e){return[()=>Q.read(e,!0),()=>Tt(e)]}function NB(e){let t=0,n=0;return(r,i,o,s)=>{var a;(a=e.current)!=null&&a.style&&(t=s?.clientX??t,n=s?.clientY??n,Object.assign(e.current.style,zB(t,n,o,r,i)))}}function Ik(e,t,n){e.current&&Object.assign(e.current.style,{position:t,visibility:"visible",left:(n?.x??0)+(t==="fixed"?0:xe.scrollX)+"px",top:(n?.y??0)+(t==="fixed"?0:xe.scrollY)+"px"})}var lT=w.createContext(new Set);function jB(e,t,n,{safeArea:r,onDismiss:i}){let o=st(()=>new Set),s=w.useContext(lT),[a,l]=Kl();return w.useEffect(()=>{if(a){if(!t.current)return;t.current.style.pointerEvents="",s.add(t.current)}else{if(!t.current)return;t.current.style.pointerEvents="none",s.delete(t.current),l()}},[a,l,t,s]),w.useEffect(()=>{if(!r){let d=h=>{h.key==="Escape"&&i()};return xe.addEventListener("keyup",d),()=>xe.removeEventListener("keyup",d)}let c;function u(){if(!(!c||o.size!==0)){for(let d of document.elementsFromPoint(c.x,c.y))if(d===e.current||d===t.current||d===n.current)return;i()}}function f(d){c=d,Q.read(u)}return xe.addEventListener("mousemove",f),()=>{xe.removeEventListener("mousemove",f)}},[i,r,e,n,t]),o}function HB({placement:e,alignment:t,offset:n,collisionDetectionSize:r,collisionDetectionPadding:i}){return(o,s)=>LB(o,s,e,t,n,r,i)}function WB(e,t){return st(()=>{let{originX:n,originY:r}=Pk(e,t),i={x:We(n),y:We(r)};return[i,o=>{let s=Pk(o,t);i.x.set(s.originX),i.y.set(s.originY)}]})}function UB(e,{x:t,y:n}){if(!e||!Za(e)||!Qa(e)||!ge(e.props.style)&&!at(e.props.style))return null;let r={...e.props.style,originX:t,originY:n};return w.cloneElement(e,{style:r})}var GB="overlay",qB="template-overlay";function XB(e,t){if(t||at(e)){let r=document.querySelector(`#${qB}`)??document.querySelector(`#${GB}`);if(r)return r}let n=ue(e)?document.querySelector(e):void 0;return n||document.body}function kG({alignment:e,placement:t,safeArea:n,offsetX:r,offsetY:i,anchorRef:o,className:s,children:a,portalSelector:l,zIndex:c,collisionDetection:u=!1,collisionDetectionPadding:f,onDismiss:d,...h}){let p=w.useRef(null),y=w.useRef(null),x=w.useRef(null),[m,g]=WB(t,e);w.useLayoutEffect(()=>{if(!l4(o)||!x.current||!t||!e)return;let{position:C,scrolls:S}=BB(o),R=x.current.getBoundingClientRect(),T=o.current.getBoundingClientRect(),P=HB({placement:t,alignment:e,offset:{x:r??0,y:i??0},collisionDetectionSize:u?{width:xe.innerWidth,height:xe.innerHeight}:void 0,collisionDetectionPadding:f}),[B,H]=P(T,R);Q.update(()=>{g(B)}),Q.render(()=>{p.current&&Ik(p,C,H)});let L=NB(y),Y=T,W,ne,U,ee=()=>{g(W)},ae=()=>{Ik(p,C,ne),n&&L(Y,ne,W,U),U=void 0},me=()=>{Y=o.current.getBoundingClientRect();let Ce=P(Y,R);W=Ce[0],ne=Ce[1],Q.update(ee),Q.render(ae)},[K,se]=$B(me);if(S&&K?.(),!n)return()=>se?.();let fe=Ce=>{U=Ce,Q.read(me)},ie=o.current;return ie.addEventListener("mousemove",fe),()=>{se?.(),ie.removeEventListener("mousemove",fe)}},[n,t,e,r,i,o,u,f,g]);let v=jB(o,p,y,{safeArea:n,onDismiss:d}),b=z(fo);return vm.createPortal(be(Xe.div,{ref:p,className:s,style:{visibility:"hidden",width:"auto",height:"auto",position:"absolute",zIndex:c},...h,children:[n?k("div",{ref:y,style:{position:"absolute"},"data-safearea":!0}):k("div",{style:{position:"fixed",inset:0},"aria-hidden":!0,onClick:d}),k(lT.Provider,{value:v,children:k("div",{ref:x,children:UB(a,m)})})]}),XB(l,b))}var TG=class extends Fe{constructor(){super(...arguments),E(this,"state",{error:void 0}),E(this,"message","Made UI non-interactive due to an error"),E(this,"messageFatal","Fatal error"),E(this,"messageReport","If you are the author of this website, please report this issue to the Framer team via https://www.framer.community/")}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e){if(I.__framer_hadFatalError=!0,"cause"in e&&(e=e.cause),console.error(`${el?this.message:this.messageFatal} (see above). ${this.messageReport}.`),Math.random()>.25)return;let n=e instanceof Error&&typeof e.stack=="string"?e.stack:null;jr("published_site_load_error",{message:String(e),stack:n})}render(){var e,t;let n=this.state.error;if(!n)return this.props.children;let r="cause"in n?n.cause:n,i=/-->/gu,o="--!>",s=el&&((e=document.getElementById("main"))==null?void 0:e.innerHTML)||"";return k("div",{style:{display:"contents"},suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`<!-- DOM replaced by GracefullyDegradingErrorBoundary due to "${r.message.replace(i,o)}". ${this.messageReport}: --><!-- Stack: ${(t=n.stack)==null?void 0:t.replace(i,"--!>")} -->`+s}})}},Kg=class cT{constructor(t){this.resolver=t,E(this,"status")}static is(t){return t instanceof cT}preload(){if(this.status){let n=this.status;return n.type!=="pending"?void 0:n.promise}let t=this.resolver().then(n=>{this.status={type:"fulfilled",value:n}},n=>{this.status={type:"rejected",error:n}});return this.status={type:"pending",promise:t},t}read(){let t=this.status;if(!t)throw new Error("Need to call preload() before read()");switch(t.type){case"pending":throw new Error("Need to wait for preload() to resolve");case"fulfilled":return t.value;case"rejected":throw t.error;default:we(t)}}async readAsync(){let t=this.preload();return t&&await t,this.read()}},uT=w.createContext(void 0),FG=uT.Provider,Qg=()=>w.useContext(uT)??{};function mf(e,t){return e instanceof HTMLAnchorElement?e:e instanceof Element?e===t?null:mf(e.parentElement,t):null}function YB({children:e}){return k(qg,{children:e})}function fT(e){return Oe(function(n,r){return k(YB,{children:k(e,{...n,ref:r})})})}var KB="webPageId";function Pi(e){return!!(e&&typeof e=="object"&&KB in e)}var QB=500,ZB=.9,JB=1.7,e$=4,t$=1/0,as=new WeakMap,Lu=new Set,ls=new Map;function n$(){var e;let t=ze.connection||ze.mozConnection||ze.webkitConnection||{},n=ze.deviceMemory&&ze.deviceMemory>JB,r,i,o;function s(){r=t.effectiveType||"",i=t.saveData||r.includes("2g"),o=r==="3g"||n?e$:t$}(e=t.addEventListener)==null||e.call(t,"change",s),s();let a=new IntersectionObserver(u,{threshold:ZB}),l=0;async function c(f,d){if(i)return;let h=ls.get(f);if(!h?.size||Lu.has(f))return;++l,Lu.add(f);let p=VC(f).catch(()=>{});a.unobserve(d),as.delete(d);for(let y of h)a.unobserve(y),as.delete(y);h.clear(),ls.delete(f),await p,--l}function u(f){var d;for(let h of f){let p=h.target,y=as.get(p);if(!y||Lu.has(y)){a.unobserve(p),as.delete(p);continue}let x=ls.get(y),m=((d=ls.get(y))==null?void 0:d.size)??0;if(h.isIntersecting){if(l>=o)continue;x?x.add(p):ls.set(y,new Set([p])),setTimeout(c.bind(void 0,y,p),QB)}else x&&x.delete(p),m<=1&&ls.delete(y)}}return(f,d)=>{if(!Lu.has(f))return as.set(d,f),a.observe(d),()=>{as.delete(d),a.unobserve(d)}}}var r$=!_g||typeof IntersectionObserver>"u"?null:n$(),Bm=Symbol("noLocale"),Vu=new Map;function Zg(e,t,n){var r,i;let o=(i=(r=Vu?.get(n?.id??Bm))==null?void 0:r.get(e.collectionId))==null?void 0:i.get(e.collectionItemId);if(o)return o;let s=Vu.get(n?.id??Bm)??new Map;Vu.set(n?.id??Bm,s);let a=s.get(e.collectionId)??new Map;s.set(e.collectionId,a);let l=new Kg(async()=>{try{let c=t[e.collectionId];if(!c)throw new Error(`Key not found in collection utils for collection id: "${e.collectionId}"`);let u=await c();if(!u)throw new Error("Collection does not contain utility functions");return await u.getSlugByRecordId(e.collectionItemId,n??void 0)}catch(c){console.warn(`Failed to resolve slug: ${c instanceof Error?c.message:"Unknown error"}`);return}});return a.set(e.collectionItemId,l),l}async function i$(e,t,n,r){async function i(a){if(!a||!n)return{};let l={};for(let c in a){let u=a[c];N(u,"unresolvedSlug should be defined");let f=Zg(u,n,r);await f.preload();let d=f.read();d&&(l[c]=d)}return l}let[o,s]=await Promise.allSettled([i(e),i(t)]);return{path:o.status==="fulfilled"?o.value:void 0,hash:s.status==="fulfilled"?s.value:void 0}}function o$(e,t,n,r){let i=[];function o(a){if(!a||!n)return;let l={};for(let c in a){let u=a[c];N(u,"unresolvedSlug should be defined");let f=Zg(u,n,r),d=f.preload();if(d)i.push(d);else{let h=f.read();h&&(l[c]=h)}}return l}let s={path:o(e),hash:o(t)};if(i.length)throw Promise.allSettled(i);return s}function Jg(e){return e===void 0?!1:!!(e.startsWith("#")||e.startsWith("/")||e.startsWith("."))}function il(e,t){try{return!!new URL(e).protocol}catch{}return t}async function s$(e,t,n,r,i){let{webPageId:o,hash:s,pathVariables:a,hashVariables:l,unresolvedHashSlugs:c,unresolvedPathSlugs:u}=n,f=await i$(u,c,e.collectionUtils,r);return hT(e,t,o,s,i,a,l,f)}function a$(e,t,n,r,i){let{webPageId:o,hash:s,pathVariables:a,hashVariables:l,unresolvedHashSlugs:c,unresolvedPathSlugs:u}=n,f=o$(u,c,e.collectionUtils,r);return hT(e,t,o,s,i,a,l,f)}function dT(e,t,n){if(!(!e.routes||!e.getRoute||!Jg(t)))try{let[i,o]=t.split("#",2);N(i!==void 0,"A href must have a defined pathname.");let[s]=i.split("?",2);N(s!==void 0,"A href must have a defined pathname.");let{routeId:a,pathVariables:l}=eR(e.routes,s),c=e.getRoute(a);if(c){let u=Object.assign({},n,l);return{routeId:a,route:c,href:t,elementId:o,pathVariables:u}}}catch{}}function hT(e,t,n,r,i,o,s,a){var l;let c={...i,...o,...a?.path},u={...i,...s,...a?.hash},f=(l=e.getRoute)==null?void 0:l.call(e,n),d=cf(f,{currentRoutePath:t?.path,currentPathVariables:t?.pathVariables,hash:r,pathVariables:c,hashVariables:u,preserveQueryParams:e.preserveQueryParams,siteCanonicalURL:e.siteCanonicalURL}),h=d.split("#",2)[1];return{routeId:n,route:f,href:d,elementId:h,pathVariables:c}}function pT(e,t,n){var r;if(ue(e)){let o=Jg(e);if(!t.routes||!t.getRoute||!n||!o)return;let[s]=e.split("#",2);if(s===void 0)return;let[a]=s.split("?",2);if(a===void 0)return;let{routeId:l}=eR(t.routes,a);return t.getRoute(l)}let{webPageId:i}=e;return(r=t.getRoute)==null?void 0:r.call(t,i)}var _k="element",l$="collection",c$="collectionItemId",u$="pathVariables",mT="framer/page-link,";function gT(e){return ue(e)&&e.startsWith(`data:${mT}`)}function ev(e){if(gT(e))try{let t=new URL(e),n=t.pathname.substring(mT.length),r=t.searchParams,i=r.has(_k)?r.get(_k):void 0,o,s=r.get(l$),a=r.get(c$),l=r.get(u$);if(s&&a&&l){let c=Object.fromEntries(new URLSearchParams(l).entries());o={collection:s,collectionItemId:a,pathVariables:c}}return{target:n==="none"?null:n,element:i==="none"?void 0:i,collectionItem:o}}catch{return}}function f$(e,t,n){var r;let i=t.getAttribute("data-framer-page-link-target"),o,s;if(i){o=t.getAttribute("data-framer-page-link-element")??void 0;let l=t.getAttribute("data-framer-page-link-path-variables");l&&(s=Object.fromEntries(new URLSearchParams(l).entries()))}else{let l=t.getAttribute("href");if(!l)return!1;let c=ev(l);if(!c||!c.target)return!1;i=c.target,o=c.element??void 0,s=(r=c.collectionItem)==null?void 0:r.pathVariables}let a=o?t.dataset.framerSmoothScroll!==void 0:void 0;return e(i,o,Object.assign({},n,s),a),!0}function Ss(e){if(!gT(e))return e;let t=ev(e);if(!t)return;let{target:n,element:r,collectionItem:i}=t;if(n)return{webPageId:n,hash:r??void 0,pathVariables:d$(i)}}function d$(e){if(!e)return;let t={};for(let n in e.pathVariables){let r=e.pathVariables[n];r&&(t[n]=r)}return t}var vT=/:([a-z]\w*)/gi,h$=ke(void 0);function tv(){var e;let t=z(h$),n=(e=Wr())==null?void 0:e.pathVariables;return t||n}function yT(e,{webPageId:t,hash:n,pathVariables:r},i){if(t!==e.id||n)return!1;if(e.path&&e.pathVariables){let o=Object.assign({},i,r);for(let[,s]of e.path.matchAll(vT))if(!s||e.pathVariables[s]!==o[s])return!1}return!0}function Nu(e,t=void 0,n){let r=Jg(e),i=nv(t,r),o=r?void 0:"noopener";return e=e===""||il(e,r)?e:`https://${e}`,n?{href:e,target:i,rel:o,onClick(){n(e)}}:{href:e,target:i,rel:o}}function nv(e,t){return e!==void 0?e?"_blank":void 0:t?void 0:"_blank"}function Wa(e){var t,n;return`${e.scopeId}:${e.nodeId}:${(t=e.furthestExternalComponent)==null?void 0:t.scopeId}:${(n=e.furthestExternalComponent)==null?void 0:n.nodeId}`}var p$=class{constructor(){E(this,"collectedLinks",new Map),E(this,"nestingInfo",new Map)}clear(){this.collectedLinks.clear(),this.nestingInfo.clear()}getLinks(){let e=new Map;for(let[t,n]of this.nestingInfo){let r=this.collectedLinks.get(t);N(r,`Outer link not found: ${t}`);let i=Array.from(n).map(o=>{let s=this.collectedLinks.get(o);return N(s,`Inner link not found: ${o}`),s});e.set(r,i)}return e}collectNestedLink(e,t){if(uo&&!Dg()||!e.nodeId||!t.nodeId)return;this.collectedLinks.set(Wa(e),e),this.collectedLinks.set(Wa(t),t);let n=this.nestingInfo.get(Wa(e))??new Set;n.add(Wa(t)),this.nestingInfo.set(Wa(e),n)}},m$=new p$;function Es(){return he.current()===he.canvas}var Ok=ke(void 0);function g$(e,t,n,r,i,o){let s=z(Ok),a=mB(),l=re(()=>({scopeId:t,nodeId:n,furthestExternalComponent:a}),[t,n,a]),c=Ii(),u=Wr(),f=re(()=>{let v=Pi(r)?r:Ss(r);if(v)return pT(v,c,u)},[u,r,c]),{replaceNestedLinks:d}=Qg(),h=Es(),p=!!(d&&!h&&s?.nodeId&&l.nodeId),y=G(v=>{var b;if(!i.href)return;if(v.preventDefault(),v.stopPropagation(),/Mac|iPod|iPhone|iPad/u.test(ze.userAgent)?v.metaKey:v.ctrlKey){Au(i.href,"","_blank");return}f?(b=i.navigate)==null||b.call(i):Au(i.href,i.rel,i.target)},[i,f]),x=G(v=>{i.href&&(v.preventDefault(),v.stopPropagation(),Au(i.href,"","_blank"))},[i]),m=G(v=>{var b;i.href&&v.key==="Enter"&&(v.preventDefault(),v.stopPropagation(),f?(b=i.navigate)==null||b.call(i):Au(i.href,i.rel,i.target))},[i,f]);co(o,v=>{v!==null&&p&&(v.dataset.hydrated="true")},[p]);let g=e;return p&&(cn.forEach(e,v=>{Lk(v)&&(N(Mk(s),"outerLink must have nodeId defined at this point; this was verified with `shouldReplaceLink` above"),N(Mk(l),"innerLink must have nodeId defined at this point; this was verified with `shouldReplaceLink` above"),m$.collectNestedLink(s,l))}),g=cn.map(e,v=>{if(!Lk(v))return v;let b=Zu(v.type),{children:C,...S}=v.props,R={...S,"data-nested-link":!0,role:"link",tabIndex:0,onClick:y,onAuxClick:x,onKeyDown:m,as:S.as&&Zu(S.as)},T="ref"in v?v.ref:void 0;return Ur(b,{...R,ref:T},C)})),k(Ok.Provider,{value:l,children:g})}function Mk(e){return!at(e?.nodeId)}function Lk(e){return _t(e)&&(Zu(e.type)!==e.type||Zu(e.props.as)!==e.props.as)}function Au(e,t,n){let r=document.createElement("a");r.href=e,t&&(r.rel=t),n&&(r.target=n),document.body.appendChild(r),r.click(),r.remove()}function Zu(e){return e==="a"?"span":nc(e)&&nh(e)==="a"?Xe.span:e}function v$({nodeId:e,clickTrackingId:t,router:n,href:r,activeLocale:i}){return G(async o=>{var s,a,l,c,u;if(!((s=n.pageviewEventData)!=null&&s.current))return;let f=n.pageviewEventData.current,d=Pi(r)?r:Ss(r);if(!Pi(d))return jr("published_site_click",{...f,href:o?Vk(o):null,nodeId:e??null,trackingId:t??null,targetRoutePath:null,targetWebPageId:null,targetCollectionItemId:null});let h=d.webPageId,p=(a=n?.getRoute)==null?void 0:a.call(n,h),y=p?.path??null,x=null;if(p?.collectionId&&d.pathVariables&&((l=n.collectionUtils)!=null&&l[p.collectionId])){let m=await((u=(c=n.collectionUtils)[p.collectionId])==null?void 0:u.call(c)),[g]=Object.values(d.pathVariables);m&&typeof g=="string"&&(x=await m.getRecordIdBySlug(g,i||void 0)??null)}return jr("published_site_click",{...f,href:o?Vk(o):null,nodeId:e??null,trackingId:t??null,targetRoutePath:y,targetWebPageId:h,targetCollectionItemId:x})},[e,t,n,r,i])}function Vk(e){try{let t=new URL(e,xe.document.baseURI);return t.origin===xe.location.origin?t.pathname+t.search+t.hash:t.href}catch{return e}}function rv(e,t,n,r,i){var o,s;let a=(o=e.getRoute)==null?void 0:o.call(e,t);a&&FC(a?.page)&&a.page.preload(),(s=e.navigate)==null||s.call(e,t,n,r,i)}function bT(e,t,n,r,i,o,s){return async a=>{if(r(n),a.metaKey)return;let l=mf(a.target);!l||l.getAttribute("target")==="_blank"||(a.preventDefault(),rv(e,t,i,o,s))}}function y$(e,t,n,r,i,o,s){if(!r)return Nu(e,t,i);let a=dT(n,e,o);if(!a)return Nu(e,t,i);let{routeId:l,route:c,elementId:u,pathVariables:f}=a;if(!c)return Nu(e,t,i);let d=cf(c,{currentRoutePath:r.path,currentPathVariables:r.pathVariables,hash:u,pathVariables:f,preserveQueryParams:n.preserveQueryParams&&!el,siteCanonicalURL:n.siteCanonicalURL}),h=nv(t,!0);return{href:d,target:h,onClick:bT(n,l,d,i,u,f,s),navigate:()=>rv(n,l,u,f,s),"data-framer-page-link-current":!u&&r.id===l||void 0}}var DG=fT(Oe(function({children:t,href:n,openInNewTab:r,smoothScroll:i,clickTrackingId:o,nodeId:s,scopeId:a,motionChild:l,...c},u){let f=Ii(),d=Wr(),h=tv(),{activeLocale:p}=sl(),y=v$({nodeId:s,clickTrackingId:o,router:f,href:n,activeLocale:p}),x=re(()=>{if(!n)return{};let T=Pi(n)?n:Ss(n);if(!T)return{};if(ue(T))return y$(T,r,f,d,y,h,i);let{routeId:F,href:P,elementId:B,pathVariables:H}=a$(f,d,T,p,h),L=nv(r,!0);return{href:P,target:L,onClick:bT(f,F,P,y,B,H,i),navigate:()=>rv(f,F,B,H,i),"data-framer-page-link-current":d&&yT(d,T,h)||void 0}},[n,f,p,h,r,d,i,y]),m=_t(t)&&"ref"in t,g=Hg(m?t.ref:void 0);co(g,T=>{var F;if(T===null)return;let P=Pi(n)?n:Ss(n);if(!P)return;let B=pT(P,f,d);if(B)return(F=r$)==null?void 0:F(B,T)},[d,n,f]);let v=t,{navigate:b,...C}=x,S=!!b;return v=pf(u).cloneAsArray(v,T=>b$(T,{...c,...x$(C,l,S)},g)),v=g$(v,a,s,n,x,g),v}));function b$(e,t,n){let r={...e,...t,ref:n},{onTap:i,onClick:o}=t;if(!i&&!o)return r;let{onClick:s,onTap:a}=e;return{...r,onClick:o||s?l=>{on(s)&&s?.(l),o?.(l)}:void 0,onTap:i||a?(l,c)=>{on(a)&&a?.(l,c),i?.(l,c)}:void 0}}function x$(e,t,n){if(!!!(t&&C5()))return e;let{onClick:i,...o}=e;return i?n?{...o,onTap:i,onClick:w$}:{...o,onTap:i}:e}function w$(e){let t=mf(e.target);!t||t.getAttribute("target")==="_blank"||e.preventDefault()}function Ak(e,t,n,r,i){let o=Pi(e)?e:Ss(e);if(!Pi(o))return ue(e)?Nu(e).href:void 0;if(!t.getRoute||!t.currentRouteId)return;let s=t.getRoute(t.currentRouteId),{webPageId:a,hash:l,pathVariables:c,hashVariables:u,unresolvedHashSlugs:f,unresolvedPathSlugs:d}=o,h=t.getRoute(a),p=d||f?i?.(d,f):void 0,y=Object.assign({},t.currentPathVariables,n,c,p?.path),x=Object.assign({},t.currentPathVariables,n,u,p?.hash);return cf(h,{currentRoutePath:s?.path,currentPathVariables:t.currentPathVariables,hash:l,pathVariables:y,hashVariables:x,relative:!1,preserveQueryParams:t.preserveQueryParams,onlyHash:r,siteCanonicalURL:t.siteCanonicalURL})}var S$=class extends Fe{constructor(){super(...arguments),E(this,"state",{error:void 0})}static getDerivedStateFromError(e){return{error:e}}render(){return this.state.error?null:this.props.children}},k$="framer",C$=3,R$=30,T$=1e4;async function E$(){let e="0".repeat(C$),t=Date.now(),n=!0;for(;n;){let r=Date.now();if(r-t>T$){n=!1;return}let i=P$(R$),o=`${r}:${i}`,s=await F$(k$+o);if(s.startsWith(e))return{secret:o,hash:s}}}async function F$(e){let t=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(r=>r.toString(16).padStart(2,"0")).join("")}function P$(e){let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",r=t.length;for(let i=0;i<e;i++)n+=t.charAt(Math.floor(Math.random()*r));return n}function I$(e){return Array.from(e.keys()).map(encodeURIComponent).join(",")}function _$(e,t){try{let n=t.cookie.match("(^|;) ?framerFormsUTMTags=([^;]*)(;|$)");if(n!==null&&n[2]){let r=JSON.parse(decodeURIComponent(n[2]));if(!r||typeof r!="object")return;["utm_source","utm_medium","utm_campaign","utm_term","utm_content","gclid"].forEach(i=>{typeof r[i]=="string"&&e.append(i,r[i])})}}catch{}}function O$({router:e,nodeId:t,submitTrackingId:n}){var r;if(!((r=e?.pageviewEventData)!=null&&r.current))return;let o={...e.pageviewEventData.current,nodeId:t??null,trackingId:n??null};return jr("published_site_form_submit",o)}var M$={state:"pending"},L$={state:"success"},xT={state:"incomplete"},V$={state:"complete"},$m={state:"error"};function A$({state:e},{type:t}){switch(t){case"complete":return e==="error"?$m:V$;case"incomplete":return e==="error"?$m:xT;case"submit":return M$;case"success":return L$;case"error":return $m;default:we(t)}}function D$({state:e}){return e==="incomplete"||e==="complete"}function z$(e){e.preventDefault()}function B$(e,t){let n=il(e,!1)?e:`https://${e}`,r=document.createElement("a");r.href=n,r.target="_self",r.style.display="none","current"in t&&t.current&&(t.current.appendChild(r),r.click(),r.remove())}var gf=w.createContext(void 0),jG=w.forwardRef(function({action:t,children:n,redirectUrl:r,onSuccess:i,onError:o,onLoading:s,submitTrackingId:a,nodeId:l,...c},u){let f=w.useRef(null),d=u??f,h=Ii(),p=Wr(),y=tv(),[x,m]=w.useReducer(A$,xT),{activeLocale:g}=sl(),v=z(gf),b=w.useRef({onSuccess:i,onError:o,onLoading:s});b.current={onSuccess:i,onError:o,onLoading:s};async function C(F){var P,B;if(ue(F)){let ne=dT(h,F,y);if(!ne){B$(F,d);return}let{routeId:U,elementId:ee,pathVariables:ae}=ne;(P=h.navigate)==null||P.call(h,U,ee,ae);return}N(Pi(F),"Expected link to be either a LinkToWebPage or a string",F);let H=await s$(h,p,F,g,y),{routeId:L,elementId:Y,pathVariables:W}=H;(B=h.navigate)==null||B.call(h,L,Y,W)}let S=async F=>{var P,B,H,L,Y,W;if(F.preventDefault(),!t||!v)return;m({type:"submit"});let ne=new FormData(F.currentTarget);await Ei({priority:"user-blocking"}),_$(ne,xe.document);for(let[U,ee]of ne)ee instanceof File&&ne.delete(U);try{(B=(P=b.current).onLoading)==null||B.call(P),O$({router:h,nodeId:l,submitTrackingId:a,activeLocale:g}),await $$(t,ne,v),Ve(()=>m({type:"success"})),(L=(H=b.current).onSuccess)==null||L.call(H),r&&await C(r)}catch(U){Ve(()=>m({type:"error"})),(W=(Y=b.current).onError)==null||W.call(Y),console.error(U)}},R=F=>{let{target:P,currentTarget:B,key:H}=F;P instanceof HTMLTextAreaElement||H==="Enter"&&B.checkValidity()&&(F.preventDefault(),S(F))},T=async F=>{let P=F.currentTarget;await Ei({priority:"background"}),Ve(()=>m({type:wT(P)?"incomplete":"complete"}))};return k(Xe.form,{...c,onSubmit:D$(x)?S:z$,onKeyDown:R,onChange:T,ref:d,children:n(x)})});function wT(e){if(e.children.length===0)return!1;for(let t of e.children)if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement){if(t.required&&t.value==="")return!0}else if(wT(t))return!0;return!1}async function $$(e,t,n){let r=await E$();if(!r)throw new Error("Failed to calculate proof of work");let i=await fetch(e,{body:t,method:"POST",headers:{"Framer-Site-Id":n,"Framer-POW":r.secret,"Framer-Form-Fields":I$(t)}});if(i.ok)return i;{let o=await i.json(),s="Failed to submit form";throw N$(o)?new Error(`${s} - ${o.error.message}`):new Error(s)}}function N$(e){return typeof e=="object"&&e!==null&&"error"in e&&ge(e.error)&&"message"in e.error&&typeof e.error.message=="string"}function j$(e,t){if(e.routeId!==t.routeId)return!1;if(e.pathVariables===t.pathVariables)return!0;let n=e.pathVariables||{},r=t.pathVariables||{};return n.length===r.length&&Object.keys(n).every(i=>n[i]===r[i])}function H$({abTestId:e,framerSiteId:t,routeId:n,routePath:r,collectionItemId:i,localeCode:o}){return{abTestId:e,framerSiteId:t,routePath:r||"/",collectionItemId:i,framerLocale:o,webPageId:n}}var W$=(e,t,n,r,i)=>{let o=z(gf),s=V(),a=V(!0);return $(()=>{let l=async()=>{var u;let f=null;if(e?.collectionId&&r&&n){let d=await((u=r[e.collectionId])==null?void 0:u.call(r)),[h]=Object.values(n);d&&typeof h=="string"&&(f=await d.getRecordIdBySlug(h,i||void 0)??null)}return H$({abTestId:e?.abTestId,framerSiteId:o??null,routeId:e?.abTestingVariantId??t,routePath:e?.path,collectionItemId:f,localeCode:i?.code||null})};(async()=>{if(s.current=await l(),a.current){a.current=!1;return}jr("published_site_pageview",s.current)})();let c=async u=>{u.persisted&&(s.current=await l(),jr("published_site_pageview",s.current))};return I.addEventListener("pageshow",c),()=>{I.removeEventListener("pageshow",c)}},[e,t,n,r,i,o]),s},Dk="default";function U$(){let[e,t]=w.useState(0);return[e,w.useCallback(()=>t(n=>n+1),[])]}function zk(e,t,n){let r=e&&document.getElementById(e);if(r){K$(r,t);return}n||I.scrollTo(0,0)}function G$(e){let t=V([]);return He(()=>{var n;(n=t.current)!=null&&n.length&&(t.current.forEach(r=>r()),t.current=[])},[e]),G(n=>{t.current.push(n)},[])}function q$(){let e=wA(),t=UC("framer-route-change"),n=V(void 0);return G(async(r,i,o=!0)=>{var s,a;RA();let l=i!==void 0;(s=n.current)==null||s.abort();let c=o?new AbortController:void 0;n.current=c;let u=c?.signal,f=t();if(!l)return n.current=void 0,r(u),f;let d,h=new Promise((y,x)=>{d=y,u?.addEventListener("abort",x)}).catch(qu);if(await Ei({priority:"user-blocking",signal:u}).catch(qu),r(u),e(h,i,c),await f,u?.aborted)return;let p=(a=I.navigation)==null?void 0:a.transition;d();try{await p?.finished}catch(y){console.error("Navigation transition failed",y)}u?.aborted||WC()},[t,e])}function X$({defaultPageStyle:e,disableHistory:t,initialPathVariables:n,initialRoute:r,notFoundPage:i,collectionUtils:o,routes:s,initialLocaleId:a,locales:l=RV,preserveQueryParams:c=!1,LayoutTemplate:u,editorBar:f,siteCanonicalURL:d}){EA(),mA({disabled:t,routeId:r,initialPathVariables:n,initialLocaleId:a});let h=jC(),[p,y]=U$(),x=G$(p),m=q$(),g=V(r),v=V(n),b=V(a),C=b.current,S=re(()=>l.find(({id:K})=>C?K===C:K===Dk)??null,[C,l]),R=re(()=>({activeLocale:S,locales:l,setLocale:async K=>{let se;ue(K)?se=K:ge(K)&&(se=K.id);let fe=l.find(({id:Le})=>Le===Dk),ie=l.find(({id:Le})=>Le===se);if(!ie)return;let Ce=g.current,Pe=s[Ce];if(Pe)try{let Le=await bA({currentLocale:S,nextLocale:ie,route:Pe,routeId:Ce,defaultLocale:fe,pathVariables:v.current,collectionUtils:o,preserveQueryParams:c});if(!Le)return;let Ie=v.current,dt=GC(I.history.state)?I.history.state.paginationInfo:void 0,sn=Le.path;v.current=Le.pathVariables,b.current=ie.id,m(()=>{h(Ce,Ce,()=>Ve(y),!0)},async(de=!1)=>{if(sn)return XC({routeId:Ce,pathVariables:Ie,localeId:ie.id,paginationInfo:dt},sn,!1,de)},!1)}catch{}}}),[S,o,y,l,c,s,m,h]),T=G((K,se,fe,ie,Ce,Pe=!1,Le)=>{let Ie=g.current;if(g.current=K,v.current=ie,b.current=se,x(()=>{zk(fe,Pe,Ce)}),Ce){Ve(y);return}m(dt=>{h(Ie,K,()=>Ve(y),!0,dt)},Le)},[y,x,m,h]);gA(g,T);let F=G(async(K,se,fe,ie)=>{var Ce;let Pe=s[K];if(fe){let de=new Set,an=Pe?.path??"/";for(let St of an.matchAll(ao)){let lt=St[1];if(lt===void 0)throw new Error("A matching path variable should not be undefined");de.add(lt)}fe=Object.fromEntries(Object.entries(fe).filter(([St])=>de.has(St)))}let Le=rf(Pe,se),Ie=v.current,dt=b.current;if(j$({routeId:g.current,pathVariables:Ie},{routeId:K,pathVariables:fe})){let de=s[K];((Ce=I.history.state)==null?void 0:Ce.hash)!==se&&!t&&de&&await C1(K,de,{currentRoutePath:de.path,currentPathVariables:Ie,pathVariables:fe,hash:se,localeId:dt,preserveQueryParams:c,siteCanonicalURL:d},!0),zk(Le,ie,!1);return}if(!Pe)return;let sn=s[g.current];T(K,dt,Le,fe,!1,ie,t?void 0:async(de=!1)=>C1(K,Pe,{currentRoutePath:sn?.path,currentPathVariables:Ie,hash:se,pathVariables:fe,localeId:dt,preserveQueryParams:c,siteCanonicalURL:d},!1,de))},[s,T,t,c,d]),P=_C(s),B=g.current,H=v.current,L=s[B],Y=L?.path,W=W$(L,B,H,o,S),ne=re(()=>({navigate:F,getRoute:P,currentRouteId:B,currentPathVariables:H,routes:s,collectionUtils:o,preserveQueryParams:c,pageviewEventData:W,siteCanonicalURL:d}),[F,P,B,H,s,o,c,d,W]);if(!L)throw new Error(`Router cannot find route for ${B}`);let U=!S||!L.includedLocales||L.includedLocales.includes(S.id),ee=Y&&H?DC(Y,H):Y,ae=String(C)+ee,me=st(()=>({...e,display:"contents"}));return k(LV,{api:ne,children:k(YC.Provider,{value:R,children:be(qg,{children:[be(MA,{notFoundPage:i,defaultPageStyle:e,forceUpdateKey:p,children:[k(V1.Start,{}),k(Y$,{LayoutTemplate:u,routeId:B,style:e,children:K=>k(wn,{children:U?tg(L.page,K?me:e):i&&tg(i,e)},ae)})]}),f,k(CA,{}),k(V1.End,{})]})})})}function Y$({LayoutTemplate:e,routeId:t,style:n,children:r}){return e?k(e,{routeId:t,style:n,children:r}):r(!1)}function K$(e,t){let n=t?{behavior:"smooth",block:"start",inline:"nearest"}:void 0;e.scrollIntoView(n)}function Q$(e){return new Promise((t,n)=>{try{new URL(e);let r=new Image;r.onload=()=>t(),r.onerror=n,r.src=e}catch(r){n(r)}})}function Z$(e){return typeof e=="object"&&e!==null}function J$(e,t){if(t==="")return e;let n=t.split(/[.[\]]+/u).filter(i=>i.length>0),r=e;for(let i of n){if(!Z$(r))return;r=r[i]}return r}function Ua(e){return`${e.credentials}:${e.url}`}var eN={status:"loading",data:void 0};function tN(e){return ue(e)&&!Number.isNaN(Number(e))}function nN(e,t){switch(e){case"string":return ue(t)||Ae(t);case"color":return ue(t);case"boolean":return Pg(t);case"number":return Ae(t)||tN(t);case"link":case"image":return ue(t)&&il(t,!1);default:{let n=e;return!1}}}function rN(e,t){if(e.status==="loading")return t.fallbackValue;if(e.status==="error")throw e.error;let n=J$(e.data,t.resultKeyPath);if(at(n))throw new Error(`Key '${t.resultKeyPath}' not found in response`);if(!nN(t.resultOutputType,n))throw new Error(`Resolved value '${n}' is not valid for type '${t.resultOutputType}'`);return n}function Nm(e,t){if(he.current()===he.canvas)return!1;let n=t===0?500:t*1e3,r=Date.now(),i=e+n;return r>=i}var Bk=()=>{},zr,ju,eo,to,Ga,Ci,ST=class Hu{constructor(){E(this,"responseValues",new Map),Ln(this,zr,new Map),Ln(this,ju,new Set),Ln(this,eo,new Map),Ln(this,to,new Map),Ln(this,Ga,new Map),Ln(this,Ci,new Map),E(this,"persistCache",uz(()=>{let t={};for(let[n,r]of this.responseValues){if(!r||r.status!=="success")continue;let i=ye(this,eo).get(n);if(!i||i===0)continue;let o=ye(this,to).get(n);o&&(o&&Nm(o,i)||(t[n]=[o,i,r.data]))}try{localStorage.setItem(Hu.cacheKey,JSON.stringify(t))}catch{}},500))}unmount(){for(let[t,n]of ye(this,Ci))clearInterval(n),ye(this,Ci).delete(t)}stopQueryRefetching(t){let n=Ua(t),r=ye(this,Ci).get(n);r&&(clearInterval(r),ye(this,Ci).delete(n))}startQueryRefetching(t){let n=Ua(t),r=ye(this,Ci).get(n),i=ye(this,eo).get(n);if(r||!i)return;let o=xe.setInterval(()=>{if(document.visibilityState==="hidden")return;let s=ye(this,to).get(n);!i||!s||this.fetchWithCache({...t,cacheDuration:i})},i);ye(this,Ci).set(n,o)}hydrateCache(){try{let t=localStorage.getItem(Hu.cacheKey);if(!t)return;let n=JSON.parse(t);if(typeof n!="object")throw new Error("Invalid cache data");for(let r in n){let i=n[r];if(!Array.isArray(i)||i.length!==3)throw new Error("Invalid cache data");let[o,s,a]=i;Nm(o,s)||(ye(this,to).set(r,o),ye(this,eo).set(r,s),this.responseValues.set(r,{status:"success",data:a}))}}catch{try{localStorage.removeItem(Hu.cacheKey)}catch{}}}setResponseValue(t,n){this.responseValues.set(t,n),this.persistCache();let r=ye(this,zr).get(t);if(r)for(let i of r)i()}async prefetch(t){if(!gr()||!il(t.url,!1))return;let n=Ua(t);ye(this,ju).add(n),await this.fetchWithCache(t);let r=this.getValue(n);if(!r||r.status==="loading")throw new Error("Unexpected result status for prefetch");let i=ye(this,zr).get(n);for(let s of i??[])s();let o=rN(r,t);return t.resultOutputType==="image"&&ue(o)&&await Q$(o).catch(Bk),o}async fetchWithCache(t){if(!gr())return;let n=Ua(t),r=ye(this,Ga).get(n);if(r)return r;let i=ye(this,to).get(n),o=i&&Nm(i,t.cacheDuration);if(this.responseValues.has(n)&&!o)return;this.responseValues.get(n)||this.setResponseValue(n,eN);let l=(async()=>{try{let c=await fetch(t.url,{method:"GET",credentials:t.credentials});if(!c.ok){this.setResponseValue(n,{status:"error",error:new Error("Invalid Response Status"),data:void 0});return}let u=await c.json();this.setResponseValue(n,{status:"success",data:u}),ye(this,to).set(n,Date.now())}catch(c){this.setResponseValue(n,{status:"error",error:c,data:void 0})}})();return ye(this,Ga).set(n,l),l.finally(()=>{ye(this,Ga).delete(n)}),l}getValue(t,n=!1){if(!(n&&!ye(this,ju).has(t)))return this.responseValues.get(t)}subscribe(t,n,r=!1){let{url:i,cacheDuration:o}=t;if(!il(i,!1))return Bk;let s=Ua(t),a=ye(this,eo).get(s);(!a||o<a)&&ye(this,eo).set(s,o),r||(this.startQueryRefetching(t),this.fetchWithCache(t));let l=ye(this,zr).get(s)??new Set;return l.add(n),ye(this,zr).set(s,l),()=>{let c=ye(this,zr).get(s);c&&(c.delete(n),c.size===0&&ye(this,zr).delete(s),ye(this,zr).size===0&&this.stopQueryRefetching(t))}}};zr=new WeakMap;ju=new WeakMap;eo=new WeakMap;to=new WeakMap;Ga=new WeakMap;Ci=new WeakMap;E(ST,"cacheKey","framer-fetch-client-cache");var iN=ST,oN=ke(void 0),sN=ke(!0),aN=({children:e,client:t})=>{let[n]=Re(()=>t??new iN),[r,i]=Re(!0);return $(()=>(n.hydrateCache(),Ve(()=>{i(!1)}),()=>n.unmount()),[n]),k(sN.Provider,{value:r,children:k(oN.Provider,{value:n,children:e})})},lN,cN,uN,fN,dN;lN=new WeakMap;cN=new WeakMap;uN=new WeakMap;fN=new WeakMap;dN=new WeakMap;function YG({RootComponent:e,isWebsite:t,routeId:n,framerSiteId:r,pathVariables:i,routes:o,collectionUtils:s,notFoundPage:a,isReducedMotion:l=!1,includeDataObserver:c=!1,localeId:u,locales:f,preserveQueryParams:d,EditorBar:h,defaultPageStyle:p,disableHistory:y,LayoutTemplate:x,siteCanonicalURL:m}){if(w.useEffect(()=>{t||sR.start()},[]),t)return k(Ib,{reducedMotion:l?"user":"never",children:k(aN,{children:k(EB,{children:k(gf.Provider,{value:r,children:k(X$,{initialRoute:n,initialPathVariables:i,initialLocaleId:u,routes:o,collectionUtils:s,notFoundPage:a,locales:f,defaultPageStyle:p??{minHeight:"100vh",width:"auto"},preserveQueryParams:d,editorBar:k(hN,{EditorBar:h}),disableHistory:y,LayoutTemplate:x,siteCanonicalURL:m})})})})});{let g=c?hz:w.Fragment;return k(g,{children:k(VV,{routes:o,children:k(cz,{children:w.isValidElement(e)?e:w.createElement(e,{key:n})})})})}}function hN({EditorBar:e}){let t=Qg(),[n,r]=Re(!1),i=z(gf),o=re(()=>{let s={},a;for(a in t)t.hasOwnProperty(a)&&a.startsWith("editorBar")&&(s[a]=t[a]);return s},[t]);return $(()=>{Ve(()=>{r(!0)})},[]),!e||!i||!n?null:k(S$,{children:k(xr,{children:k(e,{framerSiteId:i,features:o})})})}var QG=fT(Oe(function({links:t,children:n,...r},i){let o=Ii(),{activeLocale:s}=sl(),a=pf(i),l=[],c=t.map(f=>{if(f)return ue(f)?Ak(f,o):Ak(f.href,o,f.implicitPathVariables,f.refKey,(d,h)=>{function p(y){let x={};for(let m in y){let g=y[m];N(o.collectionUtils,"collectionUtils should be defined"),N(g,"unresolvedSlug be defined");let v=Zg(g,o.collectionUtils,s),b=v.preload();if(b)l.push(b);else{let C=v.read();C&&(x[m]=C)}}return x}return{path:p(d),hash:p(h)}})});if(l.length>0)throw Promise.allSettled(l);let u=n(c);return a(u,r)}));function pN(e){return{trace(...t){var n;return(n=yt.getLogger(e))==null?void 0:n.trace(...t)},debug(...t){var n;return(n=yt.getLogger(e))==null?void 0:n.debug(...t)},info(...t){var n;return(n=yt.getLogger(e))==null?void 0:n.info(...t)},warn(...t){var n;return(n=yt.getLogger(e))==null?void 0:n.warn(...t)},error(...t){var n;return(n=yt.getLogger(e))==null?void 0:n.error(...t)}}}function mN(e){return CT(e)||vN(e)}function gN(e){return lf(e)&&e.every(ge)}function kT(e){return ge(e)&&on(e.read)&&on(e.preload)}function CT(e){return gN(e)||kT(e)}function iv(e){return ge(e)&&ge(e.schema)}function RT(e){return ge(e)&&ge(e.collectionByLocaleId)}function vN(e){return iv(e)||RT(e)}async function $k(e,t){return kT(e)?(await e.preload(t),e.read(t)):e}var yN=class{constructor(e,t){this.collection=e,this.locale=t,E(this,"schema"),E(this,"indexes",[]);let n=e5(e);N(n,"Collection does not have properties");let r={id:{type:"string",isNullable:!1}},i=Object.entries(n);for(let[o,s]of i){if(!s)continue;let a=s.type;N(a!=="array","Array properties are not supported"),N(a!=="object","Object properties are not supported"),r[o]={type:a,isNullable:!0}}this.schema=r}getDatabaseItem(e,t){let n={};for(let r in this.schema){let i=e[r];if(zV(i))continue;let o=this.schema[r];at(o)||(N(o.type!=="unknown","Invalid definition type"),n[r]={type:o.type,value:i})}return{pointer:t,data:n}}async resolveRichText(e){if(Kg.is(e)){let t=e.preload();return t&&await t,e.read()}return e}async scanItems(){return(await $k(this.collection,this.locale)).map((t,n)=>{let r=String(n);return this.getDatabaseItem(t,r)})}async resolveItems(e){let t=await $k(this.collection,this.locale);return e.map(n=>{let r=Number(n),i=t[r];return N(i,"Can't find collection item"),this.getDatabaseItem(i,n)})}compareItems(e,t){return Number(e.pointer)-Number(t.pointer)}};function bN(e,t,n){let r=e.value.length,i=t.value.length;if(r<i)return-1;if(r>i)return 1;for(let o=0;o<r;o++){let s=e.value[o],a=t.value[o],l=ro(s,a,n);if(l!==0)return l}return 0}function xN(e,t){switch(e?.type){case"array":return{type:"array",value:e.value.map(r=>je.cast(r,t.definition))}}return null}function wN(e,t){return e.value<t.value?-1:e.value>t.value?1:0}function TT(e){switch(e?.type){case"boolean":return e;case"number":case"string":return{type:"boolean",value:!!e.value}}return null}function Hr(e){let t=TT(e);return t?.value??!1}function SN(e,t){return e.value<t.value?-1:e.value>t.value?1:0}function kN(e){switch(e?.type){case"color":return e}return null}function CN(e,t){let n=new Date(e.value),r=new Date(t.value);return n<r?-1:n>r?1:0}function RN(e){switch(e?.type){case"date":return e;case"number":case"string":{let t=new Date(e.value);return OC(t)?{type:"date",value:t.toISOString()}:null}}return null}function TN(e,t){return e.value<t.value?-1:e.value>t.value?1:0}function EN(e){switch(e?.type){case"enum":return e;case"string":return{type:"enum",value:e.value}}return null}function FN(e,t){return e.value<t.value?-1:e.value>t.value?1:0}function PN(e){switch(e?.type){case"file":return e}return null}function IN(e,t){let n=JSON.stringify(e.value),r=JSON.stringify(t.value);return n<r?-1:n>r?1:0}function _N(e){switch(e?.type){case"link":return e;case"string":try{let{protocol:t}=new URL(e.value);return t==="http:"||t==="https:"?{type:"link",value:e.value}:null}catch{return null}}return null}function ON(e,t){return e.value<t.value?-1:e.value>t.value?1:0}function ET(e){switch(e?.type){case"number":case"string":{let t=Number(e.value);return Number.isFinite(t)?{type:"number",value:t}:null}}return null}function FT(e){let t=ET(e);return t?.value??null}function MN(e,t,n){let r=Object.keys(e.value).sort(),i=Object.keys(t.value).sort();if(r.length<i.length)return-1;if(r.length>i.length)return 1;for(let o=0;o<r.length;o++){let s=r[o],a=i[o];if(s<a)return-1;if(s>a)return 1;let l=e.value[s]??null,c=t.value[a]??null,u=ro(l,c,n);if(u!==0)return u}return 0}function LN(e,t){switch(e?.type){case"object":{let n={},r=Object.entries(t.definitions);for(let[i,o]of r){let s=e.value[i]??null;n[i]=je.cast(s,o)}return{type:"object",value:n}}}return null}function VN(e,t){let n=JSON.stringify(e.value),r=JSON.stringify(t.value);return n<r?-1:n>r?1:0}function AN(e){switch(e?.type){case"responsiveimage":return e}return null}function DN(e,t){let n=e.value,r=t.value;return n<r?-1:n>r?1:0}function zN(e){switch(e?.type){case"richtext":return e}return null}function BN(e,t,n){let r=e.value,i=t.value;return n.type===0&&(r=e.value.toLowerCase(),i=t.value.toLowerCase()),r<i?-1:r>i?1:0}function PT(e){switch(e?.type){case"string":return e;case"number":return{type:"string",value:String(e.value)}}return null}function cs(e){let t=PT(e);return t?.value??null}var je={cast(e,t){switch(t.type){case"array":return xN(e,t);case"boolean":return TT(e);case"color":return kN(e);case"date":return RN(e);case"enum":return EN(e);case"file":return PN(e);case"link":return _N(e);case"number":return ET(e);case"object":return LN(e,t);case"responsiveimage":return AN(e);case"richtext":return zN(e);case"string":return PT(e);case"unknown":return e;default:we(t,"Unsupported cast")}},parse(e){return Pg(e)?{type:"boolean",value:e}:OC(e)?{type:"date",value:e.toISOString()}:Ae(e)?{type:"number",value:e}:ue(e)?{type:"string",value:e}:lf(e)?{type:"array",value:e.map(je.parse)}:null},equal(e,t,n){return e?.type!==t?.type?!1:ro(e,t,n)===0},lessThan(e,t,n){return e?.type!==t?.type?!1:ro(e,t,n)<0},lessThanOrEqual(e,t,n){return e?.type!==t?.type?!1:ro(e,t,n)<=0},greaterThan(e,t,n){return e?.type!==t?.type?!1:ro(e,t,n)>0},greaterThanOrEqual(e,t,n){return e?.type!==t?.type?!1:ro(e,t,n)>=0},in(e,t,n){return t?.type!=="array"?!1:t.value.some(r=>je.equal(r,e,n))},indexOf(e,t,n){return e?.type!=="array"?-1:e.value.findIndex(r=>je.equal(r,t,n))},contains(e,t,n){let r=cs(e),i=cs(t);return hr(r)||hr(i)?!1:(n.type===0&&(r=r.toLowerCase(),i=i.toLowerCase()),r.includes(i))},startsWith(e,t,n){let r=cs(e),i=cs(t);return hr(r)||hr(i)?!1:(n.type===0&&(r=r.toLowerCase(),i=i.toLowerCase()),r.startsWith(i))},endsWith(e,t,n){let r=cs(e),i=cs(t);return hr(r)||hr(i)?!1:(n.type===0&&(r=r.toLowerCase(),i=i.toLowerCase()),r.endsWith(i))},length(e){switch(e?.type){case"array":return e.value.length}return 0},stringify(e){if(e===null)return"null";switch(e.type){case"array":return`[${e.value.map(je.stringify).join(", ")}]`;case"boolean":case"number":return String(e.value);case"string":return`'${e.value}'`;case"enum":return`'${e.value}' /* Enum */`;case"color":return`'${e.value}' /* Color */`;case"date":return`'${e.value}' /* Date */`;case"richtext":return"RichText";case"responsiveimage":return"ResponsiveImage";case"file":return"File";case"link":return ue(e.value)?`'${e.value}' /* Link */`:"Link";case"object":return"Object";default:we(e)}}};function ro(e,t,n){if(hr(e)||hr(t))return N(e===t),0;switch(e.type){case"array":return N(e.type===t.type),bN(e,t,n);case"boolean":return N(e.type===t.type),wN(e,t);case"color":return N(e.type===t.type),SN(e,t);case"date":return N(e.type===t.type),CN(e,t);case"enum":return N(e.type===t.type),TN(e,t);case"file":return N(e.type===t.type),FN(e,t);case"link":return N(e.type===t.type),IN(e,t);case"number":return N(e.type===t.type),ON(e,t);case"object":return N(e.type===t.type),MN(e,t,n);case"responsiveimage":return N(e.type===t.type),VN(e,t);case"richtext":return N(e.type===t.type),DN(e,t);case"string":return N(e.type===t.type),BN(e,t,n);default:we(e)}}var Nk={type:"unknown",isNullable:!0};function $N(){return 25}function NN(){return 100*125}var Ju=1e3,pe=class lg{constructor(t){this.network=t}static estimate(t,n){let r=$N(),i=NN(),o=t*r+n/i;return new lg(o)}static max(t,n){let r=Math.max(t.network,n.network);return new lg(r)}static compare(t,n){return t.network<n.network?-1:t.network>n.network?1:0}add(t){return this.network+=t.network,this}toString(){return`${this.network}ms`}};var IT=class{constructor(e,t){this.id=e,this.relational=t,E(this,"nodes",[]),E(this,"winners",new Map)}addNode(e){this.nodes.push(e),e.setGroup(this)}getWinner(e){let t=e.getHash(),n=this.winners.get(t);if(n)return n;let r=new jN;return this.winners.set(t,r),r}getOptimized(e){let t=this.getWinner(e);N(t.node,"Group not optimized");let n=t.node.getOptimized(e);return n.setGroup(this),n}},jN=class{constructor(){E(this,"node"),E(this,"cost",new pe(1/0)),E(this,"nodes",[])}update(e,t){this.nodes.push(e),pe.compare(t,this.cost)<0&&(this.node=e,this.cost=t)}};function _T(e){let t=e.next();return N(t.done,"Generator must not yield"),t.value}async function vf(e,t=e.next()){for(;!t.done;){let n=await t.value;t=e.next(n)}return t.value}function*Je(e){let t={},n=Object.keys(e),r=[];for(let i of n){let o=e[i];if(MC(o)){let s=o.next();s.done?t[i]=s.value:r.push(vf(o,s).then(a=>{t[i]=a}))}else t[i]=o}return r.length>0&&(yield Promise.all(r)),t}function*ef(e){let t=[],n=e.keys(),r=[];for(let i of n){let o=e[i];if(MC(o)){let s=o.next();s.done?t[i]=s.value:r.push(vf(o,s).then(a=>{t[i]=a}))}else t[i]=o}return r.length>0&&(yield Promise.all(r)),t}var OT=class{constructor(e){this.isSynchronous=e}},On=class extends OT{constructor(){super(...arguments),E(this,"group")}getGroup(){return N(this.group,"Node must be in a group"),this.group}setGroup(e){N(!this.group,"Node is already in a group"),this.group=e}evaluateSync(){let e=this.evaluate(void 0);return _T(e)}evaluateAsync(){let e=this.evaluate(void 0);return vf(e)}};function HN(e){return ge(e)&&on(e.getHash)}function ve(e,...t){let n=t.map(r=>{let i=r instanceof LT;N(!i,"Pass CollectionMetadata.id instead");let o=r instanceof qa;N(!o,"Pass FieldMetadata.id instead");let s=r instanceof VT;N(!s,"Pass IndexMetadata.id instead");let a=r instanceof On;N(!a,"Pass RelationalNode.group.id instead");let l=r instanceof IT;return N(!l,"Pass Group.id instead"),HN(r)?r.getHash():JSON.stringify(r)});return`${e}(${n.join(", ")})`}var ov=class{constructor(e,t){this.data=e,this.pointer=t,E(this,"cached")}resolve(){return this.cached??=this.data.resolveRichText(this.pointer),this.cached}},ks="index",MT=class extends Set{merge(e){for(let t of e)this.add(t)}equals(e){if(this===e)return!0;if(this.size!==e.size)return!1;for(let t of this)if(!e.has(t))return!1;return!0}subsetOf(e){if(this===e)return!0;if(this.size>e.size)return!1;for(let t of this)if(!e.has(t))return!1;return!0}getHash(){let e=[];for(let t of this)e.push(t.id);return e.sort((t,n)=>t-n),ve(this.name,...e)}};var LT=class{constructor(e,t,n){this.id=e,this.name=t,this.data=n,E(this,"indexes",new WN),E(this,"fields",new J)}};var VT=class{constructor(e,t,n,r,i,o){this.id=e,this.data=t,this.collection=n,this.lookupNodes=r,this.constraint=i,this.ordering=o,E(this,"resolvedFields",new J);for(let s in t.schema)for(let a of n.fields)a.name===s&&this.resolvedFields.add(a)}},WN=class extends MT{constructor(){super(...arguments),E(this,"name","Indexes")}};var qa=class{constructor(e,t,n,r){this.id=e,this.name=t,this.definition=n,this.collection=r}getValue(e){N(this.name,"Can only get value of field with a name");let t=e.data[this.name];return t?.type==="richtext"?(N(this.collection,"Rich text field must have a collection"),{type:"richtext",value:new ov(this.collection.data,t.value)}):t??null}},J=class extends MT{constructor(){super(...arguments),E(this,"name","Fields")}},jm=class{constructor(e,t="asc"){this.field=e,this.direction=t}getHash(){return ve("OrderingField",this.field.id,this.direction)}},pr=class{constructor(e){E(this,"fields",[]),e&&this.merge(e)}get length(){return this.fields.length}getHash(){return ve("Ordering",...this.fields)}push(e){this.fields.push(e)}merge(e){this.fields.push(...e.fields)}equals(e){return this===e?!0:this.length!==e.length?!1:this.getHash()===e.getHash()}providedByFields(e){for(let{field:t}of this.fields)if(!e.has(t)&&t.name!==ks)return!1;return!0}},xn=class{constructor(e,t){this.ordering=e,this.resolvedFields=t}getHash(){return ve("RequiredProps",this.ordering,this.resolvedFields)}get isMinimal(){return this.ordering.length===0&&this.resolvedFields.size===0}canProvide(e){return this.canProvideOrdering(e)&&this.canProvideResolvedFields(e)}canProvideOrdering(e){return this.ordering.length===0?!0:e.canProvideOrdering(this.ordering)}canProvideResolvedFields(e){return this.resolvedFields.size===0?!0:e.canProvideResolvedFields(this.resolvedFields)}},UN=class cg{constructor(t){this.parent=t,E(this,"node"),E(this,"ordering"),E(this,"fields",[])}takeNode(){let t=this.node;return N(t,"Node is missing"),this.node=void 0,t}setNode(t){N(!this.node,"Node already set"),this.node=t}setOrdering(t){this.ordering=t}push(){return new cg(this)}replace(){return new cg(this.parent)}addField(t){this.fields.push(t)}addFieldsFromScope(t){for(let n of t.fields)this.addField(n)}resolveField(t,n){var r;let i=[];for(let o of this.fields)o.name===t&&(n&&o.collectionName!==n||i.push(o));if(i.length===1)return i[0];if(i.length>1)throw new Error("Ambiguous fields");return(r=this.parent)==null?void 0:r.resolveField(t,n)}has(t){var n;return this.fields.includes(t)?!0:((n=this.parent)==null?void 0:n.has(t))??!1}getRequiredOrdering(){return this.ordering??new pr}getRequiredResolvedFields(){let t=new J;for(let{field:n}of this.fields)n.collection&&t.add(n);return t}getRequiredProps(){let t=this.getRequiredOrdering(),n=this.getRequiredResolvedFields();return new xn(t,n)}getNamedFields(){let t={};for(let{name:n,field:r}of this.fields)t[n]=r;return t}getSingleField(){N(this.fields.length===1,"Scope must contain exactly one field");let t=this.fields[0];return N(t,"Field must exist"),t.field}},vr=class{constructor(){E(this,"pointers",new Map),E(this,"values",new Map)}getKey(){let e=[];for(let[t,n]of this.pointers)e.push(`${t.id}-${n}`);return e.sort().join("-")}addValue(e,t){this.values.set(e,t)}getValue(e){return this.values.get(e)??null}mergeValues(e){for(let[t,n]of e.values)this.addValue(t,n)}addPointer(e,t){this.pointers.set(e,t)}getPointer(e){return this.pointers.get(e)}mergePointers(e){for(let[t,n]of e.pointers)this.addPointer(t,n)}merge(e){this.mergeValues(e),this.mergePointers(e)}},Cs=class no{constructor(t,n=[]){this.fields=t,this.tuples=n}push(t){this.tuples.push(t)}filter(t){let n=this.tuples.filter(t);return new no(this.fields,n)}map(t,n){let r=this.tuples.map(n);return new no(t,r)}sort(t){let n=Array.from(this.tuples).sort(t);return new no(this.fields,n)}slice(t,n){let r=this.tuples.slice(t,n);return new no(this.fields,r)}union(t){let n=new J;for(let o of this.fields)t.fields.has(o)&&n.add(o);let r=new Set,i=new no(n);for(let o of this.tuples){let s=o.getKey();r.add(s),i.push(o)}for(let o of t.tuples){let s=o.getKey();r.has(s)||i.push(o)}return i}intersection(t){let n=new J;for(let o of this.fields)t.fields.has(o)&&n.add(o);let r=new Set,i=new no(n);for(let o of this.tuples){let s=o.getKey();r.add(s)}for(let o of t.tuples){let s=o.getKey();r.has(s)&&i.push(o)}return i}},ug=class{constructor(e,t){this.input=e,this.field=t}getHash(){return ve("ProjectionField",this.input,this.field.id)}},jk=class AT extends On{constructor(t,n,r){let i=t.isSynchronous;for(let o of n)i&&=o.input.isSynchronous;super(i),this.input=t,this.projections=n,this.passthrough=r,E(this,"inputGroup"),this.inputGroup=t.getGroup()}getHash(){return ve("RelationalProject",this.inputGroup.id,...this.projections,this.passthrough)}getOutputFields(){let t=new J;t.merge(this.passthrough);for(let n of this.projections)t.add(n.field);return t}canProvideOrdering(t){let n=new J;for(let r of this.projections)n.add(r.field);for(let{field:r}of t.fields)if(n.has(r))return!1;return!0}canProvideResolvedFields(){return!0}getInputRequiredProps(t){let n=new J(t.resolvedFields);for(let r of this.projections)n.merge(r.input.referencedFields),n.delete(r.field);return new xn(t.ordering,n)}optimize(t,n){let r=this.getInputRequiredProps(n),i=t.optimizeGroup(this.inputGroup,r),o=new pe(0);for(let s of this.projections){let a=s.input.optimize(t);o=pe.max(o,a)}return new pe(0).add(pe.max(i,o))}getOptimized(t){let n=this.getInputRequiredProps(t),r=this.inputGroup.getOptimized(n),i=this.projections.map(o=>{let s=o.input.getOptimized();return new ug(s,o.field)});return new AT(r,i,this.passthrough)}*evaluate(t){let n=this.getOutputFields(),r=yield*this.input.evaluate(t),i=yield*ef(r.tuples.map(o=>ef(this.projections.map(s=>Je({field:s.field,value:s.input.evaluate(t,o)})))));return r.map(n,(o,s)=>{let a=new vr;a.mergePointers(o);for(let c of this.passthrough){let u=o.getValue(c);a.addValue(c,u)}let l=i[s];N(l,"Projections must exist");for(let{field:c,value:u}of l)a.addValue(c,u);return a})}},Fs={type:0},nt=class extends OT{constructor(e,t,n){super(n),this.referencedFields=e,this.referencedOuterFields=t,this.isSynchronous=n}evaluateSync(){let e=this.evaluate(void 0,void 0);return _T(e)}evaluateAsync(){let e=this.evaluate(void 0,void 0);return vf(e)}},GN={type:0},sv=class{constructor(e,t){this.when=e,this.then=t}getHash(){return ve("CaseCondition",this.when,this.then)}},qN=class DT extends nt{constructor(t,n,r){let i=new J,o=new J,s=!0;t&&(i.merge(t.referencedFields),o.merge(t.referencedOuterFields),s&&=t.isSynchronous);for(let{when:a,then:l}of n)i.merge(a.referencedFields),o.merge(a.referencedOuterFields),s&&=a.isSynchronous,i.merge(l.referencedFields),o.merge(l.referencedOuterFields),s&&=l.isSynchronous;r&&(i.merge(r.referencedFields),o.merge(r.referencedOuterFields),s&&=r.isSynchronous),super(i,o,s),this.input=t,this.conditions=n,this.otherwise=r,E(this,"definition",{type:"unknown",isNullable:!0})}getHash(){return ve("ScalarCase",this.input,...this.conditions,this.otherwise)}optimize(t){var n,r;(n=this.input)==null||n.optimize(t);for(let i of this.conditions)i.when.optimize(t),i.then.optimize(t);return(r=this.otherwise)==null||r.optimize(t),new pe(0)}getOptimized(){var t,n;let r=(t=this.input)==null?void 0:t.getOptimized(),i=this.conditions.map(s=>{let a=s.when.getOptimized(),l=s.then.getOptimized();return new sv(a,l)}),o=(n=this.otherwise)==null?void 0:n.getOptimized();return new DT(r,i,o)}*evaluate(t,n){var r,i;let{input:o,conditions:s,otherwise:a}=yield*Je({input:((r=this.input)==null?void 0:r.evaluate(t,n))??null,conditions:ef(this.conditions.map(l=>Je({when:l.when.evaluate(t,n),then:l.then.evaluate(t,n)}))),otherwise:((i=this.otherwise)==null?void 0:i.evaluate(t,n))??null});if(this.input){for(let{when:l,then:c}of s)if(je.equal(o,l,GN))return c}else for(let{when:l,then:c}of s)if(Hr(l))return c;return a}},XN=class{constructor(e,t,n){this.normalizer=e,this.query=t,this.locale=n,E(this,"collectionId",0),E(this,"indexId",0),E(this,"fieldId",0),E(this,"subqueries",[])}build(){let e=new UN;return this.buildQuery(e,this.query)}buildQuery(e,t){let n={type:"Select",...t};return this.buildSelect(e,n)}buildSelect(e,t){let n=this.buildFrom(e,t.from),r=n.getRequiredOrdering();if(t.where){let l=n.takeNode(),c=this.buildExpression(n,t.where),u=this.normalizer.newRelationalFilter(l,c);n.setNode(u)}let i=[],o=new J,s;if(t.orderBy){s=new pr;for(let l of t.orderBy)if(l.type==="Identifier"){let c=n.resolveField(l.name,l.collection);if(at(c))continue;o.add(c.field);let u=new jm(c.field,l.direction);s.push(u)}else{let c=this.buildExpression(n,l),u=this.fieldId++,f=new qa(u,void 0,c.definition,void 0),d=new ug(c,f);i.push(d);let h=new jm(f,l.direction);s.push(h)}s.merge(r)}else s=r;let a=this.buildSelectList(n,t.select,o,i);if(a.setOrdering(s),t.offset){let l=a.takeNode(),c=this.buildExpression(e,t.offset),u=this.normalizer.newRelationalOffset(l,c,s);a.setNode(u)}if(t.limit){let l=a.takeNode(),c=this.buildExpression(e,t.limit),u=this.normalizer.newRelationalLimit(l,c,s);a.setNode(u)}return a}buildSelectList(e,t,n,r){let i=e.push(),o=new J(n),s=[...r];for(let c of t)if(c.type==="Identifier"){let u=e.resolveField(c.name,c.collection);if(at(u))continue;o.add(u.field),i.addField({...u,name:c.alias??u.name})}else{let u=this.buildExpression(e,c);N(c.alias,"Subqueries should have an alias");let f=this.fieldId++,d=c.alias,h=new qa(f,d,u.definition,void 0),p=new ug(u,h);s.push(p),i.addField({field:h,name:d})}let a=e.takeNode(),l=this.normalizer.newRelationalProject(a,s,o);return i.setNode(l),i}buildFrom(e,t){switch(t.type){case"Collection":return this.buildCollection(e,t);case"LeftJoin":return this.buildJoin(e,t);default:we(t,"Unsupported from type")}}buildCollection(e,t){let n=e.push(),r=YN(t.data,this.locale),i=t.alias,o=this.collectionId++,s=new LT(o,i,r);for(let[l,c]of Object.entries(r.schema)){let u=this.fieldId++,f=new qa(u,l,c,s);n.addField({field:f,name:l,collectionName:i}),s.fields.add(f)}{let l={type:"number",isNullable:!1},c=this.fieldId++,u=new qa(c,ks,l,s);n.addField({field:u,name:ks,collectionName:i});let f=new pr,d=new jm(u);f.push(d),n.setOrdering(f)}for(let l of r.indexes){let c=[];for(let p of l.fields){let y=this.buildExpression(n,p);c.push(y)}let u;l.where&&(u=this.buildExpression(n,l.where));let f=new pr,d=this.indexId++,h=new VT(d,l,s,c,u,f);s.indexes.add(h)}let a=this.normalizer.newRelationalScan(s);return n.setNode(a),n}buildJoin(e,t){let n=this.buildFrom(e,t.left),r=this.buildFrom(e,t.right),i=new pr,o=n.getRequiredOrdering();i.merge(o);let s=r.getRequiredOrdering();i.merge(s);let a=e.push();a.addFieldsFromScope(n),a.addFieldsFromScope(r),a.setOrdering(i);let l=this.buildExpression(a,t.constraint),c=n.takeNode(),u=r.takeNode(),f;switch(t.type){case"LeftJoin":f=this.normalizer.newRelationalLeftJoin(c,u,l);break;default:we(t.type,"Unsupported join type")}return a.setNode(f),a}buildExpression(e,t){switch(t.type){case"Identifier":return this.buildIdentifier(e,t);case"LiteralValue":return this.buildLiteralValue(t);case"FunctionCall":return this.buildFunctionCall(e,t);case"Case":return this.buildCase(e,t);case"UnaryOperation":return this.buildUnaryOperation(e,t);case"BinaryOperation":return this.buildBinaryOperation(e,t);case"TypeCast":return this.buildTypeCast(e,t);case"Select":throw new Error("Subqueries are only supported inside subquery function calls");default:we(t,"Unsupported expression")}}buildIdentifier(e,t){let n=e.resolveField(t.name,t.collection);if(n){let r=!1;for(let i of this.subqueries)r?i.referencedOuterFields.add(n.field):(r=i.inScope.has(n),r&&i.referencedFields.add(n.field));return this.normalizer.newScalarVariable(n.field,r)}return this.normalizer.newScalarConstant(Nk,null)}buildLiteralValue(e){let t=je.parse(e.value);return this.normalizer.newScalarConstant(Nk,t)}buildFunctionCall(e,t){let n=r=>{let i=t.arguments[r];return N(i,"Missing argument"),this.buildExpression(e,i)};switch(t.functionName){case"CONTAINS":{let r=n(0),i=n(1);return this.normalizer.newScalarContains(r,i)}case"STARTS_WITH":{let r=n(0),i=n(1);return this.normalizer.newScalarStartsWith(r,i)}case"ENDS_WITH":{let r=n(0),i=n(1);return this.normalizer.newScalarEndsWith(r,i)}case"LENGTH":{let r=n(0);return this.normalizer.newScalarLength(r)}case"INDEX_OF":{let r=n(0),i=n(1);return this.normalizer.newScalarIndexOf(r,i)}case"ARRAY":{let r=t.arguments[0];return N(r,"Missing argument"),N(r.type==="Select","Subqueries require a select expression"),this.buildSubqueryArray(e,r)}case"FLAT_ARRAY":{let r=t.arguments[0];return N(r,"Missing argument"),N(r.type==="Select","Subqueries require a select expression"),this.buildSubqueryFlatArray(e,r)}default:throw new Error("Unsupported function name")}}buildSubqueryArray(e,t){try{let n=new Hk(e);this.subqueries.push(n);let r=this.buildSelect(e,t),i=r.takeNode(),o=r.getNamedFields(),s=r.getRequiredOrdering(),a=n.referencedFields,l=n.referencedOuterFields;return this.normalizer.newScalarArray(i,o,s,a,l)}finally{this.subqueries.pop()}}buildSubqueryFlatArray(e,t){try{let n=new Hk(e);this.subqueries.push(n);let r=this.buildSelect(e,t),i=r.takeNode(),o=r.getSingleField(),s=r.getRequiredOrdering(),a=n.referencedFields,l=n.referencedOuterFields;return this.normalizer.newScalarFlatArray(i,o,s,a,l)}finally{this.subqueries.pop()}}buildCase(e,t){let n;t.value&&(n=this.buildExpression(e,t.value));let r=t.conditions.map(o=>{let s=this.buildExpression(e,o.when),a=this.buildExpression(e,o.then);return new sv(s,a)}),i;return t.else&&(i=this.buildExpression(e,t.else)),this.normalizer.newScalarCase(n,r,i)}buildUnaryOperation(e,t){let n=this.buildExpression(e,t.value);switch(t.operator){case"not":return this.normalizer.newScalarNot(n);default:we(t.operator,"Unsupported unary operator")}}buildBinaryOperation(e,t){let n=this.buildExpression(e,t.left),r=this.buildExpression(e,t.right);switch(t.operator){case"and":return this.normalizer.newScalarAnd(n,r);case"or":return this.normalizer.newScalarOr(n,r);case"==":return this.normalizer.newScalarEquals(n,r);case"!=":return this.normalizer.newScalarNotEquals(n,r);case"<":return this.normalizer.newScalarLessThan(n,r);case"<=":return this.normalizer.newScalarLessThanOrEqual(n,r);case">":return this.normalizer.newScalarGreaterThan(n,r);case">=":return this.normalizer.newScalarGreaterThanOrEqual(n,r);case"in":return this.normalizer.newScalarIn(n,r);default:we(t.operator,"Unsupported binary operator")}}buildTypeCast(e,t){let n=this.buildExpression(e,t.value);switch(t.dataType){case"BOOLEAN":{let r={type:"boolean",isNullable:!0};return this.normalizer.newScalarCast(n,r)}case"DATE":{let r={type:"date",isNullable:!0};return this.normalizer.newScalarCast(n,r)}case"NUMBER":{let r={type:"number",isNullable:!0};return this.normalizer.newScalarCast(n,r)}case"STRING":{let r={type:"string",isNullable:!0};return this.normalizer.newScalarCast(n,r)}default:throw new Error("Unsupported data type")}}};function YN(e,t){if(CT(e))return new yN(e,t);if(iv(e))return e;if(RT(e)){for(;t;){let n=e.collectionByLocaleId[t.id];if(n)return n;t=t.fallback}return e.collectionByLocaleId.default}we(e,"Unsupported collection type")}var Hk=class{constructor(e){this.inScope=e,E(this,"referencedFields",new J),E(this,"referencedOuterFields",new J)}},fg=class zT extends On{constructor(t,n){super(t.isSynchronous&&n.isSynchronous),this.input=t,this.predicate=n,E(this,"inputGroup"),this.inputGroup=t.getGroup()}getHash(){return ve("RelationalFilter",this.inputGroup.id,this.predicate)}getOutputFields(){return this.inputGroup.relational.outputFields}canProvideOrdering(){return!0}canProvideResolvedFields(){return!0}getInputRequiredProps(t){let n=new J(t.resolvedFields);return n.merge(this.predicate.referencedFields),new xn(t.ordering,n)}optimize(t,n){let r=this.getInputRequiredProps(n),i=t.optimizeGroup(this.inputGroup,r),o=this.predicate.optimize(t);return new pe(0).add(pe.max(i,o))}getOptimized(t){let n=this.getInputRequiredProps(t),r=this.inputGroup.getOptimized(n),i=this.predicate.getOptimized();return new zT(r,i)}*evaluate(t){let n=yield*this.input.evaluate(t),r=yield*ef(n.tuples.map(i=>this.predicate.evaluate(t,i)));return n.filter((i,o)=>{let s=r[o]??null;return Hr(s)})}},Un=class BT extends On{constructor(t,n){super(!1),this.index=t,this.query=n}getHash(){return ve("RelationalIndexLookup",this.index.id,...this.query)}getOutputFields(){return this.index.collection.fields}canProvideOrdering(t){return t.equals(this.index.ordering)}canProvideResolvedFields(t){return t.subsetOf(this.index.resolvedFields)}optimize(){let t=this.query.every(n=>n.type==="All");return pe.estimate(1,t?100*Ju:50*Ju)}getOptimized(){return new BT(this.index,this.query)}*evaluate(){let t=this.index,n=t.collection,r=this.getOutputFields(),o=(yield t.data.lookupItems(this.query)).map(s=>{let a=new vr;for(let l of t.resolvedFields){let c=l.getValue(s);a.addPointer(n,s.pointer),a.addValue(l,c)}return a});return new Cs(r,o)}},KN=class $T extends On{constructor(t,n){super(t.isSynchronous&&n.isSynchronous),this.left=t,this.right=n,E(this,"leftGroup"),E(this,"rightGroup"),this.leftGroup=t.getGroup(),this.rightGroup=n.getGroup()}getHash(){return ve("RelationalIntersection",this.leftGroup.id,this.rightGroup.id)}getOutputFields(){let t=new J,n=this.leftGroup.relational.outputFields,r=this.rightGroup.relational.outputFields;for(let i of n)r.has(i)&&t.add(i);return t}canProvideOrdering(){return!1}canProvideResolvedFields(){return!0}getChildRequiredProps(t){let n=new pr;return new xn(n,t.resolvedFields)}optimize(t,n){let r=this.getChildRequiredProps(n),i=t.optimizeGroup(this.leftGroup,r),o=this.getChildRequiredProps(n),s=t.optimizeGroup(this.rightGroup,o);return pe.max(i,s)}getOptimized(t){let n=this.getChildRequiredProps(t),r=this.leftGroup.getOptimized(n),i=this.getChildRequiredProps(t),o=this.rightGroup.getOptimized(i);return new $T(r,o)}*evaluate(t){let{left:n,right:r}=yield*Je({left:this.left.evaluate(t),right:this.right.evaluate(t)});return n.intersection(r)}},ol=class NT extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.left=t,this.right=n,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarEquals",this.left,this.right)}optimize(t){let n=this.left.optimize(t),r=this.right.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.left.getOptimized(),n=this.right.getOptimized();return new NT(t,n)}*evaluate(t,n){let{left:r,right:i}=yield*Je({left:this.left.evaluate(t,n),right:this.right.evaluate(t,n)});return{type:"boolean",value:je.equal(r,i,Fs)}}},dg=class jT extends On{constructor(t,n,r){super(t.isSynchronous&&n.isSynchronous&&r.isSynchronous),this.left=t,this.right=n,this.constraint=r,E(this,"leftGroup"),E(this,"rightGroup"),this.leftGroup=t.getGroup(),this.rightGroup=n.getGroup()}getHash(){return ve("RelationalLeftJoin",this.leftGroup.id,this.rightGroup.id,this.constraint)}getOutputFields(){let t=new J;return t.merge(this.leftGroup.relational.outputFields),t.merge(this.rightGroup.relational.outputFields),t}canProvideOrdering(){return!1}canProvideResolvedFields(){return!0}getChildRequiredProps(t,n){let r=new J,i=t.relational.outputFields;for(let s of n.resolvedFields)i.has(s)&&r.add(s);for(let s of this.constraint.referencedFields)i.has(s)&&r.add(s);let o=new pr;return new xn(o,r)}optimize(t,n){let r=this.getChildRequiredProps(this.leftGroup,n),i=t.optimizeGroup(this.leftGroup,r),o=this.getChildRequiredProps(this.rightGroup,n),s=t.optimizeGroup(this.rightGroup,o),a=this.constraint.optimize(t);return pe.max(pe.max(i,s),a)}getOptimized(t){let n=this.getChildRequiredProps(this.leftGroup,t),r=this.leftGroup.getOptimized(n),i=this.getChildRequiredProps(this.rightGroup,t),o=this.rightGroup.getOptimized(i),s=this.constraint.getOptimized();return new jT(r,o,s)}*evaluateScalarEquals(t,n,r,i,o){let s=new Map;for(let c of n.tuples){let u=yield*i.evaluate(o,c),f=JSON.stringify(u?.value??null),d=s.get(f)??[];d.push(c),s.set(f,d)}let a=this.getOutputFields(),l=new Cs(a);for(let c of t.tuples){let u=yield*r.evaluate(o,c),f=JSON.stringify(u?.value??null),d=s.get(f)??[];if(d.length===0)l.push(c);else for(let h of d){let p=new vr;p.merge(c),p.merge(h),l.push(p)}}return l}*evaluate(t){let{left:n,right:r}=yield*Je({left:this.left.evaluate(t),right:this.right.evaluate(t)});if(this.constraint instanceof ol){if(this.constraint.left.referencedFields.subsetOf(this.leftGroup.relational.outputFields)&&this.constraint.right.referencedFields.subsetOf(this.rightGroup.relational.outputFields))return yield*this.evaluateScalarEquals(n,r,this.constraint.left,this.constraint.right,t);if(this.constraint.right.referencedFields.subsetOf(this.leftGroup.relational.outputFields)&&this.constraint.left.referencedFields.subsetOf(this.rightGroup.relational.outputFields))return yield*this.evaluateScalarEquals(n,r,this.constraint.right,this.constraint.left,t)}let i=this.getOutputFields(),o=new Cs(i);for(let s of n.tuples){let a=!1;for(let l of r.tuples){let c=new vr;c.merge(s),c.merge(l);let u=yield*this.constraint.evaluate(t,c);Hr(u)&&(o.push(c),a=!0)}a||o.push(s)}return o}},HT=class WT extends On{constructor(t,n,r){super(t.isSynchronous&&n.isSynchronous&&r.isSynchronous),this.left=t,this.right=n,this.constraint=r,E(this,"leftGroup"),E(this,"rightGroup"),this.leftGroup=t.getGroup(),this.rightGroup=n.getGroup()}getHash(){return ve("RelationalRightJoin",this.leftGroup.id,this.rightGroup.id,this.constraint)}getOutputFields(){let t=new J;return t.merge(this.leftGroup.relational.outputFields),t.merge(this.rightGroup.relational.outputFields),t}canProvideOrdering(){return!1}canProvideResolvedFields(){return!0}getChildRequiredProps(t,n){let r=new J,i=t.relational.outputFields;for(let s of n.resolvedFields)i.has(s)&&r.add(s);for(let s of this.constraint.referencedFields)i.has(s)&&r.add(s);let o=new pr;return new xn(o,r)}optimize(t,n){let r=this.getChildRequiredProps(this.leftGroup,n),i=t.optimizeGroup(this.leftGroup,r),o=this.getChildRequiredProps(this.rightGroup,n),s=t.optimizeGroup(this.rightGroup,o),a=this.constraint.optimize(t);return pe.max(pe.max(i,s),a)}getOptimized(t){let n=this.getChildRequiredProps(this.leftGroup,t),r=this.leftGroup.getOptimized(n),i=this.getChildRequiredProps(this.rightGroup,t),o=this.rightGroup.getOptimized(i),s=this.constraint.getOptimized();return new WT(r,o,s)}*evaluateScalarEquals(t,n,r,i,o){let s=new Map;for(let c of t.tuples){let u=yield*r.evaluate(o,c),f=JSON.stringify(u?.value??null),d=s.get(f)??[];d.push(c),s.set(f,d)}let a=this.getOutputFields(),l=new Cs(a);for(let c of n.tuples){let u=yield*i.evaluate(o,c),f=JSON.stringify(u?.value??null),d=s.get(f)??[];if(d.length===0)l.push(c);else for(let h of d){let p=new vr;p.merge(c),p.merge(h),l.push(p)}}return l}*evaluate(t){let{left:n,right:r}=yield*Je({left:this.left.evaluate(t),right:this.right.evaluate(t)});if(this.constraint instanceof ol){if(this.constraint.left.referencedFields.subsetOf(this.leftGroup.relational.outputFields)&&this.constraint.right.referencedFields.subsetOf(this.rightGroup.relational.outputFields))return yield*this.evaluateScalarEquals(n,r,this.constraint.left,this.constraint.right,t);if(this.constraint.right.referencedFields.subsetOf(this.leftGroup.relational.outputFields)&&this.constraint.left.referencedFields.subsetOf(this.rightGroup.relational.outputFields))return yield*this.evaluateScalarEquals(n,r,this.constraint.right,this.constraint.left,t)}let i=this.getOutputFields(),o=new Cs(i);for(let s of r.tuples){let a=!1;for(let l of n.tuples){let c=new vr;c.merge(s),c.merge(l);let u=yield*this.constraint.evaluate(t,c);Hr(u)&&(o.push(c),a=!0)}a||o.push(s)}return o}},hg=class UT extends On{constructor(t){super(!1),this.collection=t}getHash(){return ve("RelationalScan",this.collection.id)}getOutputFields(){return this.collection.fields}canProvideOrdering(){return!1}canProvideResolvedFields(t){return t.subsetOf(this.collection.fields)}optimize(){return pe.estimate(1,200*Ju)}getOptimized(){return new UT(this.collection)}*evaluate(){let t=this.collection,n=this.getOutputFields(),i=(yield t.data.scanItems()).map(o=>{let s=new vr;for(let a of n){let l=a.getValue(o);s.addPointer(t,o.pointer),s.addValue(a,l)}return s});return new Cs(n,i)}},QN=class GT extends On{constructor(t,n){super(t.isSynchronous&&n.isSynchronous),this.left=t,this.right=n,E(this,"leftGroup"),E(this,"rightGroup"),this.leftGroup=t.getGroup(),this.rightGroup=n.getGroup()}getHash(){return ve("RelationalUnion",this.leftGroup.id,this.rightGroup.id)}getOutputFields(){let t=new J,n=this.leftGroup.relational.outputFields,r=this.rightGroup.relational.outputFields;for(let i of n)r.has(i)&&t.add(i);return t}canProvideOrdering(){return!1}canProvideResolvedFields(){return!0}getChildRequiredProps(t){let n=new pr;return new xn(n,t.resolvedFields)}optimize(t,n){let r=this.getChildRequiredProps(n),i=t.optimizeGroup(this.leftGroup,r),o=this.getChildRequiredProps(n),s=t.optimizeGroup(this.rightGroup,o);return pe.max(i,s)}getOptimized(t){let n=this.getChildRequiredProps(t),r=this.leftGroup.getOptimized(n),i=this.getChildRequiredProps(t),o=this.rightGroup.getOptimized(i);return new GT(r,o)}*evaluate(t){let{left:n,right:r}=yield*Je({left:this.left.evaluate(t),right:this.right.evaluate(t)});return n.union(r)}},pg=class qT extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.left=t,this.right=n,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarAnd",this.left,this.right)}optimize(t){let n=this.left.optimize(t),r=this.right.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.left.getOptimized(),n=this.right.getOptimized();return new qT(t,n)}*evaluate(t,n){let{left:r,right:i}=yield*Je({left:this.left.evaluate(t,n),right:this.right.evaluate(t,n)});return{type:"boolean",value:Hr(r)&&Hr(i)}}},qn=class extends nt{constructor(e,t){let n=new J,r=new J;super(n,r,!0),this.definition=e,this.value=t}getHash(){return ve("ScalarConstant",this.definition,this.value)}optimize(){return new pe(0)}getOptimized(){return this}*evaluate(){return this.value}},ZN={type:0},XT=class YT extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.source=t,this.target=n,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarContains",this.source,this.target)}optimize(t){let n=this.source.optimize(t),r=this.target.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.source.getOptimized(),n=this.target.getOptimized();return new YT(t,n)}*evaluate(t,n){let{source:r,target:i}=yield*Je({source:this.source.evaluate(t,n),target:this.target.evaluate(t,n)});return{type:"boolean",value:je.contains(r,i,ZN)}}},JN={type:0},KT=class QT extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.source=t,this.target=n,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarEndsWith",this.source,this.target)}optimize(t){let n=this.source.optimize(t),r=this.target.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.source.getOptimized(),n=this.target.getOptimized();return new QT(t,n)}*evaluate(t,n){let{source:r,target:i}=yield*Je({source:this.source.evaluate(t,n),target:this.target.evaluate(t,n)});return{type:"boolean",value:je.endsWith(r,i,JN)}}},mg=class ZT extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.left=t,this.right=n,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarGreaterThan",this.left,this.right)}optimize(t){let n=this.left.optimize(t),r=this.right.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.left.getOptimized(),n=this.right.getOptimized();return new ZT(t,n)}*evaluate(t,n){let{left:r,right:i}=yield*Je({left:this.left.evaluate(t,n),right:this.right.evaluate(t,n)});return{type:"boolean",value:je.greaterThan(r,i,Fs)}}},gg=class JT extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.left=t,this.right=n,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarGreaterThanOrEqual",this.left,this.right)}optimize(t){let n=this.left.optimize(t),r=this.right.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.left.getOptimized(),n=this.right.getOptimized();return new JT(t,n)}*evaluate(t,n){let{left:r,right:i}=yield*Je({left:this.left.evaluate(t,n),right:this.right.evaluate(t,n)});return{type:"boolean",value:je.greaterThanOrEqual(r,i,Fs)}}},vg=class eE extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.left=t,this.right=n,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarLessThan",this.left,this.right)}optimize(t){let n=this.left.optimize(t),r=this.right.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.left.getOptimized(),n=this.right.getOptimized();return new eE(t,n)}*evaluate(t,n){let{left:r,right:i}=yield*Je({left:this.left.evaluate(t,n),right:this.right.evaluate(t,n)});return{type:"boolean",value:je.lessThan(r,i,Fs)}}},yg=class tE extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.left=t,this.right=n,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarLessThanOrEqual",this.left,this.right)}optimize(t){let n=this.left.optimize(t),r=this.right.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.left.getOptimized(),n=this.right.getOptimized();return new tE(t,n)}*evaluate(t,n){let{left:r,right:i}=yield*Je({left:this.left.evaluate(t,n),right:this.right.evaluate(t,n)});return{type:"boolean",value:je.lessThanOrEqual(r,i,Fs)}}},bg=class nE extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.left=t,this.right=n,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarNotEquals",this.left,this.right)}optimize(t){let n=this.left.optimize(t),r=this.right.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.left.getOptimized(),n=this.right.getOptimized();return new nE(t,n)}*evaluate(t,n){let{left:r,right:i}=yield*Je({left:this.left.evaluate(t,n),right:this.right.evaluate(t,n)});return{type:"boolean",value:!je.equal(r,i,Fs)}}},xg=class rE extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.left=t,this.right=n,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarOr",this.left,this.right)}optimize(t){let n=this.left.optimize(t),r=this.right.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.left.getOptimized(),n=this.right.getOptimized();return new rE(t,n)}*evaluate(t,n){let{left:r,right:i}=yield*Je({left:this.left.evaluate(t,n),right:this.right.evaluate(t,n)});return{type:"boolean",value:Hr(r)||Hr(i)}}},e6={type:0},iE=class oE extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.source=t,this.target=n,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarStartsWith",this.source,this.target)}optimize(t){let n=this.source.optimize(t),r=this.target.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.source.getOptimized(),n=this.target.getOptimized();return new oE(t,n)}*evaluate(t,n){let{source:r,target:i}=yield*Je({source:this.source.evaluate(t,n),target:this.target.evaluate(t,n)});return{type:"boolean",value:je.startsWith(r,i,e6)}}},t6=class{constructor(e){this.normalizer=e,E(this,"memo"),this.memo=e.memo}explore(e){let t=e.getGroup();if(e instanceof dg){let n=new HT(e.right,e.left,e.constraint);this.memo.addRelational(n,t)}if(e instanceof fg){if(e.predicate instanceof pg){let n=this.normalizer.newRelationalFilter(e.input,e.predicate.left),r=this.normalizer.newRelationalFilter(e.input,e.predicate.right),i=new KN(n,r);this.memo.addRelational(i,t)}if(e.predicate instanceof xg){let n=this.normalizer.newRelationalFilter(e.input,e.predicate.left),r=this.normalizer.newRelationalFilter(e.input,e.predicate.right),i=new QN(n,r);this.memo.addRelational(i,t)}}if(e instanceof hg)for(let n of e.collection.indexes){if(n.constraint)continue;let r=dr(n.lookupNodes.length),i=new Un(n,r);this.memo.addRelational(i,t)}if(e instanceof fg){for(let n of e.inputGroup.nodes)if(n instanceof hg)for(let r of n.collection.indexes){if(e.predicate instanceof ol&&e.predicate.left===r.lookupNodes[0]&&e.predicate.right instanceof qn&&r.data.supportedLookupTypes.includes("Equals")){let i=dr(r.lookupNodes.length);i[0]={type:"Equals",value:e.predicate.right.value};let o=new Un(r,i);this.memo.addRelational(o,t)}if(e.predicate instanceof bg&&e.predicate.left===r.lookupNodes[0]&&e.predicate.right instanceof qn&&r.data.supportedLookupTypes.includes("NotEquals")){let i=dr(r.lookupNodes.length);i[0]={type:"NotEquals",value:e.predicate.right.value};let o=new Un(r,i);this.memo.addRelational(o,t)}if(e.predicate instanceof vg&&e.predicate.left===r.lookupNodes[0]&&e.predicate.right instanceof qn&&r.data.supportedLookupTypes.includes("LessThan")){let i=dr(r.lookupNodes.length);i[0]={type:"LessThan",value:e.predicate.right.value,inclusive:!1};let o=new Un(r,i);this.memo.addRelational(o,t)}if(e.predicate instanceof yg&&e.predicate.left===r.lookupNodes[0]&&e.predicate.right instanceof qn&&r.data.supportedLookupTypes.includes("LessThan")){let i=dr(r.lookupNodes.length);i[0]={type:"LessThan",value:e.predicate.right.value,inclusive:!0};let o=new Un(r,i);this.memo.addRelational(o,t)}if(e.predicate instanceof mg&&e.predicate.left===r.lookupNodes[0]&&e.predicate.right instanceof qn&&r.data.supportedLookupTypes.includes("GreaterThan")){let i=dr(r.lookupNodes.length);i[0]={type:"GreaterThan",value:e.predicate.right.value,inclusive:!1};let o=new Un(r,i);this.memo.addRelational(o,t)}if(e.predicate instanceof gg&&e.predicate.left===r.lookupNodes[0]&&e.predicate.right instanceof qn&&r.data.supportedLookupTypes.includes("GreaterThan")){let i=dr(r.lookupNodes.length);i[0]={type:"GreaterThan",value:e.predicate.right.value,inclusive:!0};let o=new Un(r,i);this.memo.addRelational(o,t)}if(e.predicate instanceof XT&&e.predicate.source===r.lookupNodes[0]&&e.predicate.target instanceof qn&&r.data.supportedLookupTypes.includes("Contains")){let i=dr(r.lookupNodes.length);i[0]={type:"Contains",value:e.predicate.target.value};let o=new Un(r,i);this.memo.addRelational(o,t)}if(e.predicate instanceof iE&&e.predicate.source===r.lookupNodes[0]&&e.predicate.target instanceof qn&&r.data.supportedLookupTypes.includes("StartsWith")){let i=dr(r.lookupNodes.length);i[0]={type:"StartsWith",value:e.predicate.target.value};let o=new Un(r,i);this.memo.addRelational(o,t)}if(e.predicate instanceof KT&&e.predicate.source===r.lookupNodes[0]&&e.predicate.target instanceof qn&&r.data.supportedLookupTypes.includes("EndsWith")){let i=dr(r.lookupNodes.length);i[0]={type:"EndsWith",value:e.predicate.target.value};let o=new Un(r,i);this.memo.addRelational(o,t)}}}}};function dr(e){let t={type:"All"};return new Array(e).fill(t)}var n6=class{constructor(e){this.outputFields=e}isCompatible(e){return this.outputFields.equals(e.outputFields)}},r6=class{constructor(){E(this,"nodes",new Map),E(this,"groups",[])}addGroup(e){let t=this.groups.length,n=new IT(t,e);return this.groups.push(n),n}addRelational(e,t){let n=e.getHash(),r=this.nodes.get(n);if(r)return r;this.nodes.set(n,e);let i=e.getOutputFields(),o=new n6(i);return t??=this.addGroup(o),t.addNode(e),N(o.isCompatible(t.relational),"Group has inconsistent relational props"),e}addScalar(e){let t=e.getHash(),n=this.nodes.get(t);return n||(this.nodes.set(t,e),e)}},i6=class sE extends On{constructor(t,n,r){super(t.isSynchronous&&n.isSynchronous),this.input=t,this.limit=n,this.ordering=r,E(this,"inputGroup"),this.inputGroup=t.getGroup()}getHash(){return ve("RelationalLimit",this.inputGroup.id,this.limit)}getOutputFields(){return this.inputGroup.relational.outputFields}canProvideOrdering(t){return t.equals(this.ordering)}canProvideResolvedFields(){return!0}getInputRequiredProps(t){let n=new J(t.resolvedFields);return n.merge(this.limit.referencedFields),new xn(this.ordering,n)}optimize(t,n){let r=this.getInputRequiredProps(n),i=t.optimizeGroup(this.inputGroup,r),o=this.limit.optimize(t);return new pe(0).add(pe.max(i,o))}getOptimized(t){let n=this.getInputRequiredProps(t),r=this.inputGroup.getOptimized(n),i=this.limit.getOptimized();return new sE(r,i,this.ordering)}*evaluate(t){let{input:n,limit:r}=yield*Je({input:this.input.evaluate(t),limit:this.limit.evaluate(t,void 0)}),i=FT(r)??1/0;return i===1/0?n:n.slice(0,i)}},o6=class aE extends On{constructor(t,n,r){super(t.isSynchronous&&n.isSynchronous),this.input=t,this.offset=n,this.ordering=r,E(this,"inputGroup"),this.inputGroup=t.getGroup()}getHash(){return ve("RelationalOffset",this.inputGroup.id,this.offset)}getOutputFields(){return this.inputGroup.relational.outputFields}canProvideOrdering(t){return t.equals(this.ordering)}canProvideResolvedFields(){return!0}getInputRequiredProps(t){let n=new J(t.resolvedFields);return n.merge(this.offset.referencedFields),new xn(this.ordering,n)}optimize(t,n){let r=this.getInputRequiredProps(n),i=t.optimizeGroup(this.inputGroup,r),o=this.offset.optimize(t);return new pe(0).add(pe.max(i,o))}getOptimized(t){let n=this.getInputRequiredProps(t),r=this.inputGroup.getOptimized(n),i=this.offset.getOptimized();return new aE(r,i,this.ordering)}*evaluate(t){let{input:n,offset:r}=yield*Je({input:this.input.evaluate(t),offset:this.offset.evaluate(t,void 0)}),i=FT(r)??0;return i===0?n:n.slice(i)}},s6=class lE extends nt{constructor(t,n,r,i,o){super(i,o,t.isSynchronous),this.input=t,this.namedFields=n,this.ordering=r,this.referencedFields=i,this.referencedOuterFields=o,E(this,"inputGroup"),E(this,"definition"),this.inputGroup=t.getGroup();let s={},a=Object.entries(n);for(let[l,c]of a)s[l]=c.definition;this.definition={type:"array",isNullable:!1,definition:{type:"object",isNullable:!1,definitions:s}}}getHash(){let t={},n=Object.entries(this.namedFields);for(let[r,i]of n)t[r]=i.id;return ve("ScalarArray",this.inputGroup.id,t,this.ordering,this.referencedFields,this.referencedOuterFields)}getInputRequiredProps(){let t=new J,n=Object.values(this.namedFields);for(let r of n)at(r.collection)||t.add(r);return new xn(this.ordering,t)}optimize(t){let n=this.getInputRequiredProps(),r=t.optimizeGroup(this.inputGroup,n);return new pe(0).add(r)}getOptimized(){let t=this.getInputRequiredProps(),n=this.inputGroup.getOptimized(t);return new lE(n,this.namedFields,this.ordering,this.referencedFields,this.referencedOuterFields)}*evaluate(t,n){let r=new vr;t&&r.merge(t),n&&r.merge(n);let i=yield*this.input.evaluate(r),o=Object.entries(this.namedFields);return{type:"array",value:i.tuples.map(s=>{let a={};for(let[l,c]of o)a[l]=s.getValue(c);return{type:"object",value:a}})}}},a6=class cE extends nt{constructor(t,n){super(t.referencedFields,t.referencedOuterFields,t.isSynchronous),this.input=t,this.definition=n,N(n.isNullable,"Unsupported non-nullable cast")}getHash(){return ve("ScalarCast",this.input,this.definition)}optimize(t){return this.input.optimize(t)}getOptimized(){let t=this.input.getOptimized();return new cE(t,this.definition)}*evaluate(t,n){let r=yield*this.input.evaluate(t,n);return je.cast(r,this.definition)}},l6=class uE extends nt{constructor(t,n,r,i,o){super(i,o,t.isSynchronous),this.input=t,this.field=n,this.ordering=r,this.referencedFields=i,this.referencedOuterFields=o,E(this,"inputGroup"),E(this,"definition"),this.inputGroup=t.getGroup(),this.definition={type:"array",isNullable:!1,definition:n.definition}}getHash(){return ve("ScalarFlatArray",this.inputGroup.id,this.field.id,this.ordering,this.referencedFields,this.referencedOuterFields)}getInputRequiredProps(){let t=new J;return at(this.field.collection)||t.add(this.field),new xn(this.ordering,t)}optimize(t){let n=this.getInputRequiredProps(),r=t.optimizeGroup(this.inputGroup,n);return new pe(0).add(r)}getOptimized(){let t=this.getInputRequiredProps(),n=this.inputGroup.getOptimized(t);return new uE(n,this.field,this.ordering,this.referencedFields,this.referencedOuterFields)}*evaluate(t,n){let r=new vr;return t&&r.merge(t),n&&r.merge(n),{type:"array",value:(yield*this.input.evaluate(r)).tuples.map(o=>o.getValue(this.field))}}},c6={type:0},u6=class fE extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.left=t,this.right=n,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarIn",this.left,this.right)}optimize(t){let n=this.left.optimize(t),r=this.right.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.left.getOptimized(),n=this.right.getOptimized();return new fE(t,n)}*evaluate(t,n){let{left:r,right:i}=yield*Je({left:this.left.evaluate(t,n),right:this.right.evaluate(t,n)});return{type:"boolean",value:je.in(r,i,c6)}}},f6={type:1},d6=class dE extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.source=t,this.target=n,E(this,"definition",{type:"number",isNullable:!1})}getHash(){return ve("ScalarIndexOf",this.source,this.target)}optimize(t){let n=this.source.optimize(t),r=this.target.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.source.getOptimized(),n=this.target.getOptimized();return new dE(t,n)}*evaluate(t,n){let{source:r,target:i}=yield*Je({source:this.source.evaluate(t,n),target:this.target.evaluate(t,n)});return{type:"number",value:je.indexOf(r,i,f6)}}},h6=class hE extends nt{constructor(t){super(t.referencedFields,t.referencedOuterFields,t.isSynchronous),this.input=t,E(this,"definition",{type:"number",isNullable:!1})}getHash(){return ve("ScalarLength",this.input)}optimize(t){return this.input.optimize(t)}getOptimized(){let t=this.input.getOptimized();return new hE(t)}*evaluate(t,n){let r=yield*this.input.evaluate(t,n);return{type:"number",value:je.length(r)}}},Wk=class pE extends nt{constructor(t){super(t.referencedFields,t.referencedOuterFields,t.isSynchronous),this.input=t,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarNot",this.input)}optimize(t){return this.input.optimize(t)}getOptimized(){let t=this.input.getOptimized();return new pE(t)}*evaluate(t,n){let r=yield*this.input.evaluate(t,n);return{type:"boolean",value:!Hr(r)}}},p6={type:0},m6=class mE extends nt{constructor(t,n){let r=new J;r.merge(t.referencedFields),r.merge(n.referencedFields);let i=new J;i.merge(t.referencedOuterFields),i.merge(n.referencedOuterFields);let o=t.isSynchronous&&n.isSynchronous;super(r,i,o),this.left=t,this.right=n,E(this,"definition",{type:"boolean",isNullable:!1})}getHash(){return ve("ScalarNotIn",this.left,this.right)}optimize(t){let n=this.left.optimize(t),r=this.right.optimize(t);return pe.max(n,r)}getOptimized(){let t=this.left.getOptimized(),n=this.right.getOptimized();return new mE(t,n)}*evaluate(t,n){let{left:r,right:i}=yield*Je({left:this.left.evaluate(t,n),right:this.right.evaluate(t,n)});return{type:"boolean",value:!je.in(r,i,p6)}}},yn=class extends nt{constructor(e,t){N(e.name!==ks,"Invalid field name");let n=new J,r=new J;t?r.add(e):n.add(e),super(n,r,!0),this.field=e,this.isOuterField=t,E(this,"definition"),this.definition=e.definition}getHash(){return ve("ScalarVariable",this.field.id,this.isOuterField)}optimize(){return new pe(0)}getOptimized(){return this}*evaluate(e,t){return this.isOuterField?(N(e,"Context must exist"),e.getValue(this.field)):(N(t,"Tuple must exist"),t.getValue(this.field))}},g6=class{constructor(e){this.memo=e}finishRelational(e){return this.memo.addRelational(e)}newRelationalScan(e){let t=new hg(e);return this.finishRelational(t)}newRelationalIndexLookup(e,t){let n=new Un(e,t);return this.finishRelational(n)}newRelationalLeftJoin(e,t,n){let r=new dg(e,t,n);return this.finishRelational(r)}newRelationalRightJoin(e,t,n){return this.newRelationalLeftJoin(t,e,n)}newRelationalFilter(e,t){if(e instanceof dg&&t.referencedFields.subsetOf(e.leftGroup.relational.outputFields)){let r=this.newRelationalFilter(e.left,t);return this.newRelationalLeftJoin(r,e.right,e.constraint)}if(e instanceof HT&&t.referencedFields.subsetOf(e.rightGroup.relational.outputFields)){let r=this.newRelationalFilter(e.right,t);return this.newRelationalLeftJoin(e.left,r,e.constraint)}let n=new fg(e,t);return this.finishRelational(n)}newRelationalProject(e,t,n){let r=new jk(e,t,n);return this.finishRelational(r)}newRelationalLimit(e,t,n){if(e instanceof jk&&t.referencedFields.subsetOf(e.inputGroup.relational.outputFields)&&n.providedByFields(e.inputGroup.relational.outputFields)){let i=this.newRelationalLimit(e.input,t,n);return this.newRelationalProject(i,e.projections,e.passthrough)}let r=new i6(e,t,n);return this.finishRelational(r)}newRelationalOffset(e,t,n){let r=new o6(e,t,n);return this.finishRelational(r)}finishScalar(e){if(!(e instanceof qn)&&e.isSynchronous&&e.referencedFields.size===0&&e.referencedOuterFields.size===0){let n=e.evaluateSync();return this.newScalarConstant(e.definition,n)}return this.memo.addScalar(e)}removeUnknown(e,t){if(e.definition.type!=="unknown"||t.type==="unknown")return e;let n={...t,isNullable:!0};return this.newScalarCast(e,n)}newScalarVariable(e,t){let n=new yn(e,t);return this.finishScalar(n)}newScalarConstant(e,t){let n=new qn(e,t);return this.finishScalar(n)}newScalarNot(e){if(e instanceof Wk){if(e.input.definition.type==="boolean")return e.input;let n={type:"boolean",isNullable:!0};return this.newScalarCast(e.input,n)}if(e instanceof ol)return this.newScalarNotEquals(e.left,e.right);if(e instanceof bg)return this.newScalarEquals(e.left,e.right);if(e instanceof vg)return this.newScalarGreaterThanOrEqual(e.left,e.right);if(e instanceof yg)return this.newScalarGreaterThan(e.left,e.right);if(e instanceof mg)return this.newScalarLessThanOrEqual(e.left,e.right);if(e instanceof gg)return this.newScalarLessThan(e.left,e.right);if(e instanceof pg){let n=this.newScalarNot(e.left),r=this.newScalarNot(e.right);return this.newScalarOr(n,r)}if(e instanceof xg){let n=this.newScalarNot(e.left),r=this.newScalarNot(e.right);return this.newScalarAnd(n,r)}let t=new Wk(e);return this.finishScalar(t)}newScalarAnd(e,t){let n=new pg(e,t);return this.finishScalar(n)}newScalarOr(e,t){let n=new xg(e,t);return this.finishScalar(n)}newScalarEquals(e,t){let n=e instanceof yn;if(t instanceof yn&&!n)return this.newScalarEquals(t,e);e=this.removeUnknown(e,t.definition),t=this.removeUnknown(t,e.definition);let i=new ol(e,t);return this.finishScalar(i)}newScalarNotEquals(e,t){let n=e instanceof yn;if(t instanceof yn&&!n)return this.newScalarNotEquals(t,e);e=this.removeUnknown(e,t.definition),t=this.removeUnknown(t,e.definition);let i=new bg(e,t);return this.finishScalar(i)}newScalarLessThan(e,t){let n=e instanceof yn;if(t instanceof yn&&!n)return this.newScalarGreaterThan(t,e);e=this.removeUnknown(e,t.definition),t=this.removeUnknown(t,e.definition);let i=new vg(e,t);return this.finishScalar(i)}newScalarLessThanOrEqual(e,t){let n=e instanceof yn;if(t instanceof yn&&!n)return this.newScalarGreaterThanOrEqual(t,e);e=this.removeUnknown(e,t.definition),t=this.removeUnknown(t,e.definition);let i=new yg(e,t);return this.finishScalar(i)}newScalarGreaterThan(e,t){let n=e instanceof yn;if(t instanceof yn&&!n)return this.newScalarLessThan(t,e);e=this.removeUnknown(e,t.definition),t=this.removeUnknown(t,e.definition);let i=new mg(e,t);return this.finishScalar(i)}newScalarGreaterThanOrEqual(e,t){let n=e instanceof yn;if(t instanceof yn&&!n)return this.newScalarLessThanOrEqual(t,e);e=this.removeUnknown(e,t.definition),t=this.removeUnknown(t,e.definition);let i=new gg(e,t);return this.finishScalar(i)}newScalarIn(e,t){t.definition.type==="array"&&(e=this.removeUnknown(e,t.definition.definition));let n={type:"array",isNullable:!0,definition:e.definition};t=this.removeUnknown(t,n);let r=new u6(e,t);return this.finishScalar(r)}newScalarNotIn(e,t){t.definition.type==="array"&&(e=this.removeUnknown(e,t.definition.definition));let n={type:"array",isNullable:!0,definition:e.definition};t=this.removeUnknown(t,n);let r=new m6(e,t);return this.finishScalar(r)}newScalarCase(e,t,n){if(e){let i=[];for(let{when:o,then:s}of t){let a=this.removeUnknown(o,e.definition),l=new sv(a,s);i.push(l)}t=i}let r=new qN(e,t,n);return this.finishScalar(r)}newScalarContains(e,t){let n=new XT(e,t);return this.finishScalar(n)}newScalarStartsWith(e,t){let n=new iE(e,t);return this.finishScalar(n)}newScalarEndsWith(e,t){let n=new KT(e,t);return this.finishScalar(n)}newScalarLength(e){let t=new h6(e);return this.finishScalar(t)}newScalarIndexOf(e,t){let n=new d6(e,t);return this.finishScalar(n)}newScalarArray(e,t,n,r,i){let o=new s6(e,t,n,r,i);return this.finishScalar(o)}newScalarFlatArray(e,t,n,r,i){let o=new l6(e,t,n,r,i);return this.finishScalar(o)}newScalarCast(e,t){if(e.definition.type===t.type)return e;let n=new a6(e,t);return this.finishScalar(n)}},gE=class extends On{},v6=class vE extends gE{constructor(t,n){super(!1),this.input=t,this.fields=n,E(this,"inputGroup"),this.inputGroup=t.getGroup()}getHash(){return ve("EnforcerResolve",this.inputGroup.id,this.fields)}getOutputFields(){return this.inputGroup.relational.outputFields}canProvideOrdering(){return!0}canProvideResolvedFields(t){return t.subsetOf(this.fields)}getInputRequiredProps(t){let n=new J;return new xn(t.ordering,n)}optimize(t,n){let r=this.getInputRequiredProps(n),i=t.optimizeGroup(this.inputGroup,r);return pe.estimate(0,100*Ju).add(i)}getOptimized(t){let n=this.getInputRequiredProps(t),r=this.inputGroup.getOptimized(n);return new vE(r,this.fields)}*evaluate(t){let n=yield*this.input.evaluate(t);N(this.fields.subsetOf(n.fields),"Fields can't be resolved");let r=new Set;for(let o of this.fields)N(o.collection,"Collection required to resolve field"),r.add(o.collection);for(let o of n.tuples)for(let s of this.fields){let a=o.getValue(s);a?.type==="richtext"&&(N(a.value instanceof ov,"Pointer must be wrapped"),a.value.resolve())}let i=yield Promise.all(Array.from(r).map(async o=>{let s=[];for(let l of n.tuples){let c=l.getPointer(o);c&&s.push(c)}let a=await o.data.resolveItems(s);return N(a.length===s.length,"Invalid number of items"),[o,a]}));return n.map(n.fields,o=>{let s=new vr;s.merge(o);for(let[a,l]of i){let c=o.getPointer(a);if(!c)continue;let u=l.shift();N(u,"Item not found"),N(u.pointer===c,"Pointer mismatch");for(let f of a.fields){let d=f.getValue(u);s.addValue(f,d)}}return s})}},Hm={type:0},y6=class yE extends gE{constructor(t,n){super(t.isSynchronous),this.input=t,this.ordering=n,E(this,"inputGroup"),this.inputGroup=t.getGroup()}getHash(){return ve("EnforcerSort",this.inputGroup.id,this.ordering)}getOutputFields(){return this.inputGroup.relational.outputFields}canProvideOrdering(t){return t.equals(this.ordering)}canProvideResolvedFields(){return!0}getInputRequiredProps(t){let n=new J(t.resolvedFields);for(let{field:i}of this.ordering.fields)i.name!==ks&&(at(i.collection)||n.add(i));let r=new pr;return new xn(r,n)}optimize(t,n){let r=this.getInputRequiredProps(n),i=t.optimizeGroup(this.inputGroup,r);return new pe(0).add(i)}getOptimized(t){let n=this.getInputRequiredProps(t),r=this.inputGroup.getOptimized(n);return new yE(r,this.ordering)}*evaluate(t){return(yield*this.input.evaluate(t)).sort((r,i)=>{for(let{field:o,direction:s}of this.ordering.fields){let a=s==="asc";if(o.name===ks){let u=o.collection;N(u,"Collection required for sorting");let f=r.getPointer(u);N(f,"Pointer required for sorting");let d={pointer:f,data:{}},h=i.getPointer(u);N(h,"Pointer required for sorting");let p={pointer:h,data:{}},y=u.data.compareItems(d,p);return a?y:-y}let l=r.getValue(o),c=i.getValue(o);if(!je.equal(l,c,Hm)){if(hr(l)||je.lessThan(l,c,Hm))return a?-1:1;if(hr(c)||je.greaterThan(l,c,Hm))return a?1:-1;throw new Error("Invalid comparison")}}return 0})}};var b6=class{constructor(e,t){this.query=e,this.locale=t,E(this,"memo",new r6),E(this,"normalizer",new g6(this.memo)),E(this,"explorer",new t6(this.normalizer))}optimize(){let t=new XN(this.normalizer,this.query,this.locale).build(),r=t.takeNode().getGroup(),i=t.getRequiredProps();this.optimizeGroup(r,i);let o=r.getOptimized(i),s=t.getNamedFields();return[o,s]}optimizeGroup(e,t){let n=e.getWinner(t);if(n.node)return n.cost;let r=e.nodes[0];N(r,"Normalized node not found"),this.createEnforcer(n,r,t);for(let i of e.nodes){if(t.canProvide(i)){let o=i.optimize(this,t);n.update(i,o)}t.isMinimal&&this.explorer.explore(i)}return n.cost}createEnforcer(e,t,n){if(n.resolvedFields.size>0){let r=new v6(t,n.resolvedFields),i=r.optimize(this,n);e.update(r,i)}if(n.ordering.length>0){let r=new y6(t,n.ordering),i=r.optimize(this,n);e.update(r,i)}}};function x6(e){return e.collection?`"${e.collection}"."${e.name}"`:`"${e.name}"`}function w6(e){return typeof e.value=="string"?`'${e.value}'`:e.value}function S6(e){return`${e.functionName}(${e.arguments.map(t=>qt(t)).join(", ")})`}function k6(e){let t="CASE";e.value&&(t+=` ${qt(e.value)}`);for(let n of e.conditions)t+=` WHEN ${qt(n.when)} THEN ${qt(n.then)}`;return e.else&&(t+=` ELSE ${qt(e.else)}`),t+=" END",t}function C6(e){let t=qt(e.value);return`${e.operator.toUpperCase()} ${t}`}function R6(e){let t=qt(e.left),n=qt(e.right),r=e.operator.toUpperCase();return`${t} ${r} ${n}`}function T6(e){return`CAST(${qt(e.value)} as ${e.dataType})`}function qt(e){switch(e.type){case"Identifier":return x6(e);case"LiteralValue":return w6(e);case"FunctionCall":return S6(e);case"Case":return k6(e);case"UnaryOperation":return C6(e);case"BinaryOperation":return R6(e);case"TypeCast":return T6(e);case"Select":return`${bE(e)}`;default:we(e)}}function E6(e){return iv(e.data)?"Collection":e.alias?`"${e.data.displayName}" AS "${e.alias}"`:`"${e.data.displayName}"`}function F6(e){let t=`${wg(e.left)} LEFT JOIN ${wg(e.right)}`;return e.constraint&&(t+=` ON ${qt(e.constraint)}`),t}function wg(e){switch(e.type){case"Collection":return E6(e);case"LeftJoin":return F6(e);default:we(e)}}function P6(e){let t="";return e.split(/\s+/u).forEach(r=>{r!==""&&(["SELECT","FROM","WHERE","ORDER","LIMIT","OFFSET"].includes(r)?t+=`
${r}`:["AND","OR"].includes(r)?t+=`
	${r}`:t+=` ${r}`)}),t.trim()}function bE(e){let t="";return t+=`SELECT ${e.select.map(n=>{let r=qt(n);return n.alias?`${r} AS "${n.alias}"`:r}).join(", ")}`,t+=` FROM ${wg(e.from)}`,e.where&&(t+=` WHERE ${qt(e.where)}`),e.orderBy&&(t+=` ORDER BY ${e.orderBy.map(n=>`${qt(n)} ${n.direction??"asc"}`).join(", ")}`),e.limit&&(t+=` LIMIT ${qt(e.limit)}`),e.offset&&(t+=` OFFSET ${qt(e.offset)}`),P6(t)}var I6=pN("query-engine"),_6=class{async query(e,t){I6.debug(`Query:
${bE(e)}`);let n=new b6(e,t),[r,i]=n.optimize(),o=await r.evaluateAsync(),s=Object.entries(i);return await Promise.all(o.tuples.map(async l=>{let c=await Promise.all(s.map(async([u,f])=>{let d=l.getValue(f),h=await this.resolveValue(d);return[u,h]}));return Object.fromEntries(c)}))}async resolveValue(e){if(e?.type==="richtext")return N(e.value instanceof ov,"Pointer must be wrapped"),e.value.resolve();if(e?.type==="array")return Promise.all(e.value.map(async t=>this.resolveValue(t)));if(e?.type==="object"){let t=Object.entries(e.value),n=await Promise.all(t.map(async([r,i])=>{let o=await this.resolveValue(i);return[r,o]}));return Object.fromEntries(n)}return e?.value??null}},O6=class{constructor(e){this.queryEngine=e,E(this,"cache",new Map)}get(e,t){let n=V6(e,t),r=this.cache.get(n);if(r)return r;let i=()=>this.queryEngine.query(e,t),o=new Kg(i);return this.cache.set(n,o),o}},Uk=new WeakMap;function M6(e){let t=Uk.get(e);if(t)return t;let n=Math.random().toString(16).slice(2);return Uk.set(e,n),n}function L6(e,t){return ge(t)&&t.type==="Collection"&&mN(t.data)?M6(t.data):t}function V6(e,t){let n=t?.id??"default";return JSON.stringify(e,L6)+n}function Wm(e,t){e.forEach(n=>clearTimeout(n)),e.clear(),t.forEach(n=>n?.("Callback cancelled by variant change")),t.clear()}function Gk(){return new Set}function JG(e){let t=st(Gk),n=st(Gk);return BR(()=>()=>Wm(n,t)),$(()=>()=>Wm(n,t),[]),$(()=>{Wm(n,t)},[e]),V({activeVariantCallback:r=>async(...i)=>new Promise((o,s)=>{t.add(s),r(...i).then(o)}).catch(()=>{}),delay:async(r,i)=>{await new Promise(o=>{n.add(globalThis.setTimeout(()=>o(!0),i))}),r()}}).current}function A6(e,t,n){return w.useCallback(r=>{var i,o,s;return n?e?t?Object.assign({},(i=n[e])==null?void 0:i[r],(o=n[t])==null?void 0:o[r]):((s=n[e])==null?void 0:s[r])||{}:{}:{}},[e,t,n])}function D6(e){for(let[t,n]of Object.entries(e))if(xe.matchMedia(n).matches)return t}function z6(e){var t;let n=[];for(let{hash:i,mediaQuery:o}of e){if(!o)continue;xe.matchMedia(o).matches&&n.push(i)}if(n.length>0)return n;let r=(t=e[0])==null?void 0:t.hash;if(r)return[r]}function nq(e,t,n=!0){let r=z(HR),i=t5(),o=!i&&gr(),s=V(o?D6(t)??e:e),a=V(n&&r?e:s.current),l=df(),c=Yb(),u=G(f=>{if(f!==s.current||f!==a.current){let h=function(){s.current=a.current=f,Ve(()=>{l()})};var d=h;i?h():c(()=>{h()})}},[c,l,i]);return sg(()=>{i&&u(e)},[e,i,u]),sg(()=>{!n||r!==!0||u(s.current)},[]),$(()=>{let f=[];for(let[d,h]of Object.entries(t)){let p=xe.matchMedia(h),y=x=>{x.matches&&u(d)};B6(p,y),f.push([p,y])}return()=>f.forEach(([d,h])=>$6(d,h))},[t,u]),[s.current,a.current]}function B6(e,t){e.addEventListener?e.addEventListener("change",t):e.addListener(t)}function $6(e,t){e.removeEventListener?e.removeEventListener("change",t):e.removeListener(t)}var N6="style[data-framer-breakpoint-css]";function j6(e){setTimeout(e,1)}function rq(e){var t,n,r,i;let o=new Set,s=z6(e);if(s)for(let l of s)for(let c of document.querySelectorAll(".hidden-"+l))qk(c.previousSibling)&&o.add(c.previousSibling),(t=c.parentNode)==null||t.removeChild(c);(LC?xe.requestIdleCallback:j6)(()=>{var l;(l=document.querySelector(N6))==null||l.remove()});for(let l of document.querySelectorAll(".ssr-variant:empty"))qk(l.previousSibling)&&o.add(l.previousSibling),(n=l.parentNode)==null||n.removeChild(l);for(let l of o)H6(l.nextSibling)&&((r=l.parentNode)==null||r.removeChild(l.nextSibling),(i=l.parentNode)==null||i.removeChild(l))}function qk(e){return e?.nodeType===Node.COMMENT_NODE&&e.textContent==="$"}function H6(e){return e?.nodeType===Node.COMMENT_NODE&&e.textContent==="/$"}function Xk(e,t){if(e[t])return e[t];if(!(t in e))return e.default}function cq(e,t){if(fl())return;let r=w.useRef(!0),i=w.useRef(t);BR((o,s)=>{let a=o&&!s;if(!r.current&&a){let l=Xk(i.current,e);l&&l()}r.current=a},[]),w.useEffect(()=>{if(r.current){let o=Xk(i.current,e);o&&o()}},[e])}async function Yk(e,t,n=!0){e!==!1&&(n&&await Ei(),Q.render(()=>{let r=document.documentElement.style;t?r.setProperty("overflow","hidden"):r.removeProperty("overflow")}))}function fq({blockDocumentScrolling:e=!0}={}){let[t,n]=w.useState(!1),r=w.useCallback(i=>{n(i),Yk(e,i)},[e]);return w.useEffect(()=>()=>{Yk(e,!1,!1)},[e]),[t,r]}var W6="page";function Kk(e){return ge(e)&&W6 in e&&e.page!==void 0}function U6(e){throw e}var G6=new _6,q6=new O6(G6);function X6(e){let{activeLocale:t}=sl(),n=q6.get(e,t),r=n.preload();return r&&U6(r),n.read()}function Y6(e){let t={...e,select:[]};return X6(t).length}function pq(e,t){let r=Object.entries(e??{}).filter(([,i])=>!(at(i)||ge(i))).map(([i,o])=>({type:"BinaryOperation",operator:"==",left:{type:"TypeCast",value:{type:"Identifier",name:i,collection:t},dataType:"STRING"},right:{type:"LiteralValue",value:String(o)}}));return r.length===0?{type:"LiteralValue",value:!1}:r.reduce((i,o)=>({type:"BinaryOperation",operator:"and",left:i,right:o}))}function K6(e,t,n,r=!1){let i=Math.ceil(e/t),[o,s]=Re(()=>{var c,u,f,d;return{currentPage:((d=(f=(u=(c=globalThis?.history)==null?void 0:c.state)==null?void 0:u.paginationInfo)==null?void 0:f[n])==null?void 0:d.currentPage)??1,totalPages:i,isLoading:!1}});$(()=>{Ve(()=>{s(c=>c.totalPages===i?c:{...c,totalPages:i})})},[i]),$(()=>{xA(n,o)},[n,o]);let a=Es(),l=G(()=>{if(!a&&!(o.currentPage>=o.totalPages)){if(!r){Ve(()=>{s(c=>({...c,currentPage:Math.min(c.currentPage+1,c.totalPages),isLoading:!1}))});return}s(c=>({...c,isLoading:!0})),requestAnimationFrame(()=>{s(c=>({...c,currentPage:Math.min(c.currentPage+1,c.totalPages),isLoading:!1}))})}},[a,o.currentPage,o.totalPages,r]);return{paginationInfo:o,loadMore:l}}function vq(e,t,n){let r=Y6(e),{paginationInfo:i,loadMore:o}=K6(r,t,n,!0);return{paginatedQuery:re(()=>{let a=t*i.currentPage;if(e.limit){if(e.limit.type!=="LiteralValue"||typeof e.limit.value!="number")throw new Error("Unexpected type for query limit");a=Math.min(a,e.limit.value)}return{...e,limit:{type:"LiteralValue",value:a}}},[e,t,i]),paginationInfo:i,loadMore:o}}function Qk(e,t){return`${e}-${t}`}function Q6(e,t){let r=e.indexOf(t)+1;r>=e.length&&(r=0);let i=e[r];return N(i!==void 0,"nextVariant should be defined"),i}function Z6(e,t){if(e){if(t){let n=e[t];if(n)return n}return e.default}}function Zk(e,t,n,r,i){let{hover:o,pressed:s,loading:a,error:l}=e||{};if(l&&i)return"error";if(a&&r)return"loading";if(s&&n)return"pressed";if(o&&t)return"hover"}function J6(e,t){let n=t[e];return n||`framer-v-${e}`}function Jk(e,t,n){return e&&n.has(e)?e:t}var ej=Symbol("cycle");function tj(){let e=V(),t=V(),n=G(()=>{e.current&&(document.removeEventListener("visibilitychange",e.current),e.current=void 0,t.current=void 0)},[]);return $(()=>()=>{n()},[n]),G(r=>{if(!document.hidden){r(),n();return}if(t.current=r,e.current)return;let i=()=>{var o;document.hidden||((o=t.current)==null||o.call(t),n())};e.current=i,document.addEventListener("visibilitychange",i)},[n])}function nj(){let e=V(null),t=V(!1),n=V();return $(()=>()=>{var r;(r=e.current)==null||r.disconnect(),n.current=void 0,e.current=null},[]),G((r,i)=>{if(!i?.current||t.current){r();return}if(n.current=r,e.current)return;let o=new IntersectionObserver(s=>{var a;let l=!1;for(let c=0;c<s.length;++c)l=s[c].isIntersecting;t.current=l,l&&((a=n.current)==null||a.call(n))});e.current=o,o.observe(i.current)},[])}function rj(e){let t=tj(),n=nj();return G((r,i=!1)=>{if(el){r();return}t(i&&e?()=>n(r,e):r)},[t,n,e])}function bq({variant:e,defaultVariant:t,transitions:n,enabledGestures:r,cycleOrder:i=[],variantProps:o={},variantClassNames:s={},ref:a}){let l=df(),c=Es(),u=st(()=>new Set(i)),{pauseOffscreen:f}=Qg(),d=G(L=>{if(L){Ve(()=>void l());return}l()},[l]),h=rj(a),p=V({isHovered:!1,isPressed:!1,isError:!1,hasPressedVariants:!0,baseVariant:Jk(e,t,u),lastVariant:e,gestureVariant:void 0,loadedBaseVariant:{},defaultVariant:t,enabledGestures:r,cycleOrder:i,transitions:n}),y=G(L=>{let{isHovered:Y,isPressed:W,isError:ne,enabledGestures:U,defaultVariant:ee}=p.current,ae=Jk(L,ee,u),me=Zk(U?.[ae],Y,W,!1,ne),K=me?Qk(ae,me):void 0;return[ae,K]},[]),x=G((L,Y,W,ne,U=!1,ee=!1,ae=!1,me=!1)=>{let[K,se]=y(ne);K===L&&se===Y||(me&&(p.current.isError=!1),p.current.baseVariant=K||W,p.current.gestureVariant=se,h(()=>d(!ae||U),f&&ee))},[y,d,h,f]),m=G(({isHovered:L,isPressed:Y,isError:W})=>{L!==void 0&&(p.current.isHovered=L),Y!==void 0&&(p.current.isPressed=Y),W!==void 0&&(p.current.isError=W);let{baseVariant:ne,gestureVariant:U,defaultVariant:ee}=p.current;x(ne,U,ee,ne,W,!(Y||L),L)},[x]),g=G((L,Y=!1)=>{let{defaultVariant:W,cycleOrder:ne,baseVariant:U,gestureVariant:ee}=p.current,ae=L===ej?Q6(ne||[],U||W):L;x(U,ee,W,ae,!1,Y,!1,!0)},[x]),v=G(()=>{let{baseVariant:L}=p.current;p.current.loadedBaseVariant[L]=!0,h(()=>d(!0),!0)},[d,h]);if(e!==p.current.lastVariant){let[L,Y]=y(e);p.current.lastVariant=L,(L!==p.current.baseVariant||Y!==p.current.gestureVariant)&&(p.current.baseVariant=L,p.current.gestureVariant=Y)}let{baseVariant:b,gestureVariant:C,defaultVariant:S,enabledGestures:R,isHovered:T,isPressed:F,isError:P,loadedBaseVariant:B}=p.current,H=A6(p.current.baseVariant,p.current.gestureVariant,o);return re(()=>{var L;let Y=[];b!==S&&Y.push(b);let W=(L=R?.[b])==null?void 0:L.loading,ne=!P&&!c&&!!W&&!B[b],U=ne?Qk(b,"loading"):C;U&&Y.push(U);let ee=R?.[b],ae={onMouseEnter:()=>m({isHovered:!0}),onMouseLeave:()=>m({isHovered:!1})};return ee?.pressed&&Object.assign(ae,{onTapStart:()=>m({isPressed:!0}),onTapCancel:()=>m({isPressed:!1}),onTap:()=>m({isPressed:!1})}),{variants:Y,baseVariant:b,gestureVariant:U,isLoading:ne,transition:Z6(p.current.transitions,b),setVariant:g,setGestureState:m,clearLoadingGesture:v,addVariantProps:H,gestureHandlers:ae,classNames:Fi(J6(b,s),Zk(ee,T,F,ne,P))}},[b,C,T,F,B,H,g,S,R,m,v,s])}var ij=new Set(["visibleVariantId","obscuredVariantId","threshold","animateOnce","variantAppearEffectEnabled","targets","exitTarget","scrollDirection"]),eC={inputRange:[],outputRange:[]};function oj(e,t,n){let r=[],i=Gg(e,t,s=>r.unshift(s,s));if(n){let s=i[i.length-1];if(!Ae(s))return eC;i.push(s+1),r.push(-1)}let o=i[0];return Ae(o)?o<=1?{inputRange:i,outputRange:r}:{inputRange:[0,Math.max(o-1,0),...i],outputRange:[-1,-1,...r]}:eC}var Rq=e=>w.forwardRef((t,n)=>{if(he.current()===he.canvas)return k(e,{...t,ref:n});let[r,i]=mz(t,ij),{visibleVariantId:o,obscuredVariantId:s,animateOnce:a,threshold:l,variantAppearEffectEnabled:c,targets:u,exitTarget:f,scrollDirection:d}=r,[h,p]=w.useState(s),y=w.useRef(!1),x=Hg(n);return AR(x,m=>{r.targets||r.scrollDirection||a&&y.current===!0||y.current!==m&&(y.current=m,w.startTransition(()=>{p(m?o:s)}))},{enabled:c,animateOnce:a,threshold:{y:l}}),w.useEffect(()=>{if(d||!u)return;let m={},g;return Er(({y:v})=>{var b;if(!u[0]||u[0].ref&&!u[0].ref.current)return;let{inputRange:C,outputRange:S}=oj(u,(l??0)*v.containerLength,f);if(C.length===0||C.length!==S.length)return;let R=Math.floor(_o(v.current,C,S));if(a&&m[R])return;m[R]=!0;let T=((b=u[R])==null?void 0:b.target)??void 0;T!==g&&(g=T,w.startTransition(()=>{p(T)}))})},[a,l,u,t.variant,d,f]),tT(d,p,{enabled:c,repeat:!a}),af(()=>{if(!c)return;let g=!r.targets&&!r.scrollDirection?r.obscuredVariantId:void 0;w.startTransition(()=>p(g))}),!("variantAppearEffectEnabled"in r)||c===!0?k(e,{...i,variant:h??t.variant,ref:x}):k(e,{...i})});var sj=w.createContext(void 0),aj=()=>w.useContext(sj);var lj={Arial:{Regular:{selector:"Arial",weight:void 0},Black:{selector:"Arial-Black",weight:void 0},Narrow:{selector:"Arial Narrow",weight:void 0},"Rounded Bold":{selector:"Arial Rounded MT Bold",weight:void 0}},Avenir:{Book:{selector:"Avenir",weight:void 0},Light:{selector:"Avenir-Light",weight:void 0},Medium:{selector:"Avenir-Medium",weight:void 0},Heavy:{selector:"Avenir-Heavy",weight:void 0},Black:{selector:"Avenir-Black",weight:void 0}},"Avenir Next":{Regular:{selector:"Avenir Next",weight:void 0},"Ultra Light":{selector:"AvenirNext-UltraLight",weight:void 0},Medium:{selector:"AvenirNext-Medium",weight:void 0},"Demi Bold":{selector:"AvenirNext-DemiBold",weight:void 0},Heavy:{selector:"AvenirNext-Heavy",weight:void 0}},"Avenir Next Condensed":{Regular:{selector:"Avenir Next Condensed",weight:void 0},"Ultra Light":{selector:"AvenirNextCondensed-UltraLight",weight:void 0},Medium:{selector:"AvenirNextCondensed-Medium",weight:void 0},"Demi Bold":{selector:"AvenirNextCondensed-DemiBold",weight:void 0},Heavy:{selector:"AvenirNextCondensed-Heavy",weight:void 0}},Baskerville:{Regular:{selector:"Baskerville",weight:void 0},"Semi Bold":{selector:"Baskerville-SemiBold",weight:void 0}},"Bodoni 72":{Book:{selector:"Bodoni 72",weight:void 0},Oldstyle:{selector:"Bodoni 72 Oldstyle",weight:void 0},Smallcaps:{selector:"Bodoni 72 Smallcaps",weight:void 0}},Courier:{Regular:{selector:"Courier",weight:void 0}},"Courier New":{Regular:{selector:"Courier New",weight:void 0}},Futura:{Medium:{selector:"Futura",weight:void 0},Condensed:{selector:"Futura-CondensedMedium",weight:void 0},"Condensed ExtraBold":{selector:"Futura-CondensedExtraBold",weight:void 0}},Georgia:{Regular:{selector:"Georgia",weight:void 0}},"Gill Sans":{Regular:{selector:"Gill Sans",weight:void 0},Light:{selector:"GillSans-Light",weight:void 0},SemiBold:{selector:"GillSans-SemiBold",weight:void 0},UltraBold:{selector:"GillSans-UltraBold",weight:void 0}},Helvetica:{Regular:{selector:"Helvetica",weight:void 0},Light:{selector:"Helvetica-Light",weight:void 0},Bold:{selector:"Helvetica-Bold",weight:void 0},Oblique:{selector:"Helvetica-Oblique",weight:void 0},"Light Oblique":{selector:"Helvetica-LightOblique",weight:void 0},"Bold Oblique":{selector:"Helvetica-BoldOblique",weight:void 0}},"Helvetica Neue":{Regular:{selector:"Helvetica Neue",weight:void 0},UltraLight:{selector:"HelveticaNeue-UltraLight",weight:void 0},Thin:{selector:"HelveticaNeue-Thin",weight:void 0},Light:{selector:"HelveticaNeue-Light",weight:void 0},Medium:{selector:"HelveticaNeue-Medium",weight:void 0},Bold:{selector:"HelveticaNeue-Bold",weight:void 0},Italic:{selector:"HelveticaNeue-Italic",weight:void 0},"UltraLight Italic":{selector:"HelveticaNeue-UltraLightItalic",weight:void 0},"Thin Italic":{selector:"HelveticaNeue-ThinItalic",weight:void 0},"Light Italic":{selector:"HelveticaNeue-LightItalic",weight:void 0},"Medium Italic":{selector:"HelveticaNeue-MediumItalic",weight:void 0},"Bold Italic":{selector:"HelveticaNeue-BoldItalic",weight:void 0},"Condensed Bold":{selector:"HelveticaNeue-CondensedBold",weight:void 0},"Condensed Black":{selector:"HelveticaNeue-CondensedBlack",weight:void 0}},"Hoefler Text":{Regular:{selector:"Hoefler Text",weight:void 0}},Impact:{Regular:{selector:"Impact",weight:void 0}},"Lucida Grande":{Regular:{selector:"Lucida Grande",weight:void 0}},Menlo:{Regular:{selector:"Menlo",weight:void 0}},Monaco:{Regular:{selector:"Monaco",weight:void 0}},Optima:{Regular:{selector:"Optima",weight:void 0},ExtraBlack:{selector:"Optima-ExtraBlack",weight:void 0}},Palatino:{Regular:{selector:"Palatino",weight:void 0}},"SF Pro Display":{Regular:{selector:"__SF-UI-Display-Regular__",weight:400},Ultralight:{selector:"__SF-UI-Display-Ultralight__",weight:100},Thin:{selector:"__SF-UI-Display-Thin__",weight:200},Light:{selector:"__SF-UI-Display-Light__",weight:300},Medium:{selector:"__SF-UI-Display-Medium__",weight:500},Semibold:{selector:"__SF-UI-Display-Semibold__",weight:600},Bold:{selector:"__SF-UI-Display-Bold__",weight:700},Heavy:{selector:"__SF-UI-Display-Heavy__",weight:800},Black:{selector:"__SF-UI-Display-Black__",weight:900},Italic:{selector:"__SF-UI-Display-Italic__",weight:400},"Ultralight Italic":{selector:"__SF-UI-Display-Ultralight-Italic__",weight:100},"Thin Italic":{selector:"__SF-UI-Display-Thin-Italic__",weight:200},"Light Italic":{selector:"__SF-UI-Display-Light-Italic__",weight:300},"Medium Italic":{selector:"__SF-UI-Display-Medium-Italic__",weight:500},"Semibold Italic":{selector:"__SF-UI-Display-Semibold-Italic__",weight:600},"Bold Italic":{selector:"__SF-UI-Display-Bold-Italic__",weight:700},"Heavy Italic":{selector:"__SF-UI-Display-Heavy-Italic__",weight:800},"Black Italic":{selector:"__SF-UI-Display-Black-Italic__",weight:900}},"SF Pro Display Condensed":{Regular:{selector:"__SF-UI-Display-Condensed-Regular__",weight:400},Ultralight:{selector:"__SF-UI-Display-Condensed-Ultralight__",weight:100},Thin:{selector:"__SF-UI-Display-Condensed-Thin__",weight:200},Light:{selector:"__SF-UI-Display-Condensed-Light__",weight:300},Medium:{selector:"__SF-UI-Display-Condensed-Medium__",weight:500},Semibold:{selector:"__SF-UI-Display-Condensed-Semibold__",weight:600},Bold:{selector:"__SF-UI-Display-Condensed-Bold__",weight:700},Heavy:{selector:"__SF-UI-Display-Condensed-Heavy__",weight:800},Black:{selector:"__SF-UI-Display-Condensed-Black__",weight:900}},"SF Pro Text":{Regular:{selector:"__SF-UI-Text-Regular__",weight:400},Light:{selector:"__SF-UI-Text-Light__",weight:200},Medium:{selector:"__SF-UI-Text-Medium__",weight:500},Semibold:{selector:"__SF-UI-Text-Semibold__",weight:600},Bold:{selector:"__SF-UI-Text-Bold__",weight:700},Heavy:{selector:"__SF-UI-Text-Heavy__",weight:800},Italic:{selector:"__SF-UI-Text-Italic__",weight:400},"Light Italic":{selector:"__SF-UI-Text-Light-Italic__",weight:200},"Medium Italic":{selector:"__SF-UI-Text-Medium-Italic__",weight:500},"Semibold Italic":{selector:"__SF-UI-Text-Semibold-Italic__",weight:600},"Bold Italic":{selector:"__SF-UI-Text-Bold-Italic__",weight:700},"Heavy Italic":{selector:"__SF-UI-Text-Heavy-Italic__",weight:800}},"SF Pro Text Condensed":{Regular:{selector:"__SF-UI-Text-Condensed-Regular__",weight:400},Light:{selector:"__SF-UI-Text-Condensed-Light__",weight:200},Medium:{selector:"__SF-UI-Text-Condensed-Medium__",weight:500},Semibold:{selector:"__SF-UI-Text-Condensed-Semibold__",weight:600},Bold:{selector:"__SF-UI-Text-Condensed-Bold__",weight:700},Heavy:{selector:"__SF-UI-Text-Condensed-Heavy__",weight:800}},Tahoma:{Regular:{selector:"Tahoma",weight:void 0}},Times:{Regular:{selector:"Times",weight:void 0}},"Times New Roman":{Regular:{selector:"Times New Roman",weight:void 0}},Trebuchet:{Regular:{selector:"Trebuchet MS",weight:void 0}},Verdana:{Regular:{selector:"Verdana",weight:void 0}}},cj={"__SF-Compact-Display-Regular__":"SFCompactDisplay-Regular|.SFCompactDisplay-Regular","__SF-Compact-Display-Ultralight__":"SFCompactDisplay-Ultralight|.SFCompactDisplay-Ultralight","__SF-Compact-Display-Thin__":"SFCompactDisplay-Thin|.SFCompactDisplay-Thin","__SF-Compact-Display-Light__":"SFCompactDisplay-Light|.SFCompactDisplay-Light","__SF-Compact-Display-Medium__":"SFCompactDisplay-Medium|.SFCompactDisplay-Medium","__SF-Compact-Display-Semibold__":"SFCompactDisplay-Semibold|.SFCompactDisplay-Semibold","__SF-Compact-Display-Heavy__":"SFCompactDisplay-Heavy|.SFCompactDisplay-Heavy","__SF-Compact-Display-Black__":"SFCompactDisplay-Black|.SFCompactDisplay-Black","__SF-Compact-Display-Bold__":"SFCompactDisplay-Bold|.SFCompactDisplay-Bold","__SF-UI-Text-Regular__":".SFNSText|SFProText-Regular|SFUIText-Regular|.SFUIText","__SF-UI-Text-Light__":".SFNSText-Light|SFProText-Light|SFUIText-Light|.SFUIText-Light","__SF-UI-Text-Medium__":".SFNSText-Medium|SFProText-Medium|SFUIText-Medium|.SFUIText-Medium","__SF-UI-Text-Semibold__":".SFNSText-Semibold|SFProText-Semibold|SFUIText-Semibold|.SFUIText-Semibold","__SF-UI-Text-Bold__":".SFNSText-Bold|SFProText-Bold|SFUIText-Bold|.SFUIText-Bold","__SF-UI-Text-Heavy__":".SFNSText-Heavy|SFProText-Heavy|.SFUIText-Heavy","__SF-UI-Text-Italic__":".SFNSText-Italic|SFProText-Italic|SFUIText-Italic|.SFUIText-Italic","__SF-UI-Text-Light-Italic__":".SFNSText-LightItalic|SFProText-LightItalic|SFUIText-LightItalic|.SFUIText-LightItalic","__SF-UI-Text-Medium-Italic__":".SFNSText-MediumItalic|SFProText-MediumItalic|SFUIText-MediumItalic|.SFUIText-MediumItalic","__SF-UI-Text-Semibold-Italic__":".SFNSText-SemiboldItalic|SFProText-SemiboldItalic|SFUIText-SemiboldItalic|.SFUIText-SemiboldItalic","__SF-UI-Text-Bold-Italic__":".SFNSText-BoldItalic|SFProText-BoldItalic|SFUIText-BoldItalic|.SFUIText-BoldItalic","__SF-UI-Text-Heavy-Italic__":".SFNSText-HeavyItalic|SFProText-HeavyItalic|.SFUIText-HeavyItalic","__SF-Compact-Text-Regular__":"SFCompactText-Regular|.SFCompactText-Regular","__SF-Compact-Text-Light__":"SFCompactText-Light|.SFCompactText-Light","__SF-Compact-Text-Medium__":"SFCompactText-Medium|.SFCompactText-Medium","__SF-Compact-Text-Semibold__":"SFCompactText-Semibold|.SFCompactText-Semibold","__SF-Compact-Text-Bold__":"SFCompactText-Bold|.SFCompactText-Bold","__SF-Compact-Text-Heavy__":"SFCompactText-Heavy|.SFCompactText-Heavy","__SF-Compact-Text-Italic__":"SFCompactText-Italic|.SFCompactText-Italic","__SF-Compact-Text-Light-Italic__":"SFCompactText-LightItalic|.SFCompactText-LightItalic","__SF-Compact-Text-Medium-Italic__":"SFCompactText-MediumItalic|.SFCompactText-MediumItalic","__SF-Compact-Text-Semibold-Italic__":"SFCompactText-SemiboldItalic|.SFCompactText-SemiboldItalic","__SF-Compact-Text-Bold-Italic__":"SFCompactText-BoldItalic|.SFCompactText-BoldItalic","__SF-Compact-Text-Heavy-Italic__":"SFCompactText-HeavyItalic|.SFCompactText-HeavyItalic","__SF-UI-Display-Condensed-Regular__":".SFNSDisplayCondensed-Regular|SFUIDisplayCondensed-Regular|.SFUIDisplayCondensed-Regular","__SF-UI-Display-Condensed-Ultralight__":".SFNSDisplayCondensed-Ultralight|SFUIDisplayCondensed-Ultralight|.SFUIDisplayCondensed-Ultralight","__SF-UI-Display-Condensed-Thin__":".SFNSDisplayCondensed-Thin|SFUIDisplayCondensed-Thin|.SFUIDisplayCondensed-Thin","__SF-UI-Display-Condensed-Light__":".SFNSDisplayCondensed-Light|SFUIDisplayCondensed-Light|.SFUIDisplayCondensed-Light","__SF-UI-Display-Condensed-Medium__":".SFNSDisplayCondensed-Medium|SFUIDisplayCondensed-Medium|.SFUIDisplayCondensed-Medium","__SF-UI-Display-Condensed-Semibold__":".SFNSDisplayCondensed-Semibold|SFUIDisplayCondensed-Semibold|.SFUIDisplayCondensed-Semibold","__SF-UI-Display-Condensed-Bold__":".SFNSDisplayCondensed-Bold|SFUIDisplayCondensed-Bold|.SFUIDisplayCondensed-Bold","__SF-UI-Display-Condensed-Heavy__":".SFNSDisplayCondensed-Heavy|SFUIDisplayCondensed-Heavy|.SFUIDisplayCondensed-Heavy","__SF-UI-Display-Condensed-Black__":".SFNSDisplayCondensed-Black|.SFUIDisplayCondensed-Black","__SF-UI-Display-Regular__":".SFNSDisplay|SFProDisplay-Regular|SFUIDisplay-Regular|.SFUIDisplay","__SF-UI-Display-Ultralight__":".SFNSDisplay-Ultralight|SFProDisplay-Ultralight|SFUIDisplay-Ultralight|.SFUIDisplay-Ultralight","__SF-UI-Display-Thin__":".SFNSDisplay-Thin|SFProDisplay-Thin|SFUIDisplay-Thin|.SFUIDisplay-Thin","__SF-UI-Display-Light__":".SFNSDisplay-Light|SFProDisplay-Light|SFUIDisplay-Light|.SFUIDisplay-Light","__SF-UI-Display-Medium__":".SFNSDisplay-Medium|SFProDisplay-Medium|SFUIDisplay-Medium|.SFUIDisplay-Medium","__SF-UI-Display-Semibold__":".SFNSDisplay-Semibold|SFProDisplay-Semibold|SFUIDisplay-Semibold|.SFUIDisplay-Semibold","__SF-UI-Display-Bold__":".SFNSDisplay-Bold|SFProDisplay-Bold|SFUIDisplay-Bold|.SFUIDisplay-Bold","__SF-UI-Display-Heavy__":".SFNSDisplay-Heavy|SFProDisplay-Heavy|SFUIDisplay-Heavy|.SFUIDisplay-Heavy","__SF-UI-Display-Black__":".SFNSDisplay-Black|SFProDisplay-Black|.SFUIDisplay-Black","__SF-UI-Display-Italic__":".SFNSDisplay-Italic|SFProDisplay-Italic|SFUIDisplay-Italic","__SF-UI-Display-Ultralight-Italic__":".SFNSDisplay-UltralightItalic|SFProDisplay-UltralightItalic|SFUIDisplay-UltralightItalic|.SFUIDisplay-UltralightItalic","__SF-UI-Display-Thin-Italic__":".SFNSDisplay-ThinItalic|SFProDisplay-ThinItalic|SFUIDisplay-ThinItalic|.SFUIDisplay-ThinItalic","__SF-UI-Display-Light-Italic__":".SFNSDisplay-LightItalic|SFProDisplay-LightItalic|SFUIDisplay-LightItalic|.SFUIDisplay-LightItalic","__SF-UI-Display-Medium-Italic__":".SFNSDisplay-MediumItalic|SFProDisplay-MediumItalic|SFUIDisplay-MediumItalic|.SFUIDisplay-MediumItalic","__SF-UI-Display-Semibold-Italic__":".SFNSDisplay-SemiboldItalic|SFProDisplay-SemiboldItalic|SFUIDisplay-SemiboldItalic|.SFUIDisplay-SemiboldItalic","__SF-UI-Display-Bold-Italic__":".SFNSDisplay-BoldItalic|SFProDisplay-BoldItalic|SFUIDisplay-BoldItalic|.SFUIDisplay-BoldItalic","__SF-UI-Display-Heavy-Italic__":".SFNSDisplay-HeavyItalic|SFProDisplay-HeavyItalic|SFUIDisplay-HeavyItalic|.SFUIDisplay-HeavyItalic","__SF-UI-Display-Black-Italic__":".SFNSDisplay-BlackItalic|SFProDisplay-BlackItalic|.SFUIDisplay-BlackItalic","__SF-UI-Text-Condensed-Regular__":".SFNSTextCondensed-Regular|SFUITextCondensed-Regular|.SFUITextCondensed-Regular","__SF-UI-Text-Condensed-Light__":".SFNSTextCondensed-Light|SFUITextCondensed-Light|.SFUITextCondensed-Light","__SF-UI-Text-Condensed-Medium__":".SFNSTextCondensed-Medium|SFUITextCondensed-Medium|.SFUITextCondensed-Medium","__SF-UI-Text-Condensed-Semibold__":".SFNSTextCondensed-Semibold|SFUITextCondensed-Semibold|.SFUITextCondensed-Semibold","__SF-UI-Text-Condensed-Bold__":".SFNSTextCondensed-Bold|SFUITextCondensed-Bold|.SFUITextCondensed-Bold","__SF-UI-Text-Condensed-Heavy__":".SFNSTextCondensed-Heavy|.SFUITextCondensed-Heavy","__SF-Compact-Rounded-Regular__":"SFCompactRounded-Regular|.SFCompactRounded-Regular","__SF-Compact-Rounded-Ultralight__":"SFCompactRounded-Ultralight|.SFCompactRounded-Ultralight","__SF-Compact-Rounded-Thin__":"SFCompactRounded-Thin|.SFCompactRounded-Thin","__SF-Compact-Rounded-Light__":"SFCompactRounded-Light|.SFCompactRounded-Light","__SF-Compact-Rounded-Medium__":"SFCompactRounded-Medium|.SFCompactRounded-Medium","__SF-Compact-Rounded-Semibold__":"SFCompactRounded-Semibold|.SFCompactRounded-Semibold","__SF-Compact-Rounded-Bold__":"SFCompactRounded-Bold|.SFCompactRounded-Bold","__SF-Compact-Rounded-Heavy__":"SFCompactRounded-Heavy|.SFCompactRounded-Heavy","__SF-Compact-Rounded-Black__":"SFCompactRounded-Black|.SFCompactRounded-Black"},tC=lj;function Ja(e){return e.weight!==void 0&&e.style!==void 0}var uj="System Default",fj=class{constructor(){E(this,"name","local"),E(this,"fontFamilies",[]),E(this,"byFamilyName",new Map),E(this,"fontAliasBySelector",new Map),E(this,"fontAliases",new Map)}getFontFamilyByName(e){return this.byFamilyName.get(e)??null}createFontFamily(e){let t={name:e,fonts:[],source:this.name};return this.addFontFamily(t),t}addFontFamily(e){this.fontFamilies.push(e),this.byFamilyName.set(e.name,e)}importFonts(){let e=[];for(let r of Object.keys(tC)){let i=tC[r];if(!i)continue;let o=this.createFontFamily(r);for(let s of Object.keys(i)){let a=i[s];if(!a)continue;let{selector:l,weight:c}=a,u={variant:s,selector:l,weight:c,family:o};o.fonts.push(u)}e.push(...o.fonts)}for(let[r,i]of Object.entries(cj))this.addFontAlias(r,i);let{fontFamily:t,aliases:n}=this.getSystemFontFamily();this.addFontFamily(t);for(let[r,i]of n)this.addFontAlias(r,i);return e.push(...t.fonts),e}addFontAlias(e,t){this.fontAliases.set(e,t),this.fontAliasBySelector.set(t,e)}getSystemFontFamily(){let e="system-ui|-apple-system|BlinkMacSystemFont|Segoe UI|Roboto|Oxygen|Ubuntu|Cantarell|Fira Sans|Droid Sans|Helvetica Neue|sans-serif",t={name:uj,fonts:[],source:this.name},n=new Map,r=[400,100,200,300,500,600,700,800,900],i=["normal","italic"];for(let o of i)for(let s of r){let a=dj(s,o),l=`__SystemDefault-${s}-${o}__`,c={variant:a,selector:l,style:o,weight:s,family:t};t.fonts.push(c),n.set(l,e)}return{fontFamily:t,aliases:n}}getFontAliasBySelector(e){return this.fontAliasBySelector.get(e)||null}getFontSelectorByAlias(e){return this.fontAliases.get(e)||null}isFontFamilyAlias(e){return!!(e&&/^__.*__$/u.exec(e))}},nC={100:"Thin",200:"Extra Light",300:"Light",400:"Normal",500:"Medium",600:"Semi Bold",700:"Bold",800:"Extra Bold",900:"Black"};function dj(e,t){let n=t==="normal"?"Regular":"Italic";return e===400?n:t!=="normal"?`${nC[e]} ${n}`:`${nC[e]}`}function xE(e){return!!e.variationAxes}function Um(e){return xE(e)&&e.family.source!=="custom"?Sg(e.family.name):e.family.name}function Sg(e){return`${e} Variable`}function tf(e){return!!(e&&Array.isArray(e))}function wE(e){if(!e||!Array.isArray(e))return;let t=[];for(let n of e)hj(n)&&t.push({tag:n.tag,name:n.name,minValue:n.minValue,maxValue:n.maxValue,defaultValue:n.defaultValue});return t}function SE(e){return!(typeof e!="object"||e===null||!("tag"in e)||typeof e.tag!="string"||"coverage"in e&&typeof e.coverage<"u"&&!Array.isArray(e.coverage))}function hj(e){return!(typeof e!="object"||e===null||!("tag"in e)||typeof e.tag!="string"||"name"in e&&typeof e.name!="string"||!("minValue"in e)||typeof e.minValue!="number"||!("maxValue"in e)||typeof e.maxValue!="number"||!("defaultValue"in e)||typeof e.defaultValue!="number")}var Wu="BI;",rC=class{constructor(){E(this,"name","builtIn"),E(this,"fontFamilies",[]),E(this,"byFamilyName",new Map),E(this,"assetsByFamily",new Map)}importFonts(e){this.fontFamilies.length=0,this.byFamilyName.clear(),this.assetsByFamily.clear();let t=[];for(let n of e){if(!this.isValidBuiltInFont(n))continue;let{properties:r}=n,i=r.font.preferredFamily||r.font.fontFamily,o=this.createFontFamily(i,r.font.foundryName,r.font.fontVersion),s=r.font.openTypeData,a=r.font.variationAxes,c=Array.isArray(a)?"variable":r.font.preferredSubFamily||r.font.fontSubFamily||"regular",u={family:o,selector:this.createSelector(i,c,r.font.fontVersion),variant:c,file:n.url,hasOpenTypeFeatures:tf(s),variationAxes:wE(a),category:r.font.fontCategory,weight:Gm(c),style:iC(c)};o.fonts.push(u),this.assetsByFamily.set(i,n),t.push(u)}for(let n of this.fontFamilies)n.fonts.sort((r,i)=>{let o=Gm(r.variant),s=Gm(i.variant);return!o||!s?1:o-s});return t}static parseVariant(e){let t=CE(e),n=kE[t],r=iC(e);return{weight:n,style:r}}getFontBySelector(e,t=!0){let n=this.parseSelector(e);if(!n||!t&&!this.byFamilyName.get(n.name))return;let r=this.getFontFamilyByName(n.name);if(r)return r.fonts.find(i=>i.selector===e)}getFontFamilyByName(e){return this.byFamilyName.get(e)??null}createFontFamily(e,t,n){let r=this.byFamilyName.get(e);if(r&&r.version===n)return r;let i={source:this.name,name:e,fonts:[],foundryName:t,version:n};return this.addFontFamily(i),i}getOpenTypeFeatures(e){var t,n;let r=this.assetsByFamily.get(e),i=(n=(t=r?.properties)==null?void 0:t.font)==null?void 0:n.openTypeData;return tf(i)?i?.map(o=>{if(SE(o))return{tag:o.tag,coverage:o.coverage}}):[]}isValidBuiltInFont(e){var t;return!e.mimeType.startsWith("font/")||((t=e.properties)==null?void 0:t.kind)!=="font"||!e.properties.font||!e.properties.font.fontVersion||!e.properties.font.fontFamily?!1:"fontFamily"in e.properties.font}createSelector(e,t,n){return`${Wu}${e}/${t}/${n}`}parseSelector(e){if(!e.startsWith(Wu))return null;let[t,n]=e.split(Wu);if(n===void 0)return null;let[r,i,o]=n.split("/");return!r||!i||!o?null:{name:r,variant:i,source:this.name,isVariable:i.toLowerCase().includes("variable")}}addFontFamily(e){this.fontFamilies.push(e),this.byFamilyName.set(e.name,e)}},kE={ultralight:100,"ultralight-italic":100,thin:200,"thin-italic":200,demi:200,light:300,"light-italic":300,normal:350,base:400,regular:400,classic:400,"regular-slanted":400,italic:400,oblique:400,dense:400,brukt:300,book:400,"book-italic":400,text:400,"text-italic":400,medium:500,solid:500,"medium-oblique":500,"medium-italic":500,mittel:500,semibold:600,"semibold-italic":600,bold:700,"bold-italic":700,"bold-oblique":700,fett:700,ultrabold:800,"ultrabold-italic":800,extrabold:800,"extrabold-italic":800,black:900,"black-italic":900,"extra-italic":900,"extra-italic-bold":900,satt:900,heavy:900,"heavy-italic":900,serif:100,school:200,expanded:300,gothique:500,"dense-light":200,"dense-regular":300,"dense-medium":400,"dense-bold":500,"solid-light":600,"solid-regular":700,"solid-medium":800,"solid-bold":900,variable:1e3,"variable-italic":1e3};function Gm(e){let t=CE(e);return kE[t]}function CE(e){return e.toLowerCase().replace(/\s+/gu,"-")}function iC(e){return e=e.toLowerCase(),e.includes("italic")||e.includes("oblique")||e.includes("slanted")?"italic":"normal"}var ms="CUSTOM;";function pj(e,t){if(!t)return e.substring(0,e.lastIndexOf("."));let{font:n}=t,r=n.preferredFamily||n.fontFamily,i=Array.isArray(n.variationAxes);if(i&&r.toLowerCase().includes("variable"))return r;let o=i?"Variable":(n.preferredSubFamily||n.fontSubFamily).trim();return o===""?r:`${r} ${o}`}var mj=class{constructor(){E(this,"name","custom"),E(this,"fontFamilies",[]),E(this,"byFamilyName",new Map),E(this,"assetsByFamily",new Map)}importFonts(e){var t,n,r;this.fontFamilies.length=0,this.byFamilyName.clear(),this.assetsByFamily.clear();let i=[];for(let o of e){if(!this.isValidCustomFontAsset(o))continue;let s=(t=o.properties)==null?void 0:t.font.variationAxes,a=Array.isArray(s),l=pj(o.name,o.properties),c=this.createFontFamily(l),u=(n=o.properties)==null?void 0:n.font.openTypeData,f=a?"variable":this.inferVariantName(l),d={family:c,selector:`${ms}${l}`,variant:f,postscriptName:(r=o.properties)==null?void 0:r.font.postscriptName,file:o.url,hasOpenTypeFeatures:tf(u),variationAxes:wE(s)};c.fonts.push(d),c.owner=o.ownerType==="team"?"team":"project",this.assetsByFamily.set(l,o),i.push(...c.fonts)}return i}isValidCustomFontAsset(e){var t;return!e.mimeType.startsWith("font/")||((t=e.properties)==null?void 0:t.kind)!=="font"||!e.properties.font?!1:"fontFamily"in e.properties.font}getOpenTypeFeatures(e){var t,n;let r=this.assetsByFamily.get(e),i=(n=(t=r?.properties)==null?void 0:t.font)==null?void 0:n.openTypeData;return tf(i)?i?.map(o=>{if(SE(o))return{tag:o.tag,coverage:o.coverage}}):[]}inferVariantName(e){let t=["thin","ultra light","extra light","light","normal","medium","semi bold","bold","extra bold","black"],n=[...t.map(s=>`${s} italic`),...t],r=e.toLowerCase(),i=[...r.split(" "),...r.split("-"),...r.split("_")],o=n.find(s=>i.includes(s)||i.includes(s.replace(/\s+/gu,"")));return o?o.replace(/^\w|\s\w/gu,s=>s.toUpperCase()):"Regular"}createFontFamily(e){let t=this.byFamilyName.get(e);if(t)return t;let n={source:this.name,name:e,fonts:[]};return this.addFontFamily(n),n}addFontFamily(e){this.fontFamilies.push(e),this.byFamilyName.set(e.name,e)}parseSelector(e){if(!e.startsWith(ms))return null;let t=e.split(ms);return t[1]===void 0?null:{source:"custom",name:t[1]}}getFontBySelector(e,t=!0){let n=this.parseSelector(e);if(!n||!t&&!this.byFamilyName.get(n.name))return;let r=this.getFontFamilyByName(n.name).fonts;return r.find(o=>{var s;return(s=o.file)==null?void 0:s.endsWith(".woff2")})||r[0]}getFontFamilyByName(e){let t=this.byFamilyName.get(e);if(t)return t;let n={source:"custom",name:e,fonts:[]};return n.fonts.push({selector:`${ms}${e}`,variant:this.inferVariantName(e),family:n}),n}};function RE(e,t){return{...gj(e,t),...vj(e,t)}}function gj(e,t){if(t.length===0)return{variantBold:void 0,variantBoldItalic:void 0,variantItalic:void 0};let{weight:n,style:r}=e,i=new Map,o=new Map;for(let u of t)u.isVariable===e.isVariable&&(i.set(`${u.weight}-${u.style}`,u),!(u.weight<=n)&&(o.has(u.style)||o.set(u.style,u)));let s=o.get(r),a=o.get("italic"),l=e.weight;l<=300?(s=i.get(`400-${r}`)??s,a=i.get("400-italic")??a):l<=500?(s=i.get(`700-${r}`)??s,a=i.get("700-italic")??a):(s=i.get(`900-${r}`)??s,a=i.get("900-italic")??a);let c=i.get(`${n}-italic`);return{variantBold:s,variantItalic:c,variantBoldItalic:a}}function vj(e,t){if(t.length===0)return{variantVariable:void 0,variantVariableItalic:void 0};let n=new Map;for(let r of t)r.isVariable&&n.set(`${r.weight}-${r.style}`,r);return{variantVariable:n.get(`${e.weight}-normal`)??n.get("400-normal")??void 0,variantVariableItalic:n.get(`${e.weight}-italic`)??n.get("400-italic")??void 0}}async function TE(e){switch(e){case"google":{let t=await import("./google-T7EOPBBK-ACEOOJ2O.mjs");return t?.default}case"fontshare":{let t=await import("./fontshare-I3DFKGTY-EFJI3YU7.mjs");return t?.default}default:throw new Error(`Unknown font source: ${e}`)}}async function av(e){switch(e){case"google":{let t=await import("./google-FXMGJG4N-Z6TQFF47.mjs");return t?.default}case"fontshare":{let t=await import("./fontshare-LDKNUCSH-ZSHQBFZV.mjs");return t?.default}case"framer":{let t=await import("./framer-font-UL4TVQPD-RCJVIKN2.mjs");return t?.default}default:throw new Error(`Unknown font source: ${e}`)}}var yj=["display","sans","serif","slab","handwritten","script"];function bj(e){return e.split(",").map(t=>t.trim().toLowerCase()).filter(xj)}function xj(e){return yj.includes(e)}var Xa="FS;",EE={thin:100,hairline:100,extralight:200,light:300,regular:400,medium:500,semibold:600,bold:700,extrabold:800,ultra:800,black:900,heavy:900},FE=Object.keys(EE),wj=new RegExp(`^(?:${[...FE,"italic","variable"].join("|")})`,"u"),oC=class fs{constructor(){E(this,"name","fontshare"),E(this,"fontFamilies",[]),E(this,"byFamilyName",new Map)}getFontFamilyByName(t){return this.byFamilyName.get(t)??null}static parseVariant(t){let n=t.toLowerCase().split(" "),r=FE.find(a=>n.includes(a)),i=t.toLowerCase().includes("italic")?"italic":"normal";return{weight:r&&EE[r]||400,style:i==="italic"?i:"normal"}}parseSelector(t){if(!t.startsWith(Xa))return null;let n=t.split("-");if(n.length!==2)return null;let[r,i]=n;return!r||!i?null:{name:r.replace(Xa,""),variant:i,source:this.name,isVariable:i.toLowerCase().includes("variable")}}static createSelector(t,n){return`${Xa}${t}-${n.toLowerCase()}`}static createMetadataSelector(t){return`${Xa}${t}`}addFontFamily(t){this.fontFamilies.push(t),this.byFamilyName.set(t.name,t)}async importFonts(t,n){this.fontFamilies.length=0,this.byFamilyName.clear();let r=await TE("fontshare"),i=[];for(let o of t){let a=o.font_styles.filter(p=>{let y=p.name.toLowerCase();return!(!wj.exec(y)||y.split(" ").includes("wide"))}).map(p=>({...fs.parseVariant(p.name),selector:fs.createSelector(o.name,p.name),isVariable:p.is_variable,fontshareVariantName:p.name,file:p.file})),l=fs.createMetadataSelector(o.name),c=n?.[l],u=o.name,f=this.getFontFamilyByName(u);f||(f={name:u,fonts:[],source:this.name},this.addFontFamily(f));let d=fs.createMetadataSelector(o.name),h=r[d];for(let p of a){let{variantBold:y,variantBoldItalic:x,variantItalic:m,variantVariable:g,variantVariableItalic:v}=RE(p,a),b={family:f,variant:p.fontshareVariantName.toLowerCase(),selector:p.selector,selectorBold:y?.selector,selectorBoldItalic:x?.selector,selectorItalic:m?.selector,selectorVariable:g?.selector,selectorVariableItalic:v?.selector,weight:p.weight,style:p.style,file:p.file,category:Sj(o.category),hasOpenTypeFeatures:h,variationAxes:p.isVariable?c:void 0};f.fonts.push(b),i.push(b)}}return i}async getOpenTypeFeatures(t){let n=await av("fontshare"),r=fs.createMetadataSelector(t);return n[r]}};function Sj(e){let t={serif:"serif",sans:"sans-serif",slab:"slab",display:"display",handwritten:"handwriting",script:"handwriting"},n=bj(e)[0];return n&&t[n]}var kj="Inter",sC="FR;",Cj={Thin:100,ExtraLight:200,Light:300,"":400,Medium:500,SemiBold:600,Bold:700,ExtraBold:800,Black:900},aC=class kg{constructor(){E(this,"name","framer"),E(this,"fontFamilies",[]),E(this,"byFamilyName",new Map)}getFontFamilyByName(t){return this.byFamilyName.get(t)??null}addFontFamily(t){let n={name:t,fonts:[],source:this.name};return this.fontFamilies.push(n),this.byFamilyName.set(n.name,n),n}static getDraftFontPropertiesBySelector(t){if(!t.startsWith(sC)&&!t.startsWith(kj))return null;let n=t.split("-"),[r,i=""]=n;if(!r)return null;let o=i.includes("Italic")?"italic":"normal",s=i.replace("Italic",""),a=s&&Cj[s]||400;return{family:r,style:o,weight:a,source:"framer",variant:void 0,category:"sans-serif"}}static createMetadataSelector(t){return`${sC}${t}`}importFonts(t,n){this.fontFamilies.length=0,this.byFamilyName.clear();let r=[];return t.forEach(i=>{let{familyName:o,...s}=i,a=kg.createMetadataSelector(i.familyName),l=n?.[a],c=this.getFontFamilyByName(o);c||(c=this.addFontFamily(o));let u=i.selector===i.selectorVariable||i.selector===i.selectorVariableItalic,f={...s,family:c,variationAxes:u?l:void 0};c.fonts.push(f),r.push(f)}),r}async getOpenTypeFeatures(t){let n=await av("framer"),r=kg.createMetadataSelector(t);return n[r]}},Ya="GF;",lC=class Ri{constructor(){E(this,"name","google"),E(this,"fontFamilies",[]),E(this,"byFamilyName",new Map)}getFontFamilyByName(t){return this.byFamilyName.get(t)??null}static parseVariant(t){if(t==="regular")return{style:"normal",weight:400};let n=/(\d*)(normal|italic)?/u.exec(t);if(!n)return{};let r=parseInt(n[1]||"400"),i=n[2]==="italic"?"italic":"normal";return{weight:r,style:i}}parseSelector(t){if(!t.startsWith(Ya))return null;let n=t.includes("-variable-"),r=n?t.split("-variable-"):t.split("-");if(r.length!==2)return null;let[i,o]=r;return!i||!o?null:{name:i.replace(Ya,""),variant:o,source:this.name,isVariable:n}}static createSelector(t,n,r){return`${Ya}${t}-${r?"variable-":""}${n}`}static createMetadataSelector(t){return`${Ya}${t}`}addFontFamily(t){let n={name:t,fonts:[],source:this.name};return this.fontFamilies.push(n),this.byFamilyName.set(n.name,n),n}async importFonts(t,n,r){var i;this.fontFamilies.length=0,this.byFamilyName.clear();let o=await TE("google"),s=[],a=cC(t,c=>c.family),l=cC(n,c=>c.family);for(let c in a){let u=a[c];if(!u)continue;let f=this.getFontFamilyByName(u.family);f||(f=this.addFontFamily(u.family));let h=u.variants.map(S=>({...Ri.parseVariant(S),googleFontsVariantName:S,selector:Ri.createSelector(c,S,!1),isVariable:!1,file:u.files[S]})),p=l[c],y=p?.axes?p.variants.map(S=>({...Ri.parseVariant(S),googleFontsVariantName:S,selector:Ri.createSelector(c,S,!0),isVariable:!0,file:p.files[S]})):[],x=Ri.createMetadataSelector(u.family),m=r?.[x],g=[...h,...y],v=g.filter(Ja),b=Ri.createMetadataSelector(c),C=o[b];for(let S of g){let{weight:R,style:T,selector:F,googleFontsVariantName:P}=S,B=Ja(S)?RE(S,v):void 0,{variantBold:H,variantItalic:L,variantBoldItalic:Y,variantVariable:W,variantVariableItalic:ne}=B??{},U={family:f,variant:P,selector:F,selectorBold:H?.selector,selectorBoldItalic:Y?.selector,selectorItalic:L?.selector,selectorVariable:W?.selector,selectorVariableItalic:ne?.selector,weight:R,style:T,category:Rj(u.category),file:(i=S.file)==null?void 0:i.replace("http://","https://"),variationAxes:S.isVariable?m:void 0,hasOpenTypeFeatures:C};f.fonts.push(U),s.push(U)}}return s}async getOpenTypeFeatures(t){let n=await av("google"),r=Ri.createMetadataSelector(t);return n[r]}};function Rj(e){let t={serif:"serif","sans-serif":"sans-serif",display:"display",handwriting:"handwriting",monospace:"monospace"};if(e)return t[e]}function cC(e,t){return e.reduce((n,r)=>(n[t(r)]=r,n),{})}var Tj=mo(SV(),1),uC=5e3,Ej=3,PE=class extends Error{constructor(e){super(e),this.name="FontLoadingError"}},qm=new Map,Xm=new Map,fC=(e,t)=>IE(e,t);async function IE(e,t,n=0){let{family:r,url:i,stretch:o,unicodeRange:s,isVariableFont:a}=e,l=a?e.weight:e.weight||500,c=e.style||"normal",u=`${r}-${c}-${l}-${i}`;if(!qm.has(u)||n>0){let f=new FontFace(r,`url(${i})`,{weight:ue(l)?l:l?.toString(),style:c,stretch:o,unicodeRange:s}),d=f.load().then(()=>(t.fonts.add(f),_E(r,c,l))).catch(h=>{if(h.name!=="NetworkError")throw h;if(n<Ej)return IE(e,t,n+1);throw new PE(`Font loading failed after ${n} retries due to network error: ${JSON.stringify({family:r,style:c,weight:l,url:i,stretch:o,unicodeRange:s})}`)});qm.set(u,d)}await qm.get(u)}async function _E(e,t,n){let r=`${e}-${t}-${n}`;if(!Xm.has(r)){let o=new Tj.default(e,{style:t,weight:n}).load(null,uC);Xm.set(r,o)}try{await Xm.get(r)}catch{throw new PE(`Failed to check if font is ready (${uC}ms timeout exceeded): ${JSON.stringify({family:e,style:t,weight:n})}`)}}var dC={"FR;Inter":[{tag:"opsz",minValue:14,maxValue:32,defaultValue:14,name:"Optical size"},{tag:"wght",minValue:100,maxValue:900,defaultValue:400,name:"Weight"}]};function Ym(e){try{if(e==="framer")return hC(dC)?dC:void 0;{let t=(async()=>{switch(e){case"google":return(await import("./google-2YSVUDPR-FJL3QPVU.mjs")).default;case"fontshare":return(await import("./fontshare-PNQPH3CW-JFIN7AWY.mjs")).default;default:we(e)}})();return hC(t)?t:void 0}}catch(t){console.error(t);return}}function hC(e){return ge(e)&&Object.values(e).every(Pj)}function Fj(e){return ge(e)&&ue(e.tag)}function Pj(e){return Array.isArray(e)&&e.every(Fj)}var Ij=class{constructor(){E(this,"enabled",!1),E(this,"bySelector",new Map),E(this,"getGoogleFontsListPromise"),E(this,"getFontshareFontsListPromise"),E(this,"getBuiltInFontsListPromise"),E(this,"loadedSelectors",new Set),E(this,"local"),E(this,"google"),E(this,"fontshare"),E(this,"builtIn"),E(this,"framer"),E(this,"custom"),this.local=new fj,this.google=new lC,this.fontshare=new oC,this.framer=new aC,this.custom=new mj,this.builtIn=new rC,this.bySelector=new Map,this.importLocalFonts()}addFont(e){this.bySelector.set(e.selector,e)}getAvailableFonts(){return Array.from(this.bySelector.values())}importLocalFonts(){for(let e of this.local.importFonts())this.addFont(e),this.loadFont(e)}async importGoogleFonts(){return this.getGoogleFontsListPromise||(this.getGoogleFontsListPromise=Promise.resolve().then(async()=>{let{staticFonts:e,variableFonts:t}=await yt.fetchGoogleFontsList(),n=await Ym("google");for(let r of await this.google.importFonts(e,t,n))this.addFont(r);return{staticFonts:e,variableFonts:t}})),this.getGoogleFontsListPromise}async importFontshareFonts(){if(!this.getFontshareFontsListPromise){this.getFontshareFontsListPromise=yt.fetchFontshareFontsList();let e=await this.getFontshareFontsListPromise,t=await Ym("fontshare");for(let n of await this.fontshare.importFonts(e,t))this.addFont(n)}return this.getFontshareFontsListPromise}async importBuiltInFonts(){if(!this.getBuiltInFontsListPromise){this.getBuiltInFontsListPromise=yt.fetchBuiltInFontsList();let e=await this.getBuiltInFontsListPromise;for(let t of await this.builtIn.importFonts(e))this.addFont(t)}return this.getBuiltInFontsListPromise}importFramerFonts(e){let t=Ym("framer");this.framer.importFonts(e,t).forEach(n=>{this.addFont(n)})}importCustomFonts(e){this.bySelector.forEach((t,n)=>{n.startsWith(ms)&&this.bySelector.delete(n)});for(let t of this.custom.importFonts(e))this.addFont(t)}getFontFamily(e){return this[e.source].getFontFamilyByName(e.name)}getFontBySelector(e,t=!0){if(e)return e.startsWith(ms)?this.custom.getFontBySelector(e,t):this.bySelector.get(e)}getDraftPropertiesBySelector(e){let t=this.getFontBySelector(e);if(t)return{style:t.style,weight:t.weight,variant:t.variant,family:Um(t),source:t.family.source,category:t.category};let n=this.google.parseSelector(e);if(n){let s=lC.parseVariant(n.variant);if(Ja(s)){let a=n.isVariable?Sg(n.name):n.name;return{style:s.style,weight:s.weight,variant:n.variant,family:a,source:"google",category:void 0}}}let r=this.fontshare.parseSelector(e);if(r){let s=oC.parseVariant(r.variant);if(Ja(s)){let a=r.isVariable?Sg(r.name):r.name;return{style:s.style,weight:s.weight,variant:r.variant,family:a,source:"fontshare",category:void 0}}}let i=this.builtIn.parseSelector(e);if(i){let s=rC.parseVariant(i.variant);if(Ja(s))return{style:s.style,weight:s.weight,variant:i.variant,family:i.name,source:"builtIn",category:void 0}}let o=aC.getDraftFontPropertiesBySelector(e);return o||null}isSelectorLoaded(e){return this.loadedSelectors.has(e)}async loadFont(e){if(this.isSelectorLoaded(e.selector))return 0;let t=e.family.source,n=xE(e);switch(t){case"local":return this.loadedSelectors.add(e.selector),1;case"framer":if(Dg()||await _E(e.family.name,e.style,e.weight),n){if(!e.file)return Promise.reject(`Unable to load font: ${e.selector}`);await fC({family:Um(e),url:e.file,weight:e.weight,style:e.style,isVariableFont:n},document)}return this.loadedSelectors.add(e.selector),1;case"google":case"fontshare":case"builtIn":case"custom":return e.file?(await fC({family:Um(e),url:e.file,weight:e.weight,style:e.style,isVariableFont:n},document),this.loadedSelectors.add(e.selector),1):Promise.reject(`Unable to load font: ${e.selector}`);default:we(t)}}async loadFontsFromSelectors(e){if(!this.enabled)return[];let t=e.some(o=>o.startsWith(Ya)),n=e.some(o=>o.startsWith(Xa)),r=e.some(o=>o.startsWith(Wu));if(t||n||r){try{await this.importFontshareFonts()}catch(o){vs("Failed to load Fontshare fonts:",o)}try{await this.importGoogleFonts()}catch(o){vs("Failed to load Google fonts:",o)}try{await this.importBuiltInFonts()}catch(o){vs("Failed to load built=in fonts:",o)}}let i=e.map(o=>this.bySelector.get(o)).filter(o=>!!o);return Promise.allSettled(i.map(o=>this.loadFont(o)))}async loadFonts(e){return{newlyLoadedFontCount:(await this.loadFontsFromSelectors(e)).filter(r=>r.status==="fulfilled"&&r.value===1).length}}async loadMissingFonts(e,t){let n=e.filter(i=>!Uu.isSelectorLoaded(i));if(n.length===0)return;await Uu.loadWebFontsFromSelectors(n),n.every(i=>Uu.isSelectorLoaded(i))&&t&&t()}async loadWebFontsFromSelectors(e){return this.loadFontsFromSelectors(e)}get defaultFont(){let e=this.getFontBySelector("Inter");return N(e,"Can\u2019t find Inter font"),e}},Uu=new Ij;var _j={"data-1p-ignore":!0,"data-lpignore":!0,"data-form-type":"other",autocomplete:"off"},Oj=Oe(function(t,n){let{autoFocus:r,className:i,inputName:o,max:s,min:a,placeholder:l,required:c,step:u,style:f,type:d,maxLength:h,defaultValue:p,autofillEnabled:y,onChange:x,onBlur:m,onInvalid:g,onFocus:v,onValid:b,...C}=t,[S,R]=Re(!!p),[T,F]=Re();p!==T&&(R(!!p),F(p));let P=G(async L=>{await Ei();let Y=L.target.value;x?.(L),Ve(()=>R(!!Y))},[x]),B=Lg(b,g,P,m,v);if(d==="hidden")return k(Xe.input,{type:"hidden",name:o,defaultValue:p});let H=y===!1?_j:void 0;return k(Xe.div,{ref:n,style:f,className:Fi(ot,cl,i),...C,children:d==="textarea"?Ur(Xe.textarea,{...H,...B,key:p,required:c,autoFocus:r,name:o,placeholder:l,className:Bt,defaultValue:p,maxLength:h}):Ur(Xe.input,{...H,...B,key:p,type:d,required:c,autoFocus:r,name:o,placeholder:l,className:Fi(Bt,!S&&pR),defaultValue:p,min:a,max:s,step:u,maxLength:h})})}),Mj=16,ot="framer-form-text-input",Lj='data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><path d="m1.5 8 7-7M9 5.5l-3 3" stroke="%23999" stroke-width="1.5" stroke-linecap="round"></path></svg>',Vj='data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="rgb(153, 153, 153)" d="M3 5a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2H3Z" opacity=".3"/><path fill="transparent" stroke="rgb(153, 153, 153)" stroke-width="1.5" d="M3.25 5.25a2 2 0 0 1 2-2h5.5a2 2 0 0 1 2 2v5.5a2 2 0 0 1-2 2h-5.5a2 2 0 0 1-2-2ZM3 6.75h9.5"/></svg>',Aj='data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="transparent" stroke="rgb(153, 153, 153)" stroke-width="1.5" d="M2.5 8a5.5 5.5 0 1 1 11 0 5.5 5.5 0 1 1-11 0Z"/><path fill="transparent" stroke="rgb(153, 153, 153)" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M7.75 8.25v-3m0 3h2"/></svg>',Dj=[...mR,...vR,...gR,M(`.${cl}`,{boxShadow:M.variable("--framer-input-box-shadow"),borderTopLeftRadius:M.variable("--framer-input-border-radius-top-left"),borderTopRightRadius:M.variable("--framer-input-border-radius-top-right"),borderBottomRightRadius:M.variable("--framer-input-border-radius-bottom-right"),borderBottomLeftRadius:M.variable("--framer-input-border-radius-bottom-left"),background:M.variable("--framer-input-background"),transition:M.variable("--framer-input-focused-transition"),transitionProperty:"background, box-shadow"}),M(`.${ot} .${Bt}::placeholder`,{color:M.variable("--framer-input-placeholder-color")}),M(`.${ot} .${Bt}[type="date"], .${ot} .${Bt}[type="time"]`,{"-webkit-appearance":"none",appearance:"none"}),M(`.${ot} .${Bt}::-webkit-date-and-time-value`,{textAlign:"start"}),M(`.${ot} textarea`,{display:"flex",resize:M.variable("--framer-textarea-resize"),overflowY:"auto",minHeight:"inherit",maxHeight:"inherit",whiteSpace:"break-spaces"}),M(`.${ot} textarea::-webkit-resizer`,{background:`no-repeat url('${Lj}')`}),M(`.${ot} textarea::-webkit-scrollbar`,{cursor:"pointer",background:"transparent"}),M(`.${ot} textarea::-webkit-scrollbar-thumb:window-inactive`,{opacity:0}),M(`.${ot} textarea::-webkit-scrollbar-corner`,{background:"none",backgroundColor:"transparent",outline:"none"}),M(`.${ot} .${Bt}::-webkit-datetime-edit`,{height:M.variable("--framer-input-font-line-height")}),M(`.${ot} .${Bt}.${pR}::-webkit-datetime-edit`,{color:M.variable("--framer-input-placeholder-color"),"-webkit-text-fill-color":M.variable("--framer-input-placeholder-color"),overflow:"visible"}),M(`.${ot} .${Bt}[type="date"]::before, .${ot} .${Bt}[type="time"]::before`,{...Vg,paddingLeft:`${bs}px`,maskPosition:`${bs}px center`,backgroundPosition:`${bs}px center`}),M(`.${ot} .${Bt}[type="date"]::before`,{maskImage:M.variable("--framer-input-icon-mask-image",`url('${Vj}')`),backgroundImage:M.variable("--framer-input-icon-image")}),M(`.${ot} .${Bt}[type="time"]::before`,{maskImage:M.variable("--framer-input-icon-mask-image",`url('${Aj}')`),backgroundImage:M.variable("--framer-input-icon-image")}),M(`.${ot} .${Bt}::-webkit-calendar-picker-indicator`,{opacity:0,position:"absolute",right:0,top:0,bottom:0,padding:M.variable("--framer-input-padding"),paddingTop:0,paddingBottom:0,width:`${Mj}px`,height:"100%"}),M(`.${ot}:focus-within, .${ot}.${ws}`,{boxShadow:M.variable("--framer-input-focused-box-shadow","--framer-input-box-shadow"),background:M.variable("--framer-input-focused-background","--framer-input-background")}),M(`.${ot}:focus-within::after, .${ot}.${ws}::after`,{borderColor:M.variable("--framer-input-focused-border-color","--framer-input-border-color"),borderStyle:M.variable("--framer-input-focused-border-style","--framer-input-border-style"),borderWidth:M.variable("--framer-input-focused-border-width",ps)})],Vq=ml(Oj,Dj,"framer-lib-form-plain-text-input"),gt="framer-form-boolean-input",zj=w.forwardRef(function(t,n){let{inputName:r,type:i="checkbox",defaultChecked:o,onValid:s,...a}=t,l=Es(),c=l?{checked:o}:{defaultChecked:o},u=Lg(s,t.onInvalid,t.onChange,t.onBlur,t.onFocus);return k(Xe.input,{...a,...c,...u,readOnly:l,ref:n,type:i,name:r,className:Fi(gt,t.className)})}),Bj='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M 4 8 L 6.5 10.5 L 11.5 5.5" fill="transparent" stroke-width="2" stroke="rgb(255, 255, 255)" stroke-linecap="round" stroke-linejoin="round"></path></svg>',pC="var(--framer-input-border-radius-top-left) var(--framer-input-border-radius-top-right) var(--framer-input-border-radius-bottom-right) var(--framer-input-border-radius-bottom-left)",$j=[M(`.${gt}`,{"-webkit-appearance":"none",alignItems:"center",appearance:"none",backgroundColor:"#fff",background:"--framer-input-background",borderRadius:pC,boxShadow:"--framer-input-box-shadow",display:"flex",justifyContent:"center",margin:0,overflow:"hidden",position:"relative",transition:"--framer-input-boolean-checked-transition",transitionProperty:"box-shadow, background"}),M(`.${gt}::after`,{background:"transparent",borderColor:M.variable("--framer-input-border-color","transparent"),borderRadius:pC,borderStyle:"--framer-input-border-style",borderWidth:ps,boxSizing:"border-box",content:"",display:"block",inset:0,position:"absolute",transition:"--framer-input-boolean-checked-transition",transitionProperty:"border-color, border-width, border-style"}),M(`.${gt}::before`,{...Vg,backgroundPosition:"center",backgroundSize:"contain",maskPosition:"center",maskSize:"contain",height:"100%",opacity:0,transition:"--framer-input-boolean-checked-transition",transitionProperty:"opacity",width:"100%"}),M(`.${gt}[type="checkbox"]::before`,{backgroundImage:M.variable("--framer-input-icon-image"),maskImage:M.variable("--framer-input-icon-mask-image",`url('${Bj}')`)}),M(`.${gt}[type="radio"]::before`,{backgroundImage:M.variable("--framer-input-icon-image"),maskImage:M.variable("--framer-input-icon-mask-image")}),M(`.${gt}:checked, .${gt}.${Tm}`,{backgroundColor:M.variable("--framer-input-boolean-checked-background","--framer-input-background"),boxShadow:M.variable("--framer-input-boolean-checked-box-shadow","--framer-input-box-shadow")}),M(`.${gt}:checked::before, .${gt}.${Tm}::before`,{opacity:1}),M(`.${gt}:checked::after, .${gt}.${Tm}::after`,{borderColor:M.variable("--framer-input-boolean-checked-border-color","--framer-input-border-color","transparent"),borderStyle:M.variable("--framer-input-boolean-checked-border-style","--framer-input-border-style","solid"),borderWidth:M.variable("--framer-input-boolean-checked-border-width",ps)}),M(`.${gt}:focus, .${gt}.${ws}`,{backgroundColor:M.variable("--framer-input-focused-background","--framer-input-background"),boxShadow:M.variable("--framer-input-focused-box-shadow","--framer-input-box-shadow")}),M(`.${gt}:focus-visible`,{outline:"none"}),M(`.${gt}:focus::after, .${gt}.${ws}::after`,{borderColor:M.variable("--framer-input-focused-border-color","--framer-input-border-color","transparent"),borderStyle:M.variable("--framer-input-focused-border-style","--framer-input-border-style","solid"),borderWidth:M.variable("--framer-input-focused-border-width",ps)}),M(`.${gt}:focus:checked`,{backgroundColor:M.variable("--framer-input-focused-background","--framer-input-boolean-checked-background","--framer-input-background"),boxShadow:M.variable("--framer-input-focused-box-shadow","--framer-input-boolean-checked-box-shadow","--framer-input-box-shadow")}),M(`.${gt}:focus:checked::after`,{borderStyle:M.variable("--framer-input-focused-border-style","--framer-input-boolean-checked-border-style","--framer-input-border-style","solid"),borderWidth:M.variable("--framer-input-focused-border-width","--framer-input-boolean-checked-border-width",ps)})],zq=ml(zj,$j,"framer-lib-form-boolean-input"),Nj=w.forwardRef(function(t,n){let{autoFocus:r,className:i,inputName:o,required:s,hidden:a,defaultValue:l,selectOptions:c,style:u,onValid:f,onChange:d,onBlur:h,onInvalid:p,onFocus:y,...x}=t,m=Lg(f,p,d,h,y),g=Array.isArray(l)?l[0]:l;return a?k(Xe.input,{type:"hidden",name:o,defaultValue:l}):k(Xe.div,{ref:n,style:u,className:Fi(cl,Gn,i),...x,children:k(Xe.select,{name:o,autoFocus:r,required:s,className:Bt,defaultValue:l,...m,children:c?.map((v,b)=>{switch(v.type){case"divider":return k("hr",{},b);case"option":return k("option",{value:v.value??v.title,disabled:v.disabled,children:v.title??v.value},b)}})},g)})}),Gn="framer-form-select-wrapper",mC=16,jj=`data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="${mC}" height="${mC}"><path d="M 3.5 6 L 8 10.5 L 12.5 6" fill="transparent" stroke-width="1.5" stroke="rgb(153, 153, 153)" stroke-linecap="round" stroke-linejoin="round"></path></svg>`,Hj=[...mR,...vR,...gR,M(`.${Gn}`,{padding:M.variable("--framer-input-padding"),paddingTop:0,paddingBottom:0,paddingLeft:0,background:M.variable("--framer-input-background"),borderTopLeftRadius:M.variable("--framer-input-border-radius-top-left"),borderTopRightRadius:M.variable("--framer-input-border-radius-top-right"),borderBottomRightRadius:M.variable("--framer-input-border-radius-bottom-right"),borderBottomLeftRadius:M.variable("--framer-input-border-radius-bottom-left"),boxShadow:M.variable("--framer-input-box-shadow"),transition:M.variable("--framer-input-focused-transition"),transitionProperty:"background, box-shadow"}),M(`.${Gn} select`,{appearance:"none","-webkit-appearance":"none",padding:M.variable("--framer-input-padding"),background:"transparent"}),M(`.${Gn}::before`,{...Vg,paddingLeft:`${bs}px`,backgroundPosition:`${bs}px center`,maskPosition:`${bs}px center`,backgroundImage:M.variable("--framer-input-icon-image"),maskImage:M.variable("--framer-input-icon-mask-image",`url('${jj}')`)}),M(`.${Gn} select:required:invalid`,{color:M.variable("--framer-input-invalid-text-color")}),M(`.${Gn}:focus-within, .${Gn}.${ws}`,{background:M.variable("--framer-input-focused-background","--framer-input-background"),boxShadow:M.variable("--framer-input-focused-box-shadow","--framer-input-box-shadow")}),M(`.${Gn}:focus-within::after, .${Gn}.${ws}::after`,{borderColor:M.variable("--framer-input-focused-border-color","--framer-input-border-color"),borderStyle:M.variable("--framer-input-focused-border-style","--framer-input-border-style"),borderWidth:M.variable("--framer-input-focused-border-width",ps)}),M(`.${Gn} select option`,{color:"#000"}),M(`.${Gn} select option:disabled`,{color:"rgba(0, 0, 0, 0.4)"})],Nq=ml(Nj,Hj,"framer-lib-form-select"),Wq=w.forwardRef(function(t,n){let{background:r,children:i,alt:o,draggable:s,...a}=t,l={...a.style};r&&delete l.background;let c=dl(t.as);return be(c,{...a,style:l,ref:n,children:[r&&k(SR,{image:r,alt:o,draggable:s}),i]})});function Wj(e,t){return e.length===t.length&&e.every((n,r)=>n===t[r])}var Uj=/[^\p{Letter}\p{Number}()]+/gu,Gj=/^-+|-+$/gu;function qj(e){return e.toLowerCase().replace(Uj,"-").replace(Gj,"")}var Xj=/[&<>'"]/gu,Yj=e=>e.replace(Xj,t=>({"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"})[t]||t),Kj=/(<([a-z]+)(?:\s+(?!href[\s=])[^=\s]+=(?:'[^']*'|"[^"]*"))*)(?:(\s+href\s*=)(?:'([^']*)'|"([^"]*)"))?((?:\s+[^=\s]+=(?:'[^']*'|"[^"]*"))*>)/gi;function Qj(e,t,n,r){return e.replace(Kj,(i,o,s,a,l,c,u)=>{var f,d;if(s.toLowerCase()!=="a")return i;let h=l||c,p=ev(h.replace(/&amp;/gu,"&"));if(!p||!p.target)return i;let y=t(p.target);if(!Kk(y)||!Kk(n))return i;let x=y.path,m=n.path;if(!x||!m)return i;let g=` data-framer-page-link-target="${p.target}"`,v=rf(y,p.element??void 0);v&&(g+=` data-framer-page-link-element="${p.element}"`);let b=Ss(h);if(!b||ue(b))return i;yT(n,b,r)&&(g+=" data-framer-page-link-current");let C=x,S=Object.assign({},r,(f=p.collectionItem)==null?void 0:f.pathVariables);if(Object.keys(S).length>0&&(C=C.replace(vT,(R,T)=>""+S[T])),(d=p.collectionItem)!=null&&d.pathVariables){let R=new URLSearchParams(p.collectionItem.pathVariables);g+=` data-framer-page-link-path-variables="${R}"`}return C=Zm(m,C),o+a+`"${Yj(C+(v?`#${v}`:""))}"`+g+u})}var Zj={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},OE=/[&<>"']/gu,Jj=new RegExp(OE.source);function gC(e){return e&&Jj.test(e)?e.replace(OE,t=>Zj[t]??""):e||""}var vC="{{ text-placeholder }}",eH="rich-text-wrapper",tH=Oe(function(t,n){let{id:r,name:i,html:o,htmlFromDesign:s,text:a,textFromDesign:l,fonts:c=[],width:u,height:f,left:d,right:h,top:p,bottom:y,center:x,className:m,stylesPresetsClassName:g,visible:v=!0,opacity:b,rotation:C=0,verticalAlignment:S="top",isEditable:R=!1,willChangeTransform:T,environment:F=he.current,withExternalLayout:P=!1,positionSticky:B,positionStickyTop:H,positionStickyRight:L,positionStickyBottom:Y,positionStickyLeft:W,__htmlStructure:ne,__fromCanvasComponent:U=!1,_forwardedOverrideId:ee,_forwardedOverrides:ae,_usesDOMRect:me,children:K,...se}=t,fe=ll(),ie=hl(t),Ce=V(null),Pe=n??Ce,{navigate:Le,getRoute:Ie}=Ii(),dt=Wr();BV(t.preload??[]),hf(t,Pe);let sn=z(fo),yr=Es(),de=a,an=ee??r;if(an&&ae){let rt=ae[an];typeof rt=="string"&&(de=rt)}let St="";if(de){let rt=gC(de);St=ne?ne.replace(vC,rt):`<p>${rt}</p>`}else if(o)St=o;else if(l){let rt=gC(l);St=ne?ne.replace(vC,rt):`<p>${rt}</p>`}else s&&(St=s);let lt=tv(),ho=re(()=>yr||!Ie||!dt?St:Qj(St,Ie,dt,lt),[St,Ie,dt,lt]);if($(()=>{let rt=Pe.current;if(rt===null)return;function br(ln){let _i=mf(ln.target,Pe.current);if(ln.metaKey||!Le||!_i||_i.getAttribute("target")==="_blank")return;f$(Le,_i,lt)&&ln.preventDefault()}return rt.addEventListener("click",br),()=>{rt.removeEventListener("click",br)}},[Le,lt]),LE(c,U,Pe),ct(()=>{ul()},[]),!v)return null;let O=R&&F()===he.canvas,_={outline:"none",display:"flex",flexDirection:"column",justifyContent:ME(S),opacity:O?0:b,flexShrink:0},A=he.hasRestrictions(),te=tl(t,fe||0,!1),Se=me&&(u==="auto"||f==="auto"),kt=!!t.transformTemplate||!te||!A||U||Se?t.transformTemplate??ff(x):void 0;if(!P){if(te&&A&&!Se){let rt=vt.getNumber(C).toFixed(4);_.transform=`translate(${te.x}px, ${te.y}px) rotate(${rt}deg)`,_.width=te.width,_.minWidth=te.width,_.height=te.height}else _.left=d,_.right=h,_.top=p,_.bottom=y,_.width=u,_.height=f,_.rotate=C;B?(!yr||sn)&&(_.position="sticky",_.willChange="transform",_.zIndex=1,_.top=H,_.right=L,_.bottom=Y,_.left=W):yr&&(t.positionFixed||t.positionAbsolute)&&(_.position="absolute")}return Wg(t,_),DR(t,_),T&&Bg(_),Object.assign(_,t.style),k(Xe.div,{id:r,ref:Pe,...se,style:_,layoutId:ie,"data-framer-name":i,"data-framer-component-type":"DeprecatedRichText","data-center":x,className:Fi(m,g,eH),transformTemplate:kt,dangerouslySetInnerHTML:{__html:ho}})});function ME(e){switch(e){case"top":return"flex-start";case"center":return"center";case"bottom":return"flex-end"}}function LE(e,t,n){let r=V([]);Wj(r.current,e)||(r.current=e,Uu.loadFonts(e).then(({newlyLoadedFontCount:i})=>{!t||!n.current||he.current()!==he.canvas||i>0&&M5(n.current)}))}function Cg(){return{current:null}}async function VE(e,t){let n=e.current;if(n)return n;let r,i=new Promise((o,s)=>{r=o,t.signal.addEventListener("abort",()=>s())});return Object.defineProperty(e,"current",{get(){return n},set(o){if(n=o,o===null){t.abort();return}r(o)},configurable:!0}),i}var AE={opacity:1,y:0,x:0,scale:1,rotate:0,rotateX:0,rotateY:0,skewX:0,skewY:0,filter:"none"};function nH(e){return e in AE}function rH(e){let t={};for(let n in e){if(!nH(n))continue;let r=e[n],i=AE[n];at(r)||at(i)||(t[n]=[r,i])}return t}var iH=new RegExp("\\p{Regional_Indicator}{2}|\\p{Emoji}\\p{Emoji_Modifier}?\\p{Variation_Selector}?(?:\\u{200d}\\p{Emoji}\\p{Emoji_Modifier}?\\p{Variation_Selector}?)*|.","gu");function oH(e,t="character",n,r){switch(t){case"character":case"line":{let i=e.split(" "),o=i.length-1;return i.map((s,a)=>{var l;let c=a===o,u=s.length<=12;return be(wn,{children:[k("span",{style:{whiteSpace:u?"nowrap":"unset"},children:(l=s.match(iH))==null?void 0:l.map((f,d)=>{let h=Cg();return n.add(h),k("span",{ref:h,style:r,children:f},f+d)})}),c?null:" "]},s+a+c)})}case"word":{let i=e.split(" "),o=i.length-1;return i.map((s,a)=>{let l=a===o,c=Cg();return n.add(c),be(wn,{children:[k("span",{ref:c,style:r,children:s}),l?null:" "]},s+a+l)})}case"element":default:return e}}function sH(e){let t=e.type;switch(t){case"appear":return e.tokenization??"character";default:we(t)}}function yC(e){let t=[];return Ae(e.x)&&t.push(`translateX(${e.x}px)`),Ae(e.y)&&t.push(`translateY(${e.y}px)`),Ae(e.scale)&&t.push(`scale(${e.scale})`),Ae(e.rotate)&&t.push(`rotate(${e.rotate}deg)`),Ae(e.rotateX)&&t.push(`rotateX(${e.rotateX}deg)`),Ae(e.rotateY)&&t.push(`rotateY(${e.rotateY}deg)`),Ae(e.skewX)&&t.push(`skewX(${e.skewX}deg)`),Ae(e.skewY)&&t.push(`skewY(${e.skewY}deg)`),t.join(" ")}function aH(e,t,n){if(!n||!n.effect)return;let r=n.type;switch(r){case"appear":switch(n.tokenization){case"element":return!e||!t?void 0:{opacity:n.effect.opacity,filter:n.effect.filter,transform:yC(n.effect)};case"line":case"word":case"character":default:return!e||!t?{display:"inline-block"}:{display:"inline-block",opacity:n.effect.opacity,filter:n.effect.filter,transform:yC(n.effect)}}default:we(r)}}function lH(e,t,n){let r=st(()=>new Set),i=fl(),o=n||!i,s=V({hasMounted:!1,hasAnimatedOnce:!1,isAnimating:!1,effect:e});s.current.effect=e;let a=e?.trigger??"onMount",l=e?.target,c=e?.threshold;$(()=>{if(!o||n)return;s.current.hasMounted=!0;function d(){let{effect:h}=s.current;if(!o||!h||h?.repeat!==!0&&s.current.hasAnimatedOnce||h?.type==="appear"&&s.current.isAnimating)return;Object.assign(s.current,{hasAnimatedOnce:!0,isAnimating:!0});let p=h.type;switch(p){case"appear":{let{transition:y,startDelay:x,repeat:m,tokenization:g}=h,v={current:void 0};return bC(g,h.effect,r,y,x,m,()=>{Object.assign(s.current,{isAnimating:!1})},v),()=>{var b;return(b=v.current)==null?void 0:b.call(v)}}default:we(p)}}switch(a){case"onMount":d();return;case"onInView":{let h=t?.current;return h?tc(h,d,{amount:c??0}):void 0}case"onScrollTarget":{let h=l?.ref.current;return h?tc(h,d,{amount:c??0,root:document,margin:l?.offset?`${l.offset}px 0px 0px 0px`:void 0}):void 0}default:we(a)}},[o,r,n,t,l,c,a]);let u=!!e,f=e?sH(e):void 0;return re(()=>({getTokenizer:()=>{if(r.clear(),!u)return;let{hasMounted:d,hasAnimatedOnce:h,effect:p}=s.current,y=aH(o,n||cH(d,h,p),s.current.effect);return{text:x=>oH(x,f,r,y),props:x=>{if(p?.tokenization!=="element")return;let m=Cg();return r.add(m),{ref:m,style:{...x,...y}}}}},play:()=>{let{effect:d}=s.current;if(!d)return;let h=d.type;switch(h){case"appear":{let{transition:p,startDelay:y}=d;bC(f,d.effect,r,p,y);break}default:we(h)}}}),[o,u,r,n,f])}function cH(e,t,n){return!(e&&n?.trigger==="onMount"||t&&!n?.repeat&&(n?.trigger==="onInView"||n?.trigger==="onScrollTarget"))}async function bC(e="character",t,n,r,i=0,o=!1,s,a){let l=rH(t),c=new AbortController;switch(a&&(a.current=()=>c.abort()),e){case"character":case"element":case"word":{let u=await uH(n,c);if(u===null||(ir(u,l,{...r,restDelta:.001,delay:ih(r?.delay??0,{startDelay:i})}).then(()=>s?.()),!o||!a))return;a.current=()=>void ir(u,t,{...r,restDelta:.001,delay:ih(r?.delay??0,{startDelay:i})});return}case"line":{try{for(let f of n)await VE(f,c)}catch{return}let u;if(Q.read(()=>{u=fH(n),u.length!==0&&Q.update(()=>{let f=u.map((d,h)=>ir(d,l,{...r,restDelta:.001,delay:i+h*(r?.delay??0)}));Promise.all(f).then(()=>s?.())})}),!o||!a)return;a.current=()=>{u.length!==0&&u.forEach((f,d)=>{ir(f,t,{...r,restDelta:.001,delay:i+d*(r?.delay??0)})})};return}default:we(e)}}async function uH(e,t){if(e.size===0)return null;let n=[];for(let r of e)try{let i=await VE(r,t);i&&n.push(i)}catch{return null}return n}function fH(e){let t=[],n=[],r=null;for(let i of e){if(!i.current)continue;let o=i.current.offsetTop,s=i.current.offsetHeight;!s||r===null||o===r?n.push(i.current):(t.push(n),n=[i.current]),s&&(r=o)}return t.push(n),t}var xC=Oe(({viewBoxScale:e,viewBox:t,children:n,...r},i)=>k(Xe.svg,{ref:i,...r,viewBox:t,children:k(Xe.foreignObject,{width:"100%",height:"100%",className:"framer-fit-text",transform:`scale(${e})`,style:{overflow:"visible",transformOrigin:"center center"},children:n})})),dH=Oe((e,t)=>{let{__fromCanvasComponent:n=!1,_forwardedOverrideId:r,_forwardedOverrides:i,_usesDOMRect:o,anchorLinkOffsetY:s,as:a,bottom:l,center:c,children:u,environment:f=he.current,fonts:d=[],height:h,isEditable:p=!1,left:y,name:x,opacity:m,positionSticky:g,positionStickyBottom:v,positionStickyLeft:b,positionStickyRight:C,positionStickyTop:S,right:R,rotation:T=0,style:F,_initialStyle:P,stylesPresetsClassNames:B,text:H,top:L,verticalAlignment:Y="top",visible:W=!0,width:ne,willChangeTransform:U,withExternalLayout:ee=!1,viewBox:ae,viewBoxScale:me=1,effect:K,...se}=e,fe=ll(),ie=Es(),Ce=z(fo),Pe=hl(e),Le=V(null),Ie=t??Le;hf(e,Ie),LE(d,n,Ie),ct(()=>{ul()},[]);let dt=lH(K,Ie),sn=re(()=>{if(u)return DE(u,B,H,s,void 0,dt.getTokenizer())},[u,B,H,s,dt]);if(!W)return null;let yr=p&&f()===he.canvas,de={outline:"none",display:"flex",flexDirection:"column",justifyContent:ME(Y),opacity:yr?0:m,flexShrink:0},an={},St=he.hasRestrictions(),lt=tl(e,fe||0,!1),ho=o&&(ne==="auto"||h==="auto"),_=!!e.transformTemplate||!lt||!St||n||ho?e.transformTemplate??ff(c):void 0;ee||(lt&&St&&!ho?(an.x=lt.x+(Ae(F?.x)?F.x:0),an.y=lt.y+(Ae(F?.y)?F.y:0),de.rotate=vt.getNumber(T),de.width=lt.width,de.minWidth=lt.width,de.height=lt.height):(de.left=y,de.right=R,de.top=L,de.bottom=l,de.width=ne,de.height=h,de.rotate=T),g?(!ie||Ce)&&(de.position="sticky",de.willChange="transform",de.zIndex=1,de.top=S,de.right=C,de.bottom=v,de.left=b):ie&&(e.positionFixed||e.positionAbsolute)&&(de.position="absolute")),Wg(e,de),DR(e,de),U&&Bg(de),Object.assign(de,P,F,an),Pe&&(se.layout="preserve-aspect");let A=dl(e.as);return ue(e.viewBox)?e.as!==void 0?k(A,{...se,ref:Ie,style:de,layoutId:Pe,transformTemplate:_,"data-framer-name":se["data-framer-name"]??x,"data-framer-component-type":"RichTextContainer",children:k(xC,{viewBox:ae,viewBoxScale:me,style:{width:"100%",height:"100%"},children:sn})}):k(xC,{...se,ref:Ie,style:de,layoutId:Pe,viewBox:ae,viewBoxScale:me,transformTemplate:_,"data-framer-name":se["data-framer-name"]??x,"data-framer-component-type":"RichTextContainer",children:sn}):k(A,{...se,ref:Ie,style:de,layoutId:Pe,transformTemplate:_,"data-framer-name":se["data-framer-name"]??x,"data-framer-component-type":"RichTextContainer",children:sn})});function hH(e){return e.type===wn}function pH(e){return e.type==="br"}function DE(e,t,n,r,i={},o,s=hH(e)?-1:0){let a=cn.toArray(e.props.children);ue(n)&&(a=a.slice(0,1));let l=!0;a=a.map(f=>{if((!_t(f)||!pH(f))&&(l=!1),_t(f))return DE(f,t,n,r,i,o,s+1);let d=ue(n)?n:f;return ue(d)&&o?o.text(d):d});let{["data-preset-tag"]:c,...u}=e.props;if(ue(e.type)||nc(e.type)){let f=nh(e.type)||e.type,d=c||f,h=ue(d)?t?.[d]:void 0;u.className=Fi("framer-text",u.className,h),o&&s===0&&!l&&Object.assign(u,o.props(u.style));let p=f==="h1"||f==="h2"||f==="h3"||f==="h4"||f==="h5"||f==="h6",y=t?.anchor;if(p&&y){let x=mH(a,i);u.id=x;let m=Fi("framer-text",y),g=k("a",{href:`#${x}`,className:m,children:a});u.style={...u.style??{},scrollMarginTop:r},a=[g]}}return wr(e,u,...a)}function mH(e,t){let n=e.map(Rg).join(""),r=qj(n),i=t[r]??0;return i>0&&(r+=`-${i}`),t[r]=i+1,r}function Rg(e){return ue(e)||Ae(e)?e.toString():_t(e)?Rg(e.props.children):Array.isArray(e)?e.map(Rg).join(""):""}var Kq=Oe(({children:e,html:t,htmlFromDesign:n,...r},i)=>{let o=t||e||n;if(ue(o)){!r.stylesPresetsClassName&&ge(r.stylesPresetsClassNames)&&(r.stylesPresetsClassName=Object.values(r.stylesPresetsClassNames).join(" "));let s={[ue(t)?"html":"htmlFromDesign"]:o};return k(tH,{...r,...s,ref:i})}if(!r.stylesPresetsClassNames&&ue(r.stylesPresetsClassName)){let[s,a,l,c,u]=r.stylesPresetsClassName.split(" ");s===void 0||a===void 0||l===void 0||c===void 0||u===void 0?console.warn(`Encountered invalid stylesPresetsClassNames: ${r.stylesPresetsClassNames}`):r.stylesPresetsClassNames={h1:s,h2:a,h3:l,p:c,a:u}}return k(dH,{...r,ref:i,children:_t(o)?o:void 0})});function gH(e){var t,n;let r=e*Math.PI/180,i={x:-Math.sin(r)*100,y:Math.cos(r)*100},o=$t(i.x,i.y),s=It($t(.5,.5),o),a=Z.points({x:0,y:0,width:1,height:1}),l=a.map(y=>({point:y,distance:$t.distance(o,y)})).sort((y,x)=>y.distance-x.distance),c=(t=l[0])==null?void 0:t.point,u=(n=l[1])==null?void 0:n.point;N(c&&u,"linearGradientLine: Must have 2 closest points.");let[f,d]=a.filter(y=>!$t.isEqual(y,c)&&!$t.isEqual(y,u));N(f&&d,"linearGradientLine: Must have 2 opposing points.");let h=It.intersection(s,It(c,u)),p=It.intersection(s,It(f,d));return N(h&&p,"linearGradientLine: Must have a start and end point."),It(h,p)}function vH(e,t){var n,r;let i=gH(e.angle),o=pl(e),s=((n=o[0])==null?void 0:n.position)??0,a=((r=o[o.length-1])==null?void 0:r.position)??1,l=It.pointAtPercentDistance(i,s),c=It.pointAtPercentDistance(i,a),u=Po([s,a],[0,1]);return{id:`id${t}g${nl.hash(e)}`,x1:l.x,y1:l.y,x2:c.x,y2:c.y,stops:o.map(f=>({color:f.value,alpha:$g.getAlpha(f.value)*e.alpha,position:u(f.position)}))}}function yH(e,t){return{id:`id${t}g${rl.hash(e)}`,widthFactor:e.widthFactor,heightFactor:e.heightFactor,centerAnchorX:e.centerAnchorX,centerAnchorY:e.centerAnchorY,stops:pl(e).map(n=>({color:n.value,alpha:$g.getAlpha(n.value)*e.alpha,position:n.position}))}}function zE(e){if(!ue(e)||e.charAt(e.length-1)!=="%")return!1;let n=e.slice(0,-1),r=parseFloat(n);return Ae(r)}function BE(e){let t=e.slice(0,-1),n=parseFloat(t);return Ae(n)?n:50}function wC(e){return zE(e)?BE(e)/100:e==="left"?0:e==="right"?1:.5}function SC(e){return zE(e)?BE(e)/100:e==="top"?0:e==="bottom"?1:.5}function bH(e,t,n,r){if(e=vt.get(e,"#09F"),!io.isImageObject(e)||!e.pixelWidth||!e.pixelHeight)return;let i=e.pixelWidth,o=e.pixelHeight,s,{fit:a}=e,l=1,c=1,u=0,f=0;if(a==="fill"||a==="fit"||a==="tile"||!a){let h=1,p=1,y=i/o,x=t.height*y,m=t.width/y,g=x/t.width,v=m/t.height;if(a==="tile"){e.backgroundSize??=1,l=Math.round(e.backgroundSize*(i/2)),c=Math.round(e.backgroundSize*(o/2));let b=t.x??0,C=t.y??0,S=0,R=0;r&&(S=b,R=C),u=(t.width-l)*wC(e.positionX)+S,f=(t.height-c)*SC(e.positionY)+R,s=`translate(${u+b}, ${f+C})`}else(a==="fill"||!a?v>g:v<g)?(p=v,f=(1-v)*SC(e.positionY)):(h=g,u=(1-g)*wC(e.positionX)),s=`translate(${u}, ${f}) scale(${h}, ${p})`}return{id:`id${n}g-fillImage`,path:e.src??"",transform:s,width:l,height:c,offsetX:u,offsetY:f}}var xH="framer/asset-reference,";function wH(e){return e.startsWith(`data:${xH}`)}function SH(e,t){if(/^\w+:/u.test(e)&&!wH(e))return e;typeof t!="number"?t=void 0:t<=512?t=512:t<=1024?t=1024:t<=2048?t=2048:t=4096;let n=he.current()===he.export;return yt.assetResolver(e,{pixelSize:t,isExport:n})??""}var kH=({id:e,path:t,transform:n,repeat:r,width:i,height:o,offsetX:s,offsetY:a})=>{let l=SH(t);return k("pattern",{id:e,width:r?i:"100%",height:r?o:"100%",patternContentUnits:r?void 0:"objectBoundingBox",patternUnits:r?"userSpaceOnUse":void 0,x:r?s:void 0,y:r?a:void 0,children:k("image",{width:r?i:1,height:r?o:1,href:l,preserveAspectRatio:"none",transform:r?void 0:n,x:r?0:void 0,y:r?0:void 0},l)})};var kC,CH=!w5()&&typeof Document<"u"&&typeof Document.parseHTMLUnsafe=="function";function RH(e,t){return CH&&!t?Document.parseHTMLUnsafe(e):(kC??=new DOMParser,kC.parseFromString(e,t??"text/html"))}var CC=gr(),TH=class{constructor(e,t,n,r,i=0){this.id=e,this.svg=t,this.innerHTML=n,this.viewBox=r,this.count=i}},RC="position: absolute; overflow: hidden; bottom: 0; left: 0; width: 0; height: 0; z-index: 0; contain: strict",EH=class{constructor(){E(this,"entries",new Map)}debugGetEntries(){return this.entries}subscribe(e,t,n){if(!e||e==="")return"";let r=this.entries.get(e);if(!r){n||(n=`svg${String(PR(e))}_${String(e.length)}`);let i=e,o,s=FH(e);s&&(t&&PH(s,n),s.id=n,o=MH(s),s.removeAttribute("xmlns"),s.removeAttribute("xlink"),s.removeAttribute("xmlns:xlink"),i=s.outerHTML),r=this.createDOMElementFor(i,n,o),this.entries.set(e,r)}return r.count+=1,r.innerHTML}getViewBox(e){if(!e||e==="")return;let t=this.entries.get(e);return t?.viewBox}unsubscribe(e){if(!e||e==="")return;let t=this.entries.get(e);t&&(t.count-=1,!(t.count>0)&&setTimeout(()=>this.maybeRemoveEntry(e),5e3))}maybeRemoveEntry(e){let t=this.entries.get(e);t&&(t.count>0||(this.entries.delete(e),this.removeDOMElement(t)))}removeDOMElement(e){if(CC){let t=document?.getElementById(e.id);t?.remove()}}createDOMElementFor(e,t,n){if(CC){let s=document.getElementById("svg-templates");if(s||(s=document.createElement("div"),s.id="svg-templates",s.ariaHidden="true",s.style.cssText=RC,document.body.appendChild(s)),!document.getElementById(t)){let a=document.createElement("div");a.innerHTML=e;let l=a.firstElementChild;l&&(l.id=t,s.appendChild(l))}}let r=n?`0 0 ${n.width} ${n.height}`:void 0,o=`<svg style="width:100%;height:100%"${r?` viewBox="${r}"`:""}><use href="#${t}"/></svg>`;return new TH(t,e,o,r)}clear(){this.entries.clear()}generateTemplates(){let e=[];return e.push(`<div id="svg-templates" style="${RC}" aria-hidden="true">`),this.entries.forEach(t=>e.push(t.svg)),e.push("</div>"),e.join(`
`)}},ds=new EH;function FH(e){try{let n=RH(e).getElementsByTagName("svg")[0];if(!n)throw Error("no svg element found");return n}catch{return}}function PH(e,t){let n=IH(t);$E(e,n)}function IH(e){return e.replace(/[^\w\-:.]|^[^a-z]+/gi,"")}function $E(e,t){_H(e,t),Array.from(e.children).forEach(r=>{$E(r,t)})}function _H(e,t){e.getAttributeNames().forEach(r=>{let i=e.getAttribute(r);if(!i)return;if(r==="id"&&e.setAttribute(r,`${t}_${i}`),r==="href"||r==="xlink:href"){let[s,a]=i.split("#");if(s)return;e.setAttribute(r,`#${t}_${a}`);return}let o="url(#";if(i.includes(o)){let s=i.replace(o,`${o}${t}_`);e.setAttribute(r,s)}})}var OH={cm:96/2.54,mm:96/2.54/10,Q:96/2.54/40,in:96,pc:96/6,pt:96/72,px:1,em:16,ex:8,ch:8,rem:16};function TC(e){var t;if(!e)return;let n=/(-?[\d.]+)([a-z%]*)/u.exec(e);if(!(n?.[1]===void 0||n?.[2]===void 0)&&!((t=n[2])!=null&&t.startsWith("%")))return Math.round(parseFloat(n[1])*(OH[n[2]]||1))}function MH(e){let t=TC(e.getAttribute("width")),n=TC(e.getAttribute("height"));if(!(typeof t!="number"||typeof n!="number")&&!(t<=0||n<=0))return{width:t,height:n}}var eX=Oe(function(t,n){let r=ll(),i=hl(t),o=w.useRef(null),s=n??o,a=aj();return hf(t,o),k(BH,{...t,innerRef:s,parentSize:r,layoutId:i,providedWindow:a})}),LH=5e4;function VH(e){return e.indexOf("image")>=0}function AH(e){return e.indexOf("var(--")>=0}function DH(e){return!!(e.borderRadius||e.borderBottomLeftRadius||e.borderBottomRightRadius||e.borderTopLeftRadius||e.borderTopRightRadius)}function EC(e,t){var n,r;let i=e.current;if(!i)return;let o=t.providedWindow??xe,s=i.firstElementChild;if(!s||!(s instanceof o.SVGSVGElement))return;if(!s.getAttribute("viewBox")){let h=ds.getViewBox(t.svg);h&&s.setAttribute("viewBox",h)}let{withExternalLayout:a,parentSize:l}=t;if(!a&&al(t)&&l!==1&&l!==2)return;let{intrinsicWidth:u,intrinsicHeight:f,_constraints:d}=t;((n=s.viewBox.baseVal)==null?void 0:n.width)===0&&((r=s.viewBox.baseVal)==null?void 0:r.height)===0&&ce(u)&&ce(f)&&s.setAttribute("viewBox",`0 0 ${u} ${f}`),d&&d.aspectRatio?s.setAttribute("preserveAspectRatio",""):s.setAttribute("preserveAspectRatio","none"),s.setAttribute("width","100%"),s.setAttribute("height","100%")}function zH(){return w.useInsertionEffect(()=>{ul()},[]),null}var BH=(()=>{var e;return e=class extends Du{constructor(){super(...arguments),E(this,"container",w.createRef()),E(this,"svgElement",null),E(this,"setSVGElement",t=>{this.svgElement=t,this.setLayerElement(t)}),E(this,"previouslyRenderedSVG",""),E(this,"unmountedSVG","")}static frame(t){return tl(t,t.parentSize||0)}get frame(){return tl(this.props,this.props.parentSize||0)}componentDidMount(){if(this.unmountedSVG){let{svgContentId:t}=this.props,n=t?`svg${t}`:null;ds.subscribe(this.unmountedSVG,!t,n),this.previouslyRenderedSVG=this.unmountedSVG}this.props.svgContentId||EC(this.container,this.props)}componentWillUnmount(){ds.unsubscribe(this.previouslyRenderedSVG),this.unmountedSVG=this.previouslyRenderedSVG,this.previouslyRenderedSVG=""}componentDidUpdate(t){if(super.componentDidUpdate(t),this.props.svgContentId)return;let{fill:n}=this.props;io.isImageObject(n)&&io.isImageObject(t.fill)&&n.src!==t.fill.src&&FR(this.svgElement,"fill",null,!1),EC(this.container,this.props)}collectLayout(t,n){if(this.props.withExternalLayout){n.width="100%",n.height="100%",n.aspectRatio="inherit";return}let r=this.frame,{rotation:i,intrinsicWidth:o,intrinsicHeight:s,width:a,height:l}=this.props,c=vt.getNumber(i);if(t.opacity=ce(this.props.opacity)?this.props.opacity:1,he.hasRestrictions()&&r){Object.assign(t,{transform:`translate(${r.x}px, ${r.y}px) rotate(${c.toFixed(4)}deg)`,width:`${r.width}px`,height:`${r.height}px`}),al(this.props)&&(t.position="absolute");let p=r.width/(o||1),y=r.height/(s||1);n.transformOrigin="top left";let{zoom:x,target:m}=og;if(m===he.export){let g=x>1?x:1;n.transform=`scale(${p*g}, ${y*g})`,n.zoom=1/g}else n.transform=`scale(${p}, ${y})`;o&&s&&(n.width=o,n.height=s);return}let{left:u,right:f,top:d,bottom:h}=this.props;Object.assign(t,{left:u,right:f,top:d,bottom:h,width:a,height:l,rotate:c}),Object.assign(n,{left:0,top:0,bottom:0,right:0,position:"absolute"})}render(){let{id:t,visible:n,style:r,fill:i,svg:o,intrinsicHeight:s,intrinsicWidth:a,title:l,description:c,layoutId:u,className:f,variants:d,withExternalLayout:h,innerRef:p,svgContentId:y,height:x,opacity:m,width:g,...v}=this.props;if(!h&&(!n||!t))return null;let b=t??u??"svg",C=this.frame,S=C||{width:a||100,height:s||100},R={...r,imageRendering:"pixelated",flexShrink:0},T={};this.collectLayout(R,T),w4(this.props,R),Wg(this.props,R),Du.applyWillChange(this.props,R,!1);let F=null;if(typeof i=="string"||X.isColorObject(i)){let K=X.isColorObject(i)?i.initialValue||X.toRgbString(i):i;R.fill=K,R.color=K}else if(nl.isLinearGradient(i)){let K=i,se=`${encodeURI(t||"")}g${nl.hash(K)}`;R.fill=`url(#${se})`;let{stops:fe,x1:ie,x2:Ce,y1:Pe,y2:Le}=vH(K,b);F=k("svg",{ref:this.setSVGElement,width:"100%",height:"100%",style:{position:"absolute"},role:"presentation",children:k("linearGradient",{id:se,x1:ie,x2:Ce,y1:Pe,y2:Le,children:fe.map((Ie,dt)=>k("stop",{offset:Ie.position,stopColor:Ie.color,stopOpacity:Ie.alpha},dt))})})}else if(rl.isRadialGradient(i)){let K=i,se=`${encodeURI(t||"")}g${rl.hash(K)}`;R.fill=`url(#${se})`;let fe=yH(K,b);F=k("svg",{ref:this.setSVGElement,width:"100%",height:"100%",style:{position:"absolute"},role:"presentation",children:k("radialGradient",{id:se,cy:K.centerAnchorY,cx:K.centerAnchorX,r:K.widthFactor,children:fe.stops.map((ie,Ce)=>k("stop",{offset:ie.position,stopColor:ie.color,stopOpacity:ie.alpha},Ce))})})}else if(io.isImageObject(i)){let K=bH(i,S,b);K&&(R.fill=`url(#${K.id})`,F=k("svg",{ref:this.setSVGElement,width:"100%",height:"100%",style:{position:"absolute"},role:"presentation",children:k("defs",{children:k(kH,{...K})})}))}let P={"data-framer-component-type":"SVG"},B=!C;B&&Object.assign(P,kR(this.props.center));let H=!F&&!R.fill&&!R.background&&!R.backgroundImage&&o.length<LH&&!VH(o)&&!AH(o),L=null;if(H)R.backgroundSize="100% 100%",R.backgroundImage=`url('data:image/svg+xml;utf8,${encodeURIComponent(o)}')`,ds.unsubscribe(this.previouslyRenderedSVG),this.previouslyRenderedSVG="";else{let K=y?`svg${y}`:null,se=ds.subscribe(o,!y,K);ds.unsubscribe(this.previouslyRenderedSVG),this.previouslyRenderedSVG=o,DH(R)&&(R.overflow="hidden"),L=be(ht,{children:[F,k("div",{className:"svgContainer",style:T,ref:this.container,dangerouslySetInnerHTML:{__html:se}},io.isImageObject(i)?i.src:"")]})}let Y=dl(this.props.as),{href:W,target:ne,rel:U,onClick:ee,onTap:ae}=this.props,me=l||c;return be(Y,{...P,...v,layoutId:u,transformTemplate:B?ff(this.props.center):void 0,id:t,ref:p,style:R,className:f,variants:d,tabIndex:this.props.tabIndex,role:me?"img":void 0,"aria-label":l,"aria-description":c,"aria-hidden":me?void 0:"true",onTap:ae,onClick:ee,href:W,target:ne,rel:U,children:[L,k(zH,{})]})}},E(e,"supportsConstraints",!0),E(e,"defaultSVGProps",{left:void 0,right:void 0,top:void 0,bottom:void 0,style:void 0,_constraints:{enabled:!0,aspectRatio:null},parentSize:0,rotation:0,visible:!0,svg:"",shadows:[]}),E(e,"defaultProps",{...Du.defaultProps,...e.defaultSVGProps}),e})();var $H=1e3;function uX(e){return e>$H?"lazy":void 0}function fX(e,t,n){let r=NE(t);!n?.supportsExplicitInterCodegen&&!r.some(i=>i.explicitInter===!1)&&r.push({explicitInter:!1,fonts:[]}),Object.assign(e,{fonts:r})}function dX(e){return e.fonts??[]}function hX(e){return e.length===0?[{explicitInter:!1,fonts:[]}]:NE(e)}function NE(e){let t={explicitInter:!1,fonts:[]},n=[];for(let r of e)jH(r)?n.push(r):t.fonts.push(HH(r));return t.fonts.length>0&&n.push(t),n}var NH="explicitInter";function jH(e){return NH in e}function HH(e){let t;return e.url.startsWith("https://fonts.gstatic.com/s/")?t="google":e.url.startsWith("https://framerusercontent.com/third-party-assets/fontshare/")?t="fontshare":t="custom",{...e,source:t}}function pX(e,t){let n=`${e}-start`;performance.mark(n),t();let r=`${e}-end`;performance.mark(r),performance.measure(e,n,r)}Wl.prototype.addChild=function({transformer:e=t=>t}){let t=We(e(this.get()));return this.onChange(n=>t.set(e(n))),t};//! Credit to Astro | MIT License
/**
 * @license Emotion v11.0.0
 * MIT License
 *
 * Copyright (c) Emotion team and other contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *//*! Bundled license information:

react-is/cjs/react-is.production.min.js:
  (** @license React v16.13.1
   * react-is.production.min.js
   *
   * Copyright (c) Facebook, Inc. and its affiliates.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE file in the root directory of this source tree.
   *)
*/export{w as a,cn as b,wn as c,wr as d,Ur as e,Cv as f,Oe as g,wl as h,Ve as i,G as j,z as k,$ as l,Sr as m,ct as n,re as o,V as p,Re as q,Ot as r,ht as s,k as t,be as u,Q as v,er as w,Xe as x,Qd as y,Mb as z,rr as A,Ht as B,rO as C,Nb as D,Hb as E,RO as F,vm as G,oV as H,gV as I,s9 as J,Ii as K,Wr as L,p9 as M,m9 as N,S9 as O,sl as P,T9 as Q,F9 as R,I9 as S,O9 as T,OA as U,eR as V,V9 as W,he as X,j9 as Y,WD as Z,q9 as _,X3 as $,Y9 as aa,e5 as ba,Fi as ca,Lm as da,UR as ea,w7 as fa,XR as ga,wz as ha,ml as ia,V7 as ja,QR as ka,D7 as la,z7 as ma,Fz as na,Pz as oa,B7 as pa,X7 as qa,J7 as ra,eG as sa,gG as ta,bG as ua,kG as va,TG as wa,FG as xa,YB as ya,h$ as za,m$ as Aa,Es as Ba,DG as Ca,jG as Da,YG as Ea,QG as Fa,_6 as Ga,JG as Ha,nq as Ia,rq as Ja,cq as Ka,fq as La,X6 as Ma,pq as Na,vq as Oa,bq as Pa,Rq as Qa,Uu as Ra,Vq as Sa,zq as Ta,Nq as Ua,Wq as Va,Kq as Wa,ds as Xa,eX as Ya,uX as Za,fX as _a,dX as $a,hX as ab,pX as bb};
//# sourceMappingURL=chunk-44IMGQZ2.mjs.map
