1import{T as r}from"./Cq-sGeuN.js";class i{datetime;timestamp;fileDateTime;aggregationStart;aggregationEnd;filename;sensorId;atmosphericPressureMin;atmosphericPressureAvg;atmosphericPressureMax;atmosphericPressureStd;batteryLevelMin;batteryLevelAvg;batteryLevelMax;batteryLevelStd;insideTempMin;insideTempAvg;insideTempMax;insideTempStd;pm1Min;pm1Avg;pm1Max;pm1Std;pm25Min;pm25Avg;pm25Max;pm25Std;pm10Min;pm10Avg;pm10Max;pm10Std;constructor(e){this.datetime=i.toDate(e.datetime),this.timestamp=i.toDate(e.timestamp),this.fileDateTime=e.file_datetime?i.toDate(e.file_datetime):null,this.aggregationStart=e.aggregation_start?i.toDate(e.aggregation_start):null,this.aggregationEnd=e.aggregation_end?i.toDate(e.aggregation_end):null,this.filename=e.filename??"",this.sensorId=e.sensor_id??"",this.atmosphericPressureMin=e.atmospheric_pressure_min??0,this.atmosphericPressureAvg=e.atmospheric_pressure_avg??0,this.atmosphericPressureMax=e.atmospheric_pressure_max??0,this.atmosphericPressureStd=e.atmospheric_pressure_std??0,this.batteryLevelMin=e.battery_level_min??0,this.batteryLevelAvg=e.battery_level_avg??0,this.batteryLevelMax=e.battery_level_max??0,this.batteryLevelStd=e.battery_level_std??0,this.insideTempMin=e.inside_temp_min??0,this.insideTempAvg=e.inside_temp_avg??0,this.insideTempMax=e.inside_temp_max??0,this.insideTempStd=e.inside_temp_std??0,this.pm1Min=e.pm1_min??0,this.pm1Avg=e.pm1_avg??0,this.pm1Max=e.pm1_max??0,this.pm1Std=e.pm1_std??0,this.pm25Min=e.pm25_min??0,this.pm25Avg=e.pm25_avg??0,this.pm25Max=e.pm25_max??0,this.pm25Std=e.pm25_std??0,this.pm10Min=e.pm10_min??0,this.pm10Avg=e.pm10_avg??0,this.pm10Max=e.pm10_max??0,this.pm10Std=e.pm10_std??0}static fromFirestore(e){return new i(e)}static toDate(e){if(e instanceof Date)return e;if(typeof e=="string")return new Date(e);if(!e)return new Date(0);if(e instanceof r)return e.toDate();if(typeof e=="object"&&e!==null){const t=e;if(typeof t.toDate=="function"){const m=t.toDate;return m()}if(typeof t.seconds=="number"&&typeof t.nanoseconds=="number")return new Date(t.seconds*1e3+Math.floor(t.nanoseconds/1e6));if(typeof t._seconds=="number"&&typeof t._nanoseconds=="number")return new Date(t._seconds*1e3+Math.floor(t._nanoseconds/1e6))}const s=Number(e);return Number.isNaN(s)?new Date(String(e)):new Date(s)}toString(){return`Record(datetime: ${this.datetime.toISOString()}, sensor: ${this.sensorId}, presAtm: ${this.atmosphericPressureAvg}hPa, temp: ${this.insideTempAvg}°C, PM2.5: ${this.pm25Avg}μg/m³, PM10: ${this.pm10Avg}μg/m³)`}static COLLECTION_NAME="records";static DAILY_COLLECTION_NAME="daily_records";static FIELDS={datetime:"datetime",fileDateTime:"file_datetime",aggregationStart:"aggregation_start",aggregationEnd:"aggregation_end",filename:"filename",sensorId:"sensor_id",atmosphericPressureMin:"atmospheric_pressure_min",atmosphericPressureAvg:"atmospheric_pressure_avg",atmosphericPressureMax:"atmospheric_pressure_max",atmosphericPressureStd:"atmospheric_pressure_std",batteryLevelMin:"battery_level_min",batteryLevelAvg:"battery_level_avg",batteryLevelMax:"battery_level_max",batteryLevelStd:"battery_level_std",insideTempMin:"inside_temp_min",insideTempAvg:"inside_temp_avg",insideTempMax:"inside_temp_max",insideTempStd:"inside_temp_std",pm1Min:"pm1_min",pm1Avg:"pm1_avg",pm1Max:"pm1_max",pm1Std:"pm1_std",pm25Min:"pm25_min",pm25Avg:"pm25_avg",pm25Max:"pm25_max",pm25Std:"pm25_std",pm10Min:"pm10_min",pm10Avg:"pm10_avg",pm10Max:"pm10_max",pm10Std:"pm10_std",timestamp:"timestamp"}}export{i as R};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.