impaktapps-ui-builder 0.0.296 → 0.0.297

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,24 +5,24 @@
5
5
  * Released under MIT license <https://lodash.com/license>
6
6
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
7
7
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
8
- */(function(i,u){(function(){var r,g="4.17.21",y=200,w="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",S="Expected a function",M="Invalid `variable` option passed into `_.template`",ie="__lodash_hash_undefined__",rt=500,ht="__lodash_placeholder__",Fe=1,Z=2,Ge=4,Ne=1,mt=2,oe=1,Me=2,Nt=4,de=8,$e=16,ge=32,Ke=64,_e=128,it=256,qe=512,al=30,ll="...",sl=800,ul=16,Ai=1,pl=2,cl=3,yt=1/0,ot=9007199254740991,fl=17976931348623157e292,dn=0/0,Oe=4294967295,dl=Oe-1,gl=Oe>>>1,hl=[["ary",_e],["bind",oe],["bindKey",Me],["curry",de],["curryRight",$e],["flip",qe],["partial",ge],["partialRight",Ke],["rearg",it]],At="[object Arguments]",gn="[object Array]",ml="[object AsyncFunction]",$t="[object Boolean]",Kt="[object Date]",yl="[object DOMException]",hn="[object Error]",mn="[object Function]",Bi="[object GeneratorFunction]",Re="[object Map]",qt="[object Number]",vl="[object Null]",Ve="[object Object]",Ti="[object Promise]",bl="[object Proxy]",Vt="[object RegExp]",Ee="[object Set]",Yt="[object String]",yn="[object Symbol]",xl="[object Undefined]",Jt="[object WeakMap]",_l="[object WeakSet]",Zt="[object ArrayBuffer]",Bt="[object DataView]",ar="[object Float32Array]",lr="[object Float64Array]",sr="[object Int8Array]",ur="[object Int16Array]",pr="[object Int32Array]",cr="[object Uint8Array]",fr="[object Uint8ClampedArray]",dr="[object Uint16Array]",gr="[object Uint32Array]",Sl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Cl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Ll=RegExp(Fi.source),Il=RegExp(Ri.source),Al=/<%-([\s\S]+?)%>/g,Bl=/<%([\s\S]+?)%>/g,Ei=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fl=/^\w*$/,Rl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,El=RegExp(hr.source),mr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Hl=/,? & /,Ml=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Wl=/\\(\\)?/g,zl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Di=/\w*$/,Ul=/^[-+]0x[0-9a-f]+$/i,Gl=/^0b[01]+$/i,Nl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,ql=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,bn="\\ud800-\\udfff",Yl="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Zl="\\u20d0-\\u20ff",Pi=Yl+Jl+Zl,ki="\\u2700-\\u27bf",Hi="a-z\\xdf-\\xf6\\xf8-\\xff",Xl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mi="A-Z\\xc0-\\xd6\\xd8-\\xde",Oi="\\ufe0e\\ufe0f",Wi=Xl+Ql+jl+es,yr="['\u2019]",ts="["+bn+"]",zi="["+Wi+"]",xn="["+Pi+"]",Ui="\\d+",ns="["+ki+"]",Gi="["+Hi+"]",Ni="[^"+bn+Wi+Ui+ki+Hi+Mi+"]",vr="\\ud83c[\\udffb-\\udfff]",rs="(?:"+xn+"|"+vr+")",$i="[^"+bn+"]",br="(?:\\ud83c[\\udde6-\\uddff]){2}",xr="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Mi+"]",Ki="\\u200d",qi="(?:"+Gi+"|"+Ni+")",is="(?:"+Tt+"|"+Ni+")",Vi="(?:"+yr+"(?:d|ll|m|re|s|t|ve))?",Yi="(?:"+yr+"(?:D|LL|M|RE|S|T|VE))?",Ji=rs+"?",Zi="["+Oi+"]?",os="(?:"+Ki+"(?:"+[$i,br,xr].join("|")+")"+Zi+Ji+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xi=Zi+Ji+os,ss="(?:"+[ns,br,xr].join("|")+")"+Xi,us="(?:"+[$i+xn+"?",xn,br,xr,ts].join("|")+")",ps=RegExp(yr,"g"),cs=RegExp(xn,"g"),_r=RegExp(vr+"(?="+vr+")|"+us+Xi,"g"),fs=RegExp([Tt+"?"+Gi+"+"+Vi+"(?="+[zi,Tt,"$"].join("|")+")",is+"+"+Yi+"(?="+[zi,Tt+qi,"$"].join("|")+")",Tt+"?"+qi+"+"+Vi,Tt+"+"+Yi,ls,as,Ui,ss].join("|"),"g"),ds=RegExp("["+Ki+bn+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,$={};$[ar]=$[lr]=$[sr]=$[ur]=$[pr]=$[cr]=$[fr]=$[dr]=$[gr]=!0,$[At]=$[gn]=$[Zt]=$[$t]=$[Bt]=$[Kt]=$[hn]=$[mn]=$[Re]=$[qt]=$[Ve]=$[Vt]=$[Ee]=$[Yt]=$[Jt]=!1;var N={};N[At]=N[gn]=N[Zt]=N[Bt]=N[$t]=N[Kt]=N[ar]=N[lr]=N[sr]=N[ur]=N[pr]=N[Re]=N[qt]=N[Ve]=N[Vt]=N[Ee]=N[Yt]=N[yn]=N[cr]=N[fr]=N[dr]=N[gr]=!0,N[hn]=N[mn]=N[Jt]=!1;var ys={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},vs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_s=parseFloat,Ss=parseInt,Qi=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ee=Qi||ws||Function("return this")(),Sr=u&&!u.nodeType&&u,vt=Sr&&!0&&i&&!i.nodeType&&i,ji=vt&&vt.exports===Sr,wr=ji&&Qi.process,Se=function(){try{var f=vt&&vt.require&&vt.require("util").types;return f||wr&&wr.binding&&wr.binding("util")}catch{}}(),eo=Se&&Se.isArrayBuffer,to=Se&&Se.isDate,no=Se&&Se.isMap,ro=Se&&Se.isRegExp,io=Se&&Se.isSet,oo=Se&&Se.isTypedArray;function he(f,m,h){switch(h.length){case 0:return f.call(m);case 1:return f.call(m,h[0]);case 2:return f.call(m,h[0],h[1]);case 3:return f.call(m,h[0],h[1],h[2])}return f.apply(m,h)}function Cs(f,m,h,L){for(var F=-1,W=f==null?0:f.length;++F<W;){var X=f[F];m(L,X,h(X),f)}return L}function we(f,m){for(var h=-1,L=f==null?0:f.length;++h<L&&m(f[h],h,f)!==!1;);return f}function Ls(f,m){for(var h=f==null?0:f.length;h--&&m(f[h],h,f)!==!1;);return f}function ao(f,m){for(var h=-1,L=f==null?0:f.length;++h<L;)if(!m(f[h],h,f))return!1;return!0}function at(f,m){for(var h=-1,L=f==null?0:f.length,F=0,W=[];++h<L;){var X=f[h];m(X,h,f)&&(W[F++]=X)}return W}function _n(f,m){var h=f==null?0:f.length;return!!h&&Ft(f,m,0)>-1}function Cr(f,m,h){for(var L=-1,F=f==null?0:f.length;++L<F;)if(h(m,f[L]))return!0;return!1}function K(f,m){for(var h=-1,L=f==null?0:f.length,F=Array(L);++h<L;)F[h]=m(f[h],h,f);return F}function lt(f,m){for(var h=-1,L=m.length,F=f.length;++h<L;)f[F+h]=m[h];return f}function Lr(f,m,h,L){var F=-1,W=f==null?0:f.length;for(L&&W&&(h=f[++F]);++F<W;)h=m(h,f[F],F,f);return h}function Is(f,m,h,L){var F=f==null?0:f.length;for(L&&F&&(h=f[--F]);F--;)h=m(h,f[F],F,f);return h}function Ir(f,m){for(var h=-1,L=f==null?0:f.length;++h<L;)if(m(f[h],h,f))return!0;return!1}var As=Ar("length");function Bs(f){return f.split("")}function Ts(f){return f.match(Ml)||[]}function lo(f,m,h){var L;return h(f,function(F,W,X){if(m(F,W,X))return L=W,!1}),L}function Sn(f,m,h,L){for(var F=f.length,W=h+(L?1:-1);L?W--:++W<F;)if(m(f[W],W,f))return W;return-1}function Ft(f,m,h){return m===m?Us(f,m,h):Sn(f,so,h)}function Fs(f,m,h,L){for(var F=h-1,W=f.length;++F<W;)if(L(f[F],m))return F;return-1}function so(f){return f!==f}function uo(f,m){var h=f==null?0:f.length;return h?Tr(f,m)/h:dn}function Ar(f){return function(m){return m==null?r:m[f]}}function Br(f){return function(m){return f==null?r:f[m]}}function po(f,m,h,L,F){return F(f,function(W,X,G){h=L?(L=!1,W):m(h,W,X,G)}),h}function Rs(f,m){var h=f.length;for(f.sort(m);h--;)f[h]=f[h].value;return f}function Tr(f,m){for(var h,L=-1,F=f.length;++L<F;){var W=m(f[L]);W!==r&&(h=h===r?W:h+W)}return h}function Fr(f,m){for(var h=-1,L=Array(f);++h<f;)L[h]=m(h);return L}function Es(f,m){return K(m,function(h){return[h,f[h]]})}function co(f){return f&&f.slice(0,mo(f)+1).replace(mr,"")}function me(f){return function(m){return f(m)}}function Rr(f,m){return K(m,function(h){return f[h]})}function Xt(f,m){return f.has(m)}function fo(f,m){for(var h=-1,L=f.length;++h<L&&Ft(m,f[h],0)>-1;);return h}function go(f,m){for(var h=f.length;h--&&Ft(m,f[h],0)>-1;);return h}function Ds(f,m){for(var h=f.length,L=0;h--;)f[h]===m&&++L;return L}var Ps=Br(ys),ks=Br(vs);function Hs(f){return"\\"+xs[f]}function Ms(f,m){return f==null?r:f[m]}function Rt(f){return ds.test(f)}function Os(f){return gs.test(f)}function Ws(f){for(var m,h=[];!(m=f.next()).done;)h.push(m.value);return h}function Er(f){var m=-1,h=Array(f.size);return f.forEach(function(L,F){h[++m]=[F,L]}),h}function ho(f,m){return function(h){return f(m(h))}}function st(f,m){for(var h=-1,L=f.length,F=0,W=[];++h<L;){var X=f[h];(X===m||X===ht)&&(f[h]=ht,W[F++]=h)}return W}function wn(f){var m=-1,h=Array(f.size);return f.forEach(function(L){h[++m]=L}),h}function zs(f){var m=-1,h=Array(f.size);return f.forEach(function(L){h[++m]=[L,L]}),h}function Us(f,m,h){for(var L=h-1,F=f.length;++L<F;)if(f[L]===m)return L;return-1}function Gs(f,m,h){for(var L=h+1;L--;)if(f[L]===m)return L;return L}function Et(f){return Rt(f)?$s(f):As(f)}function De(f){return Rt(f)?Ks(f):Bs(f)}function mo(f){for(var m=f.length;m--&&Dl.test(f.charAt(m)););return m}var Ns=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 Vs=function f(m){m=m==null?ee:Dt.defaults(ee.Object(),m,Dt.pick(ee,hs));var h=m.Array,L=m.Date,F=m.Error,W=m.Function,X=m.Math,G=m.Object,Dr=m.RegExp,Ys=m.String,Ce=m.TypeError,Cn=h.prototype,Js=W.prototype,Pt=G.prototype,Ln=m["__core-js_shared__"],In=Js.toString,U=Pt.hasOwnProperty,Zs=0,yo=function(){var e=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),An=Pt.toString,Xs=In.call(G),Qs=ee._,js=Dr("^"+In.call(U).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bn=ji?m.Buffer:r,ut=m.Symbol,Tn=m.Uint8Array,vo=Bn?Bn.allocUnsafe:r,Fn=ho(G.getPrototypeOf,G),bo=G.create,xo=Pt.propertyIsEnumerable,Rn=Cn.splice,_o=ut?ut.isConcatSpreadable:r,Qt=ut?ut.iterator:r,bt=ut?ut.toStringTag:r,En=function(){try{var e=Ct(G,"defineProperty");return e({},"",{}),e}catch{}}(),eu=m.clearTimeout!==ee.clearTimeout&&m.clearTimeout,tu=L&&L.now!==ee.Date.now&&L.now,nu=m.setTimeout!==ee.setTimeout&&m.setTimeout,Dn=X.ceil,Pn=X.floor,Pr=G.getOwnPropertySymbols,ru=Bn?Bn.isBuffer:r,So=m.isFinite,iu=Cn.join,ou=ho(G.keys,G),Q=X.max,ne=X.min,au=L.now,lu=m.parseInt,wo=X.random,su=Cn.reverse,kr=Ct(m,"DataView"),jt=Ct(m,"Map"),Hr=Ct(m,"Promise"),kt=Ct(m,"Set"),en=Ct(m,"WeakMap"),tn=Ct(G,"create"),kn=en&&new en,Ht={},uu=Lt(kr),pu=Lt(jt),cu=Lt(Hr),fu=Lt(kt),du=Lt(en),Hn=ut?ut.prototype:r,nn=Hn?Hn.valueOf:r,Co=Hn?Hn.toString:r;function l(e){if(V(e)&&!R(e)&&!(e instanceof H)){if(e instanceof Le)return e;if(U.call(e,"__wrapped__"))return La(e)}return new Le(e)}var Mt=function(){function e(){}return function(t){if(!q(t))return{};if(bo)return bo(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Mn(){}function Le(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}l.templateSettings={escape:Al,evaluate:Bl,interpolate:Ei,variable:"",imports:{_:l}},l.prototype=Mn.prototype,l.prototype.constructor=l,Le.prototype=Mt(Mn.prototype),Le.prototype.constructor=Le;function H(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Oe,this.__views__=[]}function gu(){var e=new H(this.__wrapped__);return e.__actions__=ue(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ue(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ue(this.__views__),e}function hu(){if(this.__filtered__){var e=new H(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function mu(){var e=this.__wrapped__.value(),t=this.__dir__,n=R(e),o=t<0,a=n?e.length:0,s=Bp(0,a,this.__views__),p=s.start,c=s.end,d=c-p,v=o?c:p-1,b=this.__iteratees__,x=b.length,C=0,I=ne(d,this.__takeCount__);if(!n||!o&&a==d&&I==d)return Yo(e,this.__actions__);var B=[];e:for(;d--&&C<I;){v+=t;for(var D=-1,T=e[v];++D<x;){var k=b[D],O=k.iteratee,be=k.type,se=O(T);if(be==pl)T=se;else if(!se){if(be==Ai)continue e;break e}}B[C++]=T}return B}H.prototype=Mt(Mn.prototype),H.prototype.constructor=H;function xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function yu(){this.__data__=tn?tn(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(tn){var n=t[e];return n===ie?r:n}return U.call(t,e)?t[e]:r}function xu(e){var t=this.__data__;return tn?t[e]!==r:U.call(t,e)}function _u(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=tn&&t===r?ie:t,this}xt.prototype.clear=yu,xt.prototype.delete=vu,xt.prototype.get=bu,xt.prototype.has=xu,xt.prototype.set=_u;function Ye(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Su(){this.__data__=[],this.size=0}function wu(e){var t=this.__data__,n=On(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():Rn.call(t,n,1),--this.size,!0}function Cu(e){var t=this.__data__,n=On(t,e);return n<0?r:t[n][1]}function Lu(e){return On(this.__data__,e)>-1}function Iu(e,t){var n=this.__data__,o=On(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}Ye.prototype.clear=Su,Ye.prototype.delete=wu,Ye.prototype.get=Cu,Ye.prototype.has=Lu,Ye.prototype.set=Iu;function Je(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Au(){this.size=0,this.__data__={hash:new xt,map:new(jt||Ye),string:new xt}}function Bu(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),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}Je.prototype.clear=Au,Je.prototype.delete=Bu,Je.prototype.get=Tu,Je.prototype.has=Fu,Je.prototype.set=Ru;function _t(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Je;++t<n;)this.add(e[t])}function Eu(e){return this.__data__.set(e,ie),this}function Du(e){return this.__data__.has(e)}_t.prototype.add=_t.prototype.push=Eu,_t.prototype.has=Du;function Pe(e){var t=this.__data__=new Ye(e);this.size=t.size}function Pu(){this.__data__=new Ye,this.size=0}function ku(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hu(e){return this.__data__.get(e)}function Mu(e){return this.__data__.has(e)}function Ou(e,t){var n=this.__data__;if(n instanceof Ye){var o=n.__data__;if(!jt||o.length<y-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Je(o)}return n.set(e,t),this.size=n.size,this}Pe.prototype.clear=Pu,Pe.prototype.delete=ku,Pe.prototype.get=Hu,Pe.prototype.has=Mu,Pe.prototype.set=Ou;function Lo(e,t){var n=R(e),o=!n&&It(e),a=!n&&!o&&gt(e),s=!n&&!o&&!a&&Ut(e),p=n||o||a||s,c=p?Fr(e.length,Ys):[],d=c.length;for(var v in e)(t||U.call(e,v))&&!(p&&(v=="length"||a&&(v=="offset"||v=="parent")||s&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||je(v,d)))&&c.push(v);return c}function Io(e){var t=e.length;return t?e[Vr(0,t-1)]:r}function Wu(e,t){return Xn(ue(e),St(t,0,e.length))}function zu(e){return Xn(ue(e))}function Mr(e,t,n){(n!==r&&!ke(e[t],n)||n===r&&!(t in e))&&Ze(e,t,n)}function rn(e,t,n){var o=e[t];(!(U.call(e,t)&&ke(o,n))||n===r&&!(t in e))&&Ze(e,t,n)}function On(e,t){for(var n=e.length;n--;)if(ke(e[n][0],t))return n;return-1}function Uu(e,t,n,o){return pt(e,function(a,s,p){t(o,a,n(a),p)}),o}function Ao(e,t){return e&&ze(t,j(t),e)}function Gu(e,t){return e&&ze(t,ce(t),e)}function Ze(e,t,n){t=="__proto__"&&En?En(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Or(e,t){for(var n=-1,o=t.length,a=h(o),s=e==null;++n<o;)a[n]=s?r:vi(e,t[n]);return a}function St(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function Ie(e,t,n,o,a,s){var p,c=t&Fe,d=t&Z,v=t&Ge;if(n&&(p=a?n(e,o,a,s):n(e)),p!==r)return p;if(!q(e))return e;var b=R(e);if(b){if(p=Fp(e),!c)return ue(e,p)}else{var x=re(e),C=x==mn||x==Bi;if(gt(e))return Xo(e,c);if(x==Ve||x==At||C&&!a){if(p=d||C?{}:ma(e),!c)return d?bp(e,Gu(p,e)):vp(e,Ao(p,e))}else{if(!N[x])return a?e:{};p=Rp(e,x,c)}}s||(s=new Pe);var I=s.get(e);if(I)return I;s.set(e,p),Ka(e)?e.forEach(function(T){p.add(Ie(T,t,n,T,e,s))}):Na(e)&&e.forEach(function(T,k){p.set(k,Ie(T,t,n,k,e,s))});var B=v?d?ii:ri:d?ce:j,D=b?r:B(e);return we(D||e,function(T,k){D&&(k=T,T=e[k]),rn(p,k,Ie(T,t,n,k,e,s))}),p}function Nu(e){var t=j(e);return function(n){return Bo(n,e,t)}}function Bo(e,t,n){var o=n.length;if(e==null)return!o;for(e=G(e);o--;){var a=n[o],s=t[a],p=e[a];if(p===r&&!(a in e)||!s(p))return!1}return!0}function To(e,t,n){if(typeof e!="function")throw new Ce(S);return cn(function(){e.apply(r,n)},t)}function on(e,t,n,o){var a=-1,s=_n,p=!0,c=e.length,d=[],v=t.length;if(!c)return d;n&&(t=K(t,me(n))),o?(s=Cr,p=!1):t.length>=y&&(s=Xt,p=!1,t=new _t(t));e:for(;++a<c;){var b=e[a],x=n==null?b:n(b);if(b=o||b!==0?b:0,p&&x===x){for(var C=v;C--;)if(t[C]===x)continue e;d.push(b)}else s(t,x,o)||d.push(b)}return d}var pt=na(We),Fo=na(zr,!0);function $u(e,t){var n=!0;return pt(e,function(o,a,s){return n=!!t(o,a,s),n}),n}function Wn(e,t,n){for(var o=-1,a=e.length;++o<a;){var s=e[o],p=t(s);if(p!=null&&(c===r?p===p&&!ve(p):n(p,c)))var c=p,d=s}return d}function Ku(e,t,n,o){var a=e.length;for(n=E(n),n<0&&(n=-n>a?0:a+n),o=o===r||o>a?a:E(o),o<0&&(o+=a),o=n>o?0:Va(o);n<o;)e[n++]=t;return e}function Ro(e,t){var n=[];return pt(e,function(o,a,s){t(o,a,s)&&n.push(o)}),n}function te(e,t,n,o,a){var s=-1,p=e.length;for(n||(n=Dp),a||(a=[]);++s<p;){var c=e[s];t>0&&n(c)?t>1?te(c,t-1,n,o,a):lt(a,c):o||(a[a.length]=c)}return a}var Wr=ra(),Eo=ra(!0);function We(e,t){return e&&Wr(e,t,j)}function zr(e,t){return e&&Eo(e,t,j)}function zn(e,t){return at(t,function(n){return et(e[n])})}function wt(e,t){t=ft(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Ue(t[n++])];return n&&n==o?e:r}function Do(e,t,n){var o=t(e);return R(e)?o:lt(o,n(e))}function ae(e){return e==null?e===r?xl:vl:bt&&bt in G(e)?Ap(e):zp(e)}function Ur(e,t){return e>t}function qu(e,t){return e!=null&&U.call(e,t)}function Vu(e,t){return e!=null&&t in G(e)}function Yu(e,t,n){return e>=ne(t,n)&&e<Q(t,n)}function Gr(e,t,n){for(var o=n?Cr:_n,a=e[0].length,s=e.length,p=s,c=h(s),d=1/0,v=[];p--;){var b=e[p];p&&t&&(b=K(b,me(t))),d=ne(b.length,d),c[p]=!n&&(t||a>=120&&b.length>=120)?new _t(p&&b):r}b=e[0];var x=-1,C=c[0];e:for(;++x<a&&v.length<d;){var I=b[x],B=t?t(I):I;if(I=n||I!==0?I:0,!(C?Xt(C,B):o(v,B,n))){for(p=s;--p;){var D=c[p];if(!(D?Xt(D,B):o(e[p],B,n)))continue e}C&&C.push(B),v.push(I)}}return v}function Ju(e,t,n,o){return We(e,function(a,s,p){t(o,n(a),s,p)}),o}function an(e,t,n){t=ft(t,e),e=xa(e,t);var o=e==null?e:e[Ue(Be(t))];return o==null?r:he(o,e,n)}function Po(e){return V(e)&&ae(e)==At}function Zu(e){return V(e)&&ae(e)==Zt}function Xu(e){return V(e)&&ae(e)==Kt}function ln(e,t,n,o,a){return e===t?!0:e==null||t==null||!V(e)&&!V(t)?e!==e&&t!==t:Qu(e,t,n,o,ln,a)}function Qu(e,t,n,o,a,s){var p=R(e),c=R(t),d=p?gn:re(e),v=c?gn:re(t);d=d==At?Ve:d,v=v==At?Ve:v;var b=d==Ve,x=v==Ve,C=d==v;if(C&&gt(e)){if(!gt(t))return!1;p=!0,b=!1}if(C&&!b)return s||(s=new Pe),p||Ut(e)?da(e,t,n,o,a,s):Lp(e,t,d,n,o,a,s);if(!(n&Ne)){var I=b&&U.call(e,"__wrapped__"),B=x&&U.call(t,"__wrapped__");if(I||B){var D=I?e.value():e,T=B?t.value():t;return s||(s=new Pe),a(D,T,n,o,s)}}return C?(s||(s=new Pe),Ip(e,t,n,o,a,s)):!1}function ju(e){return V(e)&&re(e)==Re}function Nr(e,t,n,o){var a=n.length,s=a,p=!o;if(e==null)return!s;for(e=G(e);a--;){var c=n[a];if(p&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){c=n[a];var d=c[0],v=e[d],b=c[1];if(p&&c[2]){if(v===r&&!(d in e))return!1}else{var x=new Pe;if(o)var C=o(v,b,d,e,t,x);if(!(C===r?ln(b,v,Ne|mt,o,x):C))return!1}}return!0}function ko(e){if(!q(e)||kp(e))return!1;var t=et(e)?js:Nl;return t.test(Lt(e))}function ep(e){return V(e)&&ae(e)==Vt}function tp(e){return V(e)&&re(e)==Ee}function np(e){return V(e)&&rr(e.length)&&!!$[ae(e)]}function Ho(e){return typeof e=="function"?e:e==null?fe:typeof e=="object"?R(e)?Wo(e[0],e[1]):Oo(e):il(e)}function $r(e){if(!pn(e))return ou(e);var t=[];for(var n in G(e))U.call(e,n)&&n!="constructor"&&t.push(n);return t}function rp(e){if(!q(e))return Wp(e);var t=pn(e),n=[];for(var o in e)o=="constructor"&&(t||!U.call(e,o))||n.push(o);return n}function Kr(e,t){return e<t}function Mo(e,t){var n=-1,o=pe(e)?h(e.length):[];return pt(e,function(a,s,p){o[++n]=t(a,s,p)}),o}function Oo(e){var t=ai(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 Wo(e,t){return si(e)&&ya(t)?va(Ue(e),t):function(n){var o=vi(n,e);return o===r&&o===t?bi(n,e):ln(t,o,Ne|mt)}}function Un(e,t,n,o,a){e!==t&&Wr(t,function(s,p){if(a||(a=new Pe),q(s))ip(e,t,p,n,Un,o,a);else{var c=o?o(pi(e,p),s,p+"",e,t,a):r;c===r&&(c=s),Mr(e,p,c)}},ce)}function ip(e,t,n,o,a,s,p){var c=pi(e,n),d=pi(t,n),v=p.get(d);if(v){Mr(e,n,v);return}var b=s?s(c,d,n+"",e,t,p):r,x=b===r;if(x){var C=R(d),I=!C&&gt(d),B=!C&&!I&&Ut(d);b=d,C||I||B?R(c)?b=c:Y(c)?b=ue(c):I?(x=!1,b=Xo(d,!0)):B?(x=!1,b=Qo(d,!0)):b=[]:fn(d)||It(d)?(b=c,It(c)?b=Ya(c):(!q(c)||et(c))&&(b=ma(d))):x=!1}x&&(p.set(d,b),a(b,d,o,s,p),p.delete(d)),Mr(e,n,b)}function zo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,je(t,n)?e[t]:r}function Uo(e,t,n){t.length?t=K(t,function(s){return R(s)?function(p){return wt(p,s.length===1?s[0]:s)}:s}):t=[fe];var o=-1;t=K(t,me(A()));var a=Mo(e,function(s,p,c){var d=K(t,function(v){return v(s)});return{criteria:d,index:++o,value:s}});return Rs(a,function(s,p){return yp(s,p,n)})}function op(e,t){return Go(e,t,function(n,o){return bi(e,o)})}function Go(e,t,n){for(var o=-1,a=t.length,s={};++o<a;){var p=t[o],c=wt(e,p);n(c,p)&&sn(s,ft(p,e),c)}return s}function ap(e){return function(t){return wt(t,e)}}function qr(e,t,n,o){var a=o?Fs:Ft,s=-1,p=t.length,c=e;for(e===t&&(t=ue(t)),n&&(c=K(e,me(n)));++s<p;)for(var d=0,v=t[s],b=n?n(v):v;(d=a(c,b,d,o))>-1;)c!==e&&Rn.call(c,d,1),Rn.call(e,d,1);return e}function No(e,t){for(var n=e?t.length:0,o=n-1;n--;){var a=t[n];if(n==o||a!==s){var s=a;je(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function Vr(e,t){return e+Pn(wo()*(t-e+1))}function lp(e,t,n,o){for(var a=-1,s=Q(Dn((t-e)/(n||1)),0),p=h(s);s--;)p[o?s:++a]=e,e+=n;return p}function Yr(e,t){var n="";if(!e||t<1||t>ot)return n;do t%2&&(n+=e),t=Pn(t/2),t&&(e+=e);while(t);return n}function P(e,t){return ci(ba(e,t,fe),e+"")}function sp(e){return Io(Gt(e))}function up(e,t){var n=Gt(e);return Xn(n,St(t,0,n.length))}function sn(e,t,n,o){if(!q(e))return e;t=ft(t,e);for(var a=-1,s=t.length,p=s-1,c=e;c!=null&&++a<s;){var d=Ue(t[a]),v=n;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(a!=p){var b=c[d];v=o?o(b,d,c):r,v===r&&(v=q(b)?b:je(t[a+1])?[]:{})}rn(c,d,v),c=c[d]}return e}var $o=kn?function(e,t){return kn.set(e,t),e}:fe,pp=En?function(e,t){return En(e,"toString",{configurable:!0,enumerable:!1,value:_i(t),writable:!0})}:fe;function cp(e){return Xn(Gt(e))}function Ae(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=h(a);++o<a;)s[o]=e[o+t];return s}function fp(e,t){var n;return pt(e,function(o,a,s){return n=t(o,a,s),!n}),!!n}function Gn(e,t,n){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=gl){for(;o<a;){var s=o+a>>>1,p=e[s];p!==null&&!ve(p)&&(n?p<=t:p<t)?o=s+1:a=s}return a}return Jr(e,t,fe,n)}function Jr(e,t,n,o){var a=0,s=e==null?0:e.length;if(s===0)return 0;t=n(t);for(var p=t!==t,c=t===null,d=ve(t),v=t===r;a<s;){var b=Pn((a+s)/2),x=n(e[b]),C=x!==r,I=x===null,B=x===x,D=ve(x);if(p)var T=o||B;else v?T=B&&(o||C):c?T=B&&C&&(o||!I):d?T=B&&C&&!I&&(o||!D):I||D?T=!1:T=o?x<=t:x<t;T?a=b+1:s=b}return ne(s,dl)}function Ko(e,t){for(var n=-1,o=e.length,a=0,s=[];++n<o;){var p=e[n],c=t?t(p):p;if(!n||!ke(c,d)){var d=c;s[a++]=p===0?0:p}}return s}function qo(e){return typeof e=="number"?e:ve(e)?dn:+e}function ye(e){if(typeof e=="string")return e;if(R(e))return K(e,ye)+"";if(ve(e))return Co?Co.call(e):"";var t=e+"";return t=="0"&&1/e==-yt?"-0":t}function ct(e,t,n){var o=-1,a=_n,s=e.length,p=!0,c=[],d=c;if(n)p=!1,a=Cr;else if(s>=y){var v=t?null:wp(e);if(v)return wn(v);p=!1,a=Xt,d=new _t}else d=t?[]:c;e:for(;++o<s;){var b=e[o],x=t?t(b):b;if(b=n||b!==0?b:0,p&&x===x){for(var C=d.length;C--;)if(d[C]===x)continue e;t&&d.push(x),c.push(b)}else a(d,x,n)||(d!==c&&d.push(x),c.push(b))}return c}function Zr(e,t){return t=ft(t,e),e=xa(e,t),e==null||delete e[Ue(Be(t))]}function Vo(e,t,n,o){return sn(e,t,n(wt(e,t)),o)}function Nn(e,t,n,o){for(var a=e.length,s=o?a:-1;(o?s--:++s<a)&&t(e[s],s,e););return n?Ae(e,o?0:s,o?s+1:a):Ae(e,o?s+1:0,o?a:s)}function Yo(e,t){var n=e;return n instanceof H&&(n=n.value()),Lr(t,function(o,a){return a.func.apply(a.thisArg,lt([o],a.args))},n)}function Xr(e,t,n){var o=e.length;if(o<2)return o?ct(e[0]):[];for(var a=-1,s=h(o);++a<o;)for(var p=e[a],c=-1;++c<o;)c!=a&&(s[a]=on(s[a]||p,e[c],t,n));return ct(te(s,1),t,n)}function Jo(e,t,n){for(var o=-1,a=e.length,s=t.length,p={};++o<a;){var c=o<s?t[o]:r;n(p,e[o],c)}return p}function Qr(e){return Y(e)?e:[]}function jr(e){return typeof e=="function"?e:fe}function ft(e,t){return R(e)?e:si(e,t)?[e]:Ca(z(e))}var dp=P;function dt(e,t,n){var o=e.length;return n=n===r?o:n,!t&&n>=o?e:Ae(e,t,n)}var Zo=eu||function(e){return ee.clearTimeout(e)};function Xo(e,t){if(t)return e.slice();var n=e.length,o=vo?vo(n):new e.constructor(n);return e.copy(o),o}function ei(e){var t=new e.constructor(e.byteLength);return new Tn(t).set(new Tn(e)),t}function gp(e,t){var n=t?ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function hp(e){var t=new e.constructor(e.source,Di.exec(e));return t.lastIndex=e.lastIndex,t}function mp(e){return nn?G(nn.call(e)):{}}function Qo(e,t){var n=t?ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var n=e!==r,o=e===null,a=e===e,s=ve(e),p=t!==r,c=t===null,d=t===t,v=ve(t);if(!c&&!v&&!s&&e>t||s&&p&&d&&!c&&!v||o&&p&&d||!n&&d||!a)return 1;if(!o&&!s&&!v&&e<t||v&&n&&a&&!o&&!s||c&&n&&a||!p&&a||!d)return-1}return 0}function yp(e,t,n){for(var o=-1,a=e.criteria,s=t.criteria,p=a.length,c=n.length;++o<p;){var d=jo(a[o],s[o]);if(d){if(o>=c)return d;var v=n[o];return d*(v=="desc"?-1:1)}}return e.index-t.index}function ea(e,t,n,o){for(var a=-1,s=e.length,p=n.length,c=-1,d=t.length,v=Q(s-p,0),b=h(d+v),x=!o;++c<d;)b[c]=t[c];for(;++a<p;)(x||a<s)&&(b[n[a]]=e[a]);for(;v--;)b[c++]=e[a++];return b}function ta(e,t,n,o){for(var a=-1,s=e.length,p=-1,c=n.length,d=-1,v=t.length,b=Q(s-c,0),x=h(b+v),C=!o;++a<b;)x[a]=e[a];for(var I=a;++d<v;)x[I+d]=t[d];for(;++p<c;)(C||a<s)&&(x[I+n[p]]=e[a++]);return x}function ue(e,t){var n=-1,o=e.length;for(t||(t=h(o));++n<o;)t[n]=e[n];return t}function ze(e,t,n,o){var a=!n;n||(n={});for(var s=-1,p=t.length;++s<p;){var c=t[s],d=o?o(n[c],e[c],c,n,e):r;d===r&&(d=e[c]),a?Ze(n,c,d):rn(n,c,d)}return n}function vp(e,t){return ze(e,li(e),t)}function bp(e,t){return ze(e,ga(e),t)}function $n(e,t){return function(n,o){var a=R(n)?Cs:Uu,s=t?t():{};return a(n,e,A(o,2),s)}}function Ot(e){return P(function(t,n){var o=-1,a=n.length,s=a>1?n[a-1]:r,p=a>2?n[2]:r;for(s=e.length>3&&typeof s=="function"?(a--,s):r,p&&le(n[0],n[1],p)&&(s=a<3?r:s,a=1),t=G(t);++o<a;){var c=n[o];c&&e(t,c,o,s)}return t})}function na(e,t){return function(n,o){if(n==null)return n;if(!pe(n))return e(n,o);for(var a=n.length,s=t?a:-1,p=G(n);(t?s--:++s<a)&&o(p[s],s,p)!==!1;);return n}}function ra(e){return function(t,n,o){for(var a=-1,s=G(t),p=o(t),c=p.length;c--;){var d=p[e?c:++a];if(n(s[d],d,s)===!1)break}return t}}function xp(e,t,n){var o=t&oe,a=un(e);function s(){var p=this&&this!==ee&&this instanceof s?a:e;return p.apply(o?n:this,arguments)}return s}function ia(e){return function(t){t=z(t);var n=Rt(t)?De(t):r,o=n?n[0]:t.charAt(0),a=n?dt(n,1).join(""):t.slice(1);return o[e]()+a}}function Wt(e){return function(t){return Lr(nl(tl(t).replace(ps,"")),e,"")}}function un(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Mt(e.prototype),o=e.apply(n,t);return q(o)?o:n}}function _p(e,t,n){var o=un(e);function a(){for(var s=arguments.length,p=h(s),c=s,d=zt(a);c--;)p[c]=arguments[c];var v=s<3&&p[0]!==d&&p[s-1]!==d?[]:st(p,d);if(s-=v.length,s<n)return ua(e,t,Kn,a.placeholder,r,p,v,r,r,n-s);var b=this&&this!==ee&&this instanceof a?o:e;return he(b,this,p)}return a}function oa(e){return function(t,n,o){var a=G(t);if(!pe(t)){var s=A(n,3);t=j(t),n=function(c){return s(a[c],c,a)}}var p=e(t,n,o);return p>-1?a[s?t[p]:p]:r}}function aa(e){return Qe(function(t){var n=t.length,o=n,a=Le.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if(typeof s!="function")throw new Ce(S);if(a&&!p&&Jn(s)=="wrapper")var p=new Le([],!0)}for(o=p?o:n;++o<n;){s=t[o];var c=Jn(s),d=c=="wrapper"?oi(s):r;d&&ui(d[0])&&d[1]==(_e|de|ge|it)&&!d[4].length&&d[9]==1?p=p[Jn(d[0])].apply(p,d[3]):p=s.length==1&&ui(s)?p[c]():p.thru(s)}return function(){var v=arguments,b=v[0];if(p&&v.length==1&&R(b))return p.plant(b).value();for(var x=0,C=n?t[x].apply(this,v):b;++x<n;)C=t[x].call(this,C);return C}})}function Kn(e,t,n,o,a,s,p,c,d,v){var b=t&_e,x=t&oe,C=t&Me,I=t&(de|$e),B=t&qe,D=C?r:un(e);function T(){for(var k=arguments.length,O=h(k),be=k;be--;)O[be]=arguments[be];if(I)var se=zt(T),xe=Ds(O,se);if(o&&(O=ea(O,o,a,I)),s&&(O=ta(O,s,p,I)),k-=xe,I&&k<v){var J=st(O,se);return ua(e,t,Kn,T.placeholder,n,O,J,c,d,v-k)}var He=x?n:this,nt=C?He[e]:e;return k=O.length,c?O=Up(O,c):B&&k>1&&O.reverse(),b&&d<k&&(O.length=d),this&&this!==ee&&this instanceof T&&(nt=D||un(nt)),nt.apply(He,O)}return T}function la(e,t){return function(n,o){return Ju(n,e,t(o),{})}}function qn(e,t){return function(n,o){var a;if(n===r&&o===r)return t;if(n!==r&&(a=n),o!==r){if(a===r)return o;typeof n=="string"||typeof o=="string"?(n=ye(n),o=ye(o)):(n=qo(n),o=qo(o)),a=e(n,o)}return a}}function ti(e){return Qe(function(t){return t=K(t,me(A())),P(function(n){var o=this;return e(t,function(a){return he(a,o,n)})})})}function Vn(e,t){t=t===r?" ":ye(t);var n=t.length;if(n<2)return n?Yr(t,e):t;var o=Yr(t,Dn(e/Et(t)));return Rt(t)?dt(De(o),0,e).join(""):o.slice(0,e)}function Sp(e,t,n,o){var a=t&oe,s=un(e);function p(){for(var c=-1,d=arguments.length,v=-1,b=o.length,x=h(b+d),C=this&&this!==ee&&this instanceof p?s:e;++v<b;)x[v]=o[v];for(;d--;)x[v++]=arguments[++c];return he(C,a?n:this,x)}return p}function sa(e){return function(t,n,o){return o&&typeof o!="number"&&le(t,n,o)&&(n=o=r),t=tt(t),n===r?(n=t,t=0):n=tt(n),o=o===r?t<n?1:-1:tt(o),lp(t,n,o,e)}}function Yn(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,o,a,s,p,c,d,v){var b=t&de,x=b?p:r,C=b?r:p,I=b?s:r,B=b?r:s;t|=b?ge:Ke,t&=~(b?Ke:ge),t&Nt||(t&=~(oe|Me));var D=[e,t,a,I,x,B,C,c,d,v],T=n.apply(r,D);return ui(e)&&_a(T,D),T.placeholder=o,Sa(T,e,t)}function ni(e){var t=X[e];return function(n,o){if(n=Te(n),o=o==null?0:ne(E(o),292),o&&So(n)){var a=(z(n)+"e").split("e"),s=t(a[0]+"e"+(+a[1]+o));return a=(z(s)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(n)}}var wp=kt&&1/wn(new kt([,-0]))[1]==yt?function(e){return new kt(e)}:Ci;function pa(e){return function(t){var n=re(t);return n==Re?Er(t):n==Ee?zs(t):Es(t,e(t))}}function Xe(e,t,n,o,a,s,p,c){var d=t&Me;if(!d&&typeof e!="function")throw new Ce(S);var v=o?o.length:0;if(v||(t&=~(ge|Ke),o=a=r),p=p===r?p:Q(E(p),0),c=c===r?c:E(c),v-=a?a.length:0,t&Ke){var b=o,x=a;o=a=r}var C=d?r:oi(e),I=[e,t,n,o,a,b,x,s,p,c];if(C&&Op(I,C),e=I[0],t=I[1],n=I[2],o=I[3],a=I[4],c=I[9]=I[9]===r?d?0:e.length:Q(I[9]-v,0),!c&&t&(de|$e)&&(t&=~(de|$e)),!t||t==oe)var B=xp(e,t,n);else t==de||t==$e?B=_p(e,t,c):(t==ge||t==(oe|ge))&&!a.length?B=Sp(e,t,n,o):B=Kn.apply(r,I);var D=C?$o:_a;return Sa(D(B,I),e,t)}function ca(e,t,n,o){return e===r||ke(e,Pt[n])&&!U.call(o,n)?t:e}function fa(e,t,n,o,a,s){return q(e)&&q(t)&&(s.set(t,e),Un(e,t,r,fa,s),s.delete(t)),e}function Cp(e){return fn(e)?r:e}function da(e,t,n,o,a,s){var p=n&Ne,c=e.length,d=t.length;if(c!=d&&!(p&&d>c))return!1;var v=s.get(e),b=s.get(t);if(v&&b)return v==t&&b==e;var x=-1,C=!0,I=n&mt?new _t:r;for(s.set(e,t),s.set(t,e);++x<c;){var B=e[x],D=t[x];if(o)var T=p?o(D,B,x,t,e,s):o(B,D,x,e,t,s);if(T!==r){if(T)continue;C=!1;break}if(I){if(!Ir(t,function(k,O){if(!Xt(I,O)&&(B===k||a(B,k,n,o,s)))return I.push(O)})){C=!1;break}}else if(!(B===D||a(B,D,n,o,s))){C=!1;break}}return s.delete(e),s.delete(t),C}function Lp(e,t,n,o,a,s,p){switch(n){case Bt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!s(new Tn(e),new Tn(t)));case $t:case Kt:case qt:return ke(+e,+t);case hn:return e.name==t.name&&e.message==t.message;case Vt:case Yt:return e==t+"";case Re:var c=Er;case Ee:var d=o&Ne;if(c||(c=wn),e.size!=t.size&&!d)return!1;var v=p.get(e);if(v)return v==t;o|=mt,p.set(e,t);var b=da(c(e),c(t),o,a,s,p);return p.delete(e),b;case yn:if(nn)return nn.call(e)==nn.call(t)}return!1}function Ip(e,t,n,o,a,s){var p=n&Ne,c=ri(e),d=c.length,v=ri(t),b=v.length;if(d!=b&&!p)return!1;for(var x=d;x--;){var C=c[x];if(!(p?C in t:U.call(t,C)))return!1}var I=s.get(e),B=s.get(t);if(I&&B)return I==t&&B==e;var D=!0;s.set(e,t),s.set(t,e);for(var T=p;++x<d;){C=c[x];var k=e[C],O=t[C];if(o)var be=p?o(O,k,C,t,e,s):o(k,O,C,e,t,s);if(!(be===r?k===O||a(k,O,n,o,s):be)){D=!1;break}T||(T=C=="constructor")}if(D&&!T){var se=e.constructor,xe=t.constructor;se!=xe&&"constructor"in e&&"constructor"in t&&!(typeof se=="function"&&se instanceof se&&typeof xe=="function"&&xe instanceof xe)&&(D=!1)}return s.delete(e),s.delete(t),D}function Qe(e){return ci(ba(e,r,Ba),e+"")}function ri(e){return Do(e,j,li)}function ii(e){return Do(e,ce,ga)}var oi=kn?function(e){return kn.get(e)}:Ci;function Jn(e){for(var t=e.name+"",n=Ht[t],o=U.call(Ht,t)?n.length:0;o--;){var a=n[o],s=a.func;if(s==null||s==e)return a.name}return t}function zt(e){var t=U.call(l,"placeholder")?l:e;return t.placeholder}function A(){var e=l.iteratee||Si;return e=e===Si?Ho:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var n=e.__data__;return Pp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ai(e){for(var t=j(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,ya(a)]}return t}function Ct(e,t){var n=Ms(e,t);return ko(n)?n:r}function Ap(e){var t=U.call(e,bt),n=e[bt];try{e[bt]=r;var o=!0}catch{}var a=An.call(e);return o&&(t?e[bt]=n:delete e[bt]),a}var li=Pr?function(e){return e==null?[]:(e=G(e),at(Pr(e),function(t){return xo.call(e,t)}))}:Li,ga=Pr?function(e){for(var t=[];e;)lt(t,li(e)),e=Fn(e);return t}:Li,re=ae;(kr&&re(new kr(new ArrayBuffer(1)))!=Bt||jt&&re(new jt)!=Re||Hr&&re(Hr.resolve())!=Ti||kt&&re(new kt)!=Ee||en&&re(new en)!=Jt)&&(re=function(e){var t=ae(e),n=t==Ve?e.constructor:r,o=n?Lt(n):"";if(o)switch(o){case uu:return Bt;case pu:return Re;case cu:return Ti;case fu:return Ee;case du:return Jt}return t});function Bp(e,t,n){for(var o=-1,a=n.length;++o<a;){var s=n[o],p=s.size;switch(s.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=ne(t,e+p);break;case"takeRight":e=Q(e,t-p);break}}return{start:e,end:t}}function Tp(e){var t=e.match(kl);return t?t[1].split(Hl):[]}function ha(e,t,n){t=ft(t,e);for(var o=-1,a=t.length,s=!1;++o<a;){var p=Ue(t[o]);if(!(s=e!=null&&n(e,p)))break;e=e[p]}return s||++o!=a?s:(a=e==null?0:e.length,!!a&&rr(a)&&je(p,a)&&(R(e)||It(e)))}function Fp(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&U.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ma(e){return typeof e.constructor=="function"&&!pn(e)?Mt(Fn(e)):{}}function Rp(e,t,n){var o=e.constructor;switch(t){case Zt:return ei(e);case $t:case Kt:return new o(+e);case Bt:return gp(e,n);case ar:case lr:case sr:case ur:case pr:case cr:case fr:case dr:case gr:return Qo(e,n);case Re:return new o;case qt:case Yt:return new o(e);case Vt:return hp(e);case Ee:return new o;case yn:return mp(e)}}function Ep(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(Pl,`{
8
+ */(function(i,u){(function(){var r,g="4.17.21",y=200,w="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",S="Expected a function",O="Invalid `variable` option passed into `_.template`",ie="__lodash_hash_undefined__",rt=500,ht="__lodash_placeholder__",Fe=1,Z=2,Ge=4,Ne=1,mt=2,oe=1,Me=2,Nt=4,de=8,$e=16,ge=32,Ke=64,_e=128,it=256,qe=512,al=30,ll="...",sl=800,ul=16,Ai=1,pl=2,cl=3,yt=1/0,ot=9007199254740991,fl=17976931348623157e292,dn=0/0,Oe=4294967295,dl=Oe-1,gl=Oe>>>1,hl=[["ary",_e],["bind",oe],["bindKey",Me],["curry",de],["curryRight",$e],["flip",qe],["partial",ge],["partialRight",Ke],["rearg",it]],At="[object Arguments]",gn="[object Array]",ml="[object AsyncFunction]",$t="[object Boolean]",Kt="[object Date]",yl="[object DOMException]",hn="[object Error]",mn="[object Function]",Bi="[object GeneratorFunction]",Re="[object Map]",qt="[object Number]",vl="[object Null]",Ve="[object Object]",Ti="[object Promise]",bl="[object Proxy]",Vt="[object RegExp]",Ee="[object Set]",Yt="[object String]",yn="[object Symbol]",xl="[object Undefined]",Jt="[object WeakMap]",_l="[object WeakSet]",Zt="[object ArrayBuffer]",Bt="[object DataView]",ar="[object Float32Array]",lr="[object Float64Array]",sr="[object Int8Array]",ur="[object Int16Array]",pr="[object Int32Array]",cr="[object Uint8Array]",fr="[object Uint8ClampedArray]",dr="[object Uint16Array]",gr="[object Uint32Array]",Sl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Cl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fi=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Ll=RegExp(Fi.source),Il=RegExp(Ri.source),Al=/<%-([\s\S]+?)%>/g,Bl=/<%([\s\S]+?)%>/g,Ei=/<%=([\s\S]+?)%>/g,Tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fl=/^\w*$/,Rl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,El=RegExp(hr.source),mr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,kl=/\{\n\/\* \[wrapped with (.+)\] \*/,Hl=/,? & /,Ml=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,Wl=/\\(\\)?/g,zl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Di=/\w*$/,Ul=/^[-+]0x[0-9a-f]+$/i,Gl=/^0b[01]+$/i,Nl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,ql=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,bn="\\ud800-\\udfff",Yl="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Zl="\\u20d0-\\u20ff",Pi=Yl+Jl+Zl,ki="\\u2700-\\u27bf",Hi="a-z\\xdf-\\xf6\\xf8-\\xff",Xl="\\xac\\xb1\\xd7\\xf7",Ql="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jl="\\u2000-\\u206f",es=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Mi="A-Z\\xc0-\\xd6\\xd8-\\xde",Oi="\\ufe0e\\ufe0f",Wi=Xl+Ql+jl+es,yr="['\u2019]",ts="["+bn+"]",zi="["+Wi+"]",xn="["+Pi+"]",Ui="\\d+",ns="["+ki+"]",Gi="["+Hi+"]",Ni="[^"+bn+Wi+Ui+ki+Hi+Mi+"]",vr="\\ud83c[\\udffb-\\udfff]",rs="(?:"+xn+"|"+vr+")",$i="[^"+bn+"]",br="(?:\\ud83c[\\udde6-\\uddff]){2}",xr="[\\ud800-\\udbff][\\udc00-\\udfff]",Tt="["+Mi+"]",Ki="\\u200d",qi="(?:"+Gi+"|"+Ni+")",is="(?:"+Tt+"|"+Ni+")",Vi="(?:"+yr+"(?:d|ll|m|re|s|t|ve))?",Yi="(?:"+yr+"(?:D|LL|M|RE|S|T|VE))?",Ji=rs+"?",Zi="["+Oi+"]?",os="(?:"+Ki+"(?:"+[$i,br,xr].join("|")+")"+Zi+Ji+")*",as="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ls="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xi=Zi+Ji+os,ss="(?:"+[ns,br,xr].join("|")+")"+Xi,us="(?:"+[$i+xn+"?",xn,br,xr,ts].join("|")+")",ps=RegExp(yr,"g"),cs=RegExp(xn,"g"),_r=RegExp(vr+"(?="+vr+")|"+us+Xi,"g"),fs=RegExp([Tt+"?"+Gi+"+"+Vi+"(?="+[zi,Tt,"$"].join("|")+")",is+"+"+Yi+"(?="+[zi,Tt+qi,"$"].join("|")+")",Tt+"?"+qi+"+"+Vi,Tt+"+"+Yi,ls,as,Ui,ss].join("|"),"g"),ds=RegExp("["+Ki+bn+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,$={};$[ar]=$[lr]=$[sr]=$[ur]=$[pr]=$[cr]=$[fr]=$[dr]=$[gr]=!0,$[At]=$[gn]=$[Zt]=$[$t]=$[Bt]=$[Kt]=$[hn]=$[mn]=$[Re]=$[qt]=$[Ve]=$[Vt]=$[Ee]=$[Yt]=$[Jt]=!1;var N={};N[At]=N[gn]=N[Zt]=N[Bt]=N[$t]=N[Kt]=N[ar]=N[lr]=N[sr]=N[ur]=N[pr]=N[Re]=N[qt]=N[Ve]=N[Vt]=N[Ee]=N[Yt]=N[yn]=N[cr]=N[fr]=N[dr]=N[gr]=!0,N[hn]=N[mn]=N[Jt]=!1;var ys={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},vs={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},bs={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},xs={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},_s=parseFloat,Ss=parseInt,Qi=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ws=typeof self=="object"&&self&&self.Object===Object&&self,ee=Qi||ws||Function("return this")(),Sr=u&&!u.nodeType&&u,vt=Sr&&!0&&i&&!i.nodeType&&i,ji=vt&&vt.exports===Sr,wr=ji&&Qi.process,Se=function(){try{var f=vt&&vt.require&&vt.require("util").types;return f||wr&&wr.binding&&wr.binding("util")}catch{}}(),eo=Se&&Se.isArrayBuffer,to=Se&&Se.isDate,no=Se&&Se.isMap,ro=Se&&Se.isRegExp,io=Se&&Se.isSet,oo=Se&&Se.isTypedArray;function he(f,m,h){switch(h.length){case 0:return f.call(m);case 1:return f.call(m,h[0]);case 2:return f.call(m,h[0],h[1]);case 3:return f.call(m,h[0],h[1],h[2])}return f.apply(m,h)}function Cs(f,m,h,L){for(var F=-1,W=f==null?0:f.length;++F<W;){var X=f[F];m(L,X,h(X),f)}return L}function we(f,m){for(var h=-1,L=f==null?0:f.length;++h<L&&m(f[h],h,f)!==!1;);return f}function Ls(f,m){for(var h=f==null?0:f.length;h--&&m(f[h],h,f)!==!1;);return f}function ao(f,m){for(var h=-1,L=f==null?0:f.length;++h<L;)if(!m(f[h],h,f))return!1;return!0}function at(f,m){for(var h=-1,L=f==null?0:f.length,F=0,W=[];++h<L;){var X=f[h];m(X,h,f)&&(W[F++]=X)}return W}function _n(f,m){var h=f==null?0:f.length;return!!h&&Ft(f,m,0)>-1}function Cr(f,m,h){for(var L=-1,F=f==null?0:f.length;++L<F;)if(h(m,f[L]))return!0;return!1}function K(f,m){for(var h=-1,L=f==null?0:f.length,F=Array(L);++h<L;)F[h]=m(f[h],h,f);return F}function lt(f,m){for(var h=-1,L=m.length,F=f.length;++h<L;)f[F+h]=m[h];return f}function Lr(f,m,h,L){var F=-1,W=f==null?0:f.length;for(L&&W&&(h=f[++F]);++F<W;)h=m(h,f[F],F,f);return h}function Is(f,m,h,L){var F=f==null?0:f.length;for(L&&F&&(h=f[--F]);F--;)h=m(h,f[F],F,f);return h}function Ir(f,m){for(var h=-1,L=f==null?0:f.length;++h<L;)if(m(f[h],h,f))return!0;return!1}var As=Ar("length");function Bs(f){return f.split("")}function Ts(f){return f.match(Ml)||[]}function lo(f,m,h){var L;return h(f,function(F,W,X){if(m(F,W,X))return L=W,!1}),L}function Sn(f,m,h,L){for(var F=f.length,W=h+(L?1:-1);L?W--:++W<F;)if(m(f[W],W,f))return W;return-1}function Ft(f,m,h){return m===m?Us(f,m,h):Sn(f,so,h)}function Fs(f,m,h,L){for(var F=h-1,W=f.length;++F<W;)if(L(f[F],m))return F;return-1}function so(f){return f!==f}function uo(f,m){var h=f==null?0:f.length;return h?Tr(f,m)/h:dn}function Ar(f){return function(m){return m==null?r:m[f]}}function Br(f){return function(m){return f==null?r:f[m]}}function po(f,m,h,L,F){return F(f,function(W,X,G){h=L?(L=!1,W):m(h,W,X,G)}),h}function Rs(f,m){var h=f.length;for(f.sort(m);h--;)f[h]=f[h].value;return f}function Tr(f,m){for(var h,L=-1,F=f.length;++L<F;){var W=m(f[L]);W!==r&&(h=h===r?W:h+W)}return h}function Fr(f,m){for(var h=-1,L=Array(f);++h<f;)L[h]=m(h);return L}function Es(f,m){return K(m,function(h){return[h,f[h]]})}function co(f){return f&&f.slice(0,mo(f)+1).replace(mr,"")}function me(f){return function(m){return f(m)}}function Rr(f,m){return K(m,function(h){return f[h]})}function Xt(f,m){return f.has(m)}function fo(f,m){for(var h=-1,L=f.length;++h<L&&Ft(m,f[h],0)>-1;);return h}function go(f,m){for(var h=f.length;h--&&Ft(m,f[h],0)>-1;);return h}function Ds(f,m){for(var h=f.length,L=0;h--;)f[h]===m&&++L;return L}var Ps=Br(ys),ks=Br(vs);function Hs(f){return"\\"+xs[f]}function Ms(f,m){return f==null?r:f[m]}function Rt(f){return ds.test(f)}function Os(f){return gs.test(f)}function Ws(f){for(var m,h=[];!(m=f.next()).done;)h.push(m.value);return h}function Er(f){var m=-1,h=Array(f.size);return f.forEach(function(L,F){h[++m]=[F,L]}),h}function ho(f,m){return function(h){return f(m(h))}}function st(f,m){for(var h=-1,L=f.length,F=0,W=[];++h<L;){var X=f[h];(X===m||X===ht)&&(f[h]=ht,W[F++]=h)}return W}function wn(f){var m=-1,h=Array(f.size);return f.forEach(function(L){h[++m]=L}),h}function zs(f){var m=-1,h=Array(f.size);return f.forEach(function(L){h[++m]=[L,L]}),h}function Us(f,m,h){for(var L=h-1,F=f.length;++L<F;)if(f[L]===m)return L;return-1}function Gs(f,m,h){for(var L=h+1;L--;)if(f[L]===m)return L;return L}function Et(f){return Rt(f)?$s(f):As(f)}function De(f){return Rt(f)?Ks(f):Bs(f)}function mo(f){for(var m=f.length;m--&&Dl.test(f.charAt(m)););return m}var Ns=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 Vs=function f(m){m=m==null?ee:Dt.defaults(ee.Object(),m,Dt.pick(ee,hs));var h=m.Array,L=m.Date,F=m.Error,W=m.Function,X=m.Math,G=m.Object,Dr=m.RegExp,Ys=m.String,Ce=m.TypeError,Cn=h.prototype,Js=W.prototype,Pt=G.prototype,Ln=m["__core-js_shared__"],In=Js.toString,U=Pt.hasOwnProperty,Zs=0,yo=function(){var e=/[^.]+$/.exec(Ln&&Ln.keys&&Ln.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),An=Pt.toString,Xs=In.call(G),Qs=ee._,js=Dr("^"+In.call(U).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bn=ji?m.Buffer:r,ut=m.Symbol,Tn=m.Uint8Array,vo=Bn?Bn.allocUnsafe:r,Fn=ho(G.getPrototypeOf,G),bo=G.create,xo=Pt.propertyIsEnumerable,Rn=Cn.splice,_o=ut?ut.isConcatSpreadable:r,Qt=ut?ut.iterator:r,bt=ut?ut.toStringTag:r,En=function(){try{var e=Ct(G,"defineProperty");return e({},"",{}),e}catch{}}(),eu=m.clearTimeout!==ee.clearTimeout&&m.clearTimeout,tu=L&&L.now!==ee.Date.now&&L.now,nu=m.setTimeout!==ee.setTimeout&&m.setTimeout,Dn=X.ceil,Pn=X.floor,Pr=G.getOwnPropertySymbols,ru=Bn?Bn.isBuffer:r,So=m.isFinite,iu=Cn.join,ou=ho(G.keys,G),Q=X.max,ne=X.min,au=L.now,lu=m.parseInt,wo=X.random,su=Cn.reverse,kr=Ct(m,"DataView"),jt=Ct(m,"Map"),Hr=Ct(m,"Promise"),kt=Ct(m,"Set"),en=Ct(m,"WeakMap"),tn=Ct(G,"create"),kn=en&&new en,Ht={},uu=Lt(kr),pu=Lt(jt),cu=Lt(Hr),fu=Lt(kt),du=Lt(en),Hn=ut?ut.prototype:r,nn=Hn?Hn.valueOf:r,Co=Hn?Hn.toString:r;function l(e){if(V(e)&&!R(e)&&!(e instanceof H)){if(e instanceof Le)return e;if(U.call(e,"__wrapped__"))return La(e)}return new Le(e)}var Mt=function(){function e(){}return function(t){if(!q(t))return{};if(bo)return bo(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Mn(){}function Le(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}l.templateSettings={escape:Al,evaluate:Bl,interpolate:Ei,variable:"",imports:{_:l}},l.prototype=Mn.prototype,l.prototype.constructor=l,Le.prototype=Mt(Mn.prototype),Le.prototype.constructor=Le;function H(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Oe,this.__views__=[]}function gu(){var e=new H(this.__wrapped__);return e.__actions__=ue(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ue(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ue(this.__views__),e}function hu(){if(this.__filtered__){var e=new H(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function mu(){var e=this.__wrapped__.value(),t=this.__dir__,n=R(e),o=t<0,a=n?e.length:0,s=Bp(0,a,this.__views__),p=s.start,c=s.end,d=c-p,v=o?c:p-1,b=this.__iteratees__,x=b.length,C=0,I=ne(d,this.__takeCount__);if(!n||!o&&a==d&&I==d)return Yo(e,this.__actions__);var B=[];e:for(;d--&&C<I;){v+=t;for(var D=-1,T=e[v];++D<x;){var k=b[D],M=k.iteratee,be=k.type,se=M(T);if(be==pl)T=se;else if(!se){if(be==Ai)continue e;break e}}B[C++]=T}return B}H.prototype=Mt(Mn.prototype),H.prototype.constructor=H;function xt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function yu(){this.__data__=tn?tn(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(tn){var n=t[e];return n===ie?r:n}return U.call(t,e)?t[e]:r}function xu(e){var t=this.__data__;return tn?t[e]!==r:U.call(t,e)}function _u(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=tn&&t===r?ie:t,this}xt.prototype.clear=yu,xt.prototype.delete=vu,xt.prototype.get=bu,xt.prototype.has=xu,xt.prototype.set=_u;function Ye(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Su(){this.__data__=[],this.size=0}function wu(e){var t=this.__data__,n=On(t,e);if(n<0)return!1;var o=t.length-1;return n==o?t.pop():Rn.call(t,n,1),--this.size,!0}function Cu(e){var t=this.__data__,n=On(t,e);return n<0?r:t[n][1]}function Lu(e){return On(this.__data__,e)>-1}function Iu(e,t){var n=this.__data__,o=On(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}Ye.prototype.clear=Su,Ye.prototype.delete=wu,Ye.prototype.get=Cu,Ye.prototype.has=Lu,Ye.prototype.set=Iu;function Je(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}function Au(){this.size=0,this.__data__={hash:new xt,map:new(jt||Ye),string:new xt}}function Bu(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),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}Je.prototype.clear=Au,Je.prototype.delete=Bu,Je.prototype.get=Tu,Je.prototype.has=Fu,Je.prototype.set=Ru;function _t(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Je;++t<n;)this.add(e[t])}function Eu(e){return this.__data__.set(e,ie),this}function Du(e){return this.__data__.has(e)}_t.prototype.add=_t.prototype.push=Eu,_t.prototype.has=Du;function Pe(e){var t=this.__data__=new Ye(e);this.size=t.size}function Pu(){this.__data__=new Ye,this.size=0}function ku(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hu(e){return this.__data__.get(e)}function Mu(e){return this.__data__.has(e)}function Ou(e,t){var n=this.__data__;if(n instanceof Ye){var o=n.__data__;if(!jt||o.length<y-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Je(o)}return n.set(e,t),this.size=n.size,this}Pe.prototype.clear=Pu,Pe.prototype.delete=ku,Pe.prototype.get=Hu,Pe.prototype.has=Mu,Pe.prototype.set=Ou;function Lo(e,t){var n=R(e),o=!n&&It(e),a=!n&&!o&&gt(e),s=!n&&!o&&!a&&Ut(e),p=n||o||a||s,c=p?Fr(e.length,Ys):[],d=c.length;for(var v in e)(t||U.call(e,v))&&!(p&&(v=="length"||a&&(v=="offset"||v=="parent")||s&&(v=="buffer"||v=="byteLength"||v=="byteOffset")||je(v,d)))&&c.push(v);return c}function Io(e){var t=e.length;return t?e[Vr(0,t-1)]:r}function Wu(e,t){return Xn(ue(e),St(t,0,e.length))}function zu(e){return Xn(ue(e))}function Mr(e,t,n){(n!==r&&!ke(e[t],n)||n===r&&!(t in e))&&Ze(e,t,n)}function rn(e,t,n){var o=e[t];(!(U.call(e,t)&&ke(o,n))||n===r&&!(t in e))&&Ze(e,t,n)}function On(e,t){for(var n=e.length;n--;)if(ke(e[n][0],t))return n;return-1}function Uu(e,t,n,o){return pt(e,function(a,s,p){t(o,a,n(a),p)}),o}function Ao(e,t){return e&&ze(t,j(t),e)}function Gu(e,t){return e&&ze(t,ce(t),e)}function Ze(e,t,n){t=="__proto__"&&En?En(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Or(e,t){for(var n=-1,o=t.length,a=h(o),s=e==null;++n<o;)a[n]=s?r:vi(e,t[n]);return a}function St(e,t,n){return e===e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function Ie(e,t,n,o,a,s){var p,c=t&Fe,d=t&Z,v=t&Ge;if(n&&(p=a?n(e,o,a,s):n(e)),p!==r)return p;if(!q(e))return e;var b=R(e);if(b){if(p=Fp(e),!c)return ue(e,p)}else{var x=re(e),C=x==mn||x==Bi;if(gt(e))return Xo(e,c);if(x==Ve||x==At||C&&!a){if(p=d||C?{}:ma(e),!c)return d?bp(e,Gu(p,e)):vp(e,Ao(p,e))}else{if(!N[x])return a?e:{};p=Rp(e,x,c)}}s||(s=new Pe);var I=s.get(e);if(I)return I;s.set(e,p),Ka(e)?e.forEach(function(T){p.add(Ie(T,t,n,T,e,s))}):Na(e)&&e.forEach(function(T,k){p.set(k,Ie(T,t,n,k,e,s))});var B=v?d?ii:ri:d?ce:j,D=b?r:B(e);return we(D||e,function(T,k){D&&(k=T,T=e[k]),rn(p,k,Ie(T,t,n,k,e,s))}),p}function Nu(e){var t=j(e);return function(n){return Bo(n,e,t)}}function Bo(e,t,n){var o=n.length;if(e==null)return!o;for(e=G(e);o--;){var a=n[o],s=t[a],p=e[a];if(p===r&&!(a in e)||!s(p))return!1}return!0}function To(e,t,n){if(typeof e!="function")throw new Ce(S);return cn(function(){e.apply(r,n)},t)}function on(e,t,n,o){var a=-1,s=_n,p=!0,c=e.length,d=[],v=t.length;if(!c)return d;n&&(t=K(t,me(n))),o?(s=Cr,p=!1):t.length>=y&&(s=Xt,p=!1,t=new _t(t));e:for(;++a<c;){var b=e[a],x=n==null?b:n(b);if(b=o||b!==0?b:0,p&&x===x){for(var C=v;C--;)if(t[C]===x)continue e;d.push(b)}else s(t,x,o)||d.push(b)}return d}var pt=na(We),Fo=na(zr,!0);function $u(e,t){var n=!0;return pt(e,function(o,a,s){return n=!!t(o,a,s),n}),n}function Wn(e,t,n){for(var o=-1,a=e.length;++o<a;){var s=e[o],p=t(s);if(p!=null&&(c===r?p===p&&!ve(p):n(p,c)))var c=p,d=s}return d}function Ku(e,t,n,o){var a=e.length;for(n=E(n),n<0&&(n=-n>a?0:a+n),o=o===r||o>a?a:E(o),o<0&&(o+=a),o=n>o?0:Va(o);n<o;)e[n++]=t;return e}function Ro(e,t){var n=[];return pt(e,function(o,a,s){t(o,a,s)&&n.push(o)}),n}function te(e,t,n,o,a){var s=-1,p=e.length;for(n||(n=Dp),a||(a=[]);++s<p;){var c=e[s];t>0&&n(c)?t>1?te(c,t-1,n,o,a):lt(a,c):o||(a[a.length]=c)}return a}var Wr=ra(),Eo=ra(!0);function We(e,t){return e&&Wr(e,t,j)}function zr(e,t){return e&&Eo(e,t,j)}function zn(e,t){return at(t,function(n){return et(e[n])})}function wt(e,t){t=ft(t,e);for(var n=0,o=t.length;e!=null&&n<o;)e=e[Ue(t[n++])];return n&&n==o?e:r}function Do(e,t,n){var o=t(e);return R(e)?o:lt(o,n(e))}function ae(e){return e==null?e===r?xl:vl:bt&&bt in G(e)?Ap(e):zp(e)}function Ur(e,t){return e>t}function qu(e,t){return e!=null&&U.call(e,t)}function Vu(e,t){return e!=null&&t in G(e)}function Yu(e,t,n){return e>=ne(t,n)&&e<Q(t,n)}function Gr(e,t,n){for(var o=n?Cr:_n,a=e[0].length,s=e.length,p=s,c=h(s),d=1/0,v=[];p--;){var b=e[p];p&&t&&(b=K(b,me(t))),d=ne(b.length,d),c[p]=!n&&(t||a>=120&&b.length>=120)?new _t(p&&b):r}b=e[0];var x=-1,C=c[0];e:for(;++x<a&&v.length<d;){var I=b[x],B=t?t(I):I;if(I=n||I!==0?I:0,!(C?Xt(C,B):o(v,B,n))){for(p=s;--p;){var D=c[p];if(!(D?Xt(D,B):o(e[p],B,n)))continue e}C&&C.push(B),v.push(I)}}return v}function Ju(e,t,n,o){return We(e,function(a,s,p){t(o,n(a),s,p)}),o}function an(e,t,n){t=ft(t,e),e=xa(e,t);var o=e==null?e:e[Ue(Be(t))];return o==null?r:he(o,e,n)}function Po(e){return V(e)&&ae(e)==At}function Zu(e){return V(e)&&ae(e)==Zt}function Xu(e){return V(e)&&ae(e)==Kt}function ln(e,t,n,o,a){return e===t?!0:e==null||t==null||!V(e)&&!V(t)?e!==e&&t!==t:Qu(e,t,n,o,ln,a)}function Qu(e,t,n,o,a,s){var p=R(e),c=R(t),d=p?gn:re(e),v=c?gn:re(t);d=d==At?Ve:d,v=v==At?Ve:v;var b=d==Ve,x=v==Ve,C=d==v;if(C&&gt(e)){if(!gt(t))return!1;p=!0,b=!1}if(C&&!b)return s||(s=new Pe),p||Ut(e)?da(e,t,n,o,a,s):Lp(e,t,d,n,o,a,s);if(!(n&Ne)){var I=b&&U.call(e,"__wrapped__"),B=x&&U.call(t,"__wrapped__");if(I||B){var D=I?e.value():e,T=B?t.value():t;return s||(s=new Pe),a(D,T,n,o,s)}}return C?(s||(s=new Pe),Ip(e,t,n,o,a,s)):!1}function ju(e){return V(e)&&re(e)==Re}function Nr(e,t,n,o){var a=n.length,s=a,p=!o;if(e==null)return!s;for(e=G(e);a--;){var c=n[a];if(p&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<s;){c=n[a];var d=c[0],v=e[d],b=c[1];if(p&&c[2]){if(v===r&&!(d in e))return!1}else{var x=new Pe;if(o)var C=o(v,b,d,e,t,x);if(!(C===r?ln(b,v,Ne|mt,o,x):C))return!1}}return!0}function ko(e){if(!q(e)||kp(e))return!1;var t=et(e)?js:Nl;return t.test(Lt(e))}function ep(e){return V(e)&&ae(e)==Vt}function tp(e){return V(e)&&re(e)==Ee}function np(e){return V(e)&&rr(e.length)&&!!$[ae(e)]}function Ho(e){return typeof e=="function"?e:e==null?fe:typeof e=="object"?R(e)?Wo(e[0],e[1]):Oo(e):il(e)}function $r(e){if(!pn(e))return ou(e);var t=[];for(var n in G(e))U.call(e,n)&&n!="constructor"&&t.push(n);return t}function rp(e){if(!q(e))return Wp(e);var t=pn(e),n=[];for(var o in e)o=="constructor"&&(t||!U.call(e,o))||n.push(o);return n}function Kr(e,t){return e<t}function Mo(e,t){var n=-1,o=pe(e)?h(e.length):[];return pt(e,function(a,s,p){o[++n]=t(a,s,p)}),o}function Oo(e){var t=ai(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 Wo(e,t){return si(e)&&ya(t)?va(Ue(e),t):function(n){var o=vi(n,e);return o===r&&o===t?bi(n,e):ln(t,o,Ne|mt)}}function Un(e,t,n,o,a){e!==t&&Wr(t,function(s,p){if(a||(a=new Pe),q(s))ip(e,t,p,n,Un,o,a);else{var c=o?o(pi(e,p),s,p+"",e,t,a):r;c===r&&(c=s),Mr(e,p,c)}},ce)}function ip(e,t,n,o,a,s,p){var c=pi(e,n),d=pi(t,n),v=p.get(d);if(v){Mr(e,n,v);return}var b=s?s(c,d,n+"",e,t,p):r,x=b===r;if(x){var C=R(d),I=!C&&gt(d),B=!C&&!I&&Ut(d);b=d,C||I||B?R(c)?b=c:Y(c)?b=ue(c):I?(x=!1,b=Xo(d,!0)):B?(x=!1,b=Qo(d,!0)):b=[]:fn(d)||It(d)?(b=c,It(c)?b=Ya(c):(!q(c)||et(c))&&(b=ma(d))):x=!1}x&&(p.set(d,b),a(b,d,o,s,p),p.delete(d)),Mr(e,n,b)}function zo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,je(t,n)?e[t]:r}function Uo(e,t,n){t.length?t=K(t,function(s){return R(s)?function(p){return wt(p,s.length===1?s[0]:s)}:s}):t=[fe];var o=-1;t=K(t,me(A()));var a=Mo(e,function(s,p,c){var d=K(t,function(v){return v(s)});return{criteria:d,index:++o,value:s}});return Rs(a,function(s,p){return yp(s,p,n)})}function op(e,t){return Go(e,t,function(n,o){return bi(e,o)})}function Go(e,t,n){for(var o=-1,a=t.length,s={};++o<a;){var p=t[o],c=wt(e,p);n(c,p)&&sn(s,ft(p,e),c)}return s}function ap(e){return function(t){return wt(t,e)}}function qr(e,t,n,o){var a=o?Fs:Ft,s=-1,p=t.length,c=e;for(e===t&&(t=ue(t)),n&&(c=K(e,me(n)));++s<p;)for(var d=0,v=t[s],b=n?n(v):v;(d=a(c,b,d,o))>-1;)c!==e&&Rn.call(c,d,1),Rn.call(e,d,1);return e}function No(e,t){for(var n=e?t.length:0,o=n-1;n--;){var a=t[n];if(n==o||a!==s){var s=a;je(a)?Rn.call(e,a,1):Zr(e,a)}}return e}function Vr(e,t){return e+Pn(wo()*(t-e+1))}function lp(e,t,n,o){for(var a=-1,s=Q(Dn((t-e)/(n||1)),0),p=h(s);s--;)p[o?s:++a]=e,e+=n;return p}function Yr(e,t){var n="";if(!e||t<1||t>ot)return n;do t%2&&(n+=e),t=Pn(t/2),t&&(e+=e);while(t);return n}function P(e,t){return ci(ba(e,t,fe),e+"")}function sp(e){return Io(Gt(e))}function up(e,t){var n=Gt(e);return Xn(n,St(t,0,n.length))}function sn(e,t,n,o){if(!q(e))return e;t=ft(t,e);for(var a=-1,s=t.length,p=s-1,c=e;c!=null&&++a<s;){var d=Ue(t[a]),v=n;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(a!=p){var b=c[d];v=o?o(b,d,c):r,v===r&&(v=q(b)?b:je(t[a+1])?[]:{})}rn(c,d,v),c=c[d]}return e}var $o=kn?function(e,t){return kn.set(e,t),e}:fe,pp=En?function(e,t){return En(e,"toString",{configurable:!0,enumerable:!1,value:_i(t),writable:!0})}:fe;function cp(e){return Xn(Gt(e))}function Ae(e,t,n){var o=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=h(a);++o<a;)s[o]=e[o+t];return s}function fp(e,t){var n;return pt(e,function(o,a,s){return n=t(o,a,s),!n}),!!n}function Gn(e,t,n){var o=0,a=e==null?o:e.length;if(typeof t=="number"&&t===t&&a<=gl){for(;o<a;){var s=o+a>>>1,p=e[s];p!==null&&!ve(p)&&(n?p<=t:p<t)?o=s+1:a=s}return a}return Jr(e,t,fe,n)}function Jr(e,t,n,o){var a=0,s=e==null?0:e.length;if(s===0)return 0;t=n(t);for(var p=t!==t,c=t===null,d=ve(t),v=t===r;a<s;){var b=Pn((a+s)/2),x=n(e[b]),C=x!==r,I=x===null,B=x===x,D=ve(x);if(p)var T=o||B;else v?T=B&&(o||C):c?T=B&&C&&(o||!I):d?T=B&&C&&!I&&(o||!D):I||D?T=!1:T=o?x<=t:x<t;T?a=b+1:s=b}return ne(s,dl)}function Ko(e,t){for(var n=-1,o=e.length,a=0,s=[];++n<o;){var p=e[n],c=t?t(p):p;if(!n||!ke(c,d)){var d=c;s[a++]=p===0?0:p}}return s}function qo(e){return typeof e=="number"?e:ve(e)?dn:+e}function ye(e){if(typeof e=="string")return e;if(R(e))return K(e,ye)+"";if(ve(e))return Co?Co.call(e):"";var t=e+"";return t=="0"&&1/e==-yt?"-0":t}function ct(e,t,n){var o=-1,a=_n,s=e.length,p=!0,c=[],d=c;if(n)p=!1,a=Cr;else if(s>=y){var v=t?null:wp(e);if(v)return wn(v);p=!1,a=Xt,d=new _t}else d=t?[]:c;e:for(;++o<s;){var b=e[o],x=t?t(b):b;if(b=n||b!==0?b:0,p&&x===x){for(var C=d.length;C--;)if(d[C]===x)continue e;t&&d.push(x),c.push(b)}else a(d,x,n)||(d!==c&&d.push(x),c.push(b))}return c}function Zr(e,t){return t=ft(t,e),e=xa(e,t),e==null||delete e[Ue(Be(t))]}function Vo(e,t,n,o){return sn(e,t,n(wt(e,t)),o)}function Nn(e,t,n,o){for(var a=e.length,s=o?a:-1;(o?s--:++s<a)&&t(e[s],s,e););return n?Ae(e,o?0:s,o?s+1:a):Ae(e,o?s+1:0,o?a:s)}function Yo(e,t){var n=e;return n instanceof H&&(n=n.value()),Lr(t,function(o,a){return a.func.apply(a.thisArg,lt([o],a.args))},n)}function Xr(e,t,n){var o=e.length;if(o<2)return o?ct(e[0]):[];for(var a=-1,s=h(o);++a<o;)for(var p=e[a],c=-1;++c<o;)c!=a&&(s[a]=on(s[a]||p,e[c],t,n));return ct(te(s,1),t,n)}function Jo(e,t,n){for(var o=-1,a=e.length,s=t.length,p={};++o<a;){var c=o<s?t[o]:r;n(p,e[o],c)}return p}function Qr(e){return Y(e)?e:[]}function jr(e){return typeof e=="function"?e:fe}function ft(e,t){return R(e)?e:si(e,t)?[e]:Ca(z(e))}var dp=P;function dt(e,t,n){var o=e.length;return n=n===r?o:n,!t&&n>=o?e:Ae(e,t,n)}var Zo=eu||function(e){return ee.clearTimeout(e)};function Xo(e,t){if(t)return e.slice();var n=e.length,o=vo?vo(n):new e.constructor(n);return e.copy(o),o}function ei(e){var t=new e.constructor(e.byteLength);return new Tn(t).set(new Tn(e)),t}function gp(e,t){var n=t?ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function hp(e){var t=new e.constructor(e.source,Di.exec(e));return t.lastIndex=e.lastIndex,t}function mp(e){return nn?G(nn.call(e)):{}}function Qo(e,t){var n=t?ei(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var n=e!==r,o=e===null,a=e===e,s=ve(e),p=t!==r,c=t===null,d=t===t,v=ve(t);if(!c&&!v&&!s&&e>t||s&&p&&d&&!c&&!v||o&&p&&d||!n&&d||!a)return 1;if(!o&&!s&&!v&&e<t||v&&n&&a&&!o&&!s||c&&n&&a||!p&&a||!d)return-1}return 0}function yp(e,t,n){for(var o=-1,a=e.criteria,s=t.criteria,p=a.length,c=n.length;++o<p;){var d=jo(a[o],s[o]);if(d){if(o>=c)return d;var v=n[o];return d*(v=="desc"?-1:1)}}return e.index-t.index}function ea(e,t,n,o){for(var a=-1,s=e.length,p=n.length,c=-1,d=t.length,v=Q(s-p,0),b=h(d+v),x=!o;++c<d;)b[c]=t[c];for(;++a<p;)(x||a<s)&&(b[n[a]]=e[a]);for(;v--;)b[c++]=e[a++];return b}function ta(e,t,n,o){for(var a=-1,s=e.length,p=-1,c=n.length,d=-1,v=t.length,b=Q(s-c,0),x=h(b+v),C=!o;++a<b;)x[a]=e[a];for(var I=a;++d<v;)x[I+d]=t[d];for(;++p<c;)(C||a<s)&&(x[I+n[p]]=e[a++]);return x}function ue(e,t){var n=-1,o=e.length;for(t||(t=h(o));++n<o;)t[n]=e[n];return t}function ze(e,t,n,o){var a=!n;n||(n={});for(var s=-1,p=t.length;++s<p;){var c=t[s],d=o?o(n[c],e[c],c,n,e):r;d===r&&(d=e[c]),a?Ze(n,c,d):rn(n,c,d)}return n}function vp(e,t){return ze(e,li(e),t)}function bp(e,t){return ze(e,ga(e),t)}function $n(e,t){return function(n,o){var a=R(n)?Cs:Uu,s=t?t():{};return a(n,e,A(o,2),s)}}function Ot(e){return P(function(t,n){var o=-1,a=n.length,s=a>1?n[a-1]:r,p=a>2?n[2]:r;for(s=e.length>3&&typeof s=="function"?(a--,s):r,p&&le(n[0],n[1],p)&&(s=a<3?r:s,a=1),t=G(t);++o<a;){var c=n[o];c&&e(t,c,o,s)}return t})}function na(e,t){return function(n,o){if(n==null)return n;if(!pe(n))return e(n,o);for(var a=n.length,s=t?a:-1,p=G(n);(t?s--:++s<a)&&o(p[s],s,p)!==!1;);return n}}function ra(e){return function(t,n,o){for(var a=-1,s=G(t),p=o(t),c=p.length;c--;){var d=p[e?c:++a];if(n(s[d],d,s)===!1)break}return t}}function xp(e,t,n){var o=t&oe,a=un(e);function s(){var p=this&&this!==ee&&this instanceof s?a:e;return p.apply(o?n:this,arguments)}return s}function ia(e){return function(t){t=z(t);var n=Rt(t)?De(t):r,o=n?n[0]:t.charAt(0),a=n?dt(n,1).join(""):t.slice(1);return o[e]()+a}}function Wt(e){return function(t){return Lr(nl(tl(t).replace(ps,"")),e,"")}}function un(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Mt(e.prototype),o=e.apply(n,t);return q(o)?o:n}}function _p(e,t,n){var o=un(e);function a(){for(var s=arguments.length,p=h(s),c=s,d=zt(a);c--;)p[c]=arguments[c];var v=s<3&&p[0]!==d&&p[s-1]!==d?[]:st(p,d);if(s-=v.length,s<n)return ua(e,t,Kn,a.placeholder,r,p,v,r,r,n-s);var b=this&&this!==ee&&this instanceof a?o:e;return he(b,this,p)}return a}function oa(e){return function(t,n,o){var a=G(t);if(!pe(t)){var s=A(n,3);t=j(t),n=function(c){return s(a[c],c,a)}}var p=e(t,n,o);return p>-1?a[s?t[p]:p]:r}}function aa(e){return Qe(function(t){var n=t.length,o=n,a=Le.prototype.thru;for(e&&t.reverse();o--;){var s=t[o];if(typeof s!="function")throw new Ce(S);if(a&&!p&&Jn(s)=="wrapper")var p=new Le([],!0)}for(o=p?o:n;++o<n;){s=t[o];var c=Jn(s),d=c=="wrapper"?oi(s):r;d&&ui(d[0])&&d[1]==(_e|de|ge|it)&&!d[4].length&&d[9]==1?p=p[Jn(d[0])].apply(p,d[3]):p=s.length==1&&ui(s)?p[c]():p.thru(s)}return function(){var v=arguments,b=v[0];if(p&&v.length==1&&R(b))return p.plant(b).value();for(var x=0,C=n?t[x].apply(this,v):b;++x<n;)C=t[x].call(this,C);return C}})}function Kn(e,t,n,o,a,s,p,c,d,v){var b=t&_e,x=t&oe,C=t&Me,I=t&(de|$e),B=t&qe,D=C?r:un(e);function T(){for(var k=arguments.length,M=h(k),be=k;be--;)M[be]=arguments[be];if(I)var se=zt(T),xe=Ds(M,se);if(o&&(M=ea(M,o,a,I)),s&&(M=ta(M,s,p,I)),k-=xe,I&&k<v){var J=st(M,se);return ua(e,t,Kn,T.placeholder,n,M,J,c,d,v-k)}var He=x?n:this,nt=C?He[e]:e;return k=M.length,c?M=Up(M,c):B&&k>1&&M.reverse(),b&&d<k&&(M.length=d),this&&this!==ee&&this instanceof T&&(nt=D||un(nt)),nt.apply(He,M)}return T}function la(e,t){return function(n,o){return Ju(n,e,t(o),{})}}function qn(e,t){return function(n,o){var a;if(n===r&&o===r)return t;if(n!==r&&(a=n),o!==r){if(a===r)return o;typeof n=="string"||typeof o=="string"?(n=ye(n),o=ye(o)):(n=qo(n),o=qo(o)),a=e(n,o)}return a}}function ti(e){return Qe(function(t){return t=K(t,me(A())),P(function(n){var o=this;return e(t,function(a){return he(a,o,n)})})})}function Vn(e,t){t=t===r?" ":ye(t);var n=t.length;if(n<2)return n?Yr(t,e):t;var o=Yr(t,Dn(e/Et(t)));return Rt(t)?dt(De(o),0,e).join(""):o.slice(0,e)}function Sp(e,t,n,o){var a=t&oe,s=un(e);function p(){for(var c=-1,d=arguments.length,v=-1,b=o.length,x=h(b+d),C=this&&this!==ee&&this instanceof p?s:e;++v<b;)x[v]=o[v];for(;d--;)x[v++]=arguments[++c];return he(C,a?n:this,x)}return p}function sa(e){return function(t,n,o){return o&&typeof o!="number"&&le(t,n,o)&&(n=o=r),t=tt(t),n===r?(n=t,t=0):n=tt(n),o=o===r?t<n?1:-1:tt(o),lp(t,n,o,e)}}function Yn(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,o,a,s,p,c,d,v){var b=t&de,x=b?p:r,C=b?r:p,I=b?s:r,B=b?r:s;t|=b?ge:Ke,t&=~(b?Ke:ge),t&Nt||(t&=~(oe|Me));var D=[e,t,a,I,x,B,C,c,d,v],T=n.apply(r,D);return ui(e)&&_a(T,D),T.placeholder=o,Sa(T,e,t)}function ni(e){var t=X[e];return function(n,o){if(n=Te(n),o=o==null?0:ne(E(o),292),o&&So(n)){var a=(z(n)+"e").split("e"),s=t(a[0]+"e"+(+a[1]+o));return a=(z(s)+"e").split("e"),+(a[0]+"e"+(+a[1]-o))}return t(n)}}var wp=kt&&1/wn(new kt([,-0]))[1]==yt?function(e){return new kt(e)}:Ci;function pa(e){return function(t){var n=re(t);return n==Re?Er(t):n==Ee?zs(t):Es(t,e(t))}}function Xe(e,t,n,o,a,s,p,c){var d=t&Me;if(!d&&typeof e!="function")throw new Ce(S);var v=o?o.length:0;if(v||(t&=~(ge|Ke),o=a=r),p=p===r?p:Q(E(p),0),c=c===r?c:E(c),v-=a?a.length:0,t&Ke){var b=o,x=a;o=a=r}var C=d?r:oi(e),I=[e,t,n,o,a,b,x,s,p,c];if(C&&Op(I,C),e=I[0],t=I[1],n=I[2],o=I[3],a=I[4],c=I[9]=I[9]===r?d?0:e.length:Q(I[9]-v,0),!c&&t&(de|$e)&&(t&=~(de|$e)),!t||t==oe)var B=xp(e,t,n);else t==de||t==$e?B=_p(e,t,c):(t==ge||t==(oe|ge))&&!a.length?B=Sp(e,t,n,o):B=Kn.apply(r,I);var D=C?$o:_a;return Sa(D(B,I),e,t)}function ca(e,t,n,o){return e===r||ke(e,Pt[n])&&!U.call(o,n)?t:e}function fa(e,t,n,o,a,s){return q(e)&&q(t)&&(s.set(t,e),Un(e,t,r,fa,s),s.delete(t)),e}function Cp(e){return fn(e)?r:e}function da(e,t,n,o,a,s){var p=n&Ne,c=e.length,d=t.length;if(c!=d&&!(p&&d>c))return!1;var v=s.get(e),b=s.get(t);if(v&&b)return v==t&&b==e;var x=-1,C=!0,I=n&mt?new _t:r;for(s.set(e,t),s.set(t,e);++x<c;){var B=e[x],D=t[x];if(o)var T=p?o(D,B,x,t,e,s):o(B,D,x,e,t,s);if(T!==r){if(T)continue;C=!1;break}if(I){if(!Ir(t,function(k,M){if(!Xt(I,M)&&(B===k||a(B,k,n,o,s)))return I.push(M)})){C=!1;break}}else if(!(B===D||a(B,D,n,o,s))){C=!1;break}}return s.delete(e),s.delete(t),C}function Lp(e,t,n,o,a,s,p){switch(n){case Bt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Zt:return!(e.byteLength!=t.byteLength||!s(new Tn(e),new Tn(t)));case $t:case Kt:case qt:return ke(+e,+t);case hn:return e.name==t.name&&e.message==t.message;case Vt:case Yt:return e==t+"";case Re:var c=Er;case Ee:var d=o&Ne;if(c||(c=wn),e.size!=t.size&&!d)return!1;var v=p.get(e);if(v)return v==t;o|=mt,p.set(e,t);var b=da(c(e),c(t),o,a,s,p);return p.delete(e),b;case yn:if(nn)return nn.call(e)==nn.call(t)}return!1}function Ip(e,t,n,o,a,s){var p=n&Ne,c=ri(e),d=c.length,v=ri(t),b=v.length;if(d!=b&&!p)return!1;for(var x=d;x--;){var C=c[x];if(!(p?C in t:U.call(t,C)))return!1}var I=s.get(e),B=s.get(t);if(I&&B)return I==t&&B==e;var D=!0;s.set(e,t),s.set(t,e);for(var T=p;++x<d;){C=c[x];var k=e[C],M=t[C];if(o)var be=p?o(M,k,C,t,e,s):o(k,M,C,e,t,s);if(!(be===r?k===M||a(k,M,n,o,s):be)){D=!1;break}T||(T=C=="constructor")}if(D&&!T){var se=e.constructor,xe=t.constructor;se!=xe&&"constructor"in e&&"constructor"in t&&!(typeof se=="function"&&se instanceof se&&typeof xe=="function"&&xe instanceof xe)&&(D=!1)}return s.delete(e),s.delete(t),D}function Qe(e){return ci(ba(e,r,Ba),e+"")}function ri(e){return Do(e,j,li)}function ii(e){return Do(e,ce,ga)}var oi=kn?function(e){return kn.get(e)}:Ci;function Jn(e){for(var t=e.name+"",n=Ht[t],o=U.call(Ht,t)?n.length:0;o--;){var a=n[o],s=a.func;if(s==null||s==e)return a.name}return t}function zt(e){var t=U.call(l,"placeholder")?l:e;return t.placeholder}function A(){var e=l.iteratee||Si;return e=e===Si?Ho:e,arguments.length?e(arguments[0],arguments[1]):e}function Zn(e,t){var n=e.__data__;return Pp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ai(e){for(var t=j(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,ya(a)]}return t}function Ct(e,t){var n=Ms(e,t);return ko(n)?n:r}function Ap(e){var t=U.call(e,bt),n=e[bt];try{e[bt]=r;var o=!0}catch{}var a=An.call(e);return o&&(t?e[bt]=n:delete e[bt]),a}var li=Pr?function(e){return e==null?[]:(e=G(e),at(Pr(e),function(t){return xo.call(e,t)}))}:Li,ga=Pr?function(e){for(var t=[];e;)lt(t,li(e)),e=Fn(e);return t}:Li,re=ae;(kr&&re(new kr(new ArrayBuffer(1)))!=Bt||jt&&re(new jt)!=Re||Hr&&re(Hr.resolve())!=Ti||kt&&re(new kt)!=Ee||en&&re(new en)!=Jt)&&(re=function(e){var t=ae(e),n=t==Ve?e.constructor:r,o=n?Lt(n):"";if(o)switch(o){case uu:return Bt;case pu:return Re;case cu:return Ti;case fu:return Ee;case du:return Jt}return t});function Bp(e,t,n){for(var o=-1,a=n.length;++o<a;){var s=n[o],p=s.size;switch(s.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=ne(t,e+p);break;case"takeRight":e=Q(e,t-p);break}}return{start:e,end:t}}function Tp(e){var t=e.match(kl);return t?t[1].split(Hl):[]}function ha(e,t,n){t=ft(t,e);for(var o=-1,a=t.length,s=!1;++o<a;){var p=Ue(t[o]);if(!(s=e!=null&&n(e,p)))break;e=e[p]}return s||++o!=a?s:(a=e==null?0:e.length,!!a&&rr(a)&&je(p,a)&&(R(e)||It(e)))}function Fp(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&U.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ma(e){return typeof e.constructor=="function"&&!pn(e)?Mt(Fn(e)):{}}function Rp(e,t,n){var o=e.constructor;switch(t){case Zt:return ei(e);case $t:case Kt:return new o(+e);case Bt:return gp(e,n);case ar:case lr:case sr:case ur:case pr:case cr:case fr:case dr:case gr:return Qo(e,n);case Re:return new o;case qt:case Yt:return new o(e);case Vt:return hp(e);case Ee:return new o;case yn:return mp(e)}}function Ep(e,t){var n=t.length;if(!n)return e;var o=n-1;return t[o]=(n>1?"& ":"")+t[o],t=t.join(n>2?", ":" "),e.replace(Pl,`{
9
9
  /* [wrapped with `+t+`] */
10
- `)}function Dp(e){return R(e)||It(e)||!!(_o&&e&&e[_o])}function je(e,t){var n=typeof e;return t=t==null?ot:t,!!t&&(n=="number"||n!="symbol"&&Kl.test(e))&&e>-1&&e%1==0&&e<t}function le(e,t,n){if(!q(n))return!1;var o=typeof t;return(o=="number"?pe(n)&&je(t,n.length):o=="string"&&t in n)?ke(n[t],e):!1}function si(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 Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ui(e){var t=Jn(e),n=l[t];if(typeof n!="function"||!(t in H.prototype))return!1;if(e===n)return!0;var o=oi(n);return!!o&&e===o[0]}function kp(e){return!!yo&&yo in e}var Hp=Ln?et:Ii;function pn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Pt;return e===n}function ya(e){return e===e&&!q(e)}function va(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in G(n))}}function Mp(e){var t=tr(e,function(o){return n.size===rt&&n.clear(),o}),n=t.cache;return t}function Op(e,t){var n=e[1],o=t[1],a=n|o,s=a<(oe|Me|_e),p=o==_e&&n==de||o==_e&&n==it&&e[7].length<=t[8]||o==(_e|it)&&t[7].length<=t[8]&&n==de;if(!(s||p))return e;o&oe&&(e[2]=t[2],a|=n&oe?0:Nt);var c=t[3];if(c){var d=e[3];e[3]=d?ea(d,c,t[4]):c,e[4]=d?st(e[3],ht):t[4]}return c=t[5],c&&(d=e[5],e[5]=d?ta(d,c,t[6]):c,e[6]=d?st(e[5],ht):t[6]),c=t[7],c&&(e[7]=c),o&_e&&(e[8]=e[8]==null?t[8]:ne(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Wp(e){var t=[];if(e!=null)for(var n in G(e))t.push(n);return t}function zp(e){return An.call(e)}function ba(e,t,n){return t=Q(t===r?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=Q(o.length-t,0),p=h(s);++a<s;)p[a]=o[t+a];a=-1;for(var c=h(t+1);++a<t;)c[a]=o[a];return c[t]=n(p),he(e,this,c)}}function xa(e,t){return t.length<2?e:wt(e,Ae(t,0,-1))}function Up(e,t){for(var n=e.length,o=ne(t.length,n),a=ue(e);o--;){var s=t[o];e[o]=je(s,n)?a[s]:r}return e}function pi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _a=wa($o),cn=nu||function(e,t){return ee.setTimeout(e,t)},ci=wa(pp);function Sa(e,t,n){var o=t+"";return ci(e,Ep(o,Gp(Tp(o),n)))}function wa(e){var t=0,n=0;return function(){var o=au(),a=ul-(o-n);if(n=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Xn(e,t){var n=-1,o=e.length,a=o-1;for(t=t===r?o:t;++n<t;){var s=Vr(n,a),p=e[s];e[s]=e[n],e[n]=p}return e.length=t,e}var Ca=Mp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rl,function(n,o,a,s){t.push(a?s.replace(Wl,"$1"):o||n)}),t});function Ue(e){if(typeof e=="string"||ve(e))return e;var t=e+"";return t=="0"&&1/e==-yt?"-0":t}function Lt(e){if(e!=null){try{return In.call(e)}catch{}try{return e+""}catch{}}return""}function Gp(e,t){return we(hl,function(n){var o="_."+n[0];t&n[1]&&!_n(e,o)&&e.push(o)}),e.sort()}function La(e){if(e instanceof H)return e.clone();var t=new Le(e.__wrapped__,e.__chain__);return t.__actions__=ue(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Np(e,t,n){(n?le(e,t,n):t===r)?t=1:t=Q(E(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,p=h(Dn(o/t));a<o;)p[s++]=Ae(e,a,a+=t);return p}function $p(e){for(var t=-1,n=e==null?0:e.length,o=0,a=[];++t<n;){var s=e[t];s&&(a[o++]=s)}return a}function Kp(){var e=arguments.length;if(!e)return[];for(var t=h(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return lt(R(n)?ue(n):[n],te(t,1))}var qp=P(function(e,t){return Y(e)?on(e,te(t,1,Y,!0)):[]}),Vp=P(function(e,t){var n=Be(t);return Y(n)&&(n=r),Y(e)?on(e,te(t,1,Y,!0),A(n,2)):[]}),Yp=P(function(e,t){var n=Be(t);return Y(n)&&(n=r),Y(e)?on(e,te(t,1,Y,!0),r,n):[]});function Jp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===r?1:E(t),Ae(e,t<0?0:t,o)):[]}function Zp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===r?1:E(t),t=o-t,Ae(e,0,t<0?0:t)):[]}function Xp(e,t){return e&&e.length?Nn(e,A(t,3),!0,!0):[]}function Qp(e,t){return e&&e.length?Nn(e,A(t,3),!0):[]}function jp(e,t,n,o){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&le(e,t,n)&&(n=0,o=a),Ku(e,t,n,o)):[]}function Ia(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:E(n);return a<0&&(a=Q(o+a,0)),Sn(e,A(t,3),a)}function Aa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return n!==r&&(a=E(n),a=n<0?Q(o+a,0):ne(a,o-1)),Sn(e,A(t,3),a,!0)}function Ba(e){var t=e==null?0:e.length;return t?te(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?te(e,yt):[]}function tc(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:E(t),te(e,t)):[]}function nc(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var a=e[t];o[a[0]]=a[1]}return o}function Ta(e){return e&&e.length?e[0]:r}function rc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:E(n);return a<0&&(a=Q(o+a,0)),Ft(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Ae(e,0,-1):[]}var oc=P(function(e){var t=K(e,Qr);return t.length&&t[0]===e[0]?Gr(t):[]}),ac=P(function(e){var t=Be(e),n=K(e,Qr);return t===Be(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Gr(n,A(t,2)):[]}),lc=P(function(e){var t=Be(e),n=K(e,Qr);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?Gr(n,r,t):[]});function sc(e,t){return e==null?"":iu.call(e,t)}function Be(e){var t=e==null?0:e.length;return t?e[t-1]:r}function uc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o;return n!==r&&(a=E(n),a=a<0?Q(o+a,0):ne(a,o-1)),t===t?Gs(e,t,a):Sn(e,so,a,!0)}function pc(e,t){return e&&e.length?zo(e,E(t)):r}var cc=P(Fa);function Fa(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}function fc(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,A(n,2)):e}function dc(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,r,n):e}var gc=Qe(function(e,t){var n=e==null?0:e.length,o=Or(e,t);return No(e,K(t,function(a){return je(a,n)?+a:a}).sort(jo)),o});function hc(e,t){var n=[];if(!(e&&e.length))return n;var o=-1,a=[],s=e.length;for(t=A(t,3);++o<s;){var p=e[o];t(p,o,e)&&(n.push(p),a.push(o))}return No(e,a),n}function fi(e){return e==null?e:su.call(e)}function mc(e,t,n){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&le(e,t,n)?(t=0,n=o):(t=t==null?0:E(t),n=n===r?o:E(n)),Ae(e,t,n)):[]}function yc(e,t){return Gn(e,t)}function vc(e,t,n){return Jr(e,t,A(n,2))}function bc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t);if(o<n&&ke(e[o],t))return o}return-1}function xc(e,t){return Gn(e,t,!0)}function _c(e,t,n){return Jr(e,t,A(n,2),!0)}function Sc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t,!0)-1;if(ke(e[o],t))return o}return-1}function wc(e){return e&&e.length?Ko(e):[]}function Cc(e,t){return e&&e.length?Ko(e,A(t,2)):[]}function Lc(e){var t=e==null?0:e.length;return t?Ae(e,1,t):[]}function Ic(e,t,n){return e&&e.length?(t=n||t===r?1:E(t),Ae(e,0,t<0?0:t)):[]}function Ac(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===r?1:E(t),t=o-t,Ae(e,t<0?0:t,o)):[]}function Bc(e,t){return e&&e.length?Nn(e,A(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?Nn(e,A(t,3)):[]}var Fc=P(function(e){return ct(te(e,1,Y,!0))}),Rc=P(function(e){var t=Be(e);return Y(t)&&(t=r),ct(te(e,1,Y,!0),A(t,2))}),Ec=P(function(e){var t=Be(e);return t=typeof t=="function"?t:r,ct(te(e,1,Y,!0),r,t)});function Dc(e){return e&&e.length?ct(e):[]}function Pc(e,t){return e&&e.length?ct(e,A(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:r,e&&e.length?ct(e,r,t):[]}function di(e){if(!(e&&e.length))return[];var t=0;return e=at(e,function(n){if(Y(n))return t=Q(n.length,t),!0}),Fr(t,function(n){return K(e,Ar(n))})}function Ra(e,t){if(!(e&&e.length))return[];var n=di(e);return t==null?n:K(n,function(o){return he(t,r,o)})}var Hc=P(function(e,t){return Y(e)?on(e,t):[]}),Mc=P(function(e){return Xr(at(e,Y))}),Oc=P(function(e){var t=Be(e);return Y(t)&&(t=r),Xr(at(e,Y),A(t,2))}),Wc=P(function(e){var t=Be(e);return t=typeof t=="function"?t:r,Xr(at(e,Y),r,t)}),zc=P(di);function Uc(e,t){return Jo(e||[],t||[],rn)}function Gc(e,t){return Jo(e||[],t||[],sn)}var Nc=P(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,Ra(e,n)});function Ea(e){var t=l(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function Qn(e,t){return t(e)}var Kc=Qe(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,a=function(s){return Or(s,e)};return t>1||this.__actions__.length||!(o instanceof H)||!je(n)?this.thru(a):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Qn,args:[a],thisArg:r}),new Le(o,this.__chain__).thru(function(s){return t&&!s.length&&s.push(r),s}))});function qc(){return Ea(this)}function Vc(){return new Le(this.value(),this.__chain__)}function Yc(){this.__values__===r&&(this.__values__=qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Zc(e){for(var t,n=this;n instanceof Mn;){var o=La(n);o.__index__=0,o.__values__=r,t?a.__wrapped__=o:t=o;var a=o;n=n.__wrapped__}return a.__wrapped__=e,t}function Xc(){var e=this.__wrapped__;if(e instanceof H){var t=e;return this.__actions__.length&&(t=new H(this)),t=t.reverse(),t.__actions__.push({func:Qn,args:[fi],thisArg:r}),new Le(t,this.__chain__)}return this.thru(fi)}function Qc(){return Yo(this.__wrapped__,this.__actions__)}var jc=$n(function(e,t,n){U.call(e,n)?++e[n]:Ze(e,n,1)});function ef(e,t,n){var o=R(e)?ao:$u;return n&&le(e,t,n)&&(t=r),o(e,A(t,3))}function tf(e,t){var n=R(e)?at:Ro;return n(e,A(t,3))}var nf=oa(Ia),rf=oa(Aa);function of(e,t){return te(jn(e,t),1)}function af(e,t){return te(jn(e,t),yt)}function lf(e,t,n){return n=n===r?1:E(n),te(jn(e,t),n)}function Da(e,t){var n=R(e)?we:pt;return n(e,A(t,3))}function Pa(e,t){var n=R(e)?Ls:Fo;return n(e,A(t,3))}var sf=$n(function(e,t,n){U.call(e,n)?e[n].push(t):Ze(e,n,[t])});function uf(e,t,n,o){e=pe(e)?e:Gt(e),n=n&&!o?E(n):0;var a=e.length;return n<0&&(n=Q(a+n,0)),ir(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Ft(e,t,n)>-1}var pf=P(function(e,t,n){var o=-1,a=typeof t=="function",s=pe(e)?h(e.length):[];return pt(e,function(p){s[++o]=a?he(t,p,n):an(p,t,n)}),s}),cf=$n(function(e,t,n){Ze(e,n,t)});function jn(e,t){var n=R(e)?K:Mo;return n(e,A(t,3))}function ff(e,t,n,o){return e==null?[]:(R(t)||(t=t==null?[]:[t]),n=o?r:n,R(n)||(n=n==null?[]:[n]),Uo(e,t,n))}var df=$n(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function gf(e,t,n){var o=R(e)?Lr:po,a=arguments.length<3;return o(e,A(t,4),n,a,pt)}function hf(e,t,n){var o=R(e)?Is:po,a=arguments.length<3;return o(e,A(t,4),n,a,Fo)}function mf(e,t){var n=R(e)?at:Ro;return n(e,nr(A(t,3)))}function yf(e){var t=R(e)?Io:sp;return t(e)}function vf(e,t,n){(n?le(e,t,n):t===r)?t=1:t=E(t);var o=R(e)?Wu:up;return o(e,t)}function bf(e){var t=R(e)?zu:cp;return t(e)}function xf(e){if(e==null)return 0;if(pe(e))return ir(e)?Et(e):e.length;var t=re(e);return t==Re||t==Ee?e.size:$r(e).length}function _f(e,t,n){var o=R(e)?Ir:fp;return n&&le(e,t,n)&&(t=r),o(e,A(t,3))}var Sf=P(function(e,t){if(e==null)return[];var n=t.length;return n>1&&le(e,t[0],t[1])?t=[]:n>2&&le(t[0],t[1],t[2])&&(t=[t[0]]),Uo(e,te(t,1),[])}),er=tu||function(){return ee.Date.now()};function wf(e,t){if(typeof t!="function")throw new Ce(S);return e=E(e),function(){if(--e<1)return t.apply(this,arguments)}}function ka(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,Xe(e,_e,r,r,r,r,t)}function Ha(e,t){var n;if(typeof t!="function")throw new Ce(S);return e=E(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var gi=P(function(e,t,n){var o=oe;if(n.length){var a=st(n,zt(gi));o|=ge}return Xe(e,o,t,n,a)}),Ma=P(function(e,t,n){var o=oe|Me;if(n.length){var a=st(n,zt(Ma));o|=ge}return Xe(t,o,e,n,a)});function Oa(e,t,n){t=n?r:t;var o=Xe(e,de,r,r,r,r,r,t);return o.placeholder=Oa.placeholder,o}function Wa(e,t,n){t=n?r:t;var o=Xe(e,$e,r,r,r,r,r,t);return o.placeholder=Wa.placeholder,o}function za(e,t,n){var o,a,s,p,c,d,v=0,b=!1,x=!1,C=!0;if(typeof e!="function")throw new Ce(S);t=Te(t)||0,q(n)&&(b=!!n.leading,x="maxWait"in n,s=x?Q(Te(n.maxWait)||0,t):s,C="trailing"in n?!!n.trailing:C);function I(J){var He=o,nt=a;return o=a=r,v=J,p=e.apply(nt,He),p}function B(J){return v=J,c=cn(k,t),b?I(J):p}function D(J){var He=J-d,nt=J-v,ol=t-He;return x?ne(ol,s-nt):ol}function T(J){var He=J-d,nt=J-v;return d===r||He>=t||He<0||x&&nt>=s}function k(){var J=er();if(T(J))return O(J);c=cn(k,D(J))}function O(J){return c=r,C&&o?I(J):(o=a=r,p)}function be(){c!==r&&Zo(c),v=0,o=d=a=c=r}function se(){return c===r?p:O(er())}function xe(){var J=er(),He=T(J);if(o=arguments,a=this,d=J,He){if(c===r)return B(d);if(x)return Zo(c),c=cn(k,t),I(d)}return c===r&&(c=cn(k,t)),p}return xe.cancel=be,xe.flush=se,xe}var Cf=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 Xe(e,qe)}function tr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ce(S);var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],s=n.cache;if(s.has(a))return s.get(a);var p=e.apply(this,o);return n.cache=s.set(a,p)||s,p};return n.cache=new(tr.Cache||Je),n}tr.Cache=Je;function nr(e){if(typeof e!="function")throw new Ce(S);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Af(e){return Ha(2,e)}var Bf=dp(function(e,t){t=t.length==1&&R(t[0])?K(t[0],me(A())):K(te(t,1),me(A()));var n=t.length;return P(function(o){for(var a=-1,s=ne(o.length,n);++a<s;)o[a]=t[a].call(this,o[a]);return he(e,this,o)})}),hi=P(function(e,t){var n=st(t,zt(hi));return Xe(e,ge,r,t,n)}),Ua=P(function(e,t){var n=st(t,zt(Ua));return Xe(e,Ke,r,t,n)}),Tf=Qe(function(e,t){return Xe(e,it,r,r,r,t)});function Ff(e,t){if(typeof e!="function")throw new Ce(S);return t=t===r?t:E(t),P(e,t)}function Rf(e,t){if(typeof e!="function")throw new Ce(S);return t=t==null?0:Q(E(t),0),P(function(n){var o=n[t],a=dt(n,0,t);return o&&lt(a,o),he(e,this,a)})}function Ef(e,t,n){var o=!0,a=!0;if(typeof e!="function")throw new Ce(S);return q(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),za(e,t,{leading:o,maxWait:t,trailing:a})}function Df(e){return ka(e,1)}function Pf(e,t){return hi(jr(t),e)}function kf(){if(!arguments.length)return[];var e=arguments[0];return R(e)?e:[e]}function Hf(e){return Ie(e,Ge)}function Mf(e,t){return t=typeof t=="function"?t:r,Ie(e,Ge,t)}function Of(e){return Ie(e,Fe|Ge)}function Wf(e,t){return t=typeof t=="function"?t:r,Ie(e,Fe|Ge,t)}function zf(e,t){return t==null||Bo(e,t,j(t))}function ke(e,t){return e===t||e!==e&&t!==t}var Uf=Yn(Ur),Gf=Yn(function(e,t){return e>=t}),It=Po(function(){return arguments}())?Po:function(e){return V(e)&&U.call(e,"callee")&&!xo.call(e,"callee")},R=h.isArray,Nf=eo?me(eo):Zu;function pe(e){return e!=null&&rr(e.length)&&!et(e)}function Y(e){return V(e)&&pe(e)}function $f(e){return e===!0||e===!1||V(e)&&ae(e)==$t}var gt=ru||Ii,Kf=to?me(to):Xu;function qf(e){return V(e)&&e.nodeType===1&&!fn(e)}function Vf(e){if(e==null)return!0;if(pe(e)&&(R(e)||typeof e=="string"||typeof e.splice=="function"||gt(e)||Ut(e)||It(e)))return!e.length;var t=re(e);if(t==Re||t==Ee)return!e.size;if(pn(e))return!$r(e).length;for(var n in e)if(U.call(e,n))return!1;return!0}function Yf(e,t){return ln(e,t)}function Jf(e,t,n){n=typeof n=="function"?n:r;var o=n?n(e,t):r;return o===r?ln(e,t,r,n):!!o}function mi(e){if(!V(e))return!1;var t=ae(e);return t==hn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Zf(e){return typeof e=="number"&&So(e)}function et(e){if(!q(e))return!1;var t=ae(e);return t==mn||t==Bi||t==ml||t==bl}function Ga(e){return typeof e=="number"&&e==E(e)}function rr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ot}function q(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function V(e){return e!=null&&typeof e=="object"}var Na=no?me(no):ju;function Xf(e,t){return e===t||Nr(e,t,ai(t))}function Qf(e,t,n){return n=typeof n=="function"?n:r,Nr(e,t,ai(t),n)}function jf(e){return $a(e)&&e!=+e}function ed(e){if(Hp(e))throw new F(w);return ko(e)}function td(e){return e===null}function nd(e){return e==null}function $a(e){return typeof e=="number"||V(e)&&ae(e)==qt}function fn(e){if(!V(e)||ae(e)!=Ve)return!1;var t=Fn(e);if(t===null)return!0;var n=U.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&In.call(n)==Xs}var yi=ro?me(ro):ep;function rd(e){return Ga(e)&&e>=-ot&&e<=ot}var Ka=io?me(io):tp;function ir(e){return typeof e=="string"||!R(e)&&V(e)&&ae(e)==Yt}function ve(e){return typeof e=="symbol"||V(e)&&ae(e)==yn}var Ut=oo?me(oo):np;function id(e){return e===r}function od(e){return V(e)&&re(e)==Jt}function ad(e){return V(e)&&ae(e)==_l}var ld=Yn(Kr),sd=Yn(function(e,t){return e<=t});function qa(e){if(!e)return[];if(pe(e))return ir(e)?De(e):ue(e);if(Qt&&e[Qt])return Ws(e[Qt]());var t=re(e),n=t==Re?Er:t==Ee?wn:Gt;return n(e)}function tt(e){if(!e)return e===0?e:0;if(e=Te(e),e===yt||e===-yt){var t=e<0?-1:1;return t*fl}return e===e?e:0}function E(e){var t=tt(e),n=t%1;return t===t?n?t-n:t:0}function Va(e){return e?St(E(e),0,Oe):0}function Te(e){if(typeof e=="number")return e;if(ve(e))return dn;if(q(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=q(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=co(e);var n=Gl.test(e);return n||$l.test(e)?Ss(e.slice(2),n?2:8):Ul.test(e)?dn:+e}function Ya(e){return ze(e,ce(e))}function ud(e){return e?St(E(e),-ot,ot):e===0?e:0}function z(e){return e==null?"":ye(e)}var pd=Ot(function(e,t){if(pn(t)||pe(t)){ze(t,j(t),e);return}for(var n in t)U.call(t,n)&&rn(e,n,t[n])}),Ja=Ot(function(e,t){ze(t,ce(t),e)}),or=Ot(function(e,t,n,o){ze(t,ce(t),e,o)}),cd=Ot(function(e,t,n,o){ze(t,j(t),e,o)}),fd=Qe(Or);function dd(e,t){var n=Mt(e);return t==null?n:Ao(n,t)}var gd=P(function(e,t){e=G(e);var n=-1,o=t.length,a=o>2?t[2]:r;for(a&&le(t[0],t[1],a)&&(o=1);++n<o;)for(var s=t[n],p=ce(s),c=-1,d=p.length;++c<d;){var v=p[c],b=e[v];(b===r||ke(b,Pt[v])&&!U.call(e,v))&&(e[v]=s[v])}return e}),hd=P(function(e){return e.push(r,fa),he(Za,r,e)});function md(e,t){return lo(e,A(t,3),We)}function yd(e,t){return lo(e,A(t,3),zr)}function vd(e,t){return e==null?e:Wr(e,A(t,3),ce)}function bd(e,t){return e==null?e:Eo(e,A(t,3),ce)}function xd(e,t){return e&&We(e,A(t,3))}function _d(e,t){return e&&zr(e,A(t,3))}function Sd(e){return e==null?[]:zn(e,j(e))}function wd(e){return e==null?[]:zn(e,ce(e))}function vi(e,t,n){var o=e==null?r:wt(e,t);return o===r?n:o}function Cd(e,t){return e!=null&&ha(e,t,qu)}function bi(e,t){return e!=null&&ha(e,t,Vu)}var Ld=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=An.call(t)),e[t]=n},_i(fe)),Id=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=An.call(t)),U.call(e,t)?e[t].push(n):e[t]=[n]},A),Ad=P(an);function j(e){return pe(e)?Lo(e):$r(e)}function ce(e){return pe(e)?Lo(e,!0):rp(e)}function Bd(e,t){var n={};return t=A(t,3),We(e,function(o,a,s){Ze(n,t(o,a,s),o)}),n}function Td(e,t){var n={};return t=A(t,3),We(e,function(o,a,s){Ze(n,a,t(o,a,s))}),n}var Fd=Ot(function(e,t,n){Un(e,t,n)}),Za=Ot(function(e,t,n,o){Un(e,t,n,o)}),Rd=Qe(function(e,t){var n={};if(e==null)return n;var o=!1;t=K(t,function(s){return s=ft(s,e),o||(o=s.length>1),s}),ze(e,ii(e),n),o&&(n=Ie(n,Fe|Z|Ge,Cp));for(var a=t.length;a--;)Zr(n,t[a]);return n});function Ed(e,t){return Xa(e,nr(A(t)))}var Dd=Qe(function(e,t){return e==null?{}:op(e,t)});function Xa(e,t){if(e==null)return{};var n=K(ii(e),function(o){return[o]});return t=A(t),Go(e,n,function(o,a){return t(o,a[0])})}function Pd(e,t,n){t=ft(t,e);var o=-1,a=t.length;for(a||(a=1,e=r);++o<a;){var s=e==null?r:e[Ue(t[o])];s===r&&(o=a,s=n),e=et(s)?s.call(e):s}return e}function kd(e,t,n){return e==null?e:sn(e,t,n)}function Hd(e,t,n,o){return o=typeof o=="function"?o:r,e==null?e:sn(e,t,n,o)}var Qa=pa(j),ja=pa(ce);function Md(e,t,n){var o=R(e),a=o||gt(e)||Ut(e);if(t=A(t,4),n==null){var s=e&&e.constructor;a?n=o?new s:[]:q(e)?n=et(s)?Mt(Fn(e)):{}:n={}}return(a?we:We)(e,function(p,c,d){return t(n,p,c,d)}),n}function Od(e,t){return e==null?!0:Zr(e,t)}function Wd(e,t,n){return e==null?e:Vo(e,t,jr(n))}function zd(e,t,n,o){return o=typeof o=="function"?o:r,e==null?e:Vo(e,t,jr(n),o)}function Gt(e){return e==null?[]:Rr(e,j(e))}function Ud(e){return e==null?[]:Rr(e,ce(e))}function Gd(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=Te(n),n=n===n?n:0),t!==r&&(t=Te(t),t=t===t?t:0),St(Te(e),t,n)}function Nd(e,t,n){return t=tt(t),n===r?(n=t,t=0):n=tt(n),e=Te(e),Yu(e,t,n)}function $d(e,t,n){if(n&&typeof n!="boolean"&&le(e,t,n)&&(t=n=r),n===r&&(typeof t=="boolean"?(n=t,t=r):typeof e=="boolean"&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=tt(e),t===r?(t=e,e=0):t=tt(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var a=wo();return ne(e+a*(t-e+_s("1e-"+((a+"").length-1))),t)}return Vr(e,t)}var Kd=Wt(function(e,t,n){return t=t.toLowerCase(),e+(n?el(t):t)});function el(e){return xi(z(e).toLowerCase())}function tl(e){return e=z(e),e&&e.replace(ql,Ps).replace(cs,"")}function qd(e,t,n){e=z(e),t=ye(t);var o=e.length;n=n===r?o:St(E(n),0,o);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Vd(e){return e=z(e),e&&Il.test(e)?e.replace(Ri,ks):e}function Yd(e){return e=z(e),e&&El.test(e)?e.replace(hr,"\\$&"):e}var Jd=Wt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Zd=Wt(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Xd=ia("toLowerCase");function Qd(e,t,n){e=z(e),t=E(t);var o=t?Et(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return Vn(Pn(a),n)+e+Vn(Dn(a),n)}function jd(e,t,n){e=z(e),t=E(t);var o=t?Et(e):0;return t&&o<t?e+Vn(t-o,n):e}function eg(e,t,n){e=z(e),t=E(t);var o=t?Et(e):0;return t&&o<t?Vn(t-o,n)+e:e}function tg(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(z(e).replace(mr,""),t||0)}function ng(e,t,n){return(n?le(e,t,n):t===r)?t=1:t=E(t),Yr(z(e),t)}function rg(){var e=arguments,t=z(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ig=Wt(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function og(e,t,n){return n&&typeof n!="number"&&le(e,t,n)&&(t=n=r),n=n===r?Oe:n>>>0,n?(e=z(e),e&&(typeof t=="string"||t!=null&&!yi(t))&&(t=ye(t),!t&&Rt(e))?dt(De(e),0,n):e.split(t,n)):[]}var ag=Wt(function(e,t,n){return e+(n?" ":"")+xi(t)});function lg(e,t,n){return e=z(e),n=n==null?0:St(E(n),0,e.length),t=ye(t),e.slice(n,n+t.length)==t}function sg(e,t,n){var o=l.templateSettings;n&&le(e,t,n)&&(t=r),e=z(e),t=or({},t,o,ca);var a=or({},t.imports,o.imports,ca),s=j(a),p=Rr(a,s),c,d,v=0,b=t.interpolate||vn,x="__p += '",C=Dr((t.escape||vn).source+"|"+b.source+"|"+(b===Ei?zl:vn).source+"|"+(t.evaluate||vn).source+"|$","g"),I="//# sourceURL="+(U.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ms+"]")+`
11
- `;e.replace(C,function(T,k,O,be,se,xe){return O||(O=be),x+=e.slice(v,xe).replace(Vl,Hs),k&&(c=!0,x+=`' +
10
+ `)}function Dp(e){return R(e)||It(e)||!!(_o&&e&&e[_o])}function je(e,t){var n=typeof e;return t=t==null?ot:t,!!t&&(n=="number"||n!="symbol"&&Kl.test(e))&&e>-1&&e%1==0&&e<t}function le(e,t,n){if(!q(n))return!1;var o=typeof t;return(o=="number"?pe(n)&&je(t,n.length):o=="string"&&t in n)?ke(n[t],e):!1}function si(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 Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function ui(e){var t=Jn(e),n=l[t];if(typeof n!="function"||!(t in H.prototype))return!1;if(e===n)return!0;var o=oi(n);return!!o&&e===o[0]}function kp(e){return!!yo&&yo in e}var Hp=Ln?et:Ii;function pn(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Pt;return e===n}function ya(e){return e===e&&!q(e)}function va(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in G(n))}}function Mp(e){var t=tr(e,function(o){return n.size===rt&&n.clear(),o}),n=t.cache;return t}function Op(e,t){var n=e[1],o=t[1],a=n|o,s=a<(oe|Me|_e),p=o==_e&&n==de||o==_e&&n==it&&e[7].length<=t[8]||o==(_e|it)&&t[7].length<=t[8]&&n==de;if(!(s||p))return e;o&oe&&(e[2]=t[2],a|=n&oe?0:Nt);var c=t[3];if(c){var d=e[3];e[3]=d?ea(d,c,t[4]):c,e[4]=d?st(e[3],ht):t[4]}return c=t[5],c&&(d=e[5],e[5]=d?ta(d,c,t[6]):c,e[6]=d?st(e[5],ht):t[6]),c=t[7],c&&(e[7]=c),o&_e&&(e[8]=e[8]==null?t[8]:ne(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function Wp(e){var t=[];if(e!=null)for(var n in G(e))t.push(n);return t}function zp(e){return An.call(e)}function ba(e,t,n){return t=Q(t===r?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=Q(o.length-t,0),p=h(s);++a<s;)p[a]=o[t+a];a=-1;for(var c=h(t+1);++a<t;)c[a]=o[a];return c[t]=n(p),he(e,this,c)}}function xa(e,t){return t.length<2?e:wt(e,Ae(t,0,-1))}function Up(e,t){for(var n=e.length,o=ne(t.length,n),a=ue(e);o--;){var s=t[o];e[o]=je(s,n)?a[s]:r}return e}function pi(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _a=wa($o),cn=nu||function(e,t){return ee.setTimeout(e,t)},ci=wa(pp);function Sa(e,t,n){var o=t+"";return ci(e,Ep(o,Gp(Tp(o),n)))}function wa(e){var t=0,n=0;return function(){var o=au(),a=ul-(o-n);if(n=o,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Xn(e,t){var n=-1,o=e.length,a=o-1;for(t=t===r?o:t;++n<t;){var s=Vr(n,a),p=e[s];e[s]=e[n],e[n]=p}return e.length=t,e}var Ca=Mp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rl,function(n,o,a,s){t.push(a?s.replace(Wl,"$1"):o||n)}),t});function Ue(e){if(typeof e=="string"||ve(e))return e;var t=e+"";return t=="0"&&1/e==-yt?"-0":t}function Lt(e){if(e!=null){try{return In.call(e)}catch{}try{return e+""}catch{}}return""}function Gp(e,t){return we(hl,function(n){var o="_."+n[0];t&n[1]&&!_n(e,o)&&e.push(o)}),e.sort()}function La(e){if(e instanceof H)return e.clone();var t=new Le(e.__wrapped__,e.__chain__);return t.__actions__=ue(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function Np(e,t,n){(n?le(e,t,n):t===r)?t=1:t=Q(E(t),0);var o=e==null?0:e.length;if(!o||t<1)return[];for(var a=0,s=0,p=h(Dn(o/t));a<o;)p[s++]=Ae(e,a,a+=t);return p}function $p(e){for(var t=-1,n=e==null?0:e.length,o=0,a=[];++t<n;){var s=e[t];s&&(a[o++]=s)}return a}function Kp(){var e=arguments.length;if(!e)return[];for(var t=h(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return lt(R(n)?ue(n):[n],te(t,1))}var qp=P(function(e,t){return Y(e)?on(e,te(t,1,Y,!0)):[]}),Vp=P(function(e,t){var n=Be(t);return Y(n)&&(n=r),Y(e)?on(e,te(t,1,Y,!0),A(n,2)):[]}),Yp=P(function(e,t){var n=Be(t);return Y(n)&&(n=r),Y(e)?on(e,te(t,1,Y,!0),r,n):[]});function Jp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===r?1:E(t),Ae(e,t<0?0:t,o)):[]}function Zp(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===r?1:E(t),t=o-t,Ae(e,0,t<0?0:t)):[]}function Xp(e,t){return e&&e.length?Nn(e,A(t,3),!0,!0):[]}function Qp(e,t){return e&&e.length?Nn(e,A(t,3),!0):[]}function jp(e,t,n,o){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&le(e,t,n)&&(n=0,o=a),Ku(e,t,n,o)):[]}function Ia(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:E(n);return a<0&&(a=Q(o+a,0)),Sn(e,A(t,3),a)}function Aa(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o-1;return n!==r&&(a=E(n),a=n<0?Q(o+a,0):ne(a,o-1)),Sn(e,A(t,3),a,!0)}function Ba(e){var t=e==null?0:e.length;return t?te(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?te(e,yt):[]}function tc(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:E(t),te(e,t)):[]}function nc(e){for(var t=-1,n=e==null?0:e.length,o={};++t<n;){var a=e[t];o[a[0]]=a[1]}return o}function Ta(e){return e&&e.length?e[0]:r}function rc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=n==null?0:E(n);return a<0&&(a=Q(o+a,0)),Ft(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Ae(e,0,-1):[]}var oc=P(function(e){var t=K(e,Qr);return t.length&&t[0]===e[0]?Gr(t):[]}),ac=P(function(e){var t=Be(e),n=K(e,Qr);return t===Be(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Gr(n,A(t,2)):[]}),lc=P(function(e){var t=Be(e),n=K(e,Qr);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?Gr(n,r,t):[]});function sc(e,t){return e==null?"":iu.call(e,t)}function Be(e){var t=e==null?0:e.length;return t?e[t-1]:r}function uc(e,t,n){var o=e==null?0:e.length;if(!o)return-1;var a=o;return n!==r&&(a=E(n),a=a<0?Q(o+a,0):ne(a,o-1)),t===t?Gs(e,t,a):Sn(e,so,a,!0)}function pc(e,t){return e&&e.length?zo(e,E(t)):r}var cc=P(Fa);function Fa(e,t){return e&&e.length&&t&&t.length?qr(e,t):e}function fc(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,A(n,2)):e}function dc(e,t,n){return e&&e.length&&t&&t.length?qr(e,t,r,n):e}var gc=Qe(function(e,t){var n=e==null?0:e.length,o=Or(e,t);return No(e,K(t,function(a){return je(a,n)?+a:a}).sort(jo)),o});function hc(e,t){var n=[];if(!(e&&e.length))return n;var o=-1,a=[],s=e.length;for(t=A(t,3);++o<s;){var p=e[o];t(p,o,e)&&(n.push(p),a.push(o))}return No(e,a),n}function fi(e){return e==null?e:su.call(e)}function mc(e,t,n){var o=e==null?0:e.length;return o?(n&&typeof n!="number"&&le(e,t,n)?(t=0,n=o):(t=t==null?0:E(t),n=n===r?o:E(n)),Ae(e,t,n)):[]}function yc(e,t){return Gn(e,t)}function vc(e,t,n){return Jr(e,t,A(n,2))}function bc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t);if(o<n&&ke(e[o],t))return o}return-1}function xc(e,t){return Gn(e,t,!0)}function _c(e,t,n){return Jr(e,t,A(n,2),!0)}function Sc(e,t){var n=e==null?0:e.length;if(n){var o=Gn(e,t,!0)-1;if(ke(e[o],t))return o}return-1}function wc(e){return e&&e.length?Ko(e):[]}function Cc(e,t){return e&&e.length?Ko(e,A(t,2)):[]}function Lc(e){var t=e==null?0:e.length;return t?Ae(e,1,t):[]}function Ic(e,t,n){return e&&e.length?(t=n||t===r?1:E(t),Ae(e,0,t<0?0:t)):[]}function Ac(e,t,n){var o=e==null?0:e.length;return o?(t=n||t===r?1:E(t),t=o-t,Ae(e,t<0?0:t,o)):[]}function Bc(e,t){return e&&e.length?Nn(e,A(t,3),!1,!0):[]}function Tc(e,t){return e&&e.length?Nn(e,A(t,3)):[]}var Fc=P(function(e){return ct(te(e,1,Y,!0))}),Rc=P(function(e){var t=Be(e);return Y(t)&&(t=r),ct(te(e,1,Y,!0),A(t,2))}),Ec=P(function(e){var t=Be(e);return t=typeof t=="function"?t:r,ct(te(e,1,Y,!0),r,t)});function Dc(e){return e&&e.length?ct(e):[]}function Pc(e,t){return e&&e.length?ct(e,A(t,2)):[]}function kc(e,t){return t=typeof t=="function"?t:r,e&&e.length?ct(e,r,t):[]}function di(e){if(!(e&&e.length))return[];var t=0;return e=at(e,function(n){if(Y(n))return t=Q(n.length,t),!0}),Fr(t,function(n){return K(e,Ar(n))})}function Ra(e,t){if(!(e&&e.length))return[];var n=di(e);return t==null?n:K(n,function(o){return he(t,r,o)})}var Hc=P(function(e,t){return Y(e)?on(e,t):[]}),Mc=P(function(e){return Xr(at(e,Y))}),Oc=P(function(e){var t=Be(e);return Y(t)&&(t=r),Xr(at(e,Y),A(t,2))}),Wc=P(function(e){var t=Be(e);return t=typeof t=="function"?t:r,Xr(at(e,Y),r,t)}),zc=P(di);function Uc(e,t){return Jo(e||[],t||[],rn)}function Gc(e,t){return Jo(e||[],t||[],sn)}var Nc=P(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,Ra(e,n)});function Ea(e){var t=l(e);return t.__chain__=!0,t}function $c(e,t){return t(e),e}function Qn(e,t){return t(e)}var Kc=Qe(function(e){var t=e.length,n=t?e[0]:0,o=this.__wrapped__,a=function(s){return Or(s,e)};return t>1||this.__actions__.length||!(o instanceof H)||!je(n)?this.thru(a):(o=o.slice(n,+n+(t?1:0)),o.__actions__.push({func:Qn,args:[a],thisArg:r}),new Le(o,this.__chain__).thru(function(s){return t&&!s.length&&s.push(r),s}))});function qc(){return Ea(this)}function Vc(){return new Le(this.value(),this.__chain__)}function Yc(){this.__values__===r&&(this.__values__=qa(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}}function Jc(){return this}function Zc(e){for(var t,n=this;n instanceof Mn;){var o=La(n);o.__index__=0,o.__values__=r,t?a.__wrapped__=o:t=o;var a=o;n=n.__wrapped__}return a.__wrapped__=e,t}function Xc(){var e=this.__wrapped__;if(e instanceof H){var t=e;return this.__actions__.length&&(t=new H(this)),t=t.reverse(),t.__actions__.push({func:Qn,args:[fi],thisArg:r}),new Le(t,this.__chain__)}return this.thru(fi)}function Qc(){return Yo(this.__wrapped__,this.__actions__)}var jc=$n(function(e,t,n){U.call(e,n)?++e[n]:Ze(e,n,1)});function ef(e,t,n){var o=R(e)?ao:$u;return n&&le(e,t,n)&&(t=r),o(e,A(t,3))}function tf(e,t){var n=R(e)?at:Ro;return n(e,A(t,3))}var nf=oa(Ia),rf=oa(Aa);function of(e,t){return te(jn(e,t),1)}function af(e,t){return te(jn(e,t),yt)}function lf(e,t,n){return n=n===r?1:E(n),te(jn(e,t),n)}function Da(e,t){var n=R(e)?we:pt;return n(e,A(t,3))}function Pa(e,t){var n=R(e)?Ls:Fo;return n(e,A(t,3))}var sf=$n(function(e,t,n){U.call(e,n)?e[n].push(t):Ze(e,n,[t])});function uf(e,t,n,o){e=pe(e)?e:Gt(e),n=n&&!o?E(n):0;var a=e.length;return n<0&&(n=Q(a+n,0)),ir(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Ft(e,t,n)>-1}var pf=P(function(e,t,n){var o=-1,a=typeof t=="function",s=pe(e)?h(e.length):[];return pt(e,function(p){s[++o]=a?he(t,p,n):an(p,t,n)}),s}),cf=$n(function(e,t,n){Ze(e,n,t)});function jn(e,t){var n=R(e)?K:Mo;return n(e,A(t,3))}function ff(e,t,n,o){return e==null?[]:(R(t)||(t=t==null?[]:[t]),n=o?r:n,R(n)||(n=n==null?[]:[n]),Uo(e,t,n))}var df=$n(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function gf(e,t,n){var o=R(e)?Lr:po,a=arguments.length<3;return o(e,A(t,4),n,a,pt)}function hf(e,t,n){var o=R(e)?Is:po,a=arguments.length<3;return o(e,A(t,4),n,a,Fo)}function mf(e,t){var n=R(e)?at:Ro;return n(e,nr(A(t,3)))}function yf(e){var t=R(e)?Io:sp;return t(e)}function vf(e,t,n){(n?le(e,t,n):t===r)?t=1:t=E(t);var o=R(e)?Wu:up;return o(e,t)}function bf(e){var t=R(e)?zu:cp;return t(e)}function xf(e){if(e==null)return 0;if(pe(e))return ir(e)?Et(e):e.length;var t=re(e);return t==Re||t==Ee?e.size:$r(e).length}function _f(e,t,n){var o=R(e)?Ir:fp;return n&&le(e,t,n)&&(t=r),o(e,A(t,3))}var Sf=P(function(e,t){if(e==null)return[];var n=t.length;return n>1&&le(e,t[0],t[1])?t=[]:n>2&&le(t[0],t[1],t[2])&&(t=[t[0]]),Uo(e,te(t,1),[])}),er=tu||function(){return ee.Date.now()};function wf(e,t){if(typeof t!="function")throw new Ce(S);return e=E(e),function(){if(--e<1)return t.apply(this,arguments)}}function ka(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,Xe(e,_e,r,r,r,r,t)}function Ha(e,t){var n;if(typeof t!="function")throw new Ce(S);return e=E(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var gi=P(function(e,t,n){var o=oe;if(n.length){var a=st(n,zt(gi));o|=ge}return Xe(e,o,t,n,a)}),Ma=P(function(e,t,n){var o=oe|Me;if(n.length){var a=st(n,zt(Ma));o|=ge}return Xe(t,o,e,n,a)});function Oa(e,t,n){t=n?r:t;var o=Xe(e,de,r,r,r,r,r,t);return o.placeholder=Oa.placeholder,o}function Wa(e,t,n){t=n?r:t;var o=Xe(e,$e,r,r,r,r,r,t);return o.placeholder=Wa.placeholder,o}function za(e,t,n){var o,a,s,p,c,d,v=0,b=!1,x=!1,C=!0;if(typeof e!="function")throw new Ce(S);t=Te(t)||0,q(n)&&(b=!!n.leading,x="maxWait"in n,s=x?Q(Te(n.maxWait)||0,t):s,C="trailing"in n?!!n.trailing:C);function I(J){var He=o,nt=a;return o=a=r,v=J,p=e.apply(nt,He),p}function B(J){return v=J,c=cn(k,t),b?I(J):p}function D(J){var He=J-d,nt=J-v,ol=t-He;return x?ne(ol,s-nt):ol}function T(J){var He=J-d,nt=J-v;return d===r||He>=t||He<0||x&&nt>=s}function k(){var J=er();if(T(J))return M(J);c=cn(k,D(J))}function M(J){return c=r,C&&o?I(J):(o=a=r,p)}function be(){c!==r&&Zo(c),v=0,o=d=a=c=r}function se(){return c===r?p:M(er())}function xe(){var J=er(),He=T(J);if(o=arguments,a=this,d=J,He){if(c===r)return B(d);if(x)return Zo(c),c=cn(k,t),I(d)}return c===r&&(c=cn(k,t)),p}return xe.cancel=be,xe.flush=se,xe}var Cf=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 Xe(e,qe)}function tr(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ce(S);var n=function(){var o=arguments,a=t?t.apply(this,o):o[0],s=n.cache;if(s.has(a))return s.get(a);var p=e.apply(this,o);return n.cache=s.set(a,p)||s,p};return n.cache=new(tr.Cache||Je),n}tr.Cache=Je;function nr(e){if(typeof e!="function")throw new Ce(S);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Af(e){return Ha(2,e)}var Bf=dp(function(e,t){t=t.length==1&&R(t[0])?K(t[0],me(A())):K(te(t,1),me(A()));var n=t.length;return P(function(o){for(var a=-1,s=ne(o.length,n);++a<s;)o[a]=t[a].call(this,o[a]);return he(e,this,o)})}),hi=P(function(e,t){var n=st(t,zt(hi));return Xe(e,ge,r,t,n)}),Ua=P(function(e,t){var n=st(t,zt(Ua));return Xe(e,Ke,r,t,n)}),Tf=Qe(function(e,t){return Xe(e,it,r,r,r,t)});function Ff(e,t){if(typeof e!="function")throw new Ce(S);return t=t===r?t:E(t),P(e,t)}function Rf(e,t){if(typeof e!="function")throw new Ce(S);return t=t==null?0:Q(E(t),0),P(function(n){var o=n[t],a=dt(n,0,t);return o&&lt(a,o),he(e,this,a)})}function Ef(e,t,n){var o=!0,a=!0;if(typeof e!="function")throw new Ce(S);return q(n)&&(o="leading"in n?!!n.leading:o,a="trailing"in n?!!n.trailing:a),za(e,t,{leading:o,maxWait:t,trailing:a})}function Df(e){return ka(e,1)}function Pf(e,t){return hi(jr(t),e)}function kf(){if(!arguments.length)return[];var e=arguments[0];return R(e)?e:[e]}function Hf(e){return Ie(e,Ge)}function Mf(e,t){return t=typeof t=="function"?t:r,Ie(e,Ge,t)}function Of(e){return Ie(e,Fe|Ge)}function Wf(e,t){return t=typeof t=="function"?t:r,Ie(e,Fe|Ge,t)}function zf(e,t){return t==null||Bo(e,t,j(t))}function ke(e,t){return e===t||e!==e&&t!==t}var Uf=Yn(Ur),Gf=Yn(function(e,t){return e>=t}),It=Po(function(){return arguments}())?Po:function(e){return V(e)&&U.call(e,"callee")&&!xo.call(e,"callee")},R=h.isArray,Nf=eo?me(eo):Zu;function pe(e){return e!=null&&rr(e.length)&&!et(e)}function Y(e){return V(e)&&pe(e)}function $f(e){return e===!0||e===!1||V(e)&&ae(e)==$t}var gt=ru||Ii,Kf=to?me(to):Xu;function qf(e){return V(e)&&e.nodeType===1&&!fn(e)}function Vf(e){if(e==null)return!0;if(pe(e)&&(R(e)||typeof e=="string"||typeof e.splice=="function"||gt(e)||Ut(e)||It(e)))return!e.length;var t=re(e);if(t==Re||t==Ee)return!e.size;if(pn(e))return!$r(e).length;for(var n in e)if(U.call(e,n))return!1;return!0}function Yf(e,t){return ln(e,t)}function Jf(e,t,n){n=typeof n=="function"?n:r;var o=n?n(e,t):r;return o===r?ln(e,t,r,n):!!o}function mi(e){if(!V(e))return!1;var t=ae(e);return t==hn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!fn(e)}function Zf(e){return typeof e=="number"&&So(e)}function et(e){if(!q(e))return!1;var t=ae(e);return t==mn||t==Bi||t==ml||t==bl}function Ga(e){return typeof e=="number"&&e==E(e)}function rr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ot}function q(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function V(e){return e!=null&&typeof e=="object"}var Na=no?me(no):ju;function Xf(e,t){return e===t||Nr(e,t,ai(t))}function Qf(e,t,n){return n=typeof n=="function"?n:r,Nr(e,t,ai(t),n)}function jf(e){return $a(e)&&e!=+e}function ed(e){if(Hp(e))throw new F(w);return ko(e)}function td(e){return e===null}function nd(e){return e==null}function $a(e){return typeof e=="number"||V(e)&&ae(e)==qt}function fn(e){if(!V(e)||ae(e)!=Ve)return!1;var t=Fn(e);if(t===null)return!0;var n=U.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&In.call(n)==Xs}var yi=ro?me(ro):ep;function rd(e){return Ga(e)&&e>=-ot&&e<=ot}var Ka=io?me(io):tp;function ir(e){return typeof e=="string"||!R(e)&&V(e)&&ae(e)==Yt}function ve(e){return typeof e=="symbol"||V(e)&&ae(e)==yn}var Ut=oo?me(oo):np;function id(e){return e===r}function od(e){return V(e)&&re(e)==Jt}function ad(e){return V(e)&&ae(e)==_l}var ld=Yn(Kr),sd=Yn(function(e,t){return e<=t});function qa(e){if(!e)return[];if(pe(e))return ir(e)?De(e):ue(e);if(Qt&&e[Qt])return Ws(e[Qt]());var t=re(e),n=t==Re?Er:t==Ee?wn:Gt;return n(e)}function tt(e){if(!e)return e===0?e:0;if(e=Te(e),e===yt||e===-yt){var t=e<0?-1:1;return t*fl}return e===e?e:0}function E(e){var t=tt(e),n=t%1;return t===t?n?t-n:t:0}function Va(e){return e?St(E(e),0,Oe):0}function Te(e){if(typeof e=="number")return e;if(ve(e))return dn;if(q(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=q(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=co(e);var n=Gl.test(e);return n||$l.test(e)?Ss(e.slice(2),n?2:8):Ul.test(e)?dn:+e}function Ya(e){return ze(e,ce(e))}function ud(e){return e?St(E(e),-ot,ot):e===0?e:0}function z(e){return e==null?"":ye(e)}var pd=Ot(function(e,t){if(pn(t)||pe(t)){ze(t,j(t),e);return}for(var n in t)U.call(t,n)&&rn(e,n,t[n])}),Ja=Ot(function(e,t){ze(t,ce(t),e)}),or=Ot(function(e,t,n,o){ze(t,ce(t),e,o)}),cd=Ot(function(e,t,n,o){ze(t,j(t),e,o)}),fd=Qe(Or);function dd(e,t){var n=Mt(e);return t==null?n:Ao(n,t)}var gd=P(function(e,t){e=G(e);var n=-1,o=t.length,a=o>2?t[2]:r;for(a&&le(t[0],t[1],a)&&(o=1);++n<o;)for(var s=t[n],p=ce(s),c=-1,d=p.length;++c<d;){var v=p[c],b=e[v];(b===r||ke(b,Pt[v])&&!U.call(e,v))&&(e[v]=s[v])}return e}),hd=P(function(e){return e.push(r,fa),he(Za,r,e)});function md(e,t){return lo(e,A(t,3),We)}function yd(e,t){return lo(e,A(t,3),zr)}function vd(e,t){return e==null?e:Wr(e,A(t,3),ce)}function bd(e,t){return e==null?e:Eo(e,A(t,3),ce)}function xd(e,t){return e&&We(e,A(t,3))}function _d(e,t){return e&&zr(e,A(t,3))}function Sd(e){return e==null?[]:zn(e,j(e))}function wd(e){return e==null?[]:zn(e,ce(e))}function vi(e,t,n){var o=e==null?r:wt(e,t);return o===r?n:o}function Cd(e,t){return e!=null&&ha(e,t,qu)}function bi(e,t){return e!=null&&ha(e,t,Vu)}var Ld=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=An.call(t)),e[t]=n},_i(fe)),Id=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=An.call(t)),U.call(e,t)?e[t].push(n):e[t]=[n]},A),Ad=P(an);function j(e){return pe(e)?Lo(e):$r(e)}function ce(e){return pe(e)?Lo(e,!0):rp(e)}function Bd(e,t){var n={};return t=A(t,3),We(e,function(o,a,s){Ze(n,t(o,a,s),o)}),n}function Td(e,t){var n={};return t=A(t,3),We(e,function(o,a,s){Ze(n,a,t(o,a,s))}),n}var Fd=Ot(function(e,t,n){Un(e,t,n)}),Za=Ot(function(e,t,n,o){Un(e,t,n,o)}),Rd=Qe(function(e,t){var n={};if(e==null)return n;var o=!1;t=K(t,function(s){return s=ft(s,e),o||(o=s.length>1),s}),ze(e,ii(e),n),o&&(n=Ie(n,Fe|Z|Ge,Cp));for(var a=t.length;a--;)Zr(n,t[a]);return n});function Ed(e,t){return Xa(e,nr(A(t)))}var Dd=Qe(function(e,t){return e==null?{}:op(e,t)});function Xa(e,t){if(e==null)return{};var n=K(ii(e),function(o){return[o]});return t=A(t),Go(e,n,function(o,a){return t(o,a[0])})}function Pd(e,t,n){t=ft(t,e);var o=-1,a=t.length;for(a||(a=1,e=r);++o<a;){var s=e==null?r:e[Ue(t[o])];s===r&&(o=a,s=n),e=et(s)?s.call(e):s}return e}function kd(e,t,n){return e==null?e:sn(e,t,n)}function Hd(e,t,n,o){return o=typeof o=="function"?o:r,e==null?e:sn(e,t,n,o)}var Qa=pa(j),ja=pa(ce);function Md(e,t,n){var o=R(e),a=o||gt(e)||Ut(e);if(t=A(t,4),n==null){var s=e&&e.constructor;a?n=o?new s:[]:q(e)?n=et(s)?Mt(Fn(e)):{}:n={}}return(a?we:We)(e,function(p,c,d){return t(n,p,c,d)}),n}function Od(e,t){return e==null?!0:Zr(e,t)}function Wd(e,t,n){return e==null?e:Vo(e,t,jr(n))}function zd(e,t,n,o){return o=typeof o=="function"?o:r,e==null?e:Vo(e,t,jr(n),o)}function Gt(e){return e==null?[]:Rr(e,j(e))}function Ud(e){return e==null?[]:Rr(e,ce(e))}function Gd(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=Te(n),n=n===n?n:0),t!==r&&(t=Te(t),t=t===t?t:0),St(Te(e),t,n)}function Nd(e,t,n){return t=tt(t),n===r?(n=t,t=0):n=tt(n),e=Te(e),Yu(e,t,n)}function $d(e,t,n){if(n&&typeof n!="boolean"&&le(e,t,n)&&(t=n=r),n===r&&(typeof t=="boolean"?(n=t,t=r):typeof e=="boolean"&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=tt(e),t===r?(t=e,e=0):t=tt(t)),e>t){var o=e;e=t,t=o}if(n||e%1||t%1){var a=wo();return ne(e+a*(t-e+_s("1e-"+((a+"").length-1))),t)}return Vr(e,t)}var Kd=Wt(function(e,t,n){return t=t.toLowerCase(),e+(n?el(t):t)});function el(e){return xi(z(e).toLowerCase())}function tl(e){return e=z(e),e&&e.replace(ql,Ps).replace(cs,"")}function qd(e,t,n){e=z(e),t=ye(t);var o=e.length;n=n===r?o:St(E(n),0,o);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Vd(e){return e=z(e),e&&Il.test(e)?e.replace(Ri,ks):e}function Yd(e){return e=z(e),e&&El.test(e)?e.replace(hr,"\\$&"):e}var Jd=Wt(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Zd=Wt(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Xd=ia("toLowerCase");function Qd(e,t,n){e=z(e),t=E(t);var o=t?Et(e):0;if(!t||o>=t)return e;var a=(t-o)/2;return Vn(Pn(a),n)+e+Vn(Dn(a),n)}function jd(e,t,n){e=z(e),t=E(t);var o=t?Et(e):0;return t&&o<t?e+Vn(t-o,n):e}function eg(e,t,n){e=z(e),t=E(t);var o=t?Et(e):0;return t&&o<t?Vn(t-o,n)+e:e}function tg(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(z(e).replace(mr,""),t||0)}function ng(e,t,n){return(n?le(e,t,n):t===r)?t=1:t=E(t),Yr(z(e),t)}function rg(){var e=arguments,t=z(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ig=Wt(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function og(e,t,n){return n&&typeof n!="number"&&le(e,t,n)&&(t=n=r),n=n===r?Oe:n>>>0,n?(e=z(e),e&&(typeof t=="string"||t!=null&&!yi(t))&&(t=ye(t),!t&&Rt(e))?dt(De(e),0,n):e.split(t,n)):[]}var ag=Wt(function(e,t,n){return e+(n?" ":"")+xi(t)});function lg(e,t,n){return e=z(e),n=n==null?0:St(E(n),0,e.length),t=ye(t),e.slice(n,n+t.length)==t}function sg(e,t,n){var o=l.templateSettings;n&&le(e,t,n)&&(t=r),e=z(e),t=or({},t,o,ca);var a=or({},t.imports,o.imports,ca),s=j(a),p=Rr(a,s),c,d,v=0,b=t.interpolate||vn,x="__p += '",C=Dr((t.escape||vn).source+"|"+b.source+"|"+(b===Ei?zl:vn).source+"|"+(t.evaluate||vn).source+"|$","g"),I="//# sourceURL="+(U.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ms+"]")+`
11
+ `;e.replace(C,function(T,k,M,be,se,xe){return M||(M=be),x+=e.slice(v,xe).replace(Vl,Hs),k&&(c=!0,x+=`' +
12
12
  __e(`+k+`) +
13
13
  '`),se&&(d=!0,x+=`';
14
14
  `+se+`;
15
- __p += '`),O&&(x+=`' +
16
- ((__t = (`+O+`)) == null ? '' : __t) +
15
+ __p += '`),M&&(x+=`' +
16
+ ((__t = (`+M+`)) == null ? '' : __t) +
17
17
  '`),v=xe+T.length,T}),x+=`';
18
18
  `;var B=U.call(t,"variable")&&t.variable;if(!B)x=`with (obj) {
19
19
  `+x+`
20
20
  }
21
- `;else if(Ol.test(B))throw new F(M);x=(d?x.replace(Sl,""):x).replace(wl,"$1").replace(Cl,"$1;"),x="function("+(B||"obj")+`) {
21
+ `;else if(Ol.test(B))throw new F(O);x=(d?x.replace(Sl,""):x).replace(wl,"$1").replace(Cl,"$1;"),x="function("+(B||"obj")+`) {
22
22
  `+(B?"":`obj || (obj = {});
23
23
  `)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(d?`, __j = Array.prototype.join;
24
24
  function print() { __p += __j.call(arguments, '') }
25
25
  `:`;
26
26
  `)+x+`return __p
27
- }`;var D=rl(function(){return W(s,I+"return "+x).apply(r,p)});if(D.source=x,mi(D))throw D;return D}function ug(e){return z(e).toLowerCase()}function pg(e){return z(e).toUpperCase()}function cg(e,t,n){if(e=z(e),e&&(n||t===r))return co(e);if(!e||!(t=ye(t)))return e;var o=De(e),a=De(t),s=fo(o,a),p=go(o,a)+1;return dt(o,s,p).join("")}function fg(e,t,n){if(e=z(e),e&&(n||t===r))return e.slice(0,mo(e)+1);if(!e||!(t=ye(t)))return e;var o=De(e),a=go(o,De(t))+1;return dt(o,0,a).join("")}function dg(e,t,n){if(e=z(e),e&&(n||t===r))return e.replace(mr,"");if(!e||!(t=ye(t)))return e;var o=De(e),a=fo(o,De(t));return dt(o,a).join("")}function gg(e,t){var n=al,o=ll;if(q(t)){var a="separator"in t?t.separator:a;n="length"in t?E(t.length):n,o="omission"in t?ye(t.omission):o}e=z(e);var s=e.length;if(Rt(e)){var p=De(e);s=p.length}if(n>=s)return e;var c=n-Et(o);if(c<1)return o;var d=p?dt(p,0,c).join(""):e.slice(0,c);if(a===r)return d+o;if(p&&(c+=d.length-c),yi(a)){if(e.slice(c).search(a)){var v,b=d;for(a.global||(a=Dr(a.source,z(Di.exec(a))+"g")),a.lastIndex=0;v=a.exec(b);)var x=v.index;d=d.slice(0,x===r?c:x)}}else if(e.indexOf(ye(a),c)!=c){var C=d.lastIndexOf(a);C>-1&&(d=d.slice(0,C))}return d+o}function hg(e){return e=z(e),e&&Ll.test(e)?e.replace(Fi,Ns):e}var mg=Wt(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),xi=ia("toUpperCase");function nl(e,t,n){return e=z(e),t=n?r:t,t===r?Os(e)?qs(e):Ts(e):e.match(t)||[]}var rl=P(function(e,t){try{return he(e,r,t)}catch(n){return mi(n)?n:new F(n)}}),yg=Qe(function(e,t){return we(t,function(n){n=Ue(n),Ze(e,n,gi(e[n],e))}),e});function vg(e){var t=e==null?0:e.length,n=A();return e=t?K(e,function(o){if(typeof o[1]!="function")throw new Ce(S);return[n(o[0]),o[1]]}):[],P(function(o){for(var a=-1;++a<t;){var s=e[a];if(he(s[0],this,o))return he(s[1],this,o)}})}function bg(e){return Nu(Ie(e,Fe))}function _i(e){return function(){return e}}function xg(e,t){return e==null||e!==e?t:e}var _g=aa(),Sg=aa(!0);function fe(e){return e}function Si(e){return Ho(typeof e=="function"?e:Ie(e,Fe))}function wg(e){return Oo(Ie(e,Fe))}function Cg(e,t){return Wo(e,Ie(t,Fe))}var Lg=P(function(e,t){return function(n){return an(n,e,t)}}),Ig=P(function(e,t){return function(n){return an(e,n,t)}});function wi(e,t,n){var o=j(t),a=zn(t,o);n==null&&!(q(t)&&(a.length||!o.length))&&(n=t,t=e,e=this,a=zn(t,j(t)));var s=!(q(n)&&"chain"in n)||!!n.chain,p=et(e);return we(a,function(c){var d=t[c];e[c]=d,p&&(e.prototype[c]=function(){var v=this.__chain__;if(s||v){var b=e(this.__wrapped__),x=b.__actions__=ue(this.__actions__);return x.push({func:d,args:arguments,thisArg:e}),b.__chain__=v,b}return d.apply(e,lt([this.value()],arguments))})}),e}function Ag(){return ee._===this&&(ee._=Qs),this}function Ci(){}function Bg(e){return e=E(e),P(function(t){return zo(t,e)})}var Tg=ti(K),Fg=ti(ao),Rg=ti(Ir);function il(e){return si(e)?Ar(Ue(e)):ap(e)}function Eg(e){return function(t){return e==null?r:wt(e,t)}}var Dg=sa(),Pg=sa(!0);function Li(){return[]}function Ii(){return!1}function kg(){return{}}function Hg(){return""}function Mg(){return!0}function Og(e,t){if(e=E(e),e<1||e>ot)return[];var n=Oe,o=ne(e,Oe);t=A(t),e-=Oe;for(var a=Fr(o,t);++n<e;)t(n);return a}function Wg(e){return R(e)?K(e,Ue):ve(e)?[e]:ue(Ca(z(e)))}function zg(e){var t=++Zs;return z(e)+t}var Ug=qn(function(e,t){return e+t},0),Gg=ni("ceil"),Ng=qn(function(e,t){return e/t},1),$g=ni("floor");function Kg(e){return e&&e.length?Wn(e,fe,Ur):r}function qg(e,t){return e&&e.length?Wn(e,A(t,2),Ur):r}function Vg(e){return uo(e,fe)}function Yg(e,t){return uo(e,A(t,2))}function Jg(e){return e&&e.length?Wn(e,fe,Kr):r}function Zg(e,t){return e&&e.length?Wn(e,A(t,2),Kr):r}var Xg=qn(function(e,t){return e*t},1),Qg=ni("round"),jg=qn(function(e,t){return e-t},0);function eh(e){return e&&e.length?Tr(e,fe):0}function th(e,t){return e&&e.length?Tr(e,A(t,2)):0}return l.after=wf,l.ary=ka,l.assign=pd,l.assignIn=Ja,l.assignInWith=or,l.assignWith=cd,l.at=fd,l.before=Ha,l.bind=gi,l.bindAll=yg,l.bindKey=Ma,l.castArray=kf,l.chain=Ea,l.chunk=Np,l.compact=$p,l.concat=Kp,l.cond=vg,l.conforms=bg,l.constant=_i,l.countBy=jc,l.create=dd,l.curry=Oa,l.curryRight=Wa,l.debounce=za,l.defaults=gd,l.defaultsDeep=hd,l.defer=Cf,l.delay=Lf,l.difference=qp,l.differenceBy=Vp,l.differenceWith=Yp,l.drop=Jp,l.dropRight=Zp,l.dropRightWhile=Xp,l.dropWhile=Qp,l.fill=jp,l.filter=tf,l.flatMap=of,l.flatMapDeep=af,l.flatMapDepth=lf,l.flatten=Ba,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=If,l.flow=_g,l.flowRight=Sg,l.fromPairs=nc,l.functions=Sd,l.functionsIn=wd,l.groupBy=sf,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=Ld,l.invertBy=Id,l.invokeMap=pf,l.iteratee=Si,l.keyBy=cf,l.keys=j,l.keysIn=ce,l.map=jn,l.mapKeys=Bd,l.mapValues=Td,l.matches=wg,l.matchesProperty=Cg,l.memoize=tr,l.merge=Fd,l.mergeWith=Za,l.method=Lg,l.methodOf=Ig,l.mixin=wi,l.negate=nr,l.nthArg=Bg,l.omit=Rd,l.omitBy=Ed,l.once=Af,l.orderBy=ff,l.over=Tg,l.overArgs=Bf,l.overEvery=Fg,l.overSome=Rg,l.partial=hi,l.partialRight=Ua,l.partition=df,l.pick=Dd,l.pickBy=Xa,l.property=il,l.propertyOf=Eg,l.pull=cc,l.pullAll=Fa,l.pullAllBy=fc,l.pullAllWith=dc,l.pullAt=gc,l.range=Dg,l.rangeRight=Pg,l.rearg=Tf,l.reject=mf,l.remove=hc,l.rest=Ff,l.reverse=fi,l.sampleSize=vf,l.set=kd,l.setWith=Hd,l.shuffle=bf,l.slice=mc,l.sortBy=Sf,l.sortedUniq=wc,l.sortedUniqBy=Cc,l.split=og,l.spread=Rf,l.tail=Lc,l.take=Ic,l.takeRight=Ac,l.takeRightWhile=Bc,l.takeWhile=Tc,l.tap=$c,l.throttle=Ef,l.thru=Qn,l.toArray=qa,l.toPairs=Qa,l.toPairsIn=ja,l.toPath=Wg,l.toPlainObject=Ya,l.transform=Md,l.unary=Df,l.union=Fc,l.unionBy=Rc,l.unionWith=Ec,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Od,l.unzip=di,l.unzipWith=Ra,l.update=Wd,l.updateWith=zd,l.values=Gt,l.valuesIn=Ud,l.without=Hc,l.words=nl,l.wrap=Pf,l.xor=Mc,l.xorBy=Oc,l.xorWith=Wc,l.zip=zc,l.zipObject=Uc,l.zipObjectDeep=Gc,l.zipWith=Nc,l.entries=Qa,l.entriesIn=ja,l.extend=Ja,l.extendWith=or,wi(l,l),l.add=Ug,l.attempt=rl,l.camelCase=Kd,l.capitalize=el,l.ceil=Gg,l.clamp=Gd,l.clone=Hf,l.cloneDeep=Of,l.cloneDeepWith=Wf,l.cloneWith=Mf,l.conformsTo=zf,l.deburr=tl,l.defaultTo=xg,l.divide=Ng,l.endsWith=qd,l.eq=ke,l.escape=Vd,l.escapeRegExp=Yd,l.every=ef,l.find=nf,l.findIndex=Ia,l.findKey=md,l.findLast=rf,l.findLastIndex=Aa,l.findLastKey=yd,l.floor=$g,l.forEach=Da,l.forEachRight=Pa,l.forIn=vd,l.forInRight=bd,l.forOwn=xd,l.forOwnRight=_d,l.get=vi,l.gt=Uf,l.gte=Gf,l.has=Cd,l.hasIn=bi,l.head=Ta,l.identity=fe,l.includes=uf,l.indexOf=rc,l.inRange=Nd,l.invoke=Ad,l.isArguments=It,l.isArray=R,l.isArrayBuffer=Nf,l.isArrayLike=pe,l.isArrayLikeObject=Y,l.isBoolean=$f,l.isBuffer=gt,l.isDate=Kf,l.isElement=qf,l.isEmpty=Vf,l.isEqual=Yf,l.isEqualWith=Jf,l.isError=mi,l.isFinite=Zf,l.isFunction=et,l.isInteger=Ga,l.isLength=rr,l.isMap=Na,l.isMatch=Xf,l.isMatchWith=Qf,l.isNaN=jf,l.isNative=ed,l.isNil=nd,l.isNull=td,l.isNumber=$a,l.isObject=q,l.isObjectLike=V,l.isPlainObject=fn,l.isRegExp=yi,l.isSafeInteger=rd,l.isSet=Ka,l.isString=ir,l.isSymbol=ve,l.isTypedArray=Ut,l.isUndefined=id,l.isWeakMap=od,l.isWeakSet=ad,l.join=sc,l.kebabCase=Jd,l.last=Be,l.lastIndexOf=uc,l.lowerCase=Zd,l.lowerFirst=Xd,l.lt=ld,l.lte=sd,l.max=Kg,l.maxBy=qg,l.mean=Vg,l.meanBy=Yg,l.min=Jg,l.minBy=Zg,l.stubArray=Li,l.stubFalse=Ii,l.stubObject=kg,l.stubString=Hg,l.stubTrue=Mg,l.multiply=Xg,l.nth=pc,l.noConflict=Ag,l.noop=Ci,l.now=er,l.pad=Qd,l.padEnd=jd,l.padStart=eg,l.parseInt=tg,l.random=$d,l.reduce=gf,l.reduceRight=hf,l.repeat=ng,l.replace=rg,l.result=Pd,l.round=Qg,l.runInContext=f,l.sample=yf,l.size=xf,l.snakeCase=ig,l.some=_f,l.sortedIndex=yc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=_c,l.sortedLastIndexOf=Sc,l.startCase=ag,l.startsWith=lg,l.subtract=jg,l.sum=eh,l.sumBy=th,l.template=sg,l.times=Og,l.toFinite=tt,l.toInteger=E,l.toLength=Va,l.toLower=ug,l.toNumber=Te,l.toSafeInteger=ud,l.toString=z,l.toUpper=pg,l.trim=cg,l.trimEnd=fg,l.trimStart=dg,l.truncate=gg,l.unescape=hg,l.uniqueId=zg,l.upperCase=mg,l.upperFirst=xi,l.each=Da,l.eachRight=Pa,l.first=Ta,wi(l,function(){var e={};return We(l,function(t,n){U.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=g,we(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),we(["drop","take"],function(e,t){H.prototype[e]=function(n){n=n===r?1:Q(E(n),0);var o=this.__filtered__&&!t?new H(this):this.clone();return o.__filtered__?o.__takeCount__=ne(n,o.__takeCount__):o.__views__.push({size:ne(n,Oe),type:e+(o.__dir__<0?"Right":"")}),o},H.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),we(["filter","map","takeWhile"],function(e,t){var n=t+1,o=n==Ai||n==cl;H.prototype[e]=function(a){var s=this.clone();return s.__iteratees__.push({iteratee:A(a,3),type:n}),s.__filtered__=s.__filtered__||o,s}}),we(["head","last"],function(e,t){var n="take"+(t?"Right":"");H.prototype[e]=function(){return this[n](1).value()[0]}}),we(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");H.prototype[e]=function(){return this.__filtered__?new H(this):this[n](1)}}),H.prototype.compact=function(){return this.filter(fe)},H.prototype.find=function(e){return this.filter(e).head()},H.prototype.findLast=function(e){return this.reverse().find(e)},H.prototype.invokeMap=P(function(e,t){return typeof e=="function"?new H(this):this.map(function(n){return an(n,e,t)})}),H.prototype.reject=function(e){return this.filter(nr(A(e)))},H.prototype.slice=function(e,t){e=E(e);var n=this;return n.__filtered__&&(e>0||t<0)?new H(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=E(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},H.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},H.prototype.toArray=function(){return this.take(Oe)},We(H.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],s=o||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,c=o?[1]:arguments,d=p instanceof H,v=c[0],b=d||R(p),x=function(k){var O=a.apply(l,lt([k],c));return o&&C?O[0]:O};b&&n&&typeof v=="function"&&v.length!=1&&(d=b=!1);var C=this.__chain__,I=!!this.__actions__.length,B=s&&!C,D=d&&!I;if(!s&&b){p=D?p:new H(this);var T=e.apply(p,c);return T.__actions__.push({func:Qn,args:[x],thisArg:r}),new Le(T,C)}return B&&D?e.apply(this,c):(T=this.thru(x),B?o?T.value()[0]:T.value():T)})}),we(["pop","push","shift","sort","splice","unshift"],function(e){var t=Cn[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var s=this.value();return t.apply(R(s)?s:[],a)}return this[n](function(p){return t.apply(R(p)?p:[],a)})}}),We(H.prototype,function(e,t){var n=l[t];if(n){var o=n.name+"";U.call(Ht,o)||(Ht[o]=[]),Ht[o].push({name:t,func:n})}}),Ht[Kn(r,Me).name]=[{name:"wrapper",func:r}],H.prototype.clone=gu,H.prototype.reverse=hu,H.prototype.value=mu,l.prototype.at=Kc,l.prototype.chain=qc,l.prototype.commit=Vc,l.prototype.next=Yc,l.prototype.plant=Zc,l.prototype.reverse=Xc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,Qt&&(l.prototype[Qt]=Jc),l},Dt=Vs();vt?((vt.exports=Dt)._=Dt,Sr._=Dt):ee._=Dt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{type:"string",oneOf:[{title:"Select",const:"Select"},{title:"Date",const:"Date"},{title:"CheckBox",const:"CheckBox"},{title:"Table",const:"Table"},{title:"Lazy Loading Table",const:"LazyLoadingTable"},{title:"Array",const:"Array"},{title:"Container",const:"WrapperSection"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"SpeedoMeter",const:"SpeedoMeter"},{title:"ProgressBar",const:"ProgressBar"},{title:"Graph",const:"Graph"},{title:"Label",const:"Box"},{title:"Upload File",const:"UploadFile"},{title:"Download File",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"ProgressBar Card",const:"ProgressBarCard"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy Progress Bar",const:"RunnerBoyProgressBar"},{title:"Slider",const:"Slider"},{title:"Timer",const:"Timer"},{title:"MultipleSelect",const:"MultipleSelect"},{title:"LeaderBoard",const:"LeaderBoard"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{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"}}}},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button With Text",const:"Button"},{title:"Button With Icon",const:"IconButton"},{title:"Button With Icon and Text",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"}]}}},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:"Lazy Loading Table",value:"LazyLoadingTable"},{label:"Array",value:"Array"},{label:"Container",value:"WrapperSection"},{label:"Tabs",value:"TabSection"},{label:"Text",value:"Text"},{label:"Radio",value:"Radio"},{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"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",options:[{label:"3",value:"3"},{label:"5.5",value:"5.5"},{label:"8",value:"8"},{label:"12",value:"12"}]}}}]}}}]}]},{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=i=>{const u=_.cloneDeep(i);let r={};return u.pageName&&delete u.pageName,u.eventsSelected&&delete u.eventsSelected,(u.type==="Table"||u.type==="WrapperSection"||u.type==="TabSection")&&(r.elements=u.elements||[],u.elements&&delete u.elements),r.events=u.events||[],u.events&&delete u.events,r={...u,...r},r};const createLayoutFormat=i=>{let u={};return i.map(r=>{u[r.key]=+r.value}),u},flatObjectValueInArray=i=>{const u=Object.keys(i[0])[0];return i.map(g=>g[u])},getNavigationHistory=(i,u)=>{if(u){let r=i.name;const g=u.split("."),y=[];return g.map((w,S)=>{if(S===0){y.push(w);return}y.push(`${y[S-1]}.${w}`)}),y.map(w=>{const S=_.get(i,w);S?r=r+` > ${(S==null?void 0:S.name)||(S==null?void 0:S.eventType)}`:r=r+" > NewComponent"}),{pageName:r}}},saveFormdataInLocalStorage=(i,u)=>{let r;if(u){const g=getFormdataFromLocalStorage();r=_.set(g,u,buildConfig(i))}else r=buildConfig(i);return localStorage.setItem("pageFormdata",JSON.stringify(r)),r},getFormdataFromLocalStorage=i=>{const u=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let r;return i&&(r=_.get(u,i),r={...r,...getNavigationHistory(u,i)}),r||(r=getNavigationHistory(u,i)),r||u},CoreSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name"}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}}]},OptionArray={type:"Control",scope:"#/properties/value",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/label",options:{widget:"SelectInputField"},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"}}}}]}]}]},EmptyBox={type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}},getArrayControl=(i,u,r)=>({type:"Control",scope:`#/properties/${i}`,layout:11.5,options:{elementLabelProp:u,detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${u}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:r||"Labels for Tab"}}}]}}}),getInputField=(i,u)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u}}}),getRadioInputField=(i,u,r)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,options:r}}}),getTextArea=(i,u,r,g)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"TextArea"},config:{layout:g||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:u,minRows:8,hideButton:r}}}),getSelectField=(i,u,r)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,type:"text",options:r}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(i){let u=_.cloneDeep(GraphSection);if(i==="SpeedoMeter")u.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width")];else if(i==="RankCard")u.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];else if(i==="LeaderBoard")u.elements=[getInputField("valueLabel","Value Label"),getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getTextArea("functionCode","Write Compare Code",!1)];else if(i==="CardSlider"){const r=getInputField("heading","Heading"),g=getInputField("iconName","Icon Name");u.elements=[r,g]}else if(i==="ProgressBar"||i==="ProgressBarCard"){const r=getInputField("heading","Heading"),g=getInputField("bottomLabel_1","First BottomLabel"),y=getInputField("bottomLabel_2","Second BottomLabel"),w=getInputField("bottomLabel_3","Third BottomLabel");u.elements=[r,g,y,w]}else if(i==="card")u.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description")];else if(i==="Button"){const r=getInputField("color","Color"),g=getInputField("size","Size"),y=getInputField("iconName","Icon Name");u.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"}]),y,g,r,getSelectField("defaultStyle","Default Style",[{label:"Apply Default Style",value:"true"},{label:"No Style",value:"false"}]),JSON.parse(JSON.stringify(EmptyBox))]}else if(i==="Graph"){const r=getInputField("height","Height"),g=getInputField("heading","Heading"),y=getInputField("leftLabel","Left Label"),w=getInputField("bottomLabel","Bottom Label"),S=getRadioInputField("legendHide","Legend Hide",["YES","No"]);u.elements=[g,r,getSelectField("graphType","Graph Type",[{label:"Bar Graph",value:"BarGraph"},{label:"Stack Bar Graph",value:"StackBarGraph"},{label:"Line Graph",value:"LineGraph"},{label:"Pie Graph",value:"PieGraph"},{label:"Horizontal Bar Graph",value:"HorizontalBarGraph"}]),y,w,S,getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")]}else i==="WrapperSection"?u.elements=[getRadioInputField("divider","Divider",["YES","No"]),EmptyBox]:i==="TabSection"?u.elements=[getArrayControl("sectionLabels","label")]:i==="Table"||i==="LazyLoadingTable"?u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Selection Available",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing Available",["YES","NO"]),getRadioInputField("DragAvailable","Drag Available",["YES","NO"]),getInputField("selectKey","Selection Key"),EmptyBox]:i==="Radio"?u.elements=[getArrayControl("sectionLabels","label","Options Of Radio")]:i==="Select"?u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"])]:i==="MultipleSelect"&&(u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),EmptyBox]);return u},StyleSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Components Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"widgetAddClickHandler",tooltipMessage:"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]},ValidationSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validation",layout:11.5,options:{elementLabelProp:"validationType",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Value"}}}]}}}]},sectionLabels={Select:["Core","Properties","Value","style","Event","Validation"],MultipleSelect:["Core","Properties","Value","style","Event","Validation"],Table:["Core","Components","Properties","style","Event","Validation"],LazyLoadingTable:["Core","Components","Properties","style","Event","Validation"],LeaderBoard:["Core","Components","Properties","style","Event","Validation"],WrapperSection:["Core","Components","Properties","style","Validation"],TabSection:["Core","Components","Properties","style","Validation"],SpeedoMeter:["Core","Properties","style","Event","Validation"],card:["Core","Properties","style","Event","Validation"],UploadFile:["Core","style","Event","Validation"],Graph:["Core","Properties","style","Event","Validation"],DownloadFile:["Core","style","Event","Validation"],Box:["Core","style","Event","Validation"],Properties:["Core","Properties","style","Event","Validation"],ProgressBarCard:["Core","Properties","style","Event","Validation"],RankCard:["Core","Properties","style","Event","Validation"],Slider:["Core","Components","Properties","style","Event","Validation"],Timer:["Core","Properties","style","Event","Validation"],Rank:["Core","Properties","style","Event","Validation"],Button:["Core","Properties","style","Event","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","style","Event","Validation"],Text:["Core","Event","Validation"]},refreshPage=(i,u)=>{var g;const r=_.cloneDeep(componentBasicUiSchema);if(i){const y={Core:CoreSection,Value:ValueTab,style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(i),Validation:ValidationSection},w=(g=sectionLabels[i])==null?void 0:g.map(S=>y[S]);r.elements[1].config.main.tabLabels=sectionLabels[i]||["Core","style","Event","Validation"],r.elements[1].elements=w||[CoreSection,StyleSection,EventSection,ValidationSection]}u.setUiSchema(r)};var Component=(i,u)=>({setPage:async function(){const r=await this.getFormdata();i.setFormdata(r);const g=this.getSchema();i.setSchema(g),this.refreshPage(r==null?void 0:r.type,i)},refreshPage,getFormdata:async function(){var g;const r=(g=i.searchParams)==null?void 0:g.get("path");return getFormdataFromLocalStorage(r)},getSchema:function(){return ComponentSchema},saveHandler:async function(){var g;const r=(g=i.searchParams)==null?void 0:g.get("path");saveFormdataInLocalStorage(i.formData,r),i.navigate(-1),i.setNotify({SuccessMessage:"Save Successfully",Success:!0})},onChange:function(){var r,g,y,w;((r=i==null?void 0:i.formData)==null?void 0:r.type)!==((g=i==null?void 0:i.newData)==null?void 0:g.type)&&((y=i==null?void 0:i.newData)==null?void 0:y.type)!==void 0&&this.refreshPage((w=i==null?void 0:i.newData)==null?void 0:w.type,i)},editComponents:async function(){var w,S,M;const r=u.path.split(".")[1],g=(w=i.searchParams)==null?void 0:w.get("path"),y=(S=i.searchParams)==null?void 0:S.get("id");if(saveFormdataInLocalStorage(i.formData,g),g){const rt=`${(M=i.searchParams)==null?void 0:M.get("path")}.elements[${r}]`;i.searchParams.set("path",rt),i.setSearchParams(i.searchParams),this.setPage()}else i.navigate(`/Component?path=${`elements[${r}]`}&id=${y}`)},deleteComponents:async function(){var S;const r=(S=i.searchParams)==null?void 0:S.get("path"),g=u.path.split(".")[1];i.formData.elements.splice(g,1);const y=saveFormdataInLocalStorage(i.formData,r),w=r?_.get(y,r):y;i.setFormdata(w)},deleteEvent:async function(){var w;const r=(w=i.searchParams)==null?void 0:w.get("path"),g=u.path.split(".")[1];i.formData.events.splice(g,1);const y=saveFormdataInLocalStorage(i.formData,r);i.setFormdata(_.get(y,r))},widgetAddClickHandler:async function(){var y;Array.isArray(i.formData.elements)||(i.formData.elements=[]);const r=(y=i.searchParams)==null?void 0:y.get("path");saveFormdataInLocalStorage(i.formData,r);const g=`${r}.elements[${i.formData.elements.length}]`;i.searchParams.set("path",g),i.setSearchParams(i.searchParams),this.setPage()},eventEditHandler:async function(){var S,M;const r=u.path.split(".")[1],g=(S=i.searchParams)==null?void 0:S.get("path"),y=(M=i.searchParams)==null?void 0:M.get("id");saveFormdataInLocalStorage(i.formData,g);const w=`${g}.events[${r}]`;i.navigate(`/ComponentEvents?path=${w}&id=${y}`)},eventAddHandler:async function(){var w,S;const r=(w=i.searchParams)==null?void 0:w.get("path"),g=(S=i.searchParams)==null?void 0:S.get("id");Array.isArray(i.formData.events)||(i.formData.events=[]),saveFormdataInLocalStorage(i.formData,r);const y=`${r}.events[${i.formData.events.length}]`;i.navigate(`/ComponentEvents?path=${y}&id=${g}`)},backHandler:function(){i.navigate(-1)}}),leaderBoard={type:"WrapperLayout",config:{main:{rowSpacing:3,header:!0,label:"LeaderBoard",divider:!0},style:{wrapperStyle:{height:{xs:850,sm:1e3}}},wrapperStyle:{position:"relative",width:"100%"}},elements:[{type:"Control",scope:"#/properties/leaderBoard/properties/firstImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"90px",md:"60px"},left:{xs:"calc(50% - 50px)",sm:"calc(50% - 50px)",md:"calc(50% - 100px)"},width:{xs:"100px",sm:"100px",md:"200px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"100px",sm:"100px",md:"200px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(25% - 45px)",sm:"calc(25% - 45px)",md:"calc(25% - 90px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(75% - 42.5px)",sm:"calc(75% - 42.5px)",md:"calc(75% - 85px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/firstName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"190px",md:"270px"},fontSize:{xs:"12px",md:"20px"},left:"calc(50% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%",zIndex:7},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(25% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(75% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/econd",config:{main:{heading:"2"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(25% - 12px)",md:"calc(25% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/first",config:{main:{heading:"1"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"175px",md:"230px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(50% - 12px)",md:"calc(50% - 16px)"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/third",config:{main:{heading:"3"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(75% - 12px)",md:"calc(75% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/table",options:{widget:"Table"},elements:[],config:{style:{tableHeadstyle:{fontWeight:900,background:"rgb(179, 198, 255)"},position:"absolute",top:{xs:"300px",sm:"300px",md:"390px",lg:"390px"},border:"2px solid rgb(179, 198, 255)",width:"95%",left:"2.5%"},main:{disableAction:!0,disableSelection:!0}}}]};const buildLeaderBoard=i=>{const u=_.cloneDeep(leaderBoard);if(i.elements){const r=i.elements.map((g,y)=>g.type?{...{widget:buildUiSchema(g),accessorKey:g.name,header:g.label||g.name}}:{accessorKey:g.name,header:g.label||g.name});u.elements[9].elements=r}return i.name&&(u.elements[0].scope=`#/properties/${i.name}/properties/firstImage`,u.elements[3].scope=`#/properties/${i.name}/properties/firstName`,u.elements[1].scope=`#/properties/${i.name}/properties/secondImage`,u.elements[4].scope=`#/properties/${i.name}/properties/secondName`,u.elements[2].scope=`#/properties/${i.name}/properties/thirdImage`,u.elements[5].scope=`#/properties/${i.name}/properties/thirdName`,u.elements[9].scope=`#/properties/${i.name}/properties/table`),i.firstImage&&(u.elements[0].config.main.url=i.firstImage),i.secondImage&&(u.elements[1].config.main.url=i.secondImage),i.secondImage&&(u.elements[2].config.main.url=i.thirdImage),i.layout&&(u.config.layout=i.layout),u};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:6,main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(i,u)=>{const r=_.cloneDeep(progressBar);return r.scope=u,i.heading&&(r.config.main.heading=i.heading),i.bottomLabel_3&&(r.config.main.bottomLabel_3=i.bottomLabel_3),i.bottomLabel_2&&(r.config.main.bottomLabel_2=i.bottomLabel_2),i.bottomLabel_1&&(r.elements[0].config.main.bottomLabel_1=i.bottomLabel_1),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r},buildProgressBar=(i,u)=>{const r=_.cloneDeep(progressBar);return r.scope=u,i.layout&&(r.config.layout=i.layout),r.config.main.heading=i.heading,i.bottomLabel_3&&(r.config.main.bottomLabel_3=i.bottomLabel_3),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.bottomLabel_2&&(r.config.main.bottomLabel_2=i.bottomLabel_2),i.bottomLabel_1&&(r.config.main.bottomLabel_1=i.bottomLabel_1),r},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Bar Graph",bottomLabel:"Name of Employe",numTicks:6,leftLabel:"Value in lakhs",axisLeft:!0,axisBottom:!0,hideTicks:!1,hideLeftAxisLine:!1,hideBottomAxisLine:!1,bottomAxisWidth:"10px",legend:{labelColor:"green",legendTitle:"",direction:"row",align:"none"}},style:{containerStyle:{width:"100%",height:300},headerStyle:{},tooltipStyle:{},labelStyle:{margin:{left:80,bottom:20},leftLabelOffset:50,bottomLabelOffset:10},barStyle:{color:{firstBarColor:"#6c5efb",secondBarColor:"#3f51b5"}},legendStyle:{legend:{lineHeight:"0.9em",fontSize:"8px",fontFamily:"arial",padding:"10px 10px",width:"30%",display:"flex",justifyContent:"center",border:"1px solid rgba(255, 255, 255, 0.3)",borderRadius:" 8px",marginRight:"auto"},legendTitle:{fontSize:"10px",marginBottom:"10px",fontWeight:"100"}}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Incentive Branch category wise",type:"PieGraph",bottomLabel:"Name of Employe",leftLabel:"Value",axisLeft:!0,axisBottom:!0,legendAvailable:!0,legend:{labelColor:"green",legendTitle:"Branches",direction:"row",align:"right"}},style:{containerStyle:{height:"340"},headerStyle:{},tooltipStyle:{backgroundColor:"black",width:"80px"},labelStyle:{},legendStyle:{legend:{},legendTitle:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:12,main:{type:"LineGraph",header:"Quartely Incentive in Thousand",bottomLabel:"Years",leftLabel:"Incentive",gridHidden:!0,numHidden:!1,tooltipDataKey:["MAMA New Project","Second","Third"],axisLeft:!0,axisBottom:!0,hideLeftAxisLine:!1,hideBottomAxisLine:!1,legend:{labelColor:"green",legendTitle:"Our Assests",direction:"row",align:"right",colorRectWidth:20}},style:{containerStyle:{},headerStyle:{},labelStyle:{},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:" ",type:"HorizontalBarGraph",bottomLabel:" ",leftLabel:"Value",axisLeft:!1,axisBottom:!0,hideBottomTicks:!1,hideLeftTicks:!1,hideLeftAxisLine:!0,hideBottomAxisLine:!1,bottomAxisWidth:"10px"},style:{containerStyle:{width:"100%"},headerStyle:{},tooltipStyle:{},labelStyle:{},barStyle:{color:"#6c5efb"}}}},buildHorizontalBarGraph=(i,u)=>{const r=_.cloneDeep(HorizontalBarGraph);return r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.scope=u,r.config.main.header=i.heading,i.barColor&&(r.config.barStyle.color=i.barColor),i.containerBackground&&(r.config.containerStyle.background=i.containerBackground),i.height&&(r.config.style.containerStyle.height=i.height),i.bottomLabel&&(r.config.main.bottomLabel=i.bottomLabel),i.leftLabel&&(r.config.main.leftLabel=i.leftLabel),r};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(i,u)=>{const r=_.cloneDeep(SpeedoMeter);if(r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.heading&&(r.config.main.header=i.heading),i.segments&&(r.config.main.segments=i.segments),i.style){const g=JSON.parse(i.style);g!=null&&g.style&&(r.config.style={...r.config.style,...g.style}),g!=null&&g.containerStyle&&(r.config.style.containerStyle={...r.config.style.containerStyle,...g.containerStyle})}return i.width&&(r.config.main.width=i.width),i.speedoCaption&&(r.config.main.currentValueText=i.speedoCaption),i.data&&(r.config.main.data=i.data),i.needleColor&&(r.config.style.needleColor=i.needleColor),i.segments&&(r.config.style.segments=i.segments),i.endColor&&(r.config.style.endColor=i.endColor),i.startColor&&(r.config.style.startColor=i.startColor),i.segmentColors&&(r.config.style.segmentColors=i.segmentColors),r},buildPieGraph=(i,u)=>{const r=_.cloneDeep(PieGraph);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.height&&(r.config.style.containerStyle.height=i.height),i.legendHide&&(r.config.main.legendAvailabe=i.legendHide!=="YES"),r.scope=u,r.config.main.header=i.heading,i.legendLabels&&(r.config.main.tooltipDataKey=flatObjectValueInArray(i.legendLabels)),i.pieArcColors&&(r.config.style.pieStyle.colorRange=flatObjectValueInArray(i.pieArcColors)),r},buildStackbarGraph=(i,u)=>{const r=_.cloneDeep(BarGraph);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.legendHide&&(r.config.main.legendAvailable=!1),r.config.main.type=i.graphType,r.config.main.header=i.heading,i.barColor&&(r.config.barStyle.color=i.barColor),i.containerBackground&&(r.config.containerStyle.background=i.containerBackground),i.height&&(r.config.style.containerStyle.height=i.height),i.bottomLabel&&(r.config.main.bottomLabel=i.bottomLabel),i.leftLabel&&(r.config.main.leftLabel=i.leftLabel),r.scope=u,r};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=(i,u)=>{const r=_.cloneDeep(RunnerBoyProgressBar);return r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(i,u)=>{const r=_.cloneDeep(Tabsection);return i.sectionLabels&&(r.config.main.tabLabels=i.sectionLabels.map(g=>g.label)),r.config.main.id=i.name,r};var WrapperSection={type:"WrapperLayout",config:{main:{label:"Default Label",divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(i,u)=>{const r=_.cloneDeep(WrapperSection);return r.config.main.label=i.label,r.config.main.divider=!!i.divider,r.config.main.header=!!i.heading,r};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=(i,u)=>{const r=_.cloneDeep(TextInputField);return r.config.main.label=i.label,i.style&&(r.config.style=JSON.parse(i.style)),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.config.main.errorMessage=`${i.name} is empty or invalid`,r.scope=u,r};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(i,u)=>{const r=_.cloneDeep(SelectInputField);return r.config.main.label=i.label,i.value&&(r.config.main.options=i.value),i.freeSolo&&(r.config.main.freeSolo=i.freeSolo==="YES"),i.lazyLoading&&(r.config.main.lazyLoading=i.lazyLoading==="YES"),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.scope=u,r};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{name:"Compare",variant:"contained",color:"info",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(i,u)=>{const r=_.cloneDeep(Button);return i.buttonType&&(r.options.widget=i.buttonType==="IconButton"?"IconButton":"Button",i.buttonType==="ButtonWithIconAndText"?r.config.main.startIcon=i.iconName:r.config.main.icon=i.iconName),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.defaultStyle&&(r.config.main.styleDefault=i.defaultStyle==="true"),r.scope=u,i.style&&(r.config.style=JSON.parse(i.style)),i.size&&(r.config.main.size=i.size),i.color&&(r.config.main.color=i.color),i.label&&(r.config.main.name=i.label),r};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{allRowData:[],columns:{dataColumns:[],actionColumns:[]}}}},lazyLoadingTable={type:"Control",scope:"#/properties/LazyLoadingTable",options:{widget:"LazyLoadingTable"},elements:[],config:{main:{columns:{}}}};const buildTable=(i,u)=>{const r=_.cloneDeep(Table);return r.scope=u,i.style&&(r.config.style=JSON.parse(i.style)),i.lazyLoading&&(r.config.main.lazyLoading=i.lazyLoading==="YES"),i.SelectionAvailable&&(r.config.main.Selection=i.SelectionAvailable==="YES"),i.ColumnResizingAvailable&&(r.config.main.disableColumnResizing=i.ColumnResizingAvailable==="YES"),i.DragAvailable&&(r.config.main.enableDrag=i.DragAvailable==="YES"),i.selectKey&&(r.config.main.selectKey=i.selectKey),r},buildLazyLoadingTable=(i,u)=>{const r=_.cloneDeep(lazyLoadingTable);return r.scope=u,i.style&&(r.config.style=JSON.parse(i.style)),i.SelectionAvailable&&(r.config.main.Selection=i.SelectionAvailable==="YES"),i.ColumnResizingAvailable&&(r.config.main.disableColumnResizing=i.ColumnResizingAvailable!=="YES"),i.DragAvailable&&(r.config.main.enableDrag=i.DragAvailable==="YES"),i.selectKey&&(r.config.main.selectKey=i.selectKey),r.config.main.label=i.label,r};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(i,u)=>{const r=_.cloneDeep(Box);return r.scope=u,r.config.main.heading=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=JSON.parse(i.style)),r},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$1={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=(i,u)=>{const r=_.cloneDeep(uploadFile);return r.scope=u,r.config.main.label=i.label,i.layout&&(r.config.layout=i.layout),i.layout&&(uploadFile.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=i.style),i.required&&(r.config.main.required=!0),r.config.main.errorMessage=i.errorMessage,r},buildDownloadFile=(i,u)=>{const r=_.cloneDeep(downloadFile$1);return r.scope=u,i.layout&&(r.config.layout=i.layout),i.style&&(r.config.style=i.style),i.required&&(r.config.main.required=!0),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.errorMessage&&(r.config.main.errorMessage=i.errorMessage),r};var Card={type:"WrapperLayout",config:{main:{rowSpacing:.5},style:{wrapperStyle:{position:"relative",color:"white",height:{xs:"120px",md:"160px"},width:"100%",textAlign:"left",background:"#3f51b5",borderRadius:"20px"}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:"$5000.00"},style:{position:"absolute",left:"10%",top:"15%",color:"#f5effc",height:"80px",display:"flex",fontSize:{xs:"24px",md:"32px"},alignItems:"center",background:"inherit",justifyContent:"flex-start"},layout:5},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{url:"$"},style:{color:"#f5effc",objectFit:"contain",position:"absolute",top:"10px",right:"10px",height:"80%",width:"35%",display:"flex",fontSize:"34px",alignItems:"center",background:"inherit",padding:"20px",justifyContent:"left"},layout:5},options:{widget:"Image"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{position:"absolute",top:"calc(60%)",alignItems:"center",color:"#8999e8",fontSize:"16px",left:"10%",background:"inherit",justifyContent:"center"},layout:12},options:{widget:"Box"}}]};const buildCard=(i,u)=>{const r=_.cloneDeep(Card);return i.style&&(r.config.style=JSON.parse(i.style)),r.elements[0].scope=`#/properties/${i.name}/properties/value`,r.elements[1].scope=`#/properties/${i.name}/properties/url`,r.elements[2].scope=`#/properties/${i.name}/properties/description`,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(DateInputField);return r.config.main.label=i.label,r.config.main.errorMessage=`${i.name} is empty or invalid`,r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(RankCard);return r.scope=u,i.image&&(r.config.main.url=i.image),i.title&&(r.config.main.title=i.title),i.description&&(r.config.main.description=i.description),i.rank&&(r.config.main.rank=`#${i.rank}`),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(RollAndDice);return i.name&&(r.scope=u),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(Timer);return r.scope=u,i.label&&(r.config.main.label=i.label),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(MultipleSelect);return r.scope=u,i.label&&(r.config.main.label=i.label),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.value&&(r.config.main.options=i.value),i.lazyLoading&&(r.config.main.lazyLoading=i.lazyLoading==="YES"),r},buildBasicUiSchema=i=>({type:"HorizontalLayout",pageName:`${i.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=(i,u)=>{const r=_.cloneDeep(TextArea);return r.config.main.heading=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=JSON.parse(i.style)),r.scope=u,r};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(i,u)=>{const r=_.cloneDeep(cardSlider);return i.name&&(r.scope=u),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(i,u)=>{const r=_.cloneDeep(Checkbox);return r.scope=u,r.config.main.label=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=JSON.parse(i.style)),r},buildLineGraph=(i,u)=>{const r=_.cloneDeep(LineGraph);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.config.main.header=i.heading,i.height&&(r.config.style.containerStyle.height=i.height),i.bottomLabel&&(r.config.main.bottomLabel=i.bottomLabel),i.leftLabel&&(r.config.main.leftLabel=i.leftLabel),i.legendHide&&(r.config.main.legendAvailabe=i.legendHide!=="YES"),i.legendLabels&&(r.config.main.tooltipDataKey=flatObjectValueInArray(i.legendLabels)),i.pieArcColors&&(r.config.style.lineStyle.colorRange=flatObjectValueInArray(i.pieArcColors)),r.scope=u,r},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(i,u)=>{const r=_.cloneDeep(RadioUiSchema);return r.scope=u,r.config.main.heading=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.sectionLabels&&(r.config.main.options=i.sectionLabels.map(g=>g.label||g.Options)),i.style&&(r.config.style=JSON.parse(i.style)),r};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},main:{},style:{}}};const buildEmptyBox=(i,u)=>{const r=_.cloneDeep(emptyBox);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(i,u)=>{const r=_.cloneDeep(ArrayUiSchema);return r.scope=u,r};exports.schema={type:"object",properties:{},required:[]};function buildRule(i,u,r){var g,y,w,S,M,ie,rt,ht,Fe;r&&(w=(y=(g=exports.schema.properties)==null?void 0:g[u])==null?void 0:y.items)!=null&&w.properties&&((rt=(ie=(M=(S=exports.schema.properties)==null?void 0:S[u])==null?void 0:M.items)==null?void 0:ie.properties)!=null&&rt[i.name]||(exports.schema.properties[u].items.properties[i.name]={},i.type==="Select"||((ht=i.value)==null?void 0:ht.length)>0?exports.schema.properties[u].items.properties[i.name]={oneOf:i.value.map(Z=>({const:Z.value,title:Z.label}))}:(i.type==="MultipleSelect"||((Fe=i.value)==null?void 0:Fe.length)>0)&&(exports.schema.properties[u].items.properties[i.name]={items:{oneOf:i.value.map(Z=>({const:Z.value,title:Z.label}))}}))),i.validation&&i.validation.forEach(Z=>{var Ge,Ne,mt,oe,Me,Nt,de,$e,ge,Ke,_e,it;u?(mt=(Ne=(Ge=exports.schema.properties)==null?void 0:Ge[u])==null?void 0:Ne.items)!=null&&mt.properties&&((de=(Nt=(Me=(oe=exports.schema.properties)==null?void 0:oe[u])==null?void 0:Me.items)==null?void 0:Nt.properties)!=null&&de[i.name]||(exports.schema.properties[u].items.properties[i.name]={},i.type==="Select"||(($e=i.value)==null?void 0:$e.length)>0?exports.schema.properties[u].items.properties[i.name]={oneOf:i.value.map(qe=>({const:qe.value,title:qe.label}))}:(i.type==="MultipleSelect"||((ge=i.value)==null?void 0:ge.length)>0)&&(exports.schema.properties[u].items.properties[i.name]={items:{oneOf:i.value.map(qe=>({const:qe.value,title:qe.label}))}})),Z.validationType==="required"?(it=(_e=(Ke=exports.schema.properties)==null?void 0:Ke[u])==null?void 0:_e.items)==null||it.required.push(i.name):(exports.schema.properties[u].items.properties[i.name].type="string",exports.schema.properties[u].items.properties[i.name][Z.validationType]=isNaN(Z.validationValue)?Z.validationValue:Number(Z.validationValue))):(exports.schema.properties[i.name]||(exports.schema.properties[i.name]={}),Z.validationType==="required"?exports.schema.required.push(i.name):(exports.schema.properties[i.name].type="string",exports.schema.properties[i.name][Z.validationType]=isNaN(Z.validationValue)?Z.validationValue:Number(Z.validationValue)))})}const buildSchema=(i,u,r)=>(buildRule(i,u,r),i!=null&&i.elements&&(i.type=="Table"||i.type=="Array"?(exports.schema.properties[i.name]||(exports.schema.properties[i.name]={type:"array",items:{type:"object",properties:{},required:[]}}),i.elements.map((g,y)=>{buildSchema(g,i.name,i.type==="Array")})):i.elements.map((g,y)=>{buildSchema(g)})),exports.schema),buildUiSchema=i=>{let u={};const r=`#/properties/${i.name}`;switch(i.type){case"RunnerBoyProgressBar":u=RunnerBoyProgressbar(i,r);break;case"TabSection":u=buildTabSection(i);break;case"WrapperSection":u=buildWrapperSection(i);break;case"Text":u=buildTextField(i,r);break;case"TextArea":u=buildTextArea(i,r);break;case"Date":u=buildDate(i,r);break;case"Select":u=buildSelect(i,r);break;case"Radio":u=buildRadio(i,r);break;case"Button":u=buildButton(i,r);break;case"Table":u=buildTable(i,r);break;case"Array":u=buildArray(i,r);break;case"LazyLoadingTable":u=buildLazyLoadingTable(i,r);break;case"Box":u=buildLabel(i,r);break;case"CheckBox":u=buildCheckbox(i,r);break;case"UploadFile":u=buildUploadFile(i,r);break;case"DownloadFile":u=buildDownloadFile(i,r);break;case"EmptyBox":u=buildEmptyBox(i);break;case"card":u=buildCard(i);break;case"Graph":switch(i.graphType){case"BarGraph":case"StackBarGraph":u=buildStackbarGraph(i,r);break;case"LineGraph":u=buildLineGraph(i,r);break;case"PieGraph":u=buildPieGraph(i,r);break;case"HorizontalBarGraph":u=buildHorizontalBarGraph(i,r);break}break;case"ProgressBar":u=buildProgressBar(i,r);break;case"SpeedoMeter":u=buildSpeedoMeter(i,r);break;case"ProgressBarCard":u=buildProgressBarCard(i,r);break;case"RankCard":u=buildRankCard(i,r);break;case"Rank":u=buildRollAndDice(i,r);break;case"Slider":u=buildSlider(i,r);break;case"Timer":u=buildTimer(i,r);break;case"MultipleSelect":u=buildMultiSelect(i,r);break;case"LeaderBoard":u=buildLeaderBoard(i);break;default:exports.schema={type:"object",properties:{},required:[]},u=buildBasicUiSchema(i)}if(i!=null&&i.elements){if((i==null?void 0:i.type)==="LeaderBoard")return u;i.type=="Table"?u.elements=i.elements.map((g,y)=>g.type?{accessorKey:g.name,header:g.label||g.name,widget:buildUiSchema(g)}:{accessorKey:g.name,header:g.label||g.name}):i.type=="Array"?u.options.detail.elements=i.elements.map((g,y)=>buildUiSchema(g)):u.elements=i.elements.map((g,y)=>buildUiSchema(g))}return u};var pageMaster=i=>{const{store:u,dynamicData:r,config:g,submitHandler:y}=i;return{setPage:async function(){const w=await this.getFormdata();u.setFormdata(w);const S=await this.getUiSchema(),M=await this.getSchema();u.setSchema(M),u.setUiSchema(S)},getFormdata:async function(){var S;(S=u.searchParams)==null||S.get("id");const w=getFormdataFromLocalStorage();return w||(saveFormdataInLocalStorage(g),g)},getUiSchema:async function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),u.navigate("/PageMasterRecords")},onAddClickHandler:async function(){var M;const w=(M=u.searchParams)==null?void 0:M.get("id");Array.isArray(u.formData.elements)||(u.formData.elements=[]);const S=saveFormdataInLocalStorage(u.formData);u.navigate(`/Component?path=${`elements[${S==null?void 0:S.elements.length}]`}&id=${w}`)},submitPageHandler:async function(){console.log(exports.schema),y(u,i.service).then(w=>{localStorage.removeItem("pageFormdata"),u.navigate(-1),u.setNotify({SuccessMessage:"Submit Successfully",Success:!0})})},Edit_Components:Component(u,r).editComponents,Delete_Components:Component(u,r).deleteComponents,eventAddHandler:async function(){var M;const w=(M=u.searchParams)==null?void 0:M.get("id");Array.isArray(u.formData.events)||(u.formData.events=[]),saveFormdataInLocalStorage(u.formData);const S=`events[${u.formData.events.length}]`;u.navigate(`/ComponentEvents?path=${S}&id=${w}`)},editEvent:async function(){var ie;const w=r.path.split(".")[1],S=(ie=u.searchParams)==null?void 0:ie.get("id");saveFormdataInLocalStorage(u.formData);const M=`events[${w}]`;u.navigate(`/ComponentEvents?path=${M}&id=${S}`)},deleteEvent:async function(){const w=r.path.split(".")[1];u.formData.events.splice(w,1);const S=saveFormdataInLocalStorage(u.formData);u.setFormdata(S)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},eventType:{type:"string",oneOf:[{title:"Click Event",const:"onClick"},{title:"onStart",const:"onStart"},{title:"Load Event",const:"onLoad"},{title:"Change Event",const:"onChange"},{title:"Success",const:"Success"},{title:"Fail",const:"Fail"}]},Handler:{type:"string",oneOf:[{title:"Custom",const:"custom"},{title:"Api",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}]},inBuiltFunctionType:{type:"string",oneOf:[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"}]},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"}}},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"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/headers",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},{type:"Control",scope:"#/properties/body",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}}]};var event=(i,u)=>({setPage:async function(){const r=await this.getFormData();i.setFormdata(r);const g=await this.getSchema();i.setSchema(g),this.refreshPage(r.Handler,i)},refreshPage:(r,g)=>{const y=_.cloneDeep(EventUiSchema);r&&(r==="custom"?y.elements[1].elements[0].elements[2]=getTextArea("eventCode","Write Custom Code",!1):r==="api"?y.elements[1].elements[0].elements[2]=APISection:r==="inBuiltFunction"?(y.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name",[{label:"RankProvider",value:"RankProvider"},{label:"Download File",value:"downloadFile"}]),y.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6})):r==="refresh"&&(y.elements[1].elements[0].elements[2]=refreshSectionUiSchema)),g.setUiSchema(y)},getFormData:Component(i,u).getFormdata,getUiSchema:async function(){return EventUiSchema},getSchema:async()=>EventSchema,onChange:function(){var r,g,y;((r=i==null?void 0:i.formData)==null?void 0:r.Handler)!==((g=i==null?void 0:i.newData)==null?void 0:g.Handler)&&((y=i==null?void 0:i.newData)==null?void 0:y.Handler)!==void 0&&this.refreshPage(i.newData.Handler||i.formdata.Handler,i)},saveHandler:Component(i,u).saveHandler,addEvent:async function(){var y,w,S;const r=(y=i.searchParams)==null?void 0:y.get("path");Array.isArray(i.formData.events)||(i.formData.events=[]),saveFormdataInLocalStorage(i.formData,r);const g=`${r}.events[${(S=(w=i.formData)==null?void 0:w.events)==null?void 0:S.length}]`;i.searchParams.set("path",g),i.setSearchParams(i.searchParams),this.setPage()},editEvent:async function(){var w;const r=u.path.split(".")[1],g=(w=i.searchParams)==null?void 0:w.get("path");saveFormdataInLocalStorage(i.formData,g);const y=`${g}.events[${r}]`;i.searchParams.set("path",y),i.setSearchParams(i.searchParams),this.setPage()},deleteEvent:Component(i,u).deleteEvent,backHandler:function(){i.navigate(-1)}});const downloadFile=i=>{const u=i.name.split("."),r=i.data,g=window.atob(r);let y;y=new File([g],u[u.length-1]);const w=URL.createObjectURL(y),S=document.createElement("a");S.href=u[u.length-1]==="pdf"?"data:application/octet-stream;base64,"+r:w,S.download=`${i.name}`,document.body.appendChild(S),S.click(),URL.revokeObjectURL(w),document.body.removeChild(S)},executeEvents=async i=>{var g,y,w;let u=[],r=null;try{if(!shouldEventExecute(i))return{response:void 0,events:void 0};r=await executeEventsHandler(i);const M=(g=i.config)==null?void 0:g.events.filter(ie=>ie.eventType==="Success");if(i.config.returnNeeded)return r;u=M}catch{const M=(w=(y=i.config)==null?void 0:y.events)==null?void 0:w.filter(rt=>rt.eventType==="Fail");u=(M==null?void 0:M.length)>0?M:[]}if((u==null?void 0:u.length)>0)for(const S of u)await executeEvents({...i,config:S,parentEventOutput:r});return r};async function executeEventsHandler(i){if(i.config.Handler==="api")return await executeApiEventHandler(i);if(i.config.Handler==="inBuiltFunction")return await executeInBuiltFunctionHandler(i);if(i.config.Handler==="custom")return await executeCustomHandler(i);if(i.config.Handler==="refresh")return await executeRefreshHandler(i);if(i.config.Handler==="mergeFormdata")return await mergeFormdata(i.parentEventOutput,i.componentName,i.config,i.store)}async function executeRefreshHandler(i){const u=getRefreshElements(i.config,i.eventGroups);for(const r of u)for(const g of i.eventGroups.onLoad[r])await executeEvents({...i,config:g,componentName:r})}async function executeApiEventHandler(i){var S;const u={...(S=i.userValue)==null?void 0:S.payload},r={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},{body:g,headers:y}=await buildApiPayload(i.config,u,r,i.store,i.dynamicData,i.userValue,i.service);return await i.service[i.config.method](i.config.path,g,y&&{headers:y})}async function executeInBuiltFunctionHandler(params){let parameter={};if(params.config.funcParametersCode){const makeFunc=eval(params.config.funcParametersCode);parameter=makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service)}params.serviceHolder[params.config.inBuiltFunctionType](parameter)}async function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode),response=await makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName);return response}async function mergeFormdata(i,u,r,g){r.type==="Select"&&!(_.isEmpty(i==null?void 0:i.data)&&(i==null?void 0:i.data))?g.setSchema(y=>{var w;return{...y,properties:{...y.properties,[u]:{...(w=y.properties)==null?void 0:w[u],oneOf:i.data}}}}):r.type==="MultipleSelect"&&!(_.isEmpty(i==null?void 0:i.data)&&(i==null?void 0:i.data))?g.setSchema(y=>{var w;return{...y,properties:{...y.properties,[u]:{...(w=y.properties)==null?void 0:w[u],type:"array",items:{oneOf:i.data}}}}}):r.type==="page"?g.setFormdata(y=>({...y,...i==null?void 0:i.data})):i&&g.setFormdata(y=>({...y,[u]:i.data}))}const buildBodyFormat=(i,u,r)=>{const g={...r==null?void 0:r.payload};return i.map(y=>{var w,S;if(typeof(y==null?void 0:y.value)!="string")g[y.key]=y.value;else if((w=y==null?void 0:y.value)!=null&&w.startsWith("$userValue")){const M=y.value.substring(11);g[y.key]=_.get(r,M)}else if((S=y==null?void 0:y.value)!=null&&S.startsWith("$")){const M=y.value.substring(1);g[y.key]=_.get(u,M)}else g[y.key]=y.value}),g},buildHeadersFormat=i=>{const u={"X-Requested-With":"XMLHttpRequest"};return i.map(r=>{u[r.key]=r.value}),u};async function shouldEventExecute(i){var r,g;const u=(g=(r=i.config)==null?void 0:r.events)==null?void 0:g.filter(y=>y.eventType==="onStart");if((u==null?void 0:u.length)>0)return await executeEventsHandler({...i,config:u[0]})}async function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var i,u;if(compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((u=(i=store==null?void 0:store.ctx)==null?void 0:i.core)==null?void 0:u.data)||store.formData,userValue)}),compConfig.apiBody){const makeFunc=eval(compConfig.apiBody),data=await makeFunc(store,dynamicData,userValue,body);body=data}return{body,headers}}function getRefreshElements(i,u){var g;let r=[];return((g=i==null?void 0:i.refreshElements)==null?void 0:g.length)>0?r=i.refreshElements.map(y=>y.value):u!=null&&u.onLoad&&(r=Object.keys(u==null?void 0:u.onLoad),r.push(r[0])),console.log(r),r}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},extractEvents=i=>{function u(r){r.events&&r.events.forEach(g=>{var w;r.type&&(compType=r.type),eventGroups[g.eventType]||(eventGroups[g.eventType]={}),eventGroups[g.eventType][r.name]||(eventGroups[g.eventType][r.name]=[]),!((w=g==null?void 0:g.events)==null?void 0:w.find(S=>S.eventType==="Success"))&&g.eventType==="onLoad"&&g.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType}),eventGroups[g.eventType][r.name].push({...g,type:compType})})}return u(i),i!=null&&i.elements&&i.elements.forEach(extractEvents),eventGroups};var service=i=>{eventGroups={},eventGroups=extractEvents(i.config);let u={config:{},componentName:"",store:i.store,dynamicData:i.dynamicData,userValue:i.userValue,service:i.service,serviceHolder:void 0,eventGroups};return{setPage:async function(){i.store.setFormdata({}),u={config:{},componentName:"",store:i.store,dynamicData:i.dynamicData,userValue:i.userValue,service:i.service,serviceHolder:this,eventGroups},await executeRefreshHandler(u),i.store.setSchema(r=>({...i.schema,properties:{...i.schema.properties,...r.properties}})),i.uiSchema.elements.push(notifyUiSchema),i.store.setUiSchema(i.uiSchema)},onClick:async function(){var g;const r=((g=i.dynamicData)==null?void 0:g.tableButtonPath)||i.dynamicData.path.split(".")[0];for(const y of eventGroups==null?void 0:eventGroups.onClick[r])await executeEvents({...u,config:y,componentName:r})},onPaginationChange:async function(r){var y;const g=[{key:"size",value:r.pagination.pageSize},{key:"pageIndex",value:r.pagination.pageIndex},{key:"sorting",value:r.sorting||[]},{key:"filters",value:r.columnFilters||[]},{key:"globalFilter",value:(y=r.globalFilter)!=null?y:""}];return await this.updateConfigApiBody(r,g)},getSelectOptions:async function(r){if(r.serachValue!==""&&r.serachValue!==void 0){const g=[{key:"searchValue",value:r.serachValue},{key:"currentValue",value:r.currentValue}];return await this.updateConfigApiBody(r,g)}},onChange:async function(){if(eventGroups.onChange){const r=Object.keys(eventGroups.onChange);Promise.all(r.map(async g=>{var y,w;if(((y=i.store)==null?void 0:y.formData[g])!==i.store.newData[g]&&((w=i.store)==null?void 0:w.newData[g])!==void 0)for(const S of eventGroups.onChange[g])await executeEvents({...u,config:S,componentName:g})}))}},updateConfigApiBody:async function(r,g){var w;let y;for(const S of eventGroups==null?void 0:eventGroups.onLoad[r.path]){S.body?S.body=[...S.body,...g]:S.body=g;const M=(w=S==null?void 0:S.events)==null?void 0:w.filter(ie=>ie.Handler!=="mergeFormdata");S.events=M!=null?M:[],y=await executeEvents({...u,config:S,componentName:r.path})}return y},downloadFile}},clearLocalStorage=()=>{localStorage.removeItem("pageFormdata")};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,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 W(s,I+"return "+x).apply(r,p)});if(D.source=x,mi(D))throw D;return D}function ug(e){return z(e).toLowerCase()}function pg(e){return z(e).toUpperCase()}function cg(e,t,n){if(e=z(e),e&&(n||t===r))return co(e);if(!e||!(t=ye(t)))return e;var o=De(e),a=De(t),s=fo(o,a),p=go(o,a)+1;return dt(o,s,p).join("")}function fg(e,t,n){if(e=z(e),e&&(n||t===r))return e.slice(0,mo(e)+1);if(!e||!(t=ye(t)))return e;var o=De(e),a=go(o,De(t))+1;return dt(o,0,a).join("")}function dg(e,t,n){if(e=z(e),e&&(n||t===r))return e.replace(mr,"");if(!e||!(t=ye(t)))return e;var o=De(e),a=fo(o,De(t));return dt(o,a).join("")}function gg(e,t){var n=al,o=ll;if(q(t)){var a="separator"in t?t.separator:a;n="length"in t?E(t.length):n,o="omission"in t?ye(t.omission):o}e=z(e);var s=e.length;if(Rt(e)){var p=De(e);s=p.length}if(n>=s)return e;var c=n-Et(o);if(c<1)return o;var d=p?dt(p,0,c).join(""):e.slice(0,c);if(a===r)return d+o;if(p&&(c+=d.length-c),yi(a)){if(e.slice(c).search(a)){var v,b=d;for(a.global||(a=Dr(a.source,z(Di.exec(a))+"g")),a.lastIndex=0;v=a.exec(b);)var x=v.index;d=d.slice(0,x===r?c:x)}}else if(e.indexOf(ye(a),c)!=c){var C=d.lastIndexOf(a);C>-1&&(d=d.slice(0,C))}return d+o}function hg(e){return e=z(e),e&&Ll.test(e)?e.replace(Fi,Ns):e}var mg=Wt(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),xi=ia("toUpperCase");function nl(e,t,n){return e=z(e),t=n?r:t,t===r?Os(e)?qs(e):Ts(e):e.match(t)||[]}var rl=P(function(e,t){try{return he(e,r,t)}catch(n){return mi(n)?n:new F(n)}}),yg=Qe(function(e,t){return we(t,function(n){n=Ue(n),Ze(e,n,gi(e[n],e))}),e});function vg(e){var t=e==null?0:e.length,n=A();return e=t?K(e,function(o){if(typeof o[1]!="function")throw new Ce(S);return[n(o[0]),o[1]]}):[],P(function(o){for(var a=-1;++a<t;){var s=e[a];if(he(s[0],this,o))return he(s[1],this,o)}})}function bg(e){return Nu(Ie(e,Fe))}function _i(e){return function(){return e}}function xg(e,t){return e==null||e!==e?t:e}var _g=aa(),Sg=aa(!0);function fe(e){return e}function Si(e){return Ho(typeof e=="function"?e:Ie(e,Fe))}function wg(e){return Oo(Ie(e,Fe))}function Cg(e,t){return Wo(e,Ie(t,Fe))}var Lg=P(function(e,t){return function(n){return an(n,e,t)}}),Ig=P(function(e,t){return function(n){return an(e,n,t)}});function wi(e,t,n){var o=j(t),a=zn(t,o);n==null&&!(q(t)&&(a.length||!o.length))&&(n=t,t=e,e=this,a=zn(t,j(t)));var s=!(q(n)&&"chain"in n)||!!n.chain,p=et(e);return we(a,function(c){var d=t[c];e[c]=d,p&&(e.prototype[c]=function(){var v=this.__chain__;if(s||v){var b=e(this.__wrapped__),x=b.__actions__=ue(this.__actions__);return x.push({func:d,args:arguments,thisArg:e}),b.__chain__=v,b}return d.apply(e,lt([this.value()],arguments))})}),e}function Ag(){return ee._===this&&(ee._=Qs),this}function Ci(){}function Bg(e){return e=E(e),P(function(t){return zo(t,e)})}var Tg=ti(K),Fg=ti(ao),Rg=ti(Ir);function il(e){return si(e)?Ar(Ue(e)):ap(e)}function Eg(e){return function(t){return e==null?r:wt(e,t)}}var Dg=sa(),Pg=sa(!0);function Li(){return[]}function Ii(){return!1}function kg(){return{}}function Hg(){return""}function Mg(){return!0}function Og(e,t){if(e=E(e),e<1||e>ot)return[];var n=Oe,o=ne(e,Oe);t=A(t),e-=Oe;for(var a=Fr(o,t);++n<e;)t(n);return a}function Wg(e){return R(e)?K(e,Ue):ve(e)?[e]:ue(Ca(z(e)))}function zg(e){var t=++Zs;return z(e)+t}var Ug=qn(function(e,t){return e+t},0),Gg=ni("ceil"),Ng=qn(function(e,t){return e/t},1),$g=ni("floor");function Kg(e){return e&&e.length?Wn(e,fe,Ur):r}function qg(e,t){return e&&e.length?Wn(e,A(t,2),Ur):r}function Vg(e){return uo(e,fe)}function Yg(e,t){return uo(e,A(t,2))}function Jg(e){return e&&e.length?Wn(e,fe,Kr):r}function Zg(e,t){return e&&e.length?Wn(e,A(t,2),Kr):r}var Xg=qn(function(e,t){return e*t},1),Qg=ni("round"),jg=qn(function(e,t){return e-t},0);function eh(e){return e&&e.length?Tr(e,fe):0}function th(e,t){return e&&e.length?Tr(e,A(t,2)):0}return l.after=wf,l.ary=ka,l.assign=pd,l.assignIn=Ja,l.assignInWith=or,l.assignWith=cd,l.at=fd,l.before=Ha,l.bind=gi,l.bindAll=yg,l.bindKey=Ma,l.castArray=kf,l.chain=Ea,l.chunk=Np,l.compact=$p,l.concat=Kp,l.cond=vg,l.conforms=bg,l.constant=_i,l.countBy=jc,l.create=dd,l.curry=Oa,l.curryRight=Wa,l.debounce=za,l.defaults=gd,l.defaultsDeep=hd,l.defer=Cf,l.delay=Lf,l.difference=qp,l.differenceBy=Vp,l.differenceWith=Yp,l.drop=Jp,l.dropRight=Zp,l.dropRightWhile=Xp,l.dropWhile=Qp,l.fill=jp,l.filter=tf,l.flatMap=of,l.flatMapDeep=af,l.flatMapDepth=lf,l.flatten=Ba,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=If,l.flow=_g,l.flowRight=Sg,l.fromPairs=nc,l.functions=Sd,l.functionsIn=wd,l.groupBy=sf,l.initial=ic,l.intersection=oc,l.intersectionBy=ac,l.intersectionWith=lc,l.invert=Ld,l.invertBy=Id,l.invokeMap=pf,l.iteratee=Si,l.keyBy=cf,l.keys=j,l.keysIn=ce,l.map=jn,l.mapKeys=Bd,l.mapValues=Td,l.matches=wg,l.matchesProperty=Cg,l.memoize=tr,l.merge=Fd,l.mergeWith=Za,l.method=Lg,l.methodOf=Ig,l.mixin=wi,l.negate=nr,l.nthArg=Bg,l.omit=Rd,l.omitBy=Ed,l.once=Af,l.orderBy=ff,l.over=Tg,l.overArgs=Bf,l.overEvery=Fg,l.overSome=Rg,l.partial=hi,l.partialRight=Ua,l.partition=df,l.pick=Dd,l.pickBy=Xa,l.property=il,l.propertyOf=Eg,l.pull=cc,l.pullAll=Fa,l.pullAllBy=fc,l.pullAllWith=dc,l.pullAt=gc,l.range=Dg,l.rangeRight=Pg,l.rearg=Tf,l.reject=mf,l.remove=hc,l.rest=Ff,l.reverse=fi,l.sampleSize=vf,l.set=kd,l.setWith=Hd,l.shuffle=bf,l.slice=mc,l.sortBy=Sf,l.sortedUniq=wc,l.sortedUniqBy=Cc,l.split=og,l.spread=Rf,l.tail=Lc,l.take=Ic,l.takeRight=Ac,l.takeRightWhile=Bc,l.takeWhile=Tc,l.tap=$c,l.throttle=Ef,l.thru=Qn,l.toArray=qa,l.toPairs=Qa,l.toPairsIn=ja,l.toPath=Wg,l.toPlainObject=Ya,l.transform=Md,l.unary=Df,l.union=Fc,l.unionBy=Rc,l.unionWith=Ec,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=kc,l.unset=Od,l.unzip=di,l.unzipWith=Ra,l.update=Wd,l.updateWith=zd,l.values=Gt,l.valuesIn=Ud,l.without=Hc,l.words=nl,l.wrap=Pf,l.xor=Mc,l.xorBy=Oc,l.xorWith=Wc,l.zip=zc,l.zipObject=Uc,l.zipObjectDeep=Gc,l.zipWith=Nc,l.entries=Qa,l.entriesIn=ja,l.extend=Ja,l.extendWith=or,wi(l,l),l.add=Ug,l.attempt=rl,l.camelCase=Kd,l.capitalize=el,l.ceil=Gg,l.clamp=Gd,l.clone=Hf,l.cloneDeep=Of,l.cloneDeepWith=Wf,l.cloneWith=Mf,l.conformsTo=zf,l.deburr=tl,l.defaultTo=xg,l.divide=Ng,l.endsWith=qd,l.eq=ke,l.escape=Vd,l.escapeRegExp=Yd,l.every=ef,l.find=nf,l.findIndex=Ia,l.findKey=md,l.findLast=rf,l.findLastIndex=Aa,l.findLastKey=yd,l.floor=$g,l.forEach=Da,l.forEachRight=Pa,l.forIn=vd,l.forInRight=bd,l.forOwn=xd,l.forOwnRight=_d,l.get=vi,l.gt=Uf,l.gte=Gf,l.has=Cd,l.hasIn=bi,l.head=Ta,l.identity=fe,l.includes=uf,l.indexOf=rc,l.inRange=Nd,l.invoke=Ad,l.isArguments=It,l.isArray=R,l.isArrayBuffer=Nf,l.isArrayLike=pe,l.isArrayLikeObject=Y,l.isBoolean=$f,l.isBuffer=gt,l.isDate=Kf,l.isElement=qf,l.isEmpty=Vf,l.isEqual=Yf,l.isEqualWith=Jf,l.isError=mi,l.isFinite=Zf,l.isFunction=et,l.isInteger=Ga,l.isLength=rr,l.isMap=Na,l.isMatch=Xf,l.isMatchWith=Qf,l.isNaN=jf,l.isNative=ed,l.isNil=nd,l.isNull=td,l.isNumber=$a,l.isObject=q,l.isObjectLike=V,l.isPlainObject=fn,l.isRegExp=yi,l.isSafeInteger=rd,l.isSet=Ka,l.isString=ir,l.isSymbol=ve,l.isTypedArray=Ut,l.isUndefined=id,l.isWeakMap=od,l.isWeakSet=ad,l.join=sc,l.kebabCase=Jd,l.last=Be,l.lastIndexOf=uc,l.lowerCase=Zd,l.lowerFirst=Xd,l.lt=ld,l.lte=sd,l.max=Kg,l.maxBy=qg,l.mean=Vg,l.meanBy=Yg,l.min=Jg,l.minBy=Zg,l.stubArray=Li,l.stubFalse=Ii,l.stubObject=kg,l.stubString=Hg,l.stubTrue=Mg,l.multiply=Xg,l.nth=pc,l.noConflict=Ag,l.noop=Ci,l.now=er,l.pad=Qd,l.padEnd=jd,l.padStart=eg,l.parseInt=tg,l.random=$d,l.reduce=gf,l.reduceRight=hf,l.repeat=ng,l.replace=rg,l.result=Pd,l.round=Qg,l.runInContext=f,l.sample=yf,l.size=xf,l.snakeCase=ig,l.some=_f,l.sortedIndex=yc,l.sortedIndexBy=vc,l.sortedIndexOf=bc,l.sortedLastIndex=xc,l.sortedLastIndexBy=_c,l.sortedLastIndexOf=Sc,l.startCase=ag,l.startsWith=lg,l.subtract=jg,l.sum=eh,l.sumBy=th,l.template=sg,l.times=Og,l.toFinite=tt,l.toInteger=E,l.toLength=Va,l.toLower=ug,l.toNumber=Te,l.toSafeInteger=ud,l.toString=z,l.toUpper=pg,l.trim=cg,l.trimEnd=fg,l.trimStart=dg,l.truncate=gg,l.unescape=hg,l.uniqueId=zg,l.upperCase=mg,l.upperFirst=xi,l.each=Da,l.eachRight=Pa,l.first=Ta,wi(l,function(){var e={};return We(l,function(t,n){U.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=g,we(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),we(["drop","take"],function(e,t){H.prototype[e]=function(n){n=n===r?1:Q(E(n),0);var o=this.__filtered__&&!t?new H(this):this.clone();return o.__filtered__?o.__takeCount__=ne(n,o.__takeCount__):o.__views__.push({size:ne(n,Oe),type:e+(o.__dir__<0?"Right":"")}),o},H.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),we(["filter","map","takeWhile"],function(e,t){var n=t+1,o=n==Ai||n==cl;H.prototype[e]=function(a){var s=this.clone();return s.__iteratees__.push({iteratee:A(a,3),type:n}),s.__filtered__=s.__filtered__||o,s}}),we(["head","last"],function(e,t){var n="take"+(t?"Right":"");H.prototype[e]=function(){return this[n](1).value()[0]}}),we(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");H.prototype[e]=function(){return this.__filtered__?new H(this):this[n](1)}}),H.prototype.compact=function(){return this.filter(fe)},H.prototype.find=function(e){return this.filter(e).head()},H.prototype.findLast=function(e){return this.reverse().find(e)},H.prototype.invokeMap=P(function(e,t){return typeof e=="function"?new H(this):this.map(function(n){return an(n,e,t)})}),H.prototype.reject=function(e){return this.filter(nr(A(e)))},H.prototype.slice=function(e,t){e=E(e);var n=this;return n.__filtered__&&(e>0||t<0)?new H(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=E(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},H.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},H.prototype.toArray=function(){return this.take(Oe)},We(H.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),a=l[o?"take"+(t=="last"?"Right":""):t],s=o||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,c=o?[1]:arguments,d=p instanceof H,v=c[0],b=d||R(p),x=function(k){var M=a.apply(l,lt([k],c));return o&&C?M[0]:M};b&&n&&typeof v=="function"&&v.length!=1&&(d=b=!1);var C=this.__chain__,I=!!this.__actions__.length,B=s&&!C,D=d&&!I;if(!s&&b){p=D?p:new H(this);var T=e.apply(p,c);return T.__actions__.push({func:Qn,args:[x],thisArg:r}),new Le(T,C)}return B&&D?e.apply(this,c):(T=this.thru(x),B?o?T.value()[0]:T.value():T)})}),we(["pop","push","shift","sort","splice","unshift"],function(e){var t=Cn[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",o=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(o&&!this.__chain__){var s=this.value();return t.apply(R(s)?s:[],a)}return this[n](function(p){return t.apply(R(p)?p:[],a)})}}),We(H.prototype,function(e,t){var n=l[t];if(n){var o=n.name+"";U.call(Ht,o)||(Ht[o]=[]),Ht[o].push({name:t,func:n})}}),Ht[Kn(r,Me).name]=[{name:"wrapper",func:r}],H.prototype.clone=gu,H.prototype.reverse=hu,H.prototype.value=mu,l.prototype.at=Kc,l.prototype.chain=qc,l.prototype.commit=Vc,l.prototype.next=Yc,l.prototype.plant=Zc,l.prototype.reverse=Xc,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qc,l.prototype.first=l.prototype.head,Qt&&(l.prototype[Qt]=Jc),l},Dt=Vs();vt?((vt.exports=Dt)._=Dt,Sr._=Dt):ee._=Dt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{type:{type:"string",oneOf:[{title:"Select",const:"Select"},{title:"Date",const:"Date"},{title:"CheckBox",const:"CheckBox"},{title:"Table",const:"Table"},{title:"Lazy Loading Table",const:"LazyLoadingTable"},{title:"Array",const:"Array"},{title:"Container",const:"WrapperSection"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Text Area",const:"TextArea"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{title:"Radio",const:"Radio"},{title:"Rank",const:"Rank"},{title:"SpeedoMeter",const:"SpeedoMeter"},{title:"ProgressBar",const:"ProgressBar"},{title:"Graph",const:"Graph"},{title:"Label",const:"Box"},{title:"Upload File",const:"UploadFile"},{title:"Download File",const:"DownloadFile"},{title:"Empty Box",const:"EmptyBox"},{title:"ProgressBar Card",const:"ProgressBarCard"},{title:"Rank Card",const:"RankCard"},{title:"Runner Boy Progress Bar",const:"RunnerBoyProgressBar"},{title:"Slider",const:"Slider"},{title:"Timer",const:"Timer"},{title:"MultipleSelect",const:"MultipleSelect"},{title:"LeaderBoard",const:"LeaderBoard"}]},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},layout:{type:"array",items:{type:"object",properties:{key:{type:"string",oneOf:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]},value:{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"}}}},legendLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},pieArcColors:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},validation:{type:"array",items:{type:"object",properties:{componentName:{type:"string"},validationType:{type:"string",oneOf:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]},validationValue:{type:"string"}}}},buttonType:{type:"string",oneOf:[{title:"Button With Text",const:"Button"},{title:"Button With Icon",const:"IconButton"},{title:"Button With Icon and Text",const:"ButtonWithIconAndText"}]},defaultStyle:{type:"string",oneOf:[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]},graphType:{type:"string",oneOf:[{title:"Bar Graph",const:"BarGraph"},{title:"Stack Bar Graph",const:"StackBarGraph"},{title:"Line Graph",const:"LineGraph"},{title:"Pie Graph",const:"PieGraph"},{title:"Horizontal Bar Graph",const:"HorizontalBarGraph"}]}}},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:"Lazy Loading Table",value:"LazyLoadingTable"},{label:"Array",value:"Array"},{label:"Container",value:"WrapperSection"},{label:"Tabs",value:"TabSection"},{label:"Text",value:"Text"},{label:"Radio",value:"Radio"},{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"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",options:[{label:"3",value:"3"},{label:"5.5",value:"5.5"},{label:"8",value:"8"},{label:"12",value:"12"}]}}}]}}}]}]},{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=i=>{const u=_.cloneDeep(i);let r={};return u.pageName&&delete u.pageName,u.eventsSelected&&delete u.eventsSelected,(u.type==="Table"||u.type==="WrapperSection"||u.type==="TabSection")&&(r.elements=u.elements||[],u.elements&&delete u.elements),r.events=u.events||[],u.events&&delete u.events,r={...u,...r},r};const createLayoutFormat=i=>{let u={};return i.map(r=>{u[r.key]=+r.value}),u},flatObjectValueInArray=i=>{const u=Object.keys(i[0])[0];return i.map(g=>g[u])},getNavigationHistory=(i,u)=>{if(u){let r=i.name;const g=u.split("."),y=[];return g.map((w,S)=>{if(S===0){y.push(w);return}y.push(`${y[S-1]}.${w}`)}),y.map(w=>{const S=_.get(i,w);S?r=r+` > ${(S==null?void 0:S.name)||(S==null?void 0:S.eventType)}`:r=r+" > NewComponent"}),{pageName:r}}},saveFormdataInLocalStorage=(i,u)=>{let r;if(u){const g=getFormdataFromLocalStorage();r=_.set(g,u,buildConfig(i))}else r=buildConfig(i);return localStorage.setItem("pageFormdata",JSON.stringify(r)),r},getFormdataFromLocalStorage=i=>{const u=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let r;return i&&(r=_.get(u,i),r={...r,...getNavigationHistory(u,i)}),r||(r=getNavigationHistory(u,i)),r||u},CoreSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type",type:"text"}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name"}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label"}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}}]},OptionArray={type:"Control",scope:"#/properties/value",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/label",options:{widget:"SelectInputField"},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"}}}}]}]}]},EmptyBox={type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}},getArrayControl=(i,u,r)=>({type:"Control",scope:`#/properties/${i}`,layout:11.5,options:{elementLabelProp:u,detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:`#/properties/${u}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:r||"Labels for Tab"}}}]}}}),getInputField=(i,u)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u}}}),getRadioInputField=(i,u,r)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,options:r}}}),getTextArea=(i,u,r,g)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"TextArea"},config:{layout:g||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:u,minRows:8,hideButton:r}}}),getSelectField=(i,u,r)=>({type:"Control",scope:`#/properties/${i}`,options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,type:"text",options:r}}}),GraphSection={type:"HorizontalLayout",elements:[]},buildPropertiesSection=function(i){let u=_.cloneDeep(GraphSection);if(i==="SpeedoMeter")u.elements=[getInputField("segments","Segments Count"),getInputField("heading","Container Heading"),getInputField("heading","Container Heading"),getInputField("speedoCaption","Speedometer Caption"),getInputField("width","Speedometer Width")];else if(i==="RankCard")u.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];else if(i==="LeaderBoard")u.elements=[getInputField("valueLabel","Value Label"),getInputField("firstImage","First Image url"),getInputField("secondImage","Second Image url"),getInputField("thirdImage","Third Image url"),getTextArea("functionCode","Write Compare Code",!1)];else if(i==="CardSlider"){const r=getInputField("heading","Heading"),g=getInputField("iconName","Icon Name");u.elements=[r,g]}else if(i==="ProgressBar"||i==="ProgressBarCard"){const r=getInputField("heading","Heading"),g=getInputField("bottomLabel_1","First BottomLabel"),y=getInputField("bottomLabel_2","Second BottomLabel"),w=getInputField("bottomLabel_3","Third BottomLabel");u.elements=[r,g,y,w]}else if(i==="card")u.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description")];else if(i==="Button"){const r=getInputField("color","Color"),g=getInputField("size","Size"),y=getInputField("iconName","Icon Name");u.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"}]),y,g,r,getSelectField("defaultStyle","Default Style",[{label:"Apply Default Style",value:"true"},{label:"No Style",value:"false"}]),JSON.parse(JSON.stringify(EmptyBox))]}else if(i==="Graph"){const r=getInputField("height","Height"),g=getInputField("heading","Heading"),y=getInputField("leftLabel","Left Label"),w=getInputField("bottomLabel","Bottom Label"),S=getRadioInputField("legendHide","Legend Hide",["YES","No"]);u.elements=[g,r,getSelectField("graphType","Graph Type",[{label:"Bar Graph",value:"BarGraph"},{label:"Stack Bar Graph",value:"StackBarGraph"},{label:"Line Graph",value:"LineGraph"},{label:"Pie Graph",value:"PieGraph"},{label:"Horizontal Bar Graph",value:"HorizontalBarGraph"}]),y,w,S,getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")]}else i==="WrapperSection"?u.elements=[getRadioInputField("divider","Divider",["YES","No"]),EmptyBox]:i==="TabSection"?u.elements=[getArrayControl("sectionLabels","label")]:i==="Table"||i==="LazyLoadingTable"?u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("SelectionAvailable","Selection Available",["YES","NO"]),getRadioInputField("ColumnResizingAvailable","ColumnResizing Available",["YES","NO"]),getRadioInputField("DragAvailable","Drag Available",["YES","NO"]),getInputField("selectKey","Selection Key"),EmptyBox]:i==="Radio"?u.elements=[getArrayControl("sectionLabels","label","Options Of Radio")]:i==="Select"?u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),getRadioInputField("freeSolo","FreeSolo",["YES","NO"])]:i==="MultipleSelect"&&(u.elements=[getRadioInputField("lazyLoading","Lazy Loading",["YES","NO"]),EmptyBox]);return u},StyleSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/style",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:12,lg:12},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:"JSON Style",minRows:8,hideButton:!0}}}]},TableSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Components Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"widgetAddClickHandler",tooltipMessage:"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]},ValidationSection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validation",layout:11.5,options:{elementLabelProp:"validationType",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/validationType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Type"}}},{type:"Control",scope:"#/properties/validationValue",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Validation Value"}}}]}}}]},sectionLabels={Select:["Core","Properties","Value","style","Event","Validation"],MultipleSelect:["Core","Properties","Value","style","Event","Validation"],Table:["Core","Components","Properties","style","Event","Validation"],LazyLoadingTable:["Core","Components","Properties","style","Event","Validation"],LeaderBoard:["Core","Components","Properties","style","Event","Validation"],WrapperSection:["Core","Components","Properties","style","Validation"],TabSection:["Core","Components","Properties","style","Validation"],SpeedoMeter:["Core","Properties","style","Event","Validation"],card:["Core","Properties","style","Event","Validation"],UploadFile:["Core","style","Event","Validation"],Graph:["Core","Properties","style","Event","Validation"],DownloadFile:["Core","style","Event","Validation"],Box:["Core","style","Event","Validation"],Properties:["Core","Properties","style","Event","Validation"],ProgressBarCard:["Core","Properties","style","Event","Validation"],RankCard:["Core","Properties","style","Event","Validation"],Slider:["Core","Components","Properties","style","Event","Validation"],Timer:["Core","Properties","style","Event","Validation"],Rank:["Core","Properties","style","Event","Validation"],Button:["Core","Properties","style","Event","Validation"],Array:["Core","Components","Validation"],Radio:["Core","Properties","style","Event","Validation"],Text:["Core","Event","Validation"]},refreshPage=(i,u)=>{var g;const r=_.cloneDeep(componentBasicUiSchema);if(i){const y={Core:CoreSection,Value:ValueTab,style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(i),Validation:ValidationSection},w=(g=sectionLabels[i])==null?void 0:g.map(S=>y[S]);r.elements[1].config.main.tabLabels=sectionLabels[i]||["Core","style","Event","Validation"],r.elements[1].elements=w||[CoreSection,StyleSection,EventSection,ValidationSection]}u.setUiSchema(r)};var Component=(i,u)=>({setPage:async function(){const r=await this.getFormdata();i.setFormdata(r);const g=this.getSchema();i.setSchema(g),this.refreshPage(r==null?void 0:r.type,i)},refreshPage,getFormdata:async function(){var g;const r=(g=i.searchParams)==null?void 0:g.get("path");return getFormdataFromLocalStorage(r)},getSchema:function(){return ComponentSchema},saveHandler:async function(){var g;const r=(g=i.searchParams)==null?void 0:g.get("path");saveFormdataInLocalStorage(i.formData,r),i.navigate(-1),i.setNotify({SuccessMessage:"Save Successfully",Success:!0})},onChange:function(){var r,g,y,w;((r=i==null?void 0:i.formData)==null?void 0:r.type)!==((g=i==null?void 0:i.newData)==null?void 0:g.type)&&((y=i==null?void 0:i.newData)==null?void 0:y.type)!==void 0&&this.refreshPage((w=i==null?void 0:i.newData)==null?void 0:w.type,i)},editComponents:async function(){var w,S,O;const r=u.path.split(".")[1],g=(w=i.searchParams)==null?void 0:w.get("path"),y=(S=i.searchParams)==null?void 0:S.get("id");if(saveFormdataInLocalStorage(i.formData,g),g){const rt=`${(O=i.searchParams)==null?void 0:O.get("path")}.elements[${r}]`;i.searchParams.set("path",rt),i.setSearchParams(i.searchParams),this.setPage()}else i.navigate(`/Component?path=${`elements[${r}]`}&id=${y}`)},deleteComponents:async function(){var S;const r=(S=i.searchParams)==null?void 0:S.get("path"),g=u.path.split(".")[1];i.formData.elements.splice(g,1);const y=saveFormdataInLocalStorage(i.formData,r),w=r?_.get(y,r):y;i.setFormdata(w)},deleteEvent:async function(){var w;const r=(w=i.searchParams)==null?void 0:w.get("path"),g=u.path.split(".")[1];i.formData.events.splice(g,1);const y=saveFormdataInLocalStorage(i.formData,r);i.setFormdata(_.get(y,r))},widgetAddClickHandler:async function(){var y;Array.isArray(i.formData.elements)||(i.formData.elements=[]);const r=(y=i.searchParams)==null?void 0:y.get("path");saveFormdataInLocalStorage(i.formData,r);const g=`${r}.elements[${i.formData.elements.length}]`;i.searchParams.set("path",g),i.setSearchParams(i.searchParams),this.setPage()},eventEditHandler:async function(){var S,O;const r=u.path.split(".")[1],g=(S=i.searchParams)==null?void 0:S.get("path"),y=(O=i.searchParams)==null?void 0:O.get("id");saveFormdataInLocalStorage(i.formData,g);const w=`${g}.events[${r}]`;i.navigate(`/ComponentEvents?path=${w}&id=${y}`)},eventAddHandler:async function(){var w,S;const r=(w=i.searchParams)==null?void 0:w.get("path"),g=(S=i.searchParams)==null?void 0:S.get("id");Array.isArray(i.formData.events)||(i.formData.events=[]),saveFormdataInLocalStorage(i.formData,r);const y=`${r}.events[${i.formData.events.length}]`;i.navigate(`/ComponentEvents?path=${y}&id=${g}`)},backHandler:function(){i.navigate(-1)}}),leaderBoard={type:"WrapperLayout",config:{main:{rowSpacing:3,header:!0,label:"LeaderBoard",divider:!0},style:{wrapperStyle:{height:{xs:850,sm:1e3}}},wrapperStyle:{position:"relative",width:"100%"}},elements:[{type:"Control",scope:"#/properties/leaderBoard/properties/firstImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"90px",md:"60px"},left:{xs:"calc(50% - 50px)",sm:"calc(50% - 50px)",md:"calc(50% - 100px)"},width:{xs:"100px",sm:"100px",md:"200px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"100px",sm:"100px",md:"200px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(25% - 45px)",sm:"calc(25% - 45px)",md:"calc(25% - 90px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdImage",config:{main:{url:"https://my.alfred.edu/zoom/_images/foster-lake.jpg"},containerStyle:{objectFit:"cover",position:"absolute",top:{xs:"160px",md:"130px"},left:{xs:"calc(75% - 42.5px)",sm:"calc(75% - 42.5px)",md:"calc(75% - 85px)"},width:{xs:"80px",sm:"80px",md:"180px"},border:"5px solid rgb(179, 198, 255)",height:{xs:"80px",sm:"80px",md:"180px"},borderRadius:"50%"},style:{objectFit:"cover",width:"100%",height:"100%",borderRadius:"50%"},layout:6},options:{widget:"Image"}},{type:"Control",scope:"#/properties/leaderBoard/properties/firstName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"190px",md:"270px"},fontSize:{xs:"12px",md:"20px"},left:"calc(50% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%",zIndex:7},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/secondName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(25% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/thirdName",config:{main:{heading:"Satendra Raghav"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",color:"black",top:{xs:"240px",md:"320px"},fontSize:{xs:"12px",md:"20px"},left:"calc(75% - 90px)",width:"180px",fontWeight:"bold",borderRadius:"50%"},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/econd",config:{main:{heading:"2"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(25% - 12px)",md:"calc(25% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/first",config:{main:{heading:"1"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"175px",md:"230px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(50% - 12px)",md:"calc(50% - 16px)"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/third",config:{main:{heading:"3"},style:{objectFit:"cover",position:"absolute",display:"flex",justifyContent:"center",alignItems:"center",textShadow:"2px 2px 5px #5065C7",background:"green",color:"white",top:{xs:"225px",md:"280px"},fontSize:{xs:"12px",md:"16px"},left:{xs:"calc(75% - 12px)",md:"calc(75% - 16px)"},width:{xs:"20px",md:"40px"},border:{xs:"2px solid rgb(179, 198, 255)",md:"5px solid rgb(179, 198, 255)"},height:{xs:"20px",md:"40px"},"@keyframes rotateAnimation":{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},animation:"rotateAnimation 4s infinite",borderRadius:"50%",zIndex:5},layout:6},options:{widget:"Box"}},{type:"Control",scope:"#/properties/leaderBoard/properties/table",options:{widget:"Table"},elements:[],config:{style:{tableHeadstyle:{fontWeight:900,background:"rgb(179, 198, 255)"},position:"absolute",top:{xs:"300px",sm:"300px",md:"390px",lg:"390px"},border:"2px solid rgb(179, 198, 255)",width:"95%",left:"2.5%"},main:{disableAction:!0,disableSelection:!0}}}]};const buildLeaderBoard=i=>{const u=_.cloneDeep(leaderBoard);if(i.elements){const r=i.elements.map((g,y)=>g.type?{...{widget:buildUiSchema(g),accessorKey:g.name,header:g.label||g.name}}:{accessorKey:g.name,header:g.label||g.name});u.elements[9].elements=r}return i.name&&(u.elements[0].scope=`#/properties/${i.name}/properties/firstImage`,u.elements[3].scope=`#/properties/${i.name}/properties/firstName`,u.elements[1].scope=`#/properties/${i.name}/properties/secondImage`,u.elements[4].scope=`#/properties/${i.name}/properties/secondName`,u.elements[2].scope=`#/properties/${i.name}/properties/thirdImage`,u.elements[5].scope=`#/properties/${i.name}/properties/thirdName`,u.elements[9].scope=`#/properties/${i.name}/properties/table`),i.firstImage&&(u.elements[0].config.main.url=i.firstImage),i.secondImage&&(u.elements[1].config.main.url=i.secondImage),i.secondImage&&(u.elements[2].config.main.url=i.thirdImage),i.layout&&(u.config.layout=i.layout),u};var progressBar={type:"Control",scope:"#/properties/pbc_progress",options:{widget:"ProgressBar"},config:{layout:6,main:{developOnlyProgresBar:!1,bottomLabel_3:"Remaining",heading:"PBC Details"}}};const buildProgressBarCard=(i,u)=>{const r=_.cloneDeep(progressBar);return r.scope=u,i.heading&&(r.config.main.heading=i.heading),i.bottomLabel_3&&(r.config.main.bottomLabel_3=i.bottomLabel_3),i.bottomLabel_2&&(r.config.main.bottomLabel_2=i.bottomLabel_2),i.bottomLabel_1&&(r.elements[0].config.main.bottomLabel_1=i.bottomLabel_1),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r},buildProgressBar=(i,u)=>{const r=_.cloneDeep(progressBar);return r.scope=u,i.layout&&(r.config.layout=i.layout),r.config.main.heading=i.heading,i.bottomLabel_3&&(r.config.main.bottomLabel_3=i.bottomLabel_3),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.bottomLabel_2&&(r.config.main.bottomLabel_2=i.bottomLabel_2),i.bottomLabel_1&&(r.config.main.bottomLabel_1=i.bottomLabel_1),r},BarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Bar Graph",bottomLabel:"Name of Employe",numTicks:6,leftLabel:"Value in lakhs",axisLeft:!0,axisBottom:!0,hideTicks:!1,hideLeftAxisLine:!1,hideBottomAxisLine:!1,bottomAxisWidth:"10px",legend:{labelColor:"green",legendTitle:"",direction:"row",align:"none"}},style:{containerStyle:{width:"100%",height:300},headerStyle:{},tooltipStyle:{},labelStyle:{margin:{left:80,bottom:20},leftLabelOffset:50,bottomLabelOffset:10},barStyle:{color:{firstBarColor:"#6c5efb",secondBarColor:"#3f51b5"}},legendStyle:{legend:{lineHeight:"0.9em",fontSize:"8px",fontFamily:"arial",padding:"10px 10px",width:"30%",display:"flex",justifyContent:"center",border:"1px solid rgba(255, 255, 255, 0.3)",borderRadius:" 8px",marginRight:"auto"},legendTitle:{fontSize:"10px",marginBottom:"10px",fontWeight:"100"}}}}},PieGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:"Incentive Branch category wise",type:"PieGraph",bottomLabel:"Name of Employe",leftLabel:"Value",axisLeft:!0,axisBottom:!0,legendAvailable:!0,legend:{labelColor:"green",legendTitle:"Branches",direction:"row",align:"right"}},style:{containerStyle:{height:"340"},headerStyle:{},tooltipStyle:{backgroundColor:"black",width:"80px"},labelStyle:{},legendStyle:{legend:{},legendTitle:{}},pieStyle:{}}}},LineGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{layout:12,main:{type:"LineGraph",header:"Quartely Incentive in Thousand",bottomLabel:"Years",leftLabel:"Incentive",gridHidden:!0,numHidden:!1,tooltipDataKey:["MAMA New Project","Second","Third"],axisLeft:!0,axisBottom:!0,hideLeftAxisLine:!1,hideBottomAxisLine:!1,legend:{labelColor:"green",legendTitle:"Our Assests",direction:"row",align:"right",colorRectWidth:20}},style:{containerStyle:{},headerStyle:{},labelStyle:{},lineStyle:{}}}},HorizontalBarGraph={type:"Control",scope:"#/properties/graph",options:{widget:"Graph"},config:{main:{header:" ",type:"HorizontalBarGraph",bottomLabel:" ",leftLabel:"Value",axisLeft:!1,axisBottom:!0,hideBottomTicks:!1,hideLeftTicks:!1,hideLeftAxisLine:!0,hideBottomAxisLine:!1,bottomAxisWidth:"10px"},style:{containerStyle:{width:"100%"},headerStyle:{},tooltipStyle:{},labelStyle:{},barStyle:{color:"#6c5efb"}}}},buildHorizontalBarGraph=(i,u)=>{const r=_.cloneDeep(HorizontalBarGraph);return r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.scope=u,r.config.main.header=i.heading,i.barColor&&(r.config.barStyle.color=i.barColor),i.containerBackground&&(r.config.containerStyle.background=i.containerBackground),i.height&&(r.config.style.containerStyle.height=i.height),i.bottomLabel&&(r.config.main.bottomLabel=i.bottomLabel),i.leftLabel&&(r.config.main.leftLabel=i.leftLabel),r};var SpeedoMeter={type:"Control",scope:"#/properties/emptyBox",options:{widget:"SpeedoMeter"},config:{layout:{xs:12,sm:12,md:11.7,lg:11.7},width:350,segments:"5",main:{currentValueText:"Your Score",customSegmentLabels:[],data:{maxValue:1e5,value:5e4,minValue:0}},style:{segmentColors:[],ringWidth:57,needleHeightRatio:.7,needleColor:"#3f51b5",startColor:"red",textColor:"black",endColor:"green",containerStyle:{background:"white",padding:"20px",borderRadius:"20px",display:"flex",flexDirection:"column",margin:"auto",justifyContent:"center",fontFamily:"Roboto",fontWeight:500},headerStyle:{textAlign:"left",width:"100%",paddingBottom:"20px"}}}};const buildSpeedoMeter=(i,u)=>{const r=_.cloneDeep(SpeedoMeter);if(r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.heading&&(r.config.main.header=i.heading),i.segments&&(r.config.main.segments=i.segments),i.style){const g=JSON.parse(i.style);g!=null&&g.style&&(r.config.style={...r.config.style,...g.style}),g!=null&&g.containerStyle&&(r.config.style.containerStyle={...r.config.style.containerStyle,...g.containerStyle})}return i.width&&(r.config.main.width=i.width),i.speedoCaption&&(r.config.main.currentValueText=i.speedoCaption),i.data&&(r.config.main.data=i.data),i.needleColor&&(r.config.style.needleColor=i.needleColor),i.segments&&(r.config.style.segments=i.segments),i.endColor&&(r.config.style.endColor=i.endColor),i.startColor&&(r.config.style.startColor=i.startColor),i.segmentColors&&(r.config.style.segmentColors=i.segmentColors),r},buildPieGraph=(i,u)=>{const r=_.cloneDeep(PieGraph);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.height&&(r.config.style.containerStyle.height=i.height),i.legendHide&&(r.config.main.legendAvailabe=i.legendHide!=="YES"),r.scope=u,r.config.main.header=i.heading,i.legendLabels&&(r.config.main.tooltipDataKey=flatObjectValueInArray(i.legendLabels)),i.pieArcColors&&(r.config.style.pieStyle.colorRange=flatObjectValueInArray(i.pieArcColors)),r},buildStackbarGraph=(i,u)=>{const r=_.cloneDeep(BarGraph);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.legendHide&&(r.config.main.legendAvailable=!1),r.config.main.type=i.graphType,r.config.main.header=i.heading,i.barColor&&(r.config.barStyle.color=i.barColor),i.containerBackground&&(r.config.containerStyle.background=i.containerBackground),i.height&&(r.config.style.containerStyle.height=i.height),i.bottomLabel&&(r.config.main.bottomLabel=i.bottomLabel),i.leftLabel&&(r.config.main.leftLabel=i.leftLabel),r.scope=u,r};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=(i,u)=>{const r=_.cloneDeep(RunnerBoyProgressBar);return r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(i,u)=>{const r=_.cloneDeep(Tabsection);return i.sectionLabels&&(r.config.main.tabLabels=i.sectionLabels.map(g=>g.label)),r.config.main.id=i.name,r};var WrapperSection={type:"WrapperLayout",config:{main:{label:"Default Label",divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(i,u)=>{const r=_.cloneDeep(WrapperSection);return r.config.main.label=i.label,r.config.main.divider=!!i.divider,r.config.main.header=!!i.heading,r};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=(i,u)=>{const r=_.cloneDeep(TextInputField);return r.config.main.label=i.label,i.style&&(r.config.style=JSON.parse(i.style)),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.config.main.errorMessage=`${i.name} is empty or invalid`,r.scope=u,r};var SelectInputField={type:"Control",scope:"#/properties/select",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"",type:"text",freeSole:!1}}};const buildSelect=(i,u)=>{const r=_.cloneDeep(SelectInputField);return r.config.main.label=i.label,i.value&&(r.config.main.options=i.value),i.freeSolo&&(r.config.main.freeSolo=i.freeSolo==="YES"),i.lazyLoading&&(r.config.main.lazyLoading=i.lazyLoading==="YES"),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.scope=u,r};var Button={type:"Control",scope:"#/properties/button",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{name:"Compare",variant:"contained",color:"info",type:"text",startIcon:"",styleDefault:!1,icon:"",onClick:"onClick",size:"small"},style:{}}};const buildButton=(i,u)=>{const r=_.cloneDeep(Button);return i.buttonType&&(r.options.widget=i.buttonType==="IconButton"?"IconButton":"Button",i.buttonType==="ButtonWithIconAndText"?r.config.main.startIcon=i.iconName:r.config.main.icon=i.iconName),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.defaultStyle&&(r.config.main.styleDefault=i.defaultStyle==="true"),r.scope=u,i.style&&(r.config.style=JSON.parse(i.style)),i.size&&(r.config.main.size=i.size),i.color&&(r.config.main.color=i.color),i.label&&(r.config.main.name=i.label),r};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{allRowData:[],columns:{dataColumns:[],actionColumns:[]}}}},lazyLoadingTable={type:"Control",scope:"#/properties/LazyLoadingTable",options:{widget:"LazyLoadingTable"},elements:[],config:{main:{columns:{}}}};const buildTable=(i,u)=>{const r=_.cloneDeep(Table);return r.scope=u,i.style&&(r.config.style=JSON.parse(i.style)),i.lazyLoading&&(r.config.main.lazyLoading=i.lazyLoading==="YES"),i.SelectionAvailable&&(r.config.main.Selection=i.SelectionAvailable==="YES"),i.ColumnResizingAvailable&&(r.config.main.disableColumnResizing=i.ColumnResizingAvailable==="YES"),i.DragAvailable&&(r.config.main.enableDrag=i.DragAvailable==="YES"),i.selectKey&&(r.config.main.selectKey=i.selectKey),r},buildLazyLoadingTable=(i,u)=>{const r=_.cloneDeep(lazyLoadingTable);return r.scope=u,i.style&&(r.config.style=JSON.parse(i.style)),i.SelectionAvailable&&(r.config.main.Selection=i.SelectionAvailable==="YES"),i.ColumnResizingAvailable&&(r.config.main.disableColumnResizing=i.ColumnResizingAvailable!=="YES"),i.DragAvailable&&(r.config.main.enableDrag=i.DragAvailable==="YES"),i.selectKey&&(r.config.main.selectKey=i.selectKey),r.config.main.label=i.label,r};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(i,u)=>{const r=_.cloneDeep(Box);return r.scope=u,r.config.main.heading=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=JSON.parse(i.style)),r},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$1={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=(i,u)=>{const r=_.cloneDeep(uploadFile);return r.scope=u,r.config.main.label=i.label,i.layout&&(r.config.layout=i.layout),i.layout&&(uploadFile.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=i.style),i.required&&(r.config.main.required=!0),r.config.main.errorMessage=i.errorMessage,r},buildDownloadFile=(i,u)=>{const r=_.cloneDeep(downloadFile$1);return r.scope=u,i.layout&&(r.config.layout=i.layout),i.style&&(r.config.style=i.style),i.required&&(r.config.main.required=!0),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.errorMessage&&(r.config.main.errorMessage=i.errorMessage),r};var Card={type:"WrapperLayout",config:{main:{rowSpacing:.5},style:{wrapperStyle:{position:"relative",color:"white",height:{xs:"120px",md:"160px"},width:"100%",textAlign:"left",background:"#3f51b5",borderRadius:"20px"}},layout:{xs:12,sm:12,md:6,lg:6}},elements:[{type:"Control",scope:"#/properties/programType",config:{main:{heading:"$5000.00"},style:{position:"absolute",left:"10%",top:"15%",color:"#f5effc",height:"80px",display:"flex",fontSize:{xs:"24px",md:"32px"},alignItems:"center",background:"inherit",justifyContent:"flex-start"},layout:5},options:{widget:"Box"}},{type:"Control",scope:"#/properties/programType",config:{main:{url:"$"},style:{color:"#f5effc",objectFit:"contain",position:"absolute",top:"10px",right:"10px",height:"80%",width:"35%",display:"flex",fontSize:"34px",alignItems:"center",background:"inherit",padding:"20px",justifyContent:"left"},layout:5},options:{widget:"Image"}},{type:"Control",scope:"#/properties/programType",config:{main:{heading:"Total Earnings"},style:{position:"absolute",top:"calc(60%)",alignItems:"center",color:"#8999e8",fontSize:"16px",left:"10%",background:"inherit",justifyContent:"center"},layout:12},options:{widget:"Box"}}]};const buildCard=(i,u)=>{const r=_.cloneDeep(Card);return i.style&&(r.config.style=JSON.parse(i.style)),r.elements[0].scope=`#/properties/${i.name}/properties/value`,r.elements[1].scope=`#/properties/${i.name}/properties/url`,r.elements[2].scope=`#/properties/${i.name}/properties/description`,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(DateInputField);return r.config.main.label=i.label,r.config.main.errorMessage=`${i.name} is empty or invalid`,r.scope=u,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(RankCard);return r.scope=u,i.image&&(r.config.main.url=i.image),i.title&&(r.config.main.title=i.title),i.description&&(r.config.main.description=i.description),i.rank&&(r.config.main.rank=`#${i.rank}`),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(RollAndDice);return i.name&&(r.scope=u),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(Timer);return r.scope=u,i.label&&(r.config.main.label=i.label),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r};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=(i,u)=>{const r=_.cloneDeep(MultipleSelect);return r.scope=u,i.label&&(r.config.main.label=i.label),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.value&&(r.config.main.options=i.value),i.lazyLoading&&(r.config.main.lazyLoading=i.lazyLoading==="YES"),r},buildBasicUiSchema=i=>({type:"HorizontalLayout",pageName:`${i.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=(i,u)=>{const r=_.cloneDeep(TextArea);return r.config.main.heading=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=JSON.parse(i.style)),r.scope=u,r};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(i,u)=>{const r=_.cloneDeep(cardSlider);return i.name&&(r.scope=u),i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(i,u)=>{const r=_.cloneDeep(Checkbox);return r.scope=u,r.config.main.label=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.style&&(r.config.style=JSON.parse(i.style)),r},buildLineGraph=(i,u)=>{const r=_.cloneDeep(LineGraph);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r.config.main.header=i.heading,i.height&&(r.config.style.containerStyle.height=i.height),i.bottomLabel&&(r.config.main.bottomLabel=i.bottomLabel),i.leftLabel&&(r.config.main.leftLabel=i.leftLabel),i.legendHide&&(r.config.main.legendAvailabe=i.legendHide!=="YES"),i.legendLabels&&(r.config.main.tooltipDataKey=flatObjectValueInArray(i.legendLabels)),i.pieArcColors&&(r.config.style.lineStyle.colorRange=flatObjectValueInArray(i.pieArcColors)),r.scope=u,r},RadioUiSchema={type:"Control",scope:"#/properties/invoiceEnabled",options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Enabled",options:["YES","NO"],errorMessage:"Enabled is not marked as YES or NO"}}},buildRadio=(i,u)=>{const r=_.cloneDeep(RadioUiSchema);return r.scope=u,r.config.main.heading=i.label,i.layout&&(r.config.layout=createLayoutFormat(i.layout)),i.sectionLabels&&(r.config.main.options=i.sectionLabels.map(g=>g.label||g.Options)),i.style&&(r.config.style=JSON.parse(i.style)),r};var emptyBox={type:"Control",scope:"#/properties/emptyBox",options:{widget:"EmptyBox"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},main:{},style:{}}};const buildEmptyBox=(i,u)=>{const r=_.cloneDeep(emptyBox);return i.layout&&(r.config.layout=createLayoutFormat(i.layout)),r},ArrayUiSchema={type:"Control",scope:"#/properties/adjustments",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[]}}},buildArray=(i,u)=>{const r=_.cloneDeep(ArrayUiSchema);return r.scope=u,r};exports.schema={type:"object",properties:{},required:[]};function buildRule(i,u,r){var g,y,w,S,O,ie,rt,ht,Fe;r&&(w=(y=(g=exports.schema.properties)==null?void 0:g[u])==null?void 0:y.items)!=null&&w.properties&&((rt=(ie=(O=(S=exports.schema.properties)==null?void 0:S[u])==null?void 0:O.items)==null?void 0:ie.properties)!=null&&rt[i.name]||(exports.schema.properties[u].items.properties[i.name]={},i.type==="Select"||((ht=i.value)==null?void 0:ht.length)>0?exports.schema.properties[u].items.properties[i.name]={oneOf:i.value.map(Z=>({const:Z.value,title:Z.label}))}:(i.type==="MultipleSelect"||((Fe=i.value)==null?void 0:Fe.length)>0)&&(exports.schema.properties[u].items.properties[i.name]={items:{oneOf:i.value.map(Z=>({const:Z.value,title:Z.label}))}}))),i.validation&&i.validation.forEach(Z=>{var Ge,Ne,mt,oe,Me,Nt,de,$e,ge,Ke,_e,it;u?(mt=(Ne=(Ge=exports.schema.properties)==null?void 0:Ge[u])==null?void 0:Ne.items)!=null&&mt.properties&&((de=(Nt=(Me=(oe=exports.schema.properties)==null?void 0:oe[u])==null?void 0:Me.items)==null?void 0:Nt.properties)!=null&&de[i.name]||(exports.schema.properties[u].items.properties[i.name]={},i.type==="Select"||(($e=i.value)==null?void 0:$e.length)>0?exports.schema.properties[u].items.properties[i.name]={oneOf:i.value.map(qe=>({const:qe.value,title:qe.label}))}:(i.type==="MultipleSelect"||((ge=i.value)==null?void 0:ge.length)>0)&&(exports.schema.properties[u].items.properties[i.name]={items:{oneOf:i.value.map(qe=>({const:qe.value,title:qe.label}))}})),Z.validationType==="required"?(it=(_e=(Ke=exports.schema.properties)==null?void 0:Ke[u])==null?void 0:_e.items)==null||it.required.push(i.name):(exports.schema.properties[u].items.properties[i.name].type="string",exports.schema.properties[u].items.properties[i.name][Z.validationType]=isNaN(Z.validationValue)?Z.validationValue:Number(Z.validationValue))):(exports.schema.properties[i.name]||(exports.schema.properties[i.name]={}),Z.validationType==="required"?exports.schema.required.push(i.name):(exports.schema.properties[i.name].type="string",exports.schema.properties[i.name][Z.validationType]=isNaN(Z.validationValue)?Z.validationValue:Number(Z.validationValue)))})}const buildSchema=(i,u,r)=>(buildRule(i,u,r),i!=null&&i.elements&&(i.type=="Table"||i.type=="Array"?(exports.schema.properties[i.name]||(exports.schema.properties[i.name]={type:"array",items:{type:"object",properties:{},required:[]}}),i.elements.map((g,y)=>{buildSchema(g,i.name,i.type==="Array")})):i.elements.map((g,y)=>{buildSchema(g)})),exports.schema),buildUiSchema=i=>{let u={};const r=`#/properties/${i.name}`;switch(i.type){case"RunnerBoyProgressBar":u=RunnerBoyProgressbar(i,r);break;case"TabSection":u=buildTabSection(i);break;case"WrapperSection":u=buildWrapperSection(i);break;case"Text":u=buildTextField(i,r);break;case"TextArea":u=buildTextArea(i,r);break;case"Date":u=buildDate(i,r);break;case"Select":u=buildSelect(i,r);break;case"Radio":u=buildRadio(i,r);break;case"Button":u=buildButton(i,r);break;case"Table":u=buildTable(i,r);break;case"Array":u=buildArray(i,r);break;case"LazyLoadingTable":u=buildLazyLoadingTable(i,r);break;case"Box":u=buildLabel(i,r);break;case"CheckBox":u=buildCheckbox(i,r);break;case"UploadFile":u=buildUploadFile(i,r);break;case"DownloadFile":u=buildDownloadFile(i,r);break;case"EmptyBox":u=buildEmptyBox(i);break;case"card":u=buildCard(i);break;case"Graph":switch(i.graphType){case"BarGraph":case"StackBarGraph":u=buildStackbarGraph(i,r);break;case"LineGraph":u=buildLineGraph(i,r);break;case"PieGraph":u=buildPieGraph(i,r);break;case"HorizontalBarGraph":u=buildHorizontalBarGraph(i,r);break}break;case"ProgressBar":u=buildProgressBar(i,r);break;case"SpeedoMeter":u=buildSpeedoMeter(i,r);break;case"ProgressBarCard":u=buildProgressBarCard(i,r);break;case"RankCard":u=buildRankCard(i,r);break;case"Rank":u=buildRollAndDice(i,r);break;case"Slider":u=buildSlider(i,r);break;case"Timer":u=buildTimer(i,r);break;case"MultipleSelect":u=buildMultiSelect(i,r);break;case"LeaderBoard":u=buildLeaderBoard(i);break;default:exports.schema={type:"object",properties:{},required:[]},u=buildBasicUiSchema(i)}if(i!=null&&i.elements){if((i==null?void 0:i.type)==="LeaderBoard")return u;i.type=="Table"?u.elements=i.elements.map((g,y)=>g.type?{accessorKey:g.name,header:g.label||g.name,widget:buildUiSchema(g)}:{accessorKey:g.name,header:g.label||g.name}):i.type=="Array"?u.options.detail.elements=i.elements.map((g,y)=>buildUiSchema(g)):u.elements=i.elements.map((g,y)=>buildUiSchema(g))}return u};var pageMaster=i=>{const{store:u,dynamicData:r,config:g,submitHandler:y}=i;return{setPage:async function(){const w=await this.getFormdata();u.setFormdata(w);const S=await this.getUiSchema(),O=await this.getSchema();u.setSchema(O),u.setUiSchema(S)},getFormdata:async function(){var S;(S=u.searchParams)==null||S.get("id");const w=getFormdataFromLocalStorage();return w||(saveFormdataInLocalStorage(g),g)},getUiSchema:async function(){return PageMasterUiSchema},getSchema:()=>PageMasterSchema,backHandler:()=>{localStorage.removeItem("pageFormdata"),u.navigate("/PageMasterRecords")},onAddClickHandler:async function(){var O;const w=(O=u.searchParams)==null?void 0:O.get("id");Array.isArray(u.formData.elements)||(u.formData.elements=[]);const S=saveFormdataInLocalStorage(u.formData);u.navigate(`/Component?path=${`elements[${S==null?void 0:S.elements.length}]`}&id=${w}`)},submitPageHandler:async function(){console.log(exports.schema),y(u,i.service).then(w=>{localStorage.removeItem("pageFormdata"),u.navigate(-1),u.setNotify({SuccessMessage:"Submit Successfully",Success:!0})})},Edit_Components:Component(u,r).editComponents,Delete_Components:Component(u,r).deleteComponents,eventAddHandler:async function(){var O;const w=(O=u.searchParams)==null?void 0:O.get("id");Array.isArray(u.formData.events)||(u.formData.events=[]),saveFormdataInLocalStorage(u.formData);const S=`events[${u.formData.events.length}]`;u.navigate(`/ComponentEvents?path=${S}&id=${w}`)},editEvent:async function(){var ie;const w=r.path.split(".")[1],S=(ie=u.searchParams)==null?void 0:ie.get("id");saveFormdataInLocalStorage(u.formData);const O=`events[${w}]`;u.navigate(`/ComponentEvents?path=${O}&id=${S}`)},deleteEvent:async function(){const w=r.path.split(".")[1];u.formData.events.splice(w,1);const S=saveFormdataInLocalStorage(u.formData);u.setFormdata(S)}}};const EventSchema={type:"object",properties:{headers:{type:"array",items:{type:"object",properties:{headers_key:{type:"string"},headers_value:{type:"string"}}}},method:{type:"string",oneOf:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},eventType:{type:"string",oneOf:[{title:"Click Event",const:"onClick"},{title:"onStart",const:"onStart"},{title:"Load Event",const:"onLoad"},{title:"Change Event",const:"onChange"},{title:"Success",const:"Success"},{title:"Fail",const:"Fail"}]},Handler:{type:"string",oneOf:[{title:"Custom",const:"custom"},{title:"Api",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}]},inBuiltFunctionType:{type:"string",oneOf:[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"}]},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"}}},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"}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/headers",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},{type:"Control",scope:"#/properties/body",layout:11.5,options:{elementLabelProp:"key",detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Key"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},getTextArea("apiBody","Transformer",!0,12)]},refreshSectionUiSchema={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/refreshElements",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}}]};var event=(i,u)=>({setPage:async function(){const r=await this.getFormData();i.setFormdata(r);const g=await this.getSchema();i.setSchema(g),this.refreshPage(r.Handler,i)},refreshPage:(r,g)=>{const y=_.cloneDeep(EventUiSchema);r&&(r==="custom"?y.elements[1].elements[0].elements[2]=getTextArea("eventCode","Write Custom Code",!1):r==="api"?y.elements[1].elements[0].elements[2]=APISection:r==="inBuiltFunction"?(y.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name",[{label:"RankProvider",value:"RankProvider"},{label:"Download File",value:"downloadFile"}]),y.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6})):r==="refresh"&&(y.elements[1].elements[0].elements[2]=refreshSectionUiSchema)),g.setUiSchema(y)},getFormData:Component(i,u).getFormdata,getUiSchema:async function(){return EventUiSchema},getSchema:async()=>EventSchema,onChange:function(){var r,g,y;((r=i==null?void 0:i.formData)==null?void 0:r.Handler)!==((g=i==null?void 0:i.newData)==null?void 0:g.Handler)&&((y=i==null?void 0:i.newData)==null?void 0:y.Handler)!==void 0&&this.refreshPage(i.newData.Handler||i.formdata.Handler,i)},saveHandler:Component(i,u).saveHandler,addEvent:async function(){var y,w,S;const r=(y=i.searchParams)==null?void 0:y.get("path");Array.isArray(i.formData.events)||(i.formData.events=[]),saveFormdataInLocalStorage(i.formData,r);const g=`${r}.events[${(S=(w=i.formData)==null?void 0:w.events)==null?void 0:S.length}]`;i.searchParams.set("path",g),i.setSearchParams(i.searchParams),this.setPage()},editEvent:async function(){var w;const r=u.path.split(".")[1],g=(w=i.searchParams)==null?void 0:w.get("path");saveFormdataInLocalStorage(i.formData,g);const y=`${g}.events[${r}]`;i.searchParams.set("path",y),i.setSearchParams(i.searchParams),this.setPage()},deleteEvent:Component(i,u).deleteEvent,backHandler:function(){i.navigate(-1)}});const downloadFile=i=>{const u=i.name.split("."),r=i.data,g=window.atob(r);let y;y=new File([g],u[u.length-1]);const w=URL.createObjectURL(y),S=document.createElement("a");S.href=u[u.length-1]==="pdf"?"data:application/octet-stream;base64,"+r:w,S.download=`${i.name}`,document.body.appendChild(S),S.click(),URL.revokeObjectURL(w),document.body.removeChild(S)},executeEvents=async i=>{var g,y,w;let u=[],r=null;try{if(!shouldEventExecute(i))return{response:void 0,events:void 0};r=await executeEventsHandler(i),u=(g=i.config)==null?void 0:g.events.filter(ie=>ie.eventType==="Success")}catch{const O=(w=(y=i.config)==null?void 0:y.events)==null?void 0:w.filter(rt=>rt.eventType==="Fail");u=(O==null?void 0:O.length)>0?O:[]}if((u==null?void 0:u.length)>0)for(const S of u)await executeEvents({...i,config:S,parentEventOutput:r});return r};async function executeEventsHandler(i){if(i.config.Handler==="api")return await executeApiEventHandler(i);if(i.config.Handler==="inBuiltFunction")return await executeInBuiltFunctionHandler(i);if(i.config.Handler==="custom")return await executeCustomHandler(i);if(i.config.Handler==="refresh")return await executeRefreshHandler(i);if(i.config.Handler==="mergeFormdata")return await mergeFormdata(i.parentEventOutput,i.componentName,i.config,i.store)}async function executeRefreshHandler(i){const u=getRefreshElements(i.config,i.eventGroups);for(const r of u)for(const g of i.eventGroups.onLoad[r])await executeEvents({...i,config:g,componentName:r})}async function executeApiEventHandler(i){var S;const u={...(S=i.userValue)==null?void 0:S.payload},r={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},{body:g,headers:y}=await buildApiPayload(i.config,u,r,i.store,i.dynamicData,i.userValue,i.service);return await i.service[i.config.method](i.config.path,g,y&&{headers:y})}async function executeInBuiltFunctionHandler(params){let parameter={};if(params.config.funcParametersCode){const makeFunc=eval(params.config.funcParametersCode);parameter=makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service)}params.serviceHolder[params.config.inBuiltFunctionType](parameter)}async function executeCustomHandler(params){const makeFunc=eval(params.config.eventCode),response=await makeFunc(params.store,params.dynamicData,params.userValue,params.parentEventOutput,params.service,params.componentName);return response}async function mergeFormdata(i,u,r,g){r.type==="Select"&&!(_.isEmpty(i==null?void 0:i.data)&&(i==null?void 0:i.data))?g.setSchema(y=>{var w;return{...y,properties:{...y.properties,[u]:{...(w=y.properties)==null?void 0:w[u],oneOf:i.data}}}}):r.type==="MultipleSelect"&&!(_.isEmpty(i==null?void 0:i.data)&&(i==null?void 0:i.data))?g.setSchema(y=>{var w;return{...y,properties:{...y.properties,[u]:{...(w=y.properties)==null?void 0:w[u],type:"array",items:{oneOf:i.data}}}}}):r.type==="page"?g.setFormdata(y=>({...y,...i==null?void 0:i.data})):i&&g.setFormdata(y=>({...y,[u]:r.lazyLoading?i.data.data:i.data}))}const buildBodyFormat=(i,u,r)=>{const g={...r==null?void 0:r.payload};return i.map(y=>{var w,S;if(typeof(y==null?void 0:y.value)!="string")g[y.key]=y.value;else if((w=y==null?void 0:y.value)!=null&&w.startsWith("$userValue")){const O=y.value.substring(11);g[y.key]=_.get(r,O)}else if((S=y==null?void 0:y.value)!=null&&S.startsWith("$")){const O=y.value.substring(1);g[y.key]=_.get(u,O)}else g[y.key]=y.value}),g},buildHeadersFormat=i=>{const u={"X-Requested-With":"XMLHttpRequest"};return i.map(r=>{u[r.key]=r.value}),u};async function shouldEventExecute(i){var r,g;const u=(g=(r=i.config)==null?void 0:r.events)==null?void 0:g.filter(y=>y.eventType==="onStart");if((u==null?void 0:u.length)>0)return await executeEventsHandler({...i,config:u[0]})}async function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var i,u;if(compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((u=(i=store==null?void 0:store.ctx)==null?void 0:i.core)==null?void 0:u.data)||store.formData,userValue)}),compConfig.apiBody){const makeFunc=eval(compConfig.apiBody),data=await makeFunc(store,dynamicData,userValue,body);body=data}return{body,headers}}function getRefreshElements(i,u){var g;let r=[];return((g=i==null?void 0:i.refreshElements)==null?void 0:g.length)>0?r=i.refreshElements.map(y=>y.value):u!=null&&u.onLoad&&(r=Object.keys(u==null?void 0:u.onLoad),r.push(r[0])),console.log(r),r}let compType,eventGroups={};const notifyUiSchema={type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6},extractEvents=i=>{function u(r){r.events&&r.events.forEach(g=>{var w;r.type&&(compType=r.type),eventGroups[g.eventType]||(eventGroups[g.eventType]={}),eventGroups[g.eventType][r.name]||(eventGroups[g.eventType][r.name]=[]),!((w=g==null?void 0:g.events)==null?void 0:w.find(S=>S.eventType==="Success"))&&g.eventType==="onLoad"&&g.events.push({Handler:"mergeFormdata",eventType:"Success",type:compType,lazyLoading:i.lazyLoading==="YES"}),eventGroups[g.eventType][r.name].push({...g,type:compType})})}return u(i),i!=null&&i.elements&&i.elements.forEach(extractEvents),eventGroups};var service=i=>{eventGroups={},eventGroups=extractEvents(i.config);let u={config:{},componentName:"",store:i.store,dynamicData:i.dynamicData,userValue:i.userValue,service:i.service,serviceHolder:void 0,eventGroups};return{setPage:async function(){i.store.setFormdata({}),u={config:{},componentName:"",store:i.store,dynamicData:i.dynamicData,userValue:i.userValue,service:i.service,serviceHolder:this,eventGroups},await executeRefreshHandler(u),i.store.setSchema(r=>({...i.schema,properties:{...i.schema.properties,...r.properties}})),i.uiSchema.elements.push(notifyUiSchema),i.store.setUiSchema(i.uiSchema)},onClick:async function(){var g;const r=((g=i.dynamicData)==null?void 0:g.tableButtonPath)||i.dynamicData.path.split(".")[0];for(const y of eventGroups==null?void 0:eventGroups.onClick[r])await executeEvents({...u,config:y,componentName:r})},onPaginationChange:async function(r){var w;const g=[{key:"size",value:r.pagination.pageSize},{key:"pageIndex",value:r.pagination.pageIndex},{key:"sorting",value:r.sorting||[]},{key:"filters",value:r.columnFilters||[]},{key:"globalFilter",value:(w=r.globalFilter)!=null?w:""}],y=await this.updateConfigApiBody(r,g);return y==null?void 0:y.data},getSelectOptions:async function(r){if(r.serachValue!==""&&r.serachValue!==void 0){const g=[{key:"searchValue",value:r.serachValue},{key:"currentValue",value:r.currentValue}];return await this.updateConfigApiBody(r,g)}},onChange:async function(){if(eventGroups.onChange){const r=Object.keys(eventGroups.onChange);Promise.all(r.map(async g=>{var y,w;if(((y=i.store)==null?void 0:y.formData[g])!==i.store.newData[g]&&((w=i.store)==null?void 0:w.newData[g])!==void 0)for(const S of eventGroups.onChange[g])await executeEvents({...u,config:S,componentName:g})}))}},updateConfigApiBody:async function(r,g){var w;let y;for(const S of eventGroups==null?void 0:eventGroups.onLoad[r.path]){S.body?S.body=[...S.body,...g]:S.body=g;const O=(w=S==null?void 0:S.events)==null?void 0:w.filter(ie=>ie.Handler!=="mergeFormdata");S.events=O!=null?O:[],y=await executeEvents({...u,config:S,componentName:r.path})}return y},downloadFile}},clearLocalStorage=()=>{localStorage.removeItem("pageFormdata")};exports.buildConfig=buildConfig,exports.buildSchema=buildSchema,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