(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9972],{5029:(t,e,r)=>{"use strict";var n=r(49888),i=r(28621),o=r(25434),s=r(41196),a=r(41346),l=["projectId","dataset","imageOptions","ignoreUnknownTypes"],u={imageOptions:{},ignoreUnknownTypes:!0};function c(t){return"block"===t._type&&t.listItem}t.exports=function(t,e,r,h){var p=n({},u,e),f=o(s(Array.isArray(p.blocks)?p.blocks:[p.blocks]),p.listNestMode),d=a(r,p.serializers||{}),m=l.reduce(function(t,e){var r=p[e];return void 0!==r&&(t[e]=r),t},{}),g=!!p.renderContainerOnSingleChild,y=f.map(function e(r,n,o,s){var a,l,u,p,f,g,y,v,w,k,b,O,x,I,z,_;return"list"===(a=r)._type&&a.listItem?(u=(l=r).listItem,p=l.level,f=l._key,g=l.children.map(e),t(d.list,{key:f,level:p,type:u,options:m},g)):c(r)?(y=r,v=function(t,e){for(var r=0,n=0;n<e.length&&e[n]!==t;n++)c(e[n])&&r++;return r}(r,o),w=y._key,k=i(y).map(e),t(d.listItem,{node:y,serializers:d,index:v,key:w,options:m},k)):"string"==typeof(b=r)||b.marks||"span"===b._type?h(r,d,n,{serializeNode:e}):(O=r,x=n,I=s,z=i(O).map(function(t,r,n){return e(t,r,n,!0)}),_={key:O._key||"block-".concat(x),node:O,isInline:I,serializers:d,options:m},t(d.block,_,z))});if(g||y.length>1){var v=p.className?{className:p.className}:{};return t(d.container,v,y)}return y[0]?y[0]:"function"==typeof d.empty?t(d.empty):d.empty}},14659:(t,e,r)=>{t.exports=r(77119)},19410:(t,e,r)=>{"use strict";var n=r(59672),i=(0,r(14659).getSerializers)(n.createElement),o=i.defaultSerializers;t.exports={serializeSpan:i.serializeSpan,serializers:o,renderProps:{nestMarks:!0}}},22435:(t,e,r)=>{"use strict";var n=r(59672),i=r(90297),o=r(14659),s=r(19410),a=s.serializers,l=s.serializeSpan,u=s.renderProps,c=o.getImageUrl,h=o.blocksToNodes,p=o.mergeSerializers,f=n.createElement,d=function t(e){var r=p(t.defaultSerializers,e.serializers);return h(f,Object.assign({},u,e,{serializers:r,blocks:e.blocks||[]}),a,l)};d.defaultSerializers=a,d.getImageUrl=c,d.propTypes={className:i.string,renderContainerOnSingleChild:i.bool,ignoreUnknownTypes:i.bool,projectId:i.string,dataset:i.string,imageOptions:i.object,serializers:i.shape({types:i.object,marks:i.object,list:i.func,listItem:i.func,block:i.func,span:i.func}),blocks:i.oneOfType([i.arrayOf(i.shape({_type:i.string.isRequired})),i.shape({_type:i.string.isRequired})]).isRequired},d.defaultProps={ignoreUnknownTypes:!0,renderContainerOnSingleChild:!1,serializers:{},imageOptions:{}},t.exports=d},25434:(t,e,r)=>{"use strict";var n=r(49888);function i(t){return{_type:"list",_key:"".concat(t._key,"-parent"),level:t.level,listItem:t.listItem,children:[t]}}function o(t){return t.children&&t.children[t.children.length-1]}function s(t,e){var r="string"==typeof e.listItem;if("list"===t._type&&t.level===e.level&&r&&t.listItem===e.listItem)return t;var n=o(t);return!!n&&s(n,e)}t.exports=function(t){for(var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"html",a=[],l=0;l<t.length;l++){var u,c,h=t[l];if(!h.listItem){a.push(h),e=null;continue}if(!e){e=i(h),a.push(e);continue}if(u=h,c=e,u.level===c.level&&u.listItem===c.listItem){e.children.push(h);continue}if(h.level>e.level){var p=i(h);if("html"===r){var f=o(e),d=n({},f,{children:f.children.concat(p)});e.children[e.children.length-1]=d}else e.children.push(p);e=p;continue}if(h.level<e.level){var m=s(a[a.length-1],h);if(m){(e=m).children.push(h);continue}e=i(h),a.push(e);continue}if(h.listItem!==e.listItem){var g=s(a[a.length-1],{level:h.level});if(g&&g.listItem===h.listItem){(e=g).children.push(h);continue}e=i(h),a.push(e);continue}console.warn("Unknown state encountered for block",h),a.push(h)}return a}},28621:t=>{"use strict";var e=["strong","em","code","underline","strike-through"];function r(t,e,r){if(!t.marks||0===t.marks.length)return t.marks||[];var i=n.bind(null,t.marks.reduce(function(t,n){t[n]=t[n]?t[n]+1:1;for(var i=e+1;i<r.length;i++){var o=r[i];if(o.marks&&Array.isArray(o.marks)&&-1!==o.marks.indexOf(n))t[n]++;else break}return t},{}));return t.marks.slice().sort(i)}function n(t,r,n){var i=t[r]||0,o=t[n]||0;if(i!==o)return o-i;var s=e.indexOf(r),a=e.indexOf(n);return s!==a?s-a:r<n?-1:+(r>n)}t.exports=function(t){var e=t.children,n=t.markDefs;if(!e||!e.length)return[];var i=e.map(r),o={_type:"span",children:[]},s=[o];return e.forEach(function(t,e){var r,o=i[e];if(!o){s[s.length-1].children.push(t);return}var a=1;if(s.length>1)for(;a<s.length;a++){var l=s[a].markKey,u=o.indexOf(l);if(-1===u)break;o.splice(u,1)}var c=function(t){for(var e=t.length-1;e>=0;e--){var r=t[e];if("span"===r._type&&r.children)return r}}(s=s.slice(0,a));if(o.forEach(function(e){var r={_type:"span",_key:t._key,children:[],mark:n.find(function(t){return t._key===e})||e,markKey:e};c.children.push(r),s.push(r),c=r}),"span"===(r=t)._type&&"string"==typeof r.text&&(Array.isArray(r.marks)||void 0===r.marks)){for(var h=t.text.split("\n"),p=h.length;p-- >1;)h.splice(p,0,"\n");c.children=c.children.concat(h)}else c.children=c.children.concat(t)}),o.children}},40361:t=>{t.exports=function(t){return"https://docs.sanity.io/help/"+t}},41196:(t,e,r)=>{"use strict";var n=r(49888);t.exports=function(t){return t.map(function(t){return t._key?t:n({_key:(function(t){var e=0,r=t.length;if(0===r)return e;for(var n=0;n<r;n++)e=(e<<5)-e+t.charCodeAt(n),e&=e;return e})(JSON.stringify(t)).toString(36).replace(/[^A-Za-z0-9]/g,"")},t)})}},41346:(t,e,r)=>{"use strict";function n(t){return(n="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})(t)}var i=r(49888);t.exports=function(t,e){return Object.keys(t).reduce(function(r,o){var s=n(t[o]);return"function"===s?r[o]=void 0!==e[o]?e[o]:t[o]:"object"===s?r[o]=i({},t[o],e[o]):r[o]=void 0===e[o]?t[o]:e[o],r},{})}},42751:function(t){t.exports=function(){function t(){return(t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var r="image-Tb9Ew8CXIwaY6R1kjMvI0uRR-2000x3000-jpg";function n(t){return("image-"+t.split("/").slice(-1)[0]).replace(/\.([a-z]+)$/,"-$1")}var i=[["width","w"],["height","h"],["format","fm"],["download","dl"],["blur","blur"],["sharpen","sharp"],["invert","invert"],["orientation","or"],["minHeight","min-h"],["maxHeight","max-h"],["minWidth","min-w"],["maxWidth","max-w"],["quality","q"],["fit","fit"],["crop","crop"],["saturation","sat"],["auto","auto"],["dpr","dpr"],["pad","pad"]],o=["clip","crop","fill","fillmax","max","scale","min"],s=["top","bottom","left","right","center","focalpoint","entropy"],a=["format"],l=function(){function l(e,r){this.options=e?t(t({},e.options||{}),r||{}):t({},r||{})}var u=l.prototype;return u.withOptions=function(r){var n=r.baseUrl||this.options.baseUrl,o={baseUrl:n};for(var s in r)r.hasOwnProperty(s)&&(o[function(t){for(var r,n=function(t){var r=0;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=function(t,r){if(t){if("string"==typeof t)return e(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,void 0)}}(t)))return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}};throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=t[Symbol.iterator]()).next.bind(r)}(i);!(r=n()).done;){var o=r.value,s=o[0],a=o[1];if(t===s||t===a)return s}return t}(s)]=r[s]);return new l(this,t({baseUrl:n},o))},u.image=function(t){return this.withOptions({source:t})},u.dataset=function(t){return this.withOptions({dataset:t})},u.projectId=function(t){return this.withOptions({projectId:t})},u.bg=function(t){return this.withOptions({bg:t})},u.dpr=function(t){return this.withOptions({dpr:t})},u.width=function(t){return this.withOptions({width:t})},u.height=function(t){return this.withOptions({height:t})},u.focalPoint=function(t,e){return this.withOptions({focalPoint:{x:t,y:e}})},u.maxWidth=function(t){return this.withOptions({maxWidth:t})},u.minWidth=function(t){return this.withOptions({minWidth:t})},u.maxHeight=function(t){return this.withOptions({maxHeight:t})},u.minHeight=function(t){return this.withOptions({minHeight:t})},u.size=function(t,e){return this.withOptions({width:t,height:e})},u.blur=function(t){return this.withOptions({blur:t})},u.sharpen=function(t){return this.withOptions({sharpen:t})},u.rect=function(t,e,r,n){return this.withOptions({rect:{left:t,top:e,width:r,height:n}})},u.format=function(t){return this.withOptions({format:t})},u.invert=function(t){return this.withOptions({invert:t})},u.orientation=function(t){return this.withOptions({orientation:t})},u.quality=function(t){return this.withOptions({quality:t})},u.forceDownload=function(t){return this.withOptions({download:t})},u.flipHorizontal=function(){return this.withOptions({flipHorizontal:!0})},u.flipVertical=function(){return this.withOptions({flipVertical:!0})},u.ignoreImageParams=function(){return this.withOptions({ignoreImageParams:!0})},u.fit=function(t){if(-1===o.indexOf(t))throw Error('Invalid fit mode "'+t+'"');return this.withOptions({fit:t})},u.crop=function(t){if(-1===s.indexOf(t))throw Error('Invalid crop mode "'+t+'"');return this.withOptions({crop:t})},u.saturation=function(t){return this.withOptions({saturation:t})},u.auto=function(t){if(-1===a.indexOf(t))throw Error('Invalid auto mode "'+t+'"');return this.withOptions({auto:t})},u.pad=function(t){return this.withOptions({pad:t})},u.url=function(){return function(e){var o=t({},e||{}),s=o.source;delete o.source;var a=function(e){var r,i;if(!e)return null;if("string"==typeof e&&(i=e,/^https?:\/\//.test(""+i)))r={asset:{_ref:n(e)}};else if("string"==typeof e)r={asset:{_ref:e}};else if(e&&"string"==typeof e._ref)r={asset:e};else if(e&&"string"==typeof e._id)r={asset:{_ref:e._id||""}};else if(e&&e.asset&&"string"==typeof e.asset.url)r={asset:{_ref:n(e.asset.url)}};else{if("object"!=typeof e.asset)return null;r=e}return e.crop&&(r.crop=e.crop),e.hotspot&&(r.hotspot=e.hotspot),function(e){if(e.crop&&e.hotspot)return e;var r=t({},e);return r.crop||(r.crop={left:0,top:0,bottom:0,right:0}),r.hotspot||(r.hotspot={x:.5,y:.5,height:1,width:1}),r}(r)}(s);if(!a)return null;var l=function(t){var e=t.split("-"),n=e[1],i=e[2],o=e[3];if(!n||!i||!o)throw Error("Malformed asset _ref '"+t+"'. Expected an id like \""+r+'".');var s=i.split("x"),a=s[0],l=s[1],u=+a,c=+l;if(!(isFinite(u)&&isFinite(c)))throw Error("Malformed asset _ref '"+t+"'. Expected an id like \""+r+'".');return{id:n,width:u,height:c,format:o}}(a.asset._ref||a.asset._id||""),u=Math.round(a.crop.left*l.width),c=Math.round(a.crop.top*l.height),h={left:u,top:c,width:Math.round(l.width-a.crop.right*l.width-u),height:Math.round(l.height-a.crop.bottom*l.height-c)},p=a.hotspot.height*l.height/2,f=a.hotspot.width*l.width/2,d=a.hotspot.x*l.width,m=a.hotspot.y*l.height;return o.rect||o.focalPoint||o.ignoreImageParams||o.crop||(o=t(t({},o),function(t,e){var r,n=e.width,i=e.height;if(!(n&&i))return{width:n,height:i,rect:t.crop};var o=t.crop,s=t.hotspot,a=n/i;if(o.width/o.height>a){var l=o.height,u=l*a,c=o.top,h=(s.right-s.left)/2+s.left-u/2;h<o.left?h=o.left:h+u>o.left+o.width&&(h=o.left+o.width-u),r={left:Math.round(h),top:Math.round(c),width:Math.round(u),height:Math.round(l)}}else{var p=o.width,f=p/a,d=o.left,m=(s.bottom-s.top)/2+s.top-f/2;m<o.top?m=o.top:m+f>o.top+o.height&&(m=o.top+o.height-f),r={left:Math.max(0,Math.floor(d)),top:Math.max(0,Math.floor(m)),width:Math.round(p),height:Math.round(f)}}return{width:n,height:i,rect:r}}({crop:h,hotspot:{left:d-f,top:m-p,right:d+f,bottom:m+p}},o))),function(t){var e=t.baseUrl||"https://cdn.sanity.io",r=t.asset.id+"-"+t.asset.width+"x"+t.asset.height+"."+t.asset.format,n=e+"/images/"+t.projectId+"/"+t.dataset+"/"+r,o=[];if(t.rect){var s=t.rect,a=s.left,l=s.top,u=s.width,c=s.height;(0!==a||0!==l||c!==t.asset.height||u!==t.asset.width)&&o.push("rect="+a+","+l+","+u+","+c)}t.bg&&o.push("bg="+t.bg),t.focalPoint&&(o.push("fp-x="+t.focalPoint.x),o.push("fp-y="+t.focalPoint.y));var h=[t.flipHorizontal&&"h",t.flipVertical&&"v"].filter(Boolean).join("");return(h&&o.push("flip="+h),i.forEach(function(e){var r=e[0],n=e[1];void 0!==t[r]?o.push(n+"="+encodeURIComponent(t[r])):void 0!==t[n]&&o.push(n+"="+encodeURIComponent(t[n]))}),0===o.length)?n:n+"?"+o.join("&")}(t(t({},o),{},{asset:l}))}(this.options)},u.toString=function(){return this.url()},l}();return function(t){if(t&&"object"==typeof t.clientConfig){var e=t.clientConfig,r=e.apiHost,n=e.projectId,i=e.dataset;return new l(null,{baseUrl:(r||"https://api.sanity.io").replace(/^https:\/\/api\./,"https://cdn."),projectId:n,dataset:i})}return new l(null,t)}}()},49888:t=>{"use strict";t.exports=Object.assign.bind(Object),t.exports.default=t.exports},77119:(t,e,r)=>{"use strict";var n=r(83732),i=r(5029);t.exports={blocksToNodes:function(t,e,r,o){if(r)return i(t,e,r,o);var s=n(t);return i(t,e,s.defaultSerializers,s.serializeSpan)},getSerializers:n,getImageUrl:r(99659),mergeSerializers:r(41346)}},83732:(t,e,r)=>{"use strict";var n=r(49888),i=r(99659);t.exports=function(t,e){var r=e||{useDashedStyles:!1};function o(e,r){return t(e,null,r.children)}return{defaultSerializers:{types:{block:function(e){var r=e.node.style||"normal";return/^h\d/.test(r)?t(r,null,e.children):"blockquote"===r?t("blockquote",null,e.children):t("p",null,e.children)},image:function(e){if(!e.node.asset)return null;var r=t("img",{src:i(e)});return e.isInline?r:t("figure",null,r)}},marks:{strong:o.bind(null,"strong"),em:o.bind(null,"em"),code:o.bind(null,"code"),underline:function(e){return t("span",{style:r.useDashedStyles?{"text-decoration":"underline"}:{textDecoration:"underline"}},e.children)},"strike-through":function(e){return t("del",null,e.children)},link:function(e){return t("a",{href:e.mark.href},e.children)}},list:function(e){return t("bullet"===e.type?"ul":"ol",null,e.children)},listItem:function(e){var r=e.node.style&&"normal"!==e.node.style?t(e.serializers.types.block,e,e.children):e.children;return t("li",null,r)},block:function(e){var r=e.node,n=e.serializers,i=e.options,o=e.isInline,s=e.children,a=r._type,l=n.types[a];if(!l){if(i.ignoreUnknownTypes)return console.warn('Unknown block type "'.concat(a,'", please specify a serializer for it in the `serializers.types` prop')),t(n.unknownType,{node:r,options:i,isInline:o},s);throw Error('Unknown block type "'.concat(a,'", please specify a serializer for it in the `serializers.types` prop'))}return t(l,{node:r,options:i,isInline:o},s)},span:function(e){var r=e.node,n=r.mark,i=r.children,o="string"==typeof n?n:n._type,s=e.serializers.marks[o];return s?t(s,e.node,i):(console.warn('Unknown mark type "'.concat(o,'", please specify a serializer for it in the `serializers.marks` prop')),t(e.serializers.unknownMark,null,i))},hardBreak:function(){return t("br")},unknownType:function(e){return t("div",{style:{display:"none"}},'Unknown block type "'.concat(e.node._type,'", please specify a serializer for it in the `serializers.types` prop'))},unknownMark:"span",container:"div",text:void 0,empty:""},serializeSpan:function(e,r,i,o){if("\n"===e&&r.hardBreak)return t(r.hardBreak,{key:"hb-".concat(i)});if("string"==typeof e)return r.text?t(r.text,{key:"text-".concat(i)},e):e;e.children&&(s={children:e.children.map(function(t,r){return o.serializeNode(t,r,e.children,!0)})});var s,a=n({},e,s);return t(r.span,{key:e._key||"span-".concat(i),node:a,serializers:r})}}}},86250:(t,e)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var t="",e=0;e<arguments.length;e++){var r=arguments[e];r&&(t=o(t,function(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return i.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var r in t)n.call(t,r)&&t[r]&&(e=o(e,r));return e}(r)))}return t}function o(t,e){return e?t?t+" "+e:t+e:t}t.exports?(i.default=i,t.exports=i):void 0!==(r=(function(){return i}).apply(e,[]))&&(t.exports=r)}()},99659:(t,e,r)=>{"use strict";var n=r(40361),i=r(42751),o=r(49888),s=encodeURIComponent,a="You must either:\n  - Pass `projectId` and `dataset` to the block renderer\n  - Materialize images to include the `url` field.\n\nFor more information, see ".concat(n("block-content-image-materializing")),l=function(t){var e=t.imageOptions,r=Object.keys(e);if(!r.length)return"";var n=r.map(function(t){return"".concat(s(t),"=").concat(s(e[t]))});return"?".concat(n.join("&"))};t.exports=function(t){var e=t.node,r=t.options,n=r.projectId,s=r.dataset,u=e.asset;if(!u)throw Error("Image does not have required `asset` property");if(u.url)return u.url+l(r);if(!n||!s)throw Error(a);if(!u._ref)throw Error("Invalid image reference in block, no `_ref` found on `asset`");return i(o({projectId:n,dataset:s},r.imageOptions||{})).image(e).toString()}}}]);