const _0x160929=_0x53a5;(function(_0x14e4d7,_0x4b2248){const _0x1d0daf=_0x53a5,_0x4c622a=_0x14e4d7();while(!![]){try{const _0x22f39b=-parseInt(_0x1d0daf(0x3dd))/0x1+-parseInt(_0x1d0daf(0xc34))/0x2+parseInt(_0x1d0daf(0x69f))/0x3*(parseInt(_0x1d0daf(0x705))/0x4)+parseInt(_0x1d0daf(0x7a4))/0x5*(-parseInt(_0x1d0daf(0xd2e))/0x6)+parseInt(_0x1d0daf(0x579))/0x7*(parseInt(_0x1d0daf(0x2ee))/0x8)+parseInt(_0x1d0daf(0xe14))/0x9+-parseInt(_0x1d0daf(0x595))/0xa;if(_0x22f39b===_0x4b2248)break;else _0x4c622a['push'](_0x4c622a['shift']());}catch(_0x2a17a0){_0x4c622a['push'](_0x4c622a['shift']());}}}(_0x3ef4,0x566c6));const VERSION=_0x160929(0x847),INTERVAL_PICKER_OPTIONS=Object[_0x160929(0x77b)]([{'hours':0x1,'label':'1H'},{'hours':0x2,'label':'2H'},{'hours':0x4,'label':'4H'},{'hours':0x8,'label':'8H'},{'hours':0xc,'label':_0x160929(0x50c)},{'hours':0x18,'label':_0x160929(0x1da)},{'hours':0x48,'label':'3D'},{'hours':0xa8,'label':'7D'},{'hours':0x150,'label':'14D'},{'hours':0x2d0,'label':_0x160929(0x871)},{'hours':0x870,'label':'90D'},{'hours':0x10e0,'label':'6M'},{'hours':0x2238,'label':'1Y'}]),INTERVAL_PICKER_DEFAULT_LABELS=Object['freeze'](['1H','2H','4H','8H',_0x160929(0x50c),_0x160929(0x1da),'7D']),DATE_PICKER_VALID_MODES=Object[_0x160929(0x77b)](['day',_0x160929(0x26d),_0x160929(0x4e2),_0x160929(0x4f9)]),DATE_PICKER_RELATIVE_MODES=Object[_0x160929(0x77b)]({'last_24h':{'hours':0x18,'label':_0x160929(0xa10),'btn':_0x160929(0x1da)},'last_3d':{'days':0x3,'label':_0x160929(0xb7b),'btn':'3D'},'last_7d':{'days':0x7,'label':_0x160929(0x528),'btn':'7D'},'last_15d':{'days':0xf,'label':_0x160929(0xdaf),'btn':'15D'},'last_30d':{'days':0x1e,'label':'Last\x2030\x20days','btn':'30D'},'last_90d':{'days':0x5a,'label':'Last\x2090\x20days','btn':_0x160929(0xbf4)},'last_180d':{'days':0xb4,'label':_0x160929(0x615),'btn':'180D'},'last_12m':{'months':0xc,'label':'Last\x2012\x20months','btn':_0x160929(0x7f0)}}),LIVE_FLUSH_DEBOUNCE_MS=0x3e8,LIVE_SLIDE_INTERVAL_MS=0x7530,CARD_DEFAULTS=Object['freeze']({'card_header':'','card_icon':null,'card_icon_color':null,'card_icon_image':null,'card_header_size':null,'card_background_color':null,'card_shadow':!![],'card_border':!![],'card_padding':null,'card_border_radius':null,'card_border_color':null,'card_border_width':null,'card_background_image':null,'card_background_blur':null,'card_header_color':null,'card_header_weight':null,'card_header_letter_spacing':null,'card_icon_size':null,'card_icon_position':_0x160929(0xa36),'align_header':_0x160929(0xa36),'chart_mode':_0x160929(0xa73),'chart_align':'center','sparkline':![],'height':0x96,'animate_graph':![],'brush_zoom':!![],'drill_down':![],'stacked':![],'enable_zoom':!![],'hours_to_show':0x18,'points_per_hour':0x2,'auto_scale_points':![],'group_by':_0x160929(0x6e0),'time_zone':'auto','language':_0x160929(0x959),'update_interval':null,'cache':!![],'graph_start':null,'graph_start_hour':null,'graph_end_hour':null,'show_full_period':![],'max_visible_interval':null,'extended_window_multiplier':null,'scroll_mode':_0x160929(0x920),'show_grid':!![],'show_cell_values':!![],'show_tooltip':!![],'show_tooltip_total':!![],'tooltip_stacked_total':!![],'show_x_axis':!![],'show_y_axis':!![],'show_y2_axis':![],'show_x_ticks':![],'show_y_ticks':![],'logarithmic':![],'lower_bound':null,'upper_bound':null,'lower_bound_secondary':null,'upper_bound_secondary':null,'min_bound_range':null,'min_bound_range_secondary':null,'y_axis_ticks':null,'y_axis_decimals':null,'y_axis_number_format':_0x160929(0xbd5),'y_axis_round_ticks':!![],'y_axis_label':null,'y2_axis_label':null,'show_y_axis_label':![],'y_axis_font_size':null,'y_axis_font_opacity':null,'y_axis_color':null,'x_axis_font_size':null,'x_axis_font_opacity':null,'x_axis_color':null,'x_axis_date_color':null,'x_axis_interval':null,'datetime_format':_0x160929(0xbd5),'x_axis_datetime_format':null,'x_grid_color':null,'x_grid_width':null,'x_grid_style':null,'x_grid_opacity':0.15,'y_grid_color':null,'y_grid_width':null,'y_grid_style':null,'y_grid_opacity':0.15,'bar_spacing':0x4,'period_highlight':![],'period_highlight_color':null,'state_timeline_corner_radius':0x3,'state_timeline_show_labels':!![],'state_timeline_label_font_size':null,'show_export':![],'pie_style':_0x160929(0x797),'pie_spacing':0x0,'pie_3d':![],'pie_label_font_size':null,'pie_label_color':null,'pie_label_format':_0x160929(0xe91),'pie_center_font_size':null,'pie_center_color':null,'show_legend':![],'legend_position':'center','show_interval_picker':![],'interval_picker_position':_0x160929(0xa36),'show_attribute_list':![],'attribute_list_position':'left','show_pph_picker':![],'pph_picker_position':_0x160929(0xa36),'show_group_by_picker':![],'group_by_picker_position':_0x160929(0xa36),'pph_picker_group':null,'group_by_picker_group':null,'show_date_picker':![],'date_picker_position':_0x160929(0x70d),'date_picker_nav_position':_0x160929(0xa36),'date_picker_shortcuts_position':_0x160929(0x785),'auto_hide_entities':![],'y_axis_format':'','y2_axis_format':'','duration_unit':'s','date_picker_group':null,'interval_picker_group':null,'date_picker_step':0x1,'date_picker_default_mode':null,'tooltip_sync':![],'tooltip_sync_group':null,'zoom_sync':![],'zoom_sync_group':null,'scroll_sync':![],'scroll_sync_group':null,'energy_date_sync':![],'include_area_names':![],'include_attribute_name':![],'use_only_attribute_name':![],'state_map':null,'state_layout':_0x160929(0x8ee),'annotations':[],'show_now_line':!![],'now_line_color':null,'now_line_opacity':null,'now_line_width':null,'now_line_style':null}),ENTITY_DEFAULTS=Object[_0x160929(0x77b)]({'enabled':!![],'entity':'','statistic_id':null,'name':null,'icon':null,'icon_color':null,'color':null,'graph_type':_0x160929(0xa0b),'y_axis':_0x160929(0x24a),'line_width':2.5,'line_style':'solid','smooth':!![],'show_line':!![],'show_fill':!![],'show_range_band':![],'gradient':!![],'fill_opacity':null,'show_points':![],'point_size':null,'show_data_labels':![],'show_color_dot':!![],'point_colors':null,'stack_group':null,'invert':![],'attribute':null,'points_per_hour':null,'aggregate_func':_0x160929(0x44f),'compare':null,'damp_reset_boundary':!![],'change_ignore_zero':![],'price_entity':null,'price_attribute':null,'ref_entity':null,'ref_attribute':null,'ref_op':null,'value_factor':0x0,'value_transform':null,'fixed_value':![],'offset':0x0,'forecast_horizon':null,'state_map':null,'lower_bound':null,'upper_bound':null,'rise_fall_colors':null,'moving_averages':null,'color_thresholds':null,'state_adaptive_color':![],'state_color':null,'show_extrema':'click','extrema_show_timestamp':!![],'show_extrema_min':!![],'show_extrema_max':!![],'extrema_color':null,'extrema_font_size':null,'extrema_bg_color':null,'extrema_bg_opacity':null,'show_average':![],'break_on_null':![],'carry_forward_ms':null,'show_state':!![],'show_state_last':![],'primary_state_as':null,'show_timestamp':![],'show_range_values':![],'name_position':null,'show_graph':!![],'auto_hide':undefined,'show_in_legend':![],'legend_stats':[_0x160929(0xc2f),_0x160929(0x44f),'max'],'decimals':0x1,'number_format':_0x160929(0xbd5),'align_state':_0x160929(0xa36),'trend_period_hours':0x1,'show_trend_icon':!![],'trend_up_color':null,'trend_down_color':null,'trend_stable_color':null,'name_size':null,'icon_size':null,'state_size':null,'trend_icon_size':null,'tap_action':null}),TEMPLATABLE_BOOL_CARD_KEYS=Object[_0x160929(0x77b)]([_0x160929(0x505),_0x160929(0xcfd),'show_cell_values',_0x160929(0x4ec),_0x160929(0xb22),_0x160929(0xb09),'show_now_line','show_x_axis','show_y_axis',_0x160929(0x2b1),_0x160929(0x691),_0x160929(0x833),_0x160929(0x937),_0x160929(0xda9),_0x160929(0xea6),'logarithmic',_0x160929(0x522),_0x160929(0x7ab)]),TEMPLATABLE_BOOL_ENTITY_KEYS=Object[_0x160929(0x77b)]([_0x160929(0x45d),_0x160929(0xe73),_0x160929(0xe5c),_0x160929(0xc32),_0x160929(0xe5e),_0x160929(0x964),_0x160929(0xdd4),_0x160929(0xb32),'show_data_labels','show_average',_0x160929(0xd5e),_0x160929(0xd6c),_0x160929(0x1c7),_0x160929(0xde5),_0x160929(0x5c8),_0x160929(0x9e1),'extrema_show_timestamp',_0x160929(0x287)]),CHART_MODES=Object[_0x160929(0x77b)](['timeline','state_timeline',_0x160929(0x1eb),_0x160929(0xc35),'ranking',_0x160929(0xa0e),_0x160929(0x57d),_0x160929(0x621),_0x160929(0xc48),'calendar',_0x160929(0x1c2),_0x160929(0x92a),_0x160929(0x4d7),'histogram']),MODE_SETS=((()=>{const _0x1f1995=_0x160929,_0x1d26bc=_0x1f1995(0xa73),_0x35a026=_0x1f1995(0x93e),_0x21a531='scatter',_0x4e7676=_0x1f1995(0xc35),_0x585de9=_0x1f1995(0xcca),_0x23126e='radialbar',_0x1c8f1f='polararea',_0x175377='radar',_0x309f8e=_0x1f1995(0xc48),_0xd4987d='calendar',_0x423a0a='gauge',_0x28b457=_0x1f1995(0x4d7),_0x5a162b=_0x1f1995(0x356);return{'TL':[_0x1d26bc],'NO_STL':CHART_MODES[_0x1f1995(0x272)](_0x575dbc=>_0x575dbc!==_0x35a026),'TL_STL':[_0x1d26bc,_0x35a026],'TL_SC':[_0x1d26bc,_0x21a531],'TL_SC_RD':[_0x1d26bc,_0x21a531,_0x175377],'TL_RD':[_0x1d26bc,_0x175377],'GA':[_0x423a0a],'PI':[_0x4e7676],'RK':[_0x585de9],'STL':[_0x35a026],'BOUNDS':[_0x1d26bc,_0x21a531,_0x23126e,_0x175377,_0x309f8e,_0xd4987d,_0x423a0a],'GRADIENT':[_0x1d26bc,_0x585de9,_0x175377,_0x423a0a],'TOOLTIP_NAME':[_0x1d26bc,_0x4e7676,_0x585de9,_0x23126e,_0x1c8f1f,_0x175377,_0x423a0a],'X_AXIS':[_0x1d26bc,_0x35a026,_0x21a531,_0x309f8e,_0xd4987d],'TOTAL':[_0x1d26bc,_0x4e7676,_0x585de9,_0x23126e,_0x1c8f1f,_0x28b457,_0x5a162b]};})()),EDITOR_MODE_MATRIX=((()=>{const _0x3edbca=_0x160929,_0x483e62=MODE_SETS;return Object[_0x3edbca(0x77b)]({'entity':Object[_0x3edbca(0x77b)]({'line_style':_0x483e62['TL'],'smooth':_0x483e62['TL'],'show_data_labels':_0x483e62['TL'],'show_average':_0x483e62['TL'],'moving_averages':_0x483e62['TL'],'stack_group':_0x483e62['TL'],'rise_fall_colors':_0x483e62['TL'],'line_width':_0x483e62[_0x3edbca(0xd8b)],'show_line':_0x483e62['TL_RD'],'show_fill':_0x483e62[_0x3edbca(0xd8b)],'show_points':_0x483e62[_0x3edbca(0xc53)],'point_size':_0x483e62[_0x3edbca(0xc53)],'point_colors':_0x483e62[_0x3edbca(0xc53)],'show_extrema':_0x483e62['TL_SC'],'show_extrema_min':_0x483e62['TL_SC'],'show_extrema_max':_0x483e62[_0x3edbca(0x869)],'extrema_show_timestamp':_0x483e62[_0x3edbca(0x869)],'extrema_color':_0x483e62['TL_SC'],'extrema_font_size':_0x483e62['TL_SC'],'extrema_bg_color':_0x483e62[_0x3edbca(0x869)],'extrema_bg_opacity':_0x483e62['TL_SC'],'lower_bound':_0x483e62['BOUNDS'],'upper_bound':_0x483e62[_0x3edbca(0x98d)],'gradient':_0x483e62[_0x3edbca(0xc7c)],'fill_opacity':_0x483e62[_0x3edbca(0xc7c)],'tooltip_name':_0x483e62[_0x3edbca(0x229)],'needle_color':_0x483e62['GA'],'show_trend_icon':_0x483e62[_0x3edbca(0xd67)],'trend_period_hours':_0x483e62[_0x3edbca(0xd67)],'trend_icon_size':_0x483e62[_0x3edbca(0xd67)],'trend_up_color':_0x483e62[_0x3edbca(0xd67)],'trend_down_color':_0x483e62['NO_STL'],'trend_stable_color':_0x483e62['NO_STL']}),'card':Object[_0x3edbca(0x77b)]({'show_now_line':_0x483e62['TL'],'now_line_color':_0x483e62['TL'],'now_line_opacity':_0x483e62['TL'],'now_line_style':_0x483e62['TL'],'now_line_width':_0x483e62['TL'],'period_highlight':_0x483e62['TL'],'period_highlight_color':_0x483e62['TL'],'lower_bound':_0x483e62['TL'],'upper_bound':_0x483e62['TL'],'lower_bound_secondary':_0x483e62['TL'],'upper_bound_secondary':_0x483e62['TL'],'min_bound_range':_0x483e62['TL'],'min_bound_range_secondary':_0x483e62['TL'],'show_y2_axis':_0x483e62['TL'],'show_x_ticks':_0x483e62['TL'],'show_y_ticks':_0x483e62['TL'],'y_axis_number_format':_0x483e62['TL'],'y_axis_round_ticks':_0x483e62['TL'],'x_axis_interval':_0x483e62['TL'],'logarithmic':_0x483e62['TL'],'stacked':_0x483e62['TL'],'bar_spacing':_0x483e62['TL'],'brush_zoom':_0x483e62['TL'],'drill_down':_0x483e62['TL'],'sparkline':_0x483e62['TL'],'extended_window_multiplier':_0x483e62['TL'],'x_grid_color':_0x483e62['TL'],'x_grid_opacity':_0x483e62['TL'],'x_grid_style':_0x483e62['TL'],'x_grid_width':_0x483e62['TL'],'y_grid_color':_0x483e62['TL'],'y_grid_opacity':_0x483e62['TL'],'y_grid_style':_0x483e62['TL'],'y_grid_width':_0x483e62['TL'],'tooltip_match_axis':_0x483e62['TL'],'tooltip_order':_0x483e62['TL'],'tooltip_stacked_total':_0x483e62['TL'],'tooltip_sync':_0x483e62['TL'],'tooltip_sync_group':_0x483e62['TL'],'show_grid':_0x483e62[_0x3edbca(0x869)],'show_x_axis':_0x483e62['TL_SC'],'show_y_axis':_0x483e62[_0x3edbca(0x869)],'y_axis_decimals':_0x483e62[_0x3edbca(0x869)],'y_axis_ticks':_0x483e62[_0x3edbca(0x869)],'zoom_sync':_0x483e62['TL_STL'],'zoom_sync_group':_0x483e62[_0x3edbca(0x9d9)],'scroll_sync':_0x483e62[_0x3edbca(0x9d9)],'scroll_sync_group':_0x483e62[_0x3edbca(0x9d9)],'x_axis_date_color':_0x483e62[_0x3edbca(0x9d9)],'x_axis_color':_0x483e62[_0x3edbca(0x1cd)],'x_axis_font_opacity':_0x483e62[_0x3edbca(0x1cd)],'x_axis_font_size':_0x483e62[_0x3edbca(0x1cd)],'pie_3d':_0x483e62['PI'],'pie_style':_0x483e62['PI'],'pie_spacing':_0x483e62['PI'],'pie_center_color':_0x483e62['PI'],'pie_center_font_size':_0x483e62['PI'],'pie_label_color':_0x483e62['PI'],'pie_label_font_size':_0x483e62['PI'],'pie_label_format':_0x483e62['PI'],'gauge_columns':_0x483e62['GA'],'gauge_span':_0x483e62['GA'],'gauge_show_minmax':_0x483e62['GA'],'gauge_value_position':_0x483e62['GA'],'gauge_value_size':_0x483e62['GA'],'ranking_min_value':_0x483e62['RK'],'chart_align':_0x483e62['RK'],'state_timeline_corner_radius':_0x483e62['STL'],'state_timeline_show_labels':_0x483e62[_0x3edbca(0x986)],'state_timeline_label_font_size':_0x483e62['STL'],'show_tooltip_total':_0x483e62[_0x3edbca(0x903)]})});})()),matrixRoot=_0x5cd6ae=>{const _0xb456e1=_0x160929,_0x39e5e5=String(_0x5cd6ae||''),_0x2de1bf=_0x39e5e5[_0xb456e1(0x764)](/[.[]/);return _0x2de1bf===-0x1?_0x39e5e5:_0x39e5e5[_0xb456e1(0x3d3)](0x0,_0x2de1bf);};function isEditorFieldRelevant(_0x52e1c5,_0x2a7670,_0x15495f){const _0x13cab6=_0x160929,_0x54e94d=EDITOR_MODE_MATRIX[_0x52e1c5];if(!_0x54e94d)return!![];const _0x450489=_0x54e94d[_0x2a7670]||_0x54e94d[matrixRoot(_0x2a7670)];if(!_0x450489)return!![];return _0x450489[_0x13cab6(0x15b)](_0x15495f||_0x13cab6(0xa73));}function cloneEntity(_0x554824,_0x3c7d01){const _0x505e3e=_0x160929,_0x4d2861=Object[_0x505e3e(0xaf0)](Object['getPrototypeOf'](_0x554824)||Object[_0x505e3e(0xd53)],Object[_0x505e3e(0x826)](_0x554824));return _0x3c7d01?Object[_0x505e3e(0xcd8)](_0x4d2861,_0x3c7d01):_0x4d2861;}const LEGEND_STATS_DEFAULT=Object['freeze']([_0x160929(0xc2f),_0x160929(0x44f),'max']);function legendStatsOf(_0x52961f){const _0x345d19=_0x160929,_0xecc581=_0x52961f?.[_0x345d19(0x6d0)];if(Array[_0x345d19(0x724)](_0xecc581))return _0xecc581[_0x345d19(0xc70)]?_0xecc581:LEGEND_STATS_DEFAULT;if(typeof _0xecc581===_0x345d19(0x19d)){const _0x2948d7=_0xecc581[_0x345d19(0x967)](/[,\s]+/)[_0x345d19(0x272)](Boolean);return _0x2948d7[_0x345d19(0xc70)]?_0x2948d7:LEGEND_STATS_DEFAULT;}return LEGEND_STATS_DEFAULT;}const isTemplateString=_0x579851=>typeof _0x579851===_0x160929(0x19d)&&(_0x579851['includes']('{{')||_0x579851['includes']('{%')),COMPARE_PERIOD_LABELS=Object[_0x160929(0x77b)]({'previous_period':_0x160929(0x1d5),'yesterday':'yesterday','last_week':_0x160929(0x2b7),'last_month':'last\x20month','last_year':_0x160929(0x40c)});function parseTemplateBool(_0x494f95,_0x305efb){const _0x5506be=_0x160929;if(_0x494f95===null||_0x494f95===undefined||_0x494f95==='')return _0x305efb;if(typeof _0x494f95==='boolean')return _0x494f95;if(typeof _0x494f95==='number')return _0x494f95!==0x0;const _0x5b74d8=String(_0x494f95)[_0x5506be(0xa2f)]()['toLowerCase']();if(_0x5b74d8===_0x5506be(0x902)||_0x5b74d8==='on'||_0x5b74d8===_0x5506be(0xfd)||_0x5b74d8==='1')return!![];if(_0x5b74d8===_0x5506be(0x312)||_0x5b74d8==='off'||_0x5b74d8==='no'||_0x5b74d8==='0'||_0x5b74d8===_0x5506be(0x897)||_0x5b74d8===_0x5506be(0x5f3)||_0x5b74d8==='unavailable')return![];const _0x315ba0=Number(_0x5b74d8);if(!Number[_0x5506be(0x259)](_0x315ba0))return _0x315ba0!==0x0;return _0x305efb;}const PALETTE=Object[_0x160929(0x77b)]([_0x160929(0x880),_0x160929(0xdf4),'#2ecc71',_0x160929(0xca4),'#9b59b6',_0x160929(0x4d9),'#e74c3c',_0x160929(0xca6),_0x160929(0xcde),_0x160929(0x58c),'#16a085','#d35400',_0x160929(0xc84),_0x160929(0x7cb),_0x160929(0xbe6),_0x160929(0xcba)]),STATE_TIMELINE_COLORS=Object[_0x160929(0x77b)]([_0x160929(0x4bd),_0x160929(0x5a2),_0x160929(0xb00),_0x160929(0xca4),'#9b59b6',_0x160929(0x4d9),'#e67e22',_0x160929(0xca6),_0x160929(0x74b),'#00bcd4']);function stateSegmentColor(_0xda08ac,_0x4b30b1,_0x58d7fd){const _0x464529=_0x160929;return _0xda08ac?.['color']||_0x4b30b1?.['color']||STATE_TIMELINE_COLORS[_0x58d7fd%STATE_TIMELINE_COLORS[_0x464529(0xc70)]];}function bandedGradient(_0x57a9f1,_0x5ef2a9=_0x160929(0x948)){const _0x237d4c=_0x160929;if(!_0x57a9f1||!_0x57a9f1[_0x237d4c(0xc70)])return null;if(_0x57a9f1['length']===0x1)return _0x57a9f1[0x0];const _0x47a117=_0x57a9f1['length'],_0x26c3db=_0x57a9f1[_0x237d4c(0x7ee)]((_0x131d79,_0x2578fd)=>_0x131d79+'\x20'+(_0x2578fd*0x64/_0x47a117)[_0x237d4c(0x62e)](0x3)+'%\x20'+((_0x2578fd+0x1)*0x64/_0x47a117)[_0x237d4c(0x62e)](0x3)+'%');return _0x237d4c(0x602)+_0x5ef2a9+',\x20'+_0x26c3db[_0x237d4c(0xc0d)](',\x20')+')';}function resolveEntityAreaName(_0x5a0f29,_0x1af481){const _0x3510b8=_0x160929;if(!_0x1af481||!_0x5a0f29)return null;const _0x3f722c=_0x5a0f29[_0x3510b8(0x197)]?.[_0x1af481];let _0xcd1a19=_0x3f722c?.[_0x3510b8(0x546)]||null;if(!_0xcd1a19&&_0x3f722c?.[_0x3510b8(0xad4)])_0xcd1a19=_0x5a0f29['devices']?.[_0x3f722c[_0x3510b8(0xad4)]]?.[_0x3510b8(0x546)]||null;if(!_0xcd1a19)return null;const _0x5a0ad7=_0x5a0f29['areas']?.[_0xcd1a19]?.[_0x3510b8(0x673)];return typeof _0x5a0ad7===_0x3510b8(0x19d)&&_0x5a0ad7[_0x3510b8(0xa2f)]()?_0x5a0ad7['trim']():null;}function attributeDisplayName(_0x3aaad1,_0x4501f9,_0x177889){const _0x54a9f4=_0x160929;if(!_0x177889)return'';const _0x3da712=_0x3aaad1?.[_0x54a9f4(0x28e)]?.[_0x4501f9];try{const _0x29082c=_0x3aaad1?.[_0x54a9f4(0x66f)];if(typeof _0x29082c==='function'&&_0x3da712){const _0x14a86d=_0x29082c[_0x54a9f4(0x17e)](_0x3aaad1,_0x3da712,_0x177889);if(_0x14a86d)return String(_0x14a86d);}}catch(_0x59e012){}return String(_0x177889)[_0x54a9f4(0x944)](/_/g,'\x20')[_0x54a9f4(0x944)](/\b\w/g,_0x1d2949=>_0x1d2949['toUpperCase']());}function applyAttributeName(_0x12a4e4,_0x47962d,_0x529f57,_0x4cc555,_0x18ca91){const _0x3a4b0a=_0x160929;if(!_0x12a4e4||_0x4cc555?.[_0x3a4b0a(0x673)]!=null)return _0x529f57;if(!_0x12a4e4[_0x3a4b0a(0x925)]&&!_0x12a4e4[_0x3a4b0a(0x672)])return _0x529f57;const _0xaf46e2=attributeDisplayName(_0x47962d,_0x4cc555[_0x3a4b0a(0xae9)],_0x18ca91);if(!_0xaf46e2)return _0x529f57;if(_0x12a4e4[_0x3a4b0a(0x672)])return _0xaf46e2;return _0x529f57?_0x529f57+_0x3a4b0a(0xb6f)+_0xaf46e2:_0xaf46e2;}function buildAreaSuffixes(_0x1777cd,_0x4dcd1b,_0xb362be,_0x595ff3){const _0x5ec51c=_0x160929,_0x32b481=_0x4dcd1b||[],_0x43baea=new Map();return _0x32b481['forEach']((_0x163d62,_0x3e0402)=>{const _0x1fde6b=_0x53a5;if(!_0x163d62||_0x163d62['_compareOf']!=null)return;if(_0x163d62[_0x1fde6b(0x673)]&&typeof _0x163d62[_0x1fde6b(0x673)]===_0x1fde6b(0x19d))return;const _0x107727=resolveEntityAreaName(_0x1777cd,_0x163d62[_0x1fde6b(0xae9)]||_0x163d62[_0x1fde6b(0x378)]);if(!_0x107727)return;const _0x526290=_0x1777cd?.[_0x1fde6b(0x28e)]?.[_0x163d62[_0x1fde6b(0xae9)]],_0x4d96e3=String(_0x526290?.['attributes']?.['friendly_name']||(_0x163d62[_0x1fde6b(0x378)]?_0xb362be?.[_0x163d62[_0x1fde6b(0x378)]]?.[_0x1fde6b(0x673)]:null)||_0x163d62[_0x1fde6b(0xae9)]||_0x163d62[_0x1fde6b(0x378)]||''),_0xd15ffd=_0x595ff3?String(_0x595ff3(_0x163d62,_0x3e0402,_0x4d96e3)??_0x4d96e3):_0x4d96e3;if(_0xd15ffd[_0x1fde6b(0x412)]()['includes'](_0x107727[_0x1fde6b(0x412)]()))return;_0x43baea[_0x1fde6b(0x22c)](_0x3e0402,'\x20·\x20'+_0x107727);}),_0x43baea[_0x5ec51c(0xcaa)]?_0x43baea:null;}let _txtMeasureCtx;function measureTextWidth(_0x1d2e2d,_0x23bae6){const _0x5e42b4=_0x160929,_0x35aa58=String(_0x1d2e2d==null?'':_0x1d2e2d);if(_txtMeasureCtx===undefined)try{_txtMeasureCtx=document[_0x5e42b4(0x5c6)](_0x5e42b4(0xa6a))['getContext']('2d')||null;}catch(_0xb0dcd2){_txtMeasureCtx=null;}if(!_txtMeasureCtx)return _0x35aa58[_0x5e42b4(0xc70)]*0x8;if(_txtMeasureCtx[_0x5e42b4(0x759)]!==_0x23bae6)_txtMeasureCtx[_0x5e42b4(0x759)]=_0x23bae6;return _txtMeasureCtx[_0x5e42b4(0x70a)](_0x35aa58)[_0x5e42b4(0xd50)];}function wrapLabelLines(_0x277d4e,_0x544578,_0x3bbc7e,_0x5816ee){const _0x5884f3=_0x160929,_0x34eb0d=String(_0x277d4e==null?'':_0x277d4e)['trim']();if(!_0x34eb0d||_0x544578<=0x0)return{'lines':[],'truncated':![]};const _0x2f1794=_0xdcc365=>measureTextWidth(_0xdcc365,_0x5816ee),_0x59da4d=[];let _0x2f3d86='';const _0x325723=_0xf2a046=>{const _0x13d305=_0x53a5;let _0x14b445=_0xf2a046;while(_0x2f1794(_0x14b445)>_0x544578){let _0x4c8e0f=_0x14b445[_0x13d305(0xc70)]-0x1;while(_0x4c8e0f>0x1&&_0x2f1794(_0x14b445[_0x13d305(0x3d3)](0x0,_0x4c8e0f))>_0x544578)_0x4c8e0f--;_0x59da4d['push'](_0x14b445[_0x13d305(0x3d3)](0x0,_0x4c8e0f)),_0x14b445=_0x14b445[_0x13d305(0x3d3)](_0x4c8e0f);}return _0x14b445;};for(let _0x397320 of _0x34eb0d[_0x5884f3(0x967)](/\s+/)){if(_0x2f1794(_0x397320)>_0x544578){_0x2f3d86&&(_0x59da4d[_0x5884f3(0xd65)](_0x2f3d86),_0x2f3d86='');_0x2f3d86=_0x325723(_0x397320);continue;}if(!_0x2f3d86)_0x2f3d86=_0x397320;else{if(_0x2f1794(_0x2f3d86+'\x20'+_0x397320)<=_0x544578)_0x2f3d86+='\x20'+_0x397320;else _0x59da4d['push'](_0x2f3d86),_0x2f3d86=_0x397320;}}if(_0x2f3d86)_0x59da4d[_0x5884f3(0xd65)](_0x2f3d86);if(_0x59da4d['length']<=_0x3bbc7e)return{'lines':_0x59da4d,'truncated':![]};const _0x590d4b=_0x59da4d['slice'](0x0,_0x3bbc7e);let _0x1bb459=_0x590d4b[_0x3bbc7e-0x1];while(_0x1bb459[_0x5884f3(0xc70)]>0x1&&_0x2f1794(_0x1bb459+'…')>_0x544578)_0x1bb459=_0x1bb459[_0x5884f3(0x3d3)](0x0,-0x1);return _0x590d4b[_0x3bbc7e-0x1]=_0x1bb459+'…',{'lines':_0x590d4b,'truncated':!![]};}function pickName(_0x585bdd,_0x13c1a2,_0x1830c6){const _0x4dedeb=_0x160929,_0x118666=typeof _0x585bdd===_0x4dedeb(0x19d)&&(_0x585bdd[_0x4dedeb(0x15b)]('{{')||_0x585bdd[_0x4dedeb(0x15b)]('{%'));if(_0x118666)return _0x13c1a2!==undefined&&_0x13c1a2!==null&&_0x13c1a2!==''?_0x13c1a2:_0x1830c6?.[_0x4dedeb(0xdb6)]??undefined;if(_0x585bdd!==undefined&&_0x585bdd!==null)return _0x585bdd;return _0x1830c6?.[_0x4dedeb(0xdb6)]??undefined;}function normalizeTemplateResult(_0x499b43){const _0x3fbe0c=_0x160929;if(_0x499b43===null||_0x499b43===undefined)return'';const _0x2a50a7=typeof _0x499b43===_0x3fbe0c(0x19d)?_0x499b43:String(_0x499b43);return _0x2a50a7[_0x3fbe0c(0xa2f)]();}const isNum=_0x8de8d=>typeof _0x8de8d===_0x160929(0x481)&&Number['isFinite'](_0x8de8d),clamp=(_0x33cec7,_0x1889bb,_0x12e14b)=>Math[_0x160929(0xa08)](_0x1889bb,Math['min'](_0x12e14b,_0x33cec7)),toNum=_0x394717=>{const _0xf4a33d=_0x160929;if(_0x394717===null||_0x394717===undefined||_0x394717==='')return null;const _0x215bf3=typeof _0x394717===_0xf4a33d(0x481)?_0x394717:parseFloat(_0x394717);return Number[_0xf4a33d(0x46b)](_0x215bf3)?_0x215bf3:null;};function resolveOffsetHours(_0x44d96a,_0x4adf3c){const _0x135be7=_0x160929;if(_0x44d96a===null||_0x44d96a===undefined||_0x44d96a==='')return 0x0;if(typeof _0x44d96a===_0x135be7(0x481))return Number[_0x135be7(0x46b)](_0x44d96a)?_0x44d96a:0x0;const _0x5389ad=String(_0x44d96a)['trim']();if(_0x5389ad==='')return 0x0;const _0x11668a=parseFloat(_0x5389ad);if(!isNaN(_0x11668a)&&/^-?[\d.]+$/[_0x135be7(0x2e2)](_0x5389ad))return _0x11668a;const _0x1880f0=_0x4adf3c?.[_0x135be7(0x28e)]?.[_0x5389ad];if(_0x1880f0){const _0x16f90b=parseFloat(_0x1880f0[_0x135be7(0x89b)]);return Number[_0x135be7(0x46b)](_0x16f90b)?_0x16f90b:0x0;}return 0x0;}const _tzFmtCache=new Map(),_tzOffIntervals=new Map();function _tzOffAt(_0x2c7b25,_0x36a255){const _0x535a50=_0x160929,_0x3fae2c={};for(const _0x38caf8 of _tzFmt(_0x36a255)['formatToParts'](_0x2c7b25))_0x3fae2c[_0x38caf8[_0x535a50(0xc4e)]]=_0x38caf8[_0x535a50(0xe91)];const _0x52712c=Math[_0x535a50(0x604)](_0x2c7b25/0x3e8)%0x3c,_0x302e74=_0x2c7b25-_0x2c7b25%0x3e8;return Math[_0x535a50(0x1f5)]((Date[_0x535a50(0xdfa)](+_0x3fae2c[_0x535a50(0x4f9)],+_0x3fae2c['month']-0x1,+_0x3fae2c['day'],_0x3fae2c[_0x535a50(0x715)]==='24'?0x0:+_0x3fae2c['hour'],+_0x3fae2c[_0x535a50(0xc13)],_0x52712c)-_0x302e74)/0xea60);}function _tzOffsetFor(_0x17b82d,_0x445691){const _0x398cef=_0x160929;let _0x21f869=_tzOffIntervals[_0x398cef(0x1a9)](_0x445691);!_0x21f869&&(_0x21f869=[],_tzOffIntervals['set'](_0x445691,_0x21f869));let _0x4a89b9=0x0,_0x432236=_0x21f869[_0x398cef(0xc70)]-0x1;while(_0x4a89b9<=_0x432236){const _0x24b640=_0x4a89b9+_0x432236>>0x1,_0x2ed923=_0x21f869[_0x24b640];if(_0x17b82d<_0x2ed923['s'])_0x432236=_0x24b640-0x1;else{if(_0x17b82d>_0x2ed923['e'])_0x4a89b9=_0x24b640+0x1;else return _0x2ed923[_0x398cef(0x887)];}}const _0x4a1bf9=_tzOffAt(_0x17b82d,_0x445691),_0x49b27a=0x240c8400,_0x34f330=0x10;let _0x1b65d2=_0x17b82d,_0x218753=_0x17b82d;for(let _0x39a6bc=0x0;_0x39a6bc<_0x34f330;_0x39a6bc++){let _0x37c8dc=_0x1b65d2-_0x49b27a,_0x1338d2=![];_0x4a89b9>0x0&&_0x37c8dc<=_0x21f869[_0x4a89b9-0x1]['e']&&(_0x37c8dc=_0x21f869[_0x4a89b9-0x1]['e']+0x1,_0x1338d2=!![]);if(_0x37c8dc>=_0x1b65d2)break;if(_tzOffAt(_0x37c8dc,_0x445691)===_0x4a1bf9){_0x1b65d2=_0x37c8dc;if(_0x1338d2)break;continue;}let _0x4bd8f8=_0x37c8dc,_0xabb39c=_0x1b65d2;while(_0xabb39c-_0x4bd8f8>0x1){const _0x518af6=_0x4bd8f8+Math[_0x398cef(0x604)]((_0xabb39c-_0x4bd8f8)/0x2);if(_tzOffAt(_0x518af6,_0x445691)===_0x4a1bf9)_0xabb39c=_0x518af6;else _0x4bd8f8=_0x518af6;}_0x1b65d2=_0xabb39c;break;}for(let _0x8d6b56=0x0;_0x8d6b56<_0x34f330;_0x8d6b56++){let _0x45e243=_0x218753+_0x49b27a,_0xfb5029=![];_0x4a89b9<_0x21f869[_0x398cef(0xc70)]&&_0x45e243>=_0x21f869[_0x4a89b9]['s']&&(_0x45e243=_0x21f869[_0x4a89b9]['s']-0x1,_0xfb5029=!![]);if(_0x45e243<=_0x218753)break;if(_tzOffAt(_0x45e243,_0x445691)===_0x4a1bf9){_0x218753=_0x45e243;if(_0xfb5029)break;continue;}let _0x4c219e=_0x218753,_0x393d0e=_0x45e243;while(_0x393d0e-_0x4c219e>0x1){const _0x3d3ab3=_0x4c219e+Math[_0x398cef(0x604)]((_0x393d0e-_0x4c219e)/0x2);if(_tzOffAt(_0x3d3ab3,_0x445691)===_0x4a1bf9)_0x4c219e=_0x3d3ab3;else _0x393d0e=_0x3d3ab3;}_0x218753=_0x4c219e;break;}if(_0x1b65d2>_0x17b82d)_0x1b65d2=_0x17b82d;if(_0x218753<_0x17b82d)_0x218753=_0x17b82d;const _0x568694=_0x4a89b9>0x0?_0x21f869[_0x4a89b9-0x1]:null,_0x4874a6=_0x4a89b9<_0x21f869[_0x398cef(0xc70)]?_0x21f869[_0x4a89b9]:null;if(_0x568694&&_0x568694[_0x398cef(0x887)]===_0x4a1bf9&&_0x1b65d2<=_0x568694['e']+0x1){if(_0x218753>_0x568694['e'])_0x568694['e']=_0x218753;if(_0x4874a6&&_0x4874a6[_0x398cef(0x887)]===_0x4a1bf9&&_0x568694['e']>=_0x4874a6['s']-0x1){if(_0x4874a6['e']>_0x568694['e'])_0x568694['e']=_0x4874a6['e'];_0x21f869[_0x398cef(0xd59)](_0x4a89b9,0x1);}return _0x4a1bf9;}if(_0x4874a6&&_0x4874a6[_0x398cef(0x887)]===_0x4a1bf9&&_0x218753>=_0x4874a6['s']-0x1){if(_0x1b65d2<_0x4874a6['s'])_0x4874a6['s']=_0x1b65d2;return _0x4a1bf9;}_0x21f869['splice'](_0x4a89b9,0x0,{'s':_0x1b65d2,'e':_0x218753,'off':_0x4a1bf9});if(_0x21f869['length']>0x190)_0x21f869['splice'](0x0,_0x21f869['length']-0x190);return _0x4a1bf9;}function _tzFmt(_0x26eee5){const _0x26da6a=_0x160929;let _0x154289=_tzFmtCache[_0x26da6a(0x1a9)](_0x26eee5);return!_0x154289&&(_0x154289=new Intl[(_0x26da6a(0xa4f))](_0x26da6a(0xa3e),{'timeZone':_0x26eee5,'hour12':![],'year':_0x26da6a(0xae3),'month':_0x26da6a(0x819),'day':_0x26da6a(0x819),'hour':_0x26da6a(0x819),'minute':_0x26da6a(0x819),'second':_0x26da6a(0x819),'weekday':_0x26da6a(0x577)}),_tzFmtCache[_0x26da6a(0x22c)](_0x26eee5,_0x154289)),_0x154289;}function tzParts(_0x3e402b,_0x14a353){const _0x22e50e=_0x160929;if(!_0x14a353){const _0x105dd6=new Date(_0x3e402b);return{'y':_0x105dd6[_0x22e50e(0x237)](),'mo':_0x105dd6[_0x22e50e(0xb7c)](),'d':_0x105dd6[_0x22e50e(0x484)](),'h':_0x105dd6[_0x22e50e(0x9c3)](),'mi':_0x105dd6[_0x22e50e(0x922)](),'wd':_0x105dd6[_0x22e50e(0x2bd)]()||0x7};}try{const _0x46f02c=_tzOffsetFor(_0x3e402b,_0x14a353),_0x18585f=new Date(_0x3e402b+_0x46f02c*0xea60);return{'y':_0x18585f[_0x22e50e(0xea5)](),'mo':_0x18585f[_0x22e50e(0x893)](),'d':_0x18585f[_0x22e50e(0xde6)](),'h':_0x18585f['getUTCHours'](),'mi':_0x18585f[_0x22e50e(0xa13)](),'wd':_0x18585f[_0x22e50e(0xe2d)]()||0x7};}catch(_0x2f9d36){const _0x15066e=new Date(_0x3e402b);return{'y':_0x15066e[_0x22e50e(0x237)](),'mo':_0x15066e[_0x22e50e(0xb7c)](),'d':_0x15066e[_0x22e50e(0x484)](),'h':_0x15066e[_0x22e50e(0x9c3)](),'mi':_0x15066e[_0x22e50e(0x922)](),'wd':_0x15066e[_0x22e50e(0x2bd)]()||0x7};}}function zonedWallToMs(_0x414d7b,_0x5cdf97,_0x3ded6e,_0x7ef3ae,_0x471f2f,_0x5ca694,_0x51496f){const _0xa7a25=_0x160929;if(!_0x51496f)return new Date(_0x414d7b,_0x5cdf97,_0x3ded6e,_0x7ef3ae,_0x471f2f,_0x5ca694)[_0xa7a25(0x910)]();const _0x3ef2d4=Date[_0xa7a25(0xdfa)](_0x414d7b,_0x5cdf97,_0x3ded6e,_0x7ef3ae,_0x471f2f,_0x5ca694),_0xd31551=tzParts(_0x3ef2d4,_0x51496f),_0x389277=Date[_0xa7a25(0xdfa)](_0xd31551['y'],_0xd31551['mo'],_0xd31551['d'],_0xd31551['h'],_0xd31551['mi'],_0x5ca694);return _0x3ef2d4-(_0x389277-_0x3ef2d4);}function tzStartOfDayMs(_0x30d5f6,_0x572917){const _0x324573=tzParts(_0x30d5f6,_0x572917);return zonedWallToMs(_0x324573['y'],_0x324573['mo'],_0x324573['d'],0x0,0x0,0x0,_0x572917);}const _FIRST_WD_NAMES=Object[_0x160929(0x77b)]({'monday':0x1,'tuesday':0x2,'wednesday':0x3,'thursday':0x4,'friday':0x5,'saturday':0x6,'sunday':0x7});function resolveFirstWeekday(_0x10bcd2){const _0x230935=_0x160929,_0x19317f=_0x10bcd2?.[_0x230935(0x1e5)]?.[_0x230935(0x101)];if(_0x19317f&&Object[_0x230935(0xd53)][_0x230935(0x424)][_0x230935(0x17e)](_FIRST_WD_NAMES,_0x19317f))return _FIRST_WD_NAMES[_0x19317f];try{const _0x5a20e2=_0x10bcd2?.[_0x230935(0x1e5)]?.[_0x230935(0x6ff)]||_0x10bcd2?.[_0x230935(0x6ff)]||'en',_0x539a2c=new Intl['Locale'](_0x5a20e2),_0x52f53c=typeof _0x539a2c[_0x230935(0x2ed)]===_0x230935(0xc89)?_0x539a2c[_0x230935(0x2ed)]():_0x539a2c['weekInfo'],_0x42c642=_0x52f53c?.[_0x230935(0x60b)];if(typeof _0x42c642===_0x230935(0x481)&&_0x42c642>=0x1&&_0x42c642<=0x7)return _0x42c642;}catch{}return 0x1;}const weekStartOffsetDays=(_0x5aed4f,_0x19671d)=>(_0x5aed4f-_0x19671d+0x7)%0x7,_tzInvalidWarned=new Set();function isValidTimeZone(_0x2d5282){const _0x347029=_0x160929;try{return new Intl[(_0x347029(0xa4f))]('en',{'timeZone':_0x2d5282}),!![];}catch{return![];}}function resolveDisplayTimeZone(_0x4cdc7e,_0x37a26e){const _0xd6c1df=_0x160929,_0xcdaa42=String(_0x37a26e?.[_0xd6c1df(0x345)]??_0xd6c1df(0x959))[_0xd6c1df(0xa2f)]();let _0x127b68=null;if(_0xcdaa42===''||_0xcdaa42===_0xd6c1df(0xd09))return null;if(_0xcdaa42===_0xd6c1df(0xb2d))_0x127b68=_0x4cdc7e?.[_0xd6c1df(0x639)]?.[_0xd6c1df(0x345)]||null;else _0xcdaa42===_0xd6c1df(0x959)?_0x127b68=_0x4cdc7e?.[_0xd6c1df(0x1e5)]?.[_0xd6c1df(0x345)]===_0xd6c1df(0xb2d)?_0x4cdc7e?.[_0xd6c1df(0x639)]?.[_0xd6c1df(0x345)]||null:null:_0x127b68=_0xcdaa42;if(!_0x127b68)return null;if(!isValidTimeZone(_0x127b68))return!_tzInvalidWarned[_0xd6c1df(0x9b5)](_0x127b68)&&(_tzInvalidWarned['add'](_0x127b68),console[_0xd6c1df(0x289)]('[statistics-graph-chart-card]\x20Invalid\x20time_zone\x20\x22'+_0x127b68+_0xd6c1df(0xaa0))),null;try{const _0x38cc8b=Intl[_0xd6c1df(0xa4f)]()[_0xd6c1df(0x50a)]()[_0xd6c1df(0x64a)];if(_0x38cc8b&&_0x38cc8b===_0x127b68)return null;}catch{}return _0x127b68;}function _0x53a5(_0x43aefb,_0x5c6362){_0x43aefb=_0x43aefb-0xf7;const _0x3ef436=_0x3ef4();let _0x53a589=_0x3ef436[_0x43aefb];return _0x53a589;}const LANG_NAMES={'en':_0x160929(0x418),'cs':_0x160929(0x1f6),'da':_0x160929(0x956),'de':_0x160929(0x209),'es':_0x160929(0x51a),'fi':_0x160929(0xa62),'fr':_0x160929(0x13e),'it':'Italiano','nl':_0x160929(0x464),'nb':_0x160929(0xab0),'pl':_0x160929(0xa28),'pt':_0x160929(0x870),'ru':'Русский','sv':'Svenska','tr':_0x160929(0x558),'zh':'中文'},I18N={'en':{}},_sgcLiveCards=new Set(),_langLoads=new Map();let _legacyI18nLoad=null,_i18nVersionWarned=![];function _sgcI18nRerender(){const _0x49ae9b=_0x160929;for(const _0x53dc3f of _sgcLiveCards){try{_0x53dc3f[_0x49ae9b(0x1ba)]='',_0x53dc3f[_0x49ae9b(0xb53)]?.();}catch{}}}function _warnI18nVersion(_0xacf4a8){const _0x369b56=_0x160929;if(_i18nVersionWarned||!_0xacf4a8||_0xacf4a8===VERSION)return;_i18nVersionWarned=!![],console[_0x369b56(0x289)](_0x369b56(0x43b)+_0xacf4a8+_0x369b56(0xcc5)+VERSION+_0x369b56(0xe08));}function _loadLegacyTranslations(){const _0x8d53f9=_0x160929;if(_legacyI18nLoad)return _legacyI18nLoad;return _legacyI18nLoad=import(new URL(_0x8d53f9(0x632)+VERSION,import.meta.url))[_0x8d53f9(0x47c)](_0x31b6e7=>{const _0x2c9756=_0x8d53f9;if(_0x31b6e7?.[_0x2c9756(0x8ad)]){for(const [_0xf82256,_0x896cca]of Object['entries'](_0x31b6e7[_0x2c9756(0x8ad)]))I18N[_0xf82256]=_0x896cca;}if(_0x31b6e7?.[_0x2c9756(0x9c9)])Object['assign'](LANG_NAMES,_0x31b6e7[_0x2c9756(0x9c9)]);_warnI18nVersion(_0x31b6e7?.['T_VERSION']),_sgcI18nRerender();})[_0x8d53f9(0x3cb)](()=>{const _0x14a32d=_0x8d53f9;console[_0x14a32d(0x8b3)]('[statistics-graph-chart-card]\x20no\x20translations\x20found\x20next\x20to\x20the\x20card\x20file\x20-\x20UI\x20will\x20be\x20English\x20only.\x20Install\x20the\x20translations\x20folder\x20(or\x20translations.js)\x20side\x20by\x20side\x20to\x20enable\x20the\x2016\x20bundled\x20languages.');}),_legacyI18nLoad;}function _ensureLang(_0x294038){const _0x3edc5f=_0x160929;let _0x28129e=String(_0x294038||'')[_0x3edc5f(0x412)]();if(!LANG_NAMES[_0x28129e])_0x28129e=_0x28129e[_0x3edc5f(0x967)]('-')[0x0];if(!_0x28129e||!LANG_NAMES[_0x28129e]||I18N[_0x28129e]||_langLoads[_0x3edc5f(0x9b5)](_0x28129e))return;_langLoads[_0x3edc5f(0x22c)](_0x28129e,import(new URL(_0x3edc5f(0xdad)+_0x28129e+'.js?v='+VERSION,import.meta.url))[_0x3edc5f(0x47c)](_0x5b5a81=>{const _0x12ef32=_0x3edc5f;if(_0x5b5a81?.[_0x12ef32(0x3a5)])I18N[_0x28129e]=_0x5b5a81[_0x12ef32(0x3a5)],_warnI18nVersion(_0x5b5a81[_0x12ef32(0xd71)]),_sgcI18nRerender();else return _loadLegacyTranslations();})['catch'](()=>_loadLegacyTranslations()));}function resolveCardLanguage(_0xafe1df,_0x442dce){const _0x1a3a46=_0x160929,_0x81f895=String(_0x442dce?.[_0x1a3a46(0x6ff)]??'auto')['trim']();if(_0x81f895&&_0x81f895!==_0x1a3a46(0x959))return _0x81f895;return _0xafe1df?.[_0x1a3a46(0x1e5)]?.[_0x1a3a46(0x6ff)]||typeof navigator!==_0x1a3a46(0xa51)&&navigator['language']||'en';}function cardT(_0x231b3e,_0x38ff33,_0x1c6925){const _0xb6339c=_0x160929;let _0x43faaa=resolveCardLanguage(_0x231b3e,_0x38ff33)[_0xb6339c(0x412)]();if(_0x43faaa==='no'||_0x43faaa[_0xb6339c(0xa49)](_0xb6339c(0x63a)))_0x43faaa='nb';const _0x2c7265=I18N[_0x43faaa]||I18N[_0x43faaa['split']('-')[0x0]];if(!_0x2c7265)_ensureLang(_0x43faaa);return _0x2c7265&&_0x2c7265[_0x1c6925]||_0x1c6925;}function localizeEntityState(_0x20d494,_0x169be7,_0x342feb){const _0xa5af2e=_0x160929,_0x1ddf73=_0x342feb??_0x169be7?.[_0xa5af2e(0x89b)];if(_0x1ddf73==null)return'';try{if(_0x169be7&&typeof _0x20d494?.[_0xa5af2e(0xa60)]===_0xa5af2e(0xc89)){const _0x50843c=_0x342feb!=null?_0x20d494[_0xa5af2e(0xa60)](_0x169be7,String(_0x342feb)):_0x20d494[_0xa5af2e(0xa60)](_0x169be7);if(_0x50843c)return _0x50843c;}}catch(_0xb33f4){}return String(_0x1ddf73);}function niceYTicks(_0x8b2032,_0x56df83,_0xa2bcf0=0x4,_0x110c0a=0x0){const _0x538005=_0x160929;if(!isFinite(_0x8b2032)||!isFinite(_0x56df83)||_0x56df83<=_0x8b2032)return null;const _0x147fae=_0x56df83-_0x8b2032,_0x19aa5f=_0x147fae/Math['max'](0x1,_0xa2bcf0);let _0x278040;if(_0x110c0a>0x0&&_0x147fae>=_0x110c0a){const _0x16db2e=_0x19aa5f/_0x110c0a,_0x28e60c=[0x1,0x2,0x5,0xa,0xf,0x1e,0x3c,0x78,0xb4,0x168,0x2d0,0x5a0,0xb40,0x10e0,0x2760,0xa8c0,0x15180];let _0x4d8c84=_0x28e60c[_0x28e60c['length']-0x1];for(let _0x56814e=0x0;_0x56814e<_0x28e60c['length'];_0x56814e++){const _0x2b236e=_0x28e60c[_0x56814e+0x1];if(_0x2b236e===undefined||_0x16db2e_0x56df83+_0x278040*0.000001)break;if(_0x3b7006>=_0x8b2032-_0x278040*0.000001)_0x204d2e['push'](_0x3b7006);}return _0x204d2e[_0x538005(0xc70)]>=0x2?_0x204d2e:null;}function _0x3ef4(){const _0x2051eb=['.sgc-legend-wrap','2860560NWYkXh','setTime','mousedown','globalAlpha','\x22\x20stroke=\x22none\x22/>','.card-icon-color','include_area_names','dp-label-past','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','sourceId','Adds\x20a\x20statistics\x20row\x20below\x20the\x20graph\x20for\x20this\x20entity.\x20Select\x20which\x20values\x20to\x20show:\x20Min,\x20Avg,\x20Max\x20from\x20the\x20displayed\x20time\x20range,\x20and/or\x20Last\x20(the\x20most\x20recent\x20value).\x20Multiple\x20selections\x20allowed.','plain','','sgc-ma-label','_resolveEntityAnnotations','[data-intlabel]','\x27\x20on\x20the\x20line\x22>','>','.e-attribute','Horizontal\x20position\x20of\x20the\x20mode\x20shortcuts\x20—\x20the\x20D/W/M/Y\x20buttons\x20and\x20the\x20calendar\x20icon\x20—\x20left,\x20center,\x20or\x20right.\x20Sharing\x20a\x20position\x20with\x20the\x20date\x20navigator\x20places\x20the\x20navigator\x20first.','Secondary\x20Value','','show_graph','.e-price_entity','show_fill','Download\x20PNG\x20(Card)','background','cmp-hol','.e-data_attribute','_resolveThrRef','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','pie_spacing','\x0a\x20\x20\x20\x20\x20\x20','changeDiffSeries','sin','Date\x20Picker','scroll_sync','MMM\x20YY','','amber','fillRect','epoch_seconds','headericon','','.e-show_trend_icon','card_background_blur','.e-number_format','_resizeObserver','','_drawRangeBand','Stroke\x20pattern\x20of\x20the\x20graph\x20line.\x20Solid\x20is\x20the\x20default;\x20Dotted\x20and\x20Dashed\x20help\x20tell\x20overlapping\x20entities\x20apart\x20or\x20mark\x20secondary\x20series.','num','blue-grey','Wed','value','band','accent','Show\x20a\x20second\x20stat\x20value\x20next\x20to\x20the\x20primary\x20state\x20in\x20the\x20state\x20row.\x20Options:\x20Sum,\x20Avg,\x20Min,\x20Max,\x20First,\x20Last.\x20The\x20label\x20and\x20value\x20appear\x20smaller\x20beside\x20the\x20main\x20state.\x20In\x20Pie,\x20Ranking\x20and\x20Polar\x20Area\x20modes\x20an\x20extra\x20%\x20option\x20is\x20available\x20—\x20it\x20shows\x20this\x20entity\x27s\x20share\x20of\x20the\x20total,\x20matching\x20the\x20percentages\x20drawn\x20on\x20the\x20chart.','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','show_average','hide_name','Jul','yes','drag-over','day_of_month','data_time_field','first_weekday','sgc-interval-sync-request','bad\x20number','_beginRender','px;\x22>','h\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','x_grid_opacity','_default','data-mtc','_drawSpanAnnotation','show_y_axis','extrema_color','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_thrColorRefs','_broadcastDatePickerSync','state_adaptive_color','sgc-averages','warn','_attachZoomHandlers','.sgc-mode-off','sgc-axis-tick\x20sgc-x-tick','_wsSubscribing','states','100%','_baseQuery','Smooth','_toggleSeriesVisibility','--mdc-icon-size:','Shortcuts','defs','','_renderStateRowFor','Data\x20Labels','y_axis_font_opacity','onerror','.e-trend_up_color-picker','All\x20cards','.e-point_size','toISOString','linearGradient','tooltipName','week_of_year','Point\x20Color','trend_icon_size','Value','.ann-row','\x22\x20on\x20a\x20series\x20that\x20','.ha-icon-picker-wrap[data-entity-icon]','_liveEnabled','dark-grey','show_y2_axis','fillText','[sgc]\x20group_by\x20\x22','legend_position','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','precision','last\x20week','_getDataSourceForRange','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Opacity\x20of\x20horizontal\x20grid\x20lines.\x200\x20=\x20invisible,\x201\x20=\x20fully\x20opaque.\x20Default\x20is\x200.15\x20—\x20subtle,\x20just\x20enough\x20to\x20anchor\x20the\x20eye\x20without\x20competing\x20with\x20the\x20data.','price_per_kwh','Header\x20text\x20font\x20weight.\x20Accepts\x20CSS\x20keywords\x20(light/normal/bold)\x20or\x20numbers\x20(300,\x20400,\x20600,\x20700).\x20Leave\x20empty\x20for\x20theme\x20default.','getDay','Icon\x20Size','tagName','.thr-list','var(--primary-color,\x20#4A90D9)','','.e-show_line','_exportCsv','.ci','rgba(0,0,0,0.06)','weekday','add','auto_hide','PALETTE','card_header_letter_spacing','Data\x20Vars','Auto\x20(HA\x20profile)','.sgc-state-wrap[data-pos=\x22','ddd\x20DD\x20MMM','_drillStack','cloneNode',':\x20\x22','_barHalfWidth','data_time_year','','sgc-plot-clip','\x22>px\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Entities','\x20','Today','setItem','\x20selected','font-weight:500;pointer-events:none;text-shadow:0\x201px\x202px\x20rgba(0,0,0,0.3)','Slice\x20Label\x20Size','unknown\x20function\x20\x22','src','std','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','localeCompare','A\x20÷\x20B','MM/DD\x20HH:mm','\x22\x20data-label=\x22','touchstart','Tooltip\x20Total','false','\x22>','.e-data_vars','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','svgViewWidth','','invert','.e-show_graph','Duplicate','sgc-y-axis','sgc-bargrad-','_setupTooltip','trend_up_color','Hard','unit','yearEqualSpace','Display\x20the\x20window-wide\x20min\x20and\x20max\x20as\x20a\x20subdued\x20(min\x20-\x20max)\x20suffix\x20next\x20to\x20the\x20primary\x20value.\x20Best\x20paired\x20with\x20show_graph:\x20false\x20+\x20primary_state_as:\x20min/max\x20for\x20compact\x20records\x20cards.\x20Uses\x20range-band\x20data\x20when\x20enabled,\x20otherwise\x20falls\x20back\x20to\x20the\x20aggregate\x20min/max\x20over\x20the\x20visible\x20window.','show_values','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','How\x20numbers\x20are\x20formatted.\x20System\x20=\x20follow\x20HA\x20locale\x20setting.\x20Comma\x20=\x20European\x20style\x20(1.234,56).\x20Dot\x20=\x20American\x20style\x20(1,234.56).','Mouse\x20Wheel','pickStatField','variables','Color\x20for\x20slice\x20value\x20labels.\x20Accepts\x20any\x20CSS\x20color\x20(hex,\x20rgba,\x20name)\x20or\x20CSS\x20variable.\x20Leave\x20empty\x20for\x20white\x20(auto-contrast\x20against\x20slice\x20color).','.sgc-detail-legend-entity','time_zone','_setupColorTemplates','Reference\x20Year','Battery\x20Entity','','rgba(255,255,255,0.85)','\x22\x20data-tc=\x22general\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','floor','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','\x22\x20stroke-width=\x222\x22/>','\x20→\x20','[sgc]\x20annotation\x20history\x20fetch\x20failed','Header,\x20icon,\x20styling\x20and\x20language','toFixed','\x0a\x20\x20\x20\x20\x20\x20','\x22\x20cannot\x20be\x20combined\x20with\x20aggregate_func\x20\x22','_renderMatrixChart','More\x20Info','battery_low_threshold','state_changed','-color)','timeZone','Roundness\x20of\x20each\x20state\x20segment\x20corners\x20in\x20pixels.\x200\x20=\x20perfectly\x20sharp.\x203\x20=\x20default.\x20Larger\x20values\x20round\x20into\x20a\x20pill\x20shape\x20(capped\x20at\x20half\x20the\x20row\x20height).\x20Advanced\x20users\x20can\x20also\x20target\x20the\x20sgc-stl-cell\x20class\x20from\x20card_mod\x20for\x20per-state\x20styling.','pow','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','annotations','State','Name\x20of\x20the\x20entity\x20attribute\x20containing\x20the\x20data\x20array.\x20For\x20example:\x20data,\x20forecast,\x20price_info.\x20Leave\x20empty\x20to\x20use\x20normal\x20history.','\x20-\x20','.e-legend_last','mapY','position:absolute;visibility:hidden;pointer-events:none;top:-9999px;left:-9999px','.sgc-pie-container','_getAxisStateMap','_onIntervalSyncEvent','Border\x20thickness.\x20Accepts\x20a\x20number\x20(treated\x20as\x20px)\x20or\x20any\x20CSS\x20value\x20like\x202px.\x20Leave\x20empty\x20for\x20theme\x20default.','Time-shift\x20the\x20plotted\x20data\x20along\x20the\x20X-axis.\x20Positive\x20(e.g.\x2024)\x20shifts\x20data\x20forward\x20—\x20for\x20forecast\x20sensors\x20whose\x20state\x20represents\x20T+N\x20hours\x20ahead.\x20Negative\x20(e.g.\x20-24)\x20shifts\x20data\x20backward\x20—\x20useful\x20with\x20attribute-based\x20forecast\x20data\x20to\x20overlay\x20tomorrow\x27s\x20forecast\x20onto\x20today.\x20Leave\x20empty\x20(or\x200)\x20to\x20disable.\x20Independent\x20from\x20Offset\x20—\x20both\x20can\x20be\x20combined.','>','_yEnt','.sgc-dp-toggle','dp-future','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20','name_position','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_computeRollingStart','\x22>px','_collectDataVarIds','alignItems','getBoundingClientRect','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','language','statsFieldCascade','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','','has_sum','isArray','&minimal_response&no_attributes','Last\x20Color','.f,\x20.si','disconnect','tooltip_match_axis','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','_renderLegend','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','.dp-zone-right','log','_pieItems','\x22\x20data-mtab=\x22yaxis\x22>','_buildStateRowHtml','.e-gradient','bar_spacing','Time\x20window\x20in\x20hours\x20for\x20trend\x20direction\x20calculation.\x20The\x20slope\x20across\x20the\x20last\x20N\x20hours\x20determines\x20whether\x20the\x20icon\x20shows\x20▲\x20(rising),\x20▼\x20(falling),\x20or\x20⯇⯈\x20(stable).\x20Set\x20to\x200\x20to\x20use\x20the\x20full\x20displayed\x20range.\x20Decimals\x20are\x20allowed\x20(e.g.\x200.5\x20=\x2030\x20min,\x200.25\x20=\x2015\x20min)\x20—\x20but\x20the\x20window\x20must\x20still\x20contain\x20at\x20least\x202\x20data\x20points,\x20otherwise\x20it\x20stays\x20stable.','setDate','','color','xmlns','.panel-header[data-toggle]','.ma-row','0.16','isDate','','scroll','Minimum\x20for\x20the\x20Y\x20axis.\x20Prefix\x20with\x20~\x20for\x20a\x20soft\x20bound\x20(e.g.\x20~0)\x20—\x20axis\x20uses\x20this\x20value\x20when\x20data\x20stays\x20above\x20it,\x20expands\x20if\x20data\x20goes\x20lower.\x20Hard\x20bound\x20(e.g.\x200)\x20forces\x20the\x20axis\x20edge\x20regardless\x20of\x20data.\x20Also\x20accepts\x20an\x20entity\x20ID\x20for\x20a\x20dynamic\x20bound.','_renderDatePicker','_intervalInitialSyncDone','_prep','How\x20many\x20hours\x20of\x20history\x20to\x20load\x20and\x20display\x20in\x20the\x20default\x20rolling\x20window.\x20Higher\x20values\x20fetch\x20more\x20data\x20but\x20may\x20slow\x20down\x20the\x20card.\x20Ignored\x20when\x20Date\x20Picker,\x20Energy\x20Sync,\x20Interval\x20Picker,\x20Graph\x20Start,\x20or\x20Graph\x20Start\x20Hour\x20overrides\x20the\x20time\x20window.','search','_buildThresholdGradient','cancelable','SELECT','','.sgc-al-select','error','pie:','sgc-scroll-sync','tStart','_collectThrRefs','pane','\x0a\x20\x20\x20\x20\x20\x20\x20\x20','yearTotal','data','config-changed','Min','_dpMode','.e-ref_entity','right','sgc-crosshair','','color:var(','.cmp-row','Diff','area','No\x20numeric\x20data\x20for\x20histogram.','\x22>px','Drill\x20Down','select','_tplGen','.e-smooth','_energyStart','[sgc]\x20render\x20error','.asr-row','transformSeries','donut','>\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Line\x20/\x20Fill\x20Color','\x22\x20data-id=\x22','.sgc-ip-wrap','Action\x20triggered\x20when\x20tapping\x20this\x20entity\x27s\x20state\x20row.\x20More\x20Info\x20opens\x20the\x20HA\x20entity\x20detail\x20dialog.\x20Navigate\x20goes\x20to\x20a\x20dashboard\x20path.\x20URL\x20opens\x20an\x20external\x20link.\x20Call\x20Service\x20triggers\x20an\x20HA\x20service\x20directly.','.sgc-plot','dateObj','y_axis','No\x20entity\x20to\x20display.','\x22\x20style=\x22width:100%;font-family:monospace;font-size:11px\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Shows\x20percentage\x20next\x20to\x20each\x20bar\x20and\x20Share\x20row\x20in\x20the\x20hover\x20tooltip.','interval_options','points_per_hour','mapped','Stacked\x20Group\x20Totals','sgc-y-axis-label\x20sgc-y-axis-label-left','_areaDisambig','','Range\x20Band','sgc-spark-mode','Never','_attachTooltip','_spokes','_persistDatePicker','pie_center_font_size','%\x22\x20stop-color=\x22','Name\x20of\x20the\x20time\x20field\x20in\x20each\x20array\x20item.\x20Default:\x20start_time.','sgc-search-miss','subscribeMessage','date_picker_step','scrollbar','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Value\x20Position','trailing\x20tokens','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3,3','.e-icon_size','A\x20−\x20B','debug_fetch','show_y_axis_label','','Horizontal\x20position\x20of\x20the\x20‹\x20period\x20›\x20navigator\x20inside\x20the\x20picker\x20bar\x20—\x20left,\x20center,\x20or\x20right.\x20If\x20it\x20shares\x20a\x20position\x20with\x20the\x20shortcuts,\x20the\x20navigator\x20is\x20placed\x20first,\x20to\x20their\x20left.','_pendingSyntheticRefresh','','e-trend_up_color','.sgc-dp-prev','grd:','label_font_size','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','','getPropertyValue','Range','\x22\x20title=\x22','focus','','light-blue','','BOUNDS','sgc-state-wrap\x20','indigo','\x0a\x20\x20\x20\x20\x20\x20\x20\x20','Primary','style','\x22\x20data-tab=\x22appearance\x22>','_start','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Day\x20of\x20month\x20(1-31)','Level','','Auto\x20Hide\x20Entities','_energyUnsub',';visibility:hidden',')','_ovAttrIdSeq','ha-icon','has','statistics','_seriesEntity','stats','units','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unexpected\x20trailing\x20token\x20\x22','Names\x20used\x20by\x20Value\x20Expression,\x20mapped\x20to\x20entity\x20IDs\x20-\x20one\x20per\x20line\x20as\x20name:\x20entity_id.\x20Each\x20resolves\x20to\x20the\x20entity\x20numeric\x20state\x20and\x20re-evaluates\x20live\x20when\x20it\x20changes.\x20Example:\x20mwst:\x20input_number.vat_rate','last_updated','State\x20Row','Default','getHours','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20▶\x0a\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20','TL_STL','How\x20to\x20bucket\x20raw\x20history\x20data\x20before\x20aggregation.\x20Interval\x20=\x20equal-width\x20buckets\x20across\x20the\x20full\x20time\x20range\x20(most\x20common).\x20Hour\x20=\x20one\x20bucket\x20per\x20clock\x20hour.\x20Date\x20=\x20one\x20per\x20calendar\x20day.\x20Week\x20=\x20one\x20per\x20calendar\x20week\x20(Mon–Sun).\x20Month\x20=\x20one\x20per\x20calendar\x20month.\x20Raw\x20=\x20no\x20bucketing\x20at\x20all:\x20every\x20recorded\x20sample\x20is\x20drawn\x20at\x20its\x20exact\x20timestamp\x20—\x20ideal\x20for\x20step\x20graphs\x20of\x20binary/state\x20sensors\x20where\x20each\x20transition\x20matters.','closePath','_color','Format\x20the\x20tooltip\x20date\x20header\x20exactly\x20like\x20the\x20X-axis\x20labels.\x20Long-range\x20views\x20then\x20show\x20e.g.\x20\x27May\x2026\x27\x20instead\x20of\x20a\x20full\x20timestamp,\x20ignoring\x20the\x20Date\x20Format\x20pattern\x20just\x20as\x20the\x20axis\x20does.\x20It\x20never\x20appends\x20a\x20time\x20to\x20a\x20date:\x20Month/Year/day\x20views\x20show\x20the\x20date\x20only,\x20intraday\x20hour\x20views\x20show\x20the\x20clock\x20only.','HH:mm','STYLE','Style','show_extrema_max','expected\x20','','h:mm:ss','Custom\x20color\x20for\x20Y-axis\x20labels\x20and\x20tick\x20marks.\x20Accepts\x20any\x20CSS\x20color\x20(hex,\x20rgba,\x20color\x20name)\x20or\x20a\x20CSS\x20variable\x20like\x20var(--my-color).\x20Leave\x20empty\x20for\x20theme\x20default\x20(--secondary-text-color).','card_icon_image','rgba(255,255,255,0.5)','h\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','moving_averages','Name\x20Position','var(--success-color,\x20#22c55e)','iso','_compareShiftHours','Share','item','unknown\x20function\x20','Norsk','var(--','font-weight:','\x20–\x20','HA-CARD','pie_center_color','Tooltip\x20Sync','canvas\x20tainted','','','','unclosed\x20{','\x22>›','Custom\x20background\x20color\x20for\x20the\x20card.\x20Accepts\x20any\x20CSS\x20color\x20(hex,\x20name,\x20rgb,\x20rgba).\x20Use\x20rgba(r,g,b,a)\x20for\x20transparency,\x20e.g.\x20rgba(155,150,150,0.3).\x20Leave\x20empty\x20for\x20theme\x20default.','\x22>px','numeric','_lastTplKey','0.35','\x22>(non-numeric\x20→\x20numeric)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20One\x20line\x20per\x20state,\x20as\x20value,\x20label,\x20color\x20—\x20label\x20and\x20color\x20are\x20optional.\x20Line\x20order\x20=\x20graph\x20value\x20(0,\x201,\x202…).\x20Color\x20accepts\x20any\x20CSS\x20color\x20(name,\x20hex,\x20or\x20var).\x20Examples:
off
on
off,\x20Stopped
on,\x20Working
Youtube,\x20YouTube,\x20red
Netflix,\x20Netflix,\x20#E50914\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','y_grid_style','entity','Y\x20Axis\x20Decimals','.e-legend_max','Last\x203D','sans-serif','_statNet','3\x20Hours','create','overlay','text/csv;charset=utf-8','External\x20statistic\x20—\x20only\x20published\x20to\x20the\x20statistics\x20database.','rgba(255,255,255,0.3)','now_line_color','_visHandler','ids','_renderAttributeList','Visual\x20preset.\x20Classic\x20=\x20full\x20pie.\x20Thick\x20=\x20wide\x20donut\x20ring.\x20Donut\x20=\x20standard\x20(default).\x20Thin\x20=\x20narrow\x20ring.\x20Center\x20Total\x20enforces\x20minimum\x20inner\x20hole.','_bucketSeries','Month','_ensurePinchHandlers','_slices','_drillDownAt','sgc-area','#2ecc71','card_icon_size','flex:1;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap','%27','.e-name','fillStyle','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Opacity\x20of\x20Y-axis\x20labels.\x200\x20=\x20invisible,\x201\x20=\x20fully\x20opaque.\x20Default\x20is\x200.65.','My\x20annotation','X\x20Label\x20Color','.sgc-animated','Tue','','_dpSyncHandler','.e-icon_color-picker','position:absolute;top:calc(100%\x20+\x204px);left:0;right:0;z-index:100;max-height:260px;overflow:auto;background:var(--bg);border:1px\x20solid\x20var(--bd);border-radius:8px;box-shadow:0\x206px\x2024px\x20rgba(0,0,0,.25);padding:4px;display:none','group_by','input','','teal','Top\x20Right','X\x20Grid\x20Width','Loading…','Icon\x20Position','preserveAspectRatio','Year\x20Before','\x22\x20fill-opacity=\x220.32\x22\x20stroke=\x22','sgc-ann-label\x20sgc-ann-event-label','server','position:absolute;visibility:hidden;pointer-events:none;','height:','_buildCsvText','\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','data_value_field','Center\x20Total','>','_drillWindow','bad\x20number\x20\x22','Solid','parentNode','#sgc-extras','Axis\x20Labels','_groupForQueryKind','Name\x20Size','_abort','seriesStats','measurement','\x22\x20style=\x22cursor:','_xAxisLabelFormatters','','stack_group','_hass','\x22>°px\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','.sgc-detail-legend-wrap','Pts/h','YYYY-MM-DD','rise_color','date','Set\x20entity\x20color\x20to\x20threshold\x20to\x20propagate\x20threshold\x20colors\x20to\x20state\x20row\x20elements.','display','width:100%;box-sizing:border-box;padding:8px\x2010px;border:1px\x20solid\x20var(--bd);border-radius:6px;background:var(--sf);color:var(--tx);font-size:12px;font-family:inherit;outline:none','_hasLTS','[sgc]\x20query\x20sync\x20failed','This\x20Week','_sgcExtremaBound','signal','_mainTab','_isCardFieldRelevantForMode','anchorStart','matchMedia','state_timeline_corner_radius','[sgc]\x20value_transform\x20produced\x20non-numeric\x20probe:','','','\x20.sgc-dp-shortcuts','clientX','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','anim','Tooltip\x20Name','_renderErrTs','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','attributes','','_instanceKey','tap','assign','Check\x20the\x20chart_mode\x20value.\x20The\x20YAML\x20config\x20is\x20preserved.','','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20px\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20h':'')+_0x1f2218(0xdef)+(_0x57c39f?_0x1f2218(0x852)+(_0x3d1515[_0x1f2218(0x63b)]!==![]?_0x1f2218(0xe25):'')+_0x1f2218(0x6e3)+this[_0x1f2218(0x544)](_0x1f2218(0xcc1))+'\x20'+_0x18e6e8('Print\x20each\x20cell\x27s\x20value\x20inside\x20the\x20heatmap\x20or\x20calendar\x20boxes.\x20Turn\x20off\x20for\x20a\x20cleaner\x20color-only\x20grid\x20-\x20exact\x20values\x20stay\x20available\x20in\x20the\x20hover\x20tooltip.')+'':'')+_0x1f2218(0xba2)+(!_0x57c39f&&!_0x105bd5?_0x1f2218(0x814)+(_0x3d1515[_0x1f2218(0x505)]?_0x1f2218(0xe25):'')+_0x1f2218(0x6e3)+this[_0x1f2218(0x544)](_0x1f2218(0xc80))+'\x20'+_0x18e6e8(_0x1f2218(0x983))+_0x1f2218(0x260):'')+_0x1f2218(0xc58)+(_0x3d1515[_0x1f2218(0xe1a)]?_0x1f2218(0xe25):'')+_0x1f2218(0x6e3)+this['_eT']('Area\x20names')+'\x20'+_0x18e6e8('Append\x20each\x20entity\x27s\x20Home\x20Assistant\x20area\x20to\x20its\x20name\x20-\x20in\x20the\x20state\x20row,\x20legend,\x20tooltips,\x20stats,\x20exports\x20and\x20this\x20list.\x20The\x20area\x20comes\x20from\x20the\x20entity\x20itself,\x20or\x20from\x20its\x20device.\x20Entities\x20you\x20gave\x20a\x20Custom\x20Name\x20keep\x20it\x20untouched,\x20and\x20a\x20name\x20that\x20already\x20contains\x20its\x20area\x20is\x20not\x20doubled.\x20Off\x20by\x20default.')+_0x1f2218(0x2fc)+(_0x3d1515[_0x1f2218(0x925)]&&!_0x3d1515['use_only_attribute_name']?_0x1f2218(0xe25):'')+_0x1f2218(0x6e3)+this[_0x1f2218(0x544)](_0x1f2218(0x202))+'\x20'+_0x18e6e8(_0x1f2218(0x6a4))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this[_0x1f2218(0x544)](_0x1f2218(0x92b))+'\x20'+_0x18e6e8(_0x1f2218(0x627))+_0x1f2218(0x260):'')+_0x1f2218(0xdef)+(_0x544843?_0x1f2218(0x9d2)+(_0x3d1515['sparkline']?'checked':'')+_0x1f2218(0x6e3)+this[_0x1f2218(0x544)]('Sparkline')+'\x20'+_0x18e6e8(_0x1f2218(0x5fe))+'':'')+_0x1f2218(0xdef)+(_0x544843&&!_0x105bd5?_0x1f2218(0x921)+(_0x3d1515[_0x1f2218(0x4d0)]?'checked':'')+_0x1f2218(0x6e3)+this[_0x1f2218(0x544)](_0x1f2218(0x927))+'\x20'+_0x18e6e8('When\x20enabled,\x20automatically\x20picks\x20the\x20best\x20Group\x20By\x20and\x20Points/Hour\x20for\x20the\x20visible\x20window\x20—\x20aiming\x20for\x20~100\x20points.\x20Falls\x20back\x20to\x20a\x20safer\x20mode\x20(Points/Hour\x20only)\x20for\x20kart\x20configurations\x20using\x20offset,\x20forecast_horizon,\x20or\x20attribute-based\x20data\x20sources,\x20where\x20Group\x20By\x20override\x20could\x20break\x20per-entity\x20time\x20alignment.')+_0x1f2218(0x260):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{const _0x66d0bb=_0x1f2218,_0x19782f=Array[_0x66d0bb(0x724)](_0x3d1515[_0x66d0bb(0x4a3)])?_0x3d1515[_0x66d0bb(0x4a3)]:[],_0x59a92e=[_0x66d0bb(0x6e0),'hour','2h','3h','4h','6h',_0x66d0bb(0x368),_0x66d0bb(0xb87),'week',_0x66d0bb(0x4e2),'year'],_0x4b1e46={'interval':_0x66d0bb(0x8fa),'hour':_0x66d0bb(0xbe9),'2h':'2\x20Hours','3h':_0x66d0bb(0xaef),'4h':'4\x20Hours','6h':_0x66d0bb(0x9d5),'12h':'12\x20Hours','date':'Date','week':'Week','month':_0x66d0bb(0xafb),'year':'Year'},_0x13d6eb=(this[_0x66d0bb(0x248)]||[])['some'](_0x1fea22=>(_0x1fea22?.[_0x66d0bb(0x529)]||_0x1fea22?.[_0x66d0bb(0xc4e)])==='step')||_0x19782f[_0x66d0bb(0x45c)](_0x3fc708=>_0x3fc708?.[_0x66d0bb(0xb18)]==='raw'),_0x202fda=_0x19782f[_0x66d0bb(0x7ee)]((_0x52d4b8,_0x30497f)=>_0x66d0bb(0x9cd)+_0x30497f+'\x22>°\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this['_eT'](_0x1f2218(0x326))+'\x20'+_0x18e6e8('Adds\x20depth\x20to\x20the\x20pie\x20by\x20squashing\x20it\x20vertically\x20and\x20rendering\x20side\x20walls\x20below.\x20Works\x20with\x20any\x20style\x20preset.')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20':'')+_0x1f2218(0x188)+(_0x5249d2===_0x1f2218(0x93e)?_0x1f2218(0x867)+this[_0x1f2218(0x544)](_0x1f2218(0xac8))+'\x20'+_0x18e6e8(_0x1f2218(0x64b))+'px'+this[_0x1f2218(0x544)]('Y-axis\x20settings\x20are\x20hidden\x20in\x20sparkline\x20mode')+_0x1f2218(0xcc3):_0x57c39f?_0x1f2218(0xcd3)+this[_0x1f2218(0x544)]('Labels')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+[_0x1f2218(0xa85),_0x1f2218(0x48f),_0x1f2218(0x6e6),'long-dash']['map'](_0x58326d=>_0x50bb87(_0x58326d,_0x3d1515[_0x1f2218(0xae8)]??_0x1f2218(0xa85),this[_0x1f2218(0x544)](_0x58326d[_0x1f2218(0xc83)](0x0)[_0x1f2218(0x380)]()+_0x58326d[_0x1f2218(0x3d3)](0x1)[_0x1f2218(0x944)]('-','\x20'))))[_0x1f2218(0xc0d)]('')+_0x1f2218(0xce4)+this[_0x1f2218(0x544)](_0x1f2218(0x155))+'\x20'+_0x18e6e8('Thickness\x20of\x20horizontal\x20grid\x20lines\x20in\x20pixels.\x20Default\x20is\x201.\x20Accepts\x20decimals\x20like\x200.5.')+_0x1f2218(0x77a)+escapeHtml(_0x3d1515[_0x1f2218(0x846)]??'')+_0x1f2218(0xd01)+this[_0x1f2218(0x544)]('Y\x20Grid\x20Color')+'\x20'+_0x18e6e8(_0x1f2218(0xcb2))+_0x1f2218(0x263)+this[_0x1f2218(0x544)](_0x1f2218(0x752))+_0x1f2218(0xa26)+escapeHtml(_0x3d1515[_0x1f2218(0xd8f)]??'')+_0x1f2218(0x6f6)+escapeHtml(this[_0x1f2218(0xbba)](_0x3d1515[_0x1f2218(0xd8f)]||_0x1f2218(0xd28)))+_0x1f2218(0x70b)+this[_0x1f2218(0x544)](_0x1f2218(0xc5f))+'\x20'+_0x18e6e8(_0x1f2218(0x2ba))+_0x1f2218(0xe22)+escapeHtml(_0x3d1515['y_grid_opacity']??'')+_0x1f2218(0x3de)+this[_0x1f2218(0x544)](_0x1f2218(0xd5d))+_0x1f2218(0x124)+this[_0x1f2218(0x544)]('Min\x20Y\x20Range')+'\x20'+_0x18e6e8('Minimum\x20span\x20of\x20the\x20primary\x20Y\x20axis.\x20If\x20the\x20actual\x20data\x20range\x20is\x20smaller\x20than\x20this,\x20the\x20axis\x20expands\x20symmetrically\x20around\x20the\x20center.\x20Example:\x20set\x20to\x2010\x20and\x20data\x20ranges\x2020-22\x20→\x20axis\x20shows\x2016-26.\x20Prevents\x20overly\x20zoomed\x20graphs\x20for\x20nearly-flat\x20data.')+_0x1f2218(0x2eb)+this['_eT']('None')+_0x1f2218(0xa26)+escapeHtml(_0x3d1515[_0x1f2218(0xe49)]??'')+_0x1f2218(0xb31)+this[_0x1f2218(0x544)](_0x1f2218(0xc1e))+'\x20'+_0x18e6e8(_0x1f2218(0x85f))+_0x1f2218(0x9ba)+this[_0x1f2218(0x544)](_0x1f2218(0x525))+'\x22\x20value=\x22'+escapeHtml(_0x3d1515[_0x1f2218(0x88e)]??'')+_0x1f2218(0xbd2)+this[_0x1f2218(0x544)](_0x1f2218(0xa23))+'\x20'+_0x18e6e8(_0x1f2218(0x3fa))+_0x1f2218(0x805)+escapeHtml(_0x3d1515['lower_bound']??'')+_0x1f2218(0xb31)+this[_0x1f2218(0x544)]('Upper\x20Bound\x20Y')+'\x20'+_0x18e6e8(_0x1f2218(0x46f))+_0x1f2218(0x7c6)+escapeHtml(_0x3d1515[_0x1f2218(0x77d)]??'')+_0x1f2218(0xbd2)+this[_0x1f2218(0x544)](_0x1f2218(0x1e9))+'\x20'+_0x18e6e8(_0x1f2218(0x7b5))+''+['','1h','2h','3h','4h','6h','8h','12h','1d','2d','7d','1w','2w','1M','3M'][_0x1f2218(0x7ee)](_0x31e271=>_0x50bb87(_0x31e271,_0x3d1515[_0x1f2218(0x912)]??'',_0x31e271===''?this[_0x1f2218(0x544)](_0x1f2218(0x752)):_0x31e271['toUpperCase']()))[_0x1f2218(0xc0d)]('')+'':'')+_0x1f2218(0xd0b):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x144c99?''+this[_0x1f2218(0x544)](_0x1f2218(0xb77))+_0x1f2218(0x124)+this['_eT'](_0x1f2218(0xccc))+'\x20'+_0x18e6e8(_0x1f2218(0x493))+_0x1f2218(0xf9)+[_0x1f2218(0xa85),'solid',_0x1f2218(0x6e6),_0x1f2218(0x70e)]['map'](_0x4a3aa2=>_0x50bb87(_0x4a3aa2,_0x3d1515[_0x1f2218(0x16b)]??_0x1f2218(0xa85),this[_0x1f2218(0x544)](_0x4a3aa2[_0x1f2218(0xc83)](0x0)[_0x1f2218(0x380)]()+_0x4a3aa2[_0x1f2218(0x3d3)](0x1)[_0x1f2218(0x944)]('-','\x20'))))['join']('')+_0x1f2218(0xce4)+this['_eT'](_0x1f2218(0xb26))+'\x20'+_0x18e6e8('Thickness\x20of\x20vertical\x20grid\x20lines\x20in\x20pixels.\x20Default\x20is\x201.\x20Accepts\x20decimals\x20like\x200.5.')+_0x1f2218(0x4ab)+escapeHtml(_0x3d1515[_0x1f2218(0x4e0)]??'')+_0x1f2218(0xd01)+this['_eT']('X\x20Grid\x20Color')+'\x20'+_0x18e6e8(_0x1f2218(0x419))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this[_0x1f2218(0x544)](_0x1f2218(0xa1d))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+[_0x1f2218(0x70d),_0x1f2218(0x510)]['map'](_0x33f724=>_0x50bb87(_0x33f724,_0x3d1515[_0x1f2218(0x626)]??_0x1f2218(0x70d),this[_0x1f2218(0x544)](_0x33f724['charAt'](0x0)[_0x1f2218(0x380)]()+_0x33f724[_0x1f2218(0x3d3)](0x1))))['join']('')+_0x1f2218(0x324)+this[_0x1f2218(0x544)](_0x1f2218(0xd0f))+_0x1f2218(0xa26)+escapeHtml(_0x3d1515['date_picker_group']??'')+_0x1f2218(0x19f)+(_0x3d1515[_0x1f2218(0xdd7)]?_0x1f2218(0x51c)+this[_0x1f2218(0x544)](_0x1f2218(0x68e))+'\x20'+_0x18e6e8(_0x1f2218(0x508))+''+((()=>{const _0x4938d5=_0x1f2218,_0x108e07=_0x2688ac=>{const _0x1ae6dc=_0x53a5,_0x3b2e9e=_0x3d1515['date_picker_modes'],_0x54e3d6=_0x2688ac['k']in DATE_PICKER_RELATIVE_MODES,_0x1c9443=_0x3b2e9e?.[_0x1ae6dc(0xc70)]?_0x3b2e9e['includes'](_0x2688ac['k']):!_0x54e3d6;return _0x1ae6dc(0x409)+_0x2688ac['k']+'\x22\x20'+(_0x1c9443?_0x1ae6dc(0xe25):'')+_0x1ae6dc(0x2e1)+this[_0x1ae6dc(0x544)](_0x2688ac['l'])+_0x1ae6dc(0x260);},_0x220a17=(_0x4f2aac,_0x1dbf8a,_0x143753)=>''+escapeHtml(this[_0x4938d5(0x544)](_0x4f2aac))+''+_0x18e6e8(_0x1dbf8a)+''+_0x143753[_0x4938d5(0x7ee)](_0x108e07)['join']('')+_0x4938d5(0xcc3);return _0x220a17(_0x4938d5(0x95c),_0x4938d5(0xb74),[{'k':_0x4938d5(0xc85),'l':'D'},{'k':_0x4938d5(0x26d),'l':'W'},{'k':'month','l':'M'},{'k':_0x4938d5(0x4f9),'l':'Y'}])+_0x220a17(_0x4938d5(0x2f4),_0x4938d5(0x530),Object[_0x4938d5(0x610)](DATE_PICKER_RELATIVE_MODES)[_0x4938d5(0x7ee)](([_0xd8a00b,_0x3a25c2])=>({'k':_0xd8a00b,'l':_0x3a25c2[_0x4938d5(0x95f)]})));})())+_0x1f2218(0x124)+this['_eT'](_0x1f2218(0xe29))+'\x20'+_0x18e6e8('Number\x20of\x20units\x20per\x20window.\x201\x20=\x20single\x20unit\x20(e.g.\x20one\x20day,\x20one\x20month\x20—\x20legacy\x20behavior).\x20>1\x20turns\x20the\x20picker\x20into\x20a\x20rolling\x20N-unit\x20window:\x20prev/next\x20buttons\x20jump\x20a\x20full\x20N\x20units.\x20Example:\x20step=4\x20with\x20Week\x20mode\x20shows\x20the\x20last\x204\x20weeks\x20and\x20navigates\x20back/forward\x204\x20weeks\x20at\x20a\x20time.')+_0x1f2218(0xc79)+escapeHtml(_0x3d1515[_0x1f2218(0x91f)]??0x1)+_0x1f2218(0xd1a)+this[_0x1f2218(0x544)](_0x1f2218(0x9c2))+'\x20'+_0x18e6e8(_0x1f2218(0x992))+_0x1f2218(0x181)+[{'v':'','l':this[_0x1f2218(0x544)](_0x1f2218(0x752))},{'v':_0x1f2218(0xc85),'l':this[_0x1f2218(0x544)](_0x1f2218(0xa21))},{'v':'week','l':this[_0x1f2218(0x544)]('Week')},{'v':'month','l':this[_0x1f2218(0x544)]('Month')},{'v':_0x1f2218(0x4f9),'l':this[_0x1f2218(0x544)]('Year')},{'v':'last_24h','l':this[_0x1f2218(0x544)](_0x1f2218(0x13f))},{'v':_0x1f2218(0x748),'l':this[_0x1f2218(0x544)](_0x1f2218(0xaec))},{'v':_0x1f2218(0x517),'l':this[_0x1f2218(0x544)](_0x1f2218(0x556))},{'v':_0x1f2218(0x416),'l':this[_0x1f2218(0x544)]('Last\x2015D')},{'v':_0x1f2218(0x141),'l':this[_0x1f2218(0x544)](_0x1f2218(0x25a))},{'v':_0x1f2218(0x54d),'l':this[_0x1f2218(0x544)](_0x1f2218(0xb5f))},{'v':_0x1f2218(0xd55),'l':this[_0x1f2218(0x544)](_0x1f2218(0xdda))},{'v':_0x1f2218(0x4de),'l':this[_0x1f2218(0x544)](_0x1f2218(0x43d))}][_0x1f2218(0x7ee)](_0x517666=>_0x50bb87(_0x517666['v'],_0x3d1515[_0x1f2218(0x3b3)]??'',_0x517666['l']))['join']('')+_0x1f2218(0x60d)+this[_0x1f2218(0x544)](_0x1f2218(0x189))+'\x20'+_0x18e6e8(_0x1f2218(0x939))+''+[_0x1f2218(0xa36),_0x1f2218(0x1f7),'right'][_0x1f2218(0x7ee)](_0x267c45=>_0x50bb87(_0x267c45,_0x3d1515[_0x1f2218(0x8db)]??'left',this['_eT'](_0x267c45[_0x1f2218(0xc83)](0x0)[_0x1f2218(0x380)]()+_0x267c45[_0x1f2218(0x3d3)](0x1))))[_0x1f2218(0xc0d)]('')+_0x1f2218(0xce4)+this['_eT'](_0x1f2218(0x294))+'\x20'+_0x18e6e8(_0x1f2218(0xe4c))+''+[_0x1f2218(0xa36),'center',_0x1f2218(0x785)][_0x1f2218(0x7ee)](_0x1ad83e=>_0x50bb87(_0x1ad83e,_0x3d1515[_0x1f2218(0x21f)]??_0x1f2218(0x785),this[_0x1f2218(0x544)](_0x1ad83e[_0x1f2218(0xc83)](0x0)[_0x1f2218(0x380)]()+_0x1ad83e[_0x1f2218(0x3d3)](0x1))))['join']('')+_0x1f2218(0x768):'')+_0x1f2218(0x717)+this[_0x1f2218(0x544)](_0x1f2218(0x3c3))+_0x1f2218(0x124)+this[_0x1f2218(0x544)](_0x1f2218(0x868))+'\x20'+_0x18e6e8('Daily\x20start\x20hour\x20filter.\x20Plain\x20number\x20=\x20absolute\x20clock\x20hour\x20(6\x20=\x2006:00,\x206.5\x20=\x2006:30).\x20Prefix\x20with\x20+\x20or\x20-\x20for\x20relative\x20to\x20NOW\x20(+1\x20=\x20one\x20hour\x20from\x20now,\x20-0.5\x20=\x2030\x20min\x20ago)\x20—\x20in\x20hand-written\x20YAML\x20these\x20must\x20be\x20quoted.\x20Alternatively\x20use\x20now,\x20now+1,\x20now-0.5\x20which\x20are\x20YAML-safe.\x20Also\x20accepts\x20entity\x20ID\x20(sensor.sunrise_hour)\x20for\x20dynamic\x20values.')+_0x1f2218(0x296)+escapeHtml(_0x3d1515[_0x1f2218(0x680)]?this[_0x1f2218(0x544)](_0x1f2218(0x66c)):'6\x20or\x20sensor.x')+_0x1f2218(0xa26)+escapeHtml(_0x3d1515[_0x1f2218(0x680)]?'':_0x3d1515[_0x1f2218(0x191)]??'')+'\x22\x20'+(_0x3d1515[_0x1f2218(0x680)]?_0x1f2218(0x32d):'')+_0x1f2218(0x455)+this['_eT']('End\x20Hour')+'\x20'+_0x18e6e8(_0x1f2218(0xcf4))+'_0x50bb87(_0x2222b0,_0x3d1515[_0x1f2218(0x680)]??'',{'':this['_eT'](_0x1f2218(0x8ff)),'day':this[_0x1f2218(0x544)](_0x1f2218(0x303)),'tomorrow':this[_0x1f2218(0x544)]('Tomorrow'),'week':this['_eT'](_0x1f2218(0xa1c)),'month':this[_0x1f2218(0x544)](_0x1f2218(0xafb)),'year':this['_eT'](_0x1f2218(0x714))}[_0x2222b0]))[_0x1f2218(0xc0d)]('')+_0x1f2218(0x8e0)+(_0x3d1515[_0x1f2218(0x333)]?_0x1f2218(0xe25):'')+_0x1f2218(0x6e3)+this[_0x1f2218(0x544)]('Show\x20Full\x20Period')+'\x20'+_0x18e6e8('Extends\x20the\x20X-axis\x20end\x20to\x20cover\x20the\x20full\x20period\x20from\x20the\x20graph\x20start,\x20even\x20when\x20\x22now\x22\x20is\x20earlier.\x20With\x20Graph\x20Start:\x20tomorrow\x20→\x20end\x20of\x20tomorrow,\x20week\x20→\x20next\x20Monday\x2000:00,\x20month\x20→\x201st\x20of\x20next\x20month,\x20year\x20→\x201\x20Jan\x20next\x20year.\x20With\x20Graph\x20Start\x20Hour\x20or\x20no\x20anchor:\x20end\x20of\x20today\x20(midnight).\x20Active\x20in\x20Date\x20Picker\x20(current\x20period\x20only)\x20and\x20Energy\x20Sync\x20as\x20well.\x20Bypassed\x20when\x20the\x20Interval\x20Picker\x20is\x20active.\x20Note:\x20graph_start=tomorrow\x20automatically\x20extends\x20the\x20window\x20without\x20this\x20flag.')+_0x1f2218(0x50e)+(_0x2c2e78===_0x1f2218(0xaf1)?_0x1f2218(0x7f2):'')+_0x1f2218(0x609)+(!_0x105bd5?_0x1f2218(0xcd3)+this['_eT']('Card\x20Overlays')+_0x1f2218(0x5f0)+(_0x3d1515[_0x1f2218(0x989)]?_0x1f2218(0xe25):'')+_0x1f2218(0x6e3)+this['_eT'](_0x1f2218(0x4cc))+'\x20'+_0x18e6e8(_0x1f2218(0x87c))+_0x1f2218(0x22b)+(_0x3d1515[_0x1f2218(0x989)]?'':_0x1f2218(0x5db))+_0x1f2218(0x142)+[_0x1f2218(0xa36),_0x1f2218(0x1f7),_0x1f2218(0x785)][_0x1f2218(0x7ee)](_0x4949d2=>_0x50bb87(_0x4949d2,_0x3d1515[_0x1f2218(0x4f2)]??'left',this[_0x1f2218(0x544)](_0x4949d2[_0x1f2218(0xc83)](0x0)[_0x1f2218(0x380)]()+_0x4949d2[_0x1f2218(0x3d3)](0x1))))['join']('')+_0x1f2218(0xd90)+this[_0x1f2218(0x544)](_0x1f2218(0xd0f))+_0x1f2218(0xa26)+escapeHtml(_0x3d1515[_0x1f2218(0xac6)]??'')+_0x1f2218(0xd1d)+(_0x3d1515['show_attribute_list']?_0x1f2218(0xe25):'')+_0x1f2218(0x6e3)+this['_eT'](_0x1f2218(0xbce))+'\x20'+_0x18e6e8('Shows\x20a\x20compact\x20dropdown\x20list\x20of\x20attributes\x20for\x20entities.')+_0x1f2218(0x22b)+(_0x3d1515[_0x1f2218(0x9ea)]?'':_0x1f2218(0x5db))+_0x1f2218(0x7ec)+[_0x1f2218(0xa36),'center',_0x1f2218(0x785)][_0x1f2218(0x7ee)](_0x345e9b=>_0x50bb87(_0x345e9b,_0x3d1515[_0x1f2218(0x4ad)]??'left',this[_0x1f2218(0x544)](_0x345e9b[_0x1f2218(0xc83)](0x0)[_0x1f2218(0x380)]()+_0x345e9b[_0x1f2218(0x3d3)](0x1))))[_0x1f2218(0xc0d)]('')+_0x1f2218(0xcb0)+(_0x3d1515['show_pph_picker']?_0x1f2218(0xe25):'')+_0x1f2218(0x6e3)+this['_eT'](_0x1f2218(0x473))+'\x20'+_0x18e6e8('Shows\x20a\x20Points/Hour\x20dropdown\x20on\x20the\x20card\x20itself,\x20so\x20the\x20data\x20resolution\x20can\x20be\x20changed\x20without\x20opening\x20the\x20editor.\x20Auto\x20returns\x20to\x20the\x20configured\x20value.\x20The\x20selection\x20persists\x20per\x20card\x20and\x20takes\x20priority\x20over\x20Auto\x20Scale\x20while\x20active.\x20The\x20Group\x20field\x20keeps\x20the\x20Points/Hour\x20selection\x20in\x20sync\x20across\x20every\x20card\x20sharing\x20that\x20name\x20—\x20receivers\x20do\x20not\x20need\x20the\x20picker\x20visible,\x20so\x20one\x20card\x20can\x20drive\x20the\x20page.\x20Independent\x20from\x20the\x20Group\x20By\x20picker\x27s\x20group.')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20_0x50bb87(_0x1548c9,_0x3d1515[_0x1f2218(0x4ef)]??_0x1f2218(0xa36),this[_0x1f2218(0x544)](_0x1548c9['charAt'](0x0)[_0x1f2218(0x380)]()+_0x1548c9[_0x1f2218(0x3d3)](0x1))))['join']('')+_0x1f2218(0xc12)+this[_0x1f2218(0x544)](_0x1f2218(0xd0f))+_0x1f2218(0xa26)+escapeHtml(_0x3d1515[_0x1f2218(0x11d)]??'')+_0x1f2218(0x8d8)+(_0x3d1515[_0x1f2218(0x398)]?_0x1f2218(0xe25):'')+_0x1f2218(0x6e3)+this['_eT'](_0x1f2218(0xc52))+'\x20'+_0x18e6e8(_0x1f2218(0xbb9))+_0x1f2218(0x22b)+(_0x3d1515[_0x1f2218(0x398)]?'':_0x1f2218(0x5db))+_0x1f2218(0xc06)+[_0x1f2218(0xa36),_0x1f2218(0x1f7),'right'][_0x1f2218(0x7ee)](_0x57896c=>_0x50bb87(_0x57896c,_0x3d1515[_0x1f2218(0x40e)]??_0x1f2218(0xa36),this['_eT'](_0x57896c[_0x1f2218(0xc83)](0x0)[_0x1f2218(0x380)]()+_0x57896c['slice'](0x1))))[_0x1f2218(0xc0d)]('')+_0x1f2218(0x541)+this[_0x1f2218(0x544)](_0x1f2218(0xd0f))+_0x1f2218(0xa26)+escapeHtml(_0x3d1515[_0x1f2218(0xded)]??'')+_0x1f2218(0x19f)+(_0x544843&&!_0x105bd5?_0x1f2218(0x456)+(_0x3d1515['brush_zoom']!==![]?_0x1f2218(0xe25):'')+'>'+this['_eT'](_0x1f2218(0x52d))+'\x20'+_0x18e6e8(_0x1f2218(0x388))+_0x1f2218(0x260):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x544843&&!_0x105bd5?_0x1f2218(0x5df)+(_0x3d1515[_0x1f2218(0xc76)]?'checked':'')+_0x1f2218(0x6e3)+this['_eT'](_0x1f2218(0x78f))+'\x20'+_0x18e6e8('Click\x20a\x20single\x20bucket\x20on\x20the\x20graph\x20to\x20zoom\x20into\x20just\x20that\x20bucket\x20—\x20click\x20a\x20month\x20bar\x20to\x20see\x20its\x20days,\x20a\x20day\x20to\x20see\x20its\x20hours.\x20Double-click\x20steps\x20back\x20out,\x20same\x20as\x20brush\x20zooming,\x20and\x20Zoom\x20Sync\x20carries\x20the\x20new\x20window\x20to\x20grouped\x20cards.\x20Does\x20nothing\x20once\x20the\x20view\x20is\x20already\x20a\x20single\x20bucket.')+_0x1f2218(0x260):'')+_0x1f2218(0xdef)+(_0x2615d3?_0x1f2218(0x487)+(_0x3d1515[_0x1f2218(0xb22)]!==![]?_0x1f2218(0xe25):'')+_0x1f2218(0x6e3)+this[_0x1f2218(0x544)](_0x1f2218(0xb3b))+'\x20'+_0x18e6e8(_0x1f2218(0x183))+_0x1f2218(0x260):'')+_0x1f2218(0xdef)+(_0x5249d2===_0x1f2218(0xcca)?_0x1f2218(0x487)+(_0x3d1515[_0x1f2218(0xb22)]!==![]?_0x1f2218(0xe25):'')+_0x1f2218(0x6e3)+this[_0x1f2218(0x544)](_0x1f2218(0x885))+'\x20'+_0x18e6e8(_0x1f2218(0x907))+'':'')+_0x1f2218(0xdef)+(_0x5249d2===_0x1f2218(0x621)?'{const _0x4d2389=_0x1f2218,_0x3a50c5=_0x3d1515[_0x4d2389(0x908)],_0x572f12=['1H','2H','4H','8H',_0x4d2389(0x50c),_0x4d2389(0x1da),'7D'],_0x19e71f=_0x3a50c5&&Array[_0x4d2389(0x724)](_0x3a50c5)&&_0x3a50c5[_0x4d2389(0xc70)]?_0x3a50c5[_0x4d2389(0x15b)](_0x1cae92):_0x572f12[_0x4d2389(0x15b)](_0x1cae92);return _0x4d2389(0x742)+_0x1cae92+'\x22\x20'+(_0x19e71f?_0x4d2389(0xe25):'')+_0x4d2389(0xd56)+_0x1cae92+_0x4d2389(0x260);})[_0x1f2218(0xc0d)]('')+_0x1f2218(0xcc3):'')+_0x1f2218(0xd0b):_0x1f2218(0x5e8)+this[_0x1f2218(0x544)](_0x1f2218(0xa2d))+_0x1f2218(0xcc3))+_0x1f2218(0x297)+(_0x144c99&&!_0x105bd5?_0x1f2218(0xcd3)+this[_0x1f2218(0x544)](_0x1f2218(0xad6))+_0x1f2218(0xa77)+(_0x1280b2?_0x1f2218(0xad1)+(_0x3d1515[_0x1f2218(0xea6)]?'checked':'')+'>'+this[_0x1f2218(0x544)](_0x1f2218(0x205))+'\x20'+_0x18e6e8(_0x1f2218(0x153))+_0x1f2218(0x260)+(_0x3d1515[_0x1f2218(0xea6)]?_0x1f2218(0xa7a)+this[_0x1f2218(0x544)](_0x1f2218(0x752))+_0x1f2218(0xa26)+escapeHtml(_0x3d1515[_0x1f2218(0x567)]??'')+_0x1f2218(0x426)+escapeHtml(this[_0x1f2218(0xbba)](_0x3d1515[_0x1f2218(0x567)]||_0x1f2218(0x203)))+'\x22>':''):'')+_0x1f2218(0x39a)+(_0x3d1515['show_tooltip']!==![]?'checked':'')+_0x1f2218(0x6e3)+this[_0x1f2218(0x544)](_0x1f2218(0xad6))+'\x20'+_0x18e6e8(_0x1f2218(0x57a))+''+(_0x3d1515[_0x1f2218(0x4ec)]!==![]?_0x1f2218(0x487)+(_0x3d1515[_0x1f2218(0xb22)]!==![]?_0x1f2218(0xe25):'')+_0x1f2218(0x6e3)+this['_eT'](_0x1f2218(0x311))+'\x20'+_0x18e6e8(_0x1f2218(0xd7b))+_0x1f2218(0x260)+(_0x3d1515[_0x1f2218(0xda9)]?_0x1f2218(0x9d3)+(_0x3d1515[_0x1f2218(0xb09)]!==![]?_0x1f2218(0xe25):'')+'>'+this[_0x1f2218(0x544)](_0x1f2218(0x90b))+'\x20'+_0x18e6e8('When\x20the\x20chart\x20is\x20stacked\x20with\x20two\x20or\x20more\x20stack\x20groups,\x20adds\x20a\x20per-group\x20total\x20row\x20for\x20each\x20named\x20group\x20(e.g.\x20\x27Apples\x20Total\x27).\x20Independent\x20of\x20Tooltip\x20Total\x20—\x20turn\x20both\x20on\x20to\x20show\x20the\x20group\x20totals\x20AND\x20the\x20grand\x20Total\x20of\x20all\x20entities\x20together.')+'':''):'')+(_0x544843&&_0x3d1515[_0x1f2218(0x4ec)]!==![]?_0x1f2218(0x836)+(_0x3d1515[_0x1f2218(0x729)]?_0x1f2218(0xe25):'')+_0x1f2218(0x6e3)+this[_0x1f2218(0x544)](_0x1f2218(0x498))+'\x20'+_0x18e6e8(_0x1f2218(0x9dd))+_0x1f2218(0x260):'')+(_0x544843&&_0x3d1515['show_tooltip']!==![]?'':'')+_0x1f2218(0x56d)+(_0x544843&&_0x3d1515['show_tooltip']!==![]?_0x1f2218(0xd0c)+this[_0x1f2218(0x544)](_0x1f2218(0xe4f))+'\x20'+_0x18e6e8(_0x1f2218(0x3d1))+_0x1f2218(0xe4a)+[[_0x1f2218(0x8ee),this[_0x1f2218(0x544)](_0x1f2218(0x9c2))],[_0x1f2218(0x7be),this[_0x1f2218(0x544)]('Reverse')],[_0x1f2218(0xd70),this['_eT'](_0x1f2218(0x4d5))]][_0x1f2218(0x7ee)](([_0x4b2cb8,_0x48f58a])=>_0x50bb87(_0x4b2cb8,_0x3d1515[_0x1f2218(0x425)]??_0x1f2218(0x8ee),_0x48f58a))[_0x1f2218(0xc0d)]('')+_0x1f2218(0xe5b):'')+'':'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(!_0x105bd5?_0x1f2218(0x352)+this[_0x1f2218(0x544)](_0x1f2218(0x7f7))+_0x1f2218(0x124)+this[_0x1f2218(0x544)](_0x1f2218(0x348))+'\x20'+_0x18e6e8('Entity\x20that\x20reports\x20battery\x20level\x20(0–100%).\x20Displays\x20a\x20battery\x20icon\x20with\x20level\x20and\x20percentage\x20in\x20the\x20top-right\x20corner\x20of\x20the\x20card\x20header\x20—\x20or\x20at\x20the\x20top-right\x20of\x20the\x20card\x20when\x20there\x20is\x20no\x20header.\x20Only\x20entities\x20with\x20device_class\x20battery\x20are\x20listed.\x20Leave\x20empty\x20to\x20hide.')+_0x1f2218(0x4b8)+(_0x3d1515[_0x1f2218(0x1c6)]||'')+'\x22>':'')+_0x1c9793(0x56d):'')+_0x1c9793(0x20c)+this[_0x1c9793(0x544)]('Label')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this[_0x1f2218(0x544)](_0x1f2218(0xe51))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20':'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20',_0x3fed0b=_0x3d1515[_0x1f2218(0xe1a)]?buildAreaSuffixes(this['_hass'],this[_0x1f2218(0x248)],null,(_0x5a13cc,_0x427545,_0xeaab39)=>applyAttributeName(_0x3d1515,this[_0x1f2218(0xb5b)],_0xeaab39,_0x5a13cc,_0x5a13cc[_0x1f2218(0x476)])):null,_0x16f7c2=this[_0x1f2218(0x248)][_0x1f2218(0x7ee)]((_0x51bbe9,_0x3565c0)=>{const _0x349f5d=_0x1f2218,_0x18abc8=this[_0x349f5d(0xb5b)]?.[_0x349f5d(0x28e)]?.[_0x51bbe9[_0x349f5d(0xae9)]]||null,_0x2c62a3=_0x18abc8?.[_0x349f5d(0xcd4)]?.[_0x349f5d(0xdb6)]??_0x51bbe9[_0x349f5d(0x673)]??_0x51bbe9[_0x349f5d(0xae9)]??_0x349f5d(0xba7)+(_0x3565c0+0x1),_0x55aa10=_0x3fed0b&&_0x51bbe9[_0x349f5d(0x673)]&&typeof _0x51bbe9[_0x349f5d(0x673)]==='string'&&!isTemplateString(_0x51bbe9[_0x349f5d(0x673)])?_0x51bbe9[_0x349f5d(0x673)]:applyAttributeName(_0x3d1515,this[_0x349f5d(0xb5b)],_0x2c62a3,_0x51bbe9,_0x51bbe9[_0x349f5d(0x476)]),_0x38309a=_0x55aa10+(_0x3fed0b?.['get'](_0x3565c0)||''),_0x1e3386=_0x18abc8?parseFloat(_0x18abc8['state']):null,_0x33752c=_0x18abc8?.[_0x349f5d(0xcd4)]?.[_0x349f5d(0x24f)]||'',_0x23ea49=((()=>{const _0x460e86=_0x349f5d,_0x3fbe73=_0x51bbe9[_0x460e86(0x73c)];if(!_0x3fbe73||_0x3fbe73===_0x460e86(0x74a))return _0x460e86(0x880);if(typeof _0x3fbe73===_0x460e86(0x19d)&&_0x3fbe73[_0x460e86(0x15b)]('{{'))return this[_0x460e86(0x88b)](_0x3fbe73)||_0x460e86(0x880);return _0x3fbe73||'#ff4757';})()),_0x534b6c=_0x51bbe9[_0x349f5d(0x8bc)]??'primary',_0x3c16b4=_0x51bbe9[_0x349f5d(0x529)]??'line',_0xeb2189=_0x51bbe9[_0x349f5d(0x36d)]??'avg',_0xa9e3a8=_0x51bbe9[_0x349f5d(0xd10)]??_0x349f5d(0xbd5),_0x31e425=_0x51bbe9['show_extrema']??_0x349f5d(0x55b),_0x217701=_0x51bbe9['rise_fall_colors']??null,_0x122fdb=_0x51bbe9['color_thresholds']??null,_0x4c46c1=this[_0x349f5d(0x21b)][_0x349f5d(0x9b5)]('e-'+_0x3565c0),_0x174dc1=this[_0x349f5d(0x926)][_0x3565c0]||_0x349f5d(0xa1e),_0x3117e2=((()=>{const _0x451dd3=_0x349f5d;if(_0x51bbe9[_0x451dd3(0x592)]||_0x51bbe9[_0x451dd3(0x476)]||_0x51bbe9[_0x451dd3(0x3d5)]||_0x51bbe9[_0x451dd3(0x659)])return''+this['_eT'](_0x451dd3(0x706))+_0x451dd3(0xd47);if(_0x51bbe9[_0x451dd3(0x378)]){const _0x50d479=_0x51bbe9[_0x451dd3(0x378)]['includes'](':');return _0x451dd3(0xb4a)+(_0x50d479?_0x451dd3(0xaf3):_0x451dd3(0x95a))+'\x22>'+(_0x50d479?this[_0x451dd3(0x544)](_0x451dd3(0xbbd)):this[_0x451dd3(0x544)](_0x451dd3(0x3ab)))+'';}const _0x1605fc=_0x18abc8?.[_0x451dd3(0xcd4)]?.[_0x451dd3(0x82a)];if(_0x1605fc===_0x451dd3(0xb47)||_0x1605fc===_0x451dd3(0x81f)||_0x1605fc==='total_increasing')return _0x451dd3(0x8c6)+_0x1605fc+'\x20—\x20long-term\x20statistics\x20available,\x20used\x20for\x20windows\x20beyond\x20raw\x20history\x20retention.\x22>'+this[_0x451dd3(0x544)](_0x451dd3(0x3ab))+_0x451dd3(0xd47);return _0x451dd3(0x3f3)+this['_eT']('History\x20only')+_0x451dd3(0xd47);})()),_0x139bd3=Array['isArray'](_0x51bbe9[_0x349f5d(0xaa8)])?_0x51bbe9['moving_averages']['map']((_0x2bed52,_0x1669ad)=>'\x0a\x20\x20\x20\x20\x20\x20\x20\x20_0x349f5d(0x802)+_0x4f8ea7+_0x349f5d(0xa57)+this[_0x349f5d(0x544)](_0x349f5d(0x2ab))+_0x349f5d(0xdf8)+escapeHtml(String(_0x35287c[_0x349f5d(0xe91)]??0x0))+_0x349f5d(0xb31)+this['_eT'](_0x349f5d(0xd99))+_0x349f5d(0x56c)+escapeHtml(_0x35287c[_0x349f5d(0x73c)]??'')+_0x349f5d(0xe84)+escapeHtml(this[_0x349f5d(0xbba)](_0x35287c[_0x349f5d(0x73c)]))+'\x22'+(/^[a-z_]+\.[a-z0-9_]+/i[_0x349f5d(0x2e2)](String(_0x35287c[_0x349f5d(0x73c)]??''))||String(_0x35287c['color']??'')[_0x349f5d(0x15b)]('{{')?_0x349f5d(0x16a):'')+_0x349f5d(0xd3a)+this[_0x349f5d(0x544)](_0x349f5d(0xdbe))+_0x349f5d(0x587))['join'](''):'',_0x2e5a42=_0x51bbe9[_0x349f5d(0xe5c)]!==![],_0x275105=_0x51bbe9[_0x349f5d(0xc32)]!==![],_0x52122d=_0x51bbe9['show_fill']!==![],_0x2f57e7=!!_0x51bbe9[_0x349f5d(0x964)],_0x2b657b=_0x51bbe9[_0x349f5d(0x45d)]!==![],_0x432f58=_0x51bbe9[_0x349f5d(0xd5e)]!==![],_0x656fac=!!_0x51bbe9[_0x349f5d(0xe73)],_0x20fece=_0x381d6e=>_0x381d6e?'':_0x349f5d(0xa5e);return _0x349f5d(0xe67)+(_0x4c46c1?_0x349f5d(0x84f):'')+'\x20'+(_0x51bbe9['enabled']===![]?_0x349f5d(0xc0b):'')+_0x349f5d(0x5d9)+_0x3565c0+'\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20':'')+_0x349f5d(0xdef)+((_0x51bbe9[_0x349f5d(0x36d)]??_0x349f5d(0x44f))===_0x349f5d(0x32a)?_0x349f5d(0x375)+(_0x51bbe9['change_ignore_zero']===!![]?_0x349f5d(0xe25):'')+_0x349f5d(0x6e3)+this[_0x349f5d(0x544)](_0x349f5d(0x20b))+'\x20'+_0x18e6e8(_0x349f5d(0xc10))+_0x349f5d(0x260):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x50bb87(_0x349f5d(0xbd5),_0xa9e3a8,this[_0x349f5d(0x544)](_0x349f5d(0x970)))+_0x50bb87(_0x349f5d(0x514),_0xa9e3a8,'1.234,56')+_0x50bb87(_0x349f5d(0x16e),_0xa9e3a8,_0x349f5d(0xc82))+_0x349f5d(0x182)+(!_0x656fac?'lk':'')+_0x349f5d(0x3da)+this[_0x349f5d(0x544)]('Legend')+'\x20'+_0x18e6e8(_0x349f5d(0xe32))+_0x349f5d(0x1cf)+(_0x656fac?_0x349f5d(0xe25):'')+_0x349f5d(0x23b)+(_0x656fac?'':_0x349f5d(0xa5e))+_0x349f5d(0x401)+((_0x51bbe9[_0x349f5d(0x6d0)]||[_0x349f5d(0xc2f),_0x349f5d(0x44f),_0x349f5d(0xa08)])[_0x349f5d(0x15b)](_0x349f5d(0xc2f))?_0x349f5d(0xe25):'')+'>'+this[_0x349f5d(0x544)]('Min')+_0x349f5d(0x4f3)+((_0x51bbe9[_0x349f5d(0x6d0)]||[_0x349f5d(0xc2f),_0x349f5d(0x44f),_0x349f5d(0xa08)])[_0x349f5d(0x15b)](_0x349f5d(0x44f))?_0x349f5d(0xe25):'')+_0x349f5d(0x6e3)+this[_0x349f5d(0x544)](_0x349f5d(0x779))+_0x349f5d(0x9c4)+((_0x51bbe9[_0x349f5d(0x6d0)]||[_0x349f5d(0xc2f),_0x349f5d(0x44f),'max'])[_0x349f5d(0x15b)](_0x349f5d(0xa08))?_0x349f5d(0xe25):'')+_0x349f5d(0x6e3)+this[_0x349f5d(0x544)](_0x349f5d(0xddf))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this['_eT'](_0x349f5d(0xd7a))+'\x20'+_0x18e6e8('The\x20entity\x27s\x20current\x20state\x20right\x20now,\x20independent\x20of\x20the\x20period\x20shown\x20on\x20the\x20chart.\x20The\x20other\x20values\x20all\x20describe\x20the\x20displayed\x20range.')+_0x349f5d(0x8b4)+(_0x174dc1===_0x349f5d(0x7d1)?_0x349f5d(0x7f2):'')+'\x22\x20data-tc=\x22advanced\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this[_0x349f5d(0x544)]('Advanced\x20Calculations')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(this[_0x349f5d(0x620)](_0x349f5d(0x318),_0x5249d2)?_0x349f5d(0x41b)+(_0x51bbe9['invert']?_0x349f5d(0xe25):'')+_0x349f5d(0x6e3)+this['_eT'](_0x349f5d(0x179))+'\x20'+_0x18e6e8(_0x349f5d(0x2dc))+_0x349f5d(0x5be):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this[_0x349f5d(0x544)](_0x349f5d(0xdc4))+'\x20'+_0x18e6e8('Maps\x20non-numeric\x20state\x20strings\x20to\x20numeric\x20values\x20for\x20graphing.\x20Each\x20line\x20you\x20enter\x20is\x20assigned\x20a\x20number\x20starting\x20at\x200\x20in\x20order.\x20For\x20example:\x20if\x20you\x20enter\x20\x22off\x22\x20on\x20line\x201\x20and\x20\x22on\x22\x20on\x20line\x202,\x20the\x20graph\x20will\x20show\x200\x20for\x20off\x20and\x201\x20for\x20on.\x20Required\x20for\x20binary_sensor,\x20input_boolean,\x20and\x20other\x20non-numeric\x20entities.')+_0x349f5d(0xae7)+(_0x51bbe9[_0x349f5d(0x659)]?_0x51bbe9[_0x349f5d(0x659)]['map'](_0x4b9694=>{const _0x66b87c=_0x349f5d;let _0x28bce3=_0x4b9694[_0x66b87c(0xe91)];if(_0x4b9694['label']||_0x4b9694[_0x66b87c(0x73c)])_0x28bce3+=',\x20'+(_0x4b9694[_0x66b87c(0x7d7)]||'');if(_0x4b9694[_0x66b87c(0x73c)])_0x28bce3+=',\x20'+_0x4b9694[_0x66b87c(0x73c)];return _0x28bce3;})['join']('\x0a'):'')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+this['_eT'](_0x349f5d(0xc40))+'\x20'+_0x18e6e8(_0x349f5d(0xd24))+_0x349f5d(0x1fa)+this[_0x349f5d(0x544)](_0x349f5d(0x2e3))+'\x20'+_0x18e6e8(_0x349f5d(0x6ac))+_0x349f5d(0x2e9)+escapeHtml(_0x51bbe9[_0x349f5d(0x3d5)]??'')+_0x349f5d(0xb31)+this[_0x349f5d(0x544)](_0x349f5d(0x848))+'\x20'+_0x18e6e8(_0x349f5d(0x91c))+_0x349f5d(0x8a6)+escapeHtml(_0x51bbe9['data_time_field']??'')+'\x22>'+this[_0x349f5d(0x544)](_0x349f5d(0x386))+'\x20'+_0x18e6e8(_0x349f5d(0x504))+_0x349f5d(0x492)+(_0x51bbe9[_0x349f5d(0xfb)]?'checked':'')+'\x20'+(_0x2b657b?'':_0x349f5d(0x32d))+_0x349f5d(0x6e3)+this[_0x349f5d(0x544)]('Hide\x20Name')+'\x20'+_0x18e6e8(_0x349f5d(0x65a))+_0x349f5d(0x260)+(_0x2b657b&&!['','sum',_0x349f5d(0x44f)][_0x349f5d(0x15b)](_0x51bbe9['primary_state_as']??(_0x51bbe9['show_state_last']?_0x349f5d(0xe01):''))?_0x349f5d(0xced)+(_0x51bbe9[_0x349f5d(0x1c7)]?_0x349f5d(0xe25):'')+_0x349f5d(0x6e3)+this[_0x349f5d(0x544)](_0x349f5d(0x3ea))+'\x20'+_0x18e6e8(_0x349f5d(0xb61))+_0x349f5d(0x260):'')+(_0x2b657b&&(_0x51bbe9[_0x349f5d(0x3f2)]??(_0x51bbe9[_0x349f5d(0xcbb)]?'last':''))!==''?_0x349f5d(0x90e)+(_0x51bbe9[_0x349f5d(0xde5)]?_0x349f5d(0xe25):'')+_0x349f5d(0x6e3)+this[_0x349f5d(0x544)](_0x349f5d(0xbb2))+'\x20'+_0x18e6e8(_0x349f5d(0x322))+_0x349f5d(0x260):'')+_0x349f5d(0x1fa)+this[_0x349f5d(0x544)](_0x349f5d(0xb44))+'\x20'+_0x18e6e8(_0x349f5d(0x8a1))+_0x349f5d(0xb81)+escapeHtml(_0x51bbe9[_0x349f5d(0x393)]??'')+'\x22\x20'+(_0x2b657b?'':_0x349f5d(0x32d))+'>