(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[482],{69206:function(t,e,n){"use strict";e.Z=void 0;var i=a(n(67294)),r=a(n(63494));function a(t){return t&&t.__esModule?t:{default:t}}let o=t=>i.default.createElement(r.default,Object.assign({dangerouslySetGlyph:''},t));o.displayName="DeleteIcon",e.Z=o},55417:function(t,e,n){"use strict";e.Z=void 0;var i=a(n(67294)),r=a(n(63494));function a(t){return t&&t.__esModule?t:{default:t}}let o=t=>i.default.createElement(r.default,Object.assign({dangerouslySetGlyph:''},t));o.displayName="VideoPauseOverlayIcon",e.Z=o},95209:function(t,e,n){"use strict";e.Z=void 0;var i=a(n(67294)),r=a(n(63494));function a(t){return t&&t.__esModule?t:{default:t}}let o=t=>i.default.createElement(r.default,Object.assign({dangerouslySetGlyph:''},t));o.displayName="VideoPlayOverlayIcon",e.Z=o},48243:function(t,e,n){"use strict";n.d(e,{q:function(){return a}});var i=n(5268),r=n(67294);function a(t){return r.createElement("svg",(0,i.i)({viewBox:"0 0 24 24",fill:"none"},t),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12a1 1 0 011-1h14a1 1 0 110 2H5a1 1 0 01-1-1z",fill:"currentColor"}),r.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.293 7.293a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L17.586 12l-3.293-3.293a1 1 0 010-1.414z",fill:"currentColor"}))}},68585:function(t,e,n){"use strict";n.d(e,{T:function(){return a}});var i=n(55417),r=n(67294);function a(){return r.createElement(i.Z,{label:"",testId:"ads-refreshed-icon"})}n(5268)},14834:function(t,e,n){"use strict";n.d(e,{y:function(){return a}});var i=n(95209),r=n(67294);function a(){return r.createElement(i.Z,{label:"",testId:"ads-refreshed-icon"})}n(5268)},47811:function(t,e,n){"use strict";n.d(e,{z:function(){return a}});var i=n(69206),r=n(67294);function a(){return r.createElement(i.Z,{label:"",testId:"ads-refreshed-icon"})}n(5268)},68133:function(t,e,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r=Object.assign||function(t){for(var e=1;e1?e-1:0),i=1;it.height),c(v,this.animationStateClasses.animatingToHeightZero,0===E.height),c(v,this.animationStateClasses.animatingToHeightAuto,"auto"===E.height),c(v,this.animationStateClasses.animatingToHeightSpecific,E.height>0),v)),T=this.getStaticStateClasses(E.height);(this.setState({animationStateClasses:O,height:w,overflow:"hidden",shouldUseTransitions:!C}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),C)?(E.shouldUseTransitions=!0,p(this.animationFrameIDs),this.animationFrameIDs=(d=function(){n.setState(E),y(o,{newHeight:E.height})},(h=[])[0]=requestAnimationFrame(function(){h[1]=requestAnimationFrame(function(){d()})}),h),this.animationClassesTimeoutID=setTimeout(function(){n.setState({animationStateClasses:T,shouldUseTransitions:!1}),n.hideContent(E.height),y(a,{newHeight:E.height})},b)):(y(o,{newHeight:w}),this.timeoutID=setTimeout(function(){E.animationStateClasses=T,E.shouldUseTransitions=!1,n.setState(E),"auto"!==r&&n.hideContent(w),y(a,{newHeight:w})},b))}}},{key:"componentWillUnmount",value:function(){p(this.animationFrameIDs),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),this.timeoutID=null}},{key:"getTimings",value:function(){if(this.prefersReducedMotion)return{delay:0,duration:0};var t=this.props;return{delay:t.delay,duration:t.duration}}},{key:"showContent",value:function(t){0===t&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(t){0===t&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(t){var e;return(0,u.default)((c(e={},this.animationStateClasses.static,!0),c(e,this.animationStateClasses.staticHeightZero,0===t),c(e,this.animationStateClasses.staticHeightSpecific,t>0),c(e,this.animationStateClasses.staticHeightAuto,"auto"===t),e))}},{key:"render",value:function(){var t,e=this,n=this.props,i=n.animateOpacity,a=n.applyInlineTransitions,s=n.children,l=n.className,f=n.contentClassName,p=n.easing,m=n.id,g=n.style,y=this.state,v=y.height,S=y.overflow,b=y.animationStateClasses,w=y.shouldUseTransitions,E=this.getTimings(),C=E.duration,O=E.delay,T=r({},g,{height:v,overflow:S||g.overflow});w&&a&&(T.transition="height "+C+"ms "+p+" "+O+"ms",g.transition&&(T.transition=g.transition+", "+T.transition),T.WebkitTransition=T.transition);var k={};i&&(k.transition="opacity "+C+"ms "+p+" "+O+"ms",k.WebkitTransition=k.transition,0===v&&(k.opacity=0));var j=(0,u.default)((c(t={},b,!0),c(t,l,l),t)),I=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===v;return o.default.createElement("div",r({},h.apply(void 0,[this.props].concat(d)),{"aria-hidden":I,className:j,id:m,style:T}),o.default.createElement("div",{className:f,style:k,ref:function(t){return e.contentElement=t}},s))}}]),e}(o.default.Component);v.propTypes={"aria-hidden":s.default.bool,animateOpacity:s.default.bool,animationStateClasses:s.default.object,applyInlineTransitions:s.default.bool,children:s.default.any.isRequired,className:s.default.string,contentClassName:s.default.string,delay:s.default.number,duration:s.default.number,easing:s.default.string,height:function(t,e,n){var r=t[e];return"number"==typeof r&&r>=0||g(r)||"auto"===r?null:TypeError('value "'+r+'" of type "'+(void 0===r?"undefined":i(r))+'" is invalid type for '+e+" in "+n+'. It needs to be a positive number, string "auto" or percentage string (e.g. "15%").')},id:s.default.string,onAnimationEnd:s.default.func,onAnimationStart:s.default.func,style:s.default.object},v.defaultProps={animateOpacity:!1,animationStateClasses:f,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},e.Z=v},54306:function(t,e){var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var t=[],e=0;etypeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let u=["channel/disconnect","channel/response","channel/heartbeat"],l=["handshake/syn","handshake/syn-ack","handshake/ack"],c=t=>u.some(e=>e===t),f=t=>l.some(e=>e===t),d=({data:t={}})=>"object"==typeof t&&null!==t&&!Array.isArray(t)&&!("domain"in t)&&["id","type","from","to"].every(e=>e in t)&&t.type.startsWith("handshake/");function h(t,e,n){let[u,l]=(0,r.useState)(),[h,p]=(0,r.useState)(!1);(0,r.useEffect)(()=>{if(window.self===window.top&&!window.opener)return;let t=function(t){let e=window.self!==window.top||window.opener,n={buffer:[],id:null,origin:null,source:null,status:"connecting"};function r(e,r){if(f(e)||c(e)||"connecting"!==n.status&&"reconnecting"!==n.status){if(n.id&&n.origin&&n.source){let u={connectionId:n.id,data:r,domain:"sanity/channels",from:t.id,id:function(t,e,n){if(s.randomUUID&&!t)return s.randomUUID();let r=(t=t||{}).random||(t.rng||function(){if(!i&&!(i="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 i(a)})();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(t,e=0){return o[t[e+0]]+o[t[e+1]]+o[t[e+2]]+o[t[e+3]]+"-"+o[t[e+4]]+o[t[e+5]]+"-"+o[t[e+6]]+o[t[e+7]]+"-"+o[t[e+8]]+o[t[e+9]]+"-"+o[t[e+10]]+o[t[e+11]]+o[t[e+12]]+o[t[e+13]]+o[t[e+14]]+o[t[e+15]]}(r)}(),to:t.connectTo,type:e};try{n.source.postMessage(u,{targetOrigin:n.origin})}catch{throw Error(`Failed to postMessage '${u.id}' on '${t.id}'`)}}}else n.buffer.push({type:e,data:r})}function u(e){if(d(e))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(e){let{data:n}=e;return"sanity/channels"===n.domain&&n.to===t.id&&n.from===t.connectTo&&"channel/response"!==n.type}(e)){let{data:t}=e;if(n.origin&&e.origin!==n.origin)return;if(e.source&&n.source!==e.source&&(n.source=e.source),f(t.type)&&t.data){if("handshake/syn"===t.type)return n.origin=e.origin,n.id=t.data.id,p("connecting"),void r("handshake/syn-ack",{id:n.id});if("handshake/ack"===t.type&&t.data.id===n.id)return void p("connected")}else if(t.connectionId===n.id&&e.origin===n.origin){if("channel/disconnect"===t.type)return void p("disconnected");{let e=[t.type,t.data];l.forEach(t=>{t(...e)}),r("channel/response",{responseTo:t.id})}return}}}let l=new Set,h=new Set;function p(t){n.status=t,h.forEach(e=>{e(t)}),"connected"===t&&function(){let t=[...n.buffer];n.buffer.splice(0,n.buffer.length),t.forEach(({type:t,data:e})=>{r(t,e)})}()}return window.addEventListener("message",u,!1),p("connecting"),{destroy:function(){["disconnected"].includes(n.status)||p("disconnected"),l.clear(),h.clear(),window.removeEventListener("message",u,!1)},inFrame:e,send:function(t,e){r(t,e)},subscribe:function(t){return l.add(t),()=>l.delete(t)},onStatusUpdate:function(t){return h.add(t),()=>h.delete(t)}}}({id:"preview-kit",connectTo:"presentation"});t.onStatusUpdate(t=>{"connected"===t?p(!0):"disconnected"===t&&p(!1)});let e=setTimeout(()=>l(t),0);return()=>{clearTimeout(e),t.destroy(),l(void 0)}},[n,e]);let m=JSON.stringify(Array.from(t.keys()));(0,r.useEffect)(()=>{"[]"!==m&&u&&h&&u.send("preview-kit/documents",{projectId:e,dataset:n,perspective:"previewDrafts",documents:Array.from(t.values())})},[m,u,h,n,t,e])}function p(t){let e=(0,r.useMemo)(()=>JSON.stringify(t||{}),[t]);return(0,r.useMemo)(()=>JSON.parse(e),[e])}function m(t){let{refreshInterval:e}=t,n=function(){let[t,e]=(0,r.useState)(!1);(0,r.useEffect)(()=>{e(navigator.onLine);let t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t),window.addEventListener("offline",n),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}},[]);let n=(0,r.useSyncExternalStore)(g,()=>document.visibilityState,()=>"hidden");return!t||"hidden"===n}(),[i,a]=(0,r.useState)("hit"),o=(0,r.useCallback)(()=>(a("inflight"),()=>a("hit")),[]);return(0,r.useEffect)(()=>{if(!e||"hit"!==i)return;let t=setTimeout(()=>a("stale"),e);return()=>clearTimeout(t)},[e,i]),(0,r.useEffect)(()=>{if("hit"!==i)return;let t=()=>a("stale");return window.addEventListener("focus",t),()=>window.removeEventListener("focus",t)},[e,i]),(0,r.useEffect)(()=>{n&&"hit"===i&&a("stale"),n||"stale"!==i||a("refresh")},[n,i]),[i,o]}function g(t){return document.addEventListener("visibilitychange",t),()=>document.removeEventListener("visibilitychange",t)}},80684:function(t,e,n){"use strict";n.d(e,{d:function(){return i}});let i=(0,n(67294).createContext)(null)},74356:function(t,e,n){"use strict";n.d(e,{Ji:function(){return y},yR:function(){return g}});var i,r,a=n(40275),o=n(67294),s=n(80684),u="u">typeof Element,l="function"==typeof Map,c="function"==typeof Set,f="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView,d=(i=function(t,e){try{return function t(e,n){if(e===n)return!0;if(e&&n&&"object"==typeof e&&"object"==typeof n){var i,r,a,o;if(e.constructor!==n.constructor)return!1;if(Array.isArray(e)){if((i=e.length)!=n.length)return!1;for(r=i;0!=r--;)if(!t(e[r],n[r]))return!1;return!0}if(l&&e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!n.has(r.value[0]))return!1;for(o=e.entries();!(r=o.next()).done;)if(!t(r.value[1],n.get(r.value[0])))return!1;return!0}if(c&&e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(o=e.entries();!(r=o.next()).done;)if(!n.has(r.value[0]))return!1;return!0}if(f&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(n)){if((i=e.length)!=n.length)return!1;for(r=i;0!=r--;)if(e[r]!==n[r])return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf&&"function"==typeof e.valueOf&&"function"==typeof n.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString&&"function"==typeof e.toString&&"function"==typeof n.toString)return e.toString()===n.toString();if((i=(a=Object.keys(e)).length)!==Object.keys(n).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,a[r]))return!1;if(u&&e instanceof Element)return!1;for(r=i;0!=r--;)if(("_owner"!==a[r]&&"__v"!==a[r]&&"__o"!==a[r]||!e.$$typeof)&&!t(e[a[r]],n[a[r]]))return!1;return!0}return e!=e&&n!=n}(t,e)}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(i,"default")?i.default:i,h={exports:{}},p={};h.exports=function(){if(r)return p;r=1;var t="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},e=o.useSyncExternalStore,n=o.useRef,i=o.useEffect,a=o.useMemo,s=o.useDebugValue;return p.useSyncExternalStoreWithSelector=function(r,o,u,l,c){var f=n(null);if(null===f.current){var d={hasValue:!1,value:null};f.current=d}else d=f.current;var h=e(r,(f=a(function(){function e(e){if(!r){if(r=!0,n=e,e=l(e),void 0!==c&&d.hasValue){var a=d.value;if(c(a,e))return i=a}return i=e}if(a=i,t(n,e))return a;var o=l(e);return void 0!==c&&c(a,o)?a:(n=e,i=o)}var n,i,r=!1,a=void 0===u?null:u;return[function(){return e(o())},null===a?void 0:function(){return e(a())}]},[o,u,l,c]))[0],f[1]);return i(function(){d.hasValue=!0,d.value=h},[h]),s(h),h},p}();var m=h.exports;function g(t,e,n,i){let{isEqual:r=d}=i||{},u=(0,o.useContext)(s.d),l=(0,a.Kx)(n),c=(0,o.useMemo)(()=>({subscribe:()=>()=>{},getSnapshot:()=>t}),[t]),f=(0,o.useMemo)(()=>(null==u?void 0:u(t,e,l))||{subscribe:()=>()=>{},getSnapshot:()=>t},[u,t,l,e]),[h]=(0,o.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(e){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:e}),t}}),p=(0,o.useCallback)(()=>h,[h]),g=(0,o.useCallback)(t=>t,[]),y=m.useSyncExternalStoreWithSelector((null==f?void 0:f.subscribe)||c.subscribe,(null==f?void 0:f.getSnapshot)||c.getSnapshot,p,g,r),v=null!==u;return[y,v&&h===y,v]}let y=(0,o.lazy)(()=>n.e(6166).then(n.bind(n,46166)))},34764:function(t,e,n){"use strict";function i(t,...e){let n=t.length-1;return t.slice(0,n).reduce((t,n,i)=>t+n+e[i],"")+t[n]}n.d(e,{Z:function(){return i}})}}]);