1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5780],{22265:t=>{"use strict";function e(t,e){var r,n;if("function"==typeof e)void 0!==(n=e(t))&&(t=n);else if(Array.isArray(e))for(r=0;r<e.length;r++)void 0!==(n=e[r](t))&&(t=n);return t}function r(t){return"[object Object]"===Object.prototype.toString.call(t)}function n(t){return Object(t)===t}function o(t){return 0===Object.keys(t).length}var i=["__proto__","prototype","constructor"],a=function(t){return -1===i.indexOf(t)};function s(t,e){t.indexOf("[")>=0&&(t=t.replace(/\[/g,e).replace(/]/g,""));var r=t.split(e);if(r.filter(a).length!==r.length)throw Error("Refusing to update blacklisted property "+t);return r}var c=Object.prototype.hasOwnProperty;function u(t,e,r,n){if(!(this instanceof u))return new u(t,e,r,n);void 0===e&&(e=!1),void 0===r&&(r=!0),void 0===n&&(n=!0),this.separator=t||".",this.override=e,this.useArray=r,this.useBrackets=n,this.keepArray=!1,this.cleanup=[]}var l=new u(".",!1,!0,!0);function p(t){return function(){return l[t].apply(l,arguments)}}u.prototype._fill=function(t,r,i,a){var s,c=t.shift();if(t.length>0){if(r[c]=r[c]||(this.useArray&&(s=t[0],/^\d+$/.test(s))?[]:{}),!n(r[c]))if(this.override)r[c]={};else{if(!(n(i)&&o(i)))throw Error("Trying to redefine `"+c+"` which is a "+typeof r[c]);return}this._fill(t,r[c],i,a)}else{if(!this.override&&n(r[c])&&!o(r[c])){if(!(n(i)&&o(i)))throw Error("Trying to redefine non-empty obj['"+c+"']");return}r[c]=e(i,a)}},u.prototype.object=function(t,r){var n=this;return Object.keys(t).forEach(function(o){var i=void 0===r?null:r[o],a=s(o,n.separator).join(n.separator);-1!==a.indexOf(n.separator)?(n._fill(a.split(n.separator),t,t[o],i),delete t[o]):t[o]=e(t[o],i)}),t},u.prototype.str=function(t,r,n,o){var i=s(t,this.separator).join(this.separator);return -1!==t.indexOf(this.separator)?this._fill(i.split(this.separator),n,r,o):n[t]=e(r,o),n},u.prototype.pick=function(t,e,r,n){var o,i,a,c,u,l,p;for(o=0,i=s(t,this.separator);o<i.length;o++){if(l=i[o],p=e,c="-"===l[0]&&Array.isArray(p)&&/^-\d+$/.test(l)?p.length+parseInt(l,10):l,!e||"object"!=typeof e||!(c in e))return;if(o===i.length-1)if(r)return a=e[c],n&&Array.isArray(e)?e.splice(c,1):delete e[c],Array.isArray(e)&&(u=i.slice(0,-1).join("."),-1===this.cleanup.indexOf(u)&&this.cleanup.push(u)),a;else return e[c];e=e[c]}return r&&Array.isArray(e)&&(e=e.filter(function(t){return void 0!==t})),e},u.prototype.delete=function(t,e){return this.remove(t,e,!0)},u.prototype.remove=function(t,e,r){var n;if(this.cleanup=[],!Array.isArray(t))return this.pick(t,e,!0,r);for(n=0;n<t.length;n++)this.pick(t[n],e,!0,r);return r||this._cleanup(e),e},u.prototype._cleanup=function(t){var e,r,n,o;if(this.cleanup.length){for(r=0;r<this.cleanup.length;r++)e=(e=(o=(n=this.cleanup[r].split(".")).splice(0,-1).join("."))?this.pick(o,t):t)[n[0]].filter(function(t){return void 0!==t}),this.set(this.cleanup[r],e,t);this.cleanup=[]}},u.prototype.del=u.prototype.remove,u.prototype.move=function(t,r,n,o,i){return"function"==typeof o||Array.isArray(o)?this.set(r,e(this.pick(t,n,!0),o),n,i):(i=o,this.set(r,this.pick(t,n,!0),n,i)),n},u.prototype.transfer=function(t,r,n,o,i,a){return"function"==typeof i||Array.isArray(i)?this.set(r,e(this.pick(t,n,!0),i),o,a):(a=i,this.set(r,this.pick(t,n,!0),o,a)),o},u.prototype.copy=function(t,r,n,o,i,a){return"function"==typeof i||Array.isArray(i)?this.set(r,e(JSON.parse(JSON.stringify(this.pick(t,n,!1))),i),o,a):(a=i,this.set(r,this.pick(t,n,!1),o,a)),o},u.prototype.set=function(t,e,n,o){if(void 0===e)return n;for(i=0,u=s(t,this.separator);i<u.length;i++){if(l=u[i],i===u.length-1)if(o&&r(e)&&r(n[l]))for(a in e)c.call(e,a)&&(n[l][a]=e[a]);else if(o&&Array.isArray(n[l])&&Array.isArray(e))for(var i,a,u,l,p=0;p<e.length;p++)n[u[i]].push(e[p]);else n[l]=e;else c.call(n,l)&&(r(n[l])||Array.isArray(n[l]))||(/^\d+$/.test(u[i+1])?n[l]=[]:n[l]={});n=n[l]}return n},u.prototype.transform=function(t,e,r){return e=e||{},r=r||{},Object.keys(t).forEach((function(n){this.set(t[n],this.pick(n,e),r)}).bind(this)),r},u.prototype.dot=function(t,e,i){e=e||{},i=i||[];var a=Array.isArray(t);return Object.keys(t).forEach((function(s){var c=a&&this.useBrackets?"["+s+"]":s;if(n(t[s])&&(r(t[s])&&!o(t[s])||Array.isArray(t[s])&&!this.keepArray&&0!==t[s].length))if(!a||!this.useBrackets)return this.dot(t[s],e,i.concat(c));else{var u=i[i.length-1]||"";return this.dot(t[s],e,i.slice(0,-1).concat(u+c))}a&&this.useBrackets?e[i.join(this.separator).concat("["+s+"]")]=t[s]:e[i.concat(c).join(this.separator)]=t[s]}).bind(this)),e},u.pick=p("pick"),u.move=p("move"),u.transfer=p("transfer"),u.transform=p("transform"),u.copy=p("copy"),u.object=p("object"),u.str=p("str"),u.set=p("set"),u.delete=p("delete"),u.del=u.remove=p("remove"),u.dot=p("dot"),["override","overwrite"].forEach(function(t){Object.defineProperty(u,t,{get:function(){return l.override},set:function(t){l.override=!!t}})}),["useArray","keepArray","useBrackets"].forEach(function(t){Object.defineProperty(u,t,{get:function(){return l[t]},set:function(e){l[t]=e}})}),u._process=e,t.exports=u},41894:(t,e,r)=>{var n=r(29143);self,t.exports=(()=>{"use strict";
1var t={241(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={protocol:"https",host:"cdn.contentstack.io",port:443,version:"v3",urls:{sync:"/stacks/sync",content_types:"/content_types/",entries:"/entries/",assets:"/assets/",environments:"/environments/",taxonomies:"/taxonomies/entries"},live_preview:{enable:!1,host:"rest-preview.contentstack.com"}}},444(){},215(t,e){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}var o,i=['"',"'",">","<","/","="];function a(t){return{text:t["#text"],itemUid:t["data-sys-entry-uid"]||t["data-sys-asset-uid"],itemType:t.type,styleType:t["sys-style-type"],attributes:t,contentTypeUid:t["data-sys-content-type-uid"]}}(h=o||(o={})).BLOCK="block",h.INLINE="inline",h.LINK="link",h.DISPLAY="display",h.DOWNLOAD="download";var s=o,c=function(t,e){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function u(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}c(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var l=function(){return(l=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function p(t,e,r){if(r||2==arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}function f(t){for(var e={},r=0;r<t.attributes.length;r++)e[t.attributes.item(r).name]=t.attributes.item(r).value;return t.childNodes.forEach(function(t){var r;e=l(l({},e),(r={},3===t.nodeType?r["#text"]=t.textContent:1===t.nodeType&&(r[t.nodeName.toLowerCase()]=f(t)),r))}),e}"function"==typeof SuppressedError&&SuppressedError;var h,d,y="documentfragmentcontainer";function v(t,e,r){return void 0===e&&(e=["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"]),(t=t.replace(/\n/g,"<br />")).replace(/<\/?([a-z][a-z0-9]*)\b[^<>]*>/gi,function(t,r){return e.includes(r.toLowerCase())?t:""}).replace(/<([a-z][a-z0-9]*)\b[^<>]*>/gi,function(t,n){return e.includes(n.toLowerCase())?t.replace(/\s([a-z\-]+)=['"][^'"]*['"]/gi,function(t,e){return r.includes(e.toLowerCase())?t:""}):t})}String.prototype.forEachEmbeddedItem=function(t){var e="<".concat(y,">").concat(this.toString(),"</").concat(y,">"),r=(new DOMParser).parseFromString(e,"text/html");r.querySelectorAll(".embedded-entry").forEach(function(e){t(e.outerHTML,a(f(e)))}),r.querySelectorAll(".embedded-asset").forEach(function(e){t(e.outerHTML,a(f(e)))})};var _,m=((d={})[s.BLOCK]=function(t){var e=v(t.title||t.uid),r=v(t._content_type_uid||(t.system?t.system.content_type_uid:""));return"<div><p>".concat(e,"</p><p>Content type: <span>").concat(r,"</span></p></div>")},d[s.INLINE]=function(t){var e=v(t.title||t.uid);return"<span>".concat(e,"</span>")},d[s.LINK]=function(t,e){var r=t.url?encodeURI(v(t.url)):null,n=v(e.text||t.title||t.uid||(t.system?t.system.uid:""));return"<a".concat(r?' href="'.concat(r,'"'):"",">").concat(n,"</a>")},d[s.DISPLAY]=function(t,e){var r=t.url?encodeURI(v(t.url)):null,n=v(e.attributes.alt||t.title||t.filename||t.uid||(t.system?t.system.uid:""));return"<img".concat(r?' src="'.concat(r,'"'):"",' alt="').concat(n,'" />')},d[s.DOWNLOAD]=function(t,e){var r=t.url?encodeURI(v(t.url)):null,n=v(e.text||t.title||t.uid||(t.system?t.system.content_type_uid:""));return"<a".concat(r?' href="'.concat(r,'"'):"",">").concat(n,"</a>")},d);function g(t,e){var r,n,o,i,a;return t&&e?"entry"===t.itemType?(r=t.itemUid,n=t.contentTypeUid,void 0===(o=e)&&(o=[]),o.filter(function(t){return!!t&&(t.uid&&t.uid===r&&t._content_type_uid===n||t.system&&t.system.uid===r&&t.system.content_type_uid===n)})):(i=t.itemUid,void 0===(a=e)&&(a=[]),a.filter(function(t){return!!t&&(t.uid&&t.uid===i||t.system&&t.system.uid===i)})):[]}function b(t,e){return t&&void 0!==t&&e&&void 0!==e&&void 0!==e._embedded_items?g(t,Object.values(e._embedded_items||[]).reduce(function(t,e){return t.concat(e)},[])):[]}function O(t,e,r){if(!t&&void 0===t||!e&&void 0===e)return"";if(r&&void 0!==r[e.styleType]){var n=r[e.styleType];
1if(void 0!==e.attributes["data-sys-content-type-uid"]&&"function"!=typeof n&&void 0!==n[e.attributes["data-sys-content-type-uid"]])return n[e.attributes["data-sys-content-type-uid"]](t,e);if(void 0!==e.attributes["data-sys-content-type-uid"]&&"function"!=typeof n&&void 0!==n.$default)return n.$default(t,e);if(void 0!==e.contentTypeUid&&"function"!=typeof n&&void 0!==n[e.contentTypeUid])return n[e.contentTypeUid](t,e);if(void 0!==e.contentTypeUid&&"function"!=typeof n&&void 0!==n.$default)return n.$default(t,e);if("function"==typeof n)return n(t,e)}return(0,m[e.styleType])(t,e)}function k(t,e,n){!function t(e,n,o){if(e){var i=e[0];if(1===e.length&&n[i])n[i]=o(n[i]);else if(e.length>0&&n[i]){var a=e.slice(1);if(Array.isArray(n[i]))for(var s=0,c=n[i];s<c.length;s++)t(a,c[s],o);else"object"===r(n[i])&&t(a,n[i],o)}}}(t.split("."),e,n)}function A(t,e){if(!t||void 0===t)return"";if("string"==typeof t){var r=t;return t.forEachEmbeddedItem(function(t,n){var o,i;o=r,i=O(b(n,e.entry)[0],n,e.renderOption),r=o.replace(t,i)}),r}var n=[];return t.forEach(function(t){n.push(A(t,e))}),n}(w=_||(_={})).DOCUMENT="doc",w.PARAGRAPH="p",w.LINK="a",w.IMAGE="img",w.EMBED="embed",w.HEADING_1="h1",w.HEADING_2="h2",w.HEADING_3="h3",w.HEADING_4="h4",w.HEADING_5="h5",w.HEADING_6="h6",w.ORDER_LIST="ol",w.UNORDER_LIST="ul",w.LIST_ITEM="li",w.FRAGMENT="fragment",w.HR="hr",w.TABLE="table",w.TABLE_HEADER="thead",w.TABLE_BODY="tbody",w.TABLE_FOOTER="tfoot",w.TABLE_ROW="tr",w.TABLE_HEAD="th",w.TABLE_DATA="td",w.COL_GROUP="colgroup",w.COL="col",w.BLOCK_QUOTE="blockquote",w.CODE="code",w.TEXT="text",w.REFERENCE="reference";var w,E,P=_;(S=E||(E={})).BOLD="bold",S.ITALIC="italic",S.UNDERLINE="underline",S.CLASSNAME_OR_ID="classnameOrId",S.STRIKE_THROUGH="strikethrough",S.INLINE_CODE="inlineCode",S.SUBSCRIPT="subscript",S.SUPERSCRIPT="superscript",S.BREAK="break";var S,q,j=E,T=function(){},I=function(t){function e(){var e=t.call(this)||this;return e.type=P.DOCUMENT,e}return u(e,t),e}(T),D=function(t){function e(e){var r=t.call(this)||this;return r.text=e,r}return u(e,t),e}(T);function R(t,e){var r;return null==(r=t.attrs)?void 0:r[e]}function N(t,e){var r,n=null==(r=t.attrs)?void 0:r[e];return"string"==typeof n?n:void 0}function C(t){if(!t.attrs)return"";var e=[];return t.attrs.style&&e.push(' style="'.concat(t.attrs.style,'"')),t.attrs["class-name"]&&e.push(' class="'.concat(t.attrs["class-name"],'"')),t.attrs.id&&e.push(' id="'.concat(t.attrs.id,'"')),e.join("")}function L(t){for(var e=[],r=0;r<t.length;r++){var n=t[r],o=n&&(n.type===P.ORDER_LIST||n.type===P.UNORDER_LIST),i=e[e.length-1],a=i&&i.type===P.LIST_ITEM;o&&a&&i?e[e.length-1]=l(l({},i),{children:p(p([],i.children||[],!0),[n],!1)}):e.push(t[r])}return e}var M=((q={})[P.DOCUMENT]=function(){return""},q[P.PARAGRAPH]=function(t,e){return"<p".concat(C(t),">").concat(v(e(t.children)),"</p>")},q[P.LINK]=function(t,e){var r=v(N(t,"href")||N(t,"url")||""),n=N(t,"target");return"<a".concat(C(t)).concat(r?' href="'.concat(r,'"'):"").concat(n?' target="'.concat(n,'"'):"",">").concat(v(e(t.children)),"</a>")},q[P.IMAGE]=function(t,e){var r=N(t,"src")||N(t,"url"),n=r?encodeURI(v(r)):"";return"<img".concat(C(t)).concat(n?' src="'.concat(n,'"'):""," />").concat(v(e(t.children)))},q[P.EMBED]=function(t,e){var r=N(t,"src")||N(t,"url"),n=r?encodeURI(v(r)):"";return"<iframe".concat(C(t)).concat(n?' src="'.concat(n,'"'):"",">").concat(v(e(t.children)),"</iframe>")},q[P.HEADING_1]=function(t,e){return"<h1".concat(C(t),">").concat(v(e(t.children)),"</h1>")},q[P.HEADING_2]=function(t,e){return"<h2".concat(C(t),">").concat(v(e(t.children)),"</h2>")},q[P.HEADING_3]=function(t,e){return"<h3".concat(C(t),">").concat(v(e(t.children)),"</h3>")},q[P.HEADING_4]=function(t,e){return"<h4".concat(C(t),">").concat(v(e(t.children)),"</h4>")},q[P.HEADING_5]=function(t,e){return"<h5".concat(C(t),">").concat(v(e(t.children)),"</h5>")},q[P.HEADING_6]=function(t,e){return"<h6".concat(C(t),">").concat(v(e(t.children)),"</h6>")},q[P.ORDER_LIST]=function(t,e){var r=L(t.children);return"<ol".concat(C(t),">").concat(v(e(r)),"</ol>")},q[P.FRAGMENT]=function(t,e){return"<fragment>".concat(v(e(t.children)),"</fragment>")},q[P.UNORDER_LIST]=function(t,e){var r=L(t.children);return"<ul".concat(C(t),">").concat(v(e(r)),"</ul>")},q[P.LIST_ITEM]=function(t,e){return"<li".concat(C(t),">").concat(v(e(t.children)),"</li>")},q[P.HR]=function(){return"<hr>"},q[P.TABLE]=function(t,e){var r="",n=R(t,"colWidths");if(n&&Array.isArray(n)){var o=n.reduce(function(t,e){return t+e},0);r="<".concat(P.COL_GROUP,' data-width="').concat(o,'">
1'),n.forEach(function(t){var e=t/o*100;r+="<".concat(P.COL,' style="width:').concat(e.toFixed(2),'%"/>')}),r+="</".concat(P.COL_GROUP,">")}return"<table".concat(C(t),">").concat(r).concat(v(e(t.children)),"</table>")},q[P.TABLE_HEADER]=function(t,e){return"<thead".concat(C(t),">").concat(v(e(t.children)),"</thead>")},q[P.TABLE_BODY]=function(t,e){return"<tbody".concat(C(t),">").concat(v(e(t.children)),"</tbody>")},q[P.TABLE_FOOTER]=function(t,e){return"<tfoot".concat(C(t),">").concat(v(e(t.children)),"</tfoot>")},q[P.TABLE_ROW]=function(t,e){return"<tr".concat(C(t),">").concat(v(e(t.children)),"</tr>")},q[P.TABLE_HEAD]=function(t,e){if(R(t,"void"))return"";var r=R(t,"rowSpan"),n=R(t,"colSpan");return"<th".concat(r?' rowspan="'.concat(r,'"'):"").concat(n?' colspan="'.concat(n,'"'):"").concat(C(t),">").concat(v(e(t.children)),"</th>")},q[P.TABLE_DATA]=function(t,e){if(R(t,"void"))return"";var r=R(t,"rowSpan"),n=R(t,"colSpan");return"<td".concat(r?' rowspan="'.concat(r,'"'):"").concat(n?' colspan="'.concat(n,'"'):"").concat(C(t),">").concat(v(e(t.children)),"</td>")},q[P.BLOCK_QUOTE]=function(t,e){return"<blockquote".concat(C(t),">").concat(v(e(t.children)),"</blockquote>")},q[P.CODE]=function(t,e){return"<code".concat(C(t),">").concat(v(e(t.children)),"</code>")},q.reference=function(t,e){var r=R(t,"type"),n=R(t,"display-type");if(("entry"===r||"asset"===r)&&"link"===n){var o=N(t,"href")||N(t,"url")||"",i=N(t,"target"),a=N(t,"asset-uid"),s=C(t);return o&&(s+=' href="'.concat(o,'"')),i&&(s+=' target="'.concat(i,'"')),"asset"===r&&(s+=' type="asset" content-type-uid="sys_assets"',a&&(s+=' data-sys-asset-uid="'.concat(a,'"')),s+=' sys-style-type="download"'),"<a".concat(s,">").concat(v(e(t.children)),"</a>")}if("asset"===r){var c=N(t,"asset-link"),u=c?encodeURI(c):"",l=R(t,"redactor-attributes"),p=null==l?void 0:l.alt,f=N(t,"link"),h=(i=N(t,"target")||"",(null==l?void 0:l["asset-caption"])||N(t,"asset-caption")||""),d=N(t,"style"),y=(a=N(t,"asset-uid"),N(t,"class-name")),_=a?' asset_uid="'.concat(a,'"'):"",m=y?' class="'.concat(v(y),'"'):"",g=u?' src="'.concat(v(u),'"'):"",b="_blank"===i?' target="_blank"':"",O="<img".concat(_).concat(m).concat(g).concat(p?' alt="'.concat(p,'"'):"").concat(b).concat(d?' style="'.concat(d,'"'):""," />");return"<figure".concat(d?' style="'.concat(d,'"'):"",">")+(f?'<a href="'.concat(f,'" target="').concat(i||"",'">'):"")+O+(f?"</a>":"")+(h?"<figcaption>".concat(h,"</figcaption>"):"")+"</figure>"}return""},q.default=function(t,e){return v(e(t.children))},q[j.BOLD]=function(t){return"<strong>".concat(v(t),"</strong>")},q[j.ITALIC]=function(t){return"<em>".concat(v(t),"</em>")},q[j.UNDERLINE]=function(t){return"<u>".concat(v(t),"</u>")},q[j.STRIKE_THROUGH]=function(t){return"<strike>".concat(v(t),"</strike>")},q[j.INLINE_CODE]=function(t){return"<span data-type='inlineCode'>".concat(v(t),"</span>")},q[j.SUBSCRIPT]=function(t){return"<sub>".concat(v(t),"</sub>")},q[j.SUPERSCRIPT]=function(t){return"<sup>".concat(v(t),"</sup>")},q[j.BREAK]=function(t){return/^\n+$/.test(t)?v(t):"<br />".concat(v(t))},q[j.CLASSNAME_OR_ID]=function(t,e,r){return"<span".concat(e?' class="'.concat(e,'"'):"").concat(r?' id="'.concat(r,'"'):"",">").concat(v(t),"</span>")},q);function U(t,e){for(var r=0;r<t.length;r++)e(t[r])}function H(t,e,r){if(!(t instanceof Array)&&"doc"!==t.type)return t;if(t instanceof Array){var o=[];return t.forEach(function(t){o.push(H(t,e,r))}),o}var i=l(l({},M),e);return function t(e,r,o){return e.map(function(e){var i=e,a=r,s=o;if((null==(c=null==i?void 0:i.attrs)?void 0:c.style)&&(i.attrs.style=function(t){if(!t)return"";if("string"==typeof t)return t;var e="";for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];e+="".concat(r,":").concat(n,";")}return e}(i.attrs.style)),i.type){if("reference"===i.type)return function(e,r,n){function o(e){return r[e.type](e,function(e){return t(e,r,n)})}if(("entry"===e.attrs.type||"asset"===e.attrs.type)&&"link"===e.attrs["display-type"]){var i=e.children?t(e.children,r,n):"";if(void 0!==r[e.type])return o(e);var a=e.attrs.href||e.attrs.url,s="".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"").concat(a?' href="'.concat(a,'"'):"");return e.attrs.target&&(s+=' target="'.concat(e.attrs.target,'"')),"asset"==e.attrs.type&&(s+=' type="asset" content-type-uid="sys_assets" '.concat(e.attrs["asset-uid"]?'data-sys-asset-uid="'.concat(e.attrs["asset-uid"],'"'):"",' sys-style-type="download"')),"<a".concat(s,">").concat(i,"</a>")}if(!n&&void 0!==r[e.type])return o(e);if(!n)return"";var c,u,l=(u=e.attrs,{text:((null==(c=e.children)?void 0:c.length)>0?e.children[0]:{}).text,itemUid:u["entry-uid"]||u["asset-uid"],itemType:u.type,styleType:u["display-type"],attributes:u,contentTypeUid:u["content-type-uid"]}),p=n(l);return p||void 0===r[e.type]?O(p,l,r):o(e)}(i,a,s);var c,u,l,p=function(e){return t(e,a,s)};return void 0!==a[i.type]?a[i.type](i,p):a.default(i,p)}return u=n(i.text),l=!1,(i.classname||i.id)&&(u=a[j.CLASSNAME_OR_ID](u,i.classname,i.id),l=!0),i.break&&(u=a[j.BREAK](u),l=!0),i.superscript&&(u=a[j.SUPERSCRIPT](u),l=!0),i.subscript&&(u=a[j.SUBSCRIPT](u),l=!0),i.inlineCode&&(u=a[j.INLINE_CODE](u),l=!0),i.strikethrough&&(u=a[j.STRIKE_THROUGH](u),l=!0),i.underline&&(u=a[j.UNDERLINE](u),l=!0),i.italic&&(u=a[j.ITALIC](u),l=!0),i.bold&&(u=a[j.BOLD](u),l=!0),!l&&u.includes("\n")&&(u=u.replace(/\n/g,"<br />")),u}).join("")}(t.children,i,r)}function z(t,e){if((null==e?void 0:e.shouldApplyVariant)&&(null==e?void 0:e._applied_variants)
1){if(e._applied_variants[e.metaKey]){var r=e._applied_variants[e.metaKey];return(n=("v2:"+t).split("."))[1]=n[1]+"_"+r,n.join(".")}var n,o=function(t){var e;try{if(!t._applied_variants)return"";var r=Object.keys(t._applied_variants).sort(function(t,e){return e.length-t.length}),n=t.metaKey.split(".");return 0===n.length||0===r.length?"":null!=(e=r.find(function(t){var e=t.split(".");return!(e.length>n.length)&&e.every(function(t,e){return n[e]===t})}))?e:""}catch(t){return""}}(e);if(o)return r=e._applied_variants[o],(n=("v2:"+t).split("."))[1]=n[1]+"_"+r,n.join(".")}return t}function K(t,e){return{"data-cslp":z(t,e)}}function x(t,e){var r=z(t,e);return"data-cslp=".concat(r)}function G(t){for(var e in t){var n=t[e];n instanceof Array?n.forEach(function(t){B(t)}):n&&"object"===r(n)&&B(n)}}function B(t){var e,n=function t(e){if(null==e?void 0:e.embedded_itemsConnection)return e;for(var n in e)if(e[n]&&"object"===r(e[n])){var o=t(e[n]);if(o)return o}}(t);n&&(null==(e=null==n?void 0:n.embedded_itemsConnection)?void 0:e.edges).forEach(function(t){var e,r,o,i=t.node;if((null==i?void 0:i.url)&&(null==i?void 0:i.filename)){if(!(null==(e=null==i?void 0:i.system)?void 0:e.uid))throw Error("Asset UID not found in the response");(null==(o=null==(r=null==n?void 0:n.json)?void 0:r.children)?void 0:o.find(function(t){return t.attrs["asset-uid"]===i.system.uid})).attrs["asset-link"]=i.url}})}var W=[{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"}},{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(t){if("string"==typeof t)return t.replace(/^https?:\/\//,"");var e={};for(var r in t)e[r]=V(t[r]);return e}e.Document=I,e.GQL={jsonToHTML:function t(e){e.entry instanceof Array?U(e.entry,function(r){t({entry:r,paths:e.paths,renderOption:e.renderOption})}):function(t){for(var e=0,r=t.paths;e<r.length;e++)k(r[e],t.entry,function(e){if(null==e?void 0:e.json){var r=Object.values((e.embedded_itemsConnection?e.embedded_itemsConnection.edges:[])||[]).reduce(function(t,e){return t.concat(e.node)},[]);return H(e.json,t.renderOption,function(t){return g(t,r)[0]})}return e})}({entry:e.entry,paths:e.paths,renderOption:e.renderOption})}},e.MarkType=j,e.Node=T,e.NodeType=P,e.StyleType=s,e.TextNode=D,e.addEditableTags=function(t,e,n,o,i){void 0===o&&(o="en-us");var a,s=(i||{}).useLowerCaseLocale;if(t){e=e.toLowerCase(),o=void 0===s||s?o.toLowerCase():o;var c=t._applied_variants||(null==(a=null==t?void 0:t.system)?void 0:a.applied_variants)||null;t.$=function t(e,n,o,i,a){if(null==e)return{};var s={},c=a.shouldApplyVariant,u=a._applied_variants;return Object.entries(e).forEach(function(e){var l,p,f=e[0],h=e[1];if("$"!==f){var d=null!=(p=null==(l=null==h?void 0:h._metadata)?void 0:l.uid)?p:"",y=a.metaKey?a.metaKey+".":"",v=a.shouldApplyVariant?"".concat(y).concat(f):"";d&&v&&(v=v+"."+d),"object"===r(h)&&(Array.isArray(h)?h.forEach(function(e,l){var p,_,m,g;if(null!=e){var b="".concat(f,"__").concat(l),O="".concat(f,"__parent");
1if(d=null!=(_=null==(p=null==e?void 0:e._metadata)?void 0:p.uid)?_:"",v=a.shouldApplyVariant?"".concat(y).concat(f):"",d&&v&&(v=v+"."+d),s[b]=o?K("".concat(n,".").concat(f,".").concat(l),{_applied_variants:u,shouldApplyVariant:c,metaKey:v}):x("".concat(n,".").concat(f,".").concat(l),{_applied_variants:u,shouldApplyVariant:c,metaKey:v}),s[O]=o?{"data-cslp-parent-field":"".concat(n,".").concat(f)}:(g="".concat(n,".").concat(f),"data-cslp-parent-field=".concat(g)),void 0!==(null==e?void 0:e._content_type_uid)&&void 0!==(null==e?void 0:e.uid)){var k=e._applied_variants||(null==(m=null==e?void 0:e.system)?void 0:m.applied_variants)||null;h[l].$=t(e,"".concat(e._content_type_uid,".").concat(e.uid,".").concat(e.locale||i),o,i,{_applied_variants:k,shouldApplyVariant:!!k,metaKey:""})}else"object"===r(e)&&(e.$=t(e,"".concat(n,".").concat(f,".").concat(l),o,i,{_applied_variants:u,shouldApplyVariant:c,metaKey:v}))}}):h&&(h.$=t(h,"".concat(n,".").concat(f),o,i,{_applied_variants:u,shouldApplyVariant:c,metaKey:v}))),s[f]=o?K("".concat(n,".").concat(f),{_applied_variants:u,shouldApplyVariant:c,metaKey:v}):x("".concat(n,".").concat(f),{_applied_variants:u,shouldApplyVariant:c,metaKey:v})}}),s}(t,"".concat(e,".").concat(t.uid,".").concat(o),n,o,{_applied_variants:c,shouldApplyVariant:!!c,metaKey:""})}},e.attributeToString=function(t){var e="",o=function(o){if(Object.prototype.hasOwnProperty.call(t,o)){if(i.some(function(t){return o.includes(t)}))return"continue";var a=t[o];if(Array.isArray(a))a=a.join(", ");else if("object"===r(a)){var s="";for(var c in a)if(Object.prototype.hasOwnProperty.call(a,c)){var u=a[c];null!=u&&""!==u&&(s+="".concat(c,":").concat(u,"; "))}a=s}e+=" ".concat(o,'="').concat(n(String(a)),'"')}};for(var a in t)o(a);return e},e.getContentstackEndpoint=function(t,e,r){if(void 0===t&&(t="us"),void 0===e&&(e=""),void 0===r&&(r=!1),""===t)throw Error("Empty region provided. Please put valid region.");var n,o=t.toLowerCase().trim()||"us";if(!Array.isArray(W))throw Error("Invalid Regions file. Please install the SDK again to fix this issue.");var i=(n=W).find(function(t){return t.id===o})||n.find(function(t){return t.alias.some(function(t){return t.toLowerCase()===o.toLowerCase()})})||null;if(!i)throw Error("Invalid region: ".concat(t));if(e){var a=i.endpoints[e];if(!a)throw Error('Service "'.concat(e,'" not found for region "').concat(i.id,'"'));return r?V(a):a}return r?V(i.endpoints):i.endpoints},e.jsonToHTML=function t(e){e.entry instanceof Array?U(e.entry,function(r){t({entry:r,paths:e.paths,renderOption:e.renderOption})}):function(t){for(var e=0,r=t.paths;e<r.length;e++)k(r[e],t.entry,function(e){return H(e,t.renderOption,function(e){return b(e,t.entry)[0]})})}({entry:e.entry,paths:e.paths,renderOption:e.renderOption})},e.render=function(t){function e(e,r){k(e,r,function(e){return A(e,{entry:r,renderOption:t.renderOption})})}function r(r){t.paths&&0!==t.paths.length?t.paths.forEach(function(t){e(t,r)}):Object.keys(l({},r._embedded_items)).forEach(function(t){e(t,r)})}t.entry instanceof Array?t.entry.forEach(function(t){r(t)}):r(t.entry)},e.renderContent=A,e.updateAssetURLForGQL=function(t){try{var e=null==t?void 0:t.data;for(var r in e)"items"in e[r]?e[r].items.forEach(function(t){G(t)}):G(e[r])}catch(t){console.error("Error in updating asset URL for GQL response",t)}}},154(t,e,r){var o,i,a=r(444);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}i=function(){function t(t){return"function"==typeof t}var e=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=0,o=void 0,i=void 0,c=function(t,e){y[r]=t,y[r+1]=e,2===(r+=2)&&(i?i(v):O())},u="undefined"!=typeof window?window:void 0,l=u||{},p=l.MutationObserver||l.WebKitMutationObserver,f="undefined"==typeof self&&void 0!==n&&"[object process]"===({}).toString.call(n),h="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(v,1)}}var y=Array(1e3);function v(){for(var t=0;t<r;t+=2)(0,y[t])(y[t+1]),y[t]=void 0,y[t+1]=void 0;r=0}var _,m,g,b,O=void 0;function k(t,e){var r=this,n=new this.constructor(E);void 0===n[w]&&L(n);var o=r._state;if(o){var i=arguments[o-1];c(function(){return N(o,n,i,r._result)})}else D(r,n,t,e);return n}function A(t){if(t&&"object"===s(t)&&t.constructor===this)return t;var e=new this(E);return q(e,t),e}f?O=function(){return n.nextTick(v)}:p?(m=0,g=new p(v),b=document.createTextNode(""),g.observe(b,{characterData:!0}
1),O=function(){b.data=m=++m%2}):h?((_=new MessageChannel).port1.onmessage=v,O=function(){return _.port2.postMessage(0)}):O=void 0===u?function(){try{var t=Function("return this")().require("vertx");return void 0!==(o=t.runOnLoop||t.runOnContext)?function(){o(v)}:d()}catch(t){return d()}}():d();var w=Math.random().toString(36).substring(2);function E(){}var P=void 0;function S(e,r,n){r.constructor===e.constructor&&n===k&&r.constructor.resolve===A?1===r._state?T(e,r._result):2===r._state?I(e,r._result):D(r,void 0,function(t){return q(e,t)},function(t){return I(e,t)}):void 0===n?T(e,r):t(n)?c(function(t){var e=!1,o=function(n,o){try{n.call(o,function(n){e||(e=!0,r!==n?q(t,n):T(t,n))},function(r){e||(e=!0,I(t,r))})}catch(t){return t}}(n,r,0,0,t._label);!e&&o&&(e=!0,I(t,o))},e):T(e,r)}function q(t,e){if(t===e)I(t,TypeError("You cannot resolve a promise with itself"));else if(r=s(e),null===e||"object"!==r&&"function"!==r)T(t,e);else{var r,n=void 0;try{n=e.then}catch(e){return void I(t,e)}S(t,e,n)}}function j(t){t._onerror&&t._onerror(t._result),R(t)}function T(t,e){t._state===P&&(t._result=e,t._state=1,0!==t._subscribers.length&&c(R,t))}function I(t,e){t._state===P&&(t._state=2,t._result=e,c(j,t))}function D(t,e,r,n){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+1]=r,o[i+2]=n,0===i&&t._state&&c(R,t)}function R(t){var e=t._subscribers,r=t._state;if(0!==e.length){for(var n=void 0,o=void 0,i=t._result,a=0;a<e.length;a+=3)n=e[a],o=e[a+r],n?N(r,n,o,i):o(i);t._subscribers.length=0}}function N(e,r,n,o){var i=t(n),a=void 0,s=void 0,c=!0;if(i){try{a=n(o)}catch(t){c=!1,s=t}if(r===a)return void I(r,TypeError("A promises callback cannot return that same promise."))}else a=o;r._state!==P||(i&&c?q(r,a):!1===c?I(r,s):1===e?T(r,a):2===e&&I(r,a))}var C=0;function L(t){t[w]=C++,t._state=void 0,t._result=void 0,t._subscribers=[]}var M=function(){function t(t,r){this._instanceConstructor=t,this.promise=new t(E),this.promise[w]||L(this.promise),e(r)?(this.length=r.length,this._remaining=r.length,this._result=Array(this.length),0===this.length?T(this.promise,this._result):(this.length=this.length||0,this._enumerate(r),0===this._remaining&&T(this.promise,this._result))):I(this.promise,Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===P&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===A){var o=void 0,i=void 0,a=!1;try{o=t.then}catch(t){a=!0,i=t}if(o===k&&t._state!==P)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(r===U){var s=new r(E);a?I(s,i):S(s,t,o),this._willSettleAt(s,e)}else this._willSettleAt(new r(function(e){return e(t)}),e)}else this._willSettleAt(n(t),e)},t.prototype._settledAt=function(t,e,r){var n=this.promise;n._state===P&&(this._remaining--,2===t?I(n,r):this._result[e]=r),0===this._remaining&&T(n,this._result)},t.prototype._willSettleAt=function(t,e){var r=this;D(t,void 0,function(t){return r._settledAt(1,e,t)},function(t){return r._settledAt(2,e,t)})},t}(),U=function(){function e(t){this[w]=C++,this._result=this._state=void 0,this._subscribers=[],E!==t&&("function"!=typeof t&&function(){throw TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(t,e){try{e(function(e){q(t,e)},function(e){I(t,e)})}catch(e){I(t,e)}}(this,t):function(){throw TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
1onstructor cannot be called as a function.")}())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var r=this.constructor;return t(e)?this.then(function(t){return r.resolve(e()).then(function(){return t})},function(t){return r.resolve(e()).then(function(){throw t})}):this.then(e,e)},e}();return U.prototype.then=k,U.all=function(t){return new M(this,t).promise},U.race=function(t){var r=this;return new r(e(t)?function(e,n){for(var o=t.length,i=0;i<o;i++)r.resolve(t[i]).then(e,n)}:function(t,e){return e(TypeError("You must pass an array to race."))})},U.resolve=A,U.reject=function(t){var e=new this(E);return I(e,t),e},U._setScheduler=function(t){i=t},U._setAsap=function(t){c=t},U._asap=c,U.polyfill=function(){var t=void 0;if(void 0!==a)t=a;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=U},U.Promise=U,U},"object"===s(e)?t.exports=i():void 0===(o=i.call(e,r,e,t))||(t.exports=o)},285(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(r(641)),o=i(r(174));function i(t){return t&&t.__esModule?t:{default:t}}e.default={providers:function(t){if(t)return n.default;console.error(o.default.CACHE_PROVIDER_MISSING)},policies:{IGNORE_CACHE:-1,ONLY_NETWORK:0,CACHE_ELSE_NETWORK:1,NETWORK_ELSE_CACHE:2,CACHE_THEN_NETWORK:3}}},641(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t){if("function"==typeof WeakMap){var e=new WeakMap;new WeakMap}if(t&&t.__esModule)return t;var r,o,i={__proto__:null,default:t};if(null===t||"object"!=n(t)&&"function"!=typeof t)return i;if(r=e){if(r.has(t))return r.get(t);r.set(t,i)}for(var a in t)"default"!==a&&({}).hasOwnProperty.call(t,a)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,a))&&(o.get||o.set)?r(i,a,o):i[a]=t[a]);return i}(r(94)),i={};function a(t,e){!e&&t&&t.length&&t.push("");var r,n=o.getKeys(),i=o.getStorage();if(t&&t.length){r=t.join(".");for(var a=0,s=n.length;a<s;a++)n[a]&&0===n[a].indexOf(r)&&delete i[n[a]]}else for(var c=0,u=n.length;c<u;c++)delete i[n[c]]}i.get=function(t,e){try{e(null,o.get(t))}catch(t){e(t)}},i.set=function(t,e,r){try{t&&e&&o.set(t,e),r()}catch(t){r(t)}},i.clearByContentType=function(){try{if(2==arguments.length||3==arguments.length){var t=Array.prototype.slice.call(arguments),e=t.splice(-1,1).pop(),r=[];r.push.apply(r,t),a(r),e()}}catch(t){callback(t)}},i.clearByQuery=function(t,e){try{for(var r=o.getKeys(),n=o.getStorage(),i=0,a=r.length;i<a;i++)r[i]&&~r[i].indexOf(t)&&delete n[r[i]];e()}catch(t){e(t)}},i.clearAll=function(t){try{a(),t()}catch(e){t(e)}},e.default=i},94(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.get=function(t){var e=o.default.getItem(t);try{e=JSON.parse(e)}catch(t){return e}return e||null},e.getKeys=function(){return o.default?Object.keys(o.default):[]},e.getStorage=function(){return o.default||null},e.set=function(t,e){try{"object"===i(e)?o.default.setItem(t,JSON.stringify(e)):o.default.setItem(t,e)}catch(t){}};var n,o=(n=r(514))&&n.__esModule?n:{default:n};function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}},949(t,e,r){var n,o,i=c(r(348)),a=c(r(285)),s=c(r(697));function c(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return p(t,void 0);var r=({}).toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,void 0):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw i}}}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}
1function h(t,e){return(h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function d(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(d=function(){return!!t})()}function y(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=u(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}t.exports=new(n=function t(){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this.CachePolicy=a.default.policies,this.Region=s.default,this.Utils=r(215)},o=[{key:"Stack",value:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(t,e,r){if(d())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var o=new(t.bind.apply(t,n));return r&&h(o,r.prototype),o}(i.default,e)}},{key:"updateAssetURL",value:function(t){if(null==t._embedded_items)throw Error("_embedded_items not present in entry. Call includeEmbeddedItems() before fetching entry.");var e=function(e){var r=t._embedded_items[e];Array.isArray(r)&&r.forEach(function(r){if("sys_assets"==r._content_type_uid&&r.filename){var n,o,i=function(t){for(var e=0;e<t.length;e++)if(t[e].children&&t[e].children.length&&i(t[e].children),t[e].attrs&&t[e].attrs["asset-uid"]===r.uid)return void(n=t[e].attrs)},a=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach(function(e){var n,o;n=e,o=r[e],(n=y(n))in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}({},t),s=e.split("."),c=new Set(["__proto__","constructor","prototype"]),p=l(s);try{for(p.s();!(o=p.n()).done;){var h=o.value;if(!c.has(h)){if(a&&"object"===u(a)&&null!==a&&Object.prototype.hasOwnProperty.call(a,h)){var d=a[h];"object"===u(d)&&null!==d&&(a=d)}else if(Array.isArray(a)){var v,_=l(a);try{for(_.s();!(v=_.n()).done;){var m=v.value;m&&"object"===u(m)&&Object.prototype.hasOwnProperty.call(m,h)&&(a=m[h])}}catch(t){_.e(t)}finally{_.f()}}}}}catch(t){p.e(t)}finally{p.f()}a.children&&i(a.children),n&&(n.href=r.url)}})};for(var r in t._embedded_items)e(r)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,y(n.key),n)}}(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n)},697(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={EU:"eu",US:"us",AU:"au",AZURE_NA:"azure-na",AZURE_EU:"azure-eu",GCP_NA:"gcp-na",GCP_EU:"gcp-eu"}}
1,185(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var r=t.requestParams;return new Promise(function(n,s){var c,u=new URLSearchParams,l=function(t,e){if("object"===a(t)&&void 0!==t.length)for(var r=0,n=t.length;r<n;r++)u.append(e+"[]",t[r]);else for(var o in t){var i=e?e+"["+o+"]":o,s=t[o];null!==s&&"object"===a(s)&&"query"!==o?l(s,i):u.append(i,"query"!==o?s:JSON.stringify(s))}return u.toString()};return r.headers["Content-Type"]="application/json; charset=UTF-8",r.headers["X-User-Agent"]="contentstack-delivery-javascript-web/3.27.0",r.body&&"object"===a(r.body)&&(delete r.body._method,"object"===a(r.body.query)&&0===Object.keys(r.body.query).length&&delete r.body.query,c=l(r.body)),function t(e,r,n,a,s){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:300,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:5,l=e.requestParams,p=l.url+"?"+r,f=l.headers,h=o.mergeDeep({method:"GET",headers:f,timeout:3e4},n);function d(o){if(0===u)n.debug&&n.logHandler("error",o),s(o);else{var i,l=c;u-=1;var p=n.retryLimit-u;n.retryDelayOptions&&(n.retryDelayOptions.base?l=n.retryDelayOptions.base*p:n.retryDelayOptions.customBackoff&&(l=n.retryDelayOptions.customBackoff(p,o))),(i=l,new Promise(function(t){setTimeout(t,i)})).then(function(){return t(e,r,n,a,s,c,u)}).catch(function(){return t(e,r,n,a,s,c,u)})}}n.debug&&n.logHandler("info",{url:p,option:h});var y={url:p,option:h},v=e.plugins;if(v&&void 0!==v)for(var _=0;_<v.length;_++)"function"==typeof v[_].onRequest&&(y=v[_].onRequest(e,y));(0,i.default)(y.url,y.option).then(function(t){n.debug&&n.logHandler("info",t);var r=t.json();if(t.ok&&200===t.status)r.then(function(r){for(var n=0;n<v.length&&"function"==typeof v[n].onResponse;n++)r=v[n].onResponse(e,y,t,r);a(r)}).catch(function(t){n.debug&&n.logHandler("error",t),t&&("terminated"===t.message||t.cause&&("UND_ERR_SOCKET"===t.cause.code||"UND_ERR_ABORTED"===t.cause.code))&&u>0?d(t):s(t)});else{var o=t.status,i=t.statusText;r.then(function(e){var r={error_message:e.error_message,error_code:e.error_code,errors:e.errors,status:o,statusText:i};n.retryCondition&&n.retryCondition(t)?d(r):(n.debug&&n.logHandler("error",r),s(r))}).catch(function(t){n.debug&&n.logHandler("error",t),t&&("terminated"===t.message||t.cause&&("UND_ERR_SOCKET"===t.cause.code||"UND_ERR_ABORTED"===t.cause.code))&&u>0?d(t):s(t||{status:o,statusText:i})})}}).catch(function(t){n.debug&&n.logHandler("error",t),t&&("terminated"===t.message||t.cause&&("UND_ERR_SOCKET"===t.cause.code||"UND_ERR_ABORTED"===t.cause.code))&&u>0?d(t):s(t)})}(t,c,e,n,s,e.retryDelay,e.retryLimit)})};var n,o=function(t){if("function"==typeof WeakMap){var e=new WeakMap;new WeakMap}if(t&&t.__esModule)return t;var r,n,o={__proto__:null,default:t};if(null===t||"object"!=a(t)&&"function"!=typeof t)return o;if(r=e){if(r.has(t))return r.get(t);r.set(t,o)}for(var i in t)"default"!==i&&({}).hasOwnProperty.call(t,i)&&((n=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,i))&&(n.get||n.set)?r(o,i,n):o[i]=t[i]);return o}(r(925)),i=(n=r(54))&&n.__esModule?n:{default:n};function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}},925(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e._type=function(t){var e=p(t);return"object"===e&&Array.isArray(t)&&(e="array"),e},e.generateHash=y,e.getHash=d,e.isBrowser=function(){return"undefined"!=typeof window},e.merge=f,e.mergeDeep=function(t,e){var r=this,n=function(t,e){for(var o in e)"object"==r._type(e[o])&&r._type(t[o])==r._type(e[o])?n(t[o],e[o]):"array"==r._type(e[o])&&r._type(t[o])==r._type(e[o])?t[o]=t[o].concat(e[o]):t[o]=e[o]};return n(t,e),t},e.parseQueryFromParams=h,e.resultWrapper=v,e.sendRequest=function(t,e){var r,o=t.environment_uid;o?t._query.environment_uid=o:(t._query||(t._query={}),t._query.environment=t.environment);var i=void 0!==t.queryCachePolicy?t.queryCachePolicy:t.cachePolicy,a=void 0!==t.tojson&&t.tojson,c=!!(t.entry_uid||t.singleEntry||t.asset_uid),u=d(h(t,c,a));
1if(t&&t.requestParams&&t.requestParams.body&&t.requestParams.body.query){var y=JSON.parse(JSON.stringify(t.requestParams.body.query));"object"!==p(y)&&(y=JSON.parse(y)),delete t.requestParams.body.query,t.requestParams.body=f(t.requestParams.body,y),t.live_preview&&!0===t.live_preview.enable&&t.live_preview.live_preview&&"init"!==t.live_preview.live_preview&&(t.requestParams.body=f(t.requestParams.body,{live_preview:t.live_preview.live_preview||"init"}),i=2,t.requestParams.body.environment&&delete t.requestParams.body.environment,t.requestParams.headers.access_token&&delete t.requestParams.headers.access_token,delete t.requestParams.headers.authorization,delete t.requestParams.headers.preview_token,t.live_preview.preview_token?(t.requestParams.headers.preview_token=t.live_preview.preview_token,t.requestParams.headers.live_preview=t.live_preview.live_preview):t.live_preview.management_token&&(t.requestParams.headers.authorization=t.live_preview.management_token))}var m=function(t,e){return function(r,n){try{if(r)return e(r);a||(n=v(n)),t(_(n))}catch(t){e(t)}}},g=function(r,o,s){r&&(0,n.default)(t,e).then(function(e){try{t.entry_uid=t.asset_uid=t.tojson=t.queryCachePolicy=void 0;var r={},n={};if(t.singleEntry)if(t.singleEntry=!1,e.schema&&(r.schema=e.schema),e.content_type&&(r.content_type=e.content_type,delete r.schema),e.entries&&e.entries.length)r.entry=e.entries[0];else{if(!e.assets||!e.assets.length)return 2===i&&null!==t.provider?void t.provider.get(u,function(t,e){if(t||!e||0===e.entries.length&&0===e.assets.length)return s({error_code:141,error_message:"The requested entry doesn't exist."});m(o,s)(t,e)}):s({error_code:141,error_message:"The requested entry doesn't exist."});r.assets=e.assets[0]}else e.items?n={items:e.items,pagination_token:e.pagination_token,sync_token:e.sync_token,total_count:e.total_count}:r=e;return -1!==i&&null!==t.provider?(t.provider.set(u,r,function(t){try{return t&&s(t),a||(r=v(r)),o(_(r))}catch(t){return s(t)}}),o(_(r))):Object.keys(n).length?o(n):(a||(r=v(r)),o(_(r)))}catch(t){return s({message:t.message})}}).catch(function(e){e?s(e):2===i&&null!==t.provider&&t.provider.get(u,m(o,s))})};switch(i){case 1:return new Promise((r=l(s().m(function e(r,n){return s().w(function(e){for(;;)switch(e.n){case 0:if(null===t.provider){e.n=2;break}return e.n=1,t.provider.get(u,function(){var t=l(s().m(function t(e,o){var i;return s().w(function(t){for(;;)switch(t.p=t.n){case 0:if(t.p=0,!e&&o){t.n=1;break}g(!0,r,n),t.n=2;break;case 1:return a||(o=v(o)),t.a(2,r(_(o)));case 2:t.n=4;break;case 3:return t.p=3,i=t.v,t.a(2,n(i));case 4:return t.a(2)}},t,null,[[0,3]])}));return function(e,r){return t.apply(this,arguments)}}());case 1:e.n=3;break;case 2:g(!0,r,n);case 3:return e.a(2)}},e)})),function(t,e){return r.apply(this,arguments)}));case 2:case 0:case void 0:case -1:return new Promise(function(t,e){g(!0,t,e)})}if(3===i)return new Promise(function(e,r){null!==t.provider&&t.provider.get(u,function(t,n){try{t||!n?r(t):(a||(n=v(n)),e(_(n)))}catch(t){r(t)}})}).then(function(){return new Promise(function(t,e){g(!0,t,e)})}).catch(function(t){return new Promise(function(t,e){g(!0,t,e)})})},e.spreadResult=_,e.transform=function(t){return function(){switch(this._query[t]=this._query[t]||{},arguments.length){case 1:if(Array.isArray(arguments[0])||"string"==typeof arguments[0]){var e=this._query[t].BASE||[];return e=e.concat(arguments[0]),this._query[t].BASE=e,this}console.error(i.default.TRANSFORM_INVALID_SINGLE_PARAM);break;case 2:if("string"==typeof arguments[0]&&(Array.isArray(arguments[1])||"string"==typeof arguments[1])){var r=this._query[t][arguments[0]]||[];return r=r.concat(arguments[1]),this._query[t][arguments[0]]=r,this}console.error(i.default.TRANSFORM_INVALID_DOUBLE_PARAM);break;default:console.error(i.default.TRANSFORM_INVALID_PARAM_COUNT)}}};
1var n=a(r(185)),o=a(r(209)),i=a(r(174));function a(t){return t&&t.__esModule?t:{default:t}}function s(){var t,e,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var s=Object.create((n&&n.prototype instanceof u?n:u).prototype);return c(s,"_invoke",function(r,n,o){var i,s,c,u=0,l=o||[],p=!1,f={p:0,n:0,v:t,a:h,f:h.bind(t,4),d:function(e,r){return i=e,s=0,c=t,f.n=r,a}};function h(r,n){for(s=r,c=n,e=0;!p&&u&&!o&&e<l.length;e++){var o,i=l[e],h=f.p,d=i[2];r>3?(o=d===n)&&(c=i[(s=i[4])?5:(s=3,3)],i[4]=i[5]=t):i[0]<=h&&((o=r<2&&h<i[1])?(s=0,f.v=n,f.n=i[1]):h<d&&(o=r<3||i[0]>n||n>d)&&(i[4]=r,i[5]=n,f.n=d,s=0))}if(o||r>1)return a;throw p=!0,n}return function(o,l,d){if(u>1)throw TypeError("Generator is already running");for(p&&1===l&&h(l,d),s=l,c=d;(e=s<2?t:c)||!p;){i||(s?s<3?(s>1&&(f.n=-1),h(s,c)):f.n=c:f.v=c);try{if(u=2,i){if(s||(o="next"),e=i[o]){if(!(e=e.call(i,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,s<2&&(s=0)}else 1===s&&(e=i.return)&&e.call(i),s<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),s=1);i=t}else if((e=(p=f.n<0)?c:r.call(n,f))!==a)break}catch(e){i=t,s=1,c=e}finally{u=1}}return{value:e,done:p}}}(r,o,i),!0),s}var a={};function u(){}function l(){}function p(){}e=Object.getPrototypeOf;var f=p.prototype=u.prototype=Object.create([][n]?e(e([][n]())):(c(e={},n,function(){return this}),e));function h(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,c(t,o,"GeneratorFunction")),t.prototype=Object.create(f),t}return l.prototype=p,c(f,"constructor",p),c(p,"constructor",l),l.displayName="GeneratorFunction",c(p,o,"GeneratorFunction"),c(f),c(f,o,"Generator"),c(f,n,function(){return this}),c(f,"toString",function(){return"[object Generator]"}),(s=function(){return{w:i,m:h}})()}function c(t,e,r,n){var o=Object.defineProperty;try{o({},"",{})}catch(t){o=0}(c=function(t,e,r,n){function i(e,r){c(t,e,function(t){return this._invoke(e,r,t)})}e?o?o(t,e,{value:r,enumerable:!n,configurable:!n,writable:!n}):t[e]=r:(i("next",0),i("throw",1),i("return",2))})(t,e,r,n)}function u(t,e,r,n,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void r(t)}s.done?e(c):Promise.resolve(c).then(n,o)}function l(t){return function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(t){u(i,n,o,a,s,"next",t)}function s(t){u(i,n,o,a,s,"throw",t)}a(void 0)})}}function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(t&&e)for(var r in e)t[r]=e[r];return t}function h(t,e,r){if(t&&t.requestParams){var n=f({},t.requestParams.body&&t.requestParams.body.query||{});return n.environment_uid&&(delete n.environment_uid,n.environment=t.environment),n.environment=t.environment,{content_type_uid:t.content_type_uid,locale:n.locale||"en-us",query:n,entry_uid:t.entry_uid,asset_uid:t.asset_uid,single:e||"false",toJSON:r||"false",api_key:t.requestParams.headers?t.requestParams.headers.api_key:""}}}function d(t){try{var e=y(JSON.stringify(t)),r=[];return r.push(t.content_type_uid),r.push(t.locale),t.entry_uid&&r.push(t.entry_uid),t.asset_uid&&r.push(t.asset_uid),r.push(e),r.join(".")}catch(t){}}function y(t){var e,r,n=0;if(0===t.length)return n;for(e=0,r=t.length;e<r;e++)n=(n<<5)-n+t.charCodeAt(e)|0;return n<-1?-1*n:n}function v(t){if(t&&void 0!==t.entries)if(t.entries&&t.entries.length)for(var e=0,r=t.entries.length;e<r;e++)t.entries[e]=(0,o.default)(t.entries[e]);else t.entries=[];else if(t&&t.assets&&void 0!==t.assets)if(t.assets&&t.assets.length)for(var n=0,i=t.assets.length;n<i;n++)t.assets[n]=(0,o.default)(t.assets[n]);else t.assets=[];else t&&void 0!==t.entry?t.entry=(0,o.default)(t.entry):t&&void 0!==t.asset?t.asset=(0,o.default)(t.asset):t&&void 0!==t.items&&(t.items=(0,o.default)(t.items).toJSON());return t}function _(t){var e=[];return t&&Object.keys(t).length&&(void 0!==t.entries&&(e.push(t.entries),t.content_type&&(e.schema=t.content_type)),void 0!==t.assets&&e.push(t.assets),void 0===t.content_type&&void 0===t.schema||e.push(t.content_type||t.schema),void 0!==t.count&&e.push(t.count),void 0!==t.entry&&(e=t.entry,t.schema&&(e.schema=t.schema),t.content_type&&(e.content_type=t.content_type)),void 0!==t.asset&&(e=t.asset),void 0!==t.items&&e.push(t)),e}Promise.prototype.spread||(Promise.prototype.spread=function(t,e){return e=e||function(t){},this.then(function(e){return t.apply(t,e)}).catch(function(t){e(t)})})}
1,174(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default={CACHE_PROVIDER_MISSING:"Missing cache provider. Provide a valid provider and try again.",CACHE_POLICY_INVALID:"Invalid cache policy. Provide a valid policy value and try again.",STACK_INVALID_PARAMS_OBJECT:"Invalid parameters. The specified API Key, Delivery Token, or Environment Name is invalid.",STACK_INVALID_PARAMS_STRING:"Invalid string parameters. Provide valid API Key, Delivery Token, and Environment Name.",STACK_INVALID_PARAMS_GENERIC:"Invalid parameters. Provide valid parameters to initialize the Contentstack javascript-SDK Stack.",STACK_OBSOLETE_FUNCTION:"WARNING! Obsolete function called. Function 'Contentstack.Stack(api_key, delivery_token, environment)' has been deprecated, please use 'Contentstack.Stack({api_key, delivery_token, environment, region, branch, fetchOptions})' function instead!",ENTRY_UID_REQUIRED:"Entry UID required. Provide an entry UID. e.g. .Entry('entry_uid')",ENTRY_INCLUDE_OWNER_DEPRECATED:"The includeOwner function is deprecated. This functionality is no longer supported. Please remove this method from your code.",ENTRY_INVALID_ARGUMENT:"Invalid argument. Argument should be a String or an Array.",ENTRY_LANGUAGE_INVALID:"Invalid language code. Argument should be a String.",ENTRY_ADD_QUERY_INVALID:"Invalid query parameters. First argument should be a String.",ENTRY_ADD_PARAM_INVALID:"Invalid parameters. Both key and value should be strings.",TRANSFORM_INVALID_SINGLE_PARAM:"Invalid parameters. Expected a string or an array of field names.",TRANSFORM_INVALID_DOUBLE_PARAM:"Invalid parameters. Expected first parameter as a string (reference field UID) and second parameter as a string or an array of field names.",TRANSFORM_INVALID_PARAM_COUNT:"Invalid parameters. Provide either one parameter (field name or array) or two parameters (reference field UID and field name or array).",REQUEST_ERROR_OCCURRED:function(t){return"An error occurred: ".concat(t)}}},537(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,o,i=function(t){if("function"==typeof WeakMap){var e=new WeakMap;new WeakMap}if(t&&t.__esModule)return t;var r,n,o={__proto__:null,default:t};if(null===t||"object"!=a(t)&&"function"!=typeof t)return o;if(r=e){if(r.has(t))return r.get(t);r.set(t,o)}for(var i in t)"default"!==i&&({}).hasOwnProperty.call(t,i)&&((n=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,i))&&(n.get||n.set)?r(o,i,n):o[i]=t[i]);return o}(r(925));function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n=function t(){return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this._query={},this.only=i.transform("only"),this},o=[{key:"toJSON",value:function(){return this.tojson=!0,this}},{key:"addParam",value:function(t,e){if(t&&"string"==typeof t&&e&&"string"==typeof e)return this._query[t]=e,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Kindly provide a valid parameters.")}},{key:"includeFallback",value:function(){return this._query.include_fallback=!0,this}},{key:"includeMetadata",value:function(){return this._query.include_metadata=!0,this}},{key:"fetch",value:function(t){if(this.asset_uid){this.requestParams={method:"POST",headers:i.mergeDeep({},this.headers),url:this.config.protocol+"://"+this.config.host+":"+this.config.port+"/"+this.config.version+this.config.urls.assets+this.asset_uid,body:{_method:"GET",query:this._query}};var e=i.mergeDeep(this.fetchOptions,t);return i.sendRequest(i.mergeDeep({},this),e)}t.debug&&t.logHandler("error","Kindly provide an asset uid. e.g. .Assets('asset_uid')")}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,function(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=a(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}(n.key),n)}}(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),e.default=n}
1,42(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,o,i,a=function(t){if("function"==typeof WeakMap){var e=new WeakMap;new WeakMap}if(t&&t.__esModule)return t;var r,n,o={__proto__:null,default:t};if(null===t||"object"!=c(t)&&"function"!=typeof t)return o;if(r=e){if(r.has(t))return r.get(t);r.set(t,o)}for(var i in t)"default"!==i&&({}).hasOwnProperty.call(t,i)&&((n=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,i))&&(n.get||n.set)?r(o,i,n):o[i]=t[i]);return o}(r(925)),s=(i=r(174))&&i.__esModule?i:{default:i};function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n=function t(){return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this._query={},this.only=a.transform("only"),this.except=a.transform("except"),this},o=[{key:"setCacheProvider",value:function(t){return t&&"object"===c(t)&&(this.provider=t),this}},{key:"setCachePolicy",value:function(t){return"number"==typeof t&&t>=-1&&t<4?this._query?this.queryCachePolicy=t:this.cachePolicy=t:this.fetchOptions.debug&&this.fetchOptions.logHandler("error",s.default.CACHE_POLICY_INVALID),this}},{key:"includeReference",value:function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];if(Array.isArray(e)||"string"==typeof e){if(arguments.length)for(var n=0;n<arguments.length;n++)this._query.include=this._query.include||[],this._query.include=this._query.include.concat(arguments[n]);return this}this.fetchOptions.debug&&this.fetchOptions.logHandler("error",s.default.ENTRY_INVALID_ARGUMENT)}},{key:"language",value:function(t){if(t&&"string"==typeof t)return this._query.locale=t,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error",s.default.ENTRY_LANGUAGE_INVALID)}},{key:"addQuery",value:function(t,e){if(t&&e&&"string"==typeof t)return this._query[t]=e,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error",s.default.ENTRY_ADD_QUERY_INVALID)}},{key:"includeEmbeddedItems",value:function(){return this._query.include_embedded_items=["BASE"],this}}
1,{key:"includeSchema",value:function(){return this._query.include_schema=!0,this}},{key:"includeReferenceContentTypeUID",value:function(){return this._query.include_reference_content_type_uid=!0,this}},{key:"includeFallback",value:function(){return this._query.include_fallback=!0,this}},{key:"includeBranch",value:function(){return this._query.include_branch=!0,this}},{key:"includeMetadata",value:function(){return this._query.include_metadata=!0,this}},{key:"includeContentType",value:function(){return this._query.include_content_type=!0,this}},{key:"includeOwner",value:function(){return console.warn(s.default.ENTRY_INCLUDE_OWNER_DEPRECATED),this._query.include_owner=!0,this}},{key:"toJSON",value:function(){return this.tojson=!0,this}},{key:"addParam",value:function(t,e){if(t&&e&&"string"==typeof t&&"string"==typeof e)return this._query[t]=e,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error",s.default.ENTRY_ADD_PARAM_INVALID)}},{key:"variants",value:function(t){return Array.isArray(t)&&t.length>0?this.headers["x-cs-variant-uid"]=t.join(","):this.headers["x-cs-variant-uid"]=t,this}},{key:"fetch",value:function(t){var e=this.config.host+":"+this.config.port;if(this.live_preview&&!0===this.live_preview.enable&&this.live_preview.live_preview&&"init"!==this.live_preview.live_preview&&(e=this.live_preview.host),this.entry_uid){this.requestParams={method:"POST",headers:a.mergeDeep({},this.headers),url:this.config.protocol+"://"+e+"/"+this.config.version+this.config.urls.content_types+this.content_type_uid+this.config.urls.entries+this.entry_uid,body:{_method:"GET",query:this._query}};var r=a.mergeDeep(this.fetchOptions,t);return a.sendRequest(a.mergeDeep({},this),r)}this.fetchOptions.debug&&this.fetchOptions.logHandler("error",s.default.ENTRY_UID_REQUIRED)}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,function(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=c(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}(n.key),n)}}(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),e.default=n},318(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,o=function(t){if("function"==typeof WeakMap){var e=new WeakMap;new WeakMap}if(t&&t.__esModule)return t;var r,n,o={__proto__:null,default:t};if(null===t||"object"!=f(t)&&"function"!=typeof t)return o;if(r=e){if(r.has(t))return r.get(t);r.set(t,o)}for(var i in t)"default"!==i&&({}).hasOwnProperty.call(t,i)&&((n=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,i))&&(n.get||n.set)?r(o,i,n):o[i]=t[i]);return o}(r(925)),i=(n=r(42))&&n.__esModule?n:{default:n};function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach(function(e){var n,o,i;n=t,o=e,i=r[e],(o=c(o))in n?Object.defineProperty(n,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[o]=i}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function c(t){var e=function(t){if("object"!=f(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=f(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==f(e)?e:e+""}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=function(){return!!t})()}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}
1function p(t,e){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var h=function(t){return function(e,r){if(e&&r&&"string"==typeof e&&void 0!==r)return this._query.query[e]=this._query.query.file_size||{},this._query.query[e][t]=r,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Kindly provide valid parameters.")}},d=function(t){var e=t?"$in":"$nin";return function(t,r){if(t&&r&&"string"==typeof t&&Array.isArray(r))return this._query.query[t]=this._query.query[t]||{},this._query.query[t][e]=this._query.query[t][e]||[],this._query.query[t][e]=this._query.query[t][e].concat(r),this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Kindly provide valid parameters.")}},y=function(t){return function(e){if(e&&"string"==typeof e)return this._query.query[e]=this._query.query[e]||{},this._query.query[e].$exists=t,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Kindly provide valid parameters.")}},v=function(t){return function(){for(var e=[],r=0,n=arguments.length;r<n;r++)arguments[r]instanceof b&&arguments[r]._query.query?e.push(arguments[r]._query.query):"object"===f(arguments[r])&&e.push(arguments[r]);return this._query.query[t]?this._query.query[t]=this._query.query[t].concat(e):this._query.query[t]=e,this}},_=function(t){return function(e){if(e&&"string"==typeof e)return this._query[t]=e,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Argument should be a string.")}},m=function(t){return function(e){if("number"==typeof e)return this._query[t]=e,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Argument should be a number.")}};function g(t,e,r,n){var o;switch(t){case"asset":o=n+e.urls.assets;break;case"taxonomy":o=n+e.urls.taxonomies;break;default:o=n+e.urls.content_types+r+e.urls.entries}return o}var b=e.default=function(t){var e;function r(){var t,e,n;return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,r),(e=l(e=r),t=function(t,e){if(e&&("object"==f(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,u()?Reflect.construct(e,[],l(this).constructor):e.apply(this,n)))._query=t._query||{},t._query.query=t._query.query||{},t.lessThan=h("$lt"),t.lessThanOrEqualTo=h("$lte"),t.greaterThan=h("$gt"),t.greaterThanOrEqualTo=h("$gte"),t.notEqualTo=h("$ne"),t.containedIn=d(!0),t.notContainedIn=d(!1),t.exists=y(!0),t.notExists=y(!1),t.ascending=_("asc"),t.descending=_("desc"),t.beforeUid=_("before_uid"),t.afterUid=_("after_uid"),t.skip=m("skip"),t.limit=m("limit"),t.or=v("$or"),t.and=v("$and"),t}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(r,t),e=[{key:"equalTo",value:function(t,e){if(t&&"string"==typeof t)return this._query.query[t]=e,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Kindly provide valid parameters.")}},{key:"where",value:function(t,e){if(t&&"string"==typeof t)return this._query.query[t]=e,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Kindly provide valid parameters.")}},{key:"count",value:function(){var t=this.config.protocol+"://"+this.config.host+":"+this.config.port+"/"+this.config.version,e=g(this.type,this.config,this.content_type_uid,t);return this._query.count=!0,this.requestParams={method:"POST",headers:o.mergeDeep({},this.headers),url:e,body:{_method:"GET",query:this._query}},this}},{key:"query",value:function(t){if("object"===f(t))return this._query.query=o.mergeDeep(this._query.query,t),this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Kindly provide valid parameters")}},{key:"referenceIn",value:function(t,e){var n={};return e instanceof r&&e._query.query?n.$in_query=e._query.query:"object"===f(e)&&(n.$in_query=e),this._query.query[t]?this._query.query[t]=this._query.query[t].concat(n):this._query.query[t]=n,this}},{key:"referenceNotIn",value:function(t,e){var n={};return e instanceof r&&e._query.query?n.$nin_query=e._query.query:"object"===f(e)&&(n.$nin_query=e),this._query.query[t]?this._query.query[t]=this._query.query[t].concat(n):this._query.query[t]=n,this}},{key:"tags",value:function(t){if(Array.isArray(t))return this._query.tags=t,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Kindly provide valid parameters")}},{key:"includeReferenceContentTypeUID",value:function(){return this._query.include_reference_content_type_uid=!0,this}},{key:"includeCount",value:function(){return this._query.include_count=!0,this}},{key:"addParam",value:function(t,e){if(t&&e&&"string"==typeof t&&"string"==typeof e)return this._query[t]=e,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Kindly provide valid parameters.")}},{key:"getQuery",value:function(){return this._query.query||{}}},{key:"regex",value:function(t,e,r){if(t&&e&&"string"==typeof t&&"string"==typeof e)return this._query.query[t]={$regex:e},r&&(this._query.query[t].$options=r),this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Kindly provide valid parameters.")}},{key:"search",value:function(t){if(t&&"string"==typeof t)return this._query.typeahead=t,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Kindly provide valid parameters.")}},{key:"find",value:function(t){var e=this.config.host+":"+this.config.port;this.type&&"asset"!==this.type&&this.live_preview&&!0===this.live_preview.enable&&this.live_preview.live_preview&&"init"!==this.live_preview.live_preview&&(e=this.live_preview.host);var r=this.config.protocol+"://"+e+"/"+this.config.version,n=g(this.t
1ype,this.config,this.content_type_uid,r);this.requestParams={method:"POST",headers:o.mergeDeep({},this.headers),url:n,body:{_method:"GET",query:this._query}};var i=o.mergeDeep(this.fetchOptions,t);return o.sendRequest(o.mergeDeep({},this),i)}},{key:"variants",value:function(t){return Array.isArray(t)&&t.length>0?this.headers["x-cs-variant-uid"]=t.join(","):this.headers["x-cs-variant-uid"]=t,this}},{key:"findOne",value:function(){var t=this.config.protocol+"://"+this.config.host+":"+this.config.port+"/"+this.config.version;this.type&&"asset"!==this.type&&this.live_preview&&!0===this.live_preview.enable&&this.live_preview.live_preview&&"init"!==this.live_preview.live_preview&&(t=this.config.protocol+"://"+this.live_preview.host+"/"+this.config.version);var e=g(this.type,this.config,this.content_type_uid,t);this.singleEntry=!0,this._query.limit=1,this.requestParams={method:"POST",headers:o.mergeDeep({},this.headers),url:e,body:{_method:"GET",query:this._query}};var r=o.mergeDeep({},this.fetchOptions);return o.sendRequest(o.mergeDeep({},this),r).catch(function(t){return t.status?Promise.reject(s(s({},t),{},{http_code:t.status,http_message:t.statusText||"An error occurred"})):Promise.reject(t)})}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,c(n.key),n)}}(r.prototype,e),Object.defineProperty(r,"prototype",{writable:!1}),r}(i.default)},209(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,o,i=function(t){if("function"==typeof WeakMap){var e=new WeakMap;new WeakMap}if(t&&t.__esModule)return t;var r,n,o={__proto__:null,default:t};if(null===t||"object"!=a(t)&&"function"!=typeof t)return o;if(r=e){if(r.has(t))return r.get(t);r.set(t,o)}for(var i in t)"default"!==i&&({}).hasOwnProperty.call(t,i)&&((n=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,i))&&(n.get||n.set)?r(o,i,n):o[i]=t[i]);return o}(r(925));function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n=function t(e){return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),e&&(this.object=function(){return e}),this},o=[{key:"toJSON",value:function(){return this.object()?i.mergeDeep(JSON.parse(JSON.stringify({})),this.object()):null}},{key:"get",value:function(t){if(this.object()&&t)return t.split(".").reduce(function(t,e){return t[e]},this.object())}},{key:"getDownloadUrl",value:function(t){if(this.object()){var e=this.object().url?this.object().url:null;return e?e+"?disposition="+(t&&"string"==typeof t?t:"attachment"):null}}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,function(t){var e=function(t){if("object"!=a(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=a(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}(n.key),n)}}(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),e.default=n},275(t,e,r){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=(o=r(318))&&o.__esModule?o:{default:o};function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(a=function(){return!!t})()}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var u=function(t){return function(e,r,n){if(e&&r&&"string"==typeof e&&void 0!==r)return this._query.query[e]=this._query.query.file_size||{},this._query.query[e][t]=r,n&&"number"==typeof n&&(this._query.query[e].levels=n),this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error","Kindly provide valid parameters.")}};e.default=function(t){function e(){var t,r,o;return function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e),(r=s(r=e),t=function(t,e){if(e&&("object"==n(e)||"function"==typeof e))return e;if(void 0!==e)throw TypeError("Derived constructors may only return object or undefined");if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,a()?Reflect.construct(r,[],s(this).constructor):r.apply(this,o))).above=u("$above"),t.equalAndAbove=u("$eq_above"),t.below=u("$below"),t.equalAndBelow=u("$eq_below"),t}return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&c(t,e)}(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(i.default)}
1,348(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,o,i=d(r(241)),a=function(t){if("function"==typeof WeakMap){var e=new WeakMap;new WeakMap}if(t&&t.__esModule)return t;var r,n,o={__proto__:null,default:t};if(null===t||"object"!=y(t)&&"function"!=typeof t)return o;if(r=e){if(r.has(t))return r.get(t);r.set(t,o)}for(var i in t)"default"!==i&&({}).hasOwnProperty.call(t,i)&&((n=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,i))&&(n.get||n.set)?r(o,i,n):o[i]=t[i]);return o}(r(925)),s=d(r(42)),c=d(r(537)),u=d(r(318)),l=d(r(275)),p=d(r(185)),f=d(r(285)),h=d(r(174));function d(t){return t&&t.__esModule?t:{default:t}}function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var v=[408,429];n=function t(){var e=this;!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,t),this.fetchOptions={retryLimit:5,retryCondition:function(t){return!!v.includes(t.status)},debug:!1,logHandler:function(t,e){"error"===t&&e?console.error("Error: ".concat(e)):"warning"===t&&e?console.warn("Warning: ".concat(e)):"info"===t&&e&&console.info("Info: ".concat(e))}},this.config=JSON.parse(JSON.stringify(i.default)),this.plugins=[];for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];switch(n[0].live_preview&&!0===n[0].live_preview.enable&&null!==n[0].live_preview.management_token&&n[0].live_preview.management_token&&(this.config.live_preview.host="api.contentstack.io"),n[0].region&&void 0!==n[0].region&&"us"!==n[0].region&&(this.config.host=n[0].region+"-cdn.contentstack.com",n[0].live_preview&&!0===n[0].live_preview.enable&&(n[0].live_preview.management_token?this.config.live_preview.host=n[0].region+"-api.contentstack.com":this.config.live_preview.host=n[0].region+"-rest-preview.contentstack.com")),n[0].fetchOptions&&void 0!==n[0].fetchOptions&&(this.fetchOptions=a.mergeDeep(this.fetchOptions,n[0].fetchOptions)),n[0].plugins&&void 0!==n[0].plugins&&n[0].plugins.forEach(function(t){e.plugins.push(t)}),this.cachePolicy=f.default.policies.IGNORE_CACHE,this.provider=f.default.providers("localstorage"),n.length){case 1:if("object"===y(n[0])&&"string"==typeof n[0].api_key&&"string"==typeof n[0].delivery_token&&"string"==typeof n[0].environment)return this.headers={api_key:n[0].api_key,access_token:n[0].delivery_token},"object"===y(n[0].live_preview)&&(this.live_preview=a.mergeDeep(this.config.live_preview,n[0].live_preview),this.setLivePreviewTimelinePreviewForClient()),"string"==typeof n[0].branch&&void 0!==n[0].branch&&(this.headers.branch=n[0].branch),"object"===y(n[0].early_access)&&Array.isArray(n[0].early_access)&&n[0].early_access.length>0&&(this.headers["x-header-ea"]=n[0].early_access.join(",")),this.environment=n[0].environment,this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error",h.default.STACK_INVALID_PARAMS_OBJECT);case 3:if(this.fetchOptions.debug&&this.fetchOptions.logHandler("warning",h.default.STACK_OBSOLETE_FUNCTION),"string"==typeof n[0]&&"string"==typeof n[1]&&"string"==typeof n[2])return this.headers={api_key:n[0],access_token:n[1]},this.environment=n[2],this;this.fetchOptions.debug&&this.fetchOptions.logHandler("error",h.default.STACK_INVALID_PARAMS_STRING);case 4:return this.fetchOptions.debug&&this.fetchOptions.logHandler("warning",h.default.STACK_OBSOLETE_FUNCTION),"string"==typeof n[0]&&"string"==typeof n[1]&&"string"==typeof n[2]?(this.headers={api_key:n[0],access_token:n[1]},this.environment=n[2]):this.fetchOptions.debug&&this.fetchOptions.logHandler("error",h.default.STACK_INVALID_PARAMS_STRING),n[3]&&("string"==typeof n[3]&&void 0!==n[3]&&"us"!==n[3]?this.config.host=n[3]+"-cdn.contentstack.com":"object"===y(n[3])&&(this.fetchOptions=a.mergeDeep(this.fetchOptions,n[3]))),this;case 5:return this.fetchOptions.debug&&this.fetchOptions.logHandler("warning",h.default.STACK_OBSOLETE_FUNCTION),"string"==typeof n[0]&&"string"==typeof n[1]&&"string"==typeof n[2]?(this.headers={api_key:n[0],access_token:n[1]},this.environment=n[2]):this.fetchOptions.debug&&this.fetchOptions.logHandler("error",h.default.STACK_INVALID_PARAMS_STRING),n[3]&&("string"==typeof n[3]&&void 0!==n[3]&&"us"!==n[3]?this.config.host=n[3]+"-cdn.contentstack.com":"object"===y(n[3])&&(this.fetchOptions=a.mergeDeep(this.fetchOptions,n[3]))),n[4]&&"object"===y(n[4])&&(this.fetchOptions=a.mergeDeep(this.fetchOptions,n[4])),this;default:this.fetchOptions.debug&&this.fetchOptions.logHandler("error",h.default.STACK_INVALID_PARAMS_GENERIC)}},o=[{key:"setPort",value:function(t){return"number"==typeof t&&(this.config.port=t),this}},{key:"setProtocol",value:function(t){return"string"==typeof t&&~["https","http"].indexOf(t)&&(this.config.protocol=t),this}},{key:"setHost",value:function(t){return"string"==typeof t&&t&&(this.config.host=t),this}},{key:"setCachePolicy",value:function(t){return"number"==typeof t&&t>=-1&&t<4?this._query?this.queryCachePolicy=t:this.cachePolicy=t:this.fetchOptions.debug&&this.fetchOptions.logHandler("error",h.default.CACHE_POLICY_INVALID),this}},{key:"setLivePreviewTimelinePreviewForClient",value:function(){if(a.isBrowser()){var t=new URL(document.location.toString()).searchParams;t.has("live_preview")&&(this.live_preview.live_preview=t.get("live_preview")),t.has("release_id")?this.headers.release_id=t.get("release_id"):delete this.headers.release_id,t.has("preview_timestamp")?this.headers.preview_timestamp=t.get("preview_timestamp"):delete this.headers.preview_timestamp}}},{key:"livePreviewQuery",value:function(t){this.live_preview&&(this.live_preview.live_preview=t.live_preview||"init",this.live_preview.content_type_uid=t.content_type_uid,this.live_preview.entry_uid=t.entry_uid),t.hasOwnProperty("release_id")?this.headers.release_id=t.release_id:delete this.headers.release_id,t.hasOwnProperty("preview_timestamp")?this.headers.preview_timestamp=t.preview_timestamp:delete this.headers.preview_timestamp}},{key:"setCacheProvider",value:function(t){return t&&"object"===y(t)&&(this.provider=t),this}},{key:"clearByQuery",value:function(){if(this.provider&&"function"==typeof this.provider.clearByQuery)return this.provider.clearByQuery.apply(this.provider,arguments)}},{key:"clearByContentType",value:function(){if(this.provider&&"function"==typeof this.provider.clearByContentType)return this.provider.clearByContentType.apply(this.provider,arguments)}},{key:"clearAll",value:function(){if(this.provider&&"function"==typeof this.provider.clearAll)return this.provider.clearAll.apply(this.provider,arguments)}},{key:"getCacheProvider",value:function(){return this.provider}},{key:"ContentType",value:function(t){return t&&"string"==typeof t&&(this.content_type_uid=t,this.type="contentType"),this}},{key:"Taxonomies",value:function(){return this.type="taxonomy",a.merge
1(new l.default,this)}},{key:"Entry",value:function(t){var e=new s.default;return t&&"string"==typeof t&&(e.entry_uid=t),a.merge(e,this)}},{key:"fetch",value:function(t){this.requestParams={method:"POST",headers:a.mergeDeep({},this.headers),plugins:this.plugins,url:this.config.protocol+"://"+this.config.host+":"+this.config.port+"/"+this.config.version+this.config.urls.content_types+this.content_type_uid,body:{_method:"GET",environment:this.environment}};var e=a.mergeDeep(this.fetchOptions,t);return(0,p.default)(this,e)}},{key:"Assets",value:function(t){if(this.type="asset",t&&"string"==typeof t){var e=new c.default;return e.asset_uid=t,a.merge(e,this)}return this}},{key:"Query",value:function(){var t="contentType"===this.type?new l.default:new u.default;return a.merge(t,this)}},{key:"getLastActivities",value:function(){return this.requestParams={method:"POST",headers:a.mergeDeep({},this.headers),url:this.config.protocol+"://"+this.config.host+":"+this.config.port+"/"+this.config.version+this.config.urls.content_types,body:{_method:"GET",only_last_activity:!0,environment:this.environment}},(0,p.default)(this,this.fetchOptions)}},{key:"getContentTypes",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.requestParams={method:"POST",headers:a.mergeDeep({},this.headers),url:this.config.protocol+"://"+this.config.host+":"+this.config.port+"/"+this.config.version+this.config.urls.content_types,body:{_method:"GET",environment:this.environment}},t)for(var e in t)this.requestParams.body[e]=t[e];return(0,p.default)(this,this.fetchOptions)}},{key:"sync",value:function(t,e){if(t&&"object"!==y(t))throw Error("Invalid parameters: params must be an object.");if(this._query={},t)for(var r in t){var n=t[r];if(t.hasOwnProperty(r)){if(!("string"==typeof n||"number"==typeof n||"boolean"==typeof n||n instanceof RegExp||"object"===y(n)&&null!==n))throw Error('Invalid parameter value for key "'.concat(r,'": must be a string, number, object, boolean, or RegExp.'));this._query[r]=t[r]}}this.requestParams={method:"POST",headers:a.mergeDeep({},this.headers),url:this.config.protocol+"://"+this.config.host+":"+this.config.port+"/"+this.config.version+this.config.urls.sync,body:{_method:"GET",query:this._query}};var o=a.mergeDeep(this.fetchOptions,e);return a.sendRequest(a.mergeDeep({},this),o)}},{key:"imageTransform",value:function(t,e){if(t&&"string"==typeof t&&"object"===y(e)&&void 0===e.length){var r=[];for(var n in e){var o=encodeURIComponent(n),i=encodeURIComponent(e[n]);r.push(o+"="+i)}t+=-1>=t.indexOf("?")?"?"+r.join("&"):"&"+r.join("&")}return t}}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,function(t){var e=function(t){if("object"!=y(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=y(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==y(e)?e:e+""}(n.key),n)}}(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),e.default=n},54(t,e,r){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,((n=r(154))&&n.__esModule?n:{default:n}).default.polyfill(),e.default=fetch},514(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(){try{return window.localStorage}catch(t){return null}}()}},e={};return function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n](i,i.exports,r),i.exports}(949)})()}}]);
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.