(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5295],{20276:function(t,r,u){t=u.nmd(t);var c,s,l,f,d,m,_="__lodash_hash_undefined__",S=1/0,j="[object Arguments]",k="[object Array]",O="[object Boolean]",E="[object Date]",A="[object Error]",C="[object Function]",x="[object Map]",M="[object Number]",L="[object Object]",I="[object Promise]",z="[object RegExp]",T="[object Set]",N="[object String]",R="[object Symbol]",q="[object WeakMap]",U="[object ArrayBuffer]",$="[object DataView]",F=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,D=/^\w*$/,H=/^\./,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/\\(\\)?/g,B=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,J={};J["[object Float32Array]"]=J["[object Float64Array]"]=J["[object Int8Array]"]=J["[object Int16Array]"]=J["[object Int32Array]"]=J["[object Uint8Array]"]=J["[object Uint8ClampedArray]"]=J["[object Uint16Array]"]=J["[object Uint32Array]"]=!0,J[j]=J[k]=J[U]=J[O]=J[$]=J[E]=J[A]=J[C]=J[x]=J[M]=J[L]=J[z]=J[T]=J[N]=J[q]=!1;var W="object"==typeof u.g&&u.g&&u.g.Object===Object&&u.g,Z="object"==typeof self&&self&&self.Object===Object&&self,G=W||Z||Function("return this")(),X=r&&!r.nodeType&&r,Q=X&&t&&!t.nodeType&&t,Y=Q&&Q.exports===X&&W.process,ee=function(){try{return Y&&Y.binding("util")}catch(t){}}(),et=ee&&ee.isTypedArray;function arrayAggregator(t,r,u,c){for(var s=-1,l=t?t.length:0;++s-1},ListCache.prototype.set=function(t,r){var u=this.__data__,c=assocIndexOf(u,t);return c<0?u.push([t,r]):u[c][1]=r,this},MapCache.prototype.clear=function(){this.__data__={hash:new Hash,map:new(eg||ListCache),string:new Hash}},MapCache.prototype.delete=function(t){return getMapData(this,t).delete(t)},MapCache.prototype.get=function(t){return getMapData(this,t).get(t)},MapCache.prototype.has=function(t){return getMapData(this,t).has(t)},MapCache.prototype.set=function(t,r){return getMapData(this,t).set(t,r),this},SetCache.prototype.add=SetCache.prototype.push=function(t){return this.__data__.set(t,_),this},SetCache.prototype.has=function(t){return this.__data__.has(t)},Stack.prototype.clear=function(){this.__data__=new ListCache},Stack.prototype.delete=function(t){return this.__data__.delete(t)},Stack.prototype.get=function(t){return this.__data__.get(t)},Stack.prototype.has=function(t){return this.__data__.has(t)},Stack.prototype.set=function(t,r){var u=this.__data__;if(u instanceof ListCache){var c=u.__data__;if(!eg||c.length<199)return c.push([t,r]),this;u=this.__data__=new MapCache(c)}return u.set(t,r),this};var baseEach=function(t,r){if(null==t)return t;if(!isArrayLike(t)){var u,s;return u=t,s=r,u&&baseFor(u,s,keys)}for(var l=t.length,f=c?l:-1,d=Object(t);(c?f--:++fd))return!1;var _=l.get(t);if(_&&l.get(r))return _==r;var S=-1,j=!0,k=1&s?new SetCache:void 0;for(l.set(t,r),l.set(r,t);++S-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}function isObject(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function isObjectLike(t){return!!t&&"object"==typeof t}function isSymbol(t){return"symbol"==typeof t||isObjectLike(t)&&es.call(t)==R}var ez=et?function(t){return et(t)}:function(t){return isObjectLike(t)&&isLength(t.length)&&!!J[es.call(t)]};function keys(t){return isArrayLike(t)?function(t,r){var u=eI(t)||isArguments(t)?function(t,r){for(var u=-1,c=Array(t);++u{if(H.current&&D.current){let t=D.current.getBoundingClientRect(),r=H.current.getBoundingClientRect(),c=t.width,s=r.width;("up"===m||"down"===m)&&(c=t.height,s=r.height),u&&c&&s?q(s{if(U&&(V(),H.current&&D.current)){let t=new ResizeObserver(()=>V());return t.observe(D.current),t.observe(H.current),()=>{t&&t.disconnect()}}},[V,D,U]),c.useEffect(()=>{V()},[V,M]),c.useEffect(()=>{$(!0)},[]),c.useEffect(()=>{"function"==typeof x&&x()},[]);let K=c.useMemo(()=>u?T*R/_:TObject.assign(Object.assign({},t),{"--pause-on-hover":!l||f?"paused":"running","--pause-on-click":!l||f&&!d||d?"paused":"running","--width":"up"===m||"down"===m?"100vh":"100%","--transform":"up"===m?"rotate(-90deg)":"down"===m?"rotate(90deg)":"none"}),[t,l,f,d,m]),P=c.useMemo(()=>({"--gradient-color":O,"--gradient-width":"number"==typeof E?`${E}px`:E}),[O,E]),J=c.useMemo(()=>({"--play":l?"running":"paused","--direction":"left"===m?"normal":"reverse","--duration":`${K}s`,"--delay":`${S}s`,"--iteration-count":j?`${j}`:"infinite","--min-width":u?"auto":"100%"}),[l,m,K,S,j,u]),W=c.useMemo(()=>({"--transform":"up"===m?"rotate(90deg)":"down"===m?"rotate(-90deg)":"none"}),[m]),Z=c.useCallback(t=>[...Array(Number.isFinite(t)&&t>=0?t:0)].map((t,r)=>s.default.createElement(c.Fragment,{key:r},c.Children.map(M,t=>s.default.createElement("div",{style:W,className:"rfm-child"},t)))),[W,M]);return U?s.default.createElement("div",{ref:D,style:B,className:"rfm-marquee-container "+r},k&&s.default.createElement("div",{style:P,className:"rfm-overlay"}),s.default.createElement("div",{className:"rfm-marquee",style:J,onAnimationIteration:C,onAnimationEnd:A},s.default.createElement("div",{className:"rfm-initial-child-container",ref:H},c.Children.map(M,t=>s.default.createElement("div",{style:W,className:"rfm-child"},t))),Z(R-1)),s.default.createElement("div",{className:"rfm-marquee",style:J},Z(R))):null});r.Z=l},40275:function(t,r,u){"use strict";let c;u.d(r,{Kx:function(){return w},T:function(){return g},o_:function(){return v}});var s=u(67294);let l=new Uint8Array(16),f=[];for(let t=0;t<256;++t)f.push((t+256).toString(16).slice(1));var d={randomUUID:"u">typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let m=["channel/disconnect","channel/response","channel/heartbeat"],_=["handshake/syn","handshake/syn-ack","handshake/ack"],p=t=>m.some(r=>r===t),h=t=>_.some(r=>r===t),y=({data:t={}})=>"object"==typeof t&&null!==t&&!Array.isArray(t)&&!("domain"in t)&&["id","type","from","to"].every(r=>r in t)&&t.type.startsWith("handshake/");function g(t,r,u){let[m,_]=(0,s.useState)(),[S,j]=(0,s.useState)(!1);(0,s.useEffect)(()=>{if(window.self===window.top&&!window.opener)return;let t=function(t){let r=window.self!==window.top||window.opener,u={buffer:[],id:null,origin:null,source:null,status:"connecting"};function o(r,s){if(h(r)||p(r)||"connecting"!==u.status&&"reconnecting"!==u.status){if(u.id&&u.origin&&u.source){let m={connectionId:u.id,data:s,domain:"sanity/channels",from:t.id,id:function(t,r,u){if(d.randomUUID&&!t)return d.randomUUID();let s=(t=t||{}).random||(t.rng||function(){if(!c&&!(c="u">typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return c(l)})();return s[6]=15&s[6]|64,s[8]=63&s[8]|128,function(t,r=0){return f[t[r+0]]+f[t[r+1]]+f[t[r+2]]+f[t[r+3]]+"-"+f[t[r+4]]+f[t[r+5]]+"-"+f[t[r+6]]+f[t[r+7]]+"-"+f[t[r+8]]+f[t[r+9]]+"-"+f[t[r+10]]+f[t[r+11]]+f[t[r+12]]+f[t[r+13]]+f[t[r+14]]+f[t[r+15]]}(s)}(),to:t.connectTo,type:r};try{u.source.postMessage(m,{targetOrigin:u.origin})}catch{throw Error(`Failed to postMessage '${m.id}' on '${t.id}'`)}}}else u.buffer.push({type:r,data:s})}function i(r){if(y(r))console.error("Visual editing package mismatch detected! Please ensure you are using the latest version of Sanity Studio and any packages listed here:\nhttps://github.com/sanity-io/visual-editing");else if(function(r){let{data:u}=r;return"sanity/channels"===u.domain&&u.to===t.id&&u.from===t.connectTo&&"channel/response"!==u.type}(r)){let{data:t}=r;if(u.origin&&r.origin!==u.origin)return;if(r.source&&u.source!==r.source&&(u.source=r.source),h(t.type)&&t.data){if("handshake/syn"===t.type)return u.origin=r.origin,u.id=t.data.id,a("connecting"),void o("handshake/syn-ack",{id:u.id});if("handshake/ack"===t.type&&t.data.id===u.id)return void a("connected")}else if(t.connectionId===u.id&&r.origin===u.origin){if("channel/disconnect"===t.type)return void a("disconnected");{let r=[t.type,t.data];s.forEach(t=>{t(...r)}),o("channel/response",{responseTo:t.id})}return}}}let s=new Set,m=new Set;function a(t){u.status=t,m.forEach(r=>{r(t)}),"connected"===t&&function(){let t=[...u.buffer];u.buffer.splice(0,u.buffer.length),t.forEach(({type:t,data:r})=>{o(t,r)})}()}return window.addEventListener("message",i,!1),a("connecting"),{destroy:function(){["disconnected"].includes(u.status)||a("disconnected"),s.clear(),m.clear(),window.removeEventListener("message",i,!1)},inFrame:r,send:function(t,r){o(t,r)},subscribe:function(t){return s.add(t),()=>s.delete(t)},onStatusUpdate:function(t){return m.add(t),()=>m.delete(t)}}}({id:"preview-kit",connectTo:"presentation"});t.onStatusUpdate(t=>{"connected"===t?j(!0):"disconnected"===t&&j(!1)});let r=setTimeout(()=>_(t),0);return()=>{clearTimeout(r),t.destroy(),_(void 0)}},[u,r]);let k=JSON.stringify(Array.from(t.keys()));(0,s.useEffect)(()=>{"[]"!==k&&m&&S&&m.send("preview-kit/documents",{projectId:r,dataset:u,perspective:"previewDrafts",documents:Array.from(t.values())})},[k,m,S,u,t,r])}function w(t){let r=(0,s.useMemo)(()=>JSON.stringify(t||{}),[t]);return(0,s.useMemo)(()=>JSON.parse(r),[r])}function v(t){let{refreshInterval:r}=t,u=function(){let[t,r]=(0,s.useState)(!1);(0,s.useEffect)(()=>{r(navigator.onLine);let e=()=>r(!0),n=()=>r(!1);return window.addEventListener("online",e),window.addEventListener("offline",n),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}},[]);let u=(0,s.useSyncExternalStore)(b,()=>document.visibilityState,()=>"hidden");return!t||"hidden"===u}(),[c,l]=(0,s.useState)("hit"),f=(0,s.useCallback)(()=>(l("inflight"),()=>l("hit")),[]);return(0,s.useEffect)(()=>{if(!r||"hit"!==c)return;let t=setTimeout(()=>l("stale"),r);return()=>clearTimeout(t)},[r,c]),(0,s.useEffect)(()=>{if("hit"!==c)return;let e=()=>l("stale");return window.addEventListener("focus",e),()=>window.removeEventListener("focus",e)},[r,c]),(0,s.useEffect)(()=>{u&&"hit"===c&&l("stale"),u||"stale"!==c||l("refresh")},[u,c]),[c,f]}function b(t){return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)}},80684:function(t,r,u){"use strict";u.d(r,{d:function(){return s}});var c=u(67294);let s=(0,c.createContext)(null)},74356:function(t,r,u){"use strict";u.d(r,{Ji:function(){return C},yR:function(){return g}});var c,s,l=u(40275),f=u(67294),d=u(80684),m="u">typeof Element,_="function"==typeof Map,S="function"==typeof Set,j="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView,k=(c=function(t,r){try{return function v(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){var u,c,s,l;if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((u=t.length)!=r.length)return!1;for(c=u;0!=c--;)if(!v(t[c],r[c]))return!1;return!0}if(_&&t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!r.has(c.value[0]))return!1;for(l=t.entries();!(c=l.next()).done;)if(!v(c.value[1],r.get(c.value[0])))return!1;return!0}if(S&&t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!r.has(c.value[0]))return!1;return!0}if(j&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((u=t.length)!=r.length)return!1;for(c=u;0!=c--;)if(t[c]!==r[c])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf&&"function"==typeof t.valueOf&&"function"==typeof r.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString&&"function"==typeof t.toString&&"function"==typeof r.toString)return t.toString()===r.toString();if((u=(s=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(c=u;0!=c--;)if(!Object.prototype.hasOwnProperty.call(r,s[c]))return!1;if(m&&t instanceof Element)return!1;for(c=u;0!=c--;)if(("_owner"!==s[c]&&"__v"!==s[c]&&"__o"!==s[c]||!t.$$typeof)&&!v(t[s[c]],r[s[c]]))return!1;return!0}return t!=t&&r!=r}(t,r)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}).__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c,O={exports:{}},E={};/** * @license React * use-sync-external-store-with-selector.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */O.exports=function(){if(s)return E;s=1;var t="function"==typeof Object.is?Object.is:function(t,r){return t===r&&(0!==t||1/t==1/r)||t!=t&&r!=r},r=f.useSyncExternalStore,u=f.useRef,c=f.useEffect,l=f.useMemo,d=f.useDebugValue;return E.useSyncExternalStoreWithSelector=function(s,f,m,_,S){var j=u(null);if(null===j.current){var k={hasValue:!1,value:null};j.current=k}else k=j.current;var O=r(s,(j=l(function(){function e(s){if(!c){if(c=!0,r=s,s=_(s),void 0!==S&&k.hasValue){var l=k.value;if(S(l,s))return u=l}return u=s}if(l=u,t(r,s))return l;var f=_(s);return void 0!==S&&S(l,f)?l:(r=s,u=f)}var r,u,c=!1,s=void 0===m?null:m;return[function(){return e(f())},null===s?void 0:function(){return e(s())}]},[f,m,_,S]))[0],j[1]);return c(function(){k.hasValue=!0,k.value=O},[O]),d(O),O},E}();var A=O.exports;function g(t,r,u,c){let{isEqual:s=k}=c||{},m=(0,f.useContext)(d.d),_=(0,l.Kx)(u),S=(0,f.useMemo)(()=>({subscribe:()=>()=>{},getSnapshot:()=>t}),[t]),j=(0,f.useMemo)(()=>(null==m?void 0:m(t,r,_))||{subscribe:()=>()=>{},getSnapshot:()=>t},[m,t,_,r]),[O]=(0,f.useState)(()=>{if(void 0===t)throw Error("initialSnapshot can't be undefined, if you don't want an initial value use null instead");try{return JSON.parse(JSON.stringify(t))}catch(r){return console.warn("Failed to deep clone initialSnapshot, this is likely an error and an indication that the snapshot isn't JSON serializable",{initialSnapshot:t,error:r}),t}}),E=(0,f.useCallback)(()=>O,[O]),C=(0,f.useCallback)(t=>t,[]),x=A.useSyncExternalStoreWithSelector((null==j?void 0:j.subscribe)||S.subscribe,(null==j?void 0:j.getSnapshot)||S.getSnapshot,E,C,s),M=null!==m;return[x,M&&O===x,M]}let C=(0,f.lazy)(()=>u.e(6166).then(u.bind(u,46166)))},34764:function(t,r,u){"use strict";function groq(t,...r){let u=t.length-1;return t.slice(0,u).reduce((t,u,c)=>t+u+r[c],"")+t[u]}u.d(r,{Z:function(){return groq}})}}]);