impaktapps-ui-builder 1.0.131-alpha.6 → 1.0.131-alpha.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/impaktapps-ui-builder.es.js +58 -40
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +8 -8
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/elements/UiSchema/Component/schema.ts +100 -92
|
@@ -5,24 +5,24 @@
|
|
|
5
5
|
* Released under MIT license <https://lodash.com/license>
|
|
6
6
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
7
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
-
*/(function(n,l){(function(){var i,d="4.17.21",y=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",v="Invalid `variable` option passed into `_.template`",x="__lodash_hash_undefined__",F=500,A="__lodash_placeholder__",B=1,U=2,ne=4,X=1,K=2,N=1,ae=2,Te=4,Z=8,qe=16,Se=32,Je=64,Ae=128,at=256,Ft=512,mn=30,gn="...",yn=800,hn=16,Yt=1,bn=2,xn=3,ht=1/0,lt=9007199254740991,dl=17976931348623157e292,vn=0/0,Ye=4294967295,fl=Ye-1,ml=Ye>>>1,gl=[["ary",Ae],["bind",N],["bindKey",ae],["curry",Z],["curryRight",qe],["flip",Ft],["partial",Se],["partialRight",Je],["rearg",at]],Tt="[object Arguments]",Sn="[object Array]",yl="[object AsyncFunction]",Gt="[object Boolean]",Kt="[object Date]",hl="[object DOMException]",Cn="[object Error]",wn="[object Function]",Ni="[object GeneratorFunction]",ke="[object Map]",Vt="[object Number]",bl="[object Null]",Xe="[object Object]",Mi="[object Promise]",xl="[object Proxy]",qt="[object RegExp]",He="[object Set]",Jt="[object String]",_n="[object Symbol]",vl="[object Undefined]",Xt="[object WeakMap]",Sl="[object WeakSet]",Zt="[object ArrayBuffer]",At="[object DataView]",mo="[object Float32Array]",go="[object Float64Array]",yo="[object Int8Array]",ho="[object Int16Array]",bo="[object Int32Array]",xo="[object Uint8Array]",vo="[object Uint8ClampedArray]",So="[object Uint16Array]",Co="[object Uint32Array]",Cl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,_l=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Oi=/&(?:amp|lt|gt|quot|#39);/g,ki=/[&<>"']/g,Il=RegExp(Oi.source),El=RegExp(ki.source),Fl=/<%-([\s\S]+?)%>/g,Tl=/<%([\s\S]+?)%>/g,Hi=/<%=([\s\S]+?)%>/g,Al=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bl=/^\w*$/,Ll=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wo=/[\\^$.*+?()[\]{}|]/g,Dl=RegExp(wo.source),_o=/^\s+/,Rl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Nl=/\{\n\/\* \[wrapped with (.+)\] \*/,Ml=/,? & /,Ol=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kl=/[()=,{}\[\]\/\s]/,Hl=/\\(\\)?/g,zl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zi=/\w*$/,Ul=/^[-+]0x[0-9a-f]+$/i,$l=/^0b[01]+$/i,Wl=/^\[object .+?Constructor\]$/,Yl=/^0o[0-7]+$/i,Gl=/^(?:0|[1-9]\d*)$/,Kl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,En="\\ud800-\\udfff",ql="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",Ui=ql+Jl+Xl,$i="\\u2700-\\u27bf",Wi="a-z\\xdf-\\xf6\\xf8-\\xff",Zl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\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",Yi="A-Z\\xc0-\\xd6\\xd8-\\xde",Gi="\\ufe0e\\ufe0f",Ki=Zl+Ql+jl+es,Io="['\u2019]",ts="["+En+"]",Vi="["+Ki+"]",Fn="["+Ui+"]",qi="\\d+",ns="["+$i+"]",Ji="["+Wi+"]",Xi="[^"+En+Ki+qi+$i+Wi+Yi+"]",Eo="\\ud83c[\\udffb-\\udfff]",os="(?:"+Fn+"|"+Eo+")",Zi="[^"+En+"]",Fo="(?:\\ud83c[\\udde6-\\uddff]){2}",To="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+Yi+"]",Qi="\\u200d",ji="(?:"+Ji+"|"+Xi+")",is="(?:"+Bt+"|"+Xi+")",er="(?:"+Io+"(?:d|ll|m|re|s|t|ve))?",tr="(?:"+Io+"(?:D|LL|M|RE|S|T|VE))?",nr=os+"?",or="["+Gi+"]?",rs="(?:"+Qi+"(?:"+[Zi,Fo,To].join("|")+")"+or+nr+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ir=or+nr+rs,ss="(?:"+[ns,Fo,To].join("|")+")"+ir,ps="(?:"+[Zi+Fn+"?",Fn,Fo,To,ts].join("|")+")",us=RegExp(Io,"g"),cs=RegExp(Fn,"g"),Ao=RegExp(Eo+"(?="+Eo+")|"+ps+ir,"g"),ds=RegExp([Bt+"?"+Ji+"+"+er+"(?="+[Vi,Bt,"$"].join("|")+")",is+"+"+tr+"(?="+[Vi,Bt+ji,"$"].join("|")+")",Bt+"?"+ji+"+"+er,Bt+"+"+tr,ls,as,qi,ss].join("|"),"g"),fs=RegExp("["+Qi+En+Ui+Gi+"]"),ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["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"],ys=-1,j={};j[mo]=j[go]=j[yo]=j[ho]=j[bo]=j[xo]=j[vo]=j[So]=j[Co]=!0,j[Tt]=j[Sn]=j[Zt]=j[Gt]=j[At]=j[Kt]=j[Cn]=j[wn]=j[ke]=j[Vt]=j[Xe]=j[qt]=j[He]=j[Jt]=j[Xt]=!1;var Q={};Q[Tt]=Q[Sn]=Q[Zt]=Q[At]=Q[Gt]=Q[Kt]=Q[mo]=Q[go]=Q[yo]=Q[ho]=Q[bo]=Q[ke]=Q[Vt]=Q[Xe]=Q[qt]=Q[He]=Q[Jt]=Q[_n]=Q[xo]=Q[vo]=Q[So]=Q[Co]=!0,Q[Cn]=Q[wn]=Q[Xt]=!1;var hs={\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"},bs={"&":"&","<":"<",">":">",'"':""","'":"'"},xs={"&":"&","<":"<",">":">",""":'"',"'":"'"},vs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ss=parseFloat,Cs=parseInt,rr=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ue=rr||ws||Function("return this")(),Bo=l&&!l.nodeType&&l,bt=Bo&&!0&&n&&!n.nodeType&&n,ar=bt&&bt.exports===Bo,Lo=ar&&rr.process,Be=function(){try{var m=bt&&bt.require&&bt.require("util").types;return m||Lo&&Lo.binding&&Lo.binding("util")}catch{}}(),lr=Be&&Be.isArrayBuffer,sr=Be&&Be.isDate,pr=Be&&Be.isMap,ur=Be&&Be.isRegExp,cr=Be&&Be.isSet,dr=Be&&Be.isTypedArray;function Ce(m,S,b){switch(b.length){case 0:return m.call(S);case 1:return m.call(S,b[0]);case 2:return m.call(S,b[0],b[1]);case 3:return m.call(S,b[0],b[1],b[2])}return m.apply(S,b)}function _s(m,S,b,T){for(var M=-1,G=m==null?0:m.length;++M<G;){var le=m[M];S(T,le,b(le),m)}return T}function Le(m,S){for(var b=-1,T=m==null?0:m.length;++b<T&&S(m[b],b,m)!==!1;);return m}function Is(m,S){for(var b=m==null?0:m.length;b--&&S(m[b],b,m)!==!1;);return m}function fr(m,S){for(var b=-1,T=m==null?0:m.length;++b<T;)if(!S(m[b],b,m))return!1;return!0}function st(m,S){for(var b=-1,T=m==null?0:m.length,M=0,G=[];++b<T;){var le=m[b];S(le,b,m)&&(G[M++]=le)}return G}function Tn(m,S){var b=m==null?0:m.length;return!!b&&Lt(m,S,0)>-1}function Do(m,S,b){for(var T=-1,M=m==null?0:m.length;++T<M;)if(b(S,m[T]))return!0;return!1}function ee(m,S){for(var b=-1,T=m==null?0:m.length,M=Array(T);++b<T;)M[b]=S(m[b],b,m);return M}function pt(m,S){for(var b=-1,T=S.length,M=m.length;++b<T;)m[M+b]=S[b];return m}function Ro(m,S,b,T){var M=-1,G=m==null?0:m.length;for(T&&G&&(b=m[++M]);++M<G;)b=S(b,m[M],M,m);return b}function Es(m,S,b,T){var M=m==null?0:m.length;for(T&&M&&(b=m[--M]);M--;)b=S(b,m[M],M,m);return b}function Po(m,S){for(var b=-1,T=m==null?0:m.length;++b<T;)if(S(m[b],b,m))return!0;return!1}var Fs=No("length");function Ts(m){return m.split("")}function As(m){return m.match(Ol)||[]}function mr(m,S,b){var T;return b(m,function(M,G,le){if(S(M,G,le))return T=G,!1}),T}function An(m,S,b,T){for(var M=m.length,G=b+(T?1:-1);T?G--:++G<M;)if(S(m[G],G,m))return G;return-1}function Lt(m,S,b){return S===S?Us(m,S,b):An(m,gr,b)}function Bs(m,S,b,T){for(var M=b-1,G=m.length;++M<G;)if(T(m[M],S))return M;return-1}function gr(m){return m!==m}function yr(m,S){var b=m==null?0:m.length;return b?Oo(m,S)/b:vn}function No(m){return function(S){return S==null?i:S[m]}}function Mo(m){return function(S){return m==null?i:m[S]}}function hr(m,S,b,T,M){return M(m,function(G,le,J){b=T?(T=!1,G):S(b,G,le,J)}),b}function Ls(m,S){var b=m.length;for(m.sort(S);b--;)m[b]=m[b].value;return m}function Oo(m,S){for(var b,T=-1,M=m.length;++T<M;){var G=S(m[T]);G!==i&&(b=b===i?G:b+G)}return b}function ko(m,S){for(var b=-1,T=Array(m);++b<m;)T[b]=S(b);return T}function Ds(m,S){return ee(S,function(b){return[b,m[b]]})}function br(m){return m&&m.slice(0,Cr(m)+1).replace(_o,"")}function we(m){return function(S){return m(S)}}function Ho(m,S){return ee(S,function(b){return m[b]})}function Qt(m,S){return m.has(S)}function xr(m,S){for(var b=-1,T=m.length;++b<T&&Lt(S,m[b],0)>-1;);return b}function vr(m,S){for(var b=m.length;b--&&Lt(S,m[b],0)>-1;);return b}function Rs(m,S){for(var b=m.length,T=0;b--;)m[b]===S&&++T;return T}var Ps=Mo(hs),Ns=Mo(bs);function Ms(m){return"\\"+vs[m]}function Os(m,S){return m==null?i:m[S]}function Dt(m){return fs.test(m)}function ks(m){return ms.test(m)}function Hs(m){for(var S,b=[];!(S=m.next()).done;)b.push(S.value);return b}function zo(m){var S=-1,b=Array(m.size);return m.forEach(function(T,M){b[++S]=[M,T]}),b}function Sr(m,S){return function(b){return m(S(b))}}function ut(m,S){for(var b=-1,T=m.length,M=0,G=[];++b<T;){var le=m[b];(le===S||le===A)&&(m[b]=A,G[M++]=b)}return G}function Bn(m){var S=-1,b=Array(m.size);return m.forEach(function(T){b[++S]=T}),b}function zs(m){var S=-1,b=Array(m.size);return m.forEach(function(T){b[++S]=[T,T]}),b}function Us(m,S,b){for(var T=b-1,M=m.length;++T<M;)if(m[T]===S)return T;return-1}function $s(m,S,b){for(var T=b+1;T--;)if(m[T]===S)return T;return T}function Rt(m){return Dt(m)?Ys(m):Fs(m)}function ze(m){return Dt(m)?Gs(m):Ts(m)}function Cr(m){for(var S=m.length;S--&&Rl.test(m.charAt(S)););return S}var Ws=Mo(xs);function Ys(m){for(var S=Ao.lastIndex=0;Ao.test(m);)++S;return S}function Gs(m){return m.match(Ao)||[]}function Ks(m){return m.match(ds)||[]}var Vs=function m(S){S=S==null?ue:Pt.defaults(ue.Object(),S,Pt.pick(ue,gs));var b=S.Array,T=S.Date,M=S.Error,G=S.Function,le=S.Math,J=S.Object,Uo=S.RegExp,qs=S.String,De=S.TypeError,Ln=b.prototype,Js=G.prototype,Nt=J.prototype,Dn=S["__core-js_shared__"],Rn=Js.toString,q=Nt.hasOwnProperty,Xs=0,wr=function(){var e=/[^.]+$/.exec(Dn&&Dn.keys&&Dn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Pn=Nt.toString,Zs=Rn.call(J),Qs=ue._,js=Uo("^"+Rn.call(q).replace(wo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nn=ar?S.Buffer:i,ct=S.Symbol,Mn=S.Uint8Array,_r=Nn?Nn.allocUnsafe:i,On=Sr(J.getPrototypeOf,J),Ir=J.create,Er=Nt.propertyIsEnumerable,kn=Ln.splice,Fr=ct?ct.isConcatSpreadable:i,jt=ct?ct.iterator:i,xt=ct?ct.toStringTag:i,Hn=function(){try{var e=_t(J,"defineProperty");return e({},"",{}),e}catch{}}(),ep=S.clearTimeout!==ue.clearTimeout&&S.clearTimeout,tp=T&&T.now!==ue.Date.now&&T.now,np=S.setTimeout!==ue.setTimeout&&S.setTimeout,zn=le.ceil,Un=le.floor,$o=J.getOwnPropertySymbols,op=Nn?Nn.isBuffer:i,Tr=S.isFinite,ip=Ln.join,rp=Sr(J.keys,J),se=le.max,de=le.min,ap=T.now,lp=S.parseInt,Ar=le.random,sp=Ln.reverse,Wo=_t(S,"DataView"),en=_t(S,"Map"),Yo=_t(S,"Promise"),Mt=_t(S,"Set"),tn=_t(S,"WeakMap"),nn=_t(J,"create"),$n=tn&&new tn,Ot={},pp=It(Wo),up=It(en),cp=It(Yo),dp=It(Mt),fp=It(tn),Wn=ct?ct.prototype:i,on=Wn?Wn.valueOf:i,Br=Wn?Wn.toString:i;function s(e){if(oe(e)&&!O(e)&&!(e instanceof W)){if(e instanceof Re)return e;if(q.call(e,"__wrapped__"))return La(e)}return new Re(e)}var kt=function(){function e(){}return function(t){if(!te(t))return{};if(Ir)return Ir(t);e.prototype=t;var o=new e;return e.prototype=i,o}}();function Yn(){}function Re(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}s.templateSettings={escape:Fl,evaluate:Tl,interpolate:Hi,variable:"",imports:{_:s}},s.prototype=Yn.prototype,s.prototype.constructor=s,Re.prototype=kt(Yn.prototype),Re.prototype.constructor=Re;function W(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ye,this.__views__=[]}function mp(){var e=new W(this.__wrapped__);return e.__actions__=he(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=he(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=he(this.__views__),e}function gp(){if(this.__filtered__){var e=new W(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yp(){var e=this.__wrapped__.value(),t=this.__dir__,o=O(e),r=t<0,a=o?e.length:0,p=Tu(0,a,this.__views__),u=p.start,f=p.end,g=f-u,C=r?f:u-1,w=this.__iteratees__,I=w.length,E=0,L=de(g,this.__takeCount__);if(!o||!r&&a==g&&L==g)return ea(e,this.__actions__);var R=[];e:for(;g--&&E<L;){C+=t;for(var H=-1,P=e[C];++H<I;){var $=w[H],Y=$.iteratee,Ee=$.type,ye=Y(P);if(Ee==bn)P=ye;else if(!ye){if(Ee==Yt)continue e;break e}}R[E++]=P}return R}W.prototype=kt(Yn.prototype),W.prototype.constructor=W;function vt(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function hp(){this.__data__=nn?nn(null):{},this.size=0}function bp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function xp(e){var t=this.__data__;if(nn){var o=t[e];return o===x?i:o}return q.call(t,e)?t[e]:i}function vp(e){var t=this.__data__;return nn?t[e]!==i:q.call(t,e)}function Sp(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=nn&&t===i?x:t,this}vt.prototype.clear=hp,vt.prototype.delete=bp,vt.prototype.get=xp,vt.prototype.has=vp,vt.prototype.set=Sp;function Ze(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function Cp(){this.__data__=[],this.size=0}function wp(e){var t=this.__data__,o=Gn(t,e);if(o<0)return!1;var r=t.length-1;return o==r?t.pop():kn.call(t,o,1),--this.size,!0}function _p(e){var t=this.__data__,o=Gn(t,e);return o<0?i:t[o][1]}function Ip(e){return Gn(this.__data__,e)>-1}function Ep(e,t){var o=this.__data__,r=Gn(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}Ze.prototype.clear=Cp,Ze.prototype.delete=wp,Ze.prototype.get=_p,Ze.prototype.has=Ip,Ze.prototype.set=Ep;function Qe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function Fp(){this.size=0,this.__data__={hash:new vt,map:new(en||Ze),string:new vt}}function Tp(e){var t=oo(this,e).delete(e);return this.size-=t?1:0,t}function Ap(e){return oo(this,e).get(e)}function Bp(e){return oo(this,e).has(e)}function Lp(e,t){var o=oo(this,e),r=o.size;return o.set(e,t),this.size+=o.size==r?0:1,this}Qe.prototype.clear=Fp,Qe.prototype.delete=Tp,Qe.prototype.get=Ap,Qe.prototype.has=Bp,Qe.prototype.set=Lp;function St(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Qe;++t<o;)this.add(e[t])}function Dp(e){return this.__data__.set(e,x),this}function Rp(e){return this.__data__.has(e)}St.prototype.add=St.prototype.push=Dp,St.prototype.has=Rp;function Ue(e){var t=this.__data__=new Ze(e);this.size=t.size}function Pp(){this.__data__=new Ze,this.size=0}function Np(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Mp(e){return this.__data__.get(e)}function Op(e){return this.__data__.has(e)}function kp(e,t){var o=this.__data__;if(o instanceof Ze){var r=o.__data__;if(!en||r.length<y-1)return r.push([e,t]),this.size=++o.size,this;o=this.__data__=new Qe(r)}return o.set(e,t),this.size=o.size,this}Ue.prototype.clear=Pp,Ue.prototype.delete=Np,Ue.prototype.get=Mp,Ue.prototype.has=Op,Ue.prototype.set=kp;function Lr(e,t){var o=O(e),r=!o&&Et(e),a=!o&&!r&&yt(e),p=!o&&!r&&!a&&$t(e),u=o||r||a||p,f=u?ko(e.length,qs):[],g=f.length;for(var C in e)(t||q.call(e,C))&&!(u&&(C=="length"||a&&(C=="offset"||C=="parent")||p&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||nt(C,g)))&&f.push(C);return f}function Dr(e){var t=e.length;return t?e[ti(0,t-1)]:i}function Hp(e,t){return io(he(e),Ct(t,0,e.length))}function zp(e){return io(he(e))}function Go(e,t,o){(o!==i&&!$e(e[t],o)||o===i&&!(t in e))&&je(e,t,o)}function rn(e,t,o){var r=e[t];(!(q.call(e,t)&&$e(r,o))||o===i&&!(t in e))&&je(e,t,o)}function Gn(e,t){for(var o=e.length;o--;)if($e(e[o][0],t))return o;return-1}function Up(e,t,o,r){return dt(e,function(a,p,u){t(r,a,o(a),u)}),r}function Rr(e,t){return e&&Ke(t,pe(t),e)}function $p(e,t){return e&&Ke(t,xe(t),e)}function je(e,t,o){t=="__proto__"&&Hn?Hn(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function Ko(e,t){for(var o=-1,r=t.length,a=b(r),p=e==null;++o<r;)a[o]=p?i:Ei(e,t[o]);return a}function Ct(e,t,o){return e===e&&(o!==i&&(e=e<=o?e:o),t!==i&&(e=e>=t?e:t)),e}function Pe(e,t,o,r,a,p){var u,f=t&B,g=t&U,C=t≠if(o&&(u=a?o(e,r,a,p):o(e)),u!==i)return u;if(!te(e))return e;var w=O(e);if(w){if(u=Bu(e),!f)return he(e,u)}else{var I=fe(e),E=I==wn||I==Ni;if(yt(e))return oa(e,f);if(I==Xe||I==Tt||E&&!a){if(u=g||E?{}:Ca(e),!f)return g?xu(e,$p(u,e)):bu(e,Rr(u,e))}else{if(!Q[I])return a?e:{};u=Lu(e,I,f)}}p||(p=new Ue);var L=p.get(e);if(L)return L;p.set(e,u),Za(e)?e.forEach(function(P){u.add(Pe(P,t,o,P,e,p))}):Ja(e)&&e.forEach(function(P,$){u.set($,Pe(P,t,o,$,e,p))});var R=C?g?di:ci:g?xe:pe,H=w?i:R(e);return Le(H||e,function(P,$){H&&($=P,P=e[$]),rn(u,$,Pe(P,t,o,$,e,p))}),u}function Wp(e){var t=pe(e);return function(o){return Pr(o,e,t)}}function Pr(e,t,o){var r=o.length;if(e==null)return!r;for(e=J(e);r--;){var a=o[r],p=t[a],u=e[a];if(u===i&&!(a in e)||!p(u))return!1}return!0}function Nr(e,t,o){if(typeof e!="function")throw new De(h);return dn(function(){e.apply(i,o)},t)}function an(e,t,o,r){var a=-1,p=Tn,u=!0,f=e.length,g=[],C=t.length;if(!f)return g;o&&(t=ee(t,we(o))),r?(p=Do,u=!1):t.length>=y&&(p=Qt,u=!1,t=new St(t));e:for(;++a<f;){var w=e[a],I=o==null?w:o(w);if(w=r||w!==0?w:0,u&&I===I){for(var E=C;E--;)if(t[E]===I)continue e;g.push(w)}else p(t,I,r)||g.push(w)}return g}var dt=sa(Ge),Mr=sa(qo,!0);function Yp(e,t){var o=!0;return dt(e,function(r,a,p){return o=!!t(r,a,p),o}),o}function Kn(e,t,o){for(var r=-1,a=e.length;++r<a;){var p=e[r],u=t(p);if(u!=null&&(f===i?u===u&&!Ie(u):o(u,f)))var f=u,g=p}return g}function Gp(e,t,o,r){var a=e.length;for(o=k(o),o<0&&(o=-o>a?0:a+o),r=r===i||r>a?a:k(r),r<0&&(r+=a),r=o>r?0:ja(r);o<r;)e[o++]=t;return e}function Or(e,t){var o=[];return dt(e,function(r,a,p){t(r,a,p)&&o.push(r)}),o}function ce(e,t,o,r,a){var p=-1,u=e.length;for(o||(o=Ru),a||(a=[]);++p<u;){var f=e[p];t>0&&o(f)?t>1?ce(f,t-1,o,r,a):pt(a,f):r||(a[a.length]=f)}return a}var Vo=pa(),kr=pa(!0);function Ge(e,t){return e&&Vo(e,t,pe)}function qo(e,t){return e&&kr(e,t,pe)}function Vn(e,t){return st(t,function(o){return ot(e[o])})}function wt(e,t){t=mt(t,e);for(var o=0,r=t.length;e!=null&&o<r;)e=e[Ve(t[o++])];return o&&o==r?e:i}function Hr(e,t,o){var r=t(e);return O(e)?r:pt(r,o(e))}function me(e){return e==null?e===i?vl:bl:xt&&xt in J(e)?Fu(e):zu(e)}function Jo(e,t){return e>t}function Kp(e,t){return e!=null&&q.call(e,t)}function Vp(e,t){return e!=null&&t in J(e)}function qp(e,t,o){return e>=de(t,o)&&e<se(t,o)}function Xo(e,t,o){for(var r=o?Do:Tn,a=e[0].length,p=e.length,u=p,f=b(p),g=1/0,C=[];u--;){var w=e[u];u&&t&&(w=ee(w,we(t))),g=de(w.length,g),f[u]=!o&&(t||a>=120&&w.length>=120)?new St(u&&w):i}w=e[0];var I=-1,E=f[0];e:for(;++I<a&&C.length<g;){var L=w[I],R=t?t(L):L;if(L=o||L!==0?L:0,!(E?Qt(E,R):r(C,R,o))){for(u=p;--u;){var H=f[u];if(!(H?Qt(H,R):r(e[u],R,o)))continue e}E&&E.push(R),C.push(L)}}return C}function Jp(e,t,o,r){return Ge(e,function(a,p,u){t(r,o(a),p,u)}),r}function ln(e,t,o){t=mt(t,e),e=Ea(e,t);var r=e==null?e:e[Ve(Me(t))];return r==null?i:Ce(r,e,o)}function zr(e){return oe(e)&&me(e)==Tt}function Xp(e){return oe(e)&&me(e)==Zt}function Zp(e){return oe(e)&&me(e)==Kt}function sn(e,t,o,r,a){return e===t?!0:e==null||t==null||!oe(e)&&!oe(t)?e!==e&&t!==t:Qp(e,t,o,r,sn,a)}function Qp(e,t,o,r,a,p){var u=O(e),f=O(t),g=u?Sn:fe(e),C=f?Sn:fe(t);g=g==Tt?Xe:g,C=C==Tt?Xe:C;var w=g==Xe,I=C==Xe,E=g==C;if(E&&yt(e)){if(!yt(t))return!1;u=!0,w=!1}if(E&&!w)return p||(p=new Ue),u||$t(e)?xa(e,t,o,r,a,p):Iu(e,t,g,o,r,a,p);if(!(o&X)){var L=w&&q.call(e,"__wrapped__"),R=I&&q.call(t,"__wrapped__");if(L||R){var H=L?e.value():e,P=R?t.value():t;return p||(p=new Ue),a(H,P,o,r,p)}}return E?(p||(p=new Ue),Eu(e,t,o,r,a,p)):!1}function jp(e){return oe(e)&&fe(e)==ke}function Zo(e,t,o,r){var a=o.length,p=a,u=!r;if(e==null)return!p;for(e=J(e);a--;){var f=o[a];if(u&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++a<p;){f=o[a];var g=f[0],C=e[g],w=f[1];if(u&&f[2]){if(C===i&&!(g in e))return!1}else{var I=new Ue;if(r)var E=r(C,w,g,e,t,I);if(!(E===i?sn(w,C,X|K,r,I):E))return!1}}return!0}function Ur(e){if(!te(e)||Nu(e))return!1;var t=ot(e)?js:Wl;return t.test(It(e))}function eu(e){return oe(e)&&me(e)==qt}function tu(e){return oe(e)&&fe(e)==He}function nu(e){return oe(e)&&uo(e.length)&&!!j[me(e)]}function $r(e){return typeof e=="function"?e:e==null?ve:typeof e=="object"?O(e)?Gr(e[0],e[1]):Yr(e):ul(e)}function Qo(e){if(!cn(e))return rp(e);var t=[];for(var o in J(e))q.call(e,o)&&o!="constructor"&&t.push(o);return t}function ou(e){if(!te(e))return Hu(e);var t=cn(e),o=[];for(var r in e)r=="constructor"&&(t||!q.call(e,r))||o.push(r);return o}function jo(e,t){return e<t}function Wr(e,t){var o=-1,r=be(e)?b(e.length):[];return dt(e,function(a,p,u){r[++o]=t(a,p,u)}),r}function Yr(e){var t=mi(e);return t.length==1&&t[0][2]?_a(t[0][0],t[0][1]):function(o){return o===e||Zo(o,e,t)}}function Gr(e,t){return yi(e)&&wa(t)?_a(Ve(e),t):function(o){var r=Ei(o,e);return r===i&&r===t?Fi(o,e):sn(t,r,X|K)}}function qn(e,t,o,r,a){e!==t&&Vo(t,function(p,u){if(a||(a=new Ue),te(p))iu(e,t,u,o,qn,r,a);else{var f=r?r(bi(e,u),p,u+"",e,t,a):i;f===i&&(f=p),Go(e,u,f)}},xe)}function iu(e,t,o,r,a,p,u){var f=bi(e,o),g=bi(t,o),C=u.get(g);if(C){Go(e,o,C);return}var w=p?p(f,g,o+"",e,t,u):i,I=w===i;if(I){var E=O(g),L=!E&&yt(g),R=!E&&!L&&$t(g);w=g,E||L||R?O(f)?w=f:ie(f)?w=he(f):L?(I=!1,w=oa(g,!0)):R?(I=!1,w=ia(g,!0)):w=[]:fn(g)||Et(g)?(w=f,Et(f)?w=el(f):(!te(f)||ot(f))&&(w=Ca(g))):I=!1}I&&(u.set(g,w),a(w,g,r,p,u),u.delete(g)),Go(e,o,w)}function Kr(e,t){var o=e.length;if(!!o)return t+=t<0?o:0,nt(t,o)?e[t]:i}function Vr(e,t,o){t.length?t=ee(t,function(p){return O(p)?function(u){return wt(u,p.length===1?p[0]:p)}:p}):t=[ve];var r=-1;t=ee(t,we(D()));var a=Wr(e,function(p,u,f){var g=ee(t,function(C){return C(p)});return{criteria:g,index:++r,value:p}});return Ls(a,function(p,u){return hu(p,u,o)})}function ru(e,t){return qr(e,t,function(o,r){return Fi(e,r)})}function qr(e,t,o){for(var r=-1,a=t.length,p={};++r<a;){var u=t[r],f=wt(e,u);o(f,u)&&pn(p,mt(u,e),f)}return p}function au(e){return function(t){return wt(t,e)}}function ei(e,t,o,r){var a=r?Bs:Lt,p=-1,u=t.length,f=e;for(e===t&&(t=he(t)),o&&(f=ee(e,we(o)));++p<u;)for(var g=0,C=t[p],w=o?o(C):C;(g=a(f,w,g,r))>-1;)f!==e&&kn.call(f,g,1),kn.call(e,g,1);return e}function Jr(e,t){for(var o=e?t.length:0,r=o-1;o--;){var a=t[o];if(o==r||a!==p){var p=a;nt(a)?kn.call(e,a,1):ii(e,a)}}return e}function ti(e,t){return e+Un(Ar()*(t-e+1))}function lu(e,t,o,r){for(var a=-1,p=se(zn((t-e)/(o||1)),0),u=b(p);p--;)u[r?p:++a]=e,e+=o;return u}function ni(e,t){var o="";if(!e||t<1||t>lt)return o;do t%2&&(o+=e),t=Un(t/2),t&&(e+=e);while(t);return o}function z(e,t){return xi(Ia(e,t,ve),e+"")}function su(e){return Dr(Wt(e))}function pu(e,t){var o=Wt(e);return io(o,Ct(t,0,o.length))}function pn(e,t,o,r){if(!te(e))return e;t=mt(t,e);for(var a=-1,p=t.length,u=p-1,f=e;f!=null&&++a<p;){var g=Ve(t[a]),C=o;if(g==="__proto__"||g==="constructor"||g==="prototype")return e;if(a!=u){var w=f[g];C=r?r(w,g,f):i,C===i&&(C=te(w)?w:nt(t[a+1])?[]:{})}rn(f,g,C),f=f[g]}return e}var Xr=$n?function(e,t){return $n.set(e,t),e}:ve,uu=Hn?function(e,t){return Hn(e,"toString",{configurable:!0,enumerable:!1,value:Ai(t),writable:!0})}:ve;function cu(e){return io(Wt(e))}function Ne(e,t,o){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),o=o>a?a:o,o<0&&(o+=a),a=t>o?0:o-t>>>0,t>>>=0;for(var p=b(a);++r<a;)p[r]=e[r+t];return p}function du(e,t){var o;return dt(e,function(r,a,p){return o=t(r,a,p),!o}),!!o}function Jn(e,t,o){var r=0,a=e==null?r:e.length;if(typeof t=="number"&&t===t&&a<=ml){for(;r<a;){var p=r+a>>>1,u=e[p];u!==null&&!Ie(u)&&(o?u<=t:u<t)?r=p+1:a=p}return a}return oi(e,t,ve,o)}function oi(e,t,o,r){var a=0,p=e==null?0:e.length;if(p===0)return 0;t=o(t);for(var u=t!==t,f=t===null,g=Ie(t),C=t===i;a<p;){var w=Un((a+p)/2),I=o(e[w]),E=I!==i,L=I===null,R=I===I,H=Ie(I);if(u)var P=r||R;else C?P=R&&(r||E):f?P=R&&E&&(r||!L):g?P=R&&E&&!L&&(r||!H):L||H?P=!1:P=r?I<=t:I<t;P?a=w+1:p=w}return de(p,fl)}function Zr(e,t){for(var o=-1,r=e.length,a=0,p=[];++o<r;){var u=e[o],f=t?t(u):u;if(!o||!$e(f,g)){var g=f;p[a++]=u===0?0:u}}return p}function Qr(e){return typeof e=="number"?e:Ie(e)?vn:+e}function _e(e){if(typeof e=="string")return e;if(O(e))return ee(e,_e)+"";if(Ie(e))return Br?Br.call(e):"";var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function ft(e,t,o){var r=-1,a=Tn,p=e.length,u=!0,f=[],g=f;if(o)u=!1,a=Do;else if(p>=y){var C=t?null:wu(e);if(C)return Bn(C);u=!1,a=Qt,g=new St}else g=t?[]:f;e:for(;++r<p;){var w=e[r],I=t?t(w):w;if(w=o||w!==0?w:0,u&&I===I){for(var E=g.length;E--;)if(g[E]===I)continue e;t&&g.push(I),f.push(w)}else a(g,I,o)||(g!==f&&g.push(I),f.push(w))}return f}function ii(e,t){return t=mt(t,e),e=Ea(e,t),e==null||delete e[Ve(Me(t))]}function jr(e,t,o,r){return pn(e,t,o(wt(e,t)),r)}function Xn(e,t,o,r){for(var a=e.length,p=r?a:-1;(r?p--:++p<a)&&t(e[p],p,e););return o?Ne(e,r?0:p,r?p+1:a):Ne(e,r?p+1:0,r?a:p)}function ea(e,t){var o=e;return o instanceof W&&(o=o.value()),Ro(t,function(r,a){return a.func.apply(a.thisArg,pt([r],a.args))},o)}function ri(e,t,o){var r=e.length;if(r<2)return r?ft(e[0]):[];for(var a=-1,p=b(r);++a<r;)for(var u=e[a],f=-1;++f<r;)f!=a&&(p[a]=an(p[a]||u,e[f],t,o));return ft(ce(p,1),t,o)}function ta(e,t,o){for(var r=-1,a=e.length,p=t.length,u={};++r<a;){var f=r<p?t[r]:i;o(u,e[r],f)}return u}function ai(e){return ie(e)?e:[]}function li(e){return typeof e=="function"?e:ve}function mt(e,t){return O(e)?e:yi(e,t)?[e]:Ba(V(e))}var fu=z;function gt(e,t,o){var r=e.length;return o=o===i?r:o,!t&&o>=r?e:Ne(e,t,o)}var na=ep||function(e){return ue.clearTimeout(e)};function oa(e,t){if(t)return e.slice();var o=e.length,r=_r?_r(o):new e.constructor(o);return e.copy(r),r}function si(e){var t=new e.constructor(e.byteLength);return new Mn(t).set(new Mn(e)),t}function mu(e,t){var o=t?si(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function gu(e){var t=new e.constructor(e.source,zi.exec(e));return t.lastIndex=e.lastIndex,t}function yu(e){return on?J(on.call(e)):{}}function ia(e,t){var o=t?si(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function ra(e,t){if(e!==t){var o=e!==i,r=e===null,a=e===e,p=Ie(e),u=t!==i,f=t===null,g=t===t,C=Ie(t);if(!f&&!C&&!p&&e>t||p&&u&&g&&!f&&!C||r&&u&&g||!o&&g||!a)return 1;if(!r&&!p&&!C&&e<t||C&&o&&a&&!r&&!p||f&&o&&a||!u&&a||!g)return-1}return 0}function hu(e,t,o){for(var r=-1,a=e.criteria,p=t.criteria,u=a.length,f=o.length;++r<u;){var g=ra(a[r],p[r]);if(g){if(r>=f)return g;var C=o[r];return g*(C=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,o,r){for(var a=-1,p=e.length,u=o.length,f=-1,g=t.length,C=se(p-u,0),w=b(g+C),I=!r;++f<g;)w[f]=t[f];for(;++a<u;)(I||a<p)&&(w[o[a]]=e[a]);for(;C--;)w[f++]=e[a++];return w}function la(e,t,o,r){for(var a=-1,p=e.length,u=-1,f=o.length,g=-1,C=t.length,w=se(p-f,0),I=b(w+C),E=!r;++a<w;)I[a]=e[a];for(var L=a;++g<C;)I[L+g]=t[g];for(;++u<f;)(E||a<p)&&(I[L+o[u]]=e[a++]);return I}function he(e,t){var o=-1,r=e.length;for(t||(t=b(r));++o<r;)t[o]=e[o];return t}function Ke(e,t,o,r){var a=!o;o||(o={});for(var p=-1,u=t.length;++p<u;){var f=t[p],g=r?r(o[f],e[f],f,o,e):i;g===i&&(g=e[f]),a?je(o,f,g):rn(o,f,g)}return o}function bu(e,t){return Ke(e,gi(e),t)}function xu(e,t){return Ke(e,va(e),t)}function Zn(e,t){return function(o,r){var a=O(o)?_s:Up,p=t?t():{};return a(o,e,D(r,2),p)}}function Ht(e){return z(function(t,o){var r=-1,a=o.length,p=a>1?o[a-1]:i,u=a>2?o[2]:i;for(p=e.length>3&&typeof p=="function"?(a--,p):i,u&&ge(o[0],o[1],u)&&(p=a<3?i:p,a=1),t=J(t);++r<a;){var f=o[r];f&&e(t,f,r,p)}return t})}function sa(e,t){return function(o,r){if(o==null)return o;if(!be(o))return e(o,r);for(var a=o.length,p=t?a:-1,u=J(o);(t?p--:++p<a)&&r(u[p],p,u)!==!1;);return o}}function pa(e){return function(t,o,r){for(var a=-1,p=J(t),u=r(t),f=u.length;f--;){var g=u[e?f:++a];if(o(p[g],g,p)===!1)break}return t}}function vu(e,t,o){var r=t&N,a=un(e);function p(){var u=this&&this!==ue&&this instanceof p?a:e;return u.apply(r?o:this,arguments)}return p}function ua(e){return function(t){t=V(t);var o=Dt(t)?ze(t):i,r=o?o[0]:t.charAt(0),a=o?gt(o,1).join(""):t.slice(1);return r[e]()+a}}function zt(e){return function(t){return Ro(sl(ll(t).replace(us,"")),e,"")}}function un(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=kt(e.prototype),r=e.apply(o,t);return te(r)?r:o}}function Su(e,t,o){var r=un(e);function a(){for(var p=arguments.length,u=b(p),f=p,g=Ut(a);f--;)u[f]=arguments[f];var C=p<3&&u[0]!==g&&u[p-1]!==g?[]:ut(u,g);if(p-=C.length,p<o)return ga(e,t,Qn,a.placeholder,i,u,C,i,i,o-p);var w=this&&this!==ue&&this instanceof a?r:e;return Ce(w,this,u)}return a}function ca(e){return function(t,o,r){var a=J(t);if(!be(t)){var p=D(o,3);t=pe(t),o=function(f){return p(a[f],f,a)}}var u=e(t,o,r);return u>-1?a[p?t[u]:u]:i}}function da(e){return tt(function(t){var o=t.length,r=o,a=Re.prototype.thru;for(e&&t.reverse();r--;){var p=t[r];if(typeof p!="function")throw new De(h);if(a&&!u&&no(p)=="wrapper")var u=new Re([],!0)}for(r=u?r:o;++r<o;){p=t[r];var f=no(p),g=f=="wrapper"?fi(p):i;g&&hi(g[0])&&g[1]==(Ae|Z|Se|at)&&!g[4].length&&g[9]==1?u=u[no(g[0])].apply(u,g[3]):u=p.length==1&&hi(p)?u[f]():u.thru(p)}return function(){var C=arguments,w=C[0];if(u&&C.length==1&&O(w))return u.plant(w).value();for(var I=0,E=o?t[I].apply(this,C):w;++I<o;)E=t[I].call(this,E);return E}})}function Qn(e,t,o,r,a,p,u,f,g,C){var w=t&Ae,I=t&N,E=t&ae,L=t&(Z|qe),R=t&Ft,H=E?i:un(e);function P(){for(var $=arguments.length,Y=b($),Ee=$;Ee--;)Y[Ee]=arguments[Ee];if(L)var ye=Ut(P),Fe=Rs(Y,ye);if(r&&(Y=aa(Y,r,a,L)),p&&(Y=la(Y,p,u,L)),$-=Fe,L&&$<C){var re=ut(Y,ye);return ga(e,t,Qn,P.placeholder,o,Y,re,f,g,C-$)}var We=I?o:this,rt=E?We[e]:e;return $=Y.length,f?Y=Uu(Y,f):R&&$>1&&Y.reverse(),w&&g<$&&(Y.length=g),this&&this!==ue&&this instanceof P&&(rt=H||un(rt)),rt.apply(We,Y)}return P}function fa(e,t){return function(o,r){return Jp(o,e,t(r),{})}}function jn(e,t){return function(o,r){var a;if(o===i&&r===i)return t;if(o!==i&&(a=o),r!==i){if(a===i)return r;typeof o=="string"||typeof r=="string"?(o=_e(o),r=_e(r)):(o=Qr(o),r=Qr(r)),a=e(o,r)}return a}}function pi(e){return tt(function(t){return t=ee(t,we(D())),z(function(o){var r=this;return e(t,function(a){return Ce(a,r,o)})})})}function eo(e,t){t=t===i?" ":_e(t);var o=t.length;if(o<2)return o?ni(t,e):t;var r=ni(t,zn(e/Rt(t)));return Dt(t)?gt(ze(r),0,e).join(""):r.slice(0,e)}function Cu(e,t,o,r){var a=t&N,p=un(e);function u(){for(var f=-1,g=arguments.length,C=-1,w=r.length,I=b(w+g),E=this&&this!==ue&&this instanceof u?p:e;++C<w;)I[C]=r[C];for(;g--;)I[C++]=arguments[++f];return Ce(E,a?o:this,I)}return u}function ma(e){return function(t,o,r){return r&&typeof r!="number"&&ge(t,o,r)&&(o=r=i),t=it(t),o===i?(o=t,t=0):o=it(o),r=r===i?t<o?1:-1:it(r),lu(t,o,r,e)}}function to(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=Oe(t),o=Oe(o)),e(t,o)}}function ga(e,t,o,r,a,p,u,f,g,C){var w=t&Z,I=w?u:i,E=w?i:u,L=w?p:i,R=w?i:p;t|=w?Se:Je,t&=~(w?Je:Se),t&Te||(t&=~(N|ae));var H=[e,t,a,L,I,R,E,f,g,C],P=o.apply(i,H);return hi(e)&&Fa(P,H),P.placeholder=r,Ta(P,e,t)}function ui(e){var t=le[e];return function(o,r){if(o=Oe(o),r=r==null?0:de(k(r),292),r&&Tr(o)){var a=(V(o)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+r));return a=(V(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-r))}return t(o)}}var wu=Mt&&1/Bn(new Mt([,-0]))[1]==ht?function(e){return new Mt(e)}:Di;function ya(e){return function(t){var o=fe(t);return o==ke?zo(t):o==He?zs(t):Ds(t,e(t))}}function et(e,t,o,r,a,p,u,f){var g=t&ae;if(!g&&typeof e!="function")throw new De(h);var C=r?r.length:0;if(C||(t&=~(Se|Je),r=a=i),u=u===i?u:se(k(u),0),f=f===i?f:k(f),C-=a?a.length:0,t&Je){var w=r,I=a;r=a=i}var E=g?i:fi(e),L=[e,t,o,r,a,w,I,p,u,f];if(E&&ku(L,E),e=L[0],t=L[1],o=L[2],r=L[3],a=L[4],f=L[9]=L[9]===i?g?0:e.length:se(L[9]-C,0),!f&&t&(Z|qe)&&(t&=~(Z|qe)),!t||t==N)var R=vu(e,t,o);else t==Z||t==qe?R=Su(e,t,f):(t==Se||t==(N|Se))&&!a.length?R=Cu(e,t,o,r):R=Qn.apply(i,L);var H=E?Xr:Fa;return Ta(H(R,L),e,t)}function ha(e,t,o,r){return e===i||$e(e,Nt[o])&&!q.call(r,o)?t:e}function ba(e,t,o,r,a,p){return te(e)&&te(t)&&(p.set(t,e),qn(e,t,i,ba,p),p.delete(t)),e}function _u(e){return fn(e)?i:e}function xa(e,t,o,r,a,p){var u=o&X,f=e.length,g=t.length;if(f!=g&&!(u&&g>f))return!1;var C=p.get(e),w=p.get(t);if(C&&w)return C==t&&w==e;var I=-1,E=!0,L=o&K?new St:i;for(p.set(e,t),p.set(t,e);++I<f;){var R=e[I],H=t[I];if(r)var P=u?r(H,R,I,t,e,p):r(R,H,I,e,t,p);if(P!==i){if(P)continue;E=!1;break}if(L){if(!Po(t,function($,Y){if(!Qt(L,Y)&&(R===$||a(R,$,o,r,p)))return L.push(Y)})){E=!1;break}}else if(!(R===H||a(R,H,o,r,p))){E=!1;break}}return p.delete(e),p.delete(t),E}function Iu(e,t,o,r,a,p,u){switch(o){case At:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!p(new Mn(e),new Mn(t)));case Gt:case Kt:case Vt:return $e(+e,+t);case Cn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case ke:var f=zo;case He:var g=r&X;if(f||(f=Bn),e.size!=t.size&&!g)return!1;var C=u.get(e);if(C)return C==t;r|=K,u.set(e,t);var w=xa(f(e),f(t),r,a,p,u);return u.delete(e),w;case _n:if(on)return on.call(e)==on.call(t)}return!1}function Eu(e,t,o,r,a,p){var u=o&X,f=ci(e),g=f.length,C=ci(t),w=C.length;if(g!=w&&!u)return!1;for(var I=g;I--;){var E=f[I];if(!(u?E in t:q.call(t,E)))return!1}var L=p.get(e),R=p.get(t);if(L&&R)return L==t&&R==e;var H=!0;p.set(e,t),p.set(t,e);for(var P=u;++I<g;){E=f[I];var $=e[E],Y=t[E];if(r)var Ee=u?r(Y,$,E,t,e,p):r($,Y,E,e,t,p);if(!(Ee===i?$===Y||a($,Y,o,r,p):Ee)){H=!1;break}P||(P=E=="constructor")}if(H&&!P){var ye=e.constructor,Fe=t.constructor;ye!=Fe&&"constructor"in e&&"constructor"in t&&!(typeof ye=="function"&&ye instanceof ye&&typeof Fe=="function"&&Fe instanceof Fe)&&(H=!1)}return p.delete(e),p.delete(t),H}function tt(e){return xi(Ia(e,i,Pa),e+"")}function ci(e){return Hr(e,pe,gi)}function di(e){return Hr(e,xe,va)}var fi=$n?function(e){return $n.get(e)}:Di;function no(e){for(var t=e.name+"",o=Ot[t],r=q.call(Ot,t)?o.length:0;r--;){var a=o[r],p=a.func;if(p==null||p==e)return a.name}return t}function Ut(e){var t=q.call(s,"placeholder")?s:e;return t.placeholder}function D(){var e=s.iteratee||Bi;return e=e===Bi?$r:e,arguments.length?e(arguments[0],arguments[1]):e}function oo(e,t){var o=e.__data__;return Pu(t)?o[typeof t=="string"?"string":"hash"]:o.map}function mi(e){for(var t=pe(e),o=t.length;o--;){var r=t[o],a=e[r];t[o]=[r,a,wa(a)]}return t}function _t(e,t){var o=Os(e,t);return Ur(o)?o:i}function Fu(e){var t=q.call(e,xt),o=e[xt];try{e[xt]=i;var r=!0}catch{}var a=Pn.call(e);return r&&(t?e[xt]=o:delete e[xt]),a}var gi=$o?function(e){return e==null?[]:(e=J(e),st($o(e),function(t){return Er.call(e,t)}))}:Ri,va=$o?function(e){for(var t=[];e;)pt(t,gi(e)),e=On(e);return t}:Ri,fe=me;(Wo&&fe(new Wo(new ArrayBuffer(1)))!=At||en&&fe(new en)!=ke||Yo&&fe(Yo.resolve())!=Mi||Mt&&fe(new Mt)!=He||tn&&fe(new tn)!=Xt)&&(fe=function(e){var t=me(e),o=t==Xe?e.constructor:i,r=o?It(o):"";if(r)switch(r){case pp:return At;case up:return ke;case cp:return Mi;case dp:return He;case fp:return Xt}return t});function Tu(e,t,o){for(var r=-1,a=o.length;++r<a;){var p=o[r],u=p.size;switch(p.type){case"drop":e+=u;break;case"dropRight":t-=u;break;case"take":t=de(t,e+u);break;case"takeRight":e=se(e,t-u);break}}return{start:e,end:t}}function Au(e){var t=e.match(Nl);return t?t[1].split(Ml):[]}function Sa(e,t,o){t=mt(t,e);for(var r=-1,a=t.length,p=!1;++r<a;){var u=Ve(t[r]);if(!(p=e!=null&&o(e,u)))break;e=e[u]}return p||++r!=a?p:(a=e==null?0:e.length,!!a&&uo(a)&&nt(u,a)&&(O(e)||Et(e)))}function Bu(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&q.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Ca(e){return typeof e.constructor=="function"&&!cn(e)?kt(On(e)):{}}function Lu(e,t,o){var r=e.constructor;switch(t){case Zt:return si(e);case Gt:case Kt:return new r(+e);case At:return mu(e,o);case mo:case go:case yo:case ho:case bo:case xo:case vo:case So:case Co:return ia(e,o);case ke:return new r;case Vt:case Jt:return new r(e);case qt:return gu(e);case He:return new r;case _n:return yu(e)}}function Du(e,t){var o=t.length;if(!o)return e;var r=o-1;return t[r]=(o>1?"& ":"")+t[r],t=t.join(o>2?", ":" "),e.replace(Pl,`{
|
|
8
|
+
*/(function(n,l){(function(){var i,d="4.17.21",y=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",v="Invalid `variable` option passed into `_.template`",x="__lodash_hash_undefined__",F=500,A="__lodash_placeholder__",B=1,U=2,ne=4,X=1,K=2,M=1,ae=2,Te=4,Z=8,qe=16,Se=32,Je=64,Ae=128,at=256,Ft=512,mn=30,gn="...",yn=800,hn=16,Wt=1,bn=2,xn=3,ht=1/0,lt=9007199254740991,dl=17976931348623157e292,vn=0/0,We=4294967295,fl=We-1,ml=We>>>1,gl=[["ary",Ae],["bind",M],["bindKey",ae],["curry",Z],["curryRight",qe],["flip",Ft],["partial",Se],["partialRight",Je],["rearg",at]],Tt="[object Arguments]",Sn="[object Array]",yl="[object AsyncFunction]",Gt="[object Boolean]",Kt="[object Date]",hl="[object DOMException]",Cn="[object Error]",wn="[object Function]",Mi="[object GeneratorFunction]",ke="[object Map]",Vt="[object Number]",bl="[object Null]",Xe="[object Object]",Ni="[object Promise]",xl="[object Proxy]",qt="[object RegExp]",He="[object Set]",Jt="[object String]",_n="[object Symbol]",vl="[object Undefined]",Xt="[object WeakMap]",Sl="[object WeakSet]",Zt="[object ArrayBuffer]",At="[object DataView]",mo="[object Float32Array]",go="[object Float64Array]",yo="[object Int8Array]",ho="[object Int16Array]",bo="[object Int32Array]",xo="[object Uint8Array]",vo="[object Uint8ClampedArray]",So="[object Uint16Array]",Co="[object Uint32Array]",Cl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,_l=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Oi=/&(?:amp|lt|gt|quot|#39);/g,ki=/[&<>"']/g,Il=RegExp(Oi.source),El=RegExp(ki.source),Fl=/<%-([\s\S]+?)%>/g,Tl=/<%([\s\S]+?)%>/g,Hi=/<%=([\s\S]+?)%>/g,Al=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bl=/^\w*$/,Ll=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wo=/[\\^$.*+?()[\]{}|]/g,Dl=RegExp(wo.source),_o=/^\s+/,Rl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ml=/\{\n\/\* \[wrapped with (.+)\] \*/,Nl=/,? & /,Ol=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kl=/[()=,{}\[\]\/\s]/,Hl=/\\(\\)?/g,zl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,zi=/\w*$/,Ul=/^[-+]0x[0-9a-f]+$/i,Yl=/^0b[01]+$/i,$l=/^\[object .+?Constructor\]$/,Wl=/^0o[0-7]+$/i,Gl=/^(?:0|[1-9]\d*)$/,Kl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,En="\\ud800-\\udfff",ql="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",Ui=ql+Jl+Xl,Yi="\\u2700-\\u27bf",$i="a-z\\xdf-\\xf6\\xf8-\\xff",Zl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\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",Wi="A-Z\\xc0-\\xd6\\xd8-\\xde",Gi="\\ufe0e\\ufe0f",Ki=Zl+Ql+jl+es,Io="['\u2019]",ts="["+En+"]",Vi="["+Ki+"]",Fn="["+Ui+"]",qi="\\d+",ns="["+Yi+"]",Ji="["+$i+"]",Xi="[^"+En+Ki+qi+Yi+$i+Wi+"]",Eo="\\ud83c[\\udffb-\\udfff]",os="(?:"+Fn+"|"+Eo+")",Zi="[^"+En+"]",Fo="(?:\\ud83c[\\udde6-\\uddff]){2}",To="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+Wi+"]",Qi="\\u200d",ji="(?:"+Ji+"|"+Xi+")",is="(?:"+Bt+"|"+Xi+")",er="(?:"+Io+"(?:d|ll|m|re|s|t|ve))?",tr="(?:"+Io+"(?:D|LL|M|RE|S|T|VE))?",nr=os+"?",or="["+Gi+"]?",rs="(?:"+Qi+"(?:"+[Zi,Fo,To].join("|")+")"+or+nr+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ir=or+nr+rs,ss="(?:"+[ns,Fo,To].join("|")+")"+ir,ps="(?:"+[Zi+Fn+"?",Fn,Fo,To,ts].join("|")+")",us=RegExp(Io,"g"),cs=RegExp(Fn,"g"),Ao=RegExp(Eo+"(?="+Eo+")|"+ps+ir,"g"),ds=RegExp([Bt+"?"+Ji+"+"+er+"(?="+[Vi,Bt,"$"].join("|")+")",is+"+"+tr+"(?="+[Vi,Bt+ji,"$"].join("|")+")",Bt+"?"+ji+"+"+er,Bt+"+"+tr,ls,as,qi,ss].join("|"),"g"),fs=RegExp("["+Qi+En+Ui+Gi+"]"),ms=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["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"],ys=-1,j={};j[mo]=j[go]=j[yo]=j[ho]=j[bo]=j[xo]=j[vo]=j[So]=j[Co]=!0,j[Tt]=j[Sn]=j[Zt]=j[Gt]=j[At]=j[Kt]=j[Cn]=j[wn]=j[ke]=j[Vt]=j[Xe]=j[qt]=j[He]=j[Jt]=j[Xt]=!1;var Q={};Q[Tt]=Q[Sn]=Q[Zt]=Q[At]=Q[Gt]=Q[Kt]=Q[mo]=Q[go]=Q[yo]=Q[ho]=Q[bo]=Q[ke]=Q[Vt]=Q[Xe]=Q[qt]=Q[He]=Q[Jt]=Q[_n]=Q[xo]=Q[vo]=Q[So]=Q[Co]=!0,Q[Cn]=Q[wn]=Q[Xt]=!1;var hs={\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"},bs={"&":"&","<":"<",">":">",'"':""","'":"'"},xs={"&":"&","<":"<",">":">",""":'"',"'":"'"},vs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ss=parseFloat,Cs=parseInt,rr=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ue=rr||ws||Function("return this")(),Bo=l&&!l.nodeType&&l,bt=Bo&&!0&&n&&!n.nodeType&&n,ar=bt&&bt.exports===Bo,Lo=ar&&rr.process,Be=function(){try{var m=bt&&bt.require&&bt.require("util").types;return m||Lo&&Lo.binding&&Lo.binding("util")}catch{}}(),lr=Be&&Be.isArrayBuffer,sr=Be&&Be.isDate,pr=Be&&Be.isMap,ur=Be&&Be.isRegExp,cr=Be&&Be.isSet,dr=Be&&Be.isTypedArray;function Ce(m,S,b){switch(b.length){case 0:return m.call(S);case 1:return m.call(S,b[0]);case 2:return m.call(S,b[0],b[1]);case 3:return m.call(S,b[0],b[1],b[2])}return m.apply(S,b)}function _s(m,S,b,T){for(var N=-1,G=m==null?0:m.length;++N<G;){var le=m[N];S(T,le,b(le),m)}return T}function Le(m,S){for(var b=-1,T=m==null?0:m.length;++b<T&&S(m[b],b,m)!==!1;);return m}function Is(m,S){for(var b=m==null?0:m.length;b--&&S(m[b],b,m)!==!1;);return m}function fr(m,S){for(var b=-1,T=m==null?0:m.length;++b<T;)if(!S(m[b],b,m))return!1;return!0}function st(m,S){for(var b=-1,T=m==null?0:m.length,N=0,G=[];++b<T;){var le=m[b];S(le,b,m)&&(G[N++]=le)}return G}function Tn(m,S){var b=m==null?0:m.length;return!!b&&Lt(m,S,0)>-1}function Do(m,S,b){for(var T=-1,N=m==null?0:m.length;++T<N;)if(b(S,m[T]))return!0;return!1}function ee(m,S){for(var b=-1,T=m==null?0:m.length,N=Array(T);++b<T;)N[b]=S(m[b],b,m);return N}function pt(m,S){for(var b=-1,T=S.length,N=m.length;++b<T;)m[N+b]=S[b];return m}function Ro(m,S,b,T){var N=-1,G=m==null?0:m.length;for(T&&G&&(b=m[++N]);++N<G;)b=S(b,m[N],N,m);return b}function Es(m,S,b,T){var N=m==null?0:m.length;for(T&&N&&(b=m[--N]);N--;)b=S(b,m[N],N,m);return b}function Po(m,S){for(var b=-1,T=m==null?0:m.length;++b<T;)if(S(m[b],b,m))return!0;return!1}var Fs=Mo("length");function Ts(m){return m.split("")}function As(m){return m.match(Ol)||[]}function mr(m,S,b){var T;return b(m,function(N,G,le){if(S(N,G,le))return T=G,!1}),T}function An(m,S,b,T){for(var N=m.length,G=b+(T?1:-1);T?G--:++G<N;)if(S(m[G],G,m))return G;return-1}function Lt(m,S,b){return S===S?Us(m,S,b):An(m,gr,b)}function Bs(m,S,b,T){for(var N=b-1,G=m.length;++N<G;)if(T(m[N],S))return N;return-1}function gr(m){return m!==m}function yr(m,S){var b=m==null?0:m.length;return b?Oo(m,S)/b:vn}function Mo(m){return function(S){return S==null?i:S[m]}}function No(m){return function(S){return m==null?i:m[S]}}function hr(m,S,b,T,N){return N(m,function(G,le,J){b=T?(T=!1,G):S(b,G,le,J)}),b}function Ls(m,S){var b=m.length;for(m.sort(S);b--;)m[b]=m[b].value;return m}function Oo(m,S){for(var b,T=-1,N=m.length;++T<N;){var G=S(m[T]);G!==i&&(b=b===i?G:b+G)}return b}function ko(m,S){for(var b=-1,T=Array(m);++b<m;)T[b]=S(b);return T}function Ds(m,S){return ee(S,function(b){return[b,m[b]]})}function br(m){return m&&m.slice(0,Cr(m)+1).replace(_o,"")}function we(m){return function(S){return m(S)}}function Ho(m,S){return ee(S,function(b){return m[b]})}function Qt(m,S){return m.has(S)}function xr(m,S){for(var b=-1,T=m.length;++b<T&&Lt(S,m[b],0)>-1;);return b}function vr(m,S){for(var b=m.length;b--&&Lt(S,m[b],0)>-1;);return b}function Rs(m,S){for(var b=m.length,T=0;b--;)m[b]===S&&++T;return T}var Ps=No(hs),Ms=No(bs);function Ns(m){return"\\"+vs[m]}function Os(m,S){return m==null?i:m[S]}function Dt(m){return fs.test(m)}function ks(m){return ms.test(m)}function Hs(m){for(var S,b=[];!(S=m.next()).done;)b.push(S.value);return b}function zo(m){var S=-1,b=Array(m.size);return m.forEach(function(T,N){b[++S]=[N,T]}),b}function Sr(m,S){return function(b){return m(S(b))}}function ut(m,S){for(var b=-1,T=m.length,N=0,G=[];++b<T;){var le=m[b];(le===S||le===A)&&(m[b]=A,G[N++]=b)}return G}function Bn(m){var S=-1,b=Array(m.size);return m.forEach(function(T){b[++S]=T}),b}function zs(m){var S=-1,b=Array(m.size);return m.forEach(function(T){b[++S]=[T,T]}),b}function Us(m,S,b){for(var T=b-1,N=m.length;++T<N;)if(m[T]===S)return T;return-1}function Ys(m,S,b){for(var T=b+1;T--;)if(m[T]===S)return T;return T}function Rt(m){return Dt(m)?Ws(m):Fs(m)}function ze(m){return Dt(m)?Gs(m):Ts(m)}function Cr(m){for(var S=m.length;S--&&Rl.test(m.charAt(S)););return S}var $s=No(xs);function Ws(m){for(var S=Ao.lastIndex=0;Ao.test(m);)++S;return S}function Gs(m){return m.match(Ao)||[]}function Ks(m){return m.match(ds)||[]}var Vs=function m(S){S=S==null?ue:Pt.defaults(ue.Object(),S,Pt.pick(ue,gs));var b=S.Array,T=S.Date,N=S.Error,G=S.Function,le=S.Math,J=S.Object,Uo=S.RegExp,qs=S.String,De=S.TypeError,Ln=b.prototype,Js=G.prototype,Mt=J.prototype,Dn=S["__core-js_shared__"],Rn=Js.toString,q=Mt.hasOwnProperty,Xs=0,wr=function(){var e=/[^.]+$/.exec(Dn&&Dn.keys&&Dn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Pn=Mt.toString,Zs=Rn.call(J),Qs=ue._,js=Uo("^"+Rn.call(q).replace(wo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mn=ar?S.Buffer:i,ct=S.Symbol,Nn=S.Uint8Array,_r=Mn?Mn.allocUnsafe:i,On=Sr(J.getPrototypeOf,J),Ir=J.create,Er=Mt.propertyIsEnumerable,kn=Ln.splice,Fr=ct?ct.isConcatSpreadable:i,jt=ct?ct.iterator:i,xt=ct?ct.toStringTag:i,Hn=function(){try{var e=_t(J,"defineProperty");return e({},"",{}),e}catch{}}(),ep=S.clearTimeout!==ue.clearTimeout&&S.clearTimeout,tp=T&&T.now!==ue.Date.now&&T.now,np=S.setTimeout!==ue.setTimeout&&S.setTimeout,zn=le.ceil,Un=le.floor,Yo=J.getOwnPropertySymbols,op=Mn?Mn.isBuffer:i,Tr=S.isFinite,ip=Ln.join,rp=Sr(J.keys,J),se=le.max,de=le.min,ap=T.now,lp=S.parseInt,Ar=le.random,sp=Ln.reverse,$o=_t(S,"DataView"),en=_t(S,"Map"),Wo=_t(S,"Promise"),Nt=_t(S,"Set"),tn=_t(S,"WeakMap"),nn=_t(J,"create"),Yn=tn&&new tn,Ot={},pp=It($o),up=It(en),cp=It(Wo),dp=It(Nt),fp=It(tn),$n=ct?ct.prototype:i,on=$n?$n.valueOf:i,Br=$n?$n.toString:i;function s(e){if(oe(e)&&!O(e)&&!(e instanceof $)){if(e instanceof Re)return e;if(q.call(e,"__wrapped__"))return La(e)}return new Re(e)}var kt=function(){function e(){}return function(t){if(!te(t))return{};if(Ir)return Ir(t);e.prototype=t;var o=new e;return e.prototype=i,o}}();function Wn(){}function Re(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}s.templateSettings={escape:Fl,evaluate:Tl,interpolate:Hi,variable:"",imports:{_:s}},s.prototype=Wn.prototype,s.prototype.constructor=s,Re.prototype=kt(Wn.prototype),Re.prototype.constructor=Re;function $(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=We,this.__views__=[]}function mp(){var e=new $(this.__wrapped__);return e.__actions__=he(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=he(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=he(this.__views__),e}function gp(){if(this.__filtered__){var e=new $(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yp(){var e=this.__wrapped__.value(),t=this.__dir__,o=O(e),r=t<0,a=o?e.length:0,p=Tu(0,a,this.__views__),u=p.start,f=p.end,g=f-u,C=r?f:u-1,w=this.__iteratees__,I=w.length,E=0,L=de(g,this.__takeCount__);if(!o||!r&&a==g&&L==g)return ea(e,this.__actions__);var R=[];e:for(;g--&&E<L;){C+=t;for(var H=-1,P=e[C];++H<I;){var Y=w[H],W=Y.iteratee,Ee=Y.type,ye=W(P);if(Ee==bn)P=ye;else if(!ye){if(Ee==Wt)continue e;break e}}R[E++]=P}return R}$.prototype=kt(Wn.prototype),$.prototype.constructor=$;function vt(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function hp(){this.__data__=nn?nn(null):{},this.size=0}function bp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function xp(e){var t=this.__data__;if(nn){var o=t[e];return o===x?i:o}return q.call(t,e)?t[e]:i}function vp(e){var t=this.__data__;return nn?t[e]!==i:q.call(t,e)}function Sp(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=nn&&t===i?x:t,this}vt.prototype.clear=hp,vt.prototype.delete=bp,vt.prototype.get=xp,vt.prototype.has=vp,vt.prototype.set=Sp;function Ze(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function Cp(){this.__data__=[],this.size=0}function wp(e){var t=this.__data__,o=Gn(t,e);if(o<0)return!1;var r=t.length-1;return o==r?t.pop():kn.call(t,o,1),--this.size,!0}function _p(e){var t=this.__data__,o=Gn(t,e);return o<0?i:t[o][1]}function Ip(e){return Gn(this.__data__,e)>-1}function Ep(e,t){var o=this.__data__,r=Gn(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}Ze.prototype.clear=Cp,Ze.prototype.delete=wp,Ze.prototype.get=_p,Ze.prototype.has=Ip,Ze.prototype.set=Ep;function Qe(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}function Fp(){this.size=0,this.__data__={hash:new vt,map:new(en||Ze),string:new vt}}function Tp(e){var t=oo(this,e).delete(e);return this.size-=t?1:0,t}function Ap(e){return oo(this,e).get(e)}function Bp(e){return oo(this,e).has(e)}function Lp(e,t){var o=oo(this,e),r=o.size;return o.set(e,t),this.size+=o.size==r?0:1,this}Qe.prototype.clear=Fp,Qe.prototype.delete=Tp,Qe.prototype.get=Ap,Qe.prototype.has=Bp,Qe.prototype.set=Lp;function St(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Qe;++t<o;)this.add(e[t])}function Dp(e){return this.__data__.set(e,x),this}function Rp(e){return this.__data__.has(e)}St.prototype.add=St.prototype.push=Dp,St.prototype.has=Rp;function Ue(e){var t=this.__data__=new Ze(e);this.size=t.size}function Pp(){this.__data__=new Ze,this.size=0}function Mp(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function Np(e){return this.__data__.get(e)}function Op(e){return this.__data__.has(e)}function kp(e,t){var o=this.__data__;if(o instanceof Ze){var r=o.__data__;if(!en||r.length<y-1)return r.push([e,t]),this.size=++o.size,this;o=this.__data__=new Qe(r)}return o.set(e,t),this.size=o.size,this}Ue.prototype.clear=Pp,Ue.prototype.delete=Mp,Ue.prototype.get=Np,Ue.prototype.has=Op,Ue.prototype.set=kp;function Lr(e,t){var o=O(e),r=!o&&Et(e),a=!o&&!r&&yt(e),p=!o&&!r&&!a&&Yt(e),u=o||r||a||p,f=u?ko(e.length,qs):[],g=f.length;for(var C in e)(t||q.call(e,C))&&!(u&&(C=="length"||a&&(C=="offset"||C=="parent")||p&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||nt(C,g)))&&f.push(C);return f}function Dr(e){var t=e.length;return t?e[ti(0,t-1)]:i}function Hp(e,t){return io(he(e),Ct(t,0,e.length))}function zp(e){return io(he(e))}function Go(e,t,o){(o!==i&&!Ye(e[t],o)||o===i&&!(t in e))&&je(e,t,o)}function rn(e,t,o){var r=e[t];(!(q.call(e,t)&&Ye(r,o))||o===i&&!(t in e))&&je(e,t,o)}function Gn(e,t){for(var o=e.length;o--;)if(Ye(e[o][0],t))return o;return-1}function Up(e,t,o,r){return dt(e,function(a,p,u){t(r,a,o(a),u)}),r}function Rr(e,t){return e&&Ke(t,pe(t),e)}function Yp(e,t){return e&&Ke(t,xe(t),e)}function je(e,t,o){t=="__proto__"&&Hn?Hn(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function Ko(e,t){for(var o=-1,r=t.length,a=b(r),p=e==null;++o<r;)a[o]=p?i:Ei(e,t[o]);return a}function Ct(e,t,o){return e===e&&(o!==i&&(e=e<=o?e:o),t!==i&&(e=e>=t?e:t)),e}function Pe(e,t,o,r,a,p){var u,f=t&B,g=t&U,C=t≠if(o&&(u=a?o(e,r,a,p):o(e)),u!==i)return u;if(!te(e))return e;var w=O(e);if(w){if(u=Bu(e),!f)return he(e,u)}else{var I=fe(e),E=I==wn||I==Mi;if(yt(e))return oa(e,f);if(I==Xe||I==Tt||E&&!a){if(u=g||E?{}:Ca(e),!f)return g?xu(e,Yp(u,e)):bu(e,Rr(u,e))}else{if(!Q[I])return a?e:{};u=Lu(e,I,f)}}p||(p=new Ue);var L=p.get(e);if(L)return L;p.set(e,u),Za(e)?e.forEach(function(P){u.add(Pe(P,t,o,P,e,p))}):Ja(e)&&e.forEach(function(P,Y){u.set(Y,Pe(P,t,o,Y,e,p))});var R=C?g?di:ci:g?xe:pe,H=w?i:R(e);return Le(H||e,function(P,Y){H&&(Y=P,P=e[Y]),rn(u,Y,Pe(P,t,o,Y,e,p))}),u}function $p(e){var t=pe(e);return function(o){return Pr(o,e,t)}}function Pr(e,t,o){var r=o.length;if(e==null)return!r;for(e=J(e);r--;){var a=o[r],p=t[a],u=e[a];if(u===i&&!(a in e)||!p(u))return!1}return!0}function Mr(e,t,o){if(typeof e!="function")throw new De(h);return dn(function(){e.apply(i,o)},t)}function an(e,t,o,r){var a=-1,p=Tn,u=!0,f=e.length,g=[],C=t.length;if(!f)return g;o&&(t=ee(t,we(o))),r?(p=Do,u=!1):t.length>=y&&(p=Qt,u=!1,t=new St(t));e:for(;++a<f;){var w=e[a],I=o==null?w:o(w);if(w=r||w!==0?w:0,u&&I===I){for(var E=C;E--;)if(t[E]===I)continue e;g.push(w)}else p(t,I,r)||g.push(w)}return g}var dt=sa(Ge),Nr=sa(qo,!0);function Wp(e,t){var o=!0;return dt(e,function(r,a,p){return o=!!t(r,a,p),o}),o}function Kn(e,t,o){for(var r=-1,a=e.length;++r<a;){var p=e[r],u=t(p);if(u!=null&&(f===i?u===u&&!Ie(u):o(u,f)))var f=u,g=p}return g}function Gp(e,t,o,r){var a=e.length;for(o=k(o),o<0&&(o=-o>a?0:a+o),r=r===i||r>a?a:k(r),r<0&&(r+=a),r=o>r?0:ja(r);o<r;)e[o++]=t;return e}function Or(e,t){var o=[];return dt(e,function(r,a,p){t(r,a,p)&&o.push(r)}),o}function ce(e,t,o,r,a){var p=-1,u=e.length;for(o||(o=Ru),a||(a=[]);++p<u;){var f=e[p];t>0&&o(f)?t>1?ce(f,t-1,o,r,a):pt(a,f):r||(a[a.length]=f)}return a}var Vo=pa(),kr=pa(!0);function Ge(e,t){return e&&Vo(e,t,pe)}function qo(e,t){return e&&kr(e,t,pe)}function Vn(e,t){return st(t,function(o){return ot(e[o])})}function wt(e,t){t=mt(t,e);for(var o=0,r=t.length;e!=null&&o<r;)e=e[Ve(t[o++])];return o&&o==r?e:i}function Hr(e,t,o){var r=t(e);return O(e)?r:pt(r,o(e))}function me(e){return e==null?e===i?vl:bl:xt&&xt in J(e)?Fu(e):zu(e)}function Jo(e,t){return e>t}function Kp(e,t){return e!=null&&q.call(e,t)}function Vp(e,t){return e!=null&&t in J(e)}function qp(e,t,o){return e>=de(t,o)&&e<se(t,o)}function Xo(e,t,o){for(var r=o?Do:Tn,a=e[0].length,p=e.length,u=p,f=b(p),g=1/0,C=[];u--;){var w=e[u];u&&t&&(w=ee(w,we(t))),g=de(w.length,g),f[u]=!o&&(t||a>=120&&w.length>=120)?new St(u&&w):i}w=e[0];var I=-1,E=f[0];e:for(;++I<a&&C.length<g;){var L=w[I],R=t?t(L):L;if(L=o||L!==0?L:0,!(E?Qt(E,R):r(C,R,o))){for(u=p;--u;){var H=f[u];if(!(H?Qt(H,R):r(e[u],R,o)))continue e}E&&E.push(R),C.push(L)}}return C}function Jp(e,t,o,r){return Ge(e,function(a,p,u){t(r,o(a),p,u)}),r}function ln(e,t,o){t=mt(t,e),e=Ea(e,t);var r=e==null?e:e[Ve(Ne(t))];return r==null?i:Ce(r,e,o)}function zr(e){return oe(e)&&me(e)==Tt}function Xp(e){return oe(e)&&me(e)==Zt}function Zp(e){return oe(e)&&me(e)==Kt}function sn(e,t,o,r,a){return e===t?!0:e==null||t==null||!oe(e)&&!oe(t)?e!==e&&t!==t:Qp(e,t,o,r,sn,a)}function Qp(e,t,o,r,a,p){var u=O(e),f=O(t),g=u?Sn:fe(e),C=f?Sn:fe(t);g=g==Tt?Xe:g,C=C==Tt?Xe:C;var w=g==Xe,I=C==Xe,E=g==C;if(E&&yt(e)){if(!yt(t))return!1;u=!0,w=!1}if(E&&!w)return p||(p=new Ue),u||Yt(e)?xa(e,t,o,r,a,p):Iu(e,t,g,o,r,a,p);if(!(o&X)){var L=w&&q.call(e,"__wrapped__"),R=I&&q.call(t,"__wrapped__");if(L||R){var H=L?e.value():e,P=R?t.value():t;return p||(p=new Ue),a(H,P,o,r,p)}}return E?(p||(p=new Ue),Eu(e,t,o,r,a,p)):!1}function jp(e){return oe(e)&&fe(e)==ke}function Zo(e,t,o,r){var a=o.length,p=a,u=!r;if(e==null)return!p;for(e=J(e);a--;){var f=o[a];if(u&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++a<p;){f=o[a];var g=f[0],C=e[g],w=f[1];if(u&&f[2]){if(C===i&&!(g in e))return!1}else{var I=new Ue;if(r)var E=r(C,w,g,e,t,I);if(!(E===i?sn(w,C,X|K,r,I):E))return!1}}return!0}function Ur(e){if(!te(e)||Mu(e))return!1;var t=ot(e)?js:$l;return t.test(It(e))}function eu(e){return oe(e)&&me(e)==qt}function tu(e){return oe(e)&&fe(e)==He}function nu(e){return oe(e)&&uo(e.length)&&!!j[me(e)]}function Yr(e){return typeof e=="function"?e:e==null?ve:typeof e=="object"?O(e)?Gr(e[0],e[1]):Wr(e):ul(e)}function Qo(e){if(!cn(e))return rp(e);var t=[];for(var o in J(e))q.call(e,o)&&o!="constructor"&&t.push(o);return t}function ou(e){if(!te(e))return Hu(e);var t=cn(e),o=[];for(var r in e)r=="constructor"&&(t||!q.call(e,r))||o.push(r);return o}function jo(e,t){return e<t}function $r(e,t){var o=-1,r=be(e)?b(e.length):[];return dt(e,function(a,p,u){r[++o]=t(a,p,u)}),r}function Wr(e){var t=mi(e);return t.length==1&&t[0][2]?_a(t[0][0],t[0][1]):function(o){return o===e||Zo(o,e,t)}}function Gr(e,t){return yi(e)&&wa(t)?_a(Ve(e),t):function(o){var r=Ei(o,e);return r===i&&r===t?Fi(o,e):sn(t,r,X|K)}}function qn(e,t,o,r,a){e!==t&&Vo(t,function(p,u){if(a||(a=new Ue),te(p))iu(e,t,u,o,qn,r,a);else{var f=r?r(bi(e,u),p,u+"",e,t,a):i;f===i&&(f=p),Go(e,u,f)}},xe)}function iu(e,t,o,r,a,p,u){var f=bi(e,o),g=bi(t,o),C=u.get(g);if(C){Go(e,o,C);return}var w=p?p(f,g,o+"",e,t,u):i,I=w===i;if(I){var E=O(g),L=!E&&yt(g),R=!E&&!L&&Yt(g);w=g,E||L||R?O(f)?w=f:ie(f)?w=he(f):L?(I=!1,w=oa(g,!0)):R?(I=!1,w=ia(g,!0)):w=[]:fn(g)||Et(g)?(w=f,Et(f)?w=el(f):(!te(f)||ot(f))&&(w=Ca(g))):I=!1}I&&(u.set(g,w),a(w,g,r,p,u),u.delete(g)),Go(e,o,w)}function Kr(e,t){var o=e.length;if(!!o)return t+=t<0?o:0,nt(t,o)?e[t]:i}function Vr(e,t,o){t.length?t=ee(t,function(p){return O(p)?function(u){return wt(u,p.length===1?p[0]:p)}:p}):t=[ve];var r=-1;t=ee(t,we(D()));var a=$r(e,function(p,u,f){var g=ee(t,function(C){return C(p)});return{criteria:g,index:++r,value:p}});return Ls(a,function(p,u){return hu(p,u,o)})}function ru(e,t){return qr(e,t,function(o,r){return Fi(e,r)})}function qr(e,t,o){for(var r=-1,a=t.length,p={};++r<a;){var u=t[r],f=wt(e,u);o(f,u)&&pn(p,mt(u,e),f)}return p}function au(e){return function(t){return wt(t,e)}}function ei(e,t,o,r){var a=r?Bs:Lt,p=-1,u=t.length,f=e;for(e===t&&(t=he(t)),o&&(f=ee(e,we(o)));++p<u;)for(var g=0,C=t[p],w=o?o(C):C;(g=a(f,w,g,r))>-1;)f!==e&&kn.call(f,g,1),kn.call(e,g,1);return e}function Jr(e,t){for(var o=e?t.length:0,r=o-1;o--;){var a=t[o];if(o==r||a!==p){var p=a;nt(a)?kn.call(e,a,1):ii(e,a)}}return e}function ti(e,t){return e+Un(Ar()*(t-e+1))}function lu(e,t,o,r){for(var a=-1,p=se(zn((t-e)/(o||1)),0),u=b(p);p--;)u[r?p:++a]=e,e+=o;return u}function ni(e,t){var o="";if(!e||t<1||t>lt)return o;do t%2&&(o+=e),t=Un(t/2),t&&(e+=e);while(t);return o}function z(e,t){return xi(Ia(e,t,ve),e+"")}function su(e){return Dr($t(e))}function pu(e,t){var o=$t(e);return io(o,Ct(t,0,o.length))}function pn(e,t,o,r){if(!te(e))return e;t=mt(t,e);for(var a=-1,p=t.length,u=p-1,f=e;f!=null&&++a<p;){var g=Ve(t[a]),C=o;if(g==="__proto__"||g==="constructor"||g==="prototype")return e;if(a!=u){var w=f[g];C=r?r(w,g,f):i,C===i&&(C=te(w)?w:nt(t[a+1])?[]:{})}rn(f,g,C),f=f[g]}return e}var Xr=Yn?function(e,t){return Yn.set(e,t),e}:ve,uu=Hn?function(e,t){return Hn(e,"toString",{configurable:!0,enumerable:!1,value:Ai(t),writable:!0})}:ve;function cu(e){return io($t(e))}function Me(e,t,o){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),o=o>a?a:o,o<0&&(o+=a),a=t>o?0:o-t>>>0,t>>>=0;for(var p=b(a);++r<a;)p[r]=e[r+t];return p}function du(e,t){var o;return dt(e,function(r,a,p){return o=t(r,a,p),!o}),!!o}function Jn(e,t,o){var r=0,a=e==null?r:e.length;if(typeof t=="number"&&t===t&&a<=ml){for(;r<a;){var p=r+a>>>1,u=e[p];u!==null&&!Ie(u)&&(o?u<=t:u<t)?r=p+1:a=p}return a}return oi(e,t,ve,o)}function oi(e,t,o,r){var a=0,p=e==null?0:e.length;if(p===0)return 0;t=o(t);for(var u=t!==t,f=t===null,g=Ie(t),C=t===i;a<p;){var w=Un((a+p)/2),I=o(e[w]),E=I!==i,L=I===null,R=I===I,H=Ie(I);if(u)var P=r||R;else C?P=R&&(r||E):f?P=R&&E&&(r||!L):g?P=R&&E&&!L&&(r||!H):L||H?P=!1:P=r?I<=t:I<t;P?a=w+1:p=w}return de(p,fl)}function Zr(e,t){for(var o=-1,r=e.length,a=0,p=[];++o<r;){var u=e[o],f=t?t(u):u;if(!o||!Ye(f,g)){var g=f;p[a++]=u===0?0:u}}return p}function Qr(e){return typeof e=="number"?e:Ie(e)?vn:+e}function _e(e){if(typeof e=="string")return e;if(O(e))return ee(e,_e)+"";if(Ie(e))return Br?Br.call(e):"";var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function ft(e,t,o){var r=-1,a=Tn,p=e.length,u=!0,f=[],g=f;if(o)u=!1,a=Do;else if(p>=y){var C=t?null:wu(e);if(C)return Bn(C);u=!1,a=Qt,g=new St}else g=t?[]:f;e:for(;++r<p;){var w=e[r],I=t?t(w):w;if(w=o||w!==0?w:0,u&&I===I){for(var E=g.length;E--;)if(g[E]===I)continue e;t&&g.push(I),f.push(w)}else a(g,I,o)||(g!==f&&g.push(I),f.push(w))}return f}function ii(e,t){return t=mt(t,e),e=Ea(e,t),e==null||delete e[Ve(Ne(t))]}function jr(e,t,o,r){return pn(e,t,o(wt(e,t)),r)}function Xn(e,t,o,r){for(var a=e.length,p=r?a:-1;(r?p--:++p<a)&&t(e[p],p,e););return o?Me(e,r?0:p,r?p+1:a):Me(e,r?p+1:0,r?a:p)}function ea(e,t){var o=e;return o instanceof $&&(o=o.value()),Ro(t,function(r,a){return a.func.apply(a.thisArg,pt([r],a.args))},o)}function ri(e,t,o){var r=e.length;if(r<2)return r?ft(e[0]):[];for(var a=-1,p=b(r);++a<r;)for(var u=e[a],f=-1;++f<r;)f!=a&&(p[a]=an(p[a]||u,e[f],t,o));return ft(ce(p,1),t,o)}function ta(e,t,o){for(var r=-1,a=e.length,p=t.length,u={};++r<a;){var f=r<p?t[r]:i;o(u,e[r],f)}return u}function ai(e){return ie(e)?e:[]}function li(e){return typeof e=="function"?e:ve}function mt(e,t){return O(e)?e:yi(e,t)?[e]:Ba(V(e))}var fu=z;function gt(e,t,o){var r=e.length;return o=o===i?r:o,!t&&o>=r?e:Me(e,t,o)}var na=ep||function(e){return ue.clearTimeout(e)};function oa(e,t){if(t)return e.slice();var o=e.length,r=_r?_r(o):new e.constructor(o);return e.copy(r),r}function si(e){var t=new e.constructor(e.byteLength);return new Nn(t).set(new Nn(e)),t}function mu(e,t){var o=t?si(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.byteLength)}function gu(e){var t=new e.constructor(e.source,zi.exec(e));return t.lastIndex=e.lastIndex,t}function yu(e){return on?J(on.call(e)):{}}function ia(e,t){var o=t?si(e.buffer):e.buffer;return new e.constructor(o,e.byteOffset,e.length)}function ra(e,t){if(e!==t){var o=e!==i,r=e===null,a=e===e,p=Ie(e),u=t!==i,f=t===null,g=t===t,C=Ie(t);if(!f&&!C&&!p&&e>t||p&&u&&g&&!f&&!C||r&&u&&g||!o&&g||!a)return 1;if(!r&&!p&&!C&&e<t||C&&o&&a&&!r&&!p||f&&o&&a||!u&&a||!g)return-1}return 0}function hu(e,t,o){for(var r=-1,a=e.criteria,p=t.criteria,u=a.length,f=o.length;++r<u;){var g=ra(a[r],p[r]);if(g){if(r>=f)return g;var C=o[r];return g*(C=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,o,r){for(var a=-1,p=e.length,u=o.length,f=-1,g=t.length,C=se(p-u,0),w=b(g+C),I=!r;++f<g;)w[f]=t[f];for(;++a<u;)(I||a<p)&&(w[o[a]]=e[a]);for(;C--;)w[f++]=e[a++];return w}function la(e,t,o,r){for(var a=-1,p=e.length,u=-1,f=o.length,g=-1,C=t.length,w=se(p-f,0),I=b(w+C),E=!r;++a<w;)I[a]=e[a];for(var L=a;++g<C;)I[L+g]=t[g];for(;++u<f;)(E||a<p)&&(I[L+o[u]]=e[a++]);return I}function he(e,t){var o=-1,r=e.length;for(t||(t=b(r));++o<r;)t[o]=e[o];return t}function Ke(e,t,o,r){var a=!o;o||(o={});for(var p=-1,u=t.length;++p<u;){var f=t[p],g=r?r(o[f],e[f],f,o,e):i;g===i&&(g=e[f]),a?je(o,f,g):rn(o,f,g)}return o}function bu(e,t){return Ke(e,gi(e),t)}function xu(e,t){return Ke(e,va(e),t)}function Zn(e,t){return function(o,r){var a=O(o)?_s:Up,p=t?t():{};return a(o,e,D(r,2),p)}}function Ht(e){return z(function(t,o){var r=-1,a=o.length,p=a>1?o[a-1]:i,u=a>2?o[2]:i;for(p=e.length>3&&typeof p=="function"?(a--,p):i,u&&ge(o[0],o[1],u)&&(p=a<3?i:p,a=1),t=J(t);++r<a;){var f=o[r];f&&e(t,f,r,p)}return t})}function sa(e,t){return function(o,r){if(o==null)return o;if(!be(o))return e(o,r);for(var a=o.length,p=t?a:-1,u=J(o);(t?p--:++p<a)&&r(u[p],p,u)!==!1;);return o}}function pa(e){return function(t,o,r){for(var a=-1,p=J(t),u=r(t),f=u.length;f--;){var g=u[e?f:++a];if(o(p[g],g,p)===!1)break}return t}}function vu(e,t,o){var r=t&M,a=un(e);function p(){var u=this&&this!==ue&&this instanceof p?a:e;return u.apply(r?o:this,arguments)}return p}function ua(e){return function(t){t=V(t);var o=Dt(t)?ze(t):i,r=o?o[0]:t.charAt(0),a=o?gt(o,1).join(""):t.slice(1);return r[e]()+a}}function zt(e){return function(t){return Ro(sl(ll(t).replace(us,"")),e,"")}}function un(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var o=kt(e.prototype),r=e.apply(o,t);return te(r)?r:o}}function Su(e,t,o){var r=un(e);function a(){for(var p=arguments.length,u=b(p),f=p,g=Ut(a);f--;)u[f]=arguments[f];var C=p<3&&u[0]!==g&&u[p-1]!==g?[]:ut(u,g);if(p-=C.length,p<o)return ga(e,t,Qn,a.placeholder,i,u,C,i,i,o-p);var w=this&&this!==ue&&this instanceof a?r:e;return Ce(w,this,u)}return a}function ca(e){return function(t,o,r){var a=J(t);if(!be(t)){var p=D(o,3);t=pe(t),o=function(f){return p(a[f],f,a)}}var u=e(t,o,r);return u>-1?a[p?t[u]:u]:i}}function da(e){return tt(function(t){var o=t.length,r=o,a=Re.prototype.thru;for(e&&t.reverse();r--;){var p=t[r];if(typeof p!="function")throw new De(h);if(a&&!u&&no(p)=="wrapper")var u=new Re([],!0)}for(r=u?r:o;++r<o;){p=t[r];var f=no(p),g=f=="wrapper"?fi(p):i;g&&hi(g[0])&&g[1]==(Ae|Z|Se|at)&&!g[4].length&&g[9]==1?u=u[no(g[0])].apply(u,g[3]):u=p.length==1&&hi(p)?u[f]():u.thru(p)}return function(){var C=arguments,w=C[0];if(u&&C.length==1&&O(w))return u.plant(w).value();for(var I=0,E=o?t[I].apply(this,C):w;++I<o;)E=t[I].call(this,E);return E}})}function Qn(e,t,o,r,a,p,u,f,g,C){var w=t&Ae,I=t&M,E=t&ae,L=t&(Z|qe),R=t&Ft,H=E?i:un(e);function P(){for(var Y=arguments.length,W=b(Y),Ee=Y;Ee--;)W[Ee]=arguments[Ee];if(L)var ye=Ut(P),Fe=Rs(W,ye);if(r&&(W=aa(W,r,a,L)),p&&(W=la(W,p,u,L)),Y-=Fe,L&&Y<C){var re=ut(W,ye);return ga(e,t,Qn,P.placeholder,o,W,re,f,g,C-Y)}var $e=I?o:this,rt=E?$e[e]:e;return Y=W.length,f?W=Uu(W,f):R&&Y>1&&W.reverse(),w&&g<Y&&(W.length=g),this&&this!==ue&&this instanceof P&&(rt=H||un(rt)),rt.apply($e,W)}return P}function fa(e,t){return function(o,r){return Jp(o,e,t(r),{})}}function jn(e,t){return function(o,r){var a;if(o===i&&r===i)return t;if(o!==i&&(a=o),r!==i){if(a===i)return r;typeof o=="string"||typeof r=="string"?(o=_e(o),r=_e(r)):(o=Qr(o),r=Qr(r)),a=e(o,r)}return a}}function pi(e){return tt(function(t){return t=ee(t,we(D())),z(function(o){var r=this;return e(t,function(a){return Ce(a,r,o)})})})}function eo(e,t){t=t===i?" ":_e(t);var o=t.length;if(o<2)return o?ni(t,e):t;var r=ni(t,zn(e/Rt(t)));return Dt(t)?gt(ze(r),0,e).join(""):r.slice(0,e)}function Cu(e,t,o,r){var a=t&M,p=un(e);function u(){for(var f=-1,g=arguments.length,C=-1,w=r.length,I=b(w+g),E=this&&this!==ue&&this instanceof u?p:e;++C<w;)I[C]=r[C];for(;g--;)I[C++]=arguments[++f];return Ce(E,a?o:this,I)}return u}function ma(e){return function(t,o,r){return r&&typeof r!="number"&&ge(t,o,r)&&(o=r=i),t=it(t),o===i?(o=t,t=0):o=it(o),r=r===i?t<o?1:-1:it(r),lu(t,o,r,e)}}function to(e){return function(t,o){return typeof t=="string"&&typeof o=="string"||(t=Oe(t),o=Oe(o)),e(t,o)}}function ga(e,t,o,r,a,p,u,f,g,C){var w=t&Z,I=w?u:i,E=w?i:u,L=w?p:i,R=w?i:p;t|=w?Se:Je,t&=~(w?Je:Se),t&Te||(t&=~(M|ae));var H=[e,t,a,L,I,R,E,f,g,C],P=o.apply(i,H);return hi(e)&&Fa(P,H),P.placeholder=r,Ta(P,e,t)}function ui(e){var t=le[e];return function(o,r){if(o=Oe(o),r=r==null?0:de(k(r),292),r&&Tr(o)){var a=(V(o)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+r));return a=(V(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-r))}return t(o)}}var wu=Nt&&1/Bn(new Nt([,-0]))[1]==ht?function(e){return new Nt(e)}:Di;function ya(e){return function(t){var o=fe(t);return o==ke?zo(t):o==He?zs(t):Ds(t,e(t))}}function et(e,t,o,r,a,p,u,f){var g=t&ae;if(!g&&typeof e!="function")throw new De(h);var C=r?r.length:0;if(C||(t&=~(Se|Je),r=a=i),u=u===i?u:se(k(u),0),f=f===i?f:k(f),C-=a?a.length:0,t&Je){var w=r,I=a;r=a=i}var E=g?i:fi(e),L=[e,t,o,r,a,w,I,p,u,f];if(E&&ku(L,E),e=L[0],t=L[1],o=L[2],r=L[3],a=L[4],f=L[9]=L[9]===i?g?0:e.length:se(L[9]-C,0),!f&&t&(Z|qe)&&(t&=~(Z|qe)),!t||t==M)var R=vu(e,t,o);else t==Z||t==qe?R=Su(e,t,f):(t==Se||t==(M|Se))&&!a.length?R=Cu(e,t,o,r):R=Qn.apply(i,L);var H=E?Xr:Fa;return Ta(H(R,L),e,t)}function ha(e,t,o,r){return e===i||Ye(e,Mt[o])&&!q.call(r,o)?t:e}function ba(e,t,o,r,a,p){return te(e)&&te(t)&&(p.set(t,e),qn(e,t,i,ba,p),p.delete(t)),e}function _u(e){return fn(e)?i:e}function xa(e,t,o,r,a,p){var u=o&X,f=e.length,g=t.length;if(f!=g&&!(u&&g>f))return!1;var C=p.get(e),w=p.get(t);if(C&&w)return C==t&&w==e;var I=-1,E=!0,L=o&K?new St:i;for(p.set(e,t),p.set(t,e);++I<f;){var R=e[I],H=t[I];if(r)var P=u?r(H,R,I,t,e,p):r(R,H,I,e,t,p);if(P!==i){if(P)continue;E=!1;break}if(L){if(!Po(t,function(Y,W){if(!Qt(L,W)&&(R===Y||a(R,Y,o,r,p)))return L.push(W)})){E=!1;break}}else if(!(R===H||a(R,H,o,r,p))){E=!1;break}}return p.delete(e),p.delete(t),E}function Iu(e,t,o,r,a,p,u){switch(o){case At:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!p(new Nn(e),new Nn(t)));case Gt:case Kt:case Vt:return Ye(+e,+t);case Cn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case ke:var f=zo;case He:var g=r&X;if(f||(f=Bn),e.size!=t.size&&!g)return!1;var C=u.get(e);if(C)return C==t;r|=K,u.set(e,t);var w=xa(f(e),f(t),r,a,p,u);return u.delete(e),w;case _n:if(on)return on.call(e)==on.call(t)}return!1}function Eu(e,t,o,r,a,p){var u=o&X,f=ci(e),g=f.length,C=ci(t),w=C.length;if(g!=w&&!u)return!1;for(var I=g;I--;){var E=f[I];if(!(u?E in t:q.call(t,E)))return!1}var L=p.get(e),R=p.get(t);if(L&&R)return L==t&&R==e;var H=!0;p.set(e,t),p.set(t,e);for(var P=u;++I<g;){E=f[I];var Y=e[E],W=t[E];if(r)var Ee=u?r(W,Y,E,t,e,p):r(Y,W,E,e,t,p);if(!(Ee===i?Y===W||a(Y,W,o,r,p):Ee)){H=!1;break}P||(P=E=="constructor")}if(H&&!P){var ye=e.constructor,Fe=t.constructor;ye!=Fe&&"constructor"in e&&"constructor"in t&&!(typeof ye=="function"&&ye instanceof ye&&typeof Fe=="function"&&Fe instanceof Fe)&&(H=!1)}return p.delete(e),p.delete(t),H}function tt(e){return xi(Ia(e,i,Pa),e+"")}function ci(e){return Hr(e,pe,gi)}function di(e){return Hr(e,xe,va)}var fi=Yn?function(e){return Yn.get(e)}:Di;function no(e){for(var t=e.name+"",o=Ot[t],r=q.call(Ot,t)?o.length:0;r--;){var a=o[r],p=a.func;if(p==null||p==e)return a.name}return t}function Ut(e){var t=q.call(s,"placeholder")?s:e;return t.placeholder}function D(){var e=s.iteratee||Bi;return e=e===Bi?Yr:e,arguments.length?e(arguments[0],arguments[1]):e}function oo(e,t){var o=e.__data__;return Pu(t)?o[typeof t=="string"?"string":"hash"]:o.map}function mi(e){for(var t=pe(e),o=t.length;o--;){var r=t[o],a=e[r];t[o]=[r,a,wa(a)]}return t}function _t(e,t){var o=Os(e,t);return Ur(o)?o:i}function Fu(e){var t=q.call(e,xt),o=e[xt];try{e[xt]=i;var r=!0}catch{}var a=Pn.call(e);return r&&(t?e[xt]=o:delete e[xt]),a}var gi=Yo?function(e){return e==null?[]:(e=J(e),st(Yo(e),function(t){return Er.call(e,t)}))}:Ri,va=Yo?function(e){for(var t=[];e;)pt(t,gi(e)),e=On(e);return t}:Ri,fe=me;($o&&fe(new $o(new ArrayBuffer(1)))!=At||en&&fe(new en)!=ke||Wo&&fe(Wo.resolve())!=Ni||Nt&&fe(new Nt)!=He||tn&&fe(new tn)!=Xt)&&(fe=function(e){var t=me(e),o=t==Xe?e.constructor:i,r=o?It(o):"";if(r)switch(r){case pp:return At;case up:return ke;case cp:return Ni;case dp:return He;case fp:return Xt}return t});function Tu(e,t,o){for(var r=-1,a=o.length;++r<a;){var p=o[r],u=p.size;switch(p.type){case"drop":e+=u;break;case"dropRight":t-=u;break;case"take":t=de(t,e+u);break;case"takeRight":e=se(e,t-u);break}}return{start:e,end:t}}function Au(e){var t=e.match(Ml);return t?t[1].split(Nl):[]}function Sa(e,t,o){t=mt(t,e);for(var r=-1,a=t.length,p=!1;++r<a;){var u=Ve(t[r]);if(!(p=e!=null&&o(e,u)))break;e=e[u]}return p||++r!=a?p:(a=e==null?0:e.length,!!a&&uo(a)&&nt(u,a)&&(O(e)||Et(e)))}function Bu(e){var t=e.length,o=new e.constructor(t);return t&&typeof e[0]=="string"&&q.call(e,"index")&&(o.index=e.index,o.input=e.input),o}function Ca(e){return typeof e.constructor=="function"&&!cn(e)?kt(On(e)):{}}function Lu(e,t,o){var r=e.constructor;switch(t){case Zt:return si(e);case Gt:case Kt:return new r(+e);case At:return mu(e,o);case mo:case go:case yo:case ho:case bo:case xo:case vo:case So:case Co:return ia(e,o);case ke:return new r;case Vt:case Jt:return new r(e);case qt:return gu(e);case He:return new r;case _n:return yu(e)}}function Du(e,t){var o=t.length;if(!o)return e;var r=o-1;return t[r]=(o>1?"& ":"")+t[r],t=t.join(o>2?", ":" "),e.replace(Pl,`{
|
|
9
9
|
/* [wrapped with `+t+`] */
|
|
10
|
-
`)}function Ru(e){return O(e)||Et(e)||!!(Fr&&e&&e[Fr])}function nt(e,t){var o=typeof e;return t=t==null?lt:t,!!t&&(o=="number"||o!="symbol"&&Gl.test(e))&&e>-1&&e%1==0&&e<t}function ge(e,t,o){if(!te(o))return!1;var r=typeof t;return(r=="number"?be(o)&&nt(t,o.length):r=="string"&&t in o)?$e(o[t],e):!1}function yi(e,t){if(O(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Ie(e)?!0:Bl.test(e)||!Al.test(e)||t!=null&&e in J(t)}function Pu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function hi(e){var t=no(e),o=s[t];if(typeof o!="function"||!(t in W.prototype))return!1;if(e===o)return!0;var r=fi(o);return!!r&&e===r[0]}function Nu(e){return!!wr&&wr in e}var Mu=Dn?ot:Pi;function cn(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Nt;return e===o}function wa(e){return e===e&&!te(e)}function _a(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==i||e in J(o))}}function Ou(e){var t=so(e,function(r){return o.size===F&&o.clear(),r}),o=t.cache;return t}function ku(e,t){var o=e[1],r=t[1],a=o|r,p=a<(N|ae|Ae),u=r==Ae&&o==Z||r==Ae&&o==at&&e[7].length<=t[8]||r==(Ae|at)&&t[7].length<=t[8]&&o==Z;if(!(p||u))return e;r&N&&(e[2]=t[2],a|=o&N?0:Te);var f=t[3];if(f){var g=e[3];e[3]=g?aa(g,f,t[4]):f,e[4]=g?ut(e[3],A):t[4]}return f=t[5],f&&(g=e[5],e[5]=g?la(g,f,t[6]):f,e[6]=g?ut(e[5],A):t[6]),f=t[7],f&&(e[7]=f),r&Ae&&(e[8]=e[8]==null?t[8]:de(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Hu(e){var t=[];if(e!=null)for(var o in J(e))t.push(o);return t}function zu(e){return Pn.call(e)}function Ia(e,t,o){return t=se(t===i?e.length-1:t,0),function(){for(var r=arguments,a=-1,p=se(r.length-t,0),u=b(p);++a<p;)u[a]=r[t+a];a=-1;for(var f=b(t+1);++a<t;)f[a]=r[a];return f[t]=o(u),Ce(e,this,f)}}function Ea(e,t){return t.length<2?e:wt(e,Ne(t,0,-1))}function Uu(e,t){for(var o=e.length,r=de(t.length,o),a=he(e);r--;){var p=t[r];e[r]=nt(p,o)?a[p]:i}return e}function bi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Fa=Aa(Xr),dn=np||function(e,t){return ue.setTimeout(e,t)},xi=Aa(uu);function Ta(e,t,o){var r=t+"";return xi(e,Du(r,$u(Au(r),o)))}function Aa(e){var t=0,o=0;return function(){var r=ap(),a=hn-(r-o);if(o=r,a>0){if(++t>=yn)return arguments[0]}else t=0;return e.apply(i,arguments)}}function io(e,t){var o=-1,r=e.length,a=r-1;for(t=t===i?r:t;++o<t;){var p=ti(o,a),u=e[p];e[p]=e[o],e[o]=u}return e.length=t,e}var Ba=Ou(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ll,function(o,r,a,p){t.push(a?p.replace(Hl,"$1"):r||o)}),t});function Ve(e){if(typeof e=="string"||Ie(e))return e;var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function It(e){if(e!=null){try{return Rn.call(e)}catch{}try{return e+""}catch{}}return""}function $u(e,t){return Le(gl,function(o){var r="_."+o[0];t&o[1]&&!Tn(e,r)&&e.push(r)}),e.sort()}function La(e){if(e instanceof W)return e.clone();var t=new Re(e.__wrapped__,e.__chain__);return t.__actions__=he(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Wu(e,t,o){(o?ge(e,t,o):t===i)?t=1:t=se(k(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var a=0,p=0,u=b(zn(r/t));a<r;)u[p++]=Ne(e,a,a+=t);return u}function Yu(e){for(var t=-1,o=e==null?0:e.length,r=0,a=[];++t<o;){var p=e[t];p&&(a[r++]=p)}return a}function Gu(){var e=arguments.length;if(!e)return[];for(var t=b(e-1),o=arguments[0],r=e;r--;)t[r-1]=arguments[r];return pt(O(o)?he(o):[o],ce(t,1))}var Ku=z(function(e,t){return ie(e)?an(e,ce(t,1,ie,!0)):[]}),Vu=z(function(e,t){var o=Me(t);return ie(o)&&(o=i),ie(e)?an(e,ce(t,1,ie,!0),D(o,2)):[]}),qu=z(function(e,t){var o=Me(t);return ie(o)&&(o=i),ie(e)?an(e,ce(t,1,ie,!0),i,o):[]});function Ju(e,t,o){var r=e==null?0:e.length;return r?(t=o||t===i?1:k(t),Ne(e,t<0?0:t,r)):[]}function Xu(e,t,o){var r=e==null?0:e.length;return r?(t=o||t===i?1:k(t),t=r-t,Ne(e,0,t<0?0:t)):[]}function Zu(e,t){return e&&e.length?Xn(e,D(t,3),!0,!0):[]}function Qu(e,t){return e&&e.length?Xn(e,D(t,3),!0):[]}function ju(e,t,o,r){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&ge(e,t,o)&&(o=0,r=a),Gp(e,t,o,r)):[]}function Da(e,t,o){var r=e==null?0:e.length;if(!r)return-1;var a=o==null?0:k(o);return a<0&&(a=se(r+a,0)),An(e,D(t,3),a)}function Ra(e,t,o){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return o!==i&&(a=k(o),a=o<0?se(r+a,0):de(a,r-1)),An(e,D(t,3),a,!0)}function Pa(e){var t=e==null?0:e.length;return t?ce(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?ce(e,ht):[]}function tc(e,t){var o=e==null?0:e.length;return o?(t=t===i?1:k(t),ce(e,t)):[]}function nc(e){for(var t=-1,o=e==null?0:e.length,r={};++t<o;){var a=e[t];r[a[0]]=a[1]}return r}function Na(e){return e&&e.length?e[0]:i}function oc(e,t,o){var r=e==null?0:e.length;if(!r)return-1;var a=o==null?0:k(o);return a<0&&(a=se(r+a,0)),Lt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Ne(e,0,-1):[]}var rc=z(function(e){var t=ee(e,ai);return t.length&&t[0]===e[0]?Xo(t):[]}),ac=z(function(e){var t=Me(e),o=ee(e,ai);return t===Me(o)?t=i:o.pop(),o.length&&o[0]===e[0]?Xo(o,D(t,2)):[]}),lc=z(function(e){var t=Me(e),o=ee(e,ai);return t=typeof t=="function"?t:i,t&&o.pop(),o.length&&o[0]===e[0]?Xo(o,i,t):[]});function sc(e,t){return e==null?"":ip.call(e,t)}function Me(e){var t=e==null?0:e.length;return t?e[t-1]:i}function pc(e,t,o){var r=e==null?0:e.length;if(!r)return-1;var a=r;return o!==i&&(a=k(o),a=a<0?se(r+a,0):de(a,r-1)),t===t?$s(e,t,a):An(e,gr,a,!0)}function uc(e,t){return e&&e.length?Kr(e,k(t)):i}var cc=z(Ma);function Ma(e,t){return e&&e.length&&t&&t.length?ei(e,t):e}function dc(e,t,o){return e&&e.length&&t&&t.length?ei(e,t,D(o,2)):e}function fc(e,t,o){return e&&e.length&&t&&t.length?ei(e,t,i,o):e}var mc=tt(function(e,t){var o=e==null?0:e.length,r=Ko(e,t);return Jr(e,ee(t,function(a){return nt(a,o)?+a:a}).sort(ra)),r});function gc(e,t){var o=[];if(!(e&&e.length))return o;var r=-1,a=[],p=e.length;for(t=D(t,3);++r<p;){var u=e[r];t(u,r,e)&&(o.push(u),a.push(r))}return Jr(e,a),o}function vi(e){return e==null?e:sp.call(e)}function yc(e,t,o){var r=e==null?0:e.length;return r?(o&&typeof o!="number"&&ge(e,t,o)?(t=0,o=r):(t=t==null?0:k(t),o=o===i?r:k(o)),Ne(e,t,o)):[]}function hc(e,t){return Jn(e,t)}function bc(e,t,o){return oi(e,t,D(o,2))}function xc(e,t){var o=e==null?0:e.length;if(o){var r=Jn(e,t);if(r<o&&$e(e[r],t))return r}return-1}function vc(e,t){return Jn(e,t,!0)}function Sc(e,t,o){return oi(e,t,D(o,2),!0)}function Cc(e,t){var o=e==null?0:e.length;if(o){var r=Jn(e,t,!0)-1;if($e(e[r],t))return r}return-1}function wc(e){return e&&e.length?Zr(e):[]}function _c(e,t){return e&&e.length?Zr(e,D(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Ne(e,1,t):[]}function Ec(e,t,o){return e&&e.length?(t=o||t===i?1:k(t),Ne(e,0,t<0?0:t)):[]}function Fc(e,t,o){var r=e==null?0:e.length;return r?(t=o||t===i?1:k(t),t=r-t,Ne(e,t<0?0:t,r)):[]}function Tc(e,t){return e&&e.length?Xn(e,D(t,3),!1,!0):[]}function Ac(e,t){return e&&e.length?Xn(e,D(t,3)):[]}var Bc=z(function(e){return ft(ce(e,1,ie,!0))}),Lc=z(function(e){var t=Me(e);return ie(t)&&(t=i),ft(ce(e,1,ie,!0),D(t,2))}),Dc=z(function(e){var t=Me(e);return t=typeof t=="function"?t:i,ft(ce(e,1,ie,!0),i,t)});function Rc(e){return e&&e.length?ft(e):[]}function Pc(e,t){return e&&e.length?ft(e,D(t,2)):[]}function Nc(e,t){return t=typeof t=="function"?t:i,e&&e.length?ft(e,i,t):[]}function Si(e){if(!(e&&e.length))return[];var t=0;return e=st(e,function(o){if(ie(o))return t=se(o.length,t),!0}),ko(t,function(o){return ee(e,No(o))})}function Oa(e,t){if(!(e&&e.length))return[];var o=Si(e);return t==null?o:ee(o,function(r){return Ce(t,i,r)})}var Mc=z(function(e,t){return ie(e)?an(e,t):[]}),Oc=z(function(e){return ri(st(e,ie))}),kc=z(function(e){var t=Me(e);return ie(t)&&(t=i),ri(st(e,ie),D(t,2))}),Hc=z(function(e){var t=Me(e);return t=typeof t=="function"?t:i,ri(st(e,ie),i,t)}),zc=z(Si);function Uc(e,t){return ta(e||[],t||[],rn)}function $c(e,t){return ta(e||[],t||[],pn)}var Wc=z(function(e){var t=e.length,o=t>1?e[t-1]:i;return o=typeof o=="function"?(e.pop(),o):i,Oa(e,o)});function ka(e){var t=s(e);return t.__chain__=!0,t}function Yc(e,t){return t(e),e}function ro(e,t){return t(e)}var Gc=tt(function(e){var t=e.length,o=t?e[0]:0,r=this.__wrapped__,a=function(p){return Ko(p,e)};return t>1||this.__actions__.length||!(r instanceof W)||!nt(o)?this.thru(a):(r=r.slice(o,+o+(t?1:0)),r.__actions__.push({func:ro,args:[a],thisArg:i}),new Re(r,this.__chain__).thru(function(p){return t&&!p.length&&p.push(i),p}))});function Kc(){return ka(this)}function Vc(){return new Re(this.value(),this.__chain__)}function qc(){this.__values__===i&&(this.__values__=Qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,o=this;o instanceof Yn;){var r=La(o);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;o=o.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof W){var t=e;return this.__actions__.length&&(t=new W(this)),t=t.reverse(),t.__actions__.push({func:ro,args:[vi],thisArg:i}),new Re(t,this.__chain__)}return this.thru(vi)}function Qc(){return ea(this.__wrapped__,this.__actions__)}var jc=Zn(function(e,t,o){q.call(e,o)?++e[o]:je(e,o,1)});function ed(e,t,o){var r=O(e)?fr:Yp;return o&&ge(e,t,o)&&(t=i),r(e,D(t,3))}function td(e,t){var o=O(e)?st:Or;return o(e,D(t,3))}var nd=ca(Da),od=ca(Ra);function id(e,t){return ce(ao(e,t),1)}function rd(e,t){return ce(ao(e,t),ht)}function ad(e,t,o){return o=o===i?1:k(o),ce(ao(e,t),o)}function Ha(e,t){var o=O(e)?Le:dt;return o(e,D(t,3))}function za(e,t){var o=O(e)?Is:Mr;return o(e,D(t,3))}var ld=Zn(function(e,t,o){q.call(e,o)?e[o].push(t):je(e,o,[t])});function sd(e,t,o,r){e=be(e)?e:Wt(e),o=o&&!r?k(o):0;var a=e.length;return o<0&&(o=se(a+o,0)),co(e)?o<=a&&e.indexOf(t,o)>-1:!!a&&Lt(e,t,o)>-1}var pd=z(function(e,t,o){var r=-1,a=typeof t=="function",p=be(e)?b(e.length):[];return dt(e,function(u){p[++r]=a?Ce(t,u,o):ln(u,t,o)}),p}),ud=Zn(function(e,t,o){je(e,o,t)});function ao(e,t){var o=O(e)?ee:Wr;return o(e,D(t,3))}function cd(e,t,o,r){return e==null?[]:(O(t)||(t=t==null?[]:[t]),o=r?i:o,O(o)||(o=o==null?[]:[o]),Vr(e,t,o))}var dd=Zn(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function fd(e,t,o){var r=O(e)?Ro:hr,a=arguments.length<3;return r(e,D(t,4),o,a,dt)}function md(e,t,o){var r=O(e)?Es:hr,a=arguments.length<3;return r(e,D(t,4),o,a,Mr)}function gd(e,t){var o=O(e)?st:Or;return o(e,po(D(t,3)))}function yd(e){var t=O(e)?Dr:su;return t(e)}function hd(e,t,o){(o?ge(e,t,o):t===i)?t=1:t=k(t);var r=O(e)?Hp:pu;return r(e,t)}function bd(e){var t=O(e)?zp:cu;return t(e)}function xd(e){if(e==null)return 0;if(be(e))return co(e)?Rt(e):e.length;var t=fe(e);return t==ke||t==He?e.size:Qo(e).length}function vd(e,t,o){var r=O(e)?Po:du;return o&&ge(e,t,o)&&(t=i),r(e,D(t,3))}var Sd=z(function(e,t){if(e==null)return[];var o=t.length;return o>1&&ge(e,t[0],t[1])?t=[]:o>2&&ge(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,ce(t,1),[])}),lo=tp||function(){return ue.Date.now()};function Cd(e,t){if(typeof t!="function")throw new De(h);return e=k(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ua(e,t,o){return t=o?i:t,t=e&&t==null?e.length:t,et(e,Ae,i,i,i,i,t)}function $a(e,t){var o;if(typeof t!="function")throw new De(h);return e=k(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=i),o}}var Ci=z(function(e,t,o){var r=N;if(o.length){var a=ut(o,Ut(Ci));r|=Se}return et(e,r,t,o,a)}),Wa=z(function(e,t,o){var r=N|ae;if(o.length){var a=ut(o,Ut(Wa));r|=Se}return et(t,r,e,o,a)});function Ya(e,t,o){t=o?i:t;var r=et(e,Z,i,i,i,i,i,t);return r.placeholder=Ya.placeholder,r}function Ga(e,t,o){t=o?i:t;var r=et(e,qe,i,i,i,i,i,t);return r.placeholder=Ga.placeholder,r}function Ka(e,t,o){var r,a,p,u,f,g,C=0,w=!1,I=!1,E=!0;if(typeof e!="function")throw new De(h);t=Oe(t)||0,te(o)&&(w=!!o.leading,I="maxWait"in o,p=I?se(Oe(o.maxWait)||0,t):p,E="trailing"in o?!!o.trailing:E);function L(re){var We=r,rt=a;return r=a=i,C=re,u=e.apply(rt,We),u}function R(re){return C=re,f=dn($,t),w?L(re):u}function H(re){var We=re-g,rt=re-C,cl=t-We;return I?de(cl,p-rt):cl}function P(re){var We=re-g,rt=re-C;return g===i||We>=t||We<0||I&&rt>=p}function $(){var re=lo();if(P(re))return Y(re);f=dn($,H(re))}function Y(re){return f=i,E&&r?L(re):(r=a=i,u)}function Ee(){f!==i&&na(f),C=0,r=g=a=f=i}function ye(){return f===i?u:Y(lo())}function Fe(){var re=lo(),We=P(re);if(r=arguments,a=this,g=re,We){if(f===i)return R(g);if(I)return na(f),f=dn($,t),L(g)}return f===i&&(f=dn($,t)),u}return Fe.cancel=Ee,Fe.flush=ye,Fe}var wd=z(function(e,t){return Nr(e,1,t)}),_d=z(function(e,t,o){return Nr(e,Oe(t)||0,o)});function Id(e){return et(e,Ft)}function so(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new De(h);var o=function(){var r=arguments,a=t?t.apply(this,r):r[0],p=o.cache;if(p.has(a))return p.get(a);var u=e.apply(this,r);return o.cache=p.set(a,u)||p,u};return o.cache=new(so.Cache||Qe),o}so.Cache=Qe;function po(e){if(typeof e!="function")throw new De(h);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ed(e){return $a(2,e)}var Fd=fu(function(e,t){t=t.length==1&&O(t[0])?ee(t[0],we(D())):ee(ce(t,1),we(D()));var o=t.length;return z(function(r){for(var a=-1,p=de(r.length,o);++a<p;)r[a]=t[a].call(this,r[a]);return Ce(e,this,r)})}),wi=z(function(e,t){var o=ut(t,Ut(wi));return et(e,Se,i,t,o)}),Va=z(function(e,t){var o=ut(t,Ut(Va));return et(e,Je,i,t,o)}),Td=tt(function(e,t){return et(e,at,i,i,i,t)});function Ad(e,t){if(typeof e!="function")throw new De(h);return t=t===i?t:k(t),z(e,t)}function Bd(e,t){if(typeof e!="function")throw new De(h);return t=t==null?0:se(k(t),0),z(function(o){var r=o[t],a=gt(o,0,t);return r&&pt(a,r),Ce(e,this,a)})}function Ld(e,t,o){var r=!0,a=!0;if(typeof e!="function")throw new De(h);return te(o)&&(r="leading"in o?!!o.leading:r,a="trailing"in o?!!o.trailing:a),Ka(e,t,{leading:r,maxWait:t,trailing:a})}function Dd(e){return Ua(e,1)}function Rd(e,t){return wi(li(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return O(e)?e:[e]}function Nd(e){return Pe(e,ne)}function Md(e,t){return t=typeof t=="function"?t:i,Pe(e,ne,t)}function Od(e){return Pe(e,B|ne)}function kd(e,t){return t=typeof t=="function"?t:i,Pe(e,B|ne,t)}function Hd(e,t){return t==null||Pr(e,t,pe(t))}function $e(e,t){return e===t||e!==e&&t!==t}var zd=to(Jo),Ud=to(function(e,t){return e>=t}),Et=zr(function(){return arguments}())?zr:function(e){return oe(e)&&q.call(e,"callee")&&!Er.call(e,"callee")},O=b.isArray,$d=lr?we(lr):Xp;function be(e){return e!=null&&uo(e.length)&&!ot(e)}function ie(e){return oe(e)&&be(e)}function Wd(e){return e===!0||e===!1||oe(e)&&me(e)==Gt}var yt=op||Pi,Yd=sr?we(sr):Zp;function Gd(e){return oe(e)&&e.nodeType===1&&!fn(e)}function Kd(e){if(e==null)return!0;if(be(e)&&(O(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||$t(e)||Et(e)))return!e.length;var t=fe(e);if(t==ke||t==He)return!e.size;if(cn(e))return!Qo(e).length;for(var o in e)if(q.call(e,o))return!1;return!0}function Vd(e,t){return sn(e,t)}function qd(e,t,o){o=typeof o=="function"?o:i;var r=o?o(e,t):i;return r===i?sn(e,t,i,o):!!r}function _i(e){if(!oe(e))return!1;var t=me(e);return t==Cn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Jd(e){return typeof e=="number"&&Tr(e)}function ot(e){if(!te(e))return!1;var t=me(e);return t==wn||t==Ni||t==yl||t==xl}function qa(e){return typeof e=="number"&&e==k(e)}function uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lt}function te(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function oe(e){return e!=null&&typeof e=="object"}var Ja=pr?we(pr):jp;function Xd(e,t){return e===t||Zo(e,t,mi(t))}function Zd(e,t,o){return o=typeof o=="function"?o:i,Zo(e,t,mi(t),o)}function Qd(e){return Xa(e)&&e!=+e}function jd(e){if(Mu(e))throw new M(c);return Ur(e)}function ef(e){return e===null}function tf(e){return e==null}function Xa(e){return typeof e=="number"||oe(e)&&me(e)==Vt}function fn(e){if(!oe(e)||me(e)!=Xe)return!1;var t=On(e);if(t===null)return!0;var o=q.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Rn.call(o)==Zs}var Ii=ur?we(ur):eu;function nf(e){return qa(e)&&e>=-lt&&e<=lt}var Za=cr?we(cr):tu;function co(e){return typeof e=="string"||!O(e)&&oe(e)&&me(e)==Jt}function Ie(e){return typeof e=="symbol"||oe(e)&&me(e)==_n}var $t=dr?we(dr):nu;function of(e){return e===i}function rf(e){return oe(e)&&fe(e)==Xt}function af(e){return oe(e)&&me(e)==Sl}var lf=to(jo),sf=to(function(e,t){return e<=t});function Qa(e){if(!e)return[];if(be(e))return co(e)?ze(e):he(e);if(jt&&e[jt])return Hs(e[jt]());var t=fe(e),o=t==ke?zo:t==He?Bn:Wt;return o(e)}function it(e){if(!e)return e===0?e:0;if(e=Oe(e),e===ht||e===-ht){var t=e<0?-1:1;return t*dl}return e===e?e:0}function k(e){var t=it(e),o=t%1;return t===t?o?t-o:t:0}function ja(e){return e?Ct(k(e),0,Ye):0}function Oe(e){if(typeof e=="number")return e;if(Ie(e))return vn;if(te(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=te(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=br(e);var o=$l.test(e);return o||Yl.test(e)?Cs(e.slice(2),o?2:8):Ul.test(e)?vn:+e}function el(e){return Ke(e,xe(e))}function pf(e){return e?Ct(k(e),-lt,lt):e===0?e:0}function V(e){return e==null?"":_e(e)}var uf=Ht(function(e,t){if(cn(t)||be(t)){Ke(t,pe(t),e);return}for(var o in t)q.call(t,o)&&rn(e,o,t[o])}),tl=Ht(function(e,t){Ke(t,xe(t),e)}),fo=Ht(function(e,t,o,r){Ke(t,xe(t),e,r)}),cf=Ht(function(e,t,o,r){Ke(t,pe(t),e,r)}),df=tt(Ko);function ff(e,t){var o=kt(e);return t==null?o:Rr(o,t)}var mf=z(function(e,t){e=J(e);var o=-1,r=t.length,a=r>2?t[2]:i;for(a&&ge(t[0],t[1],a)&&(r=1);++o<r;)for(var p=t[o],u=xe(p),f=-1,g=u.length;++f<g;){var C=u[f],w=e[C];(w===i||$e(w,Nt[C])&&!q.call(e,C))&&(e[C]=p[C])}return e}),gf=z(function(e){return e.push(i,ba),Ce(nl,i,e)});function yf(e,t){return mr(e,D(t,3),Ge)}function hf(e,t){return mr(e,D(t,3),qo)}function bf(e,t){return e==null?e:Vo(e,D(t,3),xe)}function xf(e,t){return e==null?e:kr(e,D(t,3),xe)}function vf(e,t){return e&&Ge(e,D(t,3))}function Sf(e,t){return e&&qo(e,D(t,3))}function Cf(e){return e==null?[]:Vn(e,pe(e))}function wf(e){return e==null?[]:Vn(e,xe(e))}function Ei(e,t,o){var r=e==null?i:wt(e,t);return r===i?o:r}function _f(e,t){return e!=null&&Sa(e,t,Kp)}function Fi(e,t){return e!=null&&Sa(e,t,Vp)}var If=fa(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Pn.call(t)),e[t]=o},Ai(ve)),Ef=fa(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Pn.call(t)),q.call(e,t)?e[t].push(o):e[t]=[o]},D),Ff=z(ln);function pe(e){return be(e)?Lr(e):Qo(e)}function xe(e){return be(e)?Lr(e,!0):ou(e)}function Tf(e,t){var o={};return t=D(t,3),Ge(e,function(r,a,p){je(o,t(r,a,p),r)}),o}function Af(e,t){var o={};return t=D(t,3),Ge(e,function(r,a,p){je(o,a,t(r,a,p))}),o}var Bf=Ht(function(e,t,o){qn(e,t,o)}),nl=Ht(function(e,t,o,r){qn(e,t,o,r)}),Lf=tt(function(e,t){var o={};if(e==null)return o;var r=!1;t=ee(t,function(p){return p=mt(p,e),r||(r=p.length>1),p}),Ke(e,di(e),o),r&&(o=Pe(o,B|U|ne,_u));for(var a=t.length;a--;)ii(o,t[a]);return o});function Df(e,t){return ol(e,po(D(t)))}var Rf=tt(function(e,t){return e==null?{}:ru(e,t)});function ol(e,t){if(e==null)return{};var o=ee(di(e),function(r){return[r]});return t=D(t),qr(e,o,function(r,a){return t(r,a[0])})}function Pf(e,t,o){t=mt(t,e);var r=-1,a=t.length;for(a||(a=1,e=i);++r<a;){var p=e==null?i:e[Ve(t[r])];p===i&&(r=a,p=o),e=ot(p)?p.call(e):p}return e}function Nf(e,t,o){return e==null?e:pn(e,t,o)}function Mf(e,t,o,r){return r=typeof r=="function"?r:i,e==null?e:pn(e,t,o,r)}var il=ya(pe),rl=ya(xe);function Of(e,t,o){var r=O(e),a=r||yt(e)||$t(e);if(t=D(t,4),o==null){var p=e&&e.constructor;a?o=r?new p:[]:te(e)?o=ot(p)?kt(On(e)):{}:o={}}return(a?Le:Ge)(e,function(u,f,g){return t(o,u,f,g)}),o}function kf(e,t){return e==null?!0:ii(e,t)}function Hf(e,t,o){return e==null?e:jr(e,t,li(o))}function zf(e,t,o,r){return r=typeof r=="function"?r:i,e==null?e:jr(e,t,li(o),r)}function Wt(e){return e==null?[]:Ho(e,pe(e))}function Uf(e){return e==null?[]:Ho(e,xe(e))}function $f(e,t,o){return o===i&&(o=t,t=i),o!==i&&(o=Oe(o),o=o===o?o:0),t!==i&&(t=Oe(t),t=t===t?t:0),Ct(Oe(e),t,o)}function Wf(e,t,o){return t=it(t),o===i?(o=t,t=0):o=it(o),e=Oe(e),qp(e,t,o)}function Yf(e,t,o){if(o&&typeof o!="boolean"&&ge(e,t,o)&&(t=o=i),o===i&&(typeof t=="boolean"?(o=t,t=i):typeof e=="boolean"&&(o=e,e=i)),e===i&&t===i?(e=0,t=1):(e=it(e),t===i?(t=e,e=0):t=it(t)),e>t){var r=e;e=t,t=r}if(o||e%1||t%1){var a=Ar();return de(e+a*(t-e+Ss("1e-"+((a+"").length-1))),t)}return ti(e,t)}var Gf=zt(function(e,t,o){return t=t.toLowerCase(),e+(o?al(t):t)});function al(e){return Ti(V(e).toLowerCase())}function ll(e){return e=V(e),e&&e.replace(Kl,Ps).replace(cs,"")}function Kf(e,t,o){e=V(e),t=_e(t);var r=e.length;o=o===i?r:Ct(k(o),0,r);var a=o;return o-=t.length,o>=0&&e.slice(o,a)==t}function Vf(e){return e=V(e),e&&El.test(e)?e.replace(ki,Ns):e}function qf(e){return e=V(e),e&&Dl.test(e)?e.replace(wo,"\\$&"):e}var Jf=zt(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Xf=zt(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),Zf=ua("toLowerCase");function Qf(e,t,o){e=V(e),t=k(t);var r=t?Rt(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return eo(Un(a),o)+e+eo(zn(a),o)}function jf(e,t,o){e=V(e),t=k(t);var r=t?Rt(e):0;return t&&r<t?e+eo(t-r,o):e}function em(e,t,o){e=V(e),t=k(t);var r=t?Rt(e):0;return t&&r<t?eo(t-r,o)+e:e}function tm(e,t,o){return o||t==null?t=0:t&&(t=+t),lp(V(e).replace(_o,""),t||0)}function nm(e,t,o){return(o?ge(e,t,o):t===i)?t=1:t=k(t),ni(V(e),t)}function om(){var e=arguments,t=V(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=zt(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function rm(e,t,o){return o&&typeof o!="number"&&ge(e,t,o)&&(t=o=i),o=o===i?Ye:o>>>0,o?(e=V(e),e&&(typeof t=="string"||t!=null&&!Ii(t))&&(t=_e(t),!t&&Dt(e))?gt(ze(e),0,o):e.split(t,o)):[]}var am=zt(function(e,t,o){return e+(o?" ":"")+Ti(t)});function lm(e,t,o){return e=V(e),o=o==null?0:Ct(k(o),0,e.length),t=_e(t),e.slice(o,o+t.length)==t}function sm(e,t,o){var r=s.templateSettings;o&&ge(e,t,o)&&(t=i),e=V(e),t=fo({},t,r,ha);var a=fo({},t.imports,r.imports,ha),p=pe(a),u=Ho(a,p),f,g,C=0,w=t.interpolate||In,I="__p += '",E=Uo((t.escape||In).source+"|"+w.source+"|"+(w===Hi?zl:In).source+"|"+(t.evaluate||In).source+"|$","g"),L="//# sourceURL="+(q.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
|
|
11
|
-
`;e.replace(E,function(P
|
|
12
|
-
__e(
|
|
10
|
+
`)}function Ru(e){return O(e)||Et(e)||!!(Fr&&e&&e[Fr])}function nt(e,t){var o=typeof e;return t=t==null?lt:t,!!t&&(o=="number"||o!="symbol"&&Gl.test(e))&&e>-1&&e%1==0&&e<t}function ge(e,t,o){if(!te(o))return!1;var r=typeof t;return(r=="number"?be(o)&&nt(t,o.length):r=="string"&&t in o)?Ye(o[t],e):!1}function yi(e,t){if(O(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Ie(e)?!0:Bl.test(e)||!Al.test(e)||t!=null&&e in J(t)}function Pu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function hi(e){var t=no(e),o=s[t];if(typeof o!="function"||!(t in $.prototype))return!1;if(e===o)return!0;var r=fi(o);return!!r&&e===r[0]}function Mu(e){return!!wr&&wr in e}var Nu=Dn?ot:Pi;function cn(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Mt;return e===o}function wa(e){return e===e&&!te(e)}function _a(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==i||e in J(o))}}function Ou(e){var t=so(e,function(r){return o.size===F&&o.clear(),r}),o=t.cache;return t}function ku(e,t){var o=e[1],r=t[1],a=o|r,p=a<(M|ae|Ae),u=r==Ae&&o==Z||r==Ae&&o==at&&e[7].length<=t[8]||r==(Ae|at)&&t[7].length<=t[8]&&o==Z;if(!(p||u))return e;r&M&&(e[2]=t[2],a|=o&M?0:Te);var f=t[3];if(f){var g=e[3];e[3]=g?aa(g,f,t[4]):f,e[4]=g?ut(e[3],A):t[4]}return f=t[5],f&&(g=e[5],e[5]=g?la(g,f,t[6]):f,e[6]=g?ut(e[5],A):t[6]),f=t[7],f&&(e[7]=f),r&Ae&&(e[8]=e[8]==null?t[8]:de(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Hu(e){var t=[];if(e!=null)for(var o in J(e))t.push(o);return t}function zu(e){return Pn.call(e)}function Ia(e,t,o){return t=se(t===i?e.length-1:t,0),function(){for(var r=arguments,a=-1,p=se(r.length-t,0),u=b(p);++a<p;)u[a]=r[t+a];a=-1;for(var f=b(t+1);++a<t;)f[a]=r[a];return f[t]=o(u),Ce(e,this,f)}}function Ea(e,t){return t.length<2?e:wt(e,Me(t,0,-1))}function Uu(e,t){for(var o=e.length,r=de(t.length,o),a=he(e);r--;){var p=t[r];e[r]=nt(p,o)?a[p]:i}return e}function bi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Fa=Aa(Xr),dn=np||function(e,t){return ue.setTimeout(e,t)},xi=Aa(uu);function Ta(e,t,o){var r=t+"";return xi(e,Du(r,Yu(Au(r),o)))}function Aa(e){var t=0,o=0;return function(){var r=ap(),a=hn-(r-o);if(o=r,a>0){if(++t>=yn)return arguments[0]}else t=0;return e.apply(i,arguments)}}function io(e,t){var o=-1,r=e.length,a=r-1;for(t=t===i?r:t;++o<t;){var p=ti(o,a),u=e[p];e[p]=e[o],e[o]=u}return e.length=t,e}var Ba=Ou(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ll,function(o,r,a,p){t.push(a?p.replace(Hl,"$1"):r||o)}),t});function Ve(e){if(typeof e=="string"||Ie(e))return e;var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function It(e){if(e!=null){try{return Rn.call(e)}catch{}try{return e+""}catch{}}return""}function Yu(e,t){return Le(gl,function(o){var r="_."+o[0];t&o[1]&&!Tn(e,r)&&e.push(r)}),e.sort()}function La(e){if(e instanceof $)return e.clone();var t=new Re(e.__wrapped__,e.__chain__);return t.__actions__=he(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function $u(e,t,o){(o?ge(e,t,o):t===i)?t=1:t=se(k(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var a=0,p=0,u=b(zn(r/t));a<r;)u[p++]=Me(e,a,a+=t);return u}function Wu(e){for(var t=-1,o=e==null?0:e.length,r=0,a=[];++t<o;){var p=e[t];p&&(a[r++]=p)}return a}function Gu(){var e=arguments.length;if(!e)return[];for(var t=b(e-1),o=arguments[0],r=e;r--;)t[r-1]=arguments[r];return pt(O(o)?he(o):[o],ce(t,1))}var Ku=z(function(e,t){return ie(e)?an(e,ce(t,1,ie,!0)):[]}),Vu=z(function(e,t){var o=Ne(t);return ie(o)&&(o=i),ie(e)?an(e,ce(t,1,ie,!0),D(o,2)):[]}),qu=z(function(e,t){var o=Ne(t);return ie(o)&&(o=i),ie(e)?an(e,ce(t,1,ie,!0),i,o):[]});function Ju(e,t,o){var r=e==null?0:e.length;return r?(t=o||t===i?1:k(t),Me(e,t<0?0:t,r)):[]}function Xu(e,t,o){var r=e==null?0:e.length;return r?(t=o||t===i?1:k(t),t=r-t,Me(e,0,t<0?0:t)):[]}function Zu(e,t){return e&&e.length?Xn(e,D(t,3),!0,!0):[]}function Qu(e,t){return e&&e.length?Xn(e,D(t,3),!0):[]}function ju(e,t,o,r){var a=e==null?0:e.length;return a?(o&&typeof o!="number"&&ge(e,t,o)&&(o=0,r=a),Gp(e,t,o,r)):[]}function Da(e,t,o){var r=e==null?0:e.length;if(!r)return-1;var a=o==null?0:k(o);return a<0&&(a=se(r+a,0)),An(e,D(t,3),a)}function Ra(e,t,o){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return o!==i&&(a=k(o),a=o<0?se(r+a,0):de(a,r-1)),An(e,D(t,3),a,!0)}function Pa(e){var t=e==null?0:e.length;return t?ce(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?ce(e,ht):[]}function tc(e,t){var o=e==null?0:e.length;return o?(t=t===i?1:k(t),ce(e,t)):[]}function nc(e){for(var t=-1,o=e==null?0:e.length,r={};++t<o;){var a=e[t];r[a[0]]=a[1]}return r}function Ma(e){return e&&e.length?e[0]:i}function oc(e,t,o){var r=e==null?0:e.length;if(!r)return-1;var a=o==null?0:k(o);return a<0&&(a=se(r+a,0)),Lt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Me(e,0,-1):[]}var rc=z(function(e){var t=ee(e,ai);return t.length&&t[0]===e[0]?Xo(t):[]}),ac=z(function(e){var t=Ne(e),o=ee(e,ai);return t===Ne(o)?t=i:o.pop(),o.length&&o[0]===e[0]?Xo(o,D(t,2)):[]}),lc=z(function(e){var t=Ne(e),o=ee(e,ai);return t=typeof t=="function"?t:i,t&&o.pop(),o.length&&o[0]===e[0]?Xo(o,i,t):[]});function sc(e,t){return e==null?"":ip.call(e,t)}function Ne(e){var t=e==null?0:e.length;return t?e[t-1]:i}function pc(e,t,o){var r=e==null?0:e.length;if(!r)return-1;var a=r;return o!==i&&(a=k(o),a=a<0?se(r+a,0):de(a,r-1)),t===t?Ys(e,t,a):An(e,gr,a,!0)}function uc(e,t){return e&&e.length?Kr(e,k(t)):i}var cc=z(Na);function Na(e,t){return e&&e.length&&t&&t.length?ei(e,t):e}function dc(e,t,o){return e&&e.length&&t&&t.length?ei(e,t,D(o,2)):e}function fc(e,t,o){return e&&e.length&&t&&t.length?ei(e,t,i,o):e}var mc=tt(function(e,t){var o=e==null?0:e.length,r=Ko(e,t);return Jr(e,ee(t,function(a){return nt(a,o)?+a:a}).sort(ra)),r});function gc(e,t){var o=[];if(!(e&&e.length))return o;var r=-1,a=[],p=e.length;for(t=D(t,3);++r<p;){var u=e[r];t(u,r,e)&&(o.push(u),a.push(r))}return Jr(e,a),o}function vi(e){return e==null?e:sp.call(e)}function yc(e,t,o){var r=e==null?0:e.length;return r?(o&&typeof o!="number"&&ge(e,t,o)?(t=0,o=r):(t=t==null?0:k(t),o=o===i?r:k(o)),Me(e,t,o)):[]}function hc(e,t){return Jn(e,t)}function bc(e,t,o){return oi(e,t,D(o,2))}function xc(e,t){var o=e==null?0:e.length;if(o){var r=Jn(e,t);if(r<o&&Ye(e[r],t))return r}return-1}function vc(e,t){return Jn(e,t,!0)}function Sc(e,t,o){return oi(e,t,D(o,2),!0)}function Cc(e,t){var o=e==null?0:e.length;if(o){var r=Jn(e,t,!0)-1;if(Ye(e[r],t))return r}return-1}function wc(e){return e&&e.length?Zr(e):[]}function _c(e,t){return e&&e.length?Zr(e,D(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Me(e,1,t):[]}function Ec(e,t,o){return e&&e.length?(t=o||t===i?1:k(t),Me(e,0,t<0?0:t)):[]}function Fc(e,t,o){var r=e==null?0:e.length;return r?(t=o||t===i?1:k(t),t=r-t,Me(e,t<0?0:t,r)):[]}function Tc(e,t){return e&&e.length?Xn(e,D(t,3),!1,!0):[]}function Ac(e,t){return e&&e.length?Xn(e,D(t,3)):[]}var Bc=z(function(e){return ft(ce(e,1,ie,!0))}),Lc=z(function(e){var t=Ne(e);return ie(t)&&(t=i),ft(ce(e,1,ie,!0),D(t,2))}),Dc=z(function(e){var t=Ne(e);return t=typeof t=="function"?t:i,ft(ce(e,1,ie,!0),i,t)});function Rc(e){return e&&e.length?ft(e):[]}function Pc(e,t){return e&&e.length?ft(e,D(t,2)):[]}function Mc(e,t){return t=typeof t=="function"?t:i,e&&e.length?ft(e,i,t):[]}function Si(e){if(!(e&&e.length))return[];var t=0;return e=st(e,function(o){if(ie(o))return t=se(o.length,t),!0}),ko(t,function(o){return ee(e,Mo(o))})}function Oa(e,t){if(!(e&&e.length))return[];var o=Si(e);return t==null?o:ee(o,function(r){return Ce(t,i,r)})}var Nc=z(function(e,t){return ie(e)?an(e,t):[]}),Oc=z(function(e){return ri(st(e,ie))}),kc=z(function(e){var t=Ne(e);return ie(t)&&(t=i),ri(st(e,ie),D(t,2))}),Hc=z(function(e){var t=Ne(e);return t=typeof t=="function"?t:i,ri(st(e,ie),i,t)}),zc=z(Si);function Uc(e,t){return ta(e||[],t||[],rn)}function Yc(e,t){return ta(e||[],t||[],pn)}var $c=z(function(e){var t=e.length,o=t>1?e[t-1]:i;return o=typeof o=="function"?(e.pop(),o):i,Oa(e,o)});function ka(e){var t=s(e);return t.__chain__=!0,t}function Wc(e,t){return t(e),e}function ro(e,t){return t(e)}var Gc=tt(function(e){var t=e.length,o=t?e[0]:0,r=this.__wrapped__,a=function(p){return Ko(p,e)};return t>1||this.__actions__.length||!(r instanceof $)||!nt(o)?this.thru(a):(r=r.slice(o,+o+(t?1:0)),r.__actions__.push({func:ro,args:[a],thisArg:i}),new Re(r,this.__chain__).thru(function(p){return t&&!p.length&&p.push(i),p}))});function Kc(){return ka(this)}function Vc(){return new Re(this.value(),this.__chain__)}function qc(){this.__values__===i&&(this.__values__=Qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,o=this;o instanceof Wn;){var r=La(o);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;o=o.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof $){var t=e;return this.__actions__.length&&(t=new $(this)),t=t.reverse(),t.__actions__.push({func:ro,args:[vi],thisArg:i}),new Re(t,this.__chain__)}return this.thru(vi)}function Qc(){return ea(this.__wrapped__,this.__actions__)}var jc=Zn(function(e,t,o){q.call(e,o)?++e[o]:je(e,o,1)});function ed(e,t,o){var r=O(e)?fr:Wp;return o&&ge(e,t,o)&&(t=i),r(e,D(t,3))}function td(e,t){var o=O(e)?st:Or;return o(e,D(t,3))}var nd=ca(Da),od=ca(Ra);function id(e,t){return ce(ao(e,t),1)}function rd(e,t){return ce(ao(e,t),ht)}function ad(e,t,o){return o=o===i?1:k(o),ce(ao(e,t),o)}function Ha(e,t){var o=O(e)?Le:dt;return o(e,D(t,3))}function za(e,t){var o=O(e)?Is:Nr;return o(e,D(t,3))}var ld=Zn(function(e,t,o){q.call(e,o)?e[o].push(t):je(e,o,[t])});function sd(e,t,o,r){e=be(e)?e:$t(e),o=o&&!r?k(o):0;var a=e.length;return o<0&&(o=se(a+o,0)),co(e)?o<=a&&e.indexOf(t,o)>-1:!!a&&Lt(e,t,o)>-1}var pd=z(function(e,t,o){var r=-1,a=typeof t=="function",p=be(e)?b(e.length):[];return dt(e,function(u){p[++r]=a?Ce(t,u,o):ln(u,t,o)}),p}),ud=Zn(function(e,t,o){je(e,o,t)});function ao(e,t){var o=O(e)?ee:$r;return o(e,D(t,3))}function cd(e,t,o,r){return e==null?[]:(O(t)||(t=t==null?[]:[t]),o=r?i:o,O(o)||(o=o==null?[]:[o]),Vr(e,t,o))}var dd=Zn(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function fd(e,t,o){var r=O(e)?Ro:hr,a=arguments.length<3;return r(e,D(t,4),o,a,dt)}function md(e,t,o){var r=O(e)?Es:hr,a=arguments.length<3;return r(e,D(t,4),o,a,Nr)}function gd(e,t){var o=O(e)?st:Or;return o(e,po(D(t,3)))}function yd(e){var t=O(e)?Dr:su;return t(e)}function hd(e,t,o){(o?ge(e,t,o):t===i)?t=1:t=k(t);var r=O(e)?Hp:pu;return r(e,t)}function bd(e){var t=O(e)?zp:cu;return t(e)}function xd(e){if(e==null)return 0;if(be(e))return co(e)?Rt(e):e.length;var t=fe(e);return t==ke||t==He?e.size:Qo(e).length}function vd(e,t,o){var r=O(e)?Po:du;return o&&ge(e,t,o)&&(t=i),r(e,D(t,3))}var Sd=z(function(e,t){if(e==null)return[];var o=t.length;return o>1&&ge(e,t[0],t[1])?t=[]:o>2&&ge(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,ce(t,1),[])}),lo=tp||function(){return ue.Date.now()};function Cd(e,t){if(typeof t!="function")throw new De(h);return e=k(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ua(e,t,o){return t=o?i:t,t=e&&t==null?e.length:t,et(e,Ae,i,i,i,i,t)}function Ya(e,t){var o;if(typeof t!="function")throw new De(h);return e=k(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=i),o}}var Ci=z(function(e,t,o){var r=M;if(o.length){var a=ut(o,Ut(Ci));r|=Se}return et(e,r,t,o,a)}),$a=z(function(e,t,o){var r=M|ae;if(o.length){var a=ut(o,Ut($a));r|=Se}return et(t,r,e,o,a)});function Wa(e,t,o){t=o?i:t;var r=et(e,Z,i,i,i,i,i,t);return r.placeholder=Wa.placeholder,r}function Ga(e,t,o){t=o?i:t;var r=et(e,qe,i,i,i,i,i,t);return r.placeholder=Ga.placeholder,r}function Ka(e,t,o){var r,a,p,u,f,g,C=0,w=!1,I=!1,E=!0;if(typeof e!="function")throw new De(h);t=Oe(t)||0,te(o)&&(w=!!o.leading,I="maxWait"in o,p=I?se(Oe(o.maxWait)||0,t):p,E="trailing"in o?!!o.trailing:E);function L(re){var $e=r,rt=a;return r=a=i,C=re,u=e.apply(rt,$e),u}function R(re){return C=re,f=dn(Y,t),w?L(re):u}function H(re){var $e=re-g,rt=re-C,cl=t-$e;return I?de(cl,p-rt):cl}function P(re){var $e=re-g,rt=re-C;return g===i||$e>=t||$e<0||I&&rt>=p}function Y(){var re=lo();if(P(re))return W(re);f=dn(Y,H(re))}function W(re){return f=i,E&&r?L(re):(r=a=i,u)}function Ee(){f!==i&&na(f),C=0,r=g=a=f=i}function ye(){return f===i?u:W(lo())}function Fe(){var re=lo(),$e=P(re);if(r=arguments,a=this,g=re,$e){if(f===i)return R(g);if(I)return na(f),f=dn(Y,t),L(g)}return f===i&&(f=dn(Y,t)),u}return Fe.cancel=Ee,Fe.flush=ye,Fe}var wd=z(function(e,t){return Mr(e,1,t)}),_d=z(function(e,t,o){return Mr(e,Oe(t)||0,o)});function Id(e){return et(e,Ft)}function so(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new De(h);var o=function(){var r=arguments,a=t?t.apply(this,r):r[0],p=o.cache;if(p.has(a))return p.get(a);var u=e.apply(this,r);return o.cache=p.set(a,u)||p,u};return o.cache=new(so.Cache||Qe),o}so.Cache=Qe;function po(e){if(typeof e!="function")throw new De(h);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ed(e){return Ya(2,e)}var Fd=fu(function(e,t){t=t.length==1&&O(t[0])?ee(t[0],we(D())):ee(ce(t,1),we(D()));var o=t.length;return z(function(r){for(var a=-1,p=de(r.length,o);++a<p;)r[a]=t[a].call(this,r[a]);return Ce(e,this,r)})}),wi=z(function(e,t){var o=ut(t,Ut(wi));return et(e,Se,i,t,o)}),Va=z(function(e,t){var o=ut(t,Ut(Va));return et(e,Je,i,t,o)}),Td=tt(function(e,t){return et(e,at,i,i,i,t)});function Ad(e,t){if(typeof e!="function")throw new De(h);return t=t===i?t:k(t),z(e,t)}function Bd(e,t){if(typeof e!="function")throw new De(h);return t=t==null?0:se(k(t),0),z(function(o){var r=o[t],a=gt(o,0,t);return r&&pt(a,r),Ce(e,this,a)})}function Ld(e,t,o){var r=!0,a=!0;if(typeof e!="function")throw new De(h);return te(o)&&(r="leading"in o?!!o.leading:r,a="trailing"in o?!!o.trailing:a),Ka(e,t,{leading:r,maxWait:t,trailing:a})}function Dd(e){return Ua(e,1)}function Rd(e,t){return wi(li(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return O(e)?e:[e]}function Md(e){return Pe(e,ne)}function Nd(e,t){return t=typeof t=="function"?t:i,Pe(e,ne,t)}function Od(e){return Pe(e,B|ne)}function kd(e,t){return t=typeof t=="function"?t:i,Pe(e,B|ne,t)}function Hd(e,t){return t==null||Pr(e,t,pe(t))}function Ye(e,t){return e===t||e!==e&&t!==t}var zd=to(Jo),Ud=to(function(e,t){return e>=t}),Et=zr(function(){return arguments}())?zr:function(e){return oe(e)&&q.call(e,"callee")&&!Er.call(e,"callee")},O=b.isArray,Yd=lr?we(lr):Xp;function be(e){return e!=null&&uo(e.length)&&!ot(e)}function ie(e){return oe(e)&&be(e)}function $d(e){return e===!0||e===!1||oe(e)&&me(e)==Gt}var yt=op||Pi,Wd=sr?we(sr):Zp;function Gd(e){return oe(e)&&e.nodeType===1&&!fn(e)}function Kd(e){if(e==null)return!0;if(be(e)&&(O(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||Yt(e)||Et(e)))return!e.length;var t=fe(e);if(t==ke||t==He)return!e.size;if(cn(e))return!Qo(e).length;for(var o in e)if(q.call(e,o))return!1;return!0}function Vd(e,t){return sn(e,t)}function qd(e,t,o){o=typeof o=="function"?o:i;var r=o?o(e,t):i;return r===i?sn(e,t,i,o):!!r}function _i(e){if(!oe(e))return!1;var t=me(e);return t==Cn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Jd(e){return typeof e=="number"&&Tr(e)}function ot(e){if(!te(e))return!1;var t=me(e);return t==wn||t==Mi||t==yl||t==xl}function qa(e){return typeof e=="number"&&e==k(e)}function uo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lt}function te(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function oe(e){return e!=null&&typeof e=="object"}var Ja=pr?we(pr):jp;function Xd(e,t){return e===t||Zo(e,t,mi(t))}function Zd(e,t,o){return o=typeof o=="function"?o:i,Zo(e,t,mi(t),o)}function Qd(e){return Xa(e)&&e!=+e}function jd(e){if(Nu(e))throw new N(c);return Ur(e)}function ef(e){return e===null}function tf(e){return e==null}function Xa(e){return typeof e=="number"||oe(e)&&me(e)==Vt}function fn(e){if(!oe(e)||me(e)!=Xe)return!1;var t=On(e);if(t===null)return!0;var o=q.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Rn.call(o)==Zs}var Ii=ur?we(ur):eu;function nf(e){return qa(e)&&e>=-lt&&e<=lt}var Za=cr?we(cr):tu;function co(e){return typeof e=="string"||!O(e)&&oe(e)&&me(e)==Jt}function Ie(e){return typeof e=="symbol"||oe(e)&&me(e)==_n}var Yt=dr?we(dr):nu;function of(e){return e===i}function rf(e){return oe(e)&&fe(e)==Xt}function af(e){return oe(e)&&me(e)==Sl}var lf=to(jo),sf=to(function(e,t){return e<=t});function Qa(e){if(!e)return[];if(be(e))return co(e)?ze(e):he(e);if(jt&&e[jt])return Hs(e[jt]());var t=fe(e),o=t==ke?zo:t==He?Bn:$t;return o(e)}function it(e){if(!e)return e===0?e:0;if(e=Oe(e),e===ht||e===-ht){var t=e<0?-1:1;return t*dl}return e===e?e:0}function k(e){var t=it(e),o=t%1;return t===t?o?t-o:t:0}function ja(e){return e?Ct(k(e),0,We):0}function Oe(e){if(typeof e=="number")return e;if(Ie(e))return vn;if(te(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=te(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=br(e);var o=Yl.test(e);return o||Wl.test(e)?Cs(e.slice(2),o?2:8):Ul.test(e)?vn:+e}function el(e){return Ke(e,xe(e))}function pf(e){return e?Ct(k(e),-lt,lt):e===0?e:0}function V(e){return e==null?"":_e(e)}var uf=Ht(function(e,t){if(cn(t)||be(t)){Ke(t,pe(t),e);return}for(var o in t)q.call(t,o)&&rn(e,o,t[o])}),tl=Ht(function(e,t){Ke(t,xe(t),e)}),fo=Ht(function(e,t,o,r){Ke(t,xe(t),e,r)}),cf=Ht(function(e,t,o,r){Ke(t,pe(t),e,r)}),df=tt(Ko);function ff(e,t){var o=kt(e);return t==null?o:Rr(o,t)}var mf=z(function(e,t){e=J(e);var o=-1,r=t.length,a=r>2?t[2]:i;for(a&&ge(t[0],t[1],a)&&(r=1);++o<r;)for(var p=t[o],u=xe(p),f=-1,g=u.length;++f<g;){var C=u[f],w=e[C];(w===i||Ye(w,Mt[C])&&!q.call(e,C))&&(e[C]=p[C])}return e}),gf=z(function(e){return e.push(i,ba),Ce(nl,i,e)});function yf(e,t){return mr(e,D(t,3),Ge)}function hf(e,t){return mr(e,D(t,3),qo)}function bf(e,t){return e==null?e:Vo(e,D(t,3),xe)}function xf(e,t){return e==null?e:kr(e,D(t,3),xe)}function vf(e,t){return e&&Ge(e,D(t,3))}function Sf(e,t){return e&&qo(e,D(t,3))}function Cf(e){return e==null?[]:Vn(e,pe(e))}function wf(e){return e==null?[]:Vn(e,xe(e))}function Ei(e,t,o){var r=e==null?i:wt(e,t);return r===i?o:r}function _f(e,t){return e!=null&&Sa(e,t,Kp)}function Fi(e,t){return e!=null&&Sa(e,t,Vp)}var If=fa(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Pn.call(t)),e[t]=o},Ai(ve)),Ef=fa(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Pn.call(t)),q.call(e,t)?e[t].push(o):e[t]=[o]},D),Ff=z(ln);function pe(e){return be(e)?Lr(e):Qo(e)}function xe(e){return be(e)?Lr(e,!0):ou(e)}function Tf(e,t){var o={};return t=D(t,3),Ge(e,function(r,a,p){je(o,t(r,a,p),r)}),o}function Af(e,t){var o={};return t=D(t,3),Ge(e,function(r,a,p){je(o,a,t(r,a,p))}),o}var Bf=Ht(function(e,t,o){qn(e,t,o)}),nl=Ht(function(e,t,o,r){qn(e,t,o,r)}),Lf=tt(function(e,t){var o={};if(e==null)return o;var r=!1;t=ee(t,function(p){return p=mt(p,e),r||(r=p.length>1),p}),Ke(e,di(e),o),r&&(o=Pe(o,B|U|ne,_u));for(var a=t.length;a--;)ii(o,t[a]);return o});function Df(e,t){return ol(e,po(D(t)))}var Rf=tt(function(e,t){return e==null?{}:ru(e,t)});function ol(e,t){if(e==null)return{};var o=ee(di(e),function(r){return[r]});return t=D(t),qr(e,o,function(r,a){return t(r,a[0])})}function Pf(e,t,o){t=mt(t,e);var r=-1,a=t.length;for(a||(a=1,e=i);++r<a;){var p=e==null?i:e[Ve(t[r])];p===i&&(r=a,p=o),e=ot(p)?p.call(e):p}return e}function Mf(e,t,o){return e==null?e:pn(e,t,o)}function Nf(e,t,o,r){return r=typeof r=="function"?r:i,e==null?e:pn(e,t,o,r)}var il=ya(pe),rl=ya(xe);function Of(e,t,o){var r=O(e),a=r||yt(e)||Yt(e);if(t=D(t,4),o==null){var p=e&&e.constructor;a?o=r?new p:[]:te(e)?o=ot(p)?kt(On(e)):{}:o={}}return(a?Le:Ge)(e,function(u,f,g){return t(o,u,f,g)}),o}function kf(e,t){return e==null?!0:ii(e,t)}function Hf(e,t,o){return e==null?e:jr(e,t,li(o))}function zf(e,t,o,r){return r=typeof r=="function"?r:i,e==null?e:jr(e,t,li(o),r)}function $t(e){return e==null?[]:Ho(e,pe(e))}function Uf(e){return e==null?[]:Ho(e,xe(e))}function Yf(e,t,o){return o===i&&(o=t,t=i),o!==i&&(o=Oe(o),o=o===o?o:0),t!==i&&(t=Oe(t),t=t===t?t:0),Ct(Oe(e),t,o)}function $f(e,t,o){return t=it(t),o===i?(o=t,t=0):o=it(o),e=Oe(e),qp(e,t,o)}function Wf(e,t,o){if(o&&typeof o!="boolean"&&ge(e,t,o)&&(t=o=i),o===i&&(typeof t=="boolean"?(o=t,t=i):typeof e=="boolean"&&(o=e,e=i)),e===i&&t===i?(e=0,t=1):(e=it(e),t===i?(t=e,e=0):t=it(t)),e>t){var r=e;e=t,t=r}if(o||e%1||t%1){var a=Ar();return de(e+a*(t-e+Ss("1e-"+((a+"").length-1))),t)}return ti(e,t)}var Gf=zt(function(e,t,o){return t=t.toLowerCase(),e+(o?al(t):t)});function al(e){return Ti(V(e).toLowerCase())}function ll(e){return e=V(e),e&&e.replace(Kl,Ps).replace(cs,"")}function Kf(e,t,o){e=V(e),t=_e(t);var r=e.length;o=o===i?r:Ct(k(o),0,r);var a=o;return o-=t.length,o>=0&&e.slice(o,a)==t}function Vf(e){return e=V(e),e&&El.test(e)?e.replace(ki,Ms):e}function qf(e){return e=V(e),e&&Dl.test(e)?e.replace(wo,"\\$&"):e}var Jf=zt(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Xf=zt(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),Zf=ua("toLowerCase");function Qf(e,t,o){e=V(e),t=k(t);var r=t?Rt(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return eo(Un(a),o)+e+eo(zn(a),o)}function jf(e,t,o){e=V(e),t=k(t);var r=t?Rt(e):0;return t&&r<t?e+eo(t-r,o):e}function em(e,t,o){e=V(e),t=k(t);var r=t?Rt(e):0;return t&&r<t?eo(t-r,o)+e:e}function tm(e,t,o){return o||t==null?t=0:t&&(t=+t),lp(V(e).replace(_o,""),t||0)}function nm(e,t,o){return(o?ge(e,t,o):t===i)?t=1:t=k(t),ni(V(e),t)}function om(){var e=arguments,t=V(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=zt(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function rm(e,t,o){return o&&typeof o!="number"&&ge(e,t,o)&&(t=o=i),o=o===i?We:o>>>0,o?(e=V(e),e&&(typeof t=="string"||t!=null&&!Ii(t))&&(t=_e(t),!t&&Dt(e))?gt(ze(e),0,o):e.split(t,o)):[]}var am=zt(function(e,t,o){return e+(o?" ":"")+Ti(t)});function lm(e,t,o){return e=V(e),o=o==null?0:Ct(k(o),0,e.length),t=_e(t),e.slice(o,o+t.length)==t}function sm(e,t,o){var r=s.templateSettings;o&&ge(e,t,o)&&(t=i),e=V(e),t=fo({},t,r,ha);var a=fo({},t.imports,r.imports,ha),p=pe(a),u=Ho(a,p),f,g,C=0,w=t.interpolate||In,I="__p += '",E=Uo((t.escape||In).source+"|"+w.source+"|"+(w===Hi?zl:In).source+"|"+(t.evaluate||In).source+"|$","g"),L="//# sourceURL="+(q.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
|
|
11
|
+
`;e.replace(E,function(P,Y,W,Ee,ye,Fe){return W||(W=Ee),I+=e.slice(C,Fe).replace(Vl,Ns),Y&&(f=!0,I+=`' +
|
|
12
|
+
__e(`+Y+`) +
|
|
13
13
|
'`),ye&&(g=!0,I+=`';
|
|
14
14
|
`+ye+`;
|
|
15
|
-
__p += '`),
|
|
16
|
-
((__t = (`+
|
|
15
|
+
__p += '`),W&&(I+=`' +
|
|
16
|
+
((__t = (`+W+`)) == null ? '' : __t) +
|
|
17
17
|
'`),C=Fe+P.length,P}),I+=`';
|
|
18
18
|
`;var R=q.call(t,"variable")&&t.variable;if(!R)I=`with (obj) {
|
|
19
19
|
`+I+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(kl.test(R))throw new
|
|
21
|
+
`;else if(kl.test(R))throw new N(v);I=(g?I.replace(Cl,""):I).replace(wl,"$1").replace(_l,"$1;"),I="function("+(R||"obj")+`) {
|
|
22
22
|
`+(R?"":`obj || (obj = {});
|
|
23
23
|
`)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(g?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+I+`return __p
|
|
27
|
-
}`;var H=pl(function(){return G(p,L+"return "+I).apply(i,u)});if(H.source=I,_i(H))throw H;return H}function pm(e){return V(e).toLowerCase()}function um(e){return V(e).toUpperCase()}function cm(e,t,o){if(e=V(e),e&&(o||t===i))return br(e);if(!e||!(t=_e(t)))return e;var r=ze(e),a=ze(t),p=xr(r,a),u=vr(r,a)+1;return gt(r,p,u).join("")}function dm(e,t,o){if(e=V(e),e&&(o||t===i))return e.slice(0,Cr(e)+1);if(!e||!(t=_e(t)))return e;var r=ze(e),a=vr(r,ze(t))+1;return gt(r,0,a).join("")}function fm(e,t,o){if(e=V(e),e&&(o||t===i))return e.replace(_o,"");if(!e||!(t=_e(t)))return e;var r=ze(e),a=xr(r,ze(t));return gt(r,a).join("")}function mm(e,t){var o=mn,r=gn;if(te(t)){var a="separator"in t?t.separator:a;o="length"in t?k(t.length):o,r="omission"in t?_e(t.omission):r}e=V(e);var p=e.length;if(Dt(e)){var u=ze(e);p=u.length}if(o>=p)return e;var f=o-Rt(r);if(f<1)return r;var g=u?gt(u,0,f).join(""):e.slice(0,f);if(a===i)return g+r;if(u&&(f+=g.length-f),Ii(a)){if(e.slice(f).search(a)){var C,w=g;for(a.global||(a=Uo(a.source,V(zi.exec(a))+"g")),a.lastIndex=0;C=a.exec(w);)var I=C.index;g=g.slice(0,I===i?f:I)}}else if(e.indexOf(_e(a),f)!=f){var E=g.lastIndexOf(a);E>-1&&(g=g.slice(0,E))}return g+r}function gm(e){return e=V(e),e&&Il.test(e)?e.replace(Oi,Ws):e}var ym=zt(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Ti=ua("toUpperCase");function sl(e,t,o){return e=V(e),t=o?i:t,t===i?ks(e)?Ks(e):As(e):e.match(t)||[]}var pl=z(function(e,t){try{return Ce(e,i,t)}catch(o){return _i(o)?o:new M(o)}}),hm=tt(function(e,t){return Le(t,function(o){o=Ve(o),je(e,o,Ci(e[o],e))}),e});function bm(e){var t=e==null?0:e.length,o=D();return e=t?ee(e,function(r){if(typeof r[1]!="function")throw new De(h);return[o(r[0]),r[1]]}):[],z(function(r){for(var a=-1;++a<t;){var p=e[a];if(Ce(p[0],this,r))return Ce(p[1],this,r)}})}function xm(e){return Wp(Pe(e,B))}function Ai(e){return function(){return e}}function vm(e,t){return e==null||e!==e?t:e}var Sm=da(),Cm=da(!0);function ve(e){return e}function Bi(e){return $r(typeof e=="function"?e:Pe(e,B))}function wm(e){return Yr(Pe(e,B))}function _m(e,t){return Gr(e,Pe(t,B))}var Im=z(function(e,t){return function(o){return ln(o,e,t)}}),Em=z(function(e,t){return function(o){return ln(e,o,t)}});function Li(e,t,o){var r=pe(t),a=Vn(t,r);o==null&&!(te(t)&&(a.length||!r.length))&&(o=t,t=e,e=this,a=Vn(t,pe(t)));var p=!(te(o)&&"chain"in o)||!!o.chain,u=ot(e);return Le(a,function(f){var g=t[f];e[f]=g,u&&(e.prototype[f]=function(){var C=this.__chain__;if(p||C){var w=e(this.__wrapped__),I=w.__actions__=he(this.__actions__);return I.push({func:g,args:arguments,thisArg:e}),w.__chain__=C,w}return g.apply(e,pt([this.value()],arguments))})}),e}function Fm(){return ue._===this&&(ue._=Qs),this}function Di(){}function Tm(e){return e=k(e),z(function(t){return Kr(t,e)})}var Am=pi(ee),Bm=pi(fr),Lm=pi(Po);function ul(e){return yi(e)?No(Ve(e)):au(e)}function Dm(e){return function(t){return e==null?i:wt(e,t)}}var Rm=ma(),Pm=ma(!0);function Ri(){return[]}function Pi(){return!1}function Nm(){return{}}function Mm(){return""}function Om(){return!0}function km(e,t){if(e=k(e),e<1||e>lt)return[];var o=Ye,r=de(e,Ye);t=D(t),e-=Ye;for(var a=ko(r,t);++o<e;)t(o);return a}function Hm(e){return O(e)?ee(e,Ve):Ie(e)?[e]:he(Ba(V(e)))}function zm(e){var t=++Xs;return V(e)+t}var Um=jn(function(e,t){return e+t},0),$m=ui("ceil"),Wm=jn(function(e,t){return e/t},1),Ym=ui("floor");function Gm(e){return e&&e.length?Kn(e,ve,Jo):i}function Km(e,t){return e&&e.length?Kn(e,D(t,2),Jo):i}function Vm(e){return yr(e,ve)}function qm(e,t){return yr(e,D(t,2))}function Jm(e){return e&&e.length?Kn(e,ve,jo):i}function Xm(e,t){return e&&e.length?Kn(e,D(t,2),jo):i}var Zm=jn(function(e,t){return e*t},1),Qm=ui("round"),jm=jn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Oo(e,ve):0}function tg(e,t){return e&&e.length?Oo(e,D(t,2)):0}return s.after=Cd,s.ary=Ua,s.assign=uf,s.assignIn=tl,s.assignInWith=fo,s.assignWith=cf,s.at=df,s.before=$a,s.bind=Ci,s.bindAll=hm,s.bindKey=Wa,s.castArray=Pd,s.chain=ka,s.chunk=Wu,s.compact=Yu,s.concat=Gu,s.cond=bm,s.conforms=xm,s.constant=Ai,s.countBy=jc,s.create=ff,s.curry=Ya,s.curryRight=Ga,s.debounce=Ka,s.defaults=mf,s.defaultsDeep=gf,s.defer=wd,s.delay=_d,s.difference=Ku,s.differenceBy=Vu,s.differenceWith=qu,s.drop=Ju,s.dropRight=Xu,s.dropRightWhile=Zu,s.dropWhile=Qu,s.fill=ju,s.filter=td,s.flatMap=id,s.flatMapDeep=rd,s.flatMapDepth=ad,s.flatten=Pa,s.flattenDeep=ec,s.flattenDepth=tc,s.flip=Id,s.flow=Sm,s.flowRight=Cm,s.fromPairs=nc,s.functions=Cf,s.functionsIn=wf,s.groupBy=ld,s.initial=ic,s.intersection=rc,s.intersectionBy=ac,s.intersectionWith=lc,s.invert=If,s.invertBy=Ef,s.invokeMap=pd,s.iteratee=Bi,s.keyBy=ud,s.keys=pe,s.keysIn=xe,s.map=ao,s.mapKeys=Tf,s.mapValues=Af,s.matches=wm,s.matchesProperty=_m,s.memoize=so,s.merge=Bf,s.mergeWith=nl,s.method=Im,s.methodOf=Em,s.mixin=Li,s.negate=po,s.nthArg=Tm,s.omit=Lf,s.omitBy=Df,s.once=Ed,s.orderBy=cd,s.over=Am,s.overArgs=Fd,s.overEvery=Bm,s.overSome=Lm,s.partial=wi,s.partialRight=Va,s.partition=dd,s.pick=Rf,s.pickBy=ol,s.property=ul,s.propertyOf=Dm,s.pull=cc,s.pullAll=Ma,s.pullAllBy=dc,s.pullAllWith=fc,s.pullAt=mc,s.range=Rm,s.rangeRight=Pm,s.rearg=Td,s.reject=gd,s.remove=gc,s.rest=Ad,s.reverse=vi,s.sampleSize=hd,s.set=Nf,s.setWith=Mf,s.shuffle=bd,s.slice=yc,s.sortBy=Sd,s.sortedUniq=wc,s.sortedUniqBy=_c,s.split=rm,s.spread=Bd,s.tail=Ic,s.take=Ec,s.takeRight=Fc,s.takeRightWhile=Tc,s.takeWhile=Ac,s.tap=Yc,s.throttle=Ld,s.thru=ro,s.toArray=Qa,s.toPairs=il,s.toPairsIn=rl,s.toPath=Hm,s.toPlainObject=el,s.transform=Of,s.unary=Dd,s.union=Bc,s.unionBy=Lc,s.unionWith=Dc,s.uniq=Rc,s.uniqBy=Pc,s.uniqWith=Nc,s.unset=kf,s.unzip=Si,s.unzipWith=Oa,s.update=Hf,s.updateWith=zf,s.values=Wt,s.valuesIn=Uf,s.without=Mc,s.words=sl,s.wrap=Rd,s.xor=Oc,s.xorBy=kc,s.xorWith=Hc,s.zip=zc,s.zipObject=Uc,s.zipObjectDeep=$c,s.zipWith=Wc,s.entries=il,s.entriesIn=rl,s.extend=tl,s.extendWith=fo,Li(s,s),s.add=Um,s.attempt=pl,s.camelCase=Gf,s.capitalize=al,s.ceil=$m,s.clamp=$f,s.clone=Nd,s.cloneDeep=Od,s.cloneDeepWith=kd,s.cloneWith=Md,s.conformsTo=Hd,s.deburr=ll,s.defaultTo=vm,s.divide=Wm,s.endsWith=Kf,s.eq=$e,s.escape=Vf,s.escapeRegExp=qf,s.every=ed,s.find=nd,s.findIndex=Da,s.findKey=yf,s.findLast=od,s.findLastIndex=Ra,s.findLastKey=hf,s.floor=Ym,s.forEach=Ha,s.forEachRight=za,s.forIn=bf,s.forInRight=xf,s.forOwn=vf,s.forOwnRight=Sf,s.get=Ei,s.gt=zd,s.gte=Ud,s.has=_f,s.hasIn=Fi,s.head=Na,s.identity=ve,s.includes=sd,s.indexOf=oc,s.inRange=Wf,s.invoke=Ff,s.isArguments=Et,s.isArray=O,s.isArrayBuffer=$d,s.isArrayLike=be,s.isArrayLikeObject=ie,s.isBoolean=Wd,s.isBuffer=yt,s.isDate=Yd,s.isElement=Gd,s.isEmpty=Kd,s.isEqual=Vd,s.isEqualWith=qd,s.isError=_i,s.isFinite=Jd,s.isFunction=ot,s.isInteger=qa,s.isLength=uo,s.isMap=Ja,s.isMatch=Xd,s.isMatchWith=Zd,s.isNaN=Qd,s.isNative=jd,s.isNil=tf,s.isNull=ef,s.isNumber=Xa,s.isObject=te,s.isObjectLike=oe,s.isPlainObject=fn,s.isRegExp=Ii,s.isSafeInteger=nf,s.isSet=Za,s.isString=co,s.isSymbol=Ie,s.isTypedArray=$t,s.isUndefined=of,s.isWeakMap=rf,s.isWeakSet=af,s.join=sc,s.kebabCase=Jf,s.last=Me,s.lastIndexOf=pc,s.lowerCase=Xf,s.lowerFirst=Zf,s.lt=lf,s.lte=sf,s.max=Gm,s.maxBy=Km,s.mean=Vm,s.meanBy=qm,s.min=Jm,s.minBy=Xm,s.stubArray=Ri,s.stubFalse=Pi,s.stubObject=Nm,s.stubString=Mm,s.stubTrue=Om,s.multiply=Zm,s.nth=uc,s.noConflict=Fm,s.noop=Di,s.now=lo,s.pad=Qf,s.padEnd=jf,s.padStart=em,s.parseInt=tm,s.random=Yf,s.reduce=fd,s.reduceRight=md,s.repeat=nm,s.replace=om,s.result=Pf,s.round=Qm,s.runInContext=m,s.sample=yd,s.size=xd,s.snakeCase=im,s.some=vd,s.sortedIndex=hc,s.sortedIndexBy=bc,s.sortedIndexOf=xc,s.sortedLastIndex=vc,s.sortedLastIndexBy=Sc,s.sortedLastIndexOf=Cc,s.startCase=am,s.startsWith=lm,s.subtract=jm,s.sum=eg,s.sumBy=tg,s.template=sm,s.times=km,s.toFinite=it,s.toInteger=k,s.toLength=ja,s.toLower=pm,s.toNumber=Oe,s.toSafeInteger=pf,s.toString=V,s.toUpper=um,s.trim=cm,s.trimEnd=dm,s.trimStart=fm,s.truncate=mm,s.unescape=gm,s.uniqueId=zm,s.upperCase=ym,s.upperFirst=Ti,s.each=Ha,s.eachRight=za,s.first=Na,Li(s,function(){var e={};return Ge(s,function(t,o){q.call(s.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),s.VERSION=d,Le(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){s[e].placeholder=s}),Le(["drop","take"],function(e,t){W.prototype[e]=function(o){o=o===i?1:se(k(o),0);var r=this.__filtered__&&!t?new W(this):this.clone();return r.__filtered__?r.__takeCount__=de(o,r.__takeCount__):r.__views__.push({size:de(o,Ye),type:e+(r.__dir__<0?"Right":"")}),r},W.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),Le(["filter","map","takeWhile"],function(e,t){var o=t+1,r=o==Yt||o==xn;W.prototype[e]=function(a){var p=this.clone();return p.__iteratees__.push({iteratee:D(a,3),type:o}),p.__filtered__=p.__filtered__||r,p}}),Le(["head","last"],function(e,t){var o="take"+(t?"Right":"");W.prototype[e]=function(){return this[o](1).value()[0]}}),Le(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");W.prototype[e]=function(){return this.__filtered__?new W(this):this[o](1)}}),W.prototype.compact=function(){return this.filter(ve)},W.prototype.find=function(e){return this.filter(e).head()},W.prototype.findLast=function(e){return this.reverse().find(e)},W.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new W(this):this.map(function(o){return ln(o,e,t)})}),W.prototype.reject=function(e){return this.filter(po(D(e)))},W.prototype.slice=function(e,t){e=k(e);var o=this;return o.__filtered__&&(e>0||t<0)?new W(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==i&&(t=k(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},W.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},W.prototype.toArray=function(){return this.take(Ye)},Ge(W.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=s[r?"take"+(t=="last"?"Right":""):t],p=r||/^find/.test(t);!a||(s.prototype[t]=function(){var u=this.__wrapped__,f=r?[1]:arguments,g=u instanceof W,C=f[0],w=g||O(u),I=function($){var Y=a.apply(s,pt([$],f));return r&&E?Y[0]:Y};w&&o&&typeof C=="function"&&C.length!=1&&(g=w=!1);var E=this.__chain__,L=!!this.__actions__.length,R=p&&!E,H=g&&!L;if(!p&&w){u=H?u:new W(this);var P=e.apply(u,f);return P.__actions__.push({func:ro,args:[I],thisArg:i}),new Re(P,E)}return R&&H?e.apply(this,f):(P=this.thru(I),R?r?P.value()[0]:P.value():P)})}),Le(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ln[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var a=arguments;if(r&&!this.__chain__){var p=this.value();return t.apply(O(p)?p:[],a)}return this[o](function(u){return t.apply(O(u)?u:[],a)})}}),Ge(W.prototype,function(e,t){var o=s[t];if(o){var r=o.name+"";q.call(Ot,r)||(Ot[r]=[]),Ot[r].push({name:t,func:o})}}),Ot[Qn(i,ae).name]=[{name:"wrapper",func:i}],W.prototype.clone=mp,W.prototype.reverse=gp,W.prototype.value=yp,s.prototype.at=Gc,s.prototype.chain=Kc,s.prototype.commit=Vc,s.prototype.next=qc,s.prototype.plant=Xc,s.prototype.reverse=Zc,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Qc,s.prototype.first=s.prototype.head,jt&&(s.prototype[jt]=Jc),s},Pt=Vs();bt?((bt.exports=Pt)._=Pt,Bo._=Pt):ue._=Pt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"Masked Aadhar Card",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Data Card",const:"card"},{title:"Check Box",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"Tab Container",const:"HorizontalLayout"},{title:"Data Grid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"Time Stamp",const:"DateTime"},{title:"Download",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File Handler",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Image",const:"Image"},{title:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"Leaderboard",const:"LeaderBoard"},{title:"Multi-Select Dropdown",const:"MultipleSelect"},{title:"Pan Card Masked",const:"PanCardText"},{title:"Pop Up",const:"PopUp"},{title:"Progress Bar",const:"ProgressBar"},{title:"Progress Bar Card",const:"ProgressBarCard"},{title:"Dropdown",const:"Select"},{title:"Slider",const:"Slider"},{title:"Speedometer",const:"SpeedoMeter"},{title:"Stepper Container",const:"Stepper"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy",const:"RunnerBoyProgressBar"},{title:"Table",const:"Table"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload",const:"UploadFile"},{title:"Tree ",const:"TreeMap"},{title:"Column Group",const:"ColumnGroup"},{title:"Thought of the day",const:"Thought"}]},elementType:{oneOf:[{title:"Table Action Element",const:"action"},{title:"Table Header Element",const:"tableHeader"},{title:"Table Element",const:"element"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"},{title:"Center Column",const:"action"}]},dateFormat:{oneOf:[{title:"ISO DateTime (UTC)",const:"YYYY-MM-DDTHH:mm:ss.SSSZ"},{title:"ISO DateTime",const:"YYYY-MM-DDTHH:mm:ssZ"},{title:"ISO DateTime (No TZ)",const:"YYYY-MM-DDTHH:mm:ss"},{title:"ISO Date",const:"YYYY-MM-DD"},{title:"Date (DD-MM-YYYY)",const:"DD-MM-YYYY"},{title:"Date (MM/DD/YYYY)",const:"MM/DD/YYYY"},{title:"DateTime (DB)",const:"YYYY-MM-DD HH:mm:ss"},{title:"DateTime (DB ms)",const:"YYYY-MM-DD HH:mm:ss.SSS"},{title:"Time (24h)",const:"HH:mm:ss"},{title:"Time (12h)",const:"hh:mm:ss A"},{title:"Epoch (Milliseconds)",const:"x"},{title:"Epoch (Seconds)",const:"X"}]},variant:{oneOf:[{title:"Outlined",const:"outlined"},{title:"Filled",const:"filled"},{title:"Standard",const:"standard"}]},orientation:{oneOf:[{title:"Horizontal",const:"horizontal"},{title:"Vertical",const:"vertical"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},maxPageSize:{type:"number",oneOf:[{title:"10",const:10},{title:"20",const:20},{title:"30",const:30},{title:"50",const:50},{title:"100",const:100},{title:"500",const:500}]},initialDensity:{type:"string",oneOf:[{title:"Compact",const:"compact"},{title:"Comfortable",const:"comfortable"},{title:"Spacious",const:"spacious"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},cardLayout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},enableColumnFilter:{type:"array",items:{type:"object",properties:{keyName:{type:"string"}}}},filteringOptions:{oneOf:[{const:"fuzzy",title:"Fuzzy"},{const:"contains",title:"Contain"},{const:"startsWith",title:"Starts with"},{const:"endsWith",title:"Ends with"},{const:"equals",title:"Equals"},{const:"notEquals",title:"Not Equals"},{const:"between",title:"Between"},{const:"betweenInclusive",title:"Between inclusive"},{const:"greaterThan",title:"Greater than"},{const:"greaterThanOrEqualTo",title:"Greater than or equal to"},{const:"lessThan",title:"Less than"},{const:"lessThanOrEqualTo",title:"Less than or equal to"}]},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"},{const:"readOnly",title:"Read Only"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"},{title:"Stack Horizontal Bar Graph",const:"HorizontalStackBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Download All Icon",const:"DownloadAllIcon"},{title:"Exception Icon",const:"ExceptionIcon"},{title:"Alarm Icon",const:"AlarmIcon"},{title:"Click Icon",const:"ClickIcon"},{title:"Content Copy Icon",const:"ContentCopyIcon"},{title:"File Copy Icon",const:"FileCopyIcon"},{title:"Pause Icon",const:"PauseIcon"},{title:"Play Icon",const:"PlayIcon"},{title:"Close Icon",const:"CloseIcon"},{title:"Replay Icon",const:"ReplayIcon"},{title:"Delete Icon",const:"DeleteIcon"},{title:"Drafts Icon",const:"DraftsIcon"},{title:"Perm Phone Msg Icon",const:"PermPhoneMsgIcon"},{title:"Paste Icon",const:"PasteIcon"},{title:"Prev Icon",const:"PrevIcon"},{title:"Verified Icon",const:"VerifiedIcon"},{title:"Table Add Icon",const:"TableAddIcon"},{title:"Table Download Icon",const:"TableDownloadIcon"},{title:"Audit Trail Icon",const:"AuditTrailIcon"},{title:"View Component",const:"View"},{title:"Table Edit Icon",const:"TableEditIcon"},{title:"Maximize Icon",const:"Maximize"},{title:"Minimize Icon",const:"Minimize"},{title:"Subtract Icon",const:"Subtract"},{title:"Bin Icon",const:"Bin"},{title:"Export Icon",const:"Export"},{title:"Table Paste Icon",const:"TablePaste"},{title:"Clone Icon",const:"CloneIcon"},{title:"Detail Icon",const:"DetailIcon"},{title:"Report View Icon",const:"ReportViewIcon"},{title:"Payout",const:"Payout"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},pageName:{path:[]},name:{type:"string"},label:{type:"string"},RemoveItemButton:{disabled:!0}},required:["name"]},componentBasicUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page-Component",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core"],id:"component"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc5",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc6",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc7",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc8",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc9",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc10",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc11",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",config:{layout:12,main:{label:"Layout",childElementLabel:"Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:0,sm:0,md:4,lg:4}},options:{widget:"EmptyBox"}}]}]}]},{type:"WrapperLayout",config:{main:{gap:"8px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Ok",variant:"contained",type:"text",onClick:"okHandler",size:"medium"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save & Exit",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:4,sm:7,md:8,lg:9}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpComponentSection",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Component ?"},style:{"&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpComponent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteComponents",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/popUpEventSection",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText1",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{onNavigatePopupNo:"onNavigatePopupNo",onNavigatePopupYes:"onNavigatePopupYes"},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`,backgroundColor:n.palette.background.default}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=n==null?void 0:n.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},CoreSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",required:!0}}},{type:"Control",scope:"#/properties/proc5",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc6",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc7",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc8",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc9",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc10",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc11",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",config:{layout:12,main:{label:"Layout",childElementLabel:"Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:0,sm:0,md:4,lg:4}},options:{widget:"EmptyBox"}}]}]},EventSection=n=>({type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"eventAddHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0},action:[{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"Button"},config:{main:{size:"small",startIcon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler",name:"Edit"}}},{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"Button"},config:{main:{startIcon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent",name:"Delete",size:"small"}}},{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"Button"},config:{main:{startIcon:"FileCopyIcon",onClick:"copyPasteElement",tooltipMessage:"Reject This Record",styleDefault:!1,name:"Copy"}}}]},elements:[{accessorKey:"eventType",header:"Event's Type",type:"string",size:300},{accessorKey:"Handler",header:"Handler",type:"string",size:200}]}]}),emptyBox$1=(n,l)=>l!==void 0?{type:"Control",scope:`#/properties/${n}`,options:{widget:"EmptyBox"},config:{layout:l}}:{type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",config:{layout:12,main:{label:"Card Layout",childElementLabel:"Card Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}},emptyBox$1("cardEmpty")]},getArrayControl=(n,l,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:i,childElementLabel:i},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:`#/properties/${l}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:i||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty1",{xs:6,sm:6,md:8,lg:8})]}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Size"}}},sizeHolder.elements[2]=emptyBox$1("sizeHolderempty");const getInputField=(n,l)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:l}}}),getRadioInputField=(n,l,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:l,options:i}}}),buildWrapper=(n,l)=>({type:"WrapperLayout",config:{main:{label:n||"Details",isAccordion:!0}},elements:l||[]}),getTextArea=(n,l,i,d)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:d||12,main:{label:l,minRows:8,hideButton:i,enableCodeEditor:!0}}}),getSelectField=(n,l,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:l,type:"text"}}}),getMultiSelectField=(n,l)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{multiple:!0,label:l,options:[]}}}),BaseSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[]},buildPropertiesSection=function(n){let l=_.cloneDeep(BaseSection);switch(n){case"Array":l.elements=[getRadioInputField("allExpanded","Initial Expand",["YES","NO"]),getRadioInputField("disableAddButton","Disable Add Button",["YES","NO"]),getRadioInputField("disableExpandAllButton","Disable Expand Buttons",["YES","NO"]),getRadioInputField("disableRowActions","Disable Row Actions",["YES","NO"]),getInputField("childElementLabel","Child Element Label"),emptyBox$1("empty1",{xs:12,sm:6,md:4,lg:3})];break;case"TreeMap":l.elements=[getSelectField("orientation","orientation"),getInputField("linkType","linkType"),getInputField("graphHeight","Graph Height"),getInputField("graphWidth","Graph Width"),getInputField("graphZoomHeight","Zoom Height"),emptyBox$1("TreeEmpty",{xs:6,sm:6,md:4,lg:4})];break;case"InputSlider":l.elements=[getInputField("max","Max Limit"),getInputField("step","Step"),getInputField("min","Min Limit"),emptyBox$1("InputSliderEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("limitToMax","Applly Max. Limit",["YES","NO"]),emptyBox$1("InputSliderEmpty2",{xs:0,sm:0,md:8,lg:8})];break;case"DataGrid":l.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),emptyBox$1("DataGridEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("DataGridEmpty1",{xs:0,sm:0,md:4,lg:4}),cardLayout];break;case"Stepper":l.elements=[getRadioInputField("resetButton","Reset Button",["YES","NO"]),getRadioInputField("defaultButtonAvailable","Use Default Buttons ",["YES","NO"]),getInputField("resetText","Reset Text"),getInputField("completeText","Complete Text"),getSelectField("orientation","Orientation Type"),emptyBox$1("Stepper",{xs:6,sm:6,md:4,lg:4}),getArrayControl("sectionLabels","label")];break;case"PopUp":l.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),emptyBox$1("PopUpEmpty",{xs:6,sm:6,md:0,lg:0})];break;case"Text":l.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("multiline","Multiline",["YES","NO"]),getSelectField("variant","Variant"),emptyBox$1("TextEmpty1",{xs:6,sm:6,md:0,lg:3}),getArrayControl("InputFormatingAndMasking","formatElement","Format Element"),getInputField("keyName","Event Key Name")];break;case"TextArea":l.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("enableCodeEditor","Enable Code Editor",["YES","NO"]),getInputField("codeEditorLanguage","Enter Code Language"),emptyBox$1("TextEmpty1",{xs:0,sm:0,md:0,lg:3})];break;case"SpeedoMeter":l.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width"),emptyBox$1("SpeedoMeterEmpty1",{xs:6,sm:6,md:4,lg:4})];break;case"RankCard":l.elements=[getInputField("rank","Rank"),getInputField("height","Height"),emptyBox$1("RankCardEmpty1",{xs:0,sm:0,md:4,lg:4})];break;case"LeaderBoard":l.elements=[getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getInputField("nameKey","Key for Name"),getInputField("imageKey","Key for Image"),getInputField("scoreKey","Key for comparing parameter"),emptyBox$1("LeaderBoardEmpty1",{xs:6,sm:6,md:0,lg:0})];break;case"CardSlider":l.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":l.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel"),emptyBox$1("ProgressBarCardEmpty1"),emptyBox$1("ProgressBarCardEmpty2")];break;case"card":l.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("titleIcon","Unicode of Icon for title"),getInputField("description","Description"),emptyBox$1("cardEmpty",{xs:0,sm:0,md:8,lg:8})];break;case"Button":l.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:4,lg:4})];break;case"Box":l.elements=[getSelectField("iconName","Icon Name"),emptyBox$1("BoxEmpty1",{xs:6,sm:6,md:4,lg:8})];break;case"Graph":l.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getInputField("yAxisValue","Y-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:8,lg:6}),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":l.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getInputField("rowSpacing","Row Spacing"),emptyBox$1("WrapperSectionEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("WrapperSectionEmpty2")];break;case"TabSection":l.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),emptyBox$1("TabEmpty"),getArrayControl("sectionLabels","label")];break;case"Table":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Row Selection",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing ",["YES","NO"]),getRadioInputField("DragAvailable","Row Dragging",["YES","NO"]),getRadioInputField("downloadAllData","Download All Data",["YES","NO"]),getRadioInputField("disableGlobalSearch","Disable Global Search",["YES","NO"]),getRadioInputField("disableColumnFilter","Disable Column Filter",["YES","NO"]),getRadioInputField("disableSorting","Disable Sorting",["YES","NO"]),getRadioInputField("disableEditColumn","Disable Edit Column",["YES","NO"]),getRadioInputField("disableFullScreenToggle","Disable Full Screen",["YES","NO"]),getRadioInputField("disableDensityToggle","Disable Density Toggle",["YES","NO"]),getRadioInputField("disableDownloadFile","Disable Download File",["YES","NO"]),getRadioInputField("disablePagination","Disable Pagination",["YES","NO"]),getInputField("selectKey","Selection Key"),getMultiSelectField("filteringOptions","Filtering Options"),getSelectField("maxPageSize","Max Page Size"),getSelectField("initialDensity","Initial Toggle Density"),buildWrapper("Tree Table Properties",[getRadioInputField("enableRowMovement","Row Rearrangement",["YES","NO"]),getRadioInputField("enableExpanding","Row Expanding",["YES","NO"]),getRadioInputField("paginateExpandedRows","Multi Page Expansion",["YES","NO"]),getRadioInputField("treeStructure","Flat Tree Structure",["YES","NO"]),getRadioInputField("filterFromLeafRows","Filter from tree rows",["YES","NO"]),getInputField("defaultColumnSize","Default Column Size"),,emptyBox$1("LazyLoadingTableEmpty3")]),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder,getArrayControl("enableColumnFilter","keyName","Component Name")];break;case"Radio":l.elements=[getInputField("errorMessage","Error Message"),emptyBox$1("Radio",{xs:6,sm:6,md:8,lg:9}),getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"]),getSelectField("variant","Variant"),emptyBox$1("SelectEmpty")];break;case"MultipleSelect":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getSelectField("variant","Variant"),emptyBox$1("MultipleSelectEmpty1",{xs:0,sm:6,md:4,lg:4}),emptyBox$1("MultipleSelectEmpty2")];break;case"Date":l.elements=[getSelectField("variant","Variant"),emptyBox$1("DateEmpty1",{xs:6,sm:6,md:8,lg:9})];break;case"DateTime":l.elements=[getSelectField("variant","Variant"),emptyBox$1("DateTimeEmpty1",{xs:6,sm:6,md:8,lg:9})];break;case"Thought":l.elements=[getTextArea("thought","Today's thought",!1)];break;case"Image":l.elements=[getInputField("imageUrl","Image URL"),getInputField("height","Image Height"),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"FileInput":l.elements=[getRadioInputField("variant","Variant",["Outlined","Standard"]),getRadioInputField("disableUpload","Disable Upload",["YES","NO"]),getRadioInputField("disableDelete","Disable Delete",["YES","NO"]),getRadioInputField("disableDownload","Disable Download",["YES","NO"])];break}return l},StyleSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)":{}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection=n=>({type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"widgetAddClickHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Component",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0},action:[{type:"Control",scope:"#/properties/RejectButton",options:{widget:"Button"},config:{main:{startIcon:"EditIcon",size:"small",onClick:"editComponents",tooltipMessage:"Reject This Record",name:"Edit"}}},{type:"Control",scope:"#/properties/RejectButton",options:{widget:"Button"},config:{main:{startIcon:"Bin",onClick:"deletePopUpComponent",tooltipMessage:"Reject This Record",name:"Delete",size:"small"}}},{type:"Control",scope:"#/properties/Copy_Component",options:{widget:"Button"},config:{main:{startIcon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!1,name:"Copy"}}}]},elements:[{accessorKey:"name",header:"Name",type:"string",size:300},{accessorKey:"type",header:"Type",type:"string",size:200}]}]}),ValueTab={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/value",config:{layout:12,main:{label:"Value",childElementLabel:"Value"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]}]},ValidationSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/validation",config:{layout:12,main:{label:"Validation",childElementLabel:"Validation"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Validation Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]}]};var buildConfig=n=>{const l=_.cloneDeep(n);let i={};return l.pageName&&delete l.pageName,l.eventsSelected&&delete l.eventsSelected,(l.type==="Table"||l.type==="WrapperSection"||l.type==="TabSection")&&(i.elements=l.elements||[],l.elements&&delete l.elements),i.events=l.events||[],l.events&&delete l.events,i={...l,...i},i};const createLayoutFormat=(n,l)=>{if(_.isEmpty(n))return["WrapperSection","DataGrid","LeaderBoard","PopUp","TextArea","TreeMap","Thought","HorizontalLayout"].includes(l)?{xs:12,sm:12,md:12,lg:12}:l==="Graph"?{xs:12,sm:12,md:12,lg:6}:l==="Button"?{xs:4,sm:2.5,md:2,lg:1.5}:{xs:6,sm:6,md:4,lg:3};let i={};return n.map(d=>{i[d.key||"xs"]=+d.value||5.5}),i},flatObjectValueInArray=(n=[])=>{if(n.length<1)return;const l=Object.keys(n[0])[0];return n.map(d=>d[l])},clearFromSessionStorage=()=>{sessionStorage.removeItem("pageFormdata")},getNavigationHistory=(n,l)=>{if(l){let i=n.name;const d=l.split("."),y=[];return d.map((c,h)=>{if(h===0){y.push(c);return}y.push(`${y[h-1]}.${c}`)}),y.map(c=>{const h=_.get(n,c);h?i=i+` > ${(h==null?void 0:h.name)||(h==null?void 0:h.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInSessionStorage=(n,l)=>{let i;if(l){const d=getFormdataFromSessionStorage();i=_.set(d,l,buildConfig(n))}else i=buildConfig(n);return sessionStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromSessionStorage=n=>{const l=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0;let i;return n&&(i=_.get(l,n),i={...i,...getNavigationHistory(l,n)}),i||(i=getNavigationHistory(l,n)),i||l};async function saveHandler(n,l,i){var c,h;(c=n.searchParams)==null||c.get("id");const d=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,d);const y=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const v=await i(n,l,y);navigateHandler(n,!0,"/PageMasterRecords")}catch{navigateHandler(n,!1)}}const navigateHandler=(n,l,i)=>{l?(sessionStorage.removeItem("pageFormdata"),n.navigate(i||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(n){var i;const l=(i=n.searchParams)==null?void 0:i.get("path");_.isEmpty(n.ctx.core.errors)?(saveFormdataInSessionStorage(n.ctx.core.data,l),n.navigate(-1),n.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","Events","Style","Validation"],MultipleSelect:["Core","Properties","Value","Events","Style","Validation"],Table:["Core","Components","Properties","Events","Style","Validation"],LeaderBoard:["Core","Components","Properties","Events","Style","Validation"],WrapperSection:["Core","Components","Properties","Style","Validation"],HorizontalLayout:["Core","Components","Properties","Style","Validation"],TabSection:["Core","Components","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Events","Style","Validation"],card:["Core","Properties","Events","Style","Validation"],UploadFile:["Core","Events","Style","Validation"],Graph:["Core","Properties","Events","Style","Validation"],DownloadFile:["Core","Events","Style","Validation"],Box:["Core","Properties","Events","Style","Validation"],Properties:["Core","Properties","Events","Style","Validation"],ProgressBarCard:["Core","Properties","Events","Style","Validation"],RankCard:["Core","Properties","Events","Style","Validation"],Slider:["Core","Components","Events","Style","Validation"],Timer:["Core","Events","Style","Validation"],Rank:["Core","Events","Style","Validation"],Button:["Core","Properties","Events","Style","Validation"],Array:["Core","Components","Properties","Events","Validation"],Radio:["Core","Properties","Events","Style","Validation"],Text:["Core","Properties","Events","Style","Validation"],TextArea:["Core","Properties","Events","Style","Validation"],PopUp:["Core","Components","Properties","Style"],Stepper:["Core","Components","Properties","Events","Style"],DataGrid:["Core","Components","Properties","Events","Style"],InputSlider:["Core","Properties","Events","Style","Validation"],TreeMap:["Core","Components","Properties","Events","Style"],ColumnGroup:["Core","Components"],Thought:["Core","Properties","Events","Style","Validation"],Date:["Core","Properties","Events","Style","Validation"],DateTime:["Core","Properties","Events","Style","Validation"],Image:["Core","Properties","Style"],FileInput:["Core","Properties","Events","Style","Validation"]};function refreshPage(n,l){var x,F;const i=_.cloneDeep(componentBasicUiSchema(l.theme.myTheme)),d=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const A={Core:CoreSection,Value:ValueTab,Style:StyleSection,Events:EventSection(l.theme.myTheme),Components:TableSection(l.theme.myTheme),Properties:buildPropertiesSection(n),Validation:ValidationSection},B=(x=sectionLabels[n])==null?void 0:x.map(U=>A[U]);i.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],i.elements[0].elements=B||[CoreSection,StyleSection,EventSection(l.theme.myTheme),ValidationSection]}const y=(F=l.searchParams)==null?void 0:F.get("path"),c=y.lastIndexOf("."),h=y.slice(0,c),v=_.get(d,h);((v==null?void 0:v.type)==="Table"||(v==null?void 0:v.type)==="ColumnGroup")&&(i.elements[0].elements[0].elements[4]={type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Format"}}},i.elements[0].elements[0].elements[6]={type:"Control",scope:"#/properties/filteringOptions",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Filter Mode",multiple:!0}}},i.elements[0].elements[0].elements[5]={type:"Control",scope:"#/properties/enableFilter",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Filter",options:["Yes","No"]}}},i.elements[0].elements[0].elements[7]={type:"Control",scope:"#/properties/enableSorting",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Sorting",options:["Yes","No"]}}},i.elements[0].elements[0].elements[8]={type:"Control",scope:"#/properties/columnKey",config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Key"}},options:{widget:"InputField"}},i.elements[0].elements[0].elements[9]={type:"Control",scope:"#/properties/elementType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Element Type"}}},i.elements[0].elements[0].elements[10]={type:"Control",scope:"#/properties/dateFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Date Time Format"}}}),sessionStorage.getItem("copiedConfig")&&this.ElementPathSetter(i),l.setUiSchema(i)}var Component=(n,l,i,d)=>({setPage:async function(){const y=await this.getFormdata();n.setFormdata(y);const c=this.getSchema();n.setSchema(c),this.refreshPage(y==null?void 0:y.type,n)},refreshPage,getFormdata:function(){var c;const y=(c=n.searchParams)==null?void 0:c.get("path");return getFormdataFromSessionStorage(y)},getSchema:function(){var F,A,B;const y=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(y.properties.RemoveItemButton.disabled=!1);const c=JSON.parse(sessionStorage.getItem("pageFormdata")),h=(F=n.searchParams)==null?void 0:F.get("path"),v=(A=n.searchParams)==null?void 0:A.get("id");let x=[{label:(B=c.name)!=null?B:"NewPage",path:`/PageMaster${v?`?id=${v}`:""}`}];if(h){const U=h.split("."),ne=[];U.map((X,K)=>{if(K===0){ne.push(X);return}ne.push(`${ne[K-1]}.${X}`)}),ne.map(X=>{const K=_.get(c,X);x.push({label:(K==null?void 0:K.name)||(K==null?void 0:K.eventType)||"NewComponent",path:`/Component?path=${X}${v?`&id=${v}`:""}`})})}return y.properties.pageName.path=x,y},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var y,c,h,v;((y=n==null?void 0:n.formData)==null?void 0:y.type)!==((c=n==null?void 0:n.newData)==null?void 0:c.type)&&((h=n==null?void 0:n.newData)==null?void 0:h.type)!==void 0&&this.refreshPage((v=n==null?void 0:n.newData)==null?void 0:v.type,n)},editComponents:function(){var v,x,F;const y=l.path.split(".")[1],c=(v=n.searchParams)==null?void 0:v.get("path"),h=(x=n.searchParams)==null?void 0:x.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,c),c){const B=`${(F=n.searchParams)==null?void 0:F.get("path")}.elements[${y}]`;n.searchParams.set("path",B),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${y}]`}&id=${h}`)},deleteComponents:function(y=!0){var F;const c=(F=n.searchParams)==null?void 0:F.get("path"),h=sessionStorage.getItem("rowId");n.formData.elements.splice(h,1);const v=saveFormdataInSessionStorage(n.ctx.core.data,c),x=c?_.get(v,c):v;n.setFormdata(x),y&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(y=!0){var x;const c=(x=n.searchParams)==null?void 0:x.get("path"),h=sessionStorage.getItem("rowId");n.formData.events.splice(h,1);const v=saveFormdataInSessionStorage(n.ctx.core.data,c);n.setFormdata(_.get(v,c)),y&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var h;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const y=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,y);const c=`${y}.elements[${n.formData.elements.length}]`;n.searchParams.set("path",c),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var x,F;const y=l.path.split(".")[1],c=(x=n.searchParams)==null?void 0:x.get("path"),h=(F=n.searchParams)==null?void 0:F.get("id");saveFormdataInSessionStorage(n.ctx.core.data,c);const v=`${c}.events[${y}]`;n.navigate(`/ComponentEvents?path=${v}&id=${h}`)},eventAddHandler:function(){var v,x;const y=(v=n.searchParams)==null?void 0:v.get("path"),c=(x=n.searchParams)==null?void 0:x.get("id");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,y);const h=`${y}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${h}&id=${c}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const y=l.path.split(".")[1];sessionStorage.setItem("rowId",y),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const y=l.path.split(".")[1];sessionStorage.setItem("rowId",y),n.updateDialog("popUpEventSection")},copyPasteElement:function(y,c=this.setPage.bind(this)){var x;const[h,v]=(x=l.path.split(".").pop())==null?void 0:x.split("_");h==="Copy"?this.CopyElement(y,v):this.PasteElement(c,v)},CopyElement:function(y=n,c){var U;const h=lodash.exports.cloneDeep(y.schema),v=lodash.exports.cloneDeep(y.uiSchema);h.properties.RemoveItemButton.disabled=!1;const x=l.path.split(".")[1],F=(U=n.searchParams)==null?void 0:U.get("path"),A=this.elementPathHandler(F,x,c),B=getFormdataFromSessionStorage(A);this.ElementPathSetter(v,B),sessionStorage.setItem("copiedConfig",JSON.stringify(B)),n.setNotify({SuccessMessage:`${c} Copied Successfully`,Success:!0}),n.setSchema(h),n.setUiSchema(v)},PasteElement:function(y,c){var U;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const h=(U=n.searchParams)==null?void 0:U.get("path");Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,h);const v=getFormdataFromSessionStorage(h),x=c==="Component"?v.elements.length:v.events.length,F=this.elementPathHandler(h,x,c),A=JSON.parse(sessionStorage.getItem("copiedConfig")),B={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};A.Handler&&c==="Component"?n.setNotify({FailMessage:B.Events,Fail:!0}):A.name&&c==="Events"?n.setNotify({FailMessage:B.Component,Fail:!0}):(saveFormdataInSessionStorage(A,F),y())},RemoveItemButton:function(y=n){const c=lodash.exports.cloneDeep(y.schema),h=lodash.exports.cloneDeep(y.uiSchema);c.properties.RemoveItemButton.disabled=!0,h.elements[2].elements[1].config.main.heading="No element copied",sessionStorage.removeItem("copiedConfig"),n.setSchema(c),n.setUiSchema(h)},elementPathHandler:function(y,c,h){return h==="Component"?y?`${y}.elements[${c}]`:`elements[${c}]`:y?`${y}.events[${c}]`:`events[${c}]`},ElementPathSetter:function(y,c){var v,x,F,A,B,U,ne,X,K,N,ae,Te,Z,qe,Se,Je,Ae,at,Ft,mn,gn,yn,hn,Yt,bn,xn;const h=c||JSON.parse(sessionStorage.getItem("copiedConfig"));(U=(B=(A=(F=(x=(v=y==null?void 0:y.elements)==null?void 0:v[1])==null?void 0:x.elements)==null?void 0:F[0])==null?void 0:A.config)==null?void 0:B.main)!=null&&U.headerIcons?y.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`:(qe=(Z=(Te=(ae=(N=(K=(X=(ne=y==null?void 0:y.elements)==null?void 0:ne[0])==null?void 0:X.elements)==null?void 0:K[1])==null?void 0:N.elements)==null?void 0:ae[0])==null?void 0:Te.config)==null?void 0:Z.main)!=null&&qe.headerIcons&&(y.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`),(mn=(Ft=(at=(Ae=(Je=(Se=y==null?void 0:y.elements)==null?void 0:Se[1])==null?void 0:Je.elements)==null?void 0:Ae[1])==null?void 0:at.config)==null?void 0:Ft.main)!=null&&mn.headerIcons?y.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Event: ${h.eventType}`:(xn=(bn=(Yt=(hn=(yn=(gn=y==null?void 0:y.elements)==null?void 0:gn[0])==null?void 0:yn.elements)==null?void 0:hn[1])==null?void 0:Yt.config)==null?void 0:bn.main)!=null&&xn.headerIcons&&(y.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.eventType}`)},onNavigatePopupYes:function(){try{n.navigate(sessionStorage.getItem("pendingNavigatePath")),n.updateDialog("pageNamepopup")}catch{n.updateDialog("pageNamepopup"),n.setNotify({FailMessage:"Couldn't navigate page",Fail:!0})}},onNavigatePopupNo:function(){n.updateDialog("pageNamepopup")}}),pageMaster=n=>{const{store:l,dynamicData:i,submitHandler:d,service:y}=n;return{setPage:async function(){const c=await this.getFormdata();l.setFormdata(c);const h=await this.getUiSchema(),v=await this.getSchema();l.setSchema(v),l.setUiSchema(h)},getFormdata:async function(){var x;const c=(x=l.searchParams)==null?void 0:x.get("id"),h=await n.pageConfigProvider(c),v=getFormdataFromSessionStorage();return v||(saveFormdataInSessionStorage(h),{...h,type:"page"})},getUiSchema:function(){const c=_.cloneDeep(PageMasterUiSchema(l.theme.myTheme));return sessionStorage.getItem("copiedConfig")&&Component(l,i,d,y).ElementPathSetter(c),c},getSchema:()=>{const c=_.cloneDeep(PageMasterSchema);return sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1),c},backHandler:()=>{sessionStorage.removeItem("pageFormdata"),l.navigate("/PageMasterRecords")},onAddClickHandler:function(){var v;const c=(v=l.searchParams)==null?void 0:v.get("id");Array.isArray(l.formData.elements)||(l.formData.elements=[]);const h=saveFormdataInSessionStorage(l.ctx.core.data);c?l.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}&id=${c}`):l.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}`)},saveHandler:async()=>await saveHandler(l,y,d),Edit_Components:Component(l,i,d,y).editComponents,Delete_Components:async function(){await Component(l,i,d,y).deleteComponents(!1),l.updateDialog("popUpPageMasterComponent")},eventAddHandler:function(){var v;const c=(v=l.searchParams)==null?void 0:v.get("id");Array.isArray(l.formData.events)||(l.formData.events=[]),saveFormdataInSessionStorage(l.ctx.core.data);const h=`events[${l.formData.events.length}]`;l.navigate(`/ComponentEvents?path=${h}&id=${c}`)},editEvent:function(){var x;const c=i.path.split(".")[1],h=(x=l.searchParams)==null?void 0:x.get("id");saveFormdataInSessionStorage(l.ctx.core.data);const v=`events[${c}]`;l.navigate(`/ComponentEvents?path=${v}&id=${h}`)},deleteEvent:function(){const c=sessionStorage.getItem("rowId");l.formData.events.splice(c,1);const h=saveFormdataInSessionStorage(l.ctx.core.data);l.setFormdata(h),l.updateDialog("popUpPageMasterEvent"),sessionStorage.removeItem("rowId")},deletePopUpComponent:function(){const c=i.path.split(".")[1];sessionStorage.setItem("rowId",c),l.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const c=i.path.split(".")[1];sessionStorage.setItem("rowId",c),l.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(l,i,d,y).copyPasteElement(l,this.setPage.bind(this))},RemoveItemButton:function(){Component(l,i,d,y).RemoveItemButton(l)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},eventType:{type:"string",oneOf:[{title:"Click",const:"onClick"},{title:"Load",const:"onLoad"},{title:"Change",const:"onChange"},{title:"Mount",const:"onMount"},{title:"Success",const:"Success"},{title:"Start",const:"onStart"},{title:"Cell Render",const:"onCellRenderer"},{title:"Upload",const:"onUpload"},{title:"FileDelete",const:"onFileDelete"},{title:"Download",const:"onDownload"},{title:"Back",const:"onBack"},{title:"Next",const:"onNext"},{title:"Row Movement",const:"onRowMovement"},{title:"Download",const:"onDownload"},{title:"Fail",const:"Fail"},{title:"Key Down",const:"onKeyDown"}]},Handler:{type:"string",oneOf:[{title:"Custom",const:"custom"},{title:"API",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}]},inBuiltFunctionType:{type:"string",oneOf:[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"},{title:"downloadFileFromUrl",const:"downloadFileFromUrl"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}},RemoveItemButton:{disabled:!0},pageName:{path:[{label:"defaultLabel",path:"defaultPath"}]}},required:["eventType","Handler"]},EventUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page-Events",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core","Response Events"],id:"event"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Event's Type",type:"text"}}},getSelectField("Handler","Handler"),{type:"Control",scope:"#/properties/EmptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}}]},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"addEvent",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0},action:[{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"Button"},config:{main:{size:"small",startIcon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent",name:"Edit"}}},{type:"Control",scope:"#/properties/RejectButton",options:{widget:"Button"},config:{main:{startIcon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent",name:"Delete",size:"small"}}},{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"Button"},config:{main:{startIcon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!1,name:"Copy",size:"small"}}}]},elements:[{accessorKey:"eventType",header:"Event's Type",size:300,type:"string"},{accessorKey:"Handler",header:"Handler",size:200,type:"string"}]}]},{type:"WrapperLayout",config:{main:{gap:"8px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Ok",variant:"contained",type:"text",onClick:"okHandler",size:"medium"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save & Exit",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:4,sm:7,md:8,lg:9}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpEvent",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",startIcon:"ApproveIcon",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{onNavigatePopupNo:"onNavigatePopupNo",onNavigatePopupYes:"onNavigatePopupYes"},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`,backgroundColor:n.palette.background.default}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=n==null?void 0:n.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}},{type:"Control",scope:"#/properties/headers",config:{layout:12,main:{label:"Headers",childElementLabel:"Headers"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]},{type:"Control",scope:"#/properties/body",config:{layout:12,main:{label:"Body",childElementLabel:"Body"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",config:{layout:12,main:{label:"Refresh Elements",childElementLabel:"Refresh Elements"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:8,lg:8},main:{}}}]}]};var event=(n,l,i,d,y)=>({setPage:async function(){const c=await this.getFormData();n.setFormdata(c);const h=await this.getSchema();console.log("SettingSchema>>",h),n.setSchema(h),this.refreshPage(c.Handler,n)},refreshPage:(c,h)=>{var ne,X,K;const v=_.cloneDeep(EventUiSchema(h.theme.myTheme)),x=_.cloneDeep(EventSchema);c&&(c==="custom"?(v.elements[0].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),v.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},v.elements[0].elements[0].elements[4]=getTextArea("eventCode","Write Custom Code",!1),x.required=["eventType","Handler","eventCode"]):c==="api"?(v.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),v.elements[0].elements[0].elements[3]=APISection,x.required=["eventType","Handler","method","path"]):c==="inBuiltFunction"?(v.elements[0].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),v.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},v.elements[0].elements[0].elements[4]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0),x.required=["eventType","Handler","inBuiltFunctionType"]):c==="refresh"&&(v.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),v.elements[0].elements[0].elements[3]=refreshSectionUiSchema,x.properties.refreshElements.required=["value"],x.properties.refreshElements.items.required=["value"],x.required=["eventType","Handler","refreshElements"])),y&&(x.properties.inBuiltFunctionType.oneOf=[...x.properties.inBuiltFunctionType.oneOf,...y]),sessionStorage.getItem("copiedConfig")&&(Component(h,l,i,d).ElementPathSetter(v),x.properties.RemoveItemButton.disabled=!1);const F=JSON.parse(sessionStorage.getItem("pageFormdata")),A=(ne=h.searchParams)==null?void 0:ne.get("path"),B=(X=h.searchParams)==null?void 0:X.get("id");let U=[{label:(K=F.name)!=null?K:"NewPage",path:`/PageMaster${B?`?id=${B}`:""}`}];if(A){const N=A.split("."),ae=[];N.map((Te,Z)=>{if(Z===0){ae.push(Te);return}ae.push(`${ae[Z-1]}.${Te}`)}),ae.map(Te=>{const Z=_.get(F,Te);U.push({label:(Z==null?void 0:Z.name)||(Z==null?void 0:Z.eventType)||"NewComponent",path:Z!=null&&Z.eventType?`/ComponentEvents?path=${Te}${B?`&id=${B}`:""}`:`/Component?path=${Te}${B?`&id=${B}`:""}`})})}x.properties.pageName.path=U,h.setSchema(x),h.setUiSchema(v)},getFormData:Component(n,l,i,d).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{var A,B,U;const c=_.cloneDeep(EventSchema);sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1);const h=JSON.parse(sessionStorage.getItem("pageFormdata")),v=(A=n.searchParams)==null?void 0:A.get("path"),x=(B=n.searchParams)==null?void 0:B.get("id");let F=[{label:(U=h.name)!=null?U:"NewPage",path:`/PageMaster${x?`?id=${x}`:""}`}];if(v){const ne=v.split("."),X=[];ne.map((K,N)=>{if(N===0){X.push(K);return}X.push(`${X[N-1]}.${K}`)}),X.map(K=>{const N=_.get(h,K);F.push({label:(N==null?void 0:N.name)||(N==null?void 0:N.eventType)||"NewComponent",path:N!=null&&N.eventType?`/ComponentEvents?path=${K}${x?`&id=${x}`:""}`:`/Component?path=${K}${x?`&id=${x}`:""}`})})}return c.properties.pageName.path=_.cloneDeep(F),c},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var c,h,v;((c=n==null?void 0:n.formData)==null?void 0:c.Handler)!==((h=n==null?void 0:n.newData)==null?void 0:h.Handler)&&((v=n==null?void 0:n.newData)==null?void 0:v.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var v,x,F;const c=(v=n.searchParams)==null?void 0:v.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,c);const h=`${c}.events[${(F=(x=n.formData)==null?void 0:x.events)==null?void 0:F.length}]`;n.searchParams.set("path",h),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var x;const c=l.path.split(".")[1],h=(x=n.searchParams)==null?void 0:x.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const v=`${h}.events[${c}]`;n.searchParams.set("path",v),n.setSearchParams(n.searchParams),this.setPage()},deleteEvent:async function(){await Component(n,l,i,d).deleteEvent(!1),n.updateDialog("popUpEvent")},backHandler:function(){n.navigate(-1)},deletePopUpEvent:function(){const c=l.path.split(".")[1];sessionStorage.setItem("rowId",c),n.updateDialog("popUpEvent")},copyPasteElement:function(){Component(n,l,i,d).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,l,i,d).RemoveItemButton(n)},onNavigatePopupYes:function(){try{n.navigate(sessionStorage.getItem("pendingNavigatePath")),n.updateDialog("pageNamepopup")}catch{n.updateDialog("pageNamepopup"),n.setNotify({FailMessage:"Couldn't navigate page",Fail:!0})}},onNavigatePopupNo:function(){n.updateDialog("pageNamepopup")}});function downloadFile$1({data:n,name:l}){var F;const i=window.atob(n),d=new Uint8Array(i.length);for(let A=0;A<i.length;A++)d[A]=i.charCodeAt(A);const y=(F=l.split(".").pop())==null?void 0:F.toLowerCase(),c={pdf:"application/pdf",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",csv:"text/csv"},h=new Blob([d],{type:c[y]||"application/octet-stream"}),v=URL.createObjectURL(h),x=document.createElement("a");x.href=v,x.download=l,x.click(),URL.revokeObjectURL(v)}const downloadFileFromUrl=(n,l)=>{let i=`${l.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((c,h)=>{i=i+`${h===0?"?":"&"}${c}=${n==null?void 0:n.params[c]}`});const d=document.createElement("a");d.href=i,document.body.appendChild(d),d.click(),d.parentNode.removeChild(d)},executeEvents=n=>{var y,c,h;let l=[],i=null;if(n.config.isSync!=="Yes")return shouldEventExecute(n).then(v=>{if(!v)throw new Error("onStart Event not allow to run Parent Events");return executeEventsHandler(n)}).then(v=>{var F;i=v,l=(F=n.config)==null?void 0:F.events.filter(A=>A.eventType==="Success")}).catch(v=>{var A,B;const x=(B=(A=n.config)==null?void 0:A.events)==null?void 0:B.filter(U=>U.eventType==="Fail");l=(x==null?void 0:x.length)>0?x:[]}).then(()=>{if((l==null?void 0:l.length)>0)return l.reduce((v,x)=>v.then(()=>executeEvents({...n,config:x,parentEventOutput:i})),Promise.resolve())}).then(()=>i);if(!shouldEventExecute(n))return{response:void 0,events:void 0};try{i=executeEventsHandler(n),l=(y=n.config)==null?void 0:y.events.filter(F=>F.eventType==="Success")}catch{const v=(h=(c=n.config)==null?void 0:c.events)==null?void 0:h.filter(F=>F.eventType==="Fail");l=(v==null?void 0:v.length)>0?v:[]}if((l==null?void 0:l.length)>0)for(const v of l)executeEvents({...n,config:v,parentEventOutput:i});return i};function executeEventsHandler(n){var l,i,d;if(n.config.Handler==="api")return executeApiRequest(n);if(n.config.Handler==="inBuiltFunction")return executeInBuiltFunctionHandler(n);if(n.config.Handler==="custom")return executeCustomHandler(n);if(n.config.Handler==="refresh")return executeRefreshHandler(n);if(n.config.Handler==="mergeFormdata")return mergeFormdata(n.parentEventOutput,n.componentName,n.config,n.store,n.formDataHolder);if(n.config.Handler==="onBackHandler")return(l=n.store.functionParameters)==null?void 0:l.handleBack();if(n.config.Handler==="onNextHandler")return(i=n.store.functionParameters)==null?void 0:i.handleNext();if(n.config.Handler==="onResetHandler")return(d=n.store.functionParameters)==null?void 0:d.handleReset()}function getRefreshElements(n,l){var d;let i=[];return((d=n==null?void 0:n.refreshElements)==null?void 0:d.length)>0?i=n.refreshElements.map(y=>y.value):l!=null&&l.onLoad&&(i=Object.keys(l==null?void 0:l.onLoad)),i}async function executeRefreshHandler(n){const l=getRefreshElements(n.config,n.eventGroups);return Promise.allSettled(l.map(i=>{const d=n.eventGroups.onLoad[i];return d?Promise.allSettled(d.map(y=>executeEvents({...n,config:y,componentName:i}))):Promise.resolve()}))}function executeApiRequest(n){var y;const l={...(y=n.userValue)==null?void 0:y.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},d=buildApiPayload(n.config,l,i,n.store,n.dynamicData,n.userValue,n.service);return n.service[n.config.method](n.config.path,d.body,{headers:d.headers}).then(c=>c)}function executeInBuiltFunctionHandler(params){let parameter={};if(params.config.funcParametersCode){const makeFunc=eval(params.config.funcParametersCode);parameter=makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service),params.serviceHolder[params.config.inBuiltFunctionType](parameter,params.service)}else params.serviceHolder[params.config.inBuiltFunctionType](params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service)}function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode);return params.config.isSync!=="Yes"?makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName).then(n=>n):makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName)}function mergeFormdata(n,l,i,d,y){var c,h,v;i.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(x=>{var F;return{...x,properties:{...x.properties,[l]:{...(F=x.properties)==null?void 0:F[l],oneOf:n.data}}}}):i.type==="MultipleSelect"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(x=>{var F;return{...x,properties:{...x.properties,[l]:{...(F=x.properties)==null?void 0:F[l],type:"array",items:{oneOf:n==null?void 0:n.data}}}}}):i.type==="page"?_.isEmpty(n==null?void 0:n.data)&&(n==null?void 0:n.data)&&lodash.exports.isObject(n.data)||(d.newData={...d.newData,...n==null?void 0:n.data},Object.keys(n.data).forEach(x=>{y[x]=n.data[x]})):i.type==="Table"&&i.lazyLoading?n&&(n==null?void 0:n.data)&&(y[l]=(c=n.data)==null?void 0:c.data,y[`${l}_RowCount`]=(v=(h=n.data)==null?void 0:h.meta)==null?void 0:v.totalRowCount):n!=null&&n.data&&(y[l]=n.data)}const buildBodyFormat=(n,l,i,d)=>{let y={...i==null?void 0:i.payload};return n.map(c=>{var h,v,x,F,A;if(typeof(c==null?void 0:c.value)!="string")y[c.key]=c.value;else if((h=c==null?void 0:c.value)!=null&&h.startsWith("$userValue")){const B=c.value.substring(11);y[c.key]=_.get(i,B)}else if((v=c==null?void 0:c.value)!=null&&v.startsWith("$urlParams")){const B=c.value.substring(11),U=(x=d==null?void 0:d.searchParams)==null?void 0:x.get(B);y[c.key]=U}else if((F=c==null?void 0:c.value)!=null&&F.startsWith("$local")){const B=c.value.substring(7),U=JSON.parse(sessionStorage.getItem(B)||'""');y[c.key]=U}else if((A=c==null?void 0:c.value)!=null&&A.startsWith("$")){const B=c.value.substring(1);y[c.key]=_.get(l,B)}else(c==null?void 0:c.value)==="*"&&(c==null?void 0:c.key)==="*"?y={...y,...l}:(c==null?void 0:c.value)==="*"?y[c.key]=l:y[c.key]=c.value}),y},buildHeadersFormat=n=>{const l={"X-Requested-With":"XMLHttpRequest"};return n.map(i=>{l[i.key]=i.value}),l};function shouldEventExecute(n){var i,d,y;const l=(d=(i=n.config)==null?void 0:i.events)==null?void 0:d.filter(c=>c.eventType==="onStart");return(l==null?void 0:l.length)>0?((y=l[0])==null?void 0:y.isSync)!=="Yes"?executeEventsHandler({...n,config:l[0]}).then(c=>c):executeEventsHandler({...n,config:l[0]}):n.config.isSync!=="Yes"?Promise.resolve(!0):!0}function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var n,l;compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((l=(n=store==null?void 0:store.ctx)==null?void 0:n.core)==null?void 0:l.data)||store.formData,userValue,store)});const promiseChain={body,headers};if(compConfig.apiBody){const makeFunc=eval(compConfig.apiBody);return{body:makeFunc(store,dynamicData,userValue,promiseChain.body),headers:promiseChain.headers}}return promiseChain}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6};let pageData=!1;const extractEvents=n=>{function l(i){i.events&&i.events.forEach(d=>{var c;i.type&&(compType=i.type),eventGroups[d.eventType]||(eventGroups[d.eventType]={}),eventGroups[d.eventType][i.name]||(eventGroups[d.eventType][i.name]=[]);const y=(c=d==null?void 0:d.events)==null?void 0:c.find(h=>h.eventType==="Success");!y&&d.eventType==="onLoad"&&(d.events||(d.events=[]),d.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!y&&(d.eventType==="onBack"||d.eventType==="onNext"||d.eventType==="onReset")&&(d.events||(d.events=[]),d.events.push({Handler:`${d.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),eventGroups[d.eventType][i.name].push({...d,type:compType})})}return l(n),n!=null&&n.elements&&n.elements.forEach(extractEvents),eventGroups};var service=n=>{const l={};let i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:{downloadFile:downloadFile$1,download:downloadFileFromUrl,...n.functionsProvider},eventGroups,functionsProvider:n.functionsProvider,formDataHolder:l};return{setPage:async function(){var v,x,F;n.store.setAdditionalErrors([]),n.store.setFormdata((n==null?void 0:n.initFormData())||{}),n.store.setSchema({type:"object",properties:{}}),n.store.newData={},eventGroups={},pageData=await n.pageDataProvider();const d=pageData==null?void 0:pageData.config,y=pageData==null?void 0:pageData.uiSchema,c=new CustomEvent("pageNameChanged",{detail:{pageName:d.label,hasBackIcon:d.hasBackIcon!=="NO"}});window.dispatchEvent(c),(x=(v=n==null?void 0:n.store)==null?void 0:v.theme)==null||x.myTheme;const h=(F=pageData==null?void 0:pageData.schema)!=null?F:{type:"object",properties:{}};eventGroups=extractEvents(d),i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,functionsProvider:n.functionsProvider,serviceHolder:this,eventGroups,formDataHolder:l},n.store.setSchema(A=>({...h,...A,properties:{...h.properties,...A.properties}})),executeRefreshHandler({config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:this,eventGroups,formDataHolder:l}).then(A=>{n.store.setFormdata(B=>({...B,...l})),y.elements.push(notifyUiSchema),n.store.setUiSchema(y)})},onCellRenderer:d=>{var c,h,v,x,F;const y=_.cloneDeep(eventGroups);if(y.onCellRenderer){let A={};const B=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||((v=(h=n==null?void 0:n.dynamicData)==null?void 0:h.path)==null?void 0:v.split(".")[0]);if((x=y==null?void 0:y.onCellRenderer)!=null&&x[B]){for(const U of(F=y==null?void 0:y.onCellRenderer)==null?void 0:F[B])i.store.functionParameters=d,A=executeEvents({...i,config:U,componentName:B});return A}}return{}},onClick:function(){this.callHandler("onClick")},onKeyDown:function(){this.callHandler("onKeyDown")},onFileDelete:async function(){this.callHandler("onFileDelete")},onMount:function(){this.callHandler("onMount")},onFileDownload:function(){this.callHandler("onDownload")},onFileUpload:function(){this.callHandler("onUpload")},backHandler:function(){n.store.navigate(-1)},onRowMovement:async function(d){const y=[{key:"direction",value:d.rowMovement.direction},{key:"movedRowId",value:d.rowMovement.movedRowId},{key:"targetRowId",value:d.rowMovement.targetRowId||[]}];await this.callExecuteEvents({path:d==null?void 0:d.path},y,"onRowMovement");const c=await this.callExecuteEvents({path:d==null?void 0:d.path},y,"onLoad");return c==null?void 0:c.data},onPaginationChange:async function(d){var h,v;const y=[{key:"size",value:d.pagination.pageSize},{key:"pageIndex",value:d.pagination.pageIndex},{key:"sorting",value:d.sorting||[]},{key:"filters",value:d.tableColumnConfig||[]},{key:"globalFilter",value:(h=d.globalFilter)!=null?h:""},{key:"expandedRowIds",value:(v=d.expandedRowIds)!=null?v:[]}],c=await this.callExecuteEvents(d,y,"onLoad");return c==null?void 0:c.data},getSelectOptions:async function(d){if(d.serachValue!==""&&d.serachValue!==void 0){const y=[{key:"searchValue",value:d.serachValue},{key:"currentValue",value:d.currentValue}],c=await this.callExecuteEvents(d,y,"onLoad");return c==null?void 0:c.data}},onChange:function(){if(!eventGroups.onChange)return;const y=Object.keys(eventGroups.onChange).flatMap(c=>{var h,v;return((h=n.store)==null?void 0:h.formData[c])===n.store.newData[c]||((v=n.store)==null?void 0:v.newData[c])===void 0?[]:eventGroups.onChange[c].map(x=>Promise.resolve(executeEvents({...i,config:x,componentName:c,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(F=>({...F,...l}))}))});Promise.allSettled(y)},callExecuteEvents:async function(d,y,c){var x,F;let h;const v=_.cloneDeep(eventGroups);for(const A of(x=v==null?void 0:v[c])==null?void 0:x[d.path]){A.body?A.body=[...A.body,...y]:A.body=y;const B=(F=A==null?void 0:A.events)==null?void 0:F.filter(U=>U.Handler!=="mergeFormdata");A.events=B!=null?B:[],h=await executeEvents({...i,config:A,componentName:d.path})}return h},onBack:async function(d){var c,h;const y=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onBack",d),((h=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:h[y])===void 0&&(d==null||d.handleBack())},onNext:async function(d){var c,h;const y=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onNext",d),((h=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:h[y])===void 0&&(d==null||d.handleNext())},onReset:async function(d){var c,h;const y=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onReset",d),((h=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:h[y])===void 0&&(d==null||d.handleReset())},callHandler:function(d,y){var v,x;const c=((v=n.dynamicData)==null?void 0:v.tableButtonPath)||n.dynamicData.path.split(".").pop();if(!((x=eventGroups==null?void 0:eventGroups[d])!=null&&x[c]))return;const h=eventGroups[d][c].map(F=>(i.store.functionParameters=y,Promise.resolve(executeEvents({...i,config:F,componentName:c,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(A=>({...A,...l}))})));Promise.allSettled(h)},downloadFile:downloadFile$1,downloadFileFromUrl,...n.functionsProvider}},leaderBoard={type:"Control",scope:"#/properties/path",options:{widget:"LeaderBoard"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{}}};const buildLeaderBoard=n=>{const l=_.cloneDeep(leaderBoard);if(n.elements){const i=n.elements.map((d,y)=>d.type?{...{widget:buildUiSchema(d),accessorKey:d.name,header:d.label||d.name}}:{accessorKey:d.name,header:d.label||d.name});l.elements=i}return l.config.main.label=n.label,n.name&&(l.scope=`#/properties/${n.name}`),n.firstImage&&(l.config.main.firstImage=n.firstImage),n.secondImage&&(l.config.main.secondImage=n.secondImage),n.thirdImage&&(l.config.main.thirdImage=n.thirdImage),n.nameKey&&(l.config.main.nameKey=n.nameKey),n.imageKey&&(l.config.main.imageKey=n.imageKey),n.scoreKey&&(l.config.main.scoreKey=n.scoreKey),n.layout&&(l.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(l.config.style=JSON.parse(n.style)),l};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(n,l)=>{const i=_.cloneDeep(progressBar);return i.scope=l,n.heading&&(i.config.main.heading=n.heading),n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=n.bottomLabel_1),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildProgressBar=(n,l)=>{const i=_.cloneDeep(progressBar);return i.scope=l,n.layout&&(i.config.layout=n.layout),i.config.main.heading=n.label,n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.config.main.bottomLabel_1=n.bottomLabel_1),i},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"BarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},barStyle:{}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"PieGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"LineGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"HorizontalBarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},barStyle:{}}}},buildHorizontalBarGraph=(n,l)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=l,n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),i.config.main.type=n.graphType,i.scope=l,i.config.main.header=n.heading,n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(n,l)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=l,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.heading&&(i.config.main.header=n.heading),n.segments&&(i.config.main.segments=n.segments),n.style){const d=JSON.parse(n.style);d!=null&&d.style&&(i.config.style={...i.config.style,...d.style}),d!=null&&d.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...d.containerStyle})}return n.width&&(i.config.main.width=n.width),n.speedoCaption&&(i.config.main.currentValueText=n.speedoCaption),n.data&&(i.config.main.data=n.data),n.needleColor&&(i.config.style.needleColor=n.needleColor),n.segments&&(i.config.style.segments=n.segments),n.endColor&&(i.config.style.endColor=n.endColor),n.startColor&&(i.config.style.startColor=n.startColor),n.segmentColors&&(i.config.style.segmentColors=n.segmentColors),i},buildPieGraph=(n,l)=>{const i=_.cloneDeep(PieGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.height&&(i.config.style.containerStyle.height=n.height),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),i.scope=l,i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i},buildStackbarGraph=(n,l)=>{var d;const i=_.cloneDeep(BarGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.legendHide&&(i.config.main.legendAvailable=n.legendHide,i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),i.config.main.type=(d=n==null?void 0:n.graphType)!=null?d:"BarGraph",i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i.scope=l,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{}}};const RunnerBoyProgressbar=(n,l)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=l,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(n,l)=>{const i=_.cloneDeep(Tabsection);return i.scope=l,n.lazyLoad&&(i.config.main.lazyLoad=n.lazyLoad==="YES"),n.orientation&&(i.config.main.orientation=n.orientation==="YES"?"vertical":"horizontal"),n.sectionLabels&&(i.config.main.tabLabels=n.sectionLabels.map(d=>d.label)),n.style&&(i.config.style=JSON.parse(n.style)),i.config.main.id=n.name,i};var WrapperSection={type:"WrapperLayout",config:{layout:12,main:{rowSpacing:3,divider:!0,label:"Default Label"},defaultStyle:!0},elements:[]};const buildWrapperSection=(n,l)=>{const i=_.cloneDeep(WrapperSection);return i.scope=l,i.config.main.label=n.label,i.config.main.divider=n.divider==="YES",i.config.main.isAccordion=n.isAccordion!=="No",n.defaultStyle&&(i.config.defaultStyle=n.defaultStyle==="YES"),n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:""},style:{}}};const buildTextField=(n,l)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.multiline&&(i.config.main.multiline=n.multiline==="YES"),n.keyName&&(i.config.main.keyName=n.keyName),n.InputFormatingAndMasking&&(i.config.main.formatStrArray=n.InputFormatingAndMasking.map(d=>d.formatElement)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.variant&&(i.config.main.variant=n.variant),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=l,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(n,l)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=n.label,n.value&&(i.config.main.options=n.value),n.freeSolo&&(i.config.main.freeSolo=n.freeSolo==="YES"),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.variant&&(i.config.main.variant=n.variant),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.scope=l,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Compare",variant:"contained",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(n,l)=>{const i=_.cloneDeep(Button);return n.buttonType&&(i.options.widget=n.buttonType==="IconButton"?"IconButton":"Button",n.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=n.iconName:i.config.main.icon=n.iconName),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.tooltipMessage&&(i.config.main.tooltipMessage=n.tooltipMessage),n.defaultStyle&&(n.buttonType==="IconButton"?i.config.main.styleDefault=n.defaultStyle==="true":i.config.main.enableDefaultStyle=n.defaultStyle!=="true"),i.scope=l,n.style&&(i.config.style=JSON.parse(n.style)),n.size&&(i.config.main.size=n.size),n.color&&(i.config.main.color=n.color),n.label&&(i.config.main.name=n.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{layout:12,main:{onMount:"onMount",enableExpandAll:!0,headerIcons:{},allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(n,l)=>{const i=_.cloneDeep(Table);return i.scope=l,n.style&&(i.config.style=JSON.parse(n.style)),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.defaultColumnSize&&(i.config.main.defaultColumnSize=n.defaultColumnSize),n.enableRowMovement&&(i.config.main.enableRowMovement=n.enableRowMovement==="YES"),n.enableExpanding&&(i.config.main.enableExpanding=n.enableExpanding==="YES"),n.enableExpandAll&&(i.config.main.enableExpandAll=n.enableExpandAll==="YES"),n.filterFromLeafRows&&(i.config.main.filterFromLeafRows=n.filterFromLeafRows==="YES"),n.paginateExpandedRows&&(i.config.main.paginateExpandedRows=n.paginateExpandedRows==="YES"),n.treeStructure&&(i.config.main.treeStructure=n.treeStructure==="YES"?"flatTreeMap":!1),n.SelectionAvailable&&(i.config.main.Selection=n.SelectionAvailable==="YES"),n.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=n.ColumnResizingAvailable!=="YES"),n.DragAvailable&&(i.config.main.enableDrag=n.DragAvailable==="YES"),n.downloadAllData&&(i.config.main.downloadAllData=n.downloadAllData==="YES"),n.disableGlobalSearch&&(i.config.main.disableGlobalSearch=n.disableGlobalSearch==="YES"),n.disableColumnFilter&&(i.config.main.disableColumnFilter=n.disableColumnFilter==="YES"),n.disableSorting&&(i.config.main.disableSorting=n.disableSorting==="YES"),n.disableEditColumn&&(i.config.main.disableEditColumn=n.disableEditColumn==="YES"),n.disableFullScreenToggle&&(i.config.main.disableFullScreenToggle=n.disableFullScreenToggle==="YES"),n.disableDensityToggle&&(i.config.main.disableDensityToggle=n.disableDensityToggle==="YES"),n.disableDownloadFile&&(i.config.main.disableDownloadFile=n.disableDownloadFile==="YES"),n.disablePagination&&(i.config.main.disablePagination=n.disablePagination==="YES"),n.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=n.Table_Download_Keys_Name.map(d=>d.KeyName)),n.selectKey&&(i.config.main.selectKey=n.selectKey),n.maxPageSize&&(i.config.main.maxPageSize=n.maxPageSize),n.initialDensity&&(i.config.main.initialDensity=n.initialDensity),i},Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{iconName:""},style:{}}},buildLabel=(n,l)=>{const i=_.cloneDeep(Box);return i.scope=l,i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.iconName&&(i.config.main.iconName=n.iconName),n.style&&(i.config.style=JSON.parse(n.style)),i},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:3}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:3}},options:{widget:"DownloadFile"}},buildUploadFile=(n,l)=>{const i=_.cloneDeep(uploadFile);return i.scope=l,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),i.config.main.errorMessage=n.errorMessage,i},buildDownloadFile=(n,l)=>{const i=_.cloneDeep(downloadFile);return i.scope=l,i.config.main.label=n.label,n.layout&&(i.config.layout=n.layout),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),i};function Card(n){return{type:"WrapperLayout",config:{main:{},wrapperStyle:{position:"relative",top:"50%",transform:"translateY(-50%)",marginBottom:0},componentsBoxStyle:{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",flexDirection:"row",flexWrap:"nowrap",width:"100% !important",background:"transparent",border:`1.5px solid ${n.palette.primary.light}`,borderRadius:"8px",padding:"0px 4px",height:"100%",alignItems:"center",marginLeft:"0px","&: hover":{background:`${n.palette.primary.main}`,border:"1.5px solid black","& p":{color:"white"}}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"HorizontalLayout",config:{layout:9},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent",marginBottom:0},componentsBoxStyle:{flexDirection:"column",flexWrap:"nowrap",width:"100%",height:"inherit",background:"transparent",borderRadius:"0px",paddingRight:0},layout:12},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent",marginBottom:0},componentsBoxStyle:{flexDirection:"row",flexWrap:"nowrap",width:"100%",height:"0",background:"transparent",borderRadius:"0px",marginLeft:"-10px",marginTop:"-8px",justifyContent:"start",position:"relative"},layout:12},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:""},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",marginLeft:"-24px",height:0}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"5000.00"},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",position:"absolute",left:"24px"}},options:{widget:"Box"}}]},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{color:"black",fontSize:"16px",justifyContent:"center",whiteSpace:"nowrap",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none",msOverflowStyle:"none",background:"inherit",width:"calc(100% + 8px)",margin:"-8px",marginTop:{xs:"16px",md:"20px"},"&::-webkit-scrollbar":{display:"none"}},layout:12},options:{widget:"Box"}}]}]},{type:"Control",scope:"#/properties/programType",config:{main:{url:"https://www.svgrepo.com/show/500606/loading.svg"},style:{containerStyle:{height:"100%",display:"flex",justifyContent:"end"},imageStyle:{width:"unset",fontSize:"none",padding:"4px",margin:"0px 0px 0px 8px",height:"64px"}},layout:3},options:{widget:"Image"}}]}}const buildCard=(config,componentScope,store)=>{const card=_.cloneDeep(Card(store.theme.myTheme));return config.style&&(card.config.wrapperStyle=JSON.parse(config.style)),card.elements[0].elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/value`,card.elements[1].scope=`#/properties/${config.name}/properties/url`,card.elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/description`,config.layout&&(card.config.layout=createLayoutFormat(config.layout)),config!=null&&config.titleIcon&&(card.elements[0].elements[0].elements[0].elements[0].config.main.heading=eval(`'\\${config.titleIcon}'`),card.elements[0].elements[0].elements[0].elements[1].config.style.left="24px"),config.label&&(card.elements[0].elements[0].elements[0].elements[1].config.main.heading=config.label),config.url&&(card.elements[1].config.main.url=config.url),config.description&&(card.elements[0].elements[0].elements[1].config.main.heading=config.description),card};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"",type:"date"}}};const DateTime={type:"Control",scope:"#/properties/date",options:{widget:"DateTimeInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"DateTime",type:"date"}}},buildDate=(n,l)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=l,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.variant&&(i.config.main.variant=n.variant),i},buildDateTime=(n,l)=>{const i=_.cloneDeep(DateTime);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=l,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.variant&&(i.config.main.variant=n.variant),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:12,sm:6,md:6,lg:6},main:{}}};const buildRankCard=(n,l)=>{const i=_.cloneDeep(RankCard);return i.scope=l,n.rank&&(i.config.main.rank=`${n.rank}`),n.height&&(i.config.main.height=`${n.height}px`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RollAndDice={type:"Control",scope:"#/properties/path",options:{widget:"RollAndDice"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRollAndDice=(n,l)=>{const i=_.cloneDeep(RollAndDice);return n.name&&(i.scope=l),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{},style:{}}};const buildTimer=(n,l)=>{const i=_.cloneDeep(Timer);return i.scope=l,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"",type:"text",multiple:!0,variant:"outlined",options:[]}}};const buildMultiSelect=(n,l)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=l,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.value&&(i.config.main.options=n.value),n.variant&&(i.config.main.variant=n.variant),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),i},buildBasicUiSchema=n=>({type:"HorizontalLayout",pageName:n.name,name:n.name,accessorKey:n.name,heading:n.label||n.name,elements:[]}),TextArea={type:"Control",scope:"#/properties/textarea",options:{widget:"TextArea"},config:{layout:12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(n,l)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(i.config.style=JSON.parse(n.style)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.enableCodeEditor&&(i.config.main.enableCodeEditor=n.enableCodeEditor==="YES"),n.codeEditorLanguage&&(i.config.main.codeEditorLanguage=n.codeEditorLanguage),i.scope=l,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(n,l)=>{const i=_.cloneDeep(cardSlider);return n.name&&(i.scope=l),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",options:{widget:"CheckBox"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Welcome to Hyperform"}}},buildCheckbox=(n,l)=>{const i=_.cloneDeep(Checkbox);return i.scope=l,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},buildLineGraph=(n,l)=>{const i=_.cloneDeep(LineGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),i.config.main.header=n.heading,n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.yAxisValue&&(i.config.main.yAxisValue=n.yAxisValue),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i.scope=l,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Enabled",options:["YES","NO"]}}},buildRadio=(n,l)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=l,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.sectionLabels&&(i.config.main.options=n.sectionLabels.map(d=>d.label||d.Options)),n.style&&(i.config.style=JSON.parse(n.style)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{},style:{}}};const buildEmptyBox=(n,l)=>{const i=_.cloneDeep(emptyBox);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:12,elements:[],config:{main:{}}},buildArray=(n,l)=>{const i=_.cloneDeep(ArrayUiSchema);return n.allExpanded&&(i.config.main.allExpanded=n.allExpanded==="YES"),n.disableAddButton&&(i.config.main.disableAddButton=n.disableAddButton==="YES"),n.disableExpandAllButton&&(i.config.main.disableExpandAllButton=n.disableExpandAllButton==="YES"),n.disableRowActions&&(i.config.main.disableRowActions=n.disableRowActions==="YES"),n.style&&(i.config.style=JSON.parse(n.style)),i.config.main.childElementLabel=n.childElementLabel,i.config.main.label=n.label,i.scope=l,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(n,l)=>{const i=_.cloneDeep(TextField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=l,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(n,l)=>{const i=_.cloneDeep(PanField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=l,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(n,l)=>{const i=_.cloneDeep(FileInput);return i.scope=l,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),n.variant&&(i.config.main.variant=n.variant),n.disableUpload&&(i.config.main.disableUpload=n.disableUpload==="YES"),n.disableDownload&&(i.config.main.disableDownload=n.disableDownload==="YES"),n.disableDelete&&(i.config.main.disableDelete=n.disableDelete==="YES"),i},Stepper={type:"Control",scope:"#/properties/Stepper",options:{widget:"Stepper"},config:{main:{steps:[{label:"First"},{label:"Second"},{label:"Third"}],resetButton:!1,resetText:"Reset",orientation:"vertical"}},elements:[]},buildStepper=(n,l)=>{const i=_.cloneDeep(Stepper);return i.scope=l,i.config.main.resetButton=n.resetButton==="YES",n.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=n.defaultButtonAvailable==="YES"),i.config.main.resetText=n.resetText||"ResetData",i.config.main.completeText=n.completeText||"Complete Text",i.config.main.orientation=n.orientation||"horizontal",n.sectionLabels&&(i.config.main.steps=n.sectionLabels.map((d,y)=>({label:d.label,id:y}))),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(n,l)=>{const i=_.cloneDeep(PopUP);return i.scope=l,i.config.main.title=n.label,i.config.main.fullScreen=n.fullScreen==="YES",i.config.main.fullWidth=n.fullWidth==="YES",i.config.main.maxWidth=n.maxWidth||!1,n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(i.config.style=JSON.parse(n.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(n,l)=>{const i=_.cloneDeep(dataGrid);return i.scope=l,n.elevation&&(i.config.main.elevation=+n.elevation),i.config.main.divider=n.divider!=="NO",n.height&&(i.config.main.height=`${n.height}px`),n.justifyContent&&(i.config.main.justifyContent=n.justifyContent),n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.cardLayout&&(i.config.cardLayout=createLayoutFormat(n.cardLayout,n.type)),n.style&&(i.config.style=JSON.parse(n.style)),i},InputSlider={type:"Control",scope:"#/properties/inputSlider",options:{widget:"InputSlider"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{limitToMax:!1,max:1e4,step:1e3,min:0,label:"Slider"}}},buildInputSlider=(n,l)=>{const i=_.cloneDeep(InputSlider);return i.scope=l,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.limitToMax&&(i.config.main.limitToMax=n.limitToMax==="YES"),n.max&&(i.config.main.max=n.max),n.step&&(i.config.main.step=n.step),n.min&&(i.config.main.min=n.min),n.style&&(i.config.main.defaultStyle=JSON.parse(n.style)),i},TreeMap={type:"Control",scope:"#/properties/TreeMap2",config:{layout:12,main:{layout:"cartsian",orientation:"vertical",header:"Territory Hierarchy",linkType:"step",graphHeight:"500px"},style:{BoxStyle:{borderRadius:"5px"}}},options:{widget:"TreeMap"},elements:[]},buildTreeMap=(n,l)=>{const i=_.cloneDeep(TreeMap);return i.scope=l,n.label&&(i.config.main.header=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.orientation&&(i.config.main.orientation=n.orientation),n.linkType&&(i.config.main.linkType=n.linkType),n.graphHeight&&(i.config.main.graphHeight=n.graphHeight),n.graphWidth&&(i.config.main.graphWidth=n.graphWidth),n.graphZoomHeight&&(i.config.main.graphZoomHeight=n.graphZoomHeight),n.graphZoomWidth&&(i.config.main.graphZoomWidth=n.graphZoomWidth),n.style&&(i.config.style=JSON.parse(n.style)),i};var Thought={type:"Control",scope:"#/properties/path",options:{widget:"Thought"},config:{layout:{xs:11.5,sm:11.5,md:8,lg:8},main:{}}};const buildThoughtOfTheDay=(n,l)=>{const i=_.cloneDeep(Thought);return i.scope=l,n.thought&&(i.config.main.thought=`${n.thought}`),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.label&&(i.config.main.label=n.label),n.style&&(i.config.style=JSON.parse(n.style)),i};var horizontalLayout={type:"HorizontalLayout",config:{layout:12,main:{rowSpacing:3,divider:!1},defaultStyle:!0},elements:[]};const buildHorizontalLayout=(n,l)=>{const i=_.cloneDeep(horizontalLayout);return i.scope=l,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),i},imageUiSchema={type:"Control",scope:"#/properties/Logo",options:{widget:"Image"},config:{layout:3,main:{url:""},style:{}}},buildImage=(n,l)=>{const i=_.cloneDeep(imageUiSchema);return i.scope=l,i.config.main.url=n.imageUrl,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),n.height&&(i.config.style.imageStyle={...i.config.style.imageStyle,height:n.height}),i};exports.schema={type:"object",properties:{},required:[]};function buildSchemaFromConfig(n,l){var d,y,c,h,v,x,F,A,B,U,ne,X,K;if(n.elements)if(n.type==="Array"){(d=l.properties)!=null||(l.properties={}),(h=(y=l.properties)[c=n.name])!=null||(y[c]={type:"array",items:{type:"object",properties:{},required:[]}});const N=l.properties[n.name].items;(v=n.elements)==null||v.forEach(ae=>buildSchemaFromConfig(ae,N));return}else{(x=n.elements)==null||x.forEach(N=>buildSchemaFromConfig(N,l));return}(F=l.properties)!=null||(l.properties={}),(U=(A=l.properties)[B=n.name])!=null||(A[B]={});const i=l.properties[n.name];(ne=n.validation)==null||ne.forEach(N=>{var ae;N.validationType==="required"?((ae=l.required)!=null||(l.required=[]),l.required.push(n.name)):N.validationType==="readOnly"?(i.type="string",i.disabled=!0):(i.type="string",i[N.validationType]=isNaN(N.validationValue)?N.validationValue:Number(N.validationValue))}),n.type==="Select"&&((X=n.value)==null?void 0:X.length)&&(i.oneOf=n.value.map(N=>({const:N.value,title:N.label}))),n.type==="MultipleSelect"&&((K=n.value)==null?void 0:K.length)&&(i.type="array",i.items={oneOf:n.value.map(N=>({const:N.value,title:N.label}))})}const buildSchema=n=>(buildSchemaFromConfig(n,exports.schema),exports.schema),buildUiSchema=(n,l)=>{let i={};const d=`#/properties/${n.name}`;switch(n.type){case"TreeMap":i=buildTreeMap(n,d);break;case"DateTime":i=buildDateTime(n,d);break;case"InputSlider":i=buildInputSlider(n,d);break;case"DataGrid":i=buildDataGrid(n,d);break;case"Stepper":i=buildStepper(n,d);break;case"PopUp":i=buildPopUp(n,d);break;case"FileInput":i=buildFileInput(n,d);break;case"AadharcardText":i=buildAdhaarField(n,d);break;case"PanCardText":i=buildPanField(n,d);break;case"TabSection":i=buildTabSection(n,d);break;case"RunnerBoyProgressBar":i=RunnerBoyProgressbar(n,d);break;case"WrapperSection":i=buildWrapperSection(n,d);break;case"HorizontalLayout":i=buildHorizontalLayout(n,d);break;case"Text":i=buildTextField(n,d);break;case"TextArea":i=buildTextArea(n,d);break;case"Date":i=buildDate(n,d);break;case"Select":i=buildSelect(n,d);break;case"Radio":i=buildRadio(n,d);break;case"Button":i=buildButton(n,d);break;case"Table":i=buildTable(n,d);break;case"Array":i=buildArray(n,d);break;case"Box":i=buildLabel(n,d);break;case"CheckBox":i=buildCheckbox(n,d);break;case"UploadFile":i=buildUploadFile(n,d);break;case"DownloadFile":i=buildDownloadFile(n,d);break;case"EmptyBox":i=buildEmptyBox(n);break;case"card":i=buildCard(n,d,l);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":i=buildStackbarGraph(n,d);break;case"LineGraph":i=buildLineGraph(n,d);break;case"PieGraph":i=buildPieGraph(n,d);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":i=buildHorizontalBarGraph(n,d);break;default:i=buildStackbarGraph(n,d);break}break;case"ProgressBar":i=buildProgressBar(n,d);break;case"SpeedoMeter":i=buildSpeedoMeter(n,d);break;case"ProgressBarCard":i=buildProgressBarCard(n,d);break;case"RankCard":i=buildRankCard(n,d);break;case"Rank":i=buildRollAndDice(n,d);break;case"Slider":i=buildSlider(n,d);break;case"Timer":i=buildTimer(n,d);break;case"ColumnGroup":i={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":i=buildMultiSelect(n,d);break;case"LeaderBoard":i=buildLeaderBoard(n);break;case"Thought":i=buildThoughtOfTheDay(n,d);break;case"Image":i=buildImage(n,d);break;default:exports.schema={type:"object",properties:{},required:[]},i=buildBasicUiSchema(n)}if(n!=null&&n.elements){if((n==null?void 0:n.type)==="LeaderBoard")return i;if(n.type=="ColumnGroup"){const y={};n.sizeHolder&&n.sizeHolder.map((c,h)=>{y[c.keyName]=c.value}),i.elements=n.elements.map((c,h)=>{const v={accessorKey:c.name,type:c.type==="ColumnGroup"?"ColumnGroup":c.columnFormat,header:c.label||c.name,size:y[c.name]||180,enableColumnFilter:c.enableFilter!=="No",columnFilterModeOptions:c.filteringOptions,enableSorting:c.enableSorting!=="No",columnKey:c.columnKey,dateFormat:c.dateFormat};return c.type?{widget:c.type!="ColumnGroup"?buildUiSchema(c,l):void 0,...v,...c.type==="ColumnGroup"?buildUiSchema(c,l):{}}:{...v}})}else if(n.type=="Table"){const y={};n.sizeHolder&&n.sizeHolder.map((x,F)=>{y[x.keyName]=x.value});const c=[],h=[],v=[];n.elements.filter((x,F)=>{const A={accessorKey:x.name,type:x.type==="ColumnGroup"?"ColumnGroup":x.columnFormat,header:x.label||x.name,size:y[x.name]||180,enableColumnFilter:x.enableFilter!=="No",columnFilterModeOptions:x.filteringOptions,enableSorting:x.enableSorting!=="No",columnKey:x.columnKey,dateFormat:x.dateFormat};if(x.type){if(x.elementType=="action"){const U=buildUiSchema(x,l);return h.push(U),!1}if(x.elementType=="tableHeader"){const U=buildUiSchema(x,l);return c.push({widget:U}),!1}const B={widget:x.type!="ColumnGroup"?buildUiSchema(x,l):void 0,...A,...x.type==="ColumnGroup"?buildUiSchema(x,l):{}};v.push(B)}else v.push({...A})}),i.elements=v,i.config.action=h,i.config.main.headerIcons.elements=c}else i.elements=n.elements.map((y,c)=>buildUiSchema(y,l))}return i};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromSessionStorage=clearFromSessionStorage,exports.downloadFile=downloadFile$1,exports.downloadFileFromUrl=downloadFileFromUrl,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
27
|
+
}`;var H=pl(function(){return G(p,L+"return "+I).apply(i,u)});if(H.source=I,_i(H))throw H;return H}function pm(e){return V(e).toLowerCase()}function um(e){return V(e).toUpperCase()}function cm(e,t,o){if(e=V(e),e&&(o||t===i))return br(e);if(!e||!(t=_e(t)))return e;var r=ze(e),a=ze(t),p=xr(r,a),u=vr(r,a)+1;return gt(r,p,u).join("")}function dm(e,t,o){if(e=V(e),e&&(o||t===i))return e.slice(0,Cr(e)+1);if(!e||!(t=_e(t)))return e;var r=ze(e),a=vr(r,ze(t))+1;return gt(r,0,a).join("")}function fm(e,t,o){if(e=V(e),e&&(o||t===i))return e.replace(_o,"");if(!e||!(t=_e(t)))return e;var r=ze(e),a=xr(r,ze(t));return gt(r,a).join("")}function mm(e,t){var o=mn,r=gn;if(te(t)){var a="separator"in t?t.separator:a;o="length"in t?k(t.length):o,r="omission"in t?_e(t.omission):r}e=V(e);var p=e.length;if(Dt(e)){var u=ze(e);p=u.length}if(o>=p)return e;var f=o-Rt(r);if(f<1)return r;var g=u?gt(u,0,f).join(""):e.slice(0,f);if(a===i)return g+r;if(u&&(f+=g.length-f),Ii(a)){if(e.slice(f).search(a)){var C,w=g;for(a.global||(a=Uo(a.source,V(zi.exec(a))+"g")),a.lastIndex=0;C=a.exec(w);)var I=C.index;g=g.slice(0,I===i?f:I)}}else if(e.indexOf(_e(a),f)!=f){var E=g.lastIndexOf(a);E>-1&&(g=g.slice(0,E))}return g+r}function gm(e){return e=V(e),e&&Il.test(e)?e.replace(Oi,$s):e}var ym=zt(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Ti=ua("toUpperCase");function sl(e,t,o){return e=V(e),t=o?i:t,t===i?ks(e)?Ks(e):As(e):e.match(t)||[]}var pl=z(function(e,t){try{return Ce(e,i,t)}catch(o){return _i(o)?o:new N(o)}}),hm=tt(function(e,t){return Le(t,function(o){o=Ve(o),je(e,o,Ci(e[o],e))}),e});function bm(e){var t=e==null?0:e.length,o=D();return e=t?ee(e,function(r){if(typeof r[1]!="function")throw new De(h);return[o(r[0]),r[1]]}):[],z(function(r){for(var a=-1;++a<t;){var p=e[a];if(Ce(p[0],this,r))return Ce(p[1],this,r)}})}function xm(e){return $p(Pe(e,B))}function Ai(e){return function(){return e}}function vm(e,t){return e==null||e!==e?t:e}var Sm=da(),Cm=da(!0);function ve(e){return e}function Bi(e){return Yr(typeof e=="function"?e:Pe(e,B))}function wm(e){return Wr(Pe(e,B))}function _m(e,t){return Gr(e,Pe(t,B))}var Im=z(function(e,t){return function(o){return ln(o,e,t)}}),Em=z(function(e,t){return function(o){return ln(e,o,t)}});function Li(e,t,o){var r=pe(t),a=Vn(t,r);o==null&&!(te(t)&&(a.length||!r.length))&&(o=t,t=e,e=this,a=Vn(t,pe(t)));var p=!(te(o)&&"chain"in o)||!!o.chain,u=ot(e);return Le(a,function(f){var g=t[f];e[f]=g,u&&(e.prototype[f]=function(){var C=this.__chain__;if(p||C){var w=e(this.__wrapped__),I=w.__actions__=he(this.__actions__);return I.push({func:g,args:arguments,thisArg:e}),w.__chain__=C,w}return g.apply(e,pt([this.value()],arguments))})}),e}function Fm(){return ue._===this&&(ue._=Qs),this}function Di(){}function Tm(e){return e=k(e),z(function(t){return Kr(t,e)})}var Am=pi(ee),Bm=pi(fr),Lm=pi(Po);function ul(e){return yi(e)?Mo(Ve(e)):au(e)}function Dm(e){return function(t){return e==null?i:wt(e,t)}}var Rm=ma(),Pm=ma(!0);function Ri(){return[]}function Pi(){return!1}function Mm(){return{}}function Nm(){return""}function Om(){return!0}function km(e,t){if(e=k(e),e<1||e>lt)return[];var o=We,r=de(e,We);t=D(t),e-=We;for(var a=ko(r,t);++o<e;)t(o);return a}function Hm(e){return O(e)?ee(e,Ve):Ie(e)?[e]:he(Ba(V(e)))}function zm(e){var t=++Xs;return V(e)+t}var Um=jn(function(e,t){return e+t},0),Ym=ui("ceil"),$m=jn(function(e,t){return e/t},1),Wm=ui("floor");function Gm(e){return e&&e.length?Kn(e,ve,Jo):i}function Km(e,t){return e&&e.length?Kn(e,D(t,2),Jo):i}function Vm(e){return yr(e,ve)}function qm(e,t){return yr(e,D(t,2))}function Jm(e){return e&&e.length?Kn(e,ve,jo):i}function Xm(e,t){return e&&e.length?Kn(e,D(t,2),jo):i}var Zm=jn(function(e,t){return e*t},1),Qm=ui("round"),jm=jn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Oo(e,ve):0}function tg(e,t){return e&&e.length?Oo(e,D(t,2)):0}return s.after=Cd,s.ary=Ua,s.assign=uf,s.assignIn=tl,s.assignInWith=fo,s.assignWith=cf,s.at=df,s.before=Ya,s.bind=Ci,s.bindAll=hm,s.bindKey=$a,s.castArray=Pd,s.chain=ka,s.chunk=$u,s.compact=Wu,s.concat=Gu,s.cond=bm,s.conforms=xm,s.constant=Ai,s.countBy=jc,s.create=ff,s.curry=Wa,s.curryRight=Ga,s.debounce=Ka,s.defaults=mf,s.defaultsDeep=gf,s.defer=wd,s.delay=_d,s.difference=Ku,s.differenceBy=Vu,s.differenceWith=qu,s.drop=Ju,s.dropRight=Xu,s.dropRightWhile=Zu,s.dropWhile=Qu,s.fill=ju,s.filter=td,s.flatMap=id,s.flatMapDeep=rd,s.flatMapDepth=ad,s.flatten=Pa,s.flattenDeep=ec,s.flattenDepth=tc,s.flip=Id,s.flow=Sm,s.flowRight=Cm,s.fromPairs=nc,s.functions=Cf,s.functionsIn=wf,s.groupBy=ld,s.initial=ic,s.intersection=rc,s.intersectionBy=ac,s.intersectionWith=lc,s.invert=If,s.invertBy=Ef,s.invokeMap=pd,s.iteratee=Bi,s.keyBy=ud,s.keys=pe,s.keysIn=xe,s.map=ao,s.mapKeys=Tf,s.mapValues=Af,s.matches=wm,s.matchesProperty=_m,s.memoize=so,s.merge=Bf,s.mergeWith=nl,s.method=Im,s.methodOf=Em,s.mixin=Li,s.negate=po,s.nthArg=Tm,s.omit=Lf,s.omitBy=Df,s.once=Ed,s.orderBy=cd,s.over=Am,s.overArgs=Fd,s.overEvery=Bm,s.overSome=Lm,s.partial=wi,s.partialRight=Va,s.partition=dd,s.pick=Rf,s.pickBy=ol,s.property=ul,s.propertyOf=Dm,s.pull=cc,s.pullAll=Na,s.pullAllBy=dc,s.pullAllWith=fc,s.pullAt=mc,s.range=Rm,s.rangeRight=Pm,s.rearg=Td,s.reject=gd,s.remove=gc,s.rest=Ad,s.reverse=vi,s.sampleSize=hd,s.set=Mf,s.setWith=Nf,s.shuffle=bd,s.slice=yc,s.sortBy=Sd,s.sortedUniq=wc,s.sortedUniqBy=_c,s.split=rm,s.spread=Bd,s.tail=Ic,s.take=Ec,s.takeRight=Fc,s.takeRightWhile=Tc,s.takeWhile=Ac,s.tap=Wc,s.throttle=Ld,s.thru=ro,s.toArray=Qa,s.toPairs=il,s.toPairsIn=rl,s.toPath=Hm,s.toPlainObject=el,s.transform=Of,s.unary=Dd,s.union=Bc,s.unionBy=Lc,s.unionWith=Dc,s.uniq=Rc,s.uniqBy=Pc,s.uniqWith=Mc,s.unset=kf,s.unzip=Si,s.unzipWith=Oa,s.update=Hf,s.updateWith=zf,s.values=$t,s.valuesIn=Uf,s.without=Nc,s.words=sl,s.wrap=Rd,s.xor=Oc,s.xorBy=kc,s.xorWith=Hc,s.zip=zc,s.zipObject=Uc,s.zipObjectDeep=Yc,s.zipWith=$c,s.entries=il,s.entriesIn=rl,s.extend=tl,s.extendWith=fo,Li(s,s),s.add=Um,s.attempt=pl,s.camelCase=Gf,s.capitalize=al,s.ceil=Ym,s.clamp=Yf,s.clone=Md,s.cloneDeep=Od,s.cloneDeepWith=kd,s.cloneWith=Nd,s.conformsTo=Hd,s.deburr=ll,s.defaultTo=vm,s.divide=$m,s.endsWith=Kf,s.eq=Ye,s.escape=Vf,s.escapeRegExp=qf,s.every=ed,s.find=nd,s.findIndex=Da,s.findKey=yf,s.findLast=od,s.findLastIndex=Ra,s.findLastKey=hf,s.floor=Wm,s.forEach=Ha,s.forEachRight=za,s.forIn=bf,s.forInRight=xf,s.forOwn=vf,s.forOwnRight=Sf,s.get=Ei,s.gt=zd,s.gte=Ud,s.has=_f,s.hasIn=Fi,s.head=Ma,s.identity=ve,s.includes=sd,s.indexOf=oc,s.inRange=$f,s.invoke=Ff,s.isArguments=Et,s.isArray=O,s.isArrayBuffer=Yd,s.isArrayLike=be,s.isArrayLikeObject=ie,s.isBoolean=$d,s.isBuffer=yt,s.isDate=Wd,s.isElement=Gd,s.isEmpty=Kd,s.isEqual=Vd,s.isEqualWith=qd,s.isError=_i,s.isFinite=Jd,s.isFunction=ot,s.isInteger=qa,s.isLength=uo,s.isMap=Ja,s.isMatch=Xd,s.isMatchWith=Zd,s.isNaN=Qd,s.isNative=jd,s.isNil=tf,s.isNull=ef,s.isNumber=Xa,s.isObject=te,s.isObjectLike=oe,s.isPlainObject=fn,s.isRegExp=Ii,s.isSafeInteger=nf,s.isSet=Za,s.isString=co,s.isSymbol=Ie,s.isTypedArray=Yt,s.isUndefined=of,s.isWeakMap=rf,s.isWeakSet=af,s.join=sc,s.kebabCase=Jf,s.last=Ne,s.lastIndexOf=pc,s.lowerCase=Xf,s.lowerFirst=Zf,s.lt=lf,s.lte=sf,s.max=Gm,s.maxBy=Km,s.mean=Vm,s.meanBy=qm,s.min=Jm,s.minBy=Xm,s.stubArray=Ri,s.stubFalse=Pi,s.stubObject=Mm,s.stubString=Nm,s.stubTrue=Om,s.multiply=Zm,s.nth=uc,s.noConflict=Fm,s.noop=Di,s.now=lo,s.pad=Qf,s.padEnd=jf,s.padStart=em,s.parseInt=tm,s.random=Wf,s.reduce=fd,s.reduceRight=md,s.repeat=nm,s.replace=om,s.result=Pf,s.round=Qm,s.runInContext=m,s.sample=yd,s.size=xd,s.snakeCase=im,s.some=vd,s.sortedIndex=hc,s.sortedIndexBy=bc,s.sortedIndexOf=xc,s.sortedLastIndex=vc,s.sortedLastIndexBy=Sc,s.sortedLastIndexOf=Cc,s.startCase=am,s.startsWith=lm,s.subtract=jm,s.sum=eg,s.sumBy=tg,s.template=sm,s.times=km,s.toFinite=it,s.toInteger=k,s.toLength=ja,s.toLower=pm,s.toNumber=Oe,s.toSafeInteger=pf,s.toString=V,s.toUpper=um,s.trim=cm,s.trimEnd=dm,s.trimStart=fm,s.truncate=mm,s.unescape=gm,s.uniqueId=zm,s.upperCase=ym,s.upperFirst=Ti,s.each=Ha,s.eachRight=za,s.first=Ma,Li(s,function(){var e={};return Ge(s,function(t,o){q.call(s.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),s.VERSION=d,Le(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){s[e].placeholder=s}),Le(["drop","take"],function(e,t){$.prototype[e]=function(o){o=o===i?1:se(k(o),0);var r=this.__filtered__&&!t?new $(this):this.clone();return r.__filtered__?r.__takeCount__=de(o,r.__takeCount__):r.__views__.push({size:de(o,We),type:e+(r.__dir__<0?"Right":"")}),r},$.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),Le(["filter","map","takeWhile"],function(e,t){var o=t+1,r=o==Wt||o==xn;$.prototype[e]=function(a){var p=this.clone();return p.__iteratees__.push({iteratee:D(a,3),type:o}),p.__filtered__=p.__filtered__||r,p}}),Le(["head","last"],function(e,t){var o="take"+(t?"Right":"");$.prototype[e]=function(){return this[o](1).value()[0]}}),Le(["initial","tail"],function(e,t){var o="drop"+(t?"":"Right");$.prototype[e]=function(){return this.__filtered__?new $(this):this[o](1)}}),$.prototype.compact=function(){return this.filter(ve)},$.prototype.find=function(e){return this.filter(e).head()},$.prototype.findLast=function(e){return this.reverse().find(e)},$.prototype.invokeMap=z(function(e,t){return typeof e=="function"?new $(this):this.map(function(o){return ln(o,e,t)})}),$.prototype.reject=function(e){return this.filter(po(D(e)))},$.prototype.slice=function(e,t){e=k(e);var o=this;return o.__filtered__&&(e>0||t<0)?new $(o):(e<0?o=o.takeRight(-e):e&&(o=o.drop(e)),t!==i&&(t=k(t),o=t<0?o.dropRight(-t):o.take(t-e)),o)},$.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$.prototype.toArray=function(){return this.take(We)},Ge($.prototype,function(e,t){var o=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=s[r?"take"+(t=="last"?"Right":""):t],p=r||/^find/.test(t);!a||(s.prototype[t]=function(){var u=this.__wrapped__,f=r?[1]:arguments,g=u instanceof $,C=f[0],w=g||O(u),I=function(Y){var W=a.apply(s,pt([Y],f));return r&&E?W[0]:W};w&&o&&typeof C=="function"&&C.length!=1&&(g=w=!1);var E=this.__chain__,L=!!this.__actions__.length,R=p&&!E,H=g&&!L;if(!p&&w){u=H?u:new $(this);var P=e.apply(u,f);return P.__actions__.push({func:ro,args:[I],thisArg:i}),new Re(P,E)}return R&&H?e.apply(this,f):(P=this.thru(I),R?r?P.value()[0]:P.value():P)})}),Le(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ln[e],o=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);s.prototype[e]=function(){var a=arguments;if(r&&!this.__chain__){var p=this.value();return t.apply(O(p)?p:[],a)}return this[o](function(u){return t.apply(O(u)?u:[],a)})}}),Ge($.prototype,function(e,t){var o=s[t];if(o){var r=o.name+"";q.call(Ot,r)||(Ot[r]=[]),Ot[r].push({name:t,func:o})}}),Ot[Qn(i,ae).name]=[{name:"wrapper",func:i}],$.prototype.clone=mp,$.prototype.reverse=gp,$.prototype.value=yp,s.prototype.at=Gc,s.prototype.chain=Kc,s.prototype.commit=Vc,s.prototype.next=qc,s.prototype.plant=Xc,s.prototype.reverse=Zc,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Qc,s.prototype.first=s.prototype.head,jt&&(s.prototype[jt]=Jc),s},Pt=Vs();bt?((bt.exports=Pt)._=Pt,Bo._=Pt):ue._=Pt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"Masked Aadhar Card",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Data Card",const:"card"},{title:"Check Box",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"Tab Container",const:"HorizontalLayout"},{title:"Data Grid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"Time Stamp",const:"DateTime"},{title:"Download",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File Handler",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Image",const:"Image"},{title:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"Leaderboard",const:"LeaderBoard"},{title:"Multi-Select Dropdown",const:"MultipleSelect"},{title:"Pan Card Masked",const:"PanCardText"},{title:"Pop Up",const:"PopUp"},{title:"Progress Bar",const:"ProgressBar"},{title:"Progress Bar Card",const:"ProgressBarCard"},{title:"Dropdown",const:"Select"},{title:"Slider",const:"Slider"},{title:"Speedometer",const:"SpeedoMeter"},{title:"Stepper Container",const:"Stepper"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy",const:"RunnerBoyProgressBar"},{title:"Table",const:"Table"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload",const:"UploadFile"},{title:"Tree ",const:"TreeMap"},{title:"Column Group",const:"ColumnGroup"},{title:"Thought of the day",const:"Thought"}]},elementType:{oneOf:[{title:"Table Action Element",const:"action"},{title:"Table Header Element",const:"tableHeader"},{title:"Table Element",const:"element"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"},{title:"Center Column",const:"action"}]},dateFormat:{oneOf:[{title:"ISO DateTime (UTC) \u2014 YYYY-MM-DDTHH:mm:ss.SSSZ",const:"YYYY-MM-DDTHH:mm:ss.SSSZ"},{title:"ISO DateTime \u2014 YYYY-MM-DDTHH:mm:ssZ",const:"YYYY-MM-DDTHH:mm:ssZ"},{title:"ISO DateTime (No TZ) \u2014 YYYY-MM-DDTHH:mm:ss",const:"YYYY-MM-DDTHH:mm:ss"},{title:"ISO Date \u2014 YYYY-MM-DD",const:"YYYY-MM-DD"},{title:"Date (DD-MM-YYYY) \u2014 DD-MM-YYYY",const:"DD-MM-YYYY"},{title:"Date (MM/DD/YYYY) \u2014 MM/DD/YYYY",const:"MM/DD/YYYY"},{title:"DateTime (DB) \u2014 YYYY-MM-DD HH:mm:ss",const:"YYYY-MM-DD HH:mm:ss"},{title:"DateTime (DB ms) \u2014 YYYY-MM-DD HH:mm:ss.SSS",const:"YYYY-MM-DD HH:mm:ss.SSS"},{title:"Time (24h) \u2014 HH:mm:ss",const:"HH:mm:ss"},{title:"Time (12h) \u2014 hh:mm:ss A",const:"hh:mm:ss A"},{title:"Epoch (Milliseconds)",const:"x"},{title:"Epoch (Seconds)",const:"X"}]},variant:{oneOf:[{title:"Outlined",const:"outlined"},{title:"Filled",const:"filled"},{title:"Standard",const:"standard"}]},orientation:{oneOf:[{title:"Horizontal",const:"horizontal"},{title:"Vertical",const:"vertical"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},maxPageSize:{type:"number",oneOf:[{title:"10",const:10},{title:"20",const:20},{title:"30",const:30},{title:"50",const:50},{title:"100",const:100},{title:"500",const:500}]},initialDensity:{type:"string",oneOf:[{title:"Compact",const:"compact"},{title:"Comfortable",const:"comfortable"},{title:"Spacious",const:"spacious"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},cardLayout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},enableColumnFilter:{type:"array",items:{type:"object",properties:{keyName:{type:"string"}}}},filteringOptions:{oneOf:[{const:"fuzzy",title:"Fuzzy"},{const:"contains",title:"Contain"},{const:"startsWith",title:"Starts with"},{const:"endsWith",title:"Ends with"},{const:"equals",title:"Equals"},{const:"notEquals",title:"Not Equals"},{const:"between",title:"Between"},{const:"betweenInclusive",title:"Between inclusive"},{const:"greaterThan",title:"Greater than"},{const:"greaterThanOrEqualTo",title:"Greater than or equal to"},{const:"lessThan",title:"Less than"},{const:"lessThanOrEqualTo",title:"Less than or equal to"}]},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"},{const:"readOnly",title:"Read Only"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"},{title:"Stack Horizontal Bar Graph",const:"HorizontalStackBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Download All Icon",const:"DownloadAllIcon"},{title:"Exception Icon",const:"ExceptionIcon"},{title:"Alarm Icon",const:"AlarmIcon"},{title:"Click Icon",const:"ClickIcon"},{title:"Content Copy Icon",const:"ContentCopyIcon"},{title:"File Copy Icon",const:"FileCopyIcon"},{title:"Pause Icon",const:"PauseIcon"},{title:"Play Icon",const:"PlayIcon"},{title:"Close Icon",const:"CloseIcon"},{title:"Replay Icon",const:"ReplayIcon"},{title:"Delete Icon",const:"DeleteIcon"},{title:"Drafts Icon",const:"DraftsIcon"},{title:"Perm Phone Msg Icon",const:"PermPhoneMsgIcon"},{title:"Paste Icon",const:"PasteIcon"},{title:"Prev Icon",const:"PrevIcon"},{title:"Verified Icon",const:"VerifiedIcon"},{title:"Table Add Icon",const:"TableAddIcon"},{title:"Table Download Icon",const:"TableDownloadIcon"},{title:"Audit Trail Icon",const:"AuditTrailIcon"},{title:"View Component",const:"View"},{title:"Table Edit Icon",const:"TableEditIcon"},{title:"Maximize Icon",const:"Maximize"},{title:"Minimize Icon",const:"Minimize"},{title:"Subtract Icon",const:"Subtract"},{title:"Bin Icon",const:"Bin"},{title:"Export Icon",const:"Export"},{title:"Table Paste Icon",const:"TablePaste"},{title:"Clone Icon",const:"CloneIcon"},{title:"Detail Icon",const:"DetailIcon"},{title:"Report View Icon",const:"ReportViewIcon"},{title:"Payout",const:"Payout"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},pageName:{path:[]},name:{type:"string"},label:{type:"string"},RemoveItemButton:{disabled:!0}},required:["name"]},componentBasicUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page-Component",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core"],id:"component"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc5",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc6",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc7",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc8",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc9",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc10",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc11",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",config:{layout:12,main:{label:"Layout",childElementLabel:"Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:0,sm:0,md:4,lg:4}},options:{widget:"EmptyBox"}}]}]}]},{type:"WrapperLayout",config:{main:{gap:"8px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Ok",variant:"contained",type:"text",onClick:"okHandler",size:"medium"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save & Exit",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:4,sm:7,md:8,lg:9}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpComponentSection",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Component ?"},style:{"&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpComponent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteCompButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteComponents",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/popUpEventSection",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText1",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{onNavigatePopupNo:"onNavigatePopupNo",onNavigatePopupYes:"onNavigatePopupYes"},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`,backgroundColor:n.palette.background.default}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=n==null?void 0:n.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},CoreSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",required:!0}}},{type:"Control",scope:"#/properties/proc5",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc6",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc7",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc8",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc9",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc10",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc11",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",config:{layout:12,main:{label:"Layout",childElementLabel:"Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:0,sm:0,md:4,lg:4}},options:{widget:"EmptyBox"}}]}]},EventSection=n=>({type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"eventAddHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0},action:[{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"Button"},config:{main:{size:"small",startIcon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler",name:"Edit"}}},{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"Button"},config:{main:{startIcon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent",name:"Delete",size:"small"}}},{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"Button"},config:{main:{startIcon:"FileCopyIcon",onClick:"copyPasteElement",tooltipMessage:"Reject This Record",styleDefault:!1,name:"Copy"}}}]},elements:[{accessorKey:"eventType",header:"Event's Type",type:"string",size:300},{accessorKey:"Handler",header:"Handler",type:"string",size:200}]}]}),emptyBox$1=(n,l)=>l!==void 0?{type:"Control",scope:`#/properties/${n}`,options:{widget:"EmptyBox"},config:{layout:l}}:{type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",config:{layout:12,main:{label:"Card Layout",childElementLabel:"Card Layout"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value",type:"number",helperText:"Number should be in range of 0 to 12",errorMessage:"Number Can't be greater than 12 and can't be less than 0."}}},emptyBox$1("cardEmpty")]},getArrayControl=(n,l,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:i,childElementLabel:i},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:`#/properties/${l}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:i||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty1",{xs:6,sm:6,md:8,lg:8})]}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Size"}}},sizeHolder.elements[2]=emptyBox$1("sizeHolderempty");const getInputField=(n,l)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:l}}}),getRadioInputField=(n,l,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:l,options:i}}}),buildWrapper=(n,l)=>({type:"WrapperLayout",config:{main:{label:n||"Details",isAccordion:!0}},elements:l||[]}),getTextArea=(n,l,i,d)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:d||12,main:{label:l,minRows:8,hideButton:i,enableCodeEditor:!0}}}),getSelectField=(n,l,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:l,type:"text"}}}),getMultiSelectField=(n,l)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{multiple:!0,label:l,options:[]}}}),BaseSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[]},buildPropertiesSection=function(n){let l=_.cloneDeep(BaseSection);switch(n){case"Array":l.elements=[getRadioInputField("allExpanded","Initial Expand",["YES","NO"]),getRadioInputField("disableAddButton","Disable Add Button",["YES","NO"]),getRadioInputField("disableExpandAllButton","Disable Expand Buttons",["YES","NO"]),getRadioInputField("disableRowActions","Disable Row Actions",["YES","NO"]),getInputField("childElementLabel","Child Element Label"),emptyBox$1("empty1",{xs:12,sm:6,md:4,lg:3})];break;case"TreeMap":l.elements=[getSelectField("orientation","orientation"),getInputField("linkType","linkType"),getInputField("graphHeight","Graph Height"),getInputField("graphWidth","Graph Width"),getInputField("graphZoomHeight","Zoom Height"),emptyBox$1("TreeEmpty",{xs:6,sm:6,md:4,lg:4})];break;case"InputSlider":l.elements=[getInputField("max","Max Limit"),getInputField("step","Step"),getInputField("min","Min Limit"),emptyBox$1("InputSliderEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("limitToMax","Applly Max. Limit",["YES","NO"]),emptyBox$1("InputSliderEmpty2",{xs:0,sm:0,md:8,lg:8})];break;case"DataGrid":l.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),emptyBox$1("DataGridEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("DataGridEmpty1",{xs:0,sm:0,md:4,lg:4}),cardLayout];break;case"Stepper":l.elements=[getRadioInputField("resetButton","Reset Button",["YES","NO"]),getRadioInputField("defaultButtonAvailable","Use Default Buttons ",["YES","NO"]),getInputField("resetText","Reset Text"),getInputField("completeText","Complete Text"),getSelectField("orientation","Orientation Type"),emptyBox$1("Stepper",{xs:6,sm:6,md:4,lg:4}),getArrayControl("sectionLabels","label")];break;case"PopUp":l.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),emptyBox$1("PopUpEmpty",{xs:6,sm:6,md:0,lg:0})];break;case"Text":l.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("multiline","Multiline",["YES","NO"]),getSelectField("variant","Variant"),emptyBox$1("TextEmpty1",{xs:6,sm:6,md:0,lg:3}),getArrayControl("InputFormatingAndMasking","formatElement","Format Element"),getInputField("keyName","Event Key Name")];break;case"TextArea":l.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("enableCodeEditor","Enable Code Editor",["YES","NO"]),getInputField("codeEditorLanguage","Enter Code Language"),emptyBox$1("TextEmpty1",{xs:0,sm:0,md:0,lg:3})];break;case"SpeedoMeter":l.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width"),emptyBox$1("SpeedoMeterEmpty1",{xs:6,sm:6,md:4,lg:4})];break;case"RankCard":l.elements=[getInputField("rank","Rank"),getInputField("height","Height"),emptyBox$1("RankCardEmpty1",{xs:0,sm:0,md:4,lg:4})];break;case"LeaderBoard":l.elements=[getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getInputField("nameKey","Key for Name"),getInputField("imageKey","Key for Image"),getInputField("scoreKey","Key for comparing parameter"),emptyBox$1("LeaderBoardEmpty1",{xs:6,sm:6,md:0,lg:0})];break;case"CardSlider":l.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":l.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel"),emptyBox$1("ProgressBarCardEmpty1"),emptyBox$1("ProgressBarCardEmpty2")];break;case"card":l.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("titleIcon","Unicode of Icon for title"),getInputField("description","Description"),emptyBox$1("cardEmpty",{xs:0,sm:0,md:8,lg:8})];break;case"Button":l.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:4,lg:4})];break;case"Box":l.elements=[getSelectField("iconName","Icon Name"),emptyBox$1("BoxEmpty1",{xs:6,sm:6,md:4,lg:8})];break;case"Graph":l.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getInputField("yAxisValue","Y-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:8,lg:6}),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":l.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getInputField("rowSpacing","Row Spacing"),emptyBox$1("WrapperSectionEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("WrapperSectionEmpty2")];break;case"TabSection":l.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),emptyBox$1("TabEmpty"),getArrayControl("sectionLabels","label")];break;case"Table":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Row Selection",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing ",["YES","NO"]),getRadioInputField("DragAvailable","Row Dragging",["YES","NO"]),getRadioInputField("downloadAllData","Download All Data",["YES","NO"]),getRadioInputField("disableGlobalSearch","Disable Global Search",["YES","NO"]),getRadioInputField("disableColumnFilter","Disable Column Filter",["YES","NO"]),getRadioInputField("disableSorting","Disable Sorting",["YES","NO"]),getRadioInputField("disableEditColumn","Disable Edit Column",["YES","NO"]),getRadioInputField("disableFullScreenToggle","Disable Full Screen",["YES","NO"]),getRadioInputField("disableDensityToggle","Disable Density Toggle",["YES","NO"]),getRadioInputField("disableDownloadFile","Disable Download File",["YES","NO"]),getRadioInputField("disablePagination","Disable Pagination",["YES","NO"]),getInputField("selectKey","Selection Key"),getMultiSelectField("filteringOptions","Filtering Options"),getSelectField("maxPageSize","Max Page Size"),getSelectField("initialDensity","Initial Toggle Density"),buildWrapper("Tree Table Properties",[getRadioInputField("enableRowMovement","Row Rearrangement",["YES","NO"]),getRadioInputField("enableExpanding","Row Expanding",["YES","NO"]),getRadioInputField("paginateExpandedRows","Multi Page Expansion",["YES","NO"]),getRadioInputField("treeStructure","Flat Tree Structure",["YES","NO"]),getRadioInputField("filterFromLeafRows","Filter from tree rows",["YES","NO"]),getInputField("defaultColumnSize","Default Column Size"),,emptyBox$1("LazyLoadingTableEmpty3")]),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder,getArrayControl("enableColumnFilter","keyName","Component Name")];break;case"Radio":l.elements=[getInputField("errorMessage","Error Message"),emptyBox$1("Radio",{xs:6,sm:6,md:8,lg:9}),getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"]),getSelectField("variant","Variant"),emptyBox$1("SelectEmpty")];break;case"MultipleSelect":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getSelectField("variant","Variant"),emptyBox$1("MultipleSelectEmpty1",{xs:0,sm:6,md:4,lg:4}),emptyBox$1("MultipleSelectEmpty2")];break;case"Date":l.elements=[getSelectField("variant","Variant"),emptyBox$1("DateEmpty1",{xs:6,sm:6,md:8,lg:9})];break;case"DateTime":l.elements=[getSelectField("variant","Variant"),emptyBox$1("DateTimeEmpty1",{xs:6,sm:6,md:8,lg:9})];break;case"Thought":l.elements=[getTextArea("thought","Today's thought",!1)];break;case"Image":l.elements=[getInputField("imageUrl","Image URL"),getInputField("height","Image Height"),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"FileInput":l.elements=[getRadioInputField("variant","Variant",["Outlined","Standard"]),getRadioInputField("disableUpload","Disable Upload",["YES","NO"]),getRadioInputField("disableDelete","Disable Delete",["YES","NO"]),getRadioInputField("disableDownload","Disable Download",["YES","NO"])];break}return l},StyleSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{"& .MuiFormLabel-root:not(.MuiInputLabel-shrink)":{}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection=n=>({type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"widgetAddClickHandler",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Component",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0},action:[{type:"Control",scope:"#/properties/RejectButton",options:{widget:"Button"},config:{main:{startIcon:"EditIcon",size:"small",onClick:"editComponents",tooltipMessage:"Reject This Record",name:"Edit"}}},{type:"Control",scope:"#/properties/RejectButton",options:{widget:"Button"},config:{main:{startIcon:"Bin",onClick:"deletePopUpComponent",tooltipMessage:"Reject This Record",name:"Delete",size:"small"}}},{type:"Control",scope:"#/properties/Copy_Component",options:{widget:"Button"},config:{main:{startIcon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!1,name:"Copy"}}}]},elements:[{accessorKey:"name",header:"Name",type:"string",size:300},{accessorKey:"type",header:"Type",type:"string",size:200}]}]}),ValueTab={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/value",config:{layout:12,main:{label:"Value",childElementLabel:"Value"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]}]},ValidationSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/validation",config:{layout:12,main:{label:"Validation",childElementLabel:"Validation"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Validation Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]}]};var buildConfig=n=>{const l=_.cloneDeep(n);let i={};return l.pageName&&delete l.pageName,l.eventsSelected&&delete l.eventsSelected,(l.type==="Table"||l.type==="WrapperSection"||l.type==="TabSection")&&(i.elements=l.elements||[],l.elements&&delete l.elements),i.events=l.events||[],l.events&&delete l.events,i={...l,...i},i};const createLayoutFormat=(n,l)=>{if(_.isEmpty(n))return["WrapperSection","DataGrid","LeaderBoard","PopUp","TextArea","TreeMap","Thought","HorizontalLayout"].includes(l)?{xs:12,sm:12,md:12,lg:12}:l==="Graph"?{xs:12,sm:12,md:12,lg:6}:l==="Button"?{xs:4,sm:2.5,md:2,lg:1.5}:{xs:6,sm:6,md:4,lg:3};let i={};return n.map(d=>{i[d.key||"xs"]=+d.value||5.5}),i},flatObjectValueInArray=(n=[])=>{if(n.length<1)return;const l=Object.keys(n[0])[0];return n.map(d=>d[l])},clearFromSessionStorage=()=>{sessionStorage.removeItem("pageFormdata")},getNavigationHistory=(n,l)=>{if(l){let i=n.name;const d=l.split("."),y=[];return d.map((c,h)=>{if(h===0){y.push(c);return}y.push(`${y[h-1]}.${c}`)}),y.map(c=>{const h=_.get(n,c);h?i=i+` > ${(h==null?void 0:h.name)||(h==null?void 0:h.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInSessionStorage=(n,l)=>{let i;if(l){const d=getFormdataFromSessionStorage();i=_.set(d,l,buildConfig(n))}else i=buildConfig(n);return sessionStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromSessionStorage=n=>{const l=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0;let i;return n&&(i=_.get(l,n),i={...i,...getNavigationHistory(l,n)}),i||(i=getNavigationHistory(l,n)),i||l};async function saveHandler(n,l,i){var c,h;(c=n.searchParams)==null||c.get("id");const d=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,d);const y=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const v=await i(n,l,y);navigateHandler(n,!0,"/PageMasterRecords")}catch{navigateHandler(n,!1)}}const navigateHandler=(n,l,i)=>{l?(sessionStorage.removeItem("pageFormdata"),n.navigate(i||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(n){var i;const l=(i=n.searchParams)==null?void 0:i.get("path");_.isEmpty(n.ctx.core.errors)?(saveFormdataInSessionStorage(n.ctx.core.data,l),n.navigate(-1),n.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","Events","Style","Validation"],MultipleSelect:["Core","Properties","Value","Events","Style","Validation"],Table:["Core","Components","Properties","Events","Style","Validation"],LeaderBoard:["Core","Components","Properties","Events","Style","Validation"],WrapperSection:["Core","Components","Properties","Style","Validation"],HorizontalLayout:["Core","Components","Properties","Style","Validation"],TabSection:["Core","Components","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Events","Style","Validation"],card:["Core","Properties","Events","Style","Validation"],UploadFile:["Core","Events","Style","Validation"],Graph:["Core","Properties","Events","Style","Validation"],DownloadFile:["Core","Events","Style","Validation"],Box:["Core","Properties","Events","Style","Validation"],Properties:["Core","Properties","Events","Style","Validation"],ProgressBarCard:["Core","Properties","Events","Style","Validation"],RankCard:["Core","Properties","Events","Style","Validation"],Slider:["Core","Components","Events","Style","Validation"],Timer:["Core","Events","Style","Validation"],Rank:["Core","Events","Style","Validation"],Button:["Core","Properties","Events","Style","Validation"],Array:["Core","Components","Properties","Events","Validation"],Radio:["Core","Properties","Events","Style","Validation"],Text:["Core","Properties","Events","Style","Validation"],TextArea:["Core","Properties","Events","Style","Validation"],PopUp:["Core","Components","Properties","Style"],Stepper:["Core","Components","Properties","Events","Style"],DataGrid:["Core","Components","Properties","Events","Style"],InputSlider:["Core","Properties","Events","Style","Validation"],TreeMap:["Core","Components","Properties","Events","Style"],ColumnGroup:["Core","Components"],Thought:["Core","Properties","Events","Style","Validation"],Date:["Core","Properties","Events","Style","Validation"],DateTime:["Core","Properties","Events","Style","Validation"],Image:["Core","Properties","Style"],FileInput:["Core","Properties","Events","Style","Validation"]};function refreshPage(n,l){var x,F;const i=_.cloneDeep(componentBasicUiSchema(l.theme.myTheme)),d=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const A={Core:CoreSection,Value:ValueTab,Style:StyleSection,Events:EventSection(l.theme.myTheme),Components:TableSection(l.theme.myTheme),Properties:buildPropertiesSection(n),Validation:ValidationSection},B=(x=sectionLabels[n])==null?void 0:x.map(U=>A[U]);i.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],i.elements[0].elements=B||[CoreSection,StyleSection,EventSection(l.theme.myTheme),ValidationSection]}const y=(F=l.searchParams)==null?void 0:F.get("path"),c=y.lastIndexOf("."),h=y.slice(0,c),v=_.get(d,h);((v==null?void 0:v.type)==="Table"||(v==null?void 0:v.type)==="ColumnGroup")&&(i.elements[0].elements[0].elements[4]={type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Format"}}},i.elements[0].elements[0].elements[6]={type:"Control",scope:"#/properties/filteringOptions",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Filter Mode",multiple:!0}}},i.elements[0].elements[0].elements[5]={type:"Control",scope:"#/properties/enableFilter",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Filter",options:["Yes","No"]}}},i.elements[0].elements[0].elements[7]={type:"Control",scope:"#/properties/enableSorting",options:{widget:"RadioInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Enable Sorting",options:["Yes","No"]}}},i.elements[0].elements[0].elements[8]={type:"Control",scope:"#/properties/columnKey",config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Key"}},options:{widget:"InputField"}},i.elements[0].elements[0].elements[9]={type:"Control",scope:"#/properties/elementType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Element Type"}}},i.elements[0].elements[0].elements[10]={type:"Control",scope:"#/properties/dateFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Date Time Format"}}}),sessionStorage.getItem("copiedConfig")&&this.ElementPathSetter(i),l.setUiSchema(i)}var Component=(n,l,i,d)=>({setPage:async function(){const y=await this.getFormdata();n.setFormdata(y);const c=this.getSchema();n.setSchema(c),this.refreshPage(y==null?void 0:y.type,n)},refreshPage,getFormdata:function(){var c;const y=(c=n.searchParams)==null?void 0:c.get("path");return getFormdataFromSessionStorage(y)},getSchema:function(){var F,A,B;const y=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(y.properties.RemoveItemButton.disabled=!1);const c=JSON.parse(sessionStorage.getItem("pageFormdata")),h=(F=n.searchParams)==null?void 0:F.get("path"),v=(A=n.searchParams)==null?void 0:A.get("id");let x=[{label:(B=c.name)!=null?B:"NewPage",path:`/PageMaster${v?`?id=${v}`:""}`}];if(h){const U=h.split("."),ne=[];U.map((X,K)=>{if(K===0){ne.push(X);return}ne.push(`${ne[K-1]}.${X}`)}),ne.map(X=>{const K=_.get(c,X);x.push({label:(K==null?void 0:K.name)||(K==null?void 0:K.eventType)||"NewComponent",path:`/Component?path=${X}${v?`&id=${v}`:""}`})})}return y.properties.pageName.path=x,y},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var y,c,h,v;((y=n==null?void 0:n.formData)==null?void 0:y.type)!==((c=n==null?void 0:n.newData)==null?void 0:c.type)&&((h=n==null?void 0:n.newData)==null?void 0:h.type)!==void 0&&this.refreshPage((v=n==null?void 0:n.newData)==null?void 0:v.type,n)},editComponents:function(){var v,x,F;const y=l.path.split(".")[1],c=(v=n.searchParams)==null?void 0:v.get("path"),h=(x=n.searchParams)==null?void 0:x.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,c),c){const B=`${(F=n.searchParams)==null?void 0:F.get("path")}.elements[${y}]`;n.searchParams.set("path",B),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${y}]`}&id=${h}`)},deleteComponents:function(y=!0){var F;const c=(F=n.searchParams)==null?void 0:F.get("path"),h=sessionStorage.getItem("rowId");n.formData.elements.splice(h,1);const v=saveFormdataInSessionStorage(n.ctx.core.data,c),x=c?_.get(v,c):v;n.setFormdata(x),y&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(y=!0){var x;const c=(x=n.searchParams)==null?void 0:x.get("path"),h=sessionStorage.getItem("rowId");n.formData.events.splice(h,1);const v=saveFormdataInSessionStorage(n.ctx.core.data,c);n.setFormdata(_.get(v,c)),y&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var h;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const y=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,y);const c=`${y}.elements[${n.formData.elements.length}]`;n.searchParams.set("path",c),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var x,F;const y=l.path.split(".")[1],c=(x=n.searchParams)==null?void 0:x.get("path"),h=(F=n.searchParams)==null?void 0:F.get("id");saveFormdataInSessionStorage(n.ctx.core.data,c);const v=`${c}.events[${y}]`;n.navigate(`/ComponentEvents?path=${v}&id=${h}`)},eventAddHandler:function(){var v,x;const y=(v=n.searchParams)==null?void 0:v.get("path"),c=(x=n.searchParams)==null?void 0:x.get("id");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,y);const h=`${y}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${h}&id=${c}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const y=l.path.split(".")[1];sessionStorage.setItem("rowId",y),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const y=l.path.split(".")[1];sessionStorage.setItem("rowId",y),n.updateDialog("popUpEventSection")},copyPasteElement:function(y,c=this.setPage.bind(this)){var x;const[h,v]=(x=l.path.split(".").pop())==null?void 0:x.split("_");h==="Copy"?this.CopyElement(y,v):this.PasteElement(c,v)},CopyElement:function(y=n,c){var U;const h=lodash.exports.cloneDeep(y.schema),v=lodash.exports.cloneDeep(y.uiSchema);h.properties.RemoveItemButton.disabled=!1;const x=l.path.split(".")[1],F=(U=n.searchParams)==null?void 0:U.get("path"),A=this.elementPathHandler(F,x,c),B=getFormdataFromSessionStorage(A);this.ElementPathSetter(v,B),sessionStorage.setItem("copiedConfig",JSON.stringify(B)),n.setNotify({SuccessMessage:`${c} Copied Successfully`,Success:!0}),n.setSchema(h),n.setUiSchema(v)},PasteElement:function(y,c){var U;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const h=(U=n.searchParams)==null?void 0:U.get("path");Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,h);const v=getFormdataFromSessionStorage(h),x=c==="Component"?v.elements.length:v.events.length,F=this.elementPathHandler(h,x,c),A=JSON.parse(sessionStorage.getItem("copiedConfig")),B={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};A.Handler&&c==="Component"?n.setNotify({FailMessage:B.Events,Fail:!0}):A.name&&c==="Events"?n.setNotify({FailMessage:B.Component,Fail:!0}):(saveFormdataInSessionStorage(A,F),y())},RemoveItemButton:function(y=n){const c=lodash.exports.cloneDeep(y.schema),h=lodash.exports.cloneDeep(y.uiSchema);c.properties.RemoveItemButton.disabled=!0,h.elements[2].elements[1].config.main.heading="No element copied",sessionStorage.removeItem("copiedConfig"),n.setSchema(c),n.setUiSchema(h)},elementPathHandler:function(y,c,h){return h==="Component"?y?`${y}.elements[${c}]`:`elements[${c}]`:y?`${y}.events[${c}]`:`events[${c}]`},ElementPathSetter:function(y,c){var v,x,F,A,B,U,ne,X,K,M,ae,Te,Z,qe,Se,Je,Ae,at,Ft,mn,gn,yn,hn,Wt,bn,xn;const h=c||JSON.parse(sessionStorage.getItem("copiedConfig"));(U=(B=(A=(F=(x=(v=y==null?void 0:y.elements)==null?void 0:v[1])==null?void 0:x.elements)==null?void 0:F[0])==null?void 0:A.config)==null?void 0:B.main)!=null&&U.headerIcons?y.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`:(qe=(Z=(Te=(ae=(M=(K=(X=(ne=y==null?void 0:y.elements)==null?void 0:ne[0])==null?void 0:X.elements)==null?void 0:K[1])==null?void 0:M.elements)==null?void 0:ae[0])==null?void 0:Te.config)==null?void 0:Z.main)!=null&&qe.headerIcons&&(y.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`),(mn=(Ft=(at=(Ae=(Je=(Se=y==null?void 0:y.elements)==null?void 0:Se[1])==null?void 0:Je.elements)==null?void 0:Ae[1])==null?void 0:at.config)==null?void 0:Ft.main)!=null&&mn.headerIcons?y.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Event: ${h.eventType}`:(xn=(bn=(Wt=(hn=(yn=(gn=y==null?void 0:y.elements)==null?void 0:gn[0])==null?void 0:yn.elements)==null?void 0:hn[1])==null?void 0:Wt.config)==null?void 0:bn.main)!=null&&xn.headerIcons&&(y.elements[0].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.eventType}`)},onNavigatePopupYes:function(){try{n.navigate(sessionStorage.getItem("pendingNavigatePath")),n.updateDialog("pageNamepopup")}catch{n.updateDialog("pageNamepopup"),n.setNotify({FailMessage:"Couldn't navigate page",Fail:!0})}},onNavigatePopupNo:function(){n.updateDialog("pageNamepopup")}}),pageMaster=n=>{const{store:l,dynamicData:i,submitHandler:d,service:y}=n;return{setPage:async function(){const c=await this.getFormdata();l.setFormdata(c);const h=await this.getUiSchema(),v=await this.getSchema();l.setSchema(v),l.setUiSchema(h)},getFormdata:async function(){var x;const c=(x=l.searchParams)==null?void 0:x.get("id"),h=await n.pageConfigProvider(c),v=getFormdataFromSessionStorage();return v||(saveFormdataInSessionStorage(h),{...h,type:"page"})},getUiSchema:function(){const c=_.cloneDeep(PageMasterUiSchema(l.theme.myTheme));return sessionStorage.getItem("copiedConfig")&&Component(l,i,d,y).ElementPathSetter(c),c},getSchema:()=>{const c=_.cloneDeep(PageMasterSchema);return sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1),c},backHandler:()=>{sessionStorage.removeItem("pageFormdata"),l.navigate("/PageMasterRecords")},onAddClickHandler:function(){var v;const c=(v=l.searchParams)==null?void 0:v.get("id");Array.isArray(l.formData.elements)||(l.formData.elements=[]);const h=saveFormdataInSessionStorage(l.ctx.core.data);c?l.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}&id=${c}`):l.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}`)},saveHandler:async()=>await saveHandler(l,y,d),Edit_Components:Component(l,i,d,y).editComponents,Delete_Components:async function(){await Component(l,i,d,y).deleteComponents(!1),l.updateDialog("popUpPageMasterComponent")},eventAddHandler:function(){var v;const c=(v=l.searchParams)==null?void 0:v.get("id");Array.isArray(l.formData.events)||(l.formData.events=[]),saveFormdataInSessionStorage(l.ctx.core.data);const h=`events[${l.formData.events.length}]`;l.navigate(`/ComponentEvents?path=${h}&id=${c}`)},editEvent:function(){var x;const c=i.path.split(".")[1],h=(x=l.searchParams)==null?void 0:x.get("id");saveFormdataInSessionStorage(l.ctx.core.data);const v=`events[${c}]`;l.navigate(`/ComponentEvents?path=${v}&id=${h}`)},deleteEvent:function(){const c=sessionStorage.getItem("rowId");l.formData.events.splice(c,1);const h=saveFormdataInSessionStorage(l.ctx.core.data);l.setFormdata(h),l.updateDialog("popUpPageMasterEvent"),sessionStorage.removeItem("rowId")},deletePopUpComponent:function(){const c=i.path.split(".")[1];sessionStorage.setItem("rowId",c),l.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const c=i.path.split(".")[1];sessionStorage.setItem("rowId",c),l.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(l,i,d,y).copyPasteElement(l,this.setPage.bind(this))},RemoveItemButton:function(){Component(l,i,d,y).RemoveItemButton(l)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},eventType:{type:"string",oneOf:[{title:"Click",const:"onClick"},{title:"Load",const:"onLoad"},{title:"Change",const:"onChange"},{title:"Mount",const:"onMount"},{title:"Success",const:"Success"},{title:"Start",const:"onStart"},{title:"Cell Render",const:"onCellRenderer"},{title:"Upload",const:"onUpload"},{title:"FileDelete",const:"onFileDelete"},{title:"Download",const:"onDownload"},{title:"Back",const:"onBack"},{title:"Next",const:"onNext"},{title:"Row Movement",const:"onRowMovement"},{title:"Download",const:"onDownload"},{title:"Fail",const:"Fail"},{title:"Key Down",const:"onKeyDown"}]},Handler:{type:"string",oneOf:[{title:"Custom",const:"custom"},{title:"API",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}]},inBuiltFunctionType:{type:"string",oneOf:[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"},{title:"downloadFileFromUrl",const:"downloadFileFromUrl"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}},RemoveItemButton:{disabled:!0},pageName:{path:[{label:"defaultLabel",path:"defaultPath"}]}},required:["eventType","Handler"]},EventUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page-Events",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core","Response Events"],id:"event"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Event's Type",type:"text"}}},getSelectField("Handler","Handler"),{type:"Control",scope:"#/properties/EmptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}}]},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"addEvent",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0},action:[{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"Button"},config:{main:{size:"small",startIcon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent",name:"Edit"}}},{type:"Control",scope:"#/properties/RejectButton",options:{widget:"Button"},config:{main:{startIcon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent",name:"Delete",size:"small"}}},{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"Button"},config:{main:{startIcon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!1,name:"Copy",size:"small"}}}]},elements:[{accessorKey:"eventType",header:"Event's Type",size:300,type:"string"},{accessorKey:"Handler",header:"Handler",size:200,type:"string"}]}]},{type:"WrapperLayout",config:{main:{gap:"8px"}},elements:[{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Ok",variant:"contained",type:"text",onClick:"okHandler",size:"medium"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Save & Exit",variant:"contained",type:"text",onClick:"saveHandler",size:"medium"}}},{type:"Control",scope:"#/properties/EmptyBox",config:{layout:{xs:4,sm:7,md:8,lg:9}},options:{widget:"EmptyBox"}}]},{type:"Control",scope:"#/properties/popUpEvent",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"WARNING!"},style:{}},elements:[{type:"Control",scope:"#/properties/popupText",options:{widget:"Box"},config:{layout:11,main:{heading:"Are you sure you want to delete this Event ?"},style:{fontSize:"20px","&.MuiTypography-root":{padding:"0px 20px",textAlign:"center",lineHeight:"1.2",fontWeight:"normal",fontSize:"18px",marginBottom:n.spacing(5)}}}},{type:"WrapperLayout",config:{layout:11,main:{}},elements:[{type:"Control",scope:"#/properties/CancelDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"No",startIcon:"ApproveIcon",variant:"contained",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,left:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.primary.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,borderRight:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.primary.contrastText,backgroundColor:n.palette.primary.main,boxShadow:"none"}}}},{type:"Control",scope:"#/properties/ConfirmDeleteEventButton",options:{widget:"Button"},config:{layout:6,main:{name:"Yes",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",padding:"8px 0px",fontSize:"16px",bottom:0,right:0,width:"50%",borderRadius:0,boxShadow:0,backgroundColor:"transparent",color:n.palette.error.main,borderTop:`0.5px solid ${n.palette.grey[600]}`,"&:hover":{color:n.palette.error.contrastText,backgroundColor:n.palette.error.main,boxShadow:"none"}}}}]}]},{type:"Control",scope:"#/properties/pageName",options:{widget:"Breadcrumb"},config:{layout:12,main:{onNavigatePopupNo:"onNavigatePopupNo",onNavigatePopupYes:"onNavigatePopupYes"},style:{paddingLeft:n.spacing(3),color:n.palette.grey[600],fontSize:"10px",position:"fixed",bottom:"24px",borderBottom:`1px solid ${n.palette.common.black}29`,borderTop:`1px solid ${n.palette.common.black}29`,backgroundColor:n.palette.background.default}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=n==null?void 0:n.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}},{type:"Control",scope:"#/properties/headers",config:{layout:12,main:{label:"Headers",childElementLabel:"Headers"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]},{type:"Control",scope:"#/properties/body",config:{layout:12,main:{label:"Body",childElementLabel:"Body"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}}]},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",config:{layout:12,main:{label:"Refresh Elements",childElementLabel:"Refresh Elements"},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:8,lg:8},main:{}}}]}]};var event=(n,l,i,d,y)=>({setPage:async function(){const c=await this.getFormData();n.setFormdata(c);const h=await this.getSchema();console.log("SettingSchema>>",h),n.setSchema(h),this.refreshPage(c.Handler,n)},refreshPage:(c,h)=>{var ne,X,K;const v=_.cloneDeep(EventUiSchema(h.theme.myTheme)),x=_.cloneDeep(EventSchema);c&&(c==="custom"?(v.elements[0].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),v.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},v.elements[0].elements[0].elements[4]=getTextArea("eventCode","Write Custom Code",!1),x.required=["eventType","Handler","eventCode"]):c==="api"?(v.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),v.elements[0].elements[0].elements[3]=APISection,x.required=["eventType","Handler","method","path"]):c==="inBuiltFunction"?(v.elements[0].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),v.elements[0].elements[0].elements[3]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:0,lg:3},main:{},style:{}}},v.elements[0].elements[0].elements[4]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0),x.required=["eventType","Handler","inBuiltFunctionType"]):c==="refresh"&&(v.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),v.elements[0].elements[0].elements[3]=refreshSectionUiSchema,x.properties.refreshElements.required=["value"],x.properties.refreshElements.items.required=["value"],x.required=["eventType","Handler","refreshElements"])),y&&(x.properties.inBuiltFunctionType.oneOf=[...x.properties.inBuiltFunctionType.oneOf,...y]),sessionStorage.getItem("copiedConfig")&&(Component(h,l,i,d).ElementPathSetter(v),x.properties.RemoveItemButton.disabled=!1);const F=JSON.parse(sessionStorage.getItem("pageFormdata")),A=(ne=h.searchParams)==null?void 0:ne.get("path"),B=(X=h.searchParams)==null?void 0:X.get("id");let U=[{label:(K=F.name)!=null?K:"NewPage",path:`/PageMaster${B?`?id=${B}`:""}`}];if(A){const M=A.split("."),ae=[];M.map((Te,Z)=>{if(Z===0){ae.push(Te);return}ae.push(`${ae[Z-1]}.${Te}`)}),ae.map(Te=>{const Z=_.get(F,Te);U.push({label:(Z==null?void 0:Z.name)||(Z==null?void 0:Z.eventType)||"NewComponent",path:Z!=null&&Z.eventType?`/ComponentEvents?path=${Te}${B?`&id=${B}`:""}`:`/Component?path=${Te}${B?`&id=${B}`:""}`})})}x.properties.pageName.path=U,h.setSchema(x),h.setUiSchema(v)},getFormData:Component(n,l,i,d).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{var A,B,U;const c=_.cloneDeep(EventSchema);sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1);const h=JSON.parse(sessionStorage.getItem("pageFormdata")),v=(A=n.searchParams)==null?void 0:A.get("path"),x=(B=n.searchParams)==null?void 0:B.get("id");let F=[{label:(U=h.name)!=null?U:"NewPage",path:`/PageMaster${x?`?id=${x}`:""}`}];if(v){const ne=v.split("."),X=[];ne.map((K,M)=>{if(M===0){X.push(K);return}X.push(`${X[M-1]}.${K}`)}),X.map(K=>{const M=_.get(h,K);F.push({label:(M==null?void 0:M.name)||(M==null?void 0:M.eventType)||"NewComponent",path:M!=null&&M.eventType?`/ComponentEvents?path=${K}${x?`&id=${x}`:""}`:`/Component?path=${K}${x?`&id=${x}`:""}`})})}return c.properties.pageName.path=_.cloneDeep(F),c},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var c,h,v;((c=n==null?void 0:n.formData)==null?void 0:c.Handler)!==((h=n==null?void 0:n.newData)==null?void 0:h.Handler)&&((v=n==null?void 0:n.newData)==null?void 0:v.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var v,x,F;const c=(v=n.searchParams)==null?void 0:v.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,c);const h=`${c}.events[${(F=(x=n.formData)==null?void 0:x.events)==null?void 0:F.length}]`;n.searchParams.set("path",h),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var x;const c=l.path.split(".")[1],h=(x=n.searchParams)==null?void 0:x.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const v=`${h}.events[${c}]`;n.searchParams.set("path",v),n.setSearchParams(n.searchParams),this.setPage()},deleteEvent:async function(){await Component(n,l,i,d).deleteEvent(!1),n.updateDialog("popUpEvent")},backHandler:function(){n.navigate(-1)},deletePopUpEvent:function(){const c=l.path.split(".")[1];sessionStorage.setItem("rowId",c),n.updateDialog("popUpEvent")},copyPasteElement:function(){Component(n,l,i,d).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,l,i,d).RemoveItemButton(n)},onNavigatePopupYes:function(){try{n.navigate(sessionStorage.getItem("pendingNavigatePath")),n.updateDialog("pageNamepopup")}catch{n.updateDialog("pageNamepopup"),n.setNotify({FailMessage:"Couldn't navigate page",Fail:!0})}},onNavigatePopupNo:function(){n.updateDialog("pageNamepopup")}});function downloadFile$1({data:n,name:l}){var F;const i=window.atob(n),d=new Uint8Array(i.length);for(let A=0;A<i.length;A++)d[A]=i.charCodeAt(A);const y=(F=l.split(".").pop())==null?void 0:F.toLowerCase(),c={pdf:"application/pdf",png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",csv:"text/csv"},h=new Blob([d],{type:c[y]||"application/octet-stream"}),v=URL.createObjectURL(h),x=document.createElement("a");x.href=v,x.download=l,x.click(),URL.revokeObjectURL(v)}const downloadFileFromUrl=(n,l)=>{let i=`${l.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((c,h)=>{i=i+`${h===0?"?":"&"}${c}=${n==null?void 0:n.params[c]}`});const d=document.createElement("a");d.href=i,document.body.appendChild(d),d.click(),d.parentNode.removeChild(d)},executeEvents=n=>{var y,c,h;let l=[],i=null;if(n.config.isSync!=="Yes")return shouldEventExecute(n).then(v=>{if(!v)throw new Error("onStart Event not allow to run Parent Events");return executeEventsHandler(n)}).then(v=>{var F;i=v,l=(F=n.config)==null?void 0:F.events.filter(A=>A.eventType==="Success")}).catch(v=>{var A,B;const x=(B=(A=n.config)==null?void 0:A.events)==null?void 0:B.filter(U=>U.eventType==="Fail");l=(x==null?void 0:x.length)>0?x:[]}).then(()=>{if((l==null?void 0:l.length)>0)return l.reduce((v,x)=>v.then(()=>executeEvents({...n,config:x,parentEventOutput:i})),Promise.resolve())}).then(()=>i);if(!shouldEventExecute(n))return{response:void 0,events:void 0};try{i=executeEventsHandler(n),l=(y=n.config)==null?void 0:y.events.filter(F=>F.eventType==="Success")}catch{const v=(h=(c=n.config)==null?void 0:c.events)==null?void 0:h.filter(F=>F.eventType==="Fail");l=(v==null?void 0:v.length)>0?v:[]}if((l==null?void 0:l.length)>0)for(const v of l)executeEvents({...n,config:v,parentEventOutput:i});return i};function executeEventsHandler(n){var l,i,d;if(n.config.Handler==="api")return executeApiRequest(n);if(n.config.Handler==="inBuiltFunction")return executeInBuiltFunctionHandler(n);if(n.config.Handler==="custom")return executeCustomHandler(n);if(n.config.Handler==="refresh")return executeRefreshHandler(n);if(n.config.Handler==="mergeFormdata")return mergeFormdata(n.parentEventOutput,n.componentName,n.config,n.store,n.formDataHolder);if(n.config.Handler==="onBackHandler")return(l=n.store.functionParameters)==null?void 0:l.handleBack();if(n.config.Handler==="onNextHandler")return(i=n.store.functionParameters)==null?void 0:i.handleNext();if(n.config.Handler==="onResetHandler")return(d=n.store.functionParameters)==null?void 0:d.handleReset()}function getRefreshElements(n,l){var d;let i=[];return((d=n==null?void 0:n.refreshElements)==null?void 0:d.length)>0?i=n.refreshElements.map(y=>y.value):l!=null&&l.onLoad&&(i=Object.keys(l==null?void 0:l.onLoad)),i}async function executeRefreshHandler(n){const l=getRefreshElements(n.config,n.eventGroups);return Promise.allSettled(l.map(i=>{const d=n.eventGroups.onLoad[i];return d?Promise.allSettled(d.map(y=>executeEvents({...n,config:y,componentName:i}))):Promise.resolve()}))}function executeApiRequest(n){var y;const l={...(y=n.userValue)==null?void 0:y.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},d=buildApiPayload(n.config,l,i,n.store,n.dynamicData,n.userValue,n.service);return n.service[n.config.method](n.config.path,d.body,{headers:d.headers}).then(c=>c)}function executeInBuiltFunctionHandler(params){let parameter={};if(params.config.funcParametersCode){const makeFunc=eval(params.config.funcParametersCode);parameter=makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service),params.serviceHolder[params.config.inBuiltFunctionType](parameter,params.service)}else params.serviceHolder[params.config.inBuiltFunctionType](params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service)}function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode);return params.config.isSync!=="Yes"?makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName).then(n=>n):makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName)}function mergeFormdata(n,l,i,d,y){var c,h,v;i.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(x=>{var F;return{...x,properties:{...x.properties,[l]:{...(F=x.properties)==null?void 0:F[l],oneOf:n.data}}}}):i.type==="MultipleSelect"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(x=>{var F;return{...x,properties:{...x.properties,[l]:{...(F=x.properties)==null?void 0:F[l],type:"array",items:{oneOf:n==null?void 0:n.data}}}}}):i.type==="page"?_.isEmpty(n==null?void 0:n.data)&&(n==null?void 0:n.data)&&lodash.exports.isObject(n.data)||(d.newData={...d.newData,...n==null?void 0:n.data},Object.keys(n.data).forEach(x=>{y[x]=n.data[x]})):i.type==="Table"&&i.lazyLoading?n&&(n==null?void 0:n.data)&&(y[l]=(c=n.data)==null?void 0:c.data,y[`${l}_RowCount`]=(v=(h=n.data)==null?void 0:h.meta)==null?void 0:v.totalRowCount):n!=null&&n.data&&(y[l]=n.data)}const buildBodyFormat=(n,l,i,d)=>{let y={...i==null?void 0:i.payload};return n.map(c=>{var h,v,x,F,A;if(typeof(c==null?void 0:c.value)!="string")y[c.key]=c.value;else if((h=c==null?void 0:c.value)!=null&&h.startsWith("$userValue")){const B=c.value.substring(11);y[c.key]=_.get(i,B)}else if((v=c==null?void 0:c.value)!=null&&v.startsWith("$urlParams")){const B=c.value.substring(11),U=(x=d==null?void 0:d.searchParams)==null?void 0:x.get(B);y[c.key]=U}else if((F=c==null?void 0:c.value)!=null&&F.startsWith("$local")){const B=c.value.substring(7),U=JSON.parse(sessionStorage.getItem(B)||'""');y[c.key]=U}else if((A=c==null?void 0:c.value)!=null&&A.startsWith("$")){const B=c.value.substring(1);y[c.key]=_.get(l,B)}else(c==null?void 0:c.value)==="*"&&(c==null?void 0:c.key)==="*"?y={...y,...l}:(c==null?void 0:c.value)==="*"?y[c.key]=l:y[c.key]=c.value}),y},buildHeadersFormat=n=>{const l={"X-Requested-With":"XMLHttpRequest"};return n.map(i=>{l[i.key]=i.value}),l};function shouldEventExecute(n){var i,d,y;const l=(d=(i=n.config)==null?void 0:i.events)==null?void 0:d.filter(c=>c.eventType==="onStart");return(l==null?void 0:l.length)>0?((y=l[0])==null?void 0:y.isSync)!=="Yes"?executeEventsHandler({...n,config:l[0]}).then(c=>c):executeEventsHandler({...n,config:l[0]}):n.config.isSync!=="Yes"?Promise.resolve(!0):!0}function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var n,l;compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((l=(n=store==null?void 0:store.ctx)==null?void 0:n.core)==null?void 0:l.data)||store.formData,userValue,store)});const promiseChain={body,headers};if(compConfig.apiBody){const makeFunc=eval(compConfig.apiBody);return{body:makeFunc(store,dynamicData,userValue,promiseChain.body),headers:promiseChain.headers}}return promiseChain}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6};let pageData=!1;const extractEvents=n=>{function l(i){i.events&&i.events.forEach(d=>{var c;i.type&&(compType=i.type),eventGroups[d.eventType]||(eventGroups[d.eventType]={}),eventGroups[d.eventType][i.name]||(eventGroups[d.eventType][i.name]=[]);const y=(c=d==null?void 0:d.events)==null?void 0:c.find(h=>h.eventType==="Success");!y&&d.eventType==="onLoad"&&(d.events||(d.events=[]),d.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!y&&(d.eventType==="onBack"||d.eventType==="onNext"||d.eventType==="onReset")&&(d.events||(d.events=[]),d.events.push({Handler:`${d.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),eventGroups[d.eventType][i.name].push({...d,type:compType})})}return l(n),n!=null&&n.elements&&n.elements.forEach(extractEvents),eventGroups};var service=n=>{const l={};let i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:{downloadFile:downloadFile$1,download:downloadFileFromUrl,...n.functionsProvider},eventGroups,functionsProvider:n.functionsProvider,formDataHolder:l};return{setPage:async function(){var v,x,F;n.store.setAdditionalErrors([]),n.store.setFormdata((n==null?void 0:n.initFormData())||{}),n.store.setSchema({type:"object",properties:{}}),n.store.newData={},eventGroups={},pageData=await n.pageDataProvider();const d=pageData==null?void 0:pageData.config,y=pageData==null?void 0:pageData.uiSchema,c=new CustomEvent("pageNameChanged",{detail:{pageName:d.label,hasBackIcon:d.hasBackIcon!=="NO"}});window.dispatchEvent(c),(x=(v=n==null?void 0:n.store)==null?void 0:v.theme)==null||x.myTheme;const h=(F=pageData==null?void 0:pageData.schema)!=null?F:{type:"object",properties:{}};eventGroups=extractEvents(d),i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,functionsProvider:n.functionsProvider,serviceHolder:this,eventGroups,formDataHolder:l},n.store.setSchema(A=>({...h,...A,properties:{...h.properties,...A.properties}})),executeRefreshHandler({config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:this,eventGroups,formDataHolder:l}).then(A=>{n.store.setFormdata(B=>({...B,...l})),y.elements.push(notifyUiSchema),n.store.setUiSchema(y)})},onCellRenderer:d=>{var c,h,v,x,F;const y=_.cloneDeep(eventGroups);if(y.onCellRenderer){let A={};const B=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||((v=(h=n==null?void 0:n.dynamicData)==null?void 0:h.path)==null?void 0:v.split(".")[0]);if((x=y==null?void 0:y.onCellRenderer)!=null&&x[B]){for(const U of(F=y==null?void 0:y.onCellRenderer)==null?void 0:F[B])i.store.functionParameters=d,A=executeEvents({...i,config:U,componentName:B});return A}}return{}},onClick:function(){this.callHandler("onClick")},onKeyDown:function(){this.callHandler("onKeyDown")},onFileDelete:async function(){this.callHandler("onFileDelete")},onMount:function(){this.callHandler("onMount")},onFileDownload:function(){this.callHandler("onDownload")},onFileUpload:function(){this.callHandler("onUpload")},backHandler:function(){n.store.navigate(-1)},onRowMovement:async function(d){const y=[{key:"direction",value:d.rowMovement.direction},{key:"movedRowId",value:d.rowMovement.movedRowId},{key:"targetRowId",value:d.rowMovement.targetRowId||[]}];await this.callExecuteEvents({path:d==null?void 0:d.path},y,"onRowMovement");const c=await this.callExecuteEvents({path:d==null?void 0:d.path},y,"onLoad");return c==null?void 0:c.data},onPaginationChange:async function(d){var h,v;const y=[{key:"size",value:d.pagination.pageSize},{key:"pageIndex",value:d.pagination.pageIndex},{key:"sorting",value:d.sorting||[]},{key:"filters",value:d.tableColumnConfig||[]},{key:"globalFilter",value:(h=d.globalFilter)!=null?h:""},{key:"expandedRowIds",value:(v=d.expandedRowIds)!=null?v:[]}],c=await this.callExecuteEvents(d,y,"onLoad");return c==null?void 0:c.data},getSelectOptions:async function(d){if(d.serachValue!==""&&d.serachValue!==void 0){const y=[{key:"searchValue",value:d.serachValue},{key:"currentValue",value:d.currentValue}],c=await this.callExecuteEvents(d,y,"onLoad");return c==null?void 0:c.data}},onChange:function(){if(!eventGroups.onChange)return;const y=Object.keys(eventGroups.onChange).flatMap(c=>{var h,v;return((h=n.store)==null?void 0:h.formData[c])===n.store.newData[c]||((v=n.store)==null?void 0:v.newData[c])===void 0?[]:eventGroups.onChange[c].map(x=>Promise.resolve(executeEvents({...i,config:x,componentName:c,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(F=>({...F,...l}))}))});Promise.allSettled(y)},callExecuteEvents:async function(d,y,c){var x,F;let h;const v=_.cloneDeep(eventGroups);for(const A of(x=v==null?void 0:v[c])==null?void 0:x[d.path]){A.body?A.body=[...A.body,...y]:A.body=y;const B=(F=A==null?void 0:A.events)==null?void 0:F.filter(U=>U.Handler!=="mergeFormdata");A.events=B!=null?B:[],h=await executeEvents({...i,config:A,componentName:d.path})}return h},onBack:async function(d){var c,h;const y=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onBack",d),((h=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:h[y])===void 0&&(d==null||d.handleBack())},onNext:async function(d){var c,h;const y=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onNext",d),((h=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:h[y])===void 0&&(d==null||d.handleNext())},onReset:async function(d){var c,h;const y=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onReset",d),((h=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:h[y])===void 0&&(d==null||d.handleReset())},callHandler:function(d,y){var v,x;const c=((v=n.dynamicData)==null?void 0:v.tableButtonPath)||n.dynamicData.path.split(".").pop();if(!((x=eventGroups==null?void 0:eventGroups[d])!=null&&x[c]))return;const h=eventGroups[d][c].map(F=>(i.store.functionParameters=y,Promise.resolve(executeEvents({...i,config:F,componentName:c,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(A=>({...A,...l}))})));Promise.allSettled(h)},downloadFile:downloadFile$1,downloadFileFromUrl,...n.functionsProvider}},leaderBoard={type:"Control",scope:"#/properties/path",options:{widget:"LeaderBoard"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{}}};const buildLeaderBoard=n=>{const l=_.cloneDeep(leaderBoard);if(n.elements){const i=n.elements.map((d,y)=>d.type?{...{widget:buildUiSchema(d),accessorKey:d.name,header:d.label||d.name}}:{accessorKey:d.name,header:d.label||d.name});l.elements=i}return l.config.main.label=n.label,n.name&&(l.scope=`#/properties/${n.name}`),n.firstImage&&(l.config.main.firstImage=n.firstImage),n.secondImage&&(l.config.main.secondImage=n.secondImage),n.thirdImage&&(l.config.main.thirdImage=n.thirdImage),n.nameKey&&(l.config.main.nameKey=n.nameKey),n.imageKey&&(l.config.main.imageKey=n.imageKey),n.scoreKey&&(l.config.main.scoreKey=n.scoreKey),n.layout&&(l.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(l.config.style=JSON.parse(n.style)),l};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(n,l)=>{const i=_.cloneDeep(progressBar);return i.scope=l,n.heading&&(i.config.main.heading=n.heading),n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=n.bottomLabel_1),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildProgressBar=(n,l)=>{const i=_.cloneDeep(progressBar);return i.scope=l,n.layout&&(i.config.layout=n.layout),i.config.main.heading=n.label,n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.config.main.bottomLabel_1=n.bottomLabel_1),i},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"BarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},barStyle:{}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"PieGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"LineGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"HorizontalBarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},barStyle:{}}}},buildHorizontalBarGraph=(n,l)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=l,n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),i.config.main.type=n.graphType,i.scope=l,i.config.main.header=n.heading,n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(n,l)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=l,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.heading&&(i.config.main.header=n.heading),n.segments&&(i.config.main.segments=n.segments),n.style){const d=JSON.parse(n.style);d!=null&&d.style&&(i.config.style={...i.config.style,...d.style}),d!=null&&d.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...d.containerStyle})}return n.width&&(i.config.main.width=n.width),n.speedoCaption&&(i.config.main.currentValueText=n.speedoCaption),n.data&&(i.config.main.data=n.data),n.needleColor&&(i.config.style.needleColor=n.needleColor),n.segments&&(i.config.style.segments=n.segments),n.endColor&&(i.config.style.endColor=n.endColor),n.startColor&&(i.config.style.startColor=n.startColor),n.segmentColors&&(i.config.style.segmentColors=n.segmentColors),i},buildPieGraph=(n,l)=>{const i=_.cloneDeep(PieGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.height&&(i.config.style.containerStyle.height=n.height),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),i.scope=l,i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i},buildStackbarGraph=(n,l)=>{var d;const i=_.cloneDeep(BarGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.legendHide&&(i.config.main.legendAvailable=n.legendHide,i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),i.config.main.type=(d=n==null?void 0:n.graphType)!=null?d:"BarGraph",i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i.scope=l,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{}}};const RunnerBoyProgressbar=(n,l)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=l,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(n,l)=>{const i=_.cloneDeep(Tabsection);return i.scope=l,n.lazyLoad&&(i.config.main.lazyLoad=n.lazyLoad==="YES"),n.orientation&&(i.config.main.orientation=n.orientation==="YES"?"vertical":"horizontal"),n.sectionLabels&&(i.config.main.tabLabels=n.sectionLabels.map(d=>d.label)),n.style&&(i.config.style=JSON.parse(n.style)),i.config.main.id=n.name,i};var WrapperSection={type:"WrapperLayout",config:{layout:12,main:{rowSpacing:3,divider:!0,label:"Default Label"},defaultStyle:!0},elements:[]};const buildWrapperSection=(n,l)=>{const i=_.cloneDeep(WrapperSection);return i.scope=l,i.config.main.label=n.label,i.config.main.divider=n.divider==="YES",i.config.main.isAccordion=n.isAccordion!=="No",n.defaultStyle&&(i.config.defaultStyle=n.defaultStyle==="YES"),n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:""},style:{}}};const buildTextField=(n,l)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.multiline&&(i.config.main.multiline=n.multiline==="YES"),n.keyName&&(i.config.main.keyName=n.keyName),n.InputFormatingAndMasking&&(i.config.main.formatStrArray=n.InputFormatingAndMasking.map(d=>d.formatElement)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.variant&&(i.config.main.variant=n.variant),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=l,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(n,l)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=n.label,n.value&&(i.config.main.options=n.value),n.freeSolo&&(i.config.main.freeSolo=n.freeSolo==="YES"),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.variant&&(i.config.main.variant=n.variant),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.scope=l,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:{xs:4,sm:2.5,md:2,lg:1.5},main:{name:"Compare",variant:"contained",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(n,l)=>{const i=_.cloneDeep(Button);return n.buttonType&&(i.options.widget=n.buttonType==="IconButton"?"IconButton":"Button",n.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=n.iconName:i.config.main.icon=n.iconName),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.tooltipMessage&&(i.config.main.tooltipMessage=n.tooltipMessage),n.defaultStyle&&(n.buttonType==="IconButton"?i.config.main.styleDefault=n.defaultStyle==="true":i.config.main.enableDefaultStyle=n.defaultStyle!=="true"),i.scope=l,n.style&&(i.config.style=JSON.parse(n.style)),n.size&&(i.config.main.size=n.size),n.color&&(i.config.main.color=n.color),n.label&&(i.config.main.name=n.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{layout:12,main:{onMount:"onMount",enableExpandAll:!0,headerIcons:{},allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(n,l)=>{const i=_.cloneDeep(Table);return i.scope=l,n.style&&(i.config.style=JSON.parse(n.style)),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.defaultColumnSize&&(i.config.main.defaultColumnSize=n.defaultColumnSize),n.enableRowMovement&&(i.config.main.enableRowMovement=n.enableRowMovement==="YES"),n.enableExpanding&&(i.config.main.enableExpanding=n.enableExpanding==="YES"),n.enableExpandAll&&(i.config.main.enableExpandAll=n.enableExpandAll==="YES"),n.filterFromLeafRows&&(i.config.main.filterFromLeafRows=n.filterFromLeafRows==="YES"),n.paginateExpandedRows&&(i.config.main.paginateExpandedRows=n.paginateExpandedRows==="YES"),n.treeStructure&&(i.config.main.treeStructure=n.treeStructure==="YES"?"flatTreeMap":!1),n.SelectionAvailable&&(i.config.main.Selection=n.SelectionAvailable==="YES"),n.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=n.ColumnResizingAvailable!=="YES"),n.DragAvailable&&(i.config.main.enableDrag=n.DragAvailable==="YES"),n.downloadAllData&&(i.config.main.downloadAllData=n.downloadAllData==="YES"),n.disableGlobalSearch&&(i.config.main.disableGlobalSearch=n.disableGlobalSearch==="YES"),n.disableColumnFilter&&(i.config.main.disableColumnFilter=n.disableColumnFilter==="YES"),n.disableSorting&&(i.config.main.disableSorting=n.disableSorting==="YES"),n.disableEditColumn&&(i.config.main.disableEditColumn=n.disableEditColumn==="YES"),n.disableFullScreenToggle&&(i.config.main.disableFullScreenToggle=n.disableFullScreenToggle==="YES"),n.disableDensityToggle&&(i.config.main.disableDensityToggle=n.disableDensityToggle==="YES"),n.disableDownloadFile&&(i.config.main.disableDownloadFile=n.disableDownloadFile==="YES"),n.disablePagination&&(i.config.main.disablePagination=n.disablePagination==="YES"),n.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=n.Table_Download_Keys_Name.map(d=>d.KeyName)),n.selectKey&&(i.config.main.selectKey=n.selectKey),n.maxPageSize&&(i.config.main.maxPageSize=n.maxPageSize),n.initialDensity&&(i.config.main.initialDensity=n.initialDensity),i},Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{iconName:""},style:{}}},buildLabel=(n,l)=>{const i=_.cloneDeep(Box);return i.scope=l,i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.iconName&&(i.config.main.iconName=n.iconName),n.style&&(i.config.style=JSON.parse(n.style)),i},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:3}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:3}},options:{widget:"DownloadFile"}},buildUploadFile=(n,l)=>{const i=_.cloneDeep(uploadFile);return i.scope=l,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),i.config.main.errorMessage=n.errorMessage,i},buildDownloadFile=(n,l)=>{const i=_.cloneDeep(downloadFile);return i.scope=l,i.config.main.label=n.label,n.layout&&(i.config.layout=n.layout),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),i};function Card(n){return{type:"WrapperLayout",config:{main:{},wrapperStyle:{position:"relative",top:"50%",transform:"translateY(-50%)",marginBottom:0},componentsBoxStyle:{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",flexDirection:"row",flexWrap:"nowrap",width:"100% !important",background:"transparent",border:`1.5px solid ${n.palette.primary.light}`,borderRadius:"8px",padding:"0px 4px",height:"100%",alignItems:"center",marginLeft:"0px","&: hover":{background:`${n.palette.primary.main}`,border:"1.5px solid black","& p":{color:"white"}}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"HorizontalLayout",config:{layout:9},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent",marginBottom:0},componentsBoxStyle:{flexDirection:"column",flexWrap:"nowrap",width:"100%",height:"inherit",background:"transparent",borderRadius:"0px",paddingRight:0},layout:12},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent",marginBottom:0},componentsBoxStyle:{flexDirection:"row",flexWrap:"nowrap",width:"100%",height:"0",background:"transparent",borderRadius:"0px",marginLeft:"-10px",marginTop:"-8px",justifyContent:"start",position:"relative"},layout:12},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:""},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",marginLeft:"-24px",height:0}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"5000.00"},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",position:"absolute",left:"24px"}},options:{widget:"Box"}}]},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{color:"black",fontSize:"16px",justifyContent:"center",whiteSpace:"nowrap",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none",msOverflowStyle:"none",background:"inherit",width:"calc(100% + 8px)",margin:"-8px",marginTop:{xs:"16px",md:"20px"},"&::-webkit-scrollbar":{display:"none"}},layout:12},options:{widget:"Box"}}]}]},{type:"Control",scope:"#/properties/programType",config:{main:{url:"https://www.svgrepo.com/show/500606/loading.svg"},style:{containerStyle:{height:"100%",display:"flex",justifyContent:"end"},imageStyle:{width:"unset",fontSize:"none",padding:"4px",margin:"0px 0px 0px 8px",height:"64px"}},layout:3},options:{widget:"Image"}}]}}const buildCard=(config,componentScope,store)=>{const card=_.cloneDeep(Card(store.theme.myTheme));return config.style&&(card.config.wrapperStyle=JSON.parse(config.style)),card.elements[0].elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/value`,card.elements[1].scope=`#/properties/${config.name}/properties/url`,card.elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/description`,config.layout&&(card.config.layout=createLayoutFormat(config.layout)),config!=null&&config.titleIcon&&(card.elements[0].elements[0].elements[0].elements[0].config.main.heading=eval(`'\\${config.titleIcon}'`),card.elements[0].elements[0].elements[0].elements[1].config.style.left="24px"),config.label&&(card.elements[0].elements[0].elements[0].elements[1].config.main.heading=config.label),config.url&&(card.elements[1].config.main.url=config.url),config.description&&(card.elements[0].elements[0].elements[1].config.main.heading=config.description),card};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"",type:"date"}}};const DateTime={type:"Control",scope:"#/properties/date",options:{widget:"DateTimeInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"DateTime",type:"date"}}},buildDate=(n,l)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=l,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.variant&&(i.config.main.variant=n.variant),i},buildDateTime=(n,l)=>{const i=_.cloneDeep(DateTime);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=l,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.variant&&(i.config.main.variant=n.variant),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:12,sm:6,md:6,lg:6},main:{}}};const buildRankCard=(n,l)=>{const i=_.cloneDeep(RankCard);return i.scope=l,n.rank&&(i.config.main.rank=`${n.rank}`),n.height&&(i.config.main.height=`${n.height}px`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RollAndDice={type:"Control",scope:"#/properties/path",options:{widget:"RollAndDice"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRollAndDice=(n,l)=>{const i=_.cloneDeep(RollAndDice);return n.name&&(i.scope=l),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{},style:{}}};const buildTimer=(n,l)=>{const i=_.cloneDeep(Timer);return i.scope=l,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"",type:"text",multiple:!0,variant:"outlined",options:[]}}};const buildMultiSelect=(n,l)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=l,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.value&&(i.config.main.options=n.value),n.variant&&(i.config.main.variant=n.variant),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),i},buildBasicUiSchema=n=>({type:"HorizontalLayout",pageName:n.name,name:n.name,accessorKey:n.name,heading:n.label||n.name,elements:[]}),TextArea={type:"Control",scope:"#/properties/textarea",options:{widget:"TextArea"},config:{layout:12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(n,l)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(i.config.style=JSON.parse(n.style)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.enableCodeEditor&&(i.config.main.enableCodeEditor=n.enableCodeEditor==="YES"),n.codeEditorLanguage&&(i.config.main.codeEditorLanguage=n.codeEditorLanguage),i.scope=l,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(n,l)=>{const i=_.cloneDeep(cardSlider);return n.name&&(i.scope=l),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",options:{widget:"CheckBox"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Welcome to Hyperform"}}},buildCheckbox=(n,l)=>{const i=_.cloneDeep(Checkbox);return i.scope=l,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},buildLineGraph=(n,l)=>{const i=_.cloneDeep(LineGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),i.config.main.header=n.heading,n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.yAxisValue&&(i.config.main.yAxisValue=n.yAxisValue),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i.scope=l,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Enabled",options:["YES","NO"]}}},buildRadio=(n,l)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=l,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.sectionLabels&&(i.config.main.options=n.sectionLabels.map(d=>d.label||d.Options)),n.style&&(i.config.style=JSON.parse(n.style)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{},style:{}}};const buildEmptyBox=(n,l)=>{const i=_.cloneDeep(emptyBox);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:12,elements:[],config:{main:{}}},buildArray=(n,l)=>{const i=_.cloneDeep(ArrayUiSchema);return n.allExpanded&&(i.config.main.allExpanded=n.allExpanded==="YES"),n.disableAddButton&&(i.config.main.disableAddButton=n.disableAddButton==="YES"),n.disableExpandAllButton&&(i.config.main.disableExpandAllButton=n.disableExpandAllButton==="YES"),n.disableRowActions&&(i.config.main.disableRowActions=n.disableRowActions==="YES"),n.style&&(i.config.style=JSON.parse(n.style)),i.config.main.childElementLabel=n.childElementLabel,i.config.main.label=n.label,i.scope=l,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(n,l)=>{const i=_.cloneDeep(TextField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=l,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(n,l)=>{const i=_.cloneDeep(PanField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=l,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(n,l)=>{const i=_.cloneDeep(FileInput);return i.scope=l,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),n.variant&&(i.config.main.variant=n.variant),n.disableUpload&&(i.config.main.disableUpload=n.disableUpload==="YES"),n.disableDownload&&(i.config.main.disableDownload=n.disableDownload==="YES"),n.disableDelete&&(i.config.main.disableDelete=n.disableDelete==="YES"),i},Stepper={type:"Control",scope:"#/properties/Stepper",options:{widget:"Stepper"},config:{main:{steps:[{label:"First"},{label:"Second"},{label:"Third"}],resetButton:!1,resetText:"Reset",orientation:"vertical"}},elements:[]},buildStepper=(n,l)=>{const i=_.cloneDeep(Stepper);return i.scope=l,i.config.main.resetButton=n.resetButton==="YES",n.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=n.defaultButtonAvailable==="YES"),i.config.main.resetText=n.resetText||"ResetData",i.config.main.completeText=n.completeText||"Complete Text",i.config.main.orientation=n.orientation||"horizontal",n.sectionLabels&&(i.config.main.steps=n.sectionLabels.map((d,y)=>({label:d.label,id:y}))),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(n,l)=>{const i=_.cloneDeep(PopUP);return i.scope=l,i.config.main.title=n.label,i.config.main.fullScreen=n.fullScreen==="YES",i.config.main.fullWidth=n.fullWidth==="YES",i.config.main.maxWidth=n.maxWidth||!1,n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(i.config.style=JSON.parse(n.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(n,l)=>{const i=_.cloneDeep(dataGrid);return i.scope=l,n.elevation&&(i.config.main.elevation=+n.elevation),i.config.main.divider=n.divider!=="NO",n.height&&(i.config.main.height=`${n.height}px`),n.justifyContent&&(i.config.main.justifyContent=n.justifyContent),n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.cardLayout&&(i.config.cardLayout=createLayoutFormat(n.cardLayout,n.type)),n.style&&(i.config.style=JSON.parse(n.style)),i},InputSlider={type:"Control",scope:"#/properties/inputSlider",options:{widget:"InputSlider"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{limitToMax:!1,max:1e4,step:1e3,min:0,label:"Slider"}}},buildInputSlider=(n,l)=>{const i=_.cloneDeep(InputSlider);return i.scope=l,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.limitToMax&&(i.config.main.limitToMax=n.limitToMax==="YES"),n.max&&(i.config.main.max=n.max),n.step&&(i.config.main.step=n.step),n.min&&(i.config.main.min=n.min),n.style&&(i.config.main.defaultStyle=JSON.parse(n.style)),i},TreeMap={type:"Control",scope:"#/properties/TreeMap2",config:{layout:12,main:{layout:"cartsian",orientation:"vertical",header:"Territory Hierarchy",linkType:"step",graphHeight:"500px"},style:{BoxStyle:{borderRadius:"5px"}}},options:{widget:"TreeMap"},elements:[]},buildTreeMap=(n,l)=>{const i=_.cloneDeep(TreeMap);return i.scope=l,n.label&&(i.config.main.header=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.orientation&&(i.config.main.orientation=n.orientation),n.linkType&&(i.config.main.linkType=n.linkType),n.graphHeight&&(i.config.main.graphHeight=n.graphHeight),n.graphWidth&&(i.config.main.graphWidth=n.graphWidth),n.graphZoomHeight&&(i.config.main.graphZoomHeight=n.graphZoomHeight),n.graphZoomWidth&&(i.config.main.graphZoomWidth=n.graphZoomWidth),n.style&&(i.config.style=JSON.parse(n.style)),i};var Thought={type:"Control",scope:"#/properties/path",options:{widget:"Thought"},config:{layout:{xs:11.5,sm:11.5,md:8,lg:8},main:{}}};const buildThoughtOfTheDay=(n,l)=>{const i=_.cloneDeep(Thought);return i.scope=l,n.thought&&(i.config.main.thought=`${n.thought}`),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.label&&(i.config.main.label=n.label),n.style&&(i.config.style=JSON.parse(n.style)),i};var horizontalLayout={type:"HorizontalLayout",config:{layout:12,main:{rowSpacing:3,divider:!1},defaultStyle:!0},elements:[]};const buildHorizontalLayout=(n,l)=>{const i=_.cloneDeep(horizontalLayout);return i.scope=l,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),i},imageUiSchema={type:"Control",scope:"#/properties/Logo",options:{widget:"Image"},config:{layout:3,main:{url:""},style:{}}},buildImage=(n,l)=>{const i=_.cloneDeep(imageUiSchema);return i.scope=l,i.config.main.url=n.imageUrl,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),n.height&&(i.config.style.imageStyle={...i.config.style.imageStyle,height:n.height}),i};exports.schema={type:"object",properties:{},required:[]};function buildSchemaFromConfig(n,l){var d,y,c,h,v,x,F,A,B,U,ne,X,K;if(n.elements)if(n.type==="Array"){(d=l.properties)!=null||(l.properties={}),(h=(y=l.properties)[c=n.name])!=null||(y[c]={type:"array",items:{type:"object",properties:{},required:[]}});const M=l.properties[n.name].items;(v=n.elements)==null||v.forEach(ae=>buildSchemaFromConfig(ae,M));return}else{(x=n.elements)==null||x.forEach(M=>buildSchemaFromConfig(M,l));return}(F=l.properties)!=null||(l.properties={}),(U=(A=l.properties)[B=n.name])!=null||(A[B]={});const i=l.properties[n.name];(ne=n.validation)==null||ne.forEach(M=>{var ae;M.validationType==="required"?((ae=l.required)!=null||(l.required=[]),l.required.push(n.name)):M.validationType==="readOnly"?(i.type="string",i.disabled=!0):(i.type="string",i[M.validationType]=isNaN(M.validationValue)?M.validationValue:Number(M.validationValue))}),n.type==="Select"&&((X=n.value)==null?void 0:X.length)&&(i.oneOf=n.value.map(M=>({const:M.value,title:M.label}))),n.type==="MultipleSelect"&&((K=n.value)==null?void 0:K.length)&&(i.type="array",i.items={oneOf:n.value.map(M=>({const:M.value,title:M.label}))})}const buildSchema=n=>(buildSchemaFromConfig(n,exports.schema),exports.schema),buildUiSchema=(n,l)=>{let i={};const d=`#/properties/${n.name}`;switch(n.type){case"TreeMap":i=buildTreeMap(n,d);break;case"DateTime":i=buildDateTime(n,d);break;case"InputSlider":i=buildInputSlider(n,d);break;case"DataGrid":i=buildDataGrid(n,d);break;case"Stepper":i=buildStepper(n,d);break;case"PopUp":i=buildPopUp(n,d);break;case"FileInput":i=buildFileInput(n,d);break;case"AadharcardText":i=buildAdhaarField(n,d);break;case"PanCardText":i=buildPanField(n,d);break;case"TabSection":i=buildTabSection(n,d);break;case"RunnerBoyProgressBar":i=RunnerBoyProgressbar(n,d);break;case"WrapperSection":i=buildWrapperSection(n,d);break;case"HorizontalLayout":i=buildHorizontalLayout(n,d);break;case"Text":i=buildTextField(n,d);break;case"TextArea":i=buildTextArea(n,d);break;case"Date":i=buildDate(n,d);break;case"Select":i=buildSelect(n,d);break;case"Radio":i=buildRadio(n,d);break;case"Button":i=buildButton(n,d);break;case"Table":i=buildTable(n,d);break;case"Array":i=buildArray(n,d);break;case"Box":i=buildLabel(n,d);break;case"CheckBox":i=buildCheckbox(n,d);break;case"UploadFile":i=buildUploadFile(n,d);break;case"DownloadFile":i=buildDownloadFile(n,d);break;case"EmptyBox":i=buildEmptyBox(n);break;case"card":i=buildCard(n,d,l);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":i=buildStackbarGraph(n,d);break;case"LineGraph":i=buildLineGraph(n,d);break;case"PieGraph":i=buildPieGraph(n,d);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":i=buildHorizontalBarGraph(n,d);break;default:i=buildStackbarGraph(n,d);break}break;case"ProgressBar":i=buildProgressBar(n,d);break;case"SpeedoMeter":i=buildSpeedoMeter(n,d);break;case"ProgressBarCard":i=buildProgressBarCard(n,d);break;case"RankCard":i=buildRankCard(n,d);break;case"Rank":i=buildRollAndDice(n,d);break;case"Slider":i=buildSlider(n,d);break;case"Timer":i=buildTimer(n,d);break;case"ColumnGroup":i={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":i=buildMultiSelect(n,d);break;case"LeaderBoard":i=buildLeaderBoard(n);break;case"Thought":i=buildThoughtOfTheDay(n,d);break;case"Image":i=buildImage(n,d);break;default:exports.schema={type:"object",properties:{},required:[]},i=buildBasicUiSchema(n)}if(n!=null&&n.elements){if((n==null?void 0:n.type)==="LeaderBoard")return i;if(n.type=="ColumnGroup"){const y={};n.sizeHolder&&n.sizeHolder.map((c,h)=>{y[c.keyName]=c.value}),i.elements=n.elements.map((c,h)=>{const v={accessorKey:c.name,type:c.type==="ColumnGroup"?"ColumnGroup":c.columnFormat,header:c.label||c.name,size:y[c.name]||180,enableColumnFilter:c.enableFilter!=="No",columnFilterModeOptions:c.filteringOptions,enableSorting:c.enableSorting!=="No",columnKey:c.columnKey,dateFormat:c.dateFormat};return c.type?{widget:c.type!="ColumnGroup"?buildUiSchema(c,l):void 0,...v,...c.type==="ColumnGroup"?buildUiSchema(c,l):{}}:{...v}})}else if(n.type=="Table"){const y={};n.sizeHolder&&n.sizeHolder.map((x,F)=>{y[x.keyName]=x.value});const c=[],h=[],v=[];n.elements.filter((x,F)=>{const A={accessorKey:x.name,type:x.type==="ColumnGroup"?"ColumnGroup":x.columnFormat,header:x.label||x.name,size:y[x.name]||180,enableColumnFilter:x.enableFilter!=="No",columnFilterModeOptions:x.filteringOptions,enableSorting:x.enableSorting!=="No",columnKey:x.columnKey,dateFormat:x.dateFormat};if(x.type){if(x.elementType=="action"){const U=buildUiSchema(x,l);return h.push(U),!1}if(x.elementType=="tableHeader"){const U=buildUiSchema(x,l);return c.push({widget:U}),!1}const B={widget:x.type!="ColumnGroup"?buildUiSchema(x,l):void 0,...A,...x.type==="ColumnGroup"?buildUiSchema(x,l):{}};v.push(B)}else v.push({...A})}),i.elements=v,i.config.action=h,i.config.main.headerIcons.elements=c}else i.elements=n.elements.map((y,c)=>buildUiSchema(y,l))}return i};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromSessionStorage=clearFromSessionStorage,exports.downloadFile=downloadFile$1,exports.downloadFileFromUrl=downloadFileFromUrl,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
28
28
|
//# sourceMappingURL=impaktapps-ui-builder.umd.js.map
|