@elurjs/universal 0.1.10 → 0.1.11

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 (57) hide show
  1. package/cli/create-app.mjs +4 -2
  2. package/cli/dev.mjs +1 -1
  3. package/cli/elur.mjs +18 -4
  4. package/docs/INSTALACION-Y-DEV.md +7 -4
  5. package/package.json +5 -1
  6. package/targets/linux/CMakeLists.txt +196 -0
  7. package/targets/linux/README.md +422 -0
  8. package/targets/linux/ci/tsan.supp +15 -0
  9. package/targets/linux/generated/elur_module_registrar.cpp +14 -0
  10. package/targets/linux/generated/module_sources.cmake +5 -0
  11. package/targets/linux/src/elur_applicator.cpp +5073 -0
  12. package/targets/linux/src/elur_applicator.h +387 -0
  13. package/targets/linux/src/elur_clip.cpp +76 -0
  14. package/targets/linux/src/elur_clip.h +23 -0
  15. package/targets/linux/src/elur_crypto_module.cpp +121 -0
  16. package/targets/linux/src/elur_events.h +57 -0
  17. package/targets/linux/src/elur_fonts.cpp +106 -0
  18. package/targets/linux/src/elur_fonts.h +31 -0
  19. package/targets/linux/src/elur_host.cpp +1041 -0
  20. package/targets/linux/src/elur_host.h +66 -0
  21. package/targets/linux/src/elur_http_module.cpp +437 -0
  22. package/targets/linux/src/elur_js.h +40 -0
  23. package/targets/linux/src/elur_modules.cpp +453 -0
  24. package/targets/linux/src/elur_modules.h +159 -0
  25. package/targets/linux/src/elur_renderer.h +46 -0
  26. package/targets/linux/src/elur_shot.cpp +64 -0
  27. package/targets/linux/src/elur_shot.h +17 -0
  28. package/targets/linux/src/elur_skia_a11y.cpp +987 -0
  29. package/targets/linux/src/elur_skia_a11y.h +146 -0
  30. package/targets/linux/src/elur_skia_app.cpp +1770 -0
  31. package/targets/linux/src/elur_skia_app.h +18 -0
  32. package/targets/linux/src/elur_state_module.cpp +99 -0
  33. package/targets/linux/src/elur_tck_module.cpp +186 -0
  34. package/targets/linux/src/elur_ui_module.cpp +84 -0
  35. package/targets/linux/src/elur_yoga.cpp +452 -0
  36. package/targets/linux/src/elur_yoga.h +95 -0
  37. package/targets/linux/src/main.cpp +294 -0
  38. package/targets/windows/Package.appxmanifest +28 -0
  39. package/targets/windows/README.md +44 -0
  40. package/targets/windows/elur-windows.vcxproj +133 -0
  41. package/targets/windows/packages.config +10 -0
  42. package/targets/windows/src/elur_crypto_module_win.cpp +106 -0
  43. package/targets/windows/src/elur_events.h +58 -0
  44. package/targets/windows/src/elur_host_win.cpp +645 -0
  45. package/targets/windows/src/elur_host_win.h +75 -0
  46. package/targets/windows/src/elur_http_module_win.cpp +331 -0
  47. package/targets/windows/src/elur_js.h +40 -0
  48. package/targets/windows/src/elur_modules.cpp +460 -0
  49. package/targets/windows/src/elur_modules.h +159 -0
  50. package/targets/windows/src/elur_state_module.cpp +99 -0
  51. package/targets/windows/src/elur_ui_module_win.cpp +75 -0
  52. package/targets/windows/src/elur_uia_host.h +129 -0
  53. package/targets/windows/src/elur_win_applicator.cpp +3118 -0
  54. package/targets/windows/src/elur_win_applicator.h +186 -0
  55. package/targets/windows/src/elur_yoga.cpp +452 -0
  56. package/targets/windows/src/elur_yoga.h +95 -0
  57. package/targets/windows/src/main.cpp +321 -0
@@ -0,0 +1,75 @@
1
+ // elur_host_win.h — runtime QuickJS-ng embebido del host Windows
2
+ // (ADR-0220). Mismo modelo que elur_host.h Linux: JSRuntime en el
3
+ // hilo que lo crea (el hilo UI/DispatcherQueue de WinUI — perfil S,
4
+ // ADR-0187), ElurBridge como objeto global, entry points
5
+ // __elurCallHandler / __elurCallHandlerWithString.
6
+ //
7
+ // Métodos del bridge (fase 1): flush(json), flushOps(frame,ops),
8
+ // requestFrame(), setTimer(id,ms), clearTimer(id), openUrl(url),
9
+ // colorScheme(), debugNow(), callCommand(...), cancelCommand(id),
10
+ // reportError(kind,json), engine, platform, bridgeAbi, threadModel.
11
+ // No declarados (cap ausente → degrada el backend): flushBinary,
12
+ // supportsNativeList, supportsSkia*, uiWorklet*.
13
+ #pragma once
14
+
15
+ // Normalización UIA (ADR-0220): commdlg.h/winuser.h definen
16
+ // FindText→FindTextW y GetClassName→GetClassNameW tras windows.h, y
17
+ // winbase.h define GetCurrentTime()→GetTickCount() (function-like —
18
+ // corrompe Media.Animation.h). Los headers generados deben procesarse
19
+ // siempre con las macros OFF — si cada TU las ve en otro estado, la
20
+ // ortografía decl/uso diverge (C2039 FindText/FindTextW).
21
+ #include <windows.h>
22
+ #undef FindText
23
+ #undef GetClassName
24
+ #undef GetCurrentTime
25
+ #include <winrt/Microsoft.UI.Xaml.Automation.Provider.h>
26
+ #include <winrt/Microsoft.UI.Xaml.Automation.Peers.h>
27
+ #include <winrt/Microsoft.UI.Xaml.Media.Animation.h>
28
+
29
+ #include <quickjs.h>
30
+ #include <string>
31
+ #include <functional>
32
+ #include <winrt/Microsoft.UI.Xaml.h>
33
+
34
+ namespace winrt::Microsoft::UI::Xaml::Controls {
35
+ struct Canvas;
36
+ }
37
+
38
+ namespace elur {
39
+
40
+ struct HostOptions {
41
+ std::string bundleDir = "generated";
42
+ std::string signals = "elurSignals.js";
43
+ std::string app = "elurApp.js";
44
+ int width = 390;
45
+ int height = 844;
46
+ std::string title = "Elur";
47
+ double debugNow = -1; // reloj determinista (--now), ≤0 = real
48
+ bool trace = false; // ElurTrace rects por id (--trace)
49
+ bool rtl = false; // dirección ambiente RTL (--rtl)
50
+ std::string deeplink; // url inicial (--deeplink) → __elur_deeplink
51
+ std::string shot; // --shot out.bmp: captura el visual tree tras
52
+ // el primer frame y sale (verificación headless)
53
+ uint64_t hwnd = 0; // HWND de la ventana (PrintWindow para --shot)
54
+ };
55
+
56
+ // Inicializa runtime + ElurBridge + evalúa signals/app. `root`
57
+ // (Canvas) debe existir — la ventana ya está activada.
58
+ bool hostInit(winrt::Microsoft::UI::Xaml::Controls::Canvas const &root,
59
+ const HostOptions &opts);
60
+ void hostShutdown();
61
+
62
+ // Entry points JS ← host.
63
+ void hostCallHandler(const char *name);
64
+ void hostCallHandlerStr(const char *name, const char *value);
65
+
66
+ // Drena la cola de jobs de quickjs tras cada entrada a JS.
67
+ void hostDrainJobs();
68
+
69
+ // Encola fn en el hilo UI (DispatcherQueue) — el único hilo que toca
70
+ // runtime y árbol XAML. Lo usan los módulos con I/O en worker (http).
71
+ void hostPostUi(std::function<void()> fn);
72
+
73
+ JSContext *hostCtx();
74
+
75
+ } // namespace elur
@@ -0,0 +1,331 @@
1
+ // elur_http_module_win.cpp — módulo builtin "http" del host Windows
2
+ // (port de elur_http_module.cpp Linux sobre WinHTTP, ADR-0184/0188).
3
+ //
4
+ // Comando "request":
5
+ // input { method, url, headers?, body?, allow?, allowPrivate? }
6
+ // output { status, body, finalUrl }
7
+ //
8
+ // Seguridad de egreso (misma que Linux): sin redirects automáticos
9
+ // (WINHTTP_DISABLE_REDIRECTS), cada salto 3xx re-valida esquema y
10
+ // allow (máx 5); sin allow ni allowPrivate se resuelve el host y se
11
+ // deniega loopback/link-local/site-local/multicast. Cuerpo ≤ 4 MiB,
12
+ // timeout 10 s. Cancelación cooperativa por callId (flag atómico —
13
+ // WinHTTP no tiene cancel de fase intermedia en M1).
14
+ //
15
+ // Threading: el request corre en un worker (WinHTTP es síncrono); la
16
+ // respuesta cruza al hilo UI por hostPostUi — el reply capturado es
17
+ // seguro de guardar y se invoca siempre exactamente una vez.
18
+
19
+ #include "elur_host_win.h"
20
+ #include "elur_modules.h"
21
+
22
+ #include <atomic>
23
+ #include <memory>
24
+ #include <mutex>
25
+ #include <string>
26
+ #include <thread>
27
+ #include <unordered_map>
28
+ #include <vector>
29
+ #include <windows.h>
30
+ #include <winhttp.h>
31
+
32
+ #pragma comment(lib, "winhttp.lib")
33
+
34
+ namespace {
35
+
36
+ constexpr size_t kMaxBodyBytes = 4 * 1024 * 1024;
37
+ constexpr int kMaxRedirects = 5;
38
+
39
+ std::wstring wutf8(const std::string &s) {
40
+ int n = MultiByteToWideChar(CP_UTF8, 0, s.c_str(), (int)s.size(),
41
+ nullptr, 0);
42
+ std::wstring w((size_t)n, L'\0');
43
+ MultiByteToWideChar(CP_UTF8, 0, s.c_str(), (int)s.size(), w.data(), n);
44
+ return w;
45
+ }
46
+
47
+ std::string u8(const std::wstring &w) {
48
+ int n = WideCharToMultiByte(CP_UTF8, 0, w.c_str(), (int)w.size(),
49
+ nullptr, 0, nullptr, nullptr);
50
+ std::string s((size_t)n, '\0');
51
+ WideCharToMultiByte(CP_UTF8, 0, w.c_str(), (int)w.size(), s.data(),
52
+ n, nullptr, nullptr);
53
+ return s;
54
+ }
55
+
56
+ std::string toLower(std::string s) {
57
+ for (char &c : s)
58
+ c = (char)tolower((unsigned char)c);
59
+ return s;
60
+ }
61
+
62
+ // IPv4 dotted-quad → host-order (winsock-free; bastan los rangos).
63
+ bool parseIpv4(const std::string &h, uint32_t &ip) {
64
+ uint32_t v[4] = {0, 0, 0, 0};
65
+ int part = 0;
66
+ const char *p = h.c_str();
67
+ while (part < 4) {
68
+ if (!isdigit((unsigned char)*p))
69
+ return false;
70
+ int n = 0;
71
+ while (isdigit((unsigned char)*p))
72
+ n = n * 10 + (*p++ - '0');
73
+ if (n > 255)
74
+ return false;
75
+ v[part++] = (uint32_t)n;
76
+ if (part < 4) {
77
+ if (*p != '.')
78
+ return false;
79
+ p++;
80
+ }
81
+ }
82
+ if (*p != '\0')
83
+ return false;
84
+ ip = (v[0] << 24) | (v[1] << 16) | (v[2] << 8) | v[3];
85
+ return true;
86
+ }
87
+
88
+ // IPv4 privada/reservada (bloqueo por defecto, paridad libsoup path).
89
+ bool isPrivateHost(const std::wstring &host) {
90
+ std::string h = u8(host);
91
+ uint32_t ip = 0;
92
+ if (parseIpv4(h, ip)) {
93
+ auto net = [&](uint32_t n, int bits) {
94
+ return (ip >> (32 - bits)) == (n >> (32 - bits));
95
+ };
96
+ return net(0x7F000000, 8) || net(0x0A000000, 8) ||
97
+ net(0xAC100000, 12) || net(0xC0A80000, 16) ||
98
+ net(0xA9FE0000, 16) || net(0xE0000000, 4) ||
99
+ net(0x00000000, 8);
100
+ }
101
+ return h == "localhost" || h == "localhost.localdomain" ||
102
+ h == "[::1]";
103
+ }
104
+
105
+ struct Url {
106
+ std::wstring scheme, host, path;
107
+ int port = 0;
108
+ bool https = false;
109
+ };
110
+
111
+ bool crackUrl(const std::wstring &u, Url &out) {
112
+ URL_COMPONENTS c{};
113
+ c.dwStructSize = sizeof(c);
114
+ wchar_t sch[16], hst[256], pth[2048];
115
+ c.lpszScheme = sch; c.dwSchemeLength = _countof(sch);
116
+ c.lpszHostName = hst; c.dwHostNameLength = _countof(hst);
117
+ c.lpszUrlPath = pth; c.dwUrlPathLength = _countof(pth);
118
+ if (!WinHttpCrackUrl(u.c_str(), 0, 0, &c))
119
+ return false;
120
+ out.scheme.assign(c.lpszScheme, c.dwSchemeLength);
121
+ out.host.assign(c.lpszHostName, c.dwHostNameLength);
122
+ out.path.assign(c.lpszUrlPath, c.dwUrlPathLength);
123
+ if (out.path.empty())
124
+ out.path = L"/";
125
+ out.port = c.nPort;
126
+ out.https = c.nScheme == INTERNET_SCHEME_HTTPS;
127
+ return true;
128
+ }
129
+
130
+ struct Request {
131
+ int callId = 0;
132
+ std::string method, url;
133
+ std::vector<std::pair<std::string, std::string>> headers;
134
+ std::string body;
135
+ std::string allow;
136
+ bool allowPrivate = false;
137
+ std::shared_ptr<std::atomic<bool>> cancelled =
138
+ std::make_shared<std::atomic<bool>>(false);
139
+ };
140
+
141
+ // Devuelve el JSON de resultado (ok/err) — corre en el worker.
142
+ std::pair<bool, std::string> runRequest(const Request &r) {
143
+ using elur::modules::jsonQuote;
144
+ auto fail = [&](const char *code, const std::string &msg)
145
+ -> std::pair<bool, std::string> {
146
+ return {false, "{\"code\":" + std::string(jsonQuote(code)) +
147
+ ",\"message\":" + jsonQuote(msg) + "}"};
148
+ };
149
+
150
+ std::wstring url = wutf8(r.url);
151
+ for (int hop = 0; hop <= kMaxRedirects; hop++) {
152
+ if (r.cancelled->load())
153
+ return fail("cancelled", "request cancelled");
154
+
155
+ Url u;
156
+ if (!crackUrl(url, u))
157
+ return fail("bad_url", "invalid URL");
158
+ if (!u.https && u.scheme != L"http")
159
+ return fail("bad_scheme", "only http/https");
160
+ if (!r.allowPrivate && r.allow.empty() && isPrivateHost(u.host))
161
+ return fail("private_host", "private/reserved host blocked");
162
+ if (!r.allow.empty()) {
163
+ std::string hp = u8(u.host) + ":" + std::to_string(u.port);
164
+ std::string allow = toLower(r.allow);
165
+ std::string hpl = toLower(hp);
166
+ if (hpl != allow && toLower(u8(u.host)) != allow)
167
+ return fail("not_allowed", "host not in allow list");
168
+ }
169
+
170
+ HINTERNET ses = WinHttpOpen(L"elur-windows/0.1",
171
+ WINHTTP_ACCESS_TYPE_DEFAULT_PROXY,
172
+ WINHTTP_NO_PROXY_NAME,
173
+ WINHTTP_NO_PROXY_BYPASS, 0);
174
+ if (!ses)
175
+ return fail("net_error", "WinHttpOpen failed");
176
+ WinHttpSetTimeouts(ses, 10000, 10000, 10000, 10000);
177
+ HINTERNET con = WinHttpConnect(ses, u.host.c_str(),
178
+ (INTERNET_PORT)u.port, 0);
179
+ if (!con) {
180
+ WinHttpCloseHandle(ses);
181
+ return fail("net_error", "WinHttpConnect failed");
182
+ }
183
+ HINTERNET req = WinHttpOpenRequest(
184
+ con, wutf8(r.method.empty() ? "GET" : r.method).c_str(),
185
+ u.path.c_str(), nullptr, WINHTTP_NO_REFERER,
186
+ WINHTTP_DEFAULT_ACCEPT_TYPES,
187
+ u.https ? WINHTTP_FLAG_SECURE : 0);
188
+ if (!req) {
189
+ WinHttpCloseHandle(con);
190
+ WinHttpCloseHandle(ses);
191
+ return fail("net_error", "WinHttpOpenRequest failed");
192
+ }
193
+ WinHttpSetOption(req, WINHTTP_OPTION_DISABLE_FEATURE,
194
+ (LPVOID)WINHTTP_DISABLE_REDIRECTS,
195
+ sizeof(WINHTTP_DISABLE_REDIRECTS));
196
+
197
+ std::wstring extra;
198
+ for (auto &kv : r.headers)
199
+ extra += wutf8(kv.first) + L": " + wutf8(kv.second) + L"\r\n";
200
+ BOOL sent = WinHttpSendRequest(
201
+ req, extra.empty() ? WINHTTP_NO_ADDITIONAL_HEADERS
202
+ : extra.c_str(),
203
+ (DWORD)(extra.empty() ? 0 : extra.size()),
204
+ (LPVOID)(r.body.empty() ? nullptr : r.body.data()),
205
+ (DWORD)r.body.size(), (DWORD)r.body.size(), 0);
206
+ if (!sent || !WinHttpReceiveResponse(req, nullptr)) {
207
+ WinHttpCloseHandle(req);
208
+ WinHttpCloseHandle(con);
209
+ WinHttpCloseHandle(ses);
210
+ return fail("net_error", "send/receive failed");
211
+ }
212
+
213
+ DWORD status = 0, ssz = sizeof(status);
214
+ WinHttpQueryHeaders(req,
215
+ WINHTTP_QUERY_STATUS_CODE |
216
+ WINHTTP_QUERY_FLAG_NUMBER,
217
+ WINHTTP_HEADER_NAME_BY_INDEX, &status, &ssz,
218
+ WINHTTP_NO_HEADER_INDEX);
219
+
220
+ std::string body;
221
+ DWORD avail = 0;
222
+ do {
223
+ if (body.size() > kMaxBodyBytes) {
224
+ WinHttpCloseHandle(req);
225
+ WinHttpCloseHandle(con);
226
+ WinHttpCloseHandle(ses);
227
+ return fail("body_too_large", "response over 4 MiB");
228
+ }
229
+ if (!WinHttpQueryDataAvailable(req, &avail) || avail == 0)
230
+ break;
231
+ std::vector<char> chunk(avail);
232
+ DWORD got = 0;
233
+ if (!WinHttpReadData(req, chunk.data(), avail, &got))
234
+ break;
235
+ body.append(chunk.data(), got);
236
+ } while (avail > 0);
237
+
238
+ std::wstring loc;
239
+ DWORD locSz = 0;
240
+ WinHttpQueryHeaders(req, WINHTTP_QUERY_LOCATION,
241
+ WINHTTP_HEADER_NAME_BY_INDEX, nullptr, &locSz,
242
+ WINHTTP_NO_HEADER_INDEX);
243
+ if (GetLastError() == ERROR_INSUFFICIENT_BUFFER && locSz > 0) {
244
+ std::vector<wchar_t> buf(locSz / sizeof(wchar_t) + 1);
245
+ if (WinHttpQueryHeaders(req, WINHTTP_QUERY_LOCATION,
246
+ WINHTTP_HEADER_NAME_BY_INDEX, buf.data(),
247
+ &locSz, WINHTTP_NO_HEADER_INDEX))
248
+ loc.assign(buf.data());
249
+ }
250
+
251
+ WinHttpCloseHandle(req);
252
+ WinHttpCloseHandle(con);
253
+ WinHttpCloseHandle(ses);
254
+
255
+ if (status >= 300 && status < 400 && !loc.empty()) {
256
+ url = loc; // re-valida en el próximo hop
257
+ continue;
258
+ }
259
+ std::string finalUrl = u8(url);
260
+ return {true,
261
+ "{\"status\":" + std::to_string(status) + ",\"body\":" +
262
+ elur::modules::jsonQuote(body) + ",\"finalUrl\":" +
263
+ elur::modules::jsonQuote(finalUrl) + "}"};
264
+ }
265
+ return fail("too_many_redirects", "over 5 redirects");
266
+ }
267
+
268
+ class ElurHttpModule : public elur::modules::ElurModule {
269
+ public:
270
+ std::string name() const override { return "http"; }
271
+
272
+ void onCommand(int callId, const std::string &command,
273
+ const std::string &argsJson,
274
+ elur::modules::Reply reply) override {
275
+ if (command != "request") {
276
+ reply(false, "{\"code\":\"unknown_command\"}");
277
+ return;
278
+ }
279
+ elur::modules::Json args;
280
+ if (!elur::modules::jsonParse(argsJson, args)) {
281
+ reply(false, "{\"code\":\"bad_args\"}");
282
+ return;
283
+ }
284
+ auto req = std::make_shared<Request>();
285
+ req->callId = callId;
286
+ if (auto *m = args.get("method"))
287
+ req->method = m->asStr("GET");
288
+ if (auto *u = args.get("url"))
289
+ req->url = u->asStr();
290
+ if (auto *b = args.get("body"))
291
+ req->body = b->asStr();
292
+ if (auto *a = args.get("allow"))
293
+ req->allow = a->asStr();
294
+ if (auto *ap = args.get("allowPrivate"))
295
+ req->allowPrivate = ap->kind == elur::modules::Json::Bool && ap->b;
296
+ if (auto *hd = args.get("headers")) {
297
+ for (auto &kv : hd->obj)
298
+ req->headers.push_back({kv.first, kv.second.asStr()});
299
+ }
300
+ {
301
+ std::lock_guard<std::mutex> lk(mu_);
302
+ inflight_[callId] = req->cancelled;
303
+ }
304
+ std::thread([req, reply] {
305
+ auto res = runRequest(*req);
306
+ elur::hostPostUi([reply, res = std::move(res)] {
307
+ reply(res.first, res.second);
308
+ });
309
+ }).detach();
310
+ }
311
+
312
+ void onCancel(int callId) override {
313
+ std::lock_guard<std::mutex> lk(mu_);
314
+ auto it = inflight_.find(callId);
315
+ if (it != inflight_.end()) {
316
+ it->second->store(true);
317
+ inflight_.erase(it);
318
+ }
319
+ }
320
+
321
+ private:
322
+ std::mutex mu_;
323
+ std::unordered_map<int, std::shared_ptr<std::atomic<bool>>> inflight_;
324
+ };
325
+
326
+ } // namespace
327
+
328
+ void elurRegisterHttpModule() {
329
+ elur::modules::registry().registerModule(
330
+ std::make_unique<ElurHttpModule>());
331
+ }
@@ -0,0 +1,40 @@
1
+ // elur_js.h — lectura de JSValue (QuickJS-ng) compartida por los
2
+ // aplicadores del target Linux: get+toString+free sin leaks, int con
3
+ // default. Los aplicadores consumen el mismo stream {frame, ops}
4
+ // (flushOps/flush) — el decode es idéntico por renderer.
5
+ #pragma once
6
+
7
+ #include <quickjs.h>
8
+ #include <string>
9
+
10
+ namespace elur {
11
+
12
+ inline std::string jsStr(JSContext *ctx, JSValueConst v) {
13
+ const char *s = JS_ToCString(ctx, v);
14
+ std::string out = s ? s : "";
15
+ if (s)
16
+ JS_FreeCString(ctx, s);
17
+ return out;
18
+ }
19
+
20
+ inline std::string jsGetStr(JSContext *ctx, JSValueConst o, const char *k) {
21
+ JSValue v = JS_GetPropertyStr(ctx, o, k);
22
+ std::string out = jsStr(ctx, v);
23
+ JS_FreeValue(ctx, v);
24
+ return out;
25
+ }
26
+
27
+ inline JSValue jsGet(JSContext *ctx, JSValueConst o, const char *k) {
28
+ return JS_GetPropertyStr(ctx, o, k);
29
+ }
30
+
31
+ inline int jsInt(JSContext *ctx, JSValueConst o, const char *k,
32
+ int dflt = 0) {
33
+ JSValue v = jsGet(ctx, o, k);
34
+ int32_t out = dflt;
35
+ JS_ToInt32(ctx, &out, v);
36
+ JS_FreeValue(ctx, v);
37
+ return out;
38
+ }
39
+
40
+ } // namespace elur