impaktapps-ui-builder 0.0.279 → 0.0.281
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.
- package/dist/impaktapps-ui-builder.es.js +56 -55
- package/dist/impaktapps-ui-builder.es.js.map +1 -1
- package/dist/impaktapps-ui-builder.umd.js +15 -15
- package/dist/impaktapps-ui-builder.umd.js.map +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildUiSchema.d.ts +5 -0
- package/dist/src/impaktapps-ui-builder/builder/build/uischema/validationSections.d.ts +1 -1
- package/dist/src/impaktapps-ui-builder/lib/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/impaktapps-ui-builder/builder/build/buildUiSchema.ts +60 -24
- package/src/impaktapps-ui-builder/builder/build/uischema/validationSections.ts +5 -5
- package/src/impaktapps-ui-builder/lib/index.ts +1 -1
- package/dist/src/impaktapps-ui-builder/builder/build/buildSchema.d.ts +0 -6
|
@@ -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(o,u){(function(){var r,h="4.17.21",b=200,w="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",S="Expected a function",O="Invalid `variable` option passed into `_.template`",G="__lodash_hash_undefined__",j=500,V="__lodash_placeholder__",Y=1,he=2,xt=4,_t=1,cn=2,_e=1,ut=2,Ii=4,He=8,St=16,Oe=32,wt=64,Ge=128,Ut=256,ir=512,al=30,ll="...",sl=800,ul=16,Bi=1,cl=2,pl=3,ct=1/0,je=9007199254740991,fl=17976931348623157e292,pn=0/0,We=4294967295,dl=We-1,hl=We>>>1,gl=[["ary",Ge],["bind",_e],["bindKey",ut],["curry",He],["curryRight",St],["flip",ir],["partial",Oe],["partialRight",wt],["rearg",Ut]],Ct="[object Arguments]",fn="[object Array]",ml="[object AsyncFunction]",Nt="[object Boolean]",Gt="[object Date]",yl="[object DOMException]",dn="[object Error]",hn="[object Function]",Ai="[object GeneratorFunction]",Fe="[object Map]",zt="[object Number]",vl="[object Null]",ze="[object Object]",Ri="[object Promise]",bl="[object Proxy]",$t="[object RegExp]",Te="[object Set]",Kt="[object String]",gn="[object Symbol]",xl="[object Undefined]",qt="[object WeakMap]",_l="[object WeakSet]",Vt="[object ArrayBuffer]",Lt="[object DataView]",or="[object Float32Array]",ar="[object Float64Array]",lr="[object Int8Array]",sr="[object Int16Array]",ur="[object Int32Array]",cr="[object Uint8Array]",pr="[object Uint8ClampedArray]",fr="[object Uint16Array]",dr="[object Uint32Array]",Sl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Cl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Fi=/&(?:amp|lt|gt|quot|#39);/g,Ti=/[&<>"']/g,Ll=RegExp(Fi.source),Il=RegExp(Ti.source),Bl=/<%-([\s\S]+?)%>/g,Al=/<%([\s\S]+?)%>/g,Ei=/<%=([\s\S]+?)%>/g,Rl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Fl=/^\w*$/,Tl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,El=RegExp(hr.source),gr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ml=/\{\n\/\* \[wrapped with (.+)\] \*/,Hl=/,? & /,Ol=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Wl=/[()=,{}\[\]\/\s]/,kl=/\\(\\)?/g,Ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Di=/\w*$/,Nl=/^[-+]0x[0-9a-f]+$/i,Gl=/^0b[01]+$/i,zl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,ql=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,yn="\\ud800-\\udfff",Yl="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Zl="\\u20d0-\\u20ff",Pi=Yl+Jl+Zl,Mi="\\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",Oi="A-Z\\xc0-\\xd6\\xd8-\\xde",Wi="\\ufe0e\\ufe0f",ki=Xl+Ql+jl+es,mr="['\u2019]",ts="["+yn+"]",Ui="["+ki+"]",vn="["+Pi+"]",Ni="\\d+",ns="["+Mi+"]",Gi="["+Hi+"]",zi="[^"+yn+ki+Ni+Mi+Hi+Oi+"]",yr="\\ud83c[\\udffb-\\udfff]",rs="(?:"+vn+"|"+yr+")",$i="[^"+yn+"]",vr="(?:\\ud83c[\\udde6-\\uddff]){2}",br="[\\ud800-\\udbff][\\udc00-\\udfff]",It="["+Oi+"]",Ki="\\u200d",qi="(?:"+Gi+"|"+zi+")",is="(?:"+It+"|"+zi+")",Vi="(?:"+mr+"(?:d|ll|m|re|s|t|ve))?",Yi="(?:"+mr+"(?:D|LL|M|RE|S|T|VE))?",Ji=rs+"?",Zi="["+Wi+"]?",os="(?:"+Ki+"(?:"+[$i,vr,br].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,vr,br].join("|")+")"+Xi,us="(?:"+[$i+vn+"?",vn,vr,br,ts].join("|")+")",cs=RegExp(mr,"g"),ps=RegExp(vn,"g"),xr=RegExp(yr+"(?="+yr+")|"+us+Xi,"g"),fs=RegExp([It+"?"+Gi+"+"+Vi+"(?="+[Ui,It,"$"].join("|")+")",is+"+"+Yi+"(?="+[Ui,It+qi,"$"].join("|")+")",It+"?"+qi+"+"+Vi,It+"+"+Yi,ls,as,Ni,ss].join("|"),"g"),ds=RegExp("["+Ki+yn+Pi+Wi+"]"),hs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ms=-1,K={};K[or]=K[ar]=K[lr]=K[sr]=K[ur]=K[cr]=K[pr]=K[fr]=K[dr]=!0,K[Ct]=K[fn]=K[Vt]=K[Nt]=K[Lt]=K[Gt]=K[dn]=K[hn]=K[Fe]=K[zt]=K[ze]=K[$t]=K[Te]=K[Kt]=K[qt]=!1;var $={};$[Ct]=$[fn]=$[Vt]=$[Lt]=$[Nt]=$[Gt]=$[or]=$[ar]=$[lr]=$[sr]=$[ur]=$[Fe]=$[zt]=$[ze]=$[$t]=$[Te]=$[Kt]=$[gn]=$[cr]=$[pr]=$[fr]=$[dr]=!0,$[dn]=$[hn]=$[qt]=!1;var ys={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},vs={"&":"&","<":"<",">":">",'"':""","'":"'"},bs={"&":"&","<":"<",">":">",""":'"',"'":"'"},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,re=Qi||ws||Function("return this")(),_r=u&&!u.nodeType&&u,pt=_r&&!0&&o&&!o.nodeType&&o,ji=pt&&pt.exports===_r,Sr=ji&&Qi.process,Se=function(){try{var f=pt&&pt.require&&pt.require("util").types;return f||Sr&&Sr.binding&&Sr.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 ge(f,m,g){switch(g.length){case 0:return f.call(m);case 1:return f.call(m,g[0]);case 2:return f.call(m,g[0],g[1]);case 3:return f.call(m,g[0],g[1],g[2])}return f.apply(m,g)}function Cs(f,m,g,L){for(var F=-1,k=f==null?0:f.length;++F<k;){var ee=f[F];m(L,ee,g(ee),f)}return L}function we(f,m){for(var g=-1,L=f==null?0:f.length;++g<L&&m(f[g],g,f)!==!1;);return f}function Ls(f,m){for(var g=f==null?0:f.length;g--&&m(f[g],g,f)!==!1;);return f}function ao(f,m){for(var g=-1,L=f==null?0:f.length;++g<L;)if(!m(f[g],g,f))return!1;return!0}function et(f,m){for(var g=-1,L=f==null?0:f.length,F=0,k=[];++g<L;){var ee=f[g];m(ee,g,f)&&(k[F++]=ee)}return k}function bn(f,m){var g=f==null?0:f.length;return!!g&&Bt(f,m,0)>-1}function wr(f,m,g){for(var L=-1,F=f==null?0:f.length;++L<F;)if(g(m,f[L]))return!0;return!1}function q(f,m){for(var g=-1,L=f==null?0:f.length,F=Array(L);++g<L;)F[g]=m(f[g],g,f);return F}function tt(f,m){for(var g=-1,L=m.length,F=f.length;++g<L;)f[F+g]=m[g];return f}function Cr(f,m,g,L){var F=-1,k=f==null?0:f.length;for(L&&k&&(g=f[++F]);++F<k;)g=m(g,f[F],F,f);return g}function Is(f,m,g,L){var F=f==null?0:f.length;for(L&&F&&(g=f[--F]);F--;)g=m(g,f[F],F,f);return g}function Lr(f,m){for(var g=-1,L=f==null?0:f.length;++g<L;)if(m(f[g],g,f))return!0;return!1}var Bs=Ir("length");function As(f){return f.split("")}function Rs(f){return f.match(Ol)||[]}function lo(f,m,g){var L;return g(f,function(F,k,ee){if(m(F,k,ee))return L=k,!1}),L}function xn(f,m,g,L){for(var F=f.length,k=g+(L?1:-1);L?k--:++k<F;)if(m(f[k],k,f))return k;return-1}function Bt(f,m,g){return m===m?Ns(f,m,g):xn(f,so,g)}function Fs(f,m,g,L){for(var F=g-1,k=f.length;++F<k;)if(L(f[F],m))return F;return-1}function so(f){return f!==f}function uo(f,m){var g=f==null?0:f.length;return g?Ar(f,m)/g:pn}function Ir(f){return function(m){return m==null?r:m[f]}}function Br(f){return function(m){return f==null?r:f[m]}}function co(f,m,g,L,F){return F(f,function(k,ee,z){g=L?(L=!1,k):m(g,k,ee,z)}),g}function Ts(f,m){var g=f.length;for(f.sort(m);g--;)f[g]=f[g].value;return f}function Ar(f,m){for(var g,L=-1,F=f.length;++L<F;){var k=m(f[L]);k!==r&&(g=g===r?k:g+k)}return g}function Rr(f,m){for(var g=-1,L=Array(f);++g<f;)L[g]=m(g);return L}function Es(f,m){return q(m,function(g){return[g,f[g]]})}function po(f){return f&&f.slice(0,mo(f)+1).replace(gr,"")}function me(f){return function(m){return f(m)}}function Fr(f,m){return q(m,function(g){return f[g]})}function Yt(f,m){return f.has(m)}function fo(f,m){for(var g=-1,L=f.length;++g<L&&Bt(m,f[g],0)>-1;);return g}function ho(f,m){for(var g=f.length;g--&&Bt(m,f[g],0)>-1;);return g}function Ds(f,m){for(var g=f.length,L=0;g--;)f[g]===m&&++L;return L}var Ps=Br(ys),Ms=Br(vs);function Hs(f){return"\\"+xs[f]}function Os(f,m){return f==null?r:f[m]}function At(f){return ds.test(f)}function Ws(f){return hs.test(f)}function ks(f){for(var m,g=[];!(m=f.next()).done;)g.push(m.value);return g}function Tr(f){var m=-1,g=Array(f.size);return f.forEach(function(L,F){g[++m]=[F,L]}),g}function go(f,m){return function(g){return f(m(g))}}function nt(f,m){for(var g=-1,L=f.length,F=0,k=[];++g<L;){var ee=f[g];(ee===m||ee===V)&&(f[g]=V,k[F++]=g)}return k}function _n(f){var m=-1,g=Array(f.size);return f.forEach(function(L){g[++m]=L}),g}function Us(f){var m=-1,g=Array(f.size);return f.forEach(function(L){g[++m]=[L,L]}),g}function Ns(f,m,g){for(var L=g-1,F=f.length;++L<F;)if(f[L]===m)return L;return-1}function Gs(f,m,g){for(var L=g+1;L--;)if(f[L]===m)return L;return L}function Rt(f){return At(f)?$s(f):Bs(f)}function Ee(f){return At(f)?Ks(f):As(f)}function mo(f){for(var m=f.length;m--&&Dl.test(f.charAt(m)););return m}var zs=Br(bs);function $s(f){for(var m=xr.lastIndex=0;xr.test(f);)++m;return m}function Ks(f){return f.match(xr)||[]}function qs(f){return f.match(fs)||[]}var Vs=function f(m){m=m==null?re:Ft.defaults(re.Object(),m,Ft.pick(re,gs));var g=m.Array,L=m.Date,F=m.Error,k=m.Function,ee=m.Math,z=m.Object,Er=m.RegExp,Ys=m.String,Ce=m.TypeError,Sn=g.prototype,Js=k.prototype,Tt=z.prototype,wn=m["__core-js_shared__"],Cn=Js.toString,N=Tt.hasOwnProperty,Zs=0,yo=function(){var e=/[^.]+$/.exec(wn&&wn.keys&&wn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ln=Tt.toString,Xs=Cn.call(z),Qs=re._,js=Er("^"+Cn.call(N).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),In=ji?m.Buffer:r,rt=m.Symbol,Bn=m.Uint8Array,vo=In?In.allocUnsafe:r,An=go(z.getPrototypeOf,z),bo=z.create,xo=Tt.propertyIsEnumerable,Rn=Sn.splice,_o=rt?rt.isConcatSpreadable:r,Jt=rt?rt.iterator:r,ft=rt?rt.toStringTag:r,Fn=function(){try{var e=yt(z,"defineProperty");return e({},"",{}),e}catch{}}(),eu=m.clearTimeout!==re.clearTimeout&&m.clearTimeout,tu=L&&L.now!==re.Date.now&&L.now,nu=m.setTimeout!==re.setTimeout&&m.setTimeout,Tn=ee.ceil,En=ee.floor,Dr=z.getOwnPropertySymbols,ru=In?In.isBuffer:r,So=m.isFinite,iu=Sn.join,ou=go(z.keys,z),te=ee.max,oe=ee.min,au=L.now,lu=m.parseInt,wo=ee.random,su=Sn.reverse,Pr=yt(m,"DataView"),Zt=yt(m,"Map"),Mr=yt(m,"Promise"),Et=yt(m,"Set"),Xt=yt(m,"WeakMap"),Qt=yt(z,"create"),Dn=Xt&&new Xt,Dt={},uu=vt(Pr),cu=vt(Zt),pu=vt(Mr),fu=vt(Et),du=vt(Xt),Pn=rt?rt.prototype:r,jt=Pn?Pn.valueOf:r,Co=Pn?Pn.toString:r;function l(e){if(Z(e)&&!T(e)&&!(e instanceof H)){if(e instanceof Le)return e;if(N.call(e,"__wrapped__"))return La(e)}return new Le(e)}var Pt=function(){function e(){}return function(t){if(!J(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:Bl,evaluate:Al,interpolate:Ei,variable:"",imports:{_:l}},l.prototype=Mn.prototype,l.prototype.constructor=l,Le.prototype=Pt(Mn.prototype),Le.prototype.constructor=Le;function H(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=We,this.__views__=[]}function hu(){var e=new H(this.__wrapped__);return e.__actions__=ce(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ce(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ce(this.__views__),e}function gu(){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=T(e),i=t<0,a=n?e.length:0,s=Ac(0,a,this.__views__),c=s.start,p=s.end,d=p-c,y=i?p:c-1,v=this.__iteratees__,x=v.length,C=0,I=oe(d,this.__takeCount__);if(!n||!i&&a==d&&I==d)return Yo(e,this.__actions__);var A=[];e:for(;d--&&C<I;){y+=t;for(var D=-1,R=e[y];++D<x;){var M=v[D],W=M.iteratee,be=M.type,ue=W(R);if(be==cl)R=ue;else if(!ue){if(be==Bi)continue e;break e}}A[C++]=R}return A}H.prototype=Pt(Mn.prototype),H.prototype.constructor=H;function dt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function yu(){this.__data__=Qt?Qt(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(Qt){var n=t[e];return n===G?r:n}return N.call(t,e)?t[e]:r}function xu(e){var t=this.__data__;return Qt?t[e]!==r:N.call(t,e)}function _u(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qt&&t===r?G:t,this}dt.prototype.clear=yu,dt.prototype.delete=vu,dt.prototype.get=bu,dt.prototype.has=xu,dt.prototype.set=_u;function $e(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Su(){this.__data__=[],this.size=0}function wu(e){var t=this.__data__,n=Hn(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Rn.call(t,n,1),--this.size,!0}function Cu(e){var t=this.__data__,n=Hn(t,e);return n<0?r:t[n][1]}function Lu(e){return Hn(this.__data__,e)>-1}function Iu(e,t){var n=this.__data__,i=Hn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}$e.prototype.clear=Su,$e.prototype.delete=wu,$e.prototype.get=Cu,$e.prototype.has=Lu,$e.prototype.set=Iu;function Ke(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Bu(){this.size=0,this.__data__={hash:new dt,map:new(Zt||$e),string:new dt}}function Au(e){var t=Yn(this,e).delete(e);return this.size-=t?1:0,t}function Ru(e){return Yn(this,e).get(e)}function Fu(e){return Yn(this,e).has(e)}function Tu(e,t){var n=Yn(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}Ke.prototype.clear=Bu,Ke.prototype.delete=Au,Ke.prototype.get=Ru,Ke.prototype.has=Fu,Ke.prototype.set=Tu;function ht(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ke;++t<n;)this.add(e[t])}function Eu(e){return this.__data__.set(e,G),this}function Du(e){return this.__data__.has(e)}ht.prototype.add=ht.prototype.push=Eu,ht.prototype.has=Du;function De(e){var t=this.__data__=new $e(e);this.size=t.size}function Pu(){this.__data__=new $e,this.size=0}function Mu(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hu(e){return this.__data__.get(e)}function Ou(e){return this.__data__.has(e)}function Wu(e,t){var n=this.__data__;if(n instanceof $e){var i=n.__data__;if(!Zt||i.length<b-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ke(i)}return n.set(e,t),this.size=n.size,this}De.prototype.clear=Pu,De.prototype.delete=Mu,De.prototype.get=Hu,De.prototype.has=Ou,De.prototype.set=Wu;function Lo(e,t){var n=T(e),i=!n&&bt(e),a=!n&&!i&&st(e),s=!n&&!i&&!a&&Wt(e),c=n||i||a||s,p=c?Rr(e.length,Ys):[],d=p.length;for(var y in e)(t||N.call(e,y))&&!(c&&(y=="length"||a&&(y=="offset"||y=="parent")||s&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Je(y,d)))&&p.push(y);return p}function Io(e){var t=e.length;return t?e[qr(0,t-1)]:r}function ku(e,t){return Jn(ce(e),gt(t,0,e.length))}function Uu(e){return Jn(ce(e))}function Hr(e,t,n){(n!==r&&!Pe(e[t],n)||n===r&&!(t in e))&&qe(e,t,n)}function en(e,t,n){var i=e[t];(!(N.call(e,t)&&Pe(i,n))||n===r&&!(t in e))&&qe(e,t,n)}function Hn(e,t){for(var n=e.length;n--;)if(Pe(e[n][0],t))return n;return-1}function Nu(e,t,n,i){return it(e,function(a,s,c){t(i,a,n(a),c)}),i}function Bo(e,t){return e&&Ue(t,ne(t),e)}function Gu(e,t){return e&&Ue(t,fe(t),e)}function qe(e,t,n){t=="__proto__"&&Fn?Fn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Or(e,t){for(var n=-1,i=t.length,a=g(i),s=e==null;++n<i;)a[n]=s?r:yi(e,t[n]);return a}function gt(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,i,a,s){var c,p=t&Y,d=t&he,y=t&xt;if(n&&(c=a?n(e,i,a,s):n(e)),c!==r)return c;if(!J(e))return e;var v=T(e);if(v){if(c=Fc(e),!p)return ce(e,c)}else{var x=ae(e),C=x==hn||x==Ai;if(st(e))return Xo(e,p);if(x==ze||x==Ct||C&&!a){if(c=d||C?{}:ma(e),!p)return d?bc(e,Gu(c,e)):vc(e,Bo(c,e))}else{if(!$[x])return a?e:{};c=Tc(e,x,p)}}s||(s=new De);var I=s.get(e);if(I)return I;s.set(e,c),Ka(e)?e.forEach(function(R){c.add(Ie(R,t,n,R,e,s))}):za(e)&&e.forEach(function(R,M){c.set(M,Ie(R,t,n,M,e,s))});var A=y?d?ri:ni:d?fe:ne,D=v?r:A(e);return we(D||e,function(R,M){D&&(M=R,R=e[M]),en(c,M,Ie(R,t,n,M,e,s))}),c}function zu(e){var t=ne(e);return function(n){return Ao(n,e,t)}}function Ao(e,t,n){var i=n.length;if(e==null)return!i;for(e=z(e);i--;){var a=n[i],s=t[a],c=e[a];if(c===r&&!(a in e)||!s(c))return!1}return!0}function Ro(e,t,n){if(typeof e!="function")throw new Ce(S);return sn(function(){e.apply(r,n)},t)}function tn(e,t,n,i){var a=-1,s=bn,c=!0,p=e.length,d=[],y=t.length;if(!p)return d;n&&(t=q(t,me(n))),i?(s=wr,c=!1):t.length>=b&&(s=Yt,c=!1,t=new ht(t));e:for(;++a<p;){var v=e[a],x=n==null?v:n(v);if(v=i||v!==0?v:0,c&&x===x){for(var C=y;C--;)if(t[C]===x)continue e;d.push(v)}else s(t,x,i)||d.push(v)}return d}var it=na(ke),Fo=na(kr,!0);function $u(e,t){var n=!0;return it(e,function(i,a,s){return n=!!t(i,a,s),n}),n}function On(e,t,n){for(var i=-1,a=e.length;++i<a;){var s=e[i],c=t(s);if(c!=null&&(p===r?c===c&&!ve(c):n(c,p)))var p=c,d=s}return d}function Ku(e,t,n,i){var a=e.length;for(n=E(n),n<0&&(n=-n>a?0:a+n),i=i===r||i>a?a:E(i),i<0&&(i+=a),i=n>i?0:Va(i);n<i;)e[n++]=t;return e}function To(e,t){var n=[];return it(e,function(i,a,s){t(i,a,s)&&n.push(i)}),n}function ie(e,t,n,i,a){var s=-1,c=e.length;for(n||(n=Dc),a||(a=[]);++s<c;){var p=e[s];t>0&&n(p)?t>1?ie(p,t-1,n,i,a):tt(a,p):i||(a[a.length]=p)}return a}var Wr=ra(),Eo=ra(!0);function ke(e,t){return e&&Wr(e,t,ne)}function kr(e,t){return e&&Eo(e,t,ne)}function Wn(e,t){return et(t,function(n){return Ze(e[n])})}function mt(e,t){t=at(t,e);for(var n=0,i=t.length;e!=null&&n<i;)e=e[Ne(t[n++])];return n&&n==i?e:r}function Do(e,t,n){var i=t(e);return T(e)?i:tt(i,n(e))}function le(e){return e==null?e===r?xl:vl:ft&&ft in z(e)?Bc(e):Uc(e)}function Ur(e,t){return e>t}function qu(e,t){return e!=null&&N.call(e,t)}function Vu(e,t){return e!=null&&t in z(e)}function Yu(e,t,n){return e>=oe(t,n)&&e<te(t,n)}function Nr(e,t,n){for(var i=n?wr:bn,a=e[0].length,s=e.length,c=s,p=g(s),d=1/0,y=[];c--;){var v=e[c];c&&t&&(v=q(v,me(t))),d=oe(v.length,d),p[c]=!n&&(t||a>=120&&v.length>=120)?new ht(c&&v):r}v=e[0];var x=-1,C=p[0];e:for(;++x<a&&y.length<d;){var I=v[x],A=t?t(I):I;if(I=n||I!==0?I:0,!(C?Yt(C,A):i(y,A,n))){for(c=s;--c;){var D=p[c];if(!(D?Yt(D,A):i(e[c],A,n)))continue e}C&&C.push(A),y.push(I)}}return y}function Ju(e,t,n,i){return ke(e,function(a,s,c){t(i,n(a),s,c)}),i}function nn(e,t,n){t=at(t,e),e=xa(e,t);var i=e==null?e:e[Ne(Ae(t))];return i==null?r:ge(i,e,n)}function Po(e){return Z(e)&&le(e)==Ct}function Zu(e){return Z(e)&&le(e)==Vt}function Xu(e){return Z(e)&&le(e)==Gt}function rn(e,t,n,i,a){return e===t?!0:e==null||t==null||!Z(e)&&!Z(t)?e!==e&&t!==t:Qu(e,t,n,i,rn,a)}function Qu(e,t,n,i,a,s){var c=T(e),p=T(t),d=c?fn:ae(e),y=p?fn:ae(t);d=d==Ct?ze:d,y=y==Ct?ze:y;var v=d==ze,x=y==ze,C=d==y;if(C&&st(e)){if(!st(t))return!1;c=!0,v=!1}if(C&&!v)return s||(s=new De),c||Wt(e)?da(e,t,n,i,a,s):Lc(e,t,d,n,i,a,s);if(!(n&_t)){var I=v&&N.call(e,"__wrapped__"),A=x&&N.call(t,"__wrapped__");if(I||A){var D=I?e.value():e,R=A?t.value():t;return s||(s=new De),a(D,R,n,i,s)}}return C?(s||(s=new De),Ic(e,t,n,i,a,s)):!1}function ju(e){return Z(e)&&ae(e)==Fe}function Gr(e,t,n,i){var a=n.length,s=a,c=!i;if(e==null)return!s;for(e=z(e);a--;){var p=n[a];if(c&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++a<s;){p=n[a];var d=p[0],y=e[d],v=p[1];if(c&&p[2]){if(y===r&&!(d in e))return!1}else{var x=new De;if(i)var C=i(y,v,d,e,t,x);if(!(C===r?rn(v,y,_t|cn,i,x):C))return!1}}return!0}function Mo(e){if(!J(e)||Mc(e))return!1;var t=Ze(e)?js:zl;return t.test(vt(e))}function ec(e){return Z(e)&&le(e)==$t}function tc(e){return Z(e)&&ae(e)==Te}function nc(e){return Z(e)&&tr(e.length)&&!!K[le(e)]}function Ho(e){return typeof e=="function"?e:e==null?de:typeof e=="object"?T(e)?ko(e[0],e[1]):Wo(e):il(e)}function zr(e){if(!ln(e))return ou(e);var t=[];for(var n in z(e))N.call(e,n)&&n!="constructor"&&t.push(n);return t}function rc(e){if(!J(e))return kc(e);var t=ln(e),n=[];for(var i in e)i=="constructor"&&(t||!N.call(e,i))||n.push(i);return n}function $r(e,t){return e<t}function Oo(e,t){var n=-1,i=pe(e)?g(e.length):[];return it(e,function(a,s,c){i[++n]=t(a,s,c)}),i}function Wo(e){var t=oi(e);return t.length==1&&t[0][2]?va(t[0][0],t[0][1]):function(n){return n===e||Gr(n,e,t)}}function ko(e,t){return li(e)&&ya(t)?va(Ne(e),t):function(n){var i=yi(n,e);return i===r&&i===t?vi(n,e):rn(t,i,_t|cn)}}function kn(e,t,n,i,a){e!==t&&Wr(t,function(s,c){if(a||(a=new De),J(s))ic(e,t,c,n,kn,i,a);else{var p=i?i(ui(e,c),s,c+"",e,t,a):r;p===r&&(p=s),Hr(e,c,p)}},fe)}function ic(e,t,n,i,a,s,c){var p=ui(e,n),d=ui(t,n),y=c.get(d);if(y){Hr(e,n,y);return}var v=s?s(p,d,n+"",e,t,c):r,x=v===r;if(x){var C=T(d),I=!C&&st(d),A=!C&&!I&&Wt(d);v=d,C||I||A?T(p)?v=p:X(p)?v=ce(p):I?(x=!1,v=Xo(d,!0)):A?(x=!1,v=Qo(d,!0)):v=[]:un(d)||bt(d)?(v=p,bt(p)?v=Ya(p):(!J(p)||Ze(p))&&(v=ma(d))):x=!1}x&&(c.set(d,v),a(v,d,i,s,c),c.delete(d)),Hr(e,n,v)}function Uo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Je(t,n)?e[t]:r}function No(e,t,n){t.length?t=q(t,function(s){return T(s)?function(c){return mt(c,s.length===1?s[0]:s)}:s}):t=[de];var i=-1;t=q(t,me(B()));var a=Oo(e,function(s,c,p){var d=q(t,function(y){return y(s)});return{criteria:d,index:++i,value:s}});return Ts(a,function(s,c){return yc(s,c,n)})}function oc(e,t){return Go(e,t,function(n,i){return vi(e,i)})}function Go(e,t,n){for(var i=-1,a=t.length,s={};++i<a;){var c=t[i],p=mt(e,c);n(p,c)&&on(s,at(c,e),p)}return s}function ac(e){return function(t){return mt(t,e)}}function Kr(e,t,n,i){var a=i?Fs:Bt,s=-1,c=t.length,p=e;for(e===t&&(t=ce(t)),n&&(p=q(e,me(n)));++s<c;)for(var d=0,y=t[s],v=n?n(y):y;(d=a(p,v,d,i))>-1;)p!==e&&Rn.call(p,d,1),Rn.call(e,d,1);return e}function zo(e,t){for(var n=e?t.length:0,i=n-1;n--;){var a=t[n];if(n==i||a!==s){var s=a;Je(a)?Rn.call(e,a,1):Jr(e,a)}}return e}function qr(e,t){return e+En(wo()*(t-e+1))}function lc(e,t,n,i){for(var a=-1,s=te(Tn((t-e)/(n||1)),0),c=g(s);s--;)c[i?s:++a]=e,e+=n;return c}function Vr(e,t){var n="";if(!e||t<1||t>je)return n;do t%2&&(n+=e),t=En(t/2),t&&(e+=e);while(t);return n}function P(e,t){return ci(ba(e,t,de),e+"")}function sc(e){return Io(kt(e))}function uc(e,t){var n=kt(e);return Jn(n,gt(t,0,n.length))}function on(e,t,n,i){if(!J(e))return e;t=at(t,e);for(var a=-1,s=t.length,c=s-1,p=e;p!=null&&++a<s;){var d=Ne(t[a]),y=n;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(a!=c){var v=p[d];y=i?i(v,d,p):r,y===r&&(y=J(v)?v:Je(t[a+1])?[]:{})}en(p,d,y),p=p[d]}return e}var $o=Dn?function(e,t){return Dn.set(e,t),e}:de,cc=Fn?function(e,t){return Fn(e,"toString",{configurable:!0,enumerable:!1,value:xi(t),writable:!0})}:de;function pc(e){return Jn(kt(e))}function Be(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=g(a);++i<a;)s[i]=e[i+t];return s}function fc(e,t){var n;return it(e,function(i,a,s){return n=t(i,a,s),!n}),!!n}function Un(e,t,n){var i=0,a=e==null?i:e.length;if(typeof t=="number"&&t===t&&a<=hl){for(;i<a;){var s=i+a>>>1,c=e[s];c!==null&&!ve(c)&&(n?c<=t:c<t)?i=s+1:a=s}return a}return Yr(e,t,de,n)}function Yr(e,t,n,i){var a=0,s=e==null?0:e.length;if(s===0)return 0;t=n(t);for(var c=t!==t,p=t===null,d=ve(t),y=t===r;a<s;){var v=En((a+s)/2),x=n(e[v]),C=x!==r,I=x===null,A=x===x,D=ve(x);if(c)var R=i||A;else y?R=A&&(i||C):p?R=A&&C&&(i||!I):d?R=A&&C&&!I&&(i||!D):I||D?R=!1:R=i?x<=t:x<t;R?a=v+1:s=v}return oe(s,dl)}function Ko(e,t){for(var n=-1,i=e.length,a=0,s=[];++n<i;){var c=e[n],p=t?t(c):c;if(!n||!Pe(p,d)){var d=p;s[a++]=c===0?0:c}}return s}function qo(e){return typeof e=="number"?e:ve(e)?pn:+e}function ye(e){if(typeof e=="string")return e;if(T(e))return q(e,ye)+"";if(ve(e))return Co?Co.call(e):"";var t=e+"";return t=="0"&&1/e==-ct?"-0":t}function ot(e,t,n){var i=-1,a=bn,s=e.length,c=!0,p=[],d=p;if(n)c=!1,a=wr;else if(s>=b){var y=t?null:wc(e);if(y)return _n(y);c=!1,a=Yt,d=new ht}else d=t?[]:p;e:for(;++i<s;){var v=e[i],x=t?t(v):v;if(v=n||v!==0?v:0,c&&x===x){for(var C=d.length;C--;)if(d[C]===x)continue e;t&&d.push(x),p.push(v)}else a(d,x,n)||(d!==p&&d.push(x),p.push(v))}return p}function Jr(e,t){return t=at(t,e),e=xa(e,t),e==null||delete e[Ne(Ae(t))]}function Vo(e,t,n,i){return on(e,t,n(mt(e,t)),i)}function Nn(e,t,n,i){for(var a=e.length,s=i?a:-1;(i?s--:++s<a)&&t(e[s],s,e););return n?Be(e,i?0:s,i?s+1:a):Be(e,i?s+1:0,i?a:s)}function Yo(e,t){var n=e;return n instanceof H&&(n=n.value()),Cr(t,function(i,a){return a.func.apply(a.thisArg,tt([i],a.args))},n)}function Zr(e,t,n){var i=e.length;if(i<2)return i?ot(e[0]):[];for(var a=-1,s=g(i);++a<i;)for(var c=e[a],p=-1;++p<i;)p!=a&&(s[a]=tn(s[a]||c,e[p],t,n));return ot(ie(s,1),t,n)}function Jo(e,t,n){for(var i=-1,a=e.length,s=t.length,c={};++i<a;){var p=i<s?t[i]:r;n(c,e[i],p)}return c}function Xr(e){return X(e)?e:[]}function Qr(e){return typeof e=="function"?e:de}function at(e,t){return T(e)?e:li(e,t)?[e]:Ca(U(e))}var dc=P;function lt(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:Be(e,t,n)}var Zo=eu||function(e){return re.clearTimeout(e)};function Xo(e,t){if(t)return e.slice();var n=e.length,i=vo?vo(n):new e.constructor(n);return e.copy(i),i}function jr(e){var t=new e.constructor(e.byteLength);return new Bn(t).set(new Bn(e)),t}function hc(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function gc(e){var t=new e.constructor(e.source,Di.exec(e));return t.lastIndex=e.lastIndex,t}function mc(e){return jt?z(jt.call(e)):{}}function Qo(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var n=e!==r,i=e===null,a=e===e,s=ve(e),c=t!==r,p=t===null,d=t===t,y=ve(t);if(!p&&!y&&!s&&e>t||s&&c&&d&&!p&&!y||i&&c&&d||!n&&d||!a)return 1;if(!i&&!s&&!y&&e<t||y&&n&&a&&!i&&!s||p&&n&&a||!c&&a||!d)return-1}return 0}function yc(e,t,n){for(var i=-1,a=e.criteria,s=t.criteria,c=a.length,p=n.length;++i<c;){var d=jo(a[i],s[i]);if(d){if(i>=p)return d;var y=n[i];return d*(y=="desc"?-1:1)}}return e.index-t.index}function ea(e,t,n,i){for(var a=-1,s=e.length,c=n.length,p=-1,d=t.length,y=te(s-c,0),v=g(d+y),x=!i;++p<d;)v[p]=t[p];for(;++a<c;)(x||a<s)&&(v[n[a]]=e[a]);for(;y--;)v[p++]=e[a++];return v}function ta(e,t,n,i){for(var a=-1,s=e.length,c=-1,p=n.length,d=-1,y=t.length,v=te(s-p,0),x=g(v+y),C=!i;++a<v;)x[a]=e[a];for(var I=a;++d<y;)x[I+d]=t[d];for(;++c<p;)(C||a<s)&&(x[I+n[c]]=e[a++]);return x}function ce(e,t){var n=-1,i=e.length;for(t||(t=g(i));++n<i;)t[n]=e[n];return t}function Ue(e,t,n,i){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var p=t[s],d=i?i(n[p],e[p],p,n,e):r;d===r&&(d=e[p]),a?qe(n,p,d):en(n,p,d)}return n}function vc(e,t){return Ue(e,ai(e),t)}function bc(e,t){return Ue(e,ha(e),t)}function Gn(e,t){return function(n,i){var a=T(n)?Cs:Nu,s=t?t():{};return a(n,e,B(i,2),s)}}function Mt(e){return P(function(t,n){var i=-1,a=n.length,s=a>1?n[a-1]:r,c=a>2?n[2]:r;for(s=e.length>3&&typeof s=="function"?(a--,s):r,c&&se(n[0],n[1],c)&&(s=a<3?r:s,a=1),t=z(t);++i<a;){var p=n[i];p&&e(t,p,i,s)}return t})}function na(e,t){return function(n,i){if(n==null)return n;if(!pe(n))return e(n,i);for(var a=n.length,s=t?a:-1,c=z(n);(t?s--:++s<a)&&i(c[s],s,c)!==!1;);return n}}function ra(e){return function(t,n,i){for(var a=-1,s=z(t),c=i(t),p=c.length;p--;){var d=c[e?p:++a];if(n(s[d],d,s)===!1)break}return t}}function xc(e,t,n){var i=t&_e,a=an(e);function s(){var c=this&&this!==re&&this instanceof s?a:e;return c.apply(i?n:this,arguments)}return s}function ia(e){return function(t){t=U(t);var n=At(t)?Ee(t):r,i=n?n[0]:t.charAt(0),a=n?lt(n,1).join(""):t.slice(1);return i[e]()+a}}function Ht(e){return function(t){return Cr(nl(tl(t).replace(cs,"")),e,"")}}function an(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Pt(e.prototype),i=e.apply(n,t);return J(i)?i:n}}function _c(e,t,n){var i=an(e);function a(){for(var s=arguments.length,c=g(s),p=s,d=Ot(a);p--;)c[p]=arguments[p];var y=s<3&&c[0]!==d&&c[s-1]!==d?[]:nt(c,d);if(s-=y.length,s<n)return ua(e,t,zn,a.placeholder,r,c,y,r,r,n-s);var v=this&&this!==re&&this instanceof a?i:e;return ge(v,this,c)}return a}function oa(e){return function(t,n,i){var a=z(t);if(!pe(t)){var s=B(n,3);t=ne(t),n=function(p){return s(a[p],p,a)}}var c=e(t,n,i);return c>-1?a[s?t[c]:c]:r}}function aa(e){return Ye(function(t){var n=t.length,i=n,a=Le.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if(typeof s!="function")throw new Ce(S);if(a&&!c&&Vn(s)=="wrapper")var c=new Le([],!0)}for(i=c?i:n;++i<n;){s=t[i];var p=Vn(s),d=p=="wrapper"?ii(s):r;d&&si(d[0])&&d[1]==(Ge|He|Oe|Ut)&&!d[4].length&&d[9]==1?c=c[Vn(d[0])].apply(c,d[3]):c=s.length==1&&si(s)?c[p]():c.thru(s)}return function(){var y=arguments,v=y[0];if(c&&y.length==1&&T(v))return c.plant(v).value();for(var x=0,C=n?t[x].apply(this,y):v;++x<n;)C=t[x].call(this,C);return C}})}function zn(e,t,n,i,a,s,c,p,d,y){var v=t&Ge,x=t&_e,C=t&ut,I=t&(He|St),A=t&ir,D=C?r:an(e);function R(){for(var M=arguments.length,W=g(M),be=M;be--;)W[be]=arguments[be];if(I)var ue=Ot(R),xe=Ds(W,ue);if(i&&(W=ea(W,i,a,I)),s&&(W=ta(W,s,c,I)),M-=xe,I&&M<y){var Q=nt(W,ue);return ua(e,t,zn,R.placeholder,n,W,Q,p,d,y-M)}var Me=x?n:this,Qe=C?Me[e]:e;return M=W.length,p?W=Nc(W,p):A&&M>1&&W.reverse(),v&&d<M&&(W.length=d),this&&this!==re&&this instanceof R&&(Qe=D||an(Qe)),Qe.apply(Me,W)}return R}function la(e,t){return function(n,i){return Ju(n,e,t(i),{})}}function $n(e,t){return function(n,i){var a;if(n===r&&i===r)return t;if(n!==r&&(a=n),i!==r){if(a===r)return i;typeof n=="string"||typeof i=="string"?(n=ye(n),i=ye(i)):(n=qo(n),i=qo(i)),a=e(n,i)}return a}}function ei(e){return Ye(function(t){return t=q(t,me(B())),P(function(n){var i=this;return e(t,function(a){return ge(a,i,n)})})})}function Kn(e,t){t=t===r?" ":ye(t);var n=t.length;if(n<2)return n?Vr(t,e):t;var i=Vr(t,Tn(e/Rt(t)));return At(t)?lt(Ee(i),0,e).join(""):i.slice(0,e)}function Sc(e,t,n,i){var a=t&_e,s=an(e);function c(){for(var p=-1,d=arguments.length,y=-1,v=i.length,x=g(v+d),C=this&&this!==re&&this instanceof c?s:e;++y<v;)x[y]=i[y];for(;d--;)x[y++]=arguments[++p];return ge(C,a?n:this,x)}return c}function sa(e){return function(t,n,i){return i&&typeof i!="number"&&se(t,n,i)&&(n=i=r),t=Xe(t),n===r?(n=t,t=0):n=Xe(n),i=i===r?t<n?1:-1:Xe(i),lc(t,n,i,e)}}function qn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Re(t),n=Re(n)),e(t,n)}}function ua(e,t,n,i,a,s,c,p,d,y){var v=t&He,x=v?c:r,C=v?r:c,I=v?s:r,A=v?r:s;t|=v?Oe:wt,t&=~(v?wt:Oe),t&Ii||(t&=~(_e|ut));var D=[e,t,a,I,x,A,C,p,d,y],R=n.apply(r,D);return si(e)&&_a(R,D),R.placeholder=i,Sa(R,e,t)}function ti(e){var t=ee[e];return function(n,i){if(n=Re(n),i=i==null?0:oe(E(i),292),i&&So(n)){var a=(U(n)+"e").split("e"),s=t(a[0]+"e"+(+a[1]+i));return a=(U(s)+"e").split("e"),+(a[0]+"e"+(+a[1]-i))}return t(n)}}var wc=Et&&1/_n(new Et([,-0]))[1]==ct?function(e){return new Et(e)}:wi;function ca(e){return function(t){var n=ae(t);return n==Fe?Tr(t):n==Te?Us(t):Es(t,e(t))}}function Ve(e,t,n,i,a,s,c,p){var d=t&ut;if(!d&&typeof e!="function")throw new Ce(S);var y=i?i.length:0;if(y||(t&=~(Oe|wt),i=a=r),c=c===r?c:te(E(c),0),p=p===r?p:E(p),y-=a?a.length:0,t&wt){var v=i,x=a;i=a=r}var C=d?r:ii(e),I=[e,t,n,i,a,v,x,s,c,p];if(C&&Wc(I,C),e=I[0],t=I[1],n=I[2],i=I[3],a=I[4],p=I[9]=I[9]===r?d?0:e.length:te(I[9]-y,0),!p&&t&(He|St)&&(t&=~(He|St)),!t||t==_e)var A=xc(e,t,n);else t==He||t==St?A=_c(e,t,p):(t==Oe||t==(_e|Oe))&&!a.length?A=Sc(e,t,n,i):A=zn.apply(r,I);var D=C?$o:_a;return Sa(D(A,I),e,t)}function pa(e,t,n,i){return e===r||Pe(e,Tt[n])&&!N.call(i,n)?t:e}function fa(e,t,n,i,a,s){return J(e)&&J(t)&&(s.set(t,e),kn(e,t,r,fa,s),s.delete(t)),e}function Cc(e){return un(e)?r:e}function da(e,t,n,i,a,s){var c=n&_t,p=e.length,d=t.length;if(p!=d&&!(c&&d>p))return!1;var y=s.get(e),v=s.get(t);if(y&&v)return y==t&&v==e;var x=-1,C=!0,I=n&cn?new ht:r;for(s.set(e,t),s.set(t,e);++x<p;){var A=e[x],D=t[x];if(i)var R=c?i(D,A,x,t,e,s):i(A,D,x,e,t,s);if(R!==r){if(R)continue;C=!1;break}if(I){if(!Lr(t,function(M,W){if(!Yt(I,W)&&(A===M||a(A,M,n,i,s)))return I.push(W)})){C=!1;break}}else if(!(A===D||a(A,D,n,i,s))){C=!1;break}}return s.delete(e),s.delete(t),C}function Lc(e,t,n,i,a,s,c){switch(n){case Lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Vt:return!(e.byteLength!=t.byteLength||!s(new Bn(e),new Bn(t)));case Nt:case Gt:case zt:return Pe(+e,+t);case dn:return e.name==t.name&&e.message==t.message;case $t:case Kt:return e==t+"";case Fe:var p=Tr;case Te:var d=i&_t;if(p||(p=_n),e.size!=t.size&&!d)return!1;var y=c.get(e);if(y)return y==t;i|=cn,c.set(e,t);var v=da(p(e),p(t),i,a,s,c);return c.delete(e),v;case gn:if(jt)return jt.call(e)==jt.call(t)}return!1}function Ic(e,t,n,i,a,s){var c=n&_t,p=ni(e),d=p.length,y=ni(t),v=y.length;if(d!=v&&!c)return!1;for(var x=d;x--;){var C=p[x];if(!(c?C in t:N.call(t,C)))return!1}var I=s.get(e),A=s.get(t);if(I&&A)return I==t&&A==e;var D=!0;s.set(e,t),s.set(t,e);for(var R=c;++x<d;){C=p[x];var M=e[C],W=t[C];if(i)var be=c?i(W,M,C,t,e,s):i(M,W,C,e,t,s);if(!(be===r?M===W||a(M,W,n,i,s):be)){D=!1;break}R||(R=C=="constructor")}if(D&&!R){var ue=e.constructor,xe=t.constructor;ue!=xe&&"constructor"in e&&"constructor"in t&&!(typeof ue=="function"&&ue instanceof ue&&typeof xe=="function"&&xe instanceof xe)&&(D=!1)}return s.delete(e),s.delete(t),D}function Ye(e){return ci(ba(e,r,Aa),e+"")}function ni(e){return Do(e,ne,ai)}function ri(e){return Do(e,fe,ha)}var ii=Dn?function(e){return Dn.get(e)}:wi;function Vn(e){for(var t=e.name+"",n=Dt[t],i=N.call(Dt,t)?n.length:0;i--;){var a=n[i],s=a.func;if(s==null||s==e)return a.name}return t}function Ot(e){var t=N.call(l,"placeholder")?l:e;return t.placeholder}function B(){var e=l.iteratee||_i;return e=e===_i?Ho:e,arguments.length?e(arguments[0],arguments[1]):e}function Yn(e,t){var n=e.__data__;return Pc(t)?n[typeof t=="string"?"string":"hash"]:n.map}function oi(e){for(var t=ne(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,ya(a)]}return t}function yt(e,t){var n=Os(e,t);return Mo(n)?n:r}function Bc(e){var t=N.call(e,ft),n=e[ft];try{e[ft]=r;var i=!0}catch{}var a=Ln.call(e);return i&&(t?e[ft]=n:delete e[ft]),a}var ai=Dr?function(e){return e==null?[]:(e=z(e),et(Dr(e),function(t){return xo.call(e,t)}))}:Ci,ha=Dr?function(e){for(var t=[];e;)tt(t,ai(e)),e=An(e);return t}:Ci,ae=le;(Pr&&ae(new Pr(new ArrayBuffer(1)))!=Lt||Zt&&ae(new Zt)!=Fe||Mr&&ae(Mr.resolve())!=Ri||Et&&ae(new Et)!=Te||Xt&&ae(new Xt)!=qt)&&(ae=function(e){var t=le(e),n=t==ze?e.constructor:r,i=n?vt(n):"";if(i)switch(i){case uu:return Lt;case cu:return Fe;case pu:return Ri;case fu:return Te;case du:return qt}return t});function Ac(e,t,n){for(var i=-1,a=n.length;++i<a;){var s=n[i],c=s.size;switch(s.type){case"drop":e+=c;break;case"dropRight":t-=c;break;case"take":t=oe(t,e+c);break;case"takeRight":e=te(e,t-c);break}}return{start:e,end:t}}function Rc(e){var t=e.match(Ml);return t?t[1].split(Hl):[]}function ga(e,t,n){t=at(t,e);for(var i=-1,a=t.length,s=!1;++i<a;){var c=Ne(t[i]);if(!(s=e!=null&&n(e,c)))break;e=e[c]}return s||++i!=a?s:(a=e==null?0:e.length,!!a&&tr(a)&&Je(c,a)&&(T(e)||bt(e)))}function Fc(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&N.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ma(e){return typeof e.constructor=="function"&&!ln(e)?Pt(An(e)):{}}function Tc(e,t,n){var i=e.constructor;switch(t){case Vt:return jr(e);case Nt:case Gt:return new i(+e);case Lt:return hc(e,n);case or:case ar:case lr:case sr:case ur:case cr:case pr:case fr:case dr:return Qo(e,n);case Fe:return new i;case zt:case Kt:return new i(e);case $t:return gc(e);case Te:return new i;case gn:return mc(e)}}function Ec(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Pl,`{
|
|
8
|
+
*/(function(o,u){(function(){var r,h="4.17.21",x=200,w="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",S="Expected a function",M="Invalid `variable` option passed into `_.template`",U="__lodash_hash_undefined__",J=500,$="__lodash_placeholder__",K=1,oe=2,bt=4,_t=1,pn=2,_e=1,ut=2,Ii=4,He=8,St=16,We=32,wt=64,Ge=128,Ut=256,ir=512,al=30,ll="...",sl=800,ul=16,Bi=1,pl=2,cl=3,pt=1/0,je=9007199254740991,fl=17976931348623157e292,cn=0/0,Oe=4294967295,dl=Oe-1,hl=Oe>>>1,gl=[["ary",Ge],["bind",_e],["bindKey",ut],["curry",He],["curryRight",St],["flip",ir],["partial",We],["partialRight",wt],["rearg",Ut]],Ct="[object Arguments]",fn="[object Array]",ml="[object AsyncFunction]",Nt="[object Boolean]",Gt="[object Date]",yl="[object DOMException]",dn="[object Error]",hn="[object Function]",Ai="[object GeneratorFunction]",Te="[object Map]",zt="[object Number]",vl="[object Null]",ze="[object Object]",Fi="[object Promise]",xl="[object Proxy]",$t="[object RegExp]",Re="[object Set]",Kt="[object String]",gn="[object Symbol]",bl="[object Undefined]",qt="[object WeakMap]",_l="[object WeakSet]",Vt="[object ArrayBuffer]",Lt="[object DataView]",or="[object Float32Array]",ar="[object Float64Array]",lr="[object Int8Array]",sr="[object Int16Array]",ur="[object Int32Array]",pr="[object Uint8Array]",cr="[object Uint8ClampedArray]",fr="[object Uint16Array]",dr="[object Uint32Array]",Sl=/\b__p \+= '';/g,wl=/\b(__p \+=) '' \+/g,Cl=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ti=/&(?:amp|lt|gt|quot|#39);/g,Ri=/[&<>"']/g,Ll=RegExp(Ti.source),Il=RegExp(Ri.source),Bl=/<%-([\s\S]+?)%>/g,Al=/<%([\s\S]+?)%>/g,Ei=/<%=([\s\S]+?)%>/g,Fl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tl=/^\w*$/,Rl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hr=/[\\^$.*+?()[\]{}|]/g,El=RegExp(hr.source),gr=/^\s+/,Dl=/\s/,Pl=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ml=/\{\n\/\* \[wrapped with (.+)\] \*/,Hl=/,? & /,Wl=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ol=/[()=,{}\[\]\/\s]/,kl=/\\(\\)?/g,Ul=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Di=/\w*$/,Nl=/^[-+]0x[0-9a-f]+$/i,Gl=/^0b[01]+$/i,zl=/^\[object .+?Constructor\]$/,$l=/^0o[0-7]+$/i,Kl=/^(?:0|[1-9]\d*)$/,ql=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,mn=/($^)/,Vl=/['\n\r\u2028\u2029\\]/g,yn="\\ud800-\\udfff",Yl="\\u0300-\\u036f",Jl="\\ufe20-\\ufe2f",Zl="\\u20d0-\\u20ff",Pi=Yl+Jl+Zl,Mi="\\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",Wi="A-Z\\xc0-\\xd6\\xd8-\\xde",Oi="\\ufe0e\\ufe0f",ki=Xl+Ql+jl+es,mr="['\u2019]",ts="["+yn+"]",Ui="["+ki+"]",vn="["+Pi+"]",Ni="\\d+",ns="["+Mi+"]",Gi="["+Hi+"]",zi="[^"+yn+ki+Ni+Mi+Hi+Wi+"]",yr="\\ud83c[\\udffb-\\udfff]",rs="(?:"+vn+"|"+yr+")",$i="[^"+yn+"]",vr="(?:\\ud83c[\\udde6-\\uddff]){2}",xr="[\\ud800-\\udbff][\\udc00-\\udfff]",It="["+Wi+"]",Ki="\\u200d",qi="(?:"+Gi+"|"+zi+")",is="(?:"+It+"|"+zi+")",Vi="(?:"+mr+"(?:d|ll|m|re|s|t|ve))?",Yi="(?:"+mr+"(?:D|LL|M|RE|S|T|VE))?",Ji=rs+"?",Zi="["+Oi+"]?",os="(?:"+Ki+"(?:"+[$i,vr,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,vr,xr].join("|")+")"+Xi,us="(?:"+[$i+vn+"?",vn,vr,xr,ts].join("|")+")",ps=RegExp(mr,"g"),cs=RegExp(vn,"g"),br=RegExp(yr+"(?="+yr+")|"+us+Xi,"g"),fs=RegExp([It+"?"+Gi+"+"+Vi+"(?="+[Ui,It,"$"].join("|")+")",is+"+"+Yi+"(?="+[Ui,It+qi,"$"].join("|")+")",It+"?"+qi+"+"+Vi,It+"+"+Yi,ls,as,Ni,ss].join("|"),"g"),ds=RegExp("["+Ki+yn+Pi+Oi+"]"),hs=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,gs=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ms=-1,V={};V[or]=V[ar]=V[lr]=V[sr]=V[ur]=V[pr]=V[cr]=V[fr]=V[dr]=!0,V[Ct]=V[fn]=V[Vt]=V[Nt]=V[Lt]=V[Gt]=V[dn]=V[hn]=V[Te]=V[zt]=V[ze]=V[$t]=V[Re]=V[Kt]=V[qt]=!1;var q={};q[Ct]=q[fn]=q[Vt]=q[Lt]=q[Nt]=q[Gt]=q[or]=q[ar]=q[lr]=q[sr]=q[ur]=q[Te]=q[zt]=q[ze]=q[$t]=q[Re]=q[Kt]=q[gn]=q[pr]=q[cr]=q[fr]=q[dr]=!0,q[dn]=q[hn]=q[qt]=!1;var ys={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},vs={"&":"&","<":"<",">":">",'"':""","'":"'"},xs={"&":"&","<":"<",">":">",""":'"',"'":"'"},bs={"\\":"\\","'":"'","\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,re=Qi||ws||Function("return this")(),_r=u&&!u.nodeType&&u,ct=_r&&!0&&o&&!o.nodeType&&o,ji=ct&&ct.exports===_r,Sr=ji&&Qi.process,Se=function(){try{var f=ct&&ct.require&&ct.require("util").types;return f||Sr&&Sr.binding&&Sr.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 ge(f,m,g){switch(g.length){case 0:return f.call(m);case 1:return f.call(m,g[0]);case 2:return f.call(m,g[0],g[1]);case 3:return f.call(m,g[0],g[1],g[2])}return f.apply(m,g)}function Cs(f,m,g,L){for(var T=-1,k=f==null?0:f.length;++T<k;){var ee=f[T];m(L,ee,g(ee),f)}return L}function we(f,m){for(var g=-1,L=f==null?0:f.length;++g<L&&m(f[g],g,f)!==!1;);return f}function Ls(f,m){for(var g=f==null?0:f.length;g--&&m(f[g],g,f)!==!1;);return f}function ao(f,m){for(var g=-1,L=f==null?0:f.length;++g<L;)if(!m(f[g],g,f))return!1;return!0}function et(f,m){for(var g=-1,L=f==null?0:f.length,T=0,k=[];++g<L;){var ee=f[g];m(ee,g,f)&&(k[T++]=ee)}return k}function xn(f,m){var g=f==null?0:f.length;return!!g&&Bt(f,m,0)>-1}function wr(f,m,g){for(var L=-1,T=f==null?0:f.length;++L<T;)if(g(m,f[L]))return!0;return!1}function Y(f,m){for(var g=-1,L=f==null?0:f.length,T=Array(L);++g<L;)T[g]=m(f[g],g,f);return T}function tt(f,m){for(var g=-1,L=m.length,T=f.length;++g<L;)f[T+g]=m[g];return f}function Cr(f,m,g,L){var T=-1,k=f==null?0:f.length;for(L&&k&&(g=f[++T]);++T<k;)g=m(g,f[T],T,f);return g}function Is(f,m,g,L){var T=f==null?0:f.length;for(L&&T&&(g=f[--T]);T--;)g=m(g,f[T],T,f);return g}function Lr(f,m){for(var g=-1,L=f==null?0:f.length;++g<L;)if(m(f[g],g,f))return!0;return!1}var Bs=Ir("length");function As(f){return f.split("")}function Fs(f){return f.match(Wl)||[]}function lo(f,m,g){var L;return g(f,function(T,k,ee){if(m(T,k,ee))return L=k,!1}),L}function bn(f,m,g,L){for(var T=f.length,k=g+(L?1:-1);L?k--:++k<T;)if(m(f[k],k,f))return k;return-1}function Bt(f,m,g){return m===m?Ns(f,m,g):bn(f,so,g)}function Ts(f,m,g,L){for(var T=g-1,k=f.length;++T<k;)if(L(f[T],m))return T;return-1}function so(f){return f!==f}function uo(f,m){var g=f==null?0:f.length;return g?Ar(f,m)/g:cn}function Ir(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,g,L,T){return T(f,function(k,ee,z){g=L?(L=!1,k):m(g,k,ee,z)}),g}function Rs(f,m){var g=f.length;for(f.sort(m);g--;)f[g]=f[g].value;return f}function Ar(f,m){for(var g,L=-1,T=f.length;++L<T;){var k=m(f[L]);k!==r&&(g=g===r?k:g+k)}return g}function Fr(f,m){for(var g=-1,L=Array(f);++g<f;)L[g]=m(g);return L}function Es(f,m){return Y(m,function(g){return[g,f[g]]})}function co(f){return f&&f.slice(0,mo(f)+1).replace(gr,"")}function me(f){return function(m){return f(m)}}function Tr(f,m){return Y(m,function(g){return f[g]})}function Yt(f,m){return f.has(m)}function fo(f,m){for(var g=-1,L=f.length;++g<L&&Bt(m,f[g],0)>-1;);return g}function ho(f,m){for(var g=f.length;g--&&Bt(m,f[g],0)>-1;);return g}function Ds(f,m){for(var g=f.length,L=0;g--;)f[g]===m&&++L;return L}var Ps=Br(ys),Ms=Br(vs);function Hs(f){return"\\"+bs[f]}function Ws(f,m){return f==null?r:f[m]}function At(f){return ds.test(f)}function Os(f){return hs.test(f)}function ks(f){for(var m,g=[];!(m=f.next()).done;)g.push(m.value);return g}function Rr(f){var m=-1,g=Array(f.size);return f.forEach(function(L,T){g[++m]=[T,L]}),g}function go(f,m){return function(g){return f(m(g))}}function nt(f,m){for(var g=-1,L=f.length,T=0,k=[];++g<L;){var ee=f[g];(ee===m||ee===$)&&(f[g]=$,k[T++]=g)}return k}function _n(f){var m=-1,g=Array(f.size);return f.forEach(function(L){g[++m]=L}),g}function Us(f){var m=-1,g=Array(f.size);return f.forEach(function(L){g[++m]=[L,L]}),g}function Ns(f,m,g){for(var L=g-1,T=f.length;++L<T;)if(f[L]===m)return L;return-1}function Gs(f,m,g){for(var L=g+1;L--;)if(f[L]===m)return L;return L}function Ft(f){return At(f)?$s(f):Bs(f)}function Ee(f){return At(f)?Ks(f):As(f)}function mo(f){for(var m=f.length;m--&&Dl.test(f.charAt(m)););return m}var zs=Br(xs);function $s(f){for(var m=br.lastIndex=0;br.test(f);)++m;return m}function Ks(f){return f.match(br)||[]}function qs(f){return f.match(fs)||[]}var Vs=function f(m){m=m==null?re:Tt.defaults(re.Object(),m,Tt.pick(re,gs));var g=m.Array,L=m.Date,T=m.Error,k=m.Function,ee=m.Math,z=m.Object,Er=m.RegExp,Ys=m.String,Ce=m.TypeError,Sn=g.prototype,Js=k.prototype,Rt=z.prototype,wn=m["__core-js_shared__"],Cn=Js.toString,G=Rt.hasOwnProperty,Zs=0,yo=function(){var e=/[^.]+$/.exec(wn&&wn.keys&&wn.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ln=Rt.toString,Xs=Cn.call(z),Qs=re._,js=Er("^"+Cn.call(G).replace(hr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),In=ji?m.Buffer:r,rt=m.Symbol,Bn=m.Uint8Array,vo=In?In.allocUnsafe:r,An=go(z.getPrototypeOf,z),xo=z.create,bo=Rt.propertyIsEnumerable,Fn=Sn.splice,_o=rt?rt.isConcatSpreadable:r,Jt=rt?rt.iterator:r,ft=rt?rt.toStringTag:r,Tn=function(){try{var e=yt(z,"defineProperty");return e({},"",{}),e}catch{}}(),eu=m.clearTimeout!==re.clearTimeout&&m.clearTimeout,tu=L&&L.now!==re.Date.now&&L.now,nu=m.setTimeout!==re.setTimeout&&m.setTimeout,Rn=ee.ceil,En=ee.floor,Dr=z.getOwnPropertySymbols,ru=In?In.isBuffer:r,So=m.isFinite,iu=Sn.join,ou=go(z.keys,z),te=ee.max,ae=ee.min,au=L.now,lu=m.parseInt,wo=ee.random,su=Sn.reverse,Pr=yt(m,"DataView"),Zt=yt(m,"Map"),Mr=yt(m,"Promise"),Et=yt(m,"Set"),Xt=yt(m,"WeakMap"),Qt=yt(z,"create"),Dn=Xt&&new Xt,Dt={},uu=vt(Pr),pu=vt(Zt),cu=vt(Mr),fu=vt(Et),du=vt(Xt),Pn=rt?rt.prototype:r,jt=Pn?Pn.valueOf:r,Co=Pn?Pn.toString:r;function l(e){if(X(e)&&!R(e)&&!(e instanceof W)){if(e instanceof Le)return e;if(G.call(e,"__wrapped__"))return La(e)}return new Le(e)}var Pt=function(){function e(){}return function(t){if(!Z(t))return{};if(xo)return xo(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:Bl,evaluate:Al,interpolate:Ei,variable:"",imports:{_:l}},l.prototype=Mn.prototype,l.prototype.constructor=l,Le.prototype=Pt(Mn.prototype),Le.prototype.constructor=Le;function W(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Oe,this.__views__=[]}function hu(){var e=new W(this.__wrapped__);return e.__actions__=ce(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ce(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ce(this.__views__),e}function gu(){if(this.__filtered__){var e=new W(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function mu(){var e=this.__wrapped__.value(),t=this.__dir__,n=R(e),i=t<0,a=n?e.length:0,s=Ap(0,a,this.__views__),p=s.start,c=s.end,d=c-p,y=i?c:p-1,v=this.__iteratees__,b=v.length,C=0,I=ae(d,this.__takeCount__);if(!n||!i&&a==d&&I==d)return Yo(e,this.__actions__);var A=[];e:for(;d--&&C<I;){y+=t;for(var D=-1,F=e[y];++D<b;){var H=v[D],O=H.iteratee,xe=H.type,pe=O(F);if(xe==pl)F=pe;else if(!pe){if(xe==Bi)continue e;break e}}A[C++]=F}return A}W.prototype=Pt(Mn.prototype),W.prototype.constructor=W;function dt(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function yu(){this.__data__=Qt?Qt(null):{},this.size=0}function vu(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}function xu(e){var t=this.__data__;if(Qt){var n=t[e];return n===U?r:n}return G.call(t,e)?t[e]:r}function bu(e){var t=this.__data__;return Qt?t[e]!==r:G.call(t,e)}function _u(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Qt&&t===r?U:t,this}dt.prototype.clear=yu,dt.prototype.delete=vu,dt.prototype.get=xu,dt.prototype.has=bu,dt.prototype.set=_u;function $e(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Su(){this.__data__=[],this.size=0}function wu(e){var t=this.__data__,n=Hn(t,e);if(n<0)return!1;var i=t.length-1;return n==i?t.pop():Fn.call(t,n,1),--this.size,!0}function Cu(e){var t=this.__data__,n=Hn(t,e);return n<0?r:t[n][1]}function Lu(e){return Hn(this.__data__,e)>-1}function Iu(e,t){var n=this.__data__,i=Hn(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}$e.prototype.clear=Su,$e.prototype.delete=wu,$e.prototype.get=Cu,$e.prototype.has=Lu,$e.prototype.set=Iu;function Ke(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Bu(){this.size=0,this.__data__={hash:new dt,map:new(Zt||$e),string:new dt}}function Au(e){var t=Yn(this,e).delete(e);return this.size-=t?1:0,t}function Fu(e){return Yn(this,e).get(e)}function Tu(e){return Yn(this,e).has(e)}function Ru(e,t){var n=Yn(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}Ke.prototype.clear=Bu,Ke.prototype.delete=Au,Ke.prototype.get=Fu,Ke.prototype.has=Tu,Ke.prototype.set=Ru;function ht(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ke;++t<n;)this.add(e[t])}function Eu(e){return this.__data__.set(e,U),this}function Du(e){return this.__data__.has(e)}ht.prototype.add=ht.prototype.push=Eu,ht.prototype.has=Du;function De(e){var t=this.__data__=new $e(e);this.size=t.size}function Pu(){this.__data__=new $e,this.size=0}function Mu(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Hu(e){return this.__data__.get(e)}function Wu(e){return this.__data__.has(e)}function Ou(e,t){var n=this.__data__;if(n instanceof $e){var i=n.__data__;if(!Zt||i.length<x-1)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ke(i)}return n.set(e,t),this.size=n.size,this}De.prototype.clear=Pu,De.prototype.delete=Mu,De.prototype.get=Hu,De.prototype.has=Wu,De.prototype.set=Ou;function Lo(e,t){var n=R(e),i=!n&&xt(e),a=!n&&!i&&st(e),s=!n&&!i&&!a&&Ot(e),p=n||i||a||s,c=p?Fr(e.length,Ys):[],d=c.length;for(var y in e)(t||G.call(e,y))&&!(p&&(y=="length"||a&&(y=="offset"||y=="parent")||s&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||Je(y,d)))&&c.push(y);return c}function Io(e){var t=e.length;return t?e[qr(0,t-1)]:r}function ku(e,t){return Jn(ce(e),gt(t,0,e.length))}function Uu(e){return Jn(ce(e))}function Hr(e,t,n){(n!==r&&!Pe(e[t],n)||n===r&&!(t in e))&&qe(e,t,n)}function en(e,t,n){var i=e[t];(!(G.call(e,t)&&Pe(i,n))||n===r&&!(t in e))&&qe(e,t,n)}function Hn(e,t){for(var n=e.length;n--;)if(Pe(e[n][0],t))return n;return-1}function Nu(e,t,n,i){return it(e,function(a,s,p){t(i,a,n(a),p)}),i}function Bo(e,t){return e&&Ue(t,ne(t),e)}function Gu(e,t){return e&&Ue(t,de(t),e)}function qe(e,t,n){t=="__proto__"&&Tn?Tn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Wr(e,t){for(var n=-1,i=t.length,a=g(i),s=e==null;++n<i;)a[n]=s?r:yi(e,t[n]);return a}function gt(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,i,a,s){var p,c=t&K,d=t&oe,y=t&bt;if(n&&(p=a?n(e,i,a,s):n(e)),p!==r)return p;if(!Z(e))return e;var v=R(e);if(v){if(p=Tp(e),!c)return ce(e,p)}else{var b=le(e),C=b==hn||b==Ai;if(st(e))return Xo(e,c);if(b==ze||b==Ct||C&&!a){if(p=d||C?{}:ma(e),!c)return d?xp(e,Gu(p,e)):vp(e,Bo(p,e))}else{if(!q[b])return a?e:{};p=Rp(e,b,c)}}s||(s=new De);var I=s.get(e);if(I)return I;s.set(e,p),Ka(e)?e.forEach(function(F){p.add(Ie(F,t,n,F,e,s))}):za(e)&&e.forEach(function(F,H){p.set(H,Ie(F,t,n,H,e,s))});var A=y?d?ri:ni:d?de:ne,D=v?r:A(e);return we(D||e,function(F,H){D&&(H=F,F=e[H]),en(p,H,Ie(F,t,n,H,e,s))}),p}function zu(e){var t=ne(e);return function(n){return Ao(n,e,t)}}function Ao(e,t,n){var i=n.length;if(e==null)return!i;for(e=z(e);i--;){var a=n[i],s=t[a],p=e[a];if(p===r&&!(a in e)||!s(p))return!1}return!0}function Fo(e,t,n){if(typeof e!="function")throw new Ce(S);return sn(function(){e.apply(r,n)},t)}function tn(e,t,n,i){var a=-1,s=xn,p=!0,c=e.length,d=[],y=t.length;if(!c)return d;n&&(t=Y(t,me(n))),i?(s=wr,p=!1):t.length>=x&&(s=Yt,p=!1,t=new ht(t));e:for(;++a<c;){var v=e[a],b=n==null?v:n(v);if(v=i||v!==0?v:0,p&&b===b){for(var C=y;C--;)if(t[C]===b)continue e;d.push(v)}else s(t,b,i)||d.push(v)}return d}var it=na(ke),To=na(kr,!0);function $u(e,t){var n=!0;return it(e,function(i,a,s){return n=!!t(i,a,s),n}),n}function Wn(e,t,n){for(var i=-1,a=e.length;++i<a;){var s=e[i],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,i){var a=e.length;for(n=E(n),n<0&&(n=-n>a?0:a+n),i=i===r||i>a?a:E(i),i<0&&(i+=a),i=n>i?0:Va(i);n<i;)e[n++]=t;return e}function Ro(e,t){var n=[];return it(e,function(i,a,s){t(i,a,s)&&n.push(i)}),n}function ie(e,t,n,i,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?ie(c,t-1,n,i,a):tt(a,c):i||(a[a.length]=c)}return a}var Or=ra(),Eo=ra(!0);function ke(e,t){return e&&Or(e,t,ne)}function kr(e,t){return e&&Eo(e,t,ne)}function On(e,t){return et(t,function(n){return Ze(e[n])})}function mt(e,t){t=at(t,e);for(var n=0,i=t.length;e!=null&&n<i;)e=e[Ne(t[n++])];return n&&n==i?e:r}function Do(e,t,n){var i=t(e);return R(e)?i:tt(i,n(e))}function se(e){return e==null?e===r?bl:vl:ft&&ft in z(e)?Bp(e):Up(e)}function Ur(e,t){return e>t}function qu(e,t){return e!=null&&G.call(e,t)}function Vu(e,t){return e!=null&&t in z(e)}function Yu(e,t,n){return e>=ae(t,n)&&e<te(t,n)}function Nr(e,t,n){for(var i=n?wr:xn,a=e[0].length,s=e.length,p=s,c=g(s),d=1/0,y=[];p--;){var v=e[p];p&&t&&(v=Y(v,me(t))),d=ae(v.length,d),c[p]=!n&&(t||a>=120&&v.length>=120)?new ht(p&&v):r}v=e[0];var b=-1,C=c[0];e:for(;++b<a&&y.length<d;){var I=v[b],A=t?t(I):I;if(I=n||I!==0?I:0,!(C?Yt(C,A):i(y,A,n))){for(p=s;--p;){var D=c[p];if(!(D?Yt(D,A):i(e[p],A,n)))continue e}C&&C.push(A),y.push(I)}}return y}function Ju(e,t,n,i){return ke(e,function(a,s,p){t(i,n(a),s,p)}),i}function nn(e,t,n){t=at(t,e),e=ba(e,t);var i=e==null?e:e[Ne(Ae(t))];return i==null?r:ge(i,e,n)}function Po(e){return X(e)&&se(e)==Ct}function Zu(e){return X(e)&&se(e)==Vt}function Xu(e){return X(e)&&se(e)==Gt}function rn(e,t,n,i,a){return e===t?!0:e==null||t==null||!X(e)&&!X(t)?e!==e&&t!==t:Qu(e,t,n,i,rn,a)}function Qu(e,t,n,i,a,s){var p=R(e),c=R(t),d=p?fn:le(e),y=c?fn:le(t);d=d==Ct?ze:d,y=y==Ct?ze:y;var v=d==ze,b=y==ze,C=d==y;if(C&&st(e)){if(!st(t))return!1;p=!0,v=!1}if(C&&!v)return s||(s=new De),p||Ot(e)?da(e,t,n,i,a,s):Lp(e,t,d,n,i,a,s);if(!(n&_t)){var I=v&&G.call(e,"__wrapped__"),A=b&&G.call(t,"__wrapped__");if(I||A){var D=I?e.value():e,F=A?t.value():t;return s||(s=new De),a(D,F,n,i,s)}}return C?(s||(s=new De),Ip(e,t,n,i,a,s)):!1}function ju(e){return X(e)&&le(e)==Te}function Gr(e,t,n,i){var a=n.length,s=a,p=!i;if(e==null)return!s;for(e=z(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],y=e[d],v=c[1];if(p&&c[2]){if(y===r&&!(d in e))return!1}else{var b=new De;if(i)var C=i(y,v,d,e,t,b);if(!(C===r?rn(v,y,_t|pn,i,b):C))return!1}}return!0}function Mo(e){if(!Z(e)||Mp(e))return!1;var t=Ze(e)?js:zl;return t.test(vt(e))}function ep(e){return X(e)&&se(e)==$t}function tp(e){return X(e)&&le(e)==Re}function np(e){return X(e)&&tr(e.length)&&!!V[se(e)]}function Ho(e){return typeof e=="function"?e:e==null?he:typeof e=="object"?R(e)?ko(e[0],e[1]):Oo(e):il(e)}function zr(e){if(!ln(e))return ou(e);var t=[];for(var n in z(e))G.call(e,n)&&n!="constructor"&&t.push(n);return t}function rp(e){if(!Z(e))return kp(e);var t=ln(e),n=[];for(var i in e)i=="constructor"&&(t||!G.call(e,i))||n.push(i);return n}function $r(e,t){return e<t}function Wo(e,t){var n=-1,i=fe(e)?g(e.length):[];return it(e,function(a,s,p){i[++n]=t(a,s,p)}),i}function Oo(e){var t=oi(e);return t.length==1&&t[0][2]?va(t[0][0],t[0][1]):function(n){return n===e||Gr(n,e,t)}}function ko(e,t){return li(e)&&ya(t)?va(Ne(e),t):function(n){var i=yi(n,e);return i===r&&i===t?vi(n,e):rn(t,i,_t|pn)}}function kn(e,t,n,i,a){e!==t&&Or(t,function(s,p){if(a||(a=new De),Z(s))ip(e,t,p,n,kn,i,a);else{var c=i?i(ui(e,p),s,p+"",e,t,a):r;c===r&&(c=s),Hr(e,p,c)}},de)}function ip(e,t,n,i,a,s,p){var c=ui(e,n),d=ui(t,n),y=p.get(d);if(y){Hr(e,n,y);return}var v=s?s(c,d,n+"",e,t,p):r,b=v===r;if(b){var C=R(d),I=!C&&st(d),A=!C&&!I&&Ot(d);v=d,C||I||A?R(c)?v=c:Q(c)?v=ce(c):I?(b=!1,v=Xo(d,!0)):A?(b=!1,v=Qo(d,!0)):v=[]:un(d)||xt(d)?(v=c,xt(c)?v=Ya(c):(!Z(c)||Ze(c))&&(v=ma(d))):b=!1}b&&(p.set(d,v),a(v,d,i,s,p),p.delete(d)),Hr(e,n,v)}function Uo(e,t){var n=e.length;if(!!n)return t+=t<0?n:0,Je(t,n)?e[t]:r}function No(e,t,n){t.length?t=Y(t,function(s){return R(s)?function(p){return mt(p,s.length===1?s[0]:s)}:s}):t=[he];var i=-1;t=Y(t,me(B()));var a=Wo(e,function(s,p,c){var d=Y(t,function(y){return y(s)});return{criteria:d,index:++i,value:s}});return Rs(a,function(s,p){return yp(s,p,n)})}function op(e,t){return Go(e,t,function(n,i){return vi(e,i)})}function Go(e,t,n){for(var i=-1,a=t.length,s={};++i<a;){var p=t[i],c=mt(e,p);n(c,p)&&on(s,at(p,e),c)}return s}function ap(e){return function(t){return mt(t,e)}}function Kr(e,t,n,i){var a=i?Ts:Bt,s=-1,p=t.length,c=e;for(e===t&&(t=ce(t)),n&&(c=Y(e,me(n)));++s<p;)for(var d=0,y=t[s],v=n?n(y):y;(d=a(c,v,d,i))>-1;)c!==e&&Fn.call(c,d,1),Fn.call(e,d,1);return e}function zo(e,t){for(var n=e?t.length:0,i=n-1;n--;){var a=t[n];if(n==i||a!==s){var s=a;Je(a)?Fn.call(e,a,1):Jr(e,a)}}return e}function qr(e,t){return e+En(wo()*(t-e+1))}function lp(e,t,n,i){for(var a=-1,s=te(Rn((t-e)/(n||1)),0),p=g(s);s--;)p[i?s:++a]=e,e+=n;return p}function Vr(e,t){var n="";if(!e||t<1||t>je)return n;do t%2&&(n+=e),t=En(t/2),t&&(e+=e);while(t);return n}function P(e,t){return pi(xa(e,t,he),e+"")}function sp(e){return Io(kt(e))}function up(e,t){var n=kt(e);return Jn(n,gt(t,0,n.length))}function on(e,t,n,i){if(!Z(e))return e;t=at(t,e);for(var a=-1,s=t.length,p=s-1,c=e;c!=null&&++a<s;){var d=Ne(t[a]),y=n;if(d==="__proto__"||d==="constructor"||d==="prototype")return e;if(a!=p){var v=c[d];y=i?i(v,d,c):r,y===r&&(y=Z(v)?v:Je(t[a+1])?[]:{})}en(c,d,y),c=c[d]}return e}var $o=Dn?function(e,t){return Dn.set(e,t),e}:he,pp=Tn?function(e,t){return Tn(e,"toString",{configurable:!0,enumerable:!1,value:bi(t),writable:!0})}:he;function cp(e){return Jn(kt(e))}function Be(e,t,n){var i=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=g(a);++i<a;)s[i]=e[i+t];return s}function fp(e,t){var n;return it(e,function(i,a,s){return n=t(i,a,s),!n}),!!n}function Un(e,t,n){var i=0,a=e==null?i:e.length;if(typeof t=="number"&&t===t&&a<=hl){for(;i<a;){var s=i+a>>>1,p=e[s];p!==null&&!ve(p)&&(n?p<=t:p<t)?i=s+1:a=s}return a}return Yr(e,t,he,n)}function Yr(e,t,n,i){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),y=t===r;a<s;){var v=En((a+s)/2),b=n(e[v]),C=b!==r,I=b===null,A=b===b,D=ve(b);if(p)var F=i||A;else y?F=A&&(i||C):c?F=A&&C&&(i||!I):d?F=A&&C&&!I&&(i||!D):I||D?F=!1:F=i?b<=t:b<t;F?a=v+1:s=v}return ae(s,dl)}function Ko(e,t){for(var n=-1,i=e.length,a=0,s=[];++n<i;){var p=e[n],c=t?t(p):p;if(!n||!Pe(c,d)){var d=c;s[a++]=p===0?0:p}}return s}function qo(e){return typeof e=="number"?e:ve(e)?cn:+e}function ye(e){if(typeof e=="string")return e;if(R(e))return Y(e,ye)+"";if(ve(e))return Co?Co.call(e):"";var t=e+"";return t=="0"&&1/e==-pt?"-0":t}function ot(e,t,n){var i=-1,a=xn,s=e.length,p=!0,c=[],d=c;if(n)p=!1,a=wr;else if(s>=x){var y=t?null:wp(e);if(y)return _n(y);p=!1,a=Yt,d=new ht}else d=t?[]:c;e:for(;++i<s;){var v=e[i],b=t?t(v):v;if(v=n||v!==0?v:0,p&&b===b){for(var C=d.length;C--;)if(d[C]===b)continue e;t&&d.push(b),c.push(v)}else a(d,b,n)||(d!==c&&d.push(b),c.push(v))}return c}function Jr(e,t){return t=at(t,e),e=ba(e,t),e==null||delete e[Ne(Ae(t))]}function Vo(e,t,n,i){return on(e,t,n(mt(e,t)),i)}function Nn(e,t,n,i){for(var a=e.length,s=i?a:-1;(i?s--:++s<a)&&t(e[s],s,e););return n?Be(e,i?0:s,i?s+1:a):Be(e,i?s+1:0,i?a:s)}function Yo(e,t){var n=e;return n instanceof W&&(n=n.value()),Cr(t,function(i,a){return a.func.apply(a.thisArg,tt([i],a.args))},n)}function Zr(e,t,n){var i=e.length;if(i<2)return i?ot(e[0]):[];for(var a=-1,s=g(i);++a<i;)for(var p=e[a],c=-1;++c<i;)c!=a&&(s[a]=tn(s[a]||p,e[c],t,n));return ot(ie(s,1),t,n)}function Jo(e,t,n){for(var i=-1,a=e.length,s=t.length,p={};++i<a;){var c=i<s?t[i]:r;n(p,e[i],c)}return p}function Xr(e){return Q(e)?e:[]}function Qr(e){return typeof e=="function"?e:he}function at(e,t){return R(e)?e:li(e,t)?[e]:Ca(N(e))}var dp=P;function lt(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:Be(e,t,n)}var Zo=eu||function(e){return re.clearTimeout(e)};function Xo(e,t){if(t)return e.slice();var n=e.length,i=vo?vo(n):new e.constructor(n);return e.copy(i),i}function jr(e){var t=new e.constructor(e.byteLength);return new Bn(t).set(new Bn(e)),t}function hp(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function gp(e){var t=new e.constructor(e.source,Di.exec(e));return t.lastIndex=e.lastIndex,t}function mp(e){return jt?z(jt.call(e)):{}}function Qo(e,t){var n=t?jr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function jo(e,t){if(e!==t){var n=e!==r,i=e===null,a=e===e,s=ve(e),p=t!==r,c=t===null,d=t===t,y=ve(t);if(!c&&!y&&!s&&e>t||s&&p&&d&&!c&&!y||i&&p&&d||!n&&d||!a)return 1;if(!i&&!s&&!y&&e<t||y&&n&&a&&!i&&!s||c&&n&&a||!p&&a||!d)return-1}return 0}function yp(e,t,n){for(var i=-1,a=e.criteria,s=t.criteria,p=a.length,c=n.length;++i<p;){var d=jo(a[i],s[i]);if(d){if(i>=c)return d;var y=n[i];return d*(y=="desc"?-1:1)}}return e.index-t.index}function ea(e,t,n,i){for(var a=-1,s=e.length,p=n.length,c=-1,d=t.length,y=te(s-p,0),v=g(d+y),b=!i;++c<d;)v[c]=t[c];for(;++a<p;)(b||a<s)&&(v[n[a]]=e[a]);for(;y--;)v[c++]=e[a++];return v}function ta(e,t,n,i){for(var a=-1,s=e.length,p=-1,c=n.length,d=-1,y=t.length,v=te(s-c,0),b=g(v+y),C=!i;++a<v;)b[a]=e[a];for(var I=a;++d<y;)b[I+d]=t[d];for(;++p<c;)(C||a<s)&&(b[I+n[p]]=e[a++]);return b}function ce(e,t){var n=-1,i=e.length;for(t||(t=g(i));++n<i;)t[n]=e[n];return t}function Ue(e,t,n,i){var a=!n;n||(n={});for(var s=-1,p=t.length;++s<p;){var c=t[s],d=i?i(n[c],e[c],c,n,e):r;d===r&&(d=e[c]),a?qe(n,c,d):en(n,c,d)}return n}function vp(e,t){return Ue(e,ai(e),t)}function xp(e,t){return Ue(e,ha(e),t)}function Gn(e,t){return function(n,i){var a=R(n)?Cs:Nu,s=t?t():{};return a(n,e,B(i,2),s)}}function Mt(e){return P(function(t,n){var i=-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&&ue(n[0],n[1],p)&&(s=a<3?r:s,a=1),t=z(t);++i<a;){var c=n[i];c&&e(t,c,i,s)}return t})}function na(e,t){return function(n,i){if(n==null)return n;if(!fe(n))return e(n,i);for(var a=n.length,s=t?a:-1,p=z(n);(t?s--:++s<a)&&i(p[s],s,p)!==!1;);return n}}function ra(e){return function(t,n,i){for(var a=-1,s=z(t),p=i(t),c=p.length;c--;){var d=p[e?c:++a];if(n(s[d],d,s)===!1)break}return t}}function bp(e,t,n){var i=t&_e,a=an(e);function s(){var p=this&&this!==re&&this instanceof s?a:e;return p.apply(i?n:this,arguments)}return s}function ia(e){return function(t){t=N(t);var n=At(t)?Ee(t):r,i=n?n[0]:t.charAt(0),a=n?lt(n,1).join(""):t.slice(1);return i[e]()+a}}function Ht(e){return function(t){return Cr(nl(tl(t).replace(ps,"")),e,"")}}function an(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Pt(e.prototype),i=e.apply(n,t);return Z(i)?i:n}}function _p(e,t,n){var i=an(e);function a(){for(var s=arguments.length,p=g(s),c=s,d=Wt(a);c--;)p[c]=arguments[c];var y=s<3&&p[0]!==d&&p[s-1]!==d?[]:nt(p,d);if(s-=y.length,s<n)return ua(e,t,zn,a.placeholder,r,p,y,r,r,n-s);var v=this&&this!==re&&this instanceof a?i:e;return ge(v,this,p)}return a}function oa(e){return function(t,n,i){var a=z(t);if(!fe(t)){var s=B(n,3);t=ne(t),n=function(c){return s(a[c],c,a)}}var p=e(t,n,i);return p>-1?a[s?t[p]:p]:r}}function aa(e){return Ye(function(t){var n=t.length,i=n,a=Le.prototype.thru;for(e&&t.reverse();i--;){var s=t[i];if(typeof s!="function")throw new Ce(S);if(a&&!p&&Vn(s)=="wrapper")var p=new Le([],!0)}for(i=p?i:n;++i<n;){s=t[i];var c=Vn(s),d=c=="wrapper"?ii(s):r;d&&si(d[0])&&d[1]==(Ge|He|We|Ut)&&!d[4].length&&d[9]==1?p=p[Vn(d[0])].apply(p,d[3]):p=s.length==1&&si(s)?p[c]():p.thru(s)}return function(){var y=arguments,v=y[0];if(p&&y.length==1&&R(v))return p.plant(v).value();for(var b=0,C=n?t[b].apply(this,y):v;++b<n;)C=t[b].call(this,C);return C}})}function zn(e,t,n,i,a,s,p,c,d,y){var v=t&Ge,b=t&_e,C=t&ut,I=t&(He|St),A=t&ir,D=C?r:an(e);function F(){for(var H=arguments.length,O=g(H),xe=H;xe--;)O[xe]=arguments[xe];if(I)var pe=Wt(F),be=Ds(O,pe);if(i&&(O=ea(O,i,a,I)),s&&(O=ta(O,s,p,I)),H-=be,I&&H<y){var j=nt(O,pe);return ua(e,t,zn,F.placeholder,n,O,j,c,d,y-H)}var Me=b?n:this,Qe=C?Me[e]:e;return H=O.length,c?O=Np(O,c):A&&H>1&&O.reverse(),v&&d<H&&(O.length=d),this&&this!==re&&this instanceof F&&(Qe=D||an(Qe)),Qe.apply(Me,O)}return F}function la(e,t){return function(n,i){return Ju(n,e,t(i),{})}}function $n(e,t){return function(n,i){var a;if(n===r&&i===r)return t;if(n!==r&&(a=n),i!==r){if(a===r)return i;typeof n=="string"||typeof i=="string"?(n=ye(n),i=ye(i)):(n=qo(n),i=qo(i)),a=e(n,i)}return a}}function ei(e){return Ye(function(t){return t=Y(t,me(B())),P(function(n){var i=this;return e(t,function(a){return ge(a,i,n)})})})}function Kn(e,t){t=t===r?" ":ye(t);var n=t.length;if(n<2)return n?Vr(t,e):t;var i=Vr(t,Rn(e/Ft(t)));return At(t)?lt(Ee(i),0,e).join(""):i.slice(0,e)}function Sp(e,t,n,i){var a=t&_e,s=an(e);function p(){for(var c=-1,d=arguments.length,y=-1,v=i.length,b=g(v+d),C=this&&this!==re&&this instanceof p?s:e;++y<v;)b[y]=i[y];for(;d--;)b[y++]=arguments[++c];return ge(C,a?n:this,b)}return p}function sa(e){return function(t,n,i){return i&&typeof i!="number"&&ue(t,n,i)&&(n=i=r),t=Xe(t),n===r?(n=t,t=0):n=Xe(n),i=i===r?t<n?1:-1:Xe(i),lp(t,n,i,e)}}function qn(e){return function(t,n){return typeof t=="string"&&typeof n=="string"||(t=Fe(t),n=Fe(n)),e(t,n)}}function ua(e,t,n,i,a,s,p,c,d,y){var v=t&He,b=v?p:r,C=v?r:p,I=v?s:r,A=v?r:s;t|=v?We:wt,t&=~(v?wt:We),t&Ii||(t&=~(_e|ut));var D=[e,t,a,I,b,A,C,c,d,y],F=n.apply(r,D);return si(e)&&_a(F,D),F.placeholder=i,Sa(F,e,t)}function ti(e){var t=ee[e];return function(n,i){if(n=Fe(n),i=i==null?0:ae(E(i),292),i&&So(n)){var a=(N(n)+"e").split("e"),s=t(a[0]+"e"+(+a[1]+i));return a=(N(s)+"e").split("e"),+(a[0]+"e"+(+a[1]-i))}return t(n)}}var wp=Et&&1/_n(new Et([,-0]))[1]==pt?function(e){return new Et(e)}:wi;function pa(e){return function(t){var n=le(t);return n==Te?Rr(t):n==Re?Us(t):Es(t,e(t))}}function Ve(e,t,n,i,a,s,p,c){var d=t&ut;if(!d&&typeof e!="function")throw new Ce(S);var y=i?i.length:0;if(y||(t&=~(We|wt),i=a=r),p=p===r?p:te(E(p),0),c=c===r?c:E(c),y-=a?a.length:0,t&wt){var v=i,b=a;i=a=r}var C=d?r:ii(e),I=[e,t,n,i,a,v,b,s,p,c];if(C&&Op(I,C),e=I[0],t=I[1],n=I[2],i=I[3],a=I[4],c=I[9]=I[9]===r?d?0:e.length:te(I[9]-y,0),!c&&t&(He|St)&&(t&=~(He|St)),!t||t==_e)var A=bp(e,t,n);else t==He||t==St?A=_p(e,t,c):(t==We||t==(_e|We))&&!a.length?A=Sp(e,t,n,i):A=zn.apply(r,I);var D=C?$o:_a;return Sa(D(A,I),e,t)}function ca(e,t,n,i){return e===r||Pe(e,Rt[n])&&!G.call(i,n)?t:e}function fa(e,t,n,i,a,s){return Z(e)&&Z(t)&&(s.set(t,e),kn(e,t,r,fa,s),s.delete(t)),e}function Cp(e){return un(e)?r:e}function da(e,t,n,i,a,s){var p=n&_t,c=e.length,d=t.length;if(c!=d&&!(p&&d>c))return!1;var y=s.get(e),v=s.get(t);if(y&&v)return y==t&&v==e;var b=-1,C=!0,I=n&pn?new ht:r;for(s.set(e,t),s.set(t,e);++b<c;){var A=e[b],D=t[b];if(i)var F=p?i(D,A,b,t,e,s):i(A,D,b,e,t,s);if(F!==r){if(F)continue;C=!1;break}if(I){if(!Lr(t,function(H,O){if(!Yt(I,O)&&(A===H||a(A,H,n,i,s)))return I.push(O)})){C=!1;break}}else if(!(A===D||a(A,D,n,i,s))){C=!1;break}}return s.delete(e),s.delete(t),C}function Lp(e,t,n,i,a,s,p){switch(n){case Lt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Vt:return!(e.byteLength!=t.byteLength||!s(new Bn(e),new Bn(t)));case Nt:case Gt:case zt:return Pe(+e,+t);case dn:return e.name==t.name&&e.message==t.message;case $t:case Kt:return e==t+"";case Te:var c=Rr;case Re:var d=i&_t;if(c||(c=_n),e.size!=t.size&&!d)return!1;var y=p.get(e);if(y)return y==t;i|=pn,p.set(e,t);var v=da(c(e),c(t),i,a,s,p);return p.delete(e),v;case gn:if(jt)return jt.call(e)==jt.call(t)}return!1}function Ip(e,t,n,i,a,s){var p=n&_t,c=ni(e),d=c.length,y=ni(t),v=y.length;if(d!=v&&!p)return!1;for(var b=d;b--;){var C=c[b];if(!(p?C in t:G.call(t,C)))return!1}var I=s.get(e),A=s.get(t);if(I&&A)return I==t&&A==e;var D=!0;s.set(e,t),s.set(t,e);for(var F=p;++b<d;){C=c[b];var H=e[C],O=t[C];if(i)var xe=p?i(O,H,C,t,e,s):i(H,O,C,e,t,s);if(!(xe===r?H===O||a(H,O,n,i,s):xe)){D=!1;break}F||(F=C=="constructor")}if(D&&!F){var pe=e.constructor,be=t.constructor;pe!=be&&"constructor"in e&&"constructor"in t&&!(typeof pe=="function"&&pe instanceof pe&&typeof be=="function"&&be instanceof be)&&(D=!1)}return s.delete(e),s.delete(t),D}function Ye(e){return pi(xa(e,r,Aa),e+"")}function ni(e){return Do(e,ne,ai)}function ri(e){return Do(e,de,ha)}var ii=Dn?function(e){return Dn.get(e)}:wi;function Vn(e){for(var t=e.name+"",n=Dt[t],i=G.call(Dt,t)?n.length:0;i--;){var a=n[i],s=a.func;if(s==null||s==e)return a.name}return t}function Wt(e){var t=G.call(l,"placeholder")?l:e;return t.placeholder}function B(){var e=l.iteratee||_i;return e=e===_i?Ho:e,arguments.length?e(arguments[0],arguments[1]):e}function Yn(e,t){var n=e.__data__;return Pp(t)?n[typeof t=="string"?"string":"hash"]:n.map}function oi(e){for(var t=ne(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,ya(a)]}return t}function yt(e,t){var n=Ws(e,t);return Mo(n)?n:r}function Bp(e){var t=G.call(e,ft),n=e[ft];try{e[ft]=r;var i=!0}catch{}var a=Ln.call(e);return i&&(t?e[ft]=n:delete e[ft]),a}var ai=Dr?function(e){return e==null?[]:(e=z(e),et(Dr(e),function(t){return bo.call(e,t)}))}:Ci,ha=Dr?function(e){for(var t=[];e;)tt(t,ai(e)),e=An(e);return t}:Ci,le=se;(Pr&&le(new Pr(new ArrayBuffer(1)))!=Lt||Zt&&le(new Zt)!=Te||Mr&&le(Mr.resolve())!=Fi||Et&&le(new Et)!=Re||Xt&&le(new Xt)!=qt)&&(le=function(e){var t=se(e),n=t==ze?e.constructor:r,i=n?vt(n):"";if(i)switch(i){case uu:return Lt;case pu:return Te;case cu:return Fi;case fu:return Re;case du:return qt}return t});function Ap(e,t,n){for(var i=-1,a=n.length;++i<a;){var s=n[i],p=s.size;switch(s.type){case"drop":e+=p;break;case"dropRight":t-=p;break;case"take":t=ae(t,e+p);break;case"takeRight":e=te(e,t-p);break}}return{start:e,end:t}}function Fp(e){var t=e.match(Ml);return t?t[1].split(Hl):[]}function ga(e,t,n){t=at(t,e);for(var i=-1,a=t.length,s=!1;++i<a;){var p=Ne(t[i]);if(!(s=e!=null&&n(e,p)))break;e=e[p]}return s||++i!=a?s:(a=e==null?0:e.length,!!a&&tr(a)&&Je(p,a)&&(R(e)||xt(e)))}function Tp(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&G.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ma(e){return typeof e.constructor=="function"&&!ln(e)?Pt(An(e)):{}}function Rp(e,t,n){var i=e.constructor;switch(t){case Vt:return jr(e);case Nt:case Gt:return new i(+e);case Lt:return hp(e,n);case or:case ar:case lr:case sr:case ur:case pr:case cr:case fr:case dr:return Qo(e,n);case Te:return new i;case zt:case Kt:return new i(e);case $t:return gp(e);case Re:return new i;case gn:return mp(e)}}function Ep(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(Pl,`{
|
|
9
9
|
/* [wrapped with `+t+`] */
|
|
10
|
-
`)}function Dc(e){return T(e)||bt(e)||!!(_o&&e&&e[_o])}function Je(e,t){var n=typeof e;return t=t==null?je:t,!!t&&(n=="number"||n!="symbol"&&Kl.test(e))&&e>-1&&e%1==0&&e<t}function se(e,t,n){if(!J(n))return!1;var i=typeof t;return(i=="number"?pe(n)&&Je(t,n.length):i=="string"&&t in n)?Pe(n[t],e):!1}function li(e,t){if(T(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ve(e)?!0:Fl.test(e)||!Rl.test(e)||t!=null&&e in z(t)}function Pc(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function si(e){var t=Vn(e),n=l[t];if(typeof n!="function"||!(t in H.prototype))return!1;if(e===n)return!0;var i=ii(n);return!!i&&e===i[0]}function Mc(e){return!!yo&&yo in e}var Hc=wn?Ze:Li;function ln(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Tt;return e===n}function ya(e){return e===e&&!J(e)}function va(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in z(n))}}function Oc(e){var t=jn(e,function(i){return n.size===j&&n.clear(),i}),n=t.cache;return t}function Wc(e,t){var n=e[1],i=t[1],a=n|i,s=a<(_e|ut|Ge),c=i==Ge&&n==He||i==Ge&&n==Ut&&e[7].length<=t[8]||i==(Ge|Ut)&&t[7].length<=t[8]&&n==He;if(!(s||c))return e;i&_e&&(e[2]=t[2],a|=n&_e?0:Ii);var p=t[3];if(p){var d=e[3];e[3]=d?ea(d,p,t[4]):p,e[4]=d?nt(e[3],V):t[4]}return p=t[5],p&&(d=e[5],e[5]=d?ta(d,p,t[6]):p,e[6]=d?nt(e[5],V):t[6]),p=t[7],p&&(e[7]=p),i&Ge&&(e[8]=e[8]==null?t[8]:oe(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function kc(e){var t=[];if(e!=null)for(var n in z(e))t.push(n);return t}function Uc(e){return Ln.call(e)}function ba(e,t,n){return t=te(t===r?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=te(i.length-t,0),c=g(s);++a<s;)c[a]=i[t+a];a=-1;for(var p=g(t+1);++a<t;)p[a]=i[a];return p[t]=n(c),ge(e,this,p)}}function xa(e,t){return t.length<2?e:mt(e,Be(t,0,-1))}function Nc(e,t){for(var n=e.length,i=oe(t.length,n),a=ce(e);i--;){var s=t[i];e[i]=Je(s,n)?a[s]:r}return e}function ui(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _a=wa($o),sn=nu||function(e,t){return re.setTimeout(e,t)},ci=wa(cc);function Sa(e,t,n){var i=t+"";return ci(e,Ec(i,Gc(Rc(i),n)))}function wa(e){var t=0,n=0;return function(){var i=au(),a=ul-(i-n);if(n=i,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Jn(e,t){var n=-1,i=e.length,a=i-1;for(t=t===r?i:t;++n<t;){var s=qr(n,a),c=e[s];e[s]=e[n],e[n]=c}return e.length=t,e}var Ca=Oc(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Tl,function(n,i,a,s){t.push(a?s.replace(kl,"$1"):i||n)}),t});function Ne(e){if(typeof e=="string"||ve(e))return e;var t=e+"";return t=="0"&&1/e==-ct?"-0":t}function vt(e){if(e!=null){try{return Cn.call(e)}catch{}try{return e+""}catch{}}return""}function Gc(e,t){return we(gl,function(n){var i="_."+n[0];t&n[1]&&!bn(e,i)&&e.push(i)}),e.sort()}function La(e){if(e instanceof H)return e.clone();var t=new Le(e.__wrapped__,e.__chain__);return t.__actions__=ce(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function zc(e,t,n){(n?se(e,t,n):t===r)?t=1:t=te(E(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,c=g(Tn(i/t));a<i;)c[s++]=Be(e,a,a+=t);return c}function $c(e){for(var t=-1,n=e==null?0:e.length,i=0,a=[];++t<n;){var s=e[t];s&&(a[i++]=s)}return a}function Kc(){var e=arguments.length;if(!e)return[];for(var t=g(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return tt(T(n)?ce(n):[n],ie(t,1))}var qc=P(function(e,t){return X(e)?tn(e,ie(t,1,X,!0)):[]}),Vc=P(function(e,t){var n=Ae(t);return X(n)&&(n=r),X(e)?tn(e,ie(t,1,X,!0),B(n,2)):[]}),Yc=P(function(e,t){var n=Ae(t);return X(n)&&(n=r),X(e)?tn(e,ie(t,1,X,!0),r,n):[]});function Jc(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:E(t),Be(e,t<0?0:t,i)):[]}function Zc(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:E(t),t=i-t,Be(e,0,t<0?0:t)):[]}function Xc(e,t){return e&&e.length?Nn(e,B(t,3),!0,!0):[]}function Qc(e,t){return e&&e.length?Nn(e,B(t,3),!0):[]}function jc(e,t,n,i){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&se(e,t,n)&&(n=0,i=a),Ku(e,t,n,i)):[]}function Ia(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var a=n==null?0:E(n);return a<0&&(a=te(i+a,0)),xn(e,B(t,3),a)}function Ba(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return n!==r&&(a=E(n),a=n<0?te(i+a,0):oe(a,i-1)),xn(e,B(t,3),a,!0)}function Aa(e){var t=e==null?0:e.length;return t?ie(e,1):[]}function ep(e){var t=e==null?0:e.length;return t?ie(e,ct):[]}function tp(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:E(t),ie(e,t)):[]}function np(e){for(var t=-1,n=e==null?0:e.length,i={};++t<n;){var a=e[t];i[a[0]]=a[1]}return i}function Ra(e){return e&&e.length?e[0]:r}function rp(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var a=n==null?0:E(n);return a<0&&(a=te(i+a,0)),Bt(e,t,a)}function ip(e){var t=e==null?0:e.length;return t?Be(e,0,-1):[]}var op=P(function(e){var t=q(e,Xr);return t.length&&t[0]===e[0]?Nr(t):[]}),ap=P(function(e){var t=Ae(e),n=q(e,Xr);return t===Ae(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Nr(n,B(t,2)):[]}),lp=P(function(e){var t=Ae(e),n=q(e,Xr);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?Nr(n,r,t):[]});function sp(e,t){return e==null?"":iu.call(e,t)}function Ae(e){var t=e==null?0:e.length;return t?e[t-1]:r}function up(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var a=i;return n!==r&&(a=E(n),a=a<0?te(i+a,0):oe(a,i-1)),t===t?Gs(e,t,a):xn(e,so,a,!0)}function cp(e,t){return e&&e.length?Uo(e,E(t)):r}var pp=P(Fa);function Fa(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}function fp(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,B(n,2)):e}function dp(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,r,n):e}var hp=Ye(function(e,t){var n=e==null?0:e.length,i=Or(e,t);return zo(e,q(t,function(a){return Je(a,n)?+a:a}).sort(jo)),i});function gp(e,t){var n=[];if(!(e&&e.length))return n;var i=-1,a=[],s=e.length;for(t=B(t,3);++i<s;){var c=e[i];t(c,i,e)&&(n.push(c),a.push(i))}return zo(e,a),n}function pi(e){return e==null?e:su.call(e)}function mp(e,t,n){var i=e==null?0:e.length;return i?(n&&typeof n!="number"&&se(e,t,n)?(t=0,n=i):(t=t==null?0:E(t),n=n===r?i:E(n)),Be(e,t,n)):[]}function yp(e,t){return Un(e,t)}function vp(e,t,n){return Yr(e,t,B(n,2))}function bp(e,t){var n=e==null?0:e.length;if(n){var i=Un(e,t);if(i<n&&Pe(e[i],t))return i}return-1}function xp(e,t){return Un(e,t,!0)}function _p(e,t,n){return Yr(e,t,B(n,2),!0)}function Sp(e,t){var n=e==null?0:e.length;if(n){var i=Un(e,t,!0)-1;if(Pe(e[i],t))return i}return-1}function wp(e){return e&&e.length?Ko(e):[]}function Cp(e,t){return e&&e.length?Ko(e,B(t,2)):[]}function Lp(e){var t=e==null?0:e.length;return t?Be(e,1,t):[]}function Ip(e,t,n){return e&&e.length?(t=n||t===r?1:E(t),Be(e,0,t<0?0:t)):[]}function Bp(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:E(t),t=i-t,Be(e,t<0?0:t,i)):[]}function Ap(e,t){return e&&e.length?Nn(e,B(t,3),!1,!0):[]}function Rp(e,t){return e&&e.length?Nn(e,B(t,3)):[]}var Fp=P(function(e){return ot(ie(e,1,X,!0))}),Tp=P(function(e){var t=Ae(e);return X(t)&&(t=r),ot(ie(e,1,X,!0),B(t,2))}),Ep=P(function(e){var t=Ae(e);return t=typeof t=="function"?t:r,ot(ie(e,1,X,!0),r,t)});function Dp(e){return e&&e.length?ot(e):[]}function Pp(e,t){return e&&e.length?ot(e,B(t,2)):[]}function Mp(e,t){return t=typeof t=="function"?t:r,e&&e.length?ot(e,r,t):[]}function fi(e){if(!(e&&e.length))return[];var t=0;return e=et(e,function(n){if(X(n))return t=te(n.length,t),!0}),Rr(t,function(n){return q(e,Ir(n))})}function Ta(e,t){if(!(e&&e.length))return[];var n=fi(e);return t==null?n:q(n,function(i){return ge(t,r,i)})}var Hp=P(function(e,t){return X(e)?tn(e,t):[]}),Op=P(function(e){return Zr(et(e,X))}),Wp=P(function(e){var t=Ae(e);return X(t)&&(t=r),Zr(et(e,X),B(t,2))}),kp=P(function(e){var t=Ae(e);return t=typeof t=="function"?t:r,Zr(et(e,X),r,t)}),Up=P(fi);function Np(e,t){return Jo(e||[],t||[],en)}function Gp(e,t){return Jo(e||[],t||[],on)}var zp=P(function(e){var t=e.length,n=t>1?e[t-1]:r;return n=typeof n=="function"?(e.pop(),n):r,Ta(e,n)});function Ea(e){var t=l(e);return t.__chain__=!0,t}function $p(e,t){return t(e),e}function Zn(e,t){return t(e)}var Kp=Ye(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(s){return Or(s,e)};return t>1||this.__actions__.length||!(i instanceof H)||!Je(n)?this.thru(a):(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:Zn,args:[a],thisArg:r}),new Le(i,this.__chain__).thru(function(s){return t&&!s.length&&s.push(r),s}))});function qp(){return Ea(this)}function Vp(){return new Le(this.value(),this.__chain__)}function Yp(){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 Jp(){return this}function Zp(e){for(var t,n=this;n instanceof Mn;){var i=La(n);i.__index__=0,i.__values__=r,t?a.__wrapped__=i:t=i;var a=i;n=n.__wrapped__}return a.__wrapped__=e,t}function Xp(){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:Zn,args:[pi],thisArg:r}),new Le(t,this.__chain__)}return this.thru(pi)}function Qp(){return Yo(this.__wrapped__,this.__actions__)}var jp=Gn(function(e,t,n){N.call(e,n)?++e[n]:qe(e,n,1)});function ef(e,t,n){var i=T(e)?ao:$u;return n&&se(e,t,n)&&(t=r),i(e,B(t,3))}function tf(e,t){var n=T(e)?et:To;return n(e,B(t,3))}var nf=oa(Ia),rf=oa(Ba);function of(e,t){return ie(Xn(e,t),1)}function af(e,t){return ie(Xn(e,t),ct)}function lf(e,t,n){return n=n===r?1:E(n),ie(Xn(e,t),n)}function Da(e,t){var n=T(e)?we:it;return n(e,B(t,3))}function Pa(e,t){var n=T(e)?Ls:Fo;return n(e,B(t,3))}var sf=Gn(function(e,t,n){N.call(e,n)?e[n].push(t):qe(e,n,[t])});function uf(e,t,n,i){e=pe(e)?e:kt(e),n=n&&!i?E(n):0;var a=e.length;return n<0&&(n=te(a+n,0)),nr(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Bt(e,t,n)>-1}var cf=P(function(e,t,n){var i=-1,a=typeof t=="function",s=pe(e)?g(e.length):[];return it(e,function(c){s[++i]=a?ge(t,c,n):nn(c,t,n)}),s}),pf=Gn(function(e,t,n){qe(e,n,t)});function Xn(e,t){var n=T(e)?q:Oo;return n(e,B(t,3))}function ff(e,t,n,i){return e==null?[]:(T(t)||(t=t==null?[]:[t]),n=i?r:n,T(n)||(n=n==null?[]:[n]),No(e,t,n))}var df=Gn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function hf(e,t,n){var i=T(e)?Cr:co,a=arguments.length<3;return i(e,B(t,4),n,a,it)}function gf(e,t,n){var i=T(e)?Is:co,a=arguments.length<3;return i(e,B(t,4),n,a,Fo)}function mf(e,t){var n=T(e)?et:To;return n(e,er(B(t,3)))}function yf(e){var t=T(e)?Io:sc;return t(e)}function vf(e,t,n){(n?se(e,t,n):t===r)?t=1:t=E(t);var i=T(e)?ku:uc;return i(e,t)}function bf(e){var t=T(e)?Uu:pc;return t(e)}function xf(e){if(e==null)return 0;if(pe(e))return nr(e)?Rt(e):e.length;var t=ae(e);return t==Fe||t==Te?e.size:zr(e).length}function _f(e,t,n){var i=T(e)?Lr:fc;return n&&se(e,t,n)&&(t=r),i(e,B(t,3))}var Sf=P(function(e,t){if(e==null)return[];var n=t.length;return n>1&&se(e,t[0],t[1])?t=[]:n>2&&se(t[0],t[1],t[2])&&(t=[t[0]]),No(e,ie(t,1),[])}),Qn=tu||function(){return re.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 Ma(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,Ve(e,Ge,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 di=P(function(e,t,n){var i=_e;if(n.length){var a=nt(n,Ot(di));i|=Oe}return Ve(e,i,t,n,a)}),Oa=P(function(e,t,n){var i=_e|ut;if(n.length){var a=nt(n,Ot(Oa));i|=Oe}return Ve(t,i,e,n,a)});function Wa(e,t,n){t=n?r:t;var i=Ve(e,He,r,r,r,r,r,t);return i.placeholder=Wa.placeholder,i}function ka(e,t,n){t=n?r:t;var i=Ve(e,St,r,r,r,r,r,t);return i.placeholder=ka.placeholder,i}function Ua(e,t,n){var i,a,s,c,p,d,y=0,v=!1,x=!1,C=!0;if(typeof e!="function")throw new Ce(S);t=Re(t)||0,J(n)&&(v=!!n.leading,x="maxWait"in n,s=x?te(Re(n.maxWait)||0,t):s,C="trailing"in n?!!n.trailing:C);function I(Q){var Me=i,Qe=a;return i=a=r,y=Q,c=e.apply(Qe,Me),c}function A(Q){return y=Q,p=sn(M,t),v?I(Q):c}function D(Q){var Me=Q-d,Qe=Q-y,ol=t-Me;return x?oe(ol,s-Qe):ol}function R(Q){var Me=Q-d,Qe=Q-y;return d===r||Me>=t||Me<0||x&&Qe>=s}function M(){var Q=Qn();if(R(Q))return W(Q);p=sn(M,D(Q))}function W(Q){return p=r,C&&i?I(Q):(i=a=r,c)}function be(){p!==r&&Zo(p),y=0,i=d=a=p=r}function ue(){return p===r?c:W(Qn())}function xe(){var Q=Qn(),Me=R(Q);if(i=arguments,a=this,d=Q,Me){if(p===r)return A(d);if(x)return Zo(p),p=sn(M,t),I(d)}return p===r&&(p=sn(M,t)),c}return xe.cancel=be,xe.flush=ue,xe}var Cf=P(function(e,t){return Ro(e,1,t)}),Lf=P(function(e,t,n){return Ro(e,Re(t)||0,n)});function If(e){return Ve(e,ir)}function jn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ce(S);var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],s=n.cache;if(s.has(a))return s.get(a);var c=e.apply(this,i);return n.cache=s.set(a,c)||s,c};return n.cache=new(jn.Cache||Ke),n}jn.Cache=Ke;function er(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 Bf(e){return Ha(2,e)}var Af=dc(function(e,t){t=t.length==1&&T(t[0])?q(t[0],me(B())):q(ie(t,1),me(B()));var n=t.length;return P(function(i){for(var a=-1,s=oe(i.length,n);++a<s;)i[a]=t[a].call(this,i[a]);return ge(e,this,i)})}),hi=P(function(e,t){var n=nt(t,Ot(hi));return Ve(e,Oe,r,t,n)}),Na=P(function(e,t){var n=nt(t,Ot(Na));return Ve(e,wt,r,t,n)}),Rf=Ye(function(e,t){return Ve(e,Ut,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 Tf(e,t){if(typeof e!="function")throw new Ce(S);return t=t==null?0:te(E(t),0),P(function(n){var i=n[t],a=lt(n,0,t);return i&&tt(a,i),ge(e,this,a)})}function Ef(e,t,n){var i=!0,a=!0;if(typeof e!="function")throw new Ce(S);return J(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),Ua(e,t,{leading:i,maxWait:t,trailing:a})}function Df(e){return Ma(e,1)}function Pf(e,t){return hi(Qr(t),e)}function Mf(){if(!arguments.length)return[];var e=arguments[0];return T(e)?e:[e]}function Hf(e){return Ie(e,xt)}function Of(e,t){return t=typeof t=="function"?t:r,Ie(e,xt,t)}function Wf(e){return Ie(e,Y|xt)}function kf(e,t){return t=typeof t=="function"?t:r,Ie(e,Y|xt,t)}function Uf(e,t){return t==null||Ao(e,t,ne(t))}function Pe(e,t){return e===t||e!==e&&t!==t}var Nf=qn(Ur),Gf=qn(function(e,t){return e>=t}),bt=Po(function(){return arguments}())?Po:function(e){return Z(e)&&N.call(e,"callee")&&!xo.call(e,"callee")},T=g.isArray,zf=eo?me(eo):Zu;function pe(e){return e!=null&&tr(e.length)&&!Ze(e)}function X(e){return Z(e)&&pe(e)}function $f(e){return e===!0||e===!1||Z(e)&&le(e)==Nt}var st=ru||Li,Kf=to?me(to):Xu;function qf(e){return Z(e)&&e.nodeType===1&&!un(e)}function Vf(e){if(e==null)return!0;if(pe(e)&&(T(e)||typeof e=="string"||typeof e.splice=="function"||st(e)||Wt(e)||bt(e)))return!e.length;var t=ae(e);if(t==Fe||t==Te)return!e.size;if(ln(e))return!zr(e).length;for(var n in e)if(N.call(e,n))return!1;return!0}function Yf(e,t){return rn(e,t)}function Jf(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?rn(e,t,r,n):!!i}function gi(e){if(!Z(e))return!1;var t=le(e);return t==dn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!un(e)}function Zf(e){return typeof e=="number"&&So(e)}function Ze(e){if(!J(e))return!1;var t=le(e);return t==hn||t==Ai||t==ml||t==bl}function Ga(e){return typeof e=="number"&&e==E(e)}function tr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=je}function J(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Z(e){return e!=null&&typeof e=="object"}var za=no?me(no):ju;function Xf(e,t){return e===t||Gr(e,t,oi(t))}function Qf(e,t,n){return n=typeof n=="function"?n:r,Gr(e,t,oi(t),n)}function jf(e){return $a(e)&&e!=+e}function ed(e){if(Hc(e))throw new F(w);return Mo(e)}function td(e){return e===null}function nd(e){return e==null}function $a(e){return typeof e=="number"||Z(e)&&le(e)==zt}function un(e){if(!Z(e)||le(e)!=ze)return!1;var t=An(e);if(t===null)return!0;var n=N.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Cn.call(n)==Xs}var mi=ro?me(ro):ec;function rd(e){return Ga(e)&&e>=-je&&e<=je}var Ka=io?me(io):tc;function nr(e){return typeof e=="string"||!T(e)&&Z(e)&&le(e)==Kt}function ve(e){return typeof e=="symbol"||Z(e)&&le(e)==gn}var Wt=oo?me(oo):nc;function id(e){return e===r}function od(e){return Z(e)&&ae(e)==qt}function ad(e){return Z(e)&&le(e)==_l}var ld=qn($r),sd=qn(function(e,t){return e<=t});function qa(e){if(!e)return[];if(pe(e))return nr(e)?Ee(e):ce(e);if(Jt&&e[Jt])return ks(e[Jt]());var t=ae(e),n=t==Fe?Tr:t==Te?_n:kt;return n(e)}function Xe(e){if(!e)return e===0?e:0;if(e=Re(e),e===ct||e===-ct){var t=e<0?-1:1;return t*fl}return e===e?e:0}function E(e){var t=Xe(e),n=t%1;return t===t?n?t-n:t:0}function Va(e){return e?gt(E(e),0,We):0}function Re(e){if(typeof e=="number")return e;if(ve(e))return pn;if(J(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=J(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=po(e);var n=Gl.test(e);return n||$l.test(e)?Ss(e.slice(2),n?2:8):Nl.test(e)?pn:+e}function Ya(e){return Ue(e,fe(e))}function ud(e){return e?gt(E(e),-je,je):e===0?e:0}function U(e){return e==null?"":ye(e)}var cd=Mt(function(e,t){if(ln(t)||pe(t)){Ue(t,ne(t),e);return}for(var n in t)N.call(t,n)&&en(e,n,t[n])}),Ja=Mt(function(e,t){Ue(t,fe(t),e)}),rr=Mt(function(e,t,n,i){Ue(t,fe(t),e,i)}),pd=Mt(function(e,t,n,i){Ue(t,ne(t),e,i)}),fd=Ye(Or);function dd(e,t){var n=Pt(e);return t==null?n:Bo(n,t)}var hd=P(function(e,t){e=z(e);var n=-1,i=t.length,a=i>2?t[2]:r;for(a&&se(t[0],t[1],a)&&(i=1);++n<i;)for(var s=t[n],c=fe(s),p=-1,d=c.length;++p<d;){var y=c[p],v=e[y];(v===r||Pe(v,Tt[y])&&!N.call(e,y))&&(e[y]=s[y])}return e}),gd=P(function(e){return e.push(r,fa),ge(Za,r,e)});function md(e,t){return lo(e,B(t,3),ke)}function yd(e,t){return lo(e,B(t,3),kr)}function vd(e,t){return e==null?e:Wr(e,B(t,3),fe)}function bd(e,t){return e==null?e:Eo(e,B(t,3),fe)}function xd(e,t){return e&&ke(e,B(t,3))}function _d(e,t){return e&&kr(e,B(t,3))}function Sd(e){return e==null?[]:Wn(e,ne(e))}function wd(e){return e==null?[]:Wn(e,fe(e))}function yi(e,t,n){var i=e==null?r:mt(e,t);return i===r?n:i}function Cd(e,t){return e!=null&&ga(e,t,qu)}function vi(e,t){return e!=null&&ga(e,t,Vu)}var Ld=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),e[t]=n},xi(de)),Id=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),N.call(e,t)?e[t].push(n):e[t]=[n]},B),Bd=P(nn);function ne(e){return pe(e)?Lo(e):zr(e)}function fe(e){return pe(e)?Lo(e,!0):rc(e)}function Ad(e,t){var n={};return t=B(t,3),ke(e,function(i,a,s){qe(n,t(i,a,s),i)}),n}function Rd(e,t){var n={};return t=B(t,3),ke(e,function(i,a,s){qe(n,a,t(i,a,s))}),n}var Fd=Mt(function(e,t,n){kn(e,t,n)}),Za=Mt(function(e,t,n,i){kn(e,t,n,i)}),Td=Ye(function(e,t){var n={};if(e==null)return n;var i=!1;t=q(t,function(s){return s=at(s,e),i||(i=s.length>1),s}),Ue(e,ri(e),n),i&&(n=Ie(n,Y|he|xt,Cc));for(var a=t.length;a--;)Jr(n,t[a]);return n});function Ed(e,t){return Xa(e,er(B(t)))}var Dd=Ye(function(e,t){return e==null?{}:oc(e,t)});function Xa(e,t){if(e==null)return{};var n=q(ri(e),function(i){return[i]});return t=B(t),Go(e,n,function(i,a){return t(i,a[0])})}function Pd(e,t,n){t=at(t,e);var i=-1,a=t.length;for(a||(a=1,e=r);++i<a;){var s=e==null?r:e[Ne(t[i])];s===r&&(i=a,s=n),e=Ze(s)?s.call(e):s}return e}function Md(e,t,n){return e==null?e:on(e,t,n)}function Hd(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:on(e,t,n,i)}var Qa=ca(ne),ja=ca(fe);function Od(e,t,n){var i=T(e),a=i||st(e)||Wt(e);if(t=B(t,4),n==null){var s=e&&e.constructor;a?n=i?new s:[]:J(e)?n=Ze(s)?Pt(An(e)):{}:n={}}return(a?we:ke)(e,function(c,p,d){return t(n,c,p,d)}),n}function Wd(e,t){return e==null?!0:Jr(e,t)}function kd(e,t,n){return e==null?e:Vo(e,t,Qr(n))}function Ud(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:Vo(e,t,Qr(n),i)}function kt(e){return e==null?[]:Fr(e,ne(e))}function Nd(e){return e==null?[]:Fr(e,fe(e))}function Gd(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=Re(n),n=n===n?n:0),t!==r&&(t=Re(t),t=t===t?t:0),gt(Re(e),t,n)}function zd(e,t,n){return t=Xe(t),n===r?(n=t,t=0):n=Xe(n),e=Re(e),Yu(e,t,n)}function $d(e,t,n){if(n&&typeof n!="boolean"&&se(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=Xe(e),t===r?(t=e,e=0):t=Xe(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var a=wo();return oe(e+a*(t-e+_s("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Kd=Ht(function(e,t,n){return t=t.toLowerCase(),e+(n?el(t):t)});function el(e){return bi(U(e).toLowerCase())}function tl(e){return e=U(e),e&&e.replace(ql,Ps).replace(ps,"")}function qd(e,t,n){e=U(e),t=ye(t);var i=e.length;n=n===r?i:gt(E(n),0,i);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Vd(e){return e=U(e),e&&Il.test(e)?e.replace(Ti,Ms):e}function Yd(e){return e=U(e),e&&El.test(e)?e.replace(hr,"\\$&"):e}var Jd=Ht(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Zd=Ht(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Xd=ia("toLowerCase");function Qd(e,t,n){e=U(e),t=E(t);var i=t?Rt(e):0;if(!t||i>=t)return e;var a=(t-i)/2;return Kn(En(a),n)+e+Kn(Tn(a),n)}function jd(e,t,n){e=U(e),t=E(t);var i=t?Rt(e):0;return t&&i<t?e+Kn(t-i,n):e}function eh(e,t,n){e=U(e),t=E(t);var i=t?Rt(e):0;return t&&i<t?Kn(t-i,n)+e:e}function th(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(U(e).replace(gr,""),t||0)}function nh(e,t,n){return(n?se(e,t,n):t===r)?t=1:t=E(t),Vr(U(e),t)}function rh(){var e=arguments,t=U(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ih=Ht(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function oh(e,t,n){return n&&typeof n!="number"&&se(e,t,n)&&(t=n=r),n=n===r?We:n>>>0,n?(e=U(e),e&&(typeof t=="string"||t!=null&&!mi(t))&&(t=ye(t),!t&&At(e))?lt(Ee(e),0,n):e.split(t,n)):[]}var ah=Ht(function(e,t,n){return e+(n?" ":"")+bi(t)});function lh(e,t,n){return e=U(e),n=n==null?0:gt(E(n),0,e.length),t=ye(t),e.slice(n,n+t.length)==t}function sh(e,t,n){var i=l.templateSettings;n&&se(e,t,n)&&(t=r),e=U(e),t=rr({},t,i,pa);var a=rr({},t.imports,i.imports,pa),s=ne(a),c=Fr(a,s),p,d,y=0,v=t.interpolate||mn,x="__p += '",C=Er((t.escape||mn).source+"|"+v.source+"|"+(v===Ei?Ul:mn).source+"|"+(t.evaluate||mn).source+"|$","g"),I="//# sourceURL="+(N.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ms+"]")+`
|
|
11
|
-
`;e.replace(C,function(
|
|
12
|
-
__e(`+
|
|
13
|
-
'`),
|
|
14
|
-
`+
|
|
15
|
-
__p += '`),
|
|
16
|
-
((__t = (`+
|
|
17
|
-
'`),y=
|
|
18
|
-
`;var A=
|
|
19
|
-
`+
|
|
10
|
+
`)}function Dp(e){return R(e)||xt(e)||!!(_o&&e&&e[_o])}function Je(e,t){var n=typeof e;return t=t==null?je:t,!!t&&(n=="number"||n!="symbol"&&Kl.test(e))&&e>-1&&e%1==0&&e<t}function ue(e,t,n){if(!Z(n))return!1;var i=typeof t;return(i=="number"?fe(n)&&Je(t,n.length):i=="string"&&t in n)?Pe(n[t],e):!1}function li(e,t){if(R(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||ve(e)?!0:Tl.test(e)||!Fl.test(e)||t!=null&&e in z(t)}function Pp(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function si(e){var t=Vn(e),n=l[t];if(typeof n!="function"||!(t in W.prototype))return!1;if(e===n)return!0;var i=ii(n);return!!i&&e===i[0]}function Mp(e){return!!yo&&yo in e}var Hp=wn?Ze:Li;function ln(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Rt;return e===n}function ya(e){return e===e&&!Z(e)}function va(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==r||e in z(n))}}function Wp(e){var t=jn(e,function(i){return n.size===J&&n.clear(),i}),n=t.cache;return t}function Op(e,t){var n=e[1],i=t[1],a=n|i,s=a<(_e|ut|Ge),p=i==Ge&&n==He||i==Ge&&n==Ut&&e[7].length<=t[8]||i==(Ge|Ut)&&t[7].length<=t[8]&&n==He;if(!(s||p))return e;i&_e&&(e[2]=t[2],a|=n&_e?0:Ii);var c=t[3];if(c){var d=e[3];e[3]=d?ea(d,c,t[4]):c,e[4]=d?nt(e[3],$):t[4]}return c=t[5],c&&(d=e[5],e[5]=d?ta(d,c,t[6]):c,e[6]=d?nt(e[5],$):t[6]),c=t[7],c&&(e[7]=c),i&Ge&&(e[8]=e[8]==null?t[8]:ae(e[8],t[8])),e[9]==null&&(e[9]=t[9]),e[0]=t[0],e[1]=a,e}function kp(e){var t=[];if(e!=null)for(var n in z(e))t.push(n);return t}function Up(e){return Ln.call(e)}function xa(e,t,n){return t=te(t===r?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=te(i.length-t,0),p=g(s);++a<s;)p[a]=i[t+a];a=-1;for(var c=g(t+1);++a<t;)c[a]=i[a];return c[t]=n(p),ge(e,this,c)}}function ba(e,t){return t.length<2?e:mt(e,Be(t,0,-1))}function Np(e,t){for(var n=e.length,i=ae(t.length,n),a=ce(e);i--;){var s=t[i];e[i]=Je(s,n)?a[s]:r}return e}function ui(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var _a=wa($o),sn=nu||function(e,t){return re.setTimeout(e,t)},pi=wa(pp);function Sa(e,t,n){var i=t+"";return pi(e,Ep(i,Gp(Fp(i),n)))}function wa(e){var t=0,n=0;return function(){var i=au(),a=ul-(i-n);if(n=i,a>0){if(++t>=sl)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Jn(e,t){var n=-1,i=e.length,a=i-1;for(t=t===r?i:t;++n<t;){var s=qr(n,a),p=e[s];e[s]=e[n],e[n]=p}return e.length=t,e}var Ca=Wp(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Rl,function(n,i,a,s){t.push(a?s.replace(kl,"$1"):i||n)}),t});function Ne(e){if(typeof e=="string"||ve(e))return e;var t=e+"";return t=="0"&&1/e==-pt?"-0":t}function vt(e){if(e!=null){try{return Cn.call(e)}catch{}try{return e+""}catch{}}return""}function Gp(e,t){return we(gl,function(n){var i="_."+n[0];t&n[1]&&!xn(e,i)&&e.push(i)}),e.sort()}function La(e){if(e instanceof W)return e.clone();var t=new Le(e.__wrapped__,e.__chain__);return t.__actions__=ce(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function zp(e,t,n){(n?ue(e,t,n):t===r)?t=1:t=te(E(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,p=g(Rn(i/t));a<i;)p[s++]=Be(e,a,a+=t);return p}function $p(e){for(var t=-1,n=e==null?0:e.length,i=0,a=[];++t<n;){var s=e[t];s&&(a[i++]=s)}return a}function Kp(){var e=arguments.length;if(!e)return[];for(var t=g(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return tt(R(n)?ce(n):[n],ie(t,1))}var qp=P(function(e,t){return Q(e)?tn(e,ie(t,1,Q,!0)):[]}),Vp=P(function(e,t){var n=Ae(t);return Q(n)&&(n=r),Q(e)?tn(e,ie(t,1,Q,!0),B(n,2)):[]}),Yp=P(function(e,t){var n=Ae(t);return Q(n)&&(n=r),Q(e)?tn(e,ie(t,1,Q,!0),r,n):[]});function Jp(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:E(t),Be(e,t<0?0:t,i)):[]}function Zp(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:E(t),t=i-t,Be(e,0,t<0?0:t)):[]}function Xp(e,t){return e&&e.length?Nn(e,B(t,3),!0,!0):[]}function Qp(e,t){return e&&e.length?Nn(e,B(t,3),!0):[]}function jp(e,t,n,i){var a=e==null?0:e.length;return a?(n&&typeof n!="number"&&ue(e,t,n)&&(n=0,i=a),Ku(e,t,n,i)):[]}function Ia(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var a=n==null?0:E(n);return a<0&&(a=te(i+a,0)),bn(e,B(t,3),a)}function Ba(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return n!==r&&(a=E(n),a=n<0?te(i+a,0):ae(a,i-1)),bn(e,B(t,3),a,!0)}function Aa(e){var t=e==null?0:e.length;return t?ie(e,1):[]}function ec(e){var t=e==null?0:e.length;return t?ie(e,pt):[]}function tc(e,t){var n=e==null?0:e.length;return n?(t=t===r?1:E(t),ie(e,t)):[]}function nc(e){for(var t=-1,n=e==null?0:e.length,i={};++t<n;){var a=e[t];i[a[0]]=a[1]}return i}function Fa(e){return e&&e.length?e[0]:r}function rc(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var a=n==null?0:E(n);return a<0&&(a=te(i+a,0)),Bt(e,t,a)}function ic(e){var t=e==null?0:e.length;return t?Be(e,0,-1):[]}var oc=P(function(e){var t=Y(e,Xr);return t.length&&t[0]===e[0]?Nr(t):[]}),ac=P(function(e){var t=Ae(e),n=Y(e,Xr);return t===Ae(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Nr(n,B(t,2)):[]}),lc=P(function(e){var t=Ae(e),n=Y(e,Xr);return t=typeof t=="function"?t:r,t&&n.pop(),n.length&&n[0]===e[0]?Nr(n,r,t):[]});function sc(e,t){return e==null?"":iu.call(e,t)}function Ae(e){var t=e==null?0:e.length;return t?e[t-1]:r}function uc(e,t,n){var i=e==null?0:e.length;if(!i)return-1;var a=i;return n!==r&&(a=E(n),a=a<0?te(i+a,0):ae(a,i-1)),t===t?Gs(e,t,a):bn(e,so,a,!0)}function pc(e,t){return e&&e.length?Uo(e,E(t)):r}var cc=P(Ta);function Ta(e,t){return e&&e.length&&t&&t.length?Kr(e,t):e}function fc(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,B(n,2)):e}function dc(e,t,n){return e&&e.length&&t&&t.length?Kr(e,t,r,n):e}var hc=Ye(function(e,t){var n=e==null?0:e.length,i=Wr(e,t);return zo(e,Y(t,function(a){return Je(a,n)?+a:a}).sort(jo)),i});function gc(e,t){var n=[];if(!(e&&e.length))return n;var i=-1,a=[],s=e.length;for(t=B(t,3);++i<s;){var p=e[i];t(p,i,e)&&(n.push(p),a.push(i))}return zo(e,a),n}function ci(e){return e==null?e:su.call(e)}function mc(e,t,n){var i=e==null?0:e.length;return i?(n&&typeof n!="number"&&ue(e,t,n)?(t=0,n=i):(t=t==null?0:E(t),n=n===r?i:E(n)),Be(e,t,n)):[]}function yc(e,t){return Un(e,t)}function vc(e,t,n){return Yr(e,t,B(n,2))}function xc(e,t){var n=e==null?0:e.length;if(n){var i=Un(e,t);if(i<n&&Pe(e[i],t))return i}return-1}function bc(e,t){return Un(e,t,!0)}function _c(e,t,n){return Yr(e,t,B(n,2),!0)}function Sc(e,t){var n=e==null?0:e.length;if(n){var i=Un(e,t,!0)-1;if(Pe(e[i],t))return i}return-1}function wc(e){return e&&e.length?Ko(e):[]}function Cc(e,t){return e&&e.length?Ko(e,B(t,2)):[]}function Lc(e){var t=e==null?0:e.length;return t?Be(e,1,t):[]}function Ic(e,t,n){return e&&e.length?(t=n||t===r?1:E(t),Be(e,0,t<0?0:t)):[]}function Bc(e,t,n){var i=e==null?0:e.length;return i?(t=n||t===r?1:E(t),t=i-t,Be(e,t<0?0:t,i)):[]}function Ac(e,t){return e&&e.length?Nn(e,B(t,3),!1,!0):[]}function Fc(e,t){return e&&e.length?Nn(e,B(t,3)):[]}var Tc=P(function(e){return ot(ie(e,1,Q,!0))}),Rc=P(function(e){var t=Ae(e);return Q(t)&&(t=r),ot(ie(e,1,Q,!0),B(t,2))}),Ec=P(function(e){var t=Ae(e);return t=typeof t=="function"?t:r,ot(ie(e,1,Q,!0),r,t)});function Dc(e){return e&&e.length?ot(e):[]}function Pc(e,t){return e&&e.length?ot(e,B(t,2)):[]}function Mc(e,t){return t=typeof t=="function"?t:r,e&&e.length?ot(e,r,t):[]}function fi(e){if(!(e&&e.length))return[];var t=0;return e=et(e,function(n){if(Q(n))return t=te(n.length,t),!0}),Fr(t,function(n){return Y(e,Ir(n))})}function Ra(e,t){if(!(e&&e.length))return[];var n=fi(e);return t==null?n:Y(n,function(i){return ge(t,r,i)})}var Hc=P(function(e,t){return Q(e)?tn(e,t):[]}),Wc=P(function(e){return Zr(et(e,Q))}),Oc=P(function(e){var t=Ae(e);return Q(t)&&(t=r),Zr(et(e,Q),B(t,2))}),kc=P(function(e){var t=Ae(e);return t=typeof t=="function"?t:r,Zr(et(e,Q),r,t)}),Uc=P(fi);function Nc(e,t){return Jo(e||[],t||[],en)}function Gc(e,t){return Jo(e||[],t||[],on)}var zc=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 Zn(e,t){return t(e)}var Kc=Ye(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(s){return Wr(s,e)};return t>1||this.__actions__.length||!(i instanceof W)||!Je(n)?this.thru(a):(i=i.slice(n,+n+(t?1:0)),i.__actions__.push({func:Zn,args:[a],thisArg:r}),new Le(i,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 i=La(n);i.__index__=0,i.__values__=r,t?a.__wrapped__=i:t=i;var a=i;n=n.__wrapped__}return a.__wrapped__=e,t}function Xc(){var e=this.__wrapped__;if(e instanceof W){var t=e;return this.__actions__.length&&(t=new W(this)),t=t.reverse(),t.__actions__.push({func:Zn,args:[ci],thisArg:r}),new Le(t,this.__chain__)}return this.thru(ci)}function Qc(){return Yo(this.__wrapped__,this.__actions__)}var jc=Gn(function(e,t,n){G.call(e,n)?++e[n]:qe(e,n,1)});function ef(e,t,n){var i=R(e)?ao:$u;return n&&ue(e,t,n)&&(t=r),i(e,B(t,3))}function tf(e,t){var n=R(e)?et:Ro;return n(e,B(t,3))}var nf=oa(Ia),rf=oa(Ba);function of(e,t){return ie(Xn(e,t),1)}function af(e,t){return ie(Xn(e,t),pt)}function lf(e,t,n){return n=n===r?1:E(n),ie(Xn(e,t),n)}function Da(e,t){var n=R(e)?we:it;return n(e,B(t,3))}function Pa(e,t){var n=R(e)?Ls:To;return n(e,B(t,3))}var sf=Gn(function(e,t,n){G.call(e,n)?e[n].push(t):qe(e,n,[t])});function uf(e,t,n,i){e=fe(e)?e:kt(e),n=n&&!i?E(n):0;var a=e.length;return n<0&&(n=te(a+n,0)),nr(e)?n<=a&&e.indexOf(t,n)>-1:!!a&&Bt(e,t,n)>-1}var pf=P(function(e,t,n){var i=-1,a=typeof t=="function",s=fe(e)?g(e.length):[];return it(e,function(p){s[++i]=a?ge(t,p,n):nn(p,t,n)}),s}),cf=Gn(function(e,t,n){qe(e,n,t)});function Xn(e,t){var n=R(e)?Y:Wo;return n(e,B(t,3))}function ff(e,t,n,i){return e==null?[]:(R(t)||(t=t==null?[]:[t]),n=i?r:n,R(n)||(n=n==null?[]:[n]),No(e,t,n))}var df=Gn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});function hf(e,t,n){var i=R(e)?Cr:po,a=arguments.length<3;return i(e,B(t,4),n,a,it)}function gf(e,t,n){var i=R(e)?Is:po,a=arguments.length<3;return i(e,B(t,4),n,a,To)}function mf(e,t){var n=R(e)?et:Ro;return n(e,er(B(t,3)))}function yf(e){var t=R(e)?Io:sp;return t(e)}function vf(e,t,n){(n?ue(e,t,n):t===r)?t=1:t=E(t);var i=R(e)?ku:up;return i(e,t)}function xf(e){var t=R(e)?Uu:cp;return t(e)}function bf(e){if(e==null)return 0;if(fe(e))return nr(e)?Ft(e):e.length;var t=le(e);return t==Te||t==Re?e.size:zr(e).length}function _f(e,t,n){var i=R(e)?Lr:fp;return n&&ue(e,t,n)&&(t=r),i(e,B(t,3))}var Sf=P(function(e,t){if(e==null)return[];var n=t.length;return n>1&&ue(e,t[0],t[1])?t=[]:n>2&&ue(t[0],t[1],t[2])&&(t=[t[0]]),No(e,ie(t,1),[])}),Qn=tu||function(){return re.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 Ma(e,t,n){return t=n?r:t,t=e&&t==null?e.length:t,Ve(e,Ge,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 di=P(function(e,t,n){var i=_e;if(n.length){var a=nt(n,Wt(di));i|=We}return Ve(e,i,t,n,a)}),Wa=P(function(e,t,n){var i=_e|ut;if(n.length){var a=nt(n,Wt(Wa));i|=We}return Ve(t,i,e,n,a)});function Oa(e,t,n){t=n?r:t;var i=Ve(e,He,r,r,r,r,r,t);return i.placeholder=Oa.placeholder,i}function ka(e,t,n){t=n?r:t;var i=Ve(e,St,r,r,r,r,r,t);return i.placeholder=ka.placeholder,i}function Ua(e,t,n){var i,a,s,p,c,d,y=0,v=!1,b=!1,C=!0;if(typeof e!="function")throw new Ce(S);t=Fe(t)||0,Z(n)&&(v=!!n.leading,b="maxWait"in n,s=b?te(Fe(n.maxWait)||0,t):s,C="trailing"in n?!!n.trailing:C);function I(j){var Me=i,Qe=a;return i=a=r,y=j,p=e.apply(Qe,Me),p}function A(j){return y=j,c=sn(H,t),v?I(j):p}function D(j){var Me=j-d,Qe=j-y,ol=t-Me;return b?ae(ol,s-Qe):ol}function F(j){var Me=j-d,Qe=j-y;return d===r||Me>=t||Me<0||b&&Qe>=s}function H(){var j=Qn();if(F(j))return O(j);c=sn(H,D(j))}function O(j){return c=r,C&&i?I(j):(i=a=r,p)}function xe(){c!==r&&Zo(c),y=0,i=d=a=c=r}function pe(){return c===r?p:O(Qn())}function be(){var j=Qn(),Me=F(j);if(i=arguments,a=this,d=j,Me){if(c===r)return A(d);if(b)return Zo(c),c=sn(H,t),I(d)}return c===r&&(c=sn(H,t)),p}return be.cancel=xe,be.flush=pe,be}var Cf=P(function(e,t){return Fo(e,1,t)}),Lf=P(function(e,t,n){return Fo(e,Fe(t)||0,n)});function If(e){return Ve(e,ir)}function jn(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new Ce(S);var n=function(){var i=arguments,a=t?t.apply(this,i):i[0],s=n.cache;if(s.has(a))return s.get(a);var p=e.apply(this,i);return n.cache=s.set(a,p)||s,p};return n.cache=new(jn.Cache||Ke),n}jn.Cache=Ke;function er(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 Bf(e){return Ha(2,e)}var Af=dp(function(e,t){t=t.length==1&&R(t[0])?Y(t[0],me(B())):Y(ie(t,1),me(B()));var n=t.length;return P(function(i){for(var a=-1,s=ae(i.length,n);++a<s;)i[a]=t[a].call(this,i[a]);return ge(e,this,i)})}),hi=P(function(e,t){var n=nt(t,Wt(hi));return Ve(e,We,r,t,n)}),Na=P(function(e,t){var n=nt(t,Wt(Na));return Ve(e,wt,r,t,n)}),Ff=Ye(function(e,t){return Ve(e,Ut,r,r,r,t)});function Tf(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:te(E(t),0),P(function(n){var i=n[t],a=lt(n,0,t);return i&&tt(a,i),ge(e,this,a)})}function Ef(e,t,n){var i=!0,a=!0;if(typeof e!="function")throw new Ce(S);return Z(n)&&(i="leading"in n?!!n.leading:i,a="trailing"in n?!!n.trailing:a),Ua(e,t,{leading:i,maxWait:t,trailing:a})}function Df(e){return Ma(e,1)}function Pf(e,t){return hi(Qr(t),e)}function Mf(){if(!arguments.length)return[];var e=arguments[0];return R(e)?e:[e]}function Hf(e){return Ie(e,bt)}function Wf(e,t){return t=typeof t=="function"?t:r,Ie(e,bt,t)}function Of(e){return Ie(e,K|bt)}function kf(e,t){return t=typeof t=="function"?t:r,Ie(e,K|bt,t)}function Uf(e,t){return t==null||Ao(e,t,ne(t))}function Pe(e,t){return e===t||e!==e&&t!==t}var Nf=qn(Ur),Gf=qn(function(e,t){return e>=t}),xt=Po(function(){return arguments}())?Po:function(e){return X(e)&&G.call(e,"callee")&&!bo.call(e,"callee")},R=g.isArray,zf=eo?me(eo):Zu;function fe(e){return e!=null&&tr(e.length)&&!Ze(e)}function Q(e){return X(e)&&fe(e)}function $f(e){return e===!0||e===!1||X(e)&&se(e)==Nt}var st=ru||Li,Kf=to?me(to):Xu;function qf(e){return X(e)&&e.nodeType===1&&!un(e)}function Vf(e){if(e==null)return!0;if(fe(e)&&(R(e)||typeof e=="string"||typeof e.splice=="function"||st(e)||Ot(e)||xt(e)))return!e.length;var t=le(e);if(t==Te||t==Re)return!e.size;if(ln(e))return!zr(e).length;for(var n in e)if(G.call(e,n))return!1;return!0}function Yf(e,t){return rn(e,t)}function Jf(e,t,n){n=typeof n=="function"?n:r;var i=n?n(e,t):r;return i===r?rn(e,t,r,n):!!i}function gi(e){if(!X(e))return!1;var t=se(e);return t==dn||t==yl||typeof e.message=="string"&&typeof e.name=="string"&&!un(e)}function Zf(e){return typeof e=="number"&&So(e)}function Ze(e){if(!Z(e))return!1;var t=se(e);return t==hn||t==Ai||t==ml||t==xl}function Ga(e){return typeof e=="number"&&e==E(e)}function tr(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=je}function Z(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function X(e){return e!=null&&typeof e=="object"}var za=no?me(no):ju;function Xf(e,t){return e===t||Gr(e,t,oi(t))}function Qf(e,t,n){return n=typeof n=="function"?n:r,Gr(e,t,oi(t),n)}function jf(e){return $a(e)&&e!=+e}function ed(e){if(Hp(e))throw new T(w);return Mo(e)}function td(e){return e===null}function nd(e){return e==null}function $a(e){return typeof e=="number"||X(e)&&se(e)==zt}function un(e){if(!X(e)||se(e)!=ze)return!1;var t=An(e);if(t===null)return!0;var n=G.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Cn.call(n)==Xs}var mi=ro?me(ro):ep;function rd(e){return Ga(e)&&e>=-je&&e<=je}var Ka=io?me(io):tp;function nr(e){return typeof e=="string"||!R(e)&&X(e)&&se(e)==Kt}function ve(e){return typeof e=="symbol"||X(e)&&se(e)==gn}var Ot=oo?me(oo):np;function id(e){return e===r}function od(e){return X(e)&&le(e)==qt}function ad(e){return X(e)&&se(e)==_l}var ld=qn($r),sd=qn(function(e,t){return e<=t});function qa(e){if(!e)return[];if(fe(e))return nr(e)?Ee(e):ce(e);if(Jt&&e[Jt])return ks(e[Jt]());var t=le(e),n=t==Te?Rr:t==Re?_n:kt;return n(e)}function Xe(e){if(!e)return e===0?e:0;if(e=Fe(e),e===pt||e===-pt){var t=e<0?-1:1;return t*fl}return e===e?e:0}function E(e){var t=Xe(e),n=t%1;return t===t?n?t-n:t:0}function Va(e){return e?gt(E(e),0,Oe):0}function Fe(e){if(typeof e=="number")return e;if(ve(e))return cn;if(Z(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Z(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):Nl.test(e)?cn:+e}function Ya(e){return Ue(e,de(e))}function ud(e){return e?gt(E(e),-je,je):e===0?e:0}function N(e){return e==null?"":ye(e)}var pd=Mt(function(e,t){if(ln(t)||fe(t)){Ue(t,ne(t),e);return}for(var n in t)G.call(t,n)&&en(e,n,t[n])}),Ja=Mt(function(e,t){Ue(t,de(t),e)}),rr=Mt(function(e,t,n,i){Ue(t,de(t),e,i)}),cd=Mt(function(e,t,n,i){Ue(t,ne(t),e,i)}),fd=Ye(Wr);function dd(e,t){var n=Pt(e);return t==null?n:Bo(n,t)}var hd=P(function(e,t){e=z(e);var n=-1,i=t.length,a=i>2?t[2]:r;for(a&&ue(t[0],t[1],a)&&(i=1);++n<i;)for(var s=t[n],p=de(s),c=-1,d=p.length;++c<d;){var y=p[c],v=e[y];(v===r||Pe(v,Rt[y])&&!G.call(e,y))&&(e[y]=s[y])}return e}),gd=P(function(e){return e.push(r,fa),ge(Za,r,e)});function md(e,t){return lo(e,B(t,3),ke)}function yd(e,t){return lo(e,B(t,3),kr)}function vd(e,t){return e==null?e:Or(e,B(t,3),de)}function xd(e,t){return e==null?e:Eo(e,B(t,3),de)}function bd(e,t){return e&&ke(e,B(t,3))}function _d(e,t){return e&&kr(e,B(t,3))}function Sd(e){return e==null?[]:On(e,ne(e))}function wd(e){return e==null?[]:On(e,de(e))}function yi(e,t,n){var i=e==null?r:mt(e,t);return i===r?n:i}function Cd(e,t){return e!=null&&ga(e,t,qu)}function vi(e,t){return e!=null&&ga(e,t,Vu)}var Ld=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),e[t]=n},bi(he)),Id=la(function(e,t,n){t!=null&&typeof t.toString!="function"&&(t=Ln.call(t)),G.call(e,t)?e[t].push(n):e[t]=[n]},B),Bd=P(nn);function ne(e){return fe(e)?Lo(e):zr(e)}function de(e){return fe(e)?Lo(e,!0):rp(e)}function Ad(e,t){var n={};return t=B(t,3),ke(e,function(i,a,s){qe(n,t(i,a,s),i)}),n}function Fd(e,t){var n={};return t=B(t,3),ke(e,function(i,a,s){qe(n,a,t(i,a,s))}),n}var Td=Mt(function(e,t,n){kn(e,t,n)}),Za=Mt(function(e,t,n,i){kn(e,t,n,i)}),Rd=Ye(function(e,t){var n={};if(e==null)return n;var i=!1;t=Y(t,function(s){return s=at(s,e),i||(i=s.length>1),s}),Ue(e,ri(e),n),i&&(n=Ie(n,K|oe|bt,Cp));for(var a=t.length;a--;)Jr(n,t[a]);return n});function Ed(e,t){return Xa(e,er(B(t)))}var Dd=Ye(function(e,t){return e==null?{}:op(e,t)});function Xa(e,t){if(e==null)return{};var n=Y(ri(e),function(i){return[i]});return t=B(t),Go(e,n,function(i,a){return t(i,a[0])})}function Pd(e,t,n){t=at(t,e);var i=-1,a=t.length;for(a||(a=1,e=r);++i<a;){var s=e==null?r:e[Ne(t[i])];s===r&&(i=a,s=n),e=Ze(s)?s.call(e):s}return e}function Md(e,t,n){return e==null?e:on(e,t,n)}function Hd(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:on(e,t,n,i)}var Qa=pa(ne),ja=pa(de);function Wd(e,t,n){var i=R(e),a=i||st(e)||Ot(e);if(t=B(t,4),n==null){var s=e&&e.constructor;a?n=i?new s:[]:Z(e)?n=Ze(s)?Pt(An(e)):{}:n={}}return(a?we:ke)(e,function(p,c,d){return t(n,p,c,d)}),n}function Od(e,t){return e==null?!0:Jr(e,t)}function kd(e,t,n){return e==null?e:Vo(e,t,Qr(n))}function Ud(e,t,n,i){return i=typeof i=="function"?i:r,e==null?e:Vo(e,t,Qr(n),i)}function kt(e){return e==null?[]:Tr(e,ne(e))}function Nd(e){return e==null?[]:Tr(e,de(e))}function Gd(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=Fe(n),n=n===n?n:0),t!==r&&(t=Fe(t),t=t===t?t:0),gt(Fe(e),t,n)}function zd(e,t,n){return t=Xe(t),n===r?(n=t,t=0):n=Xe(n),e=Fe(e),Yu(e,t,n)}function $d(e,t,n){if(n&&typeof n!="boolean"&&ue(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=Xe(e),t===r?(t=e,e=0):t=Xe(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var a=wo();return ae(e+a*(t-e+_s("1e-"+((a+"").length-1))),t)}return qr(e,t)}var Kd=Ht(function(e,t,n){return t=t.toLowerCase(),e+(n?el(t):t)});function el(e){return xi(N(e).toLowerCase())}function tl(e){return e=N(e),e&&e.replace(ql,Ps).replace(cs,"")}function qd(e,t,n){e=N(e),t=ye(t);var i=e.length;n=n===r?i:gt(E(n),0,i);var a=n;return n-=t.length,n>=0&&e.slice(n,a)==t}function Vd(e){return e=N(e),e&&Il.test(e)?e.replace(Ri,Ms):e}function Yd(e){return e=N(e),e&&El.test(e)?e.replace(hr,"\\$&"):e}var Jd=Ht(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Zd=Ht(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),Xd=ia("toLowerCase");function Qd(e,t,n){e=N(e),t=E(t);var i=t?Ft(e):0;if(!t||i>=t)return e;var a=(t-i)/2;return Kn(En(a),n)+e+Kn(Rn(a),n)}function jd(e,t,n){e=N(e),t=E(t);var i=t?Ft(e):0;return t&&i<t?e+Kn(t-i,n):e}function eh(e,t,n){e=N(e),t=E(t);var i=t?Ft(e):0;return t&&i<t?Kn(t-i,n)+e:e}function th(e,t,n){return n||t==null?t=0:t&&(t=+t),lu(N(e).replace(gr,""),t||0)}function nh(e,t,n){return(n?ue(e,t,n):t===r)?t=1:t=E(t),Vr(N(e),t)}function rh(){var e=arguments,t=N(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ih=Ht(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});function oh(e,t,n){return n&&typeof n!="number"&&ue(e,t,n)&&(t=n=r),n=n===r?Oe:n>>>0,n?(e=N(e),e&&(typeof t=="string"||t!=null&&!mi(t))&&(t=ye(t),!t&&At(e))?lt(Ee(e),0,n):e.split(t,n)):[]}var ah=Ht(function(e,t,n){return e+(n?" ":"")+xi(t)});function lh(e,t,n){return e=N(e),n=n==null?0:gt(E(n),0,e.length),t=ye(t),e.slice(n,n+t.length)==t}function sh(e,t,n){var i=l.templateSettings;n&&ue(e,t,n)&&(t=r),e=N(e),t=rr({},t,i,ca);var a=rr({},t.imports,i.imports,ca),s=ne(a),p=Tr(a,s),c,d,y=0,v=t.interpolate||mn,b="__p += '",C=Er((t.escape||mn).source+"|"+v.source+"|"+(v===Ei?Ul:mn).source+"|"+(t.evaluate||mn).source+"|$","g"),I="//# sourceURL="+(G.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ms+"]")+`
|
|
11
|
+
`;e.replace(C,function(F,H,O,xe,pe,be){return O||(O=xe),b+=e.slice(y,be).replace(Vl,Hs),H&&(c=!0,b+=`' +
|
|
12
|
+
__e(`+H+`) +
|
|
13
|
+
'`),pe&&(d=!0,b+=`';
|
|
14
|
+
`+pe+`;
|
|
15
|
+
__p += '`),O&&(b+=`' +
|
|
16
|
+
((__t = (`+O+`)) == null ? '' : __t) +
|
|
17
|
+
'`),y=be+F.length,F}),b+=`';
|
|
18
|
+
`;var A=G.call(t,"variable")&&t.variable;if(!A)b=`with (obj) {
|
|
19
|
+
`+b+`
|
|
20
20
|
}
|
|
21
|
-
`;else if(
|
|
21
|
+
`;else if(Ol.test(A))throw new T(M);b=(d?b.replace(Sl,""):b).replace(wl,"$1").replace(Cl,"$1;"),b="function("+(A||"obj")+`) {
|
|
22
22
|
`+(A?"":`obj || (obj = {});
|
|
23
|
-
`)+"var __t, __p = ''"+(
|
|
23
|
+
`)+"var __t, __p = ''"+(c?", __e = _.escape":"")+(d?`, __j = Array.prototype.join;
|
|
24
24
|
function print() { __p += __j.call(arguments, '') }
|
|
25
25
|
`:`;
|
|
26
|
-
`)+
|
|
27
|
-
}`;var D=rl(function(){return k(s,I+"return "+x).apply(r,c)});if(D.source=x,gi(D))throw D;return D}function uh(e){return U(e).toLowerCase()}function ch(e){return U(e).toUpperCase()}function ph(e,t,n){if(e=U(e),e&&(n||t===r))return po(e);if(!e||!(t=ye(t)))return e;var i=Ee(e),a=Ee(t),s=fo(i,a),c=ho(i,a)+1;return lt(i,s,c).join("")}function fh(e,t,n){if(e=U(e),e&&(n||t===r))return e.slice(0,mo(e)+1);if(!e||!(t=ye(t)))return e;var i=Ee(e),a=ho(i,Ee(t))+1;return lt(i,0,a).join("")}function dh(e,t,n){if(e=U(e),e&&(n||t===r))return e.replace(gr,"");if(!e||!(t=ye(t)))return e;var i=Ee(e),a=fo(i,Ee(t));return lt(i,a).join("")}function hh(e,t){var n=al,i=ll;if(J(t)){var a="separator"in t?t.separator:a;n="length"in t?E(t.length):n,i="omission"in t?ye(t.omission):i}e=U(e);var s=e.length;if(At(e)){var c=Ee(e);s=c.length}if(n>=s)return e;var p=n-Rt(i);if(p<1)return i;var d=c?lt(c,0,p).join(""):e.slice(0,p);if(a===r)return d+i;if(c&&(p+=d.length-p),mi(a)){if(e.slice(p).search(a)){var y,v=d;for(a.global||(a=Er(a.source,U(Di.exec(a))+"g")),a.lastIndex=0;y=a.exec(v);)var x=y.index;d=d.slice(0,x===r?p:x)}}else if(e.indexOf(ye(a),p)!=p){var C=d.lastIndexOf(a);C>-1&&(d=d.slice(0,C))}return d+i}function gh(e){return e=U(e),e&&Ll.test(e)?e.replace(Fi,zs):e}var mh=Ht(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),bi=ia("toUpperCase");function nl(e,t,n){return e=U(e),t=n?r:t,t===r?Ws(e)?qs(e):Rs(e):e.match(t)||[]}var rl=P(function(e,t){try{return ge(e,r,t)}catch(n){return gi(n)?n:new F(n)}}),yh=Ye(function(e,t){return we(t,function(n){n=Ne(n),qe(e,n,di(e[n],e))}),e});function vh(e){var t=e==null?0:e.length,n=B();return e=t?q(e,function(i){if(typeof i[1]!="function")throw new Ce(S);return[n(i[0]),i[1]]}):[],P(function(i){for(var a=-1;++a<t;){var s=e[a];if(ge(s[0],this,i))return ge(s[1],this,i)}})}function bh(e){return zu(Ie(e,Y))}function xi(e){return function(){return e}}function xh(e,t){return e==null||e!==e?t:e}var _h=aa(),Sh=aa(!0);function de(e){return e}function _i(e){return Ho(typeof e=="function"?e:Ie(e,Y))}function wh(e){return Wo(Ie(e,Y))}function Ch(e,t){return ko(e,Ie(t,Y))}var Lh=P(function(e,t){return function(n){return nn(n,e,t)}}),Ih=P(function(e,t){return function(n){return nn(e,n,t)}});function Si(e,t,n){var i=ne(t),a=Wn(t,i);n==null&&!(J(t)&&(a.length||!i.length))&&(n=t,t=e,e=this,a=Wn(t,ne(t)));var s=!(J(n)&&"chain"in n)||!!n.chain,c=Ze(e);return we(a,function(p){var d=t[p];e[p]=d,c&&(e.prototype[p]=function(){var y=this.__chain__;if(s||y){var v=e(this.__wrapped__),x=v.__actions__=ce(this.__actions__);return x.push({func:d,args:arguments,thisArg:e}),v.__chain__=y,v}return d.apply(e,tt([this.value()],arguments))})}),e}function Bh(){return re._===this&&(re._=Qs),this}function wi(){}function Ah(e){return e=E(e),P(function(t){return Uo(t,e)})}var Rh=ei(q),Fh=ei(ao),Th=ei(Lr);function il(e){return li(e)?Ir(Ne(e)):ac(e)}function Eh(e){return function(t){return e==null?r:mt(e,t)}}var Dh=sa(),Ph=sa(!0);function Ci(){return[]}function Li(){return!1}function Mh(){return{}}function Hh(){return""}function Oh(){return!0}function Wh(e,t){if(e=E(e),e<1||e>je)return[];var n=We,i=oe(e,We);t=B(t),e-=We;for(var a=Rr(i,t);++n<e;)t(n);return a}function kh(e){return T(e)?q(e,Ne):ve(e)?[e]:ce(Ca(U(e)))}function Uh(e){var t=++Zs;return U(e)+t}var Nh=$n(function(e,t){return e+t},0),Gh=ti("ceil"),zh=$n(function(e,t){return e/t},1),$h=ti("floor");function Kh(e){return e&&e.length?On(e,de,Ur):r}function qh(e,t){return e&&e.length?On(e,B(t,2),Ur):r}function Vh(e){return uo(e,de)}function Yh(e,t){return uo(e,B(t,2))}function Jh(e){return e&&e.length?On(e,de,$r):r}function Zh(e,t){return e&&e.length?On(e,B(t,2),$r):r}var Xh=$n(function(e,t){return e*t},1),Qh=ti("round"),jh=$n(function(e,t){return e-t},0);function eg(e){return e&&e.length?Ar(e,de):0}function tg(e,t){return e&&e.length?Ar(e,B(t,2)):0}return l.after=wf,l.ary=Ma,l.assign=cd,l.assignIn=Ja,l.assignInWith=rr,l.assignWith=pd,l.at=fd,l.before=Ha,l.bind=di,l.bindAll=yh,l.bindKey=Oa,l.castArray=Mf,l.chain=Ea,l.chunk=zc,l.compact=$c,l.concat=Kc,l.cond=vh,l.conforms=bh,l.constant=xi,l.countBy=jp,l.create=dd,l.curry=Wa,l.curryRight=ka,l.debounce=Ua,l.defaults=hd,l.defaultsDeep=gd,l.defer=Cf,l.delay=Lf,l.difference=qc,l.differenceBy=Vc,l.differenceWith=Yc,l.drop=Jc,l.dropRight=Zc,l.dropRightWhile=Xc,l.dropWhile=Qc,l.fill=jc,l.filter=tf,l.flatMap=of,l.flatMapDeep=af,l.flatMapDepth=lf,l.flatten=Aa,l.flattenDeep=ep,l.flattenDepth=tp,l.flip=If,l.flow=_h,l.flowRight=Sh,l.fromPairs=np,l.functions=Sd,l.functionsIn=wd,l.groupBy=sf,l.initial=ip,l.intersection=op,l.intersectionBy=ap,l.intersectionWith=lp,l.invert=Ld,l.invertBy=Id,l.invokeMap=cf,l.iteratee=_i,l.keyBy=pf,l.keys=ne,l.keysIn=fe,l.map=Xn,l.mapKeys=Ad,l.mapValues=Rd,l.matches=wh,l.matchesProperty=Ch,l.memoize=jn,l.merge=Fd,l.mergeWith=Za,l.method=Lh,l.methodOf=Ih,l.mixin=Si,l.negate=er,l.nthArg=Ah,l.omit=Td,l.omitBy=Ed,l.once=Bf,l.orderBy=ff,l.over=Rh,l.overArgs=Af,l.overEvery=Fh,l.overSome=Th,l.partial=hi,l.partialRight=Na,l.partition=df,l.pick=Dd,l.pickBy=Xa,l.property=il,l.propertyOf=Eh,l.pull=pp,l.pullAll=Fa,l.pullAllBy=fp,l.pullAllWith=dp,l.pullAt=hp,l.range=Dh,l.rangeRight=Ph,l.rearg=Rf,l.reject=mf,l.remove=gp,l.rest=Ff,l.reverse=pi,l.sampleSize=vf,l.set=Md,l.setWith=Hd,l.shuffle=bf,l.slice=mp,l.sortBy=Sf,l.sortedUniq=wp,l.sortedUniqBy=Cp,l.split=oh,l.spread=Tf,l.tail=Lp,l.take=Ip,l.takeRight=Bp,l.takeRightWhile=Ap,l.takeWhile=Rp,l.tap=$p,l.throttle=Ef,l.thru=Zn,l.toArray=qa,l.toPairs=Qa,l.toPairsIn=ja,l.toPath=kh,l.toPlainObject=Ya,l.transform=Od,l.unary=Df,l.union=Fp,l.unionBy=Tp,l.unionWith=Ep,l.uniq=Dp,l.uniqBy=Pp,l.uniqWith=Mp,l.unset=Wd,l.unzip=fi,l.unzipWith=Ta,l.update=kd,l.updateWith=Ud,l.values=kt,l.valuesIn=Nd,l.without=Hp,l.words=nl,l.wrap=Pf,l.xor=Op,l.xorBy=Wp,l.xorWith=kp,l.zip=Up,l.zipObject=Np,l.zipObjectDeep=Gp,l.zipWith=zp,l.entries=Qa,l.entriesIn=ja,l.extend=Ja,l.extendWith=rr,Si(l,l),l.add=Nh,l.attempt=rl,l.camelCase=Kd,l.capitalize=el,l.ceil=Gh,l.clamp=Gd,l.clone=Hf,l.cloneDeep=Wf,l.cloneDeepWith=kf,l.cloneWith=Of,l.conformsTo=Uf,l.deburr=tl,l.defaultTo=xh,l.divide=zh,l.endsWith=qd,l.eq=Pe,l.escape=Vd,l.escapeRegExp=Yd,l.every=ef,l.find=nf,l.findIndex=Ia,l.findKey=md,l.findLast=rf,l.findLastIndex=Ba,l.findLastKey=yd,l.floor=$h,l.forEach=Da,l.forEachRight=Pa,l.forIn=vd,l.forInRight=bd,l.forOwn=xd,l.forOwnRight=_d,l.get=yi,l.gt=Nf,l.gte=Gf,l.has=Cd,l.hasIn=vi,l.head=Ra,l.identity=de,l.includes=uf,l.indexOf=rp,l.inRange=zd,l.invoke=Bd,l.isArguments=bt,l.isArray=T,l.isArrayBuffer=zf,l.isArrayLike=pe,l.isArrayLikeObject=X,l.isBoolean=$f,l.isBuffer=st,l.isDate=Kf,l.isElement=qf,l.isEmpty=Vf,l.isEqual=Yf,l.isEqualWith=Jf,l.isError=gi,l.isFinite=Zf,l.isFunction=Ze,l.isInteger=Ga,l.isLength=tr,l.isMap=za,l.isMatch=Xf,l.isMatchWith=Qf,l.isNaN=jf,l.isNative=ed,l.isNil=nd,l.isNull=td,l.isNumber=$a,l.isObject=J,l.isObjectLike=Z,l.isPlainObject=un,l.isRegExp=mi,l.isSafeInteger=rd,l.isSet=Ka,l.isString=nr,l.isSymbol=ve,l.isTypedArray=Wt,l.isUndefined=id,l.isWeakMap=od,l.isWeakSet=ad,l.join=sp,l.kebabCase=Jd,l.last=Ae,l.lastIndexOf=up,l.lowerCase=Zd,l.lowerFirst=Xd,l.lt=ld,l.lte=sd,l.max=Kh,l.maxBy=qh,l.mean=Vh,l.meanBy=Yh,l.min=Jh,l.minBy=Zh,l.stubArray=Ci,l.stubFalse=Li,l.stubObject=Mh,l.stubString=Hh,l.stubTrue=Oh,l.multiply=Xh,l.nth=cp,l.noConflict=Bh,l.noop=wi,l.now=Qn,l.pad=Qd,l.padEnd=jd,l.padStart=eh,l.parseInt=th,l.random=$d,l.reduce=hf,l.reduceRight=gf,l.repeat=nh,l.replace=rh,l.result=Pd,l.round=Qh,l.runInContext=f,l.sample=yf,l.size=xf,l.snakeCase=ih,l.some=_f,l.sortedIndex=yp,l.sortedIndexBy=vp,l.sortedIndexOf=bp,l.sortedLastIndex=xp,l.sortedLastIndexBy=_p,l.sortedLastIndexOf=Sp,l.startCase=ah,l.startsWith=lh,l.subtract=jh,l.sum=eg,l.sumBy=tg,l.template=sh,l.times=Wh,l.toFinite=Xe,l.toInteger=E,l.toLength=Va,l.toLower=uh,l.toNumber=Re,l.toSafeInteger=ud,l.toString=U,l.toUpper=ch,l.trim=ph,l.trimEnd=fh,l.trimStart=dh,l.truncate=hh,l.unescape=gh,l.uniqueId=Uh,l.upperCase=mh,l.upperFirst=bi,l.each=Da,l.eachRight=Pa,l.first=Ra,Si(l,function(){var e={};return ke(l,function(t,n){N.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=h,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:te(E(n),0);var i=this.__filtered__&&!t?new H(this):this.clone();return i.__filtered__?i.__takeCount__=oe(n,i.__takeCount__):i.__views__.push({size:oe(n,We),type:e+(i.__dir__<0?"Right":"")}),i},H.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),we(["filter","map","takeWhile"],function(e,t){var n=t+1,i=n==Bi||n==pl;H.prototype[e]=function(a){var s=this.clone();return s.__iteratees__.push({iteratee:B(a,3),type:n}),s.__filtered__=s.__filtered__||i,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(de)},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 nn(n,e,t)})}),H.prototype.reject=function(e){return this.filter(er(B(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(We)},ke(H.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=l[i?"take"+(t=="last"?"Right":""):t],s=i||/^find/.test(t);!a||(l.prototype[t]=function(){var c=this.__wrapped__,p=i?[1]:arguments,d=c instanceof H,y=p[0],v=d||T(c),x=function(M){var W=a.apply(l,tt([M],p));return i&&C?W[0]:W};v&&n&&typeof y=="function"&&y.length!=1&&(d=v=!1);var C=this.__chain__,I=!!this.__actions__.length,A=s&&!C,D=d&&!I;if(!s&&v){c=D?c:new H(this);var R=e.apply(c,p);return R.__actions__.push({func:Zn,args:[x],thisArg:r}),new Le(R,C)}return A&&D?e.apply(this,p):(R=this.thru(x),A?i?R.value()[0]:R.value():R)})}),we(["pop","push","shift","sort","splice","unshift"],function(e){var t=Sn[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(i&&!this.__chain__){var s=this.value();return t.apply(T(s)?s:[],a)}return this[n](function(c){return t.apply(T(c)?c:[],a)})}}),ke(H.prototype,function(e,t){var n=l[t];if(n){var i=n.name+"";N.call(Dt,i)||(Dt[i]=[]),Dt[i].push({name:t,func:n})}}),Dt[zn(r,ut).name]=[{name:"wrapper",func:r}],H.prototype.clone=hu,H.prototype.reverse=gu,H.prototype.value=mu,l.prototype.at=Kp,l.prototype.chain=qp,l.prototype.commit=Vp,l.prototype.next=Yp,l.prototype.plant=Zp,l.prototype.reverse=Xp,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=Qp,l.prototype.first=l.prototype.head,Jt&&(l.prototype[Jt]=Jp),l},Ft=Vs();pt?((pt.exports=Ft)._=Ft,_r._=Ft):re._=Ft}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{layout:{type:"array",items:{type:"object",properties:{key:{type:"string"},value:{type:"string"}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},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"},validationValue:{type:"string"}}}}}},componentBasicUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core"],defaultStyle:!0,id:"component"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type",options:[{title:"Select",const:"Select"},{title:"Date",const:"Date"},{title:"CheckBox",const:"CheckBox"},{title:"Table",const:"Table"},{title:"Array",const:"Array"},{title:"Container",const:"WrapperSection"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Radio",const:"Radio"},{title:"Text Area",const:"TextArea"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{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"}]}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size",options:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]}}},{type:"Control",scope:"#/properties/value",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",options:[{title:"3",const:"3"},{title:"5.5",const:"5.5"},{title:"8",const:"8"},{title:"12",const:"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=o=>{const u=_.cloneDeep(o);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=o=>{let u={};return o.map(r=>{u[r.key]=+r.value}),u},flatObjectValueInArray=o=>{const u=Object.keys(o[0])[0];return o.map(h=>h[u])},getNavigationHistory=(o,u)=>{if(u){let r=o.name;const h=u.split("."),b=[];return h.map((w,S)=>{if(S===0){b.push(w);return}b.push(`${b[S-1]}.${w}`)}),b.map(w=>{const S=_.get(o,w);S?r=r+` > ${(S==null?void 0:S.name)||(S==null?void 0:S.eventType)}`:r=r+" > NewComponent"}),{pageName:r}}},saveFormdataInLocalStorage=(o,u)=>{let r;if(u){const h=getFormdataFromLocalStorage();r=_.set(h,u,buildConfig(o))}else r=buildConfig(o);return localStorage.setItem("pageFormdata",JSON.stringify(r)),r},getFormdataFromLocalStorage=o=>{const u=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let r;return o&&(r=_.get(u,o),r={...r,...getNavigationHistory(u,o)}),r||(r=getNavigationHistory(u,o)),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",options:[{title:"Select",const:"Select"},{title:"Date",const:"Date"},{title:"CheckBox",const:"CheckBox"},{title:"Table",const:"Table"},{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"}]}}},{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",options:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]}}},{type:"Control",scope:"#/properties/value",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",options:[{title:"3",const:"3"},{title:"5.5",const:"5.5"},{title:"8",const:"8"},{title:"12",const:"12"}]}}}]}}}]},OptionArray={type:"Control",scope:"#/properties/value",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},EventSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Event Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"eventAddHandler",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},EmptyBox={type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}},getArrayControl=(o,u,r)=>({type:"Control",scope:`#/properties/${o}`,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=(o,u)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u}}}),getRadioInputField=(o,u,r)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,options:r}}}),getTextArea=(o,u,r,h)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"TextArea"},config:{layout:h||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:u,minRows:8,hideButton:r}}}),getSelectField=(o,u,r)=>({type:"Control",scope:`#/properties/${o}`,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(o){let u=_.cloneDeep(GraphSection);if(o==="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(o==="RankCard")u.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];else if(o==="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(o==="CardSlider"){const r=getInputField("heading","Heading"),h=getInputField("iconName","Icon Name");u.elements=[r,h]}else if(o==="ProgressBar"||o==="ProgressBarCard"){const r=getInputField("heading","Heading"),h=getInputField("bottomLabel_1","First BottomLabel"),b=getInputField("bottomLabel_2","Second BottomLabel"),w=getInputField("bottomLabel_3","Third BottomLabel");u.elements=[r,h,b,w]}else if(o==="card")u.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description")];else if(o==="Box"){const r=getInputField("value","Value");u.elements=[getSelectField("graphType","Label Type",[{title:"URL",const:"url"},{title:"Heading",const:"heading"}]),r]}else if(o==="Button"){const r=getInputField("color","Color"),h=getInputField("size","Size"),b=getInputField("iconName","Icon Name");u.elements=[getSelectField("buttonType","Button Type",[{title:"Button With Text",const:"Button"},{title:"Button With Icon",const:"IconButton"},{title:"Button With Icon and Text",const:"ButtonWithIconAndText"}]),b,h,r,getSelectField("defaultStyle","Default Style",[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]),JSON.parse(JSON.stringify(EmptyBox))]}else if(o==="Graph"){const r=getInputField("height","Height"),h=getInputField("heading","Heading"),b=getInputField("leftLabel","Left Label"),w=getInputField("bottomLabel","Bottom Label"),S=getRadioInputField("legendHide","Legend Hide",["YES","No"]);u.elements=[h,r,getSelectField("graphType","Graph Type",[{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"}]),b,w,S,getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")]}else o==="WrapperSection"?u.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("heading","Page Heading",["YES","No"])]:o==="TabSection"?u.elements=[getArrayControl("sectionLabels","label")]:o==="Radio"&&(u.elements=[getArrayControl("sectionLabels","label","Options Of Radio")]);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",options:[{title:"required",const:"Required"},{title:"minLength",const:"Minimum Length"},{title:"maxLength",const:"Maximum Length"},{title:"pattern",const:"Pattern"}]}}},{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","Value","style","Event","Validation"],MultipleSelect:["Core","Value","style","Event","Validation"],Table:["Core","Components","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","Properties","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=(o,u)=>{var h;const r=_.cloneDeep(componentBasicUiSchema);if(o){const b={Core:CoreSection,Value:ValueTab,style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(o),Validation:ValidationSection},w=(h=sectionLabels[o])==null?void 0:h.map(S=>b[S]);r.elements[1].config.main.tabLabels=sectionLabels[o]||["Core","style","Event","Validation"],r.elements[1].elements=w||[CoreSection,StyleSection,EventSection,ValidationSection]}u.setUiSchema(r)};var Component=(o,u)=>({setPage:async function(){const r=await this.getFormdata();o.setFormdata(r);const h=this.getSchema();o.setSchema(h),this.refreshPage(r==null?void 0:r.type,o)},refreshPage,getFormdata:async function(){var h;const r=(h=o.searchParams)==null?void 0:h.get("path");return getFormdataFromLocalStorage(r)},getSchema:function(){return ComponentSchema},saveHandler:async function(){var h;const r=(h=o.searchParams)==null?void 0:h.get("path");saveFormdataInLocalStorage(o.formData,r),o.navigate(-1),o.setNotify({SuccessMessage:"Save Successfully",Success:!0})},onChange:function(){var r,h,b,w;((r=o==null?void 0:o.formData)==null?void 0:r.type)!==((h=o==null?void 0:o.newData)==null?void 0:h.type)&&((b=o==null?void 0:o.newData)==null?void 0:b.type)!==void 0&&this.refreshPage((w=o==null?void 0:o.newData)==null?void 0:w.type,o)},editComponents:async function(){var w,S,O;const r=u.path.split(".")[1],h=(w=o.searchParams)==null?void 0:w.get("path"),b=(S=o.searchParams)==null?void 0:S.get("id");if(saveFormdataInLocalStorage(o.formData,h),h){const j=`${(O=o.searchParams)==null?void 0:O.get("path")}.elements[${r}]`;o.searchParams.set("path",j),o.setSearchParams(o.searchParams),this.setPage()}else o.navigate(`/Component?path=${`elements[${r}]`}&id=${b}`)},deleteComponents:async function(){var S;const r=(S=o.searchParams)==null?void 0:S.get("path"),h=u.path.split(".")[1];o.formData.elements.splice(h,1);const b=saveFormdataInLocalStorage(o.formData,r),w=r?_.get(b,r):b;o.setFormdata(w)},deleteEvent:async function(){var w;const r=(w=o.searchParams)==null?void 0:w.get("path"),h=u.path.split(".")[1];o.formData.events.splice(h,1);const b=saveFormdataInLocalStorage(o.formData,r);o.setFormdata(_.get(b,r))},widgetAddClickHandler:async function(){var b;Array.isArray(o.formData.elements)||(o.formData.elements=[]);const r=(b=o.searchParams)==null?void 0:b.get("path");saveFormdataInLocalStorage(o.formData,r);const h=`${r}.elements[${o.formData.elements.length}]`;o.searchParams.set("path",h),o.setSearchParams(o.searchParams),this.setPage()},eventEditHandler:async function(){var S,O;const r=u.path.split(".")[1],h=(S=o.searchParams)==null?void 0:S.get("path"),b=(O=o.searchParams)==null?void 0:O.get("id");saveFormdataInLocalStorage(o.formData,h);const w=`${h}.events[${r}]`;o.navigate(`/ComponentEvents?path=${w}&id=${b}`)},eventAddHandler:async function(){var w,S;const r=(w=o.searchParams)==null?void 0:w.get("path"),h=(S=o.searchParams)==null?void 0:S.get("id");Array.isArray(o.formData.events)||(o.formData.events=[]),saveFormdataInLocalStorage(o.formData,r);const b=`${r}.events[${o.formData.events.length}]`;o.navigate(`/ComponentEvents?path=${b}&id=${h}`)},backHandler:function(){o.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=o=>{const u=_.cloneDeep(leaderBoard);if(o.elements){const r=o.elements.map((h,b)=>h.type?{...{widget:buildUiSchema(h),accessorKey:h.name,header:h.label||h.name}}:{accessorKey:h.name,header:h.label||h.name});u.elements[9].elements=r}return o.name&&(u.elements[0].scope=`#/properties/${o.name}/properties/firstImage`,u.elements[3].scope=`#/properties/${o.name}/properties/firstName`,u.elements[1].scope=`#/properties/${o.name}/properties/secondImage`,u.elements[4].scope=`#/properties/${o.name}/properties/secondName`,u.elements[2].scope=`#/properties/${o.name}/properties/thirdImage`,u.elements[5].scope=`#/properties/${o.name}/properties/thirdName`,u.elements[9].scope=`#/properties/${o.name}/properties/table`),o.firstImage&&(u.elements[0].config.main.url=o.firstImage),o.secondImage&&(u.elements[1].config.main.url=o.secondImage),o.secondImage&&(u.elements[2].config.main.url=o.thirdImage),o.layout&&(u.config.layout=o.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=(o,u)=>{const r=_.cloneDeep(progressBar);return r.scope=u,o.heading&&(r.config.main.heading=o.heading),o.bottomLabel_3&&(r.config.main.bottomLabel_3=o.bottomLabel_3),o.bottomLabel_2&&(r.config.main.bottomLabel_2=o.bottomLabel_2),o.bottomLabel_1&&(r.elements[0].config.main.bottomLabel_1=o.bottomLabel_1),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r},buildProgressBar=(o,u)=>{const r=_.cloneDeep(progressBar);return r.scope=u,o.layout&&(r.config.layout=o.layout),r.config.main.heading=o.heading,o.bottomLabel_3&&(r.config.main.bottomLabel_3=o.bottomLabel_3),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.bottomLabel_2&&(r.config.main.bottomLabel_2=o.bottomLabel_2),o.bottomLabel_1&&(r.config.main.bottomLabel_1=o.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=(o,u)=>{const r=_.cloneDeep(HorizontalBarGraph);return r.scope=u,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r.scope=u,r.config.main.header=o.heading,o.barColor&&(r.config.barStyle.color=o.barColor),o.containerBackground&&(r.config.containerStyle.background=o.containerBackground),o.height&&(r.config.style.containerStyle.height=o.height),o.bottomLabel&&(r.config.main.bottomLabel=o.bottomLabel),o.leftLabel&&(r.config.main.leftLabel=o.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=(o,u)=>{const r=_.cloneDeep(SpeedoMeter);if(r.scope=u,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.heading&&(r.config.main.header=o.heading),o.segments&&(r.config.main.segments=o.segments),o.style){const h=JSON.parse(o.style);h!=null&&h.style&&(r.config.style={...r.config.style,...h.style}),h!=null&&h.containerStyle&&(r.config.style.containerStyle={...r.config.style.containerStyle,...h.containerStyle})}return o.width&&(r.config.main.width=o.width),o.speedoCaption&&(r.config.main.currentValueText=o.speedoCaption),o.data&&(r.config.main.data=o.data),o.needleColor&&(r.config.style.needleColor=o.needleColor),o.segments&&(r.config.style.segments=o.segments),o.endColor&&(r.config.style.endColor=o.endColor),o.startColor&&(r.config.style.startColor=o.startColor),o.segmentColors&&(r.config.style.segmentColors=o.segmentColors),r},buildPieGraph=(o,u)=>{const r=_.cloneDeep(PieGraph);return o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.height&&(r.config.style.containerStyle.height=o.height),o.legendHide&&(r.config.main.legendAvailabe=o.legendHide!=="YES"),r.scope=u,r.config.main.header=o.heading,o.legendLabels&&(r.config.main.tooltipDataKey=flatObjectValueInArray(o.legendLabels)),o.pieArcColors&&(r.config.style.pieStyle.colorRange=flatObjectValueInArray(o.pieArcColors)),r},buildStackbarGraph=(o,u)=>{const r=_.cloneDeep(BarGraph);return o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.legendHide&&(r.config.main.legendAvailable=!1),r.config.main.type=o.graphType,r.config.main.header=o.heading,o.barColor&&(r.config.barStyle.color=o.barColor),o.containerBackground&&(r.config.containerStyle.background=o.containerBackground),o.height&&(r.config.style.containerStyle.height=o.height),o.bottomLabel&&(r.config.main.bottomLabel=o.bottomLabel),o.leftLabel&&(r.config.main.leftLabel=o.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=(o,u)=>{const r=_.cloneDeep(RunnerBoyProgressBar);return r.scope=u,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(o,u)=>{const r=_.cloneDeep(Tabsection);return o.sectionLabels&&(r.config.main.tabLabels=o.sectionLabels.map(h=>h.label)),r.config.main.id=o.name,r};var WrapperSection={type:"WrapperLayout",config:{main:{label:"Default Label",divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(o,u)=>{const r=_.cloneDeep(WrapperSection);return r.config.main.label=o.label,r.config.main.divider=!!o.divider,r.config.main.header=!!o.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=(o,u)=>{const r=_.cloneDeep(TextInputField);return r.config.main.label=o.label,o.style&&(r.config.style=JSON.parse(o.style)),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r.config.main.errorMessage=`${o.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"}}};const buildSelect=(o,u)=>{const r=_.cloneDeep(SelectInputField);if(r.config.main.label=o.label,o.value){const h=o.value.map(b=>({title:b.label,const:b.value}));r.config.main.options=h}return o.layout&&(r.config.layout=createLayoutFormat(o.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=(o,u)=>{const r=_.cloneDeep(Button);return o.buttonType&&(r.options.widget=o.buttonType==="IconButton"?"IconButton":"Button",o.buttonType==="ButtonWithIconAndText"?r.config.main.startIcon=o.iconName:r.config.main.icon=o.iconName),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.defaultStyle&&(r.config.main.styleDefault=o.defaultStyle==="true"),r.scope=u,o.style&&(r.config.style=JSON.parse(o.style)),o.size&&(r.config.main.size=o.size),o.color&&(r.config.main.color=o.color),o.label&&(r.config.main.name=o.label),r};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{allRowData:[],columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(o,u)=>{const r=_.cloneDeep(Table);return r.scope=u,o.style&&(r.config.style=JSON.parse(o.style)),r.config.main.label=o.label,r};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(o,u)=>{const r=_.cloneDeep(Box);return r.scope=u,r.config.main.heading=o.label,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.style&&(r.config.style=JSON.parse(o.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=(o,u)=>{const r=_.cloneDeep(uploadFile);return r.scope=u,r.config.main.label=o.label,o.layout&&(r.config.layout=o.layout),o.layout&&(uploadFile.config.layout=createLayoutFormat(o.layout)),o.style&&(r.config.style=o.style),o.required&&(r.config.main.required=!0),r.config.main.errorMessage=o.errorMessage,r},buildDownloadFile=(o,u)=>{const r=_.cloneDeep(downloadFile$1);return r.scope=u,o.layout&&(r.config.layout=o.layout),o.style&&(r.config.style=o.style),o.required&&(r.config.main.required=!0),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.errorMessage&&(r.config.main.errorMessage=o.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=(o,u)=>{const r=_.cloneDeep(Card);return o.style&&(r.config.style=JSON.parse(o.style)),r.elements[0].scope=`#/properties/${o.name}/properties/value`,r.elements[1].scope=`#/properties/${o.name}/properties/url`,r.elements[2].scope=`#/properties/${o.name}/properties/description`,o.layout&&(r.config.layout=createLayoutFormat(o.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=(o,u)=>{const r=_.cloneDeep(DateInputField);return r.config.main.label=o.label,r.config.main.errorMessage=`${o.name} is empty or invalid`,r.scope=u,o.layout&&(r.config.layout=createLayoutFormat(o.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=(o,u)=>{const r=_.cloneDeep(RankCard);return r.scope=u,o.image&&(r.config.main.url=o.image),o.title&&(r.config.main.title=o.title),o.description&&(r.config.main.description=o.description),o.rank&&(r.config.main.rank=`#${o.rank}`),o.layout&&(r.config.layout=createLayoutFormat(o.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=(o,u)=>{const r=_.cloneDeep(RollAndDice);return o.name&&(r.scope=u),o.layout&&(r.config.layout=createLayoutFormat(o.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=(o,u)=>{const r=_.cloneDeep(Timer);return r.scope=u,o.label&&(r.config.main.label=o.label),o.layout&&(r.config.layout=createLayoutFormat(o.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=(o,u)=>{const r=_.cloneDeep(MultipleSelect);if(r.scope=u,o.label&&(r.config.main.label=o.label),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.value){const h=o.value.map(b=>({title:b.label,const:b.value}));r.config.main.options=h!=null?h:[]}return r},buildBasicUiSchema=o=>({type:"HorizontalLayout",pageName:`${o.name}`,elements:[]}),TextArea={type:"Control",scope:"#/properties/textarea",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(o,u)=>{const r=_.cloneDeep(TextArea);return r.config.main.heading=o.label,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.style&&(r.config.style=JSON.parse(o.style)),r.scope=u,r};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(o,u)=>{const r=_.cloneDeep(cardSlider);return o.name&&(r.scope=u),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(o,u)=>{const r=_.cloneDeep(Checkbox);return r.scope=u,r.config.main.label=o.label,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.style&&(r.config.style=JSON.parse(o.style)),r},buildLineGraph=(o,u)=>{const r=_.cloneDeep(LineGraph);return o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r.config.main.header=o.heading,o.height&&(r.config.style.containerStyle.height=o.height),o.bottomLabel&&(r.config.main.bottomLabel=o.bottomLabel),o.leftLabel&&(r.config.main.leftLabel=o.leftLabel),o.legendHide&&(r.config.main.legendAvailabe=o.legendHide!=="YES"),o.legendLabels&&(r.config.main.tooltipDataKey=flatObjectValueInArray(o.legendLabels)),o.pieArcColors&&(r.config.style.lineStyle.colorRange=flatObjectValueInArray(o.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=(o,u)=>{const r=_.cloneDeep(RadioUiSchema);return r.scope=u,r.config.main.heading=o.label,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.sectionLabels&&(r.config.main.options=o.sectionLabels.map(h=>h.label||h.Options)),o.style&&(r.config.style=JSON.parse(o.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=(o,u)=>{const r=_.cloneDeep(emptyBox);return o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r};exports.schema={type:"object",properties:{},required:[]};function buildRule(o){o.validation&&o.validation.forEach(u=>{exports.schema.properties[o.name]||(exports.schema.properties[o.name]={}),u.validationType==="required"?exports.schema.required.push(o.name):(exports.schema.properties[o.name].type="string",exports.schema.properties[o.name][u.validationType]=isNaN(u.validationValue)?u.validationValue:Number(u.validationValue))})}const buildUiSchema=o=>{let u={};const r=`#/properties/${o.name}`;switch(o.type){case"RunnerBoyProgressBar":u=RunnerBoyProgressbar(o,r);break;case"TabSection":u=buildTabSection(o);break;case"WrapperSection":u=buildWrapperSection(o);break;case"Text":u=buildTextField(o,r),buildRule(o);break;case"TextArea":u=buildTextArea(o,r),buildRule(o);break;case"Date":u=buildDate(o,r),buildRule(o);break;case"Select":u=buildSelect(o,r),buildRule(o);break;case"Radio":u=buildRadio(o,r),buildRule(o);break;case"Button":u=buildButton(o,r),buildRule(o);break;case"Table":u=buildTable(o,r),buildRule(o);break;case"Box":u=buildLabel(o,r),buildRule(o);break;case"CheckBox":u=buildCheckbox(o,r),buildRule(o);break;case"UploadFile":u=buildUploadFile(o,r),buildRule(o);break;case"DownloadFile":u=buildDownloadFile(o,r),buildRule(o);break;case"EmptyBox":u=buildEmptyBox(o);break;case"card":u=buildCard(o);break;case"Graph":switch(o.graphType){case"BarGraph":case"StackBarGraph":u=buildStackbarGraph(o,r);break;case"LineGraph":u=buildLineGraph(o,r);break;case"PieGraph":u=buildPieGraph(o,r);break;case"HorizontalBarGraph":u=buildHorizontalBarGraph(o,r);break}break;case"ProgressBar":u=buildProgressBar(o,r);break;case"SpeedoMeter":u=buildSpeedoMeter(o,r);break;case"ProgressBarCard":u=buildProgressBarCard(o,r);break;case"RankCard":u=buildRankCard(o,r);break;case"Rank":u=buildRollAndDice(o,r);break;case"Slider":u=buildSlider(o,r);break;case"Timer":u=buildTimer(o,r);break;case"MultipleSelect":u=buildMultiSelect(o,r),buildRule(o);break;case"LeaderBoard":u=buildLeaderBoard(o);break;default:exports.schema={type:"object",properties:{},required:[]},u=buildBasicUiSchema(o)}if(o!=null&&o.elements){if((o==null?void 0:o.type)==="LeaderBoard")return u;o.type=="Table"?u.elements=o.elements.map((h,b)=>h.type?{accessorKey:h.name,header:h.label||h.name,widget:buildUiSchema(h)}:{accessorKey:h.name,header:h.label||h.name}):u.elements=o.elements.map((h,b)=>buildUiSchema(h))}return localStorage.setItem("libSchema",JSON.stringify(exports.schema||{})),u};var pageMaster=o=>{const{store:u,dynamicData:r,config:h,submitHandler:b}=o;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(h),h)},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),b(u,o.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 G;const w=r.path.split(".")[1],S=(G=u.searchParams)==null?void 0:G.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"}}}},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}}}},EventUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core","Response Event"],defaultStyle:!0,id:"event"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Event Type",type:"text",options:[{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"}]}}},getSelectField("Handler","Handler",[{title:"Custom",const:"custom"},{title:"Api",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}])]},{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/heading",options:{widget:"Box"},config:{layout:8,main:{heading:"Response Event"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/AddButton",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"addEvent",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:8,lg:8}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:3,lg:3},main:{name:"Save",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Method",type:"text",options:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/headers",layout:11.5,options:{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=(o,u)=>({setPage:async function(){const r=await this.getFormData();o.setFormdata(r);const h=await this.getSchema();o.setSchema(h),this.refreshPage(r.Handler,o)},refreshPage:(r,h)=>{const b=_.cloneDeep(EventUiSchema);r&&(r==="custom"?b.elements[1].elements[0].elements[2]=getTextArea("eventCode","Write Custom Code",!1):r==="api"?b.elements[1].elements[0].elements[2]=APISection:r==="inBuiltFunction"?(b.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name",[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"}]),b.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6})):r==="refresh"&&(b.elements[1].elements[0].elements[2]=refreshSectionUiSchema)),h.setUiSchema(b)},getFormData:Component(o,u).getFormdata,getUiSchema:async function(){return EventUiSchema},getSchema:async()=>EventSchema,onChange:function(){var r,h,b;((r=o==null?void 0:o.formData)==null?void 0:r.Handler)!==((h=o==null?void 0:o.newData)==null?void 0:h.Handler)&&((b=o==null?void 0:o.newData)==null?void 0:b.Handler)!==void 0&&this.refreshPage(o.newData.Handler||o.formdata.Handler,o)},saveHandler:Component(o,u).saveHandler,addEvent:async function(){var b,w,S;const r=(b=o.searchParams)==null?void 0:b.get("path");Array.isArray(o.formData.events)||(o.formData.events=[]),saveFormdataInLocalStorage(o.formData,r);const h=`${r}.events[${(S=(w=o.formData)==null?void 0:w.events)==null?void 0:S.length}]`;o.searchParams.set("path",h),o.setSearchParams(o.searchParams),this.setPage()},editEvent:async function(){var w;const r=u.path.split(".")[1],h=(w=o.searchParams)==null?void 0:w.get("path");saveFormdataInLocalStorage(o.formData,h);const b=`${h}.events[${r}]`;o.searchParams.set("path",b),o.setSearchParams(o.searchParams),this.setPage()},deleteEvent:Component(o,u).deleteEvent,backHandler:function(){o.navigate(-1)}});const downloadFile=o=>{const u=o.name.split("."),r=o.data,h=window.atob(r);let b;b=new File([h],u[u.length-1]);const w=URL.createObjectURL(b),S=document.createElement("a");S.href=u[u.length-1]==="pdf"?"data:application/octet-stream;base64,"+r:w,S.download=`${o.name}`,document.body.appendChild(S),S.click(),URL.revokeObjectURL(w),document.body.removeChild(S)},executeEvents=async(o,u,r,h,b,w,S,O,G)=>{let j=[],V=null;if(o.eventType==="onLoad"){const{response:Y,events:he}=await executetOnLoadEvent(o,u,r,h,b,w,S,O,G);V=Y,j=he}else{if(!shouldEventExecute(o,u,r,h,b,w,S,O))return{response:void 0,events:void 0};const{response:Y,events:he}=await executeEventsHandler(o,u,r,h,b,w,S,O,G);V=Y,j=he}if((j==null?void 0:j.length)>0)for(const Y of j)await executeEvents(Y,u,r,h,b,w,S,O,V)},executetOnLoadEvent=async(o,u,r,h,b,w,S,O,G)=>{try{if(!shouldEventExecute(o,u,r,h,b,w,S,O))return{response:void 0,events:void 0};const{response:j}=await executeEventsHandler(o,u,r,h,b,w,S,O,G),V=o==null?void 0:o.events.filter(he=>he.eventType==="Success"),Y=V.length>0?V:[{Handler:"mergeFormdata",eventType:"Success",type:o.type}];return{response:j,events:Y}}catch{const V=o==null?void 0:o.events.filter(he=>he.eventType==="Fail"),Y=V.length>0?V:[];return{response:void 0,events:Y}}};async function executeEventsHandler(o,u,r,h,b,w,S,O,G){if(o.Handler==="api")return await executeApiEventHandler(o,u,r,h,b,w);if(o.Handler==="inBuiltFunction")return await executeInBuiltFunctionHandler(o,u,r,h,b,w,S,G);if(o.Handler==="custom")return await executeCustomHandler(o,u,r,h,b,w,S,G);if(o.Handler==="refresh")return await executeRefreshHandler(o,u,r,h,b,w,S,G,O);if(o.Handler==="mergeFormdata")return await mergeFormdata(G,u,o,r)}async function executeRefreshHandler(o,u,r,h,b,w,S,O,G){const j=getRefreshElements(o,G);for(const V of j)for(const Y of G.onLoad[V])await executeEvents(Y,V,r,h,b,w,S);return{response:void 0,events:void 0}}async function executeApiEventHandler(o,u,r,h,b,w,S,O){const G={...b==null?void 0:b.payload},j={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},{body:V,headers:Y}=await buildApiPayload(o,G,j,r,h,b);let he;return he=await w[o.method](o.path,V,Y&&{headers:Y}),{response:he,events:o==null?void 0:o.events}}async function executeInBuiltFunctionHandler(refreshHandlerConfig,componentName,store,dynamicData,userValue,service,serviceHolder,parentEventOutput){let parameter={};if(refreshHandlerConfig.funcParametersCode){const makeFunc=eval(refreshHandlerConfig.funcParametersCode);parameter=makeFunc(store,dynamicData,userValue,parentEventOutput,service)}return serviceHolder[refreshHandlerConfig.inBuiltFunctionType](parameter),{response:void 0,events:refreshHandlerConfig==null?void 0:refreshHandlerConfig.events}}async function executeCustomHandler(customHandlerConfig,componentName,store,dynamicData,userValue,service,serviceHolder,parentEventOutput){console.log(service);const makeFunc=eval(customHandlerConfig.eventCode),response=await makeFunc(store,dynamicData,userValue,parentEventOutput,service,componentName);return{response,events:customHandlerConfig==null?void 0:customHandlerConfig.events}}async function mergeFormdata(o,u,r,h){return r.type==="Select"&&!(_.isEmpty(o)&&o)?h.setSchema(b=>({...b,properties:{...b.properties,[u]:{oneOf:o.data}}})):r.type==="page"?h.setFormdata(b=>({...b,...o==null?void 0:o.data})):o&&h.setFormdata(b=>({...b,[u]:o.data})),{response:void 0,events:void 0}}const buildBodyFormat=(o,u,r)=>{const h={...r==null?void 0:r.payload};return o.map(b=>{var w,S;if((w=b==null?void 0:b.value)!=null&&w.startsWith("$userValue")){const O=b.value.substring(11);h[b.key]=_.get(r,O)}else if((S=b==null?void 0:b.value)!=null&&S.startsWith("$")){const O=b.value.substring(1);h[b.key]=_.get(u,O)}else h[b.key]=b.value}),h},buildHeadersFormat=o=>{const u={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"};return o.map(r=>{u[r.key]=r.value}),u};async function shouldEventExecute(o,u,r,h,b,w,S,O){var j;const G=(j=o==null?void 0:o.events)==null?void 0:j.filter(V=>V.eventType==="onStart");if((G==null?void 0:G.length)>0){const{response:V}=await executeEventsHandler(G[0],u,r,h,b,w,S,O);return V}}async function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var o,u;if(compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((u=(o=store==null?void 0:store.ctx)==null?void 0:o.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(o,u){var h;let r=[];return((h=o==null?void 0:o.refreshElements)==null?void 0:h.length)>0?r=o.refreshElements.map(b=>b.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=o=>{function u(r){r.events&&r.events.forEach(h=>{r.type&&(compType=r.type),eventGroups[h.eventType]||(eventGroups[h.eventType]={}),eventGroups[h.eventType][r.name]||(eventGroups[h.eventType][r.name]=[]),eventGroups[h.eventType][r.name].push({...h,type:compType})})}return u(o),o!=null&&o.elements&&o.elements.forEach(extractEvents),eventGroups};var service=o=>({setPage:async function(){o.store.setFormdata({}),eventGroups={},eventGroups=extractEvents(o.config),await executeEvents({Handler:"refresh",eventType:"onPageRefresh"},"all",o.store,o.dynamicData,o.userValue,o.service,this,eventGroups),o.store.setSchema(u=>({...o.schema,properties:{...o.schema.properties,...u.properties}})),o.uiSchema.elements.push(notifyUiSchema),o.store.setUiSchema(o.uiSchema)},onClick:async function(){var r;const u=((r=o.dynamicData)==null?void 0:r.tableButtonPath)||o.dynamicData.path.split(".")[0];for(const h of eventGroups==null?void 0:eventGroups.onClick[u])await executeEvents(h,u,o.store,o.dynamicData,o.userValue,o.service,this,eventGroups)},onChange:async function(){if(eventGroups.onChange){const u=Object.keys(eventGroups.onChange);Promise.all(u.map(async r=>{var h,b;if(((h=o.store)==null?void 0:h.formData[r])!==o.store.newData[r]&&((b=o.store)==null?void 0:b.newData[r])!==void 0)for(const w of eventGroups.onChange[r])await executeEvents(w,r,o.store,o.dynamicData,o.userValue,o.service,this,eventGroups)}))}},downloadFile});const schema={type:"object",properties:{},required:[]},buildSchema=o=>{function u(r){r.validation&&r.validation.forEach(h=>{schema.properties[r.name]||(schema.properties[r.name]={}),h.validationType==="required"?schema.required.push(r.name):(schema.properties[r.name].type="string",schema.properties[r.name][h.validationType]=isNaN(h.validationValue)?h.validationValue:Number(h.validationValue))})}return u(o),console.log(schema),window.localStorage.setItem("schemaDemo",JSON.stringify(schema)),schema};var 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"}})});
|
|
26
|
+
`)+b+`return __p
|
|
27
|
+
}`;var D=rl(function(){return k(s,I+"return "+b).apply(r,p)});if(D.source=b,gi(D))throw D;return D}function uh(e){return N(e).toLowerCase()}function ph(e){return N(e).toUpperCase()}function ch(e,t,n){if(e=N(e),e&&(n||t===r))return co(e);if(!e||!(t=ye(t)))return e;var i=Ee(e),a=Ee(t),s=fo(i,a),p=ho(i,a)+1;return lt(i,s,p).join("")}function fh(e,t,n){if(e=N(e),e&&(n||t===r))return e.slice(0,mo(e)+1);if(!e||!(t=ye(t)))return e;var i=Ee(e),a=ho(i,Ee(t))+1;return lt(i,0,a).join("")}function dh(e,t,n){if(e=N(e),e&&(n||t===r))return e.replace(gr,"");if(!e||!(t=ye(t)))return e;var i=Ee(e),a=fo(i,Ee(t));return lt(i,a).join("")}function hh(e,t){var n=al,i=ll;if(Z(t)){var a="separator"in t?t.separator:a;n="length"in t?E(t.length):n,i="omission"in t?ye(t.omission):i}e=N(e);var s=e.length;if(At(e)){var p=Ee(e);s=p.length}if(n>=s)return e;var c=n-Ft(i);if(c<1)return i;var d=p?lt(p,0,c).join(""):e.slice(0,c);if(a===r)return d+i;if(p&&(c+=d.length-c),mi(a)){if(e.slice(c).search(a)){var y,v=d;for(a.global||(a=Er(a.source,N(Di.exec(a))+"g")),a.lastIndex=0;y=a.exec(v);)var b=y.index;d=d.slice(0,b===r?c:b)}}else if(e.indexOf(ye(a),c)!=c){var C=d.lastIndexOf(a);C>-1&&(d=d.slice(0,C))}return d+i}function gh(e){return e=N(e),e&&Ll.test(e)?e.replace(Ti,zs):e}var mh=Ht(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),xi=ia("toUpperCase");function nl(e,t,n){return e=N(e),t=n?r:t,t===r?Os(e)?qs(e):Fs(e):e.match(t)||[]}var rl=P(function(e,t){try{return ge(e,r,t)}catch(n){return gi(n)?n:new T(n)}}),yh=Ye(function(e,t){return we(t,function(n){n=Ne(n),qe(e,n,di(e[n],e))}),e});function vh(e){var t=e==null?0:e.length,n=B();return e=t?Y(e,function(i){if(typeof i[1]!="function")throw new Ce(S);return[n(i[0]),i[1]]}):[],P(function(i){for(var a=-1;++a<t;){var s=e[a];if(ge(s[0],this,i))return ge(s[1],this,i)}})}function xh(e){return zu(Ie(e,K))}function bi(e){return function(){return e}}function bh(e,t){return e==null||e!==e?t:e}var _h=aa(),Sh=aa(!0);function he(e){return e}function _i(e){return Ho(typeof e=="function"?e:Ie(e,K))}function wh(e){return Oo(Ie(e,K))}function Ch(e,t){return ko(e,Ie(t,K))}var Lh=P(function(e,t){return function(n){return nn(n,e,t)}}),Ih=P(function(e,t){return function(n){return nn(e,n,t)}});function Si(e,t,n){var i=ne(t),a=On(t,i);n==null&&!(Z(t)&&(a.length||!i.length))&&(n=t,t=e,e=this,a=On(t,ne(t)));var s=!(Z(n)&&"chain"in n)||!!n.chain,p=Ze(e);return we(a,function(c){var d=t[c];e[c]=d,p&&(e.prototype[c]=function(){var y=this.__chain__;if(s||y){var v=e(this.__wrapped__),b=v.__actions__=ce(this.__actions__);return b.push({func:d,args:arguments,thisArg:e}),v.__chain__=y,v}return d.apply(e,tt([this.value()],arguments))})}),e}function Bh(){return re._===this&&(re._=Qs),this}function wi(){}function Ah(e){return e=E(e),P(function(t){return Uo(t,e)})}var Fh=ei(Y),Th=ei(ao),Rh=ei(Lr);function il(e){return li(e)?Ir(Ne(e)):ap(e)}function Eh(e){return function(t){return e==null?r:mt(e,t)}}var Dh=sa(),Ph=sa(!0);function Ci(){return[]}function Li(){return!1}function Mh(){return{}}function Hh(){return""}function Wh(){return!0}function Oh(e,t){if(e=E(e),e<1||e>je)return[];var n=Oe,i=ae(e,Oe);t=B(t),e-=Oe;for(var a=Fr(i,t);++n<e;)t(n);return a}function kh(e){return R(e)?Y(e,Ne):ve(e)?[e]:ce(Ca(N(e)))}function Uh(e){var t=++Zs;return N(e)+t}var Nh=$n(function(e,t){return e+t},0),Gh=ti("ceil"),zh=$n(function(e,t){return e/t},1),$h=ti("floor");function Kh(e){return e&&e.length?Wn(e,he,Ur):r}function qh(e,t){return e&&e.length?Wn(e,B(t,2),Ur):r}function Vh(e){return uo(e,he)}function Yh(e,t){return uo(e,B(t,2))}function Jh(e){return e&&e.length?Wn(e,he,$r):r}function Zh(e,t){return e&&e.length?Wn(e,B(t,2),$r):r}var Xh=$n(function(e,t){return e*t},1),Qh=ti("round"),jh=$n(function(e,t){return e-t},0);function eg(e){return e&&e.length?Ar(e,he):0}function tg(e,t){return e&&e.length?Ar(e,B(t,2)):0}return l.after=wf,l.ary=Ma,l.assign=pd,l.assignIn=Ja,l.assignInWith=rr,l.assignWith=cd,l.at=fd,l.before=Ha,l.bind=di,l.bindAll=yh,l.bindKey=Wa,l.castArray=Mf,l.chain=Ea,l.chunk=zp,l.compact=$p,l.concat=Kp,l.cond=vh,l.conforms=xh,l.constant=bi,l.countBy=jc,l.create=dd,l.curry=Oa,l.curryRight=ka,l.debounce=Ua,l.defaults=hd,l.defaultsDeep=gd,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=Aa,l.flattenDeep=ec,l.flattenDepth=tc,l.flip=If,l.flow=_h,l.flowRight=Sh,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=_i,l.keyBy=cf,l.keys=ne,l.keysIn=de,l.map=Xn,l.mapKeys=Ad,l.mapValues=Fd,l.matches=wh,l.matchesProperty=Ch,l.memoize=jn,l.merge=Td,l.mergeWith=Za,l.method=Lh,l.methodOf=Ih,l.mixin=Si,l.negate=er,l.nthArg=Ah,l.omit=Rd,l.omitBy=Ed,l.once=Bf,l.orderBy=ff,l.over=Fh,l.overArgs=Af,l.overEvery=Th,l.overSome=Rh,l.partial=hi,l.partialRight=Na,l.partition=df,l.pick=Dd,l.pickBy=Xa,l.property=il,l.propertyOf=Eh,l.pull=cc,l.pullAll=Ta,l.pullAllBy=fc,l.pullAllWith=dc,l.pullAt=hc,l.range=Dh,l.rangeRight=Ph,l.rearg=Ff,l.reject=mf,l.remove=gc,l.rest=Tf,l.reverse=ci,l.sampleSize=vf,l.set=Md,l.setWith=Hd,l.shuffle=xf,l.slice=mc,l.sortBy=Sf,l.sortedUniq=wc,l.sortedUniqBy=Cc,l.split=oh,l.spread=Rf,l.tail=Lc,l.take=Ic,l.takeRight=Bc,l.takeRightWhile=Ac,l.takeWhile=Fc,l.tap=$c,l.throttle=Ef,l.thru=Zn,l.toArray=qa,l.toPairs=Qa,l.toPairsIn=ja,l.toPath=kh,l.toPlainObject=Ya,l.transform=Wd,l.unary=Df,l.union=Tc,l.unionBy=Rc,l.unionWith=Ec,l.uniq=Dc,l.uniqBy=Pc,l.uniqWith=Mc,l.unset=Od,l.unzip=fi,l.unzipWith=Ra,l.update=kd,l.updateWith=Ud,l.values=kt,l.valuesIn=Nd,l.without=Hc,l.words=nl,l.wrap=Pf,l.xor=Wc,l.xorBy=Oc,l.xorWith=kc,l.zip=Uc,l.zipObject=Nc,l.zipObjectDeep=Gc,l.zipWith=zc,l.entries=Qa,l.entriesIn=ja,l.extend=Ja,l.extendWith=rr,Si(l,l),l.add=Nh,l.attempt=rl,l.camelCase=Kd,l.capitalize=el,l.ceil=Gh,l.clamp=Gd,l.clone=Hf,l.cloneDeep=Of,l.cloneDeepWith=kf,l.cloneWith=Wf,l.conformsTo=Uf,l.deburr=tl,l.defaultTo=bh,l.divide=zh,l.endsWith=qd,l.eq=Pe,l.escape=Vd,l.escapeRegExp=Yd,l.every=ef,l.find=nf,l.findIndex=Ia,l.findKey=md,l.findLast=rf,l.findLastIndex=Ba,l.findLastKey=yd,l.floor=$h,l.forEach=Da,l.forEachRight=Pa,l.forIn=vd,l.forInRight=xd,l.forOwn=bd,l.forOwnRight=_d,l.get=yi,l.gt=Nf,l.gte=Gf,l.has=Cd,l.hasIn=vi,l.head=Fa,l.identity=he,l.includes=uf,l.indexOf=rc,l.inRange=zd,l.invoke=Bd,l.isArguments=xt,l.isArray=R,l.isArrayBuffer=zf,l.isArrayLike=fe,l.isArrayLikeObject=Q,l.isBoolean=$f,l.isBuffer=st,l.isDate=Kf,l.isElement=qf,l.isEmpty=Vf,l.isEqual=Yf,l.isEqualWith=Jf,l.isError=gi,l.isFinite=Zf,l.isFunction=Ze,l.isInteger=Ga,l.isLength=tr,l.isMap=za,l.isMatch=Xf,l.isMatchWith=Qf,l.isNaN=jf,l.isNative=ed,l.isNil=nd,l.isNull=td,l.isNumber=$a,l.isObject=Z,l.isObjectLike=X,l.isPlainObject=un,l.isRegExp=mi,l.isSafeInteger=rd,l.isSet=Ka,l.isString=nr,l.isSymbol=ve,l.isTypedArray=Ot,l.isUndefined=id,l.isWeakMap=od,l.isWeakSet=ad,l.join=sc,l.kebabCase=Jd,l.last=Ae,l.lastIndexOf=uc,l.lowerCase=Zd,l.lowerFirst=Xd,l.lt=ld,l.lte=sd,l.max=Kh,l.maxBy=qh,l.mean=Vh,l.meanBy=Yh,l.min=Jh,l.minBy=Zh,l.stubArray=Ci,l.stubFalse=Li,l.stubObject=Mh,l.stubString=Hh,l.stubTrue=Wh,l.multiply=Xh,l.nth=pc,l.noConflict=Bh,l.noop=wi,l.now=Qn,l.pad=Qd,l.padEnd=jd,l.padStart=eh,l.parseInt=th,l.random=$d,l.reduce=hf,l.reduceRight=gf,l.repeat=nh,l.replace=rh,l.result=Pd,l.round=Qh,l.runInContext=f,l.sample=yf,l.size=bf,l.snakeCase=ih,l.some=_f,l.sortedIndex=yc,l.sortedIndexBy=vc,l.sortedIndexOf=xc,l.sortedLastIndex=bc,l.sortedLastIndexBy=_c,l.sortedLastIndexOf=Sc,l.startCase=ah,l.startsWith=lh,l.subtract=jh,l.sum=eg,l.sumBy=tg,l.template=sh,l.times=Oh,l.toFinite=Xe,l.toInteger=E,l.toLength=Va,l.toLower=uh,l.toNumber=Fe,l.toSafeInteger=ud,l.toString=N,l.toUpper=ph,l.trim=ch,l.trimEnd=fh,l.trimStart=dh,l.truncate=hh,l.unescape=gh,l.uniqueId=Uh,l.upperCase=mh,l.upperFirst=xi,l.each=Da,l.eachRight=Pa,l.first=Fa,Si(l,function(){var e={};return ke(l,function(t,n){G.call(l.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),l.VERSION=h,we(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){l[e].placeholder=l}),we(["drop","take"],function(e,t){W.prototype[e]=function(n){n=n===r?1:te(E(n),0);var i=this.__filtered__&&!t?new W(this):this.clone();return i.__filtered__?i.__takeCount__=ae(n,i.__takeCount__):i.__views__.push({size:ae(n,Oe),type:e+(i.__dir__<0?"Right":"")}),i},W.prototype[e+"Right"]=function(n){return this.reverse()[e](n).reverse()}}),we(["filter","map","takeWhile"],function(e,t){var n=t+1,i=n==Bi||n==cl;W.prototype[e]=function(a){var s=this.clone();return s.__iteratees__.push({iteratee:B(a,3),type:n}),s.__filtered__=s.__filtered__||i,s}}),we(["head","last"],function(e,t){var n="take"+(t?"Right":"");W.prototype[e]=function(){return this[n](1).value()[0]}}),we(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");W.prototype[e]=function(){return this.__filtered__?new W(this):this[n](1)}}),W.prototype.compact=function(){return this.filter(he)},W.prototype.find=function(e){return this.filter(e).head()},W.prototype.findLast=function(e){return this.reverse().find(e)},W.prototype.invokeMap=P(function(e,t){return typeof e=="function"?new W(this):this.map(function(n){return nn(n,e,t)})}),W.prototype.reject=function(e){return this.filter(er(B(e)))},W.prototype.slice=function(e,t){e=E(e);var n=this;return n.__filtered__&&(e>0||t<0)?new W(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(t=E(t),n=t<0?n.dropRight(-t):n.take(t-e)),n)},W.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},W.prototype.toArray=function(){return this.take(Oe)},ke(W.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=l[i?"take"+(t=="last"?"Right":""):t],s=i||/^find/.test(t);!a||(l.prototype[t]=function(){var p=this.__wrapped__,c=i?[1]:arguments,d=p instanceof W,y=c[0],v=d||R(p),b=function(H){var O=a.apply(l,tt([H],c));return i&&C?O[0]:O};v&&n&&typeof y=="function"&&y.length!=1&&(d=v=!1);var C=this.__chain__,I=!!this.__actions__.length,A=s&&!C,D=d&&!I;if(!s&&v){p=D?p:new W(this);var F=e.apply(p,c);return F.__actions__.push({func:Zn,args:[b],thisArg:r}),new Le(F,C)}return A&&D?e.apply(this,c):(F=this.thru(b),A?i?F.value()[0]:F.value():F)})}),we(["pop","push","shift","sort","splice","unshift"],function(e){var t=Sn[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);l.prototype[e]=function(){var a=arguments;if(i&&!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)})}}),ke(W.prototype,function(e,t){var n=l[t];if(n){var i=n.name+"";G.call(Dt,i)||(Dt[i]=[]),Dt[i].push({name:t,func:n})}}),Dt[zn(r,ut).name]=[{name:"wrapper",func:r}],W.prototype.clone=hu,W.prototype.reverse=gu,W.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,Jt&&(l.prototype[Jt]=Jc),l},Tt=Vs();ct?((ct.exports=Tt)._=Tt,_r._=Tt):re._=Tt}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const ComponentSchema={type:"object",properties:{layout:{type:"array",items:{type:"object",properties:{key:{type:"string"},value:{type:"string"}}}},value:{type:"array",items:{type:"object",properties:{label:{type:"string"},value:{type:"string"}}}},columns:{type:"array",items:{type:"object",properties:{header:{type:"string"},accessorKey:{type:"string"},widgetType:{type:"string"}}}},events:{type:"array",items:{type:"object",properties:{eventType:{type:"string"},configType:{type:"string"}}}},sectionLabels:{type:"array",items:{type:"object",properties:{label:{type:"string"}}}},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"},validationValue:{type:"string"}}}}}},componentBasicUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core"],defaultStyle:!0,id:"component"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/type",options:{widget:"SelectInputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Type",options:[{title:"Select",const:"Select"},{title:"Date",const:"Date"},{title:"CheckBox",const:"CheckBox"},{title:"Table",const:"Table"},{title:"Array",const:"Array"},{title:"Container",const:"WrapperSection"},{title:"Tabs",const:"TabSection"},{title:"Text",const:"Text"},{title:"Radio",const:"Radio"},{title:"Text Area",const:"TextArea"},{title:"Button",const:"Button"},{title:"Card",const:"card"},{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"}]}}},{type:"Control",scope:"#/properties/name",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Name",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:12,sm:12,md:6,lg:6},main:{label:"Label",options:[],color:"secondary",required:!0}}},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:6,lg:6}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/layout",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/key",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Screen Size",options:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]}}},{type:"Control",scope:"#/properties/value",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",options:[{title:"3",const:"3"},{title:"5.5",const:"5.5"},{title:"8",const:"8"},{title:"12",const:"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=o=>{const u=_.cloneDeep(o);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=o=>{let u={};return o.map(r=>{u[r.key]=+r.value}),u},flatObjectValueInArray=o=>{const u=Object.keys(o[0])[0];return o.map(h=>h[u])},getNavigationHistory=(o,u)=>{if(u){let r=o.name;const h=u.split("."),x=[];return h.map((w,S)=>{if(S===0){x.push(w);return}x.push(`${x[S-1]}.${w}`)}),x.map(w=>{const S=_.get(o,w);S?r=r+` > ${(S==null?void 0:S.name)||(S==null?void 0:S.eventType)}`:r=r+" > NewComponent"}),{pageName:r}}},saveFormdataInLocalStorage=(o,u)=>{let r;if(u){const h=getFormdataFromLocalStorage();r=_.set(h,u,buildConfig(o))}else r=buildConfig(o);return localStorage.setItem("pageFormdata",JSON.stringify(r)),r},getFormdataFromLocalStorage=o=>{const u=localStorage.getItem("pageFormdata")?JSON.parse(localStorage.getItem("pageFormdata")):void 0;let r;return o&&(r=_.get(u,o),r={...r,...getNavigationHistory(u,o)}),r||(r=getNavigationHistory(u,o)),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",options:[{title:"Select",const:"Select"},{title:"Date",const:"Date"},{title:"CheckBox",const:"CheckBox"},{title:"Table",const:"Table"},{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"}]}}},{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",options:[{title:"Extra Small",const:"xs"},{title:"Small",const:"sm"},{title:"Medium",const:"md"},{title:"Large",const:"lg"}]}}},{type:"Control",scope:"#/properties/value",options:{widget:"MultipleSelect"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value",options:[{title:"3",const:"3"},{title:"5.5",const:"5.5"},{title:"8",const:"8"},{title:"12",const:"12"}]}}}]}}}]},OptionArray={type:"Control",scope:"#/properties/value",layout:11.5,options:{detail:{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/label",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Label"}}},{type:"Control",scope:"#/properties/value",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Value"}}}]}}},EventSection={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/programType",options:{widget:"Box"},config:{layout:8,main:{heading:"Event Table"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"eventAddHandler",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"eventEditHandler"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",accessorKeyName:"Reject_Records",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},EmptyBox={type:"Control",scope:"#/properties/empty",options:{widget:"EmptyBox"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{}}},getArrayControl=(o,u,r)=>({type:"Control",scope:`#/properties/${o}`,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=(o,u)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u}}}),getRadioInputField=(o,u,r)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"RadioInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:u,options:r}}}),getTextArea=(o,u,r,h)=>({type:"Control",scope:`#/properties/${o}`,options:{widget:"TextArea"},config:{layout:h||12,style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px"}},main:{heading:u,minRows:8,hideButton:r}}}),getSelectField=(o,u,r)=>({type:"Control",scope:`#/properties/${o}`,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(o){let u=_.cloneDeep(GraphSection);if(o==="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(o==="RankCard")u.elements=[getInputField("rank","Rank"),getInputField("image","Image Url"),getInputField("title","Card Title"),getInputField("description","Card Description")];else if(o==="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(o==="CardSlider"){const r=getInputField("heading","Heading"),h=getInputField("iconName","Icon Name");u.elements=[r,h]}else if(o==="ProgressBar"||o==="ProgressBarCard"){const r=getInputField("heading","Heading"),h=getInputField("bottomLabel_1","First BottomLabel"),x=getInputField("bottomLabel_2","Second BottomLabel"),w=getInputField("bottomLabel_3","Third BottomLabel");u.elements=[r,h,x,w]}else if(o==="card")u.elements=[getInputField("url","Image Url"),getInputField("label","Label"),getInputField("description","Description")];else if(o==="Box"){const r=getInputField("value","Value");u.elements=[getSelectField("graphType","Label Type",[{title:"URL",const:"url"},{title:"Heading",const:"heading"}]),r]}else if(o==="Button"){const r=getInputField("color","Color"),h=getInputField("size","Size"),x=getInputField("iconName","Icon Name");u.elements=[getSelectField("buttonType","Button Type",[{title:"Button With Text",const:"Button"},{title:"Button With Icon",const:"IconButton"},{title:"Button With Icon and Text",const:"ButtonWithIconAndText"}]),x,h,r,getSelectField("defaultStyle","Default Style",[{title:"Apply Default Style",const:"true"},{title:"No Style",const:"false"}]),JSON.parse(JSON.stringify(EmptyBox))]}else if(o==="Graph"){const r=getInputField("height","Height"),h=getInputField("heading","Heading"),x=getInputField("leftLabel","Left Label"),w=getInputField("bottomLabel","Bottom Label"),S=getRadioInputField("legendHide","Legend Hide",["YES","No"]);u.elements=[h,r,getSelectField("graphType","Graph Type",[{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"}]),x,w,S,getArrayControl("legendLabels","label"),getArrayControl("pieArcColors","color")]}else o==="WrapperSection"?u.elements=[getRadioInputField("divider","Divider",["YES","No"]),getRadioInputField("heading","Page Heading",["YES","No"])]:o==="TabSection"?u.elements=[getArrayControl("sectionLabels","label")]:o==="Radio"&&(u.elements=[getArrayControl("sectionLabels","label","Options Of Radio")]);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",options:[{const:"required",title:"Required"},{const:"minLength",title:"Minimum Length"},{const:"maxLength",title:"Maximum Length"},{const:"pattern",title:"Pattern"}]}}},{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","Value","style","Event","Validation"],MultipleSelect:["Core","Value","style","Event","Validation"],Table:["Core","Components","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","Properties","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=(o,u)=>{var h;const r=_.cloneDeep(componentBasicUiSchema);if(o){const x={Core:CoreSection,Value:ValueTab,style:StyleSection,Event:EventSection,Components:TableSection,Properties:buildPropertiesSection(o),Validation:ValidationSection},w=(h=sectionLabels[o])==null?void 0:h.map(S=>x[S]);r.elements[1].config.main.tabLabels=sectionLabels[o]||["Core","style","Event","Validation"],r.elements[1].elements=w||[CoreSection,StyleSection,EventSection,ValidationSection]}u.setUiSchema(r)};var Component=(o,u)=>({setPage:async function(){const r=await this.getFormdata();o.setFormdata(r);const h=this.getSchema();o.setSchema(h),this.refreshPage(r==null?void 0:r.type,o)},refreshPage,getFormdata:async function(){var h;const r=(h=o.searchParams)==null?void 0:h.get("path");return getFormdataFromLocalStorage(r)},getSchema:function(){return ComponentSchema},saveHandler:async function(){var h;const r=(h=o.searchParams)==null?void 0:h.get("path");saveFormdataInLocalStorage(o.formData,r),o.navigate(-1),o.setNotify({SuccessMessage:"Save Successfully",Success:!0})},onChange:function(){var r,h,x,w;((r=o==null?void 0:o.formData)==null?void 0:r.type)!==((h=o==null?void 0:o.newData)==null?void 0:h.type)&&((x=o==null?void 0:o.newData)==null?void 0:x.type)!==void 0&&this.refreshPage((w=o==null?void 0:o.newData)==null?void 0:w.type,o)},editComponents:async function(){var w,S,M;const r=u.path.split(".")[1],h=(w=o.searchParams)==null?void 0:w.get("path"),x=(S=o.searchParams)==null?void 0:S.get("id");if(saveFormdataInLocalStorage(o.formData,h),h){const J=`${(M=o.searchParams)==null?void 0:M.get("path")}.elements[${r}]`;o.searchParams.set("path",J),o.setSearchParams(o.searchParams),this.setPage()}else o.navigate(`/Component?path=${`elements[${r}]`}&id=${x}`)},deleteComponents:async function(){var S;const r=(S=o.searchParams)==null?void 0:S.get("path"),h=u.path.split(".")[1];o.formData.elements.splice(h,1);const x=saveFormdataInLocalStorage(o.formData,r),w=r?_.get(x,r):x;o.setFormdata(w)},deleteEvent:async function(){var w;const r=(w=o.searchParams)==null?void 0:w.get("path"),h=u.path.split(".")[1];o.formData.events.splice(h,1);const x=saveFormdataInLocalStorage(o.formData,r);o.setFormdata(_.get(x,r))},widgetAddClickHandler:async function(){var x;Array.isArray(o.formData.elements)||(o.formData.elements=[]);const r=(x=o.searchParams)==null?void 0:x.get("path");saveFormdataInLocalStorage(o.formData,r);const h=`${r}.elements[${o.formData.elements.length}]`;o.searchParams.set("path",h),o.setSearchParams(o.searchParams),this.setPage()},eventEditHandler:async function(){var S,M;const r=u.path.split(".")[1],h=(S=o.searchParams)==null?void 0:S.get("path"),x=(M=o.searchParams)==null?void 0:M.get("id");saveFormdataInLocalStorage(o.formData,h);const w=`${h}.events[${r}]`;o.navigate(`/ComponentEvents?path=${w}&id=${x}`)},eventAddHandler:async function(){var w,S;const r=(w=o.searchParams)==null?void 0:w.get("path"),h=(S=o.searchParams)==null?void 0:S.get("id");Array.isArray(o.formData.events)||(o.formData.events=[]),saveFormdataInLocalStorage(o.formData,r);const x=`${r}.events[${o.formData.events.length}]`;o.navigate(`/ComponentEvents?path=${x}&id=${h}`)},backHandler:function(){o.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=o=>{const u=_.cloneDeep(leaderBoard);if(o.elements){const r=o.elements.map((h,x)=>h.type?{...{widget:buildUiSchema(h),accessorKey:h.name,header:h.label||h.name}}:{accessorKey:h.name,header:h.label||h.name});u.elements[9].elements=r}return o.name&&(u.elements[0].scope=`#/properties/${o.name}/properties/firstImage`,u.elements[3].scope=`#/properties/${o.name}/properties/firstName`,u.elements[1].scope=`#/properties/${o.name}/properties/secondImage`,u.elements[4].scope=`#/properties/${o.name}/properties/secondName`,u.elements[2].scope=`#/properties/${o.name}/properties/thirdImage`,u.elements[5].scope=`#/properties/${o.name}/properties/thirdName`,u.elements[9].scope=`#/properties/${o.name}/properties/table`),o.firstImage&&(u.elements[0].config.main.url=o.firstImage),o.secondImage&&(u.elements[1].config.main.url=o.secondImage),o.secondImage&&(u.elements[2].config.main.url=o.thirdImage),o.layout&&(u.config.layout=o.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=(o,u)=>{const r=_.cloneDeep(progressBar);return r.scope=u,o.heading&&(r.config.main.heading=o.heading),o.bottomLabel_3&&(r.config.main.bottomLabel_3=o.bottomLabel_3),o.bottomLabel_2&&(r.config.main.bottomLabel_2=o.bottomLabel_2),o.bottomLabel_1&&(r.elements[0].config.main.bottomLabel_1=o.bottomLabel_1),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r},buildProgressBar=(o,u)=>{const r=_.cloneDeep(progressBar);return r.scope=u,o.layout&&(r.config.layout=o.layout),r.config.main.heading=o.heading,o.bottomLabel_3&&(r.config.main.bottomLabel_3=o.bottomLabel_3),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.bottomLabel_2&&(r.config.main.bottomLabel_2=o.bottomLabel_2),o.bottomLabel_1&&(r.config.main.bottomLabel_1=o.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=(o,u)=>{const r=_.cloneDeep(HorizontalBarGraph);return r.scope=u,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r.scope=u,r.config.main.header=o.heading,o.barColor&&(r.config.barStyle.color=o.barColor),o.containerBackground&&(r.config.containerStyle.background=o.containerBackground),o.height&&(r.config.style.containerStyle.height=o.height),o.bottomLabel&&(r.config.main.bottomLabel=o.bottomLabel),o.leftLabel&&(r.config.main.leftLabel=o.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=(o,u)=>{const r=_.cloneDeep(SpeedoMeter);if(r.scope=u,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.heading&&(r.config.main.header=o.heading),o.segments&&(r.config.main.segments=o.segments),o.style){const h=JSON.parse(o.style);h!=null&&h.style&&(r.config.style={...r.config.style,...h.style}),h!=null&&h.containerStyle&&(r.config.style.containerStyle={...r.config.style.containerStyle,...h.containerStyle})}return o.width&&(r.config.main.width=o.width),o.speedoCaption&&(r.config.main.currentValueText=o.speedoCaption),o.data&&(r.config.main.data=o.data),o.needleColor&&(r.config.style.needleColor=o.needleColor),o.segments&&(r.config.style.segments=o.segments),o.endColor&&(r.config.style.endColor=o.endColor),o.startColor&&(r.config.style.startColor=o.startColor),o.segmentColors&&(r.config.style.segmentColors=o.segmentColors),r},buildPieGraph=(o,u)=>{const r=_.cloneDeep(PieGraph);return o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.height&&(r.config.style.containerStyle.height=o.height),o.legendHide&&(r.config.main.legendAvailabe=o.legendHide!=="YES"),r.scope=u,r.config.main.header=o.heading,o.legendLabels&&(r.config.main.tooltipDataKey=flatObjectValueInArray(o.legendLabels)),o.pieArcColors&&(r.config.style.pieStyle.colorRange=flatObjectValueInArray(o.pieArcColors)),r},buildStackbarGraph=(o,u)=>{const r=_.cloneDeep(BarGraph);return o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.legendHide&&(r.config.main.legendAvailable=!1),r.config.main.type=o.graphType,r.config.main.header=o.heading,o.barColor&&(r.config.barStyle.color=o.barColor),o.containerBackground&&(r.config.containerStyle.background=o.containerBackground),o.height&&(r.config.style.containerStyle.height=o.height),o.bottomLabel&&(r.config.main.bottomLabel=o.bottomLabel),o.leftLabel&&(r.config.main.leftLabel=o.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=(o,u)=>{const r=_.cloneDeep(RunnerBoyProgressBar);return r.scope=u,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r};var Tabsection={type:"TabLayout",config:{main:{id:"groupMaster",tabLabels:["default"],layout:12}},elements:[]};const buildTabSection=(o,u)=>{const r=_.cloneDeep(Tabsection);return o.sectionLabels&&(r.config.main.tabLabels=o.sectionLabels.map(h=>h.label)),r.config.main.id=o.name,r};var WrapperSection={type:"WrapperLayout",config:{main:{label:"Default Label",divider:!0},defaultStyle:!0},elements:[]};const buildWrapperSection=(o,u)=>{const r=_.cloneDeep(WrapperSection);return r.config.main.label=o.label,r.config.main.divider=!!o.divider,r.config.main.header=!!o.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=(o,u)=>{const r=_.cloneDeep(TextInputField);return r.config.main.label=o.label,o.style&&(r.config.style=JSON.parse(o.style)),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r.config.main.errorMessage=`${o.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"}}};const buildSelect=(o,u)=>{const r=_.cloneDeep(SelectInputField);if(r.config.main.label=o.label,o.value){const h=o.value.map(x=>({title:x.label,const:x.value}));r.config.main.options=h}return o.layout&&(r.config.layout=createLayoutFormat(o.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=(o,u)=>{const r=_.cloneDeep(Button);return o.buttonType&&(r.options.widget=o.buttonType==="IconButton"?"IconButton":"Button",o.buttonType==="ButtonWithIconAndText"?r.config.main.startIcon=o.iconName:r.config.main.icon=o.iconName),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.defaultStyle&&(r.config.main.styleDefault=o.defaultStyle==="true"),r.scope=u,o.style&&(r.config.style=JSON.parse(o.style)),o.size&&(r.config.main.size=o.size),o.color&&(r.config.main.color=o.color),o.label&&(r.config.main.name=o.label),r};var Table={type:"Control",scope:"#/properties/ApproveRecords",options:{widget:"Table"},elements:[],config:{main:{allRowData:[],columns:{dataColumns:[],actionColumns:[]}}}};const buildTable=(o,u)=>{const r=_.cloneDeep(Table);return r.scope=u,o.style&&(r.config.style=JSON.parse(o.style)),r.config.main.label=o.label,r};var Box={type:"Control",scope:"#/properties/emptyBox",options:{widget:"Box"},config:{layout:12,main:{},style:{}}};const buildLabel=(o,u)=>{const r=_.cloneDeep(Box);return r.scope=u,r.config.main.heading=o.label,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.style&&(r.config.style=JSON.parse(o.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=(o,u)=>{const r=_.cloneDeep(uploadFile);return r.scope=u,r.config.main.label=o.label,o.layout&&(r.config.layout=o.layout),o.layout&&(uploadFile.config.layout=createLayoutFormat(o.layout)),o.style&&(r.config.style=o.style),o.required&&(r.config.main.required=!0),r.config.main.errorMessage=o.errorMessage,r},buildDownloadFile=(o,u)=>{const r=_.cloneDeep(downloadFile$1);return r.scope=u,o.layout&&(r.config.layout=o.layout),o.style&&(r.config.style=o.style),o.required&&(r.config.main.required=!0),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.errorMessage&&(r.config.main.errorMessage=o.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=(o,u)=>{const r=_.cloneDeep(Card);return o.style&&(r.config.style=JSON.parse(o.style)),r.elements[0].scope=`#/properties/${o.name}/properties/value`,r.elements[1].scope=`#/properties/${o.name}/properties/url`,r.elements[2].scope=`#/properties/${o.name}/properties/description`,o.layout&&(r.config.layout=createLayoutFormat(o.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=(o,u)=>{const r=_.cloneDeep(DateInputField);return r.config.main.label=o.label,r.config.main.errorMessage=`${o.name} is empty or invalid`,r.scope=u,o.layout&&(r.config.layout=createLayoutFormat(o.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=(o,u)=>{const r=_.cloneDeep(RankCard);return r.scope=u,o.image&&(r.config.main.url=o.image),o.title&&(r.config.main.title=o.title),o.description&&(r.config.main.description=o.description),o.rank&&(r.config.main.rank=`#${o.rank}`),o.layout&&(r.config.layout=createLayoutFormat(o.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=(o,u)=>{const r=_.cloneDeep(RollAndDice);return o.name&&(r.scope=u),o.layout&&(r.config.layout=createLayoutFormat(o.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=(o,u)=>{const r=_.cloneDeep(Timer);return r.scope=u,o.label&&(r.config.main.label=o.label),o.layout&&(r.config.layout=createLayoutFormat(o.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=(o,u)=>{const r=_.cloneDeep(MultipleSelect);if(r.scope=u,o.label&&(r.config.main.label=o.label),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.value){const h=o.value.map(x=>({title:x.label,const:x.value}));r.config.main.options=h!=null?h:[]}return r},buildBasicUiSchema=o=>({type:"HorizontalLayout",pageName:`${o.name}`,elements:[]}),TextArea={type:"Control",scope:"#/properties/textarea",options:{widget:"TextArea"},config:{layout:{xs:12,sm:12,md:5.5,lg:5.5},style:{containerStyle:{borderRadius:"20px"},headerContainerStyle:{},textAreaStyle:{borderRadius:"20px",padding:"20px",background:"white",color:"black"}},main:{heading:"TextArea",minRows:4,hideButton:!0}}},buildTextArea=(o,u)=>{const r=_.cloneDeep(TextArea);return r.config.main.heading=o.label,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.style&&(r.config.style=JSON.parse(o.style)),r.scope=u,r};var cardSlider={type:"Control",scope:"#/properties/path",options:{widget:"Slider"},elements:[],config:{layout:12,main:{}}};const buildSlider=(o,u)=>{const r=_.cloneDeep(cardSlider);return o.name&&(r.scope=u),o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r},Checkbox={type:"Control",scope:"#/properties/username1",layout:12,options:{widget:"CheckBox"},config:{main:{label:"Welcome to Hyperform"}}},buildCheckbox=(o,u)=>{const r=_.cloneDeep(Checkbox);return r.scope=u,r.config.main.label=o.label,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.style&&(r.config.style=JSON.parse(o.style)),r},buildLineGraph=(o,u)=>{const r=_.cloneDeep(LineGraph);return o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r.config.main.header=o.heading,o.height&&(r.config.style.containerStyle.height=o.height),o.bottomLabel&&(r.config.main.bottomLabel=o.bottomLabel),o.leftLabel&&(r.config.main.leftLabel=o.leftLabel),o.legendHide&&(r.config.main.legendAvailabe=o.legendHide!=="YES"),o.legendLabels&&(r.config.main.tooltipDataKey=flatObjectValueInArray(o.legendLabels)),o.pieArcColors&&(r.config.style.lineStyle.colorRange=flatObjectValueInArray(o.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=(o,u)=>{const r=_.cloneDeep(RadioUiSchema);return r.scope=u,r.config.main.heading=o.label,o.layout&&(r.config.layout=createLayoutFormat(o.layout)),o.sectionLabels&&(r.config.main.options=o.sectionLabels.map(h=>h.label||h.Options)),o.style&&(r.config.style=JSON.parse(o.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=(o,u)=>{const r=_.cloneDeep(emptyBox);return o.layout&&(r.config.layout=createLayoutFormat(o.layout)),r};exports.schema={type:"object",properties:{},required:[]};function buildRule(o,u){o.validation&&o.validation.forEach(r=>{var h,x,w,S,M,U,J,$,K,oe;u?(w=(x=(h=exports.schema.properties)==null?void 0:h[u])==null?void 0:x.items)!=null&&w.properties&&((J=(U=(M=(S=exports.schema.properties)==null?void 0:S[u])==null?void 0:M.items)==null?void 0:U.properties)!=null&&J[o.name]||(exports.schema.properties[u].items.properties[o.name]={}),r.validationType==="required"?(oe=(K=($=exports.schema.properties)==null?void 0:$[u])==null?void 0:K.items)==null||oe.required.push(o.name):(exports.schema.properties[u].items.properties[o.name].type="string",exports.schema.properties[u].items.properties[o.name][r.validationType]=isNaN(r.validationValue)?r.validationValue:Number(r.validationValue))):(exports.schema.properties[o.name]||(exports.schema.properties[o.name]={}),r.validationType==="required"?exports.schema.required.push(o.name):(exports.schema.properties[o.name].type="string",exports.schema.properties[o.name][r.validationType]=isNaN(r.validationValue)?r.validationValue:Number(r.validationValue)))})}const buildSchema=(o,u)=>(buildRule(o,u),o!=null&&o.elements&&(o.type=="Table"?(exports.schema.properties[o.name]||(exports.schema.properties[o.name]={type:"array",items:{type:"object",properties:{},required:[]}}),o.elements.map((r,h)=>{buildSchema(r,o.name)})):o.elements.map((r,h)=>{buildSchema(r)})),exports.schema),buildUiSchema=o=>{let u={};const r=`#/properties/${o.name}`;switch(o.type){case"RunnerBoyProgressBar":u=RunnerBoyProgressbar(o,r);break;case"TabSection":u=buildTabSection(o);break;case"WrapperSection":u=buildWrapperSection(o);break;case"Text":u=buildTextField(o,r);break;case"TextArea":u=buildTextArea(o,r);break;case"Date":u=buildDate(o,r);break;case"Select":u=buildSelect(o,r);break;case"Radio":u=buildRadio(o,r);break;case"Button":u=buildButton(o,r);break;case"Table":u=buildTable(o,r);break;case"Box":u=buildLabel(o,r);break;case"CheckBox":u=buildCheckbox(o,r);break;case"UploadFile":u=buildUploadFile(o,r);break;case"DownloadFile":u=buildDownloadFile(o,r);break;case"EmptyBox":u=buildEmptyBox(o);break;case"card":u=buildCard(o);break;case"Graph":switch(o.graphType){case"BarGraph":case"StackBarGraph":u=buildStackbarGraph(o,r);break;case"LineGraph":u=buildLineGraph(o,r);break;case"PieGraph":u=buildPieGraph(o,r);break;case"HorizontalBarGraph":u=buildHorizontalBarGraph(o,r);break}break;case"ProgressBar":u=buildProgressBar(o,r);break;case"SpeedoMeter":u=buildSpeedoMeter(o,r);break;case"ProgressBarCard":u=buildProgressBarCard(o,r);break;case"RankCard":u=buildRankCard(o,r);break;case"Rank":u=buildRollAndDice(o,r);break;case"Slider":u=buildSlider(o,r);break;case"Timer":u=buildTimer(o,r);break;case"MultipleSelect":u=buildMultiSelect(o,r);break;case"LeaderBoard":u=buildLeaderBoard(o);break;default:exports.schema={type:"object",properties:{},required:[]},u=buildBasicUiSchema(o)}if(o!=null&&o.elements){if((o==null?void 0:o.type)==="LeaderBoard")return u;o.type=="Table"?u.elements=o.elements.map((h,x)=>h.type?{accessorKey:h.name,header:h.label||h.name,widget:buildUiSchema(h)}:{accessorKey:h.name,header:h.label||h.name}):u.elements=o.elements.map((h,x)=>buildUiSchema(h))}return u};var pageMaster=o=>{const{store:u,dynamicData:r,config:h,submitHandler:x}=o;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(h),h)},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),x(u,o.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 U;const w=r.path.split(".")[1],S=(U=u.searchParams)==null?void 0:U.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"}}}},refreshElements:{type:"array",items:{type:"object",properties:{value:{type:"string"}}}},body:{type:"array",items:{type:"object",properties:{body_key:{type:"string"},body_value:{type:"string"}}}}}},EventUiSchema={type:"HorizontalLayout",elements:[{type:"WrapperLayout",config:{main:{rowSpacing:1,header:!0},defaultStyle:!0},elements:[{type:"Control",scope:"#/properties/Component",options:{widget:"Box"},config:{layout:{xs:12,sm:12,md:2},main:{heading:"Component"},style:{float:"left"}}},{type:"Control",scope:"#/properties/pageName",options:{widget:"Box"},config:{layout:{xs:7,sm:7,md:9},main:{heading:" "},style:{float:"right",width:"auto",fontSize:"12px",color:"gray",paddingTop:"10px"}}},{type:"Control",scope:"#/properties/Back_Button",options:{widget:"IconButton"},config:{layout:{xs:2,sm:2,md:.5},main:{icon:"BackIcon",styleDefault:!0,size:"small",onClick:"backHandler",tooltipMessage:"Back"},style:{float:"right"}}}]},{type:"TabLayout",config:{main:{tabLabels:["Core","Response Event"],defaultStyle:!0,id:"event"}},elements:[{type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/eventType",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Event Type",type:"text",options:[{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"}]}}},getSelectField("Handler","Handler",[{title:"Custom",const:"custom"},{title:"Api",const:"api"},{title:"Inbuilt Function",const:"inBuiltFunction"},{title:"Refresh",const:"refresh"}])]},{type:"WrapperLayout",config:{main:{divider:!0},wrapperStyle:{border:"1px solid gray"}},elements:[{type:"Control",scope:"#/properties/heading",options:{widget:"Box"},config:{layout:8,main:{heading:"Response Event"},style:{fontFamily:"Roboto",fontWeight:"500",paddingLeft:"-10px",fontSize:"20px"}}},{type:"Control",scope:"#/properties/AddButton",options:{widget:"IconButton"},config:{layout:3,main:{icon:"AddIcon",styleDefault:!0,size:"small",onClick:"addEvent",tooltipMessage:"Back"},style:{float:"right"}}},{type:"Control",scope:"#/properties/events",options:{widget:"Table"},config:{main:{disableAction:!0,disableSelection:!0,enableDrag:!0}},elements:[{accessorKey:"eventType",header:"Event Type"},{accessorKey:"Handler",header:"Handler"},{accessorKey:"Edit_Approve_Records",header:"Edit Widget",widget:{type:"Control",scope:"#/properties/Edit_Records",options:{widget:"IconButton"},config:{main:{color:"info",size:"small",icon:"EditIcon",tooltipMessage:"Edit This Record",onClick:"editEvent"},style:{color:"#3949ab"}}}},{accessorKey:"Reject_Records",header:"Delete",widget:{type:"Control",scope:"#/properties/RejectButton",options:{widget:"IconButton"},config:{main:{icon:"RejectIcon",color:"error",tooltipMessage:"Reject This Record",onClick:"deleteEvent"}}}}]}]}]},{type:"Control",scope:"#/properties/proc",config:{layout:{xs:11,sm:11,md:8,lg:8}},options:{widget:"EmptyBox"}},{type:"Control",scope:"#/properties/btn",options:{widget:"Button"},config:{layout:{xs:11,sm:11,md:3,lg:3},main:{name:"Save",startIcon:"ApproveIcon",variant:"contained",color:"info",type:"text",onClick:"saveHandler",size:"small"},style:{marginBottom:"8px",float:"right"}}},{type:"Control",scope:"#/properties/notify",options:{widget:"Notify"},layout:6}]},APISection={type:"HorizontalLayout",elements:[{type:"Control",scope:"#/properties/method",options:{widget:"SelectInputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Method",type:"text",options:[{title:"Get",const:"get"},{title:"Post",const:"post"},{title:"Delete",const:"delete"},{title:"Put",const:"put"}]}}},{type:"Control",scope:"#/properties/path",options:{widget:"InputField"},config:{layout:{xs:11,sm:11,md:5.5,lg:5.5},main:{label:"Path",type:"text",multiple:!1,options:[]}}},{type:"Control",scope:"#/properties/headers",layout:11.5,options:{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=(o,u)=>({setPage:async function(){const r=await this.getFormData();o.setFormdata(r);const h=await this.getSchema();o.setSchema(h),this.refreshPage(r.Handler,o)},refreshPage:(r,h)=>{const x=_.cloneDeep(EventUiSchema);r&&(r==="custom"?x.elements[1].elements[0].elements[2]=getTextArea("eventCode","Write Custom Code",!1):r==="api"?x.elements[1].elements[0].elements[2]=APISection:r==="inBuiltFunction"?(x.elements[1].elements[0].elements[2]=getSelectField("inBuiltFunctionType","Function Name",[{title:"RankProvider",const:"RankProvider"},{title:"Download File",const:"downloadFile"}]),x.elements[1].elements[0].elements[3]=getTextArea("funcParametersCode","Write Custom Code for Functions Parameter",!0,{xs:12,sm:12,md:6})):r==="refresh"&&(x.elements[1].elements[0].elements[2]=refreshSectionUiSchema)),h.setUiSchema(x)},getFormData:Component(o,u).getFormdata,getUiSchema:async function(){return EventUiSchema},getSchema:async()=>EventSchema,onChange:function(){var r,h,x;((r=o==null?void 0:o.formData)==null?void 0:r.Handler)!==((h=o==null?void 0:o.newData)==null?void 0:h.Handler)&&((x=o==null?void 0:o.newData)==null?void 0:x.Handler)!==void 0&&this.refreshPage(o.newData.Handler||o.formdata.Handler,o)},saveHandler:Component(o,u).saveHandler,addEvent:async function(){var x,w,S;const r=(x=o.searchParams)==null?void 0:x.get("path");Array.isArray(o.formData.events)||(o.formData.events=[]),saveFormdataInLocalStorage(o.formData,r);const h=`${r}.events[${(S=(w=o.formData)==null?void 0:w.events)==null?void 0:S.length}]`;o.searchParams.set("path",h),o.setSearchParams(o.searchParams),this.setPage()},editEvent:async function(){var w;const r=u.path.split(".")[1],h=(w=o.searchParams)==null?void 0:w.get("path");saveFormdataInLocalStorage(o.formData,h);const x=`${h}.events[${r}]`;o.searchParams.set("path",x),o.setSearchParams(o.searchParams),this.setPage()},deleteEvent:Component(o,u).deleteEvent,backHandler:function(){o.navigate(-1)}});const downloadFile=o=>{const u=o.name.split("."),r=o.data,h=window.atob(r);let x;x=new File([h],u[u.length-1]);const w=URL.createObjectURL(x),S=document.createElement("a");S.href=u[u.length-1]==="pdf"?"data:application/octet-stream;base64,"+r:w,S.download=`${o.name}`,document.body.appendChild(S),S.click(),URL.revokeObjectURL(w),document.body.removeChild(S)},executeEvents=async(o,u,r,h,x,w,S,M,U)=>{let J=[],$=null;if(o.eventType==="onLoad"){const{response:K,events:oe}=await executetOnLoadEvent(o,u,r,h,x,w,S,M,U);$=K,J=oe}else{if(!shouldEventExecute(o,u,r,h,x,w,S,M))return{response:void 0,events:void 0};const{response:K,events:oe}=await executeEventsHandler(o,u,r,h,x,w,S,M,U);$=K,J=oe}if((J==null?void 0:J.length)>0)for(const K of J)await executeEvents(K,u,r,h,x,w,S,M,$)},executetOnLoadEvent=async(o,u,r,h,x,w,S,M,U)=>{try{if(!shouldEventExecute(o,u,r,h,x,w,S,M))return{response:void 0,events:void 0};const{response:J}=await executeEventsHandler(o,u,r,h,x,w,S,M,U),$=o==null?void 0:o.events.filter(oe=>oe.eventType==="Success"),K=$.length>0?$:[{Handler:"mergeFormdata",eventType:"Success",type:o.type}];return{response:J,events:K}}catch{const $=o==null?void 0:o.events.filter(oe=>oe.eventType==="Fail"),K=$.length>0?$:[];return{response:void 0,events:K}}};async function executeEventsHandler(o,u,r,h,x,w,S,M,U){if(o.Handler==="api")return await executeApiEventHandler(o,u,r,h,x,w);if(o.Handler==="inBuiltFunction")return await executeInBuiltFunctionHandler(o,u,r,h,x,w,S,U);if(o.Handler==="custom")return await executeCustomHandler(o,u,r,h,x,w,S,U);if(o.Handler==="refresh")return await executeRefreshHandler(o,u,r,h,x,w,S,U,M);if(o.Handler==="mergeFormdata")return await mergeFormdata(U,u,o,r)}async function executeRefreshHandler(o,u,r,h,x,w,S,M,U){const J=getRefreshElements(o,U);for(const $ of J)for(const K of U.onLoad[$])await executeEvents(K,$,r,h,x,w,S);return{response:void 0,events:void 0}}async function executeApiEventHandler(o,u,r,h,x,w,S,M){const U={...x==null?void 0:x.payload},J={"X-Requested-With":"XMLHttpRequest","Access-Control-Allow-Origin":"*"},{body:$,headers:K}=await buildApiPayload(o,U,J,r,h,x);let oe;return oe=await w[o.method](o.path,$,K&&{headers:K}),{response:oe,events:o==null?void 0:o.events}}async function executeInBuiltFunctionHandler(refreshHandlerConfig,componentName,store,dynamicData,userValue,service,serviceHolder,parentEventOutput){let parameter={};if(refreshHandlerConfig.funcParametersCode){const makeFunc=eval(refreshHandlerConfig.funcParametersCode);parameter=makeFunc(store,dynamicData,userValue,parentEventOutput,service)}return serviceHolder[refreshHandlerConfig.inBuiltFunctionType](parameter),{response:void 0,events:refreshHandlerConfig==null?void 0:refreshHandlerConfig.events}}async function executeCustomHandler(customHandlerConfig,componentName,store,dynamicData,userValue,service,serviceHolder,parentEventOutput){console.log(service);const makeFunc=eval(customHandlerConfig.eventCode),response=await makeFunc(store,dynamicData,userValue,parentEventOutput,service,componentName);return{response,events:customHandlerConfig==null?void 0:customHandlerConfig.events}}async function mergeFormdata(o,u,r,h){return r.type==="Select"&&!(_.isEmpty(o)&&o)?h.setSchema(x=>({...x,properties:{...x.properties,[u]:{oneOf:o.data}}})):r.type==="page"?h.setFormdata(x=>({...x,...o==null?void 0:o.data})):o&&h.setFormdata(x=>({...x,[u]:o.data})),{response:void 0,events:void 0}}const buildBodyFormat=(o,u,r)=>{const h={...r==null?void 0:r.payload};return o.map(x=>{var w,S;if((w=x==null?void 0:x.value)!=null&&w.startsWith("$userValue")){const M=x.value.substring(11);h[x.key]=_.get(r,M)}else if((S=x==null?void 0:x.value)!=null&&S.startsWith("$")){const M=x.value.substring(1);h[x.key]=_.get(u,M)}else h[x.key]=x.value}),h},buildHeadersFormat=o=>{const u={"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"};return o.map(r=>{u[r.key]=r.value}),u};async function shouldEventExecute(o,u,r,h,x,w,S,M){var J;const U=(J=o==null?void 0:o.events)==null?void 0:J.filter($=>$.eventType==="onStart");if((U==null?void 0:U.length)>0){const{response:$}=await executeEventsHandler(U[0],u,r,h,x,w,S,M);return $}}async function buildApiPayload(compConfig,body,headers,store,dynamicData,userValue,service){var o,u;if(compConfig!=null&&compConfig.headers&&(headers=buildHeadersFormat(compConfig.headers)),compConfig.body&&(body={...buildBodyFormat(compConfig.body,store.newData||((u=(o=store==null?void 0:store.ctx)==null?void 0:o.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(o,u){var h;let r=[];return((h=o==null?void 0:o.refreshElements)==null?void 0:h.length)>0?r=o.refreshElements.map(x=>x.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=o=>{function u(r){r.events&&r.events.forEach(h=>{r.type&&(compType=r.type),eventGroups[h.eventType]||(eventGroups[h.eventType]={}),eventGroups[h.eventType][r.name]||(eventGroups[h.eventType][r.name]=[]),eventGroups[h.eventType][r.name].push({...h,type:compType})})}return u(o),o!=null&&o.elements&&o.elements.forEach(extractEvents),eventGroups};var service=o=>({setPage:async function(){o.store.setFormdata({}),eventGroups={},eventGroups=extractEvents(o.config),await executeEvents({Handler:"refresh",eventType:"onPageRefresh"},"all",o.store,o.dynamicData,o.userValue,o.service,this,eventGroups),o.store.setSchema(u=>({...o.schema,properties:{...o.schema.properties,...u.properties}})),o.uiSchema.elements.push(notifyUiSchema),o.store.setUiSchema(o.uiSchema)},onClick:async function(){var r;const u=((r=o.dynamicData)==null?void 0:r.tableButtonPath)||o.dynamicData.path.split(".")[0];for(const h of eventGroups==null?void 0:eventGroups.onClick[u])await executeEvents(h,u,o.store,o.dynamicData,o.userValue,o.service,this,eventGroups)},onChange:async function(){if(eventGroups.onChange){const u=Object.keys(eventGroups.onChange);Promise.all(u.map(async r=>{var h,x;if(((h=o.store)==null?void 0:h.formData[r])!==o.store.newData[r]&&((x=o.store)==null?void 0:x.newData[r])!==void 0)for(const w of eventGroups.onChange[r])await executeEvents(w,r,o.store,o.dynamicData,o.userValue,o.service,this,eventGroups)}))}},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
|