contentful-management 6.3.1 → 6.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -2
- package/dist/contentful-management.browser.js +1 -1
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.legacy.js +1 -1
- package/dist/contentful-management.legacy.js.map +1 -1
- package/dist/contentful-management.legacy.min.js +1 -1
- package/dist/contentful-management.node.js +1 -1
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/create-cma-http-client.js +1 -1
- package/dist/typings/entities/role.d.ts +2 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.contentfulManagement=e():t.contentfulManagement=e()}(window,(function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(e){return t[e]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=35)}([function(t,e,n){"use strict";(function(t){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?o(Object(e),!0).forEach((function(n){r(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function c(){return void 0!==t&&!t.browser}function s(){return t.versions&&t.versions.node?"v".concat(t.versions.node):t.version}function f(t,e){var n=i({},{insecure:!1,retryOnError:!0,logHandler:function(t,e){if("error"===t&&e){var n=[e.name,e.message].filter((function(t){return t})).join(" - ");return console.error("[error] ".concat(n)),void console.error(e)}console.log("[".concat(t,"] ").concat(e))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,proxy:!1,basePath:"",adapter:!1,maxContentLength:1073741824},{},e);if(!n.accessToken){var r=new TypeError("Expected parameter accessToken");throw n.logHandler("error",r),r}var o=n.insecure?"http":"https",u=n.space?"".concat(n.space,"/"):"",p=n.defaultHostname,l=n.insecure?80:443;if(n.host&&P.test(n.host)){var d=n.host.split(":");if(2===d.length){var h=a(d,2);p=h[0],l=h[1]}else p=d[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var y=e.baseURL||"".concat(o,"://").concat(p,":").concat(l).concat(n.basePath,"/spaces/").concat(u);n.headers.Authorization||(n.headers.Authorization="Bearer "+n.accessToken),c()&&(n.headers["user-agent"]="node.js/"+s(),n.headers["Accept-Encoding"]="gzip");var b={baseURL:y,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:g.a.stringify,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,maxContentLength:n.maxContentLength,logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError},m=t.create(b);return m.httpClientParams=e,m.cloneWithNewParams=function(n){return f(t,i({},v()(e),{},n))},function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:5,n=t.defaults,r=n.responseLogger,o=void 0===r?function(){}:r,i=n.requestLogger,a=void 0===i?function(){}:i;t.interceptors.request.use((function(t){return a(t),t}),(function(t){return Promise.reject(t)})),t.interceptors.response.use((function(t){return o(t),t}),(function(n){var r=Math.pow,o=n.response,i=n.config;if(!i||!t.defaults.retryOnError)return Promise.reject(n);var a=null,u=0;if(o)_=0;else{if(a="Connection",++_>e)return n.attempts=_,Promise.reject(n);u=r(Math.SQRT2,_),o={}}if(500<=o.status&&600>o.status){a="Server ".concat(o.status);var c=(o.headers||{})["x-contentful-request-id"]||null;if(x[c]=x[c]||0,x[c]++,x[c]>e||!c)return n.attempts=x[c],Promise.reject(n);u=r(Math.SQRT2,x[c])}else 429===o.status&&(a="Rate limit",o.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(u=o.headers["x-contentful-ratelimit-reset"]));return a?(u=Math.floor(1e3*u+200*Math.random()+500),t.defaults.logHandler("warning","".concat(a," error occurred. Waiting for ").concat(u," ms before retrying...")),delete i.httpAgent,delete i.httpsAgent,function(t){return new Promise((function(e){setTimeout(e,t)}))}(u).then((function(){return t(i)}))):Promise.reject(n)}))}(m,n.retryLimit),m}function p(t){var e=t.query,n={};return delete e.resolveLinks,n.params=v()(e),n}function l(t){return function t(e){return Object.keys(e).forEach((function(n){var r=e[n];O()(r)&&t(r)})),Object.freeze(e)}(t.sys||{}),t}function d(){if(!window)return null;var t=window.navigator.userAgent,e=window.navigator.platform,n=null;return-1===["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(e)?-1===["iPhone","iPad","iPod"].indexOf(e)?-1===["Win32","Win64","Windows","WinCE"].indexOf(e)?/Android/.test(t)?n="Android":/Linux/.test(e)&&(n="Linux"):n="Windows":n="iOS":n="macOS",n}function h(t,e,n,r){var o=[];e&&o.push("app ".concat(e)),n&&o.push("integration ".concat(n)),r&&o.push("feature "+r),o.push("sdk ".concat(t));var i=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(i=d(),o.push("platform ReactNative")):c()?(i=function(){var t=Object(j.platform)()||"linux",e=Object(j.release)()||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return t in n?"".concat(n[t]||"Linux","/").concat(e):null}(),o.push("platform node.js/".concat(s()))):(i=d(),o.push("platform browser"))}catch(e){i=null}return i&&o.push("os ".concat(i)),"".concat(o.filter((function(t){return""!==t})).join("; "),";")}function y(t){return Object.defineProperty(t,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return v()(this)}})}n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return y}));var b=n(1),v=n.n(b),m=n(33),g=n.n(m),w=n(3),O=n.n(w),j=n(12),x=(n.n(j),{}),_=0,P=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/}).call(this,n(14))},function(t,e,n){var r=n(36);t.exports=function(t){return r(t,5)}},function(t,e,n){"use strict";function r(t){return"[object Array]"===f.call(t)}function o(t){return void 0===t}function i(t){return null!==t&&"object"==typeof t}function a(t){if("[object Object]"!==f.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===f.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),r(t))for(var n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var s=n(25),f=Object.prototype.toString;t.exports={isArray:r,isArrayBuffer:function(t){return"[object ArrayBuffer]"===f.call(t)},isBuffer:function(t){return null!==t&&!o(t)&&null!==t.constructor&&!o(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:i,isPlainObject:a,isUndefined:o,isDate:function(t){return"[object Date]"===f.call(t)},isFile:function(t){return"[object File]"===f.call(t)},isBlob:function(t){return"[object Blob]"===f.call(t)},isFunction:u,isStream:function(t){return i(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function t(){function e(e,o){n[o]=a(n[o])&&a(e)?t(n[o],e):a(e)?t({},e):r(e)?e.slice():e}for(var n={},o=0,i=arguments.length;o<i;o++)c(arguments[o],e);return n},extend:function(t,e,n){return c(e,(function(e,r){t[r]=n&&"function"==typeof e?s(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,n){var r=n(88),o=n(23),i=n(89),a=Function.prototype,u=Object.prototype,c=a.toString,s=u.hasOwnProperty,f=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(38),i=n(39),a=n(40),u=n(41),c=n(42);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){var r=n(15);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(9)(Object,"create");t.exports=r},function(t,e,n){var r=n(59);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(18),o=n(19);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var u=-1,c=e.length;++u<c;){var s=e[u],f=i?i(n[s],t[s],s,n,t):void 0;void 0===f&&(f=t[s]),a?o(n,s,f):r(n,s,f)}return n}},function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t){"use strict";var e=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var t=[],e=0;256>e;++e)t.push("%"+((16>e?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t){for(;1<t.length;){var e=t.pop(),r=e.obj[e.prop];if(n(r)){for(var o=[],i=0;i<r.length;++i)void 0!==r[i]&&o.push(r[i]);e.obj[e.prop]=o}}},i=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],a=i.obj[i.prop],u=Object.keys(a),c=0;c<u.length;++c){var s=u[c],f=a[s];"object"==typeof f&&null!==f&&-1===n.indexOf(f)&&(e.push({obj:a,prop:s}),n.push(f))}return o(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(t,e,n){if(0===t.length)return t;var o=t;if("symbol"==typeof t?o=Symbol.prototype.toString.call(t):"string"!=typeof t&&(o=t+""),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var i,a="",u=0;u<o.length;++u)45===(i=o.charCodeAt(u))||46===i||95===i||126===i||48<=i&&57>=i||65<=i&&90>=i||97<=i&&122>=i?a+=o.charAt(u):128>i?a+=r[i]:2048>i?a+=r[192|i>>6]+r[128|63&i]:55296>i||57344<=i?a+=r[224|i>>12]+r[128|63&i>>6]+r[128|63&i]:(u+=1,i=65536+((1023&i)<<10|1023&o.charCodeAt(u)),a+=r[240|i>>18]+r[128|63&i>>12]+r[128|63&i>>6]+r[128|63&i]);return a},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(n(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(r,o,a){if(!o)return r;if("object"!=typeof o){if(n(r))r.push(o);else{if(!r||"object"!=typeof r)return[r,o];(a&&(a.plainObjects||a.allowPrototypes)||!e.call(Object.prototype,o))&&(r[o]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(o);var u=r;return n(r)&&!n(o)&&(u=i(r,a)),n(r)&&n(o)?(o.forEach((function(n,o){if(e.call(r,o)){var i=r[o];i&&"object"==typeof i&&n&&"object"==typeof n?r[o]=t(i,n,a):r.push(n)}else r[o]=n})),r):Object.keys(o).reduce((function(n,r){var i=o[r];return n[r]=e.call(n,r)?t(n[r],i,a):i,n}),u)}}},function(){},function(t,e,n){var r=n(90);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},function(t){function e(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function r(t){if(c===setTimeout)return setTimeout(t,0);if((c===e||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function o(){d&&p&&(d=!1,p.length?l=p.concat(l):h=-1,l.length&&i())}function i(){if(!d){var t=r(o);d=!0;for(var e=l.length;e;){for(p=l,l=[];++h<e;)p&&p[h].run();h=-1,e=l.length}p=null,d=!1,function(t){if(s===clearTimeout)return clearTimeout(t);if((s===n||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(t);try{s(t)}catch(e){try{return s.call(null,t)}catch(e){return s.call(this,t)}}}(t)}}function a(t,e){this.fun=t,this.array=e}function u(){}var c,s,f=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:e}catch(t){c=e}try{s="function"==typeof clearTimeout?clearTimeout:n}catch(t){s=n}}();var p,l=[],d=!1,h=-1;f.nextTick=function(t){var e=Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new a(t,e)),1!==l.length||d||r(i)},a.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(){return[]},f.binding=function(){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(9)(n(17),"Map");t.exports=r},function(t,e,n){var r=n(48),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e,n){var r=n(19),o=n(15),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(64);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(10)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(11),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return t+""}}},a)},function(t){"use strict";t.exports=function(t,e){return function(){for(var n=Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(2);t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(o.isURLSearchParams(e))i=e.toString();else{var a=[];o.forEach(e,(function(t,e){null==t||(o.isArray(t)?e+="[]":t=[t],o.forEach(t,(function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))})))})),i=a.join("&")}if(i){var u=t.indexOf("#");-1!==u&&(t=t.slice(0,u)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){function r(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o=n(2),i=n(96),a={"Content-Type":"application/x-www-form-urlencoded"},u={adapter:function(){var t;return"undefined"==typeof XMLHttpRequest?void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(t=n(29)):t=n(29),t}(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(r(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(r(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return 200<=t&&300>t},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),o.forEach(["post","put","patch"],(function(t){u.headers[t]=o.merge(a)})),t.exports=u}).call(this,n(14))},function(t,e,n){"use strict";var r=n(2),o=n(97),i=n(99),a=n(26),u=n(100),c=n(103),s=n(104),f=n(30);t.exports=function(t){return new Promise((function(e,n){var p=t.data,l=t.headers;r.isFormData(p)&&delete l["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.Authorization="Basic "+btoa(h+":"+y)}var b=u(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),a(b,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?c(d.getAllResponseHeaders()):null,i={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:t,request:d};o(e,n,i),d=null}},d.onabort=function(){d&&(n(f("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(f("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(f(e,t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=(t.withCredentials||s(b))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;v&&(l[t.xsrfHeaderName]=v)}if("setRequestHeader"in d&&r.forEach(l,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete l[e]:d.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(n){if("json"!==t.responseType)throw n}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),n(t),d=null)})),p||(p=null),d.send(p)}))}},function(t,e,n){"use strict";var r=n(98);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){function n(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function o(o){r.isUndefined(e[o])?!r.isUndefined(t[o])&&(i[o]=n(void 0,t[o])):i[o]=n(t[o],e[o])}e=e||{};var i={},a=["url","method","data"],u=["headers","auth","proxy","params"],c=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];r.forEach(a,(function(t){r.isUndefined(e[t])||(i[t]=n(void 0,e[t]))})),r.forEach(u,o),r.forEach(c,(function(o){r.isUndefined(e[o])?!r.isUndefined(t[o])&&(i[o]=n(void 0,t[o])):i[o]=n(void 0,e[o])})),r.forEach(s,(function(r){r in e?i[r]=n(t[r],e[r]):r in t&&(i[r]=n(void 0,t[r]))}));var f=a.concat(u).concat(c).concat(s),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return r.forEach(p,o),i}},function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},function(t,e,n){"use strict";var r=n(86),o=n(87),i=n(24);t.exports={formats:i,parse:o,stringify:r}},function(t,e,n){t.exports=n(91)},function(t,e,n){t.exports=n(107)},function(t,e,n){var r=n(37),o=n(63),i=n(18),a=n(65),u=n(66),c=n(67),s=n(69),f=n(70),p=n(72),l=n(74),d=n(75),h=n(76),y=n(77),b=n(78),v=n(79),m=n(82),g=n(83),w=n(84),O=n(22),j=n(85),x=n(20),_=n(21),P=1,C=2,A=4,E="[object Arguments]",T="[object Function]",S="[object GeneratorFunction]",U="[object Object]",k={};k[E]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[U]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[T]=k["[object WeakMap]"]=!1,t.exports=function t(e,n,M,L,R,D){var z,N=n&P,I=n&C;if(M&&(z=R?M(e,L,R,D):M(e)),void 0!==z)return z;if(!O(e))return e;var q=m(e);if(q){if(z=y(e),!N)return s(e,z)}else{var F=h(e),W=F==T||F==S;if(g(e))return c(e,N);if(F==U||F==E||W&&!R){if(z=I||W?{}:v(e),!N)return I?p(e,u(z,e)):f(e,a(z,e))}else{if(!k[F])return R?e:{};z=b(e,F,N)}}D||(D=new r);var B=D.get(e);if(B)return B;D.set(e,z),j(e)?e.forEach((function(r){z.add(t(r,n,M,r,e,D))})):w(e)&&e.forEach((function(r,o){z.set(o,t(r,n,M,o,e,D))}));var V=q?void 0:(n&A?I?d:l:I?_:x)(e);return o(V||e,(function(r,o){V&&(r=e[o=r]),i(z,o,t(r,n,M,o,e,D))})),z}},function(t,e,n){function r(t){var e=this.__data__=new o(t);this.size=e.size}var o=n(4),i=n(43),a=n(44),u=n(45),c=n(46),s=n(47);r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=u,r.prototype.has=c,r.prototype.set=s,t.exports=r},function(t){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(5),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(0>n)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(5);t.exports=function(t){var e=this.__data__,n=r(e,t);return 0>n?void 0:e[n][1]}},function(t,e,n){var r=n(5);t.exports=function(t){return-1<r(this.__data__,t)}},function(t,e,n){var r=n(5);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return 0>o?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(4);t.exports=function(){this.__data__=new r,this.size=0}},function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t){t.exports=function(t){return this.__data__.get(t)}},function(t){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(4),o=n(16),i=n(50);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(49))},function(t){var e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(51),i=n(58),a=n(60),u=n(61),c=n(62);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){var r=n(52),o=n(4),i=n(16);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(53),i=n(54),a=n(55),u=n(56),c=n(57);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){var r=n(6);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(6),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(6),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(6);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(7);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(7);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(7);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(7);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(9),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){var r=n(8),o=n(20);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(8),o=n(21);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){(function(t){var r=n(17),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(68)(t))},function(t){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],!t.children&&(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(8),o=n(71);t.exports=function(t,e){return r(t,o(t),e)}},function(t){t.exports=function(){return[]}},function(t,e,n){var r=n(8),o=n(73);t.exports=function(t,e){return r(t,o(t),e)}},function(t){t.exports=function(){return[]}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t){t.exports=function(t){return t}},function(t,e,n){var r=n(80),o=n(23),i=n(81);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e,n){var r=n(22),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t){t.exports=function(){return!1}},function(t){var e=Array.isArray;t.exports=e},function(t){t.exports=function(){return!1}},function(t){t.exports=function(){return!1}},function(t){t.exports=function(){return!1}},function(t,e,n){"use strict";var r=n(11),o=n(24),i=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,s=function(t,e){c.apply(t,u(e)?e:[e])},f=Date.prototype.toISOString,p=o.default,l={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,n,o,i,a,c,f,p,d,h,y,b,v){var m=e;if("function"==typeof f?m=f(n,m):m instanceof Date?m=h(m):"comma"===o&&u(m)&&(m=r.maybeMap(m,(function(t){return t instanceof Date?h(t):t})).join(",")),null===m){if(i)return c&&!b?c(n,l.encoder,v,"key"):n;m=""}if(function(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"symbol"==typeof t||"bigint"==typeof t}(m)||r.isBuffer(m))return c?[y(b?n:c(n,l.encoder,v,"key"))+"="+y(c(m,l.encoder,v,"value"))]:[y(n)+"="+y(m+"")];var g,w=[];if(void 0===m)return w;if(u(f))g=f;else{var O=Object.keys(m);g=p?O.sort(p):O}for(var j=0;j<g.length;++j){var x=g[j],_=m[x];if(!a||null!==_){var P=u(m)?"function"==typeof o?o(n,x):n:n+(d?"."+x:"["+x+"]");s(w,t(_,P,o,i,a,c,f,p,d,h,y,b,v))}}return w},h=function(t){if(!t)return l;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||l.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==t.format){if(!i.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],a=l.filter;return("function"==typeof t.filter||u(t.filter))&&(a=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:l.addQueryPrefix,allowDots:void 0===t.allowDots?l.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:l.charsetSentinel,delimiter:void 0===t.delimiter?l.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:l.encode,encoder:"function"==typeof t.encoder?t.encoder:l.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:l.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:l.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:l.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:l.strictNullHandling}};t.exports=function(t,e){var n,r=t,o=h(e);"function"==typeof o.filter?r=(0,o.filter)("",r):u(o.filter)&&(n=o.filter);var i=[];if("object"!=typeof r||null===r)return"";var c=e&&e.arrayFormat in a?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices",f=a[c];n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var p,l=0;l<n.length;++l)p=n[l],(!o.skipNulls||null!==r[p])&&s(i,d(r[p],p,f,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset));var y=i.join(o.delimiter),b=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),0<y.length?b+y:""}},function(t,e,n){"use strict";var r=n(11),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&-1<t.indexOf(",")?t.split(","):t},s=function(t,e){var n,s={},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,l=f.split(e.delimiter,p),d=-1,h=e.charset;if(e.charsetSentinel)for(n=0;n<l.length;++n)0===l[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[n]?h="utf-8":"utf8=%26%2310003%3B"===l[n]&&(h="iso-8859-1"),d=n,n=l.length);for(n=0;n<l.length;++n)if(n!==d){var y,b,v=l[n],m=v.indexOf("]="),g=-1===m?v.indexOf("="):m+1;-1===g?(y=e.decoder(v,a.decoder,h,"key"),b=e.strictNullHandling?null:""):(y=e.decoder(v.slice(0,g),a.decoder,h,"key"),b=r.maybeMap(c(v.slice(g+1),e),(function(t){return e.decoder(t,a.decoder,h,"value")}))),b&&e.interpretNumericEntities&&"iso-8859-1"===h&&(b=u(b)),-1<v.indexOf("[]=")&&(b=i(b)?[b]:b),s[y]=o.call(s,y)?r.combine(s[y],b):b}return s},f=function(t,e,n,r){for(var o=r?e:c(e,n),i=t.length-1;0<=i;--i){var a,u=t[i];if("[]"===u&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,f=parseInt(s,10);n.parseArrays||""!==s?!isNaN(f)&&u!==s&&f+""===s&&0<=f&&n.parseArrays&&f<=n.arrayLimit?(a=[])[f]=o:a[s]=o:a={0:o}}o=a}return o},p=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,u=0<n.depth&&/(\[[^[\]]*])/.exec(i),c=u?i.slice(0,u.index):i,s=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;s.push(c)}for(var p=0;0<n.depth&&null!==(u=a.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(u[1])}return u&&s.push("["+i.slice(u.index)+"]"),f(s,e,n,r)}},l=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}};t.exports=function(t,e){var n=l(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof t?s(t,n):t,i=n.plainObjects?Object.create(null):{},a=Object.keys(o),u=0;u<a.length;++u){var c=a[u],f=p(c,o[c],n,"string"==typeof t);i=r.merge(i,f,n)}return r.compact(i)}},function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){"use strict";function r(t){var e=new a(t),n=i(a.prototype.request,e);return o.extend(n,a.prototype,e),o.extend(n,e),n}var o=n(2),i=n(25),a=n(92),u=n(31),c=r(n(28));c.Axios=a,c.create=function(t){return r(u(c.defaults,t))},c.Cancel=n(32),c.CancelToken=n(105),c.isCancel=n(27),c.all=function(t){return Promise.all(t)},c.spread=n(106),t.exports=c,t.exports.default=c},function(t,e,n){"use strict";function r(t){this.defaults=t,this.interceptors={request:new a,response:new a}}var o=n(2),i=n(26),a=n(93),u=n(94),c=n(31);r.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=c(this.defaults,t)).method=t.method?t.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var e=[u,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},r.prototype.getUri=function(t){return t=c(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(t){r.prototype[t]=function(e,n){return this.request(c(n||{},{method:t,url:e,data:(n||{}).data}))}})),o.forEach(["post","put","patch"],(function(t){r.prototype[t]=function(e,n,r){return this.request(c(r||{},{method:t,url:e,data:n}))}})),t.exports=r},function(t,e,n){"use strict";function r(){this.handlers=[]}var o=n(2);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){o.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},function(t,e,n){"use strict";function r(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var o=n(2),i=n(95),a=n(27),u=n(28);t.exports=function(t){return r(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||u.adapter)(t).then((function(e){return r(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(r(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(30);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(2);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var u=[];u.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(101),o=n(102);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(2),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&0<=o.indexOf(e))return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(2);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(o.setAttribute("href",e),e=o.href),o.setAttribute("href",e),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return e=t(window.location.href),function(n){var o=r.isString(n)?t(n):n;return o.protocol===e.protocol&&o.host===e.host}}():function(){return!0}},function(t,e,n){"use strict";function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new o(t),e(n.reason))}))}var o=n(32);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t;return{token:new r((function(e){t=e})),cancel:t}},t.exports=r},function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";function r(t){var e,n=t.config,r=t.response;if(n.headers&&n.headers.Authorization){var o="...".concat(n.headers.Authorization.substr(-5));n.headers.Authorization="Bearer ".concat(o)}if(!Zt()(r)||!Zt()(n))throw t;var i=null==r?void 0:r.data,a={status:null==r?void 0:r.status,statusText:null==r?void 0:r.statusText,message:"",details:{}};Zt()(n)&&(a.request={url:n.url,headers:n.headers,method:n.method,payloadData:n.data}),i&&Zt()(i)&&("requestId"in i&&(a.requestId=i.requestId||"UNKNOWN"),"message"in i&&(a.message=i.message||""),"details"in i&&(a.details=i.details||{}),"sys"in i&&"id"in i.sys&&(e=i.sys.id));var u=new Error;throw u.name=e&&"Unknown"!==e?e:"".concat(null==r?void 0:r.status," ").concat(null==r?void 0:r.statusText),u.message=JSON.stringify(a,null," "),u}function o(t,e){return Object.keys(e).reduce((function(t,n){return Object.defineProperty(t,n,{enumerable:!1,configurable:!0,writable:!1,value:e[n]}),t}),t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?i(Object(e),!0).forEach((function(n){u(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=t.http,n=t.entityPath,o=t.wrapperMethod,i=t.headers;return function(){var t=this,u=t.toPlainObject(),c=ee()(u);return delete c.sys,e.put(n+"/"+t.sys.id,c,{headers:a({"X-Contentful-Version":t.sys.version||0},i)}).then((function(t){return o(e,t.data)}),r)}}function s(t){var e=t.http,n=t.entityPath;return function(){return e.delete(n+"/"+this.sys.id).then((function(){}),r)}}function f(t){var e=t.http,n=t.entityPath,o=t.wrapperMethod;return function(){return e.put(n+"/"+this.sys.id+"/published",null,{headers:{"X-Contentful-Version":this.sys.version}}).then((function(t){return o(e,t.data)}),r)}}function p(t){var e=t.http,n=t.entityPath,o=t.wrapperMethod;return function(){return e.delete(n+"/"+this.sys.id+"/published").then((function(t){return o(e,t.data)}),r)}}function l(t){var e=t.http,n=t.entityPath,o=t.wrapperMethod;return function(){return e.put(n+"/"+this.sys.id+"/archived").then((function(t){return o(e,t.data)}),r)}}function d(t){var e=t.http,n=t.entityPath,o=t.wrapperMethod;return function(){return e.delete(n+"/"+this.sys.id+"/archived").then((function(t){return o(e,t.data)}),r)}}function h(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:function(){var e=this;return"accessToken"in e&&delete e.accessToken,"preview_api_key"in e&&delete e.preview_api_key,"policies"in e&&delete e.policies,c({http:t,entityPath:"api_keys",wrapperMethod:h}).call(e)},delete:s({http:t,entityPath:"api_keys"})}}(t));return Object(Gt.c)(n)}function y(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:c({http:t,entityPath:ie,wrapperMethod:y}),delete:s({http:t,entityPath:ie})}}(t));return Object(Gt.c)(n)}function b(t){return{update:function(){var e=this.toPlainObject(),n=ee()(e);return delete n.sys,t.put("app_installations/".concat(this.sys.appDefinition.sys.id),n).then((function(e){return v(t,e.data)}),r)},delete:function(){var e=this.toPlainObject();return t.delete("app_installations/".concat(e.sys.appDefinition.sys.id)).then((function(){}),r)}}}function v(t,e){var n=o(Object(Gt.e)(ee()(e)),b(t));return Object(Gt.c)(n)}function m(t){function e(n){var o=n.resolve,i=n.reject,a=n.id,u=n.locale,c=n.processingCheckWait,s=void 0===c?ce:c,f=n.processingCheckRetries,p=void 0===f?se:f,l=n.checkCount,d=void 0===l?0:l;t.get("assets/"+a).then((function(e){return g(t,e.data)}),r).then((function(t){if(t.fields.file[u].url)o(t);else if(d===p){var n=new Error;n.name="AssetProcessingTimeout",n.message="Asset is taking longer then expected to process.",i(n)}else d++,setTimeout((function(){return e({resolve:o,reject:i,id:a,locale:u,checkCount:d,processingCheckWait:s,processingCheckRetries:p})}),s)}))}function n(n){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=o.processingCheckWait,a=o.processingCheckRetries,u=this.sys.id;return t.put("assets/"+this.sys.id+"/files/"+n+"/process",null,{headers:{"X-Contentful-Version":this.sys.version}}).then((function(){return new Promise((function(t,r){return e({resolve:t,reject:r,id:u,locale:n,processingCheckWait:i,processingCheckRetries:a})}))}),r)}return{update:c({http:t,entityPath:"assets",wrapperMethod:g}),delete:s({http:t,entityPath:"assets"}),publish:f({http:t,entityPath:"assets",wrapperMethod:g}),unpublish:p({http:t,entityPath:"assets",wrapperMethod:g}),archive:l({http:t,entityPath:"assets",wrapperMethod:g}),unarchive:d({http:t,entityPath:"assets",wrapperMethod:g}),processForLocale:n,processForAllLocales:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=this,r=Object.keys(this.fields.file||{}),o=void 0,i=r.map((function(r){return n.call(e,r,t).then((function(t){o=t}))}));return Promise.all(i).then((function(){return o}))},isPublished:function(){return!!this.sys.publishedVersion},isUpdated:function(){var t=this;return!!(t.sys.publishedVersion&&t.sys.version>t.sys.publishedVersion+1)},isDraft:function(){return!this.sys.publishedVersion},isArchived:function(){return!!this.sys.archivedVersion}}}function g(t,e){var n=o(Object(Gt.e)(ee()(e)),m(t));return Object(Gt.c)(n)}function w(t){return{update:function(){var e=this,n=e.toPlainObject(),o=ee()(n);return delete o.sys,t.put("content_types/".concat(e.sys.contentType.sys.id,"/editor_interface"),o,{headers:{"X-Contentful-Version":e.sys.version}}).then((function(e){return O(t,e.data)}),r)},getControlForField:function(t){var e=this.controls.filter((function(e){return e.fieldId===t}));return e&&0<e.length?e[0]:null}}}function O(t,e){var n=o(Object(Gt.e)(ee()(e)),w(t));return Object(Gt.c)(n)}function j(t,e){var n=o(Object(Gt.e)(ee()(e)),{});return Object(Gt.c)(n)}function x(t){return{update:c({http:t,entityPath:"content_types",wrapperMethod:_}),delete:s({http:t,entityPath:"content_types"}),publish:f({http:t,entityPath:"content_types",wrapperMethod:_}),unpublish:p({http:t,entityPath:"content_types",wrapperMethod:_}),getEditorInterface:function(){return t.get("content_types/"+this.sys.id+"/editor_interface").then((function(e){return O(t,e.data)}),r)},getSnapshots:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return t.get("content_types/".concat(this.sys.id,"/snapshots"),Object(Gt.b)({query:e})).then((function(e){return pe(t,e.data)}),r)},getSnapshot:function(e){return t.get("content_types/".concat(this.sys.id,"/snapshots/").concat(e)).then((function(t){return j(0,t.data)}),r)},isPublished:function(){return!!this.sys.publishedVersion},isUpdated:function(){var t=this;return!!(t.sys.publishedVersion&&t.sys.version>t.sys.publishedVersion+1)},isDraft:function(){return!this.sys.publishedVersion},omitAndDeleteField:function(t){return le(this,t,"omitted",!0).then((function(e){return le(e,t,"deleted",!0)})).catch(r)}}}function _(t,e){var n=o(Object(Gt.e)(ee()(e)),x(t));return Object(Gt.c)(n)}function P(t){return{update:c({http:t,entityPath:"entries",wrapperMethod:C}),delete:s({http:t,entityPath:"entries"}),publish:f({http:t,entityPath:"entries",wrapperMethod:C}),unpublish:p({http:t,entityPath:"entries",wrapperMethod:C}),archive:l({http:t,entityPath:"entries",wrapperMethod:C}),unarchive:d({http:t,entityPath:"entries",wrapperMethod:C}),getSnapshots:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return t.get("entries/".concat(this.sys.id,"/snapshots"),Object(Gt.b)({query:e})).then((function(e){return pe(t,e.data)}),r)},getSnapshot:function(e){return t.get("entries/".concat(this.sys.id,"/snapshots/").concat(e)).then((function(t){return j(0,t.data)}),r)},isPublished:function(){return!!this.sys.publishedVersion},isUpdated:function(){var t=this;return!!(t.sys.publishedVersion&&t.sys.version>t.sys.publishedVersion+1)},isDraft:function(){return!this.sys.publishedVersion},isArchived:function(){return!!this.sys.archivedVersion}}}function C(t,e){var n=o(Object(Gt.e)(ee()(e)),P(t));return Object(Gt.c)(n)}function A(t){return function(){return t.delete("tags/"+this.sys.id,re(this.sys.version)).then((function(){}),r)}}function E(t){return function(){var e=this;return t.put("tags/"+e.sys.id,{name:e.name,sys:{id:e.sys.id}},re(e.sys.version)).then((function(e){return S(t,e.data)}),r)}}function T(t){return{update:E(t),delete:A(t)}}function S(t,e){var n=o(Object(Gt.e)(ee()(e)),T(t));return Object(Gt.c)(n)}function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?U(Object(e),!0).forEach((function(n){M(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):U(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L(t){function e(t){return i.post("assets",t).then((function(t){return y(i,t.data)}),r)}function n(t){var e=t.file;return e?a.post("uploads",e,{headers:{"Content-Type":"application/octet-stream"}}).then((function(t){return j(a,t.data)})).catch(r):Promise.reject(new Error("Unable to locate a file to upload."))}function o(t){t.select&&!/sys/i.test(t.select)&&(t.select+=",sys")}var i=t.http,a=t.httpUpload,u=Ie.environment.wrapEnvironment,c=Ie.contentType,s=c.wrapContentType,f=c.wrapContentTypeCollection,p=Ie.entry,l=p.wrapEntry,d=p.wrapEntryCollection,h=Ie.asset,y=h.wrapAsset,b=h.wrapAssetCollection,v=Ie.locale,m=v.wrapLocale,g=v.wrapLocaleCollection,w=Ie.snapshot.wrapSnapshotCollection,O=Ie.editorInterface.wrapEditorInterface,j=Ie.upload.wrapUpload,x=Ie.uiExtension,_=x.wrapUiExtension,P=x.wrapUiExtensionCollection,C=Ie.appInstallation,A=C.wrapAppInstallation,E=C.wrapAppInstallationCollection;return{delete:function(){return i.delete("").then((function(){}),r)},update:function(){var t=this.toPlainObject(),e=ee()(t);return delete e.sys,i.put("",e,{headers:{"X-Contentful-Version":t.sys.version}}).then((function(t){return u(i,t.data)}),r)},getEntryFromData:function(t){return l(i,t)},getAssetFromData:function(t){return y(i,t)},getContentType:function(t){return i.get("content_types/"+t).then((function(t){return s(i,t.data)}),r)},getContentTypes:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i.get("content_types",Object(Gt.b)({query:t})).then((function(t){return f(i,t.data)}),r)},createContentType:function(t){return i.post("content_types",t).then((function(t){return s(i,t.data)}),r)},createContentTypeWithId:function(t,e){return i.put("content_types/"+t,e).then((function(t){return s(i,t.data)}),r)},getEditorInterfaceForContentType:function(t){return i.get("content_types/"+t+"/editor_interface").then((function(t){return O(i,t.data)}),r)},getEntry:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return o(e),i.get("entries/"+t,Object(Gt.b)({query:e})).then((function(t){return l(i,t.data)}),r)},getEntries:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return o(t),i.get("entries",Object(Gt.b)({query:t})).then((function(t){return d(i,t.data)}),r)},createEntry:function(t,e){return i.post("entries",e,{headers:{"X-Contentful-Content-Type":t}}).then((function(t){return l(i,t.data)}),r)},createEntryWithId:function(t,e,n){return i.put("entries/"+e,n,{headers:{"X-Contentful-Content-Type":t}}).then((function(t){return l(i,t.data)}),r)},getAsset:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return o(e),i.get("assets/"+t,Object(Gt.b)({query:e})).then((function(t){return y(i,t.data)}),r)},getAssets:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return o(t),i.get("assets",Object(Gt.b)({query:t})).then((function(t){return b(i,t.data)}),r)},createAsset:e,createAssetWithId:function(t,e){return i.put("assets/"+t,e).then((function(t){return y(i,t.data)}),r)},createAssetFromFiles:function(t){var o=t.fields.file;return Promise.all(Object.keys(o).map((function(t){var e=o[t],r=e.contentType,i=e.fileName;return n(o[t]).then((function(e){return M({},t,{contentType:r,fileName:i,uploadFrom:{sys:{type:"Link",linkType:"Upload",id:e.sys.id}}})}))}))).then((function(n){var r=n.reduce((function(t,e){return k(k({},t),e)}),{});return e(k(k({},t),{},{fields:k(k({},t.fields),{},{file:r})}))})).catch(r)},getUpload:function(t){return a.get("uploads/"+t).then((function(t){return j(i,t.data)})).catch(r)},createUpload:n,getLocale:function(t){return i.get("locales/"+t).then((function(t){return m(i,t.data)}),r)},getLocales:function(){return i.get("locales").then((function(t){return g(i,t.data)}),r)},createLocale:function(t){return i.post("locales",t).then((function(t){return m(i,t.data)}),r)},getUiExtension:function(t){return i.get("extensions/"+t).then((function(t){return _(i,t.data)}),r)},getUiExtensions:function(){return i.get("extensions").then((function(t){return P(i,t.data)}),r)},createUiExtension:function(t){return i.post("extensions",t).then((function(t){return _(i,t.data)}),r)},createUiExtensionWithId:function(t,e){return i.put("extensions/"+t,e).then((function(t){return _(i,t.data)}),r)},createAppInstallation:function(t,e){return i.put("app_installations/"+t,e).then((function(t){return A(i,t.data)}),r)},getAppInstallation:function(t){return i.get("app_installations/"+t).then((function(t){return A(i,t.data)}),r)},getAppInstallations:function(){return i.get("app_installations").then((function(t){return E(i,t.data)}),r)},getEntrySnapshots:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return i.get("entries/".concat(t,"/snapshots"),Object(Gt.b)({query:e})).then((function(t){return w(i,t.data)}),r)},getContentTypeSnapshots:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return i.get("content_types/".concat(t,"/snapshots"),Object(Gt.b)({query:e})).then((function(t){return w(i,t.data)}),r)},createTag:function(t,e){return i.put("tags/".concat(t),{name:e,sys:{type:"Tag",id:t}}).then((function(t){return S(i,t.data)}),r)},getTags:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i.get("tags",Object(Gt.b)({query:t})).then((function(t){return ye(i,t.data)}),r)},getTag:function(t){return i.get("tags/"+t).then((function(t){return S(i,t.data)}),r)}}}function R(t,e){var n=t,r=Object(Gt.e)(ee()(e)),i=n.httpClientParams,a=i.hostUpload,u=i.defaultHostnameUpload,c=o(r,L({http:n.cloneWithNewParams({baseURL:t.defaults.baseURL+"environments/"+r.sys.id}),httpUpload:n.cloneWithNewParams({space:r.sys.space.sys.id,host:a||u})}));return Object(Gt.c)(c)}function D(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:c({http:t,entityPath:"environment_aliases",wrapperMethod:D}),delete:s({http:t,entityPath:"environment_aliases"})}}(t));return Object(Gt.c)(n)}function z(t,e){delete e.internal_code;var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:function(){return delete this.default,c({http:t,entityPath:"locales",wrapperMethod:z}).call(this)},delete:s({http:t,entityPath:"locales"})}}(t));return Object(Gt.c)(n)}function N(t){var e=t.http,n=Ie.appDefinition,o=n.wrapAppDefinition,i=n.wrapAppDefinitionCollection,a=Ie.user,u=a.wrapUser,c=a.wrapUserCollection,s=Ie.organizationMembership,f=s.wrapOrganizationMembership,p=s.wrapOrganizationMembershipCollection,l=Ie.teamMembership,d=l.wrapTeamMembership,h=l.wrapTeamMembershipCollection,y=Ie.teamSpaceMembership,b=y.wrapTeamSpaceMembership,v=y.wrapTeamSpaceMembershipCollection,m=Ie.team,g=m.wrapTeam,w=m.wrapTeamCollection,O=Ie.spaceMembership,j=O.wrapSpaceMembership,x=O.wrapSpaceMembershipCollection,_=Ie.organizationInvitation.wrapOrganizationInvitation,P={"x-contentful-enable-alpha-feature":"organization-user-management-api"};return{getUser:function(t){return e.get("users/"+t).then((function(t){return u(e,t.data)}),r)},getUsers:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.get("users",Object(Gt.b)({query:t})).then((function(t){return c(e,t.data)}),r)},getOrganizationMembership:function(t){return e.get("organization_memberships/"+t).then((function(t){return f(e,t.data)}),r)},getOrganizationMemberships:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.get("organization_memberships",Object(Gt.b)({query:t})).then((function(t){return p(e,t.data)}),r)},createTeam:function(t){return e.post("teams",t).then((function(t){return g(e,t.data)}),r)},getTeam:function(t){return e.get("teams/"+t).then((function(t){return g(e,t.data)}),r)},getTeams:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.get("teams",Object(Gt.b)({query:t})).then((function(t){return w(e,t.data)}),r)},createTeamMembership:function(t,n){return e.post("teams/"+t+"/team_memberships",n).then((function(t){return d(e,t.data)}),r)},getTeamMembership:function(t,n){return e.get("teams/"+t+"/team_memberships/"+n).then((function(t){return d(e,t.data)}),r)},getTeamMemberships:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=we()(t,"query",{});return t.teamId?e.get("teams/"+t.teamId+"/team_memberships",Object(Gt.b)({query:n})).then((function(t){return h(e,t.data)}),r):e.get("team_memberships",Object(Gt.b)({query:n})).then((function(t){return h(e,t.data)}),r)},getTeamSpaceMemberships:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=we()(t,"query",{});return t.teamId&&(n["sys.team.sys.id"]=t.teamId),e.get("team_space_memberships",Object(Gt.b)({query:n})).then((function(t){return v(e,t.data)}),r)},getTeamSpaceMembership:function(t){return e.get("team_space_memberships/"+t).then((function(t){return b(e,t.data)}),r)},getOrganizationSpaceMembership:function(t){return e.get("space_memberships/"+t).then((function(t){return j(e,t.data)}),r)},getOrganizationSpaceMemberships:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.get("space_memberships",Object(Gt.b)({query:t})).then((function(t){return x(e,t.data)}),r)},getOrganizationInvitation:function(t){return e.get("invitations/"+t,{headers:P}).then((function(t){return _(e,t.data)}),r)},createOrganizationInvitation:function(t){return e.post("invitations",t,{headers:{"x-contentful-enable-alpha-feature":"pending-org-membership"}}).then((function(t){return _(e,t.data)}),r)},createAppDefinition:function(t){return e.post("app_definitions",t).then((function(t){return o(e,t.data)}),r)},getAppDefinitions:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.get("app_definitions",Object(Gt.b)({query:t})).then((function(t){return i(e,t.data)}),r)},getAppDefinition:function(t){return e.get("app_definitions/"+t).then((function(t){return o(e,t.data)}),r)}}}function I(t,e){var n=Object(Gt.e)(ee()(e)),r=(t.defaults.baseURL||"").replace("/spaces/","/organizations/")+n.sys.id+"/",i=o(n,N({http:t.cloneWithNewParams({baseURL:r})}));return Object(Gt.c)(i)}function q(t,e){var n=Object(Gt.e)(ee()(e));return Object(Gt.c)(n)}function F(t){return{update:function(){var e=this,n=e.toPlainObject().role;return t.put("organization_memberships/"+e.sys.id,{role:n},{headers:{"X-Contentful-Version":e.sys.version||0}}).then((function(e){return W(t,e.data)}),r)},delete:s({http:t,entityPath:"organization_memberships"})}}function W(t,e){var n=o(Object(Gt.e)(ee()(e)),F(t));return Object(Gt.c)(n)}function B(t){return{revoke:function(){var e=(t.defaults.baseURL||"").replace("/spaces/","/users/me/access_tokens");return t.put("".concat(this.sys.id,"/revoked"),null,{baseURL:e}).then((function(t){return t.data}),r)}}}function V(t,e){var n=o(Object(Gt.e)(ee()(e)),B(t));return Object(Gt.c)(n)}function H(t,e){var n=o(Object(Gt.e)(ee()(e)),{});return Object(Gt.c)(n)}function K(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:c({http:t,entityPath:"roles",wrapperMethod:K}),delete:s({http:t,entityPath:"roles"})}}(t));return Object(Gt.c)(n)}function X(t){return function(){return t.delete("scheduled_actions/"+this.sys.id).then((function(e){return $(t,e.data)}),r)}}function Q(t){return{delete:X(t)}}function $(t,e){var n=o(Object(Gt.e)(ee()(e)),Q(t));return Object(Gt.c)(n)}function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function G(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?J(Object(e),!0).forEach((function(n){Y(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):J(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function Y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Z(t){console.warn(["Deprecated: Space.".concat(t,"() will be removed in future major versions."),null,"Please migrate your code to use Environment.".concat(t,"():"),"https://contentful.github.io/contentful-management.js/contentful-management/latest/globals.html#createenvironmentapi",null].join("\n"))}function tt(){console.warn("The user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user)")}function et(t){function e(t){return i.post("assets",t).then((function(t){return m(i,t.data)}),r)}function n(t){Z("createUpload");var e=t.file;return e?a.post("uploads",e,{headers:{"Content-Type":"application/octet-stream"}}).then((function(t){return ct(a,t.data)})).catch(r):Promise.reject(new Error("Unable to locate a file to upload."))}function o(t){t.select&&!/sys/i.test(t.select)&&(t.select+=",sys")}var i=t.http,a=t.httpUpload,u=Ie.space.wrapSpace,c=Ie.environment,s=c.wrapEnvironment,f=c.wrapEnvironmentCollection,p=Ie.contentType,l=p.wrapContentType,d=p.wrapContentTypeCollection,h=Ie.entry,y=h.wrapEntry,b=h.wrapEntryCollection,v=Ie.asset,m=v.wrapAsset,g=v.wrapAssetCollection,w=Ie.locale,O=w.wrapLocale,j=w.wrapLocaleCollection,x=Ie.webhook,_=x.wrapWebhook,P=x.wrapWebhookCollection,C=Ie.role,A=C.wrapRole,E=C.wrapRoleCollection,T=Ie.user,S=T.wrapUser,U=T.wrapUserCollection,k=Ie.spaceMember,M=k.wrapSpaceMember,L=k.wrapSpaceMemberCollection,R=Ie.spaceMembership,D=R.wrapSpaceMembership,z=R.wrapSpaceMembershipCollection,N=Ie.teamSpaceMembership,I=N.wrapTeamSpaceMembership,q=N.wrapTeamSpaceMembershipCollection,F=Ie.apiKey,W=F.wrapApiKey,B=F.wrapApiKeyCollection,V=Ie.editorInterface.wrapEditorInterface,H=Ie.environmentAlias,K=H.wrapEnvironmentAlias,X=H.wrapEnvironmentAliasCollection,Q=Ie.previewApiKey,$=Q.wrapPreviewApiKey,J=Q.wrapPreviewApiKeyCollection,et=Ie.scheduledAction,nt=et.wrapScheduledAction,rt=et.wrapScheduledActionCollection,ot=Ie.snapshot.wrapSnapshotCollection,it=Ie.uiExtension,at=it.wrapUiExtension,ut=it.wrapUiExtensionCollection,ct=Ie.upload.wrapUpload;return{delete:function(){return i.delete("").then((function(){}),r)},update:function(){var t=this.toPlainObject(),e=ee()(t);return delete e.sys,i.put("",e,{headers:{"X-Contentful-Version":t.sys.version}}).then((function(t){return u(i,t.data)}),r)},getEnvironment:function(t){return i.get("environments/"+t).then((function(t){return s(i,t.data)}),r)},getEnvironments:function(){return i.get("environments").then((function(t){return f(i,t.data)}),r)},createEnvironment:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i.post("environments",t).then((function(t){return s(i,t.data)}),r)},createEnvironmentWithId:function(t,e,n){return i.put("environments/"+t,e,{headers:n?{"X-Contentful-Source-Environment":n}:{}}).then((function(t){return s(i,t.data)}),r)},getContentType:function(t){return Z("getContentType"),i.get("content_types/"+t).then((function(t){return l(i,t.data)}),r)},getContentTypes:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return Z("getContentTypes"),i.get("content_types",Object(Gt.b)({query:t})).then((function(t){return d(i,t.data)}),r)},createContentType:function(t){return Z("createContentType"),i.post("content_types",t).then((function(t){return l(i,t.data)}),r)},createContentTypeWithId:function(t,e){return Z("createContentTypeWithId"),i.put("content_types/"+t,e).then((function(t){return l(i,t.data)}),r)},getEditorInterfaceForContentType:function(t){return Z("getEditorInterfaceForContentType"),i.get("content_types/"+t+"/editor_interface").then((function(t){return V(i,t.data)}),r)},getEntry:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Z("getEntry"),o(e),i.get("entries/"+t,Object(Gt.b)({query:e})).then((function(t){return y(i,t.data)}),r)},getEntries:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return Z("getEntries"),o(t),i.get("entries",Object(Gt.b)({query:t})).then((function(t){return b(i,t.data)}),r)},createEntry:function(t,e){return Z("createEntry"),i.post("entries",e,{headers:{"X-Contentful-Content-Type":t}}).then((function(t){return y(i,t.data)}),r)},createEntryWithId:function(t,e,n){return Z("createEntryWithId"),i.put("entries/"+e,n,{headers:{"X-Contentful-Content-Type":t}}).then((function(t){return y(i,t.data)}),r)},createUpload:n,createAsset:e,getAsset:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Z("getAsset"),o(e),i.get("assets/"+t,Object(Gt.b)({query:e})).then((function(t){return m(i,t.data)}),r)},getAssets:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return Z("getAssets"),o(t),i.get("assets",Object(Gt.b)({query:t})).then((function(t){return g(i,t.data)}),r)},createAssetWithId:function(t,e){return Z("createAssetWithId"),i.put("assets/"+t,e).then((function(t){return m(i,t.data)}),r)},createAssetFromFiles:function(t){Z("createAssetFromFiles");var o=t.fields.file;return Promise.all(Object.keys(o).map((function(t){var e=o[t],r=e.contentType,i=e.fileName;return n(o[t]).then((function(e){return Y({},t,{contentType:r,fileName:i,uploadFrom:{sys:{type:"Link",linkType:"Upload",id:e.sys.id}}})}))}))).then((function(n){return t.fields.file=n.reduce((function(t,e){return G(G({},t),e)}),{}),e(t)})).catch(r)},getUpload:function(t){return Z("getUpload"),a.get("uploads/"+t).then((function(t){return ct(i,t.data)})).catch(r)},getLocale:function(t){return Z("getLocale"),i.get("locales/"+t).then((function(t){return O(i,t.data)}),r)},getLocales:function(){return Z("getLocales"),i.get("locales").then((function(t){return j(i,t.data)}),r)},createLocale:function(t){return Z("createLocale"),i.post("locales",t).then((function(t){return O(i,t.data)}),r)},getWebhook:function(t){return i.get("webhook_definitions/"+t).then((function(t){return _(i,t.data)}),r)},getWebhooks:function(){return i.get("webhook_definitions").then((function(t){return P(i,t.data)}),r)},createWebhook:function(t){return i.post("webhook_definitions",t).then((function(t){return _(i,t.data)}),r)},createWebhookWithId:function(t,e){return i.put("webhook_definitions/"+t,e).then((function(t){return _(i,t.data)}),r)},getRole:function(t){return i.get("roles/"+t).then((function(t){return A(i,t.data)}),r)},getRoles:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return o(t),i.get("roles",Object(Gt.b)({query:t})).then((function(t){return E(i,t.data)}),r)},createRole:function(t){return i.post("roles",t).then((function(t){return A(i,t.data)}),r)},createRoleWithId:function(t,e){return i.put("roles/"+t,e).then((function(t){return A(i,t.data)}),r)},getScheduledActions:function(t){return i.get("scheduled_actions",Object(Gt.b)({query:t})).then((function(t){return rt(i,t.data)}),r)},createScheduledAction:function(t){return i.post("scheduled_actions",t).then((function(t){return nt(i,t.data)}),r)},getSpaceUser:function(t){return i.get("users/"+t).then((function(t){return S(i,t.data)}),r)},getSpaceUsers:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i.get("users/",Object(Gt.b)({query:t})).then((function(t){return U(i,t.data)}),r)},getSpaceMember:function(t){return i.get("space_members/"+t).then((function(t){return M(i,t.data)}),r)},getSpaceMembers:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i.get("space_members",Object(Gt.b)({query:t})).then((function(t){return L(i,t.data)}),r)},getSpaceMembership:function(t){return tt(),i.get("space_memberships/"+t).then((function(t){return D(i,t.data)}),r)},getSpaceMemberships:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return tt(),i.get("space_memberships",Object(Gt.b)({query:t})).then((function(t){return z(i,t.data)}),r)},createSpaceMembership:function(t){return tt(),i.post("space_memberships",t).then((function(t){return D(i,t.data)}),r)},createSpaceMembershipWithId:function(t,e){return tt(),i.put("space_memberships/"+t,e).then((function(t){return D(i,t.data)}),r)},getTeamSpaceMembership:function(t){return i.get("team_space_memberships/"+t).then((function(t){return I(i,t.data)}),r)},getTeamSpaceMemberships:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i.get("team_space_memberships",Object(Gt.b)({query:t})).then((function(t){return q(i,t.data)}),r)},createTeamSpaceMembership:function(t,e){return i.post("team_space_memberships",e,{headers:{"x-contentful-team":t}}).then((function(t){return I(i,t.data)}),r)},getApiKey:function(t){return i.get("api_keys/"+t).then((function(t){return W(i,t.data)}),r)},getApiKeys:function(){return i.get("api_keys").then((function(t){return B(i,t.data)}),r)},getPreviewApiKeys:function(){return i.get("preview_api_keys").then((function(t){return J(i,t.data)}),r)},getPreviewApiKey:function(t){return i.get("preview_api_keys/"+t).then((function(t){return $(i,t.data)}),r)},createApiKey:function(t){return i.post("api_keys",t).then((function(t){return W(i,t.data)}),r)},createApiKeyWithId:function(t,e){return i.put("api_keys/"+t,e).then((function(t){return W(i,t.data)}),r)},getUiExtension:function(t){return Z("getUiExtension"),i.get("extensions/"+t).then((function(t){return at(i,t.data)}),r)},getUiExtensions:function(){return Z("getUiExtensions"),i.get("extensions").then((function(t){return ut(i,t.data)}),r)},createUiExtension:function(t){return Z("createUiExtension"),i.post("extensions",t).then((function(t){return at(i,t.data)}),r)},createUiExtensionWithId:function(t,e){return Z("createUiExtensionWithId"),i.put("extensions/"+t,e).then((function(t){return at(i,t.data)}),r)},getEntrySnapshots:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Z("getEntrySnapshots"),i.get("entries/".concat(t,"/snapshots"),Object(Gt.b)({query:e})).then((function(t){return ot(i,t.data)}),r)},getContentTypeSnapshots:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Z("getContentTypeSnapshots"),i.get("content_types/".concat(t,"/snapshots"),Object(Gt.b)({query:e})).then((function(t){return ot(i,t.data)}),r)},createEnvironmentAliasWithId:function(t,e){return i.put("environment_aliases/"+t,e).then((function(t){return K(i,t.data)}),r)},getEnvironmentAlias:function(t){return i.get("environment_aliases/"+t).then((function(t){return K(i,t.data)}),r)},getEnvironmentAliases:function(){return i.get("environment_aliases").then((function(t){return X(i,t.data)}),r)}}}function nt(t,e){var n=t,r=Object(Gt.e)(ee()(e)),i=n.httpClientParams,a=i.hostUpload,u=i.defaultHostnameUpload,c=o(r,et({http:n.cloneWithNewParams({space:r.sys.id}),httpUpload:n.cloneWithNewParams({space:r.sys.id,host:a||u})}));return Object(Gt.c)(c)}function rt(t,e){var n=Object(Gt.e)(ee()(e));return Object(Gt.c)(n)}function ot(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:c({http:t,entityPath:"space_memberships",wrapperMethod:ot}),delete:s({http:t,entityPath:"space_memberships"})}}(t));return Object(Gt.c)(n)}function it(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:c({http:t,entityPath:Se,wrapperMethod:it}),delete:s({http:t,entityPath:Se})}}(t));return Object(Gt.c)(n)}function at(t){return{update:function(){var e=this.toPlainObject(),n=e.sys.team.sys.id;return t.put("teams/"+n+"/team_memberships/"+this.sys.id,e,{headers:{"X-Contentful-Version":this.sys.version||0}}).then((function(e){return ut(t,e.data)}),r)},delete:function(){var e=this.toPlainObject().sys.team.sys.id;return t.delete("teams/"+e+"/team_memberships/"+this.sys.id).then((function(){}),r)}}}function ut(t,e){var n=o(Object(Gt.e)(ee()(e)),at(t));return Object(Gt.c)(n)}function ct(t){return{update:function(){var e=this.toPlainObject(),n=ee()(e);return delete n.sys,t.put("team_space_memberships/"+this.sys.id,n,{headers:{"X-Contentful-Version":this.sys.version||0,"x-contentful-team":this.sys.team.sys.id}}).then((function(e){return st(t,e.data)}),r)},delete:s({http:t,entityPath:"team_space_memberships"})}}function st(t,e){var n=o(Object(Gt.e)(ee()(e)),ct(t));return Object(Gt.c)(n)}function ft(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:c({http:t,entityPath:"extensions",wrapperMethod:ft}),delete:s({http:t,entityPath:"extensions"})}}(t));return Object(Gt.c)(n)}function pt(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{delete:s({http:t,entityPath:"uploads"})}}(t));return Object(Gt.c)(n)}function lt(t,e){var n=o(Object(Gt.e)(ee()(e)),{});return Object(Gt.c)(n)}function dt(t,e){var n=o(Object(Gt.e)(ee()(e)),{});return Object(Gt.c)(n)}function ht(t){return{update:c({http:t,entityPath:ze,wrapperMethod:yt}),delete:s({http:t,entityPath:ze}),getCalls:function(){return t.get("webhooks/"+this.sys.id+"/calls").then((function(t){return t.data}),r)},getCall:function(e){return t.get("webhooks/"+this.sys.id+"/calls/"+e).then((function(t){return t.data}),r)},getHealth:function(){return t.get("webhooks/"+this.sys.id+"/health").then((function(t){return t.data}),r)}}}function yt(t,e){var n=o(Object(Gt.e)(ee()(e)),ht(t));return Object(Gt.c)(n)}function bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vt(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?bt(Object(e),!0).forEach((function(n){mt(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):bt(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gt(t){return function(t){var e=t.http,n=Ie.space,o=n.wrapSpace,i=n.wrapSpaceCollection,a=Ie.user.wrapUser,u=Ie.personalAccessToken,c=u.wrapPersonalAccessToken,s=u.wrapPersonalAccessTokenCollection,f=Ie.organization,p=f.wrapOrganization,l=f.wrapOrganizationCollection,d=Ie.usage.wrapUsageCollection;return{getSpaces:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.get("",Object(Gt.b)({query:t})).then((function(t){return i(e,t.data)}),r)},getSpace:function(t){return e.get(t).then((function(t){return o(e,t.data)}),r)},createSpace:function(t,n){return e.post("",t,{headers:n?{"X-Contentful-Organization":n}:{}}).then((function(t){return o(e,t.data)}),r)},getOrganization:function(t){var n,o,i=null===(n=e.defaults)||void 0===n||null===(o=n.baseURL)||void 0===o?void 0:o.replace("/spaces/","/organizations/");return e.get("",{baseURL:i}).then((function(n){var r=n.data.items.find((function(e){return e.sys.id===t}));if(!r){var o=new Error("No organization was found with the ID ".concat(t," instead got ").concat(JSON.stringify(n)));return o.status=404,o.statusText="Not Found",Promise.reject(o)}return p(e,r)}),r)},getOrganizations:function(){var t,n,o=null===(t=e.defaults)||void 0===t||null===(n=t.baseURL)||void 0===n?void 0:n.replace("/spaces/","/organizations/");return e.get("",{baseURL:o}).then((function(t){return l(e,t.data)}),r)},getCurrentUser:function(){var t,n,o=null===(t=e.defaults)||void 0===t||null===(n=t.baseURL)||void 0===n?void 0:n.replace("/spaces/","/users/me/");return e.get("",{baseURL:o}).then((function(t){return a(e,t.data)}),r)},createPersonalAccessToken:function(t){var n,o,i=null===(n=e.defaults)||void 0===n||null===(o=n.baseURL)||void 0===o?void 0:o.replace("/spaces/","/users/me/access_tokens");return e.post("",t,{baseURL:i}).then((function(t){return c(e,t.data)}),r)},getPersonalAccessToken:function(t){var n,o,i=null===(n=e.defaults)||void 0===n||null===(o=n.baseURL)||void 0===o?void 0:o.replace("/spaces/","/users/me/access_tokens");return e.get(t,{baseURL:i}).then((function(t){return c(e,t.data)}),r)},getPersonalAccessTokens:function(){var t,n,o=null===(t=e.defaults)||void 0===t||null===(n=t.baseURL)||void 0===n?void 0:n.replace("/spaces/","/users/me/access_tokens");return e.get("",{baseURL:o}).then((function(t){return s(e,t.data)}),r)},getOrganizationUsage:function(t){var n,o,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=null===(n=e.defaults)||void 0===n||null===(o=n.baseURL)||void 0===o?void 0:o.replace("/spaces/","/organizations/".concat(t,"/organization_periodic_usages"));return e.get("",{baseURL:a,params:i}).then((function(t){return d(e,t.data)}),r)},getSpaceUsage:function(t){var n,o,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=null===(n=e.defaults)||void 0===n||null===(o=n.baseURL)||void 0===o?void 0:o.replace("/spaces/","/organizations/".concat(t,"/space_periodic_usages"));return e.get("",{baseURL:a,params:i}).then((function(t){return d(e,t.data)}),r)},rawRequest:function(t){return e(t).then((function(t){return t.data}),r)}}}({http:function(t){var e=Object(Gt.d)("contentful-management.js/".concat("6.3.1"),t.application,t.integration,t.feature);if(!(t=vt(vt({},{defaultHostname:"api.contentful.com",defaultHostnameUpload:"upload.contentful.com"}),ee()(t))).accessToken)throw new TypeError("Expected parameter accessToken");return t.headers=vt(vt({},t.headers),{"Content-Type":"application/vnd.contentful.management.v1+json","X-Contentful-User-Agent":e}),Object(Gt.a)(Fe.a,t)}(t)})}n.r(e),n.d(e,"createClient",(function(){return gt}));var wt={};n.r(wt),n.d(wt,"wrapApiKey",(function(){return h})),n.d(wt,"wrapApiKeyCollection",(function(){return oe}));var Ot={};n.r(Ot),n.d(Ot,"wrapAppDefinition",(function(){return y})),n.d(Ot,"wrapAppDefinitionCollection",(function(){return ae}));var jt={};n.r(jt),n.d(jt,"wrapAppInstallation",(function(){return v})),n.d(jt,"wrapAppInstallationCollection",(function(){return ue}));var xt={};n.r(xt),n.d(xt,"wrapAsset",(function(){return g})),n.d(xt,"wrapAssetCollection",(function(){return fe}));var _t={};n.r(_t),n.d(_t,"wrapEditorInterface",(function(){return O}));var Pt={};n.r(Pt),n.d(Pt,"wrapSnapshot",(function(){return j})),n.d(Pt,"wrapSnapshotCollection",(function(){return pe}));var Ct={};n.r(Ct),n.d(Ct,"wrapContentType",(function(){return _})),n.d(Ct,"wrapContentTypeCollection",(function(){return de}));var At={};n.r(At),n.d(At,"wrapEntry",(function(){return C})),n.d(At,"wrapEntryCollection",(function(){return he}));var Et={};n.r(Et),n.d(Et,"createDeleteTag",(function(){return A})),n.d(Et,"createUpdateTag",(function(){return E})),n.d(Et,"default",(function(){return T})),n.d(Et,"wrapTag",(function(){return S})),n.d(Et,"wrapTagCollection",(function(){return ye}));var Tt={};n.r(Tt),n.d(Tt,"wrapEnvironment",(function(){return R})),n.d(Tt,"wrapEnvironmentCollection",(function(){return be}));var St={};n.r(St),n.d(St,"wrapEnvironmentAlias",(function(){return D})),n.d(St,"wrapEnvironmentAliasCollection",(function(){return ve}));var Ut={};n.r(Ut),n.d(Ut,"wrapLocale",(function(){return z})),n.d(Ut,"wrapLocaleCollection",(function(){return me}));var kt={};n.r(kt),n.d(kt,"wrapOrganization",(function(){return I})),n.d(kt,"wrapOrganizationCollection",(function(){return Oe}));var Mt={};n.r(Mt),n.d(Mt,"wrapOrganizationInvitation",(function(){return q}));var Lt={};n.r(Lt),n.d(Lt,"wrapOrganizationMembership",(function(){return W})),n.d(Lt,"wrapOrganizationMembershipCollection",(function(){return je}));var Rt={};n.r(Rt),n.d(Rt,"wrapPersonalAccessToken",(function(){return V})),n.d(Rt,"wrapPersonalAccessTokenCollection",(function(){return xe}));var Dt={};n.r(Dt),n.d(Dt,"wrapPreviewApiKey",(function(){return H})),n.d(Dt,"wrapPreviewApiKeyCollection",(function(){return _e}));var zt={};n.r(zt),n.d(zt,"wrapRole",(function(){return K})),n.d(zt,"wrapRoleCollection",(function(){return Pe}));var Nt={};n.r(Nt),n.d(Nt,"createDeleteScheduledAction",(function(){return X})),n.d(Nt,"default",(function(){return Q})),n.d(Nt,"wrapScheduledAction",(function(){return $})),n.d(Nt,"wrapScheduledActionCollection",(function(){return Ce}));var It={};n.r(It),n.d(It,"wrapSpace",(function(){return nt})),n.d(It,"wrapSpaceCollection",(function(){return Ae}));var qt={};n.r(qt),n.d(qt,"wrapSpaceMember",(function(){return rt})),n.d(qt,"wrapSpaceMemberCollection",(function(){return Ee}));var Ft={};n.r(Ft),n.d(Ft,"wrapSpaceMembership",(function(){return ot})),n.d(Ft,"wrapSpaceMembershipCollection",(function(){return Te}));var Wt={};n.r(Wt),n.d(Wt,"wrapTeam",(function(){return it})),n.d(Wt,"wrapTeamCollection",(function(){return Ue}));var Bt={};n.r(Bt),n.d(Bt,"wrapTeamMembership",(function(){return ut})),n.d(Bt,"wrapTeamMembershipCollection",(function(){return ke}));var Vt={};n.r(Vt),n.d(Vt,"wrapTeamSpaceMembership",(function(){return st})),n.d(Vt,"wrapTeamSpaceMembershipCollection",(function(){return Me}));var Ht={};n.r(Ht),n.d(Ht,"wrapUiExtension",(function(){return ft})),n.d(Ht,"wrapUiExtensionCollection",(function(){return Le}));var Kt={};n.r(Kt),n.d(Kt,"wrapUpload",(function(){return pt}));var Xt={};n.r(Xt),n.d(Xt,"wrapUsage",(function(){return lt})),n.d(Xt,"wrapUsageCollection",(function(){return Re}));var Qt={};n.r(Qt),n.d(Qt,"wrapUser",(function(){return dt})),n.d(Qt,"wrapUserCollection",(function(){return De}));var $t={};n.r($t),n.d($t,"wrapWebhook",(function(){return yt})),n.d($t,"wrapWebhookCollection",(function(){return Ne}));var Jt,Gt=n(0),Yt=n(3),Zt=n.n(Yt),te=n(1),ee=n.n(te),ne=function(t){return function(e,n){var r=Object(Gt.e)(ee()(n));return r.items=r.items.map((function(n){return t(e,n)})),r}},re=function(t){return{headers:{"X-Contentful-Version":Number.isInteger(t)?t:0}}},oe=ne(h),ie="app_definitions",ae=ne(y),ue=ne(v),ce=3e3,se=10,fe=ne(g),pe=ne(j),le=function(t,e,n,r){var o=t.fields.find((function(t){return t.id===e}));return o?(o[n]=r,t.update()):Promise.reject(new Error("Tried to omitAndDeleteField on a nonexistent field, ".concat(e,", on the content type ").concat(t.name,".")))},de=ne(_),he=ne(C),ye=ne(S),be=ne(R),ve=ne(D),me=ne(z),ge=n(13),we=n.n(ge),Oe=ne(I),je=ne(W),xe=ne(V),_e=ne(H),Pe=ne(K);!function(t){t.scheduled="scheduled",t.inProgress="inProgress",t.succeeded="succeeded",t.failed="failed",t.canceled="canceled"}(Jt||(Jt={}));var Ce=ne($),Ae=ne(nt),Ee=ne(rt),Te=ne(ot),Se="teams",Ue=ne(it),ke=ne(ut),Me=ne(st),Le=ne(ft),Re=ne(lt),De=ne(dt),ze="webhook_definitions",Ne=ne(yt),Ie={apiKey:wt,appDefinition:Ot,appInstallation:jt,asset:xt,contentType:Ct,editorInterface:_t,entry:At,environment:Tt,environmentAlias:St,locale:Ut,organization:kt,organizationInvitation:Mt,organizationMembership:Lt,personalAccessToken:Rt,previewApiKey:Dt,role:zt,scheduledAction:Nt,snapshot:Pt,space:It,spaceMember:qt,spaceMembership:Ft,tag:Et,team:Wt,teamMembership:Bt,teamSpaceMembership:Vt,uiExtension:Ht,upload:Kt,usage:Xt,user:Qt,webhook:$t},qe=n(34),Fe=n.n(qe)}])}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.contentfulManagement=e():t.contentfulManagement=e()}(window,(function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(e){return t[e]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=35)}([function(t,e,n){"use strict";(function(t){function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?o(Object(e),!0).forEach((function(n){r(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function a(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}}(t,e)||function(t,e){if(t){if("string"==typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function c(){return void 0!==t&&!t.browser}function s(){return t.versions&&t.versions.node?"v".concat(t.versions.node):t.version}function f(t,e){var n=i({},{insecure:!1,retryOnError:!0,logHandler:function(t,e){if("error"===t&&e){var n=[e.name,e.message].filter((function(t){return t})).join(" - ");return console.error("[error] ".concat(n)),void console.error(e)}console.log("[".concat(t,"] ").concat(e))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,proxy:!1,basePath:"",adapter:!1,maxContentLength:1073741824},{},e);if(!n.accessToken){var r=new TypeError("Expected parameter accessToken");throw n.logHandler("error",r),r}var o=n.insecure?"http":"https",u=n.space?"".concat(n.space,"/"):"",p=n.defaultHostname,l=n.insecure?80:443;if(n.host&&P.test(n.host)){var d=n.host.split(":");if(2===d.length){var h=a(d,2);p=h[0],l=h[1]}else p=d[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var y=e.baseURL||"".concat(o,"://").concat(p,":").concat(l).concat(n.basePath,"/spaces/").concat(u);n.headers.Authorization||(n.headers.Authorization="Bearer "+n.accessToken),c()&&(n.headers["user-agent"]="node.js/"+s(),n.headers["Accept-Encoding"]="gzip");var b={baseURL:y,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:g.a.stringify,proxy:n.proxy,timeout:n.timeout,adapter:n.adapter,maxContentLength:n.maxContentLength,logHandler:n.logHandler,responseLogger:n.responseLogger,requestLogger:n.requestLogger,retryOnError:n.retryOnError},m=t.create(b);return m.httpClientParams=e,m.cloneWithNewParams=function(n){return f(t,i({},v()(e),{},n))},function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:5,n=t.defaults,r=n.responseLogger,o=void 0===r?function(){}:r,i=n.requestLogger,a=void 0===i?function(){}:i;t.interceptors.request.use((function(t){return a(t),t}),(function(t){return Promise.reject(t)})),t.interceptors.response.use((function(t){return o(t),t}),(function(n){var r=Math.pow,o=n.response,i=n.config;if(!i||!t.defaults.retryOnError)return Promise.reject(n);var a=null,u=0;if(o)_=0;else{if(a="Connection",++_>e)return n.attempts=_,Promise.reject(n);u=r(Math.SQRT2,_),o={}}if(500<=o.status&&600>o.status){a="Server ".concat(o.status);var c=(o.headers||{})["x-contentful-request-id"]||null;if(x[c]=x[c]||0,x[c]++,x[c]>e||!c)return n.attempts=x[c],Promise.reject(n);u=r(Math.SQRT2,x[c])}else 429===o.status&&(a="Rate limit",o.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(u=o.headers["x-contentful-ratelimit-reset"]));return a?(u=Math.floor(1e3*u+200*Math.random()+500),t.defaults.logHandler("warning","".concat(a," error occurred. Waiting for ").concat(u," ms before retrying...")),delete i.httpAgent,delete i.httpsAgent,function(t){return new Promise((function(e){setTimeout(e,t)}))}(u).then((function(){return t(i)}))):Promise.reject(n)}))}(m,n.retryLimit),m}function p(t){var e=t.query,n={};return delete e.resolveLinks,n.params=v()(e),n}function l(t){return function t(e){return Object.keys(e).forEach((function(n){var r=e[n];O()(r)&&t(r)})),Object.freeze(e)}(t.sys||{}),t}function d(){if(!window)return null;var t=window.navigator.userAgent,e=window.navigator.platform,n=null;return-1===["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(e)?-1===["iPhone","iPad","iPod"].indexOf(e)?-1===["Win32","Win64","Windows","WinCE"].indexOf(e)?/Android/.test(t)?n="Android":/Linux/.test(e)&&(n="Linux"):n="Windows":n="iOS":n="macOS",n}function h(t,e,n,r){var o=[];e&&o.push("app ".concat(e)),n&&o.push("integration ".concat(n)),r&&o.push("feature "+r),o.push("sdk ".concat(t));var i=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(i=d(),o.push("platform ReactNative")):c()?(i=function(){var t=Object(j.platform)()||"linux",e=Object(j.release)()||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return t in n?"".concat(n[t]||"Linux","/").concat(e):null}(),o.push("platform node.js/".concat(s()))):(i=d(),o.push("platform browser"))}catch(e){i=null}return i&&o.push("os ".concat(i)),"".concat(o.filter((function(t){return""!==t})).join("; "),";")}function y(t){return Object.defineProperty(t,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return v()(this)}})}n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return p})),n.d(e,"c",(function(){return l})),n.d(e,"d",(function(){return h})),n.d(e,"e",(function(){return y}));var b=n(1),v=n.n(b),m=n(33),g=n.n(m),w=n(3),O=n.n(w),j=n(12),x=(n.n(j),{}),_=0,P=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/}).call(this,n(14))},function(t,e,n){var r=n(36);t.exports=function(t){return r(t,5)}},function(t,e,n){"use strict";function r(t){return"[object Array]"===f.call(t)}function o(t){return void 0===t}function i(t){return null!==t&&"object"==typeof t}function a(t){if("[object Object]"!==f.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===f.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),r(t))for(var n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}var s=n(25),f=Object.prototype.toString;t.exports={isArray:r,isArrayBuffer:function(t){return"[object ArrayBuffer]"===f.call(t)},isBuffer:function(t){return null!==t&&!o(t)&&null!==t.constructor&&!o(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:i,isPlainObject:a,isUndefined:o,isDate:function(t){return"[object Date]"===f.call(t)},isFile:function(t){return"[object File]"===f.call(t)},isBlob:function(t){return"[object Blob]"===f.call(t)},isFunction:u,isStream:function(t){return i(t)&&u(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:c,merge:function t(){function e(e,o){n[o]=a(n[o])&&a(e)?t(n[o],e):a(e)?t({},e):r(e)?e.slice():e}for(var n={},o=0,i=arguments.length;o<i;o++)c(arguments[o],e);return n},extend:function(t,e,n){return c(e,(function(e,r){t[r]=n&&"function"==typeof e?s(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},function(t,e,n){var r=n(88),o=n(23),i=n(89),a=Function.prototype,u=Object.prototype,c=a.toString,s=u.hasOwnProperty,f=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=s.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(38),i=n(39),a=n(40),u=n(41),c=n(42);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){var r=n(15);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(9)(Object,"create");t.exports=r},function(t,e,n){var r=n(59);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(18),o=n(19);t.exports=function(t,e,n,i){var a=!n;n||(n={});for(var u=-1,c=e.length;++u<c;){var s=e[u],f=i?i(n[s],t[s],s,n,t):void 0;void 0===f&&(f=t[s]),a?o(n,s,f):r(n,s,f)}return n}},function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t){"use strict";var e=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var t=[],e=0;256>e;++e)t.push("%"+((16>e?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t){for(;1<t.length;){var e=t.pop(),r=e.obj[e.prop];if(n(r)){for(var o=[],i=0;i<r.length;++i)void 0!==r[i]&&o.push(r[i]);e.obj[e.prop]=o}}},i=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(n[r]=t[r]);return n};t.exports={arrayToObject:i,assign:function(t,e){return Object.keys(e).reduce((function(t,n){return t[n]=e[n],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r<e.length;++r)for(var i=e[r],a=i.obj[i.prop],u=Object.keys(a),c=0;c<u.length;++c){var s=u[c],f=a[s];"object"==typeof f&&null!==f&&-1===n.indexOf(f)&&(e.push({obj:a,prop:s}),n.push(f))}return o(e),t},decode:function(t,e,n){var r=t.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(t,e,n){if(0===t.length)return t;var o=t;if("symbol"==typeof t?o=Symbol.prototype.toString.call(t):"string"!=typeof t&&(o=t+""),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var i,a="",u=0;u<o.length;++u)45===(i=o.charCodeAt(u))||46===i||95===i||126===i||48<=i&&57>=i||65<=i&&90>=i||97<=i&&122>=i?a+=o.charAt(u):128>i?a+=r[i]:2048>i?a+=r[192|i>>6]+r[128|63&i]:55296>i||57344<=i?a+=r[224|i>>12]+r[128|63&i>>6]+r[128|63&i]:(u+=1,i=65536+((1023&i)<<10|1023&o.charCodeAt(u)),a+=r[240|i>>18]+r[128|63&i>>12]+r[128|63&i>>6]+r[128|63&i]);return a},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(n(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(r,o,a){if(!o)return r;if("object"!=typeof o){if(n(r))r.push(o);else{if(!r||"object"!=typeof r)return[r,o];(a&&(a.plainObjects||a.allowPrototypes)||!e.call(Object.prototype,o))&&(r[o]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(o);var u=r;return n(r)&&!n(o)&&(u=i(r,a)),n(r)&&n(o)?(o.forEach((function(n,o){if(e.call(r,o)){var i=r[o];i&&"object"==typeof i&&n&&"object"==typeof n?r[o]=t(i,n,a):r.push(n)}else r[o]=n})),r):Object.keys(o).reduce((function(n,r){var i=o[r];return n[r]=e.call(n,r)?t(n[r],i,a):i,n}),u)}}},function(){},function(t,e,n){var r=n(90);t.exports=function(t,e,n){var o=null==t?void 0:r(t,e);return void 0===o?n:o}},function(t){function e(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function r(t){if(c===setTimeout)return setTimeout(t,0);if((c===e||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function o(){d&&p&&(d=!1,p.length?l=p.concat(l):h=-1,l.length&&i())}function i(){if(!d){var t=r(o);d=!0;for(var e=l.length;e;){for(p=l,l=[];++h<e;)p&&p[h].run();h=-1,e=l.length}p=null,d=!1,function(t){if(s===clearTimeout)return clearTimeout(t);if((s===n||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(t);try{s(t)}catch(e){try{return s.call(null,t)}catch(e){return s.call(this,t)}}}(t)}}function a(t,e){this.fun=t,this.array=e}function u(){}var c,s,f=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:e}catch(t){c=e}try{s="function"==typeof clearTimeout?clearTimeout:n}catch(t){s=n}}();var p,l=[],d=!1,h=-1;f.nextTick=function(t){var e=Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new a(t,e)),1!==l.length||d||r(i)},a.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=u,f.addListener=u,f.once=u,f.off=u,f.removeListener=u,f.removeAllListeners=u,f.emit=u,f.prependListener=u,f.prependOnceListener=u,f.listeners=function(){return[]},f.binding=function(){throw new Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(){throw new Error("process.chdir is not supported")},f.umask=function(){return 0}},function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(9)(n(17),"Map");t.exports=r},function(t,e,n){var r=n(48),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e,n){var r=n(19),o=n(15),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(64);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(10)(Object.getPrototypeOf,Object);t.exports=r},function(t,e,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(11),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};t.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(t){return r.call(t,o,"+")},RFC3986:function(t){return t+""}}},a)},function(t){"use strict";t.exports=function(t,e){return function(){for(var n=Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}}},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(2);t.exports=function(t,e,n){if(!e)return t;var i;if(n)i=n(e);else if(o.isURLSearchParams(e))i=e.toString();else{var a=[];o.forEach(e,(function(t,e){null==t||(o.isArray(t)?e+="[]":t=[t],o.forEach(t,(function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),a.push(r(e)+"="+r(t))})))})),i=a.join("&")}if(i){var u=t.indexOf("#");-1!==u&&(t=t.slice(0,u)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},function(t){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){function r(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o=n(2),i=n(96),a={"Content-Type":"application/x-www-form-urlencoded"},u={adapter:function(){var t;return"undefined"==typeof XMLHttpRequest?void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(t=n(29)):t=n(29),t}(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(r(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(r(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return 200<=t&&300>t},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),o.forEach(["post","put","patch"],(function(t){u.headers[t]=o.merge(a)})),t.exports=u}).call(this,n(14))},function(t,e,n){"use strict";var r=n(2),o=n(97),i=n(99),a=n(26),u=n(100),c=n(103),s=n(104),f=n(30);t.exports=function(t){return new Promise((function(e,n){var p=t.data,l=t.headers;r.isFormData(p)&&delete l["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",y=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";l.Authorization="Basic "+btoa(h+":"+y)}var b=u(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),a(b,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?c(d.getAllResponseHeaders()):null,i={data:t.responseType&&"text"!==t.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:r,config:t,request:d};o(e,n,i),d=null}},d.onabort=function(){d&&(n(f("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(f("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(f(e,t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var v=(t.withCredentials||s(b))&&t.xsrfCookieName?i.read(t.xsrfCookieName):void 0;v&&(l[t.xsrfHeaderName]=v)}if("setRequestHeader"in d&&r.forEach(l,(function(t,e){void 0===p&&"content-type"===e.toLowerCase()?delete l[e]:d.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(n){if("json"!==t.responseType)throw n}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),n(t),d=null)})),p||(p=null),d.send(p)}))}},function(t,e,n){"use strict";var r=n(98);t.exports=function(t,e,n,o,i){var a=new Error(t);return r(a,e,n,o,i)}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){function n(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function o(o){r.isUndefined(e[o])?!r.isUndefined(t[o])&&(i[o]=n(void 0,t[o])):i[o]=n(t[o],e[o])}e=e||{};var i={},a=["url","method","data"],u=["headers","auth","proxy","params"],c=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];r.forEach(a,(function(t){r.isUndefined(e[t])||(i[t]=n(void 0,e[t]))})),r.forEach(u,o),r.forEach(c,(function(o){r.isUndefined(e[o])?!r.isUndefined(t[o])&&(i[o]=n(void 0,t[o])):i[o]=n(void 0,e[o])})),r.forEach(s,(function(r){r in e?i[r]=n(t[r],e[r]):r in t&&(i[r]=n(void 0,t[r]))}));var f=a.concat(u).concat(c).concat(s),p=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===f.indexOf(t)}));return r.forEach(p,o),i}},function(t){"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},function(t,e,n){"use strict";var r=n(86),o=n(87),i=n(24);t.exports={formats:i,parse:o,stringify:r}},function(t,e,n){t.exports=n(91)},function(t,e,n){t.exports=n(107)},function(t,e,n){var r=n(37),o=n(63),i=n(18),a=n(65),u=n(66),c=n(67),s=n(69),f=n(70),p=n(72),l=n(74),d=n(75),h=n(76),y=n(77),b=n(78),v=n(79),m=n(82),g=n(83),w=n(84),O=n(22),j=n(85),x=n(20),_=n(21),P=1,C=2,A=4,E="[object Arguments]",T="[object Function]",S="[object GeneratorFunction]",U="[object Object]",k={};k[E]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[U]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[T]=k["[object WeakMap]"]=!1,t.exports=function t(e,n,M,L,R,D){var z,N=n&P,I=n&C;if(M&&(z=R?M(e,L,R,D):M(e)),void 0!==z)return z;if(!O(e))return e;var q=m(e);if(q){if(z=y(e),!N)return s(e,z)}else{var F=h(e),W=F==T||F==S;if(g(e))return c(e,N);if(F==U||F==E||W&&!R){if(z=I||W?{}:v(e),!N)return I?p(e,u(z,e)):f(e,a(z,e))}else{if(!k[F])return R?e:{};z=b(e,F,N)}}D||(D=new r);var B=D.get(e);if(B)return B;D.set(e,z),j(e)?e.forEach((function(r){z.add(t(r,n,M,r,e,D))})):w(e)&&e.forEach((function(r,o){z.set(o,t(r,n,M,o,e,D))}));var V=q?void 0:(n&A?I?d:l:I?_:x)(e);return o(V||e,(function(r,o){V&&(r=e[o=r]),i(z,o,t(r,n,M,o,e,D))})),z}},function(t,e,n){function r(t){var e=this.__data__=new o(t);this.size=e.size}var o=n(4),i=n(43),a=n(44),u=n(45),c=n(46),s=n(47);r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=u,r.prototype.has=c,r.prototype.set=s,t.exports=r},function(t){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(5),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(0>n)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},function(t,e,n){var r=n(5);t.exports=function(t){var e=this.__data__,n=r(e,t);return 0>n?void 0:e[n][1]}},function(t,e,n){var r=n(5);t.exports=function(t){return-1<r(this.__data__,t)}},function(t,e,n){var r=n(5);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return 0>o?(++this.size,n.push([t,e])):n[o][1]=e,this}},function(t,e,n){var r=n(4);t.exports=function(){this.__data__=new r,this.size=0}},function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t){t.exports=function(t){return this.__data__.get(t)}},function(t){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var r=n(4),o=n(16),i=n(50);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(this,n(49))},function(t){var e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(51),i=n(58),a=n(60),u=n(61),c=n(62);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){var r=n(52),o=n(4),i=n(16);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}var o=n(53),i=n(54),a=n(55),u=n(56),c=n(57);r.prototype.clear=o,r.prototype.delete=i,r.prototype.get=a,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){var r=n(6);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(6),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(6),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(6);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(7);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(7);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(7);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var r=n(7);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(9),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,n){var r=n(8),o=n(20);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(8),o=n(21);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){(function(t){var r=n(17),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?r.Buffer:void 0,u=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=u?u(n):new t.constructor(n);return t.copy(r),r}}).call(this,n(68)(t))},function(t){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],!t.children&&(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(8),o=n(71);t.exports=function(t,e){return r(t,o(t),e)}},function(t){t.exports=function(){return[]}},function(t,e,n){var r=n(8),o=n(73);t.exports=function(t,e){return r(t,o(t),e)}},function(t){t.exports=function(){return[]}},function(t,e,n){var r=n(10)(Object.keys,Object);t.exports=r},function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t){var e=Object.prototype.hasOwnProperty;t.exports=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}},function(t){t.exports=function(t){return t}},function(t,e,n){var r=n(80),o=n(23),i=n(81);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e,n){var r=n(22),o=Object.create,i=function(){function t(){}return function(e){if(!r(e))return{};if(o)return o(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=i},function(t){t.exports=function(){return!1}},function(t){var e=Array.isArray;t.exports=e},function(t){t.exports=function(){return!1}},function(t){t.exports=function(){return!1}},function(t){t.exports=function(){return!1}},function(t,e,n){"use strict";var r=n(11),o=n(24),i=Object.prototype.hasOwnProperty,a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,s=function(t,e){c.apply(t,u(e)?e:[e])},f=Date.prototype.toISOString,p=o.default,l={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:p,formatter:o.formatters[p],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},d=function t(e,n,o,i,a,c,f,p,d,h,y,b,v){var m=e;if("function"==typeof f?m=f(n,m):m instanceof Date?m=h(m):"comma"===o&&u(m)&&(m=r.maybeMap(m,(function(t){return t instanceof Date?h(t):t})).join(",")),null===m){if(i)return c&&!b?c(n,l.encoder,v,"key"):n;m=""}if(function(t){return"string"==typeof t||"number"==typeof t||"boolean"==typeof t||"symbol"==typeof t||"bigint"==typeof t}(m)||r.isBuffer(m))return c?[y(b?n:c(n,l.encoder,v,"key"))+"="+y(c(m,l.encoder,v,"value"))]:[y(n)+"="+y(m+"")];var g,w=[];if(void 0===m)return w;if(u(f))g=f;else{var O=Object.keys(m);g=p?O.sort(p):O}for(var j=0;j<g.length;++j){var x=g[j],_=m[x];if(!a||null!==_){var P=u(m)?"function"==typeof o?o(n,x):n:n+(d?"."+x:"["+x+"]");s(w,t(_,P,o,i,a,c,f,p,d,h,y,b,v))}}return w},h=function(t){if(!t)return l;if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||l.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==t.format){if(!i.call(o.formatters,t.format))throw new TypeError("Unknown format option provided.");n=t.format}var r=o.formatters[n],a=l.filter;return("function"==typeof t.filter||u(t.filter))&&(a=t.filter),{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:l.addQueryPrefix,allowDots:void 0===t.allowDots?l.allowDots:!!t.allowDots,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:l.charsetSentinel,delimiter:void 0===t.delimiter?l.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:l.encode,encoder:"function"==typeof t.encoder?t.encoder:l.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:l.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:l.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:l.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:l.strictNullHandling}};t.exports=function(t,e){var n,r=t,o=h(e);"function"==typeof o.filter?r=(0,o.filter)("",r):u(o.filter)&&(n=o.filter);var i=[];if("object"!=typeof r||null===r)return"";var c=e&&e.arrayFormat in a?e.arrayFormat:e&&"indices"in e?e.indices?"indices":"repeat":"indices",f=a[c];n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var p,l=0;l<n.length;++l)p=n[l],(!o.skipNulls||null!==r[p])&&s(i,d(r[p],p,f,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset));var y=i.join(o.delimiter),b=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),0<y.length?b+y:""}},function(t,e,n){"use strict";var r=n(11),o=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},c=function(t,e){return t&&"string"==typeof t&&e.comma&&-1<t.indexOf(",")?t.split(","):t},s=function(t,e){var n,s={},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,p=e.parameterLimit===1/0?void 0:e.parameterLimit,l=f.split(e.delimiter,p),d=-1,h=e.charset;if(e.charsetSentinel)for(n=0;n<l.length;++n)0===l[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[n]?h="utf-8":"utf8=%26%2310003%3B"===l[n]&&(h="iso-8859-1"),d=n,n=l.length);for(n=0;n<l.length;++n)if(n!==d){var y,b,v=l[n],m=v.indexOf("]="),g=-1===m?v.indexOf("="):m+1;-1===g?(y=e.decoder(v,a.decoder,h,"key"),b=e.strictNullHandling?null:""):(y=e.decoder(v.slice(0,g),a.decoder,h,"key"),b=r.maybeMap(c(v.slice(g+1),e),(function(t){return e.decoder(t,a.decoder,h,"value")}))),b&&e.interpretNumericEntities&&"iso-8859-1"===h&&(b=u(b)),-1<v.indexOf("[]=")&&(b=i(b)?[b]:b),s[y]=o.call(s,y)?r.combine(s[y],b):b}return s},f=function(t,e,n,r){for(var o=r?e:c(e,n),i=t.length-1;0<=i;--i){var a,u=t[i];if("[]"===u&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var s="["===u.charAt(0)&&"]"===u.charAt(u.length-1)?u.slice(1,-1):u,f=parseInt(s,10);n.parseArrays||""!==s?!isNaN(f)&&u!==s&&f+""===s&&0<=f&&n.parseArrays&&f<=n.arrayLimit?(a=[])[f]=o:a[s]=o:a={0:o}}o=a}return o},p=function(t,e,n,r){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,u=0<n.depth&&/(\[[^[\]]*])/.exec(i),c=u?i.slice(0,u.index):i,s=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;s.push(c)}for(var p=0;0<n.depth&&null!==(u=a.exec(i))&&p<n.depth;){if(p+=1,!n.plainObjects&&o.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(u[1])}return u&&s.push("["+i.slice(u.index)+"]"),f(s,e,n,r)}},l=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}};t.exports=function(t,e){var n=l(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof t?s(t,n):t,i=n.plainObjects?Object.create(null):{},a=Object.keys(o),u=0;u<a.length;++u){var c=a[u],f=p(c,o[c],n,"string"==typeof t);i=r.merge(i,f,n)}return r.compact(i)}},function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){"use strict";function r(t){var e=new a(t),n=i(a.prototype.request,e);return o.extend(n,a.prototype,e),o.extend(n,e),n}var o=n(2),i=n(25),a=n(92),u=n(31),c=r(n(28));c.Axios=a,c.create=function(t){return r(u(c.defaults,t))},c.Cancel=n(32),c.CancelToken=n(105),c.isCancel=n(27),c.all=function(t){return Promise.all(t)},c.spread=n(106),t.exports=c,t.exports.default=c},function(t,e,n){"use strict";function r(t){this.defaults=t,this.interceptors={request:new a,response:new a}}var o=n(2),i=n(26),a=n(93),u=n(94),c=n(31);r.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=c(this.defaults,t)).method=t.method?t.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var e=[u,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},r.prototype.getUri=function(t){return t=c(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(t){r.prototype[t]=function(e,n){return this.request(c(n||{},{method:t,url:e,data:(n||{}).data}))}})),o.forEach(["post","put","patch"],(function(t){r.prototype[t]=function(e,n,r){return this.request(c(r||{},{method:t,url:e,data:n}))}})),t.exports=r},function(t,e,n){"use strict";function r(){this.handlers=[]}var o=n(2);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){o.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=r},function(t,e,n){"use strict";function r(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var o=n(2),i=n(95),a=n(27),u=n(28);t.exports=function(t){return r(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||u.adapter)(t).then((function(e){return r(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return a(e)||(r(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";var r=n(2);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},function(t,e,n){"use strict";var r=n(30);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var r=n(2);t.exports=r.isStandardBrowserEnv()?{write:function(t,e,n,o,i,a){var u=[];u.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&u.push("expires="+new Date(n).toGMTString()),r.isString(o)&&u.push("path="+o),r.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(101),o=n(102);t.exports=function(t,e){return t&&!r(e)?o(t,e):e}},function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(2),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,i,a={};return t?(r.forEach(t.split("\n"),(function(t){if(i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e){if(a[e]&&0<=o.indexOf(e))return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var r=n(2);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(o.setAttribute("href",e),e=o.href),o.setAttribute("href",e),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return e=t(window.location.href),function(n){var o=r.isString(n)?t(n):n;return o.protocol===e.protocol&&o.host===e.host}}():function(){return!0}},function(t,e,n){"use strict";function r(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new o(t),e(n.reason))}))}var o=n(32);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var t;return{token:new r((function(e){t=e})),cancel:t}},t.exports=r},function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";function r(t){var e,n=t.config,r=t.response;if(n.headers&&n.headers.Authorization){var o="...".concat(n.headers.Authorization.substr(-5));n.headers.Authorization="Bearer ".concat(o)}if(!Zt()(r)||!Zt()(n))throw t;var i=null==r?void 0:r.data,a={status:null==r?void 0:r.status,statusText:null==r?void 0:r.statusText,message:"",details:{}};Zt()(n)&&(a.request={url:n.url,headers:n.headers,method:n.method,payloadData:n.data}),i&&Zt()(i)&&("requestId"in i&&(a.requestId=i.requestId||"UNKNOWN"),"message"in i&&(a.message=i.message||""),"details"in i&&(a.details=i.details||{}),"sys"in i&&"id"in i.sys&&(e=i.sys.id));var u=new Error;throw u.name=e&&"Unknown"!==e?e:"".concat(null==r?void 0:r.status," ").concat(null==r?void 0:r.statusText),u.message=JSON.stringify(a,null," "),u}function o(t,e){return Object.keys(e).reduce((function(t,n){return Object.defineProperty(t,n,{enumerable:!1,configurable:!0,writable:!1,value:e[n]}),t}),t)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?i(Object(e),!0).forEach((function(n){u(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):i(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t){var e=t.http,n=t.entityPath,o=t.wrapperMethod,i=t.headers;return function(){var t=this,u=t.toPlainObject(),c=ee()(u);return delete c.sys,e.put(n+"/"+t.sys.id,c,{headers:a({"X-Contentful-Version":t.sys.version||0},i)}).then((function(t){return o(e,t.data)}),r)}}function s(t){var e=t.http,n=t.entityPath;return function(){return e.delete(n+"/"+this.sys.id).then((function(){}),r)}}function f(t){var e=t.http,n=t.entityPath,o=t.wrapperMethod;return function(){return e.put(n+"/"+this.sys.id+"/published",null,{headers:{"X-Contentful-Version":this.sys.version}}).then((function(t){return o(e,t.data)}),r)}}function p(t){var e=t.http,n=t.entityPath,o=t.wrapperMethod;return function(){return e.delete(n+"/"+this.sys.id+"/published").then((function(t){return o(e,t.data)}),r)}}function l(t){var e=t.http,n=t.entityPath,o=t.wrapperMethod;return function(){return e.put(n+"/"+this.sys.id+"/archived").then((function(t){return o(e,t.data)}),r)}}function d(t){var e=t.http,n=t.entityPath,o=t.wrapperMethod;return function(){return e.delete(n+"/"+this.sys.id+"/archived").then((function(t){return o(e,t.data)}),r)}}function h(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:function(){var e=this;return"accessToken"in e&&delete e.accessToken,"preview_api_key"in e&&delete e.preview_api_key,"policies"in e&&delete e.policies,c({http:t,entityPath:"api_keys",wrapperMethod:h}).call(e)},delete:s({http:t,entityPath:"api_keys"})}}(t));return Object(Gt.c)(n)}function y(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:c({http:t,entityPath:ie,wrapperMethod:y}),delete:s({http:t,entityPath:ie})}}(t));return Object(Gt.c)(n)}function b(t){return{update:function(){var e=this.toPlainObject(),n=ee()(e);return delete n.sys,t.put("app_installations/".concat(this.sys.appDefinition.sys.id),n).then((function(e){return v(t,e.data)}),r)},delete:function(){var e=this.toPlainObject();return t.delete("app_installations/".concat(e.sys.appDefinition.sys.id)).then((function(){}),r)}}}function v(t,e){var n=o(Object(Gt.e)(ee()(e)),b(t));return Object(Gt.c)(n)}function m(t){function e(n){var o=n.resolve,i=n.reject,a=n.id,u=n.locale,c=n.processingCheckWait,s=void 0===c?ce:c,f=n.processingCheckRetries,p=void 0===f?se:f,l=n.checkCount,d=void 0===l?0:l;t.get("assets/"+a).then((function(e){return g(t,e.data)}),r).then((function(t){if(t.fields.file[u].url)o(t);else if(d===p){var n=new Error;n.name="AssetProcessingTimeout",n.message="Asset is taking longer then expected to process.",i(n)}else d++,setTimeout((function(){return e({resolve:o,reject:i,id:a,locale:u,checkCount:d,processingCheckWait:s,processingCheckRetries:p})}),s)}))}function n(n){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},i=o.processingCheckWait,a=o.processingCheckRetries,u=this.sys.id;return t.put("assets/"+this.sys.id+"/files/"+n+"/process",null,{headers:{"X-Contentful-Version":this.sys.version}}).then((function(){return new Promise((function(t,r){return e({resolve:t,reject:r,id:u,locale:n,processingCheckWait:i,processingCheckRetries:a})}))}),r)}return{update:c({http:t,entityPath:"assets",wrapperMethod:g}),delete:s({http:t,entityPath:"assets"}),publish:f({http:t,entityPath:"assets",wrapperMethod:g}),unpublish:p({http:t,entityPath:"assets",wrapperMethod:g}),archive:l({http:t,entityPath:"assets",wrapperMethod:g}),unarchive:d({http:t,entityPath:"assets",wrapperMethod:g}),processForLocale:n,processForAllLocales:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=this,r=Object.keys(this.fields.file||{}),o=void 0,i=r.map((function(r){return n.call(e,r,t).then((function(t){o=t}))}));return Promise.all(i).then((function(){return o}))},isPublished:function(){return!!this.sys.publishedVersion},isUpdated:function(){var t=this;return!!(t.sys.publishedVersion&&t.sys.version>t.sys.publishedVersion+1)},isDraft:function(){return!this.sys.publishedVersion},isArchived:function(){return!!this.sys.archivedVersion}}}function g(t,e){var n=o(Object(Gt.e)(ee()(e)),m(t));return Object(Gt.c)(n)}function w(t){return{update:function(){var e=this,n=e.toPlainObject(),o=ee()(n);return delete o.sys,t.put("content_types/".concat(e.sys.contentType.sys.id,"/editor_interface"),o,{headers:{"X-Contentful-Version":e.sys.version}}).then((function(e){return O(t,e.data)}),r)},getControlForField:function(t){var e=this.controls.filter((function(e){return e.fieldId===t}));return e&&0<e.length?e[0]:null}}}function O(t,e){var n=o(Object(Gt.e)(ee()(e)),w(t));return Object(Gt.c)(n)}function j(t,e){var n=o(Object(Gt.e)(ee()(e)),{});return Object(Gt.c)(n)}function x(t){return{update:c({http:t,entityPath:"content_types",wrapperMethod:_}),delete:s({http:t,entityPath:"content_types"}),publish:f({http:t,entityPath:"content_types",wrapperMethod:_}),unpublish:p({http:t,entityPath:"content_types",wrapperMethod:_}),getEditorInterface:function(){return t.get("content_types/"+this.sys.id+"/editor_interface").then((function(e){return O(t,e.data)}),r)},getSnapshots:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return t.get("content_types/".concat(this.sys.id,"/snapshots"),Object(Gt.b)({query:e})).then((function(e){return pe(t,e.data)}),r)},getSnapshot:function(e){return t.get("content_types/".concat(this.sys.id,"/snapshots/").concat(e)).then((function(t){return j(0,t.data)}),r)},isPublished:function(){return!!this.sys.publishedVersion},isUpdated:function(){var t=this;return!!(t.sys.publishedVersion&&t.sys.version>t.sys.publishedVersion+1)},isDraft:function(){return!this.sys.publishedVersion},omitAndDeleteField:function(t){return le(this,t,"omitted",!0).then((function(e){return le(e,t,"deleted",!0)})).catch(r)}}}function _(t,e){var n=o(Object(Gt.e)(ee()(e)),x(t));return Object(Gt.c)(n)}function P(t){return{update:c({http:t,entityPath:"entries",wrapperMethod:C}),delete:s({http:t,entityPath:"entries"}),publish:f({http:t,entityPath:"entries",wrapperMethod:C}),unpublish:p({http:t,entityPath:"entries",wrapperMethod:C}),archive:l({http:t,entityPath:"entries",wrapperMethod:C}),unarchive:d({http:t,entityPath:"entries",wrapperMethod:C}),getSnapshots:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return t.get("entries/".concat(this.sys.id,"/snapshots"),Object(Gt.b)({query:e})).then((function(e){return pe(t,e.data)}),r)},getSnapshot:function(e){return t.get("entries/".concat(this.sys.id,"/snapshots/").concat(e)).then((function(t){return j(0,t.data)}),r)},isPublished:function(){return!!this.sys.publishedVersion},isUpdated:function(){var t=this;return!!(t.sys.publishedVersion&&t.sys.version>t.sys.publishedVersion+1)},isDraft:function(){return!this.sys.publishedVersion},isArchived:function(){return!!this.sys.archivedVersion}}}function C(t,e){var n=o(Object(Gt.e)(ee()(e)),P(t));return Object(Gt.c)(n)}function A(t){return function(){return t.delete("tags/"+this.sys.id,re(this.sys.version)).then((function(){}),r)}}function E(t){return function(){var e=this;return t.put("tags/"+e.sys.id,{name:e.name,sys:{id:e.sys.id}},re(e.sys.version)).then((function(e){return S(t,e.data)}),r)}}function T(t){return{update:E(t),delete:A(t)}}function S(t,e){var n=o(Object(Gt.e)(ee()(e)),T(t));return Object(Gt.c)(n)}function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function k(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?U(Object(e),!0).forEach((function(n){M(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):U(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function M(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function L(t){function e(t){return i.post("assets",t).then((function(t){return y(i,t.data)}),r)}function n(t){var e=t.file;return e?a.post("uploads",e,{headers:{"Content-Type":"application/octet-stream"}}).then((function(t){return j(a,t.data)})).catch(r):Promise.reject(new Error("Unable to locate a file to upload."))}function o(t){t.select&&!/sys/i.test(t.select)&&(t.select+=",sys")}var i=t.http,a=t.httpUpload,u=Ie.environment.wrapEnvironment,c=Ie.contentType,s=c.wrapContentType,f=c.wrapContentTypeCollection,p=Ie.entry,l=p.wrapEntry,d=p.wrapEntryCollection,h=Ie.asset,y=h.wrapAsset,b=h.wrapAssetCollection,v=Ie.locale,m=v.wrapLocale,g=v.wrapLocaleCollection,w=Ie.snapshot.wrapSnapshotCollection,O=Ie.editorInterface.wrapEditorInterface,j=Ie.upload.wrapUpload,x=Ie.uiExtension,_=x.wrapUiExtension,P=x.wrapUiExtensionCollection,C=Ie.appInstallation,A=C.wrapAppInstallation,E=C.wrapAppInstallationCollection;return{delete:function(){return i.delete("").then((function(){}),r)},update:function(){var t=this.toPlainObject(),e=ee()(t);return delete e.sys,i.put("",e,{headers:{"X-Contentful-Version":t.sys.version}}).then((function(t){return u(i,t.data)}),r)},getEntryFromData:function(t){return l(i,t)},getAssetFromData:function(t){return y(i,t)},getContentType:function(t){return i.get("content_types/"+t).then((function(t){return s(i,t.data)}),r)},getContentTypes:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i.get("content_types",Object(Gt.b)({query:t})).then((function(t){return f(i,t.data)}),r)},createContentType:function(t){return i.post("content_types",t).then((function(t){return s(i,t.data)}),r)},createContentTypeWithId:function(t,e){return i.put("content_types/"+t,e).then((function(t){return s(i,t.data)}),r)},getEditorInterfaceForContentType:function(t){return i.get("content_types/"+t+"/editor_interface").then((function(t){return O(i,t.data)}),r)},getEntry:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return o(e),i.get("entries/"+t,Object(Gt.b)({query:e})).then((function(t){return l(i,t.data)}),r)},getEntries:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return o(t),i.get("entries",Object(Gt.b)({query:t})).then((function(t){return d(i,t.data)}),r)},createEntry:function(t,e){return i.post("entries",e,{headers:{"X-Contentful-Content-Type":t}}).then((function(t){return l(i,t.data)}),r)},createEntryWithId:function(t,e,n){return i.put("entries/"+e,n,{headers:{"X-Contentful-Content-Type":t}}).then((function(t){return l(i,t.data)}),r)},getAsset:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return o(e),i.get("assets/"+t,Object(Gt.b)({query:e})).then((function(t){return y(i,t.data)}),r)},getAssets:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return o(t),i.get("assets",Object(Gt.b)({query:t})).then((function(t){return b(i,t.data)}),r)},createAsset:e,createAssetWithId:function(t,e){return i.put("assets/"+t,e).then((function(t){return y(i,t.data)}),r)},createAssetFromFiles:function(t){var o=t.fields.file;return Promise.all(Object.keys(o).map((function(t){var e=o[t],r=e.contentType,i=e.fileName;return n(o[t]).then((function(e){return M({},t,{contentType:r,fileName:i,uploadFrom:{sys:{type:"Link",linkType:"Upload",id:e.sys.id}}})}))}))).then((function(n){var r=n.reduce((function(t,e){return k(k({},t),e)}),{});return e(k(k({},t),{},{fields:k(k({},t.fields),{},{file:r})}))})).catch(r)},getUpload:function(t){return a.get("uploads/"+t).then((function(t){return j(i,t.data)})).catch(r)},createUpload:n,getLocale:function(t){return i.get("locales/"+t).then((function(t){return m(i,t.data)}),r)},getLocales:function(){return i.get("locales").then((function(t){return g(i,t.data)}),r)},createLocale:function(t){return i.post("locales",t).then((function(t){return m(i,t.data)}),r)},getUiExtension:function(t){return i.get("extensions/"+t).then((function(t){return _(i,t.data)}),r)},getUiExtensions:function(){return i.get("extensions").then((function(t){return P(i,t.data)}),r)},createUiExtension:function(t){return i.post("extensions",t).then((function(t){return _(i,t.data)}),r)},createUiExtensionWithId:function(t,e){return i.put("extensions/"+t,e).then((function(t){return _(i,t.data)}),r)},createAppInstallation:function(t,e){return i.put("app_installations/"+t,e).then((function(t){return A(i,t.data)}),r)},getAppInstallation:function(t){return i.get("app_installations/"+t).then((function(t){return A(i,t.data)}),r)},getAppInstallations:function(){return i.get("app_installations").then((function(t){return E(i,t.data)}),r)},getEntrySnapshots:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return i.get("entries/".concat(t,"/snapshots"),Object(Gt.b)({query:e})).then((function(t){return w(i,t.data)}),r)},getContentTypeSnapshots:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return i.get("content_types/".concat(t,"/snapshots"),Object(Gt.b)({query:e})).then((function(t){return w(i,t.data)}),r)},createTag:function(t,e){return i.put("tags/".concat(t),{name:e,sys:{type:"Tag",id:t}}).then((function(t){return S(i,t.data)}),r)},getTags:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i.get("tags",Object(Gt.b)({query:t})).then((function(t){return ye(i,t.data)}),r)},getTag:function(t){return i.get("tags/"+t).then((function(t){return S(i,t.data)}),r)}}}function R(t,e){var n=t,r=Object(Gt.e)(ee()(e)),i=n.httpClientParams,a=i.hostUpload,u=i.defaultHostnameUpload,c=o(r,L({http:n.cloneWithNewParams({baseURL:t.defaults.baseURL+"environments/"+r.sys.id}),httpUpload:n.cloneWithNewParams({space:r.sys.space.sys.id,host:a||u})}));return Object(Gt.c)(c)}function D(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:c({http:t,entityPath:"environment_aliases",wrapperMethod:D}),delete:s({http:t,entityPath:"environment_aliases"})}}(t));return Object(Gt.c)(n)}function z(t,e){delete e.internal_code;var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:function(){return delete this.default,c({http:t,entityPath:"locales",wrapperMethod:z}).call(this)},delete:s({http:t,entityPath:"locales"})}}(t));return Object(Gt.c)(n)}function N(t){var e=t.http,n=Ie.appDefinition,o=n.wrapAppDefinition,i=n.wrapAppDefinitionCollection,a=Ie.user,u=a.wrapUser,c=a.wrapUserCollection,s=Ie.organizationMembership,f=s.wrapOrganizationMembership,p=s.wrapOrganizationMembershipCollection,l=Ie.teamMembership,d=l.wrapTeamMembership,h=l.wrapTeamMembershipCollection,y=Ie.teamSpaceMembership,b=y.wrapTeamSpaceMembership,v=y.wrapTeamSpaceMembershipCollection,m=Ie.team,g=m.wrapTeam,w=m.wrapTeamCollection,O=Ie.spaceMembership,j=O.wrapSpaceMembership,x=O.wrapSpaceMembershipCollection,_=Ie.organizationInvitation.wrapOrganizationInvitation,P={"x-contentful-enable-alpha-feature":"organization-user-management-api"};return{getUser:function(t){return e.get("users/"+t).then((function(t){return u(e,t.data)}),r)},getUsers:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.get("users",Object(Gt.b)({query:t})).then((function(t){return c(e,t.data)}),r)},getOrganizationMembership:function(t){return e.get("organization_memberships/"+t).then((function(t){return f(e,t.data)}),r)},getOrganizationMemberships:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.get("organization_memberships",Object(Gt.b)({query:t})).then((function(t){return p(e,t.data)}),r)},createTeam:function(t){return e.post("teams",t).then((function(t){return g(e,t.data)}),r)},getTeam:function(t){return e.get("teams/"+t).then((function(t){return g(e,t.data)}),r)},getTeams:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.get("teams",Object(Gt.b)({query:t})).then((function(t){return w(e,t.data)}),r)},createTeamMembership:function(t,n){return e.post("teams/"+t+"/team_memberships",n).then((function(t){return d(e,t.data)}),r)},getTeamMembership:function(t,n){return e.get("teams/"+t+"/team_memberships/"+n).then((function(t){return d(e,t.data)}),r)},getTeamMemberships:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=we()(t,"query",{});return t.teamId?e.get("teams/"+t.teamId+"/team_memberships",Object(Gt.b)({query:n})).then((function(t){return h(e,t.data)}),r):e.get("team_memberships",Object(Gt.b)({query:n})).then((function(t){return h(e,t.data)}),r)},getTeamSpaceMemberships:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=we()(t,"query",{});return t.teamId&&(n["sys.team.sys.id"]=t.teamId),e.get("team_space_memberships",Object(Gt.b)({query:n})).then((function(t){return v(e,t.data)}),r)},getTeamSpaceMembership:function(t){return e.get("team_space_memberships/"+t).then((function(t){return b(e,t.data)}),r)},getOrganizationSpaceMembership:function(t){return e.get("space_memberships/"+t).then((function(t){return j(e,t.data)}),r)},getOrganizationSpaceMemberships:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.get("space_memberships",Object(Gt.b)({query:t})).then((function(t){return x(e,t.data)}),r)},getOrganizationInvitation:function(t){return e.get("invitations/"+t,{headers:P}).then((function(t){return _(e,t.data)}),r)},createOrganizationInvitation:function(t){return e.post("invitations",t,{headers:{"x-contentful-enable-alpha-feature":"pending-org-membership"}}).then((function(t){return _(e,t.data)}),r)},createAppDefinition:function(t){return e.post("app_definitions",t).then((function(t){return o(e,t.data)}),r)},getAppDefinitions:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.get("app_definitions",Object(Gt.b)({query:t})).then((function(t){return i(e,t.data)}),r)},getAppDefinition:function(t){return e.get("app_definitions/"+t).then((function(t){return o(e,t.data)}),r)}}}function I(t,e){var n=Object(Gt.e)(ee()(e)),r=(t.defaults.baseURL||"").replace("/spaces/","/organizations/")+n.sys.id+"/",i=o(n,N({http:t.cloneWithNewParams({baseURL:r})}));return Object(Gt.c)(i)}function q(t,e){var n=Object(Gt.e)(ee()(e));return Object(Gt.c)(n)}function F(t){return{update:function(){var e=this,n=e.toPlainObject().role;return t.put("organization_memberships/"+e.sys.id,{role:n},{headers:{"X-Contentful-Version":e.sys.version||0}}).then((function(e){return W(t,e.data)}),r)},delete:s({http:t,entityPath:"organization_memberships"})}}function W(t,e){var n=o(Object(Gt.e)(ee()(e)),F(t));return Object(Gt.c)(n)}function B(t){return{revoke:function(){var e=(t.defaults.baseURL||"").replace("/spaces/","/users/me/access_tokens");return t.put("".concat(this.sys.id,"/revoked"),null,{baseURL:e}).then((function(t){return t.data}),r)}}}function V(t,e){var n=o(Object(Gt.e)(ee()(e)),B(t));return Object(Gt.c)(n)}function H(t,e){var n=o(Object(Gt.e)(ee()(e)),{});return Object(Gt.c)(n)}function K(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:c({http:t,entityPath:"roles",wrapperMethod:K}),delete:s({http:t,entityPath:"roles"})}}(t));return Object(Gt.c)(n)}function X(t){return function(){return t.delete("scheduled_actions/"+this.sys.id).then((function(e){return $(t,e.data)}),r)}}function Q(t){return{delete:X(t)}}function $(t,e){var n=o(Object(Gt.e)(ee()(e)),Q(t));return Object(Gt.c)(n)}function J(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function G(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?J(Object(e),!0).forEach((function(n){Y(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):J(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function Y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Z(t){console.warn(["Deprecated: Space.".concat(t,"() will be removed in future major versions."),null,"Please migrate your code to use Environment.".concat(t,"():"),"https://contentful.github.io/contentful-management.js/contentful-management/latest/globals.html#createenvironmentapi",null].join("\n"))}function tt(){console.warn("The user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user)")}function et(t){function e(t){return i.post("assets",t).then((function(t){return m(i,t.data)}),r)}function n(t){Z("createUpload");var e=t.file;return e?a.post("uploads",e,{headers:{"Content-Type":"application/octet-stream"}}).then((function(t){return ct(a,t.data)})).catch(r):Promise.reject(new Error("Unable to locate a file to upload."))}function o(t){t.select&&!/sys/i.test(t.select)&&(t.select+=",sys")}var i=t.http,a=t.httpUpload,u=Ie.space.wrapSpace,c=Ie.environment,s=c.wrapEnvironment,f=c.wrapEnvironmentCollection,p=Ie.contentType,l=p.wrapContentType,d=p.wrapContentTypeCollection,h=Ie.entry,y=h.wrapEntry,b=h.wrapEntryCollection,v=Ie.asset,m=v.wrapAsset,g=v.wrapAssetCollection,w=Ie.locale,O=w.wrapLocale,j=w.wrapLocaleCollection,x=Ie.webhook,_=x.wrapWebhook,P=x.wrapWebhookCollection,C=Ie.role,A=C.wrapRole,E=C.wrapRoleCollection,T=Ie.user,S=T.wrapUser,U=T.wrapUserCollection,k=Ie.spaceMember,M=k.wrapSpaceMember,L=k.wrapSpaceMemberCollection,R=Ie.spaceMembership,D=R.wrapSpaceMembership,z=R.wrapSpaceMembershipCollection,N=Ie.teamSpaceMembership,I=N.wrapTeamSpaceMembership,q=N.wrapTeamSpaceMembershipCollection,F=Ie.apiKey,W=F.wrapApiKey,B=F.wrapApiKeyCollection,V=Ie.editorInterface.wrapEditorInterface,H=Ie.environmentAlias,K=H.wrapEnvironmentAlias,X=H.wrapEnvironmentAliasCollection,Q=Ie.previewApiKey,$=Q.wrapPreviewApiKey,J=Q.wrapPreviewApiKeyCollection,et=Ie.scheduledAction,nt=et.wrapScheduledAction,rt=et.wrapScheduledActionCollection,ot=Ie.snapshot.wrapSnapshotCollection,it=Ie.uiExtension,at=it.wrapUiExtension,ut=it.wrapUiExtensionCollection,ct=Ie.upload.wrapUpload;return{delete:function(){return i.delete("").then((function(){}),r)},update:function(){var t=this.toPlainObject(),e=ee()(t);return delete e.sys,i.put("",e,{headers:{"X-Contentful-Version":t.sys.version}}).then((function(t){return u(i,t.data)}),r)},getEnvironment:function(t){return i.get("environments/"+t).then((function(t){return s(i,t.data)}),r)},getEnvironments:function(){return i.get("environments").then((function(t){return f(i,t.data)}),r)},createEnvironment:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i.post("environments",t).then((function(t){return s(i,t.data)}),r)},createEnvironmentWithId:function(t,e,n){return i.put("environments/"+t,e,{headers:n?{"X-Contentful-Source-Environment":n}:{}}).then((function(t){return s(i,t.data)}),r)},getContentType:function(t){return Z("getContentType"),i.get("content_types/"+t).then((function(t){return l(i,t.data)}),r)},getContentTypes:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return Z("getContentTypes"),i.get("content_types",Object(Gt.b)({query:t})).then((function(t){return d(i,t.data)}),r)},createContentType:function(t){return Z("createContentType"),i.post("content_types",t).then((function(t){return l(i,t.data)}),r)},createContentTypeWithId:function(t,e){return Z("createContentTypeWithId"),i.put("content_types/"+t,e).then((function(t){return l(i,t.data)}),r)},getEditorInterfaceForContentType:function(t){return Z("getEditorInterfaceForContentType"),i.get("content_types/"+t+"/editor_interface").then((function(t){return V(i,t.data)}),r)},getEntry:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Z("getEntry"),o(e),i.get("entries/"+t,Object(Gt.b)({query:e})).then((function(t){return y(i,t.data)}),r)},getEntries:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return Z("getEntries"),o(t),i.get("entries",Object(Gt.b)({query:t})).then((function(t){return b(i,t.data)}),r)},createEntry:function(t,e){return Z("createEntry"),i.post("entries",e,{headers:{"X-Contentful-Content-Type":t}}).then((function(t){return y(i,t.data)}),r)},createEntryWithId:function(t,e,n){return Z("createEntryWithId"),i.put("entries/"+e,n,{headers:{"X-Contentful-Content-Type":t}}).then((function(t){return y(i,t.data)}),r)},createUpload:n,createAsset:e,getAsset:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Z("getAsset"),o(e),i.get("assets/"+t,Object(Gt.b)({query:e})).then((function(t){return m(i,t.data)}),r)},getAssets:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return Z("getAssets"),o(t),i.get("assets",Object(Gt.b)({query:t})).then((function(t){return g(i,t.data)}),r)},createAssetWithId:function(t,e){return Z("createAssetWithId"),i.put("assets/"+t,e).then((function(t){return m(i,t.data)}),r)},createAssetFromFiles:function(t){Z("createAssetFromFiles");var o=t.fields.file;return Promise.all(Object.keys(o).map((function(t){var e=o[t],r=e.contentType,i=e.fileName;return n(o[t]).then((function(e){return Y({},t,{contentType:r,fileName:i,uploadFrom:{sys:{type:"Link",linkType:"Upload",id:e.sys.id}}})}))}))).then((function(n){return t.fields.file=n.reduce((function(t,e){return G(G({},t),e)}),{}),e(t)})).catch(r)},getUpload:function(t){return Z("getUpload"),a.get("uploads/"+t).then((function(t){return ct(i,t.data)})).catch(r)},getLocale:function(t){return Z("getLocale"),i.get("locales/"+t).then((function(t){return O(i,t.data)}),r)},getLocales:function(){return Z("getLocales"),i.get("locales").then((function(t){return j(i,t.data)}),r)},createLocale:function(t){return Z("createLocale"),i.post("locales",t).then((function(t){return O(i,t.data)}),r)},getWebhook:function(t){return i.get("webhook_definitions/"+t).then((function(t){return _(i,t.data)}),r)},getWebhooks:function(){return i.get("webhook_definitions").then((function(t){return P(i,t.data)}),r)},createWebhook:function(t){return i.post("webhook_definitions",t).then((function(t){return _(i,t.data)}),r)},createWebhookWithId:function(t,e){return i.put("webhook_definitions/"+t,e).then((function(t){return _(i,t.data)}),r)},getRole:function(t){return i.get("roles/"+t).then((function(t){return A(i,t.data)}),r)},getRoles:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return o(t),i.get("roles",Object(Gt.b)({query:t})).then((function(t){return E(i,t.data)}),r)},createRole:function(t){return i.post("roles",t).then((function(t){return A(i,t.data)}),r)},createRoleWithId:function(t,e){return i.put("roles/"+t,e).then((function(t){return A(i,t.data)}),r)},getScheduledActions:function(t){return i.get("scheduled_actions",Object(Gt.b)({query:t})).then((function(t){return rt(i,t.data)}),r)},createScheduledAction:function(t){return i.post("scheduled_actions",t).then((function(t){return nt(i,t.data)}),r)},getSpaceUser:function(t){return i.get("users/"+t).then((function(t){return S(i,t.data)}),r)},getSpaceUsers:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i.get("users/",Object(Gt.b)({query:t})).then((function(t){return U(i,t.data)}),r)},getSpaceMember:function(t){return i.get("space_members/"+t).then((function(t){return M(i,t.data)}),r)},getSpaceMembers:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i.get("space_members",Object(Gt.b)({query:t})).then((function(t){return L(i,t.data)}),r)},getSpaceMembership:function(t){return tt(),i.get("space_memberships/"+t).then((function(t){return D(i,t.data)}),r)},getSpaceMemberships:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return tt(),i.get("space_memberships",Object(Gt.b)({query:t})).then((function(t){return z(i,t.data)}),r)},createSpaceMembership:function(t){return tt(),i.post("space_memberships",t).then((function(t){return D(i,t.data)}),r)},createSpaceMembershipWithId:function(t,e){return tt(),i.put("space_memberships/"+t,e).then((function(t){return D(i,t.data)}),r)},getTeamSpaceMembership:function(t){return i.get("team_space_memberships/"+t).then((function(t){return I(i,t.data)}),r)},getTeamSpaceMemberships:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return i.get("team_space_memberships",Object(Gt.b)({query:t})).then((function(t){return q(i,t.data)}),r)},createTeamSpaceMembership:function(t,e){return i.post("team_space_memberships",e,{headers:{"x-contentful-team":t}}).then((function(t){return I(i,t.data)}),r)},getApiKey:function(t){return i.get("api_keys/"+t).then((function(t){return W(i,t.data)}),r)},getApiKeys:function(){return i.get("api_keys").then((function(t){return B(i,t.data)}),r)},getPreviewApiKeys:function(){return i.get("preview_api_keys").then((function(t){return J(i,t.data)}),r)},getPreviewApiKey:function(t){return i.get("preview_api_keys/"+t).then((function(t){return $(i,t.data)}),r)},createApiKey:function(t){return i.post("api_keys",t).then((function(t){return W(i,t.data)}),r)},createApiKeyWithId:function(t,e){return i.put("api_keys/"+t,e).then((function(t){return W(i,t.data)}),r)},getUiExtension:function(t){return Z("getUiExtension"),i.get("extensions/"+t).then((function(t){return at(i,t.data)}),r)},getUiExtensions:function(){return Z("getUiExtensions"),i.get("extensions").then((function(t){return ut(i,t.data)}),r)},createUiExtension:function(t){return Z("createUiExtension"),i.post("extensions",t).then((function(t){return at(i,t.data)}),r)},createUiExtensionWithId:function(t,e){return Z("createUiExtensionWithId"),i.put("extensions/"+t,e).then((function(t){return at(i,t.data)}),r)},getEntrySnapshots:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Z("getEntrySnapshots"),i.get("entries/".concat(t,"/snapshots"),Object(Gt.b)({query:e})).then((function(t){return ot(i,t.data)}),r)},getContentTypeSnapshots:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Z("getContentTypeSnapshots"),i.get("content_types/".concat(t,"/snapshots"),Object(Gt.b)({query:e})).then((function(t){return ot(i,t.data)}),r)},createEnvironmentAliasWithId:function(t,e){return i.put("environment_aliases/"+t,e).then((function(t){return K(i,t.data)}),r)},getEnvironmentAlias:function(t){return i.get("environment_aliases/"+t).then((function(t){return K(i,t.data)}),r)},getEnvironmentAliases:function(){return i.get("environment_aliases").then((function(t){return X(i,t.data)}),r)}}}function nt(t,e){var n=t,r=Object(Gt.e)(ee()(e)),i=n.httpClientParams,a=i.hostUpload,u=i.defaultHostnameUpload,c=o(r,et({http:n.cloneWithNewParams({space:r.sys.id}),httpUpload:n.cloneWithNewParams({space:r.sys.id,host:a||u})}));return Object(Gt.c)(c)}function rt(t,e){var n=Object(Gt.e)(ee()(e));return Object(Gt.c)(n)}function ot(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:c({http:t,entityPath:"space_memberships",wrapperMethod:ot}),delete:s({http:t,entityPath:"space_memberships"})}}(t));return Object(Gt.c)(n)}function it(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:c({http:t,entityPath:Se,wrapperMethod:it}),delete:s({http:t,entityPath:Se})}}(t));return Object(Gt.c)(n)}function at(t){return{update:function(){var e=this.toPlainObject(),n=e.sys.team.sys.id;return t.put("teams/"+n+"/team_memberships/"+this.sys.id,e,{headers:{"X-Contentful-Version":this.sys.version||0}}).then((function(e){return ut(t,e.data)}),r)},delete:function(){var e=this.toPlainObject().sys.team.sys.id;return t.delete("teams/"+e+"/team_memberships/"+this.sys.id).then((function(){}),r)}}}function ut(t,e){var n=o(Object(Gt.e)(ee()(e)),at(t));return Object(Gt.c)(n)}function ct(t){return{update:function(){var e=this.toPlainObject(),n=ee()(e);return delete n.sys,t.put("team_space_memberships/"+this.sys.id,n,{headers:{"X-Contentful-Version":this.sys.version||0,"x-contentful-team":this.sys.team.sys.id}}).then((function(e){return st(t,e.data)}),r)},delete:s({http:t,entityPath:"team_space_memberships"})}}function st(t,e){var n=o(Object(Gt.e)(ee()(e)),ct(t));return Object(Gt.c)(n)}function ft(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{update:c({http:t,entityPath:"extensions",wrapperMethod:ft}),delete:s({http:t,entityPath:"extensions"})}}(t));return Object(Gt.c)(n)}function pt(t,e){var n=o(Object(Gt.e)(ee()(e)),function(t){return{delete:s({http:t,entityPath:"uploads"})}}(t));return Object(Gt.c)(n)}function lt(t,e){var n=o(Object(Gt.e)(ee()(e)),{});return Object(Gt.c)(n)}function dt(t,e){var n=o(Object(Gt.e)(ee()(e)),{});return Object(Gt.c)(n)}function ht(t){return{update:c({http:t,entityPath:ze,wrapperMethod:yt}),delete:s({http:t,entityPath:ze}),getCalls:function(){return t.get("webhooks/"+this.sys.id+"/calls").then((function(t){return t.data}),r)},getCall:function(e){return t.get("webhooks/"+this.sys.id+"/calls/"+e).then((function(t){return t.data}),r)},getHealth:function(){return t.get("webhooks/"+this.sys.id+"/health").then((function(t){return t.data}),r)}}}function yt(t,e){var n=o(Object(Gt.e)(ee()(e)),ht(t));return Object(Gt.c)(n)}function bt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vt(t){for(var e,n=1;n<arguments.length;n++)e=null==arguments[n]?{}:arguments[n],n%2?bt(Object(e),!0).forEach((function(n){mt(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):bt(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}));return t}function mt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function gt(t){return function(t){var e=t.http,n=Ie.space,o=n.wrapSpace,i=n.wrapSpaceCollection,a=Ie.user.wrapUser,u=Ie.personalAccessToken,c=u.wrapPersonalAccessToken,s=u.wrapPersonalAccessTokenCollection,f=Ie.organization,p=f.wrapOrganization,l=f.wrapOrganizationCollection,d=Ie.usage.wrapUsageCollection;return{getSpaces:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return e.get("",Object(Gt.b)({query:t})).then((function(t){return i(e,t.data)}),r)},getSpace:function(t){return e.get(t).then((function(t){return o(e,t.data)}),r)},createSpace:function(t,n){return e.post("",t,{headers:n?{"X-Contentful-Organization":n}:{}}).then((function(t){return o(e,t.data)}),r)},getOrganization:function(t){var n,o,i=null===(n=e.defaults)||void 0===n||null===(o=n.baseURL)||void 0===o?void 0:o.replace("/spaces/","/organizations/");return e.get("",{baseURL:i}).then((function(n){var r=n.data.items.find((function(e){return e.sys.id===t}));if(!r){var o=new Error("No organization was found with the ID ".concat(t," instead got ").concat(JSON.stringify(n)));return o.status=404,o.statusText="Not Found",Promise.reject(o)}return p(e,r)}),r)},getOrganizations:function(){var t,n,o=null===(t=e.defaults)||void 0===t||null===(n=t.baseURL)||void 0===n?void 0:n.replace("/spaces/","/organizations/");return e.get("",{baseURL:o}).then((function(t){return l(e,t.data)}),r)},getCurrentUser:function(){var t,n,o=null===(t=e.defaults)||void 0===t||null===(n=t.baseURL)||void 0===n?void 0:n.replace("/spaces/","/users/me/");return e.get("",{baseURL:o}).then((function(t){return a(e,t.data)}),r)},createPersonalAccessToken:function(t){var n,o,i=null===(n=e.defaults)||void 0===n||null===(o=n.baseURL)||void 0===o?void 0:o.replace("/spaces/","/users/me/access_tokens");return e.post("",t,{baseURL:i}).then((function(t){return c(e,t.data)}),r)},getPersonalAccessToken:function(t){var n,o,i=null===(n=e.defaults)||void 0===n||null===(o=n.baseURL)||void 0===o?void 0:o.replace("/spaces/","/users/me/access_tokens");return e.get(t,{baseURL:i}).then((function(t){return c(e,t.data)}),r)},getPersonalAccessTokens:function(){var t,n,o=null===(t=e.defaults)||void 0===t||null===(n=t.baseURL)||void 0===n?void 0:n.replace("/spaces/","/users/me/access_tokens");return e.get("",{baseURL:o}).then((function(t){return s(e,t.data)}),r)},getOrganizationUsage:function(t){var n,o,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=null===(n=e.defaults)||void 0===n||null===(o=n.baseURL)||void 0===o?void 0:o.replace("/spaces/","/organizations/".concat(t,"/organization_periodic_usages"));return e.get("",{baseURL:a,params:i}).then((function(t){return d(e,t.data)}),r)},getSpaceUsage:function(t){var n,o,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},a=null===(n=e.defaults)||void 0===n||null===(o=n.baseURL)||void 0===o?void 0:o.replace("/spaces/","/organizations/".concat(t,"/space_periodic_usages"));return e.get("",{baseURL:a,params:i}).then((function(t){return d(e,t.data)}),r)},rawRequest:function(t){return e(t).then((function(t){return t.data}),r)}}}({http:function(t){var e=Object(Gt.d)("contentful-management.js/".concat("6.3.2"),t.application,t.integration,t.feature);if(!(t=vt(vt({},{defaultHostname:"api.contentful.com",defaultHostnameUpload:"upload.contentful.com"}),ee()(t))).accessToken)throw new TypeError("Expected parameter accessToken");return t.headers=vt(vt({},t.headers),{"Content-Type":"application/vnd.contentful.management.v1+json","X-Contentful-User-Agent":e}),Object(Gt.a)(Fe.a,t)}(t)})}n.r(e),n.d(e,"createClient",(function(){return gt}));var wt={};n.r(wt),n.d(wt,"wrapApiKey",(function(){return h})),n.d(wt,"wrapApiKeyCollection",(function(){return oe}));var Ot={};n.r(Ot),n.d(Ot,"wrapAppDefinition",(function(){return y})),n.d(Ot,"wrapAppDefinitionCollection",(function(){return ae}));var jt={};n.r(jt),n.d(jt,"wrapAppInstallation",(function(){return v})),n.d(jt,"wrapAppInstallationCollection",(function(){return ue}));var xt={};n.r(xt),n.d(xt,"wrapAsset",(function(){return g})),n.d(xt,"wrapAssetCollection",(function(){return fe}));var _t={};n.r(_t),n.d(_t,"wrapEditorInterface",(function(){return O}));var Pt={};n.r(Pt),n.d(Pt,"wrapSnapshot",(function(){return j})),n.d(Pt,"wrapSnapshotCollection",(function(){return pe}));var Ct={};n.r(Ct),n.d(Ct,"wrapContentType",(function(){return _})),n.d(Ct,"wrapContentTypeCollection",(function(){return de}));var At={};n.r(At),n.d(At,"wrapEntry",(function(){return C})),n.d(At,"wrapEntryCollection",(function(){return he}));var Et={};n.r(Et),n.d(Et,"createDeleteTag",(function(){return A})),n.d(Et,"createUpdateTag",(function(){return E})),n.d(Et,"default",(function(){return T})),n.d(Et,"wrapTag",(function(){return S})),n.d(Et,"wrapTagCollection",(function(){return ye}));var Tt={};n.r(Tt),n.d(Tt,"wrapEnvironment",(function(){return R})),n.d(Tt,"wrapEnvironmentCollection",(function(){return be}));var St={};n.r(St),n.d(St,"wrapEnvironmentAlias",(function(){return D})),n.d(St,"wrapEnvironmentAliasCollection",(function(){return ve}));var Ut={};n.r(Ut),n.d(Ut,"wrapLocale",(function(){return z})),n.d(Ut,"wrapLocaleCollection",(function(){return me}));var kt={};n.r(kt),n.d(kt,"wrapOrganization",(function(){return I})),n.d(kt,"wrapOrganizationCollection",(function(){return Oe}));var Mt={};n.r(Mt),n.d(Mt,"wrapOrganizationInvitation",(function(){return q}));var Lt={};n.r(Lt),n.d(Lt,"wrapOrganizationMembership",(function(){return W})),n.d(Lt,"wrapOrganizationMembershipCollection",(function(){return je}));var Rt={};n.r(Rt),n.d(Rt,"wrapPersonalAccessToken",(function(){return V})),n.d(Rt,"wrapPersonalAccessTokenCollection",(function(){return xe}));var Dt={};n.r(Dt),n.d(Dt,"wrapPreviewApiKey",(function(){return H})),n.d(Dt,"wrapPreviewApiKeyCollection",(function(){return _e}));var zt={};n.r(zt),n.d(zt,"wrapRole",(function(){return K})),n.d(zt,"wrapRoleCollection",(function(){return Pe}));var Nt={};n.r(Nt),n.d(Nt,"createDeleteScheduledAction",(function(){return X})),n.d(Nt,"default",(function(){return Q})),n.d(Nt,"wrapScheduledAction",(function(){return $})),n.d(Nt,"wrapScheduledActionCollection",(function(){return Ce}));var It={};n.r(It),n.d(It,"wrapSpace",(function(){return nt})),n.d(It,"wrapSpaceCollection",(function(){return Ae}));var qt={};n.r(qt),n.d(qt,"wrapSpaceMember",(function(){return rt})),n.d(qt,"wrapSpaceMemberCollection",(function(){return Ee}));var Ft={};n.r(Ft),n.d(Ft,"wrapSpaceMembership",(function(){return ot})),n.d(Ft,"wrapSpaceMembershipCollection",(function(){return Te}));var Wt={};n.r(Wt),n.d(Wt,"wrapTeam",(function(){return it})),n.d(Wt,"wrapTeamCollection",(function(){return Ue}));var Bt={};n.r(Bt),n.d(Bt,"wrapTeamMembership",(function(){return ut})),n.d(Bt,"wrapTeamMembershipCollection",(function(){return ke}));var Vt={};n.r(Vt),n.d(Vt,"wrapTeamSpaceMembership",(function(){return st})),n.d(Vt,"wrapTeamSpaceMembershipCollection",(function(){return Me}));var Ht={};n.r(Ht),n.d(Ht,"wrapUiExtension",(function(){return ft})),n.d(Ht,"wrapUiExtensionCollection",(function(){return Le}));var Kt={};n.r(Kt),n.d(Kt,"wrapUpload",(function(){return pt}));var Xt={};n.r(Xt),n.d(Xt,"wrapUsage",(function(){return lt})),n.d(Xt,"wrapUsageCollection",(function(){return Re}));var Qt={};n.r(Qt),n.d(Qt,"wrapUser",(function(){return dt})),n.d(Qt,"wrapUserCollection",(function(){return De}));var $t={};n.r($t),n.d($t,"wrapWebhook",(function(){return yt})),n.d($t,"wrapWebhookCollection",(function(){return Ne}));var Jt,Gt=n(0),Yt=n(3),Zt=n.n(Yt),te=n(1),ee=n.n(te),ne=function(t){return function(e,n){var r=Object(Gt.e)(ee()(n));return r.items=r.items.map((function(n){return t(e,n)})),r}},re=function(t){return{headers:{"X-Contentful-Version":Number.isInteger(t)?t:0}}},oe=ne(h),ie="app_definitions",ae=ne(y),ue=ne(v),ce=3e3,se=10,fe=ne(g),pe=ne(j),le=function(t,e,n,r){var o=t.fields.find((function(t){return t.id===e}));return o?(o[n]=r,t.update()):Promise.reject(new Error("Tried to omitAndDeleteField on a nonexistent field, ".concat(e,", on the content type ").concat(t.name,".")))},de=ne(_),he=ne(C),ye=ne(S),be=ne(R),ve=ne(D),me=ne(z),ge=n(13),we=n.n(ge),Oe=ne(I),je=ne(W),xe=ne(V),_e=ne(H),Pe=ne(K);!function(t){t.scheduled="scheduled",t.inProgress="inProgress",t.succeeded="succeeded",t.failed="failed",t.canceled="canceled"}(Jt||(Jt={}));var Ce=ne($),Ae=ne(nt),Ee=ne(rt),Te=ne(ot),Se="teams",Ue=ne(it),ke=ne(ut),Me=ne(st),Le=ne(ft),Re=ne(lt),De=ne(dt),ze="webhook_definitions",Ne=ne(yt),Ie={apiKey:wt,appDefinition:Ot,appInstallation:jt,asset:xt,contentType:Ct,editorInterface:_t,entry:At,environment:Tt,environmentAlias:St,locale:Ut,organization:kt,organizationInvitation:Mt,organizationMembership:Lt,personalAccessToken:Rt,previewApiKey:Dt,role:zt,scheduledAction:Nt,snapshot:Pt,space:It,spaceMember:qt,spaceMembership:Ft,tag:Et,team:Wt,teamMembership:Bt,teamSpaceMembership:Vt,uiExtension:Ht,upload:Kt,usage:Xt,user:Qt,webhook:$t},qe=n(34),Fe=n.n(qe)}])}));
|
|
@@ -8374,7 +8374,7 @@ function createCMAHttpClient(params) {
|
|
|
8374
8374
|
defaultHostnameUpload: 'upload.contentful.com'
|
|
8375
8375
|
};
|
|
8376
8376
|
var userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])( // @ts-expect-error
|
|
8377
|
-
"contentful-management.js/".concat("6.3.
|
|
8377
|
+
"contentful-management.js/".concat("6.3.2"), params.application, params.integration, params.feature);
|
|
8378
8378
|
var requiredHeaders = {
|
|
8379
8379
|
'Content-Type': 'application/vnd.contentful.management.v1+json',
|
|
8380
8380
|
'X-Contentful-User-Agent': userAgentHeader
|