(function(l,u){"object"===typeof exports&&"undefined"!==typeof module?module.exports=u():"function"===typeof define&&define.amd?define("underscore",u):(l="undefined"!==typeof globalThis?globalThis:l||self,function(){var O=l._,G=l._=u();G.noConflict=function(){l._=O;return G}}())})(this,function(){function l(a,b){b=null==b?a.length-1:+b;return function(){for(var c=Math.max(arguments.length-b,0),d=Array(c),e=0;ed||null==c)return c;for(var e=1;e=b)return d.concat(a); for(var e=d.length,f=0,g=q(a);f=a&&(b=null);return c}}function Ya(a,b,c){b=r(b,c);c=m(a);for(var d,e=0,f=c.length;ed&&(d=c)}else b=r(b,c),w(a,function(a,c,g){f=b(a,c,g);if(f>e||-Infinity===f&&-Infinity===d)d=a,e=f});return d}function gb(a,b,c){if(null==b||c)return t(a)||(a=A(a)),a[ea(a.length-1)];a=t(a)?Pa(a):A(a);c=q(a);b=Math.max(Math.min(b,c),0);--c;for(var d=0;da.length?null==b||c?void 0:[]:null==b||c?a[0]:hb(a,a.length-b)}function S(a,b,c){return M.call(a,null==b||c?1:b)}function ma(a,b,c,d){G(b)||(d=c,c=b,b=!1);null!=c&&(c=r(c,d));d=[];for(var e=[],f=0,g=q(a);f/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},ta=/(.)^/,Ib={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},cc=/\\|'|\r|\n|\u2028|\u2029/g,dc=/^\s*(\w|\$)+\s*$/, ec=0,F=l(function(a,b){var c=F.placeholder,d=function(){for(var e=0,f=b.length,g=Array(f),k=0;kc)throw Error("bindAll must be passed function names"); for(;c--;){var d=b[c];a[d]=rb(a[d],a)}return a}),sb=l(function(a,b,c){return setTimeout(function(){return a.apply(null,c)},b)}),gc=F(sb,h,1),hc=F(Xa,2),ja=Za(1),tb=Za(-1),eb=ab(1,ja,$a),ic=ab(-1,tb),ua=bb(1),ub=bb(-1),jc=l(function(a,b,c){if(p(b))var d=b;else{b=h.toPath(b);var e=b.slice(0,-1);b=b[b.length-1]}return D(a,function(a){var f=d;if(!f){e&&e.length&&(a=aa(a,e));if(null==a)return;f=a[b]}return null==f?f:f.apply(a,c)})}),kc=R(function(a,b,c){y(a,c)?a[c].push(b):a[c]=[b]}),lc=R(function(a,b, c){a[c]=b}),mc=R(function(a,b,c){y(a,c)?a[c]++:a[c]=1}),nc=R(function(a,b,c){a[c?0:1].push(b)},!0),oc=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g,vb=l(function(a,b){var c={},d=b[0];if(null==a)return c;p(d)?(1=m||m>b?(d&&(clearTimeout(d),d=null),k=l,g=a.apply(e,f),d||(e=f=null)):d||!1===c.trailing||(d=setTimeout(h,m));return g};l.cancel=function(){clearTimeout(d);k=0;d=e=f=null};return l},debounce:function(a,b,c){var d,e,f,g,k,h=function(){var l=N()-e;b>l?d=setTimeout(h,b-l):(d=null,c||(g=a.apply(k,f)),d||(f=k=null))},m=l(function(l){k=this;f=l;e=N();d||(d=setTimeout(h,b),c&&(g=a.apply(k,f)));return g});m.cancel=function(){clearTimeout(d);d=f=k=null};return m},wrap:function(a,b){return F(b,a)},negate:ha, compose:function(){var a=arguments,b=a.length-1;return function(){for(var c=b,d=a[b].apply(this,arguments);c--;)d=a[c].call(this,d);return d}},after:function(a,b){return function(){if(1>--a)return b.apply(this,arguments)}},before:Xa,once:hc,findKey:Ya,findIndex:ja,findLastIndex:tb,sortedIndex:$a,indexOf:eb,lastIndexOf:ic,find:ia,detect:ia,findWhere:function(a,b){return ia(a,K(b))},each:w,forEach:w,map:D,collect:D,reduce:ua,foldl:ua,inject:ua,reduceRight:ub,foldr:ub,filter:E,select:E,reject:function(a, b,c){return E(a,ha(r(b)),c)},every:cb,all:cb,some:db,any:db,contains:x,includes:x,include:x,invoke:jc,pluck:ka,where:function(a,b){return E(a,K(b))},max:fb,min:function(a,b,c){var d=Infinity,e=Infinity,f;if(null==b||"number"==typeof b&&"object"!=typeof a[0]&&null!=a){a=t(a)?a:A(a);for(var g=0,k=a.length;gd||void 0===c)return 1;if(ca.length?null==b||c?void 0:[]:null==b||c?a[a.length-1]:S(a,Math.max(0,a.length-b))},rest:S,tail:S,drop:S,compact:function(a){return E(a,Boolean)},flatten:function(a,b){return C(a,b,!1)},without:qc,uniq:ma,unique:ma,union:rc,intersection:function(a){for(var b=[],c=arguments.length,d=0,e=q(a);db)return[];for(var c=[],d=0,e=a.length;d