storyblok-js-client
Advanced tools
Comparing version 4.2.1 to 4.3.0
@@ -6,2 +6,2 @@ /*! | ||
*/ | ||
var RichTextResolver=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,r,e){return t(e={path:r,exports:{},require:function(t,r){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==r&&e.path)}},e.exports),e.exports}var n,o,i=r(e((function(t){t.exports=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}))),c=e((function(t){function r(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports})),u=r(c),a=function(t){try{return!!t()}catch(t){return!0}},f=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s=function(t){return t&&t.Math==Math&&t},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof t&&t)||function(){return this}()||Function("return this")(),p=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),g=Function.prototype,h=g.bind,v=g.call,d=p&&h.bind(v,v),y=p?function(t){return t&&d(t)}:function(t){return t&&function(){return v.apply(t,arguments)}},b=function(t){return"function"==typeof t},m=/#|\.prototype\./,O=function(t,r){var e=S[w(t)];return e==j||e!=x&&(b(r)?a(r):!!r)},w=O.normalize=function(t){return String(t).replace(m,".").toLowerCase()},S=O.data={},x=O.NATIVE="N",j=O.POLYFILL="P",E=O,P=function(t){return"object"==typeof t?null!==t:b(t)},T=l.String,k=l.TypeError,A=function(t){if(P(t))return t;throw k(T(t)+" is not an object")},R=l.String,M=l.TypeError,_=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=y(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return A(e),function(t){if("object"==typeof t||b(t))return t;throw M("Can't set "+R(t)+" as a prototype")}(n),r?t(e,n):e.__proto__=n,e}}():void 0),I=l.document,L=P(I)&&P(I.createElement),C=function(t){return L?I.createElement(t):{}},N=!f&&!a((function(){return 7!=Object.defineProperty(C("div"),"a",{get:function(){return 7}}).a})),D=f&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),F=Function.prototype.call,$=p?F.bind(F):function(){return F.apply(F,arguments)},G=function(t){return b(t)?t:void 0},z=function(t,r){return arguments.length<2?G(l[t]):l[t]&&l[t][r]},q=y({}.isPrototypeOf),V=z("navigator","userAgent")||"",U=l.process,B=l.Deno,K=U&&U.versions||B&&B.version,W=K&&K.v8;W&&(o=(n=W.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&V&&(!(n=V.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=V.match(/Chrome\/(\d+)/))&&(o=+n[1]);var Y=o,H=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),J=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=l.Object,Q=J?function(t){return"symbol"==typeof t}:function(t){var r=z("Symbol");return b(r)&&q(r.prototype,X(t))},Z=l.String,tt=l.TypeError,rt=function(t){if(b(t))return t;throw tt(function(t){try{return Z(t)}catch(t){return"Object"}}(t)+" is not a function")},et=function(t,r){var e=t[r];return null==e?void 0:rt(e)},nt=l.TypeError,ot=Object.defineProperty,it=function(t,r){try{ot(l,t,{value:r,configurable:!0,writable:!0})}catch(e){l[t]=r}return r},ct="__core-js_shared__",ut=l[ct]||it(ct,{}),at=e((function(t){(t.exports=function(t,r){return ut[t]||(ut[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.21.0",mode:"global",copyright:"Š 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),ft=l.TypeError,st=function(t){if(null==t)throw ft("Can't call method on "+t);return t},lt=l.Object,pt=function(t){return lt(st(t))},gt=y({}.hasOwnProperty),ht=Object.hasOwn||function(t,r){return gt(pt(t),r)},vt=0,dt=Math.random(),yt=y(1..toString),bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+yt(++vt+dt,36)},mt=at("wks"),Ot=l.Symbol,wt=Ot&&Ot.for,St=J?Ot:Ot&&Ot.withoutSetter||bt,xt=function(t){if(!ht(mt,t)||!H&&"string"!=typeof mt[t]){var r="Symbol."+t;H&&ht(Ot,t)?mt[t]=Ot[t]:mt[t]=J&&wt?wt(r):St(r)}return mt[t]},jt=l.TypeError,Et=xt("toPrimitive"),Pt=function(t,r){if(!P(t)||Q(t))return t;var e,n=et(t,Et);if(n){if(void 0===r&&(r="default"),e=$(n,t,r),!P(e)||Q(e))return e;throw jt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var e,n;if("string"===r&&b(e=t.toString)&&!P(n=$(e,t)))return n;if(b(e=t.valueOf)&&!P(n=$(e,t)))return n;if("string"!==r&&b(e=t.toString)&&!P(n=$(e,t)))return n;throw nt("Can't convert object to primitive value")}(t,r)},Tt=function(t){var r=Pt(t,"string");return Q(r)?r:r+""},kt=l.TypeError,At=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,Mt="enumerable",_t="configurable",It="writable",Lt={f:f?D?function(t,r,e){if(A(t),r=Tt(r),A(e),"function"==typeof t&&"prototype"===r&&"value"in e&&It in e&&!e.writable){var n=Rt(t,r);n&&n.writable&&(t[r]=e.value,e={configurable:_t in e?e.configurable:n.configurable,enumerable:Mt in e?e.enumerable:n.enumerable,writable:!1})}return At(t,r,e)}:At:function(t,r,e){if(A(t),r=Tt(r),A(e),N)try{return At(t,r,e)}catch(t){}if("get"in e||"set"in e)throw kt("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},Ct=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},Nt=f?function(t,r,e){return Lt.f(t,r,Ct(1,e))}:function(t,r,e){return t[r]=e,t},Dt=y({}.toString),Ft=y("".slice),$t=function(t){return Ft(Dt(t),8,-1)},Gt=l.Object,zt=y("".split),qt=a((function(){return!Gt("z").propertyIsEnumerable(0)}))?function(t){return"String"==$t(t)?zt(t,""):Gt(t)}:Gt,Vt=function(t){return qt(st(t))},Ut=Math.ceil,Bt=Math.floor,Kt=function(t){var r=+t;return r!=r||0===r?0:(r>0?Bt:Ut)(r)},Wt=Math.max,Yt=Math.min,Ht=function(t,r){var e=Kt(t);return e<0?Wt(e+r,0):Yt(e,r)},Jt=Math.min,Xt=function(t){return t>0?Jt(Kt(t),9007199254740991):0},Qt=function(t){return Xt(t.length)},Zt=function(t){return function(r,e,n){var o,i=Vt(r),c=Qt(i),u=Ht(n,c);if(t&&e!=e){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===e)return t||u||0;return!t&&-1}},tr={includes:Zt(!0),indexOf:Zt(!1)},rr={},er=tr.indexOf,nr=y([].push),or=function(t,r){var e,n=Vt(t),o=0,i=[];for(e in n)!ht(rr,e)&&ht(n,e)&&nr(i,e);for(;r.length>o;)ht(n,e=r[o++])&&(~er(i,e)||nr(i,e));return i},ir=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cr=ir.concat("length","prototype"),ur={f:Object.getOwnPropertyNames||function(t){return or(t,cr)}},ar=xt("match"),fr={};fr[xt("toStringTag")]="z";var sr="[object z]"===String(fr),lr=xt("toStringTag"),pr=l.Object,gr="Arguments"==$t(function(){return arguments}()),hr=sr?$t:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=pr(t),lr))?e:gr?$t(r):"Object"==(n=$t(r))&&b(r.callee)?"Arguments":n},vr=l.String,dr=function(t){if("Symbol"===hr(t))throw TypeError("Cannot convert a Symbol value to a string");return vr(t)},yr=function(){var t=A(this),r="";return t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.sticky&&(r+="y"),r},br=l.RegExp,mr=a((function(){var t=br("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Or=mr||a((function(){return!br("a","y").sticky})),wr={BROKEN_CARET:mr||a((function(){var t=br("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Or,UNSUPPORTED_Y:mr},Sr=y(Function.toString);b(ut.inspectSource)||(ut.inspectSource=function(t){return Sr(t)});var xr,jr,Er,Pr=ut.inspectSource,Tr=l.WeakMap,kr=b(Tr)&&/native code/.test(Pr(Tr)),Ar=at("keys"),Rr=function(t){return Ar[t]||(Ar[t]=bt(t))},Mr="Object already initialized",_r=l.TypeError,Ir=l.WeakMap;if(kr||ut.state){var Lr=ut.state||(ut.state=new Ir),Cr=y(Lr.get),Nr=y(Lr.has),Dr=y(Lr.set);xr=function(t,r){if(Nr(Lr,t))throw new _r(Mr);return r.facade=t,Dr(Lr,t,r),r},jr=function(t){return Cr(Lr,t)||{}},Er=function(t){return Nr(Lr,t)}}else{var Fr=Rr("state");rr[Fr]=!0,xr=function(t,r){if(ht(t,Fr))throw new _r(Mr);return r.facade=t,Nt(t,Fr,r),r},jr=function(t){return ht(t,Fr)?t[Fr]:{}},Er=function(t){return ht(t,Fr)}}var $r={set:xr,get:jr,has:Er,enforce:function(t){return Er(t)?jr(t):xr(t,{})},getterFor:function(t){return function(r){var e;if(!P(r)||(e=jr(r)).type!==t)throw _r("Incompatible receiver, "+t+" required");return e}}},Gr=Function.prototype,zr=f&&Object.getOwnPropertyDescriptor,qr=ht(Gr,"name"),Vr={EXISTS:qr,PROPER:qr&&"something"===function(){}.name,CONFIGURABLE:qr&&(!f||f&&zr(Gr,"name").configurable)},Ur=e((function(t){var r=Vr.CONFIGURABLE,e=$r.get,n=$r.enforce,o=String(String).split("String");(t.exports=function(t,e,i,c){var u,a=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,s=!!c&&!!c.noTargetGet,p=c&&void 0!==c.name?c.name:e;b(i)&&("Symbol("===String(p).slice(0,7)&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ht(i,"name")||r&&i.name!==p)&&Nt(i,"name",p),(u=n(i)).source||(u.source=o.join("string"==typeof p?p:""))),t!==l?(a?!s&&t[e]&&(f=!0):delete t[e],f?t[e]=i:Nt(t,e,i)):f?t[e]=i:it(e,i)})(Function.prototype,"toString",(function(){return b(this)&&e(this).source||Pr(this)}))})),Br=xt("species"),Kr=l.RegExp,Wr=a((function(){var t=Kr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Yr=l.RegExp,Hr=a((function(){var t=Yr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Jr=Lt.f,Xr=ur.f,Qr=$r.enforce,Zr=xt("match"),te=l.RegExp,re=te.prototype,ee=l.SyntaxError,ne=y(yr),oe=y(re.exec),ie=y("".charAt),ce=y("".replace),ue=y("".indexOf),ae=y("".slice),fe=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,se=/a/g,le=/a/g,pe=new te(se)!==se,ge=wr.MISSED_STICKY,he=wr.UNSUPPORTED_Y,ve=f&&(!pe||ge||Wr||Hr||a((function(){return le[Zr]=!1,te(se)!=se||te(le)==le||"/a/i"!=te(se,"i")})));if(E("RegExp",ve)){for(var de=function(t,r){var e,n,o,i,c,u,a,f,s,l,p,g,h,v=q(re,this),d=P(e=t)&&(void 0!==(n=e[ar])?!!n:"RegExp"==$t(e)),y=void 0===r,m=[],O=t;if(!v&&d&&y&&t.constructor===de)return t;if((d||q(re,t))&&(t=t.source,y&&(r="flags"in O?O.flags:ne(O))),t=void 0===t?"":dr(t),r=void 0===r?"":dr(r),O=t,Wr&&"dotAll"in se&&(i=!!r&&ue(r,"s")>-1)&&(r=ce(r,/s/g,"")),o=r,ge&&"sticky"in se&&(c=!!r&&ue(r,"y")>-1)&&he&&(r=ce(r,/y/g,"")),Hr&&(u=function(t){for(var r,e=t.length,n=0,o="",i=[],c={},u=!1,a=!1,f=0,s="";n<=e;n++){if("\\"===(r=ie(t,n)))r+=ie(t,++n);else if("]"===r)u=!1;else if(!u)switch(!0){case"["===r:u=!0;break;case"("===r:oe(fe,ae(t,n+1))&&(n+=2,a=!0),o+=r,f++;continue;case">"===r&&a:if(""===s||ht(c,s))throw new ee("Invalid capture group name");c[s]=!0,i[i.length]=[s,f],a=!1,s="";continue}a?s+=r:o+=r}return[o,i]}(t),t=u[0],m=u[1]),s=te(t,r),l=v?this:re,p=de,_&&b(g=l.constructor)&&g!==p&&P(h=g.prototype)&&h!==p.prototype&&_(s,h),a=s,(i||c||m.length)&&(f=Qr(a),i&&(f.dotAll=!0,f.raw=de(function(t){for(var r,e=t.length,n=0,o="",i=!1;n<=e;n++)"\\"!==(r=ie(t,n))?i||"."!==r?("["===r?i=!0:"]"===r&&(i=!1),o+=r):o+="[\\s\\S]":o+=r+ie(t,++n);return o}(t),o)),c&&(f.sticky=!0),m.length&&(f.groups=m)),t!==O)try{Nt(a,"source",""===O?"(?:)":O)}catch(t){}return a},ye=function(t){t in de||Jr(de,t,{configurable:!0,get:function(){return te[t]},set:function(r){te[t]=r}})},be=Xr(te),me=0;be.length>me;)ye(be[me++]);re.constructor=de,de.prototype=re,Ur(l,"RegExp",de)}!function(t){var r=z(t),e=Lt.f;f&&r&&!r[Br]&&e(r,Br,{configurable:!0,get:function(){return this}})}("RegExp");var Oe,we={}.propertyIsEnumerable,Se=Object.getOwnPropertyDescriptor,xe={f:Se&&!we.call({1:2},1)?function(t){var r=Se(this,t);return!!r&&r.enumerable}:we},je=Object.getOwnPropertyDescriptor,Ee={f:f?je:function(t,r){if(t=Vt(t),r=Tt(r),N)try{return je(t,r)}catch(t){}if(ht(t,r))return Ct(!$(xe.f,t,r),t[r])}},Pe={f:Object.getOwnPropertySymbols},Te=y([].concat),ke=z("Reflect","ownKeys")||function(t){var r=ur.f(A(t)),e=Pe.f;return e?Te(r,e(t)):r},Ae=function(t,r,e){for(var n=ke(r),o=Lt.f,i=Ee.f,c=0;c<n.length;c++){var u=n[c];ht(t,u)||e&&ht(e,u)||o(t,u,i(r,u))}},Re=Ee.f,Me=function(t,r){var e,n,o,i,c,u=t.target,a=t.global,f=t.stat;if(e=a?l:f?l[u]||it(u,{}):(l[u]||{}).prototype)for(n in r){if(i=r[n],o=t.noTargetGet?(c=Re(e,n))&&c.value:e[n],!E(a?n:u+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ae(i,o)}(t.sham||o&&o.sham)&&Nt(i,"sham",!0),Ur(e,n,i,t)}},_e=Object.keys||function(t){return or(t,ir)},Ie=f&&!D?Object.defineProperties:function(t,r){A(t);for(var e,n=Vt(r),o=_e(r),i=o.length,c=0;i>c;)Lt.f(t,e=o[c++],n[e]);return t},Le={f:Ie},Ce=z("document","documentElement"),Ne=Rr("IE_PROTO"),De=function(){},Fe=function(t){return"<script>"+t+"</"+"script>"},$e=function(t){t.write(Fe("")),t.close();var r=t.parentWindow.Object;return t=null,r},Ge=function(){try{Oe=new ActiveXObject("htmlfile")}catch(t){}var t,r;Ge="undefined"!=typeof document?document.domain&&Oe?$e(Oe):((r=C("iframe")).style.display="none",Ce.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(Fe("document.F=Object")),t.close(),t.F):$e(Oe);for(var e=ir.length;e--;)delete Ge.prototype[ir[e]];return Ge()};rr[Ne]=!0;var ze=Object.create||function(t,r){var e;return null!==t?(De.prototype=A(t),e=new De,De.prototype=null,e[Ne]=t):e=Ge(),void 0===r?e:Le.f(e,r)},qe=$r.get,Ve=at("native-string-replace",String.prototype.replace),Ue=RegExp.prototype.exec,Be=Ue,Ke=y("".charAt),We=y("".indexOf),Ye=y("".replace),He=y("".slice),Je=function(){var t=/a/,r=/b*/g;return $(Ue,t,"a"),$(Ue,r,"a"),0!==t.lastIndex||0!==r.lastIndex}(),Xe=wr.BROKEN_CARET,Qe=void 0!==/()??/.exec("")[1];(Je||Qe||Xe||Wr||Hr)&&(Be=function(t){var r,e,n,o,i,c,u,a=this,f=qe(a),s=dr(t),l=f.raw;if(l)return l.lastIndex=a.lastIndex,r=$(Be,l,s),a.lastIndex=l.lastIndex,r;var p=f.groups,g=Xe&&a.sticky,h=$(yr,a),v=a.source,d=0,y=s;if(g&&(h=Ye(h,"y",""),-1===We(h,"g")&&(h+="g"),y=He(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==Ke(s,a.lastIndex-1))&&(v="(?: "+v+")",y=" "+y,d++),e=new RegExp("^(?:"+v+")",h)),Qe&&(e=new RegExp("^"+v+"$(?!\\s)",h)),Je&&(n=a.lastIndex),o=$(Ue,g?e:a,y),g?o?(o.input=He(o.input,d),o[0]=He(o[0],d),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:Je&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),Qe&&o&&o.length>1&&$(Ve,o[0],e,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=c=ze(null),i=0;i<p.length;i++)c[(u=p[i])[0]]=o[u[1]];return o});var Ze=Be;Me({target:"RegExp",proto:!0,forced:/./.exec!==Ze},{exec:Ze});var tn=Vr.PROPER,rn="toString",en=RegExp.prototype,nn=en.toString,on=y(yr),cn=a((function(){return"/a/b"!=nn.call({source:"a",flags:"b"})})),un=tn&&nn.name!=rn;(cn||un)&&Ur(RegExp.prototype,rn,(function(){var t=A(this),r=dr(t.source),e=t.flags;return"/"+r+"/"+dr(void 0===e&&q(en,t)&&!("flags"in en)?on(t):e)}),{unsafe:!0});var an=Function.prototype,fn=an.apply,sn=an.call,ln="object"==typeof Reflect&&Reflect.apply||(p?sn.bind(fn):function(){return sn.apply(fn,arguments)}),pn=xt("species"),gn=RegExp.prototype,hn=y("".charAt),vn=y("".charCodeAt),dn=y("".slice),yn=function(t){return function(r,e){var n,o,i=dr(st(r)),c=Kt(e),u=i.length;return c<0||c>=u?t?"":void 0:(n=vn(i,c))<55296||n>56319||c+1===u||(o=vn(i,c+1))<56320||o>57343?t?hn(i,c):n:t?dn(i,c,c+2):o-56320+(n-55296<<10)+65536}},bn={codeAt:yn(!1),charAt:yn(!0)}.charAt,mn=function(t,r,e){return r+(e?bn(t,r).length:1)},On=Math.floor,wn=y("".charAt),Sn=y("".replace),xn=y("".slice),jn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,En=/\$([$&'`]|\d{1,2})/g,Pn=function(t,r,e,n,o,i){var c=e+t.length,u=n.length,a=En;return void 0!==o&&(o=pt(o),a=jn),Sn(i,a,(function(i,a){var f;switch(wn(a,0)){case"$":return"$";case"&":return t;case"`":return xn(r,0,e);case"'":return xn(r,c);case"<":f=o[xn(a,1,-1)];break;default:var s=+a;if(0===s)return i;if(s>u){var l=On(s/10);return 0===l?i:l<=u?void 0===n[l-1]?wn(a,1):n[l-1]+wn(a,1):i}f=n[s-1]}return void 0===f?"":f}))},Tn=l.TypeError,kn=function(t,r){var e=t.exec;if(b(e)){var n=$(e,t,r);return null!==n&&A(n),n}if("RegExp"===$t(t))return $(Ze,t,r);throw Tn("RegExp#exec called on incompatible receiver")},An=xt("replace"),Rn=Math.max,Mn=Math.min,_n=y([].concat),In=y([].push),Ln=y("".indexOf),Cn=y("".slice),Nn="$0"==="a".replace(/./,"$0"),Dn=!!/./[An]&&""===/./[An]("a","$0");!function(t,r,e,n){var o=xt(t),i=!a((function(){var r={};return r[o]=function(){return 7},7!=""[t](r)})),c=i&&!a((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[pn]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!c||e){var u=y(/./[o]),f=r(o,""[t],(function(t,r,e,n,o){var c=y(t),a=r.exec;return a===Ze||a===gn.exec?i&&!o?{done:!0,value:u(r,e,n)}:{done:!0,value:c(e,r,n)}:{done:!1}}));Ur(String.prototype,t,f[0]),Ur(gn,o,f[1])}n&&Nt(gn[o],"sham",!0)}("replace",(function(t,r,e){var n=Dn?"$":"$0";return[function(t,e){var n=st(this),o=null==t?void 0:et(t,An);return o?$(o,t,n,e):$(r,dr(n),t,e)},function(t,o){var i=A(this),c=dr(t);if("string"==typeof o&&-1===Ln(o,n)&&-1===Ln(o,"$<")){var u=e(r,i,c,o);if(u.done)return u.value}var a=b(o);a||(o=dr(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var p=kn(i,c);if(null===p)break;if(In(l,p),!f)break;""===dr(p[0])&&(i.lastIndex=mn(c,Xt(i.lastIndex),s))}for(var g,h="",v=0,d=0;d<l.length;d++){for(var y=dr((p=l[d])[0]),m=Rn(Mn(Kt(p.index),c.length),0),O=[],w=1;w<p.length;w++)In(O,void 0===(g=p[w])?g:String(g));var S=p.groups;if(a){var x=_n([y],O,m,c);void 0!==S&&In(x,S);var j=dr(ln(o,void 0,x))}else j=Pn(y,c,m,O,S,o);m>=v&&(h+=Cn(c,v,m)+j,v=m+y.length)}return h+Cn(c,v)}]}),!!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Nn||Dn);var Fn=sr?{}.toString:function(){return"[object "+hr(this)+"]"};sr||Ur(Object.prototype,"toString",Fn,{unsafe:!0});var $n={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},Gn=C("span").classList,zn=Gn&&Gn.constructor&&Gn.constructor.prototype,qn=zn===Object.prototype?void 0:zn,Vn=y(y.bind),Un=Array.isArray||function(t){return"Array"==$t(t)},Bn=function(){},Kn=[],Wn=z("Reflect","construct"),Yn=/^\s*(?:class|function)\b/,Hn=y(Yn.exec),Jn=!Yn.exec(Bn),Xn=function(t){if(!b(t))return!1;try{return Wn(Bn,Kn,t),!0}catch(t){return!1}},Qn=function(t){if(!b(t))return!1;switch(hr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Jn||!!Hn(Yn,Pr(t))}catch(t){return!0}};Qn.sham=!0;var Zn=!Wn||a((function(){var t;return Xn(Xn.call)||!Xn(Object)||!Xn((function(){t=!0}))||t}))?Qn:Xn,to=xt("species"),ro=l.Array,eo=function(t,r){return new(function(t){var r;return Un(t)&&(r=t.constructor,(Zn(r)&&(r===ro||Un(r.prototype))||P(r)&&null===(r=r[to]))&&(r=void 0)),void 0===r?ro:r}(t))(0===r?0:r)},no=y([].push),oo=function(t){var r=1==t,e=2==t,n=3==t,o=4==t,i=6==t,c=7==t,u=5==t||i;return function(a,f,s,l){for(var g,h,v=pt(a),d=qt(v),y=function(t,r){return rt(t),void 0===r?t:p?Vn(t,r):function(){return t.apply(r,arguments)}}(f,s),b=Qt(d),m=0,O=l||eo,w=r?O(a,b):e||c?O(a,0):void 0;b>m;m++)if((u||m in d)&&(h=y(g=d[m],m,v),t))if(r)w[m]=h;else if(h)switch(t){case 3:return!0;case 5:return g;case 6:return m;case 2:no(w,g)}else switch(t){case 4:return!1;case 7:no(w,g)}return i?-1:n||o?o:w}},io={forEach:oo(0),map:oo(1),filter:oo(2),some:oo(3),every:oo(4),find:oo(5),findIndex:oo(6),filterReject:oo(7)},co=function(t,r){var e=[][t];return!!e&&a((function(){e.call(null,r||function(){throw 1},1)}))},uo=io.forEach,ao=co("forEach")?[].forEach:function(t){return uo(this,t,arguments.length>1?arguments[1]:void 0)},fo=function(t){if(t&&t.forEach!==ao)try{Nt(t,"forEach",ao)}catch(r){t.forEach=ao}};for(var so in $n)$n[so]&&fo(l[so]&&l[so].prototype);fo(qn);var lo=y([].reverse),po=[1,2];Me({target:"Array",proto:!0,forced:String(po)===String(po.reverse())},{reverse:function(){return Un(this)&&(this.length=this.length),lo(this)}});var go=function(t,r,e){var n=Tt(r);n in t?Lt.f(t,n,Ct(0,e)):t[n]=e},ho=xt("species"),vo=function(t){return Y>=51||!a((function(){var r=[];return(r.constructor={})[ho]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},yo=y([].slice),bo=vo("slice"),mo=xt("species"),Oo=l.Array,wo=Math.max;Me({target:"Array",proto:!0,forced:!bo},{slice:function(t,r){var e,n,o,i=Vt(this),c=Qt(i),u=Ht(t,c),a=Ht(void 0===r?c:r,c);if(Un(i)&&(e=i.constructor,(Zn(e)&&(e===Oo||Un(e.prototype))||P(e)&&null===(e=e[mo]))&&(e=void 0),e===Oo||void 0===e))return yo(i,u,a);for(n=new(void 0===e?Oo:e)(wo(a-u,0)),o=0;u<a;u++,o++)u in i&&go(n,o,i[u]);return n.length=o,n}});var So=y([].join),xo=qt!=Object,jo=co("join",",");Me({target:"Array",proto:!0,forced:xo||!jo},{join:function(t){return So(Vt(this),void 0===t?",":t)}});var Eo=xt("isConcatSpreadable"),Po=9007199254740991,To="Maximum allowed index exceeded",ko=l.TypeError,Ao=Y>=51||!a((function(){var t=[];return t[Eo]=!1,t.concat()[0]!==t})),Ro=vo("concat"),Mo=function(t){if(!P(t))return!1;var r=t[Eo];return void 0!==r?!!r:Un(t)};Me({target:"Array",proto:!0,forced:!Ao||!Ro},{concat:function(t){var r,e,n,o,i,c=pt(this),u=eo(c,0),a=0;for(r=-1,n=arguments.length;r<n;r++)if(Mo(i=-1===r?c:arguments[r])){if(a+(o=Qt(i))>Po)throw ko(To);for(e=0;e<o;e++,a++)e in i&&go(u,a,i[e])}else{if(a>=Po)throw ko(To);go(u,a++,i)}return u.length=a,u}});var _o=io.map;Me({target:"Array",proto:!0,forced:!vo("map")},{map:function(t){return _o(this,t,arguments.length>1?arguments[1]:void 0)}}),Me({target:"Object",stat:!0,forced:a((function(){_e(1)}))},{keys:function(t){return _e(pt(t))}});var Io,Lo,Co,No=l.Array,Do=Math.max,Fo=ur.f,$o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Go=function(t){try{return Fo(t)}catch(t){return function(t,r,e){for(var n=Qt(t),o=Ht(r,n),i=Ht(void 0===e?n:e,n),c=No(Do(i-o,0)),u=0;o<i;o++,u++)go(c,u,t[o]);return c.length=u,c}($o)}},zo={f:function(t){return $o&&"Window"==$t(t)?Go(t):Fo(Vt(t))}},qo={f:xt},Vo=l,Uo=Lt.f,Bo=Lt.f,Ko=xt("toStringTag"),Wo=io.forEach,Yo=Rr("hidden"),Ho="Symbol",Jo=xt("toPrimitive"),Xo=$r.set,Qo=$r.getterFor(Ho),Zo=Object.prototype,ti=l.Symbol,ri=ti&&ti.prototype,ei=l.TypeError,ni=l.QObject,oi=z("JSON","stringify"),ii=Ee.f,ci=Lt.f,ui=zo.f,ai=xe.f,fi=y([].push),si=at("symbols"),li=at("op-symbols"),pi=at("string-to-symbol-registry"),gi=at("symbol-to-string-registry"),hi=at("wks"),vi=!ni||!ni.prototype||!ni.prototype.findChild,di=f&&a((function(){return 7!=ze(ci({},"a",{get:function(){return ci(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=ii(Zo,r);n&&delete Zo[r],ci(t,r,e),n&&t!==Zo&&ci(Zo,r,n)}:ci,yi=function(t,r){var e=si[t]=ze(ri);return Xo(e,{type:Ho,tag:t,description:r}),f||(e.description=r),e},bi=function(t,r,e){t===Zo&&bi(li,r,e),A(t);var n=Tt(r);return A(e),ht(si,n)?(e.enumerable?(ht(t,Yo)&&t[Yo][n]&&(t[Yo][n]=!1),e=ze(e,{enumerable:Ct(0,!1)})):(ht(t,Yo)||ci(t,Yo,Ct(1,{})),t[Yo][n]=!0),di(t,n,e)):ci(t,n,e)},mi=function(t,r){A(t);var e=Vt(r),n=_e(e).concat(xi(e));return Wo(n,(function(r){f&&!$(Oi,e,r)||bi(t,r,e[r])})),t},Oi=function(t){var r=Tt(t),e=$(ai,this,r);return!(this===Zo&&ht(si,r)&&!ht(li,r))&&(!(e||!ht(this,r)||!ht(si,r)||ht(this,Yo)&&this[Yo][r])||e)},wi=function(t,r){var e=Vt(t),n=Tt(r);if(e!==Zo||!ht(si,n)||ht(li,n)){var o=ii(e,n);return!o||!ht(si,n)||ht(e,Yo)&&e[Yo][n]||(o.enumerable=!0),o}},Si=function(t){var r=ui(Vt(t)),e=[];return Wo(r,(function(t){ht(si,t)||ht(rr,t)||fi(e,t)})),e},xi=function(t){var r=t===Zo,e=ui(r?li:Vt(t)),n=[];return Wo(e,(function(t){!ht(si,t)||r&&!ht(Zo,t)||fi(n,si[t])})),n};(H||(ti=function(){if(q(ri,this))throw ei("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?dr(arguments[0]):void 0,r=bt(t),e=function(t){this===Zo&&$(e,li,t),ht(this,Yo)&&ht(this[Yo],r)&&(this[Yo][r]=!1),di(this,r,Ct(1,t))};return f&&vi&&di(Zo,r,{configurable:!0,set:e}),yi(r,t)},ri=ti.prototype,Ur(ri,"toString",(function(){return Qo(this).tag})),Ur(ti,"withoutSetter",(function(t){return yi(bt(t),t)})),xe.f=Oi,Lt.f=bi,Le.f=mi,Ee.f=wi,ur.f=zo.f=Si,Pe.f=xi,qo.f=function(t){return yi(xt(t),t)},f&&(ci(ri,"description",{configurable:!0,get:function(){return Qo(this).description}}),Ur(Zo,"propertyIsEnumerable",Oi,{unsafe:!0}))),Me({global:!0,wrap:!0,forced:!H,sham:!H},{Symbol:ti}),Wo(_e(hi),(function(t){!function(t){var r=Vo.Symbol||(Vo.Symbol={});ht(r,t)||Uo(r,t,{value:qo.f(t)})}(t)})),Me({target:Ho,stat:!0,forced:!H},{for:function(t){var r=dr(t);if(ht(pi,r))return pi[r];var e=ti(r);return pi[r]=e,gi[e]=r,e},keyFor:function(t){if(!Q(t))throw ei(t+" is not a symbol");if(ht(gi,t))return gi[t]},useSetter:function(){vi=!0},useSimple:function(){vi=!1}}),Me({target:"Object",stat:!0,forced:!H,sham:!f},{create:function(t,r){return void 0===r?ze(t):mi(ze(t),r)},defineProperty:bi,defineProperties:mi,getOwnPropertyDescriptor:wi}),Me({target:"Object",stat:!0,forced:!H},{getOwnPropertyNames:Si,getOwnPropertySymbols:xi}),Me({target:"Object",stat:!0,forced:a((function(){Pe.f(1)}))},{getOwnPropertySymbols:function(t){return Pe.f(pt(t))}}),oi)&&Me({target:"JSON",stat:!0,forced:!H||a((function(){var t=ti();return"[null]"!=oi([t])||"{}"!=oi({a:t})||"{}"!=oi(Object(t))}))},{stringify:function(t,r,e){var n=yo(arguments),o=r;if((P(r)||void 0!==t)&&!Q(t))return Un(r)||(r=function(t,r){if(b(o)&&(r=$(o,this,t,r)),!Q(r))return r}),n[1]=r,ln(oi,null,n)}});if(!ri[Jo]){var ji=ri.valueOf;Ur(ri,Jo,(function(t){return $(ji,this)}))}Lo=Ho,(Io=ti)&&!Co&&(Io=Io.prototype),Io&&!ht(Io,Ko)&&Bo(Io,Ko,{configurable:!0,value:Lo}),rr[Yo]=!0;var Ei=io.filter;Me({target:"Array",proto:!0,forced:!vo("filter")},{filter:function(t){return Ei(this,t,arguments.length>1?arguments[1]:void 0)}});var Pi=Ee.f,Ti=a((function(){Pi(1)}));Me({target:"Object",stat:!0,forced:!f||Ti,sham:!f},{getOwnPropertyDescriptor:function(t,r){return Pi(Vt(t),r)}}),Me({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(t){for(var r,e,n=Vt(t),o=Ee.f,i=ke(n),c={},u=0;i.length>u;)void 0!==(e=o(n,r=i[u++]))&&go(c,r,e);return c}});var ki,Ai=r(e((function(t){t.exports=function(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t},t.exports.__esModule=!0,t.exports.default=t.exports}))),Ri=/"/g,Mi=y("".replace);function _i(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}Me({target:"String",proto:!0,forced:(ki="anchor",a((function(){var t=""[ki]('"');return t!==t.toLowerCase()||t.split('"').length>3})))},{anchor:function(t){return r="a",e="name",n=t,o=dr(st(this)),i="<"+r,""!==e&&(i+=" "+e+'="'+Mi(dr(n),Ri,""")+'"'),i+">"+o+"</"+r+">";var r,e,n,o,i}});var Ii=function(t,r){if(!t)return null;var e={};for(var n in t){var o=t[n];r.indexOf(n)>-1&&null!==o&&(e[n]=o)}return e},Li={nodes:{horizontal_rule:function(t){return{singleTag:"hr"}},blockquote:function(t){return{tag:"blockquote"}},bullet_list:function(t){return{tag:"ul"}},code_block:function(t){return{tag:["pre",{tag:"code",attrs:t.attrs}]}},hard_break:function(t){return{singleTag:"br"}},heading:function(t){return{tag:"h".concat(t.attrs.level)}},image:function(t){return{singleTag:[{tag:"img",attrs:Ii(t.attrs,["src","alt","title"])}]}},list_item:function(t){return{tag:"li"}},ordered_list:function(t){return{tag:"ol"}},paragraph:function(t){return{tag:"p"}}},marks:{bold:function(){return{tag:"b"}},strike:function(){return{tag:"strike"}},underline:function(){return{tag:"u"}},strong:function(){return{tag:"strong"}},code:function(){return{tag:"code"}},italic:function(){return{tag:"i"}},link:function(t){var r=function(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?_i(Object(e),!0).forEach((function(r){Ai(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_i(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t.attrs),e=t.attrs.linktype;return"email"===(void 0===e?"url":e)&&(r.href="mailto:".concat(r.href)),r.anchor&&(r.href="".concat(r.href,"#").concat(r.anchor),delete r.anchor),{tag:[{tag:"a",attrs:r}]}},styled:function(t){return{tag:[{tag:"span",attrs:t.attrs}]}}}},Ci=function(){function t(r){i(this,t),r||(r=Li),this.marks=r.marks||[],this.nodes=r.nodes||[]}return u(t,[{key:"addNode",value:function(t,r){this.nodes[t]=r}},{key:"addMark",value:function(t,r){this.marks[t]=r}},{key:"render",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.content&&Array.isArray(r.content)){var e="";return r.content.forEach((function(r){e+=t.renderNode(r)})),e}return console.warn("The render method must receive an object with a content field, which is an array"),""}},{key:"renderNode",value:function(t){var r=this,e=[];t.marks&&t.marks.forEach((function(t){var n=r.getMatchingMark(t);n&&e.push(r.renderOpeningTag(n.tag))}));var n,o,i,c,u=this.getMatchingNode(t);return u&&u.tag&&e.push(this.renderOpeningTag(u.tag)),t.content?t.content.forEach((function(t){e.push(r.renderNode(t))})):t.text?e.push((n=t.text,o={"&":"&","<":"<",">":">",'"':""","'":"'"},i=/[&<>"']/g,c=RegExp(i.source),n&&c.test(n)?n.replace(i,(function(t){return o[t]})):n)):u&&u.singleTag?e.push(this.renderTag(u.singleTag," /")):u&&u.html&&e.push(u.html),u&&u.tag&&e.push(this.renderClosingTag(u.tag)),t.marks&&t.marks.slice(0).reverse().forEach((function(t){var n=r.getMatchingMark(t);n&&e.push(r.renderClosingTag(n.tag))})),e.join("")}},{key:"renderTag",value:function(t,r){return t.constructor===String?"<".concat(t).concat(r,">"):t.map((function(t){if(t.constructor===String)return"<".concat(t).concat(r,">");var e="<".concat(t.tag);if(t.attrs)for(var n in t.attrs){var o=t.attrs[n];null!==o&&(e+=" ".concat(n,'="').concat(o,'"'))}return"".concat(e).concat(r,">")})).join("")}},{key:"renderOpeningTag",value:function(t){return this.renderTag(t,"")}},{key:"renderClosingTag",value:function(t){return t.constructor===String?"</".concat(t,">"):t.slice(0).reverse().map((function(t){return t.constructor===String?"</".concat(t,">"):"</".concat(t.tag,">")})).join("")}},{key:"getMatchingNode",value:function(t){if("function"==typeof this.nodes[t.type])return this.nodes[t.type](t)}},{key:"getMatchingMark",value:function(t){if("function"==typeof this.marks[t.type])return this.marks[t.type](t)}}]),t}();return Ci}(); | ||
var RichTextResolver=function(){"use strict";var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function e(t,r,e){return t(e={path:r,exports:{},require:function(t,r){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==r&&e.path)}},e.exports),e.exports}var n,o,i=r(e((function(t){t.exports=function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}))),c=e((function(t){function r(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports})),u=r(c),a=function(t){try{return!!t()}catch(t){return!0}},f=!a((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),s=function(t){return t&&t.Math==Math&&t},l=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof t&&t)||function(){return this}()||Function("return this")(),p=!a((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),g=Function.prototype,v=g.bind,d=g.call,h=p&&v.bind(d,d),y=p?function(t){return t&&h(t)}:function(t){return t&&function(){return d.apply(t,arguments)}},b=function(t){return"function"==typeof t},m=/#|\.prototype\./,O=function(t,r){var e=w[S(t)];return e==j||e!=x&&(b(r)?a(r):!!r)},S=O.normalize=function(t){return String(t).replace(m,".").toLowerCase()},w=O.data={},x=O.NATIVE="N",j=O.POLYFILL="P",E=O,P=function(t){return"object"==typeof t?null!==t:b(t)},T=l.String,k=l.TypeError,A=function(t){if(P(t))return t;throw k(T(t)+" is not an object")},R=l.String,M=l.TypeError,_=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,e={};try{(t=y(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(e,[]),r=e instanceof Array}catch(t){}return function(e,n){return A(e),function(t){if("object"==typeof t||b(t))return t;throw M("Can't set "+R(t)+" as a prototype")}(n),r?t(e,n):e.__proto__=n,e}}():void 0),I=l.document,L=P(I)&&P(I.createElement),C=function(t){return L?I.createElement(t):{}},N=!f&&!a((function(){return 7!=Object.defineProperty(C("div"),"a",{get:function(){return 7}}).a})),D=f&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),F=Function.prototype.call,$=p?F.bind(F):function(){return F.apply(F,arguments)},G=function(t){return b(t)?t:void 0},z=function(t,r){return arguments.length<2?G(l[t]):l[t]&&l[t][r]},q=y({}.isPrototypeOf),V=z("navigator","userAgent")||"",U=l.process,B=l.Deno,K=U&&U.versions||B&&B.version,W=K&&K.v8;W&&(o=(n=W.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&V&&(!(n=V.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=V.match(/Chrome\/(\d+)/))&&(o=+n[1]);var Y=o,H=!!Object.getOwnPropertySymbols&&!a((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Y&&Y<41})),J=H&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,X=l.Object,Q=J?function(t){return"symbol"==typeof t}:function(t){var r=z("Symbol");return b(r)&&q(r.prototype,X(t))},Z=l.String,tt=l.TypeError,rt=function(t){if(b(t))return t;throw tt(function(t){try{return Z(t)}catch(t){return"Object"}}(t)+" is not a function")},et=function(t,r){var e=t[r];return null==e?void 0:rt(e)},nt=l.TypeError,ot=Object.defineProperty,it=function(t,r){try{ot(l,t,{value:r,configurable:!0,writable:!0})}catch(e){l[t]=r}return r},ct="__core-js_shared__",ut=l[ct]||it(ct,{}),at=e((function(t){(t.exports=function(t,r){return ut[t]||(ut[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.21.1",mode:"global",copyright:"Š 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),ft=l.TypeError,st=function(t){if(null==t)throw ft("Can't call method on "+t);return t},lt=l.Object,pt=function(t){return lt(st(t))},gt=y({}.hasOwnProperty),vt=Object.hasOwn||function(t,r){return gt(pt(t),r)},dt=0,ht=Math.random(),yt=y(1..toString),bt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+yt(++dt+ht,36)},mt=at("wks"),Ot=l.Symbol,St=Ot&&Ot.for,wt=J?Ot:Ot&&Ot.withoutSetter||bt,xt=function(t){if(!vt(mt,t)||!H&&"string"!=typeof mt[t]){var r="Symbol."+t;H&&vt(Ot,t)?mt[t]=Ot[t]:mt[t]=J&&St?St(r):wt(r)}return mt[t]},jt=l.TypeError,Et=xt("toPrimitive"),Pt=function(t,r){if(!P(t)||Q(t))return t;var e,n=et(t,Et);if(n){if(void 0===r&&(r="default"),e=$(n,t,r),!P(e)||Q(e))return e;throw jt("Can't convert object to primitive value")}return void 0===r&&(r="number"),function(t,r){var e,n;if("string"===r&&b(e=t.toString)&&!P(n=$(e,t)))return n;if(b(e=t.valueOf)&&!P(n=$(e,t)))return n;if("string"!==r&&b(e=t.toString)&&!P(n=$(e,t)))return n;throw nt("Can't convert object to primitive value")}(t,r)},Tt=function(t){var r=Pt(t,"string");return Q(r)?r:r+""},kt=l.TypeError,At=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,Mt="enumerable",_t="configurable",It="writable",Lt={f:f?D?function(t,r,e){if(A(t),r=Tt(r),A(e),"function"==typeof t&&"prototype"===r&&"value"in e&&It in e&&!e.writable){var n=Rt(t,r);n&&n.writable&&(t[r]=e.value,e={configurable:_t in e?e.configurable:n.configurable,enumerable:Mt in e?e.enumerable:n.enumerable,writable:!1})}return At(t,r,e)}:At:function(t,r,e){if(A(t),r=Tt(r),A(e),N)try{return At(t,r,e)}catch(t){}if("get"in e||"set"in e)throw kt("Accessors not supported");return"value"in e&&(t[r]=e.value),t}},Ct=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}},Nt=f?function(t,r,e){return Lt.f(t,r,Ct(1,e))}:function(t,r,e){return t[r]=e,t},Dt=y({}.toString),Ft=y("".slice),$t=function(t){return Ft(Dt(t),8,-1)},Gt=l.Object,zt=y("".split),qt=a((function(){return!Gt("z").propertyIsEnumerable(0)}))?function(t){return"String"==$t(t)?zt(t,""):Gt(t)}:Gt,Vt=function(t){return qt(st(t))},Ut=Math.ceil,Bt=Math.floor,Kt=function(t){var r=+t;return r!=r||0===r?0:(r>0?Bt:Ut)(r)},Wt=Math.max,Yt=Math.min,Ht=function(t,r){var e=Kt(t);return e<0?Wt(e+r,0):Yt(e,r)},Jt=Math.min,Xt=function(t){return t>0?Jt(Kt(t),9007199254740991):0},Qt=function(t){return Xt(t.length)},Zt=function(t){return function(r,e,n){var o,i=Vt(r),c=Qt(i),u=Ht(n,c);if(t&&e!=e){for(;c>u;)if((o=i[u++])!=o)return!0}else for(;c>u;u++)if((t||u in i)&&i[u]===e)return t||u||0;return!t&&-1}},tr={includes:Zt(!0),indexOf:Zt(!1)},rr={},er=tr.indexOf,nr=y([].push),or=function(t,r){var e,n=Vt(t),o=0,i=[];for(e in n)!vt(rr,e)&&vt(n,e)&&nr(i,e);for(;r.length>o;)vt(n,e=r[o++])&&(~er(i,e)||nr(i,e));return i},ir=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],cr=ir.concat("length","prototype"),ur={f:Object.getOwnPropertyNames||function(t){return or(t,cr)}},ar=xt("match"),fr={};fr[xt("toStringTag")]="z";var sr="[object z]"===String(fr),lr=xt("toStringTag"),pr=l.Object,gr="Arguments"==$t(function(){return arguments}()),vr=sr?$t:function(t){var r,e,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,r){try{return t[r]}catch(t){}}(r=pr(t),lr))?e:gr?$t(r):"Object"==(n=$t(r))&&b(r.callee)?"Arguments":n},dr=l.String,hr=function(t){if("Symbol"===vr(t))throw TypeError("Cannot convert a Symbol value to a string");return dr(t)},yr=function(){var t=A(this),r="";return t.global&&(r+="g"),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),t.dotAll&&(r+="s"),t.unicode&&(r+="u"),t.sticky&&(r+="y"),r},br=l.RegExp,mr=a((function(){var t=br("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),Or=mr||a((function(){return!br("a","y").sticky})),Sr={BROKEN_CARET:mr||a((function(){var t=br("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:Or,UNSUPPORTED_Y:mr},wr=y(Function.toString);b(ut.inspectSource)||(ut.inspectSource=function(t){return wr(t)});var xr,jr,Er,Pr=ut.inspectSource,Tr=l.WeakMap,kr=b(Tr)&&/native code/.test(Pr(Tr)),Ar=at("keys"),Rr=function(t){return Ar[t]||(Ar[t]=bt(t))},Mr="Object already initialized",_r=l.TypeError,Ir=l.WeakMap;if(kr||ut.state){var Lr=ut.state||(ut.state=new Ir),Cr=y(Lr.get),Nr=y(Lr.has),Dr=y(Lr.set);xr=function(t,r){if(Nr(Lr,t))throw new _r(Mr);return r.facade=t,Dr(Lr,t,r),r},jr=function(t){return Cr(Lr,t)||{}},Er=function(t){return Nr(Lr,t)}}else{var Fr=Rr("state");rr[Fr]=!0,xr=function(t,r){if(vt(t,Fr))throw new _r(Mr);return r.facade=t,Nt(t,Fr,r),r},jr=function(t){return vt(t,Fr)?t[Fr]:{}},Er=function(t){return vt(t,Fr)}}var $r={set:xr,get:jr,has:Er,enforce:function(t){return Er(t)?jr(t):xr(t,{})},getterFor:function(t){return function(r){var e;if(!P(r)||(e=jr(r)).type!==t)throw _r("Incompatible receiver, "+t+" required");return e}}},Gr=Function.prototype,zr=f&&Object.getOwnPropertyDescriptor,qr=vt(Gr,"name"),Vr={EXISTS:qr,PROPER:qr&&"something"===function(){}.name,CONFIGURABLE:qr&&(!f||f&&zr(Gr,"name").configurable)},Ur=e((function(t){var r=Vr.CONFIGURABLE,e=$r.get,n=$r.enforce,o=String(String).split("String");(t.exports=function(t,e,i,c){var u,a=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,s=!!c&&!!c.noTargetGet,p=c&&void 0!==c.name?c.name:e;b(i)&&("Symbol("===String(p).slice(0,7)&&(p="["+String(p).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!vt(i,"name")||r&&i.name!==p)&&Nt(i,"name",p),(u=n(i)).source||(u.source=o.join("string"==typeof p?p:""))),t!==l?(a?!s&&t[e]&&(f=!0):delete t[e],f?t[e]=i:Nt(t,e,i)):f?t[e]=i:it(e,i)})(Function.prototype,"toString",(function(){return b(this)&&e(this).source||Pr(this)}))})),Br=xt("species"),Kr=l.RegExp,Wr=a((function(){var t=Kr(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Yr=l.RegExp,Hr=a((function(){var t=Yr("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Jr=Lt.f,Xr=ur.f,Qr=$r.enforce,Zr=xt("match"),te=l.RegExp,re=te.prototype,ee=l.SyntaxError,ne=y(yr),oe=y(re.exec),ie=y("".charAt),ce=y("".replace),ue=y("".indexOf),ae=y("".slice),fe=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,se=/a/g,le=/a/g,pe=new te(se)!==se,ge=Sr.MISSED_STICKY,ve=Sr.UNSUPPORTED_Y,de=f&&(!pe||ge||Wr||Hr||a((function(){return le[Zr]=!1,te(se)!=se||te(le)==le||"/a/i"!=te(se,"i")})));if(E("RegExp",de)){for(var he=function(t,r){var e,n,o,i,c,u,a,f,s,l,p,g,v,d=q(re,this),h=P(e=t)&&(void 0!==(n=e[ar])?!!n:"RegExp"==$t(e)),y=void 0===r,m=[],O=t;if(!d&&h&&y&&t.constructor===he)return t;if((h||q(re,t))&&(t=t.source,y&&(r="flags"in O?O.flags:ne(O))),t=void 0===t?"":hr(t),r=void 0===r?"":hr(r),O=t,Wr&&"dotAll"in se&&(i=!!r&&ue(r,"s")>-1)&&(r=ce(r,/s/g,"")),o=r,ge&&"sticky"in se&&(c=!!r&&ue(r,"y")>-1)&&ve&&(r=ce(r,/y/g,"")),Hr&&(u=function(t){for(var r,e=t.length,n=0,o="",i=[],c={},u=!1,a=!1,f=0,s="";n<=e;n++){if("\\"===(r=ie(t,n)))r+=ie(t,++n);else if("]"===r)u=!1;else if(!u)switch(!0){case"["===r:u=!0;break;case"("===r:oe(fe,ae(t,n+1))&&(n+=2,a=!0),o+=r,f++;continue;case">"===r&&a:if(""===s||vt(c,s))throw new ee("Invalid capture group name");c[s]=!0,i[i.length]=[s,f],a=!1,s="";continue}a?s+=r:o+=r}return[o,i]}(t),t=u[0],m=u[1]),s=te(t,r),l=d?this:re,p=he,_&&b(g=l.constructor)&&g!==p&&P(v=g.prototype)&&v!==p.prototype&&_(s,v),a=s,(i||c||m.length)&&(f=Qr(a),i&&(f.dotAll=!0,f.raw=he(function(t){for(var r,e=t.length,n=0,o="",i=!1;n<=e;n++)"\\"!==(r=ie(t,n))?i||"."!==r?("["===r?i=!0:"]"===r&&(i=!1),o+=r):o+="[\\s\\S]":o+=r+ie(t,++n);return o}(t),o)),c&&(f.sticky=!0),m.length&&(f.groups=m)),t!==O)try{Nt(a,"source",""===O?"(?:)":O)}catch(t){}return a},ye=function(t){t in he||Jr(he,t,{configurable:!0,get:function(){return te[t]},set:function(r){te[t]=r}})},be=Xr(te),me=0;be.length>me;)ye(be[me++]);re.constructor=he,he.prototype=re,Ur(l,"RegExp",he)}!function(t){var r=z(t),e=Lt.f;f&&r&&!r[Br]&&e(r,Br,{configurable:!0,get:function(){return this}})}("RegExp");var Oe,Se={}.propertyIsEnumerable,we=Object.getOwnPropertyDescriptor,xe={f:we&&!Se.call({1:2},1)?function(t){var r=we(this,t);return!!r&&r.enumerable}:Se},je=Object.getOwnPropertyDescriptor,Ee={f:f?je:function(t,r){if(t=Vt(t),r=Tt(r),N)try{return je(t,r)}catch(t){}if(vt(t,r))return Ct(!$(xe.f,t,r),t[r])}},Pe={f:Object.getOwnPropertySymbols},Te=y([].concat),ke=z("Reflect","ownKeys")||function(t){var r=ur.f(A(t)),e=Pe.f;return e?Te(r,e(t)):r},Ae=function(t,r,e){for(var n=ke(r),o=Lt.f,i=Ee.f,c=0;c<n.length;c++){var u=n[c];vt(t,u)||e&&vt(e,u)||o(t,u,i(r,u))}},Re=Ee.f,Me=function(t,r){var e,n,o,i,c,u=t.target,a=t.global,f=t.stat;if(e=a?l:f?l[u]||it(u,{}):(l[u]||{}).prototype)for(n in r){if(i=r[n],o=t.noTargetGet?(c=Re(e,n))&&c.value:e[n],!E(a?n:u+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ae(i,o)}(t.sham||o&&o.sham)&&Nt(i,"sham",!0),Ur(e,n,i,t)}},_e=Object.keys||function(t){return or(t,ir)},Ie=f&&!D?Object.defineProperties:function(t,r){A(t);for(var e,n=Vt(r),o=_e(r),i=o.length,c=0;i>c;)Lt.f(t,e=o[c++],n[e]);return t},Le={f:Ie},Ce=z("document","documentElement"),Ne=Rr("IE_PROTO"),De=function(){},Fe=function(t){return"<script>"+t+"</"+"script>"},$e=function(t){t.write(Fe("")),t.close();var r=t.parentWindow.Object;return t=null,r},Ge=function(){try{Oe=new ActiveXObject("htmlfile")}catch(t){}var t,r;Ge="undefined"!=typeof document?document.domain&&Oe?$e(Oe):((r=C("iframe")).style.display="none",Ce.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(Fe("document.F=Object")),t.close(),t.F):$e(Oe);for(var e=ir.length;e--;)delete Ge.prototype[ir[e]];return Ge()};rr[Ne]=!0;var ze=Object.create||function(t,r){var e;return null!==t?(De.prototype=A(t),e=new De,De.prototype=null,e[Ne]=t):e=Ge(),void 0===r?e:Le.f(e,r)},qe=$r.get,Ve=at("native-string-replace",String.prototype.replace),Ue=RegExp.prototype.exec,Be=Ue,Ke=y("".charAt),We=y("".indexOf),Ye=y("".replace),He=y("".slice),Je=function(){var t=/a/,r=/b*/g;return $(Ue,t,"a"),$(Ue,r,"a"),0!==t.lastIndex||0!==r.lastIndex}(),Xe=Sr.BROKEN_CARET,Qe=void 0!==/()??/.exec("")[1];(Je||Qe||Xe||Wr||Hr)&&(Be=function(t){var r,e,n,o,i,c,u,a=this,f=qe(a),s=hr(t),l=f.raw;if(l)return l.lastIndex=a.lastIndex,r=$(Be,l,s),a.lastIndex=l.lastIndex,r;var p=f.groups,g=Xe&&a.sticky,v=$(yr,a),d=a.source,h=0,y=s;if(g&&(v=Ye(v,"y",""),-1===We(v,"g")&&(v+="g"),y=He(s,a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==Ke(s,a.lastIndex-1))&&(d="(?: "+d+")",y=" "+y,h++),e=new RegExp("^(?:"+d+")",v)),Qe&&(e=new RegExp("^"+d+"$(?!\\s)",v)),Je&&(n=a.lastIndex),o=$(Ue,g?e:a,y),g?o?(o.input=He(o.input,h),o[0]=He(o[0],h),o.index=a.lastIndex,a.lastIndex+=o[0].length):a.lastIndex=0:Je&&o&&(a.lastIndex=a.global?o.index+o[0].length:n),Qe&&o&&o.length>1&&$(Ve,o[0],e,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=c=ze(null),i=0;i<p.length;i++)c[(u=p[i])[0]]=o[u[1]];return o});var Ze=Be;Me({target:"RegExp",proto:!0,forced:/./.exec!==Ze},{exec:Ze});var tn=Vr.PROPER,rn="toString",en=RegExp.prototype,nn=en.toString,on=y(yr),cn=a((function(){return"/a/b"!=nn.call({source:"a",flags:"b"})})),un=tn&&nn.name!=rn;(cn||un)&&Ur(RegExp.prototype,rn,(function(){var t=A(this),r=hr(t.source),e=t.flags;return"/"+r+"/"+hr(void 0===e&&q(en,t)&&!("flags"in en)?on(t):e)}),{unsafe:!0});var an=Function.prototype,fn=an.apply,sn=an.call,ln="object"==typeof Reflect&&Reflect.apply||(p?sn.bind(fn):function(){return sn.apply(fn,arguments)}),pn=xt("species"),gn=RegExp.prototype,vn=y("".charAt),dn=y("".charCodeAt),hn=y("".slice),yn=function(t){return function(r,e){var n,o,i=hr(st(r)),c=Kt(e),u=i.length;return c<0||c>=u?t?"":void 0:(n=dn(i,c))<55296||n>56319||c+1===u||(o=dn(i,c+1))<56320||o>57343?t?vn(i,c):n:t?hn(i,c,c+2):o-56320+(n-55296<<10)+65536}},bn={codeAt:yn(!1),charAt:yn(!0)}.charAt,mn=function(t,r,e){return r+(e?bn(t,r).length:1)},On=Math.floor,Sn=y("".charAt),wn=y("".replace),xn=y("".slice),jn=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,En=/\$([$&'`]|\d{1,2})/g,Pn=function(t,r,e,n,o,i){var c=e+t.length,u=n.length,a=En;return void 0!==o&&(o=pt(o),a=jn),wn(i,a,(function(i,a){var f;switch(Sn(a,0)){case"$":return"$";case"&":return t;case"`":return xn(r,0,e);case"'":return xn(r,c);case"<":f=o[xn(a,1,-1)];break;default:var s=+a;if(0===s)return i;if(s>u){var l=On(s/10);return 0===l?i:l<=u?void 0===n[l-1]?Sn(a,1):n[l-1]+Sn(a,1):i}f=n[s-1]}return void 0===f?"":f}))},Tn=l.TypeError,kn=function(t,r){var e=t.exec;if(b(e)){var n=$(e,t,r);return null!==n&&A(n),n}if("RegExp"===$t(t))return $(Ze,t,r);throw Tn("RegExp#exec called on incompatible receiver")},An=xt("replace"),Rn=Math.max,Mn=Math.min,_n=y([].concat),In=y([].push),Ln=y("".indexOf),Cn=y("".slice),Nn="$0"==="a".replace(/./,"$0"),Dn=!!/./[An]&&""===/./[An]("a","$0");!function(t,r,e,n){var o=xt(t),i=!a((function(){var r={};return r[o]=function(){return 7},7!=""[t](r)})),c=i&&!a((function(){var r=!1,e=/a/;return"split"===t&&((e={}).constructor={},e.constructor[pn]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return r=!0,null},e[o](""),!r}));if(!i||!c||e){var u=y(/./[o]),f=r(o,""[t],(function(t,r,e,n,o){var c=y(t),a=r.exec;return a===Ze||a===gn.exec?i&&!o?{done:!0,value:u(r,e,n)}:{done:!0,value:c(e,r,n)}:{done:!1}}));Ur(String.prototype,t,f[0]),Ur(gn,o,f[1])}n&&Nt(gn[o],"sham",!0)}("replace",(function(t,r,e){var n=Dn?"$":"$0";return[function(t,e){var n=st(this),o=null==t?void 0:et(t,An);return o?$(o,t,n,e):$(r,hr(n),t,e)},function(t,o){var i=A(this),c=hr(t);if("string"==typeof o&&-1===Ln(o,n)&&-1===Ln(o,"$<")){var u=e(r,i,c,o);if(u.done)return u.value}var a=b(o);a||(o=hr(o));var f=i.global;if(f){var s=i.unicode;i.lastIndex=0}for(var l=[];;){var p=kn(i,c);if(null===p)break;if(In(l,p),!f)break;""===hr(p[0])&&(i.lastIndex=mn(c,Xt(i.lastIndex),s))}for(var g,v="",d=0,h=0;h<l.length;h++){for(var y=hr((p=l[h])[0]),m=Rn(Mn(Kt(p.index),c.length),0),O=[],S=1;S<p.length;S++)In(O,void 0===(g=p[S])?g:String(g));var w=p.groups;if(a){var x=_n([y],O,m,c);void 0!==w&&In(x,w);var j=hr(ln(o,void 0,x))}else j=Pn(y,c,m,O,w,o);m>=d&&(v+=Cn(c,d,m)+j,d=m+y.length)}return v+Cn(c,d)}]}),!!a((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Nn||Dn);var Fn=sr?{}.toString:function(){return"[object "+vr(this)+"]"};sr||Ur(Object.prototype,"toString",Fn,{unsafe:!0});var $n={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},Gn=C("span").classList,zn=Gn&&Gn.constructor&&Gn.constructor.prototype,qn=zn===Object.prototype?void 0:zn,Vn=y(y.bind),Un=Array.isArray||function(t){return"Array"==$t(t)},Bn=function(){},Kn=[],Wn=z("Reflect","construct"),Yn=/^\s*(?:class|function)\b/,Hn=y(Yn.exec),Jn=!Yn.exec(Bn),Xn=function(t){if(!b(t))return!1;try{return Wn(Bn,Kn,t),!0}catch(t){return!1}},Qn=function(t){if(!b(t))return!1;switch(vr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Jn||!!Hn(Yn,Pr(t))}catch(t){return!0}};Qn.sham=!0;var Zn=!Wn||a((function(){var t;return Xn(Xn.call)||!Xn(Object)||!Xn((function(){t=!0}))||t}))?Qn:Xn,to=xt("species"),ro=l.Array,eo=function(t,r){return new(function(t){var r;return Un(t)&&(r=t.constructor,(Zn(r)&&(r===ro||Un(r.prototype))||P(r)&&null===(r=r[to]))&&(r=void 0)),void 0===r?ro:r}(t))(0===r?0:r)},no=y([].push),oo=function(t){var r=1==t,e=2==t,n=3==t,o=4==t,i=6==t,c=7==t,u=5==t||i;return function(a,f,s,l){for(var g,v,d=pt(a),h=qt(d),y=function(t,r){return rt(t),void 0===r?t:p?Vn(t,r):function(){return t.apply(r,arguments)}}(f,s),b=Qt(h),m=0,O=l||eo,S=r?O(a,b):e||c?O(a,0):void 0;b>m;m++)if((u||m in h)&&(v=y(g=h[m],m,d),t))if(r)S[m]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return m;case 2:no(S,g)}else switch(t){case 4:return!1;case 7:no(S,g)}return i?-1:n||o?o:S}},io={forEach:oo(0),map:oo(1),filter:oo(2),some:oo(3),every:oo(4),find:oo(5),findIndex:oo(6),filterReject:oo(7)},co=function(t,r){var e=[][t];return!!e&&a((function(){e.call(null,r||function(){return 1},1)}))},uo=io.forEach,ao=co("forEach")?[].forEach:function(t){return uo(this,t,arguments.length>1?arguments[1]:void 0)},fo=function(t){if(t&&t.forEach!==ao)try{Nt(t,"forEach",ao)}catch(r){t.forEach=ao}};for(var so in $n)$n[so]&&fo(l[so]&&l[so].prototype);fo(qn);var lo=y([].reverse),po=[1,2];Me({target:"Array",proto:!0,forced:String(po)===String(po.reverse())},{reverse:function(){return Un(this)&&(this.length=this.length),lo(this)}});var go=function(t,r,e){var n=Tt(r);n in t?Lt.f(t,n,Ct(0,e)):t[n]=e},vo=xt("species"),ho=function(t){return Y>=51||!a((function(){var r=[];return(r.constructor={})[vo]=function(){return{foo:1}},1!==r[t](Boolean).foo}))},yo=y([].slice),bo=ho("slice"),mo=xt("species"),Oo=l.Array,So=Math.max;Me({target:"Array",proto:!0,forced:!bo},{slice:function(t,r){var e,n,o,i=Vt(this),c=Qt(i),u=Ht(t,c),a=Ht(void 0===r?c:r,c);if(Un(i)&&(e=i.constructor,(Zn(e)&&(e===Oo||Un(e.prototype))||P(e)&&null===(e=e[mo]))&&(e=void 0),e===Oo||void 0===e))return yo(i,u,a);for(n=new(void 0===e?Oo:e)(So(a-u,0)),o=0;u<a;u++,o++)u in i&&go(n,o,i[u]);return n.length=o,n}});var wo=y([].join),xo=qt!=Object,jo=co("join",",");Me({target:"Array",proto:!0,forced:xo||!jo},{join:function(t){return wo(Vt(this),void 0===t?",":t)}});var Eo=xt("isConcatSpreadable"),Po=9007199254740991,To="Maximum allowed index exceeded",ko=l.TypeError,Ao=Y>=51||!a((function(){var t=[];return t[Eo]=!1,t.concat()[0]!==t})),Ro=ho("concat"),Mo=function(t){if(!P(t))return!1;var r=t[Eo];return void 0!==r?!!r:Un(t)};Me({target:"Array",proto:!0,forced:!Ao||!Ro},{concat:function(t){var r,e,n,o,i,c=pt(this),u=eo(c,0),a=0;for(r=-1,n=arguments.length;r<n;r++)if(Mo(i=-1===r?c:arguments[r])){if(a+(o=Qt(i))>Po)throw ko(To);for(e=0;e<o;e++,a++)e in i&&go(u,a,i[e])}else{if(a>=Po)throw ko(To);go(u,a++,i)}return u.length=a,u}});var _o=io.map;Me({target:"Array",proto:!0,forced:!ho("map")},{map:function(t){return _o(this,t,arguments.length>1?arguments[1]:void 0)}}),Me({target:"Object",stat:!0,forced:a((function(){_e(1)}))},{keys:function(t){return _e(pt(t))}});var Io,Lo,Co,No=l.Array,Do=Math.max,Fo=ur.f,$o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Go=function(t){try{return Fo(t)}catch(t){return function(t,r,e){for(var n=Qt(t),o=Ht(r,n),i=Ht(void 0===e?n:e,n),c=No(Do(i-o,0)),u=0;o<i;o++,u++)go(c,u,t[o]);return c.length=u,c}($o)}},zo={f:function(t){return $o&&"Window"==$t(t)?Go(t):Fo(Vt(t))}},qo={f:xt},Vo=l,Uo=Lt.f,Bo=Lt.f,Ko=xt("toStringTag"),Wo=io.forEach,Yo=Rr("hidden"),Ho="Symbol",Jo=xt("toPrimitive"),Xo=$r.set,Qo=$r.getterFor(Ho),Zo=Object.prototype,ti=l.Symbol,ri=ti&&ti.prototype,ei=l.TypeError,ni=l.QObject,oi=z("JSON","stringify"),ii=Ee.f,ci=Lt.f,ui=zo.f,ai=xe.f,fi=y([].push),si=at("symbols"),li=at("op-symbols"),pi=at("string-to-symbol-registry"),gi=at("symbol-to-string-registry"),vi=at("wks"),di=!ni||!ni.prototype||!ni.prototype.findChild,hi=f&&a((function(){return 7!=ze(ci({},"a",{get:function(){return ci(this,"a",{value:7}).a}})).a}))?function(t,r,e){var n=ii(Zo,r);n&&delete Zo[r],ci(t,r,e),n&&t!==Zo&&ci(Zo,r,n)}:ci,yi=function(t,r){var e=si[t]=ze(ri);return Xo(e,{type:Ho,tag:t,description:r}),f||(e.description=r),e},bi=function(t,r,e){t===Zo&&bi(li,r,e),A(t);var n=Tt(r);return A(e),vt(si,n)?(e.enumerable?(vt(t,Yo)&&t[Yo][n]&&(t[Yo][n]=!1),e=ze(e,{enumerable:Ct(0,!1)})):(vt(t,Yo)||ci(t,Yo,Ct(1,{})),t[Yo][n]=!0),hi(t,n,e)):ci(t,n,e)},mi=function(t,r){A(t);var e=Vt(r),n=_e(e).concat(xi(e));return Wo(n,(function(r){f&&!$(Oi,e,r)||bi(t,r,e[r])})),t},Oi=function(t){var r=Tt(t),e=$(ai,this,r);return!(this===Zo&&vt(si,r)&&!vt(li,r))&&(!(e||!vt(this,r)||!vt(si,r)||vt(this,Yo)&&this[Yo][r])||e)},Si=function(t,r){var e=Vt(t),n=Tt(r);if(e!==Zo||!vt(si,n)||vt(li,n)){var o=ii(e,n);return!o||!vt(si,n)||vt(e,Yo)&&e[Yo][n]||(o.enumerable=!0),o}},wi=function(t){var r=ui(Vt(t)),e=[];return Wo(r,(function(t){vt(si,t)||vt(rr,t)||fi(e,t)})),e},xi=function(t){var r=t===Zo,e=ui(r?li:Vt(t)),n=[];return Wo(e,(function(t){!vt(si,t)||r&&!vt(Zo,t)||fi(n,si[t])})),n};(H||(ti=function(){if(q(ri,this))throw ei("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?hr(arguments[0]):void 0,r=bt(t),e=function(t){this===Zo&&$(e,li,t),vt(this,Yo)&&vt(this[Yo],r)&&(this[Yo][r]=!1),hi(this,r,Ct(1,t))};return f&&di&&hi(Zo,r,{configurable:!0,set:e}),yi(r,t)},ri=ti.prototype,Ur(ri,"toString",(function(){return Qo(this).tag})),Ur(ti,"withoutSetter",(function(t){return yi(bt(t),t)})),xe.f=Oi,Lt.f=bi,Le.f=mi,Ee.f=Si,ur.f=zo.f=wi,Pe.f=xi,qo.f=function(t){return yi(xt(t),t)},f&&(ci(ri,"description",{configurable:!0,get:function(){return Qo(this).description}}),Ur(Zo,"propertyIsEnumerable",Oi,{unsafe:!0}))),Me({global:!0,wrap:!0,forced:!H,sham:!H},{Symbol:ti}),Wo(_e(vi),(function(t){!function(t){var r=Vo.Symbol||(Vo.Symbol={});vt(r,t)||Uo(r,t,{value:qo.f(t)})}(t)})),Me({target:Ho,stat:!0,forced:!H},{for:function(t){var r=hr(t);if(vt(pi,r))return pi[r];var e=ti(r);return pi[r]=e,gi[e]=r,e},keyFor:function(t){if(!Q(t))throw ei(t+" is not a symbol");if(vt(gi,t))return gi[t]},useSetter:function(){di=!0},useSimple:function(){di=!1}}),Me({target:"Object",stat:!0,forced:!H,sham:!f},{create:function(t,r){return void 0===r?ze(t):mi(ze(t),r)},defineProperty:bi,defineProperties:mi,getOwnPropertyDescriptor:Si}),Me({target:"Object",stat:!0,forced:!H},{getOwnPropertyNames:wi,getOwnPropertySymbols:xi}),Me({target:"Object",stat:!0,forced:a((function(){Pe.f(1)}))},{getOwnPropertySymbols:function(t){return Pe.f(pt(t))}}),oi)&&Me({target:"JSON",stat:!0,forced:!H||a((function(){var t=ti();return"[null]"!=oi([t])||"{}"!=oi({a:t})||"{}"!=oi(Object(t))}))},{stringify:function(t,r,e){var n=yo(arguments),o=r;if((P(r)||void 0!==t)&&!Q(t))return Un(r)||(r=function(t,r){if(b(o)&&(r=$(o,this,t,r)),!Q(r))return r}),n[1]=r,ln(oi,null,n)}});if(!ri[Jo]){var ji=ri.valueOf;Ur(ri,Jo,(function(t){return $(ji,this)}))}Lo=Ho,(Io=ti)&&!Co&&(Io=Io.prototype),Io&&!vt(Io,Ko)&&Bo(Io,Ko,{configurable:!0,value:Lo}),rr[Yo]=!0;var Ei=io.filter;Me({target:"Array",proto:!0,forced:!ho("filter")},{filter:function(t){return Ei(this,t,arguments.length>1?arguments[1]:void 0)}});var Pi=Ee.f,Ti=a((function(){Pi(1)}));Me({target:"Object",stat:!0,forced:!f||Ti,sham:!f},{getOwnPropertyDescriptor:function(t,r){return Pi(Vt(t),r)}}),Me({target:"Object",stat:!0,sham:!f},{getOwnPropertyDescriptors:function(t){for(var r,e,n=Vt(t),o=Ee.f,i=ke(n),c={},u=0;i.length>u;)void 0!==(e=o(n,r=i[u++]))&&go(c,r,e);return c}});var ki,Ai=r(e((function(t){t.exports=function(t,r,e){return r in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t},t.exports.__esModule=!0,t.exports.default=t.exports}))),Ri=/"/g,Mi=y("".replace);function _i(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,n)}return e}Me({target:"String",proto:!0,forced:(ki="anchor",a((function(){var t=""[ki]('"');return t!==t.toLowerCase()||t.split('"').length>3})))},{anchor:function(t){return r="a",e="name",n=t,o=hr(st(this)),i="<"+r,""!==e&&(i+=" "+e+'="'+Mi(hr(n),Ri,""")+'"'),i+">"+o+"</"+r+">";var r,e,n,o,i}});var Ii=function(t,r){if(!t)return null;var e={};for(var n in t){var o=t[n];r.indexOf(n)>-1&&null!==o&&(e[n]=o)}return e},Li={nodes:{horizontal_rule:function(t){return{singleTag:"hr"}},blockquote:function(t){return{tag:"blockquote"}},bullet_list:function(t){return{tag:"ul"}},code_block:function(t){return{tag:["pre",{tag:"code",attrs:t.attrs}]}},hard_break:function(t){return{singleTag:"br"}},heading:function(t){return{tag:"h".concat(t.attrs.level)}},image:function(t){return{singleTag:[{tag:"img",attrs:Ii(t.attrs,["src","alt","title"])}]}},list_item:function(t){return{tag:"li"}},ordered_list:function(t){return{tag:"ol"}},paragraph:function(t){return{tag:"p"}}},marks:{bold:function(){return{tag:"b"}},strike:function(){return{tag:"strike"}},underline:function(){return{tag:"u"}},strong:function(){return{tag:"strong"}},code:function(){return{tag:"code"}},italic:function(){return{tag:"i"}},link:function(t){var r=function(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?_i(Object(e),!0).forEach((function(r){Ai(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):_i(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}({},t.attrs),e=t.attrs.linktype;return"email"===(void 0===e?"url":e)&&(r.href="mailto:".concat(r.href)),r.anchor&&(r.href="".concat(r.href,"#").concat(r.anchor),delete r.anchor),{tag:[{tag:"a",attrs:r}]}},styled:function(t){return{tag:[{tag:"span",attrs:t.attrs}]}}}},Ci=function(){function t(r){i(this,t),r||(r=Li),this.marks=r.marks||[],this.nodes=r.nodes||[]}return u(t,[{key:"addNode",value:function(t,r){this.nodes[t]=r}},{key:"addMark",value:function(t,r){this.marks[t]=r}},{key:"render",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(r.content&&Array.isArray(r.content)){var e="";return r.content.forEach((function(r){e+=t.renderNode(r)})),e}return console.warn("The render method must receive an object with a content field, which is an array"),""}},{key:"renderNode",value:function(t){var r=this,e=[];t.marks&&t.marks.forEach((function(t){var n=r.getMatchingMark(t);n&&e.push(r.renderOpeningTag(n.tag))}));var n,o,i,c,u=this.getMatchingNode(t);return u&&u.tag&&e.push(this.renderOpeningTag(u.tag)),t.content?t.content.forEach((function(t){e.push(r.renderNode(t))})):t.text?e.push((n=t.text,o={"&":"&","<":"<",">":">",'"':""","'":"'"},i=/[&<>"']/g,c=RegExp(i.source),n&&c.test(n)?n.replace(i,(function(t){return o[t]})):n)):u&&u.singleTag?e.push(this.renderTag(u.singleTag," /")):u&&u.html&&e.push(u.html),u&&u.tag&&e.push(this.renderClosingTag(u.tag)),t.marks&&t.marks.slice(0).reverse().forEach((function(t){var n=r.getMatchingMark(t);n&&e.push(r.renderClosingTag(n.tag))})),e.join("")}},{key:"renderTag",value:function(t,r){return t.constructor===String?"<".concat(t).concat(r,">"):t.map((function(t){if(t.constructor===String)return"<".concat(t).concat(r,">");var e="<".concat(t.tag);if(t.attrs)for(var n in t.attrs){var o=t.attrs[n];null!==o&&(e+=" ".concat(n,'="').concat(o,'"'))}return"".concat(e).concat(r,">")})).join("")}},{key:"renderOpeningTag",value:function(t){return this.renderTag(t,"")}},{key:"renderClosingTag",value:function(t){return t.constructor===String?"</".concat(t,">"):t.slice(0).reverse().map((function(t){return t.constructor===String?"</".concat(t,">"):"</".concat(t.tag,">")})).join("")}},{key:"getMatchingNode",value:function(t){if("function"==typeof this.nodes[t.type])return this.nodes[t.type](t)}},{key:"getMatchingMark",value:function(t){if("function"==typeof this.marks[t.type])return this.marks[t.type](t)}}]),t}();return Ci}(); |
{ | ||
"name": "storyblok-js-client", | ||
"version": "4.2.1", | ||
"type": "module", | ||
"version": "4.3.0", | ||
"description": "Universal JavaScript SDK for Storyblok's API", | ||
"types": "./types/index.d.ts", | ||
"main": "./dist/index.cjs.js", | ||
"module": "./dist/index.es.js", | ||
"main": "./dist/index.js", | ||
"module": "./dist/index.mjs", | ||
"unpkg": "./dist/index.standalone.js", | ||
@@ -17,2 +18,8 @@ "jsdelivr": "./dist/index.standalone.js", | ||
], | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
} | ||
}, | ||
"scripts": { | ||
@@ -55,3 +62,3 @@ "clean": "rimraf dist/", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.26.11", | ||
"rollup": "^2.68.0", | ||
"rollup-plugin-terser": "^7.0.2" | ||
@@ -62,3 +69,5 @@ }, | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"rollup-plugin-mjs-entry": "^0.1.1" | ||
}, | ||
"release": { | ||
@@ -65,0 +74,0 @@ "branches": [ |
113
README.md
@@ -1,8 +0,30 @@ | ||
# Universal JavaScript SDK for Storyblok's API | ||
[](https://npmjs.com/package/storyblok-js-client) | ||
<div align="center"> | ||
<a href="https://www.storyblok.com?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-js-client" align="center"> | ||
<img src="https://a.storyblok.com/f/88751/1776x360/4d075611c6/sb-js-sdk.png" alt="Storyblok Logo"> | ||
</a> | ||
<h1 align="center">Universal JavaScript SDK for Storyblok's API</h1> | ||
<p align="center">This client is a thin wrapper for the <a href="http://www.storyblok.com?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-js-client" target="_blank">Storyblok</a> API's to use in Node.js and the browser.</p> | ||
</div> | ||
This client is a thin wrapper for the Storyblok API's to use in Node.js and the browser. | ||
<p align="center"> | ||
<a href="https://npmjs.com/package/storyblok-js-client"> | ||
<img src="https://img.shields.io/npm/v/storyblok-js-client/latest.svg?style=flat-square&color=09b3af" alt="Storyblok JS Client" /> | ||
</a> | ||
<a href="https://npmjs.com/package/storyblok-js-client" rel="nofollow"> | ||
<img src="https://img.shields.io/npm/dt/storyblok-js-client.svg?style=appveyor&color=09b3af" alt="npm"> | ||
</a> | ||
<a href="https://discord.gg/jKrbAMz"> | ||
<img src="https://img.shields.io/discord/700316478792138842?label=Join%20Our%20Discord%20Community&style=appveyor&logo=discord&color=09b3af"> | ||
</a> | ||
<a href="https://twitter.com/intent/follow?screen_name=storyblok"> | ||
<img src="https://img.shields.io/badge/Follow-%40storyblok-09b3af?style=appveyor&logo=twitter" alt="Follow @Storyblok" /> | ||
</a><br/> | ||
<a href="https://app.storyblok.com/#!/signup?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-js-client"> | ||
<img src="https://img.shields.io/badge/Try%20Storyblok-Free-09b3af?style=appveyor&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAHqADAAQAAAABAAAAHgAAAADpiRU/AAACRElEQVRIDWNgGGmAEd3D3Js3LPrP8D8WXZwSPiMjw6qvPoHhyGYwIXNAbGpbCjbzP0MYuj0YFqMroBV/wCxmIeSju64eDNzMBJUxvP/9i2Hnq5cM1devMnz984eQsQwETeRhYWHgIcJiXqC6VHlFBjUeXgav40cIWkz1oLYXFmGwFBImaDFBHyObcOzdW4aSq5eRhRiE2dgYlpuYoYSKJi8vw3GgWnyAJIs/AuPu4scPGObd/fqVQZ+PHy7+6udPOBsXgySLDfn5GRYYmaKYJcXBgWLpsx8/GPa8foWiBhuHJIsl2DkYQqWksZkDFgP5PObcKYYff//iVAOTIDlx/QPqRMb/YSYBaWlOToZIaVkGZmAZSQiQ5OPtwHwacuo4iplMQEu6tXUZMhSUGDiYmBjylFQYvv/7x9B04xqKOnQOyT5GN+Df//8M59ASXKyMHLoyDD5JPtbj42OYrm+EYgg70JfuYuIoYmLs7AwMjIzA+uY/zjAnyWJpDk6GOFnCvrn86SOwmsNtKciVFAc1ileBHFDC67lzG10Yg0+SjzF0ownsf/OaofvOLYaDQJoQIGix94ljv1gIZI8Pv38zPvj2lQWYf3HGKbpDCFp85v07NnRN1OBTPY6JdRSGxcCw2k6sZuLVMZ5AV4s1TozPnGGFKbz+/PE7IJsHmC//MDMyhXBw8e6FyRFLv3Z0/IKuFqvFyIqAzd1PwBzJw8jAGPfVx38JshwlbIygxmYY43/GQmpais0ODDHuzevLMARHBcgIAQAbOJHZW0/EyQAAAABJRU5ErkJggg==" alt="Follow @Storyblok" /> | ||
</a> | ||
</p> | ||
## đ Usage | ||
## Install | ||
### Install | ||
@@ -14,5 +36,5 @@ ```sh | ||
## Usage | ||
### How to use it | ||
### Using the Content Deliver API | ||
#### Using the Content Deliver API | ||
@@ -30,3 +52,3 @@ ```javascript | ||
### Using the Content Management API | ||
#### Using the Content Management API | ||
@@ -49,3 +71,3 @@ ```javascript | ||
### Using the RichTextResolver separately | ||
#### Using the RichTextResolver separately | ||
@@ -56,8 +78,8 @@ You can import and use the `RichTextResolver` directly: | ||
// you should need to use the format when import | ||
// es - when you are in EsModules environment (like React, Vue apps, for example) | ||
// cjs - when you are in NodeJS environment | ||
// mjs - when you are in EsModules environment (like React, Vue apps, for example) | ||
// es - when you are in NodeJS environment | ||
// standalone - when you are in Browser environment directly | ||
import RichTextResolver from 'storyblok-js-client/dist/rich-text-resolver.es' | ||
// const RichTextResolver = require('storyblok-js-client/dist/rich-text-resolver.cjs') | ||
import RichTextResolver from 'storyblok-js-client/dist/rich-text-resolver.mjs' | ||
// const RichTextResolver = require('storyblok-js-client/dist/rich-text-resolver.es') | ||
@@ -69,3 +91,3 @@ const resolver = new RichTextResolver() | ||
### Using from the Browser directly | ||
#### Using from the Browser directly | ||
@@ -92,3 +114,3 @@ This package has a standalone version that contains all dependencies and you can use it to import and use our package inside the browser. | ||
### Note about use of Babel | ||
#### Note about use of Babel | ||
@@ -99,11 +121,11 @@ This package doesn't use the Babel by default in the final bundle. So, if you want a Babel transpiled file, you need to set the `es5/` prefix on import: | ||
// for CommonJS environments (NodeJS) | ||
const StoryblokClient = require('storyblok-js-client/dist/es5/index.cjs') | ||
const StoryblokClient = require('storyblok-js-client/dist/es5/index.js') | ||
// for EsModules environments | ||
import StoryblokClient from 'storyblok-js-client/dist/es5/index.es' | ||
import StoryblokClient from 'storyblok-js-client/dist/es5/index.mjs' | ||
``` | ||
## Documentation | ||
### Documentation | ||
### Class `Storyblok` | ||
#### Class `Storyblok` | ||
@@ -125,3 +147,3 @@ **Parameters** | ||
### Activating request cache | ||
#### Activating request cache | ||
@@ -141,3 +163,3 @@ The Storyblok client comes with a caching mechanism. | ||
``` | ||
### Passing response interceptor | ||
#### Passing response interceptor | ||
@@ -165,3 +187,3 @@ The Storyblok client lets you pass a function that serves as a response interceptor to axios. | ||
### Method `Storyblok#get` | ||
#### Method `Storyblok#get` | ||
@@ -173,3 +195,3 @@ With this method you can get single or multiple items. The multiple items are paginated and you will receive 25 items per page by default. If you want to get all items at once use the `getAll` method. | ||
- `path` String, Path (can be `cdn/stories`, `cdn/tags`, `cdn/datasources`, `cdn/links`) | ||
- `options` Object, Options can be found in the [API documentation](https://www.storyblok.com/docs/api/content-delivery). | ||
- `options` Object, Options can be found in the [API documentation](https://www.storyblok.com/docs/api/content-delivery?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-js-client). | ||
@@ -191,3 +213,3 @@ **Example** | ||
### Method `Storyblok#getAll` | ||
#### Method `Storyblok#getAll` | ||
@@ -199,3 +221,3 @@ With this method you can get all items at once. | ||
- `path` String, Path (can be `cdn/stories`, `cdn/tags`, `cdn/datasources`, `cdn/links`) | ||
- `options` Object, Options can be found in the [API documentation](https://www.storyblok.com/docs/api/content-delivery). | ||
- `options` Object, Options can be found in the [API documentation](https://www.storyblok.com/docs/api/content-delivery?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-js-client). | ||
- `entity` String, Storyblok entity like stories, links or datasource. It's optional. | ||
@@ -218,7 +240,7 @@ | ||
### Method `Storyblok#post` (only management api) | ||
#### Method `Storyblok#post` (only management api) | ||
**Parameters** | ||
- `[return]` Promise, Object `response` | ||
- `path` String, Path (`spaces/*`, ... see more at https://www.storyblok.com/docs/management-api/authentication) | ||
- `path` String, Path (`spaces/*`, ... see more at https://www.storyblok.com/docs/management-api/authentication?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-js-client) | ||
- `payload` Object | ||
@@ -241,7 +263,7 @@ | ||
### Method `Storyblok#put` (only management api) | ||
#### Method `Storyblok#put` (only management api) | ||
**Parameters** | ||
- `[return]` Promise, Object `response` | ||
- `path` String, Path (`spaces/*`, ... see more at https://www.storyblok.com/docs/management-api/authentication) | ||
- `path` String, Path (`spaces/*`, ... see more at https://www.storyblok.com/docs/management-api/authentication?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-js-client) | ||
- `payload` Object | ||
@@ -264,3 +286,3 @@ | ||
### Method `Storyblok#delete` (only management api) | ||
#### Method `Storyblok#delete` (only management api) | ||
@@ -285,3 +307,3 @@ **Parameters** | ||
### Method `Storyblok#flushCache` | ||
#### Method `Storyblok#flushCache` | ||
@@ -298,3 +320,3 @@ **Parameters** | ||
### Method `Storyblok#setComponentResolver` | ||
#### Method `Storyblok#setComponentResolver` | ||
@@ -331,3 +353,3 @@ **Parameters** | ||
### Method `Storyblok#richTextResolver.render` | ||
#### Method `Storyblok#richTextResolver.render` | ||
@@ -344,5 +366,5 @@ **Parameters** | ||
## Code examples | ||
### Code examples | ||
### Filter by content type values and path | ||
#### Filter by content type values and path | ||
@@ -389,3 +411,3 @@ ~~~javascript | ||
### Download all content from Storyblok | ||
#### Download all content from Storyblok | ||
@@ -432,3 +454,3 @@ Following a code example using the storyblok-js-client to backup all content on your local filesystem inside a 'backup' folder. | ||
### Initialize with a proxy server | ||
#### Initialize with a proxy server | ||
@@ -455,3 +477,3 @@ ~~~javascript | ||
### How to define a custom schema for the RichTextRenderer | ||
#### How to define a custom schema for the RichTextRenderer | ||
@@ -544,6 +566,19 @@ To define how to add some classes to specific html attributes rendered by the rich text renderer, you need your own schema definition. With this new schema, you can pass it as the `richTextSchema` option when instantiate the `StoryblokClient` class. You **must** follow the [default schema](https://github.com/storyblok/storyblok-js-client/blob/master/source/schema.js) to do this. | ||
## Contribution | ||
## đ Related Links | ||
Fork me on [Github](https://github.com/storyblok/storyblok-js-client). | ||
* **[Storyblok & Javascript on GitHub](https://github.com/search?q=org%3Astoryblok+topic%3Ajavascript)**: Check all of our Javascript open source repos; | ||
* **[Technology Hub](https://www.storyblok.com/technologies?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-js-client)**: We prepared technology hubs so that you can find selected beginner tutorials, videos, boilerplates, and even cheatsheets all in one place; | ||
* **[Storyblok CLI](https://github.com/storyblok/storyblok)**: A simple CLI for scaffolding Storyblok projects and fieldtypes. | ||
## âšī¸ More Resources | ||
### Support | ||
* Bugs or Feature Requests? [Submit an issue](../../../issues/new); | ||
* Do you have questions about Storyblok or you need help? [Join our Discord Community](https://discord.gg/jKrbAMz). | ||
### Contributing | ||
Please see our [contributing guidelines](https://github.com/storyblok/.github/blob/master/contributing.md) and our [code of conduct](https://www.storyblok.com/trust-center#code-of-conduct?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-js-client). | ||
This project use [semantic-release](https://semantic-release.gitbook.io/semantic-release/) for generate new versions by using commit messages and we use the Angular Convention to naming the commits. Check [this question](https://semantic-release.gitbook.io/semantic-release/support/faq#how-can-i-change-the-type-of-commits-that-trigger-a-release) about it in semantic-release FAQ. |
@@ -133,2 +133,23 @@ declare global { | ||
/** | ||
* @see https://www.storyblok.com/docs/api/content-delivery#filter-queries/overview for documentation and examples | ||
*/ | ||
export interface FilterQueryOperations { | ||
all_in_array?: string; | ||
gt_date?: string; | ||
gt_float?: number; | ||
gt_int?: number; | ||
/** Comma-separated list */ | ||
in?: string; | ||
/** Comma-separated list */ | ||
in_array?: string; | ||
like?: string; | ||
lt_date?: string; | ||
lt_float?: number; | ||
lt_int?: number; | ||
/** Comma-separated list */ | ||
not_in?: string; | ||
not_like?: string; | ||
} | ||
export interface StoriesParams { | ||
@@ -149,3 +170,3 @@ token?: string | ||
search_term?: string | ||
filter_query?: any | ||
filter_query?: Record<string, FilterQueryOperations> | ||
per_page?: number | ||
@@ -152,0 +173,0 @@ page?: string |
Sorry, the diff of this file is too big to display
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
561
2
Yes
304154
2
2035
+ Addedrollup-plugin-mjs-entry@0.1.1(transitive)