text: module.exports=function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(t){return e[t]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=22)}([function(e,t,n){"use strict";function r(e){return"[object Array]"===p.call(e)}function o(e){return void 0===e}function i(e){return null!==e&&"object"==typeof e}function a(e){if("[object Object]"!==p.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function s(e){return"[object Function]"===p.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}var u=n(7),p=Object.prototype.toString;e.exports={isArray:r,isArrayBuffer:function(e){return"[object ArrayBuffer]"===p.call(e)},isBuffer:function(e){return null!==e&&!o(e)&&null!==e.constructor&&!o(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:i,isPlainObject:a,isUndefined:o,isDate:function(e){return"[object Date]"===p.call(e)},isFile:function(e){return"[object File]"===p.call(e)},isBlob:function(e){return"[object Blob]"===p.call(e)},isFunction:s,isStream:function(e){return i(e)&&s(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e 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 e(){function t(t,o){n[o]=a(n[o])&&a(t)?e(n[o],t):a(t)?e({},t):r(t)?t.slice():t}for(var n={},o=0,i=arguments.length;o<i;o++)c(arguments[o],t);return n},extend:function(e,t,n){return c(t,(function(t,r){e[r]=n&&"function"==typeof t?u(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},function(e){var t=Function.prototype,n=Object.prototype,r=t.toString,o=n.hasOwnProperty,i=r.call(Object),a=n.toString,s=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);e.exports=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=a.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(t){}return t}(e))return!1;var t=s(e);if(null===t)return!0;var n=o.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&r.call(n)==i}},function(e){e.exports=require("os")},function(e){"use strict";var t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var e=[],t=0;256>t;++t)e.push("%"+((16>t?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;1<e.length;){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var o=[],i=0;i<r.length;++i)void 0!==r[i]&&o.push(r[i]);t.obj[t.prop]=o}}},i=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:i,assign:function(e,t){return Object.keys(t).reduce((function(e,n){return e[n]=t[n],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],p=a[u];"object"==typeof p&&null!==p&&-1===n.indexOf(p)&&(t.push({obj:a,prop:u}),n.push(p))}return o(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(e,t,n){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=e+""),"iso-8859-1"===n)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var i,a="",s=0;s<o.length;++s)45===(i=o.charCodeAt(s))||46===i||95===i||126===i||48<=i&&57>=i||65<=i&&90>=i||97<=i&&122>=i?a+=o.charAt(s):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]:(s+=1,i=65536+((1023&i)<<10|1023&o.charCodeAt(s)),a+=r[240|i>>18]+r[128|63&i>>12]+r[128|63&i>>6]+r[128|63&i]);return a},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(n(e)){for(var r=[],o=0;o<e.length;o+=1)r.push(t(e[o]));return r}return t(e)},merge:function e(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)||!t.call(Object.prototype,o))&&(r[o]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(o);var s=r;return n(r)&&!n(o)&&(s=i(r,a)),n(r)&&n(o)?(o.forEach((function(n,o){if(t.call(r,o)){var i=r[o];i&&"object"==typeof i&&n&&"object"==typeof n?r[o]=e(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]=t.call(n,r)?e(n[r],i,a):i,n}),s)}}},function(e,t,n){"use strict";function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(0);e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(o.isURLSearchParams(t))i=t.toString();else{var a=[];o.forEach(t,(function(e,t){null==e||(o.isArray(e)?t+="[]":e=[e],o.forEach(e,(function(e){o.isDate(e)?e=e.toISOString():o.isObject(e)&&(e=JSON.stringify(e)),a.push(r(t)+"="+r(e))})))})),i=a.join("&")}if(i){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},function(e,t,n){"use strict";var r=n(11);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";var r=String.prototype.replace,o=/%20/g,i=n(3),a={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=i.assign({default:a.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return e+""}}},a)},function(e){"use strict";e.exports=function(e,t){return function(){for(var n=Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e,t){!o.isUndefined(e)&&o.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o=n(0),i=n(30),a={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var e;return"undefined"==typeof XMLHttpRequest?"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process)&&(e=n(37)):e=n(31),e}(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),o.isFormData(e)||o.isArrayBuffer(e)||o.isBuffer(e)||o.isStream(e)||o.isFile(e)||o.isBlob(e)?e:o.isArrayBufferView(e)?e.buffer:o.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):o.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return 200<=e&&300>e},headers:{common:{Accept:"application/json, text/plain, */*"}}};o.forEach(["delete","get","head"],(function(e){s.headers[e]={}})),o.forEach(["post","put","patch"],(function(e){s.headers[e]=o.merge(a)})),e.exports=s},function(e,t,n){"use strict";var r=n(5);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e.isAxiosError=!0,e.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}},e}},function(e,t,n){"use strict";var r=n(33),o=n(34);e.exports=function(e,t){return e&&!r(t)?o(e,t):t}},function(e){e.exports=require("http")},function(e){e.exports=require("https")},function(e,t,n){function r(e,t){h.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){n._processResponse(e)},this._performRequest()}function o(e,t){clearTimeout(e._timeout),e._timeout=setTimeout((function(){e.emit("timeout")}),t)}function i(){clearTimeout(this._timeout)}function a(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(o){var i=o+":",a=n[i]=e[o],s=t[o]=Object.create(a);Object.defineProperties(s,{request:{value:function(e,o,a){if("string"==typeof e){var s=e;try{e=c(new d(s))}catch(t){e=l.parse(s)}}else d&&e instanceof d?e=c(e):(a=o,o=e,e={protocol:i});return"function"==typeof o&&(a=o,o=null),(o=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,o)).nativeProtocols=n,m.equal(o.protocol,i,"protocol mismatch"),b("options",o),new r(o,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var r=s.request(e,t,n);return r.end(),r},configurable:!0,enumerable:!0,writable:!0}})})),t}function s(){}function c(e){var t={protocol:e.protocol,hostname:e.hostname.startsWith("[")?e.hostname.slice(1,-1):e.hostname,hash:e.hash,search:e.search,pathname:e.pathname,path:e.pathname+e.search,href:e.href};return""!==e.port&&(t.port=+e.port),t}function u(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return n}function p(e,t){function n(e){Error.captureStackTrace(this,this.constructor),this.message=e||t}return n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Error ["+e+"]",n.prototype.code=e,n}var l=n(16),d=l.URL,f=n(13),y=n(14),h=n(38).Writable,m=n(39),b=n(40),g=Object.create(null);["abort","aborted","connect","error","socket","timeout"].forEach((function(e){g[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}}));var O=p("ERR_FR_REDIRECTION_FAILURE",""),v=p("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded"),j=p("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),w=p("ERR_STREAM_WRITE_AFTER_END","write after end");r.prototype=Object.create(h.prototype),r.prototype.write=function(e,t,n){if(this._ending)throw new w;if(!("string"==typeof e||"object"==typeof e&&"length"in e))throw new TypeError("data should be a string, Buffer or Uint8Array");return"function"==typeof t&&(n=t,t=null),0===e.length?void(n&&n()):void(this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new j),this.abort()))},r.prototype.end=function(e,t,n){if("function"==typeof e?(n=e,e=t=null):"function"==typeof t&&(n=t,t=null),e){var r=this,o=this._currentRequest;this.write(e,t,(function(){r._ended=!0,o.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},r.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},r.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},r.prototype.setTimeout=function(e,t){if(t&&this.once("timeout",t),this.socket)o(this,e);else{var n=this;this._currentRequest.once("socket",(function(){o(n,e)}))}return this.once("response",i),this.once("error",i),this},["abort","flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){r.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(r.prototype,e,{get:function(){return this._currentRequest[e]}})})),r.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(!e.hostname&&(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");0>t?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},r.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(t){if(this._options.agents){var n=e.substr(0,e.length-1);this._options.agent=this._options.agents[n]}var r=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o in this._currentUrl=l.format(this._options),r._redirectable=this,g)o&&r.on(o,g[o]);if(this._isRedirect){var i=0,a=this,s=this._requestBodyBuffers;!function e(t){if(r===a._currentRequest)if(t)a.emit("error",t);else if(i<s.length){var n=s[i++];r.finished||r.write(n.data,n.encoding,e)}else a._ended&&r.end()}()}}else this.emit("error",new TypeError("Unsupported protocol "+e))},r.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n=e.headers.location;if(n&&!1!==this._options.followRedirects&&300<=t&&400>t){if(this._currentRequest.removeAllListeners(),this._currentRequest.on("error",s),this._currentRequest.abort(),e.destroy(),++this._redirectCount>this._options.maxRedirects)return void this.emit("error",new v);(301!==t&&302!==t||"POST"!==this._options.method)&&(303!==t||/^(?:GET|HEAD)$/.test(this._options.method))||(this._options.method="GET",this._requestBodyBuffers=[],u(/^content-/i,this._options.headers));var r=u(/^host$/i,this._options.headers)||l.parse(this._currentUrl).hostname,o=l.resolve(this._currentUrl,n);b("redirecting to",o),this._isRedirect=!0;var i=l.parse(o);if(Object.assign(this._options,i),i.hostname!==r&&u(/^authorization$/i,this._options.headers),"function"==typeof this._options.beforeRedirect){var a={headers:e.headers};try{this._options.beforeRedirect.call(null,this._options,a)}catch(e){return void this.emit("error",e)}this._sanitizeOptions(this._options)}try{this._performRequest()}catch(e){var c=new O("Redirected request failed: "+e.message);c.cause=e,this.emit("error",c)}}else e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),this._requestBodyBuffers=[]},e.exports=a({http:f,https:y}),e.exports.wrap=a},function(e){e.exports=require("url")},function(e,t,n){function r(e){function n(){if(n.enabled){var e=n,o=+new Date,i=o-(r||o);e.diff=i,e.prev=r,e.curr=o,r=o;for(var a=Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var o=t.formatters[r];if("function"==typeof o){var i=a[c];n=o.call(e,i),a.splice(c,1),c--}return n})),t.formatArgs.call(e,a);var u=n.log||t.log||console.log.bind(console);u.apply(e,a)}}var r;return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),n.destroy=o,"function"==typeof t.init&&t.init(n),t.instances.push(n),n}function o(){var e=t.instances.indexOf(this);return-1!==e&&(t.instances.splice(e,1),!0)}(t=e.exports=r.debug=r.default=r).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];var n,r=("string"==typeof e?e:"").split(/[\s,]+/),o=r.length;for(n=0;n<o;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")));for(n=0;n<t.instances.length;n++){var i=t.instances[n];i.enabled=t.enabled(i.namespace)}},t.enabled=function(e){if("*"===e[e.length-1])return!0;var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(43),t.instances=[],t.names=[],t.skips=[],t.formatters={}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t){function n(e,t){return r.isPlainObject(e)&&r.isPlainObject(t)?r.merge(e,t):r.isPlainObject(t)?r.merge({},t):r.isArray(t)?t.slice():t}function o(o){r.isUndefined(t[o])?!r.isUndefined(e[o])&&(i[o]=n(void 0,e[o])):i[o]=n(e[o],t[o])}t=t||{};var i={},a=["url","method","data"],s=["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"],u=["validateStatus"];r.forEach(a,(function(e){r.isUndefined(t[e])||(i[e]=n(void 0,t[e]))})),r.forEach(s,o),r.forEach(c,(function(o){r.isUndefined(t[o])?!r.isUndefined(e[o])&&(i[o]=n(void 0,e[o])):i[o]=n(void 0,t[o])})),r.forEach(u,(function(r){r in t?i[r]=n(e[r],t[r]):r in e&&(i[r]=n(void 0,e[r]))}));var p=a.concat(s).concat(c).concat(u),l=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===p.indexOf(e)}));return r.forEach(l,o),i}},function(e){"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},function(e,t,n){"use strict";var r=n(23),o=n(24),i=n(6);e.exports={formats:i,parse:o,stringify:r}},function(e,t,n){e.exports=n(25)},function(e,t,n){e.exports=n(54)},function(e,t,n){"use strict";var r=n(3),o=n(6),i=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},s=Array.isArray,c=Array.prototype.push,u=function(e,t){c.apply(e,s(t)?t:[t])},p=Date.prototype.toISOString,l=o.default,d={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:r.encode,encodeValuesOnly:!1,format:l,formatter:o.formatters[l],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},f=function e(t,n,o,i,a,c,p,l,f,y,h,m,b){var g=t;if("function"==typeof p?g=p(n,g):g instanceof Date?g=y(g):"comma"===o&&s(g)&&(g=r.maybeMap(g,(function(e){return e instanceof Date?y(e):e})).join(",")),null===g){if(i)return c&&!m?c(n,d.encoder,b,"key"):n;g=""}if(function(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||"symbol"==typeof e||"bigint"==typeof e}(g)||r.isBuffer(g))return c?[h(m?n:c(n,d.encoder,b,"key"))+"="+h(c(g,d.encoder,b,"value"))]:[h(n)+"="+h(g+"")];var O,v=[];if(void 0===g)return v;if(s(p))O=p;else{var j=Object.keys(g);O=l?j.sort(l):j}for(var w=0;w<O.length;++w){var I=O[w],P=g[I];if(!a||null!==P){var T=s(g)?"function"==typeof o?o(n,I):n:n+(f?"."+I:"["+I+"]");u(v,e(P,T,o,i,a,c,p,l,f,y,h,m,b))}}return v},y=function(e){if(!e)return d;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=o.default;if(void 0!==e.format){if(!i.call(o.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=o.formatters[n],a=d.filter;return("function"==typeof e.filter||s(e.filter))&&(a=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:void 0===e.allowDots?d.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:a,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var n,r=e,o=y(t);"function"==typeof o.filter?r=(0,o.filter)("",r):s(o.filter)&&(n=o.filter);var i=[];if("object"!=typeof r||null===r)return"";var c=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices",p=a[c];n||(n=Object.keys(r)),o.sort&&n.sort(o.sort);for(var l,d=0;d<n.length;++d)l=n[d],(!o.skipNulls||null!==r[l])&&u(i,f(r[l],l,p,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.formatter,o.encodeValuesOnly,o.charset));var h=i.join(o.delimiter),m=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),0<h.length?m+h:""}},function(e,t,n){"use strict";var r=n(3),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},s=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&-1<e.indexOf(",")?e.split(","):e},u=function(e,t){var n,u={},p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,l=t.parameterLimit===1/0?void 0:t.parameterLimit,d=p.split(t.delimiter,l),f=-1,y=t.charset;if(t.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?y="utf-8":"utf8=%26%2310003%3B"===d[n]&&(y="iso-8859-1"),f=n,n=d.length);for(n=0;n<d.length;++n)if(n!==f){var h,m,b=d[n],g=b.indexOf("]="),O=-1===g?b.indexOf("="):g+1;-1===O?(h=t.decoder(b,a.decoder,y,"key"),m=t.strictNullHandling?null:""):(h=t.decoder(b.slice(0,O),a.decoder,y,"key"),m=r.maybeMap(c(b.slice(O+1),t),(function(e){return t.decoder(e,a.decoder,y,"value")}))),m&&t.interpretNumericEntities&&"iso-8859-1"===y&&(m=s(m)),-1<b.indexOf("[]=")&&(m=i(m)?[m]:m),u[h]=o.call(u,h)?r.combine(u[h],m):m}return u},p=function(e,t,n,r){for(var o=r?t:c(t,n),i=e.length-1;0<=i;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var u="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,p=parseInt(u,10);n.parseArrays||""!==u?!isNaN(p)&&s!==u&&p+""===u&&0<=p&&n.parseArrays&&p<=n.arrayLimit?(a=[])[p]=o:a[u]=o:a={0:o}}o=a}return o},l=function(e,t,n,r){if(e){var i=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,s=0<n.depth&&/(\[[^[\]]*])/.exec(i),c=s?i.slice(0,s.index):i,u=[];if(c){if(!n.plainObjects&&o.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}for(var l=0;0<n.depth&&null!==(s=a.exec(i))&&l<n.depth;){if(l+=1,!n.plainObjects&&o.call(Object.prototype,s[1].slice(1,-1))&&!n.allowPrototypes)return;u.push(s[1])}return s&&u.push("["+i.slice(s.index)+"]"),p(u,t,n,r)}},d=function(e){if(!e)return a;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}};e.exports=function(e,t){var n=d(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var o="string"==typeof e?u(e,n):e,i=n.plainObjects?Object.create(null):{},a=Object.keys(o),s=0;s<a.length;++s){var c=a[s],p=l(c,o[c],n,"string"==typeof e);i=r.merge(i,p,n)}return r.compact(i)}},function(e,t,n){"use strict";function r(e){var t=new a(e),n=i(a.prototype.request,t);return o.extend(n,a.prototype,t),o.extend(n,t),n}var o=n(0),i=n(7),a=n(26),s=n(18),c=r(n(9));c.Axios=a,c.create=function(e){return r(s(c.defaults,e))},c.Cancel=n(19),c.CancelToken=n(51),c.isCancel=n(8),c.all=function(e){return Promise.all(e)},c.spread=n(52),c.isAxiosError=n(53),e.exports=c,e.exports.default=c},function(e,t,n){"use strict";function r(e){this.defaults=e,this.interceptors={request:new a,response:new a}}var o=n(0),i=n(4),a=n(27),s=n(28),c=n(18);r.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=c(this.defaults,e)).method=e.method?e.method.toLowerCase():this.defaults.method?this.defaults.method.toLowerCase():"get";var t=[s,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},r.prototype.getUri=function(e){return e=c(this.defaults,e),i(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],(function(e){r.prototype[e]=function(t,n){return this.request(c(n||{},{method:e,url:t,data:(n||{}).data}))}})),o.forEach(["post","put","patch"],(function(e){r.prototype[e]=function(t,n,r){return this.request(c(r||{},{method:e,url:t,data:n}))}})),e.exports=r},function(e,t,n){"use strict";function r(){this.handlers=[]}var o=n(0);r.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){o.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},function(e,t,n){"use strict";function r(e){e.cancelToken&&e.cancelToken.throwIfRequested()}var o=n(0),i=n(29),a=n(8),s=n(9);e.exports=function(e){return r(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=o.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),o.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return r(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(r(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";var r=n(0);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(0),o=n(10),i=n(32),a=n(4),s=n(12),c=n(35),u=n(36),p=n(5);e.exports=function(e){return new Promise((function(t,n){var l=e.data,d=e.headers;r.isFormData(l)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",h=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";d.Authorization="Basic "+btoa(y+":"+h)}var m=s(e.baseURL,e.url);if(f.open(e.method.toUpperCase(),a(m,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in f?c(f.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:r,config:e,request:f};o(t,n,i),f=null}},f.onabort=function(){f&&(n(p("Request aborted",e,"ECONNABORTED",f)),f=null)},f.onerror=function(){n(p("Network Error",e,null,f)),f=null},f.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(p(t,e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var b=(e.withCredentials||u(m))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;b&&(d[e.xsrfHeaderName]=b)}if("setRequestHeader"in f&&r.forEach(d,(function(e,t){void 0===l&&"content-type"===t.toLowerCase()?delete d[t]:f.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),e.responseType)try{f.responseType=e.responseType}catch(n){if("json"!==e.responseType)throw n}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),n(e),f=null)})),l||(l=null),f.send(l)}))}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(0),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"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&0<=o.indexOf(t))return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(0);e.exports=r.isStandardBrowserEnv()?function(){function e(e){var t=e;return n&&(o.setAttribute("href",t),t=o.href),o.setAttribute("href",t),{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 t,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return t=e(window.location.href),function(n){var o=r.isString(n)?e(n):n;return o.protocol===t.protocol&&o.host===t.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(0),o=n(10),i=n(12),a=n(4),s=n(13),c=n(14),u=n(15).http,p=n(15).https,l=n(16),d=n(49),f=n(50),y=n(5),h=n(11),m=/https:?/;e.exports=function(e){return new Promise((function(t,n){var b,g=function(e){t(e)},O=function(e){n(e)},v=e.data,j=e.headers;if(j["User-Agent"]||j["user-agent"]||(j["User-Agent"]="axios/"+f.version),v&&!r.isStream(v)){if(Buffer.isBuffer(v));else if(r.isArrayBuffer(v))v=Buffer.from(new Uint8Array(v));else{if(!r.isString(v))return O(y("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",e));v=Buffer.from(v,"utf-8")}j["Content-Length"]=v.length}e.auth&&(b=(e.auth.username||"")+":"+(e.auth.password||""));var w=i(e.baseURL,e.url),I=l.parse(w),P=I.protocol||"http:";if(!b&&I.auth){var T=I.auth.split(":");b=(T[0]||"")+":"+(T[1]||"")}b&&delete j.Authorization;var C=m.test(P),A=C?e.httpsAgent:e.httpAgent,E={path:a(I.path,e.params,e.paramsSerializer).replace(/^\?/,""),method:e.method.toUpperCase(),headers:j,agent:A,agents:{http:e.httpAgent,https:e.httpsAgent},auth:b};e.socketPath?E.socketPath=e.socketPath:(E.hostname=I.hostname,E.port=I.port);var S=e.proxy;if(!S&&!1!==S){var M=P.slice(0,-1)+"_proxy",x=process.env[M]||process.env[M.toUpperCase()];if(x){var D=l.parse(x),k=process.env.no_proxy||process.env.NO_PROXY,$=!0;if(k)$=!k.split(",").map((function(e){return e.trim()})).some((function(e){return!!e&&("*"===e||"."===e[0]&&I.hostname.substr(I.hostname.length-e.length)===e||I.hostname===e)}));if($&&(S={host:D.hostname,port:D.port,protocol:D.protocol},D.auth)){var z=D.auth.split(":");S.auth={username:z[0],password:z[1]}}}}S&&(E.headers.host=I.hostname+(I.port?":"+I.port:""),function e(t,n,r){if(t.hostname=n.host,t.host=n.host,t.port=n.port,t.path=r,n.auth){var o=Buffer.from(n.auth.username+":"+n.auth.password,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+o}t.beforeRedirect=function(t){t.headers.host=t.host,e(t,n,t.href)}}(E,S,P+"//"+I.hostname+(I.port?":"+I.port:"")+E.path));var _,F=C&&(!S||m.test(S.protocol));e.transport?_=e.transport:0===e.maxRedirects?_=F?c:s:(e.maxRedirects&&(E.maxRedirects=e.maxRedirects),_=F?p:u),-1<e.maxBodyLength&&(E.maxBodyLength=e.maxBodyLength);var R=_.request(E,(function(t){if(!R.aborted){var n=t,i=t.req||R;if(204!==t.statusCode&&"HEAD"!==i.method&&!1!==e.decompress)switch(t.headers["content-encoding"]){case"gzip":case"compress":case"deflate":n=n.pipe(d.createUnzip()),delete t.headers["content-encoding"]}var a={status:t.statusCode,statusText:t.statusMessage,headers:t.headers,config:e,request:i};if("stream"===e.responseType)a.data=n,o(g,O,a);else{var s=[];n.on("data",(function(t){s.push(t),-1<e.maxContentLength&&Buffer.concat(s).length>e.maxContentLength&&(n.destroy(),O(y("maxContentLength size of "+e.maxContentLength+" exceeded",e,null,i)))})),n.on("error",(function(t){R.aborted||O(h(t,e,null,i))})),n.on("end",(function(){var t=Buffer.concat(s);"arraybuffer"!==e.responseType&&(t=t.toString(e.responseEncoding),(!e.responseEncoding||"utf8"===e.responseEncoding)&&(t=r.stripBOM(t))),a.data=t,o(g,O,a)}))}}}));R.on("error",(function(t){R.aborted&&"ERR_FR_TOO_MANY_REDIRECTS"!==t.code||O(h(t,e,null,R))})),e.timeout&&R.setTimeout(e.timeout,(function(){R.abort(),O(y("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",R))})),e.cancelToken&&e.cancelToken.promise.then((function(e){R.aborted||(R.abort(),O(e))})),r.isStream(v)?v.on("error",(function(t){O(h(t,e,null,R))})).pipe(R):R.end(v)}))}},function(e){e.exports=require("stream")},function(e){e.exports=require("assert")},function(e,t,n){var r;try{r=n(41)("follow-redirects")}catch(e){r=function(){}}e.exports=r},function(e,t,n){e.exports="undefined"==typeof process||"renderer"===process.type?n(42):n(44)},function(e,t,n){function r(){var e;try{e=t.storage.debug}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e}(t=e.exports=n(17)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"===e||(o++,"%c"===e&&(i=o))})),e.splice(i,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=r,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(r())},function(e){function t(e){if(!(100<(e+="").length)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]),r=(t[2]||"ms").toLowerCase();return"years"===r||"year"===r||"yrs"===r||"yr"===r||"y"===r?n*u:"days"===r||"day"===r||"d"===r?n*c:"hours"===r||"hour"===r||"hrs"===r||"hr"===r||"h"===r?n*s:"minutes"===r||"minute"===r||"mins"===r||"min"===r||"m"===r?n*a:"seconds"===r||"second"===r||"secs"===r||"sec"===r||"s"===r?n*i:"milliseconds"===r||"millisecond"===r||"msecs"===r||"msec"===r||"ms"===r?n:void 0}}}function n(e){var t=Math.round;return e>=c?t(e/c)+"d":e>=s?t(e/s)+"h":e>=a?t(e/a)+"m":e>=i?t(e/i)+"s":e+"ms"}function r(e){return o(e,c,"day")||o(e,s,"hour")||o(e,a,"minute")||o(e,i,"second")||e+" ms"}function o(e,t,n){return e<t?void 0:e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}var i=1e3,a=60*i,s=60*a,c=24*s,u=365.25*c;e.exports=function(e,o){o=o||{};var i=typeof e;if("string"==i&&0<e.length)return t(e);if("number"==i&&!1===isNaN(e))return o.long?r(e):n(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},function(e,t,n){function r(){return process.env.DEBUG}var o=n(45),i=n(46);(t=e.exports=n(17)).init=function(e){e.inspectOpts={};for(var n=Object.keys(t.inspectOpts),r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(){return process.stderr.write(i.format.apply(i,arguments)+"\n")},t.formatArgs=function(e){var n=this.namespace;if(this.useColors){var r=this.color,o="[3"+(8>r?r:"8;5;"+r),i="  "+o+";1m"+n+" [0m";e[0]=i+e[0].split("\n").join("\n"+i),e.push(o+"m+"+t.humanize(this.diff)+"[0m")}else e[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+n+" "+e[0]},t.save=function(e){null==e?delete process.env.DEBUG:process.env.DEBUG=e},t.load=r,t.useColors=function(){return"colors"in t.inspectOpts?!!t.inspectOpts.colors:o.isatty(process.stderr.fd)},t.colors=[6,2,3,4,5,1];try{var a=n(47);a&&2<=a.level&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((function(e){return/^debug_/i.test(e)})).reduce((function(e,t){var n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(function(e,t){return t.toUpperCase()})),r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:+r),e[n]=r,e}),{}),t.formatters.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((function(e){return e.trim()})).join(" ")},t.formatters.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)},t.enable(r())},function(e){e.exports=require("tty")},function(e){e.exports=require("util")},function(e,t,n){"use strict";function r(e){return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:2<=e,has16m:3<=e}}(function(e){if(!1===s)return 0;if(i("color=16m")||i("color=full")||i("color=truecolor"))return 3;if(i("color=256"))return 2;if(e&&!e.isTTY&&!0!==s)return 0;const t=s?1:0;if("win32"===process.platform){const e=o.release().split(".");return 8<=+process.versions.node.split(".")[0]&&10<=+e[0]&&10586<=+e[2]?14931<=+e[2]?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in a)||"codeship"===a.CI_NAME?1:t;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return 3<=e?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:(a.TERM,t)}(e))}const o=n(2),i=n(48),a=process.env;let s;i("no-color")||i("no-colors")||i("color=false")?s=!1:(i("color")||i("colors")||i("color=true")||i("color=always"))&&(s=!0),"FORCE_COLOR"in a&&(s=0===a.FORCE_COLOR.length||0!==parseInt(a.FORCE_COLOR,10)),e.exports={supportsColor:r,stdout:r(process.stdout),stderr:r(process.stderr)}},function(e){"use strict";e.exports=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return-1!==r&&(!(-1!==o)||r<o)}},function(e){e.exports=require("zlib")},function(e){e.exports=JSON.parse('{"_args":[["axios@0.21.1","/home/circleci/project"]],"_from":"axios@0.21.1","_id":"axios@0.21.1","_inBundle":false,"_integrity":"sha512-dKQiRHxGD9PPRIUNIWvZhPTPpl1rf/OxTYKsqKUDjBwYylTvV7SjSHJb9ratfyzM6wCdLCOYLzs73qpg5c4iGA==","_location":"/axios","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"axios@0.21.1","name":"axios","escapedName":"axios","rawSpec":"0.21.1","saveSpec":null,"fetchSpec":"0.21.1"},"_requiredBy":["/"],"_resolved":"https://registry.npmjs.org/axios/-/axios-0.21.1.tgz","_spec":"0.21.1","_where":"/home/circleci/project","author":{"name":"Matt Zabriskie"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"bugs":{"url":"https://github.com/axios/axios/issues"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}],"dependencies":{"follow-redirects":"^1.10.0"},"description":"Promise based HTTP client for the browser and node.js","devDependencies":{"bundlesize":"^0.17.0","coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.0.2","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^20.1.0","grunt-karma":"^2.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^1.0.18","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^1.3.0","karma-chrome-launcher":"^2.2.0","karma-coverage":"^1.1.1","karma-firefox-launcher":"^1.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-opera-launcher":"^1.0.0","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^1.2.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^1.7.0","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^5.2.0","sinon":"^4.5.0","typescript":"^2.8.1","url-search-params":"^0.10.0","webpack":"^1.13.1","webpack-dev-server":"^1.14.1"},"homepage":"https://github.com/axios/axios","jsdelivr":"dist/axios.min.js","keywords":["xhr","http","ajax","promise","node"],"license":"MIT","main":"index.js","name":"axios","repository":{"type":"git","url":"git+https://github.com/axios/axios.git"},"scripts":{"build":"NODE_ENV=production grunt build","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","examples":"node ./examples/server.js","fix":"eslint --fix lib/**/*.js","postversion":"git push && git push --tags","preversion":"npm test","start":"node ./sandbox/server.js","test":"grunt test && bundlesize","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json"},"typings":"./index.d.ts","unpkg":"dist/axios.min.js","version":"0.21.1"}')},function(e,t,n){"use strict";function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new o(e),t(n.reason))}))}var o=n(19);r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},function(e){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e){"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},function(e,t,n){"use strict";function r(e,t){var n=!(!t||!t.isStrict),r=t&&t.realm||Vr,o=n?Nr:Wr,i=function(e,t){if(!e||"object"!=typeof e)return e;if(t.has(e))return t.get(e);var a,s=e.constructor;if(s===r.Object)return o(e,r,i,t);if(Hr(e)){if(n)return Nr(e,r,i,t);var c=e.length;a=new s,t.set(e,a);for(var u=0;u<c;u++)a[u]=i(e[u],t);return a}if(e instanceof r.Date)return new s(e.getTime());if(e instanceof r.RegExp)return(a=new s(e.source,e.flags||Kr(e))).lastIndex=e.lastIndex,a;if(r.Map&&e instanceof r.Map)return a=new s,t.set(e,a),e.forEach((function(e,n){a.set(n,i(e,t))})),a;if(r.Set&&e instanceof r.Set)return a=new s,t.set(e,a),e.forEach((function(e){a.add(i(e,t))})),a;if(r.Blob&&e instanceof r.Blob)return e.slice(0,e.size,e.type);if(r.Buffer&&r.Buffer.isBuffer(e))return a=r.Buffer.allocUnsafe?r.Buffer.allocUnsafe(e.length):new s(e.length),t.set(e,a),e.copy(a),a;if(r.ArrayBuffer){if(r.ArrayBuffer.isView(e))return a=new s(e.buffer.slice(0)),t.set(e,a),a;if(e instanceof r.ArrayBuffer)return a=e.slice(0),t.set(e,a),a}return"function"==typeof e.then||e instanceof Error||r.WeakMap&&e instanceof r.WeakMap||r.WeakSet&&e instanceof r.WeakSet?e:o(e,r,i,t)};return i(e,Lr())}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?a(Object(t),!0).forEach((function(n){i(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):a(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(e,t)||u(e,t)||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(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(){}function d(){return"undefined"!=typeof process&&!process.browser}function f(){return process.versions&&process.versions.node?"v".concat(process.versions.node):process.version}function y(e,t){var n=s(s({},{insecure:!1,retryOnError:!0,logHandler:function(e,t){if("error"===e&&t){var n=[t.name,t.message].filter((function(e){return e})).join(" - ");return console.error("[error] ".concat(n)),void console.error(t)}console.log("[".concat(e,"] ").concat(t))},headers:{},httpAgent:!1,httpsAgent:!1,timeout:3e4,proxy:!1,basePath:"",adapter:void 0,maxContentLength:1073741824}),t);if(!n.accessToken){var r=new TypeError("Expected parameter accessToken");throw n.logHandler("error",r),r}var o=n.insecure?"http":"https",i=n.space?"".concat(n.space,"/"):"",a=n.defaultHostname,u=n.insecure?80:443;if(n.host&&to.test(n.host)){var p=n.host.split(":");if(2===p.length){var h=c(p,2);a=h[0],u=h[1]}else a=p[0]}n.basePath&&(n.basePath="/".concat(n.basePath.split("/").filter(Boolean).join("/")));var m=t.baseURL||"".concat(o,"://").concat(a,":").concat(u).concat(n.basePath,"/spaces/").concat(i);n.headers.Authorization||"function"==typeof n.accessToken||(n.headers.Authorization="Bearer "+n.accessToken),d()&&(n.headers["user-agent"]="node.js/"+f(),n.headers["Accept-Encoding"]="gzip");var b={baseURL:m,headers:n.headers,httpAgent:n.httpAgent,httpsAgent:n.httpsAgent,paramsSerializer:Qr.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},g=e.create(b);return g.httpClientParams=t,g.cloneWithNewParams=function(n){return y(e,s(s({},Xr(t)),n))},n.onBeforeRequest&&g.interceptors.request.use(n.onBeforeRequest),"function"==typeof n.accessToken&&function(e,t){e.interceptors.request.use((function(e){return t().then((function(t){return e.headers=s(s({},e.headers),{},{Authorization:"Bearer ".concat(t)}),e}))}))}(g,n.accessToken),function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:5,n=e.defaults,r=n.responseLogger,o=void 0===r?l:r,i=n.requestLogger,a=void 0===i?l:i;e.interceptors.request.use((function(e){return a(e),e}),(function(e){return a(e),Promise.reject(e)})),e.interceptors.response.use((function(e){return o(e),e}),(function(n){var r=Math.pow,i=n.response,a=n.config;if(o(n),!a||!e.defaults.retryOnError)return Promise.reject(n);var s=null,c=0;if(i)Zr=0;else{if(s="Connection",++Zr>t)return n.attempts=Zr,Promise.reject(n);c=r(Math.SQRT2,Zr),i={}}if(500<=i.status&&600>i.status){s="Server ".concat(i.status);var u=(i.headers||{})["x-contentful-request-id"]||null;if(Yr[u]=Yr[u]||0,Yr[u]++,Yr[u]>t||!u)return n.attempts=Yr[u],Promise.reject(n);c=r(Math.SQRT2,Yr[u])}else 429===i.status&&(s="Rate limit",i.headers&&n.response.headers["x-contentful-ratelimit-reset"]&&(c=i.headers["x-contentful-ratelimit-reset"]));return s?(c=hn(1e3*c+200*Math.random()+500),e.defaults.logHandler("warning","".concat(s," error occurred. Waiting for ").concat(c," ms before retrying...")),delete a.httpAgent,delete a.httpsAgent,eo(c).then((function(){return e(a)}))):Promise.reject(n)}))}(g,n.retryLimit),n.onError&&g.interceptors.response.use((function(e){return e}),n.onError),g}function h(e){var t=e.query,n={};return delete t.resolveLinks,n.params=Xr(t),n}function m(e){var t,n=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(Object.getOwnPropertyNames(e));try{for(n.s();!(t=n.n()).done;){var r=e[t.value];r&&"object"===o(r)&&m(r)}}catch(e){n.e(e)}finally{n.f()}return Object.freeze(e)}function b(e){return m(e.sys||{}),e}function g(){var e=window;if(!e)return null;var t=e.navigator.userAgent,n=e.navigator.platform,r=null;return-1===["Macintosh","MacIntel","MacPPC","Mac68K"].indexOf(n)?-1===["iPhone","iPad","iPod"].indexOf(n)?-1===["Win32","Win64","Windows","WinCE"].indexOf(n)?/Android/.test(t)?r="Android":/Linux/.test(n)&&(r="Linux"):r="Windows":r="iOS":r="macOS",r}function O(e,t,n,r){var o=[];t&&o.push("app ".concat(t)),n&&o.push("integration ".concat(n)),r&&o.push("feature "+r),o.push("sdk ".concat(e));var i=null;try{"undefined"!=typeof window&&"navigator"in window&&"product"in window.navigator&&"ReactNative"===window.navigator.product?(i=g(),o.push("platform ReactNative")):d()?(i=function(){var e=Object(Jr.platform)()||"linux",t=Object(Jr.release)()||"0.0.0",n={android:"Android",aix:"Linux",darwin:"macOS",freebsd:"Linux",linux:"Linux",openbsd:"Linux",sunos:"Linux",win32:"Windows"};return e in n?"".concat(n[e]||"Linux","/").concat(t):null}(),o.push("platform node.js/".concat(f()))):(i=g(),o.push("platform browser"))}catch(t){i=null}return i&&o.push("os ".concat(i)),"".concat(o.filter((function(e){return""!==e})).join("; "),";")}function v(e){return Object.defineProperty(e,"toPlainObject",{enumerable:!1,configurable:!1,writable:!1,value:function(){return Xr(this)}})}function j(e){const t=e.config,n=e.response;let r;if(t&&t.headers&&t.headers.Authorization){const e="..."+t.headers.Authorization.substr(-5);t.headers.Authorization="Bearer "+e}if(!io()(n)||!io()(t))throw e;const o=null==n?void 0:n.data,i={status:null==n?void 0:n.status,statusText:null==n?void 0:n.statusText,message:"",details:{}};io()(t)&&(i.request={url:t.url,headers:t.headers,method:t.method,payloadData:t.data}),o&&io()(o)&&("requestId"in o&&(i.requestId=o.requestId||"UNKNOWN"),"message"in o&&(i.message=o.message||""),"details"in o&&(i.details=o.details||{}),"sys"in o&&"id"in o.sys&&(r=o.sys.id));const a=new Error;a.name=r&&"Unknown"!==r?r:`${null==n?void 0:n.status} ${null==n?void 0:n.statusText}`;try{a.message=JSON.stringify(i,null,"  ")}catch(e){var s;a.message=null!==(s=null==i?void 0:i.message)&&void 0!==s?s:""}throw a}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?w(Object(t),!0).forEach((function(n){P(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):w(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function P(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){var t;return null===(t=e.defaults.baseURL)||void 0===t?void 0:t.split("/spaces")[0]}function C(e,t,n){return e.get(t,I({baseURL:T(e)},n)).then(e=>e.data,j)}function A(e,t,n,r){return e.post(t,n,I({baseURL:T(e)},r)).then(e=>e.data,j)}function E(e,t,n,r){return e.put(t,n,I({baseURL:T(e)},r)).then(e=>e.data,j)}function S(e,t,n){return e.delete(t,I({baseURL:T(e)},n)).then(e=>e.data,j)}function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?M(Object(t),!0).forEach((function(n){D(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):M(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?k(Object(t),!0).forEach((function(n){z(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):k(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e){return e&&e.select&&!/sys/i.test(e.select)?$($({},e),{},{select:e.select+",sys"}):e}function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?F(Object(t),!0).forEach((function(n){q(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):F(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e){const t=e.httpClientParams,n=t.hostUpload,r=t.defaultHostnameUpload;return e.cloneWithNewParams({host:n||r})}function W(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(0<=t.indexOf(n))&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?N(Object(t),!0).forEach((function(n){H(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):N(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?V(Object(t),!0).forEach((function(n){G(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):V(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function G(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function J(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?Q(Object(t),!0).forEach((function(n){Y(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Q(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?Z(Object(t),!0).forEach((function(n){te(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function re(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?ne(Object(t),!0).forEach((function(n){oe(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ne(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?ie(Object(t),!0).forEach((function(n){se(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ie(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ce(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ue(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?ce(Object(t),!0).forEach((function(n){pe(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ce(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function le(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function de(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fe(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?de(Object(t),!0).forEach((function(n){ye(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):de(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?he(Object(t),!0).forEach((function(n){be(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):he(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oe(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?ge(Object(t),!0).forEach((function(n){ve(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ge(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function we(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?je(Object(t),!0).forEach((function(n){Ie(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):je(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Te(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?Pe(Object(t),!0).forEach((function(n){Ce(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Pe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function Ce(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ee(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?Ae(Object(t),!0).forEach((function(n){Se(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ae(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Me(){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 xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function De(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?xe(Object(t),!0).forEach((function(n){ke(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):xe(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $e(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(0<=t.indexOf(n))&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _e(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?ze(Object(t),!0).forEach((function(n){Fe(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ze(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function Fe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qe(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?Re(Object(t),!0).forEach((function(n){Ue(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Re(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Be(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?Le(Object(t),!0).forEach((function(n){We(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Le(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function We(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ke(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?Ne(Object(t),!0).forEach((function(n){He(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ne(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ve(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function Xe(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function Ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qe(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?Ge(Object(t),!0).forEach((function(n){Je(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ge(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ye(e,t){return Object.keys(t).reduce((e,n)=>(Object.defineProperty(e,n,{enumerable:!1,configurable:!0,writable:!1,value:t[n]}),e),e)}function Ze(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>{var t,n;return{spaceId:null!==(t=null===(n=e.sys.space)||void 0===n?void 0:n.sys.id)&&void 0!==t?t:"",apiKeyId:e.sys.id}};return{update:function(){return e({entityType:"ApiKey",action:"update",params:t(this),payload:this,headers:{}}).then(t=>Ze(e,t))},delete:function(){return e({entityType:"ApiKey",action:"delete",params:t(this)})}}}(e)))}function et(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>({organizationId:e.sys.organization.sys.id,appDefinitionId:e.sys.appDefinition.sys.id,appBundleId:e.sys.id});return{delete:function(){const n=this.toPlainObject();return e({entityType:"AppBundle",action:"delete",params:t(n)})}}}(e)))}function tt(e,t){return b(Ye(v(Xr(t)),function(e){const t=Rc.appBundle,n=t.wrapAppBundle,r=t.wrapAppBundleCollection,o=e=>({appDefinitionId:e.sys.id,organizationId:e.sys.organization.sys.id});return{update:function(){const t=this.toPlainObject();return e({entityType:"AppDefinition",action:"update",params:o(t),headers:{},payload:t}).then(t=>tt(e,t))},delete:function(){const t=this.toPlainObject();return e({entityType:"AppDefinition",action:"delete",params:o(t)})},getAppBundle(t){const r=this.toPlainObject();return e({entityType:"AppBundle",action:"get",params:{appBundleId:t,appDefinitionId:r.sys.id,organizationId:r.sys.organization.sys.id}}).then(t=>n(e,t))},getAppBundles(t={}){const n=this.toPlainObject();return e({entityType:"AppBundle",action:"getMany",params:{organizationId:n.sys.organization.sys.id,appDefinitionId:n.sys.id,query:t}}).then(t=>r(e,t))},createAppBundle(t){const r=this.toPlainObject();return e({entityType:"AppBundle",action:"create",params:{appDefinitionId:r.sys.id,organizationId:r.sys.organization.sys.id},payload:t}).then(t=>n(e,t))}}}(e)))}function nt(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,appDefinitionId:e.sys.appDefinition.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"AppInstallation",action:"upsert",params:t(n),headers:{},payload:n}).then(t=>nt(e,t))},delete:function(){const n=this.toPlainObject();return e({entityType:"AppInstallation",action:"delete",params:t(n)})}}}(e)))}function rt(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>({organizationId:e.sys.organization.sys.id,appUploadId:e.sys.id});return{delete:function(){const n=this.toPlainObject();return e({entityType:"AppUpload",action:"delete",params:t(n)})}}}(e)))}function ot(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function it(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?ot(Object(t),!0).forEach((function(n){at(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ot(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function at(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function st(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,assetId:e.sys.id});return{processForLocale:function(n,r){const o=this.toPlainObject();return e({entityType:"Asset",action:"processForLocale",params:it(it({},t(o)),{},{locale:n,options:r,asset:o})}).then(t=>st(e,t))},processForAllLocales:function(n){const r=this.toPlainObject();return e({entityType:"Asset",action:"processForAllLocales",params:it(it({},t(r)),{},{asset:r,options:n})}).then(t=>st(e,t))},update:function(){const n=this.toPlainObject();return e({entityType:"Asset",action:"update",params:t(n),payload:n,headers:{}}).then(t=>st(e,t))},delete:function(){const n=this.toPlainObject();return e({entityType:"Asset",action:"delete",params:t(n)})},publish:function(){const n=this.toPlainObject();return e({entityType:"Asset",action:"publish",params:t(n),payload:n}).then(t=>st(e,t))},unpublish:function(){const n=this.toPlainObject();return e({entityType:"Asset",action:"unpublish",params:t(n)}).then(t=>st(e,t))},archive:function(){const n=this.toPlainObject();return e({entityType:"Asset",action:"archive",params:t(n)}).then(t=>st(e,t))},unarchive:function(){const n=this.toPlainObject();return e({entityType:"Asset",action:"unarchive",params:t(n)}).then(t=>st(e,t))},isPublished:function(){const e=this.toPlainObject();return ac(e)},isUpdated:function(){const e=this.toPlainObject();return sc(e)},isDraft:function(){const e=this.toPlainObject();return cc(e)},isArchived:function(){const e=this.toPlainObject();return uc(e)}}}(e)))}function ct(e,t){return v(Xr(t))}function ut(e,t){return b(Ye(v(Xr(t)),function(e){return{update:function(){const t=this,n=t.toPlainObject();return e({entityType:"EditorInterface",action:"update",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,contentTypeId:t.sys.contentType.sys.id},payload:n}).then(t=>ut(e,t))},getControlForField:function(e){const t=(this.controls||[]).filter(t=>t.fieldId===e);return t&&0<t.length?t[0]:null}}}(e)))}function pt(e,t){return b(Ye(v(Xr(t)),{}))}function lt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(0<=t.indexOf(n))&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ft(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?dt(Object(t),!0).forEach((function(n){yt(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):dt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ht(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>{const t=e.toPlainObject();return{raw:t,params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,contentTypeId:t.sys.id}}};return{update:function(){const n=t(this),r=n.raw,o=n.params;return e({entityType:"ContentType",action:"update",params:o,payload:r}).then(t=>ht(e,t))},delete:function(){const n=t(this).params;return e({entityType:"ContentType",action:"delete",params:n}).then(()=>{})},publish:function(){const n=t(this),r=n.raw,o=n.params;return e({entityType:"ContentType",action:"publish",params:o,payload:r}).then(t=>ht(e,t))},unpublish:function(){const n=t(this).params;return e({entityType:"ContentType",action:"unpublish",params:n}).then(t=>ht(e,t))},getEditorInterface:function(){const n=t(this).params;return e({entityType:"EditorInterface",action:"get",params:n}).then(t=>ut(e,t))},getSnapshots:function(n={}){const r=t(this).params;return e({entityType:"Snapshot",action:"getManyForContentType",params:ft(ft({},r),{},{query:n})}).then(t=>dc(e,t))},getSnapshot:function(n){const r=t(this).params;return e({entityType:"Snapshot",action:"getForContentType",params:ft(ft({},r),{},{snapshotId:n})}).then(e=>pt(0,e))},isPublished:function(){return ac(this)},isUpdated:function(){return sc(this)},isDraft:function(){return cc(this)},omitAndDeleteField:function(n){const r=t(this),o=r.raw,i=r.params;return yc(e,ft(ft({},i),{},{fieldId:n}),o).then(t=>ht(e,t))}}}(e)))}function mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bt(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?mt(Object(t),!0).forEach((function(n){gt(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):mt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function gt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ot(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>{const t=e.toPlainObject();return{params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.environment.sys.id,entryId:t.sys.id},raw:t}};return{update:function(){const n=t(this),r=n.raw,o=n.params;return e({entityType:"Entry",action:"update",params:o,payload:r}).then(t=>Ot(e,t))},patch:function(n){const r=t(this),o=r.raw,i=r.params;return e({entityType:"Entry",action:"patch",params:bt(bt({},i),{},{version:o.sys.version}),payload:n}).then(t=>Ot(e,t))},delete:function(){const n=t(this).params;return e({entityType:"Entry",action:"delete",params:n})},publish:function(){const n=t(this),r=n.raw,o=n.params;return e({entityType:"Entry",action:"publish",params:o,payload:r}).then(t=>Ot(e,t))},unpublish:function(){const n=t(this).params;return e({entityType:"Entry",action:"unpublish",params:n}).then(t=>Ot(e,t))},archive:function(){const n=t(this).params;return e({entityType:"Entry",action:"archive",params:n}).then(t=>Ot(e,t))},unarchive:function(){const n=t(this).params;return e({entityType:"Entry",action:"unarchive",params:n}).then(t=>Ot(e,t))},getSnapshots:function(n={}){const r=t(this).params;return e({entityType:"Snapshot",action:"getManyForEntry",params:bt(bt({},r),{},{query:n})}).then(t=>dc(e,t))},getSnapshot:function(n){const r=t(this).params;return e({entityType:"Snapshot",action:"getForEntry",params:bt(bt({},r),{},{snapshotId:n})}).then(e=>pt(0,e))},isPublished:function(){const e=this.toPlainObject();return ac(e)},isUpdated:function(){const e=this.toPlainObject();return sc(e)},isDraft:function(){const e=this.toPlainObject();return cc(e)},isArchived:function(){const e=this.toPlainObject();return uc(e)}}}(e)))}function vt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jt(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?vt(Object(t),!0).forEach((function(n){wt(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function wt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(e){const t=e=>({spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,tagId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"Tag",action:"update",params:t(n),payload:n}).then(t=>Pt(e,t))},delete:function(){const n=this.toPlainObject();return e({entityType:"Tag",action:"delete",params:jt(jt({},t(n)),{},{version:n.sys.version})}).then(()=>{})}}}function Pt(e,t){return b(Ye(v(Xr(t)),It(e)))}function Tt(e,t){const n=v(Xr(t)),r=function(e){const t=Rc.environment.wrapEnvironment,n=Rc.contentType,r=n.wrapContentType,o=n.wrapContentTypeCollection,i=Rc.entry,a=i.wrapEntry,s=i.wrapEntryCollection,c=Rc.asset,u=c.wrapAsset,p=c.wrapAssetCollection,l=Rc.assetKey.wrapAssetKey,d=Rc.locale,f=d.wrapLocale,y=d.wrapLocaleCollection,m=Rc.snapshot.wrapSnapshotCollection,b=Rc.editorInterface,g=b.wrapEditorInterface,O=b.wrapEditorInterfaceCollection,v=Rc.upload.wrapUpload,j=Rc.extension,w=j.wrapExtension,I=j.wrapExtensionCollection,P=Rc.appInstallation,T=P.wrapAppInstallation,C=P.wrapAppInstallationCollection;return{delete:function(){const t=this.toPlainObject();return e({entityType:"Environment",action:"delete",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.id}}).then(()=>{})},update:function(){const n=this.toPlainObject();return e({entityType:"Environment",action:"update",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:n}).then(n=>t(e,n))},getEntryFromData:t=>a(e,t),getAssetFromData:t=>u(e,t),getContentType(t){const n=this.toPlainObject();return e({entityType:"ContentType",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,contentTypeId:t}}).then(t=>r(e,t))},getContentTypes(t={}){const n=this.toPlainObject();return e({entityType:"ContentType",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:h({query:t}).params}}).then(t=>o(e,t))},createContentType(t){const n=this.toPlainObject();return e({entityType:"ContentType",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then(t=>r(e,t))},createContentTypeWithId(t,n){const o=this.toPlainObject();return e({entityType:"ContentType",action:"createWithId",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,contentTypeId:t},payload:n}).then(t=>r(e,t))},getEditorInterfaceForContentType(t){const n=this.toPlainObject();return e({entityType:"EditorInterface",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,contentTypeId:t}}).then(t=>g(e,t))},getEditorInterfaces(){const t=this.toPlainObject();return e({entityType:"EditorInterface",action:"getMany",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.id}}).then(t=>O(e,t))},getEntry(t,n={}){const r=this.toPlainObject();return e({entityType:"Entry",action:"get",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,entryId:t,query:h({query:n}).params}}).then(t=>a(e,t))},deleteEntry(t){const n=this.toPlainObject();return e({entityType:"Entry",action:"delete",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,entryId:t}}).then(()=>{})},getEntries(t={}){const n=this.toPlainObject();return e({entityType:"Entry",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:h({query:t}).params}}).then(t=>s(e,t))},createEntry(t,n){const r=this.toPlainObject();return e({entityType:"Entry",action:"create",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,contentTypeId:t},payload:n}).then(t=>a(e,t))},createEntryWithId(t,n,r){const o=this.toPlainObject();return e({entityType:"Entry",action:"createWithId",params:{spaceId:o.sys.space.sys.id,environmentId:o.sys.id,entryId:n,contentTypeId:t},payload:r}).then(t=>a(e,t))},getAsset(t,n={}){const r=this.toPlainObject();return e({entityType:"Asset",action:"get",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,assetId:t,query:h({query:n}).params}}).then(t=>u(e,t))},getAssets(t={}){const n=this.toPlainObject();return e({entityType:"Asset",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:h({query:t}).params}}).then(t=>p(e,t))},createAsset(t){const n=this.toPlainObject();return e({entityType:"Asset",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then(t=>u(e,t))},createAssetWithId(t,n){const r=this.toPlainObject();return e({entityType:"Asset",action:"createWithId",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,assetId:t},payload:n}).then(t=>u(e,t))},createAssetFromFiles(t){const n=this.toPlainObject();return e({entityType:"Asset",action:"createFromFiles",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then(t=>u(e,t))},createAssetKey(t){const n=this.toPlainObject();return e({entityType:"AssetKey",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then(t=>l(e,t))},getUpload(t){const n=this.toPlainObject();return e({entityType:"Upload",action:"get",params:{spaceId:n.sys.space.sys.id,uploadId:t}}).then(t=>v(e,t))},createUpload:function(t){const n=this.toPlainObject();return e({entityType:"Upload",action:"create",params:{spaceId:n.sys.space.sys.id},payload:t}).then(t=>v(e,t))},getLocale(t){const n=this.toPlainObject();return e({entityType:"Locale",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,localeId:t}}).then(t=>f(e,t))},getLocales(){const t=this.toPlainObject();return e({entityType:"Locale",action:"getMany",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.id}}).then(t=>y(e,t))},createLocale(t){const n=this.toPlainObject();return e({entityType:"Locale",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then(t=>f(e,t))},getUiExtension(t){const n=this.toPlainObject();return e({entityType:"Extension",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,extensionId:t}}).then(t=>w(e,t))},getUiExtensions(){const t=this.toPlainObject();return e({entityType:"Extension",action:"getMany",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.id}}).then(t=>I(e,t))},createUiExtension(t){const n=this.toPlainObject();return e({entityType:"Extension",action:"create",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id},payload:t}).then(t=>w(e,t))},createUiExtensionWithId(t,n){const r=this.toPlainObject();return e({entityType:"Extension",action:"createWithId",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,extensionId:t},payload:n}).then(t=>w(e,t))},createAppInstallation(t,n){const r=this.toPlainObject();return e({entityType:"AppInstallation",action:"upsert",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,appDefinitionId:t},payload:n}).then(t=>T(e,t))},getAppInstallation(t){const n=this.toPlainObject();return e({entityType:"AppInstallation",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,appDefinitionId:t}}).then(t=>T(e,t))},getAppInstallations(){const t=this.toPlainObject();return e({entityType:"AppInstallation",action:"getMany",params:{spaceId:t.sys.space.sys.id,environmentId:t.sys.id}}).then(t=>C(e,t))},getEntrySnapshots(t,n={}){const r=this.toPlainObject();return e({entityType:"Snapshot",action:"getManyForEntry",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,entryId:t,query:n}}).then(t=>m(e,t))},getContentTypeSnapshots(t,n={}){const r=this.toPlainObject();return e({entityType:"Snapshot",action:"getManyForContentType",params:{spaceId:r.sys.space.sys.id,environmentId:r.sys.id,contentTypeId:t,query:n}}).then(t=>m(e,t))},createTag(t,n,r){const o=this.toPlainObject(),i={spaceId:o.sys.space.sys.id,environmentId:o.sys.id,tagId:t,visibility:r};return e({entityType:"Tag",action:"createWithId",params:i,payload:{name:n}}).then(t=>Pt(e,t))},getTags(t={}){const n=this.toPlainObject();return e({entityType:"Tag",action:"getMany",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,query:h({query:t}).params}}).then(t=>bc(e,t))},getTag(t){const n=this.toPlainObject();return e({entityType:"Tag",action:"get",params:{spaceId:n.sys.space.sys.id,environmentId:n.sys.id,tagId:t}}).then(t=>Pt(e,t))}}}(e);return b(Ye(n,r))}function Ct(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,environmentAliasId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"EnvironmentAlias",action:"update",params:t(n),payload:n}).then(t=>Ct(e,t))},delete:function(){const n=this.toPlainObject();return e({entityType:"EnvironmentAlias",action:"delete",params:t(n)}).then(()=>{})}}}(e)))}function At(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,extensionId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"Extension",action:"update",params:t(n),payload:n}).then(t=>At(e,t))},delete:function(){const n=this.toPlainObject();return e({entityType:"Extension",action:"delete",params:t(n)})}}}(e)))}function Et(e,t){delete t.internal_code;return b(Ye(v(Xr(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,environmentId:e.sys.environment.sys.id,localeId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"Locale",action:"update",params:t(n),payload:n}).then(t=>Et(e,t))},delete:function(){const n=this.toPlainObject();return e({entityType:"Locale",action:"delete",params:t(n)}).then(()=>{})}}}(e)))}function St(e,t){const n=v(Xr(t)),r=function(e){const t=Rc.appDefinition,n=t.wrapAppDefinition,r=t.wrapAppDefinitionCollection,o=Rc.user,i=o.wrapUser,a=o.wrapUserCollection,s=Rc.organizationMembership,c=s.wrapOrganizationMembership,u=s.wrapOrganizationMembershipCollection,p=Rc.teamMembership,l=p.wrapTeamMembership,d=p.wrapTeamMembershipCollection,f=Rc.teamSpaceMembership,y=f.wrapTeamSpaceMembership,m=f.wrapTeamSpaceMembershipCollection,b=Rc.team,g=b.wrapTeam,O=b.wrapTeamCollection,v=Rc.spaceMembership,j=v.wrapSpaceMembership,w=v.wrapSpaceMembershipCollection,I=Rc.organizationInvitation.wrapOrganizationInvitation,P=Rc.appUpload.wrapAppUpload;return{getUser(t){const n=this.toPlainObject();return e({entityType:"User",action:"getForOrganization",params:{organizationId:n.sys.id,userId:t}}).then(t=>i(e,t))},getUsers(t={}){const n=this.toPlainObject();return e({entityType:"User",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:h({query:t}).params}}).then(t=>a(e,t))},getOrganizationMembership(t){const n=this.toPlainObject().sys.id;return e({entityType:"OrganizationMembership",action:"get",params:{organizationId:n,organizationMembershipId:t}}).then(t=>c(e,t,n))},getOrganizationMemberships(t={}){const n=this.toPlainObject().sys.id;return e({entityType:"OrganizationMembership",action:"getMany",params:{organizationId:n,query:h({query:t}).params}}).then(t=>u(e,t,n))},createTeam(t){const n=this.toPlainObject();return e({entityType:"Team",action:"create",params:{organizationId:n.sys.id},payload:t}).then(t=>g(e,t))},getTeam(t){const n=this.toPlainObject();return e({entityType:"Team",action:"get",params:{organizationId:n.sys.id,teamId:t}}).then(t=>g(e,t))},getTeams(t={}){const n=this.toPlainObject();return e({entityType:"Team",action:"getMany",params:{organizationId:n.sys.id,query:h({query:t}).params}}).then(t=>O(e,t))},createTeamMembership(t,n){const r=this.toPlainObject();return e({entityType:"TeamMembership",action:"create",params:{organizationId:r.sys.id,teamId:t},payload:n}).then(t=>l(e,t))},getTeamMembership(t,n){const r=this.toPlainObject();return e({entityType:"TeamMembership",action:"get",params:{organizationId:r.sys.id,teamId:t,teamMembershipId:n}}).then(t=>l(e,t))},getTeamMemberships(t={}){const n=t.teamId,r=t.query,o=void 0===r?{}:r,i=this.toPlainObject();return n?e({entityType:"TeamMembership",action:"getManyForTeam",params:{organizationId:i.sys.id,teamId:n,query:h({query:o}).params}}).then(t=>d(e,t)):e({entityType:"TeamMembership",action:"getManyForOrganization",params:{organizationId:i.sys.id,query:h({query:o}).params}}).then(t=>d(e,t))},getTeamSpaceMemberships(t={}){const n=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:h({query:t.query||{}}).params,teamId:t.teamId}}).then(t=>m(e,t))},getTeamSpaceMembership(t){const n=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"getForOrganization",params:{organizationId:n.sys.id,teamSpaceMembershipId:t}}).then(t=>y(e,t))},getOrganizationSpaceMembership(t){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"getForOrganization",params:{organizationId:n.sys.id,spaceMembershipId:t}}).then(t=>j(e,t))},getOrganizationSpaceMemberships(t={}){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"getManyForOrganization",params:{organizationId:n.sys.id,query:h({query:t}).params}}).then(t=>w(e,t))},getOrganizationInvitation(t){const n=this.toPlainObject();return e({entityType:"OrganizationInvitation",action:"get",params:{organizationId:n.sys.id,invitationId:t}}).then(t=>I(e,t))},createOrganizationInvitation(t){const n=this.toPlainObject();return e({entityType:"OrganizationInvitation",action:"create",params:{organizationId:n.sys.id},payload:t}).then(t=>I(e,t))},createAppDefinition(t){const r=this.toPlainObject();return e({entityType:"AppDefinition",action:"create",params:{organizationId:r.sys.id},payload:t}).then(t=>n(e,t))},getAppDefinitions(t={}){const n=this.toPlainObject();return e({entityType:"AppDefinition",action:"getMany",params:{organizationId:n.sys.id,query:t}}).then(t=>r(e,t))},getAppDefinition(t){const r=this.toPlainObject();return e({entityType:"AppDefinition",action:"get",params:{organizationId:r.sys.id,appDefinitionId:t}}).then(t=>n(e,t))},getAppUpload(t){const n=this.toPlainObject();return e({entityType:"AppUpload",action:"get",params:{organizationId:n.sys.id,appUploadId:t}}).then(t=>P(e,t))},createAppUpload(t){const n=this.toPlainObject();return e({entityType:"AppUpload",action:"create",params:{organizationId:n.sys.id},payload:{file:t}}).then(t=>P(e,t))}}}(e);return b(Ye(n,r))}function Mt(e,t){return b(v(Xr(t)))}function xt(e,t,n){return b(Ye(v(Xr(t)),function(e,t){const n=e=>({organizationMembershipId:e.sys.id,organizationId:t});return{update:function(){const r=this.toPlainObject();return e({entityType:"OrganizationMembership",action:"update",params:n(r),payload:r}).then(n=>xt(e,n,t))},delete:function(){const t=this.toPlainObject();return e({entityType:"OrganizationMembership",action:"delete",params:n(t)})}}}(e,n)))}function Dt(e,t){return b(Ye(v(Xr(t)),{revoke:function(){return e({entityType:"PersonalAccessToken",action:"revoke",params:{tokenId:t.sys.id}}).then(t=>Dt(e,t))}}))}function kt(e,t){return b(Ye(v(Xr(t)),{}))}function $t(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,roleId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"Role",action:"update",params:t(n),payload:n}).then(t=>$t(e,t))},delete:function(){const n=this.toPlainObject();return e({entityType:"Role",action:"delete",params:t(n)})}}}(e)))}function zt(e){return function(){const t=this.toPlainObject();return e({entityType:"ScheduledAction",action:"delete",params:{spaceId:t.sys.space.sys.id,scheduledActionId:t.sys.id}}).then(t=>Ft(e,t))}}function _t(e){return{delete:zt(e)}}function Ft(e,t){return b(Ye(v(Xr(t)),_t(e)))}function Rt(e,t){const n=v(Xr(t)),r=function(e){const t=Rc.space.wrapSpace,n=Rc.environment,r=n.wrapEnvironment,o=n.wrapEnvironmentCollection,i=Rc.webhook,a=i.wrapWebhook,s=i.wrapWebhookCollection,c=Rc.role,u=c.wrapRole,p=c.wrapRoleCollection,l=Rc.user,d=l.wrapUser,f=l.wrapUserCollection,y=Rc.spaceMember,m=y.wrapSpaceMember,b=y.wrapSpaceMemberCollection,g=Rc.spaceMembership,O=g.wrapSpaceMembership,v=g.wrapSpaceMembershipCollection,j=Rc.teamSpaceMembership,w=j.wrapTeamSpaceMembership,I=j.wrapTeamSpaceMembershipCollection,P=Rc.apiKey,T=P.wrapApiKey,C=P.wrapApiKeyCollection,A=Rc.environmentAlias,E=A.wrapEnvironmentAlias,S=A.wrapEnvironmentAliasCollection,M=Rc.previewApiKey,x=M.wrapPreviewApiKey,D=M.wrapPreviewApiKeyCollection,k=Rc.scheduledAction,$=k.wrapScheduledAction,z=k.wrapScheduledActionCollection;return{delete:function(){const t=this.toPlainObject();return e({entityType:"Space",action:"delete",params:{spaceId:t.sys.id}})},update:function(){const n=this.toPlainObject();return e({entityType:"Space",action:"update",params:{spaceId:n.sys.id},payload:n,headers:{}}).then(n=>t(e,n))},getEnvironment(t){const n=this.toPlainObject();return e({entityType:"Environment",action:"get",params:{spaceId:n.sys.id,environmentId:t}}).then(t=>r(e,t))},getEnvironments(t={}){const n=this.toPlainObject();return e({entityType:"Environment",action:"getMany",params:{spaceId:n.sys.id,query:t}}).then(t=>o(e,t))},createEnvironment(t={}){const n=this.toPlainObject();return e({entityType:"Environment",action:"create",params:{spaceId:n.sys.id},payload:t}).then(t=>r(e,t))},createEnvironmentWithId(t,n,o){const i=this.toPlainObject();return e({entityType:"Environment",action:"createWithId",params:{spaceId:i.sys.id,environmentId:t,sourceEnvironmentId:o},payload:n}).then(t=>r(e,t))},getWebhook(t){const n=this.toPlainObject();return e({entityType:"Webhook",action:"get",params:{spaceId:n.sys.id,webhookDefinitionId:t}}).then(t=>a(e,t))},getWebhooks(){const t=this.toPlainObject();return e({entityType:"Webhook",action:"getMany",params:{spaceId:t.sys.id}}).then(t=>s(e,t))},createWebhook(t){const n=this.toPlainObject();return e({entityType:"Webhook",action:"create",params:{spaceId:n.sys.id},payload:t}).then(t=>a(e,t))},createWebhookWithId(t,n){const r=this.toPlainObject();return e({entityType:"Webhook",action:"createWithId",params:{spaceId:r.sys.id,webhookDefinitionId:t},payload:n}).then(t=>a(e,t))},getRole(t){const n=this.toPlainObject();return e({entityType:"Role",action:"get",params:{spaceId:n.sys.id,roleId:t}}).then(t=>u(e,t))},getRoles(t={}){const n=this.toPlainObject();return e({entityType:"Role",action:"getMany",params:{spaceId:n.sys.id,query:h({query:t}).params}}).then(t=>p(e,t))},createRole(t){const n=this.toPlainObject();return e({entityType:"Role",action:"create",params:{spaceId:n.sys.id},payload:t}).then(t=>u(e,t))},createRoleWithId(t,n){const r=this.toPlainObject();return e({entityType:"Role",action:"createWithId",params:{spaceId:r.sys.id,roleId:t},payload:n}).then(t=>u(e,t))},getSpaceUser(t){const n=this.toPlainObject();return e({entityType:"User",action:"getForSpace",params:{spaceId:n.sys.id,userId:t}}).then(t=>d(e,t))},getSpaceUsers(t={}){const n=this.toPlainObject();return e({entityType:"User",action:"getManyForSpace",params:{spaceId:n.sys.id,query:h({query:t}).params}}).then(t=>f(e,t))},getSpaceMember(t){const n=this.toPlainObject();return e({entityType:"SpaceMember",action:"get",params:{spaceId:n.sys.id,spaceMemberId:t}}).then(t=>m(e,t))},getSpaceMembers(t={}){const n=this.toPlainObject();return e({entityType:"SpaceMember",action:"getMany",params:{spaceId:n.sys.id,query:h({query:t}).params}}).then(t=>b(e,t))},getSpaceMembership(t){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"get",params:{spaceId:n.sys.id,spaceMembershipId:t}}).then(t=>O(e,t))},getSpaceMemberships(t={}){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"getMany",params:{spaceId:n.sys.id,query:h({query:t}).params}}).then(t=>v(e,t))},createSpaceMembership(t){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"create",params:{spaceId:n.sys.id},payload:t}).then(t=>O(e,t))},createSpaceMembershipWithId(t,n){const r=this.toPlainObject();return e({entityType:"SpaceMembership",action:"createWithId",params:{spaceId:r.sys.id,spaceMembershipId:t},payload:n}).then(t=>O(e,t))},getTeamSpaceMembership(t){const n=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"get",params:{spaceId:n.sys.id,teamSpaceMembershipId:t}}).then(t=>w(e,t))},getTeamSpaceMemberships(t={}){const n=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"getMany",params:{spaceId:n.sys.id,query:h({query:t}).params}}).then(t=>I(e,t))},createTeamSpaceMembership(t,n){const r=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"create",params:{spaceId:r.sys.id,teamId:t},payload:n}).then(t=>w(e,t))},getApiKey(t){const n=this.toPlainObject();return e({entityType:"ApiKey",action:"get",params:{spaceId:n.sys.id,apiKeyId:t}}).then(t=>T(e,t))},getApiKeys(){const t=this.toPlainObject();return e({entityType:"ApiKey",action:"getMany",params:{spaceId:t.sys.id}}).then(t=>C(e,t))},getPreviewApiKeys(){const t=this.toPlainObject();return e({entityType:"PreviewApiKey",action:"getMany",params:{spaceId:t.sys.id}}).then(t=>D(e,t))},getPreviewApiKey(t){const n=this.toPlainObject();return e({entityType:"PreviewApiKey",action:"get",params:{spaceId:n.sys.id,previewApiKeyId:t}}).then(t=>x(e,t))},createApiKey:function(t){const n=this.toPlainObject();return e({entityType:"ApiKey",action:"create",params:{spaceId:n.sys.id},payload:t}).then(t=>T(e,t))},createApiKeyWithId(t,n){const r=this.toPlainObject();return e({entityType:"ApiKey",action:"createWithId",params:{spaceId:r.sys.id,apiKeyId:t},payload:n}).then(t=>T(e,t))},createEnvironmentAliasWithId(t,n){const r=this.toPlainObject();return e({entityType:"EnvironmentAlias",action:"createWithId",params:{spaceId:r.sys.id,environmentAliasId:t},payload:n}).then(t=>E(e,t))},getEnvironmentAlias(t){const n=this.toPlainObject();return e({entityType:"EnvironmentAlias",action:"get",params:{spaceId:n.sys.id,environmentAliasId:t}}).then(t=>E(e,t))},getEnvironmentAliases(){const t=this.toPlainObject();return e({entityType:"EnvironmentAlias",action:"getMany",params:{spaceId:t.sys.id}}).then(t=>S(e,t))},getScheduledActions(t){const n=this.toPlainObject();return e({entityType:"ScheduledAction",action:"getMany",params:{spaceId:n.sys.id,query:t}}).then(t=>z(e,t))},createScheduledAction(t){const n=this.toPlainObject();return e({entityType:"ScheduledAction",action:"create",params:{spaceId:n.sys.id},payload:t}).then(t=>$(e,t))}}}(e);return b(Ye(n,r))}function qt(e,t){return b(v(Xr(t)))}function Ut(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,spaceMembershipId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"update",params:t(n),payload:n}).then(t=>Ut(e,t))},delete:function(){const n=this.toPlainObject();return e({entityType:"SpaceMembership",action:"delete",params:t(n)})}}}(e)))}function Lt(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>({teamId:e.sys.id,organizationId:e.sys.organization.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"Team",action:"update",params:t(n),payload:n}).then(t=>Lt(e,t))},delete:function(){const n=this.toPlainObject();return e({entityType:"Team",action:"delete",params:t(n)})}}}(e)))}function Bt(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>({teamMembershipId:e.sys.id,teamId:e.sys.team.sys.id,organizationId:e.sys.organization.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"TeamMembership",action:"update",params:t(n),payload:n}).then(t=>Bt(e,t))},delete:function(){const n=this.toPlainObject();return e({entityType:"TeamMembership",action:"delete",params:t(n)})}}}(e)))}function Wt(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>({teamSpaceMembershipId:e.sys.id,spaceId:e.sys.space.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"update",params:t(n),payload:n}).then(t=>Wt(e,t))},delete:function(){const n=this.toPlainObject();return e({entityType:"TeamSpaceMembership",action:"delete",params:t(n)})}}}(e)))}function Nt(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function Kt(e){return{delete:function(){var t=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){Nt(s,r,o,i,a,"next",e)}function a(e){Nt(s,r,o,i,a,"throw",e)}var s=e.apply(t,n);i(void 0)}))}}((function*(){const t=this.toPlainObject();yield e({entityType:"Upload",action:"delete",params:{spaceId:t.sys.space.sys.id,uploadId:t.sys.id}})}));return function(){return t.apply(this,arguments)}}()}}function Ht(e,t){return b(Ye(v(Xr(t)),Kt(e)))}function Vt(e,t){return b(Ye(v(Xr(t)),{}))}function Xt(e,t){return b(Ye(v(Xr(t)),{}))}function Gt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qt(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?Gt(Object(t),!0).forEach((function(n){Jt(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Gt(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function Jt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yt(e,t){return b(Ye(v(Xr(t)),function(e){const t=e=>({spaceId:e.sys.space.sys.id,webhookDefinitionId:e.sys.id});return{update:function(){const n=this.toPlainObject();return e({entityType:"Webhook",action:"update",params:t(n),payload:n}).then(t=>Yt(e,t))},delete:function(){const n=this.toPlainObject();return e({entityType:"Webhook",action:"delete",params:t(n)})},getCalls:function(){const n=this.toPlainObject();return e({entityType:"Webhook",action:"getManyCallDetails",params:t(n)})},getCall:function(n){const r=this.toPlainObject();return e({entityType:"Webhook",action:"getCallDetails",params:Qt(Qt({},t(r)),{},{callId:n})})},getHealth:function(){const n=this.toPlainObject();return e({entityType:"Webhook",action:"getHealthStatus",params:t(n)})}}}(e)))}function Zt(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],!(0<=t.indexOf(n))&&Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function en(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tn(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?en(Object(t),!0).forEach((function(n){nn(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):en(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function on(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?rn(Object(t),!0).forEach((function(n){an(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function an(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function cn(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?sn(Object(t),!0).forEach((function(n){un(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):sn(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pn(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dn(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?ln(Object(t),!0).forEach((function(n){fn(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ln(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}function fn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yn(e,t={}){const n=O(("plain"===t.type?"contentful-management-plain.js":"contentful-management.js")+"/7.15.2",e.application,e.integration,e.feature),r=function(e){return"apiAdapter"in e?e.apiAdapter:new Zs(e)}(e),o=e=>r.makeRequest(dn(dn({},e),{},{userAgent:n}));return"plain"===t.type?Uc(o,t.defaults):function(e){const t=Rc.space,n=t.wrapSpace,r=t.wrapSpaceCollection,o=Rc.user.wrapUser,i=Rc.personalAccessToken,a=i.wrapPersonalAccessToken,s=i.wrapPersonalAccessTokenCollection,c=Rc.organization,u=c.wrapOrganization,p=c.wrapOrganizationCollection,l=Rc.usage.wrapUsageCollection;return{getSpaces:function(t={}){return e({entityType:"Space",action:"getMany",params:{query:h({query:t}).params}}).then(t=>r(e,t))},getSpace:function(t){return e({entityType:"Space",action:"get",params:{spaceId:t}}).then(t=>n(e,t))},createSpace:function(t,r){return e({entityType:"Space",action:"create",params:{organizationId:r},payload:t}).then(t=>n(e,t))},getOrganization:function(t){return e({entityType:"Organization",action:"get",params:{organizationId:t}}).then(t=>u(e,t))},getOrganizations:function(){return e({entityType:"Organization",action:"getMany"}).then(t=>p(e,t))},getCurrentUser:function(t){return e({entityType:"User",action:"getCurrent",params:t}).then(t=>o(e,t))},createPersonalAccessToken:function(t){return e({entityType:"PersonalAccessToken",action:"create",params:{},payload:t}).then(t=>a(e,t))},getPersonalAccessToken:function(t){return e({entityType:"PersonalAccessToken",action:"get",params:{tokenId:t}}).then(t=>a(e,t))},getPersonalAccessTokens:function(){return e({entityType:"PersonalAccessToken",action:"getMany",params:{}}).then(t=>s(e,t))},getOrganizationUsage:function(t,n={}){return e({entityType:"Usage",action:"getManyForOrganization",params:{organizationId:t,query:n}}).then(t=>l(e,t))},getSpaceUsage:function(t,n={}){return e({entityType:"Usage",action:"getManyForSpace",params:{organizationId:t,query:n}}).then(t=>l(e,t))},rawRequest:function(t){let n=t.url,r=Zt(t,["url"]);return e({entityType:"Http",action:"request",params:{url:n,config:r}})}}}(o)}var hn=Math.floor;n.r(t),n.d(t,"asIterator",(function(){return Lc})),n.d(t,"isDraft",(function(){return cc})),n.d(t,"isPublished",(function(){return ac})),n.d(t,"isUpdated",(function(){return sc})),n.d(t,"createClient",(function(){return yn}));var mn={};n.r(mn),n.d(mn,"get",(function(){return ao})),n.d(mn,"getMany",(function(){return so})),n.d(mn,"create",(function(){return co})),n.d(mn,"createWithId",(function(){return uo})),n.d(mn,"update",(function(){return po})),n.d(mn,"del",(function(){return lo}));var bn={};n.r(bn),n.d(bn,"get",(function(){return ho})),n.d(bn,"getMany",(function(){return mo})),n.d(bn,"del",(function(){return bo})),n.d(bn,"create",(function(){return go}));var gn={};n.r(gn),n.d(gn,"getAppDefinitionUrl",(function(){return vo})),n.d(gn,"get",(function(){return jo})),n.d(gn,"getMany",(function(){return wo})),n.d(gn,"create",(function(){return Io})),n.d(gn,"update",(function(){return Po})),n.d(gn,"del",(function(){return To}));var On={};n.r(On),n.d(On,"getAppInstallationUrl",(function(){return Ao})),n.d(On,"get",(function(){return Eo})),n.d(On,"getMany",(function(){return So})),n.d(On,"upsert",(function(){return Mo})),n.d(On,"del",(function(){return xo}));var vn={};n.r(vn),n.d(vn,"get",(function(){return $o})),n.d(vn,"del",(function(){return zo})),n.d(vn,"create",(function(){return _o}));var jn={};n.r(jn),n.d(jn,"create",(function(){return Fo})),n.d(jn,"del",(function(){return Ro})),n.d(jn,"get",(function(){return qo}));var wn={};n.r(wn),n.d(wn,"get",(function(){return Uo})),n.d(wn,"getMany",(function(){return Lo})),n.d(wn,"update",(function(){return Bo})),n.d(wn,"del",(function(){return Wo})),n.d(wn,"publish",(function(){return No})),n.d(wn,"unpublish",(function(){return Ko})),n.d(wn,"archive",(function(){return Ho})),n.d(wn,"unarchive",(function(){return Vo})),n.d(wn,"create",(function(){return Xo})),n.d(wn,"createWithId",(function(){return Go})),n.d(wn,"createFromFiles",(function(){return Qo})),n.d(wn,"processForLocale",(function(){return Zo})),n.d(wn,"processForAllLocales",(function(){return ei}));var In={};n.r(In),n.d(In,"ValidationError",(function(){return ti})),n.d(In,"create",(function(){return ni}));var Pn={};n.r(Pn),n.d(Pn,"get",(function(){return ii})),n.d(Pn,"getMany",(function(){return ai})),n.d(Pn,"create",(function(){return si})),n.d(Pn,"createWithId",(function(){return ci})),n.d(Pn,"update",(function(){return ui})),n.d(Pn,"del",(function(){return pi})),n.d(Pn,"publish",(function(){return li})),n.d(Pn,"unpublish",(function(){return di}));var Tn={};n.r(Tn),n.d(Tn,"get",(function(){return yi})),n.d(Tn,"getMany",(function(){return hi})),n.d(Tn,"update",(function(){return mi}));var Cn={};n.r(Cn),n.d(Cn,"get",(function(){return bi})),n.d(Cn,"getMany",(function(){return gi})),n.d(Cn,"patch",(function(){return Oi})),n.d(Cn,"update",(function(){return vi})),n.d(Cn,"del",(function(){return ji})),n.d(Cn,"publish",(function(){return wi})),n.d(Cn,"unpublish",(function(){return Ii})),n.d(Cn,"archive",(function(){return Pi})),n.d(Cn,"unarchive",(function(){return Ti})),n.d(Cn,"create",(function(){return Ci})),n.d(Cn,"createWithId",(function(){return Ai}));var An={};n.r(An),n.d(An,"get",(function(){return Ei})),n.d(An,"getMany",(function(){return Si})),n.d(An,"update",(function(){return Mi})),n.d(An,"del",(function(){return xi})),n.d(An,"create",(function(){return Di})),n.d(An,"createWithId",(function(){return ki}));var En={};n.r(En),n.d(En,"get",(function(){return _i})),n.d(En,"getMany",(function(){return Fi})),n.d(En,"createWithId",(function(){return Ri})),n.d(En,"update",(function(){return qi})),n.d(En,"del",(function(){return Ui}));var Sn={};n.r(Sn),n.d(Sn,"getExtensionUrl",(function(){return Bi})),n.d(Sn,"get",(function(){return Wi})),n.d(Sn,"getMany",(function(){return Ni})),n.d(Sn,"create",(function(){return Ki})),n.d(Sn,"createWithId",(function(){return Hi})),n.d(Sn,"update",(function(){return Vi})),n.d(Sn,"del",(function(){return Xi}));var Mn={};n.r(Mn),n.d(Mn,"get",(function(){return Gi})),n.d(Mn,"post",(function(){return Qi})),n.d(Mn,"put",(function(){return Ji})),n.d(Mn,"del",(function(){return Yi})),n.d(Mn,"request",(function(){return Zi}));var xn={};n.r(xn),n.d(xn,"get",(function(){return ea})),n.d(xn,"getMany",(function(){return ta})),n.d(xn,"create",(function(){return na})),n.d(xn,"update",(function(){return ra})),n.d(xn,"del",(function(){return oa}));var Dn={};n.r(Dn),n.d(Dn,"getMany",(function(){return ia})),n.d(Dn,"get",(function(){return aa}));var kn={};n.r(kn),n.d(kn,"create",(function(){return ua})),n.d(kn,"get",(function(){return pa}));var $n={};n.r($n),n.d($n,"get",(function(){return fa})),n.d($n,"getMany",(function(){return ya})),n.d($n,"update",(function(){return ha})),n.d($n,"del",(function(){return ma}));var zn={};n.r(zn),n.d(zn,"get",(function(){return ba})),n.d(zn,"getMany",(function(){return ga})),n.d(zn,"create",(function(){return Oa})),n.d(zn,"revoke",(function(){return va}));var _n={};n.r(_n),n.d(_n,"get",(function(){return ja})),n.d(_n,"getMany",(function(){return wa}));var Fn={};n.r(Fn),n.d(Fn,"get",(function(){return Ia})),n.d(Fn,"getMany",(function(){return Pa})),n.d(Fn,"create",(function(){return Ta})),n.d(Fn,"createWithId",(function(){return Ca})),n.d(Fn,"update",(function(){return Aa})),n.d(Fn,"del",(function(){return Ea}));var Rn={};n.r(Rn),n.d(Rn,"getMany",(function(){return Sa})),n.d(Rn,"create",(function(){return Ma})),n.d(Rn,"del",(function(){return xa}));var qn={};n.r(qn),n.d(qn,"getManyForEntry",(function(){return ka})),n.d(qn,"getForEntry",(function(){return $a})),n.d(qn,"getManyForContentType",(function(){return _a})),n.d(qn,"getForContentType",(function(){return Fa}));var Un={};n.r(Un),n.d(Un,"get",(function(){return Ra})),n.d(Un,"getMany",(function(){return qa})),n.d(Un,"create",(function(){return Ua})),n.d(Un,"update",(function(){return La})),n.d(Un,"del",(function(){return Ba}));var Ln={};n.r(Ln),n.d(Ln,"get",(function(){return Wa})),n.d(Ln,"getMany",(function(){return Na}));var Bn={};n.r(Bn),n.d(Bn,"get",(function(){return Va})),n.d(Bn,"getMany",(function(){return Xa})),n.d(Bn,"getForOrganization",(function(){return Ga})),n.d(Bn,"getManyForOrganization",(function(){return Qa})),n.d(Bn,"create",(function(){return Ja})),n.d(Bn,"createWithId",(function(){return Ya})),n.d(Bn,"update",(function(){return Za})),n.d(Bn,"del",(function(){return es}));var Wn={};n.r(Wn),n.d(Wn,"get",(function(){return rs})),n.d(Wn,"getMany",(function(){return os})),n.d(Wn,"createWithId",(function(){return is})),n.d(Wn,"update",(function(){return as})),n.d(Wn,"del",(function(){return ss}));var Nn={};n.r(Nn),n.d(Nn,"get",(function(){return ps})),n.d(Nn,"getMany",(function(){return ls})),n.d(Nn,"create",(function(){return ds})),n.d(Nn,"update",(function(){return fs})),n.d(Nn,"del",(function(){return ys}));var Kn={};n.r(Kn),n.d(Kn,"get",(function(){return bs})),n.d(Kn,"getManyForOrganization",(function(){return gs})),n.d(Kn,"getManyForTeam",(function(){return Os})),n.d(Kn,"create",(function(){return vs})),n.d(Kn,"update",(function(){return js})),n.d(Kn,"del",(function(){return ws}));var Hn={};n.r(Hn),n.d(Hn,"get",(function(){return Ts})),n.d(Hn,"getMany",(function(){return Cs})),n.d(Hn,"getForOrganization",(function(){return As})),n.d(Hn,"getManyForOrganization",(function(){return Es})),n.d(Hn,"create",(function(){return Ss})),n.d(Hn,"update",(function(){return Ms})),n.d(Hn,"del",(function(){return xs}));var Vn={};n.r(Vn),n.d(Vn,"getManyForSpace",(function(){return Ds})),n.d(Vn,"getManyForOrganization",(function(){return ks}));var Xn={};n.r(Xn),n.d(Xn,"getForSpace",(function(){return $s})),n.d(Xn,"getCurrent",(function(){return zs})),n.d(Xn,"getManyForSpace",(function(){return _s})),n.d(Xn,"getForOrganization",(function(){return Fs})),n.d(Xn,"getManyForOrganization",(function(){return Rs}));var Gn={};n.r(Gn),n.d(Gn,"get",(function(){return Bs})),n.d(Gn,"getManyCallDetails",(function(){return Ws})),n.d(Gn,"getCallDetails",(function(){return Ns})),n.d(Gn,"getHealthStatus",(function(){return Ks})),n.d(Gn,"getMany",(function(){return Hs})),n.d(Gn,"create",(function(){return Vs})),n.d(Gn,"createWithId",(function(){return Xs})),n.d(Gn,"update",(function(){return Gs})),n.d(Gn,"del",(function(){return Qs}));var Qn={};n.r(Qn),n.d(Qn,"wrapApiKey",(function(){return Ze})),n.d(Qn,"wrapApiKeyCollection",(function(){return tc}));var Jn={};n.r(Jn),n.d(Jn,"wrapAppBundle",(function(){return et})),n.d(Jn,"wrapAppBundleCollection",(function(){return nc}));var Yn={};n.r(Yn),n.d(Yn,"wrapAppDefinition",(function(){return tt})),n.d(Yn,"wrapAppDefinitionCollection",(function(){return rc}));var Zn={};n.r(Zn),n.d(Zn,"wrapAppInstallation",(function(){return nt})),n.d(Zn,"wrapAppInstallationCollection",(function(){return oc}));var er={};n.r(er),n.d(er,"wrapAppUpload",(function(){return rt})),n.d(er,"wrapAppUploadCollection",(function(){return ic}));var tr={};n.r(tr),n.d(tr,"wrapAsset",(function(){return st})),n.d(tr,"wrapAssetCollection",(function(){return pc}));var nr={};n.r(nr),n.d(nr,"wrapAssetKey",(function(){return ct}));var rr={};n.r(rr),n.d(rr,"wrapEditorInterface",(function(){return ut})),n.d(rr,"wrapEditorInterfaceCollection",(function(){return lc}));var or={};n.r(or),n.d(or,"wrapSnapshot",(function(){return pt})),n.d(or,"wrapSnapshotCollection",(function(){return dc}));var ir={};n.r(ir),n.d(ir,"wrapContentType",(function(){return ht})),n.d(ir,"wrapContentTypeCollection",(function(){return hc}));var ar={};n.r(ar),n.d(ar,"wrapEntry",(function(){return Ot})),n.d(ar,"wrapEntryCollection",(function(){return mc}));var sr={};n.r(sr),n.d(sr,"default",(function(){return It})),n.d(sr,"wrapTag",(function(){return Pt})),n.d(sr,"wrapTagCollection",(function(){return bc}));var cr={};n.r(cr),n.d(cr,"wrapEnvironment",(function(){return Tt})),n.d(cr,"wrapEnvironmentCollection",(function(){return gc}));var ur={};n.r(ur),n.d(ur,"wrapEnvironmentAlias",(function(){return Ct})),n.d(ur,"wrapEnvironmentAliasCollection",(function(){return Oc}));var pr={};n.r(pr),n.d(pr,"wrapExtension",(function(){return At})),n.d(pr,"wrapExtensionCollection",(function(){return vc}));var lr={};n.r(lr),n.d(lr,"wrapLocale",(function(){return Et})),n.d(lr,"wrapLocaleCollection",(function(){return jc}));var dr={};n.r(dr),n.d(dr,"wrapOrganization",(function(){return St})),n.d(dr,"wrapOrganizationCollection",(function(){return wc}));var fr={};n.r(fr),n.d(fr,"wrapOrganizationInvitation",(function(){return Mt}));var yr={};n.r(yr),n.d(yr,"wrapOrganizationMembership",(function(){return xt})),n.d(yr,"wrapOrganizationMembershipCollection",(function(){return Ic}));var hr={};n.r(hr),n.d(hr,"wrapPersonalAccessToken",(function(){return Dt})),n.d(hr,"wrapPersonalAccessTokenCollection",(function(){return Pc}));var mr={};n.r(mr),n.d(mr,"wrapPreviewApiKey",(function(){return kt})),n.d(mr,"wrapPreviewApiKeyCollection",(function(){return Tc}));var br={};n.r(br),n.d(br,"wrapRole",(function(){return $t})),n.d(br,"wrapRoleCollection",(function(){return Cc}));var gr={};n.r(gr),n.d(gr,"createDeleteScheduledAction",(function(){return zt})),n.d(gr,"default",(function(){return _t})),n.d(gr,"wrapScheduledAction",(function(){return Ft})),n.d(gr,"wrapScheduledActionCollection",(function(){return Ec}));var Or={};n.r(Or),n.d(Or,"wrapSpace",(function(){return Rt})),n.d(Or,"wrapSpaceCollection",(function(){return Sc}));var vr={};n.r(vr),n.d(vr,"wrapSpaceMember",(function(){return qt})),n.d(vr,"wrapSpaceMemberCollection",(function(){return Mc}));var jr={};n.r(jr),n.d(jr,"wrapSpaceMembership",(function(){return Ut})),n.d(jr,"wrapSpaceMembershipCollection",(function(){return xc}));var wr={};n.r(wr),n.d(wr,"wrapTeam",(function(){return Lt})),n.d(wr,"wrapTeamCollection",(function(){return Dc}));var Ir={};n.r(Ir),n.d(Ir,"wrapTeamMembership",(function(){return Bt})),n.d(Ir,"wrapTeamMembershipCollection",(function(){return kc}));var Pr={};n.r(Pr),n.d(Pr,"wrapTeamSpaceMembership",(function(){return Wt})),n.d(Pr,"wrapTeamSpaceMembershipCollection",(function(){return $c}));var Tr={};n.r(Tr),n.d(Tr,"wrapUpload",(function(){return Ht}));var Cr={};n.r(Cr),n.d(Cr,"wrapUsage",(function(){return Vt})),n.d(Cr,"wrapUsageCollection",(function(){return zc}));var Ar={};n.r(Ar),n.d(Ar,"wrapUser",(function(){return Xt})),n.d(Ar,"wrapUserCollection",(function(){return _c}));var Er={};n.r(Er),n.d(Er,"wrapWebhook",(function(){return Yt})),n.d(Er,"wrapWebhookCollection",(function(){return Fc}));var Sr=Function.prototype.toString,Mr=Object.create,xr=Object.defineProperty,Dr=Object.getOwnPropertyDescriptor,kr=Object.getOwnPropertyNames,$r=Object.getOwnPropertySymbols,zr=Object.getPrototypeOf,_r=Object.prototype,Fr=_r.hasOwnProperty,Rr=_r.propertyIsEnumerable,qr="function"==typeof $r,Ur="function"==typeof WeakMap,Lr=function(){if(Ur)return new WeakMap;var e=Mr({has:function(t){return!!~e._keys.indexOf(t)},set:function(t,n){e._keys.push(t),e._values.push(n)},get:function(t){return e._values[e._keys.indexOf(t)]}});return e._keys=[],e._values=[],e},Br=function(e,t){if(!e.constructor)return Mr(null);var n=e.constructor,r=e.__proto__||zr(e);if(n===t.Object)return r===t.Object.prototype?{}:Mr(r);if(~Sr.call(n).indexOf("[native code]"))try{return new n}catch(e){}return Mr(r)},Wr=function(e,t,n,r){var o=Br(e,t);for(var i in r.set(e,o),e)Fr.call(e,i)&&(o[i]=n(e[i],r));if(qr){var a=$r(e),s=a.length;if(s)for(var c=0,u=void 0;c<s;c++)u=a[c],Rr.call(e,u)&&(o[u]=n(e[u],r))}return o},Nr=function(e,t,n,r){var o=Br(e,t);r.set(e,o);var i=qr?kr(e).concat($r(e)):kr(e),a=i.length;if(a)for(var s=0,c=void 0,u=void 0;s<a;s++)if("callee"!==(c=i[s])&&"caller"!==c)if(u=Dr(e,c)){u.get||u.set||(u.value=n(e[c],r));try{xr(o,c,u)}catch(e){o[c]=u.value}}else o[c]=n(e[c],r);return o},Kr=function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Hr=Array.isArray,Vr="undefined"==typeof self?"undefined"==typeof window?"undefined"==typeof global?void(console&&console.error&&console.error('Unable to locate global object, returning "this".')):global:window:self;r.default=r,r.strict=function(e,t){return r(e,{isStrict:!0,realm:t?t.realm:void 0})};var Xr=r,Gr=n(20),Qr=n.n(Gr),Jr=n(2),Yr={},Zr=0,eo=function(e){return new Promise((function(t){setTimeout(t,e)}))},to=/^(?!\w+:\/\/)([^\s:]+\.?[^\s:]+)(?::(\d+))?(?!:)$/,no=n(21),ro=n.n(no),oo=n(1),io=n.n(oo);const ao=(e,t)=>C(e,`/spaces/${t.spaceId}/api_keys/${t.apiKeyId}`),so=(e,t)=>C(e,`/spaces/${t.spaceId}/api_keys`,{params:t.query}),co=(e,t,n,r)=>A(e,`/spaces/${t.spaceId}/api_keys`,n,{headers:r}),uo=(e,t,n,r)=>E(e,`/spaces/${t.spaceId}/api_keys/${t.apiKeyId}`,n,{headers:r}),po=(e,t,n,r)=>{var o;const i=Xr(n);return"accessToken"in i&&delete i.accessToken,"preview_api_key"in i&&delete i.preview_api_key,"policies"in i&&delete i.policies,delete i.sys,E(e,`/spaces/${t.spaceId}/api_keys/${t.apiKeyId}`,i,{headers:x({"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0},r)})},lo=(e,t)=>S(e,`/spaces/${t.spaceId}/api_keys/${t.apiKeyId}`),fo=e=>`/organizations/${e.organizationId}/app_definitions/${e.appDefinitionId}/app_bundles`,yo=e=>`${fo(e)}/${e.appBundleId}`,ho=(e,t)=>C(e,yo(t)),mo=(e,t)=>C(e,fo(t),{params:_(t.query)}),bo=(e,t)=>S(e,yo(t)),go=(e,t,n)=>{const r=n.appUploadId,o=n.comment;return A(e,fo(t),{upload:{sys:{type:"Link",linkType:"AppUpload",id:r}},comment:o})},Oo=e=>`/organizations/${e.organizationId}/app_definitions`,vo=e=>Oo(e)+"/"+e.appDefinitionId,jo=(e,t)=>C(e,vo(t),{params:_(t.query)}),wo=(e,t)=>C(e,Oo(t),{params:t.query}),Io=(e,t,n)=>{const r=Xr(n);return A(e,Oo(t),r)},Po=(e,t,n,r)=>{var o;const i=Xr(n);return delete i.sys,E(e,vo(t),i,{headers:R({"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0},r)})},To=(e,t)=>S(e,vo(t)),Co=e=>`/spaces/${e.spaceId}/environments/${e.environmentId}/app_installations`,Ao=e=>Co(e)+"/"+e.appDefinitionId,Eo=(e,t)=>C(e,Ao(t),{params:_(t.query)}),So=(e,t)=>C(e,Co(t),{params:_(t.query)}),Mo=(e,t,n,r)=>{const o=Xr(n);return E(e,Ao(t),o,function(e){for(var t,n=1;n<arguments.length;n++)t=null==arguments[n]?{}:arguments[n],n%2?U(Object(t),!0).forEach((function(n){L(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):U(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}));return e}({},r))},xo=(e,t)=>S(e,Ao(t)),Do=e=>`/organizations/${e.organizationId}/app_uploads`,ko=e=>`${Do(e)}/${e.appUploadId}`,$o=(e,t)=>C(B(e),ko(t)),zo=(e,t)=>S(B(e),ko(t)),_o=(e,t,n)=>{const r=B(e),o=n.file;return A(r,Do(t),o,{headers:{"Content-Type":"application/octet-stream"}})},Fo=(e,t,n)=>{const r=B(e),o=n.file;return o?A(r,`/spaces/${t.spaceId}/uploads`,o,{headers:{"Content-Type":"application/octet-stream"}}):Promise.reject(new Error("Unable to locate a file to upload."))},Ro=(e,t)=>S(B(e),`/spaces/${t.spaceId}/uploads/${t.uploadId}`),qo=(e,t)=>C(B(e),`/spaces/${t.spaceId}/uploads/${t.uploadId}`),Uo=(e,t)=>C(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}`,{params:_(t.query)}),Lo=(e,t)=>C(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets`,{params:_(t.query)}),Bo=(e,t,n,r)=>{var o;const i=Xr(n);return delete i.sys,E(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}`,i,{headers:K({"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0},r)})},Wo=(e,t)=>S(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}`),No=(e,t,n)=>{var r;return E(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}/published`,null,{headers:{"X-Contentful-Version":null!==(r=n.sys.version)&&void 0!==r?r:0}})},Ko=(e,t)=>S(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}/published`),Ho=(e,t)=>E(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}/archived`),Vo=(e,t)=>S(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}/archived`),Xo=(e,t,n)=>{const r=Xr(n);return A(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets`,r)},Go=(e,t,n)=>{const r=Xr(n);return E(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/assets/${t.assetId}`,r)},Qo=(e,t,n)=>{const r=B(e),o=n.fields.file;return Promise.all(Object.keys(o).map(e=>{const n=o[e],i=n.contentType,a=n.fileName;return Fo(r,t,o[e]).then(t=>({[e]:{contentType:i,fileName:a,uploadFrom:{sys:{type:"Link",linkType:"Upload",id:t.sys.id}}}}))})).then(r=>{const o=r.reduce((e,t)=>K(K({},e),t),{}),i=K(K({},n),{},{fields:K(K({},n.fields),{},{file:o})});return Xo(e,t,i)}).catch(j)},Jo=3e3,Yo=10,Zo=(e,t)=>{let n=t.asset,r=t.locale,o=t.options,i=void 0===o?{}:o,a=i.processingCheckRetries,s=i.processingCheckWait,c=W(t,["asset","locale","options"]);return E(e,`/spaces/${c.spaceId}/environments/${c.environmentId}/assets/${n.sys.id}/files/${r}/process`,null,{headers:{"X-Contentful-Version":n.sys.version}}).then(()=>new Promise((t,o)=>function e(t,n,{resolve:r,reject:o,locale:i,processingCheckWait:a=Jo,processingCheckRetries:s=Yo,checkCount:c=0}){return Uo(t,n).then(u=>{if(u.fields.file[i].url)r(u);else if(c===s){const e=new Error;e.name="AssetProcessingTimeout",e.message="Asset is taking longer then expected to process.",o(e)}else c++,setTimeout(()=>e(t,n,{resolve:r,reject:o,locale:i,checkCount:c,processingCheckWait:a,processingCheckRetries:s}),a)})}(e,{spaceId:c.spaceId,environmentId:c.environmentId,assetId:n.sys.id},{resolve:t,reject:o,locale:r,processingCheckWait:s,processingCheckRetries:a})))},ei=(e,t)=>{let n=t.asset,r=t.options,o=void 0===r?{}:r,i=W(t,["asset","options"]);const a=Object.keys(n.fields.file||{});let s=n;const c=a.map(t=>Zo(e,K(K({},i),{},{asset:n,locale:t,options:o})).then(e=>{s=e}));return Promise.all(c).then(()=>s)};class ti extends Error{constructor(e,t){super(`Invalid "${e}" provided, `+t),this.name="ValidationError"}}const ni=(e,t,n)=>{const r=n.expiresAt,o=hn(Date.now()/1e3);return((e,t,n)=>{if(n=n||{},"number"!=typeof t)throw new ti(e,`only numeric values are allowed for timestamps, provided type was "${typeof t}"`);if(n.maximum&&t>n.maximum)throw new ti(e,`value (${t}) cannot be further in the future than expected maximum (${n.maximum})`);if(n.now&&t<n.now)throw new ti(e,`value (${t}) cannot be in the past, current time was ${n.now}`)})("expiresAt",r,{maximum:o+172800,now:o}),A(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/asset_keys`,{expiresAt:r})},ri=e=>`/spaces/${e.spaceId}/environments/${e.environmentId}/content_types`,oi=e=>ri(e)+"/"+e.contentTypeId,ii=(e,t)=>C(e,oi(t),{params:_(t.query)}),ai=(e,t)=>C(e,ri(t),{params:t.query}),si=(e,t,n)=>{const r=Xr(n);return A(e,ri(t),r)},ci=(e,t,n)=>{const r=Xr(n);return E(e,oi(t),r)},ui=(e,t,n,r)=>{var o;const i=Xr(n);return delete i.sys,E(e,oi(t),i,{headers:X({"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0},r)})},pi=(e,t)=>S(e,oi(t)),li=(e,t,n)=>E(e,oi(t)+"/published",null,{headers:{"X-Contentful-Version":n.sys.version}}),di=(e,t)=>S(e,oi(t)+"/published"),fi=e=>`/spaces/${e.spaceId}/environments/${e.environmentId}/content_types/${e.contentTypeId}/editor_interface`,yi=(e,t)=>C(e,fi(t)),hi=(e,t)=>C(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/editor_interfaces`),mi=(e,t,n,r)=>{var o;const i=Xr(n);return delete i.sys,E(e,fi(t),i,{headers:J({"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0},r)})},bi=(e,t)=>C(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}`,{params:_(t.query)}),gi=(e,t)=>C(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries`,{params:_(t.query)}),Oi=(e,t,n,r)=>function(e,t,n,r){return e.patch(t,n,I({baseURL:T(e)},r)).then(e=>e.data,j)}(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}`,n,{headers:ee({"X-Contentful-Version":t.version,"Content-Type":"application/json-patch+json"},r)}),vi=(e,t,n,r)=>{var o;const i=Xr(n);return delete i.sys,E(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}`,i,{headers:ee({"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0},r)})},ji=(e,t)=>S(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}`),wi=(e,t,n)=>E(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}/published`,null,{headers:{"X-Contentful-Version":n.sys.version}}),Ii=(e,t)=>S(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}/published`),Pi=(e,t)=>E(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}/archived`),Ti=(e,t)=>S(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}/archived`),Ci=(e,t,n)=>{const r=Xr(n);return A(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries`,r,{headers:{"X-Contentful-Content-Type":t.contentTypeId}})},Ai=(e,t,n)=>{const r=Xr(n);return E(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/entries/${t.entryId}`,r,{headers:{"X-Contentful-Content-Type":t.contentTypeId}})},Ei=(e,t)=>C(e,`/spaces/${t.spaceId}/environments/${t.environmentId}`),Si=(e,t)=>C(e,`/spaces/${t.spaceId}/environments`,{params:t.query}),Mi=(e,t,n,r)=>{var o;const i=Xr(n);return delete i.sys,E(e,`/spaces/${t.spaceId}/environments/${t.environmentId}`,i,{headers:re(re({},r),{},{"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0})})},xi=(e,t)=>S(e,`/spaces/${t.spaceId}/environments/${t.environmentId}`),Di=(e,t,n,r)=>{const o=Xr(n);return A(e,`/spaces/${t.spaceId}/environments`,o,{headers:r})},ki=(e,t,n,r)=>{const o=Xr(n);return E(e,`/spaces/${t.spaceId}/environments/${t.environmentId}`,o,{headers:re(re({},r),t.sourceEnvironmentId?{"X-Contentful-Source-Environment":t.sourceEnvironmentId}:{})})},$i=e=>`/spaces/${e.spaceId}/environment_aliases`,zi=e=>$i(e)+"/"+e.environmentAliasId,_i=(e,t)=>C(e,zi(t)),Fi=(e,t)=>C(e,$i(t),{params:t.query}),Ri=(e,t,n,r)=>{const o=Xr(n);return E(e,zi(t),o,{headers:r})},qi=(e,t,n,r)=>{var o;const i=Xr(n);return delete i.sys,E(e,zi(t),i,{headers:ae(ae({},r),{},{"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0})})},Ui=(e,t)=>S(e,zi(t)),Li=e=>`/spaces/${e.spaceId}/environments/${e.environmentId}/extensions`,Bi=e=>Li(e)+"/"+e.extensionId,Wi=(e,t)=>C(e,Bi(t),{params:_(t.query)}),Ni=(e,t)=>C(e,Li(t),{params:_(t.query)}),Ki=(e,t,n,r)=>A(e,Li(t),n,{headers:r}),Hi=(e,t,n,r)=>{const o=Xr(n);return E(e,Bi(t),o,{headers:r})},Vi=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){le(s,r,o,i,a,"next",e)}function a(e){le(s,r,o,i,a,"throw",e)}var s=e.apply(t,n);i(void 0)}))}}((function*(e,t,n,r){var o;const i=Xr(n);return delete i.sys,E(e,Bi(t),i,{headers:ue({"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0},r)})}));return function(){return e.apply(this,arguments)}}(),Xi=(e,t)=>S(e,Bi(t)),Gi=(e,{url:t,config:n})=>C(e,t,n),Qi=(e,{url:t,config:n},r)=>A(e,t,r,n),Ji=(e,{url:t,config:n},r)=>E(e,t,r,n),Yi=(e,{url:t,config:n})=>S(e,t,n),Zi=(e,{url:t,config:n})=>function(e,t,n){return e(t,I({baseURL:T(e)},n)).then(e=>e.data,j)}(e,t,n),ea=(e,t)=>C(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/locales/${t.localeId}`),ta=(e,t)=>C(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/locales`,{params:_(t.query)}),na=(e,t,n,r)=>A(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/locales`,n,{headers:r}),ra=(e,t,n,r)=>{var o;const i=Xr(n);return delete i.sys,delete i.default,E(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/locales/${t.localeId}`,i,{headers:fe(fe({},r),{},{"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0})})},oa=(e,t)=>S(e,`/spaces/${t.spaceId}/environments/${t.environmentId}/locales/${t.localeId}`),ia=e=>C(e,"/organizations"),aa=(e,t)=>ia(e).then(e=>{const n=e.items.find(e=>e.sys.id===t.organizationId);if(!n){const n=new Error(`No organization was found with the ID ${t.organizationId} instead got ${JSON.stringify(e)}`);return n.status=404,n.statusText="Not Found",Promise.reject(n)}return n}),sa={"x-contentful-enable-alpha-feature":"organization-user-management-api"},ca={"x-contentful-enable-alpha-feature":"pending-org-membership"},ua=(e,t,n,r)=>A(e,`/organizations/${t.organizationId}/invitations`,n,{headers:me(me({},ca),r)}),pa=(e,t,n)=>C(e,`/organizations/${t.organizationId}/invitations/${t.invitationId}`,{headers:me(me({},sa),n)}),la=e=>`/organizations/${e.organizationId}/organization_memberships`,da=e=>`${la(e)}/${e.organizationMembershipId}`,fa=(e,t)=>C(e,da(t)),ya=(e,t)=>C(e,la(t)),ha=(e,t,n,r)=>{var o;const i=Xr(n);delete i.sys;const a=i.role;return E(e,da(t),{role:a},{headers:Oe(Oe({},r),{},{"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0})})},ma=(e,t)=>S(e,da(t)),ba=(e,t)=>C(e,"/users/me/access_tokens/"+t.tokenId),ga=(e,t)=>C(e,"/users/me/access_tokens",{params:t.query}),Oa=(e,t,n,r)=>A(e,"/users/me/access_tokens",n,{headers:r}),va=(e,t)=>E(e,`/users/me/access_tokens/${t.tokenId}/revoked`,null),ja=(e,t)=>C(e,`/spaces/${t.spaceId}/preview_api_keys/${t.previewApiKeyId}`),wa=(e,t)=>C(e,`/spaces/${t.spaceId}/preview_api_keys`,{params:t.query}),Ia=(e,t)=>C(e,`/spaces/${t.spaceId}/roles/${t.roleId}`),Pa=(e,t)=>C(e,`/spaces/${t.spaceId}/roles`,{params:_(t.query)}),Ta=(e,t,n,r)=>A(e,`/spaces/${t.spaceId}/roles`,n,{headers:r}),Ca=(e,t,n,r)=>E(e,`/spaces/${t.spaceId}/roles/${t.roleId}`,n,{headers:r}),Aa=(e,t,n,r)=>{var o;const i=Xr(n);return delete i.sys,E(e,`/spaces/${t.spaceId}/roles/${t.roleId}`,i,{headers:we(we({},r),{},{"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0})})},Ea=(e,t)=>S(e,`/spaces/${t.spaceId}/roles/${t.roleId}`),Sa=(e,t)=>C(e,`/spaces/${t.spaceId}/scheduled_actions`,{params:_(t.query)}),Ma=(e,t,n)=>A(e,`/spaces/${t.spaceId}/scheduled_actions`,n),xa=(e,t)=>S(e,`/spaces/${t.spaceId}/scheduled_actions/${t.scheduledActionId}`),Da=e=>`/spaces/${e.spaceId}/environments/${e.environmentId}/entries/${e.entryId}/snapshots`,ka=(e,t)=>C(e,Da(t),{params:_(t.query)}),$a=(e,t)=>C(e,(e=>Da(e)+"/"+e.snapshotId)(t)),za=e=>`/spaces/${e.spaceId}/environments/${e.environmentId}/content_types/${e.contentTypeId}/snapshots`,_a=(e,t)=>C(e,za(t),{params:_(t.query)}),Fa=(e,t)=>C(e,(e=>za(e)+"/"+e.snapshotId)(t)),Ra=(e,t)=>C(e,"/spaces/"+t.spaceId),qa=(e,t)=>C(e,"/spaces",{params:t.query}),Ua=(e,t,n,r)=>A(e,"/spaces",n,{headers:t.organizationId?Te(Te({},r),{},{"X-Contentful-Organization":t.organizationId}):r}),La=(e,t,n,r)=>{var o;const i=Xr(n);return delete i.sys,E(e,"/spaces/"+t.spaceId,i,{headers:Te({"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0},r)})},Ba=(e,t)=>S(e,"/spaces/"+t.spaceId),Wa=(e,t)=>C(e,`/spaces/${t.spaceId}/space_members/${t.spaceMemberId}`),Na=(e,t)=>C(e,`/spaces/${t.spaceId}/space_members`,{params:t.query}),Ka=e=>`/spaces/${e.spaceId}/space_memberships`,Ha=e=>`${Ka(e)}/${e.spaceMembershipId}`,Va=(e,t)=>(Me(),C(e,Ha(t))),Xa=(e,t)=>(Me(),C(e,Ka(t),{params:t.query})),Ga=(e,t)=>C(e,`/organizations/${t.organizationId}/space_memberships/${t.spaceMembershipId}`),Qa=(e,t)=>C(e,`/organizations/${t.organizationId}/space_memberships`,{params:t.query}),Ja=(e,t,n,r)=>(Me(),A(e,Ka(t),n,{headers:r})),Ya=(e,t,n,r)=>(Me(),E(e,Ha(t),n,{headers:r})),Za=(e,t,n,r)=>{var o;const i=Xr(n);return delete i.sys,E(e,Ha(t),i,{headers:Ee(Ee({},r),{},{"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0})})},es=(e,t)=>S(e,Ha(t)),ts=e=>`/spaces/${e.spaceId}/environments/${e.environmentId}/tags`,ns=e=>ts(e)+"/"+e.tagId,rs=(e,t)=>C(e,ns(t)),os=(e,t)=>C(e,ts(t),{params:t.query}),is=(e,t,n)=>{let r=t.visibility,o=$e(t,["visibility"]);const i=Xr(n);return E(e,ns(o),i,{headers:{"X-Contentful-Tag-Visibility":null!=r?r:"private"}})},as=(e,t,n,r)=>{var o;const i=Xr(n);return delete i.sys,E(e,ns(t),i,{headers:De({"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0},r)})},ss=(e,t)=>{let n=t.version,r=$e(t,["version"]);return S(e,ns(r),{headers:{"X-Contentful-Version":n}})},cs=e=>`/organizations/${e.organizationId}/teams`,us=e=>`${cs(e)}/${e.teamId}`,ps=(e,t)=>C(e,us(t)),ls=(e,t)=>C(e,cs(t),{params:_(t.query)}),ds=(e,t,n,r)=>A(e,cs(t),n,{headers:r}),fs=(e,t,n,r)=>{var o;const i=Xr(n);return delete i.sys,E(e,us(t),i,{headers:_e({"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0},r)})},ys=(e,t)=>S(e,us(t)),hs=e=>`/organizations/${e.organizationId}/teams/${e.teamId}/team_memberships`,ms=e=>`/organizations/${e.organizationId}/teams/${e.teamId}/team_memberships/${e.teamMembershipId}`,bs=(e,t)=>C(e,ms(t)),gs=(e,t)=>C(e,`/organizations/${t.organizationId}/team_memberships`,{params:_(t.query)}),Os=(e,t)=>C(e,hs(t),{params:_(t.query)}),vs=(e,t,n,r)=>A(e,hs(t),n,{headers:r}),js=(e,t,n,r)=>{const o=Xr(n);return delete o.sys,E(e,ms(t),o,{headers:qe({"X-Contentful-Version":n.sys.version||0},r)})},ws=(e,t)=>S(e,ms(t)),Is=e=>`/spaces/${e.spaceId}/team_space_memberships`,Ps=e=>`${Is(e)}/${e.teamSpaceMembershipId}`,Ts=(e,t)=>C(e,Ps(t)),Cs=(e,t)=>C(e,Is(t),{params:t.query}),As=(e,t)=>C(e,`/organizations/${t.organizationId}/team_space_memberships/${t.teamSpaceMembershipId}`),Es=(e,t)=>{const n=t.query||{};return t.teamId&&(n["sys.team.sys.id"]=t.teamId),C(e,`/organizations/${t.organizationId}/team_space_memberships`,{params:t.query})},Ss=(e,t,n,r)=>A(e,Is(t),n,{headers:Be({"x-contentful-team":t.teamId},r)}),Ms=(e,t,n,r)=>{const o=Xr(n);return delete o.sys,E(e,Ps(t),o,{headers:Be({"X-Contentful-Version":n.sys.version||0,"x-contentful-team":n.sys.team.sys.id},r)})},xs=(e,t)=>S(e,Ps(t)),Ds=(e,t)=>C(e,`/organizations/${t.organizationId}/space_periodic_usages`,{params:t.query}),ks=(e,t)=>C(e,`/organizations/${t.organizationId}/organization_periodic_usages`,{params:t.query}),$s=(e,t)=>C(e,`/spaces/${t.spaceId}/users/${t.userId}`),zs=(e,t)=>C(e,"/users/me",{params:null==t?void 0:t.query}),_s=(e,t)=>C(e,`/spaces/${t.spaceId}/users`,{params:t.query}),Fs=(e,t)=>C(e,`/organizations/${t.organizationId}/users/${t.userId}`),Rs=(e,t)=>C(e,`/organizations/${t.organizationId}/users`,{params:t.query}),qs=e=>`/spaces/${e.spaceId}/webhook_definitions`,Us=e=>`/spaces/${e.spaceId}/webhooks`,Ls=e=>`${qs(e)}/${e.webhookDefinitionId}`,Bs=(e,t)=>C(e,Ls(t)),Ws=(e,t)=>C(e,(e=>`${Us(e)}/${e.webhookDefinitionId}/calls`)(t),{params:_(t.query)}),Ns=(e,t)=>C(e,(e=>`${Us(e)}/${e.webhookDefinitionId}/calls/${e.callId}`)(t)),Ks=(e,t)=>C(e,(e=>`${Us(e)}/${e.webhookDefinitionId}/health`)(t)),Hs=(e,t)=>C(e,qs(t),{params:_(t.query)}),Vs=(e,t,n,r)=>{const o=Xr(n);return A(e,qs(t),o,{headers:r})},Xs=(e,t,n,r)=>{const o=Xr(n);return E(e,Ls(t),o,{headers:r})},Gs=function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){Ve(s,r,o,i,a,"next",e)}function a(e){Ve(s,r,o,i,a,"throw",e)}var s=e.apply(t,n);i(void 0)}))}}((function*(e,t,n,r){var o;const i=Xr(n);return delete i.sys,E(e,Ls(t),i,{headers:Ke({"X-Contentful-Version":null!==(o=n.sys.version)&&void 0!==o?o:0},r)})}));return function(){return e.apply(this,arguments)}}(),Qs=(e,t)=>S(e,Ls(t));var Js={ApiKey:mn,AppBundle:bn,AppDefinition:gn,AppInstallation:On,AppUpload:vn,Asset:wn,AssetKey:In,ContentType:Pn,EditorInterface:Tn,Entry:Cn,Environment:An,EnvironmentAlias:En,Extension:Sn,Http:Mn,Locale:xn,Organization:Dn,OrganizationInvitation:kn,OrganizationMembership:$n,PersonalAccessToken:zn,PreviewApiKey:_n,Role:Fn,ScheduledAction:Rn,Snapshot:qn,Space:Un,SpaceMember:Ln,SpaceMembership:Bn,Tag:Wn,Team:Nn,TeamMembership:Kn,TeamSpaceMembership:Hn,Upload:jn,Usage:Vn,User:Xn,Webhook:Gn};const Ys={defaultHostname:"api.contentful.com",defaultHostnameUpload:"upload.contentful.com"};class Zs{constructor(e){if(Je(this,"params",void 0),!e.accessToken)throw new TypeError("Expected parameter accessToken");this.params=Qe(Qe({},Ys),Xr(e))}makeRequest({entityType:e,action:t,params:n,payload:r,headers:o,userAgent:i}){var a=this;return function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){Xe(s,r,o,i,a,"next",e)}function a(e){Xe(s,r,o,i,a,"throw",e)}var s=e.apply(t,n);i(void 0)}))}}((function*(){var s;const c=null===(s=Js[e])||void 0===s?void 0:s["delete"===t?"del":t];if(void 0===c)throw new Error("Unknown endpoint");const u=y(ro.a,Qe(Qe({},a.params),{},{headers:Qe(Qe({},{"Content-Type":"application/vnd.contentful.management.v1+json","X-Contentful-User-Agent":i}),a.params.headers)}));return yield c(u,n,r,o)}))()}}const ec=e=>(t,n,...r)=>{const o=v(Xr(n));return o.items=o.items.map(n=>e(t,n,...r)),o},tc=ec(Ze),nc=ec(et),rc=ec(tt),oc=ec(nt),ic=ec(rt),ac=e=>!!e.sys.publishedVersion,sc=e=>!!(e.sys.publishedVersion&&e.sys.version>e.sys.publishedVersion+1),cc=e=>!e.sys.publishedVersion,uc=e=>!!e.sys.archivedVersion,pc=ec(st),lc=ec(ut),dc=ec(pt),fc=function(e,t,n){const r=e.fields.find(e=>e.id===t);return r?(r[n]=!0,Promise.resolve(e)):Promise.reject(new Error(`Tried to omitAndDeleteField on a nonexistent field, ${t}, on the content type ${e.name}.`))},yc=(e,t,n)=>{let r=t.fieldId,o=lt(t,["fieldId"]);return fc(n,r,"omitted").then(t=>e({entityType:"ContentType",action:"update",params:o,payload:t})).then(e=>fc(e,r,"deleted")).then(t=>e({entityType:"ContentType",action:"update",params:o,payload:t}))},hc=ec(ht),mc=ec(Ot),bc=ec(Pt),gc=ec(Tt),Oc=ec(Ct),vc=ec(At),jc=ec(Et),wc=ec(St),Ic=ec(xt),Pc=ec(Dt),Tc=ec(kt),Cc=ec($t);var Ac;!function(e){e.scheduled="scheduled",e.inProgress="inProgress",e.succeeded="succeeded",e.failed="failed",e.canceled="canceled"}(Ac||(Ac={}));const Ec=ec(Ft),Sc=ec(Rt),Mc=ec(qt),xc=ec(Ut),Dc=ec(Lt),kc=ec(Bt),$c=ec(Wt),zc=ec(Vt),_c=ec(Xt),Fc=ec(Yt);var Rc={appBundle:Jn,apiKey:Qn,appDefinition:Yn,appInstallation:Zn,appUpload:er,asset:tr,assetKey:nr,contentType:ir,editorInterface:rr,entry:ar,environment:cr,environmentAlias:ur,extension:pr,locale:lr,organization:dr,organizationInvitation:fr,organizationMembership:yr,personalAccessToken:hr,previewApiKey:mr,role:br,scheduledAction:gr,snapshot:or,space:Or,spaceMember:vr,spaceMembership:jr,tag:sr,team:wr,teamMembership:Ir,teamSpaceMembership:Pr,upload:Tr,usage:Cr,user:Ar,webhook:Er};const qc=({makeRequest:e,defaults:t},n,r)=>(o,i,a)=>e({entityType:n,action:r,params:tn(tn({},t),o),payload:i,headers:a}),Uc=(e,t)=>{const n={makeRequest:e,defaults:t};return{raw:{getDefaultParams:()=>t,get:(t,n)=>e({entityType:"Http",action:"get",params:{url:t,config:n}}),patch:(t,n,r)=>e({entityType:"Http",action:"patch",params:{url:t,config:r},payload:n}),post:(t,n,r)=>e({entityType:"Http",action:"post",params:{url:t,config:r},payload:n}),put:(t,n,r)=>e({entityType:"Http",action:"put",params:{url:t,config:r},payload:n}),delete:(t,n)=>e({entityType:"Http",action:"delete",params:{url:t,config:n}}),http:(t,n)=>e({entityType:"Http",action:"request",params:{url:t,config:n}})},appBundle:{get:qc(n,"AppBundle","get"),getMany:qc(n,"AppBundle","getMany"),delete:qc(n,"AppBundle","delete"),create:qc(n,"AppBundle","create")},editorInterface:{get:qc(n,"EditorInterface","get"),getMany:qc(n,"EditorInterface","getMany"),update:qc(n,"EditorInterface","update")},space:{get:qc(n,"Space","get"),getMany:qc(n,"Space","getMany"),update:qc(n,"Space","update"),delete:qc(n,"Space","delete"),create:qc(n,"Space","create")},environment:{get:qc(n,"Environment","get"),getMany:qc(n,"Environment","getMany"),create:qc(n,"Environment","create"),createWithId:qc(n,"Environment","createWithId"),update:qc(n,"Environment","update"),delete:qc(n,"Environment","delete")},environmentAlias:{get:qc(n,"EnvironmentAlias","get"),getMany:qc(n,"EnvironmentAlias","getMany"),createWithId:qc(n,"EnvironmentAlias","createWithId"),update:qc(n,"EnvironmentAlias","update"),delete:qc(n,"EnvironmentAlias","delete")},contentType:{get:qc(n,"ContentType","get"),getMany:qc(n,"ContentType","getMany"),update:qc(n,"ContentType","update"),delete:qc(n,"ContentType","delete"),publish:qc(n,"ContentType","publish"),unpublish:qc(n,"ContentType","unpublish"),omitAndDeleteField:(n,r,o)=>yc(e,on(on({},on(on({},t),n)),{},{fieldId:o}),r)},user:{getManyForSpace:qc(n,"User","getManyForSpace"),getForSpace:qc(n,"User","getForSpace"),getCurrent:qc(n,"User","getCurrent"),getForOrganization:qc(n,"User","getForOrganization"),getManyForOrganization:qc(n,"User","getManyForOrganization")},entry:{getMany:qc(n,"Entry","getMany"),get:qc(n,"Entry","get"),update:qc(n,"Entry","update"),patch:qc(n,"Entry","patch"),delete:qc(n,"Entry","delete"),publish:qc(n,"Entry","publish"),unpublish:qc(n,"Entry","unpublish"),archive:qc(n,"Entry","archive"),unarchive:qc(n,"Entry","unarchive"),create:qc(n,"Entry","create"),createWithId:qc(n,"Entry","createWithId")},asset:{getMany:qc(n,"Asset","getMany"),get:qc(n,"Asset","get"),update:qc(n,"Asset","update"),delete:qc(n,"Asset","delete"),publish:qc(n,"Asset","publish"),unpublish:qc(n,"Asset","unpublish"),archive:qc(n,"Asset","archive"),unarchive:qc(n,"Asset","unarchive"),create:qc(n,"Asset","create"),createWithId:qc(n,"Asset","createWithId"),createFromFiles:qc(n,"Asset","createFromFiles"),processForAllLocales:(n,r,o)=>e({entityType:"Asset",action:"processForAllLocales",params:on(on({},on(on({},t),n)),{},{options:o,asset:r})}),processForLocale:(n,r,o,i)=>e({entityType:"Asset",action:"processForLocale",params:on(on({},on(on({},t),n)),{},{locale:o,asset:r,options:i})})},appUpload:{get:qc(n,"AppUpload","get"),delete:qc(n,"AppUpload","delete"),create:qc(n,"AppUpload","create")},assetKey:{create:qc(n,"AssetKey","create")},upload:{get:qc(n,"Upload","get"),create:qc(n,"Upload","create"),delete:qc(n,"Upload","delete")},locale:{get:qc(n,"Locale","get"),getMany:qc(n,"Locale","getMany"),delete:qc(n,"Locale","delete"),update:qc(n,"Locale","update"),create:qc(n,"Locale","create")},personalAccessToken:{get:qc(n,"PersonalAccessToken","get"),getMany:qc(n,"PersonalAccessToken","getMany"),create:(t,n)=>e({entityType:"PersonalAccessToken",action:"create",params:{},headers:n,payload:t}),revoke:qc(n,"PersonalAccessToken","revoke")},usage:{getManyForSpace:qc(n,"Usage","getManyForSpace"),getManyForOrganization:qc(n,"Usage","getManyForOrganization")},role:{get:qc(n,"Role","get"),getMany:qc(n,"Role","getMany"),create:qc(n,"Role","create"),createWithId:qc(n,"Role","createWithId"),update:qc(n,"Role","update"),delete:qc(n,"Role","delete")},scheduledActions:{getMany:qc(n,"ScheduledAction","getMany"),create:qc(n,"ScheduledAction","create"),delete:qc(n,"ScheduledAction","delete")},previewApiKey:{get:qc(n,"PreviewApiKey","get"),getMany:qc(n,"PreviewApiKey","getMany")},apiKey:{get:qc(n,"ApiKey","get"),getMany:qc(n,"ApiKey","getMany"),create:qc(n,"ApiKey","create"),createWithId:qc(n,"ApiKey","createWithId"),update:qc(n,"ApiKey","update"),delete:qc(n,"ApiKey","delete")},appDefinition:{get:qc(n,"AppDefinition","get"),getMany:qc(n,"AppDefinition","getMany"),create:qc(n,"AppDefinition","create"),update:qc(n,"AppDefinition","update"),delete:qc(n,"AppDefinition","delete")},appInstallation:{get:qc(n,"AppInstallation","get"),getMany:qc(n,"AppInstallation","getMany"),upsert:qc(n,"AppInstallation","upsert"),delete:qc(n,"AppInstallation","delete")},extension:{get:qc(n,"Extension","get"),getMany:qc(n,"Extension","getMany"),create:qc(n,"Extension","create"),createWithId:qc(n,"Extension","createWithId"),update:qc(n,"Extension","update"),delete:qc(n,"Extension","delete")},webhook:{get:qc(n,"Webhook","get"),getMany:qc(n,"Webhook","getMany"),getHealthStatus:qc(n,"Webhook","getHealthStatus"),getCallDetails:qc(n,"Webhook","getCallDetails"),getManyCallDetails:qc(n,"Webhook","getManyCallDetails"),create:qc(n,"Webhook","create"),update:qc(n,"Webhook","update"),delete:qc(n,"Webhook","delete")},snapshot:{getManyForEntry:qc(n,"Snapshot","getManyForEntry"),getForEntry:qc(n,"Snapshot","getForEntry"),getManyForContentType:qc(n,"Snapshot","getManyForContentType"),getForContentType:qc(n,"Snapshot","getForContentType")},tag:{get:qc(n,"Tag","get"),getMany:qc(n,"Tag","getMany"),createWithId:qc(n,"Tag","createWithId"),update:qc(n,"Tag","update"),delete:qc(n,"Tag","delete")},organization:{getAll:qc(n,"Organization","getMany"),get:qc(n,"Organization","get")},organizationInvitation:{get:qc(n,"OrganizationInvitation","get"),create:qc(n,"OrganizationInvitation","create")},organizationMembership:{get:qc(n,"OrganizationMembership","get"),getMany:qc(n,"OrganizationMembership","getMany"),update:qc(n,"OrganizationMembership","update"),delete:qc(n,"OrganizationMembership","delete")},spaceMember:{get:qc(n,"SpaceMember","get"),getMany:qc(n,"SpaceMember","getMany")},spaceMembership:{get:qc(n,"SpaceMembership","get"),getMany:qc(n,"SpaceMembership","getMany"),getForOrganization:qc(n,"SpaceMembership","getForOrganization"),getManyForOrganization:qc(n,"SpaceMembership","getManyForOrganization"),create:qc(n,"SpaceMembership","create"),createWithId:qc(n,"SpaceMembership","createWithId"),update:qc(n,"SpaceMembership","update"),delete:qc(n,"SpaceMembership","delete")},team:{get:qc(n,"Team","get"),getMany:qc(n,"Team","getMany"),create:qc(n,"Team","create"),update:qc(n,"Team","update"),delete:qc(n,"Team","delete")},teamMembership:{get:qc(n,"TeamMembership","get"),getManyForOrganization:qc(n,"TeamMembership","getManyForOrganization"),getManyForTeam:qc(n,"TeamMembership","getManyForTeam"),create:qc(n,"TeamMembership","create"),update:qc(n,"TeamMembership","update"),delete:qc(n,"TeamMembership","delete")},teamSpaceMembership:{get:qc(n,"TeamSpaceMembership","get"),getMany:qc(n,"TeamSpaceMembership","getMany"),getForOrganization:qc(n,"TeamSpaceMembership","getForOrganization"),getManyForOrganization:qc(n,"TeamSpaceMembership","getManyForOrganization"),create:qc(n,"TeamSpaceMembership","create"),update:qc(n,"TeamSpaceMembership","update"),delete:qc(n,"TeamSpaceMembership","delete")}}},Lc=(e,t)=>({[Symbol.asyncIterator](){let n=Xr(t);const r=()=>e(Xr(n));let o=r();return{current:0,next(){var e=this;return function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){function i(e){pn(s,r,o,i,a,"next",e)}function a(e){pn(s,r,o,i,a,"throw",e)}var s=e.apply(t,n);i(void 0)}))}}((function*(){const t=yield o,i=t.total,a=t.items,s=t.skip,c=t.limit;if(i===e.current)return{done:!0,value:null};const u=a[e.current++-s],p=0==e.current%c,l=e.current===i;return p&&!l&&(n=cn(cn({},n),{},{query:cn(cn({},n.query),{},{skip:s+c})}),o=r()),{done:!1,value:u}}))()}}}})}]);