@dappworks/urpc
Advanced tools
Comparing version 0.0.17 to 0.0.19
@@ -15,2 +15,5 @@ // Generated by dts-bundle-generator v9.5.1 | ||
}; | ||
export type ActionType<T> = { | ||
[key: string]: (val: T) => any; | ||
}; | ||
export type FormConfigItem = { | ||
@@ -43,5 +46,8 @@ title?: string; | ||
get: T; | ||
patch?: ((value: Operation[]) => PatchResult<any>); | ||
allow?: { | ||
patch?: Boolean; | ||
actions?: () => ActionType<Item<ReturnType<T>>>; | ||
patch?: { | ||
allowCreate?: Boolean; | ||
allowDelete?: Boolean; | ||
allowUpdate?: Boolean; | ||
onPatch?: (value: Operation[]) => PatchResult<any>; | ||
}; | ||
@@ -69,3 +75,5 @@ set?: R extends () => infer U ? (value: ReturnType<T>) => U : never; | ||
value?: undefined; | ||
actions?: undefined; | ||
set?: undefined; | ||
patch?: undefined; | ||
} | { | ||
@@ -77,3 +85,10 @@ uid: string; | ||
uiConfig: FormConfigType<any> | null; | ||
actions: string[] | null; | ||
set: boolean; | ||
patch: { | ||
allowCreate?: Boolean | undefined; | ||
allowDelete?: Boolean | undefined; | ||
allowUpdate?: Boolean | undefined; | ||
onPatch?: ((value: Operation[]) => PatchResult<any>) | undefined; | ||
} | undefined; | ||
input?: undefined; | ||
@@ -87,3 +102,5 @@ } | { | ||
value?: undefined; | ||
actions?: undefined; | ||
set?: undefined; | ||
patch?: undefined; | ||
})[]; | ||
@@ -117,2 +134,6 @@ loadVars(): { | ||
}): Promise<any>; | ||
action(params: { | ||
name: string; | ||
action: string; | ||
}): Promise<any>; | ||
}; | ||
@@ -136,3 +157,5 @@ }; | ||
value?: undefined; | ||
actions?: undefined; | ||
set?: undefined; | ||
patch?: undefined; | ||
} | { | ||
@@ -144,3 +167,10 @@ uid: string; | ||
uiConfig: FormConfigType<any> | null; | ||
actions: string[] | null; | ||
set: boolean; | ||
patch: { | ||
allowCreate?: Boolean | undefined; | ||
allowDelete?: Boolean | undefined; | ||
allowUpdate?: Boolean | undefined; | ||
onPatch?: ((value: Operation[]) => import("fast-json-patch").PatchResult<any>) | undefined; | ||
} | undefined; | ||
input?: undefined; | ||
@@ -154,3 +184,5 @@ } | { | ||
value?: undefined; | ||
actions?: undefined; | ||
set?: undefined; | ||
patch?: undefined; | ||
})[]>; | ||
@@ -177,2 +209,6 @@ loadVars(): Promise<{ | ||
}): Promise<any>; | ||
action(params: { | ||
name: string; | ||
action; | ||
}): Promise<any>; | ||
}; | ||
@@ -179,0 +215,0 @@ }; |
@@ -1,9 +0,9 @@ | ||
var x$=Object.create;var{defineProperty:gU,getPrototypeOf:g$,getOwnPropertyNames:m$}=Object;var j$=Object.prototype.hasOwnProperty;var mU=(U,Z,$)=>{$=U!=null?x$(g$(U)):{};const Q=Z||!U||!U.__esModule?gU($,"default",{value:U,enumerable:!0}):$;for(let R of m$(U))if(!j$.call(Q,R))gU(Q,R,{get:()=>U[R],enumerable:!0});return Q};var jU=(U,Z)=>()=>(Z||U((Z={exports:{}}).exports,Z),Z.exports);var dU=(U,Z)=>{for(var $ in Z)gU(U,$,{get:Z[$],enumerable:!0,configurable:!0,set:(Q)=>Z[$]=()=>Q})};var TZ=jU((p8,PZ)=>{var t$=function(U,Z){return U==null?void 0:U[Z]},a$=function(U){var Z=!1;if(U!=null&&typeof U.toString!="function")try{Z=!!(U+"")}catch($){}return Z},f=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},RQ=function(){this.__data__=r?r(null):{}},XQ=function(U){return this.has(U)&&delete this.__data__[U]},YQ=function(U){var Z=this.__data__;if(r){var $=Z[U];return $===_Z?void 0:$}return RU.call(Z,U)?Z[U]:void 0},BQ=function(U){var Z=this.__data__;return r?Z[U]!==void 0:RU.call(Z,U)},WQ=function(U,Z){var $=this.__data__;return $[U]=r&&Z===void 0?_Z:Z,this},p=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},JQ=function(){this.__data__=[]},GQ=function(U){var Z=this.__data__,$=XU(Z,U);if($<0)return!1;var Q=Z.length-1;if($==Q)Z.pop();else $Q.call(Z,$,1);return!0},KQ=function(U){var Z=this.__data__,$=XU(Z,U);return $<0?void 0:Z[$][1]},qQ=function(U){return XU(this.__data__,U)>-1},wQ=function(U,Z){var $=this.__data__,Q=XU($,U);if(Q<0)$.push([U,Z]);else $[Q][1]=Z;return this},x=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},NQ=function(){this.__data__={hash:new f,map:new(QQ||p),string:new f}},FQ=function(U){return YU(this,U).delete(U)},zQ=function(U){return YU(this,U).get(U)},LQ=function(U){return YU(this,U).has(U)},HQ=function(U,Z){return YU(this,U).set(U,Z),this},_Q=function(U,Z,$){var Q=U[Z];if(!(RU.call(U,Z)&&AZ(Q,$))||$===void 0&&!(Z in U))U[Z]=$},XU=function(U,Z){var $=U.length;while($--)if(AZ(U[$][0],Z))return $;return-1},SQ=function(U){if(!QU(U)||PQ(U))return!1;var Z=fQ(U)||a$(U)?ZQ:s$;return Z.test(VQ(U))},MQ=function(U,Z,$,Q){if(!QU(U))return U;Z=AQ(Z,U)?[Z]:EQ(Z);var R=-1,X=Z.length,Y=X-1,B=U;while(B!=null&&++R<X){var W=CQ(Z[R]),G=$;if(R!=Y){var J=B[W];if(G=Q?Q(J,W,B):void 0,G===void 0)G=QU(J)?J:IQ(Z[R+1])?[]:{}}_Q(B,W,G),B=B[W]}return U},DQ=function(U){if(typeof U=="string")return U;if(yU(U))return HZ?HZ.call(U):"";var Z=U+"";return Z=="0"&&1/U==-SZ?"-0":Z},EQ=function(U){return OZ(U)?U:TQ(U)},YU=function(U,Z){var $=U.__data__;return OQ(Z)?$[typeof Z=="string"?"string":"hash"]:$.map},IZ=function(U,Z){var $=t$(U,Z);return SQ($)?$:void 0},IQ=function(U,Z){return Z=Z==null?k$:Z,!!Z&&(typeof U=="number"||l$.test(U))&&(U>-1&&U%1==0&&U<Z)},AQ=function(U,Z){if(OZ(U))return!1;var $=typeof U;if($=="number"||$=="symbol"||$=="boolean"||U==null||yU(U))return!0;return b$.test(U)||!h$.test(U)||Z!=null&&U in Object(Z)},OQ=function(U){var Z=typeof U;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?U!=="__proto__":U===null},PQ=function(U){return!!FZ&&FZ in U},CQ=function(U){if(typeof U=="string"||yU(U))return U;var Z=U+"";return Z=="0"&&1/U==-SZ?"-0":Z},VQ=function(U){if(U!=null){try{return DZ.call(U)}catch(Z){}try{return U+""}catch(Z){}}return""},vU=function(U,Z){if(typeof U!="function"||Z&&typeof Z!="function")throw new TypeError(d$);var $=function(){var Q=arguments,R=Z?Z.apply(this,Q):Q[0],X=$.cache;if(X.has(R))return X.get(R);var Y=U.apply(this,Q);return $.cache=X.set(R,Y),Y};return $.cache=new(vU.Cache||x),$},AZ=function(U,Z){return U===Z||U!==U&&Z!==Z},fQ=function(U){var Z=QU(U)?EZ.call(U):"";return Z==p$||Z==v$},QU=function(U){var Z=typeof U;return!!U&&(Z=="object"||Z=="function")},xQ=function(U){return!!U&&typeof U=="object"},yU=function(U){return typeof U=="symbol"||xQ(U)&&EZ.call(U)==y$},gQ=function(U){return U==null?"":DQ(U)},mQ=function(U,Z,$){return U==null?U:MQ(U,Z,$)},d$="Expected a function",_Z="__lodash_hash_undefined__",SZ=Infinity,k$=9007199254740991,p$="[object Function]",v$="[object GeneratorFunction]",y$="[object Symbol]",h$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,b$=/^\w*$/,n$=/^\./,i$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,c$=/[\\^$.*+?()[\]{}|]/g,u$=/\\(\\)?/g,s$=/^\[object .+?Constructor\]$/,l$=/^(?:0|[1-9]\d*)$/,r$=typeof global=="object"&&global&&global.Object===Object&&global,o$=typeof self=="object"&&self&&self.Object===Object&&self,pU=r$||o$||Function("return this")(),e$=Array.prototype,UQ=Function.prototype,MZ=Object.prototype,kU=pU["__core-js_shared__"],FZ=function(){var U=/[^.]+$/.exec(kU&&kU.keys&&kU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),DZ=UQ.toString,RU=MZ.hasOwnProperty,EZ=MZ.toString,ZQ=RegExp("^"+DZ.call(RU).replace(c$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),zZ=pU.Symbol,$Q=e$.splice,QQ=IZ(pU,"Map"),r=IZ(Object,"create"),LZ=zZ?zZ.prototype:void 0,HZ=LZ?LZ.toString:void 0;f.prototype.clear=RQ;f.prototype.delete=XQ;f.prototype.get=YQ;f.prototype.has=BQ;f.prototype.set=WQ;p.prototype.clear=JQ;p.prototype.delete=GQ;p.prototype.get=KQ;p.prototype.has=qQ;p.prototype.set=wQ;x.prototype.clear=NQ;x.prototype.delete=FQ;x.prototype.get=zQ;x.prototype.has=LQ;x.prototype.set=HQ;var TQ=vU(function(U){U=gQ(U);var Z=[];if(n$.test(U))Z.push("");return U.replace(i$,function($,Q,R,X){Z.push(R?X.replace(u$,"$1"):Q||$)}),Z});vU.Cache=x;var OZ=Array.isArray;PZ.exports=mQ});var J$=jU((GU,y)=>{var Y1=function(U,Z,$,Q){var R=-1,X=U?U.length:0;while(++R<X){var Y=U[R];Z(Q,Y,$(Y),U)}return Q},B1=function(U,Z){var $=-1,Q=U?U.length:0;while(++$<Q)if(Z(U[$],$,U))return!0;return!1},W1=function(U){return function(Z){return Z==null?void 0:Z[U]}},J1=function(U,Z){var $=-1,Q=Array(U);while(++$<U)Q[$]=Z($);return Q},G1=function(U){return function(Z){return U(Z)}},K1=function(U,Z){return U==null?void 0:U[Z]},sU=function(U){var Z=!1;if(U!=null&&typeof U.toString!="function")try{Z=!!(U+"")}catch($){}return Z},q1=function(U){var Z=-1,$=Array(U.size);return U.forEach(function(Q,R){$[++Z]=[R,Q]}),$},w1=function(U,Z){return function($){return U(Z($))}},N1=function(U){var Z=-1,$=Array(U.size);return U.forEach(function(Q){$[++Z]=Q}),$},g=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},O1=function(){this.__data__=t?t(null):{}},P1=function(U){return this.has(U)&&delete this.__data__[U]},T1=function(U){var Z=this.__data__;if(t){var $=Z[U];return $===aU?void 0:$}return D.call(Z,U)?Z[U]:void 0},C1=function(U){var Z=this.__data__;return t?Z[U]!==void 0:D.call(Z,U)},V1=function(U,Z){var $=this.__data__;return $[U]=t&&Z===void 0?aU:Z,this},E=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},f1=function(){this.__data__=[]},x1=function(U){var Z=this.__data__,$=SU(Z,U);if($<0)return!1;var Q=Z.length-1;if($==Q)Z.pop();else _1.call(Z,$,1);return!0},g1=function(U){var Z=this.__data__,$=SU(Z,U);return $<0?void 0:Z[$][1]},m1=function(U){return SU(this.__data__,U)>-1},j1=function(U,Z){var $=this.__data__,Q=SU($,U);if(Q<0)$.push([U,Z]);else $[Q][1]=Z;return this},I=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},d1=function(){this.__data__={hash:new g,map:new(o||E),string:new g}},k1=function(U){return MU(this,U).delete(U)},p1=function(U){return MU(this,U).get(U)},v1=function(U){return MU(this,U).has(U)},y1=function(U,Z){return MU(this,U).set(U,Z),this},zU=function(U){var Z=-1,$=U?U.length:0;this.__data__=new I;while(++Z<$)this.add(U[Z])},h1=function(U){return this.__data__.set(U,aU),this},b1=function(U){return this.__data__.has(U)},M=function(U){this.__data__=new E(U)},n1=function(){this.__data__=new E},i1=function(U){return this.__data__.delete(U)},c1=function(U){return this.__data__.get(U)},u1=function(U){return this.__data__.has(U)},s1=function(U,Z){var $=this.__data__;if($ instanceof E){var Q=$.__data__;if(!o||Q.length<pQ-1)return Q.push([U,Z]),this;$=this.__data__=new I(Q)}return $.set(U,Z),this},l1=function(U,Z){var $=P(U)||B$(U)?J1(U.length,String):[],Q=$.length,R=!!Q;for(var X in U)if((Z||D.call(U,X))&&!(R&&(X=="length"||Q$(X,Q))))$.push(X);return $},SU=function(U,Z){var $=U.length;while($--)if(Y$(U[$][0],Z))return $;return-1},r1=function(U,Z,$,Q){return o1(U,function(R,X,Y){Z(Q,R,$(R),Y)}),Q},a1=function(U,Z){return U&&t1(U,Z,LU)},U$=function(U,Z){Z=DU(Z,U)?[Z]:Z$(Z);var $=0,Q=Z.length;while(U!=null&&$<Q)U=U[EU(Z[$++])];return $&&$==Q?U:void 0},e1=function(U){return b.call(U)},U6=function(U,Z){return U!=null&&Z in Object(U)},eU=function(U,Z,$,Q,R){if(U===Z)return!0;if(U==null||Z==null||!IU(U)&&!AU(Z))return U!==U&&Z!==Z;return Z6(U,Z,eU,$,Q,R)},Z6=function(U,Z,$,Q,R,X){var Y=P(U),B=P(Z),W=cU,G=cU;if(!Y)W=O(U),W=W==KU?v:W;if(!B)G=O(Z),G=G==KU?v:G;var J=W==v&&!sU(U),w=G==v&&!sU(Z),K=W==G;if(K&&!J)return X||(X=new M),Y||I6(U)?$$(U,Z,$,Q,R,X):N6(U,Z,W,$,Q,R,X);if(!(R&h)){var q=J&&D.call(U,"__wrapped__"),H=w&&D.call(Z,"__wrapped__");if(q||H){var A=q?U.value():U,S=H?Z.value():Z;return X||(X=new M),$(A,S,Q,R,X)}}if(!K)return!1;return X||(X=new M),F6(U,Z,$,Q,R,X)},$6=function(U,Z,$,Q){var R=$.length,X=R,Y=!Q;if(U==null)return!X;U=Object(U);while(R--){var B=$[R];if(Y&&B[2]?B[1]!==U[B[0]]:!(B[0]in U))return!1}while(++R<X){B=$[R];var W=B[0],G=U[W],J=B[1];if(Y&&B[2]){if(G===void 0&&!(W in U))return!1}else{var w=new M;if(Q)var K=Q(G,J,W,U,Z,w);if(!(K===void 0?eU(J,G,Q,HU|h,w):K))return!1}}return!0},Q6=function(U){if(!IU(U)||_6(U))return!1;var Z=W$(U)||sU(U)?L1:$1;return Z.test(m(U))},R6=function(U){return AU(U)&&$Z(U.length)&&!!N[b.call(U)]},X6=function(U){if(typeof U=="function")return U;if(U==null)return T6;if(typeof U=="object")return P(U)?W6(U[0],U[1]):B6(U);return C6(U)},Y6=function(U){if(!S6(U))return S1(U);var Z=[];for(var $ in Object(U))if(D.call(U,$)&&$!="constructor")Z.push($);return Z},B6=function(U){var Z=z6(U);if(Z.length==1&&Z[0][2])return X$(Z[0][0],Z[0][1]);return function($){return $===U||$6($,U,Z)}},W6=function(U,Z){if(DU(U)&&R$(Z))return X$(EU(U),Z);return function($){var Q=O6($,U);return Q===void 0&&Q===Z?P6($,U):eU(Z,Q,void 0,HU|h)}},J6=function(U){return function(Z){return U$(Z,U)}},G6=function(U){if(typeof U=="string")return U;if(QZ(U))return vZ?vZ.call(U):"";var Z=U+"";return Z=="0"&&1/U==-yZ?"-0":Z},Z$=function(U){return P(U)?U:M6(U)},K6=function(U,Z){return function($,Q){var R=P($)?Y1:r1,X=Z?Z():{};return R($,U,X6(Q,2),X)}},q6=function(U,Z){return function($,Q){if($==null)return $;if(!ZZ($))return U($,Q);var R=$.length,X=Z?R:-1,Y=Object($);while(Z?X--:++X<R)if(Q(Y[X],X,Y)===!1)break;return $}},w6=function(U){return function(Z,$,Q){var R=-1,X=Object(Z),Y=Q(Z),B=Y.length;while(B--){var W=Y[U?B:++R];if($(X[W],W,X)===!1)break}return Z}},$$=function(U,Z,$,Q,R,X){var Y=R&h,B=U.length,W=Z.length;if(B!=W&&!(Y&&W>B))return!1;var G=X.get(U);if(G&&X.get(Z))return G==Z;var J=-1,w=!0,K=R&HU?new zU:void 0;X.set(U,Z),X.set(Z,U);while(++J<B){var q=U[J],H=Z[J];if(Q)var A=Y?Q(H,q,J,Z,U,X):Q(q,H,J,U,Z,X);if(A!==void 0){if(A)continue;w=!1;break}if(K){if(!B1(Z,function(S,V){if(!K.has(V)&&(q===S||$(q,S,Q,R,X)))return K.add(V)})){w=!1;break}}else if(!(q===H||$(q,H,Q,R,X))){w=!1;break}}return X.delete(U),X.delete(Z),w},N6=function(U,Z,$,Q,R,X,Y){switch($){case NU:if(U.byteLength!=Z.byteLength||U.byteOffset!=Z.byteOffset)return!1;U=U.buffer,Z=Z.buffer;case oZ:if(U.byteLength!=Z.byteLength||!Q(new pZ(U),new pZ(Z)))return!1;return!0;case bZ:case nZ:case uZ:return Y$(+U,+Z);case iZ:return U.name==Z.name&&U.message==Z.message;case sZ:case lZ:return U==Z+"";case qU:var B=q1;case wU:var W=X&h;if(B||(B=N1),U.size!=Z.size&&!W)return!1;var G=Y.get(U);if(G)return G==Z;X|=HU,Y.set(U,Z);var J=$$(B(U),B(Z),Q,R,X,Y);return Y.delete(U),J;case rZ:if(iU)return iU.call(U)==iU.call(Z)}return!1},F6=function(U,Z,$,Q,R,X){var Y=R&h,B=LU(U),W=B.length,G=LU(Z),J=G.length;if(W!=J&&!Y)return!1;var w=W;while(w--){var K=B[w];if(!(Y?K in Z:D.call(Z,K)))return!1}var q=X.get(U);if(q&&X.get(Z))return q==Z;var H=!0;X.set(U,Z),X.set(Z,U);var A=Y;while(++w<W){K=B[w];var S=U[K],V=Z[K];if(Q)var NZ=Y?Q(V,S,K,Z,U,X):Q(S,V,K,U,Z,X);if(!(NZ===void 0?S===V||$(S,V,Q,R,X):NZ)){H=!1;break}A||(A=K=="constructor")}if(H&&!A){var ZU=U.constructor,$U=Z.constructor;if(ZU!=$U&&(("constructor"in U)&&("constructor"in Z))&&!(typeof ZU=="function"&&ZU instanceof ZU&&typeof $U=="function"&&$U instanceof $U))H=!1}return X.delete(U),X.delete(Z),H},MU=function(U,Z){var $=U.__data__;return H6(Z)?$[typeof Z=="string"?"string":"hash"]:$.map},z6=function(U){var Z=LU(U),$=Z.length;while($--){var Q=Z[$],R=U[Q];Z[$]=[Q,R,R$(R)]}return Z},n=function(U,Z){var $=K1(U,Z);return Q6($)?$:void 0},L6=function(U,Z,$){Z=DU(Z,U)?[Z]:Z$(Z);var Q,R=-1,Y=Z.length;while(++R<Y){var X=EU(Z[R]);if(!(Q=U!=null&&$(U,X)))break;U=U[X]}if(Q)return Q;var Y=U?U.length:0;return!!Y&&$Z(Y)&&Q$(X,Y)&&(P(U)||B$(U))},Q$=function(U,Z){return Z=Z==null?hZ:Z,!!Z&&(typeof U=="number"||Q1.test(U))&&(U>-1&&U%1==0&&U<Z)},DU=function(U,Z){if(P(U))return!1;var $=typeof U;if($=="number"||$=="symbol"||$=="boolean"||U==null||QZ(U))return!0;return tQ.test(U)||!oQ.test(U)||Z!=null&&U in Object(Z)},H6=function(U){var Z=typeof U;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?U!=="__proto__":U===null},_6=function(U){return!!dZ&&dZ in U},S6=function(U){var Z=U&&U.constructor,$=typeof Z=="function"&&Z.prototype||_U;return U===$},R$=function(U){return U===U&&!IU(U)},X$=function(U,Z){return function($){if($==null)return!1;return $[U]===Z&&(Z!==void 0||(U in Object($)))}},EU=function(U){if(typeof U=="string"||QZ(U))return U;var Z=U+"";return Z=="0"&&1/U==-yZ?"-0":Z},m=function(U){if(U!=null){try{return eZ.call(U)}catch(Z){}try{return U+""}catch(Z){}}return""},UZ=function(U,Z){if(typeof U!="function"||Z&&typeof Z!="function")throw new TypeError(vQ);var $=function(){var Q=arguments,R=Z?Z.apply(this,Q):Q[0],X=$.cache;if(X.has(R))return X.get(R);var Y=U.apply(this,Q);return $.cache=X.set(R,Y),Y};return $.cache=new(UZ.Cache||I),$},Y$=function(U,Z){return U===Z||U!==U&&Z!==Z},B$=function(U){return E6(U)&&D.call(U,"callee")&&(!H1.call(U,"callee")||b.call(U)==KU)},ZZ=function(U){return U!=null&&$Z(U.length)&&!W$(U)},E6=function(U){return AU(U)&&ZZ(U)},W$=function(U){var Z=IU(U)?b.call(U):"";return Z==cZ||Z==yQ},$Z=function(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=hZ},IU=function(U){var Z=typeof U;return!!U&&(Z=="object"||Z=="function")},AU=function(U){return!!U&&typeof U=="object"},QZ=function(U){return typeof U=="symbol"||AU(U)&&b.call(U)==rZ},A6=function(U){return U==null?"":G6(U)},O6=function(U,Z,$){var Q=U==null?void 0:U$(U,Z);return Q===void 0?$:Q},P6=function(U,Z){return U!=null&&L6(U,Z,U6)},LU=function(U){return ZZ(U)?l1(U):Y6(U)},T6=function(U){return U},C6=function(U){return DU(U)?W1(EU(U)):J6(U)},pQ=200,vQ="Expected a function",aU="__lodash_hash_undefined__",HU=1,h=2,yZ=Infinity,hZ=9007199254740991,KU="[object Arguments]",cU="[object Array]",bZ="[object Boolean]",nZ="[object Date]",iZ="[object Error]",cZ="[object Function]",yQ="[object GeneratorFunction]",qU="[object Map]",uZ="[object Number]",v="[object Object]",fZ="[object Promise]",sZ="[object RegExp]",wU="[object Set]",lZ="[object String]",rZ="[object Symbol]",uU="[object WeakMap]",oZ="[object ArrayBuffer]",NU="[object DataView]",hQ="[object Float32Array]",bQ="[object Float64Array]",nQ="[object Int8Array]",iQ="[object Int16Array]",cQ="[object Int32Array]",uQ="[object Uint8Array]",sQ="[object Uint8ClampedArray]",lQ="[object Uint16Array]",rQ="[object Uint32Array]",oQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tQ=/^\w*$/,aQ=/^\./,eQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,U1=/[\\^$.*+?()[\]{}|]/g,Z1=/\\(\\)?/g,$1=/^\[object .+?Constructor\]$/,Q1=/^(?:0|[1-9]\d*)$/,N={};N[hQ]=N[bQ]=N[nQ]=N[iQ]=N[cQ]=N[uQ]=N[sQ]=N[lQ]=N[rQ]=!0;N[KU]=N[cU]=N[oZ]=N[bZ]=N[NU]=N[nZ]=N[iZ]=N[cZ]=N[qU]=N[uZ]=N[v]=N[sZ]=N[wU]=N[lZ]=N[uU]=!1;var tZ=typeof global=="object"&&global&&global.Object===Object&&global,R1=typeof self=="object"&&self&&self.Object===Object&&self,T=tZ||R1||Function("return this")(),aZ=typeof GU=="object"&&GU&&!GU.nodeType&&GU,xZ=aZ&&typeof y=="object"&&y&&!y.nodeType&&y,X1=xZ&&xZ.exports===aZ,gZ=X1&&tZ.process,mZ=function(){try{return gZ&&gZ.binding("util")}catch(U){}}(),jZ=mZ&&mZ.isTypedArray,F1=Array.prototype,z1=Function.prototype,_U=Object.prototype,nU=T["__core-js_shared__"],dZ=function(){var U=/[^.]+$/.exec(nU&&nU.keys&&nU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),eZ=z1.toString,D=_U.hasOwnProperty,b=_U.toString,L1=RegExp("^"+eZ.call(D).replace(U1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),kZ=T.Symbol,pZ=T.Uint8Array,H1=_U.propertyIsEnumerable,_1=F1.splice,S1=w1(Object.keys,Object),lU=n(T,"DataView"),o=n(T,"Map"),rU=n(T,"Promise"),oU=n(T,"Set"),tU=n(T,"WeakMap"),t=n(Object,"create"),M1=m(lU),D1=m(o),E1=m(rU),I1=m(oU),A1=m(tU),FU=kZ?kZ.prototype:void 0,iU=FU?FU.valueOf:void 0,vZ=FU?FU.toString:void 0;g.prototype.clear=O1;g.prototype.delete=P1;g.prototype.get=T1;g.prototype.has=C1;g.prototype.set=V1;E.prototype.clear=f1;E.prototype.delete=x1;E.prototype.get=g1;E.prototype.has=m1;E.prototype.set=j1;I.prototype.clear=d1;I.prototype.delete=k1;I.prototype.get=p1;I.prototype.has=v1;I.prototype.set=y1;zU.prototype.add=zU.prototype.push=h1;zU.prototype.has=b1;M.prototype.clear=n1;M.prototype.delete=i1;M.prototype.get=c1;M.prototype.has=u1;M.prototype.set=s1;var o1=q6(a1),t1=w6(),O=e1;if(lU&&O(new lU(new ArrayBuffer(1)))!=NU||o&&O(new o)!=qU||rU&&O(rU.resolve())!=fZ||oU&&O(new oU)!=wU||tU&&O(new tU)!=uU)O=function(U){var Z=b.call(U),$=Z==v?U.constructor:void 0,Q=$?m($):void 0;if(Q)switch(Q){case M1:return NU;case D1:return qU;case E1:return fZ;case I1:return wU;case A1:return uU}return Z};var M6=UZ(function(U){U=A6(U);var Z=[];if(aQ.test(U))Z.push("");return U.replace(eQ,function($,Q,R,X){Z.push(R?X.replace(Z1,"$1"):Q||$)}),Z}),D6=K6(function(U,Z,$){U[$]=Z});UZ.Cache=I;var P=Array.isArray,I6=jZ?G1(jZ):R6;y.exports=D6});var V$=jU((WR,C$)=>{var U8=function(U,Z){return U==null?void 0:U[Z]},Z8=function(U){var Z=!1;if(U!=null&&typeof U.toString!="function")try{Z=!!(U+"")}catch($){}return Z},d=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},B8=function(){this.__data__=UU?UU(null):{}},W8=function(U){return this.has(U)&&delete this.__data__[U]},J8=function(U){var Z=this.__data__;if(UU){var $=Z[U];return $===M$?void 0:$}return KZ.call(Z,U)?Z[U]:void 0},G8=function(U){var Z=this.__data__;return UU?Z[U]!==void 0:KZ.call(Z,U)},K8=function(U,Z){var $=this.__data__;return $[U]=UU&&Z===void 0?M$:Z,this},l=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},q8=function(){this.__data__=[]},w8=function(U){var Z=this.__data__,$=fU(Z,U);if($<0)return!1;var Q=Z.length-1;if($==Q)Z.pop();else X8.call(Z,$,1);return!0},N8=function(U){var Z=this.__data__,$=fU(Z,U);return $<0?void 0:Z[$][1]},F8=function(U){return fU(this.__data__,U)>-1},z8=function(U,Z){var $=this.__data__,Q=fU($,U);if(Q<0)$.push([U,Z]);else $[Q][1]=Z;return this},k=function(U){var Z=-1,$=U?U.length:0;this.clear();while(++Z<$){var Q=U[Z];this.set(Q[0],Q[1])}},L8=function(){this.__data__={hash:new d,map:new(Y8||l),string:new d}},H8=function(U){return xU(this,U).delete(U)},_8=function(U){return xU(this,U).get(U)},S8=function(U){return xU(this,U).has(U)},M8=function(U,Z){return xU(this,U).set(U,Z),this},fU=function(U,Z){var $=U.length;while($--)if(x8(U[$][0],Z))return $;return-1},D8=function(U,Z){Z=O8(Z,U)?[Z]:A8(Z);var $=0,Q=Z.length;while(U!=null&&$<Q)U=U[V8(Z[$++])];return $&&$==Q?U:void 0},E8=function(U){if(!T$(U)||T8(U))return!1;var Z=g8(U)||Z8(U)?R8:t6;return Z.test(f8(U))},I8=function(U){if(typeof U=="string")return U;if(wZ(U))return S$?S$.call(U):"";var Z=U+"";return Z=="0"&&1/U==-D$?"-0":Z},A8=function(U){return P$(U)?U:C8(U)},xU=function(U,Z){var $=U.__data__;return P8(Z)?$[typeof Z=="string"?"string":"hash"]:$.map},O$=function(U,Z){var $=U8(U,Z);return E8($)?$:void 0},O8=function(U,Z){if(P$(U))return!1;var $=typeof U;if($=="number"||$=="symbol"||$=="boolean"||U==null||wZ(U))return!0;return u6.test(U)||!c6.test(U)||Z!=null&&U in Object(Z)},P8=function(U){var Z=typeof U;return Z=="string"||Z=="number"||Z=="symbol"||Z=="boolean"?U!=="__proto__":U===null},T8=function(U){return!!L$&&L$ in U},V8=function(U){if(typeof U=="string"||wZ(U))return U;var Z=U+"";return Z=="0"&&1/U==-D$?"-0":Z},f8=function(U){if(U!=null){try{return I$.call(U)}catch(Z){}try{return U+""}catch(Z){}}return""},qZ=function(U,Z){if(typeof U!="function"||Z&&typeof Z!="function")throw new TypeError(h6);var $=function(){var Q=arguments,R=Z?Z.apply(this,Q):Q[0],X=$.cache;if(X.has(R))return X.get(R);var Y=U.apply(this,Q);return $.cache=X.set(R,Y),Y};return $.cache=new(qZ.Cache||k),$},x8=function(U,Z){return U===Z||U!==U&&Z!==Z},g8=function(U){var Z=T$(U)?A$.call(U):"";return Z==b6||Z==n6},T$=function(U){var Z=typeof U;return!!U&&(Z=="object"||Z=="function")},m8=function(U){return!!U&&typeof U=="object"},wZ=function(U){return typeof U=="symbol"||m8(U)&&A$.call(U)==i6},j8=function(U){return U==null?"":I8(U)},d8=function(U,Z,$){var Q=U==null?void 0:D8(U,Z);return Q===void 0?$:Q},h6="Expected a function",M$="__lodash_hash_undefined__",D$=Infinity,b6="[object Function]",n6="[object GeneratorFunction]",i6="[object Symbol]",c6=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u6=/^\w*$/,s6=/^\./,l6=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r6=/[\\^$.*+?()[\]{}|]/g,o6=/\\(\\)?/g,t6=/^\[object .+?Constructor\]$/,a6=typeof global=="object"&&global&&global.Object===Object&&global,e6=typeof self=="object"&&self&&self.Object===Object&&self,GZ=a6||e6||Function("return this")(),$8=Array.prototype,Q8=Function.prototype,E$=Object.prototype,JZ=GZ["__core-js_shared__"],L$=function(){var U=/[^.]+$/.exec(JZ&&JZ.keys&&JZ.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),I$=Q8.toString,KZ=E$.hasOwnProperty,A$=E$.toString,R8=RegExp("^"+I$.call(KZ).replace(r6,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),H$=GZ.Symbol,X8=$8.splice,Y8=O$(GZ,"Map"),UU=O$(Object,"create"),_$=H$?H$.prototype:void 0,S$=_$?_$.toString:void 0;d.prototype.clear=B8;d.prototype.delete=W8;d.prototype.get=J8;d.prototype.has=G8;d.prototype.set=K8;l.prototype.clear=q8;l.prototype.delete=w8;l.prototype.get=N8;l.prototype.has=F8;l.prototype.set=z8;k.prototype.clear=L8;k.prototype.delete=H8;k.prototype.get=_8;k.prototype.has=S8;k.prototype.set=M8;var C8=qZ(function(U){U=j8(U);var Z=[];if(s6.test(U))Z.push("");return U.replace(l6,function($,Q,R,X){Z.push(R?X.replace(o6,"$1"):Q||$)}),Z});qZ.Cache=k;var P$=Array.isArray;C$.exports=d8});var CZ=mU(TZ(),1),BU={isNamespace:(U)=>U&&!U.type,flattenSchema(U,Z){return Object.entries(U).reduce(($,[Q,R])=>{const X=Z?`${Z}.${Q}`:Q;if(BU.isNamespace(R))$={...$,...BU.flattenSchema(R,X)};else Object.assign(R,{name:X}),$[X]=R;return $},{})},wrapSchema(U){return Object.values(U).reduce((Z,$)=>{return CZ.default(Z,$.path,$),Z},{})}};var WU,jQ=new Uint8Array(16);function hU(){if(!WU){if(WU=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!WU)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}return WU(jQ)}function VZ(U,Z=0){return L[U[Z+0]]+L[U[Z+1]]+L[U[Z+2]]+L[U[Z+3]]+"-"+L[U[Z+4]]+L[U[Z+5]]+"-"+L[U[Z+6]]+L[U[Z+7]]+"-"+L[U[Z+8]]+L[U[Z+9]]+"-"+L[U[Z+10]]+L[U[Z+11]]+L[U[Z+12]]+L[U[Z+13]]+L[U[Z+14]]+L[U[Z+15]]}var L=[];for(let U=0;U<256;++U)L.push((U+256).toString(16).slice(1));var dQ=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),bU={randomUUID:dQ};var kQ=function(U,Z,$){if(bU.randomUUID&&!Z&&!U)return bU.randomUUID();U=U||{};const Q=U.random||(U.rng||hU)();if(Q[6]=Q[6]&15|64,Q[8]=Q[8]&63|128,Z){$=$||0;for(let R=0;R<16;++R)Z[$+R]=Q[R];return Z}return VZ(Q)},JU=kQ;var z$=mU(J$(),1);var F$={};dU(F$,{validator:()=>{{return e}},validate:()=>{{return RZ}},unobserve:()=>{{return q$}},unescapePathComponent:()=>{{return i}},observe:()=>{{return w$}},getValueByPointer:()=>{{return a}},generate:()=>{{return VU}},escapePathComponent:()=>{{return _}},default:()=>{{return v6}},deepClone:()=>{{return z}},compare:()=>{{return N$}},applyReducer:()=>{{return K$}},applyPatch:()=>{{return j}},applyOperation:()=>{{return C}},_areEquals:()=>{{return s}},JsonPatchError:()=>{{return c}}});var XZ={};dU(XZ,{validator:()=>{{return e}},validate:()=>{{return RZ}},getValueByPointer:()=>{{return a}},deepClone:()=>{{return x6}},applyReducer:()=>{{return K$}},applyPatch:()=>{{return j}},applyOperation:()=>{{return C}},_areEquals:()=>{{return s}},JsonPatchError:()=>{{return F}}});function PU(U,Z){return f6.call(U,Z)}function TU(U){if(Array.isArray(U)){var Z=new Array(U.length);for(var $=0;$<Z.length;$++)Z[$]=""+$;return Z}if(Object.keys)return Object.keys(U);var Q=[];for(var R in U)if(PU(U,R))Q.push(R);return Q}function z(U){switch(typeof U){case"object":return JSON.parse(JSON.stringify(U));case"undefined":return null;default:return U}}function CU(U){var Z=0,$=U.length,Q;while(Z<$){if(Q=U.charCodeAt(Z),Q>=48&&Q<=57){Z++;continue}return!1}return!0}function _(U){if(U.indexOf("/")===-1&&U.indexOf("~")===-1)return U;return U.replace(/~/g,"~0").replace(/\//g,"~1")}function i(U){return U.replace(/~1/g,"/").replace(/~0/g,"~")}function OU(U){if(U===void 0)return!0;if(U){if(Array.isArray(U)){for(var Z=0,$=U.length;Z<$;Z++)if(OU(U[Z]))return!0}else if(typeof U==="object"){var Q=TU(U),R=Q.length;for(var X=0;X<R;X++)if(OU(U[Q[X]]))return!0}}return!1}var G$=function(U,Z){var $=[U];for(var Q in Z){var R=typeof Z[Q]==="object"?JSON.stringify(Z[Q],null,2):Z[Q];if(typeof R!=="undefined")$.push(Q+": "+R)}return $.join("\n")};/*! | ||
var xZ=Object.create;var{defineProperty:gU,getPrototypeOf:gZ,getOwnPropertyNames:mZ}=Object;var jZ=Object.prototype.hasOwnProperty;var mU=(U,$,Z)=>{Z=U!=null?xZ(gZ(U)):{};const Q=$||!U||!U.__esModule?gU(Z,"default",{value:U,enumerable:!0}):Z;for(let R of mZ(U))if(!jZ.call(Q,R))gU(Q,R,{get:()=>U[R],enumerable:!0});return Q};var jU=(U,$)=>()=>($||U(($={exports:{}}).exports,$),$.exports);var dU=(U,$)=>{for(var Z in $)gU(U,Z,{get:$[Z],enumerable:!0,configurable:!0,set:(Q)=>$[Z]=()=>Q})};var T$=jU((p6,O$)=>{var tZ=function(U,$){return U==null?void 0:U[$]},aZ=function(U){var $=!1;if(U!=null&&typeof U.toString!="function")try{$=!!(U+"")}catch(Z){}return $},f=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var Q=U[$];this.set(Q[0],Q[1])}},RQ=function(){this.__data__=r?r(null):{}},XQ=function(U){return this.has(U)&&delete this.__data__[U]},YQ=function(U){var $=this.__data__;if(r){var Z=$[U];return Z===_$?void 0:Z}return RU.call($,U)?$[U]:void 0},BQ=function(U){var $=this.__data__;return r?$[U]!==void 0:RU.call($,U)},WQ=function(U,$){var Z=this.__data__;return Z[U]=r&&$===void 0?_$:$,this},p=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var Q=U[$];this.set(Q[0],Q[1])}},JQ=function(){this.__data__=[]},GQ=function(U){var $=this.__data__,Z=XU($,U);if(Z<0)return!1;var Q=$.length-1;if(Z==Q)$.pop();else ZQ.call($,Z,1);return!0},KQ=function(U){var $=this.__data__,Z=XU($,U);return Z<0?void 0:$[Z][1]},wQ=function(U){return XU(this.__data__,U)>-1},qQ=function(U,$){var Z=this.__data__,Q=XU(Z,U);if(Q<0)Z.push([U,$]);else Z[Q][1]=$;return this},x=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var Q=U[$];this.set(Q[0],Q[1])}},NQ=function(){this.__data__={hash:new f,map:new(QQ||p),string:new f}},FQ=function(U){return YU(this,U).delete(U)},zQ=function(U){return YU(this,U).get(U)},LQ=function(U){return YU(this,U).has(U)},HQ=function(U,$){return YU(this,U).set(U,$),this},_Q=function(U,$,Z){var Q=U[$];if(!(RU.call(U,$)&&A$(Q,Z))||Z===void 0&&!($ in U))U[$]=Z},XU=function(U,$){var Z=U.length;while(Z--)if(A$(U[Z][0],$))return Z;return-1},SQ=function(U){if(!QU(U)||OQ(U))return!1;var $=fQ(U)||aZ(U)?$Q:sZ;return $.test(VQ(U))},DQ=function(U,$,Z,Q){if(!QU(U))return U;$=AQ($,U)?[$]:EQ($);var R=-1,X=$.length,Y=X-1,B=U;while(B!=null&&++R<X){var W=CQ($[R]),G=Z;if(R!=Y){var J=B[W];if(G=Q?Q(J,W,B):void 0,G===void 0)G=QU(J)?J:IQ($[R+1])?[]:{}}_Q(B,W,G),B=B[W]}return U},MQ=function(U){if(typeof U=="string")return U;if(yU(U))return H$?H$.call(U):"";var $=U+"";return $=="0"&&1/U==-S$?"-0":$},EQ=function(U){return P$(U)?U:TQ(U)},YU=function(U,$){var Z=U.__data__;return PQ($)?Z[typeof $=="string"?"string":"hash"]:Z.map},I$=function(U,$){var Z=tZ(U,$);return SQ(Z)?Z:void 0},IQ=function(U,$){return $=$==null?kZ:$,!!$&&(typeof U=="number"||lZ.test(U))&&(U>-1&&U%1==0&&U<$)},AQ=function(U,$){if(P$(U))return!1;var Z=typeof U;if(Z=="number"||Z=="symbol"||Z=="boolean"||U==null||yU(U))return!0;return bZ.test(U)||!hZ.test(U)||$!=null&&U in Object($)},PQ=function(U){var $=typeof U;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?U!=="__proto__":U===null},OQ=function(U){return!!F$&&F$ in U},CQ=function(U){if(typeof U=="string"||yU(U))return U;var $=U+"";return $=="0"&&1/U==-S$?"-0":$},VQ=function(U){if(U!=null){try{return M$.call(U)}catch($){}try{return U+""}catch($){}}return""},vU=function(U,$){if(typeof U!="function"||$&&typeof $!="function")throw new TypeError(dZ);var Z=function(){var Q=arguments,R=$?$.apply(this,Q):Q[0],X=Z.cache;if(X.has(R))return X.get(R);var Y=U.apply(this,Q);return Z.cache=X.set(R,Y),Y};return Z.cache=new(vU.Cache||x),Z},A$=function(U,$){return U===$||U!==U&&$!==$},fQ=function(U){var $=QU(U)?E$.call(U):"";return $==pZ||$==vZ},QU=function(U){var $=typeof U;return!!U&&($=="object"||$=="function")},xQ=function(U){return!!U&&typeof U=="object"},yU=function(U){return typeof U=="symbol"||xQ(U)&&E$.call(U)==yZ},gQ=function(U){return U==null?"":MQ(U)},mQ=function(U,$,Z){return U==null?U:DQ(U,$,Z)},dZ="Expected a function",_$="__lodash_hash_undefined__",S$=Infinity,kZ=9007199254740991,pZ="[object Function]",vZ="[object GeneratorFunction]",yZ="[object Symbol]",hZ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,bZ=/^\w*$/,nZ=/^\./,iZ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cZ=/[\\^$.*+?()[\]{}|]/g,uZ=/\\(\\)?/g,sZ=/^\[object .+?Constructor\]$/,lZ=/^(?:0|[1-9]\d*)$/,rZ=typeof global=="object"&&global&&global.Object===Object&&global,oZ=typeof self=="object"&&self&&self.Object===Object&&self,pU=rZ||oZ||Function("return this")(),eZ=Array.prototype,UQ=Function.prototype,D$=Object.prototype,kU=pU["__core-js_shared__"],F$=function(){var U=/[^.]+$/.exec(kU&&kU.keys&&kU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),M$=UQ.toString,RU=D$.hasOwnProperty,E$=D$.toString,$Q=RegExp("^"+M$.call(RU).replace(cZ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),z$=pU.Symbol,ZQ=eZ.splice,QQ=I$(pU,"Map"),r=I$(Object,"create"),L$=z$?z$.prototype:void 0,H$=L$?L$.toString:void 0;f.prototype.clear=RQ;f.prototype.delete=XQ;f.prototype.get=YQ;f.prototype.has=BQ;f.prototype.set=WQ;p.prototype.clear=JQ;p.prototype.delete=GQ;p.prototype.get=KQ;p.prototype.has=wQ;p.prototype.set=qQ;x.prototype.clear=NQ;x.prototype.delete=FQ;x.prototype.get=zQ;x.prototype.has=LQ;x.prototype.set=HQ;var TQ=vU(function(U){U=gQ(U);var $=[];if(nZ.test(U))$.push("");return U.replace(iZ,function(Z,Q,R,X){$.push(R?X.replace(uZ,"$1"):Q||Z)}),$});vU.Cache=x;var P$=Array.isArray;O$.exports=mQ});var JZ=jU((GU,y)=>{var YR=function(U,$,Z,Q){var R=-1,X=U?U.length:0;while(++R<X){var Y=U[R];$(Q,Y,Z(Y),U)}return Q},BR=function(U,$){var Z=-1,Q=U?U.length:0;while(++Z<Q)if($(U[Z],Z,U))return!0;return!1},WR=function(U){return function($){return $==null?void 0:$[U]}},JR=function(U,$){var Z=-1,Q=Array(U);while(++Z<U)Q[Z]=$(Z);return Q},GR=function(U){return function($){return U($)}},KR=function(U,$){return U==null?void 0:U[$]},sU=function(U){var $=!1;if(U!=null&&typeof U.toString!="function")try{$=!!(U+"")}catch(Z){}return $},wR=function(U){var $=-1,Z=Array(U.size);return U.forEach(function(Q,R){Z[++$]=[R,Q]}),Z},qR=function(U,$){return function(Z){return U($(Z))}},NR=function(U){var $=-1,Z=Array(U.size);return U.forEach(function(Q){Z[++$]=Q}),Z},g=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var Q=U[$];this.set(Q[0],Q[1])}},PR=function(){this.__data__=t?t(null):{}},OR=function(U){return this.has(U)&&delete this.__data__[U]},TR=function(U){var $=this.__data__;if(t){var Z=$[U];return Z===aU?void 0:Z}return M.call($,U)?$[U]:void 0},CR=function(U){var $=this.__data__;return t?$[U]!==void 0:M.call($,U)},VR=function(U,$){var Z=this.__data__;return Z[U]=t&&$===void 0?aU:$,this},E=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var Q=U[$];this.set(Q[0],Q[1])}},fR=function(){this.__data__=[]},xR=function(U){var $=this.__data__,Z=SU($,U);if(Z<0)return!1;var Q=$.length-1;if(Z==Q)$.pop();else _R.call($,Z,1);return!0},gR=function(U){var $=this.__data__,Z=SU($,U);return Z<0?void 0:$[Z][1]},mR=function(U){return SU(this.__data__,U)>-1},jR=function(U,$){var Z=this.__data__,Q=SU(Z,U);if(Q<0)Z.push([U,$]);else Z[Q][1]=$;return this},I=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var Q=U[$];this.set(Q[0],Q[1])}},dR=function(){this.__data__={hash:new g,map:new(o||E),string:new g}},kR=function(U){return DU(this,U).delete(U)},pR=function(U){return DU(this,U).get(U)},vR=function(U){return DU(this,U).has(U)},yR=function(U,$){return DU(this,U).set(U,$),this},zU=function(U){var $=-1,Z=U?U.length:0;this.__data__=new I;while(++$<Z)this.add(U[$])},hR=function(U){return this.__data__.set(U,aU),this},bR=function(U){return this.__data__.has(U)},D=function(U){this.__data__=new E(U)},nR=function(){this.__data__=new E},iR=function(U){return this.__data__.delete(U)},cR=function(U){return this.__data__.get(U)},uR=function(U){return this.__data__.has(U)},sR=function(U,$){var Z=this.__data__;if(Z instanceof E){var Q=Z.__data__;if(!o||Q.length<pQ-1)return Q.push([U,$]),this;Z=this.__data__=new I(Q)}return Z.set(U,$),this},lR=function(U,$){var Z=O(U)||BZ(U)?JR(U.length,String):[],Q=Z.length,R=!!Q;for(var X in U)if(($||M.call(U,X))&&!(R&&(X=="length"||QZ(X,Q))))Z.push(X);return Z},SU=function(U,$){var Z=U.length;while(Z--)if(YZ(U[Z][0],$))return Z;return-1},rR=function(U,$,Z,Q){return oR(U,function(R,X,Y){$(Q,R,Z(R),Y)}),Q},aR=function(U,$){return U&&tR(U,$,LU)},UZ=function(U,$){$=MU($,U)?[$]:$Z($);var Z=0,Q=$.length;while(U!=null&&Z<Q)U=U[EU($[Z++])];return Z&&Z==Q?U:void 0},eR=function(U){return b.call(U)},U1=function(U,$){return U!=null&&$ in Object(U)},eU=function(U,$,Z,Q,R){if(U===$)return!0;if(U==null||$==null||!IU(U)&&!AU($))return U!==U&&$!==$;return $1(U,$,eU,Z,Q,R)},$1=function(U,$,Z,Q,R,X){var Y=O(U),B=O($),W=cU,G=cU;if(!Y)W=P(U),W=W==KU?v:W;if(!B)G=P($),G=G==KU?v:G;var J=W==v&&!sU(U),q=G==v&&!sU($),K=W==G;if(K&&!J)return X||(X=new D),Y||I1(U)?ZZ(U,$,Z,Q,R,X):N1(U,$,W,Z,Q,R,X);if(!(R&h)){var w=J&&M.call(U,"__wrapped__"),H=q&&M.call($,"__wrapped__");if(w||H){var A=w?U.value():U,S=H?$.value():$;return X||(X=new D),Z(A,S,Q,R,X)}}if(!K)return!1;return X||(X=new D),F1(U,$,Z,Q,R,X)},Z1=function(U,$,Z,Q){var R=Z.length,X=R,Y=!Q;if(U==null)return!X;U=Object(U);while(R--){var B=Z[R];if(Y&&B[2]?B[1]!==U[B[0]]:!(B[0]in U))return!1}while(++R<X){B=Z[R];var W=B[0],G=U[W],J=B[1];if(Y&&B[2]){if(G===void 0&&!(W in U))return!1}else{var q=new D;if(Q)var K=Q(G,J,W,U,$,q);if(!(K===void 0?eU(J,G,Q,HU|h,q):K))return!1}}return!0},Q1=function(U){if(!IU(U)||_1(U))return!1;var $=WZ(U)||sU(U)?LR:ZR;return $.test(m(U))},R1=function(U){return AU(U)&&Z$(U.length)&&!!N[b.call(U)]},X1=function(U){if(typeof U=="function")return U;if(U==null)return T1;if(typeof U=="object")return O(U)?W1(U[0],U[1]):B1(U);return C1(U)},Y1=function(U){if(!S1(U))return SR(U);var $=[];for(var Z in Object(U))if(M.call(U,Z)&&Z!="constructor")$.push(Z);return $},B1=function(U){var $=z1(U);if($.length==1&&$[0][2])return XZ($[0][0],$[0][1]);return function(Z){return Z===U||Z1(Z,U,$)}},W1=function(U,$){if(MU(U)&&RZ($))return XZ(EU(U),$);return function(Z){var Q=P1(Z,U);return Q===void 0&&Q===$?O1(Z,U):eU($,Q,void 0,HU|h)}},J1=function(U){return function($){return UZ($,U)}},G1=function(U){if(typeof U=="string")return U;if(Q$(U))return v$?v$.call(U):"";var $=U+"";return $=="0"&&1/U==-y$?"-0":$},$Z=function(U){return O(U)?U:D1(U)},K1=function(U,$){return function(Z,Q){var R=O(Z)?YR:rR,X=$?$():{};return R(Z,U,X1(Q,2),X)}},w1=function(U,$){return function(Z,Q){if(Z==null)return Z;if(!$$(Z))return U(Z,Q);var R=Z.length,X=$?R:-1,Y=Object(Z);while($?X--:++X<R)if(Q(Y[X],X,Y)===!1)break;return Z}},q1=function(U){return function($,Z,Q){var R=-1,X=Object($),Y=Q($),B=Y.length;while(B--){var W=Y[U?B:++R];if(Z(X[W],W,X)===!1)break}return $}},ZZ=function(U,$,Z,Q,R,X){var Y=R&h,B=U.length,W=$.length;if(B!=W&&!(Y&&W>B))return!1;var G=X.get(U);if(G&&X.get($))return G==$;var J=-1,q=!0,K=R&HU?new zU:void 0;X.set(U,$),X.set($,U);while(++J<B){var w=U[J],H=$[J];if(Q)var A=Y?Q(H,w,J,$,U,X):Q(w,H,J,U,$,X);if(A!==void 0){if(A)continue;q=!1;break}if(K){if(!BR($,function(S,V){if(!K.has(V)&&(w===S||Z(w,S,Q,R,X)))return K.add(V)})){q=!1;break}}else if(!(w===H||Z(w,H,Q,R,X))){q=!1;break}}return X.delete(U),X.delete($),q},N1=function(U,$,Z,Q,R,X,Y){switch(Z){case NU:if(U.byteLength!=$.byteLength||U.byteOffset!=$.byteOffset)return!1;U=U.buffer,$=$.buffer;case o$:if(U.byteLength!=$.byteLength||!Q(new p$(U),new p$($)))return!1;return!0;case b$:case n$:case u$:return YZ(+U,+$);case i$:return U.name==$.name&&U.message==$.message;case s$:case l$:return U==$+"";case wU:var B=wR;case qU:var W=X&h;if(B||(B=NR),U.size!=$.size&&!W)return!1;var G=Y.get(U);if(G)return G==$;X|=HU,Y.set(U,$);var J=ZZ(B(U),B($),Q,R,X,Y);return Y.delete(U),J;case r$:if(iU)return iU.call(U)==iU.call($)}return!1},F1=function(U,$,Z,Q,R,X){var Y=R&h,B=LU(U),W=B.length,G=LU($),J=G.length;if(W!=J&&!Y)return!1;var q=W;while(q--){var K=B[q];if(!(Y?K in $:M.call($,K)))return!1}var w=X.get(U);if(w&&X.get($))return w==$;var H=!0;X.set(U,$),X.set($,U);var A=Y;while(++q<W){K=B[q];var S=U[K],V=$[K];if(Q)var N$=Y?Q(V,S,K,$,U,X):Q(S,V,K,U,$,X);if(!(N$===void 0?S===V||Z(S,V,Q,R,X):N$)){H=!1;break}A||(A=K=="constructor")}if(H&&!A){var $U=U.constructor,ZU=$.constructor;if($U!=ZU&&(("constructor"in U)&&("constructor"in $))&&!(typeof $U=="function"&&$U instanceof $U&&typeof ZU=="function"&&ZU instanceof ZU))H=!1}return X.delete(U),X.delete($),H},DU=function(U,$){var Z=U.__data__;return H1($)?Z[typeof $=="string"?"string":"hash"]:Z.map},z1=function(U){var $=LU(U),Z=$.length;while(Z--){var Q=$[Z],R=U[Q];$[Z]=[Q,R,RZ(R)]}return $},n=function(U,$){var Z=KR(U,$);return Q1(Z)?Z:void 0},L1=function(U,$,Z){$=MU($,U)?[$]:$Z($);var Q,R=-1,Y=$.length;while(++R<Y){var X=EU($[R]);if(!(Q=U!=null&&Z(U,X)))break;U=U[X]}if(Q)return Q;var Y=U?U.length:0;return!!Y&&Z$(Y)&&QZ(X,Y)&&(O(U)||BZ(U))},QZ=function(U,$){return $=$==null?h$:$,!!$&&(typeof U=="number"||QR.test(U))&&(U>-1&&U%1==0&&U<$)},MU=function(U,$){if(O(U))return!1;var Z=typeof U;if(Z=="number"||Z=="symbol"||Z=="boolean"||U==null||Q$(U))return!0;return tQ.test(U)||!oQ.test(U)||$!=null&&U in Object($)},H1=function(U){var $=typeof U;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?U!=="__proto__":U===null},_1=function(U){return!!d$&&d$ in U},S1=function(U){var $=U&&U.constructor,Z=typeof $=="function"&&$.prototype||_U;return U===Z},RZ=function(U){return U===U&&!IU(U)},XZ=function(U,$){return function(Z){if(Z==null)return!1;return Z[U]===$&&($!==void 0||(U in Object(Z)))}},EU=function(U){if(typeof U=="string"||Q$(U))return U;var $=U+"";return $=="0"&&1/U==-y$?"-0":$},m=function(U){if(U!=null){try{return e$.call(U)}catch($){}try{return U+""}catch($){}}return""},U$=function(U,$){if(typeof U!="function"||$&&typeof $!="function")throw new TypeError(vQ);var Z=function(){var Q=arguments,R=$?$.apply(this,Q):Q[0],X=Z.cache;if(X.has(R))return X.get(R);var Y=U.apply(this,Q);return Z.cache=X.set(R,Y),Y};return Z.cache=new(U$.Cache||I),Z},YZ=function(U,$){return U===$||U!==U&&$!==$},BZ=function(U){return E1(U)&&M.call(U,"callee")&&(!HR.call(U,"callee")||b.call(U)==KU)},$$=function(U){return U!=null&&Z$(U.length)&&!WZ(U)},E1=function(U){return AU(U)&&$$(U)},WZ=function(U){var $=IU(U)?b.call(U):"";return $==c$||$==yQ},Z$=function(U){return typeof U=="number"&&U>-1&&U%1==0&&U<=h$},IU=function(U){var $=typeof U;return!!U&&($=="object"||$=="function")},AU=function(U){return!!U&&typeof U=="object"},Q$=function(U){return typeof U=="symbol"||AU(U)&&b.call(U)==r$},A1=function(U){return U==null?"":G1(U)},P1=function(U,$,Z){var Q=U==null?void 0:UZ(U,$);return Q===void 0?Z:Q},O1=function(U,$){return U!=null&&L1(U,$,U1)},LU=function(U){return $$(U)?lR(U):Y1(U)},T1=function(U){return U},C1=function(U){return MU(U)?WR(EU(U)):J1(U)},pQ=200,vQ="Expected a function",aU="__lodash_hash_undefined__",HU=1,h=2,y$=Infinity,h$=9007199254740991,KU="[object Arguments]",cU="[object Array]",b$="[object Boolean]",n$="[object Date]",i$="[object Error]",c$="[object Function]",yQ="[object GeneratorFunction]",wU="[object Map]",u$="[object Number]",v="[object Object]",f$="[object Promise]",s$="[object RegExp]",qU="[object Set]",l$="[object String]",r$="[object Symbol]",uU="[object WeakMap]",o$="[object ArrayBuffer]",NU="[object DataView]",hQ="[object Float32Array]",bQ="[object Float64Array]",nQ="[object Int8Array]",iQ="[object Int16Array]",cQ="[object Int32Array]",uQ="[object Uint8Array]",sQ="[object Uint8ClampedArray]",lQ="[object Uint16Array]",rQ="[object Uint32Array]",oQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tQ=/^\w*$/,aQ=/^\./,eQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,UR=/[\\^$.*+?()[\]{}|]/g,$R=/\\(\\)?/g,ZR=/^\[object .+?Constructor\]$/,QR=/^(?:0|[1-9]\d*)$/,N={};N[hQ]=N[bQ]=N[nQ]=N[iQ]=N[cQ]=N[uQ]=N[sQ]=N[lQ]=N[rQ]=!0;N[KU]=N[cU]=N[o$]=N[b$]=N[NU]=N[n$]=N[i$]=N[c$]=N[wU]=N[u$]=N[v]=N[s$]=N[qU]=N[l$]=N[uU]=!1;var t$=typeof global=="object"&&global&&global.Object===Object&&global,RR=typeof self=="object"&&self&&self.Object===Object&&self,T=t$||RR||Function("return this")(),a$=typeof GU=="object"&&GU&&!GU.nodeType&&GU,x$=a$&&typeof y=="object"&&y&&!y.nodeType&&y,XR=x$&&x$.exports===a$,g$=XR&&t$.process,m$=function(){try{return g$&&g$.binding("util")}catch(U){}}(),j$=m$&&m$.isTypedArray,FR=Array.prototype,zR=Function.prototype,_U=Object.prototype,nU=T["__core-js_shared__"],d$=function(){var U=/[^.]+$/.exec(nU&&nU.keys&&nU.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),e$=zR.toString,M=_U.hasOwnProperty,b=_U.toString,LR=RegExp("^"+e$.call(M).replace(UR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),k$=T.Symbol,p$=T.Uint8Array,HR=_U.propertyIsEnumerable,_R=FR.splice,SR=qR(Object.keys,Object),lU=n(T,"DataView"),o=n(T,"Map"),rU=n(T,"Promise"),oU=n(T,"Set"),tU=n(T,"WeakMap"),t=n(Object,"create"),DR=m(lU),MR=m(o),ER=m(rU),IR=m(oU),AR=m(tU),FU=k$?k$.prototype:void 0,iU=FU?FU.valueOf:void 0,v$=FU?FU.toString:void 0;g.prototype.clear=PR;g.prototype.delete=OR;g.prototype.get=TR;g.prototype.has=CR;g.prototype.set=VR;E.prototype.clear=fR;E.prototype.delete=xR;E.prototype.get=gR;E.prototype.has=mR;E.prototype.set=jR;I.prototype.clear=dR;I.prototype.delete=kR;I.prototype.get=pR;I.prototype.has=vR;I.prototype.set=yR;zU.prototype.add=zU.prototype.push=hR;zU.prototype.has=bR;D.prototype.clear=nR;D.prototype.delete=iR;D.prototype.get=cR;D.prototype.has=uR;D.prototype.set=sR;var oR=w1(aR),tR=q1(),P=eR;if(lU&&P(new lU(new ArrayBuffer(1)))!=NU||o&&P(new o)!=wU||rU&&P(rU.resolve())!=f$||oU&&P(new oU)!=qU||tU&&P(new tU)!=uU)P=function(U){var $=b.call(U),Z=$==v?U.constructor:void 0,Q=Z?m(Z):void 0;if(Q)switch(Q){case DR:return NU;case MR:return wU;case ER:return f$;case IR:return qU;case AR:return uU}return $};var D1=U$(function(U){U=A1(U);var $=[];if(aQ.test(U))$.push("");return U.replace(eQ,function(Z,Q,R,X){$.push(R?X.replace($R,"$1"):Q||Z)}),$}),M1=K1(function(U,$,Z){U[Z]=$});U$.Cache=I;var O=Array.isArray,I1=j$?GR(j$):R1;y.exports=M1});var VZ=jU((W8,CZ)=>{var U6=function(U,$){return U==null?void 0:U[$]},$6=function(U){var $=!1;if(U!=null&&typeof U.toString!="function")try{$=!!(U+"")}catch(Z){}return $},d=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var Q=U[$];this.set(Q[0],Q[1])}},B6=function(){this.__data__=UU?UU(null):{}},W6=function(U){return this.has(U)&&delete this.__data__[U]},J6=function(U){var $=this.__data__;if(UU){var Z=$[U];return Z===DZ?void 0:Z}return K$.call($,U)?$[U]:void 0},G6=function(U){var $=this.__data__;return UU?$[U]!==void 0:K$.call($,U)},K6=function(U,$){var Z=this.__data__;return Z[U]=UU&&$===void 0?DZ:$,this},l=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var Q=U[$];this.set(Q[0],Q[1])}},w6=function(){this.__data__=[]},q6=function(U){var $=this.__data__,Z=fU($,U);if(Z<0)return!1;var Q=$.length-1;if(Z==Q)$.pop();else X6.call($,Z,1);return!0},N6=function(U){var $=this.__data__,Z=fU($,U);return Z<0?void 0:$[Z][1]},F6=function(U){return fU(this.__data__,U)>-1},z6=function(U,$){var Z=this.__data__,Q=fU(Z,U);if(Q<0)Z.push([U,$]);else Z[Q][1]=$;return this},k=function(U){var $=-1,Z=U?U.length:0;this.clear();while(++$<Z){var Q=U[$];this.set(Q[0],Q[1])}},L6=function(){this.__data__={hash:new d,map:new(Y6||l),string:new d}},H6=function(U){return xU(this,U).delete(U)},_6=function(U){return xU(this,U).get(U)},S6=function(U){return xU(this,U).has(U)},D6=function(U,$){return xU(this,U).set(U,$),this},fU=function(U,$){var Z=U.length;while(Z--)if(x6(U[Z][0],$))return Z;return-1},M6=function(U,$){$=P6($,U)?[$]:A6($);var Z=0,Q=$.length;while(U!=null&&Z<Q)U=U[V6($[Z++])];return Z&&Z==Q?U:void 0},E6=function(U){if(!TZ(U)||T6(U))return!1;var $=g6(U)||$6(U)?R6:t1;return $.test(f6(U))},I6=function(U){if(typeof U=="string")return U;if(q$(U))return SZ?SZ.call(U):"";var $=U+"";return $=="0"&&1/U==-MZ?"-0":$},A6=function(U){return OZ(U)?U:C6(U)},xU=function(U,$){var Z=U.__data__;return O6($)?Z[typeof $=="string"?"string":"hash"]:Z.map},PZ=function(U,$){var Z=U6(U,$);return E6(Z)?Z:void 0},P6=function(U,$){if(OZ(U))return!1;var Z=typeof U;if(Z=="number"||Z=="symbol"||Z=="boolean"||U==null||q$(U))return!0;return u1.test(U)||!c1.test(U)||$!=null&&U in Object($)},O6=function(U){var $=typeof U;return $=="string"||$=="number"||$=="symbol"||$=="boolean"?U!=="__proto__":U===null},T6=function(U){return!!LZ&&LZ in U},V6=function(U){if(typeof U=="string"||q$(U))return U;var $=U+"";return $=="0"&&1/U==-MZ?"-0":$},f6=function(U){if(U!=null){try{return IZ.call(U)}catch($){}try{return U+""}catch($){}}return""},w$=function(U,$){if(typeof U!="function"||$&&typeof $!="function")throw new TypeError(h1);var Z=function(){var Q=arguments,R=$?$.apply(this,Q):Q[0],X=Z.cache;if(X.has(R))return X.get(R);var Y=U.apply(this,Q);return Z.cache=X.set(R,Y),Y};return Z.cache=new(w$.Cache||k),Z},x6=function(U,$){return U===$||U!==U&&$!==$},g6=function(U){var $=TZ(U)?AZ.call(U):"";return $==b1||$==n1},TZ=function(U){var $=typeof U;return!!U&&($=="object"||$=="function")},m6=function(U){return!!U&&typeof U=="object"},q$=function(U){return typeof U=="symbol"||m6(U)&&AZ.call(U)==i1},j6=function(U){return U==null?"":I6(U)},d6=function(U,$,Z){var Q=U==null?void 0:M6(U,$);return Q===void 0?Z:Q},h1="Expected a function",DZ="__lodash_hash_undefined__",MZ=Infinity,b1="[object Function]",n1="[object GeneratorFunction]",i1="[object Symbol]",c1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u1=/^\w*$/,s1=/^\./,l1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r1=/[\\^$.*+?()[\]{}|]/g,o1=/\\(\\)?/g,t1=/^\[object .+?Constructor\]$/,a1=typeof global=="object"&&global&&global.Object===Object&&global,e1=typeof self=="object"&&self&&self.Object===Object&&self,G$=a1||e1||Function("return this")(),Z6=Array.prototype,Q6=Function.prototype,EZ=Object.prototype,J$=G$["__core-js_shared__"],LZ=function(){var U=/[^.]+$/.exec(J$&&J$.keys&&J$.keys.IE_PROTO||"");return U?"Symbol(src)_1."+U:""}(),IZ=Q6.toString,K$=EZ.hasOwnProperty,AZ=EZ.toString,R6=RegExp("^"+IZ.call(K$).replace(r1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),HZ=G$.Symbol,X6=Z6.splice,Y6=PZ(G$,"Map"),UU=PZ(Object,"create"),_Z=HZ?HZ.prototype:void 0,SZ=_Z?_Z.toString:void 0;d.prototype.clear=B6;d.prototype.delete=W6;d.prototype.get=J6;d.prototype.has=G6;d.prototype.set=K6;l.prototype.clear=w6;l.prototype.delete=q6;l.prototype.get=N6;l.prototype.has=F6;l.prototype.set=z6;k.prototype.clear=L6;k.prototype.delete=H6;k.prototype.get=_6;k.prototype.has=S6;k.prototype.set=D6;var C6=w$(function(U){U=j6(U);var $=[];if(s1.test(U))$.push("");return U.replace(l1,function(Z,Q,R,X){$.push(R?X.replace(o1,"$1"):Q||Z)}),$});w$.Cache=k;var OZ=Array.isArray;CZ.exports=d6});var C$=mU(T$(),1),BU={isNamespace:(U)=>U&&!U.type,flattenSchema(U,$){return Object.entries(U).reduce((Z,[Q,R])=>{const X=$?`${$}.${Q}`:Q;if(BU.isNamespace(R))Z={...Z,...BU.flattenSchema(R,X)};else Object.assign(R,{name:X}),Z[X]=R;return Z},{})},wrapSchema(U){return Object.values(U).reduce(($,Z)=>{return C$.default($,Z.path,Z),$},{})}};var WU,jQ=new Uint8Array(16);function hU(){if(!WU){if(WU=typeof crypto!=="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!WU)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported")}return WU(jQ)}function V$(U,$=0){return L[U[$+0]]+L[U[$+1]]+L[U[$+2]]+L[U[$+3]]+"-"+L[U[$+4]]+L[U[$+5]]+"-"+L[U[$+6]]+L[U[$+7]]+"-"+L[U[$+8]]+L[U[$+9]]+"-"+L[U[$+10]]+L[U[$+11]]+L[U[$+12]]+L[U[$+13]]+L[U[$+14]]+L[U[$+15]]}var L=[];for(let U=0;U<256;++U)L.push((U+256).toString(16).slice(1));var dQ=typeof crypto!=="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),bU={randomUUID:dQ};var kQ=function(U,$,Z){if(bU.randomUUID&&!$&&!U)return bU.randomUUID();U=U||{};const Q=U.random||(U.rng||hU)();if(Q[6]=Q[6]&15|64,Q[8]=Q[8]&63|128,$){Z=Z||0;for(let R=0;R<16;++R)$[Z+R]=Q[R];return $}return V$(Q)},JU=kQ;var zZ=mU(JZ(),1);var FZ={};dU(FZ,{validator:()=>{{return e}},validate:()=>{{return R$}},unobserve:()=>{{return wZ}},unescapePathComponent:()=>{{return i}},observe:()=>{{return qZ}},getValueByPointer:()=>{{return a}},generate:()=>{{return VU}},escapePathComponent:()=>{{return _}},default:()=>{{return v1}},deepClone:()=>{{return z}},compare:()=>{{return NZ}},applyReducer:()=>{{return KZ}},applyPatch:()=>{{return j}},applyOperation:()=>{{return C}},_areEquals:()=>{{return s}},JsonPatchError:()=>{{return c}}});var X$={};dU(X$,{validator:()=>{{return e}},validate:()=>{{return R$}},getValueByPointer:()=>{{return a}},deepClone:()=>{{return x1}},applyReducer:()=>{{return KZ}},applyPatch:()=>{{return j}},applyOperation:()=>{{return C}},_areEquals:()=>{{return s}},JsonPatchError:()=>{{return F}}});function OU(U,$){return f1.call(U,$)}function TU(U){if(Array.isArray(U)){var $=new Array(U.length);for(var Z=0;Z<$.length;Z++)$[Z]=""+Z;return $}if(Object.keys)return Object.keys(U);var Q=[];for(var R in U)if(OU(U,R))Q.push(R);return Q}function z(U){switch(typeof U){case"object":return JSON.parse(JSON.stringify(U));case"undefined":return null;default:return U}}function CU(U){var $=0,Z=U.length,Q;while($<Z){if(Q=U.charCodeAt($),Q>=48&&Q<=57){$++;continue}return!1}return!0}function _(U){if(U.indexOf("/")===-1&&U.indexOf("~")===-1)return U;return U.replace(/~/g,"~0").replace(/\//g,"~1")}function i(U){return U.replace(/~1/g,"/").replace(/~0/g,"~")}function PU(U){if(U===void 0)return!0;if(U){if(Array.isArray(U)){for(var $=0,Z=U.length;$<Z;$++)if(PU(U[$]))return!0}else if(typeof U==="object"){var Q=TU(U),R=Q.length;for(var X=0;X<R;X++)if(PU(U[Q[X]]))return!0}}return!1}var GZ=function(U,$){var Z=[U];for(var Q in $){var R=typeof $[Q]==="object"?JSON.stringify($[Q],null,2):$[Q];if(typeof R!=="undefined")Z.push(Q+": "+R)}return Z.join("\n")};/*! | ||
* https://github.com/Starcounter-Jack/JSON-Patch | ||
* (c) 2017-2022 Joachim Wester | ||
* MIT licensed | ||
*/var V6=function(){var U=function(Z,$){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,R){Q.__proto__=R}||function(Q,R){for(var X in R)if(R.hasOwnProperty(X))Q[X]=R[X]},U(Z,$)};return function(Z,$){U(Z,$);function Q(){this.constructor=Z}Z.prototype=$===null?Object.create($):(Q.prototype=$.prototype,new Q)}}(),f6=Object.prototype.hasOwnProperty,c=function(U){V6(Z,U);function Z($,Q,R,X,Y){var B=this.constructor,W=U.call(this,G$($,{name:Q,index:R,operation:X,tree:Y}))||this;return W.name=Q,W.index=R,W.operation=X,W.tree=Y,Object.setPrototypeOf(W,B.prototype),W.message=G$($,{name:Q,index:R,operation:X,tree:Y}),W}return Z}(Error);function a(U,Z){if(Z=="")return U;var $={op:"_get",path:Z};return C(U,$),$.value}function C(U,Z,$,Q,R,X){if($===void 0)$=!1;if(Q===void 0)Q=!0;if(R===void 0)R=!0;if(X===void 0)X=0;if($)if(typeof $=="function")$(Z,0,U,Z.path);else e(Z,0);if(Z.path===""){var Y={newDocument:U};if(Z.op==="add")return Y.newDocument=Z.value,Y;else if(Z.op==="replace")return Y.newDocument=Z.value,Y.removed=U,Y;else if(Z.op==="move"||Z.op==="copy"){if(Y.newDocument=a(U,Z.from),Z.op==="move")Y.removed=U;return Y}else if(Z.op==="test"){if(Y.test=s(U,Z.value),Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,Z,U);return Y.newDocument=U,Y}else if(Z.op==="remove")return Y.removed=U,Y.newDocument=null,Y;else if(Z.op==="_get")return Z.value=U,Y;else if($)throw new F("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",X,Z,U);else return Y}else{if(!Q)U=z(U);var B=Z.path||"",W=B.split("/"),G=U,J=1,w=W.length,K=void 0,q=void 0,H=void 0;if(typeof $=="function")H=$;else H=e;while(!0){if(q=W[J],q&&q.indexOf("~")!=-1)q=i(q);if(R&&(q=="__proto__"||q=="prototype"&&J>0&&W[J-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if($){if(K===void 0){if(G[q]===void 0)K=W.slice(0,J).join("/");else if(J==w-1)K=Z.path;if(K!==void 0)H(Z,0,U,K)}}if(J++,Array.isArray(G)){if(q==="-")q=G.length;else if($&&!CU(q))throw new F("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",X,Z,U);else if(CU(q))q=~~q;if(J>=w){if($&&Z.op==="add"&&q>G.length)throw new F("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",X,Z,U);var Y=g6[Z.op].call(Z,G,q,U);if(Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,Z,U);return Y}}else if(J>=w){var Y=u[Z.op].call(Z,G,q,U);if(Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,Z,U);return Y}if(G=G[q],$&&J<w&&(!G||typeof G!=="object"))throw new F("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",X,Z,U)}}}function j(U,Z,$,Q,R){if(Q===void 0)Q=!0;if(R===void 0)R=!0;if($){if(!Array.isArray(Z))throw new F("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY")}if(!Q)U=z(U);var X=new Array(Z.length);for(var Y=0,B=Z.length;Y<B;Y++)X[Y]=C(U,Z[Y],$,!0,R,Y),U=X[Y].newDocument;return X.newDocument=U,X}function K$(U,Z,$){var Q=C(U,Z);if(Q.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",$,Z,U);return Q.newDocument}function e(U,Z,$,Q){if(typeof U!=="object"||U===null||Array.isArray(U))throw new F("Operation is not an object","OPERATION_NOT_AN_OBJECT",Z,U,$);else if(!u[U.op])throw new F("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",Z,U,$);else if(typeof U.path!=="string")throw new F("Operation `path` property is not a string","OPERATION_PATH_INVALID",Z,U,$);else if(U.path.indexOf("/")!==0&&U.path.length>0)throw new F('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",Z,U,$);else if((U.op==="move"||U.op==="copy")&&typeof U.from!=="string")throw new F("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",Z,U,$);else if((U.op==="add"||U.op==="replace"||U.op==="test")&&U.value===void 0)throw new F("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",Z,U,$);else if((U.op==="add"||U.op==="replace"||U.op==="test")&&OU(U.value))throw new F("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",Z,U,$);else if($){if(U.op=="add"){var R=U.path.split("/").length,X=Q.split("/").length;if(R!==X+1&&R!==X)throw new F("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",Z,U,$)}else if(U.op==="replace"||U.op==="remove"||U.op==="_get"){if(U.path!==Q)throw new F("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",Z,U,$)}else if(U.op==="move"||U.op==="copy"){var Y={op:"_get",path:U.from,value:void 0},B=RZ([Y],$);if(B&&B.name==="OPERATION_PATH_UNRESOLVABLE")throw new F("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",Z,U,$)}}}function RZ(U,Z,$){try{if(!Array.isArray(U))throw new F("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(Z)j(z(Z),z(U),$||!0);else{$=$||e;for(var Q=0;Q<U.length;Q++)$(U[Q],Q,Z,void 0)}}catch(R){if(R instanceof F)return R;else throw R}}function s(U,Z){if(U===Z)return!0;if(U&&Z&&typeof U=="object"&&typeof Z=="object"){var $=Array.isArray(U),Q=Array.isArray(Z),R,X,Y;if($&&Q){if(X=U.length,X!=Z.length)return!1;for(R=X;R--!==0;)if(!s(U[R],Z[R]))return!1;return!0}if($!=Q)return!1;var B=Object.keys(U);if(X=B.length,X!==Object.keys(Z).length)return!1;for(R=X;R--!==0;)if(!Z.hasOwnProperty(B[R]))return!1;for(R=X;R--!==0;)if(Y=B[R],!s(U[Y],Z[Y]))return!1;return!0}return U!==U&&Z!==Z}var F=c,x6=z,u={add:function(U,Z,$){return U[Z]=this.value,{newDocument:$}},remove:function(U,Z,$){var Q=U[Z];return delete U[Z],{newDocument:$,removed:Q}},replace:function(U,Z,$){var Q=U[Z];return U[Z]=this.value,{newDocument:$,removed:Q}},move:function(U,Z,$){var Q=a($,this.path);if(Q)Q=z(Q);var R=C($,{op:"remove",path:this.from}).removed;return C($,{op:"add",path:this.path,value:R}),{newDocument:$,removed:Q}},copy:function(U,Z,$){var Q=a($,this.from);return C($,{op:"add",path:this.path,value:z(Q)}),{newDocument:$}},test:function(U,Z,$){return{newDocument:$,test:s(U[Z],this.value)}},_get:function(U,Z,$){return this.value=U[Z],{newDocument:$}}},g6={add:function(U,Z,$){if(CU(Z))U.splice(Z,0,this.value);else U[Z]=this.value;return{newDocument:$,index:Z}},remove:function(U,Z,$){var Q=U.splice(Z,1);return{newDocument:$,removed:Q[0]}},replace:function(U,Z,$){var Q=U[Z];return U[Z]=this.value,{newDocument:$,removed:Q}},move:u.move,copy:u.copy,test:u.test,_get:u._get};var WZ={};dU(WZ,{unobserve:()=>{{return q$}},observe:()=>{{return w$}},generate:()=>{{return VU}},compare:()=>{{return N$}}});var d6=function(U){return YZ.get(U)},k6=function(U,Z){return U.observers.get(Z)},p6=function(U,Z){U.observers.delete(Z.callback)};function q$(U,Z){Z.unobserve()}function w$(U,Z){var $=[],Q,R=d6(U);if(!R)R=new m6(U),YZ.set(U,R);else{var X=k6(R,Z);Q=X&&X.observer}if(Q)return Q;if(Q={},R.value=z(U),Z){Q.callback=Z,Q.next=null;var Y=function(){VU(Q)},B=function(){clearTimeout(Q.next),Q.next=setTimeout(Y)};if(typeof window!=="undefined")window.addEventListener("mouseup",B),window.addEventListener("keyup",B),window.addEventListener("mousedown",B),window.addEventListener("keydown",B),window.addEventListener("change",B)}return Q.patches=$,Q.object=U,Q.unobserve=function(){if(VU(Q),clearTimeout(Q.next),p6(R,Q),typeof window!=="undefined")window.removeEventListener("mouseup",B),window.removeEventListener("keyup",B),window.removeEventListener("mousedown",B),window.removeEventListener("keydown",B),window.removeEventListener("change",B)},R.observers.set(Z,new j6(Z,Q)),Q}function VU(U,Z){if(Z===void 0)Z=!1;var $=YZ.get(U.object);if(BZ($.value,U.object,U.patches,"",Z),U.patches.length)j($.value,U.patches);var Q=U.patches;if(Q.length>0){if(U.patches=[],U.callback)U.callback(Q)}return Q}var BZ=function(U,Z,$,Q,R){if(Z===U)return;if(typeof Z.toJSON==="function")Z=Z.toJSON();var X=TU(Z),Y=TU(U),B=!1,W=!1;for(var G=Y.length-1;G>=0;G--){var J=Y[G],w=U[J];if(PU(Z,J)&&!(Z[J]===void 0&&w!==void 0&&Array.isArray(Z)===!1)){var K=Z[J];if(typeof w=="object"&&w!=null&&typeof K=="object"&&K!=null&&Array.isArray(w)===Array.isArray(K))BZ(w,K,$,Q+"/"+_(J),R);else if(w!==K){if(B=!0,R)$.push({op:"test",path:Q+"/"+_(J),value:z(w)});$.push({op:"replace",path:Q+"/"+_(J),value:z(K)})}}else if(Array.isArray(U)===Array.isArray(Z)){if(R)$.push({op:"test",path:Q+"/"+_(J),value:z(w)});$.push({op:"remove",path:Q+"/"+_(J)}),W=!0}else{if(R)$.push({op:"test",path:Q,value:U});$.push({op:"replace",path:Q,value:Z}),B=!0}}if(!W&&X.length==Y.length)return;for(var G=0;G<X.length;G++){var J=X[G];if(!PU(U,J)&&Z[J]!==void 0)$.push({op:"add",path:Q+"/"+_(J),value:z(Z[J])})}};function N$(U,Z,$){if($===void 0)$=!1;var Q=[];return BZ(U,Z,Q,"",$),Q}/*! | ||
*/var V1=function(){var U=function($,Z){return U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,R){Q.__proto__=R}||function(Q,R){for(var X in R)if(R.hasOwnProperty(X))Q[X]=R[X]},U($,Z)};return function($,Z){U($,Z);function Q(){this.constructor=$}$.prototype=Z===null?Object.create(Z):(Q.prototype=Z.prototype,new Q)}}(),f1=Object.prototype.hasOwnProperty,c=function(U){V1($,U);function $(Z,Q,R,X,Y){var B=this.constructor,W=U.call(this,GZ(Z,{name:Q,index:R,operation:X,tree:Y}))||this;return W.name=Q,W.index=R,W.operation=X,W.tree=Y,Object.setPrototypeOf(W,B.prototype),W.message=GZ(Z,{name:Q,index:R,operation:X,tree:Y}),W}return $}(Error);function a(U,$){if($=="")return U;var Z={op:"_get",path:$};return C(U,Z),Z.value}function C(U,$,Z,Q,R,X){if(Z===void 0)Z=!1;if(Q===void 0)Q=!0;if(R===void 0)R=!0;if(X===void 0)X=0;if(Z)if(typeof Z=="function")Z($,0,U,$.path);else e($,0);if($.path===""){var Y={newDocument:U};if($.op==="add")return Y.newDocument=$.value,Y;else if($.op==="replace")return Y.newDocument=$.value,Y.removed=U,Y;else if($.op==="move"||$.op==="copy"){if(Y.newDocument=a(U,$.from),$.op==="move")Y.removed=U;return Y}else if($.op==="test"){if(Y.test=s(U,$.value),Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,$,U);return Y.newDocument=U,Y}else if($.op==="remove")return Y.removed=U,Y.newDocument=null,Y;else if($.op==="_get")return $.value=U,Y;else if(Z)throw new F("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",X,$,U);else return Y}else{if(!Q)U=z(U);var B=$.path||"",W=B.split("/"),G=U,J=1,q=W.length,K=void 0,w=void 0,H=void 0;if(typeof Z=="function")H=Z;else H=e;while(!0){if(w=W[J],w&&w.indexOf("~")!=-1)w=i(w);if(R&&(w=="__proto__"||w=="prototype"&&J>0&&W[J-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(Z){if(K===void 0){if(G[w]===void 0)K=W.slice(0,J).join("/");else if(J==q-1)K=$.path;if(K!==void 0)H($,0,U,K)}}if(J++,Array.isArray(G)){if(w==="-")w=G.length;else if(Z&&!CU(w))throw new F("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",X,$,U);else if(CU(w))w=~~w;if(J>=q){if(Z&&$.op==="add"&&w>G.length)throw new F("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",X,$,U);var Y=g1[$.op].call($,G,w,U);if(Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,$,U);return Y}}else if(J>=q){var Y=u[$.op].call($,G,w,U);if(Y.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",X,$,U);return Y}if(G=G[w],Z&&J<q&&(!G||typeof G!=="object"))throw new F("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",X,$,U)}}}function j(U,$,Z,Q,R){if(Q===void 0)Q=!0;if(R===void 0)R=!0;if(Z){if(!Array.isArray($))throw new F("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY")}if(!Q)U=z(U);var X=new Array($.length);for(var Y=0,B=$.length;Y<B;Y++)X[Y]=C(U,$[Y],Z,!0,R,Y),U=X[Y].newDocument;return X.newDocument=U,X}function KZ(U,$,Z){var Q=C(U,$);if(Q.test===!1)throw new F("Test operation failed","TEST_OPERATION_FAILED",Z,$,U);return Q.newDocument}function e(U,$,Z,Q){if(typeof U!=="object"||U===null||Array.isArray(U))throw new F("Operation is not an object","OPERATION_NOT_AN_OBJECT",$,U,Z);else if(!u[U.op])throw new F("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",$,U,Z);else if(typeof U.path!=="string")throw new F("Operation `path` property is not a string","OPERATION_PATH_INVALID",$,U,Z);else if(U.path.indexOf("/")!==0&&U.path.length>0)throw new F('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",$,U,Z);else if((U.op==="move"||U.op==="copy")&&typeof U.from!=="string")throw new F("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",$,U,Z);else if((U.op==="add"||U.op==="replace"||U.op==="test")&&U.value===void 0)throw new F("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",$,U,Z);else if((U.op==="add"||U.op==="replace"||U.op==="test")&&PU(U.value))throw new F("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",$,U,Z);else if(Z){if(U.op=="add"){var R=U.path.split("/").length,X=Q.split("/").length;if(R!==X+1&&R!==X)throw new F("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",$,U,Z)}else if(U.op==="replace"||U.op==="remove"||U.op==="_get"){if(U.path!==Q)throw new F("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",$,U,Z)}else if(U.op==="move"||U.op==="copy"){var Y={op:"_get",path:U.from,value:void 0},B=R$([Y],Z);if(B&&B.name==="OPERATION_PATH_UNRESOLVABLE")throw new F("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",$,U,Z)}}}function R$(U,$,Z){try{if(!Array.isArray(U))throw new F("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if($)j(z($),z(U),Z||!0);else{Z=Z||e;for(var Q=0;Q<U.length;Q++)Z(U[Q],Q,$,void 0)}}catch(R){if(R instanceof F)return R;else throw R}}function s(U,$){if(U===$)return!0;if(U&&$&&typeof U=="object"&&typeof $=="object"){var Z=Array.isArray(U),Q=Array.isArray($),R,X,Y;if(Z&&Q){if(X=U.length,X!=$.length)return!1;for(R=X;R--!==0;)if(!s(U[R],$[R]))return!1;return!0}if(Z!=Q)return!1;var B=Object.keys(U);if(X=B.length,X!==Object.keys($).length)return!1;for(R=X;R--!==0;)if(!$.hasOwnProperty(B[R]))return!1;for(R=X;R--!==0;)if(Y=B[R],!s(U[Y],$[Y]))return!1;return!0}return U!==U&&$!==$}var F=c,x1=z,u={add:function(U,$,Z){return U[$]=this.value,{newDocument:Z}},remove:function(U,$,Z){var Q=U[$];return delete U[$],{newDocument:Z,removed:Q}},replace:function(U,$,Z){var Q=U[$];return U[$]=this.value,{newDocument:Z,removed:Q}},move:function(U,$,Z){var Q=a(Z,this.path);if(Q)Q=z(Q);var R=C(Z,{op:"remove",path:this.from}).removed;return C(Z,{op:"add",path:this.path,value:R}),{newDocument:Z,removed:Q}},copy:function(U,$,Z){var Q=a(Z,this.from);return C(Z,{op:"add",path:this.path,value:z(Q)}),{newDocument:Z}},test:function(U,$,Z){return{newDocument:Z,test:s(U[$],this.value)}},_get:function(U,$,Z){return this.value=U[$],{newDocument:Z}}},g1={add:function(U,$,Z){if(CU($))U.splice($,0,this.value);else U[$]=this.value;return{newDocument:Z,index:$}},remove:function(U,$,Z){var Q=U.splice($,1);return{newDocument:Z,removed:Q[0]}},replace:function(U,$,Z){var Q=U[$];return U[$]=this.value,{newDocument:Z,removed:Q}},move:u.move,copy:u.copy,test:u.test,_get:u._get};var W$={};dU(W$,{unobserve:()=>{{return wZ}},observe:()=>{{return qZ}},generate:()=>{{return VU}},compare:()=>{{return NZ}}});var d1=function(U){return Y$.get(U)},k1=function(U,$){return U.observers.get($)},p1=function(U,$){U.observers.delete($.callback)};function wZ(U,$){$.unobserve()}function qZ(U,$){var Z=[],Q,R=d1(U);if(!R)R=new m1(U),Y$.set(U,R);else{var X=k1(R,$);Q=X&&X.observer}if(Q)return Q;if(Q={},R.value=z(U),$){Q.callback=$,Q.next=null;var Y=function(){VU(Q)},B=function(){clearTimeout(Q.next),Q.next=setTimeout(Y)};if(typeof window!=="undefined")window.addEventListener("mouseup",B),window.addEventListener("keyup",B),window.addEventListener("mousedown",B),window.addEventListener("keydown",B),window.addEventListener("change",B)}return Q.patches=Z,Q.object=U,Q.unobserve=function(){if(VU(Q),clearTimeout(Q.next),p1(R,Q),typeof window!=="undefined")window.removeEventListener("mouseup",B),window.removeEventListener("keyup",B),window.removeEventListener("mousedown",B),window.removeEventListener("keydown",B),window.removeEventListener("change",B)},R.observers.set($,new j1($,Q)),Q}function VU(U,$){if($===void 0)$=!1;var Z=Y$.get(U.object);if(B$(Z.value,U.object,U.patches,"",$),U.patches.length)j(Z.value,U.patches);var Q=U.patches;if(Q.length>0){if(U.patches=[],U.callback)U.callback(Q)}return Q}var B$=function(U,$,Z,Q,R){if($===U)return;if(typeof $.toJSON==="function")$=$.toJSON();var X=TU($),Y=TU(U),B=!1,W=!1;for(var G=Y.length-1;G>=0;G--){var J=Y[G],q=U[J];if(OU($,J)&&!($[J]===void 0&&q!==void 0&&Array.isArray($)===!1)){var K=$[J];if(typeof q=="object"&&q!=null&&typeof K=="object"&&K!=null&&Array.isArray(q)===Array.isArray(K))B$(q,K,Z,Q+"/"+_(J),R);else if(q!==K){if(B=!0,R)Z.push({op:"test",path:Q+"/"+_(J),value:z(q)});Z.push({op:"replace",path:Q+"/"+_(J),value:z(K)})}}else if(Array.isArray(U)===Array.isArray($)){if(R)Z.push({op:"test",path:Q+"/"+_(J),value:z(q)});Z.push({op:"remove",path:Q+"/"+_(J)}),W=!0}else{if(R)Z.push({op:"test",path:Q,value:U});Z.push({op:"replace",path:Q,value:$}),B=!0}}if(!W&&X.length==Y.length)return;for(var G=0;G<X.length;G++){var J=X[G];if(!OU(U,J)&&$[J]!==void 0)Z.push({op:"add",path:Q+"/"+_(J),value:z($[J])})}};function NZ(U,$,Z){if(Z===void 0)Z=!1;var Q=[];return B$(U,$,Q,"",Z),Q}/*! | ||
* https://github.com/Starcounter-Jack/JSON-Patch | ||
* (c) 2017-2021 Joachim Wester | ||
* MIT license | ||
*/var YZ=new WeakMap,m6=function(){function U(Z){this.observers=new Map,this.obj=Z}return U}(),j6=function(){function U(Z,$){this.callback=Z,this.observer=$}return U}();var v6=Object.assign({},XZ,WZ,{JsonPatchError:c,deepClone:z,escapePathComponent:_,unescapePathComponent:i});class y6{schemas;falttenSchema;uidSchemas;static Var(U){if(!U.patch)U.patch=(Z)=>{return j(U.get(),Z)};return{...U,type:"var",uid:JU()}}static Func(U){return{...U,type:"func",uid:JU()}}constructor(U={}){Object.assign(this,U),this.falttenSchema=BU.flattenSchema(this.schemas),this.uidSchemas=z$.default(this.schemas,"uid")}loadFull(){return Object.entries(this.falttenSchema).map(([U,Z])=>{if(Z.type=="func"){const{uid:$,type:Q,input:R,name:X,uiConfig:Y}=Z;return{uid:$,type:Q,name:X,input:R,uiConfig:Y?Y():null}}if(Z.type=="var"){const{uid:$,type:Q,get:R,set:X,name:Y,uiConfig:B}=Z;return{uid:$,type:Q,name:Y,value:R(),uiConfig:B?B():null,set:!!X}}return{type:"unknown",name:U}})}loadVars(){return Object.entries(this.falttenSchema).filter(([U,Z])=>Z.type=="var").map(([U,Z])=>{const{get:$,name:Q}=Z;return{name:Q,value:$()}})}}var f$=mU(V$(),1),JR=(U)=>{return{schema:{async loadFull(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadFull"})}).then((Z)=>Z.json())},async loadVars(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadVars"})}).then((Z)=>Z.json())}},func:{async call(Z){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"func.call",params:Z})}).then(($)=>$.json())}},var:{async set(Z){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.set",params:Z})}).then(($)=>$.json())},async patch(Z){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.patch",params:Z})}).then(($)=>$.json())}}}},GR=({urpc:U})=>{const Z={urpc:U,handle({name:$,params:Q}){const R=f$.default(Z,$);if(!R)throw new Error("invalid name");return R(Q)},schema:{async loadFull(){return U.loadFull()},async loadVars(){return U.loadVars()}},func:{async call($){const Q=U.uidSchemas[$.method]||U.falttenSchema[$.method];if(!Q)throw new Error("invalid func name");return Q.func({input:$.input})}},var:{async set($){const Q=U.uidSchemas[$.name]||U.falttenSchema[$.name];if(!Q)throw new Error("invalid var name");if(!Q.set)throw new Error("variable can't be set");return Q.set($.value)},async patch($){const Q=U.uidSchemas[$.name]||U.falttenSchema[$.name];if(!Q)throw new Error("invalid var name");if(!Q.patch)throw new Error("variable can't be set");return Q.patch($.ops).newDocument}}};return Z};export{BU as utils,F$ as jsonPatch,JR as createSimpleHttpClient,GR as createServerClient,y6 as URPC}; | ||
*/var Y$=new WeakMap,m1=function(){function U($){this.observers=new Map,this.obj=$}return U}(),j1=function(){function U($,Z){this.callback=$,this.observer=Z}return U}();var v1=Object.assign({},X$,W$,{JsonPatchError:c,deepClone:z,escapePathComponent:_,unescapePathComponent:i});class y1{schemas;falttenSchema;uidSchemas;static Var(U){return U.patch=Object.assign({},{allowCreate:!0,allowDelete:!0,allowUpdate:!0,onPatch:($)=>{return j(U.get(),$)}},U.patch||{}),{...U,type:"var",uid:JU()}}static Func(U){return{...U,type:"func",uid:JU()}}constructor(U={}){Object.assign(this,U),this.falttenSchema=BU.flattenSchema(this.schemas),this.uidSchemas=zZ.default(this.schemas,"uid")}loadFull(){return Object.entries(this.falttenSchema).map(([U,$])=>{if($.type=="func"){const{uid:Z,type:Q,input:R,name:X,uiConfig:Y}=$;return{uid:Z,type:Q,name:X,input:R,uiConfig:Y?Y():null}}if($.type=="var"){const{uid:Z,type:Q,get:R,set:X,name:Y,patch:B}=$,W=$.uiConfig?$.uiConfig():null,G=R(),J=$.actions?Object.keys($.actions()):null;return{uid:Z,type:Q,name:Y,value:G,uiConfig:W,actions:J,set:!!X,patch:B}}return{type:"unknown",name:U}})}loadVars(){return Object.entries(this.falttenSchema).filter(([U,$])=>$.type=="var").map(([U,$])=>{const{get:Z,name:Q}=$;return{name:Q,value:Z()}})}}var fZ=mU(VZ(),1),J8=(U)=>{return{schema:{async loadFull(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadFull"})}).then(($)=>$.json())},async loadVars(){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"schema.loadVars"})}).then(($)=>$.json())}},func:{async call($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"func.call",params:$})}).then((Z)=>Z.json())}},var:{async set($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.set",params:$})}).then((Z)=>Z.json())},async patch($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.patch",params:$})}).then((Z)=>Z.json())},async action($){return fetch(`${U.url}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:"var.action",params:$})}).then((Z)=>Z.json())}}}},G8=({urpc:U})=>{const $={urpc:U,handle({name:Z,params:Q}){const R=fZ.default($,Z);if(!R)throw new Error("invalid name");return R(Q)},schema:{async loadFull(){return U.loadFull()},async loadVars(){return U.loadVars()}},func:{async call(Z){const Q=U.uidSchemas[Z.method]||U.falttenSchema[Z.method];if(!Q)throw new Error("invalid func name");return Q.func({input:Z.input})}},var:{async set(Z){const Q=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!Q)throw new Error("invalid var name");if(!Q.set)throw new Error("variable can't be set");return Q.set(Z.value)},async patch(Z){const Q=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!Q)throw new Error("invalid var name");if(!Q.patch)throw new Error("variable can't be set");return(Q.patch?.onPatch(Z.ops)).newDocument},async action(Z){const Q=U.uidSchemas[Z.name]||U.falttenSchema[Z.name];if(!Q)throw new Error("invalid var name");const R=Q.actions[Z.action];if(!R)throw new Error("invalid action name");return R(Q.get())}}};return $};export{BU as utils,FZ as jsonPatch,J8 as createSimpleHttpClient,G8 as createServerClient,y1 as URPC}; |
{ | ||
"name": "@dappworks/urpc", | ||
"version": "0.0.17", | ||
"version": "0.0.19", | ||
"module": "index.ts", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45923
361
7