"use strict";const u=require("./index.cjs226.js");function f(e){return u.matchAll(/\w+|\[(\w*)]/g,e).map(r=>r[0]==="[]"?"":r[1]||r[0])}function y(e){const r={},o=Object.keys(e);let i;const n=o.length;let c;for(i=0;i<n;i++)c=o[i],r[c]=e[c];return r}function b(e){function r(o,i,n,c){let s=o[c++];if(s==="__proto__")return!0;const t=Number.isFinite(+s),l=c>=o.length;return s=!s&&u.isArray(n)?n.length:s,l?(u.hasOwnProp(n,s)?n[s]=[n[s],i]:n[s]=i,!t):((!n[s]||!u.isObject(n[s]))&&(n[s]=[]),r(o,i,n[s],c)&&u.isArray(n[s])&&(n[s]=y(n[s])),!t)}if(u.isFormData(e)&&u.isFunction(e.entries)){const o={};return u.forEachEntry(e,(i,n)=>{r(f(i),n,o,0)}),o}return null}module.exports=b;
//# sourceMappingURL=index.cjs231.js.map
