impaktapps-ui-builder 0.0.101-alpha.67 → 0.0.101-alpha.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,24 +5,24 @@
|
|
|
5
5
|
* Released under MIT license <https://lodash.com/license>
|
|
6
6
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
7
7
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
8
|
-
*/(function(n,s){(function(){var i,d="4.17.21",h=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",b="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",F=500,U="__lodash_placeholder__",M=1,K=2,P=4,V=1,j=2,ae=1,Se=2,ot=4,ue=8,Te=16,ce=32,Fe=64,Le=128,at=256,Tt=512,ht=30,ll="...",sl=800,pl=16,Ti=1,ul=2,cl=3,vt=1/0,lt=9007199254740991,dl=17976931348623157e292,mn=0/0,Ye=4294967295,fl=Ye-1,ml=Ye>>>1,gl=[["ary",Le],["bind",ae],["bindKey",Se],["curry",ue],["curryRight",Te],["flip",Tt],["partial",ce],["partialRight",Fe],["rearg",at]],Ft="[object Arguments]",gn="[object Array]",yl="[object AsyncFunction]",Yt="[object Boolean]",Kt="[object Date]",hl="[object DOMException]",yn="[object Error]",hn="[object Function]",Fi="[object GeneratorFunction]",Oe="[object Map]",Vt="[object Number]",vl="[object Null]",Je="[object Object]",Li="[object Promise]",bl="[object Proxy]",qt="[object RegExp]",Ue="[object Set]",Jt="[object String]",vn="[object Symbol]",xl="[object Undefined]",Xt="[object WeakMap]",Sl="[object WeakSet]",Zt="[object ArrayBuffer]",Lt="[object DataView]",lr="[object Float32Array]",sr="[object Float64Array]",pr="[object Int8Array]",ur="[object Int16Array]",cr="[object Int32Array]",dr="[object Uint8Array]",fr="[object Uint8ClampedArray]",mr="[object Uint16Array]",gr="[object Uint32Array]",Cl=/\b__p \+= '';/g,_l=/\b(__p \+=) '' \+/g,wl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Il=RegExp(Bi.source),El=RegExp(Ri.source),Al=/<%-([\s\S]+?)%>/g,Tl=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,Fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ll=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(yr.source),hr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Ml=/,? & /,Hl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nl=/[()=,{}\[\]\/\s]/,Ol=/\\(\\)?/g,Ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,zl=/^[-+]0x[0-9a-f]+$/i,Wl=/^0b[01]+$/i,$l=/^\[object .+?Constructor\]$/,Gl=/^0o[0-7]+$/i,Yl=/^(?:0|[1-9]\d*)$/,Kl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",ql="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",ki=ql+Jl+Xl,Mi="\\u2700-\\u27bf",Hi="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",Ni="A-Z\\xc0-\\xd6\\xd8-\\xde",Oi="\\ufe0e\\ufe0f",Ui=Zl+Ql+jl+es,vr="['\u2019]",ts="["+xn+"]",zi="["+Ui+"]",Sn="["+ki+"]",Wi="\\d+",ns="["+Mi+"]",$i="["+Hi+"]",Gi="[^"+xn+Ui+Wi+Mi+Hi+Ni+"]",br="\\ud83c[\\udffb-\\udfff]",rs="(?:"+Sn+"|"+br+")",Yi="[^"+xn+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",Sr="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+Ni+"]",Ki="\\u200d",Vi="(?:"+$i+"|"+Gi+")",is="(?:"+Bt+"|"+Gi+")",qi="(?:"+vr+"(?:d|ll|m|re|s|t|ve))?",Ji="(?:"+vr+"(?:D|LL|M|RE|S|T|VE))?",Xi=rs+"?",Zi="["+Oi+"]?",os="(?:"+Ki+"(?:"+[Yi,xr,Sr].join("|")+")"+Zi+Xi+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Zi+Xi+os,ss="(?:"+[ns,xr,Sr].join("|")+")"+Qi,ps="(?:"+[Yi+Sn+"?",Sn,xr,Sr,ts].join("|")+")",us=RegExp(vr,"g"),cs=RegExp(Sn,"g"),Cr=RegExp(br+"(?="+br+")|"+ps+Qi,"g"),ds=RegExp([Bt+"?"+$i+"+"+qi+"(?="+[zi,Bt,"$"].join("|")+")",is+"+"+Ji+"(?="+[zi,Bt+Vi,"$"].join("|")+")",Bt+"?"+Vi+"+"+qi,Bt+"+"+Ji,ls,as,Wi,ss].join("|"),"g"),fs=RegExp("["+Ki+xn+ki+Oi+"]"),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,Z={};Z[lr]=Z[sr]=Z[pr]=Z[ur]=Z[cr]=Z[dr]=Z[fr]=Z[mr]=Z[gr]=!0,Z[Ft]=Z[gn]=Z[Zt]=Z[Yt]=Z[Lt]=Z[Kt]=Z[yn]=Z[hn]=Z[Oe]=Z[Vt]=Z[Je]=Z[qt]=Z[Ue]=Z[Jt]=Z[Xt]=!1;var X={};X[Ft]=X[gn]=X[Zt]=X[Lt]=X[Yt]=X[Kt]=X[lr]=X[sr]=X[pr]=X[ur]=X[cr]=X[Oe]=X[Vt]=X[Je]=X[qt]=X[Ue]=X[Jt]=X[vn]=X[dr]=X[fr]=X[mr]=X[gr]=!0,X[yn]=X[hn]=X[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"},vs={"&":"&","<":"<",">":">",'"':""","'":"'"},bs={"&":"&","<":"<",">":">",""":'"',"'":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ss=parseFloat,Cs=parseInt,ji=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_s=typeof self=="object"&&self&&self.Object===Object&&self,se=ji||_s||Function("return this")(),_r=s&&!s.nodeType&&s,bt=_r&&!0&&n&&!n.nodeType&&n,eo=bt&&bt.exports===_r,wr=eo&&ji.process,Be=function(){try{var m=bt&&bt.require&&bt.require("util").types;return m||wr&&wr.binding&&wr.binding("util")}catch{}}(),to=Be&&Be.isArrayBuffer,no=Be&&Be.isDate,ro=Be&&Be.isMap,io=Be&&Be.isRegExp,oo=Be&&Be.isSet,ao=Be&&Be.isTypedArray;function Ce(m,x,v){switch(v.length){case 0:return m.call(x);case 1:return m.call(x,v[0]);case 2:return m.call(x,v[0],v[1]);case 3:return m.call(x,v[0],v[1],v[2])}return m.apply(x,v)}function ws(m,x,v,A){for(var D=-1,G=m==null?0:m.length;++D<G;){var ie=m[D];x(A,ie,v(ie),m)}return A}function Re(m,x){for(var v=-1,A=m==null?0:m.length;++v<A&&x(m[v],v,m)!==!1;);return m}function Is(m,x){for(var v=m==null?0:m.length;v--&&x(m[v],v,m)!==!1;);return m}function lo(m,x){for(var v=-1,A=m==null?0:m.length;++v<A;)if(!x(m[v],v,m))return!1;return!0}function st(m,x){for(var v=-1,A=m==null?0:m.length,D=0,G=[];++v<A;){var ie=m[v];x(ie,v,m)&&(G[D++]=ie)}return G}function Cn(m,x){var v=m==null?0:m.length;return!!v&&Rt(m,x,0)>-1}function Ir(m,x,v){for(var A=-1,D=m==null?0:m.length;++A<D;)if(v(x,m[A]))return!0;return!1}function Q(m,x){for(var v=-1,A=m==null?0:m.length,D=Array(A);++v<A;)D[v]=x(m[v],v,m);return D}function pt(m,x){for(var v=-1,A=x.length,D=m.length;++v<A;)m[D+v]=x[v];return m}function Er(m,x,v,A){var D=-1,G=m==null?0:m.length;for(A&&G&&(v=m[++D]);++D<G;)v=x(v,m[D],D,m);return v}function Es(m,x,v,A){var D=m==null?0:m.length;for(A&&D&&(v=m[--D]);D--;)v=x(v,m[D],D,m);return v}function Ar(m,x){for(var v=-1,A=m==null?0:m.length;++v<A;)if(x(m[v],v,m))return!0;return!1}var As=Tr("length");function Ts(m){return m.split("")}function Fs(m){return m.match(Hl)||[]}function so(m,x,v){var A;return v(m,function(D,G,ie){if(x(D,G,ie))return A=G,!1}),A}function _n(m,x,v,A){for(var D=m.length,G=v+(A?1:-1);A?G--:++G<D;)if(x(m[G],G,m))return G;return-1}function Rt(m,x,v){return x===x?zs(m,x,v):_n(m,po,v)}function Ls(m,x,v,A){for(var D=v-1,G=m.length;++D<G;)if(A(m[D],x))return D;return-1}function po(m){return m!==m}function uo(m,x){var v=m==null?0:m.length;return v?Lr(m,x)/v:mn}function Tr(m){return function(x){return x==null?i:x[m]}}function Fr(m){return function(x){return m==null?i:m[x]}}function co(m,x,v,A,D){return D(m,function(G,ie,J){v=A?(A=!1,G):x(v,G,ie,J)}),v}function Bs(m,x){var v=m.length;for(m.sort(x);v--;)m[v]=m[v].value;return m}function Lr(m,x){for(var v,A=-1,D=m.length;++A<D;){var G=x(m[A]);G!==i&&(v=v===i?G:v+G)}return v}function Br(m,x){for(var v=-1,A=Array(m);++v<m;)A[v]=x(v);return A}function Rs(m,x){return Q(x,function(v){return[v,m[v]]})}function fo(m){return m&&m.slice(0,ho(m)+1).replace(hr,"")}function _e(m){return function(x){return m(x)}}function Rr(m,x){return Q(x,function(v){return m[v]})}function Qt(m,x){return m.has(x)}function mo(m,x){for(var v=-1,A=m.length;++v<A&&Rt(x,m[v],0)>-1;);return v}function go(m,x){for(var v=m.length;v--&&Rt(x,m[v],0)>-1;);return v}function Ds(m,x){for(var v=m.length,A=0;v--;)m[v]===x&&++A;return A}var Ps=Fr(hs),ks=Fr(vs);function Ms(m){return"\\"+xs[m]}function Hs(m,x){return m==null?i:m[x]}function Dt(m){return fs.test(m)}function Ns(m){return ms.test(m)}function Os(m){for(var x,v=[];!(x=m.next()).done;)v.push(x.value);return v}function Dr(m){var x=-1,v=Array(m.size);return m.forEach(function(A,D){v[++x]=[D,A]}),v}function yo(m,x){return function(v){return m(x(v))}}function ut(m,x){for(var v=-1,A=m.length,D=0,G=[];++v<A;){var ie=m[v];(ie===x||ie===U)&&(m[v]=U,G[D++]=v)}return G}function wn(m){var x=-1,v=Array(m.size);return m.forEach(function(A){v[++x]=A}),v}function Us(m){var x=-1,v=Array(m.size);return m.forEach(function(A){v[++x]=[A,A]}),v}function zs(m,x,v){for(var A=v-1,D=m.length;++A<D;)if(m[A]===x)return A;return-1}function Ws(m,x,v){for(var A=v+1;A--;)if(m[A]===x)return A;return A}function Pt(m){return Dt(m)?Gs(m):As(m)}function ze(m){return Dt(m)?Ys(m):Ts(m)}function ho(m){for(var x=m.length;x--&&Dl.test(m.charAt(x)););return x}var $s=Fr(bs);function Gs(m){for(var x=Cr.lastIndex=0;Cr.test(m);)++x;return x}function Ys(m){return m.match(Cr)||[]}function Ks(m){return m.match(ds)||[]}var Vs=function m(x){x=x==null?se:kt.defaults(se.Object(),x,kt.pick(se,gs));var v=x.Array,A=x.Date,D=x.Error,G=x.Function,ie=x.Math,J=x.Object,Pr=x.RegExp,qs=x.String,De=x.TypeError,In=v.prototype,Js=G.prototype,Mt=J.prototype,En=x["__core-js_shared__"],An=Js.toString,q=Mt.hasOwnProperty,Xs=0,vo=function(){var e=/[^.]+$/.exec(En&&En.keys&&En.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Tn=Mt.toString,Zs=An.call(J),Qs=se._,js=Pr("^"+An.call(q).replace(yr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fn=eo?x.Buffer:i,ct=x.Symbol,Ln=x.Uint8Array,bo=Fn?Fn.allocUnsafe:i,Bn=yo(J.getPrototypeOf,J),xo=J.create,So=Mt.propertyIsEnumerable,Rn=In.splice,Co=ct?ct.isConcatSpreadable:i,jt=ct?ct.iterator:i,xt=ct?ct.toStringTag:i,Dn=function(){try{var e=It(J,"defineProperty");return e({},"",{}),e}catch{}}(),ep=x.clearTimeout!==se.clearTimeout&&x.clearTimeout,tp=A&&A.now!==se.Date.now&&A.now,np=x.setTimeout!==se.setTimeout&&x.setTimeout,Pn=ie.ceil,kn=ie.floor,kr=J.getOwnPropertySymbols,rp=Fn?Fn.isBuffer:i,_o=x.isFinite,ip=In.join,op=yo(J.keys,J),oe=ie.max,de=ie.min,ap=A.now,lp=x.parseInt,wo=ie.random,sp=In.reverse,Mr=It(x,"DataView"),en=It(x,"Map"),Hr=It(x,"Promise"),Ht=It(x,"Set"),tn=It(x,"WeakMap"),nn=It(J,"create"),Mn=tn&&new tn,Nt={},pp=Et(Mr),up=Et(en),cp=Et(Hr),dp=Et(Ht),fp=Et(tn),Hn=ct?ct.prototype:i,rn=Hn?Hn.valueOf:i,Io=Hn?Hn.toString:i;function l(e){if(te(e)&&!k(e)&&!(e instanceof W)){if(e instanceof Pe)return e;if(q.call(e,"__wrapped__"))return Ea(e)}return new Pe(e)}var Ot=function(){function e(){}return function(t){if(!ee(t))return{};if(xo)return xo(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Nn(){}function Pe(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Al,evaluate:Tl,interpolate:Di,variable:"",imports:{_:l}},l.prototype=Nn.prototype,l.prototype.constructor=l,Pe.prototype=Ot(Nn.prototype),Pe.prototype.constructor=Pe;function W(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ye,this.__views__=[]}function mp(){var e=new W(this.__wrapped__);return e.__actions__=he(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=he(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=he(this.__views__),e}function gp(){if(this.__filtered__){var e=new W(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yp(){var e=this.__wrapped__.value(),t=this.__dir__,r=k(e),o=t<0,a=r?e.length:0,p=Tu(0,a,this.__views__),u=p.start,f=p.end,g=f-u,S=o?f:u-1,C=this.__iteratees__,w=C.length,E=0,T=de(g,this.__takeCount__);if(!r||!o&&a==g&&T==g)return Jo(e,this.__actions__);var B=[];e:for(;g--&&E<T;){S+=t;for(var N=-1,R=e[S];++N<w;){var z=C[N],$=z.iteratee,Ee=z.type,ye=$(R);if(Ee==ul)R=ye;else if(!ye){if(Ee==Ti)continue e;break e}}B[E++]=R}return B}W.prototype=Ot(Nn.prototype),W.prototype.constructor=W;function St(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function hp(){this.__data__=nn?nn(null):{},this.size=0}function vp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bp(e){var t=this.__data__;if(nn){var r=t[e];return r===I?i:r}return q.call(t,e)?t[e]:i}function xp(e){var t=this.__data__;return nn?t[e]!==i:q.call(t,e)}function Sp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nn&&t===i?I:t,this}St.prototype.clear=hp,St.prototype.delete=vp,St.prototype.get=bp,St.prototype.has=xp,St.prototype.set=Sp;function Xe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function Cp(){this.__data__=[],this.size=0}function _p(e){var t=this.__data__,r=On(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():Rn.call(t,r,1),--this.size,!0}function wp(e){var t=this.__data__,r=On(t,e);return r<0?i:t[r][1]}function Ip(e){return On(this.__data__,e)>-1}function Ep(e,t){var r=this.__data__,o=On(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}Xe.prototype.clear=Cp,Xe.prototype.delete=_p,Xe.prototype.get=wp,Xe.prototype.has=Ip,Xe.prototype.set=Ep;function Ze(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function Ap(){this.size=0,this.__data__={hash:new St,map:new(en||Xe),string:new St}}function Tp(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t}function Fp(e){return Zn(this,e).get(e)}function Lp(e){return Zn(this,e).has(e)}function Bp(e,t){var r=Zn(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}Ze.prototype.clear=Ap,Ze.prototype.delete=Tp,Ze.prototype.get=Fp,Ze.prototype.has=Lp,Ze.prototype.set=Bp;function Ct(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Ze;++t<r;)this.add(e[t])}function Rp(e){return this.__data__.set(e,I),this}function Dp(e){return this.__data__.has(e)}Ct.prototype.add=Ct.prototype.push=Rp,Ct.prototype.has=Dp;function We(e){var t=this.__data__=new Xe(e);this.size=t.size}function Pp(){this.__data__=new Xe,this.size=0}function kp(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Mp(e){return this.__data__.get(e)}function Hp(e){return this.__data__.has(e)}function Np(e,t){var r=this.__data__;if(r instanceof Xe){var o=r.__data__;if(!en||o.length<h-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Ze(o)}return r.set(e,t),this.size=r.size,this}We.prototype.clear=Pp,We.prototype.delete=kp,We.prototype.get=Mp,We.prototype.has=Hp,We.prototype.set=Np;function Eo(e,t){var r=k(e),o=!r&&At(e),a=!r&&!o&&yt(e),p=!r&&!o&&!a&&$t(e),u=r||o||a||p,f=u?Br(e.length,qs):[],g=f.length;for(var S in e)(t||q.call(e,S))&&!(u&&(S=="length"||a&&(S=="offset"||S=="parent")||p&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||tt(S,g)))&&f.push(S);return f}function Ao(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Op(e,t){return Qn(he(e),_t(t,0,e.length))}function Up(e){return Qn(he(e))}function Nr(e,t,r){(r!==i&&!$e(e[t],r)||r===i&&!(t in e))&&Qe(e,t,r)}function on(e,t,r){var o=e[t];(!(q.call(e,t)&&$e(o,r))||r===i&&!(t in e))&&Qe(e,t,r)}function On(e,t){for(var r=e.length;r--;)if($e(e[r][0],t))return r;return-1}function zp(e,t,r,o){return dt(e,function(a,p,u){t(o,a,r(a),u)}),o}function To(e,t){return e&&Ve(t,le(t),e)}function Wp(e,t){return e&&Ve(t,be(t),e)}function Qe(e,t,r){t=="__proto__"&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Or(e,t){for(var r=-1,o=t.length,a=v(o),p=e==null;++r<o;)a[r]=p?i:bi(e,t[r]);return a}function _t(e,t,r){return e===e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function ke(e,t,r,o,a,p){var u,f=t&M,g=t&K,S=t&P;if(r&&(u=a?r(e,o,a,p):r(e)),u!==i)return u;if(!ee(e))return e;var C=k(e);if(C){if(u=Lu(e),!f)return he(e,u)}else{var w=fe(e),E=w==hn||w==Fi;if(yt(e))return Qo(e,f);if(w==Je||w==Ft||E&&!a){if(u=g||E?{}:ha(e),!f)return g?bu(e,Wp(u,e)):vu(e,To(u,e))}else{if(!X[w])return a?e:{};u=Bu(e,w,f)}}p||(p=new We);var T=p.get(e);if(T)return T;p.set(e,u),Ka(e)?e.forEach(function(R){u.add(ke(R,t,r,R,e,p))}):Ga(e)&&e.forEach(function(R,z){u.set(z,ke(R,t,r,z,e,p))});var B=S?g?oi:ii:g?be:le,N=C?i:B(e);return Re(N||e,function(R,z){N&&(z=R,R=e[z]),on(u,z,ke(R,t,r,z,e,p))}),u}function $p(e){var t=le(e);return function(r){return Fo(r,e,t)}}function Fo(e,t,r){var o=r.length;if(e==null)return!o;for(e=J(e);o--;){var a=r[o],p=t[a],u=e[a];if(u===i&&!(a in e)||!p(u))return!1}return!0}function Lo(e,t,r){if(typeof e!="function")throw new De(y);return dn(function(){e.apply(i,r)},t)}function an(e,t,r,o){var a=-1,p=Cn,u=!0,f=e.length,g=[],S=t.length;if(!f)return g;r&&(t=Q(t,_e(r))),o?(p=Ir,u=!1):t.length>=h&&(p=Qt,u=!1,t=new Ct(t));e:for(;++a<f;){var C=e[a],w=r==null?C:r(C);if(C=o||C!==0?C:0,u&&w===w){for(var E=S;E--;)if(t[E]===w)continue e;g.push(C)}else p(t,w,o)||g.push(C)}return g}var dt=ra(Ke),Bo=ra(zr,!0);function Gp(e,t){var r=!0;return dt(e,function(o,a,p){return r=!!t(o,a,p),r}),r}function Un(e,t,r){for(var o=-1,a=e.length;++o<a;){var p=e[o],u=t(p);if(u!=null&&(f===i?u===u&&!Ie(u):r(u,f)))var f=u,g=p}return g}function Yp(e,t,r,o){var a=e.length;for(r=H(r),r<0&&(r=-r>a?0:a+r),o=o===i||o>a?a:H(o),o<0&&(o+=a),o=r>o?0:qa(o);r<o;)e[r++]=t;return e}function Ro(e,t){var r=[];return dt(e,function(o,a,p){t(o,a,p)&&r.push(o)}),r}function pe(e,t,r,o,a){var p=-1,u=e.length;for(r||(r=Du),a||(a=[]);++p<u;){var f=e[p];t>0&&r(f)?t>1?pe(f,t-1,r,o,a):pt(a,f):o||(a[a.length]=f)}return a}var Ur=ia(),Do=ia(!0);function Ke(e,t){return e&&Ur(e,t,le)}function zr(e,t){return e&&Do(e,t,le)}function zn(e,t){return st(t,function(r){return nt(e[r])})}function wt(e,t){t=mt(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[qe(t[r++])];return r&&r==o?e:i}function Po(e,t,r){var o=t(e);return k(e)?o:pt(o,r(e))}function me(e){return e==null?e===i?xl:vl:xt&&xt in J(e)?Au(e):Uu(e)}function Wr(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,r){return e>=de(t,r)&&e<oe(t,r)}function $r(e,t,r){for(var o=r?Ir:Cn,a=e[0].length,p=e.length,u=p,f=v(p),g=1/0,S=[];u--;){var C=e[u];u&&t&&(C=Q(C,_e(t))),g=de(C.length,g),f[u]=!r&&(t||a>=120&&C.length>=120)?new Ct(u&&C):i}C=e[0];var w=-1,E=f[0];e:for(;++w<a&&S.length<g;){var T=C[w],B=t?t(T):T;if(T=r||T!==0?T:0,!(E?Qt(E,B):o(S,B,r))){for(u=p;--u;){var N=f[u];if(!(N?Qt(N,B):o(e[u],B,r)))continue e}E&&E.push(B),S.push(T)}}return S}function Jp(e,t,r,o){return Ke(e,function(a,p,u){t(o,r(a),p,u)}),o}function ln(e,t,r){t=mt(t,e),e=Sa(e,t);var o=e==null?e:e[qe(He(t))];return o==null?i:Ce(o,e,r)}function ko(e){return te(e)&&me(e)==Ft}function Xp(e){return te(e)&&me(e)==Zt}function Zp(e){return te(e)&&me(e)==Kt}function sn(e,t,r,o,a){return e===t?!0:e==null||t==null||!te(e)&&!te(t)?e!==e&&t!==t:Qp(e,t,r,o,sn,a)}function Qp(e,t,r,o,a,p){var u=k(e),f=k(t),g=u?gn:fe(e),S=f?gn:fe(t);g=g==Ft?Je:g,S=S==Ft?Je:S;var C=g==Je,w=S==Je,E=g==S;if(E&&yt(e)){if(!yt(t))return!1;u=!0,C=!1}if(E&&!C)return p||(p=new We),u||$t(e)?ma(e,t,r,o,a,p):Iu(e,t,g,r,o,a,p);if(!(r&V)){var T=C&&q.call(e,"__wrapped__"),B=w&&q.call(t,"__wrapped__");if(T||B){var N=T?e.value():e,R=B?t.value():t;return p||(p=new We),a(N,R,r,o,p)}}return E?(p||(p=new We),Eu(e,t,r,o,a,p)):!1}function jp(e){return te(e)&&fe(e)==Oe}function Gr(e,t,r,o){var a=r.length,p=a,u=!o;if(e==null)return!p;for(e=J(e);a--;){var f=r[a];if(u&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++a<p;){f=r[a];var g=f[0],S=e[g],C=f[1];if(u&&f[2]){if(S===i&&!(g in e))return!1}else{var w=new We;if(o)var E=o(S,C,g,e,t,w);if(!(E===i?sn(C,S,V|j,o,w):E))return!1}}return!0}function Mo(e){if(!ee(e)||ku(e))return!1;var t=nt(e)?js:$l;return t.test(Et(e))}function eu(e){return te(e)&&me(e)==qt}function tu(e){return te(e)&&fe(e)==Ue}function nu(e){return te(e)&&ir(e.length)&&!!Z[me(e)]}function Ho(e){return typeof e=="function"?e:e==null?xe:typeof e=="object"?k(e)?Uo(e[0],e[1]):Oo(e):ol(e)}function Yr(e){if(!cn(e))return op(e);var t=[];for(var r in J(e))q.call(e,r)&&r!="constructor"&&t.push(r);return t}function ru(e){if(!ee(e))return Ou(e);var t=cn(e),r=[];for(var o in e)o=="constructor"&&(t||!q.call(e,o))||r.push(o);return r}function Kr(e,t){return e<t}function No(e,t){var r=-1,o=ve(e)?v(e.length):[];return dt(e,function(a,p,u){o[++r]=t(a,p,u)}),o}function Oo(e){var t=li(e);return t.length==1&&t[0][2]?ba(t[0][0],t[0][1]):function(r){return r===e||Gr(r,e,t)}}function Uo(e,t){return pi(e)&&va(t)?ba(qe(e),t):function(r){var o=bi(r,e);return o===i&&o===t?xi(r,e):sn(t,o,V|j)}}function Wn(e,t,r,o,a){e!==t&&Ur(t,function(p,u){if(a||(a=new We),ee(p))iu(e,t,u,r,Wn,o,a);else{var f=o?o(ci(e,u),p,u+"",e,t,a):i;f===i&&(f=p),Nr(e,u,f)}},be)}function iu(e,t,r,o,a,p,u){var f=ci(e,r),g=ci(t,r),S=u.get(g);if(S){Nr(e,r,S);return}var C=p?p(f,g,r+"",e,t,u):i,w=C===i;if(w){var E=k(g),T=!E&&yt(g),B=!E&&!T&&$t(g);C=g,E||T||B?k(f)?C=f:ne(f)?C=he(f):T?(w=!1,C=Qo(g,!0)):B?(w=!1,C=jo(g,!0)):C=[]:fn(g)||At(g)?(C=f,At(f)?C=Ja(f):(!ee(f)||nt(f))&&(C=ha(g))):w=!1}w&&(u.set(g,C),a(C,g,o,p,u),u.delete(g)),Nr(e,r,C)}function zo(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,tt(t,r)?e[t]:i}function Wo(e,t,r){t.length?t=Q(t,function(p){return k(p)?function(u){return wt(u,p.length===1?p[0]:p)}:p}):t=[xe];var o=-1;t=Q(t,_e(L()));var a=No(e,function(p,u,f){var g=Q(t,function(S){return S(p)});return{criteria:g,index:++o,value:p}});return Bs(a,function(p,u){return hu(p,u,r)})}function ou(e,t){return $o(e,t,function(r,o){return xi(e,o)})}function $o(e,t,r){for(var o=-1,a=t.length,p={};++o<a;){var u=t[o],f=wt(e,u);r(f,u)&&pn(p,mt(u,e),f)}return p}function au(e){return function(t){return wt(t,e)}}function Vr(e,t,r,o){var a=o?Ls:Rt,p=-1,u=t.length,f=e;for(e===t&&(t=he(t)),r&&(f=Q(e,_e(r)));++p<u;)for(var g=0,S=t[p],C=r?r(S):S;(g=a(f,C,g,o))>-1;)f!==e&&Rn.call(f,g,1),Rn.call(e,g,1);return e}function Go(e,t){for(var r=e?t.length:0,o=r-1;r--;){var a=t[r];if(r==o||a!==p){var p=a;tt(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function qr(e,t){return e+kn(wo()*(t-e+1))}function lu(e,t,r,o){for(var a=-1,p=oe(Pn((t-e)/(r||1)),0),u=v(p);p--;)u[o?p:++a]=e,e+=r;return u}function Jr(e,t){var r="";if(!e||t<1||t>lt)return r;do t%2&&(r+=e),t=kn(t/2),t&&(e+=e);while(t);return r}function O(e,t){return di(xa(e,t,xe),e+"")}function su(e){return Ao(Gt(e))}function pu(e,t){var r=Gt(e);return Qn(r,_t(t,0,r.length))}function pn(e,t,r,o){if(!ee(e))return e;t=mt(t,e);for(var a=-1,p=t.length,u=p-1,f=e;f!=null&&++a<p;){var g=qe(t[a]),S=r;if(g==="__proto__"||g==="constructor"||g==="prototype")return e;if(a!=u){var C=f[g];S=o?o(C,g,f):i,S===i&&(S=ee(C)?C:tt(t[a+1])?[]:{})}on(f,g,S),f=f[g]}return e}var Yo=Mn?function(e,t){return Mn.set(e,t),e}:xe,uu=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Ci(t),writable:!0})}:xe;function cu(e){return Qn(Gt(e))}function Me(e,t,r){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var p=v(a);++o<a;)p[o]=e[o+t];return p}function du(e,t){var r;return dt(e,function(o,a,p){return r=t(o,a,p),!r}),!!r}function $n(e,t,r){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=ml){for(;o<a;){var p=o+a>>>1,u=e[p];u!==null&&!Ie(u)&&(r?u<=t:u<t)?o=p+1:a=p}return a}return Xr(e,t,xe,r)}function Xr(e,t,r,o){var a=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var u=t!==t,f=t===null,g=Ie(t),S=t===i;a<p;){var C=kn((a+p)/2),w=r(e[C]),E=w!==i,T=w===null,B=w===w,N=Ie(w);if(u)var R=o||B;else S?R=B&&(o||E):f?R=B&&E&&(o||!T):g?R=B&&E&&!T&&(o||!N):T||N?R=!1:R=o?w<=t:w<t;R?a=C+1:p=C}return de(p,fl)}function Ko(e,t){for(var r=-1,o=e.length,a=0,p=[];++r<o;){var u=e[r],f=t?t(u):u;if(!r||!$e(f,g)){var g=f;p[a++]=u===0?0:u}}return p}function Vo(e){return typeof e=="number"?e:Ie(e)?mn:+e}function we(e){if(typeof e=="string")return e;if(k(e))return Q(e,we)+"";if(Ie(e))return Io?Io.call(e):"";var t=e+"";return t=="0"&&1/e==-vt?"-0":t}function ft(e,t,r){var o=-1,a=Cn,p=e.length,u=!0,f=[],g=f;if(r)u=!1,a=Ir;else if(p>=h){var S=t?null:_u(e);if(S)return wn(S);u=!1,a=Qt,g=new Ct}else g=t?[]:f;e:for(;++o<p;){var C=e[o],w=t?t(C):C;if(C=r||C!==0?C:0,u&&w===w){for(var E=g.length;E--;)if(g[E]===w)continue e;t&&g.push(w),f.push(C)}else a(g,w,r)||(g!==f&&g.push(w),f.push(C))}return f}function Zr(e,t){return t=mt(t,e),e=Sa(e,t),e==null||delete e[qe(He(t))]}function qo(e,t,r,o){return pn(e,t,r(wt(e,t)),o)}function Gn(e,t,r,o){for(var a=e.length,p=o?a:-1;(o?p--:++p<a)&&t(e[p],p,e););return r?Me(e,o?0:p,o?p+1:a):Me(e,o?p+1:0,o?a:p)}function Jo(e,t){var r=e;return r instanceof W&&(r=r.value()),Er(t,function(o,a){return a.func.apply(a.thisArg,pt([o],a.args))},r)}function Qr(e,t,r){var o=e.length;if(o<2)return o?ft(e[0]):[];for(var a=-1,p=v(o);++a<o;)for(var u=e[a],f=-1;++f<o;)f!=a&&(p[a]=an(p[a]||u,e[f],t,r));return ft(pe(p,1),t,r)}function Xo(e,t,r){for(var o=-1,a=e.length,p=t.length,u={};++o<a;){var f=o<p?t[o]:i;r(u,e[o],f)}return u}function jr(e){return ne(e)?e:[]}function ei(e){return typeof e=="function"?e:xe}function mt(e,t){return k(e)?e:pi(e,t)?[e]:Ia(Y(e))}var fu=O;function gt(e,t,r){var o=e.length;return r=r===i?o:r,!t&&r>=o?e:Me(e,t,r)}var Zo=ep||function(e){return se.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var r=e.length,o=bo?bo(r):new e.constructor(r);return e.copy(o),o}function ti(e){var t=new e.constructor(e.byteLength);return new Ln(t).set(new Ln(e)),t}function mu(e,t){var r=t?ti(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function gu(e){var t=new e.constructor(e.source,Pi.exec(e));return t.lastIndex=e.lastIndex,t}function yu(e){return rn?J(rn.call(e)):{}}function jo(e,t){var r=t?ti(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var r=e!==i,o=e===null,a=e===e,p=Ie(e),u=t!==i,f=t===null,g=t===t,S=Ie(t);if(!f&&!S&&!p&&e>t||p&&u&&g&&!f&&!S||o&&u&&g||!r&&g||!a)return 1;if(!o&&!p&&!S&&e<t||S&&r&&a&&!o&&!p||f&&r&&a||!u&&a||!g)return-1}return 0}function hu(e,t,r){for(var o=-1,a=e.criteria,p=t.criteria,u=a.length,f=r.length;++o<u;){var g=ea(a[o],p[o]);if(g){if(o>=f)return g;var S=r[o];return g*(S=="desc"?-1:1)}}return e.index-t.index}function ta(e,t,r,o){for(var a=-1,p=e.length,u=r.length,f=-1,g=t.length,S=oe(p-u,0),C=v(g+S),w=!o;++f<g;)C[f]=t[f];for(;++a<u;)(w||a<p)&&(C[r[a]]=e[a]);for(;S--;)C[f++]=e[a++];return C}function na(e,t,r,o){for(var a=-1,p=e.length,u=-1,f=r.length,g=-1,S=t.length,C=oe(p-f,0),w=v(C+S),E=!o;++a<C;)w[a]=e[a];for(var T=a;++g<S;)w[T+g]=t[g];for(;++u<f;)(E||a<p)&&(w[T+r[u]]=e[a++]);return w}function he(e,t){var r=-1,o=e.length;for(t||(t=v(o));++r<o;)t[r]=e[r];return t}function Ve(e,t,r,o){var a=!r;r||(r={});for(var p=-1,u=t.length;++p<u;){var f=t[p],g=o?o(r[f],e[f],f,r,e):i;g===i&&(g=e[f]),a?Qe(r,f,g):on(r,f,g)}return r}function vu(e,t){return Ve(e,si(e),t)}function bu(e,t){return Ve(e,ga(e),t)}function Yn(e,t){return function(r,o){var a=k(r)?ws:zp,p=t?t():{};return a(r,e,L(o,2),p)}}function Ut(e){return O(function(t,r){var o=-1,a=r.length,p=a>1?r[a-1]:i,u=a>2?r[2]:i;for(p=e.length>3&&typeof p=="function"?(a--,p):i,u&&ge(r[0],r[1],u)&&(p=a<3?i:p,a=1),t=J(t);++o<a;){var f=r[o];f&&e(t,f,o,p)}return t})}function ra(e,t){return function(r,o){if(r==null)return r;if(!ve(r))return e(r,o);for(var a=r.length,p=t?a:-1,u=J(r);(t?p--:++p<a)&&o(u[p],p,u)!==!1;);return r}}function ia(e){return function(t,r,o){for(var a=-1,p=J(t),u=o(t),f=u.length;f--;){var g=u[e?f:++a];if(r(p[g],g,p)===!1)break}return t}}function xu(e,t,r){var o=t&ae,a=un(e);function p(){var u=this&&this!==se&&this instanceof p?a:e;return u.apply(o?r:this,arguments)}return p}function oa(e){return function(t){t=Y(t);var r=Dt(t)?ze(t):i,o=r?r[0]:t.charAt(0),a=r?gt(r,1).join(""):t.slice(1);return o[e]()+a}}function zt(e){return function(t){return Er(rl(nl(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 r=Ot(e.prototype),o=e.apply(r,t);return ee(o)?o:r}}function Su(e,t,r){var o=un(e);function a(){for(var p=arguments.length,u=v(p),f=p,g=Wt(a);f--;)u[f]=arguments[f];var S=p<3&&u[0]!==g&&u[p-1]!==g?[]:ut(u,g);if(p-=S.length,p<r)return ua(e,t,Kn,a.placeholder,i,u,S,i,i,r-p);var C=this&&this!==se&&this instanceof a?o:e;return Ce(C,this,u)}return a}function aa(e){return function(t,r,o){var a=J(t);if(!ve(t)){var p=L(r,3);t=le(t),r=function(f){return p(a[f],f,a)}}var u=e(t,r,o);return u>-1?a[p?t[u]:u]:i}}function la(e){return et(function(t){var r=t.length,o=r,a=Pe.prototype.thru;for(e&&t.reverse();o--;){var p=t[o];if(typeof p!="function")throw new De(y);if(a&&!u&&Xn(p)=="wrapper")var u=new Pe([],!0)}for(o=u?o:r;++o<r;){p=t[o];var f=Xn(p),g=f=="wrapper"?ai(p):i;g&&ui(g[0])&&g[1]==(Le|ue|ce|at)&&!g[4].length&&g[9]==1?u=u[Xn(g[0])].apply(u,g[3]):u=p.length==1&&ui(p)?u[f]():u.thru(p)}return function(){var S=arguments,C=S[0];if(u&&S.length==1&&k(C))return u.plant(C).value();for(var w=0,E=r?t[w].apply(this,S):C;++w<r;)E=t[w].call(this,E);return E}})}function Kn(e,t,r,o,a,p,u,f,g,S){var C=t&Le,w=t&ae,E=t&Se,T=t&(ue|Te),B=t&Tt,N=E?i:un(e);function R(){for(var z=arguments.length,$=v(z),Ee=z;Ee--;)$[Ee]=arguments[Ee];if(T)var ye=Wt(R),Ae=Ds($,ye);if(o&&($=ta($,o,a,T)),p&&($=na($,p,u,T)),z-=Ae,T&&z<S){var re=ut($,ye);return ua(e,t,Kn,R.placeholder,r,$,re,f,g,S-z)}var Ge=w?r:this,it=E?Ge[e]:e;return z=$.length,f?$=zu($,f):B&&z>1&&$.reverse(),C&&g<z&&($.length=g),this&&this!==se&&this instanceof R&&(it=N||un(it)),it.apply(Ge,$)}return R}function sa(e,t){return function(r,o){return Jp(r,e,t(o),{})}}function Vn(e,t){return function(r,o){var a;if(r===i&&o===i)return t;if(r!==i&&(a=r),o!==i){if(a===i)return o;typeof r=="string"||typeof o=="string"?(r=we(r),o=we(o)):(r=Vo(r),o=Vo(o)),a=e(r,o)}return a}}function ni(e){return et(function(t){return t=Q(t,_e(L())),O(function(r){var o=this;return e(t,function(a){return Ce(a,o,r)})})})}function qn(e,t){t=t===i?" ":we(t);var r=t.length;if(r<2)return r?Jr(t,e):t;var o=Jr(t,Pn(e/Pt(t)));return Dt(t)?gt(ze(o),0,e).join(""):o.slice(0,e)}function Cu(e,t,r,o){var a=t&ae,p=un(e);function u(){for(var f=-1,g=arguments.length,S=-1,C=o.length,w=v(C+g),E=this&&this!==se&&this instanceof u?p:e;++S<C;)w[S]=o[S];for(;g--;)w[S++]=arguments[++f];return Ce(E,a?r:this,w)}return u}function pa(e){return function(t,r,o){return o&&typeof o!="number"&&ge(t,r,o)&&(r=o=i),t=rt(t),r===i?(r=t,t=0):r=rt(r),o=o===i?t<r?1:-1:rt(o),lu(t,r,o,e)}}function Jn(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Ne(t),r=Ne(r)),e(t,r)}}function ua(e,t,r,o,a,p,u,f,g,S){var C=t&ue,w=C?u:i,E=C?i:u,T=C?p:i,B=C?i:p;t|=C?ce:Fe,t&=~(C?Fe:ce),t&ot||(t&=~(ae|Se));var N=[e,t,a,T,w,B,E,f,g,S],R=r.apply(i,N);return ui(e)&&Ca(R,N),R.placeholder=o,_a(R,e,t)}function ri(e){var t=ie[e];return function(r,o){if(r=Ne(r),o=o==null?0:de(H(o),292),o&&_o(r)){var a=(Y(r)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+o));return a=(Y(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(r)}}var _u=Ht&&1/wn(new Ht([,-0]))[1]==vt?function(e){return new Ht(e)}:Ii;function ca(e){return function(t){var r=fe(t);return r==Oe?Dr(t):r==Ue?Us(t):Rs(t,e(t))}}function je(e,t,r,o,a,p,u,f){var g=t&Se;if(!g&&typeof e!="function")throw new De(y);var S=o?o.length:0;if(S||(t&=~(ce|Fe),o=a=i),u=u===i?u:oe(H(u),0),f=f===i?f:H(f),S-=a?a.length:0,t&Fe){var C=o,w=a;o=a=i}var E=g?i:ai(e),T=[e,t,r,o,a,C,w,p,u,f];if(E&&Nu(T,E),e=T[0],t=T[1],r=T[2],o=T[3],a=T[4],f=T[9]=T[9]===i?g?0:e.length:oe(T[9]-S,0),!f&&t&(ue|Te)&&(t&=~(ue|Te)),!t||t==ae)var B=xu(e,t,r);else t==ue||t==Te?B=Su(e,t,f):(t==ce||t==(ae|ce))&&!a.length?B=Cu(e,t,r,o):B=Kn.apply(i,T);var N=E?Yo:Ca;return _a(N(B,T),e,t)}function da(e,t,r,o){return e===i||$e(e,Mt[r])&&!q.call(o,r)?t:e}function fa(e,t,r,o,a,p){return ee(e)&&ee(t)&&(p.set(t,e),Wn(e,t,i,fa,p),p.delete(t)),e}function wu(e){return fn(e)?i:e}function ma(e,t,r,o,a,p){var u=r&V,f=e.length,g=t.length;if(f!=g&&!(u&&g>f))return!1;var S=p.get(e),C=p.get(t);if(S&&C)return S==t&&C==e;var w=-1,E=!0,T=r&j?new Ct:i;for(p.set(e,t),p.set(t,e);++w<f;){var B=e[w],N=t[w];if(o)var R=u?o(N,B,w,t,e,p):o(B,N,w,e,t,p);if(R!==i){if(R)continue;E=!1;break}if(T){if(!Ar(t,function(z,$){if(!Qt(T,$)&&(B===z||a(B,z,r,o,p)))return T.push($)})){E=!1;break}}else if(!(B===N||a(B,N,r,o,p))){E=!1;break}}return p.delete(e),p.delete(t),E}function Iu(e,t,r,o,a,p,u){switch(r){case Lt: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 Ln(e),new Ln(t)));case Yt:case Kt:case Vt:return $e(+e,+t);case yn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case Oe:var f=Dr;case Ue:var g=o&V;if(f||(f=wn),e.size!=t.size&&!g)return!1;var S=u.get(e);if(S)return S==t;o|=j,u.set(e,t);var C=ma(f(e),f(t),o,a,p,u);return u.delete(e),C;case vn:if(rn)return rn.call(e)==rn.call(t)}return!1}function Eu(e,t,r,o,a,p){var u=r&V,f=ii(e),g=f.length,S=ii(t),C=S.length;if(g!=C&&!u)return!1;for(var w=g;w--;){var E=f[w];if(!(u?E in t:q.call(t,E)))return!1}var T=p.get(e),B=p.get(t);if(T&&B)return T==t&&B==e;var N=!0;p.set(e,t),p.set(t,e);for(var R=u;++w<g;){E=f[w];var z=e[E],$=t[E];if(o)var Ee=u?o($,z,E,t,e,p):o(z,$,E,e,t,p);if(!(Ee===i?z===$||a(z,$,r,o,p):Ee)){N=!1;break}R||(R=E=="constructor")}if(N&&!R){var ye=e.constructor,Ae=t.constructor;ye!=Ae&&"constructor"in e&&"constructor"in t&&!(typeof ye=="function"&&ye instanceof ye&&typeof Ae=="function"&&Ae instanceof Ae)&&(N=!1)}return p.delete(e),p.delete(t),N}function et(e){return di(xa(e,i,Fa),e+"")}function ii(e){return Po(e,le,si)}function oi(e){return Po(e,be,ga)}var ai=Mn?function(e){return Mn.get(e)}:Ii;function Xn(e){for(var t=e.name+"",r=Nt[t],o=q.call(Nt,t)?r.length:0;o--;){var a=r[o],p=a.func;if(p==null||p==e)return a.name}return t}function Wt(e){var t=q.call(l,"placeholder")?l:e;return t.placeholder}function L(){var e=l.iteratee||_i;return e=e===_i?Ho:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var r=e.__data__;return Pu(t)?r[typeof t=="string"?"string":"hash"]:r.map}function li(e){for(var t=le(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,va(a)]}return t}function It(e,t){var r=Hs(e,t);return Mo(r)?r:i}function Au(e){var t=q.call(e,xt),r=e[xt];try{e[xt]=i;var o=!0}catch{}var a=Tn.call(e);return o&&(t?e[xt]=r:delete e[xt]),a}var si=kr?function(e){return e==null?[]:(e=J(e),st(kr(e),function(t){return So.call(e,t)}))}:Ei,ga=kr?function(e){for(var t=[];e;)pt(t,si(e)),e=Bn(e);return t}:Ei,fe=me;(Mr&&fe(new Mr(new ArrayBuffer(1)))!=Lt||en&&fe(new en)!=Oe||Hr&&fe(Hr.resolve())!=Li||Ht&&fe(new Ht)!=Ue||tn&&fe(new tn)!=Xt)&&(fe=function(e){var t=me(e),r=t==Je?e.constructor:i,o=r?Et(r):"";if(o)switch(o){case pp:return Lt;case up:return Oe;case cp:return Li;case dp:return Ue;case fp:return Xt}return t});function Tu(e,t,r){for(var o=-1,a=r.length;++o<a;){var p=r[o],u=p.size;switch(p.type){case"drop":e+=u;break;case"dropRight":t-=u;break;case"take":t=de(t,e+u);break;case"takeRight":e=oe(e,t-u);break}}return{start:e,end:t}}function Fu(e){var t=e.match(kl);return t?t[1].split(Ml):[]}function ya(e,t,r){t=mt(t,e);for(var o=-1,a=t.length,p=!1;++o<a;){var u=qe(t[o]);if(!(p=e!=null&&r(e,u)))break;e=e[u]}return p||++o!=a?p:(a=e==null?0:e.length,!!a&&ir(a)&&tt(u,a)&&(k(e)||At(e)))}function Lu(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&q.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function ha(e){return typeof e.constructor=="function"&&!cn(e)?Ot(Bn(e)):{}}function Bu(e,t,r){var o=e.constructor;switch(t){case Zt:return ti(e);case Yt:case Kt:return new o(+e);case Lt:return mu(e,r);case lr:case sr:case pr:case ur:case cr:case dr:case fr:case mr:case gr:return jo(e,r);case Oe:return new o;case Vt:case Jt:return new o(e);case qt:return gu(e);case Ue:return new o;case vn:return yu(e)}}function Ru(e,t){var r=t.length;if(!r)return e;var o=r-1;return t[o]=(r>1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(Pl,`{
|
|
8
|
+
*/(function(n,s){(function(){var i,d="4.17.21",h=200,c="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",y="Expected a function",b="Invalid `variable` option passed into `_.template`",I="__lodash_hash_undefined__",T=500,N="__lodash_placeholder__",P=1,G=2,D=4,Y=1,Z=2,ee=1,ae=2,re=4,de=8,Fe=16,fe=32,Le=64,Be=128,at=256,Tt=512,ht=30,ll="...",sl=800,pl=16,Ti=1,ul=2,cl=3,vt=1/0,lt=9007199254740991,dl=17976931348623157e292,mn=0/0,Ke=4294967295,fl=Ke-1,ml=Ke>>>1,gl=[["ary",Be],["bind",ee],["bindKey",ae],["curry",de],["curryRight",Fe],["flip",Tt],["partial",fe],["partialRight",Le],["rearg",at]],Ft="[object Arguments]",gn="[object Array]",yl="[object AsyncFunction]",Yt="[object Boolean]",Kt="[object Date]",hl="[object DOMException]",yn="[object Error]",hn="[object Function]",Fi="[object GeneratorFunction]",Ue="[object Map]",Vt="[object Number]",vl="[object Null]",Xe="[object Object]",Li="[object Promise]",bl="[object Proxy]",qt="[object RegExp]",ze="[object Set]",Jt="[object String]",vn="[object Symbol]",xl="[object Undefined]",Xt="[object WeakMap]",Sl="[object WeakSet]",Zt="[object ArrayBuffer]",Lt="[object DataView]",lr="[object Float32Array]",sr="[object Float64Array]",pr="[object Int8Array]",ur="[object Int16Array]",cr="[object Int32Array]",dr="[object Uint8Array]",fr="[object Uint8ClampedArray]",mr="[object Uint16Array]",gr="[object Uint32Array]",Cl=/\b__p \+= '';/g,_l=/\b(__p \+=) '' \+/g,wl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Bi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Il=RegExp(Bi.source),El=RegExp(Ri.source),Al=/<%-([\s\S]+?)%>/g,Tl=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,Fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ll=/^\w*$/,Bl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(yr.source),hr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Ml=/,? & /,Hl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nl=/[()=,{}\[\]\/\s]/,Ol=/\\(\\)?/g,Ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,zl=/^[-+]0x[0-9a-f]+$/i,Wl=/^0b[01]+$/i,$l=/^\[object .+?Constructor\]$/,Gl=/^0o[0-7]+$/i,Yl=/^(?:0|[1-9]\d*)$/,Kl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",ql="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",ki=ql+Jl+Xl,Mi="\\u2700-\\u27bf",Hi="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",Ni="A-Z\\xc0-\\xd6\\xd8-\\xde",Oi="\\ufe0e\\ufe0f",Ui=Zl+Ql+jl+es,vr="['\u2019]",ts="["+xn+"]",zi="["+Ui+"]",Sn="["+ki+"]",Wi="\\d+",ns="["+Mi+"]",$i="["+Hi+"]",Gi="[^"+xn+Ui+Wi+Mi+Hi+Ni+"]",br="\\ud83c[\\udffb-\\udfff]",rs="(?:"+Sn+"|"+br+")",Yi="[^"+xn+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",Sr="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+Ni+"]",Ki="\\u200d",Vi="(?:"+$i+"|"+Gi+")",is="(?:"+Bt+"|"+Gi+")",qi="(?:"+vr+"(?:d|ll|m|re|s|t|ve))?",Ji="(?:"+vr+"(?:D|LL|M|RE|S|T|VE))?",Xi=rs+"?",Zi="["+Oi+"]?",os="(?:"+Ki+"(?:"+[Yi,xr,Sr].join("|")+")"+Zi+Xi+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Zi+Xi+os,ss="(?:"+[ns,xr,Sr].join("|")+")"+Qi,ps="(?:"+[Yi+Sn+"?",Sn,xr,Sr,ts].join("|")+")",us=RegExp(vr,"g"),cs=RegExp(Sn,"g"),Cr=RegExp(br+"(?="+br+")|"+ps+Qi,"g"),ds=RegExp([Bt+"?"+$i+"+"+qi+"(?="+[zi,Bt,"$"].join("|")+")",is+"+"+Ji+"(?="+[zi,Bt+Vi,"$"].join("|")+")",Bt+"?"+Vi+"+"+qi,Bt+"+"+Ji,ls,as,Wi,ss].join("|"),"g"),fs=RegExp("["+Ki+xn+ki+Oi+"]"),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,Q={};Q[lr]=Q[sr]=Q[pr]=Q[ur]=Q[cr]=Q[dr]=Q[fr]=Q[mr]=Q[gr]=!0,Q[Ft]=Q[gn]=Q[Zt]=Q[Yt]=Q[Lt]=Q[Kt]=Q[yn]=Q[hn]=Q[Ue]=Q[Vt]=Q[Xe]=Q[qt]=Q[ze]=Q[Jt]=Q[Xt]=!1;var X={};X[Ft]=X[gn]=X[Zt]=X[Lt]=X[Yt]=X[Kt]=X[lr]=X[sr]=X[pr]=X[ur]=X[cr]=X[Ue]=X[Vt]=X[Xe]=X[qt]=X[ze]=X[Jt]=X[vn]=X[dr]=X[fr]=X[mr]=X[gr]=!0,X[yn]=X[hn]=X[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"},vs={"&":"&","<":"<",">":">",'"':""","'":"'"},bs={"&":"&","<":"<",">":">",""":'"',"'":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ss=parseFloat,Cs=parseInt,ji=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_s=typeof self=="object"&&self&&self.Object===Object&&self,ue=ji||_s||Function("return this")(),_r=s&&!s.nodeType&&s,bt=_r&&!0&&n&&!n.nodeType&&n,eo=bt&&bt.exports===_r,wr=eo&&ji.process,Re=function(){try{var m=bt&&bt.require&&bt.require("util").types;return m||wr&&wr.binding&&wr.binding("util")}catch{}}(),to=Re&&Re.isArrayBuffer,no=Re&&Re.isDate,ro=Re&&Re.isMap,io=Re&&Re.isRegExp,oo=Re&&Re.isSet,ao=Re&&Re.isTypedArray;function _e(m,x,v){switch(v.length){case 0:return m.call(x);case 1:return m.call(x,v[0]);case 2:return m.call(x,v[0],v[1]);case 3:return m.call(x,v[0],v[1],v[2])}return m.apply(x,v)}function ws(m,x,v,A){for(var k=-1,K=m==null?0:m.length;++k<K;){var le=m[k];x(A,le,v(le),m)}return A}function De(m,x){for(var v=-1,A=m==null?0:m.length;++v<A&&x(m[v],v,m)!==!1;);return m}function Is(m,x){for(var v=m==null?0:m.length;v--&&x(m[v],v,m)!==!1;);return m}function lo(m,x){for(var v=-1,A=m==null?0:m.length;++v<A;)if(!x(m[v],v,m))return!1;return!0}function st(m,x){for(var v=-1,A=m==null?0:m.length,k=0,K=[];++v<A;){var le=m[v];x(le,v,m)&&(K[k++]=le)}return K}function Cn(m,x){var v=m==null?0:m.length;return!!v&&Rt(m,x,0)>-1}function Ir(m,x,v){for(var A=-1,k=m==null?0:m.length;++A<k;)if(v(x,m[A]))return!0;return!1}function j(m,x){for(var v=-1,A=m==null?0:m.length,k=Array(A);++v<A;)k[v]=x(m[v],v,m);return k}function pt(m,x){for(var v=-1,A=x.length,k=m.length;++v<A;)m[k+v]=x[v];return m}function Er(m,x,v,A){var k=-1,K=m==null?0:m.length;for(A&&K&&(v=m[++k]);++k<K;)v=x(v,m[k],k,m);return v}function Es(m,x,v,A){var k=m==null?0:m.length;for(A&&k&&(v=m[--k]);k--;)v=x(v,m[k],k,m);return v}function Ar(m,x){for(var v=-1,A=m==null?0:m.length;++v<A;)if(x(m[v],v,m))return!0;return!1}var As=Tr("length");function Ts(m){return m.split("")}function Fs(m){return m.match(Hl)||[]}function so(m,x,v){var A;return v(m,function(k,K,le){if(x(k,K,le))return A=K,!1}),A}function _n(m,x,v,A){for(var k=m.length,K=v+(A?1:-1);A?K--:++K<k;)if(x(m[K],K,m))return K;return-1}function Rt(m,x,v){return x===x?zs(m,x,v):_n(m,po,v)}function Ls(m,x,v,A){for(var k=v-1,K=m.length;++k<K;)if(A(m[k],x))return k;return-1}function po(m){return m!==m}function uo(m,x){var v=m==null?0:m.length;return v?Lr(m,x)/v:mn}function Tr(m){return function(x){return x==null?i:x[m]}}function Fr(m){return function(x){return m==null?i:m[x]}}function co(m,x,v,A,k){return k(m,function(K,le,J){v=A?(A=!1,K):x(v,K,le,J)}),v}function Bs(m,x){var v=m.length;for(m.sort(x);v--;)m[v]=m[v].value;return m}function Lr(m,x){for(var v,A=-1,k=m.length;++A<k;){var K=x(m[A]);K!==i&&(v=v===i?K:v+K)}return v}function Br(m,x){for(var v=-1,A=Array(m);++v<m;)A[v]=x(v);return A}function Rs(m,x){return j(x,function(v){return[v,m[v]]})}function fo(m){return m&&m.slice(0,ho(m)+1).replace(hr,"")}function we(m){return function(x){return m(x)}}function Rr(m,x){return j(x,function(v){return m[v]})}function Qt(m,x){return m.has(x)}function mo(m,x){for(var v=-1,A=m.length;++v<A&&Rt(x,m[v],0)>-1;);return v}function go(m,x){for(var v=m.length;v--&&Rt(x,m[v],0)>-1;);return v}function Ds(m,x){for(var v=m.length,A=0;v--;)m[v]===x&&++A;return A}var Ps=Fr(hs),ks=Fr(vs);function Ms(m){return"\\"+xs[m]}function Hs(m,x){return m==null?i:m[x]}function Dt(m){return fs.test(m)}function Ns(m){return ms.test(m)}function Os(m){for(var x,v=[];!(x=m.next()).done;)v.push(x.value);return v}function Dr(m){var x=-1,v=Array(m.size);return m.forEach(function(A,k){v[++x]=[k,A]}),v}function yo(m,x){return function(v){return m(x(v))}}function ut(m,x){for(var v=-1,A=m.length,k=0,K=[];++v<A;){var le=m[v];(le===x||le===N)&&(m[v]=N,K[k++]=v)}return K}function wn(m){var x=-1,v=Array(m.size);return m.forEach(function(A){v[++x]=A}),v}function Us(m){var x=-1,v=Array(m.size);return m.forEach(function(A){v[++x]=[A,A]}),v}function zs(m,x,v){for(var A=v-1,k=m.length;++A<k;)if(m[A]===x)return A;return-1}function Ws(m,x,v){for(var A=v+1;A--;)if(m[A]===x)return A;return A}function Pt(m){return Dt(m)?Gs(m):As(m)}function We(m){return Dt(m)?Ys(m):Ts(m)}function ho(m){for(var x=m.length;x--&&Dl.test(m.charAt(x)););return x}var $s=Fr(bs);function Gs(m){for(var x=Cr.lastIndex=0;Cr.test(m);)++x;return x}function Ys(m){return m.match(Cr)||[]}function Ks(m){return m.match(ds)||[]}var Vs=function m(x){x=x==null?ue:kt.defaults(ue.Object(),x,kt.pick(ue,gs));var v=x.Array,A=x.Date,k=x.Error,K=x.Function,le=x.Math,J=x.Object,Pr=x.RegExp,qs=x.String,Pe=x.TypeError,In=v.prototype,Js=K.prototype,Mt=J.prototype,En=x["__core-js_shared__"],An=Js.toString,q=Mt.hasOwnProperty,Xs=0,vo=function(){var e=/[^.]+$/.exec(En&&En.keys&&En.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Tn=Mt.toString,Zs=An.call(J),Qs=ue._,js=Pr("^"+An.call(q).replace(yr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Fn=eo?x.Buffer:i,ct=x.Symbol,Ln=x.Uint8Array,bo=Fn?Fn.allocUnsafe:i,Bn=yo(J.getPrototypeOf,J),xo=J.create,So=Mt.propertyIsEnumerable,Rn=In.splice,Co=ct?ct.isConcatSpreadable:i,jt=ct?ct.iterator:i,xt=ct?ct.toStringTag:i,Dn=function(){try{var e=It(J,"defineProperty");return e({},"",{}),e}catch{}}(),ep=x.clearTimeout!==ue.clearTimeout&&x.clearTimeout,tp=A&&A.now!==ue.Date.now&&A.now,np=x.setTimeout!==ue.setTimeout&&x.setTimeout,Pn=le.ceil,kn=le.floor,kr=J.getOwnPropertySymbols,rp=Fn?Fn.isBuffer:i,_o=x.isFinite,ip=In.join,op=yo(J.keys,J),se=le.max,me=le.min,ap=A.now,lp=x.parseInt,wo=le.random,sp=In.reverse,Mr=It(x,"DataView"),en=It(x,"Map"),Hr=It(x,"Promise"),Ht=It(x,"Set"),tn=It(x,"WeakMap"),nn=It(J,"create"),Mn=tn&&new tn,Nt={},pp=Et(Mr),up=Et(en),cp=Et(Hr),dp=Et(Ht),fp=Et(tn),Hn=ct?ct.prototype:i,rn=Hn?Hn.valueOf:i,Io=Hn?Hn.toString:i;function l(e){if(ne(e)&&!M(e)&&!(e instanceof W)){if(e instanceof ke)return e;if(q.call(e,"__wrapped__"))return Ea(e)}return new ke(e)}var Ot=function(){function e(){}return function(t){if(!te(t))return{};if(xo)return xo(t);e.prototype=t;var r=new e;return e.prototype=i,r}}();function Nn(){}function ke(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Al,evaluate:Tl,interpolate:Di,variable:"",imports:{_:l}},l.prototype=Nn.prototype,l.prototype.constructor=l,ke.prototype=Ot(Nn.prototype),ke.prototype.constructor=ke;function W(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ke,this.__views__=[]}function mp(){var e=new W(this.__wrapped__);return e.__actions__=be(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=be(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=be(this.__views__),e}function gp(){if(this.__filtered__){var e=new W(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function yp(){var e=this.__wrapped__.value(),t=this.__dir__,r=M(e),o=t<0,a=r?e.length:0,p=Tu(0,a,this.__views__),u=p.start,f=p.end,g=f-u,S=o?f:u-1,C=this.__iteratees__,w=C.length,E=0,F=me(g,this.__takeCount__);if(!r||!o&&a==g&&F==g)return Jo(e,this.__actions__);var B=[];e:for(;g--&&E<F;){S+=t;for(var O=-1,R=e[S];++O<w;){var z=C[O],$=z.iteratee,Ae=z.type,ve=$(R);if(Ae==ul)R=ve;else if(!ve){if(Ae==Ti)continue e;break e}}B[E++]=R}return B}W.prototype=Ot(Nn.prototype),W.prototype.constructor=W;function St(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function hp(){this.__data__=nn?nn(null):{},this.size=0}function vp(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bp(e){var t=this.__data__;if(nn){var r=t[e];return r===I?i:r}return q.call(t,e)?t[e]:i}function xp(e){var t=this.__data__;return nn?t[e]!==i:q.call(t,e)}function Sp(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nn&&t===i?I:t,this}St.prototype.clear=hp,St.prototype.delete=vp,St.prototype.get=bp,St.prototype.has=xp,St.prototype.set=Sp;function Ze(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function Cp(){this.__data__=[],this.size=0}function _p(e){var t=this.__data__,r=On(t,e);if(r<0)return!1;var o=t.length-1;return r==o?t.pop():Rn.call(t,r,1),--this.size,!0}function wp(e){var t=this.__data__,r=On(t,e);return r<0?i:t[r][1]}function Ip(e){return On(this.__data__,e)>-1}function Ep(e,t){var r=this.__data__,o=On(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}Ze.prototype.clear=Cp,Ze.prototype.delete=_p,Ze.prototype.get=wp,Ze.prototype.has=Ip,Ze.prototype.set=Ep;function Qe(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var o=e[t];this.set(o[0],o[1])}}function Ap(){this.size=0,this.__data__={hash:new St,map:new(en||Ze),string:new St}}function Tp(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t}function Fp(e){return Zn(this,e).get(e)}function Lp(e){return Zn(this,e).has(e)}function Bp(e,t){var r=Zn(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}Qe.prototype.clear=Ap,Qe.prototype.delete=Tp,Qe.prototype.get=Fp,Qe.prototype.has=Lp,Qe.prototype.set=Bp;function Ct(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new Qe;++t<r;)this.add(e[t])}function Rp(e){return this.__data__.set(e,I),this}function Dp(e){return this.__data__.has(e)}Ct.prototype.add=Ct.prototype.push=Rp,Ct.prototype.has=Dp;function $e(e){var t=this.__data__=new Ze(e);this.size=t.size}function Pp(){this.__data__=new Ze,this.size=0}function kp(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Mp(e){return this.__data__.get(e)}function Hp(e){return this.__data__.has(e)}function Np(e,t){var r=this.__data__;if(r instanceof Ze){var o=r.__data__;if(!en||o.length<h-1)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new Qe(o)}return r.set(e,t),this.size=r.size,this}$e.prototype.clear=Pp,$e.prototype.delete=kp,$e.prototype.get=Mp,$e.prototype.has=Hp,$e.prototype.set=Np;function Eo(e,t){var r=M(e),o=!r&&At(e),a=!r&&!o&&yt(e),p=!r&&!o&&!a&&$t(e),u=r||o||a||p,f=u?Br(e.length,qs):[],g=f.length;for(var S in e)(t||q.call(e,S))&&!(u&&(S=="length"||a&&(S=="offset"||S=="parent")||p&&(S=="buffer"||S=="byteLength"||S=="byteOffset")||nt(S,g)))&&f.push(S);return f}function Ao(e){var t=e.length;return t?e[qr(0,t-1)]:i}function Op(e,t){return Qn(be(e),_t(t,0,e.length))}function Up(e){return Qn(be(e))}function Nr(e,t,r){(r!==i&&!Ge(e[t],r)||r===i&&!(t in e))&&je(e,t,r)}function on(e,t,r){var o=e[t];(!(q.call(e,t)&&Ge(o,r))||r===i&&!(t in e))&&je(e,t,r)}function On(e,t){for(var r=e.length;r--;)if(Ge(e[r][0],t))return r;return-1}function zp(e,t,r,o){return dt(e,function(a,p,u){t(o,a,r(a),u)}),o}function To(e,t){return e&&qe(t,pe(t),e)}function Wp(e,t){return e&&qe(t,Se(t),e)}function je(e,t,r){t=="__proto__"&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function Or(e,t){for(var r=-1,o=t.length,a=v(o),p=e==null;++r<o;)a[r]=p?i:bi(e,t[r]);return a}function _t(e,t,r){return e===e&&(r!==i&&(e=e<=r?e:r),t!==i&&(e=e>=t?e:t)),e}function Me(e,t,r,o,a,p){var u,f=t&P,g=t&G,S=t&D;if(r&&(u=a?r(e,o,a,p):r(e)),u!==i)return u;if(!te(e))return e;var C=M(e);if(C){if(u=Lu(e),!f)return be(e,u)}else{var w=ge(e),E=w==hn||w==Fi;if(yt(e))return Qo(e,f);if(w==Xe||w==Ft||E&&!a){if(u=g||E?{}:ha(e),!f)return g?bu(e,Wp(u,e)):vu(e,To(u,e))}else{if(!X[w])return a?e:{};u=Bu(e,w,f)}}p||(p=new $e);var F=p.get(e);if(F)return F;p.set(e,u),Ka(e)?e.forEach(function(R){u.add(Me(R,t,r,R,e,p))}):Ga(e)&&e.forEach(function(R,z){u.set(z,Me(R,t,r,z,e,p))});var B=S?g?oi:ii:g?Se:pe,O=C?i:B(e);return De(O||e,function(R,z){O&&(z=R,R=e[z]),on(u,z,Me(R,t,r,z,e,p))}),u}function $p(e){var t=pe(e);return function(r){return Fo(r,e,t)}}function Fo(e,t,r){var o=r.length;if(e==null)return!o;for(e=J(e);o--;){var a=r[o],p=t[a],u=e[a];if(u===i&&!(a in e)||!p(u))return!1}return!0}function Lo(e,t,r){if(typeof e!="function")throw new Pe(y);return dn(function(){e.apply(i,r)},t)}function an(e,t,r,o){var a=-1,p=Cn,u=!0,f=e.length,g=[],S=t.length;if(!f)return g;r&&(t=j(t,we(r))),o?(p=Ir,u=!1):t.length>=h&&(p=Qt,u=!1,t=new Ct(t));e:for(;++a<f;){var C=e[a],w=r==null?C:r(C);if(C=o||C!==0?C:0,u&&w===w){for(var E=S;E--;)if(t[E]===w)continue e;g.push(C)}else p(t,w,o)||g.push(C)}return g}var dt=ra(Ve),Bo=ra(zr,!0);function Gp(e,t){var r=!0;return dt(e,function(o,a,p){return r=!!t(o,a,p),r}),r}function Un(e,t,r){for(var o=-1,a=e.length;++o<a;){var p=e[o],u=t(p);if(u!=null&&(f===i?u===u&&!Ee(u):r(u,f)))var f=u,g=p}return g}function Yp(e,t,r,o){var a=e.length;for(r=H(r),r<0&&(r=-r>a?0:a+r),o=o===i||o>a?a:H(o),o<0&&(o+=a),o=r>o?0:qa(o);r<o;)e[r++]=t;return e}function Ro(e,t){var r=[];return dt(e,function(o,a,p){t(o,a,p)&&r.push(o)}),r}function ce(e,t,r,o,a){var p=-1,u=e.length;for(r||(r=Du),a||(a=[]);++p<u;){var f=e[p];t>0&&r(f)?t>1?ce(f,t-1,r,o,a):pt(a,f):o||(a[a.length]=f)}return a}var Ur=ia(),Do=ia(!0);function Ve(e,t){return e&&Ur(e,t,pe)}function zr(e,t){return e&&Do(e,t,pe)}function zn(e,t){return st(t,function(r){return rt(e[r])})}function wt(e,t){t=mt(t,e);for(var r=0,o=t.length;e!=null&&r<o;)e=e[Je(t[r++])];return r&&r==o?e:i}function Po(e,t,r){var o=t(e);return M(e)?o:pt(o,r(e))}function ye(e){return e==null?e===i?xl:vl:xt&&xt in J(e)?Au(e):Uu(e)}function Wr(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,r){return e>=me(t,r)&&e<se(t,r)}function $r(e,t,r){for(var o=r?Ir:Cn,a=e[0].length,p=e.length,u=p,f=v(p),g=1/0,S=[];u--;){var C=e[u];u&&t&&(C=j(C,we(t))),g=me(C.length,g),f[u]=!r&&(t||a>=120&&C.length>=120)?new Ct(u&&C):i}C=e[0];var w=-1,E=f[0];e:for(;++w<a&&S.length<g;){var F=C[w],B=t?t(F):F;if(F=r||F!==0?F:0,!(E?Qt(E,B):o(S,B,r))){for(u=p;--u;){var O=f[u];if(!(O?Qt(O,B):o(e[u],B,r)))continue e}E&&E.push(B),S.push(F)}}return S}function Jp(e,t,r,o){return Ve(e,function(a,p,u){t(o,r(a),p,u)}),o}function ln(e,t,r){t=mt(t,e),e=Sa(e,t);var o=e==null?e:e[Je(Ne(t))];return o==null?i:_e(o,e,r)}function ko(e){return ne(e)&&ye(e)==Ft}function Xp(e){return ne(e)&&ye(e)==Zt}function Zp(e){return ne(e)&&ye(e)==Kt}function sn(e,t,r,o,a){return e===t?!0:e==null||t==null||!ne(e)&&!ne(t)?e!==e&&t!==t:Qp(e,t,r,o,sn,a)}function Qp(e,t,r,o,a,p){var u=M(e),f=M(t),g=u?gn:ge(e),S=f?gn:ge(t);g=g==Ft?Xe:g,S=S==Ft?Xe:S;var C=g==Xe,w=S==Xe,E=g==S;if(E&&yt(e)){if(!yt(t))return!1;u=!0,C=!1}if(E&&!C)return p||(p=new $e),u||$t(e)?ma(e,t,r,o,a,p):Iu(e,t,g,r,o,a,p);if(!(r&Y)){var F=C&&q.call(e,"__wrapped__"),B=w&&q.call(t,"__wrapped__");if(F||B){var O=F?e.value():e,R=B?t.value():t;return p||(p=new $e),a(O,R,r,o,p)}}return E?(p||(p=new $e),Eu(e,t,r,o,a,p)):!1}function jp(e){return ne(e)&&ge(e)==Ue}function Gr(e,t,r,o){var a=r.length,p=a,u=!o;if(e==null)return!p;for(e=J(e);a--;){var f=r[a];if(u&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++a<p;){f=r[a];var g=f[0],S=e[g],C=f[1];if(u&&f[2]){if(S===i&&!(g in e))return!1}else{var w=new $e;if(o)var E=o(S,C,g,e,t,w);if(!(E===i?sn(C,S,Y|Z,o,w):E))return!1}}return!0}function Mo(e){if(!te(e)||ku(e))return!1;var t=rt(e)?js:$l;return t.test(Et(e))}function eu(e){return ne(e)&&ye(e)==qt}function tu(e){return ne(e)&&ge(e)==ze}function nu(e){return ne(e)&&ir(e.length)&&!!Q[ye(e)]}function Ho(e){return typeof e=="function"?e:e==null?Ce:typeof e=="object"?M(e)?Uo(e[0],e[1]):Oo(e):ol(e)}function Yr(e){if(!cn(e))return op(e);var t=[];for(var r in J(e))q.call(e,r)&&r!="constructor"&&t.push(r);return t}function ru(e){if(!te(e))return Ou(e);var t=cn(e),r=[];for(var o in e)o=="constructor"&&(t||!q.call(e,o))||r.push(o);return r}function Kr(e,t){return e<t}function No(e,t){var r=-1,o=xe(e)?v(e.length):[];return dt(e,function(a,p,u){o[++r]=t(a,p,u)}),o}function Oo(e){var t=li(e);return t.length==1&&t[0][2]?ba(t[0][0],t[0][1]):function(r){return r===e||Gr(r,e,t)}}function Uo(e,t){return pi(e)&&va(t)?ba(Je(e),t):function(r){var o=bi(r,e);return o===i&&o===t?xi(r,e):sn(t,o,Y|Z)}}function Wn(e,t,r,o,a){e!==t&&Ur(t,function(p,u){if(a||(a=new $e),te(p))iu(e,t,u,r,Wn,o,a);else{var f=o?o(ci(e,u),p,u+"",e,t,a):i;f===i&&(f=p),Nr(e,u,f)}},Se)}function iu(e,t,r,o,a,p,u){var f=ci(e,r),g=ci(t,r),S=u.get(g);if(S){Nr(e,r,S);return}var C=p?p(f,g,r+"",e,t,u):i,w=C===i;if(w){var E=M(g),F=!E&&yt(g),B=!E&&!F&&$t(g);C=g,E||F||B?M(f)?C=f:ie(f)?C=be(f):F?(w=!1,C=Qo(g,!0)):B?(w=!1,C=jo(g,!0)):C=[]:fn(g)||At(g)?(C=f,At(f)?C=Ja(f):(!te(f)||rt(f))&&(C=ha(g))):w=!1}w&&(u.set(g,C),a(C,g,o,p,u),u.delete(g)),Nr(e,r,C)}function zo(e,t){var r=e.length;if(!!r)return t+=t<0?r:0,nt(t,r)?e[t]:i}function Wo(e,t,r){t.length?t=j(t,function(p){return M(p)?function(u){return wt(u,p.length===1?p[0]:p)}:p}):t=[Ce];var o=-1;t=j(t,we(L()));var a=No(e,function(p,u,f){var g=j(t,function(S){return S(p)});return{criteria:g,index:++o,value:p}});return Bs(a,function(p,u){return hu(p,u,r)})}function ou(e,t){return $o(e,t,function(r,o){return xi(e,o)})}function $o(e,t,r){for(var o=-1,a=t.length,p={};++o<a;){var u=t[o],f=wt(e,u);r(f,u)&&pn(p,mt(u,e),f)}return p}function au(e){return function(t){return wt(t,e)}}function Vr(e,t,r,o){var a=o?Ls:Rt,p=-1,u=t.length,f=e;for(e===t&&(t=be(t)),r&&(f=j(e,we(r)));++p<u;)for(var g=0,S=t[p],C=r?r(S):S;(g=a(f,C,g,o))>-1;)f!==e&&Rn.call(f,g,1),Rn.call(e,g,1);return e}function Go(e,t){for(var r=e?t.length:0,o=r-1;r--;){var a=t[r];if(r==o||a!==p){var p=a;nt(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function qr(e,t){return e+kn(wo()*(t-e+1))}function lu(e,t,r,o){for(var a=-1,p=se(Pn((t-e)/(r||1)),0),u=v(p);p--;)u[o?p:++a]=e,e+=r;return u}function Jr(e,t){var r="";if(!e||t<1||t>lt)return r;do t%2&&(r+=e),t=kn(t/2),t&&(e+=e);while(t);return r}function U(e,t){return di(xa(e,t,Ce),e+"")}function su(e){return Ao(Gt(e))}function pu(e,t){var r=Gt(e);return Qn(r,_t(t,0,r.length))}function pn(e,t,r,o){if(!te(e))return e;t=mt(t,e);for(var a=-1,p=t.length,u=p-1,f=e;f!=null&&++a<p;){var g=Je(t[a]),S=r;if(g==="__proto__"||g==="constructor"||g==="prototype")return e;if(a!=u){var C=f[g];S=o?o(C,g,f):i,S===i&&(S=te(C)?C:nt(t[a+1])?[]:{})}on(f,g,S),f=f[g]}return e}var Yo=Mn?function(e,t){return Mn.set(e,t),e}:Ce,uu=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Ci(t),writable:!0})}:Ce;function cu(e){return Qn(Gt(e))}function He(e,t,r){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var p=v(a);++o<a;)p[o]=e[o+t];return p}function du(e,t){var r;return dt(e,function(o,a,p){return r=t(o,a,p),!r}),!!r}function $n(e,t,r){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=ml){for(;o<a;){var p=o+a>>>1,u=e[p];u!==null&&!Ee(u)&&(r?u<=t:u<t)?o=p+1:a=p}return a}return Xr(e,t,Ce,r)}function Xr(e,t,r,o){var a=0,p=e==null?0:e.length;if(p===0)return 0;t=r(t);for(var u=t!==t,f=t===null,g=Ee(t),S=t===i;a<p;){var C=kn((a+p)/2),w=r(e[C]),E=w!==i,F=w===null,B=w===w,O=Ee(w);if(u)var R=o||B;else S?R=B&&(o||E):f?R=B&&E&&(o||!F):g?R=B&&E&&!F&&(o||!O):F||O?R=!1:R=o?w<=t:w<t;R?a=C+1:p=C}return me(p,fl)}function Ko(e,t){for(var r=-1,o=e.length,a=0,p=[];++r<o;){var u=e[r],f=t?t(u):u;if(!r||!Ge(f,g)){var g=f;p[a++]=u===0?0:u}}return p}function Vo(e){return typeof e=="number"?e:Ee(e)?mn:+e}function Ie(e){if(typeof e=="string")return e;if(M(e))return j(e,Ie)+"";if(Ee(e))return Io?Io.call(e):"";var t=e+"";return t=="0"&&1/e==-vt?"-0":t}function ft(e,t,r){var o=-1,a=Cn,p=e.length,u=!0,f=[],g=f;if(r)u=!1,a=Ir;else if(p>=h){var S=t?null:_u(e);if(S)return wn(S);u=!1,a=Qt,g=new Ct}else g=t?[]:f;e:for(;++o<p;){var C=e[o],w=t?t(C):C;if(C=r||C!==0?C:0,u&&w===w){for(var E=g.length;E--;)if(g[E]===w)continue e;t&&g.push(w),f.push(C)}else a(g,w,r)||(g!==f&&g.push(w),f.push(C))}return f}function Zr(e,t){return t=mt(t,e),e=Sa(e,t),e==null||delete e[Je(Ne(t))]}function qo(e,t,r,o){return pn(e,t,r(wt(e,t)),o)}function Gn(e,t,r,o){for(var a=e.length,p=o?a:-1;(o?p--:++p<a)&&t(e[p],p,e););return r?He(e,o?0:p,o?p+1:a):He(e,o?p+1:0,o?a:p)}function Jo(e,t){var r=e;return r instanceof W&&(r=r.value()),Er(t,function(o,a){return a.func.apply(a.thisArg,pt([o],a.args))},r)}function Qr(e,t,r){var o=e.length;if(o<2)return o?ft(e[0]):[];for(var a=-1,p=v(o);++a<o;)for(var u=e[a],f=-1;++f<o;)f!=a&&(p[a]=an(p[a]||u,e[f],t,r));return ft(ce(p,1),t,r)}function Xo(e,t,r){for(var o=-1,a=e.length,p=t.length,u={};++o<a;){var f=o<p?t[o]:i;r(u,e[o],f)}return u}function jr(e){return ie(e)?e:[]}function ei(e){return typeof e=="function"?e:Ce}function mt(e,t){return M(e)?e:pi(e,t)?[e]:Ia(V(e))}var fu=U;function gt(e,t,r){var o=e.length;return r=r===i?o:r,!t&&r>=o?e:He(e,t,r)}var Zo=ep||function(e){return ue.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var r=e.length,o=bo?bo(r):new e.constructor(r);return e.copy(o),o}function ti(e){var t=new e.constructor(e.byteLength);return new Ln(t).set(new Ln(e)),t}function mu(e,t){var r=t?ti(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function gu(e){var t=new e.constructor(e.source,Pi.exec(e));return t.lastIndex=e.lastIndex,t}function yu(e){return rn?J(rn.call(e)):{}}function jo(e,t){var r=t?ti(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var r=e!==i,o=e===null,a=e===e,p=Ee(e),u=t!==i,f=t===null,g=t===t,S=Ee(t);if(!f&&!S&&!p&&e>t||p&&u&&g&&!f&&!S||o&&u&&g||!r&&g||!a)return 1;if(!o&&!p&&!S&&e<t||S&&r&&a&&!o&&!p||f&&r&&a||!u&&a||!g)return-1}return 0}function hu(e,t,r){for(var o=-1,a=e.criteria,p=t.criteria,u=a.length,f=r.length;++o<u;){var g=ea(a[o],p[o]);if(g){if(o>=f)return g;var S=r[o];return g*(S=="desc"?-1:1)}}return e.index-t.index}function ta(e,t,r,o){for(var a=-1,p=e.length,u=r.length,f=-1,g=t.length,S=se(p-u,0),C=v(g+S),w=!o;++f<g;)C[f]=t[f];for(;++a<u;)(w||a<p)&&(C[r[a]]=e[a]);for(;S--;)C[f++]=e[a++];return C}function na(e,t,r,o){for(var a=-1,p=e.length,u=-1,f=r.length,g=-1,S=t.length,C=se(p-f,0),w=v(C+S),E=!o;++a<C;)w[a]=e[a];for(var F=a;++g<S;)w[F+g]=t[g];for(;++u<f;)(E||a<p)&&(w[F+r[u]]=e[a++]);return w}function be(e,t){var r=-1,o=e.length;for(t||(t=v(o));++r<o;)t[r]=e[r];return t}function qe(e,t,r,o){var a=!r;r||(r={});for(var p=-1,u=t.length;++p<u;){var f=t[p],g=o?o(r[f],e[f],f,r,e):i;g===i&&(g=e[f]),a?je(r,f,g):on(r,f,g)}return r}function vu(e,t){return qe(e,si(e),t)}function bu(e,t){return qe(e,ga(e),t)}function Yn(e,t){return function(r,o){var a=M(r)?ws:zp,p=t?t():{};return a(r,e,L(o,2),p)}}function Ut(e){return U(function(t,r){var o=-1,a=r.length,p=a>1?r[a-1]:i,u=a>2?r[2]:i;for(p=e.length>3&&typeof p=="function"?(a--,p):i,u&&he(r[0],r[1],u)&&(p=a<3?i:p,a=1),t=J(t);++o<a;){var f=r[o];f&&e(t,f,o,p)}return t})}function ra(e,t){return function(r,o){if(r==null)return r;if(!xe(r))return e(r,o);for(var a=r.length,p=t?a:-1,u=J(r);(t?p--:++p<a)&&o(u[p],p,u)!==!1;);return r}}function ia(e){return function(t,r,o){for(var a=-1,p=J(t),u=o(t),f=u.length;f--;){var g=u[e?f:++a];if(r(p[g],g,p)===!1)break}return t}}function xu(e,t,r){var o=t&ee,a=un(e);function p(){var u=this&&this!==ue&&this instanceof p?a:e;return u.apply(o?r:this,arguments)}return p}function oa(e){return function(t){t=V(t);var r=Dt(t)?We(t):i,o=r?r[0]:t.charAt(0),a=r?gt(r,1).join(""):t.slice(1);return o[e]()+a}}function zt(e){return function(t){return Er(rl(nl(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 r=Ot(e.prototype),o=e.apply(r,t);return te(o)?o:r}}function Su(e,t,r){var o=un(e);function a(){for(var p=arguments.length,u=v(p),f=p,g=Wt(a);f--;)u[f]=arguments[f];var S=p<3&&u[0]!==g&&u[p-1]!==g?[]:ut(u,g);if(p-=S.length,p<r)return ua(e,t,Kn,a.placeholder,i,u,S,i,i,r-p);var C=this&&this!==ue&&this instanceof a?o:e;return _e(C,this,u)}return a}function aa(e){return function(t,r,o){var a=J(t);if(!xe(t)){var p=L(r,3);t=pe(t),r=function(f){return p(a[f],f,a)}}var u=e(t,r,o);return u>-1?a[p?t[u]:u]:i}}function la(e){return tt(function(t){var r=t.length,o=r,a=ke.prototype.thru;for(e&&t.reverse();o--;){var p=t[o];if(typeof p!="function")throw new Pe(y);if(a&&!u&&Xn(p)=="wrapper")var u=new ke([],!0)}for(o=u?o:r;++o<r;){p=t[o];var f=Xn(p),g=f=="wrapper"?ai(p):i;g&&ui(g[0])&&g[1]==(Be|de|fe|at)&&!g[4].length&&g[9]==1?u=u[Xn(g[0])].apply(u,g[3]):u=p.length==1&&ui(p)?u[f]():u.thru(p)}return function(){var S=arguments,C=S[0];if(u&&S.length==1&&M(C))return u.plant(C).value();for(var w=0,E=r?t[w].apply(this,S):C;++w<r;)E=t[w].call(this,E);return E}})}function Kn(e,t,r,o,a,p,u,f,g,S){var C=t&Be,w=t&ee,E=t&ae,F=t&(de|Fe),B=t&Tt,O=E?i:un(e);function R(){for(var z=arguments.length,$=v(z),Ae=z;Ae--;)$[Ae]=arguments[Ae];if(F)var ve=Wt(R),Te=Ds($,ve);if(o&&($=ta($,o,a,F)),p&&($=na($,p,u,F)),z-=Te,F&&z<S){var oe=ut($,ve);return ua(e,t,Kn,R.placeholder,r,$,oe,f,g,S-z)}var Ye=w?r:this,ot=E?Ye[e]:e;return z=$.length,f?$=zu($,f):B&&z>1&&$.reverse(),C&&g<z&&($.length=g),this&&this!==ue&&this instanceof R&&(ot=O||un(ot)),ot.apply(Ye,$)}return R}function sa(e,t){return function(r,o){return Jp(r,e,t(o),{})}}function Vn(e,t){return function(r,o){var a;if(r===i&&o===i)return t;if(r!==i&&(a=r),o!==i){if(a===i)return o;typeof r=="string"||typeof o=="string"?(r=Ie(r),o=Ie(o)):(r=Vo(r),o=Vo(o)),a=e(r,o)}return a}}function ni(e){return tt(function(t){return t=j(t,we(L())),U(function(r){var o=this;return e(t,function(a){return _e(a,o,r)})})})}function qn(e,t){t=t===i?" ":Ie(t);var r=t.length;if(r<2)return r?Jr(t,e):t;var o=Jr(t,Pn(e/Pt(t)));return Dt(t)?gt(We(o),0,e).join(""):o.slice(0,e)}function Cu(e,t,r,o){var a=t&ee,p=un(e);function u(){for(var f=-1,g=arguments.length,S=-1,C=o.length,w=v(C+g),E=this&&this!==ue&&this instanceof u?p:e;++S<C;)w[S]=o[S];for(;g--;)w[S++]=arguments[++f];return _e(E,a?r:this,w)}return u}function pa(e){return function(t,r,o){return o&&typeof o!="number"&&he(t,r,o)&&(r=o=i),t=it(t),r===i?(r=t,t=0):r=it(r),o=o===i?t<r?1:-1:it(o),lu(t,r,o,e)}}function Jn(e){return function(t,r){return typeof t=="string"&&typeof r=="string"||(t=Oe(t),r=Oe(r)),e(t,r)}}function ua(e,t,r,o,a,p,u,f,g,S){var C=t&de,w=C?u:i,E=C?i:u,F=C?p:i,B=C?i:p;t|=C?fe:Le,t&=~(C?Le:fe),t&re||(t&=~(ee|ae));var O=[e,t,a,F,w,B,E,f,g,S],R=r.apply(i,O);return ui(e)&&Ca(R,O),R.placeholder=o,_a(R,e,t)}function ri(e){var t=le[e];return function(r,o){if(r=Oe(r),o=o==null?0:me(H(o),292),o&&_o(r)){var a=(V(r)+"e").split("e"),p=t(a[0]+"e"+(+a[1]+o));return a=(V(p)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(r)}}var _u=Ht&&1/wn(new Ht([,-0]))[1]==vt?function(e){return new Ht(e)}:Ii;function ca(e){return function(t){var r=ge(t);return r==Ue?Dr(t):r==ze?Us(t):Rs(t,e(t))}}function et(e,t,r,o,a,p,u,f){var g=t&ae;if(!g&&typeof e!="function")throw new Pe(y);var S=o?o.length:0;if(S||(t&=~(fe|Le),o=a=i),u=u===i?u:se(H(u),0),f=f===i?f:H(f),S-=a?a.length:0,t&Le){var C=o,w=a;o=a=i}var E=g?i:ai(e),F=[e,t,r,o,a,C,w,p,u,f];if(E&&Nu(F,E),e=F[0],t=F[1],r=F[2],o=F[3],a=F[4],f=F[9]=F[9]===i?g?0:e.length:se(F[9]-S,0),!f&&t&(de|Fe)&&(t&=~(de|Fe)),!t||t==ee)var B=xu(e,t,r);else t==de||t==Fe?B=Su(e,t,f):(t==fe||t==(ee|fe))&&!a.length?B=Cu(e,t,r,o):B=Kn.apply(i,F);var O=E?Yo:Ca;return _a(O(B,F),e,t)}function da(e,t,r,o){return e===i||Ge(e,Mt[r])&&!q.call(o,r)?t:e}function fa(e,t,r,o,a,p){return te(e)&&te(t)&&(p.set(t,e),Wn(e,t,i,fa,p),p.delete(t)),e}function wu(e){return fn(e)?i:e}function ma(e,t,r,o,a,p){var u=r&Y,f=e.length,g=t.length;if(f!=g&&!(u&&g>f))return!1;var S=p.get(e),C=p.get(t);if(S&&C)return S==t&&C==e;var w=-1,E=!0,F=r&Z?new Ct:i;for(p.set(e,t),p.set(t,e);++w<f;){var B=e[w],O=t[w];if(o)var R=u?o(O,B,w,t,e,p):o(B,O,w,e,t,p);if(R!==i){if(R)continue;E=!1;break}if(F){if(!Ar(t,function(z,$){if(!Qt(F,$)&&(B===z||a(B,z,r,o,p)))return F.push($)})){E=!1;break}}else if(!(B===O||a(B,O,r,o,p))){E=!1;break}}return p.delete(e),p.delete(t),E}function Iu(e,t,r,o,a,p,u){switch(r){case Lt: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 Ln(e),new Ln(t)));case Yt:case Kt:case Vt:return Ge(+e,+t);case yn:return e.name==t.name&&e.message==t.message;case qt:case Jt:return e==t+"";case Ue:var f=Dr;case ze:var g=o&Y;if(f||(f=wn),e.size!=t.size&&!g)return!1;var S=u.get(e);if(S)return S==t;o|=Z,u.set(e,t);var C=ma(f(e),f(t),o,a,p,u);return u.delete(e),C;case vn:if(rn)return rn.call(e)==rn.call(t)}return!1}function Eu(e,t,r,o,a,p){var u=r&Y,f=ii(e),g=f.length,S=ii(t),C=S.length;if(g!=C&&!u)return!1;for(var w=g;w--;){var E=f[w];if(!(u?E in t:q.call(t,E)))return!1}var F=p.get(e),B=p.get(t);if(F&&B)return F==t&&B==e;var O=!0;p.set(e,t),p.set(t,e);for(var R=u;++w<g;){E=f[w];var z=e[E],$=t[E];if(o)var Ae=u?o($,z,E,t,e,p):o(z,$,E,e,t,p);if(!(Ae===i?z===$||a(z,$,r,o,p):Ae)){O=!1;break}R||(R=E=="constructor")}if(O&&!R){var ve=e.constructor,Te=t.constructor;ve!=Te&&"constructor"in e&&"constructor"in t&&!(typeof ve=="function"&&ve instanceof ve&&typeof Te=="function"&&Te instanceof Te)&&(O=!1)}return p.delete(e),p.delete(t),O}function tt(e){return di(xa(e,i,Fa),e+"")}function ii(e){return Po(e,pe,si)}function oi(e){return Po(e,Se,ga)}var ai=Mn?function(e){return Mn.get(e)}:Ii;function Xn(e){for(var t=e.name+"",r=Nt[t],o=q.call(Nt,t)?r.length:0;o--;){var a=r[o],p=a.func;if(p==null||p==e)return a.name}return t}function Wt(e){var t=q.call(l,"placeholder")?l:e;return t.placeholder}function L(){var e=l.iteratee||_i;return e=e===_i?Ho:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var r=e.__data__;return Pu(t)?r[typeof t=="string"?"string":"hash"]:r.map}function li(e){for(var t=pe(e),r=t.length;r--;){var o=t[r],a=e[o];t[r]=[o,a,va(a)]}return t}function It(e,t){var r=Hs(e,t);return Mo(r)?r:i}function Au(e){var t=q.call(e,xt),r=e[xt];try{e[xt]=i;var o=!0}catch{}var a=Tn.call(e);return o&&(t?e[xt]=r:delete e[xt]),a}var si=kr?function(e){return e==null?[]:(e=J(e),st(kr(e),function(t){return So.call(e,t)}))}:Ei,ga=kr?function(e){for(var t=[];e;)pt(t,si(e)),e=Bn(e);return t}:Ei,ge=ye;(Mr&&ge(new Mr(new ArrayBuffer(1)))!=Lt||en&&ge(new en)!=Ue||Hr&&ge(Hr.resolve())!=Li||Ht&&ge(new Ht)!=ze||tn&&ge(new tn)!=Xt)&&(ge=function(e){var t=ye(e),r=t==Xe?e.constructor:i,o=r?Et(r):"";if(o)switch(o){case pp:return Lt;case up:return Ue;case cp:return Li;case dp:return ze;case fp:return Xt}return t});function Tu(e,t,r){for(var o=-1,a=r.length;++o<a;){var p=r[o],u=p.size;switch(p.type){case"drop":e+=u;break;case"dropRight":t-=u;break;case"take":t=me(t,e+u);break;case"takeRight":e=se(e,t-u);break}}return{start:e,end:t}}function Fu(e){var t=e.match(kl);return t?t[1].split(Ml):[]}function ya(e,t,r){t=mt(t,e);for(var o=-1,a=t.length,p=!1;++o<a;){var u=Je(t[o]);if(!(p=e!=null&&r(e,u)))break;e=e[u]}return p||++o!=a?p:(a=e==null?0:e.length,!!a&&ir(a)&&nt(u,a)&&(M(e)||At(e)))}function Lu(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&q.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function ha(e){return typeof e.constructor=="function"&&!cn(e)?Ot(Bn(e)):{}}function Bu(e,t,r){var o=e.constructor;switch(t){case Zt:return ti(e);case Yt:case Kt:return new o(+e);case Lt:return mu(e,r);case lr:case sr:case pr:case ur:case cr:case dr:case fr:case mr:case gr:return jo(e,r);case Ue:return new o;case Vt:case Jt:return new o(e);case qt:return gu(e);case ze:return new o;case vn:return yu(e)}}function Ru(e,t){var r=t.length;if(!r)return e;var o=r-1;return t[o]=(r>1?"& ":"")+t[o],t=t.join(r>2?", ":" "),e.replace(Pl,`{
|
|
9
9
|
/* [wrapped with `+t+`] */
|
|
10
|
-
`)}function Du(e){return k(e)||At(e)||!!(Co&&e&&e[Co])}function tt(e,t){var r=typeof e;return t=t==null?lt:t,!!t&&(r=="number"||r!="symbol"&&Yl.test(e))&&e>-1&&e%1==0&&e<t}function ge(e,t,r){if(!ee(r))return!1;var o=typeof t;return(o=="number"?ve(r)&&tt(t,r.length):o=="string"&&t in r)?$e(r[t],e):!1}function pi(e,t){if(k(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ie(e)?!0:Ll.test(e)||!Fl.test(e)||t!=null&&e in J(t)}function Pu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ui(e){var t=Xn(e),r=l[t];if(typeof r!="function"||!(t in W.prototype))return!1;if(e===r)return!0;var o=ai(r);return!!o&&e===o[0]}function ku(e){return!!vo&&vo in e}var Mu=En?nt:Ai;function cn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Mt;return e===r}function va(e){return e===e&&!ee(e)}function ba(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==i||e in J(r))}}function Hu(e){var t=nr(e,function(o){return r.size===F&&r.clear(),o}),r=t.cache;return t}function Nu(e,t){var r=e[1],o=t[1],a=r|o,p=a<(ae|Se|Le),u=o==Le&&r==ue||o==Le&&r==at&&e[7].length<=t[8]||o==(Le|at)&&t[7].length<=t[8]&&r==ue;if(!(p||u))return e;o&ae&&(e[2]=t[2],a|=r&ae?0:ot);var f=t[3];if(f){var g=e[3];e[3]=g?ta(g,f,t[4]):f,e[4]=g?ut(e[3],U):t[4]}return f=t[5],f&&(g=e[5],e[5]=g?na(g,f,t[6]):f,e[6]=g?ut(e[5],U):t[6]),f=t[7],f&&(e[7]=f),o&Le&&(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 Ou(e){var t=[];if(e!=null)for(var r in J(e))t.push(r);return t}function Uu(e){return Tn.call(e)}function xa(e,t,r){return t=oe(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,p=oe(o.length-t,0),u=v(p);++a<p;)u[a]=o[t+a];a=-1;for(var f=v(t+1);++a<t;)f[a]=o[a];return f[t]=r(u),Ce(e,this,f)}}function Sa(e,t){return t.length<2?e:wt(e,Me(t,0,-1))}function zu(e,t){for(var r=e.length,o=de(t.length,r),a=he(e);o--;){var p=t[o];e[o]=tt(p,r)?a[p]:i}return e}function ci(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ca=wa(Yo),dn=np||function(e,t){return se.setTimeout(e,t)},di=wa(uu);function _a(e,t,r){var o=t+"";return di(e,Ru(o,Wu(Fu(o),r)))}function wa(e){var t=0,r=0;return function(){var o=ap(),a=pl-(o-r);if(r=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var r=-1,o=e.length,a=o-1;for(t=t===i?o:t;++r<t;){var p=qr(r,a),u=e[p];e[p]=e[r],e[r]=u}return e.length=t,e}var Ia=Hu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(r,o,a,p){t.push(a?p.replace(Ol,"$1"):o||r)}),t});function qe(e){if(typeof e=="string"||Ie(e))return e;var t=e+"";return t=="0"&&1/e==-vt?"-0":t}function Et(e){if(e!=null){try{return An.call(e)}catch{}try{return e+""}catch{}}return""}function Wu(e,t){return Re(gl,function(r){var o="_."+r[0];t&r[1]&&!Cn(e,o)&&e.push(o)}),e.sort()}function Ea(e){if(e instanceof W)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,r){(r?ge(e,t,r):t===i)?t=1:t=oe(H(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,p=0,u=v(Pn(o/t));a<o;)u[p++]=Me(e,a,a+=t);return u}function Gu(e){for(var t=-1,r=e==null?0:e.length,o=0,a=[];++t<r;){var p=e[t];p&&(a[o++]=p)}return a}function Yu(){var e=arguments.length;if(!e)return[];for(var t=v(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return pt(k(r)?he(r):[r],pe(t,1))}var Ku=O(function(e,t){return ne(e)?an(e,pe(t,1,ne,!0)):[]}),Vu=O(function(e,t){var r=He(t);return ne(r)&&(r=i),ne(e)?an(e,pe(t,1,ne,!0),L(r,2)):[]}),qu=O(function(e,t){var r=He(t);return ne(r)&&(r=i),ne(e)?an(e,pe(t,1,ne,!0),i,r):[]});function Ju(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),Me(e,t<0?0:t,o)):[]}function Xu(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),t=o-t,Me(e,0,t<0?0:t)):[]}function Zu(e,t){return e&&e.length?Gn(e,L(t,3),!0,!0):[]}function Qu(e,t){return e&&e.length?Gn(e,L(t,3),!0):[]}function ju(e,t,r,o){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&ge(e,t,r)&&(r=0,o=a),Yp(e,t,r,o)):[]}function Aa(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=r==null?0:H(r);return a<0&&(a=oe(o+a,0)),_n(e,L(t,3),a)}function Ta(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return r!==i&&(a=H(r),a=r<0?oe(o+a,0):de(a,o-1)),_n(e,L(t,3),a,!0)}function Fa(e){var t=e==null?0:e.length;return t?pe(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?pe(e,vt):[]}function tc(e,t){var r=e==null?0:e.length;return r?(t=t===i?1:H(t),pe(e,t)):[]}function nc(e){for(var t=-1,r=e==null?0:e.length,o={};++t<r;){var a=e[t];o[a[0]]=a[1]}return o}function La(e){return e&&e.length?e[0]:i}function rc(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=r==null?0:H(r);return a<0&&(a=oe(o+a,0)),Rt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Me(e,0,-1):[]}var oc=O(function(e){var t=Q(e,jr);return t.length&&t[0]===e[0]?$r(t):[]}),ac=O(function(e){var t=He(e),r=Q(e,jr);return t===He(r)?t=i:r.pop(),r.length&&r[0]===e[0]?$r(r,L(t,2)):[]}),lc=O(function(e){var t=He(e),r=Q(e,jr);return t=typeof t=="function"?t:i,t&&r.pop(),r.length&&r[0]===e[0]?$r(r,i,t):[]});function sc(e,t){return e==null?"":ip.call(e,t)}function He(e){var t=e==null?0:e.length;return t?e[t-1]:i}function pc(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=o;return r!==i&&(a=H(r),a=a<0?oe(o+a,0):de(a,o-1)),t===t?Ws(e,t,a):_n(e,po,a,!0)}function uc(e,t){return e&&e.length?zo(e,H(t)):i}var cc=O(Ba);function Ba(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}function dc(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,L(r,2)):e}function fc(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,i,r):e}var mc=et(function(e,t){var r=e==null?0:e.length,o=Or(e,t);return Go(e,Q(t,function(a){return tt(a,r)?+a:a}).sort(ea)),o});function gc(e,t){var r=[];if(!(e&&e.length))return r;var o=-1,a=[],p=e.length;for(t=L(t,3);++o<p;){var u=e[o];t(u,o,e)&&(r.push(u),a.push(o))}return Go(e,a),r}function fi(e){return e==null?e:sp.call(e)}function yc(e,t,r){var o=e==null?0:e.length;return o?(r&&typeof r!="number"&&ge(e,t,r)?(t=0,r=o):(t=t==null?0:H(t),r=r===i?o:H(r)),Me(e,t,r)):[]}function hc(e,t){return $n(e,t)}function vc(e,t,r){return Xr(e,t,L(r,2))}function bc(e,t){var r=e==null?0:e.length;if(r){var o=$n(e,t);if(o<r&&$e(e[o],t))return o}return-1}function xc(e,t){return $n(e,t,!0)}function Sc(e,t,r){return Xr(e,t,L(r,2),!0)}function Cc(e,t){var r=e==null?0:e.length;if(r){var o=$n(e,t,!0)-1;if($e(e[o],t))return o}return-1}function _c(e){return e&&e.length?Ko(e):[]}function wc(e,t){return e&&e.length?Ko(e,L(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?Me(e,1,t):[]}function Ec(e,t,r){return e&&e.length?(t=r||t===i?1:H(t),Me(e,0,t<0?0:t)):[]}function Ac(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),t=o-t,Me(e,t<0?0:t,o)):[]}function Tc(e,t){return e&&e.length?Gn(e,L(t,3),!1,!0):[]}function Fc(e,t){return e&&e.length?Gn(e,L(t,3)):[]}var Lc=O(function(e){return ft(pe(e,1,ne,!0))}),Bc=O(function(e){var t=He(e);return ne(t)&&(t=i),ft(pe(e,1,ne,!0),L(t,2))}),Rc=O(function(e){var t=He(e);return t=typeof t=="function"?t:i,ft(pe(e,1,ne,!0),i,t)});function Dc(e){return e&&e.length?ft(e):[]}function Pc(e,t){return e&&e.length?ft(e,L(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?ft(e,i,t):[]}function mi(e){if(!(e&&e.length))return[];var t=0;return e=st(e,function(r){if(ne(r))return t=oe(r.length,t),!0}),Br(t,function(r){return Q(e,Tr(r))})}function Ra(e,t){if(!(e&&e.length))return[];var r=mi(e);return t==null?r:Q(r,function(o){return Ce(t,i,o)})}var Mc=O(function(e,t){return ne(e)?an(e,t):[]}),Hc=O(function(e){return Qr(st(e,ne))}),Nc=O(function(e){var t=He(e);return ne(t)&&(t=i),Qr(st(e,ne),L(t,2))}),Oc=O(function(e){var t=He(e);return t=typeof t=="function"?t:i,Qr(st(e,ne),i,t)}),Uc=O(mi);function zc(e,t){return Xo(e||[],t||[],on)}function Wc(e,t){return Xo(e||[],t||[],pn)}var $c=O(function(e){var t=e.length,r=t>1?e[t-1]:i;return r=typeof r=="function"?(e.pop(),r):i,Ra(e,r)});function Da(e){var t=l(e);return t.__chain__=!0,t}function Gc(e,t){return t(e),e}function jn(e,t){return t(e)}var Yc=et(function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,a=function(p){return Or(p,e)};return t>1||this.__actions__.length||!(o instanceof W)||!tt(r)?this.thru(a):(o=o.slice(r,+r+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new Pe(o,this.__chain__).thru(function(p){return t&&!p.length&&p.push(i),p}))});function Kc(){return Da(this)}function Vc(){return new Pe(this.value(),this.__chain__)}function qc(){this.__values__===i&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,r=this;r instanceof Nn;){var o=Ea(r);o.__index__=0,o.__values__=i,t?a.__wrapped__=o:t=o;var a=o;r=r.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof W){var t=e;return this.__actions__.length&&(t=new W(this)),t=t.reverse(),t.__actions__.push({func:jn,args:[fi],thisArg:i}),new Pe(t,this.__chain__)}return this.thru(fi)}function Qc(){return Jo(this.__wrapped__,this.__actions__)}var jc=Yn(function(e,t,r){q.call(e,r)?++e[r]:Qe(e,r,1)});function ed(e,t,r){var o=k(e)?lo:Gp;return r&&ge(e,t,r)&&(t=i),o(e,L(t,3))}function td(e,t){var r=k(e)?st:Ro;return r(e,L(t,3))}var nd=aa(Aa),rd=aa(Ta);function id(e,t){return pe(er(e,t),1)}function od(e,t){return pe(er(e,t),vt)}function ad(e,t,r){return r=r===i?1:H(r),pe(er(e,t),r)}function Pa(e,t){var r=k(e)?Re:dt;return r(e,L(t,3))}function ka(e,t){var r=k(e)?Is:Bo;return r(e,L(t,3))}var ld=Yn(function(e,t,r){q.call(e,r)?e[r].push(t):Qe(e,r,[t])});function sd(e,t,r,o){e=ve(e)?e:Gt(e),r=r&&!o?H(r):0;var a=e.length;return r<0&&(r=oe(a+r,0)),or(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Rt(e,t,r)>-1}var pd=O(function(e,t,r){var o=-1,a=typeof t=="function",p=ve(e)?v(e.length):[];return dt(e,function(u){p[++o]=a?Ce(t,u,r):ln(u,t,r)}),p}),ud=Yn(function(e,t,r){Qe(e,r,t)});function er(e,t){var r=k(e)?Q:No;return r(e,L(t,3))}function cd(e,t,r,o){return e==null?[]:(k(t)||(t=t==null?[]:[t]),r=o?i:r,k(r)||(r=r==null?[]:[r]),Wo(e,t,r))}var dd=Yn(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function fd(e,t,r){var o=k(e)?Er:co,a=arguments.length<3;return o(e,L(t,4),r,a,dt)}function md(e,t,r){var o=k(e)?Es:co,a=arguments.length<3;return o(e,L(t,4),r,a,Bo)}function gd(e,t){var r=k(e)?st:Ro;return r(e,rr(L(t,3)))}function yd(e){var t=k(e)?Ao:su;return t(e)}function hd(e,t,r){(r?ge(e,t,r):t===i)?t=1:t=H(t);var o=k(e)?Op:pu;return o(e,t)}function vd(e){var t=k(e)?Up:cu;return t(e)}function bd(e){if(e==null)return 0;if(ve(e))return or(e)?Pt(e):e.length;var t=fe(e);return t==Oe||t==Ue?e.size:Yr(e).length}function xd(e,t,r){var o=k(e)?Ar:du;return r&&ge(e,t,r)&&(t=i),o(e,L(t,3))}var Sd=O(function(e,t){if(e==null)return[];var r=t.length;return r>1&&ge(e,t[0],t[1])?t=[]:r>2&&ge(t[0],t[1],t[2])&&(t=[t[0]]),Wo(e,pe(t,1),[])}),tr=tp||function(){return se.Date.now()};function Cd(e,t){if(typeof t!="function")throw new De(y);return e=H(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ma(e,t,r){return t=r?i:t,t=e&&t==null?e.length:t,je(e,Le,i,i,i,i,t)}function Ha(e,t){var r;if(typeof t!="function")throw new De(y);return e=H(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var gi=O(function(e,t,r){var o=ae;if(r.length){var a=ut(r,Wt(gi));o|=ce}return je(e,o,t,r,a)}),Na=O(function(e,t,r){var o=ae|Se;if(r.length){var a=ut(r,Wt(Na));o|=ce}return je(t,o,e,r,a)});function Oa(e,t,r){t=r?i:t;var o=je(e,ue,i,i,i,i,i,t);return o.placeholder=Oa.placeholder,o}function Ua(e,t,r){t=r?i:t;var o=je(e,Te,i,i,i,i,i,t);return o.placeholder=Ua.placeholder,o}function za(e,t,r){var o,a,p,u,f,g,S=0,C=!1,w=!1,E=!0;if(typeof e!="function")throw new De(y);t=Ne(t)||0,ee(r)&&(C=!!r.leading,w="maxWait"in r,p=w?oe(Ne(r.maxWait)||0,t):p,E="trailing"in r?!!r.trailing:E);function T(re){var Ge=o,it=a;return o=a=i,S=re,u=e.apply(it,Ge),u}function B(re){return S=re,f=dn(z,t),C?T(re):u}function N(re){var Ge=re-g,it=re-S,al=t-Ge;return w?de(al,p-it):al}function R(re){var Ge=re-g,it=re-S;return g===i||Ge>=t||Ge<0||w&&it>=p}function z(){var re=tr();if(R(re))return $(re);f=dn(z,N(re))}function $(re){return f=i,E&&o?T(re):(o=a=i,u)}function Ee(){f!==i&&Zo(f),S=0,o=g=a=f=i}function ye(){return f===i?u:$(tr())}function Ae(){var re=tr(),Ge=R(re);if(o=arguments,a=this,g=re,Ge){if(f===i)return B(g);if(w)return Zo(f),f=dn(z,t),T(g)}return f===i&&(f=dn(z,t)),u}return Ae.cancel=Ee,Ae.flush=ye,Ae}var _d=O(function(e,t){return Lo(e,1,t)}),wd=O(function(e,t,r){return Lo(e,Ne(t)||0,r)});function Id(e){return je(e,Tt)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new De(y);var r=function(){var o=arguments,a=t?t.apply(this,o):o[0],p=r.cache;if(p.has(a))return p.get(a);var u=e.apply(this,o);return r.cache=p.set(a,u)||p,u};return r.cache=new(nr.Cache||Ze),r}nr.Cache=Ze;function rr(e){if(typeof e!="function")throw new De(y);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ed(e){return Ha(2,e)}var Ad=fu(function(e,t){t=t.length==1&&k(t[0])?Q(t[0],_e(L())):Q(pe(t,1),_e(L()));var r=t.length;return O(function(o){for(var a=-1,p=de(o.length,r);++a<p;)o[a]=t[a].call(this,o[a]);return Ce(e,this,o)})}),yi=O(function(e,t){var r=ut(t,Wt(yi));return je(e,ce,i,t,r)}),Wa=O(function(e,t){var r=ut(t,Wt(Wa));return je(e,Fe,i,t,r)}),Td=et(function(e,t){return je(e,at,i,i,i,t)});function Fd(e,t){if(typeof e!="function")throw new De(y);return t=t===i?t:H(t),O(e,t)}function Ld(e,t){if(typeof e!="function")throw new De(y);return t=t==null?0:oe(H(t),0),O(function(r){var o=r[t],a=gt(r,0,t);return o&&pt(a,o),Ce(e,this,a)})}function Bd(e,t,r){var o=!0,a=!0;if(typeof e!="function")throw new De(y);return ee(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),za(e,t,{leading:o,maxWait:t,trailing:a})}function Rd(e){return Ma(e,1)}function Dd(e,t){return yi(ei(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return k(e)?e:[e]}function kd(e){return ke(e,P)}function Md(e,t){return t=typeof t=="function"?t:i,ke(e,P,t)}function Hd(e){return ke(e,M|P)}function Nd(e,t){return t=typeof t=="function"?t:i,ke(e,M|P,t)}function Od(e,t){return t==null||Fo(e,t,le(t))}function $e(e,t){return e===t||e!==e&&t!==t}var Ud=Jn(Wr),zd=Jn(function(e,t){return e>=t}),At=ko(function(){return arguments}())?ko:function(e){return te(e)&&q.call(e,"callee")&&!So.call(e,"callee")},k=v.isArray,Wd=to?_e(to):Xp;function ve(e){return e!=null&&ir(e.length)&&!nt(e)}function ne(e){return te(e)&&ve(e)}function $d(e){return e===!0||e===!1||te(e)&&me(e)==Yt}var yt=rp||Ai,Gd=no?_e(no):Zp;function Yd(e){return te(e)&&e.nodeType===1&&!fn(e)}function Kd(e){if(e==null)return!0;if(ve(e)&&(k(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||$t(e)||At(e)))return!e.length;var t=fe(e);if(t==Oe||t==Ue)return!e.size;if(cn(e))return!Yr(e).length;for(var r in e)if(q.call(e,r))return!1;return!0}function Vd(e,t){return sn(e,t)}function qd(e,t,r){r=typeof r=="function"?r:i;var o=r?r(e,t):i;return o===i?sn(e,t,i,r):!!o}function hi(e){if(!te(e))return!1;var t=me(e);return t==yn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Jd(e){return typeof e=="number"&&_o(e)}function nt(e){if(!ee(e))return!1;var t=me(e);return t==hn||t==Fi||t==yl||t==bl}function $a(e){return typeof e=="number"&&e==H(e)}function ir(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lt}function ee(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function te(e){return e!=null&&typeof e=="object"}var Ga=ro?_e(ro):jp;function Xd(e,t){return e===t||Gr(e,t,li(t))}function Zd(e,t,r){return r=typeof r=="function"?r:i,Gr(e,t,li(t),r)}function Qd(e){return Ya(e)&&e!=+e}function jd(e){if(Mu(e))throw new D(c);return Mo(e)}function ef(e){return e===null}function tf(e){return e==null}function Ya(e){return typeof e=="number"||te(e)&&me(e)==Vt}function fn(e){if(!te(e)||me(e)!=Je)return!1;var t=Bn(e);if(t===null)return!0;var r=q.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&An.call(r)==Zs}var vi=io?_e(io):eu;function nf(e){return $a(e)&&e>=-lt&&e<=lt}var Ka=oo?_e(oo):tu;function or(e){return typeof e=="string"||!k(e)&&te(e)&&me(e)==Jt}function Ie(e){return typeof e=="symbol"||te(e)&&me(e)==vn}var $t=ao?_e(ao):nu;function rf(e){return e===i}function of(e){return te(e)&&fe(e)==Xt}function af(e){return te(e)&&me(e)==Sl}var lf=Jn(Kr),sf=Jn(function(e,t){return e<=t});function Va(e){if(!e)return[];if(ve(e))return or(e)?ze(e):he(e);if(jt&&e[jt])return Os(e[jt]());var t=fe(e),r=t==Oe?Dr:t==Ue?wn:Gt;return r(e)}function rt(e){if(!e)return e===0?e:0;if(e=Ne(e),e===vt||e===-vt){var t=e<0?-1:1;return t*dl}return e===e?e:0}function H(e){var t=rt(e),r=t%1;return t===t?r?t-r:t:0}function qa(e){return e?_t(H(e),0,Ye):0}function Ne(e){if(typeof e=="number")return e;if(Ie(e))return mn;if(ee(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ee(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fo(e);var r=Wl.test(e);return r||Gl.test(e)?Cs(e.slice(2),r?2:8):zl.test(e)?mn:+e}function Ja(e){return Ve(e,be(e))}function pf(e){return e?_t(H(e),-lt,lt):e===0?e:0}function Y(e){return e==null?"":we(e)}var uf=Ut(function(e,t){if(cn(t)||ve(t)){Ve(t,le(t),e);return}for(var r in t)q.call(t,r)&&on(e,r,t[r])}),Xa=Ut(function(e,t){Ve(t,be(t),e)}),ar=Ut(function(e,t,r,o){Ve(t,be(t),e,o)}),cf=Ut(function(e,t,r,o){Ve(t,le(t),e,o)}),df=et(Or);function ff(e,t){var r=Ot(e);return t==null?r:To(r,t)}var mf=O(function(e,t){e=J(e);var r=-1,o=t.length,a=o>2?t[2]:i;for(a&&ge(t[0],t[1],a)&&(o=1);++r<o;)for(var p=t[r],u=be(p),f=-1,g=u.length;++f<g;){var S=u[f],C=e[S];(C===i||$e(C,Mt[S])&&!q.call(e,S))&&(e[S]=p[S])}return e}),gf=O(function(e){return e.push(i,fa),Ce(Za,i,e)});function yf(e,t){return so(e,L(t,3),Ke)}function hf(e,t){return so(e,L(t,3),zr)}function vf(e,t){return e==null?e:Ur(e,L(t,3),be)}function bf(e,t){return e==null?e:Do(e,L(t,3),be)}function xf(e,t){return e&&Ke(e,L(t,3))}function Sf(e,t){return e&&zr(e,L(t,3))}function Cf(e){return e==null?[]:zn(e,le(e))}function _f(e){return e==null?[]:zn(e,be(e))}function bi(e,t,r){var o=e==null?i:wt(e,t);return o===i?r:o}function wf(e,t){return e!=null&&ya(e,t,Kp)}function xi(e,t){return e!=null&&ya(e,t,Vp)}var If=sa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Tn.call(t)),e[t]=r},Ci(xe)),Ef=sa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Tn.call(t)),q.call(e,t)?e[t].push(r):e[t]=[r]},L),Af=O(ln);function le(e){return ve(e)?Eo(e):Yr(e)}function be(e){return ve(e)?Eo(e,!0):ru(e)}function Tf(e,t){var r={};return t=L(t,3),Ke(e,function(o,a,p){Qe(r,t(o,a,p),o)}),r}function Ff(e,t){var r={};return t=L(t,3),Ke(e,function(o,a,p){Qe(r,a,t(o,a,p))}),r}var Lf=Ut(function(e,t,r){Wn(e,t,r)}),Za=Ut(function(e,t,r,o){Wn(e,t,r,o)}),Bf=et(function(e,t){var r={};if(e==null)return r;var o=!1;t=Q(t,function(p){return p=mt(p,e),o||(o=p.length>1),p}),Ve(e,oi(e),r),o&&(r=ke(r,M|K|P,wu));for(var a=t.length;a--;)Zr(r,t[a]);return r});function Rf(e,t){return Qa(e,rr(L(t)))}var Df=et(function(e,t){return e==null?{}:ou(e,t)});function Qa(e,t){if(e==null)return{};var r=Q(oi(e),function(o){return[o]});return t=L(t),$o(e,r,function(o,a){return t(o,a[0])})}function Pf(e,t,r){t=mt(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var p=e==null?i:e[qe(t[o])];p===i&&(o=a,p=r),e=nt(p)?p.call(e):p}return e}function kf(e,t,r){return e==null?e:pn(e,t,r)}function Mf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:pn(e,t,r,o)}var ja=ca(le),el=ca(be);function Hf(e,t,r){var o=k(e),a=o||yt(e)||$t(e);if(t=L(t,4),r==null){var p=e&&e.constructor;a?r=o?new p:[]:ee(e)?r=nt(p)?Ot(Bn(e)):{}:r={}}return(a?Re:Ke)(e,function(u,f,g){return t(r,u,f,g)}),r}function Nf(e,t){return e==null?!0:Zr(e,t)}function Of(e,t,r){return e==null?e:qo(e,t,ei(r))}function Uf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:qo(e,t,ei(r),o)}function Gt(e){return e==null?[]:Rr(e,le(e))}function zf(e){return e==null?[]:Rr(e,be(e))}function Wf(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=Ne(r),r=r===r?r:0),t!==i&&(t=Ne(t),t=t===t?t:0),_t(Ne(e),t,r)}function $f(e,t,r){return t=rt(t),r===i?(r=t,t=0):r=rt(r),e=Ne(e),qp(e,t,r)}function Gf(e,t,r){if(r&&typeof r!="boolean"&&ge(e,t,r)&&(t=r=i),r===i&&(typeof t=="boolean"?(r=t,t=i):typeof e=="boolean"&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=rt(e),t===i?(t=e,e=0):t=rt(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var a=wo();return de(e+a*(t-e+Ss("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Yf=zt(function(e,t,r){return t=t.toLowerCase(),e+(r?tl(t):t)});function tl(e){return Si(Y(e).toLowerCase())}function nl(e){return e=Y(e),e&&e.replace(Kl,Ps).replace(cs,"")}function Kf(e,t,r){e=Y(e),t=we(t);var o=e.length;r=r===i?o:_t(H(r),0,o);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Vf(e){return e=Y(e),e&&El.test(e)?e.replace(Ri,ks):e}function qf(e){return e=Y(e),e&&Rl.test(e)?e.replace(yr,"\\$&"):e}var Jf=zt(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Xf=zt(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Zf=oa("toLowerCase");function Qf(e,t,r){e=Y(e),t=H(t);var o=t?Pt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return qn(kn(a),r)+e+qn(Pn(a),r)}function jf(e,t,r){e=Y(e),t=H(t);var o=t?Pt(e):0;return t&&o<t?e+qn(t-o,r):e}function em(e,t,r){e=Y(e),t=H(t);var o=t?Pt(e):0;return t&&o<t?qn(t-o,r)+e:e}function tm(e,t,r){return r||t==null?t=0:t&&(t=+t),lp(Y(e).replace(hr,""),t||0)}function nm(e,t,r){return(r?ge(e,t,r):t===i)?t=1:t=H(t),Jr(Y(e),t)}function rm(){var e=arguments,t=Y(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=zt(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function om(e,t,r){return r&&typeof r!="number"&&ge(e,t,r)&&(t=r=i),r=r===i?Ye:r>>>0,r?(e=Y(e),e&&(typeof t=="string"||t!=null&&!vi(t))&&(t=we(t),!t&&Dt(e))?gt(ze(e),0,r):e.split(t,r)):[]}var am=zt(function(e,t,r){return e+(r?" ":"")+Si(t)});function lm(e,t,r){return e=Y(e),r=r==null?0:_t(H(r),0,e.length),t=we(t),e.slice(r,r+t.length)==t}function sm(e,t,r){var o=l.templateSettings;r&&ge(e,t,r)&&(t=i),e=Y(e),t=ar({},t,o,da);var a=ar({},t.imports,o.imports,da),p=le(a),u=Rr(a,p),f,g,S=0,C=t.interpolate||bn,w="__p += '",E=Pr((t.escape||bn).source+"|"+C.source+"|"+(C===Di?Ul:bn).source+"|"+(t.evaluate||bn).source+"|$","g"),T="//# sourceURL="+(q.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
|
|
11
|
-
`;e.replace(E,function(R,z,$,
|
|
10
|
+
`)}function Du(e){return M(e)||At(e)||!!(Co&&e&&e[Co])}function nt(e,t){var r=typeof e;return t=t==null?lt:t,!!t&&(r=="number"||r!="symbol"&&Yl.test(e))&&e>-1&&e%1==0&&e<t}function he(e,t,r){if(!te(r))return!1;var o=typeof t;return(o=="number"?xe(r)&&nt(t,r.length):o=="string"&&t in r)?Ge(r[t],e):!1}function pi(e,t){if(M(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ee(e)?!0:Ll.test(e)||!Fl.test(e)||t!=null&&e in J(t)}function Pu(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ui(e){var t=Xn(e),r=l[t];if(typeof r!="function"||!(t in W.prototype))return!1;if(e===r)return!0;var o=ai(r);return!!o&&e===o[0]}function ku(e){return!!vo&&vo in e}var Mu=En?rt:Ai;function cn(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Mt;return e===r}function va(e){return e===e&&!te(e)}function ba(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==i||e in J(r))}}function Hu(e){var t=nr(e,function(o){return r.size===T&&r.clear(),o}),r=t.cache;return t}function Nu(e,t){var r=e[1],o=t[1],a=r|o,p=a<(ee|ae|Be),u=o==Be&&r==de||o==Be&&r==at&&e[7].length<=t[8]||o==(Be|at)&&t[7].length<=t[8]&&r==de;if(!(p||u))return e;o&ee&&(e[2]=t[2],a|=r&ee?0:re);var f=t[3];if(f){var g=e[3];e[3]=g?ta(g,f,t[4]):f,e[4]=g?ut(e[3],N):t[4]}return f=t[5],f&&(g=e[5],e[5]=g?na(g,f,t[6]):f,e[6]=g?ut(e[5],N):t[6]),f=t[7],f&&(e[7]=f),o&Be&&(e[8]=e[8]==null?t[8]:me(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Ou(e){var t=[];if(e!=null)for(var r in J(e))t.push(r);return t}function Uu(e){return Tn.call(e)}function xa(e,t,r){return t=se(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,p=se(o.length-t,0),u=v(p);++a<p;)u[a]=o[t+a];a=-1;for(var f=v(t+1);++a<t;)f[a]=o[a];return f[t]=r(u),_e(e,this,f)}}function Sa(e,t){return t.length<2?e:wt(e,He(t,0,-1))}function zu(e,t){for(var r=e.length,o=me(t.length,r),a=be(e);o--;){var p=t[o];e[o]=nt(p,r)?a[p]:i}return e}function ci(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ca=wa(Yo),dn=np||function(e,t){return ue.setTimeout(e,t)},di=wa(uu);function _a(e,t,r){var o=t+"";return di(e,Ru(o,Wu(Fu(o),r)))}function wa(e){var t=0,r=0;return function(){var o=ap(),a=pl-(o-r);if(r=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var r=-1,o=e.length,a=o-1;for(t=t===i?o:t;++r<t;){var p=qr(r,a),u=e[p];e[p]=e[r],e[r]=u}return e.length=t,e}var Ia=Hu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Bl,function(r,o,a,p){t.push(a?p.replace(Ol,"$1"):o||r)}),t});function Je(e){if(typeof e=="string"||Ee(e))return e;var t=e+"";return t=="0"&&1/e==-vt?"-0":t}function Et(e){if(e!=null){try{return An.call(e)}catch{}try{return e+""}catch{}}return""}function Wu(e,t){return De(gl,function(r){var o="_."+r[0];t&r[1]&&!Cn(e,o)&&e.push(o)}),e.sort()}function Ea(e){if(e instanceof W)return e.clone();var t=new ke(e.__wrapped__,e.__chain__);return t.__actions__=be(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function $u(e,t,r){(r?he(e,t,r):t===i)?t=1:t=se(H(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,p=0,u=v(Pn(o/t));a<o;)u[p++]=He(e,a,a+=t);return u}function Gu(e){for(var t=-1,r=e==null?0:e.length,o=0,a=[];++t<r;){var p=e[t];p&&(a[o++]=p)}return a}function Yu(){var e=arguments.length;if(!e)return[];for(var t=v(e-1),r=arguments[0],o=e;o--;)t[o-1]=arguments[o];return pt(M(r)?be(r):[r],ce(t,1))}var Ku=U(function(e,t){return ie(e)?an(e,ce(t,1,ie,!0)):[]}),Vu=U(function(e,t){var r=Ne(t);return ie(r)&&(r=i),ie(e)?an(e,ce(t,1,ie,!0),L(r,2)):[]}),qu=U(function(e,t){var r=Ne(t);return ie(r)&&(r=i),ie(e)?an(e,ce(t,1,ie,!0),i,r):[]});function Ju(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),He(e,t<0?0:t,o)):[]}function Xu(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),t=o-t,He(e,0,t<0?0:t)):[]}function Zu(e,t){return e&&e.length?Gn(e,L(t,3),!0,!0):[]}function Qu(e,t){return e&&e.length?Gn(e,L(t,3),!0):[]}function ju(e,t,r,o){var a=e==null?0:e.length;return a?(r&&typeof r!="number"&&he(e,t,r)&&(r=0,o=a),Yp(e,t,r,o)):[]}function Aa(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=r==null?0:H(r);return a<0&&(a=se(o+a,0)),_n(e,L(t,3),a)}function Ta(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return r!==i&&(a=H(r),a=r<0?se(o+a,0):me(a,o-1)),_n(e,L(t,3),a,!0)}function Fa(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,vt):[]}function tc(e,t){var r=e==null?0:e.length;return r?(t=t===i?1:H(t),ce(e,t)):[]}function nc(e){for(var t=-1,r=e==null?0:e.length,o={};++t<r;){var a=e[t];o[a[0]]=a[1]}return o}function La(e){return e&&e.length?e[0]:i}function rc(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=r==null?0:H(r);return a<0&&(a=se(o+a,0)),Rt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?He(e,0,-1):[]}var oc=U(function(e){var t=j(e,jr);return t.length&&t[0]===e[0]?$r(t):[]}),ac=U(function(e){var t=Ne(e),r=j(e,jr);return t===Ne(r)?t=i:r.pop(),r.length&&r[0]===e[0]?$r(r,L(t,2)):[]}),lc=U(function(e){var t=Ne(e),r=j(e,jr);return t=typeof t=="function"?t:i,t&&r.pop(),r.length&&r[0]===e[0]?$r(r,i,t):[]});function sc(e,t){return e==null?"":ip.call(e,t)}function Ne(e){var t=e==null?0:e.length;return t?e[t-1]:i}function pc(e,t,r){var o=e==null?0:e.length;if(!o)return-1;var a=o;return r!==i&&(a=H(r),a=a<0?se(o+a,0):me(a,o-1)),t===t?Ws(e,t,a):_n(e,po,a,!0)}function uc(e,t){return e&&e.length?zo(e,H(t)):i}var cc=U(Ba);function Ba(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}function dc(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,L(r,2)):e}function fc(e,t,r){return e&&e.length&&t&&t.length?Vr(e,t,i,r):e}var mc=tt(function(e,t){var r=e==null?0:e.length,o=Or(e,t);return Go(e,j(t,function(a){return nt(a,r)?+a:a}).sort(ea)),o});function gc(e,t){var r=[];if(!(e&&e.length))return r;var o=-1,a=[],p=e.length;for(t=L(t,3);++o<p;){var u=e[o];t(u,o,e)&&(r.push(u),a.push(o))}return Go(e,a),r}function fi(e){return e==null?e:sp.call(e)}function yc(e,t,r){var o=e==null?0:e.length;return o?(r&&typeof r!="number"&&he(e,t,r)?(t=0,r=o):(t=t==null?0:H(t),r=r===i?o:H(r)),He(e,t,r)):[]}function hc(e,t){return $n(e,t)}function vc(e,t,r){return Xr(e,t,L(r,2))}function bc(e,t){var r=e==null?0:e.length;if(r){var o=$n(e,t);if(o<r&&Ge(e[o],t))return o}return-1}function xc(e,t){return $n(e,t,!0)}function Sc(e,t,r){return Xr(e,t,L(r,2),!0)}function Cc(e,t){var r=e==null?0:e.length;if(r){var o=$n(e,t,!0)-1;if(Ge(e[o],t))return o}return-1}function _c(e){return e&&e.length?Ko(e):[]}function wc(e,t){return e&&e.length?Ko(e,L(t,2)):[]}function Ic(e){var t=e==null?0:e.length;return t?He(e,1,t):[]}function Ec(e,t,r){return e&&e.length?(t=r||t===i?1:H(t),He(e,0,t<0?0:t)):[]}function Ac(e,t,r){var o=e==null?0:e.length;return o?(t=r||t===i?1:H(t),t=o-t,He(e,t<0?0:t,o)):[]}function Tc(e,t){return e&&e.length?Gn(e,L(t,3),!1,!0):[]}function Fc(e,t){return e&&e.length?Gn(e,L(t,3)):[]}var Lc=U(function(e){return ft(ce(e,1,ie,!0))}),Bc=U(function(e){var t=Ne(e);return ie(t)&&(t=i),ft(ce(e,1,ie,!0),L(t,2))}),Rc=U(function(e){var t=Ne(e);return t=typeof t=="function"?t:i,ft(ce(e,1,ie,!0),i,t)});function Dc(e){return e&&e.length?ft(e):[]}function Pc(e,t){return e&&e.length?ft(e,L(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?ft(e,i,t):[]}function mi(e){if(!(e&&e.length))return[];var t=0;return e=st(e,function(r){if(ie(r))return t=se(r.length,t),!0}),Br(t,function(r){return j(e,Tr(r))})}function Ra(e,t){if(!(e&&e.length))return[];var r=mi(e);return t==null?r:j(r,function(o){return _e(t,i,o)})}var Mc=U(function(e,t){return ie(e)?an(e,t):[]}),Hc=U(function(e){return Qr(st(e,ie))}),Nc=U(function(e){var t=Ne(e);return ie(t)&&(t=i),Qr(st(e,ie),L(t,2))}),Oc=U(function(e){var t=Ne(e);return t=typeof t=="function"?t:i,Qr(st(e,ie),i,t)}),Uc=U(mi);function zc(e,t){return Xo(e||[],t||[],on)}function Wc(e,t){return Xo(e||[],t||[],pn)}var $c=U(function(e){var t=e.length,r=t>1?e[t-1]:i;return r=typeof r=="function"?(e.pop(),r):i,Ra(e,r)});function Da(e){var t=l(e);return t.__chain__=!0,t}function Gc(e,t){return t(e),e}function jn(e,t){return t(e)}var Yc=tt(function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,a=function(p){return Or(p,e)};return t>1||this.__actions__.length||!(o instanceof W)||!nt(r)?this.thru(a):(o=o.slice(r,+r+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new ke(o,this.__chain__).thru(function(p){return t&&!p.length&&p.push(i),p}))});function Kc(){return Da(this)}function Vc(){return new ke(this.value(),this.__chain__)}function qc(){this.__values__===i&&(this.__values__=Va(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Xc(e){for(var t,r=this;r instanceof Nn;){var o=Ea(r);o.__index__=0,o.__values__=i,t?a.__wrapped__=o:t=o;var a=o;r=r.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof W){var t=e;return this.__actions__.length&&(t=new W(this)),t=t.reverse(),t.__actions__.push({func:jn,args:[fi],thisArg:i}),new ke(t,this.__chain__)}return this.thru(fi)}function Qc(){return Jo(this.__wrapped__,this.__actions__)}var jc=Yn(function(e,t,r){q.call(e,r)?++e[r]:je(e,r,1)});function ed(e,t,r){var o=M(e)?lo:Gp;return r&&he(e,t,r)&&(t=i),o(e,L(t,3))}function td(e,t){var r=M(e)?st:Ro;return r(e,L(t,3))}var nd=aa(Aa),rd=aa(Ta);function id(e,t){return ce(er(e,t),1)}function od(e,t){return ce(er(e,t),vt)}function ad(e,t,r){return r=r===i?1:H(r),ce(er(e,t),r)}function Pa(e,t){var r=M(e)?De:dt;return r(e,L(t,3))}function ka(e,t){var r=M(e)?Is:Bo;return r(e,L(t,3))}var ld=Yn(function(e,t,r){q.call(e,r)?e[r].push(t):je(e,r,[t])});function sd(e,t,r,o){e=xe(e)?e:Gt(e),r=r&&!o?H(r):0;var a=e.length;return r<0&&(r=se(a+r,0)),or(e)?r<=a&&e.indexOf(t,r)>-1:!!a&&Rt(e,t,r)>-1}var pd=U(function(e,t,r){var o=-1,a=typeof t=="function",p=xe(e)?v(e.length):[];return dt(e,function(u){p[++o]=a?_e(t,u,r):ln(u,t,r)}),p}),ud=Yn(function(e,t,r){je(e,r,t)});function er(e,t){var r=M(e)?j:No;return r(e,L(t,3))}function cd(e,t,r,o){return e==null?[]:(M(t)||(t=t==null?[]:[t]),r=o?i:r,M(r)||(r=r==null?[]:[r]),Wo(e,t,r))}var dd=Yn(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});function fd(e,t,r){var o=M(e)?Er:co,a=arguments.length<3;return o(e,L(t,4),r,a,dt)}function md(e,t,r){var o=M(e)?Es:co,a=arguments.length<3;return o(e,L(t,4),r,a,Bo)}function gd(e,t){var r=M(e)?st:Ro;return r(e,rr(L(t,3)))}function yd(e){var t=M(e)?Ao:su;return t(e)}function hd(e,t,r){(r?he(e,t,r):t===i)?t=1:t=H(t);var o=M(e)?Op:pu;return o(e,t)}function vd(e){var t=M(e)?Up:cu;return t(e)}function bd(e){if(e==null)return 0;if(xe(e))return or(e)?Pt(e):e.length;var t=ge(e);return t==Ue||t==ze?e.size:Yr(e).length}function xd(e,t,r){var o=M(e)?Ar:du;return r&&he(e,t,r)&&(t=i),o(e,L(t,3))}var Sd=U(function(e,t){if(e==null)return[];var r=t.length;return r>1&&he(e,t[0],t[1])?t=[]:r>2&&he(t[0],t[1],t[2])&&(t=[t[0]]),Wo(e,ce(t,1),[])}),tr=tp||function(){return ue.Date.now()};function Cd(e,t){if(typeof t!="function")throw new Pe(y);return e=H(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ma(e,t,r){return t=r?i:t,t=e&&t==null?e.length:t,et(e,Be,i,i,i,i,t)}function Ha(e,t){var r;if(typeof t!="function")throw new Pe(y);return e=H(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=i),r}}var gi=U(function(e,t,r){var o=ee;if(r.length){var a=ut(r,Wt(gi));o|=fe}return et(e,o,t,r,a)}),Na=U(function(e,t,r){var o=ee|ae;if(r.length){var a=ut(r,Wt(Na));o|=fe}return et(t,o,e,r,a)});function Oa(e,t,r){t=r?i:t;var o=et(e,de,i,i,i,i,i,t);return o.placeholder=Oa.placeholder,o}function Ua(e,t,r){t=r?i:t;var o=et(e,Fe,i,i,i,i,i,t);return o.placeholder=Ua.placeholder,o}function za(e,t,r){var o,a,p,u,f,g,S=0,C=!1,w=!1,E=!0;if(typeof e!="function")throw new Pe(y);t=Oe(t)||0,te(r)&&(C=!!r.leading,w="maxWait"in r,p=w?se(Oe(r.maxWait)||0,t):p,E="trailing"in r?!!r.trailing:E);function F(oe){var Ye=o,ot=a;return o=a=i,S=oe,u=e.apply(ot,Ye),u}function B(oe){return S=oe,f=dn(z,t),C?F(oe):u}function O(oe){var Ye=oe-g,ot=oe-S,al=t-Ye;return w?me(al,p-ot):al}function R(oe){var Ye=oe-g,ot=oe-S;return g===i||Ye>=t||Ye<0||w&&ot>=p}function z(){var oe=tr();if(R(oe))return $(oe);f=dn(z,O(oe))}function $(oe){return f=i,E&&o?F(oe):(o=a=i,u)}function Ae(){f!==i&&Zo(f),S=0,o=g=a=f=i}function ve(){return f===i?u:$(tr())}function Te(){var oe=tr(),Ye=R(oe);if(o=arguments,a=this,g=oe,Ye){if(f===i)return B(g);if(w)return Zo(f),f=dn(z,t),F(g)}return f===i&&(f=dn(z,t)),u}return Te.cancel=Ae,Te.flush=ve,Te}var _d=U(function(e,t){return Lo(e,1,t)}),wd=U(function(e,t,r){return Lo(e,Oe(t)||0,r)});function Id(e){return et(e,Tt)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Pe(y);var r=function(){var o=arguments,a=t?t.apply(this,o):o[0],p=r.cache;if(p.has(a))return p.get(a);var u=e.apply(this,o);return r.cache=p.set(a,u)||p,u};return r.cache=new(nr.Cache||Qe),r}nr.Cache=Qe;function rr(e){if(typeof e!="function")throw new Pe(y);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ed(e){return Ha(2,e)}var Ad=fu(function(e,t){t=t.length==1&&M(t[0])?j(t[0],we(L())):j(ce(t,1),we(L()));var r=t.length;return U(function(o){for(var a=-1,p=me(o.length,r);++a<p;)o[a]=t[a].call(this,o[a]);return _e(e,this,o)})}),yi=U(function(e,t){var r=ut(t,Wt(yi));return et(e,fe,i,t,r)}),Wa=U(function(e,t){var r=ut(t,Wt(Wa));return et(e,Le,i,t,r)}),Td=tt(function(e,t){return et(e,at,i,i,i,t)});function Fd(e,t){if(typeof e!="function")throw new Pe(y);return t=t===i?t:H(t),U(e,t)}function Ld(e,t){if(typeof e!="function")throw new Pe(y);return t=t==null?0:se(H(t),0),U(function(r){var o=r[t],a=gt(r,0,t);return o&&pt(a,o),_e(e,this,a)})}function Bd(e,t,r){var o=!0,a=!0;if(typeof e!="function")throw new Pe(y);return te(r)&&(o="leading"in r?!!r.leading:o,a="trailing"in r?!!r.trailing:a),za(e,t,{leading:o,maxWait:t,trailing:a})}function Rd(e){return Ma(e,1)}function Dd(e,t){return yi(ei(t),e)}function Pd(){if(!arguments.length)return[];var e=arguments[0];return M(e)?e:[e]}function kd(e){return Me(e,D)}function Md(e,t){return t=typeof t=="function"?t:i,Me(e,D,t)}function Hd(e){return Me(e,P|D)}function Nd(e,t){return t=typeof t=="function"?t:i,Me(e,P|D,t)}function Od(e,t){return t==null||Fo(e,t,pe(t))}function Ge(e,t){return e===t||e!==e&&t!==t}var Ud=Jn(Wr),zd=Jn(function(e,t){return e>=t}),At=ko(function(){return arguments}())?ko:function(e){return ne(e)&&q.call(e,"callee")&&!So.call(e,"callee")},M=v.isArray,Wd=to?we(to):Xp;function xe(e){return e!=null&&ir(e.length)&&!rt(e)}function ie(e){return ne(e)&&xe(e)}function $d(e){return e===!0||e===!1||ne(e)&&ye(e)==Yt}var yt=rp||Ai,Gd=no?we(no):Zp;function Yd(e){return ne(e)&&e.nodeType===1&&!fn(e)}function Kd(e){if(e==null)return!0;if(xe(e)&&(M(e)||typeof e=="string"||typeof e.splice=="function"||yt(e)||$t(e)||At(e)))return!e.length;var t=ge(e);if(t==Ue||t==ze)return!e.size;if(cn(e))return!Yr(e).length;for(var r in e)if(q.call(e,r))return!1;return!0}function Vd(e,t){return sn(e,t)}function qd(e,t,r){r=typeof r=="function"?r:i;var o=r?r(e,t):i;return o===i?sn(e,t,i,r):!!o}function hi(e){if(!ne(e))return!1;var t=ye(e);return t==yn||t==hl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Jd(e){return typeof e=="number"&&_o(e)}function rt(e){if(!te(e))return!1;var t=ye(e);return t==hn||t==Fi||t==yl||t==bl}function $a(e){return typeof e=="number"&&e==H(e)}function ir(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 ne(e){return e!=null&&typeof e=="object"}var Ga=ro?we(ro):jp;function Xd(e,t){return e===t||Gr(e,t,li(t))}function Zd(e,t,r){return r=typeof r=="function"?r:i,Gr(e,t,li(t),r)}function Qd(e){return Ya(e)&&e!=+e}function jd(e){if(Mu(e))throw new k(c);return Mo(e)}function ef(e){return e===null}function tf(e){return e==null}function Ya(e){return typeof e=="number"||ne(e)&&ye(e)==Vt}function fn(e){if(!ne(e)||ye(e)!=Xe)return!1;var t=Bn(e);if(t===null)return!0;var r=q.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&An.call(r)==Zs}var vi=io?we(io):eu;function nf(e){return $a(e)&&e>=-lt&&e<=lt}var Ka=oo?we(oo):tu;function or(e){return typeof e=="string"||!M(e)&&ne(e)&&ye(e)==Jt}function Ee(e){return typeof e=="symbol"||ne(e)&&ye(e)==vn}var $t=ao?we(ao):nu;function rf(e){return e===i}function of(e){return ne(e)&&ge(e)==Xt}function af(e){return ne(e)&&ye(e)==Sl}var lf=Jn(Kr),sf=Jn(function(e,t){return e<=t});function Va(e){if(!e)return[];if(xe(e))return or(e)?We(e):be(e);if(jt&&e[jt])return Os(e[jt]());var t=ge(e),r=t==Ue?Dr:t==ze?wn:Gt;return r(e)}function it(e){if(!e)return e===0?e:0;if(e=Oe(e),e===vt||e===-vt){var t=e<0?-1:1;return t*dl}return e===e?e:0}function H(e){var t=it(e),r=t%1;return t===t?r?t-r:t:0}function qa(e){return e?_t(H(e),0,Ke):0}function Oe(e){if(typeof e=="number")return e;if(Ee(e))return mn;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=fo(e);var r=Wl.test(e);return r||Gl.test(e)?Cs(e.slice(2),r?2:8):zl.test(e)?mn:+e}function Ja(e){return qe(e,Se(e))}function pf(e){return e?_t(H(e),-lt,lt):e===0?e:0}function V(e){return e==null?"":Ie(e)}var uf=Ut(function(e,t){if(cn(t)||xe(t)){qe(t,pe(t),e);return}for(var r in t)q.call(t,r)&&on(e,r,t[r])}),Xa=Ut(function(e,t){qe(t,Se(t),e)}),ar=Ut(function(e,t,r,o){qe(t,Se(t),e,o)}),cf=Ut(function(e,t,r,o){qe(t,pe(t),e,o)}),df=tt(Or);function ff(e,t){var r=Ot(e);return t==null?r:To(r,t)}var mf=U(function(e,t){e=J(e);var r=-1,o=t.length,a=o>2?t[2]:i;for(a&&he(t[0],t[1],a)&&(o=1);++r<o;)for(var p=t[r],u=Se(p),f=-1,g=u.length;++f<g;){var S=u[f],C=e[S];(C===i||Ge(C,Mt[S])&&!q.call(e,S))&&(e[S]=p[S])}return e}),gf=U(function(e){return e.push(i,fa),_e(Za,i,e)});function yf(e,t){return so(e,L(t,3),Ve)}function hf(e,t){return so(e,L(t,3),zr)}function vf(e,t){return e==null?e:Ur(e,L(t,3),Se)}function bf(e,t){return e==null?e:Do(e,L(t,3),Se)}function xf(e,t){return e&&Ve(e,L(t,3))}function Sf(e,t){return e&&zr(e,L(t,3))}function Cf(e){return e==null?[]:zn(e,pe(e))}function _f(e){return e==null?[]:zn(e,Se(e))}function bi(e,t,r){var o=e==null?i:wt(e,t);return o===i?r:o}function wf(e,t){return e!=null&&ya(e,t,Kp)}function xi(e,t){return e!=null&&ya(e,t,Vp)}var If=sa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Tn.call(t)),e[t]=r},Ci(Ce)),Ef=sa(function(e,t,r){t!=null&&typeof t.toString!="function"&&(t=Tn.call(t)),q.call(e,t)?e[t].push(r):e[t]=[r]},L),Af=U(ln);function pe(e){return xe(e)?Eo(e):Yr(e)}function Se(e){return xe(e)?Eo(e,!0):ru(e)}function Tf(e,t){var r={};return t=L(t,3),Ve(e,function(o,a,p){je(r,t(o,a,p),o)}),r}function Ff(e,t){var r={};return t=L(t,3),Ve(e,function(o,a,p){je(r,a,t(o,a,p))}),r}var Lf=Ut(function(e,t,r){Wn(e,t,r)}),Za=Ut(function(e,t,r,o){Wn(e,t,r,o)}),Bf=tt(function(e,t){var r={};if(e==null)return r;var o=!1;t=j(t,function(p){return p=mt(p,e),o||(o=p.length>1),p}),qe(e,oi(e),r),o&&(r=Me(r,P|G|D,wu));for(var a=t.length;a--;)Zr(r,t[a]);return r});function Rf(e,t){return Qa(e,rr(L(t)))}var Df=tt(function(e,t){return e==null?{}:ou(e,t)});function Qa(e,t){if(e==null)return{};var r=j(oi(e),function(o){return[o]});return t=L(t),$o(e,r,function(o,a){return t(o,a[0])})}function Pf(e,t,r){t=mt(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var p=e==null?i:e[Je(t[o])];p===i&&(o=a,p=r),e=rt(p)?p.call(e):p}return e}function kf(e,t,r){return e==null?e:pn(e,t,r)}function Mf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:pn(e,t,r,o)}var ja=ca(pe),el=ca(Se);function Hf(e,t,r){var o=M(e),a=o||yt(e)||$t(e);if(t=L(t,4),r==null){var p=e&&e.constructor;a?r=o?new p:[]:te(e)?r=rt(p)?Ot(Bn(e)):{}:r={}}return(a?De:Ve)(e,function(u,f,g){return t(r,u,f,g)}),r}function Nf(e,t){return e==null?!0:Zr(e,t)}function Of(e,t,r){return e==null?e:qo(e,t,ei(r))}function Uf(e,t,r,o){return o=typeof o=="function"?o:i,e==null?e:qo(e,t,ei(r),o)}function Gt(e){return e==null?[]:Rr(e,pe(e))}function zf(e){return e==null?[]:Rr(e,Se(e))}function Wf(e,t,r){return r===i&&(r=t,t=i),r!==i&&(r=Oe(r),r=r===r?r:0),t!==i&&(t=Oe(t),t=t===t?t:0),_t(Oe(e),t,r)}function $f(e,t,r){return t=it(t),r===i?(r=t,t=0):r=it(r),e=Oe(e),qp(e,t,r)}function Gf(e,t,r){if(r&&typeof r!="boolean"&&he(e,t,r)&&(t=r=i),r===i&&(typeof t=="boolean"?(r=t,t=i):typeof e=="boolean"&&(r=e,e=i)),e===i&&t===i?(e=0,t=1):(e=it(e),t===i?(t=e,e=0):t=it(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var a=wo();return me(e+a*(t-e+Ss("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Yf=zt(function(e,t,r){return t=t.toLowerCase(),e+(r?tl(t):t)});function tl(e){return Si(V(e).toLowerCase())}function nl(e){return e=V(e),e&&e.replace(Kl,Ps).replace(cs,"")}function Kf(e,t,r){e=V(e),t=Ie(t);var o=e.length;r=r===i?o:_t(H(r),0,o);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Vf(e){return e=V(e),e&&El.test(e)?e.replace(Ri,ks):e}function qf(e){return e=V(e),e&&Rl.test(e)?e.replace(yr,"\\$&"):e}var Jf=zt(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),Xf=zt(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),Zf=oa("toLowerCase");function Qf(e,t,r){e=V(e),t=H(t);var o=t?Pt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return qn(kn(a),r)+e+qn(Pn(a),r)}function jf(e,t,r){e=V(e),t=H(t);var o=t?Pt(e):0;return t&&o<t?e+qn(t-o,r):e}function em(e,t,r){e=V(e),t=H(t);var o=t?Pt(e):0;return t&&o<t?qn(t-o,r)+e:e}function tm(e,t,r){return r||t==null?t=0:t&&(t=+t),lp(V(e).replace(hr,""),t||0)}function nm(e,t,r){return(r?he(e,t,r):t===i)?t=1:t=H(t),Jr(V(e),t)}function rm(){var e=arguments,t=V(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var im=zt(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});function om(e,t,r){return r&&typeof r!="number"&&he(e,t,r)&&(t=r=i),r=r===i?Ke:r>>>0,r?(e=V(e),e&&(typeof t=="string"||t!=null&&!vi(t))&&(t=Ie(t),!t&&Dt(e))?gt(We(e),0,r):e.split(t,r)):[]}var am=zt(function(e,t,r){return e+(r?" ":"")+Si(t)});function lm(e,t,r){return e=V(e),r=r==null?0:_t(H(r),0,e.length),t=Ie(t),e.slice(r,r+t.length)==t}function sm(e,t,r){var o=l.templateSettings;r&&he(e,t,r)&&(t=i),e=V(e),t=ar({},t,o,da);var a=ar({},t.imports,o.imports,da),p=pe(a),u=Rr(a,p),f,g,S=0,C=t.interpolate||bn,w="__p += '",E=Pr((t.escape||bn).source+"|"+C.source+"|"+(C===Di?Ul:bn).source+"|"+(t.evaluate||bn).source+"|$","g"),F="//# sourceURL="+(q.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ys+"]")+`
|
|
11
|
+
`;e.replace(E,function(R,z,$,Ae,ve,Te){return $||($=Ae),w+=e.slice(S,Te).replace(Vl,Ms),z&&(f=!0,w+=`' +
|
|
12
12
|
__e(`+z+`) +
|
|
13
|
-
'`),
|
|
14
|
-
`+
|
|
13
|
+
'`),ve&&(g=!0,w+=`';
|
|
14
|
+
`+ve+`;
|
|
15
15
|
__p += '`),$&&(w+=`' +
|
|
16
16
|
((__t = (`+$+`)) == null ? '' : __t) +
|
|
17
|
-
'`),S=
|
|
17
|
+
'`),S=Te+R.length,R}),w+=`';
|
|
18
18
|
`;var B=q.call(t,"variable")&&t.variable;if(!B)w=`with (obj) {
|
|
19
19
|
`+w+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(Nl.test(B))throw new
|
|
21
|
+
`;else if(Nl.test(B))throw new k(b);w=(g?w.replace(Cl,""):w).replace(_l,"$1").replace(wl,"$1;"),w="function("+(B||"obj")+`) {
|
|
22
22
|
`+(B?"":`obj || (obj = {});
|
|
23
23
|
`)+"var __t, __p = ''"+(f?", __e = _.escape":"")+(g?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
26
|
`)+w+`return __p
|
|
27
|
-
}`;var N=il(function(){return G(p,T+"return "+w).apply(i,u)});if(N.source=w,hi(N))throw N;return N}function pm(e){return Y(e).toLowerCase()}function um(e){return Y(e).toUpperCase()}function cm(e,t,r){if(e=Y(e),e&&(r||t===i))return fo(e);if(!e||!(t=we(t)))return e;var o=ze(e),a=ze(t),p=mo(o,a),u=go(o,a)+1;return gt(o,p,u).join("")}function dm(e,t,r){if(e=Y(e),e&&(r||t===i))return e.slice(0,ho(e)+1);if(!e||!(t=we(t)))return e;var o=ze(e),a=go(o,ze(t))+1;return gt(o,0,a).join("")}function fm(e,t,r){if(e=Y(e),e&&(r||t===i))return e.replace(hr,"");if(!e||!(t=we(t)))return e;var o=ze(e),a=mo(o,ze(t));return gt(o,a).join("")}function mm(e,t){var r=ht,o=ll;if(ee(t)){var a="separator"in t?t.separator:a;r="length"in t?H(t.length):r,o="omission"in t?we(t.omission):o}e=Y(e);var p=e.length;if(Dt(e)){var u=ze(e);p=u.length}if(r>=p)return e;var f=r-Pt(o);if(f<1)return o;var g=u?gt(u,0,f).join(""):e.slice(0,f);if(a===i)return g+o;if(u&&(f+=g.length-f),vi(a)){if(e.slice(f).search(a)){var S,C=g;for(a.global||(a=Pr(a.source,Y(Pi.exec(a))+"g")),a.lastIndex=0;S=a.exec(C);)var w=S.index;g=g.slice(0,w===i?f:w)}}else if(e.indexOf(we(a),f)!=f){var E=g.lastIndexOf(a);E>-1&&(g=g.slice(0,E))}return g+o}function gm(e){return e=Y(e),e&&Il.test(e)?e.replace(Bi,$s):e}var ym=zt(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Si=oa("toUpperCase");function rl(e,t,r){return e=Y(e),t=r?i:t,t===i?Ns(e)?Ks(e):Fs(e):e.match(t)||[]}var il=O(function(e,t){try{return Ce(e,i,t)}catch(r){return hi(r)?r:new D(r)}}),hm=et(function(e,t){return Re(t,function(r){r=qe(r),Qe(e,r,gi(e[r],e))}),e});function vm(e){var t=e==null?0:e.length,r=L();return e=t?Q(e,function(o){if(typeof o[1]!="function")throw new De(y);return[r(o[0]),o[1]]}):[],O(function(o){for(var a=-1;++a<t;){var p=e[a];if(Ce(p[0],this,o))return Ce(p[1],this,o)}})}function bm(e){return $p(ke(e,M))}function Ci(e){return function(){return e}}function xm(e,t){return e==null||e!==e?t:e}var Sm=la(),Cm=la(!0);function xe(e){return e}function _i(e){return Ho(typeof e=="function"?e:ke(e,M))}function _m(e){return Oo(ke(e,M))}function wm(e,t){return Uo(e,ke(t,M))}var Im=O(function(e,t){return function(r){return ln(r,e,t)}}),Em=O(function(e,t){return function(r){return ln(e,r,t)}});function wi(e,t,r){var o=le(t),a=zn(t,o);r==null&&!(ee(t)&&(a.length||!o.length))&&(r=t,t=e,e=this,a=zn(t,le(t)));var p=!(ee(r)&&"chain"in r)||!!r.chain,u=nt(e);return Re(a,function(f){var g=t[f];e[f]=g,u&&(e.prototype[f]=function(){var S=this.__chain__;if(p||S){var C=e(this.__wrapped__),w=C.__actions__=he(this.__actions__);return w.push({func:g,args:arguments,thisArg:e}),C.__chain__=S,C}return g.apply(e,pt([this.value()],arguments))})}),e}function Am(){return se._===this&&(se._=Qs),this}function Ii(){}function Tm(e){return e=H(e),O(function(t){return zo(t,e)})}var Fm=ni(Q),Lm=ni(lo),Bm=ni(Ar);function ol(e){return pi(e)?Tr(qe(e)):au(e)}function Rm(e){return function(t){return e==null?i:wt(e,t)}}var Dm=pa(),Pm=pa(!0);function Ei(){return[]}function Ai(){return!1}function km(){return{}}function Mm(){return""}function Hm(){return!0}function Nm(e,t){if(e=H(e),e<1||e>lt)return[];var r=Ye,o=de(e,Ye);t=L(t),e-=Ye;for(var a=Br(o,t);++r<e;)t(r);return a}function Om(e){return k(e)?Q(e,qe):Ie(e)?[e]:he(Ia(Y(e)))}function Um(e){var t=++Xs;return Y(e)+t}var zm=Vn(function(e,t){return e+t},0),Wm=ri("ceil"),$m=Vn(function(e,t){return e/t},1),Gm=ri("floor");function Ym(e){return e&&e.length?Un(e,xe,Wr):i}function Km(e,t){return e&&e.length?Un(e,L(t,2),Wr):i}function Vm(e){return uo(e,xe)}function qm(e,t){return uo(e,L(t,2))}function Jm(e){return e&&e.length?Un(e,xe,Kr):i}function Xm(e,t){return e&&e.length?Un(e,L(t,2),Kr):i}var Zm=Vn(function(e,t){return e*t},1),Qm=ri("round"),jm=Vn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Lr(e,xe):0}function tg(e,t){return e&&e.length?Lr(e,L(t,2)):0}return l.after=Cd,l.ary=Ma,l.assign=uf,l.assignIn=Xa,l.assignInWith=ar,l.assignWith=cf,l.at=df,l.before=Ha,l.bind=gi,l.bindAll=hm,l.bindKey=Na,l.castArray=Pd,l.chain=Da,l.chunk=$u,l.compact=Gu,l.concat=Yu,l.cond=vm,l.conforms=bm,l.constant=Ci,l.countBy=jc,l.create=ff,l.curry=Oa,l.curryRight=Ua,l.debounce=za,l.defaults=mf,l.defaultsDeep=gf,l.defer=_d,l.delay=wd,l.difference=Ku,l.differenceBy=Vu,l.differenceWith=qu,l.drop=Ju,l.dropRight=Xu,l.dropRightWhile=Zu,l.dropWhile=Qu,l.fill=ju,l.filter=td,l.flatMap=id,l.flatMapDeep=od,l.flatMapDepth=ad,l.flatten=Fa,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=Id,l.flow=Sm,l.flowRight=Cm,l.fromPairs=nc,l.functions=Cf,l.functionsIn=_f,l.groupBy=ld,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=If,l.invertBy=Ef,l.invokeMap=pd,l.iteratee=_i,l.keyBy=ud,l.keys=le,l.keysIn=be,l.map=er,l.mapKeys=Tf,l.mapValues=Ff,l.matches=_m,l.matchesProperty=wm,l.memoize=nr,l.merge=Lf,l.mergeWith=Za,l.method=Im,l.methodOf=Em,l.mixin=wi,l.negate=rr,l.nthArg=Tm,l.omit=Bf,l.omitBy=Rf,l.once=Ed,l.orderBy=cd,l.over=Fm,l.overArgs=Ad,l.overEvery=Lm,l.overSome=Bm,l.partial=yi,l.partialRight=Wa,l.partition=dd,l.pick=Df,l.pickBy=Qa,l.property=ol,l.propertyOf=Rm,l.pull=cc,l.pullAll=Ba,l.pullAllBy=dc,l.pullAllWith=fc,l.pullAt=mc,l.range=Dm,l.rangeRight=Pm,l.rearg=Td,l.reject=gd,l.remove=gc,l.rest=Fd,l.reverse=fi,l.sampleSize=hd,l.set=kf,l.setWith=Mf,l.shuffle=vd,l.slice=yc,l.sortBy=Sd,l.sortedUniq=_c,l.sortedUniqBy=wc,l.split=om,l.spread=Ld,l.tail=Ic,l.take=Ec,l.takeRight=Ac,l.takeRightWhile=Tc,l.takeWhile=Fc,l.tap=Gc,l.throttle=Bd,l.thru=jn,l.toArray=Va,l.toPairs=ja,l.toPairsIn=el,l.toPath=Om,l.toPlainObject=Ja,l.transform=Hf,l.unary=Rd,l.union=Lc,l.unionBy=Bc,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Nf,l.unzip=mi,l.unzipWith=Ra,l.update=Of,l.updateWith=Uf,l.values=Gt,l.valuesIn=zf,l.without=Mc,l.words=rl,l.wrap=Dd,l.xor=Hc,l.xorBy=Nc,l.xorWith=Oc,l.zip=Uc,l.zipObject=zc,l.zipObjectDeep=Wc,l.zipWith=$c,l.entries=ja,l.entriesIn=el,l.extend=Xa,l.extendWith=ar,wi(l,l),l.add=zm,l.attempt=il,l.camelCase=Yf,l.capitalize=tl,l.ceil=Wm,l.clamp=Wf,l.clone=kd,l.cloneDeep=Hd,l.cloneDeepWith=Nd,l.cloneWith=Md,l.conformsTo=Od,l.deburr=nl,l.defaultTo=xm,l.divide=$m,l.endsWith=Kf,l.eq=$e,l.escape=Vf,l.escapeRegExp=qf,l.every=ed,l.find=nd,l.findIndex=Aa,l.findKey=yf,l.findLast=rd,l.findLastIndex=Ta,l.findLastKey=hf,l.floor=Gm,l.forEach=Pa,l.forEachRight=ka,l.forIn=vf,l.forInRight=bf,l.forOwn=xf,l.forOwnRight=Sf,l.get=bi,l.gt=Ud,l.gte=zd,l.has=wf,l.hasIn=xi,l.head=La,l.identity=xe,l.includes=sd,l.indexOf=rc,l.inRange=$f,l.invoke=Af,l.isArguments=At,l.isArray=k,l.isArrayBuffer=Wd,l.isArrayLike=ve,l.isArrayLikeObject=ne,l.isBoolean=$d,l.isBuffer=yt,l.isDate=Gd,l.isElement=Yd,l.isEmpty=Kd,l.isEqual=Vd,l.isEqualWith=qd,l.isError=hi,l.isFinite=Jd,l.isFunction=nt,l.isInteger=$a,l.isLength=ir,l.isMap=Ga,l.isMatch=Xd,l.isMatchWith=Zd,l.isNaN=Qd,l.isNative=jd,l.isNil=tf,l.isNull=ef,l.isNumber=Ya,l.isObject=ee,l.isObjectLike=te,l.isPlainObject=fn,l.isRegExp=vi,l.isSafeInteger=nf,l.isSet=Ka,l.isString=or,l.isSymbol=Ie,l.isTypedArray=$t,l.isUndefined=rf,l.isWeakMap=of,l.isWeakSet=af,l.join=sc,l.kebabCase=Jf,l.last=He,l.lastIndexOf=pc,l.lowerCase=Xf,l.lowerFirst=Zf,l.lt=lf,l.lte=sf,l.max=Ym,l.maxBy=Km,l.mean=Vm,l.meanBy=qm,l.min=Jm,l.minBy=Xm,l.stubArray=Ei,l.stubFalse=Ai,l.stubObject=km,l.stubString=Mm,l.stubTrue=Hm,l.multiply=Zm,l.nth=uc,l.noConflict=Am,l.noop=Ii,l.now=tr,l.pad=Qf,l.padEnd=jf,l.padStart=em,l.parseInt=tm,l.random=Gf,l.reduce=fd,l.reduceRight=md,l.repeat=nm,l.replace=rm,l.result=Pf,l.round=Qm,l.runInContext=m,l.sample=yd,l.size=bd,l.snakeCase=im,l.some=xd,l.sortedIndex=hc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=Sc,l.sortedLastIndexOf=Cc,l.startCase=am,l.startsWith=lm,l.subtract=jm,l.sum=eg,l.sumBy=tg,l.template=sm,l.times=Nm,l.toFinite=rt,l.toInteger=H,l.toLength=qa,l.toLower=pm,l.toNumber=Ne,l.toSafeInteger=pf,l.toString=Y,l.toUpper=um,l.trim=cm,l.trimEnd=dm,l.trimStart=fm,l.truncate=mm,l.unescape=gm,l.uniqueId=Um,l.upperCase=ym,l.upperFirst=Si,l.each=Pa,l.eachRight=ka,l.first=La,wi(l,function(){var e={};return Ke(l,function(t,r){q.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=d,Re(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Re(["drop","take"],function(e,t){W.prototype[e]=function(r){r=r===i?1:oe(H(r),0);var o=this.__filtered__&&!t?new W(this):this.clone();return o.__filtered__?o.__takeCount__=de(r,o.__takeCount__):o.__views__.push({size:de(r,Ye),type:e+(o.__dir__<0?"Right":"")}),o},W.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),Re(["filter","map","takeWhile"],function(e,t){var r=t+1,o=r==Ti||r==cl;W.prototype[e]=function(a){var p=this.clone();return p.__iteratees__.push({iteratee:L(a,3),type:r}),p.__filtered__=p.__filtered__||o,p}}),Re(["head","last"],function(e,t){var r="take"+(t?"Right":"");W.prototype[e]=function(){return this[r](1).value()[0]}}),Re(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");W.prototype[e]=function(){return this.__filtered__?new W(this):this[r](1)}}),W.prototype.compact=function(){return this.filter(xe)},W.prototype.find=function(e){return this.filter(e).head()},W.prototype.findLast=function(e){return this.reverse().find(e)},W.prototype.invokeMap=O(function(e,t){return typeof e=="function"?new W(this):this.map(function(r){return ln(r,e,t)})}),W.prototype.reject=function(e){return this.filter(rr(L(e)))},W.prototype.slice=function(e,t){e=H(e);var r=this;return r.__filtered__&&(e>0||t<0)?new W(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(t=H(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},W.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},W.prototype.toArray=function(){return this.take(Ye)},Ke(W.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);!a||(l.prototype[t]=function(){var u=this.__wrapped__,f=o?[1]:arguments,g=u instanceof W,S=f[0],C=g||k(u),w=function(z){var $=a.apply(l,pt([z],f));return o&&E?$[0]:$};C&&r&&typeof S=="function"&&S.length!=1&&(g=C=!1);var E=this.__chain__,T=!!this.__actions__.length,B=p&&!E,N=g&&!T;if(!p&&C){u=N?u:new W(this);var R=e.apply(u,f);return R.__actions__.push({func:jn,args:[w],thisArg:i}),new Pe(R,E)}return B&&N?e.apply(this,f):(R=this.thru(w),B?o?R.value()[0]:R.value():R)})}),Re(["pop","push","shift","sort","splice","unshift"],function(e){var t=In[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(k(p)?p:[],a)}return this[r](function(u){return t.apply(k(u)?u:[],a)})}}),Ke(W.prototype,function(e,t){var r=l[t];if(r){var o=r.name+"";q.call(Nt,o)||(Nt[o]=[]),Nt[o].push({name:t,func:r})}}),Nt[Kn(i,Se).name]=[{name:"wrapper",func:i}],W.prototype.clone=mp,W.prototype.reverse=gp,W.prototype.value=yp,l.prototype.at=Yc,l.prototype.chain=Kc,l.prototype.commit=Vc,l.prototype.next=qc,l.prototype.plant=Xc,l.prototype.reverse=Zc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,jt&&(l.prototype[jt]=Jc),l},kt=Vs();bt?((bt.exports=kt)._=kt,_r._=kt):se._=kt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"Masked Aadhaar",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Data Card",const:"card"},{title:"Check Box",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"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:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"Leaderboard",const:"LeaderBoard"},{title:"Multi-Select Dropdown",const:"MultipleSelect"},{title:"Pan Card Masked",const:"PanCardText"},{title:"Pop Up",const:"PopUp"},{title:"Progress Bar",const:"ProgressBar"},{title:"Progress Bar Card",const:"ProgressBarCard"},{title:"Dropdown",const:"Select"},{title:"Slider",const:"Slider"},{title:"Speedometer",const:"SpeedoMeter"},{title:"Stepper Container",const:"Stepper"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy",const:"RunnerBoyProgressBar"},{title:"Table",const:"Table"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload",const:"UploadFile"},{title:"Tree ",const:"TreeMap"},{title:"Column Group",const:"ColumnGroup"},{title:"Thought of the day",const:"Thought"},{title:"Pdf Viewer",const:"PdfViewer"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"}]},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"}]},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"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},enableColumnFilter:{type:"array",items:{type:"object",properties:{keyName:{type:"string"}}}},filteringOptions:{oneOf:[{const:"fuzzy",title:"Fuzzy"},{const:"contains",title:"Contain"},{const:"startsWith",title:"Starts with"},{const:"endsWith",title:"Ends with"},{const:"equals",title:"Equals"},{const:"notEquals",title:"Not Equals"},{const:"between",title:"Between"},{const:"betweenInclusive",title:"Between inclusive"},{const:"greaterThan",title:"Greater than"},{const:"greaterThanOrEqualTo",title:"Greater than or equal to"},{const:"lessThan",title:"Less than"},{const:"lessThanOrEqualTo",title:"Less than or equal to"}]},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"},{title:"Stack Horizontal Bar Graph",const:"HorizontalStackBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Exception Icon",const:"ExceptionIcon"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},pageName:{path:[]},name:{type:"string"},label:{type:"string"},RemoveItemButton:{disabled:!0}},required:["name"]},componentBasicUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page-Component",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core"],id:"component"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",options:{widget:"Array"},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 ?"},style:{marginTop:"-20px",fontSize:"20px","&.MuiTypography-root":{padding:"10px 30px 20px 30px",textAlign:"center",lineHeight:"1"}}}},{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",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",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 ?"},style:{marginTop:"-20px",fontSize:"20px","&.MuiTypography-root":{padding:"10px 30px 20px 30px",textAlign:"center",lineHeight:"1"}}}},{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",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",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:{},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`}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=n==null?void 0:n.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},CoreSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",options:{widget:"Array"},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}},elements:[{accessorKey:"eventType",header:"Event's Type",type:"string",size:300},{accessorKey:"Handler",header:"Handler",type:"string",size:200},{accessorKey:"Edit_Approve_Records",header:"Edit",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",tooltipMessage:"Reject This Record",styleDefault:!0}}}}]}]}),emptyBox$1=(n,s)=>s!==void 0?{type:"Control",scope:`#/properties/${n}`,options:{widget:"EmptyBox"},config:{layout:s}}:{type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",options:{widget:"Array"},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: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."}}},emptyBox$1("cardEmpty")]},getArrayControl=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:i,childElementLabel:i},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:`#/properties/${s}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:i||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty1",{xs:6,sm:6,md:8,lg:8})]}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Size"}}},sizeHolder.elements[2]=emptyBox$1("sizeHolderempty");const getInputField=(n,s)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:s}}}),getRadioInputField=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:s,options:i}}}),buildWrapper=(n,s)=>({type:"WrapperLayout",config:{main:{label:n||"Details",isAccordion:!0}},elements:s||[]}),getTextArea=(n,s,i,d)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:d||12,main:{label:s,minRows:8,hideButton:i,enableCodeEditor:!0}}}),getSelectField=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:s,type:"text"}}}),getMultiSelectField=(n,s)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{multiple:!0,label:s,options:[]}}}),BaseSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[]},buildPropertiesSection=function(n){let s=_.cloneDeep(BaseSection);switch(n){case"TreeMap":s.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":s.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":s.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":s.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":s.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),emptyBox$1("PopUpEmpty",{xs:6,sm:6,md:0,lg:0})];break;case"Text":s.elements=[getInputField("placeholder","Placeholder"),emptyBox$1("TextEmpty1",{xs:6,sm:6,md:4,lg:4}),emptyBox$1("TextEmpty1",{xs:0,sm:0,md:4,lg:4}),getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":s.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":s.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":s.elements=[getInputField("rank","Rank"),getInputField("height","Height"),emptyBox$1("RankCardEmpty1",{xs:0,sm:0,md:4,lg:4})];break;case"LeaderBoard":s.elements=[getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getInputField("nameKey","Key for Name"),getInputField("imageKey","Key for Image"),getInputField("scoreKey","Key for comparing parameter"),emptyBox$1("LeaderBoardEmpty1",{xs:6,sm:6,md:0,lg:0})];break;case"CardSlider":s.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":s.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel"),emptyBox$1("ProgressBarCardEmpty1"),emptyBox$1("ProgressBarCardEmpty2")];break;case"card":s.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("titleIcon","Unicode of Icon for title"),getInputField("description","Description"),emptyBox$1("cardEmpty",{xs:0,sm:0,md:8,lg:8})];break;case"Button":s.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"Graph":s.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getInputField("yAxisValue","Y-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:8,lg:6}),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":s.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getInputField("rowSpacing","Row Spacing"),emptyBox$1("WrapperSectionEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("WrapperSectionEmpty2")];break;case"TabSection":s.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),emptyBox$1("TabEmpty"),getArrayControl("sectionLabels","label")];break;case"Table":s.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"),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"]),emptyBox$1("LazyLoadingTableEmpty2"),emptyBox$1("LazyLoadingTableEmpty3")]),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder,getArrayControl("enableColumnFilter","keyName","Component Name")];break;case"Radio":s.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"]),emptyBox$1("SelectEmpty")];break;case"MultipleSelect":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),emptyBox$1("MultipleSelectEmpty1",{xs:0,sm:6,md:4,lg:4}),emptyBox$1("MultipleSelectEmpty2")];break;case"Thought":s.elements=[getTextArea("thought","Today's thought",!1)];break}return s},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}},elements:[{accessorKey:"name",header:"Name",type:"string",size:300},{accessorKey:"type",header:"Type",type:"string",size:200},{header:"Edit Record",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"TableEditIcon",size:"small",onClick:"editComponents",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Delete",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",onClick:"deletePopUpComponent",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Component",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Copy_Component",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0,disabled:!1}}}}]}]}),ValueTab={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/value",options:{widget:"Array"},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",options:{widget:"Array"},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 s=_.cloneDeep(n);let i={};return s.pageName&&delete s.pageName,s.eventsSelected&&delete s.eventsSelected,(s.type==="Table"||s.type==="WrapperSection"||s.type==="TabSection")&&(i.elements=s.elements||[],s.elements&&delete s.elements),i.events=s.events||[],s.events&&delete s.events,i={...s,...i},i};const createLayoutFormat=n=>{if(_.isEmpty(n))return{xs:12,sm:12,md:12,lg:12};let s={xs:12,sm:12,md:6,lg:6};return n.map(i=>{s[i.key||"xs"]=+i.value||5.5}),s},flatObjectValueInArray=(n=[])=>{if(n.length<1)return;const s=Object.keys(n[0])[0];return n.map(d=>d[s])},clearFromSessionStorage=()=>{sessionStorage.removeItem("pageFormdata")},getNavigationHistory=(n,s)=>{if(s){let i=n.name;const d=s.split("."),h=[];return d.map((c,y)=>{if(y===0){h.push(c);return}h.push(`${h[y-1]}.${c}`)}),h.map(c=>{const y=_.get(n,c);y?i=i+` > ${(y==null?void 0:y.name)||(y==null?void 0:y.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInSessionStorage=(n,s)=>{let i;if(s){const d=getFormdataFromSessionStorage();i=_.set(d,s,buildConfig(n))}else i=buildConfig(n);return sessionStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromSessionStorage=n=>{const s=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0;let i;return n&&(i=_.get(s,n),i={...i,...getNavigationHistory(s,n)}),i||(i=getNavigationHistory(s,n)),i||s};async function saveHandler(n,s,i){var c,y;(c=n.searchParams)==null||c.get("id");const d=(y=n.searchParams)==null?void 0:y.get("path");saveFormdataInSessionStorage(n.ctx.core.data,d);const h=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const b=await i(n,s,h);navigateHandler(n,!0,"/PageMasterRecords")}catch{navigateHandler(n,!1)}}const navigateHandler=(n,s,i)=>{s?(sessionStorage.removeItem("pageFormdata"),n.navigate(i||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(n){var i;const s=(i=n.searchParams)==null?void 0:i.get("path");_.isEmpty(n.ctx.core.errors)?(saveFormdataInSessionStorage(n.ctx.core.data,s),n.navigate(-1),n.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","Events","Style","Validation"],MultipleSelect:["Core","Properties","Value","Events","Style","Validation"],Table:["Core","Components","Properties","Events","Style","Validation"],LeaderBoard:["Core","Components","Properties","Events","Style","Validation"],WrapperSection:["Core","Components","Properties","Style","Validation"],TabSection:["Core","Components","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Events","Style","Validation"],card:["Core","Properties","Events","Style","Validation"],UploadFile:["Core","Events","Style","Validation"],Graph:["Core","Properties","Events","Style","Validation"],DownloadFile:["Core","Events","Style","Validation"],Box:["Core","Events","Style","Validation"],Properties:["Core","Properties","Events","Style","Validation"],ProgressBarCard:["Core","Properties","Events","Style","Validation"],RankCard:["Core","Properties","Events","Style","Validation"],Slider:["Core","Components","Events","Style","Validation"],Timer:["Core","Events","Style","Validation"],Rank:["Core","Events","Style","Validation"],Button:["Core","Properties","Events","Style","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","Events","Style","Validation"],Text:["Core","Properties","Events","Style","Validation"],TextArea:["Core","Properties","Events","Style","Validation"],PopUp:["Core","Components","Properties","Style"],Stepper:["Core","Components","Properties","Events","Style"],DataGrid:["Core","Components","Properties","Events","Style"],InputSlider:["Core","Properties","Events","Style","Validation"],TreeMap:["Core","Components","Properties","Events","Style"],ColumnGroup:["Core","Components"],Thought:["Core","Properties","Events","Style","Validation"]};function refreshPage(n,s){var I,F;const i=_.cloneDeep(componentBasicUiSchema(s.theme.myTheme)),d=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const U={Core:CoreSection,Value:ValueTab,Style:StyleSection,Events:EventSection(s.theme.myTheme),Components:TableSection(s.theme.myTheme),Properties:buildPropertiesSection(n),Validation:ValidationSection},M=(I=sectionLabels[n])==null?void 0:I.map(K=>U[K]);i.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],i.elements[0].elements=M||[CoreSection,StyleSection,EventSection(s.theme.myTheme),ValidationSection]}const h=(F=s.searchParams)==null?void 0:F.get("path"),c=h.lastIndexOf("."),y=h.slice(0,c),b=_.get(d,y);(b==null?void 0:b.type)==="Table"&&(i.elements[0].elements[0].elements[4]={type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Format"}}},i.elements[0].elements[0].elements[5]={type:"Control",scope:"#/properties/filteringOptions",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Filter Mode",multiple:!0}}},i.elements[0].elements[0].elements[6]={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"],errorMessage:"Active is not marked YES or NO"}}},i.elements[0].elements[0].elements[7]={type:"Control",scope:"#/properties/proc",config:{layout:{xs:0,sm:0,md:0,lg:6}},options:{widget:"EmptyBox"}}),sessionStorage.getItem("copiedConfig")&&this.ElementPathSetter(i),s.setUiSchema(i)}var Component=(n,s,i,d)=>({setPage:async function(){const h=await this.getFormdata();n.setFormdata(h);const c=this.getSchema();n.setSchema(c),this.refreshPage(h==null?void 0:h.type,n)},refreshPage,getFormdata:function(){var c;const h=(c=n.searchParams)==null?void 0:c.get("path");return getFormdataFromSessionStorage(h)},getSchema:function(){var F,U;const h=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(h.properties.RemoveItemButton.disabled=!1);const c=JSON.parse(sessionStorage.getItem("pageFormdata")),y=(F=n.searchParams)==null?void 0:F.get("path"),b=(U=n.searchParams)==null?void 0:U.get("id");let I=[];if(y){const M=y.split("."),K=[];M.map((P,V)=>{if(V===0){K.push(P);return}K.push(`${K[V-1]}.${P}`)}),K.map(P=>{const V=_.get(c,P);I.push({label:(V==null?void 0:V.name)||(V==null?void 0:V.eventType)||"NewComponent",path:`/Component?path=${P}&id=${b}`})})}return h.properties.pageName.path=I,h},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var h,c,y,b;((h=n==null?void 0:n.formData)==null?void 0:h.type)!==((c=n==null?void 0:n.newData)==null?void 0:c.type)&&((y=n==null?void 0:n.newData)==null?void 0:y.type)!==void 0&&this.refreshPage((b=n==null?void 0:n.newData)==null?void 0:b.type,n)},editComponents:function(){var b,I,F;const h=s.path.split(".")[1],c=(b=n.searchParams)==null?void 0:b.get("path"),y=(I=n.searchParams)==null?void 0:I.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,c),c){const M=`${(F=n.searchParams)==null?void 0:F.get("path")}.elements[${h}]`;n.searchParams.set("path",M),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${h}]`}&id=${y}`)},deleteComponents:function(h=!0){var F;const c=(F=n.searchParams)==null?void 0:F.get("path"),y=sessionStorage.getItem("rowId");n.formData.elements.splice(y,1);const b=saveFormdataInSessionStorage(n.ctx.core.data,c),I=c?_.get(b,c):b;n.setFormdata(I),h&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(h=!0){var I;const c=(I=n.searchParams)==null?void 0:I.get("path"),y=sessionStorage.getItem("rowId");n.formData.events.splice(y,1);const b=saveFormdataInSessionStorage(n.ctx.core.data,c);n.setFormdata(_.get(b,c)),h&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var y;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const h=(y=n.searchParams)==null?void 0:y.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const c=`${h}.elements[${n.formData.elements.length}]`;n.searchParams.set("path",c),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var I,F;const h=s.path.split(".")[1],c=(I=n.searchParams)==null?void 0:I.get("path"),y=(F=n.searchParams)==null?void 0:F.get("id");saveFormdataInSessionStorage(n.ctx.core.data,c);const b=`${c}.events[${h}]`;n.navigate(`/ComponentEvents?path=${b}&id=${y}`)},eventAddHandler:function(){var b,I;const h=(b=n.searchParams)==null?void 0:b.get("path"),c=(I=n.searchParams)==null?void 0:I.get("id");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,h);const y=`${h}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${y}&id=${c}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const h=s.path.split(".")[1];sessionStorage.setItem("rowId",h),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const h=s.path.split(".")[1];sessionStorage.setItem("rowId",h),n.updateDialog("popUpEventSection")},copyPasteElement:function(h,c=this.setPage.bind(this)){var I;const[y,b]=(I=s.path.split(".").pop())==null?void 0:I.split("_");y==="Copy"?this.CopyElement(h,b):this.PasteElement(c,b)},CopyElement:function(h=n,c){var K;const y=lodash.exports.cloneDeep(h.schema),b=lodash.exports.cloneDeep(h.uiSchema);y.properties.RemoveItemButton.disabled=!1;const I=s.path.split(".")[1],F=(K=n.searchParams)==null?void 0:K.get("path"),U=this.elementPathHandler(F,I,c),M=getFormdataFromSessionStorage(U);this.ElementPathSetter(b,M),sessionStorage.setItem("copiedConfig",JSON.stringify(M)),n.setSchema(y),n.setUiSchema(b)},PasteElement:function(h,c){var K;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const y=(K=n.searchParams)==null?void 0:K.get("path");Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,y);const b=getFormdataFromSessionStorage(y),I=c==="Component"?b.elements.length:b.events.length,F=this.elementPathHandler(y,I,c),U=JSON.parse(sessionStorage.getItem("copiedConfig")),M={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};U.Handler&&c==="Component"?n.setNotify({FailMessage:M.Events,Fail:!0}):U.name&&c==="Events"?n.setNotify({FailMessage:M.Component,Fail:!0}):(saveFormdataInSessionStorage(U,F),h())},RemoveItemButton:function(h=n){const c=lodash.exports.cloneDeep(h.schema),y=lodash.exports.cloneDeep(h.uiSchema);c.properties.RemoveItemButton.disabled=!0,y.elements[2].elements[1].config.main.heading="No element copied",sessionStorage.removeItem("copiedConfig"),n.setSchema(c),n.setUiSchema(y)},elementPathHandler:function(h,c,y){return y==="Component"?h?`${h}.elements[${c}]`:`elements[${c}]`:h?`${h}.events[${c}]`:`events[${c}]`},ElementPathSetter:function(h,c){c||JSON.parse(sessionStorage.getItem("copiedConfig"))}}),pageMaster=n=>{const{store:s,dynamicData:i,submitHandler:d,service:h}=n;return{setPage:async function(){const c=await this.getFormdata();s.setFormdata(c);const y=await this.getUiSchema(),b=await this.getSchema();s.setSchema(b),s.setUiSchema(y)},getFormdata:async function(){var I;const c=(I=s.searchParams)==null?void 0:I.get("id"),y=await n.pageConfigProvider(c),b=getFormdataFromSessionStorage();return b||(saveFormdataInSessionStorage(y),y)},getUiSchema:function(){const c=_.cloneDeep(PageMasterUiSchema(s.theme.myTheme));return sessionStorage.getItem("copiedConfig")&&Component(s,i,d,h).ElementPathSetter(c),c},getSchema:()=>{const c=_.cloneDeep(PageMasterSchema);return sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1),c},backHandler:()=>{sessionStorage.removeItem("pageFormdata"),s.navigate("/PageMasterRecords")},onAddClickHandler:function(){var b;const c=(b=s.searchParams)==null?void 0:b.get("id");Array.isArray(s.formData.elements)||(s.formData.elements=[]);const y=saveFormdataInSessionStorage(s.ctx.core.data);c?s.navigate(`/Component?path=${`elements[${y==null?void 0:y.elements.length}]`}&id=${c}`):s.navigate(`/Component?path=${`elements[${y==null?void 0:y.elements.length}]`}`)},saveHandler:async()=>await saveHandler(s,h,d),Edit_Components:Component(s,i,d,h).editComponents,Delete_Components:async function(){await Component(s,i,d,h).deleteComponents(!1),s.updateDialog("popUpPageMasterComponent")},eventAddHandler:function(){var b;const c=(b=s.searchParams)==null?void 0:b.get("id");Array.isArray(s.formData.events)||(s.formData.events=[]),saveFormdataInSessionStorage(s.ctx.core.data);const y=`events[${s.formData.events.length}]`;s.navigate(`/ComponentEvents?path=${y}&id=${c}`)},editEvent:function(){var I;const c=i.path.split(".")[1],y=(I=s.searchParams)==null?void 0:I.get("id");saveFormdataInSessionStorage(s.ctx.core.data);const b=`events[${c}]`;s.navigate(`/ComponentEvents?path=${b}&id=${y}`)},deleteEvent:function(){const c=sessionStorage.getItem("rowId");s.formData.events.splice(c,1);const y=saveFormdataInSessionStorage(s.ctx.core.data);s.setFormdata(y),s.updateDialog("popUpPageMasterEvent"),sessionStorage.removeItem("rowId")},deletePopUpComponent:function(){const c=i.path.split(".")[1];sessionStorage.setItem("rowId",c),s.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const c=i.path.split(".")[1];sessionStorage.setItem("rowId",c),s.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(s,i,d,h).copyPasteElement(s,this.setPage.bind(this))},RemoveItemButton:function(){Component(s,i,d,h).RemoveItemButton(s)}}};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:"Back",const:"onBack"},{title:"Next",const:"onNext"},{title:"Row Movement",const:"onRowMovement"},{title:"Download",const:"onDownload"},{title:"Fail",const:"Fail"}]},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:"Download",const:"download"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}},RemoveItemButton:{disabled:!0},pageName:{path:[{label:"defaultLabel",path:"defaultPath"}]}},required:["eventType","Handler"]},EventUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page-Events",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core","Response Events"],id:"event"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Event's Type",type:"text"}}},getSelectField("Handler","Handler"),{type:"Control",scope:"#/properties/EmptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}}]},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"addEvent",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event's Type",size:300,type:"string"},{accessorKey:"Handler",header:"Handler",size:200,type:"string"},{accessorKey:"Edit_Approve_Records",header:"Edit",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",type:"action",size:150,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0}}}}]}]},{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 ?"},style:{marginTop:"-20px",fontSize:"20px","&.MuiTypography-root":{padding:"10px 30px 20px 30px",textAlign:"center",lineHeight:"1"}}}},{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",color:"info",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",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",startIcon:"ApproveIcon",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",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:{},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`}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=n==null?void 0:n.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}},{type:"Control",scope:"#/properties/headers",options:{widget:"Array"},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",options:{widget:"Array"},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",options:{widget:"Array"},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,s,i,d,h)=>({setPage:async function(){const c=await this.getFormData();n.setFormdata(c);const y=await this.getSchema();console.log("SettingSchema>>",y),n.setSchema(y),this.refreshPage(c.Handler,n)},refreshPage:(c,y)=>{const b=_.cloneDeep(EventUiSchema(y.theme.myTheme)),I=_.cloneDeep(EventSchema);c&&(c==="custom"?(b.elements[0].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),b.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:{}}},b.elements[0].elements[0].elements[4]=getTextArea("eventCode","Write Custom Code",!1),I.required=["eventType","Handler","eventCode"]):c==="api"?(b.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),b.elements[0].elements[0].elements[3]=APISection,I.required=["eventType","Handler","method","path"]):c==="inBuiltFunction"?(b.elements[0].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),b.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:{}}},b.elements[0].elements[0].elements[4]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0),I.required=["eventType","Handler","inBuiltFunctionType"]):c==="refresh"&&(b.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),b.elements[0].elements[0].elements[3]=refreshSectionUiSchema,I.properties.refreshElements.required=["value"],I.properties.refreshElements.items.required=["value"],I.required=["eventType","Handler","refreshElements"])),h&&(I.properties.inBuiltFunctionType.oneOf=[...I.properties.inBuiltFunctionType.oneOf,...h]),sessionStorage.getItem("copiedConfig")&&(Component(y,s,i,d).ElementPathSetter(b),I.properties.RemoveItemButton.disabled=!1),y.setSchema(I),y.setUiSchema(b)},getFormData:Component(n,s,i,d).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{var U,M;const c=_.cloneDeep(EventSchema);sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1);const y=JSON.parse(sessionStorage.getItem("pageFormdata")),b=(U=n.searchParams)==null?void 0:U.get("path"),I=(M=n.searchParams)==null?void 0:M.get("id");let F=[];if(b){const K=b.split("."),P=[];K.map((V,j)=>{if(j===0){P.push(V);return}P.push(`${P[j-1]}.${V}`)}),P.map(V=>{const j=_.get(y,V);F.push({label:(j==null?void 0:j.name)||(j==null?void 0:j.eventType)||"NewComponent",path:j!=null&&j.eventType?`/ComponentEvents?path=${V}&id=${I}`:`/Component?path=${V}&id=${I}`})})}return console.log("pathArray>>",F),c.properties.pageName.path=F,c},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var c,y,b;((c=n==null?void 0:n.formData)==null?void 0:c.Handler)!==((y=n==null?void 0:n.newData)==null?void 0:y.Handler)&&((b=n==null?void 0:n.newData)==null?void 0:b.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var b,I,F;const c=(b=n.searchParams)==null?void 0:b.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,c);const y=`${c}.events[${(F=(I=n.formData)==null?void 0:I.events)==null?void 0:F.length}]`;n.searchParams.set("path",y),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var I;const c=s.path.split(".")[1],y=(I=n.searchParams)==null?void 0:I.get("path");saveFormdataInSessionStorage(n.ctx.core.data,y);const b=`${y}.events[${c}]`;n.searchParams.set("path",b),n.setSearchParams(n.searchParams),this.setPage()},deleteEvent:async function(){await Component(n,s,i,d).deleteEvent(!1),n.updateDialog("popUpEvent")},backHandler:function(){n.navigate(-1)},deletePopUpEvent:function(){const c=s.path.split(".")[1];sessionStorage.setItem("rowId",c),n.updateDialog("popUpEvent")},copyPasteElement:function(){Component(n,s,i,d).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,s,i,d).RemoveItemButton(n)}});const downloadFile$1=n=>{const s=n.name.split("."),i=n.data,d=window.atob(i);let h;h=new File([d],s[s.length-1]);const c=URL.createObjectURL(h),y=document.createElement("a");y.href=s[s.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:c,y.download=`${n.name}`,document.body.appendChild(y),y.click(),URL.revokeObjectURL(c),document.body.removeChild(y)},doDownload=(n,s)=>{let i=`${s.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((c,y)=>{i=i+`${y===0?"?":"&"}${c}=${n==null?void 0:n.params[c]}`});const d=document.createElement("a");d.href=i,document.body.appendChild(d),d.click(),d.parentNode.removeChild(d)},executeEvents=n=>{var h,c,y;let s=[],i=null;if(n.config.isSync!=="Yes")return shouldEventExecute(n).then(b=>{if(!b)throw new Error("onStart Event not allow to run Parent Events");return executeEventsHandler(n)}).then(b=>{var F;i=b,s=(F=n.config)==null?void 0:F.events.filter(U=>U.eventType==="Success")}).catch(b=>{var U,M;const I=(M=(U=n.config)==null?void 0:U.events)==null?void 0:M.filter(K=>K.eventType==="Fail");s=(I==null?void 0:I.length)>0?I:[]}).then(()=>{if((s==null?void 0:s.length)>0)return s.reduce((b,I)=>b.then(()=>executeEvents({...n,config:I,parentEventOutput:i})),Promise.resolve())}).then(()=>i);if(!shouldEventExecute(n))return{response:void 0,events:void 0};try{i=executeEventsHandler(n),s=(h=n.config)==null?void 0:h.events.filter(F=>F.eventType==="Success")}catch{const b=(y=(c=n.config)==null?void 0:c.events)==null?void 0:y.filter(F=>F.eventType==="Fail");s=(b==null?void 0:b.length)>0?b:[]}if((s==null?void 0:s.length)>0)for(const b of s)executeEvents({...n,config:b,parentEventOutput:i});return i};function executeEventsHandler(n){var s,i,d;if(n.config.Handler==="api")return executeApiRequest(n);if(n.config.Handler==="inBuiltFunction")return executeInBuiltFunctionHandler(n);if(n.config.Handler==="custom")return executeCustomHandler(n);if(n.config.Handler==="refresh")return executeRefreshHandler(n);if(n.config.Handler==="mergeFormdata")return mergeFormdata(n.parentEventOutput,n.componentName,n.config,n.store,n.service,n.formDataHolder);if(n.config.Handler==="onBackHandler")return(s=n.store.functionParameters)==null?void 0:s.handleBack();if(n.config.Handler==="onNextHandler")return(i=n.store.functionParameters)==null?void 0:i.handleNext();if(n.config.Handler==="onResetHandler")return(d=n.store.functionParameters)==null?void 0:d.handleReset()}function getRefreshElements(n,s){var d;let i=[];return((d=n==null?void 0:n.refreshElements)==null?void 0:d.length)>0?i=n.refreshElements.map(h=>h.value):s!=null&&s.onLoad&&(i=Object.keys(s==null?void 0:s.onLoad)),i}async function executeRefreshHandler(n){const s=getRefreshElements(n.config,n.eventGroups);return Promise.allSettled(s.map(i=>{const d=n.eventGroups.onLoad[i];return d?Promise.allSettled(d.map(h=>executeEvents({...n,config:h,componentName:i}))):Promise.resolve()}))}function executeApiRequest(n){var h;const s={...(h=n.userValue)==null?void 0:h.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},d=buildApiPayload(n.config,s,i,n.store,n.dynamicData,n.userValue,n.service);return n.service[n.config.method](n.config.path,d.body,{headers:d.headers}).then(c=>c)}function executeInBuiltFunctionHandler(params){let parameter={};if(params.config.funcParametersCode){const makeFunc=eval(params.config.funcParametersCode);parameter=makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service),params.serviceHolder[params.config.inBuiltFunctionType](parameter,params.service)}else params.serviceHolder[params.config.inBuiltFunctionType](params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service)}function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode);return params.config.isSync!=="Yes"?makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName).then(n=>n):makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName)}function mergeFormdata(n,s,i,d,h,c){i.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(y=>{var b;return{...y,properties:{...y.properties,[s]:{...(b=y.properties)==null?void 0:b[s],oneOf:n.data}}}}):i.type==="MultipleSelect"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(y=>{var b;return{...y,properties:{...y.properties,[s]:{...(b=y.properties)==null?void 0:b[s],type:"array",items:{oneOf:n==null?void 0:n.data}}}}}):i.type==="page"?_.isEmpty(n==null?void 0:n.data)&&(n==null?void 0:n.data)||(d.newData={...d.newData,...n==null?void 0:n.data},d.setFormdata(y=>({...y,...n==null?void 0:n.data}))):n&&(c[s]=n.data,d.setFormdata(y=>({...y,...c})))}const buildBodyFormat=(n,s,i,d)=>{let h={...i==null?void 0:i.payload};return n.map(c=>{var y,b,I,F,U;if(typeof(c==null?void 0:c.value)!="string")h[c.key]=c.value;else if((y=c==null?void 0:c.value)!=null&&y.startsWith("$userValue")){const M=c.value.substring(11);h[c.key]=_.get(i,M)}else if((b=c==null?void 0:c.value)!=null&&b.startsWith("$urlParams")){const M=c.value.substring(11),K=(I=d==null?void 0:d.searchParams)==null?void 0:I.get(M);h[c.key]=K}else if((F=c==null?void 0:c.value)!=null&&F.startsWith("$local")){const M=c.value.substring(7),K=JSON.parse(sessionStorage.getItem(M)||'""');h[c.key]=K}else if((U=c==null?void 0:c.value)!=null&&U.startsWith("$")){const M=c.value.substring(1);h[c.key]=_.get(s,M)}else(c==null?void 0:c.value)==="*"&&(c==null?void 0:c.key)==="*"?h={...h,...s}:(c==null?void 0:c.value)==="*"?h[c.key]=s:h[c.key]=c.value}),h},buildHeadersFormat=n=>{const s={"X-Requested-With":"XMLHttpRequest"};return n.map(i=>{s[i.key]=i.value}),s};function shouldEventExecute(n){var i,d,h;const s=(d=(i=n.config)==null?void 0:i.events)==null?void 0:d.filter(c=>c.eventType==="onStart");return(s==null?void 0:s.length)>0?((h=s[0])==null?void 0:h.isSync)!=="Yes"?executeEventsHandler({...n,config:s[0]}).then(c=>c):executeEventsHandler({...n,config:s[0]}):n.config.isSync!=="Yes"?Promise.resolve(!0):!0}function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var n,s;compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((s=(n=store==null?void 0:store.ctx)==null?void 0:n.core)==null?void 0:s.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 s(i){i.events&&i.events.forEach(d=>{var c;i.type&&(compType=i.type),eventGroups[d.eventType]||(eventGroups[d.eventType]={}),eventGroups[d.eventType][i.name]||(eventGroups[d.eventType][i.name]=[]);const h=(c=d==null?void 0:d.events)==null?void 0:c.find(y=>y.eventType==="Success");!h&&d.eventType==="onLoad"&&(d.events||(d.events=[]),d.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!h&&(d.eventType==="onBack"||d.eventType==="onNext"||d.eventType==="onReset")&&(d.events||(d.events=[]),d.events.push({Handler:`${d.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),eventGroups[d.eventType][i.name].push({...d,type:compType})})}return s(n),n!=null&&n.elements&&n.elements.forEach(extractEvents),eventGroups};var service=n=>{eventGroups={};const s={};pageData&&!lodash.exports.isEmpty(pageData)&&typeof pageData=="object"&&(eventGroups=extractEvents(pageData==null?void 0:pageData.config));let i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload,...n.functionsProvider},eventGroups,functionsProvider:n.functionsProvider,formDataHolder:s};return{setPage:async function(){var F,U,M,K,P,V,j,ae,Se,ot,ue,Te,ce;n.store.setFormdata({}),n.store.newData={};const d=sessionStorage.getItem("pagemasterMetaData");d?pageData=JSON.parse(d):(pageData=await n.pageDataProvider(),sessionStorage.setItem("pagemasterMetaData",JSON.stringify({schema:pageData==null?void 0:pageData.schema,uiSchema:pageData==null?void 0:pageData.uiSchema,config:pageData==null?void 0:pageData.config})));const h=pageData==null?void 0:pageData.config,c=pageData==null?void 0:pageData.uiSchema,y=new CustomEvent("pageNameChanged",{detail:{pageName:h.label}});window.dispatchEvent(y);const b=(U=(F=n==null?void 0:n.store)==null?void 0:F.theme)==null?void 0:U.myTheme;c.elements.push({type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:0,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:((K=(M=b==null?void 0:b.palette)==null?void 0:M.text)==null?void 0:K.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:2,width:"fit-content",left:"50%",position:"relative",margin:0,flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}},{type:"Control",scope:"#/properties/FooterBackIcon",options:{widget:"Box"},config:{main:{iconName:"PrevIcon",onClick:"backHandler",width:"fit-content"},style:{fill:(V=(P=b==null?void 0:b.palette)==null?void 0:P.primary)==null?void 0:V.main,width:20,height:0,top:0,right:{xs:"12px",sm:"84px"},position:"absolute",fontSize:"12px",cursor:"pointer",":hover":{fill:(ae=(j=b==null?void 0:b.palette)==null?void 0:j.primary)==null?void 0:ae.dark},marginRight:"20px"}}},{type:"Control",scope:"#/properties/FooterBackHandlerText",options:{widget:"Box"},config:{main:{heading:"Previous Page",onClick:"backHandler"},style:{display:{xs:"none",sm:"flex"},textAlign:"left",lineHeight:1,height:0,width:"fit-content",color:(ot=(Se=b==null?void 0:b.palette)==null?void 0:Se.primary)==null?void 0:ot.main,fontSize:"12px",cursor:"pointer",marginLeft:"2px",top:3,right:"12px",position:"absolute",":hover":{color:(Te=(ue=b==null?void 0:b.palette)==null?void 0:ue.primary)==null?void 0:Te.dark},marginRight:"4px"}}}]});const I=(ce=pageData==null?void 0:pageData.schema)!=null?ce:{type:"object",properties:{}};eventGroups=extractEvents(h),i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,functionsProvider:n.functionsProvider,serviceHolder:this,eventGroups,formDataHolder:s},await executeRefreshHandler({config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:this,eventGroups,formDataHolder:s}),n.store.setSchema(Fe=>({...I,...Fe,properties:{...I.properties,...Fe.properties}})),c.elements.push(notifyUiSchema),n.store.setUiSchema(c)},onCellRenderer:d=>{var h,c,y;if(eventGroups.onCellRenderer){let b={};const I=((h=n.dynamicData)==null?void 0:h.tableButtonPath)||((y=(c=n==null?void 0:n.dynamicData)==null?void 0:c.path)==null?void 0:y.split(".")[0]);for(const F of eventGroups==null?void 0:eventGroups.onCellRenderer[I])i.store.functionParameters=d,b=executeEvents({...i,config:F,componentName:I});return b}return{}},onClick:function(){this.callHandler("onClick")},onMount:function(){this.callHandler("onMount")},onFileDownload:function(){this.callHandler("onDownload")},onFileUpload:function(){this.callHandler("onUpload")},backHandler:function(){n.store.navigate(-1)},onRowMovement:async function(d){const h=[{key:"direction",value:d.rowMovement.direction},{key:"movedRowId",value:d.rowMovement.movedRowId},{key:"targetRowId",value:d.rowMovement.targetRowId||[]}];await this.callExecuteEvents({path:d==null?void 0:d.path},h,"onRowMovement");const c=await this.callExecuteEvents({path:d==null?void 0:d.path},h,"onLoad");return c==null?void 0:c.data},onPaginationChange:async function(d){var y;const h=[{key:"size",value:d.pagination.pageSize},{key:"pageIndex",value:d.pagination.pageIndex},{key:"sorting",value:d.sorting||[]},{key:"filters",value:d.columnFilters||[]},{key:"globalFilter",value:(y=d.globalFilter)!=null?y:""}],c=await this.callExecuteEvents(d,h,"onLoad");return c==null?void 0:c.data},getSelectOptions:async function(d){if(d.serachValue!==""&&d.serachValue!==void 0){const h=[{key:"searchValue",value:d.serachValue},{key:"currentValue",value:d.currentValue}],c=await this.callExecuteEvents(d,h);return c==null?void 0:c.data}},onChange:async function(){if(eventGroups.onChange){const d=Object.keys(eventGroups.onChange);Promise.all(d.map(async h=>{var c,y;if(((c=n.store)==null?void 0:c.formData[h])!==n.store.newData[h]&&((y=n.store)==null?void 0:y.newData[h])!==void 0)for(const b of eventGroups.onChange[h])await executeEvents({...i,config:b,componentName:h})}))}},callExecuteEvents:async function(d,h,c){var b,I;let y;for(const F of(b=eventGroups==null?void 0:eventGroups[c])==null?void 0:b[d.path]){F.body?F.body=[...F.body,...h]:F.body=h;const U=(I=F==null?void 0:F.events)==null?void 0:I.filter(M=>M.Handler!=="mergeFormdata");F.events=U!=null?U:[],y=await executeEvents({...i,config:F,componentName:d.path})}return y},onBack:async function(d){var c,y;const h=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onBack",d),((y=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:y[h])===void 0&&(d==null||d.handleBack())},onNext:async function(d){var c,y;const h=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onNext",d),((y=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:y[h])===void 0&&(d==null||d.handleNext())},onReset:async function(d){var c,y;const h=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onReset",d),((y=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:y[h])===void 0&&(d==null||d.handleReset())},callHandler:async function(d,h){var y,b,I;const c=((y=n.dynamicData)==null?void 0:y.tableButtonPath)||n.dynamicData.path.split(".")[0];((b=eventGroups==null?void 0:eventGroups[d])==null?void 0:b[c])!==void 0&&Promise.all((I=eventGroups==null?void 0:eventGroups[d])==null?void 0:I[c].map(F=>{i.store.functionParameters=h,executeEvents({...i,config:F,componentName:c})}))},downloadFile:downloadFile$1,download:doDownload,...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 s=_.cloneDeep(leaderBoard);if(n.elements){const i=n.elements.map((d,h)=>d.type?{...{widget:buildUiSchema(d),accessorKey:d.name,header:d.label||d.name}}:{accessorKey:d.name,header:d.label||d.name});s.elements=i}return s.config.main.label=n.label,n.name&&(s.scope=`#/properties/${n.name}`),n.firstImage&&(s.config.main.firstImage=n.firstImage),n.secondImage&&(s.config.main.secondImage=n.secondImage),n.thirdImage&&(s.config.main.thirdImage=n.thirdImage),n.nameKey&&(s.config.main.nameKey=n.nameKey),n.imageKey&&(s.config.main.imageKey=n.imageKey),n.scoreKey&&(s.config.main.scoreKey=n.scoreKey),n.layout&&(s.config.layout=createLayoutFormat(n.layout)),n.style&&(s.config.style=JSON.parse(n.style)),s};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,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,n.heading&&(i.config.main.heading=n.heading),n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=n.bottomLabel_1),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildProgressBar=(n,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,n.layout&&(i.config.layout=n.layout),i.config.main.heading=n.label,n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.config.main.bottomLabel_1=n.bottomLabel_1),i},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"BarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},barStyle:{}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"PieGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"LineGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"HorizontalBarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},barStyle:{}}}},buildHorizontalBarGraph=(n,s)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.type=n.graphType,i.scope=s,i.config.main.header=n.heading,n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(n,s)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.heading&&(i.config.main.header=n.heading),n.segments&&(i.config.main.segments=n.segments),n.style){const d=JSON.parse(n.style);d!=null&&d.style&&(i.config.style={...i.config.style,...d.style}),d!=null&&d.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...d.containerStyle})}return n.width&&(i.config.main.width=n.width),n.speedoCaption&&(i.config.main.currentValueText=n.speedoCaption),n.data&&(i.config.main.data=n.data),n.needleColor&&(i.config.style.needleColor=n.needleColor),n.segments&&(i.config.style.segments=n.segments),n.endColor&&(i.config.style.endColor=n.endColor),n.startColor&&(i.config.style.startColor=n.startColor),n.segmentColors&&(i.config.style.segmentColors=n.segmentColors),i},buildPieGraph=(n,s)=>{const i=_.cloneDeep(PieGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.height&&(i.config.style.containerStyle.height=n.height),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),i.scope=s,i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i},buildStackbarGraph=(n,s)=>{var d;const i=_.cloneDeep(BarGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.legendHide&&(i.config.main.legendAvailable=n.legendHide,i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),i.config.main.type=(d=n==null?void 0:n.graphType)!=null?d:"BarGraph",i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i.scope=s,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{}}};const RunnerBoyProgressbar=(n,s)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(n,s)=>{const i=_.cloneDeep(Tabsection);return i.scope=s,n.lazyLoad&&(i.config.main.lazyLoad=n.lazyLoad==="YES"),n.orientation&&(i.config.main.orientation=n.orientation==="YES"?"vertical":"horizontal"),n.sectionLabels&&(i.config.main.tabLabels=n.sectionLabels.map(d=>d.label)),i.config.main.id=n.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{rowSpacing:3,divider:!0,label:"Default Label"},defaultStyle:!0},elements:[]};const buildWrapperSection=(n,s)=>{const i=_.cloneDeep(WrapperSection);return i.scope=s,i.config.main.label=n.label,i.config.main.divider=n.divider==="YES",i.config.main.isAccordion=n.isAccordion!=="No",n.defaultStyle&&(i.config.defaultStyle=n.defaultStyle==="YES"),n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:""},style:{}}};const buildTextField=(n,s)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.InputFormatingAndMasking&&(i.config.main.formatStrArray=n.InputFormatingAndMasking.map(d=>d.formatElement)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(n,s)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=n.label,n.value&&(i.config.main.options=n.value),n.freeSolo&&(i.config.main.freeSolo=n.freeSolo==="YES"),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.scope=s,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:3,main:{name:"Compare",variant:"contained",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(n,s)=>{const i=_.cloneDeep(Button);return n.buttonType&&(i.options.widget=n.buttonType==="IconButton"?"IconButton":"Button",n.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=n.iconName:i.config.main.icon=n.iconName),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.tooltipMessage&&(i.config.main.tooltipMessage=n.tooltipMessage),n.defaultStyle&&(n.buttonType==="IconButton"?i.config.main.styleDefault=n.defaultStyle==="true":i.config.main.enableDefaultStyle=n.defaultStyle!=="true"),i.scope=s,n.style&&(i.config.style=JSON.parse(n.style)),n.size&&(i.config.main.size=n.size),n.color&&(i.config.main.color=n.color),n.label&&(i.config.main.name=n.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{onMount:"onMount",enableExpandAll:!0,allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(n,s)=>{const i=_.cloneDeep(Table);return i.scope=s,n.style&&(i.config.style=JSON.parse(n.style)),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.enableRowMovement&&(i.config.main.enableRowMovement=n.enableRowMovement==="YES"),n.enableExpanding&&(i.config.main.enableExpanding=n.enableExpanding==="YES"),n.enableExpandAll&&(i.config.main.enableExpandAll=n.enableExpandAll==="YES"),n.paginateExpandedRows&&(i.config.main.paginateExpandedRows=n.paginateExpandedRows==="YES"),n.treeStructure&&(i.config.main.treeStructure=n.treeStructure==="YES"?"flatTreeMap":!1),n.SelectionAvailable&&(i.config.main.Selection=n.SelectionAvailable==="YES"),n.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=n.ColumnResizingAvailable!=="YES"),n.DragAvailable&&(i.config.main.enableDrag=n.DragAvailable==="YES"),n.downloadAllData&&(i.config.main.downloadAllData=n.downloadAllData==="YES"),n.disableGlobalSearch&&(i.config.main.disableGlobalSearch=n.disableGlobalSearch==="YES"),n.disableColumnFilter&&(i.config.main.disableColumnFilter=n.disableColumnFilter==="YES"),n.disableSorting&&(i.config.main.disableSorting=n.disableSorting==="YES"),n.disableEditColumn&&(i.config.main.disableEditColumn=n.disableEditColumn==="YES"),n.disableFullScreenToggle&&(i.config.main.disableFullScreenToggle=n.disableFullScreenToggle==="YES"),n.disableDensityToggle&&(i.config.main.disableDensityToggle=n.disableDensityToggle==="YES"),n.disableDownloadFile&&(i.config.main.disableDownloadFile=n.disableDownloadFile==="YES"),n.disablePagination&&(i.config.main.disablePagination=n.disablePagination==="YES"),n.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=n.Table_Download_Keys_Name.map(d=>d.KeyName)),n.selectKey&&(i.config.main.selectKey=n.selectKey),i},Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}},buildLabel=(n,s)=>{const i=_.cloneDeep(Box);return i.scope=s,i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:4}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{xs:12,sm:6,md:4,lg:4}},options:{widget:"DownloadFile"}},buildUploadFile=(n,s)=>{const i=_.cloneDeep(uploadFile);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),i.config.main.errorMessage=n.errorMessage,i},buildDownloadFile=(n,s)=>{const i=_.cloneDeep(downloadFile);return i.scope=s,n.layout&&(i.config.layout=n.layout),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),i};function Card(n){return{type:"WrapperLayout",config:{main:{},wrapperStyle:{position:"relative",top:"50%",transform:"translateY(-50%)"},componentsBoxStyle:{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",flexDirection:"row",flexWrap:"nowrap",width:"100% !important",background:"transparent",border:`1.5px solid ${n.palette.primary.light}`,borderRadius:"8px",padding:"0px 4px",height:"100%",alignItems:"center",marginLeft:"0px","&: hover":{background:`${n.palette.primary.main}`,border:"1.5px solid black","& p":{color:"white"}}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"HorizontalLayout",config:{layout:8},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent"},componentsBoxStyle:{flexDirection:"column",flexWrap:"nowrap",width:"100%",height:"inherit",background:"transparent",borderRadius:"0px"},layout:12},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent"},componentsBoxStyle:{flexDirection:"row",flexWrap:"nowrap",width:"100%",height:"0",background:"transparent",borderRadius:"0px",marginLeft:"-10px",marginTop:"-8px",justifyContent:"start",position:"relative"},layout:12},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:""},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",height:0}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"5000.00"},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",position:"absolute",left:"8px"}},options:{widget:"Box"}}]},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{color:"black",fontSize:"16px",justifyContent:"center",textWrap:"wrap",background:"inherit",width:"calc(100%+8px)",margin:"-8px",marginTop:{xs:"0px",md:"12px"},lineHeight:"1"},layout:12},options:{widget:"Box"}}]}]},{type:"Control",scope:"#/properties/programType",config:{main:{url:"https://www.svgrepo.com/show/500606/loading.svg"},style:{containerStyle:{height:"100%",display:"flex",justifyContent:"end"},imageStyle:{width:"unset",fontSize:"none",padding:"4px",margin:"0px 0px 0px 8px",height:"64px"}},layout:4},options:{widget:"Image"}}]}}const buildCard=(config,componentScope,store)=>{const card=_.cloneDeep(Card(store.theme.myTheme));return config.style&&(card.config.wrapperStyle=JSON.parse(config.style)),card.elements[0].elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/value`,card.elements[1].scope=`#/properties/${config.name}/properties/url`,card.elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/description`,config.layout&&(card.config.layout=createLayoutFormat(config.layout)),config!=null&&config.titleIcon&&(card.elements[0].elements[0].elements[0].elements[0].config.main.heading=eval(`'\\${config.titleIcon}'`),card.elements[0].elements[0].elements[0].elements[1].config.style.left="24px"),config.label&&(card.elements[0].elements[0].elements[0].elements[1].config.main.heading=config.label),config.url&&(card.elements[1].config.main.url=config.url),config.description&&(card.elements[0].elements[0].elements[1].config.main.heading=config.description),card};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"",type:"date"}}};const DateTime={type:"Control",scope:"#/properties/date",options:{widget:"DateTimeInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"DateTime",type:"date"}}},buildDate=(n,s)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildDateTime=(n,s)=>{const i=_.cloneDeep(DateTime);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:12,sm:6,md:6,lg:6},main:{}}};const buildRankCard=(n,s)=>{const i=_.cloneDeep(RankCard);return i.scope=s,n.rank&&(i.config.main.rank=`${n.rank}`),n.height&&(i.config.main.height=`${n.height}px`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RollAndDice={type:"Control",scope:"#/properties/path",options:{widget:"RollAndDice"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRollAndDice=(n,s)=>{const i=_.cloneDeep(RollAndDice);return n.name&&(i.scope=s),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{},style:{}}};const buildTimer=(n,s)=>{const i=_.cloneDeep(Timer);return i.scope=s,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"",type:"text",multiple:!0,variant:"standard",options:[]}}};const buildMultiSelect=(n,s)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=s,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.value&&(i.config.main.options=n.value),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),i},buildBasicUiSchema=n=>({type:"HorizontalLayout",pageName:n.name,name:n.name,accessorKey:n.name,heading:n.label||n.name,elements:[]}),TextArea={type:"Control",scope:"#/properties/textarea",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(n,s)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.enableCodeEditor&&(i.config.main.enableCodeEditor=n.enableCodeEditor==="YES"),n.codeEditorLanguage&&(i.config.main.codeEditorLanguage=n.codeEditorLanguage),i.scope=s,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(n,s)=>{const i=_.cloneDeep(cardSlider);return n.name&&(i.scope=s),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(n,s)=>{const i=_.cloneDeep(Checkbox);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},buildLineGraph=(n,s)=>{const i=_.cloneDeep(LineGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.header=n.heading,n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.yAxisValue&&(i.config.main.yAxisValue=n.yAxisValue),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i.scope=s,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(n,s)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.sectionLabels&&(i.config.main.options=n.sectionLabels.map(d=>d.label||d.Options)),n.style&&(i.config.style=JSON.parse(n.style)),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:4,md:4,lg:4},main:{},style:{}}};const buildEmptyBox=(n,s)=>{const i=_.cloneDeep(emptyBox);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(n,s)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=s,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(n,s)=>{const i=_.cloneDeep(TextField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(n,s)=>{const i=_.cloneDeep(PanField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(n,s)=>{const i=_.cloneDeep(FileInput);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},Stepper={type:"Control",scope:"#/properties/Stepper",options:{widget:"Stepper"},config:{main:{steps:[{label:"First"},{label:"Second"},{label:"Third"}],resetButton:!1,resetText:"Reset",orientation:"vertical"}},elements:[]},buildStepper=(n,s)=>{const i=_.cloneDeep(Stepper);return i.scope=s,i.config.main.resetButton=n.resetButton==="YES",n.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=n.defaultButtonAvailable==="YES"),i.config.main.resetText=n.resetText||"ResetData",i.config.main.completeText=n.completeText||"Complete Text",i.config.main.orientation=n.orientation||"horizontal",n.sectionLabels&&(i.config.main.steps=n.sectionLabels.map((d,h)=>({label:d.label,id:h}))),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(n,s)=>{const i=_.cloneDeep(PopUP);return i.scope=s,i.config.main.title=n.label,i.config.main.fullScreen=n.fullScreen==="YES",i.config.main.fullWidth=n.fullWidth==="YES",i.config.main.maxWidth=n.maxWidth||!1,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(PopUP.config.style=JSON.parse(n.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(n,s)=>{const i=_.cloneDeep(dataGrid);return i.scope=s,n.elevation&&(i.config.main.elevation=+n.elevation),i.config.main.divider=n.divider!=="NO",n.height&&(i.config.main.height=`${n.height}px`),n.justifyContent&&(i.config.main.justifyContent=n.justifyContent),n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.cardLayout&&(i.config.cardLayout=createLayoutFormat(n.cardLayout)),n.style&&(i.config.style=JSON.parse(n.style)),i},InputSlider={type:"Control",scope:"#/properties/inputSlider",options:{widget:"InputSlider"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{limitToMax:!1,max:1e4,step:1e3,min:0,label:"Slider"}}},buildInputSlider=(n,s)=>{const i=_.cloneDeep(InputSlider);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.limitToMax&&(i.config.main.limitToMax=n.limitToMax==="YES"),n.max&&(i.config.main.max=n.max),n.step&&(i.config.main.step=n.step),n.min&&(i.config.main.min=n.min),n.style&&(i.config.main.defaultStyle=JSON.parse(n.style)),i},TreeMap={type:"Control",scope:"#/properties/TreeMap2",config:{main:{layout:"cartsian",orientation:"vertical",header:"Territory Hierarchy",linkType:"step",graphHeight:"500px"},style:{BoxStyle:{borderRadius:"5px"}}},options:{widget:"TreeMap"},elements:[]},buildTreeMap=(n,s)=>{const i=_.cloneDeep(TreeMap);return i.scope=s,n.label&&(i.config.main.header=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.orientation&&(i.config.main.orientation=n.orientation),n.linkType&&(i.config.main.linkType=n.linkType),n.graphHeight&&(i.config.main.graphHeight=n.graphHeight),n.graphWidth&&(i.config.main.graphWidth=n.graphWidth),n.graphZoomHeight&&(i.config.main.graphZoomHeight=n.graphZoomHeight),n.graphZoomWidth&&(i.config.main.graphZoomWidth=n.graphZoomWidth),n.style&&(i.config.style=JSON.parse(n.style)),i};var Thought={type:"Control",scope:"#/properties/path",options:{widget:"Thought"},config:{layout:{xs:11.5,sm:11.5,md:8,lg:8},main:{}}};const buildThoughtOfTheDay=(n,s)=>{const i=_.cloneDeep(Thought);return i.scope=s,n.thought&&(i.config.main.thought=`${n.thought}`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.label&&(i.config.main.label=n.label),n.style&&(i.config.style=JSON.parse(n.style)),i};var pdfViewer={type:"Control",scope:"#/properties/pdfviewer",options:{widget:"PdfViewer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"PDF"}}};const buildPdfViewer=n=>{const s=_.cloneDeep(pdfViewer);return s.config.main.label=n.label,n.name&&(s.scope=`#/properties/${n.name}`),n.layout&&(s.config.layout=createLayoutFormat(n.layout)),n.label&&(s.config.main.title=n.label),n.style&&(s.config.style=JSON.parse(n.style)),s};exports.schema={type:"object",properties:{},required:[]};function buildRule(n,s,i){var d,h,c,y,b,I,F,U,M,K;i?(c=(h=(d=exports.schema.properties)==null?void 0:d[s])==null?void 0:h.items)!=null&&c.properties&&((F=(I=(b=(y=exports.schema.properties)==null?void 0:y[s])==null?void 0:b.items)==null?void 0:I.properties)!=null&&F[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"&&((U=n.value)==null?void 0:U.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(P=>({const:P.value,title:P.label}))}:n.type==="MultipleSelect"&&((M=n.value)==null?void 0:M.length)>0&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(P=>({const:P.value,title:P.label}))}}))):(n.type==="Select"||n.type==="MultipleSelect")&&((K=n.value)==null?void 0:K.length)>0&&(n.type==="Select"?exports.schema.properties[n.name]={oneOf:n.value.map(P=>({const:P.value,title:P.label}))}:n.type==="MultipleSelect"&&(exports.schema.properties[n.name]={items:{oneOf:n.value.map(P=>({const:P.value,title:P.label}))}})),n.validation&&n.validation.forEach(P=>{var V,j,ae,Se,ot,ue,Te,ce,Fe,Le,at,Tt;s?(ae=(j=(V=exports.schema.properties)==null?void 0:V[s])==null?void 0:j.items)!=null&&ae.properties&&((Te=(ue=(ot=(Se=exports.schema.properties)==null?void 0:Se[s])==null?void 0:ot.items)==null?void 0:ue.properties)!=null&&Te[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"||((ce=n.value)==null?void 0:ce.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(ht=>({const:ht.value,title:ht.label}))}:(n.type==="MultipleSelect"||((Fe=n.value)==null?void 0:Fe.length)>0)&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(ht=>({const:ht.value,title:ht.label}))}})),P.validationType==="required"?(Tt=(at=(Le=exports.schema.properties)==null?void 0:Le[s])==null?void 0:at.items)==null||Tt.required.push(n.name):(exports.schema.properties[s].items.properties[n.name].type="string",exports.schema.properties[s].items.properties[n.name][P.validationType]=isNaN(P.validationValue)?P.validationValue:Number(P.validationValue))):(exports.schema.properties[n.name]||(exports.schema.properties[n.name]={}),P.validationType==="required"?exports.schema.required.push(n.name):(exports.schema.properties[n.name].type="string",exports.schema.properties[n.name][P.validationType]=isNaN(P.validationValue)?P.validationValue:Number(P.validationValue)))})}const buildSchema=(n,s,i)=>(buildRule(n,s,i),n!=null&&n.elements&&(n.type=="Table"||n.type=="Array"?(exports.schema.properties[n.name]||(exports.schema.properties[n.name]={type:"array",items:{type:"object",properties:{},required:[]}}),n.elements.map((d,h)=>{buildSchema(d,n.name,n.type==="Array")})):n.elements.map((d,h)=>{buildSchema(d)})),exports.schema),buildUiSchema=(n,s)=>{let i={};const d=`#/properties/${n.name}`;switch(n.type){case"TreeMap":i=buildTreeMap(n,d);break;case"DateTime":i=buildDateTime(n,d);break;case"InputSlider":i=buildInputSlider(n,d);break;case"DataGrid":i=buildDataGrid(n,d);break;case"Stepper":i=buildStepper(n,d);break;case"PopUp":i=buildPopUp(n,d);break;case"FileInput":i=buildFileInput(n,d);break;case"AadharcardText":i=buildAdhaarField(n,d);break;case"PanCardText":i=buildPanField(n,d);break;case"TabSection":i=buildTabSection(n,d);break;case"RunnerBoyProgressBar":i=RunnerBoyProgressbar(n,d);break;case"WrapperSection":i=buildWrapperSection(n,d);break;case"Text":i=buildTextField(n,d);break;case"TextArea":i=buildTextArea(n,d);break;case"Date":i=buildDate(n,d);break;case"Select":i=buildSelect(n,d);break;case"Radio":i=buildRadio(n,d);break;case"Button":i=buildButton(n,d);break;case"Table":i=buildTable(n,d);break;case"Array":i=buildArray(n,d);break;case"Box":i=buildLabel(n,d);break;case"CheckBox":i=buildCheckbox(n,d);break;case"UploadFile":i=buildUploadFile(n,d);break;case"DownloadFile":i=buildDownloadFile(n,d);break;case"EmptyBox":i=buildEmptyBox(n);break;case"card":i=buildCard(n,d,s);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":i=buildStackbarGraph(n,d);break;case"LineGraph":i=buildLineGraph(n,d);break;case"PieGraph":i=buildPieGraph(n,d);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":i=buildHorizontalBarGraph(n,d);break;default:i=buildStackbarGraph(n,d);break}break;case"ProgressBar":i=buildProgressBar(n,d);break;case"SpeedoMeter":i=buildSpeedoMeter(n,d);break;case"ProgressBarCard":i=buildProgressBarCard(n,d);break;case"RankCard":i=buildRankCard(n,d);break;case"Rank":i=buildRollAndDice(n,d);break;case"Slider":i=buildSlider(n,d);break;case"Timer":i=buildTimer(n,d);break;case"ColumnGroup":i={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":i=buildMultiSelect(n,d);break;case"LeaderBoard":i=buildLeaderBoard(n);break;case"Thought":i=buildThoughtOfTheDay(n,d);break;case"PdfViewer":i=buildPdfViewer(n);break;default:exports.schema={type:"object",properties:{},required:[]},i=buildBasicUiSchema(n)}if(n!=null&&n.elements){if((n==null?void 0:n.type)==="LeaderBoard")return i;if(n.type=="ColumnGroup"){const h={};n.sizeHolder&&n.sizeHolder.map((c,y)=>{h[c.keyName]=c.value}),i.elements=n.elements.map((c,y)=>({accessorKey:c.name,header:c.label||c.name,size:h[c.name]||180,type:c.columnFormat,elements:c.type=="ColumnGroup"?c.elements.map(b=>buildUiSchema(b,s)):[]}))}else if(n.type=="Table"){const h={};n.sizeHolder&&n.sizeHolder.map((c,y)=>{h[c.keyName]=c.value}),i.elements=n.elements.map((c,y)=>c.type?{accessorKey:c.name,header:c.label||c.name,size:h[c.name]||180,type:c.columnFormat,widget:c.type!="ColumnGroup"?buildUiSchema(c,s):void 0,elements:c.type=="ColumnGroup"?c.elements.map(b=>buildUiSchema(b,s)):[],columnFilterModeOptions:c.filteringOptions,enableColumnFilter:c.enableFilter==="Yes"}:{accessorKey:c.name,type:c.columnFormat,header:c.label||c.name,size:h[c.name]||180,columnFilterModeOptions:c.filteringOptions,enableColumnFilter:c.enableFilter==="Yes"})}else n.type=="Array"?i.options.detail.elements=n.elements.map((h,c)=>buildUiSchema(h,s)):i.elements=n.elements.map((h,c)=>buildUiSchema(h,s))}return i};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromSessionStorage=clearFromSessionStorage,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
27
|
+
}`;var O=il(function(){return K(p,F+"return "+w).apply(i,u)});if(O.source=w,hi(O))throw O;return O}function pm(e){return V(e).toLowerCase()}function um(e){return V(e).toUpperCase()}function cm(e,t,r){if(e=V(e),e&&(r||t===i))return fo(e);if(!e||!(t=Ie(t)))return e;var o=We(e),a=We(t),p=mo(o,a),u=go(o,a)+1;return gt(o,p,u).join("")}function dm(e,t,r){if(e=V(e),e&&(r||t===i))return e.slice(0,ho(e)+1);if(!e||!(t=Ie(t)))return e;var o=We(e),a=go(o,We(t))+1;return gt(o,0,a).join("")}function fm(e,t,r){if(e=V(e),e&&(r||t===i))return e.replace(hr,"");if(!e||!(t=Ie(t)))return e;var o=We(e),a=mo(o,We(t));return gt(o,a).join("")}function mm(e,t){var r=ht,o=ll;if(te(t)){var a="separator"in t?t.separator:a;r="length"in t?H(t.length):r,o="omission"in t?Ie(t.omission):o}e=V(e);var p=e.length;if(Dt(e)){var u=We(e);p=u.length}if(r>=p)return e;var f=r-Pt(o);if(f<1)return o;var g=u?gt(u,0,f).join(""):e.slice(0,f);if(a===i)return g+o;if(u&&(f+=g.length-f),vi(a)){if(e.slice(f).search(a)){var S,C=g;for(a.global||(a=Pr(a.source,V(Pi.exec(a))+"g")),a.lastIndex=0;S=a.exec(C);)var w=S.index;g=g.slice(0,w===i?f:w)}}else if(e.indexOf(Ie(a),f)!=f){var E=g.lastIndexOf(a);E>-1&&(g=g.slice(0,E))}return g+o}function gm(e){return e=V(e),e&&Il.test(e)?e.replace(Bi,$s):e}var ym=zt(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),Si=oa("toUpperCase");function rl(e,t,r){return e=V(e),t=r?i:t,t===i?Ns(e)?Ks(e):Fs(e):e.match(t)||[]}var il=U(function(e,t){try{return _e(e,i,t)}catch(r){return hi(r)?r:new k(r)}}),hm=tt(function(e,t){return De(t,function(r){r=Je(r),je(e,r,gi(e[r],e))}),e});function vm(e){var t=e==null?0:e.length,r=L();return e=t?j(e,function(o){if(typeof o[1]!="function")throw new Pe(y);return[r(o[0]),o[1]]}):[],U(function(o){for(var a=-1;++a<t;){var p=e[a];if(_e(p[0],this,o))return _e(p[1],this,o)}})}function bm(e){return $p(Me(e,P))}function Ci(e){return function(){return e}}function xm(e,t){return e==null||e!==e?t:e}var Sm=la(),Cm=la(!0);function Ce(e){return e}function _i(e){return Ho(typeof e=="function"?e:Me(e,P))}function _m(e){return Oo(Me(e,P))}function wm(e,t){return Uo(e,Me(t,P))}var Im=U(function(e,t){return function(r){return ln(r,e,t)}}),Em=U(function(e,t){return function(r){return ln(e,r,t)}});function wi(e,t,r){var o=pe(t),a=zn(t,o);r==null&&!(te(t)&&(a.length||!o.length))&&(r=t,t=e,e=this,a=zn(t,pe(t)));var p=!(te(r)&&"chain"in r)||!!r.chain,u=rt(e);return De(a,function(f){var g=t[f];e[f]=g,u&&(e.prototype[f]=function(){var S=this.__chain__;if(p||S){var C=e(this.__wrapped__),w=C.__actions__=be(this.__actions__);return w.push({func:g,args:arguments,thisArg:e}),C.__chain__=S,C}return g.apply(e,pt([this.value()],arguments))})}),e}function Am(){return ue._===this&&(ue._=Qs),this}function Ii(){}function Tm(e){return e=H(e),U(function(t){return zo(t,e)})}var Fm=ni(j),Lm=ni(lo),Bm=ni(Ar);function ol(e){return pi(e)?Tr(Je(e)):au(e)}function Rm(e){return function(t){return e==null?i:wt(e,t)}}var Dm=pa(),Pm=pa(!0);function Ei(){return[]}function Ai(){return!1}function km(){return{}}function Mm(){return""}function Hm(){return!0}function Nm(e,t){if(e=H(e),e<1||e>lt)return[];var r=Ke,o=me(e,Ke);t=L(t),e-=Ke;for(var a=Br(o,t);++r<e;)t(r);return a}function Om(e){return M(e)?j(e,Je):Ee(e)?[e]:be(Ia(V(e)))}function Um(e){var t=++Xs;return V(e)+t}var zm=Vn(function(e,t){return e+t},0),Wm=ri("ceil"),$m=Vn(function(e,t){return e/t},1),Gm=ri("floor");function Ym(e){return e&&e.length?Un(e,Ce,Wr):i}function Km(e,t){return e&&e.length?Un(e,L(t,2),Wr):i}function Vm(e){return uo(e,Ce)}function qm(e,t){return uo(e,L(t,2))}function Jm(e){return e&&e.length?Un(e,Ce,Kr):i}function Xm(e,t){return e&&e.length?Un(e,L(t,2),Kr):i}var Zm=Vn(function(e,t){return e*t},1),Qm=ri("round"),jm=Vn(function(e,t){return e-t},0);function eg(e){return e&&e.length?Lr(e,Ce):0}function tg(e,t){return e&&e.length?Lr(e,L(t,2)):0}return l.after=Cd,l.ary=Ma,l.assign=uf,l.assignIn=Xa,l.assignInWith=ar,l.assignWith=cf,l.at=df,l.before=Ha,l.bind=gi,l.bindAll=hm,l.bindKey=Na,l.castArray=Pd,l.chain=Da,l.chunk=$u,l.compact=Gu,l.concat=Yu,l.cond=vm,l.conforms=bm,l.constant=Ci,l.countBy=jc,l.create=ff,l.curry=Oa,l.curryRight=Ua,l.debounce=za,l.defaults=mf,l.defaultsDeep=gf,l.defer=_d,l.delay=wd,l.difference=Ku,l.differenceBy=Vu,l.differenceWith=qu,l.drop=Ju,l.dropRight=Xu,l.dropRightWhile=Zu,l.dropWhile=Qu,l.fill=ju,l.filter=td,l.flatMap=id,l.flatMapDeep=od,l.flatMapDepth=ad,l.flatten=Fa,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=Id,l.flow=Sm,l.flowRight=Cm,l.fromPairs=nc,l.functions=Cf,l.functionsIn=_f,l.groupBy=ld,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=If,l.invertBy=Ef,l.invokeMap=pd,l.iteratee=_i,l.keyBy=ud,l.keys=pe,l.keysIn=Se,l.map=er,l.mapKeys=Tf,l.mapValues=Ff,l.matches=_m,l.matchesProperty=wm,l.memoize=nr,l.merge=Lf,l.mergeWith=Za,l.method=Im,l.methodOf=Em,l.mixin=wi,l.negate=rr,l.nthArg=Tm,l.omit=Bf,l.omitBy=Rf,l.once=Ed,l.orderBy=cd,l.over=Fm,l.overArgs=Ad,l.overEvery=Lm,l.overSome=Bm,l.partial=yi,l.partialRight=Wa,l.partition=dd,l.pick=Df,l.pickBy=Qa,l.property=ol,l.propertyOf=Rm,l.pull=cc,l.pullAll=Ba,l.pullAllBy=dc,l.pullAllWith=fc,l.pullAt=mc,l.range=Dm,l.rangeRight=Pm,l.rearg=Td,l.reject=gd,l.remove=gc,l.rest=Fd,l.reverse=fi,l.sampleSize=hd,l.set=kf,l.setWith=Mf,l.shuffle=vd,l.slice=yc,l.sortBy=Sd,l.sortedUniq=_c,l.sortedUniqBy=wc,l.split=om,l.spread=Ld,l.tail=Ic,l.take=Ec,l.takeRight=Ac,l.takeRightWhile=Tc,l.takeWhile=Fc,l.tap=Gc,l.throttle=Bd,l.thru=jn,l.toArray=Va,l.toPairs=ja,l.toPairsIn=el,l.toPath=Om,l.toPlainObject=Ja,l.transform=Hf,l.unary=Rd,l.union=Lc,l.unionBy=Bc,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Nf,l.unzip=mi,l.unzipWith=Ra,l.update=Of,l.updateWith=Uf,l.values=Gt,l.valuesIn=zf,l.without=Mc,l.words=rl,l.wrap=Dd,l.xor=Hc,l.xorBy=Nc,l.xorWith=Oc,l.zip=Uc,l.zipObject=zc,l.zipObjectDeep=Wc,l.zipWith=$c,l.entries=ja,l.entriesIn=el,l.extend=Xa,l.extendWith=ar,wi(l,l),l.add=zm,l.attempt=il,l.camelCase=Yf,l.capitalize=tl,l.ceil=Wm,l.clamp=Wf,l.clone=kd,l.cloneDeep=Hd,l.cloneDeepWith=Nd,l.cloneWith=Md,l.conformsTo=Od,l.deburr=nl,l.defaultTo=xm,l.divide=$m,l.endsWith=Kf,l.eq=Ge,l.escape=Vf,l.escapeRegExp=qf,l.every=ed,l.find=nd,l.findIndex=Aa,l.findKey=yf,l.findLast=rd,l.findLastIndex=Ta,l.findLastKey=hf,l.floor=Gm,l.forEach=Pa,l.forEachRight=ka,l.forIn=vf,l.forInRight=bf,l.forOwn=xf,l.forOwnRight=Sf,l.get=bi,l.gt=Ud,l.gte=zd,l.has=wf,l.hasIn=xi,l.head=La,l.identity=Ce,l.includes=sd,l.indexOf=rc,l.inRange=$f,l.invoke=Af,l.isArguments=At,l.isArray=M,l.isArrayBuffer=Wd,l.isArrayLike=xe,l.isArrayLikeObject=ie,l.isBoolean=$d,l.isBuffer=yt,l.isDate=Gd,l.isElement=Yd,l.isEmpty=Kd,l.isEqual=Vd,l.isEqualWith=qd,l.isError=hi,l.isFinite=Jd,l.isFunction=rt,l.isInteger=$a,l.isLength=ir,l.isMap=Ga,l.isMatch=Xd,l.isMatchWith=Zd,l.isNaN=Qd,l.isNative=jd,l.isNil=tf,l.isNull=ef,l.isNumber=Ya,l.isObject=te,l.isObjectLike=ne,l.isPlainObject=fn,l.isRegExp=vi,l.isSafeInteger=nf,l.isSet=Ka,l.isString=or,l.isSymbol=Ee,l.isTypedArray=$t,l.isUndefined=rf,l.isWeakMap=of,l.isWeakSet=af,l.join=sc,l.kebabCase=Jf,l.last=Ne,l.lastIndexOf=pc,l.lowerCase=Xf,l.lowerFirst=Zf,l.lt=lf,l.lte=sf,l.max=Ym,l.maxBy=Km,l.mean=Vm,l.meanBy=qm,l.min=Jm,l.minBy=Xm,l.stubArray=Ei,l.stubFalse=Ai,l.stubObject=km,l.stubString=Mm,l.stubTrue=Hm,l.multiply=Zm,l.nth=uc,l.noConflict=Am,l.noop=Ii,l.now=tr,l.pad=Qf,l.padEnd=jf,l.padStart=em,l.parseInt=tm,l.random=Gf,l.reduce=fd,l.reduceRight=md,l.repeat=nm,l.replace=rm,l.result=Pf,l.round=Qm,l.runInContext=m,l.sample=yd,l.size=bd,l.snakeCase=im,l.some=xd,l.sortedIndex=hc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=Sc,l.sortedLastIndexOf=Cc,l.startCase=am,l.startsWith=lm,l.subtract=jm,l.sum=eg,l.sumBy=tg,l.template=sm,l.times=Nm,l.toFinite=it,l.toInteger=H,l.toLength=qa,l.toLower=pm,l.toNumber=Oe,l.toSafeInteger=pf,l.toString=V,l.toUpper=um,l.trim=cm,l.trimEnd=dm,l.trimStart=fm,l.truncate=mm,l.unescape=gm,l.uniqueId=Um,l.upperCase=ym,l.upperFirst=Si,l.each=Pa,l.eachRight=ka,l.first=La,wi(l,function(){var e={};return Ve(l,function(t,r){q.call(l.prototype,r)||(e[r]=t)}),e}(),{chain:!1}),l.VERSION=d,De(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),De(["drop","take"],function(e,t){W.prototype[e]=function(r){r=r===i?1:se(H(r),0);var o=this.__filtered__&&!t?new W(this):this.clone();return o.__filtered__?o.__takeCount__=me(r,o.__takeCount__):o.__views__.push({size:me(r,Ke),type:e+(o.__dir__<0?"Right":"")}),o},W.prototype[e+"Right"]=function(r){return this.reverse()[e](r).reverse()}}),De(["filter","map","takeWhile"],function(e,t){var r=t+1,o=r==Ti||r==cl;W.prototype[e]=function(a){var p=this.clone();return p.__iteratees__.push({iteratee:L(a,3),type:r}),p.__filtered__=p.__filtered__||o,p}}),De(["head","last"],function(e,t){var r="take"+(t?"Right":"");W.prototype[e]=function(){return this[r](1).value()[0]}}),De(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");W.prototype[e]=function(){return this.__filtered__?new W(this):this[r](1)}}),W.prototype.compact=function(){return this.filter(Ce)},W.prototype.find=function(e){return this.filter(e).head()},W.prototype.findLast=function(e){return this.reverse().find(e)},W.prototype.invokeMap=U(function(e,t){return typeof e=="function"?new W(this):this.map(function(r){return ln(r,e,t)})}),W.prototype.reject=function(e){return this.filter(rr(L(e)))},W.prototype.slice=function(e,t){e=H(e);var r=this;return r.__filtered__&&(e>0||t<0)?new W(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==i&&(t=H(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},W.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},W.prototype.toArray=function(){return this.take(Ke)},Ve(W.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],p=o||/^find/.test(t);!a||(l.prototype[t]=function(){var u=this.__wrapped__,f=o?[1]:arguments,g=u instanceof W,S=f[0],C=g||M(u),w=function(z){var $=a.apply(l,pt([z],f));return o&&E?$[0]:$};C&&r&&typeof S=="function"&&S.length!=1&&(g=C=!1);var E=this.__chain__,F=!!this.__actions__.length,B=p&&!E,O=g&&!F;if(!p&&C){u=O?u:new W(this);var R=e.apply(u,f);return R.__actions__.push({func:jn,args:[w],thisArg:i}),new ke(R,E)}return B&&O?e.apply(this,f):(R=this.thru(w),B?o?R.value()[0]:R.value():R)})}),De(["pop","push","shift","sort","splice","unshift"],function(e){var t=In[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var p=this.value();return t.apply(M(p)?p:[],a)}return this[r](function(u){return t.apply(M(u)?u:[],a)})}}),Ve(W.prototype,function(e,t){var r=l[t];if(r){var o=r.name+"";q.call(Nt,o)||(Nt[o]=[]),Nt[o].push({name:t,func:r})}}),Nt[Kn(i,ae).name]=[{name:"wrapper",func:i}],W.prototype.clone=mp,W.prototype.reverse=gp,W.prototype.value=yp,l.prototype.at=Yc,l.prototype.chain=Kc,l.prototype.commit=Vc,l.prototype.next=qc,l.prototype.plant=Xc,l.prototype.reverse=Zc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,jt&&(l.prototype[jt]=Jc),l},kt=Vs();bt?((bt.exports=kt)._=kt,_r._=kt):ue._=kt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"Masked Aadhaar",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Data Card",const:"card"},{title:"Check Box",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"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:"Input Slider",const:"InputSlider"},{title:"Label",const:"Box"},{title:"Leaderboard",const:"LeaderBoard"},{title:"Multi-Select Dropdown",const:"MultipleSelect"},{title:"Pan Card Masked",const:"PanCardText"},{title:"Pop Up",const:"PopUp"},{title:"Progress Bar",const:"ProgressBar"},{title:"Progress Bar Card",const:"ProgressBarCard"},{title:"Dropdown",const:"Select"},{title:"Slider",const:"Slider"},{title:"Speedometer",const:"SpeedoMeter"},{title:"Stepper Container",const:"Stepper"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy",const:"RunnerBoyProgressBar"},{title:"Table",const:"Table"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Timer",const:"Timer"},{title:"Upload",const:"UploadFile"},{title:"Tree ",const:"TreeMap"},{title:"Column Group",const:"ColumnGroup"},{title:"Thought of the day",const:"Thought"},{title:"Pdf Viewer",const:"PdfViewer"}]},columnFormat:{oneOf:[{title:"Date Column",const:"date"},{title:"DateTime Column",const:"dateTime"},{title:"Amount Column",const:"amount"}]},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"}]},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"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},Table_Download_Keys_Name:{type:"array",items:{type:"object",properties:{KeyName:{type:"string"}}}},sizeHolder:{type:"array",items:{type:"object",properties:{keyName:{type:"string"},value:{type:"string"}}}},enableColumnFilter:{type:"array",items:{type:"object",properties:{keyName:{type:"string"}}}},filteringOptions:{oneOf:[{const:"fuzzy",title:"Fuzzy"},{const:"contains",title:"Contain"},{const:"startsWith",title:"Starts with"},{const:"endsWith",title:"Ends with"},{const:"equals",title:"Equals"},{const:"notEquals",title:"Not Equals"},{const:"between",title:"Between"},{const:"betweenInclusive",title:"Between inclusive"},{const:"greaterThan",title:"Greater than"},{const:"greaterThanOrEqualTo",title:"Greater than or equal to"},{const:"lessThan",title:"Less than"},{const:"lessThanOrEqualTo",title:"Less than or equal to"}]},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},InputFormatingAndMasking:{type:"array",items:{type:"object",properties:{formatElement:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button",const:"Button"},{title:"IconButton",const:"IconButton"},{title:"HybridButton",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"},{title:"Stack Horizontal Bar Graph",const:"HorizontalStackBarGraph"}]},iconName:{type:"string",oneOf:[{title:"Search Icon",const:"SearchIcon"},{title:"Edit Icon",const:"EditIcon"},{title:"Add Icon",const:"AddIcon"},{title:"Send Icon",const:"SendIcon"},{title:"Approve Icon",const:"ApproveIcon"},{title:"RejectIcon",const:"RejectIcon"},{title:"Back Icon",const:"BackIcon"},{title:"Back Icon Second ",const:"BackIcon2"},{title:"Pending Icon",const:"PendingIcon"},{title:"View Icon",const:"ViewIcon"},{title:"Notification Icon",const:"NotificationIcon"},{title:"Person Icon",const:"PersonIcon"},{title:"Report Icon",const:"ReportIcon"},{title:"Error Icon",const:"ErrorIcon"},{title:"Refresh Icon",const:"RefreshIcon"},{title:"Download Icon",const:"DownloadIcon"},{title:"Exception Icon",const:"ExceptionIcon"}]},color:{type:"string",oneOf:[{title:"Primary",const:"primary"},{title:"Secondary",const:"secondary"},{title:"Error",const:"error"},{title:"Success",const:"success"},{title:"Info",const:"info"}]},pageName:{path:[]},name:{type:"string"},label:{type:"string"},RemoveItemButton:{disabled:!0}},required:["name"]},componentBasicUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page-Component",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core"],id:"component"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",options:{widget:"Array"},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 ?"},style:{marginTop:"-20px",fontSize:"20px","&.MuiTypography-root":{padding:"10px 30px 20px 30px",textAlign:"center",lineHeight:"1"}}}},{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",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",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 ?"},style:{marginTop:"-20px",fontSize:"20px","&.MuiTypography-root":{padding:"10px 30px 20px 30px",textAlign:"center",lineHeight:"1"}}}},{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",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",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:{},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`}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=n==null?void 0:n.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},CoreSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:0,md:0,lg:0}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:"Component ID",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Label",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:6,sm:6,md:0,lg:3}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",options:{widget:"Array"},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}},elements:[{accessorKey:"eventType",header:"Event's Type",type:"string",size:300},{accessorKey:"Handler",header:"Handler",type:"string",size:200},{accessorKey:"Edit_Approve_Records",header:"Edit",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",tooltipMessage:"Reject This Record",styleDefault:!0}}}}]}]}),emptyBox$1=(n,s)=>s!==void 0?{type:"Control",scope:`#/properties/${n}`,options:{widget:"EmptyBox"},config:{layout:s}}:{type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:4}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",options:{widget:"Array"},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: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."}}},emptyBox$1("cardEmpty")]},getArrayControl=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"Array"},config:{layout:12,main:{label:i,childElementLabel:i},style:{marginLeft:"-24px",marginBottom:"24px !important",labelStyle:{marginLeft:"24px"},detailsStyle:{marginLeft:"24px"}}},elements:[{type:"Control",scope:`#/properties/${s}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:i||"Labels for Tab"}}},emptyBox$1("ArrayControlEmpty1",{xs:6,sm:6,md:8,lg:8})]}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"Size"}}},sizeHolder.elements[2]=emptyBox$1("sizeHolderempty");const getInputField=(n,s)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:s}}}),getRadioInputField=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:3},main:{label:s,options:i}}}),buildWrapper=(n,s)=>({type:"WrapperLayout",config:{main:{label:n||"Details",isAccordion:!0}},elements:s||[]}),getTextArea=(n,s,i,d)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"TextArea"},config:{layout:d||12,main:{label:s,minRows:8,hideButton:i,enableCodeEditor:!0}}}),getSelectField=(n,s,i)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:s,type:"text"}}}),getMultiSelectField=(n,s)=>({type:"Control",scope:`#/properties/${n}`,options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{multiple:!0,label:s,options:[]}}}),BaseSection={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[]},buildPropertiesSection=function(n){let s=_.cloneDeep(BaseSection);switch(n){case"TreeMap":s.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":s.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":s.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":s.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":s.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),emptyBox$1("PopUpEmpty",{xs:6,sm:6,md:0,lg:0})];break;case"Text":s.elements=[getInputField("placeholder","Placeholder"),emptyBox$1("TextEmpty1",{xs:6,sm:6,md:4,lg:4}),emptyBox$1("TextEmpty1",{xs:0,sm:0,md:4,lg:4}),getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":s.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":s.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":s.elements=[getInputField("rank","Rank"),getInputField("height","Height"),emptyBox$1("RankCardEmpty1",{xs:0,sm:0,md:4,lg:4})];break;case"LeaderBoard":s.elements=[getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getInputField("nameKey","Key for Name"),getInputField("imageKey","Key for Image"),getInputField("scoreKey","Key for comparing parameter"),emptyBox$1("LeaderBoardEmpty1",{xs:6,sm:6,md:0,lg:0})];break;case"CardSlider":s.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":s.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel"),emptyBox$1("ProgressBarCardEmpty1"),emptyBox$1("ProgressBarCardEmpty2")];break;case"card":s.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("titleIcon","Unicode of Icon for title"),getInputField("description","Description"),emptyBox$1("cardEmpty",{xs:0,sm:0,md:8,lg:8})];break;case"Button":s.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"Graph":s.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:0,lg:0}),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getInputField("yAxisValue","Y-AxisValue"),getInputField("xAxisValue","X-AxisValue"),getRadioInputField("bottomAxisAngle","Bottom Axis Angled",["YES","No"]),getInputField("leftMargin","Left Margin"),emptyBox$1("GraphEmpty1",{xs:6,sm:0,md:8,lg:6}),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":s.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("isAccordion","Accordion",["YES","No"]),getRadioInputField("defaultStyle","Default Style",["YES","No"]),getInputField("rowSpacing","Row Spacing"),emptyBox$1("WrapperSectionEmpty1",{xs:6,sm:0,md:4,lg:4}),emptyBox$1("WrapperSectionEmpty2")];break;case"TabSection":s.elements=[getRadioInputField("verticalOrientation","Vertical Orientation",["YES","NO"]),getRadioInputField("lazyLoad","Lazy Load",["YES","NO"]),emptyBox$1("TabEmpty"),getArrayControl("sectionLabels","label")];break;case"Table":s.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"),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"]),emptyBox$1("LazyLoadingTableEmpty2"),emptyBox$1("LazyLoadingTableEmpty3")]),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder,getArrayControl("enableColumnFilter","keyName","Component Name")];break;case"Radio":s.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"]),emptyBox$1("SelectEmpty")];break;case"MultipleSelect":s.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),emptyBox$1("MultipleSelectEmpty1",{xs:0,sm:6,md:4,lg:4}),emptyBox$1("MultipleSelectEmpty2")];break;case"Thought":s.elements=[getTextArea("thought","Today's thought",!1)];break}return s},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}},elements:[{accessorKey:"name",header:"Name",type:"string",size:300},{accessorKey:"type",header:"Type",type:"string",size:200},{header:"Edit Record",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"TableEditIcon",size:"small",onClick:"editComponents",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Delete",field:"Reject_Records",size:150,type:"action",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",onClick:"deletePopUpComponent",tooltipMessage:"Reject This Record"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Component",size:150,type:"action",widget:{type:"Control",scope:"#/properties/Copy_Component",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0,disabled:!1}}}}]}]}),ValueTab={type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/value",options:{widget:"Array"},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",options:{widget:"Array"},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 s=_.cloneDeep(n);let i={};return s.pageName&&delete s.pageName,s.eventsSelected&&delete s.eventsSelected,(s.type==="Table"||s.type==="WrapperSection"||s.type==="TabSection")&&(i.elements=s.elements||[],s.elements&&delete s.elements),i.events=s.events||[],s.events&&delete s.events,i={...s,...i},i};const createLayoutFormat=n=>{if(_.isEmpty(n))return{xs:12,sm:12,md:12,lg:12};let s={xs:12,sm:12,md:6,lg:6};return n.map(i=>{s[i.key||"xs"]=+i.value||5.5}),s},flatObjectValueInArray=(n=[])=>{if(n.length<1)return;const s=Object.keys(n[0])[0];return n.map(d=>d[s])},clearFromSessionStorage=()=>{sessionStorage.removeItem("pageFormdata")},getNavigationHistory=(n,s)=>{if(s){let i=n.name;const d=s.split("."),h=[];return d.map((c,y)=>{if(y===0){h.push(c);return}h.push(`${h[y-1]}.${c}`)}),h.map(c=>{const y=_.get(n,c);y?i=i+` > ${(y==null?void 0:y.name)||(y==null?void 0:y.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInSessionStorage=(n,s)=>{let i;if(s){const d=getFormdataFromSessionStorage();i=_.set(d,s,buildConfig(n))}else i=buildConfig(n);return sessionStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromSessionStorage=n=>{const s=sessionStorage.getItem("pageFormdata")?JSON.parse(sessionStorage.getItem("pageFormdata")):void 0;let i;return n&&(i=_.get(s,n),i={...i,...getNavigationHistory(s,n)}),i||(i=getNavigationHistory(s,n)),i||s};async function saveHandler(n,s,i){var c,y;(c=n.searchParams)==null||c.get("id");const d=(y=n.searchParams)==null?void 0:y.get("path");saveFormdataInSessionStorage(n.ctx.core.data,d);const h=JSON.parse(sessionStorage.getItem("pageFormdata"));if(_.isEmpty(n.ctx.core.errors))try{const b=await i(n,s,h);navigateHandler(n,!0,"/PageMasterRecords")}catch{navigateHandler(n,!1)}}const navigateHandler=(n,s,i)=>{s?(sessionStorage.removeItem("pageFormdata"),n.navigate(i||-1),n.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(n){var i;const s=(i=n.searchParams)==null?void 0:i.get("path");_.isEmpty(n.ctx.core.errors)?(saveFormdataInSessionStorage(n.ctx.core.data,s),n.navigate(-1),n.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(n.setValidation("ValidateAndShow"),n.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","Events","Style","Validation"],MultipleSelect:["Core","Properties","Value","Events","Style","Validation"],Table:["Core","Components","Properties","Events","Style","Validation"],LeaderBoard:["Core","Components","Properties","Events","Style","Validation"],WrapperSection:["Core","Components","Properties","Style","Validation"],TabSection:["Core","Components","Properties","Style","Validation"],SpeedoMeter:["Core","Properties","Events","Style","Validation"],card:["Core","Properties","Events","Style","Validation"],UploadFile:["Core","Events","Style","Validation"],Graph:["Core","Properties","Events","Style","Validation"],DownloadFile:["Core","Events","Style","Validation"],Box:["Core","Events","Style","Validation"],Properties:["Core","Properties","Events","Style","Validation"],ProgressBarCard:["Core","Properties","Events","Style","Validation"],RankCard:["Core","Properties","Events","Style","Validation"],Slider:["Core","Components","Events","Style","Validation"],Timer:["Core","Events","Style","Validation"],Rank:["Core","Events","Style","Validation"],Button:["Core","Properties","Events","Style","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","Events","Style","Validation"],Text:["Core","Properties","Events","Style","Validation"],TextArea:["Core","Properties","Events","Style","Validation"],PopUp:["Core","Components","Properties","Style"],Stepper:["Core","Components","Properties","Events","Style"],DataGrid:["Core","Components","Properties","Events","Style"],InputSlider:["Core","Properties","Events","Style","Validation"],TreeMap:["Core","Components","Properties","Events","Style"],ColumnGroup:["Core","Components"],Thought:["Core","Properties","Events","Style","Validation"]};function refreshPage(n,s){var I,T;const i=_.cloneDeep(componentBasicUiSchema(s.theme.myTheme)),d=JSON.parse(sessionStorage.getItem("pageFormdata"));if(n){const N={Core:CoreSection,Value:ValueTab,Style:StyleSection,Events:EventSection(s.theme.myTheme),Components:TableSection(s.theme.myTheme),Properties:buildPropertiesSection(n),Validation:ValidationSection},P=(I=sectionLabels[n])==null?void 0:I.map(G=>N[G]);i.elements[0].config.main.tabLabels=sectionLabels[n]||["Core","Style","Events","Validation"],i.elements[0].elements=P||[CoreSection,StyleSection,EventSection(s.theme.myTheme),ValidationSection]}const h=(T=s.searchParams)==null?void 0:T.get("path"),c=h.lastIndexOf("."),y=h.slice(0,c),b=_.get(d,y);(b==null?void 0:b.type)==="Table"&&(i.elements[0].elements[0].elements[4]={type:"Control",scope:"#/properties/columnFormat",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Column Format"}}},i.elements[0].elements[0].elements[5]={type:"Control",scope:"#/properties/filteringOptions",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Filter Mode",multiple:!0}}},i.elements[0].elements[0].elements[6]={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"],errorMessage:"Active is not marked YES or NO"}}},i.elements[0].elements[0].elements[7]={type:"Control",scope:"#/properties/proc",config:{layout:{xs:0,sm:0,md:0,lg:6}},options:{widget:"EmptyBox"}}),sessionStorage.getItem("copiedConfig")&&this.ElementPathSetter(i),s.setUiSchema(i)}var Component=(n,s,i,d)=>({setPage:async function(){const h=await this.getFormdata();n.setFormdata(h);const c=this.getSchema();n.setSchema(c),this.refreshPage(h==null?void 0:h.type,n)},refreshPage,getFormdata:function(){var c;const h=(c=n.searchParams)==null?void 0:c.get("path");return getFormdataFromSessionStorage(h)},getSchema:function(){var T,N;const h=_.cloneDeep(ComponentSchema);sessionStorage.getItem("copiedConfig")&&(h.properties.RemoveItemButton.disabled=!1);const c=JSON.parse(sessionStorage.getItem("pageFormdata")),y=(T=n.searchParams)==null?void 0:T.get("path"),b=(N=n.searchParams)==null?void 0:N.get("id");let I=[];if(y){const P=y.split("."),G=[];P.map((D,Y)=>{if(Y===0){G.push(D);return}G.push(`${G[Y-1]}.${D}`)}),G.map(D=>{const Y=_.get(c,D);I.push({label:(Y==null?void 0:Y.name)||(Y==null?void 0:Y.eventType)||"NewComponent",path:`/Component?path=${D}&id=${b}`})})}return h.properties.pageName.path=I,h},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var h,c,y,b;((h=n==null?void 0:n.formData)==null?void 0:h.type)!==((c=n==null?void 0:n.newData)==null?void 0:c.type)&&((y=n==null?void 0:n.newData)==null?void 0:y.type)!==void 0&&this.refreshPage((b=n==null?void 0:n.newData)==null?void 0:b.type,n)},editComponents:function(){var b,I,T;const h=s.path.split(".")[1],c=(b=n.searchParams)==null?void 0:b.get("path"),y=(I=n.searchParams)==null?void 0:I.get("id");if(saveFormdataInSessionStorage(n.ctx.core.data,c),c){const P=`${(T=n.searchParams)==null?void 0:T.get("path")}.elements[${h}]`;n.searchParams.set("path",P),n.setSearchParams(n.searchParams),this.setPage()}else n.navigate(`/Component?path=${`elements[${h}]`}&id=${y}`)},deleteComponents:function(h=!0){var T;const c=(T=n.searchParams)==null?void 0:T.get("path"),y=sessionStorage.getItem("rowId");n.formData.elements.splice(y,1);const b=saveFormdataInSessionStorage(n.ctx.core.data,c),I=c?_.get(b,c):b;n.setFormdata(I),h&&n.updateDialog("popUpComponentSection"),sessionStorage.removeItem("rowId")},deleteEvent:function(h=!0){var I;const c=(I=n.searchParams)==null?void 0:I.get("path"),y=sessionStorage.getItem("rowId");n.formData.events.splice(y,1);const b=saveFormdataInSessionStorage(n.ctx.core.data,c);n.setFormdata(_.get(b,c)),h&&n.updateDialog("popUpEventSection"),sessionStorage.removeItem("rowId")},widgetAddClickHandler:function(){var y;Array.isArray(n.formData.elements)||(n.formData.elements=[]);const h=(y=n.searchParams)==null?void 0:y.get("path");saveFormdataInSessionStorage(n.ctx.core.data,h);const c=`${h}.elements[${n.formData.elements.length}]`;n.searchParams.set("path",c),n.setSearchParams(n.searchParams),this.setPage()},eventEditHandler:function(){var I,T;const h=s.path.split(".")[1],c=(I=n.searchParams)==null?void 0:I.get("path"),y=(T=n.searchParams)==null?void 0:T.get("id");saveFormdataInSessionStorage(n.ctx.core.data,c);const b=`${c}.events[${h}]`;n.navigate(`/ComponentEvents?path=${b}&id=${y}`)},eventAddHandler:function(){var b,I;const h=(b=n.searchParams)==null?void 0:b.get("path"),c=(I=n.searchParams)==null?void 0:I.get("id");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,h);const y=`${h}.events[${n.formData.events.length}]`;n.navigate(`/ComponentEvents?path=${y}&id=${c}`)},backHandler:function(){n.navigate(-1)},deletePopUpComponent:function(){const h=s.path.split(".")[1];sessionStorage.setItem("rowId",h),n.updateDialog("popUpComponentSection")},deletePopUpEvent:function(){const h=s.path.split(".")[1];sessionStorage.setItem("rowId",h),n.updateDialog("popUpEventSection")},copyPasteElement:function(h,c=this.setPage.bind(this)){var I;const[y,b]=(I=s.path.split(".").pop())==null?void 0:I.split("_");y==="Copy"?this.CopyElement(h,b):this.PasteElement(c,b)},CopyElement:function(h=n,c){var G;const y=lodash.exports.cloneDeep(h.schema),b=lodash.exports.cloneDeep(h.uiSchema);y.properties.RemoveItemButton.disabled=!1;const I=s.path.split(".")[1],T=(G=n.searchParams)==null?void 0:G.get("path"),N=this.elementPathHandler(T,I,c),P=getFormdataFromSessionStorage(N);this.ElementPathSetter(b,P),sessionStorage.setItem("copiedConfig",JSON.stringify(P)),n.setSchema(y),n.setUiSchema(b)},PasteElement:function(h,c){var G;if(!sessionStorage.getItem("copiedConfig")){n.setNotify({FailMessage:"No item has been copied.",Fail:!0});return}const y=(G=n.searchParams)==null?void 0:G.get("path");Array.isArray(n.formData.elements)||(n.formData.elements=[]),Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,y);const b=getFormdataFromSessionStorage(y),I=c==="Component"?b.elements.length:b.events.length,T=this.elementPathHandler(y,I,c),N=JSON.parse(sessionStorage.getItem("copiedConfig")),P={Events:" The Events cannot be integrated into the component section.",Component:"The component cannot be integrated into the Events section."};N.Handler&&c==="Component"?n.setNotify({FailMessage:P.Events,Fail:!0}):N.name&&c==="Events"?n.setNotify({FailMessage:P.Component,Fail:!0}):(saveFormdataInSessionStorage(N,T),h())},RemoveItemButton:function(h=n){const c=lodash.exports.cloneDeep(h.schema),y=lodash.exports.cloneDeep(h.uiSchema);c.properties.RemoveItemButton.disabled=!0,y.elements[2].elements[1].config.main.heading="No element copied",sessionStorage.removeItem("copiedConfig"),n.setSchema(c),n.setUiSchema(y)},elementPathHandler:function(h,c,y){return y==="Component"?h?`${h}.elements[${c}]`:`elements[${c}]`:h?`${h}.events[${c}]`:`events[${c}]`},ElementPathSetter:function(h,c){c||JSON.parse(sessionStorage.getItem("copiedConfig"))}}),pageMaster=n=>{const{store:s,dynamicData:i,submitHandler:d,service:h}=n;return{setPage:async function(){const c=await this.getFormdata();s.setFormdata(c);const y=await this.getUiSchema(),b=await this.getSchema();s.setSchema(b),s.setUiSchema(y)},getFormdata:async function(){var I;const c=(I=s.searchParams)==null?void 0:I.get("id"),y=await n.pageConfigProvider(c),b=getFormdataFromSessionStorage();return b||(saveFormdataInSessionStorage(y),y)},getUiSchema:function(){const c=_.cloneDeep(PageMasterUiSchema(s.theme.myTheme));return sessionStorage.getItem("copiedConfig")&&Component(s,i,d,h).ElementPathSetter(c),c},getSchema:()=>{const c=_.cloneDeep(PageMasterSchema);return sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1),c},backHandler:()=>{sessionStorage.removeItem("pageFormdata"),s.navigate("/PageMasterRecords")},onAddClickHandler:function(){var b;const c=(b=s.searchParams)==null?void 0:b.get("id");Array.isArray(s.formData.elements)||(s.formData.elements=[]);const y=saveFormdataInSessionStorage(s.ctx.core.data);c?s.navigate(`/Component?path=${`elements[${y==null?void 0:y.elements.length}]`}&id=${c}`):s.navigate(`/Component?path=${`elements[${y==null?void 0:y.elements.length}]`}`)},saveHandler:async()=>await saveHandler(s,h,d),Edit_Components:Component(s,i,d,h).editComponents,Delete_Components:async function(){await Component(s,i,d,h).deleteComponents(!1),s.updateDialog("popUpPageMasterComponent")},eventAddHandler:function(){var b;const c=(b=s.searchParams)==null?void 0:b.get("id");Array.isArray(s.formData.events)||(s.formData.events=[]),saveFormdataInSessionStorage(s.ctx.core.data);const y=`events[${s.formData.events.length}]`;s.navigate(`/ComponentEvents?path=${y}&id=${c}`)},editEvent:function(){var I;const c=i.path.split(".")[1],y=(I=s.searchParams)==null?void 0:I.get("id");saveFormdataInSessionStorage(s.ctx.core.data);const b=`events[${c}]`;s.navigate(`/ComponentEvents?path=${b}&id=${y}`)},deleteEvent:function(){const c=sessionStorage.getItem("rowId");s.formData.events.splice(c,1);const y=saveFormdataInSessionStorage(s.ctx.core.data);s.setFormdata(y),s.updateDialog("popUpPageMasterEvent"),sessionStorage.removeItem("rowId")},deletePopUpComponent:function(){const c=i.path.split(".")[1];sessionStorage.setItem("rowId",c),s.updateDialog("popUpPageMasterComponent")},deletePopUpEvent:function(){const c=i.path.split(".")[1];sessionStorage.setItem("rowId",c),s.updateDialog("popUpPageMasterEvent")},copyPasteElement:function(){Component(s,i,d,h).copyPasteElement(s,this.setPage.bind(this))},RemoveItemButton:function(){Component(s,i,d,h).RemoveItemButton(s)}}};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:"Back",const:"onBack"},{title:"Next",const:"onNext"},{title:"Row Movement",const:"onRowMovement"},{title:"Download",const:"onDownload"},{title:"Fail",const:"Fail"}]},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:"Download",const:"download"}]},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}},RemoveItemButton:{disabled:!0},pageName:{path:[{label:"defaultLabel",path:"defaultPath"}]}},required:["eventType","Handler"]},EventUiSchema=n=>{var i;return{type:"HorizontalLayout",heading:"Page-Events",elements:[{type:"TabLayout",config:{main:{tabLabels:["Core","Response Events"],id:"event"},style:{TabPanelStyle:{padding:0}},TabsStyle:{marginBottom:"3px",paddingBottom:"4px",boxShadow:"0px 3px 4px #afafaf80","& .MuiTabs-indicator":{bottom:"6px"}}},elements:[{type:"WrapperLayout",config:{main:{label:" ",gap:"8px"}},elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Event's Type",type:"text"}}},getSelectField("Handler","Handler"),{type:"Control",scope:"#/properties/EmptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}}]},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{headerIcons:{elements:[{widget:{type:"Control",scope:"#/properties/New_Record",options:{widget:"IconButton"},config:{main:{onClick:"addEvent",size:"small",icon:"TableAddIcon",iconLabel:"Add",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}},{widget:{type:"Control",scope:"#/properties/Paste_Event",options:{widget:"IconButton"},config:{main:{onClick:"copyPasteElement",size:"small",icon:"TablePaste",iconLabel:"Paste",styleDefault:!0},style:{mt:"6px",color:"inherit",fill:"inherit","&:hover":{color:"inherit",fill:"inherit"}}}}}]},disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event's Type",size:300,type:"string"},{accessorKey:"Handler",header:"Handler",size:200,type:"string"},{accessorKey:"Edit_Approve_Records",header:"Edit",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{size:"small",icon:"TableEditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{accessorKey:"Reject_Records",header:"Delete",type:"action",size:150,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"Bin",tooltipMessage:"Reject This Record",onClick:"deletePopUpEvent"},style:{fill:n.palette.primary.main,"& :hover":{fill:n.palette.primary.dark}}}}},{header:"Copy",field:"Copy_Event",type:"action",size:150,widget:{type:"Control",scope:"#/properties/Copy_Event",options:{widget:"IconButton"},config:{main:{icon:"FileCopyIcon",onClick:"copyPasteElement",styleDefault:!0}}}}]}]},{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 ?"},style:{marginTop:"-20px",fontSize:"20px","&.MuiTypography-root":{padding:"10px 30px 20px 30px",textAlign:"center",lineHeight:"1"}}}},{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",color:"info",type:"text",onClick:"deletePopUpEvent",size:"large"},style:{position:"absolute",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",startIcon:"ApproveIcon",variant:"contained",color:"error",type:"text",onClick:"deleteEvent",size:"large"},style:{position:"absolute",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:{},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`}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},{type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:10,height:"fit-content",overflow:"hidden",zIndex:1e3,width:"inherit"}},elements:[{type:"Control",scope:"#/properties/FooterText",options:{widget:"Box"},config:{main:{heading:"Copywriter@ACT21.IO"},style:{color:((i=n==null?void 0:n.palette)==null?void 0:i.text.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:0,width:"fit-content",left:"50%",position:"relative",margin:"revert",flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}}]}]}},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:6,sm:6,md:4,lg:3},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:0,md:4,lg:6}}},{type:"Control",scope:"#/properties/headers",options:{widget:"Array"},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",options:{widget:"Array"},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",options:{widget:"Array"},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,s,i,d,h)=>({setPage:async function(){const c=await this.getFormData();n.setFormdata(c);const y=await this.getSchema();console.log("SettingSchema>>",y),n.setSchema(y),this.refreshPage(c.Handler,n)},refreshPage:(c,y)=>{var D,Y;const b=_.cloneDeep(EventUiSchema(y.theme.myTheme)),I=_.cloneDeep(EventSchema);c&&(c==="custom"?(b.elements[0].elements[0].elements[2]=getRadioInputField("isSync","Run in Sync",["Yes","No"]),b.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:{}}},b.elements[0].elements[0].elements[4]=getTextArea("eventCode","Write Custom Code",!1),I.required=["eventType","Handler","eventCode"]):c==="api"?(b.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),b.elements[0].elements[0].elements[3]=APISection,I.required=["eventType","Handler","method","path"]):c==="inBuiltFunction"?(b.elements[0].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),b.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:{}}},b.elements[0].elements[0].elements[4]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0),I.required=["eventType","Handler","inBuiltFunctionType"]):c==="refresh"&&(b.elements[0].elements[0].elements[2]=emptyBox$1("emptyBox",{xs:0,sm:0,md:4,lg:6}),b.elements[0].elements[0].elements[3]=refreshSectionUiSchema,I.properties.refreshElements.required=["value"],I.properties.refreshElements.items.required=["value"],I.required=["eventType","Handler","refreshElements"])),h&&(I.properties.inBuiltFunctionType.oneOf=[...I.properties.inBuiltFunctionType.oneOf,...h]),sessionStorage.getItem("copiedConfig")&&(Component(y,s,i,d).ElementPathSetter(b),I.properties.RemoveItemButton.disabled=!1);const T=JSON.parse(sessionStorage.getItem("pageFormdata")),N=(D=y.searchParams)==null?void 0:D.get("path"),P=(Y=y.searchParams)==null?void 0:Y.get("id");let G=[];if(N){const Z=N.split("."),ee=[];Z.map((ae,re)=>{if(re===0){ee.push(ae);return}ee.push(`${ee[re-1]}.${ae}`)}),ee.map(ae=>{const re=_.get(T,ae);G.push({label:(re==null?void 0:re.name)||(re==null?void 0:re.eventType)||"NewComponent",path:re!=null&&re.eventType?`/ComponentEvents?path=${ae}&id=${P}`:`/Component?path=${ae}&id=${P}`})})}console.log("pathArray>>",G),I.properties.pageName.path=G,y.setSchema(I),y.setUiSchema(b)},getFormData:Component(n,s,i,d).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>{var N,P;const c=_.cloneDeep(EventSchema);sessionStorage.getItem("copiedConfig")&&(c.properties.RemoveItemButton.disabled=!1);const y=JSON.parse(sessionStorage.getItem("pageFormdata")),b=(N=n.searchParams)==null?void 0:N.get("path"),I=(P=n.searchParams)==null?void 0:P.get("id");let T=[];if(b){const G=b.split("."),D=[];G.map((Y,Z)=>{if(Z===0){D.push(Y);return}D.push(`${D[Z-1]}.${Y}`)}),D.map(Y=>{const Z=_.get(y,Y);T.push({label:(Z==null?void 0:Z.name)||(Z==null?void 0:Z.eventType)||"NewComponent",path:Z!=null&&Z.eventType?`/ComponentEvents?path=${Y}&id=${I}`:`/Component?path=${Y}&id=${I}`})})}return console.log("pathArray>>",T),c.properties.pageName.path=_.cloneDeep(T),c},okHandler:()=>okHandler(n),saveHandler:async()=>await saveHandler(n,d,i),onChange:function(){var c,y,b;((c=n==null?void 0:n.formData)==null?void 0:c.Handler)!==((y=n==null?void 0:n.newData)==null?void 0:y.Handler)&&((b=n==null?void 0:n.newData)==null?void 0:b.Handler)!==void 0&&this.refreshPage(n.newData.Handler||n.formdata.Handler,n)},addEvent:function(){var b,I,T;const c=(b=n.searchParams)==null?void 0:b.get("path");Array.isArray(n.formData.events)||(n.formData.events=[]),saveFormdataInSessionStorage(n.ctx.core.data,c);const y=`${c}.events[${(T=(I=n.formData)==null?void 0:I.events)==null?void 0:T.length}]`;n.searchParams.set("path",y),n.setSearchParams(n.searchParams),this.setPage()},editEvent:function(){var I;const c=s.path.split(".")[1],y=(I=n.searchParams)==null?void 0:I.get("path");saveFormdataInSessionStorage(n.ctx.core.data,y);const b=`${y}.events[${c}]`;n.searchParams.set("path",b),n.setSearchParams(n.searchParams),this.setPage()},deleteEvent:async function(){await Component(n,s,i,d).deleteEvent(!1),n.updateDialog("popUpEvent")},backHandler:function(){n.navigate(-1)},deletePopUpEvent:function(){const c=s.path.split(".")[1];sessionStorage.setItem("rowId",c),n.updateDialog("popUpEvent")},copyPasteElement:function(){Component(n,s,i,d).copyPasteElement(n,this.setPage.bind(this))},RemoveItemButton:function(){Component(n,s,i,d).RemoveItemButton(n)}});const downloadFile$1=n=>{const s=n.name.split("."),i=n.data,d=window.atob(i);let h;h=new File([d],s[s.length-1]);const c=URL.createObjectURL(h),y=document.createElement("a");y.href=s[s.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:c,y.download=`${n.name}`,document.body.appendChild(y),y.click(),URL.revokeObjectURL(c),document.body.removeChild(y)},doDownload=(n,s)=>{let i=`${s.defaults.baseURL}/${n.path}`;n!=null&&n.params&&Object.keys(n==null?void 0:n.params).map((c,y)=>{i=i+`${y===0?"?":"&"}${c}=${n==null?void 0:n.params[c]}`});const d=document.createElement("a");d.href=i,document.body.appendChild(d),d.click(),d.parentNode.removeChild(d)},executeEvents=n=>{var h,c,y;let s=[],i=null;if(n.config.isSync!=="Yes")return shouldEventExecute(n).then(b=>{if(!b)throw new Error("onStart Event not allow to run Parent Events");return executeEventsHandler(n)}).then(b=>{var T;i=b,s=(T=n.config)==null?void 0:T.events.filter(N=>N.eventType==="Success")}).catch(b=>{var N,P;const I=(P=(N=n.config)==null?void 0:N.events)==null?void 0:P.filter(G=>G.eventType==="Fail");s=(I==null?void 0:I.length)>0?I:[]}).then(()=>{if((s==null?void 0:s.length)>0)return s.reduce((b,I)=>b.then(()=>executeEvents({...n,config:I,parentEventOutput:i})),Promise.resolve())}).then(()=>i);if(!shouldEventExecute(n))return{response:void 0,events:void 0};try{i=executeEventsHandler(n),s=(h=n.config)==null?void 0:h.events.filter(T=>T.eventType==="Success")}catch{const b=(y=(c=n.config)==null?void 0:c.events)==null?void 0:y.filter(T=>T.eventType==="Fail");s=(b==null?void 0:b.length)>0?b:[]}if((s==null?void 0:s.length)>0)for(const b of s)executeEvents({...n,config:b,parentEventOutput:i});return i};function executeEventsHandler(n){var s,i,d;if(n.config.Handler==="api")return executeApiRequest(n);if(n.config.Handler==="inBuiltFunction")return executeInBuiltFunctionHandler(n);if(n.config.Handler==="custom")return executeCustomHandler(n);if(n.config.Handler==="refresh")return executeRefreshHandler(n);if(n.config.Handler==="mergeFormdata")return mergeFormdata(n.parentEventOutput,n.componentName,n.config,n.store,n.service,n.formDataHolder);if(n.config.Handler==="onBackHandler")return(s=n.store.functionParameters)==null?void 0:s.handleBack();if(n.config.Handler==="onNextHandler")return(i=n.store.functionParameters)==null?void 0:i.handleNext();if(n.config.Handler==="onResetHandler")return(d=n.store.functionParameters)==null?void 0:d.handleReset()}function getRefreshElements(n,s){var d;let i=[];return((d=n==null?void 0:n.refreshElements)==null?void 0:d.length)>0?i=n.refreshElements.map(h=>h.value):s!=null&&s.onLoad&&(i=Object.keys(s==null?void 0:s.onLoad)),i}async function executeRefreshHandler(n){const s=getRefreshElements(n.config,n.eventGroups);return Promise.allSettled(s.map(i=>{const d=n.eventGroups.onLoad[i];return d?Promise.allSettled(d.map(h=>executeEvents({...n,config:h,componentName:i}))):Promise.resolve()}))}function executeApiRequest(n){var h;const s={...(h=n.userValue)==null?void 0:h.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},d=buildApiPayload(n.config,s,i,n.store,n.dynamicData,n.userValue,n.service);return n.service[n.config.method](n.config.path,d.body,{headers:d.headers}).then(c=>c)}function executeInBuiltFunctionHandler(params){let parameter={};if(params.config.funcParametersCode){const makeFunc=eval(params.config.funcParametersCode);parameter=makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service),params.serviceHolder[params.config.inBuiltFunctionType](parameter,params.service)}else params.serviceHolder[params.config.inBuiltFunctionType](params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service)}function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode);return params.config.isSync!=="Yes"?makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName).then(n=>n):makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName)}function mergeFormdata(n,s,i,d,h,c){i.type==="Select"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(y=>{var b;return{...y,properties:{...y.properties,[s]:{...(b=y.properties)==null?void 0:b[s],oneOf:n.data}}}}):i.type==="MultipleSelect"&&(n==null?void 0:n.data)?_.isEmpty(n==null?void 0:n.data)||d.setSchema(y=>{var b;return{...y,properties:{...y.properties,[s]:{...(b=y.properties)==null?void 0:b[s],type:"array",items:{oneOf:n==null?void 0:n.data}}}}}):i.type==="page"?_.isEmpty(n==null?void 0:n.data)&&(n==null?void 0:n.data)||(d.newData={...d.newData,...n==null?void 0:n.data},d.setFormdata(y=>({...y,...n==null?void 0:n.data}))):n&&(c[s]=n.data,d.setFormdata(y=>({...y,...c})))}const buildBodyFormat=(n,s,i,d)=>{let h={...i==null?void 0:i.payload};return n.map(c=>{var y,b,I,T,N;if(typeof(c==null?void 0:c.value)!="string")h[c.key]=c.value;else if((y=c==null?void 0:c.value)!=null&&y.startsWith("$userValue")){const P=c.value.substring(11);h[c.key]=_.get(i,P)}else if((b=c==null?void 0:c.value)!=null&&b.startsWith("$urlParams")){const P=c.value.substring(11),G=(I=d==null?void 0:d.searchParams)==null?void 0:I.get(P);h[c.key]=G}else if((T=c==null?void 0:c.value)!=null&&T.startsWith("$local")){const P=c.value.substring(7),G=JSON.parse(sessionStorage.getItem(P)||'""');h[c.key]=G}else if((N=c==null?void 0:c.value)!=null&&N.startsWith("$")){const P=c.value.substring(1);h[c.key]=_.get(s,P)}else(c==null?void 0:c.value)==="*"&&(c==null?void 0:c.key)==="*"?h={...h,...s}:(c==null?void 0:c.value)==="*"?h[c.key]=s:h[c.key]=c.value}),h},buildHeadersFormat=n=>{const s={"X-Requested-With":"XMLHttpRequest"};return n.map(i=>{s[i.key]=i.value}),s};function shouldEventExecute(n){var i,d,h;const s=(d=(i=n.config)==null?void 0:i.events)==null?void 0:d.filter(c=>c.eventType==="onStart");return(s==null?void 0:s.length)>0?((h=s[0])==null?void 0:h.isSync)!=="Yes"?executeEventsHandler({...n,config:s[0]}).then(c=>c):executeEventsHandler({...n,config:s[0]}):n.config.isSync!=="Yes"?Promise.resolve(!0):!0}function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var n,s;compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((s=(n=store==null?void 0:store.ctx)==null?void 0:n.core)==null?void 0:s.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 s(i){i.events&&i.events.forEach(d=>{var c;i.type&&(compType=i.type),eventGroups[d.eventType]||(eventGroups[d.eventType]={}),eventGroups[d.eventType][i.name]||(eventGroups[d.eventType][i.name]=[]);const h=(c=d==null?void 0:d.events)==null?void 0:c.find(y=>y.eventType==="Success");!h&&d.eventType==="onLoad"&&(d.events||(d.events=[]),d.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),!h&&(d.eventType==="onBack"||d.eventType==="onNext"||d.eventType==="onReset")&&(d.events||(d.events=[]),d.events.push({Handler:`${d.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:n.lazyLoading==="YES"})),eventGroups[d.eventType][i.name].push({...d,type:compType})})}return s(n),n!=null&&n.elements&&n.elements.forEach(extractEvents),eventGroups};var service=n=>{eventGroups={};const s={};pageData&&!lodash.exports.isEmpty(pageData)&&typeof pageData=="object"&&(eventGroups=extractEvents(pageData==null?void 0:pageData.config));let i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload,...n.functionsProvider},eventGroups,functionsProvider:n.functionsProvider,formDataHolder:s};return{setPage:async function(){var T,N,P,G,D,Y,Z,ee,ae,re,de,Fe,fe;n.store.setFormdata({}),n.store.newData={};const d=sessionStorage.getItem("pagemasterMetaData");d?pageData=JSON.parse(d):(pageData=await n.pageDataProvider(),sessionStorage.setItem("pagemasterMetaData",JSON.stringify({schema:pageData==null?void 0:pageData.schema,uiSchema:pageData==null?void 0:pageData.uiSchema,config:pageData==null?void 0:pageData.config})));const h=pageData==null?void 0:pageData.config,c=pageData==null?void 0:pageData.uiSchema,y=new CustomEvent("pageNameChanged",{detail:{pageName:h.label}});window.dispatchEvent(y);const b=(N=(T=n==null?void 0:n.store)==null?void 0:T.theme)==null?void 0:N.myTheme;c.elements.push({type:"HorizontalLayout",config:{main:{direction:"row"},style:{flexDirection:"row",position:"absolute",bottom:0,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:((G=(P=b==null?void 0:b.palette)==null?void 0:P.text)==null?void 0:G.disabled)||"#AFAFAF",fontSize:"11px",textAlign:"center",lineHeight:2,width:"fit-content",left:"50%",position:"relative",margin:0,flexGrow:1,height:0,transform:"translate(-50%, 0%)"}}},{type:"Control",scope:"#/properties/FooterBackIcon",options:{widget:"Box"},config:{main:{iconName:"PrevIcon",onClick:"backHandler",width:"fit-content"},style:{fill:(Y=(D=b==null?void 0:b.palette)==null?void 0:D.primary)==null?void 0:Y.main,width:20,height:0,top:0,right:{xs:"12px",sm:"84px"},position:"absolute",fontSize:"12px",cursor:"pointer",":hover":{fill:(ee=(Z=b==null?void 0:b.palette)==null?void 0:Z.primary)==null?void 0:ee.dark},marginRight:"20px"}}},{type:"Control",scope:"#/properties/FooterBackHandlerText",options:{widget:"Box"},config:{main:{heading:"Previous Page",onClick:"backHandler"},style:{display:{xs:"none",sm:"flex"},textAlign:"left",lineHeight:1,height:0,width:"fit-content",color:(re=(ae=b==null?void 0:b.palette)==null?void 0:ae.primary)==null?void 0:re.main,fontSize:"12px",cursor:"pointer",marginLeft:"2px",top:3,right:"12px",position:"absolute",":hover":{color:(Fe=(de=b==null?void 0:b.palette)==null?void 0:de.primary)==null?void 0:Fe.dark},marginRight:"4px"}}}]});const I=(fe=pageData==null?void 0:pageData.schema)!=null?fe:{type:"object",properties:{}};eventGroups=extractEvents(h),i={config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,functionsProvider:n.functionsProvider,serviceHolder:this,eventGroups,formDataHolder:s},await executeRefreshHandler({config:{},componentName:"",store:n.store,dynamicData:n.dynamicData,userValue:n.userValue,service:n.service,serviceHolder:this,eventGroups,formDataHolder:s}),n.store.setSchema(Le=>({...I,...Le,properties:{...I.properties,...Le.properties}})),c.elements.push(notifyUiSchema),n.store.setUiSchema(c)},onCellRenderer:d=>{var h,c,y;if(eventGroups.onCellRenderer){let b={};const I=((h=n.dynamicData)==null?void 0:h.tableButtonPath)||((y=(c=n==null?void 0:n.dynamicData)==null?void 0:c.path)==null?void 0:y.split(".")[0]);for(const T of eventGroups==null?void 0:eventGroups.onCellRenderer[I])i.store.functionParameters=d,b=executeEvents({...i,config:T,componentName:I});return b}return{}},onClick:function(){this.callHandler("onClick")},onMount:function(){this.callHandler("onMount")},onFileDownload:function(){this.callHandler("onDownload")},onFileUpload:function(){this.callHandler("onUpload")},backHandler:function(){n.store.navigate(-1)},onRowMovement:async function(d){const h=[{key:"direction",value:d.rowMovement.direction},{key:"movedRowId",value:d.rowMovement.movedRowId},{key:"targetRowId",value:d.rowMovement.targetRowId||[]}];await this.callExecuteEvents({path:d==null?void 0:d.path},h,"onRowMovement");const c=await this.callExecuteEvents({path:d==null?void 0:d.path},h,"onLoad");return c==null?void 0:c.data},onPaginationChange:async function(d){var y;const h=[{key:"size",value:d.pagination.pageSize},{key:"pageIndex",value:d.pagination.pageIndex},{key:"sorting",value:d.sorting||[]},{key:"filters",value:d.columnFilters||[]},{key:"globalFilter",value:(y=d.globalFilter)!=null?y:""}],c=await this.callExecuteEvents(d,h,"onLoad");return c==null?void 0:c.data},getSelectOptions:async function(d){if(d.serachValue!==""&&d.serachValue!==void 0){const h=[{key:"searchValue",value:d.serachValue},{key:"currentValue",value:d.currentValue}],c=await this.callExecuteEvents(d,h);return c==null?void 0:c.data}},onChange:async function(){if(eventGroups.onChange){const d=Object.keys(eventGroups.onChange);Promise.all(d.map(async h=>{var c,y;if(((c=n.store)==null?void 0:c.formData[h])!==n.store.newData[h]&&((y=n.store)==null?void 0:y.newData[h])!==void 0)for(const b of eventGroups.onChange[h])await executeEvents({...i,config:b,componentName:h})}))}},callExecuteEvents:async function(d,h,c){var b,I;let y;for(const T of(b=eventGroups==null?void 0:eventGroups[c])==null?void 0:b[d.path]){T.body?T.body=[...T.body,...h]:T.body=h;const N=(I=T==null?void 0:T.events)==null?void 0:I.filter(P=>P.Handler!=="mergeFormdata");T.events=N!=null?N:[],y=await executeEvents({...i,config:T,componentName:d.path})}return y},onBack:async function(d){var c,y;const h=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onBack",d),((y=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:y[h])===void 0&&(d==null||d.handleBack())},onNext:async function(d){var c,y;const h=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onNext",d),((y=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:y[h])===void 0&&(d==null||d.handleNext())},onReset:async function(d){var c,y;const h=((c=n.dynamicData)==null?void 0:c.tableButtonPath)||n.dynamicData.path.split(".")[0];await this.callHandler("onReset",d),((y=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:y[h])===void 0&&(d==null||d.handleReset())},callHandler:async function(d,h){var y,b,I;const c=((y=n.dynamicData)==null?void 0:y.tableButtonPath)||n.dynamicData.path.split(".")[0];((b=eventGroups==null?void 0:eventGroups[d])==null?void 0:b[c])!==void 0&&Promise.all((I=eventGroups==null?void 0:eventGroups[d])==null?void 0:I[c].map(T=>{i.store.functionParameters=h,executeEvents({...i,config:T,componentName:c})}))},downloadFile:downloadFile$1,download:doDownload,...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 s=_.cloneDeep(leaderBoard);if(n.elements){const i=n.elements.map((d,h)=>d.type?{...{widget:buildUiSchema(d),accessorKey:d.name,header:d.label||d.name}}:{accessorKey:d.name,header:d.label||d.name});s.elements=i}return s.config.main.label=n.label,n.name&&(s.scope=`#/properties/${n.name}`),n.firstImage&&(s.config.main.firstImage=n.firstImage),n.secondImage&&(s.config.main.secondImage=n.secondImage),n.thirdImage&&(s.config.main.thirdImage=n.thirdImage),n.nameKey&&(s.config.main.nameKey=n.nameKey),n.imageKey&&(s.config.main.imageKey=n.imageKey),n.scoreKey&&(s.config.main.scoreKey=n.scoreKey),n.layout&&(s.config.layout=createLayoutFormat(n.layout)),n.style&&(s.config.style=JSON.parse(n.style)),s};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,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,n.heading&&(i.config.main.heading=n.heading),n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=n.bottomLabel_1),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildProgressBar=(n,s)=>{const i=_.cloneDeep(progressBar);return i.scope=s,n.layout&&(i.config.layout=n.layout),i.config.main.heading=n.label,n.bottomLabel_3&&(i.config.main.bottomLabel_3=n.bottomLabel_3),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.bottomLabel_2&&(i.config.main.bottomLabel_2=n.bottomLabel_2),n.bottomLabel_1&&(i.config.main.bottomLabel_1=n.bottomLabel_1),i},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"BarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},barStyle:{}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"PieGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"LineGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:{xs:12,sm:12,md:12,lg:6},main:{type:"HorizontalBarGraph",legendLabels:null},style:{containerStyle:{},labelStyle:{margin:{}},barStyle:{}}}},buildHorizontalBarGraph=(n,s)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.type=n.graphType,i.scope=s,i.config.main.header=n.heading,n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(n,s)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.heading&&(i.config.main.header=n.heading),n.segments&&(i.config.main.segments=n.segments),n.style){const d=JSON.parse(n.style);d!=null&&d.style&&(i.config.style={...i.config.style,...d.style}),d!=null&&d.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...d.containerStyle})}return n.width&&(i.config.main.width=n.width),n.speedoCaption&&(i.config.main.currentValueText=n.speedoCaption),n.data&&(i.config.main.data=n.data),n.needleColor&&(i.config.style.needleColor=n.needleColor),n.segments&&(i.config.style.segments=n.segments),n.endColor&&(i.config.style.endColor=n.endColor),n.startColor&&(i.config.style.startColor=n.startColor),n.segmentColors&&(i.config.style.segmentColors=n.segmentColors),i},buildPieGraph=(n,s)=>{const i=_.cloneDeep(PieGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.height&&(i.config.style.containerStyle.height=n.height),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),i.scope=s,i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i},buildStackbarGraph=(n,s)=>{var d;const i=_.cloneDeep(BarGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.legendHide&&(i.config.main.legendAvailable=n.legendHide,i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),i.config.main.type=(d=n==null?void 0:n.graphType)!=null?d:"BarGraph",i.config.main.header=n.heading,n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.barStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),i.scope=s,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{}}};const RunnerBoyProgressbar=(n,s)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(n,s)=>{const i=_.cloneDeep(Tabsection);return i.scope=s,n.lazyLoad&&(i.config.main.lazyLoad=n.lazyLoad==="YES"),n.orientation&&(i.config.main.orientation=n.orientation==="YES"?"vertical":"horizontal"),n.sectionLabels&&(i.config.main.tabLabels=n.sectionLabels.map(d=>d.label)),i.config.main.id=n.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{rowSpacing:3,divider:!0,label:"Default Label"},defaultStyle:!0},elements:[]};const buildWrapperSection=(n,s)=>{const i=_.cloneDeep(WrapperSection);return i.scope=s,i.config.main.label=n.label,i.config.main.divider=n.divider==="YES",i.config.main.isAccordion=n.isAccordion!=="No",n.defaultStyle&&(i.config.defaultStyle=n.defaultStyle==="YES"),n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:""},style:{}}};const buildTextField=(n,s)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.InputFormatingAndMasking&&(i.config.main.formatStrArray=n.InputFormatingAndMasking.map(d=>d.formatElement)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(n,s)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=n.label,n.value&&(i.config.main.options=n.value),n.freeSolo&&(i.config.main.freeSolo=n.freeSolo==="YES"),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.scope=s,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:3,main:{name:"Compare",variant:"contained",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(n,s)=>{const i=_.cloneDeep(Button);return n.buttonType&&(i.options.widget=n.buttonType==="IconButton"?"IconButton":"Button",n.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=n.iconName:i.config.main.icon=n.iconName),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.tooltipMessage&&(i.config.main.tooltipMessage=n.tooltipMessage),n.defaultStyle&&(n.buttonType==="IconButton"?i.config.main.styleDefault=n.defaultStyle==="true":i.config.main.enableDefaultStyle=n.defaultStyle!=="true"),i.scope=s,n.style&&(i.config.style=JSON.parse(n.style)),n.size&&(i.config.main.size=n.size),n.color&&(i.config.main.color=n.color),n.label&&(i.config.main.name=n.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{onMount:"onMount",enableExpandAll:!0,allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(n,s)=>{const i=_.cloneDeep(Table);return i.scope=s,n.style&&(i.config.style=JSON.parse(n.style)),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),n.enableRowMovement&&(i.config.main.enableRowMovement=n.enableRowMovement==="YES"),n.enableExpanding&&(i.config.main.enableExpanding=n.enableExpanding==="YES"),n.enableExpandAll&&(i.config.main.enableExpandAll=n.enableExpandAll==="YES"),n.paginateExpandedRows&&(i.config.main.paginateExpandedRows=n.paginateExpandedRows==="YES"),n.treeStructure&&(i.config.main.treeStructure=n.treeStructure==="YES"?"flatTreeMap":!1),n.SelectionAvailable&&(i.config.main.Selection=n.SelectionAvailable==="YES"),n.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=n.ColumnResizingAvailable!=="YES"),n.DragAvailable&&(i.config.main.enableDrag=n.DragAvailable==="YES"),n.downloadAllData&&(i.config.main.downloadAllData=n.downloadAllData==="YES"),n.disableGlobalSearch&&(i.config.main.disableGlobalSearch=n.disableGlobalSearch==="YES"),n.disableColumnFilter&&(i.config.main.disableColumnFilter=n.disableColumnFilter==="YES"),n.disableSorting&&(i.config.main.disableSorting=n.disableSorting==="YES"),n.disableEditColumn&&(i.config.main.disableEditColumn=n.disableEditColumn==="YES"),n.disableFullScreenToggle&&(i.config.main.disableFullScreenToggle=n.disableFullScreenToggle==="YES"),n.disableDensityToggle&&(i.config.main.disableDensityToggle=n.disableDensityToggle==="YES"),n.disableDownloadFile&&(i.config.main.disableDownloadFile=n.disableDownloadFile==="YES"),n.disablePagination&&(i.config.main.disablePagination=n.disablePagination==="YES"),n.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=n.Table_Download_Keys_Name.map(d=>d.KeyName)),n.selectKey&&(i.config.main.selectKey=n.selectKey),i},Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}},buildLabel=(n,s)=>{const i=_.cloneDeep(Box);return i.scope=s,i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},uploadFile={type:"Control",scope:"#/properties/attachment",config:{main:{label:"AttachmentFile",onClick:"onClick",required:!0,errorMessage:"Attachment File is not uploaded"},style:{backgroundColor:"none"},layout:{xs:6,sm:6,md:4,lg:4}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{xs:12,sm:6,md:4,lg:4}},options:{widget:"DownloadFile"}},buildUploadFile=(n,s)=>{const i=_.cloneDeep(uploadFile);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),i.config.main.errorMessage=n.errorMessage,i},buildDownloadFile=(n,s)=>{const i=_.cloneDeep(downloadFile);return i.scope=s,n.layout&&(i.config.layout=n.layout),n.style&&(i.config.style=n.style),n.required&&(i.config.main.required=!0),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.errorMessage&&(i.config.main.errorMessage=n.errorMessage),i};function Card(n){return{type:"WrapperLayout",config:{main:{},wrapperStyle:{position:"relative",top:"50%",transform:"translateY(-50%)"},componentsBoxStyle:{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.1)",flexDirection:"row",flexWrap:"nowrap",width:"100% !important",background:"transparent",border:`1.5px solid ${n.palette.primary.light}`,borderRadius:"8px",padding:"0px 4px",height:"100%",alignItems:"center",marginLeft:"0px","&: hover":{background:`${n.palette.primary.main}`,border:"1.5px solid black","& p":{color:"white"}}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"HorizontalLayout",config:{layout:8},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent"},componentsBoxStyle:{flexDirection:"column",flexWrap:"nowrap",width:"100%",height:"inherit",background:"transparent",borderRadius:"0px"},layout:12},elements:[{type:"WrapperLayout",config:{main:{columnSpacing:0,gap:0},wrapperStyle:{background:"transparent"},componentsBoxStyle:{flexDirection:"row",flexWrap:"nowrap",width:"100%",height:"0",background:"transparent",borderRadius:"0px",marginLeft:"-10px",marginTop:"-8px",justifyContent:"start",position:"relative"},layout:12},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:""},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",height:0}},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"5000.00"},style:{color:"black",display:"flex",fontSize:{xs:"24px",md:"28px"},fontWeight:"bold",background:"inherit",justifyContent:"flex-start",width:"auto",margin:"-8px",position:"absolute",left:"8px"}},options:{widget:"Box"}}]},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{color:"black",fontSize:"16px",justifyContent:"center",textWrap:"wrap",background:"inherit",width:"calc(100%+8px)",margin:"-8px",marginTop:{xs:"0px",md:"12px"},lineHeight:"1"},layout:12},options:{widget:"Box"}}]}]},{type:"Control",scope:"#/properties/programType",config:{main:{url:"https://www.svgrepo.com/show/500606/loading.svg"},style:{containerStyle:{height:"100%",display:"flex",justifyContent:"end"},imageStyle:{width:"unset",fontSize:"none",padding:"4px",margin:"0px 0px 0px 8px",height:"64px"}},layout:4},options:{widget:"Image"}}]}}const buildCard=(config,componentScope,store)=>{const card=_.cloneDeep(Card(store.theme.myTheme));return config.style&&(card.config.wrapperStyle=JSON.parse(config.style)),card.elements[0].elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/value`,card.elements[1].scope=`#/properties/${config.name}/properties/url`,card.elements[0].elements[0].elements[1].scope=`#/properties/${config.name}/properties/description`,config.layout&&(card.config.layout=createLayoutFormat(config.layout)),config!=null&&config.titleIcon&&(card.elements[0].elements[0].elements[0].elements[0].config.main.heading=eval(`'\\${config.titleIcon}'`),card.elements[0].elements[0].elements[0].elements[1].config.style.left="24px"),config.label&&(card.elements[0].elements[0].elements[0].elements[1].config.main.heading=config.label),config.url&&(card.elements[1].config.main.url=config.url),config.description&&(card.elements[0].elements[0].elements[1].config.main.heading=config.description),card};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"",type:"date"}}};const DateTime={type:"Control",scope:"#/properties/date",options:{widget:"DateTimeInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"DateTime",type:"date"}}},buildDate=(n,s)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},buildDateTime=(n,s)=>{const i=_.cloneDeep(DateTime);return i.config.main.label=n.label,i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:12,sm:6,md:6,lg:6},main:{}}};const buildRankCard=(n,s)=>{const i=_.cloneDeep(RankCard);return i.scope=s,n.rank&&(i.config.main.rank=`${n.rank}`),n.height&&(i.config.main.height=`${n.height}px`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var RollAndDice={type:"Control",scope:"#/properties/path",options:{widget:"RollAndDice"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRollAndDice=(n,s)=>{const i=_.cloneDeep(RollAndDice);return n.name&&(i.scope=s),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{},style:{}}};const buildTimer=(n,s)=>{const i=_.cloneDeep(Timer);return i.scope=s,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{label:"",type:"text",multiple:!0,variant:"standard",options:[]}}};const buildMultiSelect=(n,s)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=s,n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.value&&(i.config.main.options=n.value),n.lazyLoading&&(i.config.main.lazyLoading=n.lazyLoading==="YES"),i},buildBasicUiSchema=n=>({type:"HorizontalLayout",pageName:n.name,name:n.name,accessorKey:n.name,heading:n.label||n.name,elements:[]}),TextArea={type:"Control",scope:"#/properties/textarea",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(n,s)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),n.placeholder&&(i.config.main.placeholder=n.placeholder),n.enableCodeEditor&&(i.config.main.enableCodeEditor=n.enableCodeEditor==="YES"),n.codeEditorLanguage&&(i.config.main.codeEditorLanguage=n.codeEditorLanguage),i.scope=s,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(n,s)=>{const i=_.cloneDeep(cardSlider);return n.name&&(i.scope=s),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(n,s)=>{const i=_.cloneDeep(Checkbox);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},buildLineGraph=(n,s)=>{const i=_.cloneDeep(LineGraph);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.header=n.heading,n.height&&(i.config.style.containerStyle.height=n.height),n.leftMargin&&(i.config.style.labelStyle.margin={left:n.leftMargin}),n.bottomLabel&&(i.config.main.bottomLabel=n.bottomLabel),n.yAxisValue&&(i.config.main.yAxisValue=n.yAxisValue),n.xAxisValue&&(i.config.main.xAxisValue=n.xAxisValue),n.leftLabel&&(i.config.main.leftLabel=n.leftLabel),n.legendHide&&(i.config.main.legendAvailable=n.legendHide!=="YES"),n.bottomAxisAngle&&(i.config.main.bottomAxisAngle=n.bottomAxisAngle==="YES"),n.legendLabels&&(i.config.main.legendLabels=flatObjectValueInArray(n.legendLabels)),n.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(n.pieArcColors)),i.scope=s,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(n,s)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.sectionLabels&&(i.config.main.options=n.sectionLabels.map(d=>d.label||d.Options)),n.style&&(i.config.style=JSON.parse(n.style)),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:0,sm:4,md:4,lg:4},main:{},style:{}}};const buildEmptyBox=(n,s)=>{const i=_.cloneDeep(emptyBox);return n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(n,s)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=s,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(n,s)=>{const i=_.cloneDeep(TextField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{layout:{xs:12,sm:6,md:4,lg:4},main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(n,s)=>{const i=_.cloneDeep(PanField);return i.config.main.label=n.label,n.style&&(i.config.style=JSON.parse(n.style)),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),i.config.main.errorMessage=`${n.name} is empty or invalid`,i.scope=s,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:{xs:6,sm:6,md:4,lg:4},main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(n,s)=>{const i=_.cloneDeep(FileInput);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},Stepper={type:"Control",scope:"#/properties/Stepper",options:{widget:"Stepper"},config:{main:{steps:[{label:"First"},{label:"Second"},{label:"Third"}],resetButton:!1,resetText:"Reset",orientation:"vertical"}},elements:[]},buildStepper=(n,s)=>{const i=_.cloneDeep(Stepper);return i.scope=s,i.config.main.resetButton=n.resetButton==="YES",n.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=n.defaultButtonAvailable==="YES"),i.config.main.resetText=n.resetText||"ResetData",i.config.main.completeText=n.completeText||"Complete Text",i.config.main.orientation=n.orientation||"horizontal",n.sectionLabels&&(i.config.main.steps=n.sectionLabels.map((d,h)=>({label:d.label,id:h}))),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(i.config.style=JSON.parse(n.style)),i},PopUP={type:"Control",scope:"#/properties/text",options:{widget:"PopUp"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{label:"PopUp",fullScreen:!1,fullWidth:!1,maxWidth:!1,alignItems:!1,spacing:2},style:{}}},buildPopUp=(n,s)=>{const i=_.cloneDeep(PopUP);return i.scope=s,i.config.main.title=n.label,i.config.main.fullScreen=n.fullScreen==="YES",i.config.main.fullWidth=n.fullWidth==="YES",i.config.main.maxWidth=n.maxWidth||!1,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.style&&(PopUP.config.style=JSON.parse(n.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(n,s)=>{const i=_.cloneDeep(dataGrid);return i.scope=s,n.elevation&&(i.config.main.elevation=+n.elevation),i.config.main.divider=n.divider!=="NO",n.height&&(i.config.main.height=`${n.height}px`),n.justifyContent&&(i.config.main.justifyContent=n.justifyContent),n.label&&(i.config.main.label=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.cardLayout&&(i.config.cardLayout=createLayoutFormat(n.cardLayout)),n.style&&(i.config.style=JSON.parse(n.style)),i},InputSlider={type:"Control",scope:"#/properties/inputSlider",options:{widget:"InputSlider"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{limitToMax:!1,max:1e4,step:1e3,min:0,label:"Slider"}}},buildInputSlider=(n,s)=>{const i=_.cloneDeep(InputSlider);return i.scope=s,i.config.main.label=n.label,n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.limitToMax&&(i.config.main.limitToMax=n.limitToMax==="YES"),n.max&&(i.config.main.max=n.max),n.step&&(i.config.main.step=n.step),n.min&&(i.config.main.min=n.min),n.style&&(i.config.main.defaultStyle=JSON.parse(n.style)),i},TreeMap={type:"Control",scope:"#/properties/TreeMap2",config:{main:{layout:"cartsian",orientation:"vertical",header:"Territory Hierarchy",linkType:"step",graphHeight:"500px"},style:{BoxStyle:{borderRadius:"5px"}}},options:{widget:"TreeMap"},elements:[]},buildTreeMap=(n,s)=>{const i=_.cloneDeep(TreeMap);return i.scope=s,n.label&&(i.config.main.header=n.label),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.orientation&&(i.config.main.orientation=n.orientation),n.linkType&&(i.config.main.linkType=n.linkType),n.graphHeight&&(i.config.main.graphHeight=n.graphHeight),n.graphWidth&&(i.config.main.graphWidth=n.graphWidth),n.graphZoomHeight&&(i.config.main.graphZoomHeight=n.graphZoomHeight),n.graphZoomWidth&&(i.config.main.graphZoomWidth=n.graphZoomWidth),n.style&&(i.config.style=JSON.parse(n.style)),i};var Thought={type:"Control",scope:"#/properties/path",options:{widget:"Thought"},config:{layout:{xs:11.5,sm:11.5,md:8,lg:8},main:{}}};const buildThoughtOfTheDay=(n,s)=>{const i=_.cloneDeep(Thought);return i.scope=s,n.thought&&(i.config.main.thought=`${n.thought}`),n.layout&&(i.config.layout=createLayoutFormat(n.layout)),n.label&&(i.config.main.label=n.label),n.style&&(i.config.style=JSON.parse(n.style)),i};var pdfViewer={type:"Control",scope:"#/properties/pdfviewer",options:{widget:"PdfViewer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{title:"PDF"}}};const buildPdfViewer=n=>{const s=_.cloneDeep(pdfViewer);return s.config.main.label=n.label,n.name&&(s.scope=`#/properties/${n.name}`),n.layout&&(s.config.layout=createLayoutFormat(n.layout)),n.label&&(s.config.main.title=n.label),n.style&&(s.config.style=JSON.parse(n.style)),s};exports.schema={type:"object",properties:{},required:[]};function buildRule(n,s,i){var d,h,c,y,b,I,T,N,P,G;i?(c=(h=(d=exports.schema.properties)==null?void 0:d[s])==null?void 0:h.items)!=null&&c.properties&&((T=(I=(b=(y=exports.schema.properties)==null?void 0:y[s])==null?void 0:b.items)==null?void 0:I.properties)!=null&&T[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"&&((N=n.value)==null?void 0:N.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(D=>({const:D.value,title:D.label}))}:n.type==="MultipleSelect"&&((P=n.value)==null?void 0:P.length)>0&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(D=>({const:D.value,title:D.label}))}}))):(n.type==="Select"||n.type==="MultipleSelect")&&((G=n.value)==null?void 0:G.length)>0&&(n.type==="Select"?exports.schema.properties[n.name]={oneOf:n.value.map(D=>({const:D.value,title:D.label}))}:n.type==="MultipleSelect"&&(exports.schema.properties[n.name]={items:{oneOf:n.value.map(D=>({const:D.value,title:D.label}))}})),n.validation&&n.validation.forEach(D=>{var Y,Z,ee,ae,re,de,Fe,fe,Le,Be,at,Tt;s?(ee=(Z=(Y=exports.schema.properties)==null?void 0:Y[s])==null?void 0:Z.items)!=null&&ee.properties&&((Fe=(de=(re=(ae=exports.schema.properties)==null?void 0:ae[s])==null?void 0:re.items)==null?void 0:de.properties)!=null&&Fe[n.name]||(exports.schema.properties[s].items.properties[n.name]={},n.type==="Select"||((fe=n.value)==null?void 0:fe.length)>0?exports.schema.properties[s].items.properties[n.name]={oneOf:n.value.map(ht=>({const:ht.value,title:ht.label}))}:(n.type==="MultipleSelect"||((Le=n.value)==null?void 0:Le.length)>0)&&(exports.schema.properties[s].items.properties[n.name]={items:{oneOf:n.value.map(ht=>({const:ht.value,title:ht.label}))}})),D.validationType==="required"?(Tt=(at=(Be=exports.schema.properties)==null?void 0:Be[s])==null?void 0:at.items)==null||Tt.required.push(n.name):(exports.schema.properties[s].items.properties[n.name].type="string",exports.schema.properties[s].items.properties[n.name][D.validationType]=isNaN(D.validationValue)?D.validationValue:Number(D.validationValue))):(exports.schema.properties[n.name]||(exports.schema.properties[n.name]={}),D.validationType==="required"?exports.schema.required.push(n.name):(exports.schema.properties[n.name].type="string",exports.schema.properties[n.name][D.validationType]=isNaN(D.validationValue)?D.validationValue:Number(D.validationValue)))})}const buildSchema=(n,s,i)=>(buildRule(n,s,i),n!=null&&n.elements&&(n.type=="Table"||n.type=="Array"?(exports.schema.properties[n.name]||(exports.schema.properties[n.name]={type:"array",items:{type:"object",properties:{},required:[]}}),n.elements.map((d,h)=>{buildSchema(d,n.name,n.type==="Array")})):n.elements.map((d,h)=>{buildSchema(d)})),exports.schema),buildUiSchema=(n,s)=>{let i={};const d=`#/properties/${n.name}`;switch(n.type){case"TreeMap":i=buildTreeMap(n,d);break;case"DateTime":i=buildDateTime(n,d);break;case"InputSlider":i=buildInputSlider(n,d);break;case"DataGrid":i=buildDataGrid(n,d);break;case"Stepper":i=buildStepper(n,d);break;case"PopUp":i=buildPopUp(n,d);break;case"FileInput":i=buildFileInput(n,d);break;case"AadharcardText":i=buildAdhaarField(n,d);break;case"PanCardText":i=buildPanField(n,d);break;case"TabSection":i=buildTabSection(n,d);break;case"RunnerBoyProgressBar":i=RunnerBoyProgressbar(n,d);break;case"WrapperSection":i=buildWrapperSection(n,d);break;case"Text":i=buildTextField(n,d);break;case"TextArea":i=buildTextArea(n,d);break;case"Date":i=buildDate(n,d);break;case"Select":i=buildSelect(n,d);break;case"Radio":i=buildRadio(n,d);break;case"Button":i=buildButton(n,d);break;case"Table":i=buildTable(n,d);break;case"Array":i=buildArray(n,d);break;case"Box":i=buildLabel(n,d);break;case"CheckBox":i=buildCheckbox(n,d);break;case"UploadFile":i=buildUploadFile(n,d);break;case"DownloadFile":i=buildDownloadFile(n,d);break;case"EmptyBox":i=buildEmptyBox(n);break;case"card":i=buildCard(n,d,s);break;case"Graph":switch(n.graphType){case"BarGraph":case"StackBarGraph":i=buildStackbarGraph(n,d);break;case"LineGraph":i=buildLineGraph(n,d);break;case"PieGraph":i=buildPieGraph(n,d);break;case"HorizontalBarGraph":case"HorizontalStackBarGraph":i=buildHorizontalBarGraph(n,d);break;default:i=buildStackbarGraph(n,d);break}break;case"ProgressBar":i=buildProgressBar(n,d);break;case"SpeedoMeter":i=buildSpeedoMeter(n,d);break;case"ProgressBarCard":i=buildProgressBarCard(n,d);break;case"RankCard":i=buildRankCard(n,d);break;case"Rank":i=buildRollAndDice(n,d);break;case"Slider":i=buildSlider(n,d);break;case"Timer":i=buildTimer(n,d);break;case"ColumnGroup":i={accessorKey:n.name,header:n.label||n.name,elements:[]};break;case"MultipleSelect":i=buildMultiSelect(n,d);break;case"LeaderBoard":i=buildLeaderBoard(n);break;case"Thought":i=buildThoughtOfTheDay(n,d);break;case"PdfViewer":i=buildPdfViewer(n);break;default:exports.schema={type:"object",properties:{},required:[]},i=buildBasicUiSchema(n)}if(n!=null&&n.elements){if((n==null?void 0:n.type)==="LeaderBoard")return i;if(n.type=="ColumnGroup"){const h={};n.sizeHolder&&n.sizeHolder.map((c,y)=>{h[c.keyName]=c.value}),i.elements=n.elements.map((c,y)=>({accessorKey:c.name,header:c.label||c.name,size:h[c.name]||180,type:c.columnFormat,elements:c.type=="ColumnGroup"?c.elements.map(b=>buildUiSchema(b,s)):[]}))}else if(n.type=="Table"){const h={};n.sizeHolder&&n.sizeHolder.map((c,y)=>{h[c.keyName]=c.value}),i.elements=n.elements.map((c,y)=>c.type?{accessorKey:c.name,header:c.label||c.name,size:h[c.name]||180,type:c.columnFormat,widget:c.type!="ColumnGroup"?buildUiSchema(c,s):void 0,elements:c.type=="ColumnGroup"?c.elements.map(b=>buildUiSchema(b,s)):[],columnFilterModeOptions:c.filteringOptions,enableColumnFilter:c.enableFilter==="Yes"}:{accessorKey:c.name,type:c.columnFormat,header:c.label||c.name,size:h[c.name]||180,columnFilterModeOptions:c.filteringOptions,enableColumnFilter:c.enableFilter==="Yes"})}else n.type=="Array"?i.options.detail.elements=n.elements.map((h,c)=>buildUiSchema(h,s)):i.elements=n.elements.map((h,c)=>buildUiSchema(h,s))}return i};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromSessionStorage=clearFromSessionStorage,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
|