1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[352],{172:function(e,t,r){"use strict";r.d(t,{p:function(){return o}});var n=r(5893);let i=e=>{let t=e.replace(/(?:-|_)(\w)/g,(e,t)=>t?t.toUpperCase():"");return t[0].toUpperCase()+t.slice(1)};r(3454);let s=({slice:e})=>null;function o({slices:e=[],components:t={},resolver:r,defaultComponent:o=s,context:a={}}){let l=e.map((s,l)=>{let u="slice_type"in s?s.slice_type:s.type,c=t[u]||o;if(r){let e=r({slice:s,sliceName:i(u),i:l});e&&(c=e)}let d="id"in s&&s.id?s.id:`${l}-${JSON.stringify(s)}`;if(!s.__mapped)return(0,n.jsx)(c,{slice:s,index:l,slices:e,context:a},d);{let{__mapped:e,...t}=s;return(0,n.jsx)(c,{...t},d)}});return(0,n.jsx)(n.Fragment,{children:l})}},3454:function(e,t,r){"use strict";var n,i;e.exports=(null==(n=r.g.process)?void 0:n.env)&&"object"==typeof(null==(i=r.g.process)?void 0:i.env)?r.g.process:r(7663)},5677:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{noSSR:function(){return o},default:function(){return a}});let n=r(260),i=(r(7294),n._(r(8976)));function s(e){return{default:(null==e?void 0:e.default)||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function a(e,t){let r=i.default,n={loading:e=>{let{error:t,isLoading:r,pastDelay:n}=e;return null}};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e}),n={...n,...t};let a=n.loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=a?a().then(s):Promise.resolve(s(()=>null))}):(delete n.webpack,delete n.modules,o(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2254:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return s}});let n=r(260),i=n._(r(7294)),s=i.default.createContext(null)},8976:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=r(260),i=n._(r(7294)),s=r(2254),o=[],a=[],l=!1;function u(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class c{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),n=null;function o(){if(!n){let t=new c(e,r);n={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return n.promise()}if(!l){let e=r.webpack?r.webpack():r.modules;e&&a.push(t=>{for(let r of e)if(t.includes(r))return o()})}function u(e,t){!function(){o();let e=i.default.useContext(s.LoadableContext);
1e&&Array.isArray(r.modules)&&r.modules.forEach(t=>{e(t)})}();let a=i.default.useSyncExternalStore(n.subscribe,n.getCurrentValue,n.getCurrentValue);return i.default.useImperativeHandle(t,()=>({retry:n.retry}),[]),i.default.useMemo(()=>{var t;return a.loading||a.error?i.default.createElement(r.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:n.retry}):a.loaded?i.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return u.preload=()=>o(),u.displayName="LoadableComponent",i.default.forwardRef(u)}(u,e)}function h(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return h(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{h(o).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let r=()=>(l=!0,t());h(a,e).then(r,r)})),window.__NEXT_PRELOADREADY=d.preloadReady;let f=d},7663:function(e){!function(){var t={229:function(e){var t,r,n,i=e.exports={};function s(){throw Error("setTimeout has not been defined")}function o(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l=[],u=!1,c=-1;function d(){u&&n&&(u=!1,n.length?l=n.concat(l):c=-1,l.length&&h())}function h(){if(!u){var e=a(d);u=!0;for(var t=l.length;t;){for(n=l,l=[];++c<t;)n&&n[c].run();c=-1,t=l.length}n=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new f(e,t)),1!==l.length||u||a(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}}},r={};function n(e){var i=r[e];if(void 0!==i)return i.exports;var s=r[e]={exports:{}},o=!0;try{t[e](s,s.exports,n),o=!1}finally{o&&delete r[e]}return s.exports}n.ab="//";var i=n(229);e.exports=i}()},5152:function(e,t,r){e.exports=r(5677)},4917:function(e,t,r){"use strict";/*! 2 * statuses 3 * Copyright(c) 2014 Jonathan Ong 4 * Copyright(c) 2016 Douglas Christopher Wilson 5 * MIT Licensed 6 */var n,i=r(855);function s(e){if(!Object.prototype.hasOwnProperty.call(o.message,e))throw Error("invalid status code: "+e);return o.message[e]}function o(e){if("number"==typeof e)return s(e);if("string"!=typeof e)throw TypeError("code must be a number or string");var t=parseInt(e,10);return isNaN(t)?function(e){var t=e.toLowerCase();if(!Object.prototype.hasOwnProperty.call(o.code,t))throw Error('invalid status message: "'+e+'"');return o.code[t]}(e):s(t)}e.exports=o,o.message=i,o.code=(n={}
6,Object.keys(i).forEach(function(e){var t=i[e],r=Number(e);n[t.toLowerCase()]=r}),n),o.codes=Object.keys(i).map(function(e){return Number(e)}),o.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0},o.empty={204:!0,205:!0,304:!0},o.retry={502:!0,503:!0,504:!0}},7355:function(e,t,r){"use strict";r.d(t,{i:function(){return eV}});var n,i,s,o,a,l,u,c,d,h,f,p,_,g,v,m,y,w,b=r(5893),S=r(7294),T=r(4917);let I=0,x=(e,t,r="")=>({requestID:`${r}${I++}`,type:e,data:t}),D=(e,t,r=200)=>{var n,i;if(r>=400)throw TypeError(`Invalid success status code, expected status to be within \`[100;400[\`, got \`${r}\``);return{requestID:e,status:r,msg:null!=(i=null==(n=T.message[r])?void 0:n.replace(/\.$/,"").toLowerCase())?i:"",data:t}},M=(e,t,r=400)=>{var n,i;if(r<400)throw TypeError(`Invalid error status code, expected status to be within \`[500;600[\`, got \`${r}\``);return{requestID:e,status:r,msg:null!=(i=null==(n=T.message[r])?void 0:n.replace(/\.$/,"").toLowerCase())?i:"",error:t}},P=e=>{if("object"!=typeof e||null===e)throw TypeError(`Invalid message received, expected message to be of type \`object\`, got \`${typeof e}\``);if(Object.keys(e).every(e=>["requestID","type","data","status","msg","error"].includes(e))){if("string"!=typeof e.requestID)throw TypeError(`Invalid message received, expected \`message.requestID\` to be of type \`string\`, got \`${typeof e.id}\``)}else throw TypeError(`Invalid message received: ${JSON.stringify(e)}`);return e},q=e=>"type"in e,R=e=>!("type"in e),A=e=>R(e)&&!("error"in e);class O extends Error{constructor(e){super(e.msg),this.response=e}}class E extends Error{constructor(e){super("Too many concurrent requests"),this.request=e}}class L extends Error{constructor(e){super(`Request \`${e.requestID}\` timed out`),this.request=e}}class j extends Error{}class k extends Error{constructor(){super("Port is not set")}}let C={debug:!1,maximumRequestConcurrency:20,defaultTimeout:5e3,requestIDPrefix:"channel-"};class N{constructor(e,t){this._port=null,this._pendingRequests=new Map,this.requestHandlers=e,this.options={...C,...t}}get port(){if(!this._port)throw new k;return this._port}set port(e){this._port&&(this._port.onmessage=null),this._port=e,this._port&&(this._port.onmessage=this.onMessage.bind(this))}createRequestMessage(e,t){return x(e,t,this.options.requestIDPrefix)}async onMessage(e){this.options.debug&&console.debug(e.data);try{let t=P(e.data);if(q(t)){if(this.requestHandlers[t.type])try{let e=await this.requestHandlers[t.type](t,{success:D.bind(this,t.requestID),error:M.bind(this,t.requestID)});this.postResponse(e)}catch(e){this.postResponse(M(t.requestID,e,500))}else this.postResponse(M(t.requestID,void 0,501))}else this._pendingRequests.has(t.requestID)?(this._pendingRequests.get(t.requestID)(t),this._pendingRequests.delete(t.requestID)):console.error(`Unknown request ID received in response: ${JSON.stringify(t)}`)}catch(e){if(e instanceof TypeError)console.warn(e.message);else throw e}}postRequest(e,t=e=>this.port.postMessage(e),r={}){if(this.options.debug&&console.debug(e),this._pendingRequests.size>=this.options.maximumRequestConcurrency)throw new E(e);return new Promise((n,i)=>{let s=setTimeout(()=>{this._pendingRequests.has(e.requestID)&&this._pendingRequests.delete(e.requestID),i(new L(e))},r.timeout||this.options.defaultTimeout);this._pendingRequests.set(e.requestID,e=>{clearTimeout(s),A(e)?n(e):i(new O(e))}),t(e)})}postResponse(e,t=e=>this.port.postMessage(e)){return this.options.debug&&console.debug(e),t(e),e}}var F=((n=F||{}).Connect="connect",n),Z=((i=Z||{}).Ready="ready",i);let $={readyTimeout:2e4,requestIDPrefix:"receiver-"};class U extends N{constructor(e,t){super(e,{...$,...t}),this._ready=!1,window.addEventListener("message",e=>{this._onPublicMessage(e)})}async ready(){if(window.parent===window)throw Error("Receiver is currently not embedded as an iframe");this._ready=!1;let e=this.createRequestMessage(Z.Ready,void 0),t=await this.postRequest(e,e=>{window.parent.postMessage(e,"*")},{timeout:this.options.readyTimeout});return this._ready=!0,t}_onPublicMessage(e){try{let t=P(e.data);if(q(t)){if(this.options.debug&&console.debug(e.data),t.type===F.Connect){this.port=e.ports[0];let{data:r}=t;this.options={...this.options,...r,debug:this.options.debug,requestIDPrefix:this.options.requestIDPrefix,readyTimeout:this.options.readyTimeout};let n=D(t.requestID,void 0);this.postResponse(n)}else this.postResponse(M(t.requestID,void 0),t=>{e.source.postMessage(t,e.origin)})}else this._ready||this.onMessage(e)}catch(e){if(e instanceof TypeError);else throw e}}postFormattedRequest(e,t,r={}){if(!this._ready)throw new j("Receiver is not ready, use `ChannelReceiver.ready()` first");return this.postRequest(this.createRequestMessage(e,t),void 0,r)}}var z=((s=z||{}).SetActiveSlice="setActiveSlice",s),G=((o=G||{}).Ping="ping",o.GetLibraries="getLibraries",o.SetSliceZone="setSliceZone",o.SetSliceZoneFromSliceIDs="setSliceZoneFromSliceIDs",o.ScrollToSlice="scrollToSlice",o);G.Ping,G.GetLibraries,G.SetSliceZone,G.SetSliceZoneFromSliceIDs,G.ScrollToSlice;let H={requestIDPrefix:"api-",activeSliceAPI:!1};class V extends U{constructor(e,t){var r,n;let i=(null==t?void 0:t.debug)||/[\?&]debug=true/i.test(decodeURIComponent(window.location.search));super({[G.Ping]:(e,t)=>t.success("pong"),...e},{...H,...t,debug:i}),this[w]=async e=>await this.postFormattedRequest(z.SetActiveSlice,e),i&&(window.prismic||(window.prismic={}),(r=window.prismic).sliceSimulator||(r.sliceSimulator={}),(n=window.prismic.sliceSimulator).api||(n.api=[]),window.prismic.sliceSimulator.api.push(this))}}w=z.SetActiveSlice,Object.prototype.hasOwnProperty;var B=function(e){return{_tag:"Right",right:e}},K=function(e){return"Left"===e._tag}
6,J=(a=function(e,t){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Y=function(){return(Y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},X=function(e,t,r){if(r||2==arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))},Q=function(e){return{_tag:"Left",left:e}},W=function(e,t,r){return Q([{value:e,context:t,message:r}])},ee=function(){function e(e,t,r,n){this.name=e,this.is=t,this.validate=r,this.encode=n,this.decode=this.decode.bind(this)}return e.prototype.pipe=function(t,r){var n=this;return void 0===r&&(r="pipe(".concat(this.name,", ").concat(t.name,")")),new e(r,t.is,function(e,r){var i=n.validate(e,r);return K(i)?i:t.validate(i.right,r)},this.encode===et&&t.encode===et?et:function(e){return n.encode(t.encode(e))})},e.prototype.asDecoder=function(){return this},e.prototype.asEncoder=function(){return this},e.prototype.decode=function(e){return this.validate(e,[{key:"",type:this,actual:e}])},e}(),et=function(e){return e};function er(e,t,r,n){for(var i=e.length,s=Array(i+1),o=0;o<i;o++)s[o]=e[o];return s[i]={key:t,type:r,actual:n},s}function en(e,t){for(var r=t.length,n=0;n<r;n++)e.push(t[n])}var ei=Object.prototype.hasOwnProperty;function es(e){for(var t=0;t<e.length;t++)if(e[t].encode!==et)return!1;return!0}function eo(e){return"{ ".concat(Object.keys(e).map(function(t){return"".concat(t,": ").concat(e[t].name)}).join(", ")," }")}function ea(e,t){for(var r=!0,n=!0,i=!ef.is(e),s=0;s<t.length;s++){var o=t[s];o!==e&&(r=!1),ef.is(o)&&(n=!1)}if(r)return e;if(n)return t[t.length-1];for(var a={},l=0;l<t.length;l++){var o=t[l];for(var u in o)(!ei.call(a,u)||i||o[u]!==e[u])&&(a[u]=o[u])}return a}function el(e){return"AnyType"===e._tag}new(function(e){function t(){var t=e.call(this,"null",function(e){return null===e},function(e,r){return t.is(e)?B(e):W(e,r)},et)||this;return t._tag="NullType",t}return J(t,e),t}(ee));var eu=new(function(e){function t(){var t=e.call(this,"undefined",function(e){return void 0===e},function(e,r){return t.is(e)?B(e):W(e,r)},et)||this;return t._tag="UndefinedType",t}return J(t,e),t}(ee));new(function(e){function t(){var t=e.call(this,"void",eu.is,eu.validate,et)||this;return t._tag="VoidType",t}return J(t,e),t}(ee)),new(function(e){function t(){var t=e.call(this,"unknown",function(e){return!0},B,et)||this;return t._tag="UnknownType",t}return J(t,e),t}(ee));var ec=new(function(e){function t(){var t=e.call(this,"string",function(e){return"string"==typeof e},function(e,r){return t.is(e)?B(e):W(e,r)},et)||this;return t._tag="StringType",t}return J(t,e),t}(ee)),ed=new(function(e){function t(){var t=e.call(this,"number",function(e){return"number"==typeof e},function(e,r){return t.is(e)?B(e):W(e,r)},et)||this;return t._tag="NumberType",t}return J(t,e),t}(ee));new(function(e){function t(){var t=e.call(this,"bigint",function(e){return"bigint"==typeof e},function(e,r){return t.is(e)?B(e):W(e,r)},et)||this;return t._tag="BigIntType",t}return J(t,e),t}(ee)),new(function(e){function t(){var t=e.call(this,"boolean",function(e){return"boolean"==typeof e},function(e,r){return t.is(e)?B(e):W(e,r)},et)||this;return t._tag="BooleanType",t}return J(t,e),t}(ee));var eh=new(function(e){function t(){var t=e.call(this,"UnknownArray",Array.isArray,function(e,r){return t.is(e)?B(e):W(e,r)},et)||this;return t._tag="AnyArrayType",t}return J(t,e),t}(ee)),ef=new(function(e){function t(){var t=e.call(this,"UnknownRecord",function(e){return null!==e&&"object"==typeof e&&!Array.isArray(e)},function(e,r){return t.is(e)?B(e):W(e,r)},et)||this;return t._tag="AnyDictionaryType",t}return J(t,e),t}(ee));J(function(e,t,r,n,i){var s=l.call(this,e,t,r,n)||this;return s.value=i,s._tag="LiteralType",s},l=ee),J(function(e,t,r,n,i){var s=u.call(this,e,t,r,n)||this;return s.keys=i,s._tag="KeyofType",s},u=ee);var ep=function(e){function t(t,r,n,i,s,o){var a=e.call(this,t,r,n,i)||this;return a.type=s,a.predicate=o,a._tag="RefinementType",a}return J(t,e),t}(ee);ex(ed,function(e){return Number.isInteger(e)},"Int"),Object.defineProperty(function(e){function t(t,r,n,i,s){var o=e.call(this,t,r,n,i)||this;return o.runDefinition=s,o._tag="RecursiveType",o}return J(t,e),t}(ee).prototype,"type",{get:function(){return this.runDefinition()},enumerable:!0,configurable:!0});var e_=function(e){function t(t,r,n,i,s){var o=e.call(this,t,r,n,i)||this;return o.type=s,o._tag="ArrayType",o}return J(t,e),t}(ee),eg=function(e){function t(t,r,n,i,s){var o=e.call(this,t,r,n,i)||this;return o.props=s,o._tag="InterfaceType",o}return J(t,e),t}(ee);function ev(e,t){void 0===t&&(t=eo(e));var r=Object.keys(e),n=r.map(function(t){return e[t]}),i=r.length;return new eg(t,function(e){if(ef.is(e)){for(var t=0;t<i;t++){var s=r[t],o=e[s];if(void 0===o&&!ei.call(e,s)||!n[t].is(o))return!1}return!0}return!1},function(e,t){var s=ef.validate(e,t);if(K(s))return s;for(var o=s.right,a=o,l=[],u=0;u<i;u++){var c=r[u],d=a[c],h=n[u],f=h.validate(d,er(t,c,h,d));if(K(f))en(l,f.left);else{var p=f.right;p===d&&(void 0!==p||ei.call(a,c))||(a===o&&(a=Y({},o)),a[c]=p)}}return l.length>0?Q(l):B(a)},es(n)?et:function(e){for(var t=Y({},e),s=0;s<i;s++){var o=r[s],a=n[s].encode;a!==et&&(t[o]=a(e[o]))}return t},e)}var em=function(e){function t(t,r,n,i,s){var o=e.call(this,t,r,n,i)||this;return o.props=s,o._tag="PartialType",o}return J(t,e),t}(ee);function ey(e,t){if(void 0===t){var r;r=eo(e),t="Partial<".concat(r,">")}var n=Object.keys(e),i=n.map(function(t){return e[t]}),s=n.length;return new em(t,function(t){if(ef.is(t)){for(var r=0;r<s;r++){var i=n[r],o=t[i];if(void 0!==o&&!e[i].is(o))return!1}return!0}return!1},function(t,r){var i=ef.validate(t,r);
6if(K(i))return i;for(var o=i.right,a=o,l=[],u=0;u<s;u++){var c=n[u],d=a[c],h=e[c],f=h.validate(d,er(r,c,h,d));if(K(f))void 0!==d&&en(l,f.left);else{var p=f.right;p!==d&&(a===o&&(a=Y({},o)),a[c]=p)}}return l.length>0?Q(l):B(a)},es(i)?et:function(e){for(var t=Y({},e),r=0;r<s;r++){var o=n[r],a=e[o];void 0!==a&&(t[o]=i[r].encode(a))}return t},e)}var ew=function(e){function t(t,r,n,i,s,o){var a=e.call(this,t,r,n,i)||this;return a.domain=s,a.codomain=o,a._tag="DictionaryType",a}return J(t,e),t}(ee);function eb(e,t,r){var n,i,s,o,a=function e(t){var r;if("LiteralType"===t._tag){var n=t.value;if(ec.is(n))return(r={})[n]=null,r}else{if("KeyofType"===t._tag)return t.keys;if("UnionType"===t._tag){var i=t.types.map(function(t){return e(t)});return i.some(eu.is)?void 0:Object.assign.apply(Object,X([{}],i,!1))}}}(e);return a?(n=Object.keys(a),void 0===(i=r)&&(i="{ [K in ".concat(e.name,"]: ").concat(t.name," }")),s=n.length,new ew(i,function(e){return ef.is(e)&&n.every(function(r){return t.is(e[r])})},function(e,r){var i=ef.validate(e,r);if(K(i))return i;for(var o=i.right,a={},l=[],u=!1,c=0;c<s;c++){var d=n[c],h=o[d],f=t.validate(h,er(r,d,t,h));if(K(f))en(l,f.left);else{var p=f.right;u=u||p!==h,a[d]=p}}return l.length>0?Q(l):B(u||Object.keys(o).length!==s?a:o)},t.encode===et?et:function(e){for(var r={},i=0;i<s;i++){var o=n[i];r[o]=t.encode(e[o])}return r},e,t)):(void 0===(o=r)&&(o="{ [K in ".concat(e.name,"]: ").concat(t.name," }")),new ew(o,function(r){return ef.is(r)?Object.keys(r).every(function(n){return e.is(n)&&t.is(r[n])}):el(t)&&Array.isArray(r)},function(r,n){if(ef.is(r)){for(var i={},s=[],o=Object.keys(r),a=o.length,l=!1,u=0;u<a;u++){var c=o[u],d=r[c],h=e.validate(c,er(n,c,e,c));if(K(h))en(s,h.left);else{var f=h.right;l=l||f!==c,c=f;var p=t.validate(d,er(n,c,t,d));if(K(p))en(s,p.left);else{var _=p.right;l=l||_!==d,i[c]=_}}}return s.length>0?Q(s):B(l?i:r)}return el(t)&&Array.isArray(r)?B(r):W(r,n)},e.encode===et&&t.encode===et?et:function(r){for(var n={},i=Object.keys(r),s=i.length,o=0;o<s;o++){var a=i[o];n[String(e.encode(a))]=t.encode(r[a])}return n},e,t))}var eS=function(e){function t(t,r,n,i,s){var o=e.call(this,t,r,n,i)||this;return o.types=s,o._tag="UnionType",o}return J(t,e),t}(ee),eT=function(e){function t(t,r,n,i,s){var o=e.call(this,t,r,n,i)||this;return o.types=s,o._tag="IntersectionType",o}return J(t,e),t}(ee);function eI(e,t){void 0===t&&(t="(".concat(e.map(function(e){return e.name}).join(" & "),")"));var r=e.length;return new eT(t,function(t){return e.every(function(e){return e.is(t)})},0===e.length?B:function(t,n){for(var i=[],s=[],o=0;o<r;o++){var a=e[o],l=a.validate(t,er(n,String(o),a,t));K(l)?en(s,l.left):i.push(l.right)}return s.length>0?Q(s):B(ea(t,i))},0===e.length?et:function(t){return ea(t,e.map(function(e){return e.encode(t)}))},e)}function ex(e,t,r){return void 0===r&&(r="(".concat(e.name," | ").concat(t.displayName||t.name||"<function".concat(t.length,">"),")")),new ep(r,function(r){return e.is(r)&&t(r)},function(r,n){var i=e.validate(r,n);if(K(i))return i;var s=i.right;return t(s)?B(s):W(s,n)},e.encode,e,t)}J(function(e,t,r,n,i){var s=c.call(this,e,t,r,n)||this;return s.types=i,s._tag="TupleType",s},c=ee),J(function(e,t,r,n,i){var s=d.call(this,e,t,r,n)||this;return s.type=i,s._tag="ReadonlyType",s},d=ee),J(function(e,t,r,n,i){var s=h.call(this,e,t,r,n)||this;return s.type=i,s._tag="ReadonlyArrayType",s},h=ee),J(function(e,t,r,n,i){var s=f.call(this,e,t,r,n)||this;return s.type=i,s._tag="ExactType",s},f=ee),new(function(e){function t(){var t=e.call(this,"Function",function(e){return"function"==typeof e},function(e,r){return t.is(e)?B(e):W(e,r)},et)||this;return t._tag="FunctionType",t}return J(t,e),t}(ee)),new(function(e){function t(){var t=e.call(this,"never",function(e){return!1},function(e,t){return W(e,t)},function(){throw Error("cannot encode never")})||this;return t._tag="NeverType",t}return J(t,e),t}(ee)),new(function(e){function t(){var t=e.call(this,"any",function(e){return!0},B,et)||this;return t._tag="AnyType",t}return J(t,e),t}(ee)),ex(ed,Number.isInteger,"Integer"),J(function(e,t,r,n,i,s){var o=p.call(this,e,t,r,n,i)||this;return o.tag=s,o},p=eS),new(function(e){function t(){var t=e.call(this,"object",function(e){return null!==e&&"object"==typeof e},function(e,r){return t.is(e)?B(e):W(e,r)},et)||this;return t._tag="ObjectType",t}return J(t,e),t}(ee)),J(function(e,t,r,n,i){var s=_.call(this,e,t,r,n)||this;
6return s.props=i,s._tag="StrictType",s},_=ee);var eD=r(3454);let eM=eb(ec,eI([ey({name:ec}),ev({components:eb(ec,eI([ev({id:ec,model:eI([ev({id:ec,variations:(g=eI([ev({id:ec}),ey({name:ec})]),void 0===v&&(v="Array<".concat(g.name,">")),new e_(v,function(e){return eh.is(e)&&e.every(g.is)},function(e,t){var r=eh.validate(e,t);if(K(r))return r;for(var n=r.right,i=n.length,s=n,o=[],a=0;a<i;a++){var l=n[a],u=g.validate(l,er(t,String(a),g,l));if(K(u))en(o,u.left);else{var c=u.right;c!==l&&(s===n&&(s=n.slice()),s[a]=c)}}return o.length>0?Q(o):B(s)},g.encode===et?et:function(e){return e.map(g.encode)},g))}),ey({name:ec})]),mocks:eb(ec,ev({variation:ec}))}),ey({name:ec})]))})]));var eP=((m=eP||{}).ManagedState="managedState",m.Slices="slices",m.ActiveSlice="activeSlice",m.Message="message",m),eq=((y=eq||{}).Pending="pending",y.Loaded="loaded",y.Error="error",y);let eR=()=>({state:{},zIndex:100,background:"#ffffff"}),eA=()=>({data:null,status:eq.Pending,error:null}),eO=()=>[],eE=()=>"",eL="slice-simulator",ej="slice-simulator--root",ek=e=>{let t=document.querySelector(`.${eL} [data-slice-zone]`);if(t)return t.children.length!==e&&console.warn(`Flagged SliceZone has an unexpected number of children, found ${t.children.length} but expected ${e}. This might lead to unexpected behaviors. Are you sure you tagged the right element?`),t;if(!(t=document.querySelector(`.${eL} .${ej}`)))return null;for(let r=0;r<5;r++){if(t.children.length===e)return t;if(t.children.length)t=t.children[0];else break}return null},eC=(e,t)=>{let r=document.elementsFromPoint(t.x,t.y).reverse(),n=r.indexOf(e);if(-1===n)return null;let i=r[n+1];return i||null},eN=(e,t)=>`<a href="${e}" style="text-decoration: underline;">${t||e}<a>`,eF=`<div style="word-spacing: initial; white-space: pre; line-height: initial; font-family: monospace; color: #ffffff; mix-blend-mode: difference; padding: 1rem; font-size: 1rem;">${` _____ ___ _____ _ __ __ 7 / ___// (_)_______ / ___/(_)___ ___ __ __/ /___ _/ /_____ _____ 8 \\__ \\/ / / ___/ _ \\\\__ \\/ / __ \`__ \\/ / / / / __ \`/ __/ __ \\/ ___/ 9 ___/ / / / /__/ __/__/ / / / / / / / /_/ / / /_/ / /_/ /_/ / / 10/____/_/_/\\___/\\___/____/_/_/ /_/ /_/\\__,_/_/\\__,_/\\__/\\____/_/ 11 / /_ __ __ / __ \\_____(_)________ ___ (_)____ 12 / __ \\/ / / / / /_/ / ___/ / ___/ __ \`__ \\/ / ___/ 13 / /_/ / /_/ / / ____/ / / (__ ) / / / / / / /__ 14 /_.___/\\__, / /_/ /_/ /_/____/_/ /_/ /_/_/\\___/ 15 /____/ 16 17You're seeing this page because you're accessing Slice Simulator 18directly, e.g: 19 20 - ${eN("http://localhost:3000/slice-simulator")} 21 22 23 24Slice Simulator is not meant to be accessed this way, to preview your 25slices, head over to Slice Machine UI: 26 27 - ${eN("http://localhost:9999")} 28 29 30 31If you believe this is an error, please reach out to us: 32 33 - ${eN("https://github.com/prismicio/slice-machine/issues/new/choose")} 34 35 36 37 38 39 - The Prismic team`}</div>`;class eZ{constructor(){this._listeners={}}on(e,t,r=null){var n;this._listeners[e]=[...null!=(n=this._listeners[e])?n:[],[t,r]]}off(e,t){var r;this._listeners[e]=(null!=(r=this._listeners[e])?r:[]).filter(([e,r])=>"function"==typeof t?e!==t:r!==t)}emit(e,t){var r;(null!=(r=this._listeners[e])?r:[]).forEach(e=>e[0](t))}}let e$=(e,t=16)=>{let r=0,n=null;return function(...i){let s=Date.now(),o=s-r;o>=t?(e.apply(this,i),r=s):(n&&clearTimeout(n),n=setTimeout(()=>{e.apply(this,i),r=Date.now()},t-o))}};void 0===eD&&(globalThis.process={env:{}});class eU extends eZ{constructor(e=eA(),t=eO()){super(),this._setActiveSlice=()=>{if(0===this.slices.length){this.activeSlice=null;return}let e=ek(this.slices.length);if(!e){this.activeSlice=null;return}let t=eC(e,this._mouse);if(!t){this.activeSlice=null;return}let r=Array.prototype.indexOf.call(e.children,t);this.activeSlice={rect:t.getBoundingClientRect(),sliceID:this.slices[r].slice_type,variationID:this.slices[r].variation,index:r}},this.setActiveSlice=e$(this._setActiveSlice,16),this._setSliceZoneFromSliceIDsLastCall=null,this._managedState=e,this._slices=t,this._activeSlice=null,this._message="",this._mouse={x:0,y:0}}
39set managedState(e){this._managedState=e,this.emit(eP.ManagedState,e)}get managedState(){return this._managedState}set slices(e){this._slices=e,this.message="",this.emit(eP.Slices,e)}get slices(){return this._slices}set activeSlice(e){this._activeSlice=e,this.emit(eP.ActiveSlice,e)}get activeSlice(){return this._activeSlice}set message(e){this._message=e,this.emit(eP.Message,e)}get message(){return this._message}async init(e){this._managedState=await this.load(e),await this.forceSliceChunksDownload(),this.setDefaultSliceZone(),this.emit(eP.ManagedState,this._managedState),window.addEventListener("mousemove",e=>{this._mouse={x:e.clientX,y:e.clientY}})}async load(e){try{let t=await ("function"==typeof e?e():e),r=eM.decode(t);if("Left"===r._tag)throw console.error(r.left),Error("State does not validate expected format, see console logs for detailed report");return{data:r.right,status:eq.Loaded,error:null}}catch(e){return console.error(e),{data:null,status:eq.Error,error:e}}}async reload(e){this.managedState=await this.load(e),this.recoverSliceZone()}_throwIfNotLoaded(e){var t;if(this.managedState.status===eq.Error)throw null!=(t=this.managedState.error)?t:Error("Unknown state error, see console logs for detailed report");if(this.managedState.status===eq.Pending||!this.managedState.data)throw Error(`\`StateManager.${e}()\` can only be called when the state is loaded, use \`StateManager.load()\` first`)}getLibraries(){return this._throwIfNotLoaded("getLibraries"),Object.entries(this.managedState.data).map(([e,t])=>{let r=t.components;return{path:e,slices:Object.values(r).map(e=>({id:e.id,name:e.name||e.id,variations:e.model.variations.map(e=>({id:e.id,name:e.name||e.id}))}))}})}getMocks(){return this._throwIfNotLoaded("getMocks"),Object.values(this.managedState.data).reduce((e,t)=>{let r=t.components;return Object.values(r).forEach(t=>{e[t.id]=Object.values(t.mocks).reduce((e,t)=>(e[t.variation]=t,e),{})}),e},{})}async forceSliceChunksDownload(){this.setSliceZoneFromSliceIDs(this.getLibraries().map(e=>e.slices.map(e=>({sliceID:e.id,variationID:e.variations[0].id}))).flat()),await new Promise(e=>setTimeout(e,0)),this.slices=[]}setDefaultSliceZone(){if(this._throwIfNotLoaded("setDefaultSliceZone"),"undefined"!=typeof window){let e=new URL(window.location.href);e.searchParams.has("sid")&&e.searchParams.has("vid")&&this.setSliceZoneFromSliceIDs([{sliceID:e.searchParams.get("sid"),variationID:e.searchParams.get("vid")}])}}recoverSliceZone(){this._setSliceZoneFromSliceIDsLastCall&&this.setSliceZoneFromSliceIDs(this._setSliceZoneFromSliceIDsLastCall)}setSliceZone(e){this._setSliceZoneFromSliceIDsLastCall=null,this.slices=e}setSliceZoneFromSliceIDs(e){this._setSliceZoneFromSliceIDsLastCall=e;let t=this.getMocks();this.slices=e.map(e=>{let r=e.sliceID,n=e.variationID;if(r in t&&n in t[r])return t[r][n]}).filter(Boolean)}}let ez=e=>{e.preventDefault(),e.stopPropagation()},eG=e=>{e.path&&e.path.slice(0,5).some(e=>e instanceof HTMLAnchorElement)&&(e.preventDefault(),e.stopPropagation())},eH=new class{constructor(e=eA(),t=eO()){this.stateManager=new eU(e,t),this._api=null,this._initialized=!1}async init(e){if(this._initialized){await this.stateManager.reload(e);return}this._initialized=!0,await this.stateManager.init(e);try{await this._initAPI()}catch(e){e instanceof Error&&"Receiver is currently not embedded as an iframe"===e.message&&!this.stateManager.slices.length&&(this.stateManager.message=eF),console.error(e);return}this._initListeners()}async _initAPI(){this._api=new V({[G.GetLibraries]:(e,t)=>t.success(this.stateManager.getLibraries()),[G.SetSliceZone]:(e,t)=>(this.stateManager.setSliceZone(e.data),t.success()),[G.SetSliceZoneFromSliceIDs]:(e,t)=>(this.stateManager.setSliceZoneFromSliceIDs(e.data),t.success()),[G.ScrollToSlice]:(e,t)=>{var r;if(e.data.sliceIndex<0)return t.error("`sliceIndex` must be > 0",400);if(e.data.sliceIndex>=this.stateManager.slices.length)return t.error(`\`sliceIndex\` must be < ${this.stateManager.slices.length} (\`<SliceZone />\` current length)`,400);let n=ek(this.stateManager.slices.length);
39if(!n)return t.error("Failed to find `<SliceZone />`",500);this.stateManager.activeSlice=null;let i=n.children[e.data.sliceIndex];return i?(i.scrollIntoView({behavior:e.data.behavior,block:e.data.block,inline:e.data.inline}),(null==(r=this._api)?void 0:r.options.activeSliceAPI)&&setTimeout(this.stateManager.setActiveSlice,750),t.success()):t.error("Failed fo find slice at index $`{req.data.sliceIndex}` in `<SliceZone />`",500)}}),await this._api.ready()}_initListeners(){window.addEventListener("mousemove",()=>{var e;(null==(e=this._api)?void 0:e.options.activeSliceAPI)&&this.stateManager.setActiveSlice()}),window.addEventListener("resize",()=>{var e;(null==(e=this._api)?void 0:e.options.activeSliceAPI)&&this.stateManager.setActiveSlice()}),window.addEventListener("mousewheel",()=>{var e;(null==(e=this._api)?void 0:e.options.activeSliceAPI)&&setTimeout(this.stateManager.setActiveSlice,200)}),this.stateManager.on(eP.Slices,()=>{var e;(null==(e=this._api)?void 0:e.options.activeSliceAPI)&&this.stateManager.setActiveSlice()}),this.stateManager.on(eP.ActiveSlice,async e=>{if(this._api)try{await this._api.setActiveSlice(e)}catch(e){if(e instanceof O&&400===e.response.status)console.error(e.response);else throw e}})}},eV=({sliceZone:e,background:t,zIndex:r,className:n})=>{let i=eR(),[s,o]=S.useState(()=>eA()),[a,l]=S.useState(()=>eO()),[u,c]=S.useState(()=>eE());return S.useEffect(()=>(eH.stateManager.on(eP.ManagedState,e=>{o(e)},"simulator-managed-state"),eH.stateManager.on(eP.Slices,e=>{l(e)},"simulator-slices"),eH.stateManager.on(eP.Message,e=>{c(e)},"simulator-message"),eH.init(i.state),()=>{eH.stateManager.off(eP.ManagedState,"simulator-managed-state"),eH.stateManager.off(eP.Slices,"simulator-slices"),eH.stateManager.off(eP.Message,"simulator-message")}),[]),(0,b.jsx)("div",{className:[eL,n].filter(Boolean).join(" "),style:{zIndex:void 0===r?i.zIndex:r??void 0,position:"fixed",top:0,left:0,width:"100%",height:"100vh",overflow:"auto",background:void 0===t?i.background:t??void 0},children:u?(0,b.jsx)("article",{dangerouslySetInnerHTML:{__html:u}}):a.length?(0,b.jsx)("div",{id:"root",className:ej,style:s.status!==eq.Loaded?{display:"none"}:void 0,onClickCapture:eG,onSubmitCapture:ez,children:(0,b.jsx)(e,{slices:a})}):null})}},855:function(e){"use strict";e.exports=JSON.parse('{"100":"Continue","101":"Switching Protocols","102":"Processing","103":"Early Hints","200":"OK","201":"Created","202":"Accepted","203":"Non-Authoritative Information","204":"No Content","205":"Reset Content","206":"Partial Content","207":"Multi-Status","208":"Already Reported","226":"IM Used","300":"Multiple Choices","301":"Moved Permanently","302":"Found","303":"See Other","304":"Not Modified","305":"Use Proxy","307":"Temporary Redirect","308":"Permanent Redirect","400":"Bad Request","401":"Unauthorized","402":"Payment Required","403":"Forbidden","404":"Not Found","405":"Method Not Allowed","406":"Not Acceptable","407":"Proxy Authentication Required","408":"Request Timeout","409":"Conflict","410":"Gone","411":"Length Required","412":"Precondition Failed","413":"Payload Too Large","414":"URI Too Long","415":"Unsupported Media Type","416":"Range Not Satisfiable","417":"Expectation Failed","418":"I\'m a Teapot","421":"Misdirected Request","422":"Unprocessable Entity","423":"Locked","424":"Failed Dependency","425":"Too Early","426":"Upgrade Required","428":"Precondition Required","429":"Too Many Requests","431":"Request Header Fields Too Large","451":"Unavailable For Legal Reasons","500":"Internal Server Error","501":"Not Implemented","502":"Bad Gateway","503":"Service Unavailable","504":"Gateway Timeout","505":"HTTP Version Not Supported","506":"Variant Also Negotiates","507":"Insufficient Storage","508":"Loop Detected","509":"Bandwidth Limit Exceeded","510":"Not Extended","511":"Network Authentication Required"}')}}]);
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.