import{i as o}from"./isUnsafeProperty-CZDKHtlL.js";function l(r){switch(typeof r){case"number":case"symbol":return!1;case"string":return r.includes(".")||r.includes("[")||r.includes("]")}}function c(r){return typeof r=="string"||typeof r=="symbol"?r:Object.is(r?.valueOf?.(),-0)?"-0":String(r)}function g(r){if(r==null)return"";if(typeof r=="string")return r;if(Array.isArray(r))return r.map(g).join(",");const n=String(r);return n==="0"&&Object.is(Number(r),-0)?"-0":n}function m(r){if(Array.isArray(r))return r.map(c);if(typeof r=="symbol")return[r];r=g(r);const n=[],t=r.length;if(t===0)return n;let i=0,s="",f="",u=!1;for(r.charCodeAt(0)===46&&(n.push(""),i++);i<t;){const e=r[i];f?e==="\\"&&i+1<t?(i++,s+=r[i]):e===f?f="":s+=e:u?e==='"'||e==="'"?f=e:e==="]"?(u=!1,n.push(s),s=""):s+=e:e==="["?(u=!0,s&&(n.push(s),s="")):e==="."?s&&(n.push(s),s=""):s+=e,i++}return s&&n.push(s),n}function y(r,n,t){if(r==null)return t;switch(typeof n){case"string":{if(o(n))return t;const i=r[n];return i===void 0?l(n)?y(r,m(n),t):t:i}case"number":case"symbol":{typeof n=="number"&&(n=c(n));const i=r[n];return i===void 0?t:i}default:{if(Array.isArray(n))return b(r,n,t);if(Object.is(n?.valueOf(),-0)?n="-0":n=String(n),o(n))return t;const i=r[n];return i===void 0?t:i}}}function b(r,n,t){if(n.length===0)return t;let i=r;for(let s=0;s<n.length;s++){if(i==null||o(n[s]))return t;i=i[n[s]]}return i===void 0?t:i}export{c as a,g as b,y as g,l as i,m as t};
//# sourceMappingURL=get-B2OPNtsk.js.map
