kaabalah 3.3.1 → 4.1.0

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 (87) hide show
  1. package/dist/astrology/index.d.mts +47 -22
  2. package/dist/astrology/index.d.ts +47 -22
  3. package/dist/astrology/index.js +21 -17
  4. package/dist/astrology/index.mjs +2 -2
  5. package/dist/chunk-2TAUU4AE.js +836 -0
  6. package/dist/chunk-2TAUU4AE.js.map +1 -0
  7. package/dist/{chunk-JJ76YVMI.js → chunk-4GW52TEP.js} +18 -18
  8. package/dist/{chunk-JJ76YVMI.js.map → chunk-4GW52TEP.js.map} +1 -1
  9. package/dist/chunk-CGCEKFLD.js +685 -0
  10. package/dist/chunk-CGCEKFLD.js.map +1 -0
  11. package/dist/chunk-FM7WUVZV.js +26 -0
  12. package/dist/{chunk-2TUXWMP5.js.map → chunk-FM7WUVZV.js.map} +1 -1
  13. package/dist/chunk-KP7RTWRA.mjs +820 -0
  14. package/dist/chunk-KP7RTWRA.mjs.map +1 -0
  15. package/dist/{chunk-7CAIYKIO.js → chunk-LWX4YXES.js} +6 -6
  16. package/dist/{chunk-7CAIYKIO.js.map → chunk-LWX4YXES.js.map} +1 -1
  17. package/dist/{chunk-5ISXTWFX.mjs → chunk-MAK5YPPE.mjs} +3 -3
  18. package/dist/{chunk-5ISXTWFX.mjs.map → chunk-MAK5YPPE.mjs.map} +1 -1
  19. package/dist/chunk-P7VAKSJY.mjs +671 -0
  20. package/dist/chunk-P7VAKSJY.mjs.map +1 -0
  21. package/dist/chunk-WY6NIR2V.mjs +21 -0
  22. package/dist/{chunk-PY5SMMJB.mjs.map → chunk-WY6NIR2V.mjs.map} +1 -1
  23. package/dist/{chunk-3LUQXNH6.mjs → chunk-XQ6PO4OP.mjs} +3 -3
  24. package/dist/{chunk-3LUQXNH6.mjs.map → chunk-XQ6PO4OP.mjs.map} +1 -1
  25. package/dist/core/index.js +37 -37
  26. package/dist/core/index.mjs +2 -2
  27. package/dist/gematria/index.js +4 -4
  28. package/dist/gematria/index.mjs +3 -3
  29. package/dist/ifa/index.js +1 -1
  30. package/dist/ifa/index.mjs +1 -1
  31. package/dist/index.d.mts +2 -2
  32. package/dist/index.d.ts +2 -2
  33. package/dist/index.js +78 -74
  34. package/dist/index.mjs +5 -5
  35. package/dist/numerology/index.d.mts +171 -57
  36. package/dist/numerology/index.d.ts +171 -57
  37. package/dist/numerology/index.js +22 -22
  38. package/dist/numerology/index.mjs +4 -4
  39. package/dist/swisseph.js +1 -1
  40. package/dist/swisseph.node-2K5IHMKE.wasm +0 -0
  41. package/dist/swisseph.node-6H4ISR7M.mjs +3356 -0
  42. package/dist/swisseph.node-6H4ISR7M.mjs.map +1 -0
  43. package/dist/swisseph.node-UD2JYYLE.js +3358 -0
  44. package/dist/swisseph.node-UD2JYYLE.js.map +1 -0
  45. package/dist/swisseph.node.js +30 -0
  46. package/dist/swisseph.node.wasm +0 -0
  47. package/dist/swisseph.wasm +0 -0
  48. package/dist/swisseph.web-2K5IHMKE.wasm +0 -0
  49. package/dist/{chunk-T2JS2IJN.js → swisseph.web-MXYBWOOS.js} +43 -472
  50. package/dist/swisseph.web-MXYBWOOS.js.map +1 -0
  51. package/dist/{chunk-S6GM43CR.mjs → swisseph.web-TSFJI7DQ.mjs} +30 -448
  52. package/dist/swisseph.web-TSFJI7DQ.mjs.map +1 -0
  53. package/dist/swisseph.web.js +30 -0
  54. package/dist/swisseph.web.wasm +0 -0
  55. package/dist/tarot/index.js +1 -1
  56. package/dist/tarot/index.mjs +1 -1
  57. package/dist/wasm/build/swisseph.js +1 -1
  58. package/dist/wasm/build/swisseph.node-2K5IHMKE.wasm +0 -0
  59. package/dist/wasm/build/swisseph.node-6H4ISR7M.mjs +3356 -0
  60. package/dist/wasm/build/swisseph.node-6H4ISR7M.mjs.map +1 -0
  61. package/dist/wasm/build/swisseph.node-UD2JYYLE.js +3358 -0
  62. package/dist/wasm/build/swisseph.node-UD2JYYLE.js.map +1 -0
  63. package/dist/wasm/build/swisseph.node.js +30 -0
  64. package/dist/wasm/build/swisseph.node.wasm +0 -0
  65. package/dist/wasm/build/swisseph.wasm +0 -0
  66. package/dist/wasm/build/swisseph.web-2K5IHMKE.wasm +0 -0
  67. package/dist/wasm/build/swisseph.web-MXYBWOOS.js +3055 -0
  68. package/dist/wasm/build/swisseph.web-MXYBWOOS.js.map +1 -0
  69. package/dist/wasm/build/swisseph.web-TSFJI7DQ.mjs +3053 -0
  70. package/dist/wasm/build/swisseph.web-TSFJI7DQ.mjs.map +1 -0
  71. package/dist/wasm/build/swisseph.web.js +30 -0
  72. package/dist/wasm/build/swisseph.web.wasm +0 -0
  73. package/package.json +1 -1
  74. package/wasm/build/swisseph.js +1 -1
  75. package/wasm/build/swisseph.node.js +30 -0
  76. package/wasm/build/swisseph.node.wasm +0 -0
  77. package/wasm/build/swisseph.wasm +0 -0
  78. package/wasm/build/swisseph.web.js +30 -0
  79. package/wasm/build/swisseph.web.wasm +0 -0
  80. package/dist/chunk-2TUXWMP5.js +0 -47
  81. package/dist/chunk-4IMODQPK.js +0 -495
  82. package/dist/chunk-4IMODQPK.js.map +0 -1
  83. package/dist/chunk-6DHXZLYH.mjs +0 -479
  84. package/dist/chunk-6DHXZLYH.mjs.map +0 -1
  85. package/dist/chunk-PY5SMMJB.mjs +0 -41
  86. package/dist/chunk-S6GM43CR.mjs.map +0 -1
  87. package/dist/chunk-T2JS2IJN.js.map +0 -1
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var chunk2TUXWMP5_js = require('./chunk-2TUXWMP5.js');
3
+ var chunkFM7WUVZV_js = require('./chunk-FM7WUVZV.js');
4
4
 
