PageSourceSearch

https://www.konicaminolta.de/_next/static/chunks/1062-1b70b39b1f4e8197.js

js konicaminolta.de collected 2026-10-04 00:15:54 UTC 136,609 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1062],{77410:function(e){"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},59595:function(e,t,r){"use strict";var n=r(23079),i=r(56382),a=r(77410);e.exports={formats:a,parse:i,stringify:n}},56382:function(e,t,r){"use strict";var n=r(34414),i=Object.prototype.hasOwnProperty,a=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,l=c.split(t.delimiter,t.throwOnLimitExceeded?u+1:u);if(t.throwOnLimitExceeded&&l.length>u)throw RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var p=-1,d=t.charset;if(t.charsetSentinel)for(h=0;h<l.length;++h)0===l[h].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[h]?d="utf-8":"utf8=%26%2310003%3B"===l[h]&&(d="iso-8859-1"),p=h,h=l.length);for(h=0;h<l.length;++h)if(h!==p){var h,f,y,m=l[h],_=m.indexOf("]="),g=-1===_?m.indexOf("="):_+1;
1if(-1===g?(f=t.decoder(m,o.decoder,d,"key"),y=t.strictNullHandling?null:""):null!==(f=t.decoder(m.slice(0,g),o.decoder,d,"key"))&&(y=n.maybeMap(s(m.slice(g+1),t,a(r[f])?r[f].length:0),function(e){return t.decoder(e,o.decoder,d,"value")})),y&&t.interpretNumericEntities&&"iso-8859-1"===d&&(y=String(y).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),m.indexOf("[]=")>-1&&(y=a(y)?[y]:y),null!==f){var v=i.call(r,f);v&&"combine"===t.duplicates?r[f]=n.combine(r[f],y,t.arrayLimit,t.plainObjects):v&&"last"!==t.duplicates||(r[f]=y)}}return r},u=function(e,t,r,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var o=e.slice(0,-1).join("");a=Array.isArray(t)&&t[o]?t[o].length:0}for(var c=i?t:s(t,r,a),u=e.length-1;u>=0;--u){var l,p=e[u];if("[]"===p&&r.parseArrays)l=n.isOverflow(c)?c:r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:n.combine([],c,r.arrayLimit,r.plainObjects);else{l=r.plainObjects?{__proto__:null}:{};var d="["===p.charAt(0)&&"]"===p.charAt(p.length-1)?p.slice(1,-1):p,h=r.decodeDotInKeys?d.replace(/%2E/g,"."):d,f=parseInt(h,10);r.parseArrays||""!==h?!isNaN(f)&&p!==h&&String(f)===h&&f>=0&&r.parseArrays&&f<=r.arrayLimit?(l=[])[f]=c:"__proto__"!==h&&(l[h]=c):l={0:c}}c=l}return c},l=function(e,t){var r=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(t.depth<=0){if(!t.plainObjects&&i.call(Object.prototype,r)&&!t.allowPrototypes)return;return[r]}var n=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),o=a?r.slice(0,a.index):r,s=[];if(o){if(!t.plainObjects&&i.call(Object.prototype,o)&&!t.allowPrototypes)return;s.push(o)}for(var c=0;null!==(a=n.exec(r))&&c<t.depth;){c+=1;var u=a[1].slice(1,-1);if(!t.plainObjects&&i.call(Object.prototype,u)&&!t.allowPrototypes)return;s.push(a[1])}if(a){if(!0===t.strictDepth)throw RangeError("Input depth exceeded depth option of "+t.depth+" and strictDepth is true");s.push("["+r.slice(a.index)+"]")}return s},p=function(e,t,r,n){if(e){var i=l(e,r);if(i)return u(i,t,r,n)}},d=function(e){if(!e)return o;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?o.charset:e.charset,r=void 0===e.duplicates?o.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||o.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:o.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=d(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?c(e,r):e,a=r.plainObjects?{__proto__:null}:{},o=Object.keys(i),s=0;s<o.length;++s){var u=o[s],l=p(u,i[u],r,"string"==typeof e);
1a=n.merge(a,l,r)}return!0===r.allowSparse?a:n.compact(a)}},23079:function(e,t,r){"use strict";var n=r(39291),i=r(34414),a=r(77410),o=Object.prototype.hasOwnProperty,s={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,d=a.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:d,formatter:a.formatters[d],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},f={},y=function e(t,r,a,o,s,u,p,d,y,m,_,g,v,E,b,A,w,O){for(var R,T,I=t,S=O,P=0,N=!1;void 0!==(S=S.get(f))&&!N;){var U=S.get(t);if(P+=1,void 0!==U){if(U===P)throw RangeError("Cyclic object value");N=!0}void 0===S.get(f)&&(P=0)}if("function"==typeof m?I=m(r,I):I instanceof Date?I=v(I):"comma"===a&&c(I)&&(I=i.maybeMap(I,function(e){return e instanceof Date?v(e):e})),null===I){if(u)return y&&!A?y(r,h.encoder,w,"key",E):r;I=""}if("string"==typeof(R=I)||"number"==typeof R||"boolean"==typeof R||"symbol"==typeof R||"bigint"==typeof R||i.isBuffer(I))return y?[b(A?r:y(r,h.encoder,w,"key",E))+"="+b(y(I,h.encoder,w,"value",E))]:[b(r)+"="+b(String(I))];var D=[];if(void 0===I)return D;if("comma"===a&&c(I))A&&y&&(I=i.maybeMap(I,y)),T=[{value:I.length>0?I.join(",")||null:void 0}];else if(c(m))T=m;else{var L=Object.keys(I);T=_?L.sort(_):L}var k=d?String(r).replace(/\./g,"%2E"):String(r),C=o&&c(I)&&1===I.length?k+"[]":k;if(s&&c(I)&&0===I.length)return C+"[]";for(var x=0;x<T.length;++x){var j=T[x],q="object"==typeof j&&j&&void 0!==j.value?j.value:I[j];if(!p||null!==q){var B=g&&d?String(j).replace(/\./g,"%2E"):String(j),z=c(I)?"function"==typeof a?a(C,B):C:C+(g?"."+B:"["+B+"]");O.set(t,P);var V=n();V.set(f,O),l(D,e(q,z,a,o,s,u,p,d,"comma"===a&&A&&c(I)?null:y,m,_,g,v,E,b,A,w,V))}}return D},m=function(e){if(!e)return h;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||h.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!o.call(a.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var i=a.formatters[n],u=h.filter;if(("function"==typeof e.filter||c(e.filter))&&(u=e.filter),t=e.arrayFormat in s?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":h.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||h.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:h.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:
1h.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?h.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:h.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:h.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:h.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:h.encodeValuesOnly,filter:u,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:h.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:h.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:h.strictNullHandling}};e.exports=function(e,t){var r,i=e,a=m(t);"function"==typeof a.filter?i=(0,a.filter)("",i):c(a.filter)&&(r=a.filter);var o=[];if("object"!=typeof i||null===i)return"";var u=s[a.arrayFormat],p="comma"===u&&a.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var d=n(),h=0;h<r.length;++h){var f=r[h],_=i[f];a.skipNulls&&null===_||l(o,y(_,f,u,p,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,d))}var g=o.join(a.delimiter),v=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),g.length>0?v+g:""}},34414:function(e,t,r){"use strict";var n=r(77410),i=r(39291),a=Object.prototype.hasOwnProperty,o=Array.isArray,s=i(),c=function(e,t){return s.set(e,t),e},u=function(e){return s.has(e)},l=function(e){return s.get(e)},p=function(e,t){s.set(e,t)},d=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),h=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(o(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}},f=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:f,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t,r,n){if(u(e)){var i=l(e)+1;return e[i]=t,p(e,i),e}var a=[].concat(e,t);return a.length>r?c(f(a,{plainObjects:n}),a.length-1):a},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],o=Object.keys(a),s=0;s<o.length;++s){var c=o[s],u=a[c];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:a,prop:c}),r.push(u))}return h(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,a){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",c=0;c<o.length;c+=1024){for(var u=o.length>=1024?o.slice(c,c+1024):o,l=[],p=0;p<u.length;++p){var h=u.charCodeAt(p);if(45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||a===n.RFC1738&&(40===h||41===h)){l[l.length]=u.charAt(p);continue}if(h<128){l[l.length]=d[h];continue}if(h<2048){l[l.length]=d[192|h>>6]+d[128|63&h];continue}if(h<55296||h>=57344){l[l.length]=d[224|h>>12]+d[128|h>>6&63]+d[128|63&h];continue}p+=1,h=65536+((1023&h)<<10|1023&u.charCodeAt(p)),l[l.length]=d[240|h>>18]+d[128|h>>12&63]+d[128|h>>6&63]+d[128|63&h]}s+=l.join("")}return s},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isOverflow:u,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(o(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(o(t))t.push(r);else if(!t||"object"!=typeof t)return[t,r];else if(u(t)){var i=l(t)+1;t[i]=r,p(t,i)}else(n&&(n.plainObjects||n.allowPrototypes)||!a.call(Object.prototype,r))&&(t[r]=!0);return t}if(!t||"object"!=typeof t){if(u(r)){for(var s=Object.keys(r),d=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},h=0;h<s.length;h++)d[parseInt(s[h],10)+1]=r[s[h]];return c(d,l(r)+1)}return[t].concat(r)}var y=t;return(o(t)&&!o(r)&&(y=f(t,n)),o(t)&&o(r))?(r.forEach(function(r,i){if(a.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,n):t.push(r)}else t[i]=r}),t):Object.keys(r).reduce(function(t,i){var o=r[i];return a.call(t,i)?t[i]=e(t[i],o,n):t[i]=o,t},y)}}},39291:function(e,t,r){"use strict";
1var n=r(53842),i=r(5038),a=r(9112),o=r(9265),s=r(77117)||o||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=s()),e.set(t,r)}};return t}},43749:function(e,t){"use strict";t.__esModule=!0,t.default={version:"1.0.21",date:new Date().toISOString()}},83593:function(e,t){"use strict";t.__esModule=!0,t.ManifestError=void 0,(t.ManifestError||(t.ManifestError={})).PROJECT_NOT_FOUND="personalize.MANIFEST.PROJECT_NOT_FOUND"},15668:function(e,t){"use strict";var r;t.__esModule=!0,t.IngestEventType=void 0,(r=t.IngestEventType||(t.IngestEventType={})).IMPRESSION="IMPRESSION",r.CUSTOM_EVENT="EVENT"},40955:function(e,t,r){"use strict";var n=r(63031);Object.assign(e.exports,n.Personalize),e.exports=n.Personalize},63031:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}c((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(r)throw TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.Personalize=void 0;var s=o(r(80751)),c=o(r(43749)),u=r(83593),l=r(77928),p="X-CS-Personalize-User-Uid",d="cs-personalize-user-uid",h="cs-lytics-audiences",f="cs-personalize-manifest",y="Referer",m="X-Forwarded-For",_="User-Agent",g="Cookie",v="personalize-edge-sdk-js/".concat(c.default.version),E="https://www.contentstack.com/docs/developers/sdks/personalize-edge-sdk/javascript/javascript-personalize-edge-v109-migration-guide";function b(e){var t="Calling the Personalize.".concat(e," as a global function in the Personalize Edge SDK has been deprecated."),r="Instead create an SDK instance (e.g., const sdk = await Personalize.init()) and call the ".concat(e," method there (e.g., sdk.").concat(e,"()).");console.warn("".concat("[personalize-edge-sdk]"," ").concat(t," ").concat(r," ").concat("For more information, see ".concat(E,".")))}!function(e){var t,r,o,c,A,w,O="https://personalize-edge.contentstack.com",R=!1,T={},I="personalize_variants";function S(){return"undefined"!=typeof window&&"undefined"!=typeof document}function P(e){return R?N(e,document.cookie):null}function N(e,t){var r=t.split(";").find(function(t){return t.trim().startsWith("".concat(e,"="))});return r?r.trim().split("=")[1]:null}function U(e){document.cookie="".concat(encodeURIComponent(e),"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/")}function D(){c=void 0}function L(){return i(this,void 0,void 0,function(){return a(this,function(e){switch(e.label){case 0:if(!c)return[3,2];return[4,c.promise];case 1:e.sent(),e.label=2;case 2:return[2]}})})}
1e.VARIANT_QUERY_PARAM=I,e.init=function(E,b){var U,L;return i(this,void 0,void 0,function(){var k,C,x,j,q,B,z,V,F,M;return a(this,function(H){var K,$,G,W,Q;switch(H.label){case 0:if(A="initializing",c={promise:new Promise(function(e,t){K=e,$=t}),resolve:K,reject:$},R=S(),t=E,T={},e.VARIANT_QUERY_PARAM=I,(null==b?void 0:b.request)?(C=b.request.headers.get(g))&&(k=N(d,C)):k=P(d),(null==b?void 0:b.request)?(C=b.request.headers.get(g))&&(x=N(h,C)):x=P(h),x&&(T.__lytics_audiences=x),(null==b?void 0:b.liveAttributes)&&(T=n(n({},T),b.liveAttributes)),j=P(f),r=null!==(U=null==b?void 0:b.userId)&&void 0!==U?U:k,(null==b?void 0:b.customVariantQueryParam)&&(e.VARIANT_QUERY_PARAM=b.customVariantQueryParam),!j)return[3,1];return o=q=JSON.parse(j),q.experiences||(o.experiences=Object.keys(o.activeVariants).map(function(e){return{shortUid:e,activeVariantShortUid:o.activeVariants[e]}})),[3,5];case 1:return H.trys.push([1,3,,4]),[4,function(e,n){return i(this,void 0,void 0,function(){var i,o,c,l,d,h,f,g;return a(this,function(a){switch(a.label){case 0:return(g={})["X-Project-Uid"]=t,i=g,(o=(null==n?void 0:n.url)?null==n?void 0:n.url:R?document.URL:void 0)&&(i["X-Page-Url"]=o),(c=(null==n?void 0:n.headers.has(y))?n.headers.get(y):R?document.referrer:void 0)&&(i[y]=c),(l=function(e){if(null==e?void 0:e.headers.has(m))return e.headers.get(m)}(n))&&(i[m]=l),(d=function(e){if(null==e?void 0:e.headers.has(_))return e.headers.get(_)}(n))&&(i[_]=d),r&&(i[p]=r),0===Object.keys(e).length||(i["X-Live-Attributes"]=JSON.stringify(e)),i["X-User-Agent"]=v,[4,(0,s.default)("".concat(O,"/manifest"),{headers:i})];case 1:if((h=a.sent()).ok)return[3,4];if(404!==h.status)return[3,3];return[4,h.json()];case 2:if(a.sent().error===u.ManifestError.PROJECT_NOT_FOUND)throw Error("Project not found: ".concat(t));a.label=3;case 3:throw Error("Could not fetch manifest: ".concat(h.status));case 4:return f=h.headers.get(p),[4,h.json()];case 5:return[2,{manifest:a.sent(),userId:f}]}})})}(T,null==b?void 0:b.request)];case 2:return z=(B=H.sent()).manifest,V=B.userId,o=z,r=V,[3,4];case 3:throw F=H.sent(),A="error",F;case 4:R&&(document.cookie=(G=r,W={days:365,path:"/"},Q="".concat(d,"=").concat(G),(null==W?void 0:W.days)&&(Q="".concat(Q,"; Max-Age=").concat(86400*W.days)),(null==W?void 0:W.path)&&(Q="".concat(Q,"; Path=").concat(W.path)),Q)),H.label=5;case 5:return c&&c.resolve(),D(),A="success",w=M=new l.Sdk(E,Object.assign({},o),O,r,R,null!==(L=null==b?void 0:b.customVariantQueryParam)&&void 0!==L?L:e.VARIANT_QUERY_PARAM),[2,M]}})})},e.setEdgeApiUrl=function(e){O=e},e.getExperiences=function(){if(b("getExperiences"),"success"!=A)throw Error("Cannot get experiences before initialization");return w.getExperiences()},e.triggerImpression=function(e){return i(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:if(b("triggerImpression"),"initializing"!==A)return[3,2];return[4,L()];case 1:t.sent(),t.label=2;case 2:if("success"!==A)throw Error("Cannot trigger impression before initialization");return[2,w.triggerImpression(e)]}})})},e.triggerImpressions=function(e){return i(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:if(b("triggerImpressions"),"initializing"!==A)return[3,2];return[4,L()];case 1:t.sent(),t.label=2;case 2:if("success"!==A)throw Error("Cannot trigger impressions before initialization");if(!e.aliases&&!e.experienceShortUids)throw Error("Cannot trigger impressions without options");return[4,w.triggerImpressions(e)];case 3:return t.sent(),[2]}})})},e.triggerEvent=function(e){return i(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:if(b("triggerEvent"),"initializing"!==A)return[3,2];return[4,L()];case 1:t.sent(),t.label=2;case 2:if("success"!==A)throw Error("Cannot trigger event before initialization");return[4,w.triggerEvent(e)];case 3:return t.sent(),[2]}})})},e.set=function(e){return i(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:if(b("set"),"initializing"!==A)return[3,2];return[4,L()];case 1:t.sent(),t.label=2;case 2:if("success"!==A)throw Error("Cannot set user attributes before initialization");return[4,w.set(e)];case 3:return t.sent(),[2]}})})},e.setUserId=function(e,t){return i(this,void 0,void 0,function(){return a(this,function(n){return(b("setUserId"),"success"===A)?[2,w.setUserId(e,t)]:(r=e,[2])})})},e.getUserId=function(){return b("getUserId"),r},e.getActiveVariant=function(e){if(b("getActiveVariant"),"success"!==A)throw Error("Cannot get active variant before initialization");return w.getActiveVariant(e)},e.getInitializationStatus=function(){return A},e.addStateToResponse=function(t){return i(this,void 0,void 0,function(){return a(this,function(r){if(b("addStateToResponse"),"success"!=e.getInitializationStatus())throw Error("Cannot add state to response before initialization");return w.addStateToResponse(t),[2]})})},e.getVariants=function(){if(b("getVariants"),"success"!=A)throw Error("Cannot get variants before initialization");return w.getVariants()},e.getVariantAliases=function(){if(b("getVariantAliases"),"success"!=A)throw Error("Cannot get variant aliases before initialization");return w.getVariantAliases()},e.getVariantParam=function(){if(b("getVariantParam"),"success"!=A)throw Error("Cannot get variant alias param before initialization");return w.getVariantParam()},e.variantParamToVariantAliases=function(e){return e.split(",").map(function(e){return"".concat("cs_personalize","_").concat(e)})},e.reset=function(){console.warn("[personalize-edge-sdk] Personalize.reset is deprecated as a part of the move to using the SDK instance. It will be removed \nin a future release. For more information, see ".concat(E,".")),R=S(),r=void 0,o=void 0,w=void 0,D(),A=void 0,R&&(U(d),U(f))},e.resetData=function(){t=void 0,r=void 0,R=!1,o=void 0,w=void 0,T={},D(),A=void 0}}(t.Personalize||(t.Personalize={}))},77928:function(e,t,r){"use strict";var n=this&&this.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}c((n=n.apply(e,t||[])).next())})},a=this&&this.__generator||function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;
1function s(a){return function(s){return function(a){if(r)throw TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};t.__esModule=!0,t.Sdk=void 0;var s=o(r(80751)),c=o(r(43749)),u=r(15668),l="X-Project-Uid",p="X-CS-Personalize-User-Uid",d="cs-personalize-user-uid",h="Set-Cookie",f="cs_personalize",y="X-User-Agent",m="personalize-edge-sdk-js/".concat(c.default.version),_=function(){function e(e,t,r,n,i,a){this._isBrowserEnvironment=!1,this._projectUid=e,this._manifestData=t,this._edgeApiURL=r,this._userId=n,this._isBrowserEnvironment=i,this.VARIANT_QUERY_PARAM=a}return e.prototype.getExperiences=function(){return this._manifestData.experiences},e.prototype.triggerImpression=function(e){return i(this,void 0,void 0,function(){return a(this,function(t){return[2,this.triggerImpressions({experienceShortUids:[e]})]})})},e.prototype.triggerImpressions=function(e){return i(this,void 0,void 0,function(){var t,r,n=this;return a(this,function(i){switch(i.label){case 0:if(!e.aliases&&!e.experienceShortUids)throw Error("Cannot trigger impression without options");return t=(e.aliases?e.aliases.map(this.getExperienceAndVariantFromAlias):e.experienceShortUids.map(function(e){return{experienceShortUid:e,variantShortUid:n.getActiveVariant(e)}},this)).filter(function(e){return!!e.variantShortUid}).map(function(e){return{experienceShortUid:e.experienceShortUid,variantShortUid:e.variantShortUid,type:u.IngestEventType.IMPRESSION}}),[4,(0,s.default)("".concat(this._edgeApiURL,"/events"),{method:"POST",headers:((r={})[l]=this._projectUid,r[p]=this._userId,r[y]=m,r),body:JSON.stringify(t)})];case 1:return i.sent(),[2]}})})},e.prototype.triggerEvent=function(e){return i(this,void 0,void 0,function(){var t,r;return a(this,function(n){switch(n.label){case 0:return t={eventKey:e,type:u.IngestEventType.CUSTOM_EVENT},[4,(0,s.default)("".concat(this._edgeApiURL,"/events"),{method:"POST",headers:((r={})[l]=this._projectUid,r[p]=this._userId,r[y]=m,r),body:JSON.stringify([t])})];case 1:return n.sent(),[2]}})})},e.prototype.set=function(e){return i(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return[4,this.setUserAttributesOnEdge(e)];case 1:return t.sent(),[2]}})})},e.prototype.setUserId=function(e,t){return i(this,void 0,void 0,function(){var r,n,i;return a(this,function(a){switch(a.label){case 0:if(r=this._userId,this._userId=e,this._isBrowserEnvironment&&(document.cookie=this.generateCookie(d,e,{days:365,path:"/"})),!(r&&(null==t?void 0:t.preserveUserAttributes)))return[3,2];return n={sourceUserUid:r,targetUserUid:e},[4,(0,s.default)("".concat(this._edgeApiURL,"/user-attributes/actions/merge"),{method:"POST",headers:((i={})[l]=this._projectUid,i[y]=m,i),body:JSON.stringify(n)})];case 1:a.sent(),a.label=2;case 2:return[2]}})})},e.prototype.getUserId=function(){return this._userId},e.prototype.getActiveVariant=function(e){var t;return null===(t=this._manifestData.experiences.find(function(t){return t.shortUid===e}))||void 0===t?void 0:t.activeVariantShortUid},e.prototype.addStateToResponse=function(e){var t=this.generateCookie(d,this._userId,{days:365,path:"/"}),r=this.generateCookie("cs-personalize-manifest",JSON.stringify(this._manifestData),{path:"/"});e.headers.append(h,t),e.headers.append(h,r)},e.prototype.getVariants=function(){return this._manifestData.experiences.reduce(function(e,t){var r;return n(n({},e),((r={})[t.shortUid]=t.activeVariantShortUid,r))},{})},e.prototype.getVariantAliases=function(){return this.getCompactAliases().map(function(e){return"".concat(f,"_").concat(e)})},e.prototype.getVariantParam=function(){return this.getCompactAliases().join(",")},e.prototype.variantParamToVariantAliases=function(e){return e.split(",").map(function(e){return"".concat(f,"_").concat(e)})},e.prototype.getCompactAliases=function(){return this._manifestData.experiences.filter(function(e){return null!==e.activeVariantShortUid}).map(function(e){return"".concat(e.shortUid,"_").concat(e.activeVariantShortUid)})},e.prototype.getExperienceAndVariantFromAlias=function(e){var t=e.split("_"),r=t[2],n=t[3];return{experienceShortUid:r,variantShortUid:"null"===n?null:n}},e.prototype.generateCookie=function(e,t,r){var n="".concat(e,"=").concat(t);return(null==r?void 0:r.days)&&(n="".concat(n,"; Max-Age=").concat(86400*r.days)),(null==r?void 0:r.path)&&(n="".concat(n,"; Path=").concat(r.path)),n},e.prototype.setUserAttributesOnEdge=function(e){return i(this,void 0,void 0,function(){var t;return a(this,function(r){switch(r.label){case 0:return[4,(0,s.default)("".concat(this._edgeApiURL,"/user-attributes"),{method:"PATCH",headers:((t={})[l]=this._projectUid,t[p]=this._userId,t[y]=m,t),body:JSON.stringify(e)})];case 1:return[2,r.sent()]}})})},e}();t.Sdk=_},61697:function(e,t){"use strict";function r(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}var n,i,a,o,s,c,u,l,p=['"',"'",">","<","/","="];function d(e){return{text:e["#text"],itemUid:e["data-sys-entry-uid"]||e["data-sys-asset-uid"],itemType:e.type,styleType:e["sys-style-type"],attributes:e,contentTypeUid:e["data-sys-content-type-uid"]}}(n=o||(o={})).BLOCK="block",n.INLINE="inline",n.LINK="link",n.DISPLAY="display",n.DOWNLOAD="download";var h=o,f=function(e,t){return(f=Object.setPrototypeOf||({__proto__:[]}
1)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function y(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var m=function(){return(m=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function _(e){for(var t={},r=0;r<e.attributes.length;r++)t[e.attributes.item(r).name]=e.attributes.item(r).value;return e.childNodes.forEach(function(e){var r;t=m(m({},t),(r={},3===e.nodeType?r["#text"]=e.textContent:1===e.nodeType&&(r[e.nodeName.toLowerCase()]=_(e)),r))}),t}"function"==typeof SuppressedError&&SuppressedError;var g="documentfragmentcontainer";function v(e,t,r){return void 0===t&&(t=["p","a","strong","em","ul","ol","li","h1","h2","h3","h4","h5","h6","sub","u","table","thead","tbody","tr","th","td","span","fragment","sup","strike","br","img","colgroup","col","div"]),void 0===r&&(r=["href","title","target","alt","src","class","id","style","colspan","rowspan","content-type-uid","data-sys-asset-uid","sys-style-type","data-type","data-width","data-rows","data-cols","data-mtec"]),(e=e.replace(/\n/g,"<br />")).replace(/<\/?([a-z][a-z0-9]*)\b[^<>]*>/gi,function(e,r){return t.includes(r.toLowerCase())?e:""}).replace(/<([a-z][a-z0-9]*)\b[^<>]*>/gi,function(e,n){return t.includes(n.toLowerCase())?e.replace(/\s([a-z\-]+)=['"][^'"]*['"]/gi,function(e,t){return r.includes(t.toLowerCase())?e:""}):e})}String.prototype.forEachEmbeddedItem=function(e){var t="<".concat(g,">").concat(this.toString(),"</").concat(g,">"),r=new DOMParser().parseFromString(t,"text/html");r.querySelectorAll(".embedded-entry").forEach(function(t){e(t.outerHTML,d(_(t)))}),r.querySelectorAll(".embedded-asset").forEach(function(t){e(t.outerHTML,d(_(t)))})};var E=((s={})[h.BLOCK]=function(e){var t=v(e.title||e.uid),r=v(e._content_type_uid||(e.system?e.system.content_type_uid:""));return"<div><p>".concat(t,"</p><p>Content type: <span>").concat(r,"</span></p></div>")},s[h.INLINE]=function(e){var t=v(e.title||e.uid);return"<span>".concat(t,"</span>")},s[h.LINK]=function(e,t){var r=e.url?encodeURI(v(e.url)):null,n=v(t.text||e.title||e.uid||(e.system?e.system.uid:""));return"<a".concat(r?' href="'.concat(r,'"'):"",">").concat(n,"</a>")},s[h.DISPLAY]=function(e,t){var r=e.url?encodeURI(v(e.url)):null,n=v(t.attributes.alt||e.title||e.filename||e.uid||(e.system?e.system.uid:""));return"<img".concat(r?' src="'.concat(r,'"'):"",' alt="').concat(n,'" />')},s[h.DOWNLOAD]=function(e,t){var r=e.url?encodeURI(v(e.url)):null,n=v(t.text||e.title||e.uid||(e.system?e.system.content_type_uid:""));return"<a".concat(r?' href="'.concat(r,'"'):"",">").concat(n,"</a>")},s);function b(e,t){var r,n,i,a,o;return e&&t?"entry"===e.itemType?(r=e.itemUid,n=e.contentTypeUid,void 0===(i=t)&&(i=[]),i.filter(function(e){return!!e&&(e.uid&&e.uid===r&&e._content_type_uid===n||e.system&&e.system.uid===r&&e.system.content_type_uid===n)})):(a=e.itemUid,void 0===(o=t)&&(o=[]),o.filter(function(e){return!!e&&(e.uid&&e.uid===a||e.system&&e.system.uid===a)})):[]}function A(e,t){return e&&void 0!==e&&t&&void 0!==t&&void 0!==t._embedded_items?b(e,Object.values(t._embedded_items||[]).reduce(function(e,t){return e.concat(t)},[])):[]}function w(e,t,r){if(!e&&void 0===e||!t&&void 0===t)return"";if(r&&void 0!==r[t.styleType]){var n=r[t.styleType];if(void 0!==t.attributes["data-sys-content-type-uid"]&&"function"!=typeof n&&void 0!==n[t.attributes["data-sys-content-type-uid"]])return n[t.attributes["data-sys-content-type-uid"]](e,t);if(void 0!==t.attributes["data-sys-content-type-uid"]&&"function"!=typeof n&&void 0!==n.$default)return n.$default(e,t);if(void 0!==t.contentTypeUid&&"function"!=typeof n&&void 0!==n[t.contentTypeUid])return n[t.contentTypeUid](e,t);if(void 0!==t.contentTypeUid&&"function"!=typeof n&&void 0!==n.$default)return n.$default(e,t);else if("function"==typeof n)return n(e,t)}return(0,E[t.styleType])(e,t)}function O(e,t,r){!function e(t,r,n){if(t){var i=t[0];if(1===t.length&&r[i])r[i]=n(r[i]);else if(t.length>0&&r[i]){var a=t.slice(1);if(Array.isArray(r[i]))for(var o=0,s=r[i];o<s.length;o++)e(a,s[o],n);else"object"==typeof r[i]&&e(a,r[i],n)}}}(e.split("."),t,r)}function R(e,t){if(!e||void 0===e)return"";if("string"==typeof e){var r=e;return e.forEachEmbeddedItem(function(e,n){var i,a;i=r,a=w(A(n,t.entry)[0],n,t.renderOption),r=i.replace(e,a)}),r}var n=[];return e.forEach(function(e){n.push(R(e,t))}),n}(i=c||(c={})).DOCUMENT="doc",i.PARAGRAPH="p",i.LINK="a",i.IMAGE="img",i.EMBED="embed",i.HEADING_1="h1",i.HEADING_2="h2",i.HEADING_3="h3",i.HEADING_4="h4",i.HEADING_5="h5",i.HEADING_6="h6",i.ORDER_LIST="ol",i.UNORDER_LIST="ul",i.LIST_ITEM="li",i.FRAGMENT="fragment",i.HR="hr",i.TABLE="table",i.TABLE_HEADER="thead",i.TABLE_BODY="tbody",i.TABLE_FOOTER="tfoot",i.TABLE_ROW="tr",i.TABLE_HEAD="th",i.TABLE_DATA="td",i.COL_GROUP="colgroup",i.COL="col",i.BLOCK_QUOTE="blockquote",i.CODE="code",i.TEXT="text",i.REFERENCE="reference";var T=c;(a=u||(u={})).BOLD="bold",a.ITALIC="italic",a.UNDERLINE="underline",a.CLASSNAME_OR_ID="classnameOrId",a.STRIKE_THROUGH="str
1ikethrough",a.INLINE_CODE="inlineCode",a.SUBSCRIPT="subscript",a.SUPERSCRIPT="superscript",a.BREAK="break";var I=u,S=function(){},P=function(e){function t(){var t=e.call(this)||this;return t.type=T.DOCUMENT,t}return y(t,e),t}(S),N=function(e){function t(t){var r=e.call(this)||this;return r.text=t,r}return y(t,e),t}(S);function U(e,t){var r;return null===(r=e.attrs)||void 0===r?void 0:r[t]}function D(e,t){var r,n=null===(r=e.attrs)||void 0===r?void 0:r[t];return"string"==typeof n?n:void 0}function L(e){if(!e.attrs)return"";var t=[];return e.attrs.style&&t.push(' style="'.concat(e.attrs.style,'"')),e.attrs["class-name"]&&t.push(' class="'.concat(e.attrs["class-name"],'"')),e.attrs.id&&t.push(' id="'.concat(e.attrs.id,'"')),t.join("")}var k=((l={})[T.DOCUMENT]=function(){return""},l[T.PARAGRAPH]=function(e,t){return"<p".concat(L(e),">").concat(v(t(e.children)),"</p>")},l[T.LINK]=function(e,t){var r=v(D(e,"href")||D(e,"url")||""),n=D(e,"target");return"<a".concat(L(e)).concat(r?' href="'.concat(r,'"'):"").concat(n?' target="'.concat(n,'"'):"",">").concat(v(t(e.children)),"</a>")},l[T.IMAGE]=function(e,t){var r=D(e,"src")||D(e,"url"),n=r?encodeURI(v(r)):"";return"<img".concat(L(e)).concat(n?' src="'.concat(n,'"'):""," />").concat(v(t(e.children)))},l[T.EMBED]=function(e,t){var r=D(e,"src")||D(e,"url"),n=r?encodeURI(v(r)):"";return"<iframe".concat(L(e)).concat(n?' src="'.concat(n,'"'):"",">").concat(v(t(e.children)),"</iframe>")},l[T.HEADING_1]=function(e,t){return"<h1".concat(L(e),">").concat(v(t(e.children)),"</h1>")},l[T.HEADING_2]=function(e,t){return"<h2".concat(L(e),">").concat(v(t(e.children)),"</h2>")},l[T.HEADING_3]=function(e,t){return"<h3".concat(L(e),">").concat(v(t(e.children)),"</h3>")},l[T.HEADING_4]=function(e,t){return"<h4".concat(L(e),">").concat(v(t(e.children)),"</h4>")},l[T.HEADING_5]=function(e,t){return"<h5".concat(L(e),">").concat(v(t(e.children)),"</h5>")},l[T.HEADING_6]=function(e,t){return"<h6".concat(L(e),">").concat(v(t(e.children)),"</h6>")},l[T.ORDER_LIST]=function(e,t){return"<ol".concat(L(e),">").concat(v(t(e.children)),"</ol>")},l[T.FRAGMENT]=function(e,t){return"<fragment>".concat(v(t(e.children)),"</fragment>")},l[T.UNORDER_LIST]=function(e,t){return"<ul".concat(L(e),">").concat(v(t(e.children)),"</ul>")},l[T.LIST_ITEM]=function(e,t){return"<li".concat(L(e),">").concat(v(t(e.children)),"</li>")},l[T.HR]=function(){return"<hr>"},l[T.TABLE]=function(e,t){var r="",n=U(e,"colWidths");if(n&&Array.isArray(n)){var i=n.reduce(function(e,t){return e+t},0);r="<".concat(T.COL_GROUP,' data-width="').concat(i,'">'),n.forEach(function(e){var t=e/i*100;r+="<".concat(T.COL,' style="width:').concat(t.toFixed(2),'%"/>')}),r+="</".concat(T.COL_GROUP,">")}return"<table".concat(L(e),">").concat(r).concat(v(t(e.children)),"</table>")},l[T.TABLE_HEADER]=function(e,t){return"<thead".concat(L(e),">").concat(v(t(e.children)),"</thead>")},l[T.TABLE_BODY]=function(e,t){return"<tbody".concat(L(e),">").concat(v(t(e.children)),"</tbody>")},l[T.TABLE_FOOTER]=function(e,t){return"<tfoot".concat(L(e),">").concat(v(t(e.children)),"</tfoot>")},l[T.TABLE_ROW]=function(e,t){return"<tr".concat(L(e),">").concat(v(t(e.children)),"</tr>")},l[T.TABLE_HEAD]=function(e,t){if(U(e,"void"))return"";var r=U(e,"rowSpan"),n=U(e,"colSpan");return"<th".concat(r?' rowspan="'.concat(r,'"'):"").concat(n?' colspan="'.concat(n,'"'):"").concat(L(e),">").concat(v(t(e.children)),"</th>")},l[T.TABLE_DATA]=function(e,t){if(U(e,"void"))return"";var r=U(e,"rowSpan"),n=U(e,"colSpan");return"<td".concat(r?' rowspan="'.concat(r,'"'):"").concat(n?' colspan="'.concat(n,'"'):"").concat(L(e),">").concat(v(t(e.children)),"</td>")},l[T.BLOCK_QUOTE]=function(e,t){return"<blockquote".concat(L(e),">").concat(v(t(e.children)),"</blockquote>")},l[T.CODE]=function(e,t){return"<code".concat(L(e),">").concat(v(t(e.children)),"</code>")},l.reference=function(e,t){var r=U(e,"type"),n=U(e,"display-type");if(("entry"===r||"asset"===r)&&"link"===n){var i=D(e,"href")||D(e,"url")||"",a=D(e,"target"),o=D(e,"asset-uid"),s=L(e);return i&&(s+=' href="'.concat(i,'"')),a&&(s+=' target="'.concat(a,'"')),"asset"===r&&(s+=' type="asset" content-type-uid="sys_assets"',o&&(s+=' data-sys-asset-uid="'.concat(o,'"')),s+=' sys-style-type="download"'),"<a".concat(s,">").concat(v(t(e.children)),"</a>")}if("asset"===r){var c=D(e,"asset-link"),u=c?encodeURI(c):"",l=U(e,"redactor-attributes"),p=null==l?void 0:l.alt,d=D(e,"link"),a=D(e,"target")||"",h=(null==l?void 0:l["asset-caption"])||D(e,"asset-caption")||"",f=D(e,"style"),o=D(e,"asset-uid"),y=D(e,"class-name"),m=o?' asset_uid="'.concat(o,'"'):"",_=y?' class="'.concat(v(y),'"'):"",g=u?' src="'.concat(v(u),'"'):"",E="_blank"===a?' target="_blank"':"",b="<img".concat(m).concat(_).concat(g).concat(p?' alt="'.concat(p,'"'):"").concat(E).concat(f?' style="'.concat(f,'"'):""," />");return"<figure".concat(f?' style="'.concat(f,'"'):"",">")+(d?'<a href="'.concat(d,'" target="').concat(a||"",'">'):"")+b+(d?"</a>":"")+(h?"<figcaption>".concat(h,"</figcaption>"):"")+"</figure>"}return""},l.default=function(e,t){return v(t(e.children))},l[I.BOLD]=function(e){return"<strong>".concat(v(e),"</strong>")},l[I.ITALIC]=function(e){return"<em>".concat(v(e),"</em>")},l[I.UNDERLINE]=function(e){return"<u>".concat(v(e),"</u>")},l[I.STRIKE_THROUGH]=function(e){return"<strike>".concat(v(e),"</strike>")},l[I.INLINE_CODE]=function(e){return"<span data-type='inlineCode'>
1".concat(v(e),"</span>")},l[I.SUBSCRIPT]=function(e){return"<sub>".concat(v(e),"</sub>")},l[I.SUPERSCRIPT]=function(e){return"<sup>".concat(v(e),"</sup>")},l[I.BREAK]=function(e){return/^\n+$/.test(e)?v(e):"<br />".concat(v(e))},l[I.CLASSNAME_OR_ID]=function(e,t,r){return"<span".concat(t?' class="'.concat(t,'"'):"").concat(r?' id="'.concat(r,'"'):"",">").concat(v(e),"</span>")},l);function C(e,t){for(var r=0;r<e.length;r++)t(e[r])}function x(e,t,n){if(!(e instanceof Array)&&"doc"!==e.type)return e;if(e instanceof Array){var i=[];return e.forEach(function(e){i.push(x(e,t,n))}),i}var a=m(m({},k),t);return function e(t,n,i){return t.map(function(t){return function(t,n,i){if((null===(a=null==t?void 0:t.attrs)||void 0===a?void 0:a.style)&&(t.attrs.style=function(e){if(!e)return"";if("string"==typeof e)return e;var t="";for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];t+="".concat(r,":").concat(n,";")}return t}(t.attrs.style)),t.type){if("reference"===t.type)return function(t,r,n){function i(t){return r[t.type](t,function(t){return e(t,r,n)})}if(("entry"===t.attrs.type||"asset"===t.attrs.type)&&"link"===t.attrs["display-type"]){var a,o=t.children?e(t.children,r,n):"";if(void 0!==r[t.type])return i(t);var s=t.attrs.href||t.attrs.url,c="".concat(t.attrs.style?' style="'.concat(t.attrs.style,'"'):"").concat(t.attrs["class-name"]?' class="'.concat(t.attrs["class-name"],'"'):"").concat(t.attrs.id?' id="'.concat(t.attrs.id,'"'):"").concat(s?' href="'.concat(s,'"'):"");return t.attrs.target&&(c+=' target="'.concat(t.attrs.target,'"')),"asset"==t.attrs.type&&(c+=' type="asset" content-type-uid="sys_assets" '.concat(t.attrs["asset-uid"]?'data-sys-asset-uid="'.concat(t.attrs["asset-uid"],'"'):"",' sys-style-type="download"')),"<a".concat(c,">").concat(o,"</a>")}if(!n&&void 0!==r[t.type])return i(t);if(!n)return"";var u=(a=t.attrs,{text:(t.children&&t.children.length>0?t.children[0]:{}).text,itemUid:a["entry-uid"]||a["asset-uid"],itemType:a.type,styleType:a["display-type"],attributes:a,contentTypeUid:a["content-type-uid"]}),l=n(u);return l||void 0===r[t.type]?w(l,u,r):i(t)}(t,n,i);var a,o,s,c=function(t){return e(t,n,i)};return void 0!==n[t.type]?n[t.type](t,c):n.default(t,c)}return o=r(t.text),s=!1,(t.classname||t.id)&&(o=n[I.CLASSNAME_OR_ID](o,t.classname,t.id),s=!0),t.break&&(o=n[I.BREAK](o),s=!0),t.superscript&&(o=n[I.SUPERSCRIPT](o),s=!0),t.subscript&&(o=n[I.SUBSCRIPT](o),s=!0),t.inlineCode&&(o=n[I.INLINE_CODE](o),s=!0),t.strikethrough&&(o=n[I.STRIKE_THROUGH](o),s=!0),t.underline&&(o=n[I.UNDERLINE](o),s=!0),t.italic&&(o=n[I.ITALIC](o),s=!0),t.bold&&(o=n[I.BOLD](o),s=!0),!s&&o.includes("\n")&&(o=o.replace(/\n/g,"<br />")),o}(t,n,i)}).join("")}(e.children,a,n)}function j(e,t,r){if(r.shouldApplyVariant&&r._applied_variants){if(r._applied_variants[r.metaKey]){var n=r._applied_variants[r.metaKey],i=("v2:"+e).split(".");i[1]=i[1]+"_"+n,e=i.join(".")}else{var a=function(e){var t;try{if(!e._applied_variants)return"";var r=Object.keys(e._applied_variants).sort(function(e,t){return t.length-e.length}),n=e.metaKey.split(".");if(0===n.length||0===r.length)return"";return null!==(t=r.find(function(e){var t=e.split(".");return!(t.length>n.length)&&t.every(function(e,t){return n[t]===e})}))&&void 0!==t?t:""}catch(e){return""}}(r);if(a){var n=r._applied_variants[a],i=("v2:"+e).split(".");i[1]=i[1]+"_"+n,e=i.join(".")}}}return t?{"data-cslp":e}:"data-cslp=".concat(e)}function q(e){for(var t in e){var r=e[t];r instanceof Array?r.forEach(function(e){B(e)}):r&&"object"==typeof r&&B(r)}}function B(e){var t,r=function e(t){if(t&&t.embedded_itemsConnection)return t;for(var r in t)if(t[r]&&"object"==typeof t[r]){var n=e(t[r]);if(n)return n}}(e);r&&(null===(t=null==r?void 0:r.embedded_itemsConnection)||void 0===t?void 0:t.edges).forEach(function(e){var t,n,i,a=e.node;if((null==a?void 0:a.url)&&(null==a?void 0:a.filename)){if(!(null===(t=null==a?void 0:a.system)||void 0===t?void 0:t.uid))throw Error("Asset UID not found in the response");(null===(i=null===(n=null==r?void 0:r.json)||void 0===n?void 0:n.children)||void 0===i?void 0:i.find(function(e){return e.attrs["asset-uid"]===a.system.uid})).attrs["asset-link"]=a.url}})}var z=[{id:"na",name:"AWS North America",cloudProvider:"AWS",location:"North America",alias:["na","us","aws-na","aws_na","NA","US","AWS-NA","AWS_NA"],isDefault:!0,endpoints:{application:"https://app.contentstack.com",contentDelivery:"https://cdn.contentstack.io",contentManagement:"https://api.contentstack.io",auth:"https://auth-api.contentstack.com",graphqlDelivery:"https://graphql.contentstack.com",preview:"https://rest-preview.contentstack.com",graphqlPreview:"https://graphql-preview.contentstack.com",images:"https://images.contentstack.io",assets:"https://assets.contentstack.io",automate:"https://automations-api.contentstack.com",launch:"https://launch-api.contentstack.com",developerHub:"https://developerhub-api.contentstack.com",brandKit:"https://brand-kits-api.contentstack.com",genAI:"https://ai.contentstack.com/brand-kits",personalizeManagement:"https://personalize-api.contentstack.com",personalizeEdge:"https://personalize-edge.contentstack.com",composableStudio:"https://composable-studio-api.contentstack.com"}},{id:"eu",name:"AWS Europe",cloudProvider:"AWS",location:"Europe",alias:["eu","aws-eu","aws_eu","EU","AWS-EU","AWS_EU"],isDefault:!1,endpoints:{application:"https://eu-app.contentstack.com",contentDelivery:"https://eu-cdn.contentstack.com",contentManagement:"https://eu-api.contentstack.com",auth:"https://eu-auth-api.contentstack.com",graphqlDelivery:"https://eu-graphql.contentstack.com",preview:"https://eu-rest-preview.contentstack.com",graphqlPreview:"https://eu-graphql-preview.contentstack.com",images:"https://eu-images.contentstack.com",assets:"https://eu-assets.contentstack.com",automate:"https://eu-prod-automations-api.contentstack.com",launch:"https://eu-launch-api.contentstack.com",developerHub:"https://eu-developerhub-api.contentstack.com",brandKit:"https://eu-brand-kits-api.contentstack.com",genAI:"https://eu-ai.contentstack.com/brand-kits",personalizeManagement:"https://eu-personalize-api.contentstack.com",personalizeEdge:"https://eu-personalize-edge.contentstack.com",composableStudio:"https://eu-composable-studio-api.contentstack.com"}}
1,{id:"au",name:"AWS Australia",cloudProvider:"AWS",location:"Australia",alias:["au","aws-au","aws_au","AU","AWS-AU","AWS_AU"],isDefault:!1,endpoints:{application:"https://au-app.contentstack.com",contentDelivery:"https://au-cdn.contentstack.com",contentManagement:"https://au-api.contentstack.com",auth:"https://au-auth-api.contentstack.com",graphqlDelivery:"https://au-graphql.contentstack.com",preview:"https://au-rest-preview.contentstack.com",graphqlPreview:"https://au-graphql-preview.contentstack.com",images:"https://au-images.contentstack.com",assets:"https://au-assets.contentstack.com",automate:"https://au-prod-automations-api.contentstack.com",launch:"https://au-launch-api.contentstack.com",developerHub:"https://au-developerhub-api.contentstack.com",brandKit:"https://au-brand-kits-api.contentstack.com",genAI:"https://au-ai.contentstack.com/brand-kits",personalizeManagement:"https://au-personalize-api.contentstack.com",personalizeEdge:"https://au-personalize-edge.contentstack.com",composableStudio:"https://au-composable-studio-api.contentstack.com"}},{id:"azure-na",name:"Azure North America",cloudProvider:"Azure",location:"North America",alias:["azure-na","azure_na","AZURE-NA","AZURE_NA"],isDefault:!1,endpoints:{application:"https://azure-na-app.contentstack.com",contentDelivery:"https://azure-na-cdn.contentstack.com",contentManagement:"https://azure-na-api.contentstack.com",auth:"https://azure-na-auth-api.contentstack.com",graphqlDelivery:"https://azure-na-graphql.contentstack.com",preview:"https://azure-na-rest-preview.contentstack.com",graphqlPreview:"https://azure-na-graphql-preview.contentstack.com",images:"https://azure-na-images.contentstack.com",assets:"https://azure-na-assets.contentstack.com",automate:"https://azure-na-automations-api.contentstack.com",launch:"https://azure-na-launch-api.contentstack.com",developerHub:"https://azure-na-developerhub-api.contentstack.com",brandKit:"https://azure-na-brand-kits-api.contentstack.com",genAI:"https://azure-na-ai.contentstack.com/brand-kits",personalizeManagement:"https://azure-na-personalize-api.contentstack.com",personalizeEdge:"https://azure-na-personalize-edge.contentstack.com",composableStudio:"https://azure-na-composable-studio-api.contentstack.com"}},{id:"azure-eu",name:"Azure Europe",cloudProvider:"Azure",location:"Europe",alias:["azure-eu","azure_eu","AZURE-EU","AZURE_EU"],isDefault:!1,endpoints:{application:"https://azure-eu-app.contentstack.com",contentDelivery:"https://azure-eu-cdn.contentstack.com",contentManagement:"https://azure-eu-api.contentstack.com",auth:"https://azure-eu-auth-api.contentstack.com",graphqlDelivery:"https://azure-eu-graphql.contentstack.com",preview:"https://azure-eu-rest-preview.contentstack.com",graphqlPreview:"https://azure-eu-graphql-preview.contentstack.com",images:"https://azure-eu-images.contentstack.com",assets:"https://azure-eu-assets.contentstack.com",automate:"https://azure-eu-automations-api.contentstack.com",launch:"https://azure-eu-launch-api.contentstack.com",developerHub:"https://azure-eu-developerhub-api.contentstack.com",brandKit:"https://azure-eu-brand-kits-api.contentstack.com",genAI:"https://azure-eu-ai.contentstack.com/brand-kits",personalizeManagement:"https://azure-eu-personalize-api.contentstack.com",personalizeEdge:"https://azure-eu-personalize-edge.contentstack.com",composableStudio:"https://azure-eu-composable-studio-api.contentstack.com"}},{id:"gcp-na",name:"GCP North America",cloudProvider:"GCP",location:"North America",alias:["gcp-na","gcp_na","GCP-NA","GCP_NA"],isDefault:!1,endpoints:{application:"https://gcp-na-app.contentstack.com",contentDelivery:"https://gcp-na-cdn.contentstack.com",contentManagement:"https://gcp-na-api.contentstack.com",auth:"https://gcp-na-auth-api.contentstack.com",graphqlDelivery:"https://gcp-na-graphql.contentstack.com",preview:"https://gcp-na-rest-preview.contentstack.com",graphqlPreview:"https://gcp-na-graphql-preview.contentstack.com",images:"https://gcp-na-images.contentstack.com",assets:"https://gcp-na-assets.contentstack.com",automate:"https://gcp-na-automations-api.contentstack.com",launch:"https://gcp-na-launch-api.contentstack.com",developerHub:"https://gcp-na-developerhub-api.contentstack.com",brandKit:"https://gcp-na-brand-kits-api.contentstack.com",genAI:"https://gcp-na-ai.contentstack.com/brand-kits",personalizeManagement:"https://gcp-na-personalize-api.contentstack.com",personalizeEdge:"https://gcp-na-personalize-edge.contentstack.com",composableStudio:"https://gcp-na-composable-studio-api.contentstack.com"}},{id:"gcp-eu",name:"GCP Europe",cloudProvider:"GCP",location:"Europe",alias:["gcp-eu","gcp_eu","GCP-EU","GCP_EU"],isDefault:!1,endpoints:{application:"https://gcp-eu-app.contentstack.com",contentDelivery:"https://gcp-eu-cdn.contentstack.com",contentManagement:"https://gcp-eu-api.contentstack.com",auth:"https://gcp-eu-auth-api.contentstack.com",graphqlDelivery:"https://gcp-eu-graphql.contentstack.com",preview:"https://gcp-eu-rest-preview.contentstack.com",graphqlPreview:"https://gcp-eu-graphql-preview.contentstack.com",images:"https://gcp-eu-images.contentstack.com",assets:"https://gcp-eu-assets.contentstack.com",automate:"https://gcp-eu-automations-api.contentstack.com",launch:"https://gcp-eu-launch-api.contentstack.com",developerHub:"https://gcp-eu-developerhub-api.contentstack.com",brandKit:"https://gcp-eu-brand-kits-api.contentstack.com",genAI:"https://gcp-eu-ai.contentstack.com/brand-kits",personalizeManagement:"https://gcp-eu-personalize-api.contentstack.com",personalizeEdge:"https://gcp-eu-personalize-edge.contentstack.com",composableStudio:"https://gcp-eu-composable-studio-api.contentstack.com"}}];function V(e){if("string"==typeof e)return e.replace(/^https?:\/\//,"");var t={};for(var r in e)t[r]=V(e[r]);return t}t.Document=P,t.GQL={jsonToHTML:function e(t){t.entry instanceof Array?C(t.entry,function(r){e({entry:r,paths:t.paths,renderOption:t.renderOption})}):function(e){for(var t=0,r=e.paths;t<r.length;t++)O(r[t],e.entry,function(t){if(t&&t.json){var r=Object.values((t.embedded_itemsConnection?t.embedded_itemsConnection.edges:[])||[]).reduce(function(e,t){return e.concat(t.no
1de)},[]);return x(t.json,e.renderOption,function(e){return b(e,r)[0]})}return t})}({entry:t.entry,paths:t.paths,renderOption:t.renderOption})}},t.MarkType=I,t.Node=S,t.NodeType=T,t.StyleType=h,t.TextNode=N,t.addEditableTags=function(e,t,r,n,i){void 0===n&&(n="en-us");var a,o=(i||{}).useLowerCaseLocale;if(e){t=t.toLowerCase(),n=void 0===o||o?n.toLowerCase():n;var s=e._applied_variants||(null===(a=null==e?void 0:e.system)||void 0===a?void 0:a.applied_variants)||null;e.$=function e(t,r,n,i,a){var o={};a.metaKey;var s=a.shouldApplyVariant,c=a._applied_variants;return Object.entries(t).forEach(function(t){var u=t[0],l=t[1];if("$"!==u){var p=l&&"object"==typeof l&&null!==l&&l._metadata&&l._metadata.uid?l._metadata.uid:"",d=a.shouldApplyVariant?"".concat(a.metaKey?a.metaKey+".":"").concat(u):"";p&&d&&(d=d+"."+p),"object"==typeof l&&(Array.isArray(l)?l.forEach(function(t,h){if(null!=t){var f,y,m="".concat(u,"__").concat(h),_="".concat(u,"__parent");if(p=l&&"object"==typeof l&&null!==t&&t._metadata&&t._metadata.uid?t._metadata.uid:"",d=a.shouldApplyVariant?"".concat(a.metaKey?a.metaKey+".":"").concat(u):"",p&&d&&(d=d+"."+p),o[m]=j("".concat(r,".").concat(u,".").concat(h),n,{_applied_variants:c,shouldApplyVariant:s,metaKey:d}),o[_]=(f="".concat(r,".").concat(u),n?{"data-cslp-parent-field":f}:"data-cslp-parent-field=".concat(f)),null!=t&&void 0!==t._content_type_uid&&void 0!==t.uid){var g=t._applied_variants||(null===(y=null==t?void 0:t.system)||void 0===y?void 0:y.applied_variants)||null;l[h].$=e(t,"".concat(t._content_type_uid,".").concat(t.uid,".").concat(t.locale||i),n,i,{_applied_variants:g,shouldApplyVariant:!!g,metaKey:""})}else"object"==typeof t&&(t.$=e(t,"".concat(r,".").concat(u,".").concat(h),n,i,{_applied_variants:c,shouldApplyVariant:s,metaKey:d}))}}):l&&(l.$=e(l,"".concat(r,".").concat(u),n,i,{_applied_variants:c,shouldApplyVariant:s,metaKey:d}))),o[u]=j("".concat(r,".").concat(u),n,{_applied_variants:c,shouldApplyVariant:s,metaKey:d})}}),o}(e,"".concat(t,".").concat(e.uid,".").concat(n),r,n,{_applied_variants:s,shouldApplyVariant:!!s,metaKey:""})}},t.attributeToString=function(e){var t="",n=function(n){if(Object.prototype.hasOwnProperty.call(e,n)){if(p.some(function(e){return n.includes(e)}))return"continue";var i=e[n];if(Array.isArray(i))i=i.join(", ");else if("object"==typeof i){var a="";for(var o in i)if(Object.prototype.hasOwnProperty.call(i,o)){var s=i[o];null!=s&&""!==s&&(a+="".concat(o,":").concat(s,"; "))}i=a}t+=" ".concat(n,'="').concat(r(String(i)),'"')}};for(var i in e)n(i);return t},t.getContentstackEndpoint=function(e,t,r){if(void 0===e&&(e="us"),void 0===t&&(t=""),void 0===r&&(r=!1),""===e)throw Error("Empty region provided. Please put valid region.");var n,i=e.toLowerCase().trim()||"us";if(!Array.isArray(z))throw Error("Invalid Regions file. Please install the SDK again to fix this issue.");var a=z.find(function(e){return e.id===i})||z.find(function(e){return e.alias.some(function(e){return e.toLowerCase()===i.toLowerCase()})})||null;if(!a)throw Error("Invalid region: ".concat(e));if(!t)return r?V(a.endpoints):a.endpoints;var o=a.endpoints[t];if(!o)throw Error('Service "'.concat(t,'" not found for region "').concat(a.id,'"'));return r?V(o):o},t.jsonToHTML=function e(t){t.entry instanceof Array?C(t.entry,function(r){e({entry:r,paths:t.paths,renderOption:t.renderOption})}):function(e){for(var t=0,r=e.paths;t<r.length;t++)O(r[t],e.entry,function(t){return x(t,e.renderOption,function(t){return A(t,e.entry)[0]})})}({entry:t.entry,paths:t.paths,renderOption:t.renderOption})},t.render=function(e){function t(t,r){O(t,r,function(t){return R(t,{entry:r,renderOption:e.renderOption})})}function r(r){e.paths&&0!==e.paths.length?e.paths.forEach(function(e){t(e,r)}):Object.keys(m({},r._embedded_items)).forEach(function(e){t(e,r)})}e.entry instanceof Array?e.entry.forEach(function(e){r(e)}):r(e.entry)},t.renderContent=R,t.updateAssetURLForGQL=function(e){try{var t=null==e?void 0:e.data;for(var r in t)"items"in t[r]?t[r].items.forEach(function(e){q(e)}):q(t[r])}catch(e){console.error("Error in updating asset URL for GQL response",e)}}},80751:function(e,t,r){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();(function(e){var t=void 0!==i&&i||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},n={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(n.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
1]"],o=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function p(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}}function d(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function h(e){var t=new FileReader,r=d(t);return t.readAsArrayBuffer(e),r}function f(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(n.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(n.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;n.arrayBuffer&&n.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=f(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||o(e))?this._bodyArrayBuffer=f(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._noBody=!0,this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var e=p(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")}),this.arrayBuffer=function(){if(this._bodyArrayBuffer)return p(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(n.blob)return this.blob().then(h);throw Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,i,a=p(this);if(a)return a;if(this._bodyBlob)return e=this._bodyBlob,r=d(t=new FileReader),i=(n=/charset=([A-Za-z0-9_-]+)/.exec(e.type))?n[1]:"utf-8",t.readAsText(e,i),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},n.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=s(e),t=c(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=c(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),u(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),u(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),u(e)},n.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var m=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function _(e,r){if(!(this instanceof _))throw TypeError('Please use the "new" operator, this DOM object c
1onstructor cannot be called as a function.');var n,i,a=(r=r||{}).body;if(e instanceof _){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,r.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,a||null==e._bodyInit||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=r.credentials||this.credentials||"same-origin",(r.headers||!this.headers)&&(this.headers=new l(r.headers)),this.method=(i=(n=r.method||this.method||"GET").toUpperCase(),m.indexOf(i)>-1?i:n),this.mode=r.mode||this.mode||null,this.signal=r.signal||this.signal||function(){if("AbortController"in t)return new AbortController().signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(a),("GET"===this.method||"HEAD"===this.method)&&("no-store"===r.cache||"no-cache"===r.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function v(e,t){if(!(this instanceof v))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},y.call(_.prototype),y.call(v.prototype),v.prototype.clone=function(){return new v(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},v.error=function(){var e=new v(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var E=[301,302,303,307,308];v.redirect=function(e,t){if(-1===E.indexOf(t))throw RangeError("Invalid status code");return new v(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function b(r,i){return new Promise(function(a,o){var u=new _(r,i);if(u.signal&&u.signal.aborted)return o(new e.DOMException("Aborted","AbortError"));var p=new XMLHttpRequest;function d(){p.abort()}if(p.onload=function(){var e,t,r={statusText:p.statusText,headers:(e=p.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{t.append(n,i)}catch(e){console.warn("Response "+e.message)}}}),t)};0===u.url.indexOf("file://")&&(p.status<200||p.status>599)?r.status=200:r.status=p.status,r.url="responseURL"in p?p.responseURL:r.headers.get("X-Request-URL");var n="response"in p?p.response:p.responseText;setTimeout(function(){a(new v(n,r))},0)},p.onerror=function(){setTimeout(function(){o(TypeError("Network request failed"))},0)},p.ontimeout=function(){setTimeout(function(){o(TypeError("Network request timed out"))},0)},p.onabort=function(){setTimeout(function(){o(new e.DOMException("Aborted","AbortError"))},0)},p.open(u.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(u.url),!0),"include"===u.credentials?p.withCredentials=!0:"omit"===u.credentials&&(p.withCredentials=!1),"responseType"in p&&(n.blob?p.responseType="blob":n.arrayBuffer&&(p.responseType="arraybuffer")),i&&"object"==typeof i.headers&&!(i.headers instanceof l||t.Headers&&i.headers instanceof t.Headers)){var h=[];
1Object.getOwnPropertyNames(i.headers).forEach(function(e){h.push(s(e)),p.setRequestHeader(e,c(i.headers[e]))}),u.headers.forEach(function(e,t){-1===h.indexOf(t)&&p.setRequestHeader(t,e)})}else u.headers.forEach(function(e,t){p.setRequestHeader(t,e)});u.signal&&(u.signal.addEventListener("abort",d),p.onreadystatechange=function(){4===p.readyState&&u.signal.removeEventListener("abort",d)}),p.send(void 0===u._bodyInit?null:u._bodyInit)})}b.polyfill=!0,t.fetch||(t.fetch=b,t.Headers=l,t.Request=_,t.Response=v),e.Headers=l,e.Request=_,e.Response=v,e.fetch=b})({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var a=n.fetch?n:i;(t=a.fetch).default=a.fetch,t.fetch=a.fetch,t.Headers=a.Headers,t.Request=a.Request,t.Response=a.Response,e.exports=t},6934:function(e,t,r){var n,i,a,o,s,c,u,l,p,d,h,f,y,m,_,g;a=function(e,t,r){if(!d(t)||f(t)||y(t)||m(t)||p(t))return t;var n,i=0,o=0;if(h(t))for(n=[],o=t.length;i<o;i++)n.push(a(e,t[i],r));else for(var s in n={},t)Object.prototype.hasOwnProperty.call(t,s)&&(n[e(s,r)]=a(e,t[s],r));return n},o=function(e,t){var r=(t=t||{}).separator||"_",n=t.split||/(?=[A-Z])/;return e.split(n).join(r)},s=function(e){return _(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1)},c=function(e){var t=s(e);return t.substr(0,1).toUpperCase()+t.substr(1)},u=function(e,t){return o(e,t).toLowerCase()},l=Object.prototype.toString,p=function(e){return"function"==typeof e},d=function(e){return e===Object(e)},h=function(e){return"[object Array]"==l.call(e)},f=function(e){return"[object Date]"==l.call(e)},y=function(e){return"[object RegExp]"==l.call(e)},m=function(e){return"[object Boolean]"==l.call(e)},_=function(e){return(e-=0)==e},g=function(e,t){var r=t&&"process"in t?t.process:t;return"function"!=typeof r?e:function(t,n){return r(t,e,n)}},void 0!==(i="function"==typeof(n={camelize:s,decamelize:u,pascalize:c,depascalize:u,camelizeKeys:function(e,t){return a(g(s,t),e)},decamelizeKeys:function(e,t){return a(g(u,t),e,t)},pascalizeKeys:function(e,t){return a(g(c,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}})?n.call(t,r,t,e):n)&&(e.exports=i)},9112:function(e,t,r){"use strict";var n=r(5038),i=r(53842),a=function(e,t,r){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,r||(n.next=e.next,e.next=n),n},o=function(e,t){if(e){var r=a(e,t);return r&&r.value}},s=function(e,t,r){var n=a(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},c=function(e,t){if(e)return a(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=c(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return o(e,t)},has:function(t){var r;return!!(r=e)&&!!a(r,t)},set:function(t,r){e||(e={next:void 0}),s(e,t,r)}};return t}},54637:function(e,t,r){"use strict";let n,i,a,o;r.d(t,{RI:function(){return rh},yp:function(){return rr},ZP:function(){return rx}});var s,c,u,l,p,d,h,f,y,m,_,g,v,E,b,A,w,O,R,T={};r.r(T),r.d(T,{hasBrowserEnv:function(){return eC},hasStandardBrowserEnv:function(){return ej},hasStandardBrowserWebWorkerEnv:function(){return eq},navigator:function(){return ex},origin:function(){return eB}});var I={};r.r(I),r.d(I,{Utils:function(){return rE},stack:function(){return rC}});var S=r(75160),P=r(59595);function N(e){let t=e.query;delete e.query;let r=P.stringify(e,{arrayFormat:"brackets"});return t&&(r+=`&query=${encodeURIComponent(JSON.stringify(t))}`),e.query=t,r}function U(e,t){return function(){return e.apply(t,arguments)}}var D=r(25566);let{toString:L}=Object.prototype,{getPrototypeOf:k}=Object,{iterator:C,toStringTag:x}=Symbol,j=(n=Object.create(null),e=>{let t=L.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())}),q=e=>(e=e.toLowerCase(),t=>j(t)===e),B=e=>t=>typeof t===e,{isArray:z}=Array,V=B("undefined");function F(e){return null!==e&&!V(e)&&null!==e.constructor&&!V(e.constructor)&&K(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let M=q("ArrayBuffer"),H=B("string"),K=B("function"),$=B("number"),G=e=>null!==e&&"object"==typeof e,W=e=>{if("object"!==j(e))return!1;let t=k(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(x in e)&&!(C in e)},Q=q("Date"),J=q("File"),Y=q("Blob"),X=q("FileList"),Z=q("URLSearchParams"),[ee,et,er,en]=["ReadableStream","Request","Response","Headers"].map(q);function ei(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),z(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(F(e))return;let a=r?Object.getOwnPropertyNames(e):Object.keys(e),o=a.length;for(n=0;n<o;n++)i=a[n],t.call(null,e[i],i,e)}}}function ea(e,t){let r;if(F(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let eo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,es=e=>!V(e)&&e!==eo,ec=(i="undefined"!=typeof Uint8Array&&k(Uint8Array),e=>i&&e instanceof i),eu=q("HTMLFormElement"),el=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),ep=q("RegExp"),ed=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};ei(r,(r,i)=>{let a;!1!==(a=t(r,i,e))&&(n[i]=a||r)}),Object.defineProperties(e,n)},eh=q("AsyncFunction"),ef=(s="function"==typeof setImmediate,c=K(eo.postMessage),s?setImmediate:c?(u=`axios@${Math.random()}`,l=[],eo.addEventListener("message",({source:e,data:t})=>{e===eo&&t===u&&l.length&&l.shift()()},!1),e=>{l.push(e),eo.postMessage(u,"*")}):e=>setTimeout(e)),ey="undefined"!=typeof queueMicrotask?queueMicrotask.bind(eo):void 0!==D&&D.nextTick||ef;var em={isArray:z,isArrayBuffer:M,isBuffer:F,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||K(e.append)&&("formdata"===(t=j(e))||"object"===t&&K(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&M(e.buffer)},isString:H,isNumber:$,isBoolean:e=>!0===e||!1===e,isObject:G,isPlainObject:W,isEmptyObject:e=>{if(!G(e)||F(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:ee,isRequest:et,isResponse:er,isHeaders:en,isUndefined:V,isDate:Q,isFile:J,isBlob:Y,isRegExp:ep,isFunction:K,isStream:e=>G(e)&&K(e.pipe),isURLSearchParams:Z,isTypedArray:ec,isFileList:X,forEach:ei,merge:function e(){let{caseless:t,skipUndefined:r}=es(this)&&this||{},n={},i=(i,a)=>
1{if("__proto__"===a||"constructor"===a||"prototype"===a)return;let o=t&&ea(n,a)||a;W(n[o])&&W(i)?n[o]=e(n[o],i):W(i)?n[o]=e({},i):z(i)?n[o]=i.slice():r&&V(i)||(n[o]=i)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ei(arguments[e],i);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(ei(t,(t,n)=>{r&&K(t)?Object.defineProperty(e,n,{value:U(t,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,n,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,a,o;let s={};if(t=t||{},null==e)return t;do{for(a=(i=Object.getOwnPropertyNames(e)).length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=!1!==r&&k(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:j,kindOfTest:q,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(z(e))return e;let t=e.length;if(!$(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=(e&&e[C]).call(e);for(;(r=n.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:eu,hasOwnProperty:el,hasOwnProp:el,reduceDescriptors:ed,freezeMethods:e=>{ed(e,(t,r)=>{if(K(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;if(K(e[r])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(z(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ea,global:eo,isContextDefined:es,isSpecCompliantForm:function(e){return!!(e&&K(e.append)&&"FormData"===e[x]&&e[C])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(G(e)){if(t.indexOf(e)>=0)return;if(F(e))return e;if(!("toJSON"in e)){t[n]=e;let i=z(e)?[]:{};return ei(e,(e,t)=>{let a=r(e,n+1);V(a)||(i[t]=a)}),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:eh,isThenable:e=>e&&(G(e)||K(e))&&K(e.then)&&K(e.catch),setImmediate:ef,asap:ey,isIterable:e=>null!=e&&K(e[C])};class e_ extends Error{static from(e,t,r,n,i,a){let o=new e_(e.message,t||e.code,r,n,i);return o.cause=e,o.name=e.name,a&&Object.assign(o,a),o}constructor(e,t,r,n,i){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status)}toJSON(){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:em.toJSONObject(this.config),code:this.code,status:this.status}}}e_.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",e_.ERR_BAD_OPTION="ERR_BAD_OPTION",e_.ECONNABORTED="ECONNABORTED",e_.ETIMEDOUT="ETIMEDOUT",e_.ERR_NETWORK="ERR_NETWORK",e_.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",e_.ERR_DEPRECATED="ERR_DEPRECATED",e_.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",e_.ERR_BAD_REQUEST="ERR_BAD_REQUEST",e_.ERR_CANCELED="ERR_CANCELED",e_.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",e_.ERR_INVALID_URL="ERR_INVALID_URL";var eg=e_,ev=r(82957).Buffer;function eE(e){return em.isPlainObject(e)||em.isArray(e)}function eb(e){return em.endsWith(e,"[]")?e.slice(0,-2):e}function eA(e,t,r){return e?e.concat(t).map(function(e,t){return e=eb(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let ew=em.toFlatObject(em,{},null,function(e){return/^is[A-Z]/.test(e)});var eO=function(e,t,r){if(!em.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let n=(r=em.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!em.isUndefined(t[e])})).metaTokens,i=r.visitor||u,a=r.dots,o=r.indexes,s=(r.Blob||"undefined"!=typeof Blob&&Blob)&&em.isSpecCompliantForm(t);if(!em.isFunction(i))throw TypeError("visitor must be a function");function c(e){if(null===e)return"";if(em.isDate(e))return e.toISOString();if(em.isBoolean(e))return e.toString();if(!s&&em.isBlob(e))throw new eg("Blob is not supported. Use a Buffer instead.");
1return em.isArrayBuffer(e)||em.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):ev.from(e):e}function u(e,r,i){let s=e;if(e&&!i&&"object"==typeof e){if(em.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var u;if(em.isArray(e)&&(u=e,em.isArray(u)&&!u.some(eE))||(em.isFileList(e)||em.endsWith(r,"[]"))&&(s=em.toArray(e)))return r=eb(r),s.forEach(function(e,n){em.isUndefined(e)||null===e||t.append(!0===o?eA([r],n,a):null===o?r:r+"[]",c(e))}),!1}}return!!eE(e)||(t.append(eA(i,r,a),c(e)),!1)}let l=[],p=Object.assign(ew,{defaultVisitor:u,convertValue:c,isVisitable:eE});if(!em.isObject(e))throw TypeError("data must be an object");return!function e(r,n){if(!em.isUndefined(r)){if(-1!==l.indexOf(r))throw Error("Circular reference detected in "+n.join("."));l.push(r),em.forEach(r,function(r,a){!0===(!(em.isUndefined(r)||null===r)&&i.call(t,r,em.isString(a)?a.trim():a,n,p))&&e(r,n?n.concat(a):[a])}),l.pop()}}(e),t};function eR(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function eT(e,t){this._pairs=[],e&&eO(e,this,t)}let eI=eT.prototype;function eS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eP(e,t,r){let n;if(!t)return e;let i=r&&r.encode||eS,a=em.isFunction(r)?{serialize:r}:r,o=a&&a.serialize;if(n=o?o(t,a):em.isURLSearchParams(t)?t.toString():new eT(t,a).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}eI.append=function(e,t){this._pairs.push([e,t])},eI.toString=function(e){let t=e?function(t){return e.call(this,t,eR)}:eR;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class eN{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){em.forEach(this.handlers,function(t){null!==t&&e(t)})}}var eU={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},eD="undefined"!=typeof URLSearchParams?URLSearchParams:eT,eL="undefined"!=typeof FormData?FormData:null,ek="undefined"!=typeof Blob?Blob:null;let eC="undefined"!=typeof window&&"undefined"!=typeof document,ex="object"==typeof navigator&&navigator||void 0,ej=eC&&(!ex||0>["ReactNative","NativeScript","NS"].indexOf(ex.product)),eq="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eB=eC&&window.location.href||"http://localhost";var ez={...T,isBrowser:!0,classes:{URLSearchParams:eD,FormData:eL,Blob:ek},protocols:["http","https","file","blob","url","data"]},eV=function(e){if(em.isFormData(e)&&em.isFunction(e.entries)){let t={};return em.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){let a=t[i++];if("__proto__"===a)return!0;let o=Number.isFinite(+a),s=i>=t.length;return(a=!a&&em.isArray(n)?n.length:a,s)?em.hasOwnProp(n,a)?n[a]=[n[a],r]:n[a]=r:(n[a]&&em.isObject(n[a])||(n[a]=[]),e(t,r,n[a],i)&&em.isArray(n[a])&&(n[a]=function(e){let t,r;let n={},i=Object.keys(e),a=i.length;for(t=0;t<a;t++)n[r=i[t]]=e[r];return n}(n[a]))),!o}(em.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null};let eF={transitional:eU,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,a=em.isObject(e);if(a&&em.isHTMLForm(e)&&(e=new FormData(e)),em.isFormData(e))return i?JSON.stringify(eV(e)):e;if(em.isArrayBuffer(e)||em.isBuffer(e)||em.isStream(e)||em.isFile(e)||em.isBlob(e)||em.isReadableStream(e))return e;if(em.isArrayBufferView(e))return e.buffer;if(em.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1){var o,s;return(o=e,s=this.formSerializer,eO(o,new ez.classes.URLSearchParams,{visitor:function(e,t,r,n){return ez.isNode&&em.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...s})).toString()}if((r=em.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return eO(r?{"files[]":e}
1:e,t&&new t,this.formSerializer)}}return a||i?(t.setContentType("application/json",!1),function(e,t,r){if(em.isString(e))try{return(0,JSON.parse)(e),em.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||eF.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(em.isResponse(e)||em.isReadableStream(e))return e;if(e&&em.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw eg.from(e,eg.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ez.classes.FormData,Blob:ez.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};em.forEach(["delete","get","head","post","put","patch"],e=>{eF.headers[e]={}});let eM=em.toObjectSet(["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"]);var eH=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&eM[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i};let eK=Symbol("internals");function e$(e){return e&&String(e).trim().toLowerCase()}function eG(e){return!1===e||null==e?e:em.isArray(e)?e.map(eG):String(e)}let eW=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eQ(e,t,r,n,i){if(em.isFunction(n))return n.call(this,t,r);if(i&&(t=r),em.isString(t)){if(em.isString(n))return -1!==t.indexOf(n);if(em.isRegExp(n))return n.test(t)}}class eJ{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=e$(t);if(!i)throw Error("header name must be a non-empty string");let a=em.findKey(n,i);a&&void 0!==n[a]&&!0!==r&&(void 0!==r||!1===n[a])||(n[a||t]=eG(e))}let a=(e,t)=>em.forEach(e,(e,r)=>i(e,r,t));if(em.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(em.isString(e)&&(e=e.trim())&&!eW(e))a(eH(e),t);else if(em.isObject(e)&&em.isIterable(e)){let r={},n,i;for(let t of e){if(!em.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?em.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(r,t)}else null!=e&&i(t,e,r);return this}get(e,t){if(e=e$(e)){let r=em.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
1for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(em.isFunction(t))return t.call(this,e,r);if(em.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=e$(e)){let r=em.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||eQ(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=e$(e)){let i=em.findKey(r,e);i&&(!t||eQ(r,r[i],i,t))&&(delete r[i],n=!0)}}return em.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||eQ(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return em.forEach(this,(n,i)=>{let a=em.findKey(r,i);if(a){t[a]=eG(n),delete t[i];return}let o=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();o!==i&&delete t[i],t[o]=eG(n),r[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return em.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&em.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=(this[eK]=this[eK]={accessors:{}}).accessors,r=this.prototype;function n(e){let n=e$(e);t[n]||(!function(e,t){let r=em.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(r,e),t[n]=!0)}return em.isArray(e)?e.forEach(n):n(e),this}}function eY(e,t){let r=this||eF,n=t||r,i=eJ.from(n.headers),a=n.data;return em.forEach(e,function(e){a=e.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function eX(e){return!!(e&&e.__CANCEL__)}eJ.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),em.reduceDescriptors(eJ.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),em.freezeMethods(eJ);class eZ extends eg{constructor(e,t,r){super(null==e?"canceled":e,eg.ERR_CANCELED,t,r),this.name="CanceledError",this.__CANCEL__=!0}}function e0(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new eg("Request failed with status code "+r.status,[eg.ERR_BAD_REQUEST,eg.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}var e1=function(e,t){let r;let n=Array(e=e||10),i=Array(e),a=0,o=0;return t=void 0!==t?t:1e3,function(s){let c=Date.now(),u=i[o];r||(r=c),n[a]=s,i[a]=c;let l=o,p=0;for(;l!==a;)p+=n[l++],l%=e;if((a=(a+1)%e)===o&&(o=(o+1)%e),c-r<t)return;let d=u&&c-u;return d?Math.round(1e3*p/d):void 0}},e2=function(e,t){let r,n,i=0,a=1e3/t,o=(t,a=Date.now())=>{i=a,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),s=t-i;s>=a?o(e,t):(r=e,n||(n=setTimeout(()=>{n=null,o(r)},a-s)))},()=>r&&o(r)]};let e3=(e,t,r=3)=>{let n=0,i=e1(50,250);return e2(r=>{let a=r.loaded,o=r.lengthComputable?r.total:void 0,s=a-n,c=i(s);n=a,e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:c||void 0,estimated:c&&o&&a<=o?(o-a)/c:void 0,event:r,lengthComputable:null!=o,[t?"download":"upload"]:!0})},r)},e4=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},e5=e=>(...t)=>em.asap(()=>e(...t));var e8=ez.hasStandardBrowserEnv?(a=new URL(ez.origin),o=ez.navigator&&/(msie|trident)/i.test(ez.navigator.userAgent),e=>(e=new URL(e,ez.origin),a.protocol===e.protocol&&a.host===e.host&&(o||a.port===e.port))):()=>!0,e6=ez.hasStandardBrowserEnv?{write(e,t,r,n,i,a,o){if("undefined"==typeof document)return;let s=[`${e}=${encodeURIComponent(t)}`];em.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),em.isString(n)&&s.push(`path=${n}`),em.isString(i)&&s.push(`domain=${i}`),!0===a&&s.push("secure"),em.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function e9(e,t,r){let n=!("string"==typeof t&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t));return e&&(n||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let e7=e=>e instanceof eJ?{...e}:e;function te(e,t){t=t||{};let r={};function n(e,t,r,n){return em.isPlainObject(e)&&em.isPlainObject(t)?em.merge.call({caseless:n},e,t):em.isPlainObject(t)?em.merge({},t):em.isArray(t)?t.slice():t}function i(e,t,r,i){return em.isUndefined(t)?em.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function a(e,t){if(!em.isUndefined(t))return n(void 0,t)}function o(e,t){return em.isUndefined(t)?em.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function s(r,i,a){return a in t?n(r,i):a in e?n(void 0,r):void 0}let c={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBo
1dyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,r)=>i(e7(e),e7(t),r,!0)};return em.forEach(Object.keys({...e,...t}),function(n){if("__proto__"===n||"constructor"===n||"prototype"===n)return;let a=em.hasOwnProp(c,n)?c[n]:i,o=a(e[n],t[n],n);em.isUndefined(o)&&a!==s||(r[n]=o)}),r}var tt=e=>{let t=te({},e),{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=eJ.from(o),t.url=eP(e9(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),em.isFormData(r)){if(ez.hasStandardBrowserEnv||ez.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(em.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&o.set(e,r)})}}if(ez.hasStandardBrowserEnv&&(n&&em.isFunction(n)&&(n=n(t)),n||!1!==n&&e8(t.url))){let e=i&&a&&e6.read(a);e&&o.set(i,e)}return t},tr="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,r){let n,i,a,o,s;let c=tt(e),u=c.data,l=eJ.from(c.headers).normalize(),{responseType:p,onUploadProgress:d,onDownloadProgress:h}=c;function f(){o&&o(),s&&s(),c.cancelToken&&c.cancelToken.unsubscribe(n),c.signal&&c.signal.removeEventListener("abort",n)}let y=new XMLHttpRequest;function m(){if(!y)return;let n=eJ.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders());e0(function(e){t(e),f()},function(e){r(e),f()},{data:p&&"text"!==p&&"json"!==p?y.response:y.responseText,status:y.status,statusText:y.statusText,headers:n,config:e,request:y}),y=null}y.open(c.method.toUpperCase(),c.url,!0),y.timeout=c.timeout,"onloadend"in y?y.onloadend=m:y.onreadystatechange=function(){y&&4===y.readyState&&(0!==y.status||y.responseURL&&0===y.responseURL.indexOf("file:"))&&setTimeout(m)},y.onabort=function(){y&&(r(new eg("Request aborted",eg.ECONNABORTED,e,y)),y=null)},y.onerror=function(t){let n=new eg(t&&t.message?t.message:"Network Error",eg.ERR_NETWORK,e,y);n.event=t||null,r(n),y=null},y.ontimeout=function(){let t=c.timeout?"timeout of "+c.timeout+"ms exceeded":"timeout exceeded",n=c.transitional||eU;c.timeoutErrorMessage&&(t=c.timeoutErrorMessage),r(new eg(t,n.clarifyTimeoutError?eg.ETIMEDOUT:eg.ECONNABORTED,e,y)),y=null},void 0===u&&l.setContentType(null),"setRequestHeader"in y&&em.forEach(l.toJSON(),function(e,t){y.setRequestHeader(t,e)}),em.isUndefined(c.withCredentials)||(y.withCredentials=!!c.withCredentials),p&&"json"!==p&&(y.responseType=c.responseType),h&&([a,s]=e3(h,!0),y.addEventListener("progress",a)),d&&y.upload&&([i,o]=e3(d),y.upload.addEventListener("progress",i),y.upload.addEventListener("loadend",o)),(c.cancelToken||c.signal)&&(n=t=>{y&&(r(!t||t.type?new eZ(null,e,y):t),y.abort(),y=null)},c.cancelToken&&c.cancelToken.subscribe(n),c.signal&&(c.signal.aborted?n():c.signal.addEventListener("abort",n)));let _=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(c.url);if(_&&-1===ez.protocols.indexOf(_)){r(new eg("Unsupported protocol "+_+":",eg.ERR_BAD_REQUEST,e));return}y.send(u||null)})},tn=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,i=function(e){if(!r){r=!0,o();let t=e instanceof Error?e:this.reason;n.abort(t instanceof eg?t:new eZ(t instanceof Error?t.message:t))}},a=t&&setTimeout(()=>{a=null,i(new eg(`timeout of ${t}ms exceeded`,eg.ETIMEDOUT))},t),o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:s}=n;return s.unsubscribe=()=>em.asap(o),s}};let ti=function*(e,t){let r,n=e.byteLength;if(!t||n<t){yield e;return}let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},ta=async function*(e,t){for await(let r of to(e))yield*ti(r,t)},to=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},ts=(e,t,r,n)=>{let i;let a=ta(e,t),o=0,s=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await a.next();if(t){s(),e.close();return}let i=n.byteLength;if(r){let e=o+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw s(e),e}},cancel:e=>(s(e),a.return())},{highWaterMark:2})},{isFunction:tc}=em,tu=(({Request:e,Response:t})=>({Request:e,Response:t}))(em.global),{ReadableStream:tl,TextEncoder:tp}=em.global,td=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},th=e=>{let t;let{fetch:r,Request:n,Response:i}=e=em.merge.call({skipUndefined:!0},tu,e),a=r?tc(r):"function"==typeof fetch,o=tc(n),s=tc(i);if(!a)return!1;let c=a&&tc(tl),u=a&&("function"==typeof tp?(t=new tp,e=>t.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer())),l=o&&c&&td(()=>{let e=!1,t=new n(ez.origin,{body:new tl,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),p=s&&c&&td(()=>em.isReadableStream(new i("").body)),d={stream:p&&(e=>e.body)};
1a&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{d[e]||(d[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new eg(`Response type '${e}' is not supported`,eg.ERR_NOT_SUPPORT,r)})});let h=async e=>{if(null==e)return 0;if(em.isBlob(e))return e.size;if(em.isSpecCompliantForm(e)){let t=new n(ez.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return em.isArrayBufferView(e)||em.isArrayBuffer(e)?e.byteLength:(em.isURLSearchParams(e)&&(e+=""),em.isString(e))?(await u(e)).byteLength:void 0},f=async(e,t)=>{let r=em.toFiniteNumber(e.getContentLength());return null==r?h(t):r};return async e=>{let t,{url:a,method:s,data:c,signal:u,cancelToken:h,timeout:y,onDownloadProgress:m,onUploadProgress:_,responseType:g,headers:v,withCredentials:E="same-origin",fetchOptions:b}=tt(e),A=r||fetch;g=g?(g+"").toLowerCase():"text";let w=tn([u,h&&h.toAbortSignal()],y),O=null,R=w&&w.unsubscribe&&(()=>{w.unsubscribe()});try{if(_&&l&&"get"!==s&&"head"!==s&&0!==(t=await f(v,c))){let e,r=new n(a,{method:"POST",body:c,duplex:"half"});if(em.isFormData(c)&&(e=r.headers.get("content-type"))&&v.setContentType(e),r.body){let[e,n]=e4(t,e3(e5(_)));c=ts(r.body,65536,e,n)}}em.isString(E)||(E=E?"include":"omit");let r=o&&"credentials"in n.prototype,u={...b,signal:w,method:s.toUpperCase(),headers:v.normalize().toJSON(),body:c,duplex:"half",credentials:r?E:void 0};O=o&&new n(a,u);let h=await (o?A(O,b):A(a,u)),y=p&&("stream"===g||"response"===g);if(p&&(m||y&&R)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});let t=em.toFiniteNumber(h.headers.get("content-length")),[r,n]=m&&e4(t,e3(e5(m),!0))||[];h=new i(ts(h.body,65536,r,()=>{n&&n(),R&&R()}),e)}g=g||"text";let T=await d[em.findKey(d,g)||"text"](h,e);return!y&&R&&R(),await new Promise((t,r)=>{e0(t,r,{data:T,headers:eJ.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:O})})}catch(t){if(R&&R(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new eg("Network Error",eg.ERR_NETWORK,e,O,t&&t.response),{cause:t.cause||t});throw eg.from(t,t&&t.code,e,O,t&&t.response)}}},tf=new Map,ty=e=>{let t=e&&e.env||{},{fetch:r,Request:n,Response:i}=t,a=[n,i,r],o=a.length,s,c,u=tf;for(;o--;)s=a[o],void 0===(c=u.get(s))&&u.set(s,c=o?new Map:th(t)),u=c;return c};ty();let tm={http:null,xhr:tr,fetch:{get:ty}};em.forEach(tm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let t_=e=>`- ${e}`,tg=e=>em.isFunction(e)||null===e||!1===e;var tv=function(e,t){let r,n;let{length:i}=e=em.isArray(e)?e:[e],a={};for(let o=0;o<i;o++){let i;if(n=r=e[o],!tg(r)&&void 0===(n=tm[(i=String(r)).toLowerCase()]))throw new eg(`Unknown adapter '${i}'`);if(n&&(em.isFunction(n)||(n=n.get(t))))break;a[i||"#"+o]=n}if(!n){let e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new eg("There is no suitable adapter to dispatch the request "+(i?e.length>1?"since :\n"+e.map(t_).join("\n"):" "+t_(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return n};function tE(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eZ(null,e)}function tb(e){return tE(e),e.headers=eJ.from(e.headers),e.data=eY.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tv(e.adapter||eF.adapter,e)(e).then(function(t){return tE(e),t.data=eY.call(e,e.transformResponse,t),t.headers=eJ.from(t.headers),t},function(t){return!eX(t)&&(tE(e),t&&t.response&&(t.response.data=eY.call(e,e.transformResponse,t.response),t.response.headers=eJ.from(t.response.headers))),Promise.reject(t)})}let tA="1.13.5",tw={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tw[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tO={};tw.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tA+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,a)=>{if(!1===e)throw new eg(n(i," has been removed"+(t?" in "+t:"")),eg.ERR_DEPRECATED);return t&&!tO[i]&&(tO[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,a)}},tw.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}
1`),!0)};var tR={assertOptions:function(e,t,r){if("object"!=typeof e)throw new eg("options must be an object",eg.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let a=n[i],o=t[a];if(o){let t=e[a],r=void 0===t||o(t,a,e);if(!0!==r)throw new eg("option "+a+" must be "+r,eg.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new eg("Unknown option "+a,eg.ERR_BAD_OPTION)}},validators:tw};let tT=tR.validators;class tI{constructor(e){this.defaults=e||{},this.interceptors={request:new eN,response:new eN}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:i,paramsSerializer:a,headers:o}=t=te(this.defaults,t);void 0!==i&&tR.assertOptions(i,{silentJSONParsing:tT.transitional(tT.boolean),forcedJSONParsing:tT.transitional(tT.boolean),clarifyTimeoutError:tT.transitional(tT.boolean),legacyInterceptorReqResOrdering:tT.transitional(tT.boolean)},!1),null!=a&&(em.isFunction(a)?t.paramsSerializer={serialize:a}:tR.assertOptions(a,{encode:tT.function,serialize:tT.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tR.assertOptions(t,{baseUrl:tT.spelling("baseURL"),withXsrfToken:tT.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&em.merge(o.common,o[t.method]);o&&em.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=eJ.concat(s,o);let c=[],u=!0;this.interceptors.request.forEach(function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;u=u&&e.synchronous;let r=t.transitional||eU;r&&r.legacyInterceptorReqResOrdering?c.unshift(e.fulfilled,e.rejected):c.push(e.fulfilled,e.rejected)});let l=[];this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let p=0;if(!u){let e=[tb.bind(this),void 0];for(e.unshift(...c),e.push(...l),n=e.length,r=Promise.resolve(t);p<n;)r=r.then(e[p++],e[p++]);return r}n=c.length;let d=t;for(;p<n;){let e=c[p++],t=c[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{r=tb.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,n=l.length;p<n;)r=r.then(l[p++],l[p++]);return r}getUri(e){return eP(e9((e=te(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}em.forEach(["delete","get","head","options"],function(e){tI.prototype[e]=function(t,r){return this.request(te(r||{},{method:e,url:t,data:(r||{}).data}))}}),em.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request(te(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tI.prototype[e]=t(),tI.prototype[e+"Form"]=t(!0)});class tS{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new eZ(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tS(function(t){e=t}),cancel:e}}}let tP={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,Re
1setContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tP).forEach(([e,t])=>{tP[t]=e});let tN=function e(t){let r=new tI(t),n=U(tI.prototype.request,r);return em.extend(n,tI.prototype,r,{allOwnKeys:!0}),em.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(te(t,r))},n}(eF);tN.Axios=tI,tN.CanceledError=eZ,tN.CancelToken=tS,tN.isCancel=eX,tN.VERSION=tA,tN.toFormData=eO,tN.AxiosError=eg,tN.Cancel=tN.CanceledError,tN.all=function(e){return Promise.all(e)},tN.spread=function(e){return function(t){return e.apply(null,t)}},tN.isAxiosError=function(e){return em.isObject(e)&&!0===e.isAxiosError},tN.mergeConfig=te,tN.AxiosHeaders=eJ,tN.formToJSON=e=>eV(em.isHTMLForm(e)?new FormData(e):e),tN.getAdapter=tv,tN.HttpStatusCode=tP,tN.default=tN;let{Axios:tU,AxiosError:tD,CanceledError:tL,isCancel:tk,CancelToken:tC,VERSION:tx,all:tj,Cancel:tq,isAxiosError:tB,spread:tz,toFormData:tV,AxiosHeaders:tF,HttpStatusCode:tM,formToJSON:tH,getAdapter:tK,mergeConfig:t$}=tN,tG={CONSOLE:{ERROR_WITH_TITLE:e=>`Error: ${e}. Review the error details and try again.`,LEVEL_WITH_DATA:(e,t)=>`${e}: ${t}. Review the details and try again.`},API:{NETWORK_ERROR:"Network error occurred. Please check your internet connection and try again.",UNKNOWN_ERROR:"An unknown error occurred. Please try again or contact support if the issue persists.",REQUEST_FAILED:e=>e?`Request failed with status ${e}. Please review your request and try again.`:"Request failed. Please review your request and try again."},REQUEST:{HOST_REQUIRED_FOR_LIVE_PREVIEW:"Host is required for live preview. Please provide a valid host parameter in the live_preview configuration."},RETRY:{TIMEOUT_EXCEEDED:e=>`Request timeout of ${e}ms exceeded. Please try again or increase the timeout value in y
1our configuration.`},ERROR_CODES:{NETWORK_ERROR:"NETWORK_ERROR",UNKNOWN_ERROR:"UNKNOWN_ERROR",TIMEOUT:408}};class tW extends Error{constructor(e,t,r){super(e),this.name="APIError",this.error_code=t,this.status=r,this.error_message=e,this.stack=void 0}static fromAxiosError(e){var t;return(null===(t=e.response)||void 0===t?void 0:t.data)?tW.fromResponseData(e.response.data,e.response.status):e.message?new tW(e.message,e.code||tG.ERROR_CODES.NETWORK_ERROR,0):new tW(tG.API.UNKNOWN_ERROR,tG.ERROR_CODES.UNKNOWN_ERROR,0)}static fromResponseData(e,t){let r=tW.extractErrorMessage(e),n=tW.extractErrorCode(e,t);return new tW(r,n,t)}static extractErrorMessage(e){return e.error_message?e.error_message:e.message?e.message:e.error?e.error:"string"==typeof e?e:tG.API.REQUEST_FAILED()}static extractErrorCode(e,t){return e.error_code?e.error_code:e.code?e.code:t}}function tQ(e,t,r,n){return new(r||(r=Promise))(function(i,a){function o(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(o,s)}c((n=n.apply(e,t||[])).next())})}function tJ(e,t,r){var n;return tQ(this,void 0,void 0,function*(){try{if(null===(n=e.stackConfig)||void 0===n?void 0:n.live_preview){let n=e.stackConfig.live_preview;if(n.enable&&(r.live_preview=n.live_preview||"init"),n.preview_token&&(e.defaults.headers.preview_token=n.preview_token,e.defaults.headers.live_preview=n.live_preview),n.enable&&n.live_preview&&"init"!==n.live_preview){if(!n.host)throw Error(tG.REQUEST.HOST_REQUIRED_FOR_LIVE_PREVIEW);t=(n.host.startsWith("https://")?"":"https://")+n.host+t}}let i=Object.assign(Object.assign({},r),{maxContentLength:1/0,maxBodyLength:1/0}),a=function(e,t,r){let n=r?N(r):"";if(t.startsWith("http://")||t.startsWith("https://"))return n?`${t}?${n}`:t;let i=e||"";return n?`${i}${t}?${n}`:`${i}${t}`}(e.defaults.baseURL,t,i.params),o=yield function(e,t,r,n){return tQ(this,void 0,void 0,function*(){let i=function(e){try{let t=e;e.startsWith("http://")||e.startsWith("https://")||(t=`https://${e}`);let r=new URL(t);return"rest-preview.contentstack.com"===r.hostname}catch(e){return!1}}(n);if(!(n.length>(i?1500:8e3)))return yield e.get(t,r);{let{params:t}=r,i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}(r,["params"]);return yield e.request(Object.assign({method:"get",url:n,headers:e.defaults.headers,maxContentLength:1/0,maxBodyLength:1/0},i))}})}(e,t,i,a);if(null==o?void 0:o.data)return o.data;throw o}catch(e){throw tW.fromAxiosError(e)}})}"function"==typeof SuppressedError&&SuppressedError;let tY={maxRequests:5,retryLimit:5,retryDelay:300},tX=e=>(e.retryCount=e.retryCount||1,e),tZ=e=>e,t0=(e,t,r)=>{try{let n=e.config.retryCount;if(t=Object.assign(Object.assign({},tY),t),!e.config.retryOnError||n>t.retryLimit)throw e;let i=e.response;if(i){let a=i.headers["x-ratelimit-remaining"];if(void 0!==a&&0>=parseInt(a)){if(++n>=t.retryLimit)return Promise.reject(e.response.data);e.config.retryCount=n;let a=t2(i.headers);return new Promise((t,n)=>{setTimeout(()=>tQ(void 0,void 0,void 0,function*(){try{let n=yield r(e.config);t(n)}catch(e){n(e)}}),a)})}if(429==i.status||401==i.status){if(++n>=t.retryLimit){if(e.response&&e.response.data)return Promise.reject(e.response.data);return Promise.reject(e)}return e.config.retryCount=n,new Promise((n,i)=>{setTimeout(()=>tQ(void 0,void 0,void 0,function*(){try{let t=yield r(e.config);n(t)}catch(e){i(e)}}),t.retryDelay||300)})}}else{if("ECONNABORTED"===e.code)throw{error_message:tG.RETRY.TIMEOUT_EXCEEDED(t.timeout),error_code:tG.ERROR_CODES.TIMEOUT,errors:null};throw e}if(t.retryCondition&&t.retryCondition(e))return n++,t1(e,t,n,t.retryDelay,r);throw e}catch(e){throw e}},t1=(e,t,r,n,i)=>{if(r>t.retryLimit)return Promise.reject(e);let a=n||t.retryDelay||300;return e.config.retryCount=r,new Promise(function(t,r){return setTimeout(function(){return tQ(this,void 0,void 0,function*(){try{let r=yield i(e.config);t(r)}catch(e){r(e)}})},a)})},t2=e=>{let t=e["retry-after"];if(t)return 1e3*parseInt(t);let r=e["x-ratelimit-reset"];if(r)return Math.max(1e3*parseInt(r)-Date.now()+1e3,1e3);let n=e["x-ratelimit-reset-time"];return n?Math.max(new Date(n).getTime()-Date.now()+1e3,1e3):1e3};var t3="undefined"!=typeof window?window:global,t4={name:"localStorage",clear:function(){t5().clear()},each:function(e){for(let t=t5().length-1;t>=0;t--){let r=t5().key(t);
1r&&t8(r)&&e(t8(r),r)}},getItem:t8,removeItem:function(e){t5().removeItem(e)},setItem:function(e,t){e&&t5().setItem(e,t)}};function t5(){return t3.localStorage}function t8(e){return t5().getItem(e)}var t6={name:"memoryStorage",clear:function(){t9={}},each:function(e){for(let t in t9)e(t9[t],t)},getItem:function(e){return t9[e]},removeItem:function(e){delete t9[e]},setItem:function(e,t){e&&(t9[e]=t)}},t9={},t7={INVALID_FIELD_UID:"Invalid fieldUid. Provide an alphanumeric field UID and try again.",INVALID_KEY:"Invalid key. Provide an alphanumeric key and try again.",INVALID_REFERENCE_UID:e=>`Invalid referenceUid: ${e}. Must be alphanumeric.`,INVALID_VALUE_STRING_OR_NUMBER:"Invalid value. Provide a string or number and try again.",INVALID_VALUE_ARRAY:"Invalid value. Provide an array of strings, numbers, or booleans and try again.",INVALID_ARGUMENT_STRING_OR_ARRAY:"Invalid argument. Provide a string or an array and try again.",MISSING_CUSTOM_STORAGE:"Missing storage for customStorage. Provide a storage object with get, set, and remove methods and try again.",INVA
1LID_REGEX_PATTERN:"Invalid regexPattern: Must be a valid regular expression"},re=((p=re||{}).INVALID_FIELD_UID="INVALID_FIELD_UID",p.INVALID_KEY="INVALID_KEY",p.INVALID_REFERENCE_UID="INVALID_REFERENCE_UID",p.INVALID_VALUE="INVALID_VALUE",p.INVALID_ARGUMENT="INVALID_ARGUMENT",p.MISSING_STORAGE="MISSING_STORAGE",p.INVALID_REGEX="INVALID_REGEX",p.SLACK_ERROR="SLACK_ERROR",p),rt=class{constructor(e){this.store=t4;let t={storeType:"localStorage",maxAge:864e5,serializer:JSON.stringify,deserializer:JSON.parse};t={...t,...e},this.setStore(t.storeType,t.storage),this.config=t,this.name=""}setStore(e,t){switch(e){case"localStorage":break;case"memoryStorage":this.store=t6;break;case"customStorage":if(t)this.store=t;else throw TypeError(t7.MISSING_CUSTOM_STORAGE)}}setItem(e,t,r,n){if(!e)return;let i=this.generateCSKey(e,r);if(!t){this.store.removeItem(i);return}let a={value:t,expiry:this.calculateExpiry(n)};this.config.serializer&&(a=this.config.serializer(a)),this.store.setItem(i,a)}getItem(e,t){let r=this.generateCSKey(e,t),n=this.store.getItem(r);if(n&&this.config.deserializer){let r=this.config.deserializer(n);if(!this.isExpire(r.expiry))return r.value;this.removeItem(e,t)}}removeItem(e,t){let r=this.generateCSKey(e,t);this.store.removeItem(r)}clear(e){e?this.store.each((t,r)=>{r.match(e)&&this.store.removeItem(r)}):this.store.clear()}generateCSKey(e,t){let r="cs_store_js";return t&&(r=t+"_"+r),r=this.name+"_"+r+"_"+e}calculateExpiry(e){let t=new Date().getTime();return e?t+e:this.config.maxAge?t+this.config.maxAge:0}isExpire(e){return!e||e<new Date().getTime()}},rr=((d=rr||{}).US="us",d.EU="eu",d.AU="au",d.AZURE_NA="azure-na",d.AZURE_EU="azure-eu",d.GCP_NA="gcp-na",d.GCP_EU="gcp-eu",d),rn=((h=rn||{}).IGNORE_CACHE="IGNORE_CACHE",h.CACHE_THEN_NETWORK="CACHE_THEN_NETWORK",h.CACHE_ELSE_NETWORK="CACHE_ELSE_NETWORK",h.NETWORK_ELSE_CACHE="NETWORK_ELSE_CACHE",h),ri=((f=ri||{}).ENTRY_PUBLISHED="entry_published",f.ENTRY_UNPUBLISHED="entry_unpublished",f.ENTRY_DELETED="entry_deleted",f.ASSET_PUBLISHED="asset_published",f.ASSET_UNPUBLISHED="asset_unpublished",f.ASSET_DELETED="asset_deleted",f.CONTENT_TYPE_DELETED="content_type_deleted",f),ra=((y=ra||{}).GIF="gif",y.PNG="png",y.JPG="jpg",y.PJPG="pjpg",y.WEBP="webp",y.WEBPLL="webpll",y.WEBPLY="webply",y),ro=((m=ro||{}).DEFAULT="default",m.ASPECTRATIO="aspectRatio",m.REGION="region",m.OFFSET="offset",m),rs=((_=rs||{}).BOUNDS="bounds",_.CROP="crop",_),rc=((g=rc||{})[g.DEFAULT=1]="DEFAULT",g[g.FLIP_HORIZONTAL=2]="FLIP_HORIZONTAL",g[g.FLIP_HORIZONTAL_VERTICAL=3]="FLIP_HORIZONTAL_VERTICAL",g[g.FLIP_VERTICAL=4]="FLIP_VERTICAL",g[g.FLIP_HORIZONTAL_LEFT=5]="FLIP_HORIZONTAL_LEFT",g[g.RIGHT=6]="RIGHT",g[g.FLIP_HORIZONTAL_RIGHT=7]="FLIP_HORIZONTAL_RIGHT",g[g.LEFT=8]="LEFT",g),ru=((v=ru||{}).TOP="top",v.BOTTOM="bottom",v.LEFT="left",v.RIGHT="right",v.MIDDLE="middle",v.CENTER="center",v),rl=((E=rl||{}).X="x",E.Y="y",E.BOTH="both",E),rp=((b=rp||{}).NEAREST="nearest",b.BILINEAR="bilinear",b.BICUBIC="bicubic",b.LANCZOS2="lanczos2",b.LANCZOS3="lanczos3",b),rd=((A=rd||{}).DEFAULT="default",A.ASPECTRATIO="aspectRatio",A.REGION="region",A.OFFSET="offset",A),rh=((w=rh||{}).EQUALS="",w.NOT_EQUALS="$ne",w.INCLUDES="$in",w.EXCLUDES="$nin",w.IS_LESS_THAN="$lt",w.IS_LESS_THAN_OR_EQUAL="$lte",w.IS_GREATER_THAN="$gt",w.IS_GREATER_THAN_OR_EQUAL="$gte",w.EXISTS="$exists",w.MATCHES="$regex",w),rf=((O=rf||{}).ABOVE="$above",O.BELOW="$below",O.EQ_ABOVE="$eq_above",O.EQ_BELOW="$eq_below",O),ry=((R=ry||{}).AND="$and",R.OR="$or",R);async function rm(e,t,r,n,i,a){var o;let s;let c=new rt(e),u=a.entryUid||function(e){if(!e.url)return null;let t=e.url.match(/\/content_types\/[^\/]+\/entries\/([^\/\?]+)/);return t?t[1]:null}(a),l=(o=a.contentTypeUid,s=t,o&&(s=`${o}_${s}`),u&&(s=`${s}_entry_${u}`),s);switch(e.policy){case rn.NETWORK_ELSE_CACHE:{let t=await r(a);if(t.data)return c.setItem(l,JSON.parse(t.data),a.contentTypeUid,e.maxAge),n({data:JSON.parse(t.data)});{let e=c.getItem(l,a.contentTypeUid);if(e)return n({data:e,status:200,statusText:"OK",headers:{},config:{}})}return i(t)}case rn.CACHE_THEN_NETWORK:{let t=c.getItem(l,a.contentTypeUid);if(t)return n({data:t,status:200,statusText:"OK",headers:{},config:{}});let o=await r(a);if(o.data)return c.setItem(l,JSON.parse(o.data),a.contentTypeUid,e.maxAge),n({data:JSON.parse(o.data)});return i(o)}case rn.CACHE_ELSE_NETWORK:{let t=c.getItem(l,a.contentTypeUid);if(t)return n({data:t,status:200,statusText:"OK",headers:{},config:{}});{let t=await r(a);if(t.data)return c.setItem(l,JSON.parse(t.data),a.contentTypeUid,e.maxAge),n({data:JSON.parse(t.data)});return i(t)}}}}var r_=class{constructor(e,t){this._queryParams={},this._client=e,this._urlPath=`/assets/${t}`}includeFallback(){return this._queryParams.include_fallback="true",this}includeMetadata(){return this._queryParams.include_metadata="true",this}includeDimension(){return this._queryParams.include_dimension="true",this}includeBranch(){return this._queryParams.include_branch="true",this}relativeUrls(){return this._queryParams.relative_urls="true",this}version(e){return this._queryParams.version=String(e),this}locale(e){return this._queryParams.locale=e,this}async fetch(){let e=await tJ(this._client,this._urlPath,{params:this._queryParams});return e.asset?e.asset:e}},rg=class{constructor(){this._queryParams={}}paginate(e){return this._queryParams.skip=e?.skip||0,this._queryParams.limit=e?.limit||10,this}next(){return this._queryParams.skip||this.paginate(),this._queryParams.skip+=this._queryParams.limit,this}previous(){this._queryParams.skip||this.paginate();let e=this._queryParams.skip-this._queryParams.limit;return this._queryParams.skip=e<0?0:e,this}},rv=r(61697),rE=r.t(rv,2);function rb(e){let t={};for(let[r,n]of Object.entries(e))"string"==typeof n?t[r]=encodeURIComponent(n):"object"==typeof n&&null!==n?t[r]=rb(n):t[r]=n;return t}var rA=class extends rg{constructor(){super(...arguments),this._parameters={}}asQuery(){return this}includeCount(){return this._queryParams.include_count="true",this.asQuery()}orderByAscending(e){return this._queryParams.asc=e,this.asQuery()}orderByDescending(e){return this._queryParams.desc=e,this.asQuery()}limit(e){return this._queryParams.limit=e,this.asQuery()}skip(e){return this._queryParams.skip=e,this.asQuery()}param(e,t){return this._queryParams[e]=t,this.asQuery()}addParams(e){return this._queryParams={...this._queryParams,...e},this.asQuery()}removeParam(e){return delete this._queryParams[e],this.asQuery()}async find(e=!1){let t=this._queryParams;if(Object.keys(this._parameters).length>0){let r={...this._parameters};e&&(r=rb(r)),t={...this._queryParams,query:r}}let r={params:t,contentTypeUid:this.extractContentTypeUidFromUrl()};return this._variants&&(r.headers={...r.headers,"x-cs-variant-uid":this._variants}),await tJ(this._client,this._urlPath,r)}extractContentTypeUidFromUrl(){if(!this._urlPath)return null;let e=this._urlPath.match(/\/content_types\/([^\/]+)/);return e?e[1]:null}},rw=class extends rA{constructor(e,t,r,n,i,a){super(),this._client=e,this._contentTypeUid=i,this._urlPath=`/content_types/${this._contentTypeUid}/entries`,this._parameters=t||{},this._queryParams=r||{}
1,this._variants=n||"",i||(this._urlPath="/assets"),a&&(this._parameters={...this._parameters,...a})}isValidAlphanumeric(e){return/^[a-zA-Z0-9_.-]+$/.test(e)}isValidRegexPattern(e){if(!/^[a-zA-Z0-9|^$.*+?()[\]{}\\-]+$/.test(e))return!1;try{return new RegExp(e),!0}catch(e){return!1}}isValidValue(e){return Array.isArray(e)&&e.every(e=>"string"==typeof e||"number"==typeof e||"boolean"==typeof e)}where(e,t,r,n){if(!this.isValidAlphanumeric(e))return console.error(t7.INVALID_FIELD_UID),this;if(t==rh.EQUALS)this._parameters[e]=r;else{let i={[t]:r,...n};this._parameters[e]=i}return this}regex(e,t,r){if(!this.isValidAlphanumeric(e))return console.error(t7.INVALID_FIELD_UID),this;if(this.isValidRegexPattern(t))return this._parameters[e]={$regex:t},r&&(this._parameters[e].$options=r),this;throw Error(t7.INVALID_REGEX_PATTERN)}whereIn(e,t){if(!this.isValidAlphanumeric(e))throw Error(t7.INVALID_REFERENCE_UID(e));return this._parameters[e]={$in_query:t._parameters},this}whereNotIn(e,t){if(!this.isValidAlphanumeric(e))throw Error(t7.INVALID_REFERENCE_UID(e));return this._parameters[e]={$nin_query:t._parameters},this}queryOperator(e,...t){let r=[];for(let e of t)r.push(e._parameters);return this._parameters[e]=r,this}getQuery(){return this._parameters}containedIn(e,t){return this.isValidAlphanumeric(e)?this.isValidValue(t)?this._parameters[e]={$in:t}:console.error(t7.INVALID_VALUE_ARRAY):console.error(t7.INVALID_KEY),this}notContainedIn(e,t){return this.isValidAlphanumeric(e)?this.isValidValue(t)?this._parameters[e]={$nin:t}:console.error(t7.INVALID_VALUE_ARRAY):console.error(t7.INVALID_KEY),this}exists(e){return this.isValidAlphanumeric(e)?this._parameters[e]={$exists:!0}:console.error(t7.INVALID_KEY),this}notExists(e){return this.isValidAlphanumeric(e)?this._parameters[e]={$exists:!1}:console.error(t7.INVALID_KEY),this}or(...e){let t=[];for(let r of e)t.push(r._parameters);return this._parameters.$or=t,this}and(...e){let t=[];for(let r of e)t.push(r._parameters);return this._parameters.$and=t,this}equalTo(e,t){return this.isValidAlphanumeric(e)?"string"!=typeof t&&"number"!=typeof t?console.error(t7.INVALID_VALUE_STRING_OR_NUMBER):this._parameters[e]=t:console.error(t7.INVALID_KEY),this}notEqualTo(e,t){return this.isValidAlphanumeric(e)?"string"!=typeof t&&"number"!=typeof t?console.error(t7.INVALID_VALUE_STRING_OR_NUMBER):this._parameters[e]={$ne:t}:console.error(t7.INVALID_KEY),this}referenceIn(e,t){return this.isValidAlphanumeric(e)?this._parameters[e]={$in_query:t._parameters}:console.error(t7.INVALID_KEY),this}referenceNotIn(e,t){return this.isValidAlphanumeric(e)?this._parameters[e]={$nin_query:t._parameters}:console.error(t7.INVALID_KEY),this}tags(e){return this.isValidValue(e)?this._parameters.tags=e:console.error(t7.INVALID_VALUE_ARRAY),this}search(e){return this.isValidAlphanumeric(e)?this._queryParams.typeahead=e:console.error(t7.INVALID_KEY),this}lessThan(e,t){return this.isValidAlphanumeric(e)?"string"!=typeof t&&"number"!=typeof t?console.error(t7.INVALID_VALUE_STRING_OR_NUMBER):this._parameters[e]={$lt:t}:console.error(t7.INVALID_KEY),this}lessThanOrEqualTo(e,t){return this.isValidAlphanumeric(e)?"string"!=typeof t&&"number"!=typeof t?console.error(t7.INVALID_VALUE_STRING_OR_NUMBER):this._parameters[e]={$lte:t}:console.error(t7.INVALID_KEY),this}greaterThan(e,t){return this.isValidAlphanumeric(e)?"string"!=typeof t&&"number"!=typeof t?console.error(t7.INVALID_VALUE_STRING_OR_NUMBER):this._parameters[e]={$gt:t}:console.error(t7.INVALID_KEY),this}greaterThanOrEqualTo(e,t){return this.isValidAlphanumeric(e)?"string"!=typeof t&&"number"!=typeof t?console.error(t7.INVALID_VALUE_STRING_OR_NUMBER):this._parameters[e]={$gte:t}:console.error(t7.INVALID_KEY),this}async find(e=!1){let t=this._queryParams;if(Object.keys(this._parameters).length>0){let r={...this._parameters};e&&(r=rb(r)),t={...this._queryParams,query:r}}let r={params:t,contentTypeUid:this._contentTypeUid};return this._variants&&(r.headers={...r.headers,"x-cs-variant-uid":this._variants}),await tJ(this._client,this._urlPath,r)}},rO=class extends rA{constructor(e){super(),this._client=e,this._urlPath="/assets"}version(e){return this._queryParams.version=String(e),this}includeDimension(){return this._queryParams.include_dimension="true",this}includeBranch(){return this._queryParams.include_branch="true",this}includeMetadata(){return this._queryParams.include_metadata="true",this}relativeUrls(){return this._queryParams.relative_url="true",this}includeFallback(){return this._queryParams.include_fallback="true",this}locale(e){return this._queryParams.locale=e,this}query(){return new rw(this._client,this._parameters,this._queryParams)}},rR=class{constructor(e,t,r){this._queryParams={},this._client=e,this._contentTypeUid=t,this._entryUid=r,this._urlPath=`/content_types/${this._contentTypeUid}/entries/${this._entryUid}`,this._variants=""}includeFallback(){return this._queryParams.include_fallback="true",this}variants(e){return Array.isArray(e)&&e.length>0?this._variants=e.join(","):"string"==typeof e&&e.length>0&&(this._variants=e),this}includeMetadata(){return this._queryParams.include_metadata="true",this}includeEmbeddedItems(){return this._queryParams["include_embedded_items[]"]="BASE",this}
1includeReference(...e){return e.length?e.forEach(e=>{Array.isArray(this._queryParams["include[]"])||(this._queryParams["include[]"]=[]),this._queryParams["include[]"].push(...Array.isArray(e)?e:[e])}):console.error(t7.INVALID_ARGUMENT_STRING_OR_ARRAY),this}includeContentType(){return this._queryParams.include_content_type="true",this}includeBranch(){return this._queryParams.include_branch="true",this}locale(e){return this._queryParams.locale=e,this}async fetch(){let e={params:this._queryParams,contentTypeUid:this._contentTypeUid,entryUid:this._entryUid};this._variants&&(e.headers={...e.headers,"x-cs-variant-uid":this._variants});let t=await tJ(this._client,this._urlPath,e);return t.entry?t.entry:t}addParams(e){return this._queryParams={...this._queryParams,...e},this}except(e){if(Array.isArray(e)){let t=0;for(let r of e)this._queryParams[`except[BASE][${t}]`]=r,t++}else this._queryParams["except[BASE][]"]=e;return this}only(e){if(Array.isArray(e)){let t=0;for(let r of e)this._queryParams[`only[BASE][${t}]`]=r,t++}else this._queryParams["only[BASE][]"]=e;return this}},rT=class extends rA{constructor(e,t){super(),this._client=e,this._contentTypeUid=t,this._urlPath=`/content_types/${this._contentTypeUid}/entries`,this._variants=""}except(e){if(Array.isArray(e)){let t=0;for(let r of e)this._queryParams[`except[BASE][${t}]`]=r,t++}else this._queryParams["except[BASE][]"]=e;return this}includeBranch(){return this._queryParams.include_branch="true",this}includeContentType(){return this._queryParams.include_content_type="true",this}includeEmbeddedItems(){return this._queryParams["include_embedded_items[]"]="BASE",this}includeFallback(){return this._queryParams.include_fallback="true",this}includeMetadata(){return this._queryParams.include_metadata="true",this}includeReference(...e){return e.length?e.forEach(e=>{Array.isArray(this._queryParams["include[]"])||(this._queryParams["include[]"]=[]),this._queryParams["include[]"].push(...Array.isArray(e)?e:[e])}):console.error(t7.INVALID_ARGUMENT_STRING_OR_ARRAY),this}includeReferenceContentTypeUID(){return this._queryParams.include_reference_content_type_uid="true",this}includeSchema(){return this._queryParams.include_schema="true",this}locale(e){return this._queryParams.locale=e,this}only(e){if(Array.isArray(e)){let t=0;for(let r of e)this._queryParams[`only[BASE][${t}]`]=r,t++}else this._queryParams["only[BASE][]"]=e;return this}query(e){return e?new rw(this._client,this._parameters,this._queryParams,this._variants,this._contentTypeUid,e):new rw(this._client,this._parameters,this._queryParams,this._variants,this._contentTypeUid)}variants(e){return Array.isArray(e)&&e.length>0?this._variants=e.join(","):"string"==typeof e&&e.length>0&&(this._variants=e),this}async find(e=!1){let t=this._queryParams;if(Object.keys(this._parameters).length>0){let r={...this._parameters};e&&(r=rb(r)),t={...this._queryParams,query:r}}let r={params:t,contentTypeUid:this._contentTypeUid};return this._variants&&(r.headers={...r.headers,"x-cs-variant-uid":this._variants}),await tJ(this._client,this._urlPath,r)}},rI=class{constructor(e,t){this._queryParams={},this._client=e,this._contentTypeUid=t,this._urlPath=`/content_types/${this._contentTypeUid}`}entry(e){return e?new rR(this._client,this._contentTypeUid,e):new rT(this._client,this._contentTypeUid)}async fetch(){let e=await tJ(this._client,this._urlPath);return e.content_type?e.content_type:e}},rS=class{constructor(e){this._queryParams={},this._client=e,this._urlPath="/content_types"}includeGlobalFieldSchema(){return this._queryParams.include_global_field_schema="true",this}async find(){return await tJ(this._client,this._urlPath,{params:this._queryParams})}},rP=r(6934);async function rN(e,t={},r=!1){let n={params:t},i="/stacks/sync";if("paginationToken"in t||"syncToken"in t||(n.params={...t,init:!0}),t.type&&"string"!=typeof t.type){let e=t.type;n.params={...n.params,type:e.join(",")}}let a=await tJ(e,i,{params:rP.decamelizeKeys(n.params)}),o=a.data;for(;r&&("pagination_token"in a.data);){let t=await tJ(e,i,rP.decamelizeKeys({paginationToken:o.pagination_token}));t.data.items={...a.data.items,...t.data.items},a={...t}}return a.data}var rU=class extends rw{constructor(e){super(e,{},{}),this._client=e,this._urlPath="/taxonomies/entries"}},rD=class extends rA{constructor(e){super(),this._client=e,this._urlPath="/global_fields"}includeBranch(){return this._queryParams.include_branch="true",this}},rL=class{constructor(e,t){this._queryParams={},this._client=e,this._urlPath=`/global_fields/${t}`}includeBranch(){return this._queryParams.include_branch="true",this}async fetch(){return(await tJ(this._client,this._urlPath,{params:this._queryParams})).global_field}},rk=class{constructor(e,t){this._client=e,this.config=t,this._client.stackConfig=this.config}asset(e){return e?new r_(this._client,e):new rO(this._client)}contentType(e){return e?new rI(this._client,e):new rS(this._client)}taxonomy(){return new rU(this._client)}globalField(e){return e?new rL(this._client,e):new rD(this._client)}setLocale(e){this.config.locale=e,this._client.defaults.params.locale=e}async sync(e={},t=!1){return await rN(this._client,e,t)}livePreviewQuery(e){if(this.config.live_preview){let t={...this.config.live_preview};t=e.live_preview?{...t,live_preview:e.live_preview,contentTypeUid:e.contentTypeUid||e.content_type_uid,entryUid:e.entryUid||e.entry_uid,preview_timestamp:e.preview_timestamp||"",include_applied_variants:e.include_applied_variants||
1!1}:{...t,live_preview:"",contentTypeUid:"",entryUid:"",preview_timestamp:"",include_applied_variants:!1},this._client.stackConfig.live_preview=t}e.hasOwnProperty("release_id")?this._client.defaults.headers.release_id=e.release_id:delete this._client.defaults.headers.release_id,e.hasOwnProperty("preview_timestamp")?this._client.defaults.headers.preview_timestamp=e.preview_timestamp:delete this._client.defaults.headers.preview_timestamp}getClient(){return this._client}async getLastActivities(){try{return await tJ(this._client,"/content_types",{params:{only_last_activity:!0,environment:this.config.environment}})}catch(e){throw Error("Error fetching last activities")}}setPort(e){return"number"==typeof e&&(this.config.port=e),this}setDebug(e){return"boolean"==typeof e&&(this.config.debug=e),this}};function rC(e){var t,r;let n={defaultHostname:(t=e.region||rr.US,(r=e.host)?r:(0,rv.getContentstackEndpoint)(t,"contentDelivery",!0)),headers:{},params:{},live_preview:{},port:e.port,...e};if(e.host=n.defaultHostname,e.apiKey)n.headers.api_key=e.apiKey;else throw Error("API key for Stack is required.");if(e.deliveryToken)n.headers.access_token=e.deliveryToken;else throw Error("Delivery token for Stack is required.");if(e.environment)n.params.environment=e.environment;else throw Error("Environment for Stack is required");if(e.locale&&(n.params.locale=e.locale),e.live_preview&&"undefined"!=typeof window){let t=new URL(document.location.toString()).searchParams;t.has("live_preview")&&(e.live_preview.live_preview=t.get("live_preview")||e.live_preview.live_preview),t.has("release_id")&&(n.headers.release_id=t.get("release_id")),t.has("preview_timestamp")&&(n.headers.preview_timestamp=t.get("preview_timestamp"))}e.branch&&(n.headers.branch=e.branch),e.early_access&&(n.headers["x-header-ea"]=e.early_access.join(",")),n.headers["X-User-Agent"]="contentstack-delivery-typescript/{{VERSION}}";let i=function(e){let t=Object.assign(Object.assign({},{insecure:!1,retryOnError:!0,headers:{},basePath:"",proxy:!1,httpAgent:!1,httpsAgent:!1,timeout:3e4,logHandler:(e,t)=>{if("error"===e){if(t){let e=[t.name,t.message].filter(e=>e).join(" - ");console.error(tG.CONSOLE.ERROR_WITH_TITLE(e))}return}void 0!==t&&console.log(tG.CONSOLE.LEVEL_WITH_DATA(e,t))},retryCondition:e=>!!e.response&&429===e.response.status,versioningStrategy:"path"}),S.cloneDeep(e));t.apiKey&&t.headers&&(t.headers.api_key=t.apiKey),t.accessToken&&t.headers&&(t.headers.access_token=t.accessToken);let r=t.insecure?"http":"https",n=t.defaultHostname,i=t.port||443,a=t.version||"v3",o=t.endpoint||`${r}://${n}:${i}${t.basePath}/${a}`,s=tN.create(Object.assign(Object.assign({baseURL:o,adapter:tK(tN.defaults.adapter)},t),{paramsSerializer:{serialize:N}}));return s.httpClientParams=e,t.onError&&s.interceptors.response.use(e=>e,t.onError),s}(n);if(e.logHandler&&(i.defaults.logHandler=e.logHandler),e.cacheOptions&&e.cacheOptions.policy!==rn.IGNORE_CACHE){let t=i.defaults.adapter;i.defaults.adapter=r=>new Promise(async(n,i)=>{e.cacheOptions&&await rm(e.cacheOptions,e.apiKey,t,n,i,r)})}function a(e){return e>=200&&e<300?"info":e>=300&&e<400?"warn":e>=400?"error":"debug"}return e.debug&&(i.interceptors.request.use(t=>(e.logHandler("info",{type:"request",method:t.method?.toUpperCase(),url:t.url,headers:t.headers,params:t.params,timestamp:new Date().toISOString()}),t)),i.interceptors.response.use(t=>{let r=a(t.status);return e.logHandler(r,{type:"response",status:t.status,statusText:t.statusText,url:t.config?.url,method:t.config?.method?.toUpperCase(),headers:t.headers,data:t.data,timestamp:new Date().toISOString()}),t},t=>{let r=t.response?.status||0,n=a(r);throw e.logHandler(n,{type:"response_error",status:r,statusText:t.response?.statusText||t.message,url:t.config?.url,method:t.config?.method?.toUpperCase(),error:t.message,timestamp:new Date().toISOString()}),t})),i.interceptors.request.use(tX),i.interceptors.response.use(tZ,t=>t0(t,e,i)),e.plugins&&(i.interceptors.request.use(t=>(e&&e.plugins&&e.plugins.forEach(e=>{t=e.onRequest(t)}),t)),i.interceptors.response.use(t=>
1(e&&e.plugins&&e.plugins.forEach(e=>{t=e.onResponse(t.request,t,t.data)}),t))),new rk(i,e)}var rx=I}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.