Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tryghost/content-api

Package Overview
Dependencies
Maintainers
15
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tryghost/content-api - npm Package Compare versions

Comparing version 1.5.5 to 1.5.6

8

package.json
{
"name": "@tryghost/content-api",
"version": "1.5.5",
"version": "1.5.6",
"repository": "https://github.com/TryGhost/SDK/tree/master/packages/content-api",

@@ -33,5 +33,5 @@ "author": "Ghost Foundation",

"devDependencies": {
"@babel/core": "7.14.0",
"@babel/core": "7.14.2",
"@babel/polyfill": "7.12.1",
"@babel/preset-env": "7.14.1",
"@babel/preset-env": "7.14.2",
"core-js": "3.12.1",

@@ -52,3 +52,3 @@ "eslint-plugin-ghost": "1.5.0",

},
"gitHead": "8fb46408bde1a7431beb2ed0db9ed5d01708656e"
"gitHead": "a3434803bb85fc7237272feb244332bc63acda11"
}

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).GhostContentAPI=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u={f:c&&!a.call({1:2},1)?function(t){var e=c(this,t);return!!e&&e.enumerable}:a},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},f={}.toString,l=function(t){return f.call(t).slice(8,-1)},p="".split,d=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==l(t)?p.call(t,""):Object(t)}:Object,h=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return d(h(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!g(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!g(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},y=function(t){return Object(h(t))},b={}.hasOwnProperty,w=function(t,e){return b.call(y(t),e)},j=r.document,S=g(j)&&g(j.createElement),E=function(t){return S?j.createElement(t):{}},O=!i&&!o((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,x={f:i?T:function(t,e){if(t=v(t),e=m(e,!0),O)try{return T(t,e)}catch(t){}if(w(t,e))return s(!u.f.call(t,e),t[e])}},C=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},A=Object.defineProperty,P={f:i?A:function(t,e,n){if(C(t),e=m(e,!0),C(n),O)try{return A(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},L=i?function(t,e,n){return P.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},R=function(t,e){try{L(r,t,e)}catch(n){r[t]=e}return e},k="__core-js_shared__",N=r[k]||R(k,{}),M=Function.toString;"function"!=typeof N.inspectSource&&(N.inspectSource=function(t){return M.call(t)});var U,q,B,I=N.inspectSource,_=r.WeakMap,D="function"==typeof _&&/native code/.test(I(_)),F=e((function(t){(t.exports=function(t,e){return N[t]||(N[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.12.0",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),z=0,W=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++z+W).toString(36)},V=F("keys"),G=function(t){return V[t]||(V[t]=H(t))},X={},J="Object already initialized",K=r.WeakMap;if(D){var $=N.state||(N.state=new K),Y=$.get,Q=$.has,Z=$.set;U=function(t,e){if(Q.call($,t))throw new TypeError(J);return e.facade=t,Z.call($,t,e),e},q=function(t){return Y.call($,t)||{}},B=function(t){return Q.call($,t)}}else{var tt=G("state");X[tt]=!0,U=function(t,e){if(w(t,tt))throw new TypeError(J);return e.facade=t,L(t,tt,e),e},q=function(t){return w(t,tt)?t[tt]:{}},B=function(t){return w(t,tt)}}var et={set:U,get:q,has:B,enforce:function(t){return B(t)?q(t):U(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=q(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},nt=e((function(t){var e=et.get,n=et.enforce,o=String(String).split("String");(t.exports=function(t,e,i,a){var c,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||L(i,"name",e),(c=n(i)).source||(c.source=o.join("string"==typeof e?e:""))),t!==r?(u?!f&&t[e]&&(s=!0):delete t[e],s?t[e]=i:L(t,e,i)):s?t[e]=i:R(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||I(this)}))})),rt=r,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t])||ot(r[t]):rt[t]&&rt[t][e]||r[t]&&r[t][e]},at=Math.ceil,ct=Math.floor,ut=function(t){return isNaN(t=+t)?0:(t>0?ct:at)(t)},st=Math.min,ft=function(t){return t>0?st(ut(t),9007199254740991):0},lt=Math.max,pt=Math.min,dt=function(t){return function(e,n,r){var o,i=v(e),a=ft(i.length),c=function(t,e){var n=ut(t);return n<0?lt(n+e,0):pt(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},ht={includes:dt(!0),indexOf:dt(!1)},vt=ht.indexOf,gt=function(t,e){var n,r=v(t),o=0,i=[];for(n in r)!w(X,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~vt(i,n)||i.push(n));return i},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yt=mt.concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function(t){return gt(t,yt)}},wt={f:Object.getOwnPropertySymbols},jt=it("Reflect","ownKeys")||function(t){var e=bt.f(C(t)),n=wt.f;return n?e.concat(n(t)):e},St=function(t,e){for(var n=jt(e),r=P.f,o=x.f,i=0;i<n.length;i++){var a=n[i];w(t,a)||r(t,a,o(e,a))}},Et=/#|\.prototype\./,Ot=function(t,e){var n=xt[Tt(t)];return n==At||n!=Ct&&("function"==typeof e?o(e):!!e)},Tt=Ot.normalize=function(t){return String(t).replace(Et,".").toLowerCase()},xt=Ot.data={},Ct=Ot.NATIVE="N",At=Ot.POLYFILL="P",Pt=Ot,Lt=x.f,Rt=function(t,e){var n,o,i,a,c,u=t.target,s=t.global,f=t.stat;if(n=s?r:f?r[u]||R(u,{}):(r[u]||{}).prototype)for(o in e){if(a=e[o],i=t.noTargetGet?(c=Lt(n,o))&&c.value:n[o],!Pt(s?o:u+(f?".":"#")+o,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;St(a,i)}(t.sham||i&&i.sham)&&L(a,"sham",!0),nt(n,o,a,t)}},kt=function(t,e){var n=[][t];return!!n&&o((function(){n.call(null,e||function(){throw 1},1)}))},Nt=[].join,Mt=d!=Object,Ut=kt("join",",");Rt({target:"Array",proto:!0,forced:Mt||!Ut},{join:function(t){return Nt.call(v(this),void 0===t?",":t)}});var qt,Bt,It=it("navigator","userAgent")||"",_t=r.process,Dt=_t&&_t.versions,Ft=Dt&&Dt.v8;Ft?Bt=(qt=Ft.split("."))[0]<4?1:qt[0]+qt[1]:It&&(!(qt=It.match(/Edge\/(\d+)/))||qt[1]>=74)&&(qt=It.match(/Chrome\/(\d+)/))&&(Bt=qt[1]);var zt,Wt=Bt&&+Bt,Ht=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())||!Symbol.sham&&Wt&&Wt<41})),Vt=Ht&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Gt=F("wks"),Xt=r.Symbol,Jt=Vt?Xt:Xt&&Xt.withoutSetter||H,Kt=function(t){return w(Gt,t)&&(Ht||"string"==typeof Gt[t])||(Ht&&w(Xt,t)?Gt[t]=Xt[t]:Gt[t]=Jt("Symbol."+t)),Gt[t]},$t=Object.keys||function(t){return gt(t,mt)},Yt=i?Object.defineProperties:function(t,e){C(t);for(var n,r=$t(e),o=r.length,i=0;o>i;)P.f(t,n=r[i++],e[n]);return t},Qt=it("document","documentElement"),Zt=G("IE_PROTO"),te=function(){},ee=function(t){return"<script>"+t+"</"+"script>"},ne=function(){try{zt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ne=zt?function(t){t.write(ee("")),t.close();var e=t.parentWindow.Object;return t=null,e}(zt):((e=E("iframe")).style.display="none",Qt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ee("document.F=Object")),t.close(),t.F);for(var n=mt.length;n--;)delete ne.prototype[mt[n]];return ne()};X[Zt]=!0;var re=Object.create||function(t,e){var n;return null!==t?(te.prototype=C(t),n=new te,te.prototype=null,n[Zt]=t):n=ne(),void 0===e?n:Yt(n,e)},oe=Kt("unscopables"),ie=Array.prototype;null==ie[oe]&&P.f(ie,oe,{configurable:!0,value:re(null)});var ae,ce=ht.includes;Rt({target:"Array",proto:!0},{includes:function(t){return ce(this,t,arguments.length>1?arguments[1]:void 0)}}),ae="includes",ie[oe][ae]=!0;var ue,se=Kt("match"),fe=function(t){if(function(t){var e;return g(t)&&(void 0!==(e=t[se])?!!e:"RegExp"==l(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},le=Kt("match"),pe=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[le]=!1,"/./"[t](e)}catch(t){}}return!1},de=x.f,he="".endsWith,ve=Math.min,ge=pe("endsWith");Rt({target:"String",proto:!0,forced:!!(ge||(ue=de(String.prototype,"endsWith"),!ue||ue.writable))&&!ge},{endsWith:function(t){var e=String(h(this));fe(t);var n=arguments.length>1?arguments[1]:void 0,r=ft(e.length),o=void 0===n?r:ve(ft(n),r),i=String(t);return he?he.call(e,i,o):e.slice(o-i.length,o)===i}});var me=x.f,ye="".startsWith,be=Math.min,we=pe("startsWith");Rt({target:"String",proto:!0,forced:!(!we&&!!function(){var t=me(String.prototype,"startsWith");return t&&!t.writable}())&&!we},{startsWith:function(t){var e=String(h(this));fe(t);var n=ft(be(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return ye?ye.call(e,r,n):e.slice(n,n+r.length)===r}});var je={};je[Kt("toStringTag")]="z";var Se="[object z]"===String(je),Ee=Kt("toStringTag"),Oe="Arguments"==l(function(){return arguments}()),Te=Se?l:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Ee))?n:Oe?l(e):"Object"==(r=l(e))&&"function"==typeof e.callee?"Arguments":r},xe=Se?{}.toString:function(){return"[object "+Te(this)+"]"};Se||nt(Object.prototype,"toString",xe,{unsafe:!0});var Ce=r.Promise,Ae=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return C(n),function(t){if(!g(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),Pe=P.f,Le=Kt("toStringTag"),Re=Kt("species"),ke=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Ne={},Me=Kt("iterator"),Ue=Array.prototype,qe=function(t,e,n){if(ke(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Be=Kt("iterator"),Ie=function(t){var e=t.return;if(void 0!==e)return C(e.call(t)).value},_e=function(t,e){this.stopped=t,this.result=e},De=function(t,e,n){var r,o,i,a,c,u,s,f,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=qe(e,l,1+p+h),g=function(t){return r&&Ie(r),new _e(!0,t)},m=function(t){return p?(C(t),h?v(t[0],t[1],g):v(t[0],t[1])):h?v(t,g):v(t)};if(d)r=t;else{if("function"!=typeof(o=function(t){if(null!=t)return t[Be]||t["@@iterator"]||Ne[Te(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(f=o)&&(Ne.Array===f||Ue[Me]===f)){for(i=0,a=ft(t.length);a>i;i++)if((c=m(t[i]))&&c instanceof _e)return c;return new _e(!1)}r=o.call(t)}for(u=r.next;!(s=u.call(r)).done;){try{c=m(s.value)}catch(t){throw Ie(r),t}if("object"==typeof c&&c&&c instanceof _e)return c}return new _e(!1)},Fe=Kt("iterator"),ze=!1;try{var We=0,He={next:function(){return{done:!!We++}},return:function(){ze=!0}};He[Fe]=function(){return this},Array.from(He,(function(){throw 2}))}catch(t){}var Ve,Ge,Xe,Je=Kt("species"),Ke=/(?:iphone|ipod|ipad).*applewebkit/i.test(It),$e="process"==l(r.process),Ye=r.location,Qe=r.setImmediate,Ze=r.clearImmediate,tn=r.process,en=r.MessageChannel,nn=r.Dispatch,rn=0,on={},an="onreadystatechange",cn=function(t){if(on.hasOwnProperty(t)){var e=on[t];delete on[t],e()}},un=function(t){return function(){cn(t)}},sn=function(t){cn(t.data)},fn=function(t){r.postMessage(t+"",Ye.protocol+"//"+Ye.host)};Qe&&Ze||(Qe=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return on[++rn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Ve(rn),rn},Ze=function(t){delete on[t]},$e?Ve=function(t){tn.nextTick(un(t))}:nn&&nn.now?Ve=function(t){nn.now(un(t))}:en&&!Ke?(Xe=(Ge=new en).port2,Ge.port1.onmessage=sn,Ve=qe(Xe.postMessage,Xe,1)):r.addEventListener&&"function"==typeof postMessage&&!r.importScripts&&Ye&&"file:"!==Ye.protocol&&!o(fn)?(Ve=fn,r.addEventListener("message",sn,!1)):Ve=an in E("script")?function(t){Qt.appendChild(E("script")).onreadystatechange=function(){Qt.removeChild(this),cn(t)}}:function(t){setTimeout(un(t),0)});var ln,pn,dn,hn,vn,gn,mn,yn,bn={set:Qe,clear:Ze},wn=/web0s(?!.*chrome)/i.test(It),jn=x.f,Sn=bn.set,En=r.MutationObserver||r.WebKitMutationObserver,On=r.document,Tn=r.process,xn=r.Promise,Cn=jn(r,"queueMicrotask"),An=Cn&&Cn.value;An||(ln=function(){var t,e;for($e&&(t=Tn.domain)&&t.exit();pn;){e=pn.fn,pn=pn.next;try{e()}catch(t){throw pn?hn():dn=void 0,t}}dn=void 0,t&&t.enter()},Ke||$e||wn||!En||!On?xn&&xn.resolve?((mn=xn.resolve(void 0)).constructor=xn,yn=mn.then,hn=function(){yn.call(mn,ln)}):hn=$e?function(){Tn.nextTick(ln)}:function(){Sn.call(r,ln)}:(vn=!0,gn=On.createTextNode(""),new En(ln).observe(gn,{characterData:!0}),hn=function(){gn.data=vn=!vn}));var Pn,Ln,Rn,kn,Nn,Mn,Un,qn=An||function(t){var e={fn:t,next:void 0};dn&&(dn.next=e),pn||(pn=e,hn()),dn=e},Bn=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=ke(e),this.reject=ke(n)},In={f:function(t){return new Bn(t)}},_n=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Dn="object"==typeof window,Fn=bn.set,zn=Kt("species"),Wn="Promise",Hn=et.get,Vn=et.set,Gn=et.getterFor(Wn),Xn=Ce&&Ce.prototype,Jn=Ce,Kn=Xn,$n=r.TypeError,Yn=r.document,Qn=r.process,Zn=In.f,tr=Zn,er=!!(Yn&&Yn.createEvent&&r.dispatchEvent),nr="function"==typeof PromiseRejectionEvent,rr="unhandledrejection",or=!1,ir=Pt(Wn,(function(){var t=I(Jn)!==String(Jn);if(!t&&66===Wt)return!0;if(Wt>=51&&/native code/.test(Jn))return!1;var e=new Jn((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(e.constructor={})[zn]=n,!(or=e.then((function(){}))instanceof n)||!t&&Dn&&!nr})),ar=ir||!function(t,e){if(!e&&!ze)return!1;var n=!1;try{var r={};r[Fe]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Jn.all(t).catch((function(){}))})),cr=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},ur=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;qn((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var a,c,u,s=n[i++],f=o?s.ok:s.fail,l=s.resolve,p=s.reject,d=s.domain;try{f?(o||(2===t.rejection&&pr(t),t.rejection=1),!0===f?a=r:(d&&d.enter(),a=f(r),d&&(d.exit(),u=!0)),a===s.promise?p($n("Promise-chain cycle")):(c=cr(a))?c.call(a,l,p):l(a)):p(r)}catch(t){d&&!u&&d.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&fr(t)}))}},sr=function(t,e,n){var o,i;er?((o=Yn.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),r.dispatchEvent(o)):o={promise:e,reason:n},!nr&&(i=r["on"+t])?i(o):t===rr&&function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},fr=function(t){Fn.call(r,(function(){var e,n=t.facade,r=t.value;if(lr(t)&&(e=_n((function(){$e?Qn.emit("unhandledRejection",r,n):sr(rr,n,r)})),t.rejection=$e||lr(t)?2:1,e.error))throw e.value}))},lr=function(t){return 1!==t.rejection&&!t.parent},pr=function(t){Fn.call(r,(function(){var e=t.facade;$e?Qn.emit("rejectionHandled",e):sr("rejectionhandled",e,t.value)}))},dr=function(t,e,n){return function(r){t(e,r,n)}},hr=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ur(t,!0))},vr=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw $n("Promise can't be resolved itself");var r=cr(e);r?qn((function(){var n={done:!1};try{r.call(e,dr(vr,n,t),dr(hr,n,t))}catch(e){hr(n,e,t)}})):(t.value=e,t.state=1,ur(t,!1))}catch(e){hr({done:!1},e,t)}}};if(ir&&(Kn=(Jn=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,Jn,Wn),ke(t),Pn.call(this);var e=Hn(this);try{t(dr(vr,e),dr(hr,e))}catch(t){hr(e,t)}}).prototype,(Pn=function(t){Vn(this,{type:Wn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)nt(t,r,e[r],n);return t}(Kn,{then:function(t,e){var n,r,o,i=Gn(this),a=Zn((n=Jn,void 0===(o=C(this).constructor)||null==(r=C(o)[Je])?n:ke(r)));return a.ok="function"!=typeof t||t,a.fail="function"==typeof e&&e,a.domain=$e?Qn.domain:void 0,i.parent=!0,i.reactions.push(a),0!=i.state&&ur(i,!1),a.promise},catch:function(t){return this.then(void 0,t)}}),Ln=function(){var t=new Pn,e=Hn(t);this.promise=t,this.resolve=dr(vr,e),this.reject=dr(hr,e)},In.f=Zn=function(t){return t===Jn||t===Rn?new Ln(t):tr(t)},"function"==typeof Ce&&Xn!==Object.prototype)){kn=Xn.then,or||(nt(Xn,"then",(function(t,e){var n=this;return new Jn((function(t,e){kn.call(n,t,e)})).then(t,e)}),{unsafe:!0}),nt(Xn,"catch",Kn.catch,{unsafe:!0}));try{delete Xn.constructor}catch(t){}Ae&&Ae(Xn,Kn)}Rt({global:!0,wrap:!0,forced:ir},{Promise:Jn}),Mn=Wn,Un=!1,(Nn=Jn)&&!w(Nn=Un?Nn:Nn.prototype,Le)&&Pe(Nn,Le,{configurable:!0,value:Mn}),function(t){var e=it(t),n=P.f;i&&e&&!e[Re]&&n(e,Re,{configurable:!0,get:function(){return this}})}(Wn),Rn=it(Wn),Rt({target:Wn,stat:!0,forced:ir},{reject:function(t){var e=Zn(this);return e.reject.call(void 0,t),e.promise}}),Rt({target:Wn,stat:!0,forced:ir},{resolve:function(t){return function(t,e){if(C(t),g(e)&&e.constructor===t)return e;var n=In.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),Rt({target:Wn,stat:!0,forced:ar},{all:function(t){var e=this,n=Zn(e),r=n.resolve,o=n.reject,i=_n((function(){var n=ke(e.resolve),i=[],a=0,c=1;De(t,(function(t){var u=a++,s=!1;i.push(void 0),c++,n.call(e,t).then((function(t){s||(s=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Zn(e),r=n.reject,o=_n((function(){var o=ke(e.resolve);De(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var gr=Object.assign,mr=Object.defineProperty,yr=!gr||o((function(){if(i&&1!==gr({b:1},gr(mr({},"a",{enumerable:!0,get:function(){mr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=gr({},t)[n]||$t(gr({},e)).join("")!=r}))?function(t,e){for(var n=y(t),r=arguments.length,o=1,a=wt.f,c=u.f;r>o;)for(var s,f=d(arguments[o++]),l=a?$t(f).concat(a(f)):$t(f),p=l.length,h=0;p>h;)s=l[h++],i&&!c.call(f,s)||(n[s]=f[s]);return n}:gr;Rt({target:"Object",stat:!0,forced:Object.assign!==yr},{assign:yr});var br,wr=Array.isArray||function(t){return"Array"==l(t)},jr=function(t,e,n){var r=m(e);r in t?P.f(t,r,s(0,n)):t[r]=n},Sr=Kt("species"),Er=function(t,e){var n;return wr(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!wr(n.prototype)?g(n)&&null===(n=n[Sr])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Or=Kt("species"),Tr=Kt("isConcatSpreadable"),xr=9007199254740991,Cr="Maximum allowed index exceeded",Ar=Wt>=51||!o((function(){var t=[];return t[Tr]=!1,t.concat()[0]!==t})),Pr=(br="concat",Wt>=51||!o((function(){var t=[];return(t.constructor={})[Or]=function(){return{foo:1}},1!==t[br](Boolean).foo}))),Lr=function(t){if(!g(t))return!1;var e=t[Tr];return void 0!==e?!!e:wr(t)};Rt({target:"Array",proto:!0,forced:!Ar||!Pr},{concat:function(t){var e,n,r,o,i,a=y(this),c=Er(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Lr(i=-1===e?a:arguments[e])){if(u+(o=ft(i.length))>xr)throw TypeError(Cr);for(n=0;n<o;n++,u++)n in i&&jr(c,u,i[n])}else{if(u>=xr)throw TypeError(Cr);jr(c,u++,i)}return c.length=u,c}}),Rt({target:"Object",stat:!0,forced:o((function(){$t(1)}))},{keys:function(t){return $t(y(t))}});var Rr=P.f,kr=Function.prototype,Nr=kr.toString,Mr=/^\s*function ([^ (]*)/,Ur="name";i&&!(Ur in kr)&&Rr(kr,Ur,{configurable:!0,get:function(){try{return Nr.call(this).match(Mr)[1]}catch(t){return""}}});var qr=[].push,Br=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(u,s,f,l){for(var p,h,v=y(u),g=d(v),m=qe(s,f,3),b=ft(g.length),w=0,j=l||Er,S=e?j(u,b):n||a?j(u,0):void 0;b>w;w++)if((c||w in g)&&(h=m(p=g[w],w,v),t))if(e)S[w]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return w;case 2:qr.call(S,p)}else switch(t){case 4:return!1;case 7:qr.call(S,p)}return i?-1:r||o?o:S}},Ir={forEach:Br(0),map:Br(1),filter:Br(2),some:Br(3),every:Br(4),find:Br(5),findIndex:Br(6),filterOut:Br(7)}.forEach,_r=kt("forEach")?[].forEach:function(t){return Ir(this,t,arguments.length>1?arguments[1]:void 0)};for(var Dr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Fr=r[Dr],zr=Fr&&Fr.prototype;if(zr&&zr.forEach!==_r)try{L(zr,"forEach",_r)}catch(t){zr.forEach=_r}}var Wr=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},Hr=Object.prototype.toString;function Vr(t){return"[object Array]"===Hr.call(t)}function Gr(t){return void 0===t}function Xr(t){return null!==t&&"object"==typeof t}function Jr(t){if("[object Object]"!==Hr.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function Kr(t){return"[object Function]"===Hr.call(t)}function $r(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),Vr(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var Yr={isArray:Vr,isArrayBuffer:function(t){return"[object ArrayBuffer]"===Hr.call(t)},isBuffer:function(t){return null!==t&&!Gr(t)&&null!==t.constructor&&!Gr(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:Xr,isPlainObject:Jr,isUndefined:Gr,isDate:function(t){return"[object Date]"===Hr.call(t)},isFile:function(t){return"[object File]"===Hr.call(t)},isBlob:function(t){return"[object Blob]"===Hr.call(t)},isFunction:Kr,isStream:function(t){return Xr(t)&&Kr(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:$r,merge:function t(){var e={};function n(n,r){Jr(e[r])&&Jr(n)?e[r]=t(e[r],n):Jr(n)?e[r]=t({},n):Vr(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)$r(arguments[r],n);return e},extend:function(t,e,n){return $r(e,(function(e,r){t[r]=n&&"function"==typeof e?Wr(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}};function Qr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Zr=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(Yr.isURLSearchParams(e))r=e.toString();else{var o=[];Yr.forEach(e,(function(t,e){null!=t&&(Yr.isArray(t)?e+="[]":t=[t],Yr.forEach(t,(function(t){Yr.isDate(t)?t=t.toISOString():Yr.isObject(t)&&(t=JSON.stringify(t)),o.push(Qr(e)+"="+Qr(t))})))})),r=o.join("&")}if(r){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t};function to(){this.handlers=[]}to.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},to.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},to.prototype.forEach=function(t){Yr.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var eo=to,no=function(t,e,n){return Yr.forEach(n,(function(n){t=n(t,e)})),t},ro=function(t){return!(!t||!t.__CANCEL__)},oo=function(t,e){Yr.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))},io=function(t,e,n,r,o){return function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}(new Error(t),e,n,r,o)},ao=Yr.isStandardBrowserEnv()?{write:function(t,e,n,r,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),Yr.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Yr.isString(r)&&a.push("path="+r),Yr.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},co=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],uo=Yr.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=Yr.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0},so=function(t){return new Promise((function(e,n){var r=t.data,o=t.headers;Yr.isFormData(r)&&delete o["Content-Type"];var i=new XMLHttpRequest;if(t.auth){var a=t.auth.username||"",c=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(a+":"+c)}var u,s,f=(u=t.baseURL,s=t.url,u&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(s)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(u,s):s);if(i.open(t.method.toUpperCase(),Zr(f,t.params,t.paramsSerializer),!0),i.timeout=t.timeout,i.onreadystatechange=function(){if(i&&4===i.readyState&&(0!==i.status||i.responseURL&&0===i.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in i?function(t){var e,n,r,o={};return t?(Yr.forEach(t.split("\n"),(function(t){if(r=t.indexOf(":"),e=Yr.trim(t.substr(0,r)).toLowerCase(),n=Yr.trim(t.substr(r+1)),e){if(o[e]&&co.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([n]):o[e]?o[e]+", "+n:n}})),o):o}(i.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:r,config:t,request:i};!function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(io("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}(e,n,o),i=null}},i.onabort=function(){i&&(n(io("Request aborted",t,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(io("Network Error",t,null,i)),i=null},i.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(io(e,t,"ECONNABORTED",i)),i=null},Yr.isStandardBrowserEnv()){var l=(t.withCredentials||uo(f))&&t.xsrfCookieName?ao.read(t.xsrfCookieName):void 0;l&&(o[t.xsrfHeaderName]=l)}if("setRequestHeader"in i&&Yr.forEach(o,(function(t,e){void 0===r&&"content-type"===e.toLowerCase()?delete o[e]:i.setRequestHeader(e,t)})),Yr.isUndefined(t.withCredentials)||(i.withCredentials=!!t.withCredentials),t.responseType)try{i.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&i.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){i&&(i.abort(),n(t),i=null)})),r||(r=null),i.send(r)}))},fo={"Content-Type":"application/x-www-form-urlencoded"};function lo(t,e){!Yr.isUndefined(t)&&Yr.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var po,ho={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(po=so),po),transformRequest:[function(t,e){return oo(e,"Accept"),oo(e,"Content-Type"),Yr.isFormData(t)||Yr.isArrayBuffer(t)||Yr.isBuffer(t)||Yr.isStream(t)||Yr.isFile(t)||Yr.isBlob(t)?t:Yr.isArrayBufferView(t)?t.buffer:Yr.isURLSearchParams(t)?(lo(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Yr.isObject(t)?(lo(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};ho.headers={common:{Accept:"application/json, text/plain, */*"}},Yr.forEach(["delete","get","head"],(function(t){ho.headers[t]={}})),Yr.forEach(["post","put","patch"],(function(t){ho.headers[t]=Yr.merge(fo)}));var vo=ho;function go(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var mo=function(t){return go(t),t.headers=t.headers||{},t.data=no(t.data,t.headers,t.transformRequest),t.headers=Yr.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Yr.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||vo.adapter)(t).then((function(e){return go(t),e.data=no(e.data,e.headers,t.transformResponse),e}),(function(e){return ro(e)||(go(t),e&&e.response&&(e.response.data=no(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},yo=function(t,e){e=e||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(t,e){return Yr.isPlainObject(t)&&Yr.isPlainObject(e)?Yr.merge(t,e):Yr.isPlainObject(e)?Yr.merge({},e):Yr.isArray(e)?e.slice():e}function u(r){Yr.isUndefined(e[r])?Yr.isUndefined(t[r])||(n[r]=c(void 0,t[r])):n[r]=c(t[r],e[r])}Yr.forEach(r,(function(t){Yr.isUndefined(e[t])||(n[t]=c(void 0,e[t]))})),Yr.forEach(o,u),Yr.forEach(i,(function(r){Yr.isUndefined(e[r])?Yr.isUndefined(t[r])||(n[r]=c(void 0,t[r])):n[r]=c(void 0,e[r])})),Yr.forEach(a,(function(r){r in e?n[r]=c(t[r],e[r]):r in t&&(n[r]=c(void 0,t[r]))}));var s=r.concat(o).concat(i).concat(a),f=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===s.indexOf(t)}));return Yr.forEach(f,u),n};function bo(t){this.defaults=t,this.interceptors={request:new eo,response:new eo}}bo.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=yo(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[mo,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},bo.prototype.getUri=function(t){return t=yo(this.defaults,t),Zr(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},Yr.forEach(["delete","get","head","options"],(function(t){bo.prototype[t]=function(e,n){return this.request(yo(n||{},{method:t,url:e,data:(n||{}).data}))}})),Yr.forEach(["post","put","patch"],(function(t){bo.prototype[t]=function(e,n,r){return this.request(yo(r||{},{method:t,url:e,data:n}))}}));var wo=bo;function jo(t){this.message=t}jo.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},jo.prototype.__CANCEL__=!0;var So=jo;function Eo(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new So(t),e(n.reason))}))}Eo.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Eo.source=function(){var t;return{token:new Eo((function(e){t=e})),cancel:t}};var Oo=Eo;function To(t){var e=new wo(t),n=Wr(wo.prototype.request,e);return Yr.extend(n,wo.prototype,e),Yr.extend(n,e),n}var xo=To(vo);xo.Axios=wo,xo.create=function(t){return To(yo(xo.defaults,t))},xo.Cancel=So,xo.CancelToken=Oo,xo.isCancel=ro,xo.all=function(t){return Promise.all(t)},xo.spread=function(t){return function(e){return t.apply(null,e)}},xo.isAxiosError=function(t){return"object"==typeof t&&!0===t.isAxiosError};var Co=xo,Ao=xo;Co.default=Ao;var Po=Co,Lo=["v2","v3","v4","canary"],Ro="@tryghost/content-api";return function t(e){var n=e.url,r=e.host,o=e.ghostPath,i=void 0===o?"ghost":o,a=e.version,c=e.key;if(r&&(console.warn("".concat(Ro,": The 'host' parameter is deprecated, please use 'url' instead")),n||(n=r)),this instanceof t)return t({url:n,version:a,key:c});if(!a)throw new Error("".concat(Ro," Config Missing: 'version' is required. E.g. ").concat(Lo.join(",")));if(!Lo.includes(a))throw new Error("".concat(Ro," Config Invalid: 'version' ").concat(a," is not supported"));if(!n)throw new Error("".concat(Ro," Config Missing: 'url' is required. E.g. 'https://site.com'"));if(!/https?:\/\//.test(n))throw new Error("".concat(Ro," Config Invalid: 'url' ").concat(n," requires a protocol. E.g. 'https://site.com'"));if(n.endsWith("/"))throw new Error("".concat(Ro," Config Invalid: 'url' ").concat(n," must not have a trailing slash. E.g. 'https://site.com'"));if(i.endsWith("/")||i.startsWith("/"))throw new Error("".concat(Ro," Config Invalid: 'ghostPath' ").concat(i," must not have a leading or trailing slash. E.g. 'ghost'"));if(c&&!/[0-9a-f]{26}/.test(c))throw new Error("".concat(Ro," Config Invalid: 'key' ").concat(c," must have 26 hex characters"));var u=["posts","authors","tags","pages","settings"].reduce((function(t,e){return Object.assign(t,function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,{read:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!t||!t.id&&!t.slug)return Promise.reject(new Error("".concat(Ro," read requires an id or slug.")));var o=Object.assign({},t,n);return s(e,o,t.id||"slug/".concat(t.slug),r)},browse:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return s(e,t,null,n)}}))}),{});return delete u.settings.read,u;function s(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(!o&&!c)return Promise.reject(new Error("".concat(Ro," Config Missing: 'key' is required.")));delete e.id;var u=o?{Authorization:"GhostMembers ".concat(o)}:void 0;return Po.get("".concat(n,"/").concat(i,"/api/").concat(a,"/content/").concat(t,"/").concat(r?r+"/":""),{params:Object.assign({key:c},e),paramsSerializer:function(t){return Object.keys(t).reduce((function(e,n){var r=encodeURIComponent([].concat(t[n]).join(","));return e.concat("".concat(n,"=").concat(r))}),[]).join("&")},headers:u}).then((function(e){return Array.isArray(e.data[t])?1!==e.data[t].length||e.data.meta?Object.assign(e.data[t],{meta:e.data.meta}):e.data[t][0]:e.data[t]})).catch((function(t){if(t.response&&t.response.data&&t.response.data.errors){var e=t.response.data.errors[0],n=new Error(e.message),r=Object.keys(e);throw n.name=e.type,r.forEach((function(t){n[t]=e[t]})),n.response=t.response,n.request=t.request,n.config=t.config,n}throw t}))}}}));
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).GhostContentAPI=e()}(this,(function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var n=function(t){return t&&t.Math==Math&&t},r=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")(),o=function(t){try{return!!t()}catch(t){return!0}},i=!o((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,u={f:c&&!a.call({1:2},1)?function(t){var e=c(this,t);return!!e&&e.enumerable}:a},s=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},f={}.toString,l=function(t){return f.call(t).slice(8,-1)},p="".split,d=o((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==l(t)?p.call(t,""):Object(t)}:Object,h=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},v=function(t){return d(h(t))},g=function(t){return"object"==typeof t?null!==t:"function"==typeof t},m=function(t,e){if(!g(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!g(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!g(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},y=function(t){return Object(h(t))},b={}.hasOwnProperty,w=function(t,e){return b.call(y(t),e)},j=r.document,S=g(j)&&g(j.createElement),E=function(t){return S?j.createElement(t):{}},O=!i&&!o((function(){return 7!=Object.defineProperty(E("div"),"a",{get:function(){return 7}}).a})),T=Object.getOwnPropertyDescriptor,x={f:i?T:function(t,e){if(t=v(t),e=m(e,!0),O)try{return T(t,e)}catch(t){}if(w(t,e))return s(!u.f.call(t,e),t[e])}},C=function(t){if(!g(t))throw TypeError(String(t)+" is not an object");return t},A=Object.defineProperty,P={f:i?A:function(t,e,n){if(C(t),e=m(e,!0),C(n),O)try{return A(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},L=i?function(t,e,n){return P.f(t,e,s(1,n))}:function(t,e,n){return t[e]=n,t},R=function(t,e){try{L(r,t,e)}catch(n){r[t]=e}return e},k="__core-js_shared__",N=r[k]||R(k,{}),M=Function.toString;"function"!=typeof N.inspectSource&&(N.inspectSource=function(t){return M.call(t)});var U,q,B,I=N.inspectSource,_=r.WeakMap,D="function"==typeof _&&/native code/.test(I(_)),F=e((function(t){(t.exports=function(t,e){return N[t]||(N[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),z=0,W=Math.random(),H=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++z+W).toString(36)},V=F("keys"),G=function(t){return V[t]||(V[t]=H(t))},X={},J="Object already initialized",K=r.WeakMap;if(D||N.state){var $=N.state||(N.state=new K),Y=$.get,Q=$.has,Z=$.set;U=function(t,e){if(Q.call($,t))throw new TypeError(J);return e.facade=t,Z.call($,t,e),e},q=function(t){return Y.call($,t)||{}},B=function(t){return Q.call($,t)}}else{var tt=G("state");X[tt]=!0,U=function(t,e){if(w(t,tt))throw new TypeError(J);return e.facade=t,L(t,tt,e),e},q=function(t){return w(t,tt)?t[tt]:{}},B=function(t){return w(t,tt)}}var et={set:U,get:q,has:B,enforce:function(t){return B(t)?q(t):U(t,{})},getterFor:function(t){return function(e){var n;if(!g(e)||(n=q(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},nt=e((function(t){var e=et.get,n=et.enforce,o=String(String).split("String");(t.exports=function(t,e,i,a){var c,u=!!a&&!!a.unsafe,s=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||w(i,"name")||L(i,"name",e),(c=n(i)).source||(c.source=o.join("string"==typeof e?e:""))),t!==r?(u?!f&&t[e]&&(s=!0):delete t[e],s?t[e]=i:L(t,e,i)):s?t[e]=i:R(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||I(this)}))})),rt=r,ot=function(t){return"function"==typeof t?t:void 0},it=function(t,e){return arguments.length<2?ot(rt[t])||ot(r[t]):rt[t]&&rt[t][e]||r[t]&&r[t][e]},at=Math.ceil,ct=Math.floor,ut=function(t){return isNaN(t=+t)?0:(t>0?ct:at)(t)},st=Math.min,ft=function(t){return t>0?st(ut(t),9007199254740991):0},lt=Math.max,pt=Math.min,dt=function(t){return function(e,n,r){var o,i=v(e),a=ft(i.length),c=function(t,e){var n=ut(t);return n<0?lt(n+e,0):pt(n,e)}(r,a);if(t&&n!=n){for(;a>c;)if((o=i[c++])!=o)return!0}else for(;a>c;c++)if((t||c in i)&&i[c]===n)return t||c||0;return!t&&-1}},ht={includes:dt(!0),indexOf:dt(!1)},vt=ht.indexOf,gt=function(t,e){var n,r=v(t),o=0,i=[];for(n in r)!w(X,n)&&w(r,n)&&i.push(n);for(;e.length>o;)w(r,n=e[o++])&&(~vt(i,n)||i.push(n));return i},mt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yt=mt.concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function(t){return gt(t,yt)}},wt={f:Object.getOwnPropertySymbols},jt=it("Reflect","ownKeys")||function(t){var e=bt.f(C(t)),n=wt.f;return n?e.concat(n(t)):e},St=function(t,e){for(var n=jt(e),r=P.f,o=x.f,i=0;i<n.length;i++){var a=n[i];w(t,a)||r(t,a,o(e,a))}},Et=/#|\.prototype\./,Ot=function(t,e){var n=xt[Tt(t)];return n==At||n!=Ct&&("function"==typeof e?o(e):!!e)},Tt=Ot.normalize=function(t){return String(t).replace(Et,".").toLowerCase()},xt=Ot.data={},Ct=Ot.NATIVE="N",At=Ot.POLYFILL="P",Pt=Ot,Lt=x.f,Rt=function(t,e){var n,o,i,a,c,u=t.target,s=t.global,f=t.stat;if(n=s?r:f?r[u]||R(u,{}):(r[u]||{}).prototype)for(o in e){if(a=e[o],i=t.noTargetGet?(c=Lt(n,o))&&c.value:n[o],!Pt(s?o:u+(f?".":"#")+o,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;St(a,i)}(t.sham||i&&i.sham)&&L(a,"sham",!0),nt(n,o,a,t)}},kt=function(t,e){var n=[][t];return!!n&&o((function(){n.call(null,e||function(){throw 1},1)}))},Nt=[].join,Mt=d!=Object,Ut=kt("join",",");Rt({target:"Array",proto:!0,forced:Mt||!Ut},{join:function(t){return Nt.call(v(this),void 0===t?",":t)}});var qt,Bt,It=it("navigator","userAgent")||"",_t=r.process,Dt=_t&&_t.versions,Ft=Dt&&Dt.v8;Ft?Bt=(qt=Ft.split("."))[0]<4?1:qt[0]+qt[1]:It&&(!(qt=It.match(/Edge\/(\d+)/))||qt[1]>=74)&&(qt=It.match(/Chrome\/(\d+)/))&&(Bt=qt[1]);var zt,Wt=Bt&&+Bt,Ht=!!Object.getOwnPropertySymbols&&!o((function(){return!String(Symbol())||!Symbol.sham&&Wt&&Wt<41})),Vt=Ht&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Gt=F("wks"),Xt=r.Symbol,Jt=Vt?Xt:Xt&&Xt.withoutSetter||H,Kt=function(t){return w(Gt,t)&&(Ht||"string"==typeof Gt[t])||(Ht&&w(Xt,t)?Gt[t]=Xt[t]:Gt[t]=Jt("Symbol."+t)),Gt[t]},$t=Object.keys||function(t){return gt(t,mt)},Yt=i?Object.defineProperties:function(t,e){C(t);for(var n,r=$t(e),o=r.length,i=0;o>i;)P.f(t,n=r[i++],e[n]);return t},Qt=it("document","documentElement"),Zt=G("IE_PROTO"),te=function(){},ee=function(t){return"<script>"+t+"</"+"script>"},ne=function(){try{zt=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;ne=zt?function(t){t.write(ee("")),t.close();var e=t.parentWindow.Object;return t=null,e}(zt):((e=E("iframe")).style.display="none",Qt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(ee("document.F=Object")),t.close(),t.F);for(var n=mt.length;n--;)delete ne.prototype[mt[n]];return ne()};X[Zt]=!0;var re=Object.create||function(t,e){var n;return null!==t?(te.prototype=C(t),n=new te,te.prototype=null,n[Zt]=t):n=ne(),void 0===e?n:Yt(n,e)},oe=Kt("unscopables"),ie=Array.prototype;null==ie[oe]&&P.f(ie,oe,{configurable:!0,value:re(null)});var ae,ce=ht.includes;Rt({target:"Array",proto:!0},{includes:function(t){return ce(this,t,arguments.length>1?arguments[1]:void 0)}}),ae="includes",ie[oe][ae]=!0;var ue,se=Kt("match"),fe=function(t){if(function(t){var e;return g(t)&&(void 0!==(e=t[se])?!!e:"RegExp"==l(t))}(t))throw TypeError("The method doesn't accept regular expressions");return t},le=Kt("match"),pe=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[le]=!1,"/./"[t](e)}catch(t){}}return!1},de=x.f,he="".endsWith,ve=Math.min,ge=pe("endsWith");Rt({target:"String",proto:!0,forced:!!(ge||(ue=de(String.prototype,"endsWith"),!ue||ue.writable))&&!ge},{endsWith:function(t){var e=String(h(this));fe(t);var n=arguments.length>1?arguments[1]:void 0,r=ft(e.length),o=void 0===n?r:ve(ft(n),r),i=String(t);return he?he.call(e,i,o):e.slice(o-i.length,o)===i}});var me=x.f,ye="".startsWith,be=Math.min,we=pe("startsWith");Rt({target:"String",proto:!0,forced:!(!we&&!!function(){var t=me(String.prototype,"startsWith");return t&&!t.writable}())&&!we},{startsWith:function(t){var e=String(h(this));fe(t);var n=ft(be(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return ye?ye.call(e,r,n):e.slice(n,n+r.length)===r}});var je={};je[Kt("toStringTag")]="z";var Se="[object z]"===String(je),Ee=Kt("toStringTag"),Oe="Arguments"==l(function(){return arguments}()),Te=Se?l:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),Ee))?n:Oe?l(e):"Object"==(r=l(e))&&"function"==typeof e.callee?"Arguments":r},xe=Se?{}.toString:function(){return"[object "+Te(this)+"]"};Se||nt(Object.prototype,"toString",xe,{unsafe:!0});var Ce=r.Promise,Ae=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return C(n),function(t){if(!g(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),Pe=P.f,Le=Kt("toStringTag"),Re=Kt("species"),ke=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t},Ne={},Me=Kt("iterator"),Ue=Array.prototype,qe=function(t,e,n){if(ke(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},Be=Kt("iterator"),Ie=function(t){var e=t.return;if(void 0!==e)return C(e.call(t)).value},_e=function(t,e){this.stopped=t,this.result=e},De=function(t,e,n){var r,o,i,a,c,u,s,f,l=n&&n.that,p=!(!n||!n.AS_ENTRIES),d=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),v=qe(e,l,1+p+h),g=function(t){return r&&Ie(r),new _e(!0,t)},m=function(t){return p?(C(t),h?v(t[0],t[1],g):v(t[0],t[1])):h?v(t,g):v(t)};if(d)r=t;else{if("function"!=typeof(o=function(t){if(null!=t)return t[Be]||t["@@iterator"]||Ne[Te(t)]}(t)))throw TypeError("Target is not iterable");if(void 0!==(f=o)&&(Ne.Array===f||Ue[Me]===f)){for(i=0,a=ft(t.length);a>i;i++)if((c=m(t[i]))&&c instanceof _e)return c;return new _e(!1)}r=o.call(t)}for(u=r.next;!(s=u.call(r)).done;){try{c=m(s.value)}catch(t){throw Ie(r),t}if("object"==typeof c&&c&&c instanceof _e)return c}return new _e(!1)},Fe=Kt("iterator"),ze=!1;try{var We=0,He={next:function(){return{done:!!We++}},return:function(){ze=!0}};He[Fe]=function(){return this},Array.from(He,(function(){throw 2}))}catch(t){}var Ve,Ge,Xe,Je=Kt("species"),Ke=/(?:iphone|ipod|ipad).*applewebkit/i.test(It),$e="process"==l(r.process),Ye=r.location,Qe=r.setImmediate,Ze=r.clearImmediate,tn=r.process,en=r.MessageChannel,nn=r.Dispatch,rn=0,on={},an="onreadystatechange",cn=function(t){if(on.hasOwnProperty(t)){var e=on[t];delete on[t],e()}},un=function(t){return function(){cn(t)}},sn=function(t){cn(t.data)},fn=function(t){r.postMessage(t+"",Ye.protocol+"//"+Ye.host)};Qe&&Ze||(Qe=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return on[++rn]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},Ve(rn),rn},Ze=function(t){delete on[t]},$e?Ve=function(t){tn.nextTick(un(t))}:nn&&nn.now?Ve=function(t){nn.now(un(t))}:en&&!Ke?(Xe=(Ge=new en).port2,Ge.port1.onmessage=sn,Ve=qe(Xe.postMessage,Xe,1)):r.addEventListener&&"function"==typeof postMessage&&!r.importScripts&&Ye&&"file:"!==Ye.protocol&&!o(fn)?(Ve=fn,r.addEventListener("message",sn,!1)):Ve=an in E("script")?function(t){Qt.appendChild(E("script")).onreadystatechange=function(){Qt.removeChild(this),cn(t)}}:function(t){setTimeout(un(t),0)});var ln,pn,dn,hn,vn,gn,mn,yn,bn={set:Qe,clear:Ze},wn=/web0s(?!.*chrome)/i.test(It),jn=x.f,Sn=bn.set,En=r.MutationObserver||r.WebKitMutationObserver,On=r.document,Tn=r.process,xn=r.Promise,Cn=jn(r,"queueMicrotask"),An=Cn&&Cn.value;An||(ln=function(){var t,e;for($e&&(t=Tn.domain)&&t.exit();pn;){e=pn.fn,pn=pn.next;try{e()}catch(t){throw pn?hn():dn=void 0,t}}dn=void 0,t&&t.enter()},Ke||$e||wn||!En||!On?xn&&xn.resolve?((mn=xn.resolve(void 0)).constructor=xn,yn=mn.then,hn=function(){yn.call(mn,ln)}):hn=$e?function(){Tn.nextTick(ln)}:function(){Sn.call(r,ln)}:(vn=!0,gn=On.createTextNode(""),new En(ln).observe(gn,{characterData:!0}),hn=function(){gn.data=vn=!vn}));var Pn,Ln,Rn,kn,Nn,Mn,Un,qn=An||function(t){var e={fn:t,next:void 0};dn&&(dn.next=e),pn||(pn=e,hn()),dn=e},Bn=function(t){var e,n;this.promise=new t((function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r})),this.resolve=ke(e),this.reject=ke(n)},In={f:function(t){return new Bn(t)}},_n=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Dn="object"==typeof window,Fn=bn.set,zn=Kt("species"),Wn="Promise",Hn=et.get,Vn=et.set,Gn=et.getterFor(Wn),Xn=Ce&&Ce.prototype,Jn=Ce,Kn=Xn,$n=r.TypeError,Yn=r.document,Qn=r.process,Zn=In.f,tr=Zn,er=!!(Yn&&Yn.createEvent&&r.dispatchEvent),nr="function"==typeof PromiseRejectionEvent,rr="unhandledrejection",or=!1,ir=Pt(Wn,(function(){var t=I(Jn)!==String(Jn);if(!t&&66===Wt)return!0;if(Wt>=51&&/native code/.test(Jn))return!1;var e=new Jn((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};return(e.constructor={})[zn]=n,!(or=e.then((function(){}))instanceof n)||!t&&Dn&&!nr})),ar=ir||!function(t,e){if(!e&&!ze)return!1;var n=!1;try{var r={};r[Fe]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}((function(t){Jn.all(t).catch((function(){}))})),cr=function(t){var e;return!(!g(t)||"function"!=typeof(e=t.then))&&e},ur=function(t,e){if(!t.notified){t.notified=!0;var n=t.reactions;qn((function(){for(var r=t.value,o=1==t.state,i=0;n.length>i;){var a,c,u,s=n[i++],f=o?s.ok:s.fail,l=s.resolve,p=s.reject,d=s.domain;try{f?(o||(2===t.rejection&&pr(t),t.rejection=1),!0===f?a=r:(d&&d.enter(),a=f(r),d&&(d.exit(),u=!0)),a===s.promise?p($n("Promise-chain cycle")):(c=cr(a))?c.call(a,l,p):l(a)):p(r)}catch(t){d&&!u&&d.exit(),p(t)}}t.reactions=[],t.notified=!1,e&&!t.rejection&&fr(t)}))}},sr=function(t,e,n){var o,i;er?((o=Yn.createEvent("Event")).promise=e,o.reason=n,o.initEvent(t,!1,!0),r.dispatchEvent(o)):o={promise:e,reason:n},!nr&&(i=r["on"+t])?i(o):t===rr&&function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}("Unhandled promise rejection",n)},fr=function(t){Fn.call(r,(function(){var e,n=t.facade,r=t.value;if(lr(t)&&(e=_n((function(){$e?Qn.emit("unhandledRejection",r,n):sr(rr,n,r)})),t.rejection=$e||lr(t)?2:1,e.error))throw e.value}))},lr=function(t){return 1!==t.rejection&&!t.parent},pr=function(t){Fn.call(r,(function(){var e=t.facade;$e?Qn.emit("rejectionHandled",e):sr("rejectionhandled",e,t.value)}))},dr=function(t,e,n){return function(r){t(e,r,n)}},hr=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,ur(t,!0))},vr=function(t,e,n){if(!t.done){t.done=!0,n&&(t=n);try{if(t.facade===e)throw $n("Promise can't be resolved itself");var r=cr(e);r?qn((function(){var n={done:!1};try{r.call(e,dr(vr,n,t),dr(hr,n,t))}catch(e){hr(n,e,t)}})):(t.value=e,t.state=1,ur(t,!1))}catch(e){hr({done:!1},e,t)}}};if(ir&&(Kn=(Jn=function(t){!function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation")}(this,Jn,Wn),ke(t),Pn.call(this);var e=Hn(this);try{t(dr(vr,e),dr(hr,e))}catch(t){hr(e,t)}}).prototype,(Pn=function(t){Vn(this,{type:Wn,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=function(t,e,n){for(var r in e)nt(t,r,e[r],n);return t}(Kn,{then:function(t,e){var n,r,o,i=Gn(this),a=Zn((n=Jn,void 0===(o=C(this).constructor)||null==(r=C(o)[Je])?n:ke(r)));return a.ok="function"!=typeof t||t,a.fail="function"==typeof e&&e,a.domain=$e?Qn.domain:void 0,i.parent=!0,i.reactions.push(a),0!=i.state&&ur(i,!1),a.promise},catch:function(t){return this.then(void 0,t)}}),Ln=function(){var t=new Pn,e=Hn(t);this.promise=t,this.resolve=dr(vr,e),this.reject=dr(hr,e)},In.f=Zn=function(t){return t===Jn||t===Rn?new Ln(t):tr(t)},"function"==typeof Ce&&Xn!==Object.prototype)){kn=Xn.then,or||(nt(Xn,"then",(function(t,e){var n=this;return new Jn((function(t,e){kn.call(n,t,e)})).then(t,e)}),{unsafe:!0}),nt(Xn,"catch",Kn.catch,{unsafe:!0}));try{delete Xn.constructor}catch(t){}Ae&&Ae(Xn,Kn)}Rt({global:!0,wrap:!0,forced:ir},{Promise:Jn}),Mn=Wn,Un=!1,(Nn=Jn)&&!w(Nn=Un?Nn:Nn.prototype,Le)&&Pe(Nn,Le,{configurable:!0,value:Mn}),function(t){var e=it(t),n=P.f;i&&e&&!e[Re]&&n(e,Re,{configurable:!0,get:function(){return this}})}(Wn),Rn=it(Wn),Rt({target:Wn,stat:!0,forced:ir},{reject:function(t){var e=Zn(this);return e.reject.call(void 0,t),e.promise}}),Rt({target:Wn,stat:!0,forced:ir},{resolve:function(t){return function(t,e){if(C(t),g(e)&&e.constructor===t)return e;var n=In.f(t);return(0,n.resolve)(e),n.promise}(this,t)}}),Rt({target:Wn,stat:!0,forced:ar},{all:function(t){var e=this,n=Zn(e),r=n.resolve,o=n.reject,i=_n((function(){var n=ke(e.resolve),i=[],a=0,c=1;De(t,(function(t){var u=a++,s=!1;i.push(void 0),c++,n.call(e,t).then((function(t){s||(s=!0,i[u]=t,--c||r(i))}),o)})),--c||r(i)}));return i.error&&o(i.value),n.promise},race:function(t){var e=this,n=Zn(e),r=n.reject,o=_n((function(){var o=ke(e.resolve);De(t,(function(t){o.call(e,t).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}});var gr=Object.assign,mr=Object.defineProperty,yr=!gr||o((function(){if(i&&1!==gr({b:1},gr(mr({},"a",{enumerable:!0,get:function(){mr(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=gr({},t)[n]||$t(gr({},e)).join("")!=r}))?function(t,e){for(var n=y(t),r=arguments.length,o=1,a=wt.f,c=u.f;r>o;)for(var s,f=d(arguments[o++]),l=a?$t(f).concat(a(f)):$t(f),p=l.length,h=0;p>h;)s=l[h++],i&&!c.call(f,s)||(n[s]=f[s]);return n}:gr;Rt({target:"Object",stat:!0,forced:Object.assign!==yr},{assign:yr});var br,wr=Array.isArray||function(t){return"Array"==l(t)},jr=function(t,e,n){var r=m(e);r in t?P.f(t,r,s(0,n)):t[r]=n},Sr=Kt("species"),Er=function(t,e){var n;return wr(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!wr(n.prototype)?g(n)&&null===(n=n[Sr])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},Or=Kt("species"),Tr=Kt("isConcatSpreadable"),xr=9007199254740991,Cr="Maximum allowed index exceeded",Ar=Wt>=51||!o((function(){var t=[];return t[Tr]=!1,t.concat()[0]!==t})),Pr=(br="concat",Wt>=51||!o((function(){var t=[];return(t.constructor={})[Or]=function(){return{foo:1}},1!==t[br](Boolean).foo}))),Lr=function(t){if(!g(t))return!1;var e=t[Tr];return void 0!==e?!!e:wr(t)};Rt({target:"Array",proto:!0,forced:!Ar||!Pr},{concat:function(t){var e,n,r,o,i,a=y(this),c=Er(a,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(Lr(i=-1===e?a:arguments[e])){if(u+(o=ft(i.length))>xr)throw TypeError(Cr);for(n=0;n<o;n++,u++)n in i&&jr(c,u,i[n])}else{if(u>=xr)throw TypeError(Cr);jr(c,u++,i)}return c.length=u,c}}),Rt({target:"Object",stat:!0,forced:o((function(){$t(1)}))},{keys:function(t){return $t(y(t))}});var Rr=P.f,kr=Function.prototype,Nr=kr.toString,Mr=/^\s*function ([^ (]*)/,Ur="name";i&&!(Ur in kr)&&Rr(kr,Ur,{configurable:!0,get:function(){try{return Nr.call(this).match(Mr)[1]}catch(t){return""}}});var qr=[].push,Br=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=7==t,c=5==t||i;return function(u,s,f,l){for(var p,h,v=y(u),g=d(v),m=qe(s,f,3),b=ft(g.length),w=0,j=l||Er,S=e?j(u,b):n||a?j(u,0):void 0;b>w;w++)if((c||w in g)&&(h=m(p=g[w],w,v),t))if(e)S[w]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return w;case 2:qr.call(S,p)}else switch(t){case 4:return!1;case 7:qr.call(S,p)}return i?-1:r||o?o:S}},Ir={forEach:Br(0),map:Br(1),filter:Br(2),some:Br(3),every:Br(4),find:Br(5),findIndex:Br(6),filterOut:Br(7)}.forEach,_r=kt("forEach")?[].forEach:function(t){return Ir(this,t,arguments.length>1?arguments[1]:void 0)};for(var Dr in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Fr=r[Dr],zr=Fr&&Fr.prototype;if(zr&&zr.forEach!==_r)try{L(zr,"forEach",_r)}catch(t){zr.forEach=_r}}var Wr=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return t.apply(e,n)}},Hr=Object.prototype.toString;function Vr(t){return"[object Array]"===Hr.call(t)}function Gr(t){return void 0===t}function Xr(t){return null!==t&&"object"==typeof t}function Jr(t){if("[object Object]"!==Hr.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function Kr(t){return"[object Function]"===Hr.call(t)}function $r(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),Vr(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}var Yr={isArray:Vr,isArrayBuffer:function(t){return"[object ArrayBuffer]"===Hr.call(t)},isBuffer:function(t){return null!==t&&!Gr(t)&&null!==t.constructor&&!Gr(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:Xr,isPlainObject:Jr,isUndefined:Gr,isDate:function(t){return"[object Date]"===Hr.call(t)},isFile:function(t){return"[object File]"===Hr.call(t)},isBlob:function(t){return"[object Blob]"===Hr.call(t)},isFunction:Kr,isStream:function(t){return Xr(t)&&Kr(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:$r,merge:function t(){var e={};function n(n,r){Jr(e[r])&&Jr(n)?e[r]=t(e[r],n):Jr(n)?e[r]=t({},n):Vr(n)?e[r]=n.slice():e[r]=n}for(var r=0,o=arguments.length;r<o;r++)$r(arguments[r],n);return e},extend:function(t,e,n){return $r(e,(function(e,r){t[r]=n&&"function"==typeof e?Wr(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}};function Qr(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Zr=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(Yr.isURLSearchParams(e))r=e.toString();else{var o=[];Yr.forEach(e,(function(t,e){null!=t&&(Yr.isArray(t)?e+="[]":t=[t],Yr.forEach(t,(function(t){Yr.isDate(t)?t=t.toISOString():Yr.isObject(t)&&(t=JSON.stringify(t)),o.push(Qr(e)+"="+Qr(t))})))})),r=o.join("&")}if(r){var i=t.indexOf("#");-1!==i&&(t=t.slice(0,i)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t};function to(){this.handlers=[]}to.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},to.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},to.prototype.forEach=function(t){Yr.forEach(this.handlers,(function(e){null!==e&&t(e)}))};var eo=to,no=function(t,e,n){return Yr.forEach(n,(function(n){t=n(t,e)})),t},ro=function(t){return!(!t||!t.__CANCEL__)},oo=function(t,e){Yr.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))},io=function(t,e,n,r,o){return function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}(new Error(t),e,n,r,o)},ao=Yr.isStandardBrowserEnv()?{write:function(t,e,n,r,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),Yr.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Yr.isString(r)&&a.push("path="+r),Yr.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},co=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],uo=Yr.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=r(window.location.href),function(e){var n=Yr.isString(e)?r(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0},so=function(t){return new Promise((function(e,n){var r=t.data,o=t.headers;Yr.isFormData(r)&&delete o["Content-Type"];var i=new XMLHttpRequest;if(t.auth){var a=t.auth.username||"",c=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";o.Authorization="Basic "+btoa(a+":"+c)}var u,s,f=(u=t.baseURL,s=t.url,u&&!/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(s)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(u,s):s);if(i.open(t.method.toUpperCase(),Zr(f,t.params,t.paramsSerializer),!0),i.timeout=t.timeout,i.onreadystatechange=function(){if(i&&4===i.readyState&&(0!==i.status||i.responseURL&&0===i.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in i?function(t){var e,n,r,o={};return t?(Yr.forEach(t.split("\n"),(function(t){if(r=t.indexOf(":"),e=Yr.trim(t.substr(0,r)).toLowerCase(),n=Yr.trim(t.substr(r+1)),e){if(o[e]&&co.indexOf(e)>=0)return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([n]):o[e]?o[e]+", "+n:n}})),o):o}(i.getAllResponseHeaders()):null,o={data:t.responseType&&"text"!==t.responseType?i.response:i.responseText,status:i.status,statusText:i.statusText,headers:r,config:t,request:i};!function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(io("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}(e,n,o),i=null}},i.onabort=function(){i&&(n(io("Request aborted",t,"ECONNABORTED",i)),i=null)},i.onerror=function(){n(io("Network Error",t,null,i)),i=null},i.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(io(e,t,"ECONNABORTED",i)),i=null},Yr.isStandardBrowserEnv()){var l=(t.withCredentials||uo(f))&&t.xsrfCookieName?ao.read(t.xsrfCookieName):void 0;l&&(o[t.xsrfHeaderName]=l)}if("setRequestHeader"in i&&Yr.forEach(o,(function(t,e){void 0===r&&"content-type"===e.toLowerCase()?delete o[e]:i.setRequestHeader(e,t)})),Yr.isUndefined(t.withCredentials)||(i.withCredentials=!!t.withCredentials),t.responseType)try{i.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&i.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&i.upload&&i.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){i&&(i.abort(),n(t),i=null)})),r||(r=null),i.send(r)}))},fo={"Content-Type":"application/x-www-form-urlencoded"};function lo(t,e){!Yr.isUndefined(t)&&Yr.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var po,ho={adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(po=so),po),transformRequest:[function(t,e){return oo(e,"Accept"),oo(e,"Content-Type"),Yr.isFormData(t)||Yr.isArrayBuffer(t)||Yr.isBuffer(t)||Yr.isStream(t)||Yr.isFile(t)||Yr.isBlob(t)?t:Yr.isArrayBufferView(t)?t.buffer:Yr.isURLSearchParams(t)?(lo(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Yr.isObject(t)?(lo(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};ho.headers={common:{Accept:"application/json, text/plain, */*"}},Yr.forEach(["delete","get","head"],(function(t){ho.headers[t]={}})),Yr.forEach(["post","put","patch"],(function(t){ho.headers[t]=Yr.merge(fo)}));var vo=ho;function go(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var mo=function(t){return go(t),t.headers=t.headers||{},t.data=no(t.data,t.headers,t.transformRequest),t.headers=Yr.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Yr.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||vo.adapter)(t).then((function(e){return go(t),e.data=no(e.data,e.headers,t.transformResponse),e}),(function(e){return ro(e)||(go(t),e&&e.response&&(e.response.data=no(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))},yo=function(t,e){e=e||{};var n={},r=["url","method","data"],o=["headers","auth","proxy","params"],i=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],a=["validateStatus"];function c(t,e){return Yr.isPlainObject(t)&&Yr.isPlainObject(e)?Yr.merge(t,e):Yr.isPlainObject(e)?Yr.merge({},e):Yr.isArray(e)?e.slice():e}function u(r){Yr.isUndefined(e[r])?Yr.isUndefined(t[r])||(n[r]=c(void 0,t[r])):n[r]=c(t[r],e[r])}Yr.forEach(r,(function(t){Yr.isUndefined(e[t])||(n[t]=c(void 0,e[t]))})),Yr.forEach(o,u),Yr.forEach(i,(function(r){Yr.isUndefined(e[r])?Yr.isUndefined(t[r])||(n[r]=c(void 0,t[r])):n[r]=c(void 0,e[r])})),Yr.forEach(a,(function(r){r in e?n[r]=c(t[r],e[r]):r in t&&(n[r]=c(void 0,t[r]))}));var s=r.concat(o).concat(i).concat(a),f=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===s.indexOf(t)}));return Yr.forEach(f,u),n};function bo(t){this.defaults=t,this.interceptors={request:new eo,response:new eo}}bo.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=yo(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[mo,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},bo.prototype.getUri=function(t){return t=yo(this.defaults,t),Zr(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},Yr.forEach(["delete","get","head","options"],(function(t){bo.prototype[t]=function(e,n){return this.request(yo(n||{},{method:t,url:e,data:(n||{}).data}))}})),Yr.forEach(["post","put","patch"],(function(t){bo.prototype[t]=function(e,n,r){return this.request(yo(r||{},{method:t,url:e,data:n}))}}));var wo=bo;function jo(t){this.message=t}jo.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},jo.prototype.__CANCEL__=!0;var So=jo;function Eo(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new So(t),e(n.reason))}))}Eo.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},Eo.source=function(){var t;return{token:new Eo((function(e){t=e})),cancel:t}};var Oo=Eo;function To(t){var e=new wo(t),n=Wr(wo.prototype.request,e);return Yr.extend(n,wo.prototype,e),Yr.extend(n,e),n}var xo=To(vo);xo.Axios=wo,xo.create=function(t){return To(yo(xo.defaults,t))},xo.Cancel=So,xo.CancelToken=Oo,xo.isCancel=ro,xo.all=function(t){return Promise.all(t)},xo.spread=function(t){return function(e){return t.apply(null,e)}},xo.isAxiosError=function(t){return"object"==typeof t&&!0===t.isAxiosError};var Co=xo,Ao=xo;Co.default=Ao;var Po=Co,Lo=["v2","v3","v4","canary"],Ro="@tryghost/content-api";return function t(e){var n=e.url,r=e.host,o=e.ghostPath,i=void 0===o?"ghost":o,a=e.version,c=e.key;if(r&&(console.warn("".concat(Ro,": The 'host' parameter is deprecated, please use 'url' instead")),n||(n=r)),this instanceof t)return t({url:n,version:a,key:c});if(!a)throw new Error("".concat(Ro," Config Missing: 'version' is required. E.g. ").concat(Lo.join(",")));if(!Lo.includes(a))throw new Error("".concat(Ro," Config Invalid: 'version' ").concat(a," is not supported"));if(!n)throw new Error("".concat(Ro," Config Missing: 'url' is required. E.g. 'https://site.com'"));if(!/https?:\/\//.test(n))throw new Error("".concat(Ro," Config Invalid: 'url' ").concat(n," requires a protocol. E.g. 'https://site.com'"));if(n.endsWith("/"))throw new Error("".concat(Ro," Config Invalid: 'url' ").concat(n," must not have a trailing slash. E.g. 'https://site.com'"));if(i.endsWith("/")||i.startsWith("/"))throw new Error("".concat(Ro," Config Invalid: 'ghostPath' ").concat(i," must not have a leading or trailing slash. E.g. 'ghost'"));if(c&&!/[0-9a-f]{26}/.test(c))throw new Error("".concat(Ro," Config Invalid: 'key' ").concat(c," must have 26 hex characters"));var u=["posts","authors","tags","pages","settings"].reduce((function(t,e){return Object.assign(t,function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,{read:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;if(!t||!t.id&&!t.slug)return Promise.reject(new Error("".concat(Ro," read requires an id or slug.")));var o=Object.assign({},t,n);return s(e,o,t.id||"slug/".concat(t.slug),r)},browse:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return s(e,t,null,n)}}))}),{});return delete u.settings.read,u;function s(t,e,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(!o&&!c)return Promise.reject(new Error("".concat(Ro," Config Missing: 'key' is required.")));delete e.id;var u=o?{Authorization:"GhostMembers ".concat(o)}:void 0;return Po.get("".concat(n,"/").concat(i,"/api/").concat(a,"/content/").concat(t,"/").concat(r?r+"/":""),{params:Object.assign({key:c},e),paramsSerializer:function(t){return Object.keys(t).reduce((function(e,n){var r=encodeURIComponent([].concat(t[n]).join(","));return e.concat("".concat(n,"=").concat(r))}),[]).join("&")},headers:u}).then((function(e){return Array.isArray(e.data[t])?1!==e.data[t].length||e.data.meta?Object.assign(e.data[t],{meta:e.data.meta}):e.data[t][0]:e.data[t]})).catch((function(t){if(t.response&&t.response.data&&t.response.data.errors){var e=t.response.data.errors[0],n=new Error(e.message),r=Object.keys(e);throw n.name=e.type,r.forEach((function(t){n[t]=e[t]})),n.response=t.response,n.request=t.request,n.config=t.config,n}throw t}))}}}));
//# sourceMappingURL=content-api.min.js.map

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc