@randsum/daggerheart 0.14.0 → 0.18.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.
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +3 -3
- package/package.json +2 -2
- package/src/index.ts +0 -1
- package/src/rollDaggerheart/index.ts +4 -6
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/src/meetOrBeatDaggerheart/formatDescription.ts +0 -14
- package/src/meetOrBeatDaggerheart/index.ts +0 -26
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var G=require("node:module");var{defineProperty:
|
|
1
|
+
var G=require("node:module");var{defineProperty:o,getOwnPropertyNames:p,getOwnPropertyDescriptor:q}=Object,g=Object.prototype.hasOwnProperty,n=(t,e,r)=>{for(let a of p(e))if(!g.call(t,a)&&a!=="default")o(t,a,{get:()=>e[a],enumerable:!0});if(r){for(let a of p(e))if(!g.call(r,a)&&a!=="default")o(r,a,{get:()=>e[a],enumerable:!0});return r}};var f=new WeakMap,B=(t)=>{var e=f.get(t),r;if(e)return e;if(e=o({},"__esModule",{value:!0}),t&&typeof t==="object"||typeof t==="function")p(t).map((a)=>!g.call(e,a)&&o(e,a,{get:()=>t[a],enumerable:!(r=q(t,a))||r.enumerable}));return f.set(t,e),e};var c=(t,e)=>{for(var r in e)o(t,r,{get:e[r],enumerable:!0,configurable:!0,set:(a)=>e[r]=()=>a})};var l={};c(l,{rollDaggerheart:()=>h});module.exports=B(l);n(l,require("@randsum/roller"),module.exports);var v={};c(v,{rollDaggerheart:()=>h});var m=require("@randsum/roller");function d(t,e){if(t===e)return"critical hope";if(t>e)return"hope";return"fear"}var R=require("@randsum/roller");function y(){return R.roll({quantity:1,sides:6}).total}function D(t,e){if(e){let r=y();if(e==="Advantage")return[t+r,r];return[t-r,-r]}return[t,void 0]}function h({modifier:t=0,rollingWith:e,amplifyHope:r=!1,amplifyFear:a=!1}={}){let b=m.roll({quantity:1,sides:r?20:12}),x=m.roll({quantity:1,sides:a?20:12}),u=b.total,s=x.total,A=u+s+t,[i,T]=D(A,e);return{result:i,baseResult:{type:d(u,s),total:i,rolls:{hope:u,advantage:T,fear:s,modifier:t}}}}
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# debugId=949E2C3D2A0ABF9264756E2164756E21
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2luZGV4LnRzIiwgIi4uL3NyYy9yb2xsRGFnZ2VyaGVhcnQvaW5kZXgudHMiLCAiLi4vc3JjL3JvbGxEYWdnZXJoZWFydC9jYWxjdWxhdGVUeXBlLnRzIiwgIi4uL3NyYy9yb2xsRGFnZ2VyaGVhcnQvYWR2YW50YWdlRGllLnRzIiwgIi4uL3NyYy9yb2xsRGFnZ2VyaGVhcnQvY2FsY3VsYXRlVG90YWwudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbCiAgICAiZXhwb3J0ICogZnJvbSAnQHJhbmRzdW0vcm9sbGVyJ1xuZXhwb3J0ICogZnJvbSAnLi9yb2xsRGFnZ2VyaGVhcnQnXG5leHBvcnQgdHlwZSAqIGZyb20gJy4vdHlwZXMnXG4iLAogICAgImltcG9ydCB7IHR5cGUgQmFzZUdhbWVSb2xsUmVzdWx0LCByb2xsIGFzIGNvcmVSb2xsIH0gZnJvbSAnQHJhbmRzdW0vcm9sbGVyJ1xuaW1wb3J0IHR5cGUgeyBEYWdnZXJoZWFydFJvbGxBcmd1bWVudCwgRGFnZ2VyaGVhcnRSb2xsUmVzdWx0IH0gZnJvbSAnLi4vdHlwZXMnXG5pbXBvcnQgeyBjYWxjdWxhdGVUeXBlIH0gZnJvbSAnLi9jYWxjdWxhdGVUeXBlJ1xuaW1wb3J0IHsgY2FsY3VsYXRlVG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ixFQUFPLEVBQVcsTUFDbEIsRUFBUSxFQUFPLEVBQU8sR0FFckIsRUFBb0IsR0FBYSxFQUFlLEVBQU8sQ0FBVyxFQUV6RSxNQUFPLENBQ0wsT0FBUSxFQUNSLFdBQVksQ0FDVixLQUFNLEVBQWMsRUFBTSxDQUFJLEVBQzlCLE1BQU8sRUFDUCxNQUFPLENBQ0wsT0FDQSxZQUNBLE9BQ0EsVUFDRixDQUNGLENBQ0YiLAogICJkZWJ1Z0lkIjogIjk0OUUyQzNEMkEwQUJGOTI2NDc1NkUyMTY0NzU2RTIxIiwKICAibmFtZXMiOiBbXQp9
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "@randsum/roller";
|
|
2
|
+
import { BaseGameRollResult } from "@randsum/roller";
|
|
2
3
|
type DaggerheartAdvantageDisadvantage = "Advantage" | "Disadvantage";
|
|
3
4
|
interface DaggerheartRollArgument {
|
|
4
5
|
modifier?: number;
|
|
@@ -23,7 +24,5 @@ interface DaggerheartMeetOrBeatResult {
|
|
|
23
24
|
target: number;
|
|
24
25
|
description: string;
|
|
25
26
|
}
|
|
26
|
-
declare function meetOrBeatDaggerheart(difficultyClass: number, rollArg?: DaggerheartRollArgument): DaggerheartMeetOrBeatResult;
|
|
27
|
-
import { BaseGameRollResult } from "@randsum/roller";
|
|
28
27
|
declare function rollDaggerheart({ modifier, rollingWith, amplifyHope, amplifyFear }?: DaggerheartRollArgument): BaseGameRollResult<number, DaggerheartRollResult>;
|
|
29
|
-
export { rollDaggerheart,
|
|
28
|
+
export { rollDaggerheart, DaggerheartRollResultType, DaggerheartRollResult, DaggerheartRollArgument, DaggerheartMeetOrBeatResult, DaggerheartAdvantageDisadvantage };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "@randsum/roller";
|
|
2
|
+
import { BaseGameRollResult } from "@randsum/roller";
|
|
2
3
|
type DaggerheartAdvantageDisadvantage = "Advantage" | "Disadvantage";
|
|
3
4
|
interface DaggerheartRollArgument {
|
|
4
5
|
modifier?: number;
|
|
@@ -23,7 +24,5 @@ interface DaggerheartMeetOrBeatResult {
|
|
|
23
24
|
target: number;
|
|
24
25
|
description: string;
|
|
25
26
|
}
|
|
26
|
-
declare function meetOrBeatDaggerheart(difficultyClass: number, rollArg?: DaggerheartRollArgument): DaggerheartMeetOrBeatResult;
|
|
27
|
-
import { BaseGameRollResult } from "@randsum/roller";
|
|
28
27
|
declare function rollDaggerheart({ modifier, rollingWith, amplifyHope, amplifyFear }?: DaggerheartRollArgument): BaseGameRollResult<number, DaggerheartRollResult>;
|
|
29
|
-
export { rollDaggerheart,
|
|
28
|
+
export { rollDaggerheart, DaggerheartRollResultType, DaggerheartRollResult, DaggerheartRollArgument, DaggerheartMeetOrBeatResult, DaggerheartAdvantageDisadvantage };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export*from"@randsum/roller";import{roll as p}from"@randsum/roller";function
|
|
1
|
+
export*from"@randsum/roller";import{roll as p}from"@randsum/roller";function n(e,t){if(e===t)return"critical hope";if(e>t)return"hope";return"fear"}import{roll as d}from"@randsum/roller";function u(){return d({quantity:1,sides:6}).total}function s(e,t){if(t){let r=u();if(t==="Advantage")return[e+r,r];return[e-r,-r]}return[e,void 0]}function T({modifier:e=0,rollingWith:t,amplifyHope:r=!1,amplifyFear:g=!1}={}){let m=p({quantity:1,sides:r?20:12}),i=p({quantity:1,sides:g?20:12}),a=m.total,o=i.total,f=a+o+e,[l,c]=s(f,t);return{result:l,baseResult:{type:n(a,o),total:l,rolls:{hope:a,advantage:c,fear:o,modifier:e}}}}export{T as rollDaggerheart};
|
|
2
2
|
|
|
3
|
-
//# debugId=
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# debugId=AC52333205ED0C6E64756E2164756E21
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291c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bXQp9
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@randsum/daggerheart",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "A flexible, type-safe dice roller for building Daggerheart-compatible applications",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"sideEffects": false,
|
|
29
29
|
"type": "module",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@randsum/roller": "~0.
|
|
31
|
+
"@randsum/roller": "~0.18.0"
|
|
32
32
|
},
|
|
33
33
|
"exports": {
|
|
34
34
|
".": {
|
package/src/index.ts
CHANGED
|
@@ -14,23 +14,21 @@ export function rollDaggerheart({
|
|
|
14
14
|
> {
|
|
15
15
|
const hopeResult = coreRoll({
|
|
16
16
|
quantity: 1,
|
|
17
|
-
sides: amplifyHope ? 20 : 12
|
|
18
|
-
modifiers: { plus: modifier }
|
|
17
|
+
sides: amplifyHope ? 20 : 12
|
|
19
18
|
})
|
|
20
19
|
const fearResult = coreRoll({
|
|
21
20
|
quantity: 1,
|
|
22
|
-
sides: amplifyFear ? 20 : 12
|
|
23
|
-
modifiers: { plus: modifier }
|
|
21
|
+
sides: amplifyFear ? 20 : 12
|
|
24
22
|
})
|
|
25
23
|
const hope = hopeResult.total
|
|
26
24
|
const fear = fearResult.total
|
|
27
|
-
const total = hope + fear
|
|
25
|
+
const total = hope + fear + modifier
|
|
28
26
|
|
|
29
27
|
const [totalWithAdvantage, advantage] = calculateTotal(total, rollingWith)
|
|
30
28
|
|
|
31
29
|
return {
|
|
32
30
|
result: totalWithAdvantage,
|
|
33
|
-
|
|
31
|
+
baseResult: {
|
|
34
32
|
type: calculateType(hope, fear),
|
|
35
33
|
total: totalWithAdvantage,
|
|
36
34
|
rolls: {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../roller/dist/index.d.ts","../src/types.ts","../src/rollDaggerheart/calculateType.ts","../src/rollDaggerheart/advantageDie.ts","../src/rollDaggerheart/calculateTotal.ts","../src/rollDaggerheart/index.ts","../src/meetOrBeatDaggerheart/formatDescription.ts","../src/meetOrBeatDaggerheart/index.ts","../src/index.ts","../../../node_modules/bun-types/globals.d.ts","../../../node_modules/bun-types/s3.d.ts","../../../node_modules/undici-types/utility.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/sqlite.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/h2c-client.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-call-history.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/cache-interceptor.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/bun-types/fetch.d.ts","../../../node_modules/bun-types/bun.d.ts","../../../node_modules/@types/bun/index.d.ts","../../../node_modules/bun-types/extensions.d.ts","../../../node_modules/bun-types/devserver.d.ts","../../../node_modules/bun-types/ffi.d.ts","../../../node_modules/bun-types/html-rewriter.d.ts","../../../node_modules/bun-types/jsc.d.ts","../../../node_modules/bun-types/sqlite.d.ts","../../../node_modules/bun-types/test.d.ts","../../../node_modules/bun-types/wasm.d.ts","../../../node_modules/bun-types/overrides.d.ts","../../../node_modules/bun-types/deprecated.d.ts","../../../node_modules/bun-types/redis.d.ts","../../../node_modules/bun-types/shell.d.ts","../../../node_modules/bun-types/experimental.d.ts","../../../node_modules/bun-types/bun.ns.d.ts","../../../node_modules/bun-types/index.d.ts"],"fileIdsList":[[92,93,99,104,191,192,195,201,203,204,205,206,208],[92,93,99,101,104,191,192,195,201,203,204,205,206],[92,93,99,103,104,191,192,195,201,203,204,205,206],[92,93,104,191,192,195,201,203,204,205,206],[92,93,99,104,109,139,191,192,195,201,203,204,205,206],[92,93,99,104,105,110,116,117,124,136,147,191,192,195,201,203,204,205,206],[92,93,99,104,105,106,116,124,191,192,195,201,203,204,205,206],[92,93,99,104,191,192,195,201,203,204,205,206],[92,93,99,104,107,148,191,192,195,201,203,204,205,206],[92,93,99,104,108,109,117,125,191,192,195,201,203,204,205,206],[92,93,99,104,109,136,144,191,192,195,201,203,204,205,206],[92,93,99,104,110,112,116,124,191,192,195,201,203,204,205,206],[92,93,99,103,104,111,191,192,195,201,203,204,205,206],[92,93,99,104,112,113,191,192,195,201,203,204,205,206],[92,93,99,104,114,116,191,192,195,201,203,204,205,206],[92,93,99,103,104,116,191,192,195,201,203,204,205,206],[92,93,99,104,116,117,118,136,147,191,192,195,201,203,204,205,206],[92,93,99,104,116,117,118,131,136,139,191,192,195,201,202,203,204,205,206],[92,93,99,104,190,191,192,195,201,203,204,205,206],[92,93,99,104,112,116,119,124,136,147,190,191,192,195,201,203,204,205,206],[92,93,99,104,116,117,119,120,124,136,144,147,191,192,195,201,203,204,205,206],[92,93,99,104,119,121,136,144,147,191,192,195,201,203,204,205,206],[92,93,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,191,192,195,201,203,204,205,206],[92,93,99,104,116,122,191,192,195,201,203,204,205,206],[92,93,99,104,123,147,191,192,195,201,203,204,205,206],[92,93,99,104,112,116,124,136,191,192,195,201,203,204,205,206],[92,93,99,104,125,191,192,195,201,203,204,205,206],[92,93,99,104,126,191,192,195,201,203,204,205,206],[92,93,99,103,104,127,191,192,195,201,203,204,205,206],[92,93,99,101,102,103,104,105,106,107,108,109,110,111,112,113,114,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,191,192,195,201,202,203,204,205,206],[92,93,99,104,129,191,192,195,201,203,204,205,206],[92,93,99,104,130,191,192,195,201,203,204,205,206],[92,93,99,104,116,131,132,191,192,195,201,203,204,205,206],[92,93,99,104,131,133,148,150,191,192,195,201,203,204,205,206],[92,93,99,104,116,136,137,139,191,192,195,201,203,204,205,206],[92,93,99,104,138,139,191,192,195,201,203,204,205,206],[92,93,99,104,136,137,191,192,195,201,203,204,205,206],[92,93,99,104,139,191,192,195,201,203,204,205,206],[92,93,99,104,140,191,192,195,201,203,204,205,206],[92,93,99,101,104,136,141,191,192,195,201,203,204,205,206],[92,93,99,104,116,142,143,191,192,195,201,203,204,205,206],[92,93,99,104,142,143,191,192,195,201,203,204,205,206],[92,93,99,104,109,124,136,144,191,192,195,201,202,203,204,205,206],[92,93,99,104,145,191,192,195,201,203,204,205,206],[92,93,99,104,124,146,191,192,195,201,203,204,205,206],[92,93,99,104,119,130,147,191,192,195,201,203,204,205,206],[92,93,99,104,109,148,191,192,195,201,203,204,205,206],[92,93,99,104,136,149,191,192,195,201,203,204,205,206],[92,93,99,104,123,150,191,192,195,201,203,204,205,206],[92,93,99,104,151,191,192,195,201,203,204,205,206],[92,93,99,104,116,118,127,136,139,147,149,150,152,191,192,195,201,203,204,205,206],[92,93,99,104,136,153,191,192,195,201,203,204,205,206],[79,80,92,93,99,104,191,192,195,201,203,204,205,206],[81,92,93,99,104,191,192,195,201,203,204,205,206],[92,93,99,104,109,117,119,144,148,152,190,191,195,196,201,202,203,204,205,206],[92,93,99,104,191,192,195,201,204,205,206],[92,93,99,104,191,192,201,203,204,205,206],[92,93,99,104,191,192,195,201,203,204,205],[92,93,99,104,190,192,195,201,203,204,205,206],[93,99,104,109,127,136,139,144,148,152,191,192,195,201,203,204,205,206],[92,93,99,104,154,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207],[92,93,99,104,109,117,118,125,144,153,191,192,195,201,203,204,205,206],[92,93,99,104,191,192,195,201,203,205,206],[92,99,104,117,191,192,195,201,203,204,205,206],[92,93,99,104,191,192,195,201,203,204,206],[92,93,99,104,191,192,195,203,204,205,206],[92,93,99,104,147,160,164,191,192,195,201,203,204,205,206],[92,93,99,104,136,147,160,191,192,195,201,203,204,205,206],[92,93,99,104,136,191,192,195,201,203,204,205,206],[92,93,99,104,155,191,192,195,201,203,204,205,206],[92,93,99,104,147,157,160,191,192,195,201,203,204,205,206],[92,93,99,104,124,144,191,192,195,201,202,203,204,205,206],[92,93,99,104,154,191,192,195,201,203,204,205,206],[92,93,99,104,154,155,191,192,195,201,203,204,205,206],[92,93,99,104,124,147,157,160,191,192,195,201,203,204,205,206],[92,93,94,95,96,99,104,116,136,147,156,159,191,192,195,201,203,204,205,206],[92,93,99,104,160,168,191,192,195,201,203,204,205,206],[92,93,95,99,104,158,191,192,195,201,203,204,205,206],[92,93,99,104,160,184,185,191,192,195,201,203,204,205,206],[92,93,95,99,104,139,147,154,156,160,191,192,195,201,203,204,205,206],[92,93,99,104,160,191,192,195,201,203,204,205,206],[92,93,94,99,104,191,192,195,201,203,204,205,206],[92,93,99,104,155,156,157,158,159,160,161,162,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,185,186,187,188,189,191,192,195,201,203,204,205,206],[92,93,99,104,112,160,177,180,191,192,195,201,203,204,205,206],[92,93,99,104,160,168,169,170,191,192,195,201,203,204,205,206],[92,93,99,104,158,160,169,171,191,192,195,201,203,204,205,206],[92,93,99,104,159,191,192,195,201,203,204,205,206],[92,93,95,99,104,155,160,191,192,195,201,203,204,205,206],[92,93,99,104,160,164,169,171,191,192,195,201,203,204,205,206],[92,93,99,104,164,191,192,195,201,203,204,205,206],[92,93,99,104,147,158,160,163,191,192,195,201,203,204,205,206],[92,93,95,99,104,157,160,168,191,192,195,201,203,204,205,206],[92,93,99,104,160,177,191,192,195,201,203,204,205,206],[92,93,99,104,139,152,154,155,160,184,191,192,195,201,203,204,205,206],[82,83,84,88,90,92,93,99,104,191,192,195,201,203,204,205,206],[82,84,92,93,99,104,191,192,195,201,203,204,205,206],[82,84,88,89,92,93,99,104,191,192,195,201,203,204,205,206],[82,83,92,93,99,104,191,192,195,201,203,204,205,206],[82,84,86,92,93,99,104,191,192,195,201,203,204,205,206],[82,83,84,85,87,92,93,99,104,191,192,195,201,203,204,205,206],[82,92,93,99,104,191,192,195,201,203,204,205,206]],"fileInfos":[{"version":"69684132aeb9b5642cbcd9e22dff7818ff0ee1aa831728af0ecf97d3364d5546","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"8bf8b5e44e3c9c36f98e1007e8b7018c0f38d8adc07aecef42f5200114547c70","impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"4245fee526a7d1754529d19227ecbf3be066ff79ebb6a380d78e41648f2f224d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"170d4db14678c68178ee8a3d5a990d5afb759ecb6ec44dbd885c50f6da6204f6","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"d4d7d3f832882a4b2d611a7eaaa80c780c3342b5732090130fa9af4a40bd051e","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},"aa2ece2dcf33e4cfe103c47c996ad9931c4cbcc8480d91b7fe02ac9e5553c80c","30017bd5acdbbce0681a93ebb938f18fe122f9938e387c1c83603282652bb72c","27562161348d18ed7dc027655bd8ddfa37328bc8c134ee15bc5b1e398b303650","0ec00a2993f8b40ab7d2a18c8f11bb80e8dad78393380ce82043250a9a5a0077","a73da7bab70fed3047a48b253b2a1f81e51626f055e30760847ff50976f82897","398bd8ba7c460f5d0084c6e53f5ea050ed15fec2db44310ea11fcaa84d1e2134","b674dec3d6bf4df8f001f2c09acd203a182fdc906a08cfe178bac1550d3adf2b","5f9826db14dbcfb34deaf9744be7d2f00e80b4209918f87e3028d8bb6719a8e4","bd874af7bad116eff275682624db5ac7ea61bca50add6523613efed23ca7136e",{"version":"309f3a357cc08760a602bd9b1177d4474426e6e2897a7295c898920198d968fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"ee31fab138939ef1903831933d524de9944511759778eedaaed56d6eb7f8697d","impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"487b694c3de27ddf4ad107d4007ad304d29effccf9800c8ae23c2093638d906a","impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0671b50bb99cc7ad46e9c68fa0e7f15ba4bc898b59c31a17ea4611fab5095da","affectsGlobalScope":true,"impliedFormat":1},{"version":"d802f0e6b5188646d307f070d83512e8eb94651858de8a82d1e47f60fb6da4e2","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4b4faedc57701ae727d78ba4a83e466a6e3bdcbe40efbf913b17e860642897c","affectsGlobalScope":true,"impliedFormat":1},{"version":"bbcfd9cd76d92c3ee70475270156755346c9086391e1b9cb643d072e0cf576b8","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"72c1f5e0a28e473026074817561d1bc9647909cf253c8d56c41d1df8d95b85f7","impliedFormat":1},{"version":"4a48915fb0c07aa96d315dcb98231aa135151fb961cd3c6093cf29d64304c5d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"938f94db8400d0b479626b9006245a833d50ce8337f391085fad4af540279567","impliedFormat":1},{"version":"c4e8e8031808b158cfb5ac5c4b38d4a26659aec4b57b6a7e2ba0a141439c208c","impliedFormat":1},{"version":"2c91d8366ff2506296191c26fd97cc1990bab3ee22576275d28b654a21261a44","affectsGlobalScope":true,"impliedFormat":1},{"version":"5524481e56c48ff486f42926778c0a3cce1cc85dc46683b92b1271865bcf015a","impliedFormat":1},{"version":"12fb9c13f24845000d7bd9660d11587e27ef967cbd64bd9df19ae3e6aa9b52d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"289e9894a4668c61b5ffed09e196c1f0c2f87ca81efcaebdf6357cfb198dac14","impliedFormat":1},{"version":"25a1105595236f09f5bce42398be9f9ededc8d538c258579ab662d509aa3b98e","impliedFormat":1},{"version":"4ea4cb9f755b97e72fd2f42e2d9786baf9184a8625085a24dc7ea96734d5986b","impliedFormat":1},{"version":"bd1b3b48920e1bd6d52133f95153a5d94aa1b3555e5f30b2154336e52abd29bd","impliedFormat":1},{"version":"ad1cc0ed328f3f708771272021be61ab146b32ecf2b78f3224959ff1e2cd2a5c","impliedFormat":1},{"version":"71450bbc2d82821d24ca05699a533e72758964e9852062c53b30f31c36978ab8","affectsGlobalScope":true,"impliedFormat":1},{"version":"62f572306e0b173cc5dfc4c583471151f16ef3779cf27ab96922c92ec82a3bc8","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f32444438ecb1fa4519f6ec3977d69ce0e3acfa18b803e5cd725c204501f350","impliedFormat":1},{"version":"0ab3c844f1eb5a1d94c90edc346a25eb9d3943af7a7812f061bf2d627d8afac0","impliedFormat":1},{"version":"e8c431ccd0dd211303eeeaef6329d70d1ba8d4f6fa23b9c1a625cebd29226c1e","impliedFormat":1},{"version":"161f09445a8b4ba07f62ae54b27054e4234e7957062e34c6362300726dabd315","impliedFormat":1},{"version":"77fced47f495f4ff29bb49c52c605c5e73cd9b47d50080133783032769a9d8a6","impliedFormat":1},{"version":"e6057f9e7b0c64d4527afeeada89f313f96a53291705f069a9193c18880578cb","impliedFormat":1},{"version":"34ecb9596317c44dab586118fb62c1565d3dad98d201cd77f3e6b0dde453339c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0f5cda0282e1d18198e2887387eb2f026372ebc4e11c4e4516fef8a19ee4d514","impliedFormat":1},{"version":"e99b0e71f07128fc32583e88ccd509a1aaa9524c290efb2f48c22f9bf8ba83b1","impliedFormat":1},{"version":"76957a6d92b94b9e2852cf527fea32ad2dc0ef50f67fe2b14bd027c9ceef2d86","impliedFormat":1},{"version":"237581f5ec4620a17e791d3bb79bad3af01e27a274dbee875ac9b0721a4fe97d","affectsGlobalScope":true,"impliedFormat":1},{"version":"a8a99a5e6ed33c4a951b67cc1fd5b64fd6ad719f5747845c165ca12f6c21ba16","affectsGlobalScope":true,"impliedFormat":1},{"version":"a58a15da4c5ba3df60c910a043281256fa52d36a0fcdef9b9100c646282e88dd","impliedFormat":1},{"version":"b36beffbf8acdc3ebc58c8bb4b75574b31a2169869c70fc03f82895b93950a12","impliedFormat":1},{"version":"de263f0089aefbfd73c89562fb7254a7468b1f33b61839aafc3f035d60766cb4","impliedFormat":1},{"version":"70b57b5529051497e9f6482b76d91c0dcbb103d9ead8a0549f5bab8f65e5d031","impliedFormat":1},{"version":"e6d81b1f7ab11dc1b1ad7ad29fcfad6904419b36baf55ed5e80df48d56ac3aff","impliedFormat":1},{"version":"1013eb2e2547ad8c100aca52ef9df8c3f209edee32bb387121bb3227f7c00088","impliedFormat":1},{"version":"b6b8e3736383a1d27e2592c484a940eeb37ec4808ba9e74dd57679b2453b5865","impliedFormat":1},{"version":"d6f36b683c59ac0d68a1d5ee906e578e2f5e9a285bca80ff95ce61cdc9ddcdeb","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"125d792ec6c0c0f657d758055c494301cc5fdb327d9d9d5960b3f129aff76093","impliedFormat":1},{"version":"12aad38de6f0594dc21efa78a2c1f67bf6a7ef5a389e05417fe9945284450908","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea713aa14a670b1ea0fbaaca4fd204e645f71ca7653a834a8ec07ee889c45de6","impliedFormat":1},{"version":"b338a6e6c1d456e65a6ea78da283e3077fe8edf7202ae10490abbba5b952b05e","impliedFormat":1},{"version":"2918b7c516051c30186a1055ebcdb3580522be7190f8a2fff4100ea714c7c366","affectsGlobalScope":true,"impliedFormat":1},{"version":"ae86f30d5d10e4f75ce8dcb6e1bd3a12ecec3d071a21e8f462c5c85c678efb41","impliedFormat":1},{"version":"982efeb2573605d4e6d5df4dc7e40846bda8b9e678e058fc99522ab6165c479e","impliedFormat":1},{"version":"e03460fe72b259f6d25ad029f085e4bedc3f90477da4401d8fbc1efa9793230e","impliedFormat":1},{"version":"4286a3a6619514fca656089aee160bb6f2e77f4dd53dc5a96b26a0b4fc778055","impliedFormat":1},{"version":"d67fc92a91171632fc74f413ce42ff1aa7fbcc5a85b127101f7ec446d2039a1f","affectsGlobalScope":true,"impliedFormat":1},{"version":"d40e4631100dbc067268bce96b07d7aff7f28a541b1bfb7ef791c64a696b3d33","affectsGlobalScope":true,"impliedFormat":1},{"version":"784490137935e1e38c49b9289110e74a1622baf8a8907888dcbe9e476d7c5e44","impliedFormat":1},{"version":"42180b657831d1b8fead051698618b31da623fb71ff37f002cb9d932cfa775f1","impliedFormat":1},{"version":"4f98d6fb4fe7cbeaa04635c6eaa119d966285d4d39f0eb55b2654187b0b27446","impliedFormat":1},{"version":"e4c653466d0497d87fa9ffd00e59a95f33bc1c1722c3f5c84dab2e950c18da70","affectsGlobalScope":true,"impliedFormat":1},{"version":"e6dcc3b933e864e91d4bea94274ad69854d5d2a1311a4b0e20408a57af19e95d","impliedFormat":1},{"version":"a51f786b9f3c297668f8f322a6c58f85d84948ef69ade32069d5d63ec917221c","impliedFormat":1},{"version":"e525f9e67f5ddba7b5548430211cae2479070b70ef1fd93550c96c10529457bd","impliedFormat":1},{"version":"ccf4552357ce3c159ef75f0f0114e80401702228f1898bdc9402214c9499e8c0","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"17fe9131bec653b07b0a1a8b99a830216e3e43fe0ea2605be318dc31777c8bbf","impliedFormat":1},{"version":"3c8e93af4d6ce21eb4c8d005ad6dc02e7b5e6781f429d52a35290210f495a674","impliedFormat":1},{"version":"2c9875466123715464539bfd69bcaccb8ff6f3e217809428e0d7bd6323416d01","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"2472ef4c28971272a897fdb85d4155df022e1f5d9a474a526b8fc2ef598af94e","impliedFormat":1},{"version":"6c8e442ba33b07892169a14f7757321e49ab0f1032d676d321a1fdab8a67d40c","impliedFormat":1},{"version":"b41767d372275c154c7ea6c9d5449d9a741b8ce080f640155cc88ba1763e35b3","impliedFormat":1},{"version":"1cd673d367293fc5cb31cd7bf03d598eb368e4f31f39cf2b908abbaf120ab85a","impliedFormat":1},{"version":"19851a6596401ca52d42117108d35e87230fc21593df5c4d3da7108526b6111c","impliedFormat":1},{"version":"3825bf209f1662dfd039010a27747b73d0ef379f79970b1d05601ec8e8a4249f","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"40bfc70953be2617dc71979c14e9e99c5e65c940a4f1c9759ddb90b0f8ff6b1a","impliedFormat":1},{"version":"da52342062e70c77213e45107921100ba9f9b3a30dd019444cf349e5fb3470c4","impliedFormat":1},{"version":"e9ace91946385d29192766bf783b8460c7dbcbfc63284aa3c9cae6de5155c8bc","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"561c60d8bfe0fec2c08827d09ff039eca0c1f9b50ef231025e5a549655ed0298","impliedFormat":1},{"version":"1e30c045732e7db8f7a82cf90b516ebe693d2f499ce2250a977ec0d12e44a529","impliedFormat":1},{"version":"84b736594d8760f43400202859cda55607663090a43445a078963031d47e25e7","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"54c3e2371e3d016469ad959697fd257e5621e16296fa67082c2575d0bf8eced0","impliedFormat":1},{"version":"beb8233b2c220cfa0feea31fbe9218d89fa02faa81ef744be8dce5acb89bb1fd","impliedFormat":1},{"version":"78b29846349d4dfdd88bd6650cc5d2baaa67f2e89dc8a80c8e26ef7995386583","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"e38d4fdf79e1eadd92ed7844c331dbaa40f29f21541cfee4e1acff4db09cda33","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"7c10a32ae6f3962672e6869ee2c794e8055d8225ef35c91c0228e354b4e5d2d3","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"99f569b42ea7e7c5fe404b2848c0893f3e1a56e0547c1cd0f74d5dbb9a9de27e","impliedFormat":1},{"version":"e45cc72cc9e7ad726ec83141fa4cd221d432062de34586ff107a0442ae28bf19","impliedFormat":1},{"version":"e24ee8b47c634d66662923650caa3d1510803debcd210085ca883f85cbecce4e","impliedFormat":1},{"version":"37be812b06e518320ba82e2aff3ac2ca37370a9df917db708f081b9043fa3315","impliedFormat":1},{"version":"6d7ec38e96b4ad4d977e7376d9a92253927c1342ed6c102bd4dc4950deed1dd1","impliedFormat":1},{"version":"34810cb47e6bee7cd4bad2f174793f5926ba5889c5d180e29b02c1871a820476","affectsGlobalScope":true,"impliedFormat":1},{"version":"7115f1157a00937d712e042a011eb85e9d80b13eff78bac5f210ee852f96879d","impliedFormat":1},{"version":"0ac74c7586880e26b6a599c710b59284a284e084a2bbc82cd40fb3fbfdea71ae","affectsGlobalScope":true,"impliedFormat":1},{"version":"2ce12357dadbb8efc4e4ec4dab709c8071bf992722fc9adfea2fe0bd5b50923f","impliedFormat":1},{"version":"56c685ea062afe11fd775c31dc33acc449f780b17ba392ac154799323ebc9647","impliedFormat":1},{"version":"a21a5564fa4fc44ea813ce3055030b0060df12acca6a183d77b2090429be618a","impliedFormat":1},{"version":"b05b9ef20d18697e468c3ae9cecfff3f47e8976f9522d067047e3f236db06a41","affectsGlobalScope":true,"impliedFormat":1},{"version":"eec5e9a5629f6740aac21e49783a373a3767770ad559cd41285ebbb0db39a4a2","affectsGlobalScope":true,"impliedFormat":1},{"version":"1745f0b1ab53f414b4f8ebb2c6a902fda28d40f454edac8e92b4d7c974a2051c","affectsGlobalScope":true,"impliedFormat":1},{"version":"f7f5d83fe8eff2f1910e8b0437527041e5cc45aa15cda443f27dbadc3d5805e7","impliedFormat":1},{"version":"1a7a729938558fe198d979d3f53dece9c9112124b7b081a7fa0adcc98bf15fd8","impliedFormat":1},{"version":"c61c37176b7a6c043df76f437e402ea9abc9f19e9652a0d37629dfc8b7e83497","impliedFormat":1},{"version":"067f76ab5254b1bdfc94154730b7a30c12e3aad8b9d04ec62c0d6b7a1f40ea0e","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f95bf00d9d01de72cddbeabe5bdcb019248c209df4976a814756504afdb9291","affectsGlobalScope":true,"impliedFormat":1}],"root":[[84,91]],"options":{"allowJs":false,"composite":true,"isolatedDeclarations":true,"jsx":4,"module":200,"noFallthroughCasesInSwitch":true,"noImplicitAny":true,"noImplicitOverride":true,"noPropertyAccessFromIndexSignature":true,"noUncheckedIndexedAccess":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","skipLibCheck":true,"strict":true,"strictNullChecks":true,"target":99,"verbatimModuleSyntax":true},"referencedMap":[[193,1],[101,2],[102,2],[103,3],[99,4],[104,5],[105,6],[106,7],[97,8],[107,9],[108,10],[109,11],[110,12],[111,13],[112,14],[113,14],[115,8],[114,15],[116,16],[117,17],[118,18],[100,19],[98,8],[119,20],[120,21],[121,22],[154,23],[122,24],[123,25],[124,26],[125,27],[126,28],[127,29],[128,30],[129,31],[130,32],[131,33],[132,33],[133,34],[134,8],[135,8],[136,35],[138,36],[137,37],[139,38],[140,39],[141,40],[142,41],[143,42],[144,43],[145,44],[146,45],[147,46],[148,47],[149,48],[150,49],[151,50],[152,51],[153,52],[79,8],[81,53],[82,54],[192,55],[207,8],[203,56],[195,57],[206,58],[194,8],[191,59],[196,8],[92,60],[197,8],[208,61],[198,8],[202,62],[204,63],[93,64],[205,65],[199,8],[200,8],[201,66],[80,8],[77,8],[78,8],[14,8],[13,8],[2,8],[15,8],[16,8],[17,8],[18,8],[19,8],[20,8],[21,8],[22,8],[3,8],[23,8],[24,8],[4,8],[25,8],[29,8],[26,8],[27,8],[28,8],[30,8],[31,8],[32,8],[5,8],[33,8],[34,8],[35,8],[36,8],[6,8],[40,8],[37,8],[38,8],[39,8],[41,8],[7,8],[42,8],[47,8],[48,8],[43,8],[44,8],[45,8],[46,8],[8,8],[52,8],[49,8],[50,8],[51,8],[53,8],[9,8],[54,8],[55,8],[56,8],[58,8],[57,8],[59,8],[60,8],[10,8],[61,8],[62,8],[63,8],[11,8],[64,8],[65,8],[66,8],[67,8],[68,8],[1,8],[69,8],[70,8],[12,8],[74,8],[72,8],[76,8],[71,8],[75,8],[73,8],[168,67],[179,68],[166,67],[180,69],[189,70],[158,71],[157,72],[188,73],[183,74],[187,75],[160,76],[176,77],[159,78],[186,79],[155,80],[156,74],[161,81],[162,8],[167,71],[165,81],[95,82],[190,83],[181,84],[171,85],[170,81],[172,86],[174,87],[169,88],[173,89],[184,73],[163,90],[164,91],[175,92],[96,69],[178,93],[177,81],[182,8],[94,8],[185,94],[91,95],[89,96],[90,97],[86,98],[87,99],[85,96],[88,100],[84,101],[83,8]],"affectedFilesPendingEmit":[[91,17],[89,17],[90,17],[86,17],[87,17],[85,17],[88,17],[84,17]],"emitSignatures":[84,85,86,87,88,89,90,91],"version":"5.8.3"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { DaggerheartMeetOrBeatResult } from '../types'
|
|
2
|
-
|
|
3
|
-
export function formatDescription({
|
|
4
|
-
result: { type },
|
|
5
|
-
success
|
|
6
|
-
}: Omit<DaggerheartMeetOrBeatResult, 'description'>): string {
|
|
7
|
-
if (type === 'critical hope') {
|
|
8
|
-
return 'Critical Success (With Hope)'
|
|
9
|
-
}
|
|
10
|
-
if (success) {
|
|
11
|
-
return `Success with ${type}`
|
|
12
|
-
}
|
|
13
|
-
return `Failure with ${type}`
|
|
14
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { rollDaggerheart } from '../rollDaggerheart'
|
|
2
|
-
import type {
|
|
3
|
-
DaggerheartMeetOrBeatResult,
|
|
4
|
-
DaggerheartRollArgument
|
|
5
|
-
} from '../types'
|
|
6
|
-
import { formatDescription } from './formatDescription'
|
|
7
|
-
|
|
8
|
-
export function meetOrBeatDaggerheart(
|
|
9
|
-
difficultyClass: number,
|
|
10
|
-
rollArg: DaggerheartRollArgument = {}
|
|
11
|
-
): DaggerheartMeetOrBeatResult {
|
|
12
|
-
const result = rollDaggerheart(rollArg)
|
|
13
|
-
const core: Omit<DaggerheartMeetOrBeatResult, 'description'> = {
|
|
14
|
-
result: result.details,
|
|
15
|
-
success:
|
|
16
|
-
result.details.type === 'critical hope'
|
|
17
|
-
? true
|
|
18
|
-
: result.details.total >= difficultyClass,
|
|
19
|
-
target: difficultyClass
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
return {
|
|
23
|
-
...core,
|
|
24
|
-
description: formatDescription(core)
|
|
25
|
-
}
|
|
26
|
-
}
|