contentful-management
Advanced tools
Comparing version 4.0.2 to 4.0.3
@@ -1,1 +0,1 @@ | ||
(function(e,t){'object'==typeof exports&&'object'==typeof module?module.exports=t():'function'==typeof define&&define.amd?define([],t):'object'==typeof exports?exports.contentfulManagement=t():e.contentfulManagement=t()})(this,function(){return function(e){function t(r){if(a[r])return a[r].exports;var n=a[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var a=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(a,'a',a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=34)}([function(e,t,a){var r=a(55);e.exports=function(e){return r(e,1|4)}},function(e,t,a){'use strict';var r=a(104);a.d(t,'a',function(){return r.a});var n=a(109);a.d(t,'b',function(){return n.a});var o=a(110),s=a(111);a.d(t,'c',function(){return s.a});var i=a(114);a.d(t,'d',function(){return i.a});var p=a(116);a.d(t,'e',function(){return p.a})},function(e,t){'use strict';t.a=function(e,t){return Object.keys(t).reduce(function(e,a){return Object.defineProperty(e,a,{enumerable:!1,configurable:!1,writable:!1,value:t[a]}),e},e)}},function(e,t,a){'use strict';function r(e){return'[object Array]'===l.call(e)}function n(e){return null!==e&&'object'==typeof e}function o(e){return'[object Function]'===l.call(e)}function s(e,t){if(null!==e&&'undefined'!=typeof e)if('object'==typeof e||r(e)||(e=[e]),r(e))for(var a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function i(){function e(e,a){t[a]='object'==typeof t[a]&&'object'==typeof e?i(t[a],e):e}for(var t={},a=0,r=arguments.length;a<r;a++)s(arguments[a],e);return t}var p=a(16),d=a(38),l=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:function(e){return'[object ArrayBuffer]'===l.call(e)},isBuffer:d,isFormData:function(e){return'undefined'!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){var t;return t='undefined'!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t},isString:function(e){return'string'==typeof e},isNumber:function(e){return'number'==typeof e},isObject:n,isUndefined:function(e){return'undefined'==typeof e},isDate:function(e){return'[object Date]'===l.call(e)},isFile:function(e){return'[object File]'===l.call(e)},isBlob:function(e){return'[object Blob]'===l.call(e)},isFunction:o,isStream:function(e){return n(e)&&o(e.pipe)},isURLSearchParams:function(e){return'undefined'!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return'undefined'!=typeof navigator&&'ReactNative'===navigator.product?!1:'undefined'!=typeof window&&'undefined'!=typeof document},forEach:s,merge:i,extend:function(e,t,a){return s(t,function(t,r){e[r]=a&&'function'==typeof t?p(t,a):t}),e},trim:function(e){return e.replace(/^\s*/,'').replace(/\s*$/,'')}}},function(e,t,a){'use strict';t.i=function(e){var t=e.http,a=e.entityPath,r=e.wrapperMethod;return function(){var e=this.toPlainObject(),s=n()(e);return delete s.sys,t.put(a+'/'+this.sys.id,s,{headers:{"X-Contentful-Version":this.sys.version}}).then(function(e){return r(t,e.data)},o.a)}},t.c=function(e){var t=e.http,a=e.entityPath;return function(){return t.delete(a+'/'+this.sys.id).then(function(){},o.a)}},t.e=function(e){var t=e.http,a=e.entityPath,r=e.wrapperMethod;return function(){return t.put(a+'/'+this.sys.id+'/published',null,{headers:{"X-Contentful-Version":this.sys.version}}).then(function(e){return r(t,e.data)},o.a)}},t.h=function(e){var t=e.http,a=e.entityPath,r=e.wrapperMethod;return function(){return t.delete(a+'/'+this.sys.id+'/published').then(function(e){return r(t,e.data)},o.a)}},t.a=function(e){var t=e.http,a=e.entityPath,r=e.wrapperMethod;return function(){return t.put(a+'/'+this.sys.id+'/archived').then(function(e){return r(t,e.data)},o.a)}},t.g=function(e){var t=e.http,a=e.entityPath,r=e.wrapperMethod;return function(){return t.delete(a+'/'+this.sys.id+'/archived').then(function(e){return r(t,e.data)},o.a)}},t.f=function(){return function(){return!!this.sys.publishedVersion}},t.j=function(){return function(){return!!(this.sys.publishedVersion&&this.sys.version>this.sys.publishedVersion+1)}},t.d=function(){return function(){return!this.sys.publishedVersion}},t.b=function(){return function(){return!!this.sys.archivedVersion}};var r=a(0),n=a.n(r),o=a(5)},function(e,t,a){'use strict';t.a=function(e){var t,a=e.config,r=e.response;if(!n()(r)||!n()(a))throw e;var o=r.data,s={status:r.status,statusText:r.statusText,message:'',details:{}};if(a.headers&&a.headers.Authorization){var i='...'+a.headers.Authorization.substr(-5);a.headers.Authorization='Bearer '+i}n()(a)&&(s.request={url:a.url,headers:a.headers,method:a.method,payloadData:a.data}),n()(o)&&('requestId'in o&&(s.requestId=o.requestId||'UNKNOWN'),'message'in o&&(s.message=o.message||''),'details'in o&&(s.details=o.details||{}),'sys'in o&&'id'in o.sys&&(t=o.sys.id));var p=new Error;throw p.name=t&&'Unknown'!==t?t:r.status+' '+r.statusText,p.message=JSON.stringify(s,null,' '),p};var r=a(31),n=a.n(r)},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(57),o=a(58),s=a(59),i=a(60),p=a(61);r.prototype.clear=n,r.prototype['delete']=o,r.prototype.get=s,r.prototype.has=i,r.prototype.set=p,e.exports=r},function(e,t,a){var r=a(21);e.exports=function(e,t){for(var a=e.length;a--;)if(r(e[a][0],t))return a;return-1}},function(e,t,a){var r=a(13),n=r(Object,'create');e.exports=n},function(e,t,a){var r=a(78);e.exports=function(e,t){var a=e.__data__;return r(t)?a['string'==typeof t?'string':'hash']:a.map}},function(e,t,a){var r=a(24),n=a(25);e.exports=function(e,t,a,o){var s=!a;a||(a={});for(var i=-1,p=t.length;++i<p;){var d=t[i],l=o?o(a[d],e[d],d,a,e):void 0;l===void 0&&(l=e[d]),s?n(a,d,l):r(a,d,l)}return a}},function(e,t,a){'use strict';(function(t){function r(e,t){!n.isUndefined(e)&&n.isUndefined(e['Content-Type'])&&(e['Content-Type']=t)}var n=a(3),o=a(40),s={"Content-Type":'application/x-www-form-urlencoded'},i={adapter:function(){var e;return'undefined'==typeof XMLHttpRequest?'undefined'!=typeof t&&(e=a(17)):e=a(17),e}(),transformRequest:[function(e,t){return o(t,'Content-Type'),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(r(t,'application/x-www-form-urlencoded;charset=utf-8'),e.toString()):n.isObject(e)?(r(t,'application/json;charset=utf-8'),JSON.stringify(e)):e}],transformResponse:[function(e){if('string'==typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:'XSRF-TOKEN',xsrfHeaderName:'X-XSRF-TOKEN',maxContentLength:-1,validateStatus:function(e){return 200<=e&&300>e}};i.headers={common:{Accept:'application/json, text/plain, */*'}},n.forEach(['delete','get','head'],function(e){i.headers[e]={}}),n.forEach(['post','put','patch'],function(e){i.headers[e]=n.merge(s)}),e.exports=i}).call(t,a(12))},function(e){function t(){throw new Error('setTimeout has not been defined')}function a(){throw new Error('clearTimeout has not been defined')}function r(e){if(d===setTimeout)return setTimeout(e,0);if((d===t||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function n(e){if(l===clearTimeout)return clearTimeout(e);if((l===a||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}function o(){y&&h&&(y=!1,h.length?u=h.concat(u):f=-1,u.length&&s())}function s(){if(!y){var e=r(o);y=!0;for(var t=u.length;t;){for(h=u,u=[];++f<t;)h&&h[f].run();f=-1,t=u.length}h=null,y=!1,n(e)}}function p(e,t){this.fun=e,this.array=t}function i(){}var d,l,c=e.exports={};(function(){try{d='function'==typeof setTimeout?setTimeout:t}catch(a){d=t}try{l='function'==typeof clearTimeout?clearTimeout:a}catch(t){l=a}})();var h,u=[],y=!1,f=-1;c.nextTick=function(e){var t=Array(arguments.length-1);if(1<arguments.length)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];u.push(new p(e,t)),1!==u.length||y||r(s)},p.prototype.run=function(){this.fun.apply(null,this.array)},c.title='browser',c.browser=!0,c.env={},c.argv=[],c.version='',c.versions={},c.on=i,c.addListener=i,c.once=i,c.off=i,c.removeListener=i,c.removeAllListeners=i,c.emit=i,c.prependListener=i,c.prependOnceListener=i,c.listeners=function(){return[]},c.binding=function(){throw new Error('process.binding is not supported')},c.cwd=function(){return'/'},c.chdir=function(){throw new Error('process.chdir is not supported')},c.umask=function(){return 0}},function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e){e.exports=function(e,t){return function(a){return e(t(a))}}},function(e,t,a){'use strict';function r(){return{}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapSnapshot=n,t.wrapSnapshotCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2)},function(e){'use strict';e.exports=function(e,t){return function(){for(var a=Array(arguments.length),r=0;r<a.length;r++)a[r]=arguments[r];return e.apply(t,a)}}},function(e,t,a){'use strict';var r=a(3),n=a(41),o=a(43),s=a(44),i=a(45),p=a(18),d='undefined'!=typeof window&&window.btoa&&window.btoa.bind(window)||a(46);e.exports=function(t){return new Promise(function(e,l){var c=t.data,h=t.headers;r.isFormData(c)&&delete h['Content-Type'];var u=new XMLHttpRequest,y='onreadystatechange',f=!1;if('undefined'==typeof window||!window.XDomainRequest||'withCredentials'in u||i(t.url)||(u=new window.XDomainRequest,y='onload',f=!0,u.onprogress=function(){},u.ontimeout=function(){}),t.auth){var g=t.auth.username||'',m=t.auth.password||'';h.Authorization='Basic '+d(g+':'+m)}if(u.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,u[y]=function(){if(u&&(4===u.readyState||f)&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf('file:'))){var a='getAllResponseHeaders'in u?s(u.getAllResponseHeaders()):null,r=t.responseType&&'text'!==t.responseType?u.response:u.responseText,o={data:r,status:1223===u.status?204:u.status,statusText:1223===u.status?'No Content':u.statusText,headers:a,config:t,request:u};n(e,l,o),u=null}},u.onerror=function(){l(p('Network Error',t,null,u)),u=null},u.ontimeout=function(){l(p('timeout of '+t.timeout+'ms exceeded',t,'ECONNABORTED',u)),u=null},r.isStandardBrowserEnv()){var b=a(47),x=(t.withCredentials||i(t.url))&&t.xsrfCookieName?b.read(t.xsrfCookieName):void 0;x&&(h[t.xsrfHeaderName]=x)}if('setRequestHeader'in u&&r.forEach(h,function(e,t){'undefined'==typeof c&&'content-type'===t.toLowerCase()?delete h[t]:u.setRequestHeader(t,e)}),t.withCredentials&&(u.withCredentials=!0),t.responseType)try{u.responseType=t.responseType}catch(a){if('json'!==t.responseType)throw a}'function'==typeof t.onDownloadProgress&&u.addEventListener('progress',t.onDownloadProgress),'function'==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener('progress',t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(e){u&&(u.abort(),l(e),u=null)}),void 0===c&&(c=null),u.send(c)})}},function(e,t,a){'use strict';var r=a(42);e.exports=function(e,t,a,n,o){var s=new Error(e);return r(s,t,a,n,o)}},function(e){'use strict';e.exports=function(e){return!!(e&&e.__CANCEL__)}},function(e){'use strict';function t(e){this.message=e}t.prototype.toString=function(){return'Cancel'+(this.message?': '+this.message:'')},t.prototype.__CANCEL__=!0,e.exports=t},function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,a){var r=a(13),n=a(23),o=r(n,'Map');e.exports=o},function(e,t,a){var r=a(67),n='object'==typeof self&&self&&self.Object===Object&&self,o=r||n||Function('return this')();e.exports=o},function(e,t,a){var r=a(25),n=a(21),o=Object.prototype,s=o.hasOwnProperty;e.exports=function(e,t,a){var o=e[t];s.call(e,t)&&n(o,a)&&(a!==void 0||t in e)||r(e,t,a)}},function(e,t,a){var r=a(83);e.exports=function(e,t,a){'__proto__'==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}},function(e,t,a){var r=a(14),n=r(Object.keys,Object);e.exports=n},function(e){e.exports=function(e){var t=typeof e;return null!=e&&('object'==t||'function'==t)}},function(e,t,a){var r=a(14),n=r(Object.getPrototypeOf,Object);e.exports=n},function(e,t){'use strict';var a=Object.prototype.hasOwnProperty,r=function(){for(var e=[],t=0;256>t;++t)e.push('%'+((16>t?'0':'')+t.toString(16)).toUpperCase());return e}(),n=function(e){for(var t,a;e.length;)if(a=e.pop(),t=a.obj[a.prop],Array.isArray(t)){for(var r=[],n=0;n<t.length;++n)'undefined'!=typeof t[n]&&r.push(t[n]);a.obj[a.prop]=r}return t};t.arrayToObject=function(e,t){for(var a=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)'undefined'!=typeof e[r]&&(a[r]=e[r]);return a},t.merge=function(e,r,n){if(!r)return e;if('object'!=typeof r){if(Array.isArray(e))e.push(r);else if('object'==typeof e)(n.plainObjects||n.allowPrototypes||!a.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if('object'!=typeof e)return[e].concat(r);var o=e;return Array.isArray(e)&&!Array.isArray(r)&&(o=t.arrayToObject(e,n)),Array.isArray(e)&&Array.isArray(r)?(r.forEach(function(r,o){a.call(e,o)?e[o]&&'object'==typeof e[o]?e[o]=t.merge(e[o],r,n):e.push(r):e[o]=r}),e):Object.keys(r).reduce(function(e,o){var s=r[o];return e[o]=a.call(e,o)?t.merge(e[o],s,n):s,e},o)},t.assign=function(e,t){return Object.keys(t).reduce(function(e,a){return e[a]=t[a],e},e)},t.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g,' '))}catch(t){return e}},t.encode=function(e){if(0===e.length)return e;for(var t,a='string'==typeof e?e:e+'',n='',o=0;o<a.length;++o){if(t=a.charCodeAt(o),45===t||46===t||95===t||126===t||48<=t&&57>=t||65<=t&&90>=t||97<=t&&122>=t){n+=a.charAt(o);continue}if(128>t){n+=r[t];continue}if(2048>t){n+=r[192|t>>6]+r[128|63&t];continue}if(55296>t||57344<=t){n+=r[224|t>>12]+r[128|63&t>>6]+r[128|63&t];continue}o+=1,t=65536+((1023&t)<<10|1023&a.charCodeAt(o)),n+=r[240|t>>18]+r[128|63&t>>12]+r[128|63&t>>6]+r[128|63&t]}return n},t.compact=function(e){for(var t=[{obj:{o:e},prop:'o'}],a=[],r=0;r<t.length;++r)for(var o=t[r],s=o.obj[o.prop],i=Object.keys(s),p=0;p<i.length;++p){var d=i[p],l=s[d];'object'==typeof l&&null!==l&&-1===a.indexOf(l)&&(t.push({obj:s,prop:d}),a.push(l))}return n(t)},t.isRegExp=function(e){return'[object RegExp]'===Object.prototype.toString.call(e)},t.isBuffer=function(e){return null===e||'undefined'==typeof e?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},function(e){'use strict';var t=String.prototype.replace,a=/%20/g;e.exports={default:'RFC3986',formatters:{RFC1738:function(e){return t.call(e,a,'+')},RFC3986:function(e){return e}},RFC1738:'RFC1738',RFC3986:'RFC3986'}},function(e,t,a){var r=a(112),n=a(28),o=a(113),s=Function.prototype,i=Object.prototype,p=s.toString,d=i.hasOwnProperty,l=p.call(Object);e.exports=function(e){if(!o(e)||r(e)!='[object Object]')return!1;var t=n(e);if(null===t)return!0;var a=d.call(t,'constructor')&&t.constructor;return'function'==typeof a&&a instanceof a&&p.call(a)==l}},function(e,t,a){'use strict';var r=a(118),n=a(120),o=a(121),s=a(122),i=a(33),p=a(123),d=a(124),l=a(125),c=a(126),h=a(127),u=a(128),y=a(129),f=a(130),g=a(15),m=a(131);t.a={space:r,entry:n,asset:o,contentType:s,editorInterface:i,locale:p,webhook:d,spaceMembership:l,role:c,apiKey:h,upload:u,organization:y,uiExtension:f,snapshot:g,user:m}},function(e,t,a){'use strict';function r(e){return{update:function(){var t=this.toPlainObject(),a=s()(t);return delete a.sys,e.put('content_types/'+this.sys.contentType.sys.id+'/editor_interface',a,{headers:{"X-Contentful-Version":this.sys.version}}).then(function(t){return n(e,t.data)},d.a)},getControlForField:function(e){var t=this.controls.filter(function(t){return t.fieldId===e});return t&&0<t.length?t[0]:null}}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapEditorInterface=n;var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(5)},function(e,t,a){e.exports=a(35)},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.createClient=function(e){var t=Object(i.d)('contentful-management.js/4.0.2',e.application,e.integration);if(e=d({},{defaultHostname:'api.contentful.com',defaultHostnameUpload:'upload.contentful.com'},s()(e)),!e.accessToken)throw new TypeError('Expected parameter accessToken');e.headers=d({},e.headers,{"Content-Type":'application/vnd.contentful.management.v1+json',"X-Contentful-User-Agent":t});var a=Object(i.a)(n.a,e),r=Object(p.a)({http:a});return r};var r=a(36),n=a.n(r),o=a(0),s=a.n(o),i=a(1),p=a(117),d=Object.assign||function(e){for(var t,a=1;a<arguments.length;a++)for(var r in t=arguments[a],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}},function(e,t,a){e.exports=a(37)},function(e,t,a){'use strict';function r(e){var t=new s(e),a=o(s.prototype.request,t);return n.extend(a,s.prototype,t),n.extend(a,t),a}var n=a(3),o=a(16),s=a(39),i=a(11),p=r(i);p.Axios=s,p.create=function(e){return r(n.merge(i,e))},p.Cancel=a(20),p.CancelToken=a(53),p.isCancel=a(19),p.all=function(e){return Promise.all(e)},p.spread=a(54),e.exports=p,e.exports.default=p},function(e){function t(e){return!!e.constructor&&'function'==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function a(e){return'function'==typeof e.readFloatLE&&'function'==typeof e.slice&&t(e.slice(0,0))}e.exports=function(e){return null!=e&&(t(e)||a(e)||!!e._isBuffer)}},function(e,t,a){'use strict';function r(e){this.defaults=e,this.interceptors={request:new s,response:new s}}var n=a(11),o=a(3),s=a(48),i=a(49),p=a(51),d=a(52);r.prototype.request=function(e){'string'==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),e=o.merge(n,this.defaults,{method:'get'},e),e.method=e.method.toLowerCase(),e.baseURL&&!p(e.url)&&(e.url=d(e.baseURL,e.url));var t=[i,void 0],a=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)a=a.then(t.shift(),t.shift());return a},o.forEach(['delete','get','head','options'],function(e){r.prototype[e]=function(t,a){return this.request(o.merge(a||{},{method:e,url:t}))}}),o.forEach(['post','put','patch'],function(e){r.prototype[e]=function(t,a,r){return this.request(o.merge(r||{},{method:e,url:t,data:a}))}}),e.exports=r},function(e,t,a){'use strict';var r=a(3);e.exports=function(e,t){r.forEach(e,function(a,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=a,delete e[r])})}},function(e,t,a){'use strict';var r=a(18);e.exports=function(e,t,a){var n=a.config.validateStatus;a.status&&n&&!n(a.status)?t(r('Request failed with status code '+a.status,a.config,null,a.request,a)):e(a)}},function(e){'use strict';e.exports=function(e,t,a,r,n){return e.config=t,a&&(e.code=a),e.request=r,e.response=n,e}},function(e,t,a){'use strict';function r(e){return encodeURIComponent(e).replace(/%40/gi,'@').replace(/%3A/gi,':').replace(/%24/g,'$').replace(/%2C/gi,',').replace(/%20/g,'+').replace(/%5B/gi,'[').replace(/%5D/gi,']')}var n=a(3);e.exports=function(e,t,a){if(!t)return e;var o;if(a)o=a(t);else if(n.isURLSearchParams(t))o=t.toString();else{var s=[];n.forEach(t,function(e,t){null===e||'undefined'==typeof e||(n.isArray(e)&&(t+='[]'),!n.isArray(e)&&(e=[e]),n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+'='+r(e))}))}),o=s.join('&')}return o&&(e+=(-1===e.indexOf('?')?'?':'&')+o),e}},function(e,t,a){'use strict';var r=a(3);e.exports=function(e){var t,a,n,o={};return e?(r.forEach(e.split('\n'),function(e){n=e.indexOf(':'),t=r.trim(e.substr(0,n)).toLowerCase(),a=r.trim(e.substr(n+1)),t&&(o[t]=o[t]?o[t]+', '+a:a)}),o):o}},function(e,t,a){'use strict';var r=a(3);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return a&&(n.setAttribute('href',t),t=n.href),n.setAttribute('href',t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,''):'',host:n.host,search:n.search?n.search.replace(/^\?/,''):'',hash:n.hash?n.hash.replace(/^#/,''):'',hostname:n.hostname,port:n.port,pathname:'/'===n.pathname.charAt(0)?n.pathname:'/'+n.pathname}}var t,a=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement('a');return t=e(window.location.href),function(a){var n=r.isString(a)?e(a):a;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},function(e){'use strict';function t(){this.message='String contains an invalid character'}t.prototype=new Error,t.prototype.code=5,t.prototype.name='InvalidCharacterError',e.exports=function(e){for(var a,r,n=e+'',o='',s=0,i='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';n.charAt(0|s)||(i='=',s%1);o+=i.charAt(63&a>>8-8*(s%1))){if(r=n.charCodeAt(s+=3/4),255<r)throw new t;a=a<<8|r}return o}},function(e,t,a){'use strict';var r=a(3);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,a,n,o,s){var i=[];i.push(e+'='+encodeURIComponent(t)),r.isNumber(a)&&i.push('expires='+new Date(a).toGMTString()),r.isString(n)&&i.push('path='+n),r.isString(o)&&i.push('domain='+o),!0===s&&i.push('secure'),document.cookie=i.join('; ')},read:function(e){var t=document.cookie.match(new RegExp('(^|;\\s*)('+e+')=([^;]*)'));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,'',Date.now()-8.64e7)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,a){'use strict';function r(){this.handlers=[]}var n=a(3);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,a){'use strict';function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var n=a(3),o=a(50),s=a(19),i=a(11);e.exports=function(e){r(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(['delete','get','head','post','put','patch','common'],function(t){delete e.headers[t]});var t=e.adapter||i.adapter;return t(e).then(function(t){return r(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return s(t)||(r(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,a){'use strict';var r=a(3);e.exports=function(e,t,a){return r.forEach(a,function(a){e=a(e,t)}),e}},function(e){'use strict';e.exports=function(e){return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e){'use strict';e.exports=function(e,t){return t?e.replace(/\/+$/,'')+'/'+t.replace(/^\/+/,''):e}},function(e,t,a){'use strict';function r(e){if('function'!=typeof e)throw new TypeError('executor must be a function.');var t;this.promise=new Promise(function(e){t=e});var a=this;e(function(e){a.reason||(a.reason=new n(e),t(a.reason))})}var n=a(20);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},function(e){'use strict';e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,a){function r(e,t,a,T,M,R){var L,U=t&j,N=t&P;if(a&&(L=M?a(e,T,M,R):a(e)),void 0!==L)return L;if(!w(e))return e;var z=x(e);if(!z){var I=f(e),q=I==v||I==E;if(_(e))return d(e,U);if(I!=S&&I!=A&&(!q||M)){if(!O[I])return M?e:{};L=m(e,I,r,U)}else if(L=N||q?{}:b(e),!U)return N?h(e,p(L,e)):c(e,i(L,e))}else if(L=g(e),!U)return l(e,L);R||(R=new n);var F=R.get(e);if(F)return F;R.set(e,L);var W=t&C?N?y:u:N?keysIn:k,D=z?void 0:W(e);return o(D||e,function(n,o){D&&(o=n,n=e[o]),s(L,o,r(n,t,a,o,e,R))}),L}var n=a(56),o=a(82),s=a(24),i=a(84),p=a(85),d=a(87),l=a(89),c=a(90),h=a(92),u=a(94),y=a(95),f=a(96),g=a(97),m=a(98),b=a(99),x=a(102),_=a(103),w=a(27),k=a(26),j=1,P=2,C=4,A='[object Arguments]',v='[object Function]',E='[object GeneratorFunction]',S='[object Object]',O={};O[A]=O['[object Array]']=O['[object ArrayBuffer]']=O['[object DataView]']=O['[object Boolean]']=O['[object Date]']=O['[object Float32Array]']=O['[object Float64Array]']=O['[object Int8Array]']=O['[object Int16Array]']=O['[object Int32Array]']=O['[object Map]']=O['[object Number]']=O[S]=O['[object RegExp]']=O['[object Set]']=O['[object String]']=O['[object Symbol]']=O['[object Uint8Array]']=O['[object Uint8ClampedArray]']=O['[object Uint16Array]']=O['[object Uint32Array]']=!0,O['[object Error]']=O[v]=O['[object WeakMap]']=!1,e.exports=r},function(e,t,a){function r(e){var t=this.__data__=new n(e);this.size=t.size}var n=a(6),o=a(62),s=a(63),i=a(64),p=a(65),d=a(66);r.prototype.clear=o,r.prototype['delete']=s,r.prototype.get=i,r.prototype.has=p,r.prototype.set=d,e.exports=r},function(e){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,a){var r=a(7),n=Array.prototype,o=n.splice;e.exports=function(e){var t=this.__data__,a=r(t,e);if(0>a)return!1;var n=t.length-1;return a==n?t.pop():o.call(t,a,1),--this.size,!0}},function(e,t,a){var r=a(7);e.exports=function(e){var t=this.__data__,a=r(t,e);return 0>a?void 0:t[a][1]}},function(e,t,a){var r=a(7);e.exports=function(e){return-1<r(this.__data__,e)}},function(e,t,a){var r=a(7);e.exports=function(e,t){var a=this.__data__,n=r(a,e);return 0>n?(++this.size,a.push([e,t])):a[n][1]=t,this}},function(e,t,a){var r=a(6);e.exports=function(){this.__data__=new r,this.size=0}},function(e){e.exports=function(e){var t=this.__data__,a=t['delete'](e);return this.size=t.size,a}},function(e){e.exports=function(e){return this.__data__.get(e)}},function(e){e.exports=function(e){return this.__data__.has(e)}},function(e,t,a){var r=a(6),n=a(22),o=a(69);e.exports=function(e,t){var a=this.__data__;if(a instanceof r){var s=a.__data__;if(!n||s.length<200-1)return s.push([e,t]),this.size=++a.size,this;a=this.__data__=new o(s)}return a.set(e,t),this.size=a.size,this}},function(e,t,a){(function(t){var a='object'==typeof t&&t&&t.Object===Object&&t;e.exports=a}).call(t,a(68))},function(e){var t=function(){return this}();try{t=t||Function('return this')()||(1,eval)('this')}catch(a){'object'==typeof window&&(t=window)}e.exports=t},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(70),o=a(77),s=a(79),i=a(80),p=a(81);r.prototype.clear=n,r.prototype['delete']=o,r.prototype.get=s,r.prototype.has=i,r.prototype.set=p,e.exports=r},function(e,t,a){var r=a(71),n=a(6),o=a(22);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(72),o=a(73),s=a(74),i=a(75),p=a(76);r.prototype.clear=n,r.prototype['delete']=o,r.prototype.get=s,r.prototype.has=i,r.prototype.set=p,e.exports=r},function(e,t,a){var r=a(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,a){var r=a(8),n=Object.prototype,o=n.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var a=t[e];return a==='__lodash_hash_undefined__'?void 0:a}return o.call(t,e)?t[e]:void 0}},function(e,t,a){var r=a(8),n=Object.prototype,o=n.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?t[e]!==void 0:o.call(t,e)}},function(e,t,a){var r=a(8);e.exports=function(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=r&&void 0===t?'__lodash_hash_undefined__':t,this}},function(e,t,a){var r=a(9);e.exports=function(e){var t=r(this,e)['delete'](e);return this.size-=t?1:0,t}},function(e){e.exports=function(e){var t=typeof e;return'string'==t||'number'==t||'symbol'==t||'boolean'==t?'__proto__'!==e:null===e}},function(e,t,a){var r=a(9);e.exports=function(e){return r(this,e).get(e)}},function(e,t,a){var r=a(9);e.exports=function(e){return r(this,e).has(e)}},function(e,t,a){var r=a(9);e.exports=function(e,t){var a=r(this,e),n=a.size;return a.set(e,t),this.size+=a.size==n?0:1,this}},function(e){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length;++a<r&&!(!1===t(e[a],a,e)););return e}},function(e,t,a){var r=a(13),n=function(){try{var e=r(Object,'defineProperty');return e({},'',{}),e}catch(t){}}();e.exports=n},function(e,t,a){var r=a(10),n=a(26);e.exports=function(e,t){return e&&r(t,n(t),e)}},function(e,t,a){var r=a(10),n=a(86);e.exports=function(e,t){return e&&r(t,n(t),e)}},function(e){e.exports=function(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t}},function(e,t,a){(function(e){var r=a(23),n='object'==typeof t&&t&&!t.nodeType&&t,o=n&&'object'==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===n,i=s?r.Buffer:void 0,p=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var a=e.length,r=p?p(a):new e.constructor(a);return e.copy(r),r}}).call(t,a(88)(e))},function(e){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],!e.children&&(e.children=[]),Object.defineProperty(e,'loaded',{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,'id',{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e){e.exports=function(e,t){var a=-1,r=e.length;for(t||(t=Array(r));++a<r;)t[a]=e[a];return t}},function(e,t,a){var r=a(10),n=a(91);e.exports=function(e,t){return r(e,n(e),t)}},function(e){e.exports=function(){return[]}},function(e,t,a){var r=a(10),n=a(93);e.exports=function(e,t){return r(e,n(e),t)}},function(e){e.exports=function(){return[]}},function(e,t,a){var r=a(14),n=r(Object.keys,Object);e.exports=n},function(e){e.exports=function(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t}},function(e){var t=Object.prototype,a=t.toString;e.exports=function(e){return a.call(e)}},function(e){var t=Object.prototype,a=t.hasOwnProperty;e.exports=function(e){var t=e.length,r=e.constructor(t);return t&&'string'==typeof e[0]&&a.call(e,'index')&&(r.index=e.index,r.input=e.input),r}},function(e){e.exports=function(e){return e}},function(e,t,a){var r=a(100),n=a(28),o=a(101);e.exports=function(e){return'function'!=typeof e.constructor||o(e)?{}:r(n(e))}},function(e,t,a){var r=a(27),n=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(n)return n(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();e.exports=o},function(e){e.exports=function(){return!1}},function(e){var t=Array.isArray;e.exports=t},function(e){e.exports=function(){return!1}},function(e,t,a){'use strict';(function(e){function r(t,a){var n=l({},{insecure:!1,retryOnError:!0,logHandler:function(e,t){if('error'===e&&t){var a=[t.name,t.message].filter(function(e){return e}).join(' - ');return console.error('[error] '+a),void console.error(t)}console.log('['+e+'] '+t)},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,proxy:!1,basePath:''},a);if(!n.accessToken){var s=new TypeError('Expected parameter accessToken');throw n.logHandler('error',s),s}var h=n.insecure?'http':'https',u=n.space?n.space+'/':'',y=n.defaultHostname,f=n.insecure?80:443;if(c.test(n.host)){var g=n.host.split(':');if(2===g.length){var m=d(g,2);y=m[0],f=m[1]}else y=g[0]}n.basePath&&(n.basePath='/'+n.basePath.split('/').filter(Boolean).join('/'));var b=h+'://'+y+':'+f+n.basePath+'/spaces/'+u;n.headers.Authorization='Bearer '+n.accessToken,e&&e.release&&'node'===e.release.name&&(n.headers['user-agent']='node.js/'+e.version,n.headers['Accept-Encoding']='gzip');var x={baseURL:b,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:i.a.stringify,proxy:n.proxy,timeout:n.timeout,logHandler:n.logHandler,retryOnError:n.retryOnError},_=t.create(x);return _.httpClientParams=a,_.cloneWithNewParams=function(e){return r(t,l({},o()(a),e))},Object(p.a)(_),_}t.a=r;var n=a(0),o=a.n(n),s=a(105),i=a.n(s),p=a(108),d=function(){function e(e,t){var a,r=[],n=!0,o=!1;try{for(var s,i=e[Symbol.iterator]();!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(e){o=!0,a=e}finally{try{!n&&i['return']&&i['return']()}finally{if(o)throw a}}return r}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}(),l=Object.assign||function(e){for(var t,a=1;a<arguments.length;a++)for(var r in t=arguments[a],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},c=/^(?!\w+:\/\/)([^\s:]+\.[^\s:]+)(?::(\d+))?(?!:)$/}).call(t,a(12))},function(e,t,a){'use strict';var r=a(106),n=a(107),o=a(30);e.exports={formats:o,parse:n,stringify:r}},function(e,t,a){'use strict';var r=a(29),n=a(30),o={brackets:function(e){return e+'[]'},indices:function(e,t){return e+'['+t+']'},repeat:function(e){return e}},s=Date.prototype.toISOString,p={delimiter:'&',encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,a,n,o,s,d,l,c,h,u,y,f){var g=t;if('function'==typeof l)g=l(a,g);else if(g instanceof Date)g=u(g);else if(null===g){if(o)return d&&!f?d(a,p.encoder):a;g=''}if('string'==typeof g||'number'==typeof g||'boolean'==typeof g||r.isBuffer(g)){if(d){var m=f?a:d(a,p.encoder);return[y(m)+'='+y(d(g,p.encoder))]}return[y(a)+'='+y(g+'')]}var b=[];if('undefined'==typeof g)return b;var x;if(Array.isArray(l))x=l;else{var _=Object.keys(g);x=c?_.sort(c):_}for(var w,k=0;k<x.length;++k)(w=x[k],!(s&&null===g[w]))&&(b=Array.isArray(g)?b.concat(e(g[w],n(a,w),n,o,s,d,l,c,h,u,y,f)):b.concat(e(g[w],a+(h?'.'+w:'['+w+']'),n,o,s,d,l,c,h,u,y,f)));return b};e.exports=function(e,t){var a=e,s=t?r.assign({},t):{};if(null!==s.encoder&&s.encoder!==void 0&&'function'!=typeof s.encoder)throw new TypeError('Encoder has to be a function.');var l='undefined'==typeof s.delimiter?p.delimiter:s.delimiter,c='boolean'==typeof s.strictNullHandling?s.strictNullHandling:p.strictNullHandling,h='boolean'==typeof s.skipNulls?s.skipNulls:p.skipNulls,u='boolean'==typeof s.encode?s.encode:p.encode,y='function'==typeof s.encoder?s.encoder:p.encoder,f='function'==typeof s.sort?s.sort:null,g='undefined'!=typeof s.allowDots&&s.allowDots,m='function'==typeof s.serializeDate?s.serializeDate:p.serializeDate,b='boolean'==typeof s.encodeValuesOnly?s.encodeValuesOnly:p.encodeValuesOnly;if('undefined'==typeof s.format)s.format=n['default'];else if(!Object.prototype.hasOwnProperty.call(n.formatters,s.format))throw new TypeError('Unknown format option provided.');var x,_,w=n.formatters[s.format];'function'==typeof s.filter?(_=s.filter,a=_('',a)):Array.isArray(s.filter)&&(_=s.filter,x=_);var k=[];if('object'!=typeof a||null===a)return'';var j=s.arrayFormat in o?s.arrayFormat:'indices'in s?s.indices?'indices':'repeat':'indices';var P=o[j];x||(x=Object.keys(a)),f&&x.sort(f);for(var C,A=0;A<x.length;++A)(C=x[A],!(h&&null===a[C]))&&(k=k.concat(d(a[C],C,P,c,h,u?y:null,_,f,g,m,w,b)));var i=k.join(l),v=!0===s.addQueryPrefix?'?':'';return 0<i.length?v+i:''}},function(e,t,a){'use strict';var r=a(29),n=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:'&',depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},s=function(e,t){for(var a={},r=t.ignoreQueryPrefix?e.replace(/^\?/,''):e,s=t.parameterLimit===Infinity?void 0:t.parameterLimit,p=r.split(t.delimiter,s),d=0;d<p.length;++d){var i,l,c=p[d],h=c.indexOf(']='),u=-1===h?c.indexOf('='):h+1;-1===u?(i=t.decoder(c,o.decoder),l=t.strictNullHandling?null:''):(i=t.decoder(c.slice(0,u),o.decoder),l=t.decoder(c.slice(u+1),o.decoder)),a[i]=n.call(a,i)?[].concat(a[i]).concat(l):l}return a},p=function(e,t,a){for(var r=t,n=e.length-1;0<=n;--n){var o,s=e[n];if('[]'===s)o=[],o=o.concat(r);else{o=a.plainObjects?Object.create(null):{};var i='['===s.charAt(0)&&']'===s.charAt(s.length-1)?s.slice(1,-1):s,p=parseInt(i,10);!isNaN(p)&&s!==i&&p+''===i&&0<=p&&a.parseArrays&&p<=a.arrayLimit?(o=[],o[p]=r):o[i]=r}r=o}return r},d=function(e,t,a){if(e){var r=a.allowDots?e.replace(/\.([^.[]+)/g,'[$1]'):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,d=o.exec(r),l=d?r.slice(0,d.index):r,c=[];if(l){if(!a.plainObjects&&n.call(Object.prototype,l)&&!a.allowPrototypes)return;c.push(l)}for(var h=0;null!==(d=s.exec(r))&&h<a.depth;){if(h+=1,!a.plainObjects&&n.call(Object.prototype,d[1].slice(1,-1))&&!a.allowPrototypes)return;c.push(d[1])}return d&&c.push('['+r.slice(d.index)+']'),p(c,t,a)}};e.exports=function(e,t){var a=t?r.assign({},t):{};if(null!==a.decoder&&void 0!==a.decoder&&'function'!=typeof a.decoder)throw new TypeError('Decoder has to be a function.');if(a.ignoreQueryPrefix=!0===a.ignoreQueryPrefix,a.delimiter='string'==typeof a.delimiter||r.isRegExp(a.delimiter)?a.delimiter:o.delimiter,a.depth='number'==typeof a.depth?a.depth:o.depth,a.arrayLimit='number'==typeof a.arrayLimit?a.arrayLimit:o.arrayLimit,a.parseArrays=!1!==a.parseArrays,a.decoder='function'==typeof a.decoder?a.decoder:o.decoder,a.allowDots='boolean'==typeof a.allowDots?a.allowDots:o.allowDots,a.plainObjects='boolean'==typeof a.plainObjects?a.plainObjects:o.plainObjects,a.allowPrototypes='boolean'==typeof a.allowPrototypes?a.allowPrototypes:o.allowPrototypes,a.parameterLimit='number'==typeof a.parameterLimit?a.parameterLimit:o.parameterLimit,a.strictNullHandling='boolean'==typeof a.strictNullHandling?a.strictNullHandling:o.strictNullHandling,''===e||null===e||'undefined'==typeof e)return a.plainObjects?Object.create(null):{};for(var n='string'==typeof e?s(e,a):e,p=a.plainObjects?Object.create(null):{},l=Object.keys(n),c=0;c<l.length;++c){var i=l[c],h=d(i,n[i],a);p=r.merge(p,h,a)}return r.compact(p)}},function(e,t){'use strict';t.a=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:5;e.interceptors.response.use(function(e){return e},function(n){var o=Math.pow,s=n.response,i=n.config;if(!e.defaults.retryOnError)return Promise.reject(n);var p=null,d=0;if(!s||!i){if(p='Connection',r++,r>t)return n.attempts=r,Promise.reject(n);d=o(Math.SQRT2,r),s={}}else r=0;if(500<=s.status&&600>s.status){p='Server '+s.status;var l=s.headers||{},c=l['x-contentful-request-id']||null;if(a[c]=a[c]||0,a[c]++,a[c]>t||!c)return n.attempts=a[c],Promise.reject(n);d=o(Math.SQRT2,a[c])}else 429===s.status&&(p='Rate limit',s.headers&&n.response.headers['x-contentful-ratelimit-reset']&&(d=s.headers['x-contentful-ratelimit-reset']));return p?(d=Math.floor(1e3*d+200*Math.random()+500),e.defaults.logHandler('warning',p+' error occurred. Waiting for '+d+' ms before retrying...'),new Promise(function(t){setTimeout(function(){t(e(i))},d)})):Promise.reject(n)})};var a={},r=0},function(e,t,a){'use strict';t.a=function(e){var t=e.query,a={};return delete t.resolveLinks,a.params=n()(t),a};var r=a(0),n=a.n(r)},function(){'use strict'},function(e,t,a){'use strict';function r(e){return Object.keys(e).forEach(function(t){var a=e[t];o()(a)&&r(a)}),Object.freeze(e)}t.a=function(e){return r(e.sys||{}),e};var n=a(31),o=a.n(n)},function(e){var t=Object.prototype,a=t.toString;e.exports=function(e){return a.call(e)}},function(e){e.exports=function(e){return null!=e&&'object'==typeof e}},function(e,t,a){'use strict';(function(e){function r(){return'undefined'!=typeof window&&'navigator'in window&&'product'in window.navigator&&'ReactNative'===window.navigator.product}function n(){return'undefined'!=typeof e&&'release'in e&&'name'in e.release&&'node'===e.release.name}function o(){var e=window.navigator.userAgent,t=window.navigator.platform,a=null;return-1===['Macintosh','MacIntel','MacPPC','Mac68K'].indexOf(t)?-1===['iPhone','iPad','iPod'].indexOf(t)?-1===['Win32','Win64','Windows','WinCE'].indexOf(t)?/Android/.test(e)?a='Android':/Linux/.test(t)&&(a='Linux'):a='Windows':a='iOS':a='macOS',a}function s(){var e=Object(i.platform)()||'linux',t=Object(i.release)()||'0.0.0',a={android:'Android',aix:'Linux',darwin:'macOS',freebsd:'Linux',linux:'Linux',openbsd:'Linux',sunos:'Linux',win32:'Windows'};return e in a?(a[e]||'Linux')+'/'+t:null}t.a=function(t,a,i){var p=[];a&&p.push('app '+a),i&&p.push('integration '+i),p.push('sdk '+t);var d=null;return r()?(d=o(),p.push('platform ReactNative')):n()?(d=s(),p.push('platform node.js/'+e.versions.node)):(d=o(),p.push('platform browser')),d&&p.push('os '+d),p.filter(function(e){return''!==e}).join('; ')+';'};var i=a(115),p=a.n(i)}).call(t,a(12))},function(){},function(e,t,a){'use strict';t.a=function(e){return Object.defineProperty(e,'toPlainObject',{enumerable:!1,configurable:!1,writable:!1,value:function(){return n()(this)}})};var r=a(0),n=a.n(r)},function(e,t,a){'use strict';t.a=function(e){var t=e.http,a=o.a.space,s=a.wrapSpace,i=a.wrapSpaceCollection,p=o.a.user.wrapUser,d=o.a.organization.wrapOrganizationCollection;return{getSpaces:function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return t.get('',Object(r.b)({query:e})).then(function(e){return i(t,e.data)},n.a)},getSpace:function(e){return t.get(e).then(function(e){return s(t,e.data)},n.a)},createSpace:function(e,a){return t.post('',e,{headers:a?{"X-Contentful-Organization":a}:{}}).then(function(e){return s(t,e.data)},n.a)},getOrganizations:function(){var e=t.defaults.baseURL.replace('/spaces/','/organizations/');return t.get('',{baseURL:e}).then(function(e){return d(t,e.data)},n.a)},getCurrentUser:function(){var e=t.defaults.baseURL.replace('/spaces/','/users/me/');return t.get('',{baseURL:e}).then(function(e){return p(t,e.data)},n.a)},rawRequest:function(e){return t(e).then(function(e){return e.data},n.a)}}};var r=a(1),n=a(5),o=a(32)},function(e,t,a){'use strict';function r(e,t){var a=Object(s.e)(o()(t)),r=e.httpClientParams,n=r.hostUpload,d=r.defaultHostnameUpload,l=e.cloneWithNewParams({space:a.sys.id}),c=e.cloneWithNewParams({space:a.sys.id,host:n||d}),h=Object(p.a)({http:l,httpUpload:c}),u=Object(i.a)(a,h);return Object(s.c)(u)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapSpace=r,t.wrapSpaceCollection=function(e,t){var a=Object(s.e)(o()(t));return a.items=a.items.map(function(t){return r(e,t)}),Object(s.c)(a)};var n=a(0),o=a.n(n),s=a(1),i=a(2),p=a(119)},function(e,t,a){'use strict';function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}t.a=function(e){function t(e){return l.post('assets',e).then(function(e){return _(l,e.data)},i.a)}function a(e){var t=e.file;return t?c.post('uploads',t,{headers:{"Content-Type":'application/octet-stream'}}).then(function(e){return q(c,e.data)}).catch(i.a):Promise.reject(new Error('Unable to locate a file to upload.'))}function n(e){e.select&&!/sys/i.test(e.select)&&(e.select+=',sys')}var l=e.http,c=e.httpUpload,h=p.a.space.wrapSpace,u=p.a.contentType,y=u.wrapContentType,f=u.wrapContentTypeCollection,g=p.a.entry,m=g.wrapEntry,b=g.wrapEntryCollection,x=p.a.asset,_=x.wrapAsset,w=x.wrapAssetCollection,k=p.a.locale,j=k.wrapLocale,P=k.wrapLocaleCollection,C=p.a.webhook,A=C.wrapWebhook,v=C.wrapWebhookCollection,E=p.a.role,S=E.wrapRole,O=E.wrapRoleCollection,T=p.a.spaceMembership,M=T.wrapSpaceMembership,R=T.wrapSpaceMembershipCollection,L=p.a.apiKey,U=L.wrapApiKey,N=L.wrapApiKeyCollection,z=p.a.snapshot.wrapSnapshotCollection,I=p.a.editorInterface.wrapEditorInterface,q=p.a.upload.wrapUpload,F=p.a.uiExtension,W=F.wrapUiExtension,D=F.wrapUiExtensionCollection;return{delete:function(){return l.delete('').then(function(){},i.a)},update:function(){var e=this.toPlainObject(),t=o()(e);return delete t.sys,l.put('',t,{headers:{"X-Contentful-Version":e.sys.version}}).then(function(e){return h(l,e.data)},i.a)},getContentType:function(e){return l.get('content_types/'+e).then(function(e){return y(l,e.data)},i.a)},getContentTypes:function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return l.get('content_types',Object(s.b)({query:e})).then(function(e){return f(l,e.data)},i.a)},createContentType:function(e){return l.post('content_types',e).then(function(e){return y(l,e.data)},i.a)},createContentTypeWithId:function(e,t){return l.put('content_types/'+e,t).then(function(e){return y(l,e.data)},i.a)},getEditorInterfaceForContentType:function(e){return l.get('content_types/'+e+'/editor_interface').then(function(e){return I(l,e.data)},i.a)},getEntry:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return n(t),l.get('entries/'+e,Object(s.b)({query:t})).then(function(e){return m(l,e.data)},i.a)},getEntries:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n(e),l.get('entries',Object(s.b)({query:e})).then(function(e){return b(l,e.data)},i.a)},createEntry:function(e,t){return l.post('entries',t,{headers:{"X-Contentful-Content-Type":e}}).then(function(e){return m(l,e.data)},i.a)},createEntryWithId:function(e,t,a){return l.put('entries/'+t,a,{headers:{"X-Contentful-Content-Type":e}}).then(function(e){return m(l,e.data)},i.a)},getAsset:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return n(t),l.get('assets/'+e,Object(s.b)({query:t})).then(function(e){return _(l,e.data)},i.a)},getAssets:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n(e),l.get('assets',Object(s.b)({query:e})).then(function(e){return w(l,e.data)},i.a)},createAsset:t,createAssetWithId:function(e,t){return l.put('assets/'+e,t).then(function(e){return _(l,e.data)},i.a)},createAssetFromFiles:function(e){var n=e.fields.file;return Promise.all(Object.keys(n).map(function(e){var t=n[e],o=t.contentType,s=t.fileName;return a(n[e]).then(function(t){return r({},e,{contentType:o,fileName:s,uploadFrom:{sys:{type:'Link',linkType:'Upload',id:t.sys.id}}})})})).then(function(a){return e.fields.file=a.reduce(function(e,t){return d({},e,t)},{}),t(e)}).catch(i.a)},getUpload:function(e){return c.get('uploads/'+e).then(function(e){return q(l,e.data)}).catch(i.a)},createUpload:a,getLocale:function(e){return l.get('locales/'+e).then(function(e){return j(l,e.data)},i.a)},getLocales:function(){return l.get('locales').then(function(e){return P(l,e.data)},i.a)},createLocale:function(e){return l.post('locales',e).then(function(e){return j(l,e.data)},i.a)},getWebhook:function(e){return l.get('webhook_definitions/'+e).then(function(e){return A(l,e.data)},i.a)},getWebhooks:function(){return l.get('webhook_definitions').then(function(e){return v(l,e.data)},i.a)},createWebhook:function(e){return l.post('webhook_definitions',e).then(function(e){return A(l,e.data)},i.a)},createWebhookWithId:function(e,t){return l.put('webhook_definitions/'+e,t).then(function(e){return A(l,e.data)},i.a)},getRole:function(e){return l.get('roles/'+e).then(function(e){return S(l,e.data)},i.a)},getRoles:function(){return l.get('roles').then(function(e){return O(l,e.data)},i.a)},createRole:function(e){return l.post('roles',e).then(function(e){return S(l,e.data)},i.a)},createRoleWithId:function(e,t){return l.put('roles/'+e,t).then(function(e){return S(l,e.data)},i.a)},getSpaceMembership:function(e){return l.get('space_memberships/'+e).then(function(e){return M(l,e.data)},i.a)},getSpaceMemberships:function(){return l.get('space_memberships').then(function(e){return R(l,e.data)},i.a)},createSpaceMembership:function(e){return l.post('space_memberships',e).then(function(e){return M(l,e.data)},i.a)},createSpaceMembershipWithId:function(e,t){return l.put('space_memberships/'+e,t).then(function(e){return M(l,e.data)},i.a)},getApiKey:function(e){return l.get('api_keys/'+e).then(function(e){return U(l,e.data)},i.a)},getApiKeys:function(){return l.get('api_keys').then(function(e){return N(l,e.data)},i.a)},createApiKey:function(e){return l.post('api_keys',e).then(function(e){return U(l,e.data)},i.a)},createApiKeyWithId:function(e,t){return l.put('api_keys/'+e,t).then(function(e){return U(l,e.data)},i.a)},getUiExtension:function(e){return l.get('extensions/'+e).then(function(e){return W(l,e.data)},i.a)},getUiExtensions:function(){return l.get('extensions').then(function(e){return D(l,e.data)},i.a)},createUiExtension:function(e){return l.post('extensions',e).then(function(e){return W(l,e.data)},i.a)},createUiExtensionWithId:function(e,t){return l.put('extensions/'+e,t).then(function(e){return W(l,e.data)},i.a)},getEntrySnapshots:function(e){return l.get('entries/'+e+'/snapshots').then(function(e){return z(l,e.data)},i.a)},getContentTypeSnapshots:function(e){return l.get('content_types/'+e+'/snapshots').then(function(e){return z(l,e.data)},i.a)}}};var n=a(0),o=a.n(n),s=a(1),i=a(5),p=a(32),d=Object.assign||function(e){for(var t,a=1;a<arguments.length;a++)for(var r in t=arguments[a],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}},function(e,t,a){'use strict';function r(e){return{update:Object(d.i)({http:e,entityPath:'entries',wrapperMethod:n}),delete:Object(d.c)({http:e,entityPath:'entries'}),publish:Object(d.e)({http:e,entityPath:'entries',wrapperMethod:n}),unpublish:Object(d.h)({http:e,entityPath:'entries',wrapperMethod:n}),archive:Object(d.a)({http:e,entityPath:'entries',wrapperMethod:n}),unarchive:Object(d.g)({http:e,entityPath:'entries',wrapperMethod:n}),getSnapshots:function(){return e.get('entries/'+this.sys.id+'/snapshots').then(function(t){return Object(c.wrapSnapshotCollection)(e,t.data)},l.a)},getSnapshot:function(t){return e.get('entries/'+this.sys.id+'/snapshots/'+t).then(function(t){return Object(c.wrapSnapshot)(e,t.data)},l.a)},isPublished:Object(d.f)(),isUpdated:Object(d.j)(),isDraft:Object(d.d)(),isArchived:Object(d.b)()}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapEntry=n,t.wrapEntryCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4),l=a(5),c=a(15)},function(e,t,a){'use strict';function r(e){function t(a){var r=a.resolve,o=a.reject,s=a.id,i=a.locale,p=a.processingCheckWait,l=p===void 0?c:p,u=a.processingCheckRetries,y=u===void 0?h:u,f=a.checkCount,g=f===void 0?0:f;e.get('assets/'+s).then(function(t){return n(e,t.data)},d.a).then(function(e){if(e.fields.file[i].url)r(e);else if(g===y){var a=new Error;a.name='AssetProcessingTimeout',a.message='Asset is taking longer then expected to process.',o(a)}else g++,setTimeout(function(){return t({resolve:r,reject:o,id:s,locale:i,checkCount:g,processingCheckWait:l,processingCheckRetries:y})},l)})}function a(a){var r=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=r.processingCheckWait,o=r.processingCheckRetries,s=this.sys.id;return e.put('assets/'+this.sys.id+'/files/'+a+'/process',null,{headers:{"X-Contentful-Version":this.sys.version}}).then(function(){return new Promise(function(e,r){return t({resolve:e,reject:r,id:s,locale:a,processingCheckWait:n,processingCheckRetries:o})})},d.a)}return{update:Object(l.i)({http:e,entityPath:'assets',wrapperMethod:n}),delete:Object(l.c)({http:e,entityPath:'assets'}),publish:Object(l.e)({http:e,entityPath:'assets',wrapperMethod:n}),unpublish:Object(l.h)({http:e,entityPath:'assets',wrapperMethod:n}),archive:Object(l.a)({http:e,entityPath:'assets',wrapperMethod:n}),unarchive:Object(l.g)({http:e,entityPath:'assets',wrapperMethod:n}),processForLocale:a,processForAllLocales:function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=this,r=Object.keys(this.fields.file||{});return Promise.all(r.map(function(r){return a.call(t,r,e)})).then(function(e){return e[0]})},isPublished:Object(l.f)(),isUpdated:Object(l.j)(),isDraft:Object(l.d)(),isArchived:Object(l.b)()}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapAsset=n,t.wrapAssetCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(5),l=a(4),c=2e3,h=10},function(e,t,a){'use strict';function r(e){return{update:Object(d.i)({http:e,entityPath:'content_types',wrapperMethod:n}),delete:Object(d.c)({http:e,entityPath:'content_types'}),publish:Object(d.e)({http:e,entityPath:'content_types',wrapperMethod:n}),unpublish:Object(d.h)({http:e,entityPath:'content_types',wrapperMethod:n}),getEditorInterface:function(){return e.get('content_types/'+this.sys.id+'/editor_interface').then(function(t){return Object(l.wrapEditorInterface)(e,t.data)},c.a)},getSnapshots:function(){return e.get('content_types/'+this.sys.id+'/snapshots').then(function(t){return Object(h.wrapSnapshotCollection)(e,t.data)},c.a)},getSnapshot:function(t){return e.get('content_types/'+this.sys.id+'/snapshots/'+t).then(function(t){return Object(h.wrapSnapshot)(e,t.data)},c.a)},isPublished:Object(d.f)(),isUpdated:Object(d.j)(),isDraft:Object(d.d)()}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapContentType=n,t.wrapContentTypeCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4),l=a(33),c=a(5),h=a(15)},function(e,t,a){'use strict';function r(e){return{update:function(){var t=this;return delete t.default,delete t.fallback_code,delete t.fallbackCode,Object(d.i)({http:e,entityPath:'locales',wrapperMethod:n}).call(t)},delete:Object(d.c)({http:e,entityPath:'locales'})}}function n(e,t){delete t.internal_code;var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapLocale=n,t.wrapLocaleCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4)},function(e,t,a){'use strict';function r(e){return{update:Object(l.i)({http:e,entityPath:'webhook_definitions',wrapperMethod:n}),delete:Object(l.c)({http:e,entityPath:'webhook_definitions'}),getCalls:function(){return e.get('webhooks/'+this.sys.id+'/calls').then(function(e){return e.data},d.a)},getCall:function(t){return e.get('webhooks/'+this.sys.id+'/calls/'+t).then(function(e){return e.data},d.a)},getHealth:function(){return e.get('webhooks/'+this.sys.id+'/health').then(function(e){return e.data},d.a)}}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapWebhook=n,t.wrapWebhookCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(5),l=a(4)},function(e,t,a){'use strict';function r(e){return{update:Object(d.i)({http:e,entityPath:'space_memberships',wrapperMethod:n}),delete:Object(d.c)({http:e,entityPath:'space_memberships'})}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapSpaceMembership=n,t.wrapSpaceMembershipCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4)},function(e,t,a){'use strict';function r(e){return{update:Object(d.i)({http:e,entityPath:'roles',wrapperMethod:n}),delete:Object(d.c)({http:e,entityPath:'roles'})}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapRole=n,t.wrapRoleCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4)},function(e,t,a){'use strict';function r(e){return{update:function(){'accessToken'in this&&delete this.accessToken,'preview_api_key'in this&&delete this.preview_api_key,'policies'in this&&delete this.policies;var t=Object(d.i)({http:e,entityPath:'api_keys',wrapperMethod:n});return t.call(this)},delete:Object(d.c)({http:e,entityPath:'api_keys'})}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapApiKey=n,t.wrapApiKeyCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4)},function(e,t,a){'use strict';function r(e){return{delete:Object(p.c)({http:e,entityPath:'uploads'})}}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapUpload=function(e,t){var a=Object(s.e)(o()(t));return Object(i.a)(a,r(e)),Object(s.c)(a)};var n=a(0),o=a.n(n),s=a(1),i=a(2),p=a(4)},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.wrapOrganizationCollection=function(e,t){var a=Object(o.e)(n()(t));return Object(o.c)(a)};var r=a(0),n=a.n(r),o=a(1)},function(e,t,a){'use strict';function r(e){return{update:Object(d.i)({http:e,entityPath:'extensions',wrapperMethod:n}),delete:Object(d.c)({http:e,entityPath:'extensions'})}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapUiExtension=n,t.wrapUiExtensionCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4)},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.wrapUser=function(e,t){var a=Object(r.e)(s()(t));return Object(n.a)(a,{}),Object(r.c)(a)};var r=a(1),n=a(2),o=a(0),s=a.n(o)}])}); | ||
(function(e,t){'object'==typeof exports&&'object'==typeof module?module.exports=t():'function'==typeof define&&define.amd?define([],t):'object'==typeof exports?exports.contentfulManagement=t():e.contentfulManagement=t()})(this,function(){return function(e){function t(r){if(a[r])return a[r].exports;var n=a[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var a={};return t.m=e,t.c=a,t.d=function(e,a,r){t.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var a=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(a,'a',a),a},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=34)}([function(e,t,a){var r=a(55);e.exports=function(e){return r(e,1|4)}},function(e,t,a){'use strict';var r=a(104);a.d(t,'a',function(){return r.a});var n=a(109);a.d(t,'b',function(){return n.a});var o=a(110),s=a(111);a.d(t,'c',function(){return s.a});var i=a(114);a.d(t,'d',function(){return i.a});var p=a(116);a.d(t,'e',function(){return p.a})},function(e,t){'use strict';t.a=function(e,t){return Object.keys(t).reduce(function(e,a){return Object.defineProperty(e,a,{enumerable:!1,configurable:!1,writable:!1,value:t[a]}),e},e)}},function(e,t,a){'use strict';function r(e){return'[object Array]'===l.call(e)}function n(e){return null!==e&&'object'==typeof e}function o(e){return'[object Function]'===l.call(e)}function s(e,t){if(null!==e&&'undefined'!=typeof e)if('object'==typeof e||r(e)||(e=[e]),r(e))for(var a=0,n=e.length;a<n;a++)t.call(null,e[a],a,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}function i(){function e(e,a){t[a]='object'==typeof t[a]&&'object'==typeof e?i(t[a],e):e}for(var t={},a=0,r=arguments.length;a<r;a++)s(arguments[a],e);return t}var p=a(16),d=a(38),l=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:function(e){return'[object ArrayBuffer]'===l.call(e)},isBuffer:d,isFormData:function(e){return'undefined'!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){var t;return t='undefined'!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer,t},isString:function(e){return'string'==typeof e},isNumber:function(e){return'number'==typeof e},isObject:n,isUndefined:function(e){return'undefined'==typeof e},isDate:function(e){return'[object Date]'===l.call(e)},isFile:function(e){return'[object File]'===l.call(e)},isBlob:function(e){return'[object Blob]'===l.call(e)},isFunction:o,isStream:function(e){return n(e)&&o(e.pipe)},isURLSearchParams:function(e){return'undefined'!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return'undefined'!=typeof navigator&&'ReactNative'===navigator.product?!1:'undefined'!=typeof window&&'undefined'!=typeof document},forEach:s,merge:i,extend:function(e,t,a){return s(t,function(t,r){e[r]=a&&'function'==typeof t?p(t,a):t}),e},trim:function(e){return e.replace(/^\s*/,'').replace(/\s*$/,'')}}},function(e,t,a){'use strict';t.i=function(e){var t=e.http,a=e.entityPath,r=e.wrapperMethod;return function(){var e=this.toPlainObject(),s=n()(e);return delete s.sys,t.put(a+'/'+this.sys.id,s,{headers:{"X-Contentful-Version":this.sys.version}}).then(function(e){return r(t,e.data)},o.a)}},t.c=function(e){var t=e.http,a=e.entityPath;return function(){return t.delete(a+'/'+this.sys.id).then(function(){},o.a)}},t.e=function(e){var t=e.http,a=e.entityPath,r=e.wrapperMethod;return function(){return t.put(a+'/'+this.sys.id+'/published',null,{headers:{"X-Contentful-Version":this.sys.version}}).then(function(e){return r(t,e.data)},o.a)}},t.h=function(e){var t=e.http,a=e.entityPath,r=e.wrapperMethod;return function(){return t.delete(a+'/'+this.sys.id+'/published').then(function(e){return r(t,e.data)},o.a)}},t.a=function(e){var t=e.http,a=e.entityPath,r=e.wrapperMethod;return function(){return t.put(a+'/'+this.sys.id+'/archived').then(function(e){return r(t,e.data)},o.a)}},t.g=function(e){var t=e.http,a=e.entityPath,r=e.wrapperMethod;return function(){return t.delete(a+'/'+this.sys.id+'/archived').then(function(e){return r(t,e.data)},o.a)}},t.f=function(){return function(){return!!this.sys.publishedVersion}},t.j=function(){return function(){return!!(this.sys.publishedVersion&&this.sys.version>this.sys.publishedVersion+1)}},t.d=function(){return function(){return!this.sys.publishedVersion}},t.b=function(){return function(){return!!this.sys.archivedVersion}};var r=a(0),n=a.n(r),o=a(5)},function(e,t,a){'use strict';t.a=function(e){var t,a=e.config,r=e.response;if(!n()(r)||!n()(a))throw e;var o=r.data,s={status:r.status,statusText:r.statusText,message:'',details:{}};if(a.headers&&a.headers.Authorization){var i='...'+a.headers.Authorization.substr(-5);a.headers.Authorization='Bearer '+i}n()(a)&&(s.request={url:a.url,headers:a.headers,method:a.method,payloadData:a.data}),n()(o)&&('requestId'in o&&(s.requestId=o.requestId||'UNKNOWN'),'message'in o&&(s.message=o.message||''),'details'in o&&(s.details=o.details||{}),'sys'in o&&'id'in o.sys&&(t=o.sys.id));var p=new Error;throw p.name=t&&'Unknown'!==t?t:r.status+' '+r.statusText,p.message=JSON.stringify(s,null,' '),p};var r=a(31),n=a.n(r)},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(57),o=a(58),s=a(59),i=a(60),p=a(61);r.prototype.clear=n,r.prototype['delete']=o,r.prototype.get=s,r.prototype.has=i,r.prototype.set=p,e.exports=r},function(e,t,a){var r=a(21);e.exports=function(e,t){for(var a=e.length;a--;)if(r(e[a][0],t))return a;return-1}},function(e,t,a){var r=a(13),n=r(Object,'create');e.exports=n},function(e,t,a){var r=a(78);e.exports=function(e,t){var a=e.__data__;return r(t)?a['string'==typeof t?'string':'hash']:a.map}},function(e,t,a){var r=a(24),n=a(25);e.exports=function(e,t,a,o){var s=!a;a||(a={});for(var i=-1,p=t.length;++i<p;){var d=t[i],l=o?o(a[d],e[d],d,a,e):void 0;l===void 0&&(l=e[d]),s?n(a,d,l):r(a,d,l)}return a}},function(e,t,a){'use strict';(function(t){function r(e,t){!n.isUndefined(e)&&n.isUndefined(e['Content-Type'])&&(e['Content-Type']=t)}var n=a(3),o=a(40),s={"Content-Type":'application/x-www-form-urlencoded'},i={adapter:function(){var e;return'undefined'==typeof XMLHttpRequest?'undefined'!=typeof t&&(e=a(17)):e=a(17),e}(),transformRequest:[function(e,t){return o(t,'Content-Type'),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e)?e:n.isArrayBufferView(e)?e.buffer:n.isURLSearchParams(e)?(r(t,'application/x-www-form-urlencoded;charset=utf-8'),e.toString()):n.isObject(e)?(r(t,'application/json;charset=utf-8'),JSON.stringify(e)):e}],transformResponse:[function(e){if('string'==typeof e)try{e=JSON.parse(e)}catch(t){}return e}],timeout:0,xsrfCookieName:'XSRF-TOKEN',xsrfHeaderName:'X-XSRF-TOKEN',maxContentLength:-1,validateStatus:function(e){return 200<=e&&300>e}};i.headers={common:{Accept:'application/json, text/plain, */*'}},n.forEach(['delete','get','head'],function(e){i.headers[e]={}}),n.forEach(['post','put','patch'],function(e){i.headers[e]=n.merge(s)}),e.exports=i}).call(t,a(12))},function(e){function t(){throw new Error('setTimeout has not been defined')}function a(){throw new Error('clearTimeout has not been defined')}function r(e){if(d===setTimeout)return setTimeout(e,0);if((d===t||!d)&&setTimeout)return d=setTimeout,setTimeout(e,0);try{return d(e,0)}catch(t){try{return d.call(null,e,0)}catch(t){return d.call(this,e,0)}}}function n(e){if(l===clearTimeout)return clearTimeout(e);if((l===a||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(e);try{return l(e)}catch(t){try{return l.call(null,e)}catch(t){return l.call(this,e)}}}function o(){y&&h&&(y=!1,h.length?u=h.concat(u):f=-1,u.length&&s())}function s(){if(!y){var e=r(o);y=!0;for(var t=u.length;t;){for(h=u,u=[];++f<t;)h&&h[f].run();f=-1,t=u.length}h=null,y=!1,n(e)}}function p(e,t){this.fun=e,this.array=t}function i(){}var d,l,c=e.exports={};(function(){try{d='function'==typeof setTimeout?setTimeout:t}catch(a){d=t}try{l='function'==typeof clearTimeout?clearTimeout:a}catch(t){l=a}})();var h,u=[],y=!1,f=-1;c.nextTick=function(e){var t=Array(arguments.length-1);if(1<arguments.length)for(var a=1;a<arguments.length;a++)t[a-1]=arguments[a];u.push(new p(e,t)),1!==u.length||y||r(s)},p.prototype.run=function(){this.fun.apply(null,this.array)},c.title='browser',c.browser=!0,c.env={},c.argv=[],c.version='',c.versions={},c.on=i,c.addListener=i,c.once=i,c.off=i,c.removeListener=i,c.removeAllListeners=i,c.emit=i,c.prependListener=i,c.prependOnceListener=i,c.listeners=function(){return[]},c.binding=function(){throw new Error('process.binding is not supported')},c.cwd=function(){return'/'},c.chdir=function(){throw new Error('process.chdir is not supported')},c.umask=function(){return 0}},function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e){e.exports=function(e,t){return function(a){return e(t(a))}}},function(e,t,a){'use strict';function r(){return{}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapSnapshot=n,t.wrapSnapshotCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2)},function(e){'use strict';e.exports=function(e,t){return function(){for(var a=Array(arguments.length),r=0;r<a.length;r++)a[r]=arguments[r];return e.apply(t,a)}}},function(e,t,a){'use strict';var r=a(3),n=a(41),o=a(43),s=a(44),i=a(45),p=a(18),d='undefined'!=typeof window&&window.btoa&&window.btoa.bind(window)||a(46);e.exports=function(t){return new Promise(function(e,l){var c=t.data,h=t.headers;r.isFormData(c)&&delete h['Content-Type'];var u=new XMLHttpRequest,y='onreadystatechange',f=!1;if('undefined'==typeof window||!window.XDomainRequest||'withCredentials'in u||i(t.url)||(u=new window.XDomainRequest,y='onload',f=!0,u.onprogress=function(){},u.ontimeout=function(){}),t.auth){var g=t.auth.username||'',m=t.auth.password||'';h.Authorization='Basic '+d(g+':'+m)}if(u.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),u.timeout=t.timeout,u[y]=function(){if(u&&(4===u.readyState||f)&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf('file:'))){var a='getAllResponseHeaders'in u?s(u.getAllResponseHeaders()):null,r=t.responseType&&'text'!==t.responseType?u.response:u.responseText,o={data:r,status:1223===u.status?204:u.status,statusText:1223===u.status?'No Content':u.statusText,headers:a,config:t,request:u};n(e,l,o),u=null}},u.onerror=function(){l(p('Network Error',t,null,u)),u=null},u.ontimeout=function(){l(p('timeout of '+t.timeout+'ms exceeded',t,'ECONNABORTED',u)),u=null},r.isStandardBrowserEnv()){var b=a(47),x=(t.withCredentials||i(t.url))&&t.xsrfCookieName?b.read(t.xsrfCookieName):void 0;x&&(h[t.xsrfHeaderName]=x)}if('setRequestHeader'in u&&r.forEach(h,function(e,t){'undefined'==typeof c&&'content-type'===t.toLowerCase()?delete h[t]:u.setRequestHeader(t,e)}),t.withCredentials&&(u.withCredentials=!0),t.responseType)try{u.responseType=t.responseType}catch(a){if('json'!==t.responseType)throw a}'function'==typeof t.onDownloadProgress&&u.addEventListener('progress',t.onDownloadProgress),'function'==typeof t.onUploadProgress&&u.upload&&u.upload.addEventListener('progress',t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(e){u&&(u.abort(),l(e),u=null)}),void 0===c&&(c=null),u.send(c)})}},function(e,t,a){'use strict';var r=a(42);e.exports=function(e,t,a,n,o){var s=new Error(e);return r(s,t,a,n,o)}},function(e){'use strict';e.exports=function(e){return!!(e&&e.__CANCEL__)}},function(e){'use strict';function t(e){this.message=e}t.prototype.toString=function(){return'Cancel'+(this.message?': '+this.message:'')},t.prototype.__CANCEL__=!0,e.exports=t},function(e){e.exports=function(e,t){return e===t||e!==e&&t!==t}},function(e,t,a){var r=a(13),n=a(23),o=r(n,'Map');e.exports=o},function(e,t,a){var r=a(67),n='object'==typeof self&&self&&self.Object===Object&&self,o=r||n||Function('return this')();e.exports=o},function(e,t,a){var r=a(25),n=a(21),o=Object.prototype,s=o.hasOwnProperty;e.exports=function(e,t,a){var o=e[t];s.call(e,t)&&n(o,a)&&(a!==void 0||t in e)||r(e,t,a)}},function(e,t,a){var r=a(83);e.exports=function(e,t,a){'__proto__'==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:a,writable:!0}):e[t]=a}},function(e,t,a){var r=a(14),n=r(Object.keys,Object);e.exports=n},function(e){e.exports=function(e){var t=typeof e;return null!=e&&('object'==t||'function'==t)}},function(e,t,a){var r=a(14),n=r(Object.getPrototypeOf,Object);e.exports=n},function(e,t){'use strict';var a=Object.prototype.hasOwnProperty,r=function(){for(var e=[],t=0;256>t;++t)e.push('%'+((16>t?'0':'')+t.toString(16)).toUpperCase());return e}(),n=function(e){for(var t,a;e.length;)if(a=e.pop(),t=a.obj[a.prop],Array.isArray(t)){for(var r=[],n=0;n<t.length;++n)'undefined'!=typeof t[n]&&r.push(t[n]);a.obj[a.prop]=r}return t};t.arrayToObject=function(e,t){for(var a=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)'undefined'!=typeof e[r]&&(a[r]=e[r]);return a},t.merge=function(e,r,n){if(!r)return e;if('object'!=typeof r){if(Array.isArray(e))e.push(r);else if('object'==typeof e)(n.plainObjects||n.allowPrototypes||!a.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if('object'!=typeof e)return[e].concat(r);var o=e;return Array.isArray(e)&&!Array.isArray(r)&&(o=t.arrayToObject(e,n)),Array.isArray(e)&&Array.isArray(r)?(r.forEach(function(r,o){a.call(e,o)?e[o]&&'object'==typeof e[o]?e[o]=t.merge(e[o],r,n):e.push(r):e[o]=r}),e):Object.keys(r).reduce(function(e,o){var s=r[o];return e[o]=a.call(e,o)?t.merge(e[o],s,n):s,e},o)},t.assign=function(e,t){return Object.keys(t).reduce(function(e,a){return e[a]=t[a],e},e)},t.decode=function(e){try{return decodeURIComponent(e.replace(/\+/g,' '))}catch(t){return e}},t.encode=function(e){if(0===e.length)return e;for(var t,a='string'==typeof e?e:e+'',n='',o=0;o<a.length;++o){if(t=a.charCodeAt(o),45===t||46===t||95===t||126===t||48<=t&&57>=t||65<=t&&90>=t||97<=t&&122>=t){n+=a.charAt(o);continue}if(128>t){n+=r[t];continue}if(2048>t){n+=r[192|t>>6]+r[128|63&t];continue}if(55296>t||57344<=t){n+=r[224|t>>12]+r[128|63&t>>6]+r[128|63&t];continue}o+=1,t=65536+((1023&t)<<10|1023&a.charCodeAt(o)),n+=r[240|t>>18]+r[128|63&t>>12]+r[128|63&t>>6]+r[128|63&t]}return n},t.compact=function(e){for(var t=[{obj:{o:e},prop:'o'}],a=[],r=0;r<t.length;++r)for(var o=t[r],s=o.obj[o.prop],i=Object.keys(s),p=0;p<i.length;++p){var d=i[p],l=s[d];'object'==typeof l&&null!==l&&-1===a.indexOf(l)&&(t.push({obj:s,prop:d}),a.push(l))}return n(t)},t.isRegExp=function(e){return'[object RegExp]'===Object.prototype.toString.call(e)},t.isBuffer=function(e){return null===e||'undefined'==typeof e?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}},function(e){'use strict';var t=String.prototype.replace,a=/%20/g;e.exports={default:'RFC3986',formatters:{RFC1738:function(e){return t.call(e,a,'+')},RFC3986:function(e){return e}},RFC1738:'RFC1738',RFC3986:'RFC3986'}},function(e,t,a){var r=a(112),n=a(28),o=a(113),s=Function.prototype,i=Object.prototype,p=s.toString,d=i.hasOwnProperty,l=p.call(Object);e.exports=function(e){if(!o(e)||r(e)!='[object Object]')return!1;var t=n(e);if(null===t)return!0;var a=d.call(t,'constructor')&&t.constructor;return'function'==typeof a&&a instanceof a&&p.call(a)==l}},function(e,t,a){'use strict';var r=a(118),n=a(120),o=a(121),s=a(122),i=a(33),p=a(123),d=a(124),l=a(125),c=a(126),h=a(127),u=a(128),y=a(129),f=a(130),g=a(15),m=a(131);t.a={space:r,entry:n,asset:o,contentType:s,editorInterface:i,locale:p,webhook:d,spaceMembership:l,role:c,apiKey:h,upload:u,organization:y,uiExtension:f,snapshot:g,user:m}},function(e,t,a){'use strict';function r(e){return{update:function(){var t=this.toPlainObject(),a=s()(t);return delete a.sys,e.put('content_types/'+this.sys.contentType.sys.id+'/editor_interface',a,{headers:{"X-Contentful-Version":this.sys.version}}).then(function(t){return n(e,t.data)},d.a)},getControlForField:function(e){var t=this.controls.filter(function(t){return t.fieldId===e});return t&&0<t.length?t[0]:null}}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapEditorInterface=n;var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(5)},function(e,t,a){e.exports=a(35)},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.createClient=function(e){var t=Object(i.d)('contentful-management.js/4.0.3',e.application,e.integration);if(e=d({},{defaultHostname:'api.contentful.com',defaultHostnameUpload:'upload.contentful.com'},s()(e)),!e.accessToken)throw new TypeError('Expected parameter accessToken');e.headers=d({},e.headers,{"Content-Type":'application/vnd.contentful.management.v1+json',"X-Contentful-User-Agent":t});var a=Object(i.a)(n.a,e),r=Object(p.a)({http:a});return r};var r=a(36),n=a.n(r),o=a(0),s=a.n(o),i=a(1),p=a(117),d=Object.assign||function(e){for(var t,a=1;a<arguments.length;a++)for(var r in t=arguments[a],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}},function(e,t,a){e.exports=a(37)},function(e,t,a){'use strict';function r(e){var t=new s(e),a=o(s.prototype.request,t);return n.extend(a,s.prototype,t),n.extend(a,t),a}var n=a(3),o=a(16),s=a(39),i=a(11),p=r(i);p.Axios=s,p.create=function(e){return r(n.merge(i,e))},p.Cancel=a(20),p.CancelToken=a(53),p.isCancel=a(19),p.all=function(e){return Promise.all(e)},p.spread=a(54),e.exports=p,e.exports.default=p},function(e){function t(e){return!!e.constructor&&'function'==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function a(e){return'function'==typeof e.readFloatLE&&'function'==typeof e.slice&&t(e.slice(0,0))}e.exports=function(e){return null!=e&&(t(e)||a(e)||!!e._isBuffer)}},function(e,t,a){'use strict';function r(e){this.defaults=e,this.interceptors={request:new s,response:new s}}var n=a(11),o=a(3),s=a(48),i=a(49),p=a(51),d=a(52);r.prototype.request=function(e){'string'==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),e=o.merge(n,this.defaults,{method:'get'},e),e.method=e.method.toLowerCase(),e.baseURL&&!p(e.url)&&(e.url=d(e.baseURL,e.url));var t=[i,void 0],a=Promise.resolve(e);for(this.interceptors.request.forEach(function(e){t.unshift(e.fulfilled,e.rejected)}),this.interceptors.response.forEach(function(e){t.push(e.fulfilled,e.rejected)});t.length;)a=a.then(t.shift(),t.shift());return a},o.forEach(['delete','get','head','options'],function(e){r.prototype[e]=function(t,a){return this.request(o.merge(a||{},{method:e,url:t}))}}),o.forEach(['post','put','patch'],function(e){r.prototype[e]=function(t,a,r){return this.request(o.merge(r||{},{method:e,url:t,data:a}))}}),e.exports=r},function(e,t,a){'use strict';var r=a(3);e.exports=function(e,t){r.forEach(e,function(a,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=a,delete e[r])})}},function(e,t,a){'use strict';var r=a(18);e.exports=function(e,t,a){var n=a.config.validateStatus;a.status&&n&&!n(a.status)?t(r('Request failed with status code '+a.status,a.config,null,a.request,a)):e(a)}},function(e){'use strict';e.exports=function(e,t,a,r,n){return e.config=t,a&&(e.code=a),e.request=r,e.response=n,e}},function(e,t,a){'use strict';function r(e){return encodeURIComponent(e).replace(/%40/gi,'@').replace(/%3A/gi,':').replace(/%24/g,'$').replace(/%2C/gi,',').replace(/%20/g,'+').replace(/%5B/gi,'[').replace(/%5D/gi,']')}var n=a(3);e.exports=function(e,t,a){if(!t)return e;var o;if(a)o=a(t);else if(n.isURLSearchParams(t))o=t.toString();else{var s=[];n.forEach(t,function(e,t){null===e||'undefined'==typeof e||(n.isArray(e)&&(t+='[]'),!n.isArray(e)&&(e=[e]),n.forEach(e,function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+'='+r(e))}))}),o=s.join('&')}return o&&(e+=(-1===e.indexOf('?')?'?':'&')+o),e}},function(e,t,a){'use strict';var r=a(3);e.exports=function(e){var t,a,n,o={};return e?(r.forEach(e.split('\n'),function(e){n=e.indexOf(':'),t=r.trim(e.substr(0,n)).toLowerCase(),a=r.trim(e.substr(n+1)),t&&(o[t]=o[t]?o[t]+', '+a:a)}),o):o}},function(e,t,a){'use strict';var r=a(3);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return a&&(n.setAttribute('href',t),t=n.href),n.setAttribute('href',t),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,''):'',host:n.host,search:n.search?n.search.replace(/^\?/,''):'',hash:n.hash?n.hash.replace(/^#/,''):'',hostname:n.hostname,port:n.port,pathname:'/'===n.pathname.charAt(0)?n.pathname:'/'+n.pathname}}var t,a=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement('a');return t=e(window.location.href),function(a){var n=r.isString(a)?e(a):a;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},function(e){'use strict';function t(){this.message='String contains an invalid character'}t.prototype=new Error,t.prototype.code=5,t.prototype.name='InvalidCharacterError',e.exports=function(e){for(var a,r,n=e+'',o='',s=0,i='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';n.charAt(0|s)||(i='=',s%1);o+=i.charAt(63&a>>8-8*(s%1))){if(r=n.charCodeAt(s+=3/4),255<r)throw new t;a=a<<8|r}return o}},function(e,t,a){'use strict';var r=a(3);e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,a,n,o,s){var i=[];i.push(e+'='+encodeURIComponent(t)),r.isNumber(a)&&i.push('expires='+new Date(a).toGMTString()),r.isString(n)&&i.push('path='+n),r.isString(o)&&i.push('domain='+o),!0===s&&i.push('secure'),document.cookie=i.join('; ')},read:function(e){var t=document.cookie.match(new RegExp('(^|;\\s*)('+e+')=([^;]*)'));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,'',Date.now()-8.64e7)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(e,t,a){'use strict';function r(){this.handlers=[]}var n=a(3);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){n.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,a){'use strict';function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var n=a(3),o=a(50),s=a(19),i=a(11);e.exports=function(e){r(e),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),n.forEach(['delete','get','head','post','put','patch','common'],function(t){delete e.headers[t]});var t=e.adapter||i.adapter;return t(e).then(function(t){return r(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return s(t)||(r(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,a){'use strict';var r=a(3);e.exports=function(e,t,a){return r.forEach(a,function(a){e=a(e,t)}),e}},function(e){'use strict';e.exports=function(e){return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e){'use strict';e.exports=function(e,t){return t?e.replace(/\/+$/,'')+'/'+t.replace(/^\/+/,''):e}},function(e,t,a){'use strict';function r(e){if('function'!=typeof e)throw new TypeError('executor must be a function.');var t;this.promise=new Promise(function(e){t=e});var a=this;e(function(e){a.reason||(a.reason=new n(e),t(a.reason))})}var n=a(20);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e,t=new r(function(t){e=t});return{token:t,cancel:e}},e.exports=r},function(e){'use strict';e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,a){function r(e,t,a,T,M,R){var L,U=t&j,N=t&P;if(a&&(L=M?a(e,T,M,R):a(e)),void 0!==L)return L;if(!w(e))return e;var z=x(e);if(!z){var I=f(e),q=I==v||I==E;if(_(e))return d(e,U);if(I!=S&&I!=A&&(!q||M)){if(!O[I])return M?e:{};L=m(e,I,r,U)}else if(L=N||q?{}:b(e),!U)return N?h(e,p(L,e)):c(e,i(L,e))}else if(L=g(e),!U)return l(e,L);R||(R=new n);var F=R.get(e);if(F)return F;R.set(e,L);var W=t&C?N?y:u:N?keysIn:k,D=z?void 0:W(e);return o(D||e,function(n,o){D&&(o=n,n=e[o]),s(L,o,r(n,t,a,o,e,R))}),L}var n=a(56),o=a(82),s=a(24),i=a(84),p=a(85),d=a(87),l=a(89),c=a(90),h=a(92),u=a(94),y=a(95),f=a(96),g=a(97),m=a(98),b=a(99),x=a(102),_=a(103),w=a(27),k=a(26),j=1,P=2,C=4,A='[object Arguments]',v='[object Function]',E='[object GeneratorFunction]',S='[object Object]',O={};O[A]=O['[object Array]']=O['[object ArrayBuffer]']=O['[object DataView]']=O['[object Boolean]']=O['[object Date]']=O['[object Float32Array]']=O['[object Float64Array]']=O['[object Int8Array]']=O['[object Int16Array]']=O['[object Int32Array]']=O['[object Map]']=O['[object Number]']=O[S]=O['[object RegExp]']=O['[object Set]']=O['[object String]']=O['[object Symbol]']=O['[object Uint8Array]']=O['[object Uint8ClampedArray]']=O['[object Uint16Array]']=O['[object Uint32Array]']=!0,O['[object Error]']=O[v]=O['[object WeakMap]']=!1,e.exports=r},function(e,t,a){function r(e){var t=this.__data__=new n(e);this.size=t.size}var n=a(6),o=a(62),s=a(63),i=a(64),p=a(65),d=a(66);r.prototype.clear=o,r.prototype['delete']=s,r.prototype.get=i,r.prototype.has=p,r.prototype.set=d,e.exports=r},function(e){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,a){var r=a(7),n=Array.prototype,o=n.splice;e.exports=function(e){var t=this.__data__,a=r(t,e);if(0>a)return!1;var n=t.length-1;return a==n?t.pop():o.call(t,a,1),--this.size,!0}},function(e,t,a){var r=a(7);e.exports=function(e){var t=this.__data__,a=r(t,e);return 0>a?void 0:t[a][1]}},function(e,t,a){var r=a(7);e.exports=function(e){return-1<r(this.__data__,e)}},function(e,t,a){var r=a(7);e.exports=function(e,t){var a=this.__data__,n=r(a,e);return 0>n?(++this.size,a.push([e,t])):a[n][1]=t,this}},function(e,t,a){var r=a(6);e.exports=function(){this.__data__=new r,this.size=0}},function(e){e.exports=function(e){var t=this.__data__,a=t['delete'](e);return this.size=t.size,a}},function(e){e.exports=function(e){return this.__data__.get(e)}},function(e){e.exports=function(e){return this.__data__.has(e)}},function(e,t,a){var r=a(6),n=a(22),o=a(69);e.exports=function(e,t){var a=this.__data__;if(a instanceof r){var s=a.__data__;if(!n||s.length<200-1)return s.push([e,t]),this.size=++a.size,this;a=this.__data__=new o(s)}return a.set(e,t),this.size=a.size,this}},function(e,t,a){(function(t){var a='object'==typeof t&&t&&t.Object===Object&&t;e.exports=a}).call(t,a(68))},function(e){var t=function(){return this}();try{t=t||Function('return this')()||(1,eval)('this')}catch(a){'object'==typeof window&&(t=window)}e.exports=t},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(70),o=a(77),s=a(79),i=a(80),p=a(81);r.prototype.clear=n,r.prototype['delete']=o,r.prototype.get=s,r.prototype.has=i,r.prototype.set=p,e.exports=r},function(e,t,a){var r=a(71),n=a(6),o=a(22);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||n),string:new r}}},function(e,t,a){function r(e){var t=-1,a=null==e?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}var n=a(72),o=a(73),s=a(74),i=a(75),p=a(76);r.prototype.clear=n,r.prototype['delete']=o,r.prototype.get=s,r.prototype.has=i,r.prototype.set=p,e.exports=r},function(e,t,a){var r=a(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,a){var r=a(8),n=Object.prototype,o=n.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var a=t[e];return a==='__lodash_hash_undefined__'?void 0:a}return o.call(t,e)?t[e]:void 0}},function(e,t,a){var r=a(8),n=Object.prototype,o=n.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?t[e]!==void 0:o.call(t,e)}},function(e,t,a){var r=a(8);e.exports=function(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=r&&void 0===t?'__lodash_hash_undefined__':t,this}},function(e,t,a){var r=a(9);e.exports=function(e){var t=r(this,e)['delete'](e);return this.size-=t?1:0,t}},function(e){e.exports=function(e){var t=typeof e;return'string'==t||'number'==t||'symbol'==t||'boolean'==t?'__proto__'!==e:null===e}},function(e,t,a){var r=a(9);e.exports=function(e){return r(this,e).get(e)}},function(e,t,a){var r=a(9);e.exports=function(e){return r(this,e).has(e)}},function(e,t,a){var r=a(9);e.exports=function(e,t){var a=r(this,e),n=a.size;return a.set(e,t),this.size+=a.size==n?0:1,this}},function(e){e.exports=function(e,t){for(var a=-1,r=null==e?0:e.length;++a<r&&!(!1===t(e[a],a,e)););return e}},function(e,t,a){var r=a(13),n=function(){try{var e=r(Object,'defineProperty');return e({},'',{}),e}catch(t){}}();e.exports=n},function(e,t,a){var r=a(10),n=a(26);e.exports=function(e,t){return e&&r(t,n(t),e)}},function(e,t,a){var r=a(10),n=a(86);e.exports=function(e,t){return e&&r(t,n(t),e)}},function(e){e.exports=function(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t}},function(e,t,a){(function(e){var r=a(23),n='object'==typeof t&&t&&!t.nodeType&&t,o=n&&'object'==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===n,i=s?r.Buffer:void 0,p=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var a=e.length,r=p?p(a):new e.constructor(a);return e.copy(r),r}}).call(t,a(88)(e))},function(e){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],!e.children&&(e.children=[]),Object.defineProperty(e,'loaded',{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,'id',{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e){e.exports=function(e,t){var a=-1,r=e.length;for(t||(t=Array(r));++a<r;)t[a]=e[a];return t}},function(e,t,a){var r=a(10),n=a(91);e.exports=function(e,t){return r(e,n(e),t)}},function(e){e.exports=function(){return[]}},function(e,t,a){var r=a(10),n=a(93);e.exports=function(e,t){return r(e,n(e),t)}},function(e){e.exports=function(){return[]}},function(e,t,a){var r=a(14),n=r(Object.keys,Object);e.exports=n},function(e){e.exports=function(e){var t=[];if(null!=e)for(var a in Object(e))t.push(a);return t}},function(e){var t=Object.prototype,a=t.toString;e.exports=function(e){return a.call(e)}},function(e){var t=Object.prototype,a=t.hasOwnProperty;e.exports=function(e){var t=e.length,r=e.constructor(t);return t&&'string'==typeof e[0]&&a.call(e,'index')&&(r.index=e.index,r.input=e.input),r}},function(e){e.exports=function(e){return e}},function(e,t,a){var r=a(100),n=a(28),o=a(101);e.exports=function(e){return'function'!=typeof e.constructor||o(e)?{}:r(n(e))}},function(e,t,a){var r=a(27),n=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(n)return n(t);e.prototype=t;var a=new e;return e.prototype=void 0,a}}();e.exports=o},function(e){e.exports=function(){return!1}},function(e){var t=Array.isArray;e.exports=t},function(e){e.exports=function(){return!1}},function(e,t,a){'use strict';(function(e){function r(t,a){var n=l({},{insecure:!1,retryOnError:!0,logHandler:function(e,t){if('error'===e&&t){var a=[t.name,t.message].filter(function(e){return e}).join(' - ');return console.error('[error] '+a),void console.error(t)}console.log('['+e+'] '+t)},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,proxy:!1,basePath:''},a);if(!n.accessToken){var s=new TypeError('Expected parameter accessToken');throw n.logHandler('error',s),s}var h=n.insecure?'http':'https',u=n.space?n.space+'/':'',y=n.defaultHostname,f=n.insecure?80:443;if(c.test(n.host)){var g=n.host.split(':');if(2===g.length){var m=d(g,2);y=m[0],f=m[1]}else y=g[0]}n.basePath&&(n.basePath='/'+n.basePath.split('/').filter(Boolean).join('/'));var b=h+'://'+y+':'+f+n.basePath+'/spaces/'+u;n.headers.Authorization='Bearer '+n.accessToken,e&&e.release&&'node'===e.release.name&&(n.headers['user-agent']='node.js/'+e.version,n.headers['Accept-Encoding']='gzip');var x={baseURL:b,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:i.a.stringify,proxy:n.proxy,timeout:n.timeout,logHandler:n.logHandler,retryOnError:n.retryOnError},_=t.create(x);return _.httpClientParams=a,_.cloneWithNewParams=function(e){return r(t,l({},o()(a),e))},Object(p.a)(_),_}t.a=r;var n=a(0),o=a.n(n),s=a(105),i=a.n(s),p=a(108),d=function(){function e(e,t){var a,r=[],n=!0,o=!1;try{for(var s,i=e[Symbol.iterator]();!(n=(s=i.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(e){o=!0,a=e}finally{try{!n&&i['return']&&i['return']()}finally{if(o)throw a}}return r}return function(t,a){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,a);throw new TypeError('Invalid attempt to destructure non-iterable instance')}}(),l=Object.assign||function(e){for(var t,a=1;a<arguments.length;a++)for(var r in t=arguments[a],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},c=/^(?!\w+:\/\/)([^\s:]+\.[^\s:]+)(?::(\d+))?(?!:)$/}).call(t,a(12))},function(e,t,a){'use strict';var r=a(106),n=a(107),o=a(30);e.exports={formats:o,parse:n,stringify:r}},function(e,t,a){'use strict';var r=a(29),n=a(30),o={brackets:function(e){return e+'[]'},indices:function(e,t){return e+'['+t+']'},repeat:function(e){return e}},s=Date.prototype.toISOString,p={delimiter:'&',encode:!0,encoder:r.encode,encodeValuesOnly:!1,serializeDate:function(e){return s.call(e)},skipNulls:!1,strictNullHandling:!1},d=function e(t,a,n,o,s,d,l,c,h,u,y,f){var g=t;if('function'==typeof l)g=l(a,g);else if(g instanceof Date)g=u(g);else if(null===g){if(o)return d&&!f?d(a,p.encoder):a;g=''}if('string'==typeof g||'number'==typeof g||'boolean'==typeof g||r.isBuffer(g)){if(d){var m=f?a:d(a,p.encoder);return[y(m)+'='+y(d(g,p.encoder))]}return[y(a)+'='+y(g+'')]}var b=[];if('undefined'==typeof g)return b;var x;if(Array.isArray(l))x=l;else{var _=Object.keys(g);x=c?_.sort(c):_}for(var w,k=0;k<x.length;++k)(w=x[k],!(s&&null===g[w]))&&(b=Array.isArray(g)?b.concat(e(g[w],n(a,w),n,o,s,d,l,c,h,u,y,f)):b.concat(e(g[w],a+(h?'.'+w:'['+w+']'),n,o,s,d,l,c,h,u,y,f)));return b};e.exports=function(e,t){var a=e,s=t?r.assign({},t):{};if(null!==s.encoder&&s.encoder!==void 0&&'function'!=typeof s.encoder)throw new TypeError('Encoder has to be a function.');var l='undefined'==typeof s.delimiter?p.delimiter:s.delimiter,c='boolean'==typeof s.strictNullHandling?s.strictNullHandling:p.strictNullHandling,h='boolean'==typeof s.skipNulls?s.skipNulls:p.skipNulls,u='boolean'==typeof s.encode?s.encode:p.encode,y='function'==typeof s.encoder?s.encoder:p.encoder,f='function'==typeof s.sort?s.sort:null,g='undefined'!=typeof s.allowDots&&s.allowDots,m='function'==typeof s.serializeDate?s.serializeDate:p.serializeDate,b='boolean'==typeof s.encodeValuesOnly?s.encodeValuesOnly:p.encodeValuesOnly;if('undefined'==typeof s.format)s.format=n['default'];else if(!Object.prototype.hasOwnProperty.call(n.formatters,s.format))throw new TypeError('Unknown format option provided.');var x,_,w=n.formatters[s.format];'function'==typeof s.filter?(_=s.filter,a=_('',a)):Array.isArray(s.filter)&&(_=s.filter,x=_);var k=[];if('object'!=typeof a||null===a)return'';var j=s.arrayFormat in o?s.arrayFormat:'indices'in s?s.indices?'indices':'repeat':'indices';var P=o[j];x||(x=Object.keys(a)),f&&x.sort(f);for(var C,A=0;A<x.length;++A)(C=x[A],!(h&&null===a[C]))&&(k=k.concat(d(a[C],C,P,c,h,u?y:null,_,f,g,m,w,b)));var i=k.join(l),v=!0===s.addQueryPrefix?'?':'';return 0<i.length?v+i:''}},function(e,t,a){'use strict';var r=a(29),n=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:r.decode,delimiter:'&',depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},s=function(e,t){for(var a={},r=t.ignoreQueryPrefix?e.replace(/^\?/,''):e,s=t.parameterLimit===Infinity?void 0:t.parameterLimit,p=r.split(t.delimiter,s),d=0;d<p.length;++d){var i,l,c=p[d],h=c.indexOf(']='),u=-1===h?c.indexOf('='):h+1;-1===u?(i=t.decoder(c,o.decoder),l=t.strictNullHandling?null:''):(i=t.decoder(c.slice(0,u),o.decoder),l=t.decoder(c.slice(u+1),o.decoder)),a[i]=n.call(a,i)?[].concat(a[i]).concat(l):l}return a},p=function(e,t,a){for(var r=t,n=e.length-1;0<=n;--n){var o,s=e[n];if('[]'===s)o=[],o=o.concat(r);else{o=a.plainObjects?Object.create(null):{};var i='['===s.charAt(0)&&']'===s.charAt(s.length-1)?s.slice(1,-1):s,p=parseInt(i,10);!isNaN(p)&&s!==i&&p+''===i&&0<=p&&a.parseArrays&&p<=a.arrayLimit?(o=[],o[p]=r):o[i]=r}r=o}return r},d=function(e,t,a){if(e){var r=a.allowDots?e.replace(/\.([^.[]+)/g,'[$1]'):e,o=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,d=o.exec(r),l=d?r.slice(0,d.index):r,c=[];if(l){if(!a.plainObjects&&n.call(Object.prototype,l)&&!a.allowPrototypes)return;c.push(l)}for(var h=0;null!==(d=s.exec(r))&&h<a.depth;){if(h+=1,!a.plainObjects&&n.call(Object.prototype,d[1].slice(1,-1))&&!a.allowPrototypes)return;c.push(d[1])}return d&&c.push('['+r.slice(d.index)+']'),p(c,t,a)}};e.exports=function(e,t){var a=t?r.assign({},t):{};if(null!==a.decoder&&void 0!==a.decoder&&'function'!=typeof a.decoder)throw new TypeError('Decoder has to be a function.');if(a.ignoreQueryPrefix=!0===a.ignoreQueryPrefix,a.delimiter='string'==typeof a.delimiter||r.isRegExp(a.delimiter)?a.delimiter:o.delimiter,a.depth='number'==typeof a.depth?a.depth:o.depth,a.arrayLimit='number'==typeof a.arrayLimit?a.arrayLimit:o.arrayLimit,a.parseArrays=!1!==a.parseArrays,a.decoder='function'==typeof a.decoder?a.decoder:o.decoder,a.allowDots='boolean'==typeof a.allowDots?a.allowDots:o.allowDots,a.plainObjects='boolean'==typeof a.plainObjects?a.plainObjects:o.plainObjects,a.allowPrototypes='boolean'==typeof a.allowPrototypes?a.allowPrototypes:o.allowPrototypes,a.parameterLimit='number'==typeof a.parameterLimit?a.parameterLimit:o.parameterLimit,a.strictNullHandling='boolean'==typeof a.strictNullHandling?a.strictNullHandling:o.strictNullHandling,''===e||null===e||'undefined'==typeof e)return a.plainObjects?Object.create(null):{};for(var n='string'==typeof e?s(e,a):e,p=a.plainObjects?Object.create(null):{},l=Object.keys(n),c=0;c<l.length;++c){var i=l[c],h=d(i,n[i],a);p=r.merge(p,h,a)}return r.compact(p)}},function(e,t){'use strict';t.a=function(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:5;e.interceptors.response.use(function(e){return e},function(n){var o=Math.pow,s=n.response,i=n.config;if(!e.defaults.retryOnError)return Promise.reject(n);var p=null,d=0;if(!s||!i){if(p='Connection',r++,r>t)return n.attempts=r,Promise.reject(n);d=o(Math.SQRT2,r),s={}}else r=0;if(500<=s.status&&600>s.status){p='Server '+s.status;var l=s.headers||{},c=l['x-contentful-request-id']||null;if(a[c]=a[c]||0,a[c]++,a[c]>t||!c)return n.attempts=a[c],Promise.reject(n);d=o(Math.SQRT2,a[c])}else 429===s.status&&(p='Rate limit',s.headers&&n.response.headers['x-contentful-ratelimit-reset']&&(d=s.headers['x-contentful-ratelimit-reset']));return p?(d=Math.floor(1e3*d+200*Math.random()+500),e.defaults.logHandler('warning',p+' error occurred. Waiting for '+d+' ms before retrying...'),new Promise(function(t){setTimeout(function(){t(e(i))},d)})):Promise.reject(n)})};var a={},r=0},function(e,t,a){'use strict';t.a=function(e){var t=e.query,a={};return delete t.resolveLinks,a.params=n()(t),a};var r=a(0),n=a.n(r)},function(){'use strict'},function(e,t,a){'use strict';function r(e){return Object.keys(e).forEach(function(t){var a=e[t];o()(a)&&r(a)}),Object.freeze(e)}t.a=function(e){return r(e.sys||{}),e};var n=a(31),o=a.n(n)},function(e){var t=Object.prototype,a=t.toString;e.exports=function(e){return a.call(e)}},function(e){e.exports=function(e){return null!=e&&'object'==typeof e}},function(e,t,a){'use strict';(function(e){function r(){return'undefined'!=typeof window&&'navigator'in window&&'product'in window.navigator&&'ReactNative'===window.navigator.product}function n(){return'undefined'!=typeof e&&'release'in e&&'name'in e.release&&'node'===e.release.name}function o(){var e=window.navigator.userAgent,t=window.navigator.platform,a=null;return-1===['Macintosh','MacIntel','MacPPC','Mac68K'].indexOf(t)?-1===['iPhone','iPad','iPod'].indexOf(t)?-1===['Win32','Win64','Windows','WinCE'].indexOf(t)?/Android/.test(e)?a='Android':/Linux/.test(t)&&(a='Linux'):a='Windows':a='iOS':a='macOS',a}function s(){var e=Object(i.platform)()||'linux',t=Object(i.release)()||'0.0.0',a={android:'Android',aix:'Linux',darwin:'macOS',freebsd:'Linux',linux:'Linux',openbsd:'Linux',sunos:'Linux',win32:'Windows'};return e in a?(a[e]||'Linux')+'/'+t:null}t.a=function(t,a,i){var p=[];a&&p.push('app '+a),i&&p.push('integration '+i),p.push('sdk '+t);var d=null;return r()?(d=o(),p.push('platform ReactNative')):n()?(d=s(),p.push('platform node.js/'+e.versions.node)):(d=o(),p.push('platform browser')),d&&p.push('os '+d),p.filter(function(e){return''!==e}).join('; ')+';'};var i=a(115),p=a.n(i)}).call(t,a(12))},function(){},function(e,t,a){'use strict';t.a=function(e){return Object.defineProperty(e,'toPlainObject',{enumerable:!1,configurable:!1,writable:!1,value:function(){return n()(this)}})};var r=a(0),n=a.n(r)},function(e,t,a){'use strict';t.a=function(e){var t=e.http,a=o.a.space,s=a.wrapSpace,i=a.wrapSpaceCollection,p=o.a.user.wrapUser,d=o.a.organization.wrapOrganizationCollection;return{getSpaces:function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return t.get('',Object(r.b)({query:e})).then(function(e){return i(t,e.data)},n.a)},getSpace:function(e){return t.get(e).then(function(e){return s(t,e.data)},n.a)},createSpace:function(e,a){return t.post('',e,{headers:a?{"X-Contentful-Organization":a}:{}}).then(function(e){return s(t,e.data)},n.a)},getOrganizations:function(){var e=t.defaults.baseURL.replace('/spaces/','/organizations/');return t.get('',{baseURL:e}).then(function(e){return d(t,e.data)},n.a)},getCurrentUser:function(){var e=t.defaults.baseURL.replace('/spaces/','/users/me/');return t.get('',{baseURL:e}).then(function(e){return p(t,e.data)},n.a)},rawRequest:function(e){return t(e).then(function(e){return e.data},n.a)}}};var r=a(1),n=a(5),o=a(32)},function(e,t,a){'use strict';function r(e,t){var a=Object(s.e)(o()(t)),r=e.httpClientParams,n=r.hostUpload,d=r.defaultHostnameUpload,l=e.cloneWithNewParams({space:a.sys.id}),c=e.cloneWithNewParams({space:a.sys.id,host:n||d}),h=Object(p.a)({http:l,httpUpload:c}),u=Object(i.a)(a,h);return Object(s.c)(u)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapSpace=r,t.wrapSpaceCollection=function(e,t){var a=Object(s.e)(o()(t));return a.items=a.items.map(function(t){return r(e,t)}),Object(s.c)(a)};var n=a(0),o=a.n(n),s=a(1),i=a(2),p=a(119)},function(e,t,a){'use strict';function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}t.a=function(e){function t(e){return l.post('assets',e).then(function(e){return _(l,e.data)},i.a)}function a(e){var t=e.file;return t?c.post('uploads',t,{headers:{"Content-Type":'application/octet-stream'}}).then(function(e){return q(c,e.data)}).catch(i.a):Promise.reject(new Error('Unable to locate a file to upload.'))}function n(e){e.select&&!/sys/i.test(e.select)&&(e.select+=',sys')}var l=e.http,c=e.httpUpload,h=p.a.space.wrapSpace,u=p.a.contentType,y=u.wrapContentType,f=u.wrapContentTypeCollection,g=p.a.entry,m=g.wrapEntry,b=g.wrapEntryCollection,x=p.a.asset,_=x.wrapAsset,w=x.wrapAssetCollection,k=p.a.locale,j=k.wrapLocale,P=k.wrapLocaleCollection,C=p.a.webhook,A=C.wrapWebhook,v=C.wrapWebhookCollection,E=p.a.role,S=E.wrapRole,O=E.wrapRoleCollection,T=p.a.spaceMembership,M=T.wrapSpaceMembership,R=T.wrapSpaceMembershipCollection,L=p.a.apiKey,U=L.wrapApiKey,N=L.wrapApiKeyCollection,z=p.a.snapshot.wrapSnapshotCollection,I=p.a.editorInterface.wrapEditorInterface,q=p.a.upload.wrapUpload,F=p.a.uiExtension,W=F.wrapUiExtension,D=F.wrapUiExtensionCollection;return{delete:function(){return l.delete('').then(function(){},i.a)},update:function(){var e=this.toPlainObject(),t=o()(e);return delete t.sys,l.put('',t,{headers:{"X-Contentful-Version":e.sys.version}}).then(function(e){return h(l,e.data)},i.a)},getContentType:function(e){return l.get('content_types/'+e).then(function(e){return y(l,e.data)},i.a)},getContentTypes:function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{};return l.get('content_types',Object(s.b)({query:e})).then(function(e){return f(l,e.data)},i.a)},createContentType:function(e){return l.post('content_types',e).then(function(e){return y(l,e.data)},i.a)},createContentTypeWithId:function(e,t){return l.put('content_types/'+e,t).then(function(e){return y(l,e.data)},i.a)},getEditorInterfaceForContentType:function(e){return l.get('content_types/'+e+'/editor_interface').then(function(e){return I(l,e.data)},i.a)},getEntry:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return n(t),l.get('entries/'+e,Object(s.b)({query:t})).then(function(e){return m(l,e.data)},i.a)},getEntries:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n(e),l.get('entries',Object(s.b)({query:e})).then(function(e){return b(l,e.data)},i.a)},createEntry:function(e,t){return l.post('entries',t,{headers:{"X-Contentful-Content-Type":e}}).then(function(e){return m(l,e.data)},i.a)},createEntryWithId:function(e,t,a){return l.put('entries/'+t,a,{headers:{"X-Contentful-Content-Type":e}}).then(function(e){return m(l,e.data)},i.a)},getAsset:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return n(t),l.get('assets/'+e,Object(s.b)({query:t})).then(function(e){return _(l,e.data)},i.a)},getAssets:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return n(e),l.get('assets',Object(s.b)({query:e})).then(function(e){return w(l,e.data)},i.a)},createAsset:t,createAssetWithId:function(e,t){return l.put('assets/'+e,t).then(function(e){return _(l,e.data)},i.a)},createAssetFromFiles:function(e){var n=e.fields.file;return Promise.all(Object.keys(n).map(function(e){var t=n[e],o=t.contentType,s=t.fileName;return a(n[e]).then(function(t){return r({},e,{contentType:o,fileName:s,uploadFrom:{sys:{type:'Link',linkType:'Upload',id:t.sys.id}}})})})).then(function(a){return e.fields.file=a.reduce(function(e,t){return d({},e,t)},{}),t(e)}).catch(i.a)},getUpload:function(e){return c.get('uploads/'+e).then(function(e){return q(l,e.data)}).catch(i.a)},createUpload:a,getLocale:function(e){return l.get('locales/'+e).then(function(e){return j(l,e.data)},i.a)},getLocales:function(){return l.get('locales').then(function(e){return P(l,e.data)},i.a)},createLocale:function(e){return l.post('locales',e).then(function(e){return j(l,e.data)},i.a)},getWebhook:function(e){return l.get('webhook_definitions/'+e).then(function(e){return A(l,e.data)},i.a)},getWebhooks:function(){return l.get('webhook_definitions').then(function(e){return v(l,e.data)},i.a)},createWebhook:function(e){return l.post('webhook_definitions',e).then(function(e){return A(l,e.data)},i.a)},createWebhookWithId:function(e,t){return l.put('webhook_definitions/'+e,t).then(function(e){return A(l,e.data)},i.a)},getRole:function(e){return l.get('roles/'+e).then(function(e){return S(l,e.data)},i.a)},getRoles:function(){return l.get('roles').then(function(e){return O(l,e.data)},i.a)},createRole:function(e){return l.post('roles',e).then(function(e){return S(l,e.data)},i.a)},createRoleWithId:function(e,t){return l.put('roles/'+e,t).then(function(e){return S(l,e.data)},i.a)},getSpaceMembership:function(e){return l.get('space_memberships/'+e).then(function(e){return M(l,e.data)},i.a)},getSpaceMemberships:function(){return l.get('space_memberships').then(function(e){return R(l,e.data)},i.a)},createSpaceMembership:function(e){return l.post('space_memberships',e).then(function(e){return M(l,e.data)},i.a)},createSpaceMembershipWithId:function(e,t){return l.put('space_memberships/'+e,t).then(function(e){return M(l,e.data)},i.a)},getApiKey:function(e){return l.get('api_keys/'+e).then(function(e){return U(l,e.data)},i.a)},getApiKeys:function(){return l.get('api_keys').then(function(e){return N(l,e.data)},i.a)},createApiKey:function(e){return l.post('api_keys',e).then(function(e){return U(l,e.data)},i.a)},createApiKeyWithId:function(e,t){return l.put('api_keys/'+e,t).then(function(e){return U(l,e.data)},i.a)},getUiExtension:function(e){return l.get('extensions/'+e).then(function(e){return W(l,e.data)},i.a)},getUiExtensions:function(){return l.get('extensions').then(function(e){return D(l,e.data)},i.a)},createUiExtension:function(e){return l.post('extensions',e).then(function(e){return W(l,e.data)},i.a)},createUiExtensionWithId:function(e,t){return l.put('extensions/'+e,t).then(function(e){return W(l,e.data)},i.a)},getEntrySnapshots:function(e){return l.get('entries/'+e+'/snapshots').then(function(e){return z(l,e.data)},i.a)},getContentTypeSnapshots:function(e){return l.get('content_types/'+e+'/snapshots').then(function(e){return z(l,e.data)},i.a)}}};var n=a(0),o=a.n(n),s=a(1),i=a(5),p=a(32),d=Object.assign||function(e){for(var t,a=1;a<arguments.length;a++)for(var r in t=arguments[a],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}},function(e,t,a){'use strict';function r(e){return{update:Object(d.i)({http:e,entityPath:'entries',wrapperMethod:n}),delete:Object(d.c)({http:e,entityPath:'entries'}),publish:Object(d.e)({http:e,entityPath:'entries',wrapperMethod:n}),unpublish:Object(d.h)({http:e,entityPath:'entries',wrapperMethod:n}),archive:Object(d.a)({http:e,entityPath:'entries',wrapperMethod:n}),unarchive:Object(d.g)({http:e,entityPath:'entries',wrapperMethod:n}),getSnapshots:function(){return e.get('entries/'+this.sys.id+'/snapshots').then(function(t){return Object(c.wrapSnapshotCollection)(e,t.data)},l.a)},getSnapshot:function(t){return e.get('entries/'+this.sys.id+'/snapshots/'+t).then(function(t){return Object(c.wrapSnapshot)(e,t.data)},l.a)},isPublished:Object(d.f)(),isUpdated:Object(d.j)(),isDraft:Object(d.d)(),isArchived:Object(d.b)()}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapEntry=n,t.wrapEntryCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4),l=a(5),c=a(15)},function(e,t,a){'use strict';function r(e){function t(a){var r=a.resolve,o=a.reject,s=a.id,i=a.locale,p=a.processingCheckWait,l=p===void 0?c:p,u=a.processingCheckRetries,y=u===void 0?h:u,f=a.checkCount,g=f===void 0?0:f;e.get('assets/'+s).then(function(t){return n(e,t.data)},d.a).then(function(e){if(e.fields.file[i].url)r(e);else if(g===y){var a=new Error;a.name='AssetProcessingTimeout',a.message='Asset is taking longer then expected to process.',o(a)}else g++,setTimeout(function(){return t({resolve:r,reject:o,id:s,locale:i,checkCount:g,processingCheckWait:l,processingCheckRetries:y})},l)})}function a(a){var r=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},n=r.processingCheckWait,o=r.processingCheckRetries,s=this.sys.id;return e.put('assets/'+this.sys.id+'/files/'+a+'/process',null,{headers:{"X-Contentful-Version":this.sys.version}}).then(function(){return new Promise(function(e,r){return t({resolve:e,reject:r,id:s,locale:a,processingCheckWait:n,processingCheckRetries:o})})},d.a)}return{update:Object(l.i)({http:e,entityPath:'assets',wrapperMethod:n}),delete:Object(l.c)({http:e,entityPath:'assets'}),publish:Object(l.e)({http:e,entityPath:'assets',wrapperMethod:n}),unpublish:Object(l.h)({http:e,entityPath:'assets',wrapperMethod:n}),archive:Object(l.a)({http:e,entityPath:'assets',wrapperMethod:n}),unarchive:Object(l.g)({http:e,entityPath:'assets',wrapperMethod:n}),processForLocale:a,processForAllLocales:function(){var e=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},t=this,r=Object.keys(this.fields.file||{});return Promise.all(r.map(function(r){return a.call(t,r,e)})).then(function(e){return e[0]})},isPublished:Object(l.f)(),isUpdated:Object(l.j)(),isDraft:Object(l.d)(),isArchived:Object(l.b)()}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapAsset=n,t.wrapAssetCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(5),l=a(4),c=2e3,h=10},function(e,t,a){'use strict';function r(e){return{update:Object(d.i)({http:e,entityPath:'content_types',wrapperMethod:n}),delete:Object(d.c)({http:e,entityPath:'content_types'}),publish:Object(d.e)({http:e,entityPath:'content_types',wrapperMethod:n}),unpublish:Object(d.h)({http:e,entityPath:'content_types',wrapperMethod:n}),getEditorInterface:function(){return e.get('content_types/'+this.sys.id+'/editor_interface').then(function(t){return Object(l.wrapEditorInterface)(e,t.data)},c.a)},getSnapshots:function(){return e.get('content_types/'+this.sys.id+'/snapshots').then(function(t){return Object(h.wrapSnapshotCollection)(e,t.data)},c.a)},getSnapshot:function(t){return e.get('content_types/'+this.sys.id+'/snapshots/'+t).then(function(t){return Object(h.wrapSnapshot)(e,t.data)},c.a)},isPublished:Object(d.f)(),isUpdated:Object(d.j)(),isDraft:Object(d.d)()}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapContentType=n,t.wrapContentTypeCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4),l=a(33),c=a(5),h=a(15)},function(e,t,a){'use strict';function r(e){return{update:function(){var t=this;return delete t.default,delete t.fallback_code,delete t.fallbackCode,Object(d.i)({http:e,entityPath:'locales',wrapperMethod:n}).call(t)},delete:Object(d.c)({http:e,entityPath:'locales'})}}function n(e,t){delete t.internal_code;var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapLocale=n,t.wrapLocaleCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4)},function(e,t,a){'use strict';function r(e){return{update:Object(l.i)({http:e,entityPath:'webhook_definitions',wrapperMethod:n}),delete:Object(l.c)({http:e,entityPath:'webhook_definitions'}),getCalls:function(){return e.get('webhooks/'+this.sys.id+'/calls').then(function(e){return e.data},d.a)},getCall:function(t){return e.get('webhooks/'+this.sys.id+'/calls/'+t).then(function(e){return e.data},d.a)},getHealth:function(){return e.get('webhooks/'+this.sys.id+'/health').then(function(e){return e.data},d.a)}}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapWebhook=n,t.wrapWebhookCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(5),l=a(4)},function(e,t,a){'use strict';function r(e){return{update:Object(d.i)({http:e,entityPath:'space_memberships',wrapperMethod:n}),delete:Object(d.c)({http:e,entityPath:'space_memberships'})}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapSpaceMembership=n,t.wrapSpaceMembershipCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4)},function(e,t,a){'use strict';function r(e){return{update:Object(d.i)({http:e,entityPath:'roles',wrapperMethod:n}),delete:Object(d.c)({http:e,entityPath:'roles'})}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapRole=n,t.wrapRoleCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4)},function(e,t,a){'use strict';function r(e){return{update:function(){'accessToken'in this&&delete this.accessToken,'preview_api_key'in this&&delete this.preview_api_key,'policies'in this&&delete this.policies;var t=Object(d.i)({http:e,entityPath:'api_keys',wrapperMethod:n});return t.call(this)},delete:Object(d.c)({http:e,entityPath:'api_keys'})}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapApiKey=n,t.wrapApiKeyCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4)},function(e,t,a){'use strict';function r(e){return{delete:Object(p.c)({http:e,entityPath:'uploads'})}}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapUpload=function(e,t){var a=Object(s.e)(o()(t));return Object(i.a)(a,r(e)),Object(s.c)(a)};var n=a(0),o=a.n(n),s=a(1),i=a(2),p=a(4)},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.wrapOrganizationCollection=function(e,t){var a=Object(o.e)(n()(t));return Object(o.c)(a)};var r=a(0),n=a.n(r),o=a(1)},function(e,t,a){'use strict';function r(e){return{update:Object(d.i)({http:e,entityPath:'extensions',wrapperMethod:n}),delete:Object(d.c)({http:e,entityPath:'extensions'})}}function n(e,t){var a=Object(i.e)(s()(t));return Object(p.a)(a,r(e)),Object(i.c)(a)}Object.defineProperty(t,'__esModule',{value:!0}),t.wrapUiExtension=n,t.wrapUiExtensionCollection=function(e,t){var a=Object(i.e)(s()(t));return a.items=a.items.map(function(t){return n(e,t)}),Object(i.c)(a)};var o=a(0),s=a.n(o),i=a(1),p=a(2),d=a(4)},function(e,t,a){'use strict';Object.defineProperty(t,'__esModule',{value:!0}),t.wrapUser=function(e,t){var a=Object(r.e)(s()(t));return Object(n.a)(a,{}),Object(r.c)(a)};var r=a(1),n=a(2),o=a(0),s=a.n(o)}])}); |
@@ -42,3 +42,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
}; | ||
var userAgentHeader = getUserAgentHeader('contentful-management.js/' + '4.0.2', params.application, params.integration); | ||
var userAgentHeader = getUserAgentHeader('contentful-management.js/' + '4.0.3', params.application, params.integration); | ||
@@ -45,0 +45,0 @@ var requiredHeaders = { |
@@ -1,1 +0,1 @@ | ||
{"name":"contentful-management","version":"4.0.2","description":"Client for Contentful's Content Management API","homepage":"https://www.contentful.com/developers/documentation/content-management-api/","main":"./dist/contentful-management.node.js","module":"./dist/es-modules/contentful-management.js","engines":{"node":">=4.7"},"repository":{"type":"git","url":"https://github.com/contentful/contentful-management.js.git"},"author":"Contentful <opensource@contentful.com>","license":"MIT","tonicExampleFilename":"tonic-example.js","scripts":{"clean":"rimraf dist","build":"npm run clean && npm run build:modules && npm run build:standalone","build:modules":"BABEL_ENV=modules babel lib -d dist/es-modules/","build:standalone":"webpack && NODE_ENV=production webpack","build:standalone:log":"NODE_ENV=production WEBPACK_MODE=log webpack --json --profile --progress > webpack-build-log.json && webpack-bundle-analyzer webpack-build-log.json","docs:build":"jsdoc -c jsdoc.json","docs:dev":"npm run build && npm run docs:build","docs:watch":"nodemon --exec npm run docs:dev -w lib","docs:publish":"npm run docs:build && ./node_modules/contentful-sdk-jsdoc/bin/publish-docs.sh contentful-management.js contentful-management","lint":"eslint lib test","format":"eslint --fix lib test","pretest":"rimraf coverage && npm run lint","test":"npm run test:cover && npm run test:integration && npm run test:browser-local && npm run test:size","test:ci":"./node_modules/contentful-sdk-core/bin/test-ci.sh","test:cover":"BABEL_ENV=test babel-node ./node_modules/istanbul/lib/cli.js cover ./test/runner | tap-spec","test:unit":"BABEL_ENV=test babel-node ./test/runner | tap-spec","test:debug":"BABEL_ENV=test babel-node debug ./test/runner","test:integration":"BABEL_ENV=test babel-node ./test/integration/integration-tests.js","test:browser-local":"BABEL_ENV=test karma start karma.conf.local.js","test:browser-remote":"BABEL_ENV=test karma start karma.conf.saucelabs.js","test:e2e":"node test/e2e/index.js","test:simulate-ci":"trevor","test:size":"bundlesize","browser-coverage":"npm run test:cover && opener coverage/lcov-report/index.html","prepublish":"in-publish && npm run build || not-in-publish","postpublish":"npm run docs:publish && npm run clean","semantic-release":"semantic-release pre && npm publish && semantic-release post","devdep:build":"pushd ../contentful-sdk-core && npm run build && popd","devdep:clean":"pushd ../contentful-sdk-core && npm run clean && popd","devdep:install":"npm run devdep:build && rm -rf node_modules/contentful-sdk-core && npm install ../contentful-sdk-core && npm run devdep:clean","devdep:uninstall":"npm run devdep:clean && rimraf node_modules/contentful-sdk-core","precommit":"npm run lint","prepush":"npm run test:unit"},"files":["dist","tonic-example.js"],"dependencies":{"axios":"contentful/axios#fix/https-via-http-proxy","contentful-sdk-core":"^5.0.0","lodash":"^4.17.4"},"devDependencies":{"babel-cli":"^6.7.5","babel-core":"^6.22.1","babel-eslint":"^8.0.1","babel-loader":"^7.1.1","babel-plugin-inline-replace-variables":"^1.3.1","babel-plugin-lodash":"^3.2.11","babel-plugin-rewire":"^1.0.0","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-preset-env":"^1.6.0","babel-preset-es2015":"^6.6.0","babel-register":"^6.7.2","babel-template":"^6.22.0","babel-types":"^6.22.0","babili-webpack-plugin":"^0.1.2","blue-tape":"^1.0.0","bundlesize":"^0.15.3","contentful-sdk-jsdoc":"^2.2.0","core-js":"^2.5.1","coveralls":"^3.0.0","cz-conventional-changelog":"^2.0.0","eslint":"^4.2.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.1.0","eslint-plugin-promise":"^3.4.2","eslint-plugin-standard":"^3.0.1","husky":"^0.14.3","in-publish":"^2.0.0","istanbul":"^1.0.0-alpha.2","jsdoc":"^3.4.0","json":"^9.0.3","karma":"^1.4.1","karma-babel-preprocessor":"^7.0.0","karma-chrome-launcher":"^2.0.0","karma-firefox-launcher":"^1.0.1","karma-sauce-launcher":"^1.1.0","karma-tap":"^3.1.1","karma-webpack":"^2.0.2","lodash-webpack-plugin":"^0.11.4","mkdirp":"^0.5.1","require-all":"^2.2.0","rimraf":"^2.6.0","selenium-webdriver":"^3.5.0","semantic-release":"^8.2.0","sinon":"^4.0.1","tap-spec":"^4.1.1","trevor":"^2.2.0","webpack":"^3.2.0","webpack-bundle-analyzer":"^2.8.3"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"bundlesize":[{"path":"./dist/contentful-management.browser.js","maxSize":"48Kb"},{"path":"./dist/contentful-management.browser.min.js","maxSize":"16Kb"},{"path":"./dist/contentful-management.legacy.js","maxSize":"61Kb"},{"path":"./dist/contentful-management.legacy.min.js","maxSize":"22Kb"},{"path":"./dist/contentful-management.node.js","maxSize":"57Kb"},{"path":"./dist/contentful-management.node.min.js","maxSize":"20Kb"}]} | ||
{"name":"contentful-management","version":"4.0.3","description":"Client for Contentful's Content Management API","homepage":"https://www.contentful.com/developers/documentation/content-management-api/","main":"./dist/contentful-management.node.js","module":"./dist/es-modules/contentful-management.js","engines":{"node":">=4.7"},"repository":{"type":"git","url":"https://github.com/contentful/contentful-management.js.git"},"author":"Contentful <opensource@contentful.com>","license":"MIT","tonicExampleFilename":"tonic-example.js","scripts":{"clean":"rimraf dist","build":"npm run clean && npm run build:modules && npm run build:standalone","build:modules":"BABEL_ENV=modules babel lib -d dist/es-modules/","build:standalone":"webpack && NODE_ENV=production webpack","build:standalone:log":"NODE_ENV=production WEBPACK_MODE=log webpack --json --profile --progress > webpack-build-log.json && webpack-bundle-analyzer webpack-build-log.json","docs:build":"jsdoc -c jsdoc.json","docs:dev":"npm run build && npm run docs:build","docs:watch":"nodemon --exec npm run docs:dev -w lib","docs:publish":"npm run docs:build && ./node_modules/contentful-sdk-jsdoc/bin/publish-docs.sh contentful-management.js contentful-management","lint":"eslint lib test","format":"eslint --fix lib test","pretest":"rimraf coverage && npm run lint","test":"npm run test:cover && npm run test:integration && npm run test:browser-local && npm run test:size","test:ci":"./node_modules/contentful-sdk-core/bin/test-ci.sh","test:cover":"BABEL_ENV=test babel-node ./node_modules/istanbul/lib/cli.js cover ./test/runner | tap-spec","test:unit":"BABEL_ENV=test babel-node ./test/runner | tap-spec","test:debug":"BABEL_ENV=test babel-node debug ./test/runner","test:integration":"BABEL_ENV=test babel-node ./test/integration/integration-tests.js","test:browser-local":"BABEL_ENV=test karma start karma.conf.local.js","test:browser-remote":"BABEL_ENV=test karma start karma.conf.saucelabs.js","test:e2e":"node test/e2e/index.js","test:simulate-ci":"trevor","test:size":"bundlesize","browser-coverage":"npm run test:cover && opener coverage/lcov-report/index.html","prepublish":"in-publish && npm run build || not-in-publish","postpublish":"npm run docs:publish && npm run clean","semantic-release":"semantic-release pre && npm publish && semantic-release post","devdep:build":"pushd ../contentful-sdk-core && npm run build && popd","devdep:clean":"pushd ../contentful-sdk-core && npm run clean && popd","devdep:install":"npm run devdep:build && rm -rf node_modules/contentful-sdk-core && npm install ../contentful-sdk-core && npm run devdep:clean","devdep:uninstall":"npm run devdep:clean && rimraf node_modules/contentful-sdk-core","precommit":"npm run lint","prepush":"npm run test:unit"},"files":["dist","tonic-example.js"],"dependencies":{"axios":"https://github.com/contentful/axios/archive/fix/https-via-http-proxy.tar.gz","contentful-sdk-core":"^5.0.0","lodash":"^4.17.4"},"devDependencies":{"babel-cli":"^6.7.5","babel-core":"^6.22.1","babel-eslint":"^8.0.1","babel-loader":"^7.1.1","babel-plugin-inline-replace-variables":"^1.3.1","babel-plugin-lodash":"^3.2.11","babel-plugin-rewire":"^1.0.0","babel-plugin-transform-object-rest-spread":"^6.23.0","babel-preset-env":"^1.6.0","babel-preset-es2015":"^6.6.0","babel-register":"^6.7.2","babel-template":"^6.22.0","babel-types":"^6.22.0","babili-webpack-plugin":"^0.1.2","blue-tape":"^1.0.0","bundlesize":"^0.15.3","contentful-sdk-jsdoc":"^2.2.0","core-js":"^2.5.1","coveralls":"^3.0.0","cz-conventional-changelog":"^2.0.0","eslint":"^4.2.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.7.0","eslint-plugin-node":"^5.1.0","eslint-plugin-promise":"^3.4.2","eslint-plugin-standard":"^3.0.1","husky":"^0.14.3","in-publish":"^2.0.0","istanbul":"^1.0.0-alpha.2","jsdoc":"^3.4.0","json":"^9.0.3","karma":"^1.4.1","karma-babel-preprocessor":"^7.0.0","karma-chrome-launcher":"^2.0.0","karma-firefox-launcher":"^1.0.1","karma-sauce-launcher":"^1.1.0","karma-tap":"^3.1.1","karma-webpack":"^2.0.2","lodash-webpack-plugin":"^0.11.4","mkdirp":"^0.5.1","require-all":"^2.2.0","rimraf":"^2.6.0","selenium-webdriver":"^3.5.0","semantic-release":"^8.2.0","sinon":"^4.0.1","tap-spec":"^4.1.1","trevor":"^2.2.0","webpack":"^3.2.0","webpack-bundle-analyzer":"^2.8.3"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"bundlesize":[{"path":"./dist/contentful-management.browser.js","maxSize":"48Kb"},{"path":"./dist/contentful-management.browser.min.js","maxSize":"16Kb"},{"path":"./dist/contentful-management.legacy.js","maxSize":"61Kb"},{"path":"./dist/contentful-management.legacy.min.js","maxSize":"22Kb"},{"path":"./dist/contentful-management.node.js","maxSize":"57Kb"},{"path":"./dist/contentful-management.node.min.js","maxSize":"20Kb"}]} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
HTTP dependency
Supply chain riskContains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.
Found 1 instance in 1 package
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
2418467
29980
20
8