@topvisor/ui 1.0.16 → 1.0.18-autofocus-3

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.
Files changed (196) hide show
  1. package/.chunks/{datepicker-DW_EVh8-.amd.js → datepicker-2XyFBnpB.amd.js} +2 -2
  2. package/.chunks/{datepicker-DW_EVh8-.amd.js.map → datepicker-2XyFBnpB.amd.js.map} +1 -1
  3. package/.chunks/{datepicker-CDFryb2R.es.js → datepicker-CUB0U_lQ.es.js} +2 -2
  4. package/.chunks/{datepicker-CDFryb2R.es.js.map → datepicker-CUB0U_lQ.es.js.map} +1 -1
  5. package/.chunks/forms-CgS7En_e.amd.js +3 -0
  6. package/.chunks/{forms-CORLOoYZ.amd.js.map → forms-CgS7En_e.amd.js.map} +1 -1
  7. package/.chunks/forms-cAFIQajo.es.js +1995 -0
  8. package/.chunks/{forms-DmpPuKKh.es.js.map → forms-cAFIQajo.es.js.map} +1 -1
  9. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DwVG6MzF.amd.js +2 -0
  10. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DwVG6MzF.amd.js.map +1 -0
  11. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-DxPx80QT.es.js +181 -0
  12. package/.chunks/{listItem.vue_vue_type_script_setup_true_lang-Cry_LWLq.es.js.map → listItem.vue_vue_type_script_setup_true_lang-DxPx80QT.es.js.map} +1 -1
  13. package/.chunks/{menu.vue_vue_type_style_index_0_lang-BQFq184r.es.js → menu.vue_vue_type_style_index_0_lang-BoLzlJHY.es.js} +24 -24
  14. package/.chunks/{menu.vue_vue_type_style_index_0_lang-BQFq184r.es.js.map → menu.vue_vue_type_style_index_0_lang-BoLzlJHY.es.js.map} +1 -1
  15. package/.chunks/{menu.vue_vue_type_style_index_0_lang-Chd1ygyG.amd.js → menu.vue_vue_type_style_index_0_lang-Dpm2Wnt9.amd.js} +2 -2
  16. package/.chunks/{menu.vue_vue_type_style_index_0_lang-Chd1ygyG.amd.js.map → menu.vue_vue_type_style_index_0_lang-Dpm2Wnt9.amd.js.map} +1 -1
  17. package/.chunks/{notice-BNik2ZIo.es.js → notice-DRCVp0mf.es.js} +2 -2
  18. package/.chunks/{notice-BNik2ZIo.es.js.map → notice-DRCVp0mf.es.js.map} +1 -1
  19. package/.chunks/{notice-BnvlWLlj.amd.js → notice-EerveAd9.amd.js} +2 -2
  20. package/.chunks/{notice-BnvlWLlj.amd.js.map → notice-EerveAd9.amd.js.map} +1 -1
  21. package/.chunks/popup-D6-5Xu_J.amd.js +2 -0
  22. package/.chunks/{popup-Dm9xIxVU.amd.js.map → popup-D6-5Xu_J.amd.js.map} +1 -1
  23. package/.chunks/{popup-BxLi2sMk.es.js → popup-DZDWzqMA.es.js} +4 -4
  24. package/.chunks/{popup-BxLi2sMk.es.js.map → popup-DZDWzqMA.es.js.map} +1 -1
  25. package/.chunks/punycode.es6-C2yitnNb.amd.js.map +1 -1
  26. package/.chunks/punycode.es6-CNI-zL6U.es.js.map +1 -1
  27. package/.chunks/store-CX_6ZXhO.es.js.map +1 -1
  28. package/.chunks/store-esTid5oI.amd.js.map +1 -1
  29. package/.chunks/{utils-k0wIxxij.amd.js → utils-CQcFLRGs.amd.js} +2 -2
  30. package/.chunks/{utils-k0wIxxij.amd.js.map → utils-CQcFLRGs.amd.js.map} +1 -1
  31. package/.chunks/{utils-DFwHp4q7.es.js → utils-DP2t2MXK.es.js} +85 -87
  32. package/.chunks/utils-DP2t2MXK.es.js.map +1 -0
  33. package/.chunks/{utils-CKpKCxOO.es.js → utils-DTkdtW9l.es.js} +78 -78
  34. package/.chunks/{utils-CKpKCxOO.es.js.map → utils-DTkdtW9l.es.js.map} +1 -1
  35. package/.chunks/utils-kDi9Zfjp.amd.js +2 -0
  36. package/.chunks/utils-kDi9Zfjp.amd.js.map +1 -0
  37. package/assets/core.css +1 -1
  38. package/assets/forms.css +1 -1
  39. package/assets/formsExt.css +1 -1
  40. package/assets/layout.css +1 -1
  41. package/assets/themes/dark-th.css +1 -1
  42. package/assets/themes/dark.css +1 -1
  43. package/assets/themes/light.css +1 -1
  44. package/charts/charts.amd.js +1 -1
  45. package/charts/charts.amd.js.map +1 -1
  46. package/charts/charts.js +1 -1
  47. package/components/charts/miniChart/miniChart.vue.d.ts +5 -5
  48. package/components/charts/miniCharts/miniCharts.vue.d.ts +9 -6
  49. package/components/core/notice/item/item.vue.d.ts +1 -1
  50. package/components/dialog/dialog/dialog.vue.d.ts +3 -2
  51. package/components/dialog/dialog/dialogs/dialogs.vue.d.ts +1 -1
  52. package/components/dialog/dialog/page/page.vue.d.ts +2 -1
  53. package/components/forms/avatar/avatar.vue.d.ts +1 -1
  54. package/components/forms/button/button.vue.d.ts +2 -1
  55. package/components/forms/button/types.d.ts +1 -0
  56. package/components/forms/checkbox/checkbox.vue.d.ts +7 -6
  57. package/components/forms/controlLabel/controlLabel.vue.d.ts +3 -2
  58. package/components/forms/hint/hint.vue.d.ts +1 -1
  59. package/components/forms/input/input.vue.d.ts +2 -1
  60. package/components/forms/inputDate/inputDate.vue.d.ts +3 -1
  61. package/components/forms/inputRange/inputRange.vue.d.ts +3 -2
  62. package/components/forms/loadbar/loadbar.vue.d.ts +1 -1
  63. package/components/forms/radio/radio.vue.d.ts +3 -2
  64. package/components/forms/select/select.vue.d.ts +5 -5
  65. package/components/forms/switcher/switcher.vue.d.ts +3 -2
  66. package/components/formsExt/editArea/editArea.vue.d.ts +1 -1
  67. package/components/formsExt/editInput/editInput.vue.d.ts +1 -1
  68. package/components/formsExt/formsExt.d.ts +2 -0
  69. package/components/formsExt/info/info.vue.d.ts +22 -0
  70. package/components/formsExt/info/types.d.ts +15 -0
  71. package/components/formsExt/menu/menu.vue.d.ts +7 -5
  72. package/components/formsExt/radioGroup/radioGroup.vue.d.ts +7 -5
  73. package/components/formsExt/selector2/itemMulti.vue.d.ts +1 -1
  74. package/components/formsExt/selector2/selector2.vue.d.ts +96 -8
  75. package/components/layout/islandRows/islandRows.vue.d.ts +3 -2
  76. package/components/layout/islandRows/islandRowsRow/islandRowsRow.vue.d.ts +3 -2
  77. package/components/layout/islandRows/islandRowsSubTitle/islandRowsSubTitle.vue.d.ts +18 -0
  78. package/components/layout/layout.d.ts +2 -0
  79. package/components/layout/rows/rows.vue.d.ts +3 -2
  80. package/components/popup/alert/alert.vue.d.ts +2 -1
  81. package/components/popup/confirm/confirm.vue.d.ts +2 -1
  82. package/components/popup/popup/listItem.vue.d.ts +2 -1
  83. package/components/popup/popup/opener.vue.d.ts +2 -1
  84. package/components/popup/popup/popup.vue.d.ts +2 -1
  85. package/components/popup/popup/widgetInput.vue.d.ts +4 -4
  86. package/components/popup/prompt/prompt.vue.d.ts +2 -1
  87. package/components/project/selectorCompetitors/selectorCompetitors.vue.d.ts +5 -5
  88. package/components/project/selectorRegion/selectorRegion.vue.d.ts +7 -7
  89. package/components/project/tagSelector/popupListItem/tagPopupListItem.vue.d.ts +5 -3
  90. package/components/project/tagSelector/popupOpener/popupOpener.vue.d.ts +6 -5
  91. package/components/project/tagSelector/tagIcon/tagIcon.vue.d.ts +1 -1
  92. package/components/project/tagSelector/tagSelector.vue.d.ts +6 -6
  93. package/components/tabs/tabs/content.vue.d.ts +3 -2
  94. package/components/tabs/tabs/tab.vue.d.ts +2 -1
  95. package/components/tabs/tabs/tabs.vue.d.ts +3 -2
  96. package/components/tabsView/tabsView/menu.vue.d.ts +9 -6
  97. package/components/tabsView/tabsView/menuDelimeter.vue.d.ts +1 -1
  98. package/components/tabsView/tabsView/menuItem.vue.d.ts +2 -1
  99. package/components/tabsView/tabsView/menuTitle.vue.d.ts +2 -1
  100. package/components/tabsView/tabsView/store.d.ts +5 -5
  101. package/components/tabsView/tabsView/tabsView.vue.d.ts +9 -6
  102. package/core/app.amd.js +1 -1
  103. package/core/app.amd.js.map +1 -1
  104. package/core/app.js +209 -162
  105. package/core/app.js.map +1 -1
  106. package/core/directives/focus.d.ts +3 -1
  107. package/core/directives/scrollIntoView.d.ts +3 -0
  108. package/core/directives/scrollShadow.d.ts +15 -0
  109. package/core/utils/number.d.ts +6 -0
  110. package/core/utils/scroll.d.ts +3 -2
  111. package/core/utils/string.d.ts +1 -1
  112. package/dialog/dialog.amd.js +1 -1
  113. package/dialog/dialog.amd.js.map +1 -1
  114. package/dialog/dialog.js +84 -79
  115. package/dialog/dialog.js.map +1 -1
  116. package/forms/forms.amd.js +1 -1
  117. package/forms/forms.js +1 -1
  118. package/forms/helpers.amd.js.map +1 -1
  119. package/formsExt/formsExt.amd.js +1 -1
  120. package/formsExt/formsExt.amd.js.map +1 -1
  121. package/formsExt/formsExt.js +330 -290
  122. package/formsExt/formsExt.js.map +1 -1
  123. package/layout/layout.amd.js +1 -1
  124. package/layout/layout.amd.js.map +1 -1
  125. package/layout/layout.js +33 -25
  126. package/layout/layout.js.map +1 -1
  127. package/package.json +31 -31
  128. package/popup/popup.amd.js +1 -1
  129. package/popup/popup.amd.js.map +1 -1
  130. package/popup/popup.js +17 -17
  131. package/popup/worker.amd.js +1 -1
  132. package/popup/worker.amd.js.map +1 -1
  133. package/popup/worker.js +9 -10
  134. package/popup/worker.js.map +1 -1
  135. package/project/project.amd.js +1 -1
  136. package/project/project.amd.js.map +1 -1
  137. package/project/project.js +307 -307
  138. package/tabsView/tabsView.amd.js +1 -1
  139. package/tabsView/tabsView.amd.js.map +1 -1
  140. package/tabsView/tabsView.js +37 -37
  141. package/utils/check.amd.js +1 -1
  142. package/utils/check.amd.js.map +1 -1
  143. package/utils/check.js +1 -1
  144. package/utils/check.js.map +1 -1
  145. package/utils/clipboard.amd.js +1 -1
  146. package/utils/clipboard.amd.js.map +1 -1
  147. package/utils/clipboard.js +1 -1
  148. package/utils/clipboard.js.map +1 -1
  149. package/utils/date.amd.js +1 -1
  150. package/utils/date.js +1 -1
  151. package/utils/device.amd.js +1 -1
  152. package/utils/device.js +1 -1
  153. package/utils/dom.amd.js +1 -1
  154. package/utils/dom.amd.js.map +1 -1
  155. package/utils/dom.js +30 -30
  156. package/utils/dom.js.map +1 -1
  157. package/utils/image.amd.js.map +1 -1
  158. package/utils/keyboard.amd.js.map +1 -1
  159. package/utils/lodash.amd.js +1 -1
  160. package/utils/lodash.js +1 -1
  161. package/utils/number.amd.js +1 -1
  162. package/utils/number.amd.js.map +1 -1
  163. package/utils/number.js +7 -3
  164. package/utils/number.js.map +1 -1
  165. package/utils/price.amd.js +1 -1
  166. package/utils/price.amd.js.map +1 -1
  167. package/utils/price.js +1 -1
  168. package/utils/price.js.map +1 -1
  169. package/utils/route.amd.js +1 -1
  170. package/utils/route.amd.js.map +1 -1
  171. package/utils/route.js +5 -5
  172. package/utils/route.js.map +1 -1
  173. package/utils/scroll.amd.js +1 -1
  174. package/utils/scroll.amd.js.map +1 -1
  175. package/utils/scroll.js +19 -14
  176. package/utils/scroll.js.map +1 -1
  177. package/utils/searchers.amd.js.map +1 -1
  178. package/utils/searchers.js.map +1 -1
  179. package/utils/string.amd.js +1 -1
  180. package/utils/string.amd.js.map +1 -1
  181. package/utils/string.js +48 -47
  182. package/utils/string.js.map +1 -1
  183. package/utils/system.amd.js.map +1 -1
  184. package/utils/system.js.map +1 -1
  185. package/utils/url.amd.js.map +1 -1
  186. package/utils/url.js.map +1 -1
  187. package/web-types.json +41 -0
  188. package/.chunks/forms-CORLOoYZ.amd.js +0 -3
  189. package/.chunks/forms-DmpPuKKh.es.js +0 -1944
  190. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BZar2z_p.amd.js +0 -2
  191. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-BZar2z_p.amd.js.map +0 -1
  192. package/.chunks/listItem.vue_vue_type_script_setup_true_lang-Cry_LWLq.es.js +0 -174
  193. package/.chunks/popup-Dm9xIxVU.amd.js +0 -2
  194. package/.chunks/utils-COOeS9rk.amd.js +0 -2
  195. package/.chunks/utils-COOeS9rk.amd.js.map +0 -1
  196. package/.chunks/utils-DFwHp4q7.es.js.map +0 -1
