impaktapps-ui-builder 0.0.26 → 0.0.271

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,9 +5,9 @@
5
5
  * Released under MIT license <https://lodash.com/license>
6
6
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
7
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
- */(function(o,c){(function(){var i,h="4.17.21",x=200,S="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",w="Expected a function",O="Invalid `variable` option passed into `_.template`",Z="__lodash_hash_undefined__",ne=500,V="__lodash_placeholder__",q=1,ge=2,_t=4,xt=1,cn=2,xe=1,ut=2,Ii=4,We=8,wt=16,He=32,Ct=64,Ne=128,Ut=256,ir=512,al=30,ll="...",sl=800,ul=16,Bi=1,cl=2,pl=3,ct=1/0,je=9007199254740991,fl=17976931348623157e292,pn=0/0,Oe=4294967295,dl=Oe-1,gl=Oe>>>1,hl=[["ary",Ne],["bind",xe],["bindKey",ut],["curry",We],["curryRight",wt],["flip",ir],["partial",He],["partialRight",Ct],["rearg",Ut]],St="[object Arguments]",fn="[object Array]",ml="[object AsyncFunction]",Gt="[object Boolean]",Nt="[object Date]",yl="[object DOMException]",dn="[object Error]",gn="[object Function]",Ai="[object GeneratorFunction]",Fe="[object Map]",zt="[object Number]",vl="[object Null]",ze="[object Object]",Ti="[object Promise]",bl="[object Proxy]",$t="[object RegExp]",Re="[object Set]",Kt="[object String]",hn="[object Symbol]",_l="[object Undefined]",qt="[object WeakMap]",xl="[object WeakSet]",Yt="[object ArrayBuffer]",Lt="[object DataView]",or="[object Float32Array]",ar="[object Float64Array]",lr="[object Int8Array]",sr="[object Int16Array]",ur="[object Int32Array]",cr="[object Uint8Array]",pr="[object Uint8ClampedArray]",fr="[object Uint16Array]",dr="[object Uint32Array]",wl=/\b__p \+= '';/g,Cl=/\b(__p \+=) '' \+/g,Sl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Ll=RegExp(Fi.source),Il=RegExp(Ri.source),Bl=/<%-([\s\S]+?)%>/g,Al=/<%([\s\S]+?)%>/g,Ei=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fl=/^\w*$/,Rl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gr=/[\\^$.*+?()[\]{}|]/g,El=RegExp(gr.source),hr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ml=/\{\n\/\* \[wrapped with (.+)\] \*/,Wl=/,? & /,Hl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,kl=/\\(\\)?/g,Ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Di=/\w*$/,Gl=/^[-+]0x[0-9a-f]+$/i,Nl=/^0b[01]+$/i,zl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,ql=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mn=/($^)/,Yl=/['\n\r\u2028\u2029\\]/g,yn="\\ud800-\\udfff",Zl="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",Pi=Zl+Jl+Xl,Mi="\\u2700-\\u27bf",Wi="a-z\\xdf-\\xf6\\xf8-\\xff",Ql="\\xac\\xb1\\xd7\\xf7",Vl="\\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",Hi="A-Z\\xc0-\\xd6\\xd8-\\xde",Oi="\\ufe0e\\ufe0f",ki=Ql+Vl+jl+es,mr="['\u2019]",ts="["+yn+"]",Ui="["+ki+"]",vn="["+Pi+"]",Gi="\\d+",ns="["+Mi+"]",Ni="["+Wi+"]",zi="[^"+yn+ki+Gi+Mi+Wi+Hi+"]",yr="\\ud83c[\\udffb-\\udfff]",rs="(?:"+vn+"|"+yr+")",$i="[^"+yn+"]",vr="(?:\\ud83c[\\udde6-\\uddff]){2}",br="[\\ud800-\\udbff][\\udc00-\\udfff]",It="["+Hi+"]",Ki="\\u200d",qi="(?:"+Ni+"|"+zi+")",is="(?:"+It+"|"+zi+")",Yi="(?:"+mr+"(?:d|ll|m|re|s|t|ve))?",Zi="(?:"+mr+"(?:D|LL|M|RE|S|T|VE))?",Ji=rs+"?",Xi="["+Oi+"]?",os="(?:"+Ki+"(?:"+[$i,vr,br].join("|")+")"+Xi+Ji+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Xi+Ji+os,ss="(?:"+[ns,vr,br].join("|")+")"+Qi,us="(?:"+[$i+vn+"?",vn,vr,br,ts].join("|")+")",cs=RegExp(mr,"g"),ps=RegExp(vn,"g"),_r=RegExp(yr+"(?="+yr+")|"+us+Qi,"g"),fs=RegExp([It+"?"+Ni+"+"+Yi+"(?="+[Ui,It,"$"].join("|")+")",is+"+"+Zi+"(?="+[Ui,It+qi,"$"].join("|")+")",It+"?"+qi+"+"+Yi,It+"+"+Zi,ls,as,Gi,ss].join("|"),"g"),ds=RegExp("["+Ki+yn+Pi+Oi+"]"),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,$={};$[or]=$[ar]=$[lr]=$[sr]=$[ur]=$[cr]=$[pr]=$[fr]=$[dr]=!0,$[St]=$[fn]=$[Yt]=$[Gt]=$[Lt]=$[Nt]=$[dn]=$[gn]=$[Fe]=$[zt]=$[ze]=$[$t]=$[Re]=$[Kt]=$[qt]=!1;var z={};z[St]=z[fn]=z[Yt]=z[Lt]=z[Gt]=z[Nt]=z[or]=z[ar]=z[lr]=z[sr]=z[ur]=z[Fe]=z[zt]=z[ze]=z[$t]=z[Re]=z[Kt]=z[hn]=z[cr]=z[pr]=z[fr]=z[dr]=!0,z[dn]=z[gn]=z[qt]=!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;":"'"},_s={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xs=parseFloat,ws=parseInt,Vi=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Cs=typeof self=="object"&&self&&self.Object===Object&&self,re=Vi||Cs||Function("return this")(),xr=c&&!c.nodeType&&c,pt=xr&&!0&&o&&!o.nodeType&&o,ji=pt&&pt.exports===xr,wr=ji&&Vi.process,we=function(){try{var f=pt&&pt.require&&pt.require("util").types;return f||wr&&wr.binding&&wr.binding("util")}catch{}}(),eo=we&&we.isArrayBuffer,to=we&&we.isDate,no=we&&we.isMap,ro=we&&we.isRegExp,io=we&&we.isSet,oo=we&&we.isTypedArray;function he(f,m,g){switch(g.length){case 0:return f.call(m);case 1:return f.call(m,g[0]);case 2:return f.call(m,g[0],g[1]);case 3:return f.call(m,g[0],g[1],g[2])}return f.apply(m,g)}function Ss(f,m,g,L){for(var F=-1,k=f==null?0:f.length;++F<k;){var j=f[F];m(L,j,g(j),f)}return L}function Ce(f,m){for(var g=-1,L=f==null?0:f.length;++g<L&&m(f[g],g,f)!==!1;);return f}function Ls(f,m){for(var g=f==null?0:f.length;g--&&m(f[g],g,f)!==!1;);return f}function ao(f,m){for(var g=-1,L=f==null?0:f.length;++g<L;)if(!m(f[g],g,f))return!1;return!0}function et(f,m){for(var g=-1,L=f==null?0:f.length,F=0,k=[];++g<L;){var j=f[g];m(j,g,f)&&(k[F++]=j)}return k}function bn(f,m){var g=f==null?0:f.length;return!!g&&Bt(f,m,0)>-1}function Cr(f,m,g){for(var L=-1,F=f==null?0:f.length;++L<F;)if(g(m,f[L]))return!0;return!1}function K(f,m){for(var g=-1,L=f==null?0:f.length,F=Array(L);++g<L;)F[g]=m(f[g],g,f);return F}function tt(f,m){for(var g=-1,L=m.length,F=f.length;++g<L;)f[F+g]=m[g];return f}function Sr(f,m,g,L){var F=-1,k=f==null?0:f.length;for(L&&k&&(g=f[++F]);++F<k;)g=m(g,f[F],F,f);return g}function Is(f,m,g,L){var F=f==null?0:f.length;for(L&&F&&(g=f[--F]);F--;)g=m(g,f[F],F,f);return g}function Lr(f,m){for(var g=-1,L=f==null?0:f.length;++g<L;)if(m(f[g],g,f))return!0;return!1}var Bs=Ir("length");function As(f){return f.split("")}function Ts(f){return f.match(Hl)||[]}function lo(f,m,g){var L;return g(f,function(F,k,j){if(m(F,k,j))return L=k,!1}),L}function _n(f,m,g,L){for(var F=f.length,k=g+(L?1:-1);L?k--:++k<F;)if(m(f[k],k,f))return k;return-1}function Bt(f,m,g){return m===m?Gs(f,m,g):_n(f,so,g)}function Fs(f,m,g,L){for(var F=g-1,k=f.length;++F<k;)if(L(f[F],m))return F;return-1}function so(f){return f!==f}function uo(f,m){var g=f==null?0:f.length;return g?Ar(f,m)/g:pn}function Ir(f){return function(m){return m==null?i:m[f]}}function Br(f){return function(m){return f==null?i:f[m]}}function co(f,m,g,L,F){return F(f,function(k,j,N){g=L?(L=!1,k):m(g,k,j,N)}),g}function Rs(f,m){var g=f.length;for(f.sort(m);g--;)f[g]=f[g].value;return f}function Ar(f,m){for(var g,L=-1,F=f.length;++L<F;){var k=m(f[L]);k!==i&&(g=g===i?k:g+k)}return g}function Tr(f,m){for(var g=-1,L=Array(f);++g<f;)L[g]=m(g);return L}function Es(f,m){return K(m,function(g){return[g,f[g]]})}function po(f){return f&&f.slice(0,mo(f)+1).replace(hr,"")}function me(f){return function(m){return f(m)}}function Fr(f,m){return K(m,function(g){return f[g]})}function Zt(f,m){return f.has(m)}function fo(f,m){for(var g=-1,L=f.length;++g<L&&Bt(m,f[g],0)>-1;);return g}function go(f,m){for(var g=f.length;g--&&Bt(m,f[g],0)>-1;);return g}function Ds(f,m){for(var g=f.length,L=0;g--;)f[g]===m&&++L;return L}var Ps=Br(ys),Ms=Br(vs);function Ws(f){return"\\"+_s[f]}function Hs(f,m){return f==null?i:f[m]}function At(f){return ds.test(f)}function Os(f){return gs.test(f)}function ks(f){for(var m,g=[];!(m=f.next()).done;)g.push(m.value);return g}function Rr(f){var m=-1,g=Array(f.size);return f.forEach(function(L,F){g[++m]=[F,L]}),g}function ho(f,m){return function(g){return f(m(g))}}function nt(f,m){for(var g=-1,L=f.length,F=0,k=[];++g<L;){var j=f[g];(j===m||j===V)&&(f[g]=V,k[F++]=g)}return k}function xn(f){var m=-1,g=Array(f.size);return f.forEach(function(L){g[++m]=L}),g}function Us(f){var m=-1,g=Array(f.size);return f.forEach(function(L){g[++m]=[L,L]}),g}function Gs(f,m,g){for(var L=g-1,F=f.length;++L<F;)if(f[L]===m)return L;return-1}function Ns(f,m,g){for(var L=g+1;L--;)if(f[L]===m)return L;return L}function Tt(f){return At(f)?$s(f):Bs(f)}function Ee(f){return At(f)?Ks(f):As(f)}function mo(f){for(var m=f.length;m--&&Dl.test(f.charAt(m)););return m}var zs=Br(bs);function $s(f){for(var m=_r.lastIndex=0;_r.test(f);)++m;return m}function Ks(f){return f.match(_r)||[]}function qs(f){return f.match(fs)||[]}var Ys=function f(m){m=m==null?re:Ft.defaults(re.Object(),m,Ft.pick(re,hs));var g=m.Array,L=m.Date,F=m.Error,k=m.Function,j=m.Math,N=m.Object,Er=m.RegExp,Zs=m.String,Se=m.TypeError,wn=g.prototype,Js=k.prototype,Rt=N.prototype,Cn=m["__core-js_shared__"],Sn=Js.toString,G=Rt.hasOwnProperty,Xs=0,yo=function(){var e=/[^.]+$/.exec(Cn&&Cn.keys&&Cn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ln=Rt.toString,Qs=Sn.call(N),Vs=re._,js=Er("^"+Sn.call(G).replace(gr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),In=ji?m.Buffer:i,rt=m.Symbol,Bn=m.Uint8Array,vo=In?In.allocUnsafe:i,An=ho(N.getPrototypeOf,N),bo=N.create,_o=Rt.propertyIsEnumerable,Tn=wn.splice,xo=rt?rt.isConcatSpreadable:i,Jt=rt?rt.iterator:i,ft=rt?rt.toStringTag:i,Fn=function(){try{var e=yt(N,"defineProperty");return e({},"",{}),e}catch{}}(),eu=m.clearTimeout!==re.clearTimeout&&m.clearTimeout,tu=L&&L.now!==re.Date.now&&L.now,nu=m.setTimeout!==re.setTimeout&&m.setTimeout,Rn=j.ceil,En=j.floor,Dr=N.getOwnPropertySymbols,ru=In?In.isBuffer:i,wo=m.isFinite,iu=wn.join,ou=ho(N.keys,N),ee=j.max,oe=j.min,au=L.now,lu=m.parseInt,Co=j.random,su=wn.reverse,Pr=yt(m,"DataView"),Xt=yt(m,"Map"),Mr=yt(m,"Promise"),Et=yt(m,"Set"),Qt=yt(m,"WeakMap"),Vt=yt(N,"create"),Dn=Qt&&new Qt,Dt={},uu=vt(Pr),cu=vt(Xt),pu=vt(Mr),fu=vt(Et),du=vt(Qt),Pn=rt?rt.prototype:i,jt=Pn?Pn.valueOf:i,So=Pn?Pn.toString:i;function l(e){if(J(e)&&!R(e)&&!(e instanceof W)){if(e instanceof Le)return e;if(G.call(e,"__wrapped__"))return La(e)}return new Le(e)}var Pt=function(){function e(){}return function(t){if(!Y(t))return{};if(bo)return bo(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Mn(){}function Le(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Bl,evaluate:Al,interpolate:Ei,variable:"",imports:{_:l}},l.prototype=Mn.prototype,l.prototype.constructor=l,Le.prototype=Pt(Mn.prototype),Le.prototype.constructor=Le;function W(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Oe,this.__views__=[]}function gu(){var e=new W(this.__wrapped__);return e.__actions__=ce(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ce(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ce(this.__views__),e}function hu(){if(this.__filtered__){var e=new W(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),r=t<0,a=n?e.length:0,s=Ac(0,a,this.__views__),u=s.start,p=s.end,d=p-u,y=r?p:u-1,v=this.__iteratees__,b=v.length,C=0,I=oe(d,this.__takeCount__);if(!n||!r&&a==d&&I==d)return Zo(e,this.__actions__);var A=[];e:for(;d--&&C<I;){y+=t;for(var D=-1,T=e[y];++D<b;){var M=v[D],H=M.iteratee,be=M.type,ue=H(T);if(be==cl)T=ue;else if(!ue){if(be==Bi)continue e;break e}}A[C++]=T}return A}W.prototype=Pt(Mn.prototype),W.prototype.constructor=W;function dt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function yu(){this.__data__=Vt?Vt(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(Vt){var n=t[e];return n===Z?i:n}return G.call(t,e)?t[e]:i}function _u(e){var t=this.__data__;return Vt?t[e]!==i:G.call(t,e)}function xu(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Vt&&t===i?Z:t,this}dt.prototype.clear=yu,dt.prototype.delete=vu,dt.prototype.get=bu,dt.prototype.has=_u,dt.prototype.set=xu;function $e(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function wu(){this.__data__=[],this.size=0}function Cu(e){var t=this.__data__,n=Wn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Tn.call(t,n,1),--this.size,!0}function Su(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__,r=Wn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}$e.prototype.clear=wu,$e.prototype.delete=Cu,$e.prototype.get=Su,$e.prototype.has=Lu,$e.prototype.set=Iu;function Ke(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Bu(){this.size=0,this.__data__={hash:new dt,map:new(Xt||$e),string:new dt}}function Au(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 Fu(e){return Zn(this,e).has(e)}function Ru(e,t){var n=Zn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Ke.prototype.clear=Bu,Ke.prototype.delete=Au,Ke.prototype.get=Tu,Ke.prototype.has=Fu,Ke.prototype.set=Ru;function gt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ke;++t<n;)this.add(e[t])}function Eu(e){return this.__data__.set(e,Z),this}function Du(e){return this.__data__.has(e)}gt.prototype.add=gt.prototype.push=Eu,gt.prototype.has=Du;function De(e){var t=this.__data__=new $e(e);this.size=t.size}function Pu(){this.__data__=new $e,this.size=0}function Mu(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Wu(e){return this.__data__.get(e)}function Hu(e){return this.__data__.has(e)}function Ou(e,t){var n=this.__data__;if(n instanceof $e){var r=n.__data__;if(!Xt||r.length<x-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ke(r)}return n.set(e,t),this.size=n.size,this}De.prototype.clear=Pu,De.prototype.delete=Mu,De.prototype.get=Wu,De.prototype.has=Hu,De.prototype.set=Ou;function Lo(e,t){var n=R(e),r=!n&&bt(e),a=!n&&!r&&st(e),s=!n&&!r&&!a&&Ot(e),u=n||r||a||s,p=u?Tr(e.length,Zs):[],d=p.length;for(var y in e)(t||G.call(e,y))&&!(u&&(y=="length"||a&&(y=="offset"||y=="parent")||s&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Je(y,d)))&&p.push(y);return p}function Io(e){var t=e.length;return t?e[qr(0,t-1)]:i}function ku(e,t){return Jn(ce(e),ht(t,0,e.length))}function Uu(e){return Jn(ce(e))}function Wr(e,t,n){(n!==i&&!Pe(e[t],n)||n===i&&!(t in e))&&qe(e,t,n)}function en(e,t,n){var r=e[t];(!(G.call(e,t)&&Pe(r,n))||n===i&&!(t in e))&&qe(e,t,n)}function Wn(e,t){for(var n=e.length;n--;)if(Pe(e[n][0],t))return n;return-1}function Gu(e,t,n,r){return it(e,function(a,s,u){t(r,a,n(a),u)}),r}function Bo(e,t){return e&&Ue(t,te(t),e)}function Nu(e,t){return e&&Ue(t,fe(t),e)}function qe(e,t,n){t=="__proto__"&&Fn?Fn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Hr(e,t){for(var n=-1,r=t.length,a=g(r),s=e==null;++n<r;)a[n]=s?i:yi(e,t[n]);return a}function ht(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Ie(e,t,n,r,a,s){var u,p=t&q,d=t&ge,y=t&_t;if(n&&(u=a?n(e,r,a,s):n(e)),u!==i)return u;if(!Y(e))return e;var v=R(e);if(v){if(u=Fc(e),!p)return ce(e,u)}else{var b=ae(e),C=b==gn||b==Ai;if(st(e))return Qo(e,p);if(b==ze||b==St||C&&!a){if(u=d||C?{}:ma(e),!p)return d?bc(e,Nu(u,e)):vc(e,Bo(u,e))}else{if(!z[b])return a?e:{};u=Rc(e,b,p)}}s||(s=new De);var I=s.get(e);if(I)return I;s.set(e,u),Ka(e)?e.forEach(function(T){u.add(Ie(T,t,n,T,e,s))}):za(e)&&e.forEach(function(T,M){u.set(M,Ie(T,t,n,M,e,s))});var A=y?d?ri:ni:d?fe:te,D=v?i:A(e);return Ce(D||e,function(T,M){D&&(M=T,T=e[M]),en(u,M,Ie(T,t,n,M,e,s))}),u}function zu(e){var t=te(e);return function(n){return Ao(n,e,t)}}function Ao(e,t,n){var r=n.length;if(e==null)return!r;for(e=N(e);r--;){var a=n[r],s=t[a],u=e[a];if(u===i&&!(a in e)||!s(u))return!1}return!0}function To(e,t,n){if(typeof e!="function")throw new Se(w);return sn(function(){e.apply(i,n)},t)}function tn(e,t,n,r){var a=-1,s=bn,u=!0,p=e.length,d=[],y=t.length;if(!p)return d;n&&(t=K(t,me(n))),r?(s=Cr,u=!1):t.length>=x&&(s=Zt,u=!1,t=new gt(t));e:for(;++a<p;){var v=e[a],b=n==null?v:n(v);if(v=r||v!==0?v:0,u&&b===b){for(var C=y;C--;)if(t[C]===b)continue e;d.push(v)}else s(t,b,r)||d.push(v)}return d}var it=na(ke),Fo=na(kr,!0);function $u(e,t){var n=!0;return it(e,function(r,a,s){return n=!!t(r,a,s),n}),n}function Hn(e,t,n){for(var r=-1,a=e.length;++r<a;){var s=e[r],u=t(s);if(u!=null&&(p===i?u===u&&!ve(u):n(u,p)))var p=u,d=s}return d}function Ku(e,t,n,r){var a=e.length;for(n=E(n),n<0&&(n=-n>a?0:a+n),r=r===i||r>a?a:E(r),r<0&&(r+=a),r=n>r?0:Ya(r);n<r;)e[n++]=t;return e}function Ro(e,t){var n=[];return it(e,function(r,a,s){t(r,a,s)&&n.push(r)}),n}function ie(e,t,n,r,a){var s=-1,u=e.length;for(n||(n=Dc),a||(a=[]);++s<u;){var p=e[s];t>0&&n(p)?t>1?ie(p,t-1,n,r,a):tt(a,p):r||(a[a.length]=p)}return a}var Or=ra(),Eo=ra(!0);function ke(e,t){return e&&Or(e,t,te)}function kr(e,t){return e&&Eo(e,t,te)}function On(e,t){return et(t,function(n){return Xe(e[n])})}function mt(e,t){t=at(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ge(t[n++])];return n&&n==r?e:i}function Do(e,t,n){var r=t(e);return R(e)?r:tt(r,n(e))}function le(e){return e==null?e===i?_l:vl:ft&&ft in N(e)?Bc(e):Uc(e)}function Ur(e,t){return e>t}function qu(e,t){return e!=null&&G.call(e,t)}function Yu(e,t){return e!=null&&t in N(e)}function Zu(e,t,n){return e>=oe(t,n)&&e<ee(t,n)}function Gr(e,t,n){for(var r=n?Cr:bn,a=e[0].length,s=e.length,u=s,p=g(s),d=1/0,y=[];u--;){var v=e[u];u&&t&&(v=K(v,me(t))),d=oe(v.length,d),p[u]=!n&&(t||a>=120&&v.length>=120)?new gt(u&&v):i}v=e[0];var b=-1,C=p[0];e:for(;++b<a&&y.length<d;){var I=v[b],A=t?t(I):I;if(I=n||I!==0?I:0,!(C?Zt(C,A):r(y,A,n))){for(u=s;--u;){var D=p[u];if(!(D?Zt(D,A):r(e[u],A,n)))continue e}C&&C.push(A),y.push(I)}}return y}function Ju(e,t,n,r){return ke(e,function(a,s,u){t(r,n(a),s,u)}),r}function nn(e,t,n){t=at(t,e),e=_a(e,t);var r=e==null?e:e[Ge(Ae(t))];return r==null?i:he(r,e,n)}function Po(e){return J(e)&&le(e)==St}function Xu(e){return J(e)&&le(e)==Yt}function Qu(e){return J(e)&&le(e)==Nt}function rn(e,t,n,r,a){return e===t?!0:e==null||t==null||!J(e)&&!J(t)?e!==e&&t!==t:Vu(e,t,n,r,rn,a)}function Vu(e,t,n,r,a,s){var u=R(e),p=R(t),d=u?fn:ae(e),y=p?fn:ae(t);d=d==St?ze:d,y=y==St?ze:y;var v=d==ze,b=y==ze,C=d==y;if(C&&st(e)){if(!st(t))return!1;u=!0,v=!1}if(C&&!v)return s||(s=new De),u||Ot(e)?da(e,t,n,r,a,s):Lc(e,t,d,n,r,a,s);if(!(n&xt)){var I=v&&G.call(e,"__wrapped__"),A=b&&G.call(t,"__wrapped__");if(I||A){var D=I?e.value():e,T=A?t.value():t;return s||(s=new De),a(D,T,n,r,s)}}return C?(s||(s=new De),Ic(e,t,n,r,a,s)):!1}function ju(e){return J(e)&&ae(e)==Fe}function Nr(e,t,n,r){var a=n.length,s=a,u=!r;if(e==null)return!s;for(e=N(e);a--;){var p=n[a];if(u&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++a<s;){p=n[a];var d=p[0],y=e[d],v=p[1];if(u&&p[2]){if(y===i&&!(d in e))return!1}else{var b=new De;if(r)var C=r(y,v,d,e,t,b);if(!(C===i?rn(v,y,xt|cn,r,b):C))return!1}}return!0}function Mo(e){if(!Y(e)||Mc(e))return!1;var t=Xe(e)?js:zl;return t.test(vt(e))}function ec(e){return J(e)&&le(e)==$t}function tc(e){return J(e)&&ae(e)==Re}function nc(e){return J(e)&&tr(e.length)&&!!$[le(e)]}function Wo(e){return typeof e=="function"?e:e==null?de:typeof e=="object"?R(e)?ko(e[0],e[1]):Oo(e):il(e)}function zr(e){if(!ln(e))return ou(e);var t=[];for(var n in N(e))G.call(e,n)&&n!="constructor"&&t.push(n);return t}function rc(e){if(!Y(e))return kc(e);var t=ln(e),n=[];for(var r in e)r=="constructor"&&(t||!G.call(e,r))||n.push(r);return n}function $r(e,t){return e<t}function Ho(e,t){var n=-1,r=pe(e)?g(e.length):[];return it(e,function(a,s,u){r[++n]=t(a,s,u)}),r}function Oo(e){var t=oi(e);return t.length==1&&t[0][2]?va(t[0][0],t[0][1]):function(n){return n===e||Nr(n,e,t)}}function ko(e,t){return li(e)&&ya(t)?va(Ge(e),t):function(n){var r=yi(n,e);return r===i&&r===t?vi(n,e):rn(t,r,xt|cn)}}function kn(e,t,n,r,a){e!==t&&Or(t,function(s,u){if(a||(a=new De),Y(s))ic(e,t,u,n,kn,r,a);else{var p=r?r(ui(e,u),s,u+"",e,t,a):i;p===i&&(p=s),Wr(e,u,p)}},fe)}function ic(e,t,n,r,a,s,u){var p=ui(e,n),d=ui(t,n),y=u.get(d);if(y){Wr(e,n,y);return}var v=s?s(p,d,n+"",e,t,u):i,b=v===i;if(b){var C=R(d),I=!C&&st(d),A=!C&&!I&&Ot(d);v=d,C||I||A?R(p)?v=p:X(p)?v=ce(p):I?(b=!1,v=Qo(d,!0)):A?(b=!1,v=Vo(d,!0)):v=[]:un(d)||bt(d)?(v=p,bt(p)?v=Za(p):(!Y(p)||Xe(p))&&(v=ma(d))):b=!1}b&&(u.set(d,v),a(v,d,r,s,u),u.delete(d)),Wr(e,n,v)}function Uo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Je(t,n)?e[t]:i}function Go(e,t,n){t.length?t=K(t,function(s){return R(s)?function(u){return mt(u,s.length===1?s[0]:s)}:s}):t=[de];var r=-1;t=K(t,me(B()));var a=Ho(e,function(s,u,p){var d=K(t,function(y){return y(s)});return{criteria:d,index:++r,value:s}});return Rs(a,function(s,u){return yc(s,u,n)})}function oc(e,t){return No(e,t,function(n,r){return vi(e,r)})}function No(e,t,n){for(var r=-1,a=t.length,s={};++r<a;){var u=t[r],p=mt(e,u);n(p,u)&&on(s,at(u,e),p)}return s}function ac(e){return function(t){return mt(t,e)}}function Kr(e,t,n,r){var a=r?Fs:Bt,s=-1,u=t.length,p=e;for(e===t&&(t=ce(t)),n&&(p=K(e,me(n)));++s<u;)for(var d=0,y=t[s],v=n?n(y):y;(d=a(p,v,d,r))>-1;)p!==e&&Tn.call(p,d,1),Tn.call(e,d,1);return e}function zo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==s){var s=a;Je(a)?Tn.call(e,a,1):Jr(e,a)}}return e}function qr(e,t){return e+En(Co()*(t-e+1))}function lc(e,t,n,r){for(var a=-1,s=ee(Rn((t-e)/(n||1)),0),u=g(s);s--;)u[r?s:++a]=e,e+=n;return u}function Yr(e,t){var n="";if(!e||t<1||t>je)return n;do t%2&&(n+=e),t=En(t/2),t&&(e+=e);while(t);return n}function P(e,t){return ci(ba(e,t,de),e+"")}function sc(e){return Io(kt(e))}function uc(e,t){var n=kt(e);return Jn(n,ht(t,0,n.length))}function on(e,t,n,r){if(!Y(e))return e;t=at(t,e);for(var a=-1,s=t.length,u=s-1,p=e;p!=null&&++a<s;){var d=Ge(t[a]),y=n;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(a!=u){var v=p[d];y=r?r(v,d,p):i,y===i&&(y=Y(v)?v:Je(t[a+1])?[]:{})}en(p,d,y),p=p[d]}return e}var $o=Dn?function(e,t){return Dn.set(e,t),e}:de,cc=Fn?function(e,t){return Fn(e,"toString",{configurable:!0,enumerable:!1,value:_i(t),writable:!0})}:de;function pc(e){return Jn(kt(e))}function Be(e,t,n){var r=-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=g(a);++r<a;)s[r]=e[r+t];return s}function fc(e,t){var n;return it(e,function(r,a,s){return n=t(r,a,s),!n}),!!n}function Un(e,t,n){var r=0,a=e==null?r:e.length;if(typeof t=="number"&&t===t&&a<=gl){for(;r<a;){var s=r+a>>>1,u=e[s];u!==null&&!ve(u)&&(n?u<=t:u<t)?r=s+1:a=s}return a}return Zr(e,t,de,n)}function Zr(e,t,n,r){var a=0,s=e==null?0:e.length;if(s===0)return 0;t=n(t);for(var u=t!==t,p=t===null,d=ve(t),y=t===i;a<s;){var v=En((a+s)/2),b=n(e[v]),C=b!==i,I=b===null,A=b===b,D=ve(b);if(u)var T=r||A;else y?T=A&&(r||C):p?T=A&&C&&(r||!I):d?T=A&&C&&!I&&(r||!D):I||D?T=!1:T=r?b<=t:b<t;T?a=v+1:s=v}return oe(s,dl)}function Ko(e,t){for(var n=-1,r=e.length,a=0,s=[];++n<r;){var u=e[n],p=t?t(u):u;if(!n||!Pe(p,d)){var d=p;s[a++]=u===0?0:u}}return s}function qo(e){return typeof e=="number"?e:ve(e)?pn:+e}function ye(e){if(typeof e=="string")return e;if(R(e))return K(e,ye)+"";if(ve(e))return So?So.call(e):"";var t=e+"";return t=="0"&&1/e==-ct?"-0":t}function ot(e,t,n){var r=-1,a=bn,s=e.length,u=!0,p=[],d=p;if(n)u=!1,a=Cr;else if(s>=x){var y=t?null:Cc(e);if(y)return xn(y);u=!1,a=Zt,d=new gt}else d=t?[]:p;e:for(;++r<s;){var v=e[r],b=t?t(v):v;if(v=n||v!==0?v:0,u&&b===b){for(var C=d.length;C--;)if(d[C]===b)continue e;t&&d.push(b),p.push(v)}else a(d,b,n)||(d!==p&&d.push(b),p.push(v))}return p}function Jr(e,t){return t=at(t,e),e=_a(e,t),e==null||delete e[Ge(Ae(t))]}function Yo(e,t,n,r){return on(e,t,n(mt(e,t)),r)}function Gn(e,t,n,r){for(var a=e.length,s=r?a:-1;(r?s--:++s<a)&&t(e[s],s,e););return n?Be(e,r?0:s,r?s+1:a):Be(e,r?s+1:0,r?a:s)}function Zo(e,t){var n=e;return n instanceof W&&(n=n.value()),Sr(t,function(r,a){return a.func.apply(a.thisArg,tt([r],a.args))},n)}function Xr(e,t,n){var r=e.length;if(r<2)return r?ot(e[0]):[];for(var a=-1,s=g(r);++a<r;)for(var u=e[a],p=-1;++p<r;)p!=a&&(s[a]=tn(s[a]||u,e[p],t,n));return ot(ie(s,1),t,n)}function Jo(e,t,n){for(var r=-1,a=e.length,s=t.length,u={};++r<a;){var p=r<s?t[r]:i;n(u,e[r],p)}return u}function Qr(e){return X(e)?e:[]}function Vr(e){return typeof e=="function"?e:de}function at(e,t){return R(e)?e:li(e,t)?[e]:Sa(U(e))}var dc=P;function lt(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:Be(e,t,n)}var Xo=eu||function(e){return re.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,r=vo?vo(n):new e.constructor(n);return e.copy(r),r}function jr(e){var t=new e.constructor(e.byteLength);return new Bn(t).set(new Bn(e)),t}function gc(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function hc(e){var t=new e.constructor(e.source,Di.exec(e));return t.lastIndex=e.lastIndex,t}function mc(e){return jt?N(jt.call(e)):{}}function Vo(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var n=e!==i,r=e===null,a=e===e,s=ve(e),u=t!==i,p=t===null,d=t===t,y=ve(t);if(!p&&!y&&!s&&e>t||s&&u&&d&&!p&&!y||r&&u&&d||!n&&d||!a)return 1;if(!r&&!s&&!y&&e<t||y&&n&&a&&!r&&!s||p&&n&&a||!u&&a||!d)return-1}return 0}function yc(e,t,n){for(var r=-1,a=e.criteria,s=t.criteria,u=a.length,p=n.length;++r<u;){var d=jo(a[r],s[r]);if(d){if(r>=p)return d;var y=n[r];return d*(y=="desc"?-1:1)}}return e.index-t.index}function ea(e,t,n,r){for(var a=-1,s=e.length,u=n.length,p=-1,d=t.length,y=ee(s-u,0),v=g(d+y),b=!r;++p<d;)v[p]=t[p];for(;++a<u;)(b||a<s)&&(v[n[a]]=e[a]);for(;y--;)v[p++]=e[a++];return v}function ta(e,t,n,r){for(var a=-1,s=e.length,u=-1,p=n.length,d=-1,y=t.length,v=ee(s-p,0),b=g(v+y),C=!r;++a<v;)b[a]=e[a];for(var I=a;++d<y;)b[I+d]=t[d];for(;++u<p;)(C||a<s)&&(b[I+n[u]]=e[a++]);return b}function ce(e,t){var n=-1,r=e.length;for(t||(t=g(r));++n<r;)t[n]=e[n];return t}function Ue(e,t,n,r){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var p=t[s],d=r?r(n[p],e[p],p,n,e):i;d===i&&(d=e[p]),a?qe(n,p,d):en(n,p,d)}return n}function vc(e,t){return Ue(e,ai(e),t)}function bc(e,t){return Ue(e,ga(e),t)}function Nn(e,t){return function(n,r){var a=R(n)?Ss:Gu,s=t?t():{};return a(n,e,B(r,2),s)}}function Mt(e){return P(function(t,n){var r=-1,a=n.length,s=a>1?n[a-1]:i,u=a>2?n[2]:i;for(s=e.length>3&&typeof s=="function"?(a--,s):i,u&&se(n[0],n[1],u)&&(s=a<3?i:s,a=1),t=N(t);++r<a;){var p=n[r];p&&e(t,p,r,s)}return t})}function na(e,t){return function(n,r){if(n==null)return n;if(!pe(n))return e(n,r);for(var a=n.length,s=t?a:-1,u=N(n);(t?s--:++s<a)&&r(u[s],s,u)!==!1;);return n}}function ra(e){return function(t,n,r){for(var a=-1,s=N(t),u=r(t),p=u.length;p--;){var d=u[e?p:++a];if(n(s[d],d,s)===!1)break}return t}}function _c(e,t,n){var r=t&xe,a=an(e);function s(){var u=this&&this!==re&&this instanceof s?a:e;return u.apply(r?n:this,arguments)}return s}function ia(e){return function(t){t=U(t);var n=At(t)?Ee(t):i,r=n?n[0]:t.charAt(0),a=n?lt(n,1).join(""):t.slice(1);return r[e]()+a}}function Wt(e){return function(t){return Sr(nl(tl(t).replace(cs,"")),e,"")}}function an(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=Pt(e.prototype),r=e.apply(n,t);return Y(r)?r:n}}function xc(e,t,n){var r=an(e);function a(){for(var s=arguments.length,u=g(s),p=s,d=Ht(a);p--;)u[p]=arguments[p];var y=s<3&&u[0]!==d&&u[s-1]!==d?[]:nt(u,d);if(s-=y.length,s<n)return ua(e,t,zn,a.placeholder,i,u,y,i,i,n-s);var v=this&&this!==re&&this instanceof a?r:e;return he(v,this,u)}return a}function oa(e){return function(t,n,r){var a=N(t);if(!pe(t)){var s=B(n,3);t=te(t),n=function(p){return s(a[p],p,a)}}var u=e(t,n,r);return u>-1?a[s?t[u]:u]:i}}function aa(e){return Ze(function(t){var n=t.length,r=n,a=Le.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if(typeof s!="function")throw new Se(w);if(a&&!u&&Yn(s)=="wrapper")var u=new Le([],!0)}for(r=u?r:n;++r<n;){s=t[r];var p=Yn(s),d=p=="wrapper"?ii(s):i;d&&si(d[0])&&d[1]==(Ne|We|He|Ut)&&!d[4].length&&d[9]==1?u=u[Yn(d[0])].apply(u,d[3]):u=s.length==1&&si(s)?u[p]():u.thru(s)}return function(){var y=arguments,v=y[0];if(u&&y.length==1&&R(v))return u.plant(v).value();for(var b=0,C=n?t[b].apply(this,y):v;++b<n;)C=t[b].call(this,C);return C}})}function zn(e,t,n,r,a,s,u,p,d,y){var v=t&Ne,b=t&xe,C=t&ut,I=t&(We|wt),A=t&ir,D=C?i:an(e);function T(){for(var M=arguments.length,H=g(M),be=M;be--;)H[be]=arguments[be];if(I)var ue=Ht(T),_e=Ds(H,ue);if(r&&(H=ea(H,r,a,I)),s&&(H=ta(H,s,u,I)),M-=_e,I&&M<y){var Q=nt(H,ue);return ua(e,t,zn,T.placeholder,n,H,Q,p,d,y-M)}var Me=b?n:this,Ve=C?Me[e]:e;return M=H.length,p?H=Gc(H,p):A&&M>1&&H.reverse(),v&&d<M&&(H.length=d),this&&this!==re&&this instanceof T&&(Ve=D||an(Ve)),Ve.apply(Me,H)}return T}function la(e,t){return function(n,r){return Ju(n,e,t(r),{})}}function $n(e,t){return function(n,r){var a;if(n===i&&r===i)return t;if(n!==i&&(a=n),r!==i){if(a===i)return r;typeof n=="string"||typeof r=="string"?(n=ye(n),r=ye(r)):(n=qo(n),r=qo(r)),a=e(n,r)}return a}}function ei(e){return Ze(function(t){return t=K(t,me(B())),P(function(n){var r=this;return e(t,function(a){return he(a,r,n)})})})}function Kn(e,t){t=t===i?" ":ye(t);var n=t.length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,Rn(e/Tt(t)));return At(t)?lt(Ee(r),0,e).join(""):r.slice(0,e)}function wc(e,t,n,r){var a=t&xe,s=an(e);function u(){for(var p=-1,d=arguments.length,y=-1,v=r.length,b=g(v+d),C=this&&this!==re&&this instanceof u?s:e;++y<v;)b[y]=r[y];for(;d--;)b[y++]=arguments[++p];return he(C,a?n:this,b)}return u}function sa(e){return function(t,n,r){return r&&typeof r!="number"&&se(t,n,r)&&(n=r=i),t=Qe(t),n===i?(n=t,t=0):n=Qe(n),r=r===i?t<n?1:-1:Qe(r),lc(t,n,r,e)}}function qn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Te(t),n=Te(n)),e(t,n)}}function ua(e,t,n,r,a,s,u,p,d,y){var v=t&We,b=v?u:i,C=v?i:u,I=v?s:i,A=v?i:s;t|=v?He:Ct,t&=~(v?Ct:He),t&Ii||(t&=~(xe|ut));var D=[e,t,a,I,b,A,C,p,d,y],T=n.apply(i,D);return si(e)&&xa(T,D),T.placeholder=r,wa(T,e,t)}function ti(e){var t=j[e];return function(n,r){if(n=Te(n),r=r==null?0:oe(E(r),292),r&&wo(n)){var a=(U(n)+"e").split("e"),s=t(a[0]+"e"+(+a[1]+r));return a=(U(s)+"e").split("e"),+(a[0]+"e"+(+a[1]-r))}return t(n)}}var Cc=Et&&1/xn(new Et([,-0]))[1]==ct?function(e){return new Et(e)}:Ci;function ca(e){return function(t){var n=ae(t);return n==Fe?Rr(t):n==Re?Us(t):Es(t,e(t))}}function Ye(e,t,n,r,a,s,u,p){var d=t&ut;if(!d&&typeof e!="function")throw new Se(w);var y=r?r.length:0;if(y||(t&=~(He|Ct),r=a=i),u=u===i?u:ee(E(u),0),p=p===i?p:E(p),y-=a?a.length:0,t&Ct){var v=r,b=a;r=a=i}var C=d?i:ii(e),I=[e,t,n,r,a,v,b,s,u,p];if(C&&Oc(I,C),e=I[0],t=I[1],n=I[2],r=I[3],a=I[4],p=I[9]=I[9]===i?d?0:e.length:ee(I[9]-y,0),!p&&t&(We|wt)&&(t&=~(We|wt)),!t||t==xe)var A=_c(e,t,n);else t==We||t==wt?A=xc(e,t,p):(t==He||t==(xe|He))&&!a.length?A=wc(e,t,n,r):A=zn.apply(i,I);var D=C?$o:xa;return wa(D(A,I),e,t)}function pa(e,t,n,r){return e===i||Pe(e,Rt[n])&&!G.call(r,n)?t:e}function fa(e,t,n,r,a,s){return Y(e)&&Y(t)&&(s.set(t,e),kn(e,t,i,fa,s),s.delete(t)),e}function Sc(e){return un(e)?i:e}function da(e,t,n,r,a,s){var u=n&xt,p=e.length,d=t.length;if(p!=d&&!(u&&d>p))return!1;var y=s.get(e),v=s.get(t);if(y&&v)return y==t&&v==e;var b=-1,C=!0,I=n&cn?new gt:i;for(s.set(e,t),s.set(t,e);++b<p;){var A=e[b],D=t[b];if(r)var T=u?r(D,A,b,t,e,s):r(A,D,b,e,t,s);if(T!==i){if(T)continue;C=!1;break}if(I){if(!Lr(t,function(M,H){if(!Zt(I,H)&&(A===M||a(A,M,n,r,s)))return I.push(H)})){C=!1;break}}else if(!(A===D||a(A,D,n,r,s))){C=!1;break}}return s.delete(e),s.delete(t),C}function Lc(e,t,n,r,a,s,u){switch(n){case Lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Yt:return!(e.byteLength!=t.byteLength||!s(new Bn(e),new Bn(t)));case Gt:case Nt:case zt:return Pe(+e,+t);case dn:return e.name==t.name&&e.message==t.message;case $t:case Kt:return e==t+"";case Fe:var p=Rr;case Re:var d=r&xt;if(p||(p=xn),e.size!=t.size&&!d)return!1;var y=u.get(e);if(y)return y==t;r|=cn,u.set(e,t);var v=da(p(e),p(t),r,a,s,u);return u.delete(e),v;case hn:if(jt)return jt.call(e)==jt.call(t)}return!1}function Ic(e,t,n,r,a,s){var u=n&xt,p=ni(e),d=p.length,y=ni(t),v=y.length;if(d!=v&&!u)return!1;for(var b=d;b--;){var C=p[b];if(!(u?C in t:G.call(t,C)))return!1}var I=s.get(e),A=s.get(t);if(I&&A)return I==t&&A==e;var D=!0;s.set(e,t),s.set(t,e);for(var T=u;++b<d;){C=p[b];var M=e[C],H=t[C];if(r)var be=u?r(H,M,C,t,e,s):r(M,H,C,e,t,s);if(!(be===i?M===H||a(M,H,n,r,s):be)){D=!1;break}T||(T=C=="constructor")}if(D&&!T){var ue=e.constructor,_e=t.constructor;ue!=_e&&"constructor"in e&&"constructor"in t&&!(typeof ue=="function"&&ue instanceof ue&&typeof _e=="function"&&_e instanceof _e)&&(D=!1)}return s.delete(e),s.delete(t),D}function Ze(e){return ci(ba(e,i,Aa),e+"")}function ni(e){return Do(e,te,ai)}function ri(e){return Do(e,fe,ga)}var ii=Dn?function(e){return Dn.get(e)}:Ci;function Yn(e){for(var t=e.name+"",n=Dt[t],r=G.call(Dt,t)?n.length:0;r--;){var a=n[r],s=a.func;if(s==null||s==e)return a.name}return t}function Ht(e){var t=G.call(l,"placeholder")?l:e;return t.placeholder}function B(){var e=l.iteratee||xi;return e=e===xi?Wo:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var n=e.__data__;return Pc(t)?n[typeof t=="string"?"string":"hash"]:n.map}function oi(e){for(var t=te(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,ya(a)]}return t}function yt(e,t){var n=Hs(e,t);return Mo(n)?n:i}function Bc(e){var t=G.call(e,ft),n=e[ft];try{e[ft]=i;var r=!0}catch{}var a=Ln.call(e);return r&&(t?e[ft]=n:delete e[ft]),a}var ai=Dr?function(e){return e==null?[]:(e=N(e),et(Dr(e),function(t){return _o.call(e,t)}))}:Si,ga=Dr?function(e){for(var t=[];e;)tt(t,ai(e)),e=An(e);return t}:Si,ae=le;(Pr&&ae(new Pr(new ArrayBuffer(1)))!=Lt||Xt&&ae(new Xt)!=Fe||Mr&&ae(Mr.resolve())!=Ti||Et&&ae(new Et)!=Re||Qt&&ae(new Qt)!=qt)&&(ae=function(e){var t=le(e),n=t==ze?e.constructor:i,r=n?vt(n):"";if(r)switch(r){case uu:return Lt;case cu:return Fe;case pu:return Ti;case fu:return Re;case du:return qt}return t});function Ac(e,t,n){for(var r=-1,a=n.length;++r<a;){var s=n[r],u=s.size;switch(s.type){case"drop":e+=u;break;case"dropRight":t-=u;break;case"take":t=oe(t,e+u);break;case"takeRight":e=ee(e,t-u);break}}return{start:e,end:t}}function Tc(e){var t=e.match(Ml);return t?t[1].split(Wl):[]}function ha(e,t,n){t=at(t,e);for(var r=-1,a=t.length,s=!1;++r<a;){var u=Ge(t[r]);if(!(s=e!=null&&n(e,u)))break;e=e[u]}return s||++r!=a?s:(a=e==null?0:e.length,!!a&&tr(a)&&Je(u,a)&&(R(e)||bt(e)))}function Fc(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 ma(e){return typeof e.constructor=="function"&&!ln(e)?Pt(An(e)):{}}function Rc(e,t,n){var r=e.constructor;switch(t){case Yt:return jr(e);case Gt:case Nt:return new r(+e);case Lt:return gc(e,n);case or:case ar:case lr:case sr:case ur:case cr:case pr:case fr:case dr:return Vo(e,n);case Fe:return new r;case zt:case Kt:return new r(e);case $t:return hc(e);case Re:return new r;case hn:return mc(e)}}function Ec(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Pl,`{
8
+ */(function(o,c){(function(){var i,h="4.17.21",x=200,S="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",w="Expected a function",O="Invalid `variable` option passed into `_.template`",Z="__lodash_hash_undefined__",ne=500,V="__lodash_placeholder__",q=1,ge=2,_t=4,xt=1,cn=2,xe=1,ut=2,Bi=4,We=8,wt=16,He=32,Ct=64,Ge=128,Ut=256,ir=512,al=30,ll="...",sl=800,ul=16,Ii=1,cl=2,pl=3,ct=1/0,je=9007199254740991,fl=17976931348623157e292,pn=0/0,Oe=4294967295,dl=Oe-1,gl=Oe>>>1,hl=[["ary",Ge],["bind",xe],["bindKey",ut],["curry",We],["curryRight",wt],["flip",ir],["partial",He],["partialRight",Ct],["rearg",Ut]],St="[object Arguments]",fn="[object Array]",ml="[object AsyncFunction]",Nt="[object Boolean]",Gt="[object Date]",yl="[object DOMException]",dn="[object Error]",gn="[object Function]",Ai="[object GeneratorFunction]",Fe="[object Map]",zt="[object Number]",vl="[object Null]",ze="[object Object]",Ti="[object Promise]",bl="[object Proxy]",$t="[object RegExp]",Re="[object Set]",Kt="[object String]",hn="[object Symbol]",_l="[object Undefined]",qt="[object WeakMap]",xl="[object WeakSet]",Yt="[object ArrayBuffer]",Lt="[object DataView]",or="[object Float32Array]",ar="[object Float64Array]",lr="[object Int8Array]",sr="[object Int16Array]",ur="[object Int32Array]",cr="[object Uint8Array]",pr="[object Uint8ClampedArray]",fr="[object Uint16Array]",dr="[object Uint32Array]",wl=/\b__p \+= '';/g,Cl=/\b(__p \+=) '' \+/g,Sl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Ll=RegExp(Fi.source),Bl=RegExp(Ri.source),Il=/<%-([\s\S]+?)%>/g,Al=/<%([\s\S]+?)%>/g,Ei=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fl=/^\w*$/,Rl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gr=/[\\^$.*+?()[\]{}|]/g,El=RegExp(gr.source),hr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ml=/\{\n\/\* \[wrapped with (.+)\] \*/,Wl=/,? & /,Hl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,kl=/\\(\\)?/g,Ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Di=/\w*$/,Nl=/^[-+]0x[0-9a-f]+$/i,Gl=/^0b[01]+$/i,zl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,ql=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mn=/($^)/,Yl=/['\n\r\u2028\u2029\\]/g,yn="\\ud800-\\udfff",Zl="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Xl="\\u20d0-\\u20ff",Pi=Zl+Jl+Xl,Mi="\\u2700-\\u27bf",Wi="a-z\\xdf-\\xf6\\xf8-\\xff",Ql="\\xac\\xb1\\xd7\\xf7",Vl="\\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",Hi="A-Z\\xc0-\\xd6\\xd8-\\xde",Oi="\\ufe0e\\ufe0f",ki=Ql+Vl+jl+es,mr="['\u2019]",ts="["+yn+"]",Ui="["+ki+"]",vn="["+Pi+"]",Ni="\\d+",ns="["+Mi+"]",Gi="["+Wi+"]",zi="[^"+yn+ki+Ni+Mi+Wi+Hi+"]",yr="\\ud83c[\\udffb-\\udfff]",rs="(?:"+vn+"|"+yr+")",$i="[^"+yn+"]",vr="(?:\\ud83c[\\udde6-\\uddff]){2}",br="[\\ud800-\\udbff][\\udc00-\\udfff]",Bt="["+Hi+"]",Ki="\\u200d",qi="(?:"+Gi+"|"+zi+")",is="(?:"+Bt+"|"+zi+")",Yi="(?:"+mr+"(?:d|ll|m|re|s|t|ve))?",Zi="(?:"+mr+"(?:D|LL|M|RE|S|T|VE))?",Ji=rs+"?",Xi="["+Oi+"]?",os="(?:"+Ki+"(?:"+[$i,vr,br].join("|")+")"+Xi+Ji+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Qi=Xi+Ji+os,ss="(?:"+[ns,vr,br].join("|")+")"+Qi,us="(?:"+[$i+vn+"?",vn,vr,br,ts].join("|")+")",cs=RegExp(mr,"g"),ps=RegExp(vn,"g"),_r=RegExp(yr+"(?="+yr+")|"+us+Qi,"g"),fs=RegExp([Bt+"?"+Gi+"+"+Yi+"(?="+[Ui,Bt,"$"].join("|")+")",is+"+"+Zi+"(?="+[Ui,Bt+qi,"$"].join("|")+")",Bt+"?"+qi+"+"+Yi,Bt+"+"+Zi,ls,as,Ni,ss].join("|"),"g"),ds=RegExp("["+Ki+yn+Pi+Oi+"]"),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,$={};$[or]=$[ar]=$[lr]=$[sr]=$[ur]=$[cr]=$[pr]=$[fr]=$[dr]=!0,$[St]=$[fn]=$[Yt]=$[Nt]=$[Lt]=$[Gt]=$[dn]=$[gn]=$[Fe]=$[zt]=$[ze]=$[$t]=$[Re]=$[Kt]=$[qt]=!1;var z={};z[St]=z[fn]=z[Yt]=z[Lt]=z[Nt]=z[Gt]=z[or]=z[ar]=z[lr]=z[sr]=z[ur]=z[Fe]=z[zt]=z[ze]=z[$t]=z[Re]=z[Kt]=z[hn]=z[cr]=z[pr]=z[fr]=z[dr]=!0,z[dn]=z[gn]=z[qt]=!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;":"'"},_s={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xs=parseFloat,ws=parseInt,Vi=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,Cs=typeof self=="object"&&self&&self.Object===Object&&self,re=Vi||Cs||Function("return this")(),xr=c&&!c.nodeType&&c,pt=xr&&!0&&o&&!o.nodeType&&o,ji=pt&&pt.exports===xr,wr=ji&&Vi.process,we=function(){try{var f=pt&&pt.require&&pt.require("util").types;return f||wr&&wr.binding&&wr.binding("util")}catch{}}(),eo=we&&we.isArrayBuffer,to=we&&we.isDate,no=we&&we.isMap,ro=we&&we.isRegExp,io=we&&we.isSet,oo=we&&we.isTypedArray;function he(f,m,g){switch(g.length){case 0:return f.call(m);case 1:return f.call(m,g[0]);case 2:return f.call(m,g[0],g[1]);case 3:return f.call(m,g[0],g[1],g[2])}return f.apply(m,g)}function Ss(f,m,g,L){for(var F=-1,k=f==null?0:f.length;++F<k;){var j=f[F];m(L,j,g(j),f)}return L}function Ce(f,m){for(var g=-1,L=f==null?0:f.length;++g<L&&m(f[g],g,f)!==!1;);return f}function Ls(f,m){for(var g=f==null?0:f.length;g--&&m(f[g],g,f)!==!1;);return f}function ao(f,m){for(var g=-1,L=f==null?0:f.length;++g<L;)if(!m(f[g],g,f))return!1;return!0}function et(f,m){for(var g=-1,L=f==null?0:f.length,F=0,k=[];++g<L;){var j=f[g];m(j,g,f)&&(k[F++]=j)}return k}function bn(f,m){var g=f==null?0:f.length;return!!g&&It(f,m,0)>-1}function Cr(f,m,g){for(var L=-1,F=f==null?0:f.length;++L<F;)if(g(m,f[L]))return!0;return!1}function K(f,m){for(var g=-1,L=f==null?0:f.length,F=Array(L);++g<L;)F[g]=m(f[g],g,f);return F}function tt(f,m){for(var g=-1,L=m.length,F=f.length;++g<L;)f[F+g]=m[g];return f}function Sr(f,m,g,L){var F=-1,k=f==null?0:f.length;for(L&&k&&(g=f[++F]);++F<k;)g=m(g,f[F],F,f);return g}function Bs(f,m,g,L){var F=f==null?0:f.length;for(L&&F&&(g=f[--F]);F--;)g=m(g,f[F],F,f);return g}function Lr(f,m){for(var g=-1,L=f==null?0:f.length;++g<L;)if(m(f[g],g,f))return!0;return!1}var Is=Br("length");function As(f){return f.split("")}function Ts(f){return f.match(Hl)||[]}function lo(f,m,g){var L;return g(f,function(F,k,j){if(m(F,k,j))return L=k,!1}),L}function _n(f,m,g,L){for(var F=f.length,k=g+(L?1:-1);L?k--:++k<F;)if(m(f[k],k,f))return k;return-1}function It(f,m,g){return m===m?Ns(f,m,g):_n(f,so,g)}function Fs(f,m,g,L){for(var F=g-1,k=f.length;++F<k;)if(L(f[F],m))return F;return-1}function so(f){return f!==f}function uo(f,m){var g=f==null?0:f.length;return g?Ar(f,m)/g:pn}function Br(f){return function(m){return m==null?i:m[f]}}function Ir(f){return function(m){return f==null?i:f[m]}}function co(f,m,g,L,F){return F(f,function(k,j,G){g=L?(L=!1,k):m(g,k,j,G)}),g}function Rs(f,m){var g=f.length;for(f.sort(m);g--;)f[g]=f[g].value;return f}function Ar(f,m){for(var g,L=-1,F=f.length;++L<F;){var k=m(f[L]);k!==i&&(g=g===i?k:g+k)}return g}function Tr(f,m){for(var g=-1,L=Array(f);++g<f;)L[g]=m(g);return L}function Es(f,m){return K(m,function(g){return[g,f[g]]})}function po(f){return f&&f.slice(0,mo(f)+1).replace(hr,"")}function me(f){return function(m){return f(m)}}function Fr(f,m){return K(m,function(g){return f[g]})}function Zt(f,m){return f.has(m)}function fo(f,m){for(var g=-1,L=f.length;++g<L&&It(m,f[g],0)>-1;);return g}function go(f,m){for(var g=f.length;g--&&It(m,f[g],0)>-1;);return g}function Ds(f,m){for(var g=f.length,L=0;g--;)f[g]===m&&++L;return L}var Ps=Ir(ys),Ms=Ir(vs);function Ws(f){return"\\"+_s[f]}function Hs(f,m){return f==null?i:f[m]}function At(f){return ds.test(f)}function Os(f){return gs.test(f)}function ks(f){for(var m,g=[];!(m=f.next()).done;)g.push(m.value);return g}function Rr(f){var m=-1,g=Array(f.size);return f.forEach(function(L,F){g[++m]=[F,L]}),g}function ho(f,m){return function(g){return f(m(g))}}function nt(f,m){for(var g=-1,L=f.length,F=0,k=[];++g<L;){var j=f[g];(j===m||j===V)&&(f[g]=V,k[F++]=g)}return k}function xn(f){var m=-1,g=Array(f.size);return f.forEach(function(L){g[++m]=L}),g}function Us(f){var m=-1,g=Array(f.size);return f.forEach(function(L){g[++m]=[L,L]}),g}function Ns(f,m,g){for(var L=g-1,F=f.length;++L<F;)if(f[L]===m)return L;return-1}function Gs(f,m,g){for(var L=g+1;L--;)if(f[L]===m)return L;return L}function Tt(f){return At(f)?$s(f):Is(f)}function Ee(f){return At(f)?Ks(f):As(f)}function mo(f){for(var m=f.length;m--&&Dl.test(f.charAt(m)););return m}var zs=Ir(bs);function $s(f){for(var m=_r.lastIndex=0;_r.test(f);)++m;return m}function Ks(f){return f.match(_r)||[]}function qs(f){return f.match(fs)||[]}var Ys=function f(m){m=m==null?re:Ft.defaults(re.Object(),m,Ft.pick(re,hs));var g=m.Array,L=m.Date,F=m.Error,k=m.Function,j=m.Math,G=m.Object,Er=m.RegExp,Zs=m.String,Se=m.TypeError,wn=g.prototype,Js=k.prototype,Rt=G.prototype,Cn=m["__core-js_shared__"],Sn=Js.toString,N=Rt.hasOwnProperty,Xs=0,yo=function(){var e=/[^.]+$/.exec(Cn&&Cn.keys&&Cn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ln=Rt.toString,Qs=Sn.call(G),Vs=re._,js=Er("^"+Sn.call(N).replace(gr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bn=ji?m.Buffer:i,rt=m.Symbol,In=m.Uint8Array,vo=Bn?Bn.allocUnsafe:i,An=ho(G.getPrototypeOf,G),bo=G.create,_o=Rt.propertyIsEnumerable,Tn=wn.splice,xo=rt?rt.isConcatSpreadable:i,Jt=rt?rt.iterator:i,ft=rt?rt.toStringTag:i,Fn=function(){try{var e=yt(G,"defineProperty");return e({},"",{}),e}catch{}}(),eu=m.clearTimeout!==re.clearTimeout&&m.clearTimeout,tu=L&&L.now!==re.Date.now&&L.now,nu=m.setTimeout!==re.setTimeout&&m.setTimeout,Rn=j.ceil,En=j.floor,Dr=G.getOwnPropertySymbols,ru=Bn?Bn.isBuffer:i,wo=m.isFinite,iu=wn.join,ou=ho(G.keys,G),ee=j.max,oe=j.min,au=L.now,lu=m.parseInt,Co=j.random,su=wn.reverse,Pr=yt(m,"DataView"),Xt=yt(m,"Map"),Mr=yt(m,"Promise"),Et=yt(m,"Set"),Qt=yt(m,"WeakMap"),Vt=yt(G,"create"),Dn=Qt&&new Qt,Dt={},uu=vt(Pr),cu=vt(Xt),pu=vt(Mr),fu=vt(Et),du=vt(Qt),Pn=rt?rt.prototype:i,jt=Pn?Pn.valueOf:i,So=Pn?Pn.toString:i;function l(e){if(J(e)&&!R(e)&&!(e instanceof W)){if(e instanceof Le)return e;if(N.call(e,"__wrapped__"))return La(e)}return new Le(e)}var Pt=function(){function e(){}return function(t){if(!Y(t))return{};if(bo)return bo(t);e.prototype=t;var n=new e;return e.prototype=i,n}}();function Mn(){}function Le(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}l.templateSettings={escape:Il,evaluate:Al,interpolate:Ei,variable:"",imports:{_:l}},l.prototype=Mn.prototype,l.prototype.constructor=l,Le.prototype=Pt(Mn.prototype),Le.prototype.constructor=Le;function W(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Oe,this.__views__=[]}function gu(){var e=new W(this.__wrapped__);return e.__actions__=ce(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ce(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ce(this.__views__),e}function hu(){if(this.__filtered__){var e=new W(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),r=t<0,a=n?e.length:0,s=Ac(0,a,this.__views__),u=s.start,p=s.end,d=p-u,y=r?p:u-1,v=this.__iteratees__,b=v.length,C=0,B=oe(d,this.__takeCount__);if(!n||!r&&a==d&&B==d)return Zo(e,this.__actions__);var A=[];e:for(;d--&&C<B;){y+=t;for(var D=-1,T=e[y];++D<b;){var M=v[D],H=M.iteratee,be=M.type,ue=H(T);if(be==cl)T=ue;else if(!ue){if(be==Ii)continue e;break e}}A[C++]=T}return A}W.prototype=Pt(Mn.prototype),W.prototype.constructor=W;function dt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function yu(){this.__data__=Vt?Vt(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(Vt){var n=t[e];return n===Z?i:n}return N.call(t,e)?t[e]:i}function _u(e){var t=this.__data__;return Vt?t[e]!==i:N.call(t,e)}function xu(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Vt&&t===i?Z:t,this}dt.prototype.clear=yu,dt.prototype.delete=vu,dt.prototype.get=bu,dt.prototype.has=_u,dt.prototype.set=xu;function $e(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function wu(){this.__data__=[],this.size=0}function Cu(e){var t=this.__data__,n=Wn(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Tn.call(t,n,1),--this.size,!0}function Su(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 Bu(e,t){var n=this.__data__,r=Wn(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}$e.prototype.clear=wu,$e.prototype.delete=Cu,$e.prototype.get=Su,$e.prototype.has=Lu,$e.prototype.set=Bu;function Ke(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Iu(){this.size=0,this.__data__={hash:new dt,map:new(Xt||$e),string:new dt}}function Au(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 Fu(e){return Zn(this,e).has(e)}function Ru(e,t){var n=Zn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Ke.prototype.clear=Iu,Ke.prototype.delete=Au,Ke.prototype.get=Tu,Ke.prototype.has=Fu,Ke.prototype.set=Ru;function gt(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ke;++t<n;)this.add(e[t])}function Eu(e){return this.__data__.set(e,Z),this}function Du(e){return this.__data__.has(e)}gt.prototype.add=gt.prototype.push=Eu,gt.prototype.has=Du;function De(e){var t=this.__data__=new $e(e);this.size=t.size}function Pu(){this.__data__=new $e,this.size=0}function Mu(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Wu(e){return this.__data__.get(e)}function Hu(e){return this.__data__.has(e)}function Ou(e,t){var n=this.__data__;if(n instanceof $e){var r=n.__data__;if(!Xt||r.length<x-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ke(r)}return n.set(e,t),this.size=n.size,this}De.prototype.clear=Pu,De.prototype.delete=Mu,De.prototype.get=Wu,De.prototype.has=Hu,De.prototype.set=Ou;function Lo(e,t){var n=R(e),r=!n&&bt(e),a=!n&&!r&&st(e),s=!n&&!r&&!a&&Ot(e),u=n||r||a||s,p=u?Tr(e.length,Zs):[],d=p.length;for(var y in e)(t||N.call(e,y))&&!(u&&(y=="length"||a&&(y=="offset"||y=="parent")||s&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Je(y,d)))&&p.push(y);return p}function Bo(e){var t=e.length;return t?e[qr(0,t-1)]:i}function ku(e,t){return Jn(ce(e),ht(t,0,e.length))}function Uu(e){return Jn(ce(e))}function Wr(e,t,n){(n!==i&&!Pe(e[t],n)||n===i&&!(t in e))&&qe(e,t,n)}function en(e,t,n){var r=e[t];(!(N.call(e,t)&&Pe(r,n))||n===i&&!(t in e))&&qe(e,t,n)}function Wn(e,t){for(var n=e.length;n--;)if(Pe(e[n][0],t))return n;return-1}function Nu(e,t,n,r){return it(e,function(a,s,u){t(r,a,n(a),u)}),r}function Io(e,t){return e&&Ue(t,te(t),e)}function Gu(e,t){return e&&Ue(t,fe(t),e)}function qe(e,t,n){t=="__proto__"&&Fn?Fn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Hr(e,t){for(var n=-1,r=t.length,a=g(r),s=e==null;++n<r;)a[n]=s?i:yi(e,t[n]);return a}function ht(e,t,n){return e===e&&(n!==i&&(e=e<=n?e:n),t!==i&&(e=e>=t?e:t)),e}function Be(e,t,n,r,a,s){var u,p=t&q,d=t&ge,y=t&_t;if(n&&(u=a?n(e,r,a,s):n(e)),u!==i)return u;if(!Y(e))return e;var v=R(e);if(v){if(u=Fc(e),!p)return ce(e,u)}else{var b=ae(e),C=b==gn||b==Ai;if(st(e))return Qo(e,p);if(b==ze||b==St||C&&!a){if(u=d||C?{}:ma(e),!p)return d?bc(e,Gu(u,e)):vc(e,Io(u,e))}else{if(!z[b])return a?e:{};u=Rc(e,b,p)}}s||(s=new De);var B=s.get(e);if(B)return B;s.set(e,u),Ka(e)?e.forEach(function(T){u.add(Be(T,t,n,T,e,s))}):za(e)&&e.forEach(function(T,M){u.set(M,Be(T,t,n,M,e,s))});var A=y?d?ri:ni:d?fe:te,D=v?i:A(e);return Ce(D||e,function(T,M){D&&(M=T,T=e[M]),en(u,M,Be(T,t,n,M,e,s))}),u}function zu(e){var t=te(e);return function(n){return Ao(n,e,t)}}function Ao(e,t,n){var r=n.length;if(e==null)return!r;for(e=G(e);r--;){var a=n[r],s=t[a],u=e[a];if(u===i&&!(a in e)||!s(u))return!1}return!0}function To(e,t,n){if(typeof e!="function")throw new Se(w);return sn(function(){e.apply(i,n)},t)}function tn(e,t,n,r){var a=-1,s=bn,u=!0,p=e.length,d=[],y=t.length;if(!p)return d;n&&(t=K(t,me(n))),r?(s=Cr,u=!1):t.length>=x&&(s=Zt,u=!1,t=new gt(t));e:for(;++a<p;){var v=e[a],b=n==null?v:n(v);if(v=r||v!==0?v:0,u&&b===b){for(var C=y;C--;)if(t[C]===b)continue e;d.push(v)}else s(t,b,r)||d.push(v)}return d}var it=na(ke),Fo=na(kr,!0);function $u(e,t){var n=!0;return it(e,function(r,a,s){return n=!!t(r,a,s),n}),n}function Hn(e,t,n){for(var r=-1,a=e.length;++r<a;){var s=e[r],u=t(s);if(u!=null&&(p===i?u===u&&!ve(u):n(u,p)))var p=u,d=s}return d}function Ku(e,t,n,r){var a=e.length;for(n=E(n),n<0&&(n=-n>a?0:a+n),r=r===i||r>a?a:E(r),r<0&&(r+=a),r=n>r?0:Ya(r);n<r;)e[n++]=t;return e}function Ro(e,t){var n=[];return it(e,function(r,a,s){t(r,a,s)&&n.push(r)}),n}function ie(e,t,n,r,a){var s=-1,u=e.length;for(n||(n=Dc),a||(a=[]);++s<u;){var p=e[s];t>0&&n(p)?t>1?ie(p,t-1,n,r,a):tt(a,p):r||(a[a.length]=p)}return a}var Or=ra(),Eo=ra(!0);function ke(e,t){return e&&Or(e,t,te)}function kr(e,t){return e&&Eo(e,t,te)}function On(e,t){return et(t,function(n){return Xe(e[n])})}function mt(e,t){t=at(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Ne(t[n++])];return n&&n==r?e:i}function Do(e,t,n){var r=t(e);return R(e)?r:tt(r,n(e))}function le(e){return e==null?e===i?_l:vl:ft&&ft in G(e)?Ic(e):Uc(e)}function Ur(e,t){return e>t}function qu(e,t){return e!=null&&N.call(e,t)}function Yu(e,t){return e!=null&&t in G(e)}function Zu(e,t,n){return e>=oe(t,n)&&e<ee(t,n)}function Nr(e,t,n){for(var r=n?Cr:bn,a=e[0].length,s=e.length,u=s,p=g(s),d=1/0,y=[];u--;){var v=e[u];u&&t&&(v=K(v,me(t))),d=oe(v.length,d),p[u]=!n&&(t||a>=120&&v.length>=120)?new gt(u&&v):i}v=e[0];var b=-1,C=p[0];e:for(;++b<a&&y.length<d;){var B=v[b],A=t?t(B):B;if(B=n||B!==0?B:0,!(C?Zt(C,A):r(y,A,n))){for(u=s;--u;){var D=p[u];if(!(D?Zt(D,A):r(e[u],A,n)))continue e}C&&C.push(A),y.push(B)}}return y}function Ju(e,t,n,r){return ke(e,function(a,s,u){t(r,n(a),s,u)}),r}function nn(e,t,n){t=at(t,e),e=_a(e,t);var r=e==null?e:e[Ne(Ae(t))];return r==null?i:he(r,e,n)}function Po(e){return J(e)&&le(e)==St}function Xu(e){return J(e)&&le(e)==Yt}function Qu(e){return J(e)&&le(e)==Gt}function rn(e,t,n,r,a){return e===t?!0:e==null||t==null||!J(e)&&!J(t)?e!==e&&t!==t:Vu(e,t,n,r,rn,a)}function Vu(e,t,n,r,a,s){var u=R(e),p=R(t),d=u?fn:ae(e),y=p?fn:ae(t);d=d==St?ze:d,y=y==St?ze:y;var v=d==ze,b=y==ze,C=d==y;if(C&&st(e)){if(!st(t))return!1;u=!0,v=!1}if(C&&!v)return s||(s=new De),u||Ot(e)?da(e,t,n,r,a,s):Lc(e,t,d,n,r,a,s);if(!(n&xt)){var B=v&&N.call(e,"__wrapped__"),A=b&&N.call(t,"__wrapped__");if(B||A){var D=B?e.value():e,T=A?t.value():t;return s||(s=new De),a(D,T,n,r,s)}}return C?(s||(s=new De),Bc(e,t,n,r,a,s)):!1}function ju(e){return J(e)&&ae(e)==Fe}function Gr(e,t,n,r){var a=n.length,s=a,u=!r;if(e==null)return!s;for(e=G(e);a--;){var p=n[a];if(u&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++a<s;){p=n[a];var d=p[0],y=e[d],v=p[1];if(u&&p[2]){if(y===i&&!(d in e))return!1}else{var b=new De;if(r)var C=r(y,v,d,e,t,b);if(!(C===i?rn(v,y,xt|cn,r,b):C))return!1}}return!0}function Mo(e){if(!Y(e)||Mc(e))return!1;var t=Xe(e)?js:zl;return t.test(vt(e))}function ec(e){return J(e)&&le(e)==$t}function tc(e){return J(e)&&ae(e)==Re}function nc(e){return J(e)&&tr(e.length)&&!!$[le(e)]}function Wo(e){return typeof e=="function"?e:e==null?de:typeof e=="object"?R(e)?ko(e[0],e[1]):Oo(e):il(e)}function zr(e){if(!ln(e))return ou(e);var t=[];for(var n in G(e))N.call(e,n)&&n!="constructor"&&t.push(n);return t}function rc(e){if(!Y(e))return kc(e);var t=ln(e),n=[];for(var r in e)r=="constructor"&&(t||!N.call(e,r))||n.push(r);return n}function $r(e,t){return e<t}function Ho(e,t){var n=-1,r=pe(e)?g(e.length):[];return it(e,function(a,s,u){r[++n]=t(a,s,u)}),r}function Oo(e){var t=oi(e);return t.length==1&&t[0][2]?va(t[0][0],t[0][1]):function(n){return n===e||Gr(n,e,t)}}function ko(e,t){return li(e)&&ya(t)?va(Ne(e),t):function(n){var r=yi(n,e);return r===i&&r===t?vi(n,e):rn(t,r,xt|cn)}}function kn(e,t,n,r,a){e!==t&&Or(t,function(s,u){if(a||(a=new De),Y(s))ic(e,t,u,n,kn,r,a);else{var p=r?r(ui(e,u),s,u+"",e,t,a):i;p===i&&(p=s),Wr(e,u,p)}},fe)}function ic(e,t,n,r,a,s,u){var p=ui(e,n),d=ui(t,n),y=u.get(d);if(y){Wr(e,n,y);return}var v=s?s(p,d,n+"",e,t,u):i,b=v===i;if(b){var C=R(d),B=!C&&st(d),A=!C&&!B&&Ot(d);v=d,C||B||A?R(p)?v=p:X(p)?v=ce(p):B?(b=!1,v=Qo(d,!0)):A?(b=!1,v=Vo(d,!0)):v=[]:un(d)||bt(d)?(v=p,bt(p)?v=Za(p):(!Y(p)||Xe(p))&&(v=ma(d))):b=!1}b&&(u.set(d,v),a(v,d,r,s,u),u.delete(d)),Wr(e,n,v)}function Uo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Je(t,n)?e[t]:i}function No(e,t,n){t.length?t=K(t,function(s){return R(s)?function(u){return mt(u,s.length===1?s[0]:s)}:s}):t=[de];var r=-1;t=K(t,me(I()));var a=Ho(e,function(s,u,p){var d=K(t,function(y){return y(s)});return{criteria:d,index:++r,value:s}});return Rs(a,function(s,u){return yc(s,u,n)})}function oc(e,t){return Go(e,t,function(n,r){return vi(e,r)})}function Go(e,t,n){for(var r=-1,a=t.length,s={};++r<a;){var u=t[r],p=mt(e,u);n(p,u)&&on(s,at(u,e),p)}return s}function ac(e){return function(t){return mt(t,e)}}function Kr(e,t,n,r){var a=r?Fs:It,s=-1,u=t.length,p=e;for(e===t&&(t=ce(t)),n&&(p=K(e,me(n)));++s<u;)for(var d=0,y=t[s],v=n?n(y):y;(d=a(p,v,d,r))>-1;)p!==e&&Tn.call(p,d,1),Tn.call(e,d,1);return e}function zo(e,t){for(var n=e?t.length:0,r=n-1;n--;){var a=t[n];if(n==r||a!==s){var s=a;Je(a)?Tn.call(e,a,1):Jr(e,a)}}return e}function qr(e,t){return e+En(Co()*(t-e+1))}function lc(e,t,n,r){for(var a=-1,s=ee(Rn((t-e)/(n||1)),0),u=g(s);s--;)u[r?s:++a]=e,e+=n;return u}function Yr(e,t){var n="";if(!e||t<1||t>je)return n;do t%2&&(n+=e),t=En(t/2),t&&(e+=e);while(t);return n}function P(e,t){return ci(ba(e,t,de),e+"")}function sc(e){return Bo(kt(e))}function uc(e,t){var n=kt(e);return Jn(n,ht(t,0,n.length))}function on(e,t,n,r){if(!Y(e))return e;t=at(t,e);for(var a=-1,s=t.length,u=s-1,p=e;p!=null&&++a<s;){var d=Ne(t[a]),y=n;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(a!=u){var v=p[d];y=r?r(v,d,p):i,y===i&&(y=Y(v)?v:Je(t[a+1])?[]:{})}en(p,d,y),p=p[d]}return e}var $o=Dn?function(e,t){return Dn.set(e,t),e}:de,cc=Fn?function(e,t){return Fn(e,"toString",{configurable:!0,enumerable:!1,value:_i(t),writable:!0})}:de;function pc(e){return Jn(kt(e))}function Ie(e,t,n){var r=-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=g(a);++r<a;)s[r]=e[r+t];return s}function fc(e,t){var n;return it(e,function(r,a,s){return n=t(r,a,s),!n}),!!n}function Un(e,t,n){var r=0,a=e==null?r:e.length;if(typeof t=="number"&&t===t&&a<=gl){for(;r<a;){var s=r+a>>>1,u=e[s];u!==null&&!ve(u)&&(n?u<=t:u<t)?r=s+1:a=s}return a}return Zr(e,t,de,n)}function Zr(e,t,n,r){var a=0,s=e==null?0:e.length;if(s===0)return 0;t=n(t);for(var u=t!==t,p=t===null,d=ve(t),y=t===i;a<s;){var v=En((a+s)/2),b=n(e[v]),C=b!==i,B=b===null,A=b===b,D=ve(b);if(u)var T=r||A;else y?T=A&&(r||C):p?T=A&&C&&(r||!B):d?T=A&&C&&!B&&(r||!D):B||D?T=!1:T=r?b<=t:b<t;T?a=v+1:s=v}return oe(s,dl)}function Ko(e,t){for(var n=-1,r=e.length,a=0,s=[];++n<r;){var u=e[n],p=t?t(u):u;if(!n||!Pe(p,d)){var d=p;s[a++]=u===0?0:u}}return s}function qo(e){return typeof e=="number"?e:ve(e)?pn:+e}function ye(e){if(typeof e=="string")return e;if(R(e))return K(e,ye)+"";if(ve(e))return So?So.call(e):"";var t=e+"";return t=="0"&&1/e==-ct?"-0":t}function ot(e,t,n){var r=-1,a=bn,s=e.length,u=!0,p=[],d=p;if(n)u=!1,a=Cr;else if(s>=x){var y=t?null:Cc(e);if(y)return xn(y);u=!1,a=Zt,d=new gt}else d=t?[]:p;e:for(;++r<s;){var v=e[r],b=t?t(v):v;if(v=n||v!==0?v:0,u&&b===b){for(var C=d.length;C--;)if(d[C]===b)continue e;t&&d.push(b),p.push(v)}else a(d,b,n)||(d!==p&&d.push(b),p.push(v))}return p}function Jr(e,t){return t=at(t,e),e=_a(e,t),e==null||delete e[Ne(Ae(t))]}function Yo(e,t,n,r){return on(e,t,n(mt(e,t)),r)}function Nn(e,t,n,r){for(var a=e.length,s=r?a:-1;(r?s--:++s<a)&&t(e[s],s,e););return n?Ie(e,r?0:s,r?s+1:a):Ie(e,r?s+1:0,r?a:s)}function Zo(e,t){var n=e;return n instanceof W&&(n=n.value()),Sr(t,function(r,a){return a.func.apply(a.thisArg,tt([r],a.args))},n)}function Xr(e,t,n){var r=e.length;if(r<2)return r?ot(e[0]):[];for(var a=-1,s=g(r);++a<r;)for(var u=e[a],p=-1;++p<r;)p!=a&&(s[a]=tn(s[a]||u,e[p],t,n));return ot(ie(s,1),t,n)}function Jo(e,t,n){for(var r=-1,a=e.length,s=t.length,u={};++r<a;){var p=r<s?t[r]:i;n(u,e[r],p)}return u}function Qr(e){return X(e)?e:[]}function Vr(e){return typeof e=="function"?e:de}function at(e,t){return R(e)?e:li(e,t)?[e]:Sa(U(e))}var dc=P;function lt(e,t,n){var r=e.length;return n=n===i?r:n,!t&&n>=r?e:Ie(e,t,n)}var Xo=eu||function(e){return re.clearTimeout(e)};function Qo(e,t){if(t)return e.slice();var n=e.length,r=vo?vo(n):new e.constructor(n);return e.copy(r),r}function jr(e){var t=new e.constructor(e.byteLength);return new In(t).set(new In(e)),t}function gc(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function hc(e){var t=new e.constructor(e.source,Di.exec(e));return t.lastIndex=e.lastIndex,t}function mc(e){return jt?G(jt.call(e)):{}}function Vo(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var n=e!==i,r=e===null,a=e===e,s=ve(e),u=t!==i,p=t===null,d=t===t,y=ve(t);if(!p&&!y&&!s&&e>t||s&&u&&d&&!p&&!y||r&&u&&d||!n&&d||!a)return 1;if(!r&&!s&&!y&&e<t||y&&n&&a&&!r&&!s||p&&n&&a||!u&&a||!d)return-1}return 0}function yc(e,t,n){for(var r=-1,a=e.criteria,s=t.criteria,u=a.length,p=n.length;++r<u;){var d=jo(a[r],s[r]);if(d){if(r>=p)return d;var y=n[r];return d*(y=="desc"?-1:1)}}return e.index-t.index}function ea(e,t,n,r){for(var a=-1,s=e.length,u=n.length,p=-1,d=t.length,y=ee(s-u,0),v=g(d+y),b=!r;++p<d;)v[p]=t[p];for(;++a<u;)(b||a<s)&&(v[n[a]]=e[a]);for(;y--;)v[p++]=e[a++];return v}function ta(e,t,n,r){for(var a=-1,s=e.length,u=-1,p=n.length,d=-1,y=t.length,v=ee(s-p,0),b=g(v+y),C=!r;++a<v;)b[a]=e[a];for(var B=a;++d<y;)b[B+d]=t[d];for(;++u<p;)(C||a<s)&&(b[B+n[u]]=e[a++]);return b}function ce(e,t){var n=-1,r=e.length;for(t||(t=g(r));++n<r;)t[n]=e[n];return t}function Ue(e,t,n,r){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var p=t[s],d=r?r(n[p],e[p],p,n,e):i;d===i&&(d=e[p]),a?qe(n,p,d):en(n,p,d)}return n}function vc(e,t){return Ue(e,ai(e),t)}function bc(e,t){return Ue(e,ga(e),t)}function Gn(e,t){return function(n,r){var a=R(n)?Ss:Nu,s=t?t():{};return a(n,e,I(r,2),s)}}function Mt(e){return P(function(t,n){var r=-1,a=n.length,s=a>1?n[a-1]:i,u=a>2?n[2]:i;for(s=e.length>3&&typeof s=="function"?(a--,s):i,u&&se(n[0],n[1],u)&&(s=a<3?i:s,a=1),t=G(t);++r<a;){var p=n[r];p&&e(t,p,r,s)}return t})}function na(e,t){return function(n,r){if(n==null)return n;if(!pe(n))return e(n,r);for(var a=n.length,s=t?a:-1,u=G(n);(t?s--:++s<a)&&r(u[s],s,u)!==!1;);return n}}function ra(e){return function(t,n,r){for(var a=-1,s=G(t),u=r(t),p=u.length;p--;){var d=u[e?p:++a];if(n(s[d],d,s)===!1)break}return t}}function _c(e,t,n){var r=t&xe,a=an(e);function s(){var u=this&&this!==re&&this instanceof s?a:e;return u.apply(r?n:this,arguments)}return s}function ia(e){return function(t){t=U(t);var n=At(t)?Ee(t):i,r=n?n[0]:t.charAt(0),a=n?lt(n,1).join(""):t.slice(1);return r[e]()+a}}function Wt(e){return function(t){return Sr(nl(tl(t).replace(cs,"")),e,"")}}function an(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=Pt(e.prototype),r=e.apply(n,t);return Y(r)?r:n}}function xc(e,t,n){var r=an(e);function a(){for(var s=arguments.length,u=g(s),p=s,d=Ht(a);p--;)u[p]=arguments[p];var y=s<3&&u[0]!==d&&u[s-1]!==d?[]:nt(u,d);if(s-=y.length,s<n)return ua(e,t,zn,a.placeholder,i,u,y,i,i,n-s);var v=this&&this!==re&&this instanceof a?r:e;return he(v,this,u)}return a}function oa(e){return function(t,n,r){var a=G(t);if(!pe(t)){var s=I(n,3);t=te(t),n=function(p){return s(a[p],p,a)}}var u=e(t,n,r);return u>-1?a[s?t[u]:u]:i}}function aa(e){return Ze(function(t){var n=t.length,r=n,a=Le.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if(typeof s!="function")throw new Se(w);if(a&&!u&&Yn(s)=="wrapper")var u=new Le([],!0)}for(r=u?r:n;++r<n;){s=t[r];var p=Yn(s),d=p=="wrapper"?ii(s):i;d&&si(d[0])&&d[1]==(Ge|We|He|Ut)&&!d[4].length&&d[9]==1?u=u[Yn(d[0])].apply(u,d[3]):u=s.length==1&&si(s)?u[p]():u.thru(s)}return function(){var y=arguments,v=y[0];if(u&&y.length==1&&R(v))return u.plant(v).value();for(var b=0,C=n?t[b].apply(this,y):v;++b<n;)C=t[b].call(this,C);return C}})}function zn(e,t,n,r,a,s,u,p,d,y){var v=t&Ge,b=t&xe,C=t&ut,B=t&(We|wt),A=t&ir,D=C?i:an(e);function T(){for(var M=arguments.length,H=g(M),be=M;be--;)H[be]=arguments[be];if(B)var ue=Ht(T),_e=Ds(H,ue);if(r&&(H=ea(H,r,a,B)),s&&(H=ta(H,s,u,B)),M-=_e,B&&M<y){var Q=nt(H,ue);return ua(e,t,zn,T.placeholder,n,H,Q,p,d,y-M)}var Me=b?n:this,Ve=C?Me[e]:e;return M=H.length,p?H=Nc(H,p):A&&M>1&&H.reverse(),v&&d<M&&(H.length=d),this&&this!==re&&this instanceof T&&(Ve=D||an(Ve)),Ve.apply(Me,H)}return T}function la(e,t){return function(n,r){return Ju(n,e,t(r),{})}}function $n(e,t){return function(n,r){var a;if(n===i&&r===i)return t;if(n!==i&&(a=n),r!==i){if(a===i)return r;typeof n=="string"||typeof r=="string"?(n=ye(n),r=ye(r)):(n=qo(n),r=qo(r)),a=e(n,r)}return a}}function ei(e){return Ze(function(t){return t=K(t,me(I())),P(function(n){var r=this;return e(t,function(a){return he(a,r,n)})})})}function Kn(e,t){t=t===i?" ":ye(t);var n=t.length;if(n<2)return n?Yr(t,e):t;var r=Yr(t,Rn(e/Tt(t)));return At(t)?lt(Ee(r),0,e).join(""):r.slice(0,e)}function wc(e,t,n,r){var a=t&xe,s=an(e);function u(){for(var p=-1,d=arguments.length,y=-1,v=r.length,b=g(v+d),C=this&&this!==re&&this instanceof u?s:e;++y<v;)b[y]=r[y];for(;d--;)b[y++]=arguments[++p];return he(C,a?n:this,b)}return u}function sa(e){return function(t,n,r){return r&&typeof r!="number"&&se(t,n,r)&&(n=r=i),t=Qe(t),n===i?(n=t,t=0):n=Qe(n),r=r===i?t<n?1:-1:Qe(r),lc(t,n,r,e)}}function qn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Te(t),n=Te(n)),e(t,n)}}function ua(e,t,n,r,a,s,u,p,d,y){var v=t&We,b=v?u:i,C=v?i:u,B=v?s:i,A=v?i:s;t|=v?He:Ct,t&=~(v?Ct:He),t&Bi||(t&=~(xe|ut));var D=[e,t,a,B,b,A,C,p,d,y],T=n.apply(i,D);return si(e)&&xa(T,D),T.placeholder=r,wa(T,e,t)}function ti(e){var t=j[e];return function(n,r){if(n=Te(n),r=r==null?0:oe(E(r),292),r&&wo(n)){var a=(U(n)+"e").split("e"),s=t(a[0]+"e"+(+a[1]+r));return a=(U(s)+"e").split("e"),+(a[0]+"e"+(+a[1]-r))}return t(n)}}var Cc=Et&&1/xn(new Et([,-0]))[1]==ct?function(e){return new Et(e)}:Ci;function ca(e){return function(t){var n=ae(t);return n==Fe?Rr(t):n==Re?Us(t):Es(t,e(t))}}function Ye(e,t,n,r,a,s,u,p){var d=t&ut;if(!d&&typeof e!="function")throw new Se(w);var y=r?r.length:0;if(y||(t&=~(He|Ct),r=a=i),u=u===i?u:ee(E(u),0),p=p===i?p:E(p),y-=a?a.length:0,t&Ct){var v=r,b=a;r=a=i}var C=d?i:ii(e),B=[e,t,n,r,a,v,b,s,u,p];if(C&&Oc(B,C),e=B[0],t=B[1],n=B[2],r=B[3],a=B[4],p=B[9]=B[9]===i?d?0:e.length:ee(B[9]-y,0),!p&&t&(We|wt)&&(t&=~(We|wt)),!t||t==xe)var A=_c(e,t,n);else t==We||t==wt?A=xc(e,t,p):(t==He||t==(xe|He))&&!a.length?A=wc(e,t,n,r):A=zn.apply(i,B);var D=C?$o:xa;return wa(D(A,B),e,t)}function pa(e,t,n,r){return e===i||Pe(e,Rt[n])&&!N.call(r,n)?t:e}function fa(e,t,n,r,a,s){return Y(e)&&Y(t)&&(s.set(t,e),kn(e,t,i,fa,s),s.delete(t)),e}function Sc(e){return un(e)?i:e}function da(e,t,n,r,a,s){var u=n&xt,p=e.length,d=t.length;if(p!=d&&!(u&&d>p))return!1;var y=s.get(e),v=s.get(t);if(y&&v)return y==t&&v==e;var b=-1,C=!0,B=n&cn?new gt:i;for(s.set(e,t),s.set(t,e);++b<p;){var A=e[b],D=t[b];if(r)var T=u?r(D,A,b,t,e,s):r(A,D,b,e,t,s);if(T!==i){if(T)continue;C=!1;break}if(B){if(!Lr(t,function(M,H){if(!Zt(B,H)&&(A===M||a(A,M,n,r,s)))return B.push(H)})){C=!1;break}}else if(!(A===D||a(A,D,n,r,s))){C=!1;break}}return s.delete(e),s.delete(t),C}function Lc(e,t,n,r,a,s,u){switch(n){case Lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Yt:return!(e.byteLength!=t.byteLength||!s(new In(e),new In(t)));case Nt:case Gt:case zt:return Pe(+e,+t);case dn:return e.name==t.name&&e.message==t.message;case $t:case Kt:return e==t+"";case Fe:var p=Rr;case Re:var d=r&xt;if(p||(p=xn),e.size!=t.size&&!d)return!1;var y=u.get(e);if(y)return y==t;r|=cn,u.set(e,t);var v=da(p(e),p(t),r,a,s,u);return u.delete(e),v;case hn:if(jt)return jt.call(e)==jt.call(t)}return!1}function Bc(e,t,n,r,a,s){var u=n&xt,p=ni(e),d=p.length,y=ni(t),v=y.length;if(d!=v&&!u)return!1;for(var b=d;b--;){var C=p[b];if(!(u?C in t:N.call(t,C)))return!1}var B=s.get(e),A=s.get(t);if(B&&A)return B==t&&A==e;var D=!0;s.set(e,t),s.set(t,e);for(var T=u;++b<d;){C=p[b];var M=e[C],H=t[C];if(r)var be=u?r(H,M,C,t,e,s):r(M,H,C,e,t,s);if(!(be===i?M===H||a(M,H,n,r,s):be)){D=!1;break}T||(T=C=="constructor")}if(D&&!T){var ue=e.constructor,_e=t.constructor;ue!=_e&&"constructor"in e&&"constructor"in t&&!(typeof ue=="function"&&ue instanceof ue&&typeof _e=="function"&&_e instanceof _e)&&(D=!1)}return s.delete(e),s.delete(t),D}function Ze(e){return ci(ba(e,i,Aa),e+"")}function ni(e){return Do(e,te,ai)}function ri(e){return Do(e,fe,ga)}var ii=Dn?function(e){return Dn.get(e)}:Ci;function Yn(e){for(var t=e.name+"",n=Dt[t],r=N.call(Dt,t)?n.length:0;r--;){var a=n[r],s=a.func;if(s==null||s==e)return a.name}return t}function Ht(e){var t=N.call(l,"placeholder")?l:e;return t.placeholder}function I(){var e=l.iteratee||xi;return e=e===xi?Wo:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var n=e.__data__;return Pc(t)?n[typeof t=="string"?"string":"hash"]:n.map}function oi(e){for(var t=te(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,ya(a)]}return t}function yt(e,t){var n=Hs(e,t);return Mo(n)?n:i}function Ic(e){var t=N.call(e,ft),n=e[ft];try{e[ft]=i;var r=!0}catch{}var a=Ln.call(e);return r&&(t?e[ft]=n:delete e[ft]),a}var ai=Dr?function(e){return e==null?[]:(e=G(e),et(Dr(e),function(t){return _o.call(e,t)}))}:Si,ga=Dr?function(e){for(var t=[];e;)tt(t,ai(e)),e=An(e);return t}:Si,ae=le;(Pr&&ae(new Pr(new ArrayBuffer(1)))!=Lt||Xt&&ae(new Xt)!=Fe||Mr&&ae(Mr.resolve())!=Ti||Et&&ae(new Et)!=Re||Qt&&ae(new Qt)!=qt)&&(ae=function(e){var t=le(e),n=t==ze?e.constructor:i,r=n?vt(n):"";if(r)switch(r){case uu:return Lt;case cu:return Fe;case pu:return Ti;case fu:return Re;case du:return qt}return t});function Ac(e,t,n){for(var r=-1,a=n.length;++r<a;){var s=n[r],u=s.size;switch(s.type){case"drop":e+=u;break;case"dropRight":t-=u;break;case"take":t=oe(t,e+u);break;case"takeRight":e=ee(e,t-u);break}}return{start:e,end:t}}function Tc(e){var t=e.match(Ml);return t?t[1].split(Wl):[]}function ha(e,t,n){t=at(t,e);for(var r=-1,a=t.length,s=!1;++r<a;){var u=Ne(t[r]);if(!(s=e!=null&&n(e,u)))break;e=e[u]}return s||++r!=a?s:(a=e==null?0:e.length,!!a&&tr(a)&&Je(u,a)&&(R(e)||bt(e)))}function Fc(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&N.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ma(e){return typeof e.constructor=="function"&&!ln(e)?Pt(An(e)):{}}function Rc(e,t,n){var r=e.constructor;switch(t){case Yt:return jr(e);case Nt:case Gt:return new r(+e);case Lt:return gc(e,n);case or:case ar:case lr:case sr:case ur:case cr:case pr:case fr:case dr:return Vo(e,n);case Fe:return new r;case zt:case Kt:return new r(e);case $t:return hc(e);case Re:return new r;case hn:return mc(e)}}function Ec(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(Pl,`{
9
9
  /* [wrapped with `+t+`] */
10
- `)}function Dc(e){return R(e)||bt(e)||!!(xo&&e&&e[xo])}function Je(e,t){var n=typeof e;return t=t==null?je: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 r=typeof t;return(r=="number"?pe(n)&&Je(t,n.length):r=="string"&&t in n)?Pe(n[t],e):!1}function li(e,t){if(R(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ve(e)?!0:Fl.test(e)||!Tl.test(e)||t!=null&&e in N(t)}function Pc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function si(e){var t=Yn(e),n=l[t];if(typeof n!="function"||!(t in W.prototype))return!1;if(e===n)return!0;var r=ii(n);return!!r&&e===r[0]}function Mc(e){return!!yo&&yo in e}var Wc=Cn?Xe:Li;function ln(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Rt;return e===n}function ya(e){return e===e&&!Y(e)}function va(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==i||e in N(n))}}function Hc(e){var t=jn(e,function(r){return n.size===ne&&n.clear(),r}),n=t.cache;return t}function Oc(e,t){var n=e[1],r=t[1],a=n|r,s=a<(xe|ut|Ne),u=r==Ne&&n==We||r==Ne&&n==Ut&&e[7].length<=t[8]||r==(Ne|Ut)&&t[7].length<=t[8]&&n==We;if(!(s||u))return e;r&xe&&(e[2]=t[2],a|=n&xe?0:Ii);var p=t[3];if(p){var d=e[3];e[3]=d?ea(d,p,t[4]):p,e[4]=d?nt(e[3],V):t[4]}return p=t[5],p&&(d=e[5],e[5]=d?ta(d,p,t[6]):p,e[6]=d?nt(e[5],V):t[6]),p=t[7],p&&(e[7]=p),r&Ne&&(e[8]=e[8]==null?t[8]:oe(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function kc(e){var t=[];if(e!=null)for(var n in N(e))t.push(n);return t}function Uc(e){return Ln.call(e)}function ba(e,t,n){return t=ee(t===i?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=ee(r.length-t,0),u=g(s);++a<s;)u[a]=r[t+a];a=-1;for(var p=g(t+1);++a<t;)p[a]=r[a];return p[t]=n(u),he(e,this,p)}}function _a(e,t){return t.length<2?e:mt(e,Be(t,0,-1))}function Gc(e,t){for(var n=e.length,r=oe(t.length,n),a=ce(e);r--;){var s=t[r];e[r]=Je(s,n)?a[s]:i}return e}function ui(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var xa=Ca($o),sn=nu||function(e,t){return re.setTimeout(e,t)},ci=Ca(cc);function wa(e,t,n){var r=t+"";return ci(e,Ec(r,Nc(Tc(r),n)))}function Ca(e){var t=0,n=0;return function(){var r=au(),a=ul-(r-n);if(n=r,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Jn(e,t){var n=-1,r=e.length,a=r-1;for(t=t===i?r:t;++n<t;){var s=qr(n,a),u=e[s];e[s]=e[n],e[n]=u}return e.length=t,e}var Sa=Hc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rl,function(n,r,a,s){t.push(a?s.replace(kl,"$1"):r||n)}),t});function Ge(e){if(typeof e=="string"||ve(e))return e;var t=e+"";return t=="0"&&1/e==-ct?"-0":t}function vt(e){if(e!=null){try{return Sn.call(e)}catch{}try{return e+""}catch{}}return""}function Nc(e,t){return Ce(hl,function(n){var r="_."+n[0];t&n[1]&&!bn(e,r)&&e.push(r)}),e.sort()}function La(e){if(e instanceof W)return e.clone();var t=new Le(e.__wrapped__,e.__chain__);return t.__actions__=ce(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function zc(e,t,n){(n?se(e,t,n):t===i)?t=1:t=ee(E(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var a=0,s=0,u=g(Rn(r/t));a<r;)u[s++]=Be(e,a,a+=t);return u}function $c(e){for(var t=-1,n=e==null?0:e.length,r=0,a=[];++t<n;){var s=e[t];s&&(a[r++]=s)}return a}function Kc(){var e=arguments.length;if(!e)return[];for(var t=g(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return tt(R(n)?ce(n):[n],ie(t,1))}var qc=P(function(e,t){return X(e)?tn(e,ie(t,1,X,!0)):[]}),Yc=P(function(e,t){var n=Ae(t);return X(n)&&(n=i),X(e)?tn(e,ie(t,1,X,!0),B(n,2)):[]}),Zc=P(function(e,t){var n=Ae(t);return X(n)&&(n=i),X(e)?tn(e,ie(t,1,X,!0),i,n):[]});function Jc(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===i?1:E(t),Be(e,t<0?0:t,r)):[]}function Xc(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===i?1:E(t),t=r-t,Be(e,0,t<0?0:t)):[]}function Qc(e,t){return e&&e.length?Gn(e,B(t,3),!0,!0):[]}function Vc(e,t){return e&&e.length?Gn(e,B(t,3),!0):[]}function jc(e,t,n,r){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&se(e,t,n)&&(n=0,r=a),Ku(e,t,n,r)):[]}function Ia(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:E(n);return a<0&&(a=ee(r+a,0)),_n(e,B(t,3),a)}function Ba(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return n!==i&&(a=E(n),a=n<0?ee(r+a,0):oe(a,r-1)),_n(e,B(t,3),a,!0)}function Aa(e){var t=e==null?0:e.length;return t?ie(e,1):[]}function ep(e){var t=e==null?0:e.length;return t?ie(e,ct):[]}function tp(e,t){var n=e==null?0:e.length;return n?(t=t===i?1:E(t),ie(e,t)):[]}function np(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r}function Ta(e){return e&&e.length?e[0]:i}function rp(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:E(n);return a<0&&(a=ee(r+a,0)),Bt(e,t,a)}function ip(e){var t=e==null?0:e.length;return t?Be(e,0,-1):[]}var op=P(function(e){var t=K(e,Qr);return t.length&&t[0]===e[0]?Gr(t):[]}),ap=P(function(e){var t=Ae(e),n=K(e,Qr);return t===Ae(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Gr(n,B(t,2)):[]}),lp=P(function(e){var t=Ae(e),n=K(e,Qr);return t=typeof t=="function"?t:i,t&&n.pop(),n.length&&n[0]===e[0]?Gr(n,i,t):[]});function sp(e,t){return e==null?"":iu.call(e,t)}function Ae(e){var t=e==null?0:e.length;return t?e[t-1]:i}function up(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=E(n),a=a<0?ee(r+a,0):oe(a,r-1)),t===t?Ns(e,t,a):_n(e,so,a,!0)}function cp(e,t){return e&&e.length?Uo(e,E(t)):i}var pp=P(Fa);function Fa(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}function fp(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,B(n,2)):e}function dp(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,i,n):e}var gp=Ze(function(e,t){var n=e==null?0:e.length,r=Hr(e,t);return zo(e,K(t,function(a){return Je(a,n)?+a:a}).sort(jo)),r});function hp(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,a=[],s=e.length;for(t=B(t,3);++r<s;){var u=e[r];t(u,r,e)&&(n.push(u),a.push(r))}return zo(e,a),n}function pi(e){return e==null?e:su.call(e)}function mp(e,t,n){var r=e==null?0:e.length;return r?(n&&typeof n!="number"&&se(e,t,n)?(t=0,n=r):(t=t==null?0:E(t),n=n===i?r:E(n)),Be(e,t,n)):[]}function yp(e,t){return Un(e,t)}function vp(e,t,n){return Zr(e,t,B(n,2))}function bp(e,t){var n=e==null?0:e.length;if(n){var r=Un(e,t);if(r<n&&Pe(e[r],t))return r}return-1}function _p(e,t){return Un(e,t,!0)}function xp(e,t,n){return Zr(e,t,B(n,2),!0)}function wp(e,t){var n=e==null?0:e.length;if(n){var r=Un(e,t,!0)-1;if(Pe(e[r],t))return r}return-1}function Cp(e){return e&&e.length?Ko(e):[]}function Sp(e,t){return e&&e.length?Ko(e,B(t,2)):[]}function Lp(e){var t=e==null?0:e.length;return t?Be(e,1,t):[]}function Ip(e,t,n){return e&&e.length?(t=n||t===i?1:E(t),Be(e,0,t<0?0:t)):[]}function Bp(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===i?1:E(t),t=r-t,Be(e,t<0?0:t,r)):[]}function Ap(e,t){return e&&e.length?Gn(e,B(t,3),!1,!0):[]}function Tp(e,t){return e&&e.length?Gn(e,B(t,3)):[]}var Fp=P(function(e){return ot(ie(e,1,X,!0))}),Rp=P(function(e){var t=Ae(e);return X(t)&&(t=i),ot(ie(e,1,X,!0),B(t,2))}),Ep=P(function(e){var t=Ae(e);return t=typeof t=="function"?t:i,ot(ie(e,1,X,!0),i,t)});function Dp(e){return e&&e.length?ot(e):[]}function Pp(e,t){return e&&e.length?ot(e,B(t,2)):[]}function Mp(e,t){return t=typeof t=="function"?t:i,e&&e.length?ot(e,i,t):[]}function fi(e){if(!(e&&e.length))return[];var t=0;return e=et(e,function(n){if(X(n))return t=ee(n.length,t),!0}),Tr(t,function(n){return K(e,Ir(n))})}function Ra(e,t){if(!(e&&e.length))return[];var n=fi(e);return t==null?n:K(n,function(r){return he(t,i,r)})}var Wp=P(function(e,t){return X(e)?tn(e,t):[]}),Hp=P(function(e){return Xr(et(e,X))}),Op=P(function(e){var t=Ae(e);return X(t)&&(t=i),Xr(et(e,X),B(t,2))}),kp=P(function(e){var t=Ae(e);return t=typeof t=="function"?t:i,Xr(et(e,X),i,t)}),Up=P(fi);function Gp(e,t){return Jo(e||[],t||[],en)}function Np(e,t){return Jo(e||[],t||[],on)}var zp=P(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 Ea(e){var t=l(e);return t.__chain__=!0,t}function $p(e,t){return t(e),e}function Xn(e,t){return t(e)}var Kp=Ze(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(s){return Hr(s,e)};return t>1||this.__actions__.length||!(r instanceof W)||!Je(n)?this.thru(a):(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Xn,args:[a],thisArg:i}),new Le(r,this.__chain__).thru(function(s){return t&&!s.length&&s.push(i),s}))});function qp(){return Ea(this)}function Yp(){return new Le(this.value(),this.__chain__)}function Zp(){this.__values__===i&&(this.__values__=qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jp(){return this}function Xp(e){for(var t,n=this;n instanceof Mn;){var r=La(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t}function Qp(){var e=this.__wrapped__;if(e instanceof W){var t=e;return this.__actions__.length&&(t=new W(this)),t=t.reverse(),t.__actions__.push({func:Xn,args:[pi],thisArg:i}),new Le(t,this.__chain__)}return this.thru(pi)}function Vp(){return Zo(this.__wrapped__,this.__actions__)}var jp=Nn(function(e,t,n){G.call(e,n)?++e[n]:qe(e,n,1)});function ef(e,t,n){var r=R(e)?ao:$u;return n&&se(e,t,n)&&(t=i),r(e,B(t,3))}function tf(e,t){var n=R(e)?et:Ro;return n(e,B(t,3))}var nf=oa(Ia),rf=oa(Ba);function of(e,t){return ie(Qn(e,t),1)}function af(e,t){return ie(Qn(e,t),ct)}function lf(e,t,n){return n=n===i?1:E(n),ie(Qn(e,t),n)}function Da(e,t){var n=R(e)?Ce:it;return n(e,B(t,3))}function Pa(e,t){var n=R(e)?Ls:Fo;return n(e,B(t,3))}var sf=Nn(function(e,t,n){G.call(e,n)?e[n].push(t):qe(e,n,[t])});function uf(e,t,n,r){e=pe(e)?e:kt(e),n=n&&!r?E(n):0;var a=e.length;return n<0&&(n=ee(a+n,0)),nr(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Bt(e,t,n)>-1}var cf=P(function(e,t,n){var r=-1,a=typeof t=="function",s=pe(e)?g(e.length):[];return it(e,function(u){s[++r]=a?he(t,u,n):nn(u,t,n)}),s}),pf=Nn(function(e,t,n){qe(e,n,t)});function Qn(e,t){var n=R(e)?K:Ho;return n(e,B(t,3))}function ff(e,t,n,r){return e==null?[]:(R(t)||(t=t==null?[]:[t]),n=r?i:n,R(n)||(n=n==null?[]:[n]),Go(e,t,n))}var df=Nn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function gf(e,t,n){var r=R(e)?Sr:co,a=arguments.length<3;return r(e,B(t,4),n,a,it)}function hf(e,t,n){var r=R(e)?Is:co,a=arguments.length<3;return r(e,B(t,4),n,a,Fo)}function mf(e,t){var n=R(e)?et:Ro;return n(e,er(B(t,3)))}function yf(e){var t=R(e)?Io:sc;return t(e)}function vf(e,t,n){(n?se(e,t,n):t===i)?t=1:t=E(t);var r=R(e)?ku:uc;return r(e,t)}function bf(e){var t=R(e)?Uu:pc;return t(e)}function _f(e){if(e==null)return 0;if(pe(e))return nr(e)?Tt(e):e.length;var t=ae(e);return t==Fe||t==Re?e.size:zr(e).length}function xf(e,t,n){var r=R(e)?Lr:fc;return n&&se(e,t,n)&&(t=i),r(e,B(t,3))}var wf=P(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,ie(t,1),[])}),Vn=tu||function(){return re.Date.now()};function Cf(e,t){if(typeof t!="function")throw new Se(w);return e=E(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,Ye(e,Ne,i,i,i,i,t)}function Wa(e,t){var n;if(typeof t!="function")throw new Se(w);return e=E(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var di=P(function(e,t,n){var r=xe;if(n.length){var a=nt(n,Ht(di));r|=He}return Ye(e,r,t,n,a)}),Ha=P(function(e,t,n){var r=xe|ut;if(n.length){var a=nt(n,Ht(Ha));r|=He}return Ye(t,r,e,n,a)});function Oa(e,t,n){t=n?i:t;var r=Ye(e,We,i,i,i,i,i,t);return r.placeholder=Oa.placeholder,r}function ka(e,t,n){t=n?i:t;var r=Ye(e,wt,i,i,i,i,i,t);return r.placeholder=ka.placeholder,r}function Ua(e,t,n){var r,a,s,u,p,d,y=0,v=!1,b=!1,C=!0;if(typeof e!="function")throw new Se(w);t=Te(t)||0,Y(n)&&(v=!!n.leading,b="maxWait"in n,s=b?ee(Te(n.maxWait)||0,t):s,C="trailing"in n?!!n.trailing:C);function I(Q){var Me=r,Ve=a;return r=a=i,y=Q,u=e.apply(Ve,Me),u}function A(Q){return y=Q,p=sn(M,t),v?I(Q):u}function D(Q){var Me=Q-d,Ve=Q-y,ol=t-Me;return b?oe(ol,s-Ve):ol}function T(Q){var Me=Q-d,Ve=Q-y;return d===i||Me>=t||Me<0||b&&Ve>=s}function M(){var Q=Vn();if(T(Q))return H(Q);p=sn(M,D(Q))}function H(Q){return p=i,C&&r?I(Q):(r=a=i,u)}function be(){p!==i&&Xo(p),y=0,r=d=a=p=i}function ue(){return p===i?u:H(Vn())}function _e(){var Q=Vn(),Me=T(Q);if(r=arguments,a=this,d=Q,Me){if(p===i)return A(d);if(b)return Xo(p),p=sn(M,t),I(d)}return p===i&&(p=sn(M,t)),u}return _e.cancel=be,_e.flush=ue,_e}var Sf=P(function(e,t){return To(e,1,t)}),Lf=P(function(e,t,n){return To(e,Te(t)||0,n)});function If(e){return Ye(e,ir)}function jn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Se(w);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],s=n.cache;if(s.has(a))return s.get(a);var u=e.apply(this,r);return n.cache=s.set(a,u)||s,u};return n.cache=new(jn.Cache||Ke),n}jn.Cache=Ke;function er(e){if(typeof e!="function")throw new Se(w);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 Bf(e){return Wa(2,e)}var Af=dc(function(e,t){t=t.length==1&&R(t[0])?K(t[0],me(B())):K(ie(t,1),me(B()));var n=t.length;return P(function(r){for(var a=-1,s=oe(r.length,n);++a<s;)r[a]=t[a].call(this,r[a]);return he(e,this,r)})}),gi=P(function(e,t){var n=nt(t,Ht(gi));return Ye(e,He,i,t,n)}),Ga=P(function(e,t){var n=nt(t,Ht(Ga));return Ye(e,Ct,i,t,n)}),Tf=Ze(function(e,t){return Ye(e,Ut,i,i,i,t)});function Ff(e,t){if(typeof e!="function")throw new Se(w);return t=t===i?t:E(t),P(e,t)}function Rf(e,t){if(typeof e!="function")throw new Se(w);return t=t==null?0:ee(E(t),0),P(function(n){var r=n[t],a=lt(n,0,t);return r&&tt(a,r),he(e,this,a)})}function Ef(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new Se(w);return Y(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Ua(e,t,{leading:r,maxWait:t,trailing:a})}function Df(e){return Ma(e,1)}function Pf(e,t){return gi(Vr(t),e)}function Mf(){if(!arguments.length)return[];var e=arguments[0];return R(e)?e:[e]}function Wf(e){return Ie(e,_t)}function Hf(e,t){return t=typeof t=="function"?t:i,Ie(e,_t,t)}function Of(e){return Ie(e,q|_t)}function kf(e,t){return t=typeof t=="function"?t:i,Ie(e,q|_t,t)}function Uf(e,t){return t==null||Ao(e,t,te(t))}function Pe(e,t){return e===t||e!==e&&t!==t}var Gf=qn(Ur),Nf=qn(function(e,t){return e>=t}),bt=Po(function(){return arguments}())?Po:function(e){return J(e)&&G.call(e,"callee")&&!_o.call(e,"callee")},R=g.isArray,zf=eo?me(eo):Xu;function pe(e){return e!=null&&tr(e.length)&&!Xe(e)}function X(e){return J(e)&&pe(e)}function $f(e){return e===!0||e===!1||J(e)&&le(e)==Gt}var st=ru||Li,Kf=to?me(to):Qu;function qf(e){return J(e)&&e.nodeType===1&&!un(e)}function Yf(e){if(e==null)return!0;if(pe(e)&&(R(e)||typeof e=="string"||typeof e.splice=="function"||st(e)||Ot(e)||bt(e)))return!e.length;var t=ae(e);if(t==Fe||t==Re)return!e.size;if(ln(e))return!zr(e).length;for(var n in e)if(G.call(e,n))return!1;return!0}function Zf(e,t){return rn(e,t)}function Jf(e,t,n){n=typeof n=="function"?n:i;var r=n?n(e,t):i;return r===i?rn(e,t,i,n):!!r}function hi(e){if(!J(e))return!1;var t=le(e);return t==dn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!un(e)}function Xf(e){return typeof e=="number"&&wo(e)}function Xe(e){if(!Y(e))return!1;var t=le(e);return t==gn||t==Ai||t==ml||t==bl}function Na(e){return typeof e=="number"&&e==E(e)}function tr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=je}function Y(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function J(e){return e!=null&&typeof e=="object"}var za=no?me(no):ju;function Qf(e,t){return e===t||Nr(e,t,oi(t))}function Vf(e,t,n){return n=typeof n=="function"?n:i,Nr(e,t,oi(t),n)}function jf(e){return $a(e)&&e!=+e}function ed(e){if(Wc(e))throw new F(S);return Mo(e)}function td(e){return e===null}function nd(e){return e==null}function $a(e){return typeof e=="number"||J(e)&&le(e)==zt}function un(e){if(!J(e)||le(e)!=ze)return!1;var t=An(e);if(t===null)return!0;var n=G.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Sn.call(n)==Qs}var mi=ro?me(ro):ec;function rd(e){return Na(e)&&e>=-je&&e<=je}var Ka=io?me(io):tc;function nr(e){return typeof e=="string"||!R(e)&&J(e)&&le(e)==Kt}function ve(e){return typeof e=="symbol"||J(e)&&le(e)==hn}var Ot=oo?me(oo):nc;function id(e){return e===i}function od(e){return J(e)&&ae(e)==qt}function ad(e){return J(e)&&le(e)==xl}var ld=qn($r),sd=qn(function(e,t){return e<=t});function qa(e){if(!e)return[];if(pe(e))return nr(e)?Ee(e):ce(e);if(Jt&&e[Jt])return ks(e[Jt]());var t=ae(e),n=t==Fe?Rr:t==Re?xn:kt;return n(e)}function Qe(e){if(!e)return e===0?e:0;if(e=Te(e),e===ct||e===-ct){var t=e<0?-1:1;return t*fl}return e===e?e:0}function E(e){var t=Qe(e),n=t%1;return t===t?n?t-n:t:0}function Ya(e){return e?ht(E(e),0,Oe):0}function Te(e){if(typeof e=="number")return e;if(ve(e))return pn;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=po(e);var n=Nl.test(e);return n||$l.test(e)?ws(e.slice(2),n?2:8):Gl.test(e)?pn:+e}function Za(e){return Ue(e,fe(e))}function ud(e){return e?ht(E(e),-je,je):e===0?e:0}function U(e){return e==null?"":ye(e)}var cd=Mt(function(e,t){if(ln(t)||pe(t)){Ue(t,te(t),e);return}for(var n in t)G.call(t,n)&&en(e,n,t[n])}),Ja=Mt(function(e,t){Ue(t,fe(t),e)}),rr=Mt(function(e,t,n,r){Ue(t,fe(t),e,r)}),pd=Mt(function(e,t,n,r){Ue(t,te(t),e,r)}),fd=Ze(Hr);function dd(e,t){var n=Pt(e);return t==null?n:Bo(n,t)}var gd=P(function(e,t){e=N(e);var n=-1,r=t.length,a=r>2?t[2]:i;for(a&&se(t[0],t[1],a)&&(r=1);++n<r;)for(var s=t[n],u=fe(s),p=-1,d=u.length;++p<d;){var y=u[p],v=e[y];(v===i||Pe(v,Rt[y])&&!G.call(e,y))&&(e[y]=s[y])}return e}),hd=P(function(e){return e.push(i,fa),he(Xa,i,e)});function md(e,t){return lo(e,B(t,3),ke)}function yd(e,t){return lo(e,B(t,3),kr)}function vd(e,t){return e==null?e:Or(e,B(t,3),fe)}function bd(e,t){return e==null?e:Eo(e,B(t,3),fe)}function _d(e,t){return e&&ke(e,B(t,3))}function xd(e,t){return e&&kr(e,B(t,3))}function wd(e){return e==null?[]:On(e,te(e))}function Cd(e){return e==null?[]:On(e,fe(e))}function yi(e,t,n){var r=e==null?i:mt(e,t);return r===i?n:r}function Sd(e,t){return e!=null&&ha(e,t,qu)}function vi(e,t){return e!=null&&ha(e,t,Yu)}var Ld=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),e[t]=n},_i(de)),Id=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),G.call(e,t)?e[t].push(n):e[t]=[n]},B),Bd=P(nn);function te(e){return pe(e)?Lo(e):zr(e)}function fe(e){return pe(e)?Lo(e,!0):rc(e)}function Ad(e,t){var n={};return t=B(t,3),ke(e,function(r,a,s){qe(n,t(r,a,s),r)}),n}function Td(e,t){var n={};return t=B(t,3),ke(e,function(r,a,s){qe(n,a,t(r,a,s))}),n}var Fd=Mt(function(e,t,n){kn(e,t,n)}),Xa=Mt(function(e,t,n,r){kn(e,t,n,r)}),Rd=Ze(function(e,t){var n={};if(e==null)return n;var r=!1;t=K(t,function(s){return s=at(s,e),r||(r=s.length>1),s}),Ue(e,ri(e),n),r&&(n=Ie(n,q|ge|_t,Sc));for(var a=t.length;a--;)Jr(n,t[a]);return n});function Ed(e,t){return Qa(e,er(B(t)))}var Dd=Ze(function(e,t){return e==null?{}:oc(e,t)});function Qa(e,t){if(e==null)return{};var n=K(ri(e),function(r){return[r]});return t=B(t),No(e,n,function(r,a){return t(r,a[0])})}function Pd(e,t,n){t=at(t,e);var r=-1,a=t.length;for(a||(a=1,e=i);++r<a;){var s=e==null?i:e[Ge(t[r])];s===i&&(r=a,s=n),e=Xe(s)?s.call(e):s}return e}function Md(e,t,n){return e==null?e:on(e,t,n)}function Wd(e,t,n,r){return r=typeof r=="function"?r:i,e==null?e:on(e,t,n,r)}var Va=ca(te),ja=ca(fe);function Hd(e,t,n){var r=R(e),a=r||st(e)||Ot(e);if(t=B(t,4),n==null){var s=e&&e.constructor;a?n=r?new s:[]:Y(e)?n=Xe(s)?Pt(An(e)):{}:n={}}return(a?Ce:ke)(e,function(u,p,d){return t(n,u,p,d)}),n}function Od(e,t){return e==null?!0:Jr(e,t)}function kd(e,t,n){return e==null?e:Yo(e,t,Vr(n))}function Ud(e,t,n,r){return r=typeof r=="function"?r:i,e==null?e:Yo(e,t,Vr(n),r)}function kt(e){return e==null?[]:Fr(e,te(e))}function Gd(e){return e==null?[]:Fr(e,fe(e))}function Nd(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Te(n),n=n===n?n:0),t!==i&&(t=Te(t),t=t===t?t:0),ht(Te(e),t,n)}function zd(e,t,n){return t=Qe(t),n===i?(n=t,t=0):n=Qe(n),e=Te(e),Zu(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=Qe(e),t===i?(t=e,e=0):t=Qe(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=Co();return oe(e+a*(t-e+xs("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Kd=Wt(function(e,t,n){return t=t.toLowerCase(),e+(n?el(t):t)});function el(e){return bi(U(e).toLowerCase())}function tl(e){return e=U(e),e&&e.replace(ql,Ps).replace(ps,"")}function qd(e,t,n){e=U(e),t=ye(t);var r=e.length;n=n===i?r:ht(E(n),0,r);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Yd(e){return e=U(e),e&&Il.test(e)?e.replace(Ri,Ms):e}function Zd(e){return e=U(e),e&&El.test(e)?e.replace(gr,"\\$&"):e}var Jd=Wt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Xd=Wt(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Qd=ia("toLowerCase");function Vd(e,t,n){e=U(e),t=E(t);var r=t?Tt(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Kn(En(a),n)+e+Kn(Rn(a),n)}function jd(e,t,n){e=U(e),t=E(t);var r=t?Tt(e):0;return t&&r<t?e+Kn(t-r,n):e}function eg(e,t,n){e=U(e),t=E(t);var r=t?Tt(e):0;return t&&r<t?Kn(t-r,n)+e:e}function tg(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(U(e).replace(hr,""),t||0)}function ng(e,t,n){return(n?se(e,t,n):t===i)?t=1:t=E(t),Yr(U(e),t)}function rg(){var e=arguments,t=U(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ig=Wt(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=U(e),e&&(typeof t=="string"||t!=null&&!mi(t))&&(t=ye(t),!t&&At(e))?lt(Ee(e),0,n):e.split(t,n)):[]}var ag=Wt(function(e,t,n){return e+(n?" ":"")+bi(t)});function lg(e,t,n){return e=U(e),n=n==null?0:ht(E(n),0,e.length),t=ye(t),e.slice(n,n+t.length)==t}function sg(e,t,n){var r=l.templateSettings;n&&se(e,t,n)&&(t=i),e=U(e),t=rr({},t,r,pa);var a=rr({},t.imports,r.imports,pa),s=te(a),u=Fr(a,s),p,d,y=0,v=t.interpolate||mn,b="__p += '",C=Er((t.escape||mn).source+"|"+v.source+"|"+(v===Ei?Ul:mn).source+"|"+(t.evaluate||mn).source+"|$","g"),I="//# sourceURL="+(G.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ms+"]")+`
10
+ `)}function Dc(e){return R(e)||bt(e)||!!(xo&&e&&e[xo])}function Je(e,t){var n=typeof e;return t=t==null?je: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 r=typeof t;return(r=="number"?pe(n)&&Je(t,n.length):r=="string"&&t in n)?Pe(n[t],e):!1}function li(e,t){if(R(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ve(e)?!0:Fl.test(e)||!Tl.test(e)||t!=null&&e in G(t)}function Pc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function si(e){var t=Yn(e),n=l[t];if(typeof n!="function"||!(t in W.prototype))return!1;if(e===n)return!0;var r=ii(n);return!!r&&e===r[0]}function Mc(e){return!!yo&&yo in e}var Wc=Cn?Xe:Li;function ln(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Rt;return e===n}function ya(e){return e===e&&!Y(e)}function va(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==i||e in G(n))}}function Hc(e){var t=jn(e,function(r){return n.size===ne&&n.clear(),r}),n=t.cache;return t}function Oc(e,t){var n=e[1],r=t[1],a=n|r,s=a<(xe|ut|Ge),u=r==Ge&&n==We||r==Ge&&n==Ut&&e[7].length<=t[8]||r==(Ge|Ut)&&t[7].length<=t[8]&&n==We;if(!(s||u))return e;r&xe&&(e[2]=t[2],a|=n&xe?0:Bi);var p=t[3];if(p){var d=e[3];e[3]=d?ea(d,p,t[4]):p,e[4]=d?nt(e[3],V):t[4]}return p=t[5],p&&(d=e[5],e[5]=d?ta(d,p,t[6]):p,e[6]=d?nt(e[5],V):t[6]),p=t[7],p&&(e[7]=p),r&Ge&&(e[8]=e[8]==null?t[8]:oe(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function kc(e){var t=[];if(e!=null)for(var n in G(e))t.push(n);return t}function Uc(e){return Ln.call(e)}function ba(e,t,n){return t=ee(t===i?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=ee(r.length-t,0),u=g(s);++a<s;)u[a]=r[t+a];a=-1;for(var p=g(t+1);++a<t;)p[a]=r[a];return p[t]=n(u),he(e,this,p)}}function _a(e,t){return t.length<2?e:mt(e,Ie(t,0,-1))}function Nc(e,t){for(var n=e.length,r=oe(t.length,n),a=ce(e);r--;){var s=t[r];e[r]=Je(s,n)?a[s]:i}return e}function ui(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var xa=Ca($o),sn=nu||function(e,t){return re.setTimeout(e,t)},ci=Ca(cc);function wa(e,t,n){var r=t+"";return ci(e,Ec(r,Gc(Tc(r),n)))}function Ca(e){var t=0,n=0;return function(){var r=au(),a=ul-(r-n);if(n=r,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(i,arguments)}}function Jn(e,t){var n=-1,r=e.length,a=r-1;for(t=t===i?r:t;++n<t;){var s=qr(n,a),u=e[s];e[s]=e[n],e[n]=u}return e.length=t,e}var Sa=Hc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rl,function(n,r,a,s){t.push(a?s.replace(kl,"$1"):r||n)}),t});function Ne(e){if(typeof e=="string"||ve(e))return e;var t=e+"";return t=="0"&&1/e==-ct?"-0":t}function vt(e){if(e!=null){try{return Sn.call(e)}catch{}try{return e+""}catch{}}return""}function Gc(e,t){return Ce(hl,function(n){var r="_."+n[0];t&n[1]&&!bn(e,r)&&e.push(r)}),e.sort()}function La(e){if(e instanceof W)return e.clone();var t=new Le(e.__wrapped__,e.__chain__);return t.__actions__=ce(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function zc(e,t,n){(n?se(e,t,n):t===i)?t=1:t=ee(E(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var a=0,s=0,u=g(Rn(r/t));a<r;)u[s++]=Ie(e,a,a+=t);return u}function $c(e){for(var t=-1,n=e==null?0:e.length,r=0,a=[];++t<n;){var s=e[t];s&&(a[r++]=s)}return a}function Kc(){var e=arguments.length;if(!e)return[];for(var t=g(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return tt(R(n)?ce(n):[n],ie(t,1))}var qc=P(function(e,t){return X(e)?tn(e,ie(t,1,X,!0)):[]}),Yc=P(function(e,t){var n=Ae(t);return X(n)&&(n=i),X(e)?tn(e,ie(t,1,X,!0),I(n,2)):[]}),Zc=P(function(e,t){var n=Ae(t);return X(n)&&(n=i),X(e)?tn(e,ie(t,1,X,!0),i,n):[]});function Jc(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===i?1:E(t),Ie(e,t<0?0:t,r)):[]}function Xc(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===i?1:E(t),t=r-t,Ie(e,0,t<0?0:t)):[]}function Qc(e,t){return e&&e.length?Nn(e,I(t,3),!0,!0):[]}function Vc(e,t){return e&&e.length?Nn(e,I(t,3),!0):[]}function jc(e,t,n,r){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&se(e,t,n)&&(n=0,r=a),Ku(e,t,n,r)):[]}function Ba(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:E(n);return a<0&&(a=ee(r+a,0)),_n(e,I(t,3),a)}function Ia(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r-1;return n!==i&&(a=E(n),a=n<0?ee(r+a,0):oe(a,r-1)),_n(e,I(t,3),a,!0)}function Aa(e){var t=e==null?0:e.length;return t?ie(e,1):[]}function ep(e){var t=e==null?0:e.length;return t?ie(e,ct):[]}function tp(e,t){var n=e==null?0:e.length;return n?(t=t===i?1:E(t),ie(e,t)):[]}function np(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var a=e[t];r[a[0]]=a[1]}return r}function Ta(e){return e&&e.length?e[0]:i}function rp(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:E(n);return a<0&&(a=ee(r+a,0)),It(e,t,a)}function ip(e){var t=e==null?0:e.length;return t?Ie(e,0,-1):[]}var op=P(function(e){var t=K(e,Qr);return t.length&&t[0]===e[0]?Nr(t):[]}),ap=P(function(e){var t=Ae(e),n=K(e,Qr);return t===Ae(n)?t=i:n.pop(),n.length&&n[0]===e[0]?Nr(n,I(t,2)):[]}),lp=P(function(e){var t=Ae(e),n=K(e,Qr);return t=typeof t=="function"?t:i,t&&n.pop(),n.length&&n[0]===e[0]?Nr(n,i,t):[]});function sp(e,t){return e==null?"":iu.call(e,t)}function Ae(e){var t=e==null?0:e.length;return t?e[t-1]:i}function up(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=r;return n!==i&&(a=E(n),a=a<0?ee(r+a,0):oe(a,r-1)),t===t?Gs(e,t,a):_n(e,so,a,!0)}function cp(e,t){return e&&e.length?Uo(e,E(t)):i}var pp=P(Fa);function Fa(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}function fp(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,I(n,2)):e}function dp(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,i,n):e}var gp=Ze(function(e,t){var n=e==null?0:e.length,r=Hr(e,t);return zo(e,K(t,function(a){return Je(a,n)?+a:a}).sort(jo)),r});function hp(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,a=[],s=e.length;for(t=I(t,3);++r<s;){var u=e[r];t(u,r,e)&&(n.push(u),a.push(r))}return zo(e,a),n}function pi(e){return e==null?e:su.call(e)}function mp(e,t,n){var r=e==null?0:e.length;return r?(n&&typeof n!="number"&&se(e,t,n)?(t=0,n=r):(t=t==null?0:E(t),n=n===i?r:E(n)),Ie(e,t,n)):[]}function yp(e,t){return Un(e,t)}function vp(e,t,n){return Zr(e,t,I(n,2))}function bp(e,t){var n=e==null?0:e.length;if(n){var r=Un(e,t);if(r<n&&Pe(e[r],t))return r}return-1}function _p(e,t){return Un(e,t,!0)}function xp(e,t,n){return Zr(e,t,I(n,2),!0)}function wp(e,t){var n=e==null?0:e.length;if(n){var r=Un(e,t,!0)-1;if(Pe(e[r],t))return r}return-1}function Cp(e){return e&&e.length?Ko(e):[]}function Sp(e,t){return e&&e.length?Ko(e,I(t,2)):[]}function Lp(e){var t=e==null?0:e.length;return t?Ie(e,1,t):[]}function Bp(e,t,n){return e&&e.length?(t=n||t===i?1:E(t),Ie(e,0,t<0?0:t)):[]}function Ip(e,t,n){var r=e==null?0:e.length;return r?(t=n||t===i?1:E(t),t=r-t,Ie(e,t<0?0:t,r)):[]}function Ap(e,t){return e&&e.length?Nn(e,I(t,3),!1,!0):[]}function Tp(e,t){return e&&e.length?Nn(e,I(t,3)):[]}var Fp=P(function(e){return ot(ie(e,1,X,!0))}),Rp=P(function(e){var t=Ae(e);return X(t)&&(t=i),ot(ie(e,1,X,!0),I(t,2))}),Ep=P(function(e){var t=Ae(e);return t=typeof t=="function"?t:i,ot(ie(e,1,X,!0),i,t)});function Dp(e){return e&&e.length?ot(e):[]}function Pp(e,t){return e&&e.length?ot(e,I(t,2)):[]}function Mp(e,t){return t=typeof t=="function"?t:i,e&&e.length?ot(e,i,t):[]}function fi(e){if(!(e&&e.length))return[];var t=0;return e=et(e,function(n){if(X(n))return t=ee(n.length,t),!0}),Tr(t,function(n){return K(e,Br(n))})}function Ra(e,t){if(!(e&&e.length))return[];var n=fi(e);return t==null?n:K(n,function(r){return he(t,i,r)})}var Wp=P(function(e,t){return X(e)?tn(e,t):[]}),Hp=P(function(e){return Xr(et(e,X))}),Op=P(function(e){var t=Ae(e);return X(t)&&(t=i),Xr(et(e,X),I(t,2))}),kp=P(function(e){var t=Ae(e);return t=typeof t=="function"?t:i,Xr(et(e,X),i,t)}),Up=P(fi);function Np(e,t){return Jo(e||[],t||[],en)}function Gp(e,t){return Jo(e||[],t||[],on)}var zp=P(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 Ea(e){var t=l(e);return t.__chain__=!0,t}function $p(e,t){return t(e),e}function Xn(e,t){return t(e)}var Kp=Ze(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,a=function(s){return Hr(s,e)};return t>1||this.__actions__.length||!(r instanceof W)||!Je(n)?this.thru(a):(r=r.slice(n,+n+(t?1:0)),r.__actions__.push({func:Xn,args:[a],thisArg:i}),new Le(r,this.__chain__).thru(function(s){return t&&!s.length&&s.push(i),s}))});function qp(){return Ea(this)}function Yp(){return new Le(this.value(),this.__chain__)}function Zp(){this.__values__===i&&(this.__values__=qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?i:this.__values__[this.__index__++];return{done:e,value:t}}function Jp(){return this}function Xp(e){for(var t,n=this;n instanceof Mn;){var r=La(n);r.__index__=0,r.__values__=i,t?a.__wrapped__=r:t=r;var a=r;n=n.__wrapped__}return a.__wrapped__=e,t}function Qp(){var e=this.__wrapped__;if(e instanceof W){var t=e;return this.__actions__.length&&(t=new W(this)),t=t.reverse(),t.__actions__.push({func:Xn,args:[pi],thisArg:i}),new Le(t,this.__chain__)}return this.thru(pi)}function Vp(){return Zo(this.__wrapped__,this.__actions__)}var jp=Gn(function(e,t,n){N.call(e,n)?++e[n]:qe(e,n,1)});function ef(e,t,n){var r=R(e)?ao:$u;return n&&se(e,t,n)&&(t=i),r(e,I(t,3))}function tf(e,t){var n=R(e)?et:Ro;return n(e,I(t,3))}var nf=oa(Ba),rf=oa(Ia);function of(e,t){return ie(Qn(e,t),1)}function af(e,t){return ie(Qn(e,t),ct)}function lf(e,t,n){return n=n===i?1:E(n),ie(Qn(e,t),n)}function Da(e,t){var n=R(e)?Ce:it;return n(e,I(t,3))}function Pa(e,t){var n=R(e)?Ls:Fo;return n(e,I(t,3))}var sf=Gn(function(e,t,n){N.call(e,n)?e[n].push(t):qe(e,n,[t])});function uf(e,t,n,r){e=pe(e)?e:kt(e),n=n&&!r?E(n):0;var a=e.length;return n<0&&(n=ee(a+n,0)),nr(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&It(e,t,n)>-1}var cf=P(function(e,t,n){var r=-1,a=typeof t=="function",s=pe(e)?g(e.length):[];return it(e,function(u){s[++r]=a?he(t,u,n):nn(u,t,n)}),s}),pf=Gn(function(e,t,n){qe(e,n,t)});function Qn(e,t){var n=R(e)?K:Ho;return n(e,I(t,3))}function ff(e,t,n,r){return e==null?[]:(R(t)||(t=t==null?[]:[t]),n=r?i:n,R(n)||(n=n==null?[]:[n]),No(e,t,n))}var df=Gn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function gf(e,t,n){var r=R(e)?Sr:co,a=arguments.length<3;return r(e,I(t,4),n,a,it)}function hf(e,t,n){var r=R(e)?Bs:co,a=arguments.length<3;return r(e,I(t,4),n,a,Fo)}function mf(e,t){var n=R(e)?et:Ro;return n(e,er(I(t,3)))}function yf(e){var t=R(e)?Bo:sc;return t(e)}function vf(e,t,n){(n?se(e,t,n):t===i)?t=1:t=E(t);var r=R(e)?ku:uc;return r(e,t)}function bf(e){var t=R(e)?Uu:pc;return t(e)}function _f(e){if(e==null)return 0;if(pe(e))return nr(e)?Tt(e):e.length;var t=ae(e);return t==Fe||t==Re?e.size:zr(e).length}function xf(e,t,n){var r=R(e)?Lr:fc;return n&&se(e,t,n)&&(t=i),r(e,I(t,3))}var wf=P(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]]),No(e,ie(t,1),[])}),Vn=tu||function(){return re.Date.now()};function Cf(e,t){if(typeof t!="function")throw new Se(w);return e=E(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,Ye(e,Ge,i,i,i,i,t)}function Wa(e,t){var n;if(typeof t!="function")throw new Se(w);return e=E(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=i),n}}var di=P(function(e,t,n){var r=xe;if(n.length){var a=nt(n,Ht(di));r|=He}return Ye(e,r,t,n,a)}),Ha=P(function(e,t,n){var r=xe|ut;if(n.length){var a=nt(n,Ht(Ha));r|=He}return Ye(t,r,e,n,a)});function Oa(e,t,n){t=n?i:t;var r=Ye(e,We,i,i,i,i,i,t);return r.placeholder=Oa.placeholder,r}function ka(e,t,n){t=n?i:t;var r=Ye(e,wt,i,i,i,i,i,t);return r.placeholder=ka.placeholder,r}function Ua(e,t,n){var r,a,s,u,p,d,y=0,v=!1,b=!1,C=!0;if(typeof e!="function")throw new Se(w);t=Te(t)||0,Y(n)&&(v=!!n.leading,b="maxWait"in n,s=b?ee(Te(n.maxWait)||0,t):s,C="trailing"in n?!!n.trailing:C);function B(Q){var Me=r,Ve=a;return r=a=i,y=Q,u=e.apply(Ve,Me),u}function A(Q){return y=Q,p=sn(M,t),v?B(Q):u}function D(Q){var Me=Q-d,Ve=Q-y,ol=t-Me;return b?oe(ol,s-Ve):ol}function T(Q){var Me=Q-d,Ve=Q-y;return d===i||Me>=t||Me<0||b&&Ve>=s}function M(){var Q=Vn();if(T(Q))return H(Q);p=sn(M,D(Q))}function H(Q){return p=i,C&&r?B(Q):(r=a=i,u)}function be(){p!==i&&Xo(p),y=0,r=d=a=p=i}function ue(){return p===i?u:H(Vn())}function _e(){var Q=Vn(),Me=T(Q);if(r=arguments,a=this,d=Q,Me){if(p===i)return A(d);if(b)return Xo(p),p=sn(M,t),B(d)}return p===i&&(p=sn(M,t)),u}return _e.cancel=be,_e.flush=ue,_e}var Sf=P(function(e,t){return To(e,1,t)}),Lf=P(function(e,t,n){return To(e,Te(t)||0,n)});function Bf(e){return Ye(e,ir)}function jn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Se(w);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],s=n.cache;if(s.has(a))return s.get(a);var u=e.apply(this,r);return n.cache=s.set(a,u)||s,u};return n.cache=new(jn.Cache||Ke),n}jn.Cache=Ke;function er(e){if(typeof e!="function")throw new Se(w);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 If(e){return Wa(2,e)}var Af=dc(function(e,t){t=t.length==1&&R(t[0])?K(t[0],me(I())):K(ie(t,1),me(I()));var n=t.length;return P(function(r){for(var a=-1,s=oe(r.length,n);++a<s;)r[a]=t[a].call(this,r[a]);return he(e,this,r)})}),gi=P(function(e,t){var n=nt(t,Ht(gi));return Ye(e,He,i,t,n)}),Na=P(function(e,t){var n=nt(t,Ht(Na));return Ye(e,Ct,i,t,n)}),Tf=Ze(function(e,t){return Ye(e,Ut,i,i,i,t)});function Ff(e,t){if(typeof e!="function")throw new Se(w);return t=t===i?t:E(t),P(e,t)}function Rf(e,t){if(typeof e!="function")throw new Se(w);return t=t==null?0:ee(E(t),0),P(function(n){var r=n[t],a=lt(n,0,t);return r&&tt(a,r),he(e,this,a)})}function Ef(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new Se(w);return Y(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),Ua(e,t,{leading:r,maxWait:t,trailing:a})}function Df(e){return Ma(e,1)}function Pf(e,t){return gi(Vr(t),e)}function Mf(){if(!arguments.length)return[];var e=arguments[0];return R(e)?e:[e]}function Wf(e){return Be(e,_t)}function Hf(e,t){return t=typeof t=="function"?t:i,Be(e,_t,t)}function Of(e){return Be(e,q|_t)}function kf(e,t){return t=typeof t=="function"?t:i,Be(e,q|_t,t)}function Uf(e,t){return t==null||Ao(e,t,te(t))}function Pe(e,t){return e===t||e!==e&&t!==t}var Nf=qn(Ur),Gf=qn(function(e,t){return e>=t}),bt=Po(function(){return arguments}())?Po:function(e){return J(e)&&N.call(e,"callee")&&!_o.call(e,"callee")},R=g.isArray,zf=eo?me(eo):Xu;function pe(e){return e!=null&&tr(e.length)&&!Xe(e)}function X(e){return J(e)&&pe(e)}function $f(e){return e===!0||e===!1||J(e)&&le(e)==Nt}var st=ru||Li,Kf=to?me(to):Qu;function qf(e){return J(e)&&e.nodeType===1&&!un(e)}function Yf(e){if(e==null)return!0;if(pe(e)&&(R(e)||typeof e=="string"||typeof e.splice=="function"||st(e)||Ot(e)||bt(e)))return!e.length;var t=ae(e);if(t==Fe||t==Re)return!e.size;if(ln(e))return!zr(e).length;for(var n in e)if(N.call(e,n))return!1;return!0}function Zf(e,t){return rn(e,t)}function Jf(e,t,n){n=typeof n=="function"?n:i;var r=n?n(e,t):i;return r===i?rn(e,t,i,n):!!r}function hi(e){if(!J(e))return!1;var t=le(e);return t==dn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!un(e)}function Xf(e){return typeof e=="number"&&wo(e)}function Xe(e){if(!Y(e))return!1;var t=le(e);return t==gn||t==Ai||t==ml||t==bl}function Ga(e){return typeof e=="number"&&e==E(e)}function tr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=je}function Y(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function J(e){return e!=null&&typeof e=="object"}var za=no?me(no):ju;function Qf(e,t){return e===t||Gr(e,t,oi(t))}function Vf(e,t,n){return n=typeof n=="function"?n:i,Gr(e,t,oi(t),n)}function jf(e){return $a(e)&&e!=+e}function ed(e){if(Wc(e))throw new F(S);return Mo(e)}function td(e){return e===null}function nd(e){return e==null}function $a(e){return typeof e=="number"||J(e)&&le(e)==zt}function un(e){if(!J(e)||le(e)!=ze)return!1;var t=An(e);if(t===null)return!0;var n=N.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Sn.call(n)==Qs}var mi=ro?me(ro):ec;function rd(e){return Ga(e)&&e>=-je&&e<=je}var Ka=io?me(io):tc;function nr(e){return typeof e=="string"||!R(e)&&J(e)&&le(e)==Kt}function ve(e){return typeof e=="symbol"||J(e)&&le(e)==hn}var Ot=oo?me(oo):nc;function id(e){return e===i}function od(e){return J(e)&&ae(e)==qt}function ad(e){return J(e)&&le(e)==xl}var ld=qn($r),sd=qn(function(e,t){return e<=t});function qa(e){if(!e)return[];if(pe(e))return nr(e)?Ee(e):ce(e);if(Jt&&e[Jt])return ks(e[Jt]());var t=ae(e),n=t==Fe?Rr:t==Re?xn:kt;return n(e)}function Qe(e){if(!e)return e===0?e:0;if(e=Te(e),e===ct||e===-ct){var t=e<0?-1:1;return t*fl}return e===e?e:0}function E(e){var t=Qe(e),n=t%1;return t===t?n?t-n:t:0}function Ya(e){return e?ht(E(e),0,Oe):0}function Te(e){if(typeof e=="number")return e;if(ve(e))return pn;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=po(e);var n=Gl.test(e);return n||$l.test(e)?ws(e.slice(2),n?2:8):Nl.test(e)?pn:+e}function Za(e){return Ue(e,fe(e))}function ud(e){return e?ht(E(e),-je,je):e===0?e:0}function U(e){return e==null?"":ye(e)}var cd=Mt(function(e,t){if(ln(t)||pe(t)){Ue(t,te(t),e);return}for(var n in t)N.call(t,n)&&en(e,n,t[n])}),Ja=Mt(function(e,t){Ue(t,fe(t),e)}),rr=Mt(function(e,t,n,r){Ue(t,fe(t),e,r)}),pd=Mt(function(e,t,n,r){Ue(t,te(t),e,r)}),fd=Ze(Hr);function dd(e,t){var n=Pt(e);return t==null?n:Io(n,t)}var gd=P(function(e,t){e=G(e);var n=-1,r=t.length,a=r>2?t[2]:i;for(a&&se(t[0],t[1],a)&&(r=1);++n<r;)for(var s=t[n],u=fe(s),p=-1,d=u.length;++p<d;){var y=u[p],v=e[y];(v===i||Pe(v,Rt[y])&&!N.call(e,y))&&(e[y]=s[y])}return e}),hd=P(function(e){return e.push(i,fa),he(Xa,i,e)});function md(e,t){return lo(e,I(t,3),ke)}function yd(e,t){return lo(e,I(t,3),kr)}function vd(e,t){return e==null?e:Or(e,I(t,3),fe)}function bd(e,t){return e==null?e:Eo(e,I(t,3),fe)}function _d(e,t){return e&&ke(e,I(t,3))}function xd(e,t){return e&&kr(e,I(t,3))}function wd(e){return e==null?[]:On(e,te(e))}function Cd(e){return e==null?[]:On(e,fe(e))}function yi(e,t,n){var r=e==null?i:mt(e,t);return r===i?n:r}function Sd(e,t){return e!=null&&ha(e,t,qu)}function vi(e,t){return e!=null&&ha(e,t,Yu)}var Ld=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),e[t]=n},_i(de)),Bd=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),N.call(e,t)?e[t].push(n):e[t]=[n]},I),Id=P(nn);function te(e){return pe(e)?Lo(e):zr(e)}function fe(e){return pe(e)?Lo(e,!0):rc(e)}function Ad(e,t){var n={};return t=I(t,3),ke(e,function(r,a,s){qe(n,t(r,a,s),r)}),n}function Td(e,t){var n={};return t=I(t,3),ke(e,function(r,a,s){qe(n,a,t(r,a,s))}),n}var Fd=Mt(function(e,t,n){kn(e,t,n)}),Xa=Mt(function(e,t,n,r){kn(e,t,n,r)}),Rd=Ze(function(e,t){var n={};if(e==null)return n;var r=!1;t=K(t,function(s){return s=at(s,e),r||(r=s.length>1),s}),Ue(e,ri(e),n),r&&(n=Be(n,q|ge|_t,Sc));for(var a=t.length;a--;)Jr(n,t[a]);return n});function Ed(e,t){return Qa(e,er(I(t)))}var Dd=Ze(function(e,t){return e==null?{}:oc(e,t)});function Qa(e,t){if(e==null)return{};var n=K(ri(e),function(r){return[r]});return t=I(t),Go(e,n,function(r,a){return t(r,a[0])})}function Pd(e,t,n){t=at(t,e);var r=-1,a=t.length;for(a||(a=1,e=i);++r<a;){var s=e==null?i:e[Ne(t[r])];s===i&&(r=a,s=n),e=Xe(s)?s.call(e):s}return e}function Md(e,t,n){return e==null?e:on(e,t,n)}function Wd(e,t,n,r){return r=typeof r=="function"?r:i,e==null?e:on(e,t,n,r)}var Va=ca(te),ja=ca(fe);function Hd(e,t,n){var r=R(e),a=r||st(e)||Ot(e);if(t=I(t,4),n==null){var s=e&&e.constructor;a?n=r?new s:[]:Y(e)?n=Xe(s)?Pt(An(e)):{}:n={}}return(a?Ce:ke)(e,function(u,p,d){return t(n,u,p,d)}),n}function Od(e,t){return e==null?!0:Jr(e,t)}function kd(e,t,n){return e==null?e:Yo(e,t,Vr(n))}function Ud(e,t,n,r){return r=typeof r=="function"?r:i,e==null?e:Yo(e,t,Vr(n),r)}function kt(e){return e==null?[]:Fr(e,te(e))}function Nd(e){return e==null?[]:Fr(e,fe(e))}function Gd(e,t,n){return n===i&&(n=t,t=i),n!==i&&(n=Te(n),n=n===n?n:0),t!==i&&(t=Te(t),t=t===t?t:0),ht(Te(e),t,n)}function zd(e,t,n){return t=Qe(t),n===i?(n=t,t=0):n=Qe(n),e=Te(e),Zu(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=Qe(e),t===i?(t=e,e=0):t=Qe(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var a=Co();return oe(e+a*(t-e+xs("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Kd=Wt(function(e,t,n){return t=t.toLowerCase(),e+(n?el(t):t)});function el(e){return bi(U(e).toLowerCase())}function tl(e){return e=U(e),e&&e.replace(ql,Ps).replace(ps,"")}function qd(e,t,n){e=U(e),t=ye(t);var r=e.length;n=n===i?r:ht(E(n),0,r);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Yd(e){return e=U(e),e&&Bl.test(e)?e.replace(Ri,Ms):e}function Zd(e){return e=U(e),e&&El.test(e)?e.replace(gr,"\\$&"):e}var Jd=Wt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Xd=Wt(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Qd=ia("toLowerCase");function Vd(e,t,n){e=U(e),t=E(t);var r=t?Tt(e):0;if(!t||r>=t)return e;var a=(t-r)/2;return Kn(En(a),n)+e+Kn(Rn(a),n)}function jd(e,t,n){e=U(e),t=E(t);var r=t?Tt(e):0;return t&&r<t?e+Kn(t-r,n):e}function eg(e,t,n){e=U(e),t=E(t);var r=t?Tt(e):0;return t&&r<t?Kn(t-r,n)+e:e}function tg(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(U(e).replace(hr,""),t||0)}function ng(e,t,n){return(n?se(e,t,n):t===i)?t=1:t=E(t),Yr(U(e),t)}function rg(){var e=arguments,t=U(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ig=Wt(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=U(e),e&&(typeof t=="string"||t!=null&&!mi(t))&&(t=ye(t),!t&&At(e))?lt(Ee(e),0,n):e.split(t,n)):[]}var ag=Wt(function(e,t,n){return e+(n?" ":"")+bi(t)});function lg(e,t,n){return e=U(e),n=n==null?0:ht(E(n),0,e.length),t=ye(t),e.slice(n,n+t.length)==t}function sg(e,t,n){var r=l.templateSettings;n&&se(e,t,n)&&(t=i),e=U(e),t=rr({},t,r,pa);var a=rr({},t.imports,r.imports,pa),s=te(a),u=Fr(a,s),p,d,y=0,v=t.interpolate||mn,b="__p += '",C=Er((t.escape||mn).source+"|"+v.source+"|"+(v===Ei?Ul:mn).source+"|"+(t.evaluate||mn).source+"|$","g"),B="//# sourceURL="+(N.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ms+"]")+`
11
11
  `;e.replace(C,function(T,M,H,be,ue,_e){return H||(H=be),b+=e.slice(y,_e).replace(Yl,Ws),M&&(p=!0,b+=`' +
12
12
  __e(`+M+`) +
13
13
  '`),ue&&(d=!0,b+=`';
@@ -15,7 +15,7 @@ __e(`+M+`) +
15
15
  __p += '`),H&&(b+=`' +
16
16
  ((__t = (`+H+`)) == null ? '' : __t) +
17
17
  '`),y=_e+T.length,T}),b+=`';
18
- `;var A=G.call(t,"variable")&&t.variable;if(!A)b=`with (obj) {
18
+ `;var A=N.call(t,"variable")&&t.variable;if(!A)b=`with (obj) {
19
19
  `+b+`
20
20
  }
21
21
  `;else if(Ol.test(A))throw new F(O);b=(d?b.replace(wl,""):b).replace(Cl,"$1").replace(Sl,"$1;"),b="function("+(A||"obj")+`) {
@@ -24,5 +24,5 @@ __p += '`),H&&(b+=`' +
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+b+`return __p
27
- }`;var D=rl(function(){return k(s,I+"return "+b).apply(i,u)});if(D.source=b,hi(D))throw D;return D}function ug(e){return U(e).toLowerCase()}function cg(e){return U(e).toUpperCase()}function pg(e,t,n){if(e=U(e),e&&(n||t===i))return po(e);if(!e||!(t=ye(t)))return e;var r=Ee(e),a=Ee(t),s=fo(r,a),u=go(r,a)+1;return lt(r,s,u).join("")}function fg(e,t,n){if(e=U(e),e&&(n||t===i))return e.slice(0,mo(e)+1);if(!e||!(t=ye(t)))return e;var r=Ee(e),a=go(r,Ee(t))+1;return lt(r,0,a).join("")}function dg(e,t,n){if(e=U(e),e&&(n||t===i))return e.replace(hr,"");if(!e||!(t=ye(t)))return e;var r=Ee(e),a=fo(r,Ee(t));return lt(r,a).join("")}function gg(e,t){var n=al,r=ll;if(Y(t)){var a="separator"in t?t.separator:a;n="length"in t?E(t.length):n,r="omission"in t?ye(t.omission):r}e=U(e);var s=e.length;if(At(e)){var u=Ee(e);s=u.length}if(n>=s)return e;var p=n-Tt(r);if(p<1)return r;var d=u?lt(u,0,p).join(""):e.slice(0,p);if(a===i)return d+r;if(u&&(p+=d.length-p),mi(a)){if(e.slice(p).search(a)){var y,v=d;for(a.global||(a=Er(a.source,U(Di.exec(a))+"g")),a.lastIndex=0;y=a.exec(v);)var b=y.index;d=d.slice(0,b===i?p:b)}}else if(e.indexOf(ye(a),p)!=p){var C=d.lastIndexOf(a);C>-1&&(d=d.slice(0,C))}return d+r}function hg(e){return e=U(e),e&&Ll.test(e)?e.replace(Fi,zs):e}var mg=Wt(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),bi=ia("toUpperCase");function nl(e,t,n){return e=U(e),t=n?i:t,t===i?Os(e)?qs(e):Ts(e):e.match(t)||[]}var rl=P(function(e,t){try{return he(e,i,t)}catch(n){return hi(n)?n:new F(n)}}),yg=Ze(function(e,t){return Ce(t,function(n){n=Ge(n),qe(e,n,di(e[n],e))}),e});function vg(e){var t=e==null?0:e.length,n=B();return e=t?K(e,function(r){if(typeof r[1]!="function")throw new Se(w);return[n(r[0]),r[1]]}):[],P(function(r){for(var a=-1;++a<t;){var s=e[a];if(he(s[0],this,r))return he(s[1],this,r)}})}function bg(e){return zu(Ie(e,q))}function _i(e){return function(){return e}}function _g(e,t){return e==null||e!==e?t:e}var xg=aa(),wg=aa(!0);function de(e){return e}function xi(e){return Wo(typeof e=="function"?e:Ie(e,q))}function Cg(e){return Oo(Ie(e,q))}function Sg(e,t){return ko(e,Ie(t,q))}var Lg=P(function(e,t){return function(n){return nn(n,e,t)}}),Ig=P(function(e,t){return function(n){return nn(e,n,t)}});function wi(e,t,n){var r=te(t),a=On(t,r);n==null&&!(Y(t)&&(a.length||!r.length))&&(n=t,t=e,e=this,a=On(t,te(t)));var s=!(Y(n)&&"chain"in n)||!!n.chain,u=Xe(e);return Ce(a,function(p){var d=t[p];e[p]=d,u&&(e.prototype[p]=function(){var y=this.__chain__;if(s||y){var v=e(this.__wrapped__),b=v.__actions__=ce(this.__actions__);return b.push({func:d,args:arguments,thisArg:e}),v.__chain__=y,v}return d.apply(e,tt([this.value()],arguments))})}),e}function Bg(){return re._===this&&(re._=Vs),this}function Ci(){}function Ag(e){return e=E(e),P(function(t){return Uo(t,e)})}var Tg=ei(K),Fg=ei(ao),Rg=ei(Lr);function il(e){return li(e)?Ir(Ge(e)):ac(e)}function Eg(e){return function(t){return e==null?i:mt(e,t)}}var Dg=sa(),Pg=sa(!0);function Si(){return[]}function Li(){return!1}function Mg(){return{}}function Wg(){return""}function Hg(){return!0}function Og(e,t){if(e=E(e),e<1||e>je)return[];var n=Oe,r=oe(e,Oe);t=B(t),e-=Oe;for(var a=Tr(r,t);++n<e;)t(n);return a}function kg(e){return R(e)?K(e,Ge):ve(e)?[e]:ce(Sa(U(e)))}function Ug(e){var t=++Xs;return U(e)+t}var Gg=$n(function(e,t){return e+t},0),Ng=ti("ceil"),zg=$n(function(e,t){return e/t},1),$g=ti("floor");function Kg(e){return e&&e.length?Hn(e,de,Ur):i}function qg(e,t){return e&&e.length?Hn(e,B(t,2),Ur):i}function Yg(e){return uo(e,de)}function Zg(e,t){return uo(e,B(t,2))}function Jg(e){return e&&e.length?Hn(e,de,$r):i}function Xg(e,t){return e&&e.length?Hn(e,B(t,2),$r):i}var Qg=$n(function(e,t){return e*t},1),Vg=ti("round"),jg=$n(function(e,t){return e-t},0);function eh(e){return e&&e.length?Ar(e,de):0}function th(e,t){return e&&e.length?Ar(e,B(t,2)):0}return l.after=Cf,l.ary=Ma,l.assign=cd,l.assignIn=Ja,l.assignInWith=rr,l.assignWith=pd,l.at=fd,l.before=Wa,l.bind=di,l.bindAll=yg,l.bindKey=Ha,l.castArray=Mf,l.chain=Ea,l.chunk=zc,l.compact=$c,l.concat=Kc,l.cond=vg,l.conforms=bg,l.constant=_i,l.countBy=jp,l.create=dd,l.curry=Oa,l.curryRight=ka,l.debounce=Ua,l.defaults=gd,l.defaultsDeep=hd,l.defer=Sf,l.delay=Lf,l.difference=qc,l.differenceBy=Yc,l.differenceWith=Zc,l.drop=Jc,l.dropRight=Xc,l.dropRightWhile=Qc,l.dropWhile=Vc,l.fill=jc,l.filter=tf,l.flatMap=of,l.flatMapDeep=af,l.flatMapDepth=lf,l.flatten=Aa,l.flattenDeep=ep,l.flattenDepth=tp,l.flip=If,l.flow=xg,l.flowRight=wg,l.fromPairs=np,l.functions=wd,l.functionsIn=Cd,l.groupBy=sf,l.initial=ip,l.intersection=op,l.intersectionBy=ap,l.intersectionWith=lp,l.invert=Ld,l.invertBy=Id,l.invokeMap=cf,l.iteratee=xi,l.keyBy=pf,l.keys=te,l.keysIn=fe,l.map=Qn,l.mapKeys=Ad,l.mapValues=Td,l.matches=Cg,l.matchesProperty=Sg,l.memoize=jn,l.merge=Fd,l.mergeWith=Xa,l.method=Lg,l.methodOf=Ig,l.mixin=wi,l.negate=er,l.nthArg=Ag,l.omit=Rd,l.omitBy=Ed,l.once=Bf,l.orderBy=ff,l.over=Tg,l.overArgs=Af,l.overEvery=Fg,l.overSome=Rg,l.partial=gi,l.partialRight=Ga,l.partition=df,l.pick=Dd,l.pickBy=Qa,l.property=il,l.propertyOf=Eg,l.pull=pp,l.pullAll=Fa,l.pullAllBy=fp,l.pullAllWith=dp,l.pullAt=gp,l.range=Dg,l.rangeRight=Pg,l.rearg=Tf,l.reject=mf,l.remove=hp,l.rest=Ff,l.reverse=pi,l.sampleSize=vf,l.set=Md,l.setWith=Wd,l.shuffle=bf,l.slice=mp,l.sortBy=wf,l.sortedUniq=Cp,l.sortedUniqBy=Sp,l.split=og,l.spread=Rf,l.tail=Lp,l.take=Ip,l.takeRight=Bp,l.takeRightWhile=Ap,l.takeWhile=Tp,l.tap=$p,l.throttle=Ef,l.thru=Xn,l.toArray=qa,l.toPairs=Va,l.toPairsIn=ja,l.toPath=kg,l.toPlainObject=Za,l.transform=Hd,l.unary=Df,l.union=Fp,l.unionBy=Rp,l.unionWith=Ep,l.uniq=Dp,l.uniqBy=Pp,l.uniqWith=Mp,l.unset=Od,l.unzip=fi,l.unzipWith=Ra,l.update=kd,l.updateWith=Ud,l.values=kt,l.valuesIn=Gd,l.without=Wp,l.words=nl,l.wrap=Pf,l.xor=Hp,l.xorBy=Op,l.xorWith=kp,l.zip=Up,l.zipObject=Gp,l.zipObjectDeep=Np,l.zipWith=zp,l.entries=Va,l.entriesIn=ja,l.extend=Ja,l.extendWith=rr,wi(l,l),l.add=Gg,l.attempt=rl,l.camelCase=Kd,l.capitalize=el,l.ceil=Ng,l.clamp=Nd,l.clone=Wf,l.cloneDeep=Of,l.cloneDeepWith=kf,l.cloneWith=Hf,l.conformsTo=Uf,l.deburr=tl,l.defaultTo=_g,l.divide=zg,l.endsWith=qd,l.eq=Pe,l.escape=Yd,l.escapeRegExp=Zd,l.every=ef,l.find=nf,l.findIndex=Ia,l.findKey=md,l.findLast=rf,l.findLastIndex=Ba,l.findLastKey=yd,l.floor=$g,l.forEach=Da,l.forEachRight=Pa,l.forIn=vd,l.forInRight=bd,l.forOwn=_d,l.forOwnRight=xd,l.get=yi,l.gt=Gf,l.gte=Nf,l.has=Sd,l.hasIn=vi,l.head=Ta,l.identity=de,l.includes=uf,l.indexOf=rp,l.inRange=zd,l.invoke=Bd,l.isArguments=bt,l.isArray=R,l.isArrayBuffer=zf,l.isArrayLike=pe,l.isArrayLikeObject=X,l.isBoolean=$f,l.isBuffer=st,l.isDate=Kf,l.isElement=qf,l.isEmpty=Yf,l.isEqual=Zf,l.isEqualWith=Jf,l.isError=hi,l.isFinite=Xf,l.isFunction=Xe,l.isInteger=Na,l.isLength=tr,l.isMap=za,l.isMatch=Qf,l.isMatchWith=Vf,l.isNaN=jf,l.isNative=ed,l.isNil=nd,l.isNull=td,l.isNumber=$a,l.isObject=Y,l.isObjectLike=J,l.isPlainObject=un,l.isRegExp=mi,l.isSafeInteger=rd,l.isSet=Ka,l.isString=nr,l.isSymbol=ve,l.isTypedArray=Ot,l.isUndefined=id,l.isWeakMap=od,l.isWeakSet=ad,l.join=sp,l.kebabCase=Jd,l.last=Ae,l.lastIndexOf=up,l.lowerCase=Xd,l.lowerFirst=Qd,l.lt=ld,l.lte=sd,l.max=Kg,l.maxBy=qg,l.mean=Yg,l.meanBy=Zg,l.min=Jg,l.minBy=Xg,l.stubArray=Si,l.stubFalse=Li,l.stubObject=Mg,l.stubString=Wg,l.stubTrue=Hg,l.multiply=Qg,l.nth=cp,l.noConflict=Bg,l.noop=Ci,l.now=Vn,l.pad=Vd,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=Vg,l.runInContext=f,l.sample=yf,l.size=_f,l.snakeCase=ig,l.some=xf,l.sortedIndex=yp,l.sortedIndexBy=vp,l.sortedIndexOf=bp,l.sortedLastIndex=_p,l.sortedLastIndexBy=xp,l.sortedLastIndexOf=wp,l.startCase=ag,l.startsWith=lg,l.subtract=jg,l.sum=eh,l.sumBy=th,l.template=sg,l.times=Og,l.toFinite=Qe,l.toInteger=E,l.toLength=Ya,l.toLower=ug,l.toNumber=Te,l.toSafeInteger=ud,l.toString=U,l.toUpper=cg,l.trim=pg,l.trimEnd=fg,l.trimStart=dg,l.truncate=gg,l.unescape=hg,l.uniqueId=Ug,l.upperCase=mg,l.upperFirst=bi,l.each=Da,l.eachRight=Pa,l.first=Ta,wi(l,function(){var e={};return ke(l,function(t,n){G.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=h,Ce(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Ce(["drop","take"],function(e,t){W.prototype[e]=function(n){n=n===i?1:ee(E(n),0);var r=this.__filtered__&&!t?new W(this):this.clone();return r.__filtered__?r.__takeCount__=oe(n,r.__takeCount__):r.__views__.push({size:oe(n,Oe),type:e+(r.__dir__<0?"Right":"")}),r},W.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Ce(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==Bi||n==pl;W.prototype[e]=function(a){var s=this.clone();return s.__iteratees__.push({iteratee:B(a,3),type:n}),s.__filtered__=s.__filtered__||r,s}}),Ce(["head","last"],function(e,t){var n="take"+(t?"Right":"");W.prototype[e]=function(){return this[n](1).value()[0]}}),Ce(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");W.prototype[e]=function(){return this.__filtered__?new W(this):this[n](1)}}),W.prototype.compact=function(){return this.filter(de)},W.prototype.find=function(e){return this.filter(e).head()},W.prototype.findLast=function(e){return this.reverse().find(e)},W.prototype.invokeMap=P(function(e,t){return typeof e=="function"?new W(this):this.map(function(n){return nn(n,e,t)})}),W.prototype.reject=function(e){return this.filter(er(B(e)))},W.prototype.slice=function(e,t){e=E(e);var n=this;return n.__filtered__&&(e>0||t<0)?new W(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=E(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},W.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},W.prototype.toArray=function(){return this.take(Oe)},ke(W.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=l[r?"take"+(t=="last"?"Right":""):t],s=r||/^find/.test(t);!a||(l.prototype[t]=function(){var u=this.__wrapped__,p=r?[1]:arguments,d=u instanceof W,y=p[0],v=d||R(u),b=function(M){var H=a.apply(l,tt([M],p));return r&&C?H[0]:H};v&&n&&typeof y=="function"&&y.length!=1&&(d=v=!1);var C=this.__chain__,I=!!this.__actions__.length,A=s&&!C,D=d&&!I;if(!s&&v){u=D?u:new W(this);var T=e.apply(u,p);return T.__actions__.push({func:Xn,args:[b],thisArg:i}),new Le(T,C)}return A&&D?e.apply(this,p):(T=this.thru(b),A?r?T.value()[0]:T.value():T)})}),Ce(["pop","push","shift","sort","splice","unshift"],function(e){var t=wn[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(r&&!this.__chain__){var s=this.value();return t.apply(R(s)?s:[],a)}return this[n](function(u){return t.apply(R(u)?u:[],a)})}}),ke(W.prototype,function(e,t){var n=l[t];if(n){var r=n.name+"";G.call(Dt,r)||(Dt[r]=[]),Dt[r].push({name:t,func:n})}}),Dt[zn(i,ut).name]=[{name:"wrapper",func:i}],W.prototype.clone=gu,W.prototype.reverse=hu,W.prototype.value=mu,l.prototype.at=Kp,l.prototype.chain=qp,l.prototype.commit=Yp,l.prototype.next=Zp,l.prototype.plant=Xp,l.prototype.reverse=Qp,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Vp,l.prototype.first=l.prototype.head,Jt&&(l.prototype[Jt]=Jp),l},Ft=Ys();pt?((pt.exports=Ft)._=Ft,xr._=Ft):re._=Ft}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{layout:{type:"array",items:{type:"object",properties:{key:{type:"string"},value:{type:"string"}}}},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"}}}}}},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",options:[{label:"Select",value:"Select"},{label:"Date",value:"Date"},{label:"Table",value:"Table"},{label:"Array",value:"Array"},{label:"Container",value:"WrapperSection"},{label:"Tabs",value:"TabSection"},{label:"Text",value:"Text"},{label:"Text Area",value:"TextArea"},{label:"Button",value:"Button"},{label:"Card",value:"card"},{label:"Rank",value:"Rank"},{label:"SpeedoMeter",value:"SpeedoMeter"},{label:"ProgressBar",value:"ProgressBar"},{label:"Graph",value:"Graph"},{label:"Label",value:"Box"},{label:"Upload File",value:"UploadFile"},{label:"Download File",value:"DownloadFile"},{label:"Empty Box",value:"EmptyBox"},{label:"ProgressBar Card",value:"ProgressBarCard"},{label:"Rank Card",value:"RankCard"},{label:"Runner Boy Progress Bar",value:"RunnerBoyProgressBar"},{label:"Slider",value:"Slider"},{label:"Timer",value:"Timer"},{label:"MultipleSelect",value:"MultipleSelect"},{label:"LeaderBoard",value:"LeaderBoard"}]}}},{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",options:[{label:"Extra Small",value:"xs"},{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}}},{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/proc",config:{layout:{xs:11,sm:11,md:8,lg:8}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:3,lg:3},main:{name:"Save",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}]};var buildConfig=o=>{const c=_.cloneDeep(o);let i={};return c.pageName&&delete c.pageName,c.eventsSelected&&delete c.eventsSelected,(c.type==="Table"||c.type==="WrapperSection"||c.type==="TabSection")&&(i.elements=c.elements||[],c.elements&&delete c.elements),i.events=c.events||[],c.events&&delete c.events,i={...c,...i},i};const createLayoutFormat=o=>{let c={};return o.map(i=>{c[i.key]=+i.value}),c},getNavigationHistory=(o,c)=>{if(c){let i=o.name;const h=c.split("."),x=[];return h.map((S,w)=>{if(w===0){x.push(S);return}x.push(`${x[w-1]}.${S}`)}),x.map(S=>{const w=_.get(o,S);i=i+` > ${(w==null?void 0:w.name)||(w==null?void 0:w.eventType)}`}),{pageName:i}}},saveFormdataInLocalStorage=(o,c)=>{let i;if(c){const h=getFormdataFromLocalStorage();i=_.set(h,c,buildConfig(o))}else i=buildConfig(o);return localStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromLocalStorage=o=>{const c=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let i;return o&&(i=_.get(c,o),i={...i,...getNavigationHistory(c,o)}),i||(i=getNavigationHistory(c,o)),i||c},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",options:[{label:"Select",value:"Select"},{label:"Date",value:"Date"},{label:"Table",value:"Table"},{label:"Array",value:"Array"},{label:"Container",value:"WrapperSection"},{label:"Tabs",value:"TabSection"},{label:"Text",value:"Text"},{label:"Text Area",value:"TextArea"},{label:"Button",value:"Button"},{label:"Card",value:"card"},{label:"Rank",value:"Rank"},{label:"SpeedoMeter",value:"SpeedoMeter"},{label:"ProgressBar",value:"ProgressBar"},{label:"Graph",value:"Graph"},{label:"Label",value:"Box"},{label:"Upload File",value:"UploadFile"},{label:"Download File",value:"DownloadFile"},{label:"Empty Box",value:"EmptyBox"},{label:"ProgressBar Card",value:"ProgressBarCard"},{label:"Rank Card",value:"RankCard"},{label:"Runner Boy Progress Bar",value:"RunnerBoyProgressBar"},{label:"Slider",value:"Slider"},{label:"Timer",value:"Timer"},{label:"MultipleSelect",value:"MultipleSelect"},{label:"LeaderBoard",value:"LeaderBoard"}]}}},{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:{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:"Screen Size",options:[{label:"Extra Small",value:"xs"},{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}}]},OptionArray={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"}}}]}}},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"}}}}]}]}]},getInputField=(o,c)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:c}}}),getRadioInputField=(o,c,i)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:c,options:i}}}),getTextArea=(o,c,i,h)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"TextArea"},config:{layout:h||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:c,minRows:8,hideButton:i}}}),getSelectField=(o,c,i)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:c,type:"text",options:i}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(o){let c=_.cloneDeep(GraphSection);if(o==="SpeedoMeter"||o==="RankCard"||o==="Timer")c.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];else if(o==="LeaderBoard")c.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)];else if(o==="CardSlider"){const i=getInputField("heading","Heading"),h=getInputField("iconName","Icon Name");c.elements=[i,h]}else if(o==="ProgressBar"||o==="ProgressBarCard"){const i=getInputField("heading","Heading"),h=getInputField("bottomLabel_1","First BottomLabel"),x=getInputField("bottomLabel_2","Second BottomLabel"),S=getInputField("bottomLabel_3","Third BottomLabel");c.elements=[i,h,x,S]}else if(o==="card")c.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description")];else if(o==="Box"){const i=getInputField("value","Value");c.elements=[getSelectField("graphType","Label Type",[{label:"URL",value:"url"},{label:"Heading",value:"heading"}]),i]}else if(o==="Button"){const i=getInputField("color","Color"),h=getInputField("size","Size"),x=getInputField("iconName","Icon Name");c.elements=[getSelectField("buttonType","Button Type",[{label:"Button With Text",value:"Button"},{label:"Button With Icon",value:"IconButton"},{label:"Button With Icon and Text",value:"ButtonWithIconAndText"}]),x,h,i]}else if(o==="Graph"){const i=getInputField("height","Height"),h=getInputField("heading","Heading"),x=getInputField("leftLabel","Left Label"),S=getInputField("bottomLabel","Bottom Label"),w=getRadioInputField("legendHide","Legend Hide",["YES","No"]);c.elements=[h,i,getSelectField("graphType","Graph Type",[{label:"Bar Graph",value:"BarGraph"},{label:"Stack Bar Graph",value:"StackBarGraph"},{label:"Pie Graph",value:"PieGraph"},{label:"Horizontal Bar Graph",value:"HorizontalBarGraph"}]),x,S,w]}else o==="WrapperSection"?c.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("heading","Page Heading",["YES","No"])]:o==="TabSection"&&(c.elements=[{type:"Control",scope:"#/properties/sectionLabels",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:"Labels for Tab"}}}]}}}]);return c},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:"Back"},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:[OptionArray]},sectionLabels={Select:["Core","Value","style","Event"],MultipleSelect:["Core","Value","style","Event"],Table:["Core","Components","style","Event"],LeaderBoard:["Core","Components","Properties","style","Event"],WrapperSection:["Core","Components","Properties","style"],TabSection:["Core","Components","Properties","style"],SpeedoMeter:["Core","Properties","style","Event"],card:["Core","Properties","style","Event"],UploadFile:["Core","style","Event"],Graph:["Core","Properties","style","Event"],DownloadFile:["Core","style","Event"],Box:["Core","Properties","style","Event"],Properties:["Core","Properties","style","Event"],ProgressBarCard:["Core","Properties","style","Event"],RankCard:["Core","Properties","style","Event"],Slider:["Core","Components","Properties","style","Event"],Timer:["Core","Properties","style","Event"],Rank:["Core","Properties","style","Event"],Button:["Core","Properties","style","Event"],Array:["Core","Components"]},refreshPage=(o,c)=>{var h;const i=_.cloneDeep(componentBasicUiSchema);if(o){const x={Core:CoreSection,Value:ValueTab,style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(o)},S=(h=sectionLabels[o])==null?void 0:h.map(w=>x[w]);i.elements[1].config.main.tabLabels=sectionLabels[o]||["Core","style","Event"],i.elements[1].elements=S||[CoreSection,StyleSection,EventSection]}c.setUiSchema(i)};var Component=(o,c)=>({setPage:async function(){const i=await this.getFormdata();o.setFormdata(i);const h=this.getSchema();o.setSchema(h),this.refreshPage(i==null?void 0:i.type,o)},refreshPage,getFormdata:async function(){var h;const i=(h=o.searchParams)==null?void 0:h.get("path");return getFormdataFromLocalStorage(i)},getSchema:function(){return ComponentSchema},saveHandler:async function(){var h;const i=(h=o.searchParams)==null?void 0:h.get("path");saveFormdataInLocalStorage(o.formData,i),o.navigate(-1),o.setNotify({SuccessMessage:"Save Successfully",Success:!0})},onChange:function(){var i,h,x,S;((i=o==null?void 0:o.formData)==null?void 0:i.type)!==((h=o==null?void 0:o.newData)==null?void 0:h.type)&&((x=o==null?void 0:o.newData)==null?void 0:x.type)!==void 0&&this.refreshPage((S=o==null?void 0:o.newData)==null?void 0:S.type,o)},editComponents:async function(){var S,w,O;const i=c.path.split(".")[1],h=(S=o.searchParams)==null?void 0:S.get("path"),x=(w=o.searchParams)==null?void 0:w.get("id");if(saveFormdataInLocalStorage(o.formData,h),h){const ne=`${(O=o.searchParams)==null?void 0:O.get("path")}.elements[${i}]`;o.searchParams.set("path",ne),o.setSearchParams(o.searchParams),this.setPage()}else o.navigate(`/Component?path=${`elements[${i}]`}&id=${x}`)},deleteComponents:async function(){var w;const i=(w=o.searchParams)==null?void 0:w.get("path"),h=c.path.split(".")[1];o.formData.elements.splice(h,1);const x=saveFormdataInLocalStorage(o.formData,i),S=i?_.get(x,i):x;o.setFormdata(S)},deleteEvent:async function(){var S;const i=(S=o.searchParams)==null?void 0:S.get("path"),h=c.path.split(".")[1];o.formData.events.splice(h,1);const x=saveFormdataInLocalStorage(o.formData,i);o.setFormdata(_.get(x,i))},widgetAddClickHandler:async function(){var x;Array.isArray(o.formData.elements)||(o.formData.elements=[]);const i=(x=o.searchParams)==null?void 0:x.get("path");saveFormdataInLocalStorage(o.formData,i);const h=`${i}.elements[${o.formData.elements.length}]`;o.searchParams.set("path",h),o.setSearchParams(o.searchParams),this.setPage()},eventEditHandler:async function(){var w,O;const i=c.path.split(".")[1],h=(w=o.searchParams)==null?void 0:w.get("path"),x=(O=o.searchParams)==null?void 0:O.get("id");saveFormdataInLocalStorage(o.formData,h);const S=`${h}.events[${i}]`;o.navigate(`/ComponentEvents?path=${S}&id=${x}`)},eventAddHandler:async function(){var S,w;const i=(S=o.searchParams)==null?void 0:S.get("path"),h=(w=o.searchParams)==null?void 0:w.get("id");Array.isArray(o.formData.events)||(o.formData.events=[]),saveFormdataInLocalStorage(o.formData,i);const x=`${i}.events[${o.formData.events.length}]`;o.navigate(`/ComponentEvents?path=${x}&id=${h}`)},backHandler:function(){o.navigate(-1)}}),pageMaster=o=>{const{store:c,dynamicData:i,config:h,submitHandler:x}=o;return{setPage:async function(){const S=await this.getFormdata();c.setFormdata(S);const w=await this.getUiSchema(),O=await this.getSchema();c.setSchema(O),c.setUiSchema(w)},getFormdata:async function(){var w;(w=c.searchParams)==null||w.get("id");const S=getFormdataFromLocalStorage();return S||(saveFormdataInLocalStorage(h),h)},getUiSchema:async function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),c.navigate("/PageMasterRecords")},onAddClickHandler:async function(){var O;const S=(O=c.searchParams)==null?void 0:O.get("id");Array.isArray(c.formData.elements)||(c.formData.elements=[]);const w=saveFormdataInLocalStorage(c.formData);c.navigate(`/Component?path=${`elements[${w==null?void 0:w.elements.length}]`}&id=${S}`)},submitPageHandler:async function(){x(c,o.service).then(S=>{localStorage.removeItem("pageFormdata"),c.navigate(-1),c.setNotify({SuccessMessage:"Submit Successfully",Success:!0})})},Edit_Components:Component(c,i).editComponents,Delete_Components:Component(c,i).deleteComponents,eventAddHandler:async function(){var O;const S=(O=c.searchParams)==null?void 0:O.get("id");Array.isArray(c.formData.events)||(c.formData.events=[]),saveFormdataInLocalStorage(c.formData);const w=`events[${c.formData.events.length}]`;c.navigate(`/ComponentEvents?path=${w}&id=${S}`)},editEvent:async function(){var Z;const S=i.path.split(".")[1],w=(Z=c.searchParams)==null?void 0:Z.get("id");saveFormdataInLocalStorage(c.formData);const O=`events[${S}]`;c.navigate(`/ComponentEvents?path=${O}&id=${w}`)},deleteEvent:async function(){const S=i.path.split(".")[1];c.formData.events.splice(S,1);const w=saveFormdataInLocalStorage(c.formData);c.setFormdata(w)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}}}},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",options:[{label:"Click Event",value:"onClick"},{label:"Load Event",value:"onLoad"},{label:"Change Event",value:"onChange"},{label:"Success",value:"Success"},{label:"Fail",value:"Fail"}]}}},getSelectField("Handler","Handler",[{label:"Custom",value:"custom"},{label:"Api",value:"api"},{label:"Inbuilt Function",value:"inBuiltFunction"},{label:"Refresh",value:"refresh"}])]},{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:8,lg:8}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:3,lg:3},main:{name:"Save",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",options:[{label:"Get",value:"get"},{label:"Post",value:"post"},{label:"Delete",value:"delete"},{label:"Put",value:"put"}]}}},{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:{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:{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"}}}]}}}]};var event=(o,c)=>({setPage:async function(){const i=await this.getFormData();o.setFormdata(i);const h=await this.getSchema();o.setSchema(h),this.refreshPage(i.Handler,o)},refreshPage:(i,h)=>{const x=_.cloneDeep(EventUiSchema);i&&(i==="custom"?x.elements[1].elements[0].elements[2]=getTextArea("eventCode","Write Custom Code",!1):i==="api"?x.elements[1].elements[0].elements[2]=APISection:i==="inBuiltFunction"?(x.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name",[{label:"RankProvider",value:"RankProvider"},{label:"Download File",value:"downloadFile"}]),x.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6})):i==="refresh"&&(x.elements[1].elements[0].elements[2]=refreshSectionUiSchema)),h.setUiSchema(x)},getFormData:Component(o,c).getFormdata,getUiSchema:async function(){return EventUiSchema},getSchema:async()=>EventSchema,onChange:function(){var i,h,x;((i=o==null?void 0:o.formData)==null?void 0:i.Handler)!==((h=o==null?void 0:o.newData)==null?void 0:h.Handler)&&((x=o==null?void 0:o.newData)==null?void 0:x.Handler)!==void 0&&this.refreshPage(o.newData.Handler||o.formdata.Handler,o)},saveHandler:Component(o,c).saveHandler,addEvent:async function(){var x,S,w;const i=(x=o.searchParams)==null?void 0:x.get("path");Array.isArray(o.formData.events)||(o.formData.events=[]),saveFormdataInLocalStorage(o.formData,i);const h=`${i}.events[${(w=(S=o.formData)==null?void 0:S.events)==null?void 0:w.length}]`;o.searchParams.set("path",h),o.setSearchParams(o.searchParams),this.setPage()},editEvent:async function(){var S;const i=c.path.split(".")[1],h=(S=o.searchParams)==null?void 0:S.get("path");saveFormdataInLocalStorage(o.formData,h);const x=`${h}.events[${i}]`;o.searchParams.set("path",x),o.setSearchParams(o.searchParams),this.setPage()},deleteEvent:Component(o,c).deleteEvent,backHandler:function(){o.navigate(-1)}});const downloadFile$1=o=>{const c=o.name.split("."),i=o.data,h=window.atob(i);let x;x=new File([h],c[c.length-1]);const S=URL.createObjectURL(x),w=document.createElement("a");w.href=c[c.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:S,w.download=`${o.name}`,document.body.appendChild(w),w.click(),URL.revokeObjectURL(S),document.body.removeChild(w)},executeEvents=async(o,c,i,h,x,S,w,O,Z)=>{let ne=[],V=null;if(o.eventType==="onLoad"){const{response:q,events:ge}=await executetOnLoadEvent(o,c,i,h,x,S,w,O,Z);V=q,ne=ge}else{const{response:q,events:ge}=await executeEventsHandler(o,c,i,h,x,S,w,O,Z);V=q,ne=ge}if((ne==null?void 0:ne.length)>0)for(const q of ne)await executeEvents(q,c,i,h,x,S,w,O,V)},executetOnLoadEvent=async(o,c,i,h,x,S,w,O,Z)=>{try{const{response:ne}=await executeEventsHandler(o,c,i,h,x,S,w,O,Z),V=o==null?void 0:o.events.filter(ge=>ge.eventType==="Success"),q=V.length>0?V:[{Handler:"mergeFormdata",eventType:"Success",type:o.type}];return{response:ne,events:q}}catch{const V=o==null?void 0:o.events.filter(ge=>ge.eventType==="Fail"),q=V.length>0?V:[];return{response:void 0,events:q}}};async function executeEventsHandler(o,c,i,h,x,S,w,O,Z){if(o.Handler==="api")return await executeApiEventHandler(o,c,i,h,x,S);if(o.Handler==="inBuiltFunction")return await executeInBuiltFunctionHandler(o,c,i,h,x,S,w,Z);if(o.Handler==="custom")return await executeCustomHandler(o,c,i,h,x,S,w,Z);if(o.Handler==="refresh")return await executeRefreshHandler(o,c,i,h,x,S,w,Z,O);if(o.Handler==="mergeFormdata")return await mergeFormdata(Z,c,o,i)}async function executeRefreshHandler(o,c,i,h,x,S,w,O,Z){const ne=getRefreshElements(o,Z);for(const V of ne)for(const q of Z.onLoad[V])await executeEvents(q,V,i,h,x,S,w);return{response:void 0,events:void 0}}async function executeApiEventHandler(o,c,i,h,x,S,w,O){const Z={...x==null?void 0:x.payload},ne={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},{body:V,headers:q}=await buildApiPayload(o,Z,ne,i,h,x);let ge;return ge=await S[o.method](o.path,V,q&&{headers:q}),{response:ge,events:o==null?void 0:o.events}}async function executeInBuiltFunctionHandler(refreshHandlerConfig,componentName,store,dynamicData,userValue,service,serviceHolder,parentEventOutput){let parameter={};if(refreshHandlerConfig.funcParametersCode){const makeFunc=eval(refreshHandlerConfig.funcParametersCode);parameter=makeFunc(store,dynamicData,userValue,parentEventOutput,service)}return serviceHolder[refreshHandlerConfig.inBuiltFunctionType](parameter),{response:void 0,events:refreshHandlerConfig==null?void 0:refreshHandlerConfig.events}}async function executeCustomHandler(customHandlerConfig,componentName,store,dynamicData,userValue,service,serviceHolder,parentEventOutput){const makeFunc=eval(customHandlerConfig.eventCode);return makeFunc(store,dynamicData,userValue,parentEventOutput,service),{response:void 0,events:customHandlerConfig==null?void 0:customHandlerConfig.events}}async function mergeFormdata(o,c,i,h){return i.type==="Select"&&o?h.setSchema(x=>({...x,properties:{...x.properties,[c]:{enum:o.data}}})):i.type==="page"?h.setFormdata(x=>({...x,...o==null?void 0:o.data})):o&&h.setFormdata(x=>({...x,[c]:o.data})),{response:void 0,events:void 0}}const buildBodyFormat=(o,c,i)=>{const h={...i==null?void 0:i.payload};return o.map(x=>{var S,w;if((S=x==null?void 0:x.value)!=null&&S.startsWith("$userValue")){const O=x.value.substring(11);h[x.key]=_.get(i,O)}else if((w=x==null?void 0:x.value)!=null&&w.startsWith("$")){const O=x.value.substring(1);h[x.key]=_.get(c,O)}else h[x.key]=x.value}),h},buildHeadersFormat=o=>{const c={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"};return o.map(i=>{c[i.key]=i.value}),c};async function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var o,c;if(compConfig!=null&&compConfig.headers&&(headers={headers:buildHeadersFormat(compConfig.headers)}),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((c=(o=store==null?void 0:store.ctx)==null?void 0:o.core)==null?void 0:c.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(o,c){var h;let i=[];return((h=o==null?void 0:o.refreshElements)==null?void 0:h.length)>0?i=o.refreshElements.map(x=>x.value):c!=null&&c.onLoad&&(i=Object.keys(c==null?void 0:c.onLoad)),i}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},extractEvents=o=>{function c(i){i.events&&i.events.forEach(h=>{i.type&&(compType=i.type),eventGroups[h.eventType]||(eventGroups[h.eventType]={}),eventGroups[h.eventType][i.name]||(eventGroups[h.eventType][i.name]=[]),eventGroups[h.eventType][i.name].push({...h,type:compType})})}return c(o),o!=null&&o.elements&&o.elements.forEach(extractEvents),eventGroups};var service=o=>({setPage:async function(){eventGroups={},eventGroups=extractEvents(o.config),await executeEvents({Handler:"refresh",eventType:"onPageRefresh"},"all",o.store,o.dynamicData,o.userValue,o.service,this,eventGroups),o.uiSchema.elements.push(notifyUiSchema),o.store.setUiSchema(o.uiSchema)},onClick:async function(){var i;const c=((i=o.dynamicData)==null?void 0:i.tableButtonPath)||o.dynamicData.path.split(".")[0];for(const h of eventGroups==null?void 0:eventGroups.onClick[c])await executeEvents(h,c,o.store,o.dynamicData,o.userValue,o.service,this,eventGroups)},onChange:async function(){if(eventGroups.onChange){const c=Object.keys(eventGroups.onChange);Promise.all(c.map(async i=>{var h,x;if(((h=o.store)==null?void 0:h.formData[i])!==o.store.newData[i]&&((x=o.store)==null?void 0:x.newData[i])!==void 0)for(const S of eventGroups.onChange[i])await executeEvents(S,i,o.store,o.dynamicData,o.userValue,o.service,this,eventGroups)}))}},downloadFile:downloadFile$1}),emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},main:{},style:{}}},leaderBoard={type:"WrapperLayout",config:{main:{rowSpacing:3,header:!0,label:"LeaderBoard",divider:!0},wrapperStyle:{position:"relative",width:"100%",height:1200}},elements:[{type:"Control",scope:"#/properties/leaderBoard/properties/firstImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},style:{objectFit:"cover",position:"absolute",top:"60px",left:"calc(50% - 85px)",width:"180px",border:"5px solid rgb(179, 198, 255)",height:"180px",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},style:{objectFit:"cover",position:"absolute",top:"130px",left:"calc(25% - 90px)",width:"180px",border:"5px solid rgb(179, 198, 255)",height:"180px",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},style:{objectFit:"cover",position:"absolute",top:"130px",left:"calc(75% - 85px)",width:"170px",border:"5px solid rgb(179, 198, 255)",height:"180px",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/firstName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",top:"250px",display:"flex",justifyContent:"center",alignItems:"center",color:"black",left:"calc(50% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",top:"320px",display:"flex",justifyContent:"center",alignItems:"center",color:"black",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",top:"320px",display:"flex",justifyContent:"center",alignItems:"center",color:"black",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",top:"280px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",left:"calc(25% - 16px)","@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:"40px",border:"5px solid rgb(179, 198, 255)",height:"40px",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/first",config:{main:{heading:"1"},style:{objectFit:"cover",position:"absolute",top:"210px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",left:"calc(50% - 16px)","@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:"40px",border:"5px solid rgb(179, 198, 255)",height:"40px",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/third",config:{main:{heading:"3"},style:{objectFit:"cover",position:"absolute",top:"280px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",left:"calc(75% - 20px)","@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:"40px",border:"5px solid rgb(179, 198, 255)",height:"40px",borderRadius:"50%"},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:"390px",border:"2px solid rgb(179, 198, 255)",width:"95%",left:"2.5%"},main:{disableAction:!0,disableSelection:!0}}}]};const buildLeaderBoard=o=>{const c=_.cloneDeep(leaderBoard);if(o.elements){const i=o.elements.map((h,x)=>h.type?{...{widget:buildUiSchema(h),accessorKey:h.name,header:h.label||h.name}}:{accessorKey:h.name,header:h.label||h.name});c.elements[9].elements=i}return o.name&&(c.elements[0].scope=`#/properties/${o.name}/properties/firstImage`,c.elements[3].scope=`#/properties/${o.name}/properties/firstName`,c.elements[1].scope=`#/properties/${o.name}/properties/secondImage`,c.elements[4].scope=`#/properties/${o.name}/properties/secondName`,c.elements[2].scope=`#/properties/${o.name}/properties/thirdImage`,c.elements[5].scope=`#/properties/${o.name}/properties/thirdName`,c.elements[9].scope=`#/properties/${o.name}/properties/table`),o.firstImage&&(c.elements[0].config.main.url=o.firstImage),o.secondImage&&(c.elements[1].config.main.url=o.secondImage),o.secondImage&&(c.elements[2].config.main.url=o.thirdImage),o.layout&&(c.config.layout=o.layout),c};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:6,main:{developOnlyProgresBar:!0,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(o,c)=>{const i=_.cloneDeep(progressBar);return i.scope=c,o.heading&&(i.elements[0].config.main.heading=o.heading),o.bottomLabel_3&&(i.elements[0].config.main.bottomLabel_3=o.bottomLabel_3),o.bottomLabel_2&&(i.elements[0].config.main.bottomLabel_2=o.bottomLabel_2),o.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=o.bottomLabel_1),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i},buildProgressBar=(o,c)=>{const i=_.cloneDeep(progressBar);return i.scope=c,o.layout&&(i.config.layout=o.layout),i.config.main.heading=o.heading,o.bottomLabel_3&&(i.config.main.bottomLabel_3=o.bottomLabel_3),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),o.bottomLabel_2&&(i.config.main.bottomLabel_2=o.bottomLabel_2),o.bottomLabel_1&&(i.config.main.bottomLabel_1=o.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:{}}}},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=(o,c)=>{const i=_.cloneDeep(HorizontalBarGraph);return o.layout&&(i.config.layout=o.layout),i.scope=c,i.config.main.header=o.heading,o.barColor&&(i.config.barStyle.color=o.barColor),o.containerBackground&&(i.config.containerStyle.background=o.containerBackground),o.height&&(i.config.containerStyle.height=o.height),o.bottomLabel&&(i.config.main.bottomLabel=o.bottomLabel),o.leftLabel&&(i.config.main.leftLabel=o.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:12,main:{currentValueText:"",customSegmentLabels:{},data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",segments:5,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=(o,c)=>{const i=_.cloneDeep(SpeedoMeter);return i.scope=c,o.layout&&(i.config.layout=o.layout),o.heading&&(i.config.main.header=o.heading),o.currentValueText&&(i.config.main.currentValueText=o.currentValueText),o.customSegmentLabels&&(i.config.main.customSegmentLabels=o.customSegmentLabels),o.data&&(i.config.main.data=o.data),o.needleColor&&(i.config.style.needleColor=o.needleColor),o.segments&&(i.config.style.segments=o.segments),o.endColor&&(i.config.style.endColor=o.endColor),o.startColor&&(i.config.style.startColor=o.startColor),o.segmentColors&&(i.config.style.segmentColors=o.segmentColors),i},buildPieGraph=(o,c)=>{const i=_.cloneDeep(PieGraph);return o.layout&&(i.config.layout=o.layout),o.containerBackground&&(i.config.style.containerStyle.background=o.containerBackground),o.height&&(i.config.style.containerStyle.height=o.height),o.legendAvailabe&&(i.config.main.legendAvailabe=o.legendAvailabe!=="YES"),i.scope=c,i.config.main.header=o.heading,o.bottomLabel&&(i.config.main.bottomLabel=o.bottomLabel),o.leftLabel&&(i.config.main.leftLabel=o.leftLabel),o.tooltipDataKey&&(i.config.main.tooltipDataKey=o.tooltipDataKey),i},buildStackbarGraph=(o,c)=>{const i=_.cloneDeep(BarGraph);return o.layout&&(i.config.layout=o.layout),o.legendHide&&(i.config.main.legendAvailable=!1),i.config.main.type=o.graphType,i.config.main.header=o.heading,o.barColor&&(i.config.barStyle.color=o.barColor),o.containerBackground&&(i.config.containerStyle.background=o.containerBackground),o.height&&(i.config.style.containerStyle.height=o.height),o.bottomLabel&&(i.config.main.bottomLabel=o.bottomLabel),o.leftLabel&&(i.config.main.leftLabel=o.leftLabel),i.scope=c,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=(o,c)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=c,o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(o,c)=>{const i=_.cloneDeep(Tabsection);return o.sectionLabels&&(i.config.main.tabLabels=o.sectionLabels.map(h=>h.label)),i.config.main.id=o.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{label:"Default Label",divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(o,c)=>{const i=_.cloneDeep(WrapperSection);return i.config.main.label=o.label,i.config.main.divider=!!o.divider,i.config.main.header=!!o.heading,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=(o,c)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=o.label,o.style&&(i.config.style=JSON.parse(o.style)),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i.config.main.errorMessage=`${o.name} is empty or invalid`,i.scope=c,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"}}};const buildSelect=(o,c)=>{const i=_.cloneDeep(SelectInputField);if(i.config.main.label=o.label,o.value){const h=o.value.map(x=>({label:x.label,value:x.value}));i.config.main.options=h}return o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i.scope=c,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:"",icon:"",onClick:"onClick",size:"large"},style:{}}};const buildButton=(o,c)=>{const i=_.cloneDeep(Button);return o.buttonType&&(i.options.widget=o.buttonType==="IconButton"?"IconButton":"Button",o.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=o.iconName:i.config.main.icon=o.iconName),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i.scope=c,o.style&&(i.config.style=JSON.parse(o.style)),o.size&&(i.config.main.size=o.size),o.color&&(i.config.main.size=o.color),i.config.main.name=o.label,i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{allRowData:[],columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(o,c)=>{const i=_.cloneDeep(Table);return i.scope=c,o.style&&(i.config.style=JSON.parse(o.style)),i.config.main.label=o.label,i};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(o,c)=>{const i=_.cloneDeep(Box);return i.scope=c,i.config.main.heading=o.label,o.layout&&(i.config.layout=createLayoutFormat(o.layout)),o.style&&(i.config.style=JSON.parse(o.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=(o,c)=>{const i=_.cloneDeep(uploadFile);return i.scope=c,i.config.main.label=o.label,o.layout&&(i.config.layout=o.layout),o.layout&&(uploadFile.config.layout=createLayoutFormat(o.layout)),o.style&&(i.config.style=o.style),o.required&&(i.config.main.required=!0),i.config.main.errorMessage=o.errorMessage,i},buildDownloadFile=(o,c)=>{const i=_.cloneDeep(downloadFile);return i.scope=c,o.layout&&(i.config.layout=o.layout),o.style&&(i.config.style=o.style),o.required&&(i.config.main.required=!0),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),o.errorMessage&&(i.config.main.errorMessage=o.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:"Box"}},{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=(o,c)=>{const i=_.cloneDeep(Card);return o.style&&(i.config.style=JSON.parse(o.style)),i.elements[0].scope=`#/properties/${o.name.replace(/ /g,"")}/value`,i.elements[1].scope=`#/properties/${o.name.replace(/ /g,"")}/url`,i.elements[2].scope=`#/properties/${o.name.replace(/ /g,"")}/description`,o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i.elements[0].config.main.heading=o.label,i.elements[1].config.main.url=o.url,i.elements[2].config.main.heading=o.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=(o,c)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=o.label,i.config.main.errorMessage=`${o.name} is empty or invalid`,i.scope=c,o.layout&&(i.config.layout=createLayoutFormat(o.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=(o,c)=>{const i=_.cloneDeep(RankCard);return i.scope=c,o.image&&(i.config.main.url=o.image),o.title&&(i.config.main.title=o.title),o.description&&(i.config.main.description=o.description),o.rank&&(i.config.main.rank=`#${o.rank}`),o.layout&&(i.config.layout=createLayoutFormat(o.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=(o,c)=>{const i=_.cloneDeep(RollAndDice);return o.name&&(i.scope=c),o.layout&&(i.config.layout=createLayoutFormat(o.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=(o,c)=>{const i=_.cloneDeep(Timer);return i.scope=c,o.label&&(i.config.main.label=o.label),o.layout&&(i.config.layout=o.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=(o,c)=>{var h;const i=_.cloneDeep(MultipleSelect);return i.scope=c,o.label&&(i.config.main.label=o.label),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i.config.main.options=(h=o.value)!=null?h:[],i},buildBasicUiSchema=o=>({type:"HorizontalLayout",pageName:`${o.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=(o,c)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=o.label,o.layout&&(i.config.layout=createLayoutFormat(o.layout)),o.style&&(i.config.style=JSON.parse(o.style)),i.scope=c,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildSlider=(o,c)=>{const i=_.cloneDeep(cardSlider);return o.name&&(i.scope=c),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i},buildUiSchema=o=>{let c={};const i=`#/properties/${o.name}`;switch(o.type){case"RunnerBoyProgressBar":c=RunnerBoyProgressbar(o,i);break;case"TabSection":c=buildTabSection(o);break;case"WrapperSection":c=buildWrapperSection(o);break;case"Text":c=buildTextField(o,i);break;case"TextArea":c=buildTextArea(o,i);break;case"Date":c=buildDate(o,i);break;case"Select":c=buildSelect(o,i);break;case"Button":c=buildButton(o,i);break;case"Table":c=buildTable(o,i);break;case"Box":c=buildLabel(o,i);break;case"UploadFile":c=buildUploadFile(o,i);break;case"DownloadFile":c=buildDownloadFile(o,i);break;case"EmptyBox":const h=_.cloneDeep(emptyBox);o.layout&&(h.config.layout=o.layout),c=h;break;case"card":c=buildCard(o);break;case"Graph":switch(o.graphType){case"BarGraph":case"StackBarGraph":c=buildStackbarGraph(o,i);break;case"LineGraph":c=buildPieGraph(o,i);break;case"PieGraph":c=buildPieGraph(o,i);break;case"HorizontalBarGraph":c=buildHorizontalBarGraph(o,i);break}break;case"ProgressBar":c=buildProgressBar(o,i);break;case"SpeedoMeter":c=buildSpeedoMeter(o,i);break;case"ProgressBarCard":c=buildProgressBarCard(o,i);break;case"RankCard":c=buildRankCard(o,i);break;case"Rank":c=buildRollAndDice(o,i);break;case"Slider":c=buildSlider(o,i);break;case"Timer":c=buildTimer(o,i);break;case"MultipleSelect":c=buildMultiSelect(o,i);break;case"LeaderBoard":c=buildLeaderBoard(o);break;default:c=buildBasicUiSchema(o)}if(o!=null&&o.elements){if((o==null?void 0:o.type)==="LeaderBoard")return c;o.type=="Table"?c.elements=o.elements.map((h,x)=>h.type?{accessorKey:h.name,header:h.label||h.name,widget:buildUiSchema(h)}:{accessorKey:h.name,header:h.label||h.name}):c.elements=o.elements.map((h,x)=>buildUiSchema(h))}return c};var clearLocalStorage=()=>{localStorage.removeItem("pageFormdata")};exports.buildConfig=buildConfig,exports.buildUiSchema=buildUiSchema,exports.clearPreviousCache=clearLocalStorage,exports.pageMaster=pageMaster,exports.pageMasterComponents=Component,exports.pageMasterEvents=event,exports.pageService=service,Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
27
+ }`;var D=rl(function(){return k(s,B+"return "+b).apply(i,u)});if(D.source=b,hi(D))throw D;return D}function ug(e){return U(e).toLowerCase()}function cg(e){return U(e).toUpperCase()}function pg(e,t,n){if(e=U(e),e&&(n||t===i))return po(e);if(!e||!(t=ye(t)))return e;var r=Ee(e),a=Ee(t),s=fo(r,a),u=go(r,a)+1;return lt(r,s,u).join("")}function fg(e,t,n){if(e=U(e),e&&(n||t===i))return e.slice(0,mo(e)+1);if(!e||!(t=ye(t)))return e;var r=Ee(e),a=go(r,Ee(t))+1;return lt(r,0,a).join("")}function dg(e,t,n){if(e=U(e),e&&(n||t===i))return e.replace(hr,"");if(!e||!(t=ye(t)))return e;var r=Ee(e),a=fo(r,Ee(t));return lt(r,a).join("")}function gg(e,t){var n=al,r=ll;if(Y(t)){var a="separator"in t?t.separator:a;n="length"in t?E(t.length):n,r="omission"in t?ye(t.omission):r}e=U(e);var s=e.length;if(At(e)){var u=Ee(e);s=u.length}if(n>=s)return e;var p=n-Tt(r);if(p<1)return r;var d=u?lt(u,0,p).join(""):e.slice(0,p);if(a===i)return d+r;if(u&&(p+=d.length-p),mi(a)){if(e.slice(p).search(a)){var y,v=d;for(a.global||(a=Er(a.source,U(Di.exec(a))+"g")),a.lastIndex=0;y=a.exec(v);)var b=y.index;d=d.slice(0,b===i?p:b)}}else if(e.indexOf(ye(a),p)!=p){var C=d.lastIndexOf(a);C>-1&&(d=d.slice(0,C))}return d+r}function hg(e){return e=U(e),e&&Ll.test(e)?e.replace(Fi,zs):e}var mg=Wt(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),bi=ia("toUpperCase");function nl(e,t,n){return e=U(e),t=n?i:t,t===i?Os(e)?qs(e):Ts(e):e.match(t)||[]}var rl=P(function(e,t){try{return he(e,i,t)}catch(n){return hi(n)?n:new F(n)}}),yg=Ze(function(e,t){return Ce(t,function(n){n=Ne(n),qe(e,n,di(e[n],e))}),e});function vg(e){var t=e==null?0:e.length,n=I();return e=t?K(e,function(r){if(typeof r[1]!="function")throw new Se(w);return[n(r[0]),r[1]]}):[],P(function(r){for(var a=-1;++a<t;){var s=e[a];if(he(s[0],this,r))return he(s[1],this,r)}})}function bg(e){return zu(Be(e,q))}function _i(e){return function(){return e}}function _g(e,t){return e==null||e!==e?t:e}var xg=aa(),wg=aa(!0);function de(e){return e}function xi(e){return Wo(typeof e=="function"?e:Be(e,q))}function Cg(e){return Oo(Be(e,q))}function Sg(e,t){return ko(e,Be(t,q))}var Lg=P(function(e,t){return function(n){return nn(n,e,t)}}),Bg=P(function(e,t){return function(n){return nn(e,n,t)}});function wi(e,t,n){var r=te(t),a=On(t,r);n==null&&!(Y(t)&&(a.length||!r.length))&&(n=t,t=e,e=this,a=On(t,te(t)));var s=!(Y(n)&&"chain"in n)||!!n.chain,u=Xe(e);return Ce(a,function(p){var d=t[p];e[p]=d,u&&(e.prototype[p]=function(){var y=this.__chain__;if(s||y){var v=e(this.__wrapped__),b=v.__actions__=ce(this.__actions__);return b.push({func:d,args:arguments,thisArg:e}),v.__chain__=y,v}return d.apply(e,tt([this.value()],arguments))})}),e}function Ig(){return re._===this&&(re._=Vs),this}function Ci(){}function Ag(e){return e=E(e),P(function(t){return Uo(t,e)})}var Tg=ei(K),Fg=ei(ao),Rg=ei(Lr);function il(e){return li(e)?Br(Ne(e)):ac(e)}function Eg(e){return function(t){return e==null?i:mt(e,t)}}var Dg=sa(),Pg=sa(!0);function Si(){return[]}function Li(){return!1}function Mg(){return{}}function Wg(){return""}function Hg(){return!0}function Og(e,t){if(e=E(e),e<1||e>je)return[];var n=Oe,r=oe(e,Oe);t=I(t),e-=Oe;for(var a=Tr(r,t);++n<e;)t(n);return a}function kg(e){return R(e)?K(e,Ne):ve(e)?[e]:ce(Sa(U(e)))}function Ug(e){var t=++Xs;return U(e)+t}var Ng=$n(function(e,t){return e+t},0),Gg=ti("ceil"),zg=$n(function(e,t){return e/t},1),$g=ti("floor");function Kg(e){return e&&e.length?Hn(e,de,Ur):i}function qg(e,t){return e&&e.length?Hn(e,I(t,2),Ur):i}function Yg(e){return uo(e,de)}function Zg(e,t){return uo(e,I(t,2))}function Jg(e){return e&&e.length?Hn(e,de,$r):i}function Xg(e,t){return e&&e.length?Hn(e,I(t,2),$r):i}var Qg=$n(function(e,t){return e*t},1),Vg=ti("round"),jg=$n(function(e,t){return e-t},0);function eh(e){return e&&e.length?Ar(e,de):0}function th(e,t){return e&&e.length?Ar(e,I(t,2)):0}return l.after=Cf,l.ary=Ma,l.assign=cd,l.assignIn=Ja,l.assignInWith=rr,l.assignWith=pd,l.at=fd,l.before=Wa,l.bind=di,l.bindAll=yg,l.bindKey=Ha,l.castArray=Mf,l.chain=Ea,l.chunk=zc,l.compact=$c,l.concat=Kc,l.cond=vg,l.conforms=bg,l.constant=_i,l.countBy=jp,l.create=dd,l.curry=Oa,l.curryRight=ka,l.debounce=Ua,l.defaults=gd,l.defaultsDeep=hd,l.defer=Sf,l.delay=Lf,l.difference=qc,l.differenceBy=Yc,l.differenceWith=Zc,l.drop=Jc,l.dropRight=Xc,l.dropRightWhile=Qc,l.dropWhile=Vc,l.fill=jc,l.filter=tf,l.flatMap=of,l.flatMapDeep=af,l.flatMapDepth=lf,l.flatten=Aa,l.flattenDeep=ep,l.flattenDepth=tp,l.flip=Bf,l.flow=xg,l.flowRight=wg,l.fromPairs=np,l.functions=wd,l.functionsIn=Cd,l.groupBy=sf,l.initial=ip,l.intersection=op,l.intersectionBy=ap,l.intersectionWith=lp,l.invert=Ld,l.invertBy=Bd,l.invokeMap=cf,l.iteratee=xi,l.keyBy=pf,l.keys=te,l.keysIn=fe,l.map=Qn,l.mapKeys=Ad,l.mapValues=Td,l.matches=Cg,l.matchesProperty=Sg,l.memoize=jn,l.merge=Fd,l.mergeWith=Xa,l.method=Lg,l.methodOf=Bg,l.mixin=wi,l.negate=er,l.nthArg=Ag,l.omit=Rd,l.omitBy=Ed,l.once=If,l.orderBy=ff,l.over=Tg,l.overArgs=Af,l.overEvery=Fg,l.overSome=Rg,l.partial=gi,l.partialRight=Na,l.partition=df,l.pick=Dd,l.pickBy=Qa,l.property=il,l.propertyOf=Eg,l.pull=pp,l.pullAll=Fa,l.pullAllBy=fp,l.pullAllWith=dp,l.pullAt=gp,l.range=Dg,l.rangeRight=Pg,l.rearg=Tf,l.reject=mf,l.remove=hp,l.rest=Ff,l.reverse=pi,l.sampleSize=vf,l.set=Md,l.setWith=Wd,l.shuffle=bf,l.slice=mp,l.sortBy=wf,l.sortedUniq=Cp,l.sortedUniqBy=Sp,l.split=og,l.spread=Rf,l.tail=Lp,l.take=Bp,l.takeRight=Ip,l.takeRightWhile=Ap,l.takeWhile=Tp,l.tap=$p,l.throttle=Ef,l.thru=Xn,l.toArray=qa,l.toPairs=Va,l.toPairsIn=ja,l.toPath=kg,l.toPlainObject=Za,l.transform=Hd,l.unary=Df,l.union=Fp,l.unionBy=Rp,l.unionWith=Ep,l.uniq=Dp,l.uniqBy=Pp,l.uniqWith=Mp,l.unset=Od,l.unzip=fi,l.unzipWith=Ra,l.update=kd,l.updateWith=Ud,l.values=kt,l.valuesIn=Nd,l.without=Wp,l.words=nl,l.wrap=Pf,l.xor=Hp,l.xorBy=Op,l.xorWith=kp,l.zip=Up,l.zipObject=Np,l.zipObjectDeep=Gp,l.zipWith=zp,l.entries=Va,l.entriesIn=ja,l.extend=Ja,l.extendWith=rr,wi(l,l),l.add=Ng,l.attempt=rl,l.camelCase=Kd,l.capitalize=el,l.ceil=Gg,l.clamp=Gd,l.clone=Wf,l.cloneDeep=Of,l.cloneDeepWith=kf,l.cloneWith=Hf,l.conformsTo=Uf,l.deburr=tl,l.defaultTo=_g,l.divide=zg,l.endsWith=qd,l.eq=Pe,l.escape=Yd,l.escapeRegExp=Zd,l.every=ef,l.find=nf,l.findIndex=Ba,l.findKey=md,l.findLast=rf,l.findLastIndex=Ia,l.findLastKey=yd,l.floor=$g,l.forEach=Da,l.forEachRight=Pa,l.forIn=vd,l.forInRight=bd,l.forOwn=_d,l.forOwnRight=xd,l.get=yi,l.gt=Nf,l.gte=Gf,l.has=Sd,l.hasIn=vi,l.head=Ta,l.identity=de,l.includes=uf,l.indexOf=rp,l.inRange=zd,l.invoke=Id,l.isArguments=bt,l.isArray=R,l.isArrayBuffer=zf,l.isArrayLike=pe,l.isArrayLikeObject=X,l.isBoolean=$f,l.isBuffer=st,l.isDate=Kf,l.isElement=qf,l.isEmpty=Yf,l.isEqual=Zf,l.isEqualWith=Jf,l.isError=hi,l.isFinite=Xf,l.isFunction=Xe,l.isInteger=Ga,l.isLength=tr,l.isMap=za,l.isMatch=Qf,l.isMatchWith=Vf,l.isNaN=jf,l.isNative=ed,l.isNil=nd,l.isNull=td,l.isNumber=$a,l.isObject=Y,l.isObjectLike=J,l.isPlainObject=un,l.isRegExp=mi,l.isSafeInteger=rd,l.isSet=Ka,l.isString=nr,l.isSymbol=ve,l.isTypedArray=Ot,l.isUndefined=id,l.isWeakMap=od,l.isWeakSet=ad,l.join=sp,l.kebabCase=Jd,l.last=Ae,l.lastIndexOf=up,l.lowerCase=Xd,l.lowerFirst=Qd,l.lt=ld,l.lte=sd,l.max=Kg,l.maxBy=qg,l.mean=Yg,l.meanBy=Zg,l.min=Jg,l.minBy=Xg,l.stubArray=Si,l.stubFalse=Li,l.stubObject=Mg,l.stubString=Wg,l.stubTrue=Hg,l.multiply=Qg,l.nth=cp,l.noConflict=Ig,l.noop=Ci,l.now=Vn,l.pad=Vd,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=Vg,l.runInContext=f,l.sample=yf,l.size=_f,l.snakeCase=ig,l.some=xf,l.sortedIndex=yp,l.sortedIndexBy=vp,l.sortedIndexOf=bp,l.sortedLastIndex=_p,l.sortedLastIndexBy=xp,l.sortedLastIndexOf=wp,l.startCase=ag,l.startsWith=lg,l.subtract=jg,l.sum=eh,l.sumBy=th,l.template=sg,l.times=Og,l.toFinite=Qe,l.toInteger=E,l.toLength=Ya,l.toLower=ug,l.toNumber=Te,l.toSafeInteger=ud,l.toString=U,l.toUpper=cg,l.trim=pg,l.trimEnd=fg,l.trimStart=dg,l.truncate=gg,l.unescape=hg,l.uniqueId=Ug,l.upperCase=mg,l.upperFirst=bi,l.each=Da,l.eachRight=Pa,l.first=Ta,wi(l,function(){var e={};return ke(l,function(t,n){N.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=h,Ce(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),Ce(["drop","take"],function(e,t){W.prototype[e]=function(n){n=n===i?1:ee(E(n),0);var r=this.__filtered__&&!t?new W(this):this.clone();return r.__filtered__?r.__takeCount__=oe(n,r.__takeCount__):r.__views__.push({size:oe(n,Oe),type:e+(r.__dir__<0?"Right":"")}),r},W.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),Ce(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==Ii||n==pl;W.prototype[e]=function(a){var s=this.clone();return s.__iteratees__.push({iteratee:I(a,3),type:n}),s.__filtered__=s.__filtered__||r,s}}),Ce(["head","last"],function(e,t){var n="take"+(t?"Right":"");W.prototype[e]=function(){return this[n](1).value()[0]}}),Ce(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");W.prototype[e]=function(){return this.__filtered__?new W(this):this[n](1)}}),W.prototype.compact=function(){return this.filter(de)},W.prototype.find=function(e){return this.filter(e).head()},W.prototype.findLast=function(e){return this.reverse().find(e)},W.prototype.invokeMap=P(function(e,t){return typeof e=="function"?new W(this):this.map(function(n){return nn(n,e,t)})}),W.prototype.reject=function(e){return this.filter(er(I(e)))},W.prototype.slice=function(e,t){e=E(e);var n=this;return n.__filtered__&&(e>0||t<0)?new W(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==i&&(t=E(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},W.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},W.prototype.toArray=function(){return this.take(Oe)},ke(W.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),a=l[r?"take"+(t=="last"?"Right":""):t],s=r||/^find/.test(t);!a||(l.prototype[t]=function(){var u=this.__wrapped__,p=r?[1]:arguments,d=u instanceof W,y=p[0],v=d||R(u),b=function(M){var H=a.apply(l,tt([M],p));return r&&C?H[0]:H};v&&n&&typeof y=="function"&&y.length!=1&&(d=v=!1);var C=this.__chain__,B=!!this.__actions__.length,A=s&&!C,D=d&&!B;if(!s&&v){u=D?u:new W(this);var T=e.apply(u,p);return T.__actions__.push({func:Xn,args:[b],thisArg:i}),new Le(T,C)}return A&&D?e.apply(this,p):(T=this.thru(b),A?r?T.value()[0]:T.value():T)})}),Ce(["pop","push","shift","sort","splice","unshift"],function(e){var t=wn[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(r&&!this.__chain__){var s=this.value();return t.apply(R(s)?s:[],a)}return this[n](function(u){return t.apply(R(u)?u:[],a)})}}),ke(W.prototype,function(e,t){var n=l[t];if(n){var r=n.name+"";N.call(Dt,r)||(Dt[r]=[]),Dt[r].push({name:t,func:n})}}),Dt[zn(i,ut).name]=[{name:"wrapper",func:i}],W.prototype.clone=gu,W.prototype.reverse=hu,W.prototype.value=mu,l.prototype.at=Kp,l.prototype.chain=qp,l.prototype.commit=Yp,l.prototype.next=Zp,l.prototype.plant=Xp,l.prototype.reverse=Qp,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Vp,l.prototype.first=l.prototype.head,Jt&&(l.prototype[Jt]=Jp),l},Ft=Ys();pt?((pt.exports=Ft)._=Ft,xr._=Ft):re._=Ft}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{layout:{type:"array",items:{type:"object",properties:{key:{type:"string"},value:{type:"string"}}}},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"}}}}}},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",options:[{label:"Select",value:"Select"},{label:"Date",value:"Date"},{label:"CheckBox",value:"CheckBox"},{label:"Table",value:"Table"},{label:"Array",value:"Array"},{label:"Container",value:"WrapperSection"},{label:"Tabs",value:"TabSection"},{label:"Text",value:"Text"},{label:"Text Area",value:"TextArea"},{label:"Button",value:"Button"},{label:"Card",value:"card"},{label:"Rank",value:"Rank"},{label:"SpeedoMeter",value:"SpeedoMeter"},{label:"ProgressBar",value:"ProgressBar"},{label:"Graph",value:"Graph"},{label:"Label",value:"Box"},{label:"Upload File",value:"UploadFile"},{label:"Download File",value:"DownloadFile"},{label:"Empty Box",value:"EmptyBox"},{label:"ProgressBar Card",value:"ProgressBarCard"},{label:"Rank Card",value:"RankCard"},{label:"Runner Boy Progress Bar",value:"RunnerBoyProgressBar"},{label:"Slider",value:"Slider"},{label:"Timer",value:"Timer"},{label:"MultipleSelect",value:"MultipleSelect"},{label:"LeaderBoard",value:"LeaderBoard"}]}}},{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",options:[{label:"Extra Small",value:"xs"},{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}}},{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/proc",config:{layout:{xs:11,sm:11,md:8,lg:8}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:3,lg:3},main:{name:"Save",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}]};var buildConfig=o=>{const c=_.cloneDeep(o);let i={};return c.pageName&&delete c.pageName,c.eventsSelected&&delete c.eventsSelected,(c.type==="Table"||c.type==="WrapperSection"||c.type==="TabSection")&&(i.elements=c.elements||[],c.elements&&delete c.elements),i.events=c.events||[],c.events&&delete c.events,i={...c,...i},i};const createLayoutFormat=o=>{let c={};return o.map(i=>{c[i.key]=+i.value}),c},getNavigationHistory=(o,c)=>{if(c){let i=o.name;const h=c.split("."),x=[];return h.map((S,w)=>{if(w===0){x.push(S);return}x.push(`${x[w-1]}.${S}`)}),x.map(S=>{const w=_.get(o,S);i=i+` > ${(w==null?void 0:w.name)||(w==null?void 0:w.eventType)}`}),{pageName:i}}},saveFormdataInLocalStorage=(o,c)=>{let i;if(c){const h=getFormdataFromLocalStorage();i=_.set(h,c,buildConfig(o))}else i=buildConfig(o);return localStorage.setItem("pageFormdata",JSON.stringify(i)),i},getFormdataFromLocalStorage=o=>{const c=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let i;return o&&(i=_.get(c,o),i={...i,...getNavigationHistory(c,o)}),i||(i=getNavigationHistory(c,o)),i||c},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",options:[{label:"Select",value:"Select"},{label:"Date",value:"Date"},{label:"CheckBox",value:"CheckBox"},{label:"Table",value:"Table"},{label:"Array",value:"Array"},{label:"Container",value:"WrapperSection"},{label:"Tabs",value:"TabSection"},{label:"Text",value:"Text"},{label:"Text Area",value:"TextArea"},{label:"Button",value:"Button"},{label:"Card",value:"card"},{label:"Rank",value:"Rank"},{label:"SpeedoMeter",value:"SpeedoMeter"},{label:"ProgressBar",value:"ProgressBar"},{label:"Graph",value:"Graph"},{label:"Label",value:"Box"},{label:"Upload File",value:"UploadFile"},{label:"Download File",value:"DownloadFile"},{label:"Empty Box",value:"EmptyBox"},{label:"ProgressBar Card",value:"ProgressBarCard"},{label:"Rank Card",value:"RankCard"},{label:"Runner Boy Progress Bar",value:"RunnerBoyProgressBar"},{label:"Slider",value:"Slider"},{label:"Timer",value:"Timer"},{label:"MultipleSelect",value:"MultipleSelect"},{label:"LeaderBoard",value:"LeaderBoard"}]}}},{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:{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:"Screen Size",options:[{label:"Extra Small",value:"xs"},{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}}]},OptionArray={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"}}}]}}},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"}}}}]}]}]},getInputField=(o,c)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:c}}}),getRadioInputField=(o,c,i)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:c,options:i}}}),getTextArea=(o,c,i,h)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"TextArea"},config:{layout:h||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:c,minRows:8,hideButton:i}}}),getSelectField=(o,c,i)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:c,type:"text",options:i}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(o){let c=_.cloneDeep(GraphSection);if(o==="SpeedoMeter"||o==="RankCard"||o==="Timer")c.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];else if(o==="LeaderBoard")c.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)];else if(o==="CardSlider"){const i=getInputField("heading","Heading"),h=getInputField("iconName","Icon Name");c.elements=[i,h]}else if(o==="ProgressBar"||o==="ProgressBarCard"){const i=getInputField("heading","Heading"),h=getInputField("bottomLabel_1","First BottomLabel"),x=getInputField("bottomLabel_2","Second BottomLabel"),S=getInputField("bottomLabel_3","Third BottomLabel");c.elements=[i,h,x,S]}else if(o==="card")c.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description")];else if(o==="Box"){const i=getInputField("value","Value");c.elements=[getSelectField("graphType","Label Type",[{label:"URL",value:"url"},{label:"Heading",value:"heading"}]),i]}else if(o==="Button"){const i=getInputField("color","Color"),h=getInputField("size","Size"),x=getInputField("iconName","Icon Name");c.elements=[getSelectField("buttonType","Button Type",[{label:"Button With Text",value:"Button"},{label:"Button With Icon",value:"IconButton"},{label:"Button With Icon and Text",value:"ButtonWithIconAndText"}]),x,h,i]}else if(o==="Graph"){const i=getInputField("height","Height"),h=getInputField("heading","Heading"),x=getInputField("leftLabel","Left Label"),S=getInputField("bottomLabel","Bottom Label"),w=getRadioInputField("legendHide","Legend Hide",["YES","No"]);c.elements=[h,i,getSelectField("graphType","Graph Type",[{label:"Bar Graph",value:"BarGraph"},{label:"Stack Bar Graph",value:"StackBarGraph"},{label:"Pie Graph",value:"PieGraph"},{label:"Horizontal Bar Graph",value:"HorizontalBarGraph"}]),x,S,w]}else o==="WrapperSection"?c.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("heading","Page Heading",["YES","No"])]:o==="TabSection"&&(c.elements=[{type:"Control",scope:"#/properties/sectionLabels",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:"Labels for Tab"}}}]}}}]);return c},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:"Back"},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:[OptionArray]},sectionLabels={Select:["Core","Value","style","Event"],MultipleSelect:["Core","Value","style","Event"],Table:["Core","Components","style","Event"],LeaderBoard:["Core","Components","Properties","style","Event"],WrapperSection:["Core","Components","Properties","style"],TabSection:["Core","Components","Properties","style"],SpeedoMeter:["Core","Properties","style","Event"],card:["Core","Properties","style","Event"],UploadFile:["Core","style","Event"],Graph:["Core","Properties","style","Event"],DownloadFile:["Core","style","Event"],Box:["Core","Properties","style","Event"],Properties:["Core","Properties","style","Event"],ProgressBarCard:["Core","Properties","style","Event"],RankCard:["Core","Properties","style","Event"],Slider:["Core","Components","Properties","style","Event"],Timer:["Core","Properties","style","Event"],Rank:["Core","Properties","style","Event"],Button:["Core","Properties","style","Event"],Array:["Core","Components"]},refreshPage=(o,c)=>{var h;const i=_.cloneDeep(componentBasicUiSchema);if(o){const x={Core:CoreSection,Value:ValueTab,style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(o)},S=(h=sectionLabels[o])==null?void 0:h.map(w=>x[w]);i.elements[1].config.main.tabLabels=sectionLabels[o]||["Core","style","Event"],i.elements[1].elements=S||[CoreSection,StyleSection,EventSection]}c.setUiSchema(i)};var Component=(o,c)=>({setPage:async function(){const i=await this.getFormdata();o.setFormdata(i);const h=this.getSchema();o.setSchema(h),this.refreshPage(i==null?void 0:i.type,o)},refreshPage,getFormdata:async function(){var h;const i=(h=o.searchParams)==null?void 0:h.get("path");return getFormdataFromLocalStorage(i)},getSchema:function(){return ComponentSchema},saveHandler:async function(){var h;const i=(h=o.searchParams)==null?void 0:h.get("path");saveFormdataInLocalStorage(o.formData,i),o.navigate(-1),o.setNotify({SuccessMessage:"Save Successfully",Success:!0})},onChange:function(){var i,h,x,S;((i=o==null?void 0:o.formData)==null?void 0:i.type)!==((h=o==null?void 0:o.newData)==null?void 0:h.type)&&((x=o==null?void 0:o.newData)==null?void 0:x.type)!==void 0&&this.refreshPage((S=o==null?void 0:o.newData)==null?void 0:S.type,o)},editComponents:async function(){var S,w,O;const i=c.path.split(".")[1],h=(S=o.searchParams)==null?void 0:S.get("path"),x=(w=o.searchParams)==null?void 0:w.get("id");if(saveFormdataInLocalStorage(o.formData,h),h){const ne=`${(O=o.searchParams)==null?void 0:O.get("path")}.elements[${i}]`;o.searchParams.set("path",ne),o.setSearchParams(o.searchParams),this.setPage()}else o.navigate(`/Component?path=${`elements[${i}]`}&id=${x}`)},deleteComponents:async function(){var w;const i=(w=o.searchParams)==null?void 0:w.get("path"),h=c.path.split(".")[1];o.formData.elements.splice(h,1);const x=saveFormdataInLocalStorage(o.formData,i),S=i?_.get(x,i):x;o.setFormdata(S)},deleteEvent:async function(){var S;const i=(S=o.searchParams)==null?void 0:S.get("path"),h=c.path.split(".")[1];o.formData.events.splice(h,1);const x=saveFormdataInLocalStorage(o.formData,i);o.setFormdata(_.get(x,i))},widgetAddClickHandler:async function(){var x;Array.isArray(o.formData.elements)||(o.formData.elements=[]);const i=(x=o.searchParams)==null?void 0:x.get("path");saveFormdataInLocalStorage(o.formData,i);const h=`${i}.elements[${o.formData.elements.length}]`;o.searchParams.set("path",h),o.setSearchParams(o.searchParams),this.setPage()},eventEditHandler:async function(){var w,O;const i=c.path.split(".")[1],h=(w=o.searchParams)==null?void 0:w.get("path"),x=(O=o.searchParams)==null?void 0:O.get("id");saveFormdataInLocalStorage(o.formData,h);const S=`${h}.events[${i}]`;o.navigate(`/ComponentEvents?path=${S}&id=${x}`)},eventAddHandler:async function(){var S,w;const i=(S=o.searchParams)==null?void 0:S.get("path"),h=(w=o.searchParams)==null?void 0:w.get("id");Array.isArray(o.formData.events)||(o.formData.events=[]),saveFormdataInLocalStorage(o.formData,i);const x=`${i}.events[${o.formData.events.length}]`;o.navigate(`/ComponentEvents?path=${x}&id=${h}`)},backHandler:function(){o.navigate(-1)}}),pageMaster=o=>{const{store:c,dynamicData:i,config:h,submitHandler:x}=o;return{setPage:async function(){const S=await this.getFormdata();c.setFormdata(S);const w=await this.getUiSchema(),O=await this.getSchema();c.setSchema(O),c.setUiSchema(w)},getFormdata:async function(){var w;(w=c.searchParams)==null||w.get("id");const S=getFormdataFromLocalStorage();return S||(saveFormdataInLocalStorage(h),h)},getUiSchema:async function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),c.navigate("/PageMasterRecords")},onAddClickHandler:async function(){var O;const S=(O=c.searchParams)==null?void 0:O.get("id");Array.isArray(c.formData.elements)||(c.formData.elements=[]);const w=saveFormdataInLocalStorage(c.formData);c.navigate(`/Component?path=${`elements[${w==null?void 0:w.elements.length}]`}&id=${S}`)},submitPageHandler:async function(){x(c,o.service).then(S=>{localStorage.removeItem("pageFormdata"),c.navigate(-1),c.setNotify({SuccessMessage:"Submit Successfully",Success:!0})})},Edit_Components:Component(c,i).editComponents,Delete_Components:Component(c,i).deleteComponents,eventAddHandler:async function(){var O;const S=(O=c.searchParams)==null?void 0:O.get("id");Array.isArray(c.formData.events)||(c.formData.events=[]),saveFormdataInLocalStorage(c.formData);const w=`events[${c.formData.events.length}]`;c.navigate(`/ComponentEvents?path=${w}&id=${S}`)},editEvent:async function(){var Z;const S=i.path.split(".")[1],w=(Z=c.searchParams)==null?void 0:Z.get("id");saveFormdataInLocalStorage(c.formData);const O=`events[${S}]`;c.navigate(`/ComponentEvents?path=${O}&id=${w}`)},deleteEvent:async function(){const S=i.path.split(".")[1];c.formData.events.splice(S,1);const w=saveFormdataInLocalStorage(c.formData);c.setFormdata(w)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}}}},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",options:[{label:"Click Event",value:"onClick"},{label:"Load Event",value:"onLoad"},{label:"Change Event",value:"onChange"},{label:"Success",value:"Success"},{label:"Fail",value:"Fail"}]}}},getSelectField("Handler","Handler",[{label:"Custom",value:"custom"},{label:"Api",value:"api"},{label:"Inbuilt Function",value:"inBuiltFunction"},{label:"Refresh",value:"refresh"}])]},{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:8,lg:8}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:3,lg:3},main:{name:"Save",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",options:[{label:"Get",value:"get"},{label:"Post",value:"post"},{label:"Delete",value:"delete"},{label:"Put",value:"put"}]}}},{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:{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:{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"}}}]}}}]};var event=(o,c)=>({setPage:async function(){const i=await this.getFormData();o.setFormdata(i);const h=await this.getSchema();o.setSchema(h),this.refreshPage(i.Handler,o)},refreshPage:(i,h)=>{const x=_.cloneDeep(EventUiSchema);i&&(i==="custom"?x.elements[1].elements[0].elements[2]=getTextArea("eventCode","Write Custom Code",!1):i==="api"?x.elements[1].elements[0].elements[2]=APISection:i==="inBuiltFunction"?(x.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name",[{label:"RankProvider",value:"RankProvider"},{label:"Download File",value:"downloadFile"}]),x.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6})):i==="refresh"&&(x.elements[1].elements[0].elements[2]=refreshSectionUiSchema)),h.setUiSchema(x)},getFormData:Component(o,c).getFormdata,getUiSchema:async function(){return EventUiSchema},getSchema:async()=>EventSchema,onChange:function(){var i,h,x;((i=o==null?void 0:o.formData)==null?void 0:i.Handler)!==((h=o==null?void 0:o.newData)==null?void 0:h.Handler)&&((x=o==null?void 0:o.newData)==null?void 0:x.Handler)!==void 0&&this.refreshPage(o.newData.Handler||o.formdata.Handler,o)},saveHandler:Component(o,c).saveHandler,addEvent:async function(){var x,S,w;const i=(x=o.searchParams)==null?void 0:x.get("path");Array.isArray(o.formData.events)||(o.formData.events=[]),saveFormdataInLocalStorage(o.formData,i);const h=`${i}.events[${(w=(S=o.formData)==null?void 0:S.events)==null?void 0:w.length}]`;o.searchParams.set("path",h),o.setSearchParams(o.searchParams),this.setPage()},editEvent:async function(){var S;const i=c.path.split(".")[1],h=(S=o.searchParams)==null?void 0:S.get("path");saveFormdataInLocalStorage(o.formData,h);const x=`${h}.events[${i}]`;o.searchParams.set("path",x),o.setSearchParams(o.searchParams),this.setPage()},deleteEvent:Component(o,c).deleteEvent,backHandler:function(){o.navigate(-1)}});const downloadFile$1=o=>{const c=o.name.split("."),i=o.data,h=window.atob(i);let x;x=new File([h],c[c.length-1]);const S=URL.createObjectURL(x),w=document.createElement("a");w.href=c[c.length-1]==="pdf"?"data:application/octet-stream;base64,"+i:S,w.download=`${o.name}`,document.body.appendChild(w),w.click(),URL.revokeObjectURL(S),document.body.removeChild(w)},executeEvents=async(o,c,i,h,x,S,w,O,Z)=>{let ne=[],V=null;if(o.eventType==="onLoad"){const{response:q,events:ge}=await executetOnLoadEvent(o,c,i,h,x,S,w,O,Z);V=q,ne=ge}else{const{response:q,events:ge}=await executeEventsHandler(o,c,i,h,x,S,w,O,Z);V=q,ne=ge}if((ne==null?void 0:ne.length)>0)for(const q of ne)await executeEvents(q,c,i,h,x,S,w,O,V)},executetOnLoadEvent=async(o,c,i,h,x,S,w,O,Z)=>{try{const{response:ne}=await executeEventsHandler(o,c,i,h,x,S,w,O,Z),V=o==null?void 0:o.events.filter(ge=>ge.eventType==="Success"),q=V.length>0?V:[{Handler:"mergeFormdata",eventType:"Success",type:o.type}];return{response:ne,events:q}}catch{const V=o==null?void 0:o.events.filter(ge=>ge.eventType==="Fail"),q=V.length>0?V:[];return{response:void 0,events:q}}};async function executeEventsHandler(o,c,i,h,x,S,w,O,Z){if(o.Handler==="api")return await executeApiEventHandler(o,c,i,h,x,S);if(o.Handler==="inBuiltFunction")return await executeInBuiltFunctionHandler(o,c,i,h,x,S,w,Z);if(o.Handler==="custom")return await executeCustomHandler(o,c,i,h,x,S,w,Z);if(o.Handler==="refresh")return await executeRefreshHandler(o,c,i,h,x,S,w,Z,O);if(o.Handler==="mergeFormdata")return await mergeFormdata(Z,c,o,i)}async function executeRefreshHandler(o,c,i,h,x,S,w,O,Z){const ne=getRefreshElements(o,Z);for(const V of ne)for(const q of Z.onLoad[V])await executeEvents(q,V,i,h,x,S,w);return{response:void 0,events:void 0}}async function executeApiEventHandler(o,c,i,h,x,S,w,O){const Z={...x==null?void 0:x.payload},ne={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},{body:V,headers:q}=await buildApiPayload(o,Z,ne,i,h,x);let ge;return ge=await S[o.method](o.path,V,q&&{headers:q}),{response:ge,events:o==null?void 0:o.events}}async function executeInBuiltFunctionHandler(refreshHandlerConfig,componentName,store,dynamicData,userValue,service,serviceHolder,parentEventOutput){let parameter={};if(refreshHandlerConfig.funcParametersCode){const makeFunc=eval(refreshHandlerConfig.funcParametersCode);parameter=makeFunc(store,dynamicData,userValue,parentEventOutput,service)}return serviceHolder[refreshHandlerConfig.inBuiltFunctionType](parameter),{response:void 0,events:refreshHandlerConfig==null?void 0:refreshHandlerConfig.events}}async function executeCustomHandler(customHandlerConfig,componentName,store,dynamicData,userValue,service,serviceHolder,parentEventOutput){const makeFunc=eval(customHandlerConfig.eventCode);return makeFunc(store,dynamicData,userValue,parentEventOutput,service),{response:void 0,events:customHandlerConfig==null?void 0:customHandlerConfig.events}}async function mergeFormdata(o,c,i,h){return i.type==="Select"&&o?h.setSchema(x=>({...x,properties:{...x.properties,[c]:{enum:o.data}}})):i.type==="page"?h.setFormdata(x=>({...x,...o==null?void 0:o.data})):o&&h.setFormdata(x=>({...x,[c]:o.data})),{response:void 0,events:void 0}}const buildBodyFormat=(o,c,i)=>{const h={...i==null?void 0:i.payload};return o.map(x=>{var S,w;if((S=x==null?void 0:x.value)!=null&&S.startsWith("$userValue")){const O=x.value.substring(11);h[x.key]=_.get(i,O)}else if((w=x==null?void 0:x.value)!=null&&w.startsWith("$")){const O=x.value.substring(1);h[x.key]=_.get(c,O)}else h[x.key]=x.value}),h},buildHeadersFormat=o=>{const c={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"};return o.map(i=>{c[i.key]=i.value}),c};async function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var o,c;if(compConfig!=null&&compConfig.headers&&(headers={headers:buildHeadersFormat(compConfig.headers)}),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((c=(o=store==null?void 0:store.ctx)==null?void 0:o.core)==null?void 0:c.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(o,c){var h;let i=[];return((h=o==null?void 0:o.refreshElements)==null?void 0:h.length)>0?i=o.refreshElements.map(x=>x.value):c!=null&&c.onLoad&&(i=Object.keys(c==null?void 0:c.onLoad)),i}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},extractEvents=o=>{function c(i){i.events&&i.events.forEach(h=>{i.type&&(compType=i.type),eventGroups[h.eventType]||(eventGroups[h.eventType]={}),eventGroups[h.eventType][i.name]||(eventGroups[h.eventType][i.name]=[]),eventGroups[h.eventType][i.name].push({...h,type:compType})})}return c(o),o!=null&&o.elements&&o.elements.forEach(extractEvents),eventGroups};var service=o=>({setPage:async function(){o.store.setFormdata({}),eventGroups={},eventGroups=extractEvents(o.config),await executeEvents({Handler:"refresh",eventType:"onPageRefresh"},"all",o.store,o.dynamicData,o.userValue,o.service,this,eventGroups),o.uiSchema.elements.push(notifyUiSchema),o.store.setUiSchema(o.uiSchema)},onClick:async function(){var i;const c=((i=o.dynamicData)==null?void 0:i.tableButtonPath)||o.dynamicData.path.split(".")[0];for(const h of eventGroups==null?void 0:eventGroups.onClick[c])await executeEvents(h,c,o.store,o.dynamicData,o.userValue,o.service,this,eventGroups)},onChange:async function(){if(eventGroups.onChange){const c=Object.keys(eventGroups.onChange);Promise.all(c.map(async i=>{var h,x;if(((h=o.store)==null?void 0:h.formData[i])!==o.store.newData[i]&&((x=o.store)==null?void 0:x.newData[i])!==void 0)for(const S of eventGroups.onChange[i])await executeEvents(S,i,o.store,o.dynamicData,o.userValue,o.service,this,eventGroups)}))}},downloadFile:downloadFile$1}),emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},main:{},style:{}}},leaderBoard={type:"WrapperLayout",config:{main:{rowSpacing:3,header:!0,label:"LeaderBoard",divider:!0},wrapperStyle:{position:"relative",width:"100%",height:1200}},elements:[{type:"Control",scope:"#/properties/leaderBoard/properties/firstImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},style:{objectFit:"cover",position:"absolute",top:"60px",left:"calc(50% - 85px)",width:"180px",border:"5px solid rgb(179, 198, 255)",height:"180px",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},style:{objectFit:"cover",position:"absolute",top:"130px",left:"calc(25% - 90px)",width:"180px",border:"5px solid rgb(179, 198, 255)",height:"180px",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},style:{objectFit:"cover",position:"absolute",top:"130px",left:"calc(75% - 85px)",width:"170px",border:"5px solid rgb(179, 198, 255)",height:"180px",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/firstName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",top:"250px",display:"flex",justifyContent:"center",alignItems:"center",color:"black",left:"calc(50% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",top:"320px",display:"flex",justifyContent:"center",alignItems:"center",color:"black",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",top:"320px",display:"flex",justifyContent:"center",alignItems:"center",color:"black",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",top:"280px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",left:"calc(25% - 16px)","@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:"40px",border:"5px solid rgb(179, 198, 255)",height:"40px",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/first",config:{main:{heading:"1"},style:{objectFit:"cover",position:"absolute",top:"210px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",left:"calc(50% - 16px)","@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:"40px",border:"5px solid rgb(179, 198, 255)",height:"40px",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/third",config:{main:{heading:"3"},style:{objectFit:"cover",position:"absolute",top:"280px",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",left:"calc(75% - 20px)","@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:"40px",border:"5px solid rgb(179, 198, 255)",height:"40px",borderRadius:"50%"},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:"390px",border:"2px solid rgb(179, 198, 255)",width:"95%",left:"2.5%"},main:{disableAction:!0,disableSelection:!0}}}]};const buildLeaderBoard=o=>{const c=_.cloneDeep(leaderBoard);if(o.elements){const i=o.elements.map((h,x)=>h.type?{...{widget:buildUiSchema(h),accessorKey:h.name,header:h.label||h.name}}:{accessorKey:h.name,header:h.label||h.name});c.elements[9].elements=i}return o.name&&(c.elements[0].scope=`#/properties/${o.name}/properties/firstImage`,c.elements[3].scope=`#/properties/${o.name}/properties/firstName`,c.elements[1].scope=`#/properties/${o.name}/properties/secondImage`,c.elements[4].scope=`#/properties/${o.name}/properties/secondName`,c.elements[2].scope=`#/properties/${o.name}/properties/thirdImage`,c.elements[5].scope=`#/properties/${o.name}/properties/thirdName`,c.elements[9].scope=`#/properties/${o.name}/properties/table`),o.firstImage&&(c.elements[0].config.main.url=o.firstImage),o.secondImage&&(c.elements[1].config.main.url=o.secondImage),o.secondImage&&(c.elements[2].config.main.url=o.thirdImage),o.layout&&(c.config.layout=o.layout),c};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=(o,c)=>{const i=_.cloneDeep(progressBar);return i.scope=c,o.heading&&(i.config.main.heading=o.heading),o.bottomLabel_3&&(i.config.main.bottomLabel_3=o.bottomLabel_3),o.bottomLabel_2&&(i.config.main.bottomLabel_2=o.bottomLabel_2),o.bottomLabel_1&&(i.elements[0].config.main.bottomLabel_1=o.bottomLabel_1),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i},buildProgressBar=(o,c)=>{const i=_.cloneDeep(progressBar);return i.scope=c,o.layout&&(i.config.layout=o.layout),i.config.main.heading=o.heading,o.bottomLabel_3&&(i.config.main.bottomLabel_3=o.bottomLabel_3),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),o.bottomLabel_2&&(i.config.main.bottomLabel_2=o.bottomLabel_2),o.bottomLabel_1&&(i.config.main.bottomLabel_1=o.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:{}}}},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=(o,c)=>{const i=_.cloneDeep(HorizontalBarGraph);return o.layout&&(i.config.layout=o.layout),i.scope=c,i.config.main.header=o.heading,o.barColor&&(i.config.barStyle.color=o.barColor),o.containerBackground&&(i.config.containerStyle.background=o.containerBackground),o.height&&(i.config.containerStyle.height=o.height),o.bottomLabel&&(i.config.main.bottomLabel=o.bottomLabel),o.leftLabel&&(i.config.main.leftLabel=o.leftLabel),i};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:12,main:{currentValueText:"",customSegmentLabels:{},data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",segments:5,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=(o,c)=>{const i=_.cloneDeep(SpeedoMeter);return i.scope=c,o.layout&&(i.config.layout=o.layout),o.heading&&(i.config.main.header=o.heading),o.currentValueText&&(i.config.main.currentValueText=o.currentValueText),o.customSegmentLabels&&(i.config.main.customSegmentLabels=o.customSegmentLabels),o.data&&(i.config.main.data=o.data),o.needleColor&&(i.config.style.needleColor=o.needleColor),o.segments&&(i.config.style.segments=o.segments),o.endColor&&(i.config.style.endColor=o.endColor),o.startColor&&(i.config.style.startColor=o.startColor),o.segmentColors&&(i.config.style.segmentColors=o.segmentColors),i},buildPieGraph=(o,c)=>{const i=_.cloneDeep(PieGraph);return o.layout&&(i.config.layout=o.layout),o.containerBackground&&(i.config.style.containerStyle.background=o.containerBackground),o.height&&(i.config.style.containerStyle.height=o.height),o.legendAvailabe&&(i.config.main.legendAvailabe=o.legendAvailabe!=="YES"),i.scope=c,i.config.main.header=o.heading,o.bottomLabel&&(i.config.main.bottomLabel=o.bottomLabel),o.leftLabel&&(i.config.main.leftLabel=o.leftLabel),o.tooltipDataKey&&(i.config.main.tooltipDataKey=o.tooltipDataKey),i},buildStackbarGraph=(o,c)=>{const i=_.cloneDeep(BarGraph);return o.layout&&(i.config.layout=o.layout),o.legendHide&&(i.config.main.legendAvailable=!1),i.config.main.type=o.graphType,i.config.main.header=o.heading,o.barColor&&(i.config.barStyle.color=o.barColor),o.containerBackground&&(i.config.containerStyle.background=o.containerBackground),o.height&&(i.config.style.containerStyle.height=o.height),o.bottomLabel&&(i.config.main.bottomLabel=o.bottomLabel),o.leftLabel&&(i.config.main.leftLabel=o.leftLabel),i.scope=c,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=(o,c)=>{const i=_.cloneDeep(RunnerBoyProgressBar);return i.scope=c,o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(o,c)=>{const i=_.cloneDeep(Tabsection);return o.sectionLabels&&(i.config.main.tabLabels=o.sectionLabels.map(h=>h.label)),i.config.main.id=o.name,i};var WrapperSection={type:"WrapperLayout",config:{main:{label:"Default Label",divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(o,c)=>{const i=_.cloneDeep(WrapperSection);return i.config.main.label=o.label,i.config.main.divider=!!o.divider,i.config.main.header=!!o.heading,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=(o,c)=>{const i=_.cloneDeep(TextInputField);return i.config.main.label=o.label,o.style&&(i.config.style=JSON.parse(o.style)),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i.config.main.errorMessage=`${o.name} is empty or invalid`,i.scope=c,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"}}};const buildSelect=(o,c)=>{const i=_.cloneDeep(SelectInputField);if(i.config.main.label=o.label,o.value){const h=o.value.map(x=>({label:x.label,value:x.value}));i.config.main.options=h}return o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i.scope=c,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:"",icon:"",onClick:"onClick",size:"large"},style:{}}};const buildButton=(o,c)=>{const i=_.cloneDeep(Button);return o.buttonType&&(i.options.widget=o.buttonType==="IconButton"?"IconButton":"Button",o.buttonType==="ButtonWithIconAndText"?i.config.main.startIcon=o.iconName:i.config.main.icon=o.iconName),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i.scope=c,o.style&&(i.config.style=JSON.parse(o.style)),o.size&&(i.config.main.size=o.size),o.color&&(i.config.main.size=o.color),i.config.main.name=o.label,i};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{allRowData:[],columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(o,c)=>{const i=_.cloneDeep(Table);return i.scope=c,o.style&&(i.config.style=JSON.parse(o.style)),i.config.main.label=o.label,i};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(o,c)=>{const i=_.cloneDeep(Box);return i.scope=c,i.config.main.heading=o.label,o.layout&&(i.config.layout=createLayoutFormat(o.layout)),o.style&&(i.config.style=JSON.parse(o.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=(o,c)=>{const i=_.cloneDeep(uploadFile);return i.scope=c,i.config.main.label=o.label,o.layout&&(i.config.layout=o.layout),o.layout&&(uploadFile.config.layout=createLayoutFormat(o.layout)),o.style&&(i.config.style=o.style),o.required&&(i.config.main.required=!0),i.config.main.errorMessage=o.errorMessage,i},buildDownloadFile=(o,c)=>{const i=_.cloneDeep(downloadFile);return i.scope=c,o.layout&&(i.config.layout=o.layout),o.style&&(i.config.style=o.style),o.required&&(i.config.main.required=!0),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),o.errorMessage&&(i.config.main.errorMessage=o.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:"Box"}},{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=(o,c)=>{const i=_.cloneDeep(Card);return o.style&&(i.config.style=JSON.parse(o.style)),i.elements[0].scope=`#/properties/${o.name.replace(/ /g,"")}/value`,i.elements[1].scope=`#/properties/${o.name.replace(/ /g,"")}/url`,i.elements[2].scope=`#/properties/${o.name.replace(/ /g,"")}/description`,o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i.elements[0].config.main.heading=o.label,i.elements[1].config.main.url=o.url,i.elements[2].config.main.heading=o.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=(o,c)=>{const i=_.cloneDeep(DateInputField);return i.config.main.label=o.label,i.config.main.errorMessage=`${o.name} is empty or invalid`,i.scope=c,o.layout&&(i.config.layout=createLayoutFormat(o.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=(o,c)=>{const i=_.cloneDeep(RankCard);return i.scope=c,o.image&&(i.config.main.url=o.image),o.title&&(i.config.main.title=o.title),o.description&&(i.config.main.description=o.description),o.rank&&(i.config.main.rank=`#${o.rank}`),o.layout&&(i.config.layout=createLayoutFormat(o.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=(o,c)=>{const i=_.cloneDeep(RollAndDice);return o.name&&(i.scope=c),o.layout&&(i.config.layout=createLayoutFormat(o.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=(o,c)=>{const i=_.cloneDeep(Timer);return i.scope=c,o.label&&(i.config.main.label=o.label),o.layout&&(i.config.layout=o.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=(o,c)=>{var h;const i=_.cloneDeep(MultipleSelect);return i.scope=c,o.label&&(i.config.main.label=o.label),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i.config.main.options=(h=o.value)!=null?h:[],i},buildBasicUiSchema=o=>({type:"HorizontalLayout",pageName:`${o.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=(o,c)=>{const i=_.cloneDeep(TextArea);return i.config.main.heading=o.label,o.layout&&(i.config.layout=createLayoutFormat(o.layout)),o.style&&(i.config.style=JSON.parse(o.style)),i.scope=c,i};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}};const buildSlider=(o,c)=>{const i=_.cloneDeep(cardSlider);return o.name&&(i.scope=c),o.layout&&(i.config.layout=createLayoutFormat(o.layout)),i},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(o,c)=>{const i=_.cloneDeep(Checkbox);return i.scope=c,i.config.main.label=o.label,o.layout&&(i.config.layout=createLayoutFormat(o.layout)),o.style&&(i.config.style=JSON.parse(o.style)),i},buildUiSchema=o=>{let c={};const i=`#/properties/${o.name}`;switch(o.type){case"RunnerBoyProgressBar":c=RunnerBoyProgressbar(o,i);break;case"TabSection":c=buildTabSection(o);break;case"WrapperSection":c=buildWrapperSection(o);break;case"Text":c=buildTextField(o,i);break;case"TextArea":c=buildTextArea(o,i);break;case"Date":c=buildDate(o,i);break;case"Select":c=buildSelect(o,i);break;case"Button":c=buildButton(o,i);break;case"Table":c=buildTable(o,i);break;case"Box":c=buildLabel(o,i);break;case"CheckBox":c=buildCheckbox(o,i);break;case"UploadFile":c=buildUploadFile(o,i);break;case"DownloadFile":c=buildDownloadFile(o,i);break;case"EmptyBox":const h=_.cloneDeep(emptyBox);o.layout&&(h.config.layout=o.layout),c=h;break;case"card":c=buildCard(o);break;case"Graph":switch(o.graphType){case"BarGraph":case"StackBarGraph":c=buildStackbarGraph(o,i);break;case"LineGraph":c=buildPieGraph(o,i);break;case"PieGraph":c=buildPieGraph(o,i);break;case"HorizontalBarGraph":c=buildHorizontalBarGraph(o,i);break}break;case"ProgressBar":c=buildProgressBar(o,i);break;case"SpeedoMeter":c=buildSpeedoMeter(o,i);break;case"ProgressBarCard":c=buildProgressBarCard(o,i);break;case"RankCard":c=buildRankCard(o,i);break;case"Rank":c=buildRollAndDice(o,i);break;case"Slider":c=buildSlider(o,i);break;case"Timer":c=buildTimer(o,i);break;case"MultipleSelect":c=buildMultiSelect(o,i);break;case"LeaderBoard":c=buildLeaderBoard(o);break;default:c=buildBasicUiSchema(o)}if(o!=null&&o.elements){if((o==null?void 0:o.type)==="LeaderBoard")return c;o.type=="Table"?c.elements=o.elements.map((h,x)=>h.type?{accessorKey:h.name,header:h.label||h.name,widget:buildUiSchema(h)}:{accessorKey:h.name,header:h.label||h.name}):c.elements=o.elements.map((h,x)=>buildUiSchema(h))}return c};var clearLocalStorage=()=>{localStorage.removeItem("pageFormdata")};exports.buildConfig=buildConfig,exports.buildUiSchema=buildUiSchema,exports.clearPreviousCache=clearLocalStorage,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