impaktapps-ui-builder 1.0.261 → 1.0.271

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.
@@ -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,u="4.17.21",f=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",x="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",F=500,A="__lodash_placeholder__",L=1,U=2,ne=4,X=1,V=2,M=1,ae=2,Ee=4,Z=8,qe=16,Se=32,Je=64,Ae=128,at=256,Ft=512,fn=30,gn="...",yn=800,hn=16,Wt=1,bn=2,xn=3,ht=1/0,lt=9007199254740991,dl=17976931348623157e292,vn=0/0,We=4294967295,ml=We-1,fl=We>>>1,gl=[["ary",Ae],["bind",M],["bindKey",ae],["curry",Z],["curryRight",qe],["flip",Ft],["partial",Se],["partialRight",Je],["rearg",at]],Et="[object Arguments]",Sn="[object Array]",yl="[object AsyncFunction]",Gt="[object Boolean]",Vt="[object Date]",hl="[object DOMException]",Cn="[object Error]",wn="[object Function]",Mi="[object GeneratorFunction]",Ne="[object Map]",Kt="[object Number]",bl="[object Null]",Xe="[object Object]",Oi="[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]",fo="[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,ki=/&(?:amp|lt|gt|quot|#39);/g,Ni=/[&<>"']/g,Il=RegExp(ki.source),Tl=RegExp(Ni.source),Fl=/<%-([\s\S]+?)%>/g,El=/<%([\s\S]+?)%>/g,Hi=/<%=([\s\S]+?)%>/g,Al=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ll=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wo=/[\\^$.*+?()[\]{}|]/g,Dl=RegExp(wo.source),_o=/^\s+/,Pl=/\s/,Rl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ml=/\{\n\/\* \[wrapped with (.+)\] \*/,Ol=/,? & /,kl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nl=/[()=,{}\[\]\/\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*)$/,Vl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,Kl=/['\n\r\u2028\u2029\\]/g,Tn="\\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",Vi=Zl+Ql+jl+es,Io="['\u2019]",ts="["+Tn+"]",Ki="["+Vi+"]",Fn="["+Ui+"]",qi="\\d+",ns="["+Yi+"]",Ji="["+$i+"]",Xi="[^"+Tn+Vi+qi+Yi+$i+Wi+"]",To="\\ud83c[\\udffb-\\udfff]",os="(?:"+Fn+"|"+To+")",Zi="[^"+Tn+"]",Fo="(?:\\ud83c[\\udde6-\\uddff]){2}",Eo="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="["+Wi+"]",Qi="\\u200d",ji="(?:"+Ji+"|"+Xi+")",is="(?:"+Lt+"|"+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,Eo].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,Eo].join("|")+")"+ir,ps="(?:"+[Zi+Fn+"?",Fn,Fo,Eo,ts].join("|")+")",us=RegExp(Io,"g"),cs=RegExp(Fn,"g"),Ao=RegExp(To+"(?="+To+")|"+ps+ir,"g"),ds=RegExp([Lt+"?"+Ji+"+"+er+"(?="+[Ki,Lt,"$"].join("|")+")",is+"+"+tr+"(?="+[Ki,Lt+ji,"$"].join("|")+")",Lt+"?"+ji+"+"+er,Lt+"+"+tr,ls,as,qi,ss].join("|"),"g"),ms=RegExp("["+Qi+Tn+Ui+Gi+"]"),fs=/[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[fo]=j[go]=j[yo]=j[ho]=j[bo]=j[xo]=j[vo]=j[So]=j[Co]=!0,j[Et]=j[Sn]=j[Zt]=j[Gt]=j[At]=j[Vt]=j[Cn]=j[wn]=j[Ne]=j[Kt]=j[Xe]=j[qt]=j[He]=j[Jt]=j[Xt]=!1;var Q={};Q[Et]=Q[Sn]=Q[Zt]=Q[At]=Q[Gt]=Q[Vt]=Q[fo]=Q[go]=Q[yo]=Q[ho]=Q[bo]=Q[Ne]=Q[Kt]=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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},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")(),Lo=l&&!l.nodeType&&l,bt=Lo&&!0&&n&&!n.nodeType&&n,ar=bt&&bt.exports===Lo,Bo=ar&&rr.process,Le=function(){try{var g=bt&&bt.require&&bt.require("util").types;return g||Bo&&Bo.binding&&Bo.binding("util")}catch{}}(),lr=Le&&Le.isArrayBuffer,sr=Le&&Le.isDate,pr=Le&&Le.isMap,ur=Le&&Le.isRegExp,cr=Le&&Le.isSet,dr=Le&&Le.isTypedArray;function Ce(g,S,b){switch(b.length){case 0:return g.call(S);case 1:return g.call(S,b[0]);case 2:return g.call(S,b[0],b[1]);case 3:return g.call(S,b[0],b[1],b[2])}return g.apply(S,b)}function _s(g,S,b,E){for(var O=-1,G=g==null?0:g.length;++O<G;){var le=g[O];S(E,le,b(le),g)}return E}function Be(g,S){for(var b=-1,E=g==null?0:g.length;++b<E&&S(g[b],b,g)!==!1;);return g}function Is(g,S){for(var b=g==null?0:g.length;b--&&S(g[b],b,g)!==!1;);return g}function mr(g,S){for(var b=-1,E=g==null?0:g.length;++b<E;)if(!S(g[b],b,g))return!1;return!0}function st(g,S){for(var b=-1,E=g==null?0:g.length,O=0,G=[];++b<E;){var le=g[b];S(le,b,g)&&(G[O++]=le)}return G}function En(g,S){var b=g==null?0:g.length;return!!b&&Bt(g,S,0)>-1}function Do(g,S,b){for(var E=-1,O=g==null?0:g.length;++E<O;)if(b(S,g[E]))return!0;return!1}function ee(g,S){for(var b=-1,E=g==null?0:g.length,O=Array(E);++b<E;)O[b]=S(g[b],b,g);return O}function pt(g,S){for(var b=-1,E=S.length,O=g.length;++b<E;)g[O+b]=S[b];return g}function Po(g,S,b,E){var O=-1,G=g==null?0:g.length;for(E&&G&&(b=g[++O]);++O<G;)b=S(b,g[O],O,g);return b}function Ts(g,S,b,E){var O=g==null?0:g.length;for(E&&O&&(b=g[--O]);O--;)b=S(b,g[O],O,g);return b}function Ro(g,S){for(var b=-1,E=g==null?0:g.length;++b<E;)if(S(g[b],b,g))return!0;return!1}var Fs=Mo("length");function Es(g){return g.split("")}function As(g){return g.match(kl)||[]}function fr(g,S,b){var E;return b(g,function(O,G,le){if(S(O,G,le))return E=G,!1}),E}function An(g,S,b,E){for(var O=g.length,G=b+(E?1:-1);E?G--:++G<O;)if(S(g[G],G,g))return G;return-1}function Bt(g,S,b){return S===S?Us(g,S,b):An(g,gr,b)}function Ls(g,S,b,E){for(var O=b-1,G=g.length;++O<G;)if(E(g[O],S))return O;return-1}function gr(g){return g!==g}function yr(g,S){var b=g==null?0:g.length;return b?ko(g,S)/b:vn}function Mo(g){return function(S){return S==null?i:S[g]}}function Oo(g){return function(S){return g==null?i:g[S]}}function hr(g,S,b,E,O){return O(g,function(G,le,J){b=E?(E=!1,G):S(b,G,le,J)}),b}function Bs(g,S){var b=g.length;for(g.sort(S);b--;)g[b]=g[b].value;return g}function ko(g,S){for(var b,E=-1,O=g.length;++E<O;){var G=S(g[E]);G!==i&&(b=b===i?G:b+G)}return b}function No(g,S){for(var b=-1,E=Array(g);++b<g;)E[b]=S(b);return E}function Ds(g,S){return ee(S,function(b){return[b,g[b]]})}function br(g){return g&&g.slice(0,Cr(g)+1).replace(_o,"")}function we(g){return function(S){return g(S)}}function Ho(g,S){return ee(S,function(b){return g[b]})}function Qt(g,S){return g.has(S)}function xr(g,S){for(var b=-1,E=g.length;++b<E&&Bt(S,g[b],0)>-1;);return b}function vr(g,S){for(var b=g.length;b--&&Bt(S,g[b],0)>-1;);return b}function Ps(g,S){for(var b=g.length,E=0;b--;)g[b]===S&&++E;return E}var Rs=Oo(hs),Ms=Oo(bs);function Os(g){return"\\"+vs[g]}function ks(g,S){return g==null?i:g[S]}function Dt(g){return ms.test(g)}function Ns(g){return fs.test(g)}function Hs(g){for(var S,b=[];!(S=g.next()).done;)b.push(S.value);return b}function zo(g){var S=-1,b=Array(g.size);return g.forEach(function(E,O){b[++S]=[O,E]}),b}function Sr(g,S){return function(b){return g(S(b))}}function ut(g,S){for(var b=-1,E=g.length,O=0,G=[];++b<E;){var le=g[b];(le===S||le===A)&&(g[b]=A,G[O++]=b)}return G}function Ln(g){var S=-1,b=Array(g.size);return g.forEach(function(E){b[++S]=E}),b}function zs(g){var S=-1,b=Array(g.size);return g.forEach(function(E){b[++S]=[E,E]}),b}function Us(g,S,b){for(var E=b-1,O=g.length;++E<O;)if(g[E]===S)return E;return-1}function Ys(g,S,b){for(var E=b+1;E--;)if(g[E]===S)return E;return E}function Pt(g){return Dt(g)?Ws(g):Fs(g)}function ze(g){return Dt(g)?Gs(g):Es(g)}function Cr(g){for(var S=g.length;S--&&Pl.test(g.charAt(S)););return S}var $s=Oo(xs);function Ws(g){for(var S=Ao.lastIndex=0;Ao.test(g);)++S;return S}function Gs(g){return g.match(Ao)||[]}function Vs(g){return g.match(ds)||[]}var Ks=function g(S){S=S==null?ue:Rt.defaults(ue.Object(),S,Rt.pick(ue,gs));var b=S.Array,E=S.Date,O=S.Error,G=S.Function,le=S.Math,J=S.Object,Uo=S.RegExp,qs=S.String,De=S.TypeError,Bn=b.prototype,Js=G.prototype,Mt=J.prototype,Dn=S["__core-js_shared__"],Pn=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:""}(),Rn=Mt.toString,Zs=Pn.call(J),Qs=ue._,js=Uo("^"+Pn.call(q).replace(wo,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mn=ar?S.Buffer:i,ct=S.Symbol,On=S.Uint8Array,_r=Mn?Mn.allocUnsafe:i,kn=Sr(J.getPrototypeOf,J),Ir=J.create,Tr=Mt.propertyIsEnumerable,Nn=Bn.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=E&&E.now!==ue.Date.now&&E.now,np=S.setTimeout!==ue.setTimeout&&S.setTimeout,zn=le.ceil,Un=le.floor,Yo=J.getOwnPropertySymbols,op=Mn?Mn.isBuffer:i,Er=S.isFinite,ip=Bn.join,rp=Sr(J.keys,J),se=le.max,de=le.min,ap=E.now,lp=S.parseInt,Ar=le.random,sp=Bn.reverse,$o=_t(S,"DataView"),en=_t(S,"Map"),Wo=_t(S,"Promise"),Ot=_t(S,"Set"),tn=_t(S,"WeakMap"),nn=_t(J,"create"),Yn=tn&&new tn,kt={},pp=It($o),up=It(en),cp=It(Wo),dp=It(Ot),mp=It(tn),$n=ct?ct.prototype:i,on=$n?$n.valueOf:i,Lr=$n?$n.toString:i;function s(e){if(oe(e)&&!k(e)&&!(e instanceof $)){if(e instanceof Pe)return e;if(q.call(e,"__wrapped__"))return Ba(e)}return new Pe(e)}var Nt=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 Pe(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}s.templateSettings={escape:Fl,evaluate:El,interpolate:Hi,variable:"",imports:{_:s}},s.prototype=Wn.prototype,s.prototype.constructor=s,Pe.prototype=Nt(Wn.prototype),Pe.prototype.constructor=Pe;function $(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=We,this.__views__=[]}function fp(){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=k(e),r=t<0,a=o?e.length:0,p=Eu(0,a,this.__views__),d=p.start,m=p.end,y=m-d,C=r?m:d-1,w=this.__iteratees__,I=w.length,T=0,B=de(y,this.__takeCount__);if(!o||!r&&a==y&&B==y)return ea(e,this.__actions__);var P=[];e:for(;y--&&T<B;){C+=t;for(var H=-1,R=e[C];++H<I;){var Y=w[H],W=Y.iteratee,Te=Y.type,ye=W(R);if(Te==bn)R=ye;else if(!ye){if(Te==Wt)continue e;break e}}P[T++]=R}return P}$.prototype=Nt(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===v?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?v: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():Nn.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 Tp(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=Tp;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 Ep(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 Lp(e){return oo(this,e).has(e)}function Bp(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=Ep,Qe.prototype.get=Ap,Qe.prototype.has=Lp,Qe.prototype.set=Bp;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,v),this}function Pp(e){return this.__data__.has(e)}St.prototype.add=St.prototype.push=Dp,St.prototype.has=Pp;function Ue(e){var t=this.__data__=new Ze(e);this.size=t.size}function Rp(){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 Op(e){return this.__data__.get(e)}function kp(e){return this.__data__.has(e)}function Np(e,t){var o=this.__data__;if(o instanceof Ze){var r=o.__data__;if(!en||r.length<f-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=Rp,Ue.prototype.delete=Mp,Ue.prototype.get=Op,Ue.prototype.has=kp,Ue.prototype.set=Np;function Br(e,t){var o=k(e),r=!o&&Tt(e),a=!o&&!r&&yt(e),p=!o&&!r&&!a&&Yt(e),d=o||r||a||p,m=d?No(e.length,qs):[],y=m.length;for(var C in e)(t||q.call(e,C))&&!(d&&(C=="length"||a&&(C=="offset"||C=="parent")||p&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||nt(C,y)))&&m.push(C);return m}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,d){t(r,a,o(a),d)}),r}function Pr(e,t){return e&&Ve(t,pe(t),e)}function Yp(e,t){return e&&Ve(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 Vo(e,t){for(var o=-1,r=t.length,a=b(r),p=e==null;++o<r;)a[o]=p?i:Ti(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 Re(e,t,o,r,a,p){var d,m=t&L,y=t&U,C=t&ne;if(o&&(d=a?o(e,r,a,p):o(e)),d!==i)return d;if(!te(e))return e;var w=k(e);if(w){if(d=Lu(e),!m)return he(e,d)}else{var I=me(e),T=I==wn||I==Mi;if(yt(e))return oa(e,m);if(I==Xe||I==Et||T&&!a){if(d=y||T?{}:Ca(e),!m)return y?xu(e,Yp(d,e)):bu(e,Pr(d,e))}else{if(!Q[I])return a?e:{};d=Bu(e,I,m)}}p||(p=new Ue);var B=p.get(e);if(B)return B;p.set(e,d),Za(e)?e.forEach(function(R){d.add(Re(R,t,o,R,e,p))}):Ja(e)&&e.forEach(function(R,Y){d.set(Y,Re(R,t,o,Y,e,p))});var P=C?y?di:ci:y?xe:pe,H=w?i:P(e);return Be(H||e,function(R,Y){H&&(Y=R,R=e[Y]),rn(d,Y,Re(R,t,o,Y,e,p))}),d}function $p(e){var t=pe(e);return function(o){return Rr(o,e,t)}}function Rr(e,t,o){var r=o.length;if(e==null)return!r;for(e=J(e);r--;){var a=o[r],p=t[a],d=e[a];if(d===i&&!(a in e)||!p(d))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=En,d=!0,m=e.length,y=[],C=t.length;if(!m)return y;o&&(t=ee(t,we(o))),r?(p=Do,d=!1):t.length>=f&&(p=Qt,d=!1,t=new St(t));e:for(;++a<m;){var w=e[a],I=o==null?w:o(w);if(w=r||w!==0?w:0,d&&I===I){for(var T=C;T--;)if(t[T]===I)continue e;y.push(w)}else p(t,I,r)||y.push(w)}return y}var dt=sa(Ge),Or=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 Vn(e,t,o){for(var r=-1,a=e.length;++r<a;){var p=e[r],d=t(p);if(d!=null&&(m===i?d===d&&!Ie(d):o(d,m)))var m=d,y=p}return y}function Gp(e,t,o,r){var a=e.length;for(o=N(o),o<0&&(o=-o>a?0:a+o),r=r===i||r>a?a:N(r),r<0&&(r+=a),r=o>r?0:ja(r);o<r;)e[o++]=t;return e}function kr(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,d=e.length;for(o||(o=Pu),a||(a=[]);++p<d;){var m=e[p];t>0&&o(m)?t>1?ce(m,t-1,o,r,a):pt(a,m):r||(a[a.length]=m)}return a}var Ko=pa(),Nr=pa(!0);function Ge(e,t){return e&&Ko(e,t,pe)}function qo(e,t){return e&&Nr(e,t,pe)}function Kn(e,t){return st(t,function(o){return ot(e[o])})}function wt(e,t){t=ft(t,e);for(var o=0,r=t.length;e!=null&&o<r;)e=e[Ke(t[o++])];return o&&o==r?e:i}function Hr(e,t,o){var r=t(e);return k(e)?r:pt(r,o(e))}function fe(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 Vp(e,t){return e!=null&&q.call(e,t)}function Kp(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:En,a=e[0].length,p=e.length,d=p,m=b(p),y=1/0,C=[];d--;){var w=e[d];d&&t&&(w=ee(w,we(t))),y=de(w.length,y),m[d]=!o&&(t||a>=120&&w.length>=120)?new St(d&&w):i}w=e[0];var I=-1,T=m[0];e:for(;++I<a&&C.length<y;){var B=w[I],P=t?t(B):B;if(B=o||B!==0?B:0,!(T?Qt(T,P):r(C,P,o))){for(d=p;--d;){var H=m[d];if(!(H?Qt(H,P):r(e[d],P,o)))continue e}T&&T.push(P),C.push(B)}}return C}function Jp(e,t,o,r){return Ge(e,function(a,p,d){t(r,o(a),p,d)}),r}function ln(e,t,o){t=ft(t,e),e=Ta(e,t);var r=e==null?e:e[Ke(Oe(t))];return r==null?i:Ce(r,e,o)}function zr(e){return oe(e)&&fe(e)==Et}function Xp(e){return oe(e)&&fe(e)==Zt}function Zp(e){return oe(e)&&fe(e)==Vt}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 d=k(e),m=k(t),y=d?Sn:me(e),C=m?Sn:me(t);y=y==Et?Xe:y,C=C==Et?Xe:C;var w=y==Xe,I=C==Xe,T=y==C;if(T&&yt(e)){if(!yt(t))return!1;d=!0,w=!1}if(T&&!w)return p||(p=new Ue),d||Yt(e)?xa(e,t,o,r,a,p):Iu(e,t,y,o,r,a,p);if(!(o&X)){var B=w&&q.call(e,"__wrapped__"),P=I&&q.call(t,"__wrapped__");if(B||P){var H=B?e.value():e,R=P?t.value():t;return p||(p=new Ue),a(H,R,o,r,p)}}return T?(p||(p=new Ue),Tu(e,t,o,r,a,p)):!1}function jp(e){return oe(e)&&me(e)==Ne}function Zo(e,t,o,r){var a=o.length,p=a,d=!r;if(e==null)return!p;for(e=J(e);a--;){var m=o[a];if(d&&m[2]?m[1]!==e[m[0]]:!(m[0]in e))return!1}for(;++a<p;){m=o[a];var y=m[0],C=e[y],w=m[1];if(d&&m[2]){if(C===i&&!(y in e))return!1}else{var I=new Ue;if(r)var T=r(C,w,y,e,t,I);if(!(T===i?sn(w,C,X|V,r,I):T))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)&&fe(e)==qt}function tu(e){return oe(e)&&me(e)==He}function nu(e){return oe(e)&&uo(e.length)&&!!j[fe(e)]}function Yr(e){return typeof e=="function"?e:e==null?ve:typeof e=="object"?k(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,d){r[++o]=t(a,p,d)}),r}function Wr(e){var t=fi(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(Ke(e),t):function(o){var r=Ti(o,e);return r===i&&r===t?Fi(o,e):sn(t,r,X|V)}}function qn(e,t,o,r,a){e!==t&&Ko(t,function(p,d){if(a||(a=new Ue),te(p))iu(e,t,d,o,qn,r,a);else{var m=r?r(bi(e,d),p,d+"",e,t,a):i;m===i&&(m=p),Go(e,d,m)}},xe)}function iu(e,t,o,r,a,p,d){var m=bi(e,o),y=bi(t,o),C=d.get(y);if(C){Go(e,o,C);return}var w=p?p(m,y,o+"",e,t,d):i,I=w===i;if(I){var T=k(y),B=!T&&yt(y),P=!T&&!B&&Yt(y);w=y,T||B||P?k(m)?w=m:ie(m)?w=he(m):B?(I=!1,w=oa(y,!0)):P?(I=!1,w=ia(y,!0)):w=[]:mn(y)||Tt(y)?(w=m,Tt(m)?w=el(m):(!te(m)||ot(m))&&(w=Ca(y))):I=!1}I&&(d.set(y,w),a(w,y,r,p,d),d.delete(y)),Go(e,o,w)}function Vr(e,t){var o=e.length;if(!!o)return t+=t<0?o:0,nt(t,o)?e[t]:i}function Kr(e,t,o){t.length?t=ee(t,function(p){return k(p)?function(d){return wt(d,p.length===1?p[0]:p)}:p}):t=[ve];var r=-1;t=ee(t,we(D()));var a=$r(e,function(p,d,m){var y=ee(t,function(C){return C(p)});return{criteria:y,index:++r,value:p}});return Bs(a,function(p,d){return hu(p,d,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 d=t[r],m=wt(e,d);o(m,d)&&pn(p,ft(d,e),m)}return p}function au(e){return function(t){return wt(t,e)}}function ei(e,t,o,r){var a=r?Ls:Bt,p=-1,d=t.length,m=e;for(e===t&&(t=he(t)),o&&(m=ee(e,we(o)));++p<d;)for(var y=0,C=t[p],w=o?o(C):C;(y=a(m,w,y,r))>-1;)m!==e&&Nn.call(m,y,1),Nn.call(e,y,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)?Nn.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),d=b(p);p--;)d[r?p:++a]=e,e+=o;return d}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=ft(t,e);for(var a=-1,p=t.length,d=p-1,m=e;m!=null&&++a<p;){var y=Ke(t[a]),C=o;if(y==="__proto__"||y==="constructor"||y==="prototype")return e;if(a!=d){var w=m[y];C=r?r(w,y,m):i,C===i&&(C=te(w)?w:nt(t[a+1])?[]:{})}rn(m,y,C),m=m[y]}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<=fl){for(;r<a;){var p=r+a>>>1,d=e[p];d!==null&&!Ie(d)&&(o?d<=t:d<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 d=t!==t,m=t===null,y=Ie(t),C=t===i;a<p;){var w=Un((a+p)/2),I=o(e[w]),T=I!==i,B=I===null,P=I===I,H=Ie(I);if(d)var R=r||P;else C?R=P&&(r||T):m?R=P&&T&&(r||!B):y?R=P&&T&&!B&&(r||!H):B||H?R=!1:R=r?I<=t:I<t;R?a=w+1:p=w}return de(p,ml)}function Zr(e,t){for(var o=-1,r=e.length,a=0,p=[];++o<r;){var d=e[o],m=t?t(d):d;if(!o||!Ye(m,y)){var y=m;p[a++]=d===0?0:d}}return p}function Qr(e){return typeof e=="number"?e:Ie(e)?vn:+e}function _e(e){if(typeof e=="string")return e;if(k(e))return ee(e,_e)+"";if(Ie(e))return Lr?Lr.call(e):"";var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function mt(e,t,o){var r=-1,a=En,p=e.length,d=!0,m=[],y=m;if(o)d=!1,a=Do;else if(p>=f){var C=t?null:wu(e);if(C)return Ln(C);d=!1,a=Qt,y=new St}else y=t?[]:m;e:for(;++r<p;){var w=e[r],I=t?t(w):w;if(w=o||w!==0?w:0,d&&I===I){for(var T=y.length;T--;)if(y[T]===I)continue e;t&&y.push(I),m.push(w)}else a(y,I,o)||(y!==m&&y.push(I),m.push(w))}return m}function ii(e,t){return t=ft(t,e),e=Ta(e,t),e==null||delete e[Ke(Oe(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()),Po(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?mt(e[0]):[];for(var a=-1,p=b(r);++a<r;)for(var d=e[a],m=-1;++m<r;)m!=a&&(p[a]=an(p[a]||d,e[m],t,o));return mt(ce(p,1),t,o)}function ta(e,t,o){for(var r=-1,a=e.length,p=t.length,d={};++r<a;){var m=r<p?t[r]:i;o(d,e[r],m)}return d}function ai(e){return ie(e)?e:[]}function li(e){return typeof e=="function"?e:ve}function ft(e,t){return k(e)?e:yi(e,t)?[e]:La(K(e))}var mu=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 On(t).set(new On(e)),t}function fu(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),d=t!==i,m=t===null,y=t===t,C=Ie(t);if(!m&&!C&&!p&&e>t||p&&d&&y&&!m&&!C||r&&d&&y||!o&&y||!a)return 1;if(!r&&!p&&!C&&e<t||C&&o&&a&&!r&&!p||m&&o&&a||!d&&a||!y)return-1}return 0}function hu(e,t,o){for(var r=-1,a=e.criteria,p=t.criteria,d=a.length,m=o.length;++r<d;){var y=ra(a[r],p[r]);if(y){if(r>=m)return y;var C=o[r];return y*(C=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,o,r){for(var a=-1,p=e.length,d=o.length,m=-1,y=t.length,C=se(p-d,0),w=b(y+C),I=!r;++m<y;)w[m]=t[m];for(;++a<d;)(I||a<p)&&(w[o[a]]=e[a]);for(;C--;)w[m++]=e[a++];return w}function la(e,t,o,r){for(var a=-1,p=e.length,d=-1,m=o.length,y=-1,C=t.length,w=se(p-m,0),I=b(w+C),T=!r;++a<w;)I[a]=e[a];for(var B=a;++y<C;)I[B+y]=t[y];for(;++d<m;)(T||a<p)&&(I[B+o[d]]=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 Ve(e,t,o,r){var a=!o;o||(o={});for(var p=-1,d=t.length;++p<d;){var m=t[p],y=r?r(o[m],e[m],m,o,e):i;y===i&&(y=e[m]),a?je(o,m,y):rn(o,m,y)}return o}function bu(e,t){return Ve(e,gi(e),t)}function xu(e,t){return Ve(e,va(e),t)}function Zn(e,t){return function(o,r){var a=k(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,d=a>2?o[2]:i;for(p=e.length>3&&typeof p=="function"?(a--,p):i,d&&ge(o[0],o[1],d)&&(p=a<3?i:p,a=1),t=J(t);++r<a;){var m=o[r];m&&e(t,m,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,d=J(o);(t?p--:++p<a)&&r(d[p],p,d)!==!1;);return o}}function pa(e){return function(t,o,r){for(var a=-1,p=J(t),d=r(t),m=d.length;m--;){var y=d[e?m:++a];if(o(p[y],y,p)===!1)break}return t}}function vu(e,t,o){var r=t&M,a=un(e);function p(){var d=this&&this!==ue&&this instanceof p?a:e;return d.apply(r?o:this,arguments)}return p}function ua(e){return function(t){t=K(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 Po(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=Nt(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,d=b(p),m=p,y=Ut(a);m--;)d[m]=arguments[m];var C=p<3&&d[0]!==y&&d[p-1]!==y?[]:ut(d,y);if(p-=C.length,p<o)return ga(e,t,Qn,a.placeholder,i,d,C,i,i,o-p);var w=this&&this!==ue&&this instanceof a?r:e;return Ce(w,this,d)}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(m){return p(a[m],m,a)}}var d=e(t,o,r);return d>-1?a[p?t[d]:d]:i}}function da(e){return tt(function(t){var o=t.length,r=o,a=Pe.prototype.thru;for(e&&t.reverse();r--;){var p=t[r];if(typeof p!="function")throw new De(h);if(a&&!d&&no(p)=="wrapper")var d=new Pe([],!0)}for(r=d?r:o;++r<o;){p=t[r];var m=no(p),y=m=="wrapper"?mi(p):i;y&&hi(y[0])&&y[1]==(Ae|Z|Se|at)&&!y[4].length&&y[9]==1?d=d[no(y[0])].apply(d,y[3]):d=p.length==1&&hi(p)?d[m]():d.thru(p)}return function(){var C=arguments,w=C[0];if(d&&C.length==1&&k(w))return d.plant(w).value();for(var I=0,T=o?t[I].apply(this,C):w;++I<o;)T=t[I].call(this,T);return T}})}function Qn(e,t,o,r,a,p,d,m,y,C){var w=t&Ae,I=t&M,T=t&ae,B=t&(Z|qe),P=t&Ft,H=T?i:un(e);function R(){for(var Y=arguments.length,W=b(Y),Te=Y;Te--;)W[Te]=arguments[Te];if(B)var ye=Ut(R),Fe=Ps(W,ye);if(r&&(W=aa(W,r,a,B)),p&&(W=la(W,p,d,B)),Y-=Fe,B&&Y<C){var re=ut(W,ye);return ga(e,t,Qn,R.placeholder,o,W,re,m,y,C-Y)}var $e=I?o:this,rt=T?$e[e]:e;return Y=W.length,m?W=Uu(W,m):P&&Y>1&&W.reverse(),w&&y<Y&&(W.length=y),this&&this!==ue&&this instanceof R&&(rt=H||un(rt)),rt.apply($e,W)}return R}function ma(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/Pt(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 d(){for(var m=-1,y=arguments.length,C=-1,w=r.length,I=b(w+y),T=this&&this!==ue&&this instanceof d?p:e;++C<w;)I[C]=r[C];for(;y--;)I[C++]=arguments[++m];return Ce(T,a?o:this,I)}return d}function fa(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=ke(t),o=ke(o)),e(t,o)}}function ga(e,t,o,r,a,p,d,m,y,C){var w=t&Z,I=w?d:i,T=w?i:d,B=w?p:i,P=w?i:p;t|=w?Se:Je,t&=~(w?Je:Se),t&Ee||(t&=~(M|ae));var H=[e,t,a,B,I,P,T,m,y,C],R=o.apply(i,H);return hi(e)&&Fa(R,H),R.placeholder=r,Ea(R,e,t)}function ui(e){var t=le[e];return function(o,r){if(o=ke(o),r=r==null?0:de(N(r),292),r&&Er(o)){var a=(K(o)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+r));return a=(K(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-r))}return t(o)}}var wu=Ot&&1/Ln(new Ot([,-0]))[1]==ht?function(e){return new Ot(e)}:Di;function ya(e){return function(t){var o=me(t);return o==Ne?zo(t):o==He?zs(t):Ds(t,e(t))}}function et(e,t,o,r,a,p,d,m){var y=t&ae;if(!y&&typeof e!="function")throw new De(h);var C=r?r.length:0;if(C||(t&=~(Se|Je),r=a=i),d=d===i?d:se(N(d),0),m=m===i?m:N(m),C-=a?a.length:0,t&Je){var w=r,I=a;r=a=i}var T=y?i:mi(e),B=[e,t,o,r,a,w,I,p,d,m];if(T&&Nu(B,T),e=B[0],t=B[1],o=B[2],r=B[3],a=B[4],m=B[9]=B[9]===i?y?0:e.length:se(B[9]-C,0),!m&&t&(Z|qe)&&(t&=~(Z|qe)),!t||t==M)var P=vu(e,t,o);else t==Z||t==qe?P=Su(e,t,m):(t==Se||t==(M|Se))&&!a.length?P=Cu(e,t,o,r):P=Qn.apply(i,B);var H=T?Xr:Fa;return Ea(H(P,B),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 mn(e)?i:e}function xa(e,t,o,r,a,p){var d=o&X,m=e.length,y=t.length;if(m!=y&&!(d&&y>m))return!1;var C=p.get(e),w=p.get(t);if(C&&w)return C==t&&w==e;var I=-1,T=!0,B=o&V?new St:i;for(p.set(e,t),p.set(t,e);++I<m;){var P=e[I],H=t[I];if(r)var R=d?r(H,P,I,t,e,p):r(P,H,I,e,t,p);if(R!==i){if(R)continue;T=!1;break}if(B){if(!Ro(t,function(Y,W){if(!Qt(B,W)&&(P===Y||a(P,Y,o,r,p)))return B.push(W)})){T=!1;break}}else if(!(P===H||a(P,H,o,r,p))){T=!1;break}}return p.delete(e),p.delete(t),T}function Iu(e,t,o,r,a,p,d){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 On(e),new On(t)));case Gt:case Vt:case Kt:return Ye(+e,+t);case Cn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case Ne:var m=zo;case He:var y=r&X;if(m||(m=Ln),e.size!=t.size&&!y)return!1;var C=d.get(e);if(C)return C==t;r|=V,d.set(e,t);var w=xa(m(e),m(t),r,a,p,d);return d.delete(e),w;case _n:if(on)return on.call(e)==on.call(t)}return!1}function Tu(e,t,o,r,a,p){var d=o&X,m=ci(e),y=m.length,C=ci(t),w=C.length;if(y!=w&&!d)return!1;for(var I=y;I--;){var T=m[I];if(!(d?T in t:q.call(t,T)))return!1}var B=p.get(e),P=p.get(t);if(B&&P)return B==t&&P==e;var H=!0;p.set(e,t),p.set(t,e);for(var R=d;++I<y;){T=m[I];var Y=e[T],W=t[T];if(r)var Te=d?r(W,Y,T,t,e,p):r(Y,W,T,e,t,p);if(!(Te===i?Y===W||a(Y,W,o,r,p):Te)){H=!1;break}R||(R=T=="constructor")}if(H&&!R){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,Ra),e+"")}function ci(e){return Hr(e,pe,gi)}function di(e){return Hr(e,xe,va)}var mi=Yn?function(e){return Yn.get(e)}:Di;function no(e){for(var t=e.name+"",o=kt[t],r=q.call(kt,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||Li;return e=e===Li?Yr:e,arguments.length?e(arguments[0],arguments[1]):e}function oo(e,t){var o=e.__data__;return Ru(t)?o[typeof t=="string"?"string":"hash"]:o.map}function fi(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=ks(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=Rn.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 Tr.call(e,t)}))}:Pi,va=Yo?function(e){for(var t=[];e;)pt(t,gi(e)),e=kn(e);return t}:Pi,me=fe;($o&&me(new $o(new ArrayBuffer(1)))!=At||en&&me(new en)!=Ne||Wo&&me(Wo.resolve())!=Oi||Ot&&me(new Ot)!=He||tn&&me(new tn)!=Xt)&&(me=function(e){var t=fe(e),o=t==Xe?e.constructor:i,r=o?It(o):"";if(r)switch(r){case pp:return At;case up:return Ne;case cp:return Oi;case dp:return He;case mp:return Xt}return t});function Eu(e,t,o){for(var r=-1,a=o.length;++r<a;){var p=o[r],d=p.size;switch(p.type){case"drop":e+=d;break;case"dropRight":t-=d;break;case"take":t=de(t,e+d);break;case"takeRight":e=se(e,t-d);break}}return{start:e,end:t}}function Au(e){var t=e.match(Ml);return t?t[1].split(Ol):[]}function Sa(e,t,o){t=ft(t,e);for(var r=-1,a=t.length,p=!1;++r<a;){var d=Ke(t[r]);if(!(p=e!=null&&o(e,d)))break;e=e[d]}return p||++r!=a?p:(a=e==null?0:e.length,!!a&&uo(a)&&nt(d,a)&&(k(e)||Tt(e)))}function Lu(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)?Nt(kn(e)):{}}function Bu(e,t,o){var r=e.constructor;switch(t){case Zt:return si(e);case Gt:case Vt:return new r(+e);case At:return fu(e,o);case fo:case go:case yo:case ho:case bo:case xo:case vo:case So:case Co:return ia(e,o);case Ne:return new r;case Kt: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(Rl,`{
8
+ */(function(n,l){(function(){var i,u="4.17.21",y=200,d="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",h="Expected a function",x="Invalid `variable` option passed into `_.template`",v="__lodash_hash_undefined__",T=500,A="__lodash_placeholder__",L=1,U=2,ne=4,X=1,V=2,M=1,ae=2,Ee=4,Z=8,qe=16,Se=32,Je=64,Ae=128,at=256,Tt=512,mn=30,gn="...",yn=800,hn=16,Gt=1,bn=2,xn=3,ht=1/0,lt=9007199254740991,dl=17976931348623157e292,vn=0/0,Ge=4294967295,fl=Ge-1,ml=Ge>>>1,gl=[["ary",Ae],["bind",M],["bindKey",ae],["curry",Z],["curryRight",qe],["flip",Tt],["partial",Se],["partialRight",Je],["rearg",at]],Et="[object Arguments]",Sn="[object Array]",yl="[object AsyncFunction]",Wt="[object Boolean]",Vt="[object Date]",hl="[object DOMException]",Cn="[object Error]",wn="[object Function]",Mi="[object GeneratorFunction]",ke="[object Map]",Kt="[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),Fl=RegExp(ki.source),Tl=/<%-([\s\S]+?)%>/g,El=/<%([\s\S]+?)%>/g,Hi=/<%=([\s\S]+?)%>/g,Al=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ll=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wo=/[\\^$.*+?()[\]{}|]/g,Dl=RegExp(wo.source),_o=/^\s+/,Pl=/\s/,Rl=/\{(?:\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\]$/,Gl=/^0o[0-7]+$/i,Wl=/^(?:0|[1-9]\d*)$/,Vl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,Kl=/['\n\r\u2028\u2029\\]/g,Fn="\\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",Gi="A-Z\\xc0-\\xd6\\xd8-\\xde",Wi="\\ufe0e\\ufe0f",Vi=Zl+Ql+jl+es,Io="['\u2019]",ts="["+Fn+"]",Ki="["+Vi+"]",Tn="["+Ui+"]",qi="\\d+",ns="["+Yi+"]",Ji="["+$i+"]",Xi="[^"+Fn+Vi+qi+Yi+$i+Gi+"]",Fo="\\ud83c[\\udffb-\\udfff]",os="(?:"+Tn+"|"+Fo+")",Zi="[^"+Fn+"]",To="(?:\\ud83c[\\udde6-\\uddff]){2}",Eo="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="["+Gi+"]",Qi="\\u200d",ji="(?:"+Ji+"|"+Xi+")",is="(?:"+Lt+"|"+Xi+")",er="(?:"+Io+"(?:d|ll|m|re|s|t|ve))?",tr="(?:"+Io+"(?:D|LL|M|RE|S|T|VE))?",nr=os+"?",or="["+Wi+"]?",rs="(?:"+Qi+"(?:"+[Zi,To,Eo].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,To,Eo].join("|")+")"+ir,ps="(?:"+[Zi+Tn+"?",Tn,To,Eo,ts].join("|")+")",us=RegExp(Io,"g"),cs=RegExp(Tn,"g"),Ao=RegExp(Fo+"(?="+Fo+")|"+ps+ir,"g"),ds=RegExp([Lt+"?"+Ji+"+"+er+"(?="+[Ki,Lt,"$"].join("|")+")",is+"+"+tr+"(?="+[Ki,Lt+ji,"$"].join("|")+")",Lt+"?"+ji+"+"+er,Lt+"+"+tr,ls,as,qi,ss].join("|"),"g"),fs=RegExp("["+Qi+Fn+Ui+Wi+"]"),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[Et]=j[Sn]=j[Zt]=j[Wt]=j[At]=j[Vt]=j[Cn]=j[wn]=j[ke]=j[Kt]=j[Xe]=j[qt]=j[He]=j[Jt]=j[Xt]=!1;var Q={};Q[Et]=Q[Sn]=Q[Zt]=Q[At]=Q[Wt]=Q[Vt]=Q[mo]=Q[go]=Q[yo]=Q[ho]=Q[bo]=Q[ke]=Q[Kt]=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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},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")(),Lo=l&&!l.nodeType&&l,bt=Lo&&!0&&n&&!n.nodeType&&n,ar=bt&&bt.exports===Lo,Bo=ar&&rr.process,Le=function(){try{var m=bt&&bt.require&&bt.require("util").types;return m||Bo&&Bo.binding&&Bo.binding("util")}catch{}}(),lr=Le&&Le.isArrayBuffer,sr=Le&&Le.isDate,pr=Le&&Le.isMap,ur=Le&&Le.isRegExp,cr=Le&&Le.isSet,dr=Le&&Le.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,E){for(var N=-1,W=m==null?0:m.length;++N<W;){var le=m[N];S(E,le,b(le),m)}return E}function Be(m,S){for(var b=-1,E=m==null?0:m.length;++b<E&&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,E=m==null?0:m.length;++b<E;)if(!S(m[b],b,m))return!1;return!0}function st(m,S){for(var b=-1,E=m==null?0:m.length,N=0,W=[];++b<E;){var le=m[b];S(le,b,m)&&(W[N++]=le)}return W}function En(m,S){var b=m==null?0:m.length;return!!b&&Bt(m,S,0)>-1}function Do(m,S,b){for(var E=-1,N=m==null?0:m.length;++E<N;)if(b(S,m[E]))return!0;return!1}function ee(m,S){for(var b=-1,E=m==null?0:m.length,N=Array(E);++b<E;)N[b]=S(m[b],b,m);return N}function pt(m,S){for(var b=-1,E=S.length,N=m.length;++b<E;)m[N+b]=S[b];return m}function Po(m,S,b,E){var N=-1,W=m==null?0:m.length;for(E&&W&&(b=m[++N]);++N<W;)b=S(b,m[N],N,m);return b}function Fs(m,S,b,E){var N=m==null?0:m.length;for(E&&N&&(b=m[--N]);N--;)b=S(b,m[N],N,m);return b}function Ro(m,S){for(var b=-1,E=m==null?0:m.length;++b<E;)if(S(m[b],b,m))return!0;return!1}var Ts=Mo("length");function Es(m){return m.split("")}function As(m){return m.match(Ol)||[]}function mr(m,S,b){var E;return b(m,function(N,W,le){if(S(N,W,le))return E=W,!1}),E}function An(m,S,b,E){for(var N=m.length,W=b+(E?1:-1);E?W--:++W<N;)if(S(m[W],W,m))return W;return-1}function Bt(m,S,b){return S===S?Us(m,S,b):An(m,gr,b)}function Ls(m,S,b,E){for(var N=b-1,W=m.length;++N<W;)if(E(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,E,N){return N(m,function(W,le,J){b=E?(E=!1,W):S(b,W,le,J)}),b}function Bs(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,E=-1,N=m.length;++E<N;){var W=S(m[E]);W!==i&&(b=b===i?W:b+W)}return b}function ko(m,S){for(var b=-1,E=Array(m);++b<m;)E[b]=S(b);return E}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,E=m.length;++b<E&&Bt(S,m[b],0)>-1;);return b}function vr(m,S){for(var b=m.length;b--&&Bt(S,m[b],0)>-1;);return b}function Ps(m,S){for(var b=m.length,E=0;b--;)m[b]===S&&++E;return E}var Rs=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(E,N){b[++S]=[N,E]}),b}function Sr(m,S){return function(b){return m(S(b))}}function ut(m,S){for(var b=-1,E=m.length,N=0,W=[];++b<E;){var le=m[b];(le===S||le===A)&&(m[b]=A,W[N++]=b)}return W}function Ln(m){var S=-1,b=Array(m.size);return m.forEach(function(E){b[++S]=E}),b}function zs(m){var S=-1,b=Array(m.size);return m.forEach(function(E){b[++S]=[E,E]}),b}function Us(m,S,b){for(var E=b-1,N=m.length;++E<N;)if(m[E]===S)return E;return-1}function Ys(m,S,b){for(var E=b+1;E--;)if(m[E]===S)return E;return E}function Pt(m){return Dt(m)?Gs(m):Ts(m)}function ze(m){return Dt(m)?Ws(m):Es(m)}function Cr(m){for(var S=m.length;S--&&Pl.test(m.charAt(S)););return S}var $s=No(xs);function Gs(m){for(var S=Ao.lastIndex=0;Ao.test(m);)++S;return S}function Ws(m){return m.match(Ao)||[]}function Vs(m){return m.match(ds)||[]}var Ks=function m(S){S=S==null?ue:Rt.defaults(ue.Object(),S,Rt.pick(ue,gs));var b=S.Array,E=S.Date,N=S.Error,W=S.Function,le=S.Math,J=S.Object,Uo=S.RegExp,qs=S.String,De=S.TypeError,Bn=b.prototype,Js=W.prototype,Mt=J.prototype,Dn=S["__core-js_shared__"],Pn=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:""}(),Rn=Mt.toString,Zs=Pn.call(J),Qs=ue._,js=Uo("^"+Pn.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,Fr=Mt.propertyIsEnumerable,kn=Bn.splice,Tr=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=E&&E.now!==ue.Date.now&&E.now,np=S.setTimeout!==ue.setTimeout&&S.setTimeout,zn=le.ceil,Un=le.floor,Yo=J.getOwnPropertySymbols,op=Mn?Mn.isBuffer:i,Er=S.isFinite,ip=Bn.join,rp=Sr(J.keys,J),se=le.max,de=le.min,ap=E.now,lp=S.parseInt,Ar=le.random,sp=Bn.reverse,$o=_t(S,"DataView"),en=_t(S,"Map"),Go=_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(Go),dp=It(Nt),fp=It(tn),$n=ct?ct.prototype:i,on=$n?$n.valueOf:i,Lr=$n?$n.toString:i;function s(e){if(oe(e)&&!O(e)&&!(e instanceof $)){if(e instanceof Pe)return e;if(q.call(e,"__wrapped__"))return Ba(e)}return new Pe(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 Gn(){}function Pe(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}s.templateSettings={escape:Tl,evaluate:El,interpolate:Hi,variable:"",imports:{_:s}},s.prototype=Gn.prototype,s.prototype.constructor=s,Pe.prototype=kt(Gn.prototype),Pe.prototype.constructor=Pe;function $(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ge,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=Eu(0,a,this.__views__),c=p.start,f=p.end,g=f-c,C=r?f:c-1,w=this.__iteratees__,I=w.length,F=0,B=de(g,this.__takeCount__);if(!o||!r&&a==g&&B==g)return ea(e,this.__actions__);var P=[];e:for(;g--&&F<B;){C+=t;for(var H=-1,R=e[C];++H<I;){var Y=w[H],G=Y.iteratee,Fe=Y.type,ye=G(R);if(Fe==bn)R=ye;else if(!ye){if(Fe==Gt)continue e;break e}}P[F++]=R}return P}$.prototype=kt(Gn.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===v?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?v: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=Wn(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=Wn(t,e);return o<0?i:t[o][1]}function Ip(e){return Wn(this.__data__,e)>-1}function Fp(e,t){var o=this.__data__,r=Wn(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=Fp;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 Tp(){this.size=0,this.__data__={hash:new vt,map:new(en||Ze),string:new vt}}function Ep(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 Lp(e){return oo(this,e).has(e)}function Bp(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=Tp,Qe.prototype.delete=Ep,Qe.prototype.get=Ap,Qe.prototype.has=Lp,Qe.prototype.set=Bp;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,v),this}function Pp(e){return this.__data__.has(e)}St.prototype.add=St.prototype.push=Dp,St.prototype.has=Pp;function Ue(e){var t=this.__data__=new Ze(e);this.size=t.size}function Rp(){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=Rp,Ue.prototype.delete=Mp,Ue.prototype.get=Np,Ue.prototype.has=Op,Ue.prototype.set=kp;function Br(e,t){var o=O(e),r=!o&&Ft(e),a=!o&&!r&&yt(e),p=!o&&!r&&!a&&Yt(e),c=o||r||a||p,f=c?ko(e.length,qs):[],g=f.length;for(var C in e)(t||q.call(e,C))&&!(c&&(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 Wo(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 Wn(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,c){t(r,a,o(a),c)}),r}function Pr(e,t){return e&&Ve(t,pe(t),e)}function Yp(e,t){return e&&Ve(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 Vo(e,t){for(var o=-1,r=t.length,a=b(r),p=e==null;++o<r;)a[o]=p?i:Fi(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 Re(e,t,o,r,a,p){var c,f=t&L,g=t&U,C=t&ne;if(o&&(c=a?o(e,r,a,p):o(e)),c!==i)return c;if(!te(e))return e;var w=O(e);if(w){if(c=Lu(e),!f)return he(e,c)}else{var I=fe(e),F=I==wn||I==Mi;if(yt(e))return oa(e,f);if(I==Xe||I==Et||F&&!a){if(c=g||F?{}:Ca(e),!f)return g?xu(e,Yp(c,e)):bu(e,Pr(c,e))}else{if(!Q[I])return a?e:{};c=Bu(e,I,f)}}p||(p=new Ue);var B=p.get(e);if(B)return B;p.set(e,c),Za(e)?e.forEach(function(R){c.add(Re(R,t,o,R,e,p))}):Ja(e)&&e.forEach(function(R,Y){c.set(Y,Re(R,t,o,Y,e,p))});var P=C?g?di:ci:g?xe:pe,H=w?i:P(e);return Be(H||e,function(R,Y){H&&(Y=R,R=e[Y]),rn(c,Y,Re(R,t,o,Y,e,p))}),c}function $p(e){var t=pe(e);return function(o){return Rr(o,e,t)}}function Rr(e,t,o){var r=o.length;if(e==null)return!r;for(e=J(e);r--;){var a=o[r],p=t[a],c=e[a];if(c===i&&!(a in e)||!p(c))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=En,c=!0,f=e.length,g=[],C=t.length;if(!f)return g;o&&(t=ee(t,we(o))),r?(p=Do,c=!1):t.length>=y&&(p=Qt,c=!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,c&&I===I){for(var F=C;F--;)if(t[F]===I)continue e;g.push(w)}else p(t,I,r)||g.push(w)}return g}var dt=sa(We),Nr=sa(qo,!0);function Gp(e,t){var o=!0;return dt(e,function(r,a,p){return o=!!t(r,a,p),o}),o}function Vn(e,t,o){for(var r=-1,a=e.length;++r<a;){var p=e[r],c=t(p);if(c!=null&&(f===i?c===c&&!Ie(c):o(c,f)))var f=c,g=p}return g}function Wp(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,c=e.length;for(o||(o=Pu),a||(a=[]);++p<c;){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 Ko=pa(),kr=pa(!0);function We(e,t){return e&&Ko(e,t,pe)}function qo(e,t){return e&&kr(e,t,pe)}function Kn(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[Ke(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)?Tu(e):zu(e)}function Jo(e,t){return e>t}function Vp(e,t){return e!=null&&q.call(e,t)}function Kp(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:En,a=e[0].length,p=e.length,c=p,f=b(p),g=1/0,C=[];c--;){var w=e[c];c&&t&&(w=ee(w,we(t))),g=de(w.length,g),f[c]=!o&&(t||a>=120&&w.length>=120)?new St(c&&w):i}w=e[0];var I=-1,F=f[0];e:for(;++I<a&&C.length<g;){var B=w[I],P=t?t(B):B;if(B=o||B!==0?B:0,!(F?Qt(F,P):r(C,P,o))){for(c=p;--c;){var H=f[c];if(!(H?Qt(H,P):r(e[c],P,o)))continue e}F&&F.push(P),C.push(B)}}return C}function Jp(e,t,o,r){return We(e,function(a,p,c){t(r,o(a),p,c)}),r}function ln(e,t,o){t=mt(t,e),e=Fa(e,t);var r=e==null?e:e[Ke(Ne(t))];return r==null?i:Ce(r,e,o)}function zr(e){return oe(e)&&me(e)==Et}function Xp(e){return oe(e)&&me(e)==Zt}function Zp(e){return oe(e)&&me(e)==Vt}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 c=O(e),f=O(t),g=c?Sn:fe(e),C=f?Sn:fe(t);g=g==Et?Xe:g,C=C==Et?Xe:C;var w=g==Xe,I=C==Xe,F=g==C;if(F&&yt(e)){if(!yt(t))return!1;c=!0,w=!1}if(F&&!w)return p||(p=new Ue),c||Yt(e)?xa(e,t,o,r,a,p):Iu(e,t,g,o,r,a,p);if(!(o&X)){var B=w&&q.call(e,"__wrapped__"),P=I&&q.call(t,"__wrapped__");if(B||P){var H=B?e.value():e,R=P?t.value():t;return p||(p=new Ue),a(H,R,o,r,p)}}return F?(p||(p=new Ue),Fu(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,c=!r;if(e==null)return!p;for(e=J(e);a--;){var f=o[a];if(c&&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(c&&f[2]){if(C===i&&!(g in e))return!1}else{var I=new Ue;if(r)var F=r(C,w,g,e,t,I);if(!(F===i?sn(w,C,X|V,r,I):F))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)?Wr(e[0],e[1]):Gr(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,c){r[++o]=t(a,p,c)}),r}function Gr(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 Wr(e,t){return yi(e)&&wa(t)?_a(Ke(e),t):function(o){var r=Fi(o,e);return r===i&&r===t?Ti(o,e):sn(t,r,X|V)}}function qn(e,t,o,r,a){e!==t&&Ko(t,function(p,c){if(a||(a=new Ue),te(p))iu(e,t,c,o,qn,r,a);else{var f=r?r(bi(e,c),p,c+"",e,t,a):i;f===i&&(f=p),Wo(e,c,f)}},xe)}function iu(e,t,o,r,a,p,c){var f=bi(e,o),g=bi(t,o),C=c.get(g);if(C){Wo(e,o,C);return}var w=p?p(f,g,o+"",e,t,c):i,I=w===i;if(I){var F=O(g),B=!F&&yt(g),P=!F&&!B&&Yt(g);w=g,F||B||P?O(f)?w=f:ie(f)?w=he(f):B?(I=!1,w=oa(g,!0)):P?(I=!1,w=ia(g,!0)):w=[]:fn(g)||Ft(g)?(w=f,Ft(f)?w=el(f):(!te(f)||ot(f))&&(w=Ca(g))):I=!1}I&&(c.set(g,w),a(w,g,r,p,c),c.delete(g)),Wo(e,o,w)}function Vr(e,t){var o=e.length;if(!!o)return t+=t<0?o:0,nt(t,o)?e[t]:i}function Kr(e,t,o){t.length?t=ee(t,function(p){return O(p)?function(c){return wt(c,p.length===1?p[0]:p)}:p}):t=[ve];var r=-1;t=ee(t,we(D()));var a=$r(e,function(p,c,f){var g=ee(t,function(C){return C(p)});return{criteria:g,index:++r,value:p}});return Bs(a,function(p,c){return hu(p,c,o)})}function ru(e,t){return qr(e,t,function(o,r){return Ti(e,r)})}function qr(e,t,o){for(var r=-1,a=t.length,p={};++r<a;){var c=t[r],f=wt(e,c);o(f,c)&&pn(p,mt(c,e),f)}return p}function au(e){return function(t){return wt(t,e)}}function ei(e,t,o,r){var a=r?Ls:Bt,p=-1,c=t.length,f=e;for(e===t&&(t=he(t)),o&&(f=ee(e,we(o)));++p<c;)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),c=b(p);p--;)c[r?p:++a]=e,e+=o;return c}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,c=p-1,f=e;f!=null&&++a<p;){var g=Ke(t[a]),C=o;if(g==="__proto__"||g==="constructor"||g==="prototype")return e;if(a!=c){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,c=e[p];c!==null&&!Ie(c)&&(o?c<=t:c<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 c=t!==t,f=t===null,g=Ie(t),C=t===i;a<p;){var w=Un((a+p)/2),I=o(e[w]),F=I!==i,B=I===null,P=I===I,H=Ie(I);if(c)var R=r||P;else C?R=P&&(r||F):f?R=P&&F&&(r||!B):g?R=P&&F&&!B&&(r||!H):B||H?R=!1:R=r?I<=t:I<t;R?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 c=e[o],f=t?t(c):c;if(!o||!Ye(f,g)){var g=f;p[a++]=c===0?0:c}}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 Lr?Lr.call(e):"";var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function ft(e,t,o){var r=-1,a=En,p=e.length,c=!0,f=[],g=f;if(o)c=!1,a=Do;else if(p>=y){var C=t?null:wu(e);if(C)return Ln(C);c=!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,c&&I===I){for(var F=g.length;F--;)if(g[F]===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=Fa(e,t),e==null||delete e[Ke(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()),Po(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 c=e[a],f=-1;++f<r;)f!=a&&(p[a]=an(p[a]||c,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,c={};++r<a;){var f=r<p?t[r]:i;o(c,e[r],f)}return c}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]:La(K(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),c=t!==i,f=t===null,g=t===t,C=Ie(t);if(!f&&!C&&!p&&e>t||p&&c&&g&&!f&&!C||r&&c&&g||!o&&g||!a)return 1;if(!r&&!p&&!C&&e<t||C&&o&&a&&!r&&!p||f&&o&&a||!c&&a||!g)return-1}return 0}function hu(e,t,o){for(var r=-1,a=e.criteria,p=t.criteria,c=a.length,f=o.length;++r<c;){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,c=o.length,f=-1,g=t.length,C=se(p-c,0),w=b(g+C),I=!r;++f<g;)w[f]=t[f];for(;++a<c;)(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,c=-1,f=o.length,g=-1,C=t.length,w=se(p-f,0),I=b(w+C),F=!r;++a<w;)I[a]=e[a];for(var B=a;++g<C;)I[B+g]=t[g];for(;++c<f;)(F||a<p)&&(I[B+o[c]]=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 Ve(e,t,o,r){var a=!o;o||(o={});for(var p=-1,c=t.length;++p<c;){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 Ve(e,gi(e),t)}function xu(e,t){return Ve(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,c=a>2?o[2]:i;for(p=e.length>3&&typeof p=="function"?(a--,p):i,c&&ge(o[0],o[1],c)&&(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,c=J(o);(t?p--:++p<a)&&r(c[p],p,c)!==!1;);return o}}function pa(e){return function(t,o,r){for(var a=-1,p=J(t),c=r(t),f=c.length;f--;){var g=c[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 c=this&&this!==ue&&this instanceof p?a:e;return c.apply(r?o:this,arguments)}return p}function ua(e){return function(t){t=K(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 Po(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,c=b(p),f=p,g=Ut(a);f--;)c[f]=arguments[f];var C=p<3&&c[0]!==g&&c[p-1]!==g?[]:ut(c,g);if(p-=C.length,p<o)return ga(e,t,Qn,a.placeholder,i,c,C,i,i,o-p);var w=this&&this!==ue&&this instanceof a?r:e;return Ce(w,this,c)}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 c=e(t,o,r);return c>-1?a[p?t[c]:c]:i}}function da(e){return tt(function(t){var o=t.length,r=o,a=Pe.prototype.thru;for(e&&t.reverse();r--;){var p=t[r];if(typeof p!="function")throw new De(h);if(a&&!c&&no(p)=="wrapper")var c=new Pe([],!0)}for(r=c?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?c=c[no(g[0])].apply(c,g[3]):c=p.length==1&&hi(p)?c[f]():c.thru(p)}return function(){var C=arguments,w=C[0];if(c&&C.length==1&&O(w))return c.plant(w).value();for(var I=0,F=o?t[I].apply(this,C):w;++I<o;)F=t[I].call(this,F);return F}})}function Qn(e,t,o,r,a,p,c,f,g,C){var w=t&Ae,I=t&M,F=t&ae,B=t&(Z|qe),P=t&Tt,H=F?i:un(e);function R(){for(var Y=arguments.length,G=b(Y),Fe=Y;Fe--;)G[Fe]=arguments[Fe];if(B)var ye=Ut(R),Te=Ps(G,ye);if(r&&(G=aa(G,r,a,B)),p&&(G=la(G,p,c,B)),Y-=Te,B&&Y<C){var re=ut(G,ye);return ga(e,t,Qn,R.placeholder,o,G,re,f,g,C-Y)}var $e=I?o:this,rt=F?$e[e]:e;return Y=G.length,f?G=Uu(G,f):P&&Y>1&&G.reverse(),w&&g<Y&&(G.length=g),this&&this!==ue&&this instanceof R&&(rt=H||un(rt)),rt.apply($e,G)}return R}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/Pt(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 c(){for(var f=-1,g=arguments.length,C=-1,w=r.length,I=b(w+g),F=this&&this!==ue&&this instanceof c?p:e;++C<w;)I[C]=r[C];for(;g--;)I[C++]=arguments[++f];return Ce(F,a?o:this,I)}return c}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,c,f,g,C){var w=t&Z,I=w?c:i,F=w?i:c,B=w?p:i,P=w?i:p;t|=w?Se:Je,t&=~(w?Je:Se),t&Ee||(t&=~(M|ae));var H=[e,t,a,B,I,P,F,f,g,C],R=o.apply(i,H);return hi(e)&&Ta(R,H),R.placeholder=r,Ea(R,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&&Er(o)){var a=(K(o)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+r));return a=(K(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-r))}return t(o)}}var wu=Nt&&1/Ln(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,c,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),c=c===i?c:se(k(c),0),f=f===i?f:k(f),C-=a?a.length:0,t&Je){var w=r,I=a;r=a=i}var F=g?i:fi(e),B=[e,t,o,r,a,w,I,p,c,f];if(F&&ku(B,F),e=B[0],t=B[1],o=B[2],r=B[3],a=B[4],f=B[9]=B[9]===i?g?0:e.length:se(B[9]-C,0),!f&&t&(Z|qe)&&(t&=~(Z|qe)),!t||t==M)var P=vu(e,t,o);else t==Z||t==qe?P=Su(e,t,f):(t==Se||t==(M|Se))&&!a.length?P=Cu(e,t,o,r):P=Qn.apply(i,B);var H=F?Xr:Ta;return Ea(H(P,B),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 c=o&X,f=e.length,g=t.length;if(f!=g&&!(c&&g>f))return!1;var C=p.get(e),w=p.get(t);if(C&&w)return C==t&&w==e;var I=-1,F=!0,B=o&V?new St:i;for(p.set(e,t),p.set(t,e);++I<f;){var P=e[I],H=t[I];if(r)var R=c?r(H,P,I,t,e,p):r(P,H,I,e,t,p);if(R!==i){if(R)continue;F=!1;break}if(B){if(!Ro(t,function(Y,G){if(!Qt(B,G)&&(P===Y||a(P,Y,o,r,p)))return B.push(G)})){F=!1;break}}else if(!(P===H||a(P,H,o,r,p))){F=!1;break}}return p.delete(e),p.delete(t),F}function Iu(e,t,o,r,a,p,c){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 Wt:case Vt:case Kt: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=Ln),e.size!=t.size&&!g)return!1;var C=c.get(e);if(C)return C==t;r|=V,c.set(e,t);var w=xa(f(e),f(t),r,a,p,c);return c.delete(e),w;case _n:if(on)return on.call(e)==on.call(t)}return!1}function Fu(e,t,o,r,a,p){var c=o&X,f=ci(e),g=f.length,C=ci(t),w=C.length;if(g!=w&&!c)return!1;for(var I=g;I--;){var F=f[I];if(!(c?F in t:q.call(t,F)))return!1}var B=p.get(e),P=p.get(t);if(B&&P)return B==t&&P==e;var H=!0;p.set(e,t),p.set(t,e);for(var R=c;++I<g;){F=f[I];var Y=e[F],G=t[F];if(r)var Fe=c?r(G,Y,F,t,e,p):r(Y,G,F,e,t,p);if(!(Fe===i?Y===G||a(Y,G,o,r,p):Fe)){H=!1;break}R||(R=F=="constructor")}if(H&&!R){var ye=e.constructor,Te=t.constructor;ye!=Te&&"constructor"in e&&"constructor"in t&&!(typeof ye=="function"&&ye instanceof ye&&typeof Te=="function"&&Te instanceof Te)&&(H=!1)}return p.delete(e),p.delete(t),H}function tt(e){return xi(Ia(e,i,Ra),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||Li;return e=e===Li?Yr:e,arguments.length?e(arguments[0],arguments[1]):e}function oo(e,t){var o=e.__data__;return Ru(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 Tu(e){var t=q.call(e,xt),o=e[xt];try{e[xt]=i;var r=!0}catch{}var a=Rn.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 Fr.call(e,t)}))}:Pi,va=Yo?function(e){for(var t=[];e;)pt(t,gi(e)),e=On(e);return t}:Pi,fe=me;($o&&fe(new $o(new ArrayBuffer(1)))!=At||en&&fe(new en)!=ke||Go&&fe(Go.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 Eu(e,t,o){for(var r=-1,a=o.length;++r<a;){var p=o[r],c=p.size;switch(p.type){case"drop":e+=c;break;case"dropRight":t-=c;break;case"take":t=de(t,e+c);break;case"takeRight":e=se(e,t-c);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 c=Ke(t[r]);if(!(p=e!=null&&o(e,c)))break;e=e[c]}return p||++r!=a?p:(a=e==null?0:e.length,!!a&&uo(a)&&nt(c,a)&&(O(e)||Ft(e)))}function Lu(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 Bu(e,t,o){var r=e.constructor;switch(t){case Zt:return si(e);case Wt:case Vt: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 Kt: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(Rl,`{
9
9
  /* [wrapped with `+t+`] */
10
- `)}function Pu(e){return k(e)||Tt(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(k(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Ie(e)?!0:Ll.test(e)||!Al.test(e)||t!=null&&e in J(t)}function Ru(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=mi(o);return!!r&&e===r[0]}function Mu(e){return!!wr&&wr in e}var Ou=Dn?ot:Ri;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 ku(e){var t=so(e,function(r){return o.size===F&&o.clear(),r}),o=t.cache;return t}function Nu(e,t){var o=e[1],r=t[1],a=o|r,p=a<(M|ae|Ae),d=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||d))return e;r&M&&(e[2]=t[2],a|=o&M?0:Ee);var m=t[3];if(m){var y=e[3];e[3]=y?aa(y,m,t[4]):m,e[4]=y?ut(e[3],A):t[4]}return m=t[5],m&&(y=e[5],e[5]=y?la(y,m,t[6]):m,e[6]=y?ut(e[5],A):t[6]),m=t[7],m&&(e[7]=m),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 Rn.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),d=b(p);++a<p;)d[a]=r[t+a];a=-1;for(var m=b(t+1);++a<t;)m[a]=r[a];return m[t]=o(d),Ce(e,this,m)}}function Ta(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 Ea(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),d=e[p];e[p]=e[o],e[o]=d}return e.length=t,e}var La=ku(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(o,r,a,p){t.push(a?p.replace(Hl,"$1"):r||o)}),t});function Ke(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 Pn.call(e)}catch{}try{return e+""}catch{}}return""}function Yu(e,t){return Be(gl,function(o){var r="_."+o[0];t&o[1]&&!En(e,r)&&e.push(r)}),e.sort()}function Ba(e){if(e instanceof $)return e.clone();var t=new Pe(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(N(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var a=0,p=0,d=b(zn(r/t));a<r;)d[p++]=Me(e,a,a+=t);return d}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(k(o)?he(o):[o],ce(t,1))}var Vu=z(function(e,t){return ie(e)?an(e,ce(t,1,ie,!0)):[]}),Ku=z(function(e,t){var o=Oe(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=Oe(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:N(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:N(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:N(o);return a<0&&(a=se(r+a,0)),An(e,D(t,3),a)}function Pa(e,t,o){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return o!==i&&(a=N(o),a=o<0?se(r+a,0):de(a,r-1)),An(e,D(t,3),a,!0)}function Ra(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:N(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:N(o);return a<0&&(a=se(r+a,0)),Bt(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=Oe(e),o=ee(e,ai);return t===Oe(o)?t=i:o.pop(),o.length&&o[0]===e[0]?Xo(o,D(t,2)):[]}),lc=z(function(e){var t=Oe(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 Oe(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=N(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?Vr(e,N(t)):i}var cc=z(Oa);function Oa(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 mc(e,t,o){return e&&e.length&&t&&t.length?ei(e,t,i,o):e}var fc=tt(function(e,t){var o=e==null?0:e.length,r=Vo(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 d=e[r];t(d,r,e)&&(o.push(d),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:N(t),o=o===i?r:N(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 Tc(e,t,o){return e&&e.length?(t=o||t===i?1:N(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:N(t),t=r-t,Me(e,t<0?0:t,r)):[]}function Ec(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 Lc=z(function(e){return mt(ce(e,1,ie,!0))}),Bc=z(function(e){var t=Oe(e);return ie(t)&&(t=i),mt(ce(e,1,ie,!0),D(t,2))}),Dc=z(function(e){var t=Oe(e);return t=typeof t=="function"?t:i,mt(ce(e,1,ie,!0),i,t)});function Pc(e){return e&&e.length?mt(e):[]}function Rc(e,t){return e&&e.length?mt(e,D(t,2)):[]}function Mc(e,t){return t=typeof t=="function"?t:i,e&&e.length?mt(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}),No(t,function(o){return ee(e,Mo(o))})}function ka(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 Oc=z(function(e,t){return ie(e)?an(e,t):[]}),kc=z(function(e){return ri(st(e,ie))}),Nc=z(function(e){var t=Oe(e);return ie(t)&&(t=i),ri(st(e,ie),D(t,2))}),Hc=z(function(e){var t=Oe(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,ka(e,o)});function Na(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 Vo(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 Pe(r,this.__chain__).thru(function(p){return t&&!p.length&&p.push(i),p}))});function Vc(){return Na(this)}function Kc(){return new Pe(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=Ba(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 Pe(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=k(e)?mr:Wp;return o&&ge(e,t,o)&&(t=i),r(e,D(t,3))}function td(e,t){var o=k(e)?st:kr;return o(e,D(t,3))}var nd=ca(Da),od=ca(Pa);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:N(o),ce(ao(e,t),o)}function Ha(e,t){var o=k(e)?Be:dt;return o(e,D(t,3))}function za(e,t){var o=k(e)?Is:Or;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?N(o):0;var a=e.length;return o<0&&(o=se(a+o,0)),co(e)?o<=a&&e.indexOf(t,o)>-1:!!a&&Bt(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(d){p[++r]=a?Ce(t,d,o):ln(d,t,o)}),p}),ud=Zn(function(e,t,o){je(e,o,t)});function ao(e,t){var o=k(e)?ee:$r;return o(e,D(t,3))}function cd(e,t,o,r){return e==null?[]:(k(t)||(t=t==null?[]:[t]),o=r?i:o,k(o)||(o=o==null?[]:[o]),Kr(e,t,o))}var dd=Zn(function(e,t,o){e[o?0:1].push(t)},function(){return[[],[]]});function md(e,t,o){var r=k(e)?Po:hr,a=arguments.length<3;return r(e,D(t,4),o,a,dt)}function fd(e,t,o){var r=k(e)?Ts:hr,a=arguments.length<3;return r(e,D(t,4),o,a,Or)}function gd(e,t){var o=k(e)?st:kr;return o(e,po(D(t,3)))}function yd(e){var t=k(e)?Dr:su;return t(e)}function hd(e,t,o){(o?ge(e,t,o):t===i)?t=1:t=N(t);var r=k(e)?Hp:pu;return r(e,t)}function bd(e){var t=k(e)?zp:cu;return t(e)}function xd(e){if(e==null)return 0;if(be(e))return co(e)?Pt(e):e.length;var t=me(e);return t==Ne||t==He?e.size:Qo(e).length}function vd(e,t,o){var r=k(e)?Ro: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]]),Kr(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=N(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=N(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 Va(e,t,o){var r,a,p,d,m,y,C=0,w=!1,I=!1,T=!0;if(typeof e!="function")throw new De(h);t=ke(t)||0,te(o)&&(w=!!o.leading,I="maxWait"in o,p=I?se(ke(o.maxWait)||0,t):p,T="trailing"in o?!!o.trailing:T);function B(re){var $e=r,rt=a;return r=a=i,C=re,d=e.apply(rt,$e),d}function P(re){return C=re,m=dn(Y,t),w?B(re):d}function H(re){var $e=re-y,rt=re-C,cl=t-$e;return I?de(cl,p-rt):cl}function R(re){var $e=re-y,rt=re-C;return y===i||$e>=t||$e<0||I&&rt>=p}function Y(){var re=lo();if(R(re))return W(re);m=dn(Y,H(re))}function W(re){return m=i,T&&r?B(re):(r=a=i,d)}function Te(){m!==i&&na(m),C=0,r=y=a=m=i}function ye(){return m===i?d:W(lo())}function Fe(){var re=lo(),$e=R(re);if(r=arguments,a=this,y=re,$e){if(m===i)return P(y);if(I)return na(m),m=dn(Y,t),B(y)}return m===i&&(m=dn(Y,t)),d}return Fe.cancel=Te,Fe.flush=ye,Fe}var wd=z(function(e,t){return Mr(e,1,t)}),_d=z(function(e,t,o){return Mr(e,ke(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 d=e.apply(this,r);return o.cache=p.set(a,d)||p,d};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 Td(e){return Ya(2,e)}var Fd=mu(function(e,t){t=t.length==1&&k(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)}),Ka=z(function(e,t){var o=ut(t,Ut(Ka));return et(e,Je,i,t,o)}),Ed=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:N(t),z(e,t)}function Ld(e,t){if(typeof e!="function")throw new De(h);return t=t==null?0:se(N(t),0),z(function(o){var r=o[t],a=gt(o,0,t);return r&&pt(a,r),Ce(e,this,a)})}function Bd(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),Va(e,t,{leading:r,maxWait:t,trailing:a})}function Dd(e){return Ua(e,1)}function Pd(e,t){return wi(li(t),e)}function Rd(){if(!arguments.length)return[];var e=arguments[0];return k(e)?e:[e]}function Md(e){return Re(e,ne)}function Od(e,t){return t=typeof t=="function"?t:i,Re(e,ne,t)}function kd(e){return Re(e,L|ne)}function Nd(e,t){return t=typeof t=="function"?t:i,Re(e,L|ne,t)}function Hd(e,t){return t==null||Rr(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}),Tt=zr(function(){return arguments}())?zr:function(e){return oe(e)&&q.call(e,"callee")&&!Tr.call(e,"callee")},k=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)&&fe(e)==Gt}var yt=op||Ri,Wd=sr?we(sr):Zp;function Gd(e){return oe(e)&&e.nodeType===1&&!mn(e)}function Vd(e){if(e==null)return!0;if(be(e)&&(k(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||Yt(e)||Tt(e)))return!e.length;var t=me(e);if(t==Ne||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 Kd(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=fe(e);return t==Cn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!mn(e)}function Jd(e){return typeof e=="number"&&Er(e)}function ot(e){if(!te(e))return!1;var t=fe(e);return t==wn||t==Mi||t==yl||t==xl}function qa(e){return typeof e=="number"&&e==N(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,fi(t))}function Zd(e,t,o){return o=typeof o=="function"?o:i,Zo(e,t,fi(t),o)}function Qd(e){return Xa(e)&&e!=+e}function jd(e){if(Ou(e))throw new O(c);return Ur(e)}function em(e){return e===null}function tm(e){return e==null}function Xa(e){return typeof e=="number"||oe(e)&&fe(e)==Kt}function mn(e){if(!oe(e)||fe(e)!=Xe)return!1;var t=kn(e);if(t===null)return!0;var o=q.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Pn.call(o)==Zs}var Ii=ur?we(ur):eu;function nm(e){return qa(e)&&e>=-lt&&e<=lt}var Za=cr?we(cr):tu;function co(e){return typeof e=="string"||!k(e)&&oe(e)&&fe(e)==Jt}function Ie(e){return typeof e=="symbol"||oe(e)&&fe(e)==_n}var Yt=dr?we(dr):nu;function om(e){return e===i}function im(e){return oe(e)&&me(e)==Xt}function rm(e){return oe(e)&&fe(e)==Sl}var am=to(jo),lm=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=me(e),o=t==Ne?zo:t==He?Ln:$t;return o(e)}function it(e){if(!e)return e===0?e:0;if(e=ke(e),e===ht||e===-ht){var t=e<0?-1:1;return t*dl}return e===e?e:0}function N(e){var t=it(e),o=t%1;return t===t?o?t-o:t:0}function ja(e){return e?Ct(N(e),0,We):0}function ke(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 Ve(e,xe(e))}function sm(e){return e?Ct(N(e),-lt,lt):e===0?e:0}function K(e){return e==null?"":_e(e)}var pm=Ht(function(e,t){if(cn(t)||be(t)){Ve(t,pe(t),e);return}for(var o in t)q.call(t,o)&&rn(e,o,t[o])}),tl=Ht(function(e,t){Ve(t,xe(t),e)}),mo=Ht(function(e,t,o,r){Ve(t,xe(t),e,r)}),um=Ht(function(e,t,o,r){Ve(t,pe(t),e,r)}),cm=tt(Vo);function dm(e,t){var o=Nt(e);return t==null?o:Pr(o,t)}var mm=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],d=xe(p),m=-1,y=d.length;++m<y;){var C=d[m],w=e[C];(w===i||Ye(w,Mt[C])&&!q.call(e,C))&&(e[C]=p[C])}return e}),fm=z(function(e){return e.push(i,ba),Ce(nl,i,e)});function gm(e,t){return fr(e,D(t,3),Ge)}function ym(e,t){return fr(e,D(t,3),qo)}function hm(e,t){return e==null?e:Ko(e,D(t,3),xe)}function bm(e,t){return e==null?e:Nr(e,D(t,3),xe)}function xm(e,t){return e&&Ge(e,D(t,3))}function vm(e,t){return e&&qo(e,D(t,3))}function Sm(e){return e==null?[]:Kn(e,pe(e))}function Cm(e){return e==null?[]:Kn(e,xe(e))}function Ti(e,t,o){var r=e==null?i:wt(e,t);return r===i?o:r}function wm(e,t){return e!=null&&Sa(e,t,Vp)}function Fi(e,t){return e!=null&&Sa(e,t,Kp)}var _m=ma(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Rn.call(t)),e[t]=o},Ai(ve)),Im=ma(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Rn.call(t)),q.call(e,t)?e[t].push(o):e[t]=[o]},D),Tm=z(ln);function pe(e){return be(e)?Br(e):Qo(e)}function xe(e){return be(e)?Br(e,!0):ou(e)}function Fm(e,t){var o={};return t=D(t,3),Ge(e,function(r,a,p){je(o,t(r,a,p),r)}),o}function Em(e,t){var o={};return t=D(t,3),Ge(e,function(r,a,p){je(o,a,t(r,a,p))}),o}var Am=Ht(function(e,t,o){qn(e,t,o)}),nl=Ht(function(e,t,o,r){qn(e,t,o,r)}),Lm=tt(function(e,t){var o={};if(e==null)return o;var r=!1;t=ee(t,function(p){return p=ft(p,e),r||(r=p.length>1),p}),Ve(e,di(e),o),r&&(o=Re(o,L|U|ne,_u));for(var a=t.length;a--;)ii(o,t[a]);return o});function Bm(e,t){return ol(e,po(D(t)))}var Dm=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 Pm(e,t,o){t=ft(t,e);var r=-1,a=t.length;for(a||(a=1,e=i);++r<a;){var p=e==null?i:e[Ke(t[r])];p===i&&(r=a,p=o),e=ot(p)?p.call(e):p}return e}function Rm(e,t,o){return e==null?e:pn(e,t,o)}function Mm(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 Om(e,t,o){var r=k(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)?Nt(kn(e)):{}:o={}}return(a?Be:Ge)(e,function(d,m,y){return t(o,d,m,y)}),o}function km(e,t){return e==null?!0:ii(e,t)}function Nm(e,t,o){return e==null?e:jr(e,t,li(o))}function Hm(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 zm(e){return e==null?[]:Ho(e,xe(e))}function Um(e,t,o){return o===i&&(o=t,t=i),o!==i&&(o=ke(o),o=o===o?o:0),t!==i&&(t=ke(t),t=t===t?t:0),Ct(ke(e),t,o)}function Ym(e,t,o){return t=it(t),o===i?(o=t,t=0):o=it(o),e=ke(e),qp(e,t,o)}function $m(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 Wm=zt(function(e,t,o){return t=t.toLowerCase(),e+(o?al(t):t)});function al(e){return Ei(K(e).toLowerCase())}function ll(e){return e=K(e),e&&e.replace(Vl,Rs).replace(cs,"")}function Gm(e,t,o){e=K(e),t=_e(t);var r=e.length;o=o===i?r:Ct(N(o),0,r);var a=o;return o-=t.length,o>=0&&e.slice(o,a)==t}function Vm(e){return e=K(e),e&&Tl.test(e)?e.replace(Ni,Ms):e}function Km(e){return e=K(e),e&&Dl.test(e)?e.replace(wo,"\\$&"):e}var qm=zt(function(e,t,o){return e+(o?"-":"")+t.toLowerCase()}),Jm=zt(function(e,t,o){return e+(o?" ":"")+t.toLowerCase()}),Xm=ua("toLowerCase");function Zm(e,t,o){e=K(e),t=N(t);var r=t?Pt(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return eo(Un(a),o)+e+eo(zn(a),o)}function Qm(e,t,o){e=K(e),t=N(t);var r=t?Pt(e):0;return t&&r<t?e+eo(t-r,o):e}function jm(e,t,o){e=K(e),t=N(t);var r=t?Pt(e):0;return t&&r<t?eo(t-r,o)+e:e}function ef(e,t,o){return o||t==null?t=0:t&&(t=+t),lp(K(e).replace(_o,""),t||0)}function tf(e,t,o){return(o?ge(e,t,o):t===i)?t=1:t=N(t),ni(K(e),t)}function nf(){var e=arguments,t=K(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var of=zt(function(e,t,o){return e+(o?"_":"")+t.toLowerCase()});function rf(e,t,o){return o&&typeof o!="number"&&ge(e,t,o)&&(t=o=i),o=o===i?We:o>>>0,o?(e=K(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 af=zt(function(e,t,o){return e+(o?" ":"")+Ei(t)});function lf(e,t,o){return e=K(e),o=o==null?0:Ct(N(o),0,e.length),t=_e(t),e.slice(o,o+t.length)==t}function sf(e,t,o){var r=s.templateSettings;o&&ge(e,t,o)&&(t=i),e=K(e),t=mo({},t,r,ha);var a=mo({},t.imports,r.imports,ha),p=pe(a),d=Ho(a,p),m,y,C=0,w=t.interpolate||In,I="__p += '",T=Uo((t.escape||In).source+"|"+w.source+"|"+(w===Hi?zl:In).source+"|"+(t.evaluate||In).source+"|$","g"),B="//# sourceURL="+(q.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
11
- `;e.replace(T,function(R,Y,W,Te,ye,Fe){return W||(W=Te),I+=e.slice(C,Fe).replace(Kl,Os),Y&&(m=!0,I+=`' +
10
+ `)}function Pu(e){return O(e)||Ft(e)||!!(Tr&&e&&e[Tr])}function nt(e,t){var o=typeof e;return t=t==null?lt:t,!!t&&(o=="number"||o!="symbol"&&Wl.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:Ll.test(e)||!Al.test(e)||t!=null&&e in J(t)}function Ru(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:Ri;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===T&&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),c=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||c))return e;r&M&&(e[2]=t[2],a|=o&M?0:Ee);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 Rn.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),c=b(p);++a<p;)c[a]=r[t+a];a=-1;for(var f=b(t+1);++a<t;)f[a]=r[a];return f[t]=o(c),Ce(e,this,f)}}function Fa(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 Ta=Aa(Xr),dn=np||function(e,t){return ue.setTimeout(e,t)},xi=Aa(uu);function Ea(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),c=e[p];e[p]=e[o],e[o]=c}return e.length=t,e}var La=Ou(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(o,r,a,p){t.push(a?p.replace(Hl,"$1"):r||o)}),t});function Ke(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 Pn.call(e)}catch{}try{return e+""}catch{}}return""}function Yu(e,t){return Be(gl,function(o){var r="_."+o[0];t&o[1]&&!En(e,r)&&e.push(r)}),e.sort()}function Ba(e){if(e instanceof $)return e.clone();var t=new Pe(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,c=b(zn(r/t));a<r;)c[p++]=Me(e,a,a+=t);return c}function Gu(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 Wu(){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 Vu=z(function(e,t){return ie(e)?an(e,ce(t,1,ie,!0)):[]}),Ku=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),Wp(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 Pa(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 Ra(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)),Bt(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?Vr(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=Vo(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 c=e[r];t(c,r,e)&&(o.push(c),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 Fc(e,t,o){return e&&e.length?(t=o||t===i?1:k(t),Me(e,0,t<0?0:t)):[]}function Tc(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 Ec(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 Lc=z(function(e){return ft(ce(e,1,ie,!0))}),Bc=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 Pc(e){return e&&e.length?ft(e):[]}function Rc(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 Gc(e,t){return t(e),e}function ro(e,t){return t(e)}var Wc=tt(function(e){var t=e.length,o=t?e[0]:0,r=this.__wrapped__,a=function(p){return Vo(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 Pe(r,this.__chain__).thru(function(p){return t&&!p.length&&p.push(i),p}))});function Vc(){return ka(this)}function Kc(){return new Pe(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 Gn;){var r=Ba(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 Pe(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:Gp;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(Pa);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)?Be: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&&Bt(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(c){p[++r]=a?Ce(t,c,o):ln(c,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]),Kr(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)?Po:hr,a=arguments.length<3;return r(e,D(t,4),o,a,dt)}function md(e,t,o){var r=O(e)?Fs: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)?Pt(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)?Ro: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]]),Kr(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 Ga(e,t,o){t=o?i:t;var r=et(e,Z,i,i,i,i,i,t);return r.placeholder=Ga.placeholder,r}function Wa(e,t,o){t=o?i:t;var r=et(e,qe,i,i,i,i,i,t);return r.placeholder=Wa.placeholder,r}function Va(e,t,o){var r,a,p,c,f,g,C=0,w=!1,I=!1,F=!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,F="trailing"in o?!!o.trailing:F);function B(re){var $e=r,rt=a;return r=a=i,C=re,c=e.apply(rt,$e),c}function P(re){return C=re,f=dn(Y,t),w?B(re):c}function H(re){var $e=re-g,rt=re-C,cl=t-$e;return I?de(cl,p-rt):cl}function R(re){var $e=re-g,rt=re-C;return g===i||$e>=t||$e<0||I&&rt>=p}function Y(){var re=lo();if(R(re))return G(re);f=dn(Y,H(re))}function G(re){return f=i,F&&r?B(re):(r=a=i,c)}function Fe(){f!==i&&na(f),C=0,r=g=a=f=i}function ye(){return f===i?c:G(lo())}function Te(){var re=lo(),$e=R(re);if(r=arguments,a=this,g=re,$e){if(f===i)return P(g);if(I)return na(f),f=dn(Y,t),B(g)}return f===i&&(f=dn(Y,t)),c}return Te.cancel=Fe,Te.flush=ye,Te}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,Tt)}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 c=e.apply(this,r);return o.cache=p.set(a,c)||p,c};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 Fd(e){return Ya(2,e)}var Td=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)}),Ka=z(function(e,t){var o=ut(t,Ut(Ka));return et(e,Je,i,t,o)}),Ed=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 Ld(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 Bd(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),Va(e,t,{leading:r,maxWait:t,trailing:a})}function Dd(e){return Ua(e,1)}function Pd(e,t){return wi(li(t),e)}function Rd(){if(!arguments.length)return[];var e=arguments[0];return O(e)?e:[e]}function Md(e){return Re(e,ne)}function Nd(e,t){return t=typeof t=="function"?t:i,Re(e,ne,t)}function Od(e){return Re(e,L|ne)}function kd(e,t){return t=typeof t=="function"?t:i,Re(e,L|ne,t)}function Hd(e,t){return t==null||Rr(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}),Ft=zr(function(){return arguments}())?zr:function(e){return oe(e)&&q.call(e,"callee")&&!Fr.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)==Wt}var yt=op||Ri,Gd=sr?we(sr):Zp;function Wd(e){return oe(e)&&e.nodeType===1&&!fn(e)}function Vd(e){if(e==null)return!0;if(be(e)&&(O(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||Yt(e)||Ft(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 Kd(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"&&Er(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(d);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)==Kt}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&&Pn.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?Ln:$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,Ge):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||Gl.test(e)?Cs(e.slice(2),o?2:8):Ul.test(e)?vn:+e}function el(e){return Ve(e,xe(e))}function pf(e){return e?Ct(k(e),-lt,lt):e===0?e:0}function K(e){return e==null?"":_e(e)}var uf=Ht(function(e,t){if(cn(t)||be(t)){Ve(t,pe(t),e);return}for(var o in t)q.call(t,o)&&rn(e,o,t[o])}),tl=Ht(function(e,t){Ve(t,xe(t),e)}),fo=Ht(function(e,t,o,r){Ve(t,xe(t),e,r)}),cf=Ht(function(e,t,o,r){Ve(t,pe(t),e,r)}),df=tt(Vo);function ff(e,t){var o=kt(e);return t==null?o:Pr(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],c=xe(p),f=-1,g=c.length;++f<g;){var C=c[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),We)}function hf(e,t){return mr(e,D(t,3),qo)}function bf(e,t){return e==null?e:Ko(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&&We(e,D(t,3))}function Sf(e,t){return e&&qo(e,D(t,3))}function Cf(e){return e==null?[]:Kn(e,pe(e))}function wf(e){return e==null?[]:Kn(e,xe(e))}function Fi(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,Vp)}function Ti(e,t){return e!=null&&Sa(e,t,Kp)}var If=fa(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Rn.call(t)),e[t]=o},Ai(ve)),Ff=fa(function(e,t,o){t!=null&&typeof t.toString!="function"&&(t=Rn.call(t)),q.call(e,t)?e[t].push(o):e[t]=[o]},D),Tf=z(ln);function pe(e){return be(e)?Br(e):Qo(e)}function xe(e){return be(e)?Br(e,!0):ou(e)}function Ef(e,t){var o={};return t=D(t,3),We(e,function(r,a,p){je(o,t(r,a,p),r)}),o}function Af(e,t){var o={};return t=D(t,3),We(e,function(r,a,p){je(o,a,t(r,a,p))}),o}var Lf=Ht(function(e,t,o){qn(e,t,o)}),nl=Ht(function(e,t,o,r){qn(e,t,o,r)}),Bf=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}),Ve(e,di(e),o),r&&(o=Re(o,L|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 Pf=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 Rf(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[Ke(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?Be:We)(e,function(c,f,g){return t(o,c,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 Gf(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 Wf=zt(function(e,t,o){return t=t.toLowerCase(),e+(o?al(t):t)});function al(e){return Ei(K(e).toLowerCase())}function ll(e){return e=K(e),e&&e.replace(Vl,Rs).replace(cs,"")}function Vf(e,t,o){e=K(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 Kf(e){return e=K(e),e&&Fl.test(e)?e.replace(ki,Ms):e}function qf(e){return e=K(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=K(e),t=k(t);var r=t?Pt(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=K(e),t=k(t);var r=t?Pt(e):0;return t&&r<t?e+eo(t-r,o):e}function em(e,t,o){e=K(e),t=k(t);var r=t?Pt(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(K(e).replace(_o,""),t||0)}function nm(e,t,o){return(o?ge(e,t,o):t===i)?t=1:t=k(t),ni(K(e),t)}function om(){var e=arguments,t=K(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?Ge:o>>>0,o?(e=K(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?" ":"")+Ei(t)});function lm(e,t,o){return e=K(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=K(e),t=fo({},t,r,ha);var a=fo({},t.imports,r.imports,ha),p=pe(a),c=Ho(a,p),f,g,C=0,w=t.interpolate||In,I="__p += '",F=Uo((t.escape||In).source+"|"+w.source+"|"+(w===Hi?zl:In).source+"|"+(t.evaluate||In).source+"|$","g"),B="//# sourceURL="+(q.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
11
+ `;e.replace(F,function(R,Y,G,Fe,ye,Te){return G||(G=Fe),I+=e.slice(C,Te).replace(Kl,Ns),Y&&(f=!0,I+=`' +
12
12
  __e(`+Y+`) +
13
- '`),ye&&(y=!0,I+=`';
13
+ '`),ye&&(g=!0,I+=`';
14
14
  `+ye+`;
15
- __p += '`),W&&(I+=`' +
16
- ((__t = (`+W+`)) == null ? '' : __t) +
17
- '`),C=Fe+R.length,R}),I+=`';
15
+ __p += '`),G&&(I+=`' +
16
+ ((__t = (`+G+`)) == null ? '' : __t) +
17
+ '`),C=Te+R.length,R}),I+=`';
18
18
  `;var P=q.call(t,"variable")&&t.variable;if(!P)I=`with (obj) {
19
19
  `+I+`
20
20
  }
21
- `;else if(Nl.test(P))throw new O(x);I=(y?I.replace(Cl,""):I).replace(wl,"$1").replace(_l,"$1;"),I="function("+(P||"obj")+`) {
21
+ `;else if(kl.test(P))throw new N(x);I=(g?I.replace(Cl,""):I).replace(wl,"$1").replace(_l,"$1;"),I="function("+(P||"obj")+`) {
22
22
  `+(P?"":`obj || (obj = {});
23
- `)+"var __t, __p = ''"+(m?", __e = _.escape":"")+(y?`, __j = Array.prototype.join;
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,B+"return "+I).apply(i,d)});if(H.source=I,_i(H))throw H;return H}function pf(e){return K(e).toLowerCase()}function uf(e){return K(e).toUpperCase()}function cf(e,t,o){if(e=K(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),d=vr(r,a)+1;return gt(r,p,d).join("")}function df(e,t,o){if(e=K(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 mf(e,t,o){if(e=K(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 ff(e,t){var o=fn,r=gn;if(te(t)){var a="separator"in t?t.separator:a;o="length"in t?N(t.length):o,r="omission"in t?_e(t.omission):r}e=K(e);var p=e.length;if(Dt(e)){var d=ze(e);p=d.length}if(o>=p)return e;var m=o-Pt(r);if(m<1)return r;var y=d?gt(d,0,m).join(""):e.slice(0,m);if(a===i)return y+r;if(d&&(m+=y.length-m),Ii(a)){if(e.slice(m).search(a)){var C,w=y;for(a.global||(a=Uo(a.source,K(zi.exec(a))+"g")),a.lastIndex=0;C=a.exec(w);)var I=C.index;y=y.slice(0,I===i?m:I)}}else if(e.indexOf(_e(a),m)!=m){var T=y.lastIndexOf(a);T>-1&&(y=y.slice(0,T))}return y+r}function gf(e){return e=K(e),e&&Il.test(e)?e.replace(ki,$s):e}var yf=zt(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Ei=ua("toUpperCase");function sl(e,t,o){return e=K(e),t=o?i:t,t===i?Ns(e)?Vs(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 O(o)}}),hf=tt(function(e,t){return Be(t,function(o){o=Ke(o),je(e,o,Ci(e[o],e))}),e});function bf(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 xf(e){return $p(Re(e,L))}function Ai(e){return function(){return e}}function vf(e,t){return e==null||e!==e?t:e}var Sf=da(),Cf=da(!0);function ve(e){return e}function Li(e){return Yr(typeof e=="function"?e:Re(e,L))}function wf(e){return Wr(Re(e,L))}function _f(e,t){return Gr(e,Re(t,L))}var If=z(function(e,t){return function(o){return ln(o,e,t)}}),Tf=z(function(e,t){return function(o){return ln(e,o,t)}});function Bi(e,t,o){var r=pe(t),a=Kn(t,r);o==null&&!(te(t)&&(a.length||!r.length))&&(o=t,t=e,e=this,a=Kn(t,pe(t)));var p=!(te(o)&&"chain"in o)||!!o.chain,d=ot(e);return Be(a,function(m){var y=t[m];e[m]=y,d&&(e.prototype[m]=function(){var C=this.__chain__;if(p||C){var w=e(this.__wrapped__),I=w.__actions__=he(this.__actions__);return I.push({func:y,args:arguments,thisArg:e}),w.__chain__=C,w}return y.apply(e,pt([this.value()],arguments))})}),e}function Ff(){return ue._===this&&(ue._=Qs),this}function Di(){}function Ef(e){return e=N(e),z(function(t){return Vr(t,e)})}var Af=pi(ee),Lf=pi(mr),Bf=pi(Ro);function ul(e){return yi(e)?Mo(Ke(e)):au(e)}function Df(e){return function(t){return e==null?i:wt(e,t)}}var Pf=fa(),Rf=fa(!0);function Pi(){return[]}function Ri(){return!1}function Mf(){return{}}function Of(){return""}function kf(){return!0}function Nf(e,t){if(e=N(e),e<1||e>lt)return[];var o=We,r=de(e,We);t=D(t),e-=We;for(var a=No(r,t);++o<e;)t(o);return a}function Hf(e){return k(e)?ee(e,Ke):Ie(e)?[e]:he(La(K(e)))}function zf(e){var t=++Xs;return K(e)+t}var Uf=jn(function(e,t){return e+t},0),Yf=ui("ceil"),$f=jn(function(e,t){return e/t},1),Wf=ui("floor");function Gf(e){return e&&e.length?Vn(e,ve,Jo):i}function Vf(e,t){return e&&e.length?Vn(e,D(t,2),Jo):i}function Kf(e){return yr(e,ve)}function qf(e,t){return yr(e,D(t,2))}function Jf(e){return e&&e.length?Vn(e,ve,jo):i}function Xf(e,t){return e&&e.length?Vn(e,D(t,2),jo):i}var Zf=jn(function(e,t){return e*t},1),Qf=ui("round"),jf=jn(function(e,t){return e-t},0);function eg(e){return e&&e.length?ko(e,ve):0}function tg(e,t){return e&&e.length?ko(e,D(t,2)):0}return s.after=Cd,s.ary=Ua,s.assign=pm,s.assignIn=tl,s.assignInWith=mo,s.assignWith=um,s.at=cm,s.before=Ya,s.bind=Ci,s.bindAll=hf,s.bindKey=$a,s.castArray=Rd,s.chain=Na,s.chunk=$u,s.compact=Wu,s.concat=Gu,s.cond=bf,s.conforms=xf,s.constant=Ai,s.countBy=jc,s.create=dm,s.curry=Wa,s.curryRight=Ga,s.debounce=Va,s.defaults=mm,s.defaultsDeep=fm,s.defer=wd,s.delay=_d,s.difference=Vu,s.differenceBy=Ku,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=Ra,s.flattenDeep=ec,s.flattenDepth=tc,s.flip=Id,s.flow=Sf,s.flowRight=Cf,s.fromPairs=nc,s.functions=Sm,s.functionsIn=Cm,s.groupBy=ld,s.initial=ic,s.intersection=rc,s.intersectionBy=ac,s.intersectionWith=lc,s.invert=_m,s.invertBy=Im,s.invokeMap=pd,s.iteratee=Li,s.keyBy=ud,s.keys=pe,s.keysIn=xe,s.map=ao,s.mapKeys=Fm,s.mapValues=Em,s.matches=wf,s.matchesProperty=_f,s.memoize=so,s.merge=Am,s.mergeWith=nl,s.method=If,s.methodOf=Tf,s.mixin=Bi,s.negate=po,s.nthArg=Ef,s.omit=Lm,s.omitBy=Bm,s.once=Td,s.orderBy=cd,s.over=Af,s.overArgs=Fd,s.overEvery=Lf,s.overSome=Bf,s.partial=wi,s.partialRight=Ka,s.partition=dd,s.pick=Dm,s.pickBy=ol,s.property=ul,s.propertyOf=Df,s.pull=cc,s.pullAll=Oa,s.pullAllBy=dc,s.pullAllWith=mc,s.pullAt=fc,s.range=Pf,s.rangeRight=Rf,s.rearg=Ed,s.reject=gd,s.remove=gc,s.rest=Ad,s.reverse=vi,s.sampleSize=hd,s.set=Rm,s.setWith=Mm,s.shuffle=bd,s.slice=yc,s.sortBy=Sd,s.sortedUniq=wc,s.sortedUniqBy=_c,s.split=rf,s.spread=Ld,s.tail=Ic,s.take=Tc,s.takeRight=Fc,s.takeRightWhile=Ec,s.takeWhile=Ac,s.tap=Wc,s.throttle=Bd,s.thru=ro,s.toArray=Qa,s.toPairs=il,s.toPairsIn=rl,s.toPath=Hf,s.toPlainObject=el,s.transform=Om,s.unary=Dd,s.union=Lc,s.unionBy=Bc,s.unionWith=Dc,s.uniq=Pc,s.uniqBy=Rc,s.uniqWith=Mc,s.unset=km,s.unzip=Si,s.unzipWith=ka,s.update=Nm,s.updateWith=Hm,s.values=$t,s.valuesIn=zm,s.without=Oc,s.words=sl,s.wrap=Pd,s.xor=kc,s.xorBy=Nc,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=mo,Bi(s,s),s.add=Uf,s.attempt=pl,s.camelCase=Wm,s.capitalize=al,s.ceil=Yf,s.clamp=Um,s.clone=Md,s.cloneDeep=kd,s.cloneDeepWith=Nd,s.cloneWith=Od,s.conformsTo=Hd,s.deburr=ll,s.defaultTo=vf,s.divide=$f,s.endsWith=Gm,s.eq=Ye,s.escape=Vm,s.escapeRegExp=Km,s.every=ed,s.find=nd,s.findIndex=Da,s.findKey=gm,s.findLast=od,s.findLastIndex=Pa,s.findLastKey=ym,s.floor=Wf,s.forEach=Ha,s.forEachRight=za,s.forIn=hm,s.forInRight=bm,s.forOwn=xm,s.forOwnRight=vm,s.get=Ti,s.gt=zd,s.gte=Ud,s.has=wm,s.hasIn=Fi,s.head=Ma,s.identity=ve,s.includes=sd,s.indexOf=oc,s.inRange=Ym,s.invoke=Tm,s.isArguments=Tt,s.isArray=k,s.isArrayBuffer=Yd,s.isArrayLike=be,s.isArrayLikeObject=ie,s.isBoolean=$d,s.isBuffer=yt,s.isDate=Wd,s.isElement=Gd,s.isEmpty=Vd,s.isEqual=Kd,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=tm,s.isNull=em,s.isNumber=Xa,s.isObject=te,s.isObjectLike=oe,s.isPlainObject=mn,s.isRegExp=Ii,s.isSafeInteger=nm,s.isSet=Za,s.isString=co,s.isSymbol=Ie,s.isTypedArray=Yt,s.isUndefined=om,s.isWeakMap=im,s.isWeakSet=rm,s.join=sc,s.kebabCase=qm,s.last=Oe,s.lastIndexOf=pc,s.lowerCase=Jm,s.lowerFirst=Xm,s.lt=am,s.lte=lm,s.max=Gf,s.maxBy=Vf,s.mean=Kf,s.meanBy=qf,s.min=Jf,s.minBy=Xf,s.stubArray=Pi,s.stubFalse=Ri,s.stubObject=Mf,s.stubString=Of,s.stubTrue=kf,s.multiply=Zf,s.nth=uc,s.noConflict=Ff,s.noop=Di,s.now=lo,s.pad=Zm,s.padEnd=Qm,s.padStart=jm,s.parseInt=ef,s.random=$m,s.reduce=md,s.reduceRight=fd,s.repeat=tf,s.replace=nf,s.result=Pm,s.round=Qf,s.runInContext=g,s.sample=yd,s.size=xd,s.snakeCase=of,s.some=vd,s.sortedIndex=hc,s.sortedIndexBy=bc,s.sortedIndexOf=xc,s.sortedLastIndex=vc,s.sortedLastIndexBy=Sc,s.sortedLastIndexOf=Cc,s.startCase=af,s.startsWith=lf,s.subtract=jf,s.sum=eg,s.sumBy=tg,s.template=sf,s.times=Nf,s.toFinite=it,s.toInteger=N,s.toLength=ja,s.toLower=pf,s.toNumber=ke,s.toSafeInteger=sm,s.toString=K,s.toUpper=uf,s.trim=cf,s.trimEnd=df,s.trimStart=mf,s.truncate=ff,s.unescape=gf,s.uniqueId=zf,s.upperCase=yf,s.upperFirst=Ei,s.each=Ha,s.eachRight=za,s.first=Ma,Bi(s,function(){var e={};return Ge(s,function(t,o){q.call(s.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),s.VERSION=u,Be(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){s[e].placeholder=s}),Be(["drop","take"],function(e,t){$.prototype[e]=function(o){o=o===i?1:se(N(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()}}),Be(["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}}),Be(["head","last"],function(e,t){var o="take"+(t?"Right":"");$.prototype[e]=function(){return this[o](1).value()[0]}}),Be(["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=N(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=N(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 d=this.__wrapped__,m=r?[1]:arguments,y=d instanceof $,C=m[0],w=y||k(d),I=function(Y){var W=a.apply(s,pt([Y],m));return r&&T?W[0]:W};w&&o&&typeof C=="function"&&C.length!=1&&(y=w=!1);var T=this.__chain__,B=!!this.__actions__.length,P=p&&!T,H=y&&!B;if(!p&&w){d=H?d:new $(this);var R=e.apply(d,m);return R.__actions__.push({func:ro,args:[I],thisArg:i}),new Pe(R,T)}return P&&H?e.apply(this,m):(R=this.thru(I),P?r?R.value()[0]:R.value():R)})}),Be(["pop","push","shift","sort","splice","unshift"],function(e){var t=Bn[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(k(p)?p:[],a)}return this[o](function(d){return t.apply(k(d)?d:[],a)})}}),Ge($.prototype,function(e,t){var o=s[t];if(o){var r=o.name+"";q.call(kt,r)||(kt[r]=[]),kt[r].push({name:t,func:o})}}),kt[Qn(i,ae).name]=[{name:"wrapper",func:i}],$.prototype.clone=fp,$.prototype.reverse=gp,$.prototype.value=yp,s.prototype.at=Gc,s.prototype.chain=Vc,s.prototype.commit=Kc,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},Rt=Ks();bt?((bt.exports=Rt)._=Rt,Lo._=Rt):ue._=Rt}).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:"ButtonGroup",const:"ButtonGroup"},{title:"Data Card",const:"card"},{title:"Check Box",const:"CheckBox"},{title:"Camera",const:"Camera"},{title:"Column Group",const:"ColumnGroup"},{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:"OTP_Input",const:"OTP_Input"},{title:"Pan Card Masked",const:"PanCardText"},{title:"Pop Up",const:"PopUp"},{title:"Pop Over",const:"PopOver"},{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:"Metric Card",const:"MetricCard"},{title:"Info Card",const:"InfoCard"},{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:"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:"YYYY-MM-DDTHH:mm:ss.SSSZ",const:"YYYY-MM-DDTHH:mm:ss.SSSZ"},{title:"YYYY-MM-DDTHH:mm:ssZ",const:"YYYY-MM-DDTHH:mm:ssZ"},{title:"YYYY-MM-DDTHH:mm:ss",const:"YYYY-MM-DDTHH:mm:ss"},{title:"YYYY-MM-DD",const:"YYYY-MM-DD"},{title:"DD-MM-YYYY",const:"DD-MM-YYYY"},{title:"MM/DD/YYYY",const:"MM/DD/YYYY"},{title:"YYYY-MM-DD HH:mm:ss",const:"YYYY-MM-DD HH:mm:ss"},{title:"YYYY-MM-DD HH:mm:ss.SSS",const:"YYYY-MM-DD HH:mm:ss.SSS"},{title:"Milliseconds",const:"x"},{title:"Seconds",const:"X"}]},variant:{oneOf:[{title:"Outlined",const:"outlined"},{title:"Filled",const:"filled"},{title:"Standard",const:"standard"}]},positionVertical:{oneOf:[{title:"Top",const:"top"},{title:"Center",const:"center"},{title:"Bottom",const:"bottom"}]},positionHorizontal:{oneOf:[{title:"Left",const:"left"},{title:"Center",const:"center"},{title:"Right",const:"right"}]},contentVertical:{oneOf:[{title:"Top",const:"top"},{title:"Center",const:"center"},{title:"Bottom",const:"bottom"}]},contentHorizontal:{oneOf:[{title:"Left",const:"left"},{title:"Center",const:"center"},{title:"Right",const:"right"}]},toolTipPosition:{oneOf:[{title:"Top",const:"top"},{title:"Left",const:"left"},{title:"Right",const:"right"},{title:"Bottom",const:"bottom"}]},growthRate:{oneOf:[{title:"Positive",const:"positive"},{title:"Negative",const:"negative"}]},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"}]},xAxisFormatType:{type:"string",oneOf:[{title:"Date and Month",const:"Date and Month"},{title:"Month and Year",const:"Month and Year"}]},xAxisType:{type:"string",oneOf:[{title:"Date",const:"date"},{title:"String",const:"string"},{title:"Number",const:"number"}]},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:{key:{type:"string"},label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{key:{type:"string"},label:{type:"string"}}}},tabIcons:{type:"array",items:{type:"object",properties:{url:{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"},{title:"Area Graph",const:"AreaGraph"}]},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:"Calendar",const:"Calendar"},{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})]}),getArrayControlMultiField=(n,l,i,u,f)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{},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:u||"Labels for Tab"}}},{type:"Control",scope:`#/properties/${i}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:f||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty2",{xs:6,sm:6,md:4,lg:4})]}),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,u)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:u||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"OTP_Input":l.elements=[getInputField("seperator","Seperator"),getInputField("length","OTP Length"),getRadioInputField("masking","OTP Masking",["YES","NO"]),emptyBox$1("empty1",{xs:12,sm:6,md:4,lg:3})];break;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"PopOver":l.elements=[getSelectField("positionVertical","Attach To (Vertical)"),getSelectField("positionHorizontal","Attach To (Horizontal)"),getSelectField("contentVertical","Popover Start (Vertical)"),getSelectField("contentHorizontal","Popover Start (Horizontal)"),getInputField("width","Width"),getInputField("gap","Gap"),emptyBox$1("PopUpEmpty",{xs:6,sm:0,md:8,lg:6})];break;case"Text":l.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("multiline","Multiline",["YES","NO"]),getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("Radio",{xs:6,sm:6,md:8,lg:9}),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"),getRadioInputField("isScoreAmount","Is Score an Amount Type",["YES","No"]),emptyBox$1("LeaderBoardEmpty1",{xs:6,sm:6,md:0,lg:3})];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"),getInputField("size","Size"),getRadioInputField("variant","Variant",["circular","horizontal"]),getArrayControl("pieArcColors","color","Color")];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"MetricCard":l.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("cardValue","Value"),getInputField("description","Description"),getSelectField("growthRate","Growth Rate"),getInputField("color","Card Color"),emptyBox$1("MetricEmpty1",{xs:6,sm:0,md:8,lg:6})];break;case"InfoCard":l.elements=[getInputField("title","Title"),getInputField("url","Image Url"),getInputField("labelOne","Label One"),getInputField("valueOne","valueOne"),getInputField("labelTwo","Label Two"),getInputField("valueTwo","valueTwo"),getInputField("primaryTextColor","Label Color"),getInputField("secondaryTextColor","Value Color"),getInputField("chipBackgroundColor","Title Background Color"),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"ButtonGroup":l.elements=[getRadioInputField("multiSelect","Enable multiSelect",["YES","No"]),getInputField("size","Size"),getSelectField("color","Color"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:8,lg:9})];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"),getInputField("subHeader","Sub Header"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getRadioInputField("disableLeftLabel","Disable Left Label",["YES","No"]),getInputField("bottomLabel","Bottom Label"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getRadioInputField("legendDirection","Legend Direction",["Row","Column"]),getInputField("yAxisValue","Y-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getSelectField("xAxisType","X-AxisType"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),getInputField("xAxisTickCount","X Axis TickCount"),getInputField("yAxisTickCount","Y Axis TickCount"),getSelectField("xAxisFormatType","X Axis Format Type"),emptyBox$1("GraphEmpty1",{xs:0,sm:0,md:4,lg:6}),getArrayControlMultiField("legendLabels","key","value","Key","Label"),getArrayControlMultiField("pieArcColors","key","value","Key","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"),getRadioInputField("defaultClosed","Default Closed",["YES","No"]),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"),getArrayControlMultiField("sectionLabels","label","icon","Label","Icon")];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"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("RadioEmpty1",{xs:6,sm:6,md:4,lg:3}),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"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("SelectEmpty",{xs:6,sm:6,md:8,lg:9})];break;case"MultipleSelect":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position")];break;case"Date":l.elements=[getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("DateEmpty1",{xs:6,sm:6,md:4,lg:3})];break;case"DateTime":l.elements=[getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("DateTimeEmpty1",{xs:6,sm:6,md:4,lg:3})];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"]),getInputField("description","Enter description"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),getInputField("chooseButtonLabel","ChooseButton Label"),getInputField("noFileAvailableMessage","No Found Message"),emptyBox$1("FileInputEmpty",{xs:6,sm:6,md:4,lg:3})];break;case"Camera":l.elements=[getSelectField("iconName","Icon Name"),getRadioInputField("multiUplaod","Multiple Uplaod",["YES","NO"]),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("variant","Variant"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:4,lg:4})]}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","Table"].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(u=>{i[u.key||"xs"]=u.value===null||u.value===void 0||u.value===""?5.5:+u.value}),i},flatObjectValueInArray=(n=[])=>{if(n.length<1)return;const l=Object.keys(n[0])[0];return n.map(u=>u[l])},createKeyValueMap=(n=[])=>n.reduce((l,i)=>(i.key&&(l[i.key]=i.value),l),{}),clearFromSessionStorage=()=>{sessionStorage.removeItem("pageFormdata")},validateAndShowErrors=n=>_.isEmpty(n.ctx.core.errors)?!1:(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Error on Page"}),!0),getNavigationHistory=(n,l)=>{if(l){let i=n.name;const u=l.split("."),f=[];return u.map((c,h)=>{if(h===0){f.push(c);return}f.push(`${f[h-1]}.${c}`)}),f.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 u=getFormdataFromSessionStorage();i=_.set(u,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 u=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,u);const f=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const x=await i(n,l,f);navigateHandler(n,!0,"/PageMasterRecords")}catch(x){navigateHandler(n,!1,void 0,x.message)}else navigateHandler(n,!1)}const navigateHandler=(n,l,i,u)=>{l?(sessionStorage.removeItem("pageFormdata"),n.navigate(i||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:u||"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"],LeaderBoard:["Core","Components","Properties","Events","Style"],WrapperSection:["Core","Components","Properties","Style"],HorizontalLayout:["Core","Components","Properties","Style"],TabSection:["Core","Components","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Events","Style"],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"],ProgressBar:["Core","Properties","Events","Style"],RankCard:["Core","Properties","Events","Style"],MetricCard:["Core","Properties","Events","Style","Validation"],InfoCard:["Core","Properties","Events","Style","Validation"],Slider:["Core","Components","Events","Style","Validation"],Timer:["Core","Events","Style"],Rank:["Core","Events","Style"],Button:["Core","Properties","Events","Style","Validation"],ButtonGroup:["Core","Components","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"],PopOver:["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"],Date:["Core","Properties","Events","Style","Validation"],DateTime:["Core","Properties","Events","Style","Validation"],Image:["Core","Properties","Style"],FileInput:["Core","Properties","Events","Style","Validation"],Camera:["Core","Properties","Events","Style","Validation"],OTP_Input:["Core","Properties","Events","Style","Validation"]};function refreshPage(n,l){var v,F;const i=_.cloneDeep(componentBasicUiSchema(l.theme.myTheme)),u=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},L=(v=sectionLabels[n])==null?void 0:v.map(U=>A[U]);i.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],i.elements[0].elements=L||[CoreSection,StyleSection,EventSection(l.theme.myTheme),ValidationSection]}const f=(F=l.searchParams)==null?void 0:F.get("path"),c=f.lastIndexOf("."),h=f.slice(0,c),x=_.get(u,h);((x==null?void 0:x.type)==="Table"||(x==null?void 0:x.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"}}},i.elements[0].elements[0].elements[11]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:0,lg:6}}}),(x==null?void 0:x.type)==="LeaderBoard"&&(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"}}}),sessionStorage.getItem("copiedConfig")&&this.ElementPathSetter(i),l.setUiSchema(i)}var Component=(n,l,i,u)=>({setPage:async function(){const f=await this.getFormdata();n.setFormdata(f);const c=this.getSchema();n.setSchema(c),this.refreshPage(f==null?void 0:f.type,n)},refreshPage,getFormdata:function(){var c;const f=(c=n.searchParams)==null?void 0:c.get("path");return getFormdataFromSessionStorage(f)},getSchema:function(){var F,A,L;const f=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(f.properties.RemoveItemButton.disabled=!1);const c=JSON.parse(sessionStorage.getItem("pageFormdata")),h=(F=n.searchParams)==null?void 0:F.get("path"),x=(A=n.searchParams)==null?void 0:A.get("id");let v=[{label:(L=c.name)!=null?L:"NewPage",path:`/PageMaster${x?`?id=${x}`:""}`}];if(h){const U=h.split("."),ne=[];U.map((X,V)=>{if(V===0){ne.push(X);return}ne.push(`${ne[V-1]}.${X}`)}),ne.map(X=>{const V=_.get(c,X);v.push({label:(V==null?void 0:V.name)||(V==null?void 0:V.eventType)||"NewComponent",path:`/Component?path=${X}${x?`&id=${x}`:""}`})})}return f.properties.pageName.path=v,f},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,u,i),onChange:function(){var f,c,h,x;((f=n==null?void 0:n.formData)==null?void 0:f.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((x=n==null?void 0:n.newData)==null?void 0:x.type,n)},editComponents:function(){var x,v,F;if(validateAndShowErrors(n))return;const f=l.path.split(".")[1],c=(x=n.searchParams)==null?void 0:x.get("path"),h=(v=n.searchParams)==null?void 0:v.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,c),c){const L=`${(F=n.searchParams)==null?void 0:F.get("path")}.elements[${f}]`;n.searchParams.set("path",L),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${f}]`}&id=${h}`)},deleteComponents:function(f=!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 x=saveFormdataInSessionStorage(n.ctx.core.data,c),v=c?_.get(x,c):x;n.setFormdata(v),f&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(f=!0){var v;const c=(v=n.searchParams)==null?void 0:v.get("path"),h=sessionStorage.getItem("rowId");n.formData.events.splice(h,1);const x=saveFormdataInSessionStorage(n.ctx.core.data,c);n.setFormdata(_.get(x,c)),f&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var h;if(validateAndShowErrors(n))return;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const f=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,f);const c=`${f}.elements[${n.formData.elements.length}]`;n.searchParams.set("path",c),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var v,F;if(validateAndShowErrors(n))return;const f=l.path.split(".")[1],c=(v=n.searchParams)==null?void 0:v.get("path"),h=(F=n.searchParams)==null?void 0:F.get("id");saveFormdataInSessionStorage(n.ctx.core.data,c);const x=`${c}.events[${f}]`;n.navigate(`/ComponentEvents?path=${x}&id=${h}`)},eventAddHandler:function(){var x,v;if(validateAndShowErrors(n))return;const f=(x=n.searchParams)==null?void 0:x.get("path"),c=(v=n.searchParams)==null?void 0:v.get("id");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,f);const h=`${f}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${h}&id=${c}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const f=l.path.split(".")[1];sessionStorage.setItem("rowId",f),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const f=l.path.split(".")[1];sessionStorage.setItem("rowId",f),n.updateDialog("popUpEventSection")},copyPasteElement:function(f,c=this.setPage.bind(this)){var v;const[h,x]=(v=l.path.split(".").pop())==null?void 0:v.split("_");h==="Copy"?this.CopyElement(f,x):this.PasteElement(c,x)},CopyElement:function(f=n,c){var U;const h=lodash.exports.cloneDeep(f.schema),x=lodash.exports.cloneDeep(f.uiSchema);h.properties.RemoveItemButton.disabled=!1;const v=l.path.split(".")[1],F=(U=n.searchParams)==null?void 0:U.get("path"),A=this.elementPathHandler(F,v,c),L=getFormdataFromSessionStorage(A);this.ElementPathSetter(x,L),sessionStorage.setItem("copiedConfig",JSON.stringify(L)),n.setNotify({SuccessMessage:`${c} Copied Successfully`,Success:!0}),n.setSchema(h),n.setUiSchema(x)},PasteElement:function(f,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 x=getFormdataFromSessionStorage(h),v=c==="Component"?x.elements.length:x.events.length,F=this.elementPathHandler(h,v,c),A=JSON.parse(sessionStorage.getItem("copiedConfig")),L={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:L.Events,Fail:!0}):A.name&&c==="Events"?n.setNotify({FailMessage:L.Component,Fail:!0}):(saveFormdataInSessionStorage(A,F),f())},RemoveItemButton:function(f=n){const c=lodash.exports.cloneDeep(f.schema),h=lodash.exports.cloneDeep(f.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(f,c,h){return h==="Component"?f?`${f}.elements[${c}]`:`elements[${c}]`:f?`${f}.events[${c}]`:`events[${c}]`},ElementPathSetter:function(f,c){var x,v,F,A,L,U,ne,X,V,M,ae,Ee,Z,qe,Se,Je,Ae,at,Ft,fn,gn,yn,hn,Wt,bn,xn;const h=c||JSON.parse(sessionStorage.getItem("copiedConfig"));(U=(L=(A=(F=(v=(x=f==null?void 0:f.elements)==null?void 0:x[1])==null?void 0:v.elements)==null?void 0:F[0])==null?void 0:A.config)==null?void 0:L.main)!=null&&U.headerIcons?f.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`:(qe=(Z=(Ee=(ae=(M=(V=(X=(ne=f==null?void 0:f.elements)==null?void 0:ne[0])==null?void 0:X.elements)==null?void 0:V[1])==null?void 0:M.elements)==null?void 0:ae[0])==null?void 0:Ee.config)==null?void 0:Z.main)!=null&&qe.headerIcons&&(f.elements[0].elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`),(fn=(Ft=(at=(Ae=(Je=(Se=f==null?void 0:f.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&&fn.headerIcons?f.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Event: ${h.eventType}`:(xn=(bn=(Wt=(hn=(yn=(gn=f==null?void 0:f.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&&(f.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:u,service:f}=n;return{setPage:async function(){const c=await this.getFormdata();l.setFormdata(c);const h=await this.getUiSchema(),x=await this.getSchema();l.setSchema(x),l.setUiSchema(h)},getFormdata:async function(){var v;const c=(v=l.searchParams)==null?void 0:v.get("id"),h=await n.pageConfigProvider(c),x=getFormdataFromSessionStorage();return x||(saveFormdataInSessionStorage(h),{...h,type:"page"})},getUiSchema:function(){const c=_.cloneDeep(PageMasterUiSchema(l.theme.myTheme));return sessionStorage.getItem("copiedConfig")&&Component(l,i,u,f).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 x;if(validateAndShowErrors(l))return;const c=(x=l.searchParams)==null?void 0:x.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,f,u),Edit_Components:Component(l,i,u,f).editComponents,Delete_Components:async function(){await Component(l,i,u,f).deleteComponents(!1),l.updateDialog("popUpPageMasterComponent")},eventAddHandler:function(){var x;if(validateAndShowErrors(l))return;const c=(x=l.searchParams)==null?void 0:x.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 v;if(validateAndShowErrors(l))return;const c=i.path.split(".")[1],h=(v=l.searchParams)==null?void 0:v.get("id");saveFormdataInSessionStorage(l.ctx.core.data);const x=`events[${c}]`;l.navigate(`/ComponentEvents?path=${x}&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,u,f).copyPasteElement(l,this.setPage.bind(this))},RemoveItemButton:function(){Component(l,i,u,f).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,u,f)=>({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,V;const x=_.cloneDeep(EventUiSchema(h.theme.myTheme)),v=_.cloneDeep(EventSchema);c&&(c==="custom"?(x.elements[0].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),x.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:{}}},x.elements[0].elements[0].elements[4]=getTextArea("eventCode","Write Custom Code",!1),v.required=["eventType","Handler","eventCode"]):c==="api"?(x.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),x.elements[0].elements[0].elements[3]=APISection,v.required=["eventType","Handler","method","path"]):c==="inBuiltFunction"?(x.elements[0].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),x.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:{}}},x.elements[0].elements[0].elements[4]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0),v.required=["eventType","Handler","inBuiltFunctionType"]):c==="refresh"&&(x.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),x.elements[0].elements[0].elements[3]=refreshSectionUiSchema,v.properties.refreshElements.required=["value"],v.properties.refreshElements.items.required=["value"],v.required=["eventType","Handler","refreshElements"])),f&&(v.properties.inBuiltFunctionType.oneOf=[...v.properties.inBuiltFunctionType.oneOf,...f]),sessionStorage.getItem("copiedConfig")&&(Component(h,l,i,u).ElementPathSetter(x),v.properties.RemoveItemButton.disabled=!1);const F=JSON.parse(sessionStorage.getItem("pageFormdata")),A=(ne=h.searchParams)==null?void 0:ne.get("path"),L=(X=h.searchParams)==null?void 0:X.get("id");let U=[{label:(V=F.name)!=null?V:"NewPage",path:`/PageMaster${L?`?id=${L}`:""}`}];if(A){const M=A.split("."),ae=[];M.map((Ee,Z)=>{if(Z===0){ae.push(Ee);return}ae.push(`${ae[Z-1]}.${Ee}`)}),ae.map(Ee=>{const Z=_.get(F,Ee);U.push({label:(Z==null?void 0:Z.name)||(Z==null?void 0:Z.eventType)||"NewComponent",path:Z!=null&&Z.eventType?`/ComponentEvents?path=${Ee}${L?`&id=${L}`:""}`:`/Component?path=${Ee}${L?`&id=${L}`:""}`})})}v.properties.pageName.path=U,h.setSchema(v),h.setUiSchema(x)},getFormData:Component(n,l,i,u).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{var A,L,U;const c=_.cloneDeep(EventSchema);sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1);const h=JSON.parse(sessionStorage.getItem("pageFormdata")),x=(A=n.searchParams)==null?void 0:A.get("path"),v=(L=n.searchParams)==null?void 0:L.get("id");let F=[{label:(U=h.name)!=null?U:"NewPage",path:`/PageMaster${v?`?id=${v}`:""}`}];if(x){const ne=x.split("."),X=[];ne.map((V,M)=>{if(M===0){X.push(V);return}X.push(`${X[M-1]}.${V}`)}),X.map(V=>{const M=_.get(h,V);F.push({label:(M==null?void 0:M.name)||(M==null?void 0:M.eventType)||"NewComponent",path:M!=null&&M.eventType?`/ComponentEvents?path=${V}${v?`&id=${v}`:""}`:`/Component?path=${V}${v?`&id=${v}`:""}`})})}return c.properties.pageName.path=_.cloneDeep(F),c},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,u,i),onChange:function(){var c,h,x;((c=n==null?void 0:n.formData)==null?void 0:c.Handler)!==((h=n==null?void 0:n.newData)==null?void 0:h.Handler)&&((x=n==null?void 0:n.newData)==null?void 0:x.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var x,v,F;if(validateAndShowErrors(n))return;const c=(x=n.searchParams)==null?void 0:x.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,c);const h=`${c}.events[${(F=(v=n.formData)==null?void 0:v.events)==null?void 0:F.length}]`;n.searchParams.set("path",h),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var v;if(validateAndShowErrors(n))return;const c=l.path.split(".")[1],h=(v=n.searchParams)==null?void 0:v.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const x=`${h}.events[${c}]`;n.searchParams.set("path",x),n.setSearchParams(n.searchParams),this.setPage()},deleteEvent:async function(){await Component(n,l,i,u).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,u).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,l,i,u).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),u=new Uint8Array(i.length);for(let A=0;A<i.length;A++)u[A]=i.charCodeAt(A);const f=(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([u],{type:c[f]||"application/octet-stream"}),x=URL.createObjectURL(h),v=document.createElement("a");v.href=x,v.download=l,v.click(),URL.revokeObjectURL(x)}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 u=document.createElement("a");u.href=i,document.body.appendChild(u),u.click(),u.parentNode.removeChild(u)},executeEvents=n=>{var f,c,h;let l=[],i=null;if(n.config.isSync!=="Yes")return shouldEventExecute(n).then(x=>{if(!x)throw new Error("onStart Event not allow to run Parent Events");return executeEventsHandler(n)}).then(x=>{var F;i=x,l=(F=n.config)==null?void 0:F.events.filter(A=>A.eventType==="Success")}).catch(x=>{var A,L;const v=(L=(A=n.config)==null?void 0:A.events)==null?void 0:L.filter(U=>U.eventType==="Fail");l=(v==null?void 0:v.length)>0?v:[]}).then(()=>{if((l==null?void 0:l.length)>0)return l.reduce((x,v)=>x.then(()=>executeEvents({...n,config:v,parentEventOutput:i})),Promise.resolve())}).then(()=>i);if(!shouldEventExecute(n))return{response:void 0,events:void 0};try{i=executeEventsHandler(n),l=(f=n.config)==null?void 0:f.events.filter(F=>F.eventType==="Success")}catch{const x=(h=(c=n.config)==null?void 0:c.events)==null?void 0:h.filter(F=>F.eventType==="Fail");l=(x==null?void 0:x.length)>0?x:[]}if((l==null?void 0:l.length)>0)for(const x of l)executeEvents({...n,config:x,parentEventOutput:i});return i};function executeEventsHandler(n){var l,i,u;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(u=n.store.functionParameters)==null?void 0:u.handleReset()}function getRefreshElements(n,l){var u;let i=[];return((u=n==null?void 0:n.refreshElements)==null?void 0:u.length)>0?i=n.refreshElements.map(f=>f.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 u=n.eventGroups.onLoad[i];return u?Promise.allSettled(u.map(f=>executeEvents({...n,config:f,componentName:i}))):Promise.resolve()}))}function executeApiRequest(n){var f;const l={...(f=n.userValue)==null?void 0:f.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},u=buildApiPayload(n.config,l,i,n.store,n.dynamicData,n.userValue,n.service);return n.service[n.config.method](n.config.path,u.body,{headers:u.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,u,f){var c,h,x;i.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||u.setSchema(v=>{var F;return{...v,properties:{...v.properties,[l]:{...(F=v.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)||u.setSchema(v=>{var F;return{...v,properties:{...v.properties,[l]:{...(F=v.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)||(u.newData={...u.newData,...n==null?void 0:n.data},Object.keys(n.data).forEach(v=>{f[v]=n.data[v]})):i.type==="Table"&&i.lazyLoading?n&&(n==null?void 0:n.data)&&(f[l]=(c=n.data)==null?void 0:c.data,f[`${l}_RowCount`]=(x=(h=n.data)==null?void 0:h.meta)==null?void 0:x.totalRowCount):n!=null&&n.data&&(f[l]=n.data)}const buildBodyFormat=(n,l,i,u)=>{let f={...i==null?void 0:i.payload};return n.map(c=>{var h,x,v,F,A;if(typeof(c==null?void 0:c.value)!="string")f[c.key]=c.value;else if((h=c==null?void 0:c.value)!=null&&h.startsWith("$userValue")){const L=c.value.substring(11);f[c.key]=_.get(i,L)}else if((x=c==null?void 0:c.value)!=null&&x.startsWith("$urlParams")){const L=c.value.substring(11),U=(v=u==null?void 0:u.searchParams)==null?void 0:v.get(L);f[c.key]=U}else if((F=c==null?void 0:c.value)!=null&&F.startsWith("$local")){const L=c.value.substring(7),U=JSON.parse(sessionStorage.getItem(L)||'""');f[c.key]=U}else if((A=c==null?void 0:c.value)!=null&&A.startsWith("$")){const L=c.value.substring(1);f[c.key]=_.get(l,L)}else(c==null?void 0:c.value)==="*"&&(c==null?void 0:c.key)==="*"?f={...f,...l}:(c==null?void 0:c.value)==="*"?f[c.key]=l:f[c.key]=c.value}),f},buildHeadersFormat=n=>{const l={"X-Requested-With":"XMLHttpRequest"};return n.map(i=>{l[i.key]=i.value}),l};function shouldEventExecute(n){var i,u,f;const l=(u=(i=n.config)==null?void 0:i.events)==null?void 0:u.filter(c=>c.eventType==="onStart");return(l==null?void 0:l.length)>0?((f=l[0])==null?void 0:f.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(u=>{var c;i.type&&(compType=i.type),eventGroups[u.eventType]||(eventGroups[u.eventType]={}),eventGroups[u.eventType][i.name]||(eventGroups[u.eventType][i.name]=[]);const f=(c=u==null?void 0:u.events)==null?void 0:c.find(h=>h.eventType==="Success");!f&&u.eventType==="onLoad"&&(u.events||(u.events=[]),u.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!f&&(u.eventType==="onBack"||u.eventType==="onNext"||u.eventType==="onReset")&&(u.events||(u.events=[]),u.events.push({Handler:`${u.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),eventGroups[u.eventType][i.name].push({...u,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 x,v,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 u=pageData==null?void 0:pageData.config,f=pageData==null?void 0:pageData.uiSchema,c=new CustomEvent("pageNameChanged",{detail:{pageName:u.label,hasBackIcon:u.hasBackIcon!=="NO"}});window.dispatchEvent(c),(v=(x=n==null?void 0:n.store)==null?void 0:x.theme)==null||v.myTheme;const h=(F=pageData==null?void 0:pageData.schema)!=null?F:{type:"object",properties:{}};eventGroups=extractEvents(u),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(L=>({...L,...l})),f.elements.push(notifyUiSchema),n.store.setUiSchema(f)})},onCellRenderer:u=>{var c,h,x,v,F;const f=_.cloneDeep(eventGroups);if(f.onCellRenderer){let A={};const L=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||((x=(h=n==null?void 0:n.dynamicData)==null?void 0:h.path)==null?void 0:x.split(".")[0]);if((v=f==null?void 0:f.onCellRenderer)!=null&&v[L]){for(const U of(F=f==null?void 0:f.onCellRenderer)==null?void 0:F[L])i.store.functionParameters=u,A=executeEvents({...i,config:U,componentName:L});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(u){const f=[{key:"direction",value:u.rowMovement.direction},{key:"movedRowId",value:u.rowMovement.movedRowId},{key:"targetRowId",value:u.rowMovement.targetRowId||[]}];await this.callExecuteEvents({path:u==null?void 0:u.path},f,"onRowMovement");const c=await this.callExecuteEvents({path:u==null?void 0:u.path},f,"onLoad");return c==null?void 0:c.data},onPaginationChange:async function(u){var h,x;const f=[{key:"size",value:u.pagination.pageSize},{key:"pageIndex",value:u.pagination.pageIndex},{key:"sorting",value:u.sorting||[]},{key:"filters",value:u.tableColumnConfig||[]},{key:"globalFilter",value:(h=u.globalFilter)!=null?h:""},{key:"expandedRowIds",value:(x=u.expandedRowIds)!=null?x:[]}],c=await this.callExecuteEvents(u,f,"onLoad");return c==null?void 0:c.data},getSelectOptions:async function(u){if(u.serachValue!==""&&u.serachValue!==void 0){const f=[{key:"searchValue",value:u.serachValue},{key:"currentValue",value:u.currentValue}],c=await this.callExecuteEvents(u,f,"onLoad");return c==null?void 0:c.data}},onChange:function(){if(!eventGroups.onChange)return;const f=Object.keys(eventGroups.onChange).flatMap(c=>{var h,x;return((h=n.store)==null?void 0:h.formData[c])===n.store.newData[c]||((x=n.store)==null?void 0:x.newData[c])===void 0?[]:eventGroups.onChange[c].map(v=>Promise.resolve(executeEvents({...i,config:v,componentName:c,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(F=>({...F,...l}))}))});Promise.allSettled(f)},callExecuteEvents:async function(u,f,c){var v,F;let h;const x=_.cloneDeep(eventGroups);for(const A of(v=x==null?void 0:x[c])==null?void 0:v[u.path]){A.body?A.body=[...A.body,...f]:A.body=f;const L=(F=A==null?void 0:A.events)==null?void 0:F.filter(U=>U.Handler!=="mergeFormdata");A.events=L!=null?L:[],h=await executeEvents({...i,config:A,componentName:u.path})}return h},onBack:async function(u){var c,h;const f=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onBack",u),((h=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:h[f])===void 0&&(u==null||u.handleBack())},onNext:async function(u){var c,h;const f=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onNext",u),((h=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:h[f])===void 0&&(u==null||u.handleNext())},onReset:async function(u){var c,h;const f=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onReset",u),((h=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:h[f])===void 0&&(u==null||u.handleReset())},callHandler:function(u,f){var x,v;const c=((x=n.dynamicData)==null?void 0:x.tableButtonPath)||n.dynamicData.path.split(".").pop();if(!((v=eventGroups==null?void 0:eventGroups[u])!=null&&v[c]))return;const h=eventGroups[u][c].map(F=>(i.store.functionParameters=f,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((u,f)=>u.type?{...{widget:buildUiSchema(u),accessorKey:u.name,header:u.label||u.name}}:{accessorKey:u.name,header:u.label||u.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.isScoreAmount&&(l.config.main.isScoreAmount=n.isScoreAmount==="YES"),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.variant&&(i.config.main.variant=n.variant),n.pieArcColors&&(i.config.main.colorRange=flatObjectValueInArray(n.pieArcColors)),n.size&&(i.config.main.size=Number(n.size)),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:{}}}}},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:{}}}}},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:{}}}}},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:{}}}}},AreaBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{type:"AreaGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},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=createKeyValueMap(n.legendLabels)),n.legendDirection&&(i.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.pieArcColors&&(i.config.style.colorMap=createKeyValueMap(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),n.disableLeftLabel&&(i.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),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 u=JSON.parse(n.style);u!=null&&u.style&&(i.config.style={...i.config.style,...u.style}),u!=null&&u.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...u.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"),n.legendDirection&&(i.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),i.scope=l,i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(i.config.style.colorMap=createKeyValueMap(n.pieArcColors)),i},buildStackbarGraph=(n,l)=>{var u;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.legendDirection&&(i.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),i.config.main.type=(u=n==null?void 0:n.graphType)!=null?u:"BarGraph",i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.pieArcColors&&(i.config.style.colorMap=createKeyValueMap(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),n.disableLeftLabel&&(i.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),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(u=>u.label),i.config.main.tabIcons=n.sectionLabels.map(u=>u.icon)),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",i.config.main.defaultClosed=n.defaultClosed==="YES",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(u=>u.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)),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),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},style:{}}};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)),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),n.style&&(i.config.style=JSON.parse(n.style)),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(u=>u.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),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),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),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),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),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),i};function Card(n){return{type:"WrapperLayout",config:{main:{},style:{wrapperStyle:{position:"relative",top:"50%",transform:"translateY(-50%)",marginBottom:0,borderRadius:"12px",fontFamily:"poppins"},componentsBoxStyle:{boxShadow:"0 0 6px 1px rgba(149, 147, 147, 0.25)",flexDirection:"column",overflow:"hidden",flexWrap:"nowrap",width:"100% !important",background:"transparent",borderRadius:"12px",padding:"20px 20px 20px 14px",height:"100%",minHeight:"100px",position:"relative",marginLeft:"0px","&: hover":{background:`${n.palette.primary.main}`,color:`${n.palette.primary.contrastText}`}}},layout:{xs:12,sm:12,md:3,lg:3}},elements:[{type:"Control",scope:"#/properties/initilCardScope",config:{main:{url:"https://www.svgrepo.com/show/500606/loading.svg"},style:{containerStyle:{position:"absolute",color:"inherit",top:"4px",right:"4px",display:"flex",justifyContent:"flex-end",alignItems:"flex-start"},imageStyle:{color:"inherit",width:"32px",height:"32px",padding:"0px",margin:"0px"}}},options:{widget:"Image"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"Total Earnings"},style:{color:"inherit",fontSize:"16px",fontWeight:300,fontFamily:"Poppins",justifyContent:"flex-start",background:"inherit",position:"absolute",top:"8px",left:"12px",display:"flex",maxWidth:"200px",whiteSpace:"nowrap",overflowX:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"5000.00"},style:{color:"inherit",display:"flex",fontSize:{xs:"22px",md:"40px"},fontWeight:600,background:"inherit",justifyContent:"flex-start",width:"100%",margin:"0px",marginBottom:"4px",marginTop:"8px",lineHeight:"1",maxWidth:"300px",whiteSpace:"nowrap",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"Increased from last month"},style:{color:"inherit",fontSize:"12px",fontWeight:"400",justifyContent:"flex-start",background:"inherit",margin:"0px",paddingLeft:"2px",marginBottom:"8px",maxWidth:"200px",whiteSpace:"nowrap",overflowX:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}}]}}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].scope=`#/properties/${config.name}/properties/url`,card.elements[1].scope=`#/properties/${config.name}/properties/label`,card.elements[2].scope=`#/properties/${config.name}/properties/value`,card.elements[3].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[1].config.main.heading=config.label),config.url&&(card.elements[0].config.main.url=config.url),config.description&&(card.elements[3].config.main.heading=config.description),card};var MetricCard={type:"Control",scope:"#/properties/metricpath",options:{widget:"MetricCard"},config:{layout:{xs:12,sm:12,md:3,lg:3},main:{}}};const buildMetricCard=(n,l,i)=>{const u=_.cloneDeep(MetricCard);return u.scope=l,n.style&&(u.config.style=JSON.parse(n.style)),n.layout&&(u.config.layout=createLayoutFormat(n.layout)),n.label&&(u.config.main.label=n.label),n.url&&(u.config.main.url=n.url),n.description&&(u.config.main.description=n.description),n.cardValue&&(u.config.main.cardValue=n.cardValue),n.growthRate&&(u.config.main.growthRate=n.growthRate),n.color&&(u.config.main.color=n.color),u};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),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),n.style&&(i.config.style=JSON.parse(n.style)),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),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),n.style&&(i.config.style=JSON.parse(n.style)),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:[]},style:{}}};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"),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),n.style&&(i.config.style=JSON.parse(n.style)),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.disableLeftLabel&&(i.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(i.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.pieArcColors&&(i.config.style.colorMap=createKeyValueMap(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(u=>u.label||u.Options)),n.style&&(i.config.style=JSON.parse(n.style)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),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 i.scope=l,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)),i.config.main.variant=n.variant,i.config.main.disableUpload=n.disableUpload==="YES",i.config.main.disableDownload=n.disableDownload==="YES",i.config.main.disableDelete=n.disableDelete==="YES",i.config.main.description=n.description,i.config.main.toolTip=n.toolTip,i.config.main.chooseButtonLabel=n.chooseButtonLabel,i.config.main.noFileAvailableMessage=n.noFileAvailableMessage,n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),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((u,f)=>({label:u.label,id:f}))),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},buildAreaGraph=(n,l)=>{const i=_.cloneDeep(AreaBarGraph);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,i.config.main.subHeader=n.subHeader,n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.legendDirection&&(i.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.height&&(i.config.style.containerStyle.height=n.height),n.pieArcColors&&(i.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisFormatType&&(i.config.main.xAxisFormatType=n.xAxisFormatType),n.xAxisTickCount&&(i.config.main.xAxisTickCount=n.xAxisTickCount),n.yAxisTickCount&&(i.config.main.yAxisTickCount=n.yAxisTickCount),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.xAxisType&&(i.config.main.xAxisType=n.xAxisType),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(i.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),i},cameraUiSchema={type:"Control",scope:"#/properties/camera",options:{widget:"Camera"},config:{main:{label:"Upload Photo",multiUplaod:!1,onUpload:"onFileUpload"}}},buildCamera=(n,l)=>{const i=_.cloneDeep(cameraUiSchema);return i.scope=l,n.iconName&&(i.config.main.startIcon=n.iconName),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.tooltipMessage&&(i.config.main.tooltipMessage=n.tooltipMessage),i.config.main.multiUplaod=n.multiUplaod==="YES",n.style&&(i.config.style=JSON.parse(n.style)),n.size&&(i.config.main.size=n.size),n.variant&&(i.config.main.variant=n.variant),n.color&&(i.config.main.color=n.color),n.label&&(i.config.main.name=n.label),i};var ButtonGroup={type:"Control",scope:"#/properties/buttonGroup",options:{widget:"ButtonGroup"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{variant:"contained",styleDefault:!1,size:"small"},style:{}}};const buildButtonGroup=(n,l)=>{const i=_.cloneDeep(ButtonGroup);return n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),i.scope=l,n.multiSelect&&(i.config.main.multiSelect=n.multiSelect==="YES"),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),i},PopOver={type:"Control",scope:"#/properties/text",options:{widget:"Popover"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopOver"},style:{}}},buildPopOver=(n,l)=>{const i=_.cloneDeep(PopOver);return i.scope=l,i.config.main.positionVertical=n.positionVertical,i.config.main.positionHorizontal=n.positionHorizontal,i.config.main.contentVertical=n.contentVertical,i.config.main.contentHorizontal=n.contentHorizontal,i.config.main.width=n.width,i.config.main.gap=n.gap,n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(i.config.style=JSON.parse(n.style)),i},OTPSchema={type:"Control",scope:"#/properties/OTPInput",options:{widget:"OTPInput"},config:{layout:{xs:12,sm:12,md:3,lg:3},main:{seperator:"",length:4,type:"number",masking:!0}}},buildOTP_Input=(n,l)=>{const i=_.cloneDeep(OTPSchema);return i.scope=l,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),n.toolTip&&(i.config.main.toolTip=n.toolTip),i.config.main.masking=n.masking==="YES",i.config.main.type=n.OTP_Format,i.config.main.seperator=n.seperator,i.config.main.length=+n.length,i};function InfoCard(n){return{type:"WrapperLayout",config:{main:{},style:{wrapperStyle:{position:"relative",top:"50%",transform:"translateY(-50%)",marginBottom:0,borderRadius:"12px",fontFamily:"Poppins"},componentsBoxStyle:{flexDirection:"column",overflow:"hidden",flexWrap:"nowrap",width:"100% !important",background:n.palette.background.paper,borderRadius:"12px",border:`1.5px solid ${n.palette.divider}`,padding:"24px 24px 24px 24px",height:"100%",minHeight:"140px",position:"relative",gap:"0px !important",transition:"box-shadow 0.25s ease, transform 0.25s ease","&:hover":{boxShadow:"0 8px 28px 0 rgba(100, 100, 120, 0.18)",transform:"translateY(-3px)"}}},layout:{xs:12,sm:12,md:3,lg:3}},elements:[{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"Title"},style:{color:`${n.palette.primary.main}`,fontSize:"11px",fontWeight:600,fontFamily:"Poppins",letterSpacing:"0.6px",background:`${n.palette.primary.main}18`,borderRadius:"20px",padding:"4px 14px",display:"inline-flex",alignItems:"center",width:"fit-content",alignSelf:"flex-start",position:"absolute",top:"24px",left:"20px",whiteSpace:"nowrap"}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{url:"https://www.svgrepo.com/show/500606/loading.svg"},style:{containerStyle:{position:"absolute",top:"24px",right:"22px",display:"flex",justifyContent:"flex-end",alignItems:"flex-start"},imageStyle:{width:"27px",height:"27px"}}},options:{widget:"Image"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:""},style:{display:"block",height:"48px",width:"100%",background:"transparent",padding:"0px",margin:"0px"}},options:{widget:"Box"}},{type:"WrapperLayout",config:{main:{rowSpacing:0,columnSpacingSpacing:0,spacing:0,gap:0},style:{componentsBoxStyle:{flexDirection:"row",alignItems:"center",flexWrap:"nowrap",gap:"4px",padding:"0px",marginTop:"-10px",margin:"0px",marginBottom:"6px",background:"transparent",boxShadow:"none",width:"0",minHeight:"unset"}},layout:{xs:12,sm:12,md:12,lg:12}},elements:[{type:"Control",scope:"#/properties/initilCardScope",config:{layout:"auto",main:{heading:"\u2022"},style:{color:n.palette.text.secondary,fontSize:"22px",fontWeight:600,fontFamily:"Poppins",letterSpacing:"0px",background:"transparent",padding:"0px",margin:"0px",width:"fit-content",flexShrink:0,display:"flex",alignItems:"center",lineHeight:"1",paddingBottom:"2px"}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/initilCardScope",config:{layout:"auto",main:{heading:"Label One"},style:{color:n.palette.text.secondary,fontSize:"11px",fontWeight:600,fontFamily:"Poppins",letterSpacing:"0.6px",background:"transparent",padding:"0px",margin:"0px",width:"fit-content",display:"flex",alignItems:"center",lineHeight:"1.4"}},options:{widget:"Box"}}]},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"--"},style:{color:`${n.palette.primary.main}`,fontSize:{xs:"28px",md:"32px"},fontWeight:700,fontFamily:"Poppins",lineHeight:"1.15",margin:"0px",marginBottom:"16px",padding:"0px",background:"transparent",display:"flex",maxWidth:"220px",whiteSpace:"nowrap",overflowX:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}},{type:"WrapperLayout",config:{main:{rowSpacing:0,columnSpacingSpacing:0,spacing:0,gap:0},style:{componentsBoxStyle:{flexDirection:"row",alignItems:"center",flexWrap:"nowrap",gap:"4px",padding:"0px",margin:"0px",marginBottom:"6px",background:"transparent",boxShadow:"none",width:"0%",minHeight:"unset"}},layout:{xs:12,sm:12,md:12,lg:12}},elements:[{type:"Control",scope:"#/properties/initilCardScope",config:{layout:"auto",main:{heading:"\u2022"},style:{color:n.palette.text.secondary,fontSize:"22px",fontWeight:600,fontFamily:"Poppins",letterSpacing:"0px",background:"transparent",padding:"0px",margin:"0px",width:"fit-content",flexShrink:0,display:"flex",alignItems:"center",lineHeight:"1",paddingBottom:"2px"}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/initilCardScope",config:{layout:"auto",main:{heading:"Label Two"},style:{color:n.palette.text.secondary,fontSize:"11px",fontWeight:600,fontFamily:"Poppins",letterSpacing:"0.6px",background:"transparent",padding:"0px",margin:"0px",width:"fit-content",display:"flex",alignItems:"center",lineHeight:"1.4"}},options:{widget:"Box"}}]},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"--"},style:{color:`${n.palette.primary.main}`,fontSize:{xs:"20px",md:"22px"},fontWeight:500,fontFamily:"Poppins",lineHeight:"1.15",margin:"0px",padding:"0px",background:"transparent",display:"flex",maxWidth:"220px",whiteSpace:"nowrap",overflowX:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}}]}}const buildInfoCard=(n,l,i)=>{const u=_.cloneDeep(InfoCard(i.theme.myTheme));if(u.elements[0].scope=`#/properties/${n.name}/properties/title`,u.elements[1].scope=`#/properties/${n.name}/properties/url`,u.elements[3].elements[1].scope=`#/properties/${n.name}/properties/labelOne`,u.elements[4].scope=`#/properties/${n.name}/properties/valueOne`,u.elements[5].elements[1].scope=`#/properties/${n.name}/properties/labelTwo`,u.elements[6].scope=`#/properties/${n.name}/properties/valueTwo`,n.title&&(u.elements[0].config.main.heading=n.title),n.url&&(u.elements[1].config.main.url=n.url),n.labelOne&&(u.elements[3].elements[1].config.main.heading=n.labelOne),n.valueOne&&(u.elements[4].config.main.heading=n.valueOne),n.labelTwo&&(u.elements[5].elements[1].config.main.heading=n.labelTwo),n.valueTwo&&(u.elements[6].config.main.heading=n.valueTwo),n.primaryTextColor&&(u.elements[4].config.style.color=n.primaryTextColor,u.elements[6].config.style.color=n.primaryTextColor),n.secondaryTextColor&&(u.elements[0].config.style.color=n.secondaryTextColor,u.elements[3].elements[0].config.style.color=n.secondaryTextColor,u.elements[3].elements[1].config.style.color=n.secondaryTextColor,u.elements[5].elements[0].config.style.color=n.secondaryTextColor,u.elements[5].elements[1].config.style.color=n.secondaryTextColor),n.chipBackgroundColor&&(u.elements[0].config.style.background=n.chipBackgroundColor),n.style){const f=JSON.parse(n.style);if(f.wrapperStyle&&(u.config.style.wrapperStyle={...u.config.style.wrapperStyle,...f.wrapperStyle}),f.componentsBoxStyle&&(u.config.style.componentsBoxStyle={...u.config.style.componentsBoxStyle,...f.componentsBoxStyle}),f.headingStyle&&(u.elements[0].config.style={...u.elements[0].config.style,...f.headingStyle}),f.labelStyle){const c=f.labelStyle;u.elements[3].elements[0].config.style={...u.elements[3].elements[0].config.style,...c},u.elements[3].elements[1].config.style={...u.elements[3].elements[1].config.style,...c},u.elements[5].elements[0].config.style={...u.elements[5].elements[0].config.style,...c},u.elements[5].elements[1].config.style={...u.elements[5].elements[1].config.style,...c}}f.valueStyle&&(u.elements[4].config.style={...u.elements[4].config.style,...f.valueStyle},u.elements[6].config.style={...u.elements[6].config.style,...f.valueStyle})}return n.layout&&(u.config.layout=createLayoutFormat(n.layout)),u};exports.schema={type:"object",properties:{},required:[]};function buildSchemaFromConfig(n,l){var u,f,c,h,x,v,F,A,L,U,ne,X,V;if(n.elements)if(n.type==="Array"){(u=l.properties)!=null||(l.properties={}),(h=(f=l.properties)[c=n.name])!=null||(f[c]={type:"array",items:{type:"object",properties:{},required:[]}});const M=l.properties[n.name].items;(x=n.elements)==null||x.forEach(ae=>buildSchemaFromConfig(ae,M));return}else{(v=n.elements)==null||v.forEach(M=>buildSchemaFromConfig(M,l));return}(F=l.properties)!=null||(l.properties={}),(U=(A=l.properties)[L=n.name])!=null||(A[L]={});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"&&((V=n.value)==null?void 0:V.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 u=`#/properties/${n.name}`;switch(n.type){case"OTP_Input":i=buildOTP_Input(n,u);break;case"TreeMap":i=buildTreeMap(n,u);break;case"DateTime":i=buildDateTime(n,u);break;case"InputSlider":i=buildInputSlider(n,u);break;case"DataGrid":i=buildDataGrid(n,u);break;case"Stepper":i=buildStepper(n,u);break;case"PopUp":i=buildPopUp(n,u);break;case"PopOver":i=buildPopOver(n,u);break;case"FileInput":i=buildFileInput(n,u);break;case"AadharcardText":i=buildAdhaarField(n,u);break;case"PanCardText":i=buildPanField(n,u);break;case"TabSection":i=buildTabSection(n,u);break;case"RunnerBoyProgressBar":i=RunnerBoyProgressbar(n,u);break;case"WrapperSection":i=buildWrapperSection(n,u);break;case"HorizontalLayout":i=buildHorizontalLayout(n,u);break;case"Text":i=buildTextField(n,u);break;case"TextArea":i=buildTextArea(n,u);break;case"Date":i=buildDate(n,u);break;case"Select":i=buildSelect(n,u);break;case"Radio":i=buildRadio(n,u);break;case"Button":i=buildButton(n,u);break;case"ButtonGroup":i=buildButtonGroup(n,u);break;case"Table":i=buildTable(n,u);break;case"Array":i=buildArray(n,u);break;case"Box":i=buildLabel(n,u);break;case"CheckBox":i=buildCheckbox(n,u);break;case"UploadFile":i=buildUploadFile(n,u);break;case"DownloadFile":i=buildDownloadFile(n,u);break;case"EmptyBox":i=buildEmptyBox(n,u);break;case"card":i=buildCard(n,u,l);break;case"MetricCard":i=buildMetricCard(n,u);break;case"InfoCard":i=buildInfoCard(n,u,l);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":i=buildStackbarGraph(n,u);break;case"LineGraph":i=buildLineGraph(n,u);break;case"PieGraph":i=buildPieGraph(n,u);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":i=buildHorizontalBarGraph(n,u);break;case"AreaGraph":i=buildAreaGraph(n,u);break;default:i=buildStackbarGraph(n,u);break}break;case"ProgressBar":i=buildProgressBar(n,u);break;case"SpeedoMeter":i=buildSpeedoMeter(n,u);break;case"ProgressBarCard":i=buildProgressBarCard(n,u);break;case"RankCard":i=buildRankCard(n,u);break;case"Rank":i=buildRollAndDice(n,u);break;case"Slider":i=buildSlider(n,u);break;case"Timer":i=buildTimer(n,u);break;case"ColumnGroup":i={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":i=buildMultiSelect(n,u);break;case"LeaderBoard":i=buildLeaderBoard(n);break;case"Thought":i=buildThoughtOfTheDay(n,u);break;case"Image":i=buildImage(n,u);break;case"Camera":i=buildCamera(n,u);break;default:exports.schema={type:"object",properties:{},required:[]},i=buildBasicUiSchema(n)}if(n!=null&&n.elements)if((n==null?void 0:n.type)==="LeaderBoard"){const f=[];n.elements.map(c=>{const h={accessorKey:c.name,type:c.type==="ColumnGroup"?"ColumnGroup":c.columnFormat,header:c.label||c.name,columnKey:c.columnKey};f.push({...h})}),i.elements=f}else if(n.type=="ColumnGroup"){const f={};n.sizeHolder&&n.sizeHolder.map((c,h)=>{f[c.keyName]=c.value}),i.elements=n.elements.map((c,h)=>{const x={accessorKey:c.name,type:c.type==="ColumnGroup"?"ColumnGroup":c.columnFormat,header:c.label||c.name,size:f[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,...x,...c.type==="ColumnGroup"?buildUiSchema(c,l):{}}:{...x}})}else if(n.type=="Table"){const f={};n.sizeHolder&&n.sizeHolder.map((v,F)=>{f[v.keyName]=v.value});const c=[],h=[],x=[];n.elements.filter((v,F)=>{const A={accessorKey:v.name,type:v.type==="ColumnGroup"?"ColumnGroup":v.columnFormat,header:v.label||v.name,size:f[v.name]||180,enableColumnFilter:v.enableFilter!=="No",columnFilterModeOptions:v.filteringOptions,enableSorting:v.enableSorting!=="No",columnKey:v.columnKey,dateFormat:v.dateFormat};if(v.type){if(v.elementType=="action"){const U=buildUiSchema(v,l);return h.push(U),!1}if(v.elementType=="tableHeader"){const U=buildUiSchema(v,l);return c.push({widget:U}),!1}const L={widget:v.type!="ColumnGroup"?buildUiSchema(v,l):void 0,...A,...v.type==="ColumnGroup"?buildUiSchema(v,l):{}};x.push(L)}else x.push({...A})}),i.elements=x,i.config.action=h,i.config.main.headerIcons.elements=c}else i.elements=n.elements.map((f,c)=>buildUiSchema(f,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 W(p,B+"return "+I).apply(i,c)});if(H.source=I,_i(H))throw H;return H}function pm(e){return K(e).toLowerCase()}function um(e){return K(e).toUpperCase()}function cm(e,t,o){if(e=K(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),c=vr(r,a)+1;return gt(r,p,c).join("")}function dm(e,t,o){if(e=K(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=K(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=K(e);var p=e.length;if(Dt(e)){var c=ze(e);p=c.length}if(o>=p)return e;var f=o-Pt(r);if(f<1)return r;var g=c?gt(c,0,f).join(""):e.slice(0,f);if(a===i)return g+r;if(c&&(f+=g.length-f),Ii(a)){if(e.slice(f).search(a)){var C,w=g;for(a.global||(a=Uo(a.source,K(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 F=g.lastIndexOf(a);F>-1&&(g=g.slice(0,F))}return g+r}function gm(e){return e=K(e),e&&Il.test(e)?e.replace(Oi,$s):e}var ym=zt(function(e,t,o){return e+(o?" ":"")+t.toUpperCase()}),Ei=ua("toUpperCase");function sl(e,t,o){return e=K(e),t=o?i:t,t===i?ks(e)?Vs(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 Be(t,function(o){o=Ke(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(Re(e,L))}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 Li(e){return Yr(typeof e=="function"?e:Re(e,L))}function wm(e){return Gr(Re(e,L))}function _m(e,t){return Wr(e,Re(t,L))}var Im=z(function(e,t){return function(o){return ln(o,e,t)}}),Fm=z(function(e,t){return function(o){return ln(e,o,t)}});function Bi(e,t,o){var r=pe(t),a=Kn(t,r);o==null&&!(te(t)&&(a.length||!r.length))&&(o=t,t=e,e=this,a=Kn(t,pe(t)));var p=!(te(o)&&"chain"in o)||!!o.chain,c=ot(e);return Be(a,function(f){var g=t[f];e[f]=g,c&&(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 Tm(){return ue._===this&&(ue._=Qs),this}function Di(){}function Em(e){return e=k(e),z(function(t){return Vr(t,e)})}var Am=pi(ee),Lm=pi(fr),Bm=pi(Ro);function ul(e){return yi(e)?Mo(Ke(e)):au(e)}function Dm(e){return function(t){return e==null?i:wt(e,t)}}var Pm=ma(),Rm=ma(!0);function Pi(){return[]}function Ri(){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=Ge,r=de(e,Ge);t=D(t),e-=Ge;for(var a=ko(r,t);++o<e;)t(o);return a}function Hm(e){return O(e)?ee(e,Ke):Ie(e)?[e]:he(La(K(e)))}function zm(e){var t=++Xs;return K(e)+t}var Um=jn(function(e,t){return e+t},0),Ym=ui("ceil"),$m=jn(function(e,t){return e/t},1),Gm=ui("floor");function Wm(e){return e&&e.length?Vn(e,ve,Jo):i}function Vm(e,t){return e&&e.length?Vn(e,D(t,2),Jo):i}function Km(e){return yr(e,ve)}function qm(e,t){return yr(e,D(t,2))}function Jm(e){return e&&e.length?Vn(e,ve,jo):i}function Xm(e,t){return e&&e.length?Vn(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=Rd,s.chain=ka,s.chunk=$u,s.compact=Gu,s.concat=Wu,s.cond=bm,s.conforms=xm,s.constant=Ai,s.countBy=jc,s.create=ff,s.curry=Ga,s.curryRight=Wa,s.debounce=Va,s.defaults=mf,s.defaultsDeep=gf,s.defer=wd,s.delay=_d,s.difference=Vu,s.differenceBy=Ku,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=Ra,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=Ff,s.invokeMap=pd,s.iteratee=Li,s.keyBy=ud,s.keys=pe,s.keysIn=xe,s.map=ao,s.mapKeys=Ef,s.mapValues=Af,s.matches=wm,s.matchesProperty=_m,s.memoize=so,s.merge=Lf,s.mergeWith=nl,s.method=Im,s.methodOf=Fm,s.mixin=Bi,s.negate=po,s.nthArg=Em,s.omit=Bf,s.omitBy=Df,s.once=Fd,s.orderBy=cd,s.over=Am,s.overArgs=Td,s.overEvery=Lm,s.overSome=Bm,s.partial=wi,s.partialRight=Ka,s.partition=dd,s.pick=Pf,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=Pm,s.rangeRight=Rm,s.rearg=Ed,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=Ld,s.tail=Ic,s.take=Fc,s.takeRight=Tc,s.takeRightWhile=Ec,s.takeWhile=Ac,s.tap=Gc,s.throttle=Bd,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=Lc,s.unionBy=Bc,s.unionWith=Dc,s.uniq=Pc,s.uniqBy=Rc,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=Pd,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,Bi(s,s),s.add=Um,s.attempt=pl,s.camelCase=Wf,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=Vf,s.eq=Ye,s.escape=Kf,s.escapeRegExp=qf,s.every=ed,s.find=nd,s.findIndex=Da,s.findKey=yf,s.findLast=od,s.findLastIndex=Pa,s.findLastKey=hf,s.floor=Gm,s.forEach=Ha,s.forEachRight=za,s.forIn=bf,s.forInRight=xf,s.forOwn=vf,s.forOwnRight=Sf,s.get=Fi,s.gt=zd,s.gte=Ud,s.has=_f,s.hasIn=Ti,s.head=Ma,s.identity=ve,s.includes=sd,s.indexOf=oc,s.inRange=$f,s.invoke=Tf,s.isArguments=Ft,s.isArray=O,s.isArrayBuffer=Yd,s.isArrayLike=be,s.isArrayLikeObject=ie,s.isBoolean=$d,s.isBuffer=yt,s.isDate=Gd,s.isElement=Wd,s.isEmpty=Vd,s.isEqual=Kd,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=Wm,s.maxBy=Vm,s.mean=Km,s.meanBy=qm,s.min=Jm,s.minBy=Xm,s.stubArray=Pi,s.stubFalse=Ri,s.stubObject=Mm,s.stubString=Nm,s.stubTrue=Om,s.multiply=Zm,s.nth=uc,s.noConflict=Tm,s.noop=Di,s.now=lo,s.pad=Qf,s.padEnd=jf,s.padStart=em,s.parseInt=tm,s.random=Gf,s.reduce=fd,s.reduceRight=md,s.repeat=nm,s.replace=om,s.result=Rf,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=K,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=Ei,s.each=Ha,s.eachRight=za,s.first=Ma,Bi(s,function(){var e={};return We(s,function(t,o){q.call(s.prototype,o)||(e[o]=t)}),e}(),{chain:!1}),s.VERSION=u,Be(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){s[e].placeholder=s}),Be(["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,Ge),type:e+(r.__dir__<0?"Right":"")}),r},$.prototype[e+"Right"]=function(o){return this.reverse()[e](o).reverse()}}),Be(["filter","map","takeWhile"],function(e,t){var o=t+1,r=o==Gt||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}}),Be(["head","last"],function(e,t){var o="take"+(t?"Right":"");$.prototype[e]=function(){return this[o](1).value()[0]}}),Be(["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(Ge)},We($.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 c=this.__wrapped__,f=r?[1]:arguments,g=c instanceof $,C=f[0],w=g||O(c),I=function(Y){var G=a.apply(s,pt([Y],f));return r&&F?G[0]:G};w&&o&&typeof C=="function"&&C.length!=1&&(g=w=!1);var F=this.__chain__,B=!!this.__actions__.length,P=p&&!F,H=g&&!B;if(!p&&w){c=H?c:new $(this);var R=e.apply(c,f);return R.__actions__.push({func:ro,args:[I],thisArg:i}),new Pe(R,F)}return P&&H?e.apply(this,f):(R=this.thru(I),P?r?R.value()[0]:R.value():R)})}),Be(["pop","push","shift","sort","splice","unshift"],function(e){var t=Bn[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(c){return t.apply(O(c)?c:[],a)})}}),We($.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=Wc,s.prototype.chain=Vc,s.prototype.commit=Kc,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},Rt=Ks();bt?((bt.exports=Rt)._=Rt,Lo._=Rt):ue._=Rt}).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:"ButtonGroup",const:"ButtonGroup"},{title:"Data Card",const:"card"},{title:"Check Box",const:"CheckBox"},{title:"Camera",const:"Camera"},{title:"Column Group",const:"ColumnGroup"},{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:"OTP_Input",const:"OTP_Input"},{title:"Pan Card Masked",const:"PanCardText"},{title:"Pop Up",const:"PopUp"},{title:"Pop Over",const:"PopOver"},{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:"Metric Card",const:"MetricCard"},{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:"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:"YYYY-MM-DDTHH:mm:ss.SSSZ",const:"YYYY-MM-DDTHH:mm:ss.SSSZ"},{title:"YYYY-MM-DDTHH:mm:ssZ",const:"YYYY-MM-DDTHH:mm:ssZ"},{title:"YYYY-MM-DDTHH:mm:ss",const:"YYYY-MM-DDTHH:mm:ss"},{title:"YYYY-MM-DD",const:"YYYY-MM-DD"},{title:"DD-MM-YYYY",const:"DD-MM-YYYY"},{title:"MM/DD/YYYY",const:"MM/DD/YYYY"},{title:"YYYY-MM-DD HH:mm:ss",const:"YYYY-MM-DD HH:mm:ss"},{title:"YYYY-MM-DD HH:mm:ss.SSS",const:"YYYY-MM-DD HH:mm:ss.SSS"},{title:"Milliseconds",const:"x"},{title:"Seconds",const:"X"}]},variant:{oneOf:[{title:"Outlined",const:"outlined"},{title:"Filled",const:"filled"},{title:"Standard",const:"standard"}]},positionVertical:{oneOf:[{title:"Top",const:"top"},{title:"Center",const:"center"},{title:"Bottom",const:"bottom"}]},positionHorizontal:{oneOf:[{title:"Left",const:"left"},{title:"Center",const:"center"},{title:"Right",const:"right"}]},contentVertical:{oneOf:[{title:"Top",const:"top"},{title:"Center",const:"center"},{title:"Bottom",const:"bottom"}]},contentHorizontal:{oneOf:[{title:"Left",const:"left"},{title:"Center",const:"center"},{title:"Right",const:"right"}]},toolTipPosition:{oneOf:[{title:"Top",const:"top"},{title:"Left",const:"left"},{title:"Right",const:"right"},{title:"Bottom",const:"bottom"}]},growthRate:{oneOf:[{title:"Positive",const:"positive"},{title:"Negative",const:"negative"}]},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"}]},xAxisFormatType:{type:"string",oneOf:[{title:"Date and Month",const:"Date and Month"},{title:"Month and Year",const:"Month and Year"}]},xAxisType:{type:"string",oneOf:[{title:"Date",const:"date"},{title:"String",const:"string"},{title:"Number",const:"number"}]},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:{key:{type:"string"},label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{key:{type:"string"},label:{type:"string"}}}},tabIcons:{type:"array",items:{type:"object",properties:{url:{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"},{title:"Area Graph",const:"AreaGraph"}]},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:"Calendar",const:"Calendar"},{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})]}),getArrayControlMultiField=(n,l,i,u,y)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{},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:u||"Labels for Tab"}}},{type:"Control",scope:`#/properties/${i}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:y||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty2",{xs:6,sm:6,md:4,lg:4})]}),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,u)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:u||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"OTP_Input":l.elements=[getInputField("seperator","Seperator"),getInputField("length","OTP Length"),getRadioInputField("masking","OTP Masking",["YES","NO"]),emptyBox$1("empty1",{xs:12,sm:6,md:4,lg:3})];break;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"PopOver":l.elements=[getSelectField("positionVertical","Attach To (Vertical)"),getSelectField("positionHorizontal","Attach To (Horizontal)"),getSelectField("contentVertical","Popover Start (Vertical)"),getSelectField("contentHorizontal","Popover Start (Horizontal)"),getInputField("width","Width"),getInputField("gap","Gap"),emptyBox$1("PopUpEmpty",{xs:6,sm:0,md:8,lg:6})];break;case"Text":l.elements=[getInputField("placeholder","Placeholder"),getRadioInputField("multiline","Multiline",["YES","NO"]),getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("Radio",{xs:6,sm:6,md:8,lg:9}),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"),getRadioInputField("isScoreAmount","Is Score an Amount Type",["YES","No"]),emptyBox$1("LeaderBoardEmpty1",{xs:6,sm:6,md:0,lg:3})];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"),getInputField("size","Size"),getRadioInputField("variant","Variant",["circular","horizontal"]),getArrayControl("pieArcColors","color","Color")];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"MetricCard":l.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("cardValue","Value"),getInputField("description","Description"),getSelectField("growthRate","Growth Rate"),getInputField("color","Card Color"),emptyBox$1("MetricEmpty1",{xs:6,sm:0,md:8,lg:6})];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"ButtonGroup":l.elements=[getRadioInputField("multiSelect","Enable multiSelect",["YES","No"]),getInputField("size","Size"),getSelectField("color","Color"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:8,lg:9})];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"),getInputField("subHeader","Sub Header"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getRadioInputField("disableLeftLabel","Disable Left Label",["YES","No"]),getInputField("bottomLabel","Bottom Label"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getRadioInputField("legendDirection","Legend Direction",["Row","Column"]),getInputField("yAxisValue","Y-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getSelectField("xAxisType","X-AxisType"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),getInputField("xAxisTickCount","X Axis TickCount"),getInputField("yAxisTickCount","Y Axis TickCount"),getSelectField("xAxisFormatType","X Axis Format Type"),emptyBox$1("GraphEmpty1",{xs:0,sm:0,md:4,lg:6}),getArrayControlMultiField("legendLabels","key","value","Key","Label"),getArrayControlMultiField("pieArcColors","key","value","Key","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"),getRadioInputField("defaultClosed","Default Closed",["YES","No"]),getInputField("iconUrl","Icon Url"),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"),getArrayControlMultiField("sectionLabels","label","icon","Label","Icon")];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"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("RadioEmpty1",{xs:6,sm:6,md:4,lg:3}),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"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("SelectEmpty",{xs:6,sm:6,md:8,lg:9})];break;case"MultipleSelect":l.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position")];break;case"Date":l.elements=[getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("DateEmpty1",{xs:6,sm:6,md:4,lg:3})];break;case"DateTime":l.elements=[getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("DateTimeEmpty1",{xs:6,sm:6,md:4,lg:3})];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"]),getInputField("description","Enter description"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),getInputField("chooseButtonLabel","ChooseButton Label"),getInputField("noFileAvailableMessage","No Found Message"),emptyBox$1("FileInputEmpty",{xs:6,sm:6,md:4,lg:3})];break;case"Camera":l.elements=[getSelectField("iconName","Icon Name"),getRadioInputField("multiUplaod","Multiple Uplaod",["YES","NO"]),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("variant","Variant"),emptyBox$1("ButtonEmpty1",{xs:6,sm:6,md:4,lg:4})]}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","Table"].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(u=>{i[u.key||"xs"]=u.value===null||u.value===void 0||u.value===""?5.5:+u.value}),i},flatObjectValueInArray=(n=[])=>{if(n.length<1)return;const l=Object.keys(n[0])[0];return n.map(u=>u[l])},createKeyValueMap=(n=[])=>n.reduce((l,i)=>(i.key&&(l[i.key]=i.value),l),{}),clearFromSessionStorage=()=>{sessionStorage.removeItem("pageFormdata")},validateAndShowErrors=n=>_.isEmpty(n.ctx.core.errors)?!1:(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Error on Page"}),!0),getNavigationHistory=(n,l)=>{if(l){let i=n.name;const u=l.split("."),y=[];return u.map((d,h)=>{if(h===0){y.push(d);return}y.push(`${y[h-1]}.${d}`)}),y.map(d=>{const h=_.get(n,d);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 u=getFormdataFromSessionStorage();i=_.set(u,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 d,h;(d=n.searchParams)==null||d.get("id");const u=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,u);const y=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const x=await i(n,l,y);navigateHandler(n,!0,"/PageMasterRecords")}catch(x){navigateHandler(n,!1,void 0,x.message)}else navigateHandler(n,!1)}const navigateHandler=(n,l,i,u)=>{l?(sessionStorage.removeItem("pageFormdata"),n.navigate(i||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:u||"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"],LeaderBoard:["Core","Components","Properties","Events","Style"],WrapperSection:["Core","Components","Properties","Style"],HorizontalLayout:["Core","Components","Properties","Style"],TabSection:["Core","Components","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Events","Style"],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"],ProgressBar:["Core","Properties","Events","Style"],RankCard:["Core","Properties","Events","Style"],MetricCard:["Core","Properties","Events","Style","Validation"],Slider:["Core","Components","Events","Style","Validation"],Timer:["Core","Events","Style"],Rank:["Core","Events","Style"],Button:["Core","Properties","Events","Style","Validation"],ButtonGroup:["Core","Components","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"],PopOver:["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"],Date:["Core","Properties","Events","Style","Validation"],DateTime:["Core","Properties","Events","Style","Validation"],Image:["Core","Properties","Style"],FileInput:["Core","Properties","Events","Style","Validation"],Camera:["Core","Properties","Events","Style","Validation"],OTP_Input:["Core","Properties","Events","Style","Validation"]};function refreshPage(n,l){var v,T;const i=_.cloneDeep(componentBasicUiSchema(l.theme.myTheme)),u=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},L=(v=sectionLabels[n])==null?void 0:v.map(U=>A[U]);i.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],i.elements[0].elements=L||[CoreSection,StyleSection,EventSection(l.theme.myTheme),ValidationSection]}const y=(T=l.searchParams)==null?void 0:T.get("path"),d=y.lastIndexOf("."),h=y.slice(0,d),x=_.get(u,h);((x==null?void 0:x.type)==="Table"||(x==null?void 0:x.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"}}},i.elements[0].elements[0].elements[11]={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:0,lg:6}}}),(x==null?void 0:x.type)==="LeaderBoard"&&(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"}}}),sessionStorage.getItem("copiedConfig")&&this.ElementPathSetter(i),l.setUiSchema(i)}var Component=(n,l,i,u)=>({setPage:async function(){const y=await this.getFormdata();n.setFormdata(y);const d=this.getSchema();n.setSchema(d),this.refreshPage(y==null?void 0:y.type,n)},refreshPage,getFormdata:function(){var d;const y=(d=n.searchParams)==null?void 0:d.get("path");return getFormdataFromSessionStorage(y)},getSchema:function(){var T,A,L;const y=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(y.properties.RemoveItemButton.disabled=!1);const d=JSON.parse(sessionStorage.getItem("pageFormdata")),h=(T=n.searchParams)==null?void 0:T.get("path"),x=(A=n.searchParams)==null?void 0:A.get("id");let v=[{label:(L=d.name)!=null?L:"NewPage",path:`/PageMaster${x?`?id=${x}`:""}`}];if(h){const U=h.split("."),ne=[];U.map((X,V)=>{if(V===0){ne.push(X);return}ne.push(`${ne[V-1]}.${X}`)}),ne.map(X=>{const V=_.get(d,X);v.push({label:(V==null?void 0:V.name)||(V==null?void 0:V.eventType)||"NewComponent",path:`/Component?path=${X}${x?`&id=${x}`:""}`})})}return y.properties.pageName.path=v,y},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,u,i),onChange:function(){var y,d,h,x;((y=n==null?void 0:n.formData)==null?void 0:y.type)!==((d=n==null?void 0:n.newData)==null?void 0:d.type)&&((h=n==null?void 0:n.newData)==null?void 0:h.type)!==void 0&&this.refreshPage((x=n==null?void 0:n.newData)==null?void 0:x.type,n)},editComponents:function(){var x,v,T;if(validateAndShowErrors(n))return;const y=l.path.split(".")[1],d=(x=n.searchParams)==null?void 0:x.get("path"),h=(v=n.searchParams)==null?void 0:v.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,d),d){const L=`${(T=n.searchParams)==null?void 0:T.get("path")}.elements[${y}]`;n.searchParams.set("path",L),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${y}]`}&id=${h}`)},deleteComponents:function(y=!0){var T;const d=(T=n.searchParams)==null?void 0:T.get("path"),h=sessionStorage.getItem("rowId");n.formData.elements.splice(h,1);const x=saveFormdataInSessionStorage(n.ctx.core.data,d),v=d?_.get(x,d):x;n.setFormdata(v),y&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(y=!0){var v;const d=(v=n.searchParams)==null?void 0:v.get("path"),h=sessionStorage.getItem("rowId");n.formData.events.splice(h,1);const x=saveFormdataInSessionStorage(n.ctx.core.data,d);n.setFormdata(_.get(x,d)),y&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var h;if(validateAndShowErrors(n))return;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 d=`${y}.elements[${n.formData.elements.length}]`;n.searchParams.set("path",d),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var v,T;if(validateAndShowErrors(n))return;const y=l.path.split(".")[1],d=(v=n.searchParams)==null?void 0:v.get("path"),h=(T=n.searchParams)==null?void 0:T.get("id");saveFormdataInSessionStorage(n.ctx.core.data,d);const x=`${d}.events[${y}]`;n.navigate(`/ComponentEvents?path=${x}&id=${h}`)},eventAddHandler:function(){var x,v;if(validateAndShowErrors(n))return;const y=(x=n.searchParams)==null?void 0:x.get("path"),d=(v=n.searchParams)==null?void 0:v.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=${d}`)},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,d=this.setPage.bind(this)){var v;const[h,x]=(v=l.path.split(".").pop())==null?void 0:v.split("_");h==="Copy"?this.CopyElement(y,x):this.PasteElement(d,x)},CopyElement:function(y=n,d){var U;const h=lodash.exports.cloneDeep(y.schema),x=lodash.exports.cloneDeep(y.uiSchema);h.properties.RemoveItemButton.disabled=!1;const v=l.path.split(".")[1],T=(U=n.searchParams)==null?void 0:U.get("path"),A=this.elementPathHandler(T,v,d),L=getFormdataFromSessionStorage(A);this.ElementPathSetter(x,L),sessionStorage.setItem("copiedConfig",JSON.stringify(L)),n.setNotify({SuccessMessage:`${d} Copied Successfully`,Success:!0}),n.setSchema(h),n.setUiSchema(x)},PasteElement:function(y,d){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 x=getFormdataFromSessionStorage(h),v=d==="Component"?x.elements.length:x.events.length,T=this.elementPathHandler(h,v,d),A=JSON.parse(sessionStorage.getItem("copiedConfig")),L={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};A.Handler&&d==="Component"?n.setNotify({FailMessage:L.Events,Fail:!0}):A.name&&d==="Events"?n.setNotify({FailMessage:L.Component,Fail:!0}):(saveFormdataInSessionStorage(A,T),y())},RemoveItemButton:function(y=n){const d=lodash.exports.cloneDeep(y.schema),h=lodash.exports.cloneDeep(y.uiSchema);d.properties.RemoveItemButton.disabled=!0,h.elements[2].elements[1].config.main.heading="No element copied",sessionStorage.removeItem("copiedConfig"),n.setSchema(d),n.setUiSchema(h)},elementPathHandler:function(y,d,h){return h==="Component"?y?`${y}.elements[${d}]`:`elements[${d}]`:y?`${y}.events[${d}]`:`events[${d}]`},ElementPathSetter:function(y,d){var x,v,T,A,L,U,ne,X,V,M,ae,Ee,Z,qe,Se,Je,Ae,at,Tt,mn,gn,yn,hn,Gt,bn,xn;const h=d||JSON.parse(sessionStorage.getItem("copiedConfig"));(U=(L=(A=(T=(v=(x=y==null?void 0:y.elements)==null?void 0:x[1])==null?void 0:v.elements)==null?void 0:T[0])==null?void 0:A.config)==null?void 0:L.main)!=null&&U.headerIcons?y.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`:(qe=(Z=(Ee=(ae=(M=(V=(X=(ne=y==null?void 0:y.elements)==null?void 0:ne[0])==null?void 0:X.elements)==null?void 0:V[1])==null?void 0:M.elements)==null?void 0:ae[0])==null?void 0:Ee.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=(Tt=(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:Tt.main)!=null&&mn.headerIcons?y.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Event: ${h.eventType}`:(xn=(bn=(Gt=(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:Gt.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:u,service:y}=n;return{setPage:async function(){const d=await this.getFormdata();l.setFormdata(d);const h=await this.getUiSchema(),x=await this.getSchema();l.setSchema(x),l.setUiSchema(h)},getFormdata:async function(){var v;const d=(v=l.searchParams)==null?void 0:v.get("id"),h=await n.pageConfigProvider(d),x=getFormdataFromSessionStorage();return x||(saveFormdataInSessionStorage(h),{...h,type:"page"})},getUiSchema:function(){const d=_.cloneDeep(PageMasterUiSchema(l.theme.myTheme));return sessionStorage.getItem("copiedConfig")&&Component(l,i,u,y).ElementPathSetter(d),d},getSchema:()=>{const d=_.cloneDeep(PageMasterSchema);return sessionStorage.getItem("copiedConfig")&&(d.properties.RemoveItemButton.disabled=!1),d},backHandler:()=>{sessionStorage.removeItem("pageFormdata"),l.navigate("/PageMasterRecords")},onAddClickHandler:function(){var x;if(validateAndShowErrors(l))return;const d=(x=l.searchParams)==null?void 0:x.get("id");Array.isArray(l.formData.elements)||(l.formData.elements=[]);const h=saveFormdataInSessionStorage(l.ctx.core.data);d?l.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}&id=${d}`):l.navigate(`/Component?path=${`elements[${h==null?void 0:h.elements.length}]`}`)},saveHandler:async()=>await saveHandler(l,y,u),Edit_Components:Component(l,i,u,y).editComponents,Delete_Components:async function(){await Component(l,i,u,y).deleteComponents(!1),l.updateDialog("popUpPageMasterComponent")},eventAddHandler:function(){var x;if(validateAndShowErrors(l))return;const d=(x=l.searchParams)==null?void 0:x.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=${d}`)},editEvent:function(){var v;if(validateAndShowErrors(l))return;const d=i.path.split(".")[1],h=(v=l.searchParams)==null?void 0:v.get("id");saveFormdataInSessionStorage(l.ctx.core.data);const x=`events[${d}]`;l.navigate(`/ComponentEvents?path=${x}&id=${h}`)},deleteEvent:function(){const d=sessionStorage.getItem("rowId");l.formData.events.splice(d,1);const h=saveFormdataInSessionStorage(l.ctx.core.data);l.setFormdata(h),l.updateDialog("popUpPageMasterEvent"),sessionStorage.removeItem("rowId")},deletePopUpComponent:function(){const d=i.path.split(".")[1];sessionStorage.setItem("rowId",d),l.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const d=i.path.split(".")[1];sessionStorage.setItem("rowId",d),l.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(l,i,u,y).copyPasteElement(l,this.setPage.bind(this))},RemoveItemButton:function(){Component(l,i,u,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,u,y)=>({setPage:async function(){const d=await this.getFormData();n.setFormdata(d);const h=await this.getSchema();console.log("SettingSchema>>",h),n.setSchema(h),this.refreshPage(d.Handler,n)},refreshPage:(d,h)=>{var ne,X,V;const x=_.cloneDeep(EventUiSchema(h.theme.myTheme)),v=_.cloneDeep(EventSchema);d&&(d==="custom"?(x.elements[0].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),x.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:{}}},x.elements[0].elements[0].elements[4]=getTextArea("eventCode","Write Custom Code",!1),v.required=["eventType","Handler","eventCode"]):d==="api"?(x.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),x.elements[0].elements[0].elements[3]=APISection,v.required=["eventType","Handler","method","path"]):d==="inBuiltFunction"?(x.elements[0].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),x.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:{}}},x.elements[0].elements[0].elements[4]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0),v.required=["eventType","Handler","inBuiltFunctionType"]):d==="refresh"&&(x.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),x.elements[0].elements[0].elements[3]=refreshSectionUiSchema,v.properties.refreshElements.required=["value"],v.properties.refreshElements.items.required=["value"],v.required=["eventType","Handler","refreshElements"])),y&&(v.properties.inBuiltFunctionType.oneOf=[...v.properties.inBuiltFunctionType.oneOf,...y]),sessionStorage.getItem("copiedConfig")&&(Component(h,l,i,u).ElementPathSetter(x),v.properties.RemoveItemButton.disabled=!1);const T=JSON.parse(sessionStorage.getItem("pageFormdata")),A=(ne=h.searchParams)==null?void 0:ne.get("path"),L=(X=h.searchParams)==null?void 0:X.get("id");let U=[{label:(V=T.name)!=null?V:"NewPage",path:`/PageMaster${L?`?id=${L}`:""}`}];if(A){const M=A.split("."),ae=[];M.map((Ee,Z)=>{if(Z===0){ae.push(Ee);return}ae.push(`${ae[Z-1]}.${Ee}`)}),ae.map(Ee=>{const Z=_.get(T,Ee);U.push({label:(Z==null?void 0:Z.name)||(Z==null?void 0:Z.eventType)||"NewComponent",path:Z!=null&&Z.eventType?`/ComponentEvents?path=${Ee}${L?`&id=${L}`:""}`:`/Component?path=${Ee}${L?`&id=${L}`:""}`})})}v.properties.pageName.path=U,h.setSchema(v),h.setUiSchema(x)},getFormData:Component(n,l,i,u).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{var A,L,U;const d=_.cloneDeep(EventSchema);sessionStorage.getItem("copiedConfig")&&(d.properties.RemoveItemButton.disabled=!1);const h=JSON.parse(sessionStorage.getItem("pageFormdata")),x=(A=n.searchParams)==null?void 0:A.get("path"),v=(L=n.searchParams)==null?void 0:L.get("id");let T=[{label:(U=h.name)!=null?U:"NewPage",path:`/PageMaster${v?`?id=${v}`:""}`}];if(x){const ne=x.split("."),X=[];ne.map((V,M)=>{if(M===0){X.push(V);return}X.push(`${X[M-1]}.${V}`)}),X.map(V=>{const M=_.get(h,V);T.push({label:(M==null?void 0:M.name)||(M==null?void 0:M.eventType)||"NewComponent",path:M!=null&&M.eventType?`/ComponentEvents?path=${V}${v?`&id=${v}`:""}`:`/Component?path=${V}${v?`&id=${v}`:""}`})})}return d.properties.pageName.path=_.cloneDeep(T),d},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,u,i),onChange:function(){var d,h,x;((d=n==null?void 0:n.formData)==null?void 0:d.Handler)!==((h=n==null?void 0:n.newData)==null?void 0:h.Handler)&&((x=n==null?void 0:n.newData)==null?void 0:x.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var x,v,T;if(validateAndShowErrors(n))return;const d=(x=n.searchParams)==null?void 0:x.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,d);const h=`${d}.events[${(T=(v=n.formData)==null?void 0:v.events)==null?void 0:T.length}]`;n.searchParams.set("path",h),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var v;if(validateAndShowErrors(n))return;const d=l.path.split(".")[1],h=(v=n.searchParams)==null?void 0:v.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const x=`${h}.events[${d}]`;n.searchParams.set("path",x),n.setSearchParams(n.searchParams),this.setPage()},deleteEvent:async function(){await Component(n,l,i,u).deleteEvent(!1),n.updateDialog("popUpEvent")},backHandler:function(){n.navigate(-1)},deletePopUpEvent:function(){const d=l.path.split(".")[1];sessionStorage.setItem("rowId",d),n.updateDialog("popUpEvent")},copyPasteElement:function(){Component(n,l,i,u).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,l,i,u).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 T;const i=window.atob(n),u=new Uint8Array(i.length);for(let A=0;A<i.length;A++)u[A]=i.charCodeAt(A);const y=(T=l.split(".").pop())==null?void 0:T.toLowerCase(),d={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([u],{type:d[y]||"application/octet-stream"}),x=URL.createObjectURL(h),v=document.createElement("a");v.href=x,v.download=l,v.click(),URL.revokeObjectURL(x)}const downloadFileFromUrl=(n,l)=>{let i=`${l.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((d,h)=>{i=i+`${h===0?"?":"&"}${d}=${n==null?void 0:n.params[d]}`});const u=document.createElement("a");u.href=i,document.body.appendChild(u),u.click(),u.parentNode.removeChild(u)},executeEvents=n=>{var y,d,h;let l=[],i=null;if(n.config.isSync!=="Yes")return shouldEventExecute(n).then(x=>{if(!x)throw new Error("onStart Event not allow to run Parent Events");return executeEventsHandler(n)}).then(x=>{var T;i=x,l=(T=n.config)==null?void 0:T.events.filter(A=>A.eventType==="Success")}).catch(x=>{var A,L;const v=(L=(A=n.config)==null?void 0:A.events)==null?void 0:L.filter(U=>U.eventType==="Fail");l=(v==null?void 0:v.length)>0?v:[]}).then(()=>{if((l==null?void 0:l.length)>0)return l.reduce((x,v)=>x.then(()=>executeEvents({...n,config:v,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(T=>T.eventType==="Success")}catch{const x=(h=(d=n.config)==null?void 0:d.events)==null?void 0:h.filter(T=>T.eventType==="Fail");l=(x==null?void 0:x.length)>0?x:[]}if((l==null?void 0:l.length)>0)for(const x of l)executeEvents({...n,config:x,parentEventOutput:i});return i};function executeEventsHandler(n){var l,i,u;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(u=n.store.functionParameters)==null?void 0:u.handleReset()}function getRefreshElements(n,l){var u;let i=[];return((u=n==null?void 0:n.refreshElements)==null?void 0:u.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 u=n.eventGroups.onLoad[i];return u?Promise.allSettled(u.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":"*"},u=buildApiPayload(n.config,l,i,n.store,n.dynamicData,n.userValue,n.service);return n.service[n.config.method](n.config.path,u.body,{headers:u.headers}).then(d=>d)}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,u,y){var d,h,x;i.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||u.setSchema(v=>{var T;return{...v,properties:{...v.properties,[l]:{...(T=v.properties)==null?void 0:T[l],oneOf:n.data}}}}):i.type==="MultipleSelect"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||u.setSchema(v=>{var T;return{...v,properties:{...v.properties,[l]:{...(T=v.properties)==null?void 0:T[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)||(u.newData={...u.newData,...n==null?void 0:n.data},Object.keys(n.data).forEach(v=>{y[v]=n.data[v]})):i.type==="Table"&&i.lazyLoading?n&&(n==null?void 0:n.data)&&(y[l]=(d=n.data)==null?void 0:d.data,y[`${l}_RowCount`]=(x=(h=n.data)==null?void 0:h.meta)==null?void 0:x.totalRowCount):n!=null&&n.data&&(y[l]=n.data)}const buildBodyFormat=(n,l,i,u)=>{let y={...i==null?void 0:i.payload};return n.map(d=>{var h,x,v,T,A;if(typeof(d==null?void 0:d.value)!="string")y[d.key]=d.value;else if((h=d==null?void 0:d.value)!=null&&h.startsWith("$userValue")){const L=d.value.substring(11);y[d.key]=_.get(i,L)}else if((x=d==null?void 0:d.value)!=null&&x.startsWith("$urlParams")){const L=d.value.substring(11),U=(v=u==null?void 0:u.searchParams)==null?void 0:v.get(L);y[d.key]=U}else if((T=d==null?void 0:d.value)!=null&&T.startsWith("$local")){const L=d.value.substring(7),U=JSON.parse(sessionStorage.getItem(L)||'""');y[d.key]=U}else if((A=d==null?void 0:d.value)!=null&&A.startsWith("$")){const L=d.value.substring(1);y[d.key]=_.get(l,L)}else(d==null?void 0:d.value)==="*"&&(d==null?void 0:d.key)==="*"?y={...y,...l}:(d==null?void 0:d.value)==="*"?y[d.key]=l:y[d.key]=d.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,u,y;const l=(u=(i=n.config)==null?void 0:i.events)==null?void 0:u.filter(d=>d.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(d=>d):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(u=>{var d;i.type&&(compType=i.type),eventGroups[u.eventType]||(eventGroups[u.eventType]={}),eventGroups[u.eventType][i.name]||(eventGroups[u.eventType][i.name]=[]);const y=(d=u==null?void 0:u.events)==null?void 0:d.find(h=>h.eventType==="Success");!y&&u.eventType==="onLoad"&&(u.events||(u.events=[]),u.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!y&&(u.eventType==="onBack"||u.eventType==="onNext"||u.eventType==="onReset")&&(u.events||(u.events=[]),u.events.push({Handler:`${u.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),eventGroups[u.eventType][i.name].push({...u,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 x,v,T;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 u=pageData==null?void 0:pageData.config,y=pageData==null?void 0:pageData.uiSchema,d=new CustomEvent("pageNameChanged",{detail:{pageName:u.label,hasBackIcon:u.hasBackIcon!=="NO"}});window.dispatchEvent(d),(v=(x=n==null?void 0:n.store)==null?void 0:x.theme)==null||v.myTheme;const h=(T=pageData==null?void 0:pageData.schema)!=null?T:{type:"object",properties:{}};eventGroups=extractEvents(u),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(L=>({...L,...l})),y.elements.push(notifyUiSchema),n.store.setUiSchema(y)})},onCellRenderer:u=>{var d,h,x,v,T;const y=_.cloneDeep(eventGroups);if(y.onCellRenderer){let A={};const L=((d=n.dynamicData)==null?void 0:d.tableButtonPath)||((x=(h=n==null?void 0:n.dynamicData)==null?void 0:h.path)==null?void 0:x.split(".")[0]);if((v=y==null?void 0:y.onCellRenderer)!=null&&v[L]){for(const U of(T=y==null?void 0:y.onCellRenderer)==null?void 0:T[L])i.store.functionParameters=u,A=executeEvents({...i,config:U,componentName:L});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(u){const y=[{key:"direction",value:u.rowMovement.direction},{key:"movedRowId",value:u.rowMovement.movedRowId},{key:"targetRowId",value:u.rowMovement.targetRowId||[]}];await this.callExecuteEvents({path:u==null?void 0:u.path},y,"onRowMovement");const d=await this.callExecuteEvents({path:u==null?void 0:u.path},y,"onLoad");return d==null?void 0:d.data},onPaginationChange:async function(u){var h,x;const y=[{key:"size",value:u.pagination.pageSize},{key:"pageIndex",value:u.pagination.pageIndex},{key:"sorting",value:u.sorting||[]},{key:"filters",value:u.tableColumnConfig||[]},{key:"globalFilter",value:(h=u.globalFilter)!=null?h:""},{key:"expandedRowIds",value:(x=u.expandedRowIds)!=null?x:[]}],d=await this.callExecuteEvents(u,y,"onLoad");return d==null?void 0:d.data},getSelectOptions:async function(u){if(u.serachValue!==""&&u.serachValue!==void 0){const y=[{key:"searchValue",value:u.serachValue},{key:"currentValue",value:u.currentValue}],d=await this.callExecuteEvents(u,y,"onLoad");return d==null?void 0:d.data}},onChange:function(){if(!eventGroups.onChange)return;const y=Object.keys(eventGroups.onChange).flatMap(d=>{var h,x;return((h=n.store)==null?void 0:h.formData[d])===n.store.newData[d]||((x=n.store)==null?void 0:x.newData[d])===void 0?[]:eventGroups.onChange[d].map(v=>Promise.resolve(executeEvents({...i,config:v,componentName:d,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(T=>({...T,...l}))}))});Promise.allSettled(y)},callExecuteEvents:async function(u,y,d){var v,T;let h;const x=_.cloneDeep(eventGroups);for(const A of(v=x==null?void 0:x[d])==null?void 0:v[u.path]){A.body?A.body=[...A.body,...y]:A.body=y;const L=(T=A==null?void 0:A.events)==null?void 0:T.filter(U=>U.Handler!=="mergeFormdata");A.events=L!=null?L:[],h=await executeEvents({...i,config:A,componentName:u.path})}return h},onBack:async function(u){var d,h;const y=((d=n.dynamicData)==null?void 0:d.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onBack",u),((h=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:h[y])===void 0&&(u==null||u.handleBack())},onNext:async function(u){var d,h;const y=((d=n.dynamicData)==null?void 0:d.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onNext",u),((h=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:h[y])===void 0&&(u==null||u.handleNext())},onReset:async function(u){var d,h;const y=((d=n.dynamicData)==null?void 0:d.tableButtonPath)||n.dynamicData.path.split(".")[0];this.callHandler("onReset",u),((h=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:h[y])===void 0&&(u==null||u.handleReset())},callHandler:function(u,y){var x,v;const d=((x=n.dynamicData)==null?void 0:x.tableButtonPath)||n.dynamicData.path.split(".").pop();if(!((v=eventGroups==null?void 0:eventGroups[u])!=null&&v[d]))return;const h=eventGroups[u][d].map(T=>(i.store.functionParameters=y,Promise.resolve(executeEvents({...i,config:T,componentName:d,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((u,y)=>u.type?{...{widget:buildUiSchema(u),accessorKey:u.name,header:u.label||u.name}}:{accessorKey:u.name,header:u.label||u.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.isScoreAmount&&(l.config.main.isScoreAmount=n.isScoreAmount==="YES"),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.variant&&(i.config.main.variant=n.variant),n.pieArcColors&&(i.config.main.colorRange=flatObjectValueInArray(n.pieArcColors)),n.size&&(i.config.main.size=Number(n.size)),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:{}}}}},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:{}}}}},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:{}}}}},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:{}}}}},AreaBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{type:"AreaGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}}}}},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=createKeyValueMap(n.legendLabels)),n.legendDirection&&(i.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.pieArcColors&&(i.config.style.colorMap=createKeyValueMap(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),n.disableLeftLabel&&(i.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),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 u=JSON.parse(n.style);u!=null&&u.style&&(i.config.style={...i.config.style,...u.style}),u!=null&&u.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...u.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"),n.legendDirection&&(i.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),i.scope=l,i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(i.config.style.colorMap=createKeyValueMap(n.pieArcColors)),i},buildStackbarGraph=(n,l)=>{var u;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.legendDirection&&(i.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),i.config.main.type=(u=n==null?void 0:n.graphType)!=null?u:"BarGraph",i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.pieArcColors&&(i.config.style.colorMap=createKeyValueMap(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),n.disableLeftLabel&&(i.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),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(u=>u.label),i.config.main.tabIcons=n.sectionLabels.map(u=>u.icon)),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",i.config.main.defaultClosed=n.defaultClosed==="YES",i.config.main.icon=n.iconUrl,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(u=>u.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)),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),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},style:{}}};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)),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),n.style&&(i.config.style=JSON.parse(n.style)),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(u=>u.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),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),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),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),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),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),i};function Card(n){return{type:"WrapperLayout",config:{main:{},style:{wrapperStyle:{position:"relative",top:"50%",transform:"translateY(-50%)",marginBottom:0,borderRadius:"12px",fontFamily:"poppins"},componentsBoxStyle:{boxShadow:"0 0 6px 1px rgba(149, 147, 147, 0.25)",flexDirection:"column",overflow:"hidden",flexWrap:"nowrap",width:"100% !important",background:"transparent",borderRadius:"12px",padding:"20px 20px 20px 14px",height:"100%",minHeight:"100px",position:"relative",marginLeft:"0px","&: hover":{background:`${n.palette.primary.main}`,color:`${n.palette.primary.contrastText}`}}},layout:{xs:12,sm:12,md:3,lg:3}},elements:[{type:"Control",scope:"#/properties/initilCardScope",config:{main:{url:"https://www.svgrepo.com/show/500606/loading.svg"},style:{containerStyle:{position:"absolute",color:"inherit",top:"4px",right:"4px",display:"flex",justifyContent:"flex-end",alignItems:"flex-start"},imageStyle:{color:"inherit",width:"32px",height:"32px",padding:"0px",margin:"0px"}}},options:{widget:"Image"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"Total Earnings"},style:{color:"inherit",fontSize:"16px",fontWeight:300,fontFamily:"Poppins",justifyContent:"flex-start",background:"inherit",position:"absolute",top:"8px",left:"12px",display:"flex",maxWidth:"200px",whiteSpace:"nowrap",overflowX:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"5000.00"},style:{color:"inherit",display:"flex",fontSize:{xs:"22px",md:"40px"},fontWeight:600,background:"inherit",justifyContent:"flex-start",width:"100%",margin:"0px",marginBottom:"4px",marginTop:"8px",lineHeight:"1",maxWidth:"300px",whiteSpace:"nowrap",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/initilCardScope",config:{main:{heading:"Increased from last month"},style:{color:"inherit",fontSize:"12px",fontWeight:"400",justifyContent:"flex-start",background:"inherit",margin:"0px",paddingLeft:"2px",marginBottom:"8px",maxWidth:"200px",whiteSpace:"nowrap",overflowX:"auto",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},options:{widget:"Box"}}]}}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].scope=`#/properties/${config.name}/properties/url`,card.elements[1].scope=`#/properties/${config.name}/properties/label`,card.elements[2].scope=`#/properties/${config.name}/properties/value`,card.elements[3].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[1].config.main.heading=config.label),config.url&&(card.elements[0].config.main.url=config.url),config.description&&(card.elements[3].config.main.heading=config.description),card};var MetricCard={type:"Control",scope:"#/properties/metricpath",options:{widget:"MetricCard"},config:{layout:{xs:12,sm:12,md:3,lg:3},main:{}}};const buildMetricCard=(n,l,i)=>{const u=_.cloneDeep(MetricCard);return u.scope=l,n.style&&(u.config.style=JSON.parse(n.style)),n.layout&&(u.config.layout=createLayoutFormat(n.layout)),n.label&&(u.config.main.label=n.label),n.url&&(u.config.main.url=n.url),n.description&&(u.config.main.description=n.description),n.cardValue&&(u.config.main.cardValue=n.cardValue),n.growthRate&&(u.config.main.growthRate=n.growthRate),n.color&&(u.config.main.color=n.color),u};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),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),n.style&&(i.config.style=JSON.parse(n.style)),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),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),n.style&&(i.config.style=JSON.parse(n.style)),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:[]},style:{}}};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"),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),n.style&&(i.config.style=JSON.parse(n.style)),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.disableLeftLabel&&(i.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(i.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.pieArcColors&&(i.config.style.colorMap=createKeyValueMap(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(u=>u.label||u.Options)),n.style&&(i.config.style=JSON.parse(n.style)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),n.toolTip&&(i.config.main.toolTip=n.toolTip),n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),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 i.scope=l,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)),i.config.main.variant=n.variant,i.config.main.disableUpload=n.disableUpload==="YES",i.config.main.disableDownload=n.disableDownload==="YES",i.config.main.disableDelete=n.disableDelete==="YES",i.config.main.description=n.description,i.config.main.toolTip=n.toolTip,i.config.main.chooseButtonLabel=n.chooseButtonLabel,i.config.main.noFileAvailableMessage=n.noFileAvailableMessage,n.toolTipPosition&&(i.config.main.toolTipPosition=n.toolTipPosition),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((u,y)=>({label:u.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},buildAreaGraph=(n,l)=>{const i=_.cloneDeep(AreaBarGraph);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,i.config.main.subHeader=n.subHeader,n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.legendDirection&&(i.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.height&&(i.config.style.containerStyle.height=n.height),n.pieArcColors&&(i.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisFormatType&&(i.config.main.xAxisFormatType=n.xAxisFormatType),n.xAxisTickCount&&(i.config.main.xAxisTickCount=n.xAxisTickCount),n.yAxisTickCount&&(i.config.main.yAxisTickCount=n.yAxisTickCount),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.xAxisType&&(i.config.main.xAxisType=n.xAxisType),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(i.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),i},cameraUiSchema={type:"Control",scope:"#/properties/camera",options:{widget:"Camera"},config:{main:{label:"Upload Photo",multiUplaod:!1,onUpload:"onFileUpload"}}},buildCamera=(n,l)=>{const i=_.cloneDeep(cameraUiSchema);return i.scope=l,n.iconName&&(i.config.main.startIcon=n.iconName),n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.tooltipMessage&&(i.config.main.tooltipMessage=n.tooltipMessage),i.config.main.multiUplaod=n.multiUplaod==="YES",n.style&&(i.config.style=JSON.parse(n.style)),n.size&&(i.config.main.size=n.size),n.variant&&(i.config.main.variant=n.variant),n.color&&(i.config.main.color=n.color),n.label&&(i.config.main.name=n.label),i};var ButtonGroup={type:"Control",scope:"#/properties/buttonGroup",options:{widget:"ButtonGroup"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{variant:"contained",styleDefault:!1,size:"small"},style:{}}};const buildButtonGroup=(n,l)=>{const i=_.cloneDeep(ButtonGroup);return n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),i.scope=l,n.multiSelect&&(i.config.main.multiSelect=n.multiSelect==="YES"),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),i},PopOver={type:"Control",scope:"#/properties/text",options:{widget:"Popover"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopOver"},style:{}}},buildPopOver=(n,l)=>{const i=_.cloneDeep(PopOver);return i.scope=l,i.config.main.positionVertical=n.positionVertical,i.config.main.positionHorizontal=n.positionHorizontal,i.config.main.contentVertical=n.contentVertical,i.config.main.contentHorizontal=n.contentHorizontal,i.config.main.width=n.width,i.config.main.gap=n.gap,n.layout&&(i.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(i.config.style=JSON.parse(n.style)),i},OTPSchema={type:"Control",scope:"#/properties/OTPInput",options:{widget:"OTPInput"},config:{layout:{xs:12,sm:12,md:3,lg:3},main:{seperator:"",length:4,type:"number",masking:!0}}},buildOTP_Input=(n,l)=>{const i=_.cloneDeep(OTPSchema);return i.scope=l,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),n.toolTip&&(i.config.main.toolTip=n.toolTip),i.config.main.masking=n.masking==="YES",i.config.main.type=n.OTP_Format,i.config.main.seperator=n.seperator,i.config.main.length=+n.length,i};exports.schema={type:"object",properties:{},required:[]};function buildSchemaFromConfig(n,l){var u,y,d,h,x,v,T,A,L,U,ne,X,V;if(n.elements)if(n.type==="Array"){(u=l.properties)!=null||(l.properties={}),(h=(y=l.properties)[d=n.name])!=null||(y[d]={type:"array",items:{type:"object",properties:{},required:[]}});const M=l.properties[n.name].items;(x=n.elements)==null||x.forEach(ae=>buildSchemaFromConfig(ae,M));return}else{(v=n.elements)==null||v.forEach(M=>buildSchemaFromConfig(M,l));return}(T=l.properties)!=null||(l.properties={}),(U=(A=l.properties)[L=n.name])!=null||(A[L]={});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"&&((V=n.value)==null?void 0:V.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 u=`#/properties/${n.name}`;switch(n.type){case"OTP_Input":i=buildOTP_Input(n,u);break;case"TreeMap":i=buildTreeMap(n,u);break;case"DateTime":i=buildDateTime(n,u);break;case"InputSlider":i=buildInputSlider(n,u);break;case"DataGrid":i=buildDataGrid(n,u);break;case"Stepper":i=buildStepper(n,u);break;case"PopUp":i=buildPopUp(n,u);break;case"PopOver":i=buildPopOver(n,u);break;case"FileInput":i=buildFileInput(n,u);break;case"AadharcardText":i=buildAdhaarField(n,u);break;case"PanCardText":i=buildPanField(n,u);break;case"TabSection":i=buildTabSection(n,u);break;case"RunnerBoyProgressBar":i=RunnerBoyProgressbar(n,u);break;case"WrapperSection":i=buildWrapperSection(n,u);break;case"HorizontalLayout":i=buildHorizontalLayout(n,u);break;case"Text":i=buildTextField(n,u);break;case"TextArea":i=buildTextArea(n,u);break;case"Date":i=buildDate(n,u);break;case"Select":i=buildSelect(n,u);break;case"Radio":i=buildRadio(n,u);break;case"Button":i=buildButton(n,u);break;case"ButtonGroup":i=buildButtonGroup(n,u);break;case"Table":i=buildTable(n,u);break;case"Array":i=buildArray(n,u);break;case"Box":i=buildLabel(n,u);break;case"CheckBox":i=buildCheckbox(n,u);break;case"UploadFile":i=buildUploadFile(n,u);break;case"DownloadFile":i=buildDownloadFile(n,u);break;case"EmptyBox":i=buildEmptyBox(n,u);break;case"card":i=buildCard(n,u,l);break;case"MetricCard":i=buildMetricCard(n,u);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":i=buildStackbarGraph(n,u);break;case"LineGraph":i=buildLineGraph(n,u);break;case"PieGraph":i=buildPieGraph(n,u);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":i=buildHorizontalBarGraph(n,u);break;case"AreaGraph":i=buildAreaGraph(n,u);break;default:i=buildStackbarGraph(n,u);break}break;case"ProgressBar":i=buildProgressBar(n,u);break;case"SpeedoMeter":i=buildSpeedoMeter(n,u);break;case"ProgressBarCard":i=buildProgressBarCard(n,u);break;case"RankCard":i=buildRankCard(n,u);break;case"Rank":i=buildRollAndDice(n,u);break;case"Slider":i=buildSlider(n,u);break;case"Timer":i=buildTimer(n,u);break;case"ColumnGroup":i={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":i=buildMultiSelect(n,u);break;case"LeaderBoard":i=buildLeaderBoard(n);break;case"Thought":i=buildThoughtOfTheDay(n,u);break;case"Image":i=buildImage(n,u);break;case"Camera":i=buildCamera(n,u);break;default:exports.schema={type:"object",properties:{},required:[]},i=buildBasicUiSchema(n)}if(n!=null&&n.elements)if((n==null?void 0:n.type)==="LeaderBoard"){const y=[];n.elements.map(d=>{const h={accessorKey:d.name,type:d.type==="ColumnGroup"?"ColumnGroup":d.columnFormat,header:d.label||d.name,columnKey:d.columnKey};y.push({...h})}),i.elements=y}else if(n.type=="ColumnGroup"){const y={};n.sizeHolder&&n.sizeHolder.map((d,h)=>{y[d.keyName]=d.value}),i.elements=n.elements.map((d,h)=>{const x={accessorKey:d.name,type:d.type==="ColumnGroup"?"ColumnGroup":d.columnFormat,header:d.label||d.name,size:y[d.name]||180,enableColumnFilter:d.enableFilter!=="No",columnFilterModeOptions:d.filteringOptions,enableSorting:d.enableSorting!=="No",columnKey:d.columnKey,dateFormat:d.dateFormat};return d.type?{widget:d.type!="ColumnGroup"?buildUiSchema(d,l):void 0,...x,...d.type==="ColumnGroup"?buildUiSchema(d,l):{}}:{...x}})}else if(n.type=="Table"){const y={};n.sizeHolder&&n.sizeHolder.map((v,T)=>{y[v.keyName]=v.value});const d=[],h=[],x=[];n.elements.filter((v,T)=>{const A={accessorKey:v.name,type:v.type==="ColumnGroup"?"ColumnGroup":v.columnFormat,header:v.label||v.name,size:y[v.name]||180,enableColumnFilter:v.enableFilter!=="No",columnFilterModeOptions:v.filteringOptions,enableSorting:v.enableSorting!=="No",columnKey:v.columnKey,dateFormat:v.dateFormat};if(v.type){if(v.elementType=="action"){const U=buildUiSchema(v,l);return h.push(U),!1}if(v.elementType=="tableHeader"){const U=buildUiSchema(v,l);return d.push({widget:U}),!1}const L={widget:v.type!="ColumnGroup"?buildUiSchema(v,l):void 0,...A,...v.type==="ColumnGroup"?buildUiSchema(v,l):{}};x.push(L)}else x.push({...A})}),i.elements=x,i.config.action=h,i.config.main.headerIcons.elements=d}else i.elements=n.elements.map((y,d)=>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