(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3295],{99988:function(e,t,n){"use strict";var i=n(67294);t.Z=function(e){return i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 12a1 1 0 011-1h14a1 1 0 110 2H5a1 1 0 01-1-1z",fill:"currentColor"}),i.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"}))}},94384:function(e,t,n){"use strict";var i=n(67294);t.Z=function(e){return i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.188 5C6.979 5 6 5.98 6 7.188v9.625a2.188 2.188 0 004.375 0V7.188C10.375 5.979 9.395 5 8.187 5zm7.874 0c-1.208 0-2.187.98-2.187 2.188v9.625a2.188 2.188 0 004.375 0V7.188C18.25 5.979 17.27 5 16.062 5z",fill:"currentColor"}))}},9678:function(e,t,n){"use strict";var i=n(67294);t.Z=function(e){return i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none"},e),i.createElement("path",{d:"M6 6.134v11.732c0 .895 1.03 1.438 1.822.951l9.628-5.866c.733-.441.733-1.46 0-1.914L7.822 5.183C7.029 4.696 6 5.239 6 6.134z",fill:"currentColor"}))}},73084:function(e,t,n){"use strict";var i=n(67294);t.Z=function(e){return i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none"},e),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 7.2a1 1 0 011-1h14.4a1 1 0 110 2H5a1 1 0 01-1-1z",fill:"currentColor"}),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6 5a.6.6 0 00-.6.6v.6h4.4v-.6a.6.6 0 00-.6-.6h-3.2zm5.8 1.2v-.6A2.6 2.6 0 0013.8 3h-3.2A2.6 2.6 0 008 5.6v.6H6.6a1 1 0 00-1 1v11.2A2.6 2.6 0 008.2 21h8a2.6 2.6 0 002.6-2.6V7.2a1 1 0 00-1-1h-1.4zm-8.8 2v10.2a.6.6 0 00.6.6h8a.6.6 0 00.6-.6V8.2H7.6z",fill:"currentColor"}),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.6 10.2a1 1 0 011 1V16a1 1 0 11-2 0v-4.8a1 1 0 011-1zM13.8 10.2a1 1 0 011 1V16a1 1 0 01-2 0v-4.8a1 1 0 011-1z",fill:"currentColor"}))}},50145:function(e,t,n){"use strict";var i=n(24043),r=n(82729),o=n(67294),a=n(63097),s=n(84863),u=n(66013),l=n(62372),c=n(91033),f=n(31666),d=n(34383);function h(){var e=(0,r._)(["\n background-color: ",";\n color: ",";\n ",";\n ",";\n ",";\n ",";\n ",";\n z-index: 1100;\n padding: "," ",";\n z-index: ",";\n"]);return h=function(){return e},e}function p(){var e=(0,r._)(["\n background-color: ",";\n border-radius: 3px;\n color: ",";\n ",";\n ",";\n padding-left: ",";\n padding-right: ",";\n"]);return p=function(){return e},e}function m(){var e=(0,r._)(["\n display: ",";\n ",";\n &:focus-visible {\n // Note: 0px solid transparent prevents focus rings from disappearing for -ms-high-contrast.\n // TODO(LNS-183): Provide more robust polyfill/support for :focus for older versions of Safari, which don't support :focus-visible\n outline: 0px solid transparent;\n box-shadow: var(--lns-formFieldBorderShadowFocus);\n }\n"]);return m=function(){return e},e}var g=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);rt.indexOf(i[r])&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]]);return n},v={topLeft:"top-start",topCenter:"top-center",topRight:"top-end",bottomLeft:"bottom-start",bottomCenter:"bottom-center",bottomRight:"bottom-end",leftTop:"left-start",leftCenter:"left-center",leftBottom:"left-end",rightTop:"right-start",rightCenter:"right-center",rightBottom:"right-end"},y=d.iH.small.fontSize*d.iH.small.lineHeight,b=f.Z.div(h(),(0,u.Rv)("background"),(0,u.Rv)("body"),(0,u.H5)("large"),(0,u.On)("bold"),(0,u.y3)("small"),(0,u.Xj)("medium"),function(e){return(0,u.ap)("max-width",e.maxWidth)},(0,u.u)((4-y)/2),(0,u.u)(1.5),function(e){return e.zIndex}),S=f.Z.div(p(),(0,u.Rv)("backgroundActive"),(0,u.Rv)("grey3"),(0,u.On)("bold"),(0,u.y3)("small"),(0,u.u)(.5),(0,u.u)(.5)),w=function(e){var t=e.children;return o.createElement(S,null,t)},E=function(e){var t=e.children,n=e.maxWidth,i=e.onMouseEnter,r=e.onMouseLeave,a=e.layerProps,s=e.zIndex,u=g(e,["children","maxWidth","onMouseEnter","onMouseLeave","layerProps","zIndex"]);return o.createElement(b,Object.assign({"data-lens-theme":"dark",maxWidth:n,onMouseEnter:i,onMouseLeave:r,zIndex:s},a,u),t)},O=f.Z.div(m(),function(e){return e.isInline?"inline-block":"block"},function(e){return e.verticalAlign&&"vertical-align: ".concat(e.verticalAlign)});Object.keys(v),t.ZP=function(e){var t=e.children,n=e.content,r=e.shortcut,u=e.placement,f=e.keepOpen,d=e.triggerOffset,h=e.maxWidth,p=e.isInline,m=e.isDisabled,y=e.container,b=e.tabIndex,S=e.zIndex,C=e.verticalAlign,k=e.delay,x=g(e,["children","content","shortcut","placement","keepOpen","triggerOffset","maxWidth","isInline","isDisabled","container","tabIndex","zIndex","verticalAlign","delay"]),T=(0,i._)((0,l.XI)({delayEnter:function(e){switch(e){case"immediate":default:return 200;case"long":return 800}}(void 0===k?"immediate":k),delayLeave:200}),2),j=T[0],I=T[1],A=(0,i._)((0,o.useState)(!1),2),M=A[0],z=A[1],R=(0,i._)((0,o.useState)(!1),2),_=R[0],D=R[1],H=(0,o.useRef)(),L=!n||m;(0,o.useEffect)(function(){if(L){D(!1);return}var e=M&&f;(j||e)&&D(!0),j||e||D(!1)},[n,m,M,L,f,D,j]);var U=function(){D(!1)};(0,o.useEffect)(function(){if(_){var e=function(e){"Escape"===e.key&&(e.preventDefault(),U())};return window.addEventListener("keydown",e),function(){window.removeEventListener("keydown",e)}}},[_,D]);var P=(0,l.sJ)({isOpen:_,placement:v[void 0===u?"topCenter":u],ResizeObserver:c.Z,triggerOffset:void 0===d?4:d,container:y,auto:!0}),N=P.layerProps,Z=P.triggerProps,V=P.renderLayer;return o.createElement(o.Fragment,null,o.createElement(O,Object.assign({},Z,I,{onFocus:function(){L||D(!0)},onBlur:U,isInline:void 0===p||p,verticalAlign:void 0===C?"middle":C,tabIndex:L?-1:void 0===b?0:b,ref:(0,l.lq)(Z.ref,H)}),t),_&&V(o.createElement("div",Object.assign({},N,{style:Object.assign(Object.assign({},N.style),{zIndex:void 0===S?1100:S})}),o.createElement(E,Object.assign({maxWidth:void 0===h?26:h,onMouseEnter:function(){return z(!0)},onMouseLeave:function(){return z(!1)}},x),o.createElement(a.Z,{gap:"small"},o.createElement(s.ZP,{size:"small",fontWeight:"bold"},n),r&&o.createElement(a.Z,{gap:"xsmall"},r.map(function(e,t){return o.createElement(w,{key:t},e)})))))))}},68133:function(e,t,n){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=Object.assign||function(e){for(var t=1;t1?t-1:0),i=1;ie.height),c(y,this.animationStateClasses.animatingToHeightZero,0===E.height),c(y,this.animationStateClasses.animatingToHeightAuto,"auto"===E.height),c(y,this.animationStateClasses.animatingToHeightSpecific,E.height>0),y)),k=this.getStaticStateClasses(E.height);(this.setState({animationStateClasses:C,height:w,overflow:"hidden",shouldUseTransitions:!O}),clearTimeout(this.timeoutID),clearTimeout(this.animationClassesTimeoutID),O)?(E.shouldUseTransitions=!0,p(this.animationFrameIDs),this.animationFrameIDs=(d=function(){n.setState(E),v(a,{newHeight:E.height})},(h=[])[0]=requestAnimationFrame(function(){h[1]=requestAnimationFrame(function(){d()})}),h),this.animationClassesTimeoutID=setTimeout(function(){n.setState({animationStateClasses:k,shouldUseTransitions:!1}),n.hideContent(E.height),v(o,{newHeight:E.height})},S)):(v(a,{newHeight:w}),this.timeoutID=setTimeout(function(){E.animationStateClasses=k,E.shouldUseTransitions=!1,n.setState(E),"auto"!==r&&n.hideContent(w),v(o,{newHeight:w})},S))}}},{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 e=this.props;return{delay:e.delay,duration:e.duration}}},{key:"showContent",value:function(e){0===e&&(this.contentElement.style.display="")}},{key:"hideContent",value:function(e){0===e&&(this.contentElement.style.display="none")}},{key:"getStaticStateClasses",value:function(e){var t;return(0,u.default)((c(t={},this.animationStateClasses.static,!0),c(t,this.animationStateClasses.staticHeightZero,0===e),c(t,this.animationStateClasses.staticHeightSpecific,e>0),c(t,this.animationStateClasses.staticHeightAuto,"auto"===e),t))}},{key:"render",value:function(){var e,t=this,n=this.props,i=n.animateOpacity,o=n.applyInlineTransitions,s=n.children,l=n.className,f=n.contentClassName,p=n.easing,m=n.id,g=n.style,v=this.state,y=v.height,b=v.overflow,S=v.animationStateClasses,w=v.shouldUseTransitions,E=this.getTimings(),O=E.duration,C=E.delay,k=r({},g,{height:y,overflow:b||g.overflow});w&&o&&(k.transition="height "+O+"ms "+p+" "+C+"ms",g.transition&&(k.transition=g.transition+", "+k.transition),k.WebkitTransition=k.transition);var x={};i&&(x.transition="opacity "+O+"ms "+p+" "+C+"ms",x.WebkitTransition=x.transition,0===y&&(x.opacity=0));var T=(0,u.default)((c(e={},S,!0),c(e,l,l),e)),j=void 0!==this.props["aria-hidden"]?this.props["aria-hidden"]:0===y;return a.default.createElement("div",r({},h.apply(void 0,[this.props].concat(d)),{"aria-hidden":j,className:T,id:m,style:k}),a.default.createElement("div",{className:f,style:x,ref:function(e){return t.contentElement=e}},s))}}]),t}(a.default.Component);y.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(e,t,n){var r=e[t];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 '+t+" 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},y.defaultProps={animateOpacity:!1,animationStateClasses:f,applyInlineTransitions:!0,duration:250,delay:0,easing:"ease",style:{}},t.Z=y},54306:function(e,t){var n;!function(){"use strict";var i={}.hasOwnProperty;function r(){for(var e=[],t=0;ttypeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let u=["channel/disconnect","channel/response","channel/heartbeat"],l=["handshake/syn","handshake/syn-ack","handshake/ack"],c=e=>u.some(t=>t===e),f=e=>l.some(t=>t===e),d=({data:e={}})=>"object"==typeof e&&null!==e&&!Array.isArray(e)&&!("domain"in e)&&["id","type","from","to"].every(t=>t in e)&&e.type.startsWith("handshake/");function h(e,t,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 e=function(e){let t=window.self!==window.top||window.opener,n={buffer:[],id:null,origin:null,source:null,status:"connecting"};function r(t,r){if(f(t)||c(t)||"connecting"!==n.status&&"reconnecting"!==n.status){if(n.id&&n.origin&&n.source){let u={connectionId:n.id,data:r,domain:"sanity/channels",from:e.id,id:function(e,t,n){if(s.randomUUID&&!e)return s.randomUUID();let r=(e=e||{}).random||(e.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(o)})();return r[6]=15&r[6]|64,r[8]=63&r[8]|128,function(e,t=0){return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]}(r)}(),to:e.connectTo,type:t};try{n.source.postMessage(u,{targetOrigin:n.origin})}catch{throw Error(`Failed to postMessage '${u.id}' on '${e.id}'`)}}}else n.buffer.push({type:t,data:r})}function u(t){if(d(t))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(t){let{data:n}=t;return"sanity/channels"===n.domain&&n.to===e.id&&n.from===e.connectTo&&"channel/response"!==n.type}(t)){let{data:e}=t;if(n.origin&&t.origin!==n.origin)return;if(t.source&&n.source!==t.source&&(n.source=t.source),f(e.type)&&e.data){if("handshake/syn"===e.type)return n.origin=t.origin,n.id=e.data.id,p("connecting"),void r("handshake/syn-ack",{id:n.id});if("handshake/ack"===e.type&&e.data.id===n.id)return void p("connected")}else if(e.connectionId===n.id&&t.origin===n.origin){if("channel/disconnect"===e.type)return void p("disconnected");{let t=[e.type,e.data];l.forEach(e=>{e(...t)}),r("channel/response",{responseTo:e.id})}return}}}let l=new Set,h=new Set;function p(e){n.status=e,h.forEach(t=>{t(e)}),"connected"===e&&function(){let e=[...n.buffer];n.buffer.splice(0,n.buffer.length),e.forEach(({type:e,data:t})=>{r(e,t)})}()}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:t,send:function(e,t){r(e,t)},subscribe:function(e){return l.add(e),()=>l.delete(e)},onStatusUpdate:function(e){return h.add(e),()=>h.delete(e)}}}({id:"preview-kit",connectTo:"presentation"});e.onStatusUpdate(e=>{"connected"===e?p(!0):"disconnected"===e&&p(!1)});let t=setTimeout(()=>l(e),0);return()=>{clearTimeout(t),e.destroy(),l(void 0)}},[n,t]);let m=JSON.stringify(Array.from(e.keys()));(0,r.useEffect)(()=>{"[]"!==m&&u&&h&&u.send("preview-kit/documents",{projectId:t,dataset:n,perspective:"previewDrafts",documents:Array.from(e.values())})},[m,u,h,n,e,t])}function p(e){let t=(0,r.useMemo)(()=>JSON.stringify(e||{}),[e]);return(0,r.useMemo)(()=>JSON.parse(t),[t])}function m(e){let{refreshInterval:t}=e,n=function(){let[e,t]=(0,r.useState)(!1);(0,r.useEffect)(()=>{t(navigator.onLine);let e=()=>t(!0),n=()=>t(!1);return window.addEventListener("online",e),window.addEventListener("offline",n),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",n)}},[]);let n=(0,r.useSyncExternalStore)(g,()=>document.visibilityState,()=>"hidden");return!e||"hidden"===n}(),[i,o]=(0,r.useState)("hit"),a=(0,r.useCallback)(()=>(o("inflight"),()=>o("hit")),[]);return(0,r.useEffect)(()=>{if(!t||"hit"!==i)return;let e=setTimeout(()=>o("stale"),t);return()=>clearTimeout(e)},[t,i]),(0,r.useEffect)(()=>{if("hit"!==i)return;let e=()=>o("stale");return window.addEventListener("focus",e),()=>window.removeEventListener("focus",e)},[t,i]),(0,r.useEffect)(()=>{n&&"hit"===i&&o("stale"),n||"stale"!==i||o("refresh")},[n,i]),[i,a]}function g(e){return document.addEventListener("visibilitychange",e),()=>document.removeEventListener("visibilitychange",e)}},80684:function(e,t,n){"use strict";n.d(t,{d:function(){return i}});let i=(0,n(67294).createContext)(null)},74356:function(e,t,n){"use strict";n.d(t,{Ji:function(){return v},yR:function(){return g}});var i,r,o=n(40275),a=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(e,t){try{return function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){var i,r,o,a;if(t.constructor!==n.constructor)return!1;if(Array.isArray(t)){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(!e(t[r],n[r]))return!1;return!0}if(l&&t instanceof Map&&n instanceof Map){if(t.size!==n.size)return!1;for(a=t.entries();!(r=a.next()).done;)if(!n.has(r.value[0]))return!1;for(a=t.entries();!(r=a.next()).done;)if(!e(r.value[1],n.get(r.value[0])))return!1;return!0}if(c&&t instanceof Set&&n instanceof Set){if(t.size!==n.size)return!1;for(a=t.entries();!(r=a.next()).done;)if(!n.has(r.value[0]))return!1;return!0}if(f&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(n)){if((i=t.length)!=n.length)return!1;for(r=i;0!=r--;)if(t[r]!==n[r])return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf&&"function"==typeof t.valueOf&&"function"==typeof n.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString&&"function"==typeof t.toString&&"function"==typeof n.toString)return t.toString()===n.toString();if((i=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(r=i;0!=r--;)if(!Object.prototype.hasOwnProperty.call(n,o[r]))return!1;if(u&&t instanceof Element)return!1;for(r=i;0!=r--;)if(("_owner"!==o[r]&&"__v"!==o[r]&&"__o"!==o[r]||!t.$$typeof)&&!e(t[o[r]],n[o[r]]))return!1;return!0}return t!=t&&n!=n}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}}).__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i,h={exports:{}},p={};h.exports=function(){if(r)return p;r=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=a.useSyncExternalStore,n=a.useRef,i=a.useEffect,o=a.useMemo,s=a.useDebugValue;return p.useSyncExternalStoreWithSelector=function(r,a,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=t(r,(f=o(function(){function t(t){if(!r){if(r=!0,n=t,t=l(t),void 0!==c&&d.hasValue){var o=d.value;if(c(o,t))return i=o}return i=t}if(o=i,e(n,t))return o;var a=l(t);return void 0!==c&&c(o,a)?o:(n=t,i=a)}var n,i,r=!1,o=void 0===u?null:u;return[function(){return t(a())},null===o?void 0:function(){return t(o())}]},[a,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(e,t,n,i){let{isEqual:r=d}=i||{},u=(0,a.useContext)(s.d),l=(0,o.Kx)(n),c=(0,a.useMemo)(()=>({subscribe:()=>()=>{},getSnapshot:()=>e}),[e]),f=(0,a.useMemo)(()=>(null==u?void 0:u(e,t,l))||{subscribe:()=>()=>{},getSnapshot:()=>e},[u,e,l,t]),[h]=(0,a.useState)(()=>{if(void 0===e)throw Error("initialSnapshot can't be undefined, if you don't want an initial value use null instead");try{return JSON.parse(JSON.stringify(e))}catch(t){return console.warn("Failed to deep clone initialSnapshot, this is likely an error and an indication that the snapshot isn't JSON serializable",{initialSnapshot:e,error:t}),e}}),p=(0,a.useCallback)(()=>h,[h]),g=(0,a.useCallback)(e=>e,[]),v=m.useSyncExternalStoreWithSelector((null==f?void 0:f.subscribe)||c.subscribe,(null==f?void 0:f.getSnapshot)||c.getSnapshot,p,g,r),y=null!==u;return[v,y&&h===v,y]}let v=(0,a.lazy)(()=>n.e(6166).then(n.bind(n,46166)))},34764:function(e,t,n){"use strict";function i(e,...t){let n=e.length-1;return e.slice(0,n).reduce((e,n,i)=>e+n+t[i],"")+e[n]}n.d(t,{Z:function(){return i}})}}]);