5
- // wasm/build/swisseph.js
6
- var require_swisseph = chunk2TUXWMP5_js.__commonJS({
7
- "wasm/build/swisseph.js"(exports, module) {
5
+ // wasm/build/swisseph.web.js
6
+ var require_swisseph_web = chunkFM7WUVZV_js.__commonJS({
7
+ "wasm/build/swisseph.web.js"(exports, module) {
8
8
  var SwissEphemerisModule = (() => {
9
9
  var _scriptName = typeof document != "undefined" ? document.currentScript?.src : void 0;
10
10
  if (typeof __filename != "undefined") _scriptName = _scriptName || __filename;
@@ -38,8 +38,8 @@ var require_swisseph = chunk2TUXWMP5_js.__commonJS({
38
38
  if (numericVersion < 16e4) {
39
39
  throw new Error("This emscripten-generated code requires node v16.0.0 (detected v" + nodeVersion + ")");
40
40
  }
41
- var fs = chunk2TUXWMP5_js.__require("fs");
42
- chunk2TUXWMP5_js.__require("path");
41
+ var fs = chunkFM7WUVZV_js.__require("fs");
42
+ chunkFM7WUVZV_js.__require("path");
43
43
  scriptDirectory = __dirname + "/";
44
44
  readBinary = (filename) => {
45
45
  filename = isFileURI(filename) ? new URL(filename) : filename;
@@ -58,7 +58,7 @@ var require_swisseph = chunk2TUXWMP5_js.__commonJS({
58
58
  }
59
59
  process.argv.slice(2);
60
60
  } else if (ENVIRONMENT_IS_SHELL) {
61
- if (typeof process == "object" && typeof chunk2TUXWMP5_js.__require === "function" || typeof window == "object" || typeof WorkerGlobalScope != "undefined") throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");
61
+ if (typeof process == "object" && typeof chunkFM7WUVZV_js.__require === "function" || typeof window == "object" || typeof WorkerGlobalScope != "undefined") throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");
62
62
  } else if (ENVIRONMENT_IS_WEB || ENVIRONMENT_IS_WORKER) {
63
63
  if (ENVIRONMENT_IS_WORKER) {
64
64
  scriptDirectory = self.location.href;
@@ -373,7 +373,7 @@ var require_swisseph = chunk2TUXWMP5_js.__commonJS({
373
373
  }
374
374
  var wasmBinaryFile;
375
375
  function findWasmBinary() {
376
- return locateFile("swisseph.wasm");
376
+ return locateFile("swisseph.web.wasm");
377
377
  }
378
378
  function getBinarySync(file) {
379
379
  if (file == wasmBinaryFile && wasmBinary) {
@@ -654,7 +654,7 @@ var require_swisseph = chunk2TUXWMP5_js.__commonJS({
654
654
  }, basename: (path) => path && path.match(/([^\/]+|\/)\/*$/)[1], join: (...paths) => PATH.normalize(paths.join("/")), join2: (l, r) => PATH.normalize(l + "/" + r) };
655
655
  var initRandomFill = () => {
656
656
  if (ENVIRONMENT_IS_NODE) {
657
- var nodeCrypto = chunk2TUXWMP5_js.__require("crypto");
657
+ var nodeCrypto = chunkFM7WUVZV_js.__require("crypto");
658
658
  return (view) => nodeCrypto.randomFillSync(view);
659
659
  }
660
660
  return (view) => crypto.getRandomValues(view);
@@ -1220,7 +1220,7 @@ var require_swisseph = chunk2TUXWMP5_js.__commonJS({
1220
1220
  var FS = { root: null, mounts: [], devices: {}, streams: [], nextInode: 1, nameTable: null, currentPath: "/", initialized: false, ignorePermissions: true, filesystems: null, syncFSRequests: 0, readFiles: {}, ErrnoError: class extends Error {
1221
1221
  constructor(errno) {
1222
1222
  super(runtimeInitialized ? strError(errno) : "");
1223
- chunk2TUXWMP5_js.__publicField(this, "name", "ErrnoError");
1223
+ chunkFM7WUVZV_js.__publicField(this, "name", "ErrnoError");
1224
1224
  this.errno = errno;
1225
1225
  for (var key in ERRNO_CODES) {
1226
1226
  if (ERRNO_CODES[key] === errno) {
@@ -1231,7 +1231,7 @@ var require_swisseph = chunk2TUXWMP5_js.__commonJS({
1231
1231
  }
1232
1232
  }, FSStream: class {
1233
1233
  constructor() {
1234
- chunk2TUXWMP5_js.__publicField(this, "shared", {});
1234
+ chunkFM7WUVZV_js.__publicField(this, "shared", {});
1235
1235
  }
1236
1236
  get object() {
1237
1237
  return this.node;
@@ -1262,11 +1262,11 @@ var require_swisseph = chunk2TUXWMP5_js.__commonJS({
1262
1262
  }
1263
1263
  }, FSNode: class {
1264
1264
  constructor(parent, name, mode, rdev) {
1265
- chunk2TUXWMP5_js.__publicField(this, "node_ops", {});
1266
- chunk2TUXWMP5_js.__publicField(this, "stream_ops", {});
1267
- chunk2TUXWMP5_js.__publicField(this, "readMode", 292 | 73);
1268
- chunk2TUXWMP5_js.__publicField(this, "writeMode", 146);
1269
- chunk2TUXWMP5_js.__publicField(this, "mounted", null);
1265
+ chunkFM7WUVZV_js.__publicField(this, "node_ops", {});
1266
+ chunkFM7WUVZV_js.__publicField(this, "stream_ops", {});
1267
+ chunkFM7WUVZV_js.__publicField(this, "readMode", 292 | 73);
1268
+ chunkFM7WUVZV_js.__publicField(this, "writeMode", 146);
1269
+ chunkFM7WUVZV_js.__publicField(this, "mounted", null);
1270
1270
  if (!parent) {
1271
1271
  parent = this;
1272
1272
  }
@@ -2341,8 +2341,8 @@ var require_swisseph = chunk2TUXWMP5_js.__commonJS({
2341
2341
  }, createLazyFile(parent, name, url, canRead, canWrite) {
2342
2342
  class LazyUint8Array {
2343
2343
  constructor() {
2344
- chunk2TUXWMP5_js.__publicField(this, "lengthKnown", false);
2345
- chunk2TUXWMP5_js.__publicField(this, "chunks", []);
2344
+ chunkFM7WUVZV_js.__publicField(this, "lengthKnown", false);
2345
+ chunkFM7WUVZV_js.__publicField(this, "chunks", []);
2346
2346
  }
2347
2347
  get(idx) {
2348
2348
  if (idx > this.length - 1 || idx < 0) {
@@ -2914,8 +2914,18 @@ var require_swisseph = chunk2TUXWMP5_js.__commonJS({
2914
2914
  return ret;
2915
2915
  };
2916
2916
  var cwrap = (ident, returnType, argTypes, opts) => (...args) => ccall(ident, returnType, argTypes, args);
2917
+ var FS_createPath = FS.createPath;
2918
+ var FS_unlink = (path) => FS.unlink(path);
2919
+ var FS_createLazyFile = FS.createLazyFile;
2920
+ var FS_createDevice = FS.createDevice;
2917
2921
  FS.createPreloadedFile = FS_createPreloadedFile;
2918
2922
  FS.staticInit();
2923
+ Module["FS_createPath"] = FS.createPath;
2924
+ Module["FS_createDataFile"] = FS.createDataFile;
2925
+ Module["FS_createPreloadedFile"] = FS.createPreloadedFile;
2926
+ Module["FS_unlink"] = FS.unlink;
2927
+ Module["FS_createLazyFile"] = FS.createLazyFile;
2928
+ Module["FS_createDevice"] = FS.createDevice;
2919
2929
  function checkIncomingModuleAPI() {
2920
2930
  ignoredModuleProp("fetchSettings");
2921
2931
  }
@@ -2946,6 +2956,8 @@ var require_swisseph = chunk2TUXWMP5_js.__commonJS({
2946
2956
  var __emscripten_stack_restore = wasmExports["_emscripten_stack_restore"];
2947
2957
  var __emscripten_stack_alloc = wasmExports["_emscripten_stack_alloc"];
2948
2958
  var _emscripten_stack_get_current = wasmExports["emscripten_stack_get_current"];
2959
+ Module["addRunDependency"] = addRunDependency;
2960
+ Module["removeRunDependency"] = removeRunDependency;
2949
2961
  Module["ccall"] = ccall;
2950
2962
  Module["cwrap"] = cwrap;
2951
2963
  Module["setValue"] = setValue;
@@ -2953,9 +2965,16 @@ var require_swisseph = chunk2TUXWMP5_js.__commonJS({
2953
2965
  Module["UTF8ToString"] = UTF8ToString;
2954
2966
  Module["stringToUTF8"] = stringToUTF8;
2955
2967
  Module["lengthBytesUTF8"] = lengthBytesUTF8;
2956
- var missingLibrarySymbols = ["writeI53ToI64", "writeI53ToI64Clamped", "writeI53ToI64Signaling", "writeI53ToU64Clamped", "writeI53ToU64Signaling", "readI53FromI64", "readI53FromU64", "convertI32PairToI53", "convertI32PairToI53Checked", "convertU32PairToI53", "getTempRet0", "setTempRet0", "exitJS", "inetPton4", "inetNtop4", "inetPton6", "inetNtop6", "readSockaddr", "writeSockaddr", "emscriptenLog", "readEmAsmArgs", "jstoi_q", "listenOnce", "autoResumeAudioContext", "getDynCaller", "dynCall", "handleException", "keepRuntimeAlive", "runtimeKeepalivePush", "runtimeKeepalivePop", "callUserCallback", "maybeExit", "asmjsMangle", "HandleAllocator", "getNativeTypeSize", "addOnInit", "addOnPostCtor", "addOnPreMain", "addOnExit", "STACK_SIZE", "STACK_ALIGN", "POINTER_SIZE", "ASSERTIONS", "uleb128Encode", "sigToWasmTypes", "generateFuncType", "convertJsFunctionToWasm", "getEmptyTableSlot", "updateTableMap", "getFunctionAddress", "addFunction", "removeFunction", "reallyNegative", "strLen", "reSign", "formatString", "intArrayToString", "AsciiToString", "UTF16ToString", "stringToUTF16", "lengthBytesUTF16", "UTF32ToString", "stringToUTF32", "lengthBytesUTF32", "stringToNewUTF8", "registerKeyEventCallback", "maybeCStringToJsString", "findEventTarget", "getBoundingClientRect", "fillMouseEventData", "registerMouseEventCallback", "registerWheelEventCallback", "registerUiEventCallback", "registerFocusEventCallback", "fillDeviceOrientationEventData", "registerDeviceOrientationEventCallback", "fillDeviceMotionEventData", "registerDeviceMotionEventCallback", "screenOrientation", "fillOrientationChangeEventData", "registerOrientationChangeEventCallback", "fillFullscreenChangeEventData", "registerFullscreenChangeEventCallback", "JSEvents_requestFullscreen", "JSEvents_resizeCanvasForFullscreen", "registerRestoreOldStyle", "hideEverythingExceptGivenElement", "restoreHiddenElements", "setLetterbox", "softFullscreenResizeWebGLRenderTarget", "doRequestFullscreen", "fillPointerlockChangeEventData", "registerPointerlockChangeEventCallback", "registerPointerlockErrorEventCallback", "requestPointerLock", "fillVisibilityChangeEventData", "registerVisibilityChangeEventCallback", "registerTouchEventCallback", "fillGamepadEventData", "registerGamepadEventCallback", "registerBeforeUnloadEventCallback", "fillBatteryEventData", "battery", "registerBatteryEventCallback", "setCanvasElementSize", "getCanvasElementSize", "jsStackTrace", "getCallstack", "convertPCtoSourceLocation", "checkWasiClock", "wasiRightsToMuslOFlags", "wasiOFlagsToMuslOFlags", "safeSetTimeout", "setImmediateWrapped", "safeRequestAnimationFrame", "clearImmediateWrapped", "registerPostMainLoop", "registerPreMainLoop", "getPromise", "makePromise", "idsToPromises", "makePromiseCallback", "ExceptionInfo", "findMatchingCatch", "Browser_asyncPrepareDataCounter", "isLeapYear", "ydayFromDate", "arraySum", "addDays", "getSocketFromFD", "getSocketAddress", "FS_unlink", "FS_mkdirTree", "_setNetworkCallback", "heapObjectForWebGLType", "toTypedArrayIndex", "webgl_enable_ANGLE_instanced_arrays", "webgl_enable_OES_vertex_array_object", "webgl_enable_WEBGL_draw_buffers", "webgl_enable_WEBGL_multi_draw", "webgl_enable_EXT_polygon_offset_clamp", "webgl_enable_EXT_clip_control", "webgl_enable_WEBGL_polygon_mode", "emscriptenWebGLGet", "computeUnpackAlignedImageSize", "colorChannelsInGlTextureFormat", "emscriptenWebGLGetTexPixelData", "emscriptenWebGLGetUniform", "webglGetUniformLocation", "webglPrepareUniformLocationsBeforeFirstUse", "webglGetLeftBracePos", "emscriptenWebGLGetVertexAttrib", "__glGetActiveAttribOrUniform", "writeGLArray", "registerWebGlEventCallback", "runAndAbortIfError", "ALLOC_NORMAL", "ALLOC_STACK", "allocate", "writeStringToMemory", "writeAsciiToMemory", "setErrNo", "demangle", "stackTrace"];
2968
+ Module["FS_createPreloadedFile"] = FS_createPreloadedFile;
2969
+ Module["FS_unlink"] = FS_unlink;
2970
+ Module["FS_createPath"] = FS_createPath;
2971
+ Module["FS_createDevice"] = FS_createDevice;
2972
+ Module["FS"] = FS;
2973
+ Module["FS_createDataFile"] = FS_createDataFile;
2974
+ Module["FS_createLazyFile"] = FS_createLazyFile;
2975
+ var missingLibrarySymbols = ["writeI53ToI64", "writeI53ToI64Clamped", "writeI53ToI64Signaling", "writeI53ToU64Clamped", "writeI53ToU64Signaling", "readI53FromI64", "readI53FromU64", "convertI32PairToI53", "convertI32PairToI53Checked", "convertU32PairToI53", "getTempRet0", "setTempRet0", "exitJS", "inetPton4", "inetNtop4", "inetPton6", "inetNtop6", "readSockaddr", "writeSockaddr", "emscriptenLog", "readEmAsmArgs", "jstoi_q", "listenOnce", "autoResumeAudioContext", "getDynCaller", "dynCall", "handleException", "keepRuntimeAlive", "runtimeKeepalivePush", "runtimeKeepalivePop", "callUserCallback", "maybeExit", "asmjsMangle", "HandleAllocator", "getNativeTypeSize", "addOnInit", "addOnPostCtor", "addOnPreMain", "addOnExit", "STACK_SIZE", "STACK_ALIGN", "POINTER_SIZE", "ASSERTIONS", "uleb128Encode", "sigToWasmTypes", "generateFuncType", "convertJsFunctionToWasm", "getEmptyTableSlot", "updateTableMap", "getFunctionAddress", "addFunction", "removeFunction", "reallyNegative", "strLen", "reSign", "formatString", "intArrayToString", "AsciiToString", "UTF16ToString", "stringToUTF16", "lengthBytesUTF16", "UTF32ToString", "stringToUTF32", "lengthBytesUTF32", "stringToNewUTF8", "registerKeyEventCallback", "maybeCStringToJsString", "findEventTarget", "getBoundingClientRect", "fillMouseEventData", "registerMouseEventCallback", "registerWheelEventCallback", "registerUiEventCallback", "registerFocusEventCallback", "fillDeviceOrientationEventData", "registerDeviceOrientationEventCallback", "fillDeviceMotionEventData", "registerDeviceMotionEventCallback", "screenOrientation", "fillOrientationChangeEventData", "registerOrientationChangeEventCallback", "fillFullscreenChangeEventData", "registerFullscreenChangeEventCallback", "JSEvents_requestFullscreen", "JSEvents_resizeCanvasForFullscreen", "registerRestoreOldStyle", "hideEverythingExceptGivenElement", "restoreHiddenElements", "setLetterbox", "softFullscreenResizeWebGLRenderTarget", "doRequestFullscreen", "fillPointerlockChangeEventData", "registerPointerlockChangeEventCallback", "registerPointerlockErrorEventCallback", "requestPointerLock", "fillVisibilityChangeEventData", "registerVisibilityChangeEventCallback", "registerTouchEventCallback", "fillGamepadEventData", "registerGamepadEventCallback", "registerBeforeUnloadEventCallback", "fillBatteryEventData", "battery", "registerBatteryEventCallback", "setCanvasElementSize", "getCanvasElementSize", "jsStackTrace", "getCallstack", "convertPCtoSourceLocation", "checkWasiClock", "wasiRightsToMuslOFlags", "wasiOFlagsToMuslOFlags", "safeSetTimeout", "setImmediateWrapped", "safeRequestAnimationFrame", "clearImmediateWrapped", "registerPostMainLoop", "registerPreMainLoop", "getPromise", "makePromise", "idsToPromises", "makePromiseCallback", "ExceptionInfo", "findMatchingCatch", "Browser_asyncPrepareDataCounter", "isLeapYear", "ydayFromDate", "arraySum", "addDays", "getSocketFromFD", "getSocketAddress", "FS_mkdirTree", "_setNetworkCallback", "heapObjectForWebGLType", "toTypedArrayIndex", "webgl_enable_ANGLE_instanced_arrays", "webgl_enable_OES_vertex_array_object", "webgl_enable_WEBGL_draw_buffers", "webgl_enable_WEBGL_multi_draw", "webgl_enable_EXT_polygon_offset_clamp", "webgl_enable_EXT_clip_control", "webgl_enable_WEBGL_polygon_mode", "emscriptenWebGLGet", "computeUnpackAlignedImageSize", "colorChannelsInGlTextureFormat", "emscriptenWebGLGetTexPixelData", "emscriptenWebGLGetUniform", "webglGetUniformLocation", "webglPrepareUniformLocationsBeforeFirstUse", "webglGetLeftBracePos", "emscriptenWebGLGetVertexAttrib", "__glGetActiveAttribOrUniform", "writeGLArray", "registerWebGlEventCallback", "runAndAbortIfError", "ALLOC_NORMAL", "ALLOC_STACK", "allocate", "writeStringToMemory", "writeAsciiToMemory", "setErrNo", "demangle", "stackTrace"];
2957
2976
  missingLibrarySymbols.forEach(missingLibrarySymbol);
2958
- var unexportedSymbols = ["run", "addRunDependency", "removeRunDependency", "out", "err", "callMain", "abort", "wasmMemory", "wasmExports", "writeStackCookie", "checkStackCookie", "INT53_MAX", "INT53_MIN", "bigintToI53Checked", "stackSave", "stackRestore", "stackAlloc", "ptrToString", "zeroMemory", "getHeapMax", "growMemory", "ENV", "ERRNO_CODES", "strError", "DNS", "Protocols", "Sockets", "timers", "warnOnce", "readEmAsmArgsArray", "jstoi_s", "getExecutableName", "asyncLoad", "alignMemory", "mmapAlloc", "wasmTable", "noExitRuntime", "addOnPreRun", "addOnPostRun", "getCFunc", "freeTableIndexes", "functionsInTableMap", "unSign", "PATH", "PATH_FS", "UTF8Decoder", "UTF8ArrayToString", "stringToUTF8Array", "intArrayFromString", "stringToAscii", "UTF16Decoder", "stringToUTF8OnStack", "writeArrayToMemory", "JSEvents", "specialHTMLTargets", "findCanvasEventTarget", "currentFullscreenStrategy", "restoreOldWindowedStyle", "UNWIND_CACHE", "ExitStatus", "getEnvStrings", "doReadv", "doWritev", "initRandomFill", "randomFill", "emSetImmediate", "emClearImmediate_deps", "emClearImmediate", "promiseMap", "uncaughtExceptionCount", "exceptionLast", "exceptionCaught", "Browser", "getPreloadedImageData__data", "wget", "MONTH_DAYS_REGULAR", "MONTH_DAYS_LEAP", "MONTH_DAYS_REGULAR_CUMULATIVE", "MONTH_DAYS_LEAP_CUMULATIVE", "SYSCALLS", "preloadPlugins", "FS_createPreloadedFile", "FS_modeStringToFlags", "FS_getMode", "FS_stdin_getChar_buffer", "FS_stdin_getChar", "FS_createPath", "FS_createDevice", "FS_readFile", "FS", "FS_createDataFile", "FS_createLazyFile", "MEMFS", "TTY", "PIPEFS", "SOCKFS", "tempFixedLengthArray", "miniTempWebGLFloatBuffers", "miniTempWebGLIntBuffers", "GL", "AL", "GLUT", "EGL", "GLEW", "IDBStore", "SDL", "SDL_gfx", "allocateUTF8", "allocateUTF8OnStack", "print", "printErr"];
2977
+ var unexportedSymbols = ["run", "out", "err", "callMain", "abort", "wasmMemory", "wasmExports", "writeStackCookie", "checkStackCookie", "INT53_MAX", "INT53_MIN", "bigintToI53Checked", "stackSave", "stackRestore", "stackAlloc", "ptrToString", "zeroMemory", "getHeapMax", "growMemory", "ENV", "ERRNO_CODES", "strError", "DNS", "Protocols", "Sockets", "timers", "warnOnce", "readEmAsmArgsArray", "jstoi_s", "getExecutableName", "asyncLoad", "alignMemory", "mmapAlloc", "wasmTable", "noExitRuntime", "addOnPreRun", "addOnPostRun", "getCFunc", "freeTableIndexes", "functionsInTableMap", "unSign", "PATH", "PATH_FS", "UTF8Decoder", "UTF8ArrayToString", "stringToUTF8Array", "intArrayFromString", "stringToAscii", "UTF16Decoder", "stringToUTF8OnStack", "writeArrayToMemory", "JSEvents", "specialHTMLTargets", "findCanvasEventTarget", "currentFullscreenStrategy", "restoreOldWindowedStyle", "UNWIND_CACHE", "ExitStatus", "getEnvStrings", "doReadv", "doWritev", "initRandomFill", "randomFill", "emSetImmediate", "emClearImmediate_deps", "emClearImmediate", "promiseMap", "uncaughtExceptionCount", "exceptionLast", "exceptionCaught", "Browser", "getPreloadedImageData__data", "wget", "MONTH_DAYS_REGULAR", "MONTH_DAYS_LEAP", "MONTH_DAYS_REGULAR_CUMULATIVE", "MONTH_DAYS_LEAP_CUMULATIVE", "SYSCALLS", "preloadPlugins", "FS_modeStringToFlags", "FS_getMode", "FS_stdin_getChar_buffer", "FS_stdin_getChar", "FS_readFile", "MEMFS", "TTY", "PIPEFS", "SOCKFS", "tempFixedLengthArray", "miniTempWebGLFloatBuffers", "miniTempWebGLIntBuffers", "GL", "AL", "GLUT", "EGL", "GLEW", "IDBStore", "SDL", "SDL_gfx", "allocateUTF8", "allocateUTF8OnStack", "print", "printErr"];
2959
2978
  unexportedSymbols.forEach(unexportedRuntimeSymbol);
2960
2979
  var calledRun;
2961
2980
  function stackCheckInit() {
@@ -3029,456 +3048,8 @@ var require_swisseph = chunk2TUXWMP5_js.__commonJS({
3029
3048
  define([], () => SwissEphemerisModule);
3030
3049
  }
3031
3050
  });
3051
+ var swisseph_webMXYBWOOS = require_swisseph_web();
3032
3052
 
3033
- // src/astrology/swisseph.ts
3034
- var import_swisseph = chunk2TUXWMP5_js.__toESM(require_swisseph());
3035
-
3036
- // wasm/build/swisseph.wasm?url
3037
- var swisseph_default = "./swisseph-YPVN5VCI.wasm?url";
3038
-
3039
- // wasm/src/swisseph.ts
3040
- var Planet = /* @__PURE__ */ ((Planet2) => {
3041
- Planet2[Planet2["SUN"] = 0] = "SUN";
3042
- Planet2[Planet2["MOON"] = 1] = "MOON";
3043
- Planet2[Planet2["MERCURY"] = 2] = "MERCURY";
3044
- Planet2[Planet2["VENUS"] = 3] = "VENUS";
3045
- Planet2[Planet2["MARS"] = 4] = "MARS";
3046
- Planet2[Planet2["JUPITER"] = 5] = "JUPITER";
3047
- Planet2[Planet2["SATURN"] = 6] = "SATURN";
3048
- Planet2[Planet2["URANUS"] = 7] = "URANUS";
3049
- Planet2[Planet2["NEPTUNE"] = 8] = "NEPTUNE";
3050
- Planet2[Planet2["PLUTO"] = 9] = "PLUTO";
3051
- Planet2[Planet2["MEAN_NODE"] = 10] = "MEAN_NODE";
3052
- Planet2[Planet2["TRUE_NODE"] = 11] = "TRUE_NODE";
3053
- Planet2[Planet2["LILITH_MEAN"] = 12] = "LILITH_MEAN";
3054
- Planet2[Planet2["LILITH_TRUE"] = 13] = "LILITH_TRUE";
3055
- Planet2[Planet2["CHIRON"] = 15] = "CHIRON";
3056
- return Planet2;
3057
- })(Planet || {});
3058
- var HouseSystem = /* @__PURE__ */ ((HouseSystem2) => {
3059
- HouseSystem2["PLACIDUS"] = "P";
3060
- HouseSystem2["KOCH"] = "K";
3061
- HouseSystem2["PORPHYRIUS"] = "O";
3062
- HouseSystem2["REGIOMONTANUS"] = "R";
3063
- HouseSystem2["CAMPANUS"] = "C";
3064
- HouseSystem2["EQUAL"] = "E";
3065
- HouseSystem2["WHOLE_SIGN"] = "W";
3066
- HouseSystem2["MERIDIAN"] = "X";
3067
- HouseSystem2["MORINUS"] = "M";
3068
- HouseSystem2["KRUSINSKI"] = "U";
3069
- HouseSystem2["ALCABITIUS"] = "B";
3070
- return HouseSystem2;
3071
- })(HouseSystem || {});
3072
- var CalcFlag = /* @__PURE__ */ ((CalcFlag2) => {
3073
- CalcFlag2[CalcFlag2["JPL_EPH"] = 1] = "JPL_EPH";
3074
- CalcFlag2[CalcFlag2["SWISS_EPH"] = 2] = "SWISS_EPH";
3075
- CalcFlag2[CalcFlag2["MOSHIER"] = 4] = "MOSHIER";
3076
- CalcFlag2[CalcFlag2["HELIOCENTRIC"] = 8] = "HELIOCENTRIC";
3077
- CalcFlag2[CalcFlag2["TRUE_POS"] = 16] = "TRUE_POS";
3078
- CalcFlag2[CalcFlag2["J2000"] = 32] = "J2000";
3079
- CalcFlag2[CalcFlag2["NONUT"] = 64] = "NONUT";
3080
- CalcFlag2[CalcFlag2["SPEED3"] = 128] = "SPEED3";
3081
- CalcFlag2[CalcFlag2["SPEED"] = 256] = "SPEED";
3082
- CalcFlag2[CalcFlag2["EQUATORIAL"] = 2048] = "EQUATORIAL";
3083
- CalcFlag2[CalcFlag2["TOPOCTR"] = 32768] = "TOPOCTR";
3084
- CalcFlag2[CalcFlag2["SIDEREAL"] = 65536] = "SIDEREAL";
3085
- return CalcFlag2;
3086
- })(CalcFlag || {});
3087
- var SE_AST_OFFSET = 1e4;
3088
- var BODY = {
3089
- MEAN_APOGEE: 12,
3090
- // Lilith mean
3091
- OSC_APOGEE: 13};
3092
- var normalizeAngle = (deg) => (deg % 360 + 360) % 360;
3093
- var SwissEph = class {
3094
- /**
3095
- * Constructor that accepts a pre-initialized Swiss Ephemeris module
3096
- */
3097
- constructor(module) {
3098
- this.swe_julday = null;
3099
- this.swe_calc_ut = null;
3100
- this.swe_houses = null;
3101
- this.swe_house_pos = null;
3102
- this.swe_set_ephe_path = null;
3103
- this.swe_close = null;
3104
- this.swe_set_topo = null;
3105
- this.swe_set_sid_mode = null;
3106
- this.module = module;
3107
- this.swe_julday = this.module.cwrap("swe_julday", "number", ["number", "number", "number", "number", "number"]);
3108
- this.swe_calc_ut = this.module.cwrap("swe_calc_ut", "number", ["number", "number", "number", "number"]);
3109
- this.swe_houses = this.module.cwrap("swe_houses", "number", ["number", "number", "number", "number", "number", "number"]);
3110
- this.swe_house_pos = this.module.cwrap("swe_house_pos", "number", ["number", "number", "number", "string", "number", "number"]);
3111
- this.swe_set_ephe_path = this.module.cwrap("swe_set_ephe_path", null, ["number"]);
3112
- this.swe_close = this.module.cwrap("swe_close", null, []);
3113
- this.swe_set_topo = this.module.cwrap("swe_set_topo", null, ["number", "number", "number"]);
3114
- this.swe_set_sid_mode = this.module.cwrap("swe_set_sid_mode", null, ["number", "number", "number"]);
3115
- }
3116
- checkInitialized() {
3117
- if (!this.module) {
3118
- throw new Error("Swiss Ephemeris module not available.");
3119
- }
3120
- }
3121
- /**
3122
- * Sets the path to the ephemeris data files.
3123
- * @param path - The path to the directory containing ephemeris files.
3124
- */
3125
- setEphemerisPath(path) {
3126
- this.checkInitialized();
3127
- if (path && this.swe_set_ephe_path) {
3128
- const pathPtr = this.module._malloc(path.length + 1);
3129
- if (!pathPtr) {
3130
- throw new Error("Failed to allocate memory for ephemeris path");
3131
- }
3132
- this.module.stringToUTF8(path, pathPtr, path.length + 1);
3133
- this.swe_set_ephe_path(pathPtr);
3134
- this.module._free(pathPtr);
3135
- }
3136
- }
3137
- /**
3138
- * Calculate Julian day number for a given date and time
3139
- */
3140
- getJulianDay(date) {
3141
- this.checkInitialized();
3142
- if (!this.swe_julday) {
3143
- throw new Error("Julian day calculation function not available");
3144
- }
3145
- const year = date.getUTCFullYear();
3146
- const month = date.getUTCMonth() + 1;
3147
- const day = date.getUTCDate();
3148
- const hour = date.getUTCHours() + date.getUTCMinutes() / 60 + date.getUTCSeconds() / 3600;
3149
- return this.swe_julday(year, month, day, hour, 1);
3150
- }
3151
- /**
3152
- * Calculate planet position at a given Julian day
3153
- */
3154
- calculatePlanetPosition(julday, planet, flags = 2 /* SWISS_EPH */) {
3155
- this.checkInitialized();
3156
- if (!this.swe_calc_ut || !this.module) {
3157
- throw new Error("Planet calculation function not available");
3158
- }
3159
- const resultPtr = this.module._malloc(6 * 8);
3160
- if (!resultPtr) {
3161
- throw new Error("Failed to allocate memory for planet position");
3162
- }
3163
- try {
3164
- const ret = this.swe_calc_ut(julday, planet, flags, resultPtr);
3165
- if (ret < 0) {
3166
- throw new Error(`Swiss Ephemeris calculation failed with error code ${ret}`);
3167
- }
3168
- const position = {
3169
- longitude: this.module.getValue(resultPtr, "double"),
3170
- latitude: this.module.getValue(resultPtr + 8, "double"),
3171
- distance: this.module.getValue(resultPtr + 16, "double")
3172
- };
3173
- if (flags & 256 /* SPEED */) {
3174
- position.longitudeSpeed = this.module.getValue(resultPtr + 24, "double");
3175
- position.latitudeSpeed = this.module.getValue(resultPtr + 32, "double");
3176
- position.distanceSpeed = this.module.getValue(resultPtr + 40, "double");
3177
- }
3178
- return position;
3179
- } finally {
3180
- this.module._free(resultPtr);
3181
- }
3182
- }
3183
- /**
3184
- * Calculate houses for a given date, location, and house system
3185
- */
3186
- calculateHouses(julday, latitude, longitude, hsys = "P" /* PLACIDUS */) {
3187
- this.checkInitialized();
3188
- if (!this.swe_houses || !this.module) {
3189
- throw new Error("Houses calculation function not available");
3190
- }
3191
- if (latitude < -90 || latitude > 90) {
3192
- throw new Error("Latitude must be between -90 and 90 degrees");
3193
- }
3194
- if (longitude < -180 || longitude > 180) {
3195
- throw new Error("Longitude must be between -180 and 180 degrees");
3196
- }
3197
- const HOUSES_DOUBLES = 13;
3198
- const ASCMC_DOUBLES = 10;
3199
- const BYTES_PER_F64 = 8;
3200
- const totalBytes = (HOUSES_DOUBLES + ASCMC_DOUBLES) * BYTES_PER_F64;
3201
- const memoryPtr = this.module._malloc(totalBytes);
3202
- if (!memoryPtr) throw new Error("Memory allocation failed");
3203
- const housesPtr = memoryPtr;
3204
- const ascmcPtr = memoryPtr + HOUSES_DOUBLES * BYTES_PER_F64;
3205
- try {
3206
- const hsysCode = hsys.charCodeAt(0);
3207
- const ret = this.swe_houses(julday, latitude, longitude, hsysCode, housesPtr, ascmcPtr);
3208
- if (ret < 0) {
3209
- throw new Error(`Houses calculation failed with error code ${ret}`);
3210
- }
3211
- const houses = new Array(HOUSES_DOUBLES);
3212
- for (let i = 0; i < HOUSES_DOUBLES; i++) {
3213
- houses[i] = this.module.getValue(housesPtr + i * BYTES_PER_F64, "double");
3214
- }
3215
- const ascendant = this.module.getValue(ascmcPtr + 0 * BYTES_PER_F64, "double");
3216
- const mc = this.module.getValue(ascmcPtr + 1 * BYTES_PER_F64, "double");
3217
- const armc = this.module.getValue(ascmcPtr + 2 * BYTES_PER_F64, "double");
3218
- const vertex = this.module.getValue(ascmcPtr + 3 * BYTES_PER_F64, "double");
3219
- const equasc = this.module.getValue(ascmcPtr + 4 * BYTES_PER_F64, "double");
3220
- const coasc1 = this.module.getValue(ascmcPtr + 5 * BYTES_PER_F64, "double");
3221
- const coasc2 = this.module.getValue(ascmcPtr + 6 * BYTES_PER_F64, "double");
3222
- const polasc = this.module.getValue(ascmcPtr + 7 * BYTES_PER_F64, "double");
3223
- return {
3224
- ascendant,
3225
- mc,
3226
- houses,
3227
- ascmc: {
3228
- armc,
3229
- vertex,
3230
- equasc,
3231
- coasc1,
3232
- coasc2,
3233
- polasc
3234
- }
3235
- };
3236
- } finally {
3237
- this.module._free(memoryPtr);
3238
- }
3239
- }
3240
- /**
3241
- * Clean up and close the Swiss Ephemeris
3242
- */
3243
- close() {
3244
- this.checkInitialized();
3245
- if (this.swe_close) {
3246
- this.swe_close();
3247
- }
3248
- }
3249
- /**
3250
- * Set topocentric observer
3251
- */
3252
- setTopocentric(longitude, latitude, altitudeMeters = 0) {
3253
- this.checkInitialized();
3254
- if (!this.swe_set_topo) {
3255
- throw new Error("Topocentric calculation function not available");
3256
- }
3257
- this.swe_set_topo(longitude, latitude, altitudeMeters);
3258
- }
3259
- /**
3260
- * Set sidereal mode
3261
- * Ex.: mode=1 (Lahiri). See Swiss Ephemeris mode table.
3262
- */
3263
- setSiderealMode(mode, t0 = 0, ayan_t0 = 0) {
3264
- this.checkInitialized();
3265
- this.swe_set_sid_mode?.(mode, t0, ayan_t0);
3266
- }
3267
- /**
3268
- * Asteroid by MPC number
3269
- */
3270
- calculateAsteroidPosition(julday, mpcNumber, flags = 2 /* SWISS_EPH */) {
3271
- return this.calculatePlanetPosition(julday, SE_AST_OFFSET + mpcNumber, flags);
3272
- }
3273
- /**
3274
- * Lilith mean (12) and true (13)
3275
- */
3276
- calculateLilith(julday, kind = "mean", flags = 2 /* SWISS_EPH */) {
3277
- const id = kind === "mean" ? BODY.MEAN_APOGEE : BODY.OSC_APOGEE;
3278
- return this.calculatePlanetPosition(julday, id, flags);
3279
- }
3280
- };
3281
-
3282
- // src/astrology/swisseph.ts
3283
- var swissEph = null;
3284
- var DEFAULT_FLAGS = 2 /* SWISS_EPH */ | 256 /* SPEED */;
3285
- async function getSwissEph(options = {}) {
3286
- if (swissEph) {
3287
- return;
3288
- }
3289
- try {
3290
- const isBrowser = typeof window !== "undefined";
3291
- const finalWasmPath = options.wasmPath || (isBrowser ? swisseph_default : chunk2TUXWMP5_js.__require("path").resolve(__dirname, swisseph_default));
3292
- const module = await (0, import_swisseph.default)({
3293
- locateFile: () => finalWasmPath
3294
- });
3295
- const instance = new SwissEph(module);
3296
- const defaultEphePath = isBrowser ? "../ephe" : chunk2TUXWMP5_js.__require("path").resolve(__dirname, "../ephe");
3297
- const finalEphePath = options.ephePath || defaultEphePath;
3298
- instance.setEphemerisPath(finalEphePath);
3299
- swissEph = instance;
3300
- } catch (error) {
3301
- console.error("Error initializing Swiss Ephemeris:", error);
3302
- throw error;
3303
- }
3304
- }
3305
- async function calculatePlanetaryPositions(date) {
3306
- try {
3307
- checkInitialization();
3308
- const julday = swissEph.getJulianDay(date);
3309
- const flags = DEFAULT_FLAGS;
3310
- const planets = {
3311
- sun: 0 /* SUN */,
3312
- moon: 1 /* MOON */,
3313
- mercury: 2 /* MERCURY */,
3314
- venus: 3 /* VENUS */,
3315
- mars: 4 /* MARS */,
3316
- jupiter: 5 /* JUPITER */,
3317
- saturn: 6 /* SATURN */,
3318
- uranus: 7 /* URANUS */,
3319
- neptune: 8 /* NEPTUNE */,
3320
- pluto: 9 /* PLUTO */,
3321
- meanNode: 10 /* MEAN_NODE */,
3322
- // trueNode: Planet.TRUE_NODE,
3323
- // TODO: add chiron through seas_18.se1, seas_18.se2 and seasnam.txt files
3324
- // chiron: Planet.CHIRON,
3325
- lilithMean: 12 /* LILITH_MEAN */
3326
- // lilithTrue: Planet.LILITH_TRUE,
3327
- };
3328
- const positions = {};
3329
- for (const [name, id] of Object.entries(planets)) {
3330
- try {
3331
- positions[name] = swissEph.calculatePlanetPosition(julday, id, flags);
3332
- } catch (error) {
3333
- throw new Error(`Failed to calculate position for ${name}: ${error}`);
3334
- }
3335
- }
3336
- return positions;
3337
- } catch (error) {
3338
- console.error("Error calculating planetary positions:", error);
3339
- throw error;
3340
- }
3341
- }
3342
- async function calculateHouses(date, latitude, longitude, houseSystem) {
3343
- try {
3344
- checkInitialization();
3345
- const julday = swissEph.getJulianDay(date);
3346
- return swissEph.calculateHouses(julday, latitude, longitude, houseSystem);
3347
- } catch (error) {
3348
- console.error("Error calculating houses:", error);
3349
- throw error;
3350
- }
3351
- }
3352
- function closeSwissEph() {
3353
- if (swissEph) {
3354
- try {
3355
- swissEph.close();
3356
- swissEph = null;
3357
- } catch (error) {
3358
- console.error("Error closing Swiss Ephemeris:", error);
3359
- throw error;
3360
- }
3361
- }
3362
- }
3363
- function checkInitialization() {
3364
- if (!swissEph) {
3365
- throw new Error("Swiss Ephemeris not initialized. Call getSwissEph() first.");
3366
- }
3367
- }
3368
-
3369
- // src/astrology/index.ts
3370
- function validateInputs(options) {
3371
- if (!(options.date instanceof Date) || isNaN(options.date.getTime())) {
3372
- throw new Error("Invalid date provided");
3373
- }
3374
- if (typeof options.latitude !== "number" || options.latitude < -90 || options.latitude > 90) {
3375
- throw new Error("Invalid latitude: must be between -90 and 90 degrees");
3376
- }
3377
- if (typeof options.longitude !== "number" || options.longitude < -180 || options.longitude > 180) {
3378
- throw new Error("Invalid longitude: must be between -180 and 180 degrees");
3379
- }
3380
- if (typeof options.timezone !== "number" || options.timezone < -12 || options.timezone > 14) {
3381
- throw new Error("Invalid timezone: must be between -12 and +14");
3382
- }
3383
- }
3384
- async function getBirthChart(options) {
3385
- try {
3386
- validateInputs(options);
3387
- const localDate = new Date(options.date);
3388
- const utcDate = new Date(localDate.getTime() - options.timezone * 60 * 60 * 1e3);
3389
- const planets = await calculatePlanetaryPositions(utcDate);
3390
- if (!planets) {
3391
- throw new Error("Failed to calculate planetary positions");
3392
- }
3393
- const houses = await calculateHouses(
3394
- utcDate,
3395
- options.latitude,
3396
- options.longitude,
3397
- options.houseSystem || "P" /* PLACIDUS */
3398
- );
3399
- if (!houses) {
3400
- throw new Error("Failed to calculate houses");
3401
- }
3402
- return {
3403
- dateUtc: utcDate,
3404
- planets,
3405
- houses
3406
- };
3407
- } catch (error) {
3408
- console.error("Error calculating birth chart:", error);
3409
- throw error;
3410
- }
3411
- }
3412
- var SIGNS = [
3413
- "Aries",
3414
- "Taurus",
3415
- "Gemini",
3416
- "Cancer",
3417
- "Leo",
3418
- "Virgo",
3419
- "Libra",
3420
- "Scorpio",
3421
- "Sagittarius",
3422
- "Capricorn",
3423
- "Aquarius",
3424
- "Pisces"
3425
- ];
3426
- function formatDegreeMinutes(decimalDegrees) {
3427
- let deg = Math.floor(decimalDegrees);
3428
- let min = Math.round((decimalDegrees - deg) * 60);
3429
- if (min === 60) {
3430
- min = 0;
3431
- deg += 1;
3432
- }
3433
- return `${deg}\xB0${String(min).padStart(2, "0")}'`;
3434
- }
3435
- function getZodiacPosition(longitude) {
3436
- const L = normalizeAngle(longitude);
3437
- const signIndex = Math.floor(L / 30) % 12;
3438
- const within = L - signIndex * 30;
3439
- return {
3440
- sign: SIGNS[signIndex],
3441
- decimalDegrees: within,
3442
- traditionalFormat: formatDegreeMinutes(within),
3443
- decimal: within.toFixed(2) + "\xB0"
3444
- };
3445
- }
3446
- function formatHouseCusps(houses360) {
3447
- return houses360.map((lon, i) => {
3448
- const z = getZodiacPosition(lon);
3449
- return {
3450
- house: i + 1,
3451
- sign: z.sign,
3452
- degree: z.traditionalFormat,
3453
- longitude: normalizeAngle(lon)
3454
- };
3455
- });
3456
- }
3457
- function findHouseOf(longitude, cusps360) {
3458
- const L = normalizeAngle(longitude);
3459
- const H = cusps360.map((c, i) => ({ i: i + 1, L: normalizeAngle(c) })).sort((a, b) => a.L - b.L);
3460
- for (let k = 0; k < H.length; k++) {
3461
- const cur = H[k], nxt = H[(k + 1) % H.length];
3462
- if (nxt.L < cur.L) {
3463
- if (L >= cur.L || L < nxt.L) return cur.i;
3464
- } else {
3465
- if (L >= cur.L && L < nxt.L) return cur.i;
3466
- }
3467
- }
3468
- return 1;
3469
- }
3470
-
3471
- exports.CalcFlag = CalcFlag;
3472
- exports.HouseSystem = HouseSystem;
3473
- exports.Planet = Planet;
3474
- exports.SIGNS = SIGNS;
3475
- exports.closeSwissEph = closeSwissEph;
3476
- exports.findHouseOf = findHouseOf;
3477
- exports.formatDegreeMinutes = formatDegreeMinutes;
3478
- exports.formatHouseCusps = formatHouseCusps;
3479
- exports.getBirthChart = getBirthChart;
3480
- exports.getSwissEph = getSwissEph;
3481
- exports.getZodiacPosition = getZodiacPosition;
3482
- exports.normalizeAngle = normalizeAngle;
3483
- //# sourceMappingURL=chunk-T2JS2IJN.js.map
3484
- //# sourceMappingURL=chunk-T2JS2IJN.js.map
3053
+ module.exports = swisseph_webMXYBWOOS;
3054
+ //# sourceMappingURL=swisseph.web-MXYBWOOS.js.map
3055
+ //# sourceMappingURL=swisseph.web-MXYBWOOS.js.map