@nice2dev/i18n 1.0.19 → 1.0.20
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/dist/index.cjs +9 -9
- package/dist/index.mjs +973 -607
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as B } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as
|
|
2
|
+
import { useMemo as k, useContext as N, createContext as I, useEffect as L, useState as P, useCallback as ee } from "react";
|
|
3
3
|
const j = [
|
|
4
4
|
"en",
|
|
5
5
|
"pl",
|
|
@@ -40,7 +40,7 @@ const j = [
|
|
|
40
40
|
// Filipino
|
|
41
41
|
"ms"
|
|
42
42
|
// Malay
|
|
43
|
-
],
|
|
43
|
+
], ye = {
|
|
44
44
|
// ── Global / Generic ──
|
|
45
45
|
ok: "OK",
|
|
46
46
|
cancel: "Cancel",
|
|
@@ -120,6 +120,76 @@ const j = [
|
|
|
120
120
|
"nav.notifications": "Notifications",
|
|
121
121
|
"nav.profile": "Profile",
|
|
122
122
|
"nav.logout": "Log out",
|
|
123
|
+
"nav.help": "Help",
|
|
124
|
+
"navShell.home.title": "Home",
|
|
125
|
+
"navShell.help.next": "Next",
|
|
126
|
+
"navShell.help.back": "Back",
|
|
127
|
+
"navShell.help.finish": "Finish",
|
|
128
|
+
"navShell.help.skip": "Skip",
|
|
129
|
+
"navShell.help.stepOf": "of",
|
|
130
|
+
"navShell.help.topNav.title": "Top navigation",
|
|
131
|
+
"navShell.help.topNav.body": "Use the top bar to switch workspaces, search, change theme or language, and open notifications.",
|
|
132
|
+
"navShell.help.sidebar.title": "Sidebar",
|
|
133
|
+
"navShell.help.sidebar.body": "Browse the available views grouped by section. Pick a view to open it in a new tab.",
|
|
134
|
+
"navShell.help.tabs.title": "Tabs",
|
|
135
|
+
"navShell.help.tabs.body": "Each open view lives in its own tab. Pin frequently used ones and right-click for more actions.",
|
|
136
|
+
"navShell.help.content.title": "Workspace",
|
|
137
|
+
"navShell.help.content.body": "The main area shows the active view. Switching tabs or sidebar entries swaps the content here.",
|
|
138
|
+
"navShell.home.subtitle": "Pick up where you left off.",
|
|
139
|
+
"navShell.home.empty": "Open a view from the sidebar or the tabs above to fill your workspace.",
|
|
140
|
+
"navShell.home.greeting.morning": "Good morning",
|
|
141
|
+
"navShell.home.greeting.afternoon": "Good afternoon",
|
|
142
|
+
"navShell.home.greeting.evening": "Good evening",
|
|
143
|
+
"navShell.home.greeting.night": "Hello",
|
|
144
|
+
"navShell.home.sections.openTabs": "Open now",
|
|
145
|
+
"navShell.home.sections.shortcuts": "Your shortcuts",
|
|
146
|
+
"navShell.home.sections.allViews": "All views",
|
|
147
|
+
// ── Sidebar context menu ──
|
|
148
|
+
"sidebar.menu.open": "Open",
|
|
149
|
+
"sidebar.menu.openNewTab": "Open in new tab",
|
|
150
|
+
"sidebar.menu.openBrowserTab": "Open in new browser tab",
|
|
151
|
+
"sidebar.menu.pinFavorite": "Add to favorites",
|
|
152
|
+
"sidebar.menu.unpinFavorite": "Remove from favorites",
|
|
153
|
+
"sidebar.menu.hide": "Hide",
|
|
154
|
+
"sidebar.menu.copyLink": "Copy link",
|
|
155
|
+
"sidebar.menu.pinSource": "Pin source",
|
|
156
|
+
"sidebar.menu.unpinSource": "Unpin source",
|
|
157
|
+
"sidebar.menu.hideSource": "Hide source",
|
|
158
|
+
// ── Sidebar preferences (categories + pages) ──
|
|
159
|
+
"sidebar.prefs.general": "General",
|
|
160
|
+
"sidebar.prefs.display": "Display",
|
|
161
|
+
"sidebar.prefs.order": "Order",
|
|
162
|
+
"sidebar.prefs.hidden": "Hidden items",
|
|
163
|
+
"sidebar.prefs.reset": "Reset",
|
|
164
|
+
"sidebar.prefs.general.title": "General",
|
|
165
|
+
"sidebar.prefs.general.desc": "Behavior of the sidebar tree and what a left click does.",
|
|
166
|
+
"sidebar.prefs.general.autoExpand": "Auto-expand all branches",
|
|
167
|
+
"sidebar.prefs.general.autoExpandHint": "When off, branches start collapsed and remember the last state per session.",
|
|
168
|
+
"sidebar.prefs.general.leftClickBehavior": "Left-click behavior",
|
|
169
|
+
"sidebar.prefs.general.focusExisting": "Focus the existing tab",
|
|
170
|
+
"sidebar.prefs.general.openNew": "Always open in a new tab",
|
|
171
|
+
"sidebar.prefs.general.leftClickHint": 'Right-click → "Open in new tab" is always available regardless of this setting.',
|
|
172
|
+
"sidebar.prefs.display.title": "Display",
|
|
173
|
+
"sidebar.prefs.display.desc": "Which modes appear in the strip and how deep the tree goes per mode.",
|
|
174
|
+
"sidebar.prefs.display.enableModeIcons": "Show mode switcher icons",
|
|
175
|
+
"sidebar.prefs.display.enabledModes": "Visible modes",
|
|
176
|
+
"sidebar.prefs.display.preferencesAlwaysOn": "Preferences is always shown.",
|
|
177
|
+
"sidebar.prefs.display.maxDepth": "Tree depth per mode",
|
|
178
|
+
"sidebar.prefs.order.title": "Order items",
|
|
179
|
+
"sidebar.prefs.order.desc": "Drag items to reorder how they appear in the selected mode.",
|
|
180
|
+
"sidebar.prefs.order.pickMode": "Mode",
|
|
181
|
+
"sidebar.prefs.order.empty": "No reorderable items in this mode.",
|
|
182
|
+
"sidebar.prefs.order.resetMode": "Reset to default order",
|
|
183
|
+
"sidebar.prefs.hidden.title": "Hidden items",
|
|
184
|
+
"sidebar.prefs.hidden.desc": "Items you hid from the tree. Restore them to bring them back.",
|
|
185
|
+
"sidebar.prefs.hidden.empty": "Nothing hidden yet.",
|
|
186
|
+
"sidebar.prefs.hidden.restore": "Restore",
|
|
187
|
+
"sidebar.prefs.reset.title": "Reset",
|
|
188
|
+
"sidebar.prefs.reset.desc": "Clear every customisation and restore the original sidebar layout.",
|
|
189
|
+
"sidebar.prefs.reset.button": "Reset all preferences",
|
|
190
|
+
"sidebar.prefs.reset.confirm": "This will erase your favorites, hidden items, custom order, and all other sidebar preferences. This cannot be undone.",
|
|
191
|
+
"sidebar.prefs.reset.confirmYes": "Yes, reset everything",
|
|
192
|
+
"sidebar.prefs.reset.cancel": "Cancel",
|
|
123
193
|
// ── Carousel ──
|
|
124
194
|
"carousel.prev": "Previous slide",
|
|
125
195
|
"carousel.next": "Next slide",
|
|
@@ -600,8 +670,121 @@ const j = [
|
|
|
600
670
|
"noCode.codePreview.language": "Language",
|
|
601
671
|
"noCode.codePreview.format": "Format Code",
|
|
602
672
|
"noCode.codePreview.linesChanged": "Lines Changed",
|
|
603
|
-
"noCode.codePreview.noChanges": "No Changes"
|
|
604
|
-
|
|
673
|
+
"noCode.codePreview.noChanges": "No Changes",
|
|
674
|
+
// ── Vector Editor ──
|
|
675
|
+
"vectorEditor.menu.file": "File",
|
|
676
|
+
"vectorEditor.menu.edit": "Edit",
|
|
677
|
+
"vectorEditor.menu.object": "Object",
|
|
678
|
+
"vectorEditor.menu.path": "Path",
|
|
679
|
+
"vectorEditor.menu.view": "View",
|
|
680
|
+
"vectorEditor.menu.newCanvas": "New canvas",
|
|
681
|
+
"vectorEditor.menu.openSvg": "Open SVG…",
|
|
682
|
+
"vectorEditor.menu.pasteSvg": "Paste SVG…",
|
|
683
|
+
"vectorEditor.menu.exportSvg": "Export SVG",
|
|
684
|
+
"vectorEditor.menu.exportPng": "Export PNG",
|
|
685
|
+
"vectorEditor.menu.exportJpg": "Export JPG",
|
|
686
|
+
"vectorEditor.menu.exportWebp": "Export WebP",
|
|
687
|
+
"vectorEditor.menu.exportBmp": "Export BMP",
|
|
688
|
+
"vectorEditor.menu.saveToLibrary": "📦 Save to Library",
|
|
689
|
+
"vectorEditor.menu.exportIconSnippet": "📋 Export Icon Snippet",
|
|
690
|
+
"vectorEditor.menu.exportIcon": "📋 Export Icon",
|
|
691
|
+
"vectorEditor.menu.undo": "Undo (Ctrl+Z)",
|
|
692
|
+
"vectorEditor.menu.redo": "Redo (Ctrl+Y)",
|
|
693
|
+
"vectorEditor.menu.copy": "Copy (Ctrl+C)",
|
|
694
|
+
"vectorEditor.menu.paste": "Paste (Ctrl+V)",
|
|
695
|
+
"vectorEditor.menu.duplicate": "Duplicate (Ctrl+D)",
|
|
696
|
+
"vectorEditor.menu.delete": "Delete (Del)",
|
|
697
|
+
"vectorEditor.menu.bringToFront": "Bring to Front",
|
|
698
|
+
"vectorEditor.menu.sendToBack": "Send to Back",
|
|
699
|
+
"vectorEditor.menu.flipH": "Flip Horizontal",
|
|
700
|
+
"vectorEditor.menu.flipV": "Flip Vertical",
|
|
701
|
+
"vectorEditor.menu.alignLeft": "Align Left",
|
|
702
|
+
"vectorEditor.menu.alignCenter": "Align Center",
|
|
703
|
+
"vectorEditor.menu.alignRight": "Align Right",
|
|
704
|
+
"vectorEditor.menu.union": "Union (∪)",
|
|
705
|
+
"vectorEditor.menu.subtract": "Subtract (−)",
|
|
706
|
+
"vectorEditor.menu.intersect": "Intersect (∩)",
|
|
707
|
+
"vectorEditor.menu.exclude": "Exclude (⊕)",
|
|
708
|
+
"vectorEditor.menu.outlineStroke": "Outline stroke",
|
|
709
|
+
"vectorEditor.menu.snapToGrid": "Snap to grid",
|
|
710
|
+
"vectorEditor.menu.snap": "Snap",
|
|
711
|
+
"vectorEditor.menu.secondShape": "2nd Shape",
|
|
712
|
+
"vectorEditor.tabs.properties": "Properties",
|
|
713
|
+
"vectorEditor.tabs.layers": "Layers",
|
|
714
|
+
"vectorEditor.tabs.library": "Library",
|
|
715
|
+
"vectorEditor.tabs.timeline": "Timeline",
|
|
716
|
+
"vectorEditor.timeline.preset": "Preset",
|
|
717
|
+
"vectorEditor.timeline.duration": "Duration (ms)",
|
|
718
|
+
"vectorEditor.timeline.repeat": "Repeat",
|
|
719
|
+
"vectorEditor.timeline.direction": "Direction",
|
|
720
|
+
"vectorEditor.timeline.remove": "Remove animation",
|
|
721
|
+
"vectorEditor.timeline.play": "Play",
|
|
722
|
+
"vectorEditor.timeline.pause": "Pause",
|
|
723
|
+
"vectorEditor.timeline.stop": "Stop",
|
|
724
|
+
"vectorEditor.timeline.copyCss": "Copy CSS",
|
|
725
|
+
"vectorEditor.timeline.keyframes": "Keyframes",
|
|
726
|
+
"vectorEditor.timeline.addKeyframe": "+ Add keyframe",
|
|
727
|
+
"vectorEditor.timeline.noSelection": "Select a shape to animate.",
|
|
728
|
+
"vectorEditor.timeline.animationTitle": "Animation",
|
|
729
|
+
"vectorEditor.timeline.playbackTitle": "Playback",
|
|
730
|
+
"vectorEditor.timeline.attachHint": "Select a shape to attach an animation.",
|
|
731
|
+
"vectorEditor.timeline.playLabel": "▶ Play",
|
|
732
|
+
"vectorEditor.timeline.pauseLabel": "⏸ Pause",
|
|
733
|
+
"vectorEditor.timeline.stopLabel": "⏹ Stop",
|
|
734
|
+
"vectorEditor.timeline.copyCssKeyframes": "📋 Copy CSS keyframes",
|
|
735
|
+
"vectorEditor.timeline.tLabel": "t",
|
|
736
|
+
"vectorEditor.layers.empty": "No layers yet. Use the tools to draw, or insert from the Library tab.",
|
|
737
|
+
"vectorEditor.layers.moveUp": "Move up",
|
|
738
|
+
"vectorEditor.layers.moveDown": "Move down",
|
|
739
|
+
"vectorEditor.library.passProp": "Pass a library prop to NiceVectorEditor to populate this tab with insertable icons.",
|
|
740
|
+
"vectorEditor.statusBar.zoom": "Zoom",
|
|
741
|
+
"vectorEditor.statusBar.shapes": "shape(s)",
|
|
742
|
+
"vectorEditor.statusBar.selected": "Selected",
|
|
743
|
+
"vectorEditor.statusBar.snap": "Snap",
|
|
744
|
+
"vectorEditor.library.empty": "No icons in library.",
|
|
745
|
+
"vectorEditor.snippet.title": "✅ Icon snippet copied to clipboard",
|
|
746
|
+
"vectorEditor.snippet.pasteHint": "Paste into",
|
|
747
|
+
"vectorEditor.snippet.copyAgain": "Copy again",
|
|
748
|
+
"vectorEditor.snippet.close": "Close",
|
|
749
|
+
"vectorEditor.properties.appearance": "Appearance",
|
|
750
|
+
"vectorEditor.properties.fill": "Fill",
|
|
751
|
+
"vectorEditor.properties.solid": "Solid",
|
|
752
|
+
"vectorEditor.properties.gradient": "Gradient",
|
|
753
|
+
"vectorEditor.properties.hideEditor": "▼ Hide Editor",
|
|
754
|
+
"vectorEditor.properties.editGradient": "► Edit Gradient",
|
|
755
|
+
"vectorEditor.properties.type": "Type",
|
|
756
|
+
"vectorEditor.properties.linear": "Linear",
|
|
757
|
+
"vectorEditor.properties.radial": "Radial",
|
|
758
|
+
"vectorEditor.properties.angle": "Angle",
|
|
759
|
+
"vectorEditor.properties.cx": "CX",
|
|
760
|
+
"vectorEditor.properties.cy": "CY",
|
|
761
|
+
"vectorEditor.properties.r": "R",
|
|
762
|
+
"vectorEditor.properties.colorStops": "Color Stops:",
|
|
763
|
+
"vectorEditor.properties.addStop": "+ Add Stop",
|
|
764
|
+
"vectorEditor.properties.removeStop": "- Remove",
|
|
765
|
+
"vectorEditor.properties.stroke": "Stroke",
|
|
766
|
+
"vectorEditor.properties.width": "Width",
|
|
767
|
+
"vectorEditor.properties.opacity": "Opacity",
|
|
768
|
+
"vectorEditor.properties.rotation": "Rotation",
|
|
769
|
+
"vectorEditor.properties.toolOptions": "Tool Options",
|
|
770
|
+
"vectorEditor.properties.radius": "Radius",
|
|
771
|
+
"vectorEditor.properties.sides": "Sides",
|
|
772
|
+
"vectorEditor.properties.points": "Points",
|
|
773
|
+
"vectorEditor.properties.innerR": "Inner R",
|
|
774
|
+
"vectorEditor.properties.size": "Size",
|
|
775
|
+
"vectorEditor.properties.font": "Font",
|
|
776
|
+
"vectorEditor.properties.grid": "Grid",
|
|
777
|
+
"vectorEditor.properties.transform": "Transform",
|
|
778
|
+
"vectorEditor.properties.x": "X",
|
|
779
|
+
"vectorEditor.properties.y": "Y",
|
|
780
|
+
"vectorEditor.properties.w": "W",
|
|
781
|
+
"vectorEditor.properties.h": "H",
|
|
782
|
+
"vectorEditor.layers.title": "Layers",
|
|
783
|
+
"vectorEditor.layers.show": "Show",
|
|
784
|
+
"vectorEditor.layers.hide": "Hide",
|
|
785
|
+
"vectorEditor.layers.lock": "Lock",
|
|
786
|
+
"vectorEditor.layers.unlock": "Unlock"
|
|
787
|
+
}, Ce = {
|
|
605
788
|
ok: "OK",
|
|
606
789
|
cancel: "Anuluj",
|
|
607
790
|
save: "Zapisz",
|
|
@@ -679,6 +862,76 @@ const j = [
|
|
|
679
862
|
"nav.notifications": "Powiadomienia",
|
|
680
863
|
"nav.profile": "Profil",
|
|
681
864
|
"nav.logout": "Wyloguj się",
|
|
865
|
+
"nav.help": "Pomoc",
|
|
866
|
+
"navShell.home.title": "Pulpit",
|
|
867
|
+
"navShell.help.next": "Dalej",
|
|
868
|
+
"navShell.help.back": "Wstecz",
|
|
869
|
+
"navShell.help.finish": "Zakończ",
|
|
870
|
+
"navShell.help.skip": "Pomiń",
|
|
871
|
+
"navShell.help.stepOf": "z",
|
|
872
|
+
"navShell.help.topNav.title": "Górny pasek",
|
|
873
|
+
"navShell.help.topNav.body": "Z górnego paska zmienisz workspace, wyszukasz treści, zmienisz motyw lub język i sprawdzisz powiadomienia.",
|
|
874
|
+
"navShell.help.sidebar.title": "Panel boczny",
|
|
875
|
+
"navShell.help.sidebar.body": "Przeglądaj dostępne widoki pogrupowane w sekcje. Wybierz widok, aby otworzyć go w nowej karcie.",
|
|
876
|
+
"navShell.help.tabs.title": "Karty",
|
|
877
|
+
"navShell.help.tabs.body": "Każdy otwarty widok ma własną kartę. Przypnij te najczęściej używane, a prawym przyciskiem otworzysz dodatkowe akcje.",
|
|
878
|
+
"navShell.help.content.title": "Obszar roboczy",
|
|
879
|
+
"navShell.help.content.body": "Tutaj wyświetla się aktywny widok. Zmiana karty lub pozycji w panelu bocznym podmienia zawartość w tym miejscu.",
|
|
880
|
+
"navShell.home.subtitle": "Wróć tam, gdzie skończyłeś.",
|
|
881
|
+
"navShell.home.empty": "Otwórz widok z panelu bocznego lub kart powyżej, aby wypełnić obszar roboczy.",
|
|
882
|
+
"navShell.home.greeting.morning": "Dzień dobry",
|
|
883
|
+
"navShell.home.greeting.afternoon": "Miłego popołudnia",
|
|
884
|
+
"navShell.home.greeting.evening": "Dobry wieczór",
|
|
885
|
+
"navShell.home.greeting.night": "Witaj",
|
|
886
|
+
"navShell.home.sections.openTabs": "Otwarte teraz",
|
|
887
|
+
"navShell.home.sections.shortcuts": "Twoje skróty",
|
|
888
|
+
"navShell.home.sections.allViews": "Wszystkie widoki",
|
|
889
|
+
// ── Sidebar context menu ──
|
|
890
|
+
"sidebar.menu.open": "Otwórz",
|
|
891
|
+
"sidebar.menu.openNewTab": "Otwórz w nowej karcie",
|
|
892
|
+
"sidebar.menu.openBrowserTab": "Otwórz w nowej karcie przeglądarki",
|
|
893
|
+
"sidebar.menu.pinFavorite": "Dodaj do ulubionych",
|
|
894
|
+
"sidebar.menu.unpinFavorite": "Usuń z ulubionych",
|
|
895
|
+
"sidebar.menu.hide": "Ukryj",
|
|
896
|
+
"sidebar.menu.copyLink": "Kopiuj link",
|
|
897
|
+
"sidebar.menu.pinSource": "Przypnij źródło",
|
|
898
|
+
"sidebar.menu.unpinSource": "Odepnij źródło",
|
|
899
|
+
"sidebar.menu.hideSource": "Ukryj źródło",
|
|
900
|
+
// ── Sidebar preferences (categories + pages) ──
|
|
901
|
+
"sidebar.prefs.general": "Ogólne",
|
|
902
|
+
"sidebar.prefs.display": "Wygląd",
|
|
903
|
+
"sidebar.prefs.order": "Kolejność",
|
|
904
|
+
"sidebar.prefs.hidden": "Ukryte elementy",
|
|
905
|
+
"sidebar.prefs.reset": "Reset",
|
|
906
|
+
"sidebar.prefs.general.title": "Ogólne",
|
|
907
|
+
"sidebar.prefs.general.desc": "Zachowanie drzewa nawigacji i to, co robi lewy klik.",
|
|
908
|
+
"sidebar.prefs.general.autoExpand": "Rozwijaj wszystkie gałęzie",
|
|
909
|
+
"sidebar.prefs.general.autoExpandHint": "Po wyłączeniu gałęzie startują zwinięte i zapamiętują ostatni stan sesji.",
|
|
910
|
+
"sidebar.prefs.general.leftClickBehavior": "Zachowanie lewego kliku",
|
|
911
|
+
"sidebar.prefs.general.focusExisting": "Aktywuj istniejącą kartę",
|
|
912
|
+
"sidebar.prefs.general.openNew": "Zawsze otwórz w nowej karcie",
|
|
913
|
+
"sidebar.prefs.general.leftClickHint": 'Prawy klik → „Otwórz w nowej karcie" jest zawsze dostępny, niezależnie od tego ustawienia.',
|
|
914
|
+
"sidebar.prefs.display.title": "Wygląd",
|
|
915
|
+
"sidebar.prefs.display.desc": "Które tryby pokazują się w pasku i jak głębokie ma być drzewo w każdym trybie.",
|
|
916
|
+
"sidebar.prefs.display.enableModeIcons": "Pokaż ikony przełącznika trybów",
|
|
917
|
+
"sidebar.prefs.display.enabledModes": "Widoczne tryby",
|
|
918
|
+
"sidebar.prefs.display.preferencesAlwaysOn": "Preferencje są zawsze widoczne.",
|
|
919
|
+
"sidebar.prefs.display.maxDepth": "Głębokość drzewa per tryb",
|
|
920
|
+
"sidebar.prefs.order.title": "Kolejność elementów",
|
|
921
|
+
"sidebar.prefs.order.desc": "Przeciągnij pozycje, żeby zmienić ich kolejność w wybranym trybie.",
|
|
922
|
+
"sidebar.prefs.order.pickMode": "Tryb",
|
|
923
|
+
"sidebar.prefs.order.empty": "Brak elementów do uporządkowania w tym trybie.",
|
|
924
|
+
"sidebar.prefs.order.resetMode": "Przywróć domyślną kolejność",
|
|
925
|
+
"sidebar.prefs.hidden.title": "Ukryte elementy",
|
|
926
|
+
"sidebar.prefs.hidden.desc": "Elementy, które ukryłeś z drzewa. Przywróć, żeby wróciły.",
|
|
927
|
+
"sidebar.prefs.hidden.empty": "Nic jeszcze nie zostało ukryte.",
|
|
928
|
+
"sidebar.prefs.hidden.restore": "Przywróć",
|
|
929
|
+
"sidebar.prefs.reset.title": "Reset",
|
|
930
|
+
"sidebar.prefs.reset.desc": "Wyczyść wszystkie ustawienia i przywróć oryginalny układ panelu bocznego.",
|
|
931
|
+
"sidebar.prefs.reset.button": "Zresetuj wszystkie preferencje",
|
|
932
|
+
"sidebar.prefs.reset.confirm": "To usunie ulubione, ukryte elementy, własną kolejność i wszystkie inne preferencje panelu bocznego. Tej operacji nie da się cofnąć.",
|
|
933
|
+
"sidebar.prefs.reset.confirmYes": "Tak, resetuj wszystko",
|
|
934
|
+
"sidebar.prefs.reset.cancel": "Anuluj",
|
|
682
935
|
"carousel.prev": "Poprzedni slajd",
|
|
683
936
|
"carousel.next": "Następny slajd",
|
|
684
937
|
"carousel.slide": "Slajd",
|
|
@@ -1122,7 +1375,120 @@ const j = [
|
|
|
1122
1375
|
"noCode.codePreview.language": "Język",
|
|
1123
1376
|
"noCode.codePreview.format": "Formatuj kod",
|
|
1124
1377
|
"noCode.codePreview.linesChanged": "Zmienione linie",
|
|
1125
|
-
"noCode.codePreview.noChanges": "Brak zmian"
|
|
1378
|
+
"noCode.codePreview.noChanges": "Brak zmian",
|
|
1379
|
+
// ── Edytor wektorowy ──
|
|
1380
|
+
"vectorEditor.menu.file": "Plik",
|
|
1381
|
+
"vectorEditor.menu.edit": "Edycja",
|
|
1382
|
+
"vectorEditor.menu.object": "Obiekt",
|
|
1383
|
+
"vectorEditor.menu.path": "Ścieżka",
|
|
1384
|
+
"vectorEditor.menu.view": "Widok",
|
|
1385
|
+
"vectorEditor.menu.newCanvas": "Nowy obszar",
|
|
1386
|
+
"vectorEditor.menu.openSvg": "Otwórz SVG…",
|
|
1387
|
+
"vectorEditor.menu.pasteSvg": "Wklej SVG…",
|
|
1388
|
+
"vectorEditor.menu.exportSvg": "Eksportuj SVG",
|
|
1389
|
+
"vectorEditor.menu.exportPng": "Eksportuj PNG",
|
|
1390
|
+
"vectorEditor.menu.exportJpg": "Eksportuj JPG",
|
|
1391
|
+
"vectorEditor.menu.exportWebp": "Eksportuj WebP",
|
|
1392
|
+
"vectorEditor.menu.exportBmp": "Eksportuj BMP",
|
|
1393
|
+
"vectorEditor.menu.saveToLibrary": "📦 Zapisz do biblioteki",
|
|
1394
|
+
"vectorEditor.menu.exportIconSnippet": "📋 Eksportuj snippet ikony",
|
|
1395
|
+
"vectorEditor.menu.exportIcon": "📋 Eksportuj ikonę",
|
|
1396
|
+
"vectorEditor.menu.undo": "Cofnij (Ctrl+Z)",
|
|
1397
|
+
"vectorEditor.menu.redo": "Ponów (Ctrl+Y)",
|
|
1398
|
+
"vectorEditor.menu.copy": "Kopiuj (Ctrl+C)",
|
|
1399
|
+
"vectorEditor.menu.paste": "Wklej (Ctrl+V)",
|
|
1400
|
+
"vectorEditor.menu.duplicate": "Duplikuj (Ctrl+D)",
|
|
1401
|
+
"vectorEditor.menu.delete": "Usuń (Del)",
|
|
1402
|
+
"vectorEditor.menu.bringToFront": "Przenieś na wierzch",
|
|
1403
|
+
"vectorEditor.menu.sendToBack": "Przenieś na spód",
|
|
1404
|
+
"vectorEditor.menu.flipH": "Odbij poziomo",
|
|
1405
|
+
"vectorEditor.menu.flipV": "Odbij pionowo",
|
|
1406
|
+
"vectorEditor.menu.alignLeft": "Wyrównaj do lewej",
|
|
1407
|
+
"vectorEditor.menu.alignCenter": "Wyrównaj do środka",
|
|
1408
|
+
"vectorEditor.menu.alignRight": "Wyrównaj do prawej",
|
|
1409
|
+
"vectorEditor.menu.union": "Suma (∪)",
|
|
1410
|
+
"vectorEditor.menu.subtract": "Różnica (−)",
|
|
1411
|
+
"vectorEditor.menu.intersect": "Część wspólna (∩)",
|
|
1412
|
+
"vectorEditor.menu.exclude": "Wykluczenie (⊕)",
|
|
1413
|
+
"vectorEditor.menu.outlineStroke": "Zamień obrys na kształt",
|
|
1414
|
+
"vectorEditor.menu.snapToGrid": "Przyciągaj do siatki",
|
|
1415
|
+
"vectorEditor.menu.snap": "Siatka",
|
|
1416
|
+
"vectorEditor.menu.secondShape": "2-gi kształt",
|
|
1417
|
+
"vectorEditor.tabs.properties": "Właściwości",
|
|
1418
|
+
"vectorEditor.tabs.layers": "Warstwy",
|
|
1419
|
+
"vectorEditor.tabs.library": "Biblioteka",
|
|
1420
|
+
"vectorEditor.tabs.timeline": "Oś czasu",
|
|
1421
|
+
"vectorEditor.timeline.preset": "Preset",
|
|
1422
|
+
"vectorEditor.timeline.duration": "Czas (ms)",
|
|
1423
|
+
"vectorEditor.timeline.repeat": "Powtórzenia",
|
|
1424
|
+
"vectorEditor.timeline.direction": "Kierunek",
|
|
1425
|
+
"vectorEditor.timeline.remove": "Usuń animację",
|
|
1426
|
+
"vectorEditor.timeline.play": "Odtwórz",
|
|
1427
|
+
"vectorEditor.timeline.pause": "Pauza",
|
|
1428
|
+
"vectorEditor.timeline.stop": "Stop",
|
|
1429
|
+
"vectorEditor.timeline.copyCss": "Kopiuj CSS",
|
|
1430
|
+
"vectorEditor.timeline.keyframes": "Klatki kluczowe",
|
|
1431
|
+
"vectorEditor.timeline.addKeyframe": "+ Dodaj klatkę",
|
|
1432
|
+
"vectorEditor.timeline.noSelection": "Zaznacz kształt, aby animować.",
|
|
1433
|
+
"vectorEditor.timeline.animationTitle": "Animacja",
|
|
1434
|
+
"vectorEditor.timeline.playbackTitle": "Odtwarzanie",
|
|
1435
|
+
"vectorEditor.timeline.attachHint": "Zaznacz kształt, aby dodać animację.",
|
|
1436
|
+
"vectorEditor.timeline.playLabel": "▶ Odtwórz",
|
|
1437
|
+
"vectorEditor.timeline.pauseLabel": "⏸ Pauza",
|
|
1438
|
+
"vectorEditor.timeline.stopLabel": "⏹ Stop",
|
|
1439
|
+
"vectorEditor.timeline.copyCssKeyframes": "📋 Kopiuj CSS keyframes",
|
|
1440
|
+
"vectorEditor.timeline.tLabel": "t",
|
|
1441
|
+
"vectorEditor.layers.empty": "Brak warstw. Użyj narzędzi albo wstaw z zakładki Biblioteka.",
|
|
1442
|
+
"vectorEditor.layers.moveUp": "Przenieś w górę",
|
|
1443
|
+
"vectorEditor.layers.moveDown": "Przenieś w dół",
|
|
1444
|
+
"vectorEditor.library.passProp": "Przekaż prop library do NiceVectorEditor, aby wypełnić tę zakładkę ikonami do wstawienia.",
|
|
1445
|
+
"vectorEditor.statusBar.zoom": "Zoom",
|
|
1446
|
+
"vectorEditor.statusBar.shapes": "kształt(y)",
|
|
1447
|
+
"vectorEditor.statusBar.selected": "Zaznaczony",
|
|
1448
|
+
"vectorEditor.statusBar.snap": "Siatka",
|
|
1449
|
+
"vectorEditor.library.empty": "Brak ikon w bibliotece.",
|
|
1450
|
+
"vectorEditor.snippet.title": "✅ Snippet ikony skopiowany do schowka",
|
|
1451
|
+
"vectorEditor.snippet.pasteHint": "Wklej do",
|
|
1452
|
+
"vectorEditor.snippet.copyAgain": "Skopiuj ponownie",
|
|
1453
|
+
"vectorEditor.snippet.close": "Zamknij",
|
|
1454
|
+
"vectorEditor.properties.appearance": "Wygląd",
|
|
1455
|
+
"vectorEditor.properties.fill": "Wypełnienie",
|
|
1456
|
+
"vectorEditor.properties.solid": "Jednolite",
|
|
1457
|
+
"vectorEditor.properties.gradient": "Gradient",
|
|
1458
|
+
"vectorEditor.properties.hideEditor": "▼ Ukryj edytor",
|
|
1459
|
+
"vectorEditor.properties.editGradient": "► Edytuj gradient",
|
|
1460
|
+
"vectorEditor.properties.type": "Typ",
|
|
1461
|
+
"vectorEditor.properties.linear": "Liniowy",
|
|
1462
|
+
"vectorEditor.properties.radial": "Promienisty",
|
|
1463
|
+
"vectorEditor.properties.angle": "Kąt",
|
|
1464
|
+
"vectorEditor.properties.cx": "CX",
|
|
1465
|
+
"vectorEditor.properties.cy": "CY",
|
|
1466
|
+
"vectorEditor.properties.r": "R",
|
|
1467
|
+
"vectorEditor.properties.colorStops": "Punkty koloru:",
|
|
1468
|
+
"vectorEditor.properties.addStop": "+ Dodaj punkt",
|
|
1469
|
+
"vectorEditor.properties.removeStop": "- Usuń",
|
|
1470
|
+
"vectorEditor.properties.stroke": "Obrys",
|
|
1471
|
+
"vectorEditor.properties.width": "Szerokość",
|
|
1472
|
+
"vectorEditor.properties.opacity": "Przezroczystość",
|
|
1473
|
+
"vectorEditor.properties.rotation": "Obrót",
|
|
1474
|
+
"vectorEditor.properties.toolOptions": "Opcje narzędzia",
|
|
1475
|
+
"vectorEditor.properties.radius": "Promień",
|
|
1476
|
+
"vectorEditor.properties.sides": "Boki",
|
|
1477
|
+
"vectorEditor.properties.points": "Wierzchołki",
|
|
1478
|
+
"vectorEditor.properties.innerR": "Promień wewn.",
|
|
1479
|
+
"vectorEditor.properties.size": "Rozmiar",
|
|
1480
|
+
"vectorEditor.properties.font": "Czcionka",
|
|
1481
|
+
"vectorEditor.properties.grid": "Siatka",
|
|
1482
|
+
"vectorEditor.properties.transform": "Transformacja",
|
|
1483
|
+
"vectorEditor.properties.x": "X",
|
|
1484
|
+
"vectorEditor.properties.y": "Y",
|
|
1485
|
+
"vectorEditor.properties.w": "W",
|
|
1486
|
+
"vectorEditor.properties.h": "H",
|
|
1487
|
+
"vectorEditor.layers.title": "Warstwy",
|
|
1488
|
+
"vectorEditor.layers.show": "Pokaż",
|
|
1489
|
+
"vectorEditor.layers.hide": "Ukryj",
|
|
1490
|
+
"vectorEditor.layers.lock": "Zablokuj",
|
|
1491
|
+
"vectorEditor.layers.unlock": "Odblokuj"
|
|
1126
1492
|
}, Ee = {
|
|
1127
1493
|
ok: "OK",
|
|
1128
1494
|
cancel: "Abbrechen",
|
|
@@ -1645,7 +2011,7 @@ const j = [
|
|
|
1645
2011
|
"noCode.codePreview.format": "Code formatieren",
|
|
1646
2012
|
"noCode.codePreview.linesChanged": "Geänderte Zeilen",
|
|
1647
2013
|
"noCode.codePreview.noChanges": "Keine Änderungen"
|
|
1648
|
-
},
|
|
2014
|
+
}, ze = {
|
|
1649
2015
|
ok: "OK",
|
|
1650
2016
|
cancel: "Annuler",
|
|
1651
2017
|
save: "Enregistrer",
|
|
@@ -2167,7 +2533,7 @@ const j = [
|
|
|
2167
2533
|
"noCode.codePreview.format": "Formater le code",
|
|
2168
2534
|
"noCode.codePreview.linesChanged": "Lignes modifiées",
|
|
2169
2535
|
"noCode.codePreview.noChanges": "Aucune modification"
|
|
2170
|
-
},
|
|
2536
|
+
}, Se = {
|
|
2171
2537
|
ok: "OK",
|
|
2172
2538
|
cancel: "Cancelar",
|
|
2173
2539
|
save: "Guardar",
|
|
@@ -5842,7 +6208,7 @@ const j = [
|
|
|
5842
6208
|
error: "Error",
|
|
5843
6209
|
success: "Tagumpay",
|
|
5844
6210
|
search: "Maghanap"
|
|
5845
|
-
},
|
|
6211
|
+
}, Ye = {
|
|
5846
6212
|
ok: "OK",
|
|
5847
6213
|
cancel: "Batal",
|
|
5848
6214
|
save: "Simpan",
|
|
@@ -5853,12 +6219,12 @@ const j = [
|
|
|
5853
6219
|
error: "Ralat",
|
|
5854
6220
|
success: "Berjaya",
|
|
5855
6221
|
search: "Cari"
|
|
5856
|
-
},
|
|
5857
|
-
en:
|
|
5858
|
-
pl:
|
|
6222
|
+
}, w = {
|
|
6223
|
+
en: ye,
|
|
6224
|
+
pl: Ce,
|
|
5859
6225
|
de: Ee,
|
|
5860
|
-
fr:
|
|
5861
|
-
es:
|
|
6226
|
+
fr: ze,
|
|
6227
|
+
es: Se,
|
|
5862
6228
|
it: De,
|
|
5863
6229
|
pt: Ae,
|
|
5864
6230
|
nl: xe,
|
|
@@ -5883,7 +6249,7 @@ const j = [
|
|
|
5883
6249
|
id: Ge,
|
|
5884
6250
|
sw: $e,
|
|
5885
6251
|
fil: Je,
|
|
5886
|
-
ms:
|
|
6252
|
+
ms: Ye
|
|
5887
6253
|
}, J = {
|
|
5888
6254
|
save: "Zapisz",
|
|
5889
6255
|
cancel: "Anuluj",
|
|
@@ -5908,7 +6274,7 @@ const j = [
|
|
|
5908
6274
|
"form.invalidValue": "Proszę podać prawidłową wartość.",
|
|
5909
6275
|
"auth.signIn": "Proszę się zalogować",
|
|
5910
6276
|
"auth.signOut": "Proszę się wylogować"
|
|
5911
|
-
},
|
|
6277
|
+
}, Y = {
|
|
5912
6278
|
save: "Zapisz",
|
|
5913
6279
|
cancel: "Anuluj",
|
|
5914
6280
|
ok: "OK",
|
|
@@ -5932,62 +6298,62 @@ const j = [
|
|
|
5932
6298
|
"form.invalidValue": "Wpisz prawidłową wartość.",
|
|
5933
6299
|
"auth.signIn": "Zaloguj się",
|
|
5934
6300
|
"auth.signOut": "Wyloguj się"
|
|
5935
|
-
},
|
|
5936
|
-
"pl-PL": { formal: J, informal:
|
|
5937
|
-
pl: { formal: J, informal:
|
|
6301
|
+
}, _e = {
|
|
6302
|
+
"pl-PL": { formal: J, informal: Y },
|
|
6303
|
+
pl: { formal: J, informal: Y }
|
|
5938
6304
|
};
|
|
5939
6305
|
function qo(e) {
|
|
5940
6306
|
var o;
|
|
5941
|
-
return { ...
|
|
6307
|
+
return { ...w.pl, ...((o = _e.pl) == null ? void 0 : o[e]) ?? {} };
|
|
5942
6308
|
}
|
|
5943
6309
|
const Qe = (e, o) => o, oe = I(Qe), Go = ({
|
|
5944
6310
|
t: e,
|
|
5945
6311
|
lang: o = "en",
|
|
5946
|
-
overrides:
|
|
5947
|
-
children:
|
|
6312
|
+
overrides: a,
|
|
6313
|
+
children: t
|
|
5948
6314
|
}) => {
|
|
5949
|
-
const
|
|
6315
|
+
const r = k(() => {
|
|
5950
6316
|
if (e)
|
|
5951
6317
|
return e;
|
|
5952
|
-
const
|
|
5953
|
-
return (s,
|
|
5954
|
-
}, [e, o,
|
|
5955
|
-
return /* @__PURE__ */ B(oe.Provider, { value:
|
|
6318
|
+
const n = w[o] ?? w.en, i = a ? { ...n, ...a } : n;
|
|
6319
|
+
return (s, d) => i[s] ?? d;
|
|
6320
|
+
}, [e, o, a]);
|
|
6321
|
+
return /* @__PURE__ */ B(oe.Provider, { value: r, children: t });
|
|
5956
6322
|
};
|
|
5957
6323
|
function $o() {
|
|
5958
6324
|
return { t: N(oe) };
|
|
5959
6325
|
}
|
|
5960
6326
|
function Jo(e = "en", o) {
|
|
5961
|
-
const
|
|
5962
|
-
return (
|
|
6327
|
+
const a = w[e] ?? w.en, t = o ? { ...a, ...o } : a;
|
|
6328
|
+
return (r, n) => t[r] ?? n;
|
|
5963
6329
|
}
|
|
5964
|
-
function
|
|
5965
|
-
let
|
|
5966
|
-
const
|
|
5967
|
-
return
|
|
6330
|
+
function Yo(e, o = {}) {
|
|
6331
|
+
let a = e.replace(/\{(\w+)\}/g, (t, r) => {
|
|
6332
|
+
const n = o[r];
|
|
6333
|
+
return n !== void 0 ? String(n) : t;
|
|
5968
6334
|
});
|
|
5969
|
-
return
|
|
6335
|
+
return a = a.replace(
|
|
5970
6336
|
/\{(\w+),\s*plural,\s*one\{([^}]+)\}\s*other\{([^}]+)\}\}/g,
|
|
5971
|
-
(
|
|
5972
|
-
const s = o[
|
|
5973
|
-
return typeof s != "number" ?
|
|
6337
|
+
(t, r, n, i) => {
|
|
6338
|
+
const s = o[r];
|
|
6339
|
+
return typeof s != "number" ? t : (s === 1 ? n : i).replace(/#/g, String(s));
|
|
5974
6340
|
}
|
|
5975
|
-
),
|
|
6341
|
+
), a;
|
|
5976
6342
|
}
|
|
5977
6343
|
function Xe(e) {
|
|
5978
6344
|
return j.includes(e);
|
|
5979
6345
|
}
|
|
5980
|
-
function
|
|
6346
|
+
function _o() {
|
|
5981
6347
|
var o;
|
|
5982
6348
|
if (typeof navigator > "u")
|
|
5983
6349
|
return "en";
|
|
5984
6350
|
const e = (o = navigator.language) == null ? void 0 : o.split("-")[0];
|
|
5985
6351
|
return Xe(e) ? e : "en";
|
|
5986
6352
|
}
|
|
5987
|
-
function
|
|
5988
|
-
var
|
|
5989
|
-
const
|
|
5990
|
-
switch (
|
|
6353
|
+
function te(e, o) {
|
|
6354
|
+
var n;
|
|
6355
|
+
const a = Math.abs(e), t = Math.floor(a), r = e.toString().includes(".") && ((n = e.toString().split(".")[1]) == null ? void 0 : n.length) || 0;
|
|
6356
|
+
switch (r > 0 && parseInt(e.toString().split(".")[1] || "0", 10), o) {
|
|
5991
6357
|
// ── English-like (one/other) ───────────────────────────
|
|
5992
6358
|
case "en":
|
|
5993
6359
|
case "de":
|
|
@@ -5999,29 +6365,29 @@ function ae(e, o) {
|
|
|
5999
6365
|
case "it":
|
|
6000
6366
|
case "es":
|
|
6001
6367
|
case "pt":
|
|
6002
|
-
return
|
|
6368
|
+
return t === 1 && r === 0 ? "one" : "other";
|
|
6003
6369
|
// ── French (one/many/other) ────────────────────────────
|
|
6004
6370
|
case "fr":
|
|
6005
|
-
return
|
|
6371
|
+
return t === 0 || t === 1 ? "one" : a >= 1e6 ? "many" : "other";
|
|
6006
6372
|
// ── Polish (Slavic: one/few/many/other) ────────────────
|
|
6007
6373
|
case "pl":
|
|
6008
|
-
return
|
|
6374
|
+
return t === 1 && r === 0 ? "one" : r === 0 && t % 10 >= 2 && t % 10 <= 4 && !(t % 100 >= 12 && t % 100 <= 14) ? "few" : r === 0 && t !== 1 && (t % 10 === 0 || t % 10 === 1) || r === 0 && t % 10 >= 5 && t % 10 <= 9 || r === 0 && t % 100 >= 12 && t % 100 <= 14 ? "many" : "other";
|
|
6009
6375
|
// ── Ukrainian (Slavic: one/few/many/other) ─────────────
|
|
6010
6376
|
case "uk":
|
|
6011
|
-
return
|
|
6377
|
+
return r === 0 && t % 10 === 1 && t % 100 !== 11 ? "one" : r === 0 && t % 10 >= 2 && t % 10 <= 4 && !(t % 100 >= 12 && t % 100 <= 14) ? "few" : r === 0 && t % 10 === 0 || r === 0 && t % 10 >= 5 && t % 10 <= 9 || r === 0 && t % 100 >= 11 && t % 100 <= 14 ? "many" : "other";
|
|
6012
6378
|
// ── Bulgarian (one/other) ──────────────────────────────
|
|
6013
6379
|
case "bg":
|
|
6014
6380
|
return e === 1 ? "one" : "other";
|
|
6015
6381
|
// ── Czech/Slovak (Slavic: one/few/many/other) ──────────
|
|
6016
6382
|
case "cs":
|
|
6017
6383
|
case "sk":
|
|
6018
|
-
return
|
|
6384
|
+
return t === 1 && r === 0 ? "one" : t >= 2 && t <= 4 && r === 0 ? "few" : r !== 0 ? "many" : "other";
|
|
6019
6385
|
// ── Hungarian (one/other) ──────────────────────────────
|
|
6020
6386
|
case "hu":
|
|
6021
6387
|
return e === 1 ? "one" : "other";
|
|
6022
6388
|
// ── Romanian (one/few/other) ───────────────────────────
|
|
6023
6389
|
case "ro":
|
|
6024
|
-
return
|
|
6390
|
+
return t === 1 && r === 0 ? "one" : r !== 0 || e === 0 || e % 100 >= 2 && e % 100 <= 19 ? "few" : "other";
|
|
6025
6391
|
// ── Japanese/Korean/Chinese (other only) ─────────────────
|
|
6026
6392
|
case "ja":
|
|
6027
6393
|
case "ko":
|
|
@@ -6044,10 +6410,10 @@ function ae(e, o) {
|
|
|
6044
6410
|
return new Intl.PluralRules(o).select(e);
|
|
6045
6411
|
} catch {
|
|
6046
6412
|
}
|
|
6047
|
-
return
|
|
6413
|
+
return t === 1 && r === 0 ? "one" : "other";
|
|
6048
6414
|
}
|
|
6049
6415
|
}
|
|
6050
|
-
function
|
|
6416
|
+
function ae(e, o) {
|
|
6051
6417
|
switch (o) {
|
|
6052
6418
|
// ── English ────────────────────────────────────────────
|
|
6053
6419
|
case "en":
|
|
@@ -6082,118 +6448,118 @@ function te(e, o) {
|
|
|
6082
6448
|
}
|
|
6083
6449
|
}
|
|
6084
6450
|
function eo(e) {
|
|
6085
|
-
var
|
|
6451
|
+
var r;
|
|
6086
6452
|
if (e = e.trim(), !e.includes(","))
|
|
6087
6453
|
return { type: "simple", name: e };
|
|
6088
|
-
const o = e.split(",").map((
|
|
6089
|
-
if (!
|
|
6454
|
+
const o = e.split(",").map((n) => n.trim()), a = o[0], t = (r = o[1]) == null ? void 0 : r.toLowerCase();
|
|
6455
|
+
if (!t || !a)
|
|
6090
6456
|
return null;
|
|
6091
|
-
if (
|
|
6092
|
-
return { type: "number", name:
|
|
6093
|
-
if (
|
|
6094
|
-
return { type:
|
|
6095
|
-
if (
|
|
6096
|
-
const
|
|
6097
|
-
let
|
|
6098
|
-
for (; (
|
|
6099
|
-
i[
|
|
6100
|
-
return { type:
|
|
6457
|
+
if (t === "number")
|
|
6458
|
+
return { type: "number", name: a, style: o[2] };
|
|
6459
|
+
if (t === "date" || t === "time")
|
|
6460
|
+
return { type: t, name: a, style: o[2] || "medium" };
|
|
6461
|
+
if (t === "plural" || t === "select" || t === "selectordinal") {
|
|
6462
|
+
const n = o.slice(2).join(",").trim(), i = {}, s = /(=?\w+)\s*\{([^{}]*(?:\{[^{}]*\}[^{}]*)*)\}/g;
|
|
6463
|
+
let d;
|
|
6464
|
+
for (; (d = s.exec(n)) !== null; )
|
|
6465
|
+
i[d[1]] = d[2];
|
|
6466
|
+
return { type: t, name: a, options: i };
|
|
6101
6467
|
}
|
|
6102
|
-
return { type: "simple", name:
|
|
6468
|
+
return { type: "simple", name: a };
|
|
6103
6469
|
}
|
|
6104
|
-
function oo(e, o,
|
|
6105
|
-
const
|
|
6106
|
-
switch (
|
|
6470
|
+
function oo(e, o, a) {
|
|
6471
|
+
const t = {};
|
|
6472
|
+
switch (a) {
|
|
6107
6473
|
case "currency":
|
|
6108
|
-
|
|
6474
|
+
t.style = "currency", t.currency = "USD";
|
|
6109
6475
|
break;
|
|
6110
6476
|
case "percent":
|
|
6111
|
-
|
|
6477
|
+
t.style = "percent";
|
|
6112
6478
|
break;
|
|
6113
6479
|
case "integer":
|
|
6114
|
-
|
|
6480
|
+
t.maximumFractionDigits = 0;
|
|
6115
6481
|
break;
|
|
6116
6482
|
}
|
|
6117
|
-
return new Intl.NumberFormat(o,
|
|
6483
|
+
return new Intl.NumberFormat(o, t).format(e);
|
|
6118
6484
|
}
|
|
6119
|
-
function
|
|
6120
|
-
const
|
|
6121
|
-
let
|
|
6122
|
-
switch (
|
|
6485
|
+
function to(e, o, a) {
|
|
6486
|
+
const t = e instanceof Date ? e : new Date(e);
|
|
6487
|
+
let r;
|
|
6488
|
+
switch (a) {
|
|
6123
6489
|
case "short":
|
|
6124
|
-
|
|
6490
|
+
r = { dateStyle: "short" };
|
|
6125
6491
|
break;
|
|
6126
6492
|
case "long":
|
|
6127
|
-
|
|
6493
|
+
r = { dateStyle: "long" };
|
|
6128
6494
|
break;
|
|
6129
6495
|
case "full":
|
|
6130
|
-
|
|
6496
|
+
r = { dateStyle: "full" };
|
|
6131
6497
|
break;
|
|
6132
6498
|
case "medium":
|
|
6133
6499
|
default:
|
|
6134
|
-
|
|
6500
|
+
r = { dateStyle: "medium" };
|
|
6135
6501
|
break;
|
|
6136
6502
|
}
|
|
6137
|
-
return new Intl.DateTimeFormat(o,
|
|
6503
|
+
return new Intl.DateTimeFormat(o, r).format(t);
|
|
6138
6504
|
}
|
|
6139
|
-
function
|
|
6140
|
-
const
|
|
6141
|
-
let
|
|
6142
|
-
switch (
|
|
6505
|
+
function ao(e, o, a) {
|
|
6506
|
+
const t = e instanceof Date ? e : new Date(e);
|
|
6507
|
+
let r;
|
|
6508
|
+
switch (a) {
|
|
6143
6509
|
case "short":
|
|
6144
|
-
|
|
6510
|
+
r = { timeStyle: "short" };
|
|
6145
6511
|
break;
|
|
6146
6512
|
case "long":
|
|
6147
|
-
|
|
6513
|
+
r = { timeStyle: "long" };
|
|
6148
6514
|
break;
|
|
6149
6515
|
case "full":
|
|
6150
|
-
|
|
6516
|
+
r = { timeStyle: "full" };
|
|
6151
6517
|
break;
|
|
6152
6518
|
case "medium":
|
|
6153
6519
|
default:
|
|
6154
|
-
|
|
6520
|
+
r = { timeStyle: "medium" };
|
|
6155
6521
|
break;
|
|
6156
6522
|
}
|
|
6157
|
-
return new Intl.DateTimeFormat(o,
|
|
6523
|
+
return new Intl.DateTimeFormat(o, r).format(t);
|
|
6158
6524
|
}
|
|
6159
|
-
function W(e, o,
|
|
6160
|
-
return e.replace(/#/g, String(
|
|
6525
|
+
function W(e, o, a) {
|
|
6526
|
+
return e.replace(/#/g, String(a));
|
|
6161
6527
|
}
|
|
6162
|
-
function
|
|
6163
|
-
const
|
|
6164
|
-
return e.replace(
|
|
6165
|
-
const
|
|
6166
|
-
if (!
|
|
6528
|
+
function ro(e, o = {}, a = {}) {
|
|
6529
|
+
const t = a.lang || "en", r = a.locale || t, n = /\{([^{}]*(?:\{[^{}]*\}[^{}]*)*)\}/g;
|
|
6530
|
+
return e.replace(n, (i, s) => {
|
|
6531
|
+
const d = eo(s);
|
|
6532
|
+
if (!d)
|
|
6167
6533
|
return i;
|
|
6168
|
-
const
|
|
6169
|
-
if (
|
|
6534
|
+
const l = o[d.name];
|
|
6535
|
+
if (l === void 0)
|
|
6170
6536
|
return i;
|
|
6171
|
-
switch (
|
|
6537
|
+
switch (d.type) {
|
|
6172
6538
|
case "simple":
|
|
6173
|
-
return String(
|
|
6539
|
+
return String(l);
|
|
6174
6540
|
case "number":
|
|
6175
|
-
return typeof
|
|
6541
|
+
return typeof l != "number" ? i : oo(l, r, d.style);
|
|
6176
6542
|
case "date":
|
|
6177
|
-
return
|
|
6543
|
+
return to(l, r, d.style);
|
|
6178
6544
|
case "time":
|
|
6179
|
-
return
|
|
6545
|
+
return ao(l, r, d.style);
|
|
6180
6546
|
case "plural": {
|
|
6181
|
-
if (typeof
|
|
6547
|
+
if (typeof l != "number" || !d.options)
|
|
6182
6548
|
return i;
|
|
6183
|
-
const m =
|
|
6184
|
-
return W(
|
|
6549
|
+
const m = te(l, t), f = `=${l}`, p = d.options[f] ?? d.options[m] ?? d.options.other ?? "";
|
|
6550
|
+
return W(p, d.name, l);
|
|
6185
6551
|
}
|
|
6186
6552
|
case "selectordinal": {
|
|
6187
|
-
if (typeof
|
|
6553
|
+
if (typeof l != "number" || !d.options)
|
|
6188
6554
|
return i;
|
|
6189
|
-
const m =
|
|
6190
|
-
return W(f,
|
|
6555
|
+
const m = ae(l, t), f = d.options[m] ?? d.options.other ?? "";
|
|
6556
|
+
return W(f, d.name, l);
|
|
6191
6557
|
}
|
|
6192
6558
|
case "select": {
|
|
6193
|
-
if (!
|
|
6559
|
+
if (!d.options)
|
|
6194
6560
|
return i;
|
|
6195
|
-
const m =
|
|
6196
|
-
return W(m,
|
|
6561
|
+
const m = d.options[String(l)] ?? d.options.other ?? "";
|
|
6562
|
+
return W(m, d.name, l);
|
|
6197
6563
|
}
|
|
6198
6564
|
default:
|
|
6199
6565
|
return i;
|
|
@@ -6201,23 +6567,23 @@ function no(e, o = {}, t = {}) {
|
|
|
6201
6567
|
});
|
|
6202
6568
|
}
|
|
6203
6569
|
function Qo(e, o = "en") {
|
|
6204
|
-
return function(
|
|
6205
|
-
const i = e[
|
|
6206
|
-
return
|
|
6570
|
+
return function(t, r, n) {
|
|
6571
|
+
const i = e[t] ?? r;
|
|
6572
|
+
return n ? ro(i, n, { lang: o }) : i;
|
|
6207
6573
|
};
|
|
6208
6574
|
}
|
|
6209
|
-
function Xo(e, o,
|
|
6210
|
-
const
|
|
6211
|
-
return (o[
|
|
6575
|
+
function Xo(e, o, a = "en") {
|
|
6576
|
+
const t = te(e, a);
|
|
6577
|
+
return (o[t] ?? o.other).replace(/#/g, String(e));
|
|
6212
6578
|
}
|
|
6213
|
-
function
|
|
6214
|
-
const
|
|
6215
|
-
return (o[
|
|
6579
|
+
function et(e, o, a = "en") {
|
|
6580
|
+
const t = ae(e, a);
|
|
6581
|
+
return (o[t] ?? o.other).replace(/#/g, String(e));
|
|
6216
6582
|
}
|
|
6217
|
-
function
|
|
6583
|
+
function ot(e, o) {
|
|
6218
6584
|
return o[e] ?? o.other;
|
|
6219
6585
|
}
|
|
6220
|
-
const
|
|
6586
|
+
const no = [
|
|
6221
6587
|
"ar",
|
|
6222
6588
|
// Arabic
|
|
6223
6589
|
"he",
|
|
@@ -6231,11 +6597,11 @@ const ro = [
|
|
|
6231
6597
|
"ps"
|
|
6232
6598
|
// Pashto
|
|
6233
6599
|
];
|
|
6234
|
-
function
|
|
6235
|
-
return
|
|
6600
|
+
function re(e) {
|
|
6601
|
+
return no.includes(e);
|
|
6236
6602
|
}
|
|
6237
6603
|
function io(e) {
|
|
6238
|
-
return
|
|
6604
|
+
return re(e) ? "rtl" : "ltr";
|
|
6239
6605
|
}
|
|
6240
6606
|
function so(e) {
|
|
6241
6607
|
if (typeof document > "u")
|
|
@@ -6243,13 +6609,13 @@ function so(e) {
|
|
|
6243
6609
|
const o = io(e);
|
|
6244
6610
|
document.documentElement.setAttribute("dir", o), document.documentElement.setAttribute("lang", e);
|
|
6245
6611
|
}
|
|
6246
|
-
function
|
|
6612
|
+
function tt() {
|
|
6247
6613
|
return typeof document > "u" ? "ltr" : document.documentElement.getAttribute("dir") || "ltr";
|
|
6248
6614
|
}
|
|
6249
6615
|
function lo(e, o) {
|
|
6250
6616
|
return o ? e.rtl : e.ltr;
|
|
6251
6617
|
}
|
|
6252
|
-
function
|
|
6618
|
+
function at(e) {
|
|
6253
6619
|
return e === "left" ? "right" : "left";
|
|
6254
6620
|
}
|
|
6255
6621
|
function co(e, o) {
|
|
@@ -6297,34 +6663,34 @@ const q = I({
|
|
|
6297
6663
|
isRTL: !1,
|
|
6298
6664
|
flip: (e) => e,
|
|
6299
6665
|
value: (e) => e.ltr
|
|
6300
|
-
}),
|
|
6666
|
+
}), rt = ({
|
|
6301
6667
|
lang: e,
|
|
6302
6668
|
autoSetDocument: o = !0,
|
|
6303
|
-
children:
|
|
6669
|
+
children: a
|
|
6304
6670
|
}) => {
|
|
6305
|
-
const
|
|
6671
|
+
const t = re(e), r = t ? "rtl" : "ltr";
|
|
6306
6672
|
L(() => {
|
|
6307
6673
|
o && so(e);
|
|
6308
6674
|
}, [e, o]);
|
|
6309
|
-
const
|
|
6675
|
+
const n = k(
|
|
6310
6676
|
() => ({
|
|
6311
|
-
dir:
|
|
6312
|
-
isRTL:
|
|
6313
|
-
flip: (i) => co(i,
|
|
6314
|
-
value: (i) => lo(i,
|
|
6677
|
+
dir: r,
|
|
6678
|
+
isRTL: t,
|
|
6679
|
+
flip: (i) => co(i, t),
|
|
6680
|
+
value: (i) => lo(i, t)
|
|
6315
6681
|
}),
|
|
6316
|
-
[
|
|
6682
|
+
[r, t]
|
|
6317
6683
|
);
|
|
6318
|
-
return /* @__PURE__ */ B(q.Provider, { value:
|
|
6684
|
+
return /* @__PURE__ */ B(q.Provider, { value: n, children: a });
|
|
6319
6685
|
};
|
|
6320
|
-
function
|
|
6686
|
+
function nt() {
|
|
6321
6687
|
return N(q);
|
|
6322
6688
|
}
|
|
6323
|
-
function
|
|
6689
|
+
function it() {
|
|
6324
6690
|
return N(q).isRTL;
|
|
6325
6691
|
}
|
|
6326
|
-
function
|
|
6327
|
-
const o = [],
|
|
6692
|
+
function st(e) {
|
|
6693
|
+
const o = [], a = [
|
|
6328
6694
|
"left",
|
|
6329
6695
|
"right",
|
|
6330
6696
|
"margin-left",
|
|
@@ -6334,8 +6700,8 @@ function sa(e) {
|
|
|
6334
6700
|
"border-left",
|
|
6335
6701
|
"border-right"
|
|
6336
6702
|
];
|
|
6337
|
-
for (const [
|
|
6338
|
-
|
|
6703
|
+
for (const [t, r] of Object.entries(e))
|
|
6704
|
+
a.includes(t) && o.push(`Use logical property instead of '${t}' → '${mo(t)}'`), t === "text-align" && (r === "left" || r === "right") && o.push(`Use 'text-align: start/end' instead of 'text-align: ${r}'`), t === "float" && (r === "left" || r === "right") && o.push(`Use flexbox or grid instead of 'float: ${r}' for RTL support`);
|
|
6339
6705
|
return o;
|
|
6340
6706
|
}
|
|
6341
6707
|
const H = {
|
|
@@ -6346,50 +6712,50 @@ const H = {
|
|
|
6346
6712
|
// Inline end (right in LTR, left in RTL)
|
|
6347
6713
|
inlineEnd: "--nice-inline-end"
|
|
6348
6714
|
};
|
|
6349
|
-
function
|
|
6715
|
+
function dt(e) {
|
|
6350
6716
|
return {
|
|
6351
6717
|
[H.dirMultiplier]: e ? "-1" : "1",
|
|
6352
6718
|
[H.inlineStart]: e ? "right" : "left",
|
|
6353
6719
|
[H.inlineEnd]: e ? "left" : "right"
|
|
6354
6720
|
};
|
|
6355
6721
|
}
|
|
6356
|
-
function
|
|
6357
|
-
return Object.keys(
|
|
6722
|
+
function lt() {
|
|
6723
|
+
return Object.keys(w.en);
|
|
6358
6724
|
}
|
|
6359
|
-
function
|
|
6725
|
+
function po(e) {
|
|
6360
6726
|
if (e === "en")
|
|
6361
6727
|
return [];
|
|
6362
|
-
const o =
|
|
6363
|
-
for (const [
|
|
6364
|
-
|
|
6365
|
-
return
|
|
6728
|
+
const o = w.en, a = w[e], t = [];
|
|
6729
|
+
for (const [r, n] of Object.entries(o))
|
|
6730
|
+
a[r] || t.push({ key: r, englishValue: n });
|
|
6731
|
+
return t;
|
|
6366
6732
|
}
|
|
6367
|
-
function
|
|
6368
|
-
const o = Object.keys(
|
|
6733
|
+
function uo(e) {
|
|
6734
|
+
const o = Object.keys(w.en).length, a = Object.keys(w[e]).length, t = o - a, r = Math.round(a / o * 100);
|
|
6369
6735
|
return {
|
|
6370
6736
|
lang: e,
|
|
6371
6737
|
totalKeys: o,
|
|
6372
|
-
translatedKeys:
|
|
6373
|
-
missingKeys:
|
|
6374
|
-
coverage:
|
|
6738
|
+
translatedKeys: a,
|
|
6739
|
+
missingKeys: t,
|
|
6740
|
+
coverage: r
|
|
6375
6741
|
};
|
|
6376
6742
|
}
|
|
6377
6743
|
function go() {
|
|
6378
|
-
return j.map((e) =>
|
|
6744
|
+
return j.map((e) => uo(e));
|
|
6379
6745
|
}
|
|
6380
|
-
function
|
|
6381
|
-
const
|
|
6382
|
-
const
|
|
6383
|
-
return ` '${
|
|
6746
|
+
function ct(e, o) {
|
|
6747
|
+
const a = o.map((t) => {
|
|
6748
|
+
const r = t.translated.replace(/'/g, "\\'");
|
|
6749
|
+
return ` '${t.key}': '${r}',`;
|
|
6384
6750
|
});
|
|
6385
6751
|
return `// Auto-translated additions for ${e} (review before merging)
|
|
6386
6752
|
// Generated on ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
6387
6753
|
{
|
|
6388
|
-
${
|
|
6754
|
+
${a.join(`
|
|
6389
6755
|
`)}
|
|
6390
6756
|
}`;
|
|
6391
6757
|
}
|
|
6392
|
-
function
|
|
6758
|
+
function mt() {
|
|
6393
6759
|
const e = go();
|
|
6394
6760
|
let o = `# Translation Coverage Report
|
|
6395
6761
|
|
|
@@ -6400,25 +6766,25 @@ Generated: ${(/* @__PURE__ */ new Date()).toISOString()}
|
|
|
6400
6766
|
| Language | Translated | Missing | Coverage |
|
|
6401
6767
|
|----------|------------|---------|----------|
|
|
6402
6768
|
`;
|
|
6403
|
-
for (const
|
|
6404
|
-
const
|
|
6405
|
-
o += `| ${
|
|
6769
|
+
for (const a of e) {
|
|
6770
|
+
const t = "█".repeat(Math.floor(a.coverage / 10)) + "░".repeat(10 - Math.floor(a.coverage / 10));
|
|
6771
|
+
o += `| ${a.lang} | ${a.translatedKeys} | ${a.missingKeys} | ${t} ${a.coverage}% |
|
|
6406
6772
|
`;
|
|
6407
6773
|
}
|
|
6408
6774
|
o += `
|
|
6409
6775
|
## Languages with Missing Translations
|
|
6410
6776
|
|
|
6411
6777
|
`;
|
|
6412
|
-
for (const
|
|
6413
|
-
o += `### ${
|
|
6778
|
+
for (const a of e.filter((t) => t.missingKeys > 0)) {
|
|
6779
|
+
o += `### ${a.lang.toUpperCase()} (${a.coverage}% complete)
|
|
6414
6780
|
|
|
6415
6781
|
`;
|
|
6416
|
-
const
|
|
6417
|
-
o += `Missing ${
|
|
6782
|
+
const t = po(a.lang);
|
|
6783
|
+
o += `Missing ${t.length} keys:
|
|
6418
6784
|
|
|
6419
|
-
`, o += "```\n", o +=
|
|
6420
|
-
`),
|
|
6421
|
-
... and ${
|
|
6785
|
+
`, o += "```\n", o += t.slice(0, 10).map((r) => r.key).join(`
|
|
6786
|
+
`), t.length > 10 && (o += `
|
|
6787
|
+
... and ${t.length - 10} more`), o += "\n```\n\n";
|
|
6422
6788
|
}
|
|
6423
6789
|
return o;
|
|
6424
6790
|
}
|
|
@@ -6458,53 +6824,53 @@ function D(e) {
|
|
|
6458
6824
|
return ho[e] ?? "en-US";
|
|
6459
6825
|
}
|
|
6460
6826
|
function fo(e, o = "medium") {
|
|
6461
|
-
const
|
|
6827
|
+
const a = D(e), t = new Intl.DateTimeFormat(a, { dateStyle: o });
|
|
6462
6828
|
return {
|
|
6463
|
-
format: (
|
|
6464
|
-
formatRange: (
|
|
6465
|
-
const i =
|
|
6466
|
-
return
|
|
6829
|
+
format: (r) => t.format(r instanceof Date ? r : new Date(r)),
|
|
6830
|
+
formatRange: (r, n) => {
|
|
6831
|
+
const i = r instanceof Date ? r : new Date(r), s = n instanceof Date ? n : new Date(n);
|
|
6832
|
+
return t.formatRange(i, s);
|
|
6467
6833
|
},
|
|
6468
|
-
formatRelative: (
|
|
6834
|
+
formatRelative: (r) => bo(r instanceof Date ? r : new Date(r), a)
|
|
6469
6835
|
};
|
|
6470
6836
|
}
|
|
6471
|
-
function
|
|
6472
|
-
return
|
|
6837
|
+
function pt(e, o = "medium") {
|
|
6838
|
+
return k(() => fo(e, o), [e, o]);
|
|
6473
6839
|
}
|
|
6474
|
-
function
|
|
6475
|
-
const
|
|
6840
|
+
function vo(e, o = "short") {
|
|
6841
|
+
const a = D(e), t = new Intl.DateTimeFormat(a, { timeStyle: o });
|
|
6476
6842
|
return {
|
|
6477
|
-
format: (
|
|
6843
|
+
format: (r) => t.format(r instanceof Date ? r : new Date(r))
|
|
6478
6844
|
};
|
|
6479
6845
|
}
|
|
6480
|
-
function
|
|
6481
|
-
return
|
|
6846
|
+
function ut(e, o = "short") {
|
|
6847
|
+
return k(() => vo(e, o), [e, o]);
|
|
6482
6848
|
}
|
|
6483
|
-
function
|
|
6849
|
+
function ko(e) {
|
|
6484
6850
|
const o = D(e);
|
|
6485
6851
|
return {
|
|
6486
|
-
format: (
|
|
6487
|
-
formatCompact: (
|
|
6488
|
-
formatPercent: (
|
|
6852
|
+
format: (a) => new Intl.NumberFormat(o).format(a),
|
|
6853
|
+
formatCompact: (a) => new Intl.NumberFormat(o, { notation: "compact" }).format(a),
|
|
6854
|
+
formatPercent: (a) => new Intl.NumberFormat(o, { style: "percent", maximumFractionDigits: 1 }).format(a)
|
|
6489
6855
|
};
|
|
6490
6856
|
}
|
|
6491
|
-
function
|
|
6492
|
-
return
|
|
6857
|
+
function gt(e) {
|
|
6858
|
+
return k(() => ko(e), [e]);
|
|
6493
6859
|
}
|
|
6494
|
-
function
|
|
6495
|
-
const
|
|
6860
|
+
function wo(e, o = "USD") {
|
|
6861
|
+
const a = D(e), t = new Intl.NumberFormat(a, { style: "currency", currency: o });
|
|
6496
6862
|
return {
|
|
6497
|
-
format: (
|
|
6863
|
+
format: (r) => t.format(r)
|
|
6498
6864
|
};
|
|
6499
6865
|
}
|
|
6500
|
-
function
|
|
6501
|
-
return
|
|
6866
|
+
function ht(e, o = "USD") {
|
|
6867
|
+
return k(() => wo(e, o), [e, o]);
|
|
6502
6868
|
}
|
|
6503
6869
|
function bo(e, o) {
|
|
6504
|
-
const
|
|
6505
|
-
return
|
|
6870
|
+
const a = Date.now(), t = e.getTime() - a, r = Math.abs(t), n = new Intl.RelativeTimeFormat(o, { numeric: "auto" });
|
|
6871
|
+
return r < 6e4 ? n.format(Math.round(t / 1e3), "second") : r < 36e5 ? n.format(Math.round(t / 6e4), "minute") : r < 864e5 ? n.format(Math.round(t / 36e5), "hour") : r < 2592e6 ? n.format(Math.round(t / 864e5), "day") : r < 31536e6 ? n.format(Math.round(t / 2592e6), "month") : n.format(Math.round(t / 31536e6), "year");
|
|
6506
6872
|
}
|
|
6507
|
-
const
|
|
6873
|
+
const ne = [
|
|
6508
6874
|
{
|
|
6509
6875
|
en: "Save",
|
|
6510
6876
|
translations: {
|
|
@@ -6656,52 +7022,52 @@ const re = [
|
|
|
6656
7022
|
}
|
|
6657
7023
|
}
|
|
6658
7024
|
];
|
|
6659
|
-
function
|
|
6660
|
-
const
|
|
6661
|
-
return
|
|
7025
|
+
function yo(e, o) {
|
|
7026
|
+
const a = ne.find((t) => t.en.toLowerCase() === e.toLowerCase());
|
|
7027
|
+
return a == null ? void 0 : a.translations[o];
|
|
6662
7028
|
}
|
|
6663
|
-
function
|
|
6664
|
-
const
|
|
7029
|
+
function ft(e, o, a = 0.8) {
|
|
7030
|
+
const t = w.en, r = w[o], n = e.toLowerCase().trim();
|
|
6665
7031
|
let i;
|
|
6666
|
-
for (const [s,
|
|
6667
|
-
const
|
|
6668
|
-
if (!
|
|
7032
|
+
for (const [s, d] of Object.entries(t)) {
|
|
7033
|
+
const l = r[s];
|
|
7034
|
+
if (!l)
|
|
6669
7035
|
continue;
|
|
6670
|
-
const m =
|
|
6671
|
-
m >=
|
|
7036
|
+
const m = Co(n, d.toLowerCase().trim());
|
|
7037
|
+
m >= a && (!i || m > i.similarity) && (i = { key: s, english: d, translated: l, similarity: m });
|
|
6672
7038
|
}
|
|
6673
7039
|
return i;
|
|
6674
7040
|
}
|
|
6675
|
-
function
|
|
6676
|
-
return
|
|
7041
|
+
function vt(e) {
|
|
7042
|
+
return ne.filter((o) => o.translations[e] != null).map((o) => ({
|
|
6677
7043
|
en: o.en,
|
|
6678
7044
|
translation: o.translations[e]
|
|
6679
7045
|
}));
|
|
6680
7046
|
}
|
|
6681
|
-
function
|
|
6682
|
-
const o =
|
|
6683
|
-
for (const [
|
|
6684
|
-
const i =
|
|
6685
|
-
i && s && s !== i &&
|
|
7047
|
+
function kt(e) {
|
|
7048
|
+
const o = w[e], a = w.en, t = [];
|
|
7049
|
+
for (const [r, n] of Object.entries(a)) {
|
|
7050
|
+
const i = yo(n, e), s = o[r];
|
|
7051
|
+
i && s && s !== i && t.push({ key: r, currentTranslation: s, glossaryTranslation: i });
|
|
6686
7052
|
}
|
|
6687
|
-
return
|
|
7053
|
+
return t;
|
|
6688
7054
|
}
|
|
6689
|
-
function
|
|
7055
|
+
function _(e) {
|
|
6690
7056
|
const o = /* @__PURE__ */ new Set();
|
|
6691
|
-
for (let
|
|
6692
|
-
o.add(e.substring(
|
|
7057
|
+
for (let a = 0; a < e.length - 1; a++)
|
|
7058
|
+
o.add(e.substring(a, a + 2));
|
|
6693
7059
|
return o;
|
|
6694
7060
|
}
|
|
6695
|
-
function
|
|
7061
|
+
function Co(e, o) {
|
|
6696
7062
|
if (e === o)
|
|
6697
7063
|
return 1;
|
|
6698
7064
|
if (e.length < 2 || o.length < 2)
|
|
6699
7065
|
return 0;
|
|
6700
|
-
const
|
|
6701
|
-
let
|
|
6702
|
-
for (const
|
|
6703
|
-
|
|
6704
|
-
return 2 *
|
|
7066
|
+
const a = _(e), t = _(o);
|
|
7067
|
+
let r = 0;
|
|
7068
|
+
for (const n of a)
|
|
7069
|
+
t.has(n) && r++;
|
|
7070
|
+
return 2 * r / (a.size + t.size);
|
|
6705
7071
|
}
|
|
6706
7072
|
const ie = {
|
|
6707
7073
|
UTC: ["UTC", "Etc/UTC", "Etc/GMT"],
|
|
@@ -6771,115 +7137,115 @@ function G() {
|
|
|
6771
7137
|
return "UTC";
|
|
6772
7138
|
}
|
|
6773
7139
|
}
|
|
6774
|
-
function
|
|
7140
|
+
function wt(e) {
|
|
6775
7141
|
try {
|
|
6776
7142
|
return new Intl.DateTimeFormat("en", { timeZone: e }), !0;
|
|
6777
7143
|
} catch {
|
|
6778
7144
|
return !1;
|
|
6779
7145
|
}
|
|
6780
7146
|
}
|
|
6781
|
-
function F(e, o = "en",
|
|
7147
|
+
function F(e, o = "en", a = /* @__PURE__ */ new Date()) {
|
|
6782
7148
|
var b, M;
|
|
6783
|
-
const
|
|
7149
|
+
const t = D(o), r = new Intl.DateTimeFormat(t, {
|
|
6784
7150
|
timeZone: e,
|
|
6785
7151
|
timeZoneName: "long"
|
|
6786
|
-
}),
|
|
7152
|
+
}), n = new Intl.DateTimeFormat(t, {
|
|
6787
7153
|
timeZone: e,
|
|
6788
7154
|
timeZoneName: "short"
|
|
6789
|
-
}), i =
|
|
7155
|
+
}), i = r.formatToParts(a), s = n.formatToParts(a), d = ((b = i.find((x) => x.type === "timeZoneName")) == null ? void 0 : b.value) || e, l = ((M = s.find((x) => x.type === "timeZoneName")) == null ? void 0 : M.value) || e, m = new Date(a.toLocaleString("en-US", { timeZone: "UTC" })), f = new Date(a.toLocaleString("en-US", { timeZone: e })), p = Math.round((f.getTime() - m.getTime()) / 6e4), u = new Date(a.getFullYear(), 0, 1), v = new Date(a.getFullYear(), 6, 1), g = V(e, u), C = V(e, v), E = V(e, a), y = Math.min(g, C), A = E !== y && g !== C;
|
|
6790
7156
|
return {
|
|
6791
7157
|
id: e,
|
|
6792
|
-
displayName:
|
|
6793
|
-
shortName:
|
|
6794
|
-
offsetMinutes:
|
|
6795
|
-
offsetString: Do(
|
|
7158
|
+
displayName: d,
|
|
7159
|
+
shortName: l,
|
|
7160
|
+
offsetMinutes: p,
|
|
7161
|
+
offsetString: Do(p),
|
|
6796
7162
|
isDST: A
|
|
6797
7163
|
};
|
|
6798
7164
|
}
|
|
6799
|
-
function
|
|
6800
|
-
return Object.values(ie).flat().map((
|
|
7165
|
+
function bt(e = "en", o = /* @__PURE__ */ new Date()) {
|
|
7166
|
+
return Object.values(ie).flat().map((t) => F(t, e, o));
|
|
6801
7167
|
}
|
|
6802
|
-
function
|
|
6803
|
-
const
|
|
6804
|
-
for (const [
|
|
6805
|
-
t
|
|
6806
|
-
return
|
|
7168
|
+
function yt(e = "en", o = /* @__PURE__ */ new Date()) {
|
|
7169
|
+
const a = {};
|
|
7170
|
+
for (const [t, r] of Object.entries(ie))
|
|
7171
|
+
a[t] = r.map((n) => F(n, e, o));
|
|
7172
|
+
return a;
|
|
6807
7173
|
}
|
|
6808
|
-
function se(e, o,
|
|
6809
|
-
const
|
|
7174
|
+
function se(e, o, a) {
|
|
7175
|
+
const t = e.toLocaleString("en-US", { timeZone: o }), r = new Date(t), n = e.toLocaleString("en-US", { timeZone: a }), i = new Date(n), s = r.getTime() - i.getTime();
|
|
6810
7176
|
return new Date(e.getTime() + s);
|
|
6811
7177
|
}
|
|
6812
7178
|
function Eo(e, o) {
|
|
6813
|
-
const
|
|
6814
|
-
return se(e,
|
|
7179
|
+
const a = o || G();
|
|
7180
|
+
return se(e, a, "UTC");
|
|
6815
7181
|
}
|
|
6816
|
-
function
|
|
6817
|
-
const
|
|
6818
|
-
return se(e, "UTC",
|
|
7182
|
+
function zo(e, o) {
|
|
7183
|
+
const a = o || G();
|
|
7184
|
+
return se(e, "UTC", a);
|
|
6819
7185
|
}
|
|
6820
|
-
function
|
|
6821
|
-
const
|
|
7186
|
+
function So(e, o, a = {}) {
|
|
7187
|
+
const t = D(e), { dateStyle: r = "medium", timeStyle: n = "short", nameStyle: i = "short" } = a, s = new Intl.DateTimeFormat(t, {
|
|
6822
7188
|
timeZone: o,
|
|
6823
|
-
dateStyle:
|
|
6824
|
-
timeStyle:
|
|
6825
|
-
}),
|
|
7189
|
+
dateStyle: r,
|
|
7190
|
+
timeStyle: n
|
|
7191
|
+
}), d = new Intl.DateTimeFormat(t, {
|
|
6826
7192
|
timeZone: o,
|
|
6827
|
-
dateStyle:
|
|
6828
|
-
timeStyle:
|
|
7193
|
+
dateStyle: r,
|
|
7194
|
+
timeStyle: n,
|
|
6829
7195
|
timeZoneName: i
|
|
6830
|
-
}),
|
|
7196
|
+
}), l = new Intl.DateTimeFormat(t, {
|
|
6831
7197
|
timeZone: o,
|
|
6832
7198
|
timeZoneName: "short"
|
|
6833
7199
|
});
|
|
6834
7200
|
return {
|
|
6835
7201
|
format: (m) => s.format(m),
|
|
6836
|
-
formatWithZone: (m) =>
|
|
7202
|
+
formatWithZone: (m) => d.format(m),
|
|
6837
7203
|
getOffset: (m) => F(o, e, m).offsetString,
|
|
6838
7204
|
getAbbreviation: (m) => {
|
|
6839
|
-
var
|
|
6840
|
-
return ((
|
|
7205
|
+
var p;
|
|
7206
|
+
return ((p = l.formatToParts(m).find((u) => u.type === "timeZoneName")) == null ? void 0 : p.value) || "";
|
|
6841
7207
|
}
|
|
6842
7208
|
};
|
|
6843
7209
|
}
|
|
6844
7210
|
function K(e, o = /* @__PURE__ */ new Date()) {
|
|
6845
7211
|
return F(e, "en", o).isDST;
|
|
6846
7212
|
}
|
|
6847
|
-
function
|
|
6848
|
-
const
|
|
6849
|
-
for (
|
|
6850
|
-
if (
|
|
6851
|
-
|
|
6852
|
-
const
|
|
6853
|
-
|
|
6854
|
-
const i = new Date(
|
|
6855
|
-
for (i.setDate(i.getDate() + 2); i.getTime() -
|
|
6856
|
-
const s = new Date((
|
|
6857
|
-
K(e, s) ===
|
|
7213
|
+
function Ct(e, o = /* @__PURE__ */ new Date()) {
|
|
7214
|
+
const a = K(e, o), t = new Date(o), r = new Date(o);
|
|
7215
|
+
for (r.setFullYear(r.getFullYear() + 1); t < r; )
|
|
7216
|
+
if (t.setDate(t.getDate() + 1), K(e, t) !== a) {
|
|
7217
|
+
t.setDate(t.getDate() - 1);
|
|
7218
|
+
const n = new Date(t);
|
|
7219
|
+
n.setHours(0, 0, 0, 0);
|
|
7220
|
+
const i = new Date(t);
|
|
7221
|
+
for (i.setDate(i.getDate() + 2); i.getTime() - n.getTime() > 6e4; ) {
|
|
7222
|
+
const s = new Date((n.getTime() + i.getTime()) / 2);
|
|
7223
|
+
K(e, s) === a ? n.setTime(s.getTime()) : i.setTime(s.getTime());
|
|
6858
7224
|
}
|
|
6859
7225
|
return i;
|
|
6860
7226
|
}
|
|
6861
7227
|
return null;
|
|
6862
7228
|
}
|
|
6863
|
-
function
|
|
6864
|
-
const [
|
|
7229
|
+
function Et(e, o, a) {
|
|
7230
|
+
const [t] = P(() => G()), r = o || t, n = k(() => So(e, r, a), [e, r, a]), i = k(() => F(r, e), [r, e]);
|
|
6865
7231
|
return {
|
|
6866
|
-
timezone:
|
|
7232
|
+
timezone: r,
|
|
6867
7233
|
info: i,
|
|
6868
|
-
format:
|
|
6869
|
-
formatWithZone:
|
|
6870
|
-
getOffset:
|
|
6871
|
-
getAbbreviation:
|
|
6872
|
-
toUTC: (s) => Eo(s,
|
|
6873
|
-
fromUTC: (s) =>
|
|
7234
|
+
format: n.format,
|
|
7235
|
+
formatWithZone: n.formatWithZone,
|
|
7236
|
+
getOffset: n.getOffset,
|
|
7237
|
+
getAbbreviation: n.getAbbreviation,
|
|
7238
|
+
toUTC: (s) => Eo(s, r),
|
|
7239
|
+
fromUTC: (s) => zo(s, r)
|
|
6874
7240
|
};
|
|
6875
7241
|
}
|
|
6876
7242
|
function V(e, o) {
|
|
6877
|
-
const
|
|
6878
|
-
return Math.round((
|
|
7243
|
+
const a = o.toLocaleString("en-US", { timeZone: "UTC" }), t = o.toLocaleString("en-US", { timeZone: e }), r = new Date(a), n = new Date(t);
|
|
7244
|
+
return Math.round((n.getTime() - r.getTime()) / 6e4);
|
|
6879
7245
|
}
|
|
6880
7246
|
function Do(e) {
|
|
6881
|
-
const o = e >= 0 ? "+" : "-",
|
|
6882
|
-
return `${o}${
|
|
7247
|
+
const o = e >= 0 ? "+" : "-", a = Math.abs(e), t = Math.floor(a / 60), r = a % 60;
|
|
7248
|
+
return `${o}${t.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}`;
|
|
6883
7249
|
}
|
|
6884
7250
|
const U = {
|
|
6885
7251
|
gregory: {
|
|
@@ -7015,7 +7381,7 @@ const U = {
|
|
|
7015
7381
|
isLunar: !1,
|
|
7016
7382
|
associatedLanguages: ["zh"]
|
|
7017
7383
|
}
|
|
7018
|
-
},
|
|
7384
|
+
}, de = {
|
|
7019
7385
|
en: "gregory",
|
|
7020
7386
|
pl: "gregory",
|
|
7021
7387
|
de: "gregory",
|
|
@@ -7047,70 +7413,70 @@ const U = {
|
|
|
7047
7413
|
fil: "gregory",
|
|
7048
7414
|
ms: "gregory"
|
|
7049
7415
|
};
|
|
7050
|
-
function
|
|
7051
|
-
const
|
|
7416
|
+
function le(e, o = "gregory", a = {}) {
|
|
7417
|
+
const t = D(e), { dateStyle: r = "medium", showEra: n = !1, showWeekday: i = !1 } = a, s = {
|
|
7052
7418
|
calendar: o,
|
|
7053
|
-
dateStyle:
|
|
7419
|
+
dateStyle: r
|
|
7054
7420
|
};
|
|
7055
7421
|
i && (delete s.dateStyle, s.weekday = "long", s.year = "numeric", s.month = "long", s.day = "numeric");
|
|
7056
|
-
const
|
|
7422
|
+
const d = new Intl.DateTimeFormat(t, s), l = {
|
|
7057
7423
|
calendar: o,
|
|
7058
7424
|
year: "numeric",
|
|
7059
7425
|
month: "long",
|
|
7060
7426
|
day: "numeric",
|
|
7061
7427
|
era: "long"
|
|
7062
|
-
}, m = new Intl.DateTimeFormat(
|
|
7428
|
+
}, m = new Intl.DateTimeFormat(t, l), f = new Intl.DateTimeFormat(t, { calendar: o, month: "long" }), p = new Intl.DateTimeFormat(t, { calendar: o, weekday: "long" });
|
|
7063
7429
|
return {
|
|
7064
|
-
format: (
|
|
7065
|
-
formatWithEra: (
|
|
7066
|
-
getMonthName: (
|
|
7430
|
+
format: (u) => d.format(u),
|
|
7431
|
+
formatWithEra: (u) => m.format(u),
|
|
7432
|
+
getMonthName: (u) => f.format(u),
|
|
7067
7433
|
getMonthNames: () => {
|
|
7068
|
-
const
|
|
7434
|
+
const u = [], v = new Date(2024, 0, 15);
|
|
7069
7435
|
for (let g = 0; g < 12; g++)
|
|
7070
|
-
|
|
7071
|
-
return
|
|
7436
|
+
v.setMonth(g), u.push(f.format(v));
|
|
7437
|
+
return u;
|
|
7072
7438
|
},
|
|
7073
|
-
getWeekdayName: (
|
|
7439
|
+
getWeekdayName: (u) => p.format(u),
|
|
7074
7440
|
getWeekdayNames: () => {
|
|
7075
|
-
const
|
|
7441
|
+
const u = [], v = new Date(2024, 0, 7);
|
|
7076
7442
|
for (let g = 0; g < 7; g++)
|
|
7077
|
-
|
|
7078
|
-
return
|
|
7443
|
+
v.setDate(7 + g), u.push(p.format(v));
|
|
7444
|
+
return u;
|
|
7079
7445
|
},
|
|
7080
|
-
parseParts: (
|
|
7081
|
-
var
|
|
7082
|
-
const g = new Intl.DateTimeFormat(
|
|
7446
|
+
parseParts: (u) => {
|
|
7447
|
+
var C, E, y, A;
|
|
7448
|
+
const g = new Intl.DateTimeFormat(t, {
|
|
7083
7449
|
calendar: o,
|
|
7084
7450
|
year: "numeric",
|
|
7085
7451
|
month: "numeric",
|
|
7086
7452
|
day: "numeric",
|
|
7087
7453
|
era: "short"
|
|
7088
|
-
}).formatToParts(
|
|
7454
|
+
}).formatToParts(u);
|
|
7089
7455
|
return {
|
|
7090
7456
|
calendar: o,
|
|
7091
|
-
year: parseInt(((
|
|
7457
|
+
year: parseInt(((C = g.find((b) => b.type === "year")) == null ? void 0 : C.value) || "0", 10),
|
|
7092
7458
|
month: parseInt(((E = g.find((b) => b.type === "month")) == null ? void 0 : E.value) || "0", 10),
|
|
7093
|
-
day: parseInt(((
|
|
7459
|
+
day: parseInt(((y = g.find((b) => b.type === "day")) == null ? void 0 : y.value) || "0", 10),
|
|
7094
7460
|
era: (A = g.find((b) => b.type === "era")) == null ? void 0 : A.value,
|
|
7095
|
-
gregorianDate:
|
|
7461
|
+
gregorianDate: u
|
|
7096
7462
|
};
|
|
7097
7463
|
},
|
|
7098
|
-
getEraName: (
|
|
7099
|
-
var
|
|
7100
|
-
return (
|
|
7464
|
+
getEraName: (u) => {
|
|
7465
|
+
var C;
|
|
7466
|
+
return (C = new Intl.DateTimeFormat(t, {
|
|
7101
7467
|
calendar: o,
|
|
7102
7468
|
era: "long"
|
|
7103
|
-
}).formatToParts(
|
|
7469
|
+
}).formatToParts(u).find((E) => E.type === "era")) == null ? void 0 : C.value;
|
|
7104
7470
|
}
|
|
7105
7471
|
};
|
|
7106
7472
|
}
|
|
7107
|
-
function ce(e, o,
|
|
7108
|
-
return
|
|
7473
|
+
function ce(e, o, a = "en") {
|
|
7474
|
+
return le(a, o).parseParts(e);
|
|
7109
7475
|
}
|
|
7110
7476
|
function Ao(e, o = "en") {
|
|
7111
7477
|
return ce(/* @__PURE__ */ new Date(), e, o);
|
|
7112
7478
|
}
|
|
7113
|
-
const
|
|
7479
|
+
const zt = [
|
|
7114
7480
|
"Muharram",
|
|
7115
7481
|
"Safar",
|
|
7116
7482
|
"Rabi' al-Awwal",
|
|
@@ -7127,10 +7493,10 @@ const Sa = [
|
|
|
7127
7493
|
function xo(e) {
|
|
7128
7494
|
return (11 * e + 14) % 30 < 11;
|
|
7129
7495
|
}
|
|
7130
|
-
function
|
|
7496
|
+
function St(e, o) {
|
|
7131
7497
|
return o === 12 ? xo(e) ? 30 : 29 : o % 2 === 1 ? 30 : 29;
|
|
7132
7498
|
}
|
|
7133
|
-
const
|
|
7499
|
+
const Dt = [
|
|
7134
7500
|
"Tishrei",
|
|
7135
7501
|
"Cheshvan",
|
|
7136
7502
|
"Kislev",
|
|
@@ -7143,7 +7509,7 @@ const Da = [
|
|
|
7143
7509
|
"Tammuz",
|
|
7144
7510
|
"Av",
|
|
7145
7511
|
"Elul"
|
|
7146
|
-
],
|
|
7512
|
+
], At = [
|
|
7147
7513
|
"Tishrei",
|
|
7148
7514
|
"Cheshvan",
|
|
7149
7515
|
"Kislev",
|
|
@@ -7158,7 +7524,7 @@ const Da = [
|
|
|
7158
7524
|
"Av",
|
|
7159
7525
|
"Elul"
|
|
7160
7526
|
];
|
|
7161
|
-
function
|
|
7527
|
+
function xt(e) {
|
|
7162
7528
|
return (7 * e + 1) % 19 < 7;
|
|
7163
7529
|
}
|
|
7164
7530
|
const Z = [
|
|
@@ -7174,11 +7540,11 @@ function To(e) {
|
|
|
7174
7540
|
return Z[o];
|
|
7175
7541
|
return null;
|
|
7176
7542
|
}
|
|
7177
|
-
function
|
|
7543
|
+
function Tt(e) {
|
|
7178
7544
|
const o = To(e);
|
|
7179
7545
|
return o ? e.getFullYear() - o.startDate.getFullYear() + 1 : null;
|
|
7180
7546
|
}
|
|
7181
|
-
const
|
|
7547
|
+
const Pt = [
|
|
7182
7548
|
"Farvardin",
|
|
7183
7549
|
"Ordibehesht",
|
|
7184
7550
|
"Khordad",
|
|
@@ -7192,7 +7558,7 @@ const Pa = [
|
|
|
7192
7558
|
"Bahman",
|
|
7193
7559
|
"Esfand"
|
|
7194
7560
|
];
|
|
7195
|
-
function
|
|
7561
|
+
function jt(e) {
|
|
7196
7562
|
return ((e - 474) % 2820 + 2820) % 2820 * 682 % 2816 < 682;
|
|
7197
7563
|
}
|
|
7198
7564
|
const Po = [
|
|
@@ -7209,7 +7575,7 @@ const Po = [
|
|
|
7209
7575
|
"Dog",
|
|
7210
7576
|
"Pig"
|
|
7211
7577
|
];
|
|
7212
|
-
function
|
|
7578
|
+
function Nt(e) {
|
|
7213
7579
|
return Po[(e - 4) % 12];
|
|
7214
7580
|
}
|
|
7215
7581
|
const jo = [
|
|
@@ -7224,46 +7590,46 @@ const jo = [
|
|
|
7224
7590
|
"Ren",
|
|
7225
7591
|
"Gui"
|
|
7226
7592
|
];
|
|
7227
|
-
function
|
|
7593
|
+
function Ft(e) {
|
|
7228
7594
|
return jo[(e - 4) % 10];
|
|
7229
7595
|
}
|
|
7230
|
-
function
|
|
7231
|
-
const
|
|
7232
|
-
() =>
|
|
7233
|
-
[e,
|
|
7234
|
-
),
|
|
7596
|
+
function Mt(e, o, a) {
|
|
7597
|
+
const t = o || de[e], r = k(
|
|
7598
|
+
() => le(e, t, a),
|
|
7599
|
+
[e, t, a]
|
|
7600
|
+
), n = k(() => U[t], [t]), i = k(() => Ao(t, e), [t, e]);
|
|
7235
7601
|
return {
|
|
7236
|
-
calendar:
|
|
7237
|
-
info:
|
|
7602
|
+
calendar: t,
|
|
7603
|
+
info: n,
|
|
7238
7604
|
current: i,
|
|
7239
|
-
format:
|
|
7240
|
-
formatWithEra:
|
|
7241
|
-
getMonthName:
|
|
7242
|
-
getMonthNames:
|
|
7243
|
-
getWeekdayName:
|
|
7244
|
-
getWeekdayNames:
|
|
7245
|
-
parseParts:
|
|
7246
|
-
getEraName:
|
|
7247
|
-
toCalendar: (s) => ce(s,
|
|
7605
|
+
format: r.format,
|
|
7606
|
+
formatWithEra: r.formatWithEra,
|
|
7607
|
+
getMonthName: r.getMonthName,
|
|
7608
|
+
getMonthNames: r.getMonthNames,
|
|
7609
|
+
getWeekdayName: r.getWeekdayName,
|
|
7610
|
+
getWeekdayNames: r.getWeekdayNames,
|
|
7611
|
+
parseParts: r.parseParts,
|
|
7612
|
+
getEraName: r.getEraName,
|
|
7613
|
+
toCalendar: (s) => ce(s, t, e)
|
|
7248
7614
|
};
|
|
7249
7615
|
}
|
|
7250
|
-
function
|
|
7616
|
+
function Ot() {
|
|
7251
7617
|
return Object.keys(U);
|
|
7252
7618
|
}
|
|
7253
|
-
function
|
|
7254
|
-
const
|
|
7619
|
+
function Rt(e, o = "en") {
|
|
7620
|
+
const a = { ...U[e] };
|
|
7255
7621
|
try {
|
|
7256
|
-
const
|
|
7257
|
-
|
|
7622
|
+
const t = D(o), n = new Intl.DisplayNames([t], { type: "calendar" }).of(e);
|
|
7623
|
+
n && (a.displayName = n);
|
|
7258
7624
|
} catch {
|
|
7259
7625
|
}
|
|
7260
|
-
return
|
|
7626
|
+
return a;
|
|
7261
7627
|
}
|
|
7262
|
-
function
|
|
7263
|
-
const o =
|
|
7264
|
-
for (const [
|
|
7265
|
-
|
|
7266
|
-
return
|
|
7628
|
+
function Lt(e) {
|
|
7629
|
+
const o = de[e], a = /* @__PURE__ */ new Set([o]);
|
|
7630
|
+
for (const [t, r] of Object.entries(U))
|
|
7631
|
+
r.associatedLanguages.includes(e) && a.add(t);
|
|
7632
|
+
return a.add("gregory"), Array.from(a);
|
|
7267
7633
|
}
|
|
7268
7634
|
const $ = {
|
|
7269
7635
|
// Lowercase
|
|
@@ -7336,60 +7702,60 @@ const $ = {
|
|
|
7336
7702
|
U: "Ụ",
|
|
7337
7703
|
Y: "Ỵ"
|
|
7338
7704
|
}, Fo = "", Mo = "", Q = "", Oo = "~∼~≈";
|
|
7339
|
-
function
|
|
7340
|
-
const
|
|
7341
|
-
return e.split("").map((
|
|
7705
|
+
function Bt(e, o = !1) {
|
|
7706
|
+
const a = o ? No : $;
|
|
7707
|
+
return e.split("").map((t) => a[t] || t).join("");
|
|
7342
7708
|
}
|
|
7343
|
-
function
|
|
7344
|
-
return `${o}${e}${
|
|
7709
|
+
function It(e, o = "[", a = "]") {
|
|
7710
|
+
return `${o}${e}${a}`;
|
|
7345
7711
|
}
|
|
7346
|
-
function Ro(e, o = 0.3,
|
|
7347
|
-
if (
|
|
7712
|
+
function Ro(e, o = 0.3, a = !1) {
|
|
7713
|
+
if (a)
|
|
7348
7714
|
return Lo(e);
|
|
7349
|
-
const
|
|
7350
|
-
if (
|
|
7715
|
+
const r = Math.ceil(e.length * (1 + o)) - e.length;
|
|
7716
|
+
if (r <= 0)
|
|
7351
7717
|
return e;
|
|
7352
|
-
const
|
|
7353
|
-
return e +
|
|
7718
|
+
const n = Oo[0].repeat(r);
|
|
7719
|
+
return e + n;
|
|
7354
7720
|
}
|
|
7355
7721
|
function Lo(e) {
|
|
7356
7722
|
const o = /* @__PURE__ */ new Set(["a", "e", "i", "o", "u", "A", "E", "I", "O", "U"]);
|
|
7357
|
-
return e.split("").map((
|
|
7723
|
+
return e.split("").map((a) => o.has(a) ? a + a : a).join("");
|
|
7358
7724
|
}
|
|
7359
7725
|
function Bo(e, o = !1) {
|
|
7360
7726
|
return o ? `${Mo}${e}${Q}` : `${Fo}${e}${Q}`;
|
|
7361
7727
|
}
|
|
7362
7728
|
function me(e, o = {}) {
|
|
7363
7729
|
const {
|
|
7364
|
-
addBrackets:
|
|
7365
|
-
expansionFactor:
|
|
7366
|
-
addAccents:
|
|
7367
|
-
addBidiMarkers:
|
|
7730
|
+
addBrackets: a = !0,
|
|
7731
|
+
expansionFactor: t = 0.3,
|
|
7732
|
+
addAccents: r = !0,
|
|
7733
|
+
addBidiMarkers: n = !1,
|
|
7368
7734
|
useVowelDoubling: i = !1,
|
|
7369
7735
|
preservePlaceholders: s = !0,
|
|
7370
|
-
preserveHtml:
|
|
7371
|
-
prefix:
|
|
7736
|
+
preserveHtml: d = !0,
|
|
7737
|
+
prefix: l = "[",
|
|
7372
7738
|
suffix: m = "]"
|
|
7373
7739
|
} = o, f = /* @__PURE__ */ new Map();
|
|
7374
|
-
let
|
|
7375
|
-
s && (
|
|
7376
|
-
const g = `__PH${
|
|
7377
|
-
return f.set(g,
|
|
7378
|
-
})),
|
|
7379
|
-
const g = `__PH${
|
|
7380
|
-
return f.set(g,
|
|
7381
|
-
})),
|
|
7382
|
-
for (const [
|
|
7383
|
-
|
|
7384
|
-
return
|
|
7740
|
+
let p = e, u = 0;
|
|
7741
|
+
s && (p = p.replace(/\{[^}]+\}/g, (v) => {
|
|
7742
|
+
const g = `__PH${u++}__`;
|
|
7743
|
+
return f.set(g, v), g;
|
|
7744
|
+
})), d && (p = p.replace(/<[^>]+>/g, (v) => {
|
|
7745
|
+
const g = `__PH${u++}__`;
|
|
7746
|
+
return f.set(g, v), g;
|
|
7747
|
+
})), r && (p = Io(p, f)), t > 0 && (p = Ro(p, t, i)), n && (p = Bo(p)), a && (p = `${l}${p}${m}`);
|
|
7748
|
+
for (const [v, g] of f.entries())
|
|
7749
|
+
p = p.replace(v, g);
|
|
7750
|
+
return p;
|
|
7385
7751
|
}
|
|
7386
7752
|
function Io(e, o) {
|
|
7387
|
-
const
|
|
7388
|
-
return e.split("").map((
|
|
7389
|
-
for (const
|
|
7390
|
-
if (e.includes(
|
|
7391
|
-
return
|
|
7392
|
-
return $[
|
|
7753
|
+
const a = new Set(o.keys());
|
|
7754
|
+
return e.split("").map((t) => {
|
|
7755
|
+
for (const r of a)
|
|
7756
|
+
if (e.includes(r) && r.includes(t))
|
|
7757
|
+
return t;
|
|
7758
|
+
return $[t] || t;
|
|
7393
7759
|
}).join("");
|
|
7394
7760
|
}
|
|
7395
7761
|
function T(e) {
|
|
@@ -7426,11 +7792,11 @@ function T(e) {
|
|
|
7426
7792
|
};
|
|
7427
7793
|
}
|
|
7428
7794
|
}
|
|
7429
|
-
function
|
|
7430
|
-
const
|
|
7431
|
-
for (const [
|
|
7432
|
-
t
|
|
7433
|
-
return
|
|
7795
|
+
function Ut(e, o) {
|
|
7796
|
+
const a = {};
|
|
7797
|
+
for (const [t, r] of Object.entries(e))
|
|
7798
|
+
a[t] = me(r, o);
|
|
7799
|
+
return a;
|
|
7434
7800
|
}
|
|
7435
7801
|
function Uo(e) {
|
|
7436
7802
|
return /[^\x00-\x7F]/.test(e);
|
|
@@ -7438,59 +7804,59 @@ function Uo(e) {
|
|
|
7438
7804
|
function Wo(e) {
|
|
7439
7805
|
if (!e || /^[\d.,-]+$/.test(e) || e.startsWith("["))
|
|
7440
7806
|
return !1;
|
|
7441
|
-
const o = /[a-zA-Z]{2,}/.test(e),
|
|
7442
|
-
return o && !
|
|
7807
|
+
const o = /[a-zA-Z]{2,}/.test(e), a = Uo(e);
|
|
7808
|
+
return o && !a;
|
|
7443
7809
|
}
|
|
7444
|
-
function
|
|
7445
|
-
const
|
|
7810
|
+
function Wt(e, o) {
|
|
7811
|
+
const a = {
|
|
7446
7812
|
totalKeys: Object.keys(e).length,
|
|
7447
7813
|
hardcodedStrings: [],
|
|
7448
7814
|
emptyValues: [],
|
|
7449
7815
|
placeholderMismatches: [],
|
|
7450
7816
|
potentialIssues: 0
|
|
7451
7817
|
};
|
|
7452
|
-
for (const [
|
|
7453
|
-
if (!
|
|
7454
|
-
|
|
7818
|
+
for (const [t, r] of Object.entries(e)) {
|
|
7819
|
+
if (!r || r.trim() === "") {
|
|
7820
|
+
a.emptyValues.push(t), a.potentialIssues++;
|
|
7455
7821
|
continue;
|
|
7456
7822
|
}
|
|
7457
|
-
if (Wo(
|
|
7458
|
-
const
|
|
7459
|
-
(s.length > 0 ||
|
|
7460
|
-
key:
|
|
7823
|
+
if (Wo(r) && a.hardcodedStrings.push(t), o && o[t]) {
|
|
7824
|
+
const n = X(r), i = X(o[t]), s = n.filter((l) => !i.includes(l)), d = i.filter((l) => !n.includes(l));
|
|
7825
|
+
(s.length > 0 || d.length > 0) && (a.placeholderMismatches.push({
|
|
7826
|
+
key: t,
|
|
7461
7827
|
placeholders: [
|
|
7462
|
-
...s.map((
|
|
7463
|
-
...
|
|
7828
|
+
...s.map((l) => `-${l}`),
|
|
7829
|
+
...d.map((l) => `+${l}`)
|
|
7464
7830
|
]
|
|
7465
|
-
}),
|
|
7831
|
+
}), a.potentialIssues++);
|
|
7466
7832
|
}
|
|
7467
7833
|
}
|
|
7468
|
-
return
|
|
7834
|
+
return a;
|
|
7469
7835
|
}
|
|
7470
7836
|
function X(e) {
|
|
7471
|
-
return (e.match(/\{([^}]+)\}/g) || []).map((
|
|
7837
|
+
return (e.match(/\{([^}]+)\}/g) || []).map((a) => a.replace(/[{}]/g, "").split(",")[0].trim());
|
|
7472
7838
|
}
|
|
7473
|
-
const
|
|
7474
|
-
function
|
|
7839
|
+
const pe = I(null);
|
|
7840
|
+
function Ht({
|
|
7475
7841
|
children: e,
|
|
7476
7842
|
initialEnabled: o = !1,
|
|
7477
|
-
initialMode:
|
|
7843
|
+
initialMode: a = "full"
|
|
7478
7844
|
}) {
|
|
7479
|
-
const [
|
|
7845
|
+
const [t, r] = P(o), [n, i] = P(a), s = k(() => T(n), [n]), d = k(() => (m) => t ? me(m, s) : m, [t, s]), l = k(
|
|
7480
7846
|
() => ({
|
|
7481
|
-
enabled:
|
|
7482
|
-
mode:
|
|
7847
|
+
enabled: t,
|
|
7848
|
+
mode: n,
|
|
7483
7849
|
options: s,
|
|
7484
|
-
toggle: () =>
|
|
7850
|
+
toggle: () => r((m) => !m),
|
|
7485
7851
|
setMode: i,
|
|
7486
|
-
transform:
|
|
7852
|
+
transform: d
|
|
7487
7853
|
}),
|
|
7488
|
-
[
|
|
7854
|
+
[t, n, s, d]
|
|
7489
7855
|
);
|
|
7490
|
-
return /* @__PURE__ */ B(
|
|
7856
|
+
return /* @__PURE__ */ B(pe.Provider, { value: l, children: e });
|
|
7491
7857
|
}
|
|
7492
|
-
function
|
|
7493
|
-
const e = N(
|
|
7858
|
+
function Kt() {
|
|
7859
|
+
const e = N(pe);
|
|
7494
7860
|
return e || {
|
|
7495
7861
|
enabled: !1,
|
|
7496
7862
|
mode: "full",
|
|
@@ -7502,7 +7868,7 @@ function Ka() {
|
|
|
7502
7868
|
transform: (o) => o
|
|
7503
7869
|
};
|
|
7504
7870
|
}
|
|
7505
|
-
const
|
|
7871
|
+
const Vt = {
|
|
7506
7872
|
/** Minimal: brackets only */
|
|
7507
7873
|
MINIMAL: { addBrackets: !0, addAccents: !1, expansionFactor: 0 },
|
|
7508
7874
|
/** Accented: brackets + accents */
|
|
@@ -7524,107 +7890,107 @@ class Ho {
|
|
|
7524
7890
|
constructor(o = 0) {
|
|
7525
7891
|
this.cache = /* @__PURE__ */ new Map(), this.ttl = o;
|
|
7526
7892
|
}
|
|
7527
|
-
getCacheKey(o,
|
|
7528
|
-
return
|
|
7893
|
+
getCacheKey(o, a) {
|
|
7894
|
+
return a ? `${o}:${a}` : o;
|
|
7529
7895
|
}
|
|
7530
|
-
get(o,
|
|
7531
|
-
const
|
|
7532
|
-
return
|
|
7896
|
+
get(o, a) {
|
|
7897
|
+
const t = this.getCacheKey(o, a), r = this.cache.get(t);
|
|
7898
|
+
return r ? this.ttl > 0 && Date.now() > r.expiresAt ? (this.cache.delete(t), null) : r.data : null;
|
|
7533
7899
|
}
|
|
7534
|
-
set(o,
|
|
7535
|
-
const
|
|
7536
|
-
this.cache.set(
|
|
7537
|
-
data:
|
|
7538
|
-
loadedAt:
|
|
7539
|
-
expiresAt: this.ttl > 0 ?
|
|
7900
|
+
set(o, a, t) {
|
|
7901
|
+
const r = this.getCacheKey(o, t), n = Date.now();
|
|
7902
|
+
this.cache.set(r, {
|
|
7903
|
+
data: a,
|
|
7904
|
+
loadedAt: n,
|
|
7905
|
+
expiresAt: this.ttl > 0 ? n + this.ttl : 1 / 0
|
|
7540
7906
|
});
|
|
7541
7907
|
}
|
|
7542
|
-
has(o,
|
|
7543
|
-
return this.get(o,
|
|
7908
|
+
has(o, a) {
|
|
7909
|
+
return this.get(o, a) !== null;
|
|
7544
7910
|
}
|
|
7545
|
-
delete(o,
|
|
7546
|
-
if (
|
|
7547
|
-
this.cache.delete(this.getCacheKey(o,
|
|
7911
|
+
delete(o, a) {
|
|
7912
|
+
if (a)
|
|
7913
|
+
this.cache.delete(this.getCacheKey(o, a));
|
|
7548
7914
|
else
|
|
7549
|
-
for (const
|
|
7550
|
-
(
|
|
7915
|
+
for (const t of this.cache.keys())
|
|
7916
|
+
(t === o || t.startsWith(`${o}:`)) && this.cache.delete(t);
|
|
7551
7917
|
}
|
|
7552
7918
|
clear() {
|
|
7553
7919
|
this.cache.clear();
|
|
7554
7920
|
}
|
|
7555
7921
|
getStats() {
|
|
7556
7922
|
const o = /* @__PURE__ */ new Set();
|
|
7557
|
-
for (const
|
|
7558
|
-
o.add(
|
|
7923
|
+
for (const a of this.cache.keys())
|
|
7924
|
+
o.add(a.split(":")[0]);
|
|
7559
7925
|
return {
|
|
7560
7926
|
size: this.cache.size,
|
|
7561
7927
|
languages: Array.from(o)
|
|
7562
7928
|
};
|
|
7563
7929
|
}
|
|
7564
7930
|
}
|
|
7565
|
-
function
|
|
7931
|
+
function ue(e) {
|
|
7566
7932
|
const {
|
|
7567
7933
|
loadFn: o,
|
|
7568
|
-
fallbackLang:
|
|
7569
|
-
cacheTtl:
|
|
7570
|
-
preloadLanguages:
|
|
7571
|
-
namespaces:
|
|
7934
|
+
fallbackLang: a = "en",
|
|
7935
|
+
cacheTtl: t = 0,
|
|
7936
|
+
preloadLanguages: r = [],
|
|
7937
|
+
namespaces: n = [],
|
|
7572
7938
|
defaultNamespace: i,
|
|
7573
7939
|
onLoadStart: s,
|
|
7574
|
-
onLoadComplete:
|
|
7575
|
-
onLoadError:
|
|
7576
|
-
} = e, m = new Ho(
|
|
7577
|
-
let
|
|
7578
|
-
const
|
|
7940
|
+
onLoadComplete: d,
|
|
7941
|
+
onLoadError: l
|
|
7942
|
+
} = e, m = new Ho(t), f = /* @__PURE__ */ new Set(), p = /* @__PURE__ */ new Map();
|
|
7943
|
+
let u = a;
|
|
7944
|
+
const v = /* @__PURE__ */ new Set();
|
|
7579
7945
|
function g() {
|
|
7580
7946
|
const c = E();
|
|
7581
|
-
|
|
7947
|
+
v.forEach((h) => h(c));
|
|
7582
7948
|
}
|
|
7583
|
-
function
|
|
7949
|
+
function C(c, h) {
|
|
7584
7950
|
return h ? `${c}:${h}` : c;
|
|
7585
7951
|
}
|
|
7586
7952
|
function E() {
|
|
7587
7953
|
const c = /* @__PURE__ */ new Set(), h = /* @__PURE__ */ new Set();
|
|
7588
|
-
for (const
|
|
7589
|
-
m.has(
|
|
7590
|
-
for (const
|
|
7591
|
-
const O =
|
|
7954
|
+
for (const z of j)
|
|
7955
|
+
m.has(z) && c.add(z);
|
|
7956
|
+
for (const z of f) {
|
|
7957
|
+
const O = z.split(":")[0];
|
|
7592
7958
|
h.add(O);
|
|
7593
7959
|
}
|
|
7594
7960
|
return {
|
|
7595
7961
|
loadedLanguages: c,
|
|
7596
7962
|
loadingLanguages: h,
|
|
7597
|
-
failedLanguages: new Map(
|
|
7598
|
-
currentLanguage:
|
|
7963
|
+
failedLanguages: new Map(p),
|
|
7964
|
+
currentLanguage: u
|
|
7599
7965
|
};
|
|
7600
7966
|
}
|
|
7601
|
-
async function
|
|
7602
|
-
const
|
|
7967
|
+
async function y(c, h) {
|
|
7968
|
+
const z = C(c, h), O = m.get(c, h);
|
|
7603
7969
|
if (O)
|
|
7604
7970
|
return O;
|
|
7605
|
-
if (f.has(
|
|
7606
|
-
return new Promise((
|
|
7971
|
+
if (f.has(z))
|
|
7972
|
+
return new Promise((S) => {
|
|
7607
7973
|
const R = setInterval(() => {
|
|
7608
|
-
f.has(
|
|
7974
|
+
f.has(z) || (clearInterval(R), S(m.get(c, h)));
|
|
7609
7975
|
}, 50);
|
|
7610
7976
|
});
|
|
7611
|
-
f.add(
|
|
7977
|
+
f.add(z), p.delete(c), s == null || s(c, h), g();
|
|
7612
7978
|
try {
|
|
7613
|
-
const
|
|
7614
|
-
return m.set(c,
|
|
7615
|
-
} catch (
|
|
7616
|
-
const R =
|
|
7617
|
-
return
|
|
7979
|
+
const S = await o(c, h);
|
|
7980
|
+
return m.set(c, S, h), d == null || d(c, h), S;
|
|
7981
|
+
} catch (S) {
|
|
7982
|
+
const R = S instanceof Error ? S : new Error(String(S));
|
|
7983
|
+
return p.set(c, R), l == null || l(c, R, h), c !== a && !h ? (console.warn(`Failed to load ${c}, falling back to ${a}`), y(a, h)) : null;
|
|
7618
7984
|
} finally {
|
|
7619
|
-
f.delete(
|
|
7985
|
+
f.delete(z), g();
|
|
7620
7986
|
}
|
|
7621
7987
|
}
|
|
7622
7988
|
async function A(c) {
|
|
7623
|
-
await Promise.all(c.map((h) =>
|
|
7989
|
+
await Promise.all(c.map((h) => y(h)));
|
|
7624
7990
|
}
|
|
7625
7991
|
async function b() {
|
|
7626
|
-
|
|
7627
|
-
|
|
7992
|
+
r.length !== 0 && await Promise.allSettled(
|
|
7993
|
+
r.map((c) => n.length > 0 ? Promise.all(n.map((h) => y(c, h))) : y(c))
|
|
7628
7994
|
);
|
|
7629
7995
|
}
|
|
7630
7996
|
function M(c, h) {
|
|
@@ -7642,82 +8008,82 @@ function pe(e) {
|
|
|
7642
8008
|
function fe() {
|
|
7643
8009
|
return m.getStats().languages;
|
|
7644
8010
|
}
|
|
7645
|
-
function
|
|
8011
|
+
function ve(c) {
|
|
7646
8012
|
c ? m.delete(c) : m.clear(), g();
|
|
7647
8013
|
}
|
|
7648
|
-
async function
|
|
7649
|
-
x(c) || await
|
|
8014
|
+
async function ke(c) {
|
|
8015
|
+
x(c) || await y(c), u = c, g();
|
|
7650
8016
|
}
|
|
7651
|
-
function
|
|
7652
|
-
return
|
|
8017
|
+
function we() {
|
|
8018
|
+
return u;
|
|
7653
8019
|
}
|
|
7654
8020
|
function be(c) {
|
|
7655
|
-
return
|
|
8021
|
+
return v.add(c), () => v.delete(c);
|
|
7656
8022
|
}
|
|
7657
8023
|
return {
|
|
7658
|
-
loadLanguage:
|
|
8024
|
+
loadLanguage: y,
|
|
7659
8025
|
loadLanguages: A,
|
|
7660
8026
|
preloadLanguages: b,
|
|
7661
8027
|
getTranslations: M,
|
|
7662
8028
|
isLoaded: x,
|
|
7663
8029
|
isLoading: he,
|
|
7664
8030
|
getLoadedLanguages: fe,
|
|
7665
|
-
clearCache:
|
|
8031
|
+
clearCache: ve,
|
|
7666
8032
|
getState: E,
|
|
7667
|
-
setLanguage:
|
|
7668
|
-
getCurrentLanguage:
|
|
8033
|
+
setLanguage: ke,
|
|
8034
|
+
getCurrentLanguage: we,
|
|
7669
8035
|
subscribe: be
|
|
7670
8036
|
};
|
|
7671
8037
|
}
|
|
7672
|
-
function
|
|
7673
|
-
return
|
|
8038
|
+
function Zt(e, o) {
|
|
8039
|
+
return ue({
|
|
7674
8040
|
...o,
|
|
7675
|
-
loadFn: async (
|
|
7676
|
-
const
|
|
7677
|
-
if (!
|
|
7678
|
-
throw new Error(`Failed to load translations: ${
|
|
7679
|
-
return
|
|
8041
|
+
loadFn: async (a, t) => {
|
|
8042
|
+
const r = t ? `${e}/${a}/${t}.json` : `${e}/${a}.json`, n = await fetch(r);
|
|
8043
|
+
if (!n.ok)
|
|
8044
|
+
throw new Error(`Failed to load translations: ${n.status}`);
|
|
8045
|
+
return n.json();
|
|
7680
8046
|
}
|
|
7681
8047
|
});
|
|
7682
8048
|
}
|
|
7683
|
-
function
|
|
7684
|
-
return
|
|
8049
|
+
function qt(e, o) {
|
|
8050
|
+
return ue({
|
|
7685
8051
|
...o,
|
|
7686
|
-
loadFn: async (
|
|
8052
|
+
loadFn: async (a, t) => (await e(a, t)).default
|
|
7687
8053
|
});
|
|
7688
8054
|
}
|
|
7689
8055
|
const ge = I(null);
|
|
7690
|
-
function
|
|
8056
|
+
function Gt({
|
|
7691
8057
|
children: e,
|
|
7692
8058
|
loader: o,
|
|
7693
|
-
initialLanguage:
|
|
7694
|
-
namespace:
|
|
8059
|
+
initialLanguage: a,
|
|
8060
|
+
namespace: t
|
|
7695
8061
|
}) {
|
|
7696
|
-
const [
|
|
7697
|
-
L(() => o.subscribe(
|
|
7698
|
-
|
|
7699
|
-
}, [o,
|
|
7700
|
-
const
|
|
8062
|
+
const [r, n] = P(() => o.getState()), [i, s] = P(null);
|
|
8063
|
+
L(() => o.subscribe(n), [o]), L(() => {
|
|
8064
|
+
a && !o.isLoaded(a, t) && o.loadLanguage(a, t).catch(s);
|
|
8065
|
+
}, [o, a, t]);
|
|
8066
|
+
const d = k(() => o.getTranslations(r.currentLanguage, t) || {}, [o, r.currentLanguage, t]), l = ee(
|
|
7701
8067
|
async (f) => {
|
|
7702
8068
|
s(null);
|
|
7703
8069
|
try {
|
|
7704
8070
|
await o.setLanguage(f);
|
|
7705
|
-
} catch (
|
|
7706
|
-
s(
|
|
8071
|
+
} catch (p) {
|
|
8072
|
+
s(p instanceof Error ? p : new Error(String(p)));
|
|
7707
8073
|
}
|
|
7708
8074
|
},
|
|
7709
8075
|
[o]
|
|
7710
|
-
), m =
|
|
8076
|
+
), m = k(
|
|
7711
8077
|
() => ({
|
|
7712
8078
|
loader: o,
|
|
7713
|
-
translations:
|
|
7714
|
-
isLoading:
|
|
8079
|
+
translations: d,
|
|
8080
|
+
isLoading: r.loadingLanguages.size > 0,
|
|
7715
8081
|
error: i,
|
|
7716
|
-
setLanguage:
|
|
7717
|
-
currentLanguage:
|
|
7718
|
-
loadedLanguages: Array.from(
|
|
8082
|
+
setLanguage: l,
|
|
8083
|
+
currentLanguage: r.currentLanguage,
|
|
8084
|
+
loadedLanguages: Array.from(r.loadedLanguages)
|
|
7719
8085
|
}),
|
|
7720
|
-
[o,
|
|
8086
|
+
[o, d, r, i, l]
|
|
7721
8087
|
);
|
|
7722
8088
|
return /* @__PURE__ */ B(ge.Provider, { value: m, children: e });
|
|
7723
8089
|
}
|
|
@@ -7727,23 +8093,23 @@ function Ko() {
|
|
|
7727
8093
|
throw new Error("useDynamicI18n must be used within DynamicI18nProvider");
|
|
7728
8094
|
return e;
|
|
7729
8095
|
}
|
|
7730
|
-
function $
|
|
7731
|
-
const { translations: o, currentLanguage:
|
|
8096
|
+
function $t(e) {
|
|
8097
|
+
const { translations: o, currentLanguage: a, loader: t, isLoading: r } = Ko();
|
|
7732
8098
|
return L(() => {
|
|
7733
|
-
e && !
|
|
7734
|
-
}, [
|
|
8099
|
+
e && !t.isLoaded(a, e) && t.loadLanguage(a, e);
|
|
8100
|
+
}, [t, a, e]), { t: ee(
|
|
7735
8101
|
(i, s) => {
|
|
7736
|
-
let
|
|
8102
|
+
let d = o[i] || i;
|
|
7737
8103
|
if (s)
|
|
7738
|
-
for (const [
|
|
7739
|
-
|
|
7740
|
-
return
|
|
8104
|
+
for (const [l, m] of Object.entries(s))
|
|
8105
|
+
d = d.replace(new RegExp(`\\{${l}\\}`, "g"), String(m));
|
|
8106
|
+
return d;
|
|
7741
8107
|
},
|
|
7742
8108
|
[o]
|
|
7743
|
-
), isLoading:
|
|
8109
|
+
), isLoading: r, currentLanguage: a };
|
|
7744
8110
|
}
|
|
7745
|
-
function
|
|
7746
|
-
switch (
|
|
8111
|
+
function Jt(e, o, a) {
|
|
8112
|
+
switch (a) {
|
|
7747
8113
|
case "immediate":
|
|
7748
8114
|
e.loadLanguages(o);
|
|
7749
8115
|
break;
|
|
@@ -7754,142 +8120,142 @@ function Ja(e, o, t) {
|
|
|
7754
8120
|
break;
|
|
7755
8121
|
case "visible":
|
|
7756
8122
|
if ("IntersectionObserver" in window) {
|
|
7757
|
-
const
|
|
8123
|
+
const t = new IntersectionObserver(
|
|
7758
8124
|
() => {
|
|
7759
|
-
e.loadLanguages(o),
|
|
8125
|
+
e.loadLanguages(o), t.disconnect();
|
|
7760
8126
|
},
|
|
7761
8127
|
{ threshold: 0.1 }
|
|
7762
8128
|
);
|
|
7763
|
-
|
|
8129
|
+
t.observe(document.body);
|
|
7764
8130
|
} else
|
|
7765
8131
|
e.loadLanguages(o);
|
|
7766
8132
|
break;
|
|
7767
8133
|
case "interaction": {
|
|
7768
|
-
const
|
|
7769
|
-
e.loadLanguages(o), window.removeEventListener("click",
|
|
8134
|
+
const t = () => {
|
|
8135
|
+
e.loadLanguages(o), window.removeEventListener("click", t), window.removeEventListener("keydown", t), window.removeEventListener("touchstart", t);
|
|
7770
8136
|
};
|
|
7771
|
-
window.addEventListener("click",
|
|
8137
|
+
window.addEventListener("click", t, { once: !0 }), window.addEventListener("keydown", t, { once: !0 }), window.addEventListener("touchstart", t, { once: !0 });
|
|
7772
8138
|
break;
|
|
7773
8139
|
}
|
|
7774
8140
|
}
|
|
7775
8141
|
}
|
|
7776
|
-
async function
|
|
7777
|
-
const { fallback:
|
|
7778
|
-
for (const
|
|
7779
|
-
if (j.includes(
|
|
7780
|
-
return await e.setLanguage(
|
|
7781
|
-
const
|
|
7782
|
-
return j.includes(
|
|
8142
|
+
async function Yt(e, o) {
|
|
8143
|
+
const { fallback: a = "en", preferredLanguages: t = [] } = o || {};
|
|
8144
|
+
for (const n of t)
|
|
8145
|
+
if (j.includes(n))
|
|
8146
|
+
return await e.setLanguage(n), n;
|
|
8147
|
+
const r = navigator.language.split("-")[0].toLowerCase();
|
|
8148
|
+
return j.includes(r) ? (await e.setLanguage(r), r) : (await e.setLanguage(a), a);
|
|
7783
8149
|
}
|
|
7784
8150
|
export {
|
|
7785
8151
|
U as CALENDAR_INFO,
|
|
7786
8152
|
jo as CELESTIAL_STEMS,
|
|
7787
8153
|
Po as CHINESE_ZODIAC,
|
|
7788
|
-
|
|
7789
|
-
|
|
7790
|
-
|
|
7791
|
-
|
|
7792
|
-
|
|
8154
|
+
de as DEFAULT_CALENDAR,
|
|
8155
|
+
Gt as DynamicI18nProvider,
|
|
8156
|
+
Dt as HEBREW_MONTHS,
|
|
8157
|
+
At as HEBREW_MONTHS_LEAP,
|
|
8158
|
+
zt as HIJRI_MONTHS,
|
|
7793
8159
|
Z as JAPANESE_ERAS,
|
|
7794
|
-
|
|
7795
|
-
|
|
7796
|
-
|
|
8160
|
+
ne as NICE_GLOSSARY,
|
|
8161
|
+
w as NICE_I18N_DICTIONARIES,
|
|
8162
|
+
_e as NICE_I18N_VARIANTS,
|
|
7797
8163
|
j as NICE_SUPPORTED_LANGS,
|
|
7798
8164
|
Go as NiceI18nProvider,
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
8165
|
+
Pt as PERSIAN_MONTHS,
|
|
8166
|
+
Vt as PSEUDO_PRESETS,
|
|
8167
|
+
Ht as PseudoLocalizationProvider,
|
|
8168
|
+
rt as RTLProvider,
|
|
7803
8169
|
H as RTL_CSS_VARS,
|
|
7804
|
-
|
|
8170
|
+
no as RTL_LANGUAGES,
|
|
7805
8171
|
ie as TIMEZONE_GROUPS,
|
|
7806
|
-
|
|
8172
|
+
Bt as addAccents,
|
|
7807
8173
|
Bo as addBidiMarkers,
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
8174
|
+
It as addBrackets,
|
|
8175
|
+
Wt as analyzeDictionary,
|
|
8176
|
+
st as analyzeStylesForRTL,
|
|
7811
8177
|
Uo as containsNonAscii,
|
|
7812
8178
|
se as convertTimezone,
|
|
7813
|
-
|
|
7814
|
-
|
|
8179
|
+
le as createCalendarFormatter,
|
|
8180
|
+
wo as createCurrencyFormatter,
|
|
7815
8181
|
fo as createDateFormatter,
|
|
7816
|
-
|
|
7817
|
-
|
|
8182
|
+
ue as createDynamicLoader,
|
|
8183
|
+
Zt as createFetchLoader,
|
|
7818
8184
|
Qo as createICUTranslator,
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
8185
|
+
qt as createImportLoader,
|
|
8186
|
+
ko as createNumberFormatter,
|
|
8187
|
+
vo as createTimeFormatter,
|
|
8188
|
+
So as createTimezoneFormatter,
|
|
7823
8189
|
Jo as createTranslator,
|
|
7824
|
-
|
|
7825
|
-
|
|
8190
|
+
Yt as detectAndLoad,
|
|
8191
|
+
_o as detectBrowserLanguage,
|
|
7826
8192
|
Wo as detectHardcodedText,
|
|
7827
8193
|
G as detectTimezone,
|
|
7828
8194
|
Ro as expandText,
|
|
7829
|
-
|
|
8195
|
+
ft as findSimilarTranslation,
|
|
7830
8196
|
co as flipAlignment,
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
8197
|
+
at as flipHorizontal,
|
|
8198
|
+
ro as formatICU,
|
|
8199
|
+
Yo as formatMessage,
|
|
8200
|
+
zo as fromUTC,
|
|
8201
|
+
mt as generateCoverageReport,
|
|
8202
|
+
ct as generateTranslationCode,
|
|
8203
|
+
bt as getAllTimezones,
|
|
7838
8204
|
go as getAllTranslationStats,
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
8205
|
+
Ot as getAvailableCalendars,
|
|
8206
|
+
Rt as getCalendarInfo,
|
|
8207
|
+
Ft as getCelestialStem,
|
|
8208
|
+
Nt as getChineseZodiac,
|
|
7843
8209
|
Ao as getCurrentCalendarDate,
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
8210
|
+
tt as getDocumentDirection,
|
|
8211
|
+
vt as getGlossaryForLanguage,
|
|
8212
|
+
St as getHijriMonthDays,
|
|
7847
8213
|
To as getJapaneseEra,
|
|
7848
|
-
|
|
8214
|
+
Tt as getJapaneseYear,
|
|
7849
8215
|
D as getLocaleTag,
|
|
7850
8216
|
mo as getLogicalProperty,
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
|
|
7854
|
-
|
|
8217
|
+
po as getMissingTranslations,
|
|
8218
|
+
Ct as getNextDSTTransition,
|
|
8219
|
+
ae as getOrdinalCategory,
|
|
8220
|
+
te as getPluralCategory,
|
|
7855
8221
|
T as getPseudoLocalizationPreset,
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
8222
|
+
dt as getRTLCSSVars,
|
|
8223
|
+
Lt as getRecommendedCalendars,
|
|
8224
|
+
lt as getSourceKeys,
|
|
7859
8225
|
io as getTextDirection,
|
|
7860
8226
|
F as getTimezoneInfo,
|
|
7861
|
-
|
|
7862
|
-
|
|
8227
|
+
yt as getTimezonesGrouped,
|
|
8228
|
+
uo as getTranslationStats,
|
|
7863
8229
|
K as isDSTActive,
|
|
7864
|
-
|
|
8230
|
+
xt as isHebrewLeapYear,
|
|
7865
8231
|
xo as isHijriLeapYear,
|
|
7866
|
-
|
|
7867
|
-
|
|
8232
|
+
jt as isPersianLeapYear,
|
|
8233
|
+
re as isRTLLanguage,
|
|
7868
8234
|
Xe as isSupported,
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
8235
|
+
wt as isValidTimezone,
|
|
8236
|
+
yo as lookupGlossary,
|
|
8237
|
+
et as ordinal,
|
|
7872
8238
|
Xo as plural,
|
|
7873
|
-
|
|
8239
|
+
Jt as preloadWithStrategy,
|
|
7874
8240
|
me as pseudoLocalize,
|
|
7875
|
-
|
|
8241
|
+
Ut as pseudoLocalizeDictionary,
|
|
7876
8242
|
qo as resolvePlVariant,
|
|
7877
8243
|
lo as rtlValue,
|
|
7878
|
-
|
|
8244
|
+
ot as select,
|
|
7879
8245
|
so as setDocumentDirection,
|
|
7880
8246
|
ce as toCalendar,
|
|
7881
8247
|
Eo as toUTC,
|
|
7882
|
-
|
|
8248
|
+
Mt as useCalendar,
|
|
7883
8249
|
Ko as useDynamicI18n,
|
|
7884
|
-
$
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
8250
|
+
$t as useDynamicTranslation,
|
|
8251
|
+
it as useIsRTL,
|
|
8252
|
+
ht as useNiceCurrencyFormat,
|
|
8253
|
+
pt as useNiceDateFormat,
|
|
8254
|
+
gt as useNiceNumberFormat,
|
|
8255
|
+
ut as useNiceTimeFormat,
|
|
7890
8256
|
$o as useNiceTranslation,
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
8257
|
+
Kt as usePseudoLocalization,
|
|
8258
|
+
nt as useRTL,
|
|
8259
|
+
Et as useTimezone,
|
|
8260
|
+
kt as validateAgainstGlossary
|
|
7895
8261
|
};
|