/*! NoDash.js - a terse utility library based on ES5+ features https://squizzle.me/js/nodash | Public domain/Unlicense */ !function(n){var e,r,t,i="",o="NoDash";"undefined"==typeof exports||exports.nodeType?"function"==typeof define&&define.amd?define(i.replace(/\?/g,"/").match(/\S+(?=:)/g)||[],n):(e="object"==typeof self?self:"object"==typeof global?global:this||{},r=function(n,t){for(t=t.split(".");n&&t.length;)n=n[t.shift()];return n},i=(i.match(/:\S+/g)||[]).map(function(n){var t=r(e,n=n.substr(1));if(t)return t;throw o+": missing dependency: "+n}),o=o.split(/\.([^.]+)$/),t=(e=1t[2]?1:n[2]t[0]?-1:0})}function a(n,t,e,r){return(n=n instanceof Function?[n].concat(r?[void 0]:[],s.slice.call(t||[],e)):n)&&(void 0===n[1]?function(){return n[0].apply(this,n.slice(2).concat(s.slice.call(arguments)))}:Function.prototype.bind.apply(n.shift(),n))}function i(n,t){var e;return n instanceof Function||(e=p.object(s.concat.apply([],t)),n=function(n,t){return p.has(e,t)}),n}function c(n,t,e,r,i){var o;if("string"==typeof e)return i&&n&&t?e.trim():(o="g",r=i?"\\s+":r instanceof RegExp?(o+=r.flags,"("+r.source+")+"):"["+p.escapeRegExp(r)+"]+",o=RegExp("^"+(n?r:"")+"|"+(t?r:"")+"$",o),e.replace(o,""));for(var u=0;n&&u=e&&r.leading&&(t.apply(n[0],n[1]),o=Date.now()),i=setTimeout(function(){r.trailing&&(t.apply(n[0],n[1]),o=Date.now()),i=null},e))}return n.cancel=function(){i=clearTimeout(i)},n},debounce:function(t,e,n){var r;return t=a(t),(n=n?function(){if(!r)return r=setTimeout(function(){r=null},e),t.apply(this,arguments)}:function(){var n=[this,arguments];clearTimeout(r),r=setTimeout(function(){t.apply(n[0],n[1])},e)}).cancel=function(){r=clearTimeout(r)},n},once:function(n){var t=f;return function(){return t===f&&(t=void 0,t=a(n).apply(this,arguments)),t}},property:function(t,e){return arguments.length<2&&(e=f),function(n){return p.at(n,t,e)}},at:function(n,t,e){"string"!=typeof t&&p.isArrayLike(t)||(t=[t]);for(var r=0;r(t[0]+="")?1:-1}).map(function(n){return e(n[1],n[0],t)}):f.map(t,e)).join("")}},ref:function(n){if(!(n=n.trim()))throw new Error("template: blank ref.");var t;if(t=n.match(/^(\w+)((\.\w+)*)$/))n='["'+t[2].substr(1).replace(/\./g,u.laxRef?'","':'"]["')+'"]',n=u.laxRef?"(typeof "+t[1]+'=="undefined"?undefined:'+(t[2]?"_.at("+t[1]+","+n+")":t[1])+")":t[1]+(t[2]?n:"");else{if(!u.code)throw new Error("template: code refs prohibited.");n="("+n+")"}return n}},o="",e=f.keys(u.blocks).join("|"),a=new RegExp("^("+e+")(:\\S*)?(\\s+(.*))?$"),c=new RegExp("^\\/\\s*("+e+")?\\s*$");if(n instanceof Function?n=n.toString().match(/\/\*([\s\S]*)\*\//)[1].trim():f.isElement(n)&&(n=n.textContent),n=(n=u.backslash?n.replace(/\\[\r\n]\s*/g,""):n).replace(/(\\(\\\\)*)\{\{|((?:\\\\)*)\{\{\s*(.*?)\}\}|(["\\\0-\x1F])/g,function(){var n=arguments;if(n[1])var t=n[0].substr(1);else if(n[5])var e=n[0].charCodeAt(0),t="\\x"+(e<16?"0":"")+e.toString(16);else{t=n[3]+'"+',e=n[4];if(n=e.match(a)){var r=u.blocks[n[1]](n[2]?n[2].substr(1):null,n[3]?n[4]:null,i);o+=r.head||"",t+=r.start||"",r.type=r.type||n[1],r.end&&i.stack.unshift(r)}else if(n=e.match(c)){if(!i.stack.length||n[1]&&i.stack[0].type!=n[1])throw new Error("template: /"+i.stack[0].type+" expected, {{"+n[0]+"}} found.");t+=i.stack.shift().end}else t+="((T="+i.ref(e.substr("="==e[0]))+')==null?"":'+("="==e[0]?"T":"E(T)")+")";t+='+"'}return t}),i.stack.length)throw n=f.pluck(i.stack,"type").join("}} <- {{"),new Error("template: unclosed {{"+n+"}}.");return n=o+'return"'+n+'"',u.with&&(n="with(v){"+n+"}"),u.source||((t=u.prepare)&&"function"!=typeof t&&(u.prepare=function(n){return f.assign({},t,n,{o:f.assign({},t.o,n.o)})}),n="v=v||{};v=_p?_p(v):v;v.o=v.o||{};var T,E=v.o.escaper||function(s){return s};"+n,n=new Function("_p,_,_x,v",n).bind(void 0,u.prepare,f,i.extra)),n},format:function(i,n){function r(n,t){t[8]&&n.e("%"+t[11]+" is incompatible with precision ("+t[8]+")")}i instanceof Object||(n=i,i={});for(var t=f.rest(arguments,1+(i==arguments[0])),e=(i.defaultPrecision=f.assign({s:100,c:100},i.defaultPrecision),i.specifiers=f.assign({s:function(n,t,e){return e=e||"c.next("+n[2]+")",n[8]?"c.ellipsize("+e+","+(n[10]||n[7]||i.defaultPrecision[n[11]]||0)+","+!!n[9]+")":e},c:function(n,t){var e="a=c.next("+n[2]+"),String.fromCharCode.apply(undefined,_.isArrayLike(a)?a:[a])";return i.specifiers.s(n,t,e)},d:function(n,t){return r(t,n),"Math.trunc(c.next("+n[2]+"))"},f:function(n){var t=n[8]?+n[10]||i.defaultPrecision[n[11]]||0:6,e=f.repeat("0",t),r=n[9]||!t,n="Math.round((c.next("+n[2]+")"+(r?"":"+1")+")"+(e&&"*1"+e)+")";return r?"a="+n+(e&&"/1"+e)+'+"",al-=a.length-Math.max(0,a.indexOf(".")),a':"al-="+(t+1)+",a="+n+'+"",a.substr(0,a.length-'+t+')-1+"."+a.substr(-'+t+")"},x:function(n,t,e){return r(t,n),"(+c.next("+n[2]+")).toString("+(e||16)+")"},X:function(n,t){return i.specifiers.x(n,t)+".toUpperCase()"},b:function(n,t){return i.specifiers.x(n,t,2)},o:function(n,t){return i.specifiers.x(n,t,8)},H:function(n,t,e){return r(t,n),"c.next("+n[2]+")."+(e||"getHours")+"()"},I:function(n,t){return i.specifiers.H(n,t,"getMinutes")},S:function(n,t){return i.specifiers.H(n,t,"getSeconds")},Y:function(n,t){return i.specifiers.H(n,t,"getFullYear")},M:function(n,t){return i.specifiers.H(n,t,"getMonth")+"+1"},D:function(n,t){return i.specifiers.H(n,t,"getDate")},K:function(n,t){return i.specifiers.H(n,t,"getDay")}},i.specifiers),{head:"var a,al,c=_.assign({arg:0,args:_.rest(arguments,2)},_c);",options:i,e:function(n){if(this.options.silent)return!0;throw new Error("format: "+n+".")},next:function(n){return n&&(isNaN(n[0])?this.arg+=+n:this.arg=n-1),++this.arg>this.args.length?(this.e("too few arguments"),""):this.args[this.arg-1]},ellipsize:function(n,t,e){var r;return(n+="").length>t?t<=(r=null==i.ellipsis?"...":i.ellipsis).length?e?n.substr(-t):n.substr(0,t):e?r+n.substr(-(t-r.length)):n.substr(0,t-r.length)+r:n}}),o=JSON.stringify(n).split(/%(%|(([+-]\d*|\d+)\$)?(\+ ?)?(([-=])?(0|`.)?(\d+))?(\.(-)?(\d*))?(\w))/),u="";u+=o.shift(),o.length;){var a,c,s=o.splice(0,12);"%"==s[0]?u+="%":(a=i.specifiers[s[11]])?("+"!=s[2]&&"-"!=s[2]||(s[2]+="1"),s[2]=s[2]?'"'+s[2]+'"':"",u+='"+(al=0,a=('+a(s,e)+"),",s[3]&&(u+='(a>0?"'+s[3].substr(-1)+'":"")+'),s[4]?(a=s[7],c=JSON.stringify(f.repeat((s[6]||" ").substr(-1),+a)),"="==s[5]?u+='(a+="",a='+c+".substr(0,("+a+"-a.length+al)/2)+a)+"+c+".substr(a.length)":(c+=".substr(a.length+al)",u+='(a+="",'+(s[5]?"a+"+c:c+"+a")+")")):u+="a",u+=')+"'):e.e("unsupported specifier %"+s[11]+": %"+s[0])}return u=e.head+"a="+u+';c.arg==c.args.length||c.e("too many arguments");return a',0!=i.return&&(u=new Function("_c,_",u).bind(void 0,e,f),1!=i.return)?u.apply(void 0,t):(t.length&&e.e("have both format arg-s and options.return < 2"),u)}}});