1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7859],{17859:function(e,t,n){(function(e,t){"use strict";var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function r(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}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function i(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{l(r.next(e))}catch(e){i(e)}}function s(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(a,s)}l((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){var u=[s,l];if(n)throw TypeError("Generator is already executing.");for(;a&&(a=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=t.call(e,i)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}}"function"==typeof SuppressedError&&SuppressedError;var s,l=function(){function e(){this._id=0,this._listeners={}}return e.prototype.dispatch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r in this._listeners)(e=this._listeners)[r].apply(e,t)},e.prototype.attach=function(e){var t=this;if("function"!=typeof e)throw Error("listener function expected");var n=this._id++;return this._listeners[n]=e,function(){return delete t._listeners[n]}},e}(),u=function(e){function t(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=e.call(this)||this;if(!t.length)throw Error("Initial value to be memoized expected");return r._memoizedArgs=t,r}return r(t,e),t.prototype.dispatch=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this._memoizedArgs=t,e.prototype.dispatch.apply(this,t)},t.prototype.attach=function(t){var n=e.prototype.attach.call(this,t);return t.apply(void 0,this._memoizedArgs),n},t.prototype.getMemoizedArgs=function(){return this._memoizedArgs},t}(l),c=function(){function e(e,t){var n,r=this;this._messageHandlers={},this._responseHandlers={},this._send=(n=t.parent,function(t,r){var o=d.getMessageId();try{n.postMessage({source:e,id:o,method:t,params:r},"*")}catch(e){throw e instanceof DOMException&&"DataCloneError"===e.name&&"openDialog"===t&&console.error("Error: openCurrent[App] parameters could not be parsed. You likely tried to pass functions or DOM elements as a parameter. Tip: Use the App SDK directly within the dialog location.\n\nLearn more about the dialog location: https://ctfl.io/app-sdk-dialog"),e}return o}),t.addEventListener("message",function(e){r._handleMessage(e.data)})}return e.prototype.call=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this._send(e,n);return new Promise(function(e,n){t._responseHandlers[o]={resolve:e,reject:n}})},e.prototype.send=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this._send(e,t)},e.prototype.addHandler=function(e,t){return e in this._messageHandlers||(this._messageHandlers[e]=new l),this._messageHandlers[e].attach(t)},e.prototype._handleMessage=function(e){if(e.method){var t=e.method,n=e.params,r=this._messageHandlers[t];r&&r.dispatch.apply(r,n)}else{var o=e.id,i=this._responseHandlers[o];if(!i)return;"result"in e?i.resolve(e.result):"error"in e&&i.reject(e.error),delete this._responseHandlers[o]}},e}(),d=(s=0,{getMessageId:function(){return s++}}),p=function(){function e(e,t){var n=this;this.id=t.id,this.name=t.name,this.locale=t.locale,this.required=t.required,this.validations=t.validations,this._value=t.value,this._valueSignal=new u(this._value),this._isDisabledSignal=new u(t.isDisabled),this._schemaErrorsChangedSignal=new u(t.schemaErrors),this._channel=e,e.addHandler("valueChanged",function(e,t,r){e!==n.id||t&&t!==n.locale||(n._value=r,n._valueSignal.dis
1patch(r))}),e.addHandler("isDisabledChangedForFieldLocale",function(e,t,r){e===n.id&&t===n.locale&&n._isDisabledSignal.dispatch(r)}),e.addHandler("schemaErrorsChangedForFieldLocale",function(e,t,r){e===n.id&&t===n.locale&&n._schemaErrorsChangedSignal.dispatch(r)})}return e.prototype.getValue=function(){return this._value},e.prototype.setValue=function(e){return i(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return this._value=e,[4,this._channel.call("setValue",this.id,this.locale,e)];case 1:return[2,t.sent()]}})})},e.prototype.removeValue=function(){return i(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:return this._value=void 0,[4,this._channel.call("removeValue",this.id,this.locale)];case 1:return e.sent(),[2]}})})},e.prototype.setInvalid=function(e){return this._channel.call("setInvalid",e,this.locale)},e.prototype.onValueChanged=function(e){return this._valueSignal.attach(e)},e.prototype.getIsDisabled=function(){return this._isDisabledSignal.getMemoizedArgs()[0]},e.prototype.onIsDisabledChanged=function(e){return this._isDisabledSignal.attach(e)},e.prototype.getSchemaErrors=function(){return this._schemaErrorsChangedSignal.getMemoizedArgs()[0]},e.prototype.onSchemaErrorsChanged=function(e){return this._schemaErrorsChangedSignal.attach(e)},e}(),f=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type=n.type,r}return r(t,e),t}(p),h=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type=n.type,r.items=n.items,r}return r(t,e),t}(p),g=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.type=n.type,r.linkType=n.linkType,r}return r(t,e),t}(p);function y(e,t){switch(t.type){case"Link":return new g(e,t);case"Array":return new h(e,t);default:return new f(e,t)}}var v=function(){function e(e,t,n){var r=this;this.id=t.id,this.name=t.name,this.locales=t.locales,this.required=t.required,this.validations=t.validations,this._defaultLocale=n,this._fieldLocales=t.locales.reduce(function(n,i){var a,s=y(e,r.toFieldInfo(t,i));return o(o({},n),((a={})[i]=s,a))},{}),this.assertHasLocale(n)}return e.prototype.getValue=function(e){return this._getFieldLocale(e).getValue()},e.prototype.setValue=function(e,t){return i(this,void 0,void 0,function(){return a(this,function(n){switch(n.label){case 0:return[4,this._getFieldLocale(t).setValue(e)];case 1:return[2,n.sent()]}})})},e.prototype.removeValue=function(e){return i(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return[4,this.setValue(void 0,e)];case 1:return t.sent(),[2]}})})},e.prototype.onValueChanged=function(e,t){var n=t||e;return t||(e=""),this._getFieldLocale(e).onValueChanged(n)},e.prototype.onIsDisabledChanged=function(e,t){var n=t||e;return t||(e=""),this._getFieldLocale(e).onIsDisabledChanged(n)},e.prototype._getFieldLocale=function(e){return e=e||this._defaultLocale,this.assertHasLocale(e),this._fieldLocales[e]},e.prototype.getForLocale=function(e){if(!e)throw Error("getForLocale must be passed a locale");return this._getFieldLocale(e)},e.prototype.assertHasLocale=function(e){if(!this._fieldLocales[e])throw Error('Unknown locale "'.concat(e,'" for field "').concat(this.id,'"'))},e.prototype.toFieldInfo=function(e,t){var n={id:e.id,name:e.name,required:e.required,validations:e.validations,locale:t,value:e.values[t],isDisabled:e.isDisabled[t],schemaErrors:e.schemaErrors[t]};switch(e.type){case"Array":return o(o({},n),{type:e.type,items:e.items});case"Link":return o(o({},n),{type:e.type,linkType:e.linkType});default:return o(o({},n),{type:e.type})}},e}(),m=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.type=n.type,o}return r(t,e),t}(v),E=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.type=n.type,o.items=n.items,o}return r(t,e),t}(v),A=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.type=n.type,o.linkType=n.linkType,o}return r(t,e),t}(v),b=["getTask","getTasks","createTask","updateTask","deleteTask"];function _(e){var t,n;return!!(null==(n=null==(t=null==e?void 0:e.release)?void 0:t.sys)?void 0:n.id)}
1var C,w=["getContentType","getEntry","getEntrySnapshots","getAsset","getEditorInterface","getPublishedEntries","getPublishedAssets","getContentTypes","getEntries","getEditorInterfaces","getAssets","createContentType","createEntry","createAsset","updateContentType","updateEntry","updateAsset","deleteContentType","deleteEntry","deleteAsset","publishEntry","publishAsset","unpublishEntry","unpublishAsset","archiveEntry","archiveAsset","unarchiveEntry","unarchiveAsset","createUpload","processAsset","waitUntilAssetProcessed","getUsers","getAllScheduledActions","getEntityScheduledActions","signRequest","createTag","readTags","updateTag","deleteTag","getTeams"],T=function(e){return"object"!=typeof e||null===e||Array.isArray(e)?{}:e},I="preInstall",L="postInstall",S=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)},O=function(e){return"function"==typeof e},D=function(e){return console.error(e),Promise.resolve(!1)},N=function(e,t,n){if(!O(e))return Promise.resolve(t);try{r=void 0===n?e():e(n)}catch(e){return D(e)}var r,o,i=r;return S(o=i)&&O(o.then)||(i=Promise.resolve(i)),i.then(function(e){return e instanceof Error?Promise.reject(e):!1!==e&&(S(e)?e:t)},D).catch(D)},M={LOCATION_ENTRY_FIELD:"entry-field",LOCATION_ENTRY_FIELD_SIDEBAR:"entry-field-sidebar",LOCATION_ENTRY_SIDEBAR:"entry-sidebar",LOCATION_ASSET_SIDEBAR:"asset-sidebar",LOCATION_DIALOG:"dialog",LOCATION_ENTRY_EDITOR:"entry-editor",LOCATION_PAGE:"page",LOCATION_APP_CONFIG:"app-config",LOCATION_HOME:"home",LOCATION_AGENT:"agent"};function H(e){return{makeRequest:function(t){return e.call("CMAAdapterCall",t)}}}var k=[P,V,function(e,t){var n=t.field;if(!n)throw Error('FieldAPI called for location without "field" property defined.');return{field:y(e,n)}},F,R],x=((C={})[M.LOCATION_ENTRY_FIELD]=k,C[M.LOCATION_ENTRY_FIELD_SIDEBAR]=k,C[M.LOCATION_ENTRY_SIDEBAR]=[P,V,F,R],C[M.LOCATION_ASSET_SIDEBAR]=[P,function(e,t){return{asset:function(e,t){if(!t)throw Error("Asset data is required");var n=t.sys,r=new u(n),o=t.metadata,i=new u(o);return e.addHandler("sysChanged",function(e){n=e,r.dispatch(n)}),e.addHandler("metadataChanged",function(e){o=e,i.dispatch(o)}),{getSys:function(){return n},publish:function(t){return e.call("callAssetMethod","publish",[t])},unpublish:function(){return e.call("callAssetMethod","unpublish")},save:function(){return e.call("callAssetMethod","save")},onSysChanged:function(e){return r.attach(e)},getMetadata:function(){return o},onMetadataChanged:function(e){return i.attach(e)}}}(e,t.asset)}},R],C[M.LOCATION_ENTRY_EDITOR]=[P,V,F],C[M.LOCATION_DIALOG]=[P,function(e){return{close:function(t){return e.send("closeDialog",t)}}},R],C[M.LOCATION_PAGE]=[P],C[M.LOCATION_HOME]=[P],C[M.LOCATION_APP_CONFIG]=[P,function(e){var t,n,r;return{app:((t={})[I]=null,t[L]=null,n=t,r=function(e,t){if(!O(t))throw Error("Handler must be a function.");n[e]=t},e.addHandler("appHook",function(t){var r=t.stage,o=t.installationRequestId,i=t.err;return r===I?N(n[r],{}).then(function(t){return e.send("appHookResult",{stage:r,installationRequestId:o,result:t})}):r===L?N(n[r],void 0,i||null).then(function(){return e.send("appHookResult",{stage:r,installationRequestId:o})}):Promise.resolve()}),{setReady:function(){return e.call("callAppMethod","setReady")},isInstalled:function(){return e.call("callAppMethod","isInstalled")},getParameters:function(){return e.call("callAppMethod","getParameters")},getCurrentState:function(){return e.call("callAppMethod","getCurrentState")},onConfigure:function(e){r(I,e)},onConfigurationCompleted:function(e){r(L,e)}})}}],C[M.LOCATION_AGENT]=[P,function(e,t){return{agent:function(e,t){if(!t)throw Error("Context data is required");var n=new u(t),r=new l,o=new u("normal");return e.addHandler("contextChanged",function(e){n.dispatch(e)}),e.addHandler("toolbarAction",function(e){r.dispatch(e)}),e.addHandler("agentLayoutVariantChanged",function(e){o.dispatch(e)}),{onContextChange:function(e){return n.attach(e)},onToolbarAction:function(e){return r.attach(e)},onAgentLayoutVariantChange:function(e){return o.attach(e)},setAgentLayoutVariant:function(t){if("expanded"!==t&&"normal"!==t)throw Error('Invalid layout variant "'.concat(t,'". Expected "expanded" or "normal".'));e.send("setAgentLayoutVariant",t)}}}(e,t.agent)}},R],C);function P(e,n){var r,i,a,s,u,c=n.user,d=n.parameters,p=n.locales,f=n.ids,h=n.initialContentTypes,g=n.hostnames,y=n.release,v=n.uiLanguageLocale,m=n.location||M.LOCATION_ENTRY_FIELD;return{cma:t.createClient({apiAdapter:H(e)},{type:"plain",defaults:{environmentId:null!=(r=f.environmentAlias)?r:f.environment,spaceId:f.space,organizationId:f.organization,releaseId:f.release}}),cmaAdapter:H(e),location:{is:function(e){return m===e}},user:c,parameters:d,locales:{available:p.available,default:p.default,names:p.names,fallbacks:p.fallbacks,optional:p.optional,direction:p.direction},space:(i={}
1,w.forEach(function(t){i[t]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return console.warn("You called ".concat(String(t)," on the Space API. Since version 4.0.0 the Space API and its methods are deprecated, and they will be removed from version 5.0.0 on. We recommend that you use the CMA client instead. See https://www.contentful.com/developers/docs/extensibility/app-framework/sdk/#using-the-contentful-management-library for more details.")),e.call("callSpaceMethod",t,n)}}),i.getCachedContentTypes=function(){return function(e,t,n){if(n||2==arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([],h,!0)},i),dialogs:function(e,t){return{openAlert:n.bind(null,"alert"),openConfirm:n.bind(null,"confirm"),openPrompt:n.bind(null,"prompt"),openExtension:r,openCurrentApp:i,openCurrent:function(e){return t.app?i(e):r(o(o({},e),{id:t.extension}))},selectSingleEntry:a.bind(null,"Entry",!1),selectSingleAsset:a.bind(null,"Asset",!1),selectMultipleEntries:a.bind(null,"Entry",!0),selectMultipleAssets:a.bind(null,"Asset",!0),selectSingleExperience:a.bind(null,"Experience",!1),selectMultipleExperiences:a.bind(null,"Experience",!0),selectSinglePattern:a.bind(null,"Pattern",!1),selectMultiplePatterns:a.bind(null,"Pattern",!0),selectSingleComponentDefinition:a.bind(null,"ComponentDefinition",!1),selectMultipleComponentDefinitions:a.bind(null,"ComponentDefinition",!0)};function n(t,n){return e.call("openDialog",t,T(n))}function r(n){var r=T(n);if((r=o(o({},r),{id:r.id||t.extension})).id)return e.call("openDialog","extension",r);throw Error("Extension ID not provided.")}function i(n){if(n=T(n),t.app){var r=o(o({},n),{id:t.app});return e.call("openDialog","app",r)}throw Error("Not in the app context.")}function a(t,n,r){return(r=T(r)).entityType=t,r.multiple=n,e.call("openDialog","entitySelector",r)}}(e,f),navigator:(s=new l,e.addHandler("navigateSlideIn",function(e){s.dispatch(e)}),u=y?null==(a=y.sys)?void 0:a.id:void 0,{openEntry:function(t,n){return e.call("navigateToContentEntity",o(o({},n),{entityType:"Entry",id:t,releaseId:u}))},openNewEntry:function(t,n){return e.call("navigateToContentEntity",o(o({},n),{entityType:"Entry",id:null,contentTypeId:t}))},openBulkEditor:function(t,n){return e.call("navigateToBulkEditor",o({entryId:t},n))},openAsset:function(t,n){return e.call("navigateToContentEntity",o(o({},n),{entityType:"Asset",id:t,releaseId:u}))},openNewAsset:function(t){return e.call("navigateToContentEntity",o(o({},t),{entityType:"Asset",id:null}))},openPageExtension:function(t){return e.call("navigateToPage",o({type:"extension",id:f.extension},t))},openCurrentAppPage:function(t){return e.call("navigateToPage",o({type:"app",id:f.app},t))},openAppConfig:function(){return e.call("navigateToAppConfig")},openEntriesList:function(){return e.call("navigateToSpaceEnvRoute",{route:"entries",releaseId:u})},openAssetsList:function(){return e.call("navigateToSpaceEnvRoute",{route:"assets",releaseId:u})},onSlideInNavigation:function(e){return s.attach(e)}}),notifier:{success:function(t){return e.send("notify",{type:"success",message:t})},error:function(t){return e.send("notify",{type:"error",message:t})},warning:function(t){return e.send("notify",{type:"warning",message:t})}},ids:f,hostnames:g,release:y,uiLanguageLocale:v,access:{can:function(t,n,r){return e.call("checkAccess",t,n,r)},canEditAppConfig:function(){return e.call("checkAppConfigAccess")}}}}function R(e,t,n){return{window:function(e,t){var n,r=e.document,o=e.MutationObserver,i=e.ResizeObserver,a=!1,s=!1,l=new Set,u=new o(function(e){e.forEach(function(e){switch(e.type){case"attributes":if(e.target.nodeType===Node.ELEMENT_NODE){var t=e.target;p(e.type,t)?l.add(t):l.delete(t)}break;case"childList":e.addedNodes.forEach(function(t){t.nodeType===Node.ELEMENT_NODE&&p(e.type,t)&&l.add(t)}),e.removedNodes.forEach(function(e){l.delete(e)})}}),a&&d.updateHeight()}),c=new i(function(){d.updateHeight()});u.observe(r.body,{attributes:!0,childList:!0,subtree:!0,characterData:!0}
1);var d={startAutoResizer:function(e){var t=(void 0===e?{}:e).absoluteElements;s=!!(void 0!==t&&t),d.updateHeight(),a||(a=!0,c.observe(r.body))},stopAutoResizer:function(){a&&(a=!1,c.disconnect())},updateHeight:function(e){if(void 0===e&&(e=null),null===e){var o=Math.ceil(r.documentElement.getBoundingClientRect().height);if(s&&l.size){var i=o;l.forEach(function(e){i=Math.max(e.getBoundingClientRect().bottom,i)}),e=i}else e=o}e!==n&&(t.send("setHeight",e),n=e)}};return d;function p(e,t){var n=getComputedStyle(t);return"absolute"===n.position&&("attributes"!==e||"none"!==n.display)}}(n,e)}}function F(e,t){var n,r,o,i;return{editor:(n=t.editorInterface,o=new u((r=t.editor).localeSettings),i=new u(r.showHiddenFields),e.addHandler("localeSettingsChanged",function(e){o.dispatch(e)}),e.addHandler("showHiddenFieldsChanged",function(e){i.dispatch(e)}),{editorInterface:n,getLocaleSettings:function(){return o.getMemoizedArgs()[0]},onLocaleSettingsChanged:function(e){return o.attach(e)},onShowDisabledFieldsChanged:function(e){return i.attach(e)},getShowHiddenFields:function(){return i.getMemoizedArgs()[0]},onShowHiddenFieldsChanged:function(e){return i.attach(e)}})}}function V(e,t){var n,r,i,a,s,l,c,d=t.locales,p=t.contentType,f=t.entry,h=t.fieldInfo;return{contentType:p,entry:(n=function(t){var n=d.default;switch(t.type){case"Array":return new E(e,t,n);case"Link":return new A(e,t,n);default:return new m(e,t,n)}},i=_(r=f.sys),a=new u(r),l=new u(s=f.metadata),e.addHandler("sysChanged",function(e){i=_(r=e),a.dispatch(r)}),e.addHandler("metadataChanged",function(e){s=e,l.dispatch(s)}),c={},b.forEach(function(t){c[t]=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return e.call("callEntryMethod",t,n)}}),o(o(o({getSys:function(){return r},publish:function(t){if(i)throw Error('SDK method "publish" is not supported in release context');return e.call("callEntryMethod","publish",[t])},unpublish:function(){if(i)throw Error('SDK method "unpublish" is not supported in release context');return e.call("callEntryMethod","unpublish")},save:function(){return e.call("callEntryMethod","save")},onSysChanged:function(e){return a.attach(e)},fields:h.reduce(function(e,t){return e[t.id]=n(t),e},{})},s?{metadata:s}:{}),{getMetadata:function(){return s},onMetadataChanged:function(e){return l.attach(e)}}),c))}}e.init=function(e,t){if(void 0===e.window||void 0===e.document)return function(){};var n,r,o,i,a=((o={promise:null,resolve:null,isFulfilled:!1}).promise=new Promise(function(e){o.resolve=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];o.isFulfilled=!0,e.apply(void 0,t)}}),o);return a.promise.then(function(t){var n=t[0],r=e.document;r.addEventListener("focus",function(){return n.send("setActive",!0)},!0),r.addEventListener("blur",function(){return n.send("setActive",!1)},!0)}),n=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a.resolve(e)},r=function(t,r){n(new c(t.id,e),t,r)},e.addEventListener("message",function t(n){var o=n.data;"connect"===o.method&&(e.removeEventListener("message",t),r.apply(void 0,o.params))}),function(n,r){var o,s=void 0===r?{supressIframeWarning:!1}:r,l=s.makeCustomApi;s.supressIframeWarning||e.self===e.top&&console.error("Cannot use App SDK outside of Contenful:\n\nIn order for the App SDK to function correctly, your app needs to be run in an iframe in the Contentful Web App, Compose or Launch.\n\nLearn more about local development with the App SDK here:\nhttps://www.contentful.com/developers/docs/extensibility/ui-extensions/faq/#how-can-i-develop-with-the-ui-extension-sdk-locally"),i||(i=a.promise.then(function(n){var r,o=n[0],i=n[1],a=n[2],s=t(o,i,e);return"function"==typeof l&&(r=l(o,i)),a.forEach(function(e){o._handleMessage(e)}),[s,r]}),a.isFulfilled||(o=d.getMessageId(),e.parent.postMessage({id:o,method:"init",params:[]},"*"))),i.then(function(e){return n(e[0],e[1])})}}(globalThis,function(e,t,n){return(x[t.location]||k).reduce(function(r,i){return o(o({},r),i(e,t,n))},{})}),e.locations=M,Object.defineProperty(e,"__esModule",{value:!0})})(t,n(11249)),globalThis.contentfulApp=globalThis.contentfulExtension}}]);
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.