PageSourceSearch

https://cribl.io/_next/static/chunks/36mugb_e_9x3j.js

js cribl.io collected 2026-09-24 18:01:55 UTC 46,957 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="c8209be7-546a-5ac5-2bca-f691f0fd869a")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,483158,(e,t,n)=>{t.exports=e.r(70361)},34708,e=>{"use strict";let t=["utm_medium","utm_source","utm_campaign","utm_adgroup","utm_content","utm_term","gclid","fbclid","li_fat_id","msclkid","utm_source_raw"],n=["utm_medium","utm_source","utm_campaign","utm_adgroup","utm_content","utm_term","gclid","fbclid","li_fat_id","msclkid"],r="organic",i="direct",o={utm_campaign__c:"utm_campaign",utm_source__c:"utm_source",utm_medium__c:"utm_medium",linfatid:"li_fat_id",utmcontent:"utm_content"},a=["utm_source","utm_medium","utm_campaign","utm_adgroup","utm_content","utm_term","gclid","fbclid","li_fat_id","msclkid"],s=e=>{try{var t;return null!=(t=sessionStorage.getItem(e))?t:""}catch(e){return""}},l=(e,t)=>
2{try{sessionStorage.setItem(e,t)}catch(e){}},c=e=>{let t=document.cookie.match(new RegExp("(?:^|;\\s*)".concat(e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"=([^;]+)")));return(null==t?void 0:t[1])?decodeURIComponent(t[1]):""},u=e=>s(e)||c(e),d=(e,t)=>e===t||e.endsWith(".".concat(t)),f=e=>{let t,n=e.getAttribute("href");if(!n)return;let r=n.toLowerCase();if(r.startsWith("mailto:")||r.startsWith("tel:"))return;try{t=new URL(e.href)}catch(e){return}let i=(e=>{let t;if((t=e.hostname)===window.location.hostname||d(t,"cribl.io")){let t;return t=new URL(e.href),a.forEach(e=>t.searchParams.delete(e)),t.toString()}if(d(e.hostname,"cribl.cloud")){let t;return t=new URL(e.href),a.forEach(e=>{if(t.searchParams.has(e))return;let n=u(e);n&&t.searchParams.set(e,n)}),t.toString()}return null})(t);i&&i!==e.href&&(e.href=i)},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;e.querySelectorAll("a[href]").forEach(f)};e.s(["applyAttributionToMarketoForm",0,e=>{Object.entries(o).forEach(t=>{let[n,r]=t,i=u(r);if(!i)return;let o=e.querySelector('input[name="'.concat(n,'"]'));o&&(o.value=i)})},"captureAttribution",0,()=>{let e;t.forEach(e=>{if(s(e))return;let t=c(e);t&&l(e,t)}),(()=>{let e=new URLSearchParams(window.location.search);if(n.forEach(t=>{let n=e.get(t);n&&l(t,n)}),s("utm_campaign")||l("utm_campaign",window.location.hostname),s("utm_medium")||l("utm_medium",r),s("utm_source")){s("utm_source_raw")||l("utm_source_raw",s("utm_source"));return}let t=document.referrer||i;l("utm_source_raw",t),l("utm_source",(e=>{if(!e)return i;let t=e.toLowerCase().trim().replace(/^https?:\/\//,"").replace(/^www\./,"").split("/")[0];return t.endsWith(".com")?t.slice(0,-4):t})(t))})(),t.forEach(e=>{let t,n=s(e);n&&(t=["".concat(e,"=").concat(encodeURIComponent(n)),"Path=/","Domain=".concat(".cribl.io"),"SameSite=Lax","Max-Age=".concat(1800)],"https:"===location.protocol&&t.push("Secure"),document.cookie=t.join("; "))}),e={event:"utmData"},n.forEach(t=>{e[t]=s(t)}),e.utm_source_raw=s("utm_source_raw"),e.utm_source=s("utm_source")||i,e.utm_campaign=s("utm_campaign")||window.location.hostname,e.utm_medium=s("utm_medium")||r,e.utm_source_medium="".concat(e.utm_source.trim().toLowerCase()," / ").concat(e.utm_medium.trim().toLowerCase()),window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)},"decorateLinks",0,h,"observeLinks",0,()=>{let e=new MutationObserver(e=>{e.forEach(e=>{e.addedNodes.forEach(e=>{if(e instanceof HTMLElement){if(e instanceof HTMLAnchorElement&&e.hasAttribute("href"))return void f(e);h(e)}})})});return e.observe(document.body,{childList:!0,subtree:!0}),()=>e.disconnect()}])},389895,e=>{"use strict";var t=e.i(164309),n=e.i(803104),r=e.i(531704),i=e.i(916944),o=e.i(792158),a=e.i(617058),s=e.i(432572),l=e.i(275674);let c=e=>{let{alt:r,className:c,height:u,noFill:d,objectCover:f,onClick:h,style:p,unsetMaxW:g,unsetRatio:m,url:v,width:_,aspectRatio:y}=e,[b,E]=(0,o.useState)(!1),w=_||1920,T=u||1080;return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:(0,a.twMerge)("relative block",c),style:(0,t._)({aspectRatio:m?void 0:y||"".concat(w,"/").concat(T),maxWidth:g?void 0:w},p),children:(0,n.jsxs)("button",{type:"button",onClick:()=>{null==h||h(),E(!0)},className:"block size-full cursor-pointer text-left",children:[(0,n.jsx)(s.default,{icon:"expand",size:16,className:"pointer-events-none absolute right-2.5 top-2.5 z-10"}),(0,n.jsx)(i.default,{src:v,alt:r||"",title:r||"",fill:!d,width:d?w:void 0,height:d?T:void 0,className:(0,a.twMerge)(f?"size-full object-cover":"object-contain")})]})}),(0,n.jsx)(l.default,{variant:"image",isOpen:b,onClose:()=>E(!1),children:(0,n.jsx)(i.default,{src:v,alt:r||"",title:r||"",width:w,height:T,className:"h-auto max-h-[80vh] w-full object-contain"})})]})},u=(0,r.cva)(["absolute","right-2.5","top-2.5","flex","size-8","items-center","justify-center","rounded-[4px]","p-1","z-10","transition-colors","duration-300","shadow-sm","group-hover:bg-white","group-hover:text-teal-300","group-focus-visible:ring-2","group-focus-visible:ring-teal-300"],{variants:{theme:{Light:"bg-white text-teal-500 group-focus-visible:bg-white group-focus-visible:text-teal-500 group-focus-visible:ring-2 group-focus-visible:ring-teal-300",Dark:"bg-white/40 text-white group-focus-visible:border-2 group-focus-visible:border-white group-focus-visible:bg-white/40 group-focus-visible:text-white"}},defaultVariants:{theme:"Light"}});var d=e.i(4897),f=e.i(993275);let h={caption:(0,r.cva)(["flex flex-col gap-4 text-sm"],{variants:{theme:{Dark:"[&_*]:text-grey-400",Light:"[&_*]:text-grey-50",Yellow:"[&_*]:text-grey-50",Orange:"[&_*]:text-grey-50",Red:"[&_*]:text-grey-50",Green:"[&_*]:text-grey-50","Dark Teal":"[&_*]:text-grey-50",Teal:"[&_*]:text-grey-50",Blue:"[&_*]:text-grey-400",Purple:"[&_*]:text-grey-50"}},defaultVariants:{theme:"Dark"}})};e.s(["default",0,e=>{let{url:r,alt:o,className:l,height:p,width:g,unsetMaxW:m,noFill:v,objectCover:_,aspectRatio:y,unsetRatio:b,style:E,caption:w,theme:T,onClick:O,linkUrl:S,shouldExpand:I}=e;if(!r)return console.warn("Image with alt: ".concat(o," is ").concat(r)),null;let C=d.VALID_THEMES.includes(T)?T:"Dark";return(0,n.jsxs)("div",{className:"flex size-full flex-col gap-8",children:[I?(0,n.jsx)(c,{url:r,alt:o,className:l,height:"number"==typeof p?p:void 0,width:"number"==typeof g?g:void 0,noFill:v,objectCover:_,aspectRatio:y,unsetRatio:b,style:E,unsetMaxW:m,onClick:O}):(0,n.jsx)("div",{className:(0,a.twMerge)("relative block",l),style:(0,t._)({aspectRatio:b?void 0:y||"".concat(g,"/").concat(p),maxWidth:m?void 0:g},E),children:S?(0,n.jsxs)("a",{href:S,target:"_blank",rel:"noopener noreferrer",className:"group block size-full cursor-pointer",children:[(0,n.jsx)("div",{className:u({theme:T}),children:(0,n.jsx)(s.default,{icon:"link-external",size:18,className:"pointer-events-none"})}),(0,n.jsx)(i.default,{onClick:O,src:r,alt:o||"",title:o||"",fill:!v,width:v?g:void 0,height:v?p:void 0,className:(0,a.twMerge)(_?"size-full object-cover":"object-contain")})]}):(0,n.jsx)(i.default,{onClick:O,src:r,alt:o||"",title:o||"",fill:!v,width:v?g:void 0,height:v?p:void 0,className:(0,a.twMerge)(_?"size-full object-cover":"object-contain")})}),w&&(0,n.jsx)("div",{className:h.caption({theme:C}),children:(0,f.default)(w)})]})}],389895)},313577,78832,e=>{"use strict";let t,n;var r,i,o,a,s=e.i(164309),l=e.i(868275),c=e.i(784544),u=Object.create,d=Object.defineProperty,f=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,p=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty,m=(e,t,n
2)=>(n=null==e?{}:u(p(e)),((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,o=h(t),a=0,s=o.length;a<s;a++)i=o[a],g.call(e,i)||i===n||d(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=f(t,i))||r.enumerable});return e})(!t&&e&&e.__esModule?n:d(n,"default",{value:e,enumerable:!0}),e)),v=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),_={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},y={0:8203,1:8204,2:8205,3:65279},b={0:String.fromCodePoint(y[0]),1:String.fromCodePoint(y[1]),2:String.fromCodePoint(y[2]),3:String.fromCodePoint(y[3])},E=[,,,,].fill(String.fromCodePoint(y[0])).join(""),w=Object.fromEntries(Object.entries(b).map(e=>[e[1],+e[0]])),T=Object.fromEntries(Object.entries(_).map(e=>e.reverse())),O="".concat(Object.values(_).map(e=>"\\u{".concat(e.toString(16),"}")).join("")),S=RegExp("[".concat(O,"]{4,}"),"gu");function I(e,t){return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"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(e){return!1}return!0}(e))?e:"".concat(e).concat(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+=b[t>>6&3]+b[t>>4&3]+b[t>>2&3]+b[3&t]}return E+r}(t))}(e,t)}var C=v((e,t)=>{var n=Object.prototype.hasOwnProperty,r=Object.prototype.toString;t.exports=function(e,t,i){if("[object Function]"!==r.call(t))throw TypeError("iterator must be a function");var o=e.length;if(o===+o)for(var a=0;a<o;a++)t.call(i,e[a],a,e);else for(var s in e)n.call(e,s)&&t.call(i,e[s],s,e)}}),A=v((e,t)=>{var n=C();function r(e,t,n){if(3==arguments.length)return r.set(e,t,n);if(2==arguments.length)return r.get(e,t);var i=r.bind(r,e);for(var o in r)r.hasOwnProperty(o)&&(i[o]=r[o].bind(i,e));return i}t.exports=r,r.get=function(e,t){for(var n=Array.isArray(t)?t:r.parse(t),i=0;i<n.length;++i){var o=n[i];if(!("object"==typeof e&&o in e))throw Error("Invalid reference token: "+o);e=e[o]}return e},r.set=function(e,t,n){var i=Array.isArray(t)?t:r.parse(t),o=i[0];if(0===i.length)throw Error("Can not set the root object");for(var a=0;a<i.length-1;++a){var s=i[a];"string"!=typeof s&&"number"!=typeof s&&(s=String(s)),"__proto__"!==s&&"constructor"!==s&&"prototype"!==s&&("-"===s&&Array.isArray(e)&&(s=e.length),o=i[a+1],s in e||(o.match(/^(\d+|-)$/)?e[s]=[]:e[s]={}),e=e[s])}return"-"===o&&Array.isArray(e)&&(o=e.length),e[o]=n,this},r.remove=function(e,t){var n=Array.isArray(t)?t:r.parse(t),i=n[n.length-1];if(void 0===i)throw Error('Invalid JSON pointer for remove: "'+t+'"');var o=r.get(e,n.slice(0,-1));if(Array.isArray(o)){var a=+i;if(""===i&&isNaN(a))throw Error('Invalid array index: "'+i+'"');Array.prototype.splice.call(o,a,1)}else delete o[i]},r.dict=function(e,t){var n={};return r.walk(e,function(e,t){n[t]=e},t),n},r.walk=function(e,t,i){var o=[];i||(i=function(e){var t=Object.prototype.toString.call(e);return"[object Object]"===t||"[object Array]"===t}),function e(a){n(a,function(n,a){o.push(String(a)),i(n)?e(n):t(n,r.compile(o)),o.pop()})}(e)},r.has=function(e,t){try{r.get(e,t)}catch(e){return!1}return!0},r.escape=function(e){return e.toString().replace(/~/g,"~0").replace(/\//g,"~1")},r.unescape=function(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")},r.parse=function(e){if(""===e)return[];if("/"!==e.charAt(0))throw Error("Invalid JSON pointer: "+e);return e.substring(1).split(/\//).map(r.unescape)},r.compile=function(e){return 0===e.length?"":"/"+e.map(r.escape).join("/")}})(),L=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=(0,A.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("".concat(t,"/content/").concat(i,"/value")):n.push(...L(e,"".concat(t,"/content/").concat(i)));return n},M=e=>{let{entityId:t,entityType:n,space:r,environment:i,field:o,locale:a,editorInterface:s,fieldType:l,targetOrigin:c,platform:u}=e,d={origin:"contentful.com",href:"".concat("".concat(c||"https://app.contentful.com","/spaces/").concat(r,"/environments/").concat(i),"/").concat("Entry"===n?"entries":"assets","/").concat(t,"/?focusedField=").concat(o,"&focusedLocale=").concat(a,"&source=vercel-content-link"),contentful:{editorInterface:s,fieldType:l}};return"vercel"===u&&delete d.contentful,d},j=e=>
2["builtin","sidebar-builtin","editor-builtin"].includes(e),D=e=>U.includes(e),N=["nt_experiences","nt_name","nt_description","nt_audience_id","nt_rules","nt_metadata","nt_experience_id","nt_type","nt_config","nt_audience","nt_variants"],x=N.map(e=>e.replace(/_([a-z])/g,(e,t)=>t.toUpperCase())),R=[...N,...x],k=e=>R.includes(e);function P(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}}var U=["singleLine","tagEditor","listInput","checkbox","richTextEditor","multipleLine"];function z(e,t,n,r,i,o,a){let s=a?t[a]:t;switch(e){case"Symbol":case"Text":(0,A.set)(r,i,I(s,n));break;case"RichText":(e=>{let{pointer:t,mappings:n,data:r,hiddenStrings:i}=e,o=n[t];if(o)for(let e of(delete n[t],L(r,t)))n[e]=o,(0,A.set)(r,e,I((0,A.get)(r,e),i));else for(let e of L(r,t))(0,A.set)(r,e,I((0,A.get)(r,e),i))})({pointer:"",mappings:o,data:s,hiddenStrings:n});break;case"Array":(0,A.set)(r,i,s.map(e=>"string"==typeof e?I(e,n):e))}}var B=(e,t,n,r,i)=>{if(!e.fields)return;let{contentSourceMaps:o}=e.sys;if(!o)return;let{mappings:a}=o;for(let o in a){let{source:s}=a[o],l=e.sys.space.sys.id,c=e.sys.environment.sys.id,u=e.sys.id,d=e.sys.type,f=t[s.fieldType],h=n[s.editorInterface];if(j(h.widgetNamespace)&&!D(h.widgetId))continue;let p=o.startsWith("/")?o:"/".concat(o);if((0,A.has)(e,p)){let t=(0,A.get)(e,p);if(null===t)return;let n=p.split("/").pop();if(!n)return void console.error("Field name could not be extracted from the pointer",p);if(k(n))continue;let o=e.sys.locale;o?z(f,t,M({entityId:u,entityType:d,space:l,environment:c,field:n,locale:o,editorInterface:h,fieldType:f,targetOrigin:r,platform:i}),e,p,a):Object.keys(t).forEach(o=>{z(f,t,M({entityId:u,entityType:d,space:l,environment:c,field:n,locale:o,editorInterface:h,fieldType:f,targetOrigin:r,platform:i}),e,"".concat(p,"/").concat(o),a,o)})}}},F="4.10.7",G=!1,V=e=>function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];G&&console[e](...n)},Y={error:V("error"),warn:V("warn"),log:V("log")},H="live-preview-sdk",W=new Set(["AREA","BASE","BR","COL","EMBED","HR","IMG","INPUT","LINK","META","PARAM","SOURCE","TRACK","WBR"]);function K(e,t,n){let r=(0,c._)((0,s._)({},t),{method:e,source:H,location:window.location.href,version:F});Y.log("Send message",r),n.forEach(e=>{var t;null==(t=window.top)||t.postMessage(r,e)})}function $(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;var r=this;return function(){for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(t),t=setTimeout(()=>{e.apply(r,o)},n)}}var q=(t=(t,n)=>{var r,i,o,a="__lodash_hash_undefined__",s="[object Arguments]",l="[object Array]",c="[object Boolean]",u="[object Date]",d="[object Error]",f="[object Function]",h="[object Map]",p="[object Number]",g="[object Object]",m="[object Promise]",v="[object RegExp]",_="[object Set]",y="[object String]",b="[object WeakMap]",E="[object ArrayBuffer]",w="[object DataView]",T=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[s]=S[l]=S[E]=S[c]=S[w]=S[u]=S[d]=S[f]=S[h]=S[p]=S[g]=S[v]=S[_]=S[y]=S[b]=!1;var I=e.g&&e.g.Object===Object&&e.g,C="object"==typeof self&&self&&self.Object===Object&&self,A=I||C||Function("return this")(),L="object"==typeof t&&t&&!t.nodeType&&t,M=L&&"object"==typeof n&&n&&!n.nodeType&&n,j=M&&M.exports===L,D=j&&I.process,N=function(){try{return D&&D.binding&&D.binding("util")}catch(e){}}(),x=N&&N.isTypedArray;function R(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function k(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var P=Array.prototype,U=Function.prototype,z=Object.prototype,B=A["__core-js_shared__"],F=U.toString,G=z.hasOwnProperty,V=(r=/[^.]+$/.exec(B&&B.keys&&B.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Y=z.toString,H=RegExp("^"+F.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),W=j?A.Buffer:void 0,K=A.Symbol,$=A.Uint8Array,q=z.propertyIsEnumerable,J=P.splice,Z=K?K.toStringTag:void 0,Q=Object.getOwnPropertySymbols,X=W?W.isBuffer:void 0,ee=(i=Object.keys,o=Object,function(e){return i(o(e))}),et=eS(A,"DataView"),en=eS(A,"Map"),er=eS(A,"Promise"),ei=eS(A,"Set"),eo=eS(A,"WeakMap"),ea=eS(Object,"create"),es=eA(et),el=eA(en),ec=eA(er),eu=eA(ei),ed=eA(eo),ef=K?K.prototype:void 0,eh=ef?ef.valueOf:void 0;function ep(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 em(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.__data__=new em;++t<n;)this.add(e[t])}function e_(e){var t=this.__data__=new eg(e);this.size=t.size}function ey(e,t){for(var n=e.length;n--;)if(eL(e[n][0],t))return n;return -1}
2function eb(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=G.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(e){}var i=Y.call(e);return r&&(t?e[Z]=n:delete e[Z]),i}(e):Y.call(e)}function eE(e){return ek(e)&&eb(e)==s}function ew(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,f=2&n?new ev:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var h=e[u],p=t[u];if(r)var g=a?r(p,h,u,t,e,o):r(h,p,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)&&(h===e||i(h,e,n,r,o)))return f.push(t)})){d=!1;break}}else if(!(h===p||i(h,p,n,r,o))){d=!1;break}}return o.delete(e),o.delete(t),d}function eT(e){var t;return t=eU(e),ej(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,eI(e))}function eO(e,t){var n,r=e.__data__;return("string"==(n=typeof t)||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==t:null===t)?r["string"==typeof t?"string":"hash"]:r.map}function eS(e,t){var n=null==e?void 0:e[t];return!(!eR(n)||V&&V in n)&&(eN(n)?H:T).test(eA(n))?n:void 0}ep.prototype.clear=function(){this.__data__=ea?ea(null):{},this.size=0},ep.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t},ep.prototype.get=function(e){var t=this.__data__;if(ea){var n=t[e];return n===a?void 0:n}return G.call(t,e)?t[e]:void 0},ep.prototype.has=function(e){var t=this.__data__;return ea?void 0!==t[e]:G.call(t,e)},ep.prototype.set=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=ea&&void 0===t?a:t,this},eg.prototype.clear=function(){this.__data__=[],this.size=0},eg.prototype.delete=function(e){var t=this.__data__,n=ey(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=ey(t,e);return n<0?void 0:t[n][1]},eg.prototype.has=function(e){return ey(this.__data__,e)>-1},eg.prototype.set=function(e,t){var n=this.__data__,r=ey(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},em.prototype.clear=function(){this.size=0,this.__data__={hash:new ep,map:new(en||eg),string:new ep}},em.prototype.delete=function(e){var t=eO(this,e).delete(e);return this.size-=!!t,t},em.prototype.get=function(e){return eO(this,e).get(e)},em.prototype.has=function(e){return eO(this,e).has(e)},em.prototype.set=function(e,t){var n=eO(this,e),r=n.size;return n.set(e,t),this.size+=+(n.size!=r),this},ev.prototype.add=ev.prototype.push=function(e){return this.__data__.set(e,a),this},ev.prototype.has=function(e){return this.__data__.has(e)},e_.prototype.clear=function(){this.__data__=new eg,this.size=0},e_.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},e_.prototype.get=function(e){return this.__data__.get(e)},e_.prototype.has=function(e){return this.__data__.has(e)},e_.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 em(r)}return n.set(e,t),this.size=n.size,this};var eI=Q?function(e){return null==e?[]:function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(Q(e=Object(e)),function(t){return q.call(e,t)})}:function(){return[]},eC=eb;function eA(e){if(null!=e){try{return F.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function eL(e,t){return e===t||e!=e&&t!=t}(et&&eC(new et(new ArrayBuffer(1)))!=w||en&&eC(new en)!=h||er&&eC(er.resolve())!=m||ei&&eC(new ei)!=_||eo&&eC(new eo)!=b)&&(eC=function(e){var t=eb(e),n=t==g?e.constructor:void 0,r=n?eA(n):"";if(r)switch(r){case es:return w;case el:return h;case ec:return m;case eu:return _;case ed:return b}return t});var eM=eE(function(){return arguments}())?eE:function(e){return ek(e)&&G.call(e,"callee")&&!q.call(e,"callee")},ej=Array.isArray,eD=X||function(){return!1};function eN(e){if(!eR(e))return!1;var t=eb(e);return t==f||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function ex(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function eR(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function ek(e){return"object"==typeof e&&!!e}var eP=x?function(e){return x(e)}:function(e){return ek(e)&&ex(e.length)&&!!S[eb(e)]};function eU(e){return null!=e&&ex(e.length)&&!eN(e)?function(e){var t,n=ej(e),r=!n&&eM(e),i=!n&&!r&&eD(e),o=!n&&!r&&!i&&eP(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],l=s.length;for(var c in e)G.call(e,c)&&!(a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||(null!=(t=l)||(t=0x1fffffffffffff),t&&("number"==typeof c||O.test(c))&&c>-1&&c%1==0&&c<t)))&&s.push(c);return s}(e):function(e){if(t=e&&e.constructor,e!==("function"==typeof t&&t.prototype||z))return ee(e);var t,n=[];for(var r in Object(e))G.call(e,r)&&"constructor"!=r&&n.push(r);return n}(e)}n.exports=function(e,t){return function e(t,n,r,i,o){return t===n||(null!=t&&null!=n&&(ek(t)||ek(n))?function(e,t,n,r,i,o){var a=ej(e),f=ej(t),m=a?l:eC(e),b=f?l:eC(t);m=m==s?g:m,b=b==s?g:b;var T=m==g,O=b==g,S=m==b;if(S&&eD(e)){if(!eD(t))return!1;a=!0,T=!1}if(S&&!T)return o||(o=new e_),a||eP(e)?ew(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case w: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 $(e),new $(t)));case c:case u:case p:return eL(+e,+t);case d:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case h:var s=R;case _:var l=1&r;if(s||(s=k),e.size!=t.size&&!l)break;var f=a.get(e);if(f)return f==t;r|=2,a.set(e,t);var g=ew(s(e),s(t),r,i,o,a);return a.delete(e),g;case"[object Symbol]":if(eh)return eh.call(e)==eh.call(t)}return!1}(e,t,m,n,r,i,o);if(!(1&n)){var I=T&&G.call(e,"__wrapped__"),C=O&&G.call(t,"__wrapped__");
2if(I||C){var A=I?e.value():e,L=C?t.value():t;return o||(o=new e_),i(A,L,n,r,o)}}return!!S&&(o||(o=new e_),function(e,t,n,r,i,o){var a=1&n,s=eT(e),l=s.length;if(l!=eT(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:G.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 h=a;++c<l;){var p=e[u=s[c]],g=t[u];if(r)var m=a?r(g,p,u,t,e,o):r(p,g,u,e,t,o);if(!(void 0===m?p===g||i(p,g,n,r,o):m)){f=!1;break}h||(h="constructor"==u)}if(f&&!h){var v=e.constructor,_=t.constructor;v!=_&&"constructor"in e&&"constructor"in t&&!("function"==typeof v&&v instanceof v&&"function"==typeof _&&_ instanceof _)&&(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)}},()=>(n||(t((n={exports:{}}).exports,n),t=null),n.exports)),J=m(q(),1),Z=((r={}).FIELD_ID="data-contentful-field-id",r.ENTRY_ID="data-contentful-entry-id",r.ASSET_ID="data-contentful-asset-id",r.LOCALE="data-contentful-locale",r.SPACE="data-contentful-space",r.ENVIRONMENT="data-contentful-environment",r),Q=((i={}).MOUSE_MOVE="MOUSE_MOVE",i.SCROLL_START="SCROLL_START",i.SCROLL_END="SCROLL_END",i.RESIZE_START="RESIZE_START",i.RESIZE_END="RESIZE_END",i.TAGGED_ELEMENTS="TAGGED_ELEMENTS",i.INSPECTOR_MODE_CHANGED="INSPECTOR_MODE_CHANGED",i),X={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},ee={0:8203,1:8204,2:8205,3:65279},et={0:String.fromCodePoint(ee[0]),1:String.fromCodePoint(ee[1]),2:String.fromCodePoint(ee[2]),3:String.fromCodePoint(ee[3])};[,,,,].fill(String.fromCodePoint(ee[0])).join(""),Object.fromEntries(Object.entries(et).map(e=>[e[1],+e[0]])),Object.fromEntries(Object.entries(X).map(e=>e.reverse()));var en="".concat(Object.values(X).map(e=>"\\u{".concat(e.toString(16),"}")).join("")),er=RegExp("[".concat(en,"]{4,}"),"gu");function ei(e,t){return e.href===t.href}function eo(e){var t,n;let r,{root:i=window.document,options:o}=e,a=[...o.ignoreManuallyTaggedElements?[]:i.querySelectorAll("[".concat(Z.ASSET_ID,"][").concat(Z.FIELD_ID,"], [").concat(Z.ENTRY_ID,"][").concat(Z.FIELD_ID,"]"))].map(e=>({element:e,attributes:function(e,t){var n,r,i,o;if(!(e&&e.nodeType===Node.ELEMENT_NODE&&!(!e.hasAttribute(Z.FIELD_ID)||!e.hasAttribute(Z.ENTRY_ID)&&!e.hasAttribute(Z.ASSET_ID))))return null;let a={fieldId:e.getAttribute(Z.FIELD_ID),locale:null!=(n=e.getAttribute(Z.LOCALE))?n:t.locale,environment:null!=(r=e.getAttribute(Z.ENVIRONMENT))?r:t.environment,space:null!=(i=e.getAttribute(Z.SPACE))?i:t.space,manuallyTagged:!0};if(!a.fieldId)return Y.warn("Element is missing field ID attribute and cannot be tagged",{id:null!=(o=e.getAttribute(Z.ENTRY_ID))?o:e.getAttribute(Z.ASSET_ID),sharedProps:a}),null;let l=e.getAttribute(Z.ENTRY_ID);if(l)return(0,c._)((0,s._)({},a),{entryId:l});let u=e.getAttribute(Z.ASSET_ID);return u?(0,c._)((0,s._)({},a),{assetId:u}):null}(e,o)})).filter(e=>{let{attributes:t}=e;return null!==t}),l=[];for(let{node:e,text:n}of(t="body"in i?i.body:i,r=[],"function"==typeof t.matches&&t.matches("*")&&(r=[t]),[...r,...Array.from(t.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(e=>{let{text:t}=e;return!!(t&&t.match(er))}))){let t=function(e){let t=e.match(S);return t?function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Array.from(e),r=1/0,i=-1;for(let e=0;e<n.length;++e)n[e]===E[0]&&n[e+1]===E[1]&&n[e+2]===E[2]&&n[e+3]===E[3]&&(r=Math.min(r,e),i=Math.max(i,e));if(-1===i)return function(e,t){let n=[];for(let t=.5*e.length;t--;){let r="".concat(T[e[2*t].codePointAt(0)]).concat(T[e[2*t+1].codePointAt(0)]);n.unshift(String.fromCharCode(parseInt(r,16)))}let r=[],i=[n.join("")],o=10;for(;i.length;){let e=i.shift();try{if(r.push(JSON.parse(e)),t)break}catch(n){var a;if(!o--)throw n;let t=+(null==(a=n.message.match(/\sposition\s(\d+)$/))?void 0:a[1]);if(!t)throw n;i.unshift(e.substring(0,t),e.substring(t))}}return r}(n,t);for(let e=r;e<=i;++e)if(!((n.length-e)%4))try{let r=n.slice(e+4),i=new Uint8Array(r.length/4);for(let e=0;e<i.length;e++)i[e]=w[r[4*e]]<<6|w[r[4*e+1]]<<4|w[r[4*e+2]]<<2|w[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))]}
2return o.split("\0").filter(Boolean).map(e=>JSON.parse(e))}catch(e){}return[]}(t[0],!0)[0]:void 0}(n);if(!t||!t.origin.includes("contentful.com")){Y.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:e,sourceMap:t});continue}if(!(function(e,t){for(let n of t)if(n.element===e||n.element.contains(e))return!0;return!1}(e,a)||l.some(n=>n.element.contains(e)&&ei(n.sourceMap,t)))){if(e.matches("img")){let n=e.closest("figure")||e.closest("picture")||e;l.push({element:n,sourceMap:t});continue}l.push({element:e,sourceMap:t})}}let u=l.filter((e,t)=>l.findIndex(t=>!(!ei(e.sourceMap,t.sourceMap)||e.element!==t.element))===t);for(let{element:e,sourceMap:t}of u){let r=null;if(t.href){let n=eu(t.href);if(!n)continue;if("Asset"===n.entityType)r={fieldId:n.fieldId,locale:n.locale,space:n.space,environment:n.environment,assetId:n.entityId};else if("Entry"===n.entityType)r={fieldId:n.fieldId,locale:n.locale,space:n.space,environment:n.environment,entryId:n.entityId};else{Y.warn("Unknown entityType",{element:e,sourceMap:t});continue}}else{if(t.contentful&&(n=t.contentful)&&"string"==typeof n.entity&&"string"==typeof n.field&&"string"==typeof n.locale&&"string"==typeof n.space&&"string"==typeof n.environment&&("Asset"===n.entityType||"Entry"===n.entityType)){let n=t.contentful;
2if(!n.entity||!n.field||!n.locale||!n.space||!n.environment){Y.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:n.field,locale:n.locale,space:n.space,environment:n.environment};if("Asset"===n.entityType)i.assetId=n.entity,r=i;else if("Entry"===n.entityType)i.entryId=n.entity,r=i;else{Y.warn("Unknown entityType in contentful data",{element:e,sourceMap:t});continue}}else{Y.warn("Element has neither href nor contentful data in their ContentSourceMap, unable to extract attributes.",{element:e,sourceMap:t});continue}}a.push({element:e,attributes:r})}let d=a.filter(e=>{let{attributes:t}=e;return(null==t?void 0:t.manuallyTagged)===!1||!(null==t?void 0:t.manuallyTagged)}).length;return{taggedElements:a,manuallyTaggedCount:a.length-d,automaticallyTaggedCount:d,autoTaggedElements:u}}function ea(e){let{options:t}=e;return[...new Set(eo({options:t}).taggedElements.map(e=>e.attributes&&"entryId"in e.attributes?e.attributes.entryId:null).filter(Boolean))]}var es=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.document,{top:r,right:i,bottom:o,left:a}=t,s=n.elementFromPoint(a+1,r+1),l=n.elementFromPoint(i-1,r+1),c=n.elementFromPoint(a+1,o-1),u=n.elementFromPoint(i-1,o-1),d=t=>!!t&&(e===t||e.contains(t));return[d(s),d(l),d(c),d(u)].filter(Boolean).length<2},el=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document;return e.map(e=>(0,c._)((0,s._)({},e),{isVisible:e.element.checkVisibility({checkOpacity:!0,checkVisibilityCSS:!0}),isCoveredByOtherElement:es(e.element,e.coordinates,t)}))},ec=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document;return el(e.map(e=>{let{element:t,attributes:n}=e;return{element:t,coordinates:t.getBoundingClientRect(),attributes:n}}),t)};function eu(e){try{let t=new URL(e),n=t.searchParams.get("focusedField"),r=t.searchParams.get("focusedLocale"),i=t.pathname.split("/").filter(Boolean),o=i.indexOf("spaces"),a=i.indexOf("environments"),s=-1===o?void 0:i[o+1],l=-1===a?void 0:i[a+1],c,u,d=i.indexOf("entries"),f=i.indexOf("assets");return -1===d?-1!==f&&(c="Asset",u=i[f+1]):(c="Entry",u=i[d+1]),c&&u?n?r?s&&l?{entityId:u,entityType:c,fieldId:n,locale:r,space:s,environment:l}:(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}}var ed=class{constructor(e){(0,l._)(this,"options",void 0),(0,l._)(this,"delay",300),(0,l._)(this,"isScrolling",!1),(0,l._)(this,"scrollTimeout",void 0),(0,l._)(this,"isResizing",!1),(0,l._)(this,"resizeTimeout",void 0),(0,l._)(this,"hoveredElement",void 0),(0,l._)(this,"taggedElements",[]),(0,l._)(this,"manuallyTaggedCount",0),(0,l._)(this,"automaticallyTaggedCount",0),(0,l._)(this,"releaseId",void 0),(0,l._)(this,"intersectionObserver",void 0),(0,l._)(this,"observersCB",[]),(0,l._)(this,"cleanupCB",[]),(0,l._)(this,"init",()=>{this.cleanupCB=[this.addScrollListener(),this.addMutationListener(document.body),this.addResizeListener(),this.addHoverListener()],this.updateElements()}),(0,l._)(this,"cleanup",()=>{this.observersCB.forEach(e=>
2e()),this.cleanupCB.forEach(e=>e())}),(0,l._)(this,"receiveMessage",e=>{if(e.method===Q.INSPECTOR_MODE_CHANGED){let{isInspectorActive:t,releaseId:n}=e;this.releaseId=n,t?this.init():this.cleanup()}}),(0,l._)(this,"observe",e=>{this.intersectionObserver.observe(e);let t=this.addMutationListener(e);this.observersCB.push(t,()=>this.intersectionObserver.unobserve(e))}),(0,l._)(this,"addScrollListener",()=>{let{targetOrigin:e}=this.options,t=()=>{this.isScrolling||(this.isScrolling=!0,K(Q.SCROLL_START,{},e)),this.scrollTimeout&&clearTimeout(this.scrollTimeout),this.scrollTimeout=setTimeout(()=>{this.isScrolling=!1,K(Q.SCROLL_END,{},e),this.updateElements()},this.delay)},n={capture:!0,passive:!0};return window.addEventListener("scroll",t,n),()=>window.removeEventListener("scroll",t,n)}),(0,l._)(this,"addMutationListener",e=>{let t=new MutationObserver(()=>{this.updateElements()});return t.observe(e,{characterData:!0,attributes:!0,attributeFilter:[Z.ENTRY_ID,Z.FIELD_ID,Z.LOCALE,Z.SPACE,Z.ENVIRONMENT,"class","style"],childList:!0,subtree:!0}),()=>t.disconnect()}),(0,l._)(this,"addResizeListener",()=>{let{targetOrigin:e}=this.options,t=new ResizeObserver(()=>{this.isResizing||(this.isResizing=!0,K(Q.RESIZE_START,{},e)),this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{this.isResizing=!1,K(Q.RESIZE_END,{},e),this.updateElements()},this.delay)});return t.observe(document.body),()=>t.disconnect()}),(0,l._)(this,"addHoverListener",()=>{let e=$(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=null==t?void 0:t.element,this.updateElements()},this.delay),t=t=>{e(t.composedPath())};return window.addEventListener("mouseover",t,{passive:!0}),()=>window.removeEventListener("mouseover",t)}),(0,l._)(this,"sendTaggedElements",()=>{K(Q.TAGGED_ELEMENTS,(0,s._)({elements:this.taggedElements.map(e=>({coordinates:e.coordinates,isVisible:!!e.isVisible,attributes:e.attributes,isHovered:this.hoveredElement===e.element,isCoveredByOtherElement:!!e.isCoveredByOtherElement,snapshot:W.has(e.element.tagName.toUpperCase())?{[e.element.tagName.toLowerCase()]:Array.from(e.element.attributes).map(e=>"".concat(e.name,'="').concat(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)}),(0,l._)(this,"updateElements",()=>{let{taggedElements:e,manuallyTaggedCount:t,automaticallyTaggedCount:n}=eo({options:this.options}),r=ec(e);(0,J.default)(r,this.taggedElements)||(this.observersCB.forEach(e=>e()),this.observersCB=[],this.taggedElements=r,e.forEach(e=>{let{element:t}=e;return this.observe(t)}),this.manuallyTaggedCount=t,this.automaticallyTaggedCount=n)}),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})}},{parse:ef,stringify:eh}=JSON,{keys:ep}=Object,eg=String,em="object",ev=(e,t)=>t,e_=(e,t,n)=>{let r=eg(t.push(n)-1);return e.set(n,r),r},ey=((o=ey||{}).CONNECTED="CONNECTED",o.DISCONNECTED="DISCONNECTED",o.ERROR="ERROR",o.TAGGED_FIELD_CLICKED="TAGGED_FIELD_CLICKED",o.URL_CHANGED="URL_CHANGED",o.SUBSCRIBED="SUBSCRIBED",o.UNSUBSCRIBED="UNSUBSCRIBED",o.ENTRY_UPDATED="ENTRY_UPDATED",o.ENTRY_SAVED="ENTRY_SAVED",o.DEBUG_MODE_ENABLED="DEBUG_MODE_ENABLED",o);function eb(e,t){K("TAGGED_FIELD_CLICKED",(0,s._)({action:"TAGGED_FIELD_CLICKED"},e),t)}function eE(e,t){K("TAGGED_FIELD_CLICKED",(0,s._)({action:"TAGGED_FIELD_CLICKED"},e),t)}var ew=class{async receiveMessage(e){if(e.method===ey.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)):Y.error("Received an update for an unknown subscription",{subscriptionId:n,data:t,subscriptions:this.subscriptions})}}subscribe(e){var t;let n="".concat(performance.now(),"-").concat(Math.random().toString(36).slice(2)),r=null!=(t=e.locale)?t:this.defaultLocale;this.subscriptions.set(n,(0,s._)({},e));let i={locale:r,event:"edit",id:n,config:((e,t,n)=>{let r=t&&typeof t===em?(e,n)=>""===e||-1<t.indexOf(e)?n:void 0:t||ev,i=new Map,o=[],a=[],s=+e_(i,o,r.call({"":e},"",e)),l=!s;for(;s<o.length;)l=!0,a[s]=eh(o[s++],c,n);return"["+a.join(",")+"]";function c(e,t){if(l)return l=!l,t;let n=r.call(this,e,t);switch(typeof n){case em:if(null===n)break;case"string":return i.get(n)||e_(i,o,n)}return n}})(e)};return this.sendMessage(ey.SUBSCRIBED,i),()=>{this.sendMessage(ey.UNSUBSCRIBED,i),this.subscriptions.delete(n)}}constructor({locale:e,targetOrigin:t}){(0,l._)(this,"subscriptions",new Map),(0,l._)(this,"defaultLocale",void 0),(0,l._)(this,"sendMessage",void 0),this.defaultLocale=e,this.sendMessage=(e,n
2)=>K(e,n,t)}},eT=class{subscribe(e){return this.subscription&&Y.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===ey.ENTRY_SAVED&&this.subscription){let{entity:t}=e;this.inspectorModeEnabled?ea({options:this.options}).includes(t.sys.id)&&this.subscription(t):this.subscription(t)}}constructor({locale:e,options:t,inspectorModeEnabled:n}){(0,l._)(this,"locale",void 0),(0,l._)(this,"options",void 0),(0,l._)(this,"inspectorModeEnabled",void 0),(0,l._)(this,"subscription",void 0),this.locale=e,this.options=t,this.inspectorModeEnabled=n}},eO=["https://app.contentful.com","https://app.eu.contentful.com","http://localhost:3001"],eS=(a=class e{static init(t){if("object"!=typeof t||!(null==t?void 0:t.locale))throw Error("Init function has to be called with a locale configuration (for example: `ContentfulLivePreview.init({ locale: 'en-US'})`)");let{debugMode:n,enableInspectorMode:r,enableLiveUpdates:i,locale:o,environment:a,space:s,targetOrigin:l}=t;if("u">typeof window){var c,u;if(!function(){try{var e;return(null==(e=window.top)?void 0:e.location.href)!==window.location.href}catch(e){return!0}}())return this.liveUpdatesEnabled=!1,Promise.resolve(null);if(n&&(G=n),"boolean"==typeof r&&(this.inspectorModeEnabled=r),"boolean"==typeof i&&(this.liveUpdatesEnabled=i),this.locale=o,this.space=s,this.environment=a,this.initTargetOrigin(l),this.initialized)return Y.log("You have already initialized the Live Preview SDK."),Promise.resolve(e.inspectorMode);this.inspectorModeEnabled&&(this.inspectorMode=new ed({locale:o,space:s,environment:a,targetOrigin:this.targetOrigin,ignoreManuallyTaggedElements:null==(c=t.experimental)?void 0:c.ignoreManuallyTaggedElements})),this.liveUpdatesEnabled&&(this.liveUpdates=new ew({locale:o,targetOrigin:this.targetOrigin}),this.saveEvent=new eT({locale:o,options:{locale:this.locale,space:this.space,environment:this.environment,targetOrigin:this.targetOrigin},inspectorModeEnabled:this.inspectorModeEnabled})),window.addEventListener("message",e=>{var t,n,r;if("object"==typeof e.data&&e.data&&"source"in e.data&&"live-preview-editor"===e.data.source){if(Y.log("Received message",e.data),e.data.method===ey.DEBUG_MODE_ENABLED)return void(G=!0);this.inspectorModeEnabled&&(null==(t=this.inspectorMode)||t.receiveMessage(e.data)),this.liveUpdatesEnabled&&(null==(n=this.liveUpdates)||n.receiveMessage(e.data),null==(r=this.saveEvent)||r.receiveMessage(e.data))}}),function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=window.location.href,r=setInterval(()=>{let t=window.location.href;t!==n&&(n=t,e(t))},t)}(()=>{K(ey.URL_CHANGED,{action:ey.URL_CHANGED,taggedElementCount:document.querySelectorAll("[".concat(Z.ENTRY_ID,"]")).length},this.targetOrigin)});let{taggedElements:d,manuallyTaggedCount:f,automaticallyTaggedCount:h}=this.inspectorModeEnabled?eo({options:{locale:this.locale,space:this.space,environment:this.environment}}):{taggedElements:[],manuallyTaggedCount:0,automaticallyTaggedCount:0},p=d.length;return K(ey.CONNECTED,{action:ey.CONNECTED,connected:!0,tags:p,taggedElementCount:p,locale:this.locale,isInspectorEnabled:this.inspectorModeEnabled,isLiveUpdatesEnabled:this.liveUpdatesEnabled,manuallyTaggedElementCount:f,automaticallyTaggedElementCount:h,hideCoveredElementOutlines:null==(u=t.experimental)?void 0:u.hideCoveredElementOutlines,version:F},this.targetOrigin),this.initialized=!0,Promise.resolve(e.inspectorMode)}}static initTargetOrigin(e){if(e)this.targetOrigin=Array.isArray(e)?e:[e];else{let e=window.location.ancestorOrigins,t=e?eO.find(t=>e.contains(t)):eO.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)}
2static getProps(e){let{fieldId:t,locale:n,environment:r,space:i}=e;if(!this.inspectorModeEnabled)return null;if(t){let o=(0,c._)((0,s._)({},n?{[Z.LOCALE]:n}:{},r?{[Z.ENVIRONMENT]:r}:{},i?{[Z.SPACE]:i}:{}),{[Z.FIELD_ID]:t});if(n&&(o[Z.LOCALE]=n),void 0!==e.assetId)return(0,c._)((0,s._)({},o),{[Z.ASSET_ID]:e.assetId});if(void 0!==e.entryId)return(0,c._)((0,s._)({},o),{[Z.ENTRY_ID]:e.entryId})}return Y.warn("Missing property for inspector mode",(0,s._)({},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?eE((0,s._)({},t,e),this.targetOrigin):void 0!==e.entryId&&e.fieldId?eb((0,s._)({},t,e),this.targetOrigin):Y.error("Please provide field id and entry/asset id to openEntryInEditor.",(0,s._)({},e))}static getEntryList(){return ea({options:{locale:this.locale,space:this.space,environment:this.environment}})}},(0,l._)(a,"initialized",!1),(0,l._)(a,"inspectorMode",null),(0,l._)(a,"liveUpdates",null),(0,l._)(a,"saveEvent",null),(0,l._)(a,"inspectorModeEnabled",!0),(0,l._)(a,"liveUpdatesEnabled",!0),(0,l._)(a,"locale",void 0),(0,l._)(a,"space",void 0),(0,l._)(a,"environment",void 0),(0,l._)(a,"sendMessage",void 0),(0,l._)(a,"targetOrigin",void 0),a);e.s(["a",0,eb,"c",0,Q,"d",0,"live-preview-editor","f",0,H,"g",0,m,"h",0,(e,t,n)=>{let r=P(e);if(r.sys&&"items"in r){var i;if(!(null!=(i=r.sys)&&i.contentSourceMapsLookup))return r;let{contentSourceMapsLookup:{fieldTypes:e,editorInterfaces:o}}=r.sys,{items:a,includes:s}=r;a.forEach(r=>B(r,e,o,t,n)),s&&s.Entry&&s.Entry.forEach(r=>B(r,e,o,t,n)),s&&s.Asset&&s.Asset.forEach(r=>B(r,e,o,t,n))}else{if(!r.sys.contentSourceMapsLookup)return console.error("Content source maps lookup data is missing"),r;B(r,r.sys.contentSourceMapsLookup.fieldTypes,r.sys.contentSourceMapsLookup.editorInterfaces,t,n)}return r},"i",0,eE,"l",0,q,"m",0,function(e){var t;return{cleaned:e.replace(S,""),encoded:(null==(t=e.match(S))?void 0:t[0])||""}},"n",0,F,"o",0,eu,"p",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=P(e),{spaces:i,environments:o,editorInterfaces:a,fields:s,locales:l,entries:c,assets:u,mappings:d,fieldTypes:f}=r.extensions.contentSourceMaps;for(let e in d){let{source:h}=d[e],p="entry"in h?c[h.entry]:u[h.asset],g="entry"in h?"Entry":"Asset";if(!p)break;let m=i[p.space],v=o[p.environment],_=p.id,y=s[h.field],b=l[h.locale],E=a[h.editorInterface],w=f[h.fieldType];if(!(j(E.widgetNamespace)&&!D(E.widgetId))&&(0,A.has)(r,e)){let i=(0,A.get)(r,e);null!==i&&z(w,i,M({entityId:_,entityType:g,space:m,environment:v,field:y,locale:b,editorInterface:E,fieldType:w,targetOrigin:t,platform:n}),r,e,d)}}return r},"r",0,ey,"s",0,Z,"t",0,eS,"u",0,$],78832);var eI=e.i(792158),eC=e.i(803104),eA=m(q(),1),eL=(0,eI.createContext)(null);e.s(["ContentfulLivePreviewProvider",0,function(e){let{children:t,locale:n,space:r,environment:i,debugMode:o=!1,enableInspectorMode:a=!0,enableLiveUpdates:s=!0,targetOrigin:l,experimental:c}=e;if(!n)throw Error('ContentfulLivePreviewProvider has to be called with a locale property (for example: `<ContentfulLivePreviewProvider locale="en-US">{children}</ContentfulLivePreviewProvider>`');eS.init({locale:n,space:r,environment:i,debugMode:o,enableInspectorMode:a,enableLiveUpdates:s,targetOrigin:l,experimental:c});let u=(0,eI.useMemo)(()=>({locale:n,space:r,environment:i,debugMode:o,enableInspectorMode:a,enableLiveUpdates:s,targetOrigin:l}),[n,r,i,o,a,s,l]);return(0,eC.jsx)(eL.Provider,{value:u,children:t})},"useContentfulLiveUpdates",0,function(e,t){var n,r;let i,o,a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],[s,l]=(0,eI.useState)({data:e,version:1}),c=(0,eI.useRef)(e),u=(0,eI.useRef)($(l)),d=(0,eI.useContext)(eL),f="object"==typeof t?t:{locale:t,skip:a},h=(0,eI.useMemo)(()=>(!d||!!d.enableLiveUpdates)&&!f.skip&&!!(Array.isArray(e)&&e.length||e&&"object"==typeof e&&Object.keys(e).length),[d,f.skip,e]);return n=()=>
2{if(c.current!==e&&(l({data:e,version:1}),c.current=e),h)return eS.subscribe("edit",{data:e,locale:f.locale,query:f.query,callback:e=>{u.current(t=>({data:e,version:t.version+1}))}})},r=[e,h,f.locale,f.query],(0,eI.useEffect)(n,(i=(0,eI.useRef)(r),o=(0,eI.useRef)(0),(0,eA.default)(r,i.current)||(i.current=r,o.current+=1),(0,eI.useMemo)(()=>i.current,[o.current]))),s.data}],313577)}]);
3
4//# debugId=c8209be7-546a-5ac5-2bca-f691f0fd869a

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.