iobroker.shoppingroute 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![ShoppingRoute](admin/shoppingroute.png)
4
4
 
5
- **Current version: 0.3.0**
5
+ **Current version: 0.3.1**
6
6
 
7
7
  ShoppingRoute sorts Alexa shopping-list entries by market, product group and each store's individual walking route. Normal shopping items are still sorted only by redistributing visible texts across existing Alexa IDs. Optionally, ShoppingRoute can use Alexa2 to create its own market headings such as `---- ALDI ----`. Once a market is no longer needed, ShoppingRoute completely deletes only that self-managed heading entry. Managed Alexa lists must be set to **Oldest to newest** in the Alexa app.
8
8
 
@@ -39,6 +39,24 @@ See `README_DE.md` for the detailed German documentation.
39
39
 
40
40
  ## Changelog
41
41
 
42
+ ### 0.3.2 (2026-08-11)
43
+
44
+ - List stability guard: after every Alexa2 list change, ShoppingRoute waits for at least 30 seconds with no further list change before sorting writes start. If a new active ID appears during a buffered sort, the confirmed sort path is rolled back while the new ID itself remains untouched. The `updatedDateTime` visible-order finalizer also aborts immediately on new IDs and replans only after another quiet window.
45
+
46
+ - Alexa visible order is now finalized from `updatedDateTime` after the buffered content permutation. Only the minimum necessary items are touched again with their unchanged text; normal shopping items are still neither deleted nor recreated. This keeps the anti-duplication buffer protection while restoring the ShoppingRoute order in Alexa App “oldest to newest” view.
47
+
48
+ - Sorting target texts are now trimmed at their edges just like existing Alexa list values. This prevents invisible trailing whitespace (for example `Camembert `) from falsely failing the buffered permutation safety check.
49
+
50
+ - Replaced direct sequential value redistribution with a buffered Euler-cycle transaction. A sort now uses one temporary buffer value per disconnected value circuit, so normal list items are not deleted/recreated and Amazon write traffic stays close to the number of actually changed slots.
51
+ - Added a persistent local sort transaction journal (`info.sortTransaction`). Every confirmed step is recorded locally and interrupted transactions are reversed step-by-step after restart instead of treating an intermediate Alexa list as the new source of truth.
52
+ - Added per-step Alexa2 confirmation and a safety stop for ambiguous remote write states. If new active items appear during a running transaction, the current buffered sort is aborted safely and replanned only after another 30-second quiet synchronization window.
53
+ - Fixed Admin configuration handling for independent market routes, newly added markets/product groups, alternative-market multi-selection in Products and Review, and the Review action “Accept all”.
54
+ - Documented that ShoppingRoute can only process the list state currently supplied by Alexa2; a stale Alexa2 list synchronization can therefore delay newly added app items until Alexa2 has synchronized them.
55
+
56
+ ### 0.3.1 (2026-08-10)
57
+
58
+ - Fixed a restart loop in Review learning: repeated identical observations no longer rewrite `reviewItems` solely to refresh `lastSeen`.
59
+
42
60
  ### 0.3.0 (2026-08-10)
43
61
 
44
62
  - Added optional `---- MARKET ----` headings.
package/README_DE.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ![ShoppingRoute](admin/shoppingroute.png)
4
4
 
5
- **Aktuelle Version: 0.3.0**
5
+ **Aktuelle Version: 0.3.1**
6
6
 
7
7
  ShoppingRoute sortiert Alexa-Einkaufslisteneinträge nach Markt, Produktgruppe und dem individuellen Laufweg durch den jeweiligen Markt. Normale Einkaufsartikel werden weiterhin ausschließlich über ihre vorhandenen Alexa-IDs und sichtbaren Texte sortiert. Optional kann ShoppingRoute über Alexa2 eigene Marktüberschriften wie `---- ALDI ----` anlegen. Sobald ein Markt nicht mehr benötigt wird, löscht ShoppingRoute ausschließlich diesen selbst verwalteten Überschriftseintrag wieder vollständig. Die Alexa-App muss für verwaltete Listen auf **„Älteste bis neueste“** gestellt sein.
8
8
 
@@ -57,6 +57,7 @@ Anschließend kann 0.3.0 flexible Artikel marktübergreifend zusammenlegen, wenn
57
57
  - `info.reviewQueue` – unbekannte Artikel
58
58
  - `info.statistics` – lokale Einkaufsstatistik
59
59
  - `info.traffic` – API-/Schreibzähler
60
+ - `info.sortTransaction` – lokales Wiederherstellungsjournal einer laufenden Sortierung; im Normalzustand `{}`
60
61
  - `info.configExport` – komplette Konfigurationssicherung
61
62
  - `info.marketProfiles` – teilbare Marktprofile
62
63
  - `info.versionInstalled`, `info.versionBeta`, `info.updateAvailable` – Versionsstatus
@@ -75,6 +76,24 @@ ShoppingRoute wird ab dieser Version unter der **MIT-Lizenz** veröffentlicht. F
75
76
 
76
77
  ## Changelog
77
78
 
79
+ ### 0.3.2 (2026-08-11)
80
+
81
+ - List-Stability-Guard: Nach jeder Alexa2-Listenänderung wartet ShoppingRoute mindestens 30 Sekunden ohne weitere Listenänderung, bevor Sortierschreibzugriffe beginnen. Taucht während einer gepufferten Sortierung eine neue aktive ID auf, wird der bestätigte Sortierpfad rückwärts zurückgesetzt; die neue ID selbst bleibt unangetastet. Auch die `updatedDateTime`-Finalisierung bricht bei neuen IDs sofort ab und plant erst nach erneuter Synchronisationsruhe neu.
82
+
83
+ - Die sichtbare Alexa-Reihenfolge wird nach der gepufferten Inhalts-Permutation jetzt anhand von `updatedDateTime` finalisiert. Dafür werden nur die minimal notwendigen Einträge mit ihrem unveränderten Text erneut bestätigt; normale Einkaufsartikel werden weiterhin weder gelöscht noch neu angelegt. Dadurch bleibt der Puffer-Schutz gegen Artikelvervielfältigung erhalten, während „Älteste bis neueste“ in der Alexa-App wieder dem ShoppingRoute-Sortierplan entspricht.
84
+
85
+ - Zieltexte der Sortierplanung werden jetzt genauso wie die vorhandenen Alexa-Listentexte an den Rändern bereinigt. Dadurch kann ein unsichtbares nachgestelltes Leerzeichen (z. B. `Camembert `) die gepufferte Permutationsprüfung nicht mehr fälschlich blockieren.
86
+
87
+ - Die direkte, schrittweise Textumverteilung wurde durch eine gepufferte Euler-Kreis-Transaktion ersetzt. Pro getrenntem Wertekreis wird genau ein temporärer Pufferwert verwendet; normale Einkaufsartikel werden weder gelöscht noch neu angelegt und der Amazon-Schreibverkehr bleibt nahe an der Zahl der tatsächlich geänderten Listenplätze.
88
+ - Ein dauerhaftes lokales Sortierjournal (`info.sortTransaction`) wurde ergänzt. Jeder bestätigte Schritt wird lokal festgehalten; nach einem Neustart wird eine unterbrochene Transaktion Schritt für Schritt rückwärts aufgelöst, statt einen Zwischenstand der Alexa-Liste als neue Wahrheit zu übernehmen.
89
+ - Jeder Sortierschritt wird von Alexa2 bestätigt. Bei einem nicht eindeutig auflösbaren Schreibstatus greift ein Sicherheitsstopp. Tauchen während einer laufenden Transaktion neue aktive Artikel auf, wird die gepufferte Sortierung sicher abgebrochen und erst nach einer erneuten 30-sekündigen Synchronisationsruhe neu geplant.
90
+ - Admin-Korrekturen für voneinander unabhängige Marktlaufwege, neu angelegte Märkte/Produktgruppen, die Mehrfachauswahl alternativer Märkte in Artikel- und Prüfliste sowie „Alle übernehmen“ dokumentiert und abgesichert.
91
+ - Dokumentiert, dass ShoppingRoute ausschließlich den von Alexa2 aktuell gelieferten Listenstand verarbeiten kann. Bei einer festhängenden Alexa2-Listensynchronisierung erscheinen neue App-Einträge deshalb erst nach der erneuten Alexa2-Synchronisierung in ShoppingRoute.
92
+
93
+ ### 0.3.1 (2026-08-10)
94
+
95
+ - Neustartschleife im Prüflisten-Lernmodus korrigiert: identische Wiederholungsbeobachtungen schreiben `reviewItems` nicht mehr allein wegen eines neuen `lastSeen`-Zeitpunkts zurück.
96
+
78
97
  ### 0.3.0 (2026-08-10)
79
98
 
80
99
  - Optionale Marktüberschriften im Format `---- MARKT ----` ergänzt.
@@ -104,7 +104,11 @@
104
104
  "sm": 12,
105
105
  "md": 6,
106
106
  "lg": 4,
107
- "xl": 3
107
+ "xl": 3,
108
+ "alsoDependsOn": [
109
+ "markets"
110
+ ],
111
+ "jsonData": "{\"markets\":${JSON.stringify(data.markets || [])}}"
108
112
  },
109
113
  "priorityMarket": {
110
114
  "type": "selectSendTo",
@@ -117,7 +121,11 @@
117
121
  "md": 6,
118
122
  "lg": 4,
119
123
  "xl": 3,
120
- "help": "ui.items.general.items.prioritymarket.help"
124
+ "help": "ui.items.general.items.prioritymarket.help",
125
+ "alsoDependsOn": [
126
+ "markets"
127
+ ],
128
+ "jsonData": "{\"markets\":${JSON.stringify(data.markets || [])}}"
121
129
  },
122
130
  "temporaryMarketHelp": {
123
131
  "type": "staticText",
@@ -308,7 +316,11 @@
308
316
  "noTranslation": true,
309
317
  "title": "ui.items.liststab.items.lists.items.2.title",
310
318
  "width": "45%",
311
- "sort": true
319
+ "sort": true,
320
+ "alsoDependsOn": [
321
+ "markets"
322
+ ],
323
+ "jsonData": "{\"markets\":${JSON.stringify(globalData.markets || [])}}"
312
324
  }
313
325
  ],
314
326
  "xs": 12,
@@ -433,7 +445,11 @@
433
445
  "sm": 12,
434
446
  "md": 6,
435
447
  "lg": 4,
436
- "xl": 3
448
+ "xl": 3,
449
+ "alsoDependsOn": [
450
+ "markets"
451
+ ],
452
+ "jsonData": "{\"markets\":${JSON.stringify(data.markets || [])}}"
437
453
  },
438
454
  "routesHelp": {
439
455
  "type": "staticText",
@@ -457,7 +473,11 @@
457
473
  "default": "Sonstiges",
458
474
  "title": "ui.items.productgroupstab.items.productgroups.items.0.title",
459
475
  "width": "75%",
460
- "sort": false
476
+ "sort": false,
477
+ "alsoDependsOn": [
478
+ "_groupRevision"
479
+ ],
480
+ "jsonData": "{\"productGroups\":${JSON.stringify(globalData.productGroups || [])}}"
461
481
  },
462
482
  {
463
483
  "type": "number",
@@ -479,9 +499,10 @@
479
499
  "onChange": {
480
500
  "alsoDependsOn": [
481
501
  "routes",
482
- "routeMarketFilter"
502
+ "routeMarketFilter",
503
+ "productGroups"
483
504
  ],
484
- "calculateFunc": "(data.routes || []).filter(r => String(r.market || '') === String(data.routeMarketFilter || '')).sort((a, b) => (Number(a.order) || 9999) - (Number(b.order) || 9999)).map((r, i) => ({ category: r.category, order: (i + 1) * 10 }))",
505
+ "calculateFunc": "String(data.routeMarketFilter || '') ? [...(data.routes || []).filter(r => String(r.market || '') === String(data.routeMarketFilter || '')).sort((a,b)=>(Number(a.order)||9999)-(Number(b.order)||9999)).map(r => String(r.category || '').trim()),...(data.productGroups || []).map(g => String((g && g.name) || '').trim())].filter((category,index,all) => category && all.findIndex(x => String(x).toLocaleLowerCase('de') === String(category).toLocaleLowerCase('de')) === index).map((category,i) => ({_market: String(data.routeMarketFilter || ''),_groupRevision: JSON.stringify((data.productGroups || []).map(g => String((g && g.name) || '').trim()).filter(Boolean)),category,order:(i+1)*10})) : []",
485
506
  "ignoreOwnChanges": true
486
507
  }
487
508
  },
@@ -517,7 +538,7 @@
517
538
  "alsoDependsOn": [
518
539
  "_routeEditorRows"
519
540
  ],
520
- "calculateFunc": "(() => { const market = String(data.routeMarketFilter || ''); if (!market) return data.routes || []; const kept = (data.routes || []).filter(r => String(r.market || '') !== market); const edited = (data._routeEditorRows || []).map((r, i) => ({ market, category: r.category, order: (i + 1) * 10 })); return kept.concat(edited); })()",
541
+ "calculateFunc": "(String(data.routeMarketFilter || '') && (data._routeEditorRows || []).every(r => String((r && r._market) || '') === String(data.routeMarketFilter || ''))) ? (data.routes || []).filter(r => String(r.market || '') !== String(data.routeMarketFilter || '')).concat((data._routeEditorRows || []).filter(r => String((r && r.category) || '').trim()).map((r,i) => ({market:String(data.routeMarketFilter || ''),category:String(r.category).trim(),order:(i+1)*10}))) : (data.routes || [])",
521
542
  "ignoreOwnChanges": true
522
543
  }
523
544
  }
@@ -562,7 +583,8 @@
562
583
  "default": "Sonstiges",
563
584
  "title": "ui.items.productgroupstab.items.productgroups.items.0.title",
564
585
  "width": "20%",
565
- "sort": true
586
+ "sort": true,
587
+ "jsonData": "{\"productGroups\":${JSON.stringify(globalData.productGroups || [])}}"
566
588
  },
