1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[347],{140:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Hammer",[["path",{d:"m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9",key:"eefl8a"}],["path",{d:"m18 15 4-4",key:"16gjal"}],["path",{d:"m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5",key:"b7pghm"}]])},542:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Handshake",[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]])},639:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]])},737:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return i}});let i=r(8140)._(r(2115)).default.createContext({})},821:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return i}});let r=["default","imgix","cloudinary","akamai","custom"],i={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumResponseBody:5e7,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},861:(e,t)=>{"use strict";function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:i=!1}=void 0===e?{}:e;return t||r&&i}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},984:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},1010:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("WashingMachine",[["path",{d:"M3 6h3",key:"155dbl"}],["path",{d:"M17 6h.01",key:"e2y6kg"}],["rect",{width:"18",height:"20",x:"3",y:"2",rx:"2",key:"od3kk9"}],["circle",{cx:"12",cy:"13",r:"5",key:"nlbqau"}],["path",{d:"M12 18a2.5 2.5 0 0 0 0-5 2.5 2.5 0 0 1 0-5",key:"17lach"}]])},1124:(e,t)=>{"use strict";function r(e){var t;let{config:r,src:i,width:n,quality:s}=e,a=s||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(i)+"&w="+n+"&q="+a+(i.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}}),r.__next_img_default=!0;let i=r},1262:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let i=r(2115),n=i.useLayoutEffect,s=i.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let n=i.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(n,e))}}return n(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),n(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),s(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},1356:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return _}});let i=r(8140),n=r(9417),s=r(5155),a=n._(r(2115)),o=i._(r(7650)),l=i._(r(4841)),u=r(5040),d=r(821),h=r(3455);r(4781);let c=r(9862),f=i._(r(1124)),p=r(3011),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function y(e,t,r,i,n,s,a){let o=null==e?void 0:e.src;e&&e["data-loaded-src"]!==o&&(e["data-loaded-src"]=o,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&n(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let i=!1,n=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>i,isPropagationStopped:()=>n,persist:()=>{},preventDefault:()=>{i=!0,t.preventDefault()},stopPropagation:()=>{n=!0,t.stopPropagation()}})}(null==i?void 0:i.current)&&i.current(e)}}))}function g(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:i,sizes:n,height:o,width:l,decoding:u,className:d,style:h,fetchPriority:c,placeholder:f,loading:m,unoptimized:v,fill:b,onLoadRef:_,onLoadingCompleteRef:x,setBlurComplete:w,setShowAltText:k,sizesInput:A,onLoad:T,onError:S,...E}=e,P=(0,a.useCallback)(e=>{e&&(S&&(e.src=e.src),e.complete&&y(e,f,_,x,w,v,A))},[r,f,_,x,w,S,v,A]),C=(0,p.useMergedRef)(t,P);return(0,s.jsx)("img",{...E,...g(c),loading:m,width:l,height:o,decoding:u,"data-nimg":b?"fill":"1",className:d,style:h,sizes:n,srcSet:i,src:r,ref:C,onLoad:e=>{y(e.currentTarget,f,_,x,w,v,A)},onError:e=>{k(!0),"empty"!==f&&w(!0),S&&S(e)}})});function b(e){let{isAppRouter:t,imgAttributes:r}=e,i={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...g(r.fetchPriority)};return t&&o.default.preload?(o.default.preload(r.src,i),null):(0,s.jsx)(l.default,{children:(0,s.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...i},"__nimg-"+r.src+r.srcSet+r.sizes)})}let _=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(c.RouterContext),i=(0,a.useContext)(h.ImageConfigContext),n=(0,a.useMemo)(()=>{var e;let t=m||i||d.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),n=t.deviceSizes.sort((e,t)=>e-t),s=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:n,qualities:s}},[i]),{onLoad:o,onLoadingComplete:l}=e,p=(0,a.useRef)(o);(0,a.useEffect)(()=>{p.current=o},[o]);let y=(0,a.useRef)(l);(0,a.useEffect)(()=>{y.current=l},[l]);let[g,_]=(0,a.useState)(!1),[x,w]=(0,a.useState)(!1),{props:k,meta:A}=(0,u.getImgProps)(e,{defaultLoader:f.default,imgConf:n,blurComplete:g,showAltText:x});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(v,{...k,unoptimized:A.unoptimized,placeholder:A.placeholder,fill:A.fill,onLoadRef:p,onLoadingCompleteRef:y,setBlurComplete:_,setShowAltText:w,sizesInput:e.sizes,ref:t}),A.priority?(0,s.jsx)(b,{isAppRouter:!r,imgAttributes:k}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2033:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]])},2150:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Recycle",[["path",{d:"M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5",key:"x6z5xu"}],["path",{d:"M11 19h8.203a1.83 1.83 0 0 0 1.556-.89 1.784 1.784 0 0 0 0-1.775l-1.226-2.12",key:"1x4zh5"}],["path",{d:"m14 16-3 3 3 3",key:"f6jyew"}],["path",{d:"M8.293 13.596 7.196 9.5 3.1 10.598",key:"wf1obh"}],["path",{d:"m9.344 5.811 1.093-1.892A1.83 1.83 0 0 1 11.985 3a1.784 1.784 0 0 1 1.546.888l3.943 6.843",key:"9tzpgr"}],["path",{d:"m13.378 9.633 4.096 1.098 1.097-4.096",key:"1oe83g"}]])},2241:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},2544:(e,t,r)=>{"use strict";r.d(t,{mN:()=>er});var i=r(2115),n=e=>e instanceof Date,s=e=>null==e,a=e=>!s(e)&&!Array.isArray(e)&&"object"==typeof e&&!n(e),o="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function l(e){if(e instanceof Date)return new Date(e);let t="undefined"!=typeof FileList&&e instanceof FileList;if(o&&(e instanceof Blob||t))return e;let r=Array.isArray(e);if(!r&&!(a(e)&&(e=>{let t=e.constructor&&e.constructor.prototype;return a(t)&&t.hasOwnProperty("isPrototypeOf")})(e)))return e;let i=r?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=l(e[t]));return i}let u={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},d={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},h={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},c="form",f="root",p=["__proto__","constructor","prototype"];var m=e=>/^\w*$/.test(e),y=e=>void 0===e,g=e=>
1e.split(/[.[\]'"]/g).filter(Boolean),v=(e,t,r)=>{if(!t||!a(e))return r;let i=m(t)?[t]:g(t);if(i.some(e=>p.includes(e)))return r;let n=i.reduce((e,t)=>s(e)?void 0:e[t],e);return y(n)||n===e?y(e[t])?r:e[t]:n},b=e=>"function"==typeof e,_=(e,t,r)=>{let i=-1,n=m(t)?[t]:g(t),s=n.length,o=s-1;for(;++i<s;){let t=n[i],s=r;if(i!==o){let r=e[t];s=a(r)||Array.isArray(r)?r:isNaN(+n[i+1])?{}:[]}if(p.includes(t))return;e[t]=s,e=e[t]}};i.createContext(null).displayName="HookFormControlContext";let x=o?i.useLayoutEffect:i.useEffect;var w=e=>"string"==typeof e,k=e=>s(e)||"object"!=typeof e;function A(e,t,r=new WeakSet){if(e===t)return!0;if(k(e)||k(t))return Object.is(e,t);if(n(e)&&n(t))return Object.is(e.getTime(),t.getTime());let i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;if(r.has(e)||r.has(t))return!0;for(let s of(r.add(e),r.add(t),i)){let i=e[s];if(!(s in t))return!1;if("ref"!==s){let e=t[s];if(n(i)&&n(e)||(a(i)||Array.isArray(i))&&(a(e)||Array.isArray(e))?!A(i,e,r):!Object.is(i,e))return!1}}return!0}i.createContext(null).displayName="HookFormContext";var T=(e,t,r,i,n)=>t?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[i]:n||!0}}:{},S=e=>Array.isArray(e)?e.filter(Boolean):[],E=e=>Array.isArray(e)?e:[e],P=()=>{let e=[];return{get observers(){return e},next:t=>{for(let r of e)r.next&&r.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},C=e=>a(e)&&!Object.keys(e).length,M=e=>{if(!o)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},R=e=>M(e)&&e.isConnected;function O(e,t){if(w(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;let r=Array.isArray(t)?t:m(t)?[t]:g(t),i=1===r.length?e:function(e,t){let r=t.slice(0,-1).length,i=0;for(;i<r;){if(s(e)){e=void 0;break}e=e[t[i]],i++}return e}(e,r),n=r.length-1,o=r[n];return i&&delete i[o],0!==n&&(a(i)&&C(i)||Array.isArray(i)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!y(e[t]))return!1;return!0}(i))&&O(e,r.slice(0,-1)),e}function V(e){return Array.isArray(e)||a(e)&&!(e=>{for(let t in e)if(b(e[t]))return!0;return!1})(e)}function j(e,t={}){for(let r in e){let i=e[r];V(i)?(t[r]=Array.isArray(i)?[]:{},j(i,t[r])):y(i)||(t[r]=!0)}return t}function L(e,t,r){for(let i in r||(r=j(t)),e){let n=e[i];if(V(n))y(t)||k(r[i])?r[i]=j(n,Array.isArray(n)?[]:{}):L(n,s(t)?{}:t[i],r[i]);else{let e=t[i];r[i]=!A(n,e)}}return function e(t){if(!1!==t){if(!0===t)return!0;if(Array.isArray(t)){let r=t.map(t=>e(t));return r.some(e=>void 0!==e)?r:void 0}if(a(t)){let r={};for(let i in t){let n=e(t[i]);y(n)||(r[i]=n)}return Object.keys(r).length?r:void 0}}}(r)||{}}let D={value:!1,isValid:!1},F={value:!0,isValid:!0};var I=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!y(e[0].attributes.value)?y(e[0].value)||""===e[0].value?F:{value:e[0].value,isValid:!0}:F:D}return D},B=(e,{valueAsNumber:t,valueAsDate:r,setValueAs:i})=>y(e)?e:t?""===e?NaN:e?+e:e:r&&w(e)?new Date(e):i?i(e):e;let N={isValid:!1,value:null};var U=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,N):N;function $(e){let t=e.ref;return"file"===t.type?t.files:"radio"===t.type?U(e.refs).value:"select-multiple"===t.type?[...t.selectedOptions].map(({value:e})=>e):"checkbox"===t.type?I(e.refs).value:B(y(t.value)?e.ref.value:t.value,e)}var z=e=>y(e)?e:e instanceof RegExp?e.source:a(e)?e.value instanceof RegExp?e.value.source:e.value:e,Z=e=>({isOnSubmit:!e||e===d.onSubmit,isOnBlur:e===d.onBlur,isOnChange:e===d.onChange,isOnAll:e===d.all,isOnTouch:e===d.onTouched});let q="AsyncFunction";var W=e=>!!e&&!!e.validate&&!!(b(e.validate)&&e.validate.constructor.name===q||a(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===q)),H=(e,t,r)=>!r&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(`${t}.`)));let K=(e,t,r,i)=>{for(let n of r||Object.keys(e)){let r=v(e,n);if(r){let{_f:e,...s}=r;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],n)&&!i)return!0;else if(e.ref&&t(e.ref,e.name)&&!i)return!0;else if(K(s,t))break}else if(a(s)&&K(s,t))break}}};function Y(e,t,r){let i=v(e,r);if(i||m(r))return{error:i,name:r};let n=r.split(".");for(;n.length;){let i=n.join("."),s=v(t,i),a=v(e,i);if(s&&!Array.isArray(s)&&r!==i)break;if(a&&a.type)return{name:i,error:a};if(a&&a.root&&a.root.type)return{name:`${i}.root`,error:a.root};n.pop()}return{name:r}}var X=(e,t,r)=>{let i=v(e,r),n=Array.isArray(i)?i:[];return _(n,f,t[r]),_(e,r,n),e};function G(e,t,r="validate"){if(w(e)||Array.isArray(e)&&e.every(w)||"boolean"==typeof e&&!e)return{type:r,message:w(e)?e:"",ref:t}}var J=e=>!a(e)||e instanceof RegExp?{value:e,message:""}:e,Q=async(e,t,r,i,n,o)=>{let{ref:l,refs:u,required:d,maxLength:c,minLength:f,min:p,max:m,pattern:g,validate:_,name:x,valueAsNumber:k,mount:A}=e._f,S=v(r,x);if(!A||t.has(x))return{};let E=u?u[0]:l,P=e=>{n&&E.reportValidity&&(E.setCustomValidity("boolean"==typeof e?"":e||""),E.reportValidity())},R={},O="radio"===l.type,V="checkbox"===l.type,j=(k||"file"===l.type)&&y(l.value)&&y(S)||M(l)&&""===l.value||""===S||Array.isArray(S)&&!S.length,L=T.bind(null,x,i,R),D=(e,t,r,i=h.maxLength,n=h.minLength)=>{let s=e?t:r;R[x]={type:e?i:n,message:s,ref:l,...L(e?i:n,s)}};if(o?!Array.isArray(S)||!S.length:d&&(!(O||V)&&(j||s(S))||"boolean"==typeof S&&!S||V&&!I(u).isValid||O&&!U(u).isValid)){let{value:e,message:t}=w(d)?{value:!!d,message:d}:J(d);if(e&&(R[x]={type:h.required,message:t,ref:E,...L(h.required,t)},!i))return P(t),R}if(!j&&(!s(p)||!s(m))){let e,t,r=J(m),n=J(p);if(s(S)||isNaN(S)){let i=l.valueAsDate||new Date(S),s=e=>new Date(new Date().toDateString()+" "+e),a="time"==l.type,o="week"==l.type;w(r.value)&&S&&(e=a?s(S)>s(r.value):o?S>r.value:i>new Date(r.value)),w(n.value)&&S&&(t=a?s(S)<s(n.value):o?S<n.value:i<new Date(n.value))}else{let i=l.valueAsNumber||(S?+S:S);s(r.value)||(e=i>r.value),s(n.value)||(t=i<n.value)}if((e||t)&&(D(!!e,r.message,n.message,h.max,h.min),!i))return P(R[x].message),R}if((c||f)&&!j&&(w(S)||o&&Array.isArray(S))){let e=J(c),t=J(f),r=!s(e.value)&&S.length>+e.value,n=!s(t.value)&&S.length<+t.value;if((r||n)&&(D(r,e.message,t.message),!i))return P(R[x].message),R}if(g&&!j&&w(S)){let{value:e,message:t}=J(g);if(e instanceof RegExp&&!S.match(e)&&(R[x]={type:h.pattern,message:t,ref:l,...L(h.pattern,t)},!i))return P(t),R}if(_){if(b(_)){let e=G(await _(S,r),E);if(e&&(R[x]={...e,...L(h.validate,e.message)},!i))return P(e.message),R}else if(a(_)){let e={};for(let t in _){if(!C(e)&&!i)break;let n=G(await _[t](S,r),E,t);n&&(e={...n,...L(t,n.message)},P(n.message),i&&(R[x]=e))}if(!C(e)&&(R[x]={ref:E,...e},!i))return R}}return P(!0),R};let ee={mode:d.onSubmit,reValidateMode:d.onChange,shouldFocusError:!0},et={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function er(e={}){let t=i.useRef(void 0),r=i.useRef(void 0),[p,k]=i.useState(()=>({...l(et),isLoading:b(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:b(e.defaultValues)?void 0:e.defaultValues}));if(!t.current)if(e.formControl)t.current={...e.formControl,formState:p},e.defaultValues&&!b(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:r,...i}=function(e={}){let t,r={...ee,...e},i={...l(et),isLoading:b(r.defaultValues),errors:r.errors||{},disabled:r.disabled||!1},p={},x=(a(r.defaultValues)||a(r.values))&&l(r.defaultValues||r.values)||{},k=r.shouldUnregister?{}:l(x),T={action:!1,mount:!1,watch:!1,keepIsValid:!1},V={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},j=0,D={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},F={...D},I={...F}
1,N={array:P(),state:P()},U=r.criteriaMode===d.all,q=async e=>{if(!T.keepIsValid&&!r.disabled&&(F.isValid||I.isValid||e)){let e;r.resolver?(e=C((await en()).errors),G()):e=await eo({fields:p,onlyCheckValid:!0,eventType:u.VALID}),e!==i.isValid&&N.state.next({isValid:e})}},G=(e,t)=>{!r.disabled&&(F.isValidating||F.validatingFields||I.isValidating||I.validatingFields)&&((e||Array.from(V.mount)).forEach(e=>{e&&(t?_(i.validatingFields,e,t):O(i.validatingFields,e))}),N.state.next({validatingFields:i.validatingFields,isValidating:!C(i.validatingFields)}))},J=()=>{i.dirtyFields=L(x,k)},er=(e,t,r,n)=>{let a=v(p,e);if(a){if((e=>{let t=m(e)?[e]:g(e),r=k,i=x;for(let e=0;e<t.length-1;e++){let n=t[e];if(r=s(r)?r:r[n],i=s(i)?i:i[n],null===r&&null!==i)return!0}return!1})(e))return;let o=y(v(k,e)),l=v(k,e,y(r)?v(x,e):r);y(l)||n&&n.defaultChecked||t?_(k,e,t?l:$(a._f)):ed(e,l),T.mount&&!T.action&&(q(),o&&i.isDirty&&(F.isDirty||I.isDirty)&&(el()||(i.isDirty=!1,N.state.next({...i}))))}},ei=(e,t,n,s,a)=>{let o=!1,l=!1,u={name:e};if(!r.disabled){if(!n||s){(F.isDirty||I.isDirty)&&(l=i.isDirty,i.isDirty=u.isDirty=el(),o=l!==u.isDirty);let r=A(v(x,e),t);l=!!v(i.dirtyFields,e),r!==i.isDirty?i.dirtyFields=L(x,k):r?O(i.dirtyFields,e):_(i.dirtyFields,e,!0),u.dirtyFields=i.dirtyFields,o=o||(F.dirtyFields||I.dirtyFields)&&!r!==l}if(n){let t=v(i.touchedFields,e);t||(_(i.touchedFields,e,n),u.touchedFields=i.touchedFields,o=o||(F.touchedFields||I.touchedFields)&&t!==n)}o&&a&&N.state.next(u)}return o?u:{}},en=async e=>(G(e,!0),await r.resolver(k,r.context,((e,t,r,i)=>{let n={};for(let r of e){let e=v(t,r);e&&_(n,r,e._f)}return{criteriaMode:r,names:[...e],fields:n,shouldUseNativeValidation:i}})(e||V.mount,p,r.criteriaMode,r.shouldUseNativeValidation))),es=async e=>{let{errors:t}=await en(e);if(G(e),e)for(let r of e){let e=v(t,r);e?V.array.has(r)&&a(e)&&!Object.keys(e).some(e=>!Number.isNaN(Number(e)))?X(i.errors,{[r]:e},r):_(i.errors,r,e):O(i.errors,r)}else i.errors=t;return t},ea=async({name:t,eventType:r})=>{if(e.validate){let n=await e.validate({formValues:k,formState:i,name:t,eventType:r});if(a(n))for(let e in n){let t=n[e];t&&e_(`${c}.${e}`,{message:w(t.message)?t.message:"",type:t.type||h.validate})}else w(n)||!n?e_(c,{message:n||"",type:h.validate}):eb(c);return n}return!0},eo=async({fields:t,onlyCheckValid:n,name:s,eventType:a,context:o={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(o.runRootValidation=!0,!await ea({name:s,eventType:a}))&&(o.valid=!1,n))return o.valid;for(let s in t){let l=t[s];if(l){let{_f:t,...u}=l;if(t){let s=V.array.has(t.name),a=l._f&&W(l._f),u=F.validatingFields||F.isValidating||I.validatingFields||I.isValidating;a&&u&&G([t.name],!0);let d=await Q(l,V.disabled,k,U,r.shouldUseNativeValidation&&!n,s);if(a&&u&&G([t.name]),d[t.name]&&(o.valid=!1,n)||(n||(v(d,t.name)?s?X(i.errors,d,t.name):_(i.errors,t.name,d[t.name]):O(i.errors,t.name)),e.shouldUseNativeValidation&&d[t.name]))break}C(u)||await eo({context:o,onlyCheckValid:n,fields:u,name:s,eventType:a})}}return o.valid},el=(e,t)=>!r.disabled&&(e&&t&&_(k,e,t),!A(eg(),x)),eu=(e,t,r)=>{var i,n;return i=V,n={...T.mount?k:y(t)?x:w(e)?{[e]:t}:t},w(e)?(r&&i.watch.add(e),v(n,e,t)):Array.isArray(e)?e.map(e=>(r&&i.watch.add(e),v(n,e))):(r&&(i.watchAll=!0),n)},ed=(e,t,r={},i=!1)=>{let n=v(p,e),a=t;if(n){let r=n._f;r&&(r.disabled||_(k,e,B(t,r)),a=M(r.ref)&&s(t)?"":t,"select-multiple"===r.ref.type?[...r.ref.options].forEach(e=>e.selected=a.includes(e.value)):r.refs?"checkbox"===r.ref.type?r.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(a)?e.checked=!!a.find(t=>t===e.value):e.checked=a===e.value||!!a)}):r.refs.forEach(e=>e.checked=e.value===a):"file"===r.ref.type?r.ref.value="":(r.ref.value=a,r.ref.type||N.state.next({name:e,values:i?k:l(k)})))}(r.shouldDirty||r.shouldTouch)&&ei(e,a,r.shouldTouch,r.shouldDirty,!0),r.shouldValidate&&ey(e)},eh=(e,t,r,i=!1)=>{for(let s in t){if(!t.hasOwnProperty(s))return;let o=t[s],l=e+"."+s,u=v(p,l);(V.array.has(e)||a(o)||u&&!u._f)&&!n(o)?eh(l,o,r,i):ed(l,o,r,i)}},ec=(e,t,r,n)=>{let a=v(p,e),o=V.array.has(e),u=n?t:l(t),d=A(v(k,e),u);if(d||_(k,e,u),o)N.array.next({name:e,values:n?k:l(k)}),(F.isDirty||F.dirtyFields||I.isDirty||I.dirtyFields)&&r.shouldDirty&&(J(),N.state.next({name:e,dirtyFields:i.dirtyFields,isDirty:el(e,u)}));else{let t=Array.isArray(u)&&!u.length||C(u);!a||a._f||s(u)||t?ed(e,u,r,n):eh(e,u,r,n)}if(!d){let t=H(e,V),r=n?k:l(k);N.state.next({...t&&i,name:T.mount||t?e:void 0,values:r})}},ef=(e,t,r={})=>ec(e,t,r,!1),ep=async s=>{T.mount=!0;let o=s.target,d=o.name,h=!0,c=v(p,d),f=e=>{h=Number.isNaN(e)||n(e)&&isNaN(e.getTime())||A(e,v(k,d,e))},m=Z(r.mode),y=Z(r.reValidateMode);if(c){let n,T,R,L,D=o.type?$(c._f):a(L=s)&&L.target?"checkbox"===L.target.type?L.target.checked:L.target.value:L,B=s.type===u.BLUR||s.type===u.FOCUS_OUT,z=!((R=c._f).mount&&(R.required||R.min||R.max||R.maxLength||R.minLength||R.pattern||R.validate))&&!e.validate&&!r.resolver&&!v(i.errors,d)&&!c._f.deps||(g=B,b=v(i.touchedFields,d),x=i.isSubmitted,w=y,!(S=m).isOnAll&&(!x&&S.isOnTouch?!(b||g):(x?w.isOnBlur:S.isOnBlur)?!g:(x?!w.isOnChange:!S.isOnChange)||g)),Z=H(d,V,B);_(k,d,D),B?o&&o.readOnly||(c._f.onBlur&&c._f.onBlur(s),t&&t(0)):c._f.onChange&&c._f.onChange(s);let W=ei(d,D,B),K=!C(W)||Z;if(B||N.state.next({name:d,type:s.type,values:l(k)}),z)return(F.isValid||I.isValid)&&("onBlur"===r.mode?B&&q():B||q()),K&&N.state.next({name:d,...Z?{}:W});if(!r.resolver&&e.validate&&await ea({name:d,eventType:s.type}),!B&&Z&&N.state.next({...i}),r.resolver){let{errors:e}
1=await en([d]);if(G([d]),f(D),h){let t=Y(i.errors,p,d),r=Y(e,p,t.name||d);n=r.error,d=r.name,T=C(e)}}else G([d],!0),n=(await Q(c,V.disabled,k,U,r.shouldUseNativeValidation))[d],G([d]),f(D),h&&(n?T=!1:(F.isValid||I.isValid)&&(T=await eo({fields:p,onlyCheckValid:!0,name:d,eventType:s.type})));if(h){c._f.deps&&(!Array.isArray(c._f.deps)||c._f.deps.length>0)&&ey(c._f.deps);var g,b,x,w,S,E=d,P=T,M=n;let e=v(i.errors,E),s=(F.isValid||I.isValid)&&"boolean"==typeof P&&i.isValid!==P;if(r.delayError&&M){let e;e=()=>{_(i.errors,E,M),N.state.next({errors:i.errors})},(t=t=>{clearTimeout(j),j=setTimeout(e,t)})(r.delayError)}else clearTimeout(j),t=null,M?_(i.errors,E,M):O(i.errors,E);if((M?!A(e,M):e)||!C(W)||s){let e={...W,...s&&"boolean"==typeof P?{isValid:P}:{},errors:i.errors,name:E};i={...i,...e},N.state.next(e)}}}},em=(e,t)=>{if(v(i.errors,t)&&e.focus)return e.focus(),1},ey=async(e,t={})=>{let n,s,a=E(e);if(r.resolver){let t=await es(y(e)?e:a);n=C(t),s=e?!a.some(e=>v(t,e)):n}else e?((s=(await Promise.all(a.map(async e=>{let t=v(p,e);return await eo({fields:t&&t._f?{[e]:t}:t,eventType:u.TRIGGER})}))).every(Boolean))||i.isValid)&&q():s=n=await eo({fields:p,name:e,eventType:u.TRIGGER});return N.state.next({...!w(e)||(F.isValid||I.isValid)&&n!==i.isValid?{}:{name:e},...r.resolver||!e?{isValid:n}:{},errors:i.errors}),t.shouldFocus&&!s&&K(p,em,e?a:V.mount),s},eg=(e,t)=>{let r={...T.mount?k:x};return t&&(r=function e(t,r){let i={};for(let n in t)if(t.hasOwnProperty(n)){let s=t[n],o=r[n];if(s&&a(s)&&o){let t=e(s,o);a(t)&&(i[n]=t)}else t[n]&&(i[n]=o)}return i}(t.dirtyFields?i.dirtyFields:i.touchedFields,r)),y(e)?r:w(e)?v(r,e):e.map(e=>v(r,e))},ev=(e,t)=>({invalid:!!v((t||i).errors,e),isDirty:!!v((t||i).dirtyFields,e),error:v((t||i).errors,e),isValidating:!!v(i.validatingFields,e),isTouched:!!v((t||i).touchedFields,e)}),eb=e=>{let t=e?E(e):void 0;null==t||t.forEach(e=>O(i.errors,e)),t?t.forEach(e=>{N.state.next({name:e,errors:i.errors})}):N.state.next({errors:{}})},e_=(e,t,r)=>{let n=(v(p,e,{_f:{}})._f||{}).ref,{ref:s,message:a,type:o,...l}=v(i.errors,e)||{};_(i.errors,e,{...l,...t,ref:n}),N.state.next({name:e,errors:i.errors,isValid:!1}),r&&r.shouldFocus&&n&&n.focus&&n.focus()},ex=e=>N.state.subscribe({next:t=>{let r,n,s;if(r=e.name,n=t.name,s=e.exact,(!r||!n||r===n||E(r).some(e=>e&&(s?e===n:e.startsWith(n)||n.startsWith(e))))&&((e,t,r,i)=>{r(e);let{name:n,...s}=e;return C(s)||i&&Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(e=>t[e]===(!i||d.all))})(t,e.formState||F,eC,e.reRenderRoot)){let r={...k};e.callback({values:r,...i,...t,defaultValues:x})}}}).unsubscribe,ew=(e,t={})=>{for(let n of e?E(e):V.mount)V.mount.delete(n),V.array.delete(n),t.keepValue||(O(p,n),O(k,n)),t.keepError||O(i.errors,n),t.keepDirty||O(i.dirtyFields,n),t.keepTouched||O(i.touchedFields,n),t.keepIsValidating||O(i.validatingFields,n),r.shouldUnregister||t.keepDefaultValue||O(x,n);N.state.next({values:l(k)}),N.state.next({...i,...!t.keepDirty?{}:{isDirty:el()}}),t.keepIsValid||q()},ek=({disabled:e,name:t})=>{if("boolean"==typeof e&&T.mount||e||V.disabled.has(t)){let r=V.disabled.has(t);e?V.disabled.add(t):V.disabled.delete(t),!!e!==r&&T.mount&&!T.action&&q()}},eA=(e,t={})=>{let i=v(p,e),n="boolean"==typeof t.disabled||"boolean"==typeof r.disabled,s=!V.registerName.has(e)&&i&&i._f&&!i._f.mount;return(_(p,e,{...i||{},_f:{...i&&i._f?i._f:{ref:{name:e}},name:e,mount:!0,...t}}),V.mount.add(e),i&&!s)?ek({disabled:"boolean"==typeof t.disabled?t.disabled:r.disabled,name:e}):er(e,!0,t.value),{...n?{disabled:t.disabled||r.disabled}:{},...r.progressive?{required:!!t.required,min:z(t.min),max:z(t.max),minLength:z(t.minLength),maxLength:z(t.maxLength),pattern:z(t.pattern)}:{},name:e,onChange:ep,onBlur:ep,ref:n=>{if(n){let r;V.registerName.add(e),eA(e,t),V.registerName.delete(e),i=v(p,e);let s=y(n.value)&&n.querySelectorAll&&n.querySelectorAll("input,select,textarea")[0]||n,a="radio"===(r=s).type||"checkbox"===r.type,o=i._f.refs||[];(a?o.find(e=>e===s):s===i._f.ref)||(_(p,e,{_f:{...i._f,...a?{refs:[...o.filter(R),s,...Array.isArray(v(x,e))?[{}]:[]],ref:{type:s.type,name:e}}:{ref:s}}}),er(e,!1,void 0,s))}else{let n;(i=v(p,e,{}))._f&&(i._f.mount=!1),(r.shouldUnregister||t.shouldUnregister)&&(n=V.array,!e.split(".").some((e,t,r)=>!isNaN(Number(e))&&n.has(r.slice(0,t).join(".")))||!T.action)&&V.unMount.add(e)}}}},eT=()=>r.shouldFocusError&&!r.shouldUseNativeValidation&&K(p,em,V.mount),eS=(e,t)=>async n=>{let s;n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let a=l(k);if(N.state.next({isSubmitting:!0}),r.resolver){let{errors:e,values:t}=await en();G(),i.errors=e,a=l(t)}else await eo({fields:p,eventType:u.SUBMIT});if(V.disabled.size)for(let e of V.disabled)O(a,e);if(O(i.errors,f),C(i.errors)){N.state.next({errors:{}});try{await e(a,n)}catch(e){s=e}}else t&&await t({...i.errors},n),eT(),setTimeout(eT);if(N.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:C(i.errors)&&!s,submitCount:i.submitCount+1,errors:i.errors}),s)throw s},eE=(e,t={})=>{let n=e?l(e):x,s=l(n),a=C(e);if(t.keepDefaultValues||(x=n),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...V.mou
1nt,...Object.keys(L(x,k))]))){let t=v(i.dirtyFields,e),r=v(k,e),n=v(s,e);t&&!y(r)?_(s,e,r):t||y(n)||ef(e,n)}else{if(o&&y(e))for(let e of V.mount){let t=v(p,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(M(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(let e of V.mount)ef(e,v(s,e));else p={}}if(r.shouldUnregister){if(k=t.keepDefaultValues?l(x):{},t.keepFieldsRef)for(let e of V.mount)_(k,e,v(s,e))}else k=l(s);N.array.next({values:{...s}}),N.state.next({values:{...s}})}V={mount:t.keepDirtyValues?V.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},T.mount=!F.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!r.shouldUnregister&&!C(s),T.watch=!!r.shouldUnregister,T.keepIsValid=!!t.keepIsValid,T.action=!1,t.keepErrors||(i.errors={}),N.state.next({submitCount:t.keepSubmitCount?i.submitCount:0,isDirty:!a&&(t.keepDirty?i.isDirty:t.keepValues?el():!!(t.keepDefaultValues&&!A(e,x))),isSubmitted:!!t.keepIsSubmitted&&i.isSubmitted,dirtyFields:a?{}:t.keepDirtyValues?t.keepDefaultValues&&k?L(x,k):i.dirtyFields:t.keepDefaultValues&&e?L(x,e):t.keepDirty?i.dirtyFields:{},touchedFields:t.keepTouched?i.touchedFields:{},errors:t.keepErrors?i.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&i.isSubmitSuccessful,isSubmitting:!1,defaultValues:x})},eP=(e,t)=>eE(b(e)?e(k):e,{...r.resetOptions,...t}),eC=e=>{i={...i,...e}},eM={control:{register:eA,unregister:ew,getFieldState:ev,handleSubmit:eS,setError:e_,_subscribe:ex,_runSchema:en,_updateIsValidating:G,_focusError:eT,_getWatch:eu,_getDirty:el,_setValid:q,_setFieldArray:(e,t=[],n,s,a=!0,o=!0)=>{if(s&&n&&!r.disabled){if(T.action=!0,o&&Array.isArray(v(p,e))){let t=n(v(p,e),s.argA,s.argB);a&&_(p,e,t)}if(o&&Array.isArray(v(i.errors,e))){let t,r=n(v(i.errors,e),s.argA,s.argB);a&&_(i.errors,e,r),S(v(t=i.errors,e)).length||O(t,e)}if((F.touchedFields||I.touchedFields)&&o&&Array.isArray(v(i.touchedFields,e))){let t=n(v(i.touchedFields,e),s.argA,s.argB);a&&_(i.touchedFields,e,t)}(F.dirtyFields||I.dirtyFields)&&J(),N.state.next({name:e,isDirty:el(e,t),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else _(k,e,t)},_setDisabledField:ek,_setErrors:e=>{i.errors=e,N.state.next({errors:i.errors,isValid:!1})},_getFieldArray:e=>S(v(T.mount?k:x,e,r.shouldUnregister?v(x,e,[]):[])),_reset:eE,_resetDefaultValues:()=>b(r.defaultValues)&&r.defaultValues().then(e=>{eP(e,r.resetOptions),N.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of V.unMount){let t=v(p,e);t&&(t._f.refs?t._f.refs.every(e=>!R(e)):!R(t._f.ref))&&ew(e)}V.unMount=new Set},_disableForm:e=>{"boolean"==typeof e&&(N.state.next({disabled:e}),K(p,(t,r)=>{let i=v(p,r);i&&(t.disabled=i._f.disabled||e,Array.isArray(i._f.refs)&&i._f.refs.forEach(t=>{t.disabled=i._f.disabled||e}))},0,!1))},_subjects:N,_proxyFormState:F,get _fields(){return p},get _formValues(){return k},get _state(){return T},set _state(value){T=value},get _defaultValues(){return x},get _names(){return V},set _names(value){V=value},get _formState(){return i},get _options(){return r},set _options(value){r={...r,...value}}},subscribe:e=>(T.mount=!0,I={...I,...e.formState},ex({...e,formState:{...D,...e.formState}})),trigger:ey,register:eA,handleSubmit:eS,watch:(e,t)=>b(e)?N.state.subscribe({next:r=>"values"in r&&e(r.values||eu(void 0,t),r)}):eu(e,t,!0),setValue:ef,setValues:(e,t={})=>{let r=b(e)?e(k):e;if(!A(k,r)){for(let e of(k={...k,...r},V.mount))ec(e,v(r,e),t,!0);N.state.next({...i,name:void 0,type:void 0,values:k}),t.shouldValidate&&q()}},getValues:eg,reset:eP,resetField:(e,t={})=>{v(p,e)&&(y(t.defaultValue)?ef(e,l(v(x,e))):(ef(e,t.defaultValue),_(x,e,l(t.defaultValue))),t.keepTouched||O(i.touchedFields,e),t.keepDirty||(O(i.dirtyFields,e),i.isDirty=t.defaultValue?el(e,l(v(x,e))):el()),!t.keepError&&(O(i.errors,e),F.isValid&&q()),N.state.next({...i}))},resetDefaultValues:(e,t={})=>{if(x=l(e),!t.keepDirty){let e=L(x,k);i.dirtyFields=e,i.isDirty=!C(e)}t.keepIsValid||q(),N.state.next({...i,defaultValues:x})},clearErrors:eb,unregister:ew,setError:e_,setFocus:(e,t={})=>{let r=v(p,e),i=r&&r._f;if(i){let e=i.refs?i.refs[0]:i.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&b(e.select)&&e.select()})}},getFieldState:ev};return{...eM,formControl:eM}}(e);t.current={...i,formState:p}}let T=t.current.control;return T._options=e,x(()=>{let e=T._subscribe({formState:T._proxyFormState,callback:()=>k({...T._formState,defaultValues:T._defaultValues}),reRenderRoot:!0});return k(e=>({...e,isReady:!0})),T._formState.isReady=!0,e},[T]),i.useEffect(()=>T._disableForm(e.disabled),[T,e.disabled]),i.useEffect(()=>{e.mode&&(T._options.mode=e.mode),e.reValidateMode&&(T._options.reValidateMode=e.reValidateMode)},[T,e.mode,e.reValidateMode]),i.useEffect(()=>{e.errors&&(T._setErrors(e.errors),T._focusError())},[T,e.errors]),i.useEffect(()=>{e.shouldUnregister&&T._subjects.state.next({values:T._getWatch()})},[T,e.shouldUnregister]),i.useEffect(()=>{if(T._proxyFormState.isDirty){let e=T._getDirty();e!==p.isDirty&&T._subjects.state.next({isDirty:e})}},[T,p.isDirty]),i.useEffect(()=>{var t;e.values&&!A(e.values,r.current)?(T._reset(e.values,{keepFieldsRef:!0,...T._options.resetOptions}),(null==(t=T._options.resetOptions)?void 0:t.keepIsValid)||T._setValid(),r.current=e.values,k(e
1=>({...e}))):T._resetDefaultValues()},[T,e.values]),i.useEffect(()=>{T._state.mount||(T._setValid(),T._state.mount=!0),T._state.watch&&(T._state.watch=!1,T._subjects.state.next({...T._formState})),T._removeUnmounted()}),t.current.formState=i.useMemo(()=>((e,t,r,i=!0)=>{let n={};for(let s in e)Object.defineProperty(n,s,{get:()=>(t._proxyFormState[s]!==d.all&&(t._proxyFormState[s]=!i||d.all),r&&(r[s]=!0),e[s])});return n})(p,T),[T,p]),t.current}},2594:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Sofa",[["path",{d:"M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3",key:"1dgpiv"}],["path",{d:"M2 16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"xacw8m"}],["path",{d:"M4 18v2",key:"jwo5n2"}],["path",{d:"M20 18v2",key:"1ar1qi"}],["path",{d:"M12 4v9",key:"oqhhn3"}]])},2649:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])},2963:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]])},3011:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useMergedRef",{enumerable:!0,get:function(){return n}});let i=r(2115);function n(e,t){let r=(0,i.useRef)(null),n=(0,i.useRef)(null);return(0,i.useCallback)(i=>{if(null===i){let e=r.current;e&&(r.current=null,e());let t=n.current;t&&(n.current=null,t())}else e&&(r.current=s(e,i)),t&&(n.current=s(t,i))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3173:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},3455:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let i=r(8140)._(r(2115)),n=r(821),s=i.default.createContext(n.imageConfigDefault)},3614:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("PackageOpen",[["path",{d:"M12 22v-9",key:"x3hkom"}],["path",{d:"M15.17 2.21a1.67 1.67 0 0 1 1.63 0L21 4.57a1.93 1.93 0 0 1 0 3.36L8.82 14.79a1.655 1.655 0 0 1-1.64 0L3 12.43a1.93 1.93 0 0 1 0-3.36z",key:"2ntwy6"}],["path",{d:"M20 13v3.87a2.06 2.06 0 0 1-1.11 1.83l-6 3.08a1.93 1.93 0 0 1-1.78 0l-6-3.08A2.06 2.06 0 0 1 4 16.87V13",key:"1pmm1c"}],["path",{d:"M21 12.43a1.93 1.93 0 0 0 0-3.36L8.83 2.2a1.64 1.64 0 0 0-1.63 0L3 4.57a1.93 1.93 0 0 0 0 3.36l12.18 6.86a1.636 1.636 0 0 0 1.63 0z",key:"12ttoo"}]])},3779:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("HeartHandshake",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M12 5 9.04 7.96a2.17 2.17 0 0 0 0 3.08c.82.82 2.13.85 3 .07l2.07-1.9a2.82 2.82 0 0 1 3.79 0l2.96 2.66",key:"4oyue0"}],["path",{d:"m18 15-2-2",key:"60u0ii"}],["path",{d:"m15 18-2-2",key:"6p76be"}]])},4068:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("HardHat",[["path",{d:"M10 10V5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v5",key:"1p9q5i"}],["path",{d:"M14 6a6 6 0 0 1 6 6v3",key:"1hnv84"}],["path",{d:"M4 15v-3a6 6 0 0 1 6-6",key:"9ciidu"}],["rect",{x:"2",y:"15",width:"20",height:"4",rx:"1",key:"g3x8cw"}]])},4105:(e,t)=>{"use strict";function r(e){let{widthInt:t,heightInt:r,blurWidth:i,blurHeight:n,blurDataURL:s,objectFit:a}=e,o=i?40*i:t,l=n?40*n:r,u=o&&l?"viewBox='0 0 "+o+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3Cfe
1ColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+s+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},4294:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var i=r(2115);let n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var s={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let a=(0,i.forwardRef)((e,t)=>{let{color:r="currentColor",size:a=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:u="",children:d,iconNode:h,...c}=e;return(0,i.createElement)("svg",{ref:t,...s,width:a,height:a,stroke:r,strokeWidth:l?24*Number(o)/Number(a):o,className:n("lucide",u),...c},[...h.map(e=>{let[t,r]=e;return(0,i.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),o=(e,t)=>{let r=(0,i.forwardRef)((r,s)=>{let{className:o,...l}=r;return(0,i.createElement)(a,{ref:s,iconNode:t,className:n("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),o),...l})});return r.displayName="".concat(e),r}},4522:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]])},4652:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return o}});let i=r(8140),n=r(5040),s=r(1356),a=i._(r(1124));function o(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=s.Image},4841:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return m},defaultHead:function(){return h}});let i=r(8140),n=r(9417),s=r(5155),a=n._(r(2115)),o=i._(r(1262)),l=r(737),u=r(2073),d=r(861);function h(e){void 0===e&&(e=!1);let t=[(0,s.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,s.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function c(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===a.default.Fragment?e.concat(a.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(4781);let f=["name","httpEquiv","charSet","itemProp"];function p(e,t){let{inAmpMode:r}=t;return e.reduce(c,[]).reverse().concat(h(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,i={};return n=>{let s=!0,a=!1;if(n.key&&"number"!=typeof n.key&&n.key.indexOf("$")>0){a=!0;let t=n.key.slice(n.key.indexOf("$")+1);e.has(t)?s=!1:e.add(t)}switch(n.type){case"title":case"base":t.has(n.type)?s=!1:t.add(n.type);break;case"meta":for(let e=0,t=f.length;e<t;e++){let t=f[e];if(n.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?s=!1:r.add(t);else{let e=n.props[t],r=i[t]||new Set;("name"!==t||!a)&&r.has(e)?s=!1:(r.add(e),i[t]=r)}}}return s}}()).reverse().map((e,t)=>{let r=e.key||t;return a.default.cloneElement(e,{key:r})})}let m=function(e){let{children:t}=e,r=(0,a.useContext)(l.AmpStateContext),i=(0,a.useContext)(u.HeadManagerContext);return(0,s.jsx)(o.default,{reduceComponentsToState:p,headManager:i,inAmpMode:(0,d.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4879:(e,t,r)=>{"use strict";var i,n,s,a;let o;r.d(t,{YO:()=>eE,k5:()=>eC,ai:()=>eS,Ik:()=>eP,Yj:()=>eT}),function(e){e.assertEqual=e=>{},e.assertIs=function(e){},e.assertNever=function(e){throw Error()},e.arrayToEnum=e=>{let t={};for(let r of e)t[r]=r;return t},e.getValidEnumValues=t=>{let r=e.objectKeys(t).filter(e=>"number"!=typeof t[t[e]]),i={};for(let e of r)i[e]=t[e];return e.objectValues(i)},e.objectValues=t=>e.objectKeys(t).map(function(e){return t[e]}),e.objectKeys="function"==typeof Object.keys?e=>Object.keys(e):e=>{let t=[];for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t},e.find=(e,t)=>{for(let r of e)if(t(r))return r},e.isInteger="function"==typeof Number.isInteger?e=>Number.isInteger(e):e=>"number"==typeof e&&Number.isFinite(e)&&Math.floor(e)===e,e.joinValues=function(e,t=" | "){return e.map(e=>"string"==typeof e?`'${e}'`:e).join(t)},e.jsonStringifyReplacer=(e,t)=>"bigint"==typeof t?t.toString():t}(i||(i={})),(n||(n={})).mergeShapes=(e,t)=>({...e,...t});let l=i.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),u=e=>{switch(typeof e){case"undefined":return l.undefined;case"string":return l.string;case"number":return Number.isNaN(e)?l.nan:l.number;case"boolean":return l.boolean;case"function":return l.function;case"bigint":return l.bigint;case"symbol":return l.symbol;case"object":if(Array.isArray(e))return l.array;if(null===e)return l.null;if(e.then&&"function"==typeof e.then&&e.catch&&"function"==typeof e.catch)return l.promise;if("undefined"!=typeof Map&&e instanceof Map)return l.map;if("undefined"!=typeof Set&&e instanceof Set)return l.set;if("undefined"!=typeof Date&&e instanceof Date)return l.date;return l.object;default:return l.unknown}}
1,d=i.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class h extends Error{get errors(){return this.issues}constructor(e){super(),this.issues=[],this.addIssue=e=>{this.issues=[...this.issues,e]},this.addIssues=(e=[])=>{this.issues=[...this.issues,...e]};let t=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,t):this.__proto__=t,this.name="ZodError",this.issues=e}format(e){let t=e||function(e){return e.message},r={_errors:[]},i=e=>{for(let n of e.issues)if("invalid_union"===n.code)n.unionErrors.map(i);else if("invalid_return_type"===n.code)i(n.returnTypeError);else if("invalid_arguments"===n.code)i(n.argumentsError);else if(0===n.path.length)r._errors.push(t(n));else{let e=r,i=0;for(;i<n.path.length;){let r=n.path[i];i===n.path.length-1?(e[r]=e[r]||{_errors:[]},e[r]._errors.push(t(n))):e[r]=e[r]||{_errors:[]},e=e[r],i++}}};return i(this),r}static assert(e){if(!(e instanceof h))throw Error(`Not a ZodError: ${e}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,i.jsonStringifyReplacer,2)}get isEmpty(){return 0===this.issues.length}flatten(e=e=>e.message){let t={},r=[];for(let i of this.issues)if(i.path.length>0){let r=i.path[0];t[r]=t[r]||[],t[r].push(e(i))}else r.push(e(i));return{formErrors:r,fieldErrors:t}}get formErrors(){return this.flatten()}}h.create=e=>new h(e);let c=(e,t)=>{let r;switch(e.code){case d.invalid_type:r=e.received===l.undefined?"Required":`Expected ${e.expected}, received ${e.received}`;break;case d.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,i.jsonStringifyReplacer)}`;break;case d.unrecognized_keys:r=`Unrecognized key(s) in object: ${i.joinValues(e.keys,", ")}`;break;case d.invalid_union:r="Invalid input";break;case d.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${i.joinValues(e.options)}`;break;case d.invalid_enum_value:r=`Invalid enum value. Expected ${i.joinValues(e.options)}, received '${e.received}'`;break;case d.invalid_arguments:r="Invalid function arguments";break;case d.invalid_return_type:r="Invalid function return type";break;case d.invalid_date:r="Invalid date";break;case d.invalid_string:"object"==typeof e.validation?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,"number"==typeof e.validation.position&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:i.assertNever(e.validation):r="regex"!==e.validation?`Invalid ${e.validation}`:"Invalid";break;case d.too_small:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:"number"===e.type||"bigint"===e.type?`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:"date"===e.type?`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:"Invalid input";break;case d.too_big:r="array"===e.type?`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:"string"===e.type?`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:"number"===e.type?`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"bigint"===e.type?`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:"date"===e.type?`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:"Invalid input";break;case d.custom:r="Invalid input";break;case d.invalid_intersection_types:r="Intersection results could not be merged";break;case d.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case d.not_finite:r="Number must be finite";break;default:r=t.defaultError,i.assertNever(e)}return{message:r}};!function(e){e.errToObj=e=>"string"==typeof e?{message:e}:e||{},e.toString=e=>"string"==typeof e?e:e?.message}(s||(s={}));let f=e=>{let{data:t,path:r,errorMaps:i,issueData:n}=e,s=[...r,...n.path||[]],a={...n,path:s};if(void 0!==n.message)return{...n,path:s,message:n.message};let o="";for(let e of i.filter(e=>!!e).slice().reverse())o=e(a,{data:t,defaultError:o}).message;return{...n,path:s,message:o}};function p(e,t){let r=f({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,c,void 0].filter(e=>!!e)});e.common.issues.push(r)}class m{constructor(){this.value="valid"}dirty(){"valid"===this.value&&(this.value="dirty")}abort(){"aborted"!==this.value&&(this.value="aborted")}static mergeArray(e,t){let r=[];for(let i of t){if("aborted"===i.status)return y;"dirty"===i.status&&e.dirty(),r.push(i.value)}return{status:e.value,value:r}}static async mergeObjectAsync(e,t){let r=[];for(let e of t){let t=await e.key,i=await e.value;r.push({key:t,value:i})}return m.mergeObjectSync(e,r)}static mergeObjectSync(e,t){let r={};for(let i of t){let{key:t,value:n}=i;if("aborted"===t.status||"aborted"===n.status)return y;"dirty"===t.status&&e.dirty(),"dirty"===n.status&&e.dirty(),"__proto__"!==t.value&&(void 0!==n.value||i.alwaysSet)&&(r[t.value]=n.value)}return{status:e.value,value:r}}}let y=Object.freeze({status:"aborted"}),g=e=>({status:"dirty",value:e}),v=e=>
vendor: 27,931 bytes, line 1
1({status:"valid",value:e}),b=e=>"undefined"!=typeof Promise&&e instanceof Promise;class _{constructor(e,t,r,i){this._cachedPath=[],this.parent=e,this.data=t,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}let x=(e,t)=>{if("valid"===t.status)return{success:!0,data:t.value};if(!e.common.issues.length)throw Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let t=new h(e.common.issues);return this._error=t,this._error}}};function w(e){if(!e)return{};let{errorMap:t,invalid_type_error:r,required_error:i,description:n}=e;if(t&&(r||i))throw Error('Can\'t use "invalid_type_error" or "required_error" in conjunction with custom error map.');return t?{errorMap:t,description:n}:{errorMap:(t,n)=>{let{message:s}=e;return"invalid_enum_value"===t.code?{message:s??n.defaultError}:void 0===n.data?{message:s??i??n.defaultError}:"invalid_type"!==t.code?{message:n.defaultError}:{message:s??r??n.defaultError}},description:n}}class k{get description(){return this._def.description}_getType(e){return u(e.data)}_getOrReturnCtx(e,t){return t||{common:e.parent.common,data:e.data,parsedType:u(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}_processInputParams(e){return{status:new m,ctx:{common:e.parent.common,data:e.data,parsedType:u(e.data),schemaErrorMap:this._def.errorMap,path:e.path,parent:e.parent}}}_parseSync(e){let t=this._parse(e);if(b(t))throw Error("Synchronous parse encountered promise.");return t}_parseAsync(e){return Promise.resolve(this._parse(e))}parse(e,t){let r=this.safeParse(e,t);if(r.success)return r.data;throw r.error}safeParse(e,t){let r={common:{issues:[],async:t?.async??!1,contextualErrorMap:t?.errorMap},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:u(e)},i=this._parseSync({data:e,path:r.path,parent:r});return x(r,i)}"~validate"(e){let t={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:u(e)};if(!this["~standard"].async)try{let r=this._parseSync({data:e,path:[],parent:t});return"valid"===r.status?{value:r.value}:{issues:t.common.issues}}catch(e){e?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),t.common={issues:[],async:!0}}return this._parseAsync({data:e,path:[],parent:t}).then(e=>"valid"===e.status?{value:e.value}:{issues:t.common.issues})}async parseAsync(e,t){let r=await this.safeParseAsync(e,t);if(r.success)return r.data;throw r.error}async safeParseAsync(e,t){let r={common:{issues:[],contextualErrorMap:t?.errorMap,async:!0},path:t?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:e,parsedType:u(e)},i=this._parse({data:e,path:r.path,parent:r});return x(r,await (b(i)?i:Promise.resolve(i)))}refine(e,t){return this._refinement((r,i)=>{let n=e(r),s=()=>i.addIssue({code:d.custom,..."string"==typeof t||void 0===t?{message:t}:"function"==typeof t?t(r):t});return"undefined"!=typeof Promise&&n instanceof Promise?n.then(e=>!!e||(s(),!1)):!!n||(s(),!1)})}refinement(e,t){return this._refinement((r,i)=>!!e(r)||(i.addIssue("function"==typeof t?t(r,i):t),!1))}_refinement(e){return new ey({schema:this,typeName:a.ZodEffects,effect:{type:"refinement",refinement:e}})}superRefine(e){return this._refinement(e)}constructor(e){this.spa=this.safeParseAsync,this._def=e,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:e=>this["~validate"](e)}}optional(){return eg.create(this,this._def)}nullable(){return ev.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Q.create(this)}promise(){return em.create(this,this._def)}or(e){return et.create([this,e],this._def)}and(e){return en.create(this,e,this._def)}transform(e){return new ey({...w(this._def),schema:this,typeName:a.ZodEffects,effect:{type:"transform",transform:e}})}default(e){return new eb({...w(this._def),innerType:this,defaultValue:"function"==typeof e?e:()=>e,typeName:a.ZodDefault})}brand(){return new ew({typeName:a.ZodBranded,type:this,...w(this._def)})}catch(e){return new e_({...w(this._def),innerType:this,catchValue:"function"==typeof e?e:()=>e,typeName:a.ZodCatch})}describe(e){return new this.constructor({...this._def,description:e})}pipe(e){return ek.create(this,e)}readonly(){return eA.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}let A=/^c[^\s-]{8,}$/i,T=/^[0-9a-z]+$/,S=/^[0-9A-HJKMNP-TV-Z]{26}$/i,E=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,P=/^[a-z0-9_-]{21}$/i,C=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,M=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,R=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,O=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,V=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,j=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,L=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,D=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,F=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,I="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",B=RegExp(`^${I}$`);function N(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:null==e.precision&&(t=`${t}(\\.\\d+)?`);let r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${r}`}class U extends k{_parse(e){var t,r,n,s;let a;if(this._def.coerce&&(e.data=String(e.data)),this._getType(e)!==l.string){let t=this._getOrReturnCtx(e);return p(t,{code:d.invalid_type,expected:l.string,received:t.parsedType}),y}let u=new m;for(let l of this._def.checks)if("min"===l.kind)e.data.length<l.value&&(p(a=this._getOrReturnCtx(e,a),{code:d.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),u.dirty());else if("max"===l.kind)e.data.length>l.value&&(p(a=this._getOrReturnCtx(e,a),{code:d.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),u.dirty());else if("length"===l.kind){let t=e.data.length>l.value,r=e.data.length<l.value;(t||r)&&(a=this._getOrReturnCtx(e,a),t?p(a,{code:d.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):r&&p(a,{code:d.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),u.dirty())}else if("email"===l.kind)R.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"email",code:d.invalid_string,message:l.message}),u.dirty());else if("emoji"===l.kind)o||(o=RegExp("^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$","u")),o.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"emoji",code:d.invalid_string,message:l.message}),u.dirty());else if("uuid"===l.kind)E.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"uuid",code:d.invalid_string,message:l.message}),u.dirty());else if("nanoid"===l.kind)P.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"nanoid",code:d.invalid_string,message:l.message}),u.dirty());else if("cuid"===l.kind)A.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"cuid",code:d.invalid_string,message:l.message}),u.dirty());else if("cuid2"===l.kind)T.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"cuid2",code:d.invalid_string,message:l.message}),u.dirty());else if("ulid"===l.kind)S.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"ulid",code:d.invalid_string,message:l.message}),u.dirty());else if("url"===l.kind)try{new URL(e.data)}catch{p(a=this._getOrReturnCtx(e,a),{validation:"url",code:d.invalid_string,message:l.message}),u.dirty()}else"regex"===l.kind?(l.regex.lastIndex=0,l.regex.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"regex",code:d.invalid_string,message:l.message}),u.dirty())):"trim"===l.kind?e.data=e.data.trim():"includes"===l.kind?e.data.includes(l.value,l.position)||(p(a=this._getOrReturnCtx(e,a),{code:d.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),u.dirty()):"toLowerCase"===l.kind?e.data=e.data.toLowerCase():"toUpperCase"===l.kind?e.data=e.data.toUpperCase():"startsWith"===l.kind?e.data.startsWith(l.value)||(p(a=this._getOrReturnCtx(e,a),{code:d.invalid_string,validation:{startsWith:l.value},message:l.message}),u.dirty()):"endsWith"===l.kind?e.data.endsWith(l.value)||(p(a=this._getOrReturnCtx(e,a),{code:d.invalid_string,validation:{endsWith:l.value},message:l.message}),u.dirty()):"datetime"===l.kind?(function(e){let t=`${I}T${N(e)}`,r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${r.join("|")})`,RegExp(`^${t}$`)})(l).test(e.data)||(p(a=this._getOrReturnCtx(e,a),{code:d.invalid_string,validation:"datetime",message:l.message}),u.dirty()):"date"===l.kind?B.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{code:d.invalid_string,validation:"date",message:l.message}),u.dirty()):"time"===l.kind?RegExp(`^${N(l)}$`).test(e.data)||(p(a=this._getOrReturnCtx(e,a),{code:d.invalid_string,validation:"time",message:l.message}),u.dirty()):"duration"===l.kind?M.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"duration",code:d.invalid_string,message:l.message}),u.dirty()):"ip"===l.kind?(t=e.data,!(("v4"===(r=l.version)||!r)&&O.test(t)||("v6"===r||!r)&&j.test(t))&&1&&(p(a=this._getOrReturnCtx(e,a),{validation:"ip",code:d.invalid_string,message:l.message}),u.dirty())):"jwt"===l.kind?!function(e,t){if(!C.test(e))return!1;try{let[r]=e.split(".");if(!r)return!1;let i=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),n=JSON.parse(atob(i));if("object"!=typeof n||null===n||"typ"in n&&n?.typ!=="JWT"||!n.alg||t&&n.alg!==t)return!1;return!0}catch{return!1}}(e.data,l.alg)&&(p(a=this._getOrReturnCtx(e,a),{validation:"jwt",code:d.invalid_string,message:l.message}),u.dirty()):"cidr"===l.kind?(n=e.data,!(("v4"===(s=l.version)||!s)&&V.test(n)||("v6"===s||!s)&&L.test(n))&&1&&(p(a=this._getOrReturnCtx(e,a),{validation:"cidr",code:d.invalid_string,message:l.message}),u.dirty())):"base64"===l.kind?D.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"base64",code:d.invalid_string,message:l.message}),u.dirty()):"base64url"===l.kind?F.test(e.data)||(p(a=this._getOrReturnCtx(e,a),{validation:"base64url",code:d.invalid_string,message:l.message}),u.dirty()):i.assertNever(l);return{status:u.value,value:e.data}}_regex(e,t,r){return this.refinement(t=>e.test(t),{validation:t,code:d.invalid_string,...s.errToObj(r)})}_addCheck(e){return new U({...this._def,checks:[...this._def.checks,e]})}email(e){return this._addCheck({kind:"email",...s.errToObj(e)})}url(e){return this._addCheck({kind:"url",...s.errToObj(e)})}emoji(e){return this._addCheck({kind:"emoji",...s.errToObj(e)})}uuid(e){return this._addCheck({kind:"uuid",...s.errToObj(e)})}nanoid(e){return this._addCheck({kind:"nanoid",...s.errToObj(e)})}cuid(e){return this._addCheck({kind:"cuid",...s.errToObj(e)})}cuid2(e){return this._addCheck({kind:"cuid2",...s.errToObj(e)})}ulid(e){return this._addCheck({kind:"ulid",...s.errToObj(e)})}base64(e){return this._addCheck({kind:"base64",...s.errToObj(e)})}base64url(e){return this._addCheck({kind:"base64url",...s.errToObj(e)})}jwt(e){return this._addCheck({kind:"jwt",...s.errToObj(e)})}ip(e){return this._addCheck({kind:"ip",...s.errToObj(e)})}cidr(e){return this._addCheck({kind:"cidr",...s.errToObj(e)})}datetime(e){return"string"==typeof e?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:e}):this._addCheck({kind:"datetime",precision:void 0===e?.precision?null:e?.precision,offset:e?.offset??!1,local:e?.local??!1,...s.errToObj(e?.message)})}date(e){return this._addCheck({kind:"date",message:e})}time(e){return"string"==typeof e?this._addCheck({kind:"time",precision:null,message:e}):this._addCheck({kind:"time",precision:void 0===e?.precision?null:e?.precision,...s.errToObj(e?.message)})}duration(e){return this._addCheck({kind:"duration",...s.errToObj(e)})}regex(e,t){return this._addCheck({kind:"regex",regex:e,...s.errToObj(t)})}includes(e,t){return this._addCheck({kind:"includes",value:e,position:t?.position,...s.errToObj(t?.message)})}startsWith(e,t){return this._addCheck({kind:"startsWith",value:e,...s.errToObj(t)})}endsWith(e,t){return this._addCheck({kind:"endsWith",value:e,...s.errToObj(t)})}min(e,t){return this._addCheck({kind:"min",value:e,...s.errToObj(t)})}max(e,t){return this._addCheck({kind:"max",value:e,...s.errToObj(t)})}length(e,t){return this._addCheck({kind:"length",value:e,...s.errToObj(t)})}nonempty(e){return this.min(1,s.errToObj(e))}trim(){return new U({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new U({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(e=>"datetime"===e.kind)}get isDate(){return!!this._def.checks.find(e=>"date"===e.kind)}get isTime(){return!!this._def.checks.find(e=>"time"===e.kind)}get isDuration(){return!!this._def.checks.find(e=>"duration"===e.kind)}get isEmail(){return!!this._def.checks.find(e=>"email"===e.kind)}get isURL(){return!!this._def.checks.find(e=>"url"===e.kind)}get isEmoji(){return!!this._def.checks.find(e=>"emoji"===e.kind)}get isUUID(){return!!this._def.checks.find(e=>"uuid"===e.kind)}get isNANOID(){return!!this._def.checks.find(e=>"nanoid"===e.kind)}get isCUID(){return!!this._def.checks.find(e=>"cuid"===e.kind)}get isCUID2(){return!!this._def.checks.find(e=>"cuid2"===e.kind)}get isULID(){return!!this._def.checks.find(e=>"ulid"===e.kind)}get isIP(){return!!this._def.checks.find(e=>"ip"===e.kind)}get isCIDR(){return!!this._def.checks.find(e=>"cidr"===e.kind)}get isBase64(){return!!this._def.checks.find(e=>"base64"===e.kind)}get isBase64url(){return!!this._def.checks.find(e=>"base64url"===e.kind)}get minLength(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxLength(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}U.create=e=>new U({checks:[],typeName:a.ZodString,coerce:e?.coerce??!1,...w(e)});class $ extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(e){let t;if(this._def.coerce&&(e.data=Number(e.data)),this._getType(e)!==l.number){let t=this._getOrReturnCtx(e);return p(t,{code:d.invalid_type,expected:l.number,received:t.parsedType}),y}let r=new m;for(let n of this._def.checks)"int"===n.kind?i.isInteger(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:d.invalid_type,expected:"integer",received:"float",message:n.message}),r.dirty()):"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:d.too_small,minimum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:d.too_big,maximum:n.value,type:"number",inclusive:n.inclusive,exact:!1,message:n.message}),r.dirty()):"multipleOf"===n.kind?0!==function(e,t){let r=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,n=r>i?r:i;return Number.parseInt(e.toFixed(n).replace(".",""))%Number.parseInt(t.toFixed(n).replace(".",""))/10**n}(e.data,n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:d.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):"finite"===n.kind?Number.isFinite(e.data)||(p(t=this._getOrReturnCtx(e,t),{code:d.not_finite,message:n.message}),r.dirty()):i.assertNever(n);return{status:r.value,value:e.data}}gte(e,t){return this.setLimit("min",e,!0,s.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.toString(t))}setLimit(e,t,r,i){return new $({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:s.toString(i)}]})}_addCheck(e){return new $({...this._def,checks:[...this._def.checks,e]})}int(e){return this._addCheck({kind:"int",message:s.toString(e)})}positive(e){return this._addCheck({kind:"min",value:0,inclusive:!1,message:s.toString(e)})}negative(e){return this._addCheck({kind:"max",value:0,inclusive:!1,message:s.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:0,inclusive:!0,message:s.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:0,inclusive:!0,message:s.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.toString(t)})}finite(e){return this._addCheck({kind:"finite",message:s.toString(e)})}safe(e){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:s.toString(e)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:s.toString(e)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}get isInt(){return!!this._def.checks.find(e=>"int"===e.kind||"multipleOf"===e.kind&&i.isInteger(e.value))}get isFinite(){let e=null,t=null;for(let r of this._def.checks)if("finite"===r.kind||"int"===r.kind||"multipleOf"===r.kind)return!0;else"min"===r.kind?(null===t||r.value>t)&&(t=r.value):"max"===r.kind&&(null===e||r.value<e)&&(e=r.value);return Number.isFinite(t)&&Number.isFinite(e)}}$.create=e=>new $({checks:[],typeName:a.ZodNumber,coerce:e?.coerce||!1,...w(e)});class z extends k{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(e){let t;if(this._def.coerce)try{e.data=BigInt(e.data)}catch{return this._getInvalidInput(e)}if(this._getType(e)!==l.bigint)return this._getInvalidInput(e);let r=new m;for(let n of this._def.checks)"min"===n.kind?(n.inclusive?e.data<n.value:e.data<=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:d.too_small,type:"bigint",minimum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"max"===n.kind?(n.inclusive?e.data>n.value:e.data>=n.value)&&(p(t=this._getOrReturnCtx(e,t),{code:d.too_big,type:"bigint",maximum:n.value,inclusive:n.inclusive,message:n.message}),r.dirty()):"multipleOf"===n.kind?e.data%n.value!==BigInt(0)&&(p(t=this._getOrReturnCtx(e,t),{code:d.not_multiple_of,multipleOf:n.value,message:n.message}),r.dirty()):i.assertNever(n);return{status:r.value,value:e.data}}_getInvalidInput(e){let t=this._getOrReturnCtx(e);return p(t,{code:d.invalid_type,expected:l.bigint,received:t.parsedType}),y}gte(e,t){return this.setLimit("min",e,!0,s.toString(t))}gt(e,t){return this.setLimit("min",e,!1,s.toString(t))}lte(e,t){return this.setLimit("max",e,!0,s.toString(t))}lt(e,t){return this.setLimit("max",e,!1,s.toString(t))}setLimit(e,t,r,i){return new z({...this._def,checks:[...this._def.checks,{kind:e,value:t,inclusive:r,message:s.toString(i)}]})}_addCheck(e){return new z({...this._def,checks:[...this._def.checks,e]})}positive(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:s.toString(e)})}negative(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:s.toString(e)})}nonpositive(e){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:s.toString(e)})}nonnegative(e){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:s.toString(e)})}multipleOf(e,t){return this._addCheck({kind:"multipleOf",value:e,message:s.toString(t)})}get minValue(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return e}get maxValue(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return e}}z.create=e=>new z({checks:[],typeName:a.ZodBigInt,coerce:e?.coerce??!1,...w(e)});class Z extends k{_parse(e){if(this._def.coerce&&(e.data=!!e.data),this._getType(e)!==l.boolean){let t=this._getOrReturnCtx(e);return p(t,{code:d.invalid_type,expected:l.boolean,received:t.parsedType}),y}return v(e.data)}}Z.create=e=>new Z({typeName:a.ZodBoolean,coerce:e?.coerce||!1,...w(e)});class q extends k{_parse(e){let t;if(this._def.coerce&&(e.data=new Date(e.data)),this._getType(e)!==l.date){let t=this._getOrReturnCtx(e);return p(t,{code:d.invalid_type,expected:l.date,received:t.parsedType}),y}if(Number.isNaN(e.data.getTime()))return p(this._getOrReturnCtx(e),{code:d.invalid_date}),y;let r=new m;for(let n of this._def.checks)"min"===n.kind?e.data.getTime()<n.value&&(p(t=this._getOrReturnCtx(e,t),{code:d.too_small,message:n.message,inclusive:!0,exact:!1,minimum:n.value,type:"date"}),r.dirty()):"max"===n.kind?e.data.getTime()>n.value&&(p(t=this._getOrReturnCtx(e,t),{code:d.too_big,message:n.message,inclusive:!0,exact:!1,maximum:n.value,type:"date"}),r.dirty()):i.assertNever(n);return{status:r.value,value:new Date(e.data.getTime())}}_addCheck(e){return new q({...this._def,checks:[...this._def.checks,e]})}min(e,t){return this._addCheck({kind:"min",value:e.getTime(),message:s.toString(t)})}max(e,t){return this._addCheck({kind:"max",value:e.getTime(),message:s.toString(t)})}get minDate(){let e=null;for(let t of this._def.checks)"min"===t.kind&&(null===e||t.value>e)&&(e=t.value);return null!=e?new Date(e):null}get maxDate(){let e=null;for(let t of this._def.checks)"max"===t.kind&&(null===e||t.value<e)&&(e=t.value);return null!=e?new Date(e):null}}q.create=e=>new q({checks:[],coerce:e?.coerce||!1,typeName:a.ZodDate,...w(e)});class W extends k{_parse(e){if(this._getType(e)!==l.symbol){let t=this._getOrReturnCtx(e);return p(t,{code:d.invalid_type,expected:l.symbol,received:t.parsedType}),y}return v(e.data)}}W.create=e=>new W({typeName:a.ZodSymbol,...w(e)});class H extends k{_parse(e){if(this._getType(e)!==l.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:d.invalid_type,expected:l.undefined,received:t.parsedType}),y}return v(e.data)}}H.create=e=>new H({typeName:a.ZodUndefined,...w(e)});class K extends k{_parse(e){if(this._getType(e)!==l.null){let t=this._getOrReturnCtx(e);return p(t,{code:d.invalid_type,expected:l.null,received:t.parsedType}),y}return v(e.data)}}K.create=e=>new K({typeName:a.ZodNull,...w(e)});class Y extends k{constructor(){super(...arguments),this._any=!0}_parse(e){return v(e.data)}}Y.create=e=>new Y({typeName:a.ZodAny,...w(e)});class X extends k{constructor(){super(...arguments),this._unknown=!0}_parse(e){return v(e.data)}}X.create=e=>new X({typeName:a.ZodUnknown,...w(e)});class G extends k{_parse(e){let t=this._getOrReturnCtx(e);return p(t,{code:d.invalid_type,expected:l.never,received:t.parsedType}),y}}G.create=e=>new G({typeName:a.ZodNever,...w(e)});class J extends k{_parse(e){if(this._getType(e)!==l.undefined){let t=this._getOrReturnCtx(e);return p(t,{code:d.invalid_type,expected:l.void,received:t.parsedType}),y}return v(e.data)}}J.create=e=>new J({typeName:a.ZodVoid,...w(e)});class Q extends k{_parse(e){let{ctx:t,status:r}=this._processInputParams(e),i=this._def;if(t.parsedType!==l.array)return p(t,{code:d.invalid_type,expected:l.array,received:t.parsedType}),y;if(null!==i.exactLength){let e=t.data.length>i.exactLength.value,n=t.data.length<i.exactLength.value;(e||n)&&(p(t,{code:e?d.too_big:d.too_small,minimum:n?i.exactLength.value:void 0,maximum:e?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(null!==i.minLength&&t.data.length<i.minLength.value&&(p(t,{code:d.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),null!==i.maxLength&&t.data.length>i.maxLength.value&&(p(t,{code:d.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),t.common.async)return Promise.all([...t.data].map((e,r)=>i.type._parseAsync(new _(t,e,t.path,r)))).then(e=>m.mergeArray(r,e));let n=[...t.data].map((e,r)=>i.type._parseSync(new _(t,e,t.path,r)));return m.mergeArray(r,n)}get element(){return this._def.type}min(e,t){return new Q({...this._def,minLength:{value:e,message:s.toString(t)}})}max(e,t){return new Q({...this._def,maxLength:{value:e,message:s.toString(t)}})}length(e,t){return new Q({...this._def,exactLength:{value:e,message:s.toString(t)}})}nonempty(e){return this.min(1,e)}}Q.create=(e,t)=>new Q({type:e,minLength:null,maxLength:null,exactLength:null,typeName:a.ZodArray,...w(t)});class ee extends k{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(null!==this._cached)return this._cached;let e=this._def.shape(),t=i.objectKeys(e);return this._cached={shape:e,keys:t},this._cached}_parse(e){if(this._getType(e)!==l.object){let t=this._getOrReturnCtx(e);return p(t,{code:d.invalid_type,expected:l.object,received:t.parsedType}),y}let{status:t,ctx:r}=this._processInputParams(e),{shape:i,keys:n}=this._getCached(),s=[];if(!(this._def.catchall instanceof G&&"strip"===this._def.unknownKeys))for(let e in r.data)n.includes(e)||s.push(e);let a=[];for(let e of n){let t=i[e],n=r.data[e];a.push({key:{status:"valid",value:e},value:t._parse(new _(r,n,r.path,e)),alwaysSet:e in r.data})}if(this._def.catchall instanceof G){let e=this._def.unknownKeys;
1if("passthrough"===e)for(let e of s)a.push({key:{status:"valid",value:e},value:{status:"valid",value:r.data[e]}});else if("strict"===e)s.length>0&&(p(r,{code:d.unrecognized_keys,keys:s}),t.dirty());else if("strip"===e);else throw Error("Internal ZodObject error: invalid unknownKeys value.")}else{let e=this._def.catchall;for(let t of s){let i=r.data[t];a.push({key:{status:"valid",value:t},value:e._parse(new _(r,i,r.path,t)),alwaysSet:t in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let e=[];for(let t of a){let r=await t.key,i=await t.value;e.push({key:r,value:i,alwaysSet:t.alwaysSet})}return e}).then(e=>m.mergeObjectSync(t,e)):m.mergeObjectSync(t,a)}get shape(){return this._def.shape()}strict(e){return s.errToObj,new ee({...this._def,unknownKeys:"strict",...void 0!==e?{errorMap:(t,r)=>{let i=this._def.errorMap?.(t,r).message??r.defaultError;return"unrecognized_keys"===t.code?{message:s.errToObj(e).message??i}:{message:i}}}:{}})}strip(){return new ee({...this._def,unknownKeys:"strip"})}passthrough(){return new ee({...this._def,unknownKeys:"passthrough"})}extend(e){return new ee({...this._def,shape:()=>({...this._def.shape(),...e})})}merge(e){return new ee({unknownKeys:e._def.unknownKeys,catchall:e._def.catchall,shape:()=>({...this._def.shape(),...e._def.shape()}),typeName:a.ZodObject})}setKey(e,t){return this.augment({[e]:t})}catchall(e){return new ee({...this._def,catchall:e})}pick(e){let t={};for(let r of i.objectKeys(e))e[r]&&this.shape[r]&&(t[r]=this.shape[r]);return new ee({...this._def,shape:()=>t})}omit(e){let t={};for(let r of i.objectKeys(this.shape))e[r]||(t[r]=this.shape[r]);return new ee({...this._def,shape:()=>t})}deepPartial(){return function e(t){if(t instanceof ee){let r={};for(let i in t.shape){let n=t.shape[i];r[i]=eg.create(e(n))}return new ee({...t._def,shape:()=>r})}if(t instanceof Q)return new Q({...t._def,type:e(t.element)});if(t instanceof eg)return eg.create(e(t.unwrap()));if(t instanceof ev)return ev.create(e(t.unwrap()));if(t instanceof es)return es.create(t.items.map(t=>e(t)));else return t}(this)}partial(e){let t={};for(let r of i.objectKeys(this.shape)){let i=this.shape[r];e&&!e[r]?t[r]=i:t[r]=i.optional()}return new ee({...this._def,shape:()=>t})}required(e){let t={};for(let r of i.objectKeys(this.shape))if(e&&!e[r])t[r]=this.shape[r];else{let e=this.shape[r];for(;e instanceof eg;)e=e._def.innerType;t[r]=e}return new ee({...this._def,shape:()=>t})}keyof(){return ec(i.objectKeys(this.shape))}}ee.create=(e,t)=>new ee({shape:()=>e,unknownKeys:"strip",catchall:G.create(),typeName:a.ZodObject,...w(t)}),ee.strictCreate=(e,t)=>new ee({shape:()=>e,unknownKeys:"strict",catchall:G.create(),typeName:a.ZodObject,...w(t)}),ee.lazycreate=(e,t)=>new ee({shape:e,unknownKeys:"strip",catchall:G.create(),typeName:a.ZodObject,...w(t)});class et extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=this._def.options;if(t.common.async)return Promise.all(r.map(async e=>{let r={...t,common:{...t.common,issues:[]},parent:null};return{result:await e._parseAsync({data:t.data,path:t.path,parent:r}),ctx:r}})).then(function(e){for(let t of e)if("valid"===t.result.status)return t.result;for(let r of e)if("dirty"===r.result.status)return t.common.issues.push(...r.ctx.common.issues),r.result;let r=e.map(e=>new h(e.ctx.common.issues));return p(t,{code:d.invalid_union,unionErrors:r}),y});{let e,i=[];for(let n of r){let r={...t,common:{...t.common,issues:[]},parent:null},s=n._parseSync({data:t.data,path:t.path,parent:r});if("valid"===s.status)return s;"dirty"!==s.status||e||(e={result:s,ctx:r}),r.common.issues.length&&i.push(r.common.issues)}if(e)return t.common.issues.push(...e.ctx.common.issues),e.result;let n=i.map(e=>new h(e));return p(t,{code:d.invalid_union,unionErrors:n}),y}}get options(){return this._def.options}}et.create=(e,t)=>new et({options:e,typeName:a.ZodUnion,...w(t)});let er=e=>{if(e instanceof ed)return er(e.schema);if(e instanceof ey)return er(e.innerType());if(e instanceof eh)return[e.value];if(e instanceof ef)return e.options;if(e instanceof ep)return i.objectValues(e.enum);else if(e instanceof eb)return er(e._def.innerType);else if(e instanceof H)return[void 0];else if(e instanceof K)return[null];else if(e instanceof eg)return[void 0,...er(e.unwrap())];else if(e instanceof ev)return[null,...er(e.unwrap())];else if(e instanceof ew)return er(e.unwrap());else if(e instanceof eA)return er(e.unwrap());else if(e instanceof e_)return er(e._def.innerType);else return[]};class ei extends k{_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.object)return p(t,{code:d.invalid_type,expected:l.object,received:t.parsedType}),y;let r=this.discriminator,i=t.data[r],n=this.optionsMap.get(i);return n?t.common.async?n._parseAsync({data:t.data,path:t.path,parent:t}):n._parseSync({data:t.data,path:t.path,parent:t}):(p(t,{code:d.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),y)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(e,t,r){let i=new Map;for(let r of t){let t=er(r.shape[e]);if(!t.length)throw Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);for(let n of t){if(i.has(n))throw Error(`Discriminator property ${String(e)} has duplicate value ${String(n)}`);i.set(n,r)}}return new ei({typeName:a.ZodDiscriminatedUnion,discriminator:e,options:t,optionsMap:i,...w(r)})}}class en extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=(e,n)=>{if("aborted"===e.status||"aborted"===n.status)return y;let s=function e(t,r){let n=u(t),s=u(r);if(t===r)return{valid:!0,data:t};if(n===l.object&&s===l.object){let n=i.objectKeys(r),s=i.objectKeys(t).filter(e=>-1!==n.indexOf(e)),a={...t,...r};for(let i of s){let n=e(t[i],r[i]);if(!n.valid)return{valid:!1};a[i]=n.data}return{valid:!0,data:a}}if(n===l.array&&s===l.array){if(t.length!==r.length)return{valid:!1};let i=[];for(let n=0;n<t.length;n++){let s=e(t[n],r[n]);if(!s.valid)return{valid:!1};i.push(s.data)}return{valid:!0,data:i}}if(n===l.date&&s===l.date&&+t==+r)return{valid:!0,data:t};return{valid:!1}}(e.value,n.value);return s.valid?(("dirty"===e.status||"dirty"===n.status)&&t.dirty(),{status:t.value,value:s.data}):(p(r,{code:d.invalid_intersection_types}),y)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([e,t])=>n(e,t)):n(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}en.create=(e,t,r)=>new en({left:e,right:t,typeName:a.ZodIntersection,...w(r)});class es extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.array)return p(r,{code:d.invalid_type,expected:l.array,received:r.parsedType}),y;if(r.data.length<this._def.items.length)return p(r,{code:d.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),y;!this._def.rest&&r.data.length>this._def.items.length&&(p(r,{code:d.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),t.dirty());let i=[...r.data].map((e,t)=>{let i=this._def.items[t]||this._def.rest;return i?i._parse(new _(r,e,r.path,t)):null}).filter(e=>!!e);return r.common.async?Promise.all(i).then(e=>m.mergeArray(t,e)):m.mergeArray(t,i)}get items(){return this._def.items}rest(e){return new es({...this._def,rest:e})}}es.create=(e,t)=>
1{if(!Array.isArray(e))throw Error("You must pass an array of schemas to z.tuple([ ... ])");return new es({items:e,typeName:a.ZodTuple,rest:null,...w(t)})};class ea extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.object)return p(r,{code:d.invalid_type,expected:l.object,received:r.parsedType}),y;let i=[],n=this._def.keyType,s=this._def.valueType;for(let e in r.data)i.push({key:n._parse(new _(r,e,r.path,e)),value:s._parse(new _(r,r.data[e],r.path,e)),alwaysSet:e in r.data});return r.common.async?m.mergeObjectAsync(t,i):m.mergeObjectSync(t,i)}get element(){return this._def.valueType}static create(e,t,r){return new ea(t instanceof k?{keyType:e,valueType:t,typeName:a.ZodRecord,...w(r)}:{keyType:U.create(),valueType:e,typeName:a.ZodRecord,...w(t)})}}class eo extends k{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.map)return p(r,{code:d.invalid_type,expected:l.map,received:r.parsedType}),y;let i=this._def.keyType,n=this._def.valueType,s=[...r.data.entries()].map(([e,t],s)=>({key:i._parse(new _(r,e,r.path,[s,"key"])),value:n._parse(new _(r,t,r.path,[s,"value"]))}));if(r.common.async){let e=new Map;return Promise.resolve().then(async()=>{for(let r of s){let i=await r.key,n=await r.value;if("aborted"===i.status||"aborted"===n.status)return y;("dirty"===i.status||"dirty"===n.status)&&t.dirty(),e.set(i.value,n.value)}return{status:t.value,value:e}})}{let e=new Map;for(let r of s){let i=r.key,n=r.value;if("aborted"===i.status||"aborted"===n.status)return y;("dirty"===i.status||"dirty"===n.status)&&t.dirty(),e.set(i.value,n.value)}return{status:t.value,value:e}}}}eo.create=(e,t,r)=>new eo({valueType:t,keyType:e,typeName:a.ZodMap,...w(r)});class el extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.parsedType!==l.set)return p(r,{code:d.invalid_type,expected:l.set,received:r.parsedType}),y;let i=this._def;null!==i.minSize&&r.data.size<i.minSize.value&&(p(r,{code:d.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),t.dirty()),null!==i.maxSize&&r.data.size>i.maxSize.value&&(p(r,{code:d.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),t.dirty());let n=this._def.valueType;function s(e){let r=new Set;for(let i of e){if("aborted"===i.status)return y;"dirty"===i.status&&t.dirty(),r.add(i.value)}return{status:t.value,value:r}}let a=[...r.data.values()].map((e,t)=>n._parse(new _(r,e,r.path,t)));return r.common.async?Promise.all(a).then(e=>s(e)):s(a)}min(e,t){return new el({...this._def,minSize:{value:e,message:s.toString(t)}})}max(e,t){return new el({...this._def,maxSize:{value:e,message:s.toString(t)}})}size(e,t){return this.min(e,t).max(e,t)}nonempty(e){return this.min(1,e)}}el.create=(e,t)=>new el({valueType:e,minSize:null,maxSize:null,typeName:a.ZodSet,...w(t)});class eu extends k{constructor(){super(...arguments),this.validate=this.implement}_parse(e){let{ctx:t}=this._processInputParams(e);if(t.parsedType!==l.function)return p(t,{code:d.invalid_type,expected:l.function,received:t.parsedType}),y;function r(e,r){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c,c].filter(e=>!!e),issueData:{code:d.invalid_arguments,argumentsError:r}})}function i(e,r){return f({data:e,path:t.path,errorMaps:[t.common.contextualErrorMap,t.schemaErrorMap,c,c].filter(e=>!!e),issueData:{code:d.invalid_return_type,returnTypeError:r}})}let n={errorMap:t.common.contextualErrorMap},s=t.data;if(this._def.returns instanceof em){let e=this;return v(async function(...t){let a=new h([]),o=await e._def.args.parseAsync(t,n).catch(e=>{throw a.addIssue(r(t,e)),a}),l=await Reflect.apply(s,this,o);return await e._def.returns._def.type.parseAsync(l,n).catch(e=>{throw a.addIssue(i(l,e)),a})})}{let e=this;return v(function(...t){let a=e._def.args.safeParse(t,n);if(!a.success)throw new h([r(t,a.error)]);let o=Reflect.apply(s,this,a.data),l=e._def.returns.safeParse(o,n);if(!l.success)throw new h([i(o,l.error)]);return l.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...e){return new eu({...this._def,args:es.create(e).rest(X.create())})}returns(e){return new eu({...this._def,returns:e})}implement(e){return this.parse(e)}strictImplement(e){return this.parse(e)}static create(e,t,r){return new eu({args:e||es.create([]).rest(X.create()),returns:t||X.create(),typeName:a.ZodFunction,...w(r)})}}class ed extends k{get schema(){return this._def.getter()}_parse(e){let{ctx:t}=this._processInputParams(e);return this._def.getter()._parse({data:t.data,path:t.path,parent:t})}}ed.create=(e,t)=>
vendor: 4,290 bytes, line 1
1new ed({getter:e,typeName:a.ZodLazy,...w(t)});class eh extends k{_parse(e){if(e.data!==this._def.value){let t=this._getOrReturnCtx(e);return p(t,{received:t.data,code:d.invalid_literal,expected:this._def.value}),y}return{status:"valid",value:e.data}}get value(){return this._def.value}}function ec(e,t){return new ef({values:e,typeName:a.ZodEnum,...w(t)})}eh.create=(e,t)=>new eh({value:e,typeName:a.ZodLiteral,...w(t)});class ef extends k{_parse(e){if("string"!=typeof e.data){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{expected:i.joinValues(r),received:t.parsedType,code:d.invalid_type}),y}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(e.data)){let t=this._getOrReturnCtx(e),r=this._def.values;return p(t,{received:t.data,code:d.invalid_enum_value,options:r}),y}return v(e.data)}get options(){return this._def.values}get enum(){let e={};for(let t of this._def.values)e[t]=t;return e}get Values(){let e={};for(let t of this._def.values)e[t]=t;return e}get Enum(){let e={};for(let t of this._def.values)e[t]=t;return e}extract(e,t=this._def){return ef.create(e,{...this._def,...t})}exclude(e,t=this._def){return ef.create(this.options.filter(t=>!e.includes(t)),{...this._def,...t})}}ef.create=ec;class ep extends k{_parse(e){let t=i.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(e);if(r.parsedType!==l.string&&r.parsedType!==l.number){let e=i.objectValues(t);return p(r,{expected:i.joinValues(e),received:r.parsedType,code:d.invalid_type}),y}if(this._cache||(this._cache=new Set(i.getValidEnumValues(this._def.values))),!this._cache.has(e.data)){let e=i.objectValues(t);return p(r,{received:r.data,code:d.invalid_enum_value,options:e}),y}return v(e.data)}get enum(){return this._def.values}}ep.create=(e,t)=>new ep({values:e,typeName:a.ZodNativeEnum,...w(t)});class em extends k{unwrap(){return this._def.type}_parse(e){let{ctx:t}=this._processInputParams(e);return t.parsedType!==l.promise&&!1===t.common.async?(p(t,{code:d.invalid_type,expected:l.promise,received:t.parsedType}),y):v((t.parsedType===l.promise?t.data:Promise.resolve(t.data)).then(e=>this._def.type.parseAsync(e,{path:t.path,errorMap:t.common.contextualErrorMap})))}}em.create=(e,t)=>new em({type:e,typeName:a.ZodPromise,...w(t)});class ey extends k{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===a.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(e){let{status:t,ctx:r}=this._processInputParams(e),n=this._def.effect||null,s={addIssue:e=>{p(r,e),e.fatal?t.abort():t.dirty()},get path(){return r.path}};if(s.addIssue=s.addIssue.bind(s),"preprocess"===n.type){let e=n.transform(r.data,s);if(r.common.async)return Promise.resolve(e).then(async e=>{if("aborted"===t.value)return y;let i=await this._def.schema._parseAsync({data:e,path:r.path,parent:r});return"aborted"===i.status?y:"dirty"===i.status||"dirty"===t.value?g(i.value):i});{if("aborted"===t.value)return y;let i=this._def.schema._parseSync({data:e,path:r.path,parent:r});return"aborted"===i.status?y:"dirty"===i.status||"dirty"===t.value?g(i.value):i}}if("refinement"===n.type){let e=e=>{let t=n.refinement(e,s);if(r.common.async)return Promise.resolve(t);if(t instanceof Promise)throw Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return e};if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(r=>"aborted"===r.status?y:("dirty"===r.status&&t.dirty(),e(r.value).then(()=>({status:t.value,value:r.value}))));{let i=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===i.status?y:("dirty"===i.status&&t.dirty(),e(i.value),{status:t.value,value:i.value})}}if("transform"===n.type)if(!1!==r.common.async)return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(e=>"valid"!==e.status?y:Promise.resolve(n.transform(e.value,s)).then(e=>({status:t.value,value:e})));else{let e=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if("valid"!==e.status)return y;let i=n.transform(e.value,s);if(i instanceof Promise)throw Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:t.value,value:i}}i.assertNever(n)}}ey.create=(e,t,r)=>
1new ey({schema:e,typeName:a.ZodEffects,effect:t,...w(r)}),ey.createWithPreprocess=(e,t,r)=>new ey({schema:t,effect:{type:"preprocess",transform:e},typeName:a.ZodEffects,...w(r)});class eg extends k{_parse(e){return this._getType(e)===l.undefined?v(void 0):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}eg.create=(e,t)=>new eg({innerType:e,typeName:a.ZodOptional,...w(t)});class ev extends k{_parse(e){return this._getType(e)===l.null?v(null):this._def.innerType._parse(e)}unwrap(){return this._def.innerType}}ev.create=(e,t)=>new ev({innerType:e,typeName:a.ZodNullable,...w(t)});class eb extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return t.parsedType===l.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:t.path,parent:t})}removeDefault(){return this._def.innerType}}eb.create=(e,t)=>new eb({innerType:e,typeName:a.ZodDefault,defaultValue:"function"==typeof t.default?t.default:()=>t.default,...w(t)});class e_ extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r={...t,common:{...t.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return b(i)?i.then(e=>({status:"valid",value:"valid"===e.status?e.value:this._def.catchValue({get error(){return new h(r.common.issues)},input:r.data})})):{status:"valid",value:"valid"===i.status?i.value:this._def.catchValue({get error(){return new h(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}e_.create=(e,t)=>new e_({innerType:e,typeName:a.ZodCatch,catchValue:"function"==typeof t.catch?t.catch:()=>t.catch,...w(t)});class ex extends k{_parse(e){if(this._getType(e)!==l.nan){let t=this._getOrReturnCtx(e);return p(t,{code:d.invalid_type,expected:l.nan,received:t.parsedType}),y}return{status:"valid",value:e.data}}}ex.create=e=>new ex({typeName:a.ZodNaN,...w(e)}),Symbol("zod_brand");class ew extends k{_parse(e){let{ctx:t}=this._processInputParams(e),r=t.data;return this._def.type._parse({data:r,path:t.path,parent:t})}unwrap(){return this._def.type}}class ek extends k{_parse(e){let{status:t,ctx:r}=this._processInputParams(e);if(r.common.async)return(async()=>{let e=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?y:"dirty"===e.status?(t.dirty(),g(e.value)):this._def.out._parseAsync({data:e.value,path:r.path,parent:r})})();{let e=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return"aborted"===e.status?y:"dirty"===e.status?(t.dirty(),{status:"dirty",value:e.value}):this._def.out._parseSync({data:e.value,path:r.path,parent:r})}}static create(e,t){return new ek({in:e,out:t,typeName:a.ZodPipeline})}}class eA extends k{_parse(e){let t=this._def.innerType._parse(e),r=e=>("valid"===e.status&&(e.value=Object.freeze(e.value)),e);return b(t)?t.then(e=>r(e)):r(t)}unwrap(){return this._def.innerType}}eA.create=(e,t)=>new eA({innerType:e,typeName:a.ZodReadonly,...w(t)}),ee.lazycreate,function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"}(a||(a={}));let eT=U.create,eS=$.create;ex.create,z.create,Z.create,q.create,W.create,H.create,K.create,Y.create,X.create,G.create,J.create;let eE=Q.create,eP=ee.create;ee.strictCreate,et.create,ei.create,en.create,es.create,ea.create,eo.create,el.create,eu.create,ed.create,eh.
1create;let eC=ef.create;ep.create,em.create,ey.create,eg.create,ev.create,ey.createWithPreprocess,ek.create},4905:e=>{function t(e,t){"boolean"==typeof t&&(t={forever:t}),this._originalTimeouts=JSON.parse(JSON.stringify(e)),this._timeouts=e,this._options=t||{},this._maxRetryTime=t&&t.maxRetryTime||1/0,this._fn=null,this._errors=[],this._attempts=1,this._operationTimeout=null,this._operationTimeoutCb=null,this._timeout=null,this._operationStart=null,this._timer=null,this._options.forever&&(this._cachedTimeouts=this._timeouts.slice(0))}e.exports=t,t.prototype.reset=function(){this._attempts=1,this._timeouts=this._originalTimeouts.slice(0)},t.prototype.stop=function(){this._timeout&&clearTimeout(this._timeout),this._timer&&clearTimeout(this._timer),this._timeouts=[],this._cachedTimeouts=null},t.prototype.retry=function(e){if(this._timeout&&clearTimeout(this._timeout),!e)return!1;var t=new Date().getTime();if(e&&t-this._operationStart>=this._maxRetryTime)return this._errors.push(e),this._errors.unshift(Error("RetryOperation timeout occurred")),!1;this._errors.push(e);var r=this._timeouts.shift();if(void 0===r)if(!this._cachedTimeouts)return!1;else this._errors.splice(0,this._errors.length-1),r=this._cachedTimeouts.slice(-1);var i=this;return this._timer=setTimeout(function(){i._attempts++,i._operationTimeoutCb&&(i._timeout=setTimeout(function(){i._operationTimeoutCb(i._attempts)},i._operationTimeout),i._options.unref&&i._timeout.unref()),i._fn(i._attempts)},r),this._options.unref&&this._timer.unref(),!0},t.prototype.attempt=function(e,t){this._fn=e,t&&(t.timeout&&(this._operationTimeout=t.timeout),t.cb&&(this._operationTimeoutCb=t.cb));var r=this;this._operationTimeoutCb&&(this._timeout=setTimeout(function(){r._operationTimeoutCb()},r._operationTimeout)),this._operationStart=new Date().getTime(),this._fn(this._attempts)},t.prototype.try=function(e){console.log("Using RetryOperation.try() is deprecated"),this.attempt(e)},t.prototype.start=function(e){console.log("Using RetryOperation.start() is deprecated"),this.attempt(e)},t.prototype.start=t.prototype.try,t.prototype.errors=function(){return this._errors},t.prototype.attempts=function(){return this._attempts},t.prototype.mainError=function(){if(0===this._errors.length)return null;for(var e={},t=null,r=0,i=0;i<this._errors.length;i++){var n=this._errors[i],s=n.message,a=(e[s]||0)+1;e[s]=a,a>=r&&(t=n,r=a)}return t}},4908:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]])},4951:(e,t,r)=>{var i=r(4905);t.operation=function(e){return new i(t.timeouts(e),{forever:e&&(e.forever||e.retries===1/0),unref:e&&e.unref,maxRetryTime:e&&e.maxRetryTime})},t.timeouts=function(e){if(e instanceof Array)return[].concat(e);var t={retries:10,factor:2,minTimeout:1e3,maxTimeout:1/0,randomize:!1};for(var r in e)t[r]=e[r];if(t.minTimeout>t.maxTimeout)throw Error("minTimeout is greater than maxTimeout");for(var i=[],n=0;n<t.retries;n++)i.push(this.createTimeout(n,t));return e&&e.forever&&!i.length&&i.push(this.createTimeout(n,t)),i.sort(function(e,t){return e-t}),i},t.createTimeout=function(e,t){var r=Math.round((t.randomize?Math.random()+1:1)*Math.max(t.minTimeout,1)*Math.pow(t.factor,e));return Math.min(r,t.maxTimeout)},t.wrap=function(e,r,i){if(r instanceof Array&&(i=r,r=null),!i)for(var n in i=[],e)"function"==typeof e[n]&&i.push(n);for(var s=0;s<i.length;s++){var a=i[s],o=e[a];e[a]=(function(i){var n=t.operation(r),s=Array.prototype.slice.call(arguments,1),a=s.pop();s.push(function(e){n.retry(e)||(e&&(arguments[0]=n.mainError()),a.apply(this,arguments))}),n.attempt(function(){i.apply(e,s)})}).bind(e,o),e[a].options=r}}},5040:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return l}}),r(4781);let i=r(4105),n=r(821),s=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function o(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function l(e,t){var r,l;let u,d,h,{src:c,sizes:f,unoptimized:p=!1,priority:m=!1,loading:y,className:g,quality:v,width:b,height:_,fill:x=!1,style:w,overrideSrc:k,onLoad:A,onLoadingComplete:T,placeholder:S="empty",blurDataURL:E,fetchPriority:P,decoding:C="async",layout:M,objectFit:R,objectPosition:O,lazyBoundary:V,lazyRoot:j,...L}=e,{imgConf:D,showAltText:F,blurComplete:I,defaultLoader:B}=t,N=D||n.imageConfigDefault;if("allSizes"in N)u=N;else{let e=[...N.deviceSizes,...N.imageSizes].sort((e,t)=>
1e-t),t=N.deviceSizes.sort((e,t)=>e-t),i=null==(r=N.qualities)?void 0:r.sort((e,t)=>e-t);u={...N,allSizes:e,deviceSizes:t,qualities:i}}if(void 0===B)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let U=L.loader||B;delete L.loader,delete L.srcSet;let $="__next_img_default"in U;if($){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+c+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=U;U=t=>{let{config:r,...i}=t;return e(i)}}if(M){"fill"===M&&(x=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[M];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[M];t&&!f&&(f=t)}let z="",Z=o(b),q=o(_);if((l=c)&&"object"==typeof l&&(a(l)||void 0!==l.src)){let e=a(c)?c.default:c;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(d=e.blurWidth,h=e.blurHeight,E=E||e.blurDataURL,z=e.src,!x)if(Z||q){if(Z&&!q){let t=Z/e.width;q=Math.round(e.height*t)}else if(!Z&&q){let t=q/e.height;Z=Math.round(e.width*t)}}else Z=e.width,q=e.height}let W=!m&&("lazy"===y||void 0===y);(!(c="string"==typeof c?c:z)||c.startsWith("data:")||c.startsWith("blob:"))&&(p=!0,W=!1),u.unoptimized&&(p=!0),$&&!u.dangerouslyAllowSVG&&c.split("?",1)[0].endsWith(".svg")&&(p=!0);let H=o(v),K=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:R,objectPosition:O}:{},F?{}:{color:"transparent"},w),Y=I||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,i.getImageBlurSvg)({widthInt:Z,heightInt:q,blurWidth:d,blurHeight:h,blurDataURL:E||"",objectFit:K.objectFit})+'")':'url("'+S+'")',X=s.includes(K.objectFit)?"fill"===K.objectFit?"100% 100%":"cover":K.objectFit,G=Y?{backgroundSize:X,backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:Y}:{},J=function(e){let{config:t,src:r,unoptimized:i,width:n,quality:s,sizes:a,loader:o}=e;if(i)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(e,t,r){let{deviceSizes:i,allSizes:n}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let i;i=e.exec(r);)t.push(parseInt(i[2]));if(t.length){let e=.01*Math.min(...t);return{widths:n.filter(t=>t>=i[0]*e),kind:"w"}}return{widths:n,kind:"w"}}return"number"!=typeof t?{widths:i,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>n.find(t=>t>=e)||n[n.length-1]))],kind:"x"}}(t,n,a),d=l.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:l.map((e,i)=>o({config:t,src:r,quality:s,width:e})+" "+("w"===u?e:i+1)+u).join(", "),src:o({config:t,src:r,quality:s,width:l[d]})}}({config:u,src:c,unoptimized:p,width:Z,quality:H,sizes:f,loader:U});return{props:{...L,loading:W?"lazy":y,fetchPriority:P,width:Z,height:q,decoding:C,className:g,style:{...K,...G},sizes:J.sizes,srcSet:J.srcSet,src:k||J.src},meta:{unoptimized:p,priority:m,placeholder:S,fill:x}}}},5070:e=>{e.exports=function(e,t){let r;if("function"!=typeof e)throw TypeError(`Expected the first argument to be a \`function\`, got \`${typeof e}\`.`);let i=0;return function(...n){clearTimeout(r);let s=Date.now(),a=t-(s-i);a<=0?(i=s,e.apply(this,n)):r=setTimeout(()=>{i=Date.now(),e.apply(this,n)},a)}}},5239:(e,t,r)=>{"use strict";r.d(t,{default:()=>n.a});var i=r(4652),n=r.n(i)},5376:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],i=t[1];
1return(r+i)*3/4-i},t.toByteArray=function(e){var t,r,s=l(e),a=s[0],o=s[1],u=new n((a+o)*3/4-o),d=0,h=o>0?a-4:a;for(r=0;r<h;r+=4)t=i[e.charCodeAt(r)]<<18|i[e.charCodeAt(r+1)]<<12|i[e.charCodeAt(r+2)]<<6|i[e.charCodeAt(r+3)],u[d++]=t>>16&255,u[d++]=t>>8&255,u[d++]=255&t;return 2===o&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,u[d++]=255&t),1===o&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,u[d++]=t>>8&255,u[d++]=255&t),u},t.fromByteArray=function(e){for(var t,i=e.length,n=i%3,s=[],a=0,o=i-n;a<o;a+=16383)s.push(function(e,t,i){for(var n,s=[],a=t;a<i;a+=3)n=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]),s.push(r[n>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return s.join("")}(e,a,a+16383>o?o:a+16383));return 1===n?s.push(r[(t=e[i-1])>>2]+r[t<<4&63]+"=="):2===n&&s.push(r[(t=(e[i-2]<<8)+e[i-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),s.join("")};for(var r=[],i=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,o=s.length;a<o;++a)r[a]=s[a],i[s.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var i=r===t?0:4-r%4;return[r,i]}i[45]=62,i[95]=63},72:function(e,t,r){"use strict";var i=r(675),n=r(783),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,o.prototype),t}function o(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return d(e)}return l(e,t,r)}function l(e,t,r){if("string"==typeof e){var i=e,n=t;if(("string"!=typeof n||""===n)&&(n="utf8"),!o.isEncoding(n))throw TypeError("Unknown encoding: "+n);var s=0|f(i,n),l=a(s),u=l.write(i,n);return u!==s&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(e))return h(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(C(e,ArrayBuffer)||e&&C(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(C(e,SharedArrayBuffer)||e&&C(e.buffer,SharedArrayBuffer)))return function(e,t,r){var i;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(i=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),o.prototype),i}(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var d=e.valueOf&&e.valueOf();if(null!=d&&d!==e)return o.from(d,t,r);var p=function(e){if(o.isBuffer(e)){var t=0|c(e.length),r=a(t);return 0===r.length||e.copy(r,0,0,t),r}return void 0!==e.length?"number"!=typeof e.length||function(e){return e!=e}(e.length)?a(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(p)return p;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return o.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return u(e),a(e<0?0:0|c(e))}function h(e){for(var t=e.length<0?0:0|c(e.length),r=a(t),i=0;i<t;i+=1)r[i]=255&e[i];return r}t.Buffer=o,t.SlowBuffer=function(e){return+e!=e&&(e=0),o.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=0x7fffffff,o.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),o.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}}),o.poolSize=8192,o.from=function(e,t,r){return l(e,t,r)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array),o.alloc=function(e,t,r){return(u(e),e<=0)?a(e):void 0!==t?"string"==typeof r?a(e).fill(t,r):a(e).fill(t):a(e)},o.allocUnsafe=function(e){return d(e)},o.allocUnsafeSlow=function(e){return d(e)};function c(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function f(e,t){if(o.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||C(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,i=arguments.length>2&&!0===arguments[2];if(!i&&0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return T(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return E(e).length;default:if(n)return i?-1:T(e).length;t=(""+t).toLowerCase(),n=!0}}function p(e,t,r){var n,s,a,o=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var i=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>i)&&(r=i);for(var n="",s=t;s<r;++s)n+=M[e[s]];return n}(this,t,r);case"utf8":case"utf-8":return v(this,t,r);case"ascii":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(127&e[n]);return i}(this,t,r);case"latin1":case"binary":return function(e,t,r){var i="";r=Math.min(e.length,r);for(var n=t;n<r;++n)i+=String.fromCharCode(e[n]);return i}(this,t,r);case"base64":return n=this,s=t,a=r,0===s&&a===n.length?i.fromByteArray(n):i.fromByteArray(n.slice(s,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var i=e.slice(t,r),n="",s=0;s<i.length;s+=2)n+=String.fromCharCode(i[s]+256*i[s+1]);return n}(this,t,r);default:if(o)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function m(e,t,r){var i=e[t];e[t]=e[r],e[r]=i}function y(e,t,r,i,n){var s;if(0===e.length)return -1;if("string"==typeof r?(i=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(s=r*=1)!=s&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length)if(n)return -1;else r=e.length-1;else if(r<0)if(!n)return -1;else r=0;if("string"==typeof t&&(t=o.from(t,i)),o.isBuffer(t))return 0===t.length?-1:g(e,t,r,i,n);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(n)return Uint8Array.prototype.indexOf.call(e,t,r);else return Uint8Array.prototype.lastIndexOf.call(e,t,r);return g(e,[t],r,i,n)}throw TypeError("val must be string, number or Buffer")}function g(e,t,r,i,n){var s,a=1,o=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return -1;a=2,o/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var d=-1;for(s=r;s<o;s++)if(u(e,s)===u(t,-1===d?0:s-d)){if(-1===d&&(d=s),s-d+1===l)return d*a}else -1!==d&&(s-=s-d),d=-1}else for(r+l>o&&(r=o-l),s=r;s>=0;s--){for(var h=!0,c=0;c<l;c++)if(u(e,s+c)!==u(t,c)){h=!1;break}if(h)return s}return -1}o.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==o.prototype},o.compare=function(e,t){if(C(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),C(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(e)||!o.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,i=t.length,n=0,s=Math.min(r,i);n<s;++n)if(e[n]!==t[n]){r=e[n],i=t[n];break}return r<i?-1:+(i<r)},o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return o.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,i=o.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var s=e[r];if(C(s,Uint8Array)&&(s=o.from(s)),!o.isBuffer(s))throw TypeError('"list" argument must be an Array of Buffers');s.copy(i,n),n+=s.length}return i},o.byteLength=f,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},o.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},o.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},o.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?v(this,0,e):p.apply(this,arguments)}
vendor: 11,816 bytes, line 1
1,o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(e){if(!o.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===o.compare(this,e)},o.prototype.inspect=function(){var e="",r=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},s&&(o.prototype[s]=o.prototype.inspect),o.prototype.compare=function(e,t,r,i,n){if(C(e,Uint8Array)&&(e=o.from(e,e.offset,e.byteLength)),!o.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===i&&(i=0),void 0===n&&(n=this.length),t<0||r>e.length||i<0||n>this.length)throw RangeError("out of range index");if(i>=n&&t>=r)return 0;if(i>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,i>>>=0,n>>>=0,this===e)return 0;for(var s=n-i,a=r-t,l=Math.min(s,a),u=this.slice(i,n),d=e.slice(t,r),h=0;h<l;++h)if(u[h]!==d[h]){s=u[h],a=d[h];break}return s<a?-1:+(a<s)},o.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},o.prototype.indexOf=function(e,t,r){return y(this,e,t,r,!0)},o.prototype.lastIndexOf=function(e,t,r){return y(this,e,t,r,!1)};function v(e,t,r){r=Math.min(e.length,r);for(var i=[],n=t;n<r;){var s,a,o,l,u=e[n],d=null,h=u>239?4:u>223?3:u>191?2:1;if(n+h<=r)switch(h){case 1:u<128&&(d=u);break;case 2:(192&(s=e[n+1]))==128&&(l=(31&u)<<6|63&s)>127&&(d=l);break;case 3:s=e[n+1],a=e[n+2],(192&s)==128&&(192&a)==128&&(l=(15&u)<<12|(63&s)<<6|63&a)>2047&&(l<55296||l>57343)&&(d=l);break;case 4:s=e[n+1],a=e[n+2],o=e[n+3],(192&s)==128&&(192&a)==128&&(192&o)==128&&(l=(15&u)<<18|(63&s)<<12|(63&a)<<6|63&o)>65535&&l<1114112&&(d=l)}null===d?(d=65533,h=1):d>65535&&(d-=65536,i.push(d>>>10&1023|55296),d=56320|1023&d),i.push(d),n+=h}var c=i,f=c.length;if(f<=4096)return String.fromCharCode.apply(String,c);for(var p="",m=0;m<f;)p+=String.fromCharCode.apply(String,c.slice(m,m+=4096));return p}function b(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function _(e,t,r,i,n,s){if(!o.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<s)throw RangeError('"value" argument is out of bounds');if(r+i>e.length)throw RangeError("Index out of range")}function x(e,t,r,i,n,s){if(r+i>e.length||r<0)throw RangeError("Index out of range")}function w(e,t,r,i,s){return t*=1,r>>>=0,s||x(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}function k(e,t,r,i,s){return t*=1,r>>>=0,s||x(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}o.prototype.write=function(e,t,r,i){if(void 0===t)i="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)i=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===i&&(i="utf8")):(i=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,s,a,o,l,u,d,h,c=this.length-t;if((void 0===r||r>c)&&(r=c),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var f=!1;;)switch(i){case"hex":return function(e,t,r,i){r=Number(r)||0;var n=e.length-r;i?(i=Number(i))>n&&(i=n):i=n;var s=t.length;i>s/2&&(i=s/2);for(var a=0;a<i;++a){var o,l=parseInt(t.substr(2*a,2),16);if((o=l)!=o)break;e[r+a]=l}return a}(this,e,t,r);case"utf8":case"utf-8":return n=t,s=r,P(T(e,this.length-n),this,n,s);case"ascii":return a=t,o=r,P(S(e),this,a,o);case"latin1":case"binary":return function(e,t,r,i){return P(S(t),e,r,i)}(this,e,t,r);case"base64":return l=t,u=r,P(E(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d=t,h=r,P(function(e,t){for(var r,i,n=[],s=0;s<e.length&&!((t-=2)<0);++s)i=(r=e.charCodeAt(s))>>8,n.push(r%256),n.push(i);return n}(e,this.length-d),this,d,h);default:if(f)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),f=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var i=this.subarray(e,t);return Object.setPrototypeOf(i,o.prototype),i},o.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e],n=1,s=0;++s<t&&(n*=256);)i+=this[e+s]*n;return i},o.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e+--t],n=1;t>0&&(n*=256);)i+=this[e+--t]*n;return i},o.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},o.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},o.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},o.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},o.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},o.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=this[e],n=1,s=0;++s<t&&(n*=256);)i+=this[e+s]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},o.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||b(e,t,this.length);for(var i=t,n=1,s=this[e+--i];i>0&&(n*=256);)s+=this[e+--i]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*t)),s},o.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},o.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},o.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},o.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},o.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),n.read(this,e,!0,23,4)},o.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),n.read(this,e,!1,23,4)},o.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),n.read(this,e,!0,52,8)},o.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),n.read(this,e,!1,52,8)},o.prototype.writeUIntLE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;_(this,e,t,r,n,0)}var s=1,a=0;for(this[t]=255&e;++a<r&&(s*=256);)this[t+a]=e/s&255;return t+r},o.prototype.writeUIntBE=function(e,t,r,i){if(e*=1,t>>>=0,r>>>=0,!i){var n=Math.pow(2,8*r)-1;_(this,e,t,r,n,0)}var s=r-1,a=1;for(this[t+s]=255&e;--s>=0&&(a*=256);)this[t+s]=e/a&255;return t+r},o.prototype.writeUInt8=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,1,255,0),this[t]=255&e,t+1},o.prototype.writeUInt16LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeUInt16BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeUInt32LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},o.prototype.writeUInt32BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeIntLE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}var s=0,a=1,o=0;for(this[t]=255&e;++s<r&&(a*=256);)e<0&&0===o&&0!==this[t+s-1]&&(o=1),this[t+s]=(e/a|0)-o&255;return t+r},o.prototype.writeIntBE=function(e,t,r,i){if(e*=1,t>>>=0,!i){var n=Math.pow(2,8*r-1);_(this,e,t,r,n-1,-n)}var s=r-1,a=1,o=0;for(this[t+s]=255&e;--s>=0&&(a*=256);)e<0&&0===o&&0!==this[t+s+1]&&(o=1),this[t+s]=(e/a|0)-o&255;return t+r},o.prototype.writeInt8=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},o.prototype.writeInt16LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},o.prototype.writeInt16BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},o.prototype.writeInt32LE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},o.prototype.writeInt32BE=function(e,t,r){return e*=1,t>>>=0,r||_(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},o.prototype.writeFloatLE=function(e,t,r){return w(this,e,t,!0,r)},o.prototype.writeFloatBE=function(e,t,r){return w(this,e,t,!1,r)},o.prototype.writeDoubleLE=function(e,t,r){return k(this,e,t,!0,r)},o.prototype.writeDoubleBE=function(e,t,r){return k(this,e,t,!1,r)},o.prototype.copy=function(e,t,r,i){if(!o.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<r&&(i=r),i===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-r&&(i=e.length-t+r);var n=i-r;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,r,i);else if(this===e&&r<t&&t<i)for(var s=n-1;s>=0;--s)e[s+t]=this[s+r];else Uint8Array.prototype.set.call(e,this.subarray(r,i),t);return n},o.prototype.fill=function(e,t,r,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,r=this.length):"string"==typeof r&&(i=r,r=this.length),void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!o.isEncoding(i))throw TypeError("Unknown encoding: "+i);if(1===e.length){var n,s=e.charCodeAt(0);("utf8"===i&&s<128||"latin1"===i)&&(e=s)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{var a=o.isBuffer(e)?e:o.from(e,i),l=a.length;if(0===l)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<r-t;++n)this[n+t]=a[n%l]}return this};var A=/[^+/0-9A-Za-z-_]/g;function T(e,t){t=t||1/0;for(var r,i=e.length,n=null,s=[],a=0;a<i;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!n){if(r>56319||a+1===i){(t-=3)>-1&&s.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&s.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;s.push(r)}else if(r<2048){if((t-=2)<0)break;s.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;s.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;s.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return s}function S(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function E(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function P(e,t,r,i){for(var n=0;n<i&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}function C(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var M=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var i=16*r,n=0;n<16;++n)t[i+n]=e[r]+e[n];return t}()},783:function(e,t){t.read=function(e,t,r,i,n){var s,a,o=8*n-i-1,l=(1<<o)-1,u=l>>
11,d=-7,h=r?n-1:0,c=r?-1:1,f=e[t+h];for(h+=c,s=f&(1<<-d)-1,f>>=-d,d+=o;d>0;s=256*s+e[t+h],h+=c,d-=8);for(a=s&(1<<-d)-1,s>>=-d,d+=i;d>0;a=256*a+e[t+h],h+=c,d-=8);if(0===s)s=1-u;else{if(s===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),s-=u}return(f?-1:1)*a*Math.pow(2,s-i)},t.write=function(e,t,r,i,n,s){var a,o,l,u=8*s-n-1,d=(1<<u)-1,h=d>>1,c=5960464477539062e-23*(23===n),f=i?0:s-1,p=i?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),a=d):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+h>=1?t+=c/l:t+=c*Math.pow(2,1-h),t*l>=2&&(a++,l/=2),a+h>=d?(o=0,a=d):a+h>=1?(o=(t*l-1)*Math.pow(2,n),a+=h):(o=t*Math.pow(2,h-1)*Math.pow(2,n),a=0));n>=8;e[r+f]=255&o,f+=p,o/=256,n-=8);for(a=a<<n|o,u+=n;u>0;e[r+f]=255&a,f+=p,a/=256,u-=8);e[r+f-p]|=128*m}}},r={};function i(e){var n=r[e];if(void 0!==n)return n.exports;var s=r[e]={exports:{}},a=!0;try{t[e](s,s.exports,i),a=!1}finally{a&&delete r[e]}return s.exports}i.ab="//",e.exports=i(72)}()},6101:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("BadgeDollarSign",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8",key:"1h4pet"}],["path",{d:"M12 18V6",key:"zqpxq5"}]])},6264:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Sprout",[["path",{d:"M7 20h10",key:"e6iznv"}],["path",{d:"M10 20c5.5-2.5.8-6.4 3-10",key:"161w41"}],["path",{d:"M9.5 9.4c1.1.8 1.8 2.2 2.3 3.7-2 .4-3.5.4-4.8-.3-1.2-.6-2.3-1.9-3-4.2 2.8-.5 4.4 0 5.5.8z",key:"9gtqwd"}],["path",{d:"M14.1 6a7 7 0 0 0-1.1 4c1.9-.1 3.3-.6 4.3-1.4 1-1 1.6-2.3 1.7-4.6-2.7.1-4 1-4.9 2z",key:"bkxnd2"}]])},6615:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},6943:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]])},7482:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]])},7646:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]])},7733:(e,t,r)=>{"use strict";let i;function n(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}r.d(t,{P:()=>sr});let s=e=>Array.isArray(e);function a(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let i=0;i<r;i++)if(t[i]!==e[i])return!1;return!0}function o(e){return"string"==typeof e||Array.isArray(e)}function l(e){let t=[{},{}];return null==e||e.values.forEach((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()}),t}
1function u(e,t,r,i){if("function"==typeof t){let[n,s]=l(i);t=t(void 0!==r?r:e.custom,n,s)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[n,s]=l(i);t=t(void 0!==r?r:e.custom,n,s)}return t}function d(e,t,r){let i=e.getProps();return u(i,t,void 0!==r?r:i.custom,e)}let h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],c=["initial",...h];function f(e){let t;return()=>(void 0===t&&(t=e()),t)}let p=f(()=>void 0!==window.ScrollTimeline);class m{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>"finished"in e?e.finished:e))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e,t){let r=this.animations.map(r=>p()&&r.attachTimeline?r.attachTimeline(e):"function"==typeof t?t(r):void 0);return()=>{r.forEach((e,t)=>{e&&e(),this.animations[t].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]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class y extends m{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function g(e,t){return e?e[t]||e.default||e:void 0}function v(e){let t=0,r=e.next(t);for(;!r.done&&t<2e4;)t+=50,r=e.next(t);return t>=2e4?1/0:t}function b(e){return"function"==typeof e}function _(e,t){e.timeline=t,e.onfinish=null}let x=e=>Array.isArray(e)&&"number"==typeof e[0],w={linearEasing:void 0},k=function(e,t){let r=f(e);return()=>{var e;return null!=(e=w[t])?e:r()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(e){return!1}return!0},"linearEasing"),A=(e,t,r)=>{let i=t-e;return 0===i?1:(r-e)/i},T=(e,t,r=10)=>{let i="",n=Math.max(Math.round(t/r),2);for(let t=0;t<n;t++)i+=e(A(0,n-1,t))+", ";return`linear(${i.substring(0,i.length-2)})`},S=([e,t,r,i])=>`cubic-bezier(${e}, ${t}, ${r}, ${i})`,E={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:S([0,.65,.55,1]),circOut:S([.55,0,1,.45]),backIn:S([.31,.01,.66,-.59]),backOut:S([.33,1.53,.69,.99])},P={x:!1,y:!1};function C(e,t){let r=function(e,t,r){if(e instanceof Element)return[e];if("string"==typeof e){let t=document.querySelectorAll(e);return t?Array.from(t):[]}return Array.from(e)}(e),i=new AbortController;return[r,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function M(e){return t=>{"touch"===t.pointerType||P.x||P.y||e(t)}}let R=(e,t)=>!!t&&(e===t||R(e,t.parentElement)),O=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,V=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),j=new WeakSet;function L(e){return t=>{"Enter"===t.key&&e(t)}}function D(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function F(e){return O(e)&&!(P.x||P.y)}let I=e=>1e3*e,B=e=>e,N=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],U=new Set(N),$=new Set(["width","height","top","left","right","bottom",...N]),z=e=>s(e)?e[e.length-1]||0:e,Z={skipAnimations:!1,useManualTiming:!1},q=["read","resolveKeyframes","update","preRender","render","postRender"];function W(e,t){let r=!1,i=!0,n={delta:0,timestamp:0,isProcessing:!1},s=()=>r=!0,a=q.reduce((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,i=!1,n=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1};function o(t){s.has(t)&&(l.schedule(t),e()),t(a)}let l={schedule:(e,n=!1,a=!1)=>{let o=a&&i?t:r;return n&&s.add(e),o.has(e)||o.add(e),e},cancel:e=>{r.delete(e),s.delete(e)},process:e=>{if(a=e,i){n=!0;return}i=!0,[t,r]=[r,t],t.forEach(o),t.clear(),i=!1,n&&(n=!1,l.process(e))}};return l}(s),e),{}),{read:o,resolveKeyframes:l,update:u,preRender:d,render:h,postRender:c}=a,f=()=>{let s=Z.useManualTiming?n.timestamp:performance.now();r=!1,n.delta=i?1e3/60:Math.max(Math.min(s-n.timestamp,40),1),n.timestamp=s,n.isProcessing=!0,o.process(n),l.process(n),u.process(n),d.process(n),h.process(n),c.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(f))};return{schedule:q.reduce((t,s)=>{let o=a[s];return t[s]=(t,s=!1,a=!1)=>(!r&&(r=!0,i=!0,n.isProcessing||e(f)),o.schedule(t,s,a)),t},{}),cancel:e=>{for(let t=0;t<q.length;t++)a[q[t]].cancel(e)},state:n,steps:a}}let{schedule:H,cancel:K,state:Y,steps:X}=W("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:B,!0);function G(){i=void 0}let J={now:()=>(void 0===i&&J.set(Y.isProcessing||Z.useManualTiming?Y.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(G)}};function Q(e,t){-1===e.indexOf(t)&&e.push(t)}function ee(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}class et{constructor(){this.subscriptions=[]}add(e){return Q(this.subscriptions,e),()=>ee(this.subscriptions,e)}notify(e,t,r){let i=this.subscriptions.length;if(i)if(1===i)this.subscriptions[0](e,t,r);else for(let n=0;n<i;n++){let i=this.subscriptions[n];i&&i(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let er={current:void 0};class ei{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{let r=J.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&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=J.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=!isNaN(parseFloat(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 et);let r=this.events[e].add(t);return"change"===e?()=>{r(),H.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}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 er.current&&er.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=J.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),r?1e3/r*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function en(e,t){return new ei(e,t)}let es=e=>!!(e&&e.getVelocity);function ea(e,t){let r=e.getValue("willChange");if(es(r)&&r.add)return r.add(t)}let eo=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),el="data-"+eo("framerAppearId"),eu={current:!1},ed=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function eh(e,t,r,i){return e===t&&r===i?B:n=>0===n||1===n?n:ed(function(e,t,r,i,n){let s,a,o=0;do(s=ed(a=t+(r-t)/2,i,n)-e)>0?r=a:t=a;while(Math.abs(s)>1e-7&&++o<12);return a}(n,0,1,e,r),t,i)}let ec=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,ef=e=>t=>1-e(1-t),ep=eh(.33,1.53,.69,.99),em=ef(ep),ey=ec(em),eg=e=>(e*=2)<1?.5*em(e):.5*(2-Math.pow(2,-10*(e-1))),ev=e=>1-Math.sin(Math.acos(e)),eb=ef(ev),e_=ec(ev),ex=e=>/^0[^.\s]+$/u.test(e),ew=(e,t,r)=>r>t?t:r<e?e:r,ek={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},eA={...ek,transform:e=>ew(0,1,e)},eT={...ek,default:1},eS=e=>Math.round(1e5*e)/1e5,eE=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,eP=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eC=(e,t)=>r=>!!("string"==typeof r&&eP.test(r)&&r.startsWith(e)||t&&null!=r&&Object.prototype.hasOwnProperty.call(r,t)),eM=(e,t,r)=>i=>{if("string"!=typeof i)return i;let[n,s,a,o]=i.match(eE);return{[e]:parseFloat(n),[t]:parseFloat(s),[r]:parseFloat(a),alpha:void 0!==o?parseFloat(o):1}},eR={...ek,transform:e=>Math.round(ew(0,255,e))},eO={test:eC("rgb","red"),parse:eM("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:i=1})=>"rgba("+eR.transform(e)+", "+eR.transform(t)+", "+eR.transform(r)+", "+eS(eA.transform(i))+")"},eV={test:eC("#"),parse:function(e){let t="",r="",i="",n="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),i=e.substring(5,7),n=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),i=e.substring(3,4),n=e.substring(4,5),t+=t,r+=r,i+=i,n+=n),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(i,16),alph
1a:n?parseInt(n,16)/255:1}},transform:eO.transform},ej=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),eL=ej("deg"),eD=ej("%"),eF=ej("px"),eI=ej("vh"),eB=ej("vw"),eN={...eD,parse:e=>eD.parse(e)/100,transform:e=>eD.transform(100*e)},eU={test:eC("hsl","hue"),parse:eM("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:i=1})=>"hsla("+Math.round(e)+", "+eD.transform(eS(t))+", "+eD.transform(eS(r))+", "+eS(eA.transform(i))+")"},e$={test:e=>eO.test(e)||eV.test(e)||eU.test(e),parse:e=>eO.test(e)?eO.parse(e):eU.test(e)?eU.parse(e):eV.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?eO.transform(e):eU.transform(e)},ez=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,eZ="number",eq="color",eW=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function eH(e){let t=e.toString(),r=[],i={color:[],number:[],var:[]},n=[],s=0,a=t.replace(eW,e=>(e$.test(e)?(i.color.push(s),n.push(eq),r.push(e$.parse(e))):e.startsWith("var(")?(i.var.push(s),n.push("var"),r.push(e)):(i.number.push(s),n.push(eZ),r.push(parseFloat(e))),++s,"${}")).split("${}");return{values:r,split:a,indexes:i,types:n}}function eK(e){return eH(e).values}function eY(e){let{split:t,types:r}=eH(e),i=t.length;return e=>{let n="";for(let s=0;s<i;s++)if(n+=t[s],void 0!==e[s]){let t=r[s];t===eZ?n+=eS(e[s]):t===eq?n+=e$.transform(e[s]):n+=e[s]}return n}}let eX=e=>"number"==typeof e?0:e,eG={test:function(e){var t,r;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(eE))?void 0:t.length)||0)+((null==(r=e.match(ez))?void 0:r.length)||0)>0},parse:eK,createTransformer:eY,getAnimatableNone:function(e){let t=eK(e);return eY(e)(t.map(eX))}},eJ=new Set(["brightness","contrast","saturate","opacity"]);function eQ(e){let[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=r.match(eE)||[];if(!i)return e;let n=r.replace(i,""),s=+!!eJ.has(t);return i!==r&&(s*=100),t+"("+s+n+")"}let e0=/\b([a-z-]*)\(.*?\)/gu,e1={...eG,getAnimatableNone:e=>{let t=e.match(e0);return t?t.map(eQ).join(" "):e}},e2={...ek,transform:Math.round},e4={borderWidth:eF,borderTopWidth:eF,borderRightWidth:eF,borderBottomWidth:eF,borderLeftWidth:eF,borderRadius:eF,radius:eF,borderTopLeftRadius:eF,borderTopRightRadius:eF,borderBottomRightRadius:eF,borderBottomLeftRadius:eF,width:eF,maxWidth:eF,height:eF,maxHeight:eF,top:eF,right:eF,bottom:eF,left:eF,padding:eF,paddingTop:eF,paddingRight:eF,paddingBottom:eF,paddingLeft:eF,margin:eF,marginTop:eF,marginRight:eF,marginBottom:eF,marginLeft:eF,backgroundPositionX:eF,backgroundPositionY:eF,rotate:eL,rotateX:eL,rotateY:eL,rotateZ:eL,scale:eT,scaleX:eT,scaleY:eT,scaleZ:eT,skew:eL,skewX:eL,skewY:eL,distance:eF,translateX:eF,translateY:eF,translateZ:eF,x:eF,y:eF,z:eF,perspective:eF,transformPerspective:eF,opacity:eA,originX:eN,originY:eN,originZ:eF,zIndex:e2,size:eF,fillOpacity:eA,strokeOpacity:eA,numOctaves:e2},e5={...e4,color:e$,backgroundColor:e$,outlineColor:e$,fill:e$,stroke:e$,borderColor:e$,borderTopColor:e$,borderRightColor:e$,borderBottomColor:e$,borderLeftColor:e$,filter:e1,WebkitFilter:e1},e3=e=>e5[e];function e6(e,t){let r=e3(e);return r!==e1&&(r=eG),r.getAnimatableNone?r.getAnimatableNone(t):void 0}let e8=new Set(["auto","none","0"]),e9=e=>e===ek||e===eF,e7=(e,t)=>parseFloat(e.split(", ")[t]),te=(e,t)=>(r,{transform:i})=>{if("none"===i||!i)return 0;let n=i.match(/^matrix3d\((.+)\)$/u);if(n)return e7(n[1],t);{let t=i.match(/^matrix\((.+)\)$/u);return t?e7(t[1],e):0}},tt=new Set(["x","y","z"]),tr=N.filter(e=>!tt.has(e)),ti={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),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:te(4,13),y:te(5,14)};ti.translateX=ti.x,ti.translateY=ti.y;let tn=new Set,ts=!1,ta=!1;function to(){if(ta){let e=Array.from(tn).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),r=new Map;
1t.forEach(e=>{let t=function(e){let t=[];return tr.forEach(r=>{let i=e.getValue(r);void 0!==i&&(t.push([r,i.get()]),i.set(+!!r.startsWith("scale")))}),t}(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,r])=>{var i;null==(i=e.getValue(t))||i.set(r)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}ta=!1,ts=!1,tn.forEach(e=>e.complete()),tn.clear()}function tl(){tn.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(ta=!0)})}class tu{constructor(e,t,r,i,n,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=i,this.element=n,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(tn.add(this),ts||(ts=!0,H.read(tl),H.resolveKeyframes(to))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:r,motionValue:i}=this;for(let n=0;n<e.length;n++)if(null===e[n])if(0===n){let n=null==i?void 0:i.get(),s=e[e.length-1];if(void 0!==n)e[0]=n;else if(r&&t){let i=r.readValue(t,s);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=s),i&&void 0===n&&i.set(e[0])}else e[n]=e[n-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),tn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,tn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let td=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),th=e=>t=>"string"==typeof t&&t.startsWith(e),tc=th("--"),tf=th("var(--"),tp=e=>!!tf(e)&&tm.test(e.split("/*")[0].trim()),tm=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,ty=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,tg=e=>t=>t.test(e),tv=[ek,eF,eD,eL,eB,eI,{test:e=>"auto"===e,parse:e=>e}],tb=e=>tv.find(tg(e));class t_ extends tu{constructor(e,t,r,i,n){super(e,t,r,i,n,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let i=e[r];if("string"==typeof i&&tp(i=i.trim())){let n=function e(t,r,i=1){B(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[n,s]=function(e){let t=ty.exec(e);if(!t)return[,];let[,r,i,n]=t;return[`--${null!=r?r:i}`,n]}(t);if(!n)return;let a=window.getComputedStyle(r).getPropertyValue(n);if(a){let e=a.trim();return td(e)?parseFloat(e):e}return tp(s)?e(s,r,i+1):s}(i,t.current);void 0!==n&&(e[r]=n),r===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!$.has(r)||2!==e.length)return;let[i,n]=e,s=tb(i),a=tb(n);if(s!==a)if(e9(s)&&e9(a))for(let t=0;t<e.length;t++){let r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++){var i;("number"==typeof(i=e[t])?0===i:null===i||"none"===i||"0"===i||ex(i))&&r.push(t)}r.length&&function(e,t,r){let i,n=0;for(;n<e.length&&!i;){let t=e[n];"string"==typeof t&&!e8.has(t)&&eH(t).values.length&&(i=e[n]),n++}if(i&&r)for(let n of t)e[n]=e6(r,i)}(e,r,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ti[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(r,i).jump(i,!1)}measureEndState(){var e;let{element:t,name:r,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let n=t.getValue(r);n&&n.jump(this.measuredOrigin,!1);let s=i.length-1,a=i[s];i[s]=ti[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null==(e=this.removedTransforms)?void 0:e.length)&&this.removedTransforms.forEac
1h(([e,r])=>{t.getValue(e).set(r)}),this.resolveNoneKeyframes()}}let tx=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eG.test(e)||"0"===e)&&!e.startsWith("url(")),tw=e=>null!==e;function tk(e,{repeat:t,repeatType:r="loop"},i){let n=e.filter(tw),s=t&&"loop"!==r&&t%2==1?0:n.length-1;return s&&void 0!==i?i:n[s]}class tA{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:i=0,repeatDelay:n=0,repeatType:s="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=J.now(),this.options={autoplay:e,delay:t,type:r,repeat:i,repeatDelay:n,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(tl(),to()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=J.now(),this.hasAttemptedResolve=!0;let{name:r,type:i,velocity:n,delay:s,onComplete:a,onUpdate:o,isGenerator:l}=this.options;if(!l&&!function(e,t,r,i){let n=e[0];if(null===n)return!1;if("display"===t||"visibility"===t)return!0;let s=e[e.length-1],a=tx(n,t),o=tx(s,t);return B(a===o,`You are trying to animate ${t} from "${n}" to "${s}". ${n} is not an animatable value - to enable this animation set ${n} to a value animatable to ${s} via the \`style\` property.`),!!a&&!!o&&(function(e){let t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||b(r))&&i)}(e,r,i,n))if(eu.current||!s){o&&o(tk(e,this.options,t)),a&&a(),this.resolveFinishedPromise();return}else this.options.duration=0;let u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(e=>{this.resolveFinishedPromise=e})}}let tT=(e,t,r)=>e+(t-e)*r;function tS(e,t,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?e+(t-e)*6*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function tE(e,t){return r=>r>0?t:e}let tP=(e,t,r)=>{let i=e*e,n=r*(t*t-i)+i;return n<0?0:Math.sqrt(n)},tC=[eV,eO,eU];function tM(e){let t=tC.find(t=>t.test(e));if(B(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`),!t)return!1;let r=t.parse(e);return t===eU&&(r=function({hue:e,saturation:t,lightness:r,alpha:i}){e/=360,r/=100;let n=0,s=0,a=0;if(t/=100){let i=r<.5?r*(1+t):r+t-r*t,o=2*r-i;n=tS(o,i,e+1/3),s=tS(o,i,e),a=tS(o,i,e-1/3)}else n=s=a=r;return{red:Math.round(255*n),green:Math.round(255*s),blue:Math.round(255*a),alpha:i}}(r)),r}let tR=(e,t)=>{let r=tM(e),i=tM(t);if(!r||!i)return tE(e,t);let n={...r};return e=>(n.red=tP(r.red,i.red,e),n.green=tP(r.green,i.green,e),n.blue=tP(r.blue,i.blue,e),n.alpha=tT(r.alpha,i.alpha,e),eO.transform(n))},tO=(e,t)=>r=>t(e(r)),tV=(...e)=>e.reduce(tO),tj=new Set(["none","hidden"]);function tL(e,t){return r=>tT(e,t,r)}function tD(e){return"number"==typeof e?tL:"string"==typeof e?tp(e)?tE:e$.test(e)?tR:tB:Array.isArray(e)?tF:"object"==typeof e?e$.test(e)?tR:tI:tE}function tF(e,t){let r=[...e],i=r.length,n=e.map((e,r)=>tD(e)(e,t[r]));return e=>{for(let t=0;t<i;t++)r[t]=n[t](e);return r}}function tI(e,t){let r={...e,...t},i={};for(let n in r)void 0!==e[n]&&void 0!==t[n]&&(i[n]=tD(e[n])(e[n],t[n]));return e=>{for(let t in i)r[t]=i[t](e);return r}}let tB=(e,t)=>{let r=eG.createTransformer(t),i=eH(e),n=eH(t);return i.indexes.var.length===n.indexes.var.length&&i.indexes.color.length===n.indexes.color.length&&i.indexes.number.length>=n.indexes.number.length?tj.has(e)&&!n.values.length||tj.has(t)&&!i.values.length?function(e,t){return tj.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):tV(tF(function(e,t){var r;let i=[],n={color:0,var:0,number:0};for(let s=0;s<t.values.length;s++){let a=t.types[s],o=e.indexes[a][n[a]],l=null!=(r=e.values[o])?r:0;i[s]=l,n[a]++}return i}(i,n),n.values),r):(B(!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.`),tE(e,t))};function tN(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?tT(e,t,r):tD(e)(e,t)}function tU(e,t,r){var i,n;let s=Math.max(t-5,0);return i=r-e(s),(n=t-s)?1e3/n*i:0}let t$={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function tz(e,t){return e*Math.sqrt(1-t*t)}let tZ=["duration","bounce"],tq=["stiffness","damping","mass"];function tW(e,t){return t.some(t=>void 0!==e[t])}function tH(e=t$.visualDuration,t=t$.bounce){let r,i="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:n,restDelta:s}=i,a=i.keyframes[0],o=i.keyframes[i.keyframes.length-1],l={done:!1,value:a},{stiffness:u,damping:d,mass:h,duration:c,velocity:f,isResolvedFromDuration:p}=function(e){let t={velocity:t$.velocity,stiffness:t$.stiffness,damping:t$.damping,mass:t$.mass,isResolvedFromDuration:!1,...e};if(!tW(e,tq)&&tW(e,tZ))if(e.visualDuration){let r=2*Math.PI/(1.2*e.visualDuration),i=r*r,n=2*ew(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:t$.mass,stiffness:i,damping:n}}else{let r=function({duration:e=t$.duration,bounce:t=t$.bounce,velocity:r=t$.velocity,mass:i=t$.mass}){let n,s;B(e<=I(t$.maxDuration),"Spring duration must be 10 seconds or less");let a=1-t;a=ew(t$.minDamping,t$.maxDamping,a),e=ew(t$.minDuration,t$.maxDuration,e/1e3),a<1?(n=t=>{let i=t*a,n=i*e;return .001-(i-r)/tz(t,a)*Math.exp(-n)},s=t=>{let i=t*a*e,s=Math.pow(a,2)*Math.pow(t,2)*e,o=Math.exp(-i),l=tz(Math.pow(t,2),a);return(i*r+r-s)*o*(-n(t)+.001>0?-1:1)/l}):(n=t=>-.001+Math.exp(-t*e)*((t-r)*e+1),s=t=>e*e*(r-t)*Math.exp(-t*e));let o=function(e,t,r){let i=r;for(let r=1;r<12;r++)i-=e(i)/t(i);return i}(n,s,5/e);if(e=I(e),isNaN(o))return{stiffness:t$.stiffness,damping:t$.damping,duration:e};{let t=Math.pow(o,2)*i;
1return{stiffness:t,damping:2*a*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...r,mass:t$.mass}).isResolvedFromDuration=!0}return t}({...i,velocity:-((i.velocity||0)/1e3)}),m=f||0,y=d/(2*Math.sqrt(u*h)),g=o-a,b=Math.sqrt(u/h)/1e3,_=5>Math.abs(g);if(n||(n=_?t$.restSpeed.granular:t$.restSpeed.default),s||(s=_?t$.restDelta.granular:t$.restDelta.default),y<1){let e=tz(b,y);r=t=>o-Math.exp(-y*b*t)*((m+y*b*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}else if(1===y)r=e=>o-Math.exp(-b*e)*(g+(m+b*g)*e);else{let e=b*Math.sqrt(y*y-1);r=t=>{let r=Math.exp(-y*b*t),i=Math.min(e*t,300);return o-r*((m+y*b*g)*Math.sinh(i)+e*g*Math.cosh(i))/e}}let x={calculatedDuration:p&&c||null,next:e=>{let t=r(e);if(p)l.done=e>=c;else{let i=0;y<1&&(i=0===e?I(m):tU(r,e,t));let a=Math.abs(o-t)<=s;l.done=Math.abs(i)<=n&&a}return l.value=l.done?o:t,l},toString:()=>{let e=Math.min(v(x),2e4),t=T(t=>x.next(e*t).value,e,30);return e+"ms "+t}};return x}function tK({keyframes:e,velocity:t=0,power:r=.8,timeConstant:i=325,bounceDamping:n=10,bounceStiffness:s=500,modifyTarget:a,min:o,max:l,restDelta:u=.5,restSpeed:d}){let h,c,f=e[0],p={done:!1,value:f},m=r*t,y=f+m,g=void 0===a?y:a(y);g!==y&&(m=g-f);let v=e=>-m*Math.exp(-e/i),b=e=>g+v(e),_=e=>{let t=v(e),r=b(e);p.done=Math.abs(t)<=u,p.value=p.done?g:r},x=e=>{let t;if(t=p.value,void 0!==o&&t<o||void 0!==l&&t>l){var r;h=e,c=tH({keyframes:[p.value,(r=p.value,void 0===o?l:void 0===l||Math.abs(o-r)<Math.abs(l-r)?o:l)],velocity:tU(b,e,p.value),damping:n,stiffness:s,restDelta:u,restSpeed:d})}};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return(c||void 0!==h||(t=!0,_(e),x(e)),void 0!==h&&e>=h)?c.next(e-h):(t||_(e),p)}}}let tY=eh(.42,0,1,1),tX=eh(0,0,.58,1),tG=eh(.42,0,.58,1),tJ={linear:B,easeIn:tY,easeInOut:tG,easeOut:tX,circIn:ev,circInOut:e_,circOut:eb,backIn:em,backInOut:ey,backOut:ep,anticipate:eg},tQ=e=>{if(x(e)){B(4===e.length,"Cubic bezier arrays must contain four numerical values.");let[t,r,i,n]=e;return eh(t,r,i,n)}return"string"==typeof e?(B(void 0!==tJ[e],`Invalid easing type '${e}'`),tJ[e]):e};function t0({duration:e=300,keyframes:t,times:r,ease:i="easeInOut"}){var n;let s=Array.isArray(i)&&"number"!=typeof i[0]?i.map(tQ):tQ(i),a={done:!1,value:t[0]},o=function(e,t,{clamp:r=!0,ease:i,mixer:n}={}){let s=e.length;if(B(s===t.length,"Both input and output ranges must be the same length"),1===s)return()=>t[0];if(2===s&&t[0]===t[1])return()=>t[1];let a=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());
1let o=function(e,t,r){let i=[],n=r||tN,s=e.length-1;for(let r=0;r<s;r++){let s=n(e[r],e[r+1]);t&&(s=tV(Array.isArray(t)?t[r]||B:t,s)),i.push(s)}return i}(t,i,n),l=o.length,u=r=>{if(a&&r<e[0])return t[0];let i=0;if(l>1)for(;i<e.length-2&&!(r<e[i+1]);i++);let n=A(e[i],e[i+1],r);return o[i](n)};return r?t=>u(ew(e[0],e[s-1],t)):u}((n=r&&r.length===t.length?r:function(e){let t=[0];return!function(e,t){let r=e[e.length-1];for(let i=1;i<=t;i++){let n=A(0,t,i);e.push(tT(r,1,n))}}(t,e.length-1),t}(t),n.map(t=>t*e)),t,{ease:Array.isArray(s)?s:t.map(()=>s||tG).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}let t1=e=>{let t=({timestamp:t})=>e(t);return{start:()=>H.update(t,!0),stop:()=>K(t),now:()=>Y.isProcessing?Y.timestamp:J.now()}},t2={decay:tK,inertia:tK,tween:t0,keyframes:t0,spring:tH},t4=e=>e/100;class t5 extends tA{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,"idle"===this.state)return;this.teardown();let{onStop:e}=this.options;e&&e()};let{name:t,motionValue:r,element:i,keyframes:n}=this.options,s=(null==i?void 0:i.KeyframeResolver)||tu,a=(e,t)=>this.onKeyframesResolved(e,t);this.resolver=new s(n,a,t,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){let t,r,{type:i="keyframes",repeat:n=0,repeatDelay:s=0,repeatType:a,velocity:o=0}=this.options,l=b(i)?i:t2[i]||t0;l!==t0&&"number"!=typeof e[0]&&(t=tV(t4,tN(e[0],e[1])),e=[0,100]);let u=l({...this.options,keyframes:e});"mirror"===a&&(r=l({...this.options,keyframes:[...e].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=v(u));let{calculatedDuration:d}=u,h=d+s;return{generator:u,mirroredGenerator:r,mapPercentToKeyframes:t,calculatedDuration:d,resolvedDuration:h,totalDuration:h*(n+1)-s}}onPostResolved(){let{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){let{resolved:r}=this;if(!r){let{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}let{finalKeyframe:i,generator:n,mirroredGenerator:s,mapPercentToKeyframes:a,keyframes:o,calculatedDuration:l,totalDuration:u,resolvedDuration:d}=r;if(null===this.startTime)return n.next(0);let{delay:h,repeat:c,repeatType:f,repeatDelay:p,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;let y=this.currentTime-h*(this.speed>=0?1:-1),g=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let v=this.currentTime,b=n;if(c){let e=Math.min(this.currentTime,u)/d,t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,(t=Math.min(t,c+1))%2&&("reverse"===f?(r=1-r,p&&(r-=p/d)):"mirror"===f&&(b=s)),v=ew(0,1,r)*d}let _=g?{done:!1,value:o[0]}:b.next(v);a&&(_.value=a(_.value));let{done:x}=_;g||null===l||(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);let w=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return w&&void 0!==i&&(_.value=tk(o,this.options,i)),m&&m(_.value),w&&this.finish(),_}get duration(){let{resolved:e}=this;return e?e.calculatedDuration/1e3:0}get time(){return this.currentTime/1e3}set time(e){e=I(e),this.currentTime=e,null!==this.holdTime||0===this.speed?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=this.currentTime/1e3)}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;let{driver:e=t1,onPlay:t,startTime:r}=this.options;this.driver||(this.driver=e(e=>this.tick(e))),t&&t();let i=this.driver.now();null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=i):this.startTime=null!=r?r:this.calcStartTime(),"finished"===this.state&&this.updateFinishedProm
1ise(),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=null!=(e=this.currentTime)?e:0}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";let{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}let t3=new Set(["opacity","clipPath","filter","transform"]),t6=f(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),t8={anticipate:eg,backInOut:ey,circInOut:e_};class t9 extends tA{constructor(e){super(e);let{name:t,motionValue:r,element:i,keyframes:n}=this.options;this.resolver=new t_(n,(e,t)=>this.onKeyframesResolved(e,t),t,r,i),this.resolver.scheduleResolve()}initPlayback(e,t){var r;let{duration:i=300,times:n,ease:s,type:a,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if("string"==typeof s&&k()&&s in t8&&(s=t8[s]),b((r=this.options).type)||"spring"===r.type||!function e(t){return!!("function"==typeof t&&k()||!t||"string"==typeof t&&(t in E||k())||x(t)||Array.isArray(t)&&t.every(e))}(r.ease)){let{onComplete:t,onUpdate:r,motionValue:o,element:l,...u}=this.options,d=function(e,t){let r=new t5({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0}),i={done:!1,value:e[0]},n=[],s=0;for(;!i.done&&s<2e4;)n.push((i=r.sample(s)).value),s+=10;return{times:void 0,keyframes:n,duration:s-10,ease:"linear"}}(e,u);1===(e=d.keyframes).length&&(e[1]=e[0]),i=d.duration,n=d.times,s=d.ease,a="keyframes"}let d=function(e,t,r,{delay:i=0,duration:n=300,repeat:s=0,repeatType:a="loop",ease:o="easeInOut",times:l}={}){let u={[t]:r};l&&(u.offset=l);let d=function e(t,r){if(t)return"function"==typeof t&&k()?T(t,r):x(t)?S(t):Array.isArray(t)?t.map(t=>e(t,r)||E.easeOut):E[t]}(o,n);return Array.isArray(d)&&(u.easing=d),e.animate(u,{delay:i,duration:n,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:s+1,direction:"reverse"===a?"alternate":"normal"})}(o.owner.current,l,e,{...this.options,duration:i,times:n,ease:s});return d.startTime=null!=u?u:this.calcStartTime(),this.pendingTimeline?(_(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{let{onComplete:r}=this.options;o.set(tk(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:i,times:n,type:a,ease:s,keyframes:e}}get duration(){let{resolved:e}=this;if(!e)return 0;let{duration:t}=e;return t/1e3}get time(){let{resolved:e}=this;if(!e)return 0;let{animation:t}=e;return(t.currentTime||0)/1e3}set time(e){let{resolved:t}=this;if(!t)return;let{animation:r}=t;r.currentTime=I(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:r}=t;r.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){let{resolved:t}=this;if(!t)return B;let{animation:r}=t;_(r,e)}else this.pendingTimeline=e;return B}play(){if(this.isStopped)return;let{resolved:e}=this;if(!e)return;let{animation:t}=e;"finished"===t.playState&&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,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();let{resolved:e}=this;if(!e)return;let{animation:t,keyframes:r,duration:i,type:n,ease:s,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){let{motionValue:e,onUpdate:t,onComplete:o,element:l,...u}=this.options,d=new t5({...u,keyframes:r,duration:i,type:n,ease:s,times:a,isGenerator:!0}),h=I(this.time);e.setWithVelocity(d.sample(h-10).value,d.sample(h).value,10)}let{onStop:o}=this.options;o&&o(),this.cancel()}complete(){let{resolved:e}=this;e&&e.animation.finish()}cancel(){let{resolved:e}=this;e&&e.animation.cancel()}
1static supports(e){let{motionValue:t,name:r,repeatDelay:i,repeatType:n,damping:s,type:a}=e;if(!t||!t.owner||!(t.owner.current instanceof HTMLElement))return!1;let{onUpdate:o,transformTemplate:l}=t.owner.getProps();return t6()&&r&&t3.has(r)&&!o&&!l&&!i&&"mirror"!==n&&0!==s&&"inertia"!==a}}let t7={type:"spring",stiffness:500,damping:25,restSpeed:10},re={type:"keyframes",duration:.8},rt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rr=(e,t,r,i={},n,s)=>a=>{let o=g(i,e)||{},l=o.delay||i.delay||0,{elapsed:u=0}=i;u-=I(l);let d={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:e=>{t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:()=>{a(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:s?void 0:n};!function({when:e,delay:t,delayChildren:r,staggerChildren:i,staggerDirection:n,repeat:s,repeatType:a,repeatDelay:o,from:l,elapsed:u,...d}){return!!Object.keys(d).length}(o)&&(d={...d,...((e,{keyframes:t})=>t.length>2?re:U.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:t7:rt)(e,d)}),d.duration&&(d.duration=I(d.duration)),d.repeatDelay&&(d.repeatDelay=I(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let h=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(d.duration=0,0===d.delay&&(h=!0)),(eu.current||Z.skipAnimations)&&(h=!0,d.duration=0,d.delay=0),h&&!s&&void 0!==t.get()){let e=tk(d.keyframes,o);if(void 0!==e)return H.update(()=>{d.onUpdate(e),d.onComplete()}),new y([])}return!s&&t9.supports(d)?new t9(d):new t5(d)};function ri(e,t,{delay:r=0,transitionOverride:i,type:n}={}){var s;let{transition:a=e.getDefaultTransition(),transitionEnd:o,...l}=t;i&&(a=i);let u=[],h=n&&e.animationState&&e.animationState.getState()[n];for(let t in l){let i=e.getValue(t,null!=(s=e.latestValues[t])?s:null),n=l[t];if(void 0===n||h&&function({protectedKeys:e,needsAnimating:t},r){let i=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,i}(h,t))continue;let o={delay:r,...g(a||{},t)},d=!1;if(window.MotionHandoffAnimation){let r=e.props[el];if(r){let e=window.MotionHandoffAnimation(r,t,H);null!==e&&(o.startTime=e,d=!0)}}ea(e,t),i.start(rr(t,i,n,e.shouldReduceMotion&&$.has(t)?{type:!1}:o,e,d));let c=i.animation;c&&u.push(c)}return o&&Promise.all(u).then(()=>{H.update(()=>{o&&function(e,t){let{transitionEnd:r={},transition:i={},...n}=d(e,t)||{};for(let t in n={...n,...r}){let r=z(n[t]);e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,en(r))}}(e,o)})}),u}function rn(e,t,r={}){var i;let n=d(e,t,"exit"===r.type?null==(i=e.presenceContext)?void 0:i.custom:void 0),{transition:s=e.getDefaultTransition()||{}}=n||{};r.transitionOverride&&(s=r.transitionOverride);let a=n?()=>Promise.all(ri(e,n,r)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:n=0,staggerChildren:a,staggerDirection:o}=s;return function(e,t,r=0,i=0,n=1,s){let a=[],o=(e.variantChildren.size-1)*i,l=1===n?(e=0)=>e*i:(e=0)=>o-e*i;return Array.from(e.variantChildren).sort(rs).forEach((e,i)=>{e.notify("AnimationStart",t),a.push(rn(e,t,{...s,delay:r+l(i)}).then(()=>e.notify("AnimationComplete",t)))}),Promise.all(a)}(e,t,n+i,a,o,r)}:()=>Promise.resolve(),{when:l}=s;if(!l)return Promise.all([a(),o(r.delay)]);{let[e,t]="beforeChildren"===l?[a,o]:[o,a];return e().then(()=>t())}}function rs(e,t){return e.sortNodePosition(t)}let ra=c.length,ro=[...h].reverse(),rl=h.length;function ru(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function rd(){return{animate:ru(!0),whileInView:ru(),whileHover:ru(),whileTap:ru(),whileDrag:ru(),whileFocus:ru(),exit:ru()}}class rh{constructor(e){this.isMounted=!1,this.node=e}update(){}}class rc extends rh{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:r})=>(function(e,t,r={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>rn(e,t,r)));else if("string"==typeof t)i=rn(e,t,r);else{let n="function"==typeof t?d(e,t,r.custom):t;i=Promise.all(ri(e,n,r))}return i.then(()=>{e.notify("AnimationComplete",t)})})(e,t,r))),r=rd(),i=!0,l=t=>(r,i)=>{var n;let s=d(e,i,"exit"===t?null==(n=e.presenceContext)?void 0:n.custom:void 0);if(s){let{transition:e,transitionEnd:t,...i}=s;r={...r,...i,...t}}return r};function u(u){let{props:d}=e,h=function e(t){if(!t)return;if(!t.isControllingVariants){let r=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(r.initial=t.props.initial),r}let r={};for(let e=0;e<ra;e++){let i=c[e],n=t.props[i];(o(n)||!1===n)&&(r[i]=n)}return r}(e.parent)||{},f=[],p=new Set,m={},y=1/0;for(let t=0;t<rl;t++){var g,v;let c=ro[t],b=r[c],_=void 0!==d[c]?d[c]:h[c],x=o(_),w=c===u?b.isActive:null;!1===w&&(y=t);let k=_===h[c]&&_!==d[c]&&x;if(k&&i&&e.manuallyAnimateOnMount&&(k=!1),b.protectedKeys={...m},!b.isActive&&null===w||!_&&!b.prevProp||n(_)||"boolean"==typeof _)continue;let A=(g=b.prevProp,"string"==typeof(v=_)?v!==g:!!Array.isArray(v)&&!a(v,g)),T=A||c===u&&b.isActive&&!k&&x||t>y&&x,S=!1,E=Array.isArray(_)?_:[_],P=E.reduce(l(c),{});!1===w&&(P={});let{prevResolvedValues:C={}}=b,M={...C,...P},R=t=>{T=!0,p.has(t)&&(S=!0,p.delete(t)),b.needsAnimating[t]=!0;let r=e.getValue(t);r&&(r.liveStyle=!1)};for(let e in M){let t=P[e],r=C[e];if(!m.hasOwnProperty(e))(s(t)&&s(r)?a(t,r):t===r)?void 0!==t&&p.has(e)?R(e):b.protectedKeys[e]=!0:null!=t?R(e):p.add(e)}b.prevProp=_,b.prevResolvedValues=P,b.isActive&&(m={...m,...P}),i&&e.blockInitialAnimation&&(T=!1);let O=!(k&&A)||S;T&&O&&f.push(...E.map(e=>({animation:e,options:{type:c}})))}if(p.size){let t={};p.forEach(r=>{let i=e.getBaseTarget(r),n=e.getValue(r);n&&(n.liveStyle=!0),t[r]=null!=i?i:null}),f.push({animation:t})}let b=!!f.length;return i&&(!1===d.initial||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,b?t(f):Prom
1ise.resolve()}return{animateChanges:u,setActive:function(t,i){var n;if(r[t].isActive===i)return Promise.resolve();null==(n=e.variantChildren)||n.forEach(e=>{var r;return null==(r=e.animationState)?void 0:r.setActive(t,i)}),r[t].isActive=i;let s=u(t);for(let e in r)r[e].protectedKeys={};return s},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=rd(),i=!0}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();n(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(),null==(e=this.unmountControls)||e.call(this)}}let rf=0;class rp extends rh{constructor(){super(...arguments),this.id=rf++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>t(this.id))}mount(){let{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}function rm(e,t,r,i={passive:!0}){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r)}function ry(e){return{point:{x:e.pageX,y:e.pageY}}}function rg(e,t,r,i){return rm(e,t,e=>O(e)&&r(e,ry(e)),i)}let rv=(e,t)=>Math.abs(e-t);class rb{constructor(e,t,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:n=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=rw(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){return Math.sqrt(rv(e.x,t.x)**2+rv(e.y,t.y)**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;let{point:i}=e,{timestamp:n}=Y;this.history.push({...i,timestamp:n});let{onStart:s,onMove:a}=this.handlers;t||(s&&s(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=r_(t,this.transformPagePoint),H.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:r,onSessionEnd:i,resumeAnimation:n}=this.handlers;if(this.dragSnapToOrigin&&n&&n(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let s=rw("pointercancel"===e.type?this.lastMoveEventInfo:r_(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,s),i&&i(e,s)},!O(e))return;this.dragSnapToOrigin=n,this.handlers=t,this.transformPagePoint=r,this.contextWindow=i||window;let s=r_(ry(e),this.transformPagePoint),{point:a}=s,{timestamp:o}=Y;this.history=[{...a,timestamp:o}];let{onSessionStart:l}=t;l&&l(e,rw(s,this.history)),this.removeListeners=tV(rg(this.contextWindow,"pointermove",this.handlePointerMove),rg(this.contextWindow,"pointerup",this.handlePointerUp),rg(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),K(this.updatePoint)}}function r_(e,t){return t?{point:t(e.point)}:e}function rx(e,t){return{x:e.x-t.x,y:e.y-t.y}}function rw({point:e},t){return{point:e,delta:rx(e,rk(t)),offset:rx(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,i=null,n=rk(e);for(;r>=0&&(i=e[r],!(n.timestamp-i.timestamp>I(.1)));)r--;if(!i)return{x:0,y:0};let s=(n.timestamp-i.timestamp)/1e3;if(0===s)return{x:0,y:0};let a={x:(n.x-i.x)/s,y:(n.y-i.y)/s};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}(t,.1)}}function rk(e){return e[e.length-1]}function rA(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function rT(e){return e.max-e.min}function rS(e,t,r,i=.5){e.origin=i,e.originPoint=tT(t.min,t.max,e.origin),e.scale=rT(r)/rT(t),e.translate=tT(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function rE(e,t,r,i){rS(e.x,t.x,r.x,i?i.originX:void 0),rS(e.y,t.y,r.y,i?i.originY:void 0)}function rP(e,t,r){e.min=r.min+t.min,e.max=e.min+rT(t)}function rC(e,t,r){e.min=t.min-r.min,e.max=e.min+rT(t)}function rM(e,t,r){rC(e.x,t.x,r.x),rC(e.y,t.y,r.y)}function rR(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function rO(e,t){let r=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,i]=[i,r]),{min:r,max:i}}function rV(e,t,r){return{min:rj(e,t),max:rj(e,r)}}function rj(e,t){return"number"==typeof e?e:e[t]||0}let rL=()=>({translate:0,scale:1,origin:0,originPoint:0}),rD=()=>({x:rL(),y:rL()}),rF=()=>({min:0,max:0}),rI=()=>({x:rF(),y:rF()});function rB(e){return[e("x"),e("y")]}function rN({top:e,left:t,right:r,bottom:i}){return{x:{min:t,max:r},y:{min:e,max:i}}}function rU(e){return void 0===e||1===e}function r$({scale:e,scaleX:t,scaleY:r}){return!rU(e)||!rU(t)||!rU(r)}function rz(e){return r$(e)||rZ(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function rZ(e){var t,r;return(t=e.x)&&"0%"!==t||(r=e.y)&&"0%"!==r}function rq(e,t,r,i,n){return void 0!==n&&(e=i+n*(e-i)),i+r*(e-i)+t}function rW(e,t=0,r=1,i,n){e.min=rq(e.min,t,r,i,n),e.max=rq(e.max,t,r,i,n)}function rH(e,{x:t,y:r}){rW(e.x,t.translate,t.scale,t.originPoint),rW(e.y,r.translate,r.scale,r.originPoint)}function rK(e,t){e.min=e.min+t,e.max=e.max+t}function rY(e,t,r,i,n=.5){let s=tT(e.min,e.max,n);rW(e,t,r,s,i)}function rX(e,t){rY(e.x,t.x,t.scaleX,t.scale,t.originX),rY(e.y,t.y,t.scaleY,t.scale,t.originY)}function rG(e,t){return rN(function(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}let rJ=({current:e})=>e?e.ownerDocument.defaultView:null,rQ=new WeakMap;class r0{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rI(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){let{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;let i=e=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(ry(e).point)},n=(e,t)=>{let{drag:r,dragPropagation:i,onDragStart:n}=this.getProps();if(r&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(e){if("x"===e||"
1y"===e)if(P[e])return null;else return P[e]=!0,()=>{P[e]=!1};return P.x||P.y?null:(P.x=P.y=!0,()=>{P.x=P.y=!1})}(r),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rB(e=>{let t=this.getAxisMotionValue(e).get()||0;if(eD.test(t)){let{projection:r}=this.visualElement;if(r&&r.layout){let i=r.layout.layoutBox[e];i&&(t=rT(i)*(parseFloat(t)/100))}}this.originPoint[e]=t}),n&&H.postRender(()=>n(e,t)),ea(this.visualElement,"transform");let{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},s=(e,t)=>{let{dragPropagation:r,dragDirectionLock:i,onDirectionLock:n,onDrag:s}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:a}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),null!==this.currentDirection&&n&&n(this.currentDirection);return}this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),s&&s(e,t)},a=(e,t)=>this.stop(e,t),o=()=>rB(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())}),{dragSnapToOrigin:l}=this.getProps();this.panSession=new rb(e,{onSessionStart:i,onStart:n,onMove:s,onSessionEnd:a,resumeAnimation:o},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,contextWindow:rJ(this.visualElement)})}stop(e,t){let r=this.isDragging;if(this.cancel(),!r)return;let{velocity:i}=t;this.startAnimation(i);let{onDragEnd:n}=this.getProps();n&&H.postRender(()=>n(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:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){let{drag:i}=this.getProps();if(!r||!r1(e,i,this.currentDirection))return;let n=this.getAxisMotionValue(e),s=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(s=function(e,{min:t,max:r},i){return void 0!==t&&e<t?e=i?tT(t,e,i.min):Math.max(e,t):void 0!==r&&e>r&&(e=i?tT(r,e,i.max):Math.min(e,r)),e}(s,this.constraints[e],this.elastic[e])),n.set(s)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,n=this.constraints;t&&rA(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(e,{top:t,left:r,bottom:i,right:n}){return{x:rR(e.x,r,n),y:rR(e.y,t,i)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:rV(e,"left","right"),y:rV(e,"top","bottom")}}(r),n!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&rB(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(i.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!rA(t))return!1;let i=t.current;B(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:n}=this.visualElement;if(!n||!n.layout)return!1;let s=function(e,t,r){let i=rG(e,r),{scroll:n}=t;return n&&(rK(i.x,n.offset.x),rK(i.y,n.offset.y)),i}(i,n.root,this.visualElement.getTransformPagePoint()),a=(e=n.layout.layoutBox,{x:rO(e.x,s.x),y:rO(e.y,s.y)});if(r){let e=r(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(a));this.hasMutatedConstraints=!!e,e&&(a=rN(e))}return a}startAnimation(e){let{drag:t,dragMomentum:r,dragElastic:i,dragTransition:n,dragSnapToOrigin:s,onDragTransitionEnd:a}=this.getProps(),o=this.constraints||{};return Promise.all(rB(a=>
1{if(!r1(a,t,this.currentDirection))return;let l=o&&o[a]||{};s&&(l={min:0,max:0});let u={type:"inertia",velocity:r?e[a]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...n,...l};return this.startAxisValueAnimation(a,u)})).then(a)}startAxisValueAnimation(e,t){let r=this.getAxisMotionValue(e);return ea(this.visualElement,e),r.start(rr(e,r,0,t,this.visualElement,!1))}stopAnimation(){rB(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){rB(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){rB(t=>{let{drag:r}=this.getProps();if(!r1(t,r,this.currentDirection))return;let{projection:i}=this.visualElement,n=this.getAxisMotionValue(t);if(i&&i.layout){let{min:r,max:s}=i.layout.layoutBox[t];n.set(e[t]-tT(r,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!rA(t)||!r||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};rB(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let r=t.get();i[e]=function(e,t){let r=.5,i=rT(e),n=rT(t);return n>i?r=A(t.min,t.max-i,e.min):i>n&&(r=A(e.min,e.max-n,t.min)),ew(0,1,r)}({min:r,max:r},this.constraints[e])}});let{transformTemplate:n}=this.visualElement.getProps();this.visualElement.current.style.transform=n?n({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rB(t=>{if(!r1(t,e,null))return;let r=this.getAxisMotionValue(t),{min:n,max:s}=this.constraints[t];r.set(tT(n,s,i[t]))})}addListeners(){if(!this.visualElement.current)return;rQ.set(this.visualElement,this);let e=rg(this.visualElement.current,"pointerdown",e=>{let{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)}),t=()=>{let{dragConstraints:e}=this.getProps();rA(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,i=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),H.read(t);let n=rm(window,"resize",()=>this.scalePositionWithinConstraints()),s=r.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(rB(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{n(),e(),i(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:n=!1,dragElastic:s=.35,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:i,dragConstraints:n,dragElastic:s,dragMomentum:a}}}function r1(e,t,r){return(!0===t||t===e)&&(null===r||r===e)}class r2 extends rh{constructor(e){super(e),this.removeGroupControls=B,this.removeListeners=B,this.controls=new r0(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||B}unmount(){this.removeGroupControls(),this.removeListeners()}}let r4=e=>(t,r)=>{e&&H.postRender(()=>e(t,r))};class r5 extends rh{constructor(){super(...arguments),this.removePointerDownListener=B}onPointerDown(e){this.session=new rb(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:rJ(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:r4(e),onStart:r4(t),onMove:r,onEnd:(e,t)=>{delete this.session,i&&H.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=rg(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var r3,r6,r8=r(5155),r9=r(2115);let r7=(0,r9.createContext)(null),ie=(0,r9.createContext)({}),it=(0,r9.createContext)({}),ir={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ii(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let is={correct:(e,t)=>
1{if(!t.target)return e;if("string"==typeof e)if(!eF.test(e))return e;else e=parseFloat(e);let r=ii(e,t.target.x),i=ii(e,t.target.y);return`${r}% ${i}%`}},ia={},{schedule:io,cancel:il}=W(queueMicrotask,!1);class iu extends r9.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:i}=this.props,{projection:n}=e;Object.assign(ia,ih),n&&(t.group&&t.group.add(n),r&&r.register&&i&&r.register(n),n.root.didUpdate(),n.addEventListener("animationComplete",()=>{this.safeToRemove()}),n.setOptions({...n.options,onExitComplete:()=>this.safeToRemove()})),ir.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:r,drag:i,isPresent:n}=this.props,s=r.projection;return s&&(s.isPresent=n,i||e.layoutDependency!==t||void 0===t?s.willUpdate():this.safeToRemove(),e.isPresent!==n&&(n?s.promote():s.relegate()||H.postRender(()=>{let e=s.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),io.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:i}=e;i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function id(e){let[t,r]=function(e=!0){let t=(0,r9.useContext)(r7);if(null===t)return[!0,null];let{isPresent:r,onExitComplete:i,register:n}=t,s=(0,r9.useId)();(0,r9.useEffect)(()=>{e&&n(s)},[e]);let a=(0,r9.useCallback)(()=>e&&i&&i(s),[s,i,e]);return!r&&i?[!1,a]:[!0]}(),i=(0,r9.useContext)(ie);return(0,r8.jsx)(iu,{...e,layoutGroup:i,switchLayoutGroup:(0,r9.useContext)(it),isPresent:t,safeToRemove:r})}let ih={borderRadius:{...is,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:is,borderTopRightRadius:is,borderBottomLeftRadius:is,borderBottomRightRadius:is,boxShadow:{correct:(e,{treeScale:t,projectionDelta:r})=>{let i=eG.parse(e);if(i.length>5)return e;let n=eG.createTransformer(e),s=+("number"!=typeof i[0]),a=r.x.scale*t.x,o=r.y.scale*t.y;i[0+s]/=a,i[1+s]/=o;let l=tT(a,o,.5);return"number"==typeof i[2+s]&&(i[2+s]/=l),"number"==typeof i[3+s]&&(i[3+s]/=l),n(i)}}},ic=(e,t)=>e.depth-t.depth;class ip{constructor(){this.children=[],this.isDirty=!1}add(e){Q(this.children,e),this.isDirty=!0}remove(e){ee(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ic),this.isDirty=!1,this.children.forEach(e)}}function im(e){let t=es(e)?e.get():e;return t&&"object"==typeof t&&t.mix&&t.toValue?t.toValue():t}let iy=["TopLeft","TopRight","BottomLeft","BottomRight"],ig=iy.length,iv=e=>"string"==typeof e?parseFloat(e):e,ib=e=>"number"==typeof e||eF.test(e);function i_(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let ix=ik(0,.5,eb),iw=ik(.5,.95,B);function ik(e,t,r){return i=>i<e?0:i>t?1:r(A(e,t,i))}function iA(e,t){e.min=t.min,e.max=t.max}function iT(e,t){iA(e.x,t.x),iA(e.y,t.y)}function iS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function iE(e,t,r,i,n){return e-=t,e=i+1/r*(e-i),void 0!==n&&(e=i+1/n*(e-i)),e}function iP(e,t,[r,i,n],s,a){!function(e,t=0,r=1,i=.5,n,s=e,a=e){if(eD.test(t)&&(t=parseFloat(t),t=tT(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let o=tT(s.min,s.max,i);e===s&&(o-=t),e.min=iE(e.min,t,r,o,n),e.max=iE(e.max,t,r,o,n)}(e,t[r],t[i],t[n],t.scale,s,a)}let iC=["x","scaleX","originX"],iM=["y","scaleY","originY"];function iR(e,t,r,i){iP(e.x,t,iC,r?r.x:void 0,i?i.x:void 0),iP(e.y,t,iM,r?r.y:void 0,i?i.y:void 0)}function iO(e){return 0===e.translate&&1===e.scale}function iV(e){return iO(e.x)&&iO(e.y)}function ij(e,t){return e.min===t.min&&e.max===t.max}function iL(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function iD(e,t){return iL(e.x,t.x)&&iL(e.y,t.y)}function iF(e){return rT(e.x)/rT(e.y)}function iI(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class iB{constructor(){this.members=[]}add(e){Q(this.members,e),e.scheduleRender()}remove(e){if(ee(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t,r=this.members.findIndex(t=>e===t);if(0===r)return!1;for(let e=r;e>=0;e--){let r=this.members[e];if(!1!==r.isPresent){t=r;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);let{crossfade:i}=e.options;!1===i&&r.hide()}}
1exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let iN={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},iU="undefined"!=typeof window&&void 0!==window.MotionDebug,i$=["","X","Y","Z"],iz={visibility:"hidden"},iZ=0;function iq(e,t,r,i){let{latestValues:n}=t;n[e]&&(r[e]=n[e],t.setStaticValue(e,0),i&&(i[e]=0))}function iW({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:i,resetTransform:n}){return class{constructor(e={},r=null==t?void 0:t()){this.id=iZ++,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,iU&&(iN.totalNodes=iN.resolvedTargetDeltas=iN.recalculatedProjection=0),this.nodes.forEach(iY),this.nodes.forEach(i2),this.nodes.forEach(i4),this.nodes.forEach(iX),iU&&window.MotionDebug.record(iN)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ip)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new et),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=t instanceof SVGElement&&"svg"!==t.tagName,this.instance=t;let{layoutId:i,layout:n,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(n||i)&&(this.isLayoutDirty=!0),e){let r,i=()=>this.root.updateBlockedByResize=!1;e(t,()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){let r=J.now(),i=({timestamp:t})=>{let n=t-r;n>=250&&(K(i),e(n-250))};return H.read(i,!0),()=>K(i)}(i,250),ir.hasAnimatedSinceResize&&(ir.hasAnimatedSinceResize=!1,this.nodes.forEach(i1))})}i&&this.root.registerSharedNode(i,this),!1!==this.options.animate&&s&&(i||n)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let n=this.options.transition||s.getDefaultTransition()||i7,{onLayoutAnimationStart:a,onLayoutAnimationComplete:o}=s.getProps(),l=!this.targetLayout||!iD(this.targetLayout,i)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);let t={...g(n,"layout"),onPlay:a,onComplete:o};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||i1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,K(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEac
1h(i5),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:r}=t.options;if(!r)return;let i=r.props[el];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",H,!(e||r))}let{parent:n}=t;n&&!n.hasCheckedOptimisedAppear&&e(n)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iJ);return}this.isUpdating||this.nodes.forEach(iQ),this.isUpdating=!1,this.nodes.forEach(i0),this.nodes.forEach(iH),this.nodes.forEach(iK),this.clearAllSnapshots();let e=J.now();Y.delta=ew(0,1e3/60,e-Y.timestamp),Y.timestamp=e,Y.isProcessing=!0,X.update.process(Y),X.preRender.process(Y),X.render.process(Y),Y.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,io.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iG),this.sharedNodes.forEach(i3)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,H.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){H.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rI(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!n)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!iV(this.projectionDelta),r=this.getTransformTemplate(),i=r?r(this.latestValues,""):void 0,s=i!==this.prevTransformTemplateValue;e&&(t||rz(this.latestValues)||s)&&(n(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let r=this.measurePageBox(),i=this.removeElementScroll(r);return e&&(i=this.removeTransform(i)),nr((t=i).x),nr(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return rI();let r=t.measureViewportBox();if(!((null==(e=this.scroll)?void 0:e.wasRoot)||this.path.some(nn))){let{scroll:e}=this.root;e&&(rK(r.x,e.offset.x),rK(r.y,e.offset.y))}return r}removeElementScroll(e){var t;let r=rI();if(iT(r,e),null==(t=this.scroll)?void 0:t.wasRoot)return r;for(let t=0;t<this.path.length;t++){let i=this.path[t],{scroll:n,options:s}=i;i!==this.root&&n&&s.layoutScroll&&(n.wasRoot&&iT(r,e),rK(r.x,n.offset.x),rK(r.y,n.offset.y))}return r}applyTransform(e,t=!1){let r=rI();iT(r,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&rX(r,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),rz(i.latestValues)&&rX(r,i.latestValues)}return rz(this.latestValues)&&rX(r,this.latestValues),r}removeTransform(e){let t=rI();iT(t,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];if(!r.instance||!rz(r.latestValues))continue;r$(r.latestValues)&&r.updateSnapshot();let i=rI();iT(i,r.measurePageBox()),iR(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,i)}return rz(this.latestValues)&&iR(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Y.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,r,i,n;let s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isS
1haredProjectionDirty);let a=!!this.resumingFrom||this!==s;if(!(e||a&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:o,layoutId:l}=this.options;if(this.layout&&(o||l)){if(this.resolvedRelativeTargetAt=Y.timestamp,!this.targetDelta&&!this.relativeTarget){let e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rI(),this.relativeTargetOrigin=rI(),rM(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),iT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=rI(),this.targetWithTransforms=rI()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),r=this.target,i=this.relativeTarget,n=this.relativeParent.target,rP(r.x,i.x,n.x),rP(r.y,i.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):iT(this.target,this.layout.layoutBox),rH(this.target,this.targetDelta)):iT(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let e=this.getClosestProjectingParent();e&&!!e.resumingFrom==!!this.resumingFrom&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rI(),this.relativeTargetOrigin=rI(),rM(this.relativeTargetOrigin,this.target,e.target),iT(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}iU&&iN.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||r$(this.parent.latestValues)||rZ(this.parent.latestValues)))if(this.parent.isProjecting())return this.parent;else return this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;let t=this.getLead(),r=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||(null==(e=this.parent)?void 0:e.isProjectionDirty))&&(i=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===Y.timestamp&&(i=!1),i)return;let{layout:n,layoutId:s}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(n||s))return;iT(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;!function(e,t,r,i=!1){let n,s,a=r.length;if(a){t.x=t.y=1;for(let o=0;o<a;o++){s=(n=r[o]).projectionDelta;let{visualElement:a}=n.options;(!a||!a.props.style||"contents"!==a.props.style.display)&&(i&&n.options.layoutScroll&&n.scroll&&n!==n.root&&rX(e,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,rH(e,s)),i&&rz(n.latestValues)&&rX(e,n.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}}(this.layoutCorrected,this.treeScale,this.path,r),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=rI());let{target:l}=t;if(!l){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(iS(this.prevProjectionDelta.x,this.projectionDelta.x),iS(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),rE(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===o&&iI(this.projectionDelta.x,this.prevProjectionDelta.x)&&iI(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),iU&&iN.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=rD(),this.projectionDelta=rD(),this.projectionDeltaWithTransform=rD()}setAnimationOrigin(e,t=!1){let r,i=this.snapshot,n=i?i.latestValues:{},s={...this.latestValues},a=rD();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=rI(),l=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),d=!u||u.members.length<=1,h=!!(l&&!d&&!0===this.options.crossfade&&!this.path.some(i9));this.animationProgress=0,this.mixTargetDelta=t=>{let i=t/1e3;if(i6(a.x,e.x,i),i6(a.y,e.y,i),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,c,f,p,m,y;rM(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,m=o,y=i,i8(f.x,p.x,m.x,y),i8(f.y,p.y,m.y,y),r&&(u=this.relativeTarget,c=r,ij(u.x,c.x)&&ij(u.y,c.y))&&(this.isProjectionDirty=!1),r||(r=rI()),iT(r,this.relativeTarget)}l&&(this.animationValues=s,function(e,t,r,i,n,s){n?(e.opacity=tT(0,void 0!==r.opacity?r.opacity:1,ix(i)),e.opacityExit=tT(void 0!==t.opacity?t.opacity:1,0,iw(i))):s&&(e.opacity=tT(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,i));for(let n=0;n<ig;n++){let s=`border${iy[n]}Radius`,a=i_(t,s),o=i_(r,s);(void 0!==a||void 0!==o)&&(a||(a=0),o||(o=0),0===a||0===o||ib(a)===ib(o)?(e[s]=Math.max(tT(iv(a),iv(o),i),0),(eD.test(o)||eD.test(a))&&(e[s]+="
1%")):e[s]=o)}(t.rotate||r.rotate)&&(e.rotate=tT(t.rotate||0,r.rotate||0,i))}(s,n,this.latestValues,i,h,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=i},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(K(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=H.update(()=>{ir.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){let i=es(0)?0:en(e);return i.start(rr("",i,1e3,r)),i.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:r,layout:i,latestValues:n}=e;if(t&&r&&i){if(this!==e&&this.layout&&i&&ni(this.options.animationType,this.layout.layoutBox,i.layoutBox)){r=this.target||rI();let t=rT(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;let i=rT(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+i}iT(t,r),rX(t,n),rE(this.projectionDeltaWithTransform,this.layoutCorrected,t,n)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new iB),this.sharedNodes.get(e).add(t);let r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){let i=this.getStack();i&&i.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;let i={};r.z&&iq("z",e,i,this.animationValues);for(let t=0;t<i$.length;t++)iq(`rotate${i$[t]}`,e,i,this.animationValues),iq(`skew${i$[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return iz;let i={visibility:""},n=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,i.opacity="",i.pointerEvents=im(null==e?void 0:e.pointerEvents)||"",i.transform=n?n(this.latestValues,""):"none",i;let s=this.getLead();if(!this.projectionDelta||!this.layout||!s.target){let t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=im(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!rz(this.latestValues)&&(t.transform=n?n({},""):"none",this.hasProjected=!1),t}let a=s.animationValues||s.latestValues;this.applyTransformsToTarget(),i.transform=function(e,t,r){let i="",n=e.x.translate/t.x,s=e.y.translate/t.y,a=(null==r?void 0:r.z)||0;if((n||s||a)&&(i=`translate3d(${n}px, ${s}px, ${a}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),r){let{transformPerspective:e,rotate:t,rotateX:n,rotateY:s,skewX:a,skewY:o}=r;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),n&&(i+=`rotateX(${n}deg) `),s&&(i+=`rotateY(${s}deg) `),a&&(i+=`skewX(${a}deg) `),o&&(i+=`skewY(${o}deg) `)}let o=e.x.scale*t.x,l=e.y.scale*t.y;return(1!==o||1!==l)&&(i+=`scale(${o}, ${l})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),n&&(i.transform=n(a,i.transform));let{x:o,y:l}=this.projectionDelta;for(let e in i.transformOrigin=`${100*o.origin}% ${100*l.origin}% 0`,s.animationValues?i.opacity=s===this?null!=(r=null!=(t=a.opacity)?t:this.latestValues.opacity)?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:i.opacity=s===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,ia){if(void 0===a[e])continue;let{correct:t,applyTo:r}=ia[e],n="none"===i.transform?a[e]:t(a[e],s);if(r){let e=r.length;for(let t=0;t<e;t++)i[r[t]]=n}else i[e]=n}return this.options.layoutId&&(i.pointerEvents=s===this?im(null==e?void 0:e.pointerEvents)||"":"none"),i}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
1resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(iJ),this.root.sharedNodes.clear()}}}function iH(e){e.updateLayout()}function iK(e){var t;let r=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:i}=e.layout,{animationType:n}=e.options,s=r.source!==e.layout.source;"size"===n?rB(e=>{let i=s?r.measuredBox[e]:r.layoutBox[e],n=rT(i);i.min=t[e].min,i.max=i.min+n}):ni(n,r.layoutBox,t)&&rB(i=>{let n=s?r.measuredBox[i]:r.layoutBox[i],a=rT(t[i]);n.max=n.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+a)});let a=rD();rE(a,t,r.layoutBox);let o=rD();s?rE(o,e.applyTransform(i,!0),r.measuredBox):rE(o,t,r.layoutBox);let l=!iV(a),u=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:n,layout:s}=i;if(n&&s){let a=rI();rM(a,r.layoutBox,n.layoutBox);let o=rI();rM(o,t,s.layoutBox),iD(a,o)||(u=!0),i.options.layoutRoot&&(e.relativeTarget=o,e.relativeTargetOrigin=a,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:o,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function iY(e){iU&&iN.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 iX(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function iG(e){e.clearSnapshot()}function iJ(e){e.clearMeasurements()}function iQ(e){e.isLayoutDirty=!1}function i0(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function i1(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function i2(e){e.resolveTargetDelta()}function i4(e){e.calcProjection()}function i5(e){e.resetSkewAndRotation()}function i3(e){e.removeLeadSnapshot()}function i6(e,t,r){e.translate=tT(t.translate,0,r),e.scale=tT(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function i8(e,t,r,i){e.min=tT(t.min,r.min,i),e.max=tT(t.max,r.max,i)}function i9(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let i7={duration:.45,ease:[.4,0,.1,1]},ne=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),nt=ne("applewebkit/")&&!ne("chrome/")?Math.round:B;function nr(e){e.min=nt(e.min),e.max=nt(e.max)}function ni(e,t,r){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(iF(t)-iF(r)))}function nn(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}let ns=iW({attachResizeListener:(e,t)=>rm(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),na={current:void 0},no=iW({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!na.current){let e=new ns({});e.mount(window),e.setOptions({layoutScroll:!0}),na.current=e}return na.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position});function nl(e,t,r){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===r);let n=i["onHover"+r];n&&H.postRender(()=>n(t,ry(t)))}class nu extends rh{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[i,n,s]=C(e,r),a=M(e=>{let{target:r}=e,i=t(e);if("function"!=typeof i||!r)return;let s=M(e=>{i(e),r.removeEventListener("pointerleave",s)});r.addEventListener("pointerleave",s,n)});return i.forEach(e=>{e.addEventListener("pointerenter",a,n)}),s}(e,e=>(nl(this.node,e,"Start"),e=>nl(this.node,e,"End"))))}unmount(){}}class nd extends rh{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=tV(rm(this.node.current,"focus",()=>this.onFocus()),rm(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function nh(e,t,r){let{props:i}=e;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===r);let n=i["onTap"+("End"===r?"":r)];n&&H.postRender(()=>n(t,ry(t)))}class nc extends rh{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){let[i,n,s]=C(e,r),a=e=>{let i=e.currentTarget;if(!F(e)||j.has(i))return;j.add(i);let s=t(e),a=(e,t)=>{window.removeEventListener("pointerup",o),window.removeEventListener("pointercancel",l),F(e)&&j.has(i)&&(j.delete(i),"function"==typeof s&&s(e,{success:t}))},o=e=>{a(e,r.useGlobalTarget||R(i,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",o,n),window.addEventListener("pointercancel",l,n)};
1return i.forEach(e=>{V.has(e.tagName)||-1!==e.tabIndex||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(r.useGlobalTarget?window:e).addEventListener("pointerdown",a,n),e.addEventListener("focus",e=>((e,t)=>{let r=e.currentTarget;if(!r)return;let i=L(()=>{if(j.has(r))return;D(r,"down");let e=L(()=>{D(r,"up")});r.addEventListener("keyup",e,t),r.addEventListener("blur",()=>D(r,"cancel"),t)});r.addEventListener("keydown",i,t),r.addEventListener("blur",()=>r.removeEventListener("keydown",i),t)})(e,n),n)}),s}(e,e=>(nh(this.node,e,"Start"),(e,{success:t})=>nh(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let nf=new WeakMap,np=new WeakMap,nm=e=>{let t=nf.get(e.target);t&&t(e)},ny=e=>{e.forEach(nm)},ng={some:0,all:1};class nv extends rh{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:i="some",once:n}=e,s={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof i?i:ng[i]},a=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,n&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:r,onViewportLeave:i}=this.node.getProps(),s=t?r:i;s&&s(e)};var o=this.node.current;let l=function({root:e,...t}){let r=e||document;np.has(r)||np.set(r,{});let i=np.get(r),n=JSON.stringify(t);return i[n]||(i[n]=new IntersectionObserver(ny,{root:e,...t})),i[n]}(s);return nf.set(o,a),l.observe(o),()=>{nf.delete(o),l.unobserve(o)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}let nb=(0,r9.createContext)({strict:!1}),n_=(0,r9.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),nx=(0,r9.createContext)({});function nw(e){return n(e.animate)||c.some(t=>o(e[t]))}function nk(e){return!!(nw(e)||e.variants)}function nA(e){return Array.isArray(e)?e.join(" "):e}let nT="undefined"!=typeof window,nS={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"]},nE={};for(let e in nS)nE[e]={isEnabled:t=>nS[e].some(e=>!!t[e])};let nP=Symbol.for("motionComponentSymbol"),nC=nT?r9.useLayoutEffect:r9.useEffect,nM=["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 nR(e){if("string"!=typeof e||e.includes("-"));else if(nM.indexOf(e)>-1||/[A-Z]/u.test(e))return!0;return!1}let nO=e=>(t,r)=>{let i=(0,r9.useContext)(nx),s=(0,r9.useContext)(r7),a=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:r},i,s,a){let o={latestValues:function(e,t,r,i){let s={},a=i(e,{});for(let e in a)s[e]=im(a[e]);let{initial:o,animate:l}=e,d=nw(e),h=nk(e);t&&h&&!d&&!1!==e.inherit&&(void 0===o&&(o=t.initial),void 0===l&&(l=t.animate));let c=!!r&&!1===r.initial,f=(c=c||!1===o)?l:o;if(f&&"boolean"!=typeof f&&!n(f)){let t=Array.isArray(f)?f:[f];for(let r=0;r<t.length;r++){let i=u(e,t[r]);if(i){let{transitionEnd:e,transition:t,...r}=i;for(let e in r){let t=r[e];if(Array.isArray(t)){let e=c?t.length-1:0;t=t[e]}null!==t&&(s[e]=t)}for(let t in e)s[t]=e[t]}}}return s}(i,s,a,e),renderState:t()};return r&&(o.onMount=e=>r({props:i,current:e,...o}),o.onUpdate=e=>r(e)),o})(e,t,i,s);return r?a():function(e){let t=(0,r9.useRef)(null);return null===t.current&&(t.current=e()),t.current}(a)},nV=(e,t)=>t&&"number"==typeof e?t.transform(e):e,nj={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},nL=N.length;function nD(e,t,r){let{style:i,vars:n,transformOrigin:s}=e,a=!1,o=!1;for(let e in t){let r=t[e];if(U.has(e)){a=!0;continue}if(tc(e)){n[e]=r;continue}{let t=nV(r,e4[e]);e.startsWith("origin")?(o=!0,s[e]=t):i[e]=t}}if(!t.transform&&(a||r?i.transform=function(e,t,r){let i="",n=!0;for(let s=0;s<nL;s++){let a=N[s],o=e[a];if(void 0===o)continue;let l=!0;if(!(l="number"==typeof o?o===+!!a.startsWith("scale"):0===parseFloat(o))||r){let e=nV(o,e4[a]);if(!l){n=!1;let t=nj[a]||a;i+=`${t}(${e}) `}r&&(t[a]=e)}}return i=i.trim(),r?i=r(t,n?"":i):n&&(i="none"),i}(t,e.transform,r):i.transform&&(i.transform="none")),o){let{originX:e="50%",originY:t="50%",originZ:r=0}=s;i.transformOrigin=`${e} ${t} ${r}`}}let nF={offset:"stroke-dashoffset",array:"stroke-dasharray"},nI={offset:"strokeDashoffset",array:"strokeDasharray"};function nB(e,t,r){return"string"==typeof e?e:eF.transform(t+r*e)}function nN(e,{attrX:t,attrY:r,attrScale:i,originX:n,originY:s,pathLength:a,pathSpacing:o=1,pathOffset:l=0,...u}
1,d,h){if(nD(e,u,h),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:c,style:f,dimensions:p}=e;c.transform&&(p&&(f.transform=c.transform),delete c.transform),p&&(void 0!==n||void 0!==s||f.transform)&&(f.transformOrigin=function(e,t,r){let i=nB(t,e.x,e.width),n=nB(r,e.y,e.height);return`${i} ${n}`}(p,void 0!==n?n:.5,void 0!==s?s:.5)),void 0!==t&&(c.x=t),void 0!==r&&(c.y=r),void 0!==i&&(c.scale=i),void 0!==a&&function(e,t,r=1,i=0,n=!0){e.pathLength=1;let s=n?nF:nI;e[s.offset]=eF.transform(-i);let a=eF.transform(t),o=eF.transform(r);e[s.array]=`${a} ${o}`}(c,a,o,l,!1)}let nU=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),n$=()=>({...nU(),attrs:{}}),nz=e=>"string"==typeof e&&"svg"===e.toLowerCase();function nZ(e,{style:t,vars:r},i,n){for(let s in Object.assign(e.style,t,n&&n.getProjectionStyles(i)),r)e.style.setProperty(s,r[s])}let nq=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 nW(e,t,r,i){for(let r in nZ(e,t,void 0,i),t.attrs)e.setAttribute(nq.has(r)?r:eo(r),t.attrs[r])}function nH(e,{layout:t,layoutId:r}){return U.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!ia[e]||"opacity"===e)}function nK(e,t,r){var i;let{style:n}=e,s={};for(let a in n)(es(n[a])||t.style&&es(t.style[a])||nH(a,e)||(null==(i=null==r?void 0:r.getValue(a))?void 0:i.liveStyle)!==void 0)&&(s[a]=n[a]);return s}function nY(e,t,r){let i=nK(e,t,r);for(let r in e)(es(e[r])||es(t[r]))&&(i[-1!==N.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return i}let nX=["x","y","width","height","cx","cy","r"],nG={useVisualState:nO({scrapeMotionValuesFromProps:nY,createRenderState:n$,onUpdate:({props:e,prevProps:t,current:r,renderState:i,latestValues:n})=>{if(!r)return;let s=!!e.drag;if(!s){for(let e in n)if(U.has(e)){s=!0;break}}if(!s)return;let a=!t;if(t)for(let r=0;r<nX.length;r++){let i=nX[r];e[i]!==t[i]&&(a=!0)}a&&H.read(()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(r,i),H.render(()=>{nN(i,n,nz(r.tagName),e.transformTemplate),nW(r,i)})})}})},nJ={useVisualState:nO({scrapeMotionValuesFromProps:nK,createRenderState:nU})};function nQ(e,t,r){for(let i in t)es(t[i])||nH(i,r)||(e[i]=t[i])}let n0=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 n1(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||n0.has(e)}let n2=e=>!n1(e);try{!function(e){e&&(n2=t=>t.startsWith("on")?!n1(t):e(t))}(require("@emotion/is-prop-valid").default)}catch(e){}let n4={current:null},n5={current:!1},n3=[...tv,e$,eG],n6=new WeakMap,n8=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class n9{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:n,visualState:s},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=tu,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 e=J.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,H.render(this.render,!1,!0))};let{latestValues:o,renderState:l,onUpdate:u}=s;this.onUpdate=u,this.latestValues=o,this.baseTarget={...o},this.initialValues=t.initial?{...o}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.options=a,this.blockInitialAnimation=!!n,this.isControllingVariants=nw(t),this.isVariantNode=nk(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:d,...h}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in h){let t=h[e];void 0!==o[e]&&es(t)&&t.set(o[e],!1)}}mount(e){this.current=e,n6.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.forEac
1h((e,t)=>this.bindToMotionValue(t,e)),n5.current||function(){if(n5.current=!0,nT)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>n4.current=e.matches;e.addListener(t),t()}else n4.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||n4.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let e in n6.delete(this.current),this.projection&&this.projection.unmount(),K(this.notifyUpdate),K(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),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){let r;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let i=U.has(e),n=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&H.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0)}),s=t.on("renderRequest",this.scheduleRender);window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{n(),s(),r&&r(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in nE){let t=nE[e];if(!t)continue;let{isEnabled:r,Feature:i}=t;if(!this.features[e]&&i&&r(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rI()}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 t=0;t<n8.length;t++){let r=n8[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let i=e["on"+r];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=function(e,t,r){for(let i in t){let n=t[i],s=r[i];if(es(n))e.addValue(i,n);else if(es(s))e.addValue(i,en(n,{owner:e}));else if(s!==n)if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(n):t.hasAnimated||t.set(n)}else{let t=e.getStaticValue(i);e.addValue(i,en(void 0!==t?t:n,{owner:e}))}}for(let i in r)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}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 r=this.values.get(e);t!==r&&(r&&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 r=this.values.get(e);return void 0===r&&void 0!==t&&(r=en(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let i=void 0===this.latestValues[e]&&this.current?null!=(r=this.getBaseTargetFromProps(this.props,e))?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];
1if(null!=i){if("string"==typeof i&&(td(i)||ex(i)))i=parseFloat(i);else{let r;r=i,!n3.find(tg(r))&&eG.test(t)&&(i=e6(e,t))}this.setBaseTarget(e,es(i)?i.get():i)}return es(i)?i.get():i}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let r,{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let n=u(this.props,i,null==(t=this.presenceContext)?void 0:t.custom);n&&(r=n[e])}if(i&&void 0!==r)return r;let n=this.getBaseTargetFromProps(this.props,e);return void 0===n||es(n)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:n}on(e,t){return this.events[e]||(this.events[e]=new et),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class n7 extends n9{constructor(){super(...arguments),this.KeyframeResolver=t_}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;es(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class se extends n7{constructor(){super(...arguments),this.type="html",this.renderInstance=nZ}readValueFromInstance(e,t){if(U.has(t)){let e=e3(t);return e&&e.default||0}{let r=window.getComputedStyle(e),i=(tc(t)?r.getPropertyValue(t):r[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return rG(e,t)}build(e,t,r){nD(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return nK(e,t,r)}}class st extends n7{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rI}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(U.has(t)){let e=e3(t);return e&&e.default||0}return t=nq.has(t)?t:eo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return nY(e,t,r)}build(e,t,r){nN(e,t,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,r,i){nW(e,t,r,i)}mount(e){this.isSVGTag=nz(e.tagName),super.mount(e)}}let sr=function(e){if("undefined"==typeof Proxy)return e;let t=new Map;return new Proxy((...t)=>e(...t),{get:(r,i)=>"create"===i?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}((r3={animation:{Feature:rc},exit:{Feature:rp},inView:{Feature:nv},tap:{Feature:nc},focus:{Feature:nd},hover:{Feature:nu},pan:{Feature:r5},drag:{Feature:r2,ProjectionNode:no,MeasureLayout:id},layout:{ProjectionNode:no,MeasureLayout:id}},r6=(e,t)=>nR(e)?new st(t):new se(t,{allowProjection:e!==r9.Fragment}),function(e,{forwardMotionProps:t}={forwardMotionProps:!1}){return function(e){var t,r;let{preloadedFeatures:i,createVisualElement:n,useRender:s,useVisualState:a,Component:l}=e;function u(e,t){var r;let i,u={...(0,r9.useContext)(n_),...e,layoutId:function(e){let{layoutId:t}=e,r=(0,r9.useContext)(ie).id;return r&&void 0!==t?r+"-"+t:t}(e)},{isStatic:d}=u,h=function(e){let{initial:t,animate:r}=function(e,t){if(nw(e)){let{initial:t,animate:r}=e;return{initial:!1===t||o(t)?t:void 0,animate:o(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,r9.useContext)(nx));return(0,r9.useMemo)(()=>({initial:t,animate:r}),[nA(t),nA(r)])}(e),c=a(e,d);if(!d&&nT){(0,r9.useContext)(nb).strict;let e=function(e){let{drag:t,layout:r}=nE;if(!t&&!r)return{};let i={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}(u);i=e.MeasureLayout,h.visualElement=function(e,t,r,i,n){var s,a;let{visualElement:o}=(0,r9.useContext)(nx),l=(0,r9.useContext)(nb),u=(0,r9.useContext)(r7),d=(0,r9.useContext)(n_).reducedMotion,h=(0,r9.useRef)(null);i=i||l.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:o,props:r,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:d}));let c=h.current,f=(0,r9.useContext)(it);c&&!c.projection&&n&&("html"===c.type||"svg"===c.type)&&function(e,t,r,i){let{layoutId:n,layout:s,drag:a,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:n,layout:s,alwaysMeasureLayout:!!a||o&&rA(o),visualElement:e,animationType:"string"==typeof s?s:"both",initialPromotionConfig:i,layoutScroll:l,layoutRoot:u})}(h.current,r,n,f);let p=(0,r9.useRef)(!1);(0,r9.useInsertionEffect)(()=>{c&&p.current&&c.update(r,u)});let m=r[el],y=(0,r9.useRef)(!!m&&!(null==(s=window.MotionHandoffIsComplete)?void 0:s.call(window,m))&&(null==(a=window.MotionHasOptimisedAnimation)?void 0:a.call(window,m)));return nC(()=>{c&&(p.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),io.render(c.render),y.current&&c.animationState&&c.animationState.animateChanges())}),(0,r9.useEffect)(()=>{c&&(!y.current&&c.animationState&&c.animationState.animateChanges(),y.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,m)}),y.current=!1))}),c}(l,c,u,n,e.ProjectionNode)}return(0,r8.jsxs)(nx.Provider,{value:h,children:[i&&h.visualElement?(0,r8.jsx)(i,{visualElement:h.visualElement,...u}):null,s(l,e,(r=h.visualElement,(0,r9.useCallback)(e=>{e&&c.onMount&&c.onMount(e),r&&(e?r.mount(e):r.unmount()),t&&("function"==typeof t?t(e):rA(t)&&(t.current=e))},[r])),c,d,h.visualElement)]})}i&&function(e){for(let t in e)nE[t]={...nE[t],...e[t]}}(i),u.displayName="motion.".concat("string"==typeof l?l:"create(".concat(null!=(r=null!=(t=l.displayName)?t:l.name)?r:"",")"));let d=(0,r9.forwardRef)(u);return d[nP]=l,d}({...nR(e)?nG:nJ,preloadedFeatures:r3,useRender:function(e=!1){return(t,r,i,{latestValues:n},s)=>{let a=(nR(t)?function(e,t,r,i){let n=(0,r9.useMemo)(()=>{let r=n$();return nN(r,t,nz(i),e.transformTemplate),{...r.attrs,style:{...r.style}}},[t]);if(e.style){let t={};nQ(t,e.style,e),n.style={...t,...n.style}}return n}:function(e,t){let r={},i=function(e,t){let r=e.style||{},i={};return nQ(i,r,e),Object.assign(i,function({transformTemplate:e},t){return(0,r9.useMemo)(()=>{let r=nU();return nD(r,t,e),Object.assign({},r.vars,r.style)}
1,[t])}(e,t)),i}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r})(r,n,s,t),o=function(e,t,r){let i={};for(let n in e)("values"!==n||"object"!=typeof e.values)&&(n2(n)||!0===r&&n1(n)||!t&&!n1(n)||e.draggable&&n.startsWith("onDrag"))&&(i[n]=e[n]);return i}(r,"string"==typeof t,e),l=t!==r9.Fragment?{...o,...a,ref:i}:{},{children:u}=r,d=(0,r9.useMemo)(()=>es(u)?u.get():u,[u]);return(0,r9.createElement)(t,{...l,children:d})}}(t),createVisualElement:r6,Component:e})}))},7736:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]])},7777:(e,t,r)=>{e.exports=r(4951)},7964:(e,t,r)=>{var i=r(7777);e.exports=function(e,t){return new Promise(function(r,n){var s,a=t||{};function o(e){n(e||Error("Aborted"))}function l(e,t){if(e.bail)return void o(e);s.retry(e)?a.onRetry&&a.onRetry(e,t):n(s.mainError())}"randomize"in a||(a.randomize=!0),(s=i.operation(a)).attempt(function(t){var i;try{i=e(o,t)}catch(e){l(e,t);return}Promise.resolve(i).then(r).catch(function(e){l(e,t)})})})}},8335:(e,t,r)=>{"use strict";r.d(t,{Se:()=>eu});var i,n,s,a=r(5704);let o={toWeb(){throw Error("Vercel Blob: Sorry, we cannot get a Readable stream in this environment. If you see this message please open an issue here: https://github.com/vercel/storage/ with details on your environment.")}};var l=r(9410),u=r(7964);let d=globalThis.fetch.bind(globalThis);var h=r(5070),c=r(5704),f=new Promise(e=>{try{let t=new Uint8Array([104,101,108,108,111]);new Blob([t]).text().then(t=>{e("hello"===t)}).catch(()=>{e(!1)})}catch{e(!1)}});async function p(e){var t;let r;return e instanceof ReadableStream?e:e instanceof Blob?e.stream():m(e)?o.toWeb(e):(r=e instanceof ArrayBuffer?new Uint8Array(e):l(e)?e:(t=e,new TextEncoder().encode(t)),await f)?new Blob([r]).stream():new ReadableStream({start(e){e.enqueue(r),e.close()}})}function m(e){return"object"==typeof e&&"function"==typeof e.pipe&&e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState}var y=/^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i,g={b:1,kb:1024,mb:1048576,gb:0x40000000,tb:0x10000000000,pb:0x4000000000000};function v(e){let t;if("number"==typeof e&&!isNaN(e))return e;if("string"!=typeof e)return null;let r=y.exec(e),i="b";if(r){let[,e,,,n]=r;if(!e)return null;t=parseFloat(e),n&&(i=n.toLowerCase())}else t=parseInt(e,10);return isNaN(t)?null:Math.floor(g[i]*t)}var b=class extends Error{constructor(e){super(`Vercel Blob: ${e}`)}};function _(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}var x=["//"],w=(()=>{if(function(){if("undefined"!=typeof navigator&&"ReactNative"===navigator.product)return!0;if(void 0!==a){let e=a.type;return"renderer"!==e&&"worker"!==e&&!!(a.versions&&a.versions.node)}return!1}())return!0;if(k().startsWith("http://localhost"))return!1;let e=!1,t=new Request(k(),{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})();function k(e=""){let t=null;try{t=c.env.VERCEL_BLOB_API_URL||c.env.NEXT_PUBLIC_VERCEL_BLOB_API_URL}catch{}return`${t||"https://blob.vercel-storage.com"}${e}`}var A="function"==typeof TextEncoder?new TextEncoder:null;function T(e){return e?"string"==typeof e?A?A.encode(e).byteLength:new Blob([e]).size:"byteLength"in e&&"number"==typeof e.byteLength?e.byteLength:"size"in e&&"number"==typeof e.size?e.size:0:0}function S(e){return globalThis.ReadableStream&&e instanceof ReadableStream}var E=Object.prototype.toString,P=new Set(["network error","Failed to fetch","NetworkError when attempting to fetch resource.","The Internet connection appears to be offline.","Load failed","Network request failed","fetch failed","terminated"]),C=!1;try{((null==(i=c.env.DEBUG)?void 0:i.includes("blob"))||(null==(n=c.env.
1NEXT_PUBLIC_DEBUG)?void 0:n.includes("blob")))&&(C=!0)}catch(e){}function M(e,...t){C&&console.debug(`vercel-blob: ${e}`,...t)}var R="function"==typeof d,O=R&&w,V=async({input:e,init:t,onUploadProgress:r})=>{let i;if(M("using fetch"),t.body)if(r){let e=await p(t.body),n=0,s=((e,t)=>{let r=new Uint8Array(0);return new TransformStream({transform(i,n){queueMicrotask(()=>{let s=new Uint8Array(r.length+i.byteLength);for(s.set(r),s.set(new Uint8Array(i),r.length),r=s;r.length>=e;){let i=r.slice(0,e);n.enqueue(i),null==t||t(i.byteLength),r=r.slice(e)}})},flush(e){queueMicrotask(()=>{r.length>0&&(e.enqueue(r),null==t||t(r.byteLength))})}})})(65536,e=>{r(n+=e)});i=e.pipeThrough(s)}else i=t.body;let n=w&&i&&function(e){return!!(S(e)||m(e))}(i)?"half":void 0;return d(e,{...t,...t.body?{body:i}:{},duplex:n})},j="undefined"!=typeof XMLHttpRequest,L=async({input:e,init:t,onUploadProgress:r})=>{M("using xhr");let i=null;return t.body&&(i=S(t.body)?await new Response(t.body).blob():t.body),new Promise((n,s)=>{let a=new XMLHttpRequest;if(a.open(t.method||"GET",e.toString(),!0),r&&a.upload.addEventListener("progress",e=>{e.lengthComputable&&r(e.loaded)}),a.onload=()=>{var e;if(null==(e=t.signal)?void 0:e.aborted)return void s(new DOMException("The user aborted the request.","AbortError"));let r=new Headers;a.getAllResponseHeaders().trim().split(/[\r\n]+/).forEach(e=>{let t=e.split(": "),i=t.shift(),n=t.join(": ");i&&r.set(i.toLowerCase(),n)}),n(new Response(a.response,{status:a.status,statusText:a.statusText,headers:r}))},a.onerror=()=>{s(TypeError("Network request failed"))},a.ontimeout=()=>{s(TypeError("Network request timed out"))},a.onabort=()=>{s(new DOMException("The user aborted a request.","AbortError"))},t.headers&&new Headers(t.headers).forEach((e,t)=>{a.setRequestHeader(t,e)}),t.signal&&(t.signal.addEventListener("abort",()=>{a.abort()}),t.signal.aborted))return void a.abort();a.send(i)})},D=async({input:e,init:t,onUploadProgress:r})=>{if(r){if(O)return V({input:e,init:t,onUploadProgress:r});if(j)return L({input:e,init:t,onUploadProgress:r})}if(R)return V({input:e,init:t});if(j)return L({input:e,init:t});throw Error("No request implementation available")},F=null!=(s=globalThis.DOMException)?s:(()=>{try{atob("~")}catch(e){return Object.getPrototypeOf(e).constructor}})(),I=class extends b{constructor(){super("Access denied, please provide a valid token for this resource.")}},B=class extends b{constructor(e){super(`Content type mismatch, ${e}.`)}},N=class extends b{constructor(e){super(`Pathname mismatch, ${e}. Check the pathname used in upload() or put() matches the one from the client token.`)}},U=class extends b{constructor(){super("Client token has expired.")}},$=class extends b{constructor(e){super(`File is too large, ${e}.`)}},z=class extends b{constructor(){super("This store does not exist.")}},Z=class extends b{constructor(){super("This store has been suspended.")}},q=class extends b{constructor(){super("Unknown error, please visit https://vercel.com/help.")}},W=class extends b{constructor(){super("The requested blob does not exist")}},H=class extends b{constructor(){super("The blob service is currently not available. Please try again.")}},K=class extends b{constructor(e){super(`Too many requests please lower the number of concurrent requests ${e?` - try again in ${e} seconds`:""}.`),this.retryAfter=null!=e?e:0}},Y=class extends b{constructor(){super("The request was aborted.")}};async function X(e){var t,r,i;let n,s,a;try{let a=await e.json();n=null!=(r=null==(t=a.error)?void 0:t.code)?r:"unknown_error",s=null==(i=a.error)?void 0:i.message}catch{n="unknown_error"}switch((null==s?void 0:s.includes("contentType"))&&s.includes("is not allowed")&&(n="content_type_not_allowed"),(null==s?void 0:s.includes('"pathname"'))&&s.includes("does not match the token payload")&&(n="client_token_pathname_mismatch"),"Token expired"===s&&(n="client_token_expired"),(null==s?void 0:s.includes("the file length cannot be greater than"))&&(n="file_too_large"),n){case"store_suspended":a=new Z;break;case"forbidden":a=new I;break;case"content_type_not_allowed":a=new B(s);break;case"client_token_pathname_mismatch":a=new N(s);break;case"client_token_expired":a=new U;break;case"file_too_large":a=new $(s);break;case"not_found":a=new W;break;case"store_not_found":a=new z;break;case"bad_request":a=new b(null!=s?s:"Bad request");break;case"service_unavailable":a=new H;break;case"rate_limited":a=function(e){let t=e.headers.get("retry-after");return new K(t?parseInt(t,10):void 0)}(e);break;default:a=new q}return{code:n,error:a}}async function G(e,t,r){let i=function(){let e=null;try{e=c.env.VERCEL_BLOB_API_VERSION_OVERRIDE||c.env.NEXT_PUBLIC_VERCEL_BLOB_API_VERSION_OVERRIDE}catch{}return`${null!=e?e:9}`}(),n=function(e){if(null==e?void 0:e.token)return e.token;if(c.env.BLOB_READ_WRITE_TOKEN)return c.env.BLOB_READ_WRITE_TOKEN;throw new b("No token found. Either configure the `BLOB_READ_WRITE_TOKEN` environment variable, or pass a `token` option to your calls.")}(r),s=function(){let e={};try{"VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API"in c.env&&void 0!==c.env.VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API?e["x-proxy-through-alternative-api"]=c.env.VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API:"NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API"in c.env&&void 0!==c.env.
1NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API&&(e["x-proxy-through-alternative-api"]=c.env.NEXT_PUBLIC_VERCEL_BLOB_PROXY_THROUGH_ALTERNATIVE_API)}catch{}return e}(),[,,,a=""]=n.split("_"),o=`${a}:${Date.now()}:${Math.random().toString(16).slice(2)}`,l=0,d=0,h=0,f=(null==r?void 0:r.onUploadProgress)||function(){try{return"1"===c.env.VERCEL_BLOB_USE_X_CONTENT_LENGTH}catch{return!1}}();t.body&&f&&(d=T(t.body)),(null==r?void 0:r.onUploadProgress)&&r.onUploadProgress({loaded:0,total:d,percentage:0});let p=await u(async a=>{let u;try{u=await D({input:k(e),init:{...t,headers:{"x-api-blob-request-id":o,"x-api-blob-request-attempt":String(l),"x-api-version":i,...f?{"x-content-length":String(d)}:{},authorization:`Bearer ${n}`,...s,...t.headers}},onUploadProgress:(null==r?void 0:r.onUploadProgress)?e=>{var t;let i=0!==d?d:e;h=e;let n=d>0?Number((e/i*100).toFixed(2)):0;100===n&&d>0||null==(t=r.onUploadProgress)||t.call(r,{loaded:e,total:i,percentage:n})}:void 0})}catch(e){if(e instanceof F&&"AbortError"===e.name)return void a(new Y);if(e&&"[object Error]"===E.call(e)&&"TypeError"===e.name&&"string"==typeof e.message&&("Load failed"===e.message?void 0===e.stack:P.has(e.message)))throw e;if(e instanceof TypeError)return void a(e);throw e}if(u.ok)return u;let{code:c,error:p}=await X(u);if("unknown_error"===c||"service_unavailable"===c||"internal_server_error"===c)throw p;a(p)},{retries:function(){try{let e=c.env.VERCEL_BLOB_RETRIES||"10";return parseInt(e,10)}catch{return 10}}(),onRetry:t=>{t instanceof Error&&M(`retrying API request to ${e}`,t.message),l+=1}});if(!p)throw new q;return(null==r?void 0:r.onUploadProgress)&&r.onUploadProgress({loaded:h,total:h,percentage:100}),await p.json()}var J={cacheControlMaxAge:"x-cache-control-max-age",addRandomSuffix:"x-add-random-suffix",contentType:"x-content-type"};function Q(e,t){let r={};return e.includes("contentType")&&t.contentType&&(r[J.contentType]=t.contentType),e.includes("addRandomSuffix")&&void 0!==t.addRandomSuffix&&(r[J.addRandomSuffix]=t.addRandomSuffix?"1":"0"),e.includes("cacheControlMaxAge")&&void 0!==t.cacheControlMaxAge&&(r[J.cacheControlMaxAge]=t.cacheControlMaxAge.toString()),r}async function ee({pathname:e,options:t,extraChecks:r,getToken:i}){if(!e)throw new b("pathname is required");if(e.length>950)throw new b("pathname is too long, maximum length is 950");for(let t of x)if(e.includes(t))throw new b(`pathname cannot contain "${t}", please encode it if needed`);if(!t)throw new b("missing options, see usage");if("public"!==t.access)throw new b('access must be "public"');return r&&r(t),i&&(t.token=await i(e,t)),t}async function et({uploadId:e,key:t,pathname:r,parts:i,headers:n,options:s}){let a=new URLSearchParams({pathname:r});try{let r=await G(`/mpu?${a.toString()}`,{method:"POST",headers:{...n,"content-type":"application/json","x-mpu-action":"complete","x-mpu-upload-id":e,"x-mpu-key":encodeURIComponent(t)},body:JSON.stringify(i),signal:s.abortSignal},s);return M("mpu: complete",r),r}catch(e){if(e instanceof TypeError&&("Failed to fetch"===e.message||"fetch failed"===e.message))throw new H;throw e}}async function er(e,t,r){M("mpu: create","pathname:",e);let i=new URLSearchParams({pathname:e});try{let e=await G(`/mpu?${i.toString()}`,{method:"POST",headers:{...t,"x-mpu-action":"create"},signal:r.abortSignal},r);return M("mpu: create",e),e}catch(e){if(e instanceof TypeError&&("Failed to fetch"===e.message||"fetch failed"===e.message))throw new H;throw e}}async function ei({uploadId:e,key:t,pathname:r,headers:i,options:n,internalAbortController:s=new AbortController,part:a}){var o,l,u;let d=new URLSearchParams({pathname:r}),h=G(`/mpu?${d.toString()}`,{signal:s.signal,method:"POST",headers:{...i,"x-mpu-action":"upload","x-mpu-key":encodeURIComponent(t),"x-mpu-upload-id":e,"x-mpu-part-number":a.partNumber.toString()},body:a.blob},n);function c(){s.abort()}(null==(o=n.abortSignal)?void 0:o.aborted)?c():null==(l=n.abortSignal)||l.addEventListener("abort",c);let f=await h;return null==(u=n.abortSignal)||u.removeEventListener("abort",c),f}var en="undefined"!=typeof window?6:8,es=8388608*en*2;async function ea(e,t,r,i){M("mpu: init","pathname:",e,"headers:",r);let n={...i,onUploadProgress:void 0},s=await er(e,r,n),a=T(t),o=await p(t),l=await function({uploadId:e,key:t,pathname:r,stream
1:i,headers:n,options:s,totalToLoad:a}){M("mpu: upload init","key:",t);let o=new AbortController;return new Promise((l,u)=>{let d,c=[],f=[],p=i.getReader(),m=0,y=!1,g=1,b=!1,_=0,x=!1,w=0,k=[],A=0,T={};async function S(){for(M("mpu: upload read start","activeUploads:",m,"currentBytesInMemory:",`${v(_)}/${v(es)}`,"bytesSent:",v(w)),y=!0;_<es&&!b;)try{let{value:e,done:t}=await p.read();if(t){x=!0,M("mpu: upload read consumed the whole stream"),k.length>0&&(c.push({partNumber:g++,blob:new Blob(k,{type:"application/octet-stream"})}),P()),y=!1;return}_+=e.byteLength;let r=0;for(;r<e.byteLength;){let t=8388608-A,i=Math.min(r+t,e.byteLength),n=e.slice(r,i);k.push(n),A+=n.byteLength,r=i,8388608===A&&(c.push({partNumber:g++,blob:new Blob(k,{type:"application/octet-stream"})}),k=[],A=0,P())}}catch(e){C(e)}M("mpu: upload read end","activeUploads:",m,"currentBytesInMemory:",`${v(_)}/${v(es)}`,"bytesSent:",v(w)),y=!1}async function E(i){m++,M("mpu: upload send part start","partNumber:",i.partNumber,"size:",i.blob.size,"activeUploads:",m,"currentBytesInMemory:",`${v(_)}/${v(es)}`,"bytesSent:",v(w));try{let a=s.onUploadProgress?e=>{T[i.partNumber]=e.loaded,d&&d()}:void 0,u=await ei({uploadId:e,key:t,pathname:r,headers:n,options:{...s,onUploadProgress:a},internalAbortController:o,part:i});if(M("mpu: upload send part end","partNumber:",i.partNumber,"activeUploads",m,"currentBytesInMemory:",`${v(_)}/${v(es)}`,"bytesSent:",v(w)),b)return;if(f.push({partNumber:i.partNumber,etag:u.etag}),_-=i.blob.size,m--,w+=i.blob.size,c.length>0&&P(),x){0===m&&(p.releaseLock(),l(f));return}y||S().catch(C)}catch(e){C(e)}}function P(){if(!b)for(M("send parts","activeUploads",m,"partsToUpload",c.length);m<en&&c.length>0;){let e=c.shift();e&&E(e)}}function C(e){b||(b=!0,o.abort(),p.releaseLock(),e instanceof TypeError&&("Failed to fetch"===e.message||"fetch failed"===e.message)?u(new H):u(e))}s.onUploadProgress&&(d=h(()=>{var e;let t=Object.values(T).reduce((e,t)=>e+t,0),r=a||t,i=a>0?Number((100*(t/a||t)).toFixed(2)):0;null==(e=s.onUploadProgress)||e.call(s,{loaded:t,total:r,percentage:i})},150)),S().catch(C)})}({uploadId:s.uploadId,key:s.key,pathname:e,stream:o,headers:r,options:i,totalToLoad:a});return await et({uploadId:s.uploadId,key:s.key,pathname:e,parts:l,headers:r,options:n})}function eo({allowedOptions:e,getToken:t,extraChecks:r}){return async function(i,n,s){if(!n)throw new b("body is required");if(_(n))throw new b("Body must be a string, buffer or stream. You sent a plain JavaScript object, double check what you're trying to upload.");let a=await ee({pathname:i,options:s,extraChecks:r,getToken:t}),o=Q(e,a);if(!0===a.multipart)return ea(i,n,o,a);let l=a.onUploadProgress?h(a.onUploadProgress,100):void 0,u=new URLSearchParams({pathname:i}),d=await G(`/?${u.toString()}`,{method:"PUT",body:n,headers:o,signal:a.abortSignal},{...a,onUploadProgress:l});return{url:d.url,downloadUrl:d.downloadUrl,pathname:d.pathname,contentType:d.contentType,contentDisposition:d.contentDisposition}}}function el(e){return function(t){if(!t.token.startsWith("vercel_blob_client_"))throw new b(`${e} must be called with a client token`);if(void 0!==t.addRandomSuffix||void 0!==t.cacheControlMaxAge)throw new b(`${e} doesn't allow addRandomSuffix and cacheControlMaxAge. Configure these options at the server side when generating client tokens.`)}}r(5376).Buffer,eo({allowedOptions:["contentType"],extraChecks:el("client/`put`")}),function({allowedOptions:e,getToken:t,extraChecks:r}){}({allowedOptions:["contentType"],extraChecks:el("client/`createMultipartUpload`")}),function({allowedOptions:e,getToken:t,extraChecks:r}){}({allowedOptions:["contentType"],extraChecks:el("client/`createMultipartUpload`")}),function({allowedOptions:e,getToken:t,extraChecks:r}){}({allowedOptions:["contentType"],extraChecks:el("client/`multipartUpload`")}),function({allowedOptions:e,getToken:t,extraChecks:r}){}({allowedOptions:["contentType"],extraChecks:el("client/`completeMultipartUpload`")});var eu=eo({allowedOptions:["contentType"],extraChecks(e){if(void 0===e.handleUploadUrl)throw new b("client/`upload` requires the 'handleUploadUrl' parameter");
1if(void 0!==e.addRandomSuffix||void 0!==e.cacheControlMaxAge)throw new b("client/`upload` doesn't allow addRandomSuffix and cacheControlMaxAge. Configure these options at the server side when generating client tokens.")},async getToken(e,t){var r,i;return eh({handleUploadUrl:t.handleUploadUrl,pathname:e,clientPayload:null!=(r=t.clientPayload)?r:null,multipart:null!=(i=t.multipart)&&i})}}),ed={generateClientToken:"blob.generate-client-token"};async function eh(e){let{handleUploadUrl:t,pathname:r}=e,i=!function(e){try{return new URL(e),!0}catch(e){return!1}}(t)?new URL(t,location.href).href:t,n={type:ed.generateClientToken,payload:{pathname:r,callbackUrl:i,clientPayload:e.clientPayload,multipart:e.multipart}},s=await d(i,{method:"POST",body:JSON.stringify(n),headers:{"content-type":"application/json"},signal:e.abortSignal});if(!s.ok)throw new b("Failed to retrieve the client token");try{let{clientToken:e}=await s.json();return e}catch(e){throw new b("Failed to retrieve the client token")}}},8595:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("House",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"1d0kgt"}]])},8772:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]])},8907:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("MonitorSmartphone",[["path",{d:"M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8",key:"10dyio"}],["path",{d:"M10 19v-3.96 3.15",key:"1irgej"}],["path",{d:"M7 19h5",key:"qswx4l"}],["rect",{width:"6",height:"10",x:"16",y:"12",rx:"2",key:"1egngj"}]])},9007:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},9201:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},9410:e=>{e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},9679:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});let i=(0,r(4294).A)("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]])},9862:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return i}});let i=r(8140)._(r(2115)).default.createContext(null)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.