/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/human-stringify-list@0.0.5/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";exports.__esModule=!0;var HumanListSettings=function(t){void 0===t&&(t={}),this.items_name=t.items_name||"items",this.item_name=t.item_name||"item",this.max_available_to_count=t.max_available_to_count||7,this.no_items_msg=t.no_items_msg||"No hay items",this.and_separator=t.and_separator||"y",this.comma_separator=t.comma_separator||","},HumanList=function(){function t(t,n){return this.items=t,this.settings=new HumanListSettings(n),this}return t.prototype.stringlyList=function(t,n){if(void 0===t&&(t=this.items),void 0===n&&(n=this.settings),!t.length)return n.no_items_msg;if(t.length>n.max_available_to_count)return t.length+" "+n.items_name;if(1===t.length)return t[0];if(2===t.length)return t[0]+" "+n.and_separator+" "+t[1];if(t.length>2)for(var i=0;i<t.length;i++)if(i<t.length-2&&(t[i]+=n.comma_separator),i===t.length-2&&(t[i]+=" "+n.and_separator),i===t.length-1)return t.join(" ")},t}(),HumanProductList=function(){function t(t,n){this.product_list=[],this.settings=n}return t.prototype.stringly=function(){return new HumanList(this.product_list,this.settings).stringlyList()},t}();function getHumanStringList(t,n){return new HumanList(t,n).stringlyList()}function getHumanProductList(t,n){return new HumanProductList(t,n).stringly()}exports.getHumanStringList=getHumanStringList,exports.getHumanProductList=getHumanProductList;
//# sourceMappingURL=/sm/8bba8ea45def76cd60407accd4cde318a068703f0799c633252e7ac59d861496.map