/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/undermore@1.9.5/bin/undermore.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
/*! undermore - v1.9.5 - 2018-12-03
* https://github.com/atomantic/undermore
* Copyright (c) 2018 Adam Eivy (@antic); Licensed MIT */
/*! undermore - v1.9.5 - 2018-12-03
* https://github.com/atomantic/undermore
* Copyright (c) 2018 Adam Eivy (@antic); Licensed MIT */
/**
 * undermore fills in the gaps where standards lag behind by providing a lot of tiny functions
 * that really should just already be there--these are tiny, unit tested additions to underscore.js, which
 * reside in _.* -- e.g. _.uuid()
 *
 * @module undermore
 * @link https://github.com/atomantic/undermore.js
 * @copyright 2013 Adam Eivy (@antic)
 * @license MIT
 *
 * @param {object} exports The location of the underscore library to mixin all of the undermore methods
 */
!function(){"use strict";var e,n={};"undefined"!=typeof module&&module.exports?(e=require("lodash").runInContext(),module.exports=n):e=window._;var t,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.extend(n,{alphabetize:function(n){var t={},r=e.keys(n);return r=e.sortBy(r,(function(e){return e})),e.each(r,(function(r){e.isArray(n[r])?t[r]=e.map(n[r],(function(n){return e.isObject(n)?e.alphabetize(n):n})):e.isObject(n[r])?t[r]=e.alphabetize(n[r]):t[r]=n[r]})),t},base64_decode:function(n){if("undefined"!=typeof atob)return e.utf8_decode(atob(n));if(Buffer)return new Buffer(n,"base64").toString("binary");n=n.replace(/=+$/,"");for(var t,o,i=0,u=0,a="";o=n.charAt(u++);~o&&(t=i%4?64*t+o:o,i++%4)?a+=String.fromCharCode(255&t>>(-2*i&6)):0)o=r.indexOf(o);return a},base64_encode:function(n){if("undefined"!=typeof btoa)return btoa(e.utf8_encode(n));if(Buffer)return(n instanceof Buffer?n:new Buffer(n.toString(),"binary")).toString("base64");for(var t,o=0,i=r,u="";n.charAt(0|o)||(i="=",o%1);u+=i.charAt(63&t>>8-o%1*8))t=t<<8|n.charCodeAt(o+=3/4);return u},eFn:function(e){e.preventDefault()},fn:function(){return!0},fnMore:function(e,n,t){return t?function(){e.apply(t,arguments),n.apply(t,arguments)}:function(){e(),n()}},get:function(n,t,r){return"string"==typeof t&&(t=t.split(".")),undefined===n?r:0===t.length?n:null===n?r:e.get(n[t[0]],e.drop(t),r)},getQuery:function(n,r){return void 0===t&&function(){t={};var n=function(e){return e&&e.length>0?e.replace(/^\?/,"").split("&"):[]}(window.location.search);e.map(n,(function(e){var n=e.split("=");2===n.length&&(t[n[0]]=n[1])}))}(),void 0===n?t:void 0===t[n]?r:t[n]},isValidDate:function(n){return e.isDate(n)&&!e.isNaN(n.valueOf())},ord:function(e){var n=["th","st","nd","rd"],t=e%100;return n[(t-20)%10]||n[t]||n[0]},set:function(e,n,t){"string"==typeof n&&(n=n.split("."));for(var r=e,o=n.length-1,i=0;i<o;i++)void 0!==r[n[i]]&&null!==r[n[i]]||(r[n[i]]={}),r=r[n[i]];return r[n[o]]=t,e},utf8_decode:function(e){return decodeURIComponent(escape(e))},utf8_encode:function(e){return unescape(encodeURIComponent(e))},uuid:function(){var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(n){var t=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===n?t:3&t|8).toString(16)}))},version:function(e,n,t){var r=-1!==n.indexOf("="),o=/\+.*$/;if(e=e.replace(o),t=t.replace(o),r&&e===t)return!0;var i,u,a,f,c=/^(\d+).(\d+).(\d+)(?:-([a-z0-9.]+))?/i,d=e.match(c),x=t.match(c),p=d[4],s=x[4];for(i=1;i<4;i++)if((u=parseInt(d[i],10)||0)!==(a=parseInt(x[i],10)||0)){f=!0;break}if(f||(p||(u=1/0,s&&(a=0,f=!0)),s||(a=1/0,p&&(u=0,f=!0)),p||s||(f=!0)),!f){var l=p.split("."),h=s.split("."),v=l.length,g=h.length,b=v>g?v:g;for(i=0;i<b&&(u=i>=v?-1:parseInt(l[i],10)||l[i].charCodeAt())===(a=i>=g?-1:parseInt(h[i],10)||h[i].charCodeAt());i++);}return!!(r&&u===a||-1!==n.indexOf(">")&&u>a||-1!==n.indexOf("<")&&u<a)}}),e.mixin(n)}();
//# sourceMappingURL=/sm/d1011ea57f3597cd9aa5ac44d0e69975b6404a44428335c051e6c7178708508b.map