UNPKG

@shopware-ag/meteor-admin-sdk

Version:

The Meteor SDK for the Shopware Administration.

8 lines 257 kB
var a2=Object.defineProperty;var o2=(tt,ke,_n)=>ke in tt?a2(tt,ke,{enumerable:!0,configurable:!0,writable:!0,value:_n}):tt[ke]=_n;var ge=(tt,ke,_n)=>(o2(tt,typeof ke!="symbol"?ke+"":ke,_n),_n);(function(tt,ke){typeof exports=="object"&&typeof module!="undefined"?ke(exports):typeof define=="function"&&define.amd?define(["exports"],ke):(tt=typeof globalThis!="undefined"?globalThis:tt||self,ke(tt.sw={}))})(this,function(tt){var yh;"use strict";var ke=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function _n(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Cg=Object.prototype,Og=Cg.hasOwnProperty;function xg(e,n){return e!=null&&Og.call(e,n)}var Rg=xg,Pg=Array.isArray,pr=Pg,Lg=typeof ke=="object"&&ke&&ke.Object===Object&&ke,Sc=Lg,Ng=Sc,Dg=typeof self=="object"&&self&&self.Object===Object&&self,Mg=Ng||Dg||Function("return this")(),mn=Mg,Fg=mn,Ug=Fg.Symbol,$a=Ug,$c=$a,Ac=Object.prototype,jg=Ac.hasOwnProperty,Bg=Ac.toString,Oi=$c?$c.toStringTag:void 0;function zg(e){var n=jg.call(e,Oi),r=e[Oi];try{e[Oi]=void 0;var a=!0}catch{}var s=Bg.call(e);return a&&(n?e[Oi]=r:delete e[Oi]),s}var Wg=zg,Gg=Object.prototype,Hg=Gg.toString;function kg(e){return Hg.call(e)}var qg=kg,Ic=$a,Kg=Wg,Xg=qg,Yg="[object Null]",Zg="[object Undefined]",Tc=Ic?Ic.toStringTag:void 0;function Jg(e){return e==null?e===void 0?Zg:Yg:Tc&&Tc in Object(e)?Kg(e):Xg(e)}var xi=Jg;function Qg(e){return e!=null&&typeof e=="object"}var Br=Qg,Vg=xi,e_=Br,t_="[object Symbol]";function n_(e){return typeof e=="symbol"||e_(e)&&Vg(e)==t_}var vs=n_,r_=pr,i_=vs,a_=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o_=/^\w*$/;function s_(e,n){if(r_(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||i_(e)?!0:o_.test(e)||!a_.test(e)||n!=null&&e in Object(n)}var u_=s_;function f_(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}var Ri=f_,c_=xi,l_=Ri,p_="[object AsyncFunction]",d_="[object Function]",h_="[object GeneratorFunction]",v_="[object Proxy]";function g_(e){if(!l_(e))return!1;var n=c_(e);return n==d_||n==h_||n==p_||n==v_}var Cc=g_,__=mn,m_=__["__core-js_shared__"],y_=m_,gs=y_,Oc=function(){var e=/[^.]+$/.exec(gs&&gs.keys&&gs.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function b_(e){return!!Oc&&Oc in e}var w_=b_,E_=Function.prototype,S_=E_.toString;function $_(e){if(e!=null){try{return S_.call(e)}catch{}try{return e+""}catch{}}return""}var xc=$_,A_=Cc,I_=w_,T_=Ri,C_=xc,O_=/[\\^$.*+?()[\]{}|]/g,x_=/^\[object .+?Constructor\]$/,R_=Function.prototype,P_=Object.prototype,L_=R_.toString,N_=P_.hasOwnProperty,D_=RegExp("^"+L_.call(N_).replace(O_,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function M_(e){if(!T_(e)||I_(e))return!1;var n=A_(e)?D_:x_;return n.test(C_(e))}var F_=M_;function U_(e,n){return e==null?void 0:e[n]}var j_=U_,B_=F_,z_=j_;function W_(e,n){var r=z_(e,n);return B_(r)?r:void 0}var dr=W_,G_=dr,H_=G_(Object,"create"),Aa=H_,Rc=Aa;function k_(){this.__data__=Rc?Rc(null):{},this.size=0}var q_=k_;function K_(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var X_=K_,Y_=Aa,Z_="__lodash_hash_undefined__",J_=Object.prototype,Q_=J_.hasOwnProperty;function V_(e){var n=this.__data__;if(Y_){var r=n[e];return r===Z_?void 0:r}return Q_.call(n,e)?n[e]:void 0}var em=V_,tm=Aa,nm=Object.prototype,rm=nm.hasOwnProperty;function im(e){var n=this.__data__;return tm?n[e]!==void 0:rm.call(n,e)}var am=im,om=Aa,sm="__lodash_hash_undefined__";function um(e,n){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=om&&n===void 0?sm:n,this}var fm=um,cm=q_,lm=X_,pm=em,dm=am,hm=fm;function zr(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}zr.prototype.clear=cm,zr.prototype.delete=lm,zr.prototype.get=pm,zr.prototype.has=dm,zr.prototype.set=hm;var vm=zr;function gm(){this.__data__=[],this.size=0}var _m=gm;function mm(e,n){return e===n||e!==e&&n!==n}var Pc=mm,ym=Pc;function bm(e,n){for(var r=e.length;r--;)if(ym(e[r][0],n))return r;return-1}var Ia=bm,wm=Ia,Em=Array.prototype,Sm=Em.splice;function $m(e){var n=this.__data__,r=wm(n,e);if(r<0)return!1;var a=n.length-1;return r==a?n.pop():Sm.call(n,r,1),--this.size,!0}var Am=$m,Im=Ia;function Tm(e){var n=this.__data__,r=Im(n,e);return r<0?void 0:n[r][1]}var Cm=Tm,Om=Ia;function xm(e){return Om(this.__data__,e)>-1}var Rm=xm,Pm=Ia;function Lm(e,n){var r=this.__data__,a=Pm(r,e);return a<0?(++this.size,r.push([e,n])):r[a][1]=n,this}var Nm=Lm,Dm=_m,Mm=Am,Fm=Cm,Um=Rm,jm=Nm;function Wr(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}Wr.prototype.clear=Dm,Wr.prototype.delete=Mm,Wr.prototype.get=Fm,Wr.prototype.has=Um,Wr.prototype.set=jm;var Ta=Wr,Bm=dr,zm=mn,Wm=Bm(zm,"Map"),_s=Wm,Lc=vm,Gm=Ta,Hm=_s;function km(){this.size=0,this.__data__={hash:new Lc,map:new(Hm||Gm),string:new Lc}}var qm=km;function Km(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}var Xm=Km,Ym=Xm;function Zm(e,n){var r=e.__data__;return Ym(n)?r[typeof n=="string"?"string":"hash"]:r.map}var Ca=Zm,Jm=Ca;function Qm(e){var n=Jm(this,e).delete(e);return this.size-=n?1:0,n}var Vm=Qm,ey=Ca;function ty(e){return ey(this,e).get(e)}var ny=ty,ry=Ca;function iy(e){return ry(this,e).has(e)}var ay=iy,oy=Ca;function sy(e,n){var r=oy(this,e),a=r.size;return r.set(e,n),this.size+=r.size==a?0:1,this}var uy=sy,fy=qm,cy=Vm,ly=ny,py=ay,dy=uy;function Gr(e){var n=-1,r=e==null?0:e.length;for(this.clear();++n<r;){var a=e[n];this.set(a[0],a[1])}}Gr.prototype.clear=fy,Gr.prototype.delete=cy,Gr.prototype.get=ly,Gr.prototype.has=py,Gr.prototype.set=dy;var Nc=Gr,Dc=Nc,hy="Expected a function";function ms(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(hy);var r=function(){var a=arguments,s=n?n.apply(this,a):a[0],u=r.cache;if(u.has(s))return u.get(s);var c=e.apply(this,a);return r.cache=u.set(s,c)||u,c};return r.cache=new(ms.Cache||Dc),r}ms.Cache=Dc;var vy=ms,gy=vy,_y=500;function my(e){var n=gy(e,function(a){return r.size===_y&&r.clear(),a}),r=n.cache;return n}var yy=my,by=yy,wy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ey=/\\(\\)?/g,Sy=by(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(wy,function(r,a,s,u){n.push(s?u.replace(Ey,"$1"):a||r)}),n}),$y=Sy;function Ay(e,n){for(var r=-1,a=e==null?0:e.length,s=Array(a);++r<a;)s[r]=n(e[r],r,e);return s}var Iy=Ay,Mc=$a,Ty=Iy,Cy=pr,Oy=vs,xy=1/0,Fc=Mc?Mc.prototype:void 0,Uc=Fc?Fc.toString:void 0;function jc(e){if(typeof e=="string")return e;if(Cy(e))return Ty(e,jc)+"";if(Oy(e))return Uc?Uc.call(e):"";var n=e+"";return n=="0"&&1/e==-xy?"-0":n}var Ry=jc,Py=Ry;function Ly(e){return e==null?"":Py(e)}var Ny=Ly,Dy=pr,My=u_,Fy=$y,Uy=Ny;function jy(e,n){return Dy(e)?e:My(e,n)?[e]:Fy(Uy(e))}var By=jy,zy=xi,Wy=Br,Gy="[object Arguments]";function Hy(e){return Wy(e)&&zy(e)==Gy}var ky=Hy,Bc=ky,qy=Br,zc=Object.prototype,Ky=zc.hasOwnProperty,Xy=zc.propertyIsEnumerable,Yy=Bc(function(){return arguments}())?Bc:function(e){return qy(e)&&Ky.call(e,"callee")&&!Xy.call(e,"callee")},Wc=Yy,Zy=9007199254740991,Jy=/^(?:0|[1-9]\d*)$/;function Qy(e,n){var r=typeof e;return n=n==null?Zy:n,!!n&&(r=="number"||r!="symbol"&&Jy.test(e))&&e>-1&&e%1==0&&e<n}var Gc=Qy,Vy=9007199254740991;function eb(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Vy}var ys=eb,tb=vs,nb=1/0;function rb(e){if(typeof e=="string"||tb(e))return e;var n=e+"";return n=="0"&&1/e==-nb?"-0":n}var ib=rb,ab=By,ob=Wc,sb=pr,ub=Gc,fb=ys,cb=ib;function lb(e,n,r){n=ab(n,e);for(var a=-1,s=n.length,u=!1;++a<s;){var c=cb(n[a]);if(!(u=e!=null&&r(e,c)))break;e=e[c]}return u||++a!=s?u:(s=e==null?0:e.length,!!s&&fb(s)&&ub(c,s)&&(sb(e)||ob(e)))}var pb=lb,db=Rg,hb=pb;function vb(e,n){return e!=null&&hb(e,n,db)}var gb=vb;function Hc(){return String(Date.now().toString(36)+Math.random().toString(36).substr(2))}function Oa(e){return e!==null&&typeof e=="object"}function Pi(){return new URLSearchParams(window.location.search).get("location-id")}function _b(){const e=window.location;return new URL(e.pathname,e.origin).toString()}function Li(e,n){return Oa(n)&&n.__type__&&n.__type__===e}function mb(e,n){return gb(e,n)}function bs(e,n,r="root"){for(let a in e){const s=e[a];if(n.apply(this,[e,a,s,r]),Oa(s)){let u=r+"."+a;bs(s,n,u)}}}function yb(e){return e!==Object(e)||e===null||e===void 0}function kc(e){return typeof e!="string"?e:e.replace(/^root\./,"")}function qc(e){if(typeof e!="string"||e==="")return;const n=new URL(e);return n.origin===window.location.origin?{baseUrl:n.hostname,permissions:{additional:["*"],create:["*"],read:["*"],update:["*"],delete:["*"]}}:Object.values(window._swsdk.adminExtensions).find(r=>new URL(r.baseUrl).hostname===n.hostname)}class In extends Error{constructor(r,a){super(`Your app is missing the privileges ${a.join(", ")} for action "${r}".`);ge(this,"missingPrivileges");ge(this,"messageType");this.missingPrivileges=a,this.messageType=r,Object.setPrototypeOf(this,In.prototype)}toJSON(){return{__type__:"__MissingPrivilegesError__",__messageType__:this.messageType,__data__:this.missingPrivileges}}}const bb=({send:e,handle:n})=>{const r={};let a=!1;function s(){a||(a=!0,n("__function__",async({args:u,id:c})=>await Promise.resolve(r[c](...u))))}return{name:"function",serialize:({value:u})=>{if(typeof u=="function"){const c=Hc();return r[c]=u,s(),{__type__:"__function__",id:c,origin:window.origin}}},deserialize:({value:u,event:c})=>{var d;const p=(d=c==null?void 0:c.source)!=null?d:window;if(Oa(u)&&u.__type__&&u.__type__==="__function__"&&typeof u.id=="string"){const m=u.id,y=u.origin;return(...w)=>e("__function__",{args:w,id:m},p,y)}}}};var wb=Ta;function Eb(){this.__data__=new wb,this.size=0}var Sb=Eb;function $b(e){var n=this.__data__,r=n.delete(e);return this.size=n.size,r}var Ab=$b;function Ib(e){return this.__data__.get(e)}var Tb=Ib;function Cb(e){return this.__data__.has(e)}var Ob=Cb,xb=Ta,Rb=_s,Pb=Nc,Lb=200;function Nb(e,n){var r=this.__data__;if(r instanceof xb){var a=r.__data__;if(!Rb||a.length<Lb-1)return a.push([e,n]),this.size=++r.size,this;r=this.__data__=new Pb(a)}return r.set(e,n),this.size=r.size,this}var Db=Nb,Mb=Ta,Fb=Sb,Ub=Ab,jb=Tb,Bb=Ob,zb=Db;function Hr(e){var n=this.__data__=new Mb(e);this.size=n.size}Hr.prototype.clear=Fb,Hr.prototype.delete=Ub,Hr.prototype.get=jb,Hr.prototype.has=Bb,Hr.prototype.set=zb;var Wb=Hr;function Gb(e,n){for(var r=-1,a=e==null?0:e.length;++r<a&&n(e[r],r,e)!==!1;);return e}var Hb=Gb,kb=dr,qb=function(){try{var e=kb(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Kb=qb,Kc=Kb;function Xb(e,n,r){n=="__proto__"&&Kc?Kc(e,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[n]=r}var Xc=Xb,Yb=Xc,Zb=Pc,Jb=Object.prototype,Qb=Jb.hasOwnProperty;function Vb(e,n,r){var a=e[n];(!(Qb.call(e,n)&&Zb(a,r))||r===void 0&&!(n in e))&&Yb(e,n,r)}var Yc=Vb,e0=Yc,t0=Xc;function n0(e,n,r,a){var s=!r;r||(r={});for(var u=-1,c=n.length;++u<c;){var p=n[u],d=a?a(r[p],e[p],p,r,e):void 0;d===void 0&&(d=e[p]),s?t0(r,p,d):e0(r,p,d)}return r}var xa=n0;function r0(e,n){for(var r=-1,a=Array(e);++r<e;)a[r]=n(r);return a}var i0=r0,Ra={exports:{}};function a0(){return!1}var o0=a0;(function(e,n){var r=mn,a=o0,s=n&&!n.nodeType&&n,u=s&&!0&&e&&!e.nodeType&&e,c=u&&u.exports===s,p=c?r.Buffer:void 0,d=p?p.isBuffer:void 0,m=d||a;e.exports=m})(Ra,Ra.exports);var s0=xi,u0=ys,f0=Br,c0="[object Arguments]",l0="[object Array]",p0="[object Boolean]",d0="[object Date]",h0="[object Error]",v0="[object Function]",g0="[object Map]",_0="[object Number]",m0="[object Object]",y0="[object RegExp]",b0="[object Set]",w0="[object String]",E0="[object WeakMap]",S0="[object ArrayBuffer]",$0="[object DataView]",A0="[object Float32Array]",I0="[object Float64Array]",T0="[object Int8Array]",C0="[object Int16Array]",O0="[object Int32Array]",x0="[object Uint8Array]",R0="[object Uint8ClampedArray]",P0="[object Uint16Array]",L0="[object Uint32Array]",qe={};qe[A0]=qe[I0]=qe[T0]=qe[C0]=qe[O0]=qe[x0]=qe[R0]=qe[P0]=qe[L0]=!0,qe[c0]=qe[l0]=qe[S0]=qe[p0]=qe[$0]=qe[d0]=qe[h0]=qe[v0]=qe[g0]=qe[_0]=qe[m0]=qe[y0]=qe[b0]=qe[w0]=qe[E0]=!1;function N0(e){return f0(e)&&u0(e.length)&&!!qe[s0(e)]}var D0=N0;function M0(e){return function(n){return e(n)}}var ws=M0,Ni={exports:{}};(function(e,n){var r=Sc,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,u=s&&s.exports===a,c=u&&r.process,p=function(){try{var d=s&&s.require&&s.require("util").types;return d||c&&c.binding&&c.binding("util")}catch{}}();e.exports=p})(Ni,Ni.exports);var F0=D0,U0=ws,Zc=Ni.exports,Jc=Zc&&Zc.isTypedArray,j0=Jc?U0(Jc):F0,B0=j0,z0=i0,W0=Wc,G0=pr,H0=Ra.exports,k0=Gc,q0=B0,K0=Object.prototype,X0=K0.hasOwnProperty;function Y0(e,n){var r=G0(e),a=!r&&W0(e),s=!r&&!a&&H0(e),u=!r&&!a&&!s&&q0(e),c=r||a||s||u,p=c?z0(e.length,String):[],d=p.length;for(var m in e)(n||X0.call(e,m))&&!(c&&(m=="length"||s&&(m=="offset"||m=="parent")||u&&(m=="buffer"||m=="byteLength"||m=="byteOffset")||k0(m,d)))&&p.push(m);return p}var Qc=Y0,Z0=Object.prototype;function J0(e){var n=e&&e.constructor,r=typeof n=="function"&&n.prototype||Z0;return e===r}var Es=J0;function Q0(e,n){return function(r){return e(n(r))}}var Vc=Q0,V0=Vc,ew=V0(Object.keys,Object),tw=ew,nw=Es,rw=tw,iw=Object.prototype,aw=iw.hasOwnProperty;function ow(e){if(!nw(e))return rw(e);var n=[];for(var r in Object(e))aw.call(e,r)&&r!="constructor"&&n.push(r);return n}var sw=ow,uw=Cc,fw=ys;function cw(e){return e!=null&&fw(e.length)&&!uw(e)}var el=cw,lw=Qc,pw=sw,dw=el;function hw(e){return dw(e)?lw(e):pw(e)}var Ss=hw,vw=xa,gw=Ss;function _w(e,n){return e&&vw(n,gw(n),e)}var mw=_w;function yw(e){var n=[];if(e!=null)for(var r in Object(e))n.push(r);return n}var bw=yw,ww=Ri,Ew=Es,Sw=bw,$w=Object.prototype,Aw=$w.hasOwnProperty;function Iw(e){if(!ww(e))return Sw(e);var n=Ew(e),r=[];for(var a in e)a=="constructor"&&(n||!Aw.call(e,a))||r.push(a);return r}var Tw=Iw,Cw=Qc,Ow=Tw,xw=el;function Rw(e){return xw(e)?Cw(e,!0):Ow(e)}var $s=Rw,Pw=xa,Lw=$s;function Nw(e,n){return e&&Pw(n,Lw(n),e)}var Dw=Nw,As={exports:{}};(function(e,n){var r=mn,a=n&&!n.nodeType&&n,s=a&&!0&&e&&!e.nodeType&&e,u=s&&s.exports===a,c=u?r.Buffer:void 0,p=c?c.allocUnsafe:void 0;function d(m,y){if(y)return m.slice();var w=m.length,L=p?p(w):new m.constructor(w);return m.copy(L),L}e.exports=d})(As,As.exports);function Mw(e,n){var r=-1,a=e.length;for(n||(n=Array(a));++r<a;)n[r]=e[r];return n}var Fw=Mw;function Uw(e,n){for(var r=-1,a=e==null?0:e.length,s=0,u=[];++r<a;){var c=e[r];n(c,r,e)&&(u[s++]=c)}return u}var jw=Uw;function Bw(){return[]}var tl=Bw,zw=jw,Ww=tl,Gw=Object.prototype,Hw=Gw.propertyIsEnumerable,nl=Object.getOwnPropertySymbols,kw=nl?function(e){return e==null?[]:(e=Object(e),zw(nl(e),function(n){return Hw.call(e,n)}))}:Ww,Is=kw,qw=xa,Kw=Is;function Xw(e,n){return qw(e,Kw(e),n)}var Yw=Xw;function Zw(e,n){for(var r=-1,a=n.length,s=e.length;++r<a;)e[s+r]=n[r];return e}var rl=Zw,Jw=Vc,Qw=Jw(Object.getPrototypeOf,Object),il=Qw,Vw=rl,e1=il,t1=Is,n1=tl,r1=Object.getOwnPropertySymbols,i1=r1?function(e){for(var n=[];e;)Vw(n,t1(e)),e=e1(e);return n}:n1,al=i1,a1=xa,o1=al;function s1(e,n){return a1(e,o1(e),n)}var u1=s1,f1=rl,c1=pr;function l1(e,n,r){var a=n(e);return c1(e)?a:f1(a,r(e))}var ol=l1,p1=ol,d1=Is,h1=Ss;function v1(e){return p1(e,h1,d1)}var g1=v1,_1=ol,m1=al,y1=$s;function b1(e){return _1(e,y1,m1)}var w1=b1,E1=dr,S1=mn,$1=E1(S1,"DataView"),A1=$1,I1=dr,T1=mn,C1=I1(T1,"Promise"),O1=C1,x1=dr,R1=mn,P1=x1(R1,"Set"),L1=P1,N1=dr,D1=mn,M1=N1(D1,"WeakMap"),F1=M1,Ts=A1,Cs=_s,Os=O1,xs=L1,Rs=F1,sl=xi,kr=xc,ul="[object Map]",U1="[object Object]",fl="[object Promise]",cl="[object Set]",ll="[object WeakMap]",pl="[object DataView]",j1=kr(Ts),B1=kr(Cs),z1=kr(Os),W1=kr(xs),G1=kr(Rs),hr=sl;(Ts&&hr(new Ts(new ArrayBuffer(1)))!=pl||Cs&&hr(new Cs)!=ul||Os&&hr(Os.resolve())!=fl||xs&&hr(new xs)!=cl||Rs&&hr(new Rs)!=ll)&&(hr=function(e){var n=sl(e),r=n==U1?e.constructor:void 0,a=r?kr(r):"";if(a)switch(a){case j1:return pl;case B1:return ul;case z1:return fl;case W1:return cl;case G1:return ll}return n});var Ps=hr,H1=Object.prototype,k1=H1.hasOwnProperty;function q1(e){var n=e.length,r=new e.constructor(n);return n&&typeof e[0]=="string"&&k1.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var K1=q1,X1=mn,Y1=X1.Uint8Array,Z1=Y1,dl=Z1;function J1(e){var n=new e.constructor(e.byteLength);return new dl(n).set(new dl(e)),n}var Ls=J1,Q1=Ls;function V1(e,n){var r=n?Q1(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var eE=V1,tE=/\w*$/;function nE(e){var n=new e.constructor(e.source,tE.exec(e));return n.lastIndex=e.lastIndex,n}var rE=nE,hl=$a,vl=hl?hl.prototype:void 0,gl=vl?vl.valueOf:void 0;function iE(e){return gl?Object(gl.call(e)):{}}var aE=iE,oE=Ls;function sE(e,n){var r=n?oE(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var uE=sE,fE=Ls,cE=eE,lE=rE,pE=aE,dE=uE,hE="[object Boolean]",vE="[object Date]",gE="[object Map]",_E="[object Number]",mE="[object RegExp]",yE="[object Set]",bE="[object String]",wE="[object Symbol]",EE="[object ArrayBuffer]",SE="[object DataView]",$E="[object Float32Array]",AE="[object Float64Array]",IE="[object Int8Array]",TE="[object Int16Array]",CE="[object Int32Array]",OE="[object Uint8Array]",xE="[object Uint8ClampedArray]",RE="[object Uint16Array]",PE="[object Uint32Array]";function LE(e,n,r){var a=e.constructor;switch(n){case EE:return fE(e);case hE:case vE:return new a(+e);case SE:return cE(e,r);case $E:case AE:case IE:case TE:case CE:case OE:case xE:case RE:case PE:return dE(e,r);case gE:return new a;case _E:case bE:return new a(e);case mE:return lE(e);case yE:return new a;case wE:return pE(e)}}var NE=LE,DE=Ri,_l=Object.create,ME=function(){function e(){}return function(n){if(!DE(n))return{};if(_l)return _l(n);e.prototype=n;var r=new e;return e.prototype=void 0,r}}(),FE=ME,UE=FE,jE=il,BE=Es;function zE(e){return typeof e.constructor=="function"&&!BE(e)?UE(jE(e)):{}}var WE=zE,GE=Ps,HE=Br,kE="[object Map]";function qE(e){return HE(e)&&GE(e)==kE}var KE=qE,XE=KE,YE=ws,ml=Ni.exports,yl=ml&&ml.isMap,ZE=yl?YE(yl):XE,JE=ZE,QE=Ps,VE=Br,eS="[object Set]";function tS(e){return VE(e)&&QE(e)==eS}var nS=tS,rS=nS,iS=ws,bl=Ni.exports,wl=bl&&bl.isSet,aS=wl?iS(wl):rS,oS=aS,sS=Wb,uS=Hb,fS=Yc,cS=mw,lS=Dw,pS=As.exports,dS=Fw,hS=Yw,vS=u1,gS=g1,_S=w1,mS=Ps,yS=K1,bS=NE,wS=WE,ES=pr,SS=Ra.exports,$S=JE,AS=Ri,IS=oS,TS=Ss,CS=$s,OS=1,xS=2,RS=4,El="[object Arguments]",PS="[object Array]",LS="[object Boolean]",NS="[object Date]",DS="[object Error]",Sl="[object Function]",MS="[object GeneratorFunction]",FS="[object Map]",US="[object Number]",$l="[object Object]",jS="[object RegExp]",BS="[object Set]",zS="[object String]",WS="[object Symbol]",GS="[object WeakMap]",HS="[object ArrayBuffer]",kS="[object DataView]",qS="[object Float32Array]",KS="[object Float64Array]",XS="[object Int8Array]",YS="[object Int16Array]",ZS="[object Int32Array]",JS="[object Uint8Array]",QS="[object Uint8ClampedArray]",VS="[object Uint16Array]",e$="[object Uint32Array]",We={};We[El]=We[PS]=We[HS]=We[kS]=We[LS]=We[NS]=We[qS]=We[KS]=We[XS]=We[YS]=We[ZS]=We[FS]=We[US]=We[$l]=We[jS]=We[BS]=We[zS]=We[WS]=We[JS]=We[QS]=We[VS]=We[e$]=!0,We[DS]=We[Sl]=We[GS]=!1;function Pa(e,n,r,a,s,u){var c,p=n&OS,d=n&xS,m=n&RS;if(r&&(c=s?r(e,a,s,u):r(e)),c!==void 0)return c;if(!AS(e))return e;var y=ES(e);if(y){if(c=yS(e),!p)return dS(e,c)}else{var w=mS(e),L=w==Sl||w==MS;if(SS(e))return pS(e,p);if(w==$l||w==El||L&&!s){if(c=d||L?{}:wS(e),!p)return d?vS(e,lS(c,e)):hS(e,cS(c,e))}else{if(!We[w])return s?e:{};c=bS(e,w,p)}}u||(u=new sS);var z=u.get(e);if(z)return z;u.set(e,c),IS(e)?e.forEach(function(X){c.add(Pa(X,n,r,X,e,u))}):$S(e)&&e.forEach(function(X,ne){c.set(ne,Pa(X,n,r,ne,e,u))});var Y=m?d?_S:gS:d?CS:TS,F=y?void 0:Y(e);return uS(F||e,function(X,ne){F&&(ne=X,X=e[ne]),fS(c,ne,Pa(X,n,r,ne,e,u))}),c}var t$=Pa,n$=t$,r$=1,i$=4;function a$(e){return n$(e,r$|i$)}var Ns=a$;let o$=1,s$=null;class qr{constructor(n=o$,r=s$){ge(this,"title");ge(this,"page");ge(this,"limit");ge(this,"term");ge(this,"filters");ge(this,"ids");ge(this,"queries");ge(this,"associations");ge(this,"postFilter");ge(this,"sortings");ge(this,"aggregations");ge(this,"grouping");ge(this,"fields");ge(this,"groupFields");ge(this,"totalCountMode");ge(this,"includes");this.page=n,this.limit=r,this.term=null,this.title=null,this.filters=[],this.includes=null,this.ids=[],this.queries=[],this.associations=[],this.postFilter=[],this.sortings=[],this.aggregations=[],this.grouping=[],this.groupFields=[],this.fields=[],this.totalCountMode=1}static fromCriteria(n){return Ns(n)}parse(){const n={};return this.ids.length>0&&(n.ids=this.ids.join("|")),this.page!==null&&(n.page=this.page),this.limit!==null&&(n.limit=this.limit),this.term!==null&&(n.term=this.term),this.queries.length>0&&(n.query=this.queries),this.filters.length>0&&(n.filter=this.filters),this.postFilter.length>0&&(n["post-filter"]=this.postFilter),this.sortings.length>0&&(n.sort=this.sortings),this.aggregations.length>0&&(n.aggregations=this.aggregations),this.groupFields.length>0&&(n.groupFields=this.groupFields),this.grouping.length>0&&(n.grouping=this.grouping),this.fields.length>0&&(n.fields=this.fields),this.associations.length>0&&(n.associations={},this.associations.forEach(r=>{!n.associations||(n.associations[r.association]=r.criteria.parse())})),this.includes!==null&&(n.includes=this.includes),this.totalCountMode!==null&&(n["total-count-mode"]=this.totalCountMode),n}setTitle(n){return this.title=n,this}getTitle(){return this.title}setIds(n){return this.ids=n,this}setTotalCountMode(n){return typeof n!="number"&&(this.totalCountMode=null),this.totalCountMode=n<0||n>2?null:n,this}setPage(n){return this.page=n,this}setLimit(n){return this.limit=n,this}setTerm(n){return this.term=n,this}addFilter(n){return this.filters.push(n),this}addIncludes(n){return Object.entries(n).forEach(([r,a])=>{this.includes===null&&(this.includes={}),this.includes[r]||(this.includes[r]=[]),this.includes[r].push(...a)}),this}addPostFilter(n){return this.postFilter.push(n),this}addSorting(n){return this.sortings.push(n),this}addQuery(n,r,a=null){const s={score:r,query:n};return a&&(s[a]=a),this.queries.push(s),this}addGroupField(n){return this.groupFields.push(n),this}addGrouping(n){return this.grouping.push(n),this}addFields(...n){return this.fields.push(...n),this}addAggregation(n){return this.aggregations.push(n),this}addAssociation(n){const r=n.split(".");let a=this;return r.forEach(s=>{a=a.getAssociation(s)}),this}getAssociation(n){const r=n.split(".");let a=this;return r.forEach(s=>{a.hasAssociation(s)||a.associations.push({association:s,criteria:new qr(null,null)}),a=a.getAssociationCriteria(s)}),a}getAssociationCriteria(n){let r=null;return this.associations.forEach(a=>{a.association===n&&(r=a.criteria)}),r}getLimit(){var n;return(n=this.limit)!=null?n:0}getPage(){var n;return(n=this.page)!=null?n:0}getCriteriaData(){return{page:this.page,limit:this.limit,term:this.term,title:this.title,filters:this.filters,ids:this.ids,queries:this.queries,associations:this.associations,postFilter:this.postFilter,sortings:this.sortings,aggregations:this.aggregations,grouping:this.grouping,fields:this.fields,groupFields:this.groupFields,totalCountMode:this.totalCountMode,includes:this.includes}}hasAssociation(n){return this.associations.some(r=>r.association===n)}resetSorting(){this.sortings=[]}static avg(n,r){return{type:"avg",name:n,field:r}}static count(n,r){return{type:"count",name:n,field:r}}static max(n,r){return{type:"max",name:n,field:r}}static min(n,r){return{type:"min",name:n,field:r}}static stats(n,r){return{type:"stats",name:n,field:r}}static sum(n,r){return{type:"sum",name:n,field:r}}static terms(n,r,a=null,s=null,u=null){return{type:"terms",name:n,field:r,limit:a,sort:s,aggregation:u}}static entityAggregation(n,r,a){return{type:"entity",name:n,field:r,definition:a}}static filter(n,r,a){return{type:"filter",name:n,filter:r,aggregation:a}}static histogram(n,r,a,s,u,c){return{type:"histogram",name:n,field:r,interval:a,format:s,aggregation:u,timeZone:c}}static sort(n,r="ASC",a=!1){return{field:n,order:r,naturalSorting:a}}static naturalSorting(n,r="ASC"){return{field:n,order:r,naturalSorting:!0}}static countSorting(n,r="ASC"){return{field:n,order:r,naturalSorting:!1,type:"count"}}static contains(n,r){return{type:"contains",field:n,value:r}}static prefix(n,r){return{type:"prefix",field:n,value:r}}static suffix(n,r){return{type:"suffix",field:n,value:r}}static equalsAny(n,r){return{type:"equalsAny",field:n,value:r.join("|")}}static range(n,r){return{type:"range",field:n,parameters:r}}static equals(n,r){return{type:"equals",field:n,value:r}}static not(n,r=[]){return{type:"not",operator:n,queries:r}}static multi(n,r=[]){return{type:"multi",operator:n,queries:r}}}const u$=()=>({name:"criteria",serialize:({value:e,customizerMethod:n,seen:r,path:a})=>{if(e instanceof qr)return{__type__:"__Criteria__",data:n(e.getCriteriaData(),r,a)}},deserialize:({value:e,customizerMethod:n})=>{if(Li("__Criteria__",e)&&typeof e.data=="object"){const r=e.data,a=new qr;return a.setPage(r.page),a.setLimit(r.limit),a.setTerm(r.term),r.title!==null&&a.setTitle(r.title),r.filters.forEach(s=>{a.addFilter(s)}),a.setIds(r.ids),r.queries.forEach(({query:s,score:u})=>{a.addQuery(s,u)}),r.associations.forEach(s=>{a.associations.push(n(s))}),r.postFilter.forEach(s=>{a.addPostFilter(s)}),r.sortings.forEach(s=>{a.addSorting(s)}),r.aggregations.forEach(s=>{a.addAggregation(s)}),r.grouping.forEach(s=>{a.addGrouping(s)}),r.fields.forEach(s=>{a.addFields(s)}),r.groupFields.forEach(s=>{a.addGroupField(s)}),r.includes&&a.addIncludes(r.includes),a.setTotalCountMode(r.totalCountMode),a}}});let f$=(e,n,r)=>{e[n]=r};class c${constructor(n,r,a,s={}){ge(this,"id");ge(this,"_origin");ge(this,"_entityName");ge(this,"_draft");ge(this,"_isDirty");ge(this,"_isNew");var c,p;this.id=n,this._origin=s.originData?Ns(s.originData):Ns(a),this._entityName=r,this._draft=a,this._isDirty=(c=s.isDirty)!=null?c:!1,this._isNew=(p=s.isNew)!=null?p:!1;const u=this;return new Proxy(this._draft,{get(d,m){return m in u._draft?u._draft[m]:u[m]},set(d,m,y){return f$(u._draft,m,y),u._isDirty=!0,!0}})}__identifier__(){return"Entity"}markAsNew(){this._isNew=!0}isNew(){return this._isNew}getIsDirty(){return this._isDirty}getOrigin(){return this._origin}getDraft(){return this._draft}getEntityName(){return this._entityName}}const Al=function(n,r,a,s){return new c$(n,r,a,s)},l$=()=>({name:"entity",serialize:({value:e,customizerMethod:n,seen:r,path:a})=>{if(!(!Oa(e)||typeof e.__identifier__!="function"||e.__identifier__()!=="Entity"))return{__type__:"__Entity__",__id__:e.id,__entityName__:e._entityName,__isDirty__:e._isDirty,__isNew__:e._isNew,__origin__:n(e._origin,r,a),__draft__:n(e._draft,r,a)}},deserialize:({value:e,customizerMethod:n})=>{if(Li("__Entity__",e)&&typeof e.__origin__=="object")return new Al(e.__id__,e.__entityName__,n(e.__draft__),{originData:n(e.__origin__),isDirty:e.__isDirty__,isNew:e.__isNew__})}});class Kr extends Array{constructor(r,a,s,u=null,c=[],p=null,d=null){super();ge(this,"entity");ge(this,"source");ge(this,"context");ge(this,"criteria");ge(this,"aggregations");ge(this,"total");ge(this,"first");ge(this,"last");ge(this,"remove");ge(this,"has");ge(this,"get");ge(this,"getAt");ge(this,"getIds");ge(this,"add");ge(this,"addAt");ge(this,"moveItem");ge(this,"__identifier__");this.entity=a,this.source=r,this.context=s,this.criteria=u,this.aggregations=d,this.total=p,this.push(...c),this.__identifier__=()=>"EntityCollection",this.first=function(){return this.length<=0?null:this[0]},this.last=function(){return this.length<=0?null:this[this.length-1]},this.remove=function(y){const w=this.findIndex(L=>L.id===y);return w<0?!1:(this.splice(w,1),!0)},this.has=function(y){return this.some(w=>w.id===y)},this.get=function(y){const w=this.find(L=>L.id===y);return typeof w!="undefined"?w:null},this.getAt=function(y){const w=this[y];return typeof w!="undefined"?w:null},this.getIds=function(){return this.map(y=>y.id)},this.add=function(y){this.push(y)},this.addAt=function(y,w){if(typeof w=="undefined"){this.add(y);return}this.splice(w,0,y)},this.moveItem=function(y,w=null){if(w===null&&(w=this.length),y<0||y>=this.length)return null;if(w===y)return this.getAt(y);const L=this.find((F,X)=>X===y);if(typeof L=="undefined")return null;const z=this.filter((F,X)=>X!==y),Y=[...z.slice(0,w),L,...z.slice(w)];return this.splice(0,this.length,...Y),L},this.filter=function(y,w){const L=Object.getPrototypeOf(this).filter.call(this,y,w);return new Kr(this.source,this.entity,this.context,this.criteria,L,this.total,this.aggregations)}}static fromCollection(r){return new Kr(r.source,r.entity,r.context,r.criteria===null?r.criteria:qr.fromCriteria(r.criteria),r,r.total,r.aggregations)}}const p$=()=>({name:"entity-collection",serialize:({value:e,customizerMethod:n,seen:r,path:a})=>{if(e instanceof Kr||(e==null?void 0:e.__identifier__)&&e.__identifier__()==="EntityCollection")return n({__type__:"__EntityCollection__",__source__:e.source,__entityName__:e.entity,__context__:e.context,__criteria__:e.criteria,__entities__:Array.from(e),__total__:e.total,__aggregations__:e.aggregations},r,a)},deserialize:({value:e,customizerMethod:n})=>{if(Li("__EntityCollection__",e))return new Kr(e.__source__,e.__entityName__,e.__context__,n(e.__criteria__),n(e.__entities__),e.__total__,e.__aggregations__)}});class Di extends Error{constructor(r,a){super(r);ge(this,"code",500);a&&(this.code=a)}toJSON(){return{__type__:"__HandleError__",__code__:this.code,__message__:this.message}}}const d$=()=>({name:"handle-error",serialize:()=>{},deserialize:({value:e})=>{if(Li("__HandleError__",e))return new Di(e.__message__,e.__code__)}});var Xr={exports:{}};/** * @license * Lodash <https://lodash.com/> * Copyright OpenJS Foundation and other contributors <https://openjsf.org/> * Released under MIT license <https://lodash.com/license> * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(e,n){(function(){var r,a="4.17.21",s=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",c="Expected a function",p="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",m=500,y="__lodash_placeholder__",w=1,L=2,z=4,Y=1,F=2,X=1,ne=2,ie=4,ae=8,Ce=16,j=32,oe=64,ee=128,de=256,Ue=512,ot=30,Ye="...",Ve=800,ut=16,kt=1,St=2,Vt=3,x=1/0,T=9007199254740991,M=17976931348623157e292,J=0/0,Q=4294967295,Ae=Q-1,ye=Q>>>1,le=[["ary",ee],["bind",X],["bindKey",ne],["curry",ae],["curryRight",Ce],["flip",Ue],["partial",j],["partialRight",oe],["rearg",de]],Se="[object Arguments]",$e="[object Array]",Oe="[object AsyncFunction]",Be="[object Boolean]",st="[object Date]",ln="[object DOMException]",Nt="[object Error]",Dt="[object Function]",pn="[object GeneratorFunction]",vt="[object Map]",Mt="[object Number]",Wu="[object Null]",en="[object Object]",Ir="[object Promise]",na="[object Proxy]",Ln="[object RegExp]",$t="[object Set]",Qn="[object String]",Tr="[object Symbol]",vo="[object Undefined]",Vn="[object WeakMap]",go="[object WeakSet]",er="[object ArrayBuffer]",Nn="[object DataView]",ui="[object Float32Array]",fi="[object Float64Array]",ci="[object Int8Array]",li="[object Int16Array]",pi="[object Int32Array]",Cr="[object Uint8Array]",ra="[object Uint8ClampedArray]",ia="[object Uint16Array]",Or="[object Uint32Array]",_o=/\b__p \+= '';/g,Gu=/\b(__p \+=) '' \+/g,wn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mo=/&(?:amp|lt|gt|quot|#39);/g,yo=/[&<>"']/g,bo=RegExp(mo.source),Hu=RegExp(yo.source),ku=/<%-([\s\S]+?)%>/g,qu=/<%([\s\S]+?)%>/g,wo=/<%=([\s\S]+?)%>/g,Ku=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xu=/^\w*$/,Yu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aa=/[\\^$.*+?()[\]{}|]/g,Zu=RegExp(aa.source),oa=/^\s+/,Eo=/\s/,Ju=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Qu=/\{\n\/\* \[wrapped with (.+)\] \*/,Vu=/,? & /,ef=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tf=/[()=,{}\[\]\/\s]/,nf=/\\(\\)?/g,rf=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,So=/\w*$/,af=/^[-+]0x[0-9a-f]+$/i,of=/^0b[01]+$/i,sf=/^\[object .+?Constructor\]$/,uf=/^0o[0-7]+$/i,ff=/^(?:0|[1-9]\d*)$/,cf=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,di=/($^)/,$o=/['\n\r\u2028\u2029\\]/g,En="\\ud800-\\udfff",Ao="\\u0300-\\u036f",tr="\\ufe20-\\ufe2f",lf="\\u20d0-\\u20ff",xr=Ao+tr+lf,hi="\\u2700-\\u27bf",Io="a-z\\xdf-\\xf6\\xf8-\\xff",pf="\\xac\\xb1\\xd7\\xf7",sa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",df="\\u2000-\\u206f",hf=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",v="A-Z\\xc0-\\xd6\\xd8-\\xde",E="\\ufe0e\\ufe0f",_=pf+sa+df+hf,A="['\u2019]",O="["+En+"]",$="["+_+"]",D="["+xr+"]",G="\\d+",H="["+hi+"]",k="["+Io+"]",K="[^"+En+_+G+hi+Io+v+"]",te="\\ud83c[\\udffb-\\udfff]",be="(?:"+D+"|"+te+")",Re="[^"+En+"]",Pe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ze="[\\ud800-\\udbff][\\udc00-\\udfff]",je="["+v+"]",At="\\u200d",nr="(?:"+k+"|"+K+")",ua="(?:"+je+"|"+K+")",To="(?:"+A+"(?:d|ll|m|re|s|t|ve))?",vi="(?:"+A+"(?:D|LL|M|RE|S|T|VE))?",vf=be+"?",Co="["+E+"]?",gf="(?:"+At+"(?:"+[Re,Pe,Ze].join("|")+")"+Co+vf+")*",Oo="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lx="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",bh=Co+vf+gf,px="(?:"+[H,Pe,Ze].join("|")+")"+bh,dx="(?:"+[Re+D+"?",D,Pe,Ze,O].join("|")+")",hx=RegExp(A,"g"),vx=RegExp(D,"g"),_f=RegExp(te+"(?="+te+")|"+dx+bh,"g"),gx=RegExp([je+"?"+k+"+"+To+"(?="+[$,je,"$"].join("|")+")",ua+"+"+vi+"(?="+[$,je+nr,"$"].join("|")+")",je+"?"+nr+"+"+To,je+"+"+vi,lx,Oo,G,px].join("|"),"g"),_x=RegExp("["+At+En+xr+E+"]"),mx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,yx=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],bx=-1,Xe={};Xe[ui]=Xe[fi]=Xe[ci]=Xe[li]=Xe[pi]=Xe[Cr]=Xe[ra]=Xe[ia]=Xe[Or]=!0,Xe[Se]=Xe[$e]=Xe[er]=Xe[Be]=Xe[Nn]=Xe[st]=Xe[Nt]=Xe[Dt]=Xe[vt]=Xe[Mt]=Xe[en]=Xe[Ln]=Xe[$t]=Xe[Qn]=Xe[Vn]=!1;var He={};He[Se]=He[$e]=He[er]=He[Nn]=He[Be]=He[st]=He[ui]=He[fi]=He[ci]=He[li]=He[pi]=He[vt]=He[Mt]=He[en]=He[Ln]=He[$t]=He[Qn]=He[Tr]=He[Cr]=He[ra]=He[ia]=He[Or]=!0,He[Nt]=He[Dt]=He[Vn]=!1;var wx={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Ex={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Sx={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},$x={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ax=parseFloat,Ix=parseInt,wh=typeof ke=="object"&&ke&&ke.Object===Object&&ke,Tx=typeof self=="object"&&self&&self.Object===Object&&self,gt=wh||Tx||Function("return this")(),mf=n&&!n.nodeType&&n,Rr=mf&&!0&&e&&!e.nodeType&&e,Eh=Rr&&Rr.exports===mf,yf=Eh&&wh.process,tn=function(){try{var I=Rr&&Rr.require&&Rr.require("util").types;return I||yf&&yf.binding&&yf.binding("util")}catch{}}(),Sh=tn&&tn.isArrayBuffer,$h=tn&&tn.isDate,Ah=tn&&tn.isMap,Ih=tn&&tn.isRegExp,Th=tn&&tn.isSet,Ch=tn&&tn.isTypedArray;function qt(I,N,P){switch(P.length){case 0:return I.call(N);case 1:return I.call(N,P[0]);case 2:return I.call(N,P[0],P[1]);case 3:return I.call(N,P[0],P[1],P[2])}return I.apply(N,P)}function Cx(I,N,P,V){for(var he=-1,Le=I==null?0:I.length;++he<Le;){var ft=I[he];N(V,ft,P(ft),I)}return V}function nn(I,N){for(var P=-1,V=I==null?0:I.length;++P<V&&N(I[P],P,I)!==!1;);return I}function Ox(I,N){for(var P=I==null?0:I.length;P--&&N(I[P],P,I)!==!1;);return I}function Oh(I,N){for(var P=-1,V=I==null?0:I.length;++P<V;)if(!N(I[P],P,I))return!1;return!0}function rr(I,N){for(var P=-1,V=I==null?0:I.length,he=0,Le=[];++P<V;){var ft=I[P];N(ft,P,I)&&(Le[he++]=ft)}return Le}function xo(I,N){var P=I==null?0:I.length;return!!P&&gi(I,N,0)>-1}function bf(I,N,P){for(var V=-1,he=I==null?0:I.length;++V<he;)if(P(N,I[V]))return!0;return!1}function Je(I,N){for(var P=-1,V=I==null?0:I.length,he=Array(V);++P<V;)he[P]=N(I[P],P,I);return he}function ir(I,N){for(var P=-1,V=N.length,he=I.length;++P<V;)I[he+P]=N[P];return I}function wf(I,N,P,V){var he=-1,Le=I==null?0:I.length;for(V&&Le&&(P=I[++he]);++he<Le;)P=N(P,I[he],he,I);return P}function xx(I,N,P,V){var he=I==null?0:I.length;for(V&&he&&(P=I[--he]);he--;)P=N(P,I[he],he,I);return P}function Ef(I,N){for(var P=-1,V=I==null?0:I.length;++P<V;)if(N(I[P],P,I))return!0;return!1}var Rx=Sf("length");function Px(I){return I.split("")}function Lx(I){return I.match(ef)||[]}function xh(I,N,P){var V;return P(I,function(he,Le,ft){if(N(he,Le,ft))return V=Le,!1}),V}function Ro(I,N,P,V){for(var he=I.length,Le=P+(V?1:-1);V?Le--:++Le<he;)if(N(I[Le],Le,I))return Le;return-1}function gi(I,N,P){return N===N?kx(I,N,P):Ro(I,Rh,P)}function Nx(I,N,P,V){for(var he=P-1,Le=I.length;++he<Le;)if(V(I[he],N))return he;return-1}function Rh(I){return I!==I}function Ph(I,N){var P=I==null?0:I.length;return P?Af(I,N)/P:J}function Sf(I){return function(N){return N==null?r:N[I]}}function $f(I){return function(N){return I==null?r:I[N]}}function Lh(I,N,P,V,he){return he(I,function(Le,ft,ze){P=V?(V=!1,Le):N(P,Le,ft,ze)}),P}function Dx(I,N){var P=I.length;for(I.sort(N);P--;)I[P]=I[P].value;return I}function Af(I,N){for(var P,V=-1,he=I.length;++V<he;){var Le=N(I[V]);Le!==r&&(P=P===r?Le:P+Le)}return P}function If(I,N){for(var P=-1,V=Array(I);++P<I;)V[P]=N(P);return V}function Mx(I,N){return Je(N,function(P){return[P,I[P]]})}function Nh(I){return I&&I.slice(0,Uh(I)+1).replace(oa,"")}function Kt(I){return function(N){return I(N)}}function Tf(I,N){return Je(N,function(P){return I[P]})}function fa(I,N){return I.has(N)}function Dh(I,N){for(var P=-1,V=I.length;++P<V&&gi(N,I[P],0)>-1;);return P}function Mh(I,N){for(var P=I.length;P--&&gi(N,I[P],0)>-1;);return P}function Fx(I,N){for(var P=I.length,V=0;P--;)I[P]===N&&++V;return V}var Ux=$f(wx),jx=$f(Ex);function Bx(I){return"\\"+$x[I]}function zx(I,N){return I==null?r:I[N]}function _i(I){return _x.test(I)}function Wx(I){return mx.test(I)}function Gx(I){for(var N,P=[];!(N=I.next()).done;)P.push(N.value);return P}function Cf(I){var N=-1,P=Array(I.size);return I.forEach(function(V,he){P[++N]=[he,V]}),P}function Fh(I,N){return function(P){return I(N(P))}}function ar(I,N){for(var P=-1,V=I.length,he=0,Le=[];++P<V;){var ft=I[P];(ft===N||ft===y)&&(I[P]=y,Le[he++]=P)}return Le}function Po(I){var N=-1,P=Array(I.size);return I.forEach(function(V){P[++N]=V}),P}function Hx(I){var N=-1,P=Array(I.size);return I.forEach(function(V){P[++N]=[V,V]}),P}function kx(I,N,P){for(var V=P-1,he=I.length;++V<he;)if(I[V]===N)return V;return-1}function qx(I,N,P){for(var V=P+1;V--;)if(I[V]===N)return V;return V}function mi(I){return _i(I)?Xx(I):Rx(I)}function dn(I){return _i(I)?Yx(I):Px(I)}function Uh(I){for(var N=I.length;N--&&Eo.test(I.charAt(N)););return N}var Kx=$f(Sx);function Xx(I){for(var N=_f.lastIndex=0;_f.test(I);)++N;return N}function Yx(I){return I.match(_f)||[]}function Zx(I){return I.match(gx)||[]}var Jx=function I(N){N=N==null?gt:yi.defaults(gt.Object(),N,yi.pick(gt,yx));var P=N.Array,V=N.Date,he=N.Error,Le=N.Function,ft=N.Math,ze=N.Object,Of=N.RegExp,Qx=N.String,rn=N.TypeError,Lo=P.prototype,Vx=Le.prototype,bi=ze.prototype,No=N["__core-js_shared__"],Do=Vx.toString,Fe=bi.hasOwnProperty,eR=0,jh=function(){var t=/[^.]+$/.exec(No&&No.keys&&No.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Mo=bi.toString,tR=Do.call(ze),nR=gt._,rR=Of("^"+Do.call(Fe).replace(aa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fo=Eh?N.Buffer:r,or=N.Symbol,Uo=N.Uint8Array,Bh=Fo?Fo.allocUnsafe:r,jo=Fh(ze.getPrototypeOf,ze),zh=ze.create,Wh=bi.propertyIsEnumerable,Bo=Lo.splice,Gh=or?or.isConcatSpreadable:r,ca=or?or.iterator:r,Pr=or?or.toStringTag:r,zo=function(){try{var t=Fr(ze,"defineProperty");return t({},"",{}),t}catch{}}(),iR=N.clearTimeout!==gt.clearTimeout&&N.clearTimeout,aR=V&&V.now!==gt.Date.now&&V.now,oR=N.setTimeout!==gt.setTimeout&&N.setTimeout,Wo=ft.ceil,Go=ft.floor,xf=ze.getOwnPropertySymbols,sR=Fo?Fo.isBuffer:r,Hh=N.isFinite,uR=Lo.join,fR=Fh(ze.keys,ze),ct=ft.max,yt=ft.min,cR=V.now,lR=N.parseInt,kh=ft.random,pR=Lo.reverse,Rf=Fr(N,"DataView"),la=Fr(N,"Map"),Pf=Fr(N,"Promise"),wi=Fr(N,"Set"),pa=Fr(N,"WeakMap"),da=Fr(ze,"create"),Ho=pa&&new pa,Ei={},dR=Ur(Rf),hR=Ur(la),vR=Ur(Pf),gR=Ur(wi),_R=Ur(pa),ko=or?or.prototype:r,ha=ko?ko.valueOf:r,qh=ko?ko.toString:r;function h(t){if(nt(t)&&!ve(t)&&!(t instanceof Te)){if(t instanceof an)return t;if(Fe.call(t,"__wrapped__"))return Kv(t)}return new an(t)}var Si=function(){function t(){}return function(i){if(!et(i))return{};if(zh)return zh(i);t.prototype=i;var o=new t;return t.prototype=r,o}}();function qo(){}function an(t,i){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=r}h.templateSettings={escape:ku,evaluate:qu,interpolate:wo,variable:"",imports:{_:h}},h.prototype=qo.prototype,h.prototype.constructor=h,an.prototype=Si(qo.prototype),an.prototype.constructor=an;function Te(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function mR(){var t=new Te(this.__wrapped__);return t.__actions__=Ft(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Ft(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Ft(this.__views__),t}function yR(){if(this.__filtered__){var t=new Te(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function bR(){var t=this.__wrapped__.value(),i=this.__dir__,o=ve(t),f=i<0,l=o?t.length:0,g=PP(0,l,this.__views__),b=g.start,S=g.end,C=S-b,U=f?S:b-1,B=this.__iteratees__,W=B.length,Z=0,re=yt(C,this.__takeCount__);if(!o||!f&&l==C&&re==C)return gv(t,this.__actions__);var ue=[];e:for(;C--&&Z<re;){U+=i;for(var we=-1,fe=t[U];++we<W;){var Ie=B[we],xe=Ie.iteratee,Zt=Ie.type,Ct=xe(fe);if(Zt==St)fe=Ct;else if(!Ct){if(Zt==kt)continue e;break e}}ue[Z++]=fe}return ue}Te.prototype=Si(qo.prototype),Te.prototype.constructor=Te;function Lr(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var f=t[i];this.set(f[0],f[1])}}function wR(){this.__data__=da?da(null):{},this.size=0}function ER(t){var i=this.has(t)&&delete this.__data__[t];return this.size-=i?1:0,i}function SR(t){var i=this.__data__;if(da){var o=i[t];return o===d?r:o}return Fe.call(i,t)?i[t]:r}function $R(t){var i=this.__data__;return da?i[t]!==r:Fe.call(i,t)}function AR(t,i){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=da&&i===r?d:i,this}Lr.prototype.clear=wR,Lr.prototype.delete=ER,Lr.prototype.get=SR,Lr.prototype.has=$R,Lr.prototype.set=AR;function Dn(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var f=t[i];this.set(f[0],f[1])}}function IR(){this.__data__=[],this.size=0}function TR(t){var i=this.__data__,o=Ko(i,t);if(o<0)return!1;var f=i.length-1;return o==f?i.pop():Bo.call(i,o,1),--this.size,!0}function CR(t){var i=this.__data__,o=Ko(i,t);return o<0?r:i[o][1]}function OR(t){return Ko(this.__data__,t)>-1}function xR(t,i){var o=this.__data__,f=Ko(o,t);return f<0?(++this.size,o.push([t,i])):o[f][1]=i,this}Dn.prototype.clear=IR,Dn.prototype.delete=TR,Dn.prototype.get=CR,Dn.prototype.has=OR,Dn.prototype.set=xR;function Mn(t){var i=-1,o=t==null?0:t.length;for(this.clear();++i<o;){var f=t[i];this.set(f[0],f[1])}}function RR(){this.size=0,this.__data__={hash:new Lr,map:new(la||Dn),string:new Lr}}function PR(t){var i=as(this,t).delete(t);return this.size-=i?1:0,i}function LR(t){return as(this,t).get(t)}function NR(t){return as(this,t).has(t)}function DR(t,i){var o=as(this,t),f=o.size;return o.set(t,i),this.size+=o.size==f?0:1,this}Mn.prototype.clear=RR,Mn.prototype.delete=PR,Mn.prototype.get=LR,Mn.prototype.has=NR,Mn.prototype.set=DR;function Nr(t){var i=-1,o=t==null?0:t.length;for(this.__data__=new Mn;++i<o;)this.add(t[i])}function MR(t){return this.__data__.set(t,d),this}function FR(t){return this.__data__.has(t)}Nr.prototype.add=Nr.prototype.push=MR,Nr.prototype.has=FR;function hn(t){var i=this.__data__=new Dn(t);this.size=i.size}function UR(){this.__data__=new Dn,this.size=0}function jR(t){var i=this.__data__,o=i.delete(t);return this.size=i.size,o}function BR(t){return this.__data__.get(t)}function zR(t){return this.__data__.has(t)}function WR(t,i){var o=this.__data__;if(o instanceof Dn){var f=o.__data__;if(!la||f.length<s-1)return f.push([t,i]),this.size=++o.size,this;o=this.__data__=new Mn(f)}return o.set(t,i),this.size=o.size,this}hn.prototype.clear=UR,hn.prototype.delete=jR,hn.prototype.get=BR,hn.prototype.has=zR,hn.prototype.set=WR;function Kh(t,i){var o=ve(t),f=!o&&jr(t),l=!o&&!f&&lr(t),g=!o&&!f&&!l&&Ti(t),b=o||f||l||g,S=b?If(t.length,Qx):[],C=S.length;for(var U in t)(i||Fe.call(t,U))&&!(b&&(U=="length"||l&&(U=="offset"||U=="parent")||g&&(U=="buffer"||U=="byteLength"||U=="byteOffset")||Bn(U,C)))&&S.push(U);return S}function Xh(t){var i=t.length;return i?t[Gf(0,i-1)]:r}function GR(t,i){return os(Ft(t),Dr(i,0,t.length))}function HR(t){return os(Ft(t))}function Lf(t,i,o){(o!==r&&!vn(t[i],o)||o===r&&!(i in t))&&Fn(t,i,o)}function va(t,i,o){var f=t[i];(!(Fe.call(t,i)&&vn(f,o))||o===r&&!(i in t))&&Fn(t,i,o)}function Ko(t,i){for(var o=t.length;o--;)if(vn(t[o][0],i))return o;return-1}function kR(t,i,o,f){return sr(t,function(l,g,b){i(f,l,o(l),b)}),f}function Yh(t,i){return t&&$n(i,ht(i),t)}function qR(t,i){return t&&$n(i,jt(i),t)}function Fn(t,i,o){i=="__proto__"&&zo?zo(t,i,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[i]=o}function Nf(t,i){for(var o=-1,f=i.length,l=P(f),g=t==null;++o<f;)l[o]=g?r:hc(t,i[o]);return l}function Dr(t,i,o){return t===t&&(o!==r&&(t=t<=o?t:o),i!==r&&(t=t>=i?t:i)),t}function on(t,i,o,f,l,g){var b,S=i&w,C=i&L,U=i&z;if(o&&(b=l?o(t,f,l,g):o(t)),b!==r)return b;if(!et(t))return t;var B=ve(t);if(B){if(b=NP(t),!S)return Ft(t,b)}else{var W=bt(t),Z=W==Dt||W==pn;if(lr(t))return yv(t,S);if(W==en||W==Se||Z&&!l){if(b=C||Z?{}:Uv(t),!S)return C?SP(t,qR(b,t)):EP(t,Yh(b,t))}else{if(!He[W])return l?t:{};b=DP(t,W,S)}}g||(g=new hn);var re=g.get(t);if(re)return re;g.set(t,b),dg(t)?t.forEach(function(fe){b.add(on(fe,i,o,fe,t,g))}):lg(t)&&t.forEach(function(fe,Ie){b.set(Ie,on(fe,i,o,Ie,t,g))});var ue=U?C?ec:Vf:C?jt:ht,we=B?r:ue(t);return nn(we||t,function(fe,Ie){we&&(Ie=fe,fe=t[Ie]),va(b,Ie,on(fe,i,o,Ie,t,g))}),b}function KR(t){var i=ht(t);return function(o){return Zh(o,t,i)}}function Zh(t,i,o){var f=o.length;if(t==null)return!f;for(t=ze(t);f--;){var l=o[f],g=i[l],b=t[l];if(b===r&&!(l in t)||!g(b))return!1}return!0}function Jh(t,i,o){if(typeof t!="function")throw new rn(c);return Ea(function(){t.apply(r,o)},i)}function ga(t,i,o,f){var l=-1,g=xo,b=!0,S=t.length,C=[],U=i.length;if(!S)return C;o&&(i=Je(i,Kt(o))),f?(g=bf,b=!1):i.length>=s&&(g=fa,b=!1,i=new Nr(i));e:for(;++l<S;){var B=t[l],W=o==null?B:o(B);if(B=f||B!==0?B:0,b&&W===W){for(var Z=U;Z--;)if(i[Z]===W)continue e;C.push(B)}else g(i,W,f)||C.push(B)}return C}var sr=$v(Sn),Qh=$v(Mf,!0);function XR(t,i){var o=!0;return sr(t,function(f,l,g){return o=!!i(f,l,g),o}),o}function Xo(t,i,o){for(var f=-1,l=t.length;++f<l;){var g=t[f],b=i(g);if(b!=null&&(S===r?b===b&&!Yt(b):o(b,S)))var S=b,C=g}return C}function YR(t,i,o,f){var l=t.length;for(o=_e(o),o<0&&(o=-o>l?0:l+o),f=f===r||f>l?l:_e(f),f<0&&(f+=l),f=o>f?0:vg(f);o<f;)t[o++]=i;return t}function Vh(t,i){var o=[];return sr(t,function(f,l,g){i(f,l,g)&&o.push(f)}),o}function _t(t,i,o,f,l){var g=-1,b=t.length;for(o||(o=FP),l||(l=[]);++g<b;){var S=t[g];i>0&&o(S)?i>1?_t(S,i-1,o,f,l):ir(l,S):f||(l[l.length]=S)}return l}var Df=Av(),ev=Av(!0);function Sn(t,i){return t&&Df(t,i,ht)}function Mf(t,i){return t&&ev(t,i,ht)}fu