@adapt-toolkit/sdk 0.5.14 → 0.6.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/LICENSE +105 -0
- package/LICENSE.aefl +172 -0
- package/NOTICE +18 -0
- package/package.json +8 -4
- package/dist/common/index.d.ts +0 -7
- package/dist/common/index.d.ts.map +0 -1
- package/dist/common/index.js +0 -7
- package/dist/common/index.js.map +0 -1
- package/dist/common/interfaces/adapt_environment.d.ts +0 -21
- package/dist/common/interfaces/adapt_environment.d.ts.map +0 -1
- package/dist/common/interfaces/adapt_environment.js +0 -2
- package/dist/common/interfaces/adapt_environment.js.map +0 -1
- package/dist/common/interfaces/adapt_evaluation_unit.d.ts +0 -12
- package/dist/common/interfaces/adapt_evaluation_unit.d.ts.map +0 -1
- package/dist/common/interfaces/adapt_evaluation_unit.js +0 -2
- package/dist/common/interfaces/adapt_evaluation_unit.js.map +0 -1
- package/dist/common/interfaces/adapt_packet_context.d.ts +0 -29
- package/dist/common/interfaces/adapt_packet_context.d.ts.map +0 -1
- package/dist/common/interfaces/adapt_packet_context.js +0 -2
- package/dist/common/interfaces/adapt_packet_context.js.map +0 -1
- package/dist/common/interfaces/adapt_value.d.ts +0 -23
- package/dist/common/interfaces/adapt_value.d.ts.map +0 -1
- package/dist/common/interfaces/adapt_value.js +0 -2
- package/dist/common/interfaces/adapt_value.js.map +0 -1
- package/dist/common/interfaces/common.d.ts +0 -18
- package/dist/common/interfaces/common.d.ts.map +0 -1
- package/dist/common/interfaces/common.js +0 -4
- package/dist/common/interfaces/common.js.map +0 -1
- package/dist/common/memory_management/adapt_object_lifetime.d.ts +0 -121
- package/dist/common/memory_management/adapt_object_lifetime.d.ts.map +0 -1
- package/dist/common/memory_management/adapt_object_lifetime.js +0 -168
- package/dist/common/memory_management/adapt_object_lifetime.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -2
- package/dist/index.js.map +0 -1
- package/dist/loaders/browser.d.ts +0 -5
- package/dist/loaders/browser.d.ts.map +0 -1
- package/dist/loaders/browser.js +0 -6
- package/dist/loaders/browser.js.map +0 -1
- package/dist/loaders/node.d.ts +0 -13
- package/dist/loaders/node.d.ts.map +0 -1
- package/dist/loaders/node.js +0 -33
- package/dist/loaders/node.js.map +0 -1
- package/dist/loaders/react-native.d.ts +0 -11
- package/dist/loaders/react-native.d.ts.map +0 -1
- package/dist/loaders/react-native.js +0 -19
- package/dist/loaders/react-native.js.map +0 -1
- package/dist/loaders/shared.d.ts +0 -17
- package/dist/loaders/shared.d.ts.map +0 -1
- package/dist/loaders/shared.js +0 -2
- package/dist/loaders/shared.js.map +0 -1
- package/dist/mufl_files/BF38C2D4E98F56F473F78121CF9EAAC3492364F1A11A3B0F1F04C12D24285596.muflo +0 -0
- package/dist/utilities/broker/broker.d.ts +0 -23
- package/dist/utilities/broker/broker.d.ts.map +0 -1
- package/dist/utilities/broker/broker.js +0 -335
- package/dist/utilities/broker/broker.js.map +0 -1
- package/dist/utilities/broker/broker_client.d.ts +0 -36
- package/dist/utilities/broker/broker_client.d.ts.map +0 -1
- package/dist/utilities/broker/broker_client.js +0 -121
- package/dist/utilities/broker/broker_client.js.map +0 -1
- package/dist/utilities/broker/broker_configurator.d.ts +0 -7
- package/dist/utilities/broker/broker_configurator.d.ts.map +0 -1
- package/dist/utilities/broker/broker_configurator.js +0 -16
- package/dist/utilities/broker/broker_configurator.js.map +0 -1
- package/dist/utilities/broker/index.d.ts +0 -5
- package/dist/utilities/broker/index.d.ts.map +0 -1
- package/dist/utilities/broker/index.js +0 -5
- package/dist/utilities/broker/index.js.map +0 -1
- package/dist/utilities/broker/pending_message_store.d.ts +0 -14
- package/dist/utilities/broker/pending_message_store.d.ts.map +0 -1
- package/dist/utilities/broker/pending_message_store.js +0 -58
- package/dist/utilities/broker/pending_message_store.js.map +0 -1
- package/dist/utilities/common/adapt_waitlist.d.ts +0 -5
- package/dist/utilities/common/adapt_waitlist.d.ts.map +0 -1
- package/dist/utilities/common/adapt_waitlist.js +0 -4
- package/dist/utilities/common/adapt_waitlist.js.map +0 -1
- package/dist/utilities/common/async_queue_adapter.d.ts +0 -40
- package/dist/utilities/common/async_queue_adapter.d.ts.map +0 -1
- package/dist/utilities/common/async_queue_adapter.js +0 -88
- package/dist/utilities/common/async_queue_adapter.js.map +0 -1
- package/dist/utilities/common/command_line_configurator.d.ts +0 -88
- package/dist/utilities/common/command_line_configurator.d.ts.map +0 -1
- package/dist/utilities/common/command_line_configurator.js +0 -217
- package/dist/utilities/common/command_line_configurator.js.map +0 -1
- package/dist/utilities/common/decorators.d.ts +0 -17
- package/dist/utilities/common/decorators.d.ts.map +0 -1
- package/dist/utilities/common/decorators.js +0 -84
- package/dist/utilities/common/decorators.js.map +0 -1
- package/dist/utilities/common/errors/adapt_initialization_error.d.ts +0 -4
- package/dist/utilities/common/errors/adapt_initialization_error.d.ts.map +0 -1
- package/dist/utilities/common/errors/adapt_initialization_error.js +0 -6
- package/dist/utilities/common/errors/adapt_initialization_error.js.map +0 -1
- package/dist/utilities/common/errors/adapt_network_error.d.ts +0 -8
- package/dist/utilities/common/errors/adapt_network_error.d.ts.map +0 -1
- package/dist/utilities/common/errors/adapt_network_error.js +0 -12
- package/dist/utilities/common/errors/adapt_network_error.js.map +0 -1
- package/dist/utilities/common/errors/adapt_protocol_error.d.ts +0 -12
- package/dist/utilities/common/errors/adapt_protocol_error.d.ts.map +0 -1
- package/dist/utilities/common/errors/adapt_protocol_error.js +0 -16
- package/dist/utilities/common/errors/adapt_protocol_error.js.map +0 -1
- package/dist/utilities/common/errors/adapt_test_mode_error.d.ts +0 -11
- package/dist/utilities/common/errors/adapt_test_mode_error.d.ts.map +0 -1
- package/dist/utilities/common/errors/adapt_test_mode_error.js +0 -22
- package/dist/utilities/common/errors/adapt_test_mode_error.js.map +0 -1
- package/dist/utilities/common/http_server.d.ts +0 -18
- package/dist/utilities/common/http_server.d.ts.map +0 -1
- package/dist/utilities/common/http_server.js +0 -41
- package/dist/utilities/common/http_server.js.map +0 -1
- package/dist/utilities/common/index.d.ts +0 -25
- package/dist/utilities/common/index.d.ts.map +0 -1
- package/dist/utilities/common/index.js +0 -36
- package/dist/utilities/common/index.js.map +0 -1
- package/dist/utilities/common/logger/logger.d.ts +0 -83
- package/dist/utilities/common/logger/logger.d.ts.map +0 -1
- package/dist/utilities/common/logger/logger.js +0 -272
- package/dist/utilities/common/logger/logger.js.map +0 -1
- package/dist/utilities/common/logger/logging_level.d.ts +0 -13
- package/dist/utilities/common/logger/logging_level.d.ts.map +0 -1
- package/dist/utilities/common/logger/logging_level.js +0 -36
- package/dist/utilities/common/logger/logging_level.js.map +0 -1
- package/dist/utilities/common/logger/message.d.ts +0 -65
- package/dist/utilities/common/logger/message.d.ts.map +0 -1
- package/dist/utilities/common/logger/message.js +0 -169
- package/dist/utilities/common/logger/message.js.map +0 -1
- package/dist/utilities/common/logger/network_component.d.ts +0 -3
- package/dist/utilities/common/logger/network_component.d.ts.map +0 -1
- package/dist/utilities/common/logger/network_component.js +0 -4
- package/dist/utilities/common/logger/network_component.js.map +0 -1
- package/dist/utilities/common/totp_qr_code_generator.d.ts +0 -12
- package/dist/utilities/common/totp_qr_code_generator.d.ts.map +0 -1
- package/dist/utilities/common/totp_qr_code_generator.js +0 -19
- package/dist/utilities/common/totp_qr_code_generator.js.map +0 -1
- package/dist/utilities/common/waitlist/waitlist.d.ts +0 -36
- package/dist/utilities/common/waitlist/waitlist.d.ts.map +0 -1
- package/dist/utilities/common/waitlist/waitlist.js +0 -116
- package/dist/utilities/common/waitlist/waitlist.js.map +0 -1
- package/dist/utilities/common/web_socket_client.d.ts +0 -67
- package/dist/utilities/common/web_socket_client.d.ts.map +0 -1
- package/dist/utilities/common/web_socket_client.js +0 -214
- package/dist/utilities/common/web_socket_client.js.map +0 -1
- package/dist/utilities/common/web_socket_connection.d.ts +0 -36
- package/dist/utilities/common/web_socket_connection.d.ts.map +0 -1
- package/dist/utilities/common/web_socket_connection.js +0 -154
- package/dist/utilities/common/web_socket_connection.js.map +0 -1
- package/dist/utilities/evaluator/common.d.ts +0 -10
- package/dist/utilities/evaluator/common.d.ts.map +0 -1
- package/dist/utilities/evaluator/common.js +0 -128
- package/dist/utilities/evaluator/common.js.map +0 -1
- package/dist/utilities/evaluator/evaluator.d.ts +0 -35
- package/dist/utilities/evaluator/evaluator.d.ts.map +0 -1
- package/dist/utilities/evaluator/evaluator.js +0 -141
- package/dist/utilities/evaluator/evaluator.js.map +0 -1
- package/dist/utilities/evaluator/index.d.ts +0 -3
- package/dist/utilities/evaluator/index.d.ts.map +0 -1
- package/dist/utilities/evaluator/index.js +0 -3
- package/dist/utilities/evaluator/index.js.map +0 -1
- package/dist/utilities/executables/adapt_wrapper.d.ts +0 -3
- package/dist/utilities/executables/adapt_wrapper.d.ts.map +0 -1
- package/dist/utilities/executables/adapt_wrapper.js +0 -25
- package/dist/utilities/executables/adapt_wrapper.js.map +0 -1
- package/dist/utilities/executables/adapt_wrapper_mobile.d.ts +0 -3
- package/dist/utilities/executables/adapt_wrapper_mobile.d.ts.map +0 -1
- package/dist/utilities/executables/adapt_wrapper_mobile.js +0 -20
- package/dist/utilities/executables/adapt_wrapper_mobile.js.map +0 -1
- package/dist/utilities/executables/adapt_wrapper_script.d.ts +0 -2
- package/dist/utilities/executables/adapt_wrapper_script.d.ts.map +0 -1
- package/dist/utilities/executables/adapt_wrapper_script.js +0 -6
- package/dist/utilities/executables/adapt_wrapper_script.js.map +0 -1
- package/dist/utilities/executables/broker.d.ts +0 -2
- package/dist/utilities/executables/broker.d.ts.map +0 -1
- package/dist/utilities/executables/broker.js +0 -28
- package/dist/utilities/executables/broker.js.map +0 -1
- package/dist/utilities/executables/index.d.ts +0 -2
- package/dist/utilities/executables/index.d.ts.map +0 -1
- package/dist/utilities/executables/index.js +0 -2
- package/dist/utilities/executables/index.js.map +0 -1
- package/dist/utilities/executables/local_data_storage.d.ts +0 -2
- package/dist/utilities/executables/local_data_storage.d.ts.map +0 -1
- package/dist/utilities/executables/local_data_storage.js +0 -20
- package/dist/utilities/executables/local_data_storage.js.map +0 -1
- package/dist/utilities/executables/local_data_storage_cmd_helper.d.ts +0 -2
- package/dist/utilities/executables/local_data_storage_cmd_helper.d.ts.map +0 -1
- package/dist/utilities/executables/local_data_storage_cmd_helper.js +0 -52
- package/dist/utilities/executables/local_data_storage_cmd_helper.js.map +0 -1
- package/dist/utilities/storage/data_storage.d.ts +0 -97
- package/dist/utilities/storage/data_storage.d.ts.map +0 -1
- package/dist/utilities/storage/data_storage.js +0 -440
- package/dist/utilities/storage/data_storage.js.map +0 -1
- package/dist/utilities/storage/index.d.ts +0 -6
- package/dist/utilities/storage/index.d.ts.map +0 -1
- package/dist/utilities/storage/index.js +0 -6
- package/dist/utilities/storage/index.js.map +0 -1
- package/dist/utilities/storage/local_data_storage.d.ts +0 -7
- package/dist/utilities/storage/local_data_storage.d.ts.map +0 -1
- package/dist/utilities/storage/local_data_storage.js +0 -18
- package/dist/utilities/storage/local_data_storage.js.map +0 -1
- package/dist/utilities/storage/local_data_storage_base.d.ts +0 -74
- package/dist/utilities/storage/local_data_storage_base.d.ts.map +0 -1
- package/dist/utilities/storage/local_data_storage_base.js +0 -163
- package/dist/utilities/storage/local_data_storage_base.js.map +0 -1
- package/dist/utilities/storage/local_data_storage_configurator.d.ts +0 -7
- package/dist/utilities/storage/local_data_storage_configurator.d.ts.map +0 -1
- package/dist/utilities/storage/local_data_storage_configurator.js +0 -13
- package/dist/utilities/storage/local_data_storage_configurator.js.map +0 -1
- package/dist/utilities/storage/storage_client.d.ts +0 -29
- package/dist/utilities/storage/storage_client.d.ts.map +0 -1
- package/dist/utilities/storage/storage_client.js +0 -100
- package/dist/utilities/storage/storage_client.js.map +0 -1
- package/dist/utilities/wrappers/configurators/adapt_wrapper_configurator.d.ts +0 -14
- package/dist/utilities/wrappers/configurators/adapt_wrapper_configurator.d.ts.map +0 -1
- package/dist/utilities/wrappers/configurators/adapt_wrapper_configurator.js +0 -57
- package/dist/utilities/wrappers/configurators/adapt_wrapper_configurator.js.map +0 -1
- package/dist/utilities/wrappers/configurators/control_packet_configurator.d.ts +0 -12
- package/dist/utilities/wrappers/configurators/control_packet_configurator.d.ts.map +0 -1
- package/dist/utilities/wrappers/configurators/control_packet_configurator.js +0 -52
- package/dist/utilities/wrappers/configurators/control_packet_configurator.js.map +0 -1
- package/dist/utilities/wrappers/configurators/packet_wrapper_configurator.d.ts +0 -32
- package/dist/utilities/wrappers/configurators/packet_wrapper_configurator.d.ts.map +0 -1
- package/dist/utilities/wrappers/configurators/packet_wrapper_configurator.js +0 -123
- package/dist/utilities/wrappers/configurators/packet_wrapper_configurator.js.map +0 -1
- package/dist/utilities/wrappers/enclave/control_packet.d.ts +0 -18
- package/dist/utilities/wrappers/enclave/control_packet.d.ts.map +0 -1
- package/dist/utilities/wrappers/enclave/control_packet.js +0 -213
- package/dist/utilities/wrappers/enclave/control_packet.js.map +0 -1
- package/dist/utilities/wrappers/index.d.ts +0 -5
- package/dist/utilities/wrappers/index.d.ts.map +0 -1
- package/dist/utilities/wrappers/index.js +0 -5
- package/dist/utilities/wrappers/index.js.map +0 -1
- package/dist/utilities/wrappers/wrappers/adapt_packet_wrapper.d.ts +0 -21
- package/dist/utilities/wrappers/wrappers/adapt_packet_wrapper.d.ts.map +0 -1
- package/dist/utilities/wrappers/wrappers/adapt_packet_wrapper.js +0 -67
- package/dist/utilities/wrappers/wrappers/adapt_packet_wrapper.js.map +0 -1
- package/dist/utilities/wrappers/wrappers/adapt_wrapper.d.ts +0 -136
- package/dist/utilities/wrappers/wrappers/adapt_wrapper.d.ts.map +0 -1
- package/dist/utilities/wrappers/wrappers/adapt_wrapper.js +0 -804
- package/dist/utilities/wrappers/wrappers/adapt_wrapper.js.map +0 -1
- package/dist/utilities/wrappers/wrappers/impl/adapt_packet_wrapper_impl.d.ts +0 -78
- package/dist/utilities/wrappers/wrappers/impl/adapt_packet_wrapper_impl.d.ts.map +0 -1
- package/dist/utilities/wrappers/wrappers/impl/adapt_packet_wrapper_impl.js +0 -611
- package/dist/utilities/wrappers/wrappers/impl/adapt_packet_wrapper_impl.js.map +0 -1
- package/dist/wasm/adapt.d.ts +0 -79
- package/dist/wasm/adapt.d.ts.map +0 -1
- package/dist/wasm/adapt.js +0 -450
- package/dist/wasm/adapt.js.map +0 -1
- package/dist/wasm/backend-node.d.ts +0 -9
- package/dist/wasm/backend-node.d.ts.map +0 -1
- package/dist/wasm/backend-node.js +0 -27
- package/dist/wasm/backend-node.js.map +0 -1
- package/dist/wasm/index.d.ts +0 -12
- package/dist/wasm/index.d.ts.map +0 -1
- package/dist/wasm/index.js +0 -15
- package/dist/wasm/index.js.map +0 -1
- package/dist/wasm/mufl-bindings.d.ts +0 -3
- package/dist/wasm/mufl-bindings.d.ts.map +0 -1
- package/dist/wasm/mufl-bindings.js +0 -3700
- package/dist/wasm/mufl-bindings.js.map +0 -1
- package/dist/wasm/mufl-bindings.wasm +0 -0
- package/dist/wasm/wasm_types.d.ts +0 -97
- package/dist/wasm/wasm_types.d.ts.map +0 -1
- package/dist/wasm/wasm_types.js +0 -2
- package/dist/wasm/wasm_types.js.map +0 -1
- package/dist/wrapper/conversion.d.ts +0 -9
- package/dist/wrapper/conversion.d.ts.map +0 -1
- package/dist/wrapper/conversion.js +0 -30
- package/dist/wrapper/conversion.js.map +0 -1
- package/dist/wrapper/index.d.ts +0 -11
- package/dist/wrapper/index.d.ts.map +0 -1
- package/dist/wrapper/index.js +0 -25
- package/dist/wrapper/index.js.map +0 -1
- package/dist/wrapper/memory_management/adapt_builder.d.ts +0 -36
- package/dist/wrapper/memory_management/adapt_builder.d.ts.map +0 -1
- package/dist/wrapper/memory_management/adapt_builder.js +0 -98
- package/dist/wrapper/memory_management/adapt_builder.js.map +0 -1
- package/dist/wrapper/memory_management/exit_handler_registrar.d.ts +0 -10
- package/dist/wrapper/memory_management/exit_handler_registrar.d.ts.map +0 -1
- package/dist/wrapper/memory_management/exit_handler_registrar.js +0 -38
- package/dist/wrapper/memory_management/exit_handler_registrar.js.map +0 -1
- package/dist/wrapper/protocol/message_handler_interfaces.d.ts +0 -32
- package/dist/wrapper/protocol/message_handler_interfaces.d.ts.map +0 -1
- package/dist/wrapper/protocol/message_handler_interfaces.js +0 -2
- package/dist/wrapper/protocol/message_handler_interfaces.js.map +0 -1
- package/dist/wrapper/protocol/protocol.d.ts +0 -174
- package/dist/wrapper/protocol/protocol.d.ts.map +0 -1
- package/dist/wrapper/protocol/protocol.js +0 -410
- package/dist/wrapper/protocol/protocol.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../../src/wrapper/protocol/protocol.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,kBAAkB,EAClB,UAAU,EAIX,MAAM,UAAU,CAAC;AAKlB,yBAAiB,QAAQ,CAAC;IACxB,cAAc;IACd,KAAK,aAAa,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC;IAK7D,cAAc;IACd,MAAM,UAAU,QAAQ,IAAI,aAAa,CAExC;IAwDD;;OAEG;IACH,gBAAsB,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAmDhD;IAED;;OAEG;IACH,MAAM,UAAU,oBAAoB,IAAI,kBAAkB,CAOzD;IAED;;OAEG;IACH,MAAM,MAAM,WAAW;QACrB,oBAAoB,yBAAyB;QAC7C,QAAQ,aAAa;QACrB,UAAU,eAAe;QACzB,eAAe,oBAAoB;QACnC,eAAe,oBAAoB;QACnC,yBAAyB,8BAA8B;QACvD,QAAQ,aAAa;QACrB,uBAAuB,4BAA4B;QACnD,cAAc,mBAAmB;QACjC,YAAY,iBAAiB;QAC7B,qBAAqB,0BAA0B;QAC/C,0BAA0B,+BAA+B;QACzD,6BAA6B,kCAAkC;QAC/D,QAAQ,aAAa;QACrB,OAAO,YAAY;QACnB,eAAe,oBAAoB;QACnC,iBAAiB,sBAA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AAM,wBAAwB,GACnC,oBAAoB,UAAU,KAC7B,qBAMF,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,MAAM,6BAA6B,GACxC,aAAa,UAAU,EACvB,WAAW,UAAU,KACpB,UAgBF,CAAC;IAEF;;OAEG;IACH,MAAM,CAAC,MAAM,wBAAwB,GAAI,QAAQ,kBAAkB,KAAG,UAarE,CAAC;;CAMH"}
|
|
@@ -1,410 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from 'node:fs';
|
|
2
|
-
import { fileURLToPath } from 'node:url';
|
|
3
|
-
import * as path from 'node:path';
|
|
4
|
-
import { AdaptEnvironment, AdaptObjectLifetime, } from '@adapt-toolkit/sdk/backend';
|
|
5
|
-
import { AdaptObjectBuilder } from '../memory_management/adapt_builder.js';
|
|
6
|
-
import { ExitHandlerRegistrar } from '../memory_management/exit_handler_registrar.js';
|
|
7
|
-
import { object_to_adapt_value, determine_environment } from '../conversion.js';
|
|
8
|
-
export var Protocol;
|
|
9
|
-
(function (Protocol) {
|
|
10
|
-
/** @ignore */
|
|
11
|
-
let __platform = 'invalid';
|
|
12
|
-
/** @ignore */
|
|
13
|
-
function platform() {
|
|
14
|
-
return __platform;
|
|
15
|
-
}
|
|
16
|
-
Protocol.platform = platform;
|
|
17
|
-
/** @ignore */
|
|
18
|
-
const lt = new AdaptObjectLifetime();
|
|
19
|
-
/** @ignore */
|
|
20
|
-
const builder = new AdaptObjectBuilder();
|
|
21
|
-
/** @ignore */
|
|
22
|
-
const unit_hash = 'BF38C2D4E98F56F473F78121CF9EAAC3492364F1A11A3B0F1F04C12D24285596.muflo';
|
|
23
|
-
/** @ignore */
|
|
24
|
-
function is_node() {
|
|
25
|
-
return (typeof process === 'object' &&
|
|
26
|
-
process !== null &&
|
|
27
|
-
typeof process.versions === 'object' &&
|
|
28
|
-
typeof process.versions.node === 'string');
|
|
29
|
-
}
|
|
30
|
-
/** @ignore */
|
|
31
|
-
async function LoadUnitContents() {
|
|
32
|
-
// Prefer disk-read whenever we are on Node, regardless of which backend
|
|
33
|
-
// (native or WASM) is loaded. The fetch path below is for WASM running in
|
|
34
|
-
// an actual browser where the `.muflo` is served as a static asset.
|
|
35
|
-
if (is_node()) {
|
|
36
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
37
|
-
const __dirname = path.dirname(__filename);
|
|
38
|
-
const unit_path = path.join(__dirname, '../../mufl_files/', unit_hash);
|
|
39
|
-
return readFileSync(unit_path);
|
|
40
|
-
}
|
|
41
|
-
if (determine_environment() === 'wasm') {
|
|
42
|
-
const code_object_url = '/static/mufl/' + unit_hash;
|
|
43
|
-
try {
|
|
44
|
-
const data = await (await (await fetch(code_object_url)).blob()).arrayBuffer();
|
|
45
|
-
return new Uint8Array(data);
|
|
46
|
-
}
|
|
47
|
-
catch (e) {
|
|
48
|
-
const message = e instanceof Error ? e.message : String(e);
|
|
49
|
-
throw new Error('Error while fetching code object file: ' + message);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
53
|
-
const __dirname = path.dirname(__filename);
|
|
54
|
-
const unit_path = path.join(__dirname, '../../mufl_files/', unit_hash);
|
|
55
|
-
return readFileSync(unit_path);
|
|
56
|
-
}
|
|
57
|
-
/** @ignore */
|
|
58
|
-
function LoadUnit(contents) {
|
|
59
|
-
return builder.AdaptEvaluationUnit.LoadFromContents(contents);
|
|
60
|
-
}
|
|
61
|
-
/** @ignore */
|
|
62
|
-
let protocol_container;
|
|
63
|
-
/**
|
|
64
|
-
* Initialise the protocol. Must be called before any other Protocol function.
|
|
65
|
-
*/
|
|
66
|
-
async function Initialize() {
|
|
67
|
-
const unit = LoadUnit(await LoadUnitContents());
|
|
68
|
-
const entropy = builder.AdaptEnvironment.GetRandomBytes(256);
|
|
69
|
-
protocol_container = AdaptEnvironment.CreatePacket(lt, unit, 'protocol container', entropy.Visualize().substring(2), false);
|
|
70
|
-
entropy.Destroy();
|
|
71
|
-
unit.Destroy();
|
|
72
|
-
const tmp_builder = new AdaptObjectBuilder();
|
|
73
|
-
const nitro_type_id = protocol_container.ExecuteTransaction(tmp_builder.Attach(object_to_adapt_value({
|
|
74
|
-
name: '::platform_type_id::_get_nitro_platform_type_id',
|
|
75
|
-
targ: false,
|
|
76
|
-
})));
|
|
77
|
-
const wasm_type_id = protocol_container.ExecuteTransaction(tmp_builder.Attach(object_to_adapt_value({
|
|
78
|
-
name: '::platform_type_id::_get_wasm_platform_type_id',
|
|
79
|
-
targ: false,
|
|
80
|
-
})));
|
|
81
|
-
const native_type_id = protocol_container.ExecuteTransaction(tmp_builder.Attach(object_to_adapt_value({
|
|
82
|
-
name: '::platform_type_id::_get_native_platform_type_id',
|
|
83
|
-
targ: false,
|
|
84
|
-
})));
|
|
85
|
-
const current_platform_type_id = protocol_container.ExecuteTransaction(tmp_builder.Attach(object_to_adapt_value({
|
|
86
|
-
name: '::platform_type_id::_get_platform_type_id',
|
|
87
|
-
targ: false,
|
|
88
|
-
})));
|
|
89
|
-
tmp_builder.Destroy();
|
|
90
|
-
if (current_platform_type_id.Equals(nitro_type_id))
|
|
91
|
-
__platform = 'nitro';
|
|
92
|
-
else if (current_platform_type_id.Equals(wasm_type_id))
|
|
93
|
-
__platform = 'wasm';
|
|
94
|
-
else if (current_platform_type_id.Equals(native_type_id))
|
|
95
|
-
__platform = 'native';
|
|
96
|
-
else
|
|
97
|
-
__platform = 'invalid';
|
|
98
|
-
}
|
|
99
|
-
Protocol.Initialize = Initialize;
|
|
100
|
-
/**
|
|
101
|
-
* Returns the protocol container packet built by Initialize().
|
|
102
|
-
*/
|
|
103
|
-
function GetProtocolContainer() {
|
|
104
|
-
if (protocol_container === undefined) {
|
|
105
|
-
throw new Error('Adapt protocol container not initialized. Call Protocol.Initialize() first.');
|
|
106
|
-
}
|
|
107
|
-
return protocol_container;
|
|
108
|
-
}
|
|
109
|
-
Protocol.GetProtocolContainer = GetProtocolContainer;
|
|
110
|
-
/**
|
|
111
|
-
* Names of every protocol message handled by the wrapper.
|
|
112
|
-
*/
|
|
113
|
-
let MessageName;
|
|
114
|
-
(function (MessageName) {
|
|
115
|
-
MessageName["b2w_exec_transaction"] = "b2w_exec_transaction";
|
|
116
|
-
MessageName["b2w_init"] = "b2w_init";
|
|
117
|
-
MessageName["b2w_reg_ok"] = "b2w_reg_ok";
|
|
118
|
-
MessageName["d2w_backup_data"] = "d2w_backup_data";
|
|
119
|
-
MessageName["d2w_code_object"] = "d2w_code_object";
|
|
120
|
-
MessageName["d2w_create_packet_confirm"] = "d2w_create_packet_confirm";
|
|
121
|
-
MessageName["d2w_init"] = "d2w_init";
|
|
122
|
-
MessageName["d2w_last_snapshot_state"] = "d2w_last_snapshot_state";
|
|
123
|
-
MessageName["d2w_last_state"] = "d2w_last_state";
|
|
124
|
-
MessageName["d2w_snapshot"] = "d2w_snapshot";
|
|
125
|
-
MessageName["d2w_transaction_chain"] = "d2w_transaction_chain";
|
|
126
|
-
MessageName["d2w_write_snapshot_confirm"] = "d2w_write_snapshot_confirm";
|
|
127
|
-
MessageName["d2w_write_transaction_confirm"] = "d2w_write_transaction_confirm";
|
|
128
|
-
MessageName["e2w_init"] = "e2w_init";
|
|
129
|
-
MessageName["w2b_reg"] = "w2b_reg";
|
|
130
|
-
MessageName["w2b_transaction"] = "w2b_transaction";
|
|
131
|
-
MessageName["w2d_create_packet"] = "w2d_create_packet";
|
|
132
|
-
MessageName["w2d_get_code_object"] = "w2d_get_code_object";
|
|
133
|
-
MessageName["w2d_get_last_snapshot_state"] = "w2d_get_last_snapshot_state";
|
|
134
|
-
MessageName["w2d_get_last_state"] = "w2d_get_last_state";
|
|
135
|
-
MessageName["w2d_get_transaction_chain"] = "w2d_get_transaction_chain";
|
|
136
|
-
MessageName["w2d_read_snapshot"] = "w2d_read_snapshot";
|
|
137
|
-
MessageName["w2d_request_backup_data"] = "w2d_request_backup_data";
|
|
138
|
-
MessageName["w2d_write_snapshot"] = "w2d_write_snapshot";
|
|
139
|
-
MessageName["w2d_write_transaction"] = "w2d_write_transaction";
|
|
140
|
-
})(MessageName = Protocol.MessageName || (Protocol.MessageName = {}));
|
|
141
|
-
/**
|
|
142
|
-
* Names of fields that may appear in a protocol message.
|
|
143
|
-
*/
|
|
144
|
-
let FieldName;
|
|
145
|
-
(function (FieldName) {
|
|
146
|
-
FieldName["action_kind"] = "action_kind";
|
|
147
|
-
FieldName["body"] = "body";
|
|
148
|
-
FieldName["body_wrapper"] = "body_wrapper";
|
|
149
|
-
FieldName["code_object"] = "code_object";
|
|
150
|
-
FieldName["code_object_data"] = "code_object_data";
|
|
151
|
-
FieldName["code_object_hash"] = "code_object_hash";
|
|
152
|
-
FieldName["data"] = "data";
|
|
153
|
-
FieldName["entropy"] = "entropy";
|
|
154
|
-
FieldName["envlp"] = "envlp";
|
|
155
|
-
FieldName["final_state"] = "final_state";
|
|
156
|
-
FieldName["final_state_id"] = "final_state_id";
|
|
157
|
-
FieldName["from"] = "from";
|
|
158
|
-
FieldName["init_state"] = "init_state";
|
|
159
|
-
FieldName["ip_document"] = "ip_document";
|
|
160
|
-
FieldName["message_hash"] = "message_hash";
|
|
161
|
-
FieldName["msg_type_id"] = "msg_type_id";
|
|
162
|
-
FieldName["name"] = "name";
|
|
163
|
-
FieldName["nonce"] = "nonce";
|
|
164
|
-
FieldName["packet"] = "packet";
|
|
165
|
-
FieldName["packet_data"] = "packet_data";
|
|
166
|
-
FieldName["packet_id"] = "packet_id";
|
|
167
|
-
FieldName["packet_info"] = "packet_info";
|
|
168
|
-
FieldName["protocol_version"] = "protocol_version";
|
|
169
|
-
FieldName["request_data_encrypted"] = "request_data_encrypted";
|
|
170
|
-
FieldName["result"] = "result";
|
|
171
|
-
FieldName["result_kind"] = "result_kind";
|
|
172
|
-
FieldName["state"] = "state";
|
|
173
|
-
FieldName["state_change"] = "state_change";
|
|
174
|
-
FieldName["targ"] = "targ";
|
|
175
|
-
FieldName["timestamp"] = "timestamp";
|
|
176
|
-
FieldName["to"] = "to";
|
|
177
|
-
FieldName["transaction"] = "transaction";
|
|
178
|
-
FieldName["transaction_chain"] = "transaction_chain";
|
|
179
|
-
FieldName["transient_data"] = "transient_data";
|
|
180
|
-
FieldName["transient_data_encrypted"] = "transient_data_encrypted";
|
|
181
|
-
})(FieldName = Protocol.FieldName || (Protocol.FieldName = {}));
|
|
182
|
-
/**
|
|
183
|
-
* Extract the type ID from a protocol message.
|
|
184
|
-
*/
|
|
185
|
-
Protocol.GetTypeId = (message) => {
|
|
186
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
187
|
-
const value = b.Attach(GetProtocolContainer().ExecuteTransaction(b.Attach(object_to_adapt_value({
|
|
188
|
-
name: '::protocol_container::get_msg_type_id',
|
|
189
|
-
targ: message,
|
|
190
|
-
}))));
|
|
191
|
-
return value.Visualize();
|
|
192
|
-
});
|
|
193
|
-
};
|
|
194
|
-
/**
|
|
195
|
-
* Extract the body from a protocol message.
|
|
196
|
-
*/
|
|
197
|
-
Protocol.GetBody = (message) => {
|
|
198
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
199
|
-
return GetProtocolContainer()
|
|
200
|
-
.ExecuteTransaction(b.Attach(object_to_adapt_value({
|
|
201
|
-
name: '::protocol_container::get_body',
|
|
202
|
-
targ: message,
|
|
203
|
-
})))
|
|
204
|
-
.Detach();
|
|
205
|
-
});
|
|
206
|
-
};
|
|
207
|
-
/**
|
|
208
|
-
* Extract the body_wrapper from a protocol message.
|
|
209
|
-
*/
|
|
210
|
-
Protocol.GetBodyWrapper = (message) => {
|
|
211
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
212
|
-
return GetProtocolContainer()
|
|
213
|
-
.ExecuteTransaction(b.Attach(object_to_adapt_value({
|
|
214
|
-
name: '::protocol_container::get_body_wrapper',
|
|
215
|
-
targ: message,
|
|
216
|
-
})))
|
|
217
|
-
.Detach();
|
|
218
|
-
});
|
|
219
|
-
};
|
|
220
|
-
/**
|
|
221
|
-
* Extract the from field from a protocol message.
|
|
222
|
-
*/
|
|
223
|
-
Protocol.GetFrom = (message) => {
|
|
224
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
225
|
-
return GetProtocolContainer()
|
|
226
|
-
.ExecuteTransaction(b.Attach(object_to_adapt_value({
|
|
227
|
-
name: '::protocol_container::get_from',
|
|
228
|
-
targ: message,
|
|
229
|
-
})))
|
|
230
|
-
.Detach();
|
|
231
|
-
});
|
|
232
|
-
};
|
|
233
|
-
/**
|
|
234
|
-
* Extract the nonce from a protocol message.
|
|
235
|
-
*/
|
|
236
|
-
Protocol.GetNonce = (message) => {
|
|
237
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
238
|
-
return GetProtocolContainer()
|
|
239
|
-
.ExecuteTransaction(b.Attach(object_to_adapt_value({
|
|
240
|
-
name: '::protocol_container::get_nonce',
|
|
241
|
-
targ: message,
|
|
242
|
-
})))
|
|
243
|
-
.Detach();
|
|
244
|
-
});
|
|
245
|
-
};
|
|
246
|
-
/**
|
|
247
|
-
* Extract the message_hash from a confirmation-style protocol message. The
|
|
248
|
-
* field references the original message that is being confirmed, not the
|
|
249
|
-
* confirming message itself.
|
|
250
|
-
*/
|
|
251
|
-
Protocol.GetMessageHash = (message) => {
|
|
252
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
253
|
-
return GetProtocolContainer()
|
|
254
|
-
.ExecuteTransaction(b.Attach(object_to_adapt_value({
|
|
255
|
-
name: '::protocol_container::get_message_hash',
|
|
256
|
-
targ: message,
|
|
257
|
-
})))
|
|
258
|
-
.Detach();
|
|
259
|
-
});
|
|
260
|
-
};
|
|
261
|
-
/**
|
|
262
|
-
* Extract the to field from a protocol message.
|
|
263
|
-
*/
|
|
264
|
-
Protocol.GetTo = (message) => {
|
|
265
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
266
|
-
return GetProtocolContainer()
|
|
267
|
-
.ExecuteTransaction(b.Attach(object_to_adapt_value({
|
|
268
|
-
name: '::protocol_container::get_to',
|
|
269
|
-
targ: message,
|
|
270
|
-
})))
|
|
271
|
-
.Detach();
|
|
272
|
-
});
|
|
273
|
-
};
|
|
274
|
-
/**
|
|
275
|
-
* Construct a protocol message of the given type, optionally populating
|
|
276
|
-
* body_wrapper fields. Omitted fields default to NIL.
|
|
277
|
-
*/
|
|
278
|
-
Protocol.CreateProtocolMessage = (type_id, body_wrapper) => {
|
|
279
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
280
|
-
let body_wrapper_adapt_value = b.Attach(GetProtocolContainer().CreateDictionary());
|
|
281
|
-
if (body_wrapper) {
|
|
282
|
-
body_wrapper_adapt_value = body_wrapper_adapt_value
|
|
283
|
-
.Mutate(FieldName.nonce, body_wrapper.nonce ?? b.Attach(GetProtocolContainer().Nil()))
|
|
284
|
-
.Mutate(FieldName.message_hash, body_wrapper.message_hash ?? b.Attach(GetProtocolContainer().Nil()))
|
|
285
|
-
.Mutate(FieldName.from, body_wrapper.from ?? b.Attach(GetProtocolContainer().Nil()))
|
|
286
|
-
.Mutate(FieldName.to, body_wrapper.to ?? b.Attach(GetProtocolContainer().Nil()))
|
|
287
|
-
.Mutate(FieldName.body, body_wrapper.body ?? b.Attach(GetProtocolContainer().Nil()));
|
|
288
|
-
}
|
|
289
|
-
const targ = b.Attach(object_to_adapt_value({
|
|
290
|
-
msg_type_id: type_id,
|
|
291
|
-
args: body_wrapper_adapt_value,
|
|
292
|
-
}));
|
|
293
|
-
return GetProtocolContainer()
|
|
294
|
-
.ExecuteTransaction(b.Attach(object_to_adapt_value({
|
|
295
|
-
name: '::protocol_container::create_message',
|
|
296
|
-
targ: targ,
|
|
297
|
-
})))
|
|
298
|
-
.Detach();
|
|
299
|
-
});
|
|
300
|
-
};
|
|
301
|
-
/**
|
|
302
|
-
* Build a transaction envelope with the given body, recipient, sender, and
|
|
303
|
-
* (optionally) identity-proof document.
|
|
304
|
-
*/
|
|
305
|
-
Protocol.CreateTransactionEnvelope = (body, to, from, ip_document) => {
|
|
306
|
-
return object_to_adapt_value({
|
|
307
|
-
body: body,
|
|
308
|
-
to: to,
|
|
309
|
-
from: from,
|
|
310
|
-
ip_document: ip_document,
|
|
311
|
-
});
|
|
312
|
-
};
|
|
313
|
-
/**
|
|
314
|
-
* Wrap a transaction envelope in a w2b_transaction protocol message.
|
|
315
|
-
*/
|
|
316
|
-
Protocol.CreateTransactionMessageFromEnvelope = (envelope) => {
|
|
317
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
318
|
-
return GetProtocolContainer()
|
|
319
|
-
.ExecuteTransaction(b.Attach(object_to_adapt_value({
|
|
320
|
-
name: '::protocol_container::create_outgoing_protocol_message_from_envelope',
|
|
321
|
-
targ: envelope,
|
|
322
|
-
})))
|
|
323
|
-
.Detach();
|
|
324
|
-
});
|
|
325
|
-
};
|
|
326
|
-
/**
|
|
327
|
-
* Decrypt an encrypted transaction (test/debug only — disabled in release).
|
|
328
|
-
* Plain transactions pass through unchanged.
|
|
329
|
-
*/
|
|
330
|
-
Protocol.DescribeTransaction = (packet, trn) => {
|
|
331
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
332
|
-
return packet.ExecuteTransaction(b.Attach(object_to_adapt_value({
|
|
333
|
-
name: '::transaction_message_decoder::describe_message',
|
|
334
|
-
targ: trn,
|
|
335
|
-
})));
|
|
336
|
-
});
|
|
337
|
-
};
|
|
338
|
-
/**
|
|
339
|
-
* Build a packet-info dictionary containing the packet ID and current state.
|
|
340
|
-
*
|
|
341
|
-
* The dictionary plus the packet-id/state values are intermediate products;
|
|
342
|
-
* scope them so only the returned dictionary survives (the caller owns it).
|
|
343
|
-
*/
|
|
344
|
-
Protocol.CreatePacketInfo = (packet) => {
|
|
345
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
346
|
-
return b
|
|
347
|
-
.Attach(packet.CreateDictionary())
|
|
348
|
-
.Mutate(FieldName.packet_id, b.Attach(packet.GetContainerID()))
|
|
349
|
-
.Mutate(FieldName.state, b.Attach(packet.GetHash()))
|
|
350
|
-
.Detach();
|
|
351
|
-
});
|
|
352
|
-
};
|
|
353
|
-
/**
|
|
354
|
-
* Attach an identity proof document to a transaction envelope.
|
|
355
|
-
*/
|
|
356
|
-
Protocol.SetIdentityProofDocumentToEnvelope = (envelope, ip_document) => {
|
|
357
|
-
return envelope.Mutate(FieldName.ip_document, ip_document);
|
|
358
|
-
};
|
|
359
|
-
/**
|
|
360
|
-
* Run protocol-level validation on a message.
|
|
361
|
-
*/
|
|
362
|
-
Protocol.Validate = (message) => {
|
|
363
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
364
|
-
return b.Attach(GetProtocolContainer().ExecuteTransaction(b.Attach(object_to_adapt_value({
|
|
365
|
-
name: '::protocol_container::validate_message',
|
|
366
|
-
targ: message,
|
|
367
|
-
}))));
|
|
368
|
-
});
|
|
369
|
-
};
|
|
370
|
-
/**
|
|
371
|
-
* Inspect a transaction's result-kind field. Throws if the value does not
|
|
372
|
-
* have the structure produced by the `transaction.mm` library.
|
|
373
|
-
*/
|
|
374
|
-
Protocol.GetTransactionResultKind = (transaction_result) => {
|
|
375
|
-
// The Reduce() product is a throwaway; scope it so it does not leak.
|
|
376
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => b.Attach(transaction_result.Reduce(FieldName.result_kind)).Visualize());
|
|
377
|
-
};
|
|
378
|
-
/**
|
|
379
|
-
* Validate an identity proof document against the given timestamp.
|
|
380
|
-
*/
|
|
381
|
-
Protocol.ValidateIdentityProofDocument = (ip_document, timestamp) => {
|
|
382
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
383
|
-
const targ = b.Attach(object_to_adapt_value({ ip_document: ip_document, timestamp: timestamp }));
|
|
384
|
-
return GetProtocolContainer()
|
|
385
|
-
.ExecuteTransaction(b.Attach(object_to_adapt_value({
|
|
386
|
-
name: '::identity_proof_document::validate',
|
|
387
|
-
targ: targ,
|
|
388
|
-
})))
|
|
389
|
-
.Detach();
|
|
390
|
-
});
|
|
391
|
-
};
|
|
392
|
-
/**
|
|
393
|
-
* Produce an identity proof document for the given packet.
|
|
394
|
-
*/
|
|
395
|
-
Protocol.GetIdentityProofDocument = (packet) => {
|
|
396
|
-
return AdaptObjectBuilder.execute_and_collect_garbage((b) => {
|
|
397
|
-
return packet
|
|
398
|
-
.ExecuteTransaction(b.Attach(object_to_adapt_value({
|
|
399
|
-
name: '::identity_proof_document::create',
|
|
400
|
-
targ: false,
|
|
401
|
-
})))
|
|
402
|
-
.Detach();
|
|
403
|
-
});
|
|
404
|
-
};
|
|
405
|
-
ExitHandlerRegistrar.getInstance().registerOnExitHandler(() => {
|
|
406
|
-
console.log(`### Deleting ${lt.size} objects from protocol lifetime`);
|
|
407
|
-
lt.Finalize();
|
|
408
|
-
});
|
|
409
|
-
})(Protocol || (Protocol = {}));
|
|
410
|
-
//# sourceMappingURL=protocol.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../../../src/wrapper/protocol/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAGL,gBAAgB,EAEhB,mBAAmB,GACpB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AACtF,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAEhF,MAAM,KAAW,QAAQ,CA+iBxB;AA/iBD,WAAiB,QAAQ;IAIvB,cAAc;IACd,IAAI,UAAU,GAAkB,SAAS,CAAC;IAE1C,cAAc;IACd,SAAgB,QAAQ;QACtB,O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