PageSourceSearch

https://crickfitnet-academy-frontend.vercel.app/_next/static/chunks/c58a79f26e043b18.js

js crickfitnet-academy-frontend.vercel.app collected 2026-10-03 06:40:34 UTC 249,663 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,88143,(t,e,r)=>{"use strict";function n(t){let{widthInt:e,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:s}=t,a=n?40*n:e,l=i?40*i:r,u=a&&l?"viewBox='0 0 "+a+" "+l+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix 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"===s?"xMidYMid":"cover"===s?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},87690,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(r,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return i}});let n=["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"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},8927,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getImgProps",{enumerable:!0,get:function(){return l}}),t.r(33525);let n=t.r(88143),i=t.r(87690),o=["-moz-initial","fill","none","scale-down",void 0];function s(t){return void 0!==t.default}function a(t){return void 0===t?t:"number"==typeof t?Number.isFinite(t)?t:NaN:"string"==typeof t&&/^[0-9]+$/.test(t)?parseInt(t,10):NaN}function l(t,e){var r,l;let u,c,h,{src:d,sizes:f,unoptimized:p=!1,priority:m=!1,loading:v,className:y,quality:g,width:b,height:w,fill:x=!1,style:E,overrideSrc:T,onLoad:C,onLoadingComplete:S,placeholder:A="empty",blurDataURL:P,fetchPriority:M,decoding:j="async",layout:I,objectFit:O,objectPosition:k,lazyBoundary:R,lazyRoot:D,..._}=t,{imgConf:V,showAltText:F,blurComplete:L,defaultLoader:B}=e,U=V||i.imageConfigDefault;if("allSizes"in U)u=U;else{let t=[...U.deviceSizes,...U.imageSizes].sort((t,e)=>t-e),e=U.deviceSizes.sort((t,e)=>t-e),n=null==(r=U.qualities)?void 0:r.sort((t,e)=>t-e);u={...U,allSizes:t,deviceSizes:e,qualities:n}}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 N=_.loader||B;delete _.loader,delete _.srcSet;let W="__next_img_default"in N;if(W){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+d+'" 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 t=N;N=e=>{let{config:r,...n}=e;return t(n)}}if(I){"fill"===I&&(x=!0);let t={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[I];t&&(E={...E,...t});let e={responsive:"100vw",fill:"100vw"}[I];e&&!f&&(f=e)}let z="",q=a(b),H=a(w);if((l=d)&&"object"==typeof l&&(s(l)||void 0!==l.src)){let t=s(d)?d.default:d;if(!t.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(t)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!t.height||!t.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(t)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,
1configurable:!0});if(c=t.blurWidth,h=t.blurHeight,P=P||t.blurDataURL,z=t.src,!x)if(q||H){if(q&&!H){let e=q/t.width;H=Math.round(t.height*e)}else if(!q&&H){let e=H/t.height;q=Math.round(t.width*e)}}else q=t.width,H=t.height}let Y=!m&&("lazy"===v||void 0===v);(!(d="string"==typeof d?d:z)||d.startsWith("data:")||d.startsWith("blob:"))&&(p=!0,Y=!1),u.unoptimized&&(p=!0),W&&!u.dangerouslyAllowSVG&&d.split("?",1)[0].endsWith(".svg")&&(p=!0);let X=a(g),G=Object.assign(x?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:O,objectPosition:k}:{},F?{}:{color:"transparent"},E),K=L||"empty"===A?null:"blur"===A?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:q,heightInt:H,blurWidth:c,blurHeight:h,blurDataURL:P||"",objectFit:G.objectFit})+'")':'url("'+A+'")',$=o.includes(G.objectFit)?"fill"===G.objectFit?"100% 100%":"cover":G.objectFit,Z=K?{backgroundSize:$,backgroundPosition:G.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:K}:{},J=function(t){let{config:e,src:r,unoptimized:n,width:i,quality:o,sizes:s,loader:a}=t;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:l,kind:u}=function(t,e,r){let{deviceSizes:n,allSizes:i}=t;if(r){let t=/(^|\s)(1?\d?\d)vw/g,e=[];for(let n;n=t.exec(r);)e.push(parseInt(n[2]));if(e.length){let t=.01*Math.min(...e);return{widths:i.filter(e=>e>=n[0]*t),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof e?{widths:n,kind:"w"}:{widths:[...new Set([e,2*e].map(t=>i.find(e=>e>=t)||i[i.length-1]))],kind:"x"}}(e,i,s),c=l.length-1;return{sizes:s||"w"!==u?s:"100vw",srcSet:l.map((t,n)=>a({config:e,src:r,quality:o,width:t})+" "+("w"===u?t:n+1)+u).join(", "),src:a({config:e,src:r,quality:o,width:l[c]})}}({config:u,src:d,unoptimized:p,width:q,quality:X,sizes:f,loader:N});return{props:{..._,loading:Y?"lazy":v,fetchPriority:M,width:q,height:H,decoding:j,className:y,style:{...G,...Z},sizes:J.sizes,srcSet:J.srcSet,src:T||J.src},meta:{unoptimized:p,priority:m,placeholder:A,fill:x}}}},98879,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=t.r(71645),i="undefined"==typeof window,o=i?()=>{}:n.useLayoutEffect,s=i?()=>{}:n.useEffect;function a(t){let{headManager:e,reduceComponentsToState:r}=t;function a(){if(e&&e.mountedInstances){let i=n.Children.toArray(Array.from(e.mountedInstances).filter(Boolean));e.updateHead(r(i,t))}}if(i){var l;null==e||null==(l=e.mountedInstances)||l.add(t.children),a()}return o(()=>{var r;return null==e||null==(r=e.mountedInstances)||r.add(t.children),()=>{var r;null==e||null==(r=e.mountedInstances)||r.delete(t.children)}}),o(()=>(e&&(e._pendingUpdate=a),()=>{e&&(e._pendingUpdate=a)})),s(()=>(e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null),()=>{e&&e._pendingUpdate&&(e._pendingUpdate(),e._pendingUpdate=null)})),null}},58908,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=t.r(55682)._(t.r(71645)).default.createContext({})},15986,(t,e,r)=>{"use strict";function n(t){let{ampFirst:e=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===t?{}:t;return e||r&&n}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isInAmpMode",{enumerable:!0,get:function(){return n}})},25633,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(r,{default:function(){return m},defaultHead:function(){return h}});let n=t.r(55682),i=t.r(90809),o=t.r(43476),s=i._(t.r(71645)),a=n._(t.r(98879)),l=t.r(58908),u=t.r(42732),c=t.r(15986);function h(t){void 0===t&&(t=!1);let e=[(0,o.jsx)("meta",{charSet:"utf-8"},"charset")];return t||e.push((0,o.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),e}function d(t,e){return"string"==typeof e||"number"==typeof e?t:e.type===s.default.Fragment?t.concat(s.default.Children.toArray(e.props.children).reduce((t,e)=>"string"==typeof e||"number"==typeof e?t:t.concat(e),[])):t.concat(e)}t.r(33525);let f=["name","httpEquiv","charSet","itemProp"];function p(t,e){let{inAmpMode:r}=e;return t.reduce(d,[]).reverse().concat(h(r).reverse()).filter(function(){let t=new Set,e=new Set,r=new Set,n={};return i=>{let o=!0,s=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){s=!0;let e=i.key.slice(i.key.indexOf("$")+1);t.has(e)?o=!1:t.add(e)}switch(i.type){case"title":case"base":e.has(i.type)?o=!1:e.add(i.type);break;case"meta":for(let t=0,e=f.length;t<e;t++){let e=f[t];if(i.props.hasOwnProperty(e))if("charSet"===e)r.has(e)?o=!1:r.add(e);else{let t=i.props[e],r=n[e]||new Set;("name"!==e||!s)&&r.has(t)?o=!1:(r.add(t),n[e]=r)}}}return o}}()).reverse().map((t,e)=>{let r=t.key||e;return s.default.cloneElement(t,{key:r})})}let m=function(t){let{children:e}=t,r=(0,s.useContext)(l.AmpStateContext),n=(0,s.useContext)(u.HeadManagerContext);return(0,o.jsx)(a.default,{reduceComponentsToState:p,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},18556,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=t.r(55682)._(t.r(71645)),i=t.r(87690),o=n.default.createContext(i.imageConfigDefault)},65856,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"RouterContext",{enumerable:!0,get:function(){return n}});let n=t.r(55682)._(t.r(71645)).default.createContext(null)},1948,(t,e,r)=>{"use strict";function n(t){var e;let{config:r,src:n,width:i,quality:o}=t,s=o||(null==(e=r.qualities)?void 0:e.reduce((t,e)=>Math.abs(e-75)<Math.abs(t-75)?e:t))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+s+(n.startsWith("/_next/static/media/"),"")}Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return i}}),n.__next_img_default=!0;let i=n},85437,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"Image",{enumerable:!0,get:function(){return w}});let n=t.r(55682),i=t.r(90809),o=t.r(43476),s=i._(t.r(71645)),a=n._(t.r(74080)),l=n._(t.r(25633)),u=t.r(8927),c=t.r(87690),h=t.r(18556);t.r(33525);let d=t.r(65856),f=n._(t.r(1948)),p=t.r(18581),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 v(t,e,r,n,i,o,s){let a=null==t?void 0:t.src;t&&t["data-loaded-src"]!==a&&(t["data-loaded-src"]=a,("decode"in t?t.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(t.parentElement&&t.isConnected){if("empty"!==e&&i(!0),null==r?void 0:r.current){let e=new Event("load");Object.defineProperty(e,"target",{writable:!1,value:t});let n=!1,i=!1;r.current({...e,nativeEvent:e,currentTarget:t,target:t,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,e.preventDefault()},stopPropagation:()=>{i=!0,e.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(t)}}))}function y(t){return s.use?{fetchPriority:t}:{fetchpriority:t}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let g=(0,s.forwardRef)((t,e)=>{let{src:r,srcSet:n,sizes:i,height:a,width:l,decoding:u,className:c,style:h,fetchPriority:d,placeholder:f,loading:m,unoptimized:g,fill:b,onLoadRef:w,onLoadingCompleteRef:x,setBlurComplete:E,setShowAltText:T,sizesInput:C,onLoad:S,onError:A,...P}=t,M=(0,s.useCallback)(t=>{t&&(A&&(t.src=t.src),t.complete&&v(t,f,w,x,E,g,C))},[r,f,w,x,E,A,g,C]),j=(0,p.useMergedRef)(e,M);return(0,o.jsx)("img",{...P,...y(d),loading:m,width:l,height:a,decoding:u,"data-nimg":b?"fill":"1",className:c,style:h,sizes:i,srcSet:n,src:r,ref:j,onLoad:t=>{v(t.currentTarget,f,w,x,E,g,C)},onError:t=>{T(!0),"empty"!==f&&E(!0),A&&A(t)}})});function b(t){let{isAppRouter:e,imgAttributes:r}=t,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...y(r.fetchPriority)};return e&&a.default.preload?(a.default.preload(r.src,n),null):(0,o.jsx)(l.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let w=(0,s.forwardRef)((t,e)=>{let r=(0,s.useContext)(d.RouterContext),n=(0,s.useContext)(h.ImageConfigContext),i=(0,s.useMemo)(()=>{var t;let e=m||n||c.imageConfigDefault,r=[...e.deviceSizes,...e.imageSizes].sort((t,e)=>t-e),i=e.deviceSizes.sort((t,e)=>t-e),o=null==(t=e.qualities)?void 0:t.sort((t,e)=>t-e);return{...e,allSizes:r,deviceSizes:i,qualities:o}},[n]),{onLoad:a,onLoadingComplete:l}=t,p=(0,s.useRef)(a);(0,s.useEffect)(()=>{p.current=a},[a]);let v=(0,s.useRef)(l);(0,s.useEffect)(()=>{v.current=l},[l]);let[y,w]=(0,s.useState)(!1),[x,E]=(0,s.useState)(!1),{props:T,meta:C}=(0,u.getImgProps)(t,{defaultLoader:f.default,imgConf:i,blurComplete:y,showAltText:x});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(g,{...T,unoptimized:C.unoptimized,placeholder:C.placeholder,fill:C.fill,onLoadRef:p,onLoadingCompleteRef:v,setBlurComplete:w,setShowAltText:E,sizesInput:t.sizes,ref:e}),C.priority?(0,o.jsx)(b,{isAppRouter:!r,imgAttributes:T}):null]})});("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),e.exports=r.default)},94909,(t,e,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),!function(t,e){for(var r in e)Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}(r,{default:function(){return l},getImageProps:function(){return a}});let n=t.r(55682),i=t.r(8927),o=t.r(85437),s=n._(t.r(1948));function a(t){let{props:e}=(0,i.getImgProps)(t,{defaultLoader:s.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[t,r]of Object.entries(e))void 0===r&&delete e[t];return{props:e}}let l=o.Image},57688,(t,e,r)=>{e.exports=t.r(94909)},67034,(t,e,r)=>{!function(){var t={675:function(t,e){"use strict";e.byteLength=function(t){var e=l(t),r=e[0],n=e[1];return(r+n)*3/4-n},e.toByteArray=function(t){var e,r,o=l(t),s=o[0],a=o[1],u=new i((s+a)*3/4-a),c=0,h=a>0?s-4:s;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],u[c++]=e>>16&255,u[c++]=e>>8&255,u[c++]=255&e;return 2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,u[c++]=255&e),1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,u[c++]=e>>8&255,u[c++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;s<a;s+=16383)o.push(function(t,e,n){for(var i,o=[],s=e;s<n;s+=3)i=(t[s]<<16&0xff0000)+(t[s+1]<<8&65280)+(255&t[s+2]),o.push(r[i>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return o.join("")}(t,s,s+16383>a?a:s+16383));return 1===i?o.push(r[(e=t[n-1])>>2]+r[e<<4&63]+"=="):2===i&&o.push(r[(e=(t[n-2]<<8)+t[n-1])>>10]+r[e>>4&63]+r[e<<2&63]+"="),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=o.length;s<a;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function l(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}n[45]=62,n[95]=63},72:function(t,e,r){"use strict";var n=r(675),i=r(783),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function s(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,a.prototype),e}function a(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return c(t)}return l(t,e,r)}function l(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!a.isEncoding(i))throw TypeError("Unknown encoding: "+i);var o=0|f(n,i),l=s(o),u=l.write(n,i);return u!==o&&(l=l.slice(0,u)),l}if(ArrayBuffer.isView(t))return h(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(j(t,ArrayBuffer)||t&&j(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(j(t,SharedArrayBuffer)||t&&j(t.buffer,SharedArrayBuffer)))return function(t,e,r){var n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),a.prototype),n}(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var c=t.valueOf&&t.valueOf();if(null!=c&&c!==t)return a.from(c,e,r);var p=function(t){if(a.isBuffer(t)){var e=0|d(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?s(0):h(t):"Buffer"===t.type&&Array.isArray(t.data)?h(t.data):void 0}(t);if(p)return p;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function u(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');
vendor: 16,517 bytes, line 1
1if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return u(t),s(t<0?0:0|d(t))}function h(t){for(var e=t.length<0?0:0|d(t.length),r=s(e),n=0;n<e;n+=1)r[n]=255&t[n];return r}e.Buffer=a,e.SlowBuffer=function(t){return+t!=t&&(t=0),a.alloc(+t)},e.INSPECT_MAX_BYTES=50,e.kMaxLength=0x7fffffff,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),a.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(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),a.poolSize=8192,a.from=function(t,e,r){return l(t,e,r)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array),a.alloc=function(t,e,r){return(u(t),t<=0)?s(t):void 0!==e?"string"==typeof r?s(t).fill(e,r):s(t).fill(e):s(t)},a.allocUnsafe=function(t){return c(t)},a.allocUnsafeSlow=function(t){return c(t)};function d(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||j(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return S(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return P(t).length;default:if(i)return n?-1:S(t).length;e=(""+e).toLowerCase(),i=!0}}function p(t,e,r){var i,o,s,a=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=I[t[o]];return i}(this,e,r);case"utf8":case"utf-8":return g(this,e,r);case"ascii":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,r);case"latin1":case"binary":return function(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,r);case"base64":return i=this,o=e,s=r,0===o&&s===i.length?n.fromByteArray(i):n.fromByteArray(i.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}(this,e,r);default:if(a)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),a=!0}}function m(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return y(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var o,s=1,a=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;s=2,a/=2,l/=2,r/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var c=-1;for(o=r;o<a;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*s}else -1!==c&&(o-=o-c),c=-1}else for(r+l>a&&(r=a-l),o=r;o>=0;o--){for(var h=!0,d=0;d<l;d++)if(u(t,o+d)!==u(e,d)){h=!1;break}if(h)return o}return -1}a.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==a.prototype},a.compare=function(t,e){if(j(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),j(e,Uint8Array)&&(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},a.isEncoding=function(t){switch(String(t).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}},a.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;var r,n=a.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var o=t[r];if(j(o,Uint8Array)&&(o=a.from(o)),!a.isBuffer(o))throw TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?g(this,0,t):p.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(a.prototype[o]=a.prototype.inspect),a.prototype.compare=function(t,e,r,n,i){if(j(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;for(var o=i-n,s=r-e,l=Math.min(o,s),u=this.slice(n,i),c=t.slice(e,r),h=0;h<l;++h)if(u[h]!==c[h]){o=u[h],s=c[h];break}return o<s?-1:+(s<o)},a.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)};function g(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,s,a,l,u=t[i],c=null,h=u>239?4:u>223?3:u>191?2:1;if(i+h<=r)switch(h){case 1:u<128&&(c=u);break;case 2:(192&(o=t[i+1]))==128&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[i+1],s=t[i+2],(192&o)==128&&(192&s)==128&&(l=(15&u)<<12|(63&o)<<6|63&s)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],(192&o)==128&&(192&s)==128&&(192&a)==128&&(l=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(c=l)}null===c?(c=65533,h=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=h}var d=n,f=d.length;if(f<=4096)return String.fromCharCode.apply(String,d);for(var p="",m=0;m<f;)p+=String.fromCharCode.apply(String,d.slice(m,m+=4096));return p}function b(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function w(t,e,r,n,i,o){if(!a.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function x(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function E(t,e,r,n,o){return e*=1,r>>>=0,o||x(t,e,r,4,34028234663852886e22,-34028234663852886e22),i.write(t,e,r,n,23,4),r+4}function T(t,e,r,n,o){return e*=1,r>>>=0,o||x(t,e,r,8,17976931348623157e292,-17976931348623157e292),i.write(t,e,r,n,52,8),r+8}a.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,o,s,a,l,u,c,h,d=this.length-e;if((void 0===r||r>d)&&(r=d),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var f=!1;;)switch(n){case"hex":return function(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;n>o/2&&(n=o/2);for(var s=0;s<n;++s){var a,l=parseInt(e.substr(2*s,2),16);if((a=l)!=a)break;t[r+s]=l}return s}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,M(S(t,this.length-i),this,i,o);case"ascii":return s=e,a=r,M(A(t),this,s,a);case"latin1":case"binary":return function(t,e,r,n){return M(A(e),t,r,n)}(this,t,e,r);case"base64":return l=e,u=r,M(P(t),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=e,h=r,M(function(t,e){for(var r,n,i=[],o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-c),this,c,h);default:if(f)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},a.prototype.slice=function(t,e){var r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);var n=this.subarray(t,e);return Object.setPrototypeOf(n,a.prototype),n},a.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},a.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t>>>=0,e||b(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||b(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||b(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return(t>>>=0,e||b(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt16BE=function(t,e){t>>>=0,e||b(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||b(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||b(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||b(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||b(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||b(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,t,e,r,i,0)}var o=1,s=0;for(this[e]=255&t;++s<r&&(o*=256);)this[e+s]=t/o&255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;w(this,t,e,r,i,0)}var o=r-1,s=1;for(this[e+o]=255&t;--o>=0&&(s*=256);)this[e+o]=t/s&255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,t,e,r,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<r&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s|0)-a&255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){var i=Math.pow(2,8*r-1);w(this,t,e,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s|0)-a&255;return e+r},a.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||w(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,r){return E(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return E(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return T(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return T(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i=n-r;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&&r<e&&e<n)for(var o=i-1;o>=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){var i,o=t.charCodeAt(0);("utf8"===n&&o<128||"latin1"===n)&&(t=o)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),l=s.length;
1if(0===l)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=s[i%l]}return this};var C=/[^+/0-9A-Za-z-_]/g;function S(t,e){e=e||1/0;for(var r,n=t.length,i=null,o=[],s=0;s<n;++s){if((r=t.charCodeAt(s))>55295&&r<57344){if(!i){if(r>56319||s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function A(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}function P(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(C,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function M(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function j(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}var I=function(){for(var t="0123456789abcdef",e=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)e[n+i]=t[r]+t[i];return e}()},783:function(t,e){e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,l=(1<<a)-1,u=l>>1,c=-7,h=r?i-1:0,d=r?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+t[e+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[e+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=u}return(f?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,l,u=8*o-i-1,c=(1<<u)-1,h=c>>1,d=5960464477539062e-23*(23===i),f=n?0:o-1,p=n?1:-1,m=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(a=+!!isNaN(e),s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),s+h>=1?e+=d/l:e+=d*Math.pow(2,1-h),e*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*l-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+f]=255&a,f+=p,a/=256,i-=8);for(s=s<<i|a,u+=i;u>0;t[r+f]=255&s,f+=p,s/=256,u-=8);t[r+f-p]|=128*m}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var o=r[e]={exports:{}},s=!0;try{t[e](o,o.exports,n),s=!1}finally{s&&delete r[e]}return o.exports}n.ab="/ROOT/node_modules/next/dist/compiled/buffer/",e.exports=n(72)}()},28142,t=>{"use strict";t.s(["Client",()=>n$],28142);var e=t.i(47167);function r(t,e,r){if(!e.has(t))throw TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function n(t,e){var n=r(t,e,"get");return n.get?n.get.call(t):n.value}function i(t,e,r){if(e.has(t))throw TypeError("Cannot initialize the same private elements twice on an object");e.set(t,r)}function o(t,e,n){var i=r(t,e,"set");if(i.set)i.set.call(t,n);else{if(!i.writable)throw TypeError("attempted to set read only private field");i.value=n}return n}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}let a=!(typeof navigator>"u")&&"ReactNative"===navigator.product,l={timeout:a?6e4:12e4},u=function(t){let e={...l,..."string"==typeof t?{url:t}:t};if(e.timeout=function t(e){if(!1===e||0===e)return!1;if(e.connect||e.socket)return e;let r=Number(e);return isNaN(r)?t(l.timeout):{connect:r,socket:r}}(e.timeout),e.query){let{url:t,searchParams:r}=function(t){let e=t.indexOf("?");if(-1===e)return{url:t,searchParams:new URLSearchParams};let r=t.slice(0,e),n=t.slice(e+1);if(!a)return{url:r,searchParams:new URLSearchParams(n)};if("function"!=typeof decodeURIComponent)throw Error("Broken `URLSearchParams` implementation, and `decodeURIComponent` is not defined");let i=new URLSearchParams;for(let t of n.split("&")){let[e,r]=t.split("=");e&&i.append(c(e),c(r||""))}return{url:r,searchParams:i}}(e.url);for(let[n,i]of Object.entries(e.query)){if(void 0!==i)if(Array.isArray(i))for(let t of i)r.append(n,t);else r.append(n,i);let o=r.toString();o&&(e.url="".concat(t,"?").concat(o))}}return e.method=e.body&&!e.method?"POST":(e.method||"GET").toUpperCase(),e};function c(t){return decodeURIComponent(t.replace(/\+/g," "))}let h=/^https?:\/\//i,d=function(t){if(!h.test(t.url))throw Error('"'.concat(t.url,'" is not a valid URL'))},f=["request","response","progress","error","abort"],p=["processOptions","validateOptions","interceptRequest","finalizeOptions","onRequest","onResponse","onError","onReturn","onHeaders"];var m,v,y=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(function(){if(v)return m;v=1;var t=function(t){return t.replace(/^\s+|\s+$/g,"")};return m=function(e){if(!e)return{};for(var r=Object.create(null),n=t(e).split("\n"),i=0;i<n.length;i++){var o,s=n[i],a=s.indexOf(":"),l=t(s.slice(0,a)).toLowerCase(),u=t(s.slice(a+1));typeof r[l]>"u"?r[l]=u:(o=r[l],"[object Array]"===Object.prototype.toString.call(o))?r[l].push(u):r[l]=[r[l],u]}return r}}()),g=new WeakMap,b=new WeakMap,w=new WeakMap,x=new WeakMap,E=new WeakMap,T=new WeakMap,C=new WeakMap;class S{open(t,e,r){var n;o(this,g,t),o(this,b,e),o(this,w,""),this.readyState=1,null==(n=this.onreadystatechange)||n.call(this),o(this,E,void 0)}abort(){n(this,E)&&n(this,E).abort()}getAllResponseHeaders(){return n(this,w)}setRequestHeader(t,e){n(this,x)[t]=e}setInit(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];o(this,T,t),o(this,C,e)}
1send(t){let e="arraybuffer"!==this.responseType,r={...n(this,T),method:n(this,g),headers:n(this,x),body:t};"function"==typeof AbortController&&n(this,C)&&(o(this,E,new AbortController),"u">typeof EventTarget&&n(this,E).signal instanceof EventTarget&&(r.signal=n(this,E).signal)),"u">typeof document&&(r.credentials=this.withCredentials?"include":"omit"),fetch(n(this,b),r).then(t=>{var r;return t.headers.forEach((t,e)=>{o(this,w,n(this,w)+"".concat(e,": ").concat(t,"\r\n"))}),this.status=t.status,this.statusText=t.statusText,this.readyState=3,null==(r=this.onreadystatechange)||r.call(this),e?t.text():t.arrayBuffer()}).then(t=>{var e;"string"==typeof t?this.responseText=t:this.response=t,this.readyState=4,null==(e=this.onreadystatechange)||e.call(this)}).catch(t=>{var e,r;"AbortError"!==t.name?null==(e=this.onerror)||e.call(this,t):null==(r=this.onabort)||r.call(this)})}constructor(){s(this,"onabort",void 0),s(this,"onerror",void 0),s(this,"onreadystatechange",void 0),s(this,"ontimeout",void 0),s(this,"readyState",0),s(this,"response",void 0),s(this,"responseText",""),s(this,"responseType",""),s(this,"status",void 0),s(this,"statusText",void 0),s(this,"withCredentials",void 0),i(this,g,{writable:!0,value:void 0}),i(this,b,{writable:!0,value:void 0}),i(this,w,{writable:!0,value:void 0}),i(this,x,{writable:!0,value:{}}),i(this,E,{writable:!0,value:void 0}),i(this,T,{writable:!0,value:{}}),i(this,C,{writable:!0,value:void 0})}}let A="function"==typeof XMLHttpRequest?"xhr":"fetch",P="xhr"===A?XMLHttpRequest:S,M=(t,e)=>{var r;let n=t.options,i=t.applyMiddleware("finalizeOptions",n),o={},s=t.applyMiddleware("interceptRequest",void 0,{adapter:A,context:t});if(s){let t=setTimeout(e,0,null,s);return{abort:()=>clearTimeout(t)}}let a=new P;a instanceof S&&"object"==typeof i.fetch&&a.setInit(i.fetch,null==(r=i.useAbortSignal)||r);let l=i.headers,u=i.timeout,c=!1,h=!1,d=!1;if(a.onerror=t=>{m(a instanceof S?t instanceof Error?t:Error("Request error while attempting to reach is ".concat(i.url),{cause:t}):Error("Request error while attempting to reach is ".concat(i.url).concat(t.lengthComputable?"(".concat(t.loaded," of ").concat(t.total," bytes transferred)"):"")))},a.ontimeout=t=>{m(Error("Request timeout while attempting to reach ".concat(i.url).concat(t.lengthComputable?"(".concat(t.loaded," of ").concat(t.total," bytes transferred)"):"")))},a.onabort=()=>{p(!0),c=!0},a.onreadystatechange=function(){u&&(p(),o.socket=setTimeout(()=>f("ESOCKETTIMEDOUT"),u.socket)),!c&&a&&4===a.readyState&&0!==a.status&&function(){if(!(c||h||d)){if(0===a.status)return m(Error("Unknown XHR error"));p(),h=!0,e(null,{body:a.response||(""===a.responseType||"text"===a.responseType?a.responseText:""),url:i.url,method:i.method,headers:y(a.getAllResponseHeaders()),statusCode:a.status,statusMessage:a.statusText})}}()},a.open(i.method,i.url,!0),a.withCredentials=!!i.withCredentials,l&&a.setRequestHeader)for(let t in l)l.hasOwnProperty(t)&&a.setRequestHeader(t,l[t]);return i.rawBody&&(a.responseType="arraybuffer"),t.applyMiddleware("onRequest",{options:i,adapter:A,request:a,context:t}),a.send(i.body||null),u&&(o.connect=setTimeout(()=>f("ETIMEDOUT"),u.connect)),{abort:function(){c=!0,a&&a.abort()}};function f(e){d=!0,a.abort();let r=Error("ESOCKETTIMEDOUT"===e?"Socket timed out on request to ".concat(i.url):"Connection timed out on request to ".concat(i.url));r.code=e,t.channels.error.publish(r)}function p(t){(t||c||a&&a.readyState>=2&&o.connect)&&clearTimeout(o.connect),o.socket&&clearTimeout(o.socket)}function m(t){if(h)return;p(!0),h=!0,a=null;let r=t||Error("Network error while attempting to reach ".concat(i.url));r.isNetworkError=!0,r.request=i,e(r)}},j=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:M;return function t(e,r){let n=[],i=p.reduce((t,e)=>(t[e]=t[e]||[],t),{processOptions:[u],validateOptions:[d]});function o(t){let e,n=f.reduce((t,e)=>(t[e]=function(){let t=Object.create(null),e=0;return{publish:function(e){for(let r in t)t[r](e)},subscribe:function(r){let n=e++;return t[n]=r,function(){delete t[n]}}}}(),t),{}),o=function(t,e){for(var r=arguments.length,n=Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];let s="onError"===t,a=e;for(let e=0;e<i[t].length&&(a=(0,i[t][e])(a,...n),!s||a);e++);return a},s=o("processOptions",t);
1o("validateOptions",s);let a={options:s,channels:n,applyMiddleware:o},l=n.request.subscribe(t=>{e=r(t,(e,r)=>((t,e,r)=>{let i=t,s=e;if(!i)try{s=o("onResponse",e,r)}catch(t){s=null,i=t}(i=i&&o("onError",i,r))?n.error.publish(i):s&&n.response.publish(s)})(e,r,t))});n.abort.subscribe(()=>{l(),e&&e.abort()});let u=o("onReturn",n,a);return u===n&&n.request.publish(a),u}return o.use=function(t){if(!t)throw Error("Tried to add middleware that resolved to falsey value");if("function"==typeof t)throw Error("Tried to add middleware that was a function. It probably expects you to pass options to it.");if(t.onReturn&&i.onReturn.length>0)throw Error("Tried to add new middleware with `onReturn` handler, but another handler has already been registered for this event");return p.forEach(e=>{t[e]&&i[e].push(t[e])}),n.push(t),o},o.clone=()=>t(n,r),e.forEach(o.use),o}(t,e)};var I,O,k,R,D,_=t.i(67034),V={exports:{}};D||(D=1,function(t,r){let n;r.formatArgs=function(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+t.exports.humanize(this.diff),!this.useColors)return;let r="color: "+this.color;e.splice(1,0,r,"color: inherit");let n=0,i=0;e[0].replace(/%[a-zA-Z%]/g,t=>{"%%"!==t&&(n++,"%c"===t&&(i=n))}),e.splice(i,0,r)},r.save=function(t){try{t?r.storage.setItem("debug",t):r.storage.removeItem("debug")}catch(t){}},r.load=function(){let t;try{t=r.storage.getItem("debug")||r.storage.getItem("DEBUG")}catch(t){}return!t&&"u">typeof e.default&&"env"in e.default&&(t=e.default.env.DEBUG),t},r.useColors=function(){let t;return"u">typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("u">typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"u">typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"u">typeof navigator&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},r.storage=function(){try{return localStorage}catch(t){}}(),n=!1,r.destroy=()=>{n||(n=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))},r.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],r.log=console.debug||console.log||(()=>{}),t.exports=(R?k:(R=1,k=function(t){function e(t){let n,i,o,s=null;function a(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];if(!a.enabled)return;let o=Number(new Date);a.diff=o-(n||o),a.prev=n,a.curr=o,n=o,r[0]=e.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");let s=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,(t,n)=>{if("%%"===t)return"%";s++;let i=e.formatters[n];if("function"==typeof i){let e=r[s];t=i.call(a,e),r.splice(s,1),s--}return t}),e.formatArgs.call(a,r),(a.log||e.log).apply(a,r)}return a.namespace=t,a.useColors=e.useColors(),a.color=e.selectColor(t),a.extend=r,a.destroy=e.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==e.namespaces&&(i=e.namespaces,o=e.enabled(t)),o),set:t=>{s=t}}),"function"==typeof e.init&&e.init(a),a}function r(t,r){let n=e(this.namespace+(typeof r>"u"?":":r)+t);return n.log=this.log,n}function n(t,e){let r=0,n=0,i=-1,o=0;for(;r<t.length;)if(n<e.length&&(e[n]===t[r]||"*"===e[n]))"*"===e[n]?(i=n,o=r):r++,n++;else{if(-1===i)return!1;n=i+1,r=++o}for(;n<e.length&&"*"===e[n];)n++;return n===e.length}return e.debug=e,e.default=e,e.coerce=function(t){return t instanceof Error?t.stack||t.message:t},e.disable=function(){let t=[...e.names,...e.skips.map(t=>"-"+t)].join(",");return e.enable(""),t}
1,e.enable=function(t){for(let r of(e.save(t),e.namespaces=t,e.names=[],e.skips=[],("string"==typeof t?t:"").trim().replace(/\s+/g,",").split(",").filter(Boolean)))"-"===r[0]?e.skips.push(r.slice(1)):e.names.push(r)},e.enabled=function(t){for(let r of e.skips)if(n(t,r))return!1;for(let r of e.names)if(n(t,r))return!0;return!1},e.humanize=function(){if(O)return I;O=1;function t(t,e,r,n){return Math.round(t/r)+" "+n+(e>=1.5*r?"s":"")}return I=function(e,r){r=r||{};var n,i,o=typeof e;if("string"===o&&e.length>0){var s=e;if(!((s=String(s)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(a){var l=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*l;case"weeks":case"week":case"w":return 6048e5*l;case"days":case"day":case"d":return 864e5*l;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*l;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*l;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*l;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l}}}return}if("number"===o&&isFinite(e))return r.long?(i=Math.abs(e))>=864e5?t(e,i,864e5,"day"):i>=36e5?t(e,i,36e5,"hour"):i>=6e4?t(e,i,6e4,"minute"):i>=1e3?t(e,i,1e3,"second"):e+" ms":(n=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":n>=36e5?Math.round(e/36e5)+"h":n>=6e4?Math.round(e/6e4)+"m":n>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}}(),e.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(t).forEach(r=>{e[r]=t[r]}),e.names=[],e.skips=[],e.formatters={},e.selectColor=function(t){let r=0;for(let e=0;e<t.length;e++)r=(r<<5)-r+t.charCodeAt(e)|0;return e.colors[Math.abs(r)%e.colors.length]},e.enable(e.load()),e}))(r);let{formatters:i}=t.exports;i.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}}(V,V.exports)),V.exports,Object.prototype.hasOwnProperty;let F=typeof _.Buffer>"u"?()=>!1:t=>_.Buffer.isBuffer(t);function L(t){return"[object Object]"===Object.prototype.toString.call(t)}let B=["boolean","string","number"];var U="u">typeof globalThis?globalThis:"u">typeof window?window:t.g;let N=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.implementation||Promise;if(!e)throw Error("`Promise` is not available in global scope, and no implementation was passed");return{onReturn:(r,n)=>new e((e,i)=>{let o=n.options.cancelToken;o&&o.promise.then(t=>{r.abort.publish(t),i(t)}),r.error.subscribe(i),r.response.subscribe(r=>{e(t.onlyBody?r.body:r)}),setTimeout(()=>{try{r.request.publish(n)}catch(t){i(t)}},0)})}};class W{toString(){return"Cancel"+(this.message?": ".concat(this.message):"")}constructor(t){s(this,"__CANCEL__",!0),s(this,"message",void 0),this.message=t}}class z{constructor(t){if(s(this,"promise",void 0),s(this,"reason",void 0),"function"!=typeof t)throw TypeError("executor must be a function.");let e=null;this.promise=new Promise(t=>{e=t}),t(t=>{this.reason||(this.reason=new W(t),e(this.reason))})}}s(z,"source",()=>{let t;return{token:new z(e=>{t=e}),cancel:t}}),N.Cancel=W,N.CancelToken=z,N.isCancel=t=>!(!t||!(null==t?void 0:t.__CANCEL__));var q=(t,e,r)=>("GET"===r.method||"HEAD"===r.method)&&(t.isNetworkError||!1);function H(t){return 100*Math.pow(2,t)+100*Math.random()}let Y=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=>{let e=t.maxRetries||5,r=t.retryDelay||H,n=t.shouldRetry;return{onError:(t,i)=>{var o;let s=i.options,a=s.maxRetries||e,l=s.retryDelay||r,u=s.shouldRetry||n,c=s.attemptNumber||0;if(null!==(o=s.body)&&"object"==typeof o&&"function"==typeof o.pipe||!u(t,c,s)||c>=a)return t;let h=Object.assign({},i,{options:Object.assign({},s,{attemptNumber:c+1})});return setTimeout(()=>i.channels.request.publish(h),l(c)),null}}})({shouldRetry:q,...t})};Y.shouldRetry=q;
1var X=function(t,e){return(X=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function G(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}X(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function K(t,e){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(l){var u=[a,l];if(r)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,n=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],n=0}
1finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}function $(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Z(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function J(t,e,r){if(r||2==arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||(n||(n=Array.prototype.slice.call(e,0,i)),n[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function Q(t){return this instanceof Q?(this.v=t,this):new Q(t)}function tt(t){return"function"==typeof t}function te(t){var e=t(function(t){Error.call(t),t.stack=Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var tr=te(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=e}});function tn(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var ti=function(){var t;function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t,e,r,n,i,o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=$(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);var l=this.initialTeardown;if(tt(l))try{l()}catch(t){i=t instanceof tr?t.errors:[t]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var c=$(u),h=c.next();!h.done;h=c.next()){var d=h.value;try{ta(d)}catch(t){i=null!=i?i:[],t instanceof tr?i=J(J([],Z(i)),Z(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}}if(i)throw new tr(i)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)ta(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(t)}},e.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},e.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},e.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&tn(e,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&tn(r,t),t instanceof e&&t._removeParent(this)},(t=new e).closed=!0,e.EMPTY=t,e}(),to=ti.EMPTY;function ts(t){return t instanceof ti||t&&"closed"in t&&tt(t.remove)&&tt(t.add)&&tt(t.unsubscribe)}function ta(t){tt(t)?t():t.unsubscribe()}var tl={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},tu={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=tu.delegate;return(null==i?void 0:i.setTimeout)?i.setTimeout.apply(i,J([t,e],Z(r))):setTimeout.apply(void 0,J([t,e],Z(r)))},clearTimeout:function(t){var e=tu.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function tc(t){tu.setTimeout(function(){var e=tl.onUnhandledError;if(e)e(t);else throw t})}function th(){}var td=tf("C",void 0,void 0);function tf(t,e,r){return{kind:t,value:e,error:r}}var tp=null;function tm(t){if(tl.useDeprecatedSynchronousErrorHandling){var e=!tp;if(e&&(tp={errorThrown:!1,error:null}),t(),e){var r=tp,n=r.errorThrown,i=r.error;if(tp=null,n)throw i}}else t()}var tv=function(t){function e(e){var r=t.call(this)||this;return r.isStopped=!1,e?(r.destination=e,ts(e)&&e.add(r)):r.destination=tT,r}return G(e,t),e.create=function(t,e,r){return new tw(t,e,r)},e.prototype.next=function(t){this.isStopped?tE(tf("N",t,void 0),this):this._next(t)},e.prototype.error=function(t){this.isStopped?tE(tf("E",void 0,t),this):(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped?tE(td,this):(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(ti),ty=Function.prototype.bind;function tg(t,e){return ty.call(t,e)}var tb=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){tx(t)}},t.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){tx(t)}else tx(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){tx(t)}},t}(),tw=function(t){function e(e,r,n){var i,o,s=t.call(this)||this;return tt(e)||!e?i={next:null!=e?e:void 0,error:null!=r?r:void 0,complete:null!=n?n:void 0}
1:s&&tl.useDeprecatedNextContext?((o=Object.create(e)).unsubscribe=function(){return s.unsubscribe()},i={next:e.next&&tg(e.next,o),error:e.error&&tg(e.error,o),complete:e.complete&&tg(e.complete,o)}):i=e,s.destination=new tb(i),s}return G(e,t),e}(tv);function tx(t){if(tl.useDeprecatedSynchronousErrorHandling)tl.useDeprecatedSynchronousErrorHandling&&tp&&(tp.errorThrown=!0,tp.error=t);else tc(t)}function tE(t,e){var r=tl.onStoppedNotification;r&&tu.setTimeout(function(){return r(t,e)})}var tT={closed:!0,next:th,error:function(t){throw t},complete:th},tC="function"==typeof Symbol&&Symbol.observable||"@@observable";function tS(t){return t}function tA(t){return 0===t.length?tS:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}var tP=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(t,e,r){var n=this,i=!function(t){return t&&t instanceof tv||t&&tt(t.next)&&tt(t.error)&&tt(t.complete)&&ts(t)}(t)?new tw(t,e,r):t;return tm(function(){var t=n.operator,e=n.source;i.add(t?t.call(i,e):e?n._subscribe(i):n._trySubscribe(i))}),i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},t.prototype.forEach=function(t,e){var r=this;return new(e=tM(e))(function(e,n){var i=new tw({next:function(e){try{t(e)}catch(t){n(t),i.unsubscribe()}},error:n,complete:e});r.subscribe(i)})},t.prototype._subscribe=function(t){var e;return null==(e=this.source)?void 0:e.subscribe(t)},t.prototype[tC]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tA(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=tM(t))(function(t,r){var n;e.subscribe(function(t){return n=t},function(t){return r(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}();function tM(t){var e;return null!=(e=null!=t?t:tl.Promise)?e:Promise}var tj=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function tI(t){return tt(null==t?void 0:t.then)}function tO(t){return Symbol.asyncIterator&&tt(null==t?void 0:t[Symbol.asyncIterator])}function tk(t){return TypeError("You provided "+(null!==t&&"object"==typeof t?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var tR="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function tD(t){return tt(null==t?void 0:t[tR])}function t_(t){return function(t,e,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(t,e||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",function(t){return function(e){return Promise.resolve(e).then(t,u)}}),n[Symbol.asyncIterator]=function(){return this},n;function s(t,e){i[t]&&(n[t]=function(e){return new Promise(function(r,n){o.push([t,e,r,n])>1||a(t,e)})},e&&(n[t]=e(n[t])))}function a(t,e){try{var r;(r=i[t](e)).value instanceof Q?Promise.resolve(r.value.v).then(l,u):c(o[0][2],r)}catch(t){c(o[0][3],t)}}function l(t){a("next",t)}function u(t){a("throw",t)}function c(t,e){t(e),o.shift(),o.length&&a(o[0][0],o[0][1])}}(this,arguments,function(){var e,r,n;return K(this,function(i){switch(i.label){case 0:e=t.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,Q(e.read())];case 3:if(n=(r=i.sent()).value,!r.done)return[3,5];return[4,Q(void 0)];case 4:return[2,i.sent()];case 5:return[4,Q(n)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function tV(t){return tt(null==t?void 0:t.getReader)}function tF(t){if(t instanceof tP)return t;if(null!=t){var e,r,n,i;if(tt(t[tC])){return e=t,new tP(function(t){var r=e[tC]();if(tt(r.subscribe))return r.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(tj(t)){return r=t,new tP(function(t){for(var e=0;e<r.length&&!t.closed;e++)t.next(r[e]);t.complete()})}if(tI(t)){return n=t,new tP(function(t){n.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,tc)})}if(tO(t))return tL(t);if(tD(t)){return i=t,new tP(function(t){var e,r;try{for(var n=$(i),o=n.next();!o.done;o=n.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(t){e={error:t}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(e)throw e.error}}t.complete()})}if(tV(t))return tL(t_(t))}throw tk(t)}function tL(t){return new tP(function(e){(function(t,e){var r,n,i,o,s,a,l,u;return s=this,a=void 0,l=void 0,u=function(){var s;return K(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),r=function(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=$(t),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(e){return new Promise(function(n,i){var o,s,a;o=n,s=i,a=(e=t[r](e)).done,Promise.resolve(e.value).then(function(t){o({value:t,done:a})},s)})}}}(t),a.label=1;case 1:return[4,r.next()];case 2:if((n=a.sent()).done)return[3,4];if(s=n.value,e.next(s),e.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:a.sent()},[3,11];
1case 6:if(a.trys.push([6,,9,10]),!(n&&!n.done&&(o=r.return)))return[3,8];return[4,o.call(r)];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})},new(l||(l=Promise))(function(t,e){function r(t){try{i(u.next(t))}catch(t){e(t)}}function n(t){try{i(u.throw(t))}catch(t){e(t)}}function i(e){var i;e.done?t(e.value):((i=e.value)instanceof l?i:new l(function(t){t(i)})).then(r,n)}i((u=u.apply(s,a||[])).next())})})(t,e).catch(function(t){return e.error(t)})})}function tB(t){return new tP(function(e){tF(t()).subscribe(e)})}function tU(t){return t[t.length-1]}function tN(t){var e;return(e=tU(t))&&tt(e.schedule)?t.pop():void 0}function tW(t,e,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var o=e.schedule(function(){r(),i?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(o),!i)return o}function tz(t){return function(e){if(tt(null==e?void 0:e.lift))return e.lift(function(e){try{return t(e,this)}catch(t){this.error(t)}});throw TypeError("Unable to lift unknown Observable type")}}function tq(t,e,r,n,i){return new tH(t,e,r,n,i)}var tH=function(t){function e(e,r,n,i,o,s){var a=t.call(this,e)||this;return a.onFinalize=o,a.shouldUnsubscribe=s,a._next=r?function(t){try{r(t)}catch(t){e.error(t)}}:t.prototype._next,a._error=i?function(t){try{i(t)}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._error,a._complete=n?function(){try{n()}catch(t){e.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,a}return G(e,t),e.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),r||null==(e=this.onFinalize)||e.call(this)}},e}(tv);function tY(t,e){return void 0===e&&(e=0),tz(function(r,n){r.subscribe(tq(n,function(r){return tW(n,t,function(){return n.next(r)},e)},function(){return tW(n,t,function(){return n.complete()},e)},function(r){return tW(n,t,function(){return n.error(r)},e)}))})}function tX(t,e){return void 0===e&&(e=0),tz(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function tG(t,e){if(!t)throw Error("Iterable cannot be null");return new tP(function(r){tW(r,e,function(){var n=t[Symbol.asyncIterator]();tW(r,e,function(){n.next().then(function(t){t.done?r.complete():r.next(t.value)})},0,!0)})})}function tK(t,e){return e?function(t,e){if(null!=t){if(tt(t[tC]))return tF(t).pipe(tX(e),tY(e));if(tj(t))return new tP(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})});if(tI(t))return tF(t).pipe(tX(e),tY(e));if(tO(t))return tG(t,e);if(tD(t))return new tP(function(r){var n;return tW(r,e,function(){n=t[tR](),tW(r,e,function(){var t,e,i;try{e=(t=n.next()).value,i=t.done}catch(t){r.error(t);return}i?r.complete():r.next(e)},0,!0)}),function(){return tt(null==n?void 0:n.return)&&n.return()}});if(tV(t))return tG(t_(t),e)}throw tk(t)}(t,e):tF(t)}function t$(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=tN(t);return tK(t,r)}function tZ(t,e){return tz(function(r,n){var i=0;r.subscribe(tq(n,function(r){n.next(t.call(e,r,i++))}))})}function tJ(t,e,r){return(void 0===r&&(r=1/0),tt(e))?tJ(function(r,n){return tZ(function(t,i){return e(r,t,n,i)})(tF(t(r,n)))},r):("number"==typeof e&&(r=e),tz(function(e,n){var i,o,s,a,l,u,c,h,d;return i=r,s=[],a=0,l=0,u=!1,c=function(){!u||s.length||a||n.complete()},h=function(t){return a<i?d(t):s.push(t)},d=function(e){a++;var r=!1;tF(t(e,l++)).subscribe(tq(n,function(t){o?h(t):n.next(t)},function(){r=!0},void 0,function(){if(r)try{for(a--;s.length&&a<i;)!function(){var t=s.shift();d(t)}();c()}catch(t){n.error(t)}}))},e.subscribe(tq(n,h,function(){u=!0,c()})),function(){}}))}var tQ=te(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function t0(t,e){var r="object"==typeof e;return new Promise(function(n,i){var o,s=!1;t.subscribe({next:function(t){o=t,s=!0},error:i,complete:function(){s?n(o):r?n(e.defaultValue):i(new tQ)}})})}var t1=te(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),t2=function(t){function e(){var e=t.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return G(e,t),e.prototype.lift=function(t){var e=new t3(this,this);return e.operator=t,e},e.prototype._throwIfClosed=function(){if(this.closed)throw new t1},e.prototype.next=function(t){var e=this;tm(function(){var r,n;if(e._throwIfClosed(),!e.isStopped){e.currentObservers||(e.currentObservers=Array.from(e.observers));try{for(var i=$(e.currentObservers),o=i.next();!o.done;o=i.next())o.value.next(t)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}}})},e.prototype.error=function(t){var e=this;tm(function(){if(e._throwIfClosed(),!e.isStopped){e.hasError=e.isStopped=!0,e.thrownError=t;for(var r=e.observers;r.length;)r.shift().error(t)}})},e.prototype.complete=function(){var t=this;tm(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return(null==(t=this.observers)?void 0:t.length)>0}
1,enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(e){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var e=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?to:(this.currentObservers=null,i.push(t),new ti(function(){e.currentObservers=null,tn(i,t)}))},e.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},e.prototype.asObservable=function(){var t=new tP;return t.source=this,t},e.create=function(t,e){return new t3(t,e)},e}(tP),t3=function(t){function e(e,r){var n=t.call(this)||this;return n.destination=e,n.source=r,n}return G(e,t),e.prototype.next=function(t){var e,r;null==(r=null==(e=this.destination)?void 0:e.next)||r.call(e,t)},e.prototype.error=function(t){var e,r;null==(r=null==(e=this.destination)?void 0:e.error)||r.call(e,t)},e.prototype.complete=function(){var t,e;null==(e=null==(t=this.destination)?void 0:t.complete)||e.call(t)},e.prototype._subscribe=function(t){var e,r;return null!=(r=null==(e=this.source)?void 0:e.subscribe(t))?r:to},e}(t2),t5={now:function(){return(t5.delegate||Date).now()},delegate:void 0},t6=function(t){function e(e,r,n){void 0===e&&(e=1/0),void 0===r&&(r=1/0),void 0===n&&(n=t5);var i=t.call(this)||this;return i._bufferSize=e,i._windowTime=r,i._timestampProvider=n,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=r===1/0,i._bufferSize=Math.max(1,e),i._windowTime=Math.max(1,r),i}return G(e,t),e.prototype.next=function(e){var r=this.isStopped,n=this._buffer,i=this._infiniteTimeWindow,o=this._timestampProvider,s=this._windowTime;!r&&(n.push(e),i||n.push(o.now()+s)),this._trimBuffer(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},e.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=e.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},e}(t2);function t8(t){void 0===t&&(t={});var e=t.connector,r=void 0===e?function(){return new t2}:e,n=t.resetOnError,i=void 0===n||n,o=t.resetOnComplete,s=void 0===o||o,a=t.resetOnRefCountZero,l=void 0===a||a;return function(t){var e,n,o,a=0,u=!1,c=!1,h=function(){null==n||n.unsubscribe(),n=void 0},d=function(){h(),e=o=void 0,u=c=!1},f=function(){var t=e;d(),null==t||t.unsubscribe()};return tz(function(t,p){a++,c||u||h();var m=o=null!=o?o:r();p.add(function(){0!=--a||c||u||(n=t4(f,l))}),m.subscribe(p),!e&&a>0&&(e=new tw({next:function(t){return m.next(t)},error:function(t){c=!0,h(),n=t4(d,i,t),m.error(t)},complete:function(){u=!0,h(),n=t4(d,s),m.complete()}}),tF(t).subscribe(e))})(t)}}function t4(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(!0===e)return void t();if(!1!==e){var i=new tw({next:function(){i.unsubscribe(),t()}});return tF(e.apply(void 0,J([],Z(r)))).subscribe(i)}}function t9(t){return tz(function(e,r){var n,i=null,o=!1;i=e.subscribe(tq(r,void 0,void 0,function(s){n=tF(t(s,t9(t)(e))),i?(i.unsubscribe(),i=null,n.subscribe(r)):o=!0})),o&&(i.unsubscribe(),i=null,n.subscribe(r))})}function t7(t){return void 0===t&&(t=1/0),tJ(tS,t)}function et(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t7(1)(tK(t,tN(t)))}function ee(t,e){var r=tt(t)?t:function(){return t},n=function(t){return t.error(r())};return new tP(e?function(t){return e.schedule(n,0,t)}:n)}var er=function(t){function e(e,r){return t.call(this)||this}return G(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(ti),en={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=en.delegate;return(null==i?void 0:i.setInterval)?i.setInterval.apply(i,J([t,e],Z(r))):setInterval.apply(void 0,J([t,e],Z(r)))},clearInterval:function(t){var e=en.delegate;return((null==e?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},ei=function(t){function e(e,r){var n=t.call(this,e,r)||this;
1return n.scheduler=e,n.work=r,n.pending=!1,n}return G(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,r){return void 0===r&&(r=0),en.setInterval(t.flush.bind(t,this),r)},e.prototype.recycleAsyncId=function(t,e,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return e;null!=e&&en.clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,e);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var r,n=!1;try{this.work(t)}catch(t){n=!0,r=t||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},e.prototype.unsubscribe=function(){if(!this.closed){var e=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,tn(n,this),null!=e&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(er),eo=function(){function t(e,r){void 0===r&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(t,e,r){return void 0===e&&(e=0),new this.schedulerActionCtor(this,t).schedule(r,e)},t.now=t5.now,t}(),es=new(function(t){function e(e,r){void 0===r&&(r=eo.now);var n=t.call(this,e,r)||this;return n.actions=[],n._active=!1,n}return G(e,t),e.prototype.flush=function(t){var e,r=this.actions;if(this._active)return void r.push(t);this._active=!0;do if(e=t.execute(t.state,t.delay))break;while(t=r.shift())if(this._active=!1,e){for(;t=r.shift();)t.unsubscribe();throw e}},e}(eo))(ei);function ea(t){return tz(function(e,r){try{e.subscribe(r)}finally{r.add(t)}})}var el=new tP(function(t){return t.complete()});function eu(t,e){var r="object"==typeof e;return new Promise(function(n,i){var o=new tw({next:function(t){n(t),o.unsubscribe()},error:i,complete:function(){r?n(e.defaultValue):i(new tQ)}});t.subscribe(o)})}var ec=t.i(47984);Object.getPrototypeOf,Object.prototype,Object.keys;var eh=Array.isArray,ed=Array.isArray;function ef(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=tt(tU(t))?t.pop():void 0;return r?function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return tA(t)}(ef.apply(void 0,J([],Z(t))),tZ(function(t){return eh(t)?r.apply(void 0,J([],Z(t))):r(t)})):tz(function(e,r){var n,i,o;(n=J([e],Z(1===t.length&&ed(t[0])?t[0]:t)),void 0===o&&(o=tS),function(t){var e,r,s;e=void 0,r=function(){for(var e=n.length,r=Array(e),s=e,a=e,l=function(e){var l,u,c;l=i,u=function(){var l=tK(n[e],i),u=!1;l.subscribe(tq(t,function(n){r[e]=n,!u&&(u=!0,a--),a||t.next(o(r.slice()))},function(){--s||t.complete()}))},c=t,l?tW(c,l,u):u()},u=0;u<e;u++)l(u)},s=t,e?tW(s,e,r):r()})(r)})}function ep(t,e){return tz(function(r,n){var i=0;r.subscribe(tq(n,function(r){return t.call(e,r,i++)&&n.next(r)}))})}let em="".concat("drafts").concat("."),ev="".concat("versions").concat(".");function ey(t){return t.startsWith(em)}function eg(t){return t.startsWith(ev)}function eb(t){return eg(t)?em+eE(t):ey(t)?t:em+t}function ew(t,e){if("drafts"===e||"published"===e)throw Error('Version can not be "published" or "drafts"');return"".concat(ev).concat(e).concat(".").concat(eE(t))}function ex(t){if(!eg(t))return;let[e,r,...n]=t.split(".");return r}function eE(t){return eg(t)?t.split(".").slice(2).join("."):ey(t)?t.slice(em.length):t}let eT=t=>crypto.getRandomValues(new Uint8Array(t)),eC=/\r\n|[\n\r\u2028\u2029]/;function eS(t,e){var r,n;let i=0;for(let r=0;r<e.length;r++){let n=e[r].length+1;if(i+n>t)return{line:r+1,column:t-i};i+=n}return{line:e.length,column:null!=(n=null==(r=e[e.length-1])?void 0:r.length)?n:0}}class eA extends Error{constructor(t,e){let r=eM(t,e);super(r.message),s(this,"response",void 0),s(this,"statusCode",400),s(this,"responseBody",void 0),s(this,"details",void 0),Object.assign(this,r)}}
1class eP extends Error{constructor(t){let e=eM(t);super(e.message),s(this,"response",void 0),s(this,"statusCode",500),s(this,"responseBody",void 0),s(this,"details",void 0),Object.assign(this,e)}}function eM(t,e){var r,n,i,o,s;let a=t.body,l={response:t,statusCode:t.statusCode,responseBody:(r=a,-1!==(t.headers["content-type"]||"").toLowerCase().indexOf("application/json")?JSON.stringify(r,null,2):r),message:"",details:void 0};if(!(0,ec.isRecord)(a))return l.message=eO(t,a),l;let u=a.error;if("string"==typeof u&&"string"==typeof a.message)return l.message="".concat(u," - ").concat(a.message),l;if("object"!=typeof u||null===u)return"string"==typeof u?l.message=u:"string"==typeof a.message?l.message=a.message:l.message=eO(t,a),l;if("type"in(n=u)&&"mutationError"===n.type&&"description"in n&&"string"==typeof n.description||"type"in(i=u)&&"actionError"===i.type&&"description"in i&&"string"==typeof i.description){let t=u.items||[],e=t.slice(0,5).map(t=>{var e;return null==(e=t.error)?void 0:e.description}).filter(Boolean),r=e.length?":\n- ".concat(e.join("\n- ")):"";return t.length>5&&(r+="\n...and ".concat(t.length-5," more")),l.message="".concat(u.description).concat(r),l.details=a.error,l}if(ej(u)){return l.message=eI(u,null==e||null==(s=e.options)||null==(o=s.query)?void 0:o.tag),l.details=a.error,l}return"description"in u&&"string"==typeof u.description?(l.message=u.description,l.details=u):l.message=eO(t,a),l}function ej(t){return(0,ec.isRecord)(t)&&"queryParseError"===t.type&&"string"==typeof t.query&&"number"==typeof t.start&&"number"==typeof t.end}function eI(t,e){let{query:r,start:n,end:i,description:o}=t;return!r||typeof n>"u"?"GROQ query parse error: ".concat(o):"GROQ query parse error:\n".concat(function(t,e,r){let n=t.split(eC),{start:i,end:o,markerLines:s}=function(t,e){var r,n;let i={...t.start},o={...i,...t.end},s=null!=(r=i.line)?r:-1,a=null!=(n=i.column)?n:0,l=o.line,u=o.column,c=Math.max(s-3,0),h=Math.min(e.length,l+3);-1===s&&(c=0),-1===l&&(h=e.length);let d=l-s,f={};if(d)for(let t=0;t<=d;t++){let r=t+s;if(a)if(0===t){let t=e[r-1].length;f[r]=[a,t-a+1]}else if(t===d)f[r]=[0,u];else{let n=e[r-t].length;f[r]=[0,n]}else f[r]=!0}else a===u?a?f[s]=[a,0]:f[s]=!0:f[s]=[a,u-a];return{start:c,end:h,markerLines:f}}({start:eS(e.start,n),end:e.end?eS(e.end,n):void 0},n),a="".concat(o).length;return t.split(eC,o).slice(i,o).map((t,e)=>{let n=i+1+e,o=" ".concat(" ".concat(n).slice(-a)," |"),l=s[n],u=!s[n+1];if(!l)return" ".concat(o).concat(t.length>0?" ".concat(t):"");let c="";if(Array.isArray(l)){let e=t.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," "),n=l[1]||1;c="\n "+o.replace(/\d/g," ")+" "+e+"^".repeat(n),u&&r&&(c+=" "+r)}return">"+o+(t.length>0?" ".concat(t):"")+c}).join("\n")}(r,{start:n,end:i},o)).concat(e?"\n\nTag: ".concat(e):"")}function eO(t,e){var r,n;let i="string"==typeof e?" (".concat((n=100,(r=e).length>100?"".concat(r.slice(0,n),"…"):r),")"):"",o=t.statusMessage?" ".concat(t.statusMessage):"";return"".concat(t.method,"-request to ").concat(t.url," resulted in HTTP ").concat(t.statusCode).concat(o).concat(i)}class ek extends Error{constructor({projectId:t}){super("CorsOriginError"),s(this,"projectId",void 0),s(this,"addOriginUrl",void 0),this.name="CorsOriginError",this.projectId=t;let e=new URL("https://sanity.io/manage/project/".concat(t,"/api"));if("u">typeof location){let{origin:t}=location;e.searchParams.set("cors","add"),e.searchParams.set("origin",t),this.addOriginUrl=e,this.message="The current origin is not allowed to connect to the Live Content API. Add it here: ".concat(e)}else this.message="The current origin is not allowed to connect to the Live Content API. Change your configuration here: ".concat(e)}}let eR={onResponse:(t,e)=>{if(t.statusCode>=500)throw new eP(t);if(t.statusCode>=400)throw new eA(t,e);return t}};function eD(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return j([Y({shouldRetry:e_}),...t,function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e={},r=e=>void 0!==t.ignoreWarnings&&(Array.isArray(t.ignoreWarnings)?t.ignoreWarnings:[t.ignoreWarnings]).some(t=>"string"==typeof t?e.includes(t):t instanceof RegExp&&t.test(e));return{onResponse:t=>{let n=t.headers["x-sanity-warning"];for(let t of Array.isArray(n)?n:[n])!t||e[t]||r(t)||(e[t]=!0,console.warn(t));return t}}}(e),{processOptions:t=>{let e=t.body;return!e||"function"==typeof e.pipe||F(e)||-1===B.indexOf(typeof e)&&!Array.isArray(e)&&!function(t){if(!1===L(t))return!1;let e=t.constructor;if(void 0===e)return!0;let r=e.prototype;return!1!==L(r)&&!1!==r.hasOwnProperty("isPrototypeOf")}(e)?t:Object.assign({},t,{body:JSON.stringify(t.body),headers:Object.assign({},t.headers,{"Content-Type":"application/json"})})}},{onResponse:t=>{let e=t.headers["content-type"]||"",r=-1!==e.indexOf("application/json");return t.body&&e&&r?Object.assign({},t,{body:function(t){try{return JSON.parse(t)}catch(t){throw t.message="Failed to parsed response body as JSON: ".concat(t.message),t}}(t.body)}):t},processOptions:t=>Object.assign({},t,{headers:Object.assign({Accept:"application/json"},t.headers)})},{onRequest:t=>{if("xhr"!==t.adapter)return;let e=t.request,r=t.context;function n(t){return e=>{let n=e.lengthComputable?e.loaded/e.total*100:-1;r.channels.progress.publish({stage:t,percent:n,total:e.total,loaded:e.loaded,lengthComputable:e.lengthComputable})}}"upload"in e&&"onprogress"in e.upload&&(e.upload.onprogress=n("upload")),"onprogress"in e&&(e.onprogress=n("download"))}},eR,function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.implementation||U.Observable;if(!e)throw Error("`Observable` is not available in global scope, and n
1o implementation was passed");return{onReturn:(t,r)=>new e(e=>(t.error.subscribe(t=>e.error(t)),t.progress.subscribe(t=>e.next(Object.assign({type:"progress"},t))),t.response.subscribe(t=>{e.next(Object.assign({type:"response"},t)),e.complete()}),t.request.publish(r),()=>t.abort.publish()))}}({implementation:tP})])}function e_(t,e,r){if(0===r.maxRetries)return!1;let n="GET"===r.method||"HEAD"===r.method,i=(r.uri||r.url).startsWith("/data/query"),o=t.response&&(429===t.response.statusCode||502===t.response.statusCode||503===t.response.statusCode);return(!!n||!!i)&&!!o||Y.shouldRetry(t,e,r)}function eV(t){return"https://www.sanity.io/help/"+t}let eF=["image","file"],eL=["before","after","replace"],eB=t=>{if(!/^(~[a-z0-9]{1}[-\w]{0,63}|[a-z0-9]{1}[-\w]{0,63})$/.test(t))throw Error("Datasets can only contain lowercase characters, numbers, underscores and dashes, and start with tilde, and be maximum 64 characters")},eU=(t,e)=>{if(null===e||"object"!=typeof e||Array.isArray(e))throw Error("".concat(t,"() takes an object of properties"))},eN=(t,e)=>{if("string"!=typeof e||!/^[a-z0-9_][a-z0-9_.-]{0,127}$/i.test(e)||e.includes(".."))throw Error("".concat(t,'(): "').concat(e,'" is not a valid document ID'))},eW=(t,e)=>{if(!e._id)throw Error("".concat(t,'() requires that the document contains an ID ("_id" property)'));eN(t,e._id)},ez=(t,e)=>{if(!e._type)throw Error("`".concat(t,"()` requires that the document contains a type (`_type` property)"));((t,e)=>{if("string"!=typeof e)throw Error("`".concat(t,"()`: `").concat(e,"` is not a valid document type"))})(t,e._type)},eq=t=>{if(!t.dataset)throw Error("`dataset` must be provided to perform queries");return t.dataset||""},eH=t=>{if("string"!=typeof t||!/^[a-z0-9._-]{1,75}$/i.test(t))throw Error("Tag can only contain alphanumeric characters, underscores, dashes and dots, and be between one and 75 characters long.");return t},eY=t=>{if(!t["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:e,id:r}=t["~experimental_resource"];switch(e){case"dataset":if(2!==r.split(".").length)throw Error('Dataset resource ID must be in the format "project.dataset"');return;case"dashboard":case"media-library":case"canvas":return;default:throw Error("Unsupported resource type: ".concat(e.toString()))}},eX=(t,e)=>{if(e["~experimental_resource"])throw Error("`".concat(t,"` does not support resource-based operations"))},eG=t=>(function(t){let e=!1,r;return function(){for(var n=arguments.length,i=Array(n),o=0;o<n;o++)i[o]=arguments[o];return e||(r=t(...i),e=!0),r}})(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return console.warn(t.join(" "),...r)}),eK=eG(["Because you set `withCredentials` to true, we will override your `useCdn`","setting to be false since (cookie-based) credentials are never set on the CDN"]),e$=eG(["Since you haven't set a value for `useCdn`, we will deliver content using our","global, edge-cached API-CDN. If you wish to have content delivered faster, set","`useCdn: false` to use the Live API. Note: You may incur higher costs using the live API."]),eZ=eG(["The Sanity client is configured with the `perspective` set to `drafts` or `previewDrafts`, which doesn't support the API-CDN.","The Live API will be used instead. Set `useCdn: false` in your configuration to hide this warning."]),eJ=eG(["The `previewDrafts` perspective has been renamed to  `drafts` and will be removed in a future API version"]),eQ=eG(["You have configured Sanity client to use a token in the browser. This may cause unintentional security issues.","See ".concat(eV("js-client-browser-token")," for more information and how to hide this warning.")]),e0=eG(["You have configured Sanity client to use a token, but also provided `withCredentials: true`.","This is no longer supported - only token will be used - remove `withCredentials: true`."]),e1=eG(["Using the Sanity client without specifying an API version is deprecated.","See ".concat(eV("js-client-api-version"))]),e2=(eG(["The default export of @sanity/client has been deprecated. Use the named export `createClient` instead."]),eG(["You have called `createVersion()` with a defined `document`. The recommended approach is to provide a `baseId` and `releaseId` instead."])),e3={apiHost:"https://api.sanity.io",apiVersion:"1",useProjectHostname:!0,stega:{enabled:!1}},e5=["localhost","127.0.0.1","0.0.0.0"];function e6(t){if(Array.isArray(t)&&t.length>1&&t.includes("raw"))throw TypeError('Invalid API perspective value: "raw". The raw-perspective can not be combined with other perspectives')}let e8=(t,e)=>{let r,n={...e,...t,stega:{..."boolean"==typeof e.stega?{enabled:e.stega}:e.stega||e3.stega,..."boolean"==typeof t.stega?{enabled:t.stega}:t.stega||{}}};n.apiVersion||e1();let i={...e3,...n},o=i.useProjectHostname&&!i["~experimental_resource"];if(typeof Promise>"u"){let t=eV("js-client-promise-polyfill");throw Error("No native Promise-implementation found, polyfill needed - see ".concat(t))}if(o&&!i.projectId)throw Error("Configuration must contain `projectId`");if(i["~experimental_resource"]&&eY(i),"u">typeof i.perspective&&e6(i.perspective),"encodeSourceMap"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMap' is not supported in '@sanity/client'. Did you mean 'stega.enabled'?");if("encodeSourceMapAtPath"in i)throw Error("It looks like you're using options meant for '@sanity/preview-kit/client'. 'encodeSourceMapAtPath' is not supported in '@sanity/client'. Did you mean 'stega.filter'?");
1if("boolean"!=typeof i.stega.enabled)throw Error("stega.enabled must be a boolean, received ".concat(i.stega.enabled));if(i.stega.enabled&&void 0===i.stega.studioUrl)throw Error("stega.studioUrl must be defined when stega.enabled is true");if(i.stega.enabled&&"string"!=typeof i.stega.studioUrl&&"function"!=typeof i.stega.studioUrl)throw Error("stega.studioUrl must be a string or a function, received ".concat(i.stega.studioUrl));let s="u">typeof window&&window.location&&window.location.hostname,a=s&&(r=window.location.hostname,-1!==e5.indexOf(r)),l=!!i.token;i.withCredentials&&l&&(e0(),i.withCredentials=!1),s&&a&&l&&!0!==i.ignoreBrowserTokenWarning?eQ():typeof i.useCdn>"u"&&e$(),o&&(t=>{if(!/^[-a-z0-9]+$/i.test(t))throw Error("`projectId` can only contain only a-z, 0-9 and dashes")})(i.projectId),i.dataset&&eB(i.dataset),"requestTagPrefix"in i&&(i.requestTagPrefix=i.requestTagPrefix?eH(i.requestTagPrefix).replace(/\.+$/,""):void 0),i.apiVersion="".concat(i.apiVersion).replace(/^v/,""),i.isDefaultApi=i.apiHost===e3.apiHost,!0===i.useCdn&&i.withCredentials&&eK(),i.useCdn=!1!==i.useCdn&&!i.withCredentials,function(t){if("1"===t||"X"===t)return;let e=new Date(t);if(!(/^\d{4}-\d{2}-\d{2}$/.test(t)&&e instanceof Date&&e.getTime()>0))throw Error("Invalid API version string, expected `1` or date in format `YYYY-MM-DD`")}(i.apiVersion);let u=i.apiHost.split("://",2),c=u[0],h=u[1],d=i.isDefaultApi?"apicdn.sanity.io":h;return o?(i.url="".concat(c,"://").concat(i.projectId,".").concat(h,"/v").concat(i.apiVersion),i.cdnUrl="".concat(c,"://").concat(i.projectId,".").concat(d,"/v").concat(i.apiVersion)):(i.url="".concat(i.apiHost,"/v").concat(i.apiVersion),i.cdnUrl=i.url),i};class e4 extends Error{constructor(...t){super(...t),s(this,"name","ConnectionFailedError")}}class e9 extends Error{constructor(t,e,r={}){super(t,r),s(this,"name","DisconnectError"),s(this,"reason",void 0),this.reason=e}}class e7 extends Error{constructor(t,e){super(t),s(this,"name","ChannelError"),s(this,"data",void 0),this.data=e}}class rt extends Error{constructor(t,e,r={}){super(t,r),s(this,"name","MessageError"),s(this,"data",void 0),this.data=e}}class re extends Error{constructor(...t){super(...t),s(this,"name","MessageParseError")}}let rr=["channelError","disconnect"];function rn(t,e){return tB(()=>{let e=t();return e&&(e instanceof tP||tt(e.lift)&&tt(e.subscribe))?e:t$(e)}).pipe(tJ(t=>{var r,n;return r=t,n=e,new tP(t=>{let e=n.includes("open"),i=n.includes("reconnect");function o(e){if("data"in e){let[r,n]=ri(e);t.error(r?new re("Unable to parse EventSource error message",{cause:n}):new rt((null==n?void 0:n.data).message,n));return}r.readyState===r.CLOSED?t.error(new e4("EventSource connection failed")):i&&t.next({type:"reconnect"})}function s(){t.next({type:"open"})}function a(e){let[n,i]=ri(e);if(n)return void t.error(new re("Unable to parse EventSource message",{cause:n}));if("channelError"===e.type){let e=new URL(r.url).searchParams.get("tag");t.error(new e7(function(t,e){let r=t.error;return r?ej(r)?eI(r,e):r.description?r.description:"string"==typeof r?r:JSON.stringify(r,null,2):t.message||"Unknown listener error"}(null==i?void 0:i.data,e),i.data));return}if("disconnect"===e.type){var o;t.error(new e9("Server disconnected client: ".concat((null==(o=i.data)?void 0:o.reason)||"unknown error")));return}t.next({type:e.type,id:e.lastEventId,...i.data?{data:i.data}:{}})}r.addEventListener("error",o),e&&r.addEventListener("open",s);let l=[...new Set([...rr,...n])].filter(t=>"error"!==t&&"open"!==t&&"reconnect"!==t);return l.forEach(t=>r.addEventListener(t,a)),()=>{r.removeEventListener("error",o),e&&r.removeEventListener("open",s),l.forEach(t=>r.removeEventListener(t,a)),r.close()}})}))}function ri(t){try{let e="string"==typeof t.data&&JSON.parse(t.data);return[null,{type:t.type,id:t.lastEventId,...!function(t){for(let e in t)return!1;return!0}(e)?{data:e}:{}}]}catch(t){return[t,null]}}function ro(t){if("string"==typeof t)return{id:t};if(Array.isArray(t))return{query:"*[_id in $ids]",params:{ids:t}};if("object"==typeof t&&null!==t&&"query"in t&&"string"==typeof t.query)return"params"in t&&"object"==typeof t.params&&null!==t.params?{query:t.query,params:t.params}:{query:t.query};throw Error("Unknown selection - must be one of:\n\n".concat("* Document ID (<docId>)\n* Array of document IDs\n* Object containing `query`"))}class rs{set(t){return this._assign("set",t)}setIfMissing(t){return this._assign("setIfMissing",t)}diffMatchPatch(t){return eU("diffMatchPatch",t),this._assign("diffMatchPatch",t)}unset(t){if(!Array.isArray(t))throw Error("unset(attrs) takes an array of attributes to unset, non-array given");return this.operations=Object.assign({},this.operations,{unset:t}),this}inc(t){return this._assign("inc",t)}dec(t){return this._assign("dec",t)}insert(t,e,r){return((t,e,r)=>{let n="insert(at, selector, items)";if(-1===eL.indexOf(t)){let t=eL.map(t=>'"'.concat(t,'"')).join(", ");throw Error("".concat(n,' takes an "at"-argument which is one of: ').concat(t))}if("string"!=typeof e)throw Error("".concat(n,' takes a "selector"-argument which must be a string'));if(!Array.isArray(r))throw Error("".concat(n,' takes an "items"-argument which must be an array'))})(t,e,r),this._assign("insert",{[t]:e,items:r})}append(t,e){return this.insert("after","".concat(t,"[-1]"),e)}prepend(t,e){return this.insert("before","".concat(t,"[0]"),e)}splice(t,e,r,n){let i=e<0?e-1:e,o=typeof r>"u"||-1===r?-1:Math.max(0,e+r),s="".concat(t,"[").concat(i,":").concat(i<0&&o>=0?"":o,"]");return this.insert("replace",s,n||[])}ifRevisionId(t){return this.operations.ifRevisionID=t,this}serialize(){return{...ro(this.selection),...this.operations}}toJSON(){return this.serialize()}reset(){return this.operations={},this}_assign(t,e){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return eU(t,e),this.operations=Object.assign({},this.operations,{[t]:Object.assign({},r&&this.operations[t]||{},e)}),this}_set(t,e){return this._assign(t,e,!1)}constructor(t,e={}){s(this,"selection",void 0),s(this,"operations",void 0),this.selection=t,this.operations=e}}var ra=new WeakMap;class rl extends rs{clone(){return new rl(this.selection,{...this.operations},n(this,ra))}commit(t){if(!n(this,ra))throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let e=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},t);return n(this,ra).mutate({patch:this.serialize()},e)}constructor(t,e,r){super(t,e),i(this,ra,{writable:!0,value:void 0}),o(this,ra,r)}}var ru=new WeakMap;class rc extends rs{clone(){return new rc(this.selection,{...this.operations},n(this,ru))}commit(t){if(!n(this,ru))throw Error("No `client` passed to patch, either provide one or pass the patch to a clients `mutate()` method");let e=Object.assign({returnFirst:"string"==typeof this.selection,returnDocuments:!0},t);return n(this,ru).mutate({patch:this.serialize()},e)}constructor(t,e,r){super(t,e),i(this,ru,{writable:!0,value:void 0}),o(this,ru,r)}}let rh={returnDocuments:!1};class rd{create(t){return eU("create",t),this._add({create:t})}createIfNotExists(t){let e="createIfNotExists";return eU(e,t),eW(e,t),this._add({[e]:t})}createOrReplace(t){let e="createOrReplace";return eU(e,t),eW(e,t),this._add({[e]:t})}delete(t){return eN("delete",t),this._add({delete:{id:t}})}transactionId(t){return t?(this.trxId=t,this):this.trxId}serialize(){return[...this.operations]}toJSON(){return this.serialize()}reset(){return this.operations=[],this}_add(t){return this.operations.push(t),this}constructor(t=[],e){s(this,"operations",void 0),s(this,"trxId",void 0),this.operations=t,this.trxId=e}}var rf=new WeakMap;class rp extends rd{clone(){return new rp([...this.operations],n(this,rf),this.trxId)}commit(t){if(!n(this,rf))throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return n(this,rf).mutate(this.serialize(),Object.assign({transactionId:this.trxId},rh,t||{}))}patch(t,e){let r="function"==typeof e,i="string"!=typeof t&&t instanceof rc,o="object"==typeof t&&("query"in t||"id"in t);if(i)return this._add({patch:t.serialize()});if(r){let r=e(new rc(t,{},n(this,rf)));if(!(r instanceof rc))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}if(o){let r=new rc(t,e||{},n(this,rf));return this._add({patch:r.serialize()})}return this._add({patch:{id:t,...e}})}constructor(t,e,r){super(t,r),i(this,rf,{writable:!0,value:void 0}),o(this,rf,e)}}var rm=new WeakMap;class rv extends rd{clone(){return new rv([...this.operations],n(this,rm),this.trxId)}commit(t){if(!n(this,rm))throw Error("No `client` passed to transaction, either provide one or pass the transaction to a clients `mutate()` method");return n(this,rm).mutate(this.serialize(),Object.assign({transactionId:this.trxId},rh,t||{}))}patch(t,e){let r="function"==typeof e;if("string"!=typeof t&&t instanceof rl)return this._add({patch:t.serialize()});if(r){let r=e(new rl(t,{},n(this,rm)));if(!(r instanceof rl))throw Error("function passed to `patch()` must return the patch");return this._add({patch:r.serialize()})}return this._add({patch:{id:t,...e}})}constructor(t,e,r){super(t,r),i(this,rm,{writable:!0,value:void 0}),o(this,rm,e)}}let ry=t=>{let{query:e,params:r={},options:n={}}=t,i=new URLSearchParams,{tag:o,includeMutations:s,returnQuery:a,...l}=n;for(let[t,n]of(o&&i.append("tag",o),i.append("query",e),Object.entries(r)))void 0!==n&&i.append("$".concat(t),JSON.stringify(n));for(let[t,e]of Object.entries(l))e&&i.append(t,"".concat(e));return!1===a&&i.append("returnQuery","false"),!1===s&&i.append("includeMutations","fal
1se"),"?".concat(i)},rg=function(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{dryRun:e.dryRun,returnIds:!0,returnDocuments:(t=e.returnDocuments,!1===t?void 0:!!(typeof t>"u")||t),visibility:e.visibility||"sync",autoGenerateArrayKeys:e.autoGenerateArrayKeys,skipCrossDatasetReferenceValidation:e.skipCrossDatasetReferenceValidation}},rb=t=>"response"===t.type,rw=t=>t.body;function rx(e,r,n,i){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a="stega"in s?{...n||{},..."boolean"==typeof s.stega?{enabled:s.stega}:s.stega||{}}:n,l=a.enabled?(0,ec.stegaClean)(o):o,u=!1===s.filterResponse?t=>t:t=>t.result,{cache:c,next:h,...d}={useAbortSignal:"u">typeof s.signal,resultSourceMap:a.enabled?"withKeyArraySelector":s.resultSourceMap,...s,returnQuery:!1===s.filterResponse&&!1!==s.returnQuery},f=r_(e,r,"query",{query:i,params:l},"u">typeof c||"u">typeof h?{...d,fetch:{cache:c,next:h}}:d);return a.enabled?f.pipe(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ef.apply(void 0,J([],Z(t)))}(tK(t.A(84927).then(function(t){return t.stegaEncodeSourceMap$1}).then(t=>{let{stegaEncodeSourceMap:e}=t;return e}))),tZ(t=>{let[e,r]=t,n=r(e.result,e.resultSourceMap,a);return u({...e,result:n})})):f.pipe(tZ(u))}function rE(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={uri:rN(t,"doc",(()=>{if(!n.releaseId)return r;let t=ex(r);if(!t){if(ey(r))throw Error("The document ID (`".concat(r,"`) is a draft, but `options.releaseId` is set as `").concat(n.releaseId,"`"));return ew(r,n.releaseId)}if(t!==n.releaseId)throw Error("The document ID (`".concat(r,"`) is already a version of `").concat(t,"` release, but this does not match the provided `options.releaseId` (`").concat(n.releaseId,"`)"));return r})()),json:!0,tag:n.tag,signal:n.signal,query:void 0!==n.includeAllVersions?{includeAllVersions:n.includeAllVersions}:void 0};return rB(t,e,i).pipe(ep(rb),tZ(t=>{let e=t.body.documents;return e?n.includeAllVersions?e:e[0]:n.includeAllVersions?[]:void 0}))}function rT(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i={uri:rN(t,"doc",r.join(",")),json:!0,tag:n.tag,signal:n.signal};return rB(t,e,i).pipe(ep(rb),tZ(t=>{let e,n,i=(e=t.body.documents||[],n=t=>t._id,e.reduce((t,e)=>(t[n(e)]=e,t),Object.create(null)));return r.map(t=>i[t]||null)}))}function rC(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return r_(t,e,"query",{query:"*[sanity::partOfRelease($releaseId)]",params:{releaseId:r}},n)}function rS(t,e,r,n){return eW("createIfNotExists",r),rV(t,e,r,"createIfNotExists",n)}function rA(t,e,r,n){return eW("createOrReplace",r),rV(t,e,r,"createOrReplace",n)}function rP(t,e,r,n,i){return eW("createVersion",r),ez("createVersion",r),e2(),rD(t,e,{actionType:"sanity.action.document.version.create",publishedId:n,document:r},i)}function rM(t,e,r,n,i,o,s){if(!n)throw Error("`createVersion()` requires `baseId` when no `document` is provided");if(!r)throw Error("`createVersion()` requires `publishedId` when `baseId` is provided");return eN("createVersion",n),eN("createVersion",r),rD(t,e,{actionType:"sanity.action.document.version.create",publishedId:r,baseId:n,versionId:i?ew(r,i):eb(r),ifBaseRevisionId:o},s)}function rj(t,e,r,n){return r_(t,e,"mutate",{mutations:[{delete:ro(r)}]},n)}function rI(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4?arguments[4]:void 0;return rD(t,e,{actionType:"sanity.action.document.version.discard",versionId:r,purge:n},i)}function rO(t,e,r,n){return eW("replaceVersion",r),ez("replaceVersion",r),rD(t,e,{actionType:"sanity.action.document.version.replace",document:r},n)}function rk(t,e,r,n,i){return rD(t,e,{actionType:"sanity.action.document.version.unpublish",versionId:r,publishedId:n},i)}function rR(t,e,r,n){let i;return r_(t,e,"mutate",{mutations:Array.isArray(i=r instanceof rc||r instanceof rl?{patch:r.serialize()}:r instanceof rp||r instanceof rv?r.serialize():r)?i:[i],transactionId:n&&n.transactionId||void 0},n)}function rD(t,e,r,n){let i=Array.isArray(r)?r:[r],o=n&&n.transactionId||void 0;return r_(t,e,"actions",{actions:i,transactionId:o,skipCrossDatasetReferenceValidation:n&&n.skipCrossDatasetReferenceValidation||void 0,dryRun:n&&n.dryRun||void 0},n)}function r_(t,e,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o="mutate"===r,s="actions"===r,a=o||s?"":ry(n),l=!o&&!s&&a.length<11264,u=l?a:"",c=i.returnFirst,{timeout:h,token:d,tag:f,headers:p,returnQuery:m,lastLiveEventId:v,cac
1heMode:y}=i,g={method:l?"GET":"POST",uri:rN(t,r,u),json:!0,body:l?void 0:n,query:o&&rg(i),timeout:h,headers:p,token:d,tag:f,returnQuery:m,perspective:i.perspective,resultSourceMap:i.resultSourceMap,lastLiveEventId:Array.isArray(v)?v[0]:v,cacheMode:y,canUseCdn:"query"===r,signal:i.signal,fetch:i.fetch,useAbortSignal:i.useAbortSignal,useCdn:i.useCdn};return rB(t,e,g).pipe(ep(rb),tZ(rw),tZ(t=>{if(!o)return t;let e=t.results||[];if(i.returnDocuments)return c?e[0]&&e[0].document:e.map(t=>t.document);let r=c?e[0]&&e[0].id:e.map(t=>t.id);return{transactionId:t.transactionId,results:e,[c?"documentId":"documentIds"]:r}}))}function rV(t,e,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return r_(t,e,"mutate",{mutations:[{[n]:r}]},Object.assign({returnFirst:!0,returnDocuments:!0},i))}let rF=t=>void 0!==t.config().dataset&&void 0!==t.config().projectId||void 0!==t.config()["~experimental_resource"],rL=(t,e)=>rF(t)&&e.startsWith(rN(t,"query"));function rB(t,e,r){var n,i,o;let s=r.url||r.uri,a=t.config(),l=typeof r.canUseCdn>"u"?["GET","HEAD"].indexOf(r.method||"GET")>=0&&(s.startsWith("/data/")||rL(t,s)||rF(t)&&s.startsWith(rN(t,"mutate"))||rF(t)&&s.startsWith(rN(t,"doc",""))||rF(t)&&s.startsWith(rN(t,"listen"))||rF(t)&&s.startsWith(rN(t,"history",""))):r.canUseCdn,u=(null!=(n=r.useCdn)?n:a.useCdn)&&l,c=r.tag&&a.requestTagPrefix?[a.requestTagPrefix,r.tag].join("."):r.tag||a.requestTagPrefix;if(c&&null!==r.tag&&(r.query={tag:eH(c),...r.query}),["GET","HEAD","POST"].indexOf(r.method||"GET")>=0&&rL(t,s)){let t=null!=(i=r.resultSourceMap)?i:a.resultSourceMap;void 0!==t&&!1!==t&&(r.query={resultSourceMap:t,...r.query});let e=r.perspective||a.perspective;"u">typeof e&&("previewDrafts"===e&&eJ(),e6(e),r.query={perspective:Array.isArray(e)?e.join(","):e,...r.query},(Array.isArray(e)&&e.length>0||"previewDrafts"===e||"drafts"===e)&&u&&(u=!1,eZ())),r.lastLiveEventId&&(r.query={...r.query,lastLiveEventId:r.lastLiveEventId}),!1===r.returnQuery&&(r.query={returnQuery:"false",...r.query}),u&&"noStale"==r.cacheMode&&(r.query={cacheMode:"noStale",...r.query})}let h=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};t.headers&&Object.assign(r,t.headers);let n=e.token||t.token;n&&(r.Authorization="Bearer ".concat(n)),e.useGlobalApi||t.useProjectHostname||!t.projectId||(r["X-Sanity-Project-ID"]=t.projectId);let i=!!(typeof e.withCredentials>"u"?t.withCredentials:e.withCredentials),o=typeof e.timeout>"u"?t.timeout:e.timeout;return Object.assign({},e,{headers:Object.assign({},r,e.headers||{}),timeout:typeof o>"u"?3e5:o,proxy:e.proxy||t.proxy,json:!0,withCredentials:i,fetch:"object"==typeof e.fetch&&"object"==typeof t.fetch?{...t.fetch,...e.fetch}:e.fetch||t.fetch})}(a,Object.assign({},r,{url:rW(t,s,u)})),d=new tP(t=>e(h,a.requester).subscribe(t));return r.signal?d.pipe((o=r.signal,t=>new tP(e=>{let r=()=>e.error(function(t){var e,r;if(rz)return new DOMException(null!=(e=null==t?void 0:t.reason)?e:"The operation was aborted.","AbortError");let n=Error(null!=(r=null==t?void 0:t.reason)?r:"The operation was aborted.");return n.name="AbortError",n}(o));if(o&&o.aborted)return void r();let n=t.subscribe(e);return o.addEventListener("abort",r),()=>{o.removeEventListener("abort",r),n.unsubscribe()}}))):d}function rU(t,e,r){return rB(t,e,r).pipe(ep(t=>"response"===t.type),tZ(t=>t.body))}function rN(t,e,r){let n=t.config();if(n["~experimental_resource"]){eY(n);let t=rq(n),i=void 0!==r?"".concat(e,"/").concat(r):e;return"".concat(t,"/").concat(i).replace(/\/($|\?)/,"$1")}let i=eq(n),o="/".concat(e,"/").concat(i);return"/data".concat(void 0!==r?"".concat(o,"/").concat(r):o).replace(/\/($|\?)/,"$1")}function rW(t,e){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{url:n,cdnUrl:i}=t.config();return"".concat(r?i:n,"/").concat(e.replace(/^\//,""))}let rz=!!globalThis.DOMException,rq=t=>{if(!t["~experimental_resource"])throw Error("`resource` must be provided to perform resource queries");let{type:e,id:r}=t["~experimental_resource"];switch(e){case"dataset":{let t=r.split(".");if(2!==t.length)throw Error('Dataset ID must be in the format "project.dataset"');return"/projects/".concat(t[0],"/datasets/").concat(t[1])}case"canvas":return"/canvases/".concat(r);case"media-library":return"/media-libraries/".concat(r);case"dashboard":return"/dashboards/".concat(r);default:throw Error("Unsupported resource type: ".concat(e.toString()))}};function rH(t,e,r){let n=eq(t.config());return rU(t,e,{method:"POST",uri:"/agent/action/generate/".concat(n),body:r})}function rY(t,e,r){let n=eq(t.config());return rU(t,e,{method:"POST",uri:"/agent/action/transform/".concat(n),body:r})}function rX(t,e,r){let n=eq(t.config());return rU(t,e,{method:"POST",uri:"/agent/action/translate/".concat(n),body:r})}var rG=new WeakMap,rK=new WeakMap;class r${generate(t){return rH(n(this,rG),n(this,rK),t)}transform(t){return rY(n(this,rG),n(this,rK),t)}translate(t){return rX(n(this,rG),n(this,rK),t)}constructor(t,e){i(this,rG,{writable:!0,value:void 0}),i(this,rK,{writable:!0,value:void 0}),o(this,rG,t),o(this,rK,e)}}var rZ=new WeakMap,rJ=new WeakMap;class rQ{generate(t){return t0(rH(n(this,rZ),n(this,rJ),t))}transform(t){return t0(rY(n(this,rZ),n(this,rJ),t))}translate(t){return t0(rX(n(this,rZ),n(this,rJ),t))}prompt(t){return t0(function(t,e,r){let n=eq(t.config());return rU(t,e,{method:"POST",uri:"/agent/action/prompt/".concat(n),body:r})}(n(this,rZ),n(this,rJ),t))}patch(t){return t0(function(t,e,r){let n=eq(t.config());return rU(t,e,{method:"POST",uri:"/agent/action/patch/".concat(n),body:r})}(n(this,rZ),n(this,rJ),t))}constructor(t,e){i(this,rZ,{writable:!0,value:void 0}),i(this,rJ,{writable:!0,value:void 0}),o(this,rZ,t),o(this,rJ,e)}}var r0=new WeakMap,r1=new WeakMap;class r2{upload(t,e,r){return r8(n(this,r0),n(this,r1),t,e,r)}constructor(t,e){i(this,r0,{writable:!0,value:void 0}),i(this,r1,{writable:!0,value:void 0}),o(this,r0,t),o(this,r1,e)}}var r3=new WeakMap,r5=new WeakMap;class r6{upload(t,e,r){return t0(r8(n(this,r3),n(this,r5),t,e,r).pipe(ep(t=>"response"===t.type),tZ(t=>t.body.document)))}constructor(t,e){i(this,r3,{writable:!0,value:void 0}),i(this,r5,{writable:!0,value:void 0}),o(this,r3,t),o(this,r5,e)}}function r8(t,e,r,n){var i,o;let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(-1===eF.indexOf(r))throw Error("Invalid asset type: ".concat(r,". Must be one of ").concat(eF.join(", ")));let a=s.extract||void 0;a&&!a.length&&(a=["none"]);let l=t.config(),u=(i=s,o=n,!(typeof File>"u")&&o instanceof File?Object.assign({filename:!1===i.preserveFilename?void 0:o.name,contentType:o.type},i):i),{tag:c,label:h,title:d,description:f,creditLine:p,filename:m,source:v}=u,y={label:h,title:d,description:f,filename:m,meta:a,creditLine:p};return v&&(y.sourceId=v.id,y.sourceName=v.name,y.sourceUrl=v.url),rB(t,e,{tag:c,method:"POST",timeout:u.timeout||0,uri:function(t,e){let r="image"===e?"images":"files";if(t["~experimental_resource"]){let{type:e,id:n}=t["~experimental_resource"];switch(e){case"dataset":throw Error("Assets are not supported for dataset resources, yet. Configure the client with `{projectId: <projectId>, dataset: <datasetId>}` instead.");case"canvas":return"/canvases/".concat(n,"/assets/").concat(r);case"media-library":return"/media-libraries/".concat(n,"/upload");case"dashboard":return"/dashboards/".concat(n,"/assets/").concat(r);default:throw Error("Unsupported resource type: ".concat(e.toString()))}}let n=eq(t);return"assets/".concat(r,"/").concat(n)}(l,r),headers:u.contentType?{"Content-Type":u.contentType}:{},query:y,body:n})}let r4=tB(()=>t.A(27649)).pipe(tZ(t=>{let{default:e}=t;return e}),function(t,e,r){var n,i,o,s,a=!1;return s=null!=t?t:1/0,t8({connector:function(){return new t6(s,e,r)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:a})}(1));function r9(){return function(t){return t.pipe(t9((t,e)=>{var r;return t instanceof e4?et(t$({type:"reconnect"}),(void 0===r&&(r=es),new tP(function(t){var e=1e3;e<0&&(e=0);var n=0;return r.schedule(function(){t.closed||(t.next(n++),t.complete())},e)})).pipe(tJ(()=>e))):ee(()=>t)}))}}let r7=["includePreviousRevision","includeResult","includeMutations","includeAllVersions","visibility","effectFormat","tag"],nt={includeResult:!0};function ne(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{url:n,token:i,withCredentials:o,requestTagPrefix:s,headers:a}=this.config(),l=r.tag&&s?[s,r.tag].join("."):r.tag,u={...Object.keys(nt).concat(Object.keys(r)).reduce((t,e)=>(t[e]=typeof r[e]>"u"?nt[e]:r[e],t),{}),tag:l},c=ry({query:t,params:e,options:{tag:l,...r7.reduce((t,e)=>(typeof u[e]>"u"||(t[e]=u[e]),t),{})}}),h="".concat(n).concat(rN(this,"listen",c));if(h.length>14800)return ee(()=>Error("Query too large for listener"));let d=u.events?u.events:["mutation"],f={};return o&&(f.withCredentials=!0),(i||a)&&(f.headers={},i&&(f.headers.Authorization="Bearer ".concat(i)),a&&Object.assign(f.headers,a)),rn(()=>(typeof EventSource>"u"||f.headers?r4:t$(EventSource)).pipe(tZ(t=>new t(h,f))),d).pipe(r9(),ep(t=>d.includes(t.type)),tZ(t=>({type:t.type,..."data"in t?t.data:{}})))}let nr="2021-03-25";var nn=new WeakMap;
1class ni{events(){var t,e,r,i;let{includeDrafts:o=!1,tag:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eX("live",n(this,nn).config());let{projectId:a,apiVersion:l,token:u,withCredentials:c,requestTagPrefix:h,headers:d}=n(this,nn).config(),f=l.replace(/^v/,"");if("X"!==f&&f<nr)throw Error("The live events API requires API version ".concat(nr," or later. The current API version is ").concat(f,". Please update your API version to use this feature."));if(o&&!u&&!c)throw Error("The live events API requires a token or withCredentials when 'includeDrafts: true'. Please update your client configuration. The token should have the lowest possible access role.");let p=rN(n(this,nn),"live/events"),m=new URL(n(this,nn).getUrl(p,!1)),v=s&&h?[h,s].join("."):s;v&&m.searchParams.set("tag",v),o&&m.searchParams.set("includeDrafts","true");let y={};o&&c&&(y.withCredentials=!0),(o&&u||d)&&(y.headers={},o&&u&&(y.headers.Authorization="Bearer ".concat(u)),d&&Object.assign(y.headers,d));let g="".concat(m.href,"::").concat(JSON.stringify(y)),b=no.get(g);if(b)return b;let w=rn(()=>(typeof EventSource>"u"||y.headers?r4:t$(EventSource)).pipe(tZ(t=>new t(m.href,y))),["message","restart","welcome","reconnect","goaway"]).pipe(r9(),tZ(t=>{if("message"===t.type){let{data:e,...r}=t;return{...r,tags:e.tags}}return t})),x=et((e=m,r={method:"OPTIONS",mode:"cors",credentials:y.withCredentials?"include":"omit",headers:y.headers},new tP(t=>{let n=new AbortController,i=n.signal;return fetch(e,{...r,signal:n.signal}).then(e=>{t.next(e),t.complete()},e=>{i.aborted||t.error(e)}),()=>n.abort()})).pipe(tJ(()=>el),t9(()=>{throw new ek({projectId:a})})),w).pipe(ea(()=>no.delete(g)),(i="function"==typeof(t={predicate:t=>"welcome"===t.type})?{predicate:t,...void 0}:t,t=>{var e,r,n,o;let s,a=!1,{predicate:l,...u}=i;return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=tN(e),i=(t=1/0,"number"==typeof tU(e)?e.pop():t);return e.length?1===e.length?tF(e[0]):t7(i)(tK(e,n)):el}(t.pipe((o=tt(e=t=>{i.predicate(t)&&(a=!0,s=t)})?{next:e,error:r,complete:n}:e)?tz(function(t,e){null==(r=o.subscribe)||r.call(o);var r,n=!0;t.subscribe(tq(e,function(t){var r;null==(r=o.next)||r.call(o,t),e.next(t)},function(){var t;n=!1,null==(t=o.complete)||t.call(o),e.complete()},function(t){var r;n=!1,null==(r=o.error)||r.call(o,t),e.error(t)},function(){var t,e;n&&(null==(t=o.unsubscribe)||t.call(o)),null==(e=o.finalize)||e.call(o)}))}):tS,ea(()=>{a=!1,s=void 0}),t8(u)),new tP(t=>{a&&t.next(s),t.complete()}))}));return no.set(g,x),x}constructor(t){i(this,nn,{writable:!0,value:void 0}),o(this,nn,t)}}let no=new Map;var ns=new WeakMap,na=new WeakMap;class nl{create(t,e){return nd(n(this,ns),n(this,na),"PUT",t,e)}edit(t,e){return nd(n(this,ns),n(this,na),"PATCH",t,e)}delete(t){return nd(n(this,ns),n(this,na),"DELETE",t)}list(){eX("dataset",n(this,ns).config());let t=n(this,ns).config(),e=t.projectId,r="/datasets";return!1===t.useProjectHostname&&(r="/projects/".concat(e,"/datasets")),rU(n(this,ns),n(this,na),{uri:r,tag:null})}constructor(t,e){i(this,ns,{writable:!0,value:void 0}),i(this,na,{writable:!0,value:void 0}),o(this,ns,t),o(this,na,e)}}var nu=new WeakMap,nc=new WeakMap;class nh{create(t,e){return eX("dataset",n(this,nu).config()),t0(nd(n(this,nu),n(this,nc),"PUT",t,e))}edit(t,e){return eX("dataset",n(this,nu).config()),t0(nd(n(this,nu),n(this,nc),"PATCH",t,e))}delete(t){return eX("dataset",n(this,nu).config()),t0(nd(n(this,nu),n(this,nc),"DELETE",t))}list(){eX("dataset",n(this,nu).config());let t=n(this,nu).config(),e=t.projectId,r="/datasets";return!1===t.useProjectHostname&&(r="/projects/".concat(e,"/datasets")),t0(rU(n(this,nu),n(this,nc),{uri:r,tag:null}))}constructor(t,e){i(this,nu,{writable:!0,value:void 0}),i(this,nc,{writable:!0,value:void 0}),o(this,nu,t),o(this,nc,e)}}function nd(t,e,r,n,i){return eX("dataset",t.config()),eB(n),rU(t,e,{method:r,uri:"/datasets/".concat(n),body:i,tag:null})}var nf=new WeakMap,np=new WeakMap;class nm{getPlaybackInfo(t){var e,r,i;let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=null==(e=n(this,nf).config()["~experimental_resource"])?void 0:e.id,{instanceId:a,library
1Id:l}=function(t){let e="object"==typeof t&&"_ref"in t?t._ref:t,r=nb.exec(e);if(r){let[,t,e]=r;return{libraryId:t,instanceId:e}}if("string"==typeof t&&t.startsWith("video-"))return{instanceId:t};throw Error('Invalid video asset instance identifier "'.concat(e,'": must be a valid video instance id or a Global Dataset Reference (GDR) to the video asset in the Media Library'))}(t),u=l||s;if(!u)throw Error("Could not determine Media Library ID - you need to provide a valid Media Library ID in the client config or a Media Library GDR");let c=(r=a,i=u,"/media-libraries/".concat(i,"/video/").concat(r,"/playback-info")),h=function(t){let e={};if(t.transformations){let{thumbnail:r,animated:n,storyboard:i}=t.transformations;r&&(r.width&&(e.thumbnailWidth=r.width),r.height&&(e.thumbnailHeight=r.height),void 0!==r.time&&(e.thumbnailTime=r.time),r.fit&&(e.thumbnailFit=r.fit),r.format&&(e.thumbnailFormat=r.format)),n&&(n.width&&(e.animatedWidth=n.width),n.height&&(e.animatedHeight=n.height),void 0!==n.start&&(e.animatedStart=n.start),void 0!==n.end&&(e.animatedEnd=n.end),n.fps&&(e.animatedFps=n.fps),n.format&&(e.animatedFormat=n.format)),i&&i.format&&(e.storyboardFormat=i.format)}return t.expiration&&(e.expiration=t.expiration),e}(o);return rU(n(this,nf),n(this,np),{method:"GET",uri:c,query:h})}constructor(t,e){i(this,nf,{writable:!0,value:void 0}),i(this,np,{writable:!0,value:void 0}),o(this,nf,t),o(this,np,e)}}var nv=new WeakMap,ny=new WeakMap;class ng{getPlaybackInfo(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t0(new nm(n(this,nv).observable,n(this,ny)).getPlaybackInfo(t,e))}constructor(t,e){i(this,nv,{writable:!0,value:void 0}),i(this,ny,{writable:!0,value:void 0}),o(this,nv,t),o(this,ny,e)}}let nb=/^media-library:(ml[^:]+):([^:]+)$/;var nw=new WeakMap,nx=new WeakMap;class nE{list(t){let e={};return(null==t?void 0:t.includeMembers)===!1&&(e.includeMembers="false"),(null==t?void 0:t.organizationId)&&(e.organizationId=t.organizationId),rU(n(this,nw),n(this,nx),{uri:"/projects",query:e})}getById(t){return rU(n(this,nw),n(this,nx),{uri:"/projects/".concat(t)})}constructor(t,e){i(this,nw,{writable:!0,value:void 0}),i(this,nx,{writable:!0,value:void 0}),o(this,nw,t),o(this,nx,e)}}var nT=new WeakMap,nC=new WeakMap;class nS{list(t){let e={};return(null==t?void 0:t.includeMembers)===!1&&(e.includeMembers="false"),(null==t?void 0:t.organizationId)&&(e.organizationId=t.organizationId),t0(rU(n(this,nT),n(this,nC),{uri:"/projects",query:e}))}getById(t){return t0(rU(n(this,nT),n(this,nC),{uri:"/projects/".concat(t)}))}constructor(t,e){i(this,nT,{writable:!0,value:void 0}),i(this,nC,{writable:!0,value:void 0}),o(this,nT,t),o(this,nC,e)}}let nA=function(t){let e,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:21;return r=-~(1.6*(e=(2<<Math.log(t.length-1)/Math.LN2)-1)*n/t.length),function(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n,o="";for(;;){let n=eT(r),s=0|r;for(;s--;)if((o+=t[n[s]&e]||"").length===i)return o}}}("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",8),nP=(t,e)=>e?ew(t,e):eb(t);function nM(t,e){let{releaseId:r,publishedId:n,document:i}=e;if(n&&i._id){let t=nP(n,r);return((t,e)=>{if(e._id&&e._id!==t)throw Error("The provided document ID (`".concat(e._id,"`) does not match the generated version ID (`").concat(t,"`)"))})(t,i),t}if(i._id){let e=ey(i._id),n=eg(i._id);if(!e&&!n)throw Error("`".concat(t,"()` requires a document with an `_id` that is a version or draft ID"));if(r){if(e)throw Error("`".concat(t,"()` was called with a document ID (`").concat(i._id,"`) that is a draft ID, but a release ID (`").concat(r,"`) was also provided."));let n=ex(i._id);if(n!==r)throw Error("`".concat(t,"()` was called with a document ID (`").concat(i._id,"`) that is a version ID, but the release ID (`").concat(r,"`) does not match the document's version ID (`").concat(n,"`)."))}return i._id}if(n)return nP(n,r);throw Error("`".concat(t,"()` requires either a publishedId or a document with an `_id`"))}let nj=(t,e)=>{let[r,n,i]=((t,e)=>{if("object"==typeof t&&null!==t&&("releaseId"in t||"metadata"in t)){let{releaseId:r=nA(),metadata:n={}}=t;return[r,n,e]}return[nA(),{},t]})(t,e);return{action:{actionType:"sanity.action.release.create",releaseId:r,metadata:{...n,releaseType:n.releaseType||"undecided"}},options:i}};var nI=new WeakMap,nO=new WeakMap;
1class nk{get(t,e){let{releaseId:r}=t;return rE(n(this,nI),n(this,nO),"_.releases.".concat(r),e)}create(t,e){let{action:r,options:i}=nj(t,e),{releaseId:o,metadata:s}=r;return rD(n(this,nI),n(this,nO),r,i).pipe(tZ(t=>({...t,releaseId:o,metadata:s})))}edit(t,e){let{releaseId:r,patch:i}=t;return rD(n(this,nI),n(this,nO),{actionType:"sanity.action.release.edit",releaseId:r,patch:i},e)}publish(t,e){let{releaseId:r}=t;return rD(n(this,nI),n(this,nO),{actionType:"sanity.action.release.publish",releaseId:r},e)}archive(t,e){let{releaseId:r}=t;return rD(n(this,nI),n(this,nO),{actionType:"sanity.action.release.archive",releaseId:r},e)}unarchive(t,e){let{releaseId:r}=t;return rD(n(this,nI),n(this,nO),{actionType:"sanity.action.release.unarchive",releaseId:r},e)}schedule(t,e){let{releaseId:r,publishAt:i}=t;return rD(n(this,nI),n(this,nO),{actionType:"sanity.action.release.schedule",releaseId:r,publishAt:i},e)}unschedule(t,e){let{releaseId:r}=t;return rD(n(this,nI),n(this,nO),{actionType:"sanity.action.release.unschedule",releaseId:r},e)}delete(t,e){let{releaseId:r}=t;return rD(n(this,nI),n(this,nO),{actionType:"sanity.action.release.delete",releaseId:r},e)}fetchDocuments(t,e){let{releaseId:r}=t;return rC(n(this,nI),n(this,nO),r,e)}constructor(t,e){i(this,nI,{writable:!0,value:void 0}),i(this,nO,{writable:!0,value:void 0}),o(this,nI,t),o(this,nO,e)}}var nR=new WeakMap,nD=new WeakMap;class n_{get(t,e){let{releaseId:r}=t;return t0(rE(n(this,nR),n(this,nD),"_.releases.".concat(r),e))}async create(t,e){let{action:r,options:i}=nj(t,e),{releaseId:o,metadata:s}=r;return{...await t0(rD(n(this,nR),n(this,nD),r,i)),releaseId:o,metadata:s}}edit(t,e){let{releaseId:r,patch:i}=t;return t0(rD(n(this,nR),n(this,nD),{actionType:"sanity.action.release.edit",releaseId:r,patch:i},e))}publish(t,e){let{releaseId:r}=t;return t0(rD(n(this,nR),n(this,nD),{actionType:"sanity.action.release.publish",releaseId:r},e))}archive(t,e){let{releaseId:r}=t;return t0(rD(n(this,nR),n(this,nD),{actionType:"sanity.action.release.archive",releaseId:r},e))}unarchive(t,e){let{releaseId:r}=t;return t0(rD(n(this,nR),n(this,nD),{actionType:"sanity.action.release.unarchive",releaseId:r},e))}schedule(t,e){let{releaseId:r,publishAt:i}=t;return t0(rD(n(this,nR),n(this,nD),{actionType:"sanity.action.release.schedule",releaseId:r,publishAt:i},e))}unschedule(t,e){let{releaseId:r}=t;return t0(rD(n(this,nR),n(this,nD),{actionType:"sanity.action.release.unschedule",releaseId:r},e))}delete(t,e){let{releaseId:r}=t;return t0(rD(n(this,nR),n(this,nD),{actionType:"sanity.action.release.delete",releaseId:r},e))}fetchDocuments(t,e){let{releaseId:r}=t;return t0(rC(n(this,nR),n(this,nD),r,e))}constructor(t,e){i(this,nR,{writable:!0,value:void 0}),i(this,nD,{writable:!0,value:void 0}),o(this,nR,t),o(this,nD,e)}}var nV=new WeakMap,nF=new WeakMap;class nL{getById(t){return rU(n(this,nV),n(this,nF),{uri:"/users/".concat(t)})}constructor(t,e){i(this,nV,{writable:!0,value:void 0}),i(this,nF,{writable:!0,value:void 0}),o(this,nV,t),o(this,nF,e)}}var nB=new WeakMap,nU=new WeakMap;class nN{getById(t){return t0(rU(n(this,nB),n(this,nU),{uri:"/users/".concat(t)}))}constructor(t,e){i(this,nB,{writable:!0,value:void 0}),i(this,nU,{writable:!0,value:void 0}),o(this,nB,t),o(this,nU,e)}}var nW=new WeakMap,nz=new WeakMap;class nq{clone(){return new nq(n(this,nz),this.config())}config(t){if(void 0===t)return{...n(this,nW)};if(n(this,nW)&&!1===n(this,nW).allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return o(this,nW,e8(t,n(this,nW)||{})),this}withConfig(t){let e=this.config();return new nq(n(this,nz),{...e,...t,stega:{...e.stega||{},..."boolean"==typeof(null==t?void 0:t.stega)?{enabled:t.stega}:(null==t?void 0:t.stega)||{}}})}fetch(t,e,r){return rx(this,n(this,nz),n(this,nW).stega,t,e,r)}getDocument(t,e){if((null==e?void 0:e.includeAllVersions)===!0)return rE(this,n(this,nz),t,{...e,includeAllVersions:!0});let r={signal:null==e?void 0:e.signal,tag:null==e?void 0:e.tag,releaseId:null==e?void 0:e.releaseId,...e&&"includeAllVersions"in e?{includeAllVersions:!1}:{}};return rE(this,n(this,nz),t,r)}getDocuments(t,e){return rT(this,n(this,nz),t,e)}create(t,e){return rV(this,n(this,nz),t,"create",e)}createIfNotExists(t,e){return rS(this,n(this,nz),t,e)}createOrReplace(t,e){return rA(this,n(this,nz),t,e)}createVersion(t,e){let{document:r,publishedId:i,releaseId:o,baseId:s,ifBaseRevisionId:a}=t;if(!r)return rM(this,n(this,nz),i,s,o,a,e);let l=nM("createVersion",{document:r,publishedId:i,releaseId:o}),u={...r,_id:l},c=i||eE(r._id);return rP(this,n(this,nz),u,c,e)}delete(t,e){return rj(this,n(this,nz),t,e)}discardVersion(t,e,r){let{releaseId:i,publishedId:o}=t,s=nP(o,i);return rI(this,n(this,nz),s,e,r)}replaceVersion(t,e){let{document:r,publishedId:i,releaseId:o}=t,s=nM("replaceVersion",{document:r,publishedId:i,releaseId:o}),a={...r,_id:s};return rO(this,n(this,nz),a,e)}unpublishVersion(t,e){let{releaseId:r,publishedId:i}=t,o=ew(i,r);return rk(this,n(this,nz),o,i,e)}mutate(t,e){return rR(this,n(this,nz),t,e)}patch(t,e){return new rl(t,e,this)}transaction(t){return new rv(t,this)}action(t,e){return rD(this,n(this,nz),t,e)}request(t){return rU(this,n(this,nz),t)}getUrl(t,e){return rW(this,t,e)}getDataUrl(t,e){return rN(this,t,e)}constructor(t,e=e3){s(this,"assets",void 0),s(this,"datasets",void 0),s(this,"live",void 0),s(this,"mediaLibrary",void 0),s(this,"projects",void 0),s(this,"users",void 0),s(this,"agent",void 0),s(this,"releases",void 0),i(this,nW,{writable:!0,value:void 0}),i(this,nz,{writable:!0,value:void 0}),s(this,"listen",ne),this.config(e),o(this,nz,t),this.assets=new r2(this,n(this,nz)),this.datasets=new nl(this,n(this,nz)),this.live=new ni(this),this.mediaLibrary={video:new nm(this,n(this,nz))},this.projects=new nE(this,n(this,nz)),this.users=new nL(this,n(this,nz)),this.agent={action:new r$(this,n(this,nz))},this.releases=new nk(this,n(this,nz))}}var nH=new WeakMap,nY=new WeakMap;
1class nX{clone(){return new nX(n(this,nY),this.config())}config(t){if(void 0===t)return{...n(this,nH)};if(n(this,nH)&&!1===n(this,nH).allowReconfigure)throw Error("Existing client instance cannot be reconfigured - use `withConfig(newConfig)` to return a new client");return this.observable&&this.observable.config(t),o(this,nH,e8(t,n(this,nH)||{})),this}withConfig(t){let e=this.config();return new nX(n(this,nY),{...e,...t,stega:{...e.stega||{},..."boolean"==typeof(null==t?void 0:t.stega)?{enabled:t.stega}:(null==t?void 0:t.stega)||{}}})}fetch(t,e,r){return t0(rx(this,n(this,nY),n(this,nH).stega,t,e,r))}getDocument(t,e){if((null==e?void 0:e.includeAllVersions)===!0)return t0(rE(this,n(this,nY),t,{...e,includeAllVersions:!0}));let r={signal:null==e?void 0:e.signal,tag:null==e?void 0:e.tag,releaseId:null==e?void 0:e.releaseId,...e&&"includeAllVersions"in e?{includeAllVersions:!1}:{}};return t0(rE(this,n(this,nY),t,r))}getDocuments(t,e){return t0(rT(this,n(this,nY),t,e))}create(t,e){return t0(rV(this,n(this,nY),t,"create",e))}createIfNotExists(t,e){return t0(rS(this,n(this,nY),t,e))}createOrReplace(t,e){return t0(rA(this,n(this,nY),t,e))}createVersion(t,e){let{document:r,publishedId:i,releaseId:o,baseId:s,ifBaseRevisionId:a}=t;if(!r)return eu(rM(this,n(this,nY),i,s,o,a,e));let l=nM("createVersion",{document:r,publishedId:i,releaseId:o}),u={...r,_id:l},c=i||eE(r._id);return eu(rP(this,n(this,nY),u,c,e))}delete(t,e){return t0(rj(this,n(this,nY),t,e))}discardVersion(t,e,r){let{releaseId:i,publishedId:o}=t,s=nP(o,i);return t0(rI(this,n(this,nY),s,e,r))}replaceVersion(t,e){let{document:r,publishedId:i,releaseId:o}=t,s=nM("replaceVersion",{document:r,publishedId:i,releaseId:o}),a={...r,_id:s};return eu(rO(this,n(this,nY),a,e))}unpublishVersion(t,e){let{releaseId:r,publishedId:i}=t,o=ew(i,r);return t0(rk(this,n(this,nY),o,i,e))}mutate(t,e){return t0(rR(this,n(this,nY),t,e))}patch(t,e){return new rc(t,e,this)}transaction(t){return new rp(t,this)}action(t,e){return t0(rD(this,n(this,nY),t,e))}request(t){return t0(rU(this,n(this,nY),t))}dataRequest(t,e,r){return t0(r_(this,n(this,nY),t,e,r))}getUrl(t,e){return rW(this,t,e)}getDataUrl(t,e){return rN(this,t,e)}constructor(t,e=e3){s(this,"assets",void 0),s(this,"datasets",void 0),s(this,"live",void 0),s(this,"mediaLibrary",void 0),s(this,"projects",void 0),s(this,"users",void 0),s(this,"agent",void 0),s(this,"releases",void 0),s(this,"observable",void 0),i(this,nH,{writable:!0,value:void 0}),i(this,nY,{writable:!0,value:void 0}),s(this,"listen",ne),this.config(e),o(this,nY,t),this.assets=new r6(this,n(this,nY)),this.datasets=new nh(this,n(this,nY)),this.live=new ni(this),this.mediaLibrary={video:new ng(this,n(this,nY))},this.projects=new nS(this,n(this,nY)),this.users=new nN(this,n(this,nY)),this.agent={action:new rQ(this,n(this,nY))},this.releases=new n_(this,n(this,nY)),this.observable=new nq(t,e)}}let nG=function(t,e){return{requester:eD(t),createClient:r=>{let n=eD(t,{ignoreWarnings:r.ignoreWarnings});return new e((t,e)=>(e||n)({maxRedirects:0,maxRetries:r.maxRetries,retryDelay:r.retryDelay,...t}),r)}}}([],nX),nK=(nG.requester,nG.createClient),n$=nK({projectId:"z996wmot",dataset:"production",apiVersion:"2025-09-05",useCdn:!e.default.env.SANITY_API_TOKEN,token:e.default.env.SANITY_API_TOKEN})},46932,t=>{"use strict";let e;t.s(["motion",()=>or],46932);var r=t.i(71645);let n=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],i=new Set(n),o=t=>180*t/Math.PI,s=t=>l(o(Math.atan2(t[1],t[0]))),a={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:s,rotateZ:s,skewX:t=>o(Math.atan(t[1])),skewY:t=>o(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},l=t=>((t%=360)<0&&(t+=360),t),u=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),c=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),h={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:u,scaleY:c,scale:t=>(u(t)+c(t))/2,rotateX:t=>l(o(Math.atan2(t[6],t[5]))),rotateY:t=>l(o(Math.atan2(-t[2],t[0]))),rotateZ:s,rotate:s,skewX:t=>o(Math.atan(t[4])),skewY:t=>o(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function d(t){return+!!t.includes("scale")}function f(t,e){let r,n;if(!t||"none"===t)return d(e);let i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(i)r=h,n=i;else{let e=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=a,n=e}if(!n)return d(e);let o=r[e],s=n[1].split(",").map(p);return"function"==typeof o?o(s):s[o]}function p(t){return parseFloat(t.trim())}let m=t=>e=>"string"==typeof e&&e.startsWith(t),v=m("--"),y=m("var(--"),g=t=>!!y(t)&&b.test(t.split("/*")[0].trim()),b=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function w(t){let{top:e,left:r,right:n,bottom:i}=t;return{x:{min:r,max:n},y:{min:e,max:i}}}let x=(t,e,r)=>t+(e-t)*r;function E(t){return void 0===t||1===t}function T(t){let{scale:e,scaleX:r,scaleY:n}=t;return!E(e)||!E(r)||!E(n)}function C(t){return T(t)||S(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function S(t){var e,r;return(e=t.x)&&"0%"!==e||(r=t.y)&&"0%"!==r}function A(t,e,r,n,i){return void 0!==i&&(t=n+i*(t-n)),n+r*(t-n)+e}function P(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;t.min=A(t.min,e,r,n,i),t.max=A(t.max,e,r,n,i)}function M(t,e){let{x:r,y:n}=e;P(t.x,r.translate,r.scale,r.originPoint),P(t.y,n.translate,n.scale,n.originPoint)}function j(t,e){t.min=t.min+e,t.max=t.max+e}function I(t,e,r,n){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5,o=x(t.min,t.max,i);P(t,e,r,o,n)}function O(t,e){I(t.x,e.x,e.scaleX,e.scale,e.originX),I(t.y,e.y,e.scaleY,e.scale,e.originY)}function k(t,e){return w(function(t,e){if(!e)return t;let r=e({x:t.left,y:t.top}),n=e({x:t.right,y:t.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(t.getBoundingClientRect(),e))}let R=new Set(["width","height","top","left","right","bottom",...n]),D=(t,e,r)=>r>e?e:r<t?t:r,_={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},V={..._,transform:t=>
1D(0,1,t)},F={..._,default:1},L=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>"".concat(e).concat(t)}),B=L("deg"),U=L("%"),N=L("px"),W=L("vh"),z=L("vw"),q={...U,parse:t=>U.parse(t)/100,transform:t=>U.transform(100*t)},H=t=>e=>e.test(t),Y=[_,N,U,B,z,W,{test:t=>"auto"===t,parse:t=>t}],X=t=>Y.find(H(t));t.i(47167);let G=()=>{},K=()=>{},$=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Z=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,J=t=>t===_||t===N,Q=new Set(["x","y","z"]),tt=n.filter(t=>!Q.has(t)),te={width:(t,e)=>{let{x:r}=t,{paddingLeft:n="0",paddingRight:i="0"}=e;return r.max-r.min-parseFloat(n)-parseFloat(i)},height:(t,e)=>{let{y:r}=t,{paddingTop:n="0",paddingBottom:i="0"}=e;return r.max-r.min-parseFloat(n)-parseFloat(i)},top:(t,e)=>{let{top:r}=e;return parseFloat(r)},left:(t,e)=>{let{left:r}=e;return parseFloat(r)},bottom:(t,e)=>{let{y:r}=t,{top:n}=e;return parseFloat(n)+(r.max-r.min)},right:(t,e)=>{let{x:r}=t,{left:n}=e;return parseFloat(n)+(r.max-r.min)},x:(t,e)=>{let{transform:r}=e;return f(r,"x")},y:(t,e)=>{let{transform:r}=e;return f(r,"y")}};te.translateX=te.x,te.translateY=te.y;let tr=t=>t,tn={},ti=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],to={value:null,addProjectionMetrics:null};function ts(t,e){let r=!1,n=!0,i={delta:0,timestamp:0,isProcessing:!1},o=()=>r=!0,s=ti.reduce((t,r)=>(t[r]=function(t,e){let r=new Set,n=new Set,i=!1,o=!1,s=new WeakSet,a={delta:0,timestamp:0,isProcessing:!1},l=0;function u(e){s.has(e)&&(c.schedule(e),t()),l++,e(a)}let c={schedule:function(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=o&&i?r:n;return e&&s.add(t),a.has(t)||a.add(t),t},cancel:t=>{n.delete(t),s.delete(t)},process:t=>{if(a=t,i){o=!0;return}i=!0,[r,n]=[n,r],r.forEach(u),e&&to.value&&to.value.frameloop[e].push(l),l=0,r.clear(),i=!1,o&&(o=!1,c.process(t))}};return c}(o,e?r:void 0),t),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:d,render:f,postRender:p}=s,m=()=>{let o=tn.useManualTiming?i.timestamp:performance.now();r=!1,tn.useManualTiming||(i.delta=n?1e3/60:Math.max(Math.min(o-i.timestamp,40),1)),i.timestamp=o,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),d.process(i),f.process(i),p.process(i),i.isProcessing=!1,r&&e&&(n=!1,t(m))};return{schedule:ti.reduce((e,o)=>{let a=s[o];return e[o]=function(e){let o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!r&&(r=!0,n=!0,i.isProcessing||t(m)),a.schedule(e,o,s)},e},{}),cancel:t=>{for(let e=0;e<ti.length;e++)s[ti[e]].cancel(t)},state:i,steps:s}}let{schedule:ta,cancel:tl,state:tu,steps:tc}=ts("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:tr,!0),th=new Set,td=!1,tf=!1,tp=!1;function tm(){if(tf){let t=Array.from(th).filter(t=>t.needsMeasurement),e=new Set(t.map(t=>t.element)),r=new Map;e.forEach(t=>{let e=function(t){let e=[];return tt.forEach(r=>{let n=t.getValue(r);void 0!==n&&(e.push([r,n.get()]),n.set(+!!r.startsWith("scale")))}),e}(t);e.length&&(r.set(t,e),t.render())}),t.forEach(t=>t.measureInitialState()),e.forEach(t=>{t.render();let e=r.get(t);e&&e.forEach(e=>{var r;let[n,i]=e;null==(r=t.getValue(n))||r.set(i)})}),t.forEach(t=>t.measureEndState()),t.forEach(t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)})}tf=!1,td=!1,th.forEach(t=>t.complete(tp)),th.clear()}function tv(){th.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(tf=!0)})}class ty{scheduleResolve(){this.state="scheduled",this.isAsync?(th.add(this),td||(td=!0,ta.read(tv),ta.resolveKeyframes(tm))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:t,name:e,element:r,motionValue:n}=this;if(null===t[0]){let i=null==n?void 0:n.get(),o=t[t.length-1];if(void 0!==i)t[0]=i;else if(r&&e){let n=r.readValue(e,o);null!=n&&(t[0]=n)}void 0===t[0]&&(t[0]=o),n&&void 0===i&&n.set(t[0])}for(let e=1;e<t.length;e++)null!=t[e]||(t[e]=t[e-1])}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),th.delete(this)}cancel(){"scheduled"===this.state&&(th.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}constructor(t,e,r,n,i,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=r,this.motionValue=n,this.element=i,this.isAsync=o}}let tg=t=>/^0[^.\s]+$/u.test(t),tb=t=>Math.round(1e5*t)/1e5,tw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,tx=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,tE=(t,e)=>r=>!!("string"==typeof r&&tx.test(r)&&r.startsWith(t)||e&&null!=r&&Object.prototype.hasOwnProperty.call(r,e)),tT=(t,e,r)=>n=>{if("string"!=typeof n)return n;let[i,o,s,a]=n.match(tw);return{[t]:parseFloat(i),[e]:parseFloat(o),[r]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},tC={..._,transform:t=>Math.round(D(0,255,t))},tS={test:tE("rgb","red"),parse:tT("red","green","blue"),transform:t=>{let{red:e,green:r,blue:n,alpha:i=1}=t;return"rgba("+tC.transform(e)+", "+tC.transform(r)+", "+tC.transform(n)+", "+tb(V.transform(i))+")"}},tA={test:tE("#"),parse:function(t){let e="",r="",n="",i="";return t.length>5?(e=t.substring(1,3),r=t.substring(3,5),n=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),r=t.substring(2,3),n=t.substring(3,4),i=t.substring(4,5),e+=e,r+=r,n+=n,i+=i),{red:parseInt(e,16),green:parseInt(r,16),blue:parseInt(n,16),alph
1a:i?parseInt(i,16)/255:1}},transform:tS.transform},tP={test:tE("hsl","hue"),parse:tT("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:r,lightness:n,alpha:i=1}=t;return"hsla("+Math.round(e)+", "+U.transform(tb(r))+", "+U.transform(tb(n))+", "+tb(V.transform(i))+")"}},tM={test:t=>tS.test(t)||tA.test(t)||tP.test(t),parse:t=>tS.test(t)?tS.parse(t):tP.test(t)?tP.parse(t):tA.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?tS.transform(t):tP.transform(t),getAnimatableNone:t=>{let e=tM.parse(t);return e.alpha=0,tM.transform(e)}},tj=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,tI="number",tO="color",tk=/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 tR(t){let e=t.toString(),r=[],n={color:[],number:[],var:[]},i=[],o=0,s=e.replace(tk,t=>(tM.test(t)?(n.color.push(o),i.push(tO),r.push(tM.parse(t))):t.startsWith("var(")?(n.var.push(o),i.push("var"),r.push(t)):(n.number.push(o),i.push(tI),r.push(parseFloat(t))),++o,"${}")).split("${}");return{values:r,split:s,indexes:n,types:i}}function tD(t){return tR(t).values}function t_(t){let{split:e,types:r}=tR(t),n=e.length;return t=>{let i="";for(let o=0;o<n;o++)if(i+=e[o],void 0!==t[o]){let e=r[o];e===tI?i+=tb(t[o]):e===tO?i+=tM.transform(t[o]):i+=t[o]}return i}}let tV=t=>"number"==typeof t?0:tM.test(t)?tM.getAnimatableNone(t):t,tF={test:function(t){var e,r;return isNaN(t)&&"string"==typeof t&&((null==(e=t.match(tw))?void 0:e.length)||0)+((null==(r=t.match(tj))?void 0:r.length)||0)>0},parse:tD,createTransformer:t_,getAnimatableNone:function(t){let e=tD(t);return t_(t)(e.map(tV))}},tL=new Set(["brightness","contrast","saturate","opacity"]);function tB(t){let[e,r]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[n]=r.match(tw)||[];if(!n)return t;let i=r.replace(n,""),o=+!!tL.has(e);return n!==r&&(o*=100),e+"("+o+i+")"}let tU=/\b([a-z-]*)\(.*?\)/gu,tN={...tF,getAnimatableNone:t=>{let e=t.match(tU);return e?e.map(tB).join(" "):t}},tW={..._,transform:Math.round},tz={borderWidth:N,borderTopWidth:N,borderRightWidth:N,borderBottomWidth:N,borderLeftWidth:N,borderRadius:N,radius:N,borderTopLeftRadius:N,borderTopRightRadius:N,borderBottomRightRadius:N,borderBottomLeftRadius:N,width:N,maxWidth:N,height:N,maxHeight:N,top:N,right:N,bottom:N,left:N,padding:N,paddingTop:N,paddingRight:N,paddingBottom:N,paddingLeft:N,margin:N,marginTop:N,marginRight:N,marginBottom:N,marginLeft:N,backgroundPositionX:N,backgroundPositionY:N,rotate:B,rotateX:B,rotateY:B,rotateZ:B,scale:F,scaleX:F,scaleY:F,scaleZ:F,skew:B,skewX:B,skewY:B,distance:N,translateX:N,translateY:N,translateZ:N,x:N,y:N,z:N,perspective:N,transformPerspective:N,opacity:V,originX:q,originY:q,originZ:N,zIndex:tW,fillOpacity:V,strokeOpacity:V,numOctaves:tW},tq={...tz,color:tM,backgroundColor:tM,outlineColor:tM,fill:tM,stroke:tM,borderColor:tM,borderTopColor:tM,borderRightColor:tM,borderBottomColor:tM,borderLeftColor:tM,filter:tN,WebkitFilter:tN},tH=t=>tq[t];function tY(t,e){let r=tH(t);return r!==tN&&(r=tF),r.getAnimatableNone?r.getAnimatableNone(e):void 0}let tX=new Set(["auto","none","0"]);class tG extends ty{readKeyframes(){let{unresolvedKeyframes:t,element:e,name:r}=this;if(!e||!e.current)return;super.readKeyframes();for(let r=0;r<t.length;r++){let n=t[r];if("string"==typeof n&&g(n=n.trim())){let i=function t(e,r){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;K(n<=4,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'),"max-css-var-depth");let[i,o]=function(t){let e=Z.exec(t);if(!e)return[,];let[,r,n,i]=e;return["--".concat(null!=r?r:n),i]}(e);if(!i)return;let s=window.getComputedStyle(r).getPropertyValue(i);if(s){let t=s.trim();return $(t)?parseFloat(t):t}return g(o)?t(o,r,n+1):o}(n,e.current);void 0!==i&&(t[r]=i),r===t.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!R.has(r)||2!==t.length)return;let[n,i]=t,o=X(n),s=X(i);if(o!==s)if(J(o)&&J(s))for(let e=0;e<t.length;e++){let r=t[e];"string"==typeof r&&(t[e]=parseFloat(r))}else te[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){let{unresolvedKeyframes:t,name:e}=this,r=[];for(let e=0;e<t.length;e++){var n;(null===t[e]||("number"==typeof(n=t[e])?0===n:null===n||"none"===n||"0"===n||tg(n)))&&r.push(e)}r.length&&function(t,e,r){let n,i=0;for(;i<t.length&&!n;){let e=t[i];"string"==typeof e&&!tX.has(e)&&tR(e).values.length&&(n=t[i]),i++}if(n&&r)for(let i of e)t[i]=tY(r,n)}(t,r,e)}measureInitialState(){let{element:t,unresolvedKeyframes:e,name:r}=this;if(!t||!t.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=te[r](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;let n=e[e.length-1];void 0!==n&&t.getValue(r,n).jump(n,!1)}measureEndState(){var t;let{element:e,name:r,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let i=e.getValue(r);i&&i.jump(this.measuredOrigin,!1);let o=n.length-1,s=n[o];n[o]=te[r](e.measureViewportBox(),window.getComputedStyle(e.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),(null==(t=this.removedTransforms)?void 0:t.length)&&this.removedTransforms.forEac
1h(t=>{let[r,n]=t;e.getValue(r).set(n)}),this.resolveNoneKeyframes()}constructor(t,e,r,n,i){super(t,e,r,n,i,!0)}}let tK=t=>!!(t&&t.getVelocity);function t$(){e=void 0}let tZ={now:()=>(void 0===e&&tZ.set(tu.isProcessing||tn.useManualTiming?tu.timestamp:performance.now()),e),set:t=>{e=t,queueMicrotask(t$)}};function tJ(t,e){-1===t.indexOf(e)&&t.push(e)}function tQ(t,e){let r=t.indexOf(e);r>-1&&t.splice(r,1)}class t0{add(t){return tJ(this.subscriptions,t),()=>tQ(this.subscriptions,t)}notify(t,e,r){let n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](t,e,r);else for(let i=0;i<n;i++){let n=this.subscriptions[i];n&&n(t,e,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}constructor(){this.subscriptions=[]}}let t1={current:void 0};class t2{setCurrent(t){this.current=t,this.updatedAt=tZ.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=!isNaN(parseFloat(this.current)))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new t0);let r=this.events[t].add(e);return"change"===t?()=>{r(),ta.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,r){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;null==(t=this.events.change)||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return t1.current&&t1.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){var t;let e=tZ.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;let r=Math.min(this.updatedAt-this.prevUpdatedAt,30);return t=parseFloat(this.current)-parseFloat(this.prevFrameValue),r?1e3/r*t:0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,e;null==(t=this.dependents)||t.clear(),null==(e=this.events.destroy)||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=t=>{let e=tZ.now();if(this.updatedAt!==e&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(t),this.current!==this.prev){var r;if(null==(r=this.events.change)||r.notify(this.current),this.dependents)for(let t of this.dependents)t.dirty()}},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}}function t3(t,e){return new t2(t,e)}let t5=[...Y,tM,tF],{schedule:t6}=ts(queueMicrotask,!1),t8={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"]},t4={};for(let t in t8)t4[t]={isEnabled:e=>t8[t].some(t=>!!e[t])};let t9=()=>({translate:0,scale:1,origin:0,originPoint:0}),t7=()=>({x:t9(),y:t9()}),et=()=>({min:0,max:0}),ee=()=>({x:et(),y:et()}),er="undefined"!=typeof window,en={current:null},ei={current:!1},eo=new WeakMap;function es(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}function ea(t){return"string"==typeof t||Array.isArray(t)}let el=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],eu=["initial",...el];function ec(t){return es(t.animate)||eu.some(e=>ea(t[e]))}function eh(t){return!!(ec(t)||t.variants)}function ed(t){let e=[{},{}];
1return null==t||t.values.forEach((t,r)=>{e[0][r]=t.get(),e[1][r]=t.getVelocity()}),e}function ef(t,e,r,n){if("function"==typeof e){let[i,o]=ed(n);e=e(void 0!==r?r:t.custom,i,o)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){let[i,o]=ed(n);e=e(void 0!==r?r:t.custom,i,o)}return e}let ep=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class em{scrapeMotionValuesFromProps(t,e,r){return{}}mount(t){var e;this.current=t,eo.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),ei.current||function(){if(ei.current=!0,er)if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>en.current=t.matches;t.addEventListener("change",e),e()}else en.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||en.current),null==(e=this.parent)||e.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;for(let e in this.projection&&this.projection.unmount(),tl(this.notifyUpdate),tl(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(t=this.parent)||t.removeChild(this),this.events)this.events[e].clear();for(let t in this.features){let e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),null!=this.enteringChildren||(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){let r;this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();let n=i.has(t);n&&this.onBindTransform&&this.onBindTransform();let o=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&ta.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{o(),r&&r(),e.owner&&e.stop()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in t4){let e=t4[t];if(!e)continue;let{isEnabled:r,Feature:n}=e;if(!this.features[t]&&n&&r(this.props)&&(this.features[t]=new n(this)),this.features[t]){let e=this.features[t];e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ee()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<ep.length;e++){let r=ep[e];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);let n=t["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(t,e,r){for(let n in e){let i=e[n],o=r[n];if(tK(i))t.addValue(n,i);else if(tK(o))t.addValue(n,t3(i,{owner:t}));else if(o!==i)if(t.hasValue(n)){let e=t.getValue(n);!0===e.liveStyle?e.jump(i):e.hasAnimated||e.set(i)}else{let e=t.getStaticValue(n);t.addValue(n,t3(void 0!==e?e:i,{owner:t}))}}for(let n in r)void 0===e[n]&&t.removeValue(n);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}
1addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){let r=this.values.get(t);e!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return void 0===r&&void 0!==e&&(r=t3(null===e?void 0:e,{owner:this}),this.addValue(t,r)),r}readValue(t,e){var r;let n=void 0===this.latestValues[t]&&this.current?null!=(r=this.getBaseTargetFromProps(this.props,t))?r:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];if(null!=n){if("string"==typeof n&&($(n)||tg(n)))n=parseFloat(n);else{let r;r=n,!t5.find(H(r))&&tF.test(e)&&(n=tY(t,e))}this.setBaseTarget(t,tK(n)?n.get():n)}return tK(n)?n.get():n}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){let e,{initial:r}=this.props;if("string"==typeof r||"object"==typeof r){var n;let i=ef(this.props,r,null==(n=this.presenceContext)?void 0:n.custom);i&&(e=i[t])}if(r&&void 0!==e)return e;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||tK(i)?void 0!==this.initialValues[t]&&void 0===e?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new t0),this.events[t].add(e)}notify(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];this.events[t]&&this.events[t].notify(...r)}scheduleRenderMicrotask(){t6.render(this.render)}constructor({parent:t,props:e,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:i,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ty,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 t=tZ.now();this.renderScheduledAt<t&&(this.renderScheduledAt=t,ta.render(this.render,!1,!0))};let{latestValues:a,renderState:l}=o;this.latestValues=a,this.baseTarget={...a},this.initialValues=e.initial?{...a}:{},this.renderState=l,this.parent=t,this.props=e,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=ec(e),this.isVariantNode=eh(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:u,...c}=this.scrapeMotionValuesFromProps(e,{},this);for(let t in c){let e=c[t];void 0!==a[t]&&tK(e)&&e.set(a[t])}}}class ev extends em{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,e){let{vars:r,style:n}=e;delete r[t],delete n[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;tK(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent="".concat(t))}))}constructor(){super(...arguments),this.KeyframeResolver=tG}}let ey=(t,e)=>e&&"number"==typeof t?e.transform(t):t,eg={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eb=n.length;function ew(t,e,r){let{style:o,vars:s,transformOrigin:a}=t,l=!1,u=!1;for(let t in e){let r=e[t];if(i.has(t)){l=!0;continue}if(v(t)){s[t]=r;continue}{let e=ey(r,tz[t]);t.startsWith("origin")?(u=!0,a[t]=e):o[t]=e}}if(!e.transform&&(l||r?o.transform=function(t,e,r){let i="",o=!0;for(let s=0;s<eb;s++){let a=n[s],l=t[a];if(void 0===l)continue;let u=!0;if(!(u="number"==typeof l?l===+!!a.startsWith("scale"):0===parseFloat(l))||r){let t=ey(l,tz[a]);if(!u){o=!1;let e=eg[a]||a;i+="".concat(e,"(").concat(t,") ")}r&&(e[a]=t)}}return i=i.trim(),r?i=r(e,o?"":i):o&&(i="none"),i}(e,t.transform,r):o.transform&&(o.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:r=0}=a;o.transformOrigin="".concat(t," ").concat(e," ").concat(r)}}function ex(t,e,r,n){let i,{style:o,vars:s}=e,a=t.style;for(i in o)a[i]=o[i];for(i in null==n||n.applyProjectionStyles(a,r),s)a.setProperty(i,s[i])}let eE={};function eT(t,e){let{layout:r,layoutId:n}=e;return i.has(t)||t.startsWith("origin")||(r||void 0!==n)&&(!!eE[t]||"opacity"===t)}function eC(t,e,r){let{style:n}=t,i={};for(let s in n){var o;(tK(n[s])||e.style&&tK(e.style[s])||eT(s,t)||(null==r||null==(o=r.getValue(s))?void 0:o.liveStyle)!==void 0)&&(i[s]=n[s])}return i}class eS extends ev{readValueFromInstance(t,e){var r;if(i.has(e))return(null==(r=this.projection)?void 0:r.isProjecting)?d(e):((t,e)=>{let{transform:r="none"}=getComputedStyle(t);return f(r,e)})(t,e);{let r=window.getComputedStyle(t),n=(v(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof n?n.trim():n}}measureInstanceViewportBox(t,e){let{transformPagePoint:r}=e;return k(t,r)}build(t,e,r){ew(t,e,r.transformTemplate)}scrapeMotionValuesFromProps(t,e,r){return eC(t,e,r)}constructor(){super(...arguments),this.type="html",this.renderInstance=ex}}let eA=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eP={offset:"stroke-dashoffset",array:"stroke-dasharray"},eM={offset:"strokeDashoffset",array:"strokeDasharray"};function ej(t,e,r,n,i){var o,s;let{attrX:a,attrY:l,attrScale:u,pathLength:c,pathSpacing:h=1,pathOffset:d=0,...f}=e;
1if(ew(t,f,n),r){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:p,style:m}=t;p.transform&&(m.transform=p.transform,delete p.transform),(m.transform||p.transformOrigin)&&(m.transformOrigin=null!=(o=p.transformOrigin)?o:"50% 50%",delete p.transformOrigin),m.transform&&(m.transformBox=null!=(s=null==i?void 0:i.transformBox)?s:"fill-box",delete p.transformBox),void 0!==a&&(p.x=a),void 0!==l&&(p.y=l),void 0!==u&&(p.scale=u),void 0!==c&&function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=!(arguments.length>4)||void 0===arguments[4]||arguments[4];t.pathLength=1;let o=i?eP:eM;t[o.offset]=N.transform(-n);let s=N.transform(e),a=N.transform(r);t[o.array]="".concat(s," ").concat(a)}(p,c,h,d,!1)}let eI=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"]),eO=t=>"string"==typeof t&&"svg"===t.toLowerCase();function ek(t,e,r){let i=eC(t,e,r);for(let r in t)(tK(t[r])||tK(e[r]))&&(i[-1!==n.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return i}class eR extends ev{getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(i.has(e)){let t=tH(e);return t&&t.default||0}return e=eI.has(e)?e:eA(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,r){return ek(t,e,r)}build(t,e,r){ej(t,e,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,e,r,n){for(let r in ex(t,e,void 0,n),e.attrs)t.setAttribute(eI.has(r)?r:eA(r),e.attrs[r])}mount(t){this.isSVGTag=eO(t.tagName),super.mount(t)}constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ee}}let eD=["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 e_(t){if("string"!=typeof t||t.includes("-"));else if(eD.indexOf(t)>-1||/[A-Z]/u.test(t))return!0;return!1}var eV=t.i(43476);let eF=(0,r.createContext)({}),eL=(0,r.createContext)({strict:!1}),eB=(0,r.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),eU=(0,r.createContext)({});function eN(t){return Array.isArray(t)?t.join(" "):t}let eW=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function ez(t,e,r){for(let n in e)tK(e[n])||eT(n,r)||(t[n]=e[n])}let eq=()=>({...eW(),attrs:{}}),eH=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 eY(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||eH.has(t)}let eX=t=>!eY(t);try{!function(t){"function"==typeof t&&(eX=e=>e.startsWith("on")?!eY(e):t(e))}((()=>{let t=Error("Cannot find module '@emotion/is-prop-valid'");throw t.code="MODULE_NOT_FOUND",t})().default)}catch(t){}let eG=(0,r.createContext)(null);function eK(t){return tK(t)?t.get():t}let e$=t=>(e,n)=>{let i=(0,r.useContext)(eU),o=(0,r.useContext)(eG),s=()=>(function(t,e,r,n){let{scrapeMotionValuesFromProps:i,createRenderState:o}=t;return{latestValues:function(t,e,r,n){let i={},o=n(t,{});for(let t in o)i[t]=eK(o[t]);let{initial:s,animate:a}=t,l=ec(t),u=eh(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!r&&!1===r.initial,h=(c=c||!1===s)?a:s;if(h&&"boolean"!=typeof h&&!es(h)){let e=Array.isArray(h)?h:[h];for(let r=0;r<e.length;r++){let n=ef(t,e[r]);if(n){let{transitionEnd:t,transition:e,...r}=n;for(let t in r){let e=r[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(i[t]=e)}for(let e in t)i[e]=t[e]}}}return i}(e,r,n,i),renderState:o()}})(t,e,i,o);return n?s():function(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}(s)},eZ=e$({scrapeMotionValuesFromProps:eC,createRenderState:eW}),eJ=e$({scrapeMotionValuesFromProps:ek,createRenderState:eq}),eQ=Symbol.for("motionComponentSymbol");function e0(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}let e1="data-"+eA("framerAppearId"),e2=(0,r.createContext)({}),e3=er?r.useLayoutEffect:r.useEffect;function e5(t){var e,n;let{forwardMotionProps:i=!1}
1=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0;o&&function(t){for(let e in t)t4[e]={...t4[e],...t[e]}}(o);let a=e_(t)?eJ:eZ;function l(e,n){var o;let l,u={...(0,r.useContext)(eB),...e,layoutId:function(t){let{layoutId:e}=t,n=(0,r.useContext)(eF).id;return n&&void 0!==e?n+"-"+e:e}(e)},{isStatic:c}=u,h=function(t){let{initial:e,animate:n}=function(t,e){if(ec(t)){let{initial:e,animate:r}=t;return{initial:!1===e||ea(e)?e:void 0,animate:ea(r)?r:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(eU));return(0,r.useMemo)(()=>({initial:e,animate:n}),[eN(e),eN(n)])}(e),d=a(e,c);if(!c&&er){(0,r.useContext)(eL).strict;let e=function(t){let{drag:e,layout:r}=t4;if(!e&&!r)return{};let n={...e,...r};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==r?void 0:r.isEnabled(t))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(u);l=e.MeasureLayout,h.visualElement=function(t,e,n,i,o){var s,a,l,u;let{visualElement:c}=(0,r.useContext)(eU),h=(0,r.useContext)(eL),d=(0,r.useContext)(eG),f=(0,r.useContext)(eB).reducedMotion,p=(0,r.useRef)(null);i=i||h.renderer,!p.current&&i&&(p.current=i(t,{visualState:e,parent:c,props:n,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:f}));let m=p.current,v=(0,r.useContext)(e2);m&&!m.projection&&o&&("html"===m.type||"svg"===m.type)&&function(t,e,r,n){let{layoutId:i,layout:o,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutCrossfade:c}=e;t.projection=new r(t.latestValues,e["data-framer-portal-id"]?void 0:function t(e){if(e)return!1!==e.options.allowProjection?e.projection:t(e.parent)}(t.parent)),t.projection.setOptions({layoutId:i,layout:o,alwaysMeasureLayout:!!s||a&&e0(a),visualElement:t,animationType:"string"==typeof o?o:"both",initialPromotionConfig:n,crossfade:c,layoutScroll:l,layoutRoot:u})}(p.current,n,o,v);let y=(0,r.useRef)(!1);(0,r.useInsertionEffect)(()=>{m&&y.current&&m.update(n,d)});let g=n[e1],b=(0,r.useRef)(!!g&&!(null==(s=(a=window).MotionHandoffIsComplete)?void 0:s.call(a,g))&&(null==(l=(u=window).MotionHasOptimisedAnimation)?void 0:l.call(u,g)));return e3(()=>{m&&(y.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),b.current&&m.animationState&&m.animationState.animateChanges())}),(0,r.useEffect)(()=>{m&&(!b.current&&m.animationState&&m.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var t,e;null==(t=(e=window).MotionHandoffMarkAsComplete)||t.call(e,g)}),b.current=!1),m.enteringChildren=void 0)}),m}(t,d,u,s,e.ProjectionNode)}return(0,eV.jsxs)(eU.Provider,{value:h,children:[l&&h.visualElement?(0,eV.jsx)(l,{visualElement:h.visualElement,...u}):null,function(t,e,n,i,o){let{latestValues:s}=i,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=(e_(t)?function(t,e,n,i){let o=(0,r.useMemo)(()=>{let r=eq();return ej(r,e,eO(i),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){let e={};ez(e,t.style,t),o.style={...e,...o.style}}return o}:function(t,e){let n={},i=function(t,e){let n=t.style||{},i={};return ez(i,n,t),Object.assign(i,function(t,e){let{transformTemplate:n}=t;return(0,r.useMemo)(()=>{let t=eW();return ew(t,e,n),Object.assign({},t.vars,t.style)},[e])}(t,e)),i}(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":"pan-".concat("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=i,n})(e,s,o,t),u=function(t,e,r){let n={};for(let i in t)("values"!==i||"object"!=typeof t.values)&&(eX(i)||!0===r&&eY(i)||!e&&!eY(i)||t.draggable&&i.startsWith("onDrag"))&&(n[i]=t[i]);return n}(e,"string"==typeof t,a),c=t!==r.Fragment?{...u,...l,ref:n}:{},{children:h}=e,d=(0,r.useMemo)(()=>tK(h)?h.get():h,[h]);return(0,r.createElement)(t,{...c,children:d})}(t,e,(o=h.visualElement,(0,r.useCallback)(t=>{t&&d.onMount&&d.onMount(t),o&&(t?o.mount(t):o.unmount()),n&&("function"==typeof n?n(t):e0(n)&&(n.current=t))},[o])),d,c,i)]})}l.displayName="motion.".concat("string"==typeof t?t:"create(".concat(null!=(n=null!=(e=t.displayName)?e:t.name)?n:"",")"));let u=(0,r.forwardRef)(l);return u[eQ]=t,u}function e6(t,e,r){let n=t.getProps();return ef(n,e,void 0!==r?r:n.custom,t)}function e8(t,e){var r,n;return null!=(n=null!=(r=null==t?void 0:t[e])?r:null==t?void 0:t.default)?n:t}let e4=t=>Array.isArray(t);function e9(t,e){let r=t.getValue("willChange");if(tK(r)&&r.add)return r.add(e);if(!r&&tn.WillChange){let r=new tn.WillChange("auto");t.addValue("willChange",r),r.add(e)}}function e7(t){t.duration=0,t.type}let rt=(t,e)=>r=>e(t(r)),re=function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.reduce(rt)},rr=t=>1e3*t,rn={layout:0,mainThread:0,waapi:0};function ri(t,e,r){return(r<0&&(r+=1),r>1&&(r-=1),r<1/6)?t+(e-t)*6*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function ro(t,e){return r=>r>0?e:t}let rs=(t,e,r)=>{let n=t*t,i=r*(e*e-n)+n;return i<0?0:Math.sqrt(i)},ra=[tA,tS,tP];function rl(t){let e=ra.find(e=>e.test(t));if(G(!!e,"'".concat(t,"' is not an animatable color. Use the equivalent color code instead."),"color-not-animatable"),!e)return!1;let r=e.parse(t);return e===tP&&(r=function(t){let{hue:e,saturation:r,lightness:n,alpha:i}=t;e/=360,n/=100;let o=0,s=0,a=0;if(r/=100){let t=n<.5?n*(1+r):n+r-n*r,i=2*n-t;o=ri(i,t,e+1/3),s=ri(i,t,e),a=ri(i,t,e-1/3)}else o=s=a=n;return{red:Math.round(255*o),green:Math.round(255*s),blue:Math.round(255*a),alpha:i}}(r)),r}let ru=(t,e)=>{let r=rl(t),n=rl(e);if(!r||!n)return ro(t,e);let i={...r};return t=>(i.red=rs(r.red,n.red,t),i.green=rs(r.green,n.green,t),i.blue=rs(r.blue,n.blue,t),i.alpha=x(r.alpha,n.alpha,t),tS.transform(i))},rc=new Set(["none","hidden"]);function rh(t,e){return r=>x(t,e,r)}function rd(t){return"number"==typeof t?rh:"string"==typeof t?g(t)?ro:tM.test(t)?ru:rm:Array.isArray(t)?rf:"object"==typeof t?tM.test(t)?ru:rp:ro}function rf(t,e){let r=[...t],n=r.length,i=t.map((t,r)=>rd(t)(t,e[r]));return t=>{for(let e=0;e<n;e++)r[e]=i[e](t);return r}}function rp(t,e){let r={...t,...e},n={};for(let i in r)void 0!==t[i]&&void 0!==e[i]&&(n[i]=rd(t[i])(t[i],e[i]));return t=>{for(let e in n)r[e]=n[e](t);return r}}let rm=(t,e)=>{let r=tF.createTransformer(e),n=tR(t),i=tR(e);return n.indexes.var.length===i.indexes.var.length&&n.indexes.color.length===i.indexes.color.length&&n.indexes.number.length>=i.indexes.number.length?rc.has(t)&&!i.values.length||rc.has(e)&&!n.values.length?function(t,e){return rc.has(t)?r=>r<=0?t:e:r=>r>=1?e:t}(t,e):re(rf(function(t,e){let r=[],n={color:0,var:0,number:0};for(let o=0;o<e.values.length;o++){var i;let s=e.types[o],a=t.indexes[s][n[s]],l=null!=(i=t.values[a])?i:0;r[o]=l,n[s]++}return r}(n,i),i.values),r):(G(!0,"Complex values '".concat(t,"' and '").concat(e,"' too different to mix. Ensure all c
1olors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition."),"complex-values-different"),ro(t,e))};function rv(t,e,r){return"number"==typeof t&&"number"==typeof e&&"number"==typeof r?x(t,e,r):rd(t)(t,e)}let ry=t=>{let e=e=>{let{timestamp:r}=e;return t(r)};return{start:function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];return ta.update(e,t)},stop:()=>tl(e),now:()=>tu.isProcessing?tu.timestamp:tZ.now()}},rg=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n="",i=Math.max(Math.round(e/r),2);for(let e=0;e<i;e++)n+=Math.round(1e4*t(e/(i-1)))/1e4+", ";return"linear(".concat(n.substring(0,n.length-2),")")};function rb(t){let e=0,r=t.next(e);for(;!r.done&&e<2e4;)e+=50,r=t.next(e);return e>=2e4?1/0:e}function rw(t,e,r){var n,i;let o=Math.max(e-5,0);return n=r-t(o),(i=e-o)?1e3/i*n:0}let rx={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 rE(t,e){return t*Math.sqrt(1-e*e)}let rT=["duration","bounce"],rC=["stiffness","damping","mass"];function rS(t,e){return e.some(e=>void 0!==t[e])}function rA(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:rx.visualDuration,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:rx.bounce,n="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:r}:e,{restSpeed:i,restDelta:o}=n,s=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],l={done:!1,value:s},{stiffness:u,damping:c,mass:h,duration:d,velocity:f,isResolvedFromDuration:p}=function(t){let e={velocity:rx.velocity,stiffness:rx.stiffness,damping:rx.damping,mass:rx.mass,isResolvedFromDuration:!1,...t};if(!rS(t,rC)&&rS(t,rT))if(t.visualDuration){let r=2*Math.PI/(1.2*t.visualDuration),n=r*r,i=2*D(.05,1,1-(t.bounce||0))*Math.sqrt(n);e={...e,mass:rx.mass,stiffness:n,damping:i}}else{let r=function(t){let e,r,{duration:n=rx.duration,bounce:i=rx.bounce,velocity:o=rx.velocity,mass:s=rx.mass}=t;G(n<=rr(rx.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let a=1-i;a=D(rx.minDamping,rx.maxDamping,a),n=D(rx.minDuration,rx.maxDuration,n/1e3),a<1?(e=t=>{let e=t*a,r=e*n;return .001-(e-o)/rE(t,a)*Math.exp(-r)},r=t=>{let r=t*a*n,i=Math.pow(a,2)*Math.pow(t,2)*n,s=Math.exp(-r),l=rE(Math.pow(t,2),a);return(r*o+o-i)*s*(-e(t)+.001>0?-1:1)/l}):(e=t=>-.001+Math.exp(-t*n)*((t-o)*n+1),r=t=>n*n*(o-t)*Math.exp(-t*n));let l=function(t,e,r){let n=r;for(let r=1;r<12;r++)n-=t(n)/e(n);return n}(e,r,5/n);if(n=rr(n),isNaN(l))return{stiffness:rx.stiffness,damping:rx.damping,duration:n};{let t=Math.pow(l,2)*s;return{stiffness:t,damping:2*a*Math.sqrt(s*t),duration:n}}}(t);(e={...e,...r,mass:rx.mass}).isResolvedFromDuration=!0}return e}({...n,velocity:-((n.velocity||0)/1e3)}),m=f||0,v=c/(2*Math.sqrt(u*h)),y=a-s,g=Math.sqrt(u/h)/1e3,b=5>Math.abs(y);if(i||(i=b?rx.restSpeed.granular:rx.restSpeed.default),o||(o=b?rx.restDelta.granular:rx.restDelta.default),v<1){let e=rE(g,v);t=t=>a-Math.exp(-v*g*t)*((m+v*g*y)/e*Math.sin(e*t)+y*Math.cos(e*t))}else if(1===v)t=t=>a-Math.exp(-g*t)*(y+(m+g*y)*t);else{let e=g*Math.sqrt(v*v-1);t=t=>{let r=Math.exp(-v*g*t),n=Math.min(e*t,300);return a-r*((m+v*g*y)*Math.sinh(n)+e*y*Math.cosh(n))/e}}let w={calculatedDuration:p&&d||null,next:e=>{let r=t(e);if(p)l.done=e>=d;else{let n=0===e?m:0;v<1&&(n=0===e?rr(m):rw(t,e,r));let s=Math.abs(a-r)<=o;l.done=Math.abs(n)<=i&&s}return l.value=l.done?a:r,l},toString:()=>{let t=Math.min(rb(w),2e4),e=rg(e=>w.next(t*e).value,t,30);return t+"ms "+e},toTransition:()=>{}};return w}function rP(t){let e,r,{keyframes:n,velocity:i=0,power:o=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:c,max:h,restDelta:d=.5,restSpeed:f}=t,p=n[0],m={done:!1,value:p},v=o*i,y=p+v,g=void 0===u?y:u(y);g!==y&&(v=g-p);let b=t=>-v*Math.exp(-t/s),w=t=>g+b(t),x=t=>{let e=b(t),r=w(t);m.done=Math.abs(e)<=d,m.value=m.done?g:r},E=t=>{let n;if(n=m.value,void 0!==c&&n<c||void 0!==h&&n>h){var i;e=t,r=rA({keyframes:[m.value,(i=m.value,void 0===c?h:void 0===h||Math.abs(c-i)<Math.abs(h-i)?c:h)],velocity:rw(w,t,m.value),damping:a,stiffness:l,restDelta:d,restSpeed:f})}};return E(0),{calculatedDuration:null,next:t=>{let n=!1;return(r||void 0!==e||(n=!0,x(t),E(t)),void 0!==e&&t>=e)?r.next(t-e):(n||x(t),m)}}}rA.applyToOptions=t=>{let e=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,r=arguments.length>2?arguments[2]:void 0,n=r({...t,keyframes:[0,e]}),i=Math.min(rb(n),2e4);return{type:"keyframes",ease:t=>n.next(i*t).value/e,duration:i/1e3}}(t,100,rA);return t.ease=e.ease,t.duration=rr(e.duration),t.type="keyframes",t};let rM=(t,e,r)=>(((1-3*r+3*e)*t+(3*r-6*e))*t+3*e)*t;function rj(t,e,r,n){return t===e&&r===n?tr:i=>0===i||1===i?i:rM(function(t,e,r,n,i){let o,s,a=0;do(o=rM(s=e+(r-e)/2,n,i)-t)>0?r=s:e=s;while(Math.abs(o)>1e-7&&++a<12)return s}(i,0,1,t,r),e,n)}let rI=rj(.42,0,1,1),rO=rj(0,0,.58,1),rk=rj(.42,0,.58,1),rR=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,rD=t=>e=>1-t(1-e),r_=rj(.33,1.53,.69,.99),rV=rD(r_),rF=rR(rV),rL=t=>(t*=2)<1?.5*rV(t):.5*(2-Math.pow(2,-10*(t-1))),rB=t=>
11-Math.sin(Math.acos(t)),rU=rD(rB),rN=rR(rB),rW=t=>Array.isArray(t)&&"number"==typeof t[0],rz={linear:tr,easeIn:rI,easeInOut:rk,easeOut:rO,circIn:rB,circInOut:rN,circOut:rU,backIn:rV,backInOut:rF,backOut:r_,anticipate:rL},rq=t=>{if(rW(t)){K(4===t.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[e,r,n,i]=t;return rj(e,r,n,i)}return"string"==typeof t?(K(void 0!==rz[t],"Invalid easing type '".concat(t,"'"),"invalid-easing-type"),rz[t]):t},rH=(t,e,r)=>{let n=e-t;return 0===n?1:(r-t)/n};function rY(t){var e;let{duration:r=300,keyframes:n,times:i,ease:o="easeInOut"}=t,s=Array.isArray(o)&&"number"!=typeof o[0]?o.map(rq):rq(o),a={done:!1,value:n[0]},l=function(t,e){let{clamp:r=!0,ease:n,mixer:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.length;if(K(o===e.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>e[0];if(2===o&&e[0]===e[1])return()=>e[1];let s=t[0]===t[1];t[0]>t[o-1]&&(t=[...t].reverse(),e=[...e].reverse());let a=function(t,e,r){let n=[],i=r||tn.mix||rv,o=t.length-1;for(let r=0;r<o;r++){let o=i(t[r],t[r+1]);e&&(o=re(Array.isArray(e)?e[r]||tr:e,o)),n.push(o)}return n}(e,n,i),l=a.length,u=r=>{if(s&&r<t[0])return e[0];let n=0;if(l>1)for(;n<t.length-2&&!(r<t[n+1]);n++);let i=rH(t[n],t[n+1],r);return a[n](i)};return r?e=>u(D(t[0],t[o-1],e)):u}((e=i&&i.length===n.length?i:function(t){let e=[0];return!function(t,e){let r=t[t.length-1];for(let n=1;n<=e;n++){let i=rH(0,e,n);t.push(x(r,1,i))}}(e,t.length-1),e}(n),e.map(t=>t*r)),n,{ease:Array.isArray(s)?s:n.map(()=>s||rk).splice(0,n.length-1)});return{calculatedDuration:r,next:t=>(a.value=l(t),a.done=t>=r,a)}}let rX=t=>null!==t;function rG(t,e,r){let{repeat:n,repeatType:i="loop"}=e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=t.filter(rX),a=o<0||n&&"loop"!==i&&n%2==1?0:s.length-1;return a&&void 0!==r?r:s[a]}let rK={decay:rP,inertia:rP,tween:rY,keyframes:rY,spring:rA};function r$(t){"string"==typeof t.type&&(t.type=rK[t.type])}class rZ{get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}constructor(){this.updateFinished()}}let rJ=t=>t/100;class rQ extends rZ{initAnimation(){let{options:t}=this;r$(t);let{type:e=rY,repeat:r=0,repeatDelay:n=0,repeatType:i,velocity:o=0}=t,{keyframes:s}=t,a=e||rY;a!==rY&&"number"!=typeof s[0]&&(this.mixKeyframes=re(rJ,rv(s[0],s[1])),s=[0,100]);let l=a({...t,keyframes:s});"mirror"===i&&(this.mirroredGenerator=a({...t,keyframes:[...s].reverse(),velocity:-o})),null===l.calculatedDuration&&(l.calculatedDuration=rb(l));let{calculatedDuration:u}=l;this.calculatedDuration=u,this.resolvedDuration=u+n,this.totalDuration=this.resolvedDuration*(r+1)-n,this.generator=l}updateTime(t){let e=Math.round(t-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=e}tick(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{generator:r,totalDuration:n,mixKeyframes:i,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:a}=this;if(null===this.startTime)return r.next(0);let{delay:l=0,keyframes:u,repeat:c,repeatType:h,repeatDelay:d,type:f,onUpdate:p,finalKeyframe:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-n/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);let v=this.currentTime-l*(this.playbackSpeed>=0?1:-1),y=this.playbackSpeed>=0?v<0:v>n;this.currentTime=Math.max(v,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=n);let g=this.currentTime,b=r;if(c){let t=Math.min(this.currentTime,n)/s,e=Math.floor(t),r=t%1;!r&&t>=1&&(r=1),1===r&&e--,(e=Math.min(e,c+1))%2&&("reverse"===h?(r=1-r,d&&(r-=d/s)):"mirror"===h&&(b=o)),g=D(0,1,r)*s}let w=y?{done:!1,value:u[0]}:b.next(g);i&&(w.value=i(w.value));let{done:x}=w;y||null===a||(x=this.playbackSpeed>=0?this.currentTime>=n:this.currentTime<=0);let E=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return E&&f!==rP&&(w.value=rG(u,this.options,m,this.speed)),p&&p(w.value),E&&this.finish(),w}then(t,e){return this.finished.then(t,e)}get duration(){return this.calculatedDuration/1e3}get time(){return this.currentTime/1e3}set time(t){var e;t=rr(t),this.currentTime=t,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),null==(e=this.driver)||e.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(tZ.now());let e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=this.currentTime/1e3)}play(){var t,e;if(this.isStopped)return;let{driver:r=ry,startTime:n}=this.options;this.driver||(this.driver=r(t=>this.tick(t))),null==(t=(e=this.options).onPlay)||t.call(e);let i=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=i):null!==this.holdTime?this.startTime=i-this.holdTime:this.startTime||(this.startTime=null!=n?n:i),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(tZ.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",null==(t=(e=this.options).onComplete)||t.call(e)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(t=(e=this.options).onCancel)||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null,rn.mainThread--}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(e=this.driver)||e.stop(),t.observe(this)}constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var t,e;let{motionValue:r}=this.options;r&&r.updatedAt!==tZ.now()&&this.tick(tZ.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(t=(e=this.options).onStop)||t.call(e))},rn.mainThread++,this.options=t,this.initAnimation(),this.play(),!1===t.autoplay&&this.pause()}}function r0(t){let e;return()=>(void 0===e&&(e=t()),e)}let r1=r0(()=>void 0!==window.ScrollTimeline),r2={},r3=function(t,e){let r=r0(t);return()=>{var t;return null!=(t=r2[e])?t:r()}}(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch(t){return!1}return!0},"linearEasing"),r5=t=>{let[e,r,n,i]=t;return"cubic-bezier(".concat(e,", ").concat(r,", ").concat(n,", ").concat(i,")")},r6={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:r5([0,.65,.55,1]),circOut:r5([.55,0,1,.45]),backIn:r5([.31,.01,.66,-.59]),backOut:r5([.33,1.53,.69,.99])};function r8(t){return"function"==typeof t&&"applyToOptions"in t}class r4 extends rZ{play(){this.isStopped||(this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,e;null==(t=(e=this.animation).finish)||t.call(e)}cancel(){try{this.animation.cancel()}catch(t){}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:t}=this;"idle"!==t&&"finished"!==t&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){if(!this.isPseudoElement){var t,e;null==(t=(e=this.animation).commitStyles)||t.call(e)}}get duration(){var t,e;return Number((null==(e=this.animation.effect)||null==(t=e.getComputedTiming)?void 0:t.call(e).duration)||0)/1e3}get time(){return(Number(this.animation.currentTime)||0)/1e3}set time(t){this.finishedTime=null,this.animation.currentTime=rr(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline(t){let{timeline:e,observe:r}=t;if(this.allowFlatten){var n;null==(n=this.animation.effect)||n.updateTiming({easing:"linear"})}return(this.animation.onfinish=null,e&&r1())?(this.animation.timeline=e,tr):r(this)}constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;let{element:e,name:r,keyframes:n,pseudoElement:i,allowFlatten:o=!1,finalKeyframe:s,onComplete:a}=t;this.isPseudoElement=!!i,this.allowFlatten=o,this.options=t,K("string"!=typeof t.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let l=function(t){let{type:e,...r}=t;return r8(e)&&r3()?e.applyToOptions(r):(null!=r.duration||(r.duration=300),null!=r.ease||(r.ease="easeOut"),r)}(t);this.animation=function(t,e,r){let{delay:n=0,duration:i=300,repeat:o=0,repeatType:s="loop",ease:a="easeOut",times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,c={[e]:r};l&&(c.offset=l);let h=function t(e,r){if(e)return"function"==typeof e?r3()?rg(e,r):"ease-out":rW(e)?r5(e):Array.isArray(e)?e.map(e=>t(e,r)||r6.easeOut):r6[e]}(a,i);Array.isArray(h)&&(c.easing=h),to.value&&rn.waapi++;let d={delay:n,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};u&&(d.pseudoElement=u);let f=t.animate(c,d);return to.value&&f.finished.finally(()=>{rn.waapi--}),f}(e,r,n,l,i),!1===l.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let t=rG(n,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(t):function(t,e,r){e.startsWith("--")?t.style.setProperty(e,r):t.style[e]=r}(e,r,t),this.animation.cancel()}null==a||a(),this.notifyFinished()}}}let r9={anticipate:rL,backInOut:rF,circInOut:rN};class r7 extends r4{updateMotionValue(t){var e;let{motionValue:r,onUpdate:n,onComplete:i,element:o,...s}=this.options;if(!r)return;if(void 0!==t)return void r.set(t);let a=new rQ({...s,autoplay:!1}),l=rr(null!=(e=this.finishedTime)?e:this.time);r.setWithVelocity(a.sample(l-10).value,a.sample(l).value,10),a.stop()}constructor(t){!function(t){"string"==typeof t.ease&&t.ease in r9&&(t.ease=r9[t.ease])}(t),r$(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}}let nt=(t,e)=>"zIndex"!==e&&!!("number"==typeof t||Array.isArray(t)||"string"==typeof t&&(tF.test(t)||"0"===t)&&!t.startsWith("url(")),ne=new Set(["opacity","clipPath","filter","transform"]),nr=r0(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));
1class nn extends rZ{onKeyframesResolved(t,e,r,n){this.keyframeResolver=void 0;let{name:i,type:o,velocity:s,delay:a,isHandoff:l,onUpdate:u}=r;this.resolvedAt=tZ.now(),!function(t,e,r,n){let i=t[0];if(null===i)return!1;if("display"===e||"visibility"===e)return!0;let o=t[t.length-1],s=nt(i,e),a=nt(o,e);return G(s===a,"You are trying to animate ".concat(e,' from "').concat(i,'" to "').concat(o,'". "').concat(s?o:i,'" is not an animatable value.'),"value-not-animatable"),!!s&&!!a&&(function(t){let e=t[0];if(1===t.length)return!0;for(let r=0;r<t.length;r++)if(t[r]!==e)return!0}(t)||("spring"===r||r8(r))&&n)}(t,i,o,s)&&((tn.instantAnimations||!a)&&(null==u||u(rG(t,r,e))),t[0]=t[t.length-1],e7(r),r.repeat=0);let c={startTime:n?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:e,...r,keyframes:t},h=!l&&function(t){var e;let{motionValue:r,name:n,repeatDelay:i,repeatType:o,damping:s,type:a}=t;if(!((null==r||null==(e=r.owner)?void 0:e.current)instanceof HTMLElement))return!1;let{onUpdate:l,transformTemplate:u}=r.owner.getProps();return nr()&&n&&ne.has(n)&&("transform"!==n||!u)&&!l&&!i&&"mirror"!==o&&0!==s&&"inertia"!==a}(c)?new r7({...c,element:c.motionValue.owner.current}):new rQ(c);h.finished.then(()=>this.notifyFinished()).catch(tr),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){if(!this._animation){var t;null==(t=this.keyframeResolver)||t.resume(),tp=!0,tv(),tm(),tp=!1}return this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),null==(t=this.keyframeResolver)||t.cancel()}constructor({autoplay:t=!0,delay:e=0,type:r="keyframes",repeat:n=0,repeatDelay:i=0,repeatType:o="loop",keyframes:s,name:a,motionValue:l,element:u,...c}){var h;super(),this.stop=()=>{var t,e;this._animation&&(this._animation.stop(),null==(e=this.stopTimeline)||e.call(this)),null==(t=this.keyframeResolver)||t.cancel()},this.createdAt=tZ.now();let d={autoplay:t,delay:e,type:r,repeat:n,repeatDelay:i,repeatType:o,name:a,motionValue:l,element:u,...c},f=(null==u?void 0:u.KeyframeResolver)||ty;this.keyframeResolver=new f(s,(t,e,r)=>this.onKeyframesResolved(t,e,d,!r),a,l,u),null==(h=this.keyframeResolver)||h.scheduleResolve()}}let ni=t=>null!==t,no={type:"spring",stiffness:500,damping:25,restSpeed:10},ns={type:"keyframes",duration:.8},na={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},nl=function(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;return a=>{let l=e8(n,t)||{},u=l.delay||n.delay||0,{elapsed:c=0}=n;c-=rr(u);let h={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:e.getVelocity(),...l,delay:-c,onUpdate:t=>{e.set(t),l.onUpdate&&l.onUpdate(t)},onComplete:()=>{a(),l.onComplete&&l.onComplete()},name:t,motionValue:e,element:s?void 0:o};!function(t){let{when:e,delay:r,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:a,repeatDelay:l,from:u,elapsed:c,...h}=t;return!!Object.keys(h).length}(l)&&Object.assign(h,((t,e)=>{let{keyframes:r}=e;return r.length>2?ns:i.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===r[1]?2*Math.sqrt(550):30,restSpeed:10}:no:na})(t,h)),h.duration&&(h.duration=rr(h.duration)),h.repeatDelay&&(h.repeatDelay=rr(h.repeatDelay)),void 0!==h.from&&(h.keyframes[0]=h.from);let d=!1;if(!1!==h.type&&(0!==h.duration||h.repeatDelay)||(e7(h),0===h.delay&&(d=!0)),(tn.instantAnimations||tn.skipAnimations)&&(d=!0,e7(h),h.delay=0),h.allowFlatten=!l.type&&!l.ease,d&&!s&&void 0!==e.get()){let t=function(t,e,r){let{repeat:n,repeatType:i="loop"}=e,o=t.filter(ni),s=n&&"loop"!==i&&n%2==1?0:o.length-1;return o[s]}(h.keyframes,l);if(void 0!==t)return void ta.update(()=>{h.onUpdate(t),h.onComplete()})}return l.isSync?new rQ(h):new nn(h)}};function nu(t,e){let{delay:r=0,transitionOverride:n,type:i}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=e;n&&(o=n);let l=[],u=i&&t.animationState&&t.animationState.getState()[i];for(let e in a){var c;let n=t.getValue(e,null!=(c=t.latestValues[e])?c:null),i=a[e];if(void 0===i||u&&function(t,e){let{protectedKeys:r,needsAnimating:n}=t,i=r.hasOwnProperty(e)&&!0!==n[e];return n[e]=!1,i}(u,e))continue;let s={delay:r,...e8(o||{},e)},h=n.get();if(void 0!==h&&!n.isAnimating&&!Array.isArray(i)&&i===h&&!s.velocity)continue;let d=!1;if(window.MotionHandoffAnimation){let r=t.props[e1];if(r){let t=window.MotionHandoffAnimation(r,e,ta);null!==t&&(s.startTime=t,d=!0)}}e9(t,e),n.start(nl(e,n,i,t.shouldReduceMotion&&R.has(e)?{type:!1}:s,t,d));let f=n.animation;f&&l.push(f)}return s&&Promise.all(l).then(()=>{ta.update(()=>{s&&function(t,e){let{transitionEnd:r={},transition:n={},...i}=e6(t,e)||{};for(let e in i={...i,...r}){var o;let r=e4(o=i[e])?o[o.length-1]||0:o;t.hasValue(e)?t.getValue(e).set(r):t.addValue(e,t3(r))}}(t,s)})}),l}function nc(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=Array.from(t).sort((t,e)=>t.sortNodePosition(e)).indexOf(e),s=t.size,a=(s-1)*n;return"function"==typeof r?r(o,s):1===i?o*n:a-o*n}function nh(t,e){var r;let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e6(t,e,"exit"===n.type?null==(r=t.presenceContext)?void 0:r.custom:void 0),{transition:o=t.getDefaultTransition()||{}}=i||{};
1n.transitionOverride&&(o=n.transitionOverride);let s=i?()=>Promise.all(nu(t,i,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{delayChildren:i=0,staggerChildren:s,staggerDirection:a}=o;return function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=arguments.length>6?arguments[6]:void 0,a=[];for(let l of t.variantChildren)l.notify("AnimationStart",e),a.push(nh(l,e,{...s,delay:r+("function"==typeof n?0:n)+nc(t.variantChildren,l,n,i,o)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}(t,e,r,i,s,a,n)}:()=>Promise.resolve(),{when:l}=o;if(!l)return Promise.all([s(),a(n.delay)]);{let[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then(()=>e())}}function nd(t,e){if(!Array.isArray(e))return!1;let r=e.length;if(r!==t.length)return!1;for(let n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}let nf=eu.length,np=[...el].reverse(),nm=el.length;function nv(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ny(){return{animate:nv(!0),whileInView:nv(),whileHover:nv(),whileTap:nv(),whileDrag:nv(),whileFocus:nv(),exit:nv()}}class ng{update(){}constructor(t){this.isMounted=!1,this.node=t}}let nb=0,nw={x:!1,y:!1};function nx(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r)}let nE=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function nT(t){return{point:{x:t.pageX,y:t.pageY}}}function nC(t,e,r,n){return nx(t,e,t=>nE(t)&&r(t,nT(t)),n)}function nS(t){return t.max-t.min}function nA(t,e,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=n,t.originPoint=x(e.min,e.max,t.origin),t.scale=nS(r)/nS(e),t.translate=x(r.min,r.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function nP(t,e,r,n){nA(t.x,e.x,r.x,n?n.originX:void 0),nA(t.y,e.y,r.y,n?n.originY:void 0)}function nM(t,e,r){t.min=r.min+e.min,t.max=t.min+nS(e)}function nj(t,e,r){t.min=e.min-r.min,t.max=t.min+nS(e)}function nI(t,e,r){nj(t.x,e.x,r.x),nj(t.y,e.y,r.y)}function nO(t){return[t("x"),t("y")]}let nk=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null},nR=(t,e)=>Math.abs(t-e);class nD{updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),tl(this.updatePoint)}constructor(t,e,{transformPagePoint:r,contextWindow:n=window,dragSnapToOrigin:i=!1,distanceThreshold:o=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let t=nF(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,r=function(t,e){return Math.sqrt(nR(t.x,e.x)**2+nR(t.y,e.y)**2)}(t.offset,{x:0,y:0})>=this.distanceThreshold;if(!e&&!r)return;let{point:n}=t,{timestamp:i}=tu;this.history.push({...n,timestamp:i});let{onStart:o,onMove:s}=this.handlers;e||(o&&o(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=n_(e,this.transformPagePoint),ta.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();let{onEnd:r,onSessionEnd:n,resumeAnimation:i}=this.handlers;if(this.dragSnapToOrigin&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=nF("pointercancel"===t.type?this.lastMoveEventInfo:n_(e,this.transformPagePoint),this.history);this.startEvent&&r&&r(t,o),n&&n(t,o)},!nE(t))return;this.dragSnapToOrigin=i,this.handlers=e,this.transformPagePoint=r,this.distanceThreshold=o,this.contextWindow=n||window;let s=n_(nT(t),this.transformPagePoint),{point:a}=s,{timestamp:l}=tu;this.history=[{...a,timestamp:l}];let{onSessionStart:u}=e;u&&u(t,nF(s,this.history)),this.removeListeners=re(nC(this.contextWindow,"pointermove",this.handlePointerMove),nC(this.contextWindow,"pointerup",this.handlePointerUp),nC(this.contextWindow,"pointercancel",this.handlePointerUp))}}function n_(t,e){return e?{point:e(t.point)}:t}function nV(t,e){return{x:t.x-e.x,y:t.y-e.y}}function nF(t,e){let{point:r}=t;return{point:r,delta:nV(r,nL(e)),offset:nV(r,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let r=t.length-1,n=null,i=nL(t);for(;r>=0&&(n=t[r],!(i.timestamp-n.timestamp>rr(.1)));)r--;if(!n)return{x:0,y:0};let o=(i.timestamp-n.timestamp)/1e3;if(0===o)return{x:0,y:0};let s={x:(i.x-n.x)/o,y:(i.y-n.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,.1)}}function nL(t){return t[t.length-1]}function nB(t,e,r){return{min:void 0!==e?t.min+e:void 0,max:void 0!==r?t.max+r-(t.max-t.min):void 0}}function nU(t,e){let r=e.min-t.min,n=e.max-t.max;return e.max-e.min<t.max-t.min&&([r,n]=[n,r]),{min:r,max:n}}function nN(t,e,r){return{min:nW(t,e),max:nW(t,r)}}function nW(t,e){return"number"==typeof t?t:t[e]||0}let nz=new WeakMap;
1class nq{start(t){let{snapToCursor:e=!1,distanceThreshold:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;let i=t=>{let{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(nT(t).point)},o=(t,e)=>{let{drag:r,dragPropagation:n,onDragStart:i}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock=function(t){if("x"===t||"y"===t)if(nw[t])return null;else return nw[t]=!0,()=>{nw[t]=!1};return nw.x||nw.y?null:(nw.x=nw.y=!0,()=>{nw.x=nw.y=!1})}(r),!this.openDragLock))return;this.latestPointerEvent=t,this.latestPanInfo=e,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),nO(t=>{let e=this.getAxisMotionValue(t).get()||0;if(U.test(e)){let{projection:r}=this.visualElement;if(r&&r.layout){let n=r.layout.layoutBox[t];n&&(e=nS(n)*(parseFloat(e)/100))}}this.originPoint[t]=e}),i&&ta.postRender(()=>i(t,e)),e9(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},s=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e;let{dragPropagation:r,dragDirectionLock:n,onDirectionLock:i,onDrag:o}=this.getProps();if(!r&&!this.openDragLock)return;let{offset:s}=e;if(n&&null===this.currentDirection){this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,r=null;return Math.abs(t.y)>e?r="y":Math.abs(t.x)>e&&(r="x"),r}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},a=(t,e)=>{this.latestPointerEvent=t,this.latestPanInfo=e,this.stop(t,e),this.latestPointerEvent=null,this.latestPanInfo=null},l=()=>nO(t=>{var e;return"paused"===this.getAnimationState(t)&&(null==(e=this.getAxisMotionValue(t).animation)?void 0:e.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new nD(t,{onSessionStart:i,onStart:o,onMove:s,onSessionEnd:a,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:r,contextWindow:nk(this.visualElement)})}stop(t,e){let r=t||this.latestPointerEvent,n=e||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!n||!r)return;let{velocity:o}=n;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&ta.postRender(()=>s(r,n))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,r){let{drag:n}=this.getProps();if(!r||!nH(t,n,this.currentDirection))return;let i=this.getAxisMotionValue(t),o=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(o=function(t,e,r){let{min:n,max:i}=e;return void 0!==n&&t<n?t=r?x(n,t,r.min):Math.max(t,n):void 0!==i&&t>i&&(t=r?x(i,t,r.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(t=this.visualElement.projection)?void 0:t.layout,i=this.constraints;e&&e0(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&n?this.constraints=function(t,e){let{top:r,left:n,bottom:i,right:o}=e;return{x:nB(t.x,n,o),y:nB(t.y,r,i)}}(n.layoutBox,e):this.constraints=!1,this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.35;return!1===t?t=0:!0===t&&(t=.35),{x:nN(t,"left","right"),y:nN(t,"top","bottom")}}(r),i!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&nO(t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let r={};return void 0!==e.min&&(r.min=e.min-t.min),void 0!==e.max&&(r.max=e.max-t.min),r}(n.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:r}=this.getProps();if(!e||!e0(e))return!1;let n=e.current;K(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(t,e,r){let n=k(t,r),{scroll:i}=e;return i&&(j(n.x,i.offset.x),j(n.y,i.offset.y)),n}(n,i.root,this.visualElement.getTransformPagePoint()),s=(t=i.layout.layoutBox,{x:nU(t.x,o.x),y:nU(t.y,o.y)});if(r){let t=r(function(t){let{x:e,y:r}=t;return{top:r.min,right:e.max,bottom:r.max,left:e.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=w(t))}return s}startAnimation(t){let{drag:e,dragMomentum:r,dragElastic:n,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(nO(s=>{if(!nH(s,e,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:r?t[s]:0,bounceStiffness:n?200:1e6,bounceDamping:n?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let r=this.getAxisMotionValue(t);return e9(this.visualElement,t),r.start(nl(t,r,0,e,this.visualElement,!1))}stopAnimation(){nO(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){nO(t=>{var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.pause()})}getAnimationState(t){var e;return null==(e=this.getAxisMotionValue(t).animation)?void 0:e.state}getAxisMotionValue(t){let e="_drag".concat(t.toUpperCase()),r=this.visualElement.getProps();return r[e]||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){nO(e=>{let{drag:r}=this.getProps();if(!nH(e,r,this.currentDirection))return;let{projection:n}=this.visualElement,i=this.getAxisMotionValue(e);if(n&&n.layout){let{min:r,max:o}=n.layout.layoutBox[e];i.set(t[e]-x(r,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:r}=this.visualElement;if(!e0(e)||!r||!this.constraints)return;this.stopAnimation();let n={x:0,y:0};nO(t=>{let e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){let r=e.get();n[t]=function(t,e){let r=.5,n=nS(t),i=nS(e);return i>n?r=rH(e.min,e.max-n,t.min):n>i&&(r=rH(t.min,t.max-i,e.min)),D(0,1,r)}({min:r,max:r},this.constraints[t])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),nO(e=>{if(!nH(e,t,null))return;let r=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];r.set(x(i,o,n[e]))})}addListeners(){if(!this.visualElement.current)return;nz.set(this.visualElement,this);let t=nC(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:r=!0}=this.getProps();e&&r&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();e0(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",e);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),ta.read(e);let i=nx(window,"resize",()=>this.scalePositionWithinConstraints()),o=r.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:r}=t;this.isDragging&&r&&(nO(t=>{let r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))}),this.visualElement.render())});return()=>{i(),t(),n(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:r,dragPropagation:n,dragConstraints:i,dragElastic:o,dragMomentum:s}}constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ee
1(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}}function nH(t,e,r){return(!0===e||e===t)&&(null===r||r===t)}let nY=t=>(e,r)=>{t&&ta.postRender(()=>t(e,r))};var nX=r;let nG={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nK(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let n$={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t)if(!N.test(t))return t;else t=parseFloat(t);let r=nK(t,e.target.x),n=nK(t,e.target.y);return"".concat(r,"% ").concat(n,"%")}},nZ=!1;class nJ extends nX.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r,layoutId:n}=this.props,{projection:i}=t;for(let t in n0)eE[t]=n0[t],v(t)&&(eE[t].isCSSVariable=!0);i&&(e.group&&e.group.add(i),r&&r.register&&n&&r.register(i),nZ&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nG.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:r,drag:n,isPresent:i}=this.props,{projection:o}=r;return o&&(o.isPresent=i,nZ=!0,n||t.layoutDependency!==e||void 0===e||t.isPresent!==i?o.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?o.promote():o.relegate()||ta.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),t6.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:r}=this.props,{projection:n}=t;nZ=!0,n&&(n.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nQ(t){let[e,n]=function(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,r.useContext)(eG);if(null===e)return[!0,null];let{isPresent:n,onExitComplete:i,register:o}=e,s=(0,r.useId)();(0,r.useEffect)(()=>{if(t)return o(s)},[t]);let a=(0,r.useCallback)(()=>t&&i&&i(s),[s,i,t]);return!n&&i?[!1,a]:[!0]}(),i=(0,nX.useContext)(eF);return(0,eV.jsx)(nJ,{...t,layoutGroup:i,switchLayoutGroup:(0,nX.useContext)(e2),isPresent:e,safeToRemove:n})}let n0={borderRadius:{...n$,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n$,borderTopRightRadius:n$,borderBottomLeftRadius:n$,borderBottomRightRadius:n$,boxShadow:{correct:(t,e)=>{let{treeScale:r,projectionDelta:n}=e,i=tF.parse(t);if(i.length>5)return t;let o=tF.createTransformer(t),s=+("number"!=typeof i[0]),a=n.x.scale*r.x,l=n.y.scale*r.y;i[0+s]/=a,i[1+s]/=l;let u=x(a,l,.5);return"number"==typeof i[2+s]&&(i[2+s]/=u),"number"==typeof i[3+s]&&(i[3+s]/=u),o(i)}}};function n1(t){return"object"==typeof t&&null!==t}function n2(t){return n1(t)&&"ownerSVGElement"in t}let n3=(t,e)=>t.depth-e.depth;class n5{add(t){tJ(this.children,t),this.isDirty=!0}remove(t){tQ(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(n3),this.isDirty=!1,this.children.forEach(t)}constructor(){this.children=[],this.isDirty=!1}}let n6=["TopLeft","TopRight","BottomLeft","BottomRight"],n8=n6.length,n4=t=>"string"==typeof t?parseFloat(t):t,n9=t=>"number"==typeof t||N.test(t);function n7(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let it=ir(0,.5,rU),ie=ir(.5,.95,tr);function ir(t,e,r){return n=>n<t?0:n>e?1:r(rH(t,e,n))}function ii(t,e){t.min=e.min,t.max=e.max}function io(t,e){ii(t.x,e.x),ii(t.y,e.y)}function is(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function ia(t,e,r,n,i){return t-=e,t=n+1/r*(t-n),void 0!==i&&(t=n+1/i*(t-n)),t}function il(t,e,r,n,i){let[o,s,a]=r;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;if(U.test(e)&&(e=parseFloat(e),e=x(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=x(o.min,o.max,n);t===o&&(a-=e),t.min=ia(t.min,e,r,a,i),t.max=ia(t.max,e,r,a,i)}(t,e[o],e[s],e[a],e.scale,n,i)}let iu=["x","scaleX","originX"],ic=["y","scaleY","originY"];function ih(t,e,r,n){il(t.x,e,iu,r?r.x:void 0,n?n.x:void 0),il(t.y,e,ic,r?r.y:void 0,n?n.y:void 0)}function id(t){return 0===t.translate&&1===t.scale}function ip(t){return id(t.x)&&id(t.y)}function im(t,e){return t.min===e.min&&t.max===e.max}function iv(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function iy(t,e){return iv(t.x,e.x)&&iv(t.y,e.y)}function ig(t){return nS(t.x)/nS(t.y)}function ib(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class iw{add(t){tJ(this.members,t),t.scheduleRender()}remove(t){if(tQ(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
1}relegate(t){let e,r=this.members.findIndex(e=>t===e);if(0===r)return!1;for(let t=r;t>=0;t--){let r=this.members[t];if(!1!==r.isPresent){e=r;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,e&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:n}=t.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:r}=t;e.onExitComplete&&e.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}constructor(){this.members=[]}}let ix={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},iE=["","X","Y","Z"],iT=0;function iC(t,e,r,n){let{latestValues:i}=e;i[t]&&(r[t]=i[t],e.setStaticValue(t,0),n&&(n[t]=0))}function iS(t){let{attachResizeListener:e,defaultParent:r,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}=t;return class{addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new t0),this.eventHandlers.get(t).add(e)}notifyListeners(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];let i=this.eventHandlers.get(t);i&&i.notify(...r)}hasListeners(t){return this.eventHandlers.has(t)}mount(t){if(this.instance)return;this.isSVG=n2(t)&&!(n2(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:r,layout:n,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(n||r)&&(this.isLayoutDirty=!0),e){let r,n=0,i=()=>this.root.updateBlockedByResize=!1;ta.read(()=>{n=window.innerWidth}),e(t,()=>{let t=window.innerWidth;t!==n&&(n=t,this.root.updateBlockedByResize=!0,r&&r(),r=function(t,e){let r=tZ.now(),n=e=>{let{timestamp:i}=e,o=i-r;o>=250&&(tl(n),t(o-250))};return ta.setup(n,!0),()=>tl(n)}(i,250),nG.hasAnimatedSinceResize&&(nG.hasAnimatedSinceResize=!1,this.nodes.forEach(iD)))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&i&&(r||n)&&this.addEventListener("didUpdate",t=>{let{delta:e,hasLayoutChanged:r,hasRelativeLayoutChanged:n,layout:o}=t;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let s=this.options.transition||i.getDefaultTransition()||iW,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=i.getProps(),u=!this.targetLayout||!iy(this.targetLayout,o),c=!r&&n;if(this.options.layoutRoot||this.resumeFrom||c||r&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...e8(s,"layout"),onPlay:a,onComplete:l};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else r||iD(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tl(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){!this.isUpdateBlocked()&&(this.isUpdating=!0,this.nodes&&this.nodes.forEach(iF),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function t(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:r}=e.options;if(!r)return;let n=r.props[e1];if(window.MotionHasOptimisedAnimation(n,"transform")){let{layout:t,layoutId:r}=e.options;
1window.MotionCancelOptimisedAnimation(n,"transform",ta,!(t||r))}let{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&t(i)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:r}=this.options;if(void 0===e&&!r)return;let n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(iO);return}if(this.animationId<=this.animationCommitId)return void this.nodes.forEach(ik);this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iR),this.nodes.forEach(iA),this.nodes.forEach(iP)):this.nodes.forEach(ik),this.clearAllSnapshots();let t=tZ.now();tu.delta=D(0,1e3/60,t-tu.timestamp),tu.timestamp=t,tu.isProcessing=!0,tc.update.process(tu),tc.preRender.process(tu),tc.render.process(tu),tu.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,t6.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(iI),this.sharedNodes.forEach(iL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ta.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ta.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||nS(this.snapshot.measuredBox.x)||nS(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=ee(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",e=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&this.instance){let e=i(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!o)return;let t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!ip(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,i=n!==this.prevTransformTemplateValue;t&&this.instance&&(e||C(this.latestValues)||i)&&(o(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0],r=this.measurePageBox(),n=this.removeElementScroll(r);return e&&(n=this.removeTransform(n)),iH((t=n).x),iH(t.y),{animationId:this.root.animationId,measuredBox:r,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;let{visualElement:e}=this.options;if(!e)return ee();let r=e.measureViewportBox();if(!((null==(t=this.scroll)?void 0:t.wasRoot)||this.path.some(iX))){let{scroll:t}=this.root;t&&(j(r.x,t.offset.x),j(r.y,t.offset.y))}return r}removeElementScroll(t){var e;let r=ee();if(io(r,t),null==(e=this.scroll)?void 0:e.wasRoot)return r;for(let e=0;e<this.path.length;e++){let n=this.path[e],{scroll:i,options:o}=n;n!==this.root&&i&&o.layoutScroll&&(i.wasRoot&&io(r,t),j(r.x,i.offset.x),j(r.y,i.offset.y))}return r}applyTransform(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=ee();io(r,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];!e&&n.options.layoutScroll&&n.scroll&&n!==n.root&&O(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),C(n.latestValues)&&O(r,n.latestValues)}return C(this.latestValues)&&O(r,this.latestValues),r}removeTransform(t){let e=ee();io(e,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];if(!r.instance||!C(r.latestValues))continue;T(r.latestValues)&&r.updateSnapshot();let n=ee();io(n,r.measurePageBox()),ih(e,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return C(this.latestValues)&&ih(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==tu.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(){var t,e,r,n;let i=arguments.length>0&&void 0!==arguments[0]&&arguments[0],o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(i||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:a,layoutId:l}=this.options;
1if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tu.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),nI(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),io(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=ee(),this.targetWithTransforms=ee()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),e=this.target,r=this.relativeTarget,n=this.relativeParent.target,nM(e.x,r.x,n.x),nM(e.y,r.y,n.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):io(this.target,this.layout.layoutBox),M(this.target,this.targetDelta)):io(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ee(),this.relativeTargetOrigin=ee(),nI(this.relativeTargetOrigin,this.target,t.target),io(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}to.value&&ix.calculatedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||T(this.parent.latestValues)||S(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 t;let e=this.getLead(),r=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||(null==(t=this.parent)?void 0:t.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===tu.timestamp&&(n=!1),n)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;io(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(t,e,r){let n,i,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=r.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){i=(n=r[a]).projectionDelta;let{visualElement:s}=n.options;(!s||!s.props.style||"contents"!==s.props.style.display)&&(o&&n.options.layoutScroll&&n.scroll&&n!==n.root&&O(t,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),i&&(e.x*=i.x.scale,e.y*=i.y.scale,M(t,i)),o&&C(n.latestValues)&&O(t,n.latestValues))}e.x<1.0000000000001&&e.x>.999999999999&&(e.x=1),e.y<1.0000000000001&&e.y>.999999999999&&(e.y=1)}}(this.layoutCorrected,this.treeScale,this.path,r),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=ee());let{target:l}=e;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(),nP(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&ib(this.projectionDelta.x,this.prevProjectionDelta.x)&&ib(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),to.value&&ix.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){var t;let e=!(arguments.length>0)||void 0===arguments[0]||arguments[0];if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=t7(),this.projectionDelta=t7(),this.projectionDeltaWithTransform=t7()}setAnimationOrigin(t){let e,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.snapshot,i=n?n.latestValues:{},o={...this.latestValues},s=t7();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!r;let a=ee(),l=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,h=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(iN));this.animationProgress=0,this.mixTargetDelta=r=>{let n=r/1e3;if(iB(s.x,t.x,n),iB(s.y,t.y,n),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,d,f,p,m,v;nI(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,m=a,v=n,iU(f.x,p.x,m.x,v),iU(f.y,p.y,m.y,v),e&&(u=this.relativeTarget,d=e,im(u.x,d.x)&&im(u.y,d.y))&&(this.isProjectionDirty=!1),e||(e=ee()),io(e,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,r,n,i,o){var s,a,l,u;i?(t.opacity=x(0,null!=(s=r.opacity)?s:1,it(n)),t.opacityExit=x(null!=(a=e.opacity)?a:1,0,ie(n))):o&&(t.opacity=x(null!=(l=e.opacity)?l:1,null!=(u=r.opacity)?u:1,n));for(let i=0;i<n8;i++){let o="border".concat(n6[i],"Radius"),s=n7(e,o),a=n7(r,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||n9(s)===n9(a)?(t[o]=Math.max(x(n4(s),n4(a),n),0),(U.test(a)||U.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||r.rotate)&&(t.rotate=x(e.rotate||0,r.rotate||0,n))}(o,i,this.latestValues,n,h,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(1e3*!!this.options.layoutRoot)}startAnimation(t){var e,r,n;this.notifyListeners("animationStart"),null==(e=this.currentAnimation)||e.stop(),null==(n=this.resumingFrom)||null==(r=n.currentAnimation)||r.stop(),this.pendingAnimation&&(tl(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ta.update(()=>{nG.hasAnimatedSinceResize=!0,rn.layout++,this.motionValue||(this.motionValue=t3(0)),this.currentAnimation=function(t,e,r){let n=tK(t)?t:t3(t);return n.start(nl("",n,e,r)),n.animation}(this.motionValue,[0,1e3],{...t,velocity:0,isSync:!0,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onStop:()=>{rn.layout--},onComplete:()=>{rn.layout--,t.onComplete&&t.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let t=this.getStack();t&&t.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let t=this.getLead(),{targetWithTransforms:e,target:r,layout:n,latestValues:i}=t;if(e&&r&&n){if(this!==t&&this.layout&&n&&iY(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||ee();let e=nS(this.layout.layoutBox.x);r.x.min=t.target.x.min,r.x.max=r.x.min+e;let n=nS(this.layout.layoutBox.y);r.y.min=t.target.y.min,r.y.max=r.y.min+n}
1io(e,r),O(e,i),nP(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new iw),this.sharedNodes.get(t).add(e);let r=e.options.initialPromotionConfig;e.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null==(t=this.getStack())?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null==(t=this.getStack())?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.getStack();n&&n.promote(this,r),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:r}=t;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(e=!0),!e)return;let n={};r.z&&iC("z",t,n,this.animationValues);for(let e=0;e<iE.length;e++)iC("rotate".concat(iE[e]),t,n,this.animationValues),iC("skew".concat(iE[e]),t,n,this.animationValues);for(let e in t.render(),n)t.setStaticValue(e,n[e]),this.animationValues&&(this.animationValues[e]=n[e]);t.scheduleRender()}applyProjectionStyles(t,e){if(!this.instance||this.isSVG)return;if(!this.isVisible){t.visibility="hidden";return}let r=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,t.visibility="",t.opacity="",t.pointerEvents=eK(null==e?void 0:e.pointerEvents)||"",t.transform=r?r(this.latestValues,""):"none";return}let n=this.getLead();if(!this.projectionDelta||!this.layout||!n.target){this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=eK(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!C(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1);return}t.visibility="";let i=n.animationValues||n.latestValues;this.applyTransformsToTarget();let o=function(t,e,r){let n="",i=t.x.translate/e.x,o=t.y.translate/e.y,s=(null==r?void 0:r.z)||0;if((i||o||s)&&(n="translate3d(".concat(i,"px, ").concat(o,"px, ").concat(s,"px) ")),(1!==e.x||1!==e.y)&&(n+="scale(".concat(1/e.x,", ").concat(1/e.y,") ")),r){let{transformPerspective:t,rotate:e,rotateX:i,rotateY:o,skewX:s,skewY:a}=r;t&&(n="perspective(".concat(t,"px) ").concat(n)),e&&(n+="rotate(".concat(e,"deg) ")),i&&(n+="rotateX(".concat(i,"deg) ")),o&&(n+="rotateY(".concat(o,"deg) ")),s&&(n+="skewX(".concat(s,"deg) ")),a&&(n+="skewY(".concat(a,"deg) "))}let a=t.x.scale*e.x,l=t.y.scale*e.y;return(1!==a||1!==l)&&(n+="scale(".concat(a,", ").concat(l,")")),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,i);r&&(o=r(i,o)),t.transform=o;let{x:s,y:a}=this.projectionDelta;if(t.transformOrigin="".concat(100*s.origin,"% ").concat(100*a.origin,"% 0"),n.animationValues){var l,u;t.opacity=n===this?null!=(u=null!=(l=i.opacity)?l:this.latestValues.opacity)?u:1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit}else t.opacity=n===this?void 0!==i.opacity?i.opacity:"":void 0!==i.opacityExit?i.opacityExit:0;for(let e in eE){if(void 0===i[e])continue;let{correct:r,applyTo:s,isCSSVariable:a}=eE[e],l="none"===o?i[e]:r(i[e],n);if(s){let e=s.length;for(let r=0;r<e;r++)t[s[r]]=l}else a?this.options.visualElement.renderState.vars[e]=l:t[e]=l}this.options.layoutId&&(t.pointerEvents=n===this?eK(null==e?void 0:e.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(t=>{var e;return null==(e=t.currentAnimation)?void 0:e.stop()}),this.root.nodes.forEach(iO),this.root.sharedNodes.clear()}constructor(t={},e=null==r?void 0:r()){this.id=iT++,this.animationId=0,this.animationCommitId=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,to.value&&(ix.nodes=ix.calculatedTargetDeltas=ix.calculatedProjections=0),this.nodes.forEac
1h(iM),this.nodes.forEach(i_),this.nodes.forEach(iV),this.nodes.forEach(ij),to.addProjectionMetrics&&to.addProjectionMetrics(ix)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new n5)}}}function iA(t){t.updateLayout()}function iP(t){var e;let r=(null==(e=t.resumeFrom)?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&r&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:n}=t.layout,{animationType:i}=t.options,o=r.source!==t.layout.source;"size"===i?nO(t=>{let n=o?r.measuredBox[t]:r.layoutBox[t],i=nS(n);n.min=e[t].min,n.max=n.min+i}):iY(i,r.layoutBox,e)&&nO(n=>{let i=o?r.measuredBox[n]:r.layoutBox[n],s=nS(e[n]);i.max=i.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[n].max=t.relativeTarget[n].min+s)});let s=t7();nP(s,e,r.layoutBox);let a=t7();o?nP(a,t.applyTransform(n,!0),r.measuredBox):nP(a,e,r.layoutBox);let l=!ip(s),u=!1;if(!t.resumeFrom){let n=t.getClosestProjectingParent();if(n&&!n.resumeFrom){let{snapshot:i,layout:o}=n;if(i&&o){let s=ee();nI(s,r.layoutBox,i.layoutBox);let a=ee();nI(a,e,o.layoutBox),iy(s,a)||(u=!0),n.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=n)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:r,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function iM(t){to.value&&ix.nodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ij(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function iI(t){t.clearSnapshot()}function iO(t){t.clearMeasurements()}function ik(t){t.isLayoutDirty=!1}function iR(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function iD(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function i_(t){t.resolveTargetDelta()}function iV(t){t.calcProjection()}function iF(t){t.resetSkewAndRotation()}function iL(t){t.removeLeadSnapshot()}function iB(t,e,r){t.translate=x(e.translate,0,r),t.scale=x(e.scale,1,r),t.origin=e.origin,t.originPoint=e.originPoint}function iU(t,e,r,n){t.min=x(e.min,r.min,n),t.max=x(e.max,r.max,n)}function iN(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let iW={duration:.45,ease:[.4,0,.1,1]},iz=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),iq=iz("applewebkit/")&&!iz("chrome/")?Math.round:tr;function iH(t){t.min=iq(t.min),t.max=iq(t.max)}function iY(t,e,r){return"position"===t||"preserve-aspect"===t&&!(.2>=Math.abs(ig(e)-ig(r)))}function iX(t){var e;return t!==t.root&&(null==(e=t.scroll)?void 0:e.wasRoot)}let iG=iS({attachResizeListener:(t,e)=>nx(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),iK={current:void 0},i$=iS({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!iK.current){let t=new iG({});t.mount(window),t.setOptions({layoutScroll:!0}),iK.current=t}return iK.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position});function iZ(t,e){let r=function(t,e,r){if(t instanceof EventTarget)return[t];if("string"==typeof t){let e=document.querySelectorAll(t);return e?Array.from(e):[]}return Array.from(t)}(t),n=new AbortController;return[r,{passive:!0,...e,signal:n.signal},()=>n.abort()]}function iJ(t){return!("touch"===t.pointerType||nw.x||nw.y)}function iQ(t,e,r){let{props:n}=t;t.animationState&&n.whileHover&&t.animationState.setActive("whileHover","Start"===r);let i=n["onHover"+r];i&&ta.postRender(()=>i(e,nT(e)))}let i0=(t,e)=>!!e&&(t===e||i0(t,e.parentElement)),i1=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),i2=ne
1w WeakSet;function i3(t){return e=>{"Enter"===e.key&&t(e)}}function i5(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function i6(t){return nE(t)&&!(nw.x||nw.y)}function i8(t,e,r){let{props:n}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&n.whileTap&&t.animationState.setActive("whileTap","Start"===r);let i=n["onTap"+("End"===r?"":r)];i&&ta.postRender(()=>i(e,nT(e)))}let i4=new WeakMap,i9=new WeakMap,i7=t=>{let e=i4.get(t.target);e&&e(t)},ot=t=>{t.forEach(i7)},oe={some:0,all:1},or=function(t,e){if("undefined"==typeof Proxy)return e5;let r=new Map,n=(r,n)=>e5(r,n,t,e);return new Proxy((t,e)=>n(t,e),{get:(i,o)=>"create"===o?n:(r.has(o)||r.set(o,e5(o,void 0,t,e)),r.get(o))})}({animation:{Feature:class extends ng{updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();es(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null==(t=this.unmountControls)||t.call(this)}constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(e=>{let{animation:r,options:n}=e;return function(t,e){let r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>nh(t,e,n)));else if("string"==typeof e)r=nh(t,e,n);else{let i="function"==typeof e?e6(t,e,n.custom):e;r=Promise.all(nu(t,i,n))}return r.then(()=>{t.notify("AnimationComplete",e)})}(t,r,n)})),r=ny(),n=!0,i=e=>(r,n)=>{var i;let o=e6(t,n,"exit"===e?null==(i=t.presenceContext)?void 0:i.custom:void 0);if(o){let{transition:t,transitionEnd:e,...n}=o;r={...r,...n,...e}}return r};function o(o){let{props:s}=t,a=function t(e){if(!e)return;if(!e.isControllingVariants){let r=e.parent&&t(e.parent)||{};return void 0!==e.props.initial&&(r.initial=e.props.initial),r}let r={};for(let t=0;t<nf;t++){let n=eu[t],i=e.props[n];(ea(i)||!1===i)&&(r[n]=i)}return r}(t.parent)||{},l=[],u=new Set,c={},h=1/0;for(let e=0;e<nm;e++){var d,f;let p=np[e],m=r[p],v=void 0!==s[p]?s[p]:a[p],y=ea(v),g=p===o?m.isActive:null;!1===g&&(h=e);let b=v===a[p]&&v!==s[p]&&y;if(b&&n&&t.manuallyAnimateOnMount&&(b=!1),m.protectedKeys={...c},!m.isActive&&null===g||!v&&!m.prevProp||es(v)||"boolean"==typeof v)continue;let w=(d=m.prevProp,"string"==typeof(f=v)?f!==d:!!Array.isArray(f)&&!nd(f,d)),x=w||p===o&&m.isActive&&!b&&y||e>h&&y,E=!1,T=Array.isArray(v)?v:[v],C=T.reduce(i(p),{});!1===g&&(C={});let{prevResolvedValues:S={}}=m,A={...S,...C},P=e=>{x=!0,u.has(e)&&(E=!0,u.delete(e)),m.needsAnimating[e]=!0;let r=t.getValue(e);r&&(r.liveStyle=!1)};for(let t in A){let e=C[t],r=S[t];if(!c.hasOwnProperty(t))(e4(e)&&e4(r)?nd(e,r):e===r)?void 0!==e&&u.has(t)?P(t):m.protectedKeys[t]=!0:null!=e?P(t):u.add(t)}m.prevProp=v,m.prevResolvedValues=C,m.isActive&&(c={...c,...C}),n&&t.blockInitialAnimation&&(x=!1);let M=b&&w,j=!M||E;x&&j&&l.push(...T.map(e=>{let r={type:p};if("string"==typeof e&&n&&!M&&t.manuallyAnimateOnMount&&t.parent){let{parent:n}=t,i=e6(n,e);if(n.enteringChildren&&i){let{delayChildren:e}=i.transition||{};r.delay=nc(n.enteringChildren,t,e)}}return{animation:e,options:r}}))}if(u.size){let e={};if("boolean"!=typeof s.initial){let r=e6(t,Array.isArray(s.initial)?s.initial[0]:s.initial);r&&r.transition&&(e.transition=r.transition)}u.forEach(r=>{let n=t.getBaseTarget(r),i=t.getValue(r);i&&(i.liveStyle=!0),e[r]=null!=n?n:null}),l.push({animation:e})}let p=!!l.length;return n&&(!1===s.initial||s.initial===s.animate)&&!t.manuallyAnimateOnMount&&(p=!1),n=!1,p?e(l):Promise.resolve()}return{animateChanges:o,setActive:function(e,n){var i;if(r[e].isActive===n)return Promise.resolve();null==(i=t.variantChildren)||i.forEach(t=>{var r;return null==(r=t.animationState)?void 0:r.setActive(e,n)}),r[e].isActive=n;let s=o(e);for(let t in r)r[t].protectedKeys={};return s},setAnimateFunction:function(r){e=r(t)},getState:()=>r,reset:()=>{r=ny(),n=!0}}}(t))}}},exit:{Feature:class extends ng{update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let n=this.node.animationState.setActive("exit",!t);e&&!t&&n.then(()=>
1{e(this.id)})}mount(){let{register:t,onExitComplete:e}=this.node.presenceContext||{};e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}constructor(){super(...arguments),this.id=nb++}}},inView:{Feature:class extends ng{startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:r,amount:n="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:oe[n]},s=t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,i&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),o=e?r:n;o&&o(t)};var a=this.node.current;let l=function(t){let{root:e,...r}=t,n=e||document;i9.has(n)||i9.set(n,{});let i=i9.get(n),o=JSON.stringify(r);return i[o]||(i[o]=new IntersectionObserver(ot,{root:e,...r})),i[o]}(o);return i4.set(a,s),l.observe(a),()=>{i4.delete(a),l.unobserve(a)}}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:r={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==r[t]}(t,e))&&this.startObserver()}unmount(){}constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}}},tap:{Feature:class extends ng{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,i,o]=iZ(t,r),s=t=>{let n=t.currentTarget;if(!i6(t))return;i2.add(n);let o=e(n,t),s=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),i2.has(n)&&i2.delete(n),i6(t)&&"function"==typeof o&&o(t,{success:e})},a=t=>{s(t,n===window||n===document||r.useGlobalTarget||i0(n,t.target))},l=t=>{s(t,!1)};window.addEventListener("pointerup",a,i),window.addEventListener("pointercancel",l,i)};return n.forEach(t=>{(r.useGlobalTarget?window:t).addEventListener("pointerdown",s,i),n1(t)&&"offsetHeight"in t&&(t.addEventListener("focus",t=>((t,e)=>{let r=t.currentTarget;if(!r)return;let n=i3(()=>{if(i2.has(r))return;i5(r,"down");let t=i3(()=>{i5(r,"up")});r.addEventListener("keyup",t,e),r.addEventListener("blur",()=>i5(r,"cancel"),e)});r.addEventListener("keydown",n,e),r.addEventListener("blur",()=>r.removeEventListener("keydown",n),e)})(t,i)),i1.has(t.tagName)||-1!==t.tabIndex||t.hasAttribute("tabindex")||(t.tabIndex=0))}),o}(t,(t,e)=>(i8(this.node,e,"Start"),(t,e)=>{let{success:r}=e;return i8(this.node,t,r?"End":"Cancel")}),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends ng{onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=re(nx(this.node.current,"focus",()=>this.onFocus()),nx(this.node.current,"blur",()=>this.onBlur()))}unmount(){}constructor(){super(...arguments),this.isActive=!1}}},hover:{Feature:class extends ng{mount(){let{current:t}=this.node;t&&(this.unmount=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},[n,i,o]=iZ(t,r),s=t=>{if(!iJ(t))return;let{target:r}=t,n=e(r,t);if("function"!=typeof n||!r)return;let o=t=>{iJ(t)&&(n(t),r.removeEventListener("pointerleave",o))};r.addEventListener("pointerleave",o,i)};return n.forEach(t=>{t.addEventListener("pointerenter",s,i)}),o}(t,(t,e)=>(iQ(this.node,e,"Start"),t=>iQ(this.node,t,"End"))))}unmount(){}}},pan:{Feature:class extends ng{onPointerDown(t){this.session=new nD(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nk(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:nY(t),onStart:nY(e),onMove:r,onEnd:(t,e)=>{delete this.session,n&&ta.postRender(()=>n(t,e))}}}mount(){this.removePointerDownListener=nC(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}constructor(){super(...arguments),this.removePointerDownListener=tr}}},drag:{Feature:class extends ng{mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tr}unmount(){this.removeGroupControls(),this.removeListeners()}constructor(t){super(t),this.removeGroupControls=tr,this.removeListeners=tr,this.controls=new nq(t)}},ProjectionNode:i$,MeasureLayout:nQ},layout:{ProjectionNode:i$,MeasureLayout:nQ}},(t,e)=>e_(t)?new eR(e):new eS(e,{allowProjection:t!==r.Fragment}))}]);

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.