/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{pathToArray as t,getProperties as n,isPropertyDeclared as r}from"./utils.js";function i(t,i){const e=t.endsWith("?")?t.slice(0,-1):t;if(null!=i.getItemAt||Array.isArray(i)){const t=parseInt(e,10);if(!isNaN(t))return Array.isArray(i)?i[t]:i.at(t)}const u=n(i);return r(u,e)?u.get(e):i[e]}function e(t,n,r){if(null==t)return t;const u=i(n[r],t);return!u&&r<n.length-1?void 0:r===n.length-1?u:e(u,n,r+1)}function u(n,r,u=0){return"string"!=typeof r||r.includes(".")?e(n,t(r),u):i(r,n)}function o(t,n){return u(t,n)}function s(t,n){return void 0!==u(n,t)}export{s as exists,o as get,u as valueOf};
