impaktapps-ui-builder 0.0.393-alpha.4 → 0.0.393-alpha.6

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(r,u){(function(){var i,h="4.17.21",g=200,S="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",L="Invalid `variable` option passed into `_.template`",P="__lodash_hash_undefined__",Q=500,nt="__lodash_placeholder__",ge=1,Gt=2,U=4,Ge=1,gt=2,ae=1,Oe=2,$t=4,he=8,$e=16,me=32,Ke=64,we=128,rt=256,It=512,ht=30,ll="...",sl=800,ul=16,Fi=1,pl=2,cl=3,mt=1/0,it=9007199254740991,fl=17976931348623157e292,gn=0/0,Ne=4294967295,dl=Ne-1,gl=Ne>>>1,hl=[["ary",we],["bind",ae],["bindKey",Oe],["curry",he],["curryRight",$e],["flip",It],["partial",me],["partialRight",Ke],["rearg",rt]],At="[object Arguments]",hn="[object Array]",ml="[object AsyncFunction]",Kt="[object Boolean]",qt="[object Date]",yl="[object DOMException]",mn="[object Error]",yn="[object Function]",Ti="[object GeneratorFunction]",Re="[object Map]",Vt="[object Number]",vl="[object Null]",qe="[object Object]",Bi="[object Promise]",bl="[object Proxy]",Yt="[object RegExp]",De="[object Set]",Xt="[object String]",vn="[object Symbol]",xl="[object Undefined]",Jt="[object WeakMap]",_l="[object WeakSet]",Zt="[object ArrayBuffer]",Ft="[object DataView]",lr="[object Float32Array]",sr="[object Float64Array]",ur="[object Int8Array]",pr="[object Int16Array]",cr="[object Int32Array]",fr="[object Uint8Array]",dr="[object Uint8ClampedArray]",gr="[object Uint16Array]",hr="[object Uint32Array]",Sl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Cl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ei=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Ll=RegExp(Ei.source),Il=RegExp(Ri.source),Al=/<%-([\s\S]+?)%>/g,Fl=/<%([\s\S]+?)%>/g,Di=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bl=/^\w*$/,El=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(mr.source),yr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Hl=/,? & /,Ml=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Nl=/\\(\\)?/g,Wl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pi=/\w*$/,zl=/^[-+]0x[0-9a-f]+$/i,Ul=/^0b[01]+$/i,Gl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,ql=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,xn="\\ud800-\\udfff",Yl="\\u0300-\\u036f",Xl="\\ufe20-\\ufe2f",Jl="\\u20d0-\\u20ff",ki=Yl+Xl+Jl,Hi="\\u2700-\\u27bf",Mi="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",Oi="A-Z\\xc0-\\xd6\\xd8-\\xde",Ni="\\ufe0e\\ufe0f",Wi=Zl+Ql+jl+es,vr="['\u2019]",ts="["+xn+"]",zi="["+Wi+"]",_n="["+ki+"]",Ui="\\d+",ns="["+Hi+"]",Gi="["+Mi+"]",$i="[^"+xn+Wi+Ui+Hi+Mi+Oi+"]",br="\\ud83c[\\udffb-\\udfff]",rs="(?:"+_n+"|"+br+")",Ki="[^"+xn+"]",xr="(?:\\ud83c[\\udde6-\\uddff]){2}",_r="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Oi+"]",qi="\\u200d",Vi="(?:"+Gi+"|"+$i+")",is="(?:"+Tt+"|"+$i+")",Yi="(?:"+vr+"(?:d|ll|m|re|s|t|ve))?",Xi="(?:"+vr+"(?:D|LL|M|RE|S|T|VE))?",Ji=rs+"?",Zi="["+Ni+"]?",os="(?:"+qi+"(?:"+[Ki,xr,_r].join("|")+")"+Zi+Ji+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Zi+Ji+os,ss="(?:"+[ns,xr,_r].join("|")+")"+Qi,us="(?:"+[Ki+_n+"?",_n,xr,_r,ts].join("|")+")",ps=RegExp(vr,"g"),cs=RegExp(_n,"g"),Sr=RegExp(br+"(?="+br+")|"+us+Qi,"g"),fs=RegExp([Tt+"?"+Gi+"+"+Yi+"(?="+[zi,Tt,"$"].join("|")+")",is+"+"+Xi+"(?="+[zi,Tt+Vi,"$"].join("|")+")",Tt+"?"+Vi+"+"+Yi,Tt+"+"+Xi,ls,as,Ui,ss].join("|"),"g"),ds=RegExp("["+qi+xn+ki+Ni+"]"),gs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hs=["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"],ms=-1,q={};q[lr]=q[sr]=q[ur]=q[pr]=q[cr]=q[fr]=q[dr]=q[gr]=q[hr]=!0,q[At]=q[hn]=q[Zt]=q[Kt]=q[Ft]=q[qt]=q[mn]=q[yn]=q[Re]=q[Vt]=q[qe]=q[Yt]=q[De]=q[Xt]=q[Jt]=!1;var K={};K[At]=K[hn]=K[Zt]=K[Ft]=K[Kt]=K[qt]=K[lr]=K[sr]=K[ur]=K[pr]=K[cr]=K[Re]=K[Vt]=K[qe]=K[Yt]=K[De]=K[Xt]=K[vn]=K[fr]=K[dr]=K[gr]=K[hr]=!0,K[mn]=K[yn]=K[Jt]=!1;var ys={\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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_s=parseFloat,Ss=parseInt,ji=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ne=ji||ws||Function("return this")(),wr=u&&!u.nodeType&&u,yt=wr&&!0&&r&&!r.nodeType&&r,eo=yt&&yt.exports===wr,Cr=eo&&ji.process,Ce=function(){try{var f=yt&&yt.require&&yt.require("util").types;return f||Cr&&Cr.binding&&Cr.binding("util")}catch{}}(),to=Ce&&Ce.isArrayBuffer,no=Ce&&Ce.isDate,ro=Ce&&Ce.isMap,io=Ce&&Ce.isRegExp,oo=Ce&&Ce.isSet,ao=Ce&&Ce.isTypedArray;function ye(f,y,m){switch(m.length){case 0:return f.call(y);case 1:return f.call(y,m[0]);case 2:return f.call(y,m[0],m[1]);case 3:return f.call(y,m[0],m[1],m[2])}return f.apply(y,m)}function Cs(f,y,m,I){for(var E=-1,W=f==null?0:f.length;++E<W;){var j=f[E];y(I,j,m(j),f)}return I}function Le(f,y){for(var m=-1,I=f==null?0:f.length;++m<I&&y(f[m],m,f)!==!1;);return f}function Ls(f,y){for(var m=f==null?0:f.length;m--&&y(f[m],m,f)!==!1;);return f}function lo(f,y){for(var m=-1,I=f==null?0:f.length;++m<I;)if(!y(f[m],m,f))return!1;return!0}function ot(f,y){for(var m=-1,I=f==null?0:f.length,E=0,W=[];++m<I;){var j=f[m];y(j,m,f)&&(W[E++]=j)}return W}function Sn(f,y){var m=f==null?0:f.length;return!!m&&Bt(f,y,0)>-1}function Lr(f,y,m){for(var I=-1,E=f==null?0:f.length;++I<E;)if(m(y,f[I]))return!0;return!1}function V(f,y){for(var m=-1,I=f==null?0:f.length,E=Array(I);++m<I;)E[m]=y(f[m],m,f);return E}function at(f,y){for(var m=-1,I=y.length,E=f.length;++m<I;)f[E+m]=y[m];return f}function Ir(f,y,m,I){var E=-1,W=f==null?0:f.length;for(I&&W&&(m=f[++E]);++E<W;)m=y(m,f[E],E,f);return m}function Is(f,y,m,I){var E=f==null?0:f.length;for(I&&E&&(m=f[--E]);E--;)m=y(m,f[E],E,f);return m}function Ar(f,y){for(var m=-1,I=f==null?0:f.length;++m<I;)if(y(f[m],m,f))return!0;return!1}var As=Fr("length");function Fs(f){return f.split("")}function Ts(f){return f.match(Ml)||[]}function so(f,y,m){var I;return m(f,function(E,W,j){if(y(E,W,j))return I=W,!1}),I}function wn(f,y,m,I){for(var E=f.length,W=m+(I?1:-1);I?W--:++W<E;)if(y(f[W],W,f))return W;return-1}function Bt(f,y,m){return y===y?zs(f,y,m):wn(f,uo,m)}function Bs(f,y,m,I){for(var E=m-1,W=f.length;++E<W;)if(I(f[E],y))return E;return-1}function uo(f){return f!==f}function po(f,y){var m=f==null?0:f.length;return m?Br(f,y)/m:gn}function Fr(f){return function(y){return y==null?i:y[f]}}function Tr(f){return function(y){return f==null?i:f[y]}}function co(f,y,m,I,E){return E(f,function(W,j,$){m=I?(I=!1,W):y(m,W,j,$)}),m}function Es(f,y){var m=f.length;for(f.sort(y);m--;)f[m]=f[m].value;return f}function Br(f,y){for(var m,I=-1,E=f.length;++I<E;){var W=y(f[I]);W!==i&&(m=m===i?W:m+W)}return m}function Er(f,y){for(var m=-1,I=Array(f);++m<f;)I[m]=y(m);return I}function Rs(f,y){return V(y,function(m){return[m,f[m]]})}function fo(f){return f&&f.slice(0,yo(f)+1).replace(yr,"")}function ve(f){return function(y){return f(y)}}function Rr(f,y){return V(y,function(m){return f[m]})}function Qt(f,y){return f.has(y)}function go(f,y){for(var m=-1,I=f.length;++m<I&&Bt(y,f[m],0)>-1;);return m}function ho(f,y){for(var m=f.length;m--&&Bt(y,f[m],0)>-1;);return m}function Ds(f,y){for(var m=f.length,I=0;m--;)f[m]===y&&++I;return I}var Ps=Tr(ys),ks=Tr(vs);function Hs(f){return"\\"+xs[f]}function Ms(f,y){return f==null?i:f[y]}function Et(f){return ds.test(f)}function Os(f){return gs.test(f)}function Ns(f){for(var y,m=[];!(y=f.next()).done;)m.push(y.value);return m}function Dr(f){var y=-1,m=Array(f.size);return f.forEach(function(I,E){m[++y]=[E,I]}),m}function mo(f,y){return function(m){return f(y(m))}}function lt(f,y){for(var m=-1,I=f.length,E=0,W=[];++m<I;){var j=f[m];(j===y||j===nt)&&(f[m]=nt,W[E++]=m)}return W}function Cn(f){var y=-1,m=Array(f.size);return f.forEach(function(I){m[++y]=I}),m}function Ws(f){var y=-1,m=Array(f.size);return f.forEach(function(I){m[++y]=[I,I]}),m}function zs(f,y,m){for(var I=m-1,E=f.length;++I<E;)if(f[I]===y)return I;return-1}function Us(f,y,m){for(var I=m+1;I--;)if(f[I]===y)return I;return I}function Rt(f){return Et(f)?$s(f):As(f)}function Pe(f){return Et(f)?Ks(f):Fs(f)}function yo(f){for(var y=f.length;y--&&Dl.test(f.charAt(y)););return y}var Gs=Tr(bs);function $s(f){for(var y=Sr.lastIndex=0;Sr.test(f);)++y;return y}function Ks(f){return f.match(Sr)||[]}function qs(f){return f.match(fs)||[]}var Vs=function f(y){y=y==null?ne:Dt.defaults(ne.Object(),y,Dt.pick(ne,hs));var m=y.Array,I=y.Date,E=y.Error,W=y.Function,j=y.Math,$=y.Object,Pr=y.RegExp,Ys=y.String,Ie=y.TypeError,Ln=m.prototype,Xs=W.prototype,Pt=$.prototype,In=y["__core-js_shared__"],An=Xs.toString,G=Pt.hasOwnProperty,Js=0,vo=function(){var e=/[^.]+$/.exec(In&&In.keys&&In.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Fn=Pt.toString,Zs=An.call($),Qs=ne._,js=Pr("^"+An.call(G).replace(mr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Tn=eo?y.Buffer:i,st=y.Symbol,Bn=y.Uint8Array,bo=Tn?Tn.allocUnsafe:i,En=mo($.getPrototypeOf,$),xo=$.create,_o=Pt.propertyIsEnumerable,Rn=Ln.splice,So=st?st.isConcatSpreadable:i,jt=st?st.iterator:i,vt=st?st.toStringTag:i,Dn=function(){try{var e=wt($,"defineProperty");return e({},"",{}),e}catch{}}(),eu=y.clearTimeout!==ne.clearTimeout&&y.clearTimeout,tu=I&&I.now!==ne.Date.now&&I.now,nu=y.setTimeout!==ne.setTimeout&&y.setTimeout,Pn=j.ceil,kn=j.floor,kr=$.getOwnPropertySymbols,ru=Tn?Tn.isBuffer:i,wo=y.isFinite,iu=Ln.join,ou=mo($.keys,$),ee=j.max,ie=j.min,au=I.now,lu=y.parseInt,Co=j.random,su=Ln.reverse,Hr=wt(y,"DataView"),en=wt(y,"Map"),Mr=wt(y,"Promise"),kt=wt(y,"Set"),tn=wt(y,"WeakMap"),nn=wt($,"create"),Hn=tn&&new tn,Ht={},uu=Ct(Hr),pu=Ct(en),cu=Ct(Mr),fu=Ct(kt),du=Ct(tn),Mn=st?st.prototype:i,rn=Mn?Mn.valueOf:i,Lo=Mn?Mn.toString:i;function l(e){if(X(e)&&!R(e)&&!(e instanceof O)){if(e instanceof Ae)return e;if(G.call(e,"__wrapped__"))return Ia(e)}return new Ae(e)}var Mt=function(){function e(){}return function(t){if(!Y(t))return{};if(xo)return xo(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function On(){}function Ae(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Al,evaluate:Fl,interpolate:Di,variable:"",imports:{_:l}},l.prototype=On.prototype,l.prototype.constructor=l,Ae.prototype=Mt(On.prototype),Ae.prototype.constructor=Ae;function O(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ne,this.__views__=[]}function gu(){var e=new O(this.__wrapped__);return e.__actions__=pe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=pe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=pe(this.__views__),e}function hu(){if(this.__filtered__){var e=new O(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function mu(){var e=this.__wrapped__.value(),t=this.__dir__,n=R(e),o=t<0,a=n?e.length:0,s=Fp(0,a,this.__views__),p=s.start,c=s.end,d=c-p,b=o?c:p-1,x=this.__iteratees__,w=x.length,C=0,A=ie(d,this.__takeCount__);if(!n||!o&&a==d&&A==d)return Xo(e,this.__actions__);var T=[];e:for(;d--&&C<A;){b+=t;for(var k=-1,B=e[b];++k<w;){var M=x[k],N=M.iteratee,_e=M.type,ue=N(B);if(_e==pl)B=ue;else if(!ue){if(_e==Fi)continue e;break e}}T[C++]=B}return T}O.prototype=Mt(On.prototype),O.prototype.constructor=O;function bt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function yu(){this.__data__=nn?nn(null):{},this.size=0}function vu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bu(e){var t=this.__data__;if(nn){var n=t[e];return n===P?i:n}return G.call(t,e)?t[e]:i}function xu(e){var t=this.__data__;return nn?t[e]!==i:G.call(t,e)}function _u(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nn&&t===i?P:t,this}bt.prototype.clear=yu,bt.prototype.delete=vu,bt.prototype.get=bu,bt.prototype.has=xu,bt.prototype.set=_u;function Ve(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Su(){this.__data__=[],this.size=0}function wu(e){var t=this.__data__,n=Nn(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():Rn.call(t,n,1),--this.size,!0}function Cu(e){var t=this.__data__,n=Nn(t,e);return n<0?i:t[n][1]}function Lu(e){return Nn(this.__data__,e)>-1}function Iu(e,t){var n=this.__data__,o=Nn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}Ve.prototype.clear=Su,Ve.prototype.delete=wu,Ve.prototype.get=Cu,Ve.prototype.has=Lu,Ve.prototype.set=Iu;function Ye(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Au(){this.size=0,this.__data__={hash:new bt,map:new(en||Ve),string:new bt}}function Fu(e){var t=Zn(this,e).delete(e);return this.size-=t?1:0,t}function Tu(e){return Zn(this,e).get(e)}function Bu(e){return Zn(this,e).has(e)}function Eu(e,t){var n=Zn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}Ye.prototype.clear=Au,Ye.prototype.delete=Fu,Ye.prototype.get=Tu,Ye.prototype.has=Bu,Ye.prototype.set=Eu;function xt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ye;++t<n;)this.add(e[t])}function Ru(e){return this.__data__.set(e,P),this}function Du(e){return this.__data__.has(e)}xt.prototype.add=xt.prototype.push=Ru,xt.prototype.has=Du;function ke(e){var t=this.__data__=new Ve(e);this.size=t.size}function Pu(){this.__data__=new Ve,this.size=0}function ku(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hu(e){return this.__data__.get(e)}function Mu(e){return this.__data__.has(e)}function Ou(e,t){var n=this.__data__;if(n instanceof Ve){var o=n.__data__;if(!en||o.length<g-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ye(o)}return n.set(e,t),this.size=n.size,this}ke.prototype.clear=Pu,ke.prototype.delete=ku,ke.prototype.get=Hu,ke.prototype.has=Mu,ke.prototype.set=Ou;function Io(e,t){var n=R(e),o=!n&&Lt(e),a=!n&&!o&&dt(e),s=!n&&!o&&!a&&zt(e),p=n||o||a||s,c=p?Er(e.length,Ys):[],d=c.length;for(var b in e)(t||G.call(e,b))&&!(p&&(b=="length"||a&&(b=="offset"||b=="parent")||s&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||Qe(b,d)))&&c.push(b);return c}function Ao(e){var t=e.length;return t?e[Yr(0,t-1)]:i}function Nu(e,t){return Qn(pe(e),_t(t,0,e.length))}function Wu(e){return Qn(pe(e))}function Or(e,t,n){(n!==i&&!He(e[t],n)||n===i&&!(t in e))&&Xe(e,t,n)}function on(e,t,n){var o=e[t];(!(G.call(e,t)&&He(o,n))||n===i&&!(t in e))&&Xe(e,t,n)}function Nn(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function zu(e,t,n,o){return ut(e,function(a,s,p){t(o,a,n(a),p)}),o}function Fo(e,t){return e&&ze(t,te(t),e)}function Uu(e,t){return e&&ze(t,fe(t),e)}function Xe(e,t,n){t=="__proto__"&&Dn?Dn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Nr(e,t){for(var n=-1,o=t.length,a=m(o),s=e==null;++n<o;)a[n]=s?i:bi(e,t[n]);return a}function _t(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Fe(e,t,n,o,a,s){var p,c=t&ge,d=t&Gt,b=t&U;if(n&&(p=a?n(e,o,a,s):n(e)),p!==i)return p;if(!Y(e))return e;var x=R(e);if(x){if(p=Bp(e),!c)return pe(e,p)}else{var w=oe(e),C=w==yn||w==Ti;if(dt(e))return Qo(e,c);if(w==qe||w==At||C&&!a){if(p=d||C?{}:ya(e),!c)return d?bp(e,Uu(p,e)):vp(e,Fo(p,e))}else{if(!K[w])return a?e:{};p=Ep(e,w,c)}}s||(s=new ke);var A=s.get(e);if(A)return A;s.set(e,p),qa(e)?e.forEach(function(B){p.add(Fe(B,t,n,B,e,s))}):$a(e)&&e.forEach(function(B,M){p.set(M,Fe(B,t,n,M,e,s))});var T=b?d?oi:ii:d?fe:te,k=x?i:T(e);return Le(k||e,function(B,M){k&&(M=B,B=e[M]),on(p,M,Fe(B,t,n,M,e,s))}),p}function Gu(e){var t=te(e);return function(n){return To(n,e,t)}}function To(e,t,n){var o=n.length;if(e==null)return!o;for(e=$(e);o--;){var a=n[o],s=t[a],p=e[a];if(p===i&&!(a in e)||!s(p))return!1}return!0}function Bo(e,t,n){if(typeof e!="function")throw new Ie(v);return fn(function(){e.apply(i,n)},t)}function an(e,t,n,o){var a=-1,s=Sn,p=!0,c=e.length,d=[],b=t.length;if(!c)return d;n&&(t=V(t,ve(n))),o?(s=Lr,p=!1):t.length>=g&&(s=Qt,p=!1,t=new xt(t));e:for(;++a<c;){var x=e[a],w=n==null?x:n(x);if(x=o||x!==0?x:0,p&&w===w){for(var C=b;C--;)if(t[C]===w)continue e;d.push(x)}else s(t,w,o)||d.push(x)}return d}var ut=ra(We),Eo=ra(zr,!0);function $u(e,t){var n=!0;return ut(e,function(o,a,s){return n=!!t(o,a,s),n}),n}function Wn(e,t,n){for(var o=-1,a=e.length;++o<a;){var s=e[o],p=t(s);if(p!=null&&(c===i?p===p&&!xe(p):n(p,c)))var c=p,d=s}return d}function Ku(e,t,n,o){var a=e.length;for(n=D(n),n<0&&(n=-n>a?0:a+n),o=o===i||o>a?a:D(o),o<0&&(o+=a),o=n>o?0:Ya(o);n<o;)e[n++]=t;return e}function Ro(e,t){var n=[];return ut(e,function(o,a,s){t(o,a,s)&&n.push(o)}),n}function re(e,t,n,o,a){var s=-1,p=e.length;for(n||(n=Dp),a||(a=[]);++s<p;){var c=e[s];t>0&&n(c)?t>1?re(c,t-1,n,o,a):at(a,c):o||(a[a.length]=c)}return a}var Wr=ia(),Do=ia(!0);function We(e,t){return e&&Wr(e,t,te)}function zr(e,t){return e&&Do(e,t,te)}function zn(e,t){return ot(t,function(n){return je(e[n])})}function St(e,t){t=ct(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Ue(t[n++])];return n&&n==o?e:i}function Po(e,t,n){var o=t(e);return R(e)?o:at(o,n(e))}function le(e){return e==null?e===i?xl:vl:vt&&vt in $(e)?Ap(e):Wp(e)}function Ur(e,t){return e>t}function qu(e,t){return e!=null&&G.call(e,t)}function Vu(e,t){return e!=null&&t in $(e)}function Yu(e,t,n){return e>=ie(t,n)&&e<ee(t,n)}function Gr(e,t,n){for(var o=n?Lr:Sn,a=e[0].length,s=e.length,p=s,c=m(s),d=1/0,b=[];p--;){var x=e[p];p&&t&&(x=V(x,ve(t))),d=ie(x.length,d),c[p]=!n&&(t||a>=120&&x.length>=120)?new xt(p&&x):i}x=e[0];var w=-1,C=c[0];e:for(;++w<a&&b.length<d;){var A=x[w],T=t?t(A):A;if(A=n||A!==0?A:0,!(C?Qt(C,T):o(b,T,n))){for(p=s;--p;){var k=c[p];if(!(k?Qt(k,T):o(e[p],T,n)))continue e}C&&C.push(T),b.push(A)}}return b}function Xu(e,t,n,o){return We(e,function(a,s,p){t(o,n(a),s,p)}),o}function ln(e,t,n){t=ct(t,e),e=_a(e,t);var o=e==null?e:e[Ue(Be(t))];return o==null?i:ye(o,e,n)}function ko(e){return X(e)&&le(e)==At}function Ju(e){return X(e)&&le(e)==Zt}function Zu(e){return X(e)&&le(e)==qt}function sn(e,t,n,o,a){return e===t?!0:e==null||t==null||!X(e)&&!X(t)?e!==e&&t!==t:Qu(e,t,n,o,sn,a)}function Qu(e,t,n,o,a,s){var p=R(e),c=R(t),d=p?hn:oe(e),b=c?hn:oe(t);d=d==At?qe:d,b=b==At?qe:b;var x=d==qe,w=b==qe,C=d==b;if(C&&dt(e)){if(!dt(t))return!1;p=!0,x=!1}if(C&&!x)return s||(s=new ke),p||zt(e)?ga(e,t,n,o,a,s):Lp(e,t,d,n,o,a,s);if(!(n&Ge)){var A=x&&G.call(e,"__wrapped__"),T=w&&G.call(t,"__wrapped__");if(A||T){var k=A?e.value():e,B=T?t.value():t;return s||(s=new ke),a(k,B,n,o,s)}}return C?(s||(s=new ke),Ip(e,t,n,o,a,s)):!1}function ju(e){return X(e)&&oe(e)==Re}function $r(e,t,n,o){var a=n.length,s=a,p=!o;if(e==null)return!s;for(e=$(e);a--;){var c=n[a];if(p&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){c=n[a];var d=c[0],b=e[d],x=c[1];if(p&&c[2]){if(b===i&&!(d in e))return!1}else{var w=new ke;if(o)var C=o(b,x,d,e,t,w);if(!(C===i?sn(x,b,Ge|gt,o,w):C))return!1}}return!0}function Ho(e){if(!Y(e)||kp(e))return!1;var t=je(e)?js:Gl;return t.test(Ct(e))}function ep(e){return X(e)&&le(e)==Yt}function tp(e){return X(e)&&oe(e)==De}function np(e){return X(e)&&ir(e.length)&&!!q[le(e)]}function Mo(e){return typeof e=="function"?e:e==null?de:typeof e=="object"?R(e)?Wo(e[0],e[1]):No(e):ol(e)}function Kr(e){if(!cn(e))return ou(e);var t=[];for(var n in $(e))G.call(e,n)&&n!="constructor"&&t.push(n);return t}function rp(e){if(!Y(e))return Np(e);var t=cn(e),n=[];for(var o in e)o=="constructor"&&(t||!G.call(e,o))||n.push(o);return n}function qr(e,t){return e<t}function Oo(e,t){var n=-1,o=ce(e)?m(e.length):[];return ut(e,function(a,s,p){o[++n]=t(a,s,p)}),o}function No(e){var t=li(e);return t.length==1&&t[0][2]?ba(t[0][0],t[0][1]):function(n){return n===e||$r(n,e,t)}}function Wo(e,t){return ui(e)&&va(t)?ba(Ue(e),t):function(n){var o=bi(n,e);return o===i&&o===t?xi(n,e):sn(t,o,Ge|gt)}}function Un(e,t,n,o,a){e!==t&&Wr(t,function(s,p){if(a||(a=new ke),Y(s))ip(e,t,p,n,Un,o,a);else{var c=o?o(ci(e,p),s,p+"",e,t,a):i;c===i&&(c=s),Or(e,p,c)}},fe)}function ip(e,t,n,o,a,s,p){var c=ci(e,n),d=ci(t,n),b=p.get(d);if(b){Or(e,n,b);return}var x=s?s(c,d,n+"",e,t,p):i,w=x===i;if(w){var C=R(d),A=!C&&dt(d),T=!C&&!A&&zt(d);x=d,C||A||T?R(c)?x=c:J(c)?x=pe(c):A?(w=!1,x=Qo(d,!0)):T?(w=!1,x=jo(d,!0)):x=[]:dn(d)||Lt(d)?(x=c,Lt(c)?x=Xa(c):(!Y(c)||je(c))&&(x=ya(d))):w=!1}w&&(p.set(d,x),a(x,d,o,s,p),p.delete(d)),Or(e,n,x)}function zo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Qe(t,n)?e[t]:i}function Uo(e,t,n){t.length?t=V(t,function(s){return R(s)?function(p){return St(p,s.length===1?s[0]:s)}:s}):t=[de];var o=-1;t=V(t,ve(F()));var a=Oo(e,function(s,p,c){var d=V(t,function(b){return b(s)});return{criteria:d,index:++o,value:s}});return Es(a,function(s,p){return yp(s,p,n)})}function op(e,t){return Go(e,t,function(n,o){return xi(e,o)})}function Go(e,t,n){for(var o=-1,a=t.length,s={};++o<a;){var p=t[o],c=St(e,p);n(c,p)&&un(s,ct(p,e),c)}return s}function ap(e){return function(t){return St(t,e)}}function Vr(e,t,n,o){var a=o?Bs:Bt,s=-1,p=t.length,c=e;for(e===t&&(t=pe(t)),n&&(c=V(e,ve(n)));++s<p;)for(var d=0,b=t[s],x=n?n(b):b;(d=a(c,x,d,o))>-1;)c!==e&&Rn.call(c,d,1),Rn.call(e,d,1);return e}function $o(e,t){for(var n=e?t.length:0,o=n-1;n--;){var a=t[n];if(n==o||a!==s){var s=a;Qe(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function Yr(e,t){return e+kn(Co()*(t-e+1))}function lp(e,t,n,o){for(var a=-1,s=ee(Pn((t-e)/(n||1)),0),p=m(s);s--;)p[o?s:++a]=e,e+=n;return p}function Xr(e,t){var n="";if(!e||t<1||t>it)return n;do t%2&&(n+=e),t=kn(t/2),t&&(e+=e);while(t);return n}function H(e,t){return fi(xa(e,t,de),e+"")}function sp(e){return Ao(Ut(e))}function up(e,t){var n=Ut(e);return Qn(n,_t(t,0,n.length))}function un(e,t,n,o){if(!Y(e))return e;t=ct(t,e);for(var a=-1,s=t.length,p=s-1,c=e;c!=null&&++a<s;){var d=Ue(t[a]),b=n;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(a!=p){var x=c[d];b=o?o(x,d,c):i,b===i&&(b=Y(x)?x:Qe(t[a+1])?[]:{})}on(c,d,b),c=c[d]}return e}var Ko=Hn?function(e,t){return Hn.set(e,t),e}:de,pp=Dn?function(e,t){return Dn(e,"toString",{configurable:!0,enumerable:!1,value:Si(t),writable:!0})}:de;function cp(e){return Qn(Ut(e))}function Te(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=m(a);++o<a;)s[o]=e[o+t];return s}function fp(e,t){var n;return ut(e,function(o,a,s){return n=t(o,a,s),!n}),!!n}function Gn(e,t,n){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=gl){for(;o<a;){var s=o+a>>>1,p=e[s];p!==null&&!xe(p)&&(n?p<=t:p<t)?o=s+1:a=s}return a}return Jr(e,t,de,n)}function Jr(e,t,n,o){var a=0,s=e==null?0:e.length;if(s===0)return 0;t=n(t);for(var p=t!==t,c=t===null,d=xe(t),b=t===i;a<s;){var x=kn((a+s)/2),w=n(e[x]),C=w!==i,A=w===null,T=w===w,k=xe(w);if(p)var B=o||T;else b?B=T&&(o||C):c?B=T&&C&&(o||!A):d?B=T&&C&&!A&&(o||!k):A||k?B=!1:B=o?w<=t:w<t;B?a=x+1:s=x}return ie(s,dl)}function qo(e,t){for(var n=-1,o=e.length,a=0,s=[];++n<o;){var p=e[n],c=t?t(p):p;if(!n||!He(c,d)){var d=c;s[a++]=p===0?0:p}}return s}function Vo(e){return typeof e=="number"?e:xe(e)?gn:+e}function be(e){if(typeof e=="string")return e;if(R(e))return V(e,be)+"";if(xe(e))return Lo?Lo.call(e):"";var t=e+"";return t=="0"&&1/e==-mt?"-0":t}function pt(e,t,n){var o=-1,a=Sn,s=e.length,p=!0,c=[],d=c;if(n)p=!1,a=Lr;else if(s>=g){var b=t?null:wp(e);if(b)return Cn(b);p=!1,a=Qt,d=new xt}else d=t?[]:c;e:for(;++o<s;){var x=e[o],w=t?t(x):x;if(x=n||x!==0?x:0,p&&w===w){for(var C=d.length;C--;)if(d[C]===w)continue e;t&&d.push(w),c.push(x)}else a(d,w,n)||(d!==c&&d.push(w),c.push(x))}return c}function Zr(e,t){return t=ct(t,e),e=_a(e,t),e==null||delete e[Ue(Be(t))]}function Yo(e,t,n,o){return un(e,t,n(St(e,t)),o)}function $n(e,t,n,o){for(var a=e.length,s=o?a:-1;(o?s--:++s<a)&&t(e[s],s,e););return n?Te(e,o?0:s,o?s+1:a):Te(e,o?s+1:0,o?a:s)}function Xo(e,t){var n=e;return n instanceof O&&(n=n.value()),Ir(t,function(o,a){return a.func.apply(a.thisArg,at([o],a.args))},n)}function Qr(e,t,n){var o=e.length;if(o<2)return o?pt(e[0]):[];for(var a=-1,s=m(o);++a<o;)for(var p=e[a],c=-1;++c<o;)c!=a&&(s[a]=an(s[a]||p,e[c],t,n));return pt(re(s,1),t,n)}function Jo(e,t,n){for(var o=-1,a=e.length,s=t.length,p={};++o<a;){var c=o<s?t[o]:i;n(p,e[o],c)}return p}function jr(e){return J(e)?e:[]}function ei(e){return typeof e=="function"?e:de}function ct(e,t){return R(e)?e:ui(e,t)?[e]:La(z(e))}var dp=H;function ft(e,t,n){var o=e.length;return n=n===i?o:n,!t&&n>=o?e:Te(e,t,n)}var Zo=eu||function(e){return ne.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,o=bo?bo(n):new e.constructor(n);return e.copy(o),o}function ti(e){var t=new e.constructor(e.byteLength);return new Bn(t).set(new Bn(e)),t}function gp(e,t){var n=t?ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function hp(e){var t=new e.constructor(e.source,Pi.exec(e));return t.lastIndex=e.lastIndex,t}function mp(e){return rn?$(rn.call(e)):{}}function jo(e,t){var n=t?ti(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ea(e,t){if(e!==t){var n=e!==i,o=e===null,a=e===e,s=xe(e),p=t!==i,c=t===null,d=t===t,b=xe(t);if(!c&&!b&&!s&&e>t||s&&p&&d&&!c&&!b||o&&p&&d||!n&&d||!a)return 1;if(!o&&!s&&!b&&e<t||b&&n&&a&&!o&&!s||c&&n&&a||!p&&a||!d)return-1}return 0}function yp(e,t,n){for(var o=-1,a=e.criteria,s=t.criteria,p=a.length,c=n.length;++o<p;){var d=ea(a[o],s[o]);if(d){if(o>=c)return d;var b=n[o];return d*(b=="desc"?-1:1)}}return e.index-t.index}function ta(e,t,n,o){for(var a=-1,s=e.length,p=n.length,c=-1,d=t.length,b=ee(s-p,0),x=m(d+b),w=!o;++c<d;)x[c]=t[c];for(;++a<p;)(w||a<s)&&(x[n[a]]=e[a]);for(;b--;)x[c++]=e[a++];return x}function na(e,t,n,o){for(var a=-1,s=e.length,p=-1,c=n.length,d=-1,b=t.length,x=ee(s-c,0),w=m(x+b),C=!o;++a<x;)w[a]=e[a];for(var A=a;++d<b;)w[A+d]=t[d];for(;++p<c;)(C||a<s)&&(w[A+n[p]]=e[a++]);return w}function pe(e,t){var n=-1,o=e.length;for(t||(t=m(o));++n<o;)t[n]=e[n];return t}function ze(e,t,n,o){var a=!n;n||(n={});for(var s=-1,p=t.length;++s<p;){var c=t[s],d=o?o(n[c],e[c],c,n,e):i;d===i&&(d=e[c]),a?Xe(n,c,d):on(n,c,d)}return n}function vp(e,t){return ze(e,si(e),t)}function bp(e,t){return ze(e,ha(e),t)}function Kn(e,t){return function(n,o){var a=R(n)?Cs:zu,s=t?t():{};return a(n,e,F(o,2),s)}}function Ot(e){return H(function(t,n){var o=-1,a=n.length,s=a>1?n[a-1]:i,p=a>2?n[2]:i;for(s=e.length>3&&typeof s=="function"?(a--,s):i,p&&se(n[0],n[1],p)&&(s=a<3?i:s,a=1),t=$(t);++o<a;){var c=n[o];c&&e(t,c,o,s)}return t})}function ra(e,t){return function(n,o){if(n==null)return n;if(!ce(n))return e(n,o);for(var a=n.length,s=t?a:-1,p=$(n);(t?s--:++s<a)&&o(p[s],s,p)!==!1;);return n}}function ia(e){return function(t,n,o){for(var a=-1,s=$(t),p=o(t),c=p.length;c--;){var d=p[e?c:++a];if(n(s[d],d,s)===!1)break}return t}}function xp(e,t,n){var o=t&ae,a=pn(e);function s(){var p=this&&this!==ne&&this instanceof s?a:e;return p.apply(o?n:this,arguments)}return s}function oa(e){return function(t){t=z(t);var n=Et(t)?Pe(t):i,o=n?n[0]:t.charAt(0),a=n?ft(n,1).join(""):t.slice(1);return o[e]()+a}}function Nt(e){return function(t){return Ir(rl(nl(t).replace(ps,"")),e,"")}}function pn(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 n=Mt(e.prototype),o=e.apply(n,t);return Y(o)?o:n}}function _p(e,t,n){var o=pn(e);function a(){for(var s=arguments.length,p=m(s),c=s,d=Wt(a);c--;)p[c]=arguments[c];var b=s<3&&p[0]!==d&&p[s-1]!==d?[]:lt(p,d);if(s-=b.length,s<n)return pa(e,t,qn,a.placeholder,i,p,b,i,i,n-s);var x=this&&this!==ne&&this instanceof a?o:e;return ye(x,this,p)}return a}function aa(e){return function(t,n,o){var a=$(t);if(!ce(t)){var s=F(n,3);t=te(t),n=function(c){return s(a[c],c,a)}}var p=e(t,n,o);return p>-1?a[s?t[p]:p]:i}}function la(e){return Ze(function(t){var n=t.length,o=n,a=Ae.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if(typeof s!="function")throw new Ie(v);if(a&&!p&&Jn(s)=="wrapper")var p=new Ae([],!0)}for(o=p?o:n;++o<n;){s=t[o];var c=Jn(s),d=c=="wrapper"?ai(s):i;d&&pi(d[0])&&d[1]==(we|he|me|rt)&&!d[4].length&&d[9]==1?p=p[Jn(d[0])].apply(p,d[3]):p=s.length==1&&pi(s)?p[c]():p.thru(s)}return function(){var b=arguments,x=b[0];if(p&&b.length==1&&R(x))return p.plant(x).value();for(var w=0,C=n?t[w].apply(this,b):x;++w<n;)C=t[w].call(this,C);return C}})}function qn(e,t,n,o,a,s,p,c,d,b){var x=t&we,w=t&ae,C=t&Oe,A=t&(he|$e),T=t&It,k=C?i:pn(e);function B(){for(var M=arguments.length,N=m(M),_e=M;_e--;)N[_e]=arguments[_e];if(A)var ue=Wt(B),Se=Ds(N,ue);if(o&&(N=ta(N,o,a,A)),s&&(N=na(N,s,p,A)),M-=Se,A&&M<b){var Z=lt(N,ue);return pa(e,t,qn,B.placeholder,n,N,Z,c,d,b-M)}var Me=w?n:this,tt=C?Me[e]:e;return M=N.length,c?N=zp(N,c):T&&M>1&&N.reverse(),x&&d<M&&(N.length=d),this&&this!==ne&&this instanceof B&&(tt=k||pn(tt)),tt.apply(Me,N)}return B}function sa(e,t){return function(n,o){return Xu(n,e,t(o),{})}}function Vn(e,t){return function(n,o){var a;if(n===i&&o===i)return t;if(n!==i&&(a=n),o!==i){if(a===i)return o;typeof n=="string"||typeof o=="string"?(n=be(n),o=be(o)):(n=Vo(n),o=Vo(o)),a=e(n,o)}return a}}function ni(e){return Ze(function(t){return t=V(t,ve(F())),H(function(n){var o=this;return e(t,function(a){return ye(a,o,n)})})})}function Yn(e,t){t=t===i?" ":be(t);var n=t.length;if(n<2)return n?Xr(t,e):t;var o=Xr(t,Pn(e/Rt(t)));return Et(t)?ft(Pe(o),0,e).join(""):o.slice(0,e)}function Sp(e,t,n,o){var a=t&ae,s=pn(e);function p(){for(var c=-1,d=arguments.length,b=-1,x=o.length,w=m(x+d),C=this&&this!==ne&&this instanceof p?s:e;++b<x;)w[b]=o[b];for(;d--;)w[b++]=arguments[++c];return ye(C,a?n:this,w)}return p}function ua(e){return function(t,n,o){return o&&typeof o!="number"&&se(t,n,o)&&(n=o=i),t=et(t),n===i?(n=t,t=0):n=et(n),o=o===i?t<n?1:-1:et(o),lp(t,n,o,e)}}function Xn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Ee(t),n=Ee(n)),e(t,n)}}function pa(e,t,n,o,a,s,p,c,d,b){var x=t&he,w=x?p:i,C=x?i:p,A=x?s:i,T=x?i:s;t|=x?me:Ke,t&=~(x?Ke:me),t&$t||(t&=~(ae|Oe));var k=[e,t,a,A,w,T,C,c,d,b],B=n.apply(i,k);return pi(e)&&Sa(B,k),B.placeholder=o,wa(B,e,t)}function ri(e){var t=j[e];return function(n,o){if(n=Ee(n),o=o==null?0:ie(D(o),292),o&&wo(n)){var a=(z(n)+"e").split("e"),s=t(a[0]+"e"+(+a[1]+o));return a=(z(s)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(n)}}var wp=kt&&1/Cn(new kt([,-0]))[1]==mt?function(e){return new kt(e)}:Li;function ca(e){return function(t){var n=oe(t);return n==Re?Dr(t):n==De?Ws(t):Rs(t,e(t))}}function Je(e,t,n,o,a,s,p,c){var d=t&Oe;if(!d&&typeof e!="function")throw new Ie(v);var b=o?o.length:0;if(b||(t&=~(me|Ke),o=a=i),p=p===i?p:ee(D(p),0),c=c===i?c:D(c),b-=a?a.length:0,t&Ke){var x=o,w=a;o=a=i}var C=d?i:ai(e),A=[e,t,n,o,a,x,w,s,p,c];if(C&&Op(A,C),e=A[0],t=A[1],n=A[2],o=A[3],a=A[4],c=A[9]=A[9]===i?d?0:e.length:ee(A[9]-b,0),!c&&t&(he|$e)&&(t&=~(he|$e)),!t||t==ae)var T=xp(e,t,n);else t==he||t==$e?T=_p(e,t,c):(t==me||t==(ae|me))&&!a.length?T=Sp(e,t,n,o):T=qn.apply(i,A);var k=C?Ko:Sa;return wa(k(T,A),e,t)}function fa(e,t,n,o){return e===i||He(e,Pt[n])&&!G.call(o,n)?t:e}function da(e,t,n,o,a,s){return Y(e)&&Y(t)&&(s.set(t,e),Un(e,t,i,da,s),s.delete(t)),e}function Cp(e){return dn(e)?i:e}function ga(e,t,n,o,a,s){var p=n&Ge,c=e.length,d=t.length;if(c!=d&&!(p&&d>c))return!1;var b=s.get(e),x=s.get(t);if(b&&x)return b==t&&x==e;var w=-1,C=!0,A=n&gt?new xt:i;for(s.set(e,t),s.set(t,e);++w<c;){var T=e[w],k=t[w];if(o)var B=p?o(k,T,w,t,e,s):o(T,k,w,e,t,s);if(B!==i){if(B)continue;C=!1;break}if(A){if(!Ar(t,function(M,N){if(!Qt(A,N)&&(T===M||a(T,M,n,o,s)))return A.push(N)})){C=!1;break}}else if(!(T===k||a(T,k,n,o,s))){C=!1;break}}return s.delete(e),s.delete(t),C}function Lp(e,t,n,o,a,s,p){switch(n){case Ft:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!s(new Bn(e),new Bn(t)));case Kt:case qt:case Vt:return He(+e,+t);case mn:return e.name==t.name&&e.message==t.message;case Yt:case Xt:return e==t+"";case Re:var c=Dr;case De:var d=o&Ge;if(c||(c=Cn),e.size!=t.size&&!d)return!1;var b=p.get(e);if(b)return b==t;o|=gt,p.set(e,t);var x=ga(c(e),c(t),o,a,s,p);return p.delete(e),x;case vn:if(rn)return rn.call(e)==rn.call(t)}return!1}function Ip(e,t,n,o,a,s){var p=n&Ge,c=ii(e),d=c.length,b=ii(t),x=b.length;if(d!=x&&!p)return!1;for(var w=d;w--;){var C=c[w];if(!(p?C in t:G.call(t,C)))return!1}var A=s.get(e),T=s.get(t);if(A&&T)return A==t&&T==e;var k=!0;s.set(e,t),s.set(t,e);for(var B=p;++w<d;){C=c[w];var M=e[C],N=t[C];if(o)var _e=p?o(N,M,C,t,e,s):o(M,N,C,e,t,s);if(!(_e===i?M===N||a(M,N,n,o,s):_e)){k=!1;break}B||(B=C=="constructor")}if(k&&!B){var ue=e.constructor,Se=t.constructor;ue!=Se&&"constructor"in e&&"constructor"in t&&!(typeof ue=="function"&&ue instanceof ue&&typeof Se=="function"&&Se instanceof Se)&&(k=!1)}return s.delete(e),s.delete(t),k}function Ze(e){return fi(xa(e,i,Ta),e+"")}function ii(e){return Po(e,te,si)}function oi(e){return Po(e,fe,ha)}var ai=Hn?function(e){return Hn.get(e)}:Li;function Jn(e){for(var t=e.name+"",n=Ht[t],o=G.call(Ht,t)?n.length:0;o--;){var a=n[o],s=a.func;if(s==null||s==e)return a.name}return t}function Wt(e){var t=G.call(l,"placeholder")?l:e;return t.placeholder}function F(){var e=l.iteratee||wi;return e=e===wi?Mo:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var n=e.__data__;return Pp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function li(e){for(var t=te(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,va(a)]}return t}function wt(e,t){var n=Ms(e,t);return Ho(n)?n:i}function Ap(e){var t=G.call(e,vt),n=e[vt];try{e[vt]=i;var o=!0}catch{}var a=Fn.call(e);return o&&(t?e[vt]=n:delete e[vt]),a}var si=kr?function(e){return e==null?[]:(e=$(e),ot(kr(e),function(t){return _o.call(e,t)}))}:Ii,ha=kr?function(e){for(var t=[];e;)at(t,si(e)),e=En(e);return t}:Ii,oe=le;(Hr&&oe(new Hr(new ArrayBuffer(1)))!=Ft||en&&oe(new en)!=Re||Mr&&oe(Mr.resolve())!=Bi||kt&&oe(new kt)!=De||tn&&oe(new tn)!=Jt)&&(oe=function(e){var t=le(e),n=t==qe?e.constructor:i,o=n?Ct(n):"";if(o)switch(o){case uu:return Ft;case pu:return Re;case cu:return Bi;case fu:return De;case du:return Jt}return t});function Fp(e,t,n){for(var o=-1,a=n.length;++o<a;){var s=n[o],p=s.size;switch(s.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=ie(t,e+p);break;case"takeRight":e=ee(e,t-p);break}}return{start:e,end:t}}function Tp(e){var t=e.match(kl);return t?t[1].split(Hl):[]}function ma(e,t,n){t=ct(t,e);for(var o=-1,a=t.length,s=!1;++o<a;){var p=Ue(t[o]);if(!(s=e!=null&&n(e,p)))break;e=e[p]}return s||++o!=a?s:(a=e==null?0:e.length,!!a&&ir(a)&&Qe(p,a)&&(R(e)||Lt(e)))}function Bp(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&G.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ya(e){return typeof e.constructor=="function"&&!cn(e)?Mt(En(e)):{}}function Ep(e,t,n){var o=e.constructor;switch(t){case Zt:return ti(e);case Kt:case qt:return new o(+e);case Ft:return gp(e,n);case lr:case sr:case ur:case pr:case cr:case fr:case dr:case gr:case hr:return jo(e,n);case Re:return new o;case Vt:case Xt:return new o(e);case Yt:return hp(e);case De:return new o;case vn:return mp(e)}}function Rp(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(Pl,`{
8
+ */(function(r,u){(function(){var i,h="4.17.21",g=200,S="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",v="Expected a function",L="Invalid `variable` option passed into `_.template`",P="__lodash_hash_undefined__",Q=500,nt="__lodash_placeholder__",ge=1,Gt=2,Ge=4,U=1,gt=2,ae=1,Ne=2,$t=4,he=8,$e=16,me=32,Ke=64,we=128,rt=256,It=512,gn=30,ht="...",sl=800,ul=16,Ti=1,pl=2,cl=3,mt=1/0,it=9007199254740991,fl=17976931348623157e292,hn=0/0,Oe=4294967295,dl=Oe-1,gl=Oe>>>1,hl=[["ary",we],["bind",ae],["bindKey",Ne],["curry",he],["curryRight",$e],["flip",It],["partial",me],["partialRight",Ke],["rearg",rt]],At="[object Arguments]",mn="[object Array]",ml="[object AsyncFunction]",Kt="[object Boolean]",qt="[object Date]",yl="[object DOMException]",yn="[object Error]",vn="[object Function]",Bi="[object GeneratorFunction]",Re="[object Map]",Vt="[object Number]",vl="[object Null]",qe="[object Object]",Ei="[object Promise]",bl="[object Proxy]",Yt="[object RegExp]",De="[object Set]",Xt="[object String]",bn="[object Symbol]",xl="[object Undefined]",Jt="[object WeakMap]",_l="[object WeakSet]",Zt="[object ArrayBuffer]",Ft="[object DataView]",sr="[object Float32Array]",ur="[object Float64Array]",pr="[object Int8Array]",cr="[object Int16Array]",fr="[object Int32Array]",dr="[object Uint8Array]",gr="[object Uint8ClampedArray]",hr="[object Uint16Array]",mr="[object Uint32Array]",Sl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Cl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ri=/&(?:amp|lt|gt|quot|#39);/g,Di=/[&<>"']/g,Ll=RegExp(Ri.source),Il=RegExp(Di.source),Al=/<%-([\s\S]+?)%>/g,Fl=/<%([\s\S]+?)%>/g,Pi=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bl=/^\w*$/,El=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yr=/[\\^$.*+?()[\]{}|]/g,Rl=RegExp(yr.source),vr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Hl=/,? & /,Ml=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Nl=/[()=,{}\[\]\/\s]/,Ol=/\\(\\)?/g,Wl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ki=/\w*$/,zl=/^[-+]0x[0-9a-f]+$/i,Ul=/^0b[01]+$/i,Gl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,ql=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,xn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,_n="\\ud800-\\udfff",Yl="\\u0300-\\u036f",Xl="\\ufe20-\\ufe2f",Jl="\\u20d0-\\u20ff",Hi=Yl+Xl+Jl,Mi="\\u2700-\\u27bf",Ni="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",Oi="A-Z\\xc0-\\xd6\\xd8-\\xde",Wi="\\ufe0e\\ufe0f",zi=Zl+Ql+jl+es,br="['\u2019]",ts="["+_n+"]",Ui="["+zi+"]",Sn="["+Hi+"]",Gi="\\d+",ns="["+Mi+"]",$i="["+Ni+"]",Ki="[^"+_n+zi+Gi+Mi+Ni+Oi+"]",xr="\\ud83c[\\udffb-\\udfff]",rs="(?:"+Sn+"|"+xr+")",qi="[^"+_n+"]",_r="(?:\\ud83c[\\udde6-\\uddff]){2}",Sr="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Oi+"]",Vi="\\u200d",Yi="(?:"+$i+"|"+Ki+")",is="(?:"+Tt+"|"+Ki+")",Xi="(?:"+br+"(?:d|ll|m|re|s|t|ve))?",Ji="(?:"+br+"(?:D|LL|M|RE|S|T|VE))?",Zi=rs+"?",Qi="["+Wi+"]?",os="(?:"+Vi+"(?:"+[qi,_r,Sr].join("|")+")"+Qi+Zi+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ji=Qi+Zi+os,ss="(?:"+[ns,_r,Sr].join("|")+")"+ji,us="(?:"+[qi+Sn+"?",Sn,_r,Sr,ts].join("|")+")",ps=RegExp(br,"g"),cs=RegExp(Sn,"g"),wr=RegExp(xr+"(?="+xr+")|"+us+ji,"g"),fs=RegExp([Tt+"?"+$i+"+"+Xi+"(?="+[Ui,Tt,"$"].join("|")+")",is+"+"+Ji+"(?="+[Ui,Tt+Yi,"$"].join("|")+")",Tt+"?"+Yi+"+"+Xi,Tt+"+"+Ji,ls,as,Gi,ss].join("|"),"g"),ds=RegExp("["+Vi+_n+Hi+Wi+"]"),gs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,hs=["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"],ms=-1,q={};q[sr]=q[ur]=q[pr]=q[cr]=q[fr]=q[dr]=q[gr]=q[hr]=q[mr]=!0,q[At]=q[mn]=q[Zt]=q[Kt]=q[Ft]=q[qt]=q[yn]=q[vn]=q[Re]=q[Vt]=q[qe]=q[Yt]=q[De]=q[Xt]=q[Jt]=!1;var K={};K[At]=K[mn]=K[Zt]=K[Ft]=K[Kt]=K[qt]=K[sr]=K[ur]=K[pr]=K[cr]=K[fr]=K[Re]=K[Vt]=K[qe]=K[Yt]=K[De]=K[Xt]=K[bn]=K[dr]=K[gr]=K[hr]=K[mr]=!0,K[yn]=K[vn]=K[Jt]=!1;var ys={\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={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_s=parseFloat,Ss=parseInt,eo=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ne=eo||ws||Function("return this")(),Cr=u&&!u.nodeType&&u,yt=Cr&&!0&&r&&!r.nodeType&&r,to=yt&&yt.exports===Cr,Lr=to&&eo.process,Ce=function(){try{var f=yt&&yt.require&&yt.require("util").types;return f||Lr&&Lr.binding&&Lr.binding("util")}catch{}}(),no=Ce&&Ce.isArrayBuffer,ro=Ce&&Ce.isDate,io=Ce&&Ce.isMap,oo=Ce&&Ce.isRegExp,ao=Ce&&Ce.isSet,lo=Ce&&Ce.isTypedArray;function ye(f,y,m){switch(m.length){case 0:return f.call(y);case 1:return f.call(y,m[0]);case 2:return f.call(y,m[0],m[1]);case 3:return f.call(y,m[0],m[1],m[2])}return f.apply(y,m)}function Cs(f,y,m,I){for(var E=-1,W=f==null?0:f.length;++E<W;){var j=f[E];y(I,j,m(j),f)}return I}function Le(f,y){for(var m=-1,I=f==null?0:f.length;++m<I&&y(f[m],m,f)!==!1;);return f}function Ls(f,y){for(var m=f==null?0:f.length;m--&&y(f[m],m,f)!==!1;);return f}function so(f,y){for(var m=-1,I=f==null?0:f.length;++m<I;)if(!y(f[m],m,f))return!1;return!0}function ot(f,y){for(var m=-1,I=f==null?0:f.length,E=0,W=[];++m<I;){var j=f[m];y(j,m,f)&&(W[E++]=j)}return W}function wn(f,y){var m=f==null?0:f.length;return!!m&&Bt(f,y,0)>-1}function Ir(f,y,m){for(var I=-1,E=f==null?0:f.length;++I<E;)if(m(y,f[I]))return!0;return!1}function V(f,y){for(var m=-1,I=f==null?0:f.length,E=Array(I);++m<I;)E[m]=y(f[m],m,f);return E}function at(f,y){for(var m=-1,I=y.length,E=f.length;++m<I;)f[E+m]=y[m];return f}function Ar(f,y,m,I){var E=-1,W=f==null?0:f.length;for(I&&W&&(m=f[++E]);++E<W;)m=y(m,f[E],E,f);return m}function Is(f,y,m,I){var E=f==null?0:f.length;for(I&&E&&(m=f[--E]);E--;)m=y(m,f[E],E,f);return m}function Fr(f,y){for(var m=-1,I=f==null?0:f.length;++m<I;)if(y(f[m],m,f))return!0;return!1}var As=Tr("length");function Fs(f){return f.split("")}function Ts(f){return f.match(Ml)||[]}function uo(f,y,m){var I;return m(f,function(E,W,j){if(y(E,W,j))return I=W,!1}),I}function Cn(f,y,m,I){for(var E=f.length,W=m+(I?1:-1);I?W--:++W<E;)if(y(f[W],W,f))return W;return-1}function Bt(f,y,m){return y===y?zs(f,y,m):Cn(f,po,m)}function Bs(f,y,m,I){for(var E=m-1,W=f.length;++E<W;)if(I(f[E],y))return E;return-1}function po(f){return f!==f}function co(f,y){var m=f==null?0:f.length;return m?Er(f,y)/m:hn}function Tr(f){return function(y){return y==null?i:y[f]}}function Br(f){return function(y){return f==null?i:f[y]}}function fo(f,y,m,I,E){return E(f,function(W,j,$){m=I?(I=!1,W):y(m,W,j,$)}),m}function Es(f,y){var m=f.length;for(f.sort(y);m--;)f[m]=f[m].value;return f}function Er(f,y){for(var m,I=-1,E=f.length;++I<E;){var W=y(f[I]);W!==i&&(m=m===i?W:m+W)}return m}function Rr(f,y){for(var m=-1,I=Array(f);++m<f;)I[m]=y(m);return I}function Rs(f,y){return V(y,function(m){return[m,f[m]]})}function go(f){return f&&f.slice(0,vo(f)+1).replace(vr,"")}function ve(f){return function(y){return f(y)}}function Dr(f,y){return V(y,function(m){return f[m]})}function Qt(f,y){return f.has(y)}function ho(f,y){for(var m=-1,I=f.length;++m<I&&Bt(y,f[m],0)>-1;);return m}function mo(f,y){for(var m=f.length;m--&&Bt(y,f[m],0)>-1;);return m}function Ds(f,y){for(var m=f.length,I=0;m--;)f[m]===y&&++I;return I}var Ps=Br(ys),ks=Br(vs);function Hs(f){return"\\"+xs[f]}function Ms(f,y){return f==null?i:f[y]}function Et(f){return ds.test(f)}function Ns(f){return gs.test(f)}function Os(f){for(var y,m=[];!(y=f.next()).done;)m.push(y.value);return m}function Pr(f){var y=-1,m=Array(f.size);return f.forEach(function(I,E){m[++y]=[E,I]}),m}function yo(f,y){return function(m){return f(y(m))}}function lt(f,y){for(var m=-1,I=f.length,E=0,W=[];++m<I;){var j=f[m];(j===y||j===nt)&&(f[m]=nt,W[E++]=m)}return W}function Ln(f){var y=-1,m=Array(f.size);return f.forEach(function(I){m[++y]=I}),m}function Ws(f){var y=-1,m=Array(f.size);return f.forEach(function(I){m[++y]=[I,I]}),m}function zs(f,y,m){for(var I=m-1,E=f.length;++I<E;)if(f[I]===y)return I;return-1}function Us(f,y,m){for(var I=m+1;I--;)if(f[I]===y)return I;return I}function Rt(f){return Et(f)?$s(f):As(f)}function Pe(f){return Et(f)?Ks(f):Fs(f)}function vo(f){for(var y=f.length;y--&&Dl.test(f.charAt(y)););return y}var Gs=Br(bs);function $s(f){for(var y=wr.lastIndex=0;wr.test(f);)++y;return y}function Ks(f){return f.match(wr)||[]}function qs(f){return f.match(fs)||[]}var Vs=function f(y){y=y==null?ne:Dt.defaults(ne.Object(),y,Dt.pick(ne,hs));var m=y.Array,I=y.Date,E=y.Error,W=y.Function,j=y.Math,$=y.Object,kr=y.RegExp,Ys=y.String,Ie=y.TypeError,In=m.prototype,Xs=W.prototype,Pt=$.prototype,An=y["__core-js_shared__"],Fn=Xs.toString,G=Pt.hasOwnProperty,Js=0,bo=function(){var e=/[^.]+$/.exec(An&&An.keys&&An.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Tn=Pt.toString,Zs=Fn.call($),Qs=ne._,js=kr("^"+Fn.call(G).replace(yr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bn=to?y.Buffer:i,st=y.Symbol,En=y.Uint8Array,xo=Bn?Bn.allocUnsafe:i,Rn=yo($.getPrototypeOf,$),_o=$.create,So=Pt.propertyIsEnumerable,Dn=In.splice,wo=st?st.isConcatSpreadable:i,jt=st?st.iterator:i,vt=st?st.toStringTag:i,Pn=function(){try{var e=wt($,"defineProperty");return e({},"",{}),e}catch{}}(),eu=y.clearTimeout!==ne.clearTimeout&&y.clearTimeout,tu=I&&I.now!==ne.Date.now&&I.now,nu=y.setTimeout!==ne.setTimeout&&y.setTimeout,kn=j.ceil,Hn=j.floor,Hr=$.getOwnPropertySymbols,ru=Bn?Bn.isBuffer:i,Co=y.isFinite,iu=In.join,ou=yo($.keys,$),ee=j.max,ie=j.min,au=I.now,lu=y.parseInt,Lo=j.random,su=In.reverse,Mr=wt(y,"DataView"),en=wt(y,"Map"),Nr=wt(y,"Promise"),kt=wt(y,"Set"),tn=wt(y,"WeakMap"),nn=wt($,"create"),Mn=tn&&new tn,Ht={},uu=Ct(Mr),pu=Ct(en),cu=Ct(Nr),fu=Ct(kt),du=Ct(tn),Nn=st?st.prototype:i,rn=Nn?Nn.valueOf:i,Io=Nn?Nn.toString:i;function l(e){if(X(e)&&!R(e)&&!(e instanceof N)){if(e instanceof Ae)return e;if(G.call(e,"__wrapped__"))return Aa(e)}return new Ae(e)}var Mt=function(){function e(){}return function(t){if(!Y(t))return{};if(_o)return _o(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function On(){}function Ae(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Al,evaluate:Fl,interpolate:Pi,variable:"",imports:{_:l}},l.prototype=On.prototype,l.prototype.constructor=l,Ae.prototype=Mt(On.prototype),Ae.prototype.constructor=Ae;function N(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Oe,this.__views__=[]}function gu(){var e=new N(this.__wrapped__);return e.__actions__=pe(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=pe(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=pe(this.__views__),e}function hu(){if(this.__filtered__){var e=new N(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function mu(){var e=this.__wrapped__.value(),t=this.__dir__,n=R(e),o=t<0,a=n?e.length:0,s=Fp(0,a,this.__views__),p=s.start,c=s.end,d=c-p,b=o?c:p-1,x=this.__iteratees__,w=x.length,C=0,A=ie(d,this.__takeCount__);if(!n||!o&&a==d&&A==d)return Jo(e,this.__actions__);var T=[];e:for(;d--&&C<A;){b+=t;for(var k=-1,B=e[b];++k<w;){var M=x[k],O=M.iteratee,_e=M.type,ue=O(B);if(_e==pl)B=ue;else if(!ue){if(_e==Ti)continue e;break e}}T[C++]=B}return T}N.prototype=Mt(On.prototype),N.prototype.constructor=N;function bt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function yu(){this.__data__=nn?nn(null):{},this.size=0}function vu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function bu(e){var t=this.__data__;if(nn){var n=t[e];return n===P?i:n}return G.call(t,e)?t[e]:i}function xu(e){var t=this.__data__;return nn?t[e]!==i:G.call(t,e)}function _u(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=nn&&t===i?P:t,this}bt.prototype.clear=yu,bt.prototype.delete=vu,bt.prototype.get=bu,bt.prototype.has=xu,bt.prototype.set=_u;function Ve(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Su(){this.__data__=[],this.size=0}function wu(e){var t=this.__data__,n=Wn(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():Dn.call(t,n,1),--this.size,!0}function Cu(e){var t=this.__data__,n=Wn(t,e);return n<0?i:t[n][1]}function Lu(e){return Wn(this.__data__,e)>-1}function Iu(e,t){var n=this.__data__,o=Wn(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}Ve.prototype.clear=Su,Ve.prototype.delete=wu,Ve.prototype.get=Cu,Ve.prototype.has=Lu,Ve.prototype.set=Iu;function Ye(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Au(){this.size=0,this.__data__={hash:new bt,map:new(en||Ve),string:new bt}}function Fu(e){var t=Qn(this,e).delete(e);return this.size-=t?1:0,t}function Tu(e){return Qn(this,e).get(e)}function Bu(e){return Qn(this,e).has(e)}function Eu(e,t){var n=Qn(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}Ye.prototype.clear=Au,Ye.prototype.delete=Fu,Ye.prototype.get=Tu,Ye.prototype.has=Bu,Ye.prototype.set=Eu;function xt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ye;++t<n;)this.add(e[t])}function Ru(e){return this.__data__.set(e,P),this}function Du(e){return this.__data__.has(e)}xt.prototype.add=xt.prototype.push=Ru,xt.prototype.has=Du;function ke(e){var t=this.__data__=new Ve(e);this.size=t.size}function Pu(){this.__data__=new Ve,this.size=0}function ku(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hu(e){return this.__data__.get(e)}function Mu(e){return this.__data__.has(e)}function Nu(e,t){var n=this.__data__;if(n instanceof Ve){var o=n.__data__;if(!en||o.length<g-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ye(o)}return n.set(e,t),this.size=n.size,this}ke.prototype.clear=Pu,ke.prototype.delete=ku,ke.prototype.get=Hu,ke.prototype.has=Mu,ke.prototype.set=Nu;function Ao(e,t){var n=R(e),o=!n&&Lt(e),a=!n&&!o&&dt(e),s=!n&&!o&&!a&&zt(e),p=n||o||a||s,c=p?Rr(e.length,Ys):[],d=c.length;for(var b in e)(t||G.call(e,b))&&!(p&&(b=="length"||a&&(b=="offset"||b=="parent")||s&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||Qe(b,d)))&&c.push(b);return c}function Fo(e){var t=e.length;return t?e[Xr(0,t-1)]:i}function Ou(e,t){return jn(pe(e),_t(t,0,e.length))}function Wu(e){return jn(pe(e))}function Or(e,t,n){(n!==i&&!He(e[t],n)||n===i&&!(t in e))&&Xe(e,t,n)}function on(e,t,n){var o=e[t];(!(G.call(e,t)&&He(o,n))||n===i&&!(t in e))&&Xe(e,t,n)}function Wn(e,t){for(var n=e.length;n--;)if(He(e[n][0],t))return n;return-1}function zu(e,t,n,o){return ut(e,function(a,s,p){t(o,a,n(a),p)}),o}function To(e,t){return e&&ze(t,te(t),e)}function Uu(e,t){return e&&ze(t,fe(t),e)}function Xe(e,t,n){t=="__proto__"&&Pn?Pn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Wr(e,t){for(var n=-1,o=t.length,a=m(o),s=e==null;++n<o;)a[n]=s?i:xi(e,t[n]);return a}function _t(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Fe(e,t,n,o,a,s){var p,c=t&ge,d=t&Gt,b=t&Ge;if(n&&(p=a?n(e,o,a,s):n(e)),p!==i)return p;if(!Y(e))return e;var x=R(e);if(x){if(p=Bp(e),!c)return pe(e,p)}else{var w=oe(e),C=w==vn||w==Bi;if(dt(e))return jo(e,c);if(w==qe||w==At||C&&!a){if(p=d||C?{}:va(e),!c)return d?bp(e,Uu(p,e)):vp(e,To(p,e))}else{if(!K[w])return a?e:{};p=Ep(e,w,c)}}s||(s=new ke);var A=s.get(e);if(A)return A;s.set(e,p),Va(e)?e.forEach(function(B){p.add(Fe(B,t,n,B,e,s))}):Ka(e)&&e.forEach(function(B,M){p.set(M,Fe(B,t,n,M,e,s))});var T=b?d?ai:oi:d?fe:te,k=x?i:T(e);return Le(k||e,function(B,M){k&&(M=B,B=e[M]),on(p,M,Fe(B,t,n,M,e,s))}),p}function Gu(e){var t=te(e);return function(n){return Bo(n,e,t)}}function Bo(e,t,n){var o=n.length;if(e==null)return!o;for(e=$(e);o--;){var a=n[o],s=t[a],p=e[a];if(p===i&&!(a in e)||!s(p))return!1}return!0}function Eo(e,t,n){if(typeof e!="function")throw new Ie(v);return fn(function(){e.apply(i,n)},t)}function an(e,t,n,o){var a=-1,s=wn,p=!0,c=e.length,d=[],b=t.length;if(!c)return d;n&&(t=V(t,ve(n))),o?(s=Ir,p=!1):t.length>=g&&(s=Qt,p=!1,t=new xt(t));e:for(;++a<c;){var x=e[a],w=n==null?x:n(x);if(x=o||x!==0?x:0,p&&w===w){for(var C=b;C--;)if(t[C]===w)continue e;d.push(x)}else s(t,w,o)||d.push(x)}return d}var ut=ia(We),Ro=ia(Ur,!0);function $u(e,t){var n=!0;return ut(e,function(o,a,s){return n=!!t(o,a,s),n}),n}function zn(e,t,n){for(var o=-1,a=e.length;++o<a;){var s=e[o],p=t(s);if(p!=null&&(c===i?p===p&&!xe(p):n(p,c)))var c=p,d=s}return d}function Ku(e,t,n,o){var a=e.length;for(n=D(n),n<0&&(n=-n>a?0:a+n),o=o===i||o>a?a:D(o),o<0&&(o+=a),o=n>o?0:Xa(o);n<o;)e[n++]=t;return e}function Do(e,t){var n=[];return ut(e,function(o,a,s){t(o,a,s)&&n.push(o)}),n}function re(e,t,n,o,a){var s=-1,p=e.length;for(n||(n=Dp),a||(a=[]);++s<p;){var c=e[s];t>0&&n(c)?t>1?re(c,t-1,n,o,a):at(a,c):o||(a[a.length]=c)}return a}var zr=oa(),Po=oa(!0);function We(e,t){return e&&zr(e,t,te)}function Ur(e,t){return e&&Po(e,t,te)}function Un(e,t){return ot(t,function(n){return je(e[n])})}function St(e,t){t=ct(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Ue(t[n++])];return n&&n==o?e:i}function ko(e,t,n){var o=t(e);return R(e)?o:at(o,n(e))}function le(e){return e==null?e===i?xl:vl:vt&&vt in $(e)?Ap(e):Wp(e)}function Gr(e,t){return e>t}function qu(e,t){return e!=null&&G.call(e,t)}function Vu(e,t){return e!=null&&t in $(e)}function Yu(e,t,n){return e>=ie(t,n)&&e<ee(t,n)}function $r(e,t,n){for(var o=n?Ir:wn,a=e[0].length,s=e.length,p=s,c=m(s),d=1/0,b=[];p--;){var x=e[p];p&&t&&(x=V(x,ve(t))),d=ie(x.length,d),c[p]=!n&&(t||a>=120&&x.length>=120)?new xt(p&&x):i}x=e[0];var w=-1,C=c[0];e:for(;++w<a&&b.length<d;){var A=x[w],T=t?t(A):A;if(A=n||A!==0?A:0,!(C?Qt(C,T):o(b,T,n))){for(p=s;--p;){var k=c[p];if(!(k?Qt(k,T):o(e[p],T,n)))continue e}C&&C.push(T),b.push(A)}}return b}function Xu(e,t,n,o){return We(e,function(a,s,p){t(o,n(a),s,p)}),o}function ln(e,t,n){t=ct(t,e),e=Sa(e,t);var o=e==null?e:e[Ue(Be(t))];return o==null?i:ye(o,e,n)}function Ho(e){return X(e)&&le(e)==At}function Ju(e){return X(e)&&le(e)==Zt}function Zu(e){return X(e)&&le(e)==qt}function sn(e,t,n,o,a){return e===t?!0:e==null||t==null||!X(e)&&!X(t)?e!==e&&t!==t:Qu(e,t,n,o,sn,a)}function Qu(e,t,n,o,a,s){var p=R(e),c=R(t),d=p?mn:oe(e),b=c?mn:oe(t);d=d==At?qe:d,b=b==At?qe:b;var x=d==qe,w=b==qe,C=d==b;if(C&&dt(e)){if(!dt(t))return!1;p=!0,x=!1}if(C&&!x)return s||(s=new ke),p||zt(e)?ha(e,t,n,o,a,s):Lp(e,t,d,n,o,a,s);if(!(n&U)){var A=x&&G.call(e,"__wrapped__"),T=w&&G.call(t,"__wrapped__");if(A||T){var k=A?e.value():e,B=T?t.value():t;return s||(s=new ke),a(k,B,n,o,s)}}return C?(s||(s=new ke),Ip(e,t,n,o,a,s)):!1}function ju(e){return X(e)&&oe(e)==Re}function Kr(e,t,n,o){var a=n.length,s=a,p=!o;if(e==null)return!s;for(e=$(e);a--;){var c=n[a];if(p&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){c=n[a];var d=c[0],b=e[d],x=c[1];if(p&&c[2]){if(b===i&&!(d in e))return!1}else{var w=new ke;if(o)var C=o(b,x,d,e,t,w);if(!(C===i?sn(x,b,U|gt,o,w):C))return!1}}return!0}function Mo(e){if(!Y(e)||kp(e))return!1;var t=je(e)?js:Gl;return t.test(Ct(e))}function ep(e){return X(e)&&le(e)==Yt}function tp(e){return X(e)&&oe(e)==De}function np(e){return X(e)&&or(e.length)&&!!q[le(e)]}function No(e){return typeof e=="function"?e:e==null?de:typeof e=="object"?R(e)?zo(e[0],e[1]):Wo(e):al(e)}function qr(e){if(!cn(e))return ou(e);var t=[];for(var n in $(e))G.call(e,n)&&n!="constructor"&&t.push(n);return t}function rp(e){if(!Y(e))return Op(e);var t=cn(e),n=[];for(var o in e)o=="constructor"&&(t||!G.call(e,o))||n.push(o);return n}function Vr(e,t){return e<t}function Oo(e,t){var n=-1,o=ce(e)?m(e.length):[];return ut(e,function(a,s,p){o[++n]=t(a,s,p)}),o}function Wo(e){var t=si(e);return t.length==1&&t[0][2]?xa(t[0][0],t[0][1]):function(n){return n===e||Kr(n,e,t)}}function zo(e,t){return pi(e)&&ba(t)?xa(Ue(e),t):function(n){var o=xi(n,e);return o===i&&o===t?_i(n,e):sn(t,o,U|gt)}}function Gn(e,t,n,o,a){e!==t&&zr(t,function(s,p){if(a||(a=new ke),Y(s))ip(e,t,p,n,Gn,o,a);else{var c=o?o(fi(e,p),s,p+"",e,t,a):i;c===i&&(c=s),Or(e,p,c)}},fe)}function ip(e,t,n,o,a,s,p){var c=fi(e,n),d=fi(t,n),b=p.get(d);if(b){Or(e,n,b);return}var x=s?s(c,d,n+"",e,t,p):i,w=x===i;if(w){var C=R(d),A=!C&&dt(d),T=!C&&!A&&zt(d);x=d,C||A||T?R(c)?x=c:J(c)?x=pe(c):A?(w=!1,x=jo(d,!0)):T?(w=!1,x=ea(d,!0)):x=[]:dn(d)||Lt(d)?(x=c,Lt(c)?x=Ja(c):(!Y(c)||je(c))&&(x=va(d))):w=!1}w&&(p.set(d,x),a(x,d,o,s,p),p.delete(d)),Or(e,n,x)}function Uo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Qe(t,n)?e[t]:i}function Go(e,t,n){t.length?t=V(t,function(s){return R(s)?function(p){return St(p,s.length===1?s[0]:s)}:s}):t=[de];var o=-1;t=V(t,ve(F()));var a=Oo(e,function(s,p,c){var d=V(t,function(b){return b(s)});return{criteria:d,index:++o,value:s}});return Es(a,function(s,p){return yp(s,p,n)})}function op(e,t){return $o(e,t,function(n,o){return _i(e,o)})}function $o(e,t,n){for(var o=-1,a=t.length,s={};++o<a;){var p=t[o],c=St(e,p);n(c,p)&&un(s,ct(p,e),c)}return s}function ap(e){return function(t){return St(t,e)}}function Yr(e,t,n,o){var a=o?Bs:Bt,s=-1,p=t.length,c=e;for(e===t&&(t=pe(t)),n&&(c=V(e,ve(n)));++s<p;)for(var d=0,b=t[s],x=n?n(b):b;(d=a(c,x,d,o))>-1;)c!==e&&Dn.call(c,d,1),Dn.call(e,d,1);return e}function Ko(e,t){for(var n=e?t.length:0,o=n-1;n--;){var a=t[n];if(n==o||a!==s){var s=a;Qe(a)?Dn.call(e,a,1):Qr(e,a)}}return e}function Xr(e,t){return e+Hn(Lo()*(t-e+1))}function lp(e,t,n,o){for(var a=-1,s=ee(kn((t-e)/(n||1)),0),p=m(s);s--;)p[o?s:++a]=e,e+=n;return p}function Jr(e,t){var n="";if(!e||t<1||t>it)return n;do t%2&&(n+=e),t=Hn(t/2),t&&(e+=e);while(t);return n}function H(e,t){return di(_a(e,t,de),e+"")}function sp(e){return Fo(Ut(e))}function up(e,t){var n=Ut(e);return jn(n,_t(t,0,n.length))}function un(e,t,n,o){if(!Y(e))return e;t=ct(t,e);for(var a=-1,s=t.length,p=s-1,c=e;c!=null&&++a<s;){var d=Ue(t[a]),b=n;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(a!=p){var x=c[d];b=o?o(x,d,c):i,b===i&&(b=Y(x)?x:Qe(t[a+1])?[]:{})}on(c,d,b),c=c[d]}return e}var qo=Mn?function(e,t){return Mn.set(e,t),e}:de,pp=Pn?function(e,t){return Pn(e,"toString",{configurable:!0,enumerable:!1,value:wi(t),writable:!0})}:de;function cp(e){return jn(Ut(e))}function Te(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=m(a);++o<a;)s[o]=e[o+t];return s}function fp(e,t){var n;return ut(e,function(o,a,s){return n=t(o,a,s),!n}),!!n}function $n(e,t,n){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=gl){for(;o<a;){var s=o+a>>>1,p=e[s];p!==null&&!xe(p)&&(n?p<=t:p<t)?o=s+1:a=s}return a}return Zr(e,t,de,n)}function Zr(e,t,n,o){var a=0,s=e==null?0:e.length;if(s===0)return 0;t=n(t);for(var p=t!==t,c=t===null,d=xe(t),b=t===i;a<s;){var x=Hn((a+s)/2),w=n(e[x]),C=w!==i,A=w===null,T=w===w,k=xe(w);if(p)var B=o||T;else b?B=T&&(o||C):c?B=T&&C&&(o||!A):d?B=T&&C&&!A&&(o||!k):A||k?B=!1:B=o?w<=t:w<t;B?a=x+1:s=x}return ie(s,dl)}function Vo(e,t){for(var n=-1,o=e.length,a=0,s=[];++n<o;){var p=e[n],c=t?t(p):p;if(!n||!He(c,d)){var d=c;s[a++]=p===0?0:p}}return s}function Yo(e){return typeof e=="number"?e:xe(e)?hn:+e}function be(e){if(typeof e=="string")return e;if(R(e))return V(e,be)+"";if(xe(e))return Io?Io.call(e):"";var t=e+"";return t=="0"&&1/e==-mt?"-0":t}function pt(e,t,n){var o=-1,a=wn,s=e.length,p=!0,c=[],d=c;if(n)p=!1,a=Ir;else if(s>=g){var b=t?null:wp(e);if(b)return Ln(b);p=!1,a=Qt,d=new xt}else d=t?[]:c;e:for(;++o<s;){var x=e[o],w=t?t(x):x;if(x=n||x!==0?x:0,p&&w===w){for(var C=d.length;C--;)if(d[C]===w)continue e;t&&d.push(w),c.push(x)}else a(d,w,n)||(d!==c&&d.push(w),c.push(x))}return c}function Qr(e,t){return t=ct(t,e),e=Sa(e,t),e==null||delete e[Ue(Be(t))]}function Xo(e,t,n,o){return un(e,t,n(St(e,t)),o)}function Kn(e,t,n,o){for(var a=e.length,s=o?a:-1;(o?s--:++s<a)&&t(e[s],s,e););return n?Te(e,o?0:s,o?s+1:a):Te(e,o?s+1:0,o?a:s)}function Jo(e,t){var n=e;return n instanceof N&&(n=n.value()),Ar(t,function(o,a){return a.func.apply(a.thisArg,at([o],a.args))},n)}function jr(e,t,n){var o=e.length;if(o<2)return o?pt(e[0]):[];for(var a=-1,s=m(o);++a<o;)for(var p=e[a],c=-1;++c<o;)c!=a&&(s[a]=an(s[a]||p,e[c],t,n));return pt(re(s,1),t,n)}function Zo(e,t,n){for(var o=-1,a=e.length,s=t.length,p={};++o<a;){var c=o<s?t[o]:i;n(p,e[o],c)}return p}function ei(e){return J(e)?e:[]}function ti(e){return typeof e=="function"?e:de}function ct(e,t){return R(e)?e:pi(e,t)?[e]:Ia(z(e))}var dp=H;function ft(e,t,n){var o=e.length;return n=n===i?o:n,!t&&n>=o?e:Te(e,t,n)}var Qo=eu||function(e){return ne.clearTimeout(e)};function jo(e,t){if(t)return e.slice();var n=e.length,o=xo?xo(n):new e.constructor(n);return e.copy(o),o}function ni(e){var t=new e.constructor(e.byteLength);return new En(t).set(new En(e)),t}function gp(e,t){var n=t?ni(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function hp(e){var t=new e.constructor(e.source,ki.exec(e));return t.lastIndex=e.lastIndex,t}function mp(e){return rn?$(rn.call(e)):{}}function ea(e,t){var n=t?ni(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ta(e,t){if(e!==t){var n=e!==i,o=e===null,a=e===e,s=xe(e),p=t!==i,c=t===null,d=t===t,b=xe(t);if(!c&&!b&&!s&&e>t||s&&p&&d&&!c&&!b||o&&p&&d||!n&&d||!a)return 1;if(!o&&!s&&!b&&e<t||b&&n&&a&&!o&&!s||c&&n&&a||!p&&a||!d)return-1}return 0}function yp(e,t,n){for(var o=-1,a=e.criteria,s=t.criteria,p=a.length,c=n.length;++o<p;){var d=ta(a[o],s[o]);if(d){if(o>=c)return d;var b=n[o];return d*(b=="desc"?-1:1)}}return e.index-t.index}function na(e,t,n,o){for(var a=-1,s=e.length,p=n.length,c=-1,d=t.length,b=ee(s-p,0),x=m(d+b),w=!o;++c<d;)x[c]=t[c];for(;++a<p;)(w||a<s)&&(x[n[a]]=e[a]);for(;b--;)x[c++]=e[a++];return x}function ra(e,t,n,o){for(var a=-1,s=e.length,p=-1,c=n.length,d=-1,b=t.length,x=ee(s-c,0),w=m(x+b),C=!o;++a<x;)w[a]=e[a];for(var A=a;++d<b;)w[A+d]=t[d];for(;++p<c;)(C||a<s)&&(w[A+n[p]]=e[a++]);return w}function pe(e,t){var n=-1,o=e.length;for(t||(t=m(o));++n<o;)t[n]=e[n];return t}function ze(e,t,n,o){var a=!n;n||(n={});for(var s=-1,p=t.length;++s<p;){var c=t[s],d=o?o(n[c],e[c],c,n,e):i;d===i&&(d=e[c]),a?Xe(n,c,d):on(n,c,d)}return n}function vp(e,t){return ze(e,ui(e),t)}function bp(e,t){return ze(e,ma(e),t)}function qn(e,t){return function(n,o){var a=R(n)?Cs:zu,s=t?t():{};return a(n,e,F(o,2),s)}}function Nt(e){return H(function(t,n){var o=-1,a=n.length,s=a>1?n[a-1]:i,p=a>2?n[2]:i;for(s=e.length>3&&typeof s=="function"?(a--,s):i,p&&se(n[0],n[1],p)&&(s=a<3?i:s,a=1),t=$(t);++o<a;){var c=n[o];c&&e(t,c,o,s)}return t})}function ia(e,t){return function(n,o){if(n==null)return n;if(!ce(n))return e(n,o);for(var a=n.length,s=t?a:-1,p=$(n);(t?s--:++s<a)&&o(p[s],s,p)!==!1;);return n}}function oa(e){return function(t,n,o){for(var a=-1,s=$(t),p=o(t),c=p.length;c--;){var d=p[e?c:++a];if(n(s[d],d,s)===!1)break}return t}}function xp(e,t,n){var o=t&ae,a=pn(e);function s(){var p=this&&this!==ne&&this instanceof s?a:e;return p.apply(o?n:this,arguments)}return s}function aa(e){return function(t){t=z(t);var n=Et(t)?Pe(t):i,o=n?n[0]:t.charAt(0),a=n?ft(n,1).join(""):t.slice(1);return o[e]()+a}}function Ot(e){return function(t){return Ar(il(rl(t).replace(ps,"")),e,"")}}function pn(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 n=Mt(e.prototype),o=e.apply(n,t);return Y(o)?o:n}}function _p(e,t,n){var o=pn(e);function a(){for(var s=arguments.length,p=m(s),c=s,d=Wt(a);c--;)p[c]=arguments[c];var b=s<3&&p[0]!==d&&p[s-1]!==d?[]:lt(p,d);if(s-=b.length,s<n)return ca(e,t,Vn,a.placeholder,i,p,b,i,i,n-s);var x=this&&this!==ne&&this instanceof a?o:e;return ye(x,this,p)}return a}function la(e){return function(t,n,o){var a=$(t);if(!ce(t)){var s=F(n,3);t=te(t),n=function(c){return s(a[c],c,a)}}var p=e(t,n,o);return p>-1?a[s?t[p]:p]:i}}function sa(e){return Ze(function(t){var n=t.length,o=n,a=Ae.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if(typeof s!="function")throw new Ie(v);if(a&&!p&&Zn(s)=="wrapper")var p=new Ae([],!0)}for(o=p?o:n;++o<n;){s=t[o];var c=Zn(s),d=c=="wrapper"?li(s):i;d&&ci(d[0])&&d[1]==(we|he|me|rt)&&!d[4].length&&d[9]==1?p=p[Zn(d[0])].apply(p,d[3]):p=s.length==1&&ci(s)?p[c]():p.thru(s)}return function(){var b=arguments,x=b[0];if(p&&b.length==1&&R(x))return p.plant(x).value();for(var w=0,C=n?t[w].apply(this,b):x;++w<n;)C=t[w].call(this,C);return C}})}function Vn(e,t,n,o,a,s,p,c,d,b){var x=t&we,w=t&ae,C=t&Ne,A=t&(he|$e),T=t&It,k=C?i:pn(e);function B(){for(var M=arguments.length,O=m(M),_e=M;_e--;)O[_e]=arguments[_e];if(A)var ue=Wt(B),Se=Ds(O,ue);if(o&&(O=na(O,o,a,A)),s&&(O=ra(O,s,p,A)),M-=Se,A&&M<b){var Z=lt(O,ue);return ca(e,t,Vn,B.placeholder,n,O,Z,c,d,b-M)}var Me=w?n:this,tt=C?Me[e]:e;return M=O.length,c?O=zp(O,c):T&&M>1&&O.reverse(),x&&d<M&&(O.length=d),this&&this!==ne&&this instanceof B&&(tt=k||pn(tt)),tt.apply(Me,O)}return B}function ua(e,t){return function(n,o){return Xu(n,e,t(o),{})}}function Yn(e,t){return function(n,o){var a;if(n===i&&o===i)return t;if(n!==i&&(a=n),o!==i){if(a===i)return o;typeof n=="string"||typeof o=="string"?(n=be(n),o=be(o)):(n=Yo(n),o=Yo(o)),a=e(n,o)}return a}}function ri(e){return Ze(function(t){return t=V(t,ve(F())),H(function(n){var o=this;return e(t,function(a){return ye(a,o,n)})})})}function Xn(e,t){t=t===i?" ":be(t);var n=t.length;if(n<2)return n?Jr(t,e):t;var o=Jr(t,kn(e/Rt(t)));return Et(t)?ft(Pe(o),0,e).join(""):o.slice(0,e)}function Sp(e,t,n,o){var a=t&ae,s=pn(e);function p(){for(var c=-1,d=arguments.length,b=-1,x=o.length,w=m(x+d),C=this&&this!==ne&&this instanceof p?s:e;++b<x;)w[b]=o[b];for(;d--;)w[b++]=arguments[++c];return ye(C,a?n:this,w)}return p}function pa(e){return function(t,n,o){return o&&typeof o!="number"&&se(t,n,o)&&(n=o=i),t=et(t),n===i?(n=t,t=0):n=et(n),o=o===i?t<n?1:-1:et(o),lp(t,n,o,e)}}function Jn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Ee(t),n=Ee(n)),e(t,n)}}function ca(e,t,n,o,a,s,p,c,d,b){var x=t&he,w=x?p:i,C=x?i:p,A=x?s:i,T=x?i:s;t|=x?me:Ke,t&=~(x?Ke:me),t&$t||(t&=~(ae|Ne));var k=[e,t,a,A,w,T,C,c,d,b],B=n.apply(i,k);return ci(e)&&wa(B,k),B.placeholder=o,Ca(B,e,t)}function ii(e){var t=j[e];return function(n,o){if(n=Ee(n),o=o==null?0:ie(D(o),292),o&&Co(n)){var a=(z(n)+"e").split("e"),s=t(a[0]+"e"+(+a[1]+o));return a=(z(s)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(n)}}var wp=kt&&1/Ln(new kt([,-0]))[1]==mt?function(e){return new kt(e)}:Ii;function fa(e){return function(t){var n=oe(t);return n==Re?Pr(t):n==De?Ws(t):Rs(t,e(t))}}function Je(e,t,n,o,a,s,p,c){var d=t&Ne;if(!d&&typeof e!="function")throw new Ie(v);var b=o?o.length:0;if(b||(t&=~(me|Ke),o=a=i),p=p===i?p:ee(D(p),0),c=c===i?c:D(c),b-=a?a.length:0,t&Ke){var x=o,w=a;o=a=i}var C=d?i:li(e),A=[e,t,n,o,a,x,w,s,p,c];if(C&&Np(A,C),e=A[0],t=A[1],n=A[2],o=A[3],a=A[4],c=A[9]=A[9]===i?d?0:e.length:ee(A[9]-b,0),!c&&t&(he|$e)&&(t&=~(he|$e)),!t||t==ae)var T=xp(e,t,n);else t==he||t==$e?T=_p(e,t,c):(t==me||t==(ae|me))&&!a.length?T=Sp(e,t,n,o):T=Vn.apply(i,A);var k=C?qo:wa;return Ca(k(T,A),e,t)}function da(e,t,n,o){return e===i||He(e,Pt[n])&&!G.call(o,n)?t:e}function ga(e,t,n,o,a,s){return Y(e)&&Y(t)&&(s.set(t,e),Gn(e,t,i,ga,s),s.delete(t)),e}function Cp(e){return dn(e)?i:e}function ha(e,t,n,o,a,s){var p=n&U,c=e.length,d=t.length;if(c!=d&&!(p&&d>c))return!1;var b=s.get(e),x=s.get(t);if(b&&x)return b==t&&x==e;var w=-1,C=!0,A=n&gt?new xt:i;for(s.set(e,t),s.set(t,e);++w<c;){var T=e[w],k=t[w];if(o)var B=p?o(k,T,w,t,e,s):o(T,k,w,e,t,s);if(B!==i){if(B)continue;C=!1;break}if(A){if(!Fr(t,function(M,O){if(!Qt(A,O)&&(T===M||a(T,M,n,o,s)))return A.push(O)})){C=!1;break}}else if(!(T===k||a(T,k,n,o,s))){C=!1;break}}return s.delete(e),s.delete(t),C}function Lp(e,t,n,o,a,s,p){switch(n){case Ft:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!s(new En(e),new En(t)));case Kt:case qt:case Vt:return He(+e,+t);case yn:return e.name==t.name&&e.message==t.message;case Yt:case Xt:return e==t+"";case Re:var c=Pr;case De:var d=o&U;if(c||(c=Ln),e.size!=t.size&&!d)return!1;var b=p.get(e);if(b)return b==t;o|=gt,p.set(e,t);var x=ha(c(e),c(t),o,a,s,p);return p.delete(e),x;case bn:if(rn)return rn.call(e)==rn.call(t)}return!1}function Ip(e,t,n,o,a,s){var p=n&U,c=oi(e),d=c.length,b=oi(t),x=b.length;if(d!=x&&!p)return!1;for(var w=d;w--;){var C=c[w];if(!(p?C in t:G.call(t,C)))return!1}var A=s.get(e),T=s.get(t);if(A&&T)return A==t&&T==e;var k=!0;s.set(e,t),s.set(t,e);for(var B=p;++w<d;){C=c[w];var M=e[C],O=t[C];if(o)var _e=p?o(O,M,C,t,e,s):o(M,O,C,e,t,s);if(!(_e===i?M===O||a(M,O,n,o,s):_e)){k=!1;break}B||(B=C=="constructor")}if(k&&!B){var ue=e.constructor,Se=t.constructor;ue!=Se&&"constructor"in e&&"constructor"in t&&!(typeof ue=="function"&&ue instanceof ue&&typeof Se=="function"&&Se instanceof Se)&&(k=!1)}return s.delete(e),s.delete(t),k}function Ze(e){return di(_a(e,i,Ba),e+"")}function oi(e){return ko(e,te,ui)}function ai(e){return ko(e,fe,ma)}var li=Mn?function(e){return Mn.get(e)}:Ii;function Zn(e){for(var t=e.name+"",n=Ht[t],o=G.call(Ht,t)?n.length:0;o--;){var a=n[o],s=a.func;if(s==null||s==e)return a.name}return t}function Wt(e){var t=G.call(l,"placeholder")?l:e;return t.placeholder}function F(){var e=l.iteratee||Ci;return e=e===Ci?No:e,arguments.length?e(arguments[0],arguments[1]):e}function Qn(e,t){var n=e.__data__;return Pp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function si(e){for(var t=te(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,ba(a)]}return t}function wt(e,t){var n=Ms(e,t);return Mo(n)?n:i}function Ap(e){var t=G.call(e,vt),n=e[vt];try{e[vt]=i;var o=!0}catch{}var a=Tn.call(e);return o&&(t?e[vt]=n:delete e[vt]),a}var ui=Hr?function(e){return e==null?[]:(e=$(e),ot(Hr(e),function(t){return So.call(e,t)}))}:Ai,ma=Hr?function(e){for(var t=[];e;)at(t,ui(e)),e=Rn(e);return t}:Ai,oe=le;(Mr&&oe(new Mr(new ArrayBuffer(1)))!=Ft||en&&oe(new en)!=Re||Nr&&oe(Nr.resolve())!=Ei||kt&&oe(new kt)!=De||tn&&oe(new tn)!=Jt)&&(oe=function(e){var t=le(e),n=t==qe?e.constructor:i,o=n?Ct(n):"";if(o)switch(o){case uu:return Ft;case pu:return Re;case cu:return Ei;case fu:return De;case du:return Jt}return t});function Fp(e,t,n){for(var o=-1,a=n.length;++o<a;){var s=n[o],p=s.size;switch(s.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=ie(t,e+p);break;case"takeRight":e=ee(e,t-p);break}}return{start:e,end:t}}function Tp(e){var t=e.match(kl);return t?t[1].split(Hl):[]}function ya(e,t,n){t=ct(t,e);for(var o=-1,a=t.length,s=!1;++o<a;){var p=Ue(t[o]);if(!(s=e!=null&&n(e,p)))break;e=e[p]}return s||++o!=a?s:(a=e==null?0:e.length,!!a&&or(a)&&Qe(p,a)&&(R(e)||Lt(e)))}function Bp(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&G.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function va(e){return typeof e.constructor=="function"&&!cn(e)?Mt(Rn(e)):{}}function Ep(e,t,n){var o=e.constructor;switch(t){case Zt:return ni(e);case Kt:case qt:return new o(+e);case Ft:return gp(e,n);case sr:case ur:case pr:case cr:case fr:case dr:case gr:case hr:case mr:return ea(e,n);case Re:return new o;case Vt:case Xt:return new o(e);case Yt:return hp(e);case De:return new o;case bn:return mp(e)}}function Rp(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(Pl,`{
9
9
  /* [wrapped with `+t+`] */
10
- `)}function Dp(e){return R(e)||Lt(e)||!!(So&&e&&e[So])}function Qe(e,t){var n=typeof e;return t=t==null?it:t,!!t&&(n=="number"||n!="symbol"&&Kl.test(e))&&e>-1&&e%1==0&&e<t}function se(e,t,n){if(!Y(n))return!1;var o=typeof t;return(o=="number"?ce(n)&&Qe(t,n.length):o=="string"&&t in n)?He(n[t],e):!1}function ui(e,t){if(R(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||xe(e)?!0:Bl.test(e)||!Tl.test(e)||t!=null&&e in $(t)}function Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function pi(e){var t=Jn(e),n=l[t];if(typeof n!="function"||!(t in O.prototype))return!1;if(e===n)return!0;var o=ai(n);return!!o&&e===o[0]}function kp(e){return!!vo&&vo in e}var Hp=In?je:Ai;function cn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Pt;return e===n}function va(e){return e===e&&!Y(e)}function ba(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==i||e in $(n))}}function Mp(e){var t=nr(e,function(o){return n.size===Q&&n.clear(),o}),n=t.cache;return t}function Op(e,t){var n=e[1],o=t[1],a=n|o,s=a<(ae|Oe|we),p=o==we&&n==he||o==we&&n==rt&&e[7].length<=t[8]||o==(we|rt)&&t[7].length<=t[8]&&n==he;if(!(s||p))return e;o&ae&&(e[2]=t[2],a|=n&ae?0:$t);var c=t[3];if(c){var d=e[3];e[3]=d?ta(d,c,t[4]):c,e[4]=d?lt(e[3],nt):t[4]}return c=t[5],c&&(d=e[5],e[5]=d?na(d,c,t[6]):c,e[6]=d?lt(e[5],nt):t[6]),c=t[7],c&&(e[7]=c),o&we&&(e[8]=e[8]==null?t[8]:ie(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Np(e){var t=[];if(e!=null)for(var n in $(e))t.push(n);return t}function Wp(e){return Fn.call(e)}function xa(e,t,n){return t=ee(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=ee(o.length-t,0),p=m(s);++a<s;)p[a]=o[t+a];a=-1;for(var c=m(t+1);++a<t;)c[a]=o[a];return c[t]=n(p),ye(e,this,c)}}function _a(e,t){return t.length<2?e:St(e,Te(t,0,-1))}function zp(e,t){for(var n=e.length,o=ie(t.length,n),a=pe(e);o--;){var s=t[o];e[o]=Qe(s,n)?a[s]:i}return e}function ci(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Sa=Ca(Ko),fn=nu||function(e,t){return ne.setTimeout(e,t)},fi=Ca(pp);function wa(e,t,n){var o=t+"";return fi(e,Rp(o,Up(Tp(o),n)))}function Ca(e){var t=0,n=0;return function(){var o=au(),a=ul-(o-n);if(n=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Qn(e,t){var n=-1,o=e.length,a=o-1;for(t=t===i?o:t;++n<t;){var s=Yr(n,a),p=e[s];e[s]=e[n],e[n]=p}return e.length=t,e}var La=Mp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(El,function(n,o,a,s){t.push(a?s.replace(Nl,"$1"):o||n)}),t});function Ue(e){if(typeof e=="string"||xe(e))return e;var t=e+"";return t=="0"&&1/e==-mt?"-0":t}function Ct(e){if(e!=null){try{return An.call(e)}catch{}try{return e+""}catch{}}return""}function Up(e,t){return Le(hl,function(n){var o="_."+n[0];t&n[1]&&!Sn(e,o)&&e.push(o)}),e.sort()}function Ia(e){if(e instanceof O)return e.clone();var t=new Ae(e.__wrapped__,e.__chain__);return t.__actions__=pe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gp(e,t,n){(n?se(e,t,n):t===i)?t=1:t=ee(D(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,p=m(Pn(o/t));a<o;)p[s++]=Te(e,a,a+=t);return p}function $p(e){for(var t=-1,n=e==null?0:e.length,o=0,a=[];++t<n;){var s=e[t];s&&(a[o++]=s)}return a}function Kp(){var e=arguments.length;if(!e)return[];for(var t=m(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return at(R(n)?pe(n):[n],re(t,1))}var qp=H(function(e,t){return J(e)?an(e,re(t,1,J,!0)):[]}),Vp=H(function(e,t){var n=Be(t);return J(n)&&(n=i),J(e)?an(e,re(t,1,J,!0),F(n,2)):[]}),Yp=H(function(e,t){var n=Be(t);return J(n)&&(n=i),J(e)?an(e,re(t,1,J,!0),i,n):[]});function Xp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:D(t),Te(e,t<0?0:t,o)):[]}function Jp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:D(t),t=o-t,Te(e,0,t<0?0:t)):[]}function Zp(e,t){return e&&e.length?$n(e,F(t,3),!0,!0):[]}function Qp(e,t){return e&&e.length?$n(e,F(t,3),!0):[]}function jp(e,t,n,o){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&se(e,t,n)&&(n=0,o=a),Ku(e,t,n,o)):[]}function Aa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:D(n);return a<0&&(a=ee(o+a,0)),wn(e,F(t,3),a)}function Fa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return n!==i&&(a=D(n),a=n<0?ee(o+a,0):ie(a,o-1)),wn(e,F(t,3),a,!0)}function Ta(e){var t=e==null?0:e.length;return t?re(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?re(e,mt):[]}function tc(e,t){var n=e==null?0:e.length;return n?(t=t===i?1:D(t),re(e,t)):[]}function nc(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var a=e[t];o[a[0]]=a[1]}return o}function Ba(e){return e&&e.length?e[0]:i}function rc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:D(n);return a<0&&(a=ee(o+a,0)),Bt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Te(e,0,-1):[]}var oc=H(function(e){var t=V(e,jr);return t.length&&t[0]===e[0]?Gr(t):[]}),ac=H(function(e){var t=Be(e),n=V(e,jr);return t===Be(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Gr(n,F(t,2)):[]}),lc=H(function(e){var t=Be(e),n=V(e,jr);return t=typeof t=="function"?t:i,t&&n.pop(),n.length&&n[0]===e[0]?Gr(n,i,t):[]});function sc(e,t){return e==null?"":iu.call(e,t)}function Be(e){var t=e==null?0:e.length;return t?e[t-1]:i}function uc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o;return n!==i&&(a=D(n),a=a<0?ee(o+a,0):ie(a,o-1)),t===t?Us(e,t,a):wn(e,uo,a,!0)}function pc(e,t){return e&&e.length?zo(e,D(t)):i}var cc=H(Ea);function Ea(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}function fc(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,F(n,2)):e}function dc(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,i,n):e}var gc=Ze(function(e,t){var n=e==null?0:e.length,o=Nr(e,t);return $o(e,V(t,function(a){return Qe(a,n)?+a:a}).sort(ea)),o});function hc(e,t){var n=[];if(!(e&&e.length))return n;var o=-1,a=[],s=e.length;for(t=F(t,3);++o<s;){var p=e[o];t(p,o,e)&&(n.push(p),a.push(o))}return $o(e,a),n}function di(e){return e==null?e:su.call(e)}function mc(e,t,n){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&se(e,t,n)?(t=0,n=o):(t=t==null?0:D(t),n=n===i?o:D(n)),Te(e,t,n)):[]}function yc(e,t){return Gn(e,t)}function vc(e,t,n){return Jr(e,t,F(n,2))}function bc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t);if(o<n&&He(e[o],t))return o}return-1}function xc(e,t){return Gn(e,t,!0)}function _c(e,t,n){return Jr(e,t,F(n,2),!0)}function Sc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t,!0)-1;if(He(e[o],t))return o}return-1}function wc(e){return e&&e.length?qo(e):[]}function Cc(e,t){return e&&e.length?qo(e,F(t,2)):[]}function Lc(e){var t=e==null?0:e.length;return t?Te(e,1,t):[]}function Ic(e,t,n){return e&&e.length?(t=n||t===i?1:D(t),Te(e,0,t<0?0:t)):[]}function Ac(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:D(t),t=o-t,Te(e,t<0?0:t,o)):[]}function Fc(e,t){return e&&e.length?$n(e,F(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?$n(e,F(t,3)):[]}var Bc=H(function(e){return pt(re(e,1,J,!0))}),Ec=H(function(e){var t=Be(e);return J(t)&&(t=i),pt(re(e,1,J,!0),F(t,2))}),Rc=H(function(e){var t=Be(e);return t=typeof t=="function"?t:i,pt(re(e,1,J,!0),i,t)});function Dc(e){return e&&e.length?pt(e):[]}function Pc(e,t){return e&&e.length?pt(e,F(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?pt(e,i,t):[]}function gi(e){if(!(e&&e.length))return[];var t=0;return e=ot(e,function(n){if(J(n))return t=ee(n.length,t),!0}),Er(t,function(n){return V(e,Fr(n))})}function Ra(e,t){if(!(e&&e.length))return[];var n=gi(e);return t==null?n:V(n,function(o){return ye(t,i,o)})}var Hc=H(function(e,t){return J(e)?an(e,t):[]}),Mc=H(function(e){return Qr(ot(e,J))}),Oc=H(function(e){var t=Be(e);return J(t)&&(t=i),Qr(ot(e,J),F(t,2))}),Nc=H(function(e){var t=Be(e);return t=typeof t=="function"?t:i,Qr(ot(e,J),i,t)}),Wc=H(gi);function zc(e,t){return Jo(e||[],t||[],on)}function Uc(e,t){return Jo(e||[],t||[],un)}var Gc=H(function(e){var t=e.length,n=t>1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Ra(e,n)});function Da(e){var t=l(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function jn(e,t){return t(e)}var Kc=Ze(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,a=function(s){return Nr(s,e)};return t>1||this.__actions__.length||!(o instanceof O)||!Qe(n)?this.thru(a):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:jn,args:[a],thisArg:i}),new Ae(o,this.__chain__).thru(function(s){return t&&!s.length&&s.push(i),s}))});function qc(){return Da(this)}function Vc(){return new Ae(this.value(),this.__chain__)}function Yc(){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 Xc(){return this}function Jc(e){for(var t,n=this;n instanceof On;){var o=Ia(n);o.__index__=0,o.__values__=i,t?a.__wrapped__=o:t=o;var a=o;n=n.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof O){var t=e;return this.__actions__.length&&(t=new O(this)),t=t.reverse(),t.__actions__.push({func:jn,args:[di],thisArg:i}),new Ae(t,this.__chain__)}return this.thru(di)}function Qc(){return Xo(this.__wrapped__,this.__actions__)}var jc=Kn(function(e,t,n){G.call(e,n)?++e[n]:Xe(e,n,1)});function ef(e,t,n){var o=R(e)?lo:$u;return n&&se(e,t,n)&&(t=i),o(e,F(t,3))}function tf(e,t){var n=R(e)?ot:Ro;return n(e,F(t,3))}var nf=aa(Aa),rf=aa(Fa);function of(e,t){return re(er(e,t),1)}function af(e,t){return re(er(e,t),mt)}function lf(e,t,n){return n=n===i?1:D(n),re(er(e,t),n)}function Pa(e,t){var n=R(e)?Le:ut;return n(e,F(t,3))}function ka(e,t){var n=R(e)?Ls:Eo;return n(e,F(t,3))}var sf=Kn(function(e,t,n){G.call(e,n)?e[n].push(t):Xe(e,n,[t])});function uf(e,t,n,o){e=ce(e)?e:Ut(e),n=n&&!o?D(n):0;var a=e.length;return n<0&&(n=ee(a+n,0)),or(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Bt(e,t,n)>-1}var pf=H(function(e,t,n){var o=-1,a=typeof t=="function",s=ce(e)?m(e.length):[];return ut(e,function(p){s[++o]=a?ye(t,p,n):ln(p,t,n)}),s}),cf=Kn(function(e,t,n){Xe(e,n,t)});function er(e,t){var n=R(e)?V:Oo;return n(e,F(t,3))}function ff(e,t,n,o){return e==null?[]:(R(t)||(t=t==null?[]:[t]),n=o?i:n,R(n)||(n=n==null?[]:[n]),Uo(e,t,n))}var df=Kn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function gf(e,t,n){var o=R(e)?Ir:co,a=arguments.length<3;return o(e,F(t,4),n,a,ut)}function hf(e,t,n){var o=R(e)?Is:co,a=arguments.length<3;return o(e,F(t,4),n,a,Eo)}function mf(e,t){var n=R(e)?ot:Ro;return n(e,rr(F(t,3)))}function yf(e){var t=R(e)?Ao:sp;return t(e)}function vf(e,t,n){(n?se(e,t,n):t===i)?t=1:t=D(t);var o=R(e)?Nu:up;return o(e,t)}function bf(e){var t=R(e)?Wu:cp;return t(e)}function xf(e){if(e==null)return 0;if(ce(e))return or(e)?Rt(e):e.length;var t=oe(e);return t==Re||t==De?e.size:Kr(e).length}function _f(e,t,n){var o=R(e)?Ar:fp;return n&&se(e,t,n)&&(t=i),o(e,F(t,3))}var Sf=H(function(e,t){if(e==null)return[];var n=t.length;return n>1&&se(e,t[0],t[1])?t=[]:n>2&&se(t[0],t[1],t[2])&&(t=[t[0]]),Uo(e,re(t,1),[])}),tr=tu||function(){return ne.Date.now()};function wf(e,t){if(typeof t!="function")throw new Ie(v);return e=D(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ha(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Je(e,we,i,i,i,i,t)}function Ma(e,t){var n;if(typeof t!="function")throw new Ie(v);return e=D(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var hi=H(function(e,t,n){var o=ae;if(n.length){var a=lt(n,Wt(hi));o|=me}return Je(e,o,t,n,a)}),Oa=H(function(e,t,n){var o=ae|Oe;if(n.length){var a=lt(n,Wt(Oa));o|=me}return Je(t,o,e,n,a)});function Na(e,t,n){t=n?i:t;var o=Je(e,he,i,i,i,i,i,t);return o.placeholder=Na.placeholder,o}function Wa(e,t,n){t=n?i:t;var o=Je(e,$e,i,i,i,i,i,t);return o.placeholder=Wa.placeholder,o}function za(e,t,n){var o,a,s,p,c,d,b=0,x=!1,w=!1,C=!0;if(typeof e!="function")throw new Ie(v);t=Ee(t)||0,Y(n)&&(x=!!n.leading,w="maxWait"in n,s=w?ee(Ee(n.maxWait)||0,t):s,C="trailing"in n?!!n.trailing:C);function A(Z){var Me=o,tt=a;return o=a=i,b=Z,p=e.apply(tt,Me),p}function T(Z){return b=Z,c=fn(M,t),x?A(Z):p}function k(Z){var Me=Z-d,tt=Z-b,al=t-Me;return w?ie(al,s-tt):al}function B(Z){var Me=Z-d,tt=Z-b;return d===i||Me>=t||Me<0||w&&tt>=s}function M(){var Z=tr();if(B(Z))return N(Z);c=fn(M,k(Z))}function N(Z){return c=i,C&&o?A(Z):(o=a=i,p)}function _e(){c!==i&&Zo(c),b=0,o=d=a=c=i}function ue(){return c===i?p:N(tr())}function Se(){var Z=tr(),Me=B(Z);if(o=arguments,a=this,d=Z,Me){if(c===i)return T(d);if(w)return Zo(c),c=fn(M,t),A(d)}return c===i&&(c=fn(M,t)),p}return Se.cancel=_e,Se.flush=ue,Se}var Cf=H(function(e,t){return Bo(e,1,t)}),Lf=H(function(e,t,n){return Bo(e,Ee(t)||0,n)});function If(e){return Je(e,It)}function nr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ie(v);var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],s=n.cache;if(s.has(a))return s.get(a);var p=e.apply(this,o);return n.cache=s.set(a,p)||s,p};return n.cache=new(nr.Cache||Ye),n}nr.Cache=Ye;function rr(e){if(typeof e!="function")throw new Ie(v);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 Af(e){return Ma(2,e)}var Ff=dp(function(e,t){t=t.length==1&&R(t[0])?V(t[0],ve(F())):V(re(t,1),ve(F()));var n=t.length;return H(function(o){for(var a=-1,s=ie(o.length,n);++a<s;)o[a]=t[a].call(this,o[a]);return ye(e,this,o)})}),mi=H(function(e,t){var n=lt(t,Wt(mi));return Je(e,me,i,t,n)}),Ua=H(function(e,t){var n=lt(t,Wt(Ua));return Je(e,Ke,i,t,n)}),Tf=Ze(function(e,t){return Je(e,rt,i,i,i,t)});function Bf(e,t){if(typeof e!="function")throw new Ie(v);return t=t===i?t:D(t),H(e,t)}function Ef(e,t){if(typeof e!="function")throw new Ie(v);return t=t==null?0:ee(D(t),0),H(function(n){var o=n[t],a=ft(n,0,t);return o&&at(a,o),ye(e,this,a)})}function Rf(e,t,n){var o=!0,a=!0;if(typeof e!="function")throw new Ie(v);return Y(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),za(e,t,{leading:o,maxWait:t,trailing:a})}function Df(e){return Ha(e,1)}function Pf(e,t){return mi(ei(t),e)}function kf(){if(!arguments.length)return[];var e=arguments[0];return R(e)?e:[e]}function Hf(e){return Fe(e,U)}function Mf(e,t){return t=typeof t=="function"?t:i,Fe(e,U,t)}function Of(e){return Fe(e,ge|U)}function Nf(e,t){return t=typeof t=="function"?t:i,Fe(e,ge|U,t)}function Wf(e,t){return t==null||To(e,t,te(t))}function He(e,t){return e===t||e!==e&&t!==t}var zf=Xn(Ur),Uf=Xn(function(e,t){return e>=t}),Lt=ko(function(){return arguments}())?ko:function(e){return X(e)&&G.call(e,"callee")&&!_o.call(e,"callee")},R=m.isArray,Gf=to?ve(to):Ju;function ce(e){return e!=null&&ir(e.length)&&!je(e)}function J(e){return X(e)&&ce(e)}function $f(e){return e===!0||e===!1||X(e)&&le(e)==Kt}var dt=ru||Ai,Kf=no?ve(no):Zu;function qf(e){return X(e)&&e.nodeType===1&&!dn(e)}function Vf(e){if(e==null)return!0;if(ce(e)&&(R(e)||typeof e=="string"||typeof e.splice=="function"||dt(e)||zt(e)||Lt(e)))return!e.length;var t=oe(e);if(t==Re||t==De)return!e.size;if(cn(e))return!Kr(e).length;for(var n in e)if(G.call(e,n))return!1;return!0}function Yf(e,t){return sn(e,t)}function Xf(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?sn(e,t,i,n):!!o}function yi(e){if(!X(e))return!1;var t=le(e);return t==mn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!dn(e)}function Jf(e){return typeof e=="number"&&wo(e)}function je(e){if(!Y(e))return!1;var t=le(e);return t==yn||t==Ti||t==ml||t==bl}function Ga(e){return typeof e=="number"&&e==D(e)}function ir(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=it}function Y(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function X(e){return e!=null&&typeof e=="object"}var $a=ro?ve(ro):ju;function Zf(e,t){return e===t||$r(e,t,li(t))}function Qf(e,t,n){return n=typeof n=="function"?n:i,$r(e,t,li(t),n)}function jf(e){return Ka(e)&&e!=+e}function ed(e){if(Hp(e))throw new E(S);return Ho(e)}function td(e){return e===null}function nd(e){return e==null}function Ka(e){return typeof e=="number"||X(e)&&le(e)==Vt}function dn(e){if(!X(e)||le(e)!=qe)return!1;var t=En(e);if(t===null)return!0;var n=G.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&An.call(n)==Zs}var vi=io?ve(io):ep;function rd(e){return Ga(e)&&e>=-it&&e<=it}var qa=oo?ve(oo):tp;function or(e){return typeof e=="string"||!R(e)&&X(e)&&le(e)==Xt}function xe(e){return typeof e=="symbol"||X(e)&&le(e)==vn}var zt=ao?ve(ao):np;function id(e){return e===i}function od(e){return X(e)&&oe(e)==Jt}function ad(e){return X(e)&&le(e)==_l}var ld=Xn(qr),sd=Xn(function(e,t){return e<=t});function Va(e){if(!e)return[];if(ce(e))return or(e)?Pe(e):pe(e);if(jt&&e[jt])return Ns(e[jt]());var t=oe(e),n=t==Re?Dr:t==De?Cn:Ut;return n(e)}function et(e){if(!e)return e===0?e:0;if(e=Ee(e),e===mt||e===-mt){var t=e<0?-1:1;return t*fl}return e===e?e:0}function D(e){var t=et(e),n=t%1;return t===t?n?t-n:t:0}function Ya(e){return e?_t(D(e),0,Ne):0}function Ee(e){if(typeof e=="number")return e;if(xe(e))return gn;if(Y(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Y(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fo(e);var n=Ul.test(e);return n||$l.test(e)?Ss(e.slice(2),n?2:8):zl.test(e)?gn:+e}function Xa(e){return ze(e,fe(e))}function ud(e){return e?_t(D(e),-it,it):e===0?e:0}function z(e){return e==null?"":be(e)}var pd=Ot(function(e,t){if(cn(t)||ce(t)){ze(t,te(t),e);return}for(var n in t)G.call(t,n)&&on(e,n,t[n])}),Ja=Ot(function(e,t){ze(t,fe(t),e)}),ar=Ot(function(e,t,n,o){ze(t,fe(t),e,o)}),cd=Ot(function(e,t,n,o){ze(t,te(t),e,o)}),fd=Ze(Nr);function dd(e,t){var n=Mt(e);return t==null?n:Fo(n,t)}var gd=H(function(e,t){e=$(e);var n=-1,o=t.length,a=o>2?t[2]:i;for(a&&se(t[0],t[1],a)&&(o=1);++n<o;)for(var s=t[n],p=fe(s),c=-1,d=p.length;++c<d;){var b=p[c],x=e[b];(x===i||He(x,Pt[b])&&!G.call(e,b))&&(e[b]=s[b])}return e}),hd=H(function(e){return e.push(i,da),ye(Za,i,e)});function md(e,t){return so(e,F(t,3),We)}function yd(e,t){return so(e,F(t,3),zr)}function vd(e,t){return e==null?e:Wr(e,F(t,3),fe)}function bd(e,t){return e==null?e:Do(e,F(t,3),fe)}function xd(e,t){return e&&We(e,F(t,3))}function _d(e,t){return e&&zr(e,F(t,3))}function Sd(e){return e==null?[]:zn(e,te(e))}function wd(e){return e==null?[]:zn(e,fe(e))}function bi(e,t,n){var o=e==null?i:St(e,t);return o===i?n:o}function Cd(e,t){return e!=null&&ma(e,t,qu)}function xi(e,t){return e!=null&&ma(e,t,Vu)}var Ld=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Fn.call(t)),e[t]=n},Si(de)),Id=sa(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Fn.call(t)),G.call(e,t)?e[t].push(n):e[t]=[n]},F),Ad=H(ln);function te(e){return ce(e)?Io(e):Kr(e)}function fe(e){return ce(e)?Io(e,!0):rp(e)}function Fd(e,t){var n={};return t=F(t,3),We(e,function(o,a,s){Xe(n,t(o,a,s),o)}),n}function Td(e,t){var n={};return t=F(t,3),We(e,function(o,a,s){Xe(n,a,t(o,a,s))}),n}var Bd=Ot(function(e,t,n){Un(e,t,n)}),Za=Ot(function(e,t,n,o){Un(e,t,n,o)}),Ed=Ze(function(e,t){var n={};if(e==null)return n;var o=!1;t=V(t,function(s){return s=ct(s,e),o||(o=s.length>1),s}),ze(e,oi(e),n),o&&(n=Fe(n,ge|Gt|U,Cp));for(var a=t.length;a--;)Zr(n,t[a]);return n});function Rd(e,t){return Qa(e,rr(F(t)))}var Dd=Ze(function(e,t){return e==null?{}:op(e,t)});function Qa(e,t){if(e==null)return{};var n=V(oi(e),function(o){return[o]});return t=F(t),Go(e,n,function(o,a){return t(o,a[0])})}function Pd(e,t,n){t=ct(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var s=e==null?i:e[Ue(t[o])];s===i&&(o=a,s=n),e=je(s)?s.call(e):s}return e}function kd(e,t,n){return e==null?e:un(e,t,n)}function Hd(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:un(e,t,n,o)}var ja=ca(te),el=ca(fe);function Md(e,t,n){var o=R(e),a=o||dt(e)||zt(e);if(t=F(t,4),n==null){var s=e&&e.constructor;a?n=o?new s:[]:Y(e)?n=je(s)?Mt(En(e)):{}:n={}}return(a?Le:We)(e,function(p,c,d){return t(n,p,c,d)}),n}function Od(e,t){return e==null?!0:Zr(e,t)}function Nd(e,t,n){return e==null?e:Yo(e,t,ei(n))}function Wd(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:Yo(e,t,ei(n),o)}function Ut(e){return e==null?[]:Rr(e,te(e))}function zd(e){return e==null?[]:Rr(e,fe(e))}function Ud(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Ee(n),n=n===n?n:0),t!==i&&(t=Ee(t),t=t===t?t:0),_t(Ee(e),t,n)}function Gd(e,t,n){return t=et(t),n===i?(n=t,t=0):n=et(n),e=Ee(e),Yu(e,t,n)}function $d(e,t,n){if(n&&typeof n!="boolean"&&se(e,t,n)&&(t=n=i),n===i&&(typeof t=="boolean"?(n=t,t=i):typeof e=="boolean"&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=et(e),t===i?(t=e,e=0):t=et(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var a=Co();return ie(e+a*(t-e+_s("1e-"+((a+"").length-1))),t)}return Yr(e,t)}var Kd=Nt(function(e,t,n){return t=t.toLowerCase(),e+(n?tl(t):t)});function tl(e){return _i(z(e).toLowerCase())}function nl(e){return e=z(e),e&&e.replace(ql,Ps).replace(cs,"")}function qd(e,t,n){e=z(e),t=be(t);var o=e.length;n=n===i?o:_t(D(n),0,o);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Vd(e){return e=z(e),e&&Il.test(e)?e.replace(Ri,ks):e}function Yd(e){return e=z(e),e&&Rl.test(e)?e.replace(mr,"\\$&"):e}var Xd=Nt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Jd=Nt(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Zd=oa("toLowerCase");function Qd(e,t,n){e=z(e),t=D(t);var o=t?Rt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return Yn(kn(a),n)+e+Yn(Pn(a),n)}function jd(e,t,n){e=z(e),t=D(t);var o=t?Rt(e):0;return t&&o<t?e+Yn(t-o,n):e}function eg(e,t,n){e=z(e),t=D(t);var o=t?Rt(e):0;return t&&o<t?Yn(t-o,n)+e:e}function tg(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(z(e).replace(yr,""),t||0)}function ng(e,t,n){return(n?se(e,t,n):t===i)?t=1:t=D(t),Xr(z(e),t)}function rg(){var e=arguments,t=z(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ig=Nt(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function og(e,t,n){return n&&typeof n!="number"&&se(e,t,n)&&(t=n=i),n=n===i?Ne:n>>>0,n?(e=z(e),e&&(typeof t=="string"||t!=null&&!vi(t))&&(t=be(t),!t&&Et(e))?ft(Pe(e),0,n):e.split(t,n)):[]}var ag=Nt(function(e,t,n){return e+(n?" ":"")+_i(t)});function lg(e,t,n){return e=z(e),n=n==null?0:_t(D(n),0,e.length),t=be(t),e.slice(n,n+t.length)==t}function sg(e,t,n){var o=l.templateSettings;n&&se(e,t,n)&&(t=i),e=z(e),t=ar({},t,o,fa);var a=ar({},t.imports,o.imports,fa),s=te(a),p=Rr(a,s),c,d,b=0,x=t.interpolate||bn,w="__p += '",C=Pr((t.escape||bn).source+"|"+x.source+"|"+(x===Di?Wl:bn).source+"|"+(t.evaluate||bn).source+"|$","g"),A="//# sourceURL="+(G.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ms+"]")+`
11
- `;e.replace(C,function(B,M,N,_e,ue,Se){return N||(N=_e),w+=e.slice(b,Se).replace(Vl,Hs),M&&(c=!0,w+=`' +
10
+ `)}function Dp(e){return R(e)||Lt(e)||!!(wo&&e&&e[wo])}function Qe(e,t){var n=typeof e;return t=t==null?it:t,!!t&&(n=="number"||n!="symbol"&&Kl.test(e))&&e>-1&&e%1==0&&e<t}function se(e,t,n){if(!Y(n))return!1;var o=typeof t;return(o=="number"?ce(n)&&Qe(t,n.length):o=="string"&&t in n)?He(n[t],e):!1}function pi(e,t){if(R(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||xe(e)?!0:Bl.test(e)||!Tl.test(e)||t!=null&&e in $(t)}function Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ci(e){var t=Zn(e),n=l[t];if(typeof n!="function"||!(t in N.prototype))return!1;if(e===n)return!0;var o=li(n);return!!o&&e===o[0]}function kp(e){return!!bo&&bo in e}var Hp=An?je:Fi;function cn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Pt;return e===n}function ba(e){return e===e&&!Y(e)}function xa(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==i||e in $(n))}}function Mp(e){var t=rr(e,function(o){return n.size===Q&&n.clear(),o}),n=t.cache;return t}function Np(e,t){var n=e[1],o=t[1],a=n|o,s=a<(ae|Ne|we),p=o==we&&n==he||o==we&&n==rt&&e[7].length<=t[8]||o==(we|rt)&&t[7].length<=t[8]&&n==he;if(!(s||p))return e;o&ae&&(e[2]=t[2],a|=n&ae?0:$t);var c=t[3];if(c){var d=e[3];e[3]=d?na(d,c,t[4]):c,e[4]=d?lt(e[3],nt):t[4]}return c=t[5],c&&(d=e[5],e[5]=d?ra(d,c,t[6]):c,e[6]=d?lt(e[5],nt):t[6]),c=t[7],c&&(e[7]=c),o&we&&(e[8]=e[8]==null?t[8]:ie(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Op(e){var t=[];if(e!=null)for(var n in $(e))t.push(n);return t}function Wp(e){return Tn.call(e)}function _a(e,t,n){return t=ee(t===i?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=ee(o.length-t,0),p=m(s);++a<s;)p[a]=o[t+a];a=-1;for(var c=m(t+1);++a<t;)c[a]=o[a];return c[t]=n(p),ye(e,this,c)}}function Sa(e,t){return t.length<2?e:St(e,Te(t,0,-1))}function zp(e,t){for(var n=e.length,o=ie(t.length,n),a=pe(e);o--;){var s=t[o];e[o]=Qe(s,n)?a[s]:i}return e}function fi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var wa=La(qo),fn=nu||function(e,t){return ne.setTimeout(e,t)},di=La(pp);function Ca(e,t,n){var o=t+"";return di(e,Rp(o,Up(Tp(o),n)))}function La(e){var t=0,n=0;return function(){var o=au(),a=ul-(o-n);if(n=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function jn(e,t){var n=-1,o=e.length,a=o-1;for(t=t===i?o:t;++n<t;){var s=Xr(n,a),p=e[s];e[s]=e[n],e[n]=p}return e.length=t,e}var Ia=Mp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(El,function(n,o,a,s){t.push(a?s.replace(Ol,"$1"):o||n)}),t});function Ue(e){if(typeof e=="string"||xe(e))return e;var t=e+"";return t=="0"&&1/e==-mt?"-0":t}function Ct(e){if(e!=null){try{return Fn.call(e)}catch{}try{return e+""}catch{}}return""}function Up(e,t){return Le(hl,function(n){var o="_."+n[0];t&n[1]&&!wn(e,o)&&e.push(o)}),e.sort()}function Aa(e){if(e instanceof N)return e.clone();var t=new Ae(e.__wrapped__,e.__chain__);return t.__actions__=pe(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Gp(e,t,n){(n?se(e,t,n):t===i)?t=1:t=ee(D(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,p=m(kn(o/t));a<o;)p[s++]=Te(e,a,a+=t);return p}function $p(e){for(var t=-1,n=e==null?0:e.length,o=0,a=[];++t<n;){var s=e[t];s&&(a[o++]=s)}return a}function Kp(){var e=arguments.length;if(!e)return[];for(var t=m(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return at(R(n)?pe(n):[n],re(t,1))}var qp=H(function(e,t){return J(e)?an(e,re(t,1,J,!0)):[]}),Vp=H(function(e,t){var n=Be(t);return J(n)&&(n=i),J(e)?an(e,re(t,1,J,!0),F(n,2)):[]}),Yp=H(function(e,t){var n=Be(t);return J(n)&&(n=i),J(e)?an(e,re(t,1,J,!0),i,n):[]});function Xp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:D(t),Te(e,t<0?0:t,o)):[]}function Jp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:D(t),t=o-t,Te(e,0,t<0?0:t)):[]}function Zp(e,t){return e&&e.length?Kn(e,F(t,3),!0,!0):[]}function Qp(e,t){return e&&e.length?Kn(e,F(t,3),!0):[]}function jp(e,t,n,o){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&se(e,t,n)&&(n=0,o=a),Ku(e,t,n,o)):[]}function Fa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:D(n);return a<0&&(a=ee(o+a,0)),Cn(e,F(t,3),a)}function Ta(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return n!==i&&(a=D(n),a=n<0?ee(o+a,0):ie(a,o-1)),Cn(e,F(t,3),a,!0)}function Ba(e){var t=e==null?0:e.length;return t?re(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?re(e,mt):[]}function tc(e,t){var n=e==null?0:e.length;return n?(t=t===i?1:D(t),re(e,t)):[]}function nc(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var a=e[t];o[a[0]]=a[1]}return o}function Ea(e){return e&&e.length?e[0]:i}function rc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:D(n);return a<0&&(a=ee(o+a,0)),Bt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Te(e,0,-1):[]}var oc=H(function(e){var t=V(e,ei);return t.length&&t[0]===e[0]?$r(t):[]}),ac=H(function(e){var t=Be(e),n=V(e,ei);return t===Be(n)?t=i:n.pop(),n.length&&n[0]===e[0]?$r(n,F(t,2)):[]}),lc=H(function(e){var t=Be(e),n=V(e,ei);return t=typeof t=="function"?t:i,t&&n.pop(),n.length&&n[0]===e[0]?$r(n,i,t):[]});function sc(e,t){return e==null?"":iu.call(e,t)}function Be(e){var t=e==null?0:e.length;return t?e[t-1]:i}function uc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o;return n!==i&&(a=D(n),a=a<0?ee(o+a,0):ie(a,o-1)),t===t?Us(e,t,a):Cn(e,po,a,!0)}function pc(e,t){return e&&e.length?Uo(e,D(t)):i}var cc=H(Ra);function Ra(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}function fc(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,F(n,2)):e}function dc(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,i,n):e}var gc=Ze(function(e,t){var n=e==null?0:e.length,o=Wr(e,t);return Ko(e,V(t,function(a){return Qe(a,n)?+a:a}).sort(ta)),o});function hc(e,t){var n=[];if(!(e&&e.length))return n;var o=-1,a=[],s=e.length;for(t=F(t,3);++o<s;){var p=e[o];t(p,o,e)&&(n.push(p),a.push(o))}return Ko(e,a),n}function gi(e){return e==null?e:su.call(e)}function mc(e,t,n){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&se(e,t,n)?(t=0,n=o):(t=t==null?0:D(t),n=n===i?o:D(n)),Te(e,t,n)):[]}function yc(e,t){return $n(e,t)}function vc(e,t,n){return Zr(e,t,F(n,2))}function bc(e,t){var n=e==null?0:e.length;if(n){var o=$n(e,t);if(o<n&&He(e[o],t))return o}return-1}function xc(e,t){return $n(e,t,!0)}function _c(e,t,n){return Zr(e,t,F(n,2),!0)}function Sc(e,t){var n=e==null?0:e.length;if(n){var o=$n(e,t,!0)-1;if(He(e[o],t))return o}return-1}function wc(e){return e&&e.length?Vo(e):[]}function Cc(e,t){return e&&e.length?Vo(e,F(t,2)):[]}function Lc(e){var t=e==null?0:e.length;return t?Te(e,1,t):[]}function Ic(e,t,n){return e&&e.length?(t=n||t===i?1:D(t),Te(e,0,t<0?0:t)):[]}function Ac(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===i?1:D(t),t=o-t,Te(e,t<0?0:t,o)):[]}function Fc(e,t){return e&&e.length?Kn(e,F(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?Kn(e,F(t,3)):[]}var Bc=H(function(e){return pt(re(e,1,J,!0))}),Ec=H(function(e){var t=Be(e);return J(t)&&(t=i),pt(re(e,1,J,!0),F(t,2))}),Rc=H(function(e){var t=Be(e);return t=typeof t=="function"?t:i,pt(re(e,1,J,!0),i,t)});function Dc(e){return e&&e.length?pt(e):[]}function Pc(e,t){return e&&e.length?pt(e,F(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:i,e&&e.length?pt(e,i,t):[]}function hi(e){if(!(e&&e.length))return[];var t=0;return e=ot(e,function(n){if(J(n))return t=ee(n.length,t),!0}),Rr(t,function(n){return V(e,Tr(n))})}function Da(e,t){if(!(e&&e.length))return[];var n=hi(e);return t==null?n:V(n,function(o){return ye(t,i,o)})}var Hc=H(function(e,t){return J(e)?an(e,t):[]}),Mc=H(function(e){return jr(ot(e,J))}),Nc=H(function(e){var t=Be(e);return J(t)&&(t=i),jr(ot(e,J),F(t,2))}),Oc=H(function(e){var t=Be(e);return t=typeof t=="function"?t:i,jr(ot(e,J),i,t)}),Wc=H(hi);function zc(e,t){return Zo(e||[],t||[],on)}function Uc(e,t){return Zo(e||[],t||[],un)}var Gc=H(function(e){var t=e.length,n=t>1?e[t-1]:i;return n=typeof n=="function"?(e.pop(),n):i,Da(e,n)});function Pa(e){var t=l(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function er(e,t){return t(e)}var Kc=Ze(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,a=function(s){return Wr(s,e)};return t>1||this.__actions__.length||!(o instanceof N)||!Qe(n)?this.thru(a):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:er,args:[a],thisArg:i}),new Ae(o,this.__chain__).thru(function(s){return t&&!s.length&&s.push(i),s}))});function qc(){return Pa(this)}function Vc(){return new Ae(this.value(),this.__chain__)}function Yc(){this.__values__===i&&(this.__values__=Ya(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Xc(){return this}function Jc(e){for(var t,n=this;n instanceof On;){var o=Aa(n);o.__index__=0,o.__values__=i,t?a.__wrapped__=o:t=o;var a=o;n=n.__wrapped__}return a.__wrapped__=e,t}function Zc(){var e=this.__wrapped__;if(e instanceof N){var t=e;return this.__actions__.length&&(t=new N(this)),t=t.reverse(),t.__actions__.push({func:er,args:[gi],thisArg:i}),new Ae(t,this.__chain__)}return this.thru(gi)}function Qc(){return Jo(this.__wrapped__,this.__actions__)}var jc=qn(function(e,t,n){G.call(e,n)?++e[n]:Xe(e,n,1)});function ef(e,t,n){var o=R(e)?so:$u;return n&&se(e,t,n)&&(t=i),o(e,F(t,3))}function tf(e,t){var n=R(e)?ot:Do;return n(e,F(t,3))}var nf=la(Fa),rf=la(Ta);function of(e,t){return re(tr(e,t),1)}function af(e,t){return re(tr(e,t),mt)}function lf(e,t,n){return n=n===i?1:D(n),re(tr(e,t),n)}function ka(e,t){var n=R(e)?Le:ut;return n(e,F(t,3))}function Ha(e,t){var n=R(e)?Ls:Ro;return n(e,F(t,3))}var sf=qn(function(e,t,n){G.call(e,n)?e[n].push(t):Xe(e,n,[t])});function uf(e,t,n,o){e=ce(e)?e:Ut(e),n=n&&!o?D(n):0;var a=e.length;return n<0&&(n=ee(a+n,0)),ar(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Bt(e,t,n)>-1}var pf=H(function(e,t,n){var o=-1,a=typeof t=="function",s=ce(e)?m(e.length):[];return ut(e,function(p){s[++o]=a?ye(t,p,n):ln(p,t,n)}),s}),cf=qn(function(e,t,n){Xe(e,n,t)});function tr(e,t){var n=R(e)?V:Oo;return n(e,F(t,3))}function ff(e,t,n,o){return e==null?[]:(R(t)||(t=t==null?[]:[t]),n=o?i:n,R(n)||(n=n==null?[]:[n]),Go(e,t,n))}var df=qn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function gf(e,t,n){var o=R(e)?Ar:fo,a=arguments.length<3;return o(e,F(t,4),n,a,ut)}function hf(e,t,n){var o=R(e)?Is:fo,a=arguments.length<3;return o(e,F(t,4),n,a,Ro)}function mf(e,t){var n=R(e)?ot:Do;return n(e,ir(F(t,3)))}function yf(e){var t=R(e)?Fo:sp;return t(e)}function vf(e,t,n){(n?se(e,t,n):t===i)?t=1:t=D(t);var o=R(e)?Ou:up;return o(e,t)}function bf(e){var t=R(e)?Wu:cp;return t(e)}function xf(e){if(e==null)return 0;if(ce(e))return ar(e)?Rt(e):e.length;var t=oe(e);return t==Re||t==De?e.size:qr(e).length}function _f(e,t,n){var o=R(e)?Fr:fp;return n&&se(e,t,n)&&(t=i),o(e,F(t,3))}var Sf=H(function(e,t){if(e==null)return[];var n=t.length;return n>1&&se(e,t[0],t[1])?t=[]:n>2&&se(t[0],t[1],t[2])&&(t=[t[0]]),Go(e,re(t,1),[])}),nr=tu||function(){return ne.Date.now()};function wf(e,t){if(typeof t!="function")throw new Ie(v);return e=D(e),function(){if(--e<1)return t.apply(this,arguments)}}function Ma(e,t,n){return t=n?i:t,t=e&&t==null?e.length:t,Je(e,we,i,i,i,i,t)}function Na(e,t){var n;if(typeof t!="function")throw new Ie(v);return e=D(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var mi=H(function(e,t,n){var o=ae;if(n.length){var a=lt(n,Wt(mi));o|=me}return Je(e,o,t,n,a)}),Oa=H(function(e,t,n){var o=ae|Ne;if(n.length){var a=lt(n,Wt(Oa));o|=me}return Je(t,o,e,n,a)});function Wa(e,t,n){t=n?i:t;var o=Je(e,he,i,i,i,i,i,t);return o.placeholder=Wa.placeholder,o}function za(e,t,n){t=n?i:t;var o=Je(e,$e,i,i,i,i,i,t);return o.placeholder=za.placeholder,o}function Ua(e,t,n){var o,a,s,p,c,d,b=0,x=!1,w=!1,C=!0;if(typeof e!="function")throw new Ie(v);t=Ee(t)||0,Y(n)&&(x=!!n.leading,w="maxWait"in n,s=w?ee(Ee(n.maxWait)||0,t):s,C="trailing"in n?!!n.trailing:C);function A(Z){var Me=o,tt=a;return o=a=i,b=Z,p=e.apply(tt,Me),p}function T(Z){return b=Z,c=fn(M,t),x?A(Z):p}function k(Z){var Me=Z-d,tt=Z-b,ll=t-Me;return w?ie(ll,s-tt):ll}function B(Z){var Me=Z-d,tt=Z-b;return d===i||Me>=t||Me<0||w&&tt>=s}function M(){var Z=nr();if(B(Z))return O(Z);c=fn(M,k(Z))}function O(Z){return c=i,C&&o?A(Z):(o=a=i,p)}function _e(){c!==i&&Qo(c),b=0,o=d=a=c=i}function ue(){return c===i?p:O(nr())}function Se(){var Z=nr(),Me=B(Z);if(o=arguments,a=this,d=Z,Me){if(c===i)return T(d);if(w)return Qo(c),c=fn(M,t),A(d)}return c===i&&(c=fn(M,t)),p}return Se.cancel=_e,Se.flush=ue,Se}var Cf=H(function(e,t){return Eo(e,1,t)}),Lf=H(function(e,t,n){return Eo(e,Ee(t)||0,n)});function If(e){return Je(e,It)}function rr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ie(v);var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],s=n.cache;if(s.has(a))return s.get(a);var p=e.apply(this,o);return n.cache=s.set(a,p)||s,p};return n.cache=new(rr.Cache||Ye),n}rr.Cache=Ye;function ir(e){if(typeof e!="function")throw new Ie(v);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 Af(e){return Na(2,e)}var Ff=dp(function(e,t){t=t.length==1&&R(t[0])?V(t[0],ve(F())):V(re(t,1),ve(F()));var n=t.length;return H(function(o){for(var a=-1,s=ie(o.length,n);++a<s;)o[a]=t[a].call(this,o[a]);return ye(e,this,o)})}),yi=H(function(e,t){var n=lt(t,Wt(yi));return Je(e,me,i,t,n)}),Ga=H(function(e,t){var n=lt(t,Wt(Ga));return Je(e,Ke,i,t,n)}),Tf=Ze(function(e,t){return Je(e,rt,i,i,i,t)});function Bf(e,t){if(typeof e!="function")throw new Ie(v);return t=t===i?t:D(t),H(e,t)}function Ef(e,t){if(typeof e!="function")throw new Ie(v);return t=t==null?0:ee(D(t),0),H(function(n){var o=n[t],a=ft(n,0,t);return o&&at(a,o),ye(e,this,a)})}function Rf(e,t,n){var o=!0,a=!0;if(typeof e!="function")throw new Ie(v);return Y(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),Ua(e,t,{leading:o,maxWait:t,trailing:a})}function Df(e){return Ma(e,1)}function Pf(e,t){return yi(ti(t),e)}function kf(){if(!arguments.length)return[];var e=arguments[0];return R(e)?e:[e]}function Hf(e){return Fe(e,Ge)}function Mf(e,t){return t=typeof t=="function"?t:i,Fe(e,Ge,t)}function Nf(e){return Fe(e,ge|Ge)}function Of(e,t){return t=typeof t=="function"?t:i,Fe(e,ge|Ge,t)}function Wf(e,t){return t==null||Bo(e,t,te(t))}function He(e,t){return e===t||e!==e&&t!==t}var zf=Jn(Gr),Uf=Jn(function(e,t){return e>=t}),Lt=Ho(function(){return arguments}())?Ho:function(e){return X(e)&&G.call(e,"callee")&&!So.call(e,"callee")},R=m.isArray,Gf=no?ve(no):Ju;function ce(e){return e!=null&&or(e.length)&&!je(e)}function J(e){return X(e)&&ce(e)}function $f(e){return e===!0||e===!1||X(e)&&le(e)==Kt}var dt=ru||Fi,Kf=ro?ve(ro):Zu;function qf(e){return X(e)&&e.nodeType===1&&!dn(e)}function Vf(e){if(e==null)return!0;if(ce(e)&&(R(e)||typeof e=="string"||typeof e.splice=="function"||dt(e)||zt(e)||Lt(e)))return!e.length;var t=oe(e);if(t==Re||t==De)return!e.size;if(cn(e))return!qr(e).length;for(var n in e)if(G.call(e,n))return!1;return!0}function Yf(e,t){return sn(e,t)}function Xf(e,t,n){n=typeof n=="function"?n:i;var o=n?n(e,t):i;return o===i?sn(e,t,i,n):!!o}function vi(e){if(!X(e))return!1;var t=le(e);return t==yn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!dn(e)}function Jf(e){return typeof e=="number"&&Co(e)}function je(e){if(!Y(e))return!1;var t=le(e);return t==vn||t==Bi||t==ml||t==bl}function $a(e){return typeof e=="number"&&e==D(e)}function or(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=it}function Y(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function X(e){return e!=null&&typeof e=="object"}var Ka=io?ve(io):ju;function Zf(e,t){return e===t||Kr(e,t,si(t))}function Qf(e,t,n){return n=typeof n=="function"?n:i,Kr(e,t,si(t),n)}function jf(e){return qa(e)&&e!=+e}function ed(e){if(Hp(e))throw new E(S);return Mo(e)}function td(e){return e===null}function nd(e){return e==null}function qa(e){return typeof e=="number"||X(e)&&le(e)==Vt}function dn(e){if(!X(e)||le(e)!=qe)return!1;var t=Rn(e);if(t===null)return!0;var n=G.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Fn.call(n)==Zs}var bi=oo?ve(oo):ep;function rd(e){return $a(e)&&e>=-it&&e<=it}var Va=ao?ve(ao):tp;function ar(e){return typeof e=="string"||!R(e)&&X(e)&&le(e)==Xt}function xe(e){return typeof e=="symbol"||X(e)&&le(e)==bn}var zt=lo?ve(lo):np;function id(e){return e===i}function od(e){return X(e)&&oe(e)==Jt}function ad(e){return X(e)&&le(e)==_l}var ld=Jn(Vr),sd=Jn(function(e,t){return e<=t});function Ya(e){if(!e)return[];if(ce(e))return ar(e)?Pe(e):pe(e);if(jt&&e[jt])return Os(e[jt]());var t=oe(e),n=t==Re?Pr:t==De?Ln:Ut;return n(e)}function et(e){if(!e)return e===0?e:0;if(e=Ee(e),e===mt||e===-mt){var t=e<0?-1:1;return t*fl}return e===e?e:0}function D(e){var t=et(e),n=t%1;return t===t?n?t-n:t:0}function Xa(e){return e?_t(D(e),0,Oe):0}function Ee(e){if(typeof e=="number")return e;if(xe(e))return hn;if(Y(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Y(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=go(e);var n=Ul.test(e);return n||$l.test(e)?Ss(e.slice(2),n?2:8):zl.test(e)?hn:+e}function Ja(e){return ze(e,fe(e))}function ud(e){return e?_t(D(e),-it,it):e===0?e:0}function z(e){return e==null?"":be(e)}var pd=Nt(function(e,t){if(cn(t)||ce(t)){ze(t,te(t),e);return}for(var n in t)G.call(t,n)&&on(e,n,t[n])}),Za=Nt(function(e,t){ze(t,fe(t),e)}),lr=Nt(function(e,t,n,o){ze(t,fe(t),e,o)}),cd=Nt(function(e,t,n,o){ze(t,te(t),e,o)}),fd=Ze(Wr);function dd(e,t){var n=Mt(e);return t==null?n:To(n,t)}var gd=H(function(e,t){e=$(e);var n=-1,o=t.length,a=o>2?t[2]:i;for(a&&se(t[0],t[1],a)&&(o=1);++n<o;)for(var s=t[n],p=fe(s),c=-1,d=p.length;++c<d;){var b=p[c],x=e[b];(x===i||He(x,Pt[b])&&!G.call(e,b))&&(e[b]=s[b])}return e}),hd=H(function(e){return e.push(i,ga),ye(Qa,i,e)});function md(e,t){return uo(e,F(t,3),We)}function yd(e,t){return uo(e,F(t,3),Ur)}function vd(e,t){return e==null?e:zr(e,F(t,3),fe)}function bd(e,t){return e==null?e:Po(e,F(t,3),fe)}function xd(e,t){return e&&We(e,F(t,3))}function _d(e,t){return e&&Ur(e,F(t,3))}function Sd(e){return e==null?[]:Un(e,te(e))}function wd(e){return e==null?[]:Un(e,fe(e))}function xi(e,t,n){var o=e==null?i:St(e,t);return o===i?n:o}function Cd(e,t){return e!=null&&ya(e,t,qu)}function _i(e,t){return e!=null&&ya(e,t,Vu)}var Ld=ua(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Tn.call(t)),e[t]=n},wi(de)),Id=ua(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Tn.call(t)),G.call(e,t)?e[t].push(n):e[t]=[n]},F),Ad=H(ln);function te(e){return ce(e)?Ao(e):qr(e)}function fe(e){return ce(e)?Ao(e,!0):rp(e)}function Fd(e,t){var n={};return t=F(t,3),We(e,function(o,a,s){Xe(n,t(o,a,s),o)}),n}function Td(e,t){var n={};return t=F(t,3),We(e,function(o,a,s){Xe(n,a,t(o,a,s))}),n}var Bd=Nt(function(e,t,n){Gn(e,t,n)}),Qa=Nt(function(e,t,n,o){Gn(e,t,n,o)}),Ed=Ze(function(e,t){var n={};if(e==null)return n;var o=!1;t=V(t,function(s){return s=ct(s,e),o||(o=s.length>1),s}),ze(e,ai(e),n),o&&(n=Fe(n,ge|Gt|Ge,Cp));for(var a=t.length;a--;)Qr(n,t[a]);return n});function Rd(e,t){return ja(e,ir(F(t)))}var Dd=Ze(function(e,t){return e==null?{}:op(e,t)});function ja(e,t){if(e==null)return{};var n=V(ai(e),function(o){return[o]});return t=F(t),$o(e,n,function(o,a){return t(o,a[0])})}function Pd(e,t,n){t=ct(t,e);var o=-1,a=t.length;for(a||(a=1,e=i);++o<a;){var s=e==null?i:e[Ue(t[o])];s===i&&(o=a,s=n),e=je(s)?s.call(e):s}return e}function kd(e,t,n){return e==null?e:un(e,t,n)}function Hd(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:un(e,t,n,o)}var el=fa(te),tl=fa(fe);function Md(e,t,n){var o=R(e),a=o||dt(e)||zt(e);if(t=F(t,4),n==null){var s=e&&e.constructor;a?n=o?new s:[]:Y(e)?n=je(s)?Mt(Rn(e)):{}:n={}}return(a?Le:We)(e,function(p,c,d){return t(n,p,c,d)}),n}function Nd(e,t){return e==null?!0:Qr(e,t)}function Od(e,t,n){return e==null?e:Xo(e,t,ti(n))}function Wd(e,t,n,o){return o=typeof o=="function"?o:i,e==null?e:Xo(e,t,ti(n),o)}function Ut(e){return e==null?[]:Dr(e,te(e))}function zd(e){return e==null?[]:Dr(e,fe(e))}function Ud(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Ee(n),n=n===n?n:0),t!==i&&(t=Ee(t),t=t===t?t:0),_t(Ee(e),t,n)}function Gd(e,t,n){return t=et(t),n===i?(n=t,t=0):n=et(n),e=Ee(e),Yu(e,t,n)}function $d(e,t,n){if(n&&typeof n!="boolean"&&se(e,t,n)&&(t=n=i),n===i&&(typeof t=="boolean"?(n=t,t=i):typeof e=="boolean"&&(n=e,e=i)),e===i&&t===i?(e=0,t=1):(e=et(e),t===i?(t=e,e=0):t=et(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var a=Lo();return ie(e+a*(t-e+_s("1e-"+((a+"").length-1))),t)}return Xr(e,t)}var Kd=Ot(function(e,t,n){return t=t.toLowerCase(),e+(n?nl(t):t)});function nl(e){return Si(z(e).toLowerCase())}function rl(e){return e=z(e),e&&e.replace(ql,Ps).replace(cs,"")}function qd(e,t,n){e=z(e),t=be(t);var o=e.length;n=n===i?o:_t(D(n),0,o);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Vd(e){return e=z(e),e&&Il.test(e)?e.replace(Di,ks):e}function Yd(e){return e=z(e),e&&Rl.test(e)?e.replace(yr,"\\$&"):e}var Xd=Ot(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Jd=Ot(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Zd=aa("toLowerCase");function Qd(e,t,n){e=z(e),t=D(t);var o=t?Rt(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return Xn(Hn(a),n)+e+Xn(kn(a),n)}function jd(e,t,n){e=z(e),t=D(t);var o=t?Rt(e):0;return t&&o<t?e+Xn(t-o,n):e}function eg(e,t,n){e=z(e),t=D(t);var o=t?Rt(e):0;return t&&o<t?Xn(t-o,n)+e:e}function tg(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(z(e).replace(vr,""),t||0)}function ng(e,t,n){return(n?se(e,t,n):t===i)?t=1:t=D(t),Jr(z(e),t)}function rg(){var e=arguments,t=z(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ig=Ot(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function og(e,t,n){return n&&typeof n!="number"&&se(e,t,n)&&(t=n=i),n=n===i?Oe:n>>>0,n?(e=z(e),e&&(typeof t=="string"||t!=null&&!bi(t))&&(t=be(t),!t&&Et(e))?ft(Pe(e),0,n):e.split(t,n)):[]}var ag=Ot(function(e,t,n){return e+(n?" ":"")+Si(t)});function lg(e,t,n){return e=z(e),n=n==null?0:_t(D(n),0,e.length),t=be(t),e.slice(n,n+t.length)==t}function sg(e,t,n){var o=l.templateSettings;n&&se(e,t,n)&&(t=i),e=z(e),t=lr({},t,o,da);var a=lr({},t.imports,o.imports,da),s=te(a),p=Dr(a,s),c,d,b=0,x=t.interpolate||xn,w="__p += '",C=kr((t.escape||xn).source+"|"+x.source+"|"+(x===Pi?Wl:xn).source+"|"+(t.evaluate||xn).source+"|$","g"),A="//# sourceURL="+(G.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ms+"]")+`
11
+ `;e.replace(C,function(B,M,O,_e,ue,Se){return O||(O=_e),w+=e.slice(b,Se).replace(Vl,Hs),M&&(c=!0,w+=`' +
12
12
  __e(`+M+`) +
13
13
  '`),ue&&(d=!0,w+=`';
14
14
  `+ue+`;
15
- __p += '`),N&&(w+=`' +
16
- ((__t = (`+N+`)) == null ? '' : __t) +
15
+ __p += '`),O&&(w+=`' +
16
+ ((__t = (`+O+`)) == null ? '' : __t) +
17
17
  '`),b=Se+B.length,B}),w+=`';
18
18
  `;var T=G.call(t,"variable")&&t.variable;if(!T)w=`with (obj) {
19
19
  `+w+`
20
20
  }
21
- `;else if(Ol.test(T))throw new E(L);w=(d?w.replace(Sl,""):w).replace(wl,"$1").replace(Cl,"$1;"),w="function("+(T||"obj")+`) {
21
+ `;else if(Nl.test(T))throw new E(L);w=(d?w.replace(Sl,""):w).replace(wl,"$1").replace(Cl,"$1;"),w="function("+(T||"obj")+`) {
22
22
  `+(T?"":`obj || (obj = {});
23
23
  `)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(d?`, __j = Array.prototype.join;
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+w+`return __p
27
- }`;var k=il(function(){return W(s,A+"return "+w).apply(i,p)});if(k.source=w,yi(k))throw k;return k}function ug(e){return z(e).toLowerCase()}function pg(e){return z(e).toUpperCase()}function cg(e,t,n){if(e=z(e),e&&(n||t===i))return fo(e);if(!e||!(t=be(t)))return e;var o=Pe(e),a=Pe(t),s=go(o,a),p=ho(o,a)+1;return ft(o,s,p).join("")}function fg(e,t,n){if(e=z(e),e&&(n||t===i))return e.slice(0,yo(e)+1);if(!e||!(t=be(t)))return e;var o=Pe(e),a=ho(o,Pe(t))+1;return ft(o,0,a).join("")}function dg(e,t,n){if(e=z(e),e&&(n||t===i))return e.replace(yr,"");if(!e||!(t=be(t)))return e;var o=Pe(e),a=go(o,Pe(t));return ft(o,a).join("")}function gg(e,t){var n=ht,o=ll;if(Y(t)){var a="separator"in t?t.separator:a;n="length"in t?D(t.length):n,o="omission"in t?be(t.omission):o}e=z(e);var s=e.length;if(Et(e)){var p=Pe(e);s=p.length}if(n>=s)return e;var c=n-Rt(o);if(c<1)return o;var d=p?ft(p,0,c).join(""):e.slice(0,c);if(a===i)return d+o;if(p&&(c+=d.length-c),vi(a)){if(e.slice(c).search(a)){var b,x=d;for(a.global||(a=Pr(a.source,z(Pi.exec(a))+"g")),a.lastIndex=0;b=a.exec(x);)var w=b.index;d=d.slice(0,w===i?c:w)}}else if(e.indexOf(be(a),c)!=c){var C=d.lastIndexOf(a);C>-1&&(d=d.slice(0,C))}return d+o}function hg(e){return e=z(e),e&&Ll.test(e)?e.replace(Ei,Gs):e}var mg=Nt(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),_i=oa("toUpperCase");function rl(e,t,n){return e=z(e),t=n?i:t,t===i?Os(e)?qs(e):Ts(e):e.match(t)||[]}var il=H(function(e,t){try{return ye(e,i,t)}catch(n){return yi(n)?n:new E(n)}}),yg=Ze(function(e,t){return Le(t,function(n){n=Ue(n),Xe(e,n,hi(e[n],e))}),e});function vg(e){var t=e==null?0:e.length,n=F();return e=t?V(e,function(o){if(typeof o[1]!="function")throw new Ie(v);return[n(o[0]),o[1]]}):[],H(function(o){for(var a=-1;++a<t;){var s=e[a];if(ye(s[0],this,o))return ye(s[1],this,o)}})}function bg(e){return Gu(Fe(e,ge))}function Si(e){return function(){return e}}function xg(e,t){return e==null||e!==e?t:e}var _g=la(),Sg=la(!0);function de(e){return e}function wi(e){return Mo(typeof e=="function"?e:Fe(e,ge))}function wg(e){return No(Fe(e,ge))}function Cg(e,t){return Wo(e,Fe(t,ge))}var Lg=H(function(e,t){return function(n){return ln(n,e,t)}}),Ig=H(function(e,t){return function(n){return ln(e,n,t)}});function Ci(e,t,n){var o=te(t),a=zn(t,o);n==null&&!(Y(t)&&(a.length||!o.length))&&(n=t,t=e,e=this,a=zn(t,te(t)));var s=!(Y(n)&&"chain"in n)||!!n.chain,p=je(e);return Le(a,function(c){var d=t[c];e[c]=d,p&&(e.prototype[c]=function(){var b=this.__chain__;if(s||b){var x=e(this.__wrapped__),w=x.__actions__=pe(this.__actions__);return w.push({func:d,args:arguments,thisArg:e}),x.__chain__=b,x}return d.apply(e,at([this.value()],arguments))})}),e}function Ag(){return ne._===this&&(ne._=Qs),this}function Li(){}function Fg(e){return e=D(e),H(function(t){return zo(t,e)})}var Tg=ni(V),Bg=ni(lo),Eg=ni(Ar);function ol(e){return ui(e)?Fr(Ue(e)):ap(e)}function Rg(e){return function(t){return e==null?i:St(e,t)}}var Dg=ua(),Pg=ua(!0);function Ii(){return[]}function Ai(){return!1}function kg(){return{}}function Hg(){return""}function Mg(){return!0}function Og(e,t){if(e=D(e),e<1||e>it)return[];var n=Ne,o=ie(e,Ne);t=F(t),e-=Ne;for(var a=Er(o,t);++n<e;)t(n);return a}function Ng(e){return R(e)?V(e,Ue):xe(e)?[e]:pe(La(z(e)))}function Wg(e){var t=++Js;return z(e)+t}var zg=Vn(function(e,t){return e+t},0),Ug=ri("ceil"),Gg=Vn(function(e,t){return e/t},1),$g=ri("floor");function Kg(e){return e&&e.length?Wn(e,de,Ur):i}function qg(e,t){return e&&e.length?Wn(e,F(t,2),Ur):i}function Vg(e){return po(e,de)}function Yg(e,t){return po(e,F(t,2))}function Xg(e){return e&&e.length?Wn(e,de,qr):i}function Jg(e,t){return e&&e.length?Wn(e,F(t,2),qr):i}var Zg=Vn(function(e,t){return e*t},1),Qg=ri("round"),jg=Vn(function(e,t){return e-t},0);function eh(e){return e&&e.length?Br(e,de):0}function th(e,t){return e&&e.length?Br(e,F(t,2)):0}return l.after=wf,l.ary=Ha,l.assign=pd,l.assignIn=Ja,l.assignInWith=ar,l.assignWith=cd,l.at=fd,l.before=Ma,l.bind=hi,l.bindAll=yg,l.bindKey=Oa,l.castArray=kf,l.chain=Da,l.chunk=Gp,l.compact=$p,l.concat=Kp,l.cond=vg,l.conforms=bg,l.constant=Si,l.countBy=jc,l.create=dd,l.curry=Na,l.curryRight=Wa,l.debounce=za,l.defaults=gd,l.defaultsDeep=hd,l.defer=Cf,l.delay=Lf,l.difference=qp,l.differenceBy=Vp,l.differenceWith=Yp,l.drop=Xp,l.dropRight=Jp,l.dropRightWhile=Zp,l.dropWhile=Qp,l.fill=jp,l.filter=tf,l.flatMap=of,l.flatMapDeep=af,l.flatMapDepth=lf,l.flatten=Ta,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=If,l.flow=_g,l.flowRight=Sg,l.fromPairs=nc,l.functions=Sd,l.functionsIn=wd,l.groupBy=sf,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=Ld,l.invertBy=Id,l.invokeMap=pf,l.iteratee=wi,l.keyBy=cf,l.keys=te,l.keysIn=fe,l.map=er,l.mapKeys=Fd,l.mapValues=Td,l.matches=wg,l.matchesProperty=Cg,l.memoize=nr,l.merge=Bd,l.mergeWith=Za,l.method=Lg,l.methodOf=Ig,l.mixin=Ci,l.negate=rr,l.nthArg=Fg,l.omit=Ed,l.omitBy=Rd,l.once=Af,l.orderBy=ff,l.over=Tg,l.overArgs=Ff,l.overEvery=Bg,l.overSome=Eg,l.partial=mi,l.partialRight=Ua,l.partition=df,l.pick=Dd,l.pickBy=Qa,l.property=ol,l.propertyOf=Rg,l.pull=cc,l.pullAll=Ea,l.pullAllBy=fc,l.pullAllWith=dc,l.pullAt=gc,l.range=Dg,l.rangeRight=Pg,l.rearg=Tf,l.reject=mf,l.remove=hc,l.rest=Bf,l.reverse=di,l.sampleSize=vf,l.set=kd,l.setWith=Hd,l.shuffle=bf,l.slice=mc,l.sortBy=Sf,l.sortedUniq=wc,l.sortedUniqBy=Cc,l.split=og,l.spread=Ef,l.tail=Lc,l.take=Ic,l.takeRight=Ac,l.takeRightWhile=Fc,l.takeWhile=Tc,l.tap=$c,l.throttle=Rf,l.thru=jn,l.toArray=Va,l.toPairs=ja,l.toPairsIn=el,l.toPath=Ng,l.toPlainObject=Xa,l.transform=Md,l.unary=Df,l.union=Bc,l.unionBy=Ec,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Od,l.unzip=gi,l.unzipWith=Ra,l.update=Nd,l.updateWith=Wd,l.values=Ut,l.valuesIn=zd,l.without=Hc,l.words=rl,l.wrap=Pf,l.xor=Mc,l.xorBy=Oc,l.xorWith=Nc,l.zip=Wc,l.zipObject=zc,l.zipObjectDeep=Uc,l.zipWith=Gc,l.entries=ja,l.entriesIn=el,l.extend=Ja,l.extendWith=ar,Ci(l,l),l.add=zg,l.attempt=il,l.camelCase=Kd,l.capitalize=tl,l.ceil=Ug,l.clamp=Ud,l.clone=Hf,l.cloneDeep=Of,l.cloneDeepWith=Nf,l.cloneWith=Mf,l.conformsTo=Wf,l.deburr=nl,l.defaultTo=xg,l.divide=Gg,l.endsWith=qd,l.eq=He,l.escape=Vd,l.escapeRegExp=Yd,l.every=ef,l.find=nf,l.findIndex=Aa,l.findKey=md,l.findLast=rf,l.findLastIndex=Fa,l.findLastKey=yd,l.floor=$g,l.forEach=Pa,l.forEachRight=ka,l.forIn=vd,l.forInRight=bd,l.forOwn=xd,l.forOwnRight=_d,l.get=bi,l.gt=zf,l.gte=Uf,l.has=Cd,l.hasIn=xi,l.head=Ba,l.identity=de,l.includes=uf,l.indexOf=rc,l.inRange=Gd,l.invoke=Ad,l.isArguments=Lt,l.isArray=R,l.isArrayBuffer=Gf,l.isArrayLike=ce,l.isArrayLikeObject=J,l.isBoolean=$f,l.isBuffer=dt,l.isDate=Kf,l.isElement=qf,l.isEmpty=Vf,l.isEqual=Yf,l.isEqualWith=Xf,l.isError=yi,l.isFinite=Jf,l.isFunction=je,l.isInteger=Ga,l.isLength=ir,l.isMap=$a,l.isMatch=Zf,l.isMatchWith=Qf,l.isNaN=jf,l.isNative=ed,l.isNil=nd,l.isNull=td,l.isNumber=Ka,l.isObject=Y,l.isObjectLike=X,l.isPlainObject=dn,l.isRegExp=vi,l.isSafeInteger=rd,l.isSet=qa,l.isString=or,l.isSymbol=xe,l.isTypedArray=zt,l.isUndefined=id,l.isWeakMap=od,l.isWeakSet=ad,l.join=sc,l.kebabCase=Xd,l.last=Be,l.lastIndexOf=uc,l.lowerCase=Jd,l.lowerFirst=Zd,l.lt=ld,l.lte=sd,l.max=Kg,l.maxBy=qg,l.mean=Vg,l.meanBy=Yg,l.min=Xg,l.minBy=Jg,l.stubArray=Ii,l.stubFalse=Ai,l.stubObject=kg,l.stubString=Hg,l.stubTrue=Mg,l.multiply=Zg,l.nth=pc,l.noConflict=Ag,l.noop=Li,l.now=tr,l.pad=Qd,l.padEnd=jd,l.padStart=eg,l.parseInt=tg,l.random=$d,l.reduce=gf,l.reduceRight=hf,l.repeat=ng,l.replace=rg,l.result=Pd,l.round=Qg,l.runInContext=f,l.sample=yf,l.size=xf,l.snakeCase=ig,l.some=_f,l.sortedIndex=yc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=_c,l.sortedLastIndexOf=Sc,l.startCase=ag,l.startsWith=lg,l.subtract=jg,l.sum=eh,l.sumBy=th,l.template=sg,l.times=Og,l.toFinite=et,l.toInteger=D,l.toLength=Ya,l.toLower=ug,l.toNumber=Ee,l.toSafeInteger=ud,l.toString=z,l.toUpper=pg,l.trim=cg,l.trimEnd=fg,l.trimStart=dg,l.truncate=gg,l.unescape=hg,l.uniqueId=Wg,l.upperCase=mg,l.upperFirst=_i,l.each=Pa,l.eachRight=ka,l.first=Ba,Ci(l,function(){var e={};return We(l,function(t,n){G.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=h,Le(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Le(["drop","take"],function(e,t){O.prototype[e]=function(n){n=n===i?1:ee(D(n),0);var o=this.__filtered__&&!t?new O(this):this.clone();return o.__filtered__?o.__takeCount__=ie(n,o.__takeCount__):o.__views__.push({size:ie(n,Ne),type:e+(o.__dir__<0?"Right":"")}),o},O.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Le(["filter","map","takeWhile"],function(e,t){var n=t+1,o=n==Fi||n==cl;O.prototype[e]=function(a){var s=this.clone();return s.__iteratees__.push({iteratee:F(a,3),type:n}),s.__filtered__=s.__filtered__||o,s}}),Le(["head","last"],function(e,t){var n="take"+(t?"Right":"");O.prototype[e]=function(){return this[n](1).value()[0]}}),Le(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");O.prototype[e]=function(){return this.__filtered__?new O(this):this[n](1)}}),O.prototype.compact=function(){return this.filter(de)},O.prototype.find=function(e){return this.filter(e).head()},O.prototype.findLast=function(e){return this.reverse().find(e)},O.prototype.invokeMap=H(function(e,t){return typeof e=="function"?new O(this):this.map(function(n){return ln(n,e,t)})}),O.prototype.reject=function(e){return this.filter(rr(F(e)))},O.prototype.slice=function(e,t){e=D(e);var n=this;return n.__filtered__&&(e>0||t<0)?new O(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=D(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},O.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},O.prototype.toArray=function(){return this.take(Ne)},We(O.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],s=o||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,c=o?[1]:arguments,d=p instanceof O,b=c[0],x=d||R(p),w=function(M){var N=a.apply(l,at([M],c));return o&&C?N[0]:N};x&&n&&typeof b=="function"&&b.length!=1&&(d=x=!1);var C=this.__chain__,A=!!this.__actions__.length,T=s&&!C,k=d&&!A;if(!s&&x){p=k?p:new O(this);var B=e.apply(p,c);return B.__actions__.push({func:jn,args:[w],thisArg:i}),new Ae(B,C)}return T&&k?e.apply(this,c):(B=this.thru(w),T?o?B.value()[0]:B.value():B)})}),Le(["pop","push","shift","sort","splice","unshift"],function(e){var t=Ln[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var s=this.value();return t.apply(R(s)?s:[],a)}return this[n](function(p){return t.apply(R(p)?p:[],a)})}}),We(O.prototype,function(e,t){var n=l[t];if(n){var o=n.name+"";G.call(Ht,o)||(Ht[o]=[]),Ht[o].push({name:t,func:n})}}),Ht[qn(i,Oe).name]=[{name:"wrapper",func:i}],O.prototype.clone=gu,O.prototype.reverse=hu,O.prototype.value=mu,l.prototype.at=Kc,l.prototype.chain=qc,l.prototype.commit=Vc,l.prototype.next=Yc,l.prototype.plant=Jc,l.prototype.reverse=Zc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,jt&&(l.prototype[jt]=Xc),l},Dt=Vs();yt?((yt.exports=Dt)._=Dt,wr._=Dt):ne._=Dt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"AadharcardText",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{title:"CheckBox",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"DataGrid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"Download File",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Label",const:"Box"},{title:"LeaderBoard",const:"LeaderBoard"},{title:"MultipleSelect",const:"MultipleSelect"},{title:"PanCardText",const:"PanCardText"},{title:"Popup Container",const:"PopUp"},{title:"ProgressBar",const:"ProgressBar"},{title:"ProgressBar Card",const:"ProgressBarCard"},{title:"Select",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 Progress Bar",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 File",const:"UploadFile"}]},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"}}}},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"}]},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"}]},name:{type:"string"},label:{type:"string"}},required:["name"]},componentBasicUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core"],defaultStyle:!0,id:"component"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},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:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},CoreSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name"}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},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."}}}]}}}]},EventSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Event Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"eventAddHandler",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},EmptyBox={type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},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."}}}]}}},getArrayControl=(r,u,i)=>({type:"Control",scope:`#/properties/${r}`,layout:11.5,options:{elementLabelProp:u,detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${u}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:i||"Labels for Tab"}}},EmptyBox]}}}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.options.detail.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Size"}}};const getInputField=(r,u)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u}}}),getRadioInputField=(r,u,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,options:i}}}),getTextArea=(r,u,i,h)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"TextArea"},config:{layout:h||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:u,minRows:8,hideButton:i}}}),getSelectField=(r,u,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,type:"text"}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(r){let u=_.cloneDeep(GraphSection);switch(r){case"DataGrid":u.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),cardLayout];break;case"Stepper":u.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"),getArrayControl("sectionLabels","label")];break;case"PopUp":u.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),EmptyBox];break;case"Text":u.elements=[getInputField("placeholder","Placeholder"),EmptyBox,getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":u.elements=[getInputField("placeholder","Placeholder"),EmptyBox];break;case"SpeedoMeter":u.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width")];break;case"RankCard":u.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];break;case"LeaderBoard":u.elements=[getInputField("valueLabel","Value Label"),getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getTextArea("functionCode","Write Compare Code",!1)];break;case"CardSlider":u.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":u.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel")];break;case"card":u.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description"),EmptyBox];break;case"Button":u.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),EmptyBox];break;case"Graph":u.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":u.elements=[getRadioInputField("divider","Divider",["YES","No"]),EmptyBox];break;case"TabSection":u.elements=[getArrayControl("sectionLabels","label")];break;case"Table":case"LazyLoadingTable":u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Selection Available",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing Available",["YES","NO"]),getRadioInputField("DragAvailable","Drag Available",["YES","NO"]),getRadioInputField("downloadAllData","Download All Data",["YES","NO"]),getInputField("selectKey","Selection Key"),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder];break;case"Radio":u.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"])];break;case"MultipleSelect":u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),EmptyBox];break}return u},StyleSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Components Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"widgetAddClickHandler",tooltipMessage:"Add New"},style:{float:"right"}}},{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name"},{accessorKey:"type",header:"Type"},{header:"Edit Record",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"EditIcon",color:"primary",onClick:"editComponents",tooltipMessage:"Reject This Record"}}}},{header:"Delete",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",onClick:"deleteComponents",tooltipMessage:"Reject This Record"}}}}]}]}]},ValueTab={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}}]},ValidationSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validation",layout:11.5,options:{elementLabelProp:"validationType",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Value"}}}]}}}]};var buildConfig=r=>{const u=_.cloneDeep(r);let i={};return u.pageName&&delete u.pageName,u.eventsSelected&&delete u.eventsSelected,(u.type==="Table"||u.type==="WrapperSection"||u.type==="TabSection")&&(i.elements=u.elements||[],u.elements&&delete u.elements),i.events=u.events||[],u.events&&delete u.events,i={...u,...i},i};const createLayoutFormat=r=>{if(_.isEmpty(r))return{xs:11,sm:11,md:5.5,lg:5.5};let u={};return r.map(i=>{u[i.key||"xs"]=+i.value||5.5}),u},flatObjectValueInArray=r=>{const u=Object.keys(r[0])[0];return r.map(h=>h[u])},clearFromLocalStorage=()=>{localStorage.removeItem("pageFormdata")},getNavigationHistory=(r,u)=>{if(u){let i=r.name;const h=u.split("."),g=[];return h.map((S,v)=>{if(v===0){g.push(S);return}g.push(`${g[v-1]}.${S}`)}),g.map(S=>{const v=_.get(r,S);v?i=i+` > ${(v==null?void 0:v.name)||(v==null?void 0:v.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInLocalStorage=(r,u)=>{let i;if(u){const h=getFormdataFromLocalStorage();i=_.set(h,u,buildConfig(r))}else i=buildConfig(r);return localStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromLocalStorage=r=>{const u=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let i;return r&&(i=_.get(u,r),i={...i,...getNavigationHistory(u,r)}),i||(i=getNavigationHistory(u,r)),i||u};async function saveHandler(r,u,i,h){var L,P;const g=(L=r.searchParams)==null?void 0:L.get("id"),S=(P=r.searchParams)==null?void 0:P.get("path");saveFormdataInLocalStorage(r.ctx.core.data,S);const v=JSON.parse(localStorage.getItem("pageFormdata"));if(_.isEmpty(r.ctx.core.errors))try{const Q=await i(r,u,v);navigateHandler(r,!0,h?`/${h}?id=${g}`:"/PageMasterRecords")}catch{navigateHandler(r,!1)}}const navigateHandler=(r,u,i)=>{u?(localStorage.removeItem("pageFormdata"),r.navigate(i||-1),r.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(r.setValidation("ValidateAndShow"),r.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(r){var i;const u=(i=r.searchParams)==null?void 0:i.get("path");console.log(r.ctx.core.errors),_.isEmpty(r.ctx.core.errors)?(saveFormdataInLocalStorage(r.ctx.core.data,u),r.navigate(-1),r.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(r.setValidation("ValidateAndShow"),r.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","style","Event","Validation"],MultipleSelect:["Core","Properties","Value","style","Event","Validation"],Table:["Core","Components","Properties","style","Event","Validation"],LeaderBoard:["Core","Components","Properties","style","Event","Validation"],WrapperSection:["Core","Components","Properties","style","Validation"],TabSection:["Core","Components","Properties","style","Validation"],SpeedoMeter:["Core","Properties","style","Event","Validation"],card:["Core","Properties","style","Event","Validation"],UploadFile:["Core","style","Event","Validation"],Graph:["Core","Properties","style","Event","Validation"],DownloadFile:["Core","style","Event","Validation"],Box:["Core","style","Event","Validation"],Properties:["Core","Properties","style","Event","Validation"],ProgressBarCard:["Core","Properties","style","Event","Validation"],RankCard:["Core","Properties","style","Event","Validation"],Slider:["Core","Components","style","Event","Validation"],Timer:["Core","style","Event","Validation"],Rank:["Core","style","Event","Validation"],Button:["Core","Properties","style","Event","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","style","Event","Validation"],Text:["Core","Properties","style","Event","Validation"],TextArea:["Core","Properties","style","Event","Validation"],PopUp:["Core","Components","Properties","style"],Stepper:["Core","Components","Properties","Event","style"],DataGrid:["Core","Components","Properties","Event","style"]},refreshPage=(r,u)=>{var h;const i=_.cloneDeep(componentBasicUiSchema);if(r){const g={Core:CoreSection,Value:ValueTab,style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(r),Validation:ValidationSection},S=(h=sectionLabels[r])==null?void 0:h.map(v=>g[v]);i.elements[1].config.main.tabLabels=sectionLabels[r]||["Core","style","Event","Validation"],i.elements[1].elements=S||[CoreSection,StyleSection,EventSection,ValidationSection]}u.setUiSchema(i)};var Component=(r,u,i,h)=>({setPage:async function(){const g=await this.getFormdata();r.setFormdata(g);const S=this.getSchema();r.setSchema(S),this.refreshPage(g==null?void 0:g.type,r)},refreshPage,getFormdata:function(){var S;const g=(S=r.searchParams)==null?void 0:S.get("path");return getFormdataFromLocalStorage(g)},getSchema:function(){return ComponentSchema},okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,h,i,"PageMaster"),onChange:function(){var g,S,v,L;((g=r==null?void 0:r.formData)==null?void 0:g.type)!==((S=r==null?void 0:r.newData)==null?void 0:S.type)&&((v=r==null?void 0:r.newData)==null?void 0:v.type)!==void 0&&this.refreshPage((L=r==null?void 0:r.newData)==null?void 0:L.type,r)},editComponents:function(){var L,P,Q;const g=u.path.split(".")[1],S=(L=r.searchParams)==null?void 0:L.get("path"),v=(P=r.searchParams)==null?void 0:P.get("id");if(saveFormdataInLocalStorage(r.ctx.core.data,S),S){const ge=`${(Q=r.searchParams)==null?void 0:Q.get("path")}.elements[${g}]`;r.searchParams.set("path",ge),r.setSearchParams(r.searchParams),this.setPage()}else r.navigate(`/Component?path=${`elements[${g}]`}&id=${v}`)},deleteComponents:function(){var P;const g=(P=r.searchParams)==null?void 0:P.get("path"),S=u.path.split(".")[1];r.formData.elements.splice(S,1);const v=saveFormdataInLocalStorage(r.ctx.core.data,g),L=g?_.get(v,g):v;r.setFormdata(L)},deleteEvent:function(){var L;const g=(L=r.searchParams)==null?void 0:L.get("path"),S=u.path.split(".")[1];r.formData.events.splice(S,1);const v=saveFormdataInLocalStorage(r.ctx.core.data,g);r.setFormdata(_.get(v,g))},widgetAddClickHandler:function(){var v;Array.isArray(r.formData.elements)||(r.formData.elements=[]);const g=(v=r.searchParams)==null?void 0:v.get("path");saveFormdataInLocalStorage(r.ctx.core.data,g);const S=`${g}.elements[${r.formData.elements.length}]`;r.searchParams.set("path",S),r.setSearchParams(r.searchParams),this.setPage()},eventEditHandler:function(){var P,Q;const g=u.path.split(".")[1],S=(P=r.searchParams)==null?void 0:P.get("path"),v=(Q=r.searchParams)==null?void 0:Q.get("id");saveFormdataInLocalStorage(r.ctx.core.data,S);const L=`${S}.events[${g}]`;r.navigate(`/ComponentEvents?path=${L}&id=${v}`)},eventAddHandler:function(){var L,P;const g=(L=r.searchParams)==null?void 0:L.get("path"),S=(P=r.searchParams)==null?void 0:P.get("id");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,g);const v=`${g}.events[${r.formData.events.length}]`;r.navigate(`/ComponentEvents?path=${v}&id=${S}`)},backHandler:function(){r.navigate(-1)}}),pageMaster=r=>{const{store:u,dynamicData:i,config:h,submitHandler:g,service:S}=r;return{setPage:async function(){const v=await this.getFormdata();u.setFormdata(v);const L=await this.getUiSchema(),P=await this.getSchema();u.setSchema(P),u.setUiSchema(L)},getFormdata:function(){var L;(L=u.searchParams)==null||L.get("id");const v=getFormdataFromLocalStorage();return v||(saveFormdataInLocalStorage(h),h)},getUiSchema:function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),u.navigate("/PageMasterRecords")},onAddClickHandler:function(){var P;const v=(P=u.searchParams)==null?void 0:P.get("id");Array.isArray(u.formData.elements)||(u.formData.elements=[]);const L=saveFormdataInLocalStorage(u.ctx.core.data);u.navigate(`/Component?path=${`elements[${L==null?void 0:L.elements.length}]`}&id=${v}`)},saveHandler:async()=>await saveHandler(u,S,g),Edit_Components:Component(u,i,g,S).editComponents,Delete_Components:Component(u,i,g,S).deleteComponents,eventAddHandler:function(){var P;const v=(P=u.searchParams)==null?void 0:P.get("id");Array.isArray(u.formData.events)||(u.formData.events=[]),saveFormdataInLocalStorage(u.ctx.core.data);const L=`events[${u.formData.events.length}]`;u.navigate(`/ComponentEvents?path=${L}&id=${v}`)},editEvent:function(){var Q;const v=i.path.split(".")[1],L=(Q=u.searchParams)==null?void 0:Q.get("id");saveFormdataInLocalStorage(u.ctx.core.data);const P=`events[${v}]`;u.navigate(`/ComponentEvents?path=${P}&id=${L}`)},deleteEvent:function(){const v=i.path.split(".")[1];u.formData.events.splice(v,1);const L=saveFormdataInLocalStorage(u.ctx.core.data);u.setFormdata(L)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},eventType:{type:"string",oneOf:[{title:"Click Event",const:"onClick"},{title:"Load Event",const:"onLoad"},{title:"Change Event",const:"onChange"},{title:"Success",const:"Success"},{title:"onStart",const:"onStart"},{title:"File Upload Event",const:"onUpload"},{title:"Back Event",const:"onBack"},{title:"Next Event",const:"onNext"},{title:"File Download Event",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"}}}}},required:["eventType","Handler"]},EventUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core","Response Event"],defaultStyle:!0,id:"event"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Event Type",type:"text"}}},getSelectField("Handler","Handler")]},{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/heading",options:{widget:"Box"},config:{layout:8,main:{heading:"Response Event"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/AddButton",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"addEvent",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/headers",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},{type:"Control",scope:"#/properties/body",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}}]}}}]};var event=(r,u,i,h)=>({setPage:async function(){const g=await this.getFormData();r.setFormdata(g);const S=await this.getSchema();r.setSchema(S),this.refreshPage(g.Handler,r)},refreshPage:(g,S)=>{const v=_.cloneDeep(EventUiSchema),L=_.cloneDeep(EventSchema);g&&(g==="custom"?(v.elements[1].elements[0].elements[2]=getTextArea("eventCode","Write Custom Code",!1),L.required=["eventType","Handler","eventCode"]):g==="api"?(v.elements[1].elements[0].elements[2]=APISection,L.required=["eventType","Handler","method","path"]):g==="inBuiltFunction"?(v.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),v.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6}),L.required=["eventType","Handler","inBuiltFunctionType"]):g==="refresh"&&(v.elements[1].elements[0].elements[2]=refreshSectionUiSchema,L.properties.refreshElements.required=["value"],L.properties.refreshElements.items.required=["value"],L.required=["eventType","Handler","refreshElements"])),S.setSchema(L),S.setUiSchema(v)},getFormData:Component(r,u,i,h).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>EventSchema,okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,h,i,"PageMaster"),onChange:function(){var g,S,v;((g=r==null?void 0:r.formData)==null?void 0:g.Handler)!==((S=r==null?void 0:r.newData)==null?void 0:S.Handler)&&((v=r==null?void 0:r.newData)==null?void 0:v.Handler)!==void 0&&this.refreshPage(r.newData.Handler||r.formdata.Handler,r)},addEvent:function(){var v,L,P;const g=(v=r.searchParams)==null?void 0:v.get("path");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,g);const S=`${g}.events[${(P=(L=r.formData)==null?void 0:L.events)==null?void 0:P.length}]`;r.searchParams.set("path",S),r.setSearchParams(r.searchParams),this.setPage()},editEvent:function(){var L;const g=u.path.split(".")[1],S=(L=r.searchParams)==null?void 0:L.get("path");saveFormdataInLocalStorage(r.ctx.core.data,S);const v=`${S}.events[${g}]`;r.searchParams.set("path",v),r.setSearchParams(r.searchParams),this.setPage()},deleteEvent:Component(r,u,i,h).deleteEvent,backHandler:function(){r.navigate(-1)}});const downloadFile$1=r=>{const u=r.name.split("."),i=r.data,h=window.atob(i);let g;g=new File([h],u[u.length-1]);const S=URL.createObjectURL(g),v=document.createElement("a");v.href=u[u.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:S,v.download=`${r.name}`,document.body.appendChild(v),v.click(),URL.revokeObjectURL(S),document.body.removeChild(v)},doDownload=(r,u)=>{let i=`${u.defaults.baseURL}/${r.path}`;r!=null&&r.params&&Object.keys(r==null?void 0:r.params).map((S,v)=>{i=i+`${v===0?"?":"&"}${S}=${r==null?void 0:r.params[S]}`});const h=document.createElement("a");h.href=i,document.body.appendChild(h),h.click(),h.parentNode.removeChild(h)},executeEvents=async r=>{var h,g,S;let u=[],i=null;try{if(!await shouldEventExecute(r))return{response:void 0,events:void 0};i=await executeEventsHandler(r),u=(h=r.config)==null?void 0:h.events.filter(Q=>Q.eventType==="Success")}catch{const L=(S=(g=r.config)==null?void 0:g.events)==null?void 0:S.filter(Q=>Q.eventType==="Fail");u=(L==null?void 0:L.length)>0?L:[]}if((u==null?void 0:u.length)>0)for(const v of u)await executeEvents({...r,config:v,parentEventOutput:i});return i};async function executeEventsHandler(r){var u,i,h;if(r.config.Handler==="api")return await executeApiEventHandler(r);if(r.config.Handler==="inBuiltFunction")return await executeInBuiltFunctionHandler(r);if(r.config.Handler==="custom")return await executeCustomHandler(r);if(r.config.Handler==="refresh")return await executeRefreshHandler(r);if(r.config.Handler==="mergeFormdata")return await mergeFormdata(r.parentEventOutput,r.componentName,r.config,r.store,r.service);if(r.config.Handler==="onBackHandler")return(u=r.store.functionParameters)==null?void 0:u.handleBack();if(r.config.Handler==="onNextHandler")return(i=r.store.functionParameters)==null?void 0:i.handleNext();if(r.config.Handler==="onResetHandler")return(h=r.store.functionParameters)==null?void 0:h.handleReset()}async function executeRefreshHandler(r){const u=getRefreshElements(r.config,r.eventGroups);for(const i of u)for(const h of r.eventGroups.onLoad[i])await executeEvents({...r,config:h,componentName:i})}async function executeApiEventHandler(r){var v;const u={...(v=r.userValue)==null?void 0:v.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},{body:h,headers:g}=await buildApiPayload(r.config,u,i,r.store,r.dynamicData,r.userValue,r.service);return await r.service[r.config.method](r.config.path,h,g&&{headers:g})}async 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)}async function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode),response=await makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName);return response}async function mergeFormdata(r,u,i,h,g){i.type==="Select"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?h.setSchema(S=>{var v;return{...S,properties:{...S.properties,[u]:{...(v=S.properties)==null?void 0:v[u],oneOf:r.data}}}}):i.type==="MultipleSelect"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?h.setSchema(S=>{var v;return{...S,properties:{...S.properties,[u]:{...(v=S.properties)==null?void 0:v[u],type:"array",items:{oneOf:r==null?void 0:r.data}}}}}):i.type==="page"?_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data)||h.setFormdata(S=>({...S,...r==null?void 0:r.data})):r&&(h.setFormdata(S=>({...S,[u]:i.lazyLoading?r.data.data:r.data})),await asyncOperation())}const buildBodyFormat=(r,u,i)=>{const h={...i==null?void 0:i.payload};return r.map(g=>{var S,v;if(typeof(g==null?void 0:g.value)!="string")h[g.key]=g.value;else if((S=g==null?void 0:g.value)!=null&&S.startsWith("$userValue")){const L=g.value.substring(11);h[g.key]=_.get(i,L)}else if((v=g==null?void 0:g.value)!=null&&v.startsWith("$")){const L=g.value.substring(1);h[g.key]=_.get(u,L)}else h[g.key]=g.value}),h},buildHeadersFormat=r=>{const u={"X-Requested-With":"XMLHttpRequest"};return r.map(i=>{u[i.key]=i.value}),u};async function shouldEventExecute(r){var i,h;const u=(h=(i=r.config)==null?void 0:i.events)==null?void 0:h.filter(g=>g.eventType==="onStart");return(u==null?void 0:u.length)>0?await executeEventsHandler({...r,config:u[0]}):!0}async function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var r,u;if(compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((u=(r=store==null?void 0:store.ctx)==null?void 0:r.core)==null?void 0:u.data)||store.formData,userValue)}),compConfig.apiBody){const makeFunc=eval(compConfig.apiBody),data=await makeFunc(store,dynamicData,userValue,body);body=data}return{body,headers}}function getRefreshElements(r,u){var h;let i=[];return((h=r==null?void 0:r.refreshElements)==null?void 0:h.length)>0?i=r.refreshElements.map(g=>g.value):u!=null&&u.onLoad&&(i=Object.keys(u==null?void 0:u.onLoad),i.push(i[0])),console.log(i),i}function asyncOperation(){return new Promise((r,u)=>{setTimeout(()=>{r("Operation completed successfully!"),u(new Error("Operation failed!"))},50)})}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},extractEvents=r=>{function u(i){i.events&&i.events.forEach(h=>{var S;i.type&&(compType=i.type),eventGroups[h.eventType]||(eventGroups[h.eventType]={}),eventGroups[h.eventType][i.name]||(eventGroups[h.eventType][i.name]=[]);const g=(S=h==null?void 0:h.events)==null?void 0:S.find(v=>v.eventType==="Success");!g&&h.eventType==="onLoad"&&h.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),!g&&(h.eventType==="onBack"||h.eventType==="onNext"||h.eventType==="onReset")&&h.events.push({Handler:`${h.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),eventGroups[h.eventType][i.name].push({...h,type:compType})})}return u(r),r!=null&&r.elements&&r.elements.forEach(extractEvents),eventGroups};var service=r=>{eventGroups={},eventGroups=extractEvents(r.config);let u={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload},eventGroups};return{setPage:async function(){r.store.setFormdata({}),u={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:this,eventGroups},r.store.setSchema(i=>({...r.schema,properties:{...r.schema.properties,...i.properties}})),r.uiSchema.elements.push(notifyUiSchema),r.store.setUiSchema(r.uiSchema),await executeRefreshHandler({config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:this,eventGroups})},onClick:async function(){await this.callHandler("onClick")},onFileDownload:async function(){await this.callHandler("onDownload")},onFileUpload:async function(){await this.callHandler("onUpload")},onPaginationChange:async function(i){var S;const h=[{key:"size",value:i.pagination.pageSize},{key:"pageIndex",value:i.pagination.pageIndex},{key:"sorting",value:i.sorting||[]},{key:"filters",value:i.columnFilters||[]},{key:"globalFilter",value:(S=i.globalFilter)!=null?S:""}],g=await this.updateConfigApiBody(i,h);return g==null?void 0:g.data},getSelectOptions:async function(i){if(i.serachValue!==""&&i.serachValue!==void 0){const h=[{key:"searchValue",value:i.serachValue},{key:"currentValue",value:i.currentValue}];return await this.updateConfigApiBody(i,h)}},onChange:async function(){if(eventGroups.onChange){const i=Object.keys(eventGroups.onChange);Promise.all(i.map(async h=>{var g,S;if(((g=r.store)==null?void 0:g.formData[h])!==r.store.newData[h]&&((S=r.store)==null?void 0:S.newData[h])!==void 0)for(const v of eventGroups.onChange[h])await executeEvents({...u,config:v,componentName:h})}))}},updateConfigApiBody:async function(i,h){var S;let g;for(const v of eventGroups==null?void 0:eventGroups.onLoad[i.path]){v.body?v.body=[...v.body,...h]:v.body=h;const L=(S=v==null?void 0:v.events)==null?void 0:S.filter(P=>P.Handler!=="mergeFormdata");v.events=L!=null?L:[],g=await executeEvents({...u,config:v,componentName:i.path})}return g},onBack:async function(i){var g,S;const h=((g=r.dynamicData)==null?void 0:g.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onBack",i),((S=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:S[h])===void 0&&(i==null||i.handleBack())},onNext:async function(i){var g,S;const h=((g=r.dynamicData)==null?void 0:g.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onNext",i),((S=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:S[h])===void 0&&(i==null||i.handleNext())},onReset:async function(i){var g,S;const h=((g=r.dynamicData)==null?void 0:g.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onReset",i),((S=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:S[h])===void 0&&(i==null||i.handleReset())},callHandler:async function(i,h){var S,v,L;const g=((S=r.dynamicData)==null?void 0:S.tableButtonPath)||r.dynamicData.path.split(".")[0];if(((v=eventGroups==null?void 0:eventGroups[i])==null?void 0:v[g])!==void 0)for(const P of(L=eventGroups==null?void 0:eventGroups[i])==null?void 0:L[g])u.store.functionParameters=h,await executeEvents({...u,config:P,componentName:g})},downloadFile:downloadFile$1,download:doDownload}},leaderBoard={type:"WrapperLayout",config:{main:{rowSpacing:3,header:!0,label:"LeaderBoard",divider:!0},style:{wrapperStyle:{height:{xs:850,sm:1e3}}},wrapperStyle:{position:"relative",width:"100%"}},elements:[{type:"Control",scope:"#/properties/leaderBoard/properties/firstImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"90px",md:"60px"},left:{xs:"calc(50% - 50px)",sm:"calc(50% - 50px)",md:"calc(50% - 100px)"},width:{xs:"100px",sm:"100px",md:"200px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"100px",sm:"100px",md:"200px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(25% - 45px)",sm:"calc(25% - 45px)",md:"calc(25% - 90px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(75% - 42.5px)",sm:"calc(75% - 42.5px)",md:"calc(75% - 85px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/firstName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"190px",md:"270px"},fontSize:{xs:"12px",md:"20px"},left:"calc(50% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%",zIndex:7},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(25% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(75% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/econd",config:{main:{heading:"2"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(25% - 12px)",md:"calc(25% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/first",config:{main:{heading:"1"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"175px",md:"230px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(50% - 12px)",md:"calc(50% - 16px)"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/third",config:{main:{heading:"3"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(75% - 12px)",md:"calc(75% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/table",options:{widget:"Table"},elements:[],config:{style:{tableHeadstyle:{fontWeight:900,background:"rgb(179, 198, 255)"},position:"absolute",top:{xs:"300px",sm:"300px",md:"390px",lg:"390px"},border:"2px solid rgb(179, 198, 255)",width:"95%",left:"2.5%"},main:{disableAction:!0,disableSelection:!0}}}]};const buildLeaderBoard=r=>{const u=_.cloneDeep(leaderBoard);if(r.elements){const i=r.elements.map((h,g)=>h.type?{...{widget:buildUiSchema(h),accessorKey:h.name,header:h.label||h.name}}:{accessorKey:h.name,header:h.label||h.name});u.elements[9].elements=i}return r.name&&(u.elements[0].scope=`#/properties/${r.name}/properties/firstImage`,u.elements[3].scope=`#/properties/${r.name}/properties/firstName`,u.elements[1].scope=`#/properties/${r.name}/properties/secondImage`,u.elements[4].scope=`#/properties/${r.name}/properties/secondName`,u.elements[2].scope=`#/properties/${r.name}/properties/thirdImage`,u.elements[5].scope=`#/properties/${r.name}/properties/thirdName`,u.elements[9].scope=`#/properties/${r.name}/properties/table`),r.firstImage&&(u.elements[0].config.main.url=r.firstImage),r.secondImage&&(u.elements[1].config.main.url=r.secondImage),r.secondImage&&(u.elements[2].config.main.url=r.thirdImage),r.layout&&(u.config.layout=r.layout),u};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:6,main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(r,u)=>{const i=_.cloneDeep(progressBar);return i.scope=u,r.heading&&(i.config.main.heading=r.heading),r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=r.bottomLabel_1),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},buildProgressBar=(r,u)=>{const i=_.cloneDeep(progressBar);return i.scope=u,r.layout&&(i.config.layout=r.layout),i.config.main.heading=r.heading,r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.config.main.bottomLabel_1=r.bottomLabel_1),i},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Bar Graph",bottomLabel:"Name of Employe",numTicks:6,leftLabel:"Value in lakhs",axisLeft:!0,axisBottom:!0,hideTicks:!1,hideLeftAxisLine:!1,hideBottomAxisLine:!1,bottomAxisWidth:"10px",legend:{labelColor:"green",legendTitle:"",direction:"row",align:"none"}},style:{containerStyle:{width:"100%",height:300},headerStyle:{},tooltipStyle:{},labelStyle:{margin:{left:80,bottom:20},leftLabelOffset:50,bottomLabelOffset:10},barStyle:{color:{firstBarColor:"#6c5efb",secondBarColor:"#3f51b5"}},legendStyle:{legend:{lineHeight:"0.9em",fontSize:"8px",fontFamily:"arial",padding:"10px 10px",width:"30%",display:"flex",justifyContent:"center",border:"1px solid rgba(255, 255, 255, 0.3)",borderRadius:" 8px",marginRight:"auto"},legendTitle:{fontSize:"10px",marginBottom:"10px",fontWeight:"100"}}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Incentive Branch category wise",type:"PieGraph",bottomLabel:"Name of Employe",leftLabel:"Value",axisLeft:!0,axisBottom:!0,legendAvailable:!0,legend:{labelColor:"green",legendTitle:"Branches",direction:"row",align:"right"}},style:{containerStyle:{height:"340"},headerStyle:{},tooltipStyle:{backgroundColor:"black",width:"80px"},labelStyle:{},legendStyle:{legend:{},legendTitle:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:12,main:{type:"LineGraph",header:"Quartely Incentive in Thousand",bottomLabel:"Years",leftLabel:"Incentive",gridHidden:!0,numHidden:!1,tooltipDataKey:["MAMA New Project","Second","Third"],axisLeft:!0,axisBottom:!0,hideLeftAxisLine:!1,hideBottomAxisLine:!1,legend:{labelColor:"green",legendTitle:"Our Assests",direction:"row",align:"right",colorRectWidth:20}},style:{containerStyle:{},headerStyle:{},labelStyle:{},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:" ",type:"HorizontalBarGraph",bottomLabel:" ",leftLabel:"Value",axisLeft:!1,axisBottom:!0,hideBottomTicks:!1,hideLeftTicks:!1,hideLeftAxisLine:!0,hideBottomAxisLine:!1,bottomAxisWidth:"10px"},style:{containerStyle:{width:"100%"},headerStyle:{},tooltipStyle:{},labelStyle:{},barStyle:{color:"#6c5efb"}}}},buildHorizontalBarGraph=(r,u)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=u,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=u,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.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=(r,u)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=u,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.heading&&(i.config.main.header=r.heading),r.segments&&(i.config.main.segments=r.segments),r.style){const h=JSON.parse(r.style);h!=null&&h.style&&(i.config.style={...i.config.style,...h.style}),h!=null&&h.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...h.containerStyle})}return r.width&&(i.config.main.width=r.width),r.speedoCaption&&(i.config.main.currentValueText=r.speedoCaption),r.data&&(i.config.main.data=r.data),r.needleColor&&(i.config.style.needleColor=r.needleColor),r.segments&&(i.config.style.segments=r.segments),r.endColor&&(i.config.style.endColor=r.endColor),r.startColor&&(i.config.style.startColor=r.startColor),r.segmentColors&&(i.config.style.segmentColors=r.segmentColors),i},buildPieGraph=(r,u)=>{const i=_.cloneDeep(PieGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.height&&(i.config.style.containerStyle.height=r.height),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),i.scope=u,i.config.main.header=r.heading,r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i},buildStackbarGraph=(r,u)=>{const i=_.cloneDeep(BarGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.legendHide&&(i.config.main.legendAvailable=!1),i.config.main.type=r.graphType,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),i.scope=u,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const RunnerBoyProgressbar=(r,u)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=u,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(r,u)=>{const i=_.cloneDeep(Tabsection);return r.sectionLabels&&(i.config.main.tabLabels=r.sectionLabels.map(h=>h.label)),i.config.main.id=r.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{label:"Default Label",divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(r,u)=>{const i=_.cloneDeep(WrapperSection);return i.config.main.label=r.label,i.config.main.divider=r.divider==="YES",r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:""},style:{}}};const buildTextField=(r,u)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.InputFormatingAndMasking&&(i.config.main.formatStrArray=r.InputFormatingAndMasking.map(h=>h.formatElement)),r.placeholder&&(i.config.main.placeholder=r.placeholder),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=u,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(r,u)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=r.label,r.value&&(i.config.main.options=r.value),r.freeSolo&&(i.config.main.freeSolo=r.freeSolo==="YES"),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=u,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{name:"Compare",variant:"contained",color:"info",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(r,u)=>{const i=_.cloneDeep(Button);return r.buttonType&&(i.options.widget=r.buttonType==="IconButton"?"IconButton":"Button",r.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=r.iconName:i.config.main.icon=r.iconName),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.tooltipMessage&&(i.config.main.tooltipMessage=r.tooltipMessage),r.defaultStyle&&(r.buttonType==="IconButton"?i.config.main.styleDefault=r.defaultStyle==="true":i.config.main.enableDefaultStyle=r.defaultStyle!=="true"),i.scope=u,r.style&&(i.config.style=JSON.parse(r.style)),r.size&&(i.config.main.size=r.size),r.color&&(i.config.main.color=r.color),r.label&&(i.config.main.name=r.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}},lazyLoadingTable={type:"Control",scope:"#/properties/LazyLoadingTable",options:{widget:"LazyLoadingTable"},elements:[],config:{main:{columns:{}}}};const buildTable=(r,u)=>{const i=_.cloneDeep(Table);return i.scope=u,r.style&&(i.config.style=JSON.parse(r.style)),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(h=>h.KeyName)),r.selectKey&&(i.config.main.selectKey=r.selectKey),i},buildLazyLoadingTable=(r,u)=>{const i=_.cloneDeep(lazyLoadingTable);return i.scope=u,r.style&&(i.config.style=JSON.parse(r.style)),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.selectKey&&(i.config.main.selectKey=r.selectKey),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(h=>h.KeyName)),i.config.main.label=r.label,i};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(r,u)=>{const i=_.cloneDeep(Box);return i.scope=u,i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.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:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"DownloadFile"}},buildUploadFile=(r,u)=>{const i=_.cloneDeep(uploadFile);return i.scope=u,i.config.main.label=r.label,r.layout&&(i.config.layout=r.layout),r.layout&&(uploadFile.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),i.config.main.errorMessage=r.errorMessage,i},buildDownloadFile=(r,u)=>{const i=_.cloneDeep(downloadFile);return i.scope=u,r.layout&&(i.config.layout=r.layout),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.errorMessage&&(i.config.main.errorMessage=r.errorMessage),i};var Card={type:"WrapperLayout",config:{main:{rowSpacing:.5},style:{wrapperStyle:{position:"relative",color:"white",height:{xs:"120px",md:"160px"},width:"100%",textAlign:"left",background:"#3f51b5",borderRadius:"20px"}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:"$5000.00"},style:{position:"absolute",left:"10%",top:"15%",color:"#f5effc",height:"80px",display:"flex",fontSize:{xs:"24px",md:"32px"},alignItems:"center",background:"inherit",justifyContent:"flex-start"},layout:5},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{url:"$"},style:{color:"#f5effc",objectFit:"contain",position:"absolute",top:"10px",right:"10px",height:"80%",width:"35%",display:"flex",fontSize:"34px",alignItems:"center",background:"inherit",padding:"20px",justifyContent:"left"},layout:5},options:{widget:"Image"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{position:"absolute",top:"calc(60%)",alignItems:"center",color:"#8999e8",fontSize:"16px",left:"10%",background:"inherit",justifyContent:"center"},layout:12},options:{widget:"Box"}}]};const buildCard=(r,u)=>{const i=_.cloneDeep(Card);return r.style&&(i.config.style=JSON.parse(r.style)),i.elements[0].scope=`#/properties/${r.name}/properties/value`,i.elements[1].scope=`#/properties/${r.name}/properties/url`,i.elements[2].scope=`#/properties/${r.name}/properties/description`,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.label&&(i.elements[0].config.main.heading=r.label),r.url&&(i.elements[1].config.main.url=r.url),r.description&&(i.elements[2].config.main.heading=r.description),i};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"date"}}};const buildDate=(r,u)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=r.label,i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=u,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRankCard=(r,u)=>{const i=_.cloneDeep(RankCard);return i.scope=u,r.image&&(i.config.main.url=r.image),r.title&&(i.config.main.title=r.title),r.description&&(i.config.main.description=r.description),r.rank&&(i.config.main.rank=`#${r.rank}`),r.layout&&(i.config.layout=createLayoutFormat(r.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=(r,u)=>{const i=_.cloneDeep(RollAndDice);return r.name&&(i.scope=u),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{},style:{digitContainer:{borderRadius:"4px",textShawdow:"none",width:"22%"},container:{backgroundColor:"#FFFFFF",borderRadius:"18px"},containerLabelColor:{color:"red"}}}};const buildTimer=(r,u)=>{const i=_.cloneDeep(Timer);return i.scope=u,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",multiple:!0,variant:"standard",options:[]}}};const buildMultiSelect=(r,u)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=u,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.value&&(i.config.main.options=r.value),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),i},buildBasicUiSchema=r=>({type:"HorizontalLayout",pageName:`${r.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=(r,u)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),r.placeholder&&(i.config.main.placeholder=r.placeholder),i.scope=u,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(r,u)=>{const i=_.cloneDeep(cardSlider);return r.name&&(i.scope=u),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(r,u)=>{const i=_.cloneDeep(Checkbox);return i.scope=u,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},buildLineGraph=(r,u)=>{const i=_.cloneDeep(LineGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.header=r.heading,r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i.scope=u,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(r,u)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=u,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.sectionLabels&&(i.config.main.options=r.sectionLabels.map(h=>h.label||h.Options)),r.style&&(i.config.style=JSON.parse(r.style)),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},main:{},style:{}}};const buildEmptyBox=(r,u)=>{const i=_.cloneDeep(emptyBox);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(r,u)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=u,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(r,u)=>{const i=_.cloneDeep(TextField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=u,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(r,u)=>{const i=_.cloneDeep(PanField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=u,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:11.5,main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(r,u)=>{const i=_.cloneDeep(FileInput);return i.scope=u,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.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=(r,u)=>{const i=_.cloneDeep(Stepper);return i.scope=u,i.config.main.resetButton=r.resetButton==="YES",r.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=r.defaultButtonAvailable==="YES"),i.config.main.resetText=r.resetText||"ResetData",i.config.main.completeText=r.completeText||"Complete Text",i.config.main.orientation=r.orientation||"horizontal",r.sectionLabels&&(i.config.main.steps=r.sectionLabels.map((h,g)=>({label:h.label,id:g}))),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.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=(r,u)=>{const i=_.cloneDeep(PopUP);return i.scope=u,i.config.main.title=r.label,i.config.main.fullScreen=r.fullScreen==="YES",i.config.main.fullWidth=r.fullWidth==="YES",i.config.main.maxWidth=r.maxWidth||!1,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(PopUP.config.style=JSON.parse(r.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(r,u)=>{const i=_.cloneDeep(dataGrid);return i.scope=u,r.elevation&&(i.config.main.elevation=+r.elevation),i.config.main.divider=r.divider!=="NO",r.height&&(i.config.main.height=`${r.height}px`),r.justifyContent&&(i.config.main.justifyContent=r.justifyContent),r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.cardLayout&&(i.config.cardLayout=createLayoutFormat(r.cardLayout)),r.style&&(i.config.style=JSON.parse(r.style)),i};exports.schema={type:"object",properties:{},required:[]};function buildRule(r,u,i){var h,g,S,v,L,P,Q,nt,ge,Gt;i?(S=(g=(h=exports.schema.properties)==null?void 0:h[u])==null?void 0:g.items)!=null&&S.properties&&((Q=(P=(L=(v=exports.schema.properties)==null?void 0:v[u])==null?void 0:L.items)==null?void 0:P.properties)!=null&&Q[r.name]||(exports.schema.properties[u].items.properties[r.name]={},r.type==="Select"&&((nt=r.value)==null?void 0:nt.length)>0?exports.schema.properties[u].items.properties[r.name]={oneOf:r.value.map(U=>({const:U.value,title:U.label}))}:r.type==="MultipleSelect"&&((ge=r.value)==null?void 0:ge.length)>0&&(exports.schema.properties[u].items.properties[r.name]={items:{oneOf:r.value.map(U=>({const:U.value,title:U.label}))}}))):(r.type==="Select"||r.type==="MultipleSelect")&&((Gt=r.value)==null?void 0:Gt.length)>0&&(r.type==="Select"?exports.schema.properties[r.name]={oneOf:r.value.map(U=>({const:U.value,title:U.label}))}:r.type==="MultipleSelect"&&(exports.schema.properties[r.name]={items:{oneOf:r.value.map(U=>({const:U.value,title:U.label}))}})),r.validation&&r.validation.forEach(U=>{var Ge,gt,ae,Oe,$t,he,$e,me,Ke,we,rt,It;u?(ae=(gt=(Ge=exports.schema.properties)==null?void 0:Ge[u])==null?void 0:gt.items)!=null&&ae.properties&&(($e=(he=($t=(Oe=exports.schema.properties)==null?void 0:Oe[u])==null?void 0:$t.items)==null?void 0:he.properties)!=null&&$e[r.name]||(exports.schema.properties[u].items.properties[r.name]={},r.type==="Select"||((me=r.value)==null?void 0:me.length)>0?exports.schema.properties[u].items.properties[r.name]={oneOf:r.value.map(ht=>({const:ht.value,title:ht.label}))}:(r.type==="MultipleSelect"||((Ke=r.value)==null?void 0:Ke.length)>0)&&(exports.schema.properties[u].items.properties[r.name]={items:{oneOf:r.value.map(ht=>({const:ht.value,title:ht.label}))}})),U.validationType==="required"?(It=(rt=(we=exports.schema.properties)==null?void 0:we[u])==null?void 0:rt.items)==null||It.required.push(r.name):(exports.schema.properties[u].items.properties[r.name].type="string",exports.schema.properties[u].items.properties[r.name][U.validationType]=isNaN(U.validationValue)?U.validationValue:Number(U.validationValue))):(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={}),U.validationType==="required"?exports.schema.required.push(r.name):(exports.schema.properties[r.name].type="string",exports.schema.properties[r.name][U.validationType]=isNaN(U.validationValue)?U.validationValue:Number(U.validationValue)))})}const buildSchema=(r,u,i)=>(buildRule(r,u,i),r!=null&&r.elements&&(r.type=="Table"||r.type=="Array"?(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={type:"array",items:{type:"object",properties:{},required:[]}}),r.elements.map((h,g)=>{buildSchema(h,r.name,r.type==="Array")})):r.elements.map((h,g)=>{buildSchema(h)})),exports.schema),buildUiSchema=r=>{let u={};const i=`#/properties/${r.name}`;switch(r.type){case"DataGrid":u=buildDataGrid(r,i);break;case"Stepper":u=buildStepper(r,i);break;case"PopUp":u=buildPopUp(r,i);break;case"FileInput":u=buildFileInput(r,i);break;case"AadharcardText":u=buildAdhaarField(r,i);break;case"PanCardText":u=buildPanField(r,i);break;case"TabSection":u=buildTabSection(r);break;case"RunnerBoyProgressBar":u=RunnerBoyProgressbar(r,i);break;case"WrapperSection":u=buildWrapperSection(r);break;case"Text":u=buildTextField(r,i);break;case"TextArea":u=buildTextArea(r,i);break;case"Date":u=buildDate(r,i);break;case"Select":u=buildSelect(r,i);break;case"Radio":u=buildRadio(r,i);break;case"Button":u=buildButton(r,i);break;case"Table":u=buildTable(r,i);break;case"Array":u=buildArray(r,i);break;case"LazyLoadingTable":u=buildLazyLoadingTable(r,i);break;case"Box":u=buildLabel(r,i);break;case"CheckBox":u=buildCheckbox(r,i);break;case"UploadFile":u=buildUploadFile(r,i);break;case"DownloadFile":u=buildDownloadFile(r,i);break;case"EmptyBox":u=buildEmptyBox(r);break;case"card":u=buildCard(r);break;case"Graph":switch(r.graphType){case"BarGraph":case"StackBarGraph":u=buildStackbarGraph(r,i);break;case"LineGraph":u=buildLineGraph(r,i);break;case"PieGraph":u=buildPieGraph(r,i);break;case"HorizontalBarGraph":u=buildHorizontalBarGraph(r,i);break}break;case"ProgressBar":u=buildProgressBar(r,i);break;case"SpeedoMeter":u=buildSpeedoMeter(r,i);break;case"ProgressBarCard":u=buildProgressBarCard(r,i);break;case"RankCard":u=buildRankCard(r,i);break;case"Rank":u=buildRollAndDice(r,i);break;case"Slider":u=buildSlider(r,i);break;case"Timer":u=buildTimer(r,i);break;case"MultipleSelect":u=buildMultiSelect(r,i);break;case"LeaderBoard":u=buildLeaderBoard(r);break;default:exports.schema={type:"object",properties:{},required:[]},u=buildBasicUiSchema(r)}if(r!=null&&r.elements){if((r==null?void 0:r.type)==="LeaderBoard")return u;if(r.type=="Table"){const h={};r.sizeHolder&&r.sizeHolder.map((g,S)=>{h[g.keyName]=g.value}),u.elements=r.elements.map((g,S)=>g.type?{accessorKey:g.name,header:g.label||g.name,size:h[g.name]||180,widget:buildUiSchema(g)}:{accessorKey:g.name,header:g.label||g.name,size:h[g.name]||180})}else r.type=="Array"?u.options.detail.elements=r.elements.map((h,g)=>buildUiSchema(h)):u.elements=r.elements.map((h,g)=>buildUiSchema(h))}return u};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromLocalStorage=clearFromLocalStorage,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
27
+ }`;var k=ol(function(){return W(s,A+"return "+w).apply(i,p)});if(k.source=w,vi(k))throw k;return k}function ug(e){return z(e).toLowerCase()}function pg(e){return z(e).toUpperCase()}function cg(e,t,n){if(e=z(e),e&&(n||t===i))return go(e);if(!e||!(t=be(t)))return e;var o=Pe(e),a=Pe(t),s=ho(o,a),p=mo(o,a)+1;return ft(o,s,p).join("")}function fg(e,t,n){if(e=z(e),e&&(n||t===i))return e.slice(0,vo(e)+1);if(!e||!(t=be(t)))return e;var o=Pe(e),a=mo(o,Pe(t))+1;return ft(o,0,a).join("")}function dg(e,t,n){if(e=z(e),e&&(n||t===i))return e.replace(vr,"");if(!e||!(t=be(t)))return e;var o=Pe(e),a=ho(o,Pe(t));return ft(o,a).join("")}function gg(e,t){var n=gn,o=ht;if(Y(t)){var a="separator"in t?t.separator:a;n="length"in t?D(t.length):n,o="omission"in t?be(t.omission):o}e=z(e);var s=e.length;if(Et(e)){var p=Pe(e);s=p.length}if(n>=s)return e;var c=n-Rt(o);if(c<1)return o;var d=p?ft(p,0,c).join(""):e.slice(0,c);if(a===i)return d+o;if(p&&(c+=d.length-c),bi(a)){if(e.slice(c).search(a)){var b,x=d;for(a.global||(a=kr(a.source,z(ki.exec(a))+"g")),a.lastIndex=0;b=a.exec(x);)var w=b.index;d=d.slice(0,w===i?c:w)}}else if(e.indexOf(be(a),c)!=c){var C=d.lastIndexOf(a);C>-1&&(d=d.slice(0,C))}return d+o}function hg(e){return e=z(e),e&&Ll.test(e)?e.replace(Ri,Gs):e}var mg=Ot(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),Si=aa("toUpperCase");function il(e,t,n){return e=z(e),t=n?i:t,t===i?Ns(e)?qs(e):Ts(e):e.match(t)||[]}var ol=H(function(e,t){try{return ye(e,i,t)}catch(n){return vi(n)?n:new E(n)}}),yg=Ze(function(e,t){return Le(t,function(n){n=Ue(n),Xe(e,n,mi(e[n],e))}),e});function vg(e){var t=e==null?0:e.length,n=F();return e=t?V(e,function(o){if(typeof o[1]!="function")throw new Ie(v);return[n(o[0]),o[1]]}):[],H(function(o){for(var a=-1;++a<t;){var s=e[a];if(ye(s[0],this,o))return ye(s[1],this,o)}})}function bg(e){return Gu(Fe(e,ge))}function wi(e){return function(){return e}}function xg(e,t){return e==null||e!==e?t:e}var _g=sa(),Sg=sa(!0);function de(e){return e}function Ci(e){return No(typeof e=="function"?e:Fe(e,ge))}function wg(e){return Wo(Fe(e,ge))}function Cg(e,t){return zo(e,Fe(t,ge))}var Lg=H(function(e,t){return function(n){return ln(n,e,t)}}),Ig=H(function(e,t){return function(n){return ln(e,n,t)}});function Li(e,t,n){var o=te(t),a=Un(t,o);n==null&&!(Y(t)&&(a.length||!o.length))&&(n=t,t=e,e=this,a=Un(t,te(t)));var s=!(Y(n)&&"chain"in n)||!!n.chain,p=je(e);return Le(a,function(c){var d=t[c];e[c]=d,p&&(e.prototype[c]=function(){var b=this.__chain__;if(s||b){var x=e(this.__wrapped__),w=x.__actions__=pe(this.__actions__);return w.push({func:d,args:arguments,thisArg:e}),x.__chain__=b,x}return d.apply(e,at([this.value()],arguments))})}),e}function Ag(){return ne._===this&&(ne._=Qs),this}function Ii(){}function Fg(e){return e=D(e),H(function(t){return Uo(t,e)})}var Tg=ri(V),Bg=ri(so),Eg=ri(Fr);function al(e){return pi(e)?Tr(Ue(e)):ap(e)}function Rg(e){return function(t){return e==null?i:St(e,t)}}var Dg=pa(),Pg=pa(!0);function Ai(){return[]}function Fi(){return!1}function kg(){return{}}function Hg(){return""}function Mg(){return!0}function Ng(e,t){if(e=D(e),e<1||e>it)return[];var n=Oe,o=ie(e,Oe);t=F(t),e-=Oe;for(var a=Rr(o,t);++n<e;)t(n);return a}function Og(e){return R(e)?V(e,Ue):xe(e)?[e]:pe(Ia(z(e)))}function Wg(e){var t=++Js;return z(e)+t}var zg=Yn(function(e,t){return e+t},0),Ug=ii("ceil"),Gg=Yn(function(e,t){return e/t},1),$g=ii("floor");function Kg(e){return e&&e.length?zn(e,de,Gr):i}function qg(e,t){return e&&e.length?zn(e,F(t,2),Gr):i}function Vg(e){return co(e,de)}function Yg(e,t){return co(e,F(t,2))}function Xg(e){return e&&e.length?zn(e,de,Vr):i}function Jg(e,t){return e&&e.length?zn(e,F(t,2),Vr):i}var Zg=Yn(function(e,t){return e*t},1),Qg=ii("round"),jg=Yn(function(e,t){return e-t},0);function eh(e){return e&&e.length?Er(e,de):0}function th(e,t){return e&&e.length?Er(e,F(t,2)):0}return l.after=wf,l.ary=Ma,l.assign=pd,l.assignIn=Za,l.assignInWith=lr,l.assignWith=cd,l.at=fd,l.before=Na,l.bind=mi,l.bindAll=yg,l.bindKey=Oa,l.castArray=kf,l.chain=Pa,l.chunk=Gp,l.compact=$p,l.concat=Kp,l.cond=vg,l.conforms=bg,l.constant=wi,l.countBy=jc,l.create=dd,l.curry=Wa,l.curryRight=za,l.debounce=Ua,l.defaults=gd,l.defaultsDeep=hd,l.defer=Cf,l.delay=Lf,l.difference=qp,l.differenceBy=Vp,l.differenceWith=Yp,l.drop=Xp,l.dropRight=Jp,l.dropRightWhile=Zp,l.dropWhile=Qp,l.fill=jp,l.filter=tf,l.flatMap=of,l.flatMapDeep=af,l.flatMapDepth=lf,l.flatten=Ba,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=If,l.flow=_g,l.flowRight=Sg,l.fromPairs=nc,l.functions=Sd,l.functionsIn=wd,l.groupBy=sf,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=Ld,l.invertBy=Id,l.invokeMap=pf,l.iteratee=Ci,l.keyBy=cf,l.keys=te,l.keysIn=fe,l.map=tr,l.mapKeys=Fd,l.mapValues=Td,l.matches=wg,l.matchesProperty=Cg,l.memoize=rr,l.merge=Bd,l.mergeWith=Qa,l.method=Lg,l.methodOf=Ig,l.mixin=Li,l.negate=ir,l.nthArg=Fg,l.omit=Ed,l.omitBy=Rd,l.once=Af,l.orderBy=ff,l.over=Tg,l.overArgs=Ff,l.overEvery=Bg,l.overSome=Eg,l.partial=yi,l.partialRight=Ga,l.partition=df,l.pick=Dd,l.pickBy=ja,l.property=al,l.propertyOf=Rg,l.pull=cc,l.pullAll=Ra,l.pullAllBy=fc,l.pullAllWith=dc,l.pullAt=gc,l.range=Dg,l.rangeRight=Pg,l.rearg=Tf,l.reject=mf,l.remove=hc,l.rest=Bf,l.reverse=gi,l.sampleSize=vf,l.set=kd,l.setWith=Hd,l.shuffle=bf,l.slice=mc,l.sortBy=Sf,l.sortedUniq=wc,l.sortedUniqBy=Cc,l.split=og,l.spread=Ef,l.tail=Lc,l.take=Ic,l.takeRight=Ac,l.takeRightWhile=Fc,l.takeWhile=Tc,l.tap=$c,l.throttle=Rf,l.thru=er,l.toArray=Ya,l.toPairs=el,l.toPairsIn=tl,l.toPath=Og,l.toPlainObject=Ja,l.transform=Md,l.unary=Df,l.union=Bc,l.unionBy=Ec,l.unionWith=Rc,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Nd,l.unzip=hi,l.unzipWith=Da,l.update=Od,l.updateWith=Wd,l.values=Ut,l.valuesIn=zd,l.without=Hc,l.words=il,l.wrap=Pf,l.xor=Mc,l.xorBy=Nc,l.xorWith=Oc,l.zip=Wc,l.zipObject=zc,l.zipObjectDeep=Uc,l.zipWith=Gc,l.entries=el,l.entriesIn=tl,l.extend=Za,l.extendWith=lr,Li(l,l),l.add=zg,l.attempt=ol,l.camelCase=Kd,l.capitalize=nl,l.ceil=Ug,l.clamp=Ud,l.clone=Hf,l.cloneDeep=Nf,l.cloneDeepWith=Of,l.cloneWith=Mf,l.conformsTo=Wf,l.deburr=rl,l.defaultTo=xg,l.divide=Gg,l.endsWith=qd,l.eq=He,l.escape=Vd,l.escapeRegExp=Yd,l.every=ef,l.find=nf,l.findIndex=Fa,l.findKey=md,l.findLast=rf,l.findLastIndex=Ta,l.findLastKey=yd,l.floor=$g,l.forEach=ka,l.forEachRight=Ha,l.forIn=vd,l.forInRight=bd,l.forOwn=xd,l.forOwnRight=_d,l.get=xi,l.gt=zf,l.gte=Uf,l.has=Cd,l.hasIn=_i,l.head=Ea,l.identity=de,l.includes=uf,l.indexOf=rc,l.inRange=Gd,l.invoke=Ad,l.isArguments=Lt,l.isArray=R,l.isArrayBuffer=Gf,l.isArrayLike=ce,l.isArrayLikeObject=J,l.isBoolean=$f,l.isBuffer=dt,l.isDate=Kf,l.isElement=qf,l.isEmpty=Vf,l.isEqual=Yf,l.isEqualWith=Xf,l.isError=vi,l.isFinite=Jf,l.isFunction=je,l.isInteger=$a,l.isLength=or,l.isMap=Ka,l.isMatch=Zf,l.isMatchWith=Qf,l.isNaN=jf,l.isNative=ed,l.isNil=nd,l.isNull=td,l.isNumber=qa,l.isObject=Y,l.isObjectLike=X,l.isPlainObject=dn,l.isRegExp=bi,l.isSafeInteger=rd,l.isSet=Va,l.isString=ar,l.isSymbol=xe,l.isTypedArray=zt,l.isUndefined=id,l.isWeakMap=od,l.isWeakSet=ad,l.join=sc,l.kebabCase=Xd,l.last=Be,l.lastIndexOf=uc,l.lowerCase=Jd,l.lowerFirst=Zd,l.lt=ld,l.lte=sd,l.max=Kg,l.maxBy=qg,l.mean=Vg,l.meanBy=Yg,l.min=Xg,l.minBy=Jg,l.stubArray=Ai,l.stubFalse=Fi,l.stubObject=kg,l.stubString=Hg,l.stubTrue=Mg,l.multiply=Zg,l.nth=pc,l.noConflict=Ag,l.noop=Ii,l.now=nr,l.pad=Qd,l.padEnd=jd,l.padStart=eg,l.parseInt=tg,l.random=$d,l.reduce=gf,l.reduceRight=hf,l.repeat=ng,l.replace=rg,l.result=Pd,l.round=Qg,l.runInContext=f,l.sample=yf,l.size=xf,l.snakeCase=ig,l.some=_f,l.sortedIndex=yc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=_c,l.sortedLastIndexOf=Sc,l.startCase=ag,l.startsWith=lg,l.subtract=jg,l.sum=eh,l.sumBy=th,l.template=sg,l.times=Ng,l.toFinite=et,l.toInteger=D,l.toLength=Xa,l.toLower=ug,l.toNumber=Ee,l.toSafeInteger=ud,l.toString=z,l.toUpper=pg,l.trim=cg,l.trimEnd=fg,l.trimStart=dg,l.truncate=gg,l.unescape=hg,l.uniqueId=Wg,l.upperCase=mg,l.upperFirst=Si,l.each=ka,l.eachRight=Ha,l.first=Ea,Li(l,function(){var e={};return We(l,function(t,n){G.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=h,Le(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Le(["drop","take"],function(e,t){N.prototype[e]=function(n){n=n===i?1:ee(D(n),0);var o=this.__filtered__&&!t?new N(this):this.clone();return o.__filtered__?o.__takeCount__=ie(n,o.__takeCount__):o.__views__.push({size:ie(n,Oe),type:e+(o.__dir__<0?"Right":"")}),o},N.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Le(["filter","map","takeWhile"],function(e,t){var n=t+1,o=n==Ti||n==cl;N.prototype[e]=function(a){var s=this.clone();return s.__iteratees__.push({iteratee:F(a,3),type:n}),s.__filtered__=s.__filtered__||o,s}}),Le(["head","last"],function(e,t){var n="take"+(t?"Right":"");N.prototype[e]=function(){return this[n](1).value()[0]}}),Le(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");N.prototype[e]=function(){return this.__filtered__?new N(this):this[n](1)}}),N.prototype.compact=function(){return this.filter(de)},N.prototype.find=function(e){return this.filter(e).head()},N.prototype.findLast=function(e){return this.reverse().find(e)},N.prototype.invokeMap=H(function(e,t){return typeof e=="function"?new N(this):this.map(function(n){return ln(n,e,t)})}),N.prototype.reject=function(e){return this.filter(ir(F(e)))},N.prototype.slice=function(e,t){e=D(e);var n=this;return n.__filtered__&&(e>0||t<0)?new N(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=D(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},N.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},N.prototype.toArray=function(){return this.take(Oe)},We(N.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],s=o||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,c=o?[1]:arguments,d=p instanceof N,b=c[0],x=d||R(p),w=function(M){var O=a.apply(l,at([M],c));return o&&C?O[0]:O};x&&n&&typeof b=="function"&&b.length!=1&&(d=x=!1);var C=this.__chain__,A=!!this.__actions__.length,T=s&&!C,k=d&&!A;if(!s&&x){p=k?p:new N(this);var B=e.apply(p,c);return B.__actions__.push({func:er,args:[w],thisArg:i}),new Ae(B,C)}return T&&k?e.apply(this,c):(B=this.thru(w),T?o?B.value()[0]:B.value():B)})}),Le(["pop","push","shift","sort","splice","unshift"],function(e){var t=In[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var s=this.value();return t.apply(R(s)?s:[],a)}return this[n](function(p){return t.apply(R(p)?p:[],a)})}}),We(N.prototype,function(e,t){var n=l[t];if(n){var o=n.name+"";G.call(Ht,o)||(Ht[o]=[]),Ht[o].push({name:t,func:n})}}),Ht[Vn(i,Ne).name]=[{name:"wrapper",func:i}],N.prototype.clone=gu,N.prototype.reverse=hu,N.prototype.value=mu,l.prototype.at=Kc,l.prototype.chain=qc,l.prototype.commit=Vc,l.prototype.next=Yc,l.prototype.plant=Jc,l.prototype.reverse=Zc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,jt&&(l.prototype[jt]=Xc),l},Dt=Vs();yt?((yt.exports=Dt)._=Dt,Cr._=Dt):ne._=Dt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{oneOf:[{title:"AadharcardText",const:"AadharcardText"},{title:"Array",const:"Array"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{title:"CheckBox",const:"CheckBox"},{title:"Container",const:"WrapperSection"},{title:"DataGrid",const:"DataGrid"},{title:"Date",const:"Date"},{title:"Download File",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"File",const:"FileInput"},{title:"Graph",const:"Graph"},{title:"Label",const:"Box"},{title:"LeaderBoard",const:"LeaderBoard"},{title:"MultipleSelect",const:"MultipleSelect"},{title:"PanCardText",const:"PanCardText"},{title:"Popup Container",const:"PopUp"},{title:"ProgressBar",const:"ProgressBar"},{title:"ProgressBar Card",const:"ProgressBarCard"},{title:"Select",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 Progress Bar",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 File",const:"UploadFile"}]},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"}}}},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"}]},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"}]},name:{type:"string"},label:{type:"string"}},required:["name"]},componentBasicUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core"],defaultStyle:!0,id:"component"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},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:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},CoreSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name"}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},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."}}}]}}}]},EventSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Event Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"eventAddHandler",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},EmptyBox={type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}},cardLayout={type:"Control",scope:"#/properties/cardLayout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},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."}}}]}}},getArrayControl=(r,u,i)=>({type:"Control",scope:`#/properties/${r}`,layout:11.5,options:{elementLabelProp:u,detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${u}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:i||"Labels for Tab"}}},EmptyBox]}}}),sizeHolder=getArrayControl("sizeHolder","keyName","Component Name");sizeHolder.options.detail.elements[1]={type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Size"}}};const getInputField=(r,u)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u}}}),getRadioInputField=(r,u,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,options:i}}}),getTextArea=(r,u,i,h)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"TextArea"},config:{layout:h||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:u,minRows:8,hideButton:i}}}),getSelectField=(r,u,i)=>({type:"Control",scope:`#/properties/${r}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,type:"text"}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(r){let u=_.cloneDeep(GraphSection);switch(r){case"DataGrid":u.elements=[getRadioInputField("divider","Use Header divider",["YES","NO"]),getInputField("elevation","Card Elevation"),getInputField("height","Grid height"),getInputField("justifyContent","justifyContent"),cardLayout];break;case"Stepper":u.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"),getArrayControl("sectionLabels","label")];break;case"PopUp":u.elements=[getRadioInputField("fullScreen","FullScreen",["YES","NO"]),getRadioInputField("fullWidth","FullWidth",["YES","NO"]),getInputField("maxWidth","Max. Width"),EmptyBox];break;case"Text":u.elements=[getInputField("placeholder","Placeholder"),EmptyBox,getArrayControl("InputFormatingAndMasking","formatElement","Format Element")];break;case"TextArea":u.elements=[getInputField("placeholder","Placeholder"),EmptyBox];break;case"SpeedoMeter":u.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width")];break;case"RankCard":u.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];break;case"LeaderBoard":u.elements=[getInputField("valueLabel","Value Label"),getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getTextArea("functionCode","Write Compare Code",!1)];break;case"CardSlider":u.elements=[getInputField("heading","Heading"),getInputField("iconName","Icon Name")];break;case"ProgressBar":case"ProgressBarCard":u.elements=[getInputField("heading","Heading"),getInputField("bottomLabel_1","First BottomLabel"),getInputField("bottomLabel_2","Second BottomLabel"),getInputField("bottomLabel_3","Third BottomLabel")];break;case"card":u.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description"),EmptyBox];break;case"Button":u.elements=[getSelectField("buttonType","Button Type"),getSelectField("iconName","Icon Name"),getSelectField("color","Color"),getInputField("tooltipMessage","Tooltip Message"),getSelectField("defaultStyle","Default Style"),EmptyBox];break;case"Graph":u.elements=[getInputField("height","Height"),getInputField("heading","Heading"),getSelectField("graphType","Graph Type"),getInputField("leftLabel","Left Label"),getInputField("bottomLabel","Bottom Label"),getRadioInputField("legendHide","Legend Hide",["YES","No"]),getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")];break;case"WrapperSection":u.elements=[getRadioInputField("divider","Divider",["YES","No"]),EmptyBox];break;case"TabSection":u.elements=[getArrayControl("sectionLabels","label")];break;case"Table":case"LazyLoadingTable":u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Selection Available",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing Available",["YES","NO"]),getRadioInputField("DragAvailable","Drag Available",["YES","NO"]),getRadioInputField("downloadAllData","Download All Data",["YES","NO"]),getInputField("selectKey","Selection Key"),getArrayControl("Table_Download_Keys_Name","KeyName","Table Key Name"),sizeHolder];break;case"Radio":u.elements=[getArrayControl("sectionLabels","label","Options Of Radio")];break;case"Select":u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"])];break;case"MultipleSelect":u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),EmptyBox];break}return u},StyleSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Components Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"widgetAddClickHandler",tooltipMessage:"Add New"},style:{float:"right"}}},{type:"Control",scope:"#/properties/elements",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"name",header:"Name"},{accessorKey:"type",header:"Type"},{header:"Edit Record",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"EditIcon",color:"primary",onClick:"editComponents",tooltipMessage:"Reject This Record"}}}},{header:"Delete",field:"Reject_Records",flex:1,widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",onClick:"deleteComponents",tooltipMessage:"Reject This Record"}}}}]}]}]},ValueTab={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}}]},ValidationSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validation",layout:11.5,options:{elementLabelProp:"validationType",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Value"}}}]}}}]};var buildConfig=r=>{const u=_.cloneDeep(r);let i={};return u.pageName&&delete u.pageName,u.eventsSelected&&delete u.eventsSelected,(u.type==="Table"||u.type==="WrapperSection"||u.type==="TabSection")&&(i.elements=u.elements||[],u.elements&&delete u.elements),i.events=u.events||[],u.events&&delete u.events,i={...u,...i},i};const createLayoutFormat=r=>{if(_.isEmpty(r))return{xs:11,sm:11,md:5.5,lg:5.5};let u={};return r.map(i=>{u[i.key||"xs"]=+i.value||5.5}),u},flatObjectValueInArray=r=>{const u=Object.keys(r[0])[0];return r.map(h=>h[u])},clearFromLocalStorage=()=>{localStorage.removeItem("pageFormdata")},getNavigationHistory=(r,u)=>{if(u){let i=r.name;const h=u.split("."),g=[];return h.map((S,v)=>{if(v===0){g.push(S);return}g.push(`${g[v-1]}.${S}`)}),g.map(S=>{const v=_.get(r,S);v?i=i+` > ${(v==null?void 0:v.name)||(v==null?void 0:v.eventType)}`:i=i+" > NewComponent"}),{pageName:i}}},saveFormdataInLocalStorage=(r,u)=>{let i;if(u){const h=getFormdataFromLocalStorage();i=_.set(h,u,buildConfig(r))}else i=buildConfig(r);return localStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromLocalStorage=r=>{const u=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let i;return r&&(i=_.get(u,r),i={...i,...getNavigationHistory(u,r)}),i||(i=getNavigationHistory(u,r)),i||u};async function saveHandler(r,u,i,h){var L,P;const g=(L=r.searchParams)==null?void 0:L.get("id"),S=(P=r.searchParams)==null?void 0:P.get("path");saveFormdataInLocalStorage(r.ctx.core.data,S);const v=JSON.parse(localStorage.getItem("pageFormdata"));if(_.isEmpty(r.ctx.core.errors))try{const Q=await i(r,u,v);navigateHandler(r,!0,h?`/${h}?id=${g}`:"/PageMasterRecords")}catch{navigateHandler(r,!1)}}const navigateHandler=(r,u,i)=>{u?(localStorage.removeItem("pageFormdata"),r.navigate(i||-1),r.setNotify({SuccessMessage:"Submit Successfully",Success:!0})):(r.setValidation("ValidateAndShow"),r.setNotify({Fail:!0,FailMessage:"Errors on Page"}))};function okHandler(r){var i;const u=(i=r.searchParams)==null?void 0:i.get("path");console.log(r.ctx.core.errors),_.isEmpty(r.ctx.core.errors)?(saveFormdataInLocalStorage(r.ctx.core.data,u),r.navigate(-1),r.setNotify({SuccessMessage:"Save Successfully",Success:!0})):(r.setValidation("ValidateAndShow"),r.setNotify({Fail:!0,FailMessage:"Errors on Page"}))}const sectionLabels={Select:["Core","Properties","Value","style","Event","Validation"],MultipleSelect:["Core","Properties","Value","style","Event","Validation"],Table:["Core","Components","Properties","style","Event","Validation"],LeaderBoard:["Core","Components","Properties","style","Event","Validation"],WrapperSection:["Core","Components","Properties","style","Validation"],TabSection:["Core","Components","Properties","style","Validation"],SpeedoMeter:["Core","Properties","style","Event","Validation"],card:["Core","Properties","style","Event","Validation"],UploadFile:["Core","style","Event","Validation"],Graph:["Core","Properties","style","Event","Validation"],DownloadFile:["Core","style","Event","Validation"],Box:["Core","style","Event","Validation"],Properties:["Core","Properties","style","Event","Validation"],ProgressBarCard:["Core","Properties","style","Event","Validation"],RankCard:["Core","Properties","style","Event","Validation"],Slider:["Core","Components","style","Event","Validation"],Timer:["Core","style","Event","Validation"],Rank:["Core","style","Event","Validation"],Button:["Core","Properties","style","Event","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","style","Event","Validation"],Text:["Core","Properties","style","Event","Validation"],TextArea:["Core","Properties","style","Event","Validation"],PopUp:["Core","Components","Properties","style"],Stepper:["Core","Components","Properties","Event","style"],DataGrid:["Core","Components","Properties","Event","style"]},refreshPage=(r,u)=>{var h;const i=_.cloneDeep(componentBasicUiSchema);if(r){const g={Core:CoreSection,Value:ValueTab,style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(r),Validation:ValidationSection},S=(h=sectionLabels[r])==null?void 0:h.map(v=>g[v]);i.elements[1].config.main.tabLabels=sectionLabels[r]||["Core","style","Event","Validation"],i.elements[1].elements=S||[CoreSection,StyleSection,EventSection,ValidationSection]}u.setUiSchema(i)};var Component=(r,u,i,h)=>({setPage:async function(){const g=await this.getFormdata();r.setFormdata(g);const S=this.getSchema();r.setSchema(S),this.refreshPage(g==null?void 0:g.type,r)},refreshPage,getFormdata:function(){var S;const g=(S=r.searchParams)==null?void 0:S.get("path");return getFormdataFromLocalStorage(g)},getSchema:function(){return ComponentSchema},okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,h,i,"PageMaster"),onChange:function(){var g,S,v,L;((g=r==null?void 0:r.formData)==null?void 0:g.type)!==((S=r==null?void 0:r.newData)==null?void 0:S.type)&&((v=r==null?void 0:r.newData)==null?void 0:v.type)!==void 0&&this.refreshPage((L=r==null?void 0:r.newData)==null?void 0:L.type,r)},editComponents:function(){var L,P,Q;const g=u.path.split(".")[1],S=(L=r.searchParams)==null?void 0:L.get("path"),v=(P=r.searchParams)==null?void 0:P.get("id");if(saveFormdataInLocalStorage(r.ctx.core.data,S),S){const ge=`${(Q=r.searchParams)==null?void 0:Q.get("path")}.elements[${g}]`;r.searchParams.set("path",ge),r.setSearchParams(r.searchParams),this.setPage()}else r.navigate(`/Component?path=${`elements[${g}]`}&id=${v}`)},deleteComponents:function(){var P;const g=(P=r.searchParams)==null?void 0:P.get("path"),S=u.path.split(".")[1];r.formData.elements.splice(S,1);const v=saveFormdataInLocalStorage(r.ctx.core.data,g),L=g?_.get(v,g):v;r.setFormdata(L)},deleteEvent:function(){var L;const g=(L=r.searchParams)==null?void 0:L.get("path"),S=u.path.split(".")[1];r.formData.events.splice(S,1);const v=saveFormdataInLocalStorage(r.ctx.core.data,g);r.setFormdata(_.get(v,g))},widgetAddClickHandler:function(){var v;Array.isArray(r.formData.elements)||(r.formData.elements=[]);const g=(v=r.searchParams)==null?void 0:v.get("path");saveFormdataInLocalStorage(r.ctx.core.data,g);const S=`${g}.elements[${r.formData.elements.length}]`;r.searchParams.set("path",S),r.setSearchParams(r.searchParams),this.setPage()},eventEditHandler:function(){var P,Q;const g=u.path.split(".")[1],S=(P=r.searchParams)==null?void 0:P.get("path"),v=(Q=r.searchParams)==null?void 0:Q.get("id");saveFormdataInLocalStorage(r.ctx.core.data,S);const L=`${S}.events[${g}]`;r.navigate(`/ComponentEvents?path=${L}&id=${v}`)},eventAddHandler:function(){var L,P;const g=(L=r.searchParams)==null?void 0:L.get("path"),S=(P=r.searchParams)==null?void 0:P.get("id");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,g);const v=`${g}.events[${r.formData.events.length}]`;r.navigate(`/ComponentEvents?path=${v}&id=${S}`)},backHandler:function(){r.navigate(-1)}}),pageMaster=r=>{const{store:u,dynamicData:i,config:h,submitHandler:g,service:S}=r;return{setPage:async function(){const v=await this.getFormdata();u.setFormdata(v);const L=await this.getUiSchema(),P=await this.getSchema();u.setSchema(P),u.setUiSchema(L)},getFormdata:function(){var L;(L=u.searchParams)==null||L.get("id");const v=getFormdataFromLocalStorage();return v||(saveFormdataInLocalStorage(h),h)},getUiSchema:function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),u.navigate("/PageMasterRecords")},onAddClickHandler:function(){var P;const v=(P=u.searchParams)==null?void 0:P.get("id");Array.isArray(u.formData.elements)||(u.formData.elements=[]);const L=saveFormdataInLocalStorage(u.ctx.core.data);u.navigate(`/Component?path=${`elements[${L==null?void 0:L.elements.length}]`}&id=${v}`)},saveHandler:async()=>await saveHandler(u,S,g),Edit_Components:Component(u,i,g,S).editComponents,Delete_Components:Component(u,i,g,S).deleteComponents,eventAddHandler:function(){var P;const v=(P=u.searchParams)==null?void 0:P.get("id");Array.isArray(u.formData.events)||(u.formData.events=[]),saveFormdataInLocalStorage(u.ctx.core.data);const L=`events[${u.formData.events.length}]`;u.navigate(`/ComponentEvents?path=${L}&id=${v}`)},editEvent:function(){var Q;const v=i.path.split(".")[1],L=(Q=u.searchParams)==null?void 0:Q.get("id");saveFormdataInLocalStorage(u.ctx.core.data);const P=`events[${v}]`;u.navigate(`/ComponentEvents?path=${P}&id=${L}`)},deleteEvent:function(){const v=i.path.split(".")[1];u.formData.events.splice(v,1);const L=saveFormdataInLocalStorage(u.ctx.core.data);u.setFormdata(L)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},eventType:{type:"string",oneOf:[{title:"Click Event",const:"onClick"},{title:"Load Event",const:"onLoad"},{title:"Change Event",const:"onChange"},{title:"Success",const:"Success"},{title:"onStart",const:"onStart"},{title:"File Upload Event",const:"onUpload"},{title:"Back Event",const:"onBack"},{title:"Next Event",const:"onNext"},{title:"File Download Event",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"}}}}},required:["eventType","Handler"]},EventUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core","Response Event"],defaultStyle:!0,id:"event"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Event Type",type:"text"}}},getSelectField("Handler","Handler")]},{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/heading",options:{widget:"Box"},config:{layout:8,main:{heading:"Response Event"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/AddButton",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"addEvent",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Ok",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"okHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/btnSubmit",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:2.5,lg:2.5},main:{name:"Save & Exit",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Method",type:"text"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/headers",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},{type:"Control",scope:"#/properties/body",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}},{type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}}]}}}]};var event=(r,u,i,h)=>({setPage:async function(){const g=await this.getFormData();r.setFormdata(g);const S=await this.getSchema();r.setSchema(S),this.refreshPage(g.Handler,r)},refreshPage:(g,S)=>{const v=_.cloneDeep(EventUiSchema),L=_.cloneDeep(EventSchema);g&&(g==="custom"?(v.elements[1].elements[0].elements[2]=getTextArea("eventCode","Write Custom Code",!1),L.required=["eventType","Handler","eventCode"]):g==="api"?(v.elements[1].elements[0].elements[2]=APISection,L.required=["eventType","Handler","method","path"]):g==="inBuiltFunction"?(v.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name"),v.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6}),L.required=["eventType","Handler","inBuiltFunctionType"]):g==="refresh"&&(v.elements[1].elements[0].elements[2]=refreshSectionUiSchema,L.properties.refreshElements.required=["value"],L.properties.refreshElements.items.required=["value"],L.required=["eventType","Handler","refreshElements"])),S.setSchema(L),S.setUiSchema(v)},getFormData:Component(r,u,i,h).getFormdata,getUiSchema:function(){return EventUiSchema},getSchema:()=>EventSchema,okHandler:()=>okHandler(r),saveHandler:async()=>await saveHandler(r,h,i,"PageMaster"),onChange:function(){var g,S,v;((g=r==null?void 0:r.formData)==null?void 0:g.Handler)!==((S=r==null?void 0:r.newData)==null?void 0:S.Handler)&&((v=r==null?void 0:r.newData)==null?void 0:v.Handler)!==void 0&&this.refreshPage(r.newData.Handler||r.formdata.Handler,r)},addEvent:function(){var v,L,P;const g=(v=r.searchParams)==null?void 0:v.get("path");Array.isArray(r.formData.events)||(r.formData.events=[]),saveFormdataInLocalStorage(r.ctx.core.data,g);const S=`${g}.events[${(P=(L=r.formData)==null?void 0:L.events)==null?void 0:P.length}]`;r.searchParams.set("path",S),r.setSearchParams(r.searchParams),this.setPage()},editEvent:function(){var L;const g=u.path.split(".")[1],S=(L=r.searchParams)==null?void 0:L.get("path");saveFormdataInLocalStorage(r.ctx.core.data,S);const v=`${S}.events[${g}]`;r.searchParams.set("path",v),r.setSearchParams(r.searchParams),this.setPage()},deleteEvent:Component(r,u,i,h).deleteEvent,backHandler:function(){r.navigate(-1)}});const downloadFile$1=r=>{const u=r.name.split("."),i=r.data,h=window.atob(i);let g;g=new File([h],u[u.length-1]);const S=URL.createObjectURL(g),v=document.createElement("a");v.href=u[u.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:S,v.download=`${r.name}`,document.body.appendChild(v),v.click(),URL.revokeObjectURL(S),document.body.removeChild(v)},doDownload=(r,u)=>{let i=`${u.defaults.baseURL}/${r.path}`;r!=null&&r.params&&Object.keys(r==null?void 0:r.params).map((S,v)=>{i=i+`${v===0?"?":"&"}${S}=${r==null?void 0:r.params[S]}`});const h=document.createElement("a");h.href=i,document.body.appendChild(h),h.click(),h.parentNode.removeChild(h)},executeEvents=async r=>{var h,g,S;let u=[],i=null;try{if(!await shouldEventExecute(r))return{response:void 0,events:void 0};i=await executeEventsHandler(r),u=(h=r.config)==null?void 0:h.events.filter(Q=>Q.eventType==="Success")}catch{const L=(S=(g=r.config)==null?void 0:g.events)==null?void 0:S.filter(Q=>Q.eventType==="Fail");u=(L==null?void 0:L.length)>0?L:[]}if((u==null?void 0:u.length)>0)for(const v of u)await executeEvents({...r,config:v,parentEventOutput:i});return i};async function executeEventsHandler(r){var u,i,h;if(r.config.Handler==="api")return await executeApiEventHandler(r);if(r.config.Handler==="inBuiltFunction")return await executeInBuiltFunctionHandler(r);if(r.config.Handler==="custom")return await executeCustomHandler(r);if(r.config.Handler==="refresh")return await executeRefreshHandler(r);if(r.config.Handler==="mergeFormdata")return await mergeFormdata(r.parentEventOutput,r.componentName,r.config,r.store,r.service);if(r.config.Handler==="onBackHandler")return(u=r.store.functionParameters)==null?void 0:u.handleBack();if(r.config.Handler==="onNextHandler")return(i=r.store.functionParameters)==null?void 0:i.handleNext();if(r.config.Handler==="onResetHandler")return(h=r.store.functionParameters)==null?void 0:h.handleReset()}async function executeRefreshHandler(r){const u=getRefreshElements(r.config,r.eventGroups);for(const i of u)for(const h of r.eventGroups.onLoad[i])await executeEvents({...r,config:h,componentName:i})}async function executeApiEventHandler(r){var v;const u={...(v=r.userValue)==null?void 0:v.payload},i={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},{body:h,headers:g}=await buildApiPayload(r.config,u,i,r.store,r.dynamicData,r.userValue,r.service);return await r.service[r.config.method](r.config.path,h,g&&{headers:g})}async 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)}async function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode),response=await makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName);return response}async function mergeFormdata(r,u,i,h,g){i.type==="Select"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?h.setSchema(S=>{var v;return{...S,properties:{...S.properties,[u]:{...(v=S.properties)==null?void 0:v[u],oneOf:r.data}}}}):i.type==="MultipleSelect"&&!(_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data))?h.setSchema(S=>{var v;return{...S,properties:{...S.properties,[u]:{...(v=S.properties)==null?void 0:v[u],type:"array",items:{oneOf:r==null?void 0:r.data}}}}}):i.type==="page"?_.isEmpty(r==null?void 0:r.data)&&(r==null?void 0:r.data)||h.setFormdata(S=>({...S,...r==null?void 0:r.data})):r&&(h.setFormdata(S=>({...S,[u]:i.lazyLoading?r.data.data:r.data})),await asyncOperation())}const buildBodyFormat=(r,u,i)=>{const h={...i==null?void 0:i.payload};return r.map(g=>{var S,v;if(typeof(g==null?void 0:g.value)!="string")h[g.key]=g.value;else if((S=g==null?void 0:g.value)!=null&&S.startsWith("$userValue")){const L=g.value.substring(11);h[g.key]=_.get(i,L)}else if((v=g==null?void 0:g.value)!=null&&v.startsWith("$")){const L=g.value.substring(1);h[g.key]=_.get(u,L)}else h[g.key]=g.value}),h},buildHeadersFormat=r=>{const u={"X-Requested-With":"XMLHttpRequest"};return r.map(i=>{u[i.key]=i.value}),u};async function shouldEventExecute(r){var i,h;const u=(h=(i=r.config)==null?void 0:i.events)==null?void 0:h.filter(g=>g.eventType==="onStart");return(u==null?void 0:u.length)>0?await executeEventsHandler({...r,config:u[0]}):!0}async function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var r,u;if(compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((u=(r=store==null?void 0:store.ctx)==null?void 0:r.core)==null?void 0:u.data)||store.formData,userValue)}),compConfig.apiBody){const makeFunc=eval(compConfig.apiBody),data=await makeFunc(store,dynamicData,userValue,body);body=data}return{body,headers}}function getRefreshElements(r,u){var h;let i=[];return((h=r==null?void 0:r.refreshElements)==null?void 0:h.length)>0?i=r.refreshElements.map(g=>g.value):u!=null&&u.onLoad&&(i=Object.keys(u==null?void 0:u.onLoad),i.push(i[0])),console.log(i),i}function asyncOperation(){return new Promise((r,u)=>{setTimeout(()=>{r("Operation completed successfully!"),u(new Error("Operation failed!"))},50)})}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},extractEvents=r=>{function u(i){i.events&&i.events.forEach(h=>{var S;i.type&&(compType=i.type),eventGroups[h.eventType]||(eventGroups[h.eventType]={}),eventGroups[h.eventType][i.name]||(eventGroups[h.eventType][i.name]=[]);const g=(S=h==null?void 0:h.events)==null?void 0:S.find(v=>v.eventType==="Success");!g&&h.eventType==="onLoad"&&h.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),!g&&(h.eventType==="onBack"||h.eventType==="onNext"||h.eventType==="onReset")&&h.events.push({Handler:`${h.eventType}Handler`,eventType:"Success",type:compType,lazyLoading:r.lazyLoading==="YES"}),eventGroups[h.eventType][i.name].push({...h,type:compType})})}return u(r),r!=null&&r.elements&&r.elements.forEach(extractEvents),eventGroups};var service=r=>{eventGroups={},eventGroups=extractEvents(r.config);let u={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:{downloadFile:downloadFile$1,download:doDownload},eventGroups};return{setPage:async function(){r.store.setFormdata({}),u={config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:this,eventGroups},r.store.setSchema(i=>({...r.schema,properties:{...i.properties,...r.schema.properties}})),r.uiSchema.elements.push(notifyUiSchema),r.store.setUiSchema(r.uiSchema),await executeRefreshHandler({config:{},componentName:"",store:r.store,dynamicData:r.dynamicData,userValue:r.userValue,service:r.service,serviceHolder:this,eventGroups})},onClick:async function(){await this.callHandler("onClick")},onFileDownload:async function(){await this.callHandler("onDownload")},onFileUpload:async function(){await this.callHandler("onUpload")},onPaginationChange:async function(i){var S;const h=[{key:"size",value:i.pagination.pageSize},{key:"pageIndex",value:i.pagination.pageIndex},{key:"sorting",value:i.sorting||[]},{key:"filters",value:i.columnFilters||[]},{key:"globalFilter",value:(S=i.globalFilter)!=null?S:""}],g=await this.updateConfigApiBody(i,h);return g==null?void 0:g.data},getSelectOptions:async function(i){if(i.serachValue!==""&&i.serachValue!==void 0){const h=[{key:"searchValue",value:i.serachValue},{key:"currentValue",value:i.currentValue}];return await this.updateConfigApiBody(i,h)}},onChange:async function(){if(eventGroups.onChange){const i=Object.keys(eventGroups.onChange);Promise.all(i.map(async h=>{var g,S;if(((g=r.store)==null?void 0:g.formData[h])!==r.store.newData[h]&&((S=r.store)==null?void 0:S.newData[h])!==void 0)for(const v of eventGroups.onChange[h])await executeEvents({...u,config:v,componentName:h})}))}},updateConfigApiBody:async function(i,h){var S;let g;for(const v of eventGroups==null?void 0:eventGroups.onLoad[i.path]){v.body?v.body=[...v.body,...h]:v.body=h;const L=(S=v==null?void 0:v.events)==null?void 0:S.filter(P=>P.Handler!=="mergeFormdata");v.events=L!=null?L:[],g=await executeEvents({...u,config:v,componentName:i.path})}return g},onBack:async function(i){var g,S;const h=((g=r.dynamicData)==null?void 0:g.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onBack",i),((S=eventGroups==null?void 0:eventGroups.onBack)==null?void 0:S[h])===void 0&&(i==null||i.handleBack())},onNext:async function(i){var g,S;const h=((g=r.dynamicData)==null?void 0:g.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onNext",i),((S=eventGroups==null?void 0:eventGroups.onNext)==null?void 0:S[h])===void 0&&(i==null||i.handleNext())},onReset:async function(i){var g,S;const h=((g=r.dynamicData)==null?void 0:g.tableButtonPath)||r.dynamicData.path.split(".")[0];await this.callHandler("onReset",i),((S=eventGroups==null?void 0:eventGroups.onReset)==null?void 0:S[h])===void 0&&(i==null||i.handleReset())},callHandler:async function(i,h){var S,v,L;const g=((S=r.dynamicData)==null?void 0:S.tableButtonPath)||r.dynamicData.path.split(".")[0];if(((v=eventGroups==null?void 0:eventGroups[i])==null?void 0:v[g])!==void 0)for(const P of(L=eventGroups==null?void 0:eventGroups[i])==null?void 0:L[g])u.store.functionParameters=h,await executeEvents({...u,config:P,componentName:g})},downloadFile:downloadFile$1,download:doDownload}},leaderBoard={type:"WrapperLayout",config:{main:{rowSpacing:3,header:!0,label:"LeaderBoard",divider:!0},style:{wrapperStyle:{height:{xs:850,sm:1e3}}},wrapperStyle:{position:"relative",width:"100%"}},elements:[{type:"Control",scope:"#/properties/leaderBoard/properties/firstImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"90px",md:"60px"},left:{xs:"calc(50% - 50px)",sm:"calc(50% - 50px)",md:"calc(50% - 100px)"},width:{xs:"100px",sm:"100px",md:"200px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"100px",sm:"100px",md:"200px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(25% - 45px)",sm:"calc(25% - 45px)",md:"calc(25% - 90px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(75% - 42.5px)",sm:"calc(75% - 42.5px)",md:"calc(75% - 85px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/firstName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"190px",md:"270px"},fontSize:{xs:"12px",md:"20px"},left:"calc(50% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%",zIndex:7},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(25% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(75% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/econd",config:{main:{heading:"2"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(25% - 12px)",md:"calc(25% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/first",config:{main:{heading:"1"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"175px",md:"230px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(50% - 12px)",md:"calc(50% - 16px)"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/third",config:{main:{heading:"3"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(75% - 12px)",md:"calc(75% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/table",options:{widget:"Table"},elements:[],config:{style:{tableHeadstyle:{fontWeight:900,background:"rgb(179, 198, 255)"},position:"absolute",top:{xs:"300px",sm:"300px",md:"390px",lg:"390px"},border:"2px solid rgb(179, 198, 255)",width:"95%",left:"2.5%"},main:{disableAction:!0,disableSelection:!0}}}]};const buildLeaderBoard=r=>{const u=_.cloneDeep(leaderBoard);if(r.elements){const i=r.elements.map((h,g)=>h.type?{...{widget:buildUiSchema(h),accessorKey:h.name,header:h.label||h.name}}:{accessorKey:h.name,header:h.label||h.name});u.elements[9].elements=i}return r.name&&(u.elements[0].scope=`#/properties/${r.name}/properties/firstImage`,u.elements[3].scope=`#/properties/${r.name}/properties/firstName`,u.elements[1].scope=`#/properties/${r.name}/properties/secondImage`,u.elements[4].scope=`#/properties/${r.name}/properties/secondName`,u.elements[2].scope=`#/properties/${r.name}/properties/thirdImage`,u.elements[5].scope=`#/properties/${r.name}/properties/thirdName`,u.elements[9].scope=`#/properties/${r.name}/properties/table`),r.firstImage&&(u.elements[0].config.main.url=r.firstImage),r.secondImage&&(u.elements[1].config.main.url=r.secondImage),r.secondImage&&(u.elements[2].config.main.url=r.thirdImage),r.layout&&(u.config.layout=r.layout),u};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:6,main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(r,u)=>{const i=_.cloneDeep(progressBar);return i.scope=u,r.heading&&(i.config.main.heading=r.heading),r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=r.bottomLabel_1),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},buildProgressBar=(r,u)=>{const i=_.cloneDeep(progressBar);return i.scope=u,r.layout&&(i.config.layout=r.layout),i.config.main.heading=r.heading,r.bottomLabel_3&&(i.config.main.bottomLabel_3=r.bottomLabel_3),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.bottomLabel_2&&(i.config.main.bottomLabel_2=r.bottomLabel_2),r.bottomLabel_1&&(i.config.main.bottomLabel_1=r.bottomLabel_1),i},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Bar Graph",bottomLabel:"Name of Employe",numTicks:6,leftLabel:"Value in lakhs",axisLeft:!0,axisBottom:!0,hideTicks:!1,hideLeftAxisLine:!1,hideBottomAxisLine:!1,bottomAxisWidth:"10px",legend:{labelColor:"green",legendTitle:"",direction:"row",align:"none"}},style:{containerStyle:{width:"100%",height:300},headerStyle:{},tooltipStyle:{},labelStyle:{margin:{left:80,bottom:20},leftLabelOffset:50,bottomLabelOffset:10},barStyle:{color:{firstBarColor:"#6c5efb",secondBarColor:"#3f51b5"}},legendStyle:{legend:{lineHeight:"0.9em",fontSize:"8px",fontFamily:"arial",padding:"10px 10px",width:"30%",display:"flex",justifyContent:"center",border:"1px solid rgba(255, 255, 255, 0.3)",borderRadius:" 8px",marginRight:"auto"},legendTitle:{fontSize:"10px",marginBottom:"10px",fontWeight:"100"}}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Incentive Branch category wise",type:"PieGraph",bottomLabel:"Name of Employe",leftLabel:"Value",axisLeft:!0,axisBottom:!0,legendAvailable:!0,legend:{labelColor:"green",legendTitle:"Branches",direction:"row",align:"right"}},style:{containerStyle:{height:"340"},headerStyle:{},tooltipStyle:{backgroundColor:"black",width:"80px"},labelStyle:{},legendStyle:{legend:{},legendTitle:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:12,main:{type:"LineGraph",header:"Quartely Incentive in Thousand",bottomLabel:"Years",leftLabel:"Incentive",gridHidden:!0,numHidden:!1,tooltipDataKey:["MAMA New Project","Second","Third"],axisLeft:!0,axisBottom:!0,hideLeftAxisLine:!1,hideBottomAxisLine:!1,legend:{labelColor:"green",legendTitle:"Our Assests",direction:"row",align:"right",colorRectWidth:20}},style:{containerStyle:{},headerStyle:{},labelStyle:{},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:" ",type:"HorizontalBarGraph",bottomLabel:" ",leftLabel:"Value",axisLeft:!1,axisBottom:!0,hideBottomTicks:!1,hideLeftTicks:!1,hideLeftAxisLine:!0,hideBottomAxisLine:!1,bottomAxisWidth:"10px"},style:{containerStyle:{width:"100%"},headerStyle:{},tooltipStyle:{},labelStyle:{},barStyle:{color:"#6c5efb"}}}},buildHorizontalBarGraph=(r,u)=>{const i=_.cloneDeep(HorizontalBarGraph);return i.scope=u,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=u,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.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=(r,u)=>{const i=_.cloneDeep(SpeedoMeter);if(i.scope=u,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.heading&&(i.config.main.header=r.heading),r.segments&&(i.config.main.segments=r.segments),r.style){const h=JSON.parse(r.style);h!=null&&h.style&&(i.config.style={...i.config.style,...h.style}),h!=null&&h.containerStyle&&(i.config.style.containerStyle={...i.config.style.containerStyle,...h.containerStyle})}return r.width&&(i.config.main.width=r.width),r.speedoCaption&&(i.config.main.currentValueText=r.speedoCaption),r.data&&(i.config.main.data=r.data),r.needleColor&&(i.config.style.needleColor=r.needleColor),r.segments&&(i.config.style.segments=r.segments),r.endColor&&(i.config.style.endColor=r.endColor),r.startColor&&(i.config.style.startColor=r.startColor),r.segmentColors&&(i.config.style.segmentColors=r.segmentColors),i},buildPieGraph=(r,u)=>{const i=_.cloneDeep(PieGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.height&&(i.config.style.containerStyle.height=r.height),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),i.scope=u,i.config.main.header=r.heading,r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.pieStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i},buildStackbarGraph=(r,u)=>{const i=_.cloneDeep(BarGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.legendHide&&(i.config.main.legendAvailable=!1),i.config.main.type=r.graphType,i.config.main.header=r.heading,r.barColor&&(i.config.barStyle.color=r.barColor),r.containerBackground&&(i.config.containerStyle.background=r.containerBackground),r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),i.scope=u,i};var RunnerBoyProgressBar={type:"Control",scope:"#/properties/path",options:{widget:"RunnerBoyProgressBar"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const RunnerBoyProgressbar=(r,u)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=u,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(r,u)=>{const i=_.cloneDeep(Tabsection);return r.sectionLabels&&(i.config.main.tabLabels=r.sectionLabels.map(h=>h.label)),i.config.main.id=r.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{label:"Default Label",divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(r,u)=>{const i=_.cloneDeep(WrapperSection);return i.config.main.label=r.label,i.config.main.divider=r.divider==="YES",r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var TextInputField={type:"Control",scope:"#/properties/text",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:""},style:{}}};const buildTextField=(r,u)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.InputFormatingAndMasking&&(i.config.main.formatStrArray=r.InputFormatingAndMasking.map(h=>h.formatElement)),r.placeholder&&(i.config.main.placeholder=r.placeholder),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=u,i};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(r,u)=>{const i=_.cloneDeep(SelectInputField);return i.config.main.label=r.label,r.value&&(i.config.main.options=r.value),r.freeSolo&&(i.config.main.freeSolo=r.freeSolo==="YES"),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.scope=u,i};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{name:"Compare",variant:"contained",color:"info",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(r,u)=>{const i=_.cloneDeep(Button);return r.buttonType&&(i.options.widget=r.buttonType==="IconButton"?"IconButton":"Button",r.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=r.iconName:i.config.main.icon=r.iconName),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.tooltipMessage&&(i.config.main.tooltipMessage=r.tooltipMessage),r.defaultStyle&&(r.buttonType==="IconButton"?i.config.main.styleDefault=r.defaultStyle==="true":i.config.main.enableDefaultStyle=r.defaultStyle!=="true"),i.scope=u,r.style&&(i.config.style=JSON.parse(r.style)),r.size&&(i.config.main.size=r.size),r.color&&(i.config.main.color=r.color),r.label&&(i.config.main.name=r.label),i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{allRowData:[],downloadAllData:!1,columns:{dataColumns:[],actionColumns:[]}}}},lazyLoadingTable={type:"Control",scope:"#/properties/LazyLoadingTable",options:{widget:"LazyLoadingTable"},elements:[],config:{main:{columns:{}}}};const buildTable=(r,u)=>{const i=_.cloneDeep(Table);return i.scope=u,r.style&&(i.config.style=JSON.parse(r.style)),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(h=>h.KeyName)),r.selectKey&&(i.config.main.selectKey=r.selectKey),i},buildLazyLoadingTable=(r,u)=>{const i=_.cloneDeep(lazyLoadingTable);return i.scope=u,r.style&&(i.config.style=JSON.parse(r.style)),r.SelectionAvailable&&(i.config.main.Selection=r.SelectionAvailable==="YES"),r.ColumnResizingAvailable&&(i.config.main.disableColumnResizing=r.ColumnResizingAvailable!=="YES"),r.DragAvailable&&(i.config.main.enableDrag=r.DragAvailable==="YES"),r.selectKey&&(i.config.main.selectKey=r.selectKey),r.downloadAllData&&(i.config.main.downloadAllData=r.downloadAllData==="YES"),r.Table_Download_Keys_Name&&(i.config.main.TableDownloadKeysName=r.Table_Download_Keys_Name.map(h=>h.KeyName)),i.config.main.label=r.label,i};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(r,u)=>{const i=_.cloneDeep(Box);return i.scope=u,i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.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:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"UploadFile"}},downloadFile={type:"Control",scope:"#/properties/downloadAttachment",config:{main:{onClick:"onClick",required:!1},style:{backgroundColor:"none"},layout:{lg:5.5,md:5.5,sm:11,xs:11}},options:{widget:"DownloadFile"}},buildUploadFile=(r,u)=>{const i=_.cloneDeep(uploadFile);return i.scope=u,i.config.main.label=r.label,r.layout&&(i.config.layout=r.layout),r.layout&&(uploadFile.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),i.config.main.errorMessage=r.errorMessage,i},buildDownloadFile=(r,u)=>{const i=_.cloneDeep(downloadFile);return i.scope=u,r.layout&&(i.config.layout=r.layout),r.style&&(i.config.style=r.style),r.required&&(i.config.main.required=!0),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.errorMessage&&(i.config.main.errorMessage=r.errorMessage),i};var Card={type:"WrapperLayout",config:{main:{rowSpacing:.5},style:{wrapperStyle:{position:"relative",color:"white",height:{xs:"120px",md:"160px"},width:"100%",textAlign:"left",background:"#3f51b5",borderRadius:"20px"}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:"$5000.00"},style:{position:"absolute",left:"10%",top:"15%",color:"#f5effc",height:"80px",display:"flex",fontSize:{xs:"24px",md:"32px"},alignItems:"center",background:"inherit",justifyContent:"flex-start"},layout:5},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{url:"$"},style:{color:"#f5effc",objectFit:"contain",position:"absolute",top:"10px",right:"10px",height:"80%",width:"35%",display:"flex",fontSize:"34px",alignItems:"center",background:"inherit",padding:"20px",justifyContent:"left"},layout:5},options:{widget:"Image"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{position:"absolute",top:"calc(60%)",alignItems:"center",color:"#8999e8",fontSize:"16px",left:"10%",background:"inherit",justifyContent:"center"},layout:12},options:{widget:"Box"}}]};const buildCard=(r,u)=>{const i=_.cloneDeep(Card);return r.style&&(i.config.style=JSON.parse(r.style)),i.elements[0].scope=`#/properties/${r.name}/properties/value`,i.elements[1].scope=`#/properties/${r.name}/properties/url`,i.elements[2].scope=`#/properties/${r.name}/properties/description`,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.label&&(i.elements[0].config.main.heading=r.label),r.url&&(i.elements[1].config.main.url=r.url),r.description&&(i.elements[2].config.main.heading=r.description),i};var DateInputField={type:"Control",scope:"#/properties/date",options:{widget:"DateInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"date"}}};const buildDate=(r,u)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=r.label,i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=u,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var RankCard={type:"Control",scope:"#/properties/path",options:{widget:"RankCard"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildRankCard=(r,u)=>{const i=_.cloneDeep(RankCard);return i.scope=u,r.image&&(i.config.main.url=r.image),r.title&&(i.config.main.title=r.title),r.description&&(i.config.main.description=r.description),r.rank&&(i.config.main.rank=`#${r.rank}`),r.layout&&(i.config.layout=createLayoutFormat(r.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=(r,u)=>{const i=_.cloneDeep(RollAndDice);return r.name&&(i.scope=u),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var Timer={type:"Control",scope:"#/properties/timer",options:{widget:"Timer"},config:{layout:{xs:12,sm:12,md:12,lg:12},main:{},style:{digitContainer:{borderRadius:"4px",textShawdow:"none",width:"22%"},container:{backgroundColor:"#FFFFFF",borderRadius:"18px"},containerLabelColor:{color:"red"}}}};const buildTimer=(r,u)=>{const i=_.cloneDeep(Timer);return i.scope=u,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i};var MultipleSelect={type:"Control",scope:"#/properties/path",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",multiple:!0,variant:"standard",options:[]}}};const buildMultiSelect=(r,u)=>{const i=_.cloneDeep(MultipleSelect);return i.scope=u,r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.value&&(i.config.main.options=r.value),r.lazyLoading&&(i.config.main.lazyLoading=r.lazyLoading==="YES"),i},buildBasicUiSchema=r=>({type:"HorizontalLayout",pageName:`${r.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=(r,u)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),r.placeholder&&(i.config.main.placeholder=r.placeholder),i.scope=u,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(r,u)=>{const i=_.cloneDeep(cardSlider);return r.name&&(i.scope=u),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(r,u)=>{const i=_.cloneDeep(Checkbox);return i.scope=u,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.style)),i},buildLineGraph=(r,u)=>{const i=_.cloneDeep(LineGraph);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.header=r.heading,r.height&&(i.config.style.containerStyle.height=r.height),r.bottomLabel&&(i.config.main.bottomLabel=r.bottomLabel),r.leftLabel&&(i.config.main.leftLabel=r.leftLabel),r.legendHide&&(i.config.main.legendAvailabe=r.legendHide!=="YES"),r.legendLabels&&(i.config.main.tooltipDataKey=flatObjectValueInArray(r.legendLabels)),r.pieArcColors&&(i.config.style.lineStyle.colorRange=flatObjectValueInArray(r.pieArcColors)),i.scope=u,i},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(r,u)=>{const i=_.cloneDeep(RadioUiSchema);return i.scope=u,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.sectionLabels&&(i.config.main.options=r.sectionLabels.map(h=>h.label||h.Options)),r.style&&(i.config.style=JSON.parse(r.style)),i};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},main:{},style:{}}};const buildEmptyBox=(r,u)=>{const i=_.cloneDeep(emptyBox);return r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(r,u)=>{const i=_.cloneDeep(ArrayUiSchema);return i.scope=u,i},TextField={type:"Control",scope:"#/properties/AAdhar",layout:12,options:{widget:"InputField"},config:{main:{label:"Adhaar Card",formatStrArray:["9","9","9","9"," ","9","9","9","9"," ","X9","X9","X9","X9"],placeholder:"XXXX XXXX XXXX"}}},buildAdhaarField=(r,u)=>{const i=_.cloneDeep(TextField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=u,i},PanField={type:"Control",scope:"#/properties/pan",layout:12,options:{widget:"InputField"},config:{main:{label:"Pan Card",placeholder:"AAAAA0000A",formatStrArray:["A","A","A","A","A","9","9","9","9","A"]}}},buildPanField=(r,u)=>{const i=_.cloneDeep(PanField);return i.config.main.label=r.label,r.style&&(i.config.style=JSON.parse(r.style)),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),i.config.main.errorMessage=`${r.name} is empty or invalid`,i.scope=u,i},FileInput={type:"Control",scope:"#/properties/docAggrementCopy",options:{widget:"FileInputField"},config:{layout:11.5,main:{required:!1,onUpload:"onFileUpload",onDownload:"onFileDownload",label:"Aggrement Copy"},style:{backgroundColor:"none"}}},buildFileInput=(r,u)=>{const i=_.cloneDeep(FileInput);return i.scope=u,i.config.main.label=r.label,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.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=(r,u)=>{const i=_.cloneDeep(Stepper);return i.scope=u,i.config.main.resetButton=r.resetButton==="YES",r.defaultButtonAvailable&&(i.config.main.defaultButtonAvailable=r.defaultButtonAvailable==="YES"),i.config.main.resetText=r.resetText||"ResetData",i.config.main.completeText=r.completeText||"Complete Text",i.config.main.orientation=r.orientation||"horizontal",r.sectionLabels&&(i.config.main.steps=r.sectionLabels.map((h,g)=>({label:h.label,id:g}))),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(i.config.style=JSON.parse(r.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=(r,u)=>{const i=_.cloneDeep(PopUP);return i.scope=u,i.config.main.title=r.label,i.config.main.fullScreen=r.fullScreen==="YES",i.config.main.fullWidth=r.fullWidth==="YES",i.config.main.maxWidth=r.maxWidth||!1,r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.style&&(PopUP.config.style=JSON.parse(r.style)),i},dataGrid={type:"Control",scope:"#/properties/dataGrid",layout:12,options:{widget:"DataGrid"},elements:[],config:{main:{elevation:0,useWrapper:!1},style:{}}},buildDataGrid=(r,u)=>{const i=_.cloneDeep(dataGrid);return i.scope=u,r.elevation&&(i.config.main.elevation=+r.elevation),i.config.main.divider=r.divider!=="NO",r.height&&(i.config.main.height=`${r.height}px`),r.justifyContent&&(i.config.main.justifyContent=r.justifyContent),r.label&&(i.config.main.label=r.label),r.layout&&(i.config.layout=createLayoutFormat(r.layout)),r.cardLayout&&(i.config.cardLayout=createLayoutFormat(r.cardLayout)),r.style&&(i.config.style=JSON.parse(r.style)),i};exports.schema={type:"object",properties:{},required:[]};function buildRule(r,u,i){var h,g,S,v,L,P,Q,nt,ge,Gt,Ge;i?(S=(g=(h=exports.schema.properties)==null?void 0:h[u])==null?void 0:g.items)!=null&&S.properties&&((Q=(P=(L=(v=exports.schema.properties)==null?void 0:v[u])==null?void 0:L.items)==null?void 0:P.properties)!=null&&Q[r.name]||(exports.schema.properties[u].items.properties[r.name]={},r.type==="Select"&&((nt=r.value)==null?void 0:nt.length)>0?exports.schema.properties[u].items.properties[r.name]={oneOf:r.value.map(U=>({const:U.value,title:U.label}))}:r.type==="MultipleSelect"&&((ge=r.value)==null?void 0:ge.length)>0&&(exports.schema.properties[u].items.properties[r.name]={items:{oneOf:r.value.map(U=>({const:U.value,title:U.label}))}}))):(r.type==="Select"||r.type==="MultipleSelect")&&((Gt=r.value)==null?void 0:Gt.length)>0?r.type==="Select"?exports.schema.properties[r.name]={oneOf:r.value.map(U=>({const:U.value,title:U.label}))}:r.type==="MultipleSelect"&&(exports.schema.properties[r.name]={items:{oneOf:r.value.map(U=>({const:U.value,title:U.label}))}}):(r.type==="Select"||r.type==="MultipleSelect")&&((Ge=r.value)==null?void 0:Ge.length)===0&&(r.type==="Select"?exports.schema.properties[r.name]={oneOf:{}}:r.type==="MultipleSelect"&&(exports.schema.properties[r.name]={items:{oneOf:{}}})),r.validation&&r.validation.forEach(U=>{var gt,ae,Ne,$t,he,$e,me,Ke,we,rt,It,gn;u?(Ne=(ae=(gt=exports.schema.properties)==null?void 0:gt[u])==null?void 0:ae.items)!=null&&Ne.properties&&((me=($e=(he=($t=exports.schema.properties)==null?void 0:$t[u])==null?void 0:he.items)==null?void 0:$e.properties)!=null&&me[r.name]||(exports.schema.properties[u].items.properties[r.name]={},r.type==="Select"||((Ke=r.value)==null?void 0:Ke.length)>0?exports.schema.properties[u].items.properties[r.name]={oneOf:r.value.map(ht=>({const:ht.value,title:ht.label}))}:(r.type==="MultipleSelect"||((we=r.value)==null?void 0:we.length)>0)&&(exports.schema.properties[u].items.properties[r.name]={items:{oneOf:r.value.map(ht=>({const:ht.value,title:ht.label}))}})),U.validationType==="required"?(gn=(It=(rt=exports.schema.properties)==null?void 0:rt[u])==null?void 0:It.items)==null||gn.required.push(r.name):(exports.schema.properties[u].items.properties[r.name].type="string",exports.schema.properties[u].items.properties[r.name][U.validationType]=isNaN(U.validationValue)?U.validationValue:Number(U.validationValue))):(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={}),U.validationType==="required"?exports.schema.required.push(r.name):(exports.schema.properties[r.name].type="string",exports.schema.properties[r.name][U.validationType]=isNaN(U.validationValue)?U.validationValue:Number(U.validationValue)))})}const buildSchema=(r,u,i)=>(buildRule(r,u,i),r!=null&&r.elements&&(r.type=="Table"||r.type=="Array"?(exports.schema.properties[r.name]||(exports.schema.properties[r.name]={type:"array",items:{type:"object",properties:{},required:[]}}),r.elements.map((h,g)=>{buildSchema(h,r.name,r.type==="Array")})):r.elements.map((h,g)=>{buildSchema(h)})),exports.schema),buildUiSchema=r=>{let u={};const i=`#/properties/${r.name}`;switch(r.type){case"DataGrid":u=buildDataGrid(r,i);break;case"Stepper":u=buildStepper(r,i);break;case"PopUp":u=buildPopUp(r,i);break;case"FileInput":u=buildFileInput(r,i);break;case"AadharcardText":u=buildAdhaarField(r,i);break;case"PanCardText":u=buildPanField(r,i);break;case"TabSection":u=buildTabSection(r);break;case"RunnerBoyProgressBar":u=RunnerBoyProgressbar(r,i);break;case"WrapperSection":u=buildWrapperSection(r);break;case"Text":u=buildTextField(r,i);break;case"TextArea":u=buildTextArea(r,i);break;case"Date":u=buildDate(r,i);break;case"Select":u=buildSelect(r,i);break;case"Radio":u=buildRadio(r,i);break;case"Button":u=buildButton(r,i);break;case"Table":u=buildTable(r,i);break;case"Array":u=buildArray(r,i);break;case"LazyLoadingTable":u=buildLazyLoadingTable(r,i);break;case"Box":u=buildLabel(r,i);break;case"CheckBox":u=buildCheckbox(r,i);break;case"UploadFile":u=buildUploadFile(r,i);break;case"DownloadFile":u=buildDownloadFile(r,i);break;case"EmptyBox":u=buildEmptyBox(r);break;case"card":u=buildCard(r);break;case"Graph":switch(r.graphType){case"BarGraph":case"StackBarGraph":u=buildStackbarGraph(r,i);break;case"LineGraph":u=buildLineGraph(r,i);break;case"PieGraph":u=buildPieGraph(r,i);break;case"HorizontalBarGraph":u=buildHorizontalBarGraph(r,i);break}break;case"ProgressBar":u=buildProgressBar(r,i);break;case"SpeedoMeter":u=buildSpeedoMeter(r,i);break;case"ProgressBarCard":u=buildProgressBarCard(r,i);break;case"RankCard":u=buildRankCard(r,i);break;case"Rank":u=buildRollAndDice(r,i);break;case"Slider":u=buildSlider(r,i);break;case"Timer":u=buildTimer(r,i);break;case"MultipleSelect":u=buildMultiSelect(r,i);break;case"LeaderBoard":u=buildLeaderBoard(r);break;default:exports.schema={type:"object",properties:{},required:[]},u=buildBasicUiSchema(r)}if(r!=null&&r.elements){if((r==null?void 0:r.type)==="LeaderBoard")return u;if(r.type=="Table"){const h={};r.sizeHolder&&r.sizeHolder.map((g,S)=>{h[g.keyName]=g.value}),u.elements=r.elements.map((g,S)=>g.type?{accessorKey:g.name,header:g.label||g.name,size:h[g.name]||180,widget:buildUiSchema(g)}:{accessorKey:g.name,header:g.label||g.name,size:h[g.name]||180})}else r.type=="Array"?u.options.detail.elements=r.elements.map((h,g)=>buildUiSchema(h)):u.elements=r.elements.map((h,g)=>buildUiSchema(h))}return u};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,exports.buildUiSchema=buildUiSchema,exports.clearFromLocalStorage=clearFromLocalStorage,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