/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports"],(function(t){"use strict";function e(t,e){if(!t)return null;const n=e.featureAdapter,{startTimeField:u,endTimeField:l}=t;let r=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;if(u&&l)e.forEach((t=>{const e=n.getAttribute(t,u),o=n.getAttribute(t,l);null==e||isNaN(e)||(r=Math.min(r,e)),null==o||isNaN(o)||(i=Math.max(i,o))}));else{const t=u||l;e.forEach((e=>{const u=n.getAttribute(e,t);null==u||isNaN(u)||(r=Math.min(r,u),i=Math.max(i,u))}))}return{start:r,end:i}}function n(t,e,n){if(!e||!t)return null;const{startTimeField:i,endTimeField:o}=t;if(!i&&!o)return null;const{start:s,end:a}=e;return null===s&&null===a?null:void 0===s&&void 0===a?r():i&&o?u(n,i,o,s,a):l(n,i||o,s,a)}function u(t,e,n,u,l){return null!=u&&null!=l?r=>{const i=t.getAttribute(r,e),o=t.getAttribute(r,n);return(null==i||i<=l)&&(null==o||o>=u)}:null!=u?e=>{const l=t.getAttribute(e,n);return null==l||l>=u}:null!=l?n=>{const u=t.getAttribute(n,e);return null==u||u<=l}:void 0}function l(t,e,n,u){return null!=n&&null!=u&&n===u?u=>t.getAttribute(u,e)===n:null!=n&&null!=u?l=>{const r=t.getAttribute(l,e);return r>=n&&r<=u}:null!=n?u=>t.getAttribute(u,e)>=n:null!=u?n=>t.getAttribute(n,e)<=u:void 0}function r(){return()=>!1}t.getTimeExtent=e,t.getTimeOperator=n,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
