-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstrip-card.js
More file actions
555 lines (537 loc) · 118 KB
/
Copy pathstrip-card.js
File metadata and controls
555 lines (537 loc) · 118 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
function _0x3661(_0x41f93f,_0x1d5a87){_0x41f93f=_0x41f93f-0x1ee;const _0x16ef8a=_0x16ef();let _0x3661cf=_0x16ef8a[_0x41f93f];return _0x3661cf;}const _0x51fa3c=_0x3661;(function(_0x521038,_0x3921bf){const _0x4873b6=_0x3661,_0x4fb5da=_0x521038();while(!![]){try{const _0x201e41=-parseInt(_0x4873b6(0x34b))/0x1*(parseInt(_0x4873b6(0x39b))/0x2)+parseInt(_0x4873b6(0x30b))/0x3+-parseInt(_0x4873b6(0x3ae))/0x4*(-parseInt(_0x4873b6(0x293))/0x5)+parseInt(_0x4873b6(0x28a))/0x6*(parseInt(_0x4873b6(0x3a2))/0x7)+parseInt(_0x4873b6(0x2f8))/0x8+parseInt(_0x4873b6(0x335))/0x9*(parseInt(_0x4873b6(0x3b9))/0xa)+-parseInt(_0x4873b6(0x21f))/0xb*(parseInt(_0x4873b6(0x2ed))/0xc);if(_0x201e41===_0x3921bf)break;else _0x4fb5da['push'](_0x4fb5da['shift']());}catch(_0x363853){_0x4fb5da['push'](_0x4fb5da['shift']());}}}(_0x16ef,0x8305b));const LitElement=Object[_0x51fa3c(0x345)](customElements[_0x51fa3c(0x31c)](_0x51fa3c(0x3ba))),html=LitElement[_0x51fa3c(0x2e8)][_0x51fa3c(0x30c)],css=LitElement[_0x51fa3c(0x2e8)][_0x51fa3c(0x2b0)];console[_0x51fa3c(0x374)](_0x51fa3c(0x274),_0x51fa3c(0x32b),'color:\x20white;\x20font-weight:\x20bold;\x20background:\x20dimgray'),window[_0x51fa3c(0x276)]=window[_0x51fa3c(0x276)]||[],window[_0x51fa3c(0x276)][_0x51fa3c(0x341)]({'type':_0x51fa3c(0x2c4),'name':_0x51fa3c(0x20d),'description':_0x51fa3c(0x2ca),'preview':!![]});const STRIP_CARD_DEFAULTS=Object[_0x51fa3c(0x2da)]({'title':'','duration':0x14,'separator':'•','separator_color':_0x51fa3c(0x3b1),'separator_font_size':_0x51fa3c(0x26e),'separator_font_weight':_0x51fa3c(0x22a),'font_size':'14px','name_color':'var(--primary-text-color)','value_color':_0x51fa3c(0x25b),'unit_color':_0x51fa3c(0x3e2),'icon_color':_0x51fa3c(0x2ee),'show_icon':!![],'pause_on_hover':![],'pause_on_click':![],'hide_when_empty':![],'border_radius':_0x51fa3c(0x2c3),'card_height':_0x51fa3c(0x2f5),'card_width':_0x51fa3c(0x3c0),'fading':!![],'vertical_scroll':![],'vertical_alignment':'stack','continuous_scroll':!![],'transparent':![],'scroll_speed':undefined,'scroll_direction':'left','full_width':![],'badge_style':![],'badge_background':_0x51fa3c(0x25b),'badge_label_color':_0x51fa3c(0x2ee),'badge_value_color':_0x51fa3c(0x2ee),'badge_height':_0x51fa3c(0x313),'badge_font_size':_0x51fa3c(0x285),'badge_icon_size':_0x51fa3c(0x28d),'empty_message':_0x51fa3c(0x210),'format_number':![],'pause_when_hidden':!![],'respect_reduced_motion':!![],'trend':![]});class StripCard extends LitElement{static get[_0x51fa3c(0x355)](){return{'hass':{'type':Object},'_config':{'type':Object},'_sidebarWidth':{'type':Number},'_scrollbarWidth':{'type':Number},'_animationDuration':{'type':Number},'_isPaused':{'type':Boolean}};}static[_0x51fa3c(0x25a)](){const _0x29d38c=_0x51fa3c;return{'type':_0x29d38c(0x356),'entities':[{'entity':_0x29d38c(0x3bf),'name':_0x29d38c(0x3ea)},{'entity':_0x29d38c(0x263),'name':_0x29d38c(0x2bc)}],'duration':0x14,'separator':'•','empty_message':_0x29d38c(0x210)};}static async[_0x51fa3c(0x395)](){const _0x4faed5=_0x51fa3c;return!customElements[_0x4faed5(0x31c)]('strip-card-editor')&&customElements[_0x4faed5(0x25e)](_0x4faed5(0x3ab),StripCardEditor),document[_0x4faed5(0x258)](_0x4faed5(0x3ab));}constructor(){const _0xac1104=_0x51fa3c;super(),this['_nameReplace']=[],this[_0xac1104(0x38c)]=new Map(),this[_0xac1104(0x37f)]=0x0,this['_scrollbarWidth']=0x0,this[_0xac1104(0x283)]=null,this[_0xac1104(0x3c5)]=null,this[_0xac1104(0x365)]=undefined,this[_0xac1104(0x284)]=![],this['_jinjaCache']=new Map(),this[_0xac1104(0x31f)]=new Set(),this[_0xac1104(0x2a1)]=null,this['_jinjaTemplates']=new Set(),this[_0xac1104(0x255)]=0x7530,this[_0xac1104(0x34f)]=new Map(),this['_statesProxy']=null,this[_0xac1104(0x394)]=null,this[_0xac1104(0x372)]=new Map(),this[_0xac1104(0x3eb)]=0x12c,this['_trendMemory']=new Map(),this['_offscreen']=![],this[_0xac1104(0x3aa)]=![],this[_0xac1104(0x2e0)]=null,this[_0xac1104(0x371)]=null,this['_measuredItemsWidth']=null,this['_copiesRendered']=0x0,this[_0xac1104(0x206)]={},this[_0xac1104(0x222)]={'timer':null,'held':![],'cooldown':null,'startX':0x0,'startY':0x0};}[_0x51fa3c(0x353)](_0x567409){const _0x56cc2e=_0x51fa3c;if(!_0x567409['entities']||!Array[_0x56cc2e(0x2f0)](_0x567409[_0x56cc2e(0x2b8)]))throw new Error('The\x20\x27entities\x27\x20list\x20must\x20be\x20present\x20in\x20the\x20configuration.');const _0x27d88b=_0x567409&&_0x567409[_0x56cc2e(0x382)]?_0x567409[_0x56cc2e(0x382)]:[];this['_nameReplace']=Array[_0x56cc2e(0x2f0)](_0x27d88b)?_0x27d88b:[_0x27d88b],this['_config']={'type':_0x56cc2e(0x356),...STRIP_CARD_DEFAULTS,..._0x567409},this[_0x56cc2e(0x365)]=undefined,this['_isPaused']=![],this[_0x56cc2e(0x38c)][_0x56cc2e(0x201)](),this[_0x56cc2e(0x379)]=null,this[_0x56cc2e(0x3cf)]=0x0,this[_0x56cc2e(0x351)]=null;const _0x269179=[_0x56cc2e(0x2ac),'font_size','border_radius',_0x56cc2e(0x2f9),_0x56cc2e(0x215),_0x56cc2e(0x264),_0x56cc2e(0x3ac),_0x56cc2e(0x3e6),'empty_message',_0x56cc2e(0x2f2),_0x56cc2e(0x281),_0x56cc2e(0x3b6),_0x56cc2e(0x262),_0x56cc2e(0x290),'separator_font_size',_0x56cc2e(0x3c7),_0x56cc2e(0x321),_0x56cc2e(0x259),'badge_value_color'];this['_configHasTemplate']={};for(const _0x24fa13 of _0x269179){const _0x1c2272=this[_0x56cc2e(0x3c9)][_0x24fa13];this[_0x56cc2e(0x206)][_0x24fa13]=typeof _0x1c2272===_0x56cc2e(0x330)&&_0x1c2272['includes']('{{');}}[_0x51fa3c(0x240)](){return 0x1;}['connectedCallback'](){const _0x2b679d=_0x51fa3c;super[_0x2b679d(0x3ec)](),this[_0x2b679d(0x2dc)](),this[_0x2b679d(0x3c4)](),this[_0x2b679d(0x3b2)]();}['_setupVisibilityObservers'](){const _0x3b0b22=_0x51fa3c;try{typeof IntersectionObserver!=='undefined'&&!this[_0x3b0b22(0x2e0)]&&(this[_0x3b0b22(0x2e0)]=new IntersectionObserver(_0x13d25f=>{const _0x23edd8=_0x3b0b22,_0x492eee=_0x13d25f[_0x13d25f['length']-0x1],_0x5b0837=!_0x492eee[_0x23edd8(0x323)];_0x5b0837!==this[_0x23edd8(0x207)]&&(this[_0x23edd8(0x207)]=_0x5b0837,this[_0x23edd8(0x203)]());},{'threshold':0x0}),this['_visObserver']['observe'](this)),!this[_0x3b0b22(0x371)]&&(this[_0x3b0b22(0x371)]=()=>{const _0x478db8=_0x3b0b22,_0x290aef=document['visibilityState']===_0x478db8(0x2e7);_0x290aef!==this[_0x478db8(0x3aa)]&&(this[_0x478db8(0x3aa)]=_0x290aef,this[_0x478db8(0x203)]());},document['addEventListener'](_0x3b0b22(0x35e),this[_0x3b0b22(0x371)]));}catch(_0x16e32c){console[_0x3b0b22(0x2b4)](_0x3b0b22(0x3de),_0x16e32c);}}[_0x51fa3c(0x2ce)](){const _0x3624f5=_0x51fa3c;super['disconnectedCallback'](),this[_0x3624f5(0x283)]?.[_0x3624f5(0x233)](),this['_scrollbarResizeObserver']?.[_0x3624f5(0x233)]();this[_0x3624f5(0x2a1)]&&(clearTimeout(this[_0x3624f5(0x2a1)]),this[_0x3624f5(0x2a1)]=null);for(const _0x2e2120 of this[_0x3624f5(0x372)][_0x3624f5(0x29f)]()){try{if(_0x2e2120)_0x2e2120();}catch(_0x2ea60e){}}this[_0x3624f5(0x372)][_0x3624f5(0x201)](),this[_0x3624f5(0x2e0)]?.[_0x3624f5(0x233)](),this[_0x3624f5(0x2e0)]=null,this[_0x3624f5(0x371)]&&(document['removeEventListener'](_0x3624f5(0x35e),this['_onVisibilityChange']),this[_0x3624f5(0x371)]=null),this[_0x3624f5(0x351)]=null,this['_statesProxyHass']=null;}[_0x51fa3c(0x2dc)](){const _0x5dda3a=_0x51fa3c;try{const _0x5dc7d7=document[_0x5dda3a(0x29a)](_0x5dda3a(0x388)),_0x28b4ce=_0x5dc7d7?.['shadowRoot']?.[_0x5dda3a(0x29a)](_0x5dda3a(0x291)),_0x570289=_0x28b4ce?.[_0x5dda3a(0x3a3)]?.[_0x5dda3a(0x29a)](_0x5dda3a(0x316)),_0x3f64ea=_0x570289?.['querySelector'](_0x5dda3a(0x268));if(_0x3f64ea){this['_updateSidebarWidth'](_0x3f64ea);let _0x198afc=null;this[_0x5dda3a(0x283)]=new ResizeObserver(()=>{if(_0x198afc)return;_0x198afc=setTimeout(()=>{const _0x31f2b0=_0x3661;_0x198afc=null,this[_0x31f2b0(0x2cc)](_0x3f64ea);},0xc8);}),this[_0x5dda3a(0x283)][_0x5dda3a(0x3a7)](_0x3f64ea);}else setTimeout(()=>this['_setupSidebarObserver'](),0x3e8);}catch(_0xedfd4b){console[_0x5dda3a(0x2b4)](_0x5dda3a(0x23f),_0xedfd4b);}}[_0x51fa3c(0x3c4)](){const _0x32f866=_0x51fa3c;try{this['_updateScrollbarWidth']();let _0x5bb8d0=null;this[_0x32f866(0x3c5)]=new ResizeObserver(()=>{if(_0x5bb8d0)return;_0x5bb8d0=setTimeout(()=>{const _0x132de9=_0x3661;_0x5bb8d0=null,this[_0x132de9(0x224)]();},0xc8);}),this[_0x32f866(0x3c5)]['observe'](document[_0x32f866(0x2a7)]);}catch(_0x4e07dc){console['warn']('[Strip\x20Card]\x20Scrollbar\x20observer\x20setup\x20failed',_0x4e07dc);}}[_0x51fa3c(0x2cc)](_0x235231){const _0x152656=_0x51fa3c;if(!_0x235231)return;try{const _0x50dc1c=Math['ceil'](_0x235231[_0x152656(0x29d)]()[_0x152656(0x275)])||0x0;_0x50dc1c!==this['_sidebarWidth']&&(this['_sidebarWidth']=_0x50dc1c,this[_0x152656(0x203)]());}catch(_0x54c26d){console['warn']('[Strip\x20Card]\x20Sidebar\x20width\x20update\x20failed',_0x54c26d);}}['_updateScrollbarWidth'](){const _0x352e54=_0x51fa3c;try{const _0x5dd60b=window[_0x352e54(0x397)]-document[_0x352e54(0x2a7)]['clientWidth'];_0x5dd60b!==this[_0x352e54(0x3bb)]&&(this[_0x352e54(0x3bb)]=_0x5dd60b,this[_0x352e54(0x203)]());}catch(_0x3ecaf9){console[_0x352e54(0x2b4)]('[Strip\x20Card]\x20Scrollbar\x20width\x20update\x20failed',_0x3ecaf9);}}[_0x51fa3c(0x2d3)](_0x1cde29){const _0x293349=_0x51fa3c,_0x49ead5=new Event('hass-more-info',{'bubbles':!![],'composed':!![]});_0x49ead5[_0x293349(0x3e1)]={'entityId':_0x1cde29},this['dispatchEvent'](_0x49ead5);}[_0x51fa3c(0x1f7)](_0x2a672f){const _0x1022cc=_0x51fa3c;if(!this['_config'][_0x1022cc(0x1f0)])return;if(_0x2a672f['target'][_0x1022cc(0x380)](_0x1022cc(0x352)))return;this[_0x1022cc(0x284)]=!this[_0x1022cc(0x284)];}['_handleDown'](_0x29c3b2){const _0x1c7231=_0x51fa3c;this[_0x1c7231(0x222)]['held']=![],this[_0x1c7231(0x222)][_0x1c7231(0x3d5)]=_0x29c3b2[_0x1c7231(0x3d2)]?_0x29c3b2['touches'][0x0][_0x1c7231(0x2b3)]:_0x29c3b2['clientX'],this[_0x1c7231(0x222)][_0x1c7231(0x1f1)]=_0x29c3b2[_0x1c7231(0x3d2)]?_0x29c3b2['touches'][0x0]['clientY']:_0x29c3b2[_0x1c7231(0x253)],this[_0x1c7231(0x222)][_0x1c7231(0x390)]=setTimeout(()=>{const _0x2adbdd=_0x1c7231;this[_0x2adbdd(0x222)][_0x2adbdd(0x3d4)]=!![];},0x1f4);}[_0x51fa3c(0x3e9)](_0x2987bb,_0x3e0d7f){const _0x4fbdc4=_0x51fa3c;clearTimeout(this[_0x4fbdc4(0x222)][_0x4fbdc4(0x390)]);const _0x5f0cfc=_0x2987bb[_0x4fbdc4(0x238)]?_0x2987bb[_0x4fbdc4(0x238)][0x0][_0x4fbdc4(0x2b3)]:_0x2987bb[_0x4fbdc4(0x2b3)],_0x5a9669=_0x2987bb[_0x4fbdc4(0x238)]?_0x2987bb['changedTouches'][0x0][_0x4fbdc4(0x253)]:_0x2987bb[_0x4fbdc4(0x253)],_0x1747d3=Math[_0x4fbdc4(0x3da)](_0x5f0cfc-this[_0x4fbdc4(0x222)][_0x4fbdc4(0x3d5)]),_0x3744ed=Math[_0x4fbdc4(0x3da)](_0x5a9669-this[_0x4fbdc4(0x222)][_0x4fbdc4(0x1f1)]);if(_0x1747d3>0xa||_0x3744ed>0xa)return;this[_0x4fbdc4(0x222)][_0x4fbdc4(0x3d4)]?this[_0x4fbdc4(0x21b)](_0x3e0d7f,_0x4fbdc4(0x343)):this[_0x4fbdc4(0x222)][_0x4fbdc4(0x205)]?(clearTimeout(this[_0x4fbdc4(0x222)][_0x4fbdc4(0x205)]),this['_actionState'][_0x4fbdc4(0x205)]=null,this[_0x4fbdc4(0x21b)](_0x3e0d7f,_0x4fbdc4(0x3d1))):this[_0x4fbdc4(0x222)]['cooldown']=setTimeout(()=>{const _0x57ae82=_0x4fbdc4;this['_actionState']['cooldown']=null,this[_0x57ae82(0x21b)](_0x3e0d7f,_0x57ae82(0x2d5));},0xfa);}[_0x51fa3c(0x21b)](_0x4e5270,_0x45946e){const _0x378828=_0x51fa3c;if(!this[_0x378828(0x28e)]||!_0x4e5270)return;let _0x2ba8c6=_0x4e5270[_0x45946e+_0x378828(0x212)];if(!_0x2ba8c6&&_0x45946e==='tap')_0x2ba8c6={'action':_0x378828(0x328)};else{if(!_0x2ba8c6)return;}if(_0x2ba8c6[_0x378828(0x3e4)]===_0x378828(0x367))return;switch(_0x2ba8c6[_0x378828(0x3e4)]){case _0x378828(0x328):if(_0x4e5270[_0x378828(0x3bd)])this[_0x378828(0x2d3)](_0x4e5270[_0x378828(0x3bd)]);return;case _0x378828(0x32e):_0x4e5270[_0x378828(0x3bd)]&&this[_0x378828(0x28e)]['callService'](_0x378828(0x299),'toggle',{'entity_id':_0x4e5270['entity']});return;case'navigate':_0x2ba8c6['navigation_path']&&(window['history'][_0x378828(0x36b)](null,'',_0x2ba8c6[_0x378828(0x2ef)]),window['dispatchEvent'](new Event(_0x378828(0x211))));return;case _0x378828(0x219):_0x2ba8c6['url_path']&&window['open'](_0x2ba8c6[_0x378828(0x325)],_0x2ba8c6[_0x378828(0x30d)]===![]?_0x378828(0x3a8):_0x378828(0x239));return;case _0x378828(0x1f6):case _0x378828(0x39c):const _0x10dbaf=_0x2ba8c6[_0x378828(0x318)]||_0x2ba8c6[_0x378828(0x208)]||'';if(!_0x10dbaf)return;const [_0x114a20,_0x2631fd]=_0x10dbaf['split']('.');let _0x271969=_0x2ba8c6['data']||{};const _0x30af22=_0x2ba8c6[_0x378828(0x296)]||{};if(typeof _0x271969===_0x378828(0x330))try{_0x271969=JSON[_0x378828(0x3a9)](_0x271969);}catch(_0x347003){_0x271969={};}else _0x271969={..._0x271969};if(_0x30af22[_0x378828(0x354)])_0x271969['entity_id']=_0x30af22[_0x378828(0x354)];else!_0x271969[_0x378828(0x354)]&&_0x4e5270[_0x378828(0x3bd)]&&(_0x271969[_0x378828(0x354)]=_0x4e5270[_0x378828(0x3bd)]);this[_0x378828(0x28e)][_0x378828(0x340)](_0x114a20,_0x2631fd,_0x271969);return;case _0x378828(0x2d9):const _0x51561c=new Event('hass-start-voice-assistant',{'bubbles':!![],'composed':!![]});this[_0x378828(0x361)](_0x51561c);return;default:if(_0x45946e==='tap'&&_0x4e5270[_0x378828(0x3bd)])this[_0x378828(0x2d3)](_0x4e5270[_0x378828(0x3bd)]);return;}}['_transpileParens'](_0x2c6ff2){const _0x1b9036=_0x51fa3c;let _0x314dda='',_0x4dde35=0x0,_0x3f3ba3=![],_0x5ad0c0=![];while(_0x4dde35<_0x2c6ff2[_0x1b9036(0x22c)]){const _0x5aca21=_0x2c6ff2[_0x4dde35];if(_0x5aca21==='\x27'&&!_0x5ad0c0){_0x3f3ba3=!_0x3f3ba3,_0x314dda+=_0x5aca21,_0x4dde35++;continue;}if(_0x5aca21==='\x22'&&!_0x3f3ba3){_0x5ad0c0=!_0x5ad0c0,_0x314dda+=_0x5aca21,_0x4dde35++;continue;}if(!_0x3f3ba3&&!_0x5ad0c0&&_0x5aca21==='('){let _0x437f0b=0x0,_0x4a08a0=![],_0xc5f65d=![],_0x2411d4=-0x1;for(let _0x297b13=_0x4dde35;_0x297b13<_0x2c6ff2['length'];_0x297b13++){const _0x566f1a=_0x2c6ff2[_0x297b13];if(_0x566f1a==='\x27'&&!_0xc5f65d)_0x4a08a0=!_0x4a08a0;else{if(_0x566f1a==='\x22'&&!_0x4a08a0)_0xc5f65d=!_0xc5f65d;else{if(!_0x4a08a0&&!_0xc5f65d){if(_0x566f1a==='(')_0x437f0b++;else{if(_0x566f1a===')'){_0x437f0b--;if(_0x437f0b===0x0){_0x2411d4=_0x297b13;break;}}}}}}}if(_0x2411d4===-0x1){_0x314dda+=_0x5aca21,_0x4dde35++;continue;}const _0x57b6d9=_0x2c6ff2[_0x1b9036(0x266)](_0x4dde35+0x1,_0x2411d4);_0x314dda+='('+this[_0x1b9036(0x24c)](_0x57b6d9)+')',_0x4dde35=_0x2411d4+0x1;continue;}_0x314dda+=_0x5aca21,_0x4dde35++;}return _0x314dda;}['_jinjaWordOps'](_0x46a991){const _0x21322a=_0x51fa3c;let _0x263d8b='',_0xdcbbbc=0x0,_0x32ac62=![],_0x1bbc9c=![];const _0x64753=_0x3c52ac=>/[A-Za-z0-9_$]/['test'](_0x3c52ac||'');while(_0xdcbbbc<_0x46a991[_0x21322a(0x22c)]){const _0x88ffe7=_0x46a991[_0xdcbbbc];if(_0x88ffe7==='\x27'&&!_0x1bbc9c){_0x32ac62=!_0x32ac62,_0x263d8b+=_0x88ffe7,_0xdcbbbc++;continue;}if(_0x88ffe7==='\x22'&&!_0x32ac62){_0x1bbc9c=!_0x1bbc9c,_0x263d8b+=_0x88ffe7,_0xdcbbbc++;continue;}if(_0x32ac62||_0x1bbc9c){_0x263d8b+=_0x88ffe7,_0xdcbbbc++;continue;}if(/[A-Za-z_]/[_0x21322a(0x37c)](_0x88ffe7)&&!_0x64753(_0x46a991[_0xdcbbbc-0x1])&&_0x46a991[_0xdcbbbc-0x1]!=='.'){let _0x1bc92b=_0xdcbbbc;while(_0x1bc92b<_0x46a991[_0x21322a(0x22c)]&&_0x64753(_0x46a991[_0x1bc92b]))_0x1bc92b++;const _0x1a35ee=_0x46a991[_0x21322a(0x266)](_0xdcbbbc,_0x1bc92b),_0x425943=_0x559edd=>{const _0x334b8b=_0x21322a;let _0x2cfdca=_0x559edd;while(_0x2cfdca<_0x46a991['length']&&/\s/[_0x334b8b(0x37c)](_0x46a991[_0x2cfdca]))_0x2cfdca++;let _0x3ebb44=_0x2cfdca;while(_0x3ebb44<_0x46a991[_0x334b8b(0x22c)]&&_0x64753(_0x46a991[_0x3ebb44]))_0x3ebb44++;return{'word':_0x46a991['slice'](_0x2cfdca,_0x3ebb44),'end':_0x3ebb44};};if(_0x1a35ee==='is'){let _0x5450f4=![],_0xa390f=_0x425943(_0x1bc92b);_0xa390f['word']===_0x21322a(0x20a)&&(_0x5450f4=!![],_0xa390f=_0x425943(_0xa390f[_0x21322a(0x38b)]));if(_0xa390f['word']===_0x21322a(0x367)||_0xa390f[_0x21322a(0x3d6)]===_0x21322a(0x286)){_0x263d8b+=_0x5450f4?_0x21322a(0x21e):_0x21322a(0x3e8),_0xdcbbbc=_0xa390f[_0x21322a(0x38b)];continue;}if(_0xa390f[_0x21322a(0x3d6)]==='defined'){_0x263d8b+=_0x5450f4?_0x21322a(0x22e):_0x21322a(0x2a0),_0xdcbbbc=_0xa390f[_0x21322a(0x38b)];continue;}_0x263d8b+=_0x1a35ee,_0xdcbbbc=_0x1bc92b;continue;}const _0x58d8cd={'and':'&&','or':'||','not':'!','True':_0x21322a(0x3d3),'False':_0x21322a(0x2d6),'None':_0x21322a(0x24a),'none':_0x21322a(0x24a)};if(_0x58d8cd[_0x1a35ee]!==undefined){_0x263d8b+=_0x58d8cd[_0x1a35ee],_0xdcbbbc=_0x1bc92b;continue;}_0x263d8b+=_0x1a35ee,_0xdcbbbc=_0x1bc92b;continue;}_0x263d8b+=_0x88ffe7,_0xdcbbbc++;}return _0x263d8b;}[_0x51fa3c(0x357)](_0x42dbfe){const _0x130dfc=_0x51fa3c,_0x4d84c6=(_0x34af3e,_0x37df05,_0x50ba88)=>{const _0x3d2c23=_0x3661;let _0x367fbb=![],_0x57c225=![],_0x43c2d9=0x0;for(let _0x162655=_0x50ba88;_0x162655<_0x34af3e[_0x3d2c23(0x22c)];_0x162655++){const _0x2cc61d=_0x34af3e[_0x162655];if(_0x2cc61d==='\x27'&&!_0x57c225){_0x367fbb=!_0x367fbb;continue;}if(_0x2cc61d==='\x22'&&!_0x367fbb){_0x57c225=!_0x57c225;continue;}if(_0x367fbb||_0x57c225)continue;if(_0x2cc61d==='('||_0x2cc61d==='['||_0x2cc61d==='{'){_0x43c2d9++;continue;}if(_0x2cc61d===')'||_0x2cc61d===']'||_0x2cc61d==='}'){_0x43c2d9--;continue;}if(_0x43c2d9===0x0&&_0x34af3e[_0x3d2c23(0x35c)](_0x37df05,_0x162655)&&!/[A-Za-z0-9_$.]/[_0x3d2c23(0x37c)](_0x34af3e[_0x162655-0x1]||'')&&!/[A-Za-z0-9_$]/['test'](_0x34af3e[_0x162655+_0x37df05[_0x3d2c23(0x22c)]]||''))return _0x162655;}return-0x1;},_0x166e48=_0x4d84c6(_0x42dbfe,'if',0x0);if(_0x166e48===-0x1)return null;const _0x43d6c4=_0x42dbfe['slice'](0x0,_0x166e48)['trim']();if(_0x43d6c4==='')return null;const _0x171bc2=_0x42dbfe[_0x130dfc(0x266)](_0x166e48+0x2);let _0x186a6f=0x0,_0x2f8313=0x0,_0x396836=-0x1;for(;;){const _0x24de5a=_0x4d84c6(_0x171bc2,'if',_0x186a6f),_0x2a8472=_0x4d84c6(_0x171bc2,_0x130dfc(0x2e5),_0x186a6f);if(_0x2a8472===-0x1)break;if(_0x24de5a!==-0x1&&_0x24de5a<_0x2a8472){_0x2f8313++,_0x186a6f=_0x24de5a+0x2;continue;}if(_0x2f8313>0x0){_0x2f8313--,_0x186a6f=_0x2a8472+0x4;continue;}_0x396836=_0x2a8472;break;}const _0x3075ce=(_0x396836===-0x1?_0x171bc2:_0x171bc2[_0x130dfc(0x266)](0x0,_0x396836))[_0x130dfc(0x3b4)](),_0x45e95c=_0x396836===-0x1?'undefined':_0x171bc2[_0x130dfc(0x266)](_0x396836+0x4)[_0x130dfc(0x3b4)]();return'(('+this[_0x130dfc(0x24c)](_0x3075ce)+')\x20?\x20('+this[_0x130dfc(0x24c)](_0x43d6c4)+_0x130dfc(0x257)+this[_0x130dfc(0x24c)](_0x45e95c)+'))';}['_jinjaToJs'](_0x470477){const _0x7ca820=_0x51fa3c,_0x405b11=new Set([_0x7ca820(0x2b5),'float',_0x7ca820(0x3a5),'abs',_0x7ca820(0x330),'lower','upper',_0x7ca820(0x3b4),_0x7ca820(0x225),_0x7ca820(0x236),'d',_0x7ca820(0x228),'add','min','max',_0x7ca820(0x2a8),_0x7ca820(0x3c3),'regex_match',_0x7ca820(0x346),_0x7ca820(0x22c),_0x7ca820(0x2e3),_0x7ca820(0x2b6),_0x7ca820(0x385),_0x7ca820(0x338),'reverse',_0x7ca820(0x29c),_0x7ca820(0x2ac),_0x7ca820(0x247),_0x7ca820(0x3db)]);_0x470477=this['_jinjaWordOps'](_0x470477);const _0x30c9a5=this[_0x7ca820(0x357)](_0x470477);if(_0x30c9a5!==null)return _0x30c9a5;const _0x46571c=_0x470477['includes']('|')&&_0x470477[_0x7ca820(0x225)](/\|\|/g,'')['indexOf']('|')!==-0x1,_0x539aff=/\bif\b/[_0x7ca820(0x37c)](_0x470477);if(!_0x46571c&&!_0x539aff)return _0x470477;_0x470477=this[_0x7ca820(0x311)](_0x470477);if(!_0x46571c)return _0x470477;{const _0x3b31dc=[];let _0x3638cd='',_0x434a4a=![],_0x30115d=![],_0x4234a0=0x0,_0x67b3c6=0x0;while(_0x67b3c6<_0x470477[_0x7ca820(0x22c)]){const _0x33f679=_0x470477[_0x67b3c6];if(_0x33f679==='\x27'&&!_0x30115d){_0x434a4a=!_0x434a4a,_0x3638cd+=_0x33f679,_0x67b3c6++;continue;}if(_0x33f679==='\x22'&&!_0x434a4a){_0x30115d=!_0x30115d,_0x3638cd+=_0x33f679,_0x67b3c6++;continue;}if(!_0x434a4a&&!_0x30115d){if(_0x33f679==='('||_0x33f679==='['||_0x33f679==='{')_0x4234a0++;else{if(_0x33f679===')'||_0x33f679===']'||_0x33f679==='}')_0x4234a0--;}if(_0x4234a0===0x0&&(_0x470477['startsWith']('&&',_0x67b3c6)||_0x470477[_0x7ca820(0x35c)]('||',_0x67b3c6))){_0x3b31dc[_0x7ca820(0x341)](_0x3638cd),_0x3b31dc['push'](_0x470477[_0x7ca820(0x28b)](_0x67b3c6,0x2)),_0x3638cd='',_0x67b3c6+=0x2;continue;}}_0x3638cd+=_0x33f679,_0x67b3c6++;}_0x3b31dc[_0x7ca820(0x341)](_0x3638cd);if(_0x3b31dc[_0x7ca820(0x22c)]>0x1)return _0x3b31dc[_0x7ca820(0x37b)]((_0x15d054,_0xe08076)=>_0xe08076%0x2===0x1?_0x15d054:this[_0x7ca820(0x24c)](_0x15d054))[_0x7ca820(0x2e3)]('');}const _0x2599cc=[];let _0x2378c8='',_0x1ce8fe=![],_0x3cc06c=![],_0x56aa65=0x0,_0x204bbd=0x0;while(_0x204bbd<_0x470477[_0x7ca820(0x22c)]){const _0x4b5775=_0x470477[_0x204bbd];if(_0x4b5775==='\x27'&&!_0x3cc06c){_0x1ce8fe=!_0x1ce8fe,_0x2378c8+=_0x4b5775,_0x204bbd++;continue;}if(_0x4b5775==='\x22'&&!_0x1ce8fe){_0x3cc06c=!_0x3cc06c,_0x2378c8+=_0x4b5775,_0x204bbd++;continue;}if(!_0x1ce8fe&&!_0x3cc06c){if(_0x4b5775==='('||_0x4b5775==='['||_0x4b5775==='{'){_0x56aa65++,_0x2378c8+=_0x4b5775,_0x204bbd++;continue;}if(_0x4b5775===')'||_0x4b5775===']'||_0x4b5775==='}'){_0x56aa65--,_0x2378c8+=_0x4b5775,_0x204bbd++;continue;}if(_0x4b5775==='|'&&_0x56aa65===0x0){if(_0x470477[_0x204bbd+0x1]==='|'){_0x2378c8+='||',_0x204bbd+=0x2;continue;}_0x2599cc[_0x7ca820(0x341)](_0x2378c8[_0x7ca820(0x3b4)]()),_0x2378c8='',_0x204bbd++;continue;}}_0x2378c8+=_0x4b5775,_0x204bbd++;}_0x2599cc[_0x7ca820(0x341)](_0x2378c8['trim']());if(_0x2599cc[_0x7ca820(0x22c)]<0x2)return _0x470477;const _0x163a45=_0x2599cc[_0x7ca820(0x266)](0x1),_0x1fdc3d=_0x163a45['some'](_0x2a0e6f=>{const _0x39d3b3=_0x7ca820,_0x5e8571=_0x2a0e6f[_0x39d3b3(0x38d)](/^(\w+)/)?.[0x1];return _0x5e8571&&_0x405b11['has'](_0x5e8571);});if(!_0x1fdc3d)return _0x470477;let _0xbe0bdb=_0x2599cc[0x0];for(let _0x2cf189=0x1;_0x2cf189<_0x2599cc[_0x7ca820(0x22c)];_0x2cf189++){const _0x446ed0=_0x2599cc[_0x2cf189][_0x7ca820(0x3b4)](),_0x2f2642=_0x446ed0[_0x7ca820(0x38d)](/^(\w+)/);if(!_0x2f2642){_0xbe0bdb='('+_0xbe0bdb+_0x7ca820(0x2fc)+_0x446ed0+')';continue;}const _0x1407a7=_0x2f2642[0x1],_0x297f12=_0x446ed0[_0x7ca820(0x266)](_0x1407a7[_0x7ca820(0x22c)])[_0x7ca820(0x225)](/^\s*/,'');let _0x365a9e='',_0x5884c0='';if(_0x297f12[_0x7ca820(0x35c)]('(')){let _0x1b66ef=0x0,_0x3ee97d=![],_0x327e1c=![],_0x3ef653=-0x1;for(let _0x49bbac=0x0;_0x49bbac<_0x297f12[_0x7ca820(0x22c)];_0x49bbac++){const _0x5d526c=_0x297f12[_0x49bbac];if(_0x5d526c==='\x27'&&!_0x327e1c)_0x3ee97d=!_0x3ee97d;else{if(_0x5d526c==='\x22'&&!_0x3ee97d)_0x327e1c=!_0x327e1c;else{if(!_0x3ee97d&&!_0x327e1c){if(_0x5d526c==='(')_0x1b66ef++;else{if(_0x5d526c===')'){_0x1b66ef--;if(_0x1b66ef===0x0){_0x3ef653=_0x49bbac;break;}}}}}}}if(_0x3ef653===-0x1){_0xbe0bdb='('+_0xbe0bdb+_0x7ca820(0x2fc)+_0x446ed0+')';continue;}_0x365a9e=_0x297f12['slice'](0x1,_0x3ef653),_0x5884c0=_0x297f12[_0x7ca820(0x266)](_0x3ef653+0x1);}else _0x5884c0=_0x297f12;if(_0x405b11[_0x7ca820(0x2dd)](_0x1407a7)){const _0x475896=_0x365a9e[_0x7ca820(0x3b4)]()!==''?',\x20'+this[_0x7ca820(0x24c)](_0x365a9e):'';_0xbe0bdb='__'+_0x1407a7+'('+_0xbe0bdb+_0x475896+')'+_0x5884c0;}else _0xbe0bdb='('+_0xbe0bdb+')\x20|\x20('+_0x446ed0+')';}return _0xbe0bdb;}['_buildStatesProxy'](_0x3c9bf6){return new Proxy(_0x2fd1cf=>{const _0x2a5c36=_0x3661,_0x53b828=_0x3c9bf6[_0x2a5c36(0x2ad)][_0x2fd1cf];return _0x53b828?_0x53b828[_0x2a5c36(0x2b1)]:'unknown';},{'get'(_0x538efd,_0x3e6871){const _0x2bb2a3=_0x3661;if(_0x3e6871 in _0x538efd)return _0x538efd[_0x3e6871];if(_0x3e6871===_0x2bb2a3(0x383))return undefined;const _0x4c4c33=String(_0x3e6871),_0x14ce44=_0x3c9bf6['states'][_0x4c4c33];return _0x14ce44||{'state':'unavailable','attributes':{},'last_changed':'','last_updated':''};}});}['_getCompiledFunction'](_0x26e273){const _0x5e2e84=_0x51fa3c;let _0x5814b3=this['_templateCache'][_0x5e2e84(0x31c)](_0x26e273);if(_0x5814b3)return _0x5814b3;_0x5814b3=new Function(_0x5e2e84(0x28e),_0x5e2e84(0x384),'states','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x22use\x20strict\x22;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20{\x20item,\x20entity,\x20index,\x20stateObj,\x20value,\x20trend,\x20delta,\x20prev_value\x20}\x20=\x20vars\x20||\x20{};\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20float\x20=\x20(v)\x20=>\x20parseFloat(v)\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20int\x20=\x20(v)\x20=>\x20parseInt(v,\x2010)\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20user\x20=\x20hass.user;\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20state_attr\x20=\x20(entity_id,\x20attr)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20st\x20=\x20hass.states[entity_id];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20st\x20?\x20st.attributes?.[attr]\x20:\x20undefined;\x0a\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20is_state\x20=\x20(entity_id,\x20value)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20st\x20=\x20hass.states[entity_id];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20st\x20&&\x20st.state\x20===\x20value;\x0a\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20now\x20=\x20()\x20=>\x20new\x20Date();\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__float\x20\x20\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20parseFloat(v)\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__int\x20\x20\x20\x20\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20parseInt(v,\x2010)\x20||\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__round\x20\x20\x20=\x20(v,\x20p\x20=\x200)\x20\x20\x20=>\x20{\x20const\x20n\x20=\x20Number(v);\x20return\x20isNaN(n)\x20?\x20v\x20:\x20Number(n.toFixed(p));\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__abs\x20\x20\x20\x20\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20Math.abs(Number(v));\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__string\x20\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20String(v);\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__lower\x20\x20\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20String(v).toLowerCase();\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__upper\x20\x20\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20String(v).toUpperCase();\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__title\x20\x20\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20String(v).replace(/\x5cb\x5cw/g,\x20c\x20=>\x20c.toUpperCase());\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__capitalize\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20=>\x20{\x20const\x20s\x20=\x20String(v);\x20return\x20s.charAt(0).toUpperCase()\x20+\x20s.slice(1).toLowerCase();\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__trim\x20\x20\x20\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20String(v).trim();\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__replace\x20=\x20(v,\x20o,\x20n)\x20\x20\x20\x20=>\x20String(v).replaceAll(o,\x20n);\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__default\x20=\x20(v,\x20d\x20=\x20\x27\x27)\x20\x20=>\x20(v\x20===\x20undefined\x20||\x20v\x20===\x20null\x20||\x20v\x20===\x20\x27unknown\x27\x20||\x20v\x20===\x20\x27unavailable\x27)\x20?\x20d\x20:\x20v;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__d\x20\x20\x20\x20\x20\x20\x20=\x20__default;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__multiply\x20=\x20(v,\x20f)\x20\x20\x20\x20\x20\x20=>\x20Number(v)\x20*\x20Number(f);\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__add\x20\x20\x20\x20\x20=\x20(v,\x20a)\x20\x20\x20\x20\x20\x20\x20=>\x20Number(v)\x20+\x20Number(a);\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__min\x20\x20\x20\x20\x20=\x20(v,\x20m)\x20\x20\x20\x20\x20\x20\x20=>\x20Math.min(Number(v),\x20Number(m));\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__max\x20\x20\x20\x20\x20=\x20(v,\x20m)\x20\x20\x20\x20\x20\x20\x20=>\x20Math.max(Number(v),\x20Number(m));\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__length\x20\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20(v\x20&&\x20v.length\x20!==\x20undefined)\x20?\x20v.length\x20:\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__join\x20\x20\x20\x20=\x20(v,\x20sep\x20=\x20\x27,\x27)\x20=>\x20Array.isArray(v)\x20?\x20v.join(sep)\x20:\x20String(v);\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__first\x20\x20\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20Array.isArray(v)\x20?\x20v[0]\x20:\x20v;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__last\x20\x20\x20\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20Array.isArray(v)\x20?\x20v[v.length\x20-\x201]\x20:\x20v;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__sort\x20\x20\x20\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20Array.isArray(v)\x20?\x20[...v].sort()\x20:\x20v;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__reverse\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20Array.isArray(v)\x20?\x20[...v].reverse()\x20:\x20String(v).split(\x27\x27).reverse().join(\x27\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__unique\x20\x20=\x20(v)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20=>\x20Array.isArray(v)\x20?\x20[...new\x20Set(v)]\x20:\x20v;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__regex_match\x20\x20=\x20(v,\x20p)\x20\x20=>\x20new\x20RegExp(p).test(String(v));\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__regex_search\x20=\x20(v,\x20p)\x20\x20=>\x20{\x20const\x20m\x20=\x20String(v).match(new\x20RegExp(p));\x20return\x20m\x20?\x20m[0]\x20:\x20\x27\x27;\x20};\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__as_timestamp\x20=\x20(v)\x20\x20\x20\x20\x20=>\x20new\x20Date(v).getTime()\x20/\x201000;\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__timestamp_custom\x20=\x20(v,\x20fmt\x20=\x20\x27\x27,\x20local\x20=\x20true)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20d\x20=\x20new\x20Date(Number(v)\x20*\x201000);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(isNaN(d.getTime()))\x20return\x20v;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20utc\x20=\x20(local\x20===\x20false\x20||\x20local\x20===\x20\x27false\x27\x20||\x20local\x20===\x200);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(!fmt)\x20return\x20utc\x20?\x20d.toUTCString()\x20:\x20d.toLocaleString();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20Y\x20=\x20utc\x20?\x20d.getUTCFullYear()\x20:\x20d.getFullYear();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20mon\x20=\x20utc\x20?\x20d.getUTCMonth()\x20:\x20d.getMonth();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20day\x20=\x20utc\x20?\x20d.getUTCDate()\x20:\x20d.getDate();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20H\x20=\x20utc\x20?\x20d.getUTCHours()\x20:\x20d.getHours();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20Mi\x20=\x20utc\x20?\x20d.getUTCMinutes()\x20:\x20d.getMinutes();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20S\x20=\x20utc\x20?\x20d.getUTCSeconds()\x20:\x20d.getSeconds();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20wday\x20=\x20utc\x20?\x20d.getUTCDay()\x20:\x20d.getDay();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20MONTHS\x20=\x20[\x27January\x27,\x27February\x27,\x27March\x27,\x27April\x27,\x27May\x27,\x27June\x27,\x27July\x27,\x27August\x27,\x27September\x27,\x27October\x27,\x27November\x27,\x27December\x27];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20DAYS\x20=\x20[\x27Sunday\x27,\x27Monday\x27,\x27Tuesday\x27,\x27Wednesday\x27,\x27Thursday\x27,\x27Friday\x27,\x27Saturday\x27];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20h12\x20=\x20(H\x20%\x2012)\x20||\x2012;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20doyBase\x20=\x20utc\x20?\x20Date.UTC(Y,\x200,\x201)\x20:\x20new\x20Date(Y,\x200,\x201).getTime();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20doyCur\x20=\x20utc\x20?\x20Date.UTC(Y,\x20mon,\x20day)\x20:\x20new\x20Date(Y,\x20mon,\x20day).getTime();\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20doy\x20=\x20Math.floor((doyCur\x20-\x20doyBase)\x20/\x2086400000)\x20+\x201;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20String(fmt).replace(/%(-)?([A-Za-z%])/g,\x20(m,\x20dash,\x20c)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20P\x20=\x20(n,\x20w)\x20=>\x20dash\x20?\x20String(n)\x20:\x20String(n).padStart(w\x20||\x202,\x20\x270\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20switch\x20(c)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27Y\x27:\x20return\x20String(Y);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27y\x27:\x20return\x20P(Y\x20%\x20100);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27m\x27:\x20return\x20P(mon\x20+\x201);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27d\x27:\x20return\x20P(day);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27e\x27:\x20return\x20dash\x20?\x20String(day)\x20:\x20String(day).padStart(2,\x20\x27\x20\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27H\x27:\x20return\x20P(H);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27k\x27:\x20return\x20dash\x20?\x20String(H)\x20:\x20String(H).padStart(2,\x20\x27\x20\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27I\x27:\x20return\x20P(h12);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27l\x27:\x20return\x20dash\x20?\x20String(h12)\x20:\x20String(h12).padStart(2,\x20\x27\x20\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27M\x27:\x20return\x20P(Mi);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27S\x27:\x20return\x20P(S);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27p\x27:\x20return\x20H\x20<\x2012\x20?\x20\x27AM\x27\x20:\x20\x27PM\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27P\x27:\x20return\x20H\x20<\x2012\x20?\x20\x27am\x27\x20:\x20\x27pm\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27j\x27:\x20return\x20P(doy,\x203);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27A\x27:\x20return\x20DAYS[wday];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27a\x27:\x20return\x20DAYS[wday].slice(0,\x203);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27B\x27:\x20return\x20MONTHS[mon];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27b\x27:\x20case\x20\x27h\x27:\x20return\x20MONTHS[mon].slice(0,\x203);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27w\x27:\x20return\x20String(wday);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27u\x27:\x20return\x20String(wday\x20===\x200\x20?\x207\x20:\x20wday);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27%\x27:\x20return\x20\x27%\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20default:\x20return\x20m;\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};\x0a\x20\x20\x20\x20\x20\x20\x20\x20const\x20__format\x20=\x20(fmt,\x20...a)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20i\x20=\x200;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20String(fmt).replace(/%(-)?(\x5c+)?(\x20)?(0)?(\x5cd+)?(?:\x5c.(\x5cd+))?([%sdifeEgGxXob])/g,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20(m,\x20left,\x20plus,\x20space,\x20zero,\x20width,\x20prec,\x20type)\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(type\x20===\x20\x27%\x27)\x20return\x20\x27%\x27;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20val\x20=\x20a[i++];\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20out;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20switch\x20(type)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27s\x27:\x20out\x20=\x20String(val);\x20if\x20(prec\x20!==\x20undefined)\x20out\x20=\x20out.slice(0,\x20+prec);\x20break;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27d\x27:\x20case\x20\x27i\x27:\x20out\x20=\x20String(Math.trunc(Number(val)));\x20break;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27f\x27:\x20out\x20=\x20Number(val).toFixed(prec\x20!==\x20undefined\x20?\x20+prec\x20:\x206);\x20break;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27e\x27:\x20out\x20=\x20Number(val).toExponential(prec\x20!==\x20undefined\x20?\x20+prec\x20:\x206);\x20break;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27E\x27:\x20out\x20=\x20Number(val).toExponential(prec\x20!==\x20undefined\x20?\x20+prec\x20:\x206).toUpperCase();\x20break;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27g\x27:\x20out\x20=\x20String(Number(val));\x20break;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27G\x27:\x20out\x20=\x20String(Number(val)).toUpperCase();\x20break;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27x\x27:\x20out\x20=\x20Math.trunc(Number(val)).toString(16);\x20break;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27X\x27:\x20out\x20=\x20Math.trunc(Number(val)).toString(16).toUpperCase();\x20break;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27o\x27:\x20out\x20=\x20Math.trunc(Number(val)).toString(8);\x20break;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20case\x20\x27b\x27:\x20out\x20=\x20Math.trunc(Number(val)).toString(2);\x20break;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20default:\x20out\x20=\x20String(val);\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\x20if\x20(\x27difeEgG\x27.indexOf(type)\x20!==\x20-1)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20n\x20=\x20Number(val);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(n\x20>=\x200)\x20{\x20if\x20(plus)\x20out\x20=\x20\x27+\x27\x20+\x20out;\x20else\x20if\x20(space)\x20out\x20=\x20\x27\x20\x27\x20+\x20out;\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\x20if\x20(width\x20!==\x20undefined)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20const\x20w\x20=\x20+width;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(out.length\x20<\x20w)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(left)\x20out\x20=\x20out\x20+\x20\x27\x20\x27.repeat(w\x20-\x20out.length);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20else\x20if\x20(zero\x20&&\x20(out[0]\x20===\x20\x27-\x27\x20||\x20out[0]\x20===\x20\x27+\x27))\x20out\x20=\x20out[0]\x20+\x20\x270\x27.repeat(w\x20-\x20out.length)\x20+\x20out.slice(1);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20else\x20out\x20=\x20(zero\x20?\x20\x270\x27\x20:\x20\x27\x20\x27).repeat(w\x20-\x20out.length)\x20+\x20out;\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\x20\x20return\x20out;\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20('+_0x26e273[_0x5e2e84(0x3b4)]()+_0x5e2e84(0x33b)),this['_templateCache']['set'](_0x26e273,_0x5814b3);if(this[_0x5e2e84(0x38c)]['size']>this[_0x5e2e84(0x3eb)]){const _0x4e3719=this['_templateCache'][_0x5e2e84(0x254)]()['next']()[_0x5e2e84(0x373)];this[_0x5e2e84(0x38c)]['delete'](_0x4e3719);}return _0x5814b3;}[_0x51fa3c(0x3c1)](_0x19c86a,_0x560fb6,_0x2e12be={}){const _0x5b2b78=_0x51fa3c;if(!_0x19c86a||typeof _0x19c86a!=='string')return _0x19c86a;if(!_0x19c86a[_0x5b2b78(0x1fe)]('{{'))return _0x19c86a;try{const _0x2b83fa=_0x19c86a[_0x5b2b78(0x38d)](/{{(.*?)}}/s);if(!_0x2b83fa)return _0x19c86a;const _0x38ceae=this['_jinjaToJs'](_0x2b83fa[0x1]),_0x227e98=this[_0x5b2b78(0x220)](_0x38ceae);return(!this[_0x5b2b78(0x351)]||this[_0x5b2b78(0x394)]!==_0x560fb6)&&(this[_0x5b2b78(0x351)]=this['_buildStatesProxy'](_0x560fb6),this[_0x5b2b78(0x394)]=_0x560fb6),_0x227e98(_0x560fb6,_0x2e12be,this['_statesProxy']);}catch(_0x47c833){const _0x409a91=_0x19c86a,_0x595dbe=this['_jinjaCache'][_0x5b2b78(0x31c)](_0x409a91);this[_0x5b2b78(0x235)][_0x5b2b78(0x20f)](_0x409a91);const _0x4ce159=this['_ensureTemplateSubscription'](_0x409a91,_0x560fb6);!_0x4ce159&&!this[_0x5b2b78(0x31f)][_0x5b2b78(0x2dd)](_0x409a91)&&_0x560fb6&&(this[_0x5b2b78(0x31f)]['add'](_0x409a91),this[_0x5b2b78(0x3ce)](_0x409a91,_0x560fb6)[_0x5b2b78(0x358)](()=>{}));if(_0x595dbe!==undefined)return _0x595dbe;return console[_0x5b2b78(0x2b4)](_0x5b2b78(0x249),_0x19c86a),'';}}['_ensureTemplateSubscription'](_0x36d049,_0x195f93){const _0x59a650=_0x51fa3c;if(this['_wsUnsubs']['has'](_0x36d049))return!![];const _0x4e76f3=_0x195f93?.[_0x59a650(0x27a)]||this['hass']?.[_0x59a650(0x27a)];if(!_0x4e76f3||typeof _0x4e76f3['subscribeMessage']!=='function')return![];this[_0x59a650(0x372)][_0x59a650(0x292)](_0x36d049,null);try{return _0x4e76f3['subscribeMessage'](_0x1ec2b9=>{const _0xfc4a2c=_0x59a650;_0x1ec2b9&&Object[_0xfc4a2c(0x2e8)][_0xfc4a2c(0x320)][_0xfc4a2c(0x2bd)](_0x1ec2b9,_0xfc4a2c(0x244))&&(this['_setJinjaCache'](_0x36d049,_0x1ec2b9[_0xfc4a2c(0x244)]),this[_0xfc4a2c(0x203)]());},{'type':_0x59a650(0x29b),'template':_0x36d049,'report_errors':![]})[_0x59a650(0x279)](_0x5a966c=>{const _0x548266=_0x59a650;if(this[_0x548266(0x372)]['has'](_0x36d049))this[_0x548266(0x372)][_0x548266(0x292)](_0x36d049,_0x5a966c);else try{_0x5a966c();}catch(_0x1b9415){}})[_0x59a650(0x358)](()=>{const _0x49a4ba=_0x59a650;this[_0x49a4ba(0x372)]['delete'](_0x36d049);}),!![];}catch(_0x12082d){return this['_wsUnsubs'][_0x59a650(0x3b8)](_0x36d049),![];}}[_0x51fa3c(0x22b)](_0xcabf37,_0x35b2f7){const _0x45a004=_0x51fa3c;this[_0x45a004(0x2a3)][_0x45a004(0x292)](_0xcabf37,_0x35b2f7),this[_0x45a004(0x34f)][_0x45a004(0x292)](_0xcabf37,Date[_0x45a004(0x2eb)]());if(this[_0x45a004(0x2a3)][_0x45a004(0x3cc)]>this[_0x45a004(0x3eb)]){const _0x1e1908=this[_0x45a004(0x2a3)]['keys']()[_0x45a004(0x312)]()[_0x45a004(0x373)];this[_0x45a004(0x2a3)][_0x45a004(0x3b8)](_0x1e1908),this[_0x45a004(0x34f)][_0x45a004(0x3b8)](_0x1e1908);}}async[_0x51fa3c(0x3ce)](_0x29918,_0x34af4f){const _0x3412e2=_0x51fa3c;try{const _0x463961=await _0x34af4f['callApi'](_0x3412e2(0x38e),'template',{'template':_0x29918});this[_0x3412e2(0x22b)](_0x29918,_0x463961),this[_0x3412e2(0x31f)][_0x3412e2(0x3b8)](_0x29918),this[_0x3412e2(0x203)]();}catch(_0x512f35){console[_0x3412e2(0x2b4)](_0x3412e2(0x2d1),_0x512f35,_0x29918),this['_jinjaPending'][_0x3412e2(0x3b8)](_0x29918),!this[_0x3412e2(0x2a3)][_0x3412e2(0x2dd)](_0x29918)&&this['_setJinjaCache'](_0x29918,'');}}[_0x51fa3c(0x33e)](){const _0x23f488=_0x51fa3c;if(this[_0x23f488(0x2a1)])return;this['_jinjaRefreshTimer']=setTimeout(()=>{const _0x365eb1=_0x23f488;this[_0x365eb1(0x2a1)]=null,this['_refreshJinjaTemplates']();},0x1388);}[_0x51fa3c(0x2d0)](){const _0x51edbc=_0x51fa3c;if(!this[_0x51edbc(0x28e)]||this[_0x51edbc(0x235)][_0x51edbc(0x3cc)]===0x0)return;const _0x540a84=Date['now']();for(const _0x346f3b of this[_0x51edbc(0x235)]){if(this[_0x51edbc(0x372)][_0x51edbc(0x2dd)](_0x346f3b))continue;if(this[_0x51edbc(0x31f)][_0x51edbc(0x2dd)](_0x346f3b))continue;const _0x5daaff=this[_0x51edbc(0x34f)][_0x51edbc(0x31c)](_0x346f3b)||0x0;if(_0x540a84-_0x5daaff<this['_jinjaCacheTTL'])continue;this['_jinjaPending'][_0x51edbc(0x20f)](_0x346f3b),this[_0x51edbc(0x3ce)](_0x346f3b,this[_0x51edbc(0x28e)])[_0x51edbc(0x358)](()=>{});}}[_0x51fa3c(0x217)](_0x511170,_0x3068dc,_0x3d4469={}){const _0x2bc63d=_0x51fa3c;if(_0x511170==null||typeof _0x511170!==_0x2bc63d(0x330)||!_0x511170[_0x2bc63d(0x1fe)]('{{'))return _0x511170;return _0x511170[_0x2bc63d(0x225)](/{{([\s\S]*?)}}/g,(_0x40c74c,_0x2a384d)=>{const _0x21ae6b=_0x2bc63d;try{const _0x4a313e=this[_0x21ae6b(0x3c1)]('{{'+_0x2a384d+'}}',_0x3068dc,_0x3d4469);if(_0x4a313e===undefined||_0x4a313e===null)return'';return String(_0x4a313e);}catch(_0xbab011){return console[_0x21ae6b(0x2b4)](_0x21ae6b(0x3af),_0xbab011,_0x2a384d),'';}});}[_0x51fa3c(0x3c8)](_0x561eb3){const _0x5cbd89=_0x51fa3c;let _0x255c1c=_0x561eb3||'';for(const _0x365ebd of this[_0x5cbd89(0x1fd)]||[]){if(!_0x365ebd)continue;try{if(typeof _0x365ebd===_0x5cbd89(0x330))_0x255c1c=_0x255c1c[_0x5cbd89(0x225)](new RegExp(_0x365ebd,'gi'),'');else{const _0x4e4756=_0x365ebd['pattern']||'',_0x1b6bb7=_0x365ebd[_0x5cbd89(0x2c6)]||'gi',_0x2254f3=_0x365ebd[_0x5cbd89(0x225)]||'';_0x255c1c=_0x255c1c['replace'](new RegExp(_0x4e4756,_0x1b6bb7),_0x2254f3);}}catch(_0x53b47d){console[_0x5cbd89(0x2b4)](_0x5cbd89(0x204),_0x365ebd,_0x53b47d);}}return _0x255c1c[_0x5cbd89(0x3b4)]();}['_updateTrendMemory'](_0x384854){const _0x266fc1=_0x51fa3c;try{const _0x4d4fd4=this[_0x266fc1(0x3c9)]?.['entities']||[];for(const _0x581c10 of _0x4d4fd4){const _0x578438=typeof _0x581c10===_0x266fc1(0x330)?{'entity':_0x581c10}:_0x581c10;if(!_0x578438['entity'])continue;const _0x4f911d=_0x384854[_0x266fc1(0x2ad)][_0x578438[_0x266fc1(0x3bd)]],_0x4ef37f=this[_0x266fc1(0x28e)][_0x266fc1(0x2ad)][_0x578438['entity']];if(!_0x4f911d||!_0x4ef37f)continue;const _0x2aff8c=this[_0x266fc1(0x1ef)](_0x578438,_0x4f911d),_0x59b6f0=this[_0x266fc1(0x1ef)](_0x578438,_0x4ef37f);if(_0x2aff8c===_0x59b6f0)continue;const _0xf7f7b2=_0x578438[_0x266fc1(0x3bd)]+'|'+(_0x578438[_0x266fc1(0x3e7)]||''),_0x36edeb=parseFloat(_0x2aff8c),_0x5bc2ad=parseFloat(_0x59b6f0);let _0x66e635=_0x266fc1(0x344),_0x2b12f4=null;!isNaN(_0x36edeb)&&!isNaN(_0x5bc2ad)&&(_0x2b12f4=_0x5bc2ad-_0x36edeb,_0x66e635=_0x2b12f4>0x0?'up':_0x2b12f4<0x0?_0x266fc1(0x29e):_0x266fc1(0x344)),this[_0x266fc1(0x22f)]['set'](_0xf7f7b2,{'prev':_0x2aff8c,'delta':_0x2b12f4,'dir':_0x66e635,'t':Date[_0x266fc1(0x2eb)]()});}}catch(_0x25c4ab){console[_0x266fc1(0x2b4)](_0x266fc1(0x3a4),_0x25c4ab);}}[_0x51fa3c(0x381)](_0x3d9b9d,_0x5290b5,_0x29f988,_0x306a79){const _0x161e33=_0x51fa3c,_0x312016=this[_0x161e33(0x3c9)][_0x161e33(0x223)],_0x279f07=_0x3d9b9d?_0x3d9b9d[_0x161e33(0x223)]:undefined,_0x5160b8=_0x55721b=>_0x55721b!==null&&typeof _0x55721b===_0x161e33(0x387)&&!Array['isArray'](_0x55721b);let _0x1bc7cf;if(_0x279f07===undefined||_0x279f07===null)_0x1bc7cf=_0x312016;else{if(_0x279f07===![])_0x1bc7cf=![];else{if(_0x279f07===!![])_0x1bc7cf=_0x5160b8(_0x312016)?_0x312016:!![];else{if(_0x5160b8(_0x279f07)){if(!_0x5160b8(_0x312016))_0x1bc7cf=_0x279f07;else{_0x1bc7cf={..._0x312016,..._0x279f07};if(_0x279f07['source']===undefined&&(_0x279f07[_0x161e33(0x3e7)]!==undefined||_0x279f07['baseline']!==undefined)){delete _0x1bc7cf[_0x161e33(0x38a)];if(_0x279f07[_0x161e33(0x3e7)]===undefined)delete _0x1bc7cf['attribute'];if(_0x279f07[_0x161e33(0x364)]===undefined)delete _0x1bc7cf[_0x161e33(0x364)];}}}else _0x1bc7cf=_0x279f07;}}}const _0x1dfb57=(_0x5290b5||'')+'|'+(_0x3d9b9d&&_0x3d9b9d[_0x161e33(0x3e7)]||''),_0x3e2b37=this[_0x161e33(0x22f)][_0x161e33(0x31c)](_0x1dfb57);if(_0x1bc7cf===![]||_0x1bc7cf===undefined||_0x1bc7cf===null)return{'cfg':null,'dir':_0x3e2b37?_0x3e2b37[_0x161e33(0x2fe)]:_0x161e33(0x344),'delta':_0x3e2b37?_0x3e2b37[_0x161e33(0x33d)]:null,'percent':null,'prev':_0x3e2b37?_0x3e2b37[_0x161e33(0x314)]:null};if(_0x1bc7cf===!![])_0x1bc7cf={};const _0x4675d7=parseFloat(_0x306a79),_0x3f7ded=_0x1bc7cf[_0x161e33(0x38a)]||(_0x1bc7cf[_0x161e33(0x3e7)]?_0x161e33(0x3e7):_0x1bc7cf[_0x161e33(0x364)]?_0x161e33(0x364):_0x161e33(0x27e));let _0x5728b2=null,_0x46978d=null,_0x44d5be=_0x3e2b37?_0x3e2b37[_0x161e33(0x314)]:null;if(_0x3f7ded===_0x161e33(0x3e7)&&_0x29f988){const _0x4684f1=parseFloat(_0x29f988[_0x161e33(0x1fc)]?.[_0x1bc7cf[_0x161e33(0x3e7)]||_0x161e33(0x2fb)]);if(!isNaN(_0x4684f1)){_0x5728b2=_0x4684f1;if(!isNaN(_0x4675d7))_0x46978d=_0x4675d7-_0x4684f1;}}else{if(_0x3f7ded===_0x161e33(0x364)&&_0x29f988){const _0x5d77a4=parseFloat(_0x29f988[_0x161e33(0x1fc)]?.[_0x1bc7cf['baseline']||_0x161e33(0x2a5)]);!isNaN(_0x5d77a4)&&!isNaN(_0x4675d7)&&(_0x5728b2=_0x4675d7-_0x5d77a4,_0x46978d=_0x5d77a4,_0x44d5be=_0x5d77a4);}else{if(_0x3e2b37&&_0x3e2b37[_0x161e33(0x33d)]!=null){_0x5728b2=_0x3e2b37['delta'];const _0x106546=parseFloat(_0x3e2b37['prev']);if(!isNaN(_0x106546))_0x46978d=_0x106546;}}}const _0x508cdb=parseFloat(_0x1bc7cf['threshold'])||0x0;let _0x5b860e=_0x161e33(0x344);_0x5728b2!=null&&(_0x5b860e=_0x5728b2>_0x508cdb?'up':_0x5728b2<-_0x508cdb?_0x161e33(0x29e):_0x161e33(0x344));const _0x2ae948=_0x5728b2!=null&&_0x46978d!=null&&isFinite(_0x46978d)&&_0x46978d!==0x0?_0x5728b2/Math['abs'](_0x46978d)*0x64:null;return{'cfg':_0x1bc7cf,'dir':_0x5b860e,'delta':_0x5728b2,'percent':_0x2ae948,'prev':_0x44d5be};}['_containerWidth'](){const _0x4e54b0=_0x51fa3c;if(this[_0x4e54b0(0x3c9)][_0x4e54b0(0x248)])return window[_0x4e54b0(0x397)]-this['_sidebarWidth']-this[_0x4e54b0(0x3bb)]||0x780;const _0x4df5ba=this[_0x4e54b0(0x3a3)]?.[_0x4e54b0(0x29a)](_0x4e54b0(0x39d));return Math[_0x4e54b0(0x27b)](_0x4df5ba?.['clientWidth']||this[_0x4e54b0(0x29d)]()['width']||0x190);}[_0x51fa3c(0x35f)](_0x4b163b,_0x4f063d){const _0x40a949=_0x51fa3c,_0x2df417=_0x4f063d>0x0?_0x4f063d:0x96;let _0x13cccd=Math[_0x40a949(0x2a9)](Math[_0x40a949(0x26c)](Math['ceil'](_0x4b163b*0x2/_0x2df417)+0x1,0x2),0x3c);if(_0x13cccd%0x2)_0x13cccd++;const _0x2be0e0=this['_copiesRendered'];if(_0x2be0e0>=0x2&&_0x2be0e0%0x2===0x0&&_0x2be0e0<=_0x13cccd+0x2&&_0x2be0e0*_0x2df417>=_0x4b163b*0x2+_0x2df417)return _0x2be0e0;return _0x13cccd;}[_0x51fa3c(0x319)](){const _0x412a3c=_0x51fa3c;if(!this[_0x412a3c(0x3c9)]?.[_0x412a3c(0x347)]||this[_0x412a3c(0x3c9)][_0x412a3c(0x3ca)])return;try{const _0x5b6a58=this[_0x412a3c(0x3a3)]?.[_0x412a3c(0x29a)](_0x412a3c(0x3df));if(!_0x5b6a58||!this[_0x412a3c(0x3cf)])return;const _0x40eef1=_0x5b6a58[_0x412a3c(0x2d2)]/this[_0x412a3c(0x3cf)];_0x40eef1>0x0&&Math[_0x412a3c(0x3da)]((this['_measuredItemsWidth']||0x0)-_0x40eef1)>0x8&&(this[_0x412a3c(0x379)]=_0x40eef1,this[_0x412a3c(0x35f)](this[_0x412a3c(0x2e1)](),_0x40eef1)!==this['_copiesRendered']&&this[_0x412a3c(0x203)]());}catch(_0x330e0b){}}[_0x51fa3c(0x1ef)](_0x20c473,_0x5dafe9){const _0xe13a4b=_0x51fa3c;let _0x131c0f=_0x5dafe9?_0x5dafe9['state']:'';return _0x5dafe9&&_0x20c473&&_0x20c473[_0xe13a4b(0x3e7)]&&_0x5dafe9[_0xe13a4b(0x1fc)][_0x20c473[_0xe13a4b(0x3e7)]]!==undefined&&(_0x131c0f=_0x5dafe9[_0xe13a4b(0x1fc)][_0x20c473[_0xe13a4b(0x3e7)]]),_0x131c0f;}[_0x51fa3c(0x301)](_0x9f5a64){const _0x453aed=_0x51fa3c,_0x4da894=typeof _0x9f5a64===_0x453aed(0x330)?_0x9f5a64:_0x9f5a64[_0x453aed(0x3bd)],_0x4fc2c8=_0x4da894?this[_0x453aed(0x28e)][_0x453aed(0x2ad)][_0x4da894]:null;if(!_0x9f5a64||!_0x9f5a64['repeat_on'])return[{'entityConfig':_0x9f5a64,'vars':{'entity':_0x4da894,'index':0x0,'item':undefined,'stateObj':_0x4fc2c8,'value':this[_0x453aed(0x1ef)](_0x9f5a64,_0x4fc2c8)}}];const _0x3e8d4b={'entity':_0x4da894,'stateObj':_0x4fc2c8,'value':this[_0x453aed(0x1ef)](_0x9f5a64,_0x4fc2c8)},_0x396ff3=this[_0x453aed(0x3c1)](_0x9f5a64[_0x453aed(0x26b)],this[_0x453aed(0x28e)],_0x3e8d4b);if(!_0x396ff3)return[];const _0x17e695=Array[_0x453aed(0x2f0)](_0x396ff3)?_0x396ff3:[_0x396ff3];if(_0x17e695[_0x453aed(0x22c)]===0x0)return[];return _0x17e695[_0x453aed(0x37b)]((_0x143117,_0x556e14)=>({'entityConfig':_0x9f5a64,'vars':{..._0x3e8d4b,'item':_0x143117,'index':_0x556e14}}));}['updated'](_0x2ca17a){const _0x369d38=_0x51fa3c;super[_0x369d38(0x30a)](_0x2ca17a);if(!this[_0x369d38(0x3c9)]||!this['hass'])return;if(_0x2ca17a[_0x369d38(0x2dd)](_0x369d38(0x28e))){const _0x2a3e0d=_0x2ca17a[_0x369d38(0x31c)](_0x369d38(0x28e));if(_0x2a3e0d)this['_updateTrendMemory'](_0x2a3e0d);}this[_0x369d38(0x319)]();_0x2ca17a[_0x369d38(0x2dd)](_0x369d38(0x28e))&&this['_jinjaTemplates']['size']>0x0&&this[_0x369d38(0x33e)]();if(this['_config']['scroll_speed']===undefined||this['_config']['scroll_speed']===null){const _0x32fb90=this[_0x369d38(0x3c1)](String(this[_0x369d38(0x3c9)][_0x369d38(0x23b)]),this[_0x369d38(0x28e)]),_0x500022=parseFloat(_0x32fb90)||0x14;!isNaN(_0x500022)&&_0x500022>0x0&&this[_0x369d38(0x365)]!==_0x500022&&(this[_0x369d38(0x365)]=_0x500022);return;}const _0x3c43b3=this[_0x369d38(0x3c1)](String(this[_0x369d38(0x3c9)][_0x369d38(0x27d)]),this['hass']),_0x5e34e8=parseFloat(_0x3c43b3);if(isNaN(_0x5e34e8)||_0x5e34e8<=0x0)return;const _0x4f7c61=this['renderRoot']?.[_0x369d38(0x29a)](_0x369d38(0x3df));if(!_0x4f7c61)return;const _0x2752a6=!!this[_0x369d38(0x3c9)]['vertical_scroll'],_0x473ee8=_0x2752a6?_0x4f7c61[_0x369d38(0x2fd)]:_0x4f7c61['scrollWidth'];if(!_0x473ee8||_0x473ee8<=0x0)return;const _0x5bdd32=_0x473ee8*0.5,_0x26610d=_0x5bdd32/_0x5e34e8;!isNaN(_0x26610d)&&_0x26610d>0x0&&((!this['_animationDuration']||Math['abs'](this[_0x369d38(0x365)]-_0x26610d)>0.1)&&(this[_0x369d38(0x365)]=_0x26610d));}['_resolveConfigValue'](_0xeb60fd,_0xfa17f){const _0x536c06=_0x51fa3c,_0x506aa7=this[_0x536c06(0x3c9)][_0xeb60fd];if(this[_0x536c06(0x206)][_0xeb60fd])return this['_interpolateTemplateString'](_0x506aa7,this[_0x536c06(0x28e)])||_0xfa17f||_0x506aa7;return _0x506aa7||_0xfa17f||'';}[_0x51fa3c(0x280)](){const _0x298e9d=_0x51fa3c;if(!this[_0x298e9d(0x3c9)]||!this['hass'])return html``;const _0x1f6fe5=this[_0x298e9d(0x3c1)](String(this[_0x298e9d(0x3c9)][_0x298e9d(0x23b)]),this[_0x298e9d(0x28e)]),_0x2b5cc3=parseFloat(_0x1f6fe5)||0x14,_0xd7429f=this[_0x298e9d(0x365)]||_0x2b5cc3,_0x5dae5e=this[_0x298e9d(0x206)][_0x298e9d(0x2ac)]?this['_interpolateTemplateString'](this[_0x298e9d(0x3c9)][_0x298e9d(0x2ac)],this[_0x298e9d(0x28e)]):this[_0x298e9d(0x3c9)][_0x298e9d(0x2ac)],_0x38364d=this[_0x298e9d(0x332)](_0x298e9d(0x2df),_0x298e9d(0x26e)),_0x42d7d6=this[_0x298e9d(0x332)](_0x298e9d(0x260),_0x298e9d(0x2c3)),_0x32a298=this['_resolveConfigValue'](_0x298e9d(0x2f9),_0x298e9d(0x2f5)),_0x132a41=this['_resolveConfigValue']('card_width',_0x298e9d(0x3c0)),_0x192f6b=this['_resolveConfigValue'](_0x298e9d(0x264),_0x298e9d(0x313)),_0x24c74f=this[_0x298e9d(0x332)](_0x298e9d(0x3ac),_0x298e9d(0x285)),_0x3bafd7=this['_resolveConfigValue'](_0x298e9d(0x3e6),'16px'),_0xed1413=_0x132a41&&!this[_0x298e9d(0x3c9)][_0x298e9d(0x248)]?'--strip-card-width:\x20'+_0x132a41+';':'';let _0x16ada7=this[_0x298e9d(0x3c9)][_0x298e9d(0x329)]?'has-fading':'';const _0x13bc0b=this[_0x298e9d(0x3c9)]['vertical_scroll']?_0x298e9d(0x229):'',_0x403af6=this['_config'][_0x298e9d(0x221)]===_0x298e9d(0x3ad)?_0x298e9d(0x309):'',_0x5f3967=this[_0x298e9d(0x3c9)][_0x298e9d(0x347)]?_0x298e9d(0x37e):'1';let _0x4003e9='';this[_0x298e9d(0x3c9)]['transparent']&&(_0x4003e9='\x0a\x20\x20\x20\x20\x20\x20\x20\x20--ha-card-background:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20--card-background-color:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20background:\x20transparent;\x0a\x20\x20\x20\x20\x20\x20\x20\x20box-shadow:\x20none;\x0a\x20\x20\x20\x20\x20\x20\x20\x20border:\x20none;\x0a\x20\x20\x20\x20\x20\x20');const _0x3d2334='\x0a\x20\x20\x20\x20\x20\x20--strip-card-font-size:\x20'+_0x38364d+_0x298e9d(0x34e)+_0x42d7d6+_0x298e9d(0x377)+_0x32a298+_0x298e9d(0x209)+_0x192f6b+';\x0a\x20\x20\x20\x20\x20\x20--strip-card-badge-font-size:\x20'+_0x24c74f+_0x298e9d(0x226)+_0x3bafd7+';\x0a\x20\x20\x20\x20\x20\x20'+_0xed1413+_0x298e9d(0x34c)+_0x4003e9+_0x298e9d(0x33f),_0x252bed=(this['_config'][_0x298e9d(0x2b8)]||[])[_0x298e9d(0x32d)](_0x44ef63=>this['_expandEntityConfig'](_0x44ef63))['flatMap'](({entityConfig:_0x2b346e,vars:_0x43d541})=>{const _0x189ab2=_0x298e9d,_0x473fbc=this['renderEntity'](_0x2b346e,_0x43d541);return _0x473fbc?Array[_0x189ab2(0x2f0)](_0x473fbc)?_0x473fbc:[_0x473fbc]:[];}),_0x5b14ff=_0x252bed['length']>0x0,_0x31d0dc=!_0x5b14ff;if(_0x31d0dc&&this[_0x298e9d(0x3c9)][_0x298e9d(0x287)])return this[_0x298e9d(0x3cf)]=0x0,this['style'][_0x298e9d(0x2cb)]='none',html``;this[_0x298e9d(0x3e5)]['display']='';if(_0x31d0dc)_0x16ada7='';let _0x2da1a0,_0x2ba767='';if(_0x5b14ff){_0x2da1a0=_0x252bed;if(this['_config']['continuous_scroll']&&!this['_config'][_0x298e9d(0x3ca)]){const _0x53710d=(this[_0x298e9d(0x3c9)][_0x298e9d(0x2b8)]||[])[_0x298e9d(0x22c)]||0x1,_0x22a398=this[_0x298e9d(0x379)]||_0x53710d*0x96,_0x450b85=this[_0x298e9d(0x35f)](this['_containerWidth'](),_0x22a398);this['_copiesRendered']=_0x450b85,_0x2da1a0=[_0x252bed];for(let _0x5965e0=0x1;_0x5965e0<_0x450b85;_0x5965e0++){_0x2da1a0['push'](html`<span class="copy" aria-hidden="true">${_0x252bed}</span>`);}}else this[_0x298e9d(0x3cf)]=0x0;}else{this[_0x298e9d(0x3cf)]=0x0;const _0x32faba=this[_0x298e9d(0x3c9)][_0x298e9d(0x3d7)];_0x32faba!==![]&&_0x32faba!==null&&_0x32faba!==undefined&&(_0x2ba767=this[_0x298e9d(0x217)](String(_0x32faba),this[_0x298e9d(0x28e)])||'');if(_0x2ba767){const _0x3fbadf=html`
<div class="ticker-item empty">
<span class="empty-text">${_0x2ba767}</span>
</div>
`;if(this['_config'][_0x298e9d(0x347)]&&!this[_0x298e9d(0x3c9)][_0x298e9d(0x3ca)]){const _0x5132a1=this[_0x298e9d(0x35f)](this['_containerWidth'](),0xc8);_0x2da1a0=[];for(let _0x6bf5fe=0x0;_0x6bf5fe<_0x5132a1;_0x6bf5fe++){_0x2da1a0[_0x298e9d(0x341)](_0x3fbadf);}}else _0x2da1a0=[_0x3fbadf];}else _0x2da1a0=[];}let _0xa60f71='';if(this['_config']['vertical_scroll'])_0xa60f71=this[_0x298e9d(0x3c9)][_0x298e9d(0x221)]===_0x298e9d(0x3ad)?_0x298e9d(0x350):_0x298e9d(0x2ab);else{const _0xa02a61=this[_0x298e9d(0x3c9)][_0x298e9d(0x300)]||_0x298e9d(0x200);_0xa60f71=_0xa02a61==='right'?'ticker-right':'ticker';}const _0x33687d=!_0x5b14ff&&this[_0x298e9d(0x3c9)][_0x298e9d(0x347)]===![],_0x25aaf8=_0x33687d?'none':_0xa60f71,_0x18331f=_0x33687d?0x0:_0xd7429f,_0x4ac512=_0x33687d?'1':_0x5f3967,_0x3efc56=!_0x5b14ff?'\x20empty-state':'',_0x3b8fc7=this[_0x298e9d(0x3c9)]['full_width']?_0x298e9d(0x265):_0x298e9d(0x1f4),_0x207999=this[_0x298e9d(0x3c9)]['full_width']?_0x298e9d(0x227)+this[_0x298e9d(0x37f)]+_0x298e9d(0x1ee)+this['_scrollbarWidth']+_0x298e9d(0x272):'',_0x227201=this[_0x298e9d(0x3c9)]['pause_when_hidden']!==![]&&(this['_offscreen']||this[_0x298e9d(0x3aa)]),_0x3dc805=this[_0x298e9d(0x3c9)]['respect_reduced_motion']!==![]?_0x298e9d(0x26a):'';return html`
<div class="${_0x3b8fc7}" style="${_0x207999}">
<ha-card .header="${_0x5dae5e}" style="${_0x3d2334}">
<div
class="ticker-wrap ${this[_0x298e9d(0x3c9)][_0x298e9d(0x2e9)]?_0x298e9d(0x271):''} ${this[_0x298e9d(0x284)]?_0x298e9d(0x324):''} ${_0x227201?_0x298e9d(0x2db):''} ${_0x16ada7} ${_0x13bc0b}${_0x3efc56}${_0x3dc805}"
aria-live="off"
@click=${this[_0x298e9d(0x1f7)]}
>
<div
class="ticker-move ${_0x403af6}"
style="
animation-duration: ${_0x18331f}s;
animation-iteration-count: ${_0x4ac512};
animation-name: ${_0x25aaf8};
"
>
${_0x2da1a0}
</div>
</div>
</ha-card>
</div>
`;}[_0x51fa3c(0x256)](_0x2f3e83,_0x13eb22={}){const _0x127cfe=_0x51fa3c,_0x1ad887=typeof _0x2f3e83===_0x127cfe(0x330)?_0x2f3e83:_0x2f3e83['entity'],_0x4c3af0=_0x13eb22['stateObj']??(_0x1ad887?this['hass'][_0x127cfe(0x2ad)][_0x1ad887]:null),_0x10204d=_0x13eb22[_0x127cfe(0x373)]!==undefined?_0x13eb22[_0x127cfe(0x373)]:this[_0x127cfe(0x1ef)](_0x2f3e83,_0x4c3af0),_0x495807=this[_0x127cfe(0x381)](typeof _0x2f3e83===_0x127cfe(0x330)?{'entity':_0x1ad887}:_0x2f3e83,_0x1ad887,_0x4c3af0,_0x10204d),_0x1c1616={..._0x13eb22,'entity':_0x13eb22[_0x127cfe(0x3bd)]!==undefined?_0x13eb22[_0x127cfe(0x3bd)]:_0x1ad887,'stateObj':_0x4c3af0,'value':_0x10204d,'trend':_0x495807[_0x127cfe(0x2fe)],'delta':_0x495807[_0x127cfe(0x33d)],'prev_value':_0x495807[_0x127cfe(0x314)]};if(_0x2f3e83[_0x127cfe(0x23e)]){let _0x44d1e0=this[_0x127cfe(0x3c1)](_0x2f3e83[_0x127cfe(0x23e)],this['hass'],_0x1c1616);String(_0x44d1e0)[_0x127cfe(0x2be)]()===_0x127cfe(0x2d6)&&(_0x44d1e0=![]);if(!_0x44d1e0)return null;}if(_0x1ad887&&!_0x4c3af0)return html`<div class="ticker-item error">
Unknown Entity: ${_0x1ad887}
</div>`;if(!_0x1ad887&&!_0x2f3e83['value_template'])return html`<div class="ticker-item error">
Must specify entity or value_template
</div>`;let _0xaf4e8=_0x10204d;_0x2f3e83[_0x127cfe(0x245)]&&(_0xaf4e8=this[_0x127cfe(0x3c1)](_0x2f3e83[_0x127cfe(0x245)],this['hass'],_0x1c1616));const _0xfe53e1=_0x2f3e83[_0x127cfe(0x2de)]!==undefined?_0x2f3e83[_0x127cfe(0x2de)]:this[_0x127cfe(0x3c9)][_0x127cfe(0x2de)];if(_0xfe53e1){const _0x292475=typeof _0xaf4e8===_0x127cfe(0x2cd)?_0xaf4e8:typeof _0xaf4e8==='string'&&_0xaf4e8[_0x127cfe(0x3b4)]()!==''&&!isNaN(Number(_0xaf4e8))?Number(_0xaf4e8):null;if(_0x292475!==null&&isFinite(_0x292475)){const _0x215aa2=(String(_0xaf4e8)[_0x127cfe(0x3bc)]('.')[0x1]||'')[_0x127cfe(0x22c)],_0x527a38=this[_0x127cfe(0x28e)]?.[_0x127cfe(0x33a)]?.[_0x127cfe(0x35a)]||undefined;try{_0xaf4e8=new Intl[(_0x127cfe(0x2f1))](_0x527a38,{'minimumFractionDigits':Math[_0x127cfe(0x2a9)](_0x215aa2,0x6),'maximumFractionDigits':Math['min'](Math[_0x127cfe(0x26c)](_0x215aa2,0x0),0x6)})[_0x127cfe(0x3db)](_0x292475);}catch(_0x455492){}}}typeof _0xaf4e8===_0x127cfe(0x330)&&_0xaf4e8[_0x127cfe(0x22c)]>0x0&&(_0xaf4e8=_0xaf4e8[_0x127cfe(0x26f)](0x0)[_0x127cfe(0x306)]()+_0xaf4e8[_0x127cfe(0x266)](0x1));const _0x20e69e=_0x4c3af0?_0x4c3af0['attributes'][_0x127cfe(0x1f8)]||_0x1ad887:'';let _0x1b9836;if(_0x2f3e83['name']==='')_0x1b9836='';else _0x2f3e83['name']?_0x1b9836=this[_0x127cfe(0x217)](_0x2f3e83[_0x127cfe(0x23c)],this[_0x127cfe(0x28e)],_0x1c1616):_0x1b9836=this['_sanitizeName'](_0x20e69e);let _0x264cf2='';if(_0x2f3e83[_0x127cfe(0x336)]!==undefined)_0x264cf2=_0x2f3e83[_0x127cfe(0x336)];else _0x4c3af0&&_0x4c3af0[_0x127cfe(0x1fc)][_0x127cfe(0x27f)]&&(_0x264cf2=_0x4c3af0[_0x127cfe(0x1fc)][_0x127cfe(0x27f)]);_0x264cf2=this[_0x127cfe(0x217)](_0x264cf2,this[_0x127cfe(0x28e)],_0x1c1616);const _0x313e9a=_0x2f3e83[_0x127cfe(0x302)]!==undefined?_0x2f3e83[_0x127cfe(0x302)]:this[_0x127cfe(0x3c9)][_0x127cfe(0x302)],_0x336f90=this['_interpolateTemplateString'](_0x313e9a,this['hass'],_0x1c1616),_0x1f0b82=_0x2f3e83[_0x127cfe(0x290)]||this[_0x127cfe(0x3c9)][_0x127cfe(0x290)],_0x57306a=_0x2f3e83[_0x127cfe(0x32a)]||this[_0x127cfe(0x3c9)][_0x127cfe(0x32a)],_0x3a6a14=typeof _0x1f0b82===_0x127cfe(0x330)&&_0x1f0b82['includes']('{{')?this[_0x127cfe(0x217)](_0x1f0b82,this[_0x127cfe(0x28e)],_0x1c1616):_0x1f0b82,_0xd0aada=typeof _0x57306a===_0x127cfe(0x330)&&_0x57306a[_0x127cfe(0x1fe)]('{{')?this[_0x127cfe(0x217)](_0x57306a,this['hass'],_0x1c1616):_0x57306a,_0x1bfab3=_0x2f3e83['separator_font_weight']||this['_config'][_0x127cfe(0x3c7)],_0x212d5d=typeof _0x1bfab3===_0x127cfe(0x330)&&_0x1bfab3[_0x127cfe(0x1fe)]('{{')?this[_0x127cfe(0x217)](_0x1bfab3,this[_0x127cfe(0x28e)],_0x1c1616):_0x1bfab3;let _0x24a519=_0x2f3e83[_0x127cfe(0x3d0)];(_0x24a519===undefined||_0x24a519===null||_0x24a519==='')&&(_0x24a519=this['_config'][_0x127cfe(0x3d0)]);if(_0x24a519===_0x127cfe(0x3d3))_0x24a519=!![];if(_0x24a519===_0x127cfe(0x2d6))_0x24a519=![];let _0x30d10e=this[_0x127cfe(0x3c1)](_0x24a519,this[_0x127cfe(0x28e)],_0x1c1616);const _0x189251=_0x2f3e83[_0x127cfe(0x2f2)]||this[_0x127cfe(0x3c9)][_0x127cfe(0x2f2)],_0x1aad9d=_0x2f3e83[_0x127cfe(0x281)]||this['_config'][_0x127cfe(0x281)],_0x3367b8=_0x2f3e83[_0x127cfe(0x3b6)]||this['_config']['unit_color'],_0x32055e=_0x2f3e83[_0x127cfe(0x262)]||this[_0x127cfe(0x3c9)][_0x127cfe(0x262)];let _0x588acb=typeof _0x189251===_0x127cfe(0x330)&&_0x189251[_0x127cfe(0x1fe)]('{{')?this[_0x127cfe(0x217)](_0x189251,this['hass'],_0x1c1616):_0x189251,_0x5dff3a=typeof _0x1aad9d===_0x127cfe(0x330)&&_0x1aad9d[_0x127cfe(0x1fe)]('{{')?this['_interpolateTemplateString'](_0x1aad9d,this['hass'],_0x1c1616):_0x1aad9d,_0x1f1acc=typeof _0x3367b8==='string'&&_0x3367b8[_0x127cfe(0x1fe)]('{{')?this[_0x127cfe(0x217)](_0x3367b8,this[_0x127cfe(0x28e)],_0x1c1616):_0x3367b8,_0x1798cb=typeof _0x32055e===_0x127cfe(0x330)&&_0x32055e[_0x127cfe(0x1fe)]('{{')?this['_interpolateTemplateString'](_0x32055e,this[_0x127cfe(0x28e)],_0x1c1616):_0x32055e,_0x48f6a9='';if(_0x495807[_0x127cfe(0x389)]){const _0x34318e=_0x495807['cfg'],_0x3aceab=_0x34318e[_0x127cfe(0x214)]||_0x127cfe(0x342),_0x491b3e=_0x34318e[_0x127cfe(0x3b5)]||'var(--strip-card-trend-down,\x20#f44336)',_0x105221=_0x34318e[_0x127cfe(0x3be)]===undefined||_0x34318e[_0x127cfe(0x3be)]===null,_0x8815ca=_0x105221?_0x127cfe(0x359):_0x34318e[_0x127cfe(0x3be)]||'',_0x172eae=_0x495807['dir']==='up'?_0x3aceab:_0x495807['dir']===_0x127cfe(0x29e)?_0x491b3e:_0x8815ca,_0x34c217=Array[_0x127cfe(0x2f0)](_0x34318e[_0x127cfe(0x36f)])?_0x34318e[_0x127cfe(0x36f)]:typeof _0x34318e[_0x127cfe(0x36f)]===_0x127cfe(0x330)?[_0x34318e['apply_to']]:[_0x127cfe(0x373),_0x127cfe(0x305)],_0x188871=(_0x5dbc95,_0x13c423)=>_0x105221&&_0x495807['dir']===_0x127cfe(0x344)&&_0x5dbc95!==_0x13c423,_0x3deab1=_0x188871(_0x1aad9d,STRIP_CARD_DEFAULTS[_0x127cfe(0x281)]);if(_0x172eae){if(_0x34c217[_0x127cfe(0x1fe)]('value')&&!_0x3deab1)_0x5dff3a=_0x172eae;if(_0x34c217['includes'](_0x127cfe(0x23c))&&!_0x188871(_0x189251,STRIP_CARD_DEFAULTS[_0x127cfe(0x2f2)]))_0x588acb=_0x172eae;if(_0x34c217[_0x127cfe(0x1fe)]('unit')&&!_0x188871(_0x3367b8,STRIP_CARD_DEFAULTS[_0x127cfe(0x3b6)]))_0x1f1acc=_0x172eae;if(_0x34c217[_0x127cfe(0x1fe)]('icon')&&!_0x188871(_0x32055e,STRIP_CARD_DEFAULTS[_0x127cfe(0x262)]))_0x1798cb=_0x172eae;}const _0xdb1319=_0x172eae&&!_0x3deab1?_0x172eae:_0x127cfe(0x333),_0x5c1d8d=_0x34318e[_0x127cfe(0x2f4)]!==![]&&_0x34c217['includes'](_0x127cfe(0x305));let _0x5ebfbd='';if(_0x5c1d8d&&_0x495807[_0x127cfe(0x2fe)]!==_0x127cfe(0x344)){const _0x242510=_0x495807[_0x127cfe(0x2fe)]==='up'?_0x34318e[_0x127cfe(0x2c1)]||'mdi:menu-up':_0x34318e[_0x127cfe(0x27c)]||_0x127cfe(0x327);_0x5ebfbd=html`<ha-icon class="trend-arrow" .icon=${_0x242510} style="color: ${_0xdb1319};"></ha-icon>`;}let _0x4c8478='';const _0x3a16de=_0x34318e[_0x127cfe(0x218)];if(_0x3a16de&&_0x3a16de!==_0x127cfe(0x367)&&_0x495807['delta']!=null){const _0x3c7cc6=_0x495807[_0x127cfe(0x33d)]>=0x0?'+':'';_0x3a16de===_0x127cfe(0x2aa)?_0x495807[_0x127cfe(0x2aa)]!=null&&(_0x4c8478=''+_0x3c7cc6+_0x495807[_0x127cfe(0x2aa)][_0x127cfe(0x216)](_0x34318e[_0x127cfe(0x35b)]??0x1)+'%'):_0x4c8478=''+_0x3c7cc6+Number(_0x495807[_0x127cfe(0x33d)][_0x127cfe(0x216)](_0x34318e[_0x127cfe(0x35b)]??0x2));}const _0x27b3b6=_0x4c8478?html`<span class="trend-delta" style="color: ${_0xdb1319};">${_0x4c8478}</span>`:'';if(_0x5ebfbd||_0x27b3b6)_0x48f6a9=html`${_0x5ebfbd}${_0x27b3b6}`;}let _0x2ddc1f=_0x2f3e83[_0x127cfe(0x1f5)];typeof _0x2ddc1f===_0x127cfe(0x330)&&_0x2ddc1f[_0x127cfe(0x1fe)]('{{')?_0x2ddc1f=this[_0x127cfe(0x3c1)](_0x2ddc1f,this[_0x127cfe(0x28e)],_0x1c1616):_0x2ddc1f=this['_interpolateTemplateString'](_0x2ddc1f,this[_0x127cfe(0x28e)],_0x1c1616);const _0x586bc9=html`<span class="value" style="color: ${_0x5dff3a};"
>${_0xaf4e8}</span
>`,_0x4c883c=html`<span class="unit" style="color: ${_0x1f1acc};"
>${_0x264cf2}</span
>`,_0x1517fd=_0x1b9836||_0x20e69e,_0x51ef92=_0x1517fd+':\x20'+_0xaf4e8+'\x20'+_0x264cf2,_0x47a613=this[_0x127cfe(0x3c9)][_0x127cfe(0x391)];if(_0x47a613){const _0x5e8713=this[_0x127cfe(0x217)](_0x2f3e83[_0x127cfe(0x321)]||this[_0x127cfe(0x3c9)][_0x127cfe(0x321)],this['hass'],_0x1c1616),_0x5260df=this[_0x127cfe(0x217)](_0x2f3e83[_0x127cfe(0x259)]||this[_0x127cfe(0x3c9)]['badge_label_color'],this['hass'],_0x1c1616),_0x454f69=this['_interpolateTemplateString'](_0x2f3e83[_0x127cfe(0x250)]||this[_0x127cfe(0x3c9)][_0x127cfe(0x250)],this[_0x127cfe(0x28e)],_0x1c1616),_0x23de95=_0x1b9836||_0x1517fd;return html`
<div
class="ticker-item chip-item"
@mousedown=${this[_0x127cfe(0x2fa)]}
@mouseup=${_0x519c0a=>this[_0x127cfe(0x3e9)](_0x519c0a,_0x2f3e83)}
@touchstart=${this[_0x127cfe(0x2fa)]}
@touchend=${_0x161f75=>this[_0x127cfe(0x3e9)](_0x161f75,_0x2f3e83)}
title="${_0x51ef92}"
>
<div
class="chip ${_0x23de95?_0x127cfe(0x237):''}"
style="background: ${_0x5e8713};"
>
${_0x30d10e?_0x2ddc1f?html`<ha-icon
class="chip-icon"
.icon=${_0x2ddc1f}
style="color: ${_0x1798cb};"
></ha-icon>`:_0x4c3af0?html`<state-badge
class="chip-icon"
.hass=${this[_0x127cfe(0x28e)]}
.stateObj=${_0x4c3af0}
></state-badge>`:'':''}
<div class="chip-text">
${_0x23de95?html`<span
class="chip-label"
style="color: ${_0x5260df};"
>${_0x23de95}</span
>`:''}
<span class="chip-value" style="color: ${_0x454f69};">
<span class="value">${_0xaf4e8}</span>
${_0x264cf2?html`<span class="unit">${_0x264cf2}</span>`:''}
${_0x48f6a9}
</span>
</div>
</div>
</div>
`;}return[html`
<div
class="ticker-item"
@mousedown=${this[_0x127cfe(0x2fa)]}
@mouseup=${_0x96b63d=>this['_handleUp'](_0x96b63d,_0x2f3e83)}
@touchstart=${this[_0x127cfe(0x2fa)]}
@touchend=${_0x539c32=>this[_0x127cfe(0x3e9)](_0x539c32,_0x2f3e83)}
title="${_0x51ef92}"
>
${_0x30d10e?_0x2ddc1f?html`<ha-icon
class="icon"
.icon=${_0x2ddc1f}
style="color: ${_0x1798cb};"
></ha-icon>`:_0x4c3af0?html`<state-badge
class="icon"
.hass=${this['hass']}
.stateObj=${_0x4c3af0}
></state-badge>`:'':''}
${_0x1b9836?html`<span class="name" style="color: ${_0x588acb};"
>${_0x1b9836}:</span
>`:''}
${_0x586bc9}${_0x4c883c}${_0x48f6a9}
</div>
`,html`<span class="separator" style="color: ${_0x3a6a14}; font-size: ${_0xd0aada}; font-weight: ${_0x212d5d};">${_0x336f90}</span>`];}static get[_0x51fa3c(0x251)](){return css`
:host {
display: block;
}
.strip-card-wrapper {
display: flex;
justify-content: center;
width: 100%;
position: relative;
}
.strip-card-wrapper.full-width {
position: relative;
margin-left: calc(-50vw + 50% + var(--sidebar-width, 256px) / 2);
width: calc(
100vw - var(--sidebar-width, 256px) - var(--scrollbar-width, 0px)
);
}
.strip-card-wrapper.full-width ha-card {
width: 100% !important;
max-width: 100% !important;
}
ha-card {
overflow: hidden;
border-radius: var(--strip-card-border-radius, 0px);
height: var(--strip-card-height, 50px);
width: var(--strip-card-width);
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.ticker-wrap {
flex-grow: 1;
display: flex;
align-items: center;
width: 100%;
overflow: hidden;
background-color: var(--card-background-color, white);
padding: 0;
box-sizing: border-box;
position: relative;
}
.ticker-wrap.empty-state {
justify-content: center;
}
.ticker-item.empty {
cursor: default;
opacity: 0.7;
}
.ticker-item.empty .empty-text {
display: inline-block;
max-width: 100%;
white-space: normal;
text-align: center;
}
.ticker-wrap.has-vertical-scroll {
flex-direction: column;
height: var(--strip-card-height, 50px);
overflow: hidden;
}
.ticker-wrap.has-fading {
-webkit-mask-image: linear-gradient(
to right,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 1) 15%,
rgba(0, 0, 0, 1) 85%,
rgba(0, 0, 0, 0) 100%
);
mask-image: linear-gradient(
to right,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 1) 15%,
rgba(0, 0, 0, 1) 85%,
rgba(0, 0, 0, 0) 100%
);
}
.ticker-wrap.has-vertical-scroll.has-fading {
-webkit-mask-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 1) 15%,
rgba(0, 0, 0, 1) 85%,
rgba(0, 0, 0, 0) 100%
);
mask-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 0) 0%,
rgba(0, 0, 0, 1) 15%,
rgba(0, 0, 0, 1) 85%,
rgba(0, 0, 0, 0) 100%
);
}
.ticker-wrap.pausable:hover .ticker-move {
animation-play-state: paused;
}
.ticker-wrap.paused .ticker-move {
animation-play-state: paused;
}
.ticker-wrap.env-paused .ticker-move {
animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
.ticker-wrap.reduced-ok .ticker-move {
animation: none !important;
}
}
.copy {
display: contents;
}
.trend-arrow {
--mdc-icon-size: 1.2em;
margin-left: 1px;
vertical-align: middle;
}
.trend-delta {
margin-left: 2px;
font-size: 0.85em;
}
.ticker-move {
display: inline-block;
white-space: nowrap;
will-change: transform;
transform: translateZ(0);
animation-timing-function: linear;
animation-iteration-count: infinite;
}
.ticker-move.has-inline-vertical-alignment {
display: block;
height: max-content;
}
.ticker-wrap.has-vertical-scroll .ticker-move {
white-space: normal;
animation-direction: normal;
animation-fill-mode: forwards;
display: block;
height: max-content;
}
.ticker-item {
display: inline-flex;
align-items: center;
margin-right: 0.6em;
font-size: var(--strip-card-font-size, 14px);
cursor: pointer;
user-select: none;
}
.ticker-wrap.has-vertical-scroll .ticker-item {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 0.5rem 1rem;
margin: 0;
}
.separator {
display: inline-flex;
align-items: center;
justify-content: center;
margin: 0 1rem;
color: var(--disabled-text-color);
line-height: 1;
flex-shrink: 0;
}
.ticker-wrap.has-vertical-scroll .separator {
margin: 0.5rem 1rem 0;
}
.ticker-move.has-inline-vertical-alignment .ticker-item {
display: inline-flex;
margin: 0.5rem 0;
}
.icon {
margin-right: 0em;
}
.ticker-item .name {
font-weight: bold;
margin-right: 0.5em;
}
.ticker-item .value + .unit,
.ticker-item .unit + .value {
margin-left: 0.2em;
}
.error {
color: var(--error-color);
font-weight: bold;
}
.chip-item {
display: inline-flex;
align-items: center;
margin: 0 0.4rem;
font-size: var(--strip-card-font-size, 14px);
vertical-align: middle;
}
.chip {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 10px;
margin-right: 8px;
height: var(--strip-card-badge-height, 28px);
line-height: 1;
border-radius: 999px;
cursor: pointer;
font-size: var(--strip-card-badge-font-size, 12px);
white-space: nowrap;
box-sizing: border-box;
background: var(--primary-background-color);
box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06),
0 0 0 1px rgba(15, 23, 42, 0.04);
transition: background-color 0.2s ease, box-shadow 0.2s ease,
transform 0.15s ease;
}
.chip:hover {
box-shadow: 0 4px 8px rgba(15, 23, 42, 0.1),
0 0 0 1px rgba(15, 23, 42, 0.06);
transform: translateY(-1px);
}
.chip:active {
transform: translateY(0);
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12),
0 0 0 1px rgba(15, 23, 42, 0.08);
}
.chip-icon {
--mdc-icon-size: var(--strip-card-badge-icon-size, 16px);
width: var(--strip-card-badge-icon-size, 16px);
height: var(--strip-card-badge-icon-size, 16px);
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
}
.chip-text {
display: flex;
flex-direction: row;
gap: 4px;
align-items: center;
justify-content: center;
line-height: 1.1;
}
.chip-label {
font-size: 0.8em;
font-weight: 500;
letter-spacing: 0.04em;
text-transform: uppercase;
opacity: 0.75;
}
.chip-value {
font-weight: 600;
font-size: 1em;
}
@keyframes ticker {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-50%);
}
}
@keyframes ticker-right {
0% {
transform: translateX(-50%);
}
100% {
transform: translateX(0);
}
}
@keyframes vertical-ticker {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-50%);
}
}
@keyframes vertical-ticker-inline {
0% {
transform: translateY(0);
}
100% {
transform: translateY(-50%);
}
}
`;}}function _0x16ef(){const _0x2a3673=[';\x0a\x20\x20\x20\x20\x20\x20--strip-card-badge-height:\x20','not','entries','Duration\x20(s)','Strip\x20Card','Badge\x20Background','add','No\x20entities\x20passed\x20the\x20visible_if\x20conditions','location-changed','_action','tap_action','up_color','card_width','toFixed','_interpolateTemplateString','show_delta','url','_entityTabs','_handleAction','_renderEntity','Unit','!==\x20null','29234315ENaFxU','_getCompiledFunction','vertical_alignment','_actionState','trend','_updateScrollbarWidth','replace',';\x0a\x20\x20\x20\x20\x20\x20--strip-card-badge-icon-size:\x20','--sidebar-width:\x20','multiply','has-vertical-scroll','normal','_setJinjaCache','length','General','===\x20undefined','_trendMemory','_toggleEmptyMessage','bold','disabled','disconnect','_toggleSection','_jinjaTemplates','default','has-label','changedTouches','_blank','Pause\x20on\x20click','duration','name','stack','visible_if','[Strip\x20Card]\x20Sidebar\x20observer\x20setup\x20failed','getCardSize','forEach','Separator\x20font\x20size','Icon\x20color','result','value_template','_setEntityTab','capitalize','full_width','[Strip\x20Card]\x20Template\x20pending\x20Jinja\x20API\x20evaluation:','null','.badge_value_color','_jinjaToJs','colors','Direction','Empty\x20message','badge_value_color','styles','_addEntity','clientY','keys','_jinjaCacheTTL','renderEntity',')\x20:\x20(','createElement','badge_label_color','getStubConfig','var(--primary-color)','Hide\x20when\x20empty','Semi-Bold','define','Colors','border_radius','_globalTab','icon_color','zone.home','badge_height','strip-card-wrapper\x20full-width','slice','label','ha-sidebar','isNaN','\x20reduced-ok','repeat_on','max','Separator','14px','charAt','{{\x20states(\x27sensor.example\x27)\x20}}','pausable','px;','_emitConfigChanged','%c\x20STRIP-CARD\x20%c\x20Loaded\x20-\x20Version\x202.6.0\x20','width','customCards','_tb','layout','then','connection','floor','down_icon','scroll_speed','memory','unit_of_measurement','render','value_color','general','_sidebarResizeObserver','_isPaused','12px','None','hide_when_empty','threshold','pause_when_hidden','127434FhWMgE','substr','Card\x20width','16px','hass','Font\x20size','separator_color','home-assistant-main','set','1963705LNPHZS','Leave\x20empty\x20to\x20disable','Threshold','target','Show\x20delta','.entity','homeassistant','querySelector','render_template','unique','getBoundingClientRect','down','values','!==\x20undefined','_jinjaRefreshTimer','Badge\x20Value\x20Color','_jinjaCache','.trend.threshold','previous_close','Bold','documentElement','timestamp_custom','min','percent','vertical-ticker','title','states','active','Separator\x20color','css','state','endsWith','clientX','warn','round','first','placeholder','entities','Use\x20Global','Name\x20(\x27\x27\x20hides\x20label)','.badge_label_color','People\x20at\x20Home','call','toLowerCase','Badge\x20Label\x20Color','.icon_color','up_icon','.trend.','0px','strip-card','500','flags','.trend.show_delta','mdi:...\x20or\x20{{\x20template\x20}}','Empty\x20=\x20use\x20duration','A\x20card\x20that\x20shows\x20entities\x20on\x20a\x20scrolling\x20strip.','display','_updateSidebarWidth','number','disconnectedCallback','Right','_refreshJinjaTemplates','[Strip\x20Card]\x20Jinja\x20API\x20call\x20failed:','scrollWidth','_fireMoreInfo','Unit\x20color','tap','false','_ico','Light','assist','freeze','env-paused','_setupSidebarObserver','has','format_number','font_size','_visObserver','_containerWidth','_openEntities','join','#f44336','else','sizing','hidden','prototype','pause_on_hover','_toggleEntity','now','Hold\x20Action','12MRCCYG','var(--primary-text-color)','navigation_path','isArray','NumberFormat','name_color','_actionChanged','show_arrow','50px','e.g.\x20change\x20/\x20previous_close','Show\x20icon\x20(override)','6846216rngcaT','card_height','_handleDown','change',')\x20|\x20(','scrollHeight','dir','Show\x20empty\x20message','scroll_direction','_expandEntityConfig','separator','Static\x20or\x20{{\x20template\x20}}','Visible\x20if\x20(template)','arrow','toUpperCase','Border\x20radius','configValue','has-inline-vertical-alignment','updated','1405335Hdzwyw','html','new_tab','.trend.down_color','Transparent\x20card','_expandedEntities','_transpileParens','next','28px','prev','Down\x20color','ha-drawer','Entity\x20','perform_action','_measureContentWidth','_tog','Templated\x20icon','get','Pause\x20when\x20hidden','_setGlobalTab','_jinjaPending','hasOwnProperty','badge_background','_chev','isIntersecting','paused','url_path','900','mdi:menu-down','more-info','fading','separator_font_size','color:\x20orange;\x20font-weight:\x20bold;\x20background:\x20black','Hide','flatMap','toggle','.repeat_on','string','Sizing','_resolveConfigValue','inherit','checkbox','7643412YDbWgb','unit','_valueChanged','sort','stopPropagation','locale',');\x0a\x20\x20\x20\x20\x20\x20','Badge\x20Height','delta','_scheduleJinjaRefresh','\x0a\x20\x20\x20\x20','callService','push','var(--strip-card-trend-up,\x20#4caf50)','hold','flat','getPrototypeOf','regex_search','continuous_scroll','Vertical\x20scroll','toggles','none\x20|\x20absolute\x20|\x20percent','733KgFZdf','\x0a\x20\x20\x20\x20\x20\x20','Left',';\x0a\x20\x20\x20\x20\x20\x20--strip-card-border-radius:\x20','_jinjaCacheTimestamps','vertical-ticker-inline','_statesProxy','.ticker-item','setConfig','entity_id','properties','custom:strip-card','_jinjaTernaryToJs','catch','var(--strip-card-trend-flat,\x20var(--primary-text-color))','language','delta_precision','startsWith','transparent','visibilitychange','_copyCount','_openGlobal','dispatchEvent','.trend.up_color','{{\x20state_attr(entity,\x20\x27Alerts\x27)\x20}}','baseline','_animationDuration','Normal','none','open','Actions','Vertical\x20alignment','pushState','type','_pruneDefaults','.badge_background','apply_to','text','_onVisibilityChange','_wsUnsubs','value','info','_removeEntity','Card\x20height',';\x0a\x20\x20\x20\x20\x20\x20--strip-card-height:\x20','Fading\x20edges','_measuredItemsWidth','hold_action','map','test','Tap\x20Action','infinite','_sidebarWidth','closest','_resolveTrend','name_replace','toJSON','vars','last','Continuous\x20scroll','object','home-assistant','cfg','source','end','_templateCache','match','POST','Trend\x20source','timer','badge_style','Value\x20color','Black','_statesProxyHass','getConfigElement','Badge\x20Style','innerWidth','.visible_if','Layout','global','1502HuFqUX','call-service','.ticker-wrap','entities.','checked','respect_reduced_motion','.trend.source','259hFpzix','shadowRoot','[Strip\x20Card]\x20Trend\x20memory\x20update\x20failed:','int','Name\x20color','observe','_self','parse','_pageHidden','strip-card-editor','badge_font_size','inline','8XtcrcY','[Strip\x20Card]\x20Interpolation\x20failed:','stringify','var(--disabled-text-color)','_setupVisibilityObservers','.icon','trim','down_color','unit_color','Scroll\x20speed\x20(px/s)','delete','10Fculge','ha-panel-lovelace','_scrollbarWidth','split','entity','flat_color','sun.sun','400px','evaluateTemplate','•\x20or\x20{{\x20template\x20}}','as_timestamp','_setupScrollbarObserver','_scrollbarResizeObserver','_sel','separator_font_weight','_sanitizeName','_config','vertical_scroll','_orderConfig','size','Up\x20color','_callHassTemplate','_copiesRendered','show_icon','double_tap','touches','true','held','startX','word','empty_message','.show_icon','splice','abs','format','.name_color','Repeat\x20on\x20(template\x20→\x20array)','[Strip\x20Card]\x20Visibility\x20observers\x20unavailable:','.ticker-move','Show\x20icon','detail','var(--secondary-text-color)','Attribute','action','style','badge_icon_size','attribute','===\x20null','_handleUp','Sun','_cacheMax','connectedCallback','px;\x20--scrollbar-width:\x20','_entityBaseValue','pause_on_click','startY','_toggleEntityTrend','.unit','strip-card-wrapper','icon','perform-action','_togglePause','friendly_name','Double\x20Tap\x20Action','double_tap_action','actions','attributes','_nameReplace','includes','Badge\x20Font\x20Size','left','clear','{{\x20value\x20|\x20float\x20>\x200\x20}}','requestUpdate','[Strip\x20Card]\x20Invalid\x20name_replace\x20rule:','cooldown','_configHasTemplate','_offscreen','service'];_0x16ef=function(){return _0x2a3673;};return _0x16ef();}customElements[_0x51fa3c(0x25e)](_0x51fa3c(0x2c4),StripCard);class StripCardEditor extends LitElement{static get[_0x51fa3c(0x355)](){return{'hass':{'type':Object},'_config':{'type':Object},'_openGlobal':{'type':Boolean},'_openEntities':{'type':Boolean},'_expandedEntities':{'type':Object},'_globalTab':{'type':String},'_entityTabs':{'type':Object}};}constructor(){const _0x59b6b1=_0x51fa3c;super(),this['_openGlobal']=!![],this[_0x59b6b1(0x2e2)]=!![],this[_0x59b6b1(0x310)]=new Set(),this[_0x59b6b1(0x261)]=_0x59b6b1(0x278),this[_0x59b6b1(0x21a)]={};}['setConfig'](_0x2e82a6){const _0x230f04=_0x51fa3c;this[_0x230f04(0x3c9)]={'type':_0x230f04(0x356),...STRIP_CARD_DEFAULTS,..._0x2e82a6};if(!this[_0x230f04(0x3c9)][_0x230f04(0x2b8)])this[_0x230f04(0x3c9)][_0x230f04(0x2b8)]=[];}get[_0x51fa3c(0x373)](){const _0x149db4=_0x51fa3c;return this[_0x149db4(0x3c9)];}[_0x51fa3c(0x3cb)](_0x304c6b){const _0x3f7879=_0x51fa3c;if(!_0x304c6b)return _0x304c6b;const _0x4cf4b7=[_0x3f7879(0x36c),_0x3f7879(0x2ac),'entities',_0x3f7879(0x23b),'scroll_speed','scroll_direction',_0x3f7879(0x302),_0x3f7879(0x290),_0x3f7879(0x32a),'separator_font_weight',_0x3f7879(0x3d7),_0x3f7879(0x2df),_0x3f7879(0x215),_0x3f7879(0x2f9),_0x3f7879(0x260),_0x3f7879(0x3d0),'pause_on_hover',_0x3f7879(0x1f0),_0x3f7879(0x287),_0x3f7879(0x347),_0x3f7879(0x3ca),'vertical_alignment',_0x3f7879(0x329),_0x3f7879(0x35d),_0x3f7879(0x248),_0x3f7879(0x2de),_0x3f7879(0x289),'respect_reduced_motion',_0x3f7879(0x223),'badge_style',_0x3f7879(0x321),_0x3f7879(0x259),_0x3f7879(0x250),_0x3f7879(0x264),'badge_font_size',_0x3f7879(0x3e6),_0x3f7879(0x382)],_0x4bd6fe={};for(const _0x2241e7 of _0x4cf4b7){if(_0x2241e7 in _0x304c6b)_0x4bd6fe[_0x2241e7]=_0x304c6b[_0x2241e7];}for(const _0x1c7411 of Object['keys'](_0x304c6b)){if(!(_0x1c7411 in _0x4bd6fe))_0x4bd6fe[_0x1c7411]=_0x304c6b[_0x1c7411];}if(!('type'in _0x4bd6fe))_0x4bd6fe[_0x3f7879(0x36c)]=_0x3f7879(0x356);return _0x4bd6fe;}['_pruneDefaults'](_0x5e406e){const _0x405dad=_0x51fa3c;if(!_0x5e406e)return _0x5e406e;const _0xa1e67d={};for(const [_0x264f1e,_0x85dcb8]of Object[_0x405dad(0x20b)](_0x5e406e)){if(_0x85dcb8===undefined)continue;if(_0x264f1e in STRIP_CARD_DEFAULTS){const _0x1ec82c=STRIP_CARD_DEFAULTS[_0x264f1e];if(_0x85dcb8===_0x1ec82c)continue;if(typeof _0x1ec82c==='number'&&String(_0x85dcb8)===String(_0x1ec82c))continue;if(typeof _0x1ec82c===_0x405dad(0x387)&&_0x1ec82c!==null&&JSON[_0x405dad(0x3b0)](_0x85dcb8)===JSON[_0x405dad(0x3b0)](_0x1ec82c))continue;}_0xa1e67d[_0x264f1e]=_0x85dcb8;}return _0xa1e67d;}['_emitConfigChanged'](){const _0x5d0a34=_0x51fa3c;this[_0x5d0a34(0x361)](new CustomEvent('config-changed',{'detail':{'config':this[_0x5d0a34(0x3cb)](this[_0x5d0a34(0x36d)](this[_0x5d0a34(0x3c9)]))},'bubbles':!![],'composed':!![]}));}[_0x51fa3c(0x337)](_0x478257){const _0x10d47f=_0x51fa3c;if(!this[_0x10d47f(0x3c9)])return;const _0x1b367a=_0x478257[_0x10d47f(0x296)],_0x22bee4=_0x1b367a[_0x10d47f(0x308)];if(!_0x22bee4)return;let _0x44da75;if(_0x478257[_0x10d47f(0x3e1)]&&_0x478257[_0x10d47f(0x3e1)][_0x10d47f(0x373)]!==undefined)_0x44da75=_0x478257[_0x10d47f(0x3e1)][_0x10d47f(0x373)];else{if(_0x1b367a[_0x10d47f(0x36c)]===_0x10d47f(0x334))_0x44da75=_0x1b367a['checked'];else _0x44da75=_0x1b367a[_0x10d47f(0x373)];}if(_0x22bee4[_0x10d47f(0x2b2)]('.show_icon')&&_0x44da75==='global')_0x44da75='';const _0x19663d={...this[_0x10d47f(0x3c9)]},_0x4edc89=_0x22bee4[_0x10d47f(0x3bc)]('.');let _0x4307d1=_0x19663d;for(let _0x333468=0x0;_0x333468<_0x4edc89[_0x10d47f(0x22c)]-0x1;_0x333468++){const _0x19abe4=_0x4edc89[_0x333468],_0x2d0e9b=Number(_0x19abe4);if(Array[_0x10d47f(0x2f0)](_0x4307d1)&&!Number['isNaN'](_0x2d0e9b)){if(!_0x4307d1[_0x2d0e9b])_0x4307d1[_0x2d0e9b]={};_0x4307d1=_0x4307d1[_0x2d0e9b];}else{if(!_0x4307d1[_0x19abe4])_0x4307d1[_0x19abe4]={};_0x4307d1=_0x4307d1[_0x19abe4];}}const _0x19a469=_0x4edc89[_0x4edc89[_0x10d47f(0x22c)]-0x1];if(_0x44da75===''||_0x44da75===null||_0x44da75===undefined){if(Array[_0x10d47f(0x2f0)](_0x4307d1)){const _0x20d820=Number(_0x19a469);if(!Number[_0x10d47f(0x269)](_0x20d820))_0x4307d1[_0x10d47f(0x3d9)](_0x20d820,0x1);}else delete _0x4307d1[_0x19a469];}else{if(Array[_0x10d47f(0x2f0)](_0x4307d1)){const _0x42097c=Number(_0x19a469);if(!Number[_0x10d47f(0x269)](_0x42097c))_0x4307d1[_0x42097c]=_0x44da75;}else _0x4307d1[_0x19a469]=_0x44da75;}this[_0x10d47f(0x3c9)]=_0x19663d,this[_0x10d47f(0x273)]();}[_0x51fa3c(0x2f3)](_0x2d4f30,_0x39d34c,_0x131517){const _0x1d6d13=_0x51fa3c;_0x2d4f30[_0x1d6d13(0x339)]();const _0x21ed6f=JSON[_0x1d6d13(0x3a9)](JSON['stringify'](this[_0x1d6d13(0x3c9)]));if(!_0x21ed6f[_0x1d6d13(0x2b8)][_0x39d34c])_0x21ed6f['entities'][_0x39d34c]={};_0x21ed6f['entities'][_0x39d34c][_0x131517]=_0x2d4f30[_0x1d6d13(0x3e1)][_0x1d6d13(0x373)],this[_0x1d6d13(0x3c9)]=_0x21ed6f,this[_0x1d6d13(0x273)]();}[_0x51fa3c(0x252)](){const _0x22e2bf=_0x51fa3c,_0xf44438=JSON[_0x22e2bf(0x3a9)](JSON['stringify'](this[_0x22e2bf(0x3c9)]));if(!Array[_0x22e2bf(0x2f0)](_0xf44438[_0x22e2bf(0x2b8)]))_0xf44438[_0x22e2bf(0x2b8)]=[];_0xf44438[_0x22e2bf(0x2b8)][_0x22e2bf(0x341)]({'entity':''});const _0xa09787=_0xf44438[_0x22e2bf(0x2b8)][_0x22e2bf(0x22c)]-0x1;this[_0x22e2bf(0x310)]['add'](_0xa09787),this[_0x22e2bf(0x310)]=new Set(this[_0x22e2bf(0x310)]),this['_entityTabs']={...this['_entityTabs'],[_0xa09787]:'general'},this[_0x22e2bf(0x3c9)]=_0xf44438,this[_0x22e2bf(0x273)]();}[_0x51fa3c(0x375)](_0x37977b){const _0x297a28=_0x51fa3c,_0x59b828=JSON[_0x297a28(0x3a9)](JSON[_0x297a28(0x3b0)](this[_0x297a28(0x3c9)]));if(!Array[_0x297a28(0x2f0)](_0x59b828[_0x297a28(0x2b8)]))return;_0x59b828[_0x297a28(0x2b8)][_0x297a28(0x3d9)](_0x37977b,0x1),this['_config']=_0x59b828;const _0x154a31=new Set();this[_0x297a28(0x310)][_0x297a28(0x241)](_0x588288=>{const _0x1db4bf=_0x297a28;if(_0x588288<_0x37977b)_0x154a31['add'](_0x588288);if(_0x588288>_0x37977b)_0x154a31[_0x1db4bf(0x20f)](_0x588288-0x1);}),this[_0x297a28(0x310)]=_0x154a31,this[_0x297a28(0x273)]();}[_0x51fa3c(0x234)](_0x3a1eed){const _0x55cafe=_0x51fa3c;if(_0x3a1eed===_0x55cafe(0x39a))this[_0x55cafe(0x360)]=!this[_0x55cafe(0x360)];else{if(_0x3a1eed===_0x55cafe(0x2b8))this[_0x55cafe(0x2e2)]=!this['_openEntities'];}}['_toggleEmptyMessage'](_0x254dfa){const _0x13fff7=_0x51fa3c;if(!this['_config'])return;const _0x139080=_0x254dfa[_0x13fff7(0x296)]?.[_0x13fff7(0x39f)]===!![],_0x4c8355={...this[_0x13fff7(0x3c9)]};if(!_0x139080)_0x4c8355[_0x13fff7(0x3d7)]=![];else{if(_0x4c8355[_0x13fff7(0x3d7)]===![]||_0x4c8355['empty_message']==null)_0x4c8355[_0x13fff7(0x3d7)]=_0x13fff7(0x210);}this[_0x13fff7(0x3c9)]=_0x4c8355,this[_0x13fff7(0x273)]();}['_toggleEntityTrend'](_0x5ceefe,_0x5aca5a){const _0x318cb9=_0x51fa3c;if(!this[_0x318cb9(0x3c9)])return;const _0x22fae8=_0x5aca5a[_0x318cb9(0x296)]?.[_0x318cb9(0x39f)]===!![],_0x586594=JSON[_0x318cb9(0x3a9)](JSON['stringify'](this[_0x318cb9(0x3c9)]));if(!_0x586594['entities']||!_0x586594[_0x318cb9(0x2b8)][_0x5ceefe])return;if(_0x22fae8){if(!_0x586594[_0x318cb9(0x2b8)][_0x5ceefe][_0x318cb9(0x223)]||typeof _0x586594[_0x318cb9(0x2b8)][_0x5ceefe][_0x318cb9(0x223)]!==_0x318cb9(0x387))_0x586594['entities'][_0x5ceefe][_0x318cb9(0x223)]={};}else delete _0x586594[_0x318cb9(0x2b8)][_0x5ceefe][_0x318cb9(0x223)];this[_0x318cb9(0x3c9)]=_0x586594,this[_0x318cb9(0x273)]();}['_toggleEntity'](_0x333e53){const _0x55a9ad=_0x51fa3c,_0x54cd3b=new Set(this[_0x55a9ad(0x310)]);if(_0x54cd3b[_0x55a9ad(0x2dd)](_0x333e53))_0x54cd3b['delete'](_0x333e53);else{_0x54cd3b[_0x55a9ad(0x20f)](_0x333e53);if(!this[_0x55a9ad(0x21a)][_0x333e53])this[_0x55a9ad(0x21a)]={...this[_0x55a9ad(0x21a)],[_0x333e53]:'general'};}this[_0x55a9ad(0x310)]=_0x54cd3b,this[_0x55a9ad(0x203)]();}[_0x51fa3c(0x31e)](_0x51e883){this['_globalTab']=_0x51e883;}[_0x51fa3c(0x246)](_0x51b8a8,_0x319c76){const _0x1b6c8e=_0x51fa3c;this[_0x1b6c8e(0x21a)]={...this['_entityTabs'],[_0x51b8a8]:_0x319c76};}['_f'](_0x3cc1b0,_0x483a50,_0x2edbe8,_0x480df1={}){const _0x2b5d7c=_0x51fa3c;return html`<div class="f"><label>${_0x3cc1b0}</label><input type=${_0x480df1[_0x2b5d7c(0x36c)]||_0x2b5d7c(0x370)} .value=${_0x483a50??''} .configValue=${_0x2edbe8} @input=${this['_valueChanged']} placeholder=${_0x480df1[_0x2b5d7c(0x2b7)]||''} ?disabled=${_0x480df1[_0x2b5d7c(0x232)]}></div>`;}['_sel'](_0x34ee95,_0x21495f,_0x3c5c29,_0x30d9cd){const _0x12f068=_0x51fa3c;return html`<div class="f"><label>${_0x34ee95}</label><div class="sw"><select .configValue=${_0x3c5c29} @change=${this[_0x12f068(0x337)]}>${_0x30d9cd['map'](_0x2240d4=>html`<option value=${_0x2240d4['value']} ?selected=${String(_0x21495f)===String(_0x2240d4[_0x12f068(0x373)])}>${_0x2240d4[_0x12f068(0x267)]}</option>`)}</select></div></div>`;}[_0x51fa3c(0x31a)](_0x4298b0,_0x57c231,_0x17942f,_0xeefd4d){const _0x341940=_0x51fa3c;return html`<label class="si"><div class="st"><input type="checkbox" .checked=${_0x57c231} .configValue=${_0x17942f} @change=${_0xeefd4d||this[_0x341940(0x337)]}><span class="ss"></span></div><span class="sn">${_0x4298b0}</span></label>`;}[_0x51fa3c(0x322)](_0xfd480f){return html`<svg class="chev" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="transform:rotate(${_0xfd480f?0xb4:0x0}deg)"><polyline points="6 9 12 15 18 9"/></svg>`;}[_0x51fa3c(0x277)](_0xdb677d,_0x112d4c,_0x39f1d1,_0x1a59df){const _0x441e09=_0x51fa3c;return html`<button class="tb ${_0x39f1d1?_0x441e09(0x2ae):''}" @click=${_0x1a59df}>${_0x112d4c}${_0xdb677d}</button>`;}['_ico'](_0xda1a22){return html`<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">${_0xda1a22}</svg>`;}[_0x51fa3c(0x280)](){const _0x240837=_0x51fa3c;if(!this[_0x240837(0x28e)]||!this[_0x240837(0x3c9)])return html``;const _0x38dc96=this[_0x240837(0x3c9)],_0x36ae42=this['_globalTab'];return html`<div class="root">
<!-- GLOBAL SETTINGS (includes Colors tab) -->
<div class="panel ${this[_0x240837(0x360)]?'open':''}">
<div class="ph" @click=${()=>this[_0x240837(0x234)](_0x240837(0x39a))}>
<div class="pi"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg></div>
<div class="pn"><div class="pt">Global Settings</div><div class="ps">Layout, sizing, colors, toggles</div></div>
${this['_chev'](this[_0x240837(0x360)])}
</div>
${this[_0x240837(0x360)]?html`<div class="pb open">
<div class="tabs">
${this['_tb'](_0x240837(0x399),this[_0x240837(0x2d7)](html`<rect x="3" y="3" width="18" height="18" rx="2"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="9" y1="21" x2="9" y2="9"/>`),_0x36ae42===_0x240837(0x278),()=>this['_setGlobalTab'](_0x240837(0x278)))}
${this[_0x240837(0x277)]('Toggles',this['_ico'](html`<rect x="1" y="5" width="22" height="14" rx="7"/><circle cx="16" cy="12" r="3"/>`),_0x36ae42===_0x240837(0x349),()=>this[_0x240837(0x31e)](_0x240837(0x349)))}
${this[_0x240837(0x277)](_0x240837(0x331),this[_0x240837(0x2d7)](html`<polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/>`),_0x36ae42===_0x240837(0x2e6),()=>this[_0x240837(0x31e)](_0x240837(0x2e6)))}
${this[_0x240837(0x277)](_0x240837(0x25f),this[_0x240837(0x2d7)](html`<path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"/>`),_0x36ae42===_0x240837(0x24d),()=>this[_0x240837(0x31e)](_0x240837(0x24d)))}
</div>
<!-- Layout -->
<div class="tc ${_0x36ae42==='layout'?_0x240837(0x2ae):''}">
<div class="r2">${this['_f']('Title',_0x38dc96[_0x240837(0x2ac)],_0x240837(0x2ac),{'placeholder':_0x240837(0x303)})}${this['_f'](_0x240837(0x20c),_0x38dc96['duration']!=null?String(_0x38dc96[_0x240837(0x23b)]):'',_0x240837(0x23b),{'type':_0x240837(0x2cd),'placeholder':'20'})}</div>
<div class="r2">${this['_f'](_0x240837(0x3b7),_0x38dc96[_0x240837(0x27d)]!=null?String(_0x38dc96['scroll_speed']):'',_0x240837(0x27d),{'type':'number','placeholder':_0x240837(0x2c9)})}${this[_0x240837(0x3c6)](_0x240837(0x24e),_0x38dc96[_0x240837(0x300)]||_0x240837(0x200),'scroll_direction',[{'value':_0x240837(0x200),'label':_0x240837(0x34d)},{'value':'right','label':_0x240837(0x2cf)}])}</div>
<div class="r2">${this['_f'](_0x240837(0x26d),_0x38dc96[_0x240837(0x302)],_0x240837(0x302),{'placeholder':_0x240837(0x3c2)})}${this['_f'](_0x240837(0x24f),_0x38dc96['empty_message']===![]?'':_0x38dc96[_0x240837(0x3d7)]||'',_0x240837(0x3d7),{'placeholder':_0x240837(0x294),'disabled':_0x38dc96[_0x240837(0x3d7)]===![]})}</div>
<div class="r2">${this[_0x240837(0x3c6)](_0x240837(0x36a),_0x38dc96[_0x240837(0x221)]||_0x240837(0x23d),'vertical_alignment',[{'value':_0x240837(0x23d),'label':'Stack'},{'value':_0x240837(0x3ad),'label':'Inline'}])}<div class="f"></div></div>
</div>
<!-- Sizing -->
<div class="tc ${_0x36ae42===_0x240837(0x2e6)?'active':''}">
<div class="r2">${this['_f'](_0x240837(0x28f),_0x38dc96[_0x240837(0x2df)],_0x240837(0x2df),{'placeholder':_0x240837(0x26e)})}${this['_f'](_0x240837(0x242),_0x38dc96[_0x240837(0x32a)],'separator_font_size',{'placeholder':'14px'})}</div>
<div class="r2">${this['_f'](_0x240837(0x28c),_0x38dc96[_0x240837(0x215)],'card_width',{'placeholder':'400px'})}${this['_f'](_0x240837(0x376),_0x38dc96[_0x240837(0x2f9)],_0x240837(0x2f9),{'placeholder':'50px'})}</div>
<div class="r2">${this['_f'](_0x240837(0x307),_0x38dc96['border_radius'],_0x240837(0x260),{'placeholder':_0x240837(0x2c3)})}${this[_0x240837(0x3c6)]('Separator\x20weight',_0x38dc96[_0x240837(0x3c7)]||'normal',_0x240837(0x3c7),[{'value':_0x240837(0x22a),'label':_0x240837(0x366)},{'value':'300','label':_0x240837(0x2d8)},{'value':_0x240837(0x2c5),'label':'Medium'},{'value':'600','label':_0x240837(0x25d)},{'value':_0x240837(0x231),'label':_0x240837(0x2a6)},{'value':_0x240837(0x326),'label':_0x240837(0x393)}])}</div>
${_0x38dc96[_0x240837(0x391)]?html`<div class="fgl">Badge Mode Layout</div><div class="r3">${this['_f'](_0x240837(0x33c),_0x38dc96[_0x240837(0x264)],_0x240837(0x264),{'placeholder':_0x240837(0x313)})}${this['_f'](_0x240837(0x1ff),_0x38dc96[_0x240837(0x3ac)],_0x240837(0x3ac),{'placeholder':_0x240837(0x285)})}${this['_f']('Badge\x20Icon\x20Size',_0x38dc96[_0x240837(0x3e6)],'badge_icon_size',{'placeholder':_0x240837(0x28d)})}</div>`:''}
</div>
<!-- Colors -->
<div class="tc ${_0x36ae42===_0x240837(0x24d)?_0x240837(0x2ae):''}">
<div class="fgl">Strip Colors</div>
<div class="r2">${this['_f'](_0x240837(0x3a6),_0x38dc96[_0x240837(0x2f2)],_0x240837(0x2f2))}${this['_f'](_0x240837(0x392),_0x38dc96[_0x240837(0x281)],_0x240837(0x281))}</div>
<div class="r2">${this['_f'](_0x240837(0x2d4),_0x38dc96[_0x240837(0x3b6)],_0x240837(0x3b6))}${this['_f'](_0x240837(0x243),_0x38dc96[_0x240837(0x262)],'icon_color')}</div>
<div class="r2">${this['_f'](_0x240837(0x2af),_0x38dc96[_0x240837(0x290)],_0x240837(0x290),{'placeholder':'var(--disabled-text-color)'})}<div class="f"></div></div>
${_0x38dc96[_0x240837(0x391)]?html`
<div class="fgl">Badge Colors</div>
<div class="r2">${this['_f'](_0x240837(0x20e),_0x38dc96[_0x240837(0x321)],_0x240837(0x321))}${this['_f']('Badge\x20Label\x20Color',_0x38dc96[_0x240837(0x259)],_0x240837(0x259))}</div>
<div class="r2">${this['_f'](_0x240837(0x2a2),_0x38dc96[_0x240837(0x250)],_0x240837(0x250))}<div class="f"></div></div>`:''}
</div>
<!-- Toggles -->
<div class="tc ${_0x36ae42===_0x240837(0x349)?_0x240837(0x2ae):''}">
<div class="sg">
${this['_tog'](_0x240837(0x2ff),_0x38dc96[_0x240837(0x3d7)]!==![],'',this[_0x240837(0x230)])}
${this[_0x240837(0x31a)](_0x240837(0x3e0),_0x38dc96[_0x240837(0x3d0)]===!![],'show_icon')}
${this[_0x240837(0x31a)]('Pause\x20on\x20hover',_0x38dc96[_0x240837(0x2e9)]===!![],'pause_on_hover')}
${this[_0x240837(0x31a)](_0x240837(0x23a),_0x38dc96['pause_on_click']===!![],_0x240837(0x1f0))}
${this['_tog'](_0x240837(0x25c),_0x38dc96[_0x240837(0x287)]===!![],_0x240837(0x287))}
${this[_0x240837(0x31a)](_0x240837(0x386),_0x38dc96[_0x240837(0x347)]!==![],_0x240837(0x347))}
${this[_0x240837(0x31a)](_0x240837(0x348),_0x38dc96[_0x240837(0x3ca)]===!![],_0x240837(0x3ca))}
${this[_0x240837(0x31a)](_0x240837(0x378),_0x38dc96[_0x240837(0x329)]===!![],_0x240837(0x329))}
${this[_0x240837(0x31a)](_0x240837(0x30f),_0x38dc96[_0x240837(0x35d)]===!![],'transparent')}
${this[_0x240837(0x31a)]('Full\x20width',_0x38dc96[_0x240837(0x248)]===!![],_0x240837(0x248))}
${this['_tog'](_0x240837(0x396),_0x38dc96[_0x240837(0x391)]===!![],_0x240837(0x391))}
${this[_0x240837(0x31a)]('Format\x20numbers\x20(locale)',_0x38dc96[_0x240837(0x2de)]===!![],_0x240837(0x2de))}
${this[_0x240837(0x31a)](_0x240837(0x31d),_0x38dc96[_0x240837(0x289)]!==![],'pause_when_hidden')}
${this[_0x240837(0x31a)]('Respect\x20reduced\x20motion',_0x38dc96['respect_reduced_motion']!==![],_0x240837(0x3a0))}
</div>
</div>
</div>`:''}
</div>
<!-- ENTITIES -->
<div class="panel ${this[_0x240837(0x2e2)]?_0x240837(0x368):''}">
<div class="ph" @click=${()=>this[_0x240837(0x234)](_0x240837(0x2b8))}>
<div class="pi en"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M23 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/></svg></div>
<div class="pn"><div class="pt">Entities</div><div class="ps">${(_0x38dc96[_0x240837(0x2b8)]||[])[_0x240837(0x22c)]} configured</div></div>
<span class="badge">${(_0x38dc96[_0x240837(0x2b8)]||[])[_0x240837(0x22c)]}</span>
${this['_chev'](this[_0x240837(0x2e2)])}
</div>
${this['_openEntities']?html`<div class="pb open">
${(_0x38dc96[_0x240837(0x2b8)]||[])[_0x240837(0x37b)]((_0x534dd7,_0x15a04e)=>this[_0x240837(0x21c)](_0x534dd7,_0x15a04e))}
<button class="add-btn" @click=${this[_0x240837(0x252)]}><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><line x1="12" y1="5" x2="12" y2="19"/><line x1="5" y1="12" x2="19" y2="12"/></svg> ADD NEW ENTITY</button>
</div>`:''}
</div>
</div>`;}[_0x51fa3c(0x21c)](_0x28d4ed,_0x4f17c8){const _0x5e86c5=_0x51fa3c,_0x1866b0=this['_expandedEntities'][_0x5e86c5(0x2dd)](_0x4f17c8),_0x44fbd8=_0x28d4ed[_0x5e86c5(0x3bd)]?this[_0x5e86c5(0x28e)][_0x5e86c5(0x2ad)][_0x28d4ed[_0x5e86c5(0x3bd)]]:null,_0x403432=_0x28d4ed[_0x5e86c5(0x23c)]||_0x44fbd8?.[_0x5e86c5(0x1fc)]?.[_0x5e86c5(0x1f8)]||_0x28d4ed['entity']||_0x5e86c5(0x317)+(_0x4f17c8+0x1),_0x3306e5=this[_0x5e86c5(0x21a)][_0x4f17c8]||'general',_0x37109e=_0x28d4ed['show_icon']==null?'global':String(_0x28d4ed[_0x5e86c5(0x3d0)]);return html`
<div class="ec ${_0x1866b0?_0x5e86c5(0x368):''}">
<div class="eh">
<div class="ei" @click=${()=>this[_0x5e86c5(0x2ea)](_0x4f17c8)}>
<svg class="chev" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>
<span class="ename">${_0x403432}</span>
</div>
<button class="edb" @click=${()=>this[_0x5e86c5(0x375)](_0x4f17c8)} title="Remove"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><polyline points="3 6 5 6 21 6"/><path d="M19 6l-2 14H7L5 6"/><path d="M10 11v6"/><path d="M14 11v6"/><path d="M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2"/></svg></button>
</div>
${_0x1866b0?html`<div class="ebody">
<div class="tabs">
${this['_tb'](_0x5e86c5(0x22d),this[_0x5e86c5(0x2d7)](html`<circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="16"/><line x1="8" y1="12" x2="16" y2="12"/>`),_0x3306e5===_0x5e86c5(0x282),()=>this[_0x5e86c5(0x246)](_0x4f17c8,_0x5e86c5(0x282)))}
${this[_0x5e86c5(0x277)]('Display',this[_0x5e86c5(0x2d7)](html`<path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/>`),_0x3306e5===_0x5e86c5(0x2cb),()=>this['_setEntityTab'](_0x4f17c8,'display'))}
${this['_tb'](_0x5e86c5(0x25f),this[_0x5e86c5(0x2d7)](html`<path d="M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z"/>`),_0x3306e5==='colors',()=>this[_0x5e86c5(0x246)](_0x4f17c8,'colors'))}
${this[_0x5e86c5(0x277)](_0x5e86c5(0x369),this[_0x5e86c5(0x2d7)](html`<path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"/><line x1="9" y1="18" x2="15" y2="18"/><line x1="10" y1="22" x2="14" y2="22"/>`),_0x3306e5==='actions',()=>this[_0x5e86c5(0x246)](_0x4f17c8,_0x5e86c5(0x1fb)))}
</div>
<!-- General -->
<div class="tc ${_0x3306e5===_0x5e86c5(0x282)?_0x5e86c5(0x2ae):''}">
<div class="ha-pick">
<label>Entity</label>
<ha-selector .hass=${this[_0x5e86c5(0x28e)]} .selector=${{'entity':{}}} .value=${_0x28d4ed[_0x5e86c5(0x3bd)]||''} .label=${''} .configValue=${_0x5e86c5(0x39e)+_0x4f17c8+_0x5e86c5(0x298)} @value-changed=${this[_0x5e86c5(0x337)]}></ha-selector>
</div>
<div class="r2">${this['_f'](_0x5e86c5(0x2ba),_0x28d4ed[_0x5e86c5(0x23c)]!=null?_0x28d4ed[_0x5e86c5(0x23c)]:'',_0x5e86c5(0x39e)+_0x4f17c8+'.name',{'placeholder':_0x5e86c5(0x303)})}${this['_f'](_0x5e86c5(0x21d),_0x28d4ed['unit']||'',_0x5e86c5(0x39e)+_0x4f17c8+_0x5e86c5(0x1f3))}</div>
<div class="r2">${this['_f'](_0x5e86c5(0x3e3),_0x28d4ed[_0x5e86c5(0x3e7)]||'',_0x5e86c5(0x39e)+_0x4f17c8+'.attribute',{'placeholder':'e.g.\x20temperature'})}${this['_f']('Value\x20template',_0x28d4ed['value_template']||'','entities.'+_0x4f17c8+'.value_template',{'placeholder':_0x5e86c5(0x270)})}</div>
<div class="r2">${this['_f'](_0x5e86c5(0x3dd),_0x28d4ed['repeat_on']||'',_0x5e86c5(0x39e)+_0x4f17c8+_0x5e86c5(0x32f),{'placeholder':_0x5e86c5(0x363)})}${this['_f'](_0x5e86c5(0x304),_0x28d4ed[_0x5e86c5(0x23e)]||'',_0x5e86c5(0x39e)+_0x4f17c8+_0x5e86c5(0x398),{'placeholder':_0x5e86c5(0x202)})}</div>
${this[_0x5e86c5(0x31a)]('Trend\x20(colors\x20value\x20red/green\x20+\x20arrow)',!!_0x28d4ed[_0x5e86c5(0x223)],'',_0xa75b59=>this[_0x5e86c5(0x1f2)](_0x4f17c8,_0xa75b59))}
${_0x28d4ed['trend']?html`
<div class="r2">${this['_f'](_0x5e86c5(0x38f),_0x28d4ed[_0x5e86c5(0x223)]&&_0x28d4ed[_0x5e86c5(0x223)]['source']||'',_0x5e86c5(0x39e)+_0x4f17c8+_0x5e86c5(0x3a1),{'placeholder':'memory\x20|\x20attribute\x20|\x20baseline'})}${this['_f']('Trend\x20attribute\x20/\x20baseline',_0x28d4ed[_0x5e86c5(0x223)]&&(_0x28d4ed[_0x5e86c5(0x223)][_0x5e86c5(0x3e7)]||_0x28d4ed[_0x5e86c5(0x223)][_0x5e86c5(0x364)])||'',_0x5e86c5(0x39e)+_0x4f17c8+_0x5e86c5(0x2c2)+((_0x28d4ed['trend']&&_0x28d4ed[_0x5e86c5(0x223)][_0x5e86c5(0x38a)])===_0x5e86c5(0x364)?_0x5e86c5(0x364):_0x5e86c5(0x3e7)),{'placeholder':_0x5e86c5(0x2f6)})}</div>
<div class="r2">${this['_f'](_0x5e86c5(0x297),_0x28d4ed[_0x5e86c5(0x223)]&&_0x28d4ed[_0x5e86c5(0x223)][_0x5e86c5(0x218)]||'','entities.'+_0x4f17c8+_0x5e86c5(0x2c7),{'placeholder':_0x5e86c5(0x34a)})}${this['_f'](_0x5e86c5(0x295),_0x28d4ed[_0x5e86c5(0x223)]&&_0x28d4ed[_0x5e86c5(0x223)][_0x5e86c5(0x288)]||'',_0x5e86c5(0x39e)+_0x4f17c8+_0x5e86c5(0x2a4),{'placeholder':'0'})}</div>
<div class="r2">${this['_f'](_0x5e86c5(0x3cd),_0x28d4ed[_0x5e86c5(0x223)]&&_0x28d4ed[_0x5e86c5(0x223)][_0x5e86c5(0x214)]||'','entities.'+_0x4f17c8+_0x5e86c5(0x362),{'placeholder':'#4caf50'})}${this['_f'](_0x5e86c5(0x315),_0x28d4ed[_0x5e86c5(0x223)]&&_0x28d4ed[_0x5e86c5(0x223)][_0x5e86c5(0x3b5)]||'',_0x5e86c5(0x39e)+_0x4f17c8+_0x5e86c5(0x30e),{'placeholder':_0x5e86c5(0x2e4)})}</div>
`:''}
</div>
<!-- Display -->
<div class="tc ${_0x3306e5===_0x5e86c5(0x2cb)?'active':''}">
${this[_0x5e86c5(0x3c6)](_0x5e86c5(0x2f7),_0x37109e,_0x5e86c5(0x39e)+_0x4f17c8+_0x5e86c5(0x3d8),[{'value':_0x5e86c5(0x39a),'label':_0x5e86c5(0x2b9)},{'value':_0x5e86c5(0x3d3),'label':'Show'},{'value':'false','label':_0x5e86c5(0x32c)}])}
<div class="ha-pick" style="margin-top:8px"><label>Custom icon</label>
<ha-selector .hass=${this[_0x5e86c5(0x28e)]} .selector=${{'icon':{}}} .value=${_0x28d4ed['icon']||''} .label=${''} .configValue=${'entities.'+_0x4f17c8+_0x5e86c5(0x3b3)} @value-changed=${this[_0x5e86c5(0x337)]}></ha-selector>
</div>
<div style="margin-top:8px">${this['_f'](_0x5e86c5(0x31b),_0x28d4ed[_0x5e86c5(0x1f5)]||'','entities.'+_0x4f17c8+_0x5e86c5(0x3b3),{'placeholder':_0x5e86c5(0x2c8)})}</div>
</div>
<!-- Colors -->
<div class="tc ${_0x3306e5===_0x5e86c5(0x24d)?'active':''}">
<div class="r2">${this['_f']('Name\x20color',_0x28d4ed[_0x5e86c5(0x2f2)]||'',_0x5e86c5(0x39e)+_0x4f17c8+_0x5e86c5(0x3dc))}${this['_f'](_0x5e86c5(0x392),_0x28d4ed[_0x5e86c5(0x281)]||'','entities.'+_0x4f17c8+'.value_color')}</div>
<div class="r2">${this['_f'](_0x5e86c5(0x2d4),_0x28d4ed['unit_color']||'','entities.'+_0x4f17c8+'.unit_color')}${this['_f']('Icon\x20color',_0x28d4ed[_0x5e86c5(0x262)]||'','entities.'+_0x4f17c8+_0x5e86c5(0x2c0))}</div>
${this[_0x5e86c5(0x3c9)]?.[_0x5e86c5(0x391)]?html`<div class="fgl">Badge Color Overrides</div>
<div class="r2">${this['_f'](_0x5e86c5(0x20e),_0x28d4ed['badge_background']||'','entities.'+_0x4f17c8+_0x5e86c5(0x36e))}${this['_f'](_0x5e86c5(0x2bf),_0x28d4ed[_0x5e86c5(0x259)]||'',_0x5e86c5(0x39e)+_0x4f17c8+_0x5e86c5(0x2bb))}</div>
<div class="r2">${this['_f']('Badge\x20Value\x20Color',_0x28d4ed[_0x5e86c5(0x250)]||'',_0x5e86c5(0x39e)+_0x4f17c8+_0x5e86c5(0x24b))}<div class="f"></div></div>`:''}
</div>
<!-- Actions -->
<div class="tc ${_0x3306e5===_0x5e86c5(0x1fb)?'active':''}">
${this['_renderActions'](_0x28d4ed,_0x4f17c8)}
</div>
</div>`:''}
</div>`;}['_renderActions'](_0x3e1b24,_0x92426){const _0x5236f3=_0x51fa3c,_0x3a6f8d=_0x3e1b24['tap_action']||{'action':'more-info'},_0x3ebe62=_0x3e1b24[_0x5236f3(0x37a)]||{'action':_0x5236f3(0x367)},_0x5d542e=_0x3e1b24[_0x5236f3(0x1fa)]||{'action':_0x5236f3(0x367)},_0x477361={'ui-action':{}};return html`
<div class="ar"><label class="al">Tap Action</label><ha-selector .hass=${this['hass']} .selector=${_0x477361} .value=${_0x3a6f8d} .label=${_0x5236f3(0x37d)} @value-changed=${_0x339a28=>this[_0x5236f3(0x2f3)](_0x339a28,_0x92426,_0x5236f3(0x213))}></ha-selector></div>
<div class="ar"><label class="al">Hold Action</label><ha-selector .hass=${this['hass']} .selector=${_0x477361} .value=${_0x3ebe62} .label=${_0x5236f3(0x2ec)} @value-changed=${_0x565e38=>this[_0x5236f3(0x2f3)](_0x565e38,_0x92426,_0x5236f3(0x37a))}></ha-selector></div>
<div class="ar"><label class="al">Double Tap Action</label><ha-selector .hass=${this[_0x5236f3(0x28e)]} .selector=${_0x477361} .value=${_0x5d542e} .label=${_0x5236f3(0x1f9)} @value-changed=${_0x4ceda3=>this[_0x5236f3(0x2f3)](_0x4ceda3,_0x92426,_0x5236f3(0x1fa))}></ha-selector></div>`;}static get[_0x51fa3c(0x251)](){return css`
:host{display:block;font-family:var(--primary-font-family,Roboto,sans-serif);font-size:13px;color:var(--primary-text-color);--ac:var(--primary-color,#4A90D9);--acr:74,144,217;--bg:var(--card-background-color,var(--ha-card-background,#fff));--sf:var(--secondary-background-color,#f5f5f5);--bd:var(--divider-color,#e0e0e0);--tx:var(--primary-text-color,#333);--ts:var(--secondary-text-color,#666);--rd:12px;--ha-color-form-background:var(--sf);--ha-color-form-background-hover:var(--sf);--ha-color-form-background-disabled:var(--sf);--ha-color-neutral-95:var(--sf);--mdc-text-field-fill-color:var(--sf);--mdc-select-fill-color:var(--sf);--mdc-menu-surface-fill-color:var(--bg);--input-fill-color:var(--sf);--mdc-theme-surface:var(--bg);--mdc-text-field-ink-color:var(--tx);--mdc-text-field-label-ink-color:var(--ts);--text-field-background-color:var(--sf)}
*,*::before,*::after{box-sizing:border-box}
.panel{background:var(--bg);border:1px solid var(--bd);border-radius:var(--rd);margin-bottom:16px;overflow:visible;transition:box-shadow .2s}.panel:hover{box-shadow:0 2px 12px rgba(0,0,0,.06)}
.ph{display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;user-select:none;transition:background .15s}.ph:hover{background:var(--sf)}
.pi{width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:10px;background:rgba(var(--acr),.1);color:var(--ac);flex-shrink:0}.pi.en{background:rgba(46,204,113,.1);color:#2ecc71}
.pn{flex:1;min-width:0}.pt{font-weight:600;font-size:15px;text-transform:uppercase;letter-spacing:.04em}.ps{font-size:11px;color:var(--ts)}
.chev{color:var(--ts);transition:transform .3s cubic-bezier(.4,0,.2,1);flex-shrink:0}.panel.open>.ph>.chev{transform:rotate(180deg)}
.badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:11px;font-size:11px;font-weight:600;background:rgba(var(--acr),.12);color:var(--ac)}
.pb{max-height:0;overflow:hidden;padding:0 16px;transition:max-height .35s cubic-bezier(.4,0,.2,1),padding .35s}.pb.open{max-height:8000px;overflow:visible;padding:4px 16px 16px}
.tabs{display:flex;gap:2px;padding:4px;margin:4px 0 4px;background:var(--sf);border-radius:10px;border:1px solid var(--bd)}
.tb{flex:1;display:flex;align-items:center;justify-content:center;gap:4px;padding:8px 6px;border:none;background:none;border-radius:8px;font-size:11px;font-weight:600;color:var(--ts);cursor:pointer;transition:all .2s;text-transform:uppercase;letter-spacing:.04em;font-family:inherit}.tb:hover{color:var(--tx);background:rgba(var(--acr),.05)}.tb.active{background:var(--bg);color:var(--ac);box-shadow:0 1px 4px rgba(0,0,0,.08)}.tb svg{flex-shrink:0}
.tc{display:none;padding:12px 0}.tc.active{display:block}
@media(max-width:460px){.tabs{flex-wrap:wrap}.tb{font-size:9.5px;padding:6px 4px;gap:2px}}
.r2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}.r3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin-top:8px}
@media(max-width:500px){.r2,.r3{grid-template-columns:1fr}}
.f{display:flex;flex-direction:column}.f label{font-size:11.5px;font-weight:500;color:var(--ts);margin:5px 0;letter-spacing:.02em}
.f input{width:100%;padding:9px 11px;border:1px solid var(--bd);border-radius:8px;background:var(--sf);color:var(--tx);font-size:13.5px;font-family:inherit;transition:border-color .15s,box-shadow .15s;outline:none}.f input:focus{border-color:var(--ac);box-shadow:0 0 0 3px rgba(var(--acr),.12)}.f input:disabled{opacity:.4;cursor:not-allowed}
.sw{position:relative}.sw select{appearance:none;width:100%;padding:9px 30px 9px 11px;border:1px solid var(--bd);border-radius:8px;background-color:var(--sf);color:var(--tx);font-size:13.5px;font-family:inherit;cursor:pointer;outline:none;background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");background-repeat:no-repeat;background-position:right 8px center;background-size:14px;transition:border-color .15s,box-shadow .15s}.sw select:focus{border-color:var(--ac);box-shadow:0 0 0 3px rgba(var(--acr),.12)}select option{background:var(--bg);color:var(--tx)}
.sg{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.si{display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:8px;cursor:pointer;transition:background .15s}.si:hover{background:var(--sf)}
.st{position:relative;width:36px;height:20px;flex-shrink:0}.st input{opacity:0;width:0;height:0;position:absolute}
.ss{position:absolute;top:0;left:0;right:0;bottom:0;background:var(--bd);border-radius:20px;transition:background .25s;cursor:pointer}.ss::before{content:'';position:absolute;width:16px;height:16px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.2);transition:transform .25s cubic-bezier(.4,0,.2,1)}
.st input:checked+.ss{background:var(--ac)}.st input:checked+.ss::before{transform:translateX(16px)}
.sn{font-size:13px;font-weight:500}
.fgl{font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--ts);margin:16px 0 4px;padding:8px 0;border-bottom:1px solid var(--bd)}
.ec{border:1px solid var(--bd);border-radius:var(--rd);background:var(--bg);overflow:hidden;margin-bottom:8px;transition:box-shadow .2s,border-color .2s}.ec:hover{box-shadow:0 2px 10px rgba(0,0,0,.06)}.ec.open{overflow:visible}
.eh{display:flex;align-items:center;gap:10px;padding:11px 14px;transition:background .15s;cursor:pointer;user-select:none}.eh:hover{background:var(--sf)}
.ei{flex:1;min-width:0;display:flex;align-items:center;gap:8px}.ename{font-weight:500;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ec .chev{transition:transform .3s cubic-bezier(.4,0,.2,1)}.ec.open .chev{transform:rotate(180deg)}
.edb{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:none;background:none;border-radius:8px;color:var(--ts);cursor:pointer;transition:background .15s,color .15s}.edb:hover{background:rgba(231,76,60,.08);color:#e74c3c}
.ebody{padding:0 14px 14px;border-top:1px solid var(--bd)}
.ha-pick{display:flex;flex-direction:column;position:relative;z-index:50;margin-bottom:4px}.ha-pick label{font-size:11.5px;font-weight:500;color:var(--ts);margin:5px 0;letter-spacing:.02em}.ha-pick ha-selector{display:block;width:100%;min-height:56px}
ha-selector{display:block;width:100%}
.ar{margin-bottom:12px}.al{font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--ts);margin-bottom:4px;display:block}
.add-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:12px;border:2px dashed var(--bd);background:none;border-radius:var(--rd);font-size:13px;font-weight:600;color:var(--ts);cursor:pointer;transition:all .2s;font-family:inherit}.add-btn:hover{border-color:var(--ac);color:var(--ac);background:rgba(var(--acr),.04)}
`;}}customElements[_0x51fa3c(0x25e)](_0x51fa3c(0x3ab),StripCardEditor);