System.register([],(function(t){"use strict";return{execute:function(){var e=o;function r(t){return t&&t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function n(t){return t}function o(t,e){var o=(e=e||{}).delimiter||".",c=e.maxDepth,i=e.transformKey||n,u={};return function t(n,f,a){a=a||1,Object.keys(n).forEach((function(b){var j=n[b],s=e.safe&&Array.isArray(j),y=Object.prototype.toString.call(j),l=r(j),p="[object Object]"===y||"[object Array]"===y,O=f?f+o+i(b):i(b);if(!s&&!l&&p&&Object.keys(j).length&&(!e.maxDepth||a<c))return t(j,O,a+1);u[O]=j}))}(t),u}o.flatten=o,o.unflatten=function t(e,c){var i=(c=c||{}).delimiter||".",u=c.overwrite||!1,f=c.transformKey||n,a={};if(r(e)||"[object Object]"!==Object.prototype.toString.call(e))return e;function b(t){var e=Number(t);return isNaN(e)||-1!==t.indexOf(".")||c.object?t:e}return e=Object.keys(e).reduce((function(t,r){var n=Object.prototype.toString.call(e[r]);return"[object Object]"!==n&&"[object Array]"!==n||function(t){var e=Object.prototype.toString.call(t),r="[object Array]"===e,n="[object Object]"===e;return!t||(r?!t.length:n?!Object.keys(t).length:void 0)}(e[r])?(t[r]=e[r],t):function(t,e,r){return Object.keys(r).reduce((function(e,n){return e[t+i+n]=r[n],e}),e)}(r,t,o(e[r],c))}),{}),Object.keys(e).forEach((function(r){for(var n=r.split(i).map(f),o=b(n.shift()),j=b(n[0]),s=a;void 0!==j;){if("__proto__"===o)return;var y=Object.prototype.toString.call(s[o]),l="[object Object]"===y||"[object Array]"===y;if(!u&&!l&&void 0!==s[o])return;(u&&!l||!u&&null==s[o])&&(s[o]="number"!=typeof j||c.object?{}:[]),s=s[o],n.length>0&&(o=b(n.shift()),j=b(n[0]))}s[o]=t(e[r],c)})),a},t("f",e)}}}));
