1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,48716,e=>{"use strict";e.s(["isSafeHref",0,function(e){if(!e)return!1;let t=function(e){let t="";for(let n of e){let e=n.charCodeAt(0);e>31&&127!==e&&(t+=n)}return t.replace(/^\s+/,"")}(e);if(!t)return!1;if(t.startsWith("//")||t.startsWith("/")||t.startsWith("#")||t.startsWith("?"))return!0;let n=t.match(/^([a-z][a-z0-9+.-]*):/i)?.[1]?.toLowerCase();return!n||"http"===n||"https"===n||"mailto"===n||"tel"===n}])},43108,e=>{"use strict";e.i(98888);let{redirect:t,usePathname:n,useRouter:r}=e.i(68711).navigation;e.s(["LOCALE_PREFERENCE_COOKIE_MAX_AGE_SECONDS",0,31536e3,"LOCALE_PREFERENCE_COOKIE_NAME",0,"CB_LOCALE_PREFERENCE","usePathname",0,n,"useRouter",0,r])},16711,e=>{"use strict";var t=e.i(98888);e.s(["Link",()=>t.default])},48148,e=>{"use strict";var t=e.i(61745);function n(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let r=n(0,t.useTranslations);n(0,t.useFormatter),e.s(["useTranslations",0,r])},67687,e=>{"use strict";var t=e.i(1656);let n=/\b(log\s*in|login|account)\b/i,r=/(?:\/|^)(?:account|login)(?:[/?#]|$)/i;function i(e){return"5lYtfmhlejBYAv90vPUbpt"===e.entryId||n.test(e.label)||r.test(e.url)}function o(e){return e&&i(e)?/\/account\/?$/i.test(e.url)?{...e,url:`${e.url.replace(/\/+$/,"")}/login`,newTab:e.newTab??!0}:e:null}let s=/^talks?\s*(?:&|and)\s*tours?$/i;function a(e){var t;let n=e?.fields,r=(t=String(n?.label??""),"/tours"===(String(n?.url??"#").replace(/[#?].*$/,"").replace(/\/+$/,"")||"/")&&s.test(t.trim())?"Tours":t),i=function(e,t){if(!t.startsWith("/"))return t;let n=e.trim();try{let e=new URL(t,"https://crystalbridges.org"),r=e.pathname.replace(/\/+$/,"")||"/";if("/art-exhibitions"===r&&"#installations"===e.hash)return e.hash="#outdoor art",`${r}${e.search}${e.hash}`;let i=e.hash.toLowerCase();if(("/calendar"===r||r.endsWith("/calendar"))&&("#the-hub"===i||"#the_hub"===i))return"/the-hub";if(/^accessibility$/i.test(n)&&"/visit/accessibility"===r)return"/accessibility-statement"}catch{}return t}(r,String(n?.url??"#"));return{entryId:e?.sys?.id||void 0,label:r,url:i,...n?.newTab?{newTab:!0}:{}}}function l(e){let n=e?.fields,r=(n?.linkGroups??[]).map(e=>(e.fields?.links??[]).map(a)),i=n?.featured,o=i?.fields,s=o?{title:String(o.title??""),description:String(o.description??""),imageUrl:(0,t.assetUrl)(o.image)||void 0,cta:a(o.cta)}:void 0;return{label:String(n?.label??""),sectionHref:n?.sectionHref?String(n.sectionHref):void 0,tagline:n?.tagline?String(n.tagline):void 0,blurb:n?.blurb?String(n.blurb):void 0,columns:r,featured:s}}e.s(["isAccountLoginNavLink",0,i,"mapGlobalHeaderEntry",0,function(e,t){let n=e?.fields,r=(n?.primaryNav??[]).map(l),i=(n?.secondaryNavLinks??[]).map(a),o=n?.headerCta?a(n.headerCta):t.headerCta;return{primaryNav:r.length>0?r:t.primaryNav,secondaryNav:i,headerCta:o,languageSwitcherEnabled:n?.languageSwitcherEnabled??t.languageSwitcherEnabled}},"mapNavLink",0,a,"resolveAccountLoginLink",0,function(e){return o(e.headerCta)??o(e.secondaryNav.find(i))}])},30747,e=>{"use strict";var t=e.i(71645);function n(){return window.matchMedia?.("(prefers-reduced-motion: reduce)")?.matches??!1}e.s(["usePrefersReducedMotion",0,function(){return(0,t.useSyncExternalStore)(e=>{let t=window.matchMedia("(prefers-reduced-motion: reduce)"),n=()=>e();return t.addEventListener("change",n),()=>t.removeEventListener("change",n)},n,()=>!0)}])},89038,e=>{"use strict";var t=e.i(71645);e.s(["useFocusTrap",0,function(e,n){let r=(0,t.useRef)(null);(0,t.useEffect)(()=>{if(!n)return;let t=e.current;if(!t)return;r.current=document.activeElement;let i=()=>Array.from(t.querySelectorAll('a[href], area[href], button:not([disabled]), input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), iframe, object, embed, [tabindex]:not([tabindex="-1"]), [contenteditable="true"]')).filter(e=>!e.hasAttribute("inert")&&null!==e.offsetParent),o=i()[0];function s(e){if("Tab"!==e.key)return;let t=i();if(0===t.length)return void e.preventDefault();let n=t[0],r=t[t.length-1],o=document.activeElement,s=!!o&&a.contains(o);e.shiftKey?o!==n&&s||(e.preventDefault(),r.focus()):o!==r&&s||(e.preventDefault(),n.focus())}o?.focus();let a=t;return a.addEventListener("keydown",s),()=>{a.removeEventListener("keydown",s);let e=r.current;e&&document.contains(e)&&e.focus()}},[e,n])}])},39828,e=>{"use strict";let t,n,r;var i,o,s,a,l,c,u={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},d={0:8203,1:8204,2:8205,3:65279},f={0:String.fromCodePoint(d[0]),1:String.fromCodePoint(d[1]),2:String.fromCodePoint(d[2]),3:String.fromCodePoint(d[3])},p=[,,,,].fill(String.fromCodePoint(d[0])).join(""),h=Object.fromEntries(Object.entries(f).map(e=>[e[1],+e[0]])),g=Object.fromEntries(Object.entries(u).map(e=>e.reverse())),v=`${Object.values(u).map(e=>`\\u{${e.toString(16)}}`).join("")}`,m=RegExp(`[${v}]{4,}`,"gu");function y(e,t){return function(e,t,n="auto"){return!0===n||"auto"===n&&(!(!Number.isNaN(Number(e))||/[a-z]/i.test(e)&&!/\d+(?:[-:\/]\d+){2}(?:T\d+(?:[-:\/]\d+){1,2}(\.\d+)?Z?)?/.test(e))&&Date.parse(e)||function(e){try{new URL(e,e.startsWith("/")?"https://acme.com":void 0)}catch{return!1}return!0}(e))?e:`${e}${function(e){let t=JSON.stringify(e),n=new TextEncoder().encode(t),r="";for(let e=0;e<n.length;e++){let t=n[e];r+=f[t>>6&3]+f[t>>4&3]+f[t>>2&3]+f[3&t]}return p+r}(t)}`}(e,t)}var b=function(){if(l)return a;l=1;var e=function(){if(s)return o;s=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString;return o=function(n,r,i){if("[object Function]"!==t.call(r))throw TypeError("iterator must be a function");var o=n.length;if(o===+o)for(var s=0;s<o;s++)r.call(i,n[s],s,n);else for(var a in n)e.call(n,a)&&r.call(i,n[a],a,n)}}();function t(e,n,r){if(3==arguments.length)return t.set(e,n,r);if(2==arguments.length)return t.get(e,n);var i=t.bind(t,e);
1for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o].bind(i,e));return i}return a=t,t.get=function(e,n){for(var r=Array.isArray(n)?n:t.parse(n),i=0;i<r.length;++i){var o=r[i];if(!("object"==typeof e&&o in e))throw Error("Invalid reference token: "+o);e=e[o]}return e},t.set=function(e,n,r){var i=Array.isArray(n)?n:t.parse(n),o=i[0];if(0===i.length)throw Error("Can not set the root object");for(var s=0;s<i.length-1;++s){var a=i[s];"string"!=typeof a&&"number"!=typeof a&&(a=String(a)),"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&("-"===a&&Array.isArray(e)&&(a=e.length),o=i[s+1],a in e||(o.match(/^(\d+|-)$/)?e[a]=[]:e[a]={}),e=e[a])}return"-"===o&&Array.isArray(e)&&(o=e.length),e[o]=r,this},t.remove=function(e,n){var r=Array.isArray(n)?n:t.parse(n),i=r[r.length-1];if(void 0===i)throw Error('Invalid JSON pointer for remove: "'+n+'"');var o=t.get(e,r.slice(0,-1));if(Array.isArray(o)){var s=+i;if(""===i&&isNaN(s))throw Error('Invalid array index: "'+i+'"');Array.prototype.splice.call(o,s,1)}else delete o[i]},t.dict=function(e,n){var r={};return t.walk(e,function(e,t){r[t]=e},n),r},t.walk=function(n,r,i){var o=[];i=i||function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t},function n(s){e(s,function(e,s){o.push(String(s)),i(e)?n(e):r(e,t.compile(o)),o.pop()})}(n)},t.has=function(e,n){try{t.get(e,n)}catch{return!1}return!0},t.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},t.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},t.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(t.unescape)},t.compile=function(e){return 0===e.length?"":"/"+e.map(t.escape).join("/")},a}();let E=(e,t="")=>{let n=[],r=b.get(e,t);if("content"in r&&r.content)for(let i=0;i<r.content.length;i++)"text"===r.content[i].nodeType?n.push(`${t}/content/${i}/value`):n.push(...E(e,`${t}/content/${i}`));return n},_=({entityId:e,entityType:t,space:n,environment:r,field:i,locale:o,editorInterface:s,fieldType:a,targetOrigin:l,platform:c})=>{let u={origin:"contentful.com",href:`${l||"https://app.contentful.com"}/spaces/${n}/environments/${r}/${"Entry"===t?"entries":"assets"}/${e}/?focusedField=${i}&focusedLocale=${o}&source=vercel-content-link`,contentful:{editorInterface:s,fieldType:a}};return"vercel"===c&&delete u.contentful,u},T=e=>["builtin","sidebar-builtin","editor-builtin"].includes(e),C=e=>L.includes(e),w=["nt_experiences","nt_name","nt_description","nt_audience_id","nt_rules","nt_metadata","nt_experience_id","nt_type","nt_config","nt_audience","nt_variants"],S=w.map(e=>e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase())),O=[...w,...S],I=e=>O.includes(e);function A(e){if("function"==typeof structuredClone)return structuredClone(e);try{return JSON.parse(JSON.stringify(e))}catch(t){return console.warn("Failed to clone data:",e,t),e}}let L=["singleLine","tagEditor","listInput","checkbox","richTextEditor","multipleLine"];function M(e,t,n,r,i,o,s){let a=s?t[s]:t;switch(e){case"Symbol":{let e=y(a,n);b.set(r,i,e);break}case"Text":{let e=y(a,n);b.set(r,i,e);break}case"RichText":(({pointer:e,mappings:t,data:n,hiddenStrings:r})=>{let i=t[e];if(i)for(let o of(delete t[e],E(n,e))){t[o]=i;let e=y(b.get(n,o),r);b.set(n,o,e)}else for(let t of E(n,e)){let e=y(b.get(n,t),r);b.set(n,t,e)}})({pointer:"",mappings:o,data:a,hiddenStrings:n});break;case"Array":{let e=a.map(e=>"string"==typeof e?y(e,n):e);b.set(r,i,e)}}}let D=(e,t,n,r,i)=>{if(!e.fields)return;let{contentSourceMaps:o}=e.sys;if(!o)return;let{mappings:s}=o;for(let o in s){let{source:a}=s[o],l=e.sys.space.sys.id,c=e.sys.environment.sys.id,u=e.sys.id,d=e.sys.type,f=t[a.fieldType],p=n[a.editorInterface];if(T(p.widgetNamespace)&&!C(p.widgetId))continue;let h=o.startsWith("/")?o:`/${o}`;if(b.has(e,h)){let t=b.get(e,h);if(null===t)return;let n=h.split("/").pop();if(!n)return void console.error("Field name could not be extracted from the pointer",h);if(I(n))continue;let o=e.sys.locale;if(o){let a=_({entityId:u,entityType:d,space:l,environment:c,field:n,locale:o,editorInterface:p,fieldType:f,targetOrigin:r,platform:i});M(f,t,a,e,h,s)}else Object.keys(t).forEach(o=>{let a=_({entityId:u,entityType:d,space:l,environment:c,field:n,locale:o,editorInterface:p,fieldType:f,targetOrigin:r,platform:i});M(f,t,a,e,`${h}/${o}`,s,o)})}}},N="4.9.8",R=!1,j=e=>(...t)=>{R&&console[e](...t)},P={error:j("error"),warn:j("warn"),log:j("log")},U="live-preview-editor",k="live-preview-sdk",x=new Set(["AREA","BASE","BR","COL","EMBED","HR","IMG","INPUT","LINK","META","PARAM","SOURCE","TRACK","WBR"]);function $(e,t,n){let r={...t,method:e,source:k,location:window.location.href,version:N};
1P.log("Send message",r),n.forEach(e=>{window.top?.postMessage(r,e)})}function B(e,t=100){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}}var z="u">typeof globalThis?globalThis:"u">typeof window?window:e.g,F={exports:{}};F.exports;let G=(c||(c=1,function(e,t){var n,r,i,o="__lodash_hash_undefined__",s="[object Arguments]",a="[object Array]",l="[object Boolean]",c="[object Date]",u="[object Error]",d="[object Function]",f="[object Map]",p="[object Number]",h="[object Object]",g="[object Promise]",v="[object RegExp]",m="[object Set]",y="[object String]",b="[object WeakMap]",E="[object ArrayBuffer]",_="[object DataView]",T=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[s]=w[a]=w[E]=w[l]=w[_]=w[c]=w[u]=w[d]=w[f]=w[p]=w[h]=w[v]=w[m]=w[y]=w[b]=!1;var S="object"==typeof z&&z&&z.Object===Object&&z,O="object"==typeof self&&self&&self.Object===Object&&self,I=S||O||Function("return this")(),A=t&&!t.nodeType&&t,L=A&&e&&!e.nodeType&&e,M=L&&L.exports===A,D=M&&S.process,N=function(){try{return D&&D.binding&&D.binding("util")}catch{}}(),R=N&&N.isTypedArray;function j(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function P(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var U=Array.prototype,k=Function.prototype,x=Object.prototype,$=I["__core-js_shared__"],B=k.toString,F=x.hasOwnProperty,G=(n=/[^.]+$/.exec($&&$.keys&&$.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",V=x.toString,Y=RegExp("^"+B.call(F).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H=M?I.Buffer:void 0,K=I.Symbol,W=I.Uint8Array,q=x.propertyIsEnumerable,J=U.splice,Z=K?K.toStringTag:void 0,X=Object.getOwnPropertySymbols,Q=H?H.isBuffer:void 0,ee=(r=Object.keys,i=Object,function(e){return r(i(e))}),et=eS(I,"DataView"),en=eS(I,"Map"),er=eS(I,"Promise"),ei=eS(I,"Set"),eo=eS(I,"WeakMap"),es=eS(Object,"create"),ea=eA(et),el=eA(en),ec=eA(er),eu=eA(ei),ed=eA(eo),ef=K?K.prototype:void 0,ep=ef?ef.valueOf:void 0;function eh(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function eg(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ev(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function em(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ev;++t<n;)this.add(e[t])}function ey(e){var t=this.__data__=new eg(e);this.size=t.size}function eb(e,t){for(var n=e.length;n--;)if(eL(e[n][0],t))return n;return -1}function eE(e){var t;return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=F.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch{}var i=V.call(e);return r&&(t?e[Z]=n:delete e[Z]),i}(e):(t=e,V.call(t))}function e_(e){return eU(e)&&eE(e)==s}function eT(e,t,n,r,i,o){var s=1&n,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,f=2&n?new em:void 0;for(o.set(e,t),o.set(t,e);++u<a;){var p=e[u],h=t[u];if(r)var g=s?r(h,p,u,t,e,o):r(p,h,u,e,t,o);if(void 0!==g){if(g)continue;d=!1;break}if(f){if(!function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}(t,function(e,t){if(!f.has(t)&&(p===e||i(p,e,n,r,o)))return f.push(t)})){d=!1;break}}else if(!(p===h||i(p,h,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function eC(e){var t;return t=ex(e),eD(e)?t:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(t,eO(e))}function ew(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function eS(e,t){var n,r=e?.[t];return!(!eP(r)||(n=r,G&&G in n))&&(eR(r)?Y:T).test(eA(r))?r:void 0}eh.prototype.clear=function(){this.__data__=es?es(null):{},this.size=0},eh.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},eh.prototype.get=function(e){var t=this.__data__;if(es){var n=t[e];return n===o?void 0:n}return F.call(t,e)?t[e]:void 0},eh.prototype.has=function(e){var t=this.__data__;return es?void 0!==t[e]:F.call(t,e)},eh.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=es&&void 0===t?o:t,this},eg.prototype.clear=function(){this.__data__=[],this.size=0},eg.prototype.delete=function(e){var t=this.__data__,n=eb(t,e);return!(n<0)&&(n==t.length-1?t.pop():J.call(t,n,1),--this.size,!0)},eg.prototype.get=function(e){var t=this.__data__,n=eb(t,e);return n<0?void 0:t[n][1]},eg.prototype.has=function(e){return eb(this.__data__,e)>-1},eg.prototype.set=function(e,t){var n=this.__data__,r=eb(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ev.prototype.clear=function(){this.size=0,this.__data__={hash:new eh,map:new(en||eg),string:new eh}},ev.prototype.delete=function(e){var t=ew(this,e).delete(e);return this.size-=!!t,t},ev.prototype.get=function(e){return ew(this,e).get(e)},ev.prototype.has=function(e){return ew(this,e).has(e)},ev.prototype.set=function(e,t){var n=ew(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},em.prototype.add=em.prototype.push=function(e){return this.__data__.set(e,o),this},em.prototype.has=function(e){return this.__data__.has(e)},ey.prototype.clear=function(){this.__data__=new eg,this.size=0},ey.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ey.prototype.get=function(e){return this.__data__.get(e)},ey.prototype.has=function(e){return this.__data__.has(e)},ey.prototype.set=function(e,t){var n=this.__data__;if(n instanceof eg){var r=n.__data__;if(!en||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ev(r)}return n.set(e,t),this.size=n.size,this};var eO=X?function(e){return null==e?[]:function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}(X(e=Object(e)),function(t){return q.call(e,t)})}:function(){return[]},eI=eE;function eA(e){if(null!=e){try{return B.call(e)}catch{}try{return e+""}catch{}}return""}function eL(e,t){return e===t||e!=e&&t!=t}(et&&eI(new et(new ArrayBuffer(1)))!=_||en&&eI(new en)!=f||er&&eI(er.resolve())!=g||ei&&eI(new ei)!=m||eo&&eI(new eo)!=b)&&(eI=function(e){var t=eE(e),n=t==h?e.constructor:void 0,r=n?eA(n):"";if(r)switch(r){case ea:return _;case el:return f;case ec:return g;case eu:return m;case ed:return b}return t});var eM=e_(function(){return arguments}())?e_:function(e){return eU(e)&&F.call(e,"callee")&&!q.call(e,"callee")},eD=Array.isArray,eN=Q||function(){return!1};function eR(e){if(!eP(e))return!1;var t=eE(e);return t==d||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ej(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eP(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function eU(e){return null!=e&&"object"==typeof e}var ek=R?function(e){return R(e)}:function(e){return eU(e)&&ej(e.length)&&!!w[eE(e)]};function ex(e){return null!=e&&ej(e.length)&&!eR(e)?function(e){var t,n,r=eD(e),i=!r&&eM(e),o=!r&&!i&&eN(e),s=!r&&!i&&!o&&ek(e),a=r||i||o||s,l=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=l.length;for(var u in e){F.call(e,u)&&!(a&&("length"==u||o&&("offset"==u||"parent"==u)||s&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||(t=u,(n=(n=c)??0x1fffffffffffff)&&("number"==typeof t||C.test(t))&&t>-1&&t%1==0&&t<n)))&&l.push(u)}return l}(e):function(e){if(n=(t=e)&&t.constructor,t!==("function"==typeof n&&n.prototype||x))return ee(e);var t,n,r=[];for(var i in Object(e))F.call(e,i)&&"constructor"!=i&&r.push(i);return r}(e)}e.exports=function(e,t){return function e(t,n,r,i,o){return t===n||(null!=t&&null!=n&&(eU(t)||eU(n))?function(e,t,n,r,i,o){var d=eD(e),g=eD(t),b=d?a:eI(e),T=g?a:eI(t);b=b==s?h:b,T=T==s?h:T;var C=b==h,w=T==h,S=b==T;if(S&&eN(e)){if(!eN(t))return!1;d=!0,C=!1}if(S&&!C)return o||(o=new ey),d||ek(e)?eT(e,t,n,r,i,o):function(e,t,n,r,i,o,s){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case E:return!(e.byteLength!=t.byteLength||!o(new W(e),new W(t)));case l:case c:case p:return eL(+e,+t);case u:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case f:var a=j;case m:var d=1&r;if(a||(a=P),e.size!=t.size&&!d)break;var h=s.get(e);if(h)return h==t;r|=2,s.set(e,t);var g=eT(a(e),a(t),r,i,o,s);return s.delete(e),g;case"[object Symbol]":if(ep)return ep.call(e)==ep.call(t)}return!1}(e,t,b,n,r,i,o);if(!(1&n)){var O=C&&F.call(e,"__wrapped__"),I=w&&F.call(t,"__wrapped__");
1if(O||I){var A=O?e.value():e,L=I?t.value():t;return o||(o=new ey),i(A,L,n,r,o)}}return!!S&&(o||(o=new ey),function(e,t,n,r,i,o){var s=1&n,a=eC(e),l=a.length;if(l!=eC(t).length&&!s)return!1;for(var c=l;c--;){var u=a[c];if(!(s?u in t:F.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var f=!0;o.set(e,t),o.set(t,e);for(var p=s;++c<l;){var h=e[u=a[c]],g=t[u];if(r)var v=s?r(g,h,u,t,e,o):r(h,g,u,e,t,o);if(!(void 0===v?h===g||i(h,g,n,r,o):v)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var m=e.constructor,y=t.constructor;m!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof m&&m instanceof m&&"function"==typeof y&&y instanceof y)&&(f=!1)}return o.delete(e),o.delete(t),f}(e,t,n,r,i,o))}(t,n,r,i,e,o):t!=t&&n!=n)}(e,t)}}(F,F.exports)),(i=F.exports)&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default"))?i.default:i;var V=((t=V||{}).FIELD_ID="data-contentful-field-id",t.ENTRY_ID="data-contentful-entry-id",t.ASSET_ID="data-contentful-asset-id",t.LOCALE="data-contentful-locale",t.SPACE="data-contentful-space",t.ENVIRONMENT="data-contentful-environment",t),Y=((n=Y||{}).MOUSE_MOVE="MOUSE_MOVE",n.SCROLL_START="SCROLL_START",n.SCROLL_END="SCROLL_END",n.RESIZE_START="RESIZE_START",n.RESIZE_END="RESIZE_END",n.TAGGED_ELEMENTS="TAGGED_ELEMENTS",n.INSPECTOR_MODE_CHANGED="INSPECTOR_MODE_CHANGED",n),H={0:8203,1:8204,2:8205,3:8290,4:8291,5:8288,6:65279,7:8289,8:119155,9:119156,a:119157,b:119158,c:119159,d:119160,e:119161,f:119162},K={0:8203,1:8204,2:8205,3:65279},W={0:String.fromCodePoint(K[0]),1:String.fromCodePoint(K[1]),2:String.fromCodePoint(K[2]),3:String.fromCodePoint(K[3])};[,,,,].fill(String.fromCodePoint(K[0])).join(""),Object.fromEntries(Object.entries(W).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(H).map(e=>e.reverse()));var q=`${Object.values(H).map(e=>`\\u{${e.toString(16)}}`).join("")}`,J=RegExp(`[${q}]{4,}`,"gu");function Z(e,t){return e.href===t.href}function X({root:e=window.document,options:t}){var n,r;let i,o=[...t.ignoreManuallyTaggedElements?[]:e.querySelectorAll(`[${V.ASSET_ID}][${V.FIELD_ID}], [${V.ENTRY_ID}][${V.FIELD_ID}]`)].map(e=>({element:e,attributes:function(e,t){if(!(e&&e.nodeType===Node.ELEMENT_NODE&&!(!e.hasAttribute(V.FIELD_ID)||!e.hasAttribute(V.ENTRY_ID)&&!e.hasAttribute(V.ASSET_ID))))return null;let n={fieldId:e.getAttribute(V.FIELD_ID),locale:e.getAttribute(V.LOCALE)??t.locale,environment:e.getAttribute(V.ENVIRONMENT)??t.environment,space:e.getAttribute(V.SPACE)??t.space,manuallyTagged:!0};if(!n.fieldId)return P.warn("Element is missing field ID attribute and cannot be tagged",{id:e.getAttribute(V.ENTRY_ID)??e.getAttribute(V.ASSET_ID),sharedProps:n}),null;let r=e.getAttribute(V.ENTRY_ID);if(r)return{...n,entryId:r};let i=e.getAttribute(V.ASSET_ID);return i?{...n,assetId:i}:null}(e,t)})).filter(({attributes:e})=>null!==e),s=[];for(let{node:t,text:r}of(n="body"in e?e.body:e,i=[],"function"==typeof n.matches&&n.matches("*")&&(i=[n]),[...i,...Array.from(n.querySelectorAll("*:not(script,style,meta,title)"))].map(e=>{var t;return{node:e,text:(t=e).matches("input[type=submit], input[type=button], input[type=reset]")?t.value:t.matches("img, video")?t.alt:Array.from(t.childNodes).filter(e=>e.nodeType===Node.TEXT_NODE&&!!e.textContent).map(e=>e.textContent).join("")}}).filter(({text:e})=>!!(e&&e.match(J))))){let e=function(e){let t=e.match(m);return t?function(e,t=!1){let n=Array.from(e);if(n.length%2==0){if(n.length%4||!e.startsWith(p))return function(e,t){var n;let r=[];for(let t=.5*e.length;t--;){let n=`${g[e[2*t].codePointAt(0)]}${g[e[2*t+1].codePointAt(0)]}`;r.unshift(String.fromCharCode(parseInt(n,16)))}let i=[],o=[r.join("")],s=10;for(;o.length;){let e=o.shift();try{if(i.push(JSON.parse(e)),t)break}catch(r){if(!s--)throw r;let t=+(null==(n=r.message.match(/\sposition\s(\d+)$/))?void 0:n[1]);if(!t)throw r;o.unshift(e.substring(0,t),e.substring(t))}}return i}(n,t)}else throw Error("Encoded data has invalid length");let r=n.slice(4),i=new Uint8Array(r.length/4);for(let e=0;e<i.length;e++)i[e]=h[r[4*e]]<<6|h[r[4*e+1]]<<4|h[r[4*e+2]]<<2|h[r[4*e+3]];let o=new TextDecoder().decode(i);if(t){let e=o.indexOf("\0");return -1===e&&(e=o.length),[JSON.parse(o.slice(0,e))]}
1return o.split("\0").filter(Boolean).map(e=>JSON.parse(e))}(t[0],!0)[0]:void 0}(r);if(!e||!e.origin.includes("contentful.com")){P.warn("Element has missing or invalid ContentSourceMap, please check if you have correctly enabled ContentSourceMaps and that the element's data originates from Contentful",{node:t,sourceMap:e});continue}if(!(function(e,t){for(let n of t)if(n.element===e||n.element.contains(e))return!0;return!1}(t,o)||s.some(n=>n.element.contains(t)&&Z(n.sourceMap,e)))){if(t.matches("img")){let n=t.closest("figure")||t.closest("picture")||t;s.push({element:n,sourceMap:e});continue}s.push({element:t,sourceMap:e})}}let a=s.filter((e,t)=>s.findIndex(t=>!(!Z(e.sourceMap,t.sourceMap)||e.element!==t.element))===t);for(let{element:e,sourceMap:t}of a){let n=null;if(t.href){let r=ee(t.href);if(!r)continue;if("Asset"===r.entityType)n={fieldId:r.fieldId,locale:r.locale,space:r.space,environment:r.environment,assetId:r.entityId};else if("Entry"===r.entityType)n={fieldId:r.fieldId,locale:r.locale,space:r.space,environment:r.environment,entryId:r.entityId};else{P.warn("Unknown entityType",{element:e,sourceMap:t});continue}}else{if(t.contentful&&(r=t.contentful)&&"string"==typeof r.entity&&"string"==typeof r.field&&"string"==typeof r.locale&&"string"==typeof r.space&&"string"==typeof r.environment&&("Asset"===r.entityType||"Entry"===r.entityType)){let r=t.contentful;if(!r.entity||!r.field||!r.locale||!r.space||!r.environment){P.warn("Element has missing information in their ContentSourceMap, please check if you have restricted the platform for the encoding. (Missing parameters in `contentful`)",{element:e,sourceMap:t});continue}let i={fieldId:r.field,locale:r.locale,space:r.space,environment:r.environment};if("Asset"===r.entityType)i.assetId=r.entity,n=i;else if("Entry"===r.entityType)i.entryId=r.entity,n=i;else{P.warn("Unknown entityType in contentful data",{element:e,sourceMap:t});continue}}else{P.warn("Element has neither href nor contentful data in their ContentSourceMap, unable to extract attributes.",{element:e,sourceMap:t});continue}}o.push({element:e,attributes:n})}let l=o.filter(({attributes:e})=>e?.manuallyTagged===!1||!e?.manuallyTagged).length;return{taggedElements:o,manuallyTaggedCount:o.length-l,automaticallyTaggedCount:l,autoTaggedElements:a}}function Q({options:e}){return[...new Set(X({options:e}).taggedElements.map(e=>e.attributes&&"entryId"in e.attributes?e.attributes.entryId:null).filter(Boolean))]}function ee(e){try{let t,n,r=new URL(e),i=r.searchParams.get("focusedField"),o=r.searchParams.get("focusedLocale"),s=r.pathname.split("/").filter(Boolean),a=s.indexOf("spaces"),l=s.indexOf("environments"),c=-1!==a?s[a+1]:void 0,u=-1!==l?s[l+1]:void 0,d=s.indexOf("entries"),f=s.indexOf("assets");return -1!==d?(t="Entry",n=s[d+1]):-1!==f&&(t="Asset",n=s[f+1]),t&&n?i?o?c&&u?{entityId:n,entityType:t,fieldId:i,locale:o,space:c,environment:u}:(console.warn("Missing space or environment in href path",{href:e}),null):(console.warn("Missing focusedLocale query parameter in href",{href:e}),null):(console.warn("Missing focusedField query parameter in href",{href:e}),null):(console.warn("Unable to determine entityType or entityId from href",{href:e}),null)}catch(t){return console.warn("Invalid href URL",{href:e,error:t}),null}}class et{constructor(e){this.options=e,this.intersectionObserver=new IntersectionObserver(e=>{let t=this.taggedElements;for(let n of e)if(n.isIntersecting)for(let e of t)e.element===n.target&&(e.coordinates=n.intersectionRect,e.isVisible=n.target.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}));this.taggedElements=t,this.sendTaggedElements()},{threshold:.15})}delay=300;isScrolling=!1;scrollTimeout;isResizing=!1;resizeTimeout;hoveredElement;taggedElements=[];manuallyTaggedCount=0;automaticallyTaggedCount=0;releaseId;intersectionObserver;observersCB=[];cleanupCB=[];init=()=>{this.cleanupCB=[this.addScrollListener(),this.addMutationListener(document.body),this.addResizeListener(),this.addHoverListener()],this.updateElements()};cleanup=()=>{this.observersCB.forEach(e=>
vendor: 1,388 bytes, line 1
1e()),this.cleanupCB.forEach(e=>e())};receiveMessage=e=>{if(e.method===Y.INSPECTOR_MODE_CHANGED){let{isInspectorActive:t,releaseId:n}=e;this.releaseId=n,t?this.init():this.cleanup()}};observe=e=>{this.intersectionObserver.observe(e);let t=this.addMutationListener(e);this.observersCB.push(t,()=>this.intersectionObserver.unobserve(e))};addScrollListener=()=>{let{targetOrigin:e}=this.options,t=()=>{this.isScrolling||(this.isScrolling=!0,$(Y.SCROLL_START,{},e)),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.isScrolling=!1,$(Y.SCROLL_END,{},e),this.updateElements()},this.delay)},n={capture:!0,passive:!0};return window.addEventListener("scroll",t,n),()=>window.removeEventListener("scroll",t,n)};addMutationListener=e=>{let t=new MutationObserver(()=>{this.updateElements()});return t.observe(e,{characterData:!0,attributes:!0,attributeFilter:[V.ENTRY_ID,V.FIELD_ID,V.LOCALE,V.SPACE,V.ENVIRONMENT,"class","style"],childList:!0,subtree:!0}),()=>t.disconnect()};addResizeListener=()=>{let{targetOrigin:e}=this.options,t=new ResizeObserver(()=>{this.isResizing||(this.isResizing=!0,$(Y.RESIZE_START,{},e)),this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.isResizing=!1,$(Y.RESIZE_END,{},e),this.updateElements()},this.delay)});return t.observe(document.body),()=>t.disconnect()};addHoverListener=()=>
1{let e=B(e=>{let t;for(let n of e){let e=n;if("BODY"===e.nodeName)break;let r=this.taggedElements.find(t=>t.element===e);if(r){t=r;break}}this.hoveredElement=t?.element,this.updateElements()},this.delay),t=t=>{e(t.composedPath())};return window.addEventListener("mouseover",t,{passive:!0}),()=>window.removeEventListener("mouseover",t)};sendTaggedElements=()=>{$(Y.TAGGED_ELEMENTS,{elements:this.taggedElements.map(e=>({coordinates:e.coordinates,isVisible:!!e.isVisible,attributes:e.attributes,isHovered:this.hoveredElement===e.element,isCoveredByOtherElement:!!e.isCoveredByOtherElement,snapshot:x.has(e.element.tagName.toUpperCase())?{[e.element.tagName.toLowerCase()]:Array.from(e.element.attributes).map(e=>`${e.name}="${e.value}"`).join(" ")}:{[e.element.tagName.toLowerCase()]:e.element.innerHTML}})),automaticallyTaggedCount:this.automaticallyTaggedCount,manuallyTaggedCount:this.manuallyTaggedCount,...void 0!==this.releaseId&&{releaseId:this.releaseId}},this.options.targetOrigin)};updateElements=()=>{let{taggedElements:e,manuallyTaggedCount:t,automaticallyTaggedCount:n}=X({options:this.options}),r=((e,t=window.document)=>((e,t=window.document)=>e.map(e=>({...e,isVisible:e.element.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}),isCoveredByOtherElement:((e,t,n=window.document)=>{let{top:r,right:i,bottom:o,left:s}=t,a=n.elementFromPoint(s+1,r+1),l=n.elementFromPoint(i-1,r+1),c=n.elementFromPoint(s+1,o-1),u=n.elementFromPoint(i-1,o-1),d=t=>!!t&&(e===t||e.contains(t));return[d(a),d(l),d(c),d(u)].filter(Boolean).length<2})(e.element,e.coordinates,t)})))(e.map(({element:e,attributes:t})=>({element:e,coordinates:e.getBoundingClientRect(),attributes:t})),t))(e);G(r,this.taggedElements)||(this.observersCB.forEach(e=>e()),this.observersCB=[],this.taggedElements=r,e.forEach(({element:e})=>this.observe(e)),this.manuallyTaggedCount=t,this.automaticallyTaggedCount=n)}}let{stringify:en}=JSON,er=String,ei=(e,t)=>t,eo=(e,t,n)=>{let r=er(t.push(n)-1);return e.set(n,r),r};var es=((r=es||{}).CONNECTED="CONNECTED",r.DISCONNECTED="DISCONNECTED",r.ERROR="ERROR",r.TAGGED_FIELD_CLICKED="TAGGED_FIELD_CLICKED",r.URL_CHANGED="URL_CHANGED",r.SUBSCRIBED="SUBSCRIBED",r.UNSUBSCRIBED="UNSUBSCRIBED",r.ENTRY_UPDATED="ENTRY_UPDATED",r.ENTRY_SAVED="ENTRY_SAVED",r.DEBUG_MODE_ENABLED="DEBUG_MODE_ENABLED",r);function ea(e,t){$("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...e},t)}function el(e,t){$("TAGGED_FIELD_CLICKED",{action:"TAGGED_FIELD_CLICKED",...e},t)}class ec{subscriptions=new Map;defaultLocale;sendMessage;constructor({locale:e,targetOrigin:t}){this.defaultLocale=e,this.sendMessage=(e,n)=>$(e,n,t)}async receiveMessage(e){if(e.method===es.ENTRY_UPDATED){let{data:t,subscriptionId:n}=e,r=this.subscriptions.get(n);r?(r.callback(t),r.data=t,this.subscriptions.set(n,r)):P.error("Received an update for an unknown subscription",{subscriptionId:n,data:t,subscriptions:this.subscriptions})}}subscribe(e){let t=`${performance.now()}-${Math.random().toString(36).slice(2)}`,n=e.locale??this.defaultLocale;this.subscriptions.set(t,{...e});let r={locale:n,event:"edit",id:t,config:((e,t,n)=>{let r=new Map,i=[],o=[],s=+eo(r,i,ei.call({"":e},"",e)),a=!s;for(;s<i.length;)a=!0,o[s]=en(i[s++],l,n);return"["+o.join(",")+"]";function l(e,t){if(a)return a=!a,t;let n=ei.call(this,e,t);switch(typeof n){case"object":if(null===n)break;case"string":return r.get(n)||eo(r,i,n)}return n}})(e)};return this.sendMessage(es.SUBSCRIBED,r),()=>{this.sendMessage(es.UNSUBSCRIBED,r),this.subscriptions.delete(t)}}}class eu{locale;options;inspectorModeEnabled;subscription;constructor({locale:e,options:t,inspectorModeEnabled:n}){this.locale=e,this.options=t,this.inspectorModeEnabled=n}subscribe(e){return this.subscription&&P.log("There is already a subscription for the save event, the existing one will be replaced."),this.subscription=e,()=>{this.subscription=void 0}}receiveMessage(e){if(e.method===es.ENTRY_SAVED&&this.subscription){let{entity:t}=e;this.inspectorModeEnabled?Q({options:this.options}).includes(t.sys.id)&&this.subscription(t):this.subscription(t)}}}let ed=["https://app.contentful.com","https://app.eu.contentful.com","http://localhost:3001"];class ef{static initialized=!1;static inspectorMode=null;static liveUpdates=null;static saveEvent=null;static inspectorModeEnabled=!0;static liveUpdatesEnabled=!0;static locale;static space;static environment;static sendMessage;static targetOrigin;static init(e){if("object"!=typeof e||!e?.locale)throw Error("Init function has to be called with a locale configuration (for example: `ContentfulLivePreview.init({ locale: 'en-US'})`)");let{debugMode:t,enableInspectorMode:n,enableLiveUpdates:r,locale:i,environment:o,space:s,targetOrigin:a}=e;if("u">typeof window){if(!function(){try{return window.top?.location.href!==window.location.href}catch{return!0}}())return this.liveUpdatesEnabled=!1,Promise.resolve(null);if(t&&(R=t),"boolean"==typeof n&&(this.inspectorModeEnabled=n),"boolean"==typeof r&&(this.liveUpdatesEnabled=r),this.locale=i,this.space=s,this.environment=o,this.initTargetOrigin(a),this.initialized)return P.log("You have already initialized the Live Preview SDK."),Promise.resolve(ef.inspectorMode);this.inspectorModeEnabled&&(this.inspectorMode=new et({locale:i,space:s,environment:o,targetOrigin:this.targetOrigin,ignoreManuallyTaggedElements:e.experimental?.ignoreManuallyTaggedElements})),this.liveUpdatesEnabled&&(this.liveUpdates=new ec({locale:i,targetOrigin:this.targetOrigin}
1),this.saveEvent=new eu({locale:i,options:{locale:this.locale,space:this.space,environment:this.environment,targetOrigin:this.targetOrigin},inspectorModeEnabled:this.inspectorModeEnabled})),window.addEventListener("message",e=>{if("object"==typeof e.data&&e.data&&"source"in e.data&&e.data.source===U){if(P.log("Received message",e.data),e.data.method===es.DEBUG_MODE_ENABLED)return void(R=!0);this.inspectorModeEnabled&&this.inspectorMode?.receiveMessage(e.data),this.liveUpdatesEnabled&&(this.liveUpdates?.receiveMessage(e.data),this.saveEvent?.receiveMessage(e.data))}}),function(e,t=500){let n=window.location.href,r=setInterval(()=>{let t=window.location.href;t!==n&&(n=t,e(t))},t)}(()=>{$(es.URL_CHANGED,{action:es.URL_CHANGED,taggedElementCount:document.querySelectorAll(`[${V.ENTRY_ID}]`).length},this.targetOrigin)});let{taggedElements:l,manuallyTaggedCount:c,automaticallyTaggedCount:u}=this.inspectorModeEnabled?X({options:{locale:this.locale,space:this.space,environment:this.environment}}):{taggedElements:[],manuallyTaggedCount:0,automaticallyTaggedCount:0},d=l.length;return $(es.CONNECTED,{action:es.CONNECTED,connected:!0,tags:d,taggedElementCount:d,locale:this.locale,isInspectorEnabled:this.inspectorModeEnabled,isLiveUpdatesEnabled:this.liveUpdatesEnabled,manuallyTaggedElementCount:c,automaticallyTaggedElementCount:u,hideCoveredElementOutlines:e.experimental?.hideCoveredElementOutlines,version:N},this.targetOrigin),this.initialized=!0,Promise.resolve(ef.inspectorMode)}}static initTargetOrigin(e){if(e)this.targetOrigin=Array.isArray(e)?e:[e];else{let e=window.location.ancestorOrigins,t=e?ed.find(t=>e.contains(t)):ed.find(e=>document.referrer.includes(e));if(!t)throw Error("The current origin is not supported. Please provide a targetOrigin in the live preview configuration.");this.targetOrigin=[t]}}static subscribe(e,t){if(!this.liveUpdatesEnabled)return()=>{};let n="string"==typeof e?e:"edit",r="object"==typeof e?e:t;if("save"===n){if(!this.saveEvent)throw Error("Save event is not initialized, please call `ContentfulLivePreview.init()` first.");return this.saveEvent.subscribe(r.callback)}if(!this.liveUpdates)throw Error("Live updates are not initialized, please call `ContentfulLivePreview.init()` first.");return this.liveUpdates.subscribe(r)}static getProps(e){let{fieldId:t,locale:n,environment:r,space:i}=e;if(!this.inspectorModeEnabled)return null;if(t){let o={...n?{[V.LOCALE]:n}:{},...r?{[V.ENVIRONMENT]:r}:{},...i?{[V.SPACE]:i}:{},[V.FIELD_ID]:t};if(n&&(o[V.LOCALE]=n),void 0!==e.assetId)return{...o,[V.ASSET_ID]:e.assetId};if(void 0!==e.entryId)return{...o,[V.ENTRY_ID]:e.entryId}}return P.warn("Missing property for inspector mode",{...e}),null}static toggleInspectorMode(){return this.inspectorModeEnabled=!this.inspectorModeEnabled,this.inspectorModeEnabled}static toggleLiveUpdatesMode(){return this.liveUpdatesEnabled=!this.liveUpdatesEnabled,this.liveUpdatesEnabled}static openEntryInEditor(e){let t={locale:this.locale,environment:this.environment,space:this.space};void 0!==e.assetId&&e.fieldId?el({...t,...e},this.targetOrigin):void 0!==e.entryId&&e.fieldId?ea({...t,...e},this.targetOrigin):P.error("Please provide field id and entry/asset id to openEntryInEditor.",{...e})}static getEntryList(){return Q({options:{locale:this.locale,space:this.space,environment:this.environment}})}}e.s(["C",0,ef,"I",0,Y,"L",0,U,"V",0,N,"a",0,k,"b",0,es,"c",0,ea,"d",0,B,"h",0,(e,t,n)=>{if(!e||!e.extensions||!e.extensions.contentSourceMaps)return console.error("GraphQL response does not contain Content Source Maps information.",e),e;let r=A(e),{spaces:i,environments:o,editorInterfaces:s,fields:a,locales:l,entries:c,assets:u,mappings:d,fieldTypes:f}=r.extensions.contentSourceMaps;for(let e in d){let{source:p}=d[e],h="entry"in p?c[p.entry]:u[p.asset],g="entry"in p?"Entry":"Asset";if(!h)break;let v=i[h.space],m=o[h.environment],y=h.id,E=a[p.field],w=l[p.locale],S=s[p.editorInterface],O=f[p.fieldType];if(!(T(S.widgetNamespace)&&!C(S.widgetId))&&b.has(r,e)){let i=b.get(r,e);if(null!==i){let o=_({entityId:y,entityType:g,space:v,environment:m,field:E,locale:w,editorInterface:S,fieldType:O,targetOrigin:t,platform:n});M(O,i,o,r,e,d)}}}return r},"i",0,G,"m",0,(e,t,n)=>{var r;let i=A(e);if(i.sys&&"items"in i){if(!(null!=(r=i.sys)&&r.contentSourceMapsLookup))return i;let{contentSourceMapsLookup:{fieldTypes:e,editorInterfaces:o}}=i.sys,{items:s,includes:a}=i;
1s.forEach(r=>D(r,e,o,t,n)),a&&a.Entry&&a.Entry.forEach(r=>D(r,e,o,t,n)),a&&a.Asset&&a.Asset.forEach(r=>D(r,e,o,t,n))}else{if(!i.sys.contentSourceMapsLookup)return console.error("Content source maps lookup data is missing"),i;D(i,i.sys.contentSourceMapsLookup.fieldTypes,i.sys.contentSourceMapsLookup.editorInterfaces,t,n)}return i},"o",0,el,"p",0,ee,"y",0,function(e){var t;return{cleaned:e.replace(m,""),encoded:(null==(t=e.match(m))?void 0:t[0])||""}}])},37950,e=>{"use strict";var t=e.i(43476),n=e.i(71645),r=e.i(39828);let i=(0,n.createContext)(null);e.s(["ContentfulLivePreviewProvider",0,function({children:e,locale:o,space:s,environment:a,debugMode:l=!1,enableInspectorMode:c=!0,enableLiveUpdates:u=!0,targetOrigin:d,experimental:f}){if(!o)throw Error('ContentfulLivePreviewProvider has to be called with a locale property (for example: `<ContentfulLivePreviewProvider locale="en-US">{children}</ContentfulLivePreviewProvider>`');r.C.init({locale:o,space:s,environment:a,debugMode:l,enableInspectorMode:c,enableLiveUpdates:u,targetOrigin:d,experimental:f});let p=(0,n.useMemo)(()=>({locale:o,space:s,environment:a,debugMode:l,enableInspectorMode:c,enableLiveUpdates:u,targetOrigin:d}),[o,s,a,l,c,u,d]);return(0,t.jsx)(i.Provider,{value:p,children:e})},"useContentfulLiveUpdates",0,function(e,t,o=!1){var s,a;let l,c,[u,d]=(0,n.useState)({data:e,version:1}),f=(0,n.useRef)(e),p=(0,n.useRef)((0,r.d)(d)),h=(0,n.useContext)(i),g="object"==typeof t?t:{locale:t,skip:o},v=(0,n.useMemo)(()=>(!h||!!h.enableLiveUpdates)&&!g.skip&&!!(Array.isArray(e)&&e.length||e&&"object"==typeof e&&Object.keys(e).length),[h,g.skip,e]);return s=()=>{if(f.current!==e&&(d({data:e,version:1}),f.current=e),v)return r.C.subscribe("edit",{data:e,locale:g.locale,query:g.query,callback:e=>{p.current(t=>({data:e,version:t.version+1}))}})},a=[e,v,g.locale,g.query],(0,n.useEffect)(s,(l=(0,n.useRef)(a),c=(0,n.useRef)(0),(0,r.i)(a,l.current)||(l.current=a,c.current+=1),(0,n.useMemo)(()=>l.current,[c.current]))),u.data}])},42782,e=>{"use strict";var t=e.i(37950);e.s(["useLivePreviewEntry",0,function(e){return(0,t.useContentfulLiveUpdates)(e)}])},67269,e=>{"use strict";var t=e.i(43476);e.s(["LinkArrow",0,function({external:e=!1,className:n,...r}){return(0,t.jsxs)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",className:[e?"-rotate-45":"","shrink-0",n].filter(Boolean).join(" "),...r,children:[(0,t.jsx)("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),(0,t.jsx)("polyline",{points:"12 5 19 12 12 19"})]})}])},27784,e=>{"use strict";var t=e.i(43476),n=e.i(71645);let r=(0,n.createContext)(null);e.s(["AnnouncementsProvider",0,function({children:e}){let[i,o]=(0,n.useState)([]),s=(0,n.useCallback)(e=>o(e),[]);return(0,t.jsx)(r.Provider,{value:{pageAnnouncements:i,setPageAnnouncements:s},children:e})},"usePageAnnouncements",0,function(){return(0,n.useContext)(r)?.pageAnnouncements??[]},"useSetPageAnnouncements",0,function(){let e=(0,n.useContext)(r);return e?.setPageAnnouncements??(()=>{})}])}]);
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.