567
589
  {
568
590
  "type": "selectSendTo",
@@ -572,11 +594,19 @@
572
594
  "noTranslation": true,
573
595
  "title": "ui.items.productstab.items.products.items.3.title",
574
596
  "width": "18%",
575
- "sort": true
597
+ "sort": true,
598
+ "jsonData": "{\"markets\":${JSON.stringify(globalData.markets || [])}}"
576
599
  },
577
600
  {
578
- "type": "text",
601
+ "type": "selectSendTo",
579
602
  "attr": "availableMarkets",
603
+ "command": "getActiveMarkets",
604
+ "defaultSendTo": "normalizeMarketSelection",
605
+ "manual": false,
606
+ "multiple": true,
607
+ "showAllValues": true,
608
+ "noTranslation": true,
609
+ "jsonData": "{\"markets\":${JSON.stringify(globalData.markets || [])},\"value\":${JSON.stringify(data.availableMarkets == null ? '' : data.availableMarkets)}}",
580
610
  "title": "ui.items.productstab.items.products.items.4.title",
581
611
  "width": "22%"
582
612
  }
@@ -585,7 +615,10 @@
585
615
  "sm": 12,
586
616
  "md": 12,
587
617
  "lg": 12,
588
- "xl": 12
618
+ "xl": 12,
619
+ "onChange": {
620
+ "calculateFunc": "(data.products || []).map(row => ({...row,availableMarkets:Array.isArray(row.availableMarkets)?row.availableMarkets.map(v=>typeof v==='string'?v.trim():'').filter(Boolean).join(','):String(row.availableMarkets || '')}))"
621
+ }
589
622
  }
590
623
  }
591
624
  },
@@ -602,6 +635,23 @@
602
635
  "lg": 12,
603
636
  "xl": 12
604
637
  },
638
+ "reviewAcceptAll": {
639
+ "type": "sendTo",
640
+ "command": "markAllReviewItemsAccept",
641
+ "label": {
642
+ "en": "Set all to accept",
643
+ "de": "Alle auf Übernehmen stellen"
644
+ },
645
+ "variant": "contained",
646
+ "showProcess": true,
647
+ "newLine": true,
648
+ "xs": 12,
649
+ "sm": 12,
650
+ "md": 6,
651
+ "lg": 4,
652
+ "xl": 3,
653
+ "jsonData": "{\"native\":${JSON.stringify(data)}}"
654
+ },
605
655
  "reviewItems": {
606
656
  "type": "table",
607
657
  "label": "ui.items.reviewtab.items.reviewitems.label",
@@ -610,14 +660,14 @@
610
660
  "type": "text",
611
661
  "attr": "product",
612
662
  "title": "ui.items.productstab.items.products.items.0.title",
613
- "width": "18%",
663
+ "width": "15%",
614
664
  "sort": true
615
665
  },
616
666
  {
617
667
  "type": "text",
618
668
  "attr": "text",
619
669
  "title": "ui.items.reviewtab.items.reviewitems.items.1.title",
620
- "width": "22%"
670
+ "width": "17%"
621
671
  },
622
672
  {
623
673
  "type": "selectSendTo",
@@ -626,8 +676,9 @@
626
676
  "manual": false,
627
677
  "noTranslation": true,
628
678
  "title": "ui.items.productgroupstab.items.productgroups.items.0.title",
629
- "width": "18%",
630
- "sort": true
679
+ "width": "15%",
680
+ "sort": true,
681
+ "jsonData": "{\"productGroups\":${JSON.stringify(globalData.productGroups || [])}}"
631
682
  },
632
683
  {
633
684
  "type": "selectSendTo",
@@ -636,20 +687,34 @@
636
687
  "manual": false,
637
688
  "noTranslation": true,
638
689
  "title": "ui.items.productstab.items.products.items.3.title",
639
- "width": "16%",
640
- "sort": true
690
+ "width": "14%",
691
+ "sort": true,
692
+ "jsonData": "{\"markets\":${JSON.stringify(globalData.markets || [])}}"
693
+ },
694
+ {
695
+ "type": "selectSendTo",
696
+ "attr": "availableMarkets",
697
+ "command": "getActiveMarkets",
698
+ "defaultSendTo": "normalizeMarketSelection",
699
+ "manual": false,
700
+ "multiple": true,
701
+ "showAllValues": true,
702
+ "noTranslation": true,
703
+ "jsonData": "{\"markets\":${JSON.stringify(globalData.markets || [])},\"value\":${JSON.stringify(data.availableMarkets == null ? '' : data.availableMarkets)}}",
704
+ "title": "ui.items.productstab.items.products.items.4.title",
705
+ "width": "17%"
641
706
  },
642
707
  {
643
708
  "type": "text",
644
709
  "attr": "aliases",
645
710
  "title": "ui.items.marketstab.items.markets.items.3.title",
646
- "width": "14%"
711
+ "width": "12%"
647
712
  },
648
713
  {
649
714
  "type": "select",
650
715
  "attr": "action",
651
716
  "title": "ui.items.reviewtab.items.reviewitems.items.5.title",
652
- "width": "12%",
717
+ "width": "10%",
653
718
  "options": [
654
719
  {
655
720
  "value": "pending",
@@ -670,7 +735,10 @@
670
735
  "sm": 12,
671
736
  "md": 12,
672
737
  "lg": 12,
673
- "xl": 12
738
+ "xl": 12,
739
+ "onChange": {
740
+ "calculateFunc": "(data.reviewItems || []).map(row => ({...row,availableMarkets:Array.isArray(row.availableMarkets)?row.availableMarkets.map(v=>typeof v==='string'?v.trim():'').filter(Boolean).join(','):String(row.availableMarkets || '')}))"
741
+ }
674
742
  }
675
743
  }
676
744
  },
