impaktapps-ui-builder 1.0.239 → 1.0.241

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,9 +5,9 @@
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 o,u="4.17.21",g=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,K=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]",Kt="[object Date]",hl="[object DOMException]",Cn="[object Error]",wn="[object Function]",Mi="[object GeneratorFunction]",ke="[object Map]",Vt="[object Number]",bl="[object Null]",Xe="[object Object]",Ni="[object Promise]",xl="[object Proxy]",qt="[object RegExp]",He="[object Set]",Jt="[object String]",_n="[object Symbol]",vl="[object Undefined]",Xt="[object WeakMap]",Sl="[object WeakSet]",Zt="[object ArrayBuffer]",At="[object DataView]",mo="[object Float32Array]",go="[object Float64Array]",yo="[object Int8Array]",ho="[object Int16Array]",bo="[object Int32Array]",xo="[object Uint8Array]",vo="[object Uint8ClampedArray]",So="[object Uint16Array]",Co="[object Uint32Array]",Cl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,_l=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Oi=/&(?:amp|lt|gt|quot|#39);/g,ki=/[&<>"']/g,Il=RegExp(Oi.source),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*)$/,Kl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,Vl=/['\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",Ki=Zl+Ql+jl+es,Io="['\u2019]",ts="["+Fn+"]",Vi="["+Ki+"]",Tn="["+Ui+"]",qi="\\d+",ns="["+Yi+"]",Ji="["+$i+"]",Xi="[^"+Fn+Ki+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+"(?="+[Vi,Lt,"$"].join("|")+")",is+"+"+tr+"(?="+[Vi,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[Kt]=j[Cn]=j[wn]=j[ke]=j[Vt]=j[Xe]=j[qt]=j[He]=j[Jt]=j[Xt]=!1;var Q={};Q[Et]=Q[Sn]=Q[Zt]=Q[At]=Q[Wt]=Q[Kt]=Q[mo]=Q[go]=Q[yo]=Q[ho]=Q[bo]=Q[ke]=Q[Vt]=Q[Xe]=Q[qt]=Q[He]=Q[Jt]=Q[_n]=Q[xo]=Q[vo]=Q[So]=Q[Co]=!0,Q[Cn]=Q[wn]=Q[Xt]=!1;var hs={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},bs={"&":"&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?o:S[m]}}function No(m){return function(S){return m==null?o: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!==o&&(b=b===o?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?o: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 Ks(m){return m.match(ds)||[]}var Vs=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:o,ct=S.Symbol,Nn=S.Uint8Array,_r=Mn?Mn.allocUnsafe:o,On=Sr(J.getPrototypeOf,J),Ir=J.create,Fr=Mt.propertyIsEnumerable,kn=Bn.splice,Tr=ct?ct.isConcatSpreadable:o,jt=ct?ct.iterator:o,xt=ct?ct.toStringTag:o,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:o,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:o,on=$n?$n.valueOf:o,Lr=$n?$n.toString:o;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 i=new e;return e.prototype=o,i}}();function Gn(){}function Pe(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}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__,i=O(e),r=t<0,a=i?e.length:0,p=Eu(0,a,this.__views__),c=p.start,f=p.end,y=f-c,C=r?f:c-1,w=this.__iteratees__,I=w.length,F=0,B=de(y,this.__takeCount__);if(!i||!r&&a==y&&B==y)return ea(e,this.__actions__);var P=[];e:for(;y--&&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,i=e==null?0:e.length;for(this.clear();++t<i;){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 i=t[e];return i===v?o:i}return q.call(t,e)?t[e]:o}function vp(e){var t=this.__data__;return nn?t[e]!==o:q.call(t,e)}function Sp(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=nn&&t===o?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,i=e==null?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Cp(){this.__data__=[],this.size=0}function wp(e){var t=this.__data__,i=Wn(t,e);if(i<0)return!1;var r=t.length-1;return i==r?t.pop():kn.call(t,i,1),--this.size,!0}function _p(e){var t=this.__data__,i=Wn(t,e);return i<0?o:t[i][1]}function Ip(e){return Wn(this.__data__,e)>-1}function Fp(e,t){var i=this.__data__,r=Wn(i,e);return r<0?(++this.size,i.push([e,t])):i[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,i=e==null?0:e.length;for(this.clear();++t<i;){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 i=oo(this,e),r=i.size;return i.set(e,t),this.size+=i.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,i=e==null?0:e.length;for(this.__data__=new Qe;++t<i;)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__,i=t.delete(e);return this.size=t.size,i}function Np(e){return this.__data__.get(e)}function Op(e){return this.__data__.has(e)}function kp(e,t){var i=this.__data__;if(i instanceof Ze){var r=i.__data__;if(!en||r.length<g-1)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new Qe(r)}return i.set(e,t),this.size=i.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 i=O(e),r=!i&&Ft(e),a=!i&&!r&&yt(e),p=!i&&!r&&!a&&Yt(e),c=i||r||a||p,f=c?ko(e.length,qs):[],y=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,y)))&&f.push(C);return f}function Dr(e){var t=e.length;return t?e[ti(0,t-1)]:o}function Hp(e,t){return io(he(e),Ct(t,0,e.length))}function zp(e){return io(he(e))}function Wo(e,t,i){(i!==o&&!Ye(e[t],i)||i===o&&!(t in e))&&je(e,t,i)}function rn(e,t,i){var r=e[t];(!(q.call(e,t)&&Ye(r,i))||i===o&&!(t in e))&&je(e,t,i)}function Wn(e,t){for(var i=e.length;i--;)if(Ye(e[i][0],t))return i;return-1}function Up(e,t,i,r){return dt(e,function(a,p,c){t(r,a,i(a),c)}),r}function Pr(e,t){return e&&Ke(t,pe(t),e)}function Yp(e,t){return e&&Ke(t,xe(t),e)}function je(e,t,i){t=="__proto__"&&Hn?Hn(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function Ko(e,t){for(var i=-1,r=t.length,a=b(r),p=e==null;++i<r;)a[i]=p?o:Fi(e,t[i]);return a}function Ct(e,t,i){return e===e&&(i!==o&&(e=e<=i?e:i),t!==o&&(e=e>=t?e:t)),e}function Re(e,t,i,r,a,p){var c,f=t&L,y=t&U,C=t&ne;if(i&&(c=a?i(e,r,a,p):i(e)),c!==o)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=y||F?{}:Ca(e),!f)return y?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,i,R,e,p))}):Ja(e)&&e.forEach(function(R,Y){c.set(Y,Re(R,t,i,Y,e,p))});var P=C?y?di:ci:y?xe:pe,H=w?o:P(e);return Be(H||e,function(R,Y){H&&(Y=R,R=e[Y]),rn(c,Y,Re(R,t,i,Y,e,p))}),c}function $p(e){var t=pe(e);return function(i){return Rr(i,e,t)}}function Rr(e,t,i){var r=i.length;if(e==null)return!r;for(e=J(e);r--;){var a=i[r],p=t[a],c=e[a];if(c===o&&!(a in e)||!p(c))return!1}return!0}function Mr(e,t,i){if(typeof e!="function")throw new De(h);return dn(function(){e.apply(o,i)},t)}function an(e,t,i,r){var a=-1,p=En,c=!0,f=e.length,y=[],C=t.length;if(!f)return y;i&&(t=ee(t,we(i))),r?(p=Do,c=!1):t.length>=g&&(p=Qt,c=!1,t=new St(t));e:for(;++a<f;){var w=e[a],I=i==null?w:i(w);if(w=r||w!==0?w:0,c&&I===I){for(var F=C;F--;)if(t[F]===I)continue e;y.push(w)}else p(t,I,r)||y.push(w)}return y}var dt=sa(We),Nr=sa(qo,!0);function Gp(e,t){var i=!0;return dt(e,function(r,a,p){return i=!!t(r,a,p),i}),i}function Kn(e,t,i){for(var r=-1,a=e.length;++r<a;){var p=e[r],c=t(p);if(c!=null&&(f===o?c===c&&!Ie(c):i(c,f)))var f=c,y=p}return y}function Wp(e,t,i,r){var a=e.length;for(i=k(i),i<0&&(i=-i>a?0:a+i),r=r===o||r>a?a:k(r),r<0&&(r+=a),r=i>r?0:ja(r);i<r;)e[i++]=t;return e}function Or(e,t){var i=[];return dt(e,function(r,a,p){t(r,a,p)&&i.push(r)}),i}function ce(e,t,i,r,a){var p=-1,c=e.length;for(i||(i=Pu),a||(a=[]);++p<c;){var f=e[p];t>0&&i(f)?t>1?ce(f,t-1,i,r,a):pt(a,f):r||(a[a.length]=f)}return a}var Vo=pa(),kr=pa(!0);function We(e,t){return e&&Vo(e,t,pe)}function qo(e,t){return e&&kr(e,t,pe)}function Vn(e,t){return st(t,function(i){return ot(e[i])})}function wt(e,t){t=mt(t,e);for(var i=0,r=t.length;e!=null&&i<r;)e=e[Ve(t[i++])];return i&&i==r?e:o}function Hr(e,t,i){var r=t(e);return O(e)?r:pt(r,i(e))}function me(e){return e==null?e===o?vl:bl:xt&&xt in J(e)?Tu(e):zu(e)}function Jo(e,t){return e>t}function Kp(e,t){return e!=null&&q.call(e,t)}function Vp(e,t){return e!=null&&t in J(e)}function qp(e,t,i){return e>=de(t,i)&&e<se(t,i)}function Xo(e,t,i){for(var r=i?Do:En,a=e[0].length,p=e.length,c=p,f=b(p),y=1/0,C=[];c--;){var w=e[c];c&&t&&(w=ee(w,we(t))),y=de(w.length,y),f[c]=!i&&(t||a>=120&&w.length>=120)?new St(c&&w):o}w=e[0];var I=-1,F=f[0];e:for(;++I<a&&C.length<y;){var B=w[I],P=t?t(B):B;if(B=i||B!==0?B:0,!(F?Qt(F,P):r(C,P,i))){for(c=p;--c;){var H=f[c];if(!(H?Qt(H,P):r(e[c],P,i)))continue e}F&&F.push(P),C.push(B)}}return C}function Jp(e,t,i,r){return We(e,function(a,p,c){t(r,i(a),p,c)}),r}function ln(e,t,i){t=mt(t,e),e=Fa(e,t);var r=e==null?e:e[Ve(Ne(t))];return r==null?o:Ce(r,e,i)}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)==Kt}function sn(e,t,i,r,a){return e===t?!0:e==null||t==null||!oe(e)&&!oe(t)?e!==e&&t!==t:Qp(e,t,i,r,sn,a)}function Qp(e,t,i,r,a,p){var c=O(e),f=O(t),y=c?Sn:fe(e),C=f?Sn:fe(t);y=y==Et?Xe:y,C=C==Et?Xe:C;var w=y==Xe,I=C==Xe,F=y==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,i,r,a,p):Iu(e,t,y,i,r,a,p);if(!(i&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,i,r,p)}}return F?(p||(p=new Ue),Fu(e,t,i,r,a,p)):!1}function jp(e){return oe(e)&&fe(e)==ke}function Zo(e,t,i,r){var a=i.length,p=a,c=!r;if(e==null)return!p;for(e=J(e);a--;){var f=i[a];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++a<p;){f=i[a];var y=f[0],C=e[y],w=f[1];if(c&&f[2]){if(C===o&&!(y in e))return!1}else{var I=new Ue;if(r)var F=r(C,w,y,e,t,I);if(!(F===o?sn(w,C,X|K,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 i in J(e))q.call(e,i)&&i!="constructor"&&t.push(i);return t}function ou(e){if(!te(e))return Hu(e);var t=cn(e),i=[];for(var r in e)r=="constructor"&&(t||!q.call(e,r))||i.push(r);return i}function jo(e,t){return e<t}function $r(e,t){var i=-1,r=be(e)?b(e.length):[];return dt(e,function(a,p,c){r[++i]=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(i){return i===e||Zo(i,e,t)}}function Wr(e,t){return yi(e)&&wa(t)?_a(Ve(e),t):function(i){var r=Fi(i,e);return r===o&&r===t?Ti(i,e):sn(t,r,X|K)}}function qn(e,t,i,r,a){e!==t&&Vo(t,function(p,c){if(a||(a=new Ue),te(p))iu(e,t,c,i,qn,r,a);else{var f=r?r(bi(e,c),p,c+"",e,t,a):o;f===o&&(f=p),Wo(e,c,f)}},xe)}function iu(e,t,i,r,a,p,c){var f=bi(e,i),y=bi(t,i),C=c.get(y);if(C){Wo(e,i,C);return}var w=p?p(f,y,i+"",e,t,c):o,I=w===o;if(I){var F=O(y),B=!F&&yt(y),P=!F&&!B&&Yt(y);w=y,F||B||P?O(f)?w=f:ie(f)?w=he(f):B?(I=!1,w=oa(y,!0)):P?(I=!1,w=ia(y,!0)):w=[]:fn(y)||Ft(y)?(w=f,Ft(f)?w=el(f):(!te(f)||ot(f))&&(w=Ca(y))):I=!1}I&&(c.set(y,w),a(w,y,r,p,c),c.delete(y)),Wo(e,i,w)}function Kr(e,t){var i=e.length;if(!!i)return t+=t<0?i:0,nt(t,i)?e[t]:o}function Vr(e,t,i){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 y=ee(t,function(C){return C(p)});return{criteria:y,index:++r,value:p}});return Bs(a,function(p,c){return hu(p,c,i)})}function ru(e,t){return qr(e,t,function(i,r){return Ti(e,r)})}function qr(e,t,i){for(var r=-1,a=t.length,p={};++r<a;){var c=t[r],f=wt(e,c);i(f,c)&&pn(p,mt(c,e),f)}return p}function au(e){return function(t){return wt(t,e)}}function ei(e,t,i,r){var a=r?Ls:Bt,p=-1,c=t.length,f=e;for(e===t&&(t=he(t)),i&&(f=ee(e,we(i)));++p<c;)for(var y=0,C=t[p],w=i?i(C):C;(y=a(f,w,y,r))>-1;)f!==e&&kn.call(f,y,1),kn.call(e,y,1);return e}function Jr(e,t){for(var i=e?t.length:0,r=i-1;i--;){var a=t[i];if(i==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,i,r){for(var a=-1,p=se(zn((t-e)/(i||1)),0),c=b(p);p--;)c[r?p:++a]=e,e+=i;return c}function ni(e,t){var i="";if(!e||t<1||t>lt)return i;do t%2&&(i+=e),t=Un(t/2),t&&(e+=e);while(t);return i}function z(e,t){return xi(Ia(e,t,ve),e+"")}function su(e){return Dr($t(e))}function pu(e,t){var i=$t(e);return io(i,Ct(t,0,i.length))}function pn(e,t,i,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 y=Ve(t[a]),C=i;if(y==="__proto__"||y==="constructor"||y==="prototype")return e;if(a!=c){var w=f[y];C=r?r(w,y,f):o,C===o&&(C=te(w)?w:nt(t[a+1])?[]:{})}rn(f,y,C),f=f[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,i){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),i=i>a?a:i,i<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var p=b(a);++r<a;)p[r]=e[r+t];return p}function du(e,t){var i;return dt(e,function(r,a,p){return i=t(r,a,p),!i}),!!i}function Jn(e,t,i){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)&&(i?c<=t:c<t)?r=p+1:a=p}return a}return oi(e,t,ve,i)}function oi(e,t,i,r){var a=0,p=e==null?0:e.length;if(p===0)return 0;t=i(t);for(var c=t!==t,f=t===null,y=Ie(t),C=t===o;a<p;){var w=Un((a+p)/2),I=i(e[w]),F=I!==o,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):y?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 i=-1,r=e.length,a=0,p=[];++i<r;){var c=e[i],f=t?t(c):c;if(!i||!Ye(f,y)){var y=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,i){var r=-1,a=En,p=e.length,c=!0,f=[],y=f;if(i)c=!1,a=Do;else if(p>=g){var C=t?null:wu(e);if(C)return Ln(C);c=!1,a=Qt,y=new St}else y=t?[]:f;e:for(;++r<p;){var w=e[r],I=t?t(w):w;if(w=i||w!==0?w:0,c&&I===I){for(var F=y.length;F--;)if(y[F]===I)continue e;t&&y.push(I),f.push(w)}else a(y,I,i)||(y!==f&&y.push(I),f.push(w))}return f}function ii(e,t){return t=mt(t,e),e=Fa(e,t),e==null||delete e[Ve(Ne(t))]}function jr(e,t,i,r){return pn(e,t,i(wt(e,t)),r)}function Xn(e,t,i,r){for(var a=e.length,p=r?a:-1;(r?p--:++p<a)&&t(e[p],p,e););return i?Me(e,r?0:p,r?p+1:a):Me(e,r?p+1:0,r?a:p)}function ea(e,t){var i=e;return i instanceof $&&(i=i.value()),Po(t,function(r,a){return a.func.apply(a.thisArg,pt([r],a.args))},i)}function ri(e,t,i){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,i));return ft(ce(p,1),t,i)}function ta(e,t,i){for(var r=-1,a=e.length,p=t.length,c={};++r<a;){var f=r<p?t[r]:o;i(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(V(e))}var fu=z;function gt(e,t,i){var r=e.length;return i=i===o?r:i,!t&&i>=r?e:Me(e,t,i)}var na=ep||function(e){return ue.clearTimeout(e)};function oa(e,t){if(t)return e.slice();var i=e.length,r=_r?_r(i):new e.constructor(i);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 i=t?si(e.buffer):e.buffer;return new e.constructor(i,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 i=t?si(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function ra(e,t){if(e!==t){var i=e!==o,r=e===null,a=e===e,p=Ie(e),c=t!==o,f=t===null,y=t===t,C=Ie(t);if(!f&&!C&&!p&&e>t||p&&c&&y&&!f&&!C||r&&c&&y||!i&&y||!a)return 1;if(!r&&!p&&!C&&e<t||C&&i&&a&&!r&&!p||f&&i&&a||!c&&a||!y)return-1}return 0}function hu(e,t,i){for(var r=-1,a=e.criteria,p=t.criteria,c=a.length,f=i.length;++r<c;){var y=ra(a[r],p[r]);if(y){if(r>=f)return y;var C=i[r];return y*(C=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,i,r){for(var a=-1,p=e.length,c=i.length,f=-1,y=t.length,C=se(p-c,0),w=b(y+C),I=!r;++f<y;)w[f]=t[f];for(;++a<c;)(I||a<p)&&(w[i[a]]=e[a]);for(;C--;)w[f++]=e[a++];return w}function la(e,t,i,r){for(var a=-1,p=e.length,c=-1,f=i.length,y=-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;++y<C;)I[B+y]=t[y];for(;++c<f;)(F||a<p)&&(I[B+i[c]]=e[a++]);return I}function he(e,t){var i=-1,r=e.length;for(t||(t=b(r));++i<r;)t[i]=e[i];return t}function Ke(e,t,i,r){var a=!i;i||(i={});for(var p=-1,c=t.length;++p<c;){var f=t[p],y=r?r(i[f],e[f],f,i,e):o;y===o&&(y=e[f]),a?je(i,f,y):rn(i,f,y)}return i}function bu(e,t){return Ke(e,gi(e),t)}function xu(e,t){return Ke(e,va(e),t)}function Zn(e,t){return function(i,r){var a=O(i)?_s:Up,p=t?t():{};return a(i,e,D(r,2),p)}}function Ht(e){return z(function(t,i){var r=-1,a=i.length,p=a>1?i[a-1]:o,c=a>2?i[2]:o;for(p=e.length>3&&typeof p=="function"?(a--,p):o,c&&ge(i[0],i[1],c)&&(p=a<3?o:p,a=1),t=J(t);++r<a;){var f=i[r];f&&e(t,f,r,p)}return t})}function sa(e,t){return function(i,r){if(i==null)return i;if(!be(i))return e(i,r);for(var a=i.length,p=t?a:-1,c=J(i);(t?p--:++p<a)&&r(c[p],p,c)!==!1;);return i}}function pa(e){return function(t,i,r){for(var a=-1,p=J(t),c=r(t),f=c.length;f--;){var y=c[e?f:++a];if(i(p[y],y,p)===!1)break}return t}}function vu(e,t,i){var r=t&M,a=un(e);function p(){var c=this&&this!==ue&&this instanceof p?a:e;return c.apply(r?i:this,arguments)}return p}function ua(e){return function(t){t=V(t);var i=Dt(t)?ze(t):o,r=i?i[0]:t.charAt(0),a=i?gt(i,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 i=kt(e.prototype),r=e.apply(i,t);return te(r)?r:i}}function Su(e,t,i){var r=un(e);function a(){for(var p=arguments.length,c=b(p),f=p,y=Ut(a);f--;)c[f]=arguments[f];var C=p<3&&c[0]!==y&&c[p-1]!==y?[]:ut(c,y);if(p-=C.length,p<i)return ga(e,t,Qn,a.placeholder,o,c,C,o,o,i-p);var w=this&&this!==ue&&this instanceof a?r:e;return Ce(w,this,c)}return a}function ca(e){return function(t,i,r){var a=J(t);if(!be(t)){var p=D(i,3);t=pe(t),i=function(f){return p(a[f],f,a)}}var c=e(t,i,r);return c>-1?a[p?t[c]:c]:o}}function da(e){return tt(function(t){var i=t.length,r=i,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:i;++r<i;){p=t[r];var f=no(p),y=f=="wrapper"?fi(p):o;y&&hi(y[0])&&y[1]==(Ae|Z|Se|at)&&!y[4].length&&y[9]==1?c=c[no(y[0])].apply(c,y[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=i?t[I].apply(this,C):w;++I<i;)F=t[I].call(this,F);return F}})}function Qn(e,t,i,r,a,p,c,f,y,C){var w=t&Ae,I=t&M,F=t&ae,B=t&(Z|qe),P=t&Tt,H=F?o: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,i,G,re,f,y,C-Y)}var $e=I?i:this,rt=F?$e[e]:e;return Y=G.length,f?G=Uu(G,f):P&&Y>1&&G.reverse(),w&&y<Y&&(G.length=y),this&&this!==ue&&this instanceof R&&(rt=H||un(rt)),rt.apply($e,G)}return R}function fa(e,t){return function(i,r){return Jp(i,e,t(r),{})}}function jn(e,t){return function(i,r){var a;if(i===o&&r===o)return t;if(i!==o&&(a=i),r!==o){if(a===o)return r;typeof i=="string"||typeof r=="string"?(i=_e(i),r=_e(r)):(i=Qr(i),r=Qr(r)),a=e(i,r)}return a}}function pi(e){return tt(function(t){return t=ee(t,we(D())),z(function(i){var r=this;return e(t,function(a){return Ce(a,r,i)})})})}function eo(e,t){t=t===o?" ":_e(t);var i=t.length;if(i<2)return i?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,i,r){var a=t&M,p=un(e);function c(){for(var f=-1,y=arguments.length,C=-1,w=r.length,I=b(w+y),F=this&&this!==ue&&this instanceof c?p:e;++C<w;)I[C]=r[C];for(;y--;)I[C++]=arguments[++f];return Ce(F,a?i:this,I)}return c}function ma(e){return function(t,i,r){return r&&typeof r!="number"&&ge(t,i,r)&&(i=r=o),t=it(t),i===o?(i=t,t=0):i=it(i),r=r===o?t<i?1:-1:it(r),lu(t,i,r,e)}}function to(e){return function(t,i){return typeof t=="string"&&typeof i=="string"||(t=Oe(t),i=Oe(i)),e(t,i)}}function ga(e,t,i,r,a,p,c,f,y,C){var w=t&Z,I=w?c:o,F=w?o:c,B=w?p:o,P=w?o:p;t|=w?Se:Je,t&=~(w?Je:Se),t&Ee||(t&=~(M|ae));var H=[e,t,a,B,I,P,F,f,y,C],R=i.apply(o,H);return hi(e)&&Ta(R,H),R.placeholder=r,Ea(R,e,t)}function ui(e){var t=le[e];return function(i,r){if(i=Oe(i),r=r==null?0:de(k(r),292),r&&Er(i)){var a=(V(i)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+r));return a=(V(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-r))}return t(i)}}var wu=Nt&&1/Ln(new Nt([,-0]))[1]==ht?function(e){return new Nt(e)}:Di;function ya(e){return function(t){var i=fe(t);return i==ke?zo(t):i==He?zs(t):Ds(t,e(t))}}function et(e,t,i,r,a,p,c,f){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=o),c=c===o?c:se(k(c),0),f=f===o?f:k(f),C-=a?a.length:0,t&Je){var w=r,I=a;r=a=o}var F=y?o:fi(e),B=[e,t,i,r,a,w,I,p,c,f];if(F&&ku(B,F),e=B[0],t=B[1],i=B[2],r=B[3],a=B[4],f=B[9]=B[9]===o?y?0:e.length:se(B[9]-C,0),!f&&t&(Z|qe)&&(t&=~(Z|qe)),!t||t==M)var P=vu(e,t,i);else t==Z||t==qe?P=Su(e,t,f):(t==Se||t==(M|Se))&&!a.length?P=Cu(e,t,i,r):P=Qn.apply(o,B);var H=F?Xr:Ta;return Ea(H(P,B),e,t)}function ha(e,t,i,r){return e===o||Ye(e,Mt[i])&&!q.call(r,i)?t:e}function ba(e,t,i,r,a,p){return te(e)&&te(t)&&(p.set(t,e),qn(e,t,o,ba,p),p.delete(t)),e}function _u(e){return fn(e)?o:e}function xa(e,t,i,r,a,p){var c=i&X,f=e.length,y=t.length;if(f!=y&&!(c&&y>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=i&K?new St:o;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!==o){if(R)continue;F=!1;break}if(B){if(!Ro(t,function(Y,G){if(!Qt(B,G)&&(P===Y||a(P,Y,i,r,p)))return B.push(G)})){F=!1;break}}else if(!(P===H||a(P,H,i,r,p))){F=!1;break}}return p.delete(e),p.delete(t),F}function Iu(e,t,i,r,a,p,c){switch(i){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 Kt:case Vt:return Ye(+e,+t);case Cn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case ke:var f=zo;case He:var y=r&X;if(f||(f=Ln),e.size!=t.size&&!y)return!1;var C=c.get(e);if(C)return C==t;r|=K,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,i,r,a,p){var c=i&X,f=ci(e),y=f.length,C=ci(t),w=C.length;if(y!=w&&!c)return!1;for(var I=y;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<y;){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===o?Y===G||a(Y,G,i,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,o,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+"",i=Ot[t],r=q.call(Ot,t)?i.length:0;r--;){var a=i[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 i=e.__data__;return Ru(t)?i[typeof t=="string"?"string":"hash"]:i.map}function mi(e){for(var t=pe(e),i=t.length;i--;){var r=t[i],a=e[r];t[i]=[r,a,wa(a)]}return t}function _t(e,t){var i=Os(e,t);return Ur(i)?i:o}function Tu(e){var t=q.call(e,xt),i=e[xt];try{e[xt]=o;var r=!0}catch{}var a=Rn.call(e);return r&&(t?e[xt]=i: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),i=t==Xe?e.constructor:o,r=i?It(i):"";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,i){for(var r=-1,a=i.length;++r<a;){var p=i[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,i){t=mt(t,e);for(var r=-1,a=t.length,p=!1;++r<a;){var c=Ve(t[r]);if(!(p=e!=null&&i(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,i=new e.constructor(t);return t&&typeof e[0]=="string"&&q.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function Ca(e){return typeof e.constructor=="function"&&!cn(e)?kt(On(e)):{}}function Bu(e,t,i){var r=e.constructor;switch(t){case Zt:return si(e);case Wt:case Kt:return new r(+e);case At:return mu(e,i);case mo:case go:case yo:case ho:case bo:case xo:case vo:case So:case Co:return ia(e,i);case ke:return new r;case Vt:case Jt:return new r(e);case qt:return gu(e);case He:return new r;case _n:return yu(e)}}function Du(e,t){var i=t.length;if(!i)return e;var r=i-1;return t[r]=(i>1?"& ":"")+t[r],t=t.join(i>2?", ":" "),e.replace(Rl,`{
8
+ */(function(n,l){(function(){var o,u="4.17.21",g=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,E="__lodash_placeholder__",L=1,U=2,ne=4,X=1,K=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]",Kt="[object Date]",hl="[object DOMException]",Cn="[object Error]",wn="[object Function]",Mi="[object GeneratorFunction]",ke="[object Map]",Vt="[object Number]",bl="[object Null]",Xe="[object Object]",Ni="[object Promise]",xl="[object Proxy]",qt="[object RegExp]",He="[object Set]",Jt="[object String]",_n="[object Symbol]",vl="[object Undefined]",Xt="[object WeakMap]",Sl="[object WeakSet]",Zt="[object ArrayBuffer]",At="[object DataView]",mo="[object Float32Array]",go="[object Float64Array]",yo="[object Int8Array]",ho="[object Int16Array]",bo="[object Int32Array]",xo="[object Uint8Array]",vo="[object Uint8ClampedArray]",So="[object Uint16Array]",Co="[object Uint32Array]",Cl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,_l=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Oi=/&(?:amp|lt|gt|quot|#39);/g,ki=/[&<>"']/g,Il=RegExp(Oi.source),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*)$/,Kl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,Vl=/['\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",Ki=Zl+Ql+jl+es,Io="['\u2019]",ts="["+Fn+"]",Vi="["+Ki+"]",Tn="["+Ui+"]",qi="\\d+",ns="["+Yi+"]",Ji="["+$i+"]",Xi="[^"+Fn+Ki+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+"(?="+[Vi,Lt,"$"].join("|")+")",is+"+"+tr+"(?="+[Vi,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[Kt]=j[Cn]=j[wn]=j[ke]=j[Vt]=j[Xe]=j[qt]=j[He]=j[Jt]=j[Xt]=!1;var Q={};Q[Et]=Q[Sn]=Q[Zt]=Q[At]=Q[Wt]=Q[Kt]=Q[mo]=Q[go]=Q[yo]=Q[ho]=Q[bo]=Q[ke]=Q[Vt]=Q[Xe]=Q[qt]=Q[He]=Q[Jt]=Q[_n]=Q[xo]=Q[vo]=Q[So]=Q[Co]=!0,Q[Cn]=Q[wn]=Q[Xt]=!1;var hs={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},bs={"&":"&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,A){for(var N=-1,W=m==null?0:m.length;++N<W;){var le=m[N];S(A,le,b(le),m)}return A}function Be(m,S){for(var b=-1,A=m==null?0:m.length;++b<A&&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,A=m==null?0:m.length;++b<A;)if(!S(m[b],b,m))return!1;return!0}function st(m,S){for(var b=-1,A=m==null?0:m.length,N=0,W=[];++b<A;){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 A=-1,N=m==null?0:m.length;++A<N;)if(b(S,m[A]))return!0;return!1}function ee(m,S){for(var b=-1,A=m==null?0:m.length,N=Array(A);++b<A;)N[b]=S(m[b],b,m);return N}function pt(m,S){for(var b=-1,A=S.length,N=m.length;++b<A;)m[N+b]=S[b];return m}function Po(m,S,b,A){var N=-1,W=m==null?0:m.length;for(A&&W&&(b=m[++N]);++N<W;)b=S(b,m[N],N,m);return b}function Fs(m,S,b,A){var N=m==null?0:m.length;for(A&&N&&(b=m[--N]);N--;)b=S(b,m[N],N,m);return b}function Ro(m,S){for(var b=-1,A=m==null?0:m.length;++b<A;)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 A;return b(m,function(N,W,le){if(S(N,W,le))return A=W,!1}),A}function An(m,S,b,A){for(var N=m.length,W=b+(A?1:-1);A?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,A){for(var N=b-1,W=m.length;++N<W;)if(A(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?o:S[m]}}function No(m){return function(S){return m==null?o:m[S]}}function hr(m,S,b,A,N){return N(m,function(W,le,J){b=A?(A=!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,A=-1,N=m.length;++A<N;){var W=S(m[A]);W!==o&&(b=b===o?W:b+W)}return b}function ko(m,S){for(var b=-1,A=Array(m);++b<m;)A[b]=S(b);return A}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,A=m.length;++b<A&&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,A=0;b--;)m[b]===S&&++A;return A}var Rs=No(hs),Ms=No(bs);function Ns(m){return"\\"+vs[m]}function Os(m,S){return m==null?o: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(A,N){b[++S]=[N,A]}),b}function Sr(m,S){return function(b){return m(S(b))}}function ut(m,S){for(var b=-1,A=m.length,N=0,W=[];++b<A;){var le=m[b];(le===S||le===E)&&(m[b]=E,W[N++]=b)}return W}function Ln(m){var S=-1,b=Array(m.size);return m.forEach(function(A){b[++S]=A}),b}function zs(m){var S=-1,b=Array(m.size);return m.forEach(function(A){b[++S]=[A,A]}),b}function Us(m,S,b){for(var A=b-1,N=m.length;++A<N;)if(m[A]===S)return A;return-1}function Ys(m,S,b){for(var A=b+1;A--;)if(m[A]===S)return A;return A}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 Ks(m){return m.match(ds)||[]}var Vs=function m(S){S=S==null?ue:Rt.defaults(ue.Object(),S,Rt.pick(ue,gs));var b=S.Array,A=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:o,ct=S.Symbol,Nn=S.Uint8Array,_r=Mn?Mn.allocUnsafe:o,On=Sr(J.getPrototypeOf,J),Ir=J.create,Fr=Mt.propertyIsEnumerable,kn=Bn.splice,Tr=ct?ct.isConcatSpreadable:o,jt=ct?ct.iterator:o,xt=ct?ct.toStringTag:o,Hn=function(){try{var e=_t(J,"defineProperty");return e({},"",{}),e}catch{}}(),ep=S.clearTimeout!==ue.clearTimeout&&S.clearTimeout,tp=A&&A.now!==ue.Date.now&&A.now,np=S.setTimeout!==ue.setTimeout&&S.setTimeout,zn=le.ceil,Un=le.floor,Yo=J.getOwnPropertySymbols,op=Mn?Mn.isBuffer:o,Er=S.isFinite,ip=Bn.join,rp=Sr(J.keys,J),se=le.max,de=le.min,ap=A.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:o,on=$n?$n.valueOf:o,Lr=$n?$n.toString:o;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 i=new e;return e.prototype=o,i}}();function Gn(){}function Pe(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}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__,i=O(e),r=t<0,a=i?e.length:0,p=Eu(0,a,this.__views__),c=p.start,f=p.end,y=f-c,C=r?f:c-1,w=this.__iteratees__,I=w.length,F=0,B=de(y,this.__takeCount__);if(!i||!r&&a==y&&B==y)return ea(e,this.__actions__);var P=[];e:for(;y--&&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,i=e==null?0:e.length;for(this.clear();++t<i;){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 i=t[e];return i===v?o:i}return q.call(t,e)?t[e]:o}function vp(e){var t=this.__data__;return nn?t[e]!==o:q.call(t,e)}function Sp(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=nn&&t===o?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,i=e==null?0:e.length;for(this.clear();++t<i;){var r=e[t];this.set(r[0],r[1])}}function Cp(){this.__data__=[],this.size=0}function wp(e){var t=this.__data__,i=Wn(t,e);if(i<0)return!1;var r=t.length-1;return i==r?t.pop():kn.call(t,i,1),--this.size,!0}function _p(e){var t=this.__data__,i=Wn(t,e);return i<0?o:t[i][1]}function Ip(e){return Wn(this.__data__,e)>-1}function Fp(e,t){var i=this.__data__,r=Wn(i,e);return r<0?(++this.size,i.push([e,t])):i[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,i=e==null?0:e.length;for(this.clear();++t<i;){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 i=oo(this,e),r=i.size;return i.set(e,t),this.size+=i.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,i=e==null?0:e.length;for(this.__data__=new Qe;++t<i;)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__,i=t.delete(e);return this.size=t.size,i}function Np(e){return this.__data__.get(e)}function Op(e){return this.__data__.has(e)}function kp(e,t){var i=this.__data__;if(i instanceof Ze){var r=i.__data__;if(!en||r.length<g-1)return r.push([e,t]),this.size=++i.size,this;i=this.__data__=new Qe(r)}return i.set(e,t),this.size=i.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 i=O(e),r=!i&&Ft(e),a=!i&&!r&&yt(e),p=!i&&!r&&!a&&Yt(e),c=i||r||a||p,f=c?ko(e.length,qs):[],y=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,y)))&&f.push(C);return f}function Dr(e){var t=e.length;return t?e[ti(0,t-1)]:o}function Hp(e,t){return io(he(e),Ct(t,0,e.length))}function zp(e){return io(he(e))}function Wo(e,t,i){(i!==o&&!Ye(e[t],i)||i===o&&!(t in e))&&je(e,t,i)}function rn(e,t,i){var r=e[t];(!(q.call(e,t)&&Ye(r,i))||i===o&&!(t in e))&&je(e,t,i)}function Wn(e,t){for(var i=e.length;i--;)if(Ye(e[i][0],t))return i;return-1}function Up(e,t,i,r){return dt(e,function(a,p,c){t(r,a,i(a),c)}),r}function Pr(e,t){return e&&Ke(t,pe(t),e)}function Yp(e,t){return e&&Ke(t,xe(t),e)}function je(e,t,i){t=="__proto__"&&Hn?Hn(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}function Ko(e,t){for(var i=-1,r=t.length,a=b(r),p=e==null;++i<r;)a[i]=p?o:Fi(e,t[i]);return a}function Ct(e,t,i){return e===e&&(i!==o&&(e=e<=i?e:i),t!==o&&(e=e>=t?e:t)),e}function Re(e,t,i,r,a,p){var c,f=t&L,y=t&U,C=t&ne;if(i&&(c=a?i(e,r,a,p):i(e)),c!==o)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=y||F?{}:Ca(e),!f)return y?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,i,R,e,p))}):Ja(e)&&e.forEach(function(R,Y){c.set(Y,Re(R,t,i,Y,e,p))});var P=C?y?di:ci:y?xe:pe,H=w?o:P(e);return Be(H||e,function(R,Y){H&&(Y=R,R=e[Y]),rn(c,Y,Re(R,t,i,Y,e,p))}),c}function $p(e){var t=pe(e);return function(i){return Rr(i,e,t)}}function Rr(e,t,i){var r=i.length;if(e==null)return!r;for(e=J(e);r--;){var a=i[r],p=t[a],c=e[a];if(c===o&&!(a in e)||!p(c))return!1}return!0}function Mr(e,t,i){if(typeof e!="function")throw new De(h);return dn(function(){e.apply(o,i)},t)}function an(e,t,i,r){var a=-1,p=En,c=!0,f=e.length,y=[],C=t.length;if(!f)return y;i&&(t=ee(t,we(i))),r?(p=Do,c=!1):t.length>=g&&(p=Qt,c=!1,t=new St(t));e:for(;++a<f;){var w=e[a],I=i==null?w:i(w);if(w=r||w!==0?w:0,c&&I===I){for(var F=C;F--;)if(t[F]===I)continue e;y.push(w)}else p(t,I,r)||y.push(w)}return y}var dt=sa(We),Nr=sa(qo,!0);function Gp(e,t){var i=!0;return dt(e,function(r,a,p){return i=!!t(r,a,p),i}),i}function Kn(e,t,i){for(var r=-1,a=e.length;++r<a;){var p=e[r],c=t(p);if(c!=null&&(f===o?c===c&&!Ie(c):i(c,f)))var f=c,y=p}return y}function Wp(e,t,i,r){var a=e.length;for(i=k(i),i<0&&(i=-i>a?0:a+i),r=r===o||r>a?a:k(r),r<0&&(r+=a),r=i>r?0:ja(r);i<r;)e[i++]=t;return e}function Or(e,t){var i=[];return dt(e,function(r,a,p){t(r,a,p)&&i.push(r)}),i}function ce(e,t,i,r,a){var p=-1,c=e.length;for(i||(i=Pu),a||(a=[]);++p<c;){var f=e[p];t>0&&i(f)?t>1?ce(f,t-1,i,r,a):pt(a,f):r||(a[a.length]=f)}return a}var Vo=pa(),kr=pa(!0);function We(e,t){return e&&Vo(e,t,pe)}function qo(e,t){return e&&kr(e,t,pe)}function Vn(e,t){return st(t,function(i){return ot(e[i])})}function wt(e,t){t=mt(t,e);for(var i=0,r=t.length;e!=null&&i<r;)e=e[Ve(t[i++])];return i&&i==r?e:o}function Hr(e,t,i){var r=t(e);return O(e)?r:pt(r,i(e))}function me(e){return e==null?e===o?vl:bl:xt&&xt in J(e)?Tu(e):zu(e)}function Jo(e,t){return e>t}function Kp(e,t){return e!=null&&q.call(e,t)}function Vp(e,t){return e!=null&&t in J(e)}function qp(e,t,i){return e>=de(t,i)&&e<se(t,i)}function Xo(e,t,i){for(var r=i?Do:En,a=e[0].length,p=e.length,c=p,f=b(p),y=1/0,C=[];c--;){var w=e[c];c&&t&&(w=ee(w,we(t))),y=de(w.length,y),f[c]=!i&&(t||a>=120&&w.length>=120)?new St(c&&w):o}w=e[0];var I=-1,F=f[0];e:for(;++I<a&&C.length<y;){var B=w[I],P=t?t(B):B;if(B=i||B!==0?B:0,!(F?Qt(F,P):r(C,P,i))){for(c=p;--c;){var H=f[c];if(!(H?Qt(H,P):r(e[c],P,i)))continue e}F&&F.push(P),C.push(B)}}return C}function Jp(e,t,i,r){return We(e,function(a,p,c){t(r,i(a),p,c)}),r}function ln(e,t,i){t=mt(t,e),e=Fa(e,t);var r=e==null?e:e[Ve(Ne(t))];return r==null?o:Ce(r,e,i)}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)==Kt}function sn(e,t,i,r,a){return e===t?!0:e==null||t==null||!oe(e)&&!oe(t)?e!==e&&t!==t:Qp(e,t,i,r,sn,a)}function Qp(e,t,i,r,a,p){var c=O(e),f=O(t),y=c?Sn:fe(e),C=f?Sn:fe(t);y=y==Et?Xe:y,C=C==Et?Xe:C;var w=y==Xe,I=C==Xe,F=y==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,i,r,a,p):Iu(e,t,y,i,r,a,p);if(!(i&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,i,r,p)}}return F?(p||(p=new Ue),Fu(e,t,i,r,a,p)):!1}function jp(e){return oe(e)&&fe(e)==ke}function Zo(e,t,i,r){var a=i.length,p=a,c=!r;if(e==null)return!p;for(e=J(e);a--;){var f=i[a];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++a<p;){f=i[a];var y=f[0],C=e[y],w=f[1];if(c&&f[2]){if(C===o&&!(y in e))return!1}else{var I=new Ue;if(r)var F=r(C,w,y,e,t,I);if(!(F===o?sn(w,C,X|K,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 i in J(e))q.call(e,i)&&i!="constructor"&&t.push(i);return t}function ou(e){if(!te(e))return Hu(e);var t=cn(e),i=[];for(var r in e)r=="constructor"&&(t||!q.call(e,r))||i.push(r);return i}function jo(e,t){return e<t}function $r(e,t){var i=-1,r=be(e)?b(e.length):[];return dt(e,function(a,p,c){r[++i]=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(i){return i===e||Zo(i,e,t)}}function Wr(e,t){return yi(e)&&wa(t)?_a(Ve(e),t):function(i){var r=Fi(i,e);return r===o&&r===t?Ti(i,e):sn(t,r,X|K)}}function qn(e,t,i,r,a){e!==t&&Vo(t,function(p,c){if(a||(a=new Ue),te(p))iu(e,t,c,i,qn,r,a);else{var f=r?r(bi(e,c),p,c+"",e,t,a):o;f===o&&(f=p),Wo(e,c,f)}},xe)}function iu(e,t,i,r,a,p,c){var f=bi(e,i),y=bi(t,i),C=c.get(y);if(C){Wo(e,i,C);return}var w=p?p(f,y,i+"",e,t,c):o,I=w===o;if(I){var F=O(y),B=!F&&yt(y),P=!F&&!B&&Yt(y);w=y,F||B||P?O(f)?w=f:ie(f)?w=he(f):B?(I=!1,w=oa(y,!0)):P?(I=!1,w=ia(y,!0)):w=[]:fn(y)||Ft(y)?(w=f,Ft(f)?w=el(f):(!te(f)||ot(f))&&(w=Ca(y))):I=!1}I&&(c.set(y,w),a(w,y,r,p,c),c.delete(y)),Wo(e,i,w)}function Kr(e,t){var i=e.length;if(!!i)return t+=t<0?i:0,nt(t,i)?e[t]:o}function Vr(e,t,i){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 y=ee(t,function(C){return C(p)});return{criteria:y,index:++r,value:p}});return Bs(a,function(p,c){return hu(p,c,i)})}function ru(e,t){return qr(e,t,function(i,r){return Ti(e,r)})}function qr(e,t,i){for(var r=-1,a=t.length,p={};++r<a;){var c=t[r],f=wt(e,c);i(f,c)&&pn(p,mt(c,e),f)}return p}function au(e){return function(t){return wt(t,e)}}function ei(e,t,i,r){var a=r?Ls:Bt,p=-1,c=t.length,f=e;for(e===t&&(t=he(t)),i&&(f=ee(e,we(i)));++p<c;)for(var y=0,C=t[p],w=i?i(C):C;(y=a(f,w,y,r))>-1;)f!==e&&kn.call(f,y,1),kn.call(e,y,1);return e}function Jr(e,t){for(var i=e?t.length:0,r=i-1;i--;){var a=t[i];if(i==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,i,r){for(var a=-1,p=se(zn((t-e)/(i||1)),0),c=b(p);p--;)c[r?p:++a]=e,e+=i;return c}function ni(e,t){var i="";if(!e||t<1||t>lt)return i;do t%2&&(i+=e),t=Un(t/2),t&&(e+=e);while(t);return i}function z(e,t){return xi(Ia(e,t,ve),e+"")}function su(e){return Dr($t(e))}function pu(e,t){var i=$t(e);return io(i,Ct(t,0,i.length))}function pn(e,t,i,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 y=Ve(t[a]),C=i;if(y==="__proto__"||y==="constructor"||y==="prototype")return e;if(a!=c){var w=f[y];C=r?r(w,y,f):o,C===o&&(C=te(w)?w:nt(t[a+1])?[]:{})}rn(f,y,C),f=f[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,i){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),i=i>a?a:i,i<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var p=b(a);++r<a;)p[r]=e[r+t];return p}function du(e,t){var i;return dt(e,function(r,a,p){return i=t(r,a,p),!i}),!!i}function Jn(e,t,i){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)&&(i?c<=t:c<t)?r=p+1:a=p}return a}return oi(e,t,ve,i)}function oi(e,t,i,r){var a=0,p=e==null?0:e.length;if(p===0)return 0;t=i(t);for(var c=t!==t,f=t===null,y=Ie(t),C=t===o;a<p;){var w=Un((a+p)/2),I=i(e[w]),F=I!==o,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):y?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 i=-1,r=e.length,a=0,p=[];++i<r;){var c=e[i],f=t?t(c):c;if(!i||!Ye(f,y)){var y=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,i){var r=-1,a=En,p=e.length,c=!0,f=[],y=f;if(i)c=!1,a=Do;else if(p>=g){var C=t?null:wu(e);if(C)return Ln(C);c=!1,a=Qt,y=new St}else y=t?[]:f;e:for(;++r<p;){var w=e[r],I=t?t(w):w;if(w=i||w!==0?w:0,c&&I===I){for(var F=y.length;F--;)if(y[F]===I)continue e;t&&y.push(I),f.push(w)}else a(y,I,i)||(y!==f&&y.push(I),f.push(w))}return f}function ii(e,t){return t=mt(t,e),e=Fa(e,t),e==null||delete e[Ve(Ne(t))]}function jr(e,t,i,r){return pn(e,t,i(wt(e,t)),r)}function Xn(e,t,i,r){for(var a=e.length,p=r?a:-1;(r?p--:++p<a)&&t(e[p],p,e););return i?Me(e,r?0:p,r?p+1:a):Me(e,r?p+1:0,r?a:p)}function ea(e,t){var i=e;return i instanceof $&&(i=i.value()),Po(t,function(r,a){return a.func.apply(a.thisArg,pt([r],a.args))},i)}function ri(e,t,i){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,i));return ft(ce(p,1),t,i)}function ta(e,t,i){for(var r=-1,a=e.length,p=t.length,c={};++r<a;){var f=r<p?t[r]:o;i(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(V(e))}var fu=z;function gt(e,t,i){var r=e.length;return i=i===o?r:i,!t&&i>=r?e:Me(e,t,i)}var na=ep||function(e){return ue.clearTimeout(e)};function oa(e,t){if(t)return e.slice();var i=e.length,r=_r?_r(i):new e.constructor(i);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 i=t?si(e.buffer):e.buffer;return new e.constructor(i,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 i=t?si(e.buffer):e.buffer;return new e.constructor(i,e.byteOffset,e.length)}function ra(e,t){if(e!==t){var i=e!==o,r=e===null,a=e===e,p=Ie(e),c=t!==o,f=t===null,y=t===t,C=Ie(t);if(!f&&!C&&!p&&e>t||p&&c&&y&&!f&&!C||r&&c&&y||!i&&y||!a)return 1;if(!r&&!p&&!C&&e<t||C&&i&&a&&!r&&!p||f&&i&&a||!c&&a||!y)return-1}return 0}function hu(e,t,i){for(var r=-1,a=e.criteria,p=t.criteria,c=a.length,f=i.length;++r<c;){var y=ra(a[r],p[r]);if(y){if(r>=f)return y;var C=i[r];return y*(C=="desc"?-1:1)}}return e.index-t.index}function aa(e,t,i,r){for(var a=-1,p=e.length,c=i.length,f=-1,y=t.length,C=se(p-c,0),w=b(y+C),I=!r;++f<y;)w[f]=t[f];for(;++a<c;)(I||a<p)&&(w[i[a]]=e[a]);for(;C--;)w[f++]=e[a++];return w}function la(e,t,i,r){for(var a=-1,p=e.length,c=-1,f=i.length,y=-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;++y<C;)I[B+y]=t[y];for(;++c<f;)(F||a<p)&&(I[B+i[c]]=e[a++]);return I}function he(e,t){var i=-1,r=e.length;for(t||(t=b(r));++i<r;)t[i]=e[i];return t}function Ke(e,t,i,r){var a=!i;i||(i={});for(var p=-1,c=t.length;++p<c;){var f=t[p],y=r?r(i[f],e[f],f,i,e):o;y===o&&(y=e[f]),a?je(i,f,y):rn(i,f,y)}return i}function bu(e,t){return Ke(e,gi(e),t)}function xu(e,t){return Ke(e,va(e),t)}function Zn(e,t){return function(i,r){var a=O(i)?_s:Up,p=t?t():{};return a(i,e,D(r,2),p)}}function Ht(e){return z(function(t,i){var r=-1,a=i.length,p=a>1?i[a-1]:o,c=a>2?i[2]:o;for(p=e.length>3&&typeof p=="function"?(a--,p):o,c&&ge(i[0],i[1],c)&&(p=a<3?o:p,a=1),t=J(t);++r<a;){var f=i[r];f&&e(t,f,r,p)}return t})}function sa(e,t){return function(i,r){if(i==null)return i;if(!be(i))return e(i,r);for(var a=i.length,p=t?a:-1,c=J(i);(t?p--:++p<a)&&r(c[p],p,c)!==!1;);return i}}function pa(e){return function(t,i,r){for(var a=-1,p=J(t),c=r(t),f=c.length;f--;){var y=c[e?f:++a];if(i(p[y],y,p)===!1)break}return t}}function vu(e,t,i){var r=t&M,a=un(e);function p(){var c=this&&this!==ue&&this instanceof p?a:e;return c.apply(r?i:this,arguments)}return p}function ua(e){return function(t){t=V(t);var i=Dt(t)?ze(t):o,r=i?i[0]:t.charAt(0),a=i?gt(i,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 i=kt(e.prototype),r=e.apply(i,t);return te(r)?r:i}}function Su(e,t,i){var r=un(e);function a(){for(var p=arguments.length,c=b(p),f=p,y=Ut(a);f--;)c[f]=arguments[f];var C=p<3&&c[0]!==y&&c[p-1]!==y?[]:ut(c,y);if(p-=C.length,p<i)return ga(e,t,Qn,a.placeholder,o,c,C,o,o,i-p);var w=this&&this!==ue&&this instanceof a?r:e;return Ce(w,this,c)}return a}function ca(e){return function(t,i,r){var a=J(t);if(!be(t)){var p=D(i,3);t=pe(t),i=function(f){return p(a[f],f,a)}}var c=e(t,i,r);return c>-1?a[p?t[c]:c]:o}}function da(e){return tt(function(t){var i=t.length,r=i,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:i;++r<i;){p=t[r];var f=no(p),y=f=="wrapper"?fi(p):o;y&&hi(y[0])&&y[1]==(Ae|Z|Se|at)&&!y[4].length&&y[9]==1?c=c[no(y[0])].apply(c,y[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=i?t[I].apply(this,C):w;++I<i;)F=t[I].call(this,F);return F}})}function Qn(e,t,i,r,a,p,c,f,y,C){var w=t&Ae,I=t&M,F=t&ae,B=t&(Z|qe),P=t&Tt,H=F?o: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,i,G,re,f,y,C-Y)}var $e=I?i:this,rt=F?$e[e]:e;return Y=G.length,f?G=Uu(G,f):P&&Y>1&&G.reverse(),w&&y<Y&&(G.length=y),this&&this!==ue&&this instanceof R&&(rt=H||un(rt)),rt.apply($e,G)}return R}function fa(e,t){return function(i,r){return Jp(i,e,t(r),{})}}function jn(e,t){return function(i,r){var a;if(i===o&&r===o)return t;if(i!==o&&(a=i),r!==o){if(a===o)return r;typeof i=="string"||typeof r=="string"?(i=_e(i),r=_e(r)):(i=Qr(i),r=Qr(r)),a=e(i,r)}return a}}function pi(e){return tt(function(t){return t=ee(t,we(D())),z(function(i){var r=this;return e(t,function(a){return Ce(a,r,i)})})})}function eo(e,t){t=t===o?" ":_e(t);var i=t.length;if(i<2)return i?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,i,r){var a=t&M,p=un(e);function c(){for(var f=-1,y=arguments.length,C=-1,w=r.length,I=b(w+y),F=this&&this!==ue&&this instanceof c?p:e;++C<w;)I[C]=r[C];for(;y--;)I[C++]=arguments[++f];return Ce(F,a?i:this,I)}return c}function ma(e){return function(t,i,r){return r&&typeof r!="number"&&ge(t,i,r)&&(i=r=o),t=it(t),i===o?(i=t,t=0):i=it(i),r=r===o?t<i?1:-1:it(r),lu(t,i,r,e)}}function to(e){return function(t,i){return typeof t=="string"&&typeof i=="string"||(t=Oe(t),i=Oe(i)),e(t,i)}}function ga(e,t,i,r,a,p,c,f,y,C){var w=t&Z,I=w?c:o,F=w?o:c,B=w?p:o,P=w?o:p;t|=w?Se:Je,t&=~(w?Je:Se),t&Ee||(t&=~(M|ae));var H=[e,t,a,B,I,P,F,f,y,C],R=i.apply(o,H);return hi(e)&&Ta(R,H),R.placeholder=r,Ea(R,e,t)}function ui(e){var t=le[e];return function(i,r){if(i=Oe(i),r=r==null?0:de(k(r),292),r&&Er(i)){var a=(V(i)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+r));return a=(V(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-r))}return t(i)}}var wu=Nt&&1/Ln(new Nt([,-0]))[1]==ht?function(e){return new Nt(e)}:Di;function ya(e){return function(t){var i=fe(t);return i==ke?zo(t):i==He?zs(t):Ds(t,e(t))}}function et(e,t,i,r,a,p,c,f){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=o),c=c===o?c:se(k(c),0),f=f===o?f:k(f),C-=a?a.length:0,t&Je){var w=r,I=a;r=a=o}var F=y?o:fi(e),B=[e,t,i,r,a,w,I,p,c,f];if(F&&ku(B,F),e=B[0],t=B[1],i=B[2],r=B[3],a=B[4],f=B[9]=B[9]===o?y?0:e.length:se(B[9]-C,0),!f&&t&(Z|qe)&&(t&=~(Z|qe)),!t||t==M)var P=vu(e,t,i);else t==Z||t==qe?P=Su(e,t,f):(t==Se||t==(M|Se))&&!a.length?P=Cu(e,t,i,r):P=Qn.apply(o,B);var H=F?Xr:Ta;return Ea(H(P,B),e,t)}function ha(e,t,i,r){return e===o||Ye(e,Mt[i])&&!q.call(r,i)?t:e}function ba(e,t,i,r,a,p){return te(e)&&te(t)&&(p.set(t,e),qn(e,t,o,ba,p),p.delete(t)),e}function _u(e){return fn(e)?o:e}function xa(e,t,i,r,a,p){var c=i&X,f=e.length,y=t.length;if(f!=y&&!(c&&y>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=i&K?new St:o;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!==o){if(R)continue;F=!1;break}if(B){if(!Ro(t,function(Y,G){if(!Qt(B,G)&&(P===Y||a(P,Y,i,r,p)))return B.push(G)})){F=!1;break}}else if(!(P===H||a(P,H,i,r,p))){F=!1;break}}return p.delete(e),p.delete(t),F}function Iu(e,t,i,r,a,p,c){switch(i){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 Kt:case Vt:return Ye(+e,+t);case Cn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case ke:var f=zo;case He:var y=r&X;if(f||(f=Ln),e.size!=t.size&&!y)return!1;var C=c.get(e);if(C)return C==t;r|=K,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,i,r,a,p){var c=i&X,f=ci(e),y=f.length,C=ci(t),w=C.length;if(y!=w&&!c)return!1;for(var I=y;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<y;){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===o?Y===G||a(Y,G,i,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,o,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+"",i=Ot[t],r=q.call(Ot,t)?i.length:0;r--;){var a=i[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 i=e.__data__;return Ru(t)?i[typeof t=="string"?"string":"hash"]:i.map}function mi(e){for(var t=pe(e),i=t.length;i--;){var r=t[i],a=e[r];t[i]=[r,a,wa(a)]}return t}function _t(e,t){var i=Os(e,t);return Ur(i)?i:o}function Tu(e){var t=q.call(e,xt),i=e[xt];try{e[xt]=o;var r=!0}catch{}var a=Rn.call(e);return r&&(t?e[xt]=i: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),i=t==Xe?e.constructor:o,r=i?It(i):"";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,i){for(var r=-1,a=i.length;++r<a;){var p=i[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,i){t=mt(t,e);for(var r=-1,a=t.length,p=!1;++r<a;){var c=Ve(t[r]);if(!(p=e!=null&&i(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,i=new e.constructor(t);return t&&typeof e[0]=="string"&&q.call(e,"index")&&(i.index=e.index,i.input=e.input),i}function Ca(e){return typeof e.constructor=="function"&&!cn(e)?kt(On(e)):{}}function Bu(e,t,i){var r=e.constructor;switch(t){case Zt:return si(e);case Wt:case Kt:return new r(+e);case At:return mu(e,i);case mo:case go:case yo:case ho:case bo:case xo:case vo:case So:case Co:return ia(e,i);case ke:return new r;case Vt:case Jt:return new r(e);case qt:return gu(e);case He:return new r;case _n:return yu(e)}}function Du(e,t){var i=t.length;if(!i)return e;var r=i-1;return t[r]=(i>1?"& ":"")+t[r],t=t.join(i>2?", ":" "),e.replace(Rl,`{
9
9
  /* [wrapped with `+t+`] */
10
- `)}function Pu(e){return O(e)||Ft(e)||!!(Tr&&e&&e[Tr])}function nt(e,t){var i=typeof e;return t=t==null?lt:t,!!t&&(i=="number"||i!="symbol"&&Wl.test(e))&&e>-1&&e%1==0&&e<t}function ge(e,t,i){if(!te(i))return!1;var r=typeof t;return(r=="number"?be(i)&&nt(t,i.length):r=="string"&&t in i)?Ye(i[t],e):!1}function yi(e,t){if(O(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="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),i=s[t];if(typeof i!="function"||!(t in $.prototype))return!1;if(e===i)return!0;var r=fi(i);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,i=typeof t=="function"&&t.prototype||Mt;return e===i}function wa(e){return e===e&&!te(e)}function _a(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==o||e in J(i))}}function Ou(e){var t=so(e,function(r){return i.size===T&&i.clear(),r}),i=t.cache;return t}function ku(e,t){var i=e[1],r=t[1],a=i|r,p=a<(M|ae|Ae),c=r==Ae&&i==Z||r==Ae&&i==at&&e[7].length<=t[8]||r==(Ae|at)&&t[7].length<=t[8]&&i==Z;if(!(p||c))return e;r&M&&(e[2]=t[2],a|=i&M?0:Ee);var f=t[3];if(f){var y=e[3];e[3]=y?aa(y,f,t[4]):f,e[4]=y?ut(e[3],A):t[4]}return f=t[5],f&&(y=e[5],e[5]=y?la(y,f,t[6]):f,e[6]=y?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 i in J(e))t.push(i);return t}function zu(e){return Rn.call(e)}function Ia(e,t,i){return t=se(t===o?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]=i(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 i=e.length,r=de(t.length,i),a=he(e);r--;){var p=t[r];e[r]=nt(p,i)?a[p]:o}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,i){var r=t+"";return xi(e,Du(r,Yu(Au(r),i)))}function Aa(e){var t=0,i=0;return function(){var r=ap(),a=hn-(r-i);if(i=r,a>0){if(++t>=yn)return arguments[0]}else t=0;return e.apply(o,arguments)}}function io(e,t){var i=-1,r=e.length,a=r-1;for(t=t===o?r:t;++i<t;){var p=ti(i,a),c=e[p];e[p]=e[i],e[i]=c}return e.length=t,e}var La=Ou(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(i,r,a,p){t.push(a?p.replace(Hl,"$1"):r||i)}),t});function Ve(e){if(typeof e=="string"||Ie(e))return e;var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function It(e){if(e!=null){try{return Pn.call(e)}catch{}try{return e+""}catch{}}return""}function Yu(e,t){return Be(gl,function(i){var r="_."+i[0];t&i[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,i){(i?ge(e,t,i):t===o)?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,i=e==null?0:e.length,r=0,a=[];++t<i;){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),i=arguments[0],r=e;r--;)t[r-1]=arguments[r];return pt(O(i)?he(i):[i],ce(t,1))}var Ku=z(function(e,t){return ie(e)?an(e,ce(t,1,ie,!0)):[]}),Vu=z(function(e,t){var i=Ne(t);return ie(i)&&(i=o),ie(e)?an(e,ce(t,1,ie,!0),D(i,2)):[]}),qu=z(function(e,t){var i=Ne(t);return ie(i)&&(i=o),ie(e)?an(e,ce(t,1,ie,!0),o,i):[]});function Ju(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?1:k(t),Me(e,t<0?0:t,r)):[]}function Xu(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?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,i,r){var a=e==null?0:e.length;return a?(i&&typeof i!="number"&&ge(e,t,i)&&(i=0,r=a),Wp(e,t,i,r)):[]}function Da(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=i==null?0:k(i);return a<0&&(a=se(r+a,0)),An(e,D(t,3),a)}function Pa(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return i!==o&&(a=k(i),a=i<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 i=e==null?0:e.length;return i?(t=t===o?1:k(t),ce(e,t)):[]}function nc(e){for(var t=-1,i=e==null?0:e.length,r={};++t<i;){var a=e[t];r[a[0]]=a[1]}return r}function Ma(e){return e&&e.length?e[0]:o}function oc(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=i==null?0:k(i);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),i=ee(e,ai);return t===Ne(i)?t=o:i.pop(),i.length&&i[0]===e[0]?Xo(i,D(t,2)):[]}),lc=z(function(e){var t=Ne(e),i=ee(e,ai);return t=typeof t=="function"?t:o,t&&i.pop(),i.length&&i[0]===e[0]?Xo(i,o,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]:o}function pc(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=r;return i!==o&&(a=k(i),a=a<0?se(r+a,0):de(a,r-1)),t===t?Ys(e,t,a):An(e,gr,a,!0)}function uc(e,t){return e&&e.length?Kr(e,k(t)):o}var cc=z(Na);function Na(e,t){return e&&e.length&&t&&t.length?ei(e,t):e}function dc(e,t,i){return e&&e.length&&t&&t.length?ei(e,t,D(i,2)):e}function fc(e,t,i){return e&&e.length&&t&&t.length?ei(e,t,o,i):e}var mc=tt(function(e,t){var i=e==null?0:e.length,r=Ko(e,t);return Jr(e,ee(t,function(a){return nt(a,i)?+a:a}).sort(ra)),r});function gc(e,t){var i=[];if(!(e&&e.length))return i;var r=-1,a=[],p=e.length;for(t=D(t,3);++r<p;){var c=e[r];t(c,r,e)&&(i.push(c),a.push(r))}return Jr(e,a),i}function vi(e){return e==null?e:sp.call(e)}function yc(e,t,i){var r=e==null?0:e.length;return r?(i&&typeof i!="number"&&ge(e,t,i)?(t=0,i=r):(t=t==null?0:k(t),i=i===o?r:k(i)),Me(e,t,i)):[]}function hc(e,t){return Jn(e,t)}function bc(e,t,i){return oi(e,t,D(i,2))}function xc(e,t){var i=e==null?0:e.length;if(i){var r=Jn(e,t);if(r<i&&Ye(e[r],t))return r}return-1}function vc(e,t){return Jn(e,t,!0)}function Sc(e,t,i){return oi(e,t,D(i,2),!0)}function Cc(e,t){var i=e==null?0:e.length;if(i){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,i){return e&&e.length?(t=i||t===o?1:k(t),Me(e,0,t<0?0:t)):[]}function Tc(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?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=o),ft(ce(e,1,ie,!0),D(t,2))}),Dc=z(function(e){var t=Ne(e);return t=typeof t=="function"?t:o,ft(ce(e,1,ie,!0),o,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:o,e&&e.length?ft(e,o,t):[]}function Si(e){if(!(e&&e.length))return[];var t=0;return e=st(e,function(i){if(ie(i))return t=se(i.length,t),!0}),ko(t,function(i){return ee(e,Mo(i))})}function Oa(e,t){if(!(e&&e.length))return[];var i=Si(e);return t==null?i:ee(i,function(r){return Ce(t,o,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=o),ri(st(e,ie),D(t,2))}),Hc=z(function(e){var t=Ne(e);return t=typeof t=="function"?t:o,ri(st(e,ie),o,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,i=t>1?e[t-1]:o;return i=typeof i=="function"?(e.pop(),i):o,Oa(e,i)});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,i=t?e[0]:0,r=this.__wrapped__,a=function(p){return Ko(p,e)};return t>1||this.__actions__.length||!(r instanceof $)||!nt(i)?this.thru(a):(r=r.slice(i,+i+(t?1:0)),r.__actions__.push({func:ro,args:[a],thisArg:o}),new Pe(r,this.__chain__).thru(function(p){return t&&!p.length&&p.push(o),p}))});function Kc(){return ka(this)}function Vc(){return new Pe(this.value(),this.__chain__)}function qc(){this.__values__===o&&(this.__values__=Qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,i=this;i instanceof Gn;){var r=Ba(i);r.__index__=0,r.__values__=o,t?a.__wrapped__=r:t=r;var a=r;i=i.__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:o}),new Pe(t,this.__chain__)}return this.thru(vi)}function Qc(){return ea(this.__wrapped__,this.__actions__)}var jc=Zn(function(e,t,i){q.call(e,i)?++e[i]:je(e,i,1)});function ed(e,t,i){var r=O(e)?fr:Gp;return i&&ge(e,t,i)&&(t=o),r(e,D(t,3))}function td(e,t){var i=O(e)?st:Or;return i(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,i){return i=i===o?1:k(i),ce(ao(e,t),i)}function Ha(e,t){var i=O(e)?Be:dt;return i(e,D(t,3))}function za(e,t){var i=O(e)?Is:Nr;return i(e,D(t,3))}var ld=Zn(function(e,t,i){q.call(e,i)?e[i].push(t):je(e,i,[t])});function sd(e,t,i,r){e=be(e)?e:$t(e),i=i&&!r?k(i):0;var a=e.length;return i<0&&(i=se(a+i,0)),co(e)?i<=a&&e.indexOf(t,i)>-1:!!a&&Bt(e,t,i)>-1}var pd=z(function(e,t,i){var r=-1,a=typeof t=="function",p=be(e)?b(e.length):[];return dt(e,function(c){p[++r]=a?Ce(t,c,i):ln(c,t,i)}),p}),ud=Zn(function(e,t,i){je(e,i,t)});function ao(e,t){var i=O(e)?ee:$r;return i(e,D(t,3))}function cd(e,t,i,r){return e==null?[]:(O(t)||(t=t==null?[]:[t]),i=r?o:i,O(i)||(i=i==null?[]:[i]),Vr(e,t,i))}var dd=Zn(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]});function fd(e,t,i){var r=O(e)?Po:hr,a=arguments.length<3;return r(e,D(t,4),i,a,dt)}function md(e,t,i){var r=O(e)?Fs:hr,a=arguments.length<3;return r(e,D(t,4),i,a,Nr)}function gd(e,t){var i=O(e)?st:Or;return i(e,po(D(t,3)))}function yd(e){var t=O(e)?Dr:su;return t(e)}function hd(e,t,i){(i?ge(e,t,i):t===o)?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,i){var r=O(e)?Ro:du;return i&&ge(e,t,i)&&(t=o),r(e,D(t,3))}var Sd=z(function(e,t){if(e==null)return[];var i=t.length;return i>1&&ge(e,t[0],t[1])?t=[]:i>2&&ge(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,ce(t,1),[])}),lo=tp||function(){return ue.Date.now()};function Cd(e,t){if(typeof t!="function")throw new De(h);return e=k(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ua(e,t,i){return t=i?o:t,t=e&&t==null?e.length:t,et(e,Ae,o,o,o,o,t)}function Ya(e,t){var i;if(typeof t!="function")throw new De(h);return e=k(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=o),i}}var Ci=z(function(e,t,i){var r=M;if(i.length){var a=ut(i,Ut(Ci));r|=Se}return et(e,r,t,i,a)}),$a=z(function(e,t,i){var r=M|ae;if(i.length){var a=ut(i,Ut($a));r|=Se}return et(t,r,e,i,a)});function Ga(e,t,i){t=i?o:t;var r=et(e,Z,o,o,o,o,o,t);return r.placeholder=Ga.placeholder,r}function Wa(e,t,i){t=i?o:t;var r=et(e,qe,o,o,o,o,o,t);return r.placeholder=Wa.placeholder,r}function Ka(e,t,i){var r,a,p,c,f,y,C=0,w=!1,I=!1,F=!0;if(typeof e!="function")throw new De(h);t=Oe(t)||0,te(i)&&(w=!!i.leading,I="maxWait"in i,p=I?se(Oe(i.maxWait)||0,t):p,F="trailing"in i?!!i.trailing:F);function B(re){var $e=r,rt=a;return r=a=o,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-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===o||$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=o,F&&r?B(re):(r=a=o,c)}function Fe(){f!==o&&na(f),C=0,r=y=a=f=o}function ye(){return f===o?c:G(lo())}function Te(){var re=lo(),$e=R(re);if(r=arguments,a=this,y=re,$e){if(f===o)return P(y);if(I)return na(f),f=dn(Y,t),B(y)}return f===o&&(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,i){return Mr(e,Oe(t)||0,i)});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 i=function(){var r=arguments,a=t?t.apply(this,r):r[0],p=i.cache;if(p.has(a))return p.get(a);var c=e.apply(this,r);return i.cache=p.set(a,c)||p,c};return i.cache=new(so.Cache||Qe),i}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 i=t.length;return z(function(r){for(var a=-1,p=de(r.length,i);++a<p;)r[a]=t[a].call(this,r[a]);return Ce(e,this,r)})}),wi=z(function(e,t){var i=ut(t,Ut(wi));return et(e,Se,o,t,i)}),Va=z(function(e,t){var i=ut(t,Ut(Va));return et(e,Je,o,t,i)}),Ed=tt(function(e,t){return et(e,at,o,o,o,t)});function Ad(e,t){if(typeof e!="function")throw new De(h);return t=t===o?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(i){var r=i[t],a=gt(i,0,t);return r&&pt(a,r),Ce(e,this,a)})}function Bd(e,t,i){var r=!0,a=!0;if(typeof e!="function")throw new De(h);return te(i)&&(r="leading"in i?!!i.leading:r,a="trailing"in i?!!i.trailing:a),Ka(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:o,Re(e,ne,t)}function Od(e){return Re(e,L|ne)}function kd(e,t){return t=typeof t=="function"?t:o,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 Kd(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 i in e)if(q.call(e,i))return!1;return!0}function Vd(e,t){return sn(e,t)}function qd(e,t,i){i=typeof i=="function"?i:o;var r=i?i(e,t):o;return r===o?sn(e,t,o,i):!!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,i){return i=typeof i=="function"?i:o,Zo(e,t,mi(t),i)}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)==Vt}function fn(e){if(!oe(e)||me(e)!=Xe)return!1;var t=On(e);if(t===null)return!0;var i=q.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i instanceof i&&Pn.call(i)==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===o}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),i=t==ke?zo:t==He?Ln:$t;return i(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),i=t%1;return t===t?i?t-i: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 i=Yl.test(e);return i||Gl.test(e)?Cs(e.slice(2),i?2:8):Ul.test(e)?vn:+e}function el(e){return Ke(e,xe(e))}function pf(e){return e?Ct(k(e),-lt,lt):e===0?e:0}function V(e){return e==null?"":_e(e)}var uf=Ht(function(e,t){if(cn(t)||be(t)){Ke(t,pe(t),e);return}for(var i in t)q.call(t,i)&&rn(e,i,t[i])}),tl=Ht(function(e,t){Ke(t,xe(t),e)}),fo=Ht(function(e,t,i,r){Ke(t,xe(t),e,r)}),cf=Ht(function(e,t,i,r){Ke(t,pe(t),e,r)}),df=tt(Ko);function ff(e,t){var i=kt(e);return t==null?i:Pr(i,t)}var mf=z(function(e,t){e=J(e);var i=-1,r=t.length,a=r>2?t[2]:o;for(a&&ge(t[0],t[1],a)&&(r=1);++i<r;)for(var p=t[i],c=xe(p),f=-1,y=c.length;++f<y;){var C=c[f],w=e[C];(w===o||Ye(w,Mt[C])&&!q.call(e,C))&&(e[C]=p[C])}return e}),gf=z(function(e){return e.push(o,ba),Ce(nl,o,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:Vo(e,D(t,3),xe)}function xf(e,t){return e==null?e:kr(e,D(t,3),xe)}function vf(e,t){return e&&We(e,D(t,3))}function Sf(e,t){return e&&qo(e,D(t,3))}function Cf(e){return e==null?[]:Vn(e,pe(e))}function wf(e){return e==null?[]:Vn(e,xe(e))}function Fi(e,t,i){var r=e==null?o:wt(e,t);return r===o?i:r}function _f(e,t){return e!=null&&Sa(e,t,Kp)}function Ti(e,t){return e!=null&&Sa(e,t,Vp)}var If=fa(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=Rn.call(t)),e[t]=i},Ai(ve)),Ff=fa(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=Rn.call(t)),q.call(e,t)?e[t].push(i):e[t]=[i]},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 i={};return t=D(t,3),We(e,function(r,a,p){je(i,t(r,a,p),r)}),i}function Af(e,t){var i={};return t=D(t,3),We(e,function(r,a,p){je(i,a,t(r,a,p))}),i}var Lf=Ht(function(e,t,i){qn(e,t,i)}),nl=Ht(function(e,t,i,r){qn(e,t,i,r)}),Bf=tt(function(e,t){var i={};if(e==null)return i;var r=!1;t=ee(t,function(p){return p=mt(p,e),r||(r=p.length>1),p}),Ke(e,di(e),i),r&&(i=Re(i,L|U|ne,_u));for(var a=t.length;a--;)ii(i,t[a]);return i});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 i=ee(di(e),function(r){return[r]});return t=D(t),qr(e,i,function(r,a){return t(r,a[0])})}function Rf(e,t,i){t=mt(t,e);var r=-1,a=t.length;for(a||(a=1,e=o);++r<a;){var p=e==null?o:e[Ve(t[r])];p===o&&(r=a,p=i),e=ot(p)?p.call(e):p}return e}function Mf(e,t,i){return e==null?e:pn(e,t,i)}function Nf(e,t,i,r){return r=typeof r=="function"?r:o,e==null?e:pn(e,t,i,r)}var il=ya(pe),rl=ya(xe);function Of(e,t,i){var r=O(e),a=r||yt(e)||Yt(e);if(t=D(t,4),i==null){var p=e&&e.constructor;a?i=r?new p:[]:te(e)?i=ot(p)?kt(On(e)):{}:i={}}return(a?Be:We)(e,function(c,f,y){return t(i,c,f,y)}),i}function kf(e,t){return e==null?!0:ii(e,t)}function Hf(e,t,i){return e==null?e:jr(e,t,li(i))}function zf(e,t,i,r){return r=typeof r=="function"?r:o,e==null?e:jr(e,t,li(i),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,i){return i===o&&(i=t,t=o),i!==o&&(i=Oe(i),i=i===i?i:0),t!==o&&(t=Oe(t),t=t===t?t:0),Ct(Oe(e),t,i)}function $f(e,t,i){return t=it(t),i===o?(i=t,t=0):i=it(i),e=Oe(e),qp(e,t,i)}function Gf(e,t,i){if(i&&typeof i!="boolean"&&ge(e,t,i)&&(t=i=o),i===o&&(typeof t=="boolean"?(i=t,t=o):typeof e=="boolean"&&(i=e,e=o)),e===o&&t===o?(e=0,t=1):(e=it(e),t===o?(t=e,e=0):t=it(t)),e>t){var r=e;e=t,t=r}if(i||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,i){return t=t.toLowerCase(),e+(i?al(t):t)});function al(e){return Ei(V(e).toLowerCase())}function ll(e){return e=V(e),e&&e.replace(Kl,Rs).replace(cs,"")}function Kf(e,t,i){e=V(e),t=_e(t);var r=e.length;i=i===o?r:Ct(k(i),0,r);var a=i;return i-=t.length,i>=0&&e.slice(i,a)==t}function Vf(e){return e=V(e),e&&Fl.test(e)?e.replace(ki,Ms):e}function qf(e){return e=V(e),e&&Dl.test(e)?e.replace(wo,"\\$&"):e}var Jf=zt(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Xf=zt(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),Zf=ua("toLowerCase");function Qf(e,t,i){e=V(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),i)+e+eo(zn(a),i)}function jf(e,t,i){e=V(e),t=k(t);var r=t?Pt(e):0;return t&&r<t?e+eo(t-r,i):e}function em(e,t,i){e=V(e),t=k(t);var r=t?Pt(e):0;return t&&r<t?eo(t-r,i)+e:e}function tm(e,t,i){return i||t==null?t=0:t&&(t=+t),lp(V(e).replace(_o,""),t||0)}function nm(e,t,i){return(i?ge(e,t,i):t===o)?t=1:t=k(t),ni(V(e),t)}function om(){var e=arguments,t=V(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=zt(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()});function rm(e,t,i){return i&&typeof i!="number"&&ge(e,t,i)&&(t=i=o),i=i===o?Ge:i>>>0,i?(e=V(e),e&&(typeof t=="string"||t!=null&&!Ii(t))&&(t=_e(t),!t&&Dt(e))?gt(ze(e),0,i):e.split(t,i)):[]}var am=zt(function(e,t,i){return e+(i?" ":"")+Ei(t)});function lm(e,t,i){return e=V(e),i=i==null?0:Ct(k(i),0,e.length),t=_e(t),e.slice(i,i+t.length)==t}function sm(e,t,i){var r=s.templateSettings;i&&ge(e,t,i)&&(t=o),e=V(e),t=fo({},t,r,ha);var a=fo({},t.imports,r.imports,ha),p=pe(a),c=Ho(a,p),f,y,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+"]")+`
10
+ `)}function Pu(e){return O(e)||Ft(e)||!!(Tr&&e&&e[Tr])}function nt(e,t){var i=typeof e;return t=t==null?lt:t,!!t&&(i=="number"||i!="symbol"&&Wl.test(e))&&e>-1&&e%1==0&&e<t}function ge(e,t,i){if(!te(i))return!1;var r=typeof t;return(r=="number"?be(i)&&nt(t,i.length):r=="string"&&t in i)?Ye(i[t],e):!1}function yi(e,t){if(O(e))return!1;var i=typeof e;return i=="number"||i=="symbol"||i=="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),i=s[t];if(typeof i!="function"||!(t in $.prototype))return!1;if(e===i)return!0;var r=fi(i);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,i=typeof t=="function"&&t.prototype||Mt;return e===i}function wa(e){return e===e&&!te(e)}function _a(e,t){return function(i){return i==null?!1:i[e]===t&&(t!==o||e in J(i))}}function Ou(e){var t=so(e,function(r){return i.size===T&&i.clear(),r}),i=t.cache;return t}function ku(e,t){var i=e[1],r=t[1],a=i|r,p=a<(M|ae|Ae),c=r==Ae&&i==Z||r==Ae&&i==at&&e[7].length<=t[8]||r==(Ae|at)&&t[7].length<=t[8]&&i==Z;if(!(p||c))return e;r&M&&(e[2]=t[2],a|=i&M?0:Ee);var f=t[3];if(f){var y=e[3];e[3]=y?aa(y,f,t[4]):f,e[4]=y?ut(e[3],E):t[4]}return f=t[5],f&&(y=e[5],e[5]=y?la(y,f,t[6]):f,e[6]=y?ut(e[5],E):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 i in J(e))t.push(i);return t}function zu(e){return Rn.call(e)}function Ia(e,t,i){return t=se(t===o?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]=i(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 i=e.length,r=de(t.length,i),a=he(e);r--;){var p=t[r];e[r]=nt(p,i)?a[p]:o}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,i){var r=t+"";return xi(e,Du(r,Yu(Au(r),i)))}function Aa(e){var t=0,i=0;return function(){var r=ap(),a=hn-(r-i);if(i=r,a>0){if(++t>=yn)return arguments[0]}else t=0;return e.apply(o,arguments)}}function io(e,t){var i=-1,r=e.length,a=r-1;for(t=t===o?r:t;++i<t;){var p=ti(i,a),c=e[p];e[p]=e[i],e[i]=c}return e.length=t,e}var La=Ou(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(i,r,a,p){t.push(a?p.replace(Hl,"$1"):r||i)}),t});function Ve(e){if(typeof e=="string"||Ie(e))return e;var t=e+"";return t=="0"&&1/e==-ht?"-0":t}function It(e){if(e!=null){try{return Pn.call(e)}catch{}try{return e+""}catch{}}return""}function Yu(e,t){return Be(gl,function(i){var r="_."+i[0];t&i[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,i){(i?ge(e,t,i):t===o)?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,i=e==null?0:e.length,r=0,a=[];++t<i;){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),i=arguments[0],r=e;r--;)t[r-1]=arguments[r];return pt(O(i)?he(i):[i],ce(t,1))}var Ku=z(function(e,t){return ie(e)?an(e,ce(t,1,ie,!0)):[]}),Vu=z(function(e,t){var i=Ne(t);return ie(i)&&(i=o),ie(e)?an(e,ce(t,1,ie,!0),D(i,2)):[]}),qu=z(function(e,t){var i=Ne(t);return ie(i)&&(i=o),ie(e)?an(e,ce(t,1,ie,!0),o,i):[]});function Ju(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?1:k(t),Me(e,t<0?0:t,r)):[]}function Xu(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?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,i,r){var a=e==null?0:e.length;return a?(i&&typeof i!="number"&&ge(e,t,i)&&(i=0,r=a),Wp(e,t,i,r)):[]}function Da(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=i==null?0:k(i);return a<0&&(a=se(r+a,0)),An(e,D(t,3),a)}function Pa(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return i!==o&&(a=k(i),a=i<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 i=e==null?0:e.length;return i?(t=t===o?1:k(t),ce(e,t)):[]}function nc(e){for(var t=-1,i=e==null?0:e.length,r={};++t<i;){var a=e[t];r[a[0]]=a[1]}return r}function Ma(e){return e&&e.length?e[0]:o}function oc(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=i==null?0:k(i);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),i=ee(e,ai);return t===Ne(i)?t=o:i.pop(),i.length&&i[0]===e[0]?Xo(i,D(t,2)):[]}),lc=z(function(e){var t=Ne(e),i=ee(e,ai);return t=typeof t=="function"?t:o,t&&i.pop(),i.length&&i[0]===e[0]?Xo(i,o,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]:o}function pc(e,t,i){var r=e==null?0:e.length;if(!r)return-1;var a=r;return i!==o&&(a=k(i),a=a<0?se(r+a,0):de(a,r-1)),t===t?Ys(e,t,a):An(e,gr,a,!0)}function uc(e,t){return e&&e.length?Kr(e,k(t)):o}var cc=z(Na);function Na(e,t){return e&&e.length&&t&&t.length?ei(e,t):e}function dc(e,t,i){return e&&e.length&&t&&t.length?ei(e,t,D(i,2)):e}function fc(e,t,i){return e&&e.length&&t&&t.length?ei(e,t,o,i):e}var mc=tt(function(e,t){var i=e==null?0:e.length,r=Ko(e,t);return Jr(e,ee(t,function(a){return nt(a,i)?+a:a}).sort(ra)),r});function gc(e,t){var i=[];if(!(e&&e.length))return i;var r=-1,a=[],p=e.length;for(t=D(t,3);++r<p;){var c=e[r];t(c,r,e)&&(i.push(c),a.push(r))}return Jr(e,a),i}function vi(e){return e==null?e:sp.call(e)}function yc(e,t,i){var r=e==null?0:e.length;return r?(i&&typeof i!="number"&&ge(e,t,i)?(t=0,i=r):(t=t==null?0:k(t),i=i===o?r:k(i)),Me(e,t,i)):[]}function hc(e,t){return Jn(e,t)}function bc(e,t,i){return oi(e,t,D(i,2))}function xc(e,t){var i=e==null?0:e.length;if(i){var r=Jn(e,t);if(r<i&&Ye(e[r],t))return r}return-1}function vc(e,t){return Jn(e,t,!0)}function Sc(e,t,i){return oi(e,t,D(i,2),!0)}function Cc(e,t){var i=e==null?0:e.length;if(i){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,i){return e&&e.length?(t=i||t===o?1:k(t),Me(e,0,t<0?0:t)):[]}function Tc(e,t,i){var r=e==null?0:e.length;return r?(t=i||t===o?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=o),ft(ce(e,1,ie,!0),D(t,2))}),Dc=z(function(e){var t=Ne(e);return t=typeof t=="function"?t:o,ft(ce(e,1,ie,!0),o,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:o,e&&e.length?ft(e,o,t):[]}function Si(e){if(!(e&&e.length))return[];var t=0;return e=st(e,function(i){if(ie(i))return t=se(i.length,t),!0}),ko(t,function(i){return ee(e,Mo(i))})}function Oa(e,t){if(!(e&&e.length))return[];var i=Si(e);return t==null?i:ee(i,function(r){return Ce(t,o,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=o),ri(st(e,ie),D(t,2))}),Hc=z(function(e){var t=Ne(e);return t=typeof t=="function"?t:o,ri(st(e,ie),o,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,i=t>1?e[t-1]:o;return i=typeof i=="function"?(e.pop(),i):o,Oa(e,i)});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,i=t?e[0]:0,r=this.__wrapped__,a=function(p){return Ko(p,e)};return t>1||this.__actions__.length||!(r instanceof $)||!nt(i)?this.thru(a):(r=r.slice(i,+i+(t?1:0)),r.__actions__.push({func:ro,args:[a],thisArg:o}),new Pe(r,this.__chain__).thru(function(p){return t&&!p.length&&p.push(o),p}))});function Kc(){return ka(this)}function Vc(){return new Pe(this.value(),this.__chain__)}function qc(){this.__values__===o&&(this.__values__=Qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?o:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,i=this;i instanceof Gn;){var r=Ba(i);r.__index__=0,r.__values__=o,t?a.__wrapped__=r:t=r;var a=r;i=i.__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:o}),new Pe(t,this.__chain__)}return this.thru(vi)}function Qc(){return ea(this.__wrapped__,this.__actions__)}var jc=Zn(function(e,t,i){q.call(e,i)?++e[i]:je(e,i,1)});function ed(e,t,i){var r=O(e)?fr:Gp;return i&&ge(e,t,i)&&(t=o),r(e,D(t,3))}function td(e,t){var i=O(e)?st:Or;return i(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,i){return i=i===o?1:k(i),ce(ao(e,t),i)}function Ha(e,t){var i=O(e)?Be:dt;return i(e,D(t,3))}function za(e,t){var i=O(e)?Is:Nr;return i(e,D(t,3))}var ld=Zn(function(e,t,i){q.call(e,i)?e[i].push(t):je(e,i,[t])});function sd(e,t,i,r){e=be(e)?e:$t(e),i=i&&!r?k(i):0;var a=e.length;return i<0&&(i=se(a+i,0)),co(e)?i<=a&&e.indexOf(t,i)>-1:!!a&&Bt(e,t,i)>-1}var pd=z(function(e,t,i){var r=-1,a=typeof t=="function",p=be(e)?b(e.length):[];return dt(e,function(c){p[++r]=a?Ce(t,c,i):ln(c,t,i)}),p}),ud=Zn(function(e,t,i){je(e,i,t)});function ao(e,t){var i=O(e)?ee:$r;return i(e,D(t,3))}function cd(e,t,i,r){return e==null?[]:(O(t)||(t=t==null?[]:[t]),i=r?o:i,O(i)||(i=i==null?[]:[i]),Vr(e,t,i))}var dd=Zn(function(e,t,i){e[i?0:1].push(t)},function(){return[[],[]]});function fd(e,t,i){var r=O(e)?Po:hr,a=arguments.length<3;return r(e,D(t,4),i,a,dt)}function md(e,t,i){var r=O(e)?Fs:hr,a=arguments.length<3;return r(e,D(t,4),i,a,Nr)}function gd(e,t){var i=O(e)?st:Or;return i(e,po(D(t,3)))}function yd(e){var t=O(e)?Dr:su;return t(e)}function hd(e,t,i){(i?ge(e,t,i):t===o)?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,i){var r=O(e)?Ro:du;return i&&ge(e,t,i)&&(t=o),r(e,D(t,3))}var Sd=z(function(e,t){if(e==null)return[];var i=t.length;return i>1&&ge(e,t[0],t[1])?t=[]:i>2&&ge(t[0],t[1],t[2])&&(t=[t[0]]),Vr(e,ce(t,1),[])}),lo=tp||function(){return ue.Date.now()};function Cd(e,t){if(typeof t!="function")throw new De(h);return e=k(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ua(e,t,i){return t=i?o:t,t=e&&t==null?e.length:t,et(e,Ae,o,o,o,o,t)}function Ya(e,t){var i;if(typeof t!="function")throw new De(h);return e=k(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=o),i}}var Ci=z(function(e,t,i){var r=M;if(i.length){var a=ut(i,Ut(Ci));r|=Se}return et(e,r,t,i,a)}),$a=z(function(e,t,i){var r=M|ae;if(i.length){var a=ut(i,Ut($a));r|=Se}return et(t,r,e,i,a)});function Ga(e,t,i){t=i?o:t;var r=et(e,Z,o,o,o,o,o,t);return r.placeholder=Ga.placeholder,r}function Wa(e,t,i){t=i?o:t;var r=et(e,qe,o,o,o,o,o,t);return r.placeholder=Wa.placeholder,r}function Ka(e,t,i){var r,a,p,c,f,y,C=0,w=!1,I=!1,F=!0;if(typeof e!="function")throw new De(h);t=Oe(t)||0,te(i)&&(w=!!i.leading,I="maxWait"in i,p=I?se(Oe(i.maxWait)||0,t):p,F="trailing"in i?!!i.trailing:F);function B(re){var $e=r,rt=a;return r=a=o,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-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===o||$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=o,F&&r?B(re):(r=a=o,c)}function Fe(){f!==o&&na(f),C=0,r=y=a=f=o}function ye(){return f===o?c:G(lo())}function Te(){var re=lo(),$e=R(re);if(r=arguments,a=this,y=re,$e){if(f===o)return P(y);if(I)return na(f),f=dn(Y,t),B(y)}return f===o&&(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,i){return Mr(e,Oe(t)||0,i)});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 i=function(){var r=arguments,a=t?t.apply(this,r):r[0],p=i.cache;if(p.has(a))return p.get(a);var c=e.apply(this,r);return i.cache=p.set(a,c)||p,c};return i.cache=new(so.Cache||Qe),i}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 i=t.length;return z(function(r){for(var a=-1,p=de(r.length,i);++a<p;)r[a]=t[a].call(this,r[a]);return Ce(e,this,r)})}),wi=z(function(e,t){var i=ut(t,Ut(wi));return et(e,Se,o,t,i)}),Va=z(function(e,t){var i=ut(t,Ut(Va));return et(e,Je,o,t,i)}),Ed=tt(function(e,t){return et(e,at,o,o,o,t)});function Ad(e,t){if(typeof e!="function")throw new De(h);return t=t===o?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(i){var r=i[t],a=gt(i,0,t);return r&&pt(a,r),Ce(e,this,a)})}function Bd(e,t,i){var r=!0,a=!0;if(typeof e!="function")throw new De(h);return te(i)&&(r="leading"in i?!!i.leading:r,a="trailing"in i?!!i.trailing:a),Ka(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:o,Re(e,ne,t)}function Od(e){return Re(e,L|ne)}function kd(e,t){return t=typeof t=="function"?t:o,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 Kd(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 i in e)if(q.call(e,i))return!1;return!0}function Vd(e,t){return sn(e,t)}function qd(e,t,i){i=typeof i=="function"?i:o;var r=i?i(e,t):o;return r===o?sn(e,t,o,i):!!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,i){return i=typeof i=="function"?i:o,Zo(e,t,mi(t),i)}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)==Vt}function fn(e){if(!oe(e)||me(e)!=Xe)return!1;var t=On(e);if(t===null)return!0;var i=q.call(t,"constructor")&&t.constructor;return typeof i=="function"&&i instanceof i&&Pn.call(i)==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===o}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),i=t==ke?zo:t==He?Ln:$t;return i(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),i=t%1;return t===t?i?t-i: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 i=Yl.test(e);return i||Gl.test(e)?Cs(e.slice(2),i?2:8):Ul.test(e)?vn:+e}function el(e){return Ke(e,xe(e))}function pf(e){return e?Ct(k(e),-lt,lt):e===0?e:0}function V(e){return e==null?"":_e(e)}var uf=Ht(function(e,t){if(cn(t)||be(t)){Ke(t,pe(t),e);return}for(var i in t)q.call(t,i)&&rn(e,i,t[i])}),tl=Ht(function(e,t){Ke(t,xe(t),e)}),fo=Ht(function(e,t,i,r){Ke(t,xe(t),e,r)}),cf=Ht(function(e,t,i,r){Ke(t,pe(t),e,r)}),df=tt(Ko);function ff(e,t){var i=kt(e);return t==null?i:Pr(i,t)}var mf=z(function(e,t){e=J(e);var i=-1,r=t.length,a=r>2?t[2]:o;for(a&&ge(t[0],t[1],a)&&(r=1);++i<r;)for(var p=t[i],c=xe(p),f=-1,y=c.length;++f<y;){var C=c[f],w=e[C];(w===o||Ye(w,Mt[C])&&!q.call(e,C))&&(e[C]=p[C])}return e}),gf=z(function(e){return e.push(o,ba),Ce(nl,o,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:Vo(e,D(t,3),xe)}function xf(e,t){return e==null?e:kr(e,D(t,3),xe)}function vf(e,t){return e&&We(e,D(t,3))}function Sf(e,t){return e&&qo(e,D(t,3))}function Cf(e){return e==null?[]:Vn(e,pe(e))}function wf(e){return e==null?[]:Vn(e,xe(e))}function Fi(e,t,i){var r=e==null?o:wt(e,t);return r===o?i:r}function _f(e,t){return e!=null&&Sa(e,t,Kp)}function Ti(e,t){return e!=null&&Sa(e,t,Vp)}var If=fa(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=Rn.call(t)),e[t]=i},Ai(ve)),Ff=fa(function(e,t,i){t!=null&&typeof t.toString!="function"&&(t=Rn.call(t)),q.call(e,t)?e[t].push(i):e[t]=[i]},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 i={};return t=D(t,3),We(e,function(r,a,p){je(i,t(r,a,p),r)}),i}function Af(e,t){var i={};return t=D(t,3),We(e,function(r,a,p){je(i,a,t(r,a,p))}),i}var Lf=Ht(function(e,t,i){qn(e,t,i)}),nl=Ht(function(e,t,i,r){qn(e,t,i,r)}),Bf=tt(function(e,t){var i={};if(e==null)return i;var r=!1;t=ee(t,function(p){return p=mt(p,e),r||(r=p.length>1),p}),Ke(e,di(e),i),r&&(i=Re(i,L|U|ne,_u));for(var a=t.length;a--;)ii(i,t[a]);return i});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 i=ee(di(e),function(r){return[r]});return t=D(t),qr(e,i,function(r,a){return t(r,a[0])})}function Rf(e,t,i){t=mt(t,e);var r=-1,a=t.length;for(a||(a=1,e=o);++r<a;){var p=e==null?o:e[Ve(t[r])];p===o&&(r=a,p=i),e=ot(p)?p.call(e):p}return e}function Mf(e,t,i){return e==null?e:pn(e,t,i)}function Nf(e,t,i,r){return r=typeof r=="function"?r:o,e==null?e:pn(e,t,i,r)}var il=ya(pe),rl=ya(xe);function Of(e,t,i){var r=O(e),a=r||yt(e)||Yt(e);if(t=D(t,4),i==null){var p=e&&e.constructor;a?i=r?new p:[]:te(e)?i=ot(p)?kt(On(e)):{}:i={}}return(a?Be:We)(e,function(c,f,y){return t(i,c,f,y)}),i}function kf(e,t){return e==null?!0:ii(e,t)}function Hf(e,t,i){return e==null?e:jr(e,t,li(i))}function zf(e,t,i,r){return r=typeof r=="function"?r:o,e==null?e:jr(e,t,li(i),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,i){return i===o&&(i=t,t=o),i!==o&&(i=Oe(i),i=i===i?i:0),t!==o&&(t=Oe(t),t=t===t?t:0),Ct(Oe(e),t,i)}function $f(e,t,i){return t=it(t),i===o?(i=t,t=0):i=it(i),e=Oe(e),qp(e,t,i)}function Gf(e,t,i){if(i&&typeof i!="boolean"&&ge(e,t,i)&&(t=i=o),i===o&&(typeof t=="boolean"?(i=t,t=o):typeof e=="boolean"&&(i=e,e=o)),e===o&&t===o?(e=0,t=1):(e=it(e),t===o?(t=e,e=0):t=it(t)),e>t){var r=e;e=t,t=r}if(i||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,i){return t=t.toLowerCase(),e+(i?al(t):t)});function al(e){return Ei(V(e).toLowerCase())}function ll(e){return e=V(e),e&&e.replace(Kl,Rs).replace(cs,"")}function Kf(e,t,i){e=V(e),t=_e(t);var r=e.length;i=i===o?r:Ct(k(i),0,r);var a=i;return i-=t.length,i>=0&&e.slice(i,a)==t}function Vf(e){return e=V(e),e&&Fl.test(e)?e.replace(ki,Ms):e}function qf(e){return e=V(e),e&&Dl.test(e)?e.replace(wo,"\\$&"):e}var Jf=zt(function(e,t,i){return e+(i?"-":"")+t.toLowerCase()}),Xf=zt(function(e,t,i){return e+(i?" ":"")+t.toLowerCase()}),Zf=ua("toLowerCase");function Qf(e,t,i){e=V(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),i)+e+eo(zn(a),i)}function jf(e,t,i){e=V(e),t=k(t);var r=t?Pt(e):0;return t&&r<t?e+eo(t-r,i):e}function em(e,t,i){e=V(e),t=k(t);var r=t?Pt(e):0;return t&&r<t?eo(t-r,i)+e:e}function tm(e,t,i){return i||t==null?t=0:t&&(t=+t),lp(V(e).replace(_o,""),t||0)}function nm(e,t,i){return(i?ge(e,t,i):t===o)?t=1:t=k(t),ni(V(e),t)}function om(){var e=arguments,t=V(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=zt(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()});function rm(e,t,i){return i&&typeof i!="number"&&ge(e,t,i)&&(t=i=o),i=i===o?Ge:i>>>0,i?(e=V(e),e&&(typeof t=="string"||t!=null&&!Ii(t))&&(t=_e(t),!t&&Dt(e))?gt(ze(e),0,i):e.split(t,i)):[]}var am=zt(function(e,t,i){return e+(i?" ":"")+Ei(t)});function lm(e,t,i){return e=V(e),i=i==null?0:Ct(k(i),0,e.length),t=_e(t),e.slice(i,i+t.length)==t}function sm(e,t,i){var r=s.templateSettings;i&&ge(e,t,i)&&(t=o),e=V(e),t=fo({},t,r,ha);var a=fo({},t.imports,r.imports,ha),p=pe(a),c=Ho(a,p),f,y,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
11
  `;e.replace(F,function(R,Y,G,Fe,ye,Te){return G||(G=Fe),I+=e.slice(C,Te).replace(Vl,Ns),Y&&(f=!0,I+=`' +
12
12
  __e(`+Y+`) +
13
13
  '`),ye&&(y=!0,I+=`';
@@ -24,5 +24,5 @@ __p += '`),G&&(I+=`' +
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+I+`return __p
27
- }`;var H=pl(function(){return W(p,B+"return "+I).apply(o,c)});if(H.source=I,_i(H))throw H;return H}function pm(e){return V(e).toLowerCase()}function um(e){return V(e).toUpperCase()}function cm(e,t,i){if(e=V(e),e&&(i||t===o))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,i){if(e=V(e),e&&(i||t===o))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,i){if(e=V(e),e&&(i||t===o))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 i=mn,r=gn;if(te(t)){var a="separator"in t?t.separator:a;i="length"in t?k(t.length):i,r="omission"in t?_e(t.omission):r}e=V(e);var p=e.length;if(Dt(e)){var c=ze(e);p=c.length}if(i>=p)return e;var f=i-Pt(r);if(f<1)return r;var y=c?gt(c,0,f).join(""):e.slice(0,f);if(a===o)return y+r;if(c&&(f+=y.length-f),Ii(a)){if(e.slice(f).search(a)){var C,w=y;for(a.global||(a=Uo(a.source,V(zi.exec(a))+"g")),a.lastIndex=0;C=a.exec(w);)var I=C.index;y=y.slice(0,I===o?f:I)}}else if(e.indexOf(_e(a),f)!=f){var F=y.lastIndexOf(a);F>-1&&(y=y.slice(0,F))}return y+r}function gm(e){return e=V(e),e&&Il.test(e)?e.replace(Oi,$s):e}var ym=zt(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),Ei=ua("toUpperCase");function sl(e,t,i){return e=V(e),t=i?o:t,t===o?ks(e)?Ks(e):As(e):e.match(t)||[]}var pl=z(function(e,t){try{return Ce(e,o,t)}catch(i){return _i(i)?i:new N(i)}}),hm=tt(function(e,t){return Be(t,function(i){i=Ve(i),je(e,i,Ci(e[i],e))}),e});function bm(e){var t=e==null?0:e.length,i=D();return e=t?ee(e,function(r){if(typeof r[1]!="function")throw new De(h);return[i(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(i){return ln(i,e,t)}}),Fm=z(function(e,t){return function(i){return ln(e,i,t)}});function Bi(e,t,i){var r=pe(t),a=Vn(t,r);i==null&&!(te(t)&&(a.length||!r.length))&&(i=t,t=e,e=this,a=Vn(t,pe(t)));var p=!(te(i)&&"chain"in i)||!!i.chain,c=ot(e);return Be(a,function(f){var y=t[f];e[f]=y,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:y,args:arguments,thisArg:e}),w.__chain__=C,w}return y.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 Kr(t,e)})}var Am=pi(ee),Lm=pi(fr),Bm=pi(Ro);function ul(e){return yi(e)?Mo(Ve(e)):au(e)}function Dm(e){return function(t){return e==null?o: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 i=Ge,r=de(e,Ge);t=D(t),e-=Ge;for(var a=ko(r,t);++i<e;)t(i);return a}function Hm(e){return O(e)?ee(e,Ve):Ie(e)?[e]:he(La(V(e)))}function zm(e){var t=++Xs;return V(e)+t}var Um=jn(function(e,t){return e+t},0),Ym=ui("ceil"),$m=jn(function(e,t){return e/t},1),Gm=ui("floor");function Wm(e){return e&&e.length?Kn(e,ve,Jo):o}function Km(e,t){return e&&e.length?Kn(e,D(t,2),Jo):o}function Vm(e){return yr(e,ve)}function qm(e,t){return yr(e,D(t,2))}function Jm(e){return e&&e.length?Kn(e,ve,jo):o}function Xm(e,t){return e&&e.length?Kn(e,D(t,2),jo):o}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=Ka,s.defaults=mf,s.defaultsDeep=gf,s.defer=wd,s.delay=_d,s.difference=Ku,s.differenceBy=Vu,s.differenceWith=qu,s.drop=Ju,s.dropRight=Xu,s.dropRightWhile=Zu,s.dropWhile=Qu,s.fill=ju,s.filter=td,s.flatMap=id,s.flatMapDeep=rd,s.flatMapDepth=ad,s.flatten=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=Va,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=Kf,s.eq=Ye,s.escape=Vf,s.escapeRegExp=qf,s.every=ed,s.find=nd,s.findIndex=Da,s.findKey=yf,s.findLast=od,s.findLastIndex=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=Kd,s.isEqual=Vd,s.isEqualWith=qd,s.isError=_i,s.isFinite=Jd,s.isFunction=ot,s.isInteger=qa,s.isLength=uo,s.isMap=Ja,s.isMatch=Xd,s.isMatchWith=Zd,s.isNaN=Qd,s.isNative=jd,s.isNil=tf,s.isNull=ef,s.isNumber=Xa,s.isObject=te,s.isObjectLike=oe,s.isPlainObject=fn,s.isRegExp=Ii,s.isSafeInteger=nf,s.isSet=Za,s.isString=co,s.isSymbol=Ie,s.isTypedArray=Yt,s.isUndefined=of,s.isWeakMap=rf,s.isWeakSet=af,s.join=sc,s.kebabCase=Jf,s.last=Ne,s.lastIndexOf=pc,s.lowerCase=Xf,s.lowerFirst=Zf,s.lt=lf,s.lte=sf,s.max=Wm,s.maxBy=Km,s.mean=Vm,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=V,s.toUpper=um,s.trim=cm,s.trimEnd=dm,s.trimStart=fm,s.truncate=mm,s.unescape=gm,s.uniqueId=zm,s.upperCase=ym,s.upperFirst=Ei,s.each=Ha,s.eachRight=za,s.first=Ma,Bi(s,function(){var e={};return We(s,function(t,i){q.call(s.prototype,i)||(e[i]=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(i){i=i===o?1:se(k(i),0);var r=this.__filtered__&&!t?new $(this):this.clone();return r.__filtered__?r.__takeCount__=de(i,r.__takeCount__):r.__views__.push({size:de(i,Ge),type:e+(r.__dir__<0?"Right":"")}),r},$.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),Be(["filter","map","takeWhile"],function(e,t){var i=t+1,r=i==Gt||i==xn;$.prototype[e]=function(a){var p=this.clone();return p.__iteratees__.push({iteratee:D(a,3),type:i}),p.__filtered__=p.__filtered__||r,p}}),Be(["head","last"],function(e,t){var i="take"+(t?"Right":"");$.prototype[e]=function(){return this[i](1).value()[0]}}),Be(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");$.prototype[e]=function(){return this.__filtered__?new $(this):this[i](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(i){return ln(i,e,t)})}),$.prototype.reject=function(e){return this.filter(po(D(e)))},$.prototype.slice=function(e,t){e=k(e);var i=this;return i.__filtered__&&(e>0||t<0)?new $(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==o&&(t=k(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},$.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$.prototype.toArray=function(){return this.take(Ge)},We($.prototype,function(e,t){var i=/^(?: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,y=c instanceof $,C=f[0],w=y||O(c),I=function(Y){var G=a.apply(s,pt([Y],f));return r&&F?G[0]:G};w&&i&&typeof C=="function"&&C.length!=1&&(y=w=!1);var F=this.__chain__,B=!!this.__actions__.length,P=p&&!F,H=y&&!B;if(!p&&w){c=H?c:new $(this);var R=e.apply(c,f);return R.__actions__.push({func:ro,args:[I],thisArg:o}),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],i=/^(?: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[i](function(c){return t.apply(O(c)?c:[],a)})}}),We($.prototype,function(e,t){var i=s[t];if(i){var r=i.name+"";q.call(Ot,r)||(Ot[r]=[]),Ot[r].push({name:t,func:i})}}),Ot[Qn(o,ae).name]=[{name:"wrapper",func:o}],$.prototype.clone=mp,$.prototype.reverse=gp,$.prototype.value=yp,s.prototype.at=Wc,s.prototype.chain=Kc,s.prototype.commit=Vc,s.prototype.next=qc,s.prototype.plant=Xc,s.prototype.reverse=Zc,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Qc,s.prototype.first=s.prototype.head,jt&&(s.prototype[jt]=Jc),s},Rt=Vs();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 o;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:((o=n==null?void 0:n.palette)==null?void 0:o.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,o)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:o,childElementLabel:o},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:o||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty1",{xs:6,sm:6,md:8,lg:8})]}),getArrayControlMultiField=(n,l,o,u,g)=>({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/${o}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:g||"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,o)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:l,options:o}}}),buildWrapper=(n,l)=>({type:"WrapperLayout",config:{main:{label:n||"Details",isAccordion:!0}},elements:l||[]}),getTextArea=(n,l,o,u)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:u||12,main:{label:l,minRows:8,hideButton:o,enableCodeEditor:!0}}}),getSelectField=(n,l,o)=>({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"),getInputField("showKeyAsLabel","ShowKey As Label"),getInputField("rowSpacing","Row Spacing"),getInputField("columnSpacing","Column Spacing"),getInputField("spacing","Spacing"),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"]),getRadioInputField("defaultClosed","Default Closed",["YES","No"]),getInputField("rowSpacing","Row Spacing"),getInputField("columnSpacing","Column Spacing"),getInputField("spacing","Spacing"),emptyBox$1("WrapperSectionEmpty1",{xs:6,sm:0,md:4,lg:3})];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("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"DateTime":l.elements=[getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"Thought":l.elements=[getTextArea("thought","Today's thought",!1)];break;case"Image":l.elements=[getInputField("imageUrl","Image URL"),getInputField("height","Image Height"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),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"),getRadioInputField("useLabel","Use Button",["YES","NO"]),getRadioInputField("externalUpload","External Upload",["YES","NO"]),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];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 o={};return l.pageName&&delete l.pageName,l.eventsSelected&&delete l.eventsSelected,(l.type==="Table"||l.type==="WrapperSection"||l.type==="TabSection")&&(o.elements=l.elements||[],l.elements&&delete l.elements),o.events=l.events||[],l.events&&delete l.events,o={...l,...o},o};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 o={};return n.map(u=>{o[u.key||"xs"]=u.value===null||u.value===void 0||u.value===""?5.5:+u.value}),o},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,o)=>(o.key&&(l[o.key]=o.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 o=n.name;const u=l.split("."),g=[];return u.map((d,h)=>{if(h===0){g.push(d);return}g.push(`${g[h-1]}.${d}`)}),g.map(d=>{const h=_.get(n,d);h?o=o+` > ${(h==null?void 0:h.name)||(h==null?void 0:h.eventType)}`:o=o+" > NewComponent"}),{pageName:o}}},saveFormdataInSessionStorage=(n,l)=>{let o;if(l){const u=getFormdataFromSessionStorage();o=_.set(u,l,buildConfig(n))}else o=buildConfig(n);return sessionStorage.setItem("pageFormdata",JSON.stringify(o)),o},getFormdataFromSessionStorage=n=>{const l=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0;let o;return n&&(o=_.get(l,n),o={...o,...getNavigationHistory(l,n)}),o||(o=getNavigationHistory(l,n)),o||l};async function saveHandler(n,l,o){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 g=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const x=await o(n,l,g);navigateHandler(n,!0,"/PageMasterRecords")}catch(x){navigateHandler(n,!1,void 0,x.message)}else navigateHandler(n,!1)}const navigateHandler=(n,l,o,u)=>{l?(sessionStorage.removeItem("pageFormdata"),n.navigate(o||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:u||"Errors on Page"}))};function okHandler(n){var o;const l=(o=n.searchParams)==null?void 0:o.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","Style","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","Events","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 o=_.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]);o.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],o.elements[0].elements=L||[CoreSection,StyleSection,EventSection(l.theme.myTheme),ValidationSection]}const g=(T=l.searchParams)==null?void 0:T.get("path"),d=g.lastIndexOf("."),h=g.slice(0,d),x=_.get(u,h);((x==null?void 0:x.type)==="Table"||(x==null?void 0:x.type)==="ColumnGroup")&&(o.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"}}},o.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}}},o.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"]}}},o.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"]}}},o.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"}},o.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"}}},o.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"}}},o.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"&&(o.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(o),l.setUiSchema(o)}var Component=(n,l,o,u)=>({setPage:async function(){const g=await this.getFormdata();n.setFormdata(g);const d=this.getSchema();n.setSchema(d),this.refreshPage(g==null?void 0:g.type,n)},refreshPage,getFormdata:function(){var d;const g=(d=n.searchParams)==null?void 0:d.get("path");return getFormdataFromSessionStorage(g)},getSchema:function(){var T,A,L;const g=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(g.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,K)=>{if(K===0){ne.push(X);return}ne.push(`${ne[K-1]}.${X}`)}),ne.map(X=>{const K=_.get(d,X);v.push({label:(K==null?void 0:K.name)||(K==null?void 0:K.eventType)||"NewComponent",path:`/Component?path=${X}${x?`&id=${x}`:""}`})})}return g.properties.pageName.path=v,g},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,u,o),onChange:function(){var g,d,h,x;((g=n==null?void 0:n.formData)==null?void 0:g.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 g=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[${g}]`;n.searchParams.set("path",L),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${g}]`}&id=${h}`)},deleteComponents:function(g=!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),g&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(g=!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)),g&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var h;if(validateAndShowErrors(n))return;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const g=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,g);const d=`${g}.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 g=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[${g}]`;n.navigate(`/ComponentEvents?path=${x}&id=${h}`)},eventAddHandler:function(){var x,v;if(validateAndShowErrors(n))return;const g=(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,g);const h=`${g}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${h}&id=${d}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const g=l.path.split(".")[1];sessionStorage.setItem("rowId",g),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const g=l.path.split(".")[1];sessionStorage.setItem("rowId",g),n.updateDialog("popUpEventSection")},copyPasteElement:function(g,d=this.setPage.bind(this)){var v;const[h,x]=(v=l.path.split(".").pop())==null?void 0:v.split("_");h==="Copy"?this.CopyElement(g,x):this.PasteElement(d,x)},CopyElement:function(g=n,d){var U;const h=lodash.exports.cloneDeep(g.schema),x=lodash.exports.cloneDeep(g.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(g,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),g())},RemoveItemButton:function(g=n){const d=lodash.exports.cloneDeep(g.schema),h=lodash.exports.cloneDeep(g.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(g,d,h){return h==="Component"?g?`${g}.elements[${d}]`:`elements[${d}]`:g?`${g}.events[${d}]`:`events[${d}]`},ElementPathSetter:function(g,d){var x,v,T,A,L,U,ne,X,K,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=g==null?void 0:g.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?g.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`:(qe=(Z=(Ee=(ae=(M=(K=(X=(ne=g==null?void 0:g.elements)==null?void 0:ne[0])==null?void 0:X.elements)==null?void 0:K[1])==null?void 0:M.elements)==null?void 0:ae[0])==null?void 0:Ee.config)==null?void 0:Z.main)!=null&&qe.headerIcons&&(g.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=g==null?void 0:g.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?g.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Event: ${h.eventType}`:(xn=(bn=(Gt=(hn=(yn=(gn=g==null?void 0:g.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&&(g.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:o,submitHandler:u,service:g}=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,o,u,g).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,g,u),Edit_Components:Component(l,o,u,g).editComponents,Delete_Components:async function(){await Component(l,o,u,g).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=o.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=o.path.split(".")[1];sessionStorage.setItem("rowId",d),l.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const d=o.path.split(".")[1];sessionStorage.setItem("rowId",d),l.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(l,o,u,g).copyPasteElement(l,this.setPage.bind(this))},RemoveItemButton:function(){Component(l,o,u,g).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"},{title:"Set Style",const:"setStyle"}]},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 o;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:((o=n==null?void 0:n.palette)==null?void 0:o.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,o,u,g)=>({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,K;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"])),g&&(v.properties.inBuiltFunctionType.oneOf=[...v.properties.inBuiltFunctionType.oneOf,...g]),sessionStorage.getItem("copiedConfig")&&(Component(h,l,o,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:(K=T.name)!=null?K:"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,o,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((K,M)=>{if(M===0){X.push(K);return}X.push(`${X[M-1]}.${K}`)}),X.map(K=>{const M=_.get(h,K);T.push({label:(M==null?void 0:M.name)||(M==null?void 0:M.eventType)||"NewComponent",path:M!=null&&M.eventType?`/ComponentEvents?path=${K}${v?`&id=${v}`:""}`:`/Component?path=${K}${v?`&id=${v}`:""}`})})}return d.properties.pageName.path=_.cloneDeep(T),d},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,u,o),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,o,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,o,u).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,l,o,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 o=window.atob(n),u=new Uint8Array(o.length);for(let A=0;A<o.length;A++)u[A]=o.charCodeAt(A);const g=(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[g]||"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 o=`${l.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((d,h)=>{o=o+`${h===0?"?":"&"}${d}=${n==null?void 0:n.params[d]}`});const u=document.createElement("a");u.href=o,document.body.appendChild(u),u.click(),u.parentNode.removeChild(u)},executeEvents=n=>{var g,d,h;let l=[],o=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;o=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:o})),Promise.resolve())}).then(()=>o);if(!shouldEventExecute(n))return{response:void 0,events:void 0};try{o=executeEventsHandler(n),l=(g=n.config)==null?void 0:g.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:o});return o};function executeEventsHandler(n){var l,o,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(o=n.store.functionParameters)==null?void 0:o.handleNext();if(n.config.Handler==="onResetHandler")return(u=n.store.functionParameters)==null?void 0:u.handleReset()}function getRefreshElements(n,l){var u;let o=[];return((u=n==null?void 0:n.refreshElements)==null?void 0:u.length)>0?o=n.refreshElements.map(g=>g.value):l!=null&&l.onLoad&&(o=Object.keys(l==null?void 0:l.onLoad)),o}async function executeRefreshHandler(n){const l=getRefreshElements(n.config,n.eventGroups);return Promise.allSettled(l.map(o=>{const u=n.eventGroups.onLoad[o];return u?Promise.allSettled(u.map(g=>executeEvents({...n,config:g,componentName:o}))):Promise.resolve()}))}function executeApiRequest(n){var g;const l={...(g=n.userValue)==null?void 0:g.payload},o={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},u=buildApiPayload(n.config,l,o,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,o,u,g){var d,h,x;o.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}}}}):o.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}}}}}):o.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=>{g[v]=n.data[v]})):o.type==="Table"&&o.lazyLoading?n&&(n==null?void 0:n.data)&&(g[l]=(d=n.data)==null?void 0:d.data,g[`${l}_RowCount`]=(x=(h=n.data)==null?void 0:h.meta)==null?void 0:x.totalRowCount):n!=null&&n.data&&(g[l]=n.data)}const buildBodyFormat=(n,l,o,u)=>{let g={...o==null?void 0:o.payload};return n.map(d=>{var h,x,v,T,A;if(typeof(d==null?void 0:d.value)!="string")g[d.key]=d.value;else if((h=d==null?void 0:d.value)!=null&&h.startsWith("$userValue")){const L=d.value.substring(11);g[d.key]=_.get(o,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);g[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)||'""');g[d.key]=U}else if((A=d==null?void 0:d.value)!=null&&A.startsWith("$")){const L=d.value.substring(1);g[d.key]=_.get(l,L)}else(d==null?void 0:d.value)==="*"&&(d==null?void 0:d.key)==="*"?g={...g,...l}:(d==null?void 0:d.value)==="*"?g[d.key]=l:g[d.key]=d.value}),g},buildHeadersFormat=n=>{const l={"X-Requested-With":"XMLHttpRequest"};return n.map(o=>{l[o.key]=o.value}),l};function shouldEventExecute(n){var o,u,g;const l=(u=(o=n.config)==null?void 0:o.events)==null?void 0:u.filter(d=>d.eventType==="onStart");return(l==null?void 0:l.length)>0?((g=l[0])==null?void 0:g.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(o){o.events&&o.events.forEach(u=>{var d;o.type&&(compType=o.type),eventGroups[u.eventType]||(eventGroups[u.eventType]={}),eventGroups[u.eventType][o.name]||(eventGroups[u.eventType][o.name]=[]);const g=(d=u==null?void 0:u.events)==null?void 0:d.find(h=>h.eventType==="Success");!g&&u.eventType==="onLoad"&&(u.events||(u.events=[]),u.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!g&&(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][o.name].push({...u,type:compType})})}return l(n),n!=null&&n.elements&&n.elements.forEach(extractEvents),eventGroups};var service=n=>{const l={};let o={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,g=pageData==null?void 0:pageData.uiSchema,d=new CustomEvent("pageNameChanged",{detail:{pageName:u.label,pageIconUrl:u.pageIconUrl,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),o={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})),g.elements.push(notifyUiSchema),n.store.setUiSchema(g)})},getStyle:()=>{var g,d,h,x;const u=_.cloneDeep(eventGroups);if(u.setStyle){let v={};const T=((g=n.dynamicData)==null?void 0:g.tableButtonPath)||((d=n==null?void 0:n.dynamicData.path)==null?void 0:d.split(".").pop());if((h=u==null?void 0:u.setStyle)!=null&&h[T]){for(const A of(x=u==null?void 0:u.setStyle)==null?void 0:x[T])v=executeEvents({...o,config:A,componentName:T});return v}}return{}},onCellRenderer:u=>{var d,h,x,v,T;const g=_.cloneDeep(eventGroups);if(g.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=g==null?void 0:g.onCellRenderer)!=null&&v[L]){for(const U of(T=g==null?void 0:g.onCellRenderer)==null?void 0:T[L])o.store.functionParameters=u,A=executeEvents({...o,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 g=[{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},g,"onRowMovement");const d=await this.callExecuteEvents({path:u==null?void 0:u.path},g,"onLoad");return d==null?void 0:d.data},onPaginationChange:async function(u){var h,x;const g=[{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,g,"onLoad");return d==null?void 0:d.data},getSelectOptions:async function(u){if(u.serachValue!==""&&u.serachValue!==void 0){const g=[{key:"searchValue",value:u.serachValue},{key:"currentValue",value:u.currentValue}],d=await this.callExecuteEvents(u,g,"onLoad");return d==null?void 0:d.data}},onChange:function(){if(!eventGroups.onChange)return;const g=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({...o,config:v,componentName:d,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(T=>({...T,...l}))}))});Promise.allSettled(g)},callExecuteEvents:async function(u,g,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,...g]:A.body=g;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({...o,config:A,componentName:u.path})}return h},onBack:async function(u){var d,h;const g=((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[g])===void 0&&(u==null||u.handleBack())},onNext:async function(u){var d,h;const g=((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[g])===void 0&&(u==null||u.handleNext())},onReset:async function(u){var d,h;const g=((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[g])===void 0&&(u==null||u.handleReset())},callHandler:function(u,g){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=>(o.store.functionParameters=g,Promise.resolve(executeEvents({...o,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 o=n.elements.map((u,g)=>u.type?{...{widget:buildUiSchema(u),accessorKey:u.name,header:u.label||u.name}}:{accessorKey:u.name,header:u.label||u.name});l.elements=o}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 o=_.cloneDeep(progressBar);return o.scope=l,n.heading&&(o.config.main.heading=n.heading),n.bottomLabel_3&&(o.config.main.bottomLabel_3=n.bottomLabel_3),n.bottomLabel_2&&(o.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(o.elements[0].config.main.bottomLabel_1=n.bottomLabel_1),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},buildProgressBar=(n,l)=>{const o=_.cloneDeep(progressBar);return o.scope=l,n.layout&&(o.config.layout=n.layout),o.config.main.heading=n.label,n.variant&&(o.config.main.variant=n.variant),n.pieArcColors&&(o.config.main.colorRange=flatObjectValueInArray(n.pieArcColors)),n.size&&(o.config.main.size=Number(n.size)),n.bottomLabel_3&&(o.config.main.bottomLabel_3=n.bottomLabel_3),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.bottomLabel_2&&(o.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(o.config.main.bottomLabel_1=n.bottomLabel_1),o},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 o=_.cloneDeep(HorizontalBarGraph);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.type=n.graphType,o.scope=l,o.config.main.header=n.heading,n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.height&&(o.config.style.containerStyle.height=n.height),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),o};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 o=_.cloneDeep(SpeedoMeter);if(o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.heading&&(o.config.main.header=n.heading),n.segments&&(o.config.main.segments=n.segments),n.style){const u=JSON.parse(n.style);u!=null&&u.style&&(o.config.style={...o.config.style,...u.style}),u!=null&&u.containerStyle&&(o.config.style.containerStyle={...o.config.style.containerStyle,...u.containerStyle})}return n.width&&(o.config.main.width=n.width),n.speedoCaption&&(o.config.main.currentValueText=n.speedoCaption),n.data&&(o.config.main.data=n.data),n.needleColor&&(o.config.style.needleColor=n.needleColor),n.segments&&(o.config.style.segments=n.segments),n.endColor&&(o.config.style.endColor=n.endColor),n.startColor&&(o.config.style.startColor=n.startColor),n.segmentColors&&(o.config.style.segmentColors=n.segmentColors),o},buildPieGraph=(n,l)=>{const o=_.cloneDeep(PieGraph);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.height&&(o.config.style.containerStyle.height=n.height),n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),o.scope=l,o.config.main.header=n.heading,n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),o},buildStackbarGraph=(n,l)=>{var u;const o=_.cloneDeep(BarGraph);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.legendHide&&(o.config.main.legendAvailable=n.legendHide,o.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),o.config.main.type=(u=n==null?void 0:n.graphType)!=null?u:"BarGraph",o.config.main.header=n.heading,n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.height&&(o.config.style.containerStyle.height=n.height),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),o.scope=l,o};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 o=_.cloneDeep(RunnerBoyProgressBar);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(n,l)=>{const o=_.cloneDeep(Tabsection);return o.scope=l,n.lazyLoad&&(o.config.main.lazyLoad=n.lazyLoad==="YES"),n.orientation&&(o.config.main.orientation=n.orientation==="YES"?"vertical":"horizontal"),n.sectionLabels&&(o.config.main.tabLabels=n.sectionLabels.map(u=>u.label),o.config.main.tabIcons=n.sectionLabels.map(u=>u.icon)),n.style&&(o.config.style=JSON.parse(n.style)),o.config.main.id=n.name,o};var WrapperSection={type:"WrapperLayout",config:{layout:12,main:{divider:!0,label:"Default Label",rowSpacing:2,columnSpacing:2,spacing:2},defaultStyle:!0},elements:[]};const buildWrapperSection=(n,l)=>{const o=_.cloneDeep(WrapperSection);return o.scope=l,o.config.main.label=n.label,o.config.main.divider=n.divider==="YES",o.config.main.isAccordion=n.isAccordion!=="No",o.config.main.defaultClosed=n.defaultClosed==="YES",o.config.main.rowSpacing=Number(n.rowSpacing),o.config.main.columnSpacing=Number(n.columnSpacing),o.config.main.spacing=Number(n.spacing),n.defaultStyle&&(o.config.defaultStyle=n.defaultStyle==="YES"),n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o};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 o=_.cloneDeep(TextInputField);return o.config.main.label=n.label,n.style&&(o.config.style=JSON.parse(n.style)),n.multiline&&(o.config.main.multiline=n.multiline==="YES"),n.keyName&&(o.config.main.keyName=n.keyName),n.InputFormatingAndMasking&&(o.config.main.formatStrArray=n.InputFormatingAndMasking.map(u=>u.formatElement)),n.placeholder&&(o.config.main.placeholder=n.placeholder),n.variant&&(o.config.main.variant=n.variant),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o.config.main.errorMessage=`${n.name} is empty or invalid`,o.scope=l,o};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 o=_.cloneDeep(SelectInputField);return o.config.main.label=n.label,n.value&&(o.config.main.options=n.value),n.freeSolo&&(o.config.main.freeSolo=n.freeSolo==="YES"),n.lazyLoading&&(o.config.main.lazyLoading=n.lazyLoading==="YES"),n.variant&&(o.config.main.variant=n.variant),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o.scope=l,o};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 o=_.cloneDeep(Button);return n.buttonType&&(o.options.widget=n.buttonType==="IconButton"?"IconButton":"Button",n.buttonType==="ButtonWithIconAndText"?o.config.main.startIcon=n.iconName:o.config.main.icon=n.iconName),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.tooltipMessage&&(o.config.main.tooltipMessage=n.tooltipMessage),n.defaultStyle&&(n.buttonType==="IconButton"?o.config.main.styleDefault=n.defaultStyle==="true":o.config.main.enableDefaultStyle=n.defaultStyle!=="true"),o.scope=l,n.style&&(o.config.style=JSON.parse(n.style)),n.size&&(o.config.main.size=n.size),n.color&&(o.config.main.color=n.color),n.label&&(o.config.main.name=n.label),o};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 o=_.cloneDeep(Table);return o.scope=l,n.style&&(o.config.style=JSON.parse(n.style)),n.lazyLoading&&(o.config.main.lazyLoading=n.lazyLoading==="YES"),n.defaultColumnSize&&(o.config.main.defaultColumnSize=n.defaultColumnSize),n.enableRowMovement&&(o.config.main.enableRowMovement=n.enableRowMovement==="YES"),n.enableExpanding&&(o.config.main.enableExpanding=n.enableExpanding==="YES"),n.enableExpandAll&&(o.config.main.enableExpandAll=n.enableExpandAll==="YES"),n.filterFromLeafRows&&(o.config.main.filterFromLeafRows=n.filterFromLeafRows==="YES"),n.paginateExpandedRows&&(o.config.main.paginateExpandedRows=n.paginateExpandedRows==="YES"),n.treeStructure&&(o.config.main.treeStructure=n.treeStructure==="YES"?"flatTreeMap":!1),n.SelectionAvailable&&(o.config.main.Selection=n.SelectionAvailable==="YES"),n.ColumnResizingAvailable&&(o.config.main.disableColumnResizing=n.ColumnResizingAvailable!=="YES"),n.DragAvailable&&(o.config.main.enableDrag=n.DragAvailable==="YES"),n.downloadAllData&&(o.config.main.downloadAllData=n.downloadAllData==="YES"),n.disableGlobalSearch&&(o.config.main.disableGlobalSearch=n.disableGlobalSearch==="YES"),n.disableColumnFilter&&(o.config.main.disableColumnFilter=n.disableColumnFilter==="YES"),n.disableSorting&&(o.config.main.disableSorting=n.disableSorting==="YES"),n.disableEditColumn&&(o.config.main.disableEditColumn=n.disableEditColumn==="YES"),n.disableFullScreenToggle&&(o.config.main.disableFullScreenToggle=n.disableFullScreenToggle==="YES"),n.disableDensityToggle&&(o.config.main.disableDensityToggle=n.disableDensityToggle==="YES"),n.disableDownloadFile&&(o.config.main.disableDownloadFile=n.disableDownloadFile==="YES"),n.disablePagination&&(o.config.main.disablePagination=n.disablePagination==="YES"),n.Table_Download_Keys_Name&&(o.config.main.TableDownloadKeysName=n.Table_Download_Keys_Name.map(u=>u.KeyName)),n.selectKey&&(o.config.main.selectKey=n.selectKey),n.maxPageSize&&(o.config.main.maxPageSize=n.maxPageSize),n.initialDensity&&(o.config.main.initialDensity=n.initialDensity),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{iconName:"",onClick:"onClick"},style:{}}},buildLabel=(n,l)=>{const o=_.cloneDeep(Box);return o.scope=l,o.config.main.heading=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.iconName&&(o.config.main.iconName=n.iconName),n.style&&(o.config.style=JSON.parse(n.style)),o},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 o=_.cloneDeep(uploadFile);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=n.style),n.required&&(o.config.main.required=!0),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o.config.main.errorMessage=n.errorMessage,o},buildDownloadFile=(n,l)=>{const o=_.cloneDeep(downloadFile);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=n.layout),n.style&&(o.config.style=n.style),n.required&&(o.config.main.required=!0),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.errorMessage&&(o.config.main.errorMessage=n.errorMessage),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o};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,o)=>{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 o=_.cloneDeep(DateInputField);return o.config.main.label=n.label,o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.variant&&(o.config.main.variant=n.variant),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o},buildDateTime=(n,l)=>{const o=_.cloneDeep(DateTime);return o.config.main.label=n.label,o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.variant&&(o.config.main.variant=n.variant),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o};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 o=_.cloneDeep(RankCard);return o.scope=l,n.rank&&(o.config.main.rank=`${n.rank}`),n.height&&(o.config.main.height=`${n.height}px`),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};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 o=_.cloneDeep(RollAndDice);return n.name&&(o.scope=l),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};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 o=_.cloneDeep(Timer);return o.scope=l,n.label&&(o.config.main.label=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};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 o=_.cloneDeep(MultipleSelect);return o.scope=l,n.label&&(o.config.main.label=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.value&&(o.config.main.options=n.value),n.variant&&(o.config.main.variant=n.variant),n.lazyLoading&&(o.config.main.lazyLoading=n.lazyLoading==="YES"),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o},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 o=_.cloneDeep(TextArea);return o.config.main.heading=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),n.placeholder&&(o.config.main.placeholder=n.placeholder),n.enableCodeEditor&&(o.config.main.enableCodeEditor=n.enableCodeEditor==="YES"),n.codeEditorLanguage&&(o.config.main.codeEditorLanguage=n.codeEditorLanguage),o.scope=l,o};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(n,l)=>{const o=_.cloneDeep(cardSlider);return n.name&&(o.scope=l),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},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 o=_.cloneDeep(Checkbox);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o},buildLineGraph=(n,l)=>{const o=_.cloneDeep(LineGraph);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.header=n.heading,n.height&&(o.config.style.containerStyle.height=n.height),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.yAxisValue&&(o.config.main.yAxisValue=n.yAxisValue),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),o.scope=l,o},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 o=_.cloneDeep(RadioUiSchema);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.sectionLabels&&(o.config.main.options=n.sectionLabels.map(u=>u.label||u.Options)),n.style&&(o.config.style=JSON.parse(n.style)),n.errorMessage&&(o.config.main.errorMessage=n.errorMessage),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o};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 o=_.cloneDeep(emptyBox);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:12,elements:[],config:{main:{}}},buildArray=(n,l)=>{const o=_.cloneDeep(ArrayUiSchema);return n.allExpanded&&(o.config.main.allExpanded=n.allExpanded==="YES"),n.disableAddButton&&(o.config.main.disableAddButton=n.disableAddButton==="YES"),n.disableExpandAllButton&&(o.config.main.disableExpandAllButton=n.disableExpandAllButton==="YES"),n.disableRowActions&&(o.config.main.disableRowActions=n.disableRowActions==="YES"),n.style&&(o.config.style=JSON.parse(n.style)),o.config.main.rowSpacing=Number(n.rowSpacing),o.config.main.columnSpacing=Number(n.columnSpacing),o.config.main.spacing=Number(n.spacing),o.config.main.childElementLabel=n.childElementLabel,o.config.main.showKeyAsLabel=n.showKeyAsLabel,o.config.main.label=n.label,o.scope=l,o},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 o=_.cloneDeep(TextField);return o.config.main.label=n.label,n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o.config.main.errorMessage=`${n.name} is empty or invalid`,o.scope=l,o},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 o=_.cloneDeep(PanField);return o.config.main.label=n.label,n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o.config.main.errorMessage=`${n.name} is empty or invalid`,o.scope=l,o},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",onClick:"onClick"},style:{backgroundColor:"none"}}},buildFileInput=(n,l)=>{const o=_.cloneDeep(FileInput);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o.config.main.variant=n.variant,o.config.main.disableUpload=n.disableUpload==="YES",o.config.main.disableDownload=n.disableDownload==="YES",o.config.main.disableDelete=n.disableDelete==="YES",o.config.main.useLabel=n.useLabel==="YES",o.config.main.description=n.description,o.config.main.toolTip=n.toolTip,o.config.main.chooseButtonLabel=n.chooseButtonLabel,o.config.main.noFileAvailableMessage=n.noFileAvailableMessage,n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o.config.main.externalUpload=n.externalUpload==="YES",o},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 o=_.cloneDeep(Stepper);return o.scope=l,o.config.main.resetButton=n.resetButton==="YES",n.defaultButtonAvailable&&(o.config.main.defaultButtonAvailable=n.defaultButtonAvailable==="YES"),o.config.main.resetText=n.resetText||"ResetData",o.config.main.completeText=n.completeText||"Complete Text",o.config.main.orientation=n.orientation||"horizontal",n.sectionLabels&&(o.config.main.steps=n.sectionLabels.map((u,g)=>({label:u.label,id:g}))),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o},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 o=_.cloneDeep(PopUP);return o.scope=l,o.config.main.title=n.label,o.config.main.fullScreen=n.fullScreen==="YES",o.config.main.fullWidth=n.fullWidth==="YES",o.config.main.maxWidth=n.maxWidth||!1,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),o},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(n,l)=>{const o=_.cloneDeep(dataGrid);return o.scope=l,n.elevation&&(o.config.main.elevation=+n.elevation),o.config.main.divider=n.divider!=="NO",n.height&&(o.config.main.height=`${n.height}px`),n.justifyContent&&(o.config.main.justifyContent=n.justifyContent),n.label&&(o.config.main.label=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.cardLayout&&(o.config.cardLayout=createLayoutFormat(n.cardLayout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),o},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 o=_.cloneDeep(InputSlider);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.limitToMax&&(o.config.main.limitToMax=n.limitToMax==="YES"),n.max&&(o.config.main.max=n.max),n.step&&(o.config.main.step=n.step),n.min&&(o.config.main.min=n.min),n.style&&(o.config.main.defaultStyle=JSON.parse(n.style)),o},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 o=_.cloneDeep(TreeMap);return o.scope=l,n.label&&(o.config.main.header=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.orientation&&(o.config.main.orientation=n.orientation),n.linkType&&(o.config.main.linkType=n.linkType),n.graphHeight&&(o.config.main.graphHeight=n.graphHeight),n.graphWidth&&(o.config.main.graphWidth=n.graphWidth),n.graphZoomHeight&&(o.config.main.graphZoomHeight=n.graphZoomHeight),n.graphZoomWidth&&(o.config.main.graphZoomWidth=n.graphZoomWidth),n.style&&(o.config.style=JSON.parse(n.style)),o};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 o=_.cloneDeep(Thought);return o.scope=l,n.thought&&(o.config.main.thought=`${n.thought}`),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.label&&(o.config.main.label=n.label),n.style&&(o.config.style=JSON.parse(n.style)),o};var horizontalLayout={type:"HorizontalLayout",config:{layout:12,main:{rowSpacing:3,divider:!1},defaultStyle:!0},elements:[]};const buildHorizontalLayout=(n,l)=>{const o=_.cloneDeep(horizontalLayout);return o.scope=l,n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o},imageUiSchema={type:"Control",scope:"#/properties/Logo",options:{widget:"Image"},config:{layout:3,main:{url:"",onClick:"onClick"},style:{}}},buildImage=(n,l)=>{const o=_.cloneDeep(imageUiSchema);return o.scope=l,o.config.main.url=n.imageUrl,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),n.height&&(o.config.style.imageStyle={...o.config.style.imageStyle,height:n.height}),o.config.main.toolTip=n.toolTip,o.config.main.toolTipPosition=n.toolTipPosition,o},buildAreaGraph=(n,l)=>{const o=_.cloneDeep(AreaBarGraph);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.type=n.graphType,o.scope=l,o.config.main.header=n.heading,o.config.main.subHeader=n.subHeader,n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.height&&(o.config.style.containerStyle.height=n.height),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisFormatType&&(o.config.main.xAxisFormatType=n.xAxisFormatType),n.xAxisTickCount&&(o.config.main.xAxisTickCount=n.xAxisTickCount),n.yAxisTickCount&&(o.config.main.yAxisTickCount=n.yAxisTickCount),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.xAxisType&&(o.config.main.xAxisType=n.xAxisType),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),o},cameraUiSchema={type:"Control",scope:"#/properties/camera",options:{widget:"Camera"},config:{main:{label:"Upload Photo",multiUplaod:!1,onUpload:"onFileUpload"}}},buildCamera=(n,l)=>{const o=_.cloneDeep(cameraUiSchema);return o.scope=l,n.iconName&&(o.config.main.startIcon=n.iconName),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.tooltipMessage&&(o.config.main.tooltipMessage=n.tooltipMessage),o.config.main.multiUplaod=n.multiUplaod==="YES",n.style&&(o.config.style=JSON.parse(n.style)),n.size&&(o.config.main.size=n.size),n.variant&&(o.config.main.variant=n.variant),n.color&&(o.config.main.color=n.color),n.label&&(o.config.main.label=n.label),o};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 o=_.cloneDeep(ButtonGroup);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.scope=l,n.multiSelect&&(o.config.main.multiSelect=n.multiSelect==="YES"),n.style&&(o.config.style=JSON.parse(n.style)),n.size&&(o.config.main.size=n.size),n.color&&(o.config.main.color=n.color),o},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 o=_.cloneDeep(PopOver);return o.scope=l,o.config.main.positionVertical=n.positionVertical,o.config.main.positionHorizontal=n.positionHorizontal,o.config.main.contentVertical=n.contentVertical,o.config.main.contentHorizontal=n.contentHorizontal,o.config.main.width=n.width,o.config.main.gap=n.gap,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),o},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 o=_.cloneDeep(OTPSchema);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),n.errorMessage&&(o.config.main.errorMessage=n.errorMessage),n.toolTip&&(o.config.main.toolTip=n.toolTip),o.config.main.masking=n.masking==="YES",o.config.main.type=n.OTP_Format,o.config.main.seperator=n.seperator,o.config.main.length=+n.length,o};exports.schema={type:"object",properties:{},required:[]};function buildSchemaFromConfig(n,l){var u,g,d,h,x,v,T,A,L,U,ne,X,K;if(n.elements)if(n.type==="Array"){(u=l.properties)!=null||(l.properties={}),(h=(g=l.properties)[d=n.name])!=null||(g[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 o=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"?(o.type="string",o.disabled=!0):(o.type="string",o[M.validationType]=isNaN(M.validationValue)?M.validationValue:Number(M.validationValue))}),n.type==="Select"&&((X=n.value)==null?void 0:X.length)&&(o.oneOf=n.value.map(M=>({const:M.value,title:M.label}))),n.type==="MultipleSelect"&&((K=n.value)==null?void 0:K.length)&&(o.type="array",o.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 o={};const u=`#/properties/${n.name}`;switch(n.type){case"OTP_Input":o=buildOTP_Input(n,u);break;case"TreeMap":o=buildTreeMap(n,u);break;case"DateTime":o=buildDateTime(n,u);break;case"InputSlider":o=buildInputSlider(n,u);break;case"DataGrid":o=buildDataGrid(n,u);break;case"Stepper":o=buildStepper(n,u);break;case"PopUp":o=buildPopUp(n,u);break;case"PopOver":o=buildPopOver(n,u);break;case"FileInput":o=buildFileInput(n,u);break;case"AadharcardText":o=buildAdhaarField(n,u);break;case"PanCardText":o=buildPanField(n,u);break;case"TabSection":o=buildTabSection(n,u);break;case"RunnerBoyProgressBar":o=RunnerBoyProgressbar(n,u);break;case"WrapperSection":o=buildWrapperSection(n,u);break;case"HorizontalLayout":o=buildHorizontalLayout(n,u);break;case"Text":o=buildTextField(n,u);break;case"TextArea":o=buildTextArea(n,u);break;case"Date":o=buildDate(n,u);break;case"Select":o=buildSelect(n,u);break;case"Radio":o=buildRadio(n,u);break;case"Button":o=buildButton(n,u);break;case"ButtonGroup":o=buildButtonGroup(n,u);break;case"Table":o=buildTable(n,u);break;case"Array":o=buildArray(n,u);break;case"Box":o=buildLabel(n,u);break;case"CheckBox":o=buildCheckbox(n,u);break;case"UploadFile":o=buildUploadFile(n,u);break;case"DownloadFile":o=buildDownloadFile(n,u);break;case"EmptyBox":o=buildEmptyBox(n,u);break;case"card":o=buildCard(n,u,l);break;case"MetricCard":o=buildMetricCard(n,u);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":o=buildStackbarGraph(n,u);break;case"LineGraph":o=buildLineGraph(n,u);break;case"PieGraph":o=buildPieGraph(n,u);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":o=buildHorizontalBarGraph(n,u);break;case"AreaGraph":o=buildAreaGraph(n,u);break;default:o=buildStackbarGraph(n,u);break}break;case"ProgressBar":o=buildProgressBar(n,u);break;case"SpeedoMeter":o=buildSpeedoMeter(n,u);break;case"ProgressBarCard":o=buildProgressBarCard(n,u);break;case"RankCard":o=buildRankCard(n,u);break;case"Rank":o=buildRollAndDice(n,u);break;case"Slider":o=buildSlider(n,u);break;case"Timer":o=buildTimer(n,u);break;case"ColumnGroup":o={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":o=buildMultiSelect(n,u);break;case"LeaderBoard":o=buildLeaderBoard(n);break;case"Thought":o=buildThoughtOfTheDay(n,u);break;case"Image":o=buildImage(n,u);break;case"Camera":o=buildCamera(n,u);break;default:exports.schema={type:"object",properties:{},required:[]},o=buildBasicUiSchema(n)}if(n!=null&&n.elements)if((n==null?void 0:n.type)==="LeaderBoard"){const g=[];n.elements.map(d=>{const h={accessorKey:d.name,type:d.type==="ColumnGroup"?"ColumnGroup":d.columnFormat,header:d.label||d.name,columnKey:d.columnKey};g.push({...h})}),o.elements=g}else if(n.type=="ColumnGroup"){const g={};n.sizeHolder&&n.sizeHolder.map((d,h)=>{g[d.keyName]=d.value}),o.elements=n.elements.map((d,h)=>{const x={accessorKey:d.name,type:d.type==="ColumnGroup"?"ColumnGroup":d.columnFormat,header:d.label||d.name,size:g[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 g={};n.sizeHolder&&n.sizeHolder.map((v,T)=>{g[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:g[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})}),o.elements=x,o.config.action=h,o.config.main.headerIcons.elements=d}else o.elements=n.elements.map((g,d)=>buildUiSchema(g,l));return o};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(o,c)});if(H.source=I,_i(H))throw H;return H}function pm(e){return V(e).toLowerCase()}function um(e){return V(e).toUpperCase()}function cm(e,t,i){if(e=V(e),e&&(i||t===o))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,i){if(e=V(e),e&&(i||t===o))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,i){if(e=V(e),e&&(i||t===o))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 i=mn,r=gn;if(te(t)){var a="separator"in t?t.separator:a;i="length"in t?k(t.length):i,r="omission"in t?_e(t.omission):r}e=V(e);var p=e.length;if(Dt(e)){var c=ze(e);p=c.length}if(i>=p)return e;var f=i-Pt(r);if(f<1)return r;var y=c?gt(c,0,f).join(""):e.slice(0,f);if(a===o)return y+r;if(c&&(f+=y.length-f),Ii(a)){if(e.slice(f).search(a)){var C,w=y;for(a.global||(a=Uo(a.source,V(zi.exec(a))+"g")),a.lastIndex=0;C=a.exec(w);)var I=C.index;y=y.slice(0,I===o?f:I)}}else if(e.indexOf(_e(a),f)!=f){var F=y.lastIndexOf(a);F>-1&&(y=y.slice(0,F))}return y+r}function gm(e){return e=V(e),e&&Il.test(e)?e.replace(Oi,$s):e}var ym=zt(function(e,t,i){return e+(i?" ":"")+t.toUpperCase()}),Ei=ua("toUpperCase");function sl(e,t,i){return e=V(e),t=i?o:t,t===o?ks(e)?Ks(e):As(e):e.match(t)||[]}var pl=z(function(e,t){try{return Ce(e,o,t)}catch(i){return _i(i)?i:new N(i)}}),hm=tt(function(e,t){return Be(t,function(i){i=Ve(i),je(e,i,Ci(e[i],e))}),e});function bm(e){var t=e==null?0:e.length,i=D();return e=t?ee(e,function(r){if(typeof r[1]!="function")throw new De(h);return[i(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(i){return ln(i,e,t)}}),Fm=z(function(e,t){return function(i){return ln(e,i,t)}});function Bi(e,t,i){var r=pe(t),a=Vn(t,r);i==null&&!(te(t)&&(a.length||!r.length))&&(i=t,t=e,e=this,a=Vn(t,pe(t)));var p=!(te(i)&&"chain"in i)||!!i.chain,c=ot(e);return Be(a,function(f){var y=t[f];e[f]=y,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:y,args:arguments,thisArg:e}),w.__chain__=C,w}return y.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 Kr(t,e)})}var Am=pi(ee),Lm=pi(fr),Bm=pi(Ro);function ul(e){return yi(e)?Mo(Ve(e)):au(e)}function Dm(e){return function(t){return e==null?o: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 i=Ge,r=de(e,Ge);t=D(t),e-=Ge;for(var a=ko(r,t);++i<e;)t(i);return a}function Hm(e){return O(e)?ee(e,Ve):Ie(e)?[e]:he(La(V(e)))}function zm(e){var t=++Xs;return V(e)+t}var Um=jn(function(e,t){return e+t},0),Ym=ui("ceil"),$m=jn(function(e,t){return e/t},1),Gm=ui("floor");function Wm(e){return e&&e.length?Kn(e,ve,Jo):o}function Km(e,t){return e&&e.length?Kn(e,D(t,2),Jo):o}function Vm(e){return yr(e,ve)}function qm(e,t){return yr(e,D(t,2))}function Jm(e){return e&&e.length?Kn(e,ve,jo):o}function Xm(e,t){return e&&e.length?Kn(e,D(t,2),jo):o}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=Ka,s.defaults=mf,s.defaultsDeep=gf,s.defer=wd,s.delay=_d,s.difference=Ku,s.differenceBy=Vu,s.differenceWith=qu,s.drop=Ju,s.dropRight=Xu,s.dropRightWhile=Zu,s.dropWhile=Qu,s.fill=ju,s.filter=td,s.flatMap=id,s.flatMapDeep=rd,s.flatMapDepth=ad,s.flatten=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=Va,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=Kf,s.eq=Ye,s.escape=Vf,s.escapeRegExp=qf,s.every=ed,s.find=nd,s.findIndex=Da,s.findKey=yf,s.findLast=od,s.findLastIndex=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=Kd,s.isEqual=Vd,s.isEqualWith=qd,s.isError=_i,s.isFinite=Jd,s.isFunction=ot,s.isInteger=qa,s.isLength=uo,s.isMap=Ja,s.isMatch=Xd,s.isMatchWith=Zd,s.isNaN=Qd,s.isNative=jd,s.isNil=tf,s.isNull=ef,s.isNumber=Xa,s.isObject=te,s.isObjectLike=oe,s.isPlainObject=fn,s.isRegExp=Ii,s.isSafeInteger=nf,s.isSet=Za,s.isString=co,s.isSymbol=Ie,s.isTypedArray=Yt,s.isUndefined=of,s.isWeakMap=rf,s.isWeakSet=af,s.join=sc,s.kebabCase=Jf,s.last=Ne,s.lastIndexOf=pc,s.lowerCase=Xf,s.lowerFirst=Zf,s.lt=lf,s.lte=sf,s.max=Wm,s.maxBy=Km,s.mean=Vm,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=V,s.toUpper=um,s.trim=cm,s.trimEnd=dm,s.trimStart=fm,s.truncate=mm,s.unescape=gm,s.uniqueId=zm,s.upperCase=ym,s.upperFirst=Ei,s.each=Ha,s.eachRight=za,s.first=Ma,Bi(s,function(){var e={};return We(s,function(t,i){q.call(s.prototype,i)||(e[i]=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(i){i=i===o?1:se(k(i),0);var r=this.__filtered__&&!t?new $(this):this.clone();return r.__filtered__?r.__takeCount__=de(i,r.__takeCount__):r.__views__.push({size:de(i,Ge),type:e+(r.__dir__<0?"Right":"")}),r},$.prototype[e+"Right"]=function(i){return this.reverse()[e](i).reverse()}}),Be(["filter","map","takeWhile"],function(e,t){var i=t+1,r=i==Gt||i==xn;$.prototype[e]=function(a){var p=this.clone();return p.__iteratees__.push({iteratee:D(a,3),type:i}),p.__filtered__=p.__filtered__||r,p}}),Be(["head","last"],function(e,t){var i="take"+(t?"Right":"");$.prototype[e]=function(){return this[i](1).value()[0]}}),Be(["initial","tail"],function(e,t){var i="drop"+(t?"":"Right");$.prototype[e]=function(){return this.__filtered__?new $(this):this[i](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(i){return ln(i,e,t)})}),$.prototype.reject=function(e){return this.filter(po(D(e)))},$.prototype.slice=function(e,t){e=k(e);var i=this;return i.__filtered__&&(e>0||t<0)?new $(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),t!==o&&(t=k(t),i=t<0?i.dropRight(-t):i.take(t-e)),i)},$.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$.prototype.toArray=function(){return this.take(Ge)},We($.prototype,function(e,t){var i=/^(?: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,y=c instanceof $,C=f[0],w=y||O(c),I=function(Y){var G=a.apply(s,pt([Y],f));return r&&F?G[0]:G};w&&i&&typeof C=="function"&&C.length!=1&&(y=w=!1);var F=this.__chain__,B=!!this.__actions__.length,P=p&&!F,H=y&&!B;if(!p&&w){c=H?c:new $(this);var R=e.apply(c,f);return R.__actions__.push({func:ro,args:[I],thisArg:o}),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],i=/^(?: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[i](function(c){return t.apply(O(c)?c:[],a)})}}),We($.prototype,function(e,t){var i=s[t];if(i){var r=i.name+"";q.call(Ot,r)||(Ot[r]=[]),Ot[r].push({name:t,func:i})}}),Ot[Qn(o,ae).name]=[{name:"wrapper",func:o}],$.prototype.clone=mp,$.prototype.reverse=gp,$.prototype.value=yp,s.prototype.at=Wc,s.prototype.chain=Kc,s.prototype.commit=Vc,s.prototype.next=qc,s.prototype.plant=Xc,s.prototype.reverse=Zc,s.prototype.toJSON=s.prototype.valueOf=s.prototype.value=Qc,s.prototype.first=s.prototype.head,jt&&(s.prototype[jt]=Jc),s},Rt=Vs();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 o;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:((o=n==null?void 0:n.palette)==null?void 0:o.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,o)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:o,childElementLabel:o},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:o||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty1",{xs:6,sm:6,md:8,lg:8})]}),getArrayControlMultiField=(n,l,o,u,g)=>({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/${o}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:g||"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,o)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:l,options:o}}}),buildWrapper=(n,l)=>({type:"WrapperLayout",config:{main:{label:n||"Details",isAccordion:!0}},elements:l||[]}),getTextArea=(n,l,o,u)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:u||12,main:{label:l,minRows:8,hideButton:o,enableCodeEditor:!0}}}),getSelectField=(n,l,o)=>({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"),getInputField("showKeyAsLabel","ShowKey As Label"),getInputField("rowSpacing","Row Spacing"),getInputField("columnSpacing","Column Spacing"),getInputField("spacing","Spacing"),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"]),getRadioInputField("defaultClosed","Default Closed",["YES","No"]),getInputField("rowSpacing","Row Spacing"),getInputField("columnSpacing","Column Spacing"),getInputField("spacing","Spacing"),emptyBox$1("WrapperSectionEmpty1",{xs:6,sm:0,md:4,lg:3})];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("lazyLoadTree","Lazy Load Tree",["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"),getInputField("subRowsExpansionPageSize","Page Size for Subrows Expansion"),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("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"DateTime":l.elements=[getSelectField("variant","Variant"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];break;case"Thought":l.elements=[getTextArea("thought","Today's thought",!1)];break;case"Image":l.elements=[getInputField("imageUrl","Image URL"),getInputField("height","Image Height"),getInputField("toolTip","Tooltip"),getSelectField("toolTipPosition","Tooltip Position"),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"),getRadioInputField("useLabel","Use Button",["YES","NO"]),getRadioInputField("externalUpload","External Upload",["YES","NO"]),emptyBox$1("imageEmpty",{xs:0,sm:0,md:4,lg:6})];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 o={};return l.pageName&&delete l.pageName,l.eventsSelected&&delete l.eventsSelected,(l.type==="Table"||l.type==="WrapperSection"||l.type==="TabSection")&&(o.elements=l.elements||[],l.elements&&delete l.elements),o.events=l.events||[],l.events&&delete l.events,o={...l,...o},o};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 o={};return n.map(u=>{o[u.key||"xs"]=u.value===null||u.value===void 0||u.value===""?5.5:+u.value}),o},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,o)=>(o.key&&(l[o.key]=o.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 o=n.name;const u=l.split("."),g=[];return u.map((d,h)=>{if(h===0){g.push(d);return}g.push(`${g[h-1]}.${d}`)}),g.map(d=>{const h=_.get(n,d);h?o=o+` > ${(h==null?void 0:h.name)||(h==null?void 0:h.eventType)}`:o=o+" > NewComponent"}),{pageName:o}}},saveFormdataInSessionStorage=(n,l)=>{let o;if(l){const u=getFormdataFromSessionStorage();o=_.set(u,l,buildConfig(n))}else o=buildConfig(n);return sessionStorage.setItem("pageFormdata",JSON.stringify(o)),o},getFormdataFromSessionStorage=n=>{const l=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0;let o;return n&&(o=_.get(l,n),o={...o,...getNavigationHistory(l,n)}),o||(o=getNavigationHistory(l,n)),o||l};async function saveHandler(n,l,o){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 g=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const x=await o(n,l,g);navigateHandler(n,!0,"/PageMasterRecords")}catch(x){navigateHandler(n,!1,void 0,x.message)}else navigateHandler(n,!1)}const navigateHandler=(n,l,o,u)=>{l?(sessionStorage.removeItem("pageFormdata"),n.navigate(o||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:u||"Errors on Page"}))};function okHandler(n){var o;const l=(o=n.searchParams)==null?void 0:o.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","Style","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","Events","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 o=_.cloneDeep(componentBasicUiSchema(l.theme.myTheme)),u=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const E={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=>E[U]);o.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],o.elements[0].elements=L||[CoreSection,StyleSection,EventSection(l.theme.myTheme),ValidationSection]}const g=(T=l.searchParams)==null?void 0:T.get("path"),d=g.lastIndexOf("."),h=g.slice(0,d),x=_.get(u,h);((x==null?void 0:x.type)==="Table"||(x==null?void 0:x.type)==="ColumnGroup")&&(o.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"}}},o.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}}},o.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"]}}},o.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"]}}},o.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"}},o.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"}}},o.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"}}},o.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"&&(o.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(o),l.setUiSchema(o)}var Component=(n,l,o,u)=>({setPage:async function(){const g=await this.getFormdata();n.setFormdata(g);const d=this.getSchema();n.setSchema(d),this.refreshPage(g==null?void 0:g.type,n)},refreshPage,getFormdata:function(){var d;const g=(d=n.searchParams)==null?void 0:d.get("path");return getFormdataFromSessionStorage(g)},getSchema:function(){var T,E,L;const g=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(g.properties.RemoveItemButton.disabled=!1);const d=JSON.parse(sessionStorage.getItem("pageFormdata")),h=(T=n.searchParams)==null?void 0:T.get("path"),x=(E=n.searchParams)==null?void 0:E.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,K)=>{if(K===0){ne.push(X);return}ne.push(`${ne[K-1]}.${X}`)}),ne.map(X=>{const K=_.get(d,X);v.push({label:(K==null?void 0:K.name)||(K==null?void 0:K.eventType)||"NewComponent",path:`/Component?path=${X}${x?`&id=${x}`:""}`})})}return g.properties.pageName.path=v,g},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,u,o),onChange:function(){var g,d,h,x;((g=n==null?void 0:n.formData)==null?void 0:g.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 g=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[${g}]`;n.searchParams.set("path",L),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${g}]`}&id=${h}`)},deleteComponents:function(g=!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),g&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(g=!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)),g&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var h;if(validateAndShowErrors(n))return;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const g=(h=n.searchParams)==null?void 0:h.get("path");saveFormdataInSessionStorage(n.ctx.core.data,g);const d=`${g}.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 g=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[${g}]`;n.navigate(`/ComponentEvents?path=${x}&id=${h}`)},eventAddHandler:function(){var x,v;if(validateAndShowErrors(n))return;const g=(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,g);const h=`${g}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${h}&id=${d}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const g=l.path.split(".")[1];sessionStorage.setItem("rowId",g),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const g=l.path.split(".")[1];sessionStorage.setItem("rowId",g),n.updateDialog("popUpEventSection")},copyPasteElement:function(g,d=this.setPage.bind(this)){var v;const[h,x]=(v=l.path.split(".").pop())==null?void 0:v.split("_");h==="Copy"?this.CopyElement(g,x):this.PasteElement(d,x)},CopyElement:function(g=n,d){var U;const h=lodash.exports.cloneDeep(g.schema),x=lodash.exports.cloneDeep(g.uiSchema);h.properties.RemoveItemButton.disabled=!1;const v=l.path.split(".")[1],T=(U=n.searchParams)==null?void 0:U.get("path"),E=this.elementPathHandler(T,v,d),L=getFormdataFromSessionStorage(E);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(g,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),E=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."};E.Handler&&d==="Component"?n.setNotify({FailMessage:L.Events,Fail:!0}):E.name&&d==="Events"?n.setNotify({FailMessage:L.Component,Fail:!0}):(saveFormdataInSessionStorage(E,T),g())},RemoveItemButton:function(g=n){const d=lodash.exports.cloneDeep(g.schema),h=lodash.exports.cloneDeep(g.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(g,d,h){return h==="Component"?g?`${g}.elements[${d}]`:`elements[${d}]`:g?`${g}.events[${d}]`:`events[${d}]`},ElementPathSetter:function(g,d){var x,v,T,E,L,U,ne,X,K,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=(E=(T=(v=(x=g==null?void 0:g.elements)==null?void 0:x[1])==null?void 0:v.elements)==null?void 0:T[0])==null?void 0:E.config)==null?void 0:L.main)!=null&&U.headerIcons?g.elements[1].elements[0].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Component: ${h.name}`:(qe=(Z=(Ee=(ae=(M=(K=(X=(ne=g==null?void 0:g.elements)==null?void 0:ne[0])==null?void 0:X.elements)==null?void 0:K[1])==null?void 0:M.elements)==null?void 0:ae[0])==null?void 0:Ee.config)==null?void 0:Z.main)!=null&&qe.headerIcons&&(g.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=g==null?void 0:g.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?g.elements[1].elements[1].config.main.headerIcons.elements[1].widget.config.main.tooltipMessage=`Copied Event: ${h.eventType}`:(xn=(bn=(Gt=(hn=(yn=(gn=g==null?void 0:g.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&&(g.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:o,submitHandler:u,service:g}=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,o,u,g).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,g,u),Edit_Components:Component(l,o,u,g).editComponents,Delete_Components:async function(){await Component(l,o,u,g).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=o.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=o.path.split(".")[1];sessionStorage.setItem("rowId",d),l.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const d=o.path.split(".")[1];sessionStorage.setItem("rowId",d),l.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(l,o,u,g).copyPasteElement(l,this.setPage.bind(this))},RemoveItemButton:function(){Component(l,o,u,g).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"},{title:"Set Style",const:"setStyle"}]},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 o;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:((o=n==null?void 0:n.palette)==null?void 0:o.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,o,u,g)=>({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,K;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"])),g&&(v.properties.inBuiltFunctionType.oneOf=[...v.properties.inBuiltFunctionType.oneOf,...g]),sessionStorage.getItem("copiedConfig")&&(Component(h,l,o,u).ElementPathSetter(x),v.properties.RemoveItemButton.disabled=!1);const T=JSON.parse(sessionStorage.getItem("pageFormdata")),E=(ne=h.searchParams)==null?void 0:ne.get("path"),L=(X=h.searchParams)==null?void 0:X.get("id");let U=[{label:(K=T.name)!=null?K:"NewPage",path:`/PageMaster${L?`?id=${L}`:""}`}];if(E){const M=E.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,o,u).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{var E,L,U;const d=_.cloneDeep(EventSchema);sessionStorage.getItem("copiedConfig")&&(d.properties.RemoveItemButton.disabled=!1);const h=JSON.parse(sessionStorage.getItem("pageFormdata")),x=(E=n.searchParams)==null?void 0:E.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((K,M)=>{if(M===0){X.push(K);return}X.push(`${X[M-1]}.${K}`)}),X.map(K=>{const M=_.get(h,K);T.push({label:(M==null?void 0:M.name)||(M==null?void 0:M.eventType)||"NewComponent",path:M!=null&&M.eventType?`/ComponentEvents?path=${K}${v?`&id=${v}`:""}`:`/Component?path=${K}${v?`&id=${v}`:""}`})})}return d.properties.pageName.path=_.cloneDeep(T),d},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,u,o),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,o,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,o,u).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,l,o,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 o=window.atob(n),u=new Uint8Array(o.length);for(let E=0;E<o.length;E++)u[E]=o.charCodeAt(E);const g=(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[g]||"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 o=`${l.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((d,h)=>{o=o+`${h===0?"?":"&"}${d}=${n==null?void 0:n.params[d]}`});const u=document.createElement("a");u.href=o,document.body.appendChild(u),u.click(),u.parentNode.removeChild(u)},executeEvents=n=>{var g,d,h;let l=[],o=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;o=x,l=(T=n.config)==null?void 0:T.events.filter(E=>E.eventType==="Success")}).catch(x=>{var E,L;const v=(L=(E=n.config)==null?void 0:E.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:o})),Promise.resolve())}).then(()=>o);if(!shouldEventExecute(n))return{response:void 0,events:void 0};try{o=executeEventsHandler(n),l=(g=n.config)==null?void 0:g.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:o});return o};function executeEventsHandler(n){var l,o,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(o=n.store.functionParameters)==null?void 0:o.handleNext();if(n.config.Handler==="onResetHandler")return(u=n.store.functionParameters)==null?void 0:u.handleReset()}function getRefreshElements(n,l){var u;let o=[];return((u=n==null?void 0:n.refreshElements)==null?void 0:u.length)>0?o=n.refreshElements.map(g=>g.value):l!=null&&l.onLoad&&(o=Object.keys(l==null?void 0:l.onLoad)),o}async function executeRefreshHandler(n){const l=getRefreshElements(n.config,n.eventGroups);return Promise.allSettled(l.map(o=>{const u=n.eventGroups.onLoad[o];return u?Promise.allSettled(u.map(g=>executeEvents({...n,config:g,componentName:o}))):Promise.resolve()}))}function executeApiRequest(n){var g;const l={...(g=n.userValue)==null?void 0:g.payload},o={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},u=buildApiPayload(n.config,l,o,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,o,u,g){var d,h,x;o.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}}}}):o.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}}}}}):o.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=>{g[v]=n.data[v]})):o.type==="Table"&&o.lazyLoading?n&&(n==null?void 0:n.data)&&(g[l]=(d=n.data)==null?void 0:d.data,g[`${l}_RowCount`]=(x=(h=n.data)==null?void 0:h.meta)==null?void 0:x.totalRowCount):n!=null&&n.data&&(g[l]=n.data)}const buildBodyFormat=(n,l,o,u)=>{let g={...o==null?void 0:o.payload};return n.map(d=>{var h,x,v,T,E;if(typeof(d==null?void 0:d.value)!="string")g[d.key]=d.value;else if((h=d==null?void 0:d.value)!=null&&h.startsWith("$userValue")){const L=d.value.substring(11);g[d.key]=_.get(o,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);g[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)||'""');g[d.key]=U}else if((E=d==null?void 0:d.value)!=null&&E.startsWith("$")){const L=d.value.substring(1);g[d.key]=_.get(l,L)}else(d==null?void 0:d.value)==="*"&&(d==null?void 0:d.key)==="*"?g={...g,...l}:(d==null?void 0:d.value)==="*"?g[d.key]=l:g[d.key]=d.value}),g},buildHeadersFormat=n=>{const l={"X-Requested-With":"XMLHttpRequest"};return n.map(o=>{l[o.key]=o.value}),l};function shouldEventExecute(n){var o,u,g;const l=(u=(o=n.config)==null?void 0:o.events)==null?void 0:u.filter(d=>d.eventType==="onStart");return(l==null?void 0:l.length)>0?((g=l[0])==null?void 0:g.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(o){o.events&&o.events.forEach(u=>{var d;o.type&&(compType=o.type),eventGroups[u.eventType]||(eventGroups[u.eventType]={}),eventGroups[u.eventType][o.name]||(eventGroups[u.eventType][o.name]=[]);const g=(d=u==null?void 0:u.events)==null?void 0:d.find(h=>h.eventType==="Success");!g&&u.eventType==="onLoad"&&(u.events||(u.events=[]),u.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!g&&(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][o.name].push({...u,type:compType})})}return l(n),n!=null&&n.elements&&n.elements.forEach(extractEvents),eventGroups};var service=n=>{const l={};let o={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,g=pageData==null?void 0:pageData.uiSchema,d=new CustomEvent("pageNameChanged",{detail:{pageName:u.label,pageIconUrl:u.pageIconUrl,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),o={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(E=>({...h,...E,properties:{...h.properties,...E.properties}})),executeRefreshHandler({config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:this,eventGroups,formDataHolder:l}).then(E=>{n.store.setFormdata(L=>({...L,...l})),g.elements.push(notifyUiSchema),n.store.setUiSchema(g)})},getStyle:()=>{var g,d,h,x,v;const u=_.cloneDeep(eventGroups);if(u.setStyle){let T={};const E=((g=n.dynamicData)==null?void 0:g.tableButtonPath)||((h=(d=n==null?void 0:n.dynamicData)==null?void 0:d.path)==null?void 0:h.split(".")[0]);if((x=u==null?void 0:u.setStyle)!=null&&x[E]){for(const L of(v=u==null?void 0:u.setStyle)==null?void 0:v[E])T=executeEvents({...o,config:L,componentName:E});return T}}return{}},onCellRenderer:u=>{var d,h,x,v,T;const g=_.cloneDeep(eventGroups);if(g.onCellRenderer){let E={};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=g==null?void 0:g.onCellRenderer)!=null&&v[L]){for(const U of(T=g==null?void 0:g.onCellRenderer)==null?void 0:T[L])o.store.functionParameters=u,E=executeEvents({...o,config:U,componentName:L});return E}}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 g=[{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},g,"onRowMovement");const d=await this.callExecuteEvents({path:u==null?void 0:u.path},g,"onLoad");return d==null?void 0:d.data},onPaginationChange:async function(u){var h,x;const g=[{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:[]},{key:"subRowsPagination",value:u.subRowsPagination||[]}],d=await this.callExecuteEvents(u,g,"onLoad");return d==null?void 0:d.data},getSelectOptions:async function(u){if(u.serachValue!==""&&u.serachValue!==void 0){const g=[{key:"searchValue",value:u.serachValue},{key:"currentValue",value:u.currentValue}],d=await this.callExecuteEvents(u,g,"onLoad");return d==null?void 0:d.data}},onChange:function(){if(!eventGroups.onChange)return;const g=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({...o,config:v,componentName:d,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(T=>({...T,...l}))}))});Promise.allSettled(g)},callExecuteEvents:async function(u,g,d){var v,T;let h;const x=_.cloneDeep(eventGroups);for(const E of(v=x==null?void 0:x[d])==null?void 0:v[u.path]){E.body?E.body=[...E.body,...g]:E.body=g;const L=(T=E==null?void 0:E.events)==null?void 0:T.filter(U=>U.Handler!=="mergeFormdata");E.events=L!=null?L:[],h=await executeEvents({...o,config:E,componentName:u.path})}return h},onBack:async function(u){var d,h;const g=((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[g])===void 0&&(u==null||u.handleBack())},onNext:async function(u){var d,h;const g=((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[g])===void 0&&(u==null||u.handleNext())},onReset:async function(u){var d,h;const g=((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[g])===void 0&&(u==null||u.handleReset())},callHandler:function(u,g){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=>(o.store.functionParameters=g,Promise.resolve(executeEvents({...o,config:T,componentName:d,formDataHolder:l})).then(()=>{lodash.exports.isEmpty(l)||n.store.setFormdata(E=>({...E,...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 o=n.elements.map((u,g)=>u.type?{...{widget:buildUiSchema(u),accessorKey:u.name,header:u.label||u.name}}:{accessorKey:u.name,header:u.label||u.name});l.elements=o}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 o=_.cloneDeep(progressBar);return o.scope=l,n.heading&&(o.config.main.heading=n.heading),n.bottomLabel_3&&(o.config.main.bottomLabel_3=n.bottomLabel_3),n.bottomLabel_2&&(o.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(o.elements[0].config.main.bottomLabel_1=n.bottomLabel_1),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},buildProgressBar=(n,l)=>{const o=_.cloneDeep(progressBar);return o.scope=l,n.layout&&(o.config.layout=n.layout),o.config.main.heading=n.label,n.variant&&(o.config.main.variant=n.variant),n.pieArcColors&&(o.config.main.colorRange=flatObjectValueInArray(n.pieArcColors)),n.size&&(o.config.main.size=Number(n.size)),n.bottomLabel_3&&(o.config.main.bottomLabel_3=n.bottomLabel_3),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.bottomLabel_2&&(o.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(o.config.main.bottomLabel_1=n.bottomLabel_1),o},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 o=_.cloneDeep(HorizontalBarGraph);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.type=n.graphType,o.scope=l,o.config.main.header=n.heading,n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.height&&(o.config.style.containerStyle.height=n.height),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),o};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 o=_.cloneDeep(SpeedoMeter);if(o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.heading&&(o.config.main.header=n.heading),n.segments&&(o.config.main.segments=n.segments),n.style){const u=JSON.parse(n.style);u!=null&&u.style&&(o.config.style={...o.config.style,...u.style}),u!=null&&u.containerStyle&&(o.config.style.containerStyle={...o.config.style.containerStyle,...u.containerStyle})}return n.width&&(o.config.main.width=n.width),n.speedoCaption&&(o.config.main.currentValueText=n.speedoCaption),n.data&&(o.config.main.data=n.data),n.needleColor&&(o.config.style.needleColor=n.needleColor),n.segments&&(o.config.style.segments=n.segments),n.endColor&&(o.config.style.endColor=n.endColor),n.startColor&&(o.config.style.startColor=n.startColor),n.segmentColors&&(o.config.style.segmentColors=n.segmentColors),o},buildPieGraph=(n,l)=>{const o=_.cloneDeep(PieGraph);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.height&&(o.config.style.containerStyle.height=n.height),n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),o.scope=l,o.config.main.header=n.heading,n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),o},buildStackbarGraph=(n,l)=>{var u;const o=_.cloneDeep(BarGraph);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.legendHide&&(o.config.main.legendAvailable=n.legendHide,o.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),o.config.main.type=(u=n==null?void 0:n.graphType)!=null?u:"BarGraph",o.config.main.header=n.heading,n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.height&&(o.config.style.containerStyle.height=n.height),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),o.scope=l,o};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 o=_.cloneDeep(RunnerBoyProgressBar);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(n,l)=>{const o=_.cloneDeep(Tabsection);return o.scope=l,n.lazyLoad&&(o.config.main.lazyLoad=n.lazyLoad==="YES"),n.orientation&&(o.config.main.orientation=n.orientation==="YES"?"vertical":"horizontal"),n.sectionLabels&&(o.config.main.tabLabels=n.sectionLabels.map(u=>u.label),o.config.main.tabIcons=n.sectionLabels.map(u=>u.icon)),n.style&&(o.config.style=JSON.parse(n.style)),o.config.main.id=n.name,o};var WrapperSection={type:"WrapperLayout",config:{layout:12,main:{divider:!0,label:"Default Label",rowSpacing:2,columnSpacing:2,spacing:2},defaultStyle:!0},elements:[]};const buildWrapperSection=(n,l)=>{const o=_.cloneDeep(WrapperSection);return o.scope=l,o.config.main.label=n.label,o.config.main.divider=n.divider==="YES",o.config.main.isAccordion=n.isAccordion!=="No",o.config.main.defaultClosed=n.defaultClosed==="YES",o.config.main.rowSpacing=Number(n.rowSpacing),o.config.main.columnSpacing=Number(n.columnSpacing),o.config.main.spacing=Number(n.spacing),n.defaultStyle&&(o.config.defaultStyle=n.defaultStyle==="YES"),n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o};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 o=_.cloneDeep(TextInputField);return o.config.main.label=n.label,n.style&&(o.config.style=JSON.parse(n.style)),n.multiline&&(o.config.main.multiline=n.multiline==="YES"),n.keyName&&(o.config.main.keyName=n.keyName),n.InputFormatingAndMasking&&(o.config.main.formatStrArray=n.InputFormatingAndMasking.map(u=>u.formatElement)),n.placeholder&&(o.config.main.placeholder=n.placeholder),n.variant&&(o.config.main.variant=n.variant),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o.config.main.errorMessage=`${n.name} is empty or invalid`,o.scope=l,o};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 o=_.cloneDeep(SelectInputField);return o.config.main.label=n.label,n.value&&(o.config.main.options=n.value),n.freeSolo&&(o.config.main.freeSolo=n.freeSolo==="YES"),n.lazyLoading&&(o.config.main.lazyLoading=n.lazyLoading==="YES"),n.variant&&(o.config.main.variant=n.variant),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o.scope=l,o};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 o=_.cloneDeep(Button);return n.buttonType&&(o.options.widget=n.buttonType==="IconButton"?"IconButton":"Button",n.buttonType==="ButtonWithIconAndText"?o.config.main.startIcon=n.iconName:o.config.main.icon=n.iconName),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.tooltipMessage&&(o.config.main.tooltipMessage=n.tooltipMessage),n.defaultStyle&&(n.buttonType==="IconButton"?o.config.main.styleDefault=n.defaultStyle==="true":o.config.main.enableDefaultStyle=n.defaultStyle!=="true"),o.scope=l,n.style&&(o.config.style=JSON.parse(n.style)),n.size&&(o.config.main.size=n.size),n.color&&(o.config.main.color=n.color),n.label&&(o.config.main.name=n.label),o};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 o=_.cloneDeep(Table);return o.scope=l,n.style&&(o.config.style=JSON.parse(n.style)),n.lazyLoading&&(o.config.main.lazyLoading=n.lazyLoading==="YES"),n.lazyLoadTree&&(o.config.main.lazyTree=n.lazyLoadTree==="YES"),n.defaultColumnSize&&(o.config.main.defaultColumnSize=n.defaultColumnSize),n.subRowsExpansionPageSize&&(o.config.main.subRowsExpansionPageSize=n.subRowsExpansionPageSize),n.enableRowMovement&&(o.config.main.enableRowMovement=n.enableRowMovement==="YES"),n.enableExpanding&&(o.config.main.enableExpanding=n.enableExpanding==="YES"),n.enableExpandAll&&(o.config.main.enableExpandAll=n.enableExpandAll==="YES"),n.filterFromLeafRows&&(o.config.main.filterFromLeafRows=n.filterFromLeafRows==="YES"),n.paginateExpandedRows&&(o.config.main.paginateExpandedRows=n.paginateExpandedRows==="YES"),n.treeStructure&&(o.config.main.treeStructure=n.treeStructure==="YES"?"flatTreeMap":!1),n.SelectionAvailable&&(o.config.main.Selection=n.SelectionAvailable==="YES"),n.ColumnResizingAvailable&&(o.config.main.disableColumnResizing=n.ColumnResizingAvailable!=="YES"),n.DragAvailable&&(o.config.main.enableDrag=n.DragAvailable==="YES"),n.downloadAllData&&(o.config.main.downloadAllData=n.downloadAllData==="YES"),n.disableGlobalSearch&&(o.config.main.disableGlobalSearch=n.disableGlobalSearch==="YES"),n.disableColumnFilter&&(o.config.main.disableColumnFilter=n.disableColumnFilter==="YES"),n.disableSorting&&(o.config.main.disableSorting=n.disableSorting==="YES"),n.disableEditColumn&&(o.config.main.disableEditColumn=n.disableEditColumn==="YES"),n.disableFullScreenToggle&&(o.config.main.disableFullScreenToggle=n.disableFullScreenToggle==="YES"),n.disableDensityToggle&&(o.config.main.disableDensityToggle=n.disableDensityToggle==="YES"),n.disableDownloadFile&&(o.config.main.disableDownloadFile=n.disableDownloadFile==="YES"),n.disablePagination&&(o.config.main.disablePagination=n.disablePagination==="YES"),n.Table_Download_Keys_Name&&(o.config.main.TableDownloadKeysName=n.Table_Download_Keys_Name.map(u=>u.KeyName)),n.selectKey&&(o.config.main.selectKey=n.selectKey),n.maxPageSize&&(o.config.main.maxPageSize=n.maxPageSize),n.initialDensity&&(o.config.main.initialDensity=n.initialDensity),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{iconName:"",onClick:"onClick"},style:{}}},buildLabel=(n,l)=>{const o=_.cloneDeep(Box);return o.scope=l,o.config.main.heading=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.iconName&&(o.config.main.iconName=n.iconName),n.style&&(o.config.style=JSON.parse(n.style)),o},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 o=_.cloneDeep(uploadFile);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=n.style),n.required&&(o.config.main.required=!0),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o.config.main.errorMessage=n.errorMessage,o},buildDownloadFile=(n,l)=>{const o=_.cloneDeep(downloadFile);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=n.layout),n.style&&(o.config.style=n.style),n.required&&(o.config.main.required=!0),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.errorMessage&&(o.config.main.errorMessage=n.errorMessage),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o};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,o)=>{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 o=_.cloneDeep(DateInputField);return o.config.main.label=n.label,o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.variant&&(o.config.main.variant=n.variant),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o},buildDateTime=(n,l)=>{const o=_.cloneDeep(DateTime);return o.config.main.label=n.label,o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.variant&&(o.config.main.variant=n.variant),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o};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 o=_.cloneDeep(RankCard);return o.scope=l,n.rank&&(o.config.main.rank=`${n.rank}`),n.height&&(o.config.main.height=`${n.height}px`),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};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 o=_.cloneDeep(RollAndDice);return n.name&&(o.scope=l),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};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 o=_.cloneDeep(Timer);return o.scope=l,n.label&&(o.config.main.label=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o};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 o=_.cloneDeep(MultipleSelect);return o.scope=l,n.label&&(o.config.main.label=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.value&&(o.config.main.options=n.value),n.variant&&(o.config.main.variant=n.variant),n.lazyLoading&&(o.config.main.lazyLoading=n.lazyLoading==="YES"),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),n.style&&(o.config.style=JSON.parse(n.style)),o},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 o=_.cloneDeep(TextArea);return o.config.main.heading=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),n.placeholder&&(o.config.main.placeholder=n.placeholder),n.enableCodeEditor&&(o.config.main.enableCodeEditor=n.enableCodeEditor==="YES"),n.codeEditorLanguage&&(o.config.main.codeEditorLanguage=n.codeEditorLanguage),o.scope=l,o};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(n,l)=>{const o=_.cloneDeep(cardSlider);return n.name&&(o.scope=l),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},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 o=_.cloneDeep(Checkbox);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o},buildLineGraph=(n,l)=>{const o=_.cloneDeep(LineGraph);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.header=n.heading,n.height&&(o.config.style.containerStyle.height=n.height),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.yAxisValue&&(o.config.main.yAxisValue=n.yAxisValue),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),o.scope=l,o},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 o=_.cloneDeep(RadioUiSchema);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.sectionLabels&&(o.config.main.options=n.sectionLabels.map(u=>u.label||u.Options)),n.style&&(o.config.style=JSON.parse(n.style)),n.errorMessage&&(o.config.main.errorMessage=n.errorMessage),n.toolTip&&(o.config.main.toolTip=n.toolTip),n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o};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 o=_.cloneDeep(emptyBox);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:12,elements:[],config:{main:{}}},buildArray=(n,l)=>{const o=_.cloneDeep(ArrayUiSchema);return n.allExpanded&&(o.config.main.allExpanded=n.allExpanded==="YES"),n.disableAddButton&&(o.config.main.disableAddButton=n.disableAddButton==="YES"),n.disableExpandAllButton&&(o.config.main.disableExpandAllButton=n.disableExpandAllButton==="YES"),n.disableRowActions&&(o.config.main.disableRowActions=n.disableRowActions==="YES"),n.style&&(o.config.style=JSON.parse(n.style)),o.config.main.rowSpacing=Number(n.rowSpacing),o.config.main.columnSpacing=Number(n.columnSpacing),o.config.main.spacing=Number(n.spacing),o.config.main.childElementLabel=n.childElementLabel,o.config.main.showKeyAsLabel=n.showKeyAsLabel,o.config.main.label=n.label,o.scope=l,o},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 o=_.cloneDeep(TextField);return o.config.main.label=n.label,n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o.config.main.errorMessage=`${n.name} is empty or invalid`,o.scope=l,o},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 o=_.cloneDeep(PanField);return o.config.main.label=n.label,n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),o.config.main.errorMessage=`${n.name} is empty or invalid`,o.scope=l,o},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",onClick:"onClick"},style:{backgroundColor:"none"}}},buildFileInput=(n,l)=>{const o=_.cloneDeep(FileInput);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o.config.main.variant=n.variant,o.config.main.disableUpload=n.disableUpload==="YES",o.config.main.disableDownload=n.disableDownload==="YES",o.config.main.disableDelete=n.disableDelete==="YES",o.config.main.useLabel=n.useLabel==="YES",o.config.main.description=n.description,o.config.main.toolTip=n.toolTip,o.config.main.chooseButtonLabel=n.chooseButtonLabel,o.config.main.noFileAvailableMessage=n.noFileAvailableMessage,n.toolTipPosition&&(o.config.main.toolTipPosition=n.toolTipPosition),o.config.main.externalUpload=n.externalUpload==="YES",o},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 o=_.cloneDeep(Stepper);return o.scope=l,o.config.main.resetButton=n.resetButton==="YES",n.defaultButtonAvailable&&(o.config.main.defaultButtonAvailable=n.defaultButtonAvailable==="YES"),o.config.main.resetText=n.resetText||"ResetData",o.config.main.completeText=n.completeText||"Complete Text",o.config.main.orientation=n.orientation||"horizontal",n.sectionLabels&&(o.config.main.steps=n.sectionLabels.map((u,g)=>({label:u.label,id:g}))),n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),o},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 o=_.cloneDeep(PopUP);return o.scope=l,o.config.main.title=n.label,o.config.main.fullScreen=n.fullScreen==="YES",o.config.main.fullWidth=n.fullWidth==="YES",o.config.main.maxWidth=n.maxWidth||!1,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),o},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(n,l)=>{const o=_.cloneDeep(dataGrid);return o.scope=l,n.elevation&&(o.config.main.elevation=+n.elevation),o.config.main.divider=n.divider!=="NO",n.height&&(o.config.main.height=`${n.height}px`),n.justifyContent&&(o.config.main.justifyContent=n.justifyContent),n.label&&(o.config.main.label=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.cardLayout&&(o.config.cardLayout=createLayoutFormat(n.cardLayout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),o},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 o=_.cloneDeep(InputSlider);return o.scope=l,o.config.main.label=n.label,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.limitToMax&&(o.config.main.limitToMax=n.limitToMax==="YES"),n.max&&(o.config.main.max=n.max),n.step&&(o.config.main.step=n.step),n.min&&(o.config.main.min=n.min),n.style&&(o.config.main.defaultStyle=JSON.parse(n.style)),o},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 o=_.cloneDeep(TreeMap);return o.scope=l,n.label&&(o.config.main.header=n.label),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.orientation&&(o.config.main.orientation=n.orientation),n.linkType&&(o.config.main.linkType=n.linkType),n.graphHeight&&(o.config.main.graphHeight=n.graphHeight),n.graphWidth&&(o.config.main.graphWidth=n.graphWidth),n.graphZoomHeight&&(o.config.main.graphZoomHeight=n.graphZoomHeight),n.graphZoomWidth&&(o.config.main.graphZoomWidth=n.graphZoomWidth),n.style&&(o.config.style=JSON.parse(n.style)),o};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 o=_.cloneDeep(Thought);return o.scope=l,n.thought&&(o.config.main.thought=`${n.thought}`),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.label&&(o.config.main.label=n.label),n.style&&(o.config.style=JSON.parse(n.style)),o};var horizontalLayout={type:"HorizontalLayout",config:{layout:12,main:{rowSpacing:3,divider:!1},defaultStyle:!0},elements:[]};const buildHorizontalLayout=(n,l)=>{const o=_.cloneDeep(horizontalLayout);return o.scope=l,n.style&&(o.config.style=JSON.parse(n.style)),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o},imageUiSchema={type:"Control",scope:"#/properties/Logo",options:{widget:"Image"},config:{layout:3,main:{url:"",onClick:"onClick"},style:{}}},buildImage=(n,l)=>{const o=_.cloneDeep(imageUiSchema);return o.scope=l,o.config.main.url=n.imageUrl,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),n.height&&(o.config.style.imageStyle={...o.config.style.imageStyle,height:n.height}),o.config.main.toolTip=n.toolTip,o.config.main.toolTipPosition=n.toolTipPosition,o},buildAreaGraph=(n,l)=>{const o=_.cloneDeep(AreaBarGraph);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.config.main.type=n.graphType,o.scope=l,o.config.main.header=n.heading,o.config.main.subHeader=n.subHeader,n.legendHide&&(o.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(o.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(o.config.main.legendLabels=createKeyValueMap(n.legendLabels)),n.legendDirection&&(o.config.main.legendDirection=n.legendDirection==="Row"?"row":"column"),n.height&&(o.config.style.containerStyle.height=n.height),n.pieArcColors&&(o.config.style.colorMap=createKeyValueMap(n.pieArcColors)),n.xAxisFormatType&&(o.config.main.xAxisFormatType=n.xAxisFormatType),n.xAxisTickCount&&(o.config.main.xAxisTickCount=n.xAxisTickCount),n.yAxisTickCount&&(o.config.main.yAxisTickCount=n.yAxisTickCount),n.xAxisValue&&(o.config.main.xAxisValue=n.xAxisValue),n.xAxisType&&(o.config.main.xAxisType=n.xAxisType),n.bottomLabel&&(o.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(o.config.main.leftLabel=n.leftLabel),n.disableLeftLabel&&(o.config.main.disableLeftLabel=n.disableLeftLabel==="YES"),n.leftMargin&&(o.config.style.labelStyle.margin={left:n.leftMargin}),o},cameraUiSchema={type:"Control",scope:"#/properties/camera",options:{widget:"Camera"},config:{main:{label:"Upload Photo",multiUplaod:!1,onUpload:"onFileUpload"}}},buildCamera=(n,l)=>{const o=_.cloneDeep(cameraUiSchema);return o.scope=l,n.iconName&&(o.config.main.startIcon=n.iconName),n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.tooltipMessage&&(o.config.main.tooltipMessage=n.tooltipMessage),o.config.main.multiUplaod=n.multiUplaod==="YES",n.style&&(o.config.style=JSON.parse(n.style)),n.size&&(o.config.main.size=n.size),n.variant&&(o.config.main.variant=n.variant),n.color&&(o.config.main.color=n.color),n.label&&(o.config.main.label=n.label),o};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 o=_.cloneDeep(ButtonGroup);return n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),o.scope=l,n.multiSelect&&(o.config.main.multiSelect=n.multiSelect==="YES"),n.style&&(o.config.style=JSON.parse(n.style)),n.size&&(o.config.main.size=n.size),n.color&&(o.config.main.color=n.color),o},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 o=_.cloneDeep(PopOver);return o.scope=l,o.config.main.positionVertical=n.positionVertical,o.config.main.positionHorizontal=n.positionHorizontal,o.config.main.contentVertical=n.contentVertical,o.config.main.contentHorizontal=n.contentHorizontal,o.config.main.width=n.width,o.config.main.gap=n.gap,n.layout&&(o.config.layout=createLayoutFormat(n.layout,n.type)),n.style&&(o.config.style=JSON.parse(n.style)),o},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 o=_.cloneDeep(OTPSchema);return o.scope=l,n.layout&&(o.config.layout=createLayoutFormat(n.layout)),n.style&&(o.config.style=JSON.parse(n.style)),n.errorMessage&&(o.config.main.errorMessage=n.errorMessage),n.toolTip&&(o.config.main.toolTip=n.toolTip),o.config.main.masking=n.masking==="YES",o.config.main.type=n.OTP_Format,o.config.main.seperator=n.seperator,o.config.main.length=+n.length,o};exports.schema={type:"object",properties:{},required:[]};function buildSchemaFromConfig(n,l){var u,g,d,h,x,v,T,E,L,U,ne,X,K;if(n.elements)if(n.type==="Array"){(u=l.properties)!=null||(l.properties={}),(h=(g=l.properties)[d=n.name])!=null||(g[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=(E=l.properties)[L=n.name])!=null||(E[L]={});const o=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"?(o.type="string",o.disabled=!0):(o.type="string",o[M.validationType]=isNaN(M.validationValue)?M.validationValue:Number(M.validationValue))}),n.type==="Select"&&((X=n.value)==null?void 0:X.length)&&(o.oneOf=n.value.map(M=>({const:M.value,title:M.label}))),n.type==="MultipleSelect"&&((K=n.value)==null?void 0:K.length)&&(o.type="array",o.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 o={};const u=`#/properties/${n.name}`;switch(n.type){case"OTP_Input":o=buildOTP_Input(n,u);break;case"TreeMap":o=buildTreeMap(n,u);break;case"DateTime":o=buildDateTime(n,u);break;case"InputSlider":o=buildInputSlider(n,u);break;case"DataGrid":o=buildDataGrid(n,u);break;case"Stepper":o=buildStepper(n,u);break;case"PopUp":o=buildPopUp(n,u);break;case"PopOver":o=buildPopOver(n,u);break;case"FileInput":o=buildFileInput(n,u);break;case"AadharcardText":o=buildAdhaarField(n,u);break;case"PanCardText":o=buildPanField(n,u);break;case"TabSection":o=buildTabSection(n,u);break;case"RunnerBoyProgressBar":o=RunnerBoyProgressbar(n,u);break;case"WrapperSection":o=buildWrapperSection(n,u);break;case"HorizontalLayout":o=buildHorizontalLayout(n,u);break;case"Text":o=buildTextField(n,u);break;case"TextArea":o=buildTextArea(n,u);break;case"Date":o=buildDate(n,u);break;case"Select":o=buildSelect(n,u);break;case"Radio":o=buildRadio(n,u);break;case"Button":o=buildButton(n,u);break;case"ButtonGroup":o=buildButtonGroup(n,u);break;case"Table":o=buildTable(n,u);break;case"Array":o=buildArray(n,u);break;case"Box":o=buildLabel(n,u);break;case"CheckBox":o=buildCheckbox(n,u);break;case"UploadFile":o=buildUploadFile(n,u);break;case"DownloadFile":o=buildDownloadFile(n,u);break;case"EmptyBox":o=buildEmptyBox(n,u);break;case"card":o=buildCard(n,u,l);break;case"MetricCard":o=buildMetricCard(n,u);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":o=buildStackbarGraph(n,u);break;case"LineGraph":o=buildLineGraph(n,u);break;case"PieGraph":o=buildPieGraph(n,u);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":o=buildHorizontalBarGraph(n,u);break;case"AreaGraph":o=buildAreaGraph(n,u);break;default:o=buildStackbarGraph(n,u);break}break;case"ProgressBar":o=buildProgressBar(n,u);break;case"SpeedoMeter":o=buildSpeedoMeter(n,u);break;case"ProgressBarCard":o=buildProgressBarCard(n,u);break;case"RankCard":o=buildRankCard(n,u);break;case"Rank":o=buildRollAndDice(n,u);break;case"Slider":o=buildSlider(n,u);break;case"Timer":o=buildTimer(n,u);break;case"ColumnGroup":o={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":o=buildMultiSelect(n,u);break;case"LeaderBoard":o=buildLeaderBoard(n);break;case"Thought":o=buildThoughtOfTheDay(n,u);break;case"Image":o=buildImage(n,u);break;case"Camera":o=buildCamera(n,u);break;default:exports.schema={type:"object",properties:{},required:[]},o=buildBasicUiSchema(n)}if(n!=null&&n.elements)if((n==null?void 0:n.type)==="LeaderBoard"){const g=[];n.elements.map(d=>{const h={accessorKey:d.name,type:d.type==="ColumnGroup"?"ColumnGroup":d.columnFormat,header:d.label||d.name,columnKey:d.columnKey};g.push({...h})}),o.elements=g}else if(n.type=="ColumnGroup"){const g={};n.sizeHolder&&n.sizeHolder.map((d,h)=>{g[d.keyName]=d.value}),o.elements=n.elements.map((d,h)=>{const x={accessorKey:d.name,type:d.type==="ColumnGroup"?"ColumnGroup":d.columnFormat,header:d.label||d.name,size:g[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 g={};n.sizeHolder&&n.sizeHolder.map((v,T)=>{g[v.keyName]=v.value});const d=[],h=[],x=[];n.elements.filter((v,T)=>{const E={accessorKey:v.name,type:v.type==="ColumnGroup"?"ColumnGroup":v.columnFormat,header:v.label||v.name,size:g[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,...E,...v.type==="ColumnGroup"?buildUiSchema(v,l):{}};x.push(L)}else x.push({...E})}),o.elements=x,o.config.action=h,o.config.main.headerIcons.elements=d}else o.elements=n.elements.map((g,d)=>buildUiSchema(g,l));return o};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