@@ -0,0 +1,1995 @@
1
+ import { reactive as $e, watch as Tt, ref as Ie, getCurrentInstance as Se, inject as Be, defineComponent as E, useCssVars as $t, computed as S, openBlock as g, createElementBlock as m, createElementVNode as L, createCommentVNode as w, createBlock as D, resolveDynamicComponent as on, normalizeClass as T, withCtx as ne, renderSlot as C, createTextVNode as an, toDisplayString as z, mergeModels as _e, useModel as St, resolveDirective as V, withDirectives as F, vModelCheckbox as _t, mergeProps as le, withKeys as sn, vModelText as Ot, withModifiers as ln, onUnmounted as un, unref as be, vModelRadio as dn, Fragment as ye, renderList as Xe, vModelSelect as cn } from "vue";
2
+ function pn() {
3
+ return "devicePixelRatio" in window && window.devicePixelRatio > 1;
4
+ }
5
+ function fn() {
6
+ return !!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|IEMobile|Opera Mini/i);
7
+ }
8
+ function gn() {
9
+ return navigator.userAgent.indexOf("Topvisor_App") != -1;
10
+ }
11
+ function mn() {
12
+ return navigator.userAgent.indexOf("Mac OS X") !== -1;
13
+ }
14
+ function hs() {
15
+ const e = /Chrome|Android/.test(navigator.userAgent);
16
+ let t = /Safari/.test(navigator.userAgent);
17
+ return e && t && (t = !1), t;
18
+ }
19
+ function bs() {
20
+ return mn() ? "⌘" : "Ctrl";
21
+ }
22
+ const ys = () => $(document).scrollTop(), vs = () => $(document), ws = () => [document], hn = () => {
23
+ const e = [
24
+ ["iOS", /(iPhone|iPad)/i],
25
+ ["Android", /(Android)/i],
26
+ ["Windows Phone", /(IEMobile)/i],
27
+ ["Windows 3.11", /Win16/i],
28
+ ["Windows 95", /(Windows 95)|(Win95)|(Windows_95)/i],
29
+ ["Windows 98", /(Windows 98)|(Win98)/i],
30
+ ["Windows 2000", /(Windows NT 5.0)|(Windows 2000)/i],
31
+ ["Windows XP", /(Windows NT 5.1)|(Windows XP)/i],
32
+ ["Windows Server 2003", /(Windows NT 5.2)/i],
33
+ ["Windows Vista", /(Windows NT 6.0)/i],
34
+ ["Windows 7", /(Windows NT 6.1)/i],
35
+ ["Windows 8", /(Windows NT 6.[23])|(Windows 8)/i],
36
+ ["Windows 10", /(Windows NT 10)/i],
37
+ ["Windows NT 4.0", /(Windows NT 4.0)|(WinNT4.0)|(WinNT)|(Windows NT)/i],
38
+ ["Windows ME", /Windows ME/i],
39
+ ["Windows", /Windows/i],
40
+ ["Open BSD", /OpenBSD/i],
41
+ ["Sun OS", /SunOS/i],
42
+ ["Linux", /(Linux)|(X11)/i],
43
+ ["Macintosh", /(Mac_PowerPC)|(Macintosh)|(Mac OS X 10.4)|(Mac OS X 10.5)|(Mac OS X 10.6)/i],
44
+ ["QNX", /QNX/i],
45
+ ["BeOS", /BeOS/i],
46
+ ["OS/2", /OS\/2/i]
47
+ ];
48
+ let t = "";
49
+ for (let n = 0; n < e.length; n++)
50
+ if (e[n][1].test(navigator.userAgent)) {
51
+ t = e[n][0];
52
+ break;
53
+ }
54
+ return t;
55
+ }, Ts = async () => {
56
+ var t;
57
+ let e = hn();
58
+ if (e === "Windows 10") {
59
+ const n = await ((t = navigator == null ? void 0 : navigator.userAgentData) == null ? void 0 : t.getHighEntropyValues(["platformVersion"]));
60
+ n && n.platformVersion >= "13" && (e = "Windows 11");
61
+ }
62
+ return e;
63
+ };
64
+ function O(e) {
65
+ var t = typeof e;
66
+ return e != null && (t == "object" || t == "function");
67
+ }
68
+ var Et = typeof global == "object" && global && global.Object === Object && global, bn = typeof self == "object" && self && self.Object === Object && self, j = Et || bn || Function("return this")(), ve = function() {
69
+ return j.Date.now();
70
+ }, yn = /\s/;
71
+ function vn(e) {
72
+ for (var t = e.length; t-- && yn.test(e.charAt(t)); )
73
+ ;
74
+ return t;
75
+ }
76
+ var wn = /^\s+/;
77
+ function Tn(e) {
78
+ return e && e.slice(0, vn(e) + 1).replace(wn, "");
79
+ }
80
+ var X = j.Symbol, At = Object.prototype, $n = At.hasOwnProperty, Sn = At.toString, J = X ? X.toStringTag : void 0;
81
+ function _n(e) {
82
+ var t = $n.call(e, J), n = e[J];
83
+ try {
84
+ e[J] = void 0;
85
+ var r = !0;
86
+ } catch {
87
+ }
88
+ var a = Sn.call(e);
89
+ return r && (t ? e[J] = n : delete e[J]), a;
90
+ }
91
+ var On = Object.prototype, En = On.toString;
92
+ function An(e) {
93
+ return En.call(e);
94
+ }
95
+ var jn = "[object Null]", Pn = "[object Undefined]", qe = X ? X.toStringTag : void 0;
96
+ function R(e) {
97
+ return e == null ? e === void 0 ? Pn : jn : qe && qe in Object(e) ? _n(e) : An(e);
98
+ }
99
+ function W(e) {
100
+ return e != null && typeof e == "object";
101
+ }
102
+ var Mn = "[object Symbol]";
103
+ function Cn(e) {
104
+ return typeof e == "symbol" || W(e) && R(e) == Mn;
105
+ }
106
+ var Ye = NaN, Ln = /^[-+]0x[0-9a-f]+$/i, In = /^0b[01]+$/i, Bn = /^0o[0-7]+$/i, Dn = parseInt;
107
+ function Qe(e) {
108
+ if (typeof e == "number")
109
+ return e;
110
+ if (Cn(e))
111
+ return Ye;
112
+ if (O(e)) {
113
+ var t = typeof e.valueOf == "function" ? e.valueOf() : e;
114
+ e = O(t) ? t + "" : t;
115
+ }
116
+ if (typeof e != "string")
117
+ return e === 0 ? e : +e;
118
+ e = Tn(e);
119
+ var n = In.test(e);
120
+ return n || Bn.test(e) ? Dn(e.slice(2), n ? 2 : 8) : Ln.test(e) ? Ye : +e;
121
+ }
122
+ var Wn = "Expected a function", Nn = Math.max, zn = Math.min;
123
+ function jt(e, t, n) {
124
+ var r, a, o, s, i, l, u = 0, d = !1, c = !1, p = !0;
125
+ if (typeof e != "function")
126
+ throw new TypeError(Wn);
127
+ t = Qe(t) || 0, O(n) && (d = !!n.leading, c = "maxWait" in n, o = c ? Nn(Qe(n.maxWait) || 0, t) : o, p = "trailing" in n ? !!n.trailing : p);
128
+ function b(v) {
129
+ var B = r, Q = a;
130
+ return r = a = void 0, u = v, s = e.apply(Q, B), s;
131
+ }
132
+ function P(v) {
133
+ return u = v, i = setTimeout(_, t), d ? b(v) : s;
134
+ }
135
+ function ae(v) {
136
+ var B = v - l, Q = v - u, Ke = t - B;
137
+ return c ? zn(Ke, o - Q) : Ke;
138
+ }
139
+ function A(v) {
140
+ var B = v - l, Q = v - u;
141
+ return l === void 0 || B >= t || B < 0 || c && Q >= o;
142
+ }
143
+ function _() {
144
+ var v = ve();
145
+ if (A(v))
146
+ return Ge(v);
147
+ i = setTimeout(_, ae(v));
148
+ }
149
+ function Ge(v) {
150
+ return i = void 0, p && r ? b(v) : (r = a = void 0, s);
151
+ }
152
+ function nn() {
153
+ i !== void 0 && clearTimeout(i), u = 0, r = l = a = i = void 0;
154
+ }
155
+ function rn() {
156
+ return i === void 0 ? s : Ge(ve());
157
+ }
158
+ function he() {
159
+ var v = ve(), B = A(v);
160
+ if (r = arguments, a = this, l = v, B) {
161
+ if (i === void 0)
162
+ return P(l);
163
+ if (c)
164
+ return clearTimeout(i), i = setTimeout(_, t), b(l);
165
+ }
166
+ return i === void 0 && (i = setTimeout(_, t)), s;
167
+ }
168
+ return he.cancel = nn, he.flush = rn, he;
169
+ }
170
+ function Vn() {
171
+ this.__data__ = [], this.size = 0;
172
+ }
173
+ function de(e, t) {
174
+ return e === t || e !== e && t !== t;
175
+ }
176
+ function ce(e, t) {
177
+ for (var n = e.length; n--; )
178
+ if (de(e[n][0], t))
179
+ return n;
180
+ return -1;
181
+ }
182
+ var Fn = Array.prototype, kn = Fn.splice;
183
+ function Rn(e) {
184
+ var t = this.__data__, n = ce(t, e);
185
+ if (n < 0)
186
+ return !1;
187
+ var r = t.length - 1;
188
+ return n == r ? t.pop() : kn.call(t, n, 1), --this.size, !0;
189
+ }
190
+ function Un(e) {
191
+ var t = this.__data__, n = ce(t, e);
192
+ return n < 0 ? void 0 : t[n][1];
193
+ }
194
+ function Hn(e) {
195
+ return ce(this.__data__, e) > -1;
196
+ }
197
+ function Gn(e, t) {
198
+ var n = this.__data__, r = ce(n, e);
199
+ return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
200
+ }
201
+ function I(e) {
202
+ var t = -1, n = e == null ? 0 : e.length;
203
+ for (this.clear(); ++t < n; ) {
204
+ var r = e[t];
205
+ this.set(r[0], r[1]);
206
+ }
207
+ }
208
+ I.prototype.clear = Vn;
209
+ I.prototype.delete = Rn;
210
+ I.prototype.get = Un;
211
+ I.prototype.has = Hn;
212
+ I.prototype.set = Gn;
213
+ function Kn() {
214
+ this.__data__ = new I(), this.size = 0;
215
+ }
216
+ function Xn(e) {
217
+ var t = this.__data__, n = t.delete(e);
218
+ return this.size = t.size, n;
219
+ }
220
+ function qn(e) {
221
+ return this.__data__.get(e);
222
+ }
223
+ function Yn(e) {
224
+ return this.__data__.has(e);
225
+ }
226
+ var Qn = "[object AsyncFunction]", Jn = "[object Function]", Zn = "[object GeneratorFunction]", xn = "[object Proxy]";
227
+ function De(e) {
228
+ if (!O(e))
229
+ return !1;
230
+ var t = R(e);
231
+ return t == Jn || t == Zn || t == Qn || t == xn;
232
+ }
233
+ var we = j["__core-js_shared__"], Je = function() {
234
+ var e = /[^.]+$/.exec(we && we.keys && we.keys.IE_PROTO || "");
235
+ return e ? "Symbol(src)_1." + e : "";
236
+ }();
237
+ function er(e) {
238
+ return !!Je && Je in e;
239
+ }
240
+ var tr = Function.prototype, nr = tr.toString;
241
+ function U(e) {
242
+ if (e != null) {
243
+ try {
244
+ return nr.call(e);
245
+ } catch {
246
+ }
247
+ try {
248
+ return e + "";
249
+ } catch {
250
+ }
251
+ }
252
+ return "";
253
+ }
254
+ var rr = /[\\^$.*+?()[\]{}|]/g, or = /^\[object .+?Constructor\]$/, ar = Function.prototype, ir = Object.prototype, sr = ar.toString, lr = ir.hasOwnProperty, ur = RegExp(
255
+ "^" + sr.call(lr).replace(rr, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
256
+ );
257
+ function dr(e) {
258
+ if (!O(e) || er(e))
259
+ return !1;
260
+ var t = De(e) ? ur : or;
261
+ return t.test(U(e));
262
+ }
263
+ function cr(e, t) {
264
+ return e == null ? void 0 : e[t];
265
+ }
266
+ function H(e, t) {
267
+ var n = cr(e, t);
268
+ return dr(n) ? n : void 0;
269
+ }
270
+ var x = H(j, "Map"), ee = H(Object, "create");
271
+ function pr() {
272
+ this.__data__ = ee ? ee(null) : {}, this.size = 0;
273
+ }
274
+ function fr(e) {
275
+ var t = this.has(e) && delete this.__data__[e];
276
+ return this.size -= t ? 1 : 0, t;
277
+ }
278
+ var gr = "__lodash_hash_undefined__", mr = Object.prototype, hr = mr.hasOwnProperty;
279
+ function br(e) {
280
+ var t = this.__data__;
281
+ if (ee) {
282
+ var n = t[e];
283
+ return n === gr ? void 0 : n;
284
+ }
285
+ return hr.call(t, e) ? t[e] : void 0;
286
+ }
287
+ var yr = Object.prototype, vr = yr.hasOwnProperty;
288
+ function wr(e) {
289
+ var t = this.__data__;
290
+ return ee ? t[e] !== void 0 : vr.call(t, e);
291
+ }
292
+ var Tr = "__lodash_hash_undefined__";
293
+ function $r(e, t) {
294
+ var n = this.__data__;
295
+ return this.size += this.has(e) ? 0 : 1, n[e] = ee && t === void 0 ? Tr : t, this;
296
+ }
297
+ function k(e) {
298
+ var t = -1, n = e == null ? 0 : e.length;
299
+ for (this.clear(); ++t < n; ) {
300
+ var r = e[t];
301
+ this.set(r[0], r[1]);
302
+ }
303
+ }
304
+ k.prototype.clear = pr;
305
+ k.prototype.delete = fr;
306
+ k.prototype.get = br;
307
+ k.prototype.has = wr;
308
+ k.prototype.set = $r;
309
+ function Sr() {
310
+ this.size = 0, this.__data__ = {
311
+ hash: new k(),
312
+ map: new (x || I)(),
313
+ string: new k()
314
+ };
315
+ }
316
+ function _r(e) {
317
+ var t = typeof e;
318
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
319
+ }
320
+ function pe(e, t) {
321
+ var n = e.__data__;
322
+ return _r(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
323
+ }
324
+ function Or(e) {
325
+ var t = pe(this, e).delete(e);
326
+ return this.size -= t ? 1 : 0, t;
327
+ }
328
+ function Er(e) {
329
+ return pe(this, e).get(e);
330
+ }
331
+ function Ar(e) {
332
+ return pe(this, e).has(e);
333
+ }
334
+ function jr(e, t) {
335
+ var n = pe(this, e), r = n.size;
336
+ return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
337
+ }
338
+ function N(e) {
339
+ var t = -1, n = e == null ? 0 : e.length;
340
+ for (this.clear(); ++t < n; ) {
341
+ var r = e[t];
342
+ this.set(r[0], r[1]);
343
+ }
344
+ }
345
+ N.prototype.clear = Sr;
346
+ N.prototype.delete = Or;
347
+ N.prototype.get = Er;
348
+ N.prototype.has = Ar;
349
+ N.prototype.set = jr;
350
+ var Pr = 200;
351
+ function Mr(e, t) {
352
+ var n = this.__data__;
353
+ if (n instanceof I) {
354
+ var r = n.__data__;
355
+ if (!x || r.length < Pr - 1)
356
+ return r.push([e, t]), this.size = ++n.size, this;
357
+ n = this.__data__ = new N(r);
358
+ }
359
+ return n.set(e, t), this.size = n.size, this;
360
+ }
361
+ function G(e) {
362
+ var t = this.__data__ = new I(e);
363
+ this.size = t.size;
364
+ }
365
+ G.prototype.clear = Kn;
366
+ G.prototype.delete = Xn;
367
+ G.prototype.get = qn;
368
+ G.prototype.has = Yn;
369
+ G.prototype.set = Mr;
370
+ function Cr(e, t) {
371
+ for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
372
+ ;
373
+ return e;
374
+ }
375
+ var ue = function() {
376
+ try {
377
+ var e = H(Object, "defineProperty");
378
+ return e({}, "", {}), e;
379
+ } catch {
380
+ }
381
+ }();
382
+ function We(e, t, n) {
383
+ t == "__proto__" && ue ? ue(e, t, {
384
+ configurable: !0,
385
+ enumerable: !0,
386
+ value: n,
387
+ writable: !0
388
+ }) : e[t] = n;
389
+ }
390
+ var Lr = Object.prototype, Ir = Lr.hasOwnProperty;
391
+ function Pt(e, t, n) {
392
+ var r = e[t];
393
+ (!(Ir.call(e, t) && de(r, n)) || n === void 0 && !(t in e)) && We(e, t, n);
394
+ }
395
+ function re(e, t, n, r) {
396
+ var a = !n;
397
+ n || (n = {});
398
+ for (var o = -1, s = t.length; ++o < s; ) {
399
+ var i = t[o], l = void 0;
400
+ l === void 0 && (l = e[i]), a ? We(n, i, l) : Pt(n, i, l);
401
+ }
402
+ return n;
403
+ }
404
+ function Br(e, t) {
405
+ for (var n = -1, r = Array(e); ++n < e; )
406
+ r[n] = t(n);
407
+ return r;
408
+ }
409
+ var Dr = "[object Arguments]";
410
+ function Ze(e) {
411
+ return W(e) && R(e) == Dr;
412
+ }
413
+ var Mt = Object.prototype, Wr = Mt.hasOwnProperty, Nr = Mt.propertyIsEnumerable, Oe = Ze(/* @__PURE__ */ function() {
414
+ return arguments;
415
+ }()) ? Ze : function(e) {
416
+ return W(e) && Wr.call(e, "callee") && !Nr.call(e, "callee");
417
+ }, te = Array.isArray;
418
+ function zr() {
419
+ return !1;
420
+ }
421
+ var Ct = typeof exports == "object" && exports && !exports.nodeType && exports, xe = Ct && typeof module == "object" && module && !module.nodeType && module, Vr = xe && xe.exports === Ct, et = Vr ? j.Buffer : void 0, Fr = et ? et.isBuffer : void 0, Ne = Fr || zr, kr = 9007199254740991, Rr = /^(?:0|[1-9]\d*)$/;
422
+ function Lt(e, t) {
423
+ var n = typeof e;
424
+ return t = t ?? kr, !!t && (n == "number" || n != "symbol" && Rr.test(e)) && e > -1 && e % 1 == 0 && e < t;
425
+ }
426
+ var Ur = 9007199254740991;
427
+ function It(e) {
428
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= Ur;
429
+ }
430
+ var Hr = "[object Arguments]", Gr = "[object Array]", Kr = "[object Boolean]", Xr = "[object Date]", qr = "[object Error]", Yr = "[object Function]", Qr = "[object Map]", Jr = "[object Number]", Zr = "[object Object]", xr = "[object RegExp]", eo = "[object Set]", to = "[object String]", no = "[object WeakMap]", ro = "[object ArrayBuffer]", oo = "[object DataView]", ao = "[object Float32Array]", io = "[object Float64Array]", so = "[object Int8Array]", lo = "[object Int16Array]", uo = "[object Int32Array]", co = "[object Uint8Array]", po = "[object Uint8ClampedArray]", fo = "[object Uint16Array]", go = "[object Uint32Array]", y = {};
431
+ y[ao] = y[io] = y[so] = y[lo] = y[uo] = y[co] = y[po] = y[fo] = y[go] = !0;
432
+ y[Hr] = y[Gr] = y[ro] = y[Kr] = y[oo] = y[Xr] = y[qr] = y[Yr] = y[Qr] = y[Jr] = y[Zr] = y[xr] = y[eo] = y[to] = y[no] = !1;
433
+ function ho(e) {
434
+ return W(e) && It(e.length) && !!y[R(e)];
435
+ }
436
+ function ze(e) {
437
+ return function(t) {
438
+ return e(t);
439
+ };
440
+ }
441
+ var Bt = typeof exports == "object" && exports && !exports.nodeType && exports, Z = Bt && typeof module == "object" && module && !module.nodeType && module, bo = Z && Z.exports === Bt, Te = bo && Et.process, q = function() {
442
+ try {
443
+ var e = Z && Z.require && Z.require("util").types;
444
+ return e || Te && Te.binding && Te.binding("util");
445
+ } catch {
446
+ }
447
+ }(), tt = q && q.isTypedArray, Dt = tt ? ze(tt) : ho, yo = Object.prototype, vo = yo.hasOwnProperty;
448
+ function Wt(e, t) {
449
+ var n = te(e), r = !n && Oe(e), a = !n && !r && Ne(e), o = !n && !r && !a && Dt(e), s = n || r || a || o, i = s ? Br(e.length, String) : [], l = i.length;
450
+ for (var u in e)
451
+ (t || vo.call(e, u)) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
452
+ (u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
453
+ a && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
454
+ o && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
455
+ Lt(u, l))) && i.push(u);
456
+ return i;
457
+ }
458
+ var wo = Object.prototype;
459
+ function Ve(e) {
460
+ var t = e && e.constructor, n = typeof t == "function" && t.prototype || wo;
461
+ return e === n;
462
+ }
463
+ function Nt(e, t) {
464
+ return function(n) {
465
+ return e(t(n));
466
+ };
467
+ }
468
+ var To = Nt(Object.keys, Object), $o = Object.prototype, So = $o.hasOwnProperty;
469
+ function _o(e) {
470
+ if (!Ve(e))
471
+ return To(e);
472
+ var t = [];
473
+ for (var n in Object(e))
474
+ So.call(e, n) && n != "constructor" && t.push(n);
475
+ return t;
476
+ }
477
+ function fe(e) {
478
+ return e != null && It(e.length) && !De(e);
479
+ }
480
+ function Fe(e) {
481
+ return fe(e) ? Wt(e) : _o(e);
482
+ }
483
+ function Oo(e, t) {
484
+ return e && re(t, Fe(t), e);
485
+ }
486
+ function Eo(e) {
487
+ var t = [];
488
+ if (e != null)
489
+ for (var n in Object(e))
490
+ t.push(n);
491
+ return t;
492
+ }
493
+ var Ao = Object.prototype, jo = Ao.hasOwnProperty;
494
+ function Po(e) {
495
+ if (!O(e))
496
+ return Eo(e);
497
+ var t = Ve(e), n = [];
498
+ for (var r in e)
499
+ r == "constructor" && (t || !jo.call(e, r)) || n.push(r);
500
+ return n;
501
+ }
502
+ function oe(e) {
503
+ return fe(e) ? Wt(e, !0) : Po(e);
504
+ }
505
+ function Mo(e, t) {
506
+ return e && re(t, oe(t), e);
507
+ }
508
+ var zt = typeof exports == "object" && exports && !exports.nodeType && exports, nt = zt && typeof module == "object" && module && !module.nodeType && module, Co = nt && nt.exports === zt, rt = Co ? j.Buffer : void 0, ot = rt ? rt.allocUnsafe : void 0;
509
+ function Vt(e, t) {
510
+ if (t)
511
+ return e.slice();
512
+ var n = e.length, r = ot ? ot(n) : new e.constructor(n);
513
+ return e.copy(r), r;
514
+ }
515
+ function Ft(e, t) {
516
+ var n = -1, r = e.length;
517
+ for (t || (t = Array(r)); ++n < r; )
518
+ t[n] = e[n];
519
+ return t;
520
+ }
521
+ function Lo(e, t) {
522
+ for (var n = -1, r = e == null ? 0 : e.length, a = 0, o = []; ++n < r; ) {
523
+ var s = e[n];
524
+ t(s, n, e) && (o[a++] = s);
525
+ }
526
+ return o;
527
+ }
528
+ function kt() {
529
+ return [];
530
+ }
531
+ var Io = Object.prototype, Bo = Io.propertyIsEnumerable, at = Object.getOwnPropertySymbols, ke = at ? function(e) {
532
+ return e == null ? [] : (e = Object(e), Lo(at(e), function(t) {
533
+ return Bo.call(e, t);
534
+ }));
535
+ } : kt;
536
+ function Do(e, t) {
537
+ return re(e, ke(e), t);
538
+ }
539
+ function Rt(e, t) {
540
+ for (var n = -1, r = t.length, a = e.length; ++n < r; )
541
+ e[a + n] = t[n];
542
+ return e;
543
+ }
544
+ var Re = Nt(Object.getPrototypeOf, Object), Wo = Object.getOwnPropertySymbols, Ut = Wo ? function(e) {
545
+ for (var t = []; e; )
546
+ Rt(t, ke(e)), e = Re(e);
547
+ return t;
548
+ } : kt;
549
+ function No(e, t) {
550
+ return re(e, Ut(e), t);
551
+ }
552
+ function Ht(e, t, n) {
553
+ var r = t(e);
554
+ return te(e) ? r : Rt(r, n(e));
555
+ }
556
+ function zo(e) {
557
+ return Ht(e, Fe, ke);
558
+ }
559
+ function Vo(e) {
560
+ return Ht(e, oe, Ut);
561
+ }
562
+ var Ee = H(j, "DataView"), Ae = H(j, "Promise"), je = H(j, "Set"), Pe = H(j, "WeakMap"), it = "[object Map]", Fo = "[object Object]", st = "[object Promise]", lt = "[object Set]", ut = "[object WeakMap]", dt = "[object DataView]", ko = U(Ee), Ro = U(x), Uo = U(Ae), Ho = U(je), Go = U(Pe), M = R;
563
+ (Ee && M(new Ee(new ArrayBuffer(1))) != dt || x && M(new x()) != it || Ae && M(Ae.resolve()) != st || je && M(new je()) != lt || Pe && M(new Pe()) != ut) && (M = function(e) {
564
+ var t = R(e), n = t == Fo ? e.constructor : void 0, r = n ? U(n) : "";
565
+ if (r)
566
+ switch (r) {
567
+ case ko:
568
+ return dt;
569
+ case Ro:
570
+ return it;
571
+ case Uo:
572
+ return st;
573
+ case Ho:
574
+ return lt;
575
+ case Go:
576
+ return ut;
577
+ }
578
+ return t;
579
+ });
580
+ var Ko = Object.prototype, Xo = Ko.hasOwnProperty;
581
+ function qo(e) {
582
+ var t = e.length, n = new e.constructor(t);
583
+ return t && typeof e[0] == "string" && Xo.call(e, "index") && (n.index = e.index, n.input = e.input), n;
584
+ }
585
+ var ct = j.Uint8Array;
586
+ function Ue(e) {
587
+ var t = new e.constructor(e.byteLength);
588
+ return new ct(t).set(new ct(e)), t;
589
+ }
590
+ function Yo(e, t) {
591
+ var n = t ? Ue(e.buffer) : e.buffer;
592
+ return new e.constructor(n, e.byteOffset, e.byteLength);
593
+ }
594
+ var Qo = /\w*$/;
595
+ function Jo(e) {
596
+ var t = new e.constructor(e.source, Qo.exec(e));
597
+ return t.lastIndex = e.lastIndex, t;
598
+ }
599
+ var pt = X ? X.prototype : void 0, ft = pt ? pt.valueOf : void 0;
600
+ function Zo(e) {
601
+ return ft ? Object(ft.call(e)) : {};
602
+ }
603
+ function Gt(e, t) {
604
+ var n = t ? Ue(e.buffer) : e.buffer;
605
+ return new e.constructor(n, e.byteOffset, e.length);
606
+ }
607
+ var xo = "[object Boolean]", ea = "[object Date]", ta = "[object Map]", na = "[object Number]", ra = "[object RegExp]", oa = "[object Set]", aa = "[object String]", ia = "[object Symbol]", sa = "[object ArrayBuffer]", la = "[object DataView]", ua = "[object Float32Array]", da = "[object Float64Array]", ca = "[object Int8Array]", pa = "[object Int16Array]", fa = "[object Int32Array]", ga = "[object Uint8Array]", ma = "[object Uint8ClampedArray]", ha = "[object Uint16Array]", ba = "[object Uint32Array]";
608
+ function ya(e, t, n) {
609
+ var r = e.constructor;
610
+ switch (t) {
611
+ case sa:
612
+ return Ue(e);
613
+ case xo:
614
+ case ea:
615
+ return new r(+e);
616
+ case la:
617
+ return Yo(e, n);
618
+ case ua:
619
+ case da:
620
+ case ca:
621
+ case pa:
622
+ case fa:
623
+ case ga:
624
+ case ma:
625
+ case ha:
626
+ case ba:
627
+ return Gt(e, n);
628
+ case ta:
629
+ return new r();
630
+ case na:
631
+ case aa:
632
+ return new r(e);
633
+ case ra:
634
+ return Jo(e);
635
+ case oa:
636
+ return new r();
637
+ case ia:
638
+ return Zo(e);
639
+ }
640
+ }
641
+ var gt = Object.create, va = /* @__PURE__ */ function() {
642
+ function e() {
643
+ }
644
+ return function(t) {
645
+ if (!O(t))
646
+ return {};
647
+ if (gt)
648
+ return gt(t);
649
+ e.prototype = t;
650
+ var n = new e();
651
+ return e.prototype = void 0, n;
652
+ };
653
+ }();
654
+ function Kt(e) {
655
+ return typeof e.constructor == "function" && !Ve(e) ? va(Re(e)) : {};
656
+ }
657
+ var wa = "[object Map]";
658
+ function Ta(e) {
659
+ return W(e) && M(e) == wa;
660
+ }
661
+ var mt = q && q.isMap, $a = mt ? ze(mt) : Ta, Sa = "[object Set]";
662
+ function _a(e) {
663
+ return W(e) && M(e) == Sa;
664
+ }
665
+ var ht = q && q.isSet, Oa = ht ? ze(ht) : _a, Ea = 1, Aa = 2, ja = 4, Xt = "[object Arguments]", Pa = "[object Array]", Ma = "[object Boolean]", Ca = "[object Date]", La = "[object Error]", qt = "[object Function]", Ia = "[object GeneratorFunction]", Ba = "[object Map]", Da = "[object Number]", Yt = "[object Object]", Wa = "[object RegExp]", Na = "[object Set]", za = "[object String]", Va = "[object Symbol]", Fa = "[object WeakMap]", ka = "[object ArrayBuffer]", Ra = "[object DataView]", Ua = "[object Float32Array]", Ha = "[object Float64Array]", Ga = "[object Int8Array]", Ka = "[object Int16Array]", Xa = "[object Int32Array]", qa = "[object Uint8Array]", Ya = "[object Uint8ClampedArray]", Qa = "[object Uint16Array]", Ja = "[object Uint32Array]", h = {};
666
+ h[Xt] = h[Pa] = h[ka] = h[Ra] = h[Ma] = h[Ca] = h[Ua] = h[Ha] = h[Ga] = h[Ka] = h[Xa] = h[Ba] = h[Da] = h[Yt] = h[Wa] = h[Na] = h[za] = h[Va] = h[qa] = h[Ya] = h[Qa] = h[Ja] = !0;
667
+ h[La] = h[qt] = h[Fa] = !1;
668
+ function se(e, t, n, r, a, o) {
669
+ var s, i = t & Ea, l = t & Aa, u = t & ja;
670
+ if (s !== void 0)
671
+ return s;
672
+ if (!O(e))
673
+ return e;
674
+ var d = te(e);
675
+ if (d) {
676
+ if (s = qo(e), !i)
677
+ return Ft(e, s);
678
+ } else {
679
+ var c = M(e), p = c == qt || c == Ia;
680
+ if (Ne(e))
681
+ return Vt(e, i);
682
+ if (c == Yt || c == Xt || p && !a) {
683
+ if (s = l || p ? {} : Kt(e), !i)
684
+ return l ? No(e, Mo(s, e)) : Do(e, Oo(s, e));
685
+ } else {
686
+ if (!h[c])
687
+ return a ? e : {};
688
+ s = ya(e, c, i);
689
+ }
690
+ }
691
+ o || (o = new G());
692
+ var b = o.get(e);
693
+ if (b)
694
+ return b;
695
+ o.set(e, s), Oa(e) ? e.forEach(function(A) {
696
+ s.add(se(A, t, n, A, e, o));
697
+ }) : $a(e) && e.forEach(function(A, _) {
698
+ s.set(_, se(A, t, n, _, e, o));
699
+ });
700
+ var P = u ? l ? Vo : zo : l ? oe : Fe, ae = d ? void 0 : P(e);
701
+ return Cr(ae || e, function(A, _) {
702
+ ae && (_ = A, A = e[_]), Pt(s, _, se(A, t, n, _, e, o));
703
+ }), s;
704
+ }
705
+ var Za = 1, xa = 4;
706
+ function $s(e) {
707
+ return se(e, Za | xa);
708
+ }
709
+ var ei = "Expected a function";
710
+ function Qt(e, t) {
711
+ if (typeof e != "function" || t != null && typeof t != "function")
712
+ throw new TypeError(ei);
713
+ var n = function() {
714
+ var r = arguments, a = t ? t.apply(this, r) : r[0], o = n.cache;
715
+ if (o.has(a))
716
+ return o.get(a);
717
+ var s = e.apply(this, r);
718
+ return n.cache = o.set(a, s) || o, s;
719
+ };
720
+ return n.cache = new (Qt.Cache || N)(), n;
721
+ }
722
+ Qt.Cache = N;
723
+ var ti = "Expected a function";
724
+ function Ss(e, t, n) {
725
+ var r = !0, a = !0;
726
+ if (typeof e != "function")
727
+ throw new TypeError(ti);
728
+ return O(n) && (r = "leading" in n ? !!n.leading : r, a = "trailing" in n ? !!n.trailing : a), jt(e, t, {
729
+ leading: r,
730
+ maxWait: t,
731
+ trailing: a
732
+ });
733
+ }
734
+ function Me(e, t, n) {
735
+ (n !== void 0 && !de(e[t], n) || n === void 0 && !(t in e)) && We(e, t, n);
736
+ }
737
+ function ni(e) {
738
+ return function(t, n, r) {
739
+ for (var a = -1, o = Object(t), s = r(t), i = s.length; i--; ) {
740
+ var l = s[++a];
741
+ if (n(o[l], l, o) === !1)
742
+ break;
743
+ }
744
+ return t;
745
+ };
746
+ }
747
+ var ri = ni();
748
+ function oi(e) {
749
+ return W(e) && fe(e);
750
+ }
751
+ var ai = "[object Object]", ii = Function.prototype, si = Object.prototype, Jt = ii.toString, li = si.hasOwnProperty, ui = Jt.call(Object);
752
+ function di(e) {
753
+ if (!W(e) || R(e) != ai)
754
+ return !1;
755
+ var t = Re(e);
756
+ if (t === null)
757
+ return !0;
758
+ var n = li.call(t, "constructor") && t.constructor;
759
+ return typeof n == "function" && n instanceof n && Jt.call(n) == ui;
760
+ }
761
+ function Ce(e, t) {
762
+ if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
763
+ return e[t];
764
+ }
765
+ function ci(e) {
766
+ return re(e, oe(e));
767
+ }
768
+ function pi(e, t, n, r, a, o, s) {
769
+ var i = Ce(e, n), l = Ce(t, n), u = s.get(l);
770
+ if (u) {
771
+ Me(e, n, u);
772
+ return;
773
+ }
774
+ var d = o ? o(i, l, n + "", e, t, s) : void 0, c = d === void 0;
775
+ if (c) {
776
+ var p = te(l), b = !p && Ne(l), P = !p && !b && Dt(l);
777
+ d = l, p || b || P ? te(i) ? d = i : oi(i) ? d = Ft(i) : b ? (c = !1, d = Vt(l, !0)) : P ? (c = !1, d = Gt(l, !0)) : d = [] : di(l) || Oe(l) ? (d = i, Oe(i) ? d = ci(i) : (!O(i) || De(i)) && (d = Kt(l))) : c = !1;
778
+ }
779
+ c && (s.set(l, d), a(d, l, r, o, s), s.delete(l)), Me(e, n, d);
780
+ }
781
+ function Zt(e, t, n, r, a) {
782
+ e !== t && ri(t, function(o, s) {
783
+ if (a || (a = new G()), O(o))
784
+ pi(e, t, s, n, Zt, r, a);
785
+ else {
786
+ var i = r ? r(Ce(e, s), o, s + "", e, t, a) : void 0;
787
+ i === void 0 && (i = o), Me(e, s, i);
788
+ }
789
+ }, oe);
790
+ }
791
+ function xt(e) {
792
+ return e;
793
+ }
794
+ function fi(e, t, n) {
795
+ switch (n.length) {
796
+ case 0:
797
+ return e.call(t);
798
+ case 1:
799
+ return e.call(t, n[0]);
800
+ case 2:
801
+ return e.call(t, n[0], n[1]);
802
+ case 3:
803
+ return e.call(t, n[0], n[1], n[2]);
804
+ }
805
+ return e.apply(t, n);
806
+ }
807
+ var bt = Math.max;
808
+ function gi(e, t, n) {
809
+ return t = bt(t === void 0 ? e.length - 1 : t, 0), function() {
810
+ for (var r = arguments, a = -1, o = bt(r.length - t, 0), s = Array(o); ++a < o; )
811
+ s[a] = r[t + a];
812
+ a = -1;
813
+ for (var i = Array(t + 1); ++a < t; )
814
+ i[a] = r[a];
815
+ return i[t] = n(s), fi(e, this, i);
816
+ };
817
+ }
818
+ function mi(e) {
819
+ return function() {
820
+ return e;
821
+ };
822
+ }
823
+ var hi = ue ? function(e, t) {
824
+ return ue(e, "toString", {
825
+ configurable: !0,
826
+ enumerable: !1,
827
+ value: mi(t),
828
+ writable: !0
829
+ });
830
+ } : xt, bi = 800, yi = 16, vi = Date.now;
831
+ function wi(e) {
832
+ var t = 0, n = 0;
833
+ return function() {
834
+ var r = vi(), a = yi - (r - n);
835
+ if (n = r, a > 0) {
836
+ if (++t >= bi)
837
+ return arguments[0];
838
+ } else
839
+ t = 0;
840
+ return e.apply(void 0, arguments);
841
+ };
842
+ }
843
+ var Ti = wi(hi);
844
+ function $i(e, t) {
845
+ return Ti(gi(e, t, xt), e + "");
846
+ }
847
+ function Si(e, t, n) {
848
+ if (!O(n))
849
+ return !1;
850
+ var r = typeof t;
851
+ return (r == "number" ? fe(n) && Lt(t, n.length) : r == "string" && t in n) ? de(n[t], e) : !1;
852
+ }
853
+ function _i(e) {
854
+ return $i(function(t, n) {
855
+ var r = -1, a = n.length, o = a > 1 ? n[a - 1] : void 0, s = a > 2 ? n[2] : void 0;
856
+ for (o = e.length > 3 && typeof o == "function" ? (a--, o) : void 0, s && Si(n[0], n[1], s) && (o = a < 3 ? void 0 : o, a = 1), t = Object(t); ++r < a; ) {
857
+ var i = n[r];
858
+ i && e(t, i, r, o);
859
+ }
860
+ return t;
861
+ });
862
+ }
863
+ var _s = _i(function(e, t, n) {
864
+ Zt(e, t, n);
865
+ });
866
+ const Oi = 100, He = /* @__PURE__ */ new Map(), ie = {
867
+ width: window.innerWidth,
868
+ height: window.innerHeight
869
+ }, Ei = (e) => {
870
+ He.set(e, e);
871
+ }, Ai = (e) => {
872
+ He.delete(e);
873
+ }, ji = jt((e) => {
874
+ const t = e;
875
+ t.topEvent = {
876
+ widthDiff: ie.width - window.innerWidth,
877
+ hightDiff: ie.height - window.innerHeight
878
+ }, ie.width = window.innerWidth, ie.height = window.innerHeight, He.forEach((n) => n(t));
879
+ }, Oi);
880
+ window.addEventListener("resize", ji);
881
+ const Pi = {
882
+ addOnReize: Ei,
883
+ removeOnResize: Ai
884
+ };
885
+ var wt;
886
+ const K = {
887
+ /**
888
+ * Имя темы оформления
889
+ *
890
+ * В данный момент не используется для загрузки css
891
+ *
892
+ * @todo Реализовать загрузки и замену css темы на стороне UI
893
+ *
894
+ * @see https://ui.topvisor.com/?path=/docs/core-theme--docs
895
+ */
896
+ themeName: "light",
897
+ /**
898
+ * CSS-классы модификаторы для документа страницы
899
+ *
900
+ * Могут испоьзвоаться компонентами для включения необхоимых режимов отображения страницы
901
+ *
902
+ * Разные компоненты могут добавлять один и тот же класс, чтобы не было конфликтов каждый компонент управляет только своим классом:
903
+ * - Ключ - уникальное имя компонента, например в setup: `const uid = Math.random();`
904
+ * - Значение - класс модификатора
905
+ */
906
+ documentClassModificators: /* @__PURE__ */ new Map(),
907
+ /**
908
+ * Базовая ширина страницы для отображения ПК / Мобильной версии сайта
909
+ *
910
+ * @see Core state isMobile
911
+ */
912
+ widthForMobile: 900,
913
+ /**
914
+ * Формат даты, который будет испоьзоваться по умолчанию для вывода даты, как правило, завсит от текущего пользователя
915
+ */
916
+ dateFormat: "Y-m-d",
917
+ /**
918
+ * Валюта, которая будет испоьзоваться по умолчанию, как правило, завсит от текущего пользователя
919
+ */
920
+ currency: "USD",
921
+ /**
922
+ * Для Москвы: +0300
923
+ */
924
+ gmt: (wt = (/* @__PURE__ */ new Date()).toString().match(/GMT(\S+)/)) == null ? void 0 : wt[1]
925
+ }, Mi = {
926
+ /**
927
+ * CSS-классы модификаторы для документа страницы
928
+ */
929
+ documentClassModificators: K.documentClassModificators,
930
+ dateFormat: K.dateFormat,
931
+ currency: K.currency,
932
+ gmt: K.gmt,
933
+ /**
934
+ * Device by size
935
+ *
936
+ * @see Core widthForMobile
937
+ */
938
+ isMobile: !1,
939
+ /**
940
+ * Device by user agent
941
+ */
942
+ isMobileUA: !1,
943
+ /**
944
+ * true, если плотность пикселей экрана больше 1
945
+ */
946
+ isRetina: !1,
947
+ /**
948
+ * true, елси это приложение
949
+ */
950
+ isApp: !1,
951
+ /**
952
+ * true при горизонтальном расположении устройства
953
+ */
954
+ isLandscape: !0,
955
+ /**
956
+ * true при вертикальном расположении устройства
957
+ */
958
+ isPortrait: !1,
959
+ /**
960
+ * Максимальная сторона страницы
961
+ */
962
+ size: 0,
963
+ /**
964
+ * true, если страница скрыта
965
+ *
966
+ * Не меняйте это значение вручную
967
+ */
968
+ isHidden: !1
969
+ };
970
+ class f {
971
+ static state = $e({ ...Mi });
972
+ static widthForMobile = K.widthForMobile;
973
+ static themeName = K.themeName;
974
+ static matchMediaIsMobile;
975
+ static $ = $;
976
+ static Events = Pi;
977
+ /**
978
+ * Различные флаги, необходимые для работы UI
979
+ */
980
+ static flags = $e({ needLoadNotice: !1 });
981
+ static _setState() {
982
+ this.$ = $, f.matchMediaIsMobile = window.matchMedia(`(max-width: ${f.widthForMobile}px)`), f.state.isMobileUA = fn(), f.state.isRetina = pn(), f.state.isApp = gn(), f.useDocumentClassModificators(), f.useIsHidden(), f.setStateByWindowSize(), f.Events.addOnReize(f.onResize), f.onResize(), f.saveToCookie(), f.useCtrlClasses();
983
+ }
984
+ static useDocumentClassModificators() {
985
+ Tt(() => [...f.state.documentClassModificators], (t, n) => {
986
+ let r = /* @__PURE__ */ new Set();
987
+ n == null || n.forEach(([a, o]) => r.add(o)), t.forEach(([a, o]) => r.delete(o)), r.forEach((a) => document.documentElement.classList.remove(a)), t.forEach(([a, o]) => document.documentElement.classList.add(o));
988
+ }, { immediate: !0 });
989
+ }
990
+ static useIsHidden() {
991
+ document.addEventListener("visibilitychange", () => {
992
+ f.state.isHidden = document.hidden;
993
+ }), f.state.isHidden = document.hidden;
994
+ }
995
+ static setStateByWindowSize() {
996
+ var t;
997
+ f.state.isMobile = !!((t = f.matchMediaIsMobile) != null && t.matches), f.state.isLandscape = window.innerWidth > window.innerHeight, f.state.isPortrait = !f.state.isLandscape, f.state.size = window.innerWidth > window.innerHeight ? window.innerWidth : window.innerHeight, f.saveToCookie();
998
+ }
999
+ static onResize() {
1000
+ f.setStateByWindowSize();
1001
+ }
1002
+ /**
1003
+ * Сохранить информацию об устройстве в cookie
1004
+ */
1005
+ static saveToCookie() {
1006
+ const t = [
1007
+ 1,
1008
+ window.innerWidth,
1009
+ window.innerHeight,
1010
+ window.devicePixelRatio,
1011
+ Number(f.state.isMobile),
1012
+ Number(f.state.isRetina)
1013
+ ];
1014
+ document.cookie = "device=" + t.join(",") + "; path=/;";
1015
+ }
1016
+ /**
1017
+ * Добавить установку класса при нажатии ctrl (cmd) / alt
1018
+ */
1019
+ static useCtrlClasses() {
1020
+ const t = document.body.classList;
1021
+ document.addEventListener("keydown", (n) => {
1022
+ (n.ctrlKey || n.metaKey) && t.add("top-body-press_ctrl"), n.altKey && t.add("top-body-press_alt");
1023
+ }), document.addEventListener("keyup", () => t.remove("top-body-press_ctrl", "top-body-press_alt")), document.addEventListener("keypress", () => t.remove("top-body-press_ctrl", "top-body-press_alt")), window.addEventListener("blur", () => t.remove("top-body-press_ctrl", "top-body-press_alt"));
1024
+ }
1025
+ /**
1026
+ * Вывести на экране сообщение в стилизации под push уведомление
1027
+ *
1028
+ * Для удобства работы со словарем, принимает один парамтер `text` и первую строку из него использует как `title`.
1029
+ * Данное поведение можно изменить, передав в параметрах `options.title`
1030
+ *
1031
+ * Для вывода используется компонент TopNotice, требует его подклчючения
1032
+ *
1033
+ * @docs https://ui.topvisor.com/?path=/docs/components-core-notice--docs
1034
+ */
1035
+ static notice = async (t, n, r) => (f.flags.needLoadNotice = !0, (await import("./notice-DRCVp0mf.es.js")).show(t, n, r));
1036
+ /**
1037
+ * Вставить css стили на страницу по ссылке с автоматическим добавлением правил media
1038
+ *
1039
+ * Правила media:
1040
+ * - Файлы *.m.css будут грузиться, только на экранах с шириной менее, чем Core.widthForMobile
1041
+ * - Файлы *.pc.css будут грузиться, только на экранах с шириной более, чем Core.widthForMobile
1042
+ *
1043
+ * Настройкой Core.widthForMobile можно управлять через plugin: @topvisor/ui/plugin/core
1044
+ *
1045
+ * @param fileNames - список ссылок на css файлы
1046
+ * @param useSync - использовать синхронную загрузку css, только для css с того же домена. В синхронном режиме стили предзагружаются независимо от
1047
+ * media
1048
+ */
1049
+ static insertCSSLinkToPage = (t, n = !1) => {
1050
+ const r = /* @__PURE__ */ new Map();
1051
+ r.set("::", []), t.forEach((o) => {
1052
+ let s = !1, i = !1;
1053
+ o.match(/\.m\./) && (s = !0), o.match(/\.pc\./) && (i = !0);
1054
+ const l = `${s}:${i}`;
1055
+ r.has(l) || r.set(`${s}:${i}`, []), r.get(`${s}:${i}`).push(o);
1056
+ });
1057
+ const a = [];
1058
+ return r.forEach((o, s) => {
1059
+ if (!o.length)
1060
+ return;
1061
+ const [i, l] = s.split(":").map((c) => c === "true");
1062
+ let u = "all";
1063
+ i && (u = "(max-width: " + f.widthForMobile + "px)"), l && (u = "(min-width: " + f.widthForMobile + "px)"), f._insertToPage(o, u, n).forEach((c) => a.push(c));
1064
+ }), Promise.all(a);
1065
+ };
1066
+ static _insertToPage = (t, n, r) => {
1067
+ const a = [];
1068
+ return t.forEach((o) => {
1069
+ if (r) {
1070
+ const c = new XMLHttpRequest();
1071
+ c.open("GET", o, !1), c.send();
1072
+ }
1073
+ const s = "topCSSLink-" + o.replace(/\W/g, "-");
1074
+ if (window.hasOwnProperty(s)) return;
1075
+ let i, l;
1076
+ const u = new Promise((c, p) => {
1077
+ i = c, l = p;
1078
+ });
1079
+ a.push(u);
1080
+ const d = document.createElement("link");
1081
+ d.id = s, d.rel = "stylesheet", d.media = n, d.href = o, d.onload = () => i(), d.onerror = () => l(), document.head.append(d);
1082
+ }), a;
1083
+ };
1084
+ /**
1085
+ * Вставить css стили на страницу с автоматическим добавлением правил media
1086
+ *
1087
+ * Загрузка с Vite:
1088
+ *
1089
+ * ```js
1090
+ * import style from '/style.css?inline';
1091
+ *
1092
+ * insertToPageAsInine(style);
1093
+ * ```
1094
+ *
1095
+ * Загрузка с fetch:
1096
+ *
1097
+ * ```js
1098
+ * const style = await fetch('./style.css');
1099
+ *
1100
+ * insertToPageAsInine(style);
1101
+ * ```
1102
+ *
1103
+ * @param style - css стили в строке
1104
+ * @param type - если указать 'm' или 'pc', то стили будут применяться по условию в зависимости от настройки this.widthForMobile
1105
+ *
1106
+ * @see insertToPage
1107
+ */
1108
+ static insertStyleToPage = (t, n = "") => {
1109
+ let r = "all";
1110
+ n === "m" && (r = "(max-width: " + f.widthForMobile + "px)"), n === "pc" && (r = "(min-width: " + f.widthForMobile + "px)");
1111
+ const a = document.createElement("style");
1112
+ a.innerHTML = t, a.media = r, document.head.append(a);
1113
+ };
1114
+ }
1115
+ const Os = {
1116
+ install: (e, t) => {
1117
+ e.config.globalProperties.$i18n = $e(t.i18n), e.config.globalProperties.$i18nLang = Ie(t.lang), e.config.globalProperties.$i18nSetLang = () => {
1118
+ }, e.config.globalProperties.i18n = e.config.globalProperties.$i18n, typeof window < "u" && window.requirejs && (e.config.globalProperties.$i18nSetLang = async (n, r) => {
1119
+ await window.requirejs("i18n").setLang(n, r);
1120
+ const a = window.requirejs("i18n").categories[n];
1121
+ Object.keys(a).forEach((o) => {
1122
+ e.config.globalProperties.$i18n[o] = a[o];
1123
+ }), e.config.globalProperties.$i18nLang.value = n;
1124
+ }), typeof window < "u" && !window.requirejs && (globalThis.$i18n = e.config.globalProperties.$i18n), e.provide("$i18n", e.config.globalProperties.$i18n), e.provide("$i18nLang", e.config.globalProperties.$i18nLang), e.provide("$i18nSetLang", e.config.globalProperties.$i18nSetLang), e.provide("i18n", e.config.globalProperties.i18n);
1125
+ }
1126
+ }, ge = () => {
1127
+ var e, t;
1128
+ return !Se() && ((t = (e = window.mo) == null ? void 0 : e.user) != null && t.lang) ? requirejs("i18n").categories[mo.user.lang] : !Se() && globalThis.$i18n ? globalThis.$i18n : Be("$i18n");
1129
+ }, Es = () => {
1130
+ var e, t;
1131
+ return !Se() && ((t = (e = window.mo) == null ? void 0 : e.user) != null && t.lang) ? Ie(mo.user.lang) : Be("$i18nLang");
1132
+ }, As = () => Be("$i18nSetLang"), js = (e, t, n) => {
1133
+ const r = ge().Calendar;
1134
+ switch (new Date(e, --t, n).getDay()) {
1135
+ case 0:
1136
+ return r.Dw_1 + ".";
1137
+ case 1:
1138
+ return r.Dw_2 + ".";
1139
+ case 2:
1140
+ return r.Dw_3 + ".";
1141
+ case 3:
1142
+ return r.Dw_4 + ".";
1143
+ case 4:
1144
+ return r.Dw_5 + ".";
1145
+ case 5:
1146
+ return r.Dw_6 + ".";
1147
+ case 6:
1148
+ return r.Dw_7 + ".";
1149
+ default:
1150
+ return "";
1151
+ }
1152
+ }, Ps = (e, t = !0, n = 2) => {
1153
+ let r = String(e.getFullYear()), a = String(e.getDate()).padStart(2, "0"), o = String(e.getMonth() + 1).padStart(2, "0"), s = String(e.getHours()).padStart(2, "0"), i = String(e.getMinutes()).padStart(2, "0"), l = String(e.getSeconds()).padStart(2, "0"), u = r + "-" + o + "-" + a;
1154
+ return n >= 1 && (u += " " + s), n >= 2 && (u += ":" + i), n === 3 && (u += ":" + l), t && (u = Y(u, n)), u;
1155
+ };
1156
+ function Ms(e) {
1157
+ return e.indexOf("T") === -1 && (e.length == 10 && (e += " 00:00:00"), e = e.replace(" ", "T") + f.state.gmt), new Date(e);
1158
+ }
1159
+ function Ci(e, t = !0, n = 0) {
1160
+ e || (e = (/* @__PURE__ */ new Date()).getTime());
1161
+ const r = new Date(e), a = r.getFullYear(), o = String(r.getMonth() + 1).padStart(2, "0"), s = r.getDate().toString().padStart(2, "0"), i = r.getHours().toString().padStart(2, "0"), l = r.getMinutes().toString().padStart(2, "0"), u = r.getSeconds().toString().padStart(2, "0");
1162
+ n === "auto" && (n = 0, r.getHours() && (n = 1), r.getMinutes() && (n = 2), r.getSeconds() && (n = 3));
1163
+ let d = a + "-" + o + "-" + s;
1164
+ return n && (d += " "), n >= 1 && (d += i), n >= 2 && (d += ":" + l), n >= 3 && (d += ":" + u), t && (d = Y(r, n)), d;
1165
+ }
1166
+ function Cs(e, t = !0) {
1167
+ const r = (/* @__PURE__ */ new Date()).getTimezoneOffset() / 60 * -1 * 60 * 60 * 1e3, a = 3 * 60 * 60 * 1e3;
1168
+ let o;
1169
+ e !== void 0 ? o = new Date(e) : o = /* @__PURE__ */ new Date(), o.setTime(o.getTime() - r + a);
1170
+ let s = String(o.getFullYear()), i = String(o.getDate()).padStart(2, "0"), l = String(o.getMonth() + 1).padStart(2, "0"), u = String(o.getHours()).padStart(2, "0"), d = String(o.getMinutes()).padStart(2, "0"), c = String(o.getSeconds()).padStart(2, "0"), p = s + "-" + l + "-" + i + " " + u + ":" + d + ":" + c;
1171
+ return t && (p = Y(p)), p;
1172
+ }
1173
+ function Y(e, t = 2, n, r) {
1174
+ if (r || (r = ge().Common.Not_date), typeof e == "string" && (!e || e.substring(0, 10) === "0000-00-00") && r && r !== "0000-00-00" || !e) return r;
1175
+ n || (n = f.state.dateFormat), n = n.toLowerCase().replace("m", "mm").replace("y", "yy").replace("d", "dd");
1176
+ let a;
1177
+ if (e instanceof Date)
1178
+ a = e;
1179
+ else {
1180
+ let s = e.substring(0, 10);
1181
+ if (s.length === 7 && (s += "-01"), s += " 00:00", s = s.replace(/-/g, "/"), a = new Date(s), isNaN(Number(a))) return r;
1182
+ }
1183
+ let o = "";
1184
+ if (n && window.$ && (o = $.datepicker.formatDate(n, a)), t && typeof e == "string" && e.length > 10 || t && e instanceof Date) {
1185
+ let s = "";
1186
+ if (e instanceof Date)
1187
+ s = (/* @__PURE__ */ new Date()).toLocaleTimeString("en-US", {
1188
+ hour12: !1,
1189
+ hour: "numeric",
1190
+ minute: t >= 2 ? "numeric" : void 0,
1191
+ second: t >= 3 ? "numeric" : void 0
1192
+ });
1193
+ else
1194
+ switch (t) {
1195
+ case 1:
1196
+ s = e.substring(11, 13);
1197
+ break;
1198
+ case 2:
1199
+ s = e.substring(11, 16);
1200
+ break;
1201
+ case 3:
1202
+ s = e.substring(11, 19);
1203
+ break;
1204
+ }
1205
+ o += " " + s;
1206
+ }
1207
+ return o = o.trim(), o;
1208
+ }
1209
+ function yt(e, t) {
1210
+ if (t || (t = ge().Common.Not_date), !e)
1211
+ return t;
1212
+ if (e.match(/\d\d\d\d-\d\d-\d\d/))
1213
+ return e;
1214
+ const n = f.state.dateFormat.toLowerCase(), r = e.split(/\W/), a = n.split(/\W/);
1215
+ let o = "", s = "", i = "";
1216
+ a.forEach((u, d) => {
1217
+ switch (u) {
1218
+ case "d":
1219
+ o = r[d];
1220
+ break;
1221
+ case "m":
1222
+ s = r[d];
1223
+ break;
1224
+ case "y":
1225
+ i = r[d];
1226
+ break;
1227
+ }
1228
+ });
1229
+ let l = i + "-" + s + "-" + o;
1230
+ return l.match(/\d\d\d\d-\d\d-\d\d/) || (console.info("Неверный формат даты, будет возращена текущая дата, " + l), l = Ci((/* @__PURE__ */ new Date()).getTime(), !1).substring(0, 10)), l;
1231
+ }
1232
+ const Li = { class: "top-avatar" }, Ii = ["src", "title"], Bi = ["title"], Di = /* @__PURE__ */ E({
1233
+ __name: "avatar",
1234
+ props: {
1235
+ size: { default: 64 },
1236
+ image: {},
1237
+ nickname: {},
1238
+ isOnline: { type: Boolean },
1239
+ lastActiveTime: {},
1240
+ i18n: { default: () => ({
1241
+ Online: "Online",
1242
+ LastSeen: "Last seen"
1243
+ }) }
1244
+ },
1245
+ setup(e) {
1246
+ $t((a) => ({
1247
+ "3ce69dc2": a.size + "px"
1248
+ }));
1249
+ const t = e, n = S(() => {
1250
+ var a, o;
1251
+ if (t.isOnline)
1252
+ return (a = t.i18n) == null ? void 0 : a.Online;
1253
+ if (t.lastActiveTime)
1254
+ return ((o = t.i18n) == null ? void 0 : o.LastSeen) + ": " + Y(t.lastActiveTime, 2);
1255
+ }), r = S(() => t.nickname ? t.nickname + (n.value ? `
1256
+ ${n.value}` : "") : n.value);
1257
+ return (a, o) => (g(), m("div", Li, [
1258
+ L("img", {
1259
+ class: "top-avatar_image",
1260
+ src: a.image,
1261
+ title: r.value,
1262
+ alt: ""
1263
+ }, null, 8, Ii),
1264
+ a.isOnline ? (g(), m("div", {
1265
+ key: 0,
1266
+ class: "top-avatar_status",
1267
+ title: n.value
1268
+ }, null, 8, Bi)) : w("", !0)
1269
+ ]));
1270
+ }
1271
+ }), Wi = ["data-top-badge"], Ni = {
1272
+ key: 1,
1273
+ class: "top-ellipsis"
1274
+ }, zi = /* @__PURE__ */ E({
1275
+ __name: "button",
1276
+ props: {
1277
+ color: { default: "blue" },
1278
+ styling: { default: "" },
1279
+ size: { default: "s" },
1280
+ name: {},
1281
+ title: {},
1282
+ icon: {},
1283
+ icon2: {},
1284
+ href: {},
1285
+ badgeNumber: {},
1286
+ badgePosAfterText: { type: Boolean },
1287
+ disabled: { type: Boolean },
1288
+ isSubmit: { type: Boolean },
1289
+ isActive: { type: Boolean },
1290
+ isProgress: { type: Boolean }
1291
+ },
1292
+ setup(e) {
1293
+ const t = e, n = S(() => t.href ? "a" : "button"), r = S(() => t.isSubmit ? "submit" : void 0);
1294
+ return (a, o) => (g(), D(on(n.value), {
1295
+ class: T({
1296
+ "top-active": a.isActive,
1297
+ "top-disabled": a.disabled,
1298
+ "top-forms-focusable": !a.disabled,
1299
+ "top-button": !0,
1300
+ "top-button-progress": a.isProgress,
1301
+ [`top-size_${a.size}`]: !!a.size,
1302
+ [`top-color_${a.color}`]: !0,
1303
+ [`top-style_${a.styling}`]: !!a.styling,
1304
+ "top-button-withoutText": !a.$slots.default
1305
+ }),
1306
+ name: a.name,
1307
+ title: a.title,
1308
+ href: a.href,
1309
+ type: r.value,
1310
+ "data-top-icon": a.icon || void 0,
1311
+ "data-top-icon2": a.icon2 || void 0,
1312
+ disabled: a.disabled || void 0,
1313
+ inProgress: a.isProgress
1314
+ }, {
1315
+ default: ne(() => [
1316
+ a.badgeNumber ? (g(), m("span", {
1317
+ key: 0,
1318
+ "data-top-badge": a.badgeNumber,
1319
+ class: T(["top-button_badge", {
1320
+ "top-button_badge-afterText": a.badgePosAfterText
1321
+ }])
1322
+ }, null, 10, Wi)) : w("", !0),
1323
+ a.$slots.default ? (g(), m("span", Ni, [
1324
+ C(a.$slots, "default", {}, () => [
1325
+ an(z(a.icon ? "" : "Button"), 1)
1326
+ ])
1327
+ ])) : w("", !0),
1328
+ C(a.$slots, "html")
1329
+ ]),
1330
+ _: 3
1331
+ }, 8, ["class", "name", "title", "href", "type", "data-top-icon", "data-top-icon2", "disabled", "inProgress"]));
1332
+ }
1333
+ }), Vi = { class: "top-forms-optionLabel" }, me = /* @__PURE__ */ E({
1334
+ __name: "controlLabel",
1335
+ props: {
1336
+ description: {},
1337
+ disabled: { type: Boolean }
1338
+ },
1339
+ setup(e) {
1340
+ return (t, n) => (g(), m("div", Vi, [
1341
+ L("div", {
1342
+ class: T({
1343
+ "top-forms-optionLabel_title": !0,
1344
+ "top-forms-optionLabel_title-disabled": t.disabled
1345
+ })
1346
+ }, [
1347
+ C(t.$slots, "default")
1348
+ ], 2),
1349
+ t.description ? (g(), m("div", {
1350
+ key: 0,
1351
+ class: T(["top-forms-optionLabel_description", { "top-forms-optionLabel_description-disabled": t.disabled }])
1352
+ }, z(t.description), 3)) : w("", !0)
1353
+ ]));
1354
+ }
1355
+ }), Fi = ["name", "value", "indeterminate", "disabled"], ki = /* @__PURE__ */ E({
1356
+ __name: "checkbox",
1357
+ props: /* @__PURE__ */ _e({
1358
+ modelValue: { type: [Boolean, Array, Set] },
1359
+ name: {},
1360
+ value: {},
1361
+ description: {},
1362
+ disabled: { type: Boolean },
1363
+ indeterminate: { type: Boolean },
1364
+ isError: { type: Boolean }
1365
+ }, {
1366
+ modelValue: { type: [Boolean, Array, Set] },
1367
+ modelModifiers: {}
1368
+ }),
1369
+ emits: ["update:modelValue"],
1370
+ setup(e) {
1371
+ const t = St(e, "modelValue");
1372
+ return (n, r) => {
1373
+ const a = V("top-focus");
1374
+ return g(), m("label", {
1375
+ class: T({
1376
+ "top-forms-optionWrapper": !0,
1377
+ "top-checkbox": !0,
1378
+ ["top-checkbox_" + n.name]: !!n.name,
1379
+ "top-disabled": n.disabled,
1380
+ "top-error": n.isError && !n.disabled
1381
+ })
1382
+ }, [
1383
+ F(L("input", {
1384
+ type: "checkbox",
1385
+ class: T({
1386
+ "top-forms-focusable": !n.disabled,
1387
+ "top-forms-option": !0,
1388
+ "top-checkbox_input": !0,
1389
+ "top-error": n.isError && !n.disabled
1390
+ }),
1391
+ name: n.name,
1392
+ "onUpdate:modelValue": r[0] || (r[0] = (o) => t.value = o),
1393
+ value: n.value,
1394
+ indeterminate: n.indeterminate,
1395
+ disabled: n.disabled
1396
+ }, null, 10, Fi), [
1397
+ [
1398
+ a,
1399
+ n.isError,
1400
+ void 0,
1401
+ { onupdate: !0 }
1402
+ ],
1403
+ [_t, t.value]
1404
+ ]),
1405
+ n.$slots.default ? (g(), D(me, {
1406
+ key: 0,
1407
+ description: n.description,
1408
+ disabled: n.disabled
1409
+ }, {
1410
+ default: ne(() => [
1411
+ C(n.$slots, "default")
1412
+ ]),
1413
+ _: 3
1414
+ }, 8, ["description", "disabled"])) : w("", !0)
1415
+ ], 2);
1416
+ };
1417
+ }
1418
+ }), Ri = ["title"], en = /* @__PURE__ */ E({
1419
+ __name: "hint",
1420
+ props: {
1421
+ hint: {}
1422
+ },
1423
+ setup(e) {
1424
+ return (t, n) => (g(), m("span", {
1425
+ class: "top-hint",
1426
+ "data-top-icon": "",
1427
+ title: t.hint
1428
+ }, null, 8, Ri));
1429
+ }
1430
+ }), Ui = (e, t) => {
1431
+ const n = e.__vccOpts || e;
1432
+ for (const [r, a] of t)
1433
+ n[r] = a;
1434
+ return n;
1435
+ }, Hi = {}, Gi = { class: "top-loadbar" };
1436
+ function Ki(e, t) {
1437
+ return g(), m("div", Gi);
1438
+ }
1439
+ const tn = /* @__PURE__ */ Ui(Hi, [["render", Ki]]), Xi = ["data-top-icon", "data-top-icon2"], qi = ["name", "title", "placeholder", "disabled", "readonly"], Yi = {
1440
+ key: 2,
1441
+ class: "top-formsCaption"
1442
+ }, Le = /* @__PURE__ */ E({
1443
+ inheritAttrs: !1,
1444
+ __name: "input",
1445
+ props: {
1446
+ modelValue: {},
1447
+ name: {},
1448
+ disabled: { type: Boolean },
1449
+ readonly: { type: Boolean },
1450
+ modificator: {},
1451
+ size: { default: "s" },
1452
+ isError: { type: Boolean },
1453
+ isLoading: { type: Boolean },
1454
+ icon: {},
1455
+ icon2: {},
1456
+ addCleaner: { type: Boolean },
1457
+ title: {},
1458
+ captionType: { default: "" }
1459
+ },
1460
+ emits: ["update:modelValue"],
1461
+ setup(e, { emit: t }) {
1462
+ const n = e, r = t, a = S({
1463
+ get() {
1464
+ return n.modelValue;
1465
+ },
1466
+ set(i) {
1467
+ r("update:modelValue", i);
1468
+ }
1469
+ }), o = S(() => n.addCleaner && !n.title || n.captionType !== "" ? "" : n.title), s = (i) => {
1470
+ n.modelValue && i.stopPropagation(), r("update:modelValue", "");
1471
+ };
1472
+ return (i, l) => {
1473
+ const u = V("top-focus");
1474
+ return g(), m("label", {
1475
+ class: T({
1476
+ "top-input": !0,
1477
+ ["top-size_" + i.size]: !0,
1478
+ "top-disabled": i.disabled,
1479
+ ["top-input-" + i.modificator]: !!i.modificator,
1480
+ "top-input-withCleaner": i.addCleaner && a.value && a.value !== "0000-00-00",
1481
+ "top-formsCaptionWrapper": i.captionType !== "",
1482
+ "top-formsCaptionWrapper-always": i.captionType === "top"
1483
+ }),
1484
+ "data-top-icon": i.icon,
1485
+ "data-top-icon2": i.icon2
1486
+ }, [
1487
+ i.isLoading ? (g(), D(tn, { key: 0 })) : w("", !0),
1488
+ F(L("input", le({
1489
+ type: "text",
1490
+ class: {
1491
+ "top-input_input": !0,
1492
+ ["top-input_input-" + i.modificator]: !!i.modificator,
1493
+ "top-forms-focusable": !i.disabled,
1494
+ "top-error": i.isError
1495
+ },
1496
+ autocomplete: "off_always",
1497
+ name: i.name,
1498
+ "onUpdate:modelValue": l[0] || (l[0] = (d) => a.value = d),
1499
+ title: i.title,
1500
+ placeholder: o.value,
1501
+ disabled: i.disabled,
1502
+ readonly: i.readonly,
1503
+ onKeydown: l[1] || (l[1] = sn((d) => (i.addCleaner || !!i.$slots.btn) && s(d), ["esc"]))
1504
+ }, i.$attrs), null, 16, qi), [
1505
+ [
1506
+ u,
1507
+ i.isError,
1508
+ void 0,
1509
+ { onupdate: !0 }
1510
+ ],
1511
+ [Ot, a.value]
1512
+ ]),
1513
+ i.addCleaner && a.value && a.value !== "0000-00-00" ? (g(), m("span", {
1514
+ key: 1,
1515
+ class: "top-input_cleaner",
1516
+ "data-top-icon": "",
1517
+ onClick: ln(s, ["prevent"])
1518
+ })) : w("", !0),
1519
+ i.captionType !== "" ? (g(), m("span", Yi, z(i.title), 1)) : w("", !0),
1520
+ C(i.$slots, "default")
1521
+ ], 10, Xi);
1522
+ };
1523
+ }
1524
+ }), Qi = ["modelValue"], Ji = !!document.documentElement.ontouchstart && !!document.createElement("input").showPicker;
1525
+ let vt = (e) => {
1526
+ };
1527
+ const Zi = /* @__PURE__ */ E({
1528
+ __name: "inputDate",
1529
+ props: {
1530
+ modelValue: {},
1531
+ name: {},
1532
+ disabled: { type: Boolean },
1533
+ readonly: { type: Boolean },
1534
+ modificator: {},
1535
+ size: {},
1536
+ isError: { type: Boolean },
1537
+ isLoading: { type: Boolean },
1538
+ icon: {},
1539
+ icon2: { default: "" },
1540
+ addCleaner: { type: Boolean },
1541
+ title: {},
1542
+ captionType: {}
1543
+ },
1544
+ emits: ["update:modelValue"],
1545
+ setup(e, { emit: t }) {
1546
+ const n = ge(), r = e, a = t;
1547
+ un(() => {
1548
+ s && s.datepicker("destroy");
1549
+ });
1550
+ const o = Ie();
1551
+ let s;
1552
+ const i = S({
1553
+ get() {
1554
+ return Y(r.modelValue, 2, void 0, "0000-00-00");
1555
+ },
1556
+ set(c) {
1557
+ c = yt(c, "0000-00-00"), a("update:modelValue", c);
1558
+ }
1559
+ });
1560
+ let l = (c) => {
1561
+ vt(c);
1562
+ }, u = (c) => {
1563
+ const p = yt(c.target.value), b = Y(p);
1564
+ if (!b || b === n.Common.Not_date || c.target.value !== b) {
1565
+ c.target.value = i.value;
1566
+ return;
1567
+ }
1568
+ i.value = c.target.value;
1569
+ };
1570
+ async function d(c) {
1571
+ const p = await import("./datepicker-CUB0U_lQ.es.js");
1572
+ vt = p.oninput, s = p.connectDatepicker(c.target, {
1573
+ onSelect: () => u(c)
1574
+ }), s && s.datepicker("show");
1575
+ }
1576
+ return (c, p) => be(Ji) ? (g(), D(Le, le({ key: 0 }, c.$props, {
1577
+ modelValue: i.value,
1578
+ readonly: "",
1579
+ onClick: p[1] || (p[1] = (b) => o.value.showPicker())
1580
+ }), {
1581
+ default: ne(() => [
1582
+ L("input", {
1583
+ ref_key: "el",
1584
+ ref: o,
1585
+ type: "date",
1586
+ class: "top-input_input-date",
1587
+ modelValue: c.modelValue,
1588
+ onChange: p[0] || (p[0] = (b) => i.value = b.target.value),
1589
+ tabindex: "-1"
1590
+ }, null, 40, Qi)
1591
+ ]),
1592
+ _: 1
1593
+ }, 16, ["modelValue"])) : (g(), D(Le, le({ key: 1 }, c.$props, {
1594
+ modelValue: i.value,
1595
+ "onUpdate:modelValue": p[2] || (p[2] = (b) => b === "" ? i.value = "" : ""),
1596
+ onInput: be(l),
1597
+ onFocusOnce: d,
1598
+ onChange: be(u),
1599
+ modificator: "datepicker"
1600
+ }), null, 16, ["modelValue", "onInput", "onChange"]));
1601
+ }
1602
+ }), xi = { class: "top-inputRange" }, es = /* @__PURE__ */ E({
1603
+ __name: "inputRange",
1604
+ setup(e) {
1605
+ return (t, n) => (g(), m("div", xi, [
1606
+ C(t.$slots, "from"),
1607
+ n[0] || (n[0] = L("span", { class: "top-inputRange_dash" }, " — ", -1)),
1608
+ C(t.$slots, "to")
1609
+ ]));
1610
+ }
1611
+ }), ts = ["name", "value", "disabled"], ns = /* @__PURE__ */ E({
1612
+ __name: "radio",
1613
+ props: {
1614
+ modelValue: {},
1615
+ value: {},
1616
+ name: {},
1617
+ description: {},
1618
+ disabled: { type: Boolean },
1619
+ isError: { type: Boolean }
1620
+ },
1621
+ emits: ["update:modelValue"],
1622
+ setup(e, { emit: t }) {
1623
+ const n = e, r = t, a = S({
1624
+ get() {
1625
+ return n.modelValue;
1626
+ },
1627
+ set(o) {
1628
+ r("update:modelValue", o);
1629
+ }
1630
+ });
1631
+ return (o, s) => {
1632
+ const i = V("top-focus");
1633
+ return g(), m("label", {
1634
+ class: T({
1635
+ "top-forms-optionWrapper": !0,
1636
+ "top-radio": !0,
1637
+ ["top-radio_" + o.name]: o.name !== "",
1638
+ "top-disabled": o.disabled,
1639
+ "top-error": o.isError && !o.disabled
1640
+ })
1641
+ }, [
1642
+ F(L("input", {
1643
+ type: "radio",
1644
+ class: T({
1645
+ "top-forms-focusable": !o.disabled,
1646
+ "top-forms-option": !0,
1647
+ "top-radio_input": !0,
1648
+ "top-error": o.isError && !o.disabled
1649
+ }),
1650
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => a.value = l),
1651
+ name: o.name,
1652
+ value: o.value,
1653
+ disabled: o.disabled
1654
+ }, null, 10, ts), [
1655
+ [
1656
+ i,
1657
+ o.isError,
1658
+ void 0,
1659
+ { onupdate: !0 }
1660
+ ],
1661
+ [dn, a.value]
1662
+ ]),
1663
+ o.$slots.default ? (g(), D(me, {
1664
+ key: 0,
1665
+ description: o.description,
1666
+ disabled: o.disabled
1667
+ }, {
1668
+ default: ne(() => [
1669
+ C(o.$slots, "default")
1670
+ ]),
1671
+ _: 3
1672
+ }, 8, ["description", "disabled"])) : w("", !0)
1673
+ ], 2);
1674
+ };
1675
+ }
1676
+ }), rs = ["name", "value", "disabled"], os = /* @__PURE__ */ E({
1677
+ __name: "switcher",
1678
+ props: {
1679
+ modelValue: { type: [Boolean, Array, Set] },
1680
+ name: {},
1681
+ value: {},
1682
+ description: {},
1683
+ disabled: { type: Boolean },
1684
+ isError: { type: Boolean }
1685
+ },
1686
+ emits: ["update:modelValue"],
1687
+ setup(e, { emit: t }) {
1688
+ const n = e, r = t, a = S({
1689
+ get() {
1690
+ return n.modelValue;
1691
+ },
1692
+ set(o) {
1693
+ r("update:modelValue", o);
1694
+ }
1695
+ });
1696
+ return (o, s) => {
1697
+ const i = V("top-focus");
1698
+ return g(), m("label", {
1699
+ class: T({
1700
+ "top-forms-optionWrapper": !0,
1701
+ "top-checkboxSwitcher": !0,
1702
+ "top-disabled": o.disabled,
1703
+ "top-error": o.isError && !o.disabled
1704
+ })
1705
+ }, [
1706
+ F(L("input", {
1707
+ type: "checkbox",
1708
+ class: T({
1709
+ "top-forms-focusable": !o.disabled,
1710
+ "top-forms-option": !0,
1711
+ "top-checkboxSwitcher_input": !0,
1712
+ "top-error": o.isError && !o.disabled
1713
+ }),
1714
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => a.value = l),
1715
+ name: o.name,
1716
+ value: o.value,
1717
+ disabled: o.disabled
1718
+ }, null, 10, rs), [
1719
+ [
1720
+ i,
1721
+ o.isError,
1722
+ void 0,
1723
+ { onupdate: !0 }
1724
+ ],
1725
+ [_t, a.value]
1726
+ ]),
1727
+ o.$slots.default ? (g(), D(me, {
1728
+ key: 0,
1729
+ description: o.description,
1730
+ disabled: o.disabled
1731
+ }, {
1732
+ default: ne(() => [
1733
+ C(o.$slots, "default")
1734
+ ]),
1735
+ _: 3
1736
+ }, 8, ["description", "disabled"])) : w("", !0)
1737
+ ], 2);
1738
+ };
1739
+ }
1740
+ }), as = ["name", "placeholder", "disabled", "readonly", "rows"], is = {
1741
+ key: 0,
1742
+ class: "top-textarea_pseudoContent"
1743
+ }, ss = /* @__PURE__ */ E({
1744
+ inheritAttrs: !1,
1745
+ __name: "textarea",
1746
+ props: {
1747
+ modelValue: {},
1748
+ name: {},
1749
+ placeholder: {},
1750
+ rows: { default: 5 },
1751
+ minHeight: { default: 120 },
1752
+ expandable: { type: Boolean },
1753
+ disabled: { type: Boolean },
1754
+ readonly: { type: Boolean },
1755
+ isError: { type: Boolean },
1756
+ hint: {}
1757
+ },
1758
+ emits: ["update:modelValue"],
1759
+ setup(e, { emit: t }) {
1760
+ $t((o) => ({
1761
+ abdab832: o.minHeight + "px"
1762
+ }));
1763
+ const n = e, r = t, a = S({
1764
+ get() {
1765
+ return n.modelValue;
1766
+ },
1767
+ set(o) {
1768
+ r("update:modelValue", o);
1769
+ }
1770
+ });
1771
+ return (o, s) => {
1772
+ const i = V("top-focus"), l = V("top-tooltip");
1773
+ return g(), m("label", {
1774
+ class: T({
1775
+ "top-textarea": !0,
1776
+ ["top-textarea-" + o.name]: o.name,
1777
+ "top-disabled": o.disabled
1778
+ })
1779
+ }, [
1780
+ F(L("textarea", le({
1781
+ type: "text",
1782
+ class: {
1783
+ "top-forms-focusable": !o.disabled,
1784
+ "top-textarea_textarea": !0,
1785
+ "top-textarea_textarea-expandable": o.expandable,
1786
+ "top-error": o.isError
1787
+ },
1788
+ autocomplete: "off_always",
1789
+ name: o.name,
1790
+ placeholder: o.placeholder,
1791
+ disabled: o.disabled,
1792
+ readonly: o.readonly,
1793
+ rows: o.expandable ? void 0 : o.rows
1794
+ }, o.$attrs, {
1795
+ "onUpdate:modelValue": s[0] || (s[0] = (u) => a.value = u)
1796
+ }), null, 16, as), [
1797
+ [
1798
+ i,
1799
+ o.isError,
1800
+ void 0,
1801
+ { onupdate: !0 }
1802
+ ],
1803
+ [Ot, a.value]
1804
+ ]),
1805
+ o.expandable ? (g(), m("div", is, z(a.value + " "), 1)) : w("", !0),
1806
+ o.hint ? F((g(), D(en, {
1807
+ key: 1,
1808
+ class: "top-textarea_hint",
1809
+ hint: o.hint
1810
+ }, null, 8, ["hint"])), [
1811
+ [l]
1812
+ ]) : w("", !0)
1813
+ ], 2);
1814
+ };
1815
+ }
1816
+ }), ls = ["data-value", "data-top-icon", "data-top-icon2"], us = ["name", "disabled"], ds = ["label", "disabled"], cs = ["value", "selected", "disabled"], ps = ["value", "selected", "disabled"], fs = {
1817
+ key: 1,
1818
+ class: "top-formsCaption"
1819
+ }, gs = /* @__PURE__ */ E({
1820
+ __name: "select",
1821
+ props: /* @__PURE__ */ _e({
1822
+ modelValue: {},
1823
+ options: {},
1824
+ name: {},
1825
+ disabled: { type: Boolean },
1826
+ icon: {},
1827
+ size: { default: "s" },
1828
+ addChanger: { type: Boolean },
1829
+ title: {},
1830
+ isError: { type: Boolean }
1831
+ }, {
1832
+ modelValue: {
1833
+ required: !0
1834
+ },
1835
+ modelModifiers: {}
1836
+ }),
1837
+ emits: /* @__PURE__ */ _e(["update:modelValue"], ["update:modelValue"]),
1838
+ setup(e) {
1839
+ const t = e, n = St(e, "modelValue"), r = S(() => {
1840
+ const l = /* @__PURE__ */ new Map();
1841
+ return t.options.forEach((u, d) => {
1842
+ if (typeof u == "string" && (u = o(d, u)), u.children) {
1843
+ const c = /* @__PURE__ */ new Map();
1844
+ u.children.forEach((p, b) => {
1845
+ typeof p == "string" && (p = o(b, p)), c.set(p.value, p);
1846
+ }), u = { ...u }, u.children = c, l.set(u.value, u);
1847
+ } else
1848
+ l.set(u.value, u);
1849
+ }), l;
1850
+ }), a = S(() => {
1851
+ const l = /* @__PURE__ */ new Map();
1852
+ return r.value.forEach((u) => {
1853
+ if (!u.disabled) {
1854
+ if (u.children) {
1855
+ u.children.forEach((d) => {
1856
+ d.disabled || l.set(d.value, d);
1857
+ });
1858
+ return;
1859
+ }
1860
+ l.set(u.value, u);
1861
+ }
1862
+ }), l;
1863
+ }), o = (l, u) => ({
1864
+ value: l,
1865
+ title: u
1866
+ });
1867
+ Tt([
1868
+ () => t.modelValue,
1869
+ a
1870
+ ], () => {
1871
+ (n.value === null || n.value === void 0) && a.value.size && (console.warn("Пожалуйста, не передавайте в компонент Select значения null и undefined"), n.value = a.value.keys().next().value);
1872
+ }, { immediate: !0 });
1873
+ const s = S(() => {
1874
+ var l;
1875
+ return (l = a.value.get(n.value)) == null ? void 0 : l.icon;
1876
+ }), i = () => {
1877
+ const l = [...a.value.keys()], d = (l.indexOf(n.value) + 1) % l.length;
1878
+ n.value = l[d];
1879
+ };
1880
+ return (l, u) => {
1881
+ const d = V("top-focus");
1882
+ return g(), m("label", {
1883
+ class: T({
1884
+ "top-select": !0,
1885
+ ["top-select-" + l.name]: l.name,
1886
+ ["top-size_" + l.size]: !0,
1887
+ "top-formsCaptionWrapper": !!l.title,
1888
+ "top-select-error": l.isError,
1889
+ "top-disabled": l.disabled
1890
+ }),
1891
+ "data-value": n.value,
1892
+ "data-top-icon": l.icon,
1893
+ "data-top-icon2": s.value
1894
+ }, [
1895
+ F((g(), m("select", {
1896
+ class: T({
1897
+ "top-forms-focusable": !l.disabled,
1898
+ "top-select_select": !0,
1899
+ "top-select_arrow": !0,
1900
+ "top-error": l.isError
1901
+ }),
1902
+ name: l.name,
1903
+ disabled: l.disabled,
1904
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => n.value = c)
1905
+ }, [
1906
+ (g(!0), m(ye, null, Xe(r.value, ([c, p]) => (g(), m(ye, null, [
1907
+ p.children ? (g(), m("optgroup", {
1908
+ key: "group_" + c,
1909
+ label: p.title,
1910
+ disabled: p.disabled
1911
+ }, [
1912
+ (g(!0), m(ye, null, Xe(p.children, ([b, P]) => (g(), m("option", {
1913
+ key: b,
1914
+ value: b,
1915
+ selected: b === n.value,
1916
+ disabled: P.disabled
1917
+ }, z(P.title), 9, cs))), 128))
1918
+ ], 8, ds)) : (g(), m("option", {
1919
+ key: c ?? void 0,
1920
+ value: c,
1921
+ selected: c === n.value,
1922
+ disabled: p.disabled
1923
+ }, z(p.title), 9, ps))
1924
+ ], 64))), 256))
1925
+ ], 10, us)), [
1926
+ [
1927
+ d,
1928
+ l.isError,
1929
+ void 0,
1930
+ { onupdate: !0 }
1931
+ ],
1932
+ [cn, n.value]
1933
+ ]),
1934
+ l.addChanger && a.value.size && !l.disabled ? (g(), m("span", {
1935
+ key: 0,
1936
+ class: "top-changer",
1937
+ onClick: i
1938
+ })) : w("", !0),
1939
+ l.title ? (g(), m("span", fs, z(l.title), 1)) : w("", !0)
1940
+ ], 10, ls);
1941
+ };
1942
+ }
1943
+ }), Ls = Di, Is = zi, Bs = ki, Ds = me, Ws = en, Ns = Le, zs = Zi, Vs = es, Fs = ns, ks = os, Rs = ss, Us = gs, Hs = tn;
1944
+ export {
1945
+ fn as A,
1946
+ gn as B,
1947
+ f as C,
1948
+ mn as D,
1949
+ Pi as E,
1950
+ bs as F,
1951
+ ys as G,
1952
+ vs as H,
1953
+ ws as I,
1954
+ hn as J,
1955
+ Ts as K,
1956
+ $s as L,
1957
+ Qt as M,
1958
+ Ss as N,
1959
+ _s as O,
1960
+ js as P,
1961
+ Ps as Q,
1962
+ Ms as R,
1963
+ Ci as S,
1964
+ Ls as T,
1965
+ Cs as U,
1966
+ yt as V,
1967
+ zi as _,
1968
+ ge as a,
1969
+ en as b,
1970
+ Le as c,
1971
+ Y as d,
1972
+ Ui as e,
1973
+ Is as f,
1974
+ Bs as g,
1975
+ Ds as h,
1976
+ hs as i,
1977
+ Ws as j,
1978
+ Ns as k,
1979
+ zs as l,
1980
+ Vs as m,
1981
+ Hs as n,
1982
+ Fs as o,
1983
+ Us as p,
1984
+ ks as q,
1985
+ Rs as r,
1986
+ jt as s,
1987
+ As as t,
1988
+ Es as u,
1989
+ Os as v,
1990
+ tn as w,
1991
+ ss as x,
1992
+ gs as y,
1993
+ pn as z
1994
+ };
1995
+ //# sourceMappingURL=forms-cAFIQajo.es.js.map