@@ -0,0 +1 @@
1
+ 'use strict';const _0x13cb7e=_0x1508;(function(_0x26c7c1,_0x100c53){const _0x3831f6=_0x1508,_0x209ae2=_0x26c7c1();while(!![]){try{const _0x2af1f3=parseInt(_0x3831f6(0x108))/0x1*(-parseInt(_0x3831f6(0x107))/0x2)+parseInt(_0x3831f6(0xfc))/0x3*(-parseInt(_0x3831f6(0xf4))/0x4)+parseInt(_0x3831f6(0x110))/0x5+-parseInt(_0x3831f6(0x10f))/0x6*(-parseInt(_0x3831f6(0x113))/0x7)+parseInt(_0x3831f6(0xfa))/0x8+-parseInt(_0x3831f6(0x10b))/0x9+-parseInt(_0x3831f6(0x106))/0xa*(parseInt(_0x3831f6(0xfd))/0xb);if(_0x2af1f3===_0x100c53)break;else _0x209ae2['push'](_0x209ae2['shift']());}catch(_0xc808d8){_0x209ae2['push'](_0x209ae2['shift']());}}}(_0x31d7,0x93255));Object[_0x13cb7e(0x117)](exports,_0x13cb7e(0x116),{'value':!![]}),exports[_0x13cb7e(0x104)]=createBufferedSortProgram,exports[_0x13cb7e(0x11b)]=sortIdsByAlexaUpdatedTime,exports[_0x13cb7e(0x101)]=createVisibleOrderRefreshPlan;function countValues(_0xa88506){const _0x524582=_0x13cb7e,_0x498189=new Map();for(const _0x5723ca of _0xa88506)_0x498189[_0x524582(0x11f)](_0x5723ca,(_0x498189[_0x524582(0xf6)](_0x5723ca)||0x0)+0x1);return _0x498189;}function sameValueCounts(_0x37a5a8,_0x15549b){const _0x17f3e5=_0x13cb7e;if(_0x37a5a8['size']!==_0x15549b[_0x17f3e5(0x105)])return![];for(const [_0x599ff4,_0x4aa2bb]of _0x37a5a8){if(_0x15549b[_0x17f3e5(0xf6)](_0x599ff4)!==_0x4aa2bb)return![];}return!![];}function createBufferedSortProgram(_0x548fad,_0x5b3048){const _0x27be96=_0x13cb7e,_0x503c05=String(_0x5b3048||'')[_0x27be96(0x109)]();if(!_0x503c05)throw new Error(_0x27be96(0x103));const _0xcd7fe1=_0x548fad['map'](_0x4bb27c=>String(_0x4bb27c[_0x27be96(0xf5)])),_0x409739=_0x548fad['map'](_0x17d5f6=>String(_0x17d5f6['to']));if(_0xcd7fe1['includes'](_0x503c05)||_0x409739['includes'](_0x503c05))throw new Error(_0x27be96(0xf8));if(!sameValueCounts(countValues(_0xcd7fe1),countValues(_0x409739)))throw new Error('Sortierplan\x20ist\x20keine\x20reine\x20Permutation\x20der\x20vorhandenen\x20Listentexte.');const _0x58b0d8=_0x548fad['map']((_0x1e0853,_0x5f2305)=>({'index':_0x5f2305,'id':String(_0x1e0853['id']),'from':String(_0x1e0853['from']),'to':String(_0x1e0853['to']),'position':Number(_0x1e0853[_0x27be96(0x115)])||_0x5f2305+0x1}))[_0x27be96(0xf9)](_0x389844=>_0x389844[_0x27be96(0xf5)]!==_0x389844['to']);if(_0x58b0d8[_0x27be96(0xfe)]===0x0)return{'marker':_0x503c05,'changedSlots':0x0,'circuits':0x0,'amazonWrites':0x0,'steps':[]};const _0x123c87=new Map(),_0x39779=new Map(),_0x37a6d7=new Map();for(let _0x392ab1=0x0;_0x392ab1<_0x58b0d8['length'];_0x392ab1++){const _0x201f2c=_0x58b0d8[_0x392ab1],_0x1e1ced=_0x123c87[_0x27be96(0xf6)](_0x201f2c['from'])||[];_0x1e1ced[_0x27be96(0x102)](_0x392ab1),_0x123c87[_0x27be96(0x11f)](_0x201f2c['from'],_0x1e1ced),_0x37a6d7[_0x27be96(0x11f)](_0x201f2c[_0x27be96(0xf5)],(_0x37a6d7['get'](_0x201f2c['from'])||0x0)+0x1),_0x39779['set'](_0x201f2c['to'],(_0x39779[_0x27be96(0xf6)](_0x201f2c['to'])||0x0)+0x1);}const _0x508f53=new Set([..._0x39779[_0x27be96(0xff)](),..._0x37a6d7[_0x27be96(0xff)]()]);for(const _0x5b0cde of _0x508f53){if((_0x39779[_0x27be96(0xf6)](_0x5b0cde)||0x0)!==(_0x37a6d7[_0x27be96(0xf6)](_0x5b0cde)||0x0))throw new Error('Sortierplan\x20ist\x20bei\x20„'+_0x5b0cde+_0x27be96(0xf7));}for(const _0x5e3678 of _0x123c87['values']()){_0x5e3678['sort']((_0x32c25d,_0x4523b2)=>_0x58b0d8[_0x4523b2]['position']-_0x58b0d8[_0x32c25d]['position']||_0x4523b2-_0x32c25d);}const _0x5c3810=new Set(_0x58b0d8['map']((_0x4261a8,_0x5ae863)=>_0x5ae863)),_0xe6d1df=[],_0x40a06b=_0x28d215=>{const _0x2a53e9=_0x27be96,_0x3df72a=_0x123c87['get'](_0x28d215)||[];while(_0x3df72a[_0x2a53e9(0xfe)]>0x0&&!_0x5c3810[_0x2a53e9(0x100)](_0x3df72a[_0x3df72a['length']-0x1]))_0x3df72a[_0x2a53e9(0x10c)]();if(_0x3df72a[_0x2a53e9(0xfe)]===0x0)return undefined;const _0x490939=_0x3df72a[_0x2a53e9(0x10c)]();if(_0x490939===undefined)return undefined;return _0x5c3810[_0x2a53e9(0x11a)](_0x490939),_0x490939;};while(_0x5c3810['size']>0x0){let _0x1f99a2;for(const _0x4e23ae of _0x5c3810){if(_0x1f99a2===undefined||_0x58b0d8[_0x4e23ae][_0x27be96(0x115)]<_0x58b0d8[_0x1f99a2][_0x27be96(0x115)]||_0x58b0d8[_0x4e23ae][_0x27be96(0x115)]===_0x58b0d8[_0x1f99a2][_0x27be96(0x115)]&&_0x4e23ae<_0x1f99a2)_0x1f99a2=_0x4e23ae;}if(_0x1f99a2===undefined)break;const _0x265361=[_0x58b0d8[_0x1f99a2][_0x27be96(0xf5)]],_0x47e220=[],_0x45ebf0=[];while(_0x265361[_0x27be96(0xfe)]>0x0){const _0x442cd4=_0x265361[_0x265361[_0x27be96(0xfe)]-0x1],_0x556335=_0x40a06b(_0x442cd4);if(_0x556335!==undefined)_0x47e220['push'](_0x556335),_0x265361['push'](_0x58b0d8[_0x556335]['to']);else{_0x265361[_0x27be96(0x10c)]();if(_0x47e220['length']>0x0){const _0x2be7b8=_0x47e220['pop']();if(_0x2be7b8!==undefined)_0x45ebf0['push'](_0x2be7b8);}}}const _0x277203=_0x45ebf0['reverse']();if(_0x277203[_0x27be96(0xfe)]<0x2)throw new Error(_0x27be96(0x10e));for(let _0x1bc7b0=0x0;_0x1bc7b0<_0x277203['length'];_0x1bc7b0++){const _0x13c453=_0x58b0d8[_0x277203[_0x1bc7b0]],_0x3fdd9d=_0x58b0d8[_0x277203[(_0x1bc7b0+0x1)%_0x277203['length']]];if(_0x13c453['to']!==_0x3fdd9d['from'])throw new Error(_0x27be96(0x11d));}_0xe6d1df['push'](_0x277203);}const _0x53f917=[];return _0xe6d1df[_0x27be96(0x118)]((_0x21d0d9,_0x58b0f1)=>{const _0x515a63=_0x27be96,_0x5a28ed=_0x58b0d8[_0x21d0d9[0x0]];_0x53f917[_0x515a63(0x102)]({'id':_0x5a28ed['id'],'from':_0x5a28ed[_0x515a63(0xf5)],'to':_0x503c05,'kind':_0x515a63(0x112),'circuit':_0x58b0f1+0x1});for(let _0x2a4580=_0x21d0d9[_0x515a63(0xfe)]-0x1;_0x2a4580>=0x1;_0x2a4580--){const _0x7dd7c4=_0x58b0d8[_0x21d0d9[_0x2a4580]];_0x53f917['push']({'id':_0x7dd7c4['id'],'from':_0x7dd7c4['from'],'to':_0x7dd7c4['to'],'kind':_0x515a63(0x119),'circuit':_0x58b0f1+0x1});}_0x53f917[_0x515a63(0x102)]({'id':_0x5a28ed['id'],'from':_0x503c05,'to':_0x5a28ed['to'],'kind':'final','circuit':_0x58b0f1+0x1});}),{'marker':_0x503c05,'changedSlots':_0x58b0d8['length'],'circuits':_0xe6d1df['length'],'amazonWrites':_0x53f917[_0x27be96(0xfe)],'steps':_0x53f917};}function visibleOrderTimestamp(_0x1ae13e){const _0xa9978a=_0x13cb7e;if(typeof _0x1ae13e==='number'&&Number[_0xa9978a(0x10d)](_0x1ae13e))return _0x1ae13e;if(typeof _0x1ae13e===_0xa9978a(0x114)&&_0x1ae13e['trim']()){const _0xfe0129=Number(_0x1ae13e);if(Number[_0xa9978a(0x10d)](_0xfe0129))return _0xfe0129;const _0x5a04cd=Date[_0xa9978a(0x11e)](_0x1ae13e);if(Number['isFinite'](_0x5a04cd))return _0x5a04cd;}return 0x0;}function _0x1508(_0x446aee,_0x3ee9b3){_0x446aee=_0x446aee-0xf4;const _0x31d7df=_0x31d7();let _0x150899=_0x31d7df[_0x446aee];return _0x150899;}function sortIdsByAlexaUpdatedTime(_0x51b9c7){return[..._0x51b9c7]['sort']((_0xca747f,_0x299225)=>{const _0x352520=_0x1508,_0x14c022=visibleOrderTimestamp(_0xca747f['updatedDateTime'])||visibleOrderTimestamp(_0xca747f['createdDateTime']),_0x22f4aa=visibleOrderTimestamp(_0x299225['updatedDateTime'])||visibleOrderTimestamp(_0x299225[_0x352520(0x11c)]);if(_0x14c022!==_0x22f4aa)return _0x14c022-_0x22f4aa;const _0x126689=visibleOrderTimestamp(_0xca747f['createdDateTime']),_0x361707=visibleOrderTimestamp(_0x299225['createdDateTime']);if(_0x126689!==_0x361707)return _0x126689-_0x361707;return String(_0xca747f['id'])[_0x352520(0x111)](String(_0x299225['id']));})['map'](_0x13ab0c=>String(_0x13ab0c['id']));}function createVisibleOrderRefreshPlan(_0x28d47b,_0x58e5c9){const _0x4be5c4=_0x13cb7e,_0x4e3551=_0x28d47b[_0x4be5c4(0x10a)](String),_0x5877a3=_0x58e5c9[_0x4be5c4(0x10a)](String);if(new Set(_0x4e3551)[_0x4be5c4(0x105)]!==_0x4e3551['length']||new Set(_0x5877a3)[_0x4be5c4(0x105)]!==_0x5877a3[_0x4be5c4(0xfe)])throw new Error('Sichtbare\x20Sortierreihenfolge\x20enthält\x20doppelte\x20IDs.');if(_0x4e3551[_0x4be5c4(0xfe)]!==_0x5877a3[_0x4be5c4(0xfe)])throw new Error(_0x4be5c4(0xfb));const _0x373fab=new Set(_0x4e3551);if(_0x5877a3['some'](_0x12cef6=>!_0x373fab['has'](_0x12cef6)))throw new Error('Sichtbare\x20Sortierreihenfolge\x20enthält\x20nicht\x20dieselben\x20IDs\x20wie\x20der\x20Sortierplan.');let _0x530254=0x0,_0x5e4a94=0x0;for(;_0x5e4a94<_0x5877a3[_0x4be5c4(0xfe)];_0x5e4a94++){const _0x192c19=_0x5877a3[_0x5e4a94];let _0x104ba6=-0x1;for(let _0x11e5bf=_0x530254;_0x11e5bf<_0x4e3551[_0x4be5c4(0xfe)];_0x11e5bf++){if(_0x4e3551[_0x11e5bf]===_0x192c19){_0x104ba6=_0x11e5bf;break;}}if(_0x104ba6<0x0)break;_0x530254=_0x104ba6+0x1;}return _0x5877a3['slice'](_0x5e4a94);}function _0x31d7(){const _0x33b284=['map','1025154IevXiX','pop','isFinite','Ungültiger\x20Sortierkreis\x20mit\x20weniger\x20als\x20zwei\x20Änderungen.','36OmyaTb','5783720TwMYKr','localeCompare','buffer','949165zAMesu','string','position','__esModule','defineProperty','forEach','rotate','delete','sortIdsByAlexaUpdatedTime','createdDateTime','Sortierkreis\x20ist\x20intern\x20nicht\x20geschlossen.','parse','set','33124rnMtzx','from','get','“\x20nicht\x20ausgeglichen.','Sortierpuffer\x20kollidiert\x20mit\x20einem\x20vorhandenen\x20Listentext.','filter','7279504FXVNLE','Sichtbare\x20Sortierreihenfolge\x20enthält\x20nicht\x20dieselben\x20IDs\x20wie\x20der\x20Sortierplan.','177IbrvVY','77pzPFGc','length','keys','has','createVisibleOrderRefreshPlan','push','Sortierpuffer\x20darf\x20nicht\x20leer\x20sein.','createBufferedSortProgram','size','2304470QPdsrJ','41286Arzwzu','3trTROD','trim'];_0x31d7=function(){return _0x33b284;};return _0x31d7();}
@@ -1 +1 @@
1
- 'use strict';function _0x3c51(){const _0x2e3f41=['3376588vLgely','defineProperty','source-ok','Die\x20bekannte\x20fehlerhafte\x20version-Query\x20wurde\x20in\x20der\x20installierten\x20alexa-remote2-Quelle\x20nicht\x20gefunden;\x20die\x20korrigierte\x20Schreibweise\x20ist\x20vorhanden.','5680395yghsbP','Die\x20installierte\x20alexa-remote2-Quelle\x20konnte\x20nicht\x20eindeutig\x20als\x20kompatibel\x20oder\x20als\x20bekannte\x20fehlerhafte\x20Variante\x20erkannt\x20werden.','48SpJOqs','7264SPZyqt','unknown','25861IbllJL','82BZWCNn','canWriteAlexa','test','1032269hakfzB','5960gRHWzp','Bekannter\x20updateListItem-Fehler\x20gefunden:\x20Leerzeichen\x20vor\x20dem\x20Gleichheitszeichen\x20in\x20der\x20version-Query.','29229YrMEAU','203765LyZdJr','7168pgqvNN','__esModule'];_0x3c51=function(){return _0x2e3f41;};return _0x3c51();}const _0x25a334=_0x53d4;(function(_0x5cd3ed,_0x4623c0){const _0x2ba21c=_0x53d4,_0x57b65b=_0x5cd3ed();while(!![]){try{const _0x19e278=parseInt(_0x2ba21c(0x1b5))/0x1+parseInt(_0x2ba21c(0x1b2))/0x2*(-parseInt(_0x2ba21c(0x1a4))/0x3)+-parseInt(_0x2ba21c(0x1a8))/0x4+parseInt(_0x2ba21c(0x1a5))/0x5*(-parseInt(_0x2ba21c(0x1ae))/0x6)+-parseInt(_0x2ba21c(0x1a6))/0x7*(parseInt(_0x2ba21c(0x1af))/0x8)+parseInt(_0x2ba21c(0x1ac))/0x9+-parseInt(_0x2ba21c(0x1b6))/0xa*(-parseInt(_0x2ba21c(0x1b1))/0xb);if(_0x19e278===_0x4623c0)break;else _0x57b65b['push'](_0x57b65b['shift']());}catch(_0x52574b){_0x57b65b['push'](_0x57b65b['shift']());}}}(_0x3c51,0x89fca));Object[_0x25a334(0x1a9)](exports,_0x25a334(0x1a7),{'value':!![]}),exports['inspectAlexaRemoteSource']=inspectAlexaRemoteSource,exports[_0x25a334(0x1b3)]=canWriteAlexa;function inspectAlexaRemoteSource(_0x4df2b5){const _0x423599=_0x25a334,_0x3bae8e=String(_0x4df2b5||'');if(/\?version\s+=\$\{options\.version\}/[_0x423599(0x1b4)](_0x3bae8e))return{'status':'known-bug','detail':_0x423599(0x1a3)};if(/\?version=\$\{options\.version\}/['test'](_0x3bae8e))return{'status':'source-ok','detail':_0x423599(0x1ab)};return{'status':_0x423599(0x1b0),'detail':_0x423599(0x1ad)};}function _0x53d4(_0x1b3c7d,_0x207f46){_0x1b3c7d=_0x1b3c7d-0x1a3;const _0x3c5162=_0x3c51();let _0x53d4bc=_0x3c5162[_0x1b3c7d];return _0x53d4bc;}function canWriteAlexa(_0x45e043){const _0x3cefeb=_0x25a334;return _0x45e043===_0x3cefeb(0x1aa)||_0x45e043==='live-ok';}
1
+ 'use strict';const _0x1460e5=_0x3d9e;(function(_0x469810,_0x23edaa){const _0x4df9c2=_0x3d9e,_0x105b5a=_0x469810();while(!![]){try{const _0x2f7ebd=-parseInt(_0x4df9c2(0x149))/0x1*(-parseInt(_0x4df9c2(0x153))/0x2)+-parseInt(_0x4df9c2(0x14f))/0x3*(parseInt(_0x4df9c2(0x154))/0x4)+parseInt(_0x4df9c2(0x14a))/0x5*(parseInt(_0x4df9c2(0x151))/0x6)+-parseInt(_0x4df9c2(0x150))/0x7+-parseInt(_0x4df9c2(0x146))/0x8*(parseInt(_0x4df9c2(0x147))/0x9)+parseInt(_0x4df9c2(0x155))/0xa*(parseInt(_0x4df9c2(0x145))/0xb)+parseInt(_0x4df9c2(0x14b))/0xc*(parseInt(_0x4df9c2(0x14c))/0xd);if(_0x2f7ebd===_0x23edaa)break;else _0x105b5a['push'](_0x105b5a['shift']());}catch(_0x4754d9){_0x105b5a['push'](_0x105b5a['shift']());}}}(_0x1cc2,0xa7992));function _0x3d9e(_0x2003ab,_0x2cb40b){_0x2003ab=_0x2003ab-0x13f;const _0x1cc255=_0x1cc2();let _0x3d9e93=_0x1cc255[_0x2003ab];return _0x3d9e93;}function _0x1cc2(){const _0x15aa84=['test','Die\x20bekannte\x20fehlerhafte\x20version-Query\x20wurde\x20in\x20der\x20installierten\x20alexa-remote2-Quelle\x20nicht\x20gefunden;\x20die\x20korrigierte\x20Schreibweise\x20ist\x20vorhanden.','__esModule','known-bug','1435049FdDRFf','17152fGNtJk','4617elaCzG','live-ok','795nmMuIQ','4531620FvygPu','1475208vBkxCx','78jYlBcW','Bekannter\x20updateListItem-Fehler\x20gefunden:\x20Leerzeichen\x20vor\x20dem\x20Gleichheitszeichen\x20in\x20der\x20version-Query.','Die\x20installierte\x20alexa-remote2-Quelle\x20konnte\x20nicht\x20eindeutig\x20als\x20kompatibel\x20oder\x20als\x20bekannte\x20fehlerhafte\x20Variante\x20erkannt\x20werden.','2373312DNkKaM','7337141bmKkDk','6Ekylww','source-ok','2688kgHmAO','4znGRLm','70sySQoq','defineProperty','canWriteAlexa'];_0x1cc2=function(){return _0x15aa84;};return _0x1cc2();}Object[_0x1460e5(0x13f)](exports,_0x1460e5(0x143),{'value':!![]}),exports['inspectAlexaRemoteSource']=inspectAlexaRemoteSource,exports[_0x1460e5(0x140)]=canWriteAlexa;function inspectAlexaRemoteSource(_0x1e559e){const _0x366e39=_0x1460e5,_0xd7c543=String(_0x1e559e||'');if(/\?version\s+=\$\{options\.version\}/[_0x366e39(0x141)](_0xd7c543))return{'status':_0x366e39(0x144),'detail':_0x366e39(0x14d)};if(/\?version=\$\{options\.version\}/[_0x366e39(0x141)](_0xd7c543))return{'status':'source-ok','detail':_0x366e39(0x142)};return{'status':'unknown','detail':_0x366e39(0x14e)};}function canWriteAlexa(_0x9d49ca){const _0x28b6ac=_0x1460e5;return _0x9d49ca===_0x28b6ac(0x152)||_0x9d49ca===_0x28b6ac(0x148);}
@@ -1 +1 @@
1
- 'use strict';function _0x3dc2(){const _0x502aef=['toISOString','has','batchSize','231FCpRQG','798hcWaHQ','maxWritesPerMinute','order','route','retryBaseMs','ensureMarketRoutes','base','forEach','add','trim','routes','dryRun','52595PngfFk','listName','products','isArray','13966640jAZQzu','localeCompare','sort','debounceMs','config','get','parse','name','parseConfigImport','reindexRoutes','format','316886XgyqrQ','Ungültiges\x20ShoppingRoute-Marktprofil.','productGroups','learningMode','filter','apiSafeMode','market','fallbackMarket','toLocaleLowerCase','markets','11789514EltfPv','shoppingroute-config-v1','reviewItems','maxWriteRetries','category','8VTsusA','map','push','index','528wjlaLS','32395319FkycWX','100720MSrtxq','alexaInstance','importMarketProfile','set','shoppingroute-market-profile-v1','__esModule','lists','1492nrhjkx'];_0x3dc2=function(){return _0x502aef;};return _0x3dc2();}const _0x51607f=_0x293c;(function(_0x731851,_0x36d756){const _0x5df208=_0x293c,_0x2c2afc=_0x731851();while(!![]){try{const _0x4e493e=parseInt(_0x5df208(0x12e))/0x1*(parseInt(_0x5df208(0x13d))/0x2)+-parseInt(_0x5df208(0x14f))/0x3*(parseInt(_0x5df208(0x14a))/0x4)+parseInt(_0x5df208(0x15b))/0x5*(-parseInt(_0x5df208(0x141))/0x6)+-parseInt(_0x5df208(0x14e))/0x7*(-parseInt(_0x5df208(0x143))/0x8)+-parseInt(_0x5df208(0x138))/0x9+-parseInt(_0x5df208(0x15f))/0xa+parseInt(_0x5df208(0x142))/0xb;if(_0x4e493e===_0x36d756)break;else _0x2c2afc['push'](_0x2c2afc['shift']());}catch(_0x396ae8){_0x2c2afc['push'](_0x2c2afc['shift']());}}}(_0x3dc2,0xdae1f));Object['defineProperty'](exports,_0x51607f(0x148),{'value':!![]}),exports['exportConfig']=exportConfig,exports[_0x51607f(0x12b)]=parseConfigImport,exports['buildMarketProfiles']=buildMarketProfiles,exports[_0x51607f(0x145)]=importMarketProfile,exports['groupRoutesByMarket']=groupRoutesByMarket,exports[_0x51607f(0x154)]=ensureMarketRoutes,exports[_0x51607f(0x12c)]=reindexRoutes,exports['normalizeRoutesForAdmin']=normalizeRoutesForAdmin;const EXPORT_KEYS=[_0x51607f(0x144),_0x51607f(0x15c),_0x51607f(0x149),_0x51607f(0x15a),'autoLearnProducts',_0x51607f(0x131),'autoAliasSuggestions',_0x51607f(0x162),'writePauseMs',_0x51607f(0x133),_0x51607f(0x150),_0x51607f(0x14d),'batchPauseMs',_0x51607f(0x13b),_0x51607f(0x153),_0x51607f(0x135),'priorityMarket','temporaryPriorityMarket',_0x51607f(0x130),_0x51607f(0x137),_0x51607f(0x159),_0x51607f(0x15d),_0x51607f(0x13a)];function _0x293c(_0x16e61a,_0x4dc4a5){_0x16e61a=_0x16e61a-0x12b;const _0x3dc25e=_0x3dc2();let _0x293cd8=_0x3dc25e[_0x16e61a];return _0x293cd8;}function exportConfig(_0x3349d2,_0x29cbd9,_0xeea018=new Date()){const _0x4df581=_0x51607f,_0x41a3e0={};for(const _0x4d275a of EXPORT_KEYS){const _0xbb0e8f=_0x3349d2[_0x4d275a];if(_0xbb0e8f!==undefined)_0x41a3e0[_0x4d275a]=structuredClone(_0xbb0e8f);}return{'format':_0x4df581(0x139),'exportedAt':_0xeea018[_0x4df581(0x14b)](),'version':_0x29cbd9,'config':_0x41a3e0};}function parseConfigImport(_0xc12b29){const _0x5c80fa=_0x51607f,_0x4ea5e5=JSON[_0x5c80fa(0x165)](String(_0xc12b29||'')),_0x4c5502=_0x4ea5e5[_0x5c80fa(0x12d)]==='shoppingroute-config-v1'?_0x4ea5e5[_0x5c80fa(0x163)]:_0x4ea5e5;if(!_0x4c5502||typeof _0x4c5502!=='object'||Array[_0x5c80fa(0x15e)](_0x4c5502))throw new Error('Konfigurationsimport\x20enthält\x20kein\x20Objekt.');const _0x277191={};for(const _0x222d57 of EXPORT_KEYS){_0x4c5502[_0x222d57]!==undefined&&(_0x277191[_0x222d57]=structuredClone(_0x4c5502[_0x222d57]));}return _0x277191;}function buildMarketProfiles(_0x214b74,_0x52453e){const _0x4a0a81=_0x51607f;return _0x214b74[_0x4a0a81(0x132)](_0x3c60d8=>_0x3c60d8['name'])[_0x4a0a81(0x161)]((_0x52d3c8,_0x14da26)=>(Number(_0x52d3c8[_0x4a0a81(0x151)])||0x270f)-(Number(_0x14da26[_0x4a0a81(0x151)])||0x270f))[_0x4a0a81(0x13e)](_0x440d20=>({'format':_0x4a0a81(0x147),'market':{..._0x440d20},'route':_0x52453e['filter'](_0x1a8cf6=>_0x1a8cf6[_0x4a0a81(0x134)][_0x4a0a81(0x136)]('de')===_0x440d20[_0x4a0a81(0x166)][_0x4a0a81(0x136)]('de'))[_0x4a0a81(0x13e)]((_0x571ff5,_0x4004c8)=>({..._0x571ff5,'order':(_0x4004c8+0x1)*0xa}))}));}function importMarketProfile(_0x11b1de,_0x317152,_0x350ce4){const _0x2f2be7=_0x51607f,_0x22dbe4=JSON[_0x2f2be7(0x165)](String(_0x11b1de||''));if(_0x22dbe4[_0x2f2be7(0x12d)]!==_0x2f2be7(0x147)||!_0x22dbe4['market']?.[_0x2f2be7(0x166)]||!Array[_0x2f2be7(0x15e)](_0x22dbe4[_0x2f2be7(0x152)]))throw new Error(_0x2f2be7(0x12f));const _0x1e65fb=_0x22dbe4[_0x2f2be7(0x134)][_0x2f2be7(0x166)][_0x2f2be7(0x158)](),_0x306e78=_0x317152[_0x2f2be7(0x132)](_0x1aa8eb=>_0x1aa8eb[_0x2f2be7(0x166)][_0x2f2be7(0x136)]('de')!==_0x1e65fb[_0x2f2be7(0x136)]('de'));_0x306e78['push']({..._0x22dbe4[_0x2f2be7(0x134)],'name':_0x1e65fb}),_0x306e78[_0x2f2be7(0x161)]((_0x133de1,_0x26a8e7)=>(Number(_0x133de1['order'])||0x270f)-(Number(_0x26a8e7['order'])||0x270f));const _0x348c9c=_0x350ce4['filter'](_0x1569d9=>_0x1569d9[_0x2f2be7(0x134)][_0x2f2be7(0x136)]('de')!==_0x1e65fb['toLocaleLowerCase']('de'));return _0x22dbe4[_0x2f2be7(0x152)][_0x2f2be7(0x156)]((_0x4ff9b9,_0x3f3f0f)=>_0x348c9c[_0x2f2be7(0x13f)]({'market':_0x1e65fb,'category':_0x4ff9b9['category'],'order':(_0x3f3f0f+0x1)*0xa})),{'markets':_0x306e78,'routes':_0x348c9c,'market':_0x1e65fb};}function groupRoutesByMarket(_0x2b1242){const _0x5ceb3e=_0x51607f;return _0x2b1242[_0x5ceb3e(0x13e)]((_0x3ed991,_0xa2c8fd)=>({'route':{..._0x3ed991},'index':_0xa2c8fd}))['sort']((_0x6985a,_0x2cb57c)=>{const _0x5d55fb=_0x5ceb3e,_0x3745b7=String(_0x6985a['route'][_0x5d55fb(0x134)]||'')[_0x5d55fb(0x160)](String(_0x2cb57c['route']['market']||''),'de',{'sensitivity':_0x5d55fb(0x155)});return _0x3745b7||_0x6985a[_0x5d55fb(0x140)]-_0x2cb57c[_0x5d55fb(0x140)];})[_0x5ceb3e(0x13e)](_0x54fa0e=>_0x54fa0e[_0x5ceb3e(0x152)]);}function ensureMarketRoutes(_0x383876,_0x239173,_0x41a178){const _0x549d61=_0x51607f,_0x40dd6e=_0x41a178[_0x549d61(0x132)](Boolean)['map'](_0x5a2249=>({..._0x5a2249})),_0x3737ae=new Set(_0x40dd6e['map'](_0x2a8654=>String(_0x2a8654[_0x549d61(0x134)]||'')[_0x549d61(0x158)]()[_0x549d61(0x136)]('de')+'\x00'+String(_0x2a8654[_0x549d61(0x13c)]||'')[_0x549d61(0x158)]()[_0x549d61(0x136)]('de')));let _0x35b092=0x0;const _0x4196eb=_0x383876[_0x549d61(0x132)](_0x2cfdcb=>_0x2cfdcb&&_0x2cfdcb['name']&&_0x2cfdcb['enabled']!==![])['slice']()['sort']((_0x34bfcb,_0x94cf62)=>String(_0x34bfcb[_0x549d61(0x166)])[_0x549d61(0x160)](String(_0x94cf62[_0x549d61(0x166)]),'de',{'sensitivity':'base'})),_0x170ef8=_0x239173[_0x549d61(0x132)](_0x4f4b7e=>_0x4f4b7e&&_0x4f4b7e['name'])[_0x549d61(0x13e)](_0x59267c=>String(_0x59267c[_0x549d61(0x166)])[_0x549d61(0x158)]())['filter'](Boolean);for(const _0x5a6f4c of _0x4196eb){const _0x581a22=String(_0x5a6f4c[_0x549d61(0x166)])[_0x549d61(0x158)](),_0x266d34=_0x581a22[_0x549d61(0x136)]('de');for(const _0x279a04 of _0x170ef8){const _0x198984=_0x266d34+'\x00'+_0x279a04[_0x549d61(0x136)]('de');if(_0x3737ae[_0x549d61(0x14c)](_0x198984))continue;_0x40dd6e['push']({'market':_0x581a22,'category':_0x279a04,'order':0x0}),_0x3737ae[_0x549d61(0x157)](_0x198984),_0x35b092+=0x1;}}return{'routes':reindexRoutes(groupRoutesByMarket(_0x40dd6e)),'added':_0x35b092};}function reindexRoutes(_0x299e93){const _0x4d9ed2=_0x51607f,_0x46c6c5=new Map();return _0x299e93[_0x4d9ed2(0x13e)](_0x41b168=>{const _0x2c52c1=_0x4d9ed2,_0x56d7be=String(_0x41b168['market']||'')[_0x2c52c1(0x136)]('de'),_0x29b363=(_0x46c6c5[_0x2c52c1(0x164)](_0x56d7be)||0x0)+0x1;return _0x46c6c5[_0x2c52c1(0x146)](_0x56d7be,_0x29b363),{..._0x41b168,'order':_0x29b363*0xa};});}function normalizeRoutesForAdmin(_0x2ab57d){const _0x595cb5=_0x51607f;return reindexRoutes(groupRoutesByMarket(_0x2ab57d[_0x595cb5(0x132)](Boolean)));}
1
+ 'use strict';const _0x550f6d=_0x4121;(function(_0x5a7e1b,_0x10779a){const _0x522fb4=_0x4121,_0x4bf71d=_0x5a7e1b();while(!![]){try{const _0x3c37af=-parseInt(_0x522fb4(0xeb))/0x1+-parseInt(_0x522fb4(0xfa))/0x2+-parseInt(_0x522fb4(0x106))/0x3+parseInt(_0x522fb4(0xe1))/0x4+parseInt(_0x522fb4(0xe8))/0x5*(parseInt(_0x522fb4(0x109))/0x6)+parseInt(_0x522fb4(0x10f))/0x7+parseInt(_0x522fb4(0x113))/0x8;if(_0x3c37af===_0x10779a)break;else _0x4bf71d['push'](_0x4bf71d['shift']());}catch(_0x533f66){_0x4bf71d['push'](_0x4bf71d['shift']());}}}(_0x15be,0x609a6));Object['defineProperty'](exports,_0x550f6d(0x10b),{'value':!![]}),exports['exportConfig']=exportConfig,exports[_0x550f6d(0xe9)]=parseConfigImport,exports[_0x550f6d(0xf8)]=buildMarketProfiles,exports[_0x550f6d(0xdc)]=importMarketProfile,exports['groupRoutesByMarket']=groupRoutesByMarket,exports['ensureMarketRoutes']=ensureMarketRoutes,exports[_0x550f6d(0xf7)]=reindexRoutes,exports[_0x550f6d(0xf1)]=normalizeRoutesForAdmin;const EXPORT_KEYS=[_0x550f6d(0xef),_0x550f6d(0xde),_0x550f6d(0x102),_0x550f6d(0x108),_0x550f6d(0x103),_0x550f6d(0xf5),'autoAliasSuggestions',_0x550f6d(0xe5),_0x550f6d(0xf6),_0x550f6d(0xe4),_0x550f6d(0xea),_0x550f6d(0xe7),_0x550f6d(0x105),_0x550f6d(0xf0),'retryBaseMs',_0x550f6d(0xe0),_0x550f6d(0x100),'temporaryPriorityMarket',_0x550f6d(0xfe),_0x550f6d(0xee),_0x550f6d(0xf4),'products',_0x550f6d(0x111)];function exportConfig(_0x3cf1ef,_0x560435,_0xed632b=new Date()){const _0x388554=_0x550f6d,_0x849218={};for(const _0x4c1b33 of EXPORT_KEYS){const _0x105a43=_0x3cf1ef[_0x4c1b33];if(_0x105a43!==undefined)_0x849218[_0x4c1b33]=structuredClone(_0x105a43);}return{'format':_0x388554(0xfd),'exportedAt':_0xed632b[_0x388554(0x10d)](),'version':_0x560435,'config':_0x849218};}function _0x15be(){const _0x32f191=['slice','routes','learningMode','writePauseMs','reindexRoutes','buildMarketProfiles','base','481174EInyRN','filter','route','shoppingroute-config-v1','productGroups','shoppingroute-market-profile-v1','priorityMarket','parse','lists','autoLearnProducts','set','batchPauseMs','2020149EHgXXQ','Konfigurationsimport\x20enthält\x20kein\x20Objekt.','dryRun','1669224nWuGEw','name','__esModule','trim','toISOString','isArray','131866eXYQkO','format','reviewItems','localeCompare','2925056dHXIhM','importMarketProfile','order','listName','map','fallbackMarket','2786672xHckdG','Ungültiges\x20ShoppingRoute-Marktprofil.','toLocaleLowerCase','apiSafeMode','debounceMs','market','batchSize','10iHXbbV','parseConfigImport','maxWritesPerMinute','327890XOuPJK','get','push','markets','alexaInstance','maxWriteRetries','normalizeRoutesForAdmin','sort'];_0x15be=function(){return _0x32f191;};return _0x15be();}function parseConfigImport(_0x1b68e7){const _0x59d3ba=_0x550f6d,_0x54716c=JSON[_0x59d3ba(0x101)](String(_0x1b68e7||'')),_0x474015=_0x54716c[_0x59d3ba(0x110)]===_0x59d3ba(0xfd)?_0x54716c['config']:_0x54716c;if(!_0x474015||typeof _0x474015!=='object'||Array[_0x59d3ba(0x10e)](_0x474015))throw new Error(_0x59d3ba(0x107));const _0x891128={};for(const _0x2c4adb of EXPORT_KEYS){_0x474015[_0x2c4adb]!==undefined&&(_0x891128[_0x2c4adb]=structuredClone(_0x474015[_0x2c4adb]));}return _0x891128;}function buildMarketProfiles(_0x40a853,_0x30dac5){const _0x333b36=_0x550f6d;return _0x40a853[_0x333b36(0xfb)](_0x1bb8f4=>_0x1bb8f4['name'])[_0x333b36(0xf2)]((_0x3f0dec,_0x54ddd0)=>(Number(_0x3f0dec['order'])||0x270f)-(Number(_0x54ddd0[_0x333b36(0xdd)])||0x270f))['map'](_0x39d6ea=>({'format':'shoppingroute-market-profile-v1','market':{..._0x39d6ea},'route':_0x30dac5['filter'](_0x12062f=>_0x12062f[_0x333b36(0xe6)][_0x333b36(0xe3)]('de')===_0x39d6ea[_0x333b36(0x10a)]['toLocaleLowerCase']('de'))[_0x333b36(0xdf)]((_0x20e492,_0x1b071a)=>({..._0x20e492,'order':(_0x1b071a+0x1)*0xa}))}));}function importMarketProfile(_0x497988,_0xfee69f,_0x4da93a){const _0x527de8=_0x550f6d,_0x1fcf29=JSON[_0x527de8(0x101)](String(_0x497988||''));if(_0x1fcf29[_0x527de8(0x110)]!==_0x527de8(0xff)||!_0x1fcf29['market']?.[_0x527de8(0x10a)]||!Array['isArray'](_0x1fcf29[_0x527de8(0xfc)]))throw new Error(_0x527de8(0xe2));const _0xd5895f=_0x1fcf29[_0x527de8(0xe6)]['name'][_0x527de8(0x10c)](),_0x417ce2=_0xfee69f['filter'](_0x182cfa=>_0x182cfa[_0x527de8(0x10a)][_0x527de8(0xe3)]('de')!==_0xd5895f[_0x527de8(0xe3)]('de'));_0x417ce2[_0x527de8(0xed)]({..._0x1fcf29[_0x527de8(0xe6)],'name':_0xd5895f}),_0x417ce2[_0x527de8(0xf2)]((_0xc8875a,_0x5725a5)=>(Number(_0xc8875a[_0x527de8(0xdd)])||0x270f)-(Number(_0x5725a5[_0x527de8(0xdd)])||0x270f));const _0x406f56=_0x4da93a[_0x527de8(0xfb)](_0x3efe43=>_0x3efe43[_0x527de8(0xe6)]['toLocaleLowerCase']('de')!==_0xd5895f[_0x527de8(0xe3)]('de'));return _0x1fcf29['route']['forEach']((_0x12e43a,_0x478b74)=>_0x406f56[_0x527de8(0xed)]({'market':_0xd5895f,'category':_0x12e43a['category'],'order':(_0x478b74+0x1)*0xa})),{'markets':_0x417ce2,'routes':_0x406f56,'market':_0xd5895f};}function _0x4121(_0x44671e,_0x319ee9){_0x44671e=_0x44671e-0xdc;const _0x15be3b=_0x15be();let _0x41214e=_0x15be3b[_0x44671e];return _0x41214e;}function groupRoutesByMarket(_0x20e3cc){const _0x5216a8=_0x550f6d;return _0x20e3cc[_0x5216a8(0xdf)]((_0x25f0b4,_0x5dd1d8)=>({'route':{..._0x25f0b4},'index':_0x5dd1d8}))['sort']((_0x5d0a5e,_0x3669bd)=>{const _0x5f279d=_0x5216a8,_0x5c447a=String(_0x5d0a5e[_0x5f279d(0xfc)][_0x5f279d(0xe6)]||'')[_0x5f279d(0x112)](String(_0x3669bd['route']['market']||''),'de',{'sensitivity':_0x5f279d(0xf9)});return _0x5c447a||_0x5d0a5e['index']-_0x3669bd['index'];})[_0x5216a8(0xdf)](_0x465ccb=>_0x465ccb['route']);}function ensureMarketRoutes(_0x35e2fc,_0x57c622,_0x21d434){const _0x2056e5=_0x550f6d,_0xea767b=_0x21d434['filter'](Boolean)['map'](_0x5cf4e3=>({..._0x5cf4e3})),_0x7836c6=new Set(_0xea767b[_0x2056e5(0xdf)](_0x448e20=>String(_0x448e20[_0x2056e5(0xe6)]||'')[_0x2056e5(0x10c)]()['toLocaleLowerCase']('de')+'\x00'+String(_0x448e20['category']||'')[_0x2056e5(0x10c)]()['toLocaleLowerCase']('de')));let _0x506d03=0x0;const _0x3a0c04=_0x35e2fc[_0x2056e5(0xfb)](_0x507fff=>_0x507fff&&_0x507fff['name']&&_0x507fff['enabled']!==![])[_0x2056e5(0xf3)]()[_0x2056e5(0xf2)]((_0x128eac,_0x2fa118)=>String(_0x128eac[_0x2056e5(0x10a)])[_0x2056e5(0x112)](String(_0x2fa118['name']),'de',{'sensitivity':'base'})),_0x4bef37=_0x57c622[_0x2056e5(0xfb)](_0x64f2db=>_0x64f2db&&_0x64f2db[_0x2056e5(0x10a)])[_0x2056e5(0xdf)](_0x4247ef=>String(_0x4247ef[_0x2056e5(0x10a)])[_0x2056e5(0x10c)]())[_0x2056e5(0xfb)](Boolean);for(const _0x1ea438 of _0x3a0c04){const _0x354475=String(_0x1ea438[_0x2056e5(0x10a)])[_0x2056e5(0x10c)](),_0x5f20e8=_0x354475['toLocaleLowerCase']('de');for(const _0xc5f6b2 of _0x4bef37){const _0x16e28c=_0x5f20e8+'\x00'+_0xc5f6b2[_0x2056e5(0xe3)]('de');if(_0x7836c6['has'](_0x16e28c))continue;_0xea767b[_0x2056e5(0xed)]({'market':_0x354475,'category':_0xc5f6b2,'order':0x0}),_0x7836c6['add'](_0x16e28c),_0x506d03+=0x1;}}return{'routes':reindexRoutes(groupRoutesByMarket(_0xea767b)),'added':_0x506d03};}function reindexRoutes(_0x11ec0e){const _0x51a3cc=_0x550f6d,_0x2d3e18=new Map();return _0x11ec0e[_0x51a3cc(0xdf)](_0x11de9e=>{const _0x544bf5=_0x51a3cc,_0x5a24a0=String(_0x11de9e['market']||'')[_0x544bf5(0xe3)]('de'),_0x21f48e=(_0x2d3e18[_0x544bf5(0xec)](_0x5a24a0)||0x0)+0x1;return _0x2d3e18[_0x544bf5(0x104)](_0x5a24a0,_0x21f48e),{..._0x11de9e,'order':_0x21f48e*0xa};});}function normalizeRoutesForAdmin(_0x2c9771){const _0x311a3b=_0x550f6d;return reindexRoutes(groupRoutesByMarket(_0x2c9771[_0x311a3b(0xfb)](Boolean)));}
@@ -1 +1 @@
1
- 'use strict';function _0x37ee(_0x2c043f,_0x305218){_0x2c043f=_0x2c043f-0x126;const _0x547dd1=_0x547d();let _0x37ee49=_0x547dd1[_0x2c043f];return _0x37ee49;}function _0x547d(){const _0x4e60bf=['value','max','22946780tjwaWs','length','localeCompare','match','optimizeMarketAssignments','get','size','market','order','3239630iKiWyi','push','470582eNtTVf','4929072HWfKwt','./parser','trim','enabled','filter','9taQKzA','requiredMarkets','parsed','259rCEtKC','availableMarkets','floor','name','completed','----\x20','add','32408rzeWPo','keys','2845604rvUSmV','active','source','sort','isFinite','productText','planMarketHeaderAction','939213tXRiPi','delete','has','defineProperty','base','formatMarketHeader','normalize','parseMarketList','18chNsiU','set','realActiveItems','map'];_0x547d=function(){return _0x4e60bf;};return _0x547d();}const _0x4f4fcb=_0x37ee;(function(_0x426328,_0x14749d){const _0x24051a=_0x37ee,_0x55f681=_0x426328();while(!![]){try{const _0x631904=-parseInt(_0x24051a(0x14a))/0x1+parseInt(_0x24051a(0x131))/0x2*(-parseInt(_0x24051a(0x137))/0x3)+-parseInt(_0x24051a(0x143))/0x4+-parseInt(_0x24051a(0x12f))/0x5+-parseInt(_0x24051a(0x132))/0x6+-parseInt(_0x24051a(0x13a))/0x7*(parseInt(_0x24051a(0x141))/0x8)+parseInt(_0x24051a(0x152))/0x9*(parseInt(_0x24051a(0x126))/0xa);if(_0x631904===_0x14749d)break;else _0x55f681['push'](_0x55f681['shift']());}catch(_0x57e1be){_0x55f681['push'](_0x55f681['shift']());}}}(_0x547d,0x95ca8));Object[_0x4f4fcb(0x14d)](exports,'__esModule',{'value':!![]}),exports[_0x4f4fcb(0x14f)]=formatMarketHeader,exports['marketFromHeader']=marketFromHeader,exports['isMarketHeader']=isMarketHeader,exports[_0x4f4fcb(0x154)]=realActiveItems,exports[_0x4f4fcb(0x12a)]=optimizeMarketAssignments,exports[_0x4f4fcb(0x138)]=requiredMarkets,exports[_0x4f4fcb(0x149)]=planMarketHeaderAction;const parser_1=require(_0x4f4fcb(0x133)),HEADER_PATTERN=/^----\s+(.+?)\s+----$/;function formatMarketHeader(_0x57e721){const _0x1bfd43=_0x4f4fcb;return _0x1bfd43(0x13f)+String(_0x57e721||'')[_0x1bfd43(0x134)]()['toLocaleUpperCase']('de-DE')+'\x20----';}function marketFromHeader(_0x4c308a,_0x5417f7){const _0x2a1fff=_0x4f4fcb,_0x3b8c3b=String(_0x4c308a||'')[_0x2a1fff(0x134)]()[_0x2a1fff(0x129)](HEADER_PATTERN);if(!_0x3b8c3b?.[0x1])return undefined;const _0x3aa696=(0x0,parser_1[_0x2a1fff(0x150)])(_0x3b8c3b[0x1]);return _0x5417f7['find'](_0x54364e=>_0x54364e[_0x2a1fff(0x135)]!==![]&&(0x0,parser_1['normalize'])(_0x54364e['name'])===_0x3aa696)?.[_0x2a1fff(0x13d)];}function isMarketHeader(_0xb4f6c0,_0x754553){const _0x205bab=_0x4f4fcb;return HEADER_PATTERN['test'](String(_0xb4f6c0||'')[_0x205bab(0x134)]());}function realActiveItems(_0x11a93b,_0xe7be8e){const _0x56bbbb=_0x4f4fcb;return _0x11a93b[_0x56bbbb(0x136)](_0x43b8d4=>_0x43b8d4&&_0x43b8d4[_0x56bbbb(0x13e)]===![]&&Boolean(_0x43b8d4['id'])&&Boolean(String(_0x43b8d4['value']||'')['trim']())&&!isMarketHeader(String(_0x43b8d4['value']),_0xe7be8e));}function marketOrderMap(_0x476632){const _0x3df93b=_0x4f4fcb;return new Map(_0x476632[_0x3df93b(0x155)](_0x558ac0=>[_0x558ac0[_0x3df93b(0x13d)],Number[_0x3df93b(0x147)](Number(_0x558ac0[_0x3df93b(0x12e)]))?Number(_0x558ac0['order']):0x270f]));}function rankedMarkets(_0x27a05f,_0x41b47d,_0x3e2ebb){return[...new Set(_0x27a05f)]['sort']((_0x395f26,_0x2bcc73)=>{const _0x43c21f=_0x37ee,_0x12a6e5=(_0x41b47d[_0x43c21f(0x12b)](_0x2bcc73)||0x0)-(_0x41b47d['get'](_0x395f26)||0x0);if(_0x12a6e5!==0x0)return _0x12a6e5;const _0x9880f8=(_0x3e2ebb[_0x43c21f(0x12b)](_0x395f26)||0x270f)-(_0x3e2ebb[_0x43c21f(0x12b)](_0x2bcc73)||0x270f);if(_0x9880f8!==0x0)return _0x9880f8;return _0x395f26[_0x43c21f(0x128)](_0x2bcc73,'de',{'sensitivity':'base'});});}function allowedMarketsForItem(_0x3ab994,_0x5d81c9,_0x5ae9fe){const _0x9ffe99=_0x4f4fcb;if(_0x3ab994[_0x9ffe99(0x139)]['explicitMarket'])return[_0x3ab994[_0x9ffe99(0x139)][_0x9ffe99(0x12d)]];const _0x2cbb89=(0x0,parser_1['findProduct'])(_0x3ab994[_0x9ffe99(0x139)][_0x9ffe99(0x148)],_0x5ae9fe);if(!_0x2cbb89)return[_0x3ab994[_0x9ffe99(0x139)]['market']];const _0x18c018=(0x0,parser_1[_0x9ffe99(0x151)])(_0x2cbb89[_0x9ffe99(0x13b)],_0x5d81c9);if(!_0x18c018[_0x9ffe99(0x127)])return[_0x3ab994['parsed']['market']];return[...new Set([_0x3ab994[_0x9ffe99(0x139)][_0x9ffe99(0x12d)],..._0x18c018])];}function optimizeMarketAssignments(_0xac21ce,_0x2154fb,_0x47253c,_0x16d037,_0x5d056f='',_0x5abbe5=0x1){const _0x20e058=_0x4f4fcb,_0x5d1b97=_0xac21ce['map'](_0x3175b1=>({'source':_0x3175b1,'parsed':(0x0,parser_1['parseItem'])(String(_0x3175b1[_0x20e058(0x156)]),_0x2154fb,_0x47253c,_0x16d037,_0x5d056f)})),_0x497bf9=Math['max'](0x1,Math[_0x20e058(0x13c)](Number(_0x5abbe5)||0x1));if(_0x497bf9<=0x1||_0x5d1b97['length']<=0x1)return _0x5d1b97;const _0x2e3ff5=marketOrderMap(_0x2154fb),_0x56bfbe=new Map(),_0x4a1e58=new Map(),_0x3fed3b=new Map(),_0x4c8d05=new Set();for(const _0x353594 of _0x5d1b97){const _0x4dd397=_0x353594[_0x20e058(0x139)]['market'];_0x56bfbe[_0x20e058(0x153)](_0x4dd397,(_0x56bfbe[_0x20e058(0x12b)](_0x4dd397)||0x0)+0x1);const _0x35e588=_0x3fed3b[_0x20e058(0x12b)](_0x4dd397)||[];_0x35e588['push'](_0x353594),_0x3fed3b[_0x20e058(0x153)](_0x4dd397,_0x35e588);const _0x5df8d5=allowedMarketsForItem(_0x353594,_0x2154fb,_0x47253c);_0x4a1e58[_0x20e058(0x153)](String(_0x353594['source']['id']),_0x5df8d5);if(_0x353594[_0x20e058(0x139)]['explicitMarket']||_0x5df8d5[_0x20e058(0x127)]<=0x1)_0x4c8d05[_0x20e058(0x140)](_0x4dd397);}for(const [_0x2fba90,_0x1040c3]of _0x56bfbe){if(_0x1040c3>=_0x497bf9)_0x4c8d05[_0x20e058(0x140)](_0x2fba90);}if(!_0x4c8d05[_0x20e058(0x12c)]&&_0x56bfbe[_0x20e058(0x12c)]){const _0x5b77da=rankedMarkets(_0x56bfbe[_0x20e058(0x142)](),_0x56bfbe,_0x2e3ff5)[0x0];if(_0x5b77da)_0x4c8d05[_0x20e058(0x140)](_0x5b77da);}const _0x532315=new Map();for(const _0x3f0722 of _0x5d1b97)_0x532315[_0x20e058(0x153)](String(_0x3f0722[_0x20e058(0x145)]['id']),_0x3f0722[_0x20e058(0x139)][_0x20e058(0x12d)]);const _0x685827=[..._0x3fed3b['entries']()]['filter'](([_0x224c10])=>!_0x4c8d05[_0x20e058(0x14c)](_0x224c10))[_0x20e058(0x146)]((_0x359f10,_0x2f2df9)=>{const _0x2a9d03=_0x20e058,_0x37bd91=_0x359f10[0x1][_0x2a9d03(0x127)]-_0x2f2df9[0x1][_0x2a9d03(0x127)];if(_0x37bd91!==0x0)return _0x37bd91;return(_0x2e3ff5[_0x2a9d03(0x12b)](_0x359f10[0x0])||0x270f)-(_0x2e3ff5[_0x2a9d03(0x12b)](_0x2f2df9[0x0])||0x270f);});for(const [_0x117d46,_0x46fbcd]of _0x685827){const _0x3c613d=new Map();let _0x17bc22=!![];for(const _0x1f8010 of _0x46fbcd){const _0x4d86c7=(_0x4a1e58[_0x20e058(0x12b)](String(_0x1f8010['source']['id']))||[_0x117d46])['filter'](_0x30cdd6=>_0x4c8d05[_0x20e058(0x14c)](_0x30cdd6)),_0x4978dc=rankedMarkets(_0x4d86c7,_0x56bfbe,_0x2e3ff5)[0x0];if(!_0x4978dc){_0x17bc22=![];break;}_0x3c613d[_0x20e058(0x153)](String(_0x1f8010[_0x20e058(0x145)]['id']),_0x4978dc);}if(!_0x17bc22){_0x4c8d05[_0x20e058(0x140)](_0x117d46);continue;}for(const _0x1a7c76 of _0x46fbcd){const _0x267adf=String(_0x1a7c76[_0x20e058(0x145)]['id']),_0xabc810=_0x3c613d['get'](_0x267adf);if(!_0xabc810||_0xabc810===_0x117d46)continue;_0x532315[_0x20e058(0x153)](_0x267adf,_0xabc810),_0x56bfbe['set'](_0x117d46,Math[_0x20e058(0x157)](0x0,(_0x56bfbe[_0x20e058(0x12b)](_0x117d46)||0x0)-0x1)),_0x56bfbe[_0x20e058(0x153)](_0xabc810,(_0x56bfbe['get'](_0xabc810)||0x0)+0x1);}}return _0x5d1b97[_0x20e058(0x155)](_0x2af5be=>{const _0x30e9c1=_0x20e058,_0x3a11bc=_0x532315['get'](String(_0x2af5be[_0x30e9c1(0x145)]['id']))||_0x2af5be[_0x30e9c1(0x139)][_0x30e9c1(0x12d)];return _0x3a11bc===_0x2af5be['parsed'][_0x30e9c1(0x12d)]?_0x2af5be:{'source':_0x2af5be['source'],'parsed':{..._0x2af5be['parsed'],'market':_0x3a11bc}};});}function requiredMarkets(_0x232e86,_0x4fbc68,_0x2796b3,_0x1c3333,_0x3287ff='',_0x403079=0x1){const _0x4a4428=_0x4f4fcb,_0xb63082=marketOrderMap(_0x4fbc68),_0x2562be=optimizeMarketAssignments(_0x232e86,_0x4fbc68,_0x2796b3,_0x1c3333,_0x3287ff,_0x403079),_0x3e57b3=new Set(_0x2562be[_0x4a4428(0x155)](_0x55662b=>_0x55662b[_0x4a4428(0x139)][_0x4a4428(0x12d)])[_0x4a4428(0x136)](_0x58a858=>(0x0,parser_1['normalize'])(_0x58a858)!==(0x0,parser_1[_0x4a4428(0x150)])(_0x1c3333)));return[..._0x3e57b3][_0x4a4428(0x146)]((_0x295069,_0x23208e)=>{const _0x87f26d=_0x4a4428,_0x42fde8=(_0xb63082[_0x87f26d(0x12b)](_0x295069)||0x270f)-(_0xb63082['get'](_0x23208e)||0x270f);if(_0x42fde8!==0x0)return _0x42fde8;return _0x295069[_0x87f26d(0x128)](_0x23208e,'de',{'sensitivity':_0x87f26d(0x14e)});});}function planMarketHeaderAction(_0x1d7154,_0xc435d8,_0xe6a456,_0x855ccd,_0x376344){const _0x6e9308=_0x4f4fcb,_0x344a8f=new Set(_0xc435d8['map'](parser_1[_0x6e9308(0x150)])),_0x1469e3=new Map(),_0x357d4f=[];for(const _0x1ceb24 of _0x1d7154){const _0x5dadfc=String(_0x1ceb24?.[_0x6e9308(0x156)]||'')['trim'](),_0x2c1d70=_0x5dadfc[_0x6e9308(0x129)](HEADER_PATTERN);if(!_0x2c1d70?.[0x1])continue;const _0xf82fb6=marketFromHeader(_0x5dadfc,_0xe6a456);if(!_0xf82fb6||(0x0,parser_1[_0x6e9308(0x150)])(_0xf82fb6)===(0x0,parser_1[_0x6e9308(0x150)])(_0x855ccd)){_0x357d4f[_0x6e9308(0x130)]({'market':_0x2c1d70[0x1][_0x6e9308(0x134)](),'item':_0x1ceb24});continue;}const _0x2cefcc=(0x0,parser_1[_0x6e9308(0x150)])(_0xf82fb6),_0x25b5c9=_0x1469e3['get'](_0x2cefcc)||{'market':_0xf82fb6,'active':[],'completed':[]};if(_0x1ceb24[_0x6e9308(0x13e)]===![])_0x25b5c9['active'][_0x6e9308(0x130)](_0x1ceb24);else _0x25b5c9['completed'][_0x6e9308(0x130)](_0x1ceb24);_0x1469e3['set'](_0x2cefcc,_0x25b5c9);}if(_0x357d4f['length']){const _0x5e347e=_0x357d4f[0x0];return{'type':_0x6e9308(0x14b),'market':_0x5e347e[_0x6e9308(0x12d)],'id':String(_0x5e347e['item']['id'])};}if(!_0x376344){for(const _0x272c0f of _0xe6a456){const _0x51bad4=_0x1469e3['get']((0x0,parser_1[_0x6e9308(0x150)])(_0x272c0f[_0x6e9308(0x13d)])),_0x5d52e2=_0x51bad4?.[_0x6e9308(0x144)][0x0]||_0x51bad4?.[_0x6e9308(0x13e)][0x0];if(_0x5d52e2)return{'type':_0x6e9308(0x14b),'market':_0x51bad4?.[_0x6e9308(0x12d)]||_0x272c0f[_0x6e9308(0x13d)],'id':String(_0x5d52e2['id'])};}return null;}for(const _0x43dd92 of _0xc435d8){const _0x126a2f=(0x0,parser_1['normalize'])(_0x43dd92),_0x5f91ed=_0x1469e3[_0x6e9308(0x12b)](_0x126a2f);if(_0x5f91ed?.['active']['length']){if(_0x5f91ed['completed']['length'])return{'type':_0x6e9308(0x14b),'market':_0x43dd92,'id':String(_0x5f91ed['completed'][0x0]['id'])};if(_0x5f91ed[_0x6e9308(0x144)]['length']>0x1)return{'type':'delete','market':_0x43dd92,'id':String(_0x5f91ed[_0x6e9308(0x144)][0x1]['id'])};continue;}if(_0x5f91ed?.['completed']['length'])return{'type':_0x6e9308(0x14b),'market':_0x43dd92,'id':String(_0x5f91ed[_0x6e9308(0x13e)][0x0]['id'])};return{'type':'create','market':_0x43dd92,'value':formatMarketHeader(_0x43dd92)};}for(const _0x5af11b of _0xe6a456){const _0x178800=(0x0,parser_1['normalize'])(_0x5af11b['name']);if((0x0,parser_1[_0x6e9308(0x150)])(_0x5af11b[_0x6e9308(0x13d)])===(0x0,parser_1[_0x6e9308(0x150)])(_0x855ccd)||_0x344a8f['has'](_0x178800))continue;const _0xb5d85c=_0x1469e3[_0x6e9308(0x12b)](_0x178800),_0x1f7b34=_0xb5d85c?.[_0x6e9308(0x144)][0x0]||_0xb5d85c?.[_0x6e9308(0x13e)][0x0];if(_0x1f7b34)return{'type':'delete','market':_0x5af11b[_0x6e9308(0x13d)],'id':String(_0x1f7b34['id'])};}return null;}
1
+ 'use strict';const _0x302bd9=_0x5a1b;(function(_0x224a14,_0x4be49c){const _0x56c835=_0x5a1b,_0x391d6c=_0x224a14();while(!![]){try{const _0x4b851f=parseInt(_0x56c835(0x8c))/0x1+parseInt(_0x56c835(0x83))/0x2*(parseInt(_0x56c835(0x9e))/0x3)+parseInt(_0x56c835(0x9c))/0x4*(parseInt(_0x56c835(0x7a))/0x5)+parseInt(_0x56c835(0x8f))/0x6+parseInt(_0x56c835(0x92))/0x7*(parseInt(_0x56c835(0x82))/0x8)+parseInt(_0x56c835(0x9a))/0x9*(parseInt(_0x56c835(0x80))/0xa)+-parseInt(_0x56c835(0x94))/0xb;if(_0x4b851f===_0x4be49c)break;else _0x391d6c['push'](_0x391d6c['shift']());}catch(_0x5e51ee){_0x391d6c['push'](_0x391d6c['shift']());}}}(_0x2677,0xe8d3e));function _0x2677(){const _0x21b273=['sort','availableMarkets','parseMarketList','formatMarketHeader','name','value','defineProperty','872038PNSPpd','marketFromHeader','get','3105054wfcgLg','trim','map','539GhULXF','optimizeMarketAssignments','55721787cKkVzK','match','order','filter','active','__esModule','12866859tKHgPf','toLocaleUpperCase','4ZNofZz','\x20----','102IxNLoD','normalize','parsed','isMarketHeader','floor','de-DE','create','enabled','explicitMarket','delete','productText','length','keys','entries','max','market','add','push','4293035kqSGjS','size','test','source','completed','find','10sbawZH','set','113360BhsamP','73552OcOcXY','base'];_0x2677=function(){return _0x21b273;};return _0x2677();}Object[_0x302bd9(0x8b)](exports,_0x302bd9(0x99),{'value':!![]}),exports[_0x302bd9(0x88)]=formatMarketHeader,exports[_0x302bd9(0x8d)]=marketFromHeader,exports[_0x302bd9(0xa1)]=isMarketHeader,exports['realActiveItems']=realActiveItems,exports[_0x302bd9(0x93)]=optimizeMarketAssignments,exports['requiredMarkets']=requiredMarkets,exports['planMarketHeaderAction']=planMarketHeaderAction;const parser_1=require('./parser'),HEADER_PATTERN=/^----\s+(.+?)\s+----$/;function formatMarketHeader(_0x5c826c){const _0x902df1=_0x302bd9;return'----\x20'+String(_0x5c826c||'')[_0x902df1(0x90)]()[_0x902df1(0x9b)](_0x902df1(0xa3))+_0x902df1(0x9d);}function marketFromHeader(_0x425fdd,_0x2921bf){const _0x1f037b=_0x302bd9,_0x5394ab=String(_0x425fdd||'')['trim']()[_0x1f037b(0x95)](HEADER_PATTERN);if(!_0x5394ab?.[0x1])return undefined;const _0xfa5500=(0x0,parser_1[_0x1f037b(0x9f)])(_0x5394ab[0x1]);return _0x2921bf[_0x1f037b(0x7f)](_0x20108a=>_0x20108a[_0x1f037b(0xa5)]!==![]&&(0x0,parser_1[_0x1f037b(0x9f)])(_0x20108a[_0x1f037b(0x89)])===_0xfa5500)?.[_0x1f037b(0x89)];}function isMarketHeader(_0x31c5a7,_0x240020){const _0x1d39d9=_0x302bd9;return HEADER_PATTERN[_0x1d39d9(0x7c)](String(_0x31c5a7||'')[_0x1d39d9(0x90)]());}function _0x5a1b(_0x4b9ad7,_0x1b0548){_0x4b9ad7=_0x4b9ad7-0x76;const _0x26772b=_0x2677();let _0x5a1b0b=_0x26772b[_0x4b9ad7];return _0x5a1b0b;}function realActiveItems(_0x3ff729,_0x267d9d){const _0xd5fce6=_0x302bd9;return _0x3ff729['filter'](_0x2ec38c=>_0x2ec38c&&_0x2ec38c[_0xd5fce6(0x7e)]===![]&&Boolean(_0x2ec38c['id'])&&Boolean(String(_0x2ec38c[_0xd5fce6(0x8a)]||'')[_0xd5fce6(0x90)]())&&!isMarketHeader(String(_0x2ec38c[_0xd5fce6(0x8a)]),_0x267d9d));}function marketOrderMap(_0x3a1438){const _0x2c30aa=_0x302bd9;return new Map(_0x3a1438[_0x2c30aa(0x91)](_0x1e99a1=>[_0x1e99a1[_0x2c30aa(0x89)],Number['isFinite'](Number(_0x1e99a1['order']))?Number(_0x1e99a1[_0x2c30aa(0x96)]):0x270f]));}function rankedMarkets(_0x581d23,_0x1d848b,_0xfcdc21){const _0x2d8cc1=_0x302bd9;return[...new Set(_0x581d23)][_0x2d8cc1(0x85)]((_0x57a062,_0x1c823e)=>{const _0x1e3911=_0x2d8cc1,_0x5d3773=(_0x1d848b['get'](_0x1c823e)||0x0)-(_0x1d848b[_0x1e3911(0x8e)](_0x57a062)||0x0);if(_0x5d3773!==0x0)return _0x5d3773;const _0x506cf7=(_0xfcdc21[_0x1e3911(0x8e)](_0x57a062)||0x270f)-(_0xfcdc21[_0x1e3911(0x8e)](_0x1c823e)||0x270f);if(_0x506cf7!==0x0)return _0x506cf7;return _0x57a062['localeCompare'](_0x1c823e,'de',{'sensitivity':_0x1e3911(0x84)});});}function allowedMarketsForItem(_0x287d68,_0x3aaba2,_0x172e6e){const _0x10fb09=_0x302bd9;if(_0x287d68['parsed'][_0x10fb09(0xa6)])return[_0x287d68[_0x10fb09(0xa0)]['market']];const _0x44de00=(0x0,parser_1['findProduct'])(_0x287d68[_0x10fb09(0xa0)][_0x10fb09(0xa8)],_0x172e6e);if(!_0x44de00)return[_0x287d68['parsed']['market']];const _0x5869f2=(0x0,parser_1[_0x10fb09(0x87)])(_0x44de00[_0x10fb09(0x86)],_0x3aaba2);if(!_0x5869f2[_0x10fb09(0xa9)])return[_0x287d68[_0x10fb09(0xa0)][_0x10fb09(0x77)]];return[...new Set([_0x287d68['parsed']['market'],..._0x5869f2])];}function optimizeMarketAssignments(_0xc0a739,_0x58c66b,_0x23c84a,_0x45b2ad,_0x57c11b='',_0x348241=0x1){const _0x2f72af=_0x302bd9,_0x46852e=_0xc0a739[_0x2f72af(0x91)](_0x54342e=>({'source':_0x54342e,'parsed':(0x0,parser_1['parseItem'])(String(_0x54342e['value']),_0x58c66b,_0x23c84a,_0x45b2ad,_0x57c11b)})),_0x573d32=Math[_0x2f72af(0x76)](0x1,Math[_0x2f72af(0xa2)](Number(_0x348241)||0x1));if(_0x573d32<=0x1||_0x46852e['length']<=0x1)return _0x46852e;const _0x4875ea=marketOrderMap(_0x58c66b),_0x3a1053=new Map(),_0x15995b=new Map(),_0x5e6881=new Map(),_0x44d00d=new Set();for(const _0x9211c of _0x46852e){const _0x522c9e=_0x9211c['parsed'][_0x2f72af(0x77)];_0x3a1053[_0x2f72af(0x81)](_0x522c9e,(_0x3a1053[_0x2f72af(0x8e)](_0x522c9e)||0x0)+0x1);const _0x43edca=_0x5e6881[_0x2f72af(0x8e)](_0x522c9e)||[];_0x43edca[_0x2f72af(0x79)](_0x9211c),_0x5e6881['set'](_0x522c9e,_0x43edca);const _0x5db26f=allowedMarketsForItem(_0x9211c,_0x58c66b,_0x23c84a);_0x15995b[_0x2f72af(0x81)](String(_0x9211c['source']['id']),_0x5db26f);if(_0x9211c[_0x2f72af(0xa0)][_0x2f72af(0xa6)]||_0x5db26f[_0x2f72af(0xa9)]<=0x1)_0x44d00d[_0x2f72af(0x78)](_0x522c9e);}for(const [_0x50f342,_0x3295d5]of _0x3a1053){if(_0x3295d5>=_0x573d32)_0x44d00d['add'](_0x50f342);}if(!_0x44d00d[_0x2f72af(0x7b)]&&_0x3a1053[_0x2f72af(0x7b)]){const _0x4931fc=rankedMarkets(_0x3a1053[_0x2f72af(0xaa)](),_0x3a1053,_0x4875ea)[0x0];if(_0x4931fc)_0x44d00d[_0x2f72af(0x78)](_0x4931fc);}const _0x38e408=new Map();for(const _0x13be54 of _0x46852e)_0x38e408[_0x2f72af(0x81)](String(_0x13be54['source']['id']),_0x13be54[_0x2f72af(0xa0)][_0x2f72af(0x77)]);const _0x43cec2=[..._0x5e6881[_0x2f72af(0xab)]()][_0x2f72af(0x97)](([_0x423ba1])=>!_0x44d00d['has'](_0x423ba1))[_0x2f72af(0x85)]((_0x5809f0,_0x5b7ea7)=>{const _0x112a1e=_0x2f72af,_0x2496ad=_0x5809f0[0x1][_0x112a1e(0xa9)]-_0x5b7ea7[0x1]['length'];if(_0x2496ad!==0x0)return _0x2496ad;return(_0x4875ea[_0x112a1e(0x8e)](_0x5809f0[0x0])||0x270f)-(_0x4875ea[_0x112a1e(0x8e)](_0x5b7ea7[0x0])||0x270f);});for(const [_0x17b1de,_0x1adac6]of _0x43cec2){const _0x22bc3a=new Map();let _0x5b0c67=!![];for(const _0x3f70b8 of _0x1adac6){const _0x2c8434=(_0x15995b[_0x2f72af(0x8e)](String(_0x3f70b8[_0x2f72af(0x7d)]['id']))||[_0x17b1de])[_0x2f72af(0x97)](_0x2914a=>_0x44d00d['has'](_0x2914a)),_0x3f006f=rankedMarkets(_0x2c8434,_0x3a1053,_0x4875ea)[0x0];if(!_0x3f006f){_0x5b0c67=![];break;}_0x22bc3a[_0x2f72af(0x81)](String(_0x3f70b8[_0x2f72af(0x7d)]['id']),_0x3f006f);}if(!_0x5b0c67){_0x44d00d['add'](_0x17b1de);continue;}for(const _0x357581 of _0x1adac6){const _0x2c6e95=String(_0x357581['source']['id']),_0x15042b=_0x22bc3a[_0x2f72af(0x8e)](_0x2c6e95);if(!_0x15042b||_0x15042b===_0x17b1de)continue;_0x38e408[_0x2f72af(0x81)](_0x2c6e95,_0x15042b),_0x3a1053[_0x2f72af(0x81)](_0x17b1de,Math['max'](0x0,(_0x3a1053[_0x2f72af(0x8e)](_0x17b1de)||0x0)-0x1)),_0x3a1053[_0x2f72af(0x81)](_0x15042b,(_0x3a1053[_0x2f72af(0x8e)](_0x15042b)||0x0)+0x1);}}return _0x46852e[_0x2f72af(0x91)](_0x16bc45=>{const _0x875a75=_0x2f72af,_0x4f3038=_0x38e408[_0x875a75(0x8e)](String(_0x16bc45['source']['id']))||_0x16bc45[_0x875a75(0xa0)][_0x875a75(0x77)];return _0x4f3038===_0x16bc45[_0x875a75(0xa0)]['market']?_0x16bc45:{'source':_0x16bc45[_0x875a75(0x7d)],'parsed':{..._0x16bc45[_0x875a75(0xa0)],'market':_0x4f3038}};});}function requiredMarkets(_0x34a259,_0x338eda,_0x4ce49a,_0x59a614,_0x58ffb4='',_0x412746=0x1){const _0x3024df=_0x302bd9,_0x25dc74=marketOrderMap(_0x338eda),_0x22565d=optimizeMarketAssignments(_0x34a259,_0x338eda,_0x4ce49a,_0x59a614,_0x58ffb4,_0x412746),_0x321e70=new Set(_0x22565d['map'](_0x4d4cfd=>_0x4d4cfd[_0x3024df(0xa0)][_0x3024df(0x77)])[_0x3024df(0x97)](_0x887f9e=>(0x0,parser_1[_0x3024df(0x9f)])(_0x887f9e)!==(0x0,parser_1[_0x3024df(0x9f)])(_0x59a614)));return[..._0x321e70]['sort']((_0x56203d,_0x90fa56)=>{const _0xadf982=_0x3024df,_0x4cdbbe=(_0x25dc74[_0xadf982(0x8e)](_0x56203d)||0x270f)-(_0x25dc74[_0xadf982(0x8e)](_0x90fa56)||0x270f);if(_0x4cdbbe!==0x0)return _0x4cdbbe;return _0x56203d['localeCompare'](_0x90fa56,'de',{'sensitivity':_0xadf982(0x84)});});}function planMarketHeaderAction(_0x4d517f,_0x9cd2fe,_0x1f181c,_0x5d8099,_0x136ae7){const _0x4bc1a8=_0x302bd9,_0x5af56e=new Set(_0x9cd2fe[_0x4bc1a8(0x91)](parser_1['normalize'])),_0xd84efa=new Map(),_0x3d0151=[];for(const _0x172bc8 of _0x4d517f){const _0x419245=String(_0x172bc8?.['value']||'')[_0x4bc1a8(0x90)](),_0x14bc4e=_0x419245[_0x4bc1a8(0x95)](HEADER_PATTERN);if(!_0x14bc4e?.[0x1])continue;const _0x432668=marketFromHeader(_0x419245,_0x1f181c);if(!_0x432668||(0x0,parser_1[_0x4bc1a8(0x9f)])(_0x432668)===(0x0,parser_1[_0x4bc1a8(0x9f)])(_0x5d8099)){_0x3d0151[_0x4bc1a8(0x79)]({'market':_0x14bc4e[0x1]['trim'](),'item':_0x172bc8});continue;}const _0x18fed9=(0x0,parser_1['normalize'])(_0x432668),_0xd2f2c=_0xd84efa[_0x4bc1a8(0x8e)](_0x18fed9)||{'market':_0x432668,'active':[],'completed':[]};if(_0x172bc8['completed']===![])_0xd2f2c['active']['push'](_0x172bc8);else _0xd2f2c['completed']['push'](_0x172bc8);_0xd84efa[_0x4bc1a8(0x81)](_0x18fed9,_0xd2f2c);}if(_0x3d0151[_0x4bc1a8(0xa9)]){const _0x51e7fc=_0x3d0151[0x0];return{'type':_0x4bc1a8(0xa7),'market':_0x51e7fc[_0x4bc1a8(0x77)],'id':String(_0x51e7fc['item']['id'])};}if(!_0x136ae7){for(const _0x426b56 of _0x1f181c){const _0x368fc2=_0xd84efa[_0x4bc1a8(0x8e)]((0x0,parser_1[_0x4bc1a8(0x9f)])(_0x426b56[_0x4bc1a8(0x89)])),_0x44f442=_0x368fc2?.[_0x4bc1a8(0x98)][0x0]||_0x368fc2?.[_0x4bc1a8(0x7e)][0x0];if(_0x44f442)return{'type':_0x4bc1a8(0xa7),'market':_0x368fc2?.['market']||_0x426b56[_0x4bc1a8(0x89)],'id':String(_0x44f442['id'])};}return null;}for(const _0x9223cd of _0x9cd2fe){const _0x29b8b3=(0x0,parser_1['normalize'])(_0x9223cd),_0x52cb88=_0xd84efa['get'](_0x29b8b3);if(_0x52cb88?.[_0x4bc1a8(0x98)][_0x4bc1a8(0xa9)]){if(_0x52cb88['completed'][_0x4bc1a8(0xa9)])return{'type':'delete','market':_0x9223cd,'id':String(_0x52cb88[_0x4bc1a8(0x7e)][0x0]['id'])};if(_0x52cb88['active'][_0x4bc1a8(0xa9)]>0x1)return{'type':'delete','market':_0x9223cd,'id':String(_0x52cb88[_0x4bc1a8(0x98)][0x1]['id'])};continue;}if(_0x52cb88?.['completed']['length'])return{'type':_0x4bc1a8(0xa7),'market':_0x9223cd,'id':String(_0x52cb88[_0x4bc1a8(0x7e)][0x0]['id'])};return{'type':_0x4bc1a8(0xa4),'market':_0x9223cd,'value':formatMarketHeader(_0x9223cd)};}for(const _0x1c212e of _0x1f181c){const _0x50fccc=(0x0,parser_1['normalize'])(_0x1c212e['name']);if((0x0,parser_1['normalize'])(_0x1c212e[_0x4bc1a8(0x89)])===(0x0,parser_1[_0x4bc1a8(0x9f)])(_0x5d8099)||_0x5af56e['has'](_0x50fccc))continue;const _0x4d0263=_0xd84efa['get'](_0x50fccc),_0x2f93e3=_0x4d0263?.[_0x4bc1a8(0x98)][0x0]||_0x4d0263?.[_0x4bc1a8(0x7e)][0x0];if(_0x2f93e3)return{'type':_0x4bc1a8(0xa7),'market':_0x1c212e[_0x4bc1a8(0x89)],'id':String(_0x2f93e3['id'])};}return null;}
@@ -1 +1 @@
1
- 'use strict';const _0x1e2d02=_0x118a;(function(_0x270d10,_0x5a03fb){const _0x5a0968=_0x118a,_0x33b233=_0x270d10();while(!![]){try{const _0x57ed54=-parseInt(_0x5a0968(0x145))/0x1*(parseInt(_0x5a0968(0x14e))/0x2)+parseInt(_0x5a0968(0x15e))/0x3*(parseInt(_0x5a0968(0x150))/0x4)+parseInt(_0x5a0968(0x14b))/0x5*(-parseInt(_0x5a0968(0x15f))/0x6)+-parseInt(_0x5a0968(0x14a))/0x7+-parseInt(_0x5a0968(0x157))/0x8+-parseInt(_0x5a0968(0x14f))/0x9*(parseInt(_0x5a0968(0x14c))/0xa)+parseInt(_0x5a0968(0x15c))/0xb*(parseInt(_0x5a0968(0x15b))/0xc);if(_0x57ed54===_0x5a03fb)break;else _0x33b233['push'](_0x33b233['shift']());}catch(_0x16f7ac){_0x33b233['push'](_0x33b233['shift']());}}}(_0x5e98,0x61c62));function _0x5e98(){const _0x2f6855=['27ETXtOZ','1018084fWVHsH','getMonth','max','getDate','compatibilityWrites','getFullYear','sortRuns','5545648ptZtNM','lastSortRun','object','padStart','12McqVMn','21859409ewMPOO','lastAlexaWrite','9VDoIgB','1823340QwNVqt','3rPnYDn','normalizeTrafficMetrics','alexaWrites','localChecks','__esModule','4211305ZGyvbJ','10TPTuJF','808030GDQvHb','date','136860ARbjXN'];_0x5e98=function(){return _0x2f6855;};return _0x5e98();}Object['defineProperty'](exports,_0x1e2d02(0x149),{'value':!![]}),exports['metricDate']=metricDate,exports['emptyTrafficMetrics']=emptyTrafficMetrics,exports[_0x1e2d02(0x146)]=normalizeTrafficMetrics;function metricDate(_0x4adf28=new Date()){const _0x152395=_0x1e2d02,_0x226113=_0x4adf28[_0x152395(0x155)](),_0x1aab7d=String(_0x4adf28[_0x152395(0x151)]()+0x1)[_0x152395(0x15a)](0x2,'0'),_0x2a3c79=String(_0x4adf28[_0x152395(0x153)]())['padStart'](0x2,'0');return _0x226113+'-'+_0x1aab7d+'-'+_0x2a3c79;}function _0x118a(_0x4a3b1c,_0x275ed9){_0x4a3b1c=_0x4a3b1c-0x145;const _0x5e98c3=_0x5e98();let _0x118ae3=_0x5e98c3[_0x4a3b1c];return _0x118ae3;}function emptyTrafficMetrics(_0x226f3c=new Date()){return{'date':metricDate(_0x226f3c),'localChecks':0x0,'plannedChanges':0x0,'sortRuns':0x0,'alexaWrites':0x0,'compatibilityWrites':0x0,'abortedRuns':0x0,'lastAlexaWrite':'','lastSortRun':''};}function normalizeTrafficMetrics(_0x28bf7d,_0x438cad=new Date()){const _0x5aa69b=_0x1e2d02,_0x433233=emptyTrafficMetrics(_0x438cad);if(!_0x28bf7d||typeof _0x28bf7d!==_0x5aa69b(0x159))return _0x433233;const _0x25e642=_0x28bf7d;if(String(_0x25e642[_0x5aa69b(0x14d)]||'')!==_0x433233[_0x5aa69b(0x14d)])return _0x433233;return{'date':_0x433233[_0x5aa69b(0x14d)],'localChecks':Math[_0x5aa69b(0x152)](0x0,Number(_0x25e642[_0x5aa69b(0x148)])||0x0),'plannedChanges':Math['max'](0x0,Number(_0x25e642['plannedChanges'])||0x0),'sortRuns':Math[_0x5aa69b(0x152)](0x0,Number(_0x25e642[_0x5aa69b(0x156)])||0x0),'alexaWrites':Math['max'](0x0,Number(_0x25e642[_0x5aa69b(0x147)])||0x0),'compatibilityWrites':Math['max'](0x0,Number(_0x25e642[_0x5aa69b(0x154)])||0x0),'abortedRuns':Math[_0x5aa69b(0x152)](0x0,Number(_0x25e642['abortedRuns'])||0x0),'lastAlexaWrite':String(_0x25e642[_0x5aa69b(0x15d)]||''),'lastSortRun':String(_0x25e642[_0x5aa69b(0x158)]||'')};}
1
+ 'use strict';function _0x1ba1(_0x2fcc09,_0x3c5828){_0x2fcc09=_0x2fcc09-0x92;const _0x4f567f=_0x4f56();let _0x1ba1c6=_0x4f567f[_0x2fcc09];return _0x1ba1c6;}const _0x575ff4=_0x1ba1;(function(_0x1be100,_0x530267){const _0x36d270=_0x1ba1,_0x3d633b=_0x1be100();while(!![]){try{const _0x56846e=-parseInt(_0x36d270(0xa8))/0x1*(-parseInt(_0x36d270(0x92))/0x2)+parseInt(_0x36d270(0x95))/0x3*(parseInt(_0x36d270(0x99))/0x4)+parseInt(_0x36d270(0xa9))/0x5+parseInt(_0x36d270(0xa0))/0x6*(parseInt(_0x36d270(0xa1))/0x7)+parseInt(_0x36d270(0xab))/0x8+-parseInt(_0x36d270(0x9d))/0x9+-parseInt(_0x36d270(0x9e))/0xa;if(_0x56846e===_0x530267)break;else _0x3d633b['push'](_0x3d633b['shift']());}catch(_0x492acd){_0x3d633b['push'](_0x3d633b['shift']());}}}(_0x4f56,0x66c00));Object[_0x575ff4(0x97)](exports,_0x575ff4(0x96),{'value':!![]}),exports[_0x575ff4(0xa7)]=metricDate,exports[_0x575ff4(0x93)]=emptyTrafficMetrics,exports['normalizeTrafficMetrics']=normalizeTrafficMetrics;function metricDate(_0x542d37=new Date()){const _0x3d5202=_0x575ff4,_0x32a150=_0x542d37[_0x3d5202(0x9c)](),_0x291f68=String(_0x542d37[_0x3d5202(0x9f)]()+0x1)['padStart'](0x2,'0'),_0x5d8997=String(_0x542d37['getDate']())[_0x3d5202(0xa6)](0x2,'0');return _0x32a150+'-'+_0x291f68+'-'+_0x5d8997;}function _0x4f56(){const _0x1f3b66=['lastSortRun','alexaWrites','padStart','metricDate','1iQeOfe','2917340eheANi','sortRuns','2887616PQRuoP','227362Utinkd','emptyTrafficMetrics','date','5334YySPNA','__esModule','defineProperty','compatibilityWrites','208HbWTCZ','plannedChanges','max','getFullYear','6341346evYZJI','6257540kkoRjX','getMonth','22110TSEvkg','1141hbAKDq','localChecks','lastAlexaWrite'];_0x4f56=function(){return _0x1f3b66;};return _0x4f56();}function emptyTrafficMetrics(_0x4437dd=new Date()){return{'date':metricDate(_0x4437dd),'localChecks':0x0,'plannedChanges':0x0,'sortRuns':0x0,'alexaWrites':0x0,'compatibilityWrites':0x0,'abortedRuns':0x0,'lastAlexaWrite':'','lastSortRun':''};}function normalizeTrafficMetrics(_0x350bfe,_0x20965a=new Date()){const _0x3986fb=_0x575ff4,_0x47829e=emptyTrafficMetrics(_0x20965a);if(!_0x350bfe||typeof _0x350bfe!=='object')return _0x47829e;const _0x22c77b=_0x350bfe;if(String(_0x22c77b[_0x3986fb(0x94)]||'')!==_0x47829e['date'])return _0x47829e;return{'date':_0x47829e['date'],'localChecks':Math[_0x3986fb(0x9b)](0x0,Number(_0x22c77b[_0x3986fb(0xa2)])||0x0),'plannedChanges':Math['max'](0x0,Number(_0x22c77b[_0x3986fb(0x9a)])||0x0),'sortRuns':Math['max'](0x0,Number(_0x22c77b[_0x3986fb(0xaa)])||0x0),'alexaWrites':Math[_0x3986fb(0x9b)](0x0,Number(_0x22c77b[_0x3986fb(0xa5)])||0x0),'compatibilityWrites':Math['max'](0x0,Number(_0x22c77b[_0x3986fb(0x98)])||0x0),'abortedRuns':Math[_0x3986fb(0x9b)](0x0,Number(_0x22c77b['abortedRuns'])||0x0),'lastAlexaWrite':String(_0x22c77b[_0x3986fb(0xa3)]||''),'lastSortRun':String(_0x22c77b[_0x3986fb(0xa4)]||'')};}
@@ -1 +1 @@
1
- 'use strict';(function(_0x377ad0,_0x5a898c){var _0x5a29be=_0x1428,_0x244154=_0x377ad0();while(!![]){try{var _0xb98b90=parseInt(_0x5a29be(0xa4))/0x1+parseInt(_0x5a29be(0xa3))/0x2*(parseInt(_0x5a29be(0x9d))/0x3)+-parseInt(_0x5a29be(0x9c))/0x4*(parseInt(_0x5a29be(0xa0))/0x5)+parseInt(_0x5a29be(0x9b))/0x6*(parseInt(_0x5a29be(0x9e))/0x7)+-parseInt(_0x5a29be(0xa2))/0x8*(parseInt(_0x5a29be(0x9f))/0x9)+-parseInt(_0x5a29be(0xa1))/0xa+-parseInt(_0x5a29be(0x9a))/0xb;if(_0xb98b90===_0x5a898c)break;else _0x244154['push'](_0x244154['shift']());}catch(_0x194d41){_0x244154['push'](_0x244154['shift']());}}}(_0x4c77,0x8b115));function _0x1428(_0x516405,_0x56dc15){_0x516405=_0x516405-0x9a;var _0x4c77cc=_0x4c77();var _0x1428e8=_0x4c77cc[_0x516405];return _0x1428e8;}function _0x4c77(){var _0x1f1faf=['32LxXJDw','2560254HweUXJ','137298BCLcEU','108uehUsT','221490BmPnSc','2567450OnwHcj','339208axjnBE','2JzwSoe','876836cwMgNu','5841462zxMCwe','150bZjHgG'];_0x4c77=function(){return _0x1f1faf;};return _0x4c77();}Object['defineProperty'](exports,'__esModule',{'value':!![]});
1
+ 'use strict';function _0xce8a(_0xe17ef5,_0x222287){_0xe17ef5=_0xe17ef5-0x16a;var _0x4fb81e=_0x4fb8();var _0xce8a59=_0x4fb81e[_0xe17ef5];return _0xce8a59;}function _0x4fb8(){var _0x41c149=['1511209sVNWUV','defineProperty','11178871wxNGUi','10ucPcBW','6658736eVnFRW','16wBKsdx','35iWxMkr','4777668YJdnfr','946446fdXmWS','62943CibZFG','70WQujvl','1270665rPADMT'];_0x4fb8=function(){return _0x41c149;};return _0x4fb8();}var _0x58abf9=_0xce8a;(function(_0x144237,_0x1f39b6){var _0x55af36=_0xce8a,_0x77ed8=_0x144237();while(!![]){try{var _0x4d64ae=parseInt(_0x55af36(0x171))/0x1+parseInt(_0x55af36(0x170))/0x2*(-parseInt(_0x55af36(0x16f))/0x3)+-parseInt(_0x55af36(0x16a))/0x4+parseInt(_0x55af36(0x16c))/0x5*(parseInt(_0x55af36(0x16e))/0x6)+-parseInt(_0x55af36(0x172))/0x7*(-parseInt(_0x55af36(0x16b))/0x8)+-parseInt(_0x55af36(0x16d))/0x9+parseInt(_0x55af36(0x175))/0xa*(parseInt(_0x55af36(0x174))/0xb);if(_0x4d64ae===_0x1f39b6)break;else _0x77ed8['push'](_0x77ed8['shift']());}catch(_0x412750){_0x77ed8['push'](_0x77ed8['shift']());}}}(_0x4fb8,0xda058));Object[_0x58abf9(0x173)](exports,'__esModule',{'value':!![]});