dexbot 1.4.16 → 1.4.17
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/CHANGELOG.md +5013 -0
- package/README.md +4 -6
- package/analysis/README.md +468 -0
- package/analysis/ama_fitting/README.md +258 -0
- package/analysis/ama_fitting/analyze_ama_price_changes.ts +151 -0
- package/analysis/ama_fitting/analyze_lambda_vs_slow.ts +407 -0
- package/analysis/ama_fitting/calibrate_convergence_er.ts +199 -0
- package/analysis/ama_fitting/fetch_lp_candles.ts +187 -0
- package/analysis/ama_fitting/generate_unified_comparison_chart.ts +269 -0
- package/analysis/ama_fitting/optimizer_high_resolution.ts +792 -0
- package/analysis/ama_fitting/package.json +12 -0
- package/analysis/analyze_derivatives.ts +318 -0
- package/analysis/analyze_dynamic_weight.ts +219 -0
- package/analysis/analyze_kalman.ts +126 -0
- package/analysis/analyze_regime.ts +156 -0
- package/analysis/analyze_regime_windows.ts +460 -0
- package/analysis/analyze_risk_profile.ts +199 -0
- package/analysis/analyze_trade_heatmap.ts +362 -0
- package/analysis/analyze_volatility.ts +182 -0
- package/analysis/bot_fitting/README.md +124 -0
- package/analysis/bot_fitting/backtest_ama_sweep.ts +816 -0
- package/analysis/bot_fitting/backtest_bot_fitting.ts +421 -0
- package/analysis/bot_fitting/shared_utils.ts +46 -0
- package/analysis/bot_key_utils.ts +154 -0
- package/analysis/bot_usage/discover_bot_accounts.ts +579 -0
- package/analysis/bot_usage/kibana_bot_queries.ts +427 -0
- package/analysis/chart_css.ts +60 -0
- package/analysis/chart_ui.ts +106 -0
- package/{dist/analysis/chart_utils.js → analysis/chart_utils.ts} +21 -13
- package/analysis/derivative_chart_generator.ts +874 -0
- package/analysis/math_utils.ts +60 -0
- package/analysis/price_sources.ts +130 -0
- package/analysis/resolve_source.ts +89 -0
- package/analysis/trade_profitability.ts +1412 -0
- package/analysis/tradingview/README.md +161 -0
- package/analysis/tradingview/analyze_tradingview.ts +160 -0
- package/{dist/analysis/tradingview/tradingview_uplot_chart_generator.js → analysis/tradingview/tradingview_uplot_chart_generator.ts} +40 -36
- package/analysis/trend_detection/DYNAMIC_WEIGHT_RESEARCH.md +437 -0
- package/analysis/trend_detection/README.md +27 -0
- package/analysis/trend_detection/SIGNAL_DOCUMENTATION.md +403 -0
- package/analysis/trend_detection/derivative_analyzer.ts +1050 -0
- package/analysis/trend_detection/dynamic_weight_chart_generator.ts +1376 -0
- package/analysis/trend_detection/hurst_analyzer.ts +7 -0
- package/analysis/trend_detection/kalman_chart_generator.ts +371 -0
- package/analysis/trend_detection/kalman_trend_analyzer.ts +9 -0
- package/analysis/trend_detection/kalman_velocity_smoothing.ts +7 -0
- package/analysis/trend_detection/package.json +23 -0
- package/analysis/trend_detection/permutation_entropy_analyzer.ts +7 -0
- package/analysis/trend_detection/regime_chart_generator.ts +319 -0
- package/analysis/trend_detection/tests/test_kalman_trend.ts +153 -0
- package/analysis/trend_detection/tests/test_kalman_velocity_smoothing.ts +64 -0
- package/analysis/trend_detection/volatility_chart_generator.ts +655 -0
- package/analysis/tsconfig.json +29 -0
- package/analysis/uplot/index.d.ts +128 -0
- package/analysis/uplot/uPlot.iife.min.js +2 -0
- package/analysis/uplot/uPlot.min.css +1 -0
- package/claw/README.md +4 -0
- package/claw/examples/claw_profiles_example.ts +1 -1
- package/claw/examples/memu_integration_example.ts +1 -1
- package/claw/modules/bitshares_client.ts +47 -7
- package/claw/modules/chain_actions.ts +10 -1
- package/claw/modules/claw_infra.ts +13 -3
- package/claw/modules/claw_launcher.ts +41 -7
- package/claw/modules/claw_manifest.ts +9 -1
- package/claw/modules/claw_skill_md.ts +34 -13
- package/claw/modules/credit_runtime_adapter.ts +24 -5
- package/claw/modules/decision_loop.ts +10 -2
- package/claw/modules/dexbot_profiles.ts +1 -24
- package/claw/modules/feed_price_source.ts +1 -1
- package/claw/modules/honest_ecosystem.ts +32 -8
- package/claw/modules/kibana_price_source.ts +6 -2
- package/claw/modules/launcher_mode_detector.ts +10 -13
- package/claw/modules/liquidity_pools.ts +2 -2
- package/claw/modules/mcp_utils.ts +46 -5
- package/claw/modules/memu_bridge.ts +17 -1
- package/claw/modules/position_discovery.ts +1 -1
- package/claw/modules/position_health.ts +1 -1
- package/claw/modules/position_manager.ts +39 -13
- package/claw/modules/skill_utils.ts +4 -8
- package/claw/modules/types.ts +20 -1
- package/claw/package.json +1 -1
- package/claw/runtimes/openclaw-plugin/openclaw.plugin.json +1 -1
- package/claw/runtimes/openclaw-plugin/package.json +1 -1
- package/claw/scripts/claw_bridge.ts +22 -3
- package/claw/scripts/claw_mcp_server.ts +28 -13
- package/claw/scripts/honest_assets_report.ts +3 -1
- package/claw/scripts/memu_mcp_server.ts +15 -4
- package/claw/tests/test_claw_data_flow.ts +4 -2
- package/claw/tests/test_claw_mcp_transport.ts +2 -2
- package/claw/tests/test_claw_regressions.ts +5 -0
- package/claw/tests/test_claw_skill_generation.ts +3 -3
- package/claw/tests/test_nullclaw_tmp_integration.ts +1 -1
- package/claw/tsconfig.json +1 -2
- package/dist/bot.js +1 -1
- package/dist/bot.js.map +1 -1
- package/dist/credential-daemon.js +1 -1
- package/dist/credential-daemon.js.map +1 -1
- package/dist/market_adapter/core/market_adapter_service.js +2 -2
- package/dist/market_adapter/core/market_adapter_service.js.map +1 -1
- package/dist/market_adapter/core/signals/hurst_analyzer.js +1 -1
- package/dist/market_adapter/core/signals/kalman_trend_analyzer.js +1 -1
- package/dist/market_adapter/core/signals/permutation_entropy_analyzer.js +1 -1
- package/dist/market_adapter/core/strategies/ama_slope_model.js +1 -1
- package/dist/market_adapter/core/strategies/collateral_manager.js +1 -1
- package/dist/market_adapter/core/strategies/regime_gate.js +1 -1
- package/dist/market_adapter/lp_chart_core.js +1 -1
- package/dist/market_adapter/market_adapter.js +2 -2
- package/dist/market_adapter/market_adapter.js.map +1 -1
- package/dist/modules/account_bots.d.ts.map +1 -1
- package/dist/modules/account_bots.js +7 -17
- package/dist/modules/account_bots.js.map +1 -1
- package/dist/modules/account_orders.d.ts +8 -1
- package/dist/modules/account_orders.d.ts.map +1 -1
- package/dist/modules/account_orders.js +3 -11
- package/dist/modules/account_orders.js.map +1 -1
- package/dist/modules/authority_resolver.js +1 -1
- package/dist/modules/authority_resolver.js.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts +1 -2
- package/dist/modules/bitshares-native/crypto/ecc.browser.d.ts.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.browser.js +19 -58
- package/dist/modules/bitshares-native/crypto/ecc.browser.js.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.d.ts +2 -9
- package/dist/modules/bitshares-native/crypto/ecc.d.ts.map +1 -1
- package/dist/modules/bitshares-native/crypto/ecc.js +6 -145
- package/dist/modules/bitshares-native/crypto/ecc.js.map +1 -1
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts +1 -17
- package/dist/modules/bitshares-native/serial/chain_constants.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/chain_constants.js +1 -30
- package/dist/modules/bitshares-native/serial/chain_constants.js.map +1 -1
- package/dist/modules/bitshares-native/serial/types.d.ts +1 -30
- package/dist/modules/bitshares-native/serial/types.d.ts.map +1 -1
- package/dist/modules/bitshares-native/serial/types.js +1 -169
- package/dist/modules/bitshares-native/serial/types.js.map +1 -1
- package/dist/modules/bitshares-native/signing_client.js +1 -1
- package/dist/modules/bitshares-native/signing_client.js.map +1 -1
- package/dist/modules/bitshares-native/subscriptions.js +7 -7
- package/dist/modules/bitshares-native/subscriptions.js.map +1 -1
- package/dist/modules/bitshares-native/transport.js +1 -1
- package/dist/modules/bitshares-native/transport.js.map +1 -1
- package/dist/modules/bitshares-native/tx/builder.d.ts +1 -6
- package/dist/modules/bitshares-native/tx/builder.d.ts.map +1 -1
- package/dist/modules/bitshares-native/tx/builder.js +2 -11
- package/dist/modules/bitshares-native/tx/builder.js.map +1 -1
- package/dist/modules/bitshares-native/tx/tx_cache.js +1 -1
- package/dist/modules/bitshares-native/tx/tx_cache.js.map +1 -1
- package/dist/modules/bitshares_client.js +1 -1
- package/dist/modules/bitshares_client.js.map +1 -1
- package/dist/modules/bot_settings.js +1 -1
- package/dist/modules/bot_settings.js.map +1 -1
- package/dist/modules/chain_keys.d.ts +2 -2
- package/dist/modules/chain_keys.js +2 -2
- package/dist/modules/chain_orders.d.ts.map +1 -1
- package/dist/modules/chain_orders.js +7 -23
- package/dist/modules/chain_orders.js.map +1 -1
- package/dist/modules/constants.js +1 -1
- package/dist/modules/constants.js.map +1 -1
- package/dist/modules/cr_planner.js +3 -3
- package/dist/modules/cr_planner.js.map +1 -1
- package/dist/modules/credential_policy.d.ts.map +1 -1
- package/dist/modules/credential_policy.js +5 -11
- package/dist/modules/credential_policy.js.map +1 -1
- package/dist/modules/credit_runtime.d.ts.map +1 -1
- package/dist/modules/credit_runtime.js +18 -27
- package/dist/modules/credit_runtime.js.map +1 -1
- package/dist/modules/crypto/pure_secp256k1.d.ts +4 -1
- package/dist/modules/crypto/pure_secp256k1.d.ts.map +1 -1
- package/dist/modules/crypto/pure_secp256k1.js +1 -1
- package/dist/modules/crypto/pure_secp256k1.js.map +1 -1
- package/dist/modules/crypto/sync.d.ts +0 -3
- package/dist/modules/crypto/sync.d.ts.map +1 -1
- package/dist/modules/crypto/sync.js +0 -3
- package/dist/modules/crypto/sync.js.map +1 -1
- package/dist/modules/dexbot_class.d.ts +9 -9
- package/dist/modules/dexbot_class.js +9 -9
- package/dist/modules/dexbot_cow_runtime.d.ts +3 -3
- package/dist/modules/dexbot_cow_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_cow_runtime.js +4 -9
- package/dist/modules/dexbot_cow_runtime.js.map +1 -1
- package/dist/modules/dexbot_fill_runtime.d.ts +10 -10
- package/dist/modules/dexbot_fill_runtime.js +10 -10
- package/dist/modules/dexbot_maintenance_runtime.d.ts +7 -7
- package/dist/modules/dexbot_maintenance_runtime.d.ts.map +1 -1
- package/dist/modules/dexbot_maintenance_runtime.js +16 -15
- package/dist/modules/dexbot_maintenance_runtime.js.map +1 -1
- package/dist/modules/env.d.ts +0 -1
- package/dist/modules/env.d.ts.map +1 -1
- package/dist/modules/env.js +0 -34
- package/dist/modules/env.js.map +1 -1
- package/dist/modules/graceful_shutdown.js +1 -1
- package/dist/modules/graceful_shutdown.js.map +1 -1
- package/dist/modules/launcher/launch_modes.d.ts +1 -2
- package/dist/modules/launcher/launch_modes.d.ts.map +1 -1
- package/dist/modules/launcher/launch_modes.js +1 -2
- package/dist/modules/launcher/launch_modes.js.map +1 -1
- package/dist/modules/launcher/market_adapter_runtime.d.ts +1 -2
- package/dist/modules/launcher/market_adapter_runtime.d.ts.map +1 -1
- package/dist/modules/launcher/market_adapter_runtime.js +1 -4
- package/dist/modules/launcher/market_adapter_runtime.js.map +1 -1
- package/dist/modules/launcher/monolithic_runtime.d.ts +1 -2
- package/dist/modules/launcher/monolithic_runtime.d.ts.map +1 -1
- package/dist/modules/launcher/monolithic_runtime.js +1 -15
- package/dist/modules/launcher/monolithic_runtime.js.map +1 -1
- package/dist/modules/launcher/runtime_entry.d.ts +1 -2
- package/dist/modules/launcher/runtime_entry.d.ts.map +1 -1
- package/dist/modules/launcher/runtime_entry.js +1 -14
- package/dist/modules/launcher/runtime_entry.js.map +1 -1
- package/dist/modules/launcher/status_reporting.d.ts +1 -3
- package/dist/modules/launcher/status_reporting.d.ts.map +1 -1
- package/dist/modules/launcher/status_reporting.js +1 -10
- package/dist/modules/launcher/status_reporting.js.map +1 -1
- package/dist/modules/node_manager.d.ts.map +1 -1
- package/dist/modules/node_manager.js +4 -3
- package/dist/modules/node_manager.js.map +1 -1
- package/dist/modules/order/export.d.ts.map +1 -1
- package/dist/modules/order/export.js +4 -3
- package/dist/modules/order/export.js.map +1 -1
- package/dist/modules/order/format.d.ts +1 -10
- package/dist/modules/order/format.d.ts.map +1 -1
- package/dist/modules/order/format.js +1 -22
- package/dist/modules/order/format.js.map +1 -1
- package/dist/modules/order/grid.d.ts +19 -19
- package/dist/modules/order/grid.d.ts.map +1 -1
- package/dist/modules/order/grid.js +25 -25
- package/dist/modules/order/grid.js.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.d.ts +1 -83
- package/dist/modules/order/grid_reconcile_internal.d.ts.map +1 -1
- package/dist/modules/order/grid_reconcile_internal.js +1 -1
- package/dist/modules/order/grid_reconcile_internal.js.map +1 -1
- package/dist/modules/order/manager.d.ts +15 -15
- package/dist/modules/order/manager.js +15 -15
- package/dist/modules/order/processed_fill_store.d.ts +1 -1
- package/dist/modules/order/processed_fill_store.js +1 -1
- package/dist/modules/order/sync_engine.d.ts +4 -4
- package/dist/modules/order/sync_engine.js +4 -4
- package/dist/modules/order/utils/math.d.ts +7 -2
- package/dist/modules/order/utils/math.d.ts.map +1 -1
- package/dist/modules/order/utils/math.js +10 -3
- package/dist/modules/order/utils/math.js.map +1 -1
- package/dist/modules/order/utils/order.js +3 -3
- package/dist/modules/order/utils/order.js.map +1 -1
- package/dist/modules/order/utils/system.d.ts +17 -1
- package/dist/modules/order/utils/system.d.ts.map +1 -1
- package/dist/modules/order/utils/system.js +45 -3
- package/dist/modules/order/utils/system.js.map +1 -1
- package/dist/modules/order/utils/validate.d.ts +3 -3
- package/dist/modules/order/utils/validate.d.ts.map +1 -1
- package/dist/modules/order/utils/validate.js +5 -5
- package/dist/modules/order/utils/validate.js.map +1 -1
- package/dist/modules/order/utils/withPoolRef.js +1 -1
- package/dist/modules/order/utils/withPoolRef.js.map +1 -1
- package/dist/modules/paths.d.ts +4 -2
- package/dist/modules/paths.d.ts.map +1 -1
- package/dist/modules/paths.js +5 -3
- package/dist/modules/paths.js.map +1 -1
- package/dist/modules/runtime.d.ts +1 -0
- package/dist/modules/runtime.d.ts.map +1 -1
- package/dist/modules/runtime_settings.d.ts.map +1 -1
- package/dist/modules/runtime_settings.js +26 -30
- package/dist/modules/runtime_settings.js.map +1 -1
- package/dist/modules/settings_merge.d.ts +7 -1
- package/dist/modules/settings_merge.d.ts.map +1 -1
- package/dist/modules/settings_merge.js +10 -6
- package/dist/modules/settings_merge.js.map +1 -1
- package/dist/modules/types.d.ts +0 -753
- package/dist/modules/types.d.ts.map +1 -1
- package/dist/modules/types.js +0 -15
- package/dist/modules/types.js.map +1 -1
- package/dist/modules/utils/base58check.js +4 -4
- package/dist/modules/utils/base58check.js.map +1 -1
- package/dist/modules/validate_profiles.d.ts +1 -11
- package/dist/modules/validate_profiles.d.ts.map +1 -1
- package/dist/modules/validate_profiles.js +1 -1
- package/dist/modules/validate_profiles.js.map +1 -1
- package/dist/scripts/update.d.ts +3 -0
- package/dist/scripts/update.d.ts.map +1 -1
- package/dist/scripts/update.js +91 -6
- package/dist/scripts/update.js.map +1 -1
- package/docs/BITSHARES_ONBOARDING.md +435 -0
- package/docs/COPY_ON_WRITE_MASTER_PLAN.md +514 -0
- package/docs/COW_INVARIANTS.md +309 -0
- package/docs/CREDENTIAL_SECURITY.md +450 -0
- package/docs/DEXBOT_COMPARISON.md +922 -0
- package/docs/EVOLUTION.md +210 -0
- package/docs/FUND_MOVEMENT_AND_ACCOUNTING.md +851 -0
- package/docs/GRID_RECALCULATION.md +624 -0
- package/docs/GRID_RECONCILE.md +259 -0
- package/docs/LOGGING.md +318 -0
- package/docs/MPA_CREDIT_USAGE.md +353 -0
- package/docs/README.md +199 -0
- package/docs/WORKFLOW.md +369 -0
- package/docs/architecture.md +1466 -0
- package/docs/developer_guide.md +1929 -0
- package/docs/docker.md +141 -0
- package/market_adapter/README.md +1003 -0
- package/modules/README.md +176 -0
- package/package.json +38 -3
- package/scripts/README.md +55 -32
- package/scripts/bots +18 -0
- package/scripts/clean-dist.js +9 -0
- package/scripts/create-bot-symlinks.sh +3 -3
- package/scripts/dexbot +17 -0
- package/scripts/git-viewer.sh +489 -0
- package/scripts/keys +18 -0
- package/scripts/pdev.sh +38 -0
- package/scripts/pm2 +17 -0
- package/scripts/pmain.sh +45 -0
- package/scripts/ptest.sh +26 -0
- package/scripts/repo-stats.html +480 -0
- package/scripts/unlock +17 -0
- package/scripts/update.js +13 -0
- package/tests/README.md +135 -0
- package/claw/data/positions.json +0 -150070
- package/claw/node_modules/.package-lock.json +0 -935
- package/claw/node_modules/@babel/runtime/LICENSE +0 -22
- package/claw/node_modules/@babel/runtime/README.md +0 -19
- package/claw/node_modules/@babel/runtime/helpers/AwaitValue.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/OverloadYield.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/applyDecoratedDescriptor.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/applyDecs.js +0 -236
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2203.js +0 -184
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2203R.js +0 -191
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2301.js +0 -222
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2305.js +0 -133
- package/claw/node_modules/@babel/runtime/helpers/applyDecs2311.js +0 -124
- package/claw/node_modules/@babel/runtime/helpers/arrayLikeToArray.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/arrayWithHoles.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/assertClassBrand.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/assertThisInitialized.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/asyncGeneratorDelegate.js +0 -24
- package/claw/node_modules/@babel/runtime/helpers/asyncIterator.js +0 -45
- package/claw/node_modules/@babel/runtime/helpers/asyncToGenerator.js +0 -26
- package/claw/node_modules/@babel/runtime/helpers/awaitAsyncGenerator.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/callSuper.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/checkInRHS.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/checkPrivateRedeclaration.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classApplyDescriptorDestructureSet.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/classApplyDescriptorGet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classApplyDescriptorSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classCallCheck.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classCheckPrivateStaticAccess.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classCheckPrivateStaticFieldDescriptor.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classExtractFieldDescriptor.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classNameTDZError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldDestructureSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldGet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldGet2.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldInitSpec.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldLooseBase.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldLooseKey.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classPrivateFieldSet2.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateGetter.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateMethodGet.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateMethodInitSpec.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classPrivateMethodSet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/classPrivateSetter.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateFieldDestructureSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecGet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateFieldSpecSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateMethodGet.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/classStaticPrivateMethodSet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/construct.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/createClass.js +0 -13
- package/claw/node_modules/@babel/runtime/helpers/createForOfIteratorHelper.js +0 -50
- package/claw/node_modules/@babel/runtime/helpers/createForOfIteratorHelperLoose.js +0 -19
- package/claw/node_modules/@babel/runtime/helpers/createSuper.js +0 -16
- package/claw/node_modules/@babel/runtime/helpers/decorate.js +0 -250
- package/claw/node_modules/@babel/runtime/helpers/defaults.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/defineAccessor.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/defineEnumerableProperties.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/defineProperty.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/dispose.js +0 -28
- package/claw/node_modules/@babel/runtime/helpers/esm/AwaitValue.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/OverloadYield.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs.js +0 -236
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2203.js +0 -184
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2203R.js +0 -191
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2301.js +0 -222
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2305.js +0 -133
- package/claw/node_modules/@babel/runtime/helpers/esm/applyDecs2311.js +0 -124
- package/claw/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/assertClassBrand.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js +0 -24
- package/claw/node_modules/@babel/runtime/helpers/esm/asyncIterator.js +0 -45
- package/claw/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +0 -26
- package/claw/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/callSuper.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/checkInRHS.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet2.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet2.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateGetter.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/classPrivateSetter.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/construct.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/createClass.js +0 -13
- package/claw/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js +0 -50
- package/claw/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js +0 -19
- package/claw/node_modules/@babel/runtime/helpers/esm/createSuper.js +0 -16
- package/claw/node_modules/@babel/runtime/helpers/esm/decorate.js +0 -250
- package/claw/node_modules/@babel/runtime/helpers/esm/defaults.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/defineAccessor.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/esm/defineProperty.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/dispose.js +0 -28
- package/claw/node_modules/@babel/runtime/helpers/esm/extends.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/get.js +0 -11
- package/claw/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/identity.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/importDeferProxy.js +0 -27
- package/claw/node_modules/@babel/runtime/helpers/esm/inherits.js +0 -14
- package/claw/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/instanceof.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +0 -28
- package/claw/node_modules/@babel/runtime/helpers/esm/jsx.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/nullishReceiverError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/objectSpread.js +0 -14
- package/claw/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +0 -23
- package/claw/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +0 -13
- package/claw/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/package.json +0 -3
- package/claw/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/readOnlyError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/regenerator.js +0 -89
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorAsync.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncGen.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorAsyncIterator.js +0 -33
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorDefine.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorKeys.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +0 -77
- package/claw/node_modules/@babel/runtime/helpers/esm/regeneratorValues.js +0 -19
- package/claw/node_modules/@babel/runtime/helpers/esm/set.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/esm/setFunctionName.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/superPropBase.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/superPropGet.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/superPropSet.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/tdz.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/esm/temporalRef.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js +0 -2
- package/claw/node_modules/@babel/runtime/helpers/esm/toArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/esm/toSetter.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/tsRewriteRelativeImportExtensions.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/esm/typeof.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/esm/using.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/esm/usingCtx.js +0 -59
- package/claw/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js +0 -56
- package/claw/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js +0 -27
- package/claw/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js +0 -52
- package/claw/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/extends.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/get.js +0 -11
- package/claw/node_modules/@babel/runtime/helpers/getPrototypeOf.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/identity.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/importDeferProxy.js +0 -27
- package/claw/node_modules/@babel/runtime/helpers/inherits.js +0 -14
- package/claw/node_modules/@babel/runtime/helpers/inheritsLoose.js +0 -5
- package/claw/node_modules/@babel/runtime/helpers/initializerDefineProperty.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/initializerWarningHelper.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/instanceof.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/interopRequireDefault.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/interopRequireWildcard.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/isNativeFunction.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/iterableToArray.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/iterableToArrayLimit.js +0 -28
- package/claw/node_modules/@babel/runtime/helpers/jsx.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/maybeArrayLike.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/newArrowCheck.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/nonIterableRest.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/nonIterableSpread.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/nullishReceiverError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/objectSpread.js +0 -14
- package/claw/node_modules/@babel/runtime/helpers/objectSpread2.js +0 -23
- package/claw/node_modules/@babel/runtime/helpers/objectWithoutProperties.js +0 -13
- package/claw/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/readOnlyError.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/regenerator.js +0 -89
- package/claw/node_modules/@babel/runtime/helpers/regeneratorAsync.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/regeneratorAsyncGen.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/regeneratorAsyncIterator.js +0 -33
- package/claw/node_modules/@babel/runtime/helpers/regeneratorDefine.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/regeneratorKeys.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/regeneratorRuntime.js +0 -77
- package/claw/node_modules/@babel/runtime/helpers/regeneratorValues.js +0 -19
- package/claw/node_modules/@babel/runtime/helpers/set.js +0 -22
- package/claw/node_modules/@babel/runtime/helpers/setFunctionName.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/setPrototypeOf.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/slicedToArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/superPropBase.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/superPropGet.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/superPropSet.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/tdz.js +0 -4
- package/claw/node_modules/@babel/runtime/helpers/temporalRef.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/temporalUndefined.js +0 -2
- package/claw/node_modules/@babel/runtime/helpers/toArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/toConsumableArray.js +0 -8
- package/claw/node_modules/@babel/runtime/helpers/toPrimitive.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/toPropertyKey.js +0 -7
- package/claw/node_modules/@babel/runtime/helpers/toSetter.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/tsRewriteRelativeImportExtensions.js +0 -6
- package/claw/node_modules/@babel/runtime/helpers/typeof.js +0 -10
- package/claw/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js +0 -9
- package/claw/node_modules/@babel/runtime/helpers/using.js +0 -12
- package/claw/node_modules/@babel/runtime/helpers/usingCtx.js +0 -59
- package/claw/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js +0 -56
- package/claw/node_modules/@babel/runtime/helpers/wrapNativeSuper.js +0 -27
- package/claw/node_modules/@babel/runtime/helpers/wrapRegExp.js +0 -52
- package/claw/node_modules/@babel/runtime/helpers/writeOnlyError.js +0 -4
- package/claw/node_modules/@babel/runtime/package.json +0 -1107
- package/claw/node_modules/@babel/runtime/regenerator/index.js +0 -15
- package/claw/node_modules/assert/.github/FUNDING.yml +0 -12
- package/claw/node_modules/assert/.github/SECURITY.md +0 -10
- package/claw/node_modules/assert/.travis.yml +0 -30
- package/claw/node_modules/assert/.zuul.yml +0 -13
- package/claw/node_modules/assert/CHANGELOG.md +0 -11
- package/claw/node_modules/assert/LICENSE +0 -18
- package/claw/node_modules/assert/README.md +0 -105
- package/claw/node_modules/assert/assert.js +0 -506
- package/claw/node_modules/assert/package.json +0 -32
- package/claw/node_modules/assert/test.js +0 -360
- package/claw/node_modules/async-limiter/.eslintignore +0 -2
- package/claw/node_modules/async-limiter/.nycrc +0 -10
- package/claw/node_modules/async-limiter/.travis.yml +0 -9
- package/claw/node_modules/async-limiter/LICENSE +0 -8
- package/claw/node_modules/async-limiter/index.js +0 -67
- package/claw/node_modules/async-limiter/package.json +0 -35
- package/claw/node_modules/async-limiter/readme.md +0 -132
- package/claw/node_modules/available-typed-arrays/.eslintrc +0 -5
- package/claw/node_modules/available-typed-arrays/.github/FUNDING.yml +0 -12
- package/claw/node_modules/available-typed-arrays/.nycrc +0 -9
- package/claw/node_modules/available-typed-arrays/CHANGELOG.md +0 -100
- package/claw/node_modules/available-typed-arrays/LICENSE +0 -21
- package/claw/node_modules/available-typed-arrays/README.md +0 -55
- package/claw/node_modules/available-typed-arrays/index.d.ts +0 -8
- package/claw/node_modules/available-typed-arrays/index.js +0 -17
- package/claw/node_modules/available-typed-arrays/package.json +0 -93
- package/claw/node_modules/available-typed-arrays/test/index.js +0 -18
- package/claw/node_modules/available-typed-arrays/tsconfig.json +0 -49
- package/claw/node_modules/base-x/LICENSE.md +0 -22
- package/claw/node_modules/base-x/README.md +0 -67
- package/claw/node_modules/base-x/package.json +0 -49
- package/claw/node_modules/base-x/src/index.d.ts +0 -10
- package/claw/node_modules/base-x/src/index.js +0 -123
- package/claw/node_modules/bigi/CHANGELOG.md +0 -85
- package/claw/node_modules/bigi/LICENSE.md +0 -30
- package/claw/node_modules/bigi/README.md +0 -14
- package/claw/node_modules/bigi/lib/bigi.js +0 -1509
- package/claw/node_modules/bigi/lib/convert.js +0 -91
- package/claw/node_modules/bigi/lib/index.js +0 -6
- package/claw/node_modules/bigi/package.json +0 -55
- package/claw/node_modules/bignumber.js/CHANGELOG.md +0 -222
- package/claw/node_modules/bignumber.js/LICENCE +0 -23
- package/claw/node_modules/bignumber.js/README.md +0 -266
- package/claw/node_modules/bignumber.js/bignumber.d.ts +0 -1797
- package/claw/node_modules/bignumber.js/bignumber.js +0 -2814
- package/claw/node_modules/bignumber.js/bignumber.js.map +0 -1
- package/claw/node_modules/bignumber.js/bignumber.min.js +0 -3
- package/claw/node_modules/bignumber.js/bignumber.mjs +0 -2793
- package/claw/node_modules/bignumber.js/bower.json +0 -36
- package/claw/node_modules/bignumber.js/doc/API.html +0 -2118
- package/claw/node_modules/bignumber.js/package.json +0 -39
- package/claw/node_modules/bs58/CHANGELOG.md +0 -61
- package/claw/node_modules/bs58/README.md +0 -71
- package/claw/node_modules/bs58/index.js +0 -4
- package/claw/node_modules/bs58/package.json +0 -37
- package/claw/node_modules/btsdex/.babelrc +0 -17
- package/claw/node_modules/btsdex/.github/workflows/check-style.yml +0 -16
- package/claw/node_modules/btsdex/LICENSE +0 -21
- package/claw/node_modules/btsdex/README.md +0 -467
- package/claw/node_modules/btsdex/cli.js +0 -165
- package/claw/node_modules/btsdex/lib/account.js +0 -60
- package/claw/node_modules/btsdex/lib/asset.js +0 -78
- package/claw/node_modules/btsdex/lib/bitshares.js +0 -363
- package/claw/node_modules/btsdex/lib/event.js +0 -137
- package/claw/node_modules/btsdex/lib/fees.js +0 -34
- package/claw/node_modules/btsdex/lib/index.js +0 -3
- package/claw/node_modules/btsdex/lib/transaction/TransactionBuilder.js +0 -797
- package/claw/node_modules/btsdex/lib/transaction/index.js +0 -64
- package/claw/node_modules/btsdex/package.json +0 -54
- package/claw/node_modules/btsdex/yarn-error.log +0 -3483
- package/claw/node_modules/btsdex-api/.babelrc +0 -14
- package/claw/node_modules/btsdex-api/README.md +0 -3
- package/claw/node_modules/btsdex-api/lib/apis.js +0 -59
- package/claw/node_modules/btsdex-api/lib/config.js +0 -39
- package/claw/node_modules/btsdex-api/lib/connection.js +0 -188
- package/claw/node_modules/btsdex-api/lib/index.js +0 -86
- package/claw/node_modules/btsdex-api/lib/logger.js +0 -45
- package/claw/node_modules/btsdex-api/lib/servers.js +0 -30
- package/claw/node_modules/btsdex-api/package.json +0 -29
- package/claw/node_modules/btsdex-ecc/.babelrc +0 -13
- package/claw/node_modules/btsdex-ecc/lib/BrainKey.js +0 -15
- package/claw/node_modules/btsdex-ecc/lib/KeyUtils.js +0 -205
- package/claw/node_modules/btsdex-ecc/lib/PrivateKey.js +0 -198
- package/claw/node_modules/btsdex-ecc/lib/PublicKey.js +0 -197
- package/claw/node_modules/btsdex-ecc/lib/address.js +0 -84
- package/claw/node_modules/btsdex-ecc/lib/addressPrefix.js +0 -15
- package/claw/node_modules/btsdex-ecc/lib/aes.js +0 -294
- package/claw/node_modules/btsdex-ecc/lib/ecdsa.js +0 -194
- package/claw/node_modules/btsdex-ecc/lib/ecsignature.js +0 -131
- package/claw/node_modules/btsdex-ecc/lib/enforce_types.js +0 -54
- package/claw/node_modules/btsdex-ecc/lib/hash.js +0 -60
- package/claw/node_modules/btsdex-ecc/lib/index.js +0 -84
- package/claw/node_modules/btsdex-ecc/lib/signature.js +0 -185
- package/claw/node_modules/btsdex-ecc/package.json +0 -37
- package/claw/node_modules/btsdex-serializer/.babelrc +0 -13
- package/claw/node_modules/btsdex-serializer/lib/ChainTypes.js +0 -154
- package/claw/node_modules/btsdex-serializer/lib/FastParser.js +0 -75
- package/claw/node_modules/btsdex-serializer/lib/ObjectId.js +0 -65
- package/claw/node_modules/btsdex-serializer/lib/SerializerValidation.js +0 -377
- package/claw/node_modules/btsdex-serializer/lib/convert.js +0 -54
- package/claw/node_modules/btsdex-serializer/lib/error_with_cause.js +0 -43
- package/claw/node_modules/btsdex-serializer/lib/index.js +0 -72
- package/claw/node_modules/btsdex-serializer/lib/operations.js +0 -1359
- package/claw/node_modules/btsdex-serializer/lib/precision.js +0 -108
- package/claw/node_modules/btsdex-serializer/lib/serializer.js +0 -205
- package/claw/node_modules/btsdex-serializer/lib/template.js +0 -23
- package/claw/node_modules/btsdex-serializer/lib/types.js +0 -1209
- package/claw/node_modules/btsdex-serializer/package-lock.json +0 -238
- package/claw/node_modules/btsdex-serializer/package.json +0 -32
- package/claw/node_modules/bytebuffer/.travis.yml +0 -5
- package/claw/node_modules/bytebuffer/LICENSE +0 -202
- package/claw/node_modules/bytebuffer/README.md +0 -64
- package/claw/node_modules/bytebuffer/bower.json +0 -12
- package/claw/node_modules/bytebuffer/bytebuffer.png +0 -0
- package/claw/node_modules/bytebuffer/dist/README.md +0 -47
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.js +0 -3461
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.min.js +0 -88
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.min.js.gz +0 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer-dataview.min.map +0 -8
- package/claw/node_modules/bytebuffer/dist/bytebuffer-node.js +0 -3454
- package/claw/node_modules/bytebuffer/dist/bytebuffer.js +0 -3746
- package/claw/node_modules/bytebuffer/dist/bytebuffer.min.js +0 -93
- package/claw/node_modules/bytebuffer/dist/bytebuffer.min.js.gz +0 -0
- package/claw/node_modules/bytebuffer/dist/bytebuffer.min.map +0 -8
- package/claw/node_modules/bytebuffer/donate.png +0 -0
- package/claw/node_modules/bytebuffer/externs/bytebuffer.js +0 -862
- package/claw/node_modules/bytebuffer/externs/minimal-env.js +0 -52
- package/claw/node_modules/bytebuffer/index.js +0 -1
- package/claw/node_modules/bytebuffer/jsdoc.json +0 -13
- package/claw/node_modules/bytebuffer/package.json +0 -51
- package/claw/node_modules/bytebuffer/scripts/build.js +0 -113
- package/claw/node_modules/bytebuffer/src/bower.json +0 -12
- package/claw/node_modules/bytebuffer/src/bytebuffer.js +0 -220
- package/claw/node_modules/bytebuffer/src/encodings/base64.js +0 -88
- package/claw/node_modules/bytebuffer/src/encodings/binary.js +0 -74
- package/claw/node_modules/bytebuffer/src/encodings/debug.js +0 -211
- package/claw/node_modules/bytebuffer/src/encodings/hex.js +0 -75
- package/claw/node_modules/bytebuffer/src/encodings/impl/base64.js +0 -3
- package/claw/node_modules/bytebuffer/src/encodings/impl/binary.js +0 -65
- package/claw/node_modules/bytebuffer/src/encodings/impl/debug.js +0 -3
- package/claw/node_modules/bytebuffer/src/encodings/impl/hex.js +0 -101
- package/claw/node_modules/bytebuffer/src/encodings/impl/utf8.js +0 -126
- package/claw/node_modules/bytebuffer/src/encodings/utf8.js +0 -71
- package/claw/node_modules/bytebuffer/src/helpers.js +0 -143
- package/claw/node_modules/bytebuffer/src/macros.js +0 -222
- package/claw/node_modules/bytebuffer/src/methods/append.js +0 -58
- package/claw/node_modules/bytebuffer/src/methods/assert.js +0 -12
- package/claw/node_modules/bytebuffer/src/methods/capacity.js +0 -8
- package/claw/node_modules/bytebuffer/src/methods/clear.js +0 -13
- package/claw/node_modules/bytebuffer/src/methods/clone.js +0 -34
- package/claw/node_modules/bytebuffer/src/methods/compact.js +0 -49
- package/claw/node_modules/bytebuffer/src/methods/copy.js +0 -73
- package/claw/node_modules/bytebuffer/src/methods/ensureCapacity.js +0 -15
- package/claw/node_modules/bytebuffer/src/methods/fill.js +0 -35
- package/claw/node_modules/bytebuffer/src/methods/flip.js +0 -11
- package/claw/node_modules/bytebuffer/src/methods/mark.js +0 -17
- package/claw/node_modules/bytebuffer/src/methods/order.js +0 -36
- package/claw/node_modules/bytebuffer/src/methods/prepend.js +0 -87
- package/claw/node_modules/bytebuffer/src/methods/printDebug.js +0 -16
- package/claw/node_modules/bytebuffer/src/methods/remaining.js +0 -9
- package/claw/node_modules/bytebuffer/src/methods/reset.js +0 -17
- package/claw/node_modules/bytebuffer/src/methods/resize.js +0 -39
- package/claw/node_modules/bytebuffer/src/methods/reverse.js +0 -25
- package/claw/node_modules/bytebuffer/src/methods/skip.js +0 -19
- package/claw/node_modules/bytebuffer/src/methods/slice.js +0 -18
- package/claw/node_modules/bytebuffer/src/methods/static/accessor.js +0 -13
- package/claw/node_modules/bytebuffer/src/methods/static/allocate.js +0 -14
- package/claw/node_modules/bytebuffer/src/methods/static/concat.js +0 -55
- package/claw/node_modules/bytebuffer/src/methods/static/isByteBuffer.js +0 -9
- package/claw/node_modules/bytebuffer/src/methods/static/type.js +0 -11
- package/claw/node_modules/bytebuffer/src/methods/static/wrap.js +0 -125
- package/claw/node_modules/bytebuffer/src/methods/toBuffer.js +0 -77
- package/claw/node_modules/bytebuffer/src/methods/toString.js +0 -43
- package/claw/node_modules/bytebuffer/src/types/bytes/bitset.js +0 -89
- package/claw/node_modules/bytebuffer/src/types/bytes/bytes.js +0 -34
- package/claw/node_modules/bytebuffer/src/types/floats/float32.js +0 -81
- package/claw/node_modules/bytebuffer/src/types/floats/float64.js +0 -77
- package/claw/node_modules/bytebuffer/src/types/floats/ieee754.js +0 -130
- package/claw/node_modules/bytebuffer/src/types/ints/int16.js +0 -167
- package/claw/node_modules/bytebuffer/src/types/ints/int32.js +0 -125
- package/claw/node_modules/bytebuffer/src/types/ints/int64.js +0 -194
- package/claw/node_modules/bytebuffer/src/types/ints/int8.js +0 -137
- package/claw/node_modules/bytebuffer/src/types/strings/cstring.js +0 -110
- package/claw/node_modules/bytebuffer/src/types/strings/istring.js +0 -81
- package/claw/node_modules/bytebuffer/src/types/strings/utf8string.js +0 -214
- package/claw/node_modules/bytebuffer/src/types/strings/vstring.js +0 -78
- package/claw/node_modules/bytebuffer/src/types/varints/varint32.js +0 -164
- package/claw/node_modules/bytebuffer/src/types/varints/varint64.js +0 -208
- package/claw/node_modules/bytebuffer/src/wrap-node.js +0 -50
- package/claw/node_modules/bytebuffer/src/wrap.js +0 -43
- package/claw/node_modules/bytebuffer/tests/bench.js +0 -99
- package/claw/node_modules/bytebuffer/tests/suite.js +0 -1005
- package/claw/node_modules/call-bind/.eslintignore +0 -1
- package/claw/node_modules/call-bind/.eslintrc +0 -16
- package/claw/node_modules/call-bind/.github/FUNDING.yml +0 -12
- package/claw/node_modules/call-bind/.nycrc +0 -9
- package/claw/node_modules/call-bind/CHANGELOG.md +0 -106
- package/claw/node_modules/call-bind/LICENSE +0 -21
- package/claw/node_modules/call-bind/README.md +0 -64
- package/claw/node_modules/call-bind/callBound.js +0 -15
- package/claw/node_modules/call-bind/index.js +0 -24
- package/claw/node_modules/call-bind/package.json +0 -93
- package/claw/node_modules/call-bind/test/callBound.js +0 -54
- package/claw/node_modules/call-bind/test/index.js +0 -74
- package/claw/node_modules/call-bind-apply-helpers/.eslintrc +0 -17
- package/claw/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +0 -12
- package/claw/node_modules/call-bind-apply-helpers/.nycrc +0 -9
- package/claw/node_modules/call-bind-apply-helpers/CHANGELOG.md +0 -30
- package/claw/node_modules/call-bind-apply-helpers/LICENSE +0 -21
- package/claw/node_modules/call-bind-apply-helpers/README.md +0 -62
- package/claw/node_modules/call-bind-apply-helpers/actualApply.d.ts +0 -1
- package/claw/node_modules/call-bind-apply-helpers/actualApply.js +0 -10
- package/claw/node_modules/call-bind-apply-helpers/applyBind.d.ts +0 -19
- package/claw/node_modules/call-bind-apply-helpers/applyBind.js +0 -10
- package/claw/node_modules/call-bind-apply-helpers/functionApply.d.ts +0 -1
- package/claw/node_modules/call-bind-apply-helpers/functionApply.js +0 -4
- package/claw/node_modules/call-bind-apply-helpers/functionCall.d.ts +0 -1
- package/claw/node_modules/call-bind-apply-helpers/functionCall.js +0 -4
- package/claw/node_modules/call-bind-apply-helpers/index.d.ts +0 -64
- package/claw/node_modules/call-bind-apply-helpers/index.js +0 -15
- package/claw/node_modules/call-bind-apply-helpers/package.json +0 -85
- package/claw/node_modules/call-bind-apply-helpers/reflectApply.d.ts +0 -3
- package/claw/node_modules/call-bind-apply-helpers/reflectApply.js +0 -4
- package/claw/node_modules/call-bind-apply-helpers/test/index.js +0 -63
- package/claw/node_modules/call-bind-apply-helpers/tsconfig.json +0 -9
- package/claw/node_modules/call-bound/.eslintrc +0 -13
- package/claw/node_modules/call-bound/.github/FUNDING.yml +0 -12
- package/claw/node_modules/call-bound/.nycrc +0 -9
- package/claw/node_modules/call-bound/CHANGELOG.md +0 -42
- package/claw/node_modules/call-bound/LICENSE +0 -21
- package/claw/node_modules/call-bound/README.md +0 -53
- package/claw/node_modules/call-bound/index.d.ts +0 -94
- package/claw/node_modules/call-bound/index.js +0 -19
- package/claw/node_modules/call-bound/package.json +0 -99
- package/claw/node_modules/call-bound/test/index.js +0 -61
- package/claw/node_modules/call-bound/tsconfig.json +0 -10
- package/claw/node_modules/cipher-base/.eslintrc +0 -26
- package/claw/node_modules/cipher-base/.github/FUNDING.yml +0 -12
- package/claw/node_modules/cipher-base/CHANGELOG.md +0 -73
- package/claw/node_modules/cipher-base/LICENSE +0 -21
- package/claw/node_modules/cipher-base/README.md +0 -17
- package/claw/node_modules/cipher-base/index.js +0 -103
- package/claw/node_modules/cipher-base/package.json +0 -63
- package/claw/node_modules/cipher-base/test/index.js +0 -221
- package/claw/node_modules/core-util-is/LICENSE +0 -19
- package/claw/node_modules/core-util-is/README.md +0 -3
- package/claw/node_modules/core-util-is/lib/util.js +0 -107
- package/claw/node_modules/core-util-is/package.json +0 -38
- package/claw/node_modules/create-hash/.travis.yml +0 -17
- package/claw/node_modules/create-hash/LICENSE +0 -21
- package/claw/node_modules/create-hash/README.md +0 -19
- package/claw/node_modules/create-hash/browser.js +0 -30
- package/claw/node_modules/create-hash/index.js +0 -1
- package/claw/node_modules/create-hash/md5.js +0 -5
- package/claw/node_modules/create-hash/package.json +0 -39
- package/claw/node_modules/create-hash/test.js +0 -41
- package/claw/node_modules/create-hmac/LICENSE +0 -21
- package/claw/node_modules/create-hmac/README.md +0 -20
- package/claw/node_modules/create-hmac/browser.js +0 -62
- package/claw/node_modules/create-hmac/index.js +0 -1
- package/claw/node_modules/create-hmac/legacy.js +0 -46
- package/claw/node_modules/create-hmac/package.json +0 -45
- package/claw/node_modules/crypto-js/CONTRIBUTING.md +0 -28
- package/claw/node_modules/crypto-js/LICENSE +0 -24
- package/claw/node_modules/crypto-js/README.md +0 -241
- package/claw/node_modules/crypto-js/aes.js +0 -232
- package/claw/node_modules/crypto-js/bower.json +0 -35
- package/claw/node_modules/crypto-js/cipher-core.js +0 -880
- package/claw/node_modules/crypto-js/core.js +0 -760
- package/claw/node_modules/crypto-js/crypto-js.js +0 -5988
- package/claw/node_modules/crypto-js/docs/QuickStartGuide.wiki +0 -470
- package/claw/node_modules/crypto-js/enc-base64.js +0 -135
- package/claw/node_modules/crypto-js/enc-hex.js +0 -18
- package/claw/node_modules/crypto-js/enc-latin1.js +0 -18
- package/claw/node_modules/crypto-js/enc-utf16.js +0 -149
- package/claw/node_modules/crypto-js/enc-utf8.js +0 -18
- package/claw/node_modules/crypto-js/evpkdf.js +0 -132
- package/claw/node_modules/crypto-js/format-hex.js +0 -66
- package/claw/node_modules/crypto-js/format-openssl.js +0 -18
- package/claw/node_modules/crypto-js/hmac-md5.js +0 -18
- package/claw/node_modules/crypto-js/hmac-ripemd160.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha1.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha224.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha256.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha3.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha384.js +0 -18
- package/claw/node_modules/crypto-js/hmac-sha512.js +0 -18
- package/claw/node_modules/crypto-js/hmac.js +0 -143
- package/claw/node_modules/crypto-js/index.js +0 -18
- package/claw/node_modules/crypto-js/lib-typedarrays.js +0 -76
- package/claw/node_modules/crypto-js/md5.js +0 -268
- package/claw/node_modules/crypto-js/mode-cfb.js +0 -78
- package/claw/node_modules/crypto-js/mode-ctr-gladman.js +0 -116
- package/claw/node_modules/crypto-js/mode-ctr.js +0 -58
- package/claw/node_modules/crypto-js/mode-ecb.js +0 -40
- package/claw/node_modules/crypto-js/mode-ofb.js +0 -54
- package/claw/node_modules/crypto-js/package.json +0 -38
- package/claw/node_modules/crypto-js/pad-ansix923.js +0 -49
- package/claw/node_modules/crypto-js/pad-iso10126.js +0 -44
- package/claw/node_modules/crypto-js/pad-iso97971.js +0 -40
- package/claw/node_modules/crypto-js/pad-nopadding.js +0 -30
- package/claw/node_modules/crypto-js/pad-pkcs7.js +0 -18
- package/claw/node_modules/crypto-js/pad-zeropadding.js +0 -45
- package/claw/node_modules/crypto-js/pbkdf2.js +0 -145
- package/claw/node_modules/crypto-js/rabbit-legacy.js +0 -190
- package/claw/node_modules/crypto-js/rabbit.js +0 -192
- package/claw/node_modules/crypto-js/rc4.js +0 -139
- package/claw/node_modules/crypto-js/ripemd160.js +0 -267
- package/claw/node_modules/crypto-js/sha1.js +0 -150
- package/claw/node_modules/crypto-js/sha224.js +0 -80
- package/claw/node_modules/crypto-js/sha256.js +0 -199
- package/claw/node_modules/crypto-js/sha3.js +0 -323
- package/claw/node_modules/crypto-js/sha384.js +0 -83
- package/claw/node_modules/crypto-js/sha512.js +0 -323
- package/claw/node_modules/crypto-js/tripledes.js +0 -770
- package/claw/node_modules/crypto-js/x64-core.js +0 -304
- package/claw/node_modules/deep-equal/.editorconfig +0 -20
- package/claw/node_modules/deep-equal/.eslintrc +0 -28
- package/claw/node_modules/deep-equal/.nycrc +0 -17
- package/claw/node_modules/deep-equal/.travis.yml +0 -12
- package/claw/node_modules/deep-equal/CHANGELOG.md +0 -320
- package/claw/node_modules/deep-equal/LICENSE +0 -21
- package/claw/node_modules/deep-equal/assert.js +0 -3
- package/claw/node_modules/deep-equal/example/cmp.js +0 -11
- package/claw/node_modules/deep-equal/index.js +0 -112
- package/claw/node_modules/deep-equal/lib/is_arguments.js +0 -1
- package/claw/node_modules/deep-equal/lib/keys.js +0 -1
- package/claw/node_modules/deep-equal/package.json +0 -109
- package/claw/node_modules/deep-equal/readme.markdown +0 -73
- package/claw/node_modules/deep-equal/test/_tape.js +0 -42
- package/claw/node_modules/deep-equal/test/cmp.js +0 -1343
- package/claw/node_modules/define-data-property/.eslintrc +0 -24
- package/claw/node_modules/define-data-property/.github/FUNDING.yml +0 -12
- package/claw/node_modules/define-data-property/.nycrc +0 -13
- package/claw/node_modules/define-data-property/CHANGELOG.md +0 -70
- package/claw/node_modules/define-data-property/LICENSE +0 -21
- package/claw/node_modules/define-data-property/README.md +0 -67
- package/claw/node_modules/define-data-property/index.d.ts +0 -12
- package/claw/node_modules/define-data-property/index.js +0 -56
- package/claw/node_modules/define-data-property/package.json +0 -106
- package/claw/node_modules/define-data-property/test/index.js +0 -392
- package/claw/node_modules/define-data-property/tsconfig.json +0 -59
- package/claw/node_modules/define-properties/.editorconfig +0 -13
- package/claw/node_modules/define-properties/.eslintrc +0 -19
- package/claw/node_modules/define-properties/.github/FUNDING.yml +0 -12
- package/claw/node_modules/define-properties/.nycrc +0 -9
- package/claw/node_modules/define-properties/CHANGELOG.md +0 -91
- package/claw/node_modules/define-properties/LICENSE +0 -21
- package/claw/node_modules/define-properties/README.md +0 -84
- package/claw/node_modules/define-properties/index.js +0 -47
- package/claw/node_modules/define-properties/package.json +0 -88
- package/claw/node_modules/dunder-proto/.eslintrc +0 -5
- package/claw/node_modules/dunder-proto/.github/FUNDING.yml +0 -12
- package/claw/node_modules/dunder-proto/.nycrc +0 -13
- package/claw/node_modules/dunder-proto/CHANGELOG.md +0 -24
- package/claw/node_modules/dunder-proto/LICENSE +0 -21
- package/claw/node_modules/dunder-proto/README.md +0 -54
- package/claw/node_modules/dunder-proto/get.d.ts +0 -5
- package/claw/node_modules/dunder-proto/get.js +0 -30
- package/claw/node_modules/dunder-proto/package.json +0 -76
- package/claw/node_modules/dunder-proto/set.d.ts +0 -5
- package/claw/node_modules/dunder-proto/set.js +0 -35
- package/claw/node_modules/dunder-proto/test/get.js +0 -34
- package/claw/node_modules/dunder-proto/test/index.js +0 -4
- package/claw/node_modules/dunder-proto/test/set.js +0 -50
- package/claw/node_modules/dunder-proto/tsconfig.json +0 -9
- package/claw/node_modules/ecurve/.min-wd +0 -7
- package/claw/node_modules/ecurve/.travis.yml +0 -14
- package/claw/node_modules/ecurve/CHANGELOG.md +0 -154
- package/claw/node_modules/ecurve/README.md +0 -11
- package/claw/node_modules/ecurve/lib/curve.js +0 -77
- package/claw/node_modules/ecurve/lib/curves.json +0 -65
- package/claw/node_modules/ecurve/lib/index.js +0 -10
- package/claw/node_modules/ecurve/lib/names.js +0 -21
- package/claw/node_modules/ecurve/lib/point.js +0 -244
- package/claw/node_modules/ecurve/package.json +0 -32
- package/claw/node_modules/es-define-property/.eslintrc +0 -13
- package/claw/node_modules/es-define-property/.github/FUNDING.yml +0 -12
- package/claw/node_modules/es-define-property/.nycrc +0 -9
- package/claw/node_modules/es-define-property/CHANGELOG.md +0 -29
- package/claw/node_modules/es-define-property/LICENSE +0 -21
- package/claw/node_modules/es-define-property/README.md +0 -49
- package/claw/node_modules/es-define-property/index.d.ts +0 -3
- package/claw/node_modules/es-define-property/index.js +0 -14
- package/claw/node_modules/es-define-property/package.json +0 -81
- package/claw/node_modules/es-define-property/test/index.js +0 -56
- package/claw/node_modules/es-define-property/tsconfig.json +0 -10
- package/claw/node_modules/es-errors/.eslintrc +0 -5
- package/claw/node_modules/es-errors/.github/FUNDING.yml +0 -12
- package/claw/node_modules/es-errors/CHANGELOG.md +0 -40
- package/claw/node_modules/es-errors/LICENSE +0 -21
- package/claw/node_modules/es-errors/README.md +0 -55
- package/claw/node_modules/es-errors/eval.d.ts +0 -3
- package/claw/node_modules/es-errors/eval.js +0 -4
- package/claw/node_modules/es-errors/index.d.ts +0 -3
- package/claw/node_modules/es-errors/index.js +0 -4
- package/claw/node_modules/es-errors/package.json +0 -80
- package/claw/node_modules/es-errors/range.d.ts +0 -3
- package/claw/node_modules/es-errors/range.js +0 -4
- package/claw/node_modules/es-errors/ref.d.ts +0 -3
- package/claw/node_modules/es-errors/ref.js +0 -4
- package/claw/node_modules/es-errors/syntax.d.ts +0 -3
- package/claw/node_modules/es-errors/syntax.js +0 -4
- package/claw/node_modules/es-errors/test/index.js +0 -19
- package/claw/node_modules/es-errors/tsconfig.json +0 -49
- package/claw/node_modules/es-errors/type.d.ts +0 -3
- package/claw/node_modules/es-errors/type.js +0 -4
- package/claw/node_modules/es-errors/uri.d.ts +0 -3
- package/claw/node_modules/es-errors/uri.js +0 -4
- package/claw/node_modules/es-object-atoms/.eslintrc +0 -16
- package/claw/node_modules/es-object-atoms/.github/FUNDING.yml +0 -12
- package/claw/node_modules/es-object-atoms/CHANGELOG.md +0 -37
- package/claw/node_modules/es-object-atoms/LICENSE +0 -21
- package/claw/node_modules/es-object-atoms/README.md +0 -63
- package/claw/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +0 -3
- package/claw/node_modules/es-object-atoms/RequireObjectCoercible.js +0 -11
- package/claw/node_modules/es-object-atoms/ToObject.d.ts +0 -7
- package/claw/node_modules/es-object-atoms/ToObject.js +0 -10
- package/claw/node_modules/es-object-atoms/index.d.ts +0 -3
- package/claw/node_modules/es-object-atoms/index.js +0 -4
- package/claw/node_modules/es-object-atoms/isObject.d.ts +0 -3
- package/claw/node_modules/es-object-atoms/isObject.js +0 -6
- package/claw/node_modules/es-object-atoms/package.json +0 -80
- package/claw/node_modules/es-object-atoms/test/index.js +0 -38
- package/claw/node_modules/es-object-atoms/tsconfig.json +0 -6
- package/claw/node_modules/for-each/.editorconfig +0 -20
- package/claw/node_modules/for-each/.eslintrc +0 -30
- package/claw/node_modules/for-each/.github/FUNDING.yml +0 -12
- package/claw/node_modules/for-each/.github/SECURITY.md +0 -3
- package/claw/node_modules/for-each/.nycrc +0 -8
- package/claw/node_modules/for-each/CHANGELOG.md +0 -107
- package/claw/node_modules/for-each/LICENSE +0 -22
- package/claw/node_modules/for-each/README.md +0 -39
- package/claw/node_modules/for-each/index.d.ts +0 -35
- package/claw/node_modules/for-each/index.js +0 -69
- package/claw/node_modules/for-each/package.json +0 -76
- package/claw/node_modules/for-each/test/test.js +0 -224
- package/claw/node_modules/for-each/tsconfig.json +0 -8
- package/claw/node_modules/function-bind/.eslintrc +0 -21
- package/claw/node_modules/function-bind/.github/FUNDING.yml +0 -12
- package/claw/node_modules/function-bind/.github/SECURITY.md +0 -3
- package/claw/node_modules/function-bind/.nycrc +0 -13
- package/claw/node_modules/function-bind/CHANGELOG.md +0 -136
- package/claw/node_modules/function-bind/LICENSE +0 -20
- package/claw/node_modules/function-bind/README.md +0 -46
- package/claw/node_modules/function-bind/implementation.js +0 -84
- package/claw/node_modules/function-bind/index.js +0 -5
- package/claw/node_modules/function-bind/package.json +0 -87
- package/claw/node_modules/function-bind/test/.eslintrc +0 -9
- package/claw/node_modules/function-bind/test/index.js +0 -252
- package/claw/node_modules/functions-have-names/.editorconfig +0 -20
- package/claw/node_modules/functions-have-names/.eslintrc +0 -19
- package/claw/node_modules/functions-have-names/.github/FUNDING.yml +0 -12
- package/claw/node_modules/functions-have-names/.nycrc +0 -9
- package/claw/node_modules/functions-have-names/CHANGELOG.md +0 -89
- package/claw/node_modules/functions-have-names/LICENSE +0 -21
- package/claw/node_modules/functions-have-names/README.md +0 -40
- package/claw/node_modules/functions-have-names/index.js +0 -31
- package/claw/node_modules/functions-have-names/package.json +0 -55
- package/claw/node_modules/functions-have-names/test/index.js +0 -65
- package/claw/node_modules/get-intrinsic/.eslintrc +0 -42
- package/claw/node_modules/get-intrinsic/.github/FUNDING.yml +0 -12
- package/claw/node_modules/get-intrinsic/.nycrc +0 -9
- package/claw/node_modules/get-intrinsic/CHANGELOG.md +0 -186
- package/claw/node_modules/get-intrinsic/LICENSE +0 -21
- package/claw/node_modules/get-intrinsic/README.md +0 -71
- package/claw/node_modules/get-intrinsic/index.js +0 -378
- package/claw/node_modules/get-intrinsic/package.json +0 -97
- package/claw/node_modules/get-intrinsic/test/GetIntrinsic.js +0 -274
- package/claw/node_modules/get-proto/.eslintrc +0 -10
- package/claw/node_modules/get-proto/.github/FUNDING.yml +0 -12
- package/claw/node_modules/get-proto/.nycrc +0 -9
- package/claw/node_modules/get-proto/CHANGELOG.md +0 -21
- package/claw/node_modules/get-proto/LICENSE +0 -21
- package/claw/node_modules/get-proto/Object.getPrototypeOf.d.ts +0 -5
- package/claw/node_modules/get-proto/Object.getPrototypeOf.js +0 -6
- package/claw/node_modules/get-proto/README.md +0 -50
- package/claw/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +0 -3
- package/claw/node_modules/get-proto/Reflect.getPrototypeOf.js +0 -4
- package/claw/node_modules/get-proto/index.d.ts +0 -5
- package/claw/node_modules/get-proto/index.js +0 -27
- package/claw/node_modules/get-proto/package.json +0 -81
- package/claw/node_modules/get-proto/test/index.js +0 -68
- package/claw/node_modules/get-proto/tsconfig.json +0 -9
- package/claw/node_modules/gopd/.eslintrc +0 -16
- package/claw/node_modules/gopd/.github/FUNDING.yml +0 -12
- package/claw/node_modules/gopd/CHANGELOG.md +0 -45
- package/claw/node_modules/gopd/LICENSE +0 -21
- package/claw/node_modules/gopd/README.md +0 -40
- package/claw/node_modules/gopd/gOPD.d.ts +0 -1
- package/claw/node_modules/gopd/gOPD.js +0 -4
- package/claw/node_modules/gopd/index.d.ts +0 -5
- package/claw/node_modules/gopd/index.js +0 -15
- package/claw/node_modules/gopd/package.json +0 -77
- package/claw/node_modules/gopd/test/index.js +0 -36
- package/claw/node_modules/gopd/tsconfig.json +0 -9
- package/claw/node_modules/has-property-descriptors/.eslintrc +0 -13
- package/claw/node_modules/has-property-descriptors/.github/FUNDING.yml +0 -12
- package/claw/node_modules/has-property-descriptors/.nycrc +0 -9
- package/claw/node_modules/has-property-descriptors/CHANGELOG.md +0 -35
- package/claw/node_modules/has-property-descriptors/LICENSE +0 -21
- package/claw/node_modules/has-property-descriptors/README.md +0 -43
- package/claw/node_modules/has-property-descriptors/index.js +0 -22
- package/claw/node_modules/has-property-descriptors/package.json +0 -77
- package/claw/node_modules/has-property-descriptors/test/index.js +0 -57
- package/claw/node_modules/has-symbols/.eslintrc +0 -11
- package/claw/node_modules/has-symbols/.github/FUNDING.yml +0 -12
- package/claw/node_modules/has-symbols/.nycrc +0 -9
- package/claw/node_modules/has-symbols/CHANGELOG.md +0 -91
- package/claw/node_modules/has-symbols/LICENSE +0 -21
- package/claw/node_modules/has-symbols/README.md +0 -46
- package/claw/node_modules/has-symbols/index.d.ts +0 -3
- package/claw/node_modules/has-symbols/index.js +0 -14
- package/claw/node_modules/has-symbols/package.json +0 -111
- package/claw/node_modules/has-symbols/shams.d.ts +0 -3
- package/claw/node_modules/has-symbols/shams.js +0 -45
- package/claw/node_modules/has-symbols/test/index.js +0 -22
- package/claw/node_modules/has-symbols/test/shams/core-js.js +0 -29
- package/claw/node_modules/has-symbols/test/shams/get-own-property-symbols.js +0 -29
- package/claw/node_modules/has-symbols/test/tests.js +0 -58
- package/claw/node_modules/has-symbols/tsconfig.json +0 -10
- package/claw/node_modules/has-tostringtag/.eslintrc +0 -5
- package/claw/node_modules/has-tostringtag/.github/FUNDING.yml +0 -12
- package/claw/node_modules/has-tostringtag/.nycrc +0 -13
- package/claw/node_modules/has-tostringtag/CHANGELOG.md +0 -42
- package/claw/node_modules/has-tostringtag/LICENSE +0 -21
- package/claw/node_modules/has-tostringtag/README.md +0 -46
- package/claw/node_modules/has-tostringtag/index.d.ts +0 -3
- package/claw/node_modules/has-tostringtag/index.js +0 -8
- package/claw/node_modules/has-tostringtag/package.json +0 -108
- package/claw/node_modules/has-tostringtag/shams.d.ts +0 -3
- package/claw/node_modules/has-tostringtag/shams.js +0 -8
- package/claw/node_modules/has-tostringtag/test/index.js +0 -21
- package/claw/node_modules/has-tostringtag/test/shams/core-js.js +0 -31
- package/claw/node_modules/has-tostringtag/test/shams/get-own-property-symbols.js +0 -30
- package/claw/node_modules/has-tostringtag/test/tests.js +0 -15
- package/claw/node_modules/has-tostringtag/tsconfig.json +0 -49
- package/claw/node_modules/hash-base/.github/FUNDING.yml +0 -12
- package/claw/node_modules/hash-base/CHANGELOG.md +0 -166
- package/claw/node_modules/hash-base/LICENSE +0 -21
- package/claw/node_modules/hash-base/README.md +0 -48
- package/claw/node_modules/hash-base/index.js +0 -109
- package/claw/node_modules/hash-base/package.json +0 -64
- package/claw/node_modules/hash-base/to-buffer.js +0 -20
- package/claw/node_modules/hasown/.eslintrc +0 -5
- package/claw/node_modules/hasown/.github/FUNDING.yml +0 -12
- package/claw/node_modules/hasown/.nycrc +0 -13
- package/claw/node_modules/hasown/CHANGELOG.md +0 -40
- package/claw/node_modules/hasown/LICENSE +0 -21
- package/claw/node_modules/hasown/README.md +0 -40
- package/claw/node_modules/hasown/index.d.ts +0 -3
- package/claw/node_modules/hasown/index.js +0 -8
- package/claw/node_modules/hasown/package.json +0 -92
- package/claw/node_modules/hasown/tsconfig.json +0 -6
- package/claw/node_modules/inherits/LICENSE +0 -16
- package/claw/node_modules/inherits/README.md +0 -42
- package/claw/node_modules/inherits/inherits.js +0 -9
- package/claw/node_modules/inherits/inherits_browser.js +0 -27
- package/claw/node_modules/inherits/package.json +0 -29
- package/claw/node_modules/is-arguments/.editorconfig +0 -20
- package/claw/node_modules/is-arguments/.eslintrc +0 -9
- package/claw/node_modules/is-arguments/.github/FUNDING.yml +0 -12
- package/claw/node_modules/is-arguments/.nycrc +0 -9
- package/claw/node_modules/is-arguments/CHANGELOG.md +0 -201
- package/claw/node_modules/is-arguments/LICENSE +0 -20
- package/claw/node_modules/is-arguments/README.md +0 -47
- package/claw/node_modules/is-arguments/index.d.ts +0 -6
- package/claw/node_modules/is-arguments/index.js +0 -44
- package/claw/node_modules/is-arguments/package.json +0 -105
- package/claw/node_modules/is-arguments/test/index.js +0 -47
- package/claw/node_modules/is-arguments/tsconfig.json +0 -9
- package/claw/node_modules/is-callable/.editorconfig +0 -31
- package/claw/node_modules/is-callable/.eslintrc +0 -10
- package/claw/node_modules/is-callable/.github/FUNDING.yml +0 -12
- package/claw/node_modules/is-callable/.nycrc +0 -9
- package/claw/node_modules/is-callable/CHANGELOG.md +0 -158
- package/claw/node_modules/is-callable/LICENSE +0 -22
- package/claw/node_modules/is-callable/README.md +0 -83
- package/claw/node_modules/is-callable/index.js +0 -101
- package/claw/node_modules/is-callable/package.json +0 -106
- package/claw/node_modules/is-callable/test/index.js +0 -244
- package/claw/node_modules/is-date-object/.editorconfig +0 -20
- package/claw/node_modules/is-date-object/.eslintrc +0 -9
- package/claw/node_modules/is-date-object/.github/FUNDING.yml +0 -12
- package/claw/node_modules/is-date-object/.nycrc +0 -10
- package/claw/node_modules/is-date-object/CHANGELOG.md +0 -134
- package/claw/node_modules/is-date-object/LICENSE +0 -22
- package/claw/node_modules/is-date-object/README.md +0 -52
- package/claw/node_modules/is-date-object/index.d.ts +0 -3
- package/claw/node_modules/is-date-object/index.js +0 -27
- package/claw/node_modules/is-date-object/package.json +0 -99
- package/claw/node_modules/is-date-object/test/index.js +0 -38
- package/claw/node_modules/is-date-object/tsconfig.json +0 -6
- package/claw/node_modules/is-regex/.editorconfig +0 -23
- package/claw/node_modules/is-regex/.eslintrc +0 -10
- package/claw/node_modules/is-regex/.nycrc +0 -10
- package/claw/node_modules/is-regex/CHANGELOG.md +0 -233
- package/claw/node_modules/is-regex/LICENSE +0 -20
- package/claw/node_modules/is-regex/README.md +0 -52
- package/claw/node_modules/is-regex/index.d.ts +0 -3
- package/claw/node_modules/is-regex/index.js +0 -69
- package/claw/node_modules/is-regex/package.json +0 -104
- package/claw/node_modules/is-regex/test/index.js +0 -121
- package/claw/node_modules/is-regex/tsconfig.json +0 -9
- package/claw/node_modules/is-typed-array/.editorconfig +0 -20
- package/claw/node_modules/is-typed-array/.eslintrc +0 -13
- package/claw/node_modules/is-typed-array/.github/FUNDING.yml +0 -12
- package/claw/node_modules/is-typed-array/.nycrc +0 -9
- package/claw/node_modules/is-typed-array/CHANGELOG.md +0 -166
- package/claw/node_modules/is-typed-array/LICENSE +0 -22
- package/claw/node_modules/is-typed-array/README.md +0 -70
- package/claw/node_modules/is-typed-array/index.d.ts +0 -9
- package/claw/node_modules/is-typed-array/index.js +0 -8
- package/claw/node_modules/is-typed-array/package.json +0 -129
- package/claw/node_modules/is-typed-array/test/index.js +0 -111
- package/claw/node_modules/is-typed-array/tsconfig.json +0 -6
- package/claw/node_modules/isarray/.travis.yml +0 -4
- package/claw/node_modules/isarray/Makefile +0 -6
- package/claw/node_modules/isarray/README.md +0 -60
- package/claw/node_modules/isarray/component.json +0 -19
- package/claw/node_modules/isarray/index.js +0 -5
- package/claw/node_modules/isarray/package.json +0 -45
- package/claw/node_modules/isarray/test.js +0 -20
- package/claw/node_modules/isomorphic-ws/LICENSE +0 -21
- package/claw/node_modules/isomorphic-ws/README.md +0 -58
- package/claw/node_modules/isomorphic-ws/browser.js +0 -17
- package/claw/node_modules/isomorphic-ws/index.d.ts +0 -8
- package/claw/node_modules/isomorphic-ws/node.js +0 -3
- package/claw/node_modules/isomorphic-ws/package.json +0 -34
- package/claw/node_modules/long/.travis.yml +0 -5
- package/claw/node_modules/long/LICENSE +0 -202
- package/claw/node_modules/long/README.md +0 -513
- package/claw/node_modules/long/bower.json +0 -9
- package/claw/node_modules/long/dist/README.md +0 -16
- package/claw/node_modules/long/dist/long.js +0 -1209
- package/claw/node_modules/long/dist/long.min.js +0 -20
- package/claw/node_modules/long/dist/long.min.js.gz +0 -0
- package/claw/node_modules/long/dist/long.min.map +0 -8
- package/claw/node_modules/long/doco/INDEX.md +0 -6
- package/claw/node_modules/long/doco/Long.md +0 -473
- package/claw/node_modules/long/donate.png +0 -0
- package/claw/node_modules/long/externs/long.js +0 -416
- package/claw/node_modules/long/index.js +0 -1
- package/claw/node_modules/long/jsdoc.json +0 -13
- package/claw/node_modules/long/long.png +0 -0
- package/claw/node_modules/long/package.json +0 -33
- package/claw/node_modules/long/scripts/build.js +0 -28
- package/claw/node_modules/long/src/bower.json +0 -9
- package/claw/node_modules/long/src/long.js +0 -1172
- package/claw/node_modules/long/src/wrap.js +0 -38
- package/claw/node_modules/long/tests/goog.math.long.js +0 -807
- package/claw/node_modules/long/tests/suite.js +0 -195
- package/claw/node_modules/lzma/.travis.yml +0 -9
- package/claw/node_modules/lzma/LICENSE +0 -20
- package/claw/node_modules/lzma/THANKS +0 -7
- package/claw/node_modules/lzma/bin/lzma.js +0 -362
- package/claw/node_modules/lzma/index.js +0 -19
- package/claw/node_modules/lzma/package.json +0 -30
- package/claw/node_modules/lzma/readme.md +0 -149
- package/claw/node_modules/lzma/src/lzma-c-min.js +0 -1
- package/claw/node_modules/lzma/src/lzma-c.js +0 -2021
- package/claw/node_modules/lzma/src/lzma-d-min.js +0 -1
- package/claw/node_modules/lzma/src/lzma-d.js +0 -878
- package/claw/node_modules/lzma/src/lzma-min.js +0 -2
- package/claw/node_modules/lzma/src/lzma.js +0 -153
- package/claw/node_modules/lzma/src/lzma_worker-min.js +0 -2
- package/claw/node_modules/lzma/src/lzma_worker.js +0 -2668
- package/claw/node_modules/math-intrinsics/.eslintrc +0 -16
- package/claw/node_modules/math-intrinsics/.github/FUNDING.yml +0 -12
- package/claw/node_modules/math-intrinsics/CHANGELOG.md +0 -24
- package/claw/node_modules/math-intrinsics/LICENSE +0 -21
- package/claw/node_modules/math-intrinsics/README.md +0 -50
- package/claw/node_modules/math-intrinsics/abs.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/abs.js +0 -4
- package/claw/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/constants/maxArrayLength.js +0 -4
- package/claw/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/constants/maxSafeInteger.js +0 -5
- package/claw/node_modules/math-intrinsics/constants/maxValue.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/constants/maxValue.js +0 -5
- package/claw/node_modules/math-intrinsics/floor.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/floor.js +0 -4
- package/claw/node_modules/math-intrinsics/isFinite.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/isFinite.js +0 -12
- package/claw/node_modules/math-intrinsics/isInteger.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/isInteger.js +0 -16
- package/claw/node_modules/math-intrinsics/isNaN.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/isNaN.js +0 -6
- package/claw/node_modules/math-intrinsics/isNegativeZero.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/isNegativeZero.js +0 -6
- package/claw/node_modules/math-intrinsics/max.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/max.js +0 -4
- package/claw/node_modules/math-intrinsics/min.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/min.js +0 -4
- package/claw/node_modules/math-intrinsics/mod.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/mod.js +0 -9
- package/claw/node_modules/math-intrinsics/package.json +0 -86
- package/claw/node_modules/math-intrinsics/pow.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/pow.js +0 -4
- package/claw/node_modules/math-intrinsics/round.d.ts +0 -1
- package/claw/node_modules/math-intrinsics/round.js +0 -4
- package/claw/node_modules/math-intrinsics/sign.d.ts +0 -3
- package/claw/node_modules/math-intrinsics/sign.js +0 -11
- package/claw/node_modules/math-intrinsics/test/index.js +0 -192
- package/claw/node_modules/math-intrinsics/tsconfig.json +0 -3
- package/claw/node_modules/md5.js/LICENSE +0 -21
- package/claw/node_modules/md5.js/README.md +0 -29
- package/claw/node_modules/md5.js/index.js +0 -146
- package/claw/node_modules/md5.js/package.json +0 -38
- package/claw/node_modules/object-is/.eslintrc +0 -5
- package/claw/node_modules/object-is/.nycrc +0 -9
- package/claw/node_modules/object-is/CHANGELOG.md +0 -175
- package/claw/node_modules/object-is/LICENSE +0 -20
- package/claw/node_modules/object-is/README.md +0 -60
- package/claw/node_modules/object-is/auto.js +0 -3
- package/claw/node_modules/object-is/implementation.js +0 -19
- package/claw/node_modules/object-is/index.js +0 -18
- package/claw/node_modules/object-is/package.json +0 -96
- package/claw/node_modules/object-is/polyfill.js +0 -7
- package/claw/node_modules/object-is/shim.js +0 -14
- package/claw/node_modules/object-is/test/implementation.js +0 -12
- package/claw/node_modules/object-is/test/index.js +0 -12
- package/claw/node_modules/object-is/test/shimmed.js +0 -28
- package/claw/node_modules/object-is/test/tests.js +0 -57
- package/claw/node_modules/object-keys/.editorconfig +0 -13
- package/claw/node_modules/object-keys/.eslintrc +0 -17
- package/claw/node_modules/object-keys/.travis.yml +0 -277
- package/claw/node_modules/object-keys/CHANGELOG.md +0 -232
- package/claw/node_modules/object-keys/LICENSE +0 -21
- package/claw/node_modules/object-keys/README.md +0 -76
- package/claw/node_modules/object-keys/implementation.js +0 -122
- package/claw/node_modules/object-keys/index.js +0 -32
- package/claw/node_modules/object-keys/isArguments.js +0 -17
- package/claw/node_modules/object-keys/package.json +0 -88
- package/claw/node_modules/object-keys/test/index.js +0 -5
- package/claw/node_modules/object.assign/.editorconfig +0 -20
- package/claw/node_modules/object.assign/.eslintrc +0 -28
- package/claw/node_modules/object.assign/.github/FUNDING.yml +0 -12
- package/claw/node_modules/object.assign/.nycrc +0 -9
- package/claw/node_modules/object.assign/CHANGELOG.md +0 -246
- package/claw/node_modules/object.assign/LICENSE +0 -21
- package/claw/node_modules/object.assign/README.md +0 -136
- package/claw/node_modules/object.assign/auto.js +0 -3
- package/claw/node_modules/object.assign/dist/browser.js +0 -1304
- package/claw/node_modules/object.assign/hasSymbols.js +0 -43
- package/claw/node_modules/object.assign/implementation.js +0 -46
- package/claw/node_modules/object.assign/index.js +0 -22
- package/claw/node_modules/object.assign/package.json +0 -96
- package/claw/node_modules/object.assign/polyfill.js +0 -55
- package/claw/node_modules/object.assign/shim.js +0 -14
- package/claw/node_modules/object.assign/test/implementation.js +0 -19
- package/claw/node_modules/object.assign/test/index.js +0 -17
- package/claw/node_modules/object.assign/test/native.js +0 -49
- package/claw/node_modules/object.assign/test/ses-compat.js +0 -12
- package/claw/node_modules/object.assign/test/shimmed.js +0 -52
- package/claw/node_modules/object.assign/test/tests.js +0 -232
- package/claw/node_modules/possible-typed-array-names/.eslintrc +0 -5
- package/claw/node_modules/possible-typed-array-names/.github/FUNDING.yml +0 -12
- package/claw/node_modules/possible-typed-array-names/CHANGELOG.md +0 -29
- package/claw/node_modules/possible-typed-array-names/LICENSE +0 -21
- package/claw/node_modules/possible-typed-array-names/README.md +0 -50
- package/claw/node_modules/possible-typed-array-names/index.d.ts +0 -16
- package/claw/node_modules/possible-typed-array-names/index.js +0 -17
- package/claw/node_modules/possible-typed-array-names/package.json +0 -84
- package/claw/node_modules/possible-typed-array-names/test/index.js +0 -19
- package/claw/node_modules/possible-typed-array-names/tsconfig.json +0 -9
- package/claw/node_modules/process-nextick-args/index.js +0 -45
- package/claw/node_modules/process-nextick-args/license.md +0 -19
- package/claw/node_modules/process-nextick-args/package.json +0 -25
- package/claw/node_modules/process-nextick-args/readme.md +0 -18
- package/claw/node_modules/readable-stream/.travis.yml +0 -34
- package/claw/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/claw/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/claw/node_modules/readable-stream/LICENSE +0 -47
- package/claw/node_modules/readable-stream/README.md +0 -58
- package/claw/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +0 -60
- package/claw/node_modules/readable-stream/duplex-browser.js +0 -1
- package/claw/node_modules/readable-stream/duplex.js +0 -1
- package/claw/node_modules/readable-stream/lib/_stream_duplex.js +0 -131
- package/claw/node_modules/readable-stream/lib/_stream_passthrough.js +0 -47
- package/claw/node_modules/readable-stream/lib/_stream_readable.js +0 -1019
- package/claw/node_modules/readable-stream/lib/_stream_transform.js +0 -214
- package/claw/node_modules/readable-stream/lib/_stream_writable.js +0 -685
- package/claw/node_modules/readable-stream/lib/internal/streams/BufferList.js +0 -78
- package/claw/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -84
- package/claw/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/claw/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/LICENSE +0 -21
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/README.md +0 -584
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/index.d.ts +0 -187
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/index.js +0 -62
- package/claw/node_modules/readable-stream/node_modules/safe-buffer/package.json +0 -37
- package/claw/node_modules/readable-stream/package.json +0 -52
- package/claw/node_modules/readable-stream/passthrough.js +0 -1
- package/claw/node_modules/readable-stream/readable-browser.js +0 -7
- package/claw/node_modules/readable-stream/readable.js +0 -19
- package/claw/node_modules/readable-stream/transform.js +0 -1
- package/claw/node_modules/readable-stream/writable-browser.js +0 -1
- package/claw/node_modules/readable-stream/writable.js +0 -8
- package/claw/node_modules/regexp.prototype.flags/.editorconfig +0 -13
- package/claw/node_modules/regexp.prototype.flags/.eslintrc +0 -20
- package/claw/node_modules/regexp.prototype.flags/.nycrc +0 -9
- package/claw/node_modules/regexp.prototype.flags/CHANGELOG.md +0 -249
- package/claw/node_modules/regexp.prototype.flags/LICENSE +0 -22
- package/claw/node_modules/regexp.prototype.flags/README.md +0 -55
- package/claw/node_modules/regexp.prototype.flags/auto.js +0 -3
- package/claw/node_modules/regexp.prototype.flags/implementation.js +0 -39
- package/claw/node_modules/regexp.prototype.flags/index.js +0 -18
- package/claw/node_modules/regexp.prototype.flags/package.json +0 -105
- package/claw/node_modules/regexp.prototype.flags/polyfill.js +0 -39
- package/claw/node_modules/regexp.prototype.flags/shim.js +0 -26
- package/claw/node_modules/regexp.prototype.flags/test/builtin.js +0 -46
- package/claw/node_modules/regexp.prototype.flags/test/implementation.js +0 -20
- package/claw/node_modules/regexp.prototype.flags/test/index.js +0 -17
- package/claw/node_modules/regexp.prototype.flags/test/shimmed.js +0 -48
- package/claw/node_modules/regexp.prototype.flags/test/tests.js +0 -143
- package/claw/node_modules/ripemd160/.github/FUNDING.yml +0 -12
- package/claw/node_modules/ripemd160/CHANGELOG.md +0 -109
- package/claw/node_modules/ripemd160/LICENSE +0 -21
- package/claw/node_modules/ripemd160/README.md +0 -27
- package/claw/node_modules/ripemd160/index.js +0 -167
- package/claw/node_modules/ripemd160/package.json +0 -64
- package/claw/node_modules/safe-buffer/LICENSE +0 -21
- package/claw/node_modules/safe-buffer/README.md +0 -584
- package/claw/node_modules/safe-buffer/index.d.ts +0 -187
- package/claw/node_modules/safe-buffer/index.js +0 -65
- package/claw/node_modules/safe-buffer/package.json +0 -51
- package/claw/node_modules/secure-random/CHANGELOG.md +0 -51
- package/claw/node_modules/secure-random/Makefile +0 -8
- package/claw/node_modules/secure-random/README.md +0 -133
- package/claw/node_modules/secure-random/lib/secure-random.js +0 -83
- package/claw/node_modules/secure-random/package.json +0 -45
- package/claw/node_modules/set-function-length/.eslintrc +0 -27
- package/claw/node_modules/set-function-length/.github/FUNDING.yml +0 -12
- package/claw/node_modules/set-function-length/.nycrc +0 -13
- package/claw/node_modules/set-function-length/CHANGELOG.md +0 -70
- package/claw/node_modules/set-function-length/LICENSE +0 -21
- package/claw/node_modules/set-function-length/README.md +0 -56
- package/claw/node_modules/set-function-length/env.d.ts +0 -9
- package/claw/node_modules/set-function-length/env.js +0 -25
- package/claw/node_modules/set-function-length/index.d.ts +0 -7
- package/claw/node_modules/set-function-length/index.js +0 -42
- package/claw/node_modules/set-function-length/package.json +0 -102
- package/claw/node_modules/set-function-length/tsconfig.json +0 -9
- package/claw/node_modules/set-function-name/.eslintrc +0 -21
- package/claw/node_modules/set-function-name/.github/FUNDING.yml +0 -12
- package/claw/node_modules/set-function-name/CHANGELOG.md +0 -48
- package/claw/node_modules/set-function-name/LICENSE +0 -21
- package/claw/node_modules/set-function-name/README.md +0 -61
- package/claw/node_modules/set-function-name/index.d.ts +0 -5
- package/claw/node_modules/set-function-name/index.js +0 -23
- package/claw/node_modules/set-function-name/package.json +0 -99
- package/claw/node_modules/set-function-name/tsconfig.json +0 -59
- package/claw/node_modules/sha.js/.eslintrc +0 -76
- package/claw/node_modules/sha.js/CHANGELOG.md +0 -423
- package/claw/node_modules/sha.js/LICENSE +0 -49
- package/claw/node_modules/sha.js/README.md +0 -44
- package/claw/node_modules/sha.js/bin.js +0 -44
- package/claw/node_modules/sha.js/hash.js +0 -84
- package/claw/node_modules/sha.js/index.js +0 -19
- package/claw/node_modules/sha.js/package.json +0 -58
- package/claw/node_modules/sha.js/sha.js +0 -104
- package/claw/node_modules/sha.js/sha1.js +0 -109
- package/claw/node_modules/sha.js/sha224.js +0 -55
- package/claw/node_modules/sha.js/sha256.js +0 -189
- package/claw/node_modules/sha.js/sha384.js +0 -59
- package/claw/node_modules/sha.js/sha512.js +0 -382
- package/claw/node_modules/sha.js/test/hash.js +0 -80
- package/claw/node_modules/sha.js/test/test.js +0 -138
- package/claw/node_modules/sha.js/test/vectors.js +0 -72
- package/claw/node_modules/string_decoder/.travis.yml +0 -50
- package/claw/node_modules/string_decoder/LICENSE +0 -48
- package/claw/node_modules/string_decoder/README.md +0 -47
- package/claw/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/LICENSE +0 -21
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/README.md +0 -584
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/index.d.ts +0 -187
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/index.js +0 -62
- package/claw/node_modules/string_decoder/node_modules/safe-buffer/package.json +0 -37
- package/claw/node_modules/string_decoder/package.json +0 -31
- package/claw/node_modules/to-buffer/.github/FUNDING.yml +0 -12
- package/claw/node_modules/to-buffer/CHANGELOG.md +0 -81
- package/claw/node_modules/to-buffer/LICENSE +0 -21
- package/claw/node_modules/to-buffer/README.md +0 -44
- package/claw/node_modules/to-buffer/index.js +0 -109
- package/claw/node_modules/to-buffer/node_modules/isarray/LICENSE +0 -21
- package/claw/node_modules/to-buffer/node_modules/isarray/README.md +0 -38
- package/claw/node_modules/to-buffer/node_modules/isarray/index.js +0 -5
- package/claw/node_modules/to-buffer/node_modules/isarray/package.json +0 -48
- package/claw/node_modules/to-buffer/package.json +0 -62
- package/claw/node_modules/typed-array-buffer/.eslintrc +0 -13
- package/claw/node_modules/typed-array-buffer/.github/FUNDING.yml +0 -12
- package/claw/node_modules/typed-array-buffer/.nycrc +0 -13
- package/claw/node_modules/typed-array-buffer/CHANGELOG.md +0 -50
- package/claw/node_modules/typed-array-buffer/LICENSE +0 -21
- package/claw/node_modules/typed-array-buffer/README.md +0 -42
- package/claw/node_modules/typed-array-buffer/index.d.ts +0 -9
- package/claw/node_modules/typed-array-buffer/index.js +0 -19
- package/claw/node_modules/typed-array-buffer/package.json +0 -82
- package/claw/node_modules/typed-array-buffer/test/index.js +0 -23
- package/claw/node_modules/typed-array-buffer/tsconfig.json +0 -9
- package/claw/node_modules/util/LICENSE +0 -18
- package/claw/node_modules/util/README.md +0 -15
- package/claw/node_modules/util/node_modules/inherits/LICENSE +0 -16
- package/claw/node_modules/util/node_modules/inherits/README.md +0 -42
- package/claw/node_modules/util/node_modules/inherits/inherits.js +0 -7
- package/claw/node_modules/util/node_modules/inherits/inherits_browser.js +0 -23
- package/claw/node_modules/util/node_modules/inherits/package.json +0 -29
- package/claw/node_modules/util/package.json +0 -35
- package/claw/node_modules/util/support/isBuffer.js +0 -3
- package/claw/node_modules/util/support/isBufferBrowser.js +0 -6
- package/claw/node_modules/util/util.js +0 -586
- package/claw/node_modules/util-deprecate/History.md +0 -16
- package/claw/node_modules/util-deprecate/LICENSE +0 -24
- package/claw/node_modules/util-deprecate/README.md +0 -53
- package/claw/node_modules/util-deprecate/browser.js +0 -67
- package/claw/node_modules/util-deprecate/node.js +0 -6
- package/claw/node_modules/util-deprecate/package.json +0 -27
- package/claw/node_modules/which-typed-array/.editorconfig +0 -20
- package/claw/node_modules/which-typed-array/.eslintrc +0 -10
- package/claw/node_modules/which-typed-array/.github/FUNDING.yml +0 -12
- package/claw/node_modules/which-typed-array/.nycrc +0 -13
- package/claw/node_modules/which-typed-array/CHANGELOG.md +0 -269
- package/claw/node_modules/which-typed-array/LICENSE +0 -22
- package/claw/node_modules/which-typed-array/README.md +0 -70
- package/claw/node_modules/which-typed-array/index.d.ts +0 -66
- package/claw/node_modules/which-typed-array/index.js +0 -122
- package/claw/node_modules/which-typed-array/package.json +0 -130
- package/claw/node_modules/which-typed-array/test/index.js +0 -105
- package/claw/node_modules/which-typed-array/tsconfig.json +0 -9
- package/claw/node_modules/ws/LICENSE +0 -21
- package/claw/node_modules/ws/README.md +0 -449
- package/claw/node_modules/ws/browser.js +0 -8
- package/claw/node_modules/ws/index.js +0 -9
- package/claw/node_modules/ws/lib/buffer-util.js +0 -144
- package/claw/node_modules/ws/lib/constants.js +0 -10
- package/claw/node_modules/ws/lib/event-target.js +0 -170
- package/claw/node_modules/ws/lib/extension.js +0 -222
- package/claw/node_modules/ws/lib/permessage-deflate.js +0 -502
- package/claw/node_modules/ws/lib/receiver.js +0 -492
- package/claw/node_modules/ws/lib/sender.js +0 -358
- package/claw/node_modules/ws/lib/validation.js +0 -30
- package/claw/node_modules/ws/lib/websocket-server.js +0 -415
- package/claw/node_modules/ws/lib/websocket.js +0 -895
- package/claw/node_modules/ws/package.json +0 -45
- package/dist/analysis/chart_utils.d.ts +0 -27
- package/dist/analysis/chart_utils.d.ts.map +0 -1
- package/dist/analysis/chart_utils.js.map +0 -1
- package/dist/analysis/math_utils.d.ts +0 -22
- package/dist/analysis/math_utils.d.ts.map +0 -1
- package/dist/analysis/math_utils.js +0 -43
- package/dist/analysis/math_utils.js.map +0 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts +0 -5
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.d.ts.map +0 -1
- package/dist/analysis/tradingview/tradingview_uplot_chart_generator.js.map +0 -1
- package/dist/modules/logger.d.ts +0 -4
- package/dist/modules/logger.d.ts.map +0 -1
- package/dist/modules/logger.js +0 -5
- package/dist/modules/logger.js.map +0 -1
- package/dist/modules/utils/math_utils.d.ts +0 -3
- package/dist/modules/utils/math_utils.d.ts.map +0 -1
- package/dist/modules/utils/math_utils.js +0 -3
- package/dist/modules/utils/math_utils.js.map +0 -1
|
@@ -1,2021 +0,0 @@
|
|
|
1
|
-
///NOTE: This file was generated by minify.js from lzma_worker.js. Do not modify.
|
|
2
|
-
|
|
3
|
-
/// © 2015 Nathan Rugg <nmrugg@gmail.com> | MIT
|
|
4
|
-
/// See LICENSE for more details.
|
|
5
|
-
|
|
6
|
-
/* jshint noarg:true, boss:true, unused:strict, strict:true, undef:true, noarg: true, forin:true, evil:true, newcap:false, -W041, -W021, worker:true, browser:true, node:true */
|
|
7
|
-
|
|
8
|
-
/* global setImmediate, setTimeout, window, onmessage */
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var LZMA = (function () {
|
|
13
|
-
|
|
14
|
-
"use strict";
|
|
15
|
-
|
|
16
|
-
var /** cs */
|
|
17
|
-
action_compress = 1,
|
|
18
|
-
/** ce */
|
|
19
|
-
|
|
20
|
-
action_progress = 3,
|
|
21
|
-
wait = typeof setImmediate == "function" ? setImmediate : setTimeout,
|
|
22
|
-
__4294967296 = 4294967296,
|
|
23
|
-
N1_longLit = [4294967295, -__4294967296],
|
|
24
|
-
/** cs */
|
|
25
|
-
MIN_VALUE = [0, -9223372036854775808],
|
|
26
|
-
/** ce */
|
|
27
|
-
P0_longLit = [0, 0],
|
|
28
|
-
P1_longLit = [1, 0];
|
|
29
|
-
|
|
30
|
-
function update_progress(percent, cbn) {
|
|
31
|
-
postMessage({
|
|
32
|
-
action: action_progress,
|
|
33
|
-
cbn: cbn,
|
|
34
|
-
result: percent
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function initDim(len) {
|
|
39
|
-
///NOTE: This is MUCH faster than "new Array(len)" in newer versions of v8 (starting with Node.js 0.11.15, which uses v8 3.28.73).
|
|
40
|
-
var a = [];
|
|
41
|
-
a[len - 1] = undefined;
|
|
42
|
-
return a;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function add(a, b) {
|
|
46
|
-
return create(a[0] + b[0], a[1] + b[1]);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/** cs */
|
|
50
|
-
function and(a, b) {
|
|
51
|
-
return makeFromBits(~~Math.max(Math.min(a[1] / __4294967296, 2147483647), -2147483648) & ~~Math.max(Math.min(b[1] / __4294967296, 2147483647), -2147483648), lowBits_0(a) & lowBits_0(b));
|
|
52
|
-
}
|
|
53
|
-
/** ce */
|
|
54
|
-
|
|
55
|
-
function compare(a, b) {
|
|
56
|
-
var nega, negb;
|
|
57
|
-
if (a[0] == b[0] && a[1] == b[1]) {
|
|
58
|
-
return 0;
|
|
59
|
-
}
|
|
60
|
-
nega = a[1] < 0;
|
|
61
|
-
negb = b[1] < 0;
|
|
62
|
-
if (nega && !negb) {
|
|
63
|
-
return -1;
|
|
64
|
-
}
|
|
65
|
-
if (!nega && negb) {
|
|
66
|
-
return 1;
|
|
67
|
-
}
|
|
68
|
-
if (sub(a, b)[1] < 0) {
|
|
69
|
-
return -1;
|
|
70
|
-
}
|
|
71
|
-
return 1;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function create(valueLow, valueHigh) {
|
|
75
|
-
var diffHigh, diffLow;
|
|
76
|
-
valueHigh %= 1.8446744073709552E19;
|
|
77
|
-
valueLow %= 1.8446744073709552E19;
|
|
78
|
-
diffHigh = valueHigh % __4294967296;
|
|
79
|
-
diffLow = Math.floor(valueLow / __4294967296) * __4294967296;
|
|
80
|
-
valueHigh = valueHigh - diffHigh + diffLow;
|
|
81
|
-
valueLow = valueLow - diffLow + diffHigh;
|
|
82
|
-
while (valueLow < 0) {
|
|
83
|
-
valueLow += __4294967296;
|
|
84
|
-
valueHigh -= __4294967296;
|
|
85
|
-
}
|
|
86
|
-
while (valueLow > 4294967295) {
|
|
87
|
-
valueLow -= __4294967296;
|
|
88
|
-
valueHigh += __4294967296;
|
|
89
|
-
}
|
|
90
|
-
valueHigh = valueHigh % 1.8446744073709552E19;
|
|
91
|
-
while (valueHigh > 9223372032559808512) {
|
|
92
|
-
valueHigh -= 1.8446744073709552E19;
|
|
93
|
-
}
|
|
94
|
-
while (valueHigh < -9223372036854775808) {
|
|
95
|
-
valueHigh += 1.8446744073709552E19;
|
|
96
|
-
}
|
|
97
|
-
return [valueLow, valueHigh];
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/** cs */
|
|
101
|
-
function eq(a, b) {
|
|
102
|
-
return a[0] == b[0] && a[1] == b[1];
|
|
103
|
-
}
|
|
104
|
-
/** ce */
|
|
105
|
-
function fromInt(value) {
|
|
106
|
-
if (value >= 0) {
|
|
107
|
-
return [value, 0];
|
|
108
|
-
} else {
|
|
109
|
-
return [value + __4294967296, -__4294967296];
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
function lowBits_0(a) {
|
|
114
|
-
if (a[0] >= 2147483648) {
|
|
115
|
-
return ~~Math.max(Math.min(a[0] - __4294967296, 2147483647), -2147483648);
|
|
116
|
-
} else {
|
|
117
|
-
return ~~Math.max(Math.min(a[0], 2147483647), -2147483648);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
/** cs */
|
|
121
|
-
function makeFromBits(highBits, lowBits) {
|
|
122
|
-
var high, low;
|
|
123
|
-
high = highBits * __4294967296;
|
|
124
|
-
low = lowBits;
|
|
125
|
-
if (lowBits < 0) {
|
|
126
|
-
low += __4294967296;
|
|
127
|
-
}
|
|
128
|
-
return [low, high];
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
function pwrAsDouble(n) {
|
|
132
|
-
if (n <= 30) {
|
|
133
|
-
return 1 << n;
|
|
134
|
-
} else {
|
|
135
|
-
return pwrAsDouble(30) * pwrAsDouble(n - 30);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
function shl(a, n) {
|
|
140
|
-
var diff, newHigh, newLow, twoToN;
|
|
141
|
-
n &= 63;
|
|
142
|
-
if (eq(a, MIN_VALUE)) {
|
|
143
|
-
if (!n) {
|
|
144
|
-
return a;
|
|
145
|
-
}
|
|
146
|
-
return P0_longLit;
|
|
147
|
-
}
|
|
148
|
-
if (a[1] < 0) {
|
|
149
|
-
throw new Error("Neg");
|
|
150
|
-
}
|
|
151
|
-
twoToN = pwrAsDouble(n);
|
|
152
|
-
newHigh = a[1] * twoToN % 1.8446744073709552E19;
|
|
153
|
-
newLow = a[0] * twoToN;
|
|
154
|
-
diff = newLow - newLow % __4294967296;
|
|
155
|
-
newHigh += diff;
|
|
156
|
-
newLow -= diff;
|
|
157
|
-
if (newHigh >= 9223372036854775807) {
|
|
158
|
-
newHigh -= 1.8446744073709552E19;
|
|
159
|
-
}
|
|
160
|
-
return [newLow, newHigh];
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
function shr(a, n) {
|
|
164
|
-
var shiftFact;
|
|
165
|
-
n &= 63;
|
|
166
|
-
shiftFact = pwrAsDouble(n);
|
|
167
|
-
return create(Math.floor(a[0] / shiftFact), a[1] / shiftFact);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
function shru(a, n) {
|
|
171
|
-
var sr;
|
|
172
|
-
n &= 63;
|
|
173
|
-
sr = shr(a, n);
|
|
174
|
-
if (a[1] < 0) {
|
|
175
|
-
sr = add(sr, shl([2, 0], 63 - n));
|
|
176
|
-
}
|
|
177
|
-
return sr;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
/** ce */
|
|
181
|
-
|
|
182
|
-
function sub(a, b) {
|
|
183
|
-
return create(a[0] - b[0], a[1] - b[1]);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
function $ByteArrayInputStream(this$static, buf) {
|
|
187
|
-
this$static.buf = buf;
|
|
188
|
-
this$static.pos = 0;
|
|
189
|
-
this$static.count = buf.length;
|
|
190
|
-
return this$static;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
/** cs */
|
|
195
|
-
function $read_0(this$static, buf, off, len) {
|
|
196
|
-
if (this$static.pos >= this$static.count)
|
|
197
|
-
return -1;
|
|
198
|
-
len = Math.min(len, this$static.count - this$static.pos);
|
|
199
|
-
arraycopy(this$static.buf, this$static.pos, buf, off, len);
|
|
200
|
-
this$static.pos += len;
|
|
201
|
-
return len;
|
|
202
|
-
}
|
|
203
|
-
/** ce */
|
|
204
|
-
|
|
205
|
-
function $ByteArrayOutputStream(this$static) {
|
|
206
|
-
this$static.buf = initDim(32);
|
|
207
|
-
this$static.count = 0;
|
|
208
|
-
return this$static;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
function $toByteArray(this$static) {
|
|
212
|
-
var data = this$static.buf;
|
|
213
|
-
data.length = this$static.count;
|
|
214
|
-
return data;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/** cs */
|
|
218
|
-
function $write(this$static, b) {
|
|
219
|
-
this$static.buf[this$static.count++] = b << 24 >> 24;
|
|
220
|
-
}
|
|
221
|
-
/** ce */
|
|
222
|
-
|
|
223
|
-
function $write_0(this$static, buf, off, len) {
|
|
224
|
-
arraycopy(buf, off, this$static.buf, this$static.count, len);
|
|
225
|
-
this$static.count += len;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/** cs */
|
|
229
|
-
function $getChars(this$static, srcBegin, srcEnd, dst, dstBegin) {
|
|
230
|
-
var srcIdx;
|
|
231
|
-
for (srcIdx = srcBegin; srcIdx < srcEnd; ++srcIdx) {
|
|
232
|
-
dst[dstBegin++] = this$static.charCodeAt(srcIdx);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
/** ce */
|
|
236
|
-
|
|
237
|
-
function arraycopy(src, srcOfs, dest, destOfs, len) {
|
|
238
|
-
for (var i = 0; i < len; ++i) {
|
|
239
|
-
dest[destOfs + i] = src[srcOfs + i];
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/** cs */
|
|
244
|
-
function $configure(this$static, encoder) {
|
|
245
|
-
$SetDictionarySize_0(encoder, 1 << this$static.s);
|
|
246
|
-
encoder._numFastBytes = this$static.f;
|
|
247
|
-
$SetMatchFinder(encoder, this$static.m);
|
|
248
|
-
|
|
249
|
-
/// lc is always 3
|
|
250
|
-
/// lp is always 0
|
|
251
|
-
/// pb is always 2
|
|
252
|
-
encoder._numLiteralPosStateBits = 0;
|
|
253
|
-
encoder._numLiteralContextBits = 3;
|
|
254
|
-
encoder._posStateBits = 2;
|
|
255
|
-
///this$static._posStateMask = (1 << pb) - 1;
|
|
256
|
-
encoder._posStateMask = 3;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
function $init(this$static, input, output, length_0, mode) {
|
|
260
|
-
var encoder, i;
|
|
261
|
-
if (compare(length_0, N1_longLit) < 0)
|
|
262
|
-
throw new Error("invalid length " + length_0);
|
|
263
|
-
this$static.length_0 = length_0;
|
|
264
|
-
encoder = $Encoder({});
|
|
265
|
-
$configure(mode, encoder);
|
|
266
|
-
encoder._writeEndMark = typeof LZMA.disableEndMark == "undefined";
|
|
267
|
-
$WriteCoderProperties(encoder, output);
|
|
268
|
-
for (i = 0; i < 64; i += 8)
|
|
269
|
-
$write(output, lowBits_0(shr(length_0, i)) & 255);
|
|
270
|
-
this$static.chunker = (encoder._needReleaseMFStream = 0 , (encoder._inStream = input , encoder._finished = 0 , $Create_2(encoder) , encoder._rangeEncoder.Stream = output , $Init_4(encoder) , $FillDistancesPrices(encoder) , $FillAlignPrices(encoder) , encoder._lenEncoder._tableSize = encoder._numFastBytes + 1 - 2 , $UpdateTables(encoder._lenEncoder, 1 << encoder._posStateBits) , encoder._repMatchLenEncoder._tableSize = encoder._numFastBytes + 1 - 2 , $UpdateTables(encoder._repMatchLenEncoder, 1 << encoder._posStateBits) , encoder.nowPos64 = P0_longLit , undefined) , $Chunker_0({}, encoder));
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
function $LZMAByteArrayCompressor(this$static, data, mode) {
|
|
274
|
-
this$static.output = $ByteArrayOutputStream({});
|
|
275
|
-
$init(this$static, $ByteArrayInputStream({}, data), this$static.output, fromInt(data.length), mode);
|
|
276
|
-
return this$static;
|
|
277
|
-
}
|
|
278
|
-
/** ce */
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
/** cs */
|
|
282
|
-
function $Create_4(this$static, keepSizeBefore, keepSizeAfter, keepSizeReserv) {
|
|
283
|
-
var blockSize;
|
|
284
|
-
this$static._keepSizeBefore = keepSizeBefore;
|
|
285
|
-
this$static._keepSizeAfter = keepSizeAfter;
|
|
286
|
-
blockSize = keepSizeBefore + keepSizeAfter + keepSizeReserv;
|
|
287
|
-
if (this$static._bufferBase == null || this$static._blockSize != blockSize) {
|
|
288
|
-
this$static._bufferBase = null;
|
|
289
|
-
this$static._blockSize = blockSize;
|
|
290
|
-
this$static._bufferBase = initDim(this$static._blockSize);
|
|
291
|
-
}
|
|
292
|
-
this$static._pointerToLastSafePosition = this$static._blockSize - keepSizeAfter;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
function $GetIndexByte(this$static, index) {
|
|
296
|
-
return this$static._bufferBase[this$static._bufferOffset + this$static._pos + index];
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
function $GetMatchLen(this$static, index, distance, limit) {
|
|
300
|
-
var i, pby;
|
|
301
|
-
if (this$static._streamEndWasReached) {
|
|
302
|
-
if (this$static._pos + index + limit > this$static._streamPos) {
|
|
303
|
-
limit = this$static._streamPos - (this$static._pos + index);
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
++distance;
|
|
307
|
-
pby = this$static._bufferOffset + this$static._pos + index;
|
|
308
|
-
for (i = 0; i < limit && this$static._bufferBase[pby + i] == this$static._bufferBase[pby + i - distance]; ++i) {
|
|
309
|
-
}
|
|
310
|
-
return i;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
function $GetNumAvailableBytes(this$static) {
|
|
314
|
-
return this$static._streamPos - this$static._pos;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
function $MoveBlock(this$static) {
|
|
318
|
-
var i, numBytes, offset;
|
|
319
|
-
offset = this$static._bufferOffset + this$static._pos - this$static._keepSizeBefore;
|
|
320
|
-
if (offset > 0) {
|
|
321
|
-
--offset;
|
|
322
|
-
}
|
|
323
|
-
numBytes = this$static._bufferOffset + this$static._streamPos - offset;
|
|
324
|
-
for (i = 0; i < numBytes; ++i) {
|
|
325
|
-
this$static._bufferBase[i] = this$static._bufferBase[offset + i];
|
|
326
|
-
}
|
|
327
|
-
this$static._bufferOffset -= offset;
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
function $MovePos_1(this$static) {
|
|
331
|
-
var pointerToPostion;
|
|
332
|
-
++this$static._pos;
|
|
333
|
-
if (this$static._pos > this$static._posLimit) {
|
|
334
|
-
pointerToPostion = this$static._bufferOffset + this$static._pos;
|
|
335
|
-
if (pointerToPostion > this$static._pointerToLastSafePosition) {
|
|
336
|
-
$MoveBlock(this$static);
|
|
337
|
-
}
|
|
338
|
-
$ReadBlock(this$static);
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
function $ReadBlock(this$static) {
|
|
343
|
-
var numReadBytes, pointerToPostion, size;
|
|
344
|
-
if (this$static._streamEndWasReached)
|
|
345
|
-
return;
|
|
346
|
-
while (1) {
|
|
347
|
-
size = -this$static._bufferOffset + this$static._blockSize - this$static._streamPos;
|
|
348
|
-
if (!size)
|
|
349
|
-
return;
|
|
350
|
-
numReadBytes = $read_0(this$static._stream, this$static._bufferBase, this$static._bufferOffset + this$static._streamPos, size);
|
|
351
|
-
if (numReadBytes == -1) {
|
|
352
|
-
this$static._posLimit = this$static._streamPos;
|
|
353
|
-
pointerToPostion = this$static._bufferOffset + this$static._posLimit;
|
|
354
|
-
if (pointerToPostion > this$static._pointerToLastSafePosition) {
|
|
355
|
-
this$static._posLimit = this$static._pointerToLastSafePosition - this$static._bufferOffset;
|
|
356
|
-
}
|
|
357
|
-
this$static._streamEndWasReached = 1;
|
|
358
|
-
return;
|
|
359
|
-
}
|
|
360
|
-
this$static._streamPos += numReadBytes;
|
|
361
|
-
if (this$static._streamPos >= this$static._pos + this$static._keepSizeAfter) {
|
|
362
|
-
this$static._posLimit = this$static._streamPos - this$static._keepSizeAfter;
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
function $ReduceOffsets(this$static, subValue) {
|
|
368
|
-
this$static._bufferOffset += subValue;
|
|
369
|
-
this$static._posLimit -= subValue;
|
|
370
|
-
this$static._pos -= subValue;
|
|
371
|
-
this$static._streamPos -= subValue;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
var CrcTable = (function () {
|
|
375
|
-
var i, j, r, CrcTable = [];
|
|
376
|
-
for (i = 0; i < 256; ++i) {
|
|
377
|
-
r = i;
|
|
378
|
-
for (j = 0; j < 8; ++j)
|
|
379
|
-
if ((r & 1) != 0) {
|
|
380
|
-
r = r >>> 1 ^ -306674912;
|
|
381
|
-
} else {
|
|
382
|
-
r >>>= 1;
|
|
383
|
-
}
|
|
384
|
-
CrcTable[i] = r;
|
|
385
|
-
}
|
|
386
|
-
return CrcTable;
|
|
387
|
-
}());
|
|
388
|
-
|
|
389
|
-
function $Create_3(this$static, historySize, keepAddBufferBefore, matchMaxLen, keepAddBufferAfter) {
|
|
390
|
-
var cyclicBufferSize, hs, windowReservSize;
|
|
391
|
-
if (historySize < 1073741567) {
|
|
392
|
-
this$static._cutValue = 16 + (matchMaxLen >> 1);
|
|
393
|
-
windowReservSize = ~~((historySize + keepAddBufferBefore + matchMaxLen + keepAddBufferAfter) / 2) + 256;
|
|
394
|
-
$Create_4(this$static, historySize + keepAddBufferBefore, matchMaxLen + keepAddBufferAfter, windowReservSize);
|
|
395
|
-
this$static._matchMaxLen = matchMaxLen;
|
|
396
|
-
cyclicBufferSize = historySize + 1;
|
|
397
|
-
if (this$static._cyclicBufferSize != cyclicBufferSize) {
|
|
398
|
-
this$static._son = initDim((this$static._cyclicBufferSize = cyclicBufferSize) * 2);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
hs = 65536;
|
|
402
|
-
if (this$static.HASH_ARRAY) {
|
|
403
|
-
hs = historySize - 1;
|
|
404
|
-
hs |= hs >> 1;
|
|
405
|
-
hs |= hs >> 2;
|
|
406
|
-
hs |= hs >> 4;
|
|
407
|
-
hs |= hs >> 8;
|
|
408
|
-
hs >>= 1;
|
|
409
|
-
hs |= 65535;
|
|
410
|
-
if (hs > 16777216)
|
|
411
|
-
hs >>= 1;
|
|
412
|
-
this$static._hashMask = hs;
|
|
413
|
-
++hs;
|
|
414
|
-
hs += this$static.kFixHashSize;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
if (hs != this$static._hashSizeSum) {
|
|
418
|
-
this$static._hash = initDim(this$static._hashSizeSum = hs);
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
function $GetMatches(this$static, distances) {
|
|
424
|
-
var count, cur, curMatch, curMatch2, curMatch3, cyclicPos, delta, hash2Value, hash3Value, hashValue, len, len0, len1, lenLimit, matchMinPos, maxLen, offset, pby1, ptr0, ptr1, temp;
|
|
425
|
-
if (this$static._pos + this$static._matchMaxLen <= this$static._streamPos) {
|
|
426
|
-
lenLimit = this$static._matchMaxLen;
|
|
427
|
-
} else {
|
|
428
|
-
lenLimit = this$static._streamPos - this$static._pos;
|
|
429
|
-
if (lenLimit < this$static.kMinMatchCheck) {
|
|
430
|
-
$MovePos_0(this$static);
|
|
431
|
-
return 0;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
offset = 0;
|
|
435
|
-
matchMinPos = this$static._pos > this$static._cyclicBufferSize?this$static._pos - this$static._cyclicBufferSize:0;
|
|
436
|
-
cur = this$static._bufferOffset + this$static._pos;
|
|
437
|
-
maxLen = 1;
|
|
438
|
-
hash2Value = 0;
|
|
439
|
-
hash3Value = 0;
|
|
440
|
-
if (this$static.HASH_ARRAY) {
|
|
441
|
-
temp = CrcTable[this$static._bufferBase[cur] & 255] ^ this$static._bufferBase[cur + 1] & 255;
|
|
442
|
-
hash2Value = temp & 1023;
|
|
443
|
-
temp ^= (this$static._bufferBase[cur + 2] & 255) << 8;
|
|
444
|
-
hash3Value = temp & 65535;
|
|
445
|
-
hashValue = (temp ^ CrcTable[this$static._bufferBase[cur + 3] & 255] << 5) & this$static._hashMask;
|
|
446
|
-
} else {
|
|
447
|
-
hashValue = this$static._bufferBase[cur] & 255 ^ (this$static._bufferBase[cur + 1] & 255) << 8;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
curMatch = this$static._hash[this$static.kFixHashSize + hashValue] || 0;
|
|
451
|
-
if (this$static.HASH_ARRAY) {
|
|
452
|
-
curMatch2 = this$static._hash[hash2Value] || 0;
|
|
453
|
-
curMatch3 = this$static._hash[1024 + hash3Value] || 0;
|
|
454
|
-
this$static._hash[hash2Value] = this$static._pos;
|
|
455
|
-
this$static._hash[1024 + hash3Value] = this$static._pos;
|
|
456
|
-
if (curMatch2 > matchMinPos) {
|
|
457
|
-
if (this$static._bufferBase[this$static._bufferOffset + curMatch2] == this$static._bufferBase[cur]) {
|
|
458
|
-
distances[offset++] = maxLen = 2;
|
|
459
|
-
distances[offset++] = this$static._pos - curMatch2 - 1;
|
|
460
|
-
}
|
|
461
|
-
}
|
|
462
|
-
if (curMatch3 > matchMinPos) {
|
|
463
|
-
if (this$static._bufferBase[this$static._bufferOffset + curMatch3] == this$static._bufferBase[cur]) {
|
|
464
|
-
if (curMatch3 == curMatch2) {
|
|
465
|
-
offset -= 2;
|
|
466
|
-
}
|
|
467
|
-
distances[offset++] = maxLen = 3;
|
|
468
|
-
distances[offset++] = this$static._pos - curMatch3 - 1;
|
|
469
|
-
curMatch2 = curMatch3;
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
if (offset != 0 && curMatch2 == curMatch) {
|
|
473
|
-
offset -= 2;
|
|
474
|
-
maxLen = 1;
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
this$static._hash[this$static.kFixHashSize + hashValue] = this$static._pos;
|
|
478
|
-
ptr0 = (this$static._cyclicBufferPos << 1) + 1;
|
|
479
|
-
ptr1 = this$static._cyclicBufferPos << 1;
|
|
480
|
-
len0 = len1 = this$static.kNumHashDirectBytes;
|
|
481
|
-
if (this$static.kNumHashDirectBytes != 0) {
|
|
482
|
-
if (curMatch > matchMinPos) {
|
|
483
|
-
if (this$static._bufferBase[this$static._bufferOffset + curMatch + this$static.kNumHashDirectBytes] != this$static._bufferBase[cur + this$static.kNumHashDirectBytes]) {
|
|
484
|
-
distances[offset++] = maxLen = this$static.kNumHashDirectBytes;
|
|
485
|
-
distances[offset++] = this$static._pos - curMatch - 1;
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
count = this$static._cutValue;
|
|
490
|
-
while (1) {
|
|
491
|
-
if (curMatch <= matchMinPos || count-- == 0) {
|
|
492
|
-
this$static._son[ptr0] = this$static._son[ptr1] = 0;
|
|
493
|
-
break;
|
|
494
|
-
}
|
|
495
|
-
delta = this$static._pos - curMatch;
|
|
496
|
-
cyclicPos = (delta <= this$static._cyclicBufferPos?this$static._cyclicBufferPos - delta:this$static._cyclicBufferPos - delta + this$static._cyclicBufferSize) << 1;
|
|
497
|
-
pby1 = this$static._bufferOffset + curMatch;
|
|
498
|
-
len = len0 < len1?len0:len1;
|
|
499
|
-
if (this$static._bufferBase[pby1 + len] == this$static._bufferBase[cur + len]) {
|
|
500
|
-
while (++len != lenLimit) {
|
|
501
|
-
if (this$static._bufferBase[pby1 + len] != this$static._bufferBase[cur + len]) {
|
|
502
|
-
break;
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
if (maxLen < len) {
|
|
506
|
-
distances[offset++] = maxLen = len;
|
|
507
|
-
distances[offset++] = delta - 1;
|
|
508
|
-
if (len == lenLimit) {
|
|
509
|
-
this$static._son[ptr1] = this$static._son[cyclicPos];
|
|
510
|
-
this$static._son[ptr0] = this$static._son[cyclicPos + 1];
|
|
511
|
-
break;
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
if ((this$static._bufferBase[pby1 + len] & 255) < (this$static._bufferBase[cur + len] & 255)) {
|
|
516
|
-
this$static._son[ptr1] = curMatch;
|
|
517
|
-
ptr1 = cyclicPos + 1;
|
|
518
|
-
curMatch = this$static._son[ptr1];
|
|
519
|
-
len1 = len;
|
|
520
|
-
} else {
|
|
521
|
-
this$static._son[ptr0] = curMatch;
|
|
522
|
-
ptr0 = cyclicPos;
|
|
523
|
-
curMatch = this$static._son[ptr0];
|
|
524
|
-
len0 = len;
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
$MovePos_0(this$static);
|
|
528
|
-
return offset;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
function $Init_5(this$static) {
|
|
532
|
-
this$static._bufferOffset = 0;
|
|
533
|
-
this$static._pos = 0;
|
|
534
|
-
this$static._streamPos = 0;
|
|
535
|
-
this$static._streamEndWasReached = 0;
|
|
536
|
-
$ReadBlock(this$static);
|
|
537
|
-
this$static._cyclicBufferPos = 0;
|
|
538
|
-
$ReduceOffsets(this$static, -1);
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
function $MovePos_0(this$static) {
|
|
542
|
-
var subValue;
|
|
543
|
-
if (++this$static._cyclicBufferPos >= this$static._cyclicBufferSize) {
|
|
544
|
-
this$static._cyclicBufferPos = 0;
|
|
545
|
-
}
|
|
546
|
-
$MovePos_1(this$static);
|
|
547
|
-
if (this$static._pos == 1073741823) {
|
|
548
|
-
subValue = this$static._pos - this$static._cyclicBufferSize;
|
|
549
|
-
$NormalizeLinks(this$static._son, this$static._cyclicBufferSize * 2, subValue);
|
|
550
|
-
$NormalizeLinks(this$static._hash, this$static._hashSizeSum, subValue);
|
|
551
|
-
$ReduceOffsets(this$static, subValue);
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
|
|
555
|
-
///NOTE: This is only called after reading one whole gigabyte.
|
|
556
|
-
function $NormalizeLinks(items, numItems, subValue) {
|
|
557
|
-
var i, value;
|
|
558
|
-
for (i = 0; i < numItems; ++i) {
|
|
559
|
-
value = items[i] || 0;
|
|
560
|
-
if (value <= subValue) {
|
|
561
|
-
value = 0;
|
|
562
|
-
} else {
|
|
563
|
-
value -= subValue;
|
|
564
|
-
}
|
|
565
|
-
items[i] = value;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
function $SetType(this$static, numHashBytes) {
|
|
570
|
-
this$static.HASH_ARRAY = numHashBytes > 2;
|
|
571
|
-
if (this$static.HASH_ARRAY) {
|
|
572
|
-
this$static.kNumHashDirectBytes = 0;
|
|
573
|
-
this$static.kMinMatchCheck = 4;
|
|
574
|
-
this$static.kFixHashSize = 66560;
|
|
575
|
-
} else {
|
|
576
|
-
this$static.kNumHashDirectBytes = 2;
|
|
577
|
-
this$static.kMinMatchCheck = 3;
|
|
578
|
-
this$static.kFixHashSize = 0;
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
|
|
582
|
-
function $Skip(this$static, num) {
|
|
583
|
-
var count, cur, curMatch, cyclicPos, delta, hash2Value, hash3Value, hashValue, len, len0, len1, lenLimit, matchMinPos, pby1, ptr0, ptr1, temp;
|
|
584
|
-
do {
|
|
585
|
-
if (this$static._pos + this$static._matchMaxLen <= this$static._streamPos) {
|
|
586
|
-
lenLimit = this$static._matchMaxLen;
|
|
587
|
-
} else {
|
|
588
|
-
lenLimit = this$static._streamPos - this$static._pos;
|
|
589
|
-
if (lenLimit < this$static.kMinMatchCheck) {
|
|
590
|
-
$MovePos_0(this$static);
|
|
591
|
-
continue;
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
matchMinPos = this$static._pos > this$static._cyclicBufferSize?this$static._pos - this$static._cyclicBufferSize:0;
|
|
595
|
-
cur = this$static._bufferOffset + this$static._pos;
|
|
596
|
-
if (this$static.HASH_ARRAY) {
|
|
597
|
-
temp = CrcTable[this$static._bufferBase[cur] & 255] ^ this$static._bufferBase[cur + 1] & 255;
|
|
598
|
-
hash2Value = temp & 1023;
|
|
599
|
-
this$static._hash[hash2Value] = this$static._pos;
|
|
600
|
-
temp ^= (this$static._bufferBase[cur + 2] & 255) << 8;
|
|
601
|
-
hash3Value = temp & 65535;
|
|
602
|
-
this$static._hash[1024 + hash3Value] = this$static._pos;
|
|
603
|
-
hashValue = (temp ^ CrcTable[this$static._bufferBase[cur + 3] & 255] << 5) & this$static._hashMask;
|
|
604
|
-
} else {
|
|
605
|
-
hashValue = this$static._bufferBase[cur] & 255 ^ (this$static._bufferBase[cur + 1] & 255) << 8;
|
|
606
|
-
}
|
|
607
|
-
curMatch = this$static._hash[this$static.kFixHashSize + hashValue];
|
|
608
|
-
this$static._hash[this$static.kFixHashSize + hashValue] = this$static._pos;
|
|
609
|
-
ptr0 = (this$static._cyclicBufferPos << 1) + 1;
|
|
610
|
-
ptr1 = this$static._cyclicBufferPos << 1;
|
|
611
|
-
len0 = len1 = this$static.kNumHashDirectBytes;
|
|
612
|
-
count = this$static._cutValue;
|
|
613
|
-
while (1) {
|
|
614
|
-
if (curMatch <= matchMinPos || count-- == 0) {
|
|
615
|
-
this$static._son[ptr0] = this$static._son[ptr1] = 0;
|
|
616
|
-
break;
|
|
617
|
-
}
|
|
618
|
-
delta = this$static._pos - curMatch;
|
|
619
|
-
cyclicPos = (delta <= this$static._cyclicBufferPos?this$static._cyclicBufferPos - delta:this$static._cyclicBufferPos - delta + this$static._cyclicBufferSize) << 1;
|
|
620
|
-
pby1 = this$static._bufferOffset + curMatch;
|
|
621
|
-
len = len0 < len1?len0:len1;
|
|
622
|
-
if (this$static._bufferBase[pby1 + len] == this$static._bufferBase[cur + len]) {
|
|
623
|
-
while (++len != lenLimit) {
|
|
624
|
-
if (this$static._bufferBase[pby1 + len] != this$static._bufferBase[cur + len]) {
|
|
625
|
-
break;
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
if (len == lenLimit) {
|
|
629
|
-
this$static._son[ptr1] = this$static._son[cyclicPos];
|
|
630
|
-
this$static._son[ptr0] = this$static._son[cyclicPos + 1];
|
|
631
|
-
break;
|
|
632
|
-
}
|
|
633
|
-
}
|
|
634
|
-
if ((this$static._bufferBase[pby1 + len] & 255) < (this$static._bufferBase[cur + len] & 255)) {
|
|
635
|
-
this$static._son[ptr1] = curMatch;
|
|
636
|
-
ptr1 = cyclicPos + 1;
|
|
637
|
-
curMatch = this$static._son[ptr1];
|
|
638
|
-
len1 = len;
|
|
639
|
-
} else {
|
|
640
|
-
this$static._son[ptr0] = curMatch;
|
|
641
|
-
ptr0 = cyclicPos;
|
|
642
|
-
curMatch = this$static._son[ptr0];
|
|
643
|
-
len0 = len;
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
$MovePos_0(this$static);
|
|
647
|
-
}
|
|
648
|
-
while (--num != 0);
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
/** ce */
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
function GetLenToPosState(len) {
|
|
655
|
-
len -= 2;
|
|
656
|
-
if (len < 4) {
|
|
657
|
-
return len;
|
|
658
|
-
}
|
|
659
|
-
return 3;
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
function StateUpdateChar(index) {
|
|
663
|
-
if (index < 4) {
|
|
664
|
-
return 0;
|
|
665
|
-
}
|
|
666
|
-
if (index < 10) {
|
|
667
|
-
return index - 3;
|
|
668
|
-
}
|
|
669
|
-
return index - 6;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
/** cs */
|
|
673
|
-
function $Chunker_0(this$static, encoder) {
|
|
674
|
-
this$static.encoder = encoder;
|
|
675
|
-
this$static.decoder = null;
|
|
676
|
-
this$static.alive = 1;
|
|
677
|
-
return this$static;
|
|
678
|
-
}
|
|
679
|
-
/** ce */
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
function $processChunk(this$static) {
|
|
683
|
-
if (!this$static.alive) {
|
|
684
|
-
throw new Error("bad state");
|
|
685
|
-
}
|
|
686
|
-
|
|
687
|
-
if (this$static.encoder) {
|
|
688
|
-
/// do:throw new Error("No encoding");
|
|
689
|
-
/** cs */
|
|
690
|
-
$processEncoderChunk(this$static);
|
|
691
|
-
/** ce */
|
|
692
|
-
} else {
|
|
693
|
-
throw new Error("No decoding");
|
|
694
|
-
|
|
695
|
-
}
|
|
696
|
-
return this$static.alive;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
/** cs */
|
|
701
|
-
function $processEncoderChunk(this$static) {
|
|
702
|
-
$CodeOneBlock(this$static.encoder, this$static.encoder.processedInSize, this$static.encoder.processedOutSize, this$static.encoder.finished);
|
|
703
|
-
this$static.inBytesProcessed = this$static.encoder.processedInSize[0];
|
|
704
|
-
if (this$static.encoder.finished[0]) {
|
|
705
|
-
$ReleaseStreams(this$static.encoder);
|
|
706
|
-
this$static.alive = 0;
|
|
707
|
-
}
|
|
708
|
-
}
|
|
709
|
-
/** ce */
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
/** cs */
|
|
713
|
-
var g_FastPos = (function () {
|
|
714
|
-
var j, k, slotFast, c = 2, g_FastPos = [0, 1];
|
|
715
|
-
for (slotFast = 2; slotFast < 22; ++slotFast) {
|
|
716
|
-
k = 1 << (slotFast >> 1) - 1;
|
|
717
|
-
for (j = 0; j < k; ++j , ++c)
|
|
718
|
-
g_FastPos[c] = slotFast << 24 >> 24;
|
|
719
|
-
}
|
|
720
|
-
return g_FastPos;
|
|
721
|
-
}());
|
|
722
|
-
|
|
723
|
-
function $Backward(this$static, cur) {
|
|
724
|
-
var backCur, backMem, posMem, posPrev;
|
|
725
|
-
this$static._optimumEndIndex = cur;
|
|
726
|
-
posMem = this$static._optimum[cur].PosPrev;
|
|
727
|
-
backMem = this$static._optimum[cur].BackPrev;
|
|
728
|
-
do {
|
|
729
|
-
if (this$static._optimum[cur].Prev1IsChar) {
|
|
730
|
-
$MakeAsChar(this$static._optimum[posMem]);
|
|
731
|
-
this$static._optimum[posMem].PosPrev = posMem - 1;
|
|
732
|
-
if (this$static._optimum[cur].Prev2) {
|
|
733
|
-
this$static._optimum[posMem - 1].Prev1IsChar = 0;
|
|
734
|
-
this$static._optimum[posMem - 1].PosPrev = this$static._optimum[cur].PosPrev2;
|
|
735
|
-
this$static._optimum[posMem - 1].BackPrev = this$static._optimum[cur].BackPrev2;
|
|
736
|
-
}
|
|
737
|
-
}
|
|
738
|
-
posPrev = posMem;
|
|
739
|
-
backCur = backMem;
|
|
740
|
-
backMem = this$static._optimum[posPrev].BackPrev;
|
|
741
|
-
posMem = this$static._optimum[posPrev].PosPrev;
|
|
742
|
-
this$static._optimum[posPrev].BackPrev = backCur;
|
|
743
|
-
this$static._optimum[posPrev].PosPrev = cur;
|
|
744
|
-
cur = posPrev;
|
|
745
|
-
} while (cur > 0);
|
|
746
|
-
this$static.backRes = this$static._optimum[0].BackPrev;
|
|
747
|
-
this$static._optimumCurrentIndex = this$static._optimum[0].PosPrev;
|
|
748
|
-
return this$static._optimumCurrentIndex;
|
|
749
|
-
}
|
|
750
|
-
|
|
751
|
-
function $BaseInit(this$static) {
|
|
752
|
-
this$static._state = 0;
|
|
753
|
-
this$static._previousByte = 0;
|
|
754
|
-
for (var i = 0; i < 4; ++i) {
|
|
755
|
-
this$static._repDistances[i] = 0;
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
function $CodeOneBlock(this$static, inSize, outSize, finished) {
|
|
760
|
-
var baseVal, complexState, curByte, distance, footerBits, i, len, lenToPosState, matchByte, pos, posReduced, posSlot, posState, progressPosValuePrev, subCoder;
|
|
761
|
-
inSize[0] = P0_longLit;
|
|
762
|
-
outSize[0] = P0_longLit;
|
|
763
|
-
finished[0] = 1;
|
|
764
|
-
if (this$static._inStream) {
|
|
765
|
-
this$static._matchFinder._stream = this$static._inStream;
|
|
766
|
-
$Init_5(this$static._matchFinder);
|
|
767
|
-
this$static._needReleaseMFStream = 1;
|
|
768
|
-
this$static._inStream = null;
|
|
769
|
-
}
|
|
770
|
-
if (this$static._finished) {
|
|
771
|
-
return;
|
|
772
|
-
}
|
|
773
|
-
this$static._finished = 1;
|
|
774
|
-
progressPosValuePrev = this$static.nowPos64;
|
|
775
|
-
if (eq(this$static.nowPos64, P0_longLit)) {
|
|
776
|
-
if (!$GetNumAvailableBytes(this$static._matchFinder)) {
|
|
777
|
-
$Flush(this$static, lowBits_0(this$static.nowPos64));
|
|
778
|
-
return;
|
|
779
|
-
}
|
|
780
|
-
$ReadMatchDistances(this$static);
|
|
781
|
-
posState = lowBits_0(this$static.nowPos64) & this$static._posStateMask;
|
|
782
|
-
$Encode_3(this$static._rangeEncoder, this$static._isMatch, (this$static._state << 4) + posState, 0);
|
|
783
|
-
this$static._state = StateUpdateChar(this$static._state);
|
|
784
|
-
curByte = $GetIndexByte(this$static._matchFinder, -this$static._additionalOffset);
|
|
785
|
-
$Encode_1($GetSubCoder(this$static._literalEncoder, lowBits_0(this$static.nowPos64), this$static._previousByte), this$static._rangeEncoder, curByte);
|
|
786
|
-
this$static._previousByte = curByte;
|
|
787
|
-
--this$static._additionalOffset;
|
|
788
|
-
this$static.nowPos64 = add(this$static.nowPos64, P1_longLit);
|
|
789
|
-
}
|
|
790
|
-
if (!$GetNumAvailableBytes(this$static._matchFinder)) {
|
|
791
|
-
$Flush(this$static, lowBits_0(this$static.nowPos64));
|
|
792
|
-
return;
|
|
793
|
-
}
|
|
794
|
-
while (1) {
|
|
795
|
-
len = $GetOptimum(this$static, lowBits_0(this$static.nowPos64));
|
|
796
|
-
pos = this$static.backRes;
|
|
797
|
-
posState = lowBits_0(this$static.nowPos64) & this$static._posStateMask;
|
|
798
|
-
complexState = (this$static._state << 4) + posState;
|
|
799
|
-
if (len == 1 && pos == -1) {
|
|
800
|
-
$Encode_3(this$static._rangeEncoder, this$static._isMatch, complexState, 0);
|
|
801
|
-
curByte = $GetIndexByte(this$static._matchFinder, -this$static._additionalOffset);
|
|
802
|
-
subCoder = $GetSubCoder(this$static._literalEncoder, lowBits_0(this$static.nowPos64), this$static._previousByte);
|
|
803
|
-
if (this$static._state < 7) {
|
|
804
|
-
$Encode_1(subCoder, this$static._rangeEncoder, curByte);
|
|
805
|
-
} else {
|
|
806
|
-
matchByte = $GetIndexByte(this$static._matchFinder, -this$static._repDistances[0] - 1 - this$static._additionalOffset);
|
|
807
|
-
$EncodeMatched(subCoder, this$static._rangeEncoder, matchByte, curByte);
|
|
808
|
-
}
|
|
809
|
-
this$static._previousByte = curByte;
|
|
810
|
-
this$static._state = StateUpdateChar(this$static._state);
|
|
811
|
-
} else {
|
|
812
|
-
$Encode_3(this$static._rangeEncoder, this$static._isMatch, complexState, 1);
|
|
813
|
-
if (pos < 4) {
|
|
814
|
-
$Encode_3(this$static._rangeEncoder, this$static._isRep, this$static._state, 1);
|
|
815
|
-
if (!pos) {
|
|
816
|
-
$Encode_3(this$static._rangeEncoder, this$static._isRepG0, this$static._state, 0);
|
|
817
|
-
if (len == 1) {
|
|
818
|
-
$Encode_3(this$static._rangeEncoder, this$static._isRep0Long, complexState, 0);
|
|
819
|
-
} else {
|
|
820
|
-
$Encode_3(this$static._rangeEncoder, this$static._isRep0Long, complexState, 1);
|
|
821
|
-
}
|
|
822
|
-
} else {
|
|
823
|
-
$Encode_3(this$static._rangeEncoder, this$static._isRepG0, this$static._state, 1);
|
|
824
|
-
if (pos == 1) {
|
|
825
|
-
$Encode_3(this$static._rangeEncoder, this$static._isRepG1, this$static._state, 0);
|
|
826
|
-
} else {
|
|
827
|
-
$Encode_3(this$static._rangeEncoder, this$static._isRepG1, this$static._state, 1);
|
|
828
|
-
$Encode_3(this$static._rangeEncoder, this$static._isRepG2, this$static._state, pos - 2);
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
if (len == 1) {
|
|
832
|
-
this$static._state = this$static._state < 7?9:11;
|
|
833
|
-
} else {
|
|
834
|
-
$Encode_0(this$static._repMatchLenEncoder, this$static._rangeEncoder, len - 2, posState);
|
|
835
|
-
this$static._state = this$static._state < 7?8:11;
|
|
836
|
-
}
|
|
837
|
-
distance = this$static._repDistances[pos];
|
|
838
|
-
if (pos != 0) {
|
|
839
|
-
for (i = pos; i >= 1; --i) {
|
|
840
|
-
this$static._repDistances[i] = this$static._repDistances[i - 1];
|
|
841
|
-
}
|
|
842
|
-
this$static._repDistances[0] = distance;
|
|
843
|
-
}
|
|
844
|
-
} else {
|
|
845
|
-
$Encode_3(this$static._rangeEncoder, this$static._isRep, this$static._state, 0);
|
|
846
|
-
this$static._state = this$static._state < 7?7:10;
|
|
847
|
-
$Encode_0(this$static._lenEncoder, this$static._rangeEncoder, len - 2, posState);
|
|
848
|
-
pos -= 4;
|
|
849
|
-
posSlot = GetPosSlot(pos);
|
|
850
|
-
lenToPosState = GetLenToPosState(len);
|
|
851
|
-
$Encode_2(this$static._posSlotEncoder[lenToPosState], this$static._rangeEncoder, posSlot);
|
|
852
|
-
if (posSlot >= 4) {
|
|
853
|
-
footerBits = (posSlot >> 1) - 1;
|
|
854
|
-
baseVal = (2 | posSlot & 1) << footerBits;
|
|
855
|
-
posReduced = pos - baseVal;
|
|
856
|
-
if (posSlot < 14) {
|
|
857
|
-
ReverseEncode(this$static._posEncoders, baseVal - posSlot - 1, this$static._rangeEncoder, footerBits, posReduced);
|
|
858
|
-
} else {
|
|
859
|
-
$EncodeDirectBits(this$static._rangeEncoder, posReduced >> 4, footerBits - 4);
|
|
860
|
-
$ReverseEncode(this$static._posAlignEncoder, this$static._rangeEncoder, posReduced & 15);
|
|
861
|
-
++this$static._alignPriceCount;
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
distance = pos;
|
|
865
|
-
for (i = 3; i >= 1; --i) {
|
|
866
|
-
this$static._repDistances[i] = this$static._repDistances[i - 1];
|
|
867
|
-
}
|
|
868
|
-
this$static._repDistances[0] = distance;
|
|
869
|
-
++this$static._matchPriceCount;
|
|
870
|
-
}
|
|
871
|
-
this$static._previousByte = $GetIndexByte(this$static._matchFinder, len - 1 - this$static._additionalOffset);
|
|
872
|
-
}
|
|
873
|
-
this$static._additionalOffset -= len;
|
|
874
|
-
this$static.nowPos64 = add(this$static.nowPos64, fromInt(len));
|
|
875
|
-
if (!this$static._additionalOffset) {
|
|
876
|
-
if (this$static._matchPriceCount >= 128) {
|
|
877
|
-
$FillDistancesPrices(this$static);
|
|
878
|
-
}
|
|
879
|
-
if (this$static._alignPriceCount >= 16) {
|
|
880
|
-
$FillAlignPrices(this$static);
|
|
881
|
-
}
|
|
882
|
-
inSize[0] = this$static.nowPos64;
|
|
883
|
-
outSize[0] = $GetProcessedSizeAdd(this$static._rangeEncoder);
|
|
884
|
-
if (!$GetNumAvailableBytes(this$static._matchFinder)) {
|
|
885
|
-
$Flush(this$static, lowBits_0(this$static.nowPos64));
|
|
886
|
-
return;
|
|
887
|
-
}
|
|
888
|
-
if (compare(sub(this$static.nowPos64, progressPosValuePrev), [4096, 0]) >= 0) {
|
|
889
|
-
this$static._finished = 0;
|
|
890
|
-
finished[0] = 0;
|
|
891
|
-
return;
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
}
|
|
895
|
-
}
|
|
896
|
-
|
|
897
|
-
function $Create_2(this$static) {
|
|
898
|
-
var bt, numHashBytes;
|
|
899
|
-
if (!this$static._matchFinder) {
|
|
900
|
-
bt = {};
|
|
901
|
-
numHashBytes = 4;
|
|
902
|
-
if (!this$static._matchFinderType) {
|
|
903
|
-
numHashBytes = 2;
|
|
904
|
-
}
|
|
905
|
-
$SetType(bt, numHashBytes);
|
|
906
|
-
this$static._matchFinder = bt;
|
|
907
|
-
}
|
|
908
|
-
$Create_1(this$static._literalEncoder, this$static._numLiteralPosStateBits, this$static._numLiteralContextBits);
|
|
909
|
-
if (this$static._dictionarySize == this$static._dictionarySizePrev && this$static._numFastBytesPrev == this$static._numFastBytes) {
|
|
910
|
-
return;
|
|
911
|
-
}
|
|
912
|
-
$Create_3(this$static._matchFinder, this$static._dictionarySize, 4096, this$static._numFastBytes, 274);
|
|
913
|
-
this$static._dictionarySizePrev = this$static._dictionarySize;
|
|
914
|
-
this$static._numFastBytesPrev = this$static._numFastBytes;
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
function $Encoder(this$static) {
|
|
918
|
-
var i;
|
|
919
|
-
this$static._repDistances = initDim(4);
|
|
920
|
-
this$static._optimum = [];
|
|
921
|
-
this$static._rangeEncoder = {};
|
|
922
|
-
this$static._isMatch = initDim(192);
|
|
923
|
-
this$static._isRep = initDim(12);
|
|
924
|
-
this$static._isRepG0 = initDim(12);
|
|
925
|
-
this$static._isRepG1 = initDim(12);
|
|
926
|
-
this$static._isRepG2 = initDim(12);
|
|
927
|
-
this$static._isRep0Long = initDim(192);
|
|
928
|
-
this$static._posSlotEncoder = [];
|
|
929
|
-
this$static._posEncoders = initDim(114);
|
|
930
|
-
this$static._posAlignEncoder = $BitTreeEncoder({}, 4);
|
|
931
|
-
this$static._lenEncoder = $Encoder$LenPriceTableEncoder({});
|
|
932
|
-
this$static._repMatchLenEncoder = $Encoder$LenPriceTableEncoder({});
|
|
933
|
-
this$static._literalEncoder = {};
|
|
934
|
-
this$static._matchDistances = [];
|
|
935
|
-
this$static._posSlotPrices = [];
|
|
936
|
-
this$static._distancesPrices = [];
|
|
937
|
-
this$static._alignPrices = initDim(16);
|
|
938
|
-
this$static.reps = initDim(4);
|
|
939
|
-
this$static.repLens = initDim(4);
|
|
940
|
-
this$static.processedInSize = [P0_longLit];
|
|
941
|
-
this$static.processedOutSize = [P0_longLit];
|
|
942
|
-
this$static.finished = [0];
|
|
943
|
-
this$static.properties = initDim(5);
|
|
944
|
-
this$static.tempPrices = initDim(128);
|
|
945
|
-
this$static._longestMatchLength = 0;
|
|
946
|
-
this$static._matchFinderType = 1;
|
|
947
|
-
this$static._numDistancePairs = 0;
|
|
948
|
-
this$static._numFastBytesPrev = -1;
|
|
949
|
-
this$static.backRes = 0;
|
|
950
|
-
for (i = 0; i < 4096; ++i) {
|
|
951
|
-
this$static._optimum[i] = {};
|
|
952
|
-
}
|
|
953
|
-
for (i = 0; i < 4; ++i) {
|
|
954
|
-
this$static._posSlotEncoder[i] = $BitTreeEncoder({}, 6);
|
|
955
|
-
}
|
|
956
|
-
return this$static;
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
function $FillAlignPrices(this$static) {
|
|
960
|
-
for (var i = 0; i < 16; ++i) {
|
|
961
|
-
this$static._alignPrices[i] = $ReverseGetPrice(this$static._posAlignEncoder, i);
|
|
962
|
-
}
|
|
963
|
-
this$static._alignPriceCount = 0;
|
|
964
|
-
}
|
|
965
|
-
|
|
966
|
-
function $FillDistancesPrices(this$static) {
|
|
967
|
-
var baseVal, encoder, footerBits, i, lenToPosState, posSlot, st, st2;
|
|
968
|
-
for (i = 4; i < 128; ++i) {
|
|
969
|
-
posSlot = GetPosSlot(i);
|
|
970
|
-
footerBits = (posSlot >> 1) - 1;
|
|
971
|
-
baseVal = (2 | posSlot & 1) << footerBits;
|
|
972
|
-
this$static.tempPrices[i] = ReverseGetPrice(this$static._posEncoders, baseVal - posSlot - 1, footerBits, i - baseVal);
|
|
973
|
-
}
|
|
974
|
-
for (lenToPosState = 0; lenToPosState < 4; ++lenToPosState) {
|
|
975
|
-
encoder = this$static._posSlotEncoder[lenToPosState];
|
|
976
|
-
st = lenToPosState << 6;
|
|
977
|
-
for (posSlot = 0; posSlot < this$static._distTableSize; ++posSlot) {
|
|
978
|
-
this$static._posSlotPrices[st + posSlot] = $GetPrice_1(encoder, posSlot);
|
|
979
|
-
}
|
|
980
|
-
for (posSlot = 14; posSlot < this$static._distTableSize; ++posSlot) {
|
|
981
|
-
this$static._posSlotPrices[st + posSlot] += (posSlot >> 1) - 1 - 4 << 6;
|
|
982
|
-
}
|
|
983
|
-
st2 = lenToPosState * 128;
|
|
984
|
-
for (i = 0; i < 4; ++i) {
|
|
985
|
-
this$static._distancesPrices[st2 + i] = this$static._posSlotPrices[st + i];
|
|
986
|
-
}
|
|
987
|
-
for (; i < 128; ++i) {
|
|
988
|
-
this$static._distancesPrices[st2 + i] = this$static._posSlotPrices[st + GetPosSlot(i)] + this$static.tempPrices[i];
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
this$static._matchPriceCount = 0;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
function $Flush(this$static, nowPos) {
|
|
995
|
-
$ReleaseMFStream(this$static);
|
|
996
|
-
$WriteEndMarker(this$static, nowPos & this$static._posStateMask);
|
|
997
|
-
for (var i = 0; i < 5; ++i) {
|
|
998
|
-
$ShiftLow(this$static._rangeEncoder);
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
function $GetOptimum(this$static, position) {
|
|
1003
|
-
var cur, curAnd1Price, curAndLenCharPrice, curAndLenPrice, curBack, curPrice, currentByte, distance, i, len, lenEnd, lenMain, lenRes, lenTest, lenTest2, lenTestTemp, matchByte, matchPrice, newLen, nextIsChar, nextMatchPrice, nextOptimum, nextRepMatchPrice, normalMatchPrice, numAvailableBytes, numAvailableBytesFull, numDistancePairs, offs, offset, opt, optimum, pos, posPrev, posState, posStateNext, price_4, repIndex, repLen, repMatchPrice, repMaxIndex, shortRepPrice, startLen, state, state2, t, price, price_0, price_1, price_2, price_3;
|
|
1004
|
-
if (this$static._optimumEndIndex != this$static._optimumCurrentIndex) {
|
|
1005
|
-
lenRes = this$static._optimum[this$static._optimumCurrentIndex].PosPrev - this$static._optimumCurrentIndex;
|
|
1006
|
-
this$static.backRes = this$static._optimum[this$static._optimumCurrentIndex].BackPrev;
|
|
1007
|
-
this$static._optimumCurrentIndex = this$static._optimum[this$static._optimumCurrentIndex].PosPrev;
|
|
1008
|
-
return lenRes;
|
|
1009
|
-
}
|
|
1010
|
-
this$static._optimumCurrentIndex = this$static._optimumEndIndex = 0;
|
|
1011
|
-
if (this$static._longestMatchWasFound) {
|
|
1012
|
-
lenMain = this$static._longestMatchLength;
|
|
1013
|
-
this$static._longestMatchWasFound = 0;
|
|
1014
|
-
} else {
|
|
1015
|
-
lenMain = $ReadMatchDistances(this$static);
|
|
1016
|
-
}
|
|
1017
|
-
numDistancePairs = this$static._numDistancePairs;
|
|
1018
|
-
numAvailableBytes = $GetNumAvailableBytes(this$static._matchFinder) + 1;
|
|
1019
|
-
if (numAvailableBytes < 2) {
|
|
1020
|
-
this$static.backRes = -1;
|
|
1021
|
-
return 1;
|
|
1022
|
-
}
|
|
1023
|
-
if (numAvailableBytes > 273) {
|
|
1024
|
-
numAvailableBytes = 273;
|
|
1025
|
-
}
|
|
1026
|
-
repMaxIndex = 0;
|
|
1027
|
-
for (i = 0; i < 4; ++i) {
|
|
1028
|
-
this$static.reps[i] = this$static._repDistances[i];
|
|
1029
|
-
this$static.repLens[i] = $GetMatchLen(this$static._matchFinder, -1, this$static.reps[i], 273);
|
|
1030
|
-
if (this$static.repLens[i] > this$static.repLens[repMaxIndex]) {
|
|
1031
|
-
repMaxIndex = i;
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
if (this$static.repLens[repMaxIndex] >= this$static._numFastBytes) {
|
|
1035
|
-
this$static.backRes = repMaxIndex;
|
|
1036
|
-
lenRes = this$static.repLens[repMaxIndex];
|
|
1037
|
-
$MovePos(this$static, lenRes - 1);
|
|
1038
|
-
return lenRes;
|
|
1039
|
-
}
|
|
1040
|
-
if (lenMain >= this$static._numFastBytes) {
|
|
1041
|
-
this$static.backRes = this$static._matchDistances[numDistancePairs - 1] + 4;
|
|
1042
|
-
$MovePos(this$static, lenMain - 1);
|
|
1043
|
-
return lenMain;
|
|
1044
|
-
}
|
|
1045
|
-
currentByte = $GetIndexByte(this$static._matchFinder, -1);
|
|
1046
|
-
matchByte = $GetIndexByte(this$static._matchFinder, -this$static._repDistances[0] - 1 - 1);
|
|
1047
|
-
if (lenMain < 2 && currentByte != matchByte && this$static.repLens[repMaxIndex] < 2) {
|
|
1048
|
-
this$static.backRes = -1;
|
|
1049
|
-
return 1;
|
|
1050
|
-
}
|
|
1051
|
-
this$static._optimum[0].State = this$static._state;
|
|
1052
|
-
posState = position & this$static._posStateMask;
|
|
1053
|
-
this$static._optimum[1].Price = ProbPrices[this$static._isMatch[(this$static._state << 4) + posState] >>> 2] + $GetPrice_0($GetSubCoder(this$static._literalEncoder, position, this$static._previousByte), this$static._state >= 7, matchByte, currentByte);
|
|
1054
|
-
$MakeAsChar(this$static._optimum[1]);
|
|
1055
|
-
matchPrice = ProbPrices[2048 - this$static._isMatch[(this$static._state << 4) + posState] >>> 2];
|
|
1056
|
-
repMatchPrice = matchPrice + ProbPrices[2048 - this$static._isRep[this$static._state] >>> 2];
|
|
1057
|
-
if (matchByte == currentByte) {
|
|
1058
|
-
shortRepPrice = repMatchPrice + $GetRepLen1Price(this$static, this$static._state, posState);
|
|
1059
|
-
if (shortRepPrice < this$static._optimum[1].Price) {
|
|
1060
|
-
this$static._optimum[1].Price = shortRepPrice;
|
|
1061
|
-
$MakeAsShortRep(this$static._optimum[1]);
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
lenEnd = lenMain >= this$static.repLens[repMaxIndex]?lenMain:this$static.repLens[repMaxIndex];
|
|
1065
|
-
if (lenEnd < 2) {
|
|
1066
|
-
this$static.backRes = this$static._optimum[1].BackPrev;
|
|
1067
|
-
return 1;
|
|
1068
|
-
}
|
|
1069
|
-
this$static._optimum[1].PosPrev = 0;
|
|
1070
|
-
this$static._optimum[0].Backs0 = this$static.reps[0];
|
|
1071
|
-
this$static._optimum[0].Backs1 = this$static.reps[1];
|
|
1072
|
-
this$static._optimum[0].Backs2 = this$static.reps[2];
|
|
1073
|
-
this$static._optimum[0].Backs3 = this$static.reps[3];
|
|
1074
|
-
len = lenEnd;
|
|
1075
|
-
do {
|
|
1076
|
-
this$static._optimum[len--].Price = 268435455;
|
|
1077
|
-
} while (len >= 2);
|
|
1078
|
-
for (i = 0; i < 4; ++i) {
|
|
1079
|
-
repLen = this$static.repLens[i];
|
|
1080
|
-
if (repLen < 2) {
|
|
1081
|
-
continue;
|
|
1082
|
-
}
|
|
1083
|
-
price_4 = repMatchPrice + $GetPureRepPrice(this$static, i, this$static._state, posState);
|
|
1084
|
-
do {
|
|
1085
|
-
curAndLenPrice = price_4 + $GetPrice(this$static._repMatchLenEncoder, repLen - 2, posState);
|
|
1086
|
-
optimum = this$static._optimum[repLen];
|
|
1087
|
-
if (curAndLenPrice < optimum.Price) {
|
|
1088
|
-
optimum.Price = curAndLenPrice;
|
|
1089
|
-
optimum.PosPrev = 0;
|
|
1090
|
-
optimum.BackPrev = i;
|
|
1091
|
-
optimum.Prev1IsChar = 0;
|
|
1092
|
-
}
|
|
1093
|
-
} while (--repLen >= 2);
|
|
1094
|
-
}
|
|
1095
|
-
normalMatchPrice = matchPrice + ProbPrices[this$static._isRep[this$static._state] >>> 2];
|
|
1096
|
-
len = this$static.repLens[0] >= 2?this$static.repLens[0] + 1:2;
|
|
1097
|
-
if (len <= lenMain) {
|
|
1098
|
-
offs = 0;
|
|
1099
|
-
while (len > this$static._matchDistances[offs]) {
|
|
1100
|
-
offs += 2;
|
|
1101
|
-
}
|
|
1102
|
-
for (;; ++len) {
|
|
1103
|
-
distance = this$static._matchDistances[offs + 1];
|
|
1104
|
-
curAndLenPrice = normalMatchPrice + $GetPosLenPrice(this$static, distance, len, posState);
|
|
1105
|
-
optimum = this$static._optimum[len];
|
|
1106
|
-
if (curAndLenPrice < optimum.Price) {
|
|
1107
|
-
optimum.Price = curAndLenPrice;
|
|
1108
|
-
optimum.PosPrev = 0;
|
|
1109
|
-
optimum.BackPrev = distance + 4;
|
|
1110
|
-
optimum.Prev1IsChar = 0;
|
|
1111
|
-
}
|
|
1112
|
-
if (len == this$static._matchDistances[offs]) {
|
|
1113
|
-
offs += 2;
|
|
1114
|
-
if (offs == numDistancePairs) {
|
|
1115
|
-
break;
|
|
1116
|
-
}
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
}
|
|
1120
|
-
cur = 0;
|
|
1121
|
-
while (1) {
|
|
1122
|
-
++cur;
|
|
1123
|
-
if (cur == lenEnd) {
|
|
1124
|
-
return $Backward(this$static, cur);
|
|
1125
|
-
}
|
|
1126
|
-
newLen = $ReadMatchDistances(this$static);
|
|
1127
|
-
numDistancePairs = this$static._numDistancePairs;
|
|
1128
|
-
if (newLen >= this$static._numFastBytes) {
|
|
1129
|
-
this$static._longestMatchLength = newLen;
|
|
1130
|
-
this$static._longestMatchWasFound = 1;
|
|
1131
|
-
return $Backward(this$static, cur);
|
|
1132
|
-
}
|
|
1133
|
-
++position;
|
|
1134
|
-
posPrev = this$static._optimum[cur].PosPrev;
|
|
1135
|
-
if (this$static._optimum[cur].Prev1IsChar) {
|
|
1136
|
-
--posPrev;
|
|
1137
|
-
if (this$static._optimum[cur].Prev2) {
|
|
1138
|
-
state = this$static._optimum[this$static._optimum[cur].PosPrev2].State;
|
|
1139
|
-
if (this$static._optimum[cur].BackPrev2 < 4) {
|
|
1140
|
-
state = (state < 7) ? 8 : 11;
|
|
1141
|
-
} else {
|
|
1142
|
-
state = (state < 7) ? 7 : 10;
|
|
1143
|
-
}
|
|
1144
|
-
} else {
|
|
1145
|
-
state = this$static._optimum[posPrev].State;
|
|
1146
|
-
}
|
|
1147
|
-
state = StateUpdateChar(state);
|
|
1148
|
-
} else {
|
|
1149
|
-
state = this$static._optimum[posPrev].State;
|
|
1150
|
-
}
|
|
1151
|
-
if (posPrev == cur - 1) {
|
|
1152
|
-
if (!this$static._optimum[cur].BackPrev) {
|
|
1153
|
-
state = state < 7?9:11;
|
|
1154
|
-
} else {
|
|
1155
|
-
state = StateUpdateChar(state);
|
|
1156
|
-
}
|
|
1157
|
-
} else {
|
|
1158
|
-
if (this$static._optimum[cur].Prev1IsChar && this$static._optimum[cur].Prev2) {
|
|
1159
|
-
posPrev = this$static._optimum[cur].PosPrev2;
|
|
1160
|
-
pos = this$static._optimum[cur].BackPrev2;
|
|
1161
|
-
state = state < 7?8:11;
|
|
1162
|
-
} else {
|
|
1163
|
-
pos = this$static._optimum[cur].BackPrev;
|
|
1164
|
-
if (pos < 4) {
|
|
1165
|
-
state = state < 7?8:11;
|
|
1166
|
-
} else {
|
|
1167
|
-
state = state < 7?7:10;
|
|
1168
|
-
}
|
|
1169
|
-
}
|
|
1170
|
-
opt = this$static._optimum[posPrev];
|
|
1171
|
-
if (pos < 4) {
|
|
1172
|
-
if (!pos) {
|
|
1173
|
-
this$static.reps[0] = opt.Backs0;
|
|
1174
|
-
this$static.reps[1] = opt.Backs1;
|
|
1175
|
-
this$static.reps[2] = opt.Backs2;
|
|
1176
|
-
this$static.reps[3] = opt.Backs3;
|
|
1177
|
-
} else if (pos == 1) {
|
|
1178
|
-
this$static.reps[0] = opt.Backs1;
|
|
1179
|
-
this$static.reps[1] = opt.Backs0;
|
|
1180
|
-
this$static.reps[2] = opt.Backs2;
|
|
1181
|
-
this$static.reps[3] = opt.Backs3;
|
|
1182
|
-
} else if (pos == 2) {
|
|
1183
|
-
this$static.reps[0] = opt.Backs2;
|
|
1184
|
-
this$static.reps[1] = opt.Backs0;
|
|
1185
|
-
this$static.reps[2] = opt.Backs1;
|
|
1186
|
-
this$static.reps[3] = opt.Backs3;
|
|
1187
|
-
} else {
|
|
1188
|
-
this$static.reps[0] = opt.Backs3;
|
|
1189
|
-
this$static.reps[1] = opt.Backs0;
|
|
1190
|
-
this$static.reps[2] = opt.Backs1;
|
|
1191
|
-
this$static.reps[3] = opt.Backs2;
|
|
1192
|
-
}
|
|
1193
|
-
} else {
|
|
1194
|
-
this$static.reps[0] = pos - 4;
|
|
1195
|
-
this$static.reps[1] = opt.Backs0;
|
|
1196
|
-
this$static.reps[2] = opt.Backs1;
|
|
1197
|
-
this$static.reps[3] = opt.Backs2;
|
|
1198
|
-
}
|
|
1199
|
-
}
|
|
1200
|
-
this$static._optimum[cur].State = state;
|
|
1201
|
-
this$static._optimum[cur].Backs0 = this$static.reps[0];
|
|
1202
|
-
this$static._optimum[cur].Backs1 = this$static.reps[1];
|
|
1203
|
-
this$static._optimum[cur].Backs2 = this$static.reps[2];
|
|
1204
|
-
this$static._optimum[cur].Backs3 = this$static.reps[3];
|
|
1205
|
-
curPrice = this$static._optimum[cur].Price;
|
|
1206
|
-
currentByte = $GetIndexByte(this$static._matchFinder, -1);
|
|
1207
|
-
matchByte = $GetIndexByte(this$static._matchFinder, -this$static.reps[0] - 1 - 1);
|
|
1208
|
-
posState = position & this$static._posStateMask;
|
|
1209
|
-
curAnd1Price = curPrice + ProbPrices[this$static._isMatch[(state << 4) + posState] >>> 2] + $GetPrice_0($GetSubCoder(this$static._literalEncoder, position, $GetIndexByte(this$static._matchFinder, -2)), state >= 7, matchByte, currentByte);
|
|
1210
|
-
nextOptimum = this$static._optimum[cur + 1];
|
|
1211
|
-
nextIsChar = 0;
|
|
1212
|
-
if (curAnd1Price < nextOptimum.Price) {
|
|
1213
|
-
nextOptimum.Price = curAnd1Price;
|
|
1214
|
-
nextOptimum.PosPrev = cur;
|
|
1215
|
-
nextOptimum.BackPrev = -1;
|
|
1216
|
-
nextOptimum.Prev1IsChar = 0;
|
|
1217
|
-
nextIsChar = 1;
|
|
1218
|
-
}
|
|
1219
|
-
matchPrice = curPrice + ProbPrices[2048 - this$static._isMatch[(state << 4) + posState] >>> 2];
|
|
1220
|
-
repMatchPrice = matchPrice + ProbPrices[2048 - this$static._isRep[state] >>> 2];
|
|
1221
|
-
if (matchByte == currentByte && !(nextOptimum.PosPrev < cur && !nextOptimum.BackPrev)) {
|
|
1222
|
-
shortRepPrice = repMatchPrice + (ProbPrices[this$static._isRepG0[state] >>> 2] + ProbPrices[this$static._isRep0Long[(state << 4) + posState] >>> 2]);
|
|
1223
|
-
if (shortRepPrice <= nextOptimum.Price) {
|
|
1224
|
-
nextOptimum.Price = shortRepPrice;
|
|
1225
|
-
nextOptimum.PosPrev = cur;
|
|
1226
|
-
nextOptimum.BackPrev = 0;
|
|
1227
|
-
nextOptimum.Prev1IsChar = 0;
|
|
1228
|
-
nextIsChar = 1;
|
|
1229
|
-
}
|
|
1230
|
-
}
|
|
1231
|
-
numAvailableBytesFull = $GetNumAvailableBytes(this$static._matchFinder) + 1;
|
|
1232
|
-
numAvailableBytesFull = 4095 - cur < numAvailableBytesFull?4095 - cur:numAvailableBytesFull;
|
|
1233
|
-
numAvailableBytes = numAvailableBytesFull;
|
|
1234
|
-
if (numAvailableBytes < 2) {
|
|
1235
|
-
continue;
|
|
1236
|
-
}
|
|
1237
|
-
if (numAvailableBytes > this$static._numFastBytes) {
|
|
1238
|
-
numAvailableBytes = this$static._numFastBytes;
|
|
1239
|
-
}
|
|
1240
|
-
if (!nextIsChar && matchByte != currentByte) {
|
|
1241
|
-
t = Math.min(numAvailableBytesFull - 1, this$static._numFastBytes);
|
|
1242
|
-
lenTest2 = $GetMatchLen(this$static._matchFinder, 0, this$static.reps[0], t);
|
|
1243
|
-
if (lenTest2 >= 2) {
|
|
1244
|
-
state2 = StateUpdateChar(state);
|
|
1245
|
-
posStateNext = position + 1 & this$static._posStateMask;
|
|
1246
|
-
nextRepMatchPrice = curAnd1Price + ProbPrices[2048 - this$static._isMatch[(state2 << 4) + posStateNext] >>> 2] + ProbPrices[2048 - this$static._isRep[state2] >>> 2];
|
|
1247
|
-
offset = cur + 1 + lenTest2;
|
|
1248
|
-
while (lenEnd < offset) {
|
|
1249
|
-
this$static._optimum[++lenEnd].Price = 268435455;
|
|
1250
|
-
}
|
|
1251
|
-
curAndLenPrice = nextRepMatchPrice + (price = $GetPrice(this$static._repMatchLenEncoder, lenTest2 - 2, posStateNext) , price + $GetPureRepPrice(this$static, 0, state2, posStateNext));
|
|
1252
|
-
optimum = this$static._optimum[offset];
|
|
1253
|
-
if (curAndLenPrice < optimum.Price) {
|
|
1254
|
-
optimum.Price = curAndLenPrice;
|
|
1255
|
-
optimum.PosPrev = cur + 1;
|
|
1256
|
-
optimum.BackPrev = 0;
|
|
1257
|
-
optimum.Prev1IsChar = 1;
|
|
1258
|
-
optimum.Prev2 = 0;
|
|
1259
|
-
}
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
startLen = 2;
|
|
1263
|
-
for (repIndex = 0; repIndex < 4; ++repIndex) {
|
|
1264
|
-
lenTest = $GetMatchLen(this$static._matchFinder, -1, this$static.reps[repIndex], numAvailableBytes);
|
|
1265
|
-
if (lenTest < 2) {
|
|
1266
|
-
continue;
|
|
1267
|
-
}
|
|
1268
|
-
lenTestTemp = lenTest;
|
|
1269
|
-
do {
|
|
1270
|
-
while (lenEnd < cur + lenTest) {
|
|
1271
|
-
this$static._optimum[++lenEnd].Price = 268435455;
|
|
1272
|
-
}
|
|
1273
|
-
curAndLenPrice = repMatchPrice + (price_0 = $GetPrice(this$static._repMatchLenEncoder, lenTest - 2, posState) , price_0 + $GetPureRepPrice(this$static, repIndex, state, posState));
|
|
1274
|
-
optimum = this$static._optimum[cur + lenTest];
|
|
1275
|
-
if (curAndLenPrice < optimum.Price) {
|
|
1276
|
-
optimum.Price = curAndLenPrice;
|
|
1277
|
-
optimum.PosPrev = cur;
|
|
1278
|
-
optimum.BackPrev = repIndex;
|
|
1279
|
-
optimum.Prev1IsChar = 0;
|
|
1280
|
-
}
|
|
1281
|
-
} while (--lenTest >= 2);
|
|
1282
|
-
lenTest = lenTestTemp;
|
|
1283
|
-
if (!repIndex) {
|
|
1284
|
-
startLen = lenTest + 1;
|
|
1285
|
-
}
|
|
1286
|
-
if (lenTest < numAvailableBytesFull) {
|
|
1287
|
-
t = Math.min(numAvailableBytesFull - 1 - lenTest, this$static._numFastBytes);
|
|
1288
|
-
lenTest2 = $GetMatchLen(this$static._matchFinder, lenTest, this$static.reps[repIndex], t);
|
|
1289
|
-
if (lenTest2 >= 2) {
|
|
1290
|
-
state2 = state < 7?8:11;
|
|
1291
|
-
posStateNext = position + lenTest & this$static._posStateMask;
|
|
1292
|
-
curAndLenCharPrice = repMatchPrice + (price_1 = $GetPrice(this$static._repMatchLenEncoder, lenTest - 2, posState) , price_1 + $GetPureRepPrice(this$static, repIndex, state, posState)) + ProbPrices[this$static._isMatch[(state2 << 4) + posStateNext] >>> 2] + $GetPrice_0($GetSubCoder(this$static._literalEncoder, position + lenTest, $GetIndexByte(this$static._matchFinder, lenTest - 1 - 1)), 1, $GetIndexByte(this$static._matchFinder, lenTest - 1 - (this$static.reps[repIndex] + 1)), $GetIndexByte(this$static._matchFinder, lenTest - 1));
|
|
1293
|
-
state2 = StateUpdateChar(state2);
|
|
1294
|
-
posStateNext = position + lenTest + 1 & this$static._posStateMask;
|
|
1295
|
-
nextMatchPrice = curAndLenCharPrice + ProbPrices[2048 - this$static._isMatch[(state2 << 4) + posStateNext] >>> 2];
|
|
1296
|
-
nextRepMatchPrice = nextMatchPrice + ProbPrices[2048 - this$static._isRep[state2] >>> 2];
|
|
1297
|
-
offset = lenTest + 1 + lenTest2;
|
|
1298
|
-
while (lenEnd < cur + offset) {
|
|
1299
|
-
this$static._optimum[++lenEnd].Price = 268435455;
|
|
1300
|
-
}
|
|
1301
|
-
curAndLenPrice = nextRepMatchPrice + (price_2 = $GetPrice(this$static._repMatchLenEncoder, lenTest2 - 2, posStateNext) , price_2 + $GetPureRepPrice(this$static, 0, state2, posStateNext));
|
|
1302
|
-
optimum = this$static._optimum[cur + offset];
|
|
1303
|
-
if (curAndLenPrice < optimum.Price) {
|
|
1304
|
-
optimum.Price = curAndLenPrice;
|
|
1305
|
-
optimum.PosPrev = cur + lenTest + 1;
|
|
1306
|
-
optimum.BackPrev = 0;
|
|
1307
|
-
optimum.Prev1IsChar = 1;
|
|
1308
|
-
optimum.Prev2 = 1;
|
|
1309
|
-
optimum.PosPrev2 = cur;
|
|
1310
|
-
optimum.BackPrev2 = repIndex;
|
|
1311
|
-
}
|
|
1312
|
-
}
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
if (newLen > numAvailableBytes) {
|
|
1316
|
-
newLen = numAvailableBytes;
|
|
1317
|
-
for (numDistancePairs = 0; newLen > this$static._matchDistances[numDistancePairs]; numDistancePairs += 2) {}
|
|
1318
|
-
this$static._matchDistances[numDistancePairs] = newLen;
|
|
1319
|
-
numDistancePairs += 2;
|
|
1320
|
-
}
|
|
1321
|
-
if (newLen >= startLen) {
|
|
1322
|
-
normalMatchPrice = matchPrice + ProbPrices[this$static._isRep[state] >>> 2];
|
|
1323
|
-
while (lenEnd < cur + newLen) {
|
|
1324
|
-
this$static._optimum[++lenEnd].Price = 268435455;
|
|
1325
|
-
}
|
|
1326
|
-
offs = 0;
|
|
1327
|
-
while (startLen > this$static._matchDistances[offs]) {
|
|
1328
|
-
offs += 2;
|
|
1329
|
-
}
|
|
1330
|
-
for (lenTest = startLen;; ++lenTest) {
|
|
1331
|
-
curBack = this$static._matchDistances[offs + 1];
|
|
1332
|
-
curAndLenPrice = normalMatchPrice + $GetPosLenPrice(this$static, curBack, lenTest, posState);
|
|
1333
|
-
optimum = this$static._optimum[cur + lenTest];
|
|
1334
|
-
if (curAndLenPrice < optimum.Price) {
|
|
1335
|
-
optimum.Price = curAndLenPrice;
|
|
1336
|
-
optimum.PosPrev = cur;
|
|
1337
|
-
optimum.BackPrev = curBack + 4;
|
|
1338
|
-
optimum.Prev1IsChar = 0;
|
|
1339
|
-
}
|
|
1340
|
-
if (lenTest == this$static._matchDistances[offs]) {
|
|
1341
|
-
if (lenTest < numAvailableBytesFull) {
|
|
1342
|
-
t = Math.min(numAvailableBytesFull - 1 - lenTest, this$static._numFastBytes);
|
|
1343
|
-
lenTest2 = $GetMatchLen(this$static._matchFinder, lenTest, curBack, t);
|
|
1344
|
-
if (lenTest2 >= 2) {
|
|
1345
|
-
state2 = state < 7?7:10;
|
|
1346
|
-
posStateNext = position + lenTest & this$static._posStateMask;
|
|
1347
|
-
curAndLenCharPrice = curAndLenPrice + ProbPrices[this$static._isMatch[(state2 << 4) + posStateNext] >>> 2] + $GetPrice_0($GetSubCoder(this$static._literalEncoder, position + lenTest, $GetIndexByte(this$static._matchFinder, lenTest - 1 - 1)), 1, $GetIndexByte(this$static._matchFinder, lenTest - (curBack + 1) - 1), $GetIndexByte(this$static._matchFinder, lenTest - 1));
|
|
1348
|
-
state2 = StateUpdateChar(state2);
|
|
1349
|
-
posStateNext = position + lenTest + 1 & this$static._posStateMask;
|
|
1350
|
-
nextMatchPrice = curAndLenCharPrice + ProbPrices[2048 - this$static._isMatch[(state2 << 4) + posStateNext] >>> 2];
|
|
1351
|
-
nextRepMatchPrice = nextMatchPrice + ProbPrices[2048 - this$static._isRep[state2] >>> 2];
|
|
1352
|
-
offset = lenTest + 1 + lenTest2;
|
|
1353
|
-
while (lenEnd < cur + offset) {
|
|
1354
|
-
this$static._optimum[++lenEnd].Price = 268435455;
|
|
1355
|
-
}
|
|
1356
|
-
curAndLenPrice = nextRepMatchPrice + (price_3 = $GetPrice(this$static._repMatchLenEncoder, lenTest2 - 2, posStateNext) , price_3 + $GetPureRepPrice(this$static, 0, state2, posStateNext));
|
|
1357
|
-
optimum = this$static._optimum[cur + offset];
|
|
1358
|
-
if (curAndLenPrice < optimum.Price) {
|
|
1359
|
-
optimum.Price = curAndLenPrice;
|
|
1360
|
-
optimum.PosPrev = cur + lenTest + 1;
|
|
1361
|
-
optimum.BackPrev = 0;
|
|
1362
|
-
optimum.Prev1IsChar = 1;
|
|
1363
|
-
optimum.Prev2 = 1;
|
|
1364
|
-
optimum.PosPrev2 = cur;
|
|
1365
|
-
optimum.BackPrev2 = curBack + 4;
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
}
|
|
1369
|
-
offs += 2;
|
|
1370
|
-
if (offs == numDistancePairs)
|
|
1371
|
-
break;
|
|
1372
|
-
}
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
function $GetPosLenPrice(this$static, pos, len, posState) {
|
|
1379
|
-
var price, lenToPosState = GetLenToPosState(len);
|
|
1380
|
-
if (pos < 128) {
|
|
1381
|
-
price = this$static._distancesPrices[lenToPosState * 128 + pos];
|
|
1382
|
-
} else {
|
|
1383
|
-
price = this$static._posSlotPrices[(lenToPosState << 6) + GetPosSlot2(pos)] + this$static._alignPrices[pos & 15];
|
|
1384
|
-
}
|
|
1385
|
-
return price + $GetPrice(this$static._lenEncoder, len - 2, posState);
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
function $GetPureRepPrice(this$static, repIndex, state, posState) {
|
|
1389
|
-
var price;
|
|
1390
|
-
if (!repIndex) {
|
|
1391
|
-
price = ProbPrices[this$static._isRepG0[state] >>> 2];
|
|
1392
|
-
price += ProbPrices[2048 - this$static._isRep0Long[(state << 4) + posState] >>> 2];
|
|
1393
|
-
} else {
|
|
1394
|
-
price = ProbPrices[2048 - this$static._isRepG0[state] >>> 2];
|
|
1395
|
-
if (repIndex == 1) {
|
|
1396
|
-
price += ProbPrices[this$static._isRepG1[state] >>> 2];
|
|
1397
|
-
} else {
|
|
1398
|
-
price += ProbPrices[2048 - this$static._isRepG1[state] >>> 2];
|
|
1399
|
-
price += GetPrice(this$static._isRepG2[state], repIndex - 2);
|
|
1400
|
-
}
|
|
1401
|
-
}
|
|
1402
|
-
return price;
|
|
1403
|
-
}
|
|
1404
|
-
|
|
1405
|
-
function $GetRepLen1Price(this$static, state, posState) {
|
|
1406
|
-
return ProbPrices[this$static._isRepG0[state] >>> 2] + ProbPrices[this$static._isRep0Long[(state << 4) + posState] >>> 2];
|
|
1407
|
-
}
|
|
1408
|
-
|
|
1409
|
-
function $Init_4(this$static) {
|
|
1410
|
-
$BaseInit(this$static);
|
|
1411
|
-
$Init_9(this$static._rangeEncoder);
|
|
1412
|
-
InitBitModels(this$static._isMatch);
|
|
1413
|
-
InitBitModels(this$static._isRep0Long);
|
|
1414
|
-
InitBitModels(this$static._isRep);
|
|
1415
|
-
InitBitModels(this$static._isRepG0);
|
|
1416
|
-
InitBitModels(this$static._isRepG1);
|
|
1417
|
-
InitBitModels(this$static._isRepG2);
|
|
1418
|
-
InitBitModels(this$static._posEncoders);
|
|
1419
|
-
$Init_3(this$static._literalEncoder);
|
|
1420
|
-
for (var i = 0; i < 4; ++i) {
|
|
1421
|
-
InitBitModels(this$static._posSlotEncoder[i].Models);
|
|
1422
|
-
}
|
|
1423
|
-
$Init_2(this$static._lenEncoder, 1 << this$static._posStateBits);
|
|
1424
|
-
$Init_2(this$static._repMatchLenEncoder, 1 << this$static._posStateBits);
|
|
1425
|
-
InitBitModels(this$static._posAlignEncoder.Models);
|
|
1426
|
-
this$static._longestMatchWasFound = 0;
|
|
1427
|
-
this$static._optimumEndIndex = 0;
|
|
1428
|
-
this$static._optimumCurrentIndex = 0;
|
|
1429
|
-
this$static._additionalOffset = 0;
|
|
1430
|
-
}
|
|
1431
|
-
|
|
1432
|
-
function $MovePos(this$static, num) {
|
|
1433
|
-
if (num > 0) {
|
|
1434
|
-
$Skip(this$static._matchFinder, num);
|
|
1435
|
-
this$static._additionalOffset += num;
|
|
1436
|
-
}
|
|
1437
|
-
}
|
|
1438
|
-
|
|
1439
|
-
function $ReadMatchDistances(this$static) {
|
|
1440
|
-
var lenRes = 0;
|
|
1441
|
-
this$static._numDistancePairs = $GetMatches(this$static._matchFinder, this$static._matchDistances);
|
|
1442
|
-
if (this$static._numDistancePairs > 0) {
|
|
1443
|
-
lenRes = this$static._matchDistances[this$static._numDistancePairs - 2];
|
|
1444
|
-
if (lenRes == this$static._numFastBytes)
|
|
1445
|
-
lenRes += $GetMatchLen(this$static._matchFinder, lenRes - 1, this$static._matchDistances[this$static._numDistancePairs - 1], 273 - lenRes);
|
|
1446
|
-
}
|
|
1447
|
-
++this$static._additionalOffset;
|
|
1448
|
-
return lenRes;
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
function $ReleaseMFStream(this$static) {
|
|
1452
|
-
if (this$static._matchFinder && this$static._needReleaseMFStream) {
|
|
1453
|
-
this$static._matchFinder._stream = null;
|
|
1454
|
-
this$static._needReleaseMFStream = 0;
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
function $ReleaseStreams(this$static) {
|
|
1459
|
-
$ReleaseMFStream(this$static);
|
|
1460
|
-
this$static._rangeEncoder.Stream = null;
|
|
1461
|
-
}
|
|
1462
|
-
|
|
1463
|
-
function $SetDictionarySize_0(this$static, dictionarySize) {
|
|
1464
|
-
this$static._dictionarySize = dictionarySize;
|
|
1465
|
-
for (var dicLogSize = 0; dictionarySize > 1 << dicLogSize; ++dicLogSize) {}
|
|
1466
|
-
this$static._distTableSize = dicLogSize * 2;
|
|
1467
|
-
}
|
|
1468
|
-
|
|
1469
|
-
function $SetMatchFinder(this$static, matchFinderIndex) {
|
|
1470
|
-
var matchFinderIndexPrev = this$static._matchFinderType;
|
|
1471
|
-
this$static._matchFinderType = matchFinderIndex;
|
|
1472
|
-
if (this$static._matchFinder && matchFinderIndexPrev != this$static._matchFinderType) {
|
|
1473
|
-
this$static._dictionarySizePrev = -1;
|
|
1474
|
-
this$static._matchFinder = null;
|
|
1475
|
-
}
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
function $WriteCoderProperties(this$static, outStream) {
|
|
1479
|
-
this$static.properties[0] = (this$static._posStateBits * 5 + this$static._numLiteralPosStateBits) * 9 + this$static._numLiteralContextBits << 24 >> 24;
|
|
1480
|
-
for (var i = 0; i < 4; ++i) {
|
|
1481
|
-
this$static.properties[1 + i] = this$static._dictionarySize >> 8 * i << 24 >> 24;
|
|
1482
|
-
}
|
|
1483
|
-
$write_0(outStream, this$static.properties, 0, 5);
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
function $WriteEndMarker(this$static, posState) {
|
|
1487
|
-
if (!this$static._writeEndMark) {
|
|
1488
|
-
return;
|
|
1489
|
-
}
|
|
1490
|
-
$Encode_3(this$static._rangeEncoder, this$static._isMatch, (this$static._state << 4) + posState, 1);
|
|
1491
|
-
$Encode_3(this$static._rangeEncoder, this$static._isRep, this$static._state, 0);
|
|
1492
|
-
this$static._state = this$static._state < 7?7:10;
|
|
1493
|
-
$Encode_0(this$static._lenEncoder, this$static._rangeEncoder, 0, posState);
|
|
1494
|
-
var lenToPosState = GetLenToPosState(2);
|
|
1495
|
-
$Encode_2(this$static._posSlotEncoder[lenToPosState], this$static._rangeEncoder, 63);
|
|
1496
|
-
$EncodeDirectBits(this$static._rangeEncoder, 67108863, 26);
|
|
1497
|
-
$ReverseEncode(this$static._posAlignEncoder, this$static._rangeEncoder, 15);
|
|
1498
|
-
}
|
|
1499
|
-
|
|
1500
|
-
function GetPosSlot(pos) {
|
|
1501
|
-
if (pos < 2048) {
|
|
1502
|
-
return g_FastPos[pos];
|
|
1503
|
-
}
|
|
1504
|
-
if (pos < 2097152) {
|
|
1505
|
-
return g_FastPos[pos >> 10] + 20;
|
|
1506
|
-
}
|
|
1507
|
-
return g_FastPos[pos >> 20] + 40;
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
function GetPosSlot2(pos) {
|
|
1511
|
-
if (pos < 131072) {
|
|
1512
|
-
return g_FastPos[pos >> 6] + 12;
|
|
1513
|
-
}
|
|
1514
|
-
if (pos < 134217728) {
|
|
1515
|
-
return g_FastPos[pos >> 16] + 32;
|
|
1516
|
-
}
|
|
1517
|
-
return g_FastPos[pos >> 26] + 52;
|
|
1518
|
-
}
|
|
1519
|
-
|
|
1520
|
-
function $Encode(this$static, rangeEncoder, symbol, posState) {
|
|
1521
|
-
if (symbol < 8) {
|
|
1522
|
-
$Encode_3(rangeEncoder, this$static._choice, 0, 0);
|
|
1523
|
-
$Encode_2(this$static._lowCoder[posState], rangeEncoder, symbol);
|
|
1524
|
-
} else {
|
|
1525
|
-
symbol -= 8;
|
|
1526
|
-
$Encode_3(rangeEncoder, this$static._choice, 0, 1);
|
|
1527
|
-
if (symbol < 8) {
|
|
1528
|
-
$Encode_3(rangeEncoder, this$static._choice, 1, 0);
|
|
1529
|
-
$Encode_2(this$static._midCoder[posState], rangeEncoder, symbol);
|
|
1530
|
-
} else {
|
|
1531
|
-
$Encode_3(rangeEncoder, this$static._choice, 1, 1);
|
|
1532
|
-
$Encode_2(this$static._highCoder, rangeEncoder, symbol - 8);
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
}
|
|
1536
|
-
|
|
1537
|
-
function $Encoder$LenEncoder(this$static) {
|
|
1538
|
-
this$static._choice = initDim(2);
|
|
1539
|
-
this$static._lowCoder = initDim(16);
|
|
1540
|
-
this$static._midCoder = initDim(16);
|
|
1541
|
-
this$static._highCoder = $BitTreeEncoder({}, 8);
|
|
1542
|
-
for (var posState = 0; posState < 16; ++posState) {
|
|
1543
|
-
this$static._lowCoder[posState] = $BitTreeEncoder({}, 3);
|
|
1544
|
-
this$static._midCoder[posState] = $BitTreeEncoder({}, 3);
|
|
1545
|
-
}
|
|
1546
|
-
return this$static;
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
function $Init_2(this$static, numPosStates) {
|
|
1550
|
-
InitBitModels(this$static._choice);
|
|
1551
|
-
for (var posState = 0; posState < numPosStates; ++posState) {
|
|
1552
|
-
InitBitModels(this$static._lowCoder[posState].Models);
|
|
1553
|
-
InitBitModels(this$static._midCoder[posState].Models);
|
|
1554
|
-
}
|
|
1555
|
-
InitBitModels(this$static._highCoder.Models);
|
|
1556
|
-
}
|
|
1557
|
-
|
|
1558
|
-
function $SetPrices(this$static, posState, numSymbols, prices, st) {
|
|
1559
|
-
var a0, a1, b0, b1, i;
|
|
1560
|
-
a0 = ProbPrices[this$static._choice[0] >>> 2];
|
|
1561
|
-
a1 = ProbPrices[2048 - this$static._choice[0] >>> 2];
|
|
1562
|
-
b0 = a1 + ProbPrices[this$static._choice[1] >>> 2];
|
|
1563
|
-
b1 = a1 + ProbPrices[2048 - this$static._choice[1] >>> 2];
|
|
1564
|
-
i = 0;
|
|
1565
|
-
for (i = 0; i < 8; ++i) {
|
|
1566
|
-
if (i >= numSymbols)
|
|
1567
|
-
return;
|
|
1568
|
-
prices[st + i] = a0 + $GetPrice_1(this$static._lowCoder[posState], i);
|
|
1569
|
-
}
|
|
1570
|
-
for (; i < 16; ++i) {
|
|
1571
|
-
if (i >= numSymbols)
|
|
1572
|
-
return;
|
|
1573
|
-
prices[st + i] = b0 + $GetPrice_1(this$static._midCoder[posState], i - 8);
|
|
1574
|
-
}
|
|
1575
|
-
for (; i < numSymbols; ++i) {
|
|
1576
|
-
prices[st + i] = b1 + $GetPrice_1(this$static._highCoder, i - 8 - 8);
|
|
1577
|
-
}
|
|
1578
|
-
}
|
|
1579
|
-
|
|
1580
|
-
function $Encode_0(this$static, rangeEncoder, symbol, posState) {
|
|
1581
|
-
$Encode(this$static, rangeEncoder, symbol, posState);
|
|
1582
|
-
if (--this$static._counters[posState] == 0) {
|
|
1583
|
-
$SetPrices(this$static, posState, this$static._tableSize, this$static._prices, posState * 272);
|
|
1584
|
-
this$static._counters[posState] = this$static._tableSize;
|
|
1585
|
-
}
|
|
1586
|
-
}
|
|
1587
|
-
|
|
1588
|
-
function $Encoder$LenPriceTableEncoder(this$static) {
|
|
1589
|
-
$Encoder$LenEncoder(this$static);
|
|
1590
|
-
this$static._prices = [];
|
|
1591
|
-
this$static._counters = [];
|
|
1592
|
-
return this$static;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
function $GetPrice(this$static, symbol, posState) {
|
|
1596
|
-
return this$static._prices[posState * 272 + symbol];
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
function $UpdateTables(this$static, numPosStates) {
|
|
1600
|
-
for (var posState = 0; posState < numPosStates; ++posState) {
|
|
1601
|
-
$SetPrices(this$static, posState, this$static._tableSize, this$static._prices, posState * 272);
|
|
1602
|
-
this$static._counters[posState] = this$static._tableSize;
|
|
1603
|
-
}
|
|
1604
|
-
}
|
|
1605
|
-
|
|
1606
|
-
function $Create_1(this$static, numPosBits, numPrevBits) {
|
|
1607
|
-
var i, numStates;
|
|
1608
|
-
if (this$static.m_Coders != null && this$static.m_NumPrevBits == numPrevBits && this$static.m_NumPosBits == numPosBits) {
|
|
1609
|
-
return;
|
|
1610
|
-
}
|
|
1611
|
-
this$static.m_NumPosBits = numPosBits;
|
|
1612
|
-
this$static.m_PosMask = (1 << numPosBits) - 1;
|
|
1613
|
-
this$static.m_NumPrevBits = numPrevBits;
|
|
1614
|
-
numStates = 1 << this$static.m_NumPrevBits + this$static.m_NumPosBits;
|
|
1615
|
-
this$static.m_Coders = initDim(numStates);
|
|
1616
|
-
for (i = 0; i < numStates; ++i) {
|
|
1617
|
-
this$static.m_Coders[i] = $Encoder$LiteralEncoder$Encoder2({});
|
|
1618
|
-
}
|
|
1619
|
-
}
|
|
1620
|
-
|
|
1621
|
-
function $GetSubCoder(this$static, pos, prevByte) {
|
|
1622
|
-
return this$static.m_Coders[((pos & this$static.m_PosMask) << this$static.m_NumPrevBits) + ((prevByte & 255) >>> 8 - this$static.m_NumPrevBits)];
|
|
1623
|
-
}
|
|
1624
|
-
|
|
1625
|
-
function $Init_3(this$static) {
|
|
1626
|
-
var i, numStates = 1 << this$static.m_NumPrevBits + this$static.m_NumPosBits;
|
|
1627
|
-
for (i = 0; i < numStates; ++i) {
|
|
1628
|
-
InitBitModels(this$static.m_Coders[i].m_Encoders);
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
function $Encode_1(this$static, rangeEncoder, symbol) {
|
|
1633
|
-
var bit, i, context = 1;
|
|
1634
|
-
for (i = 7; i >= 0; --i) {
|
|
1635
|
-
bit = symbol >> i & 1;
|
|
1636
|
-
$Encode_3(rangeEncoder, this$static.m_Encoders, context, bit);
|
|
1637
|
-
context = context << 1 | bit;
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
function $EncodeMatched(this$static, rangeEncoder, matchByte, symbol) {
|
|
1642
|
-
var bit, i, matchBit, state, same = 1, context = 1;
|
|
1643
|
-
for (i = 7; i >= 0; --i) {
|
|
1644
|
-
bit = symbol >> i & 1;
|
|
1645
|
-
state = context;
|
|
1646
|
-
if (same) {
|
|
1647
|
-
matchBit = matchByte >> i & 1;
|
|
1648
|
-
state += 1 + matchBit << 8;
|
|
1649
|
-
same = matchBit == bit;
|
|
1650
|
-
}
|
|
1651
|
-
$Encode_3(rangeEncoder, this$static.m_Encoders, state, bit);
|
|
1652
|
-
context = context << 1 | bit;
|
|
1653
|
-
}
|
|
1654
|
-
}
|
|
1655
|
-
|
|
1656
|
-
function $Encoder$LiteralEncoder$Encoder2(this$static) {
|
|
1657
|
-
this$static.m_Encoders = initDim(768);
|
|
1658
|
-
return this$static;
|
|
1659
|
-
}
|
|
1660
|
-
|
|
1661
|
-
function $GetPrice_0(this$static, matchMode, matchByte, symbol) {
|
|
1662
|
-
var bit, context = 1, i = 7, matchBit, price = 0;
|
|
1663
|
-
if (matchMode) {
|
|
1664
|
-
for (; i >= 0; --i) {
|
|
1665
|
-
matchBit = matchByte >> i & 1;
|
|
1666
|
-
bit = symbol >> i & 1;
|
|
1667
|
-
price += GetPrice(this$static.m_Encoders[(1 + matchBit << 8) + context], bit);
|
|
1668
|
-
context = context << 1 | bit;
|
|
1669
|
-
if (matchBit != bit) {
|
|
1670
|
-
--i;
|
|
1671
|
-
break;
|
|
1672
|
-
}
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
for (; i >= 0; --i) {
|
|
1676
|
-
bit = symbol >> i & 1;
|
|
1677
|
-
price += GetPrice(this$static.m_Encoders[context], bit);
|
|
1678
|
-
context = context << 1 | bit;
|
|
1679
|
-
}
|
|
1680
|
-
return price;
|
|
1681
|
-
}
|
|
1682
|
-
|
|
1683
|
-
function $MakeAsChar(this$static) {
|
|
1684
|
-
this$static.BackPrev = -1;
|
|
1685
|
-
this$static.Prev1IsChar = 0;
|
|
1686
|
-
}
|
|
1687
|
-
|
|
1688
|
-
function $MakeAsShortRep(this$static) {
|
|
1689
|
-
this$static.BackPrev = 0;
|
|
1690
|
-
this$static.Prev1IsChar = 0;
|
|
1691
|
-
}
|
|
1692
|
-
/** ce */
|
|
1693
|
-
|
|
1694
|
-
/** cs */
|
|
1695
|
-
function $BitTreeEncoder(this$static, numBitLevels) {
|
|
1696
|
-
this$static.NumBitLevels = numBitLevels;
|
|
1697
|
-
this$static.Models = initDim(1 << numBitLevels);
|
|
1698
|
-
return this$static;
|
|
1699
|
-
}
|
|
1700
|
-
|
|
1701
|
-
function $Encode_2(this$static, rangeEncoder, symbol) {
|
|
1702
|
-
var bit, bitIndex, m = 1;
|
|
1703
|
-
for (bitIndex = this$static.NumBitLevels; bitIndex != 0;) {
|
|
1704
|
-
--bitIndex;
|
|
1705
|
-
bit = symbol >>> bitIndex & 1;
|
|
1706
|
-
$Encode_3(rangeEncoder, this$static.Models, m, bit);
|
|
1707
|
-
m = m << 1 | bit;
|
|
1708
|
-
}
|
|
1709
|
-
}
|
|
1710
|
-
|
|
1711
|
-
function $GetPrice_1(this$static, symbol) {
|
|
1712
|
-
var bit, bitIndex, m = 1, price = 0;
|
|
1713
|
-
for (bitIndex = this$static.NumBitLevels; bitIndex != 0;) {
|
|
1714
|
-
--bitIndex;
|
|
1715
|
-
bit = symbol >>> bitIndex & 1;
|
|
1716
|
-
price += GetPrice(this$static.Models[m], bit);
|
|
1717
|
-
m = (m << 1) + bit;
|
|
1718
|
-
}
|
|
1719
|
-
return price;
|
|
1720
|
-
}
|
|
1721
|
-
|
|
1722
|
-
function $ReverseEncode(this$static, rangeEncoder, symbol) {
|
|
1723
|
-
var bit, i, m = 1;
|
|
1724
|
-
for (i = 0; i < this$static.NumBitLevels; ++i) {
|
|
1725
|
-
bit = symbol & 1;
|
|
1726
|
-
$Encode_3(rangeEncoder, this$static.Models, m, bit);
|
|
1727
|
-
m = m << 1 | bit;
|
|
1728
|
-
symbol >>= 1;
|
|
1729
|
-
}
|
|
1730
|
-
}
|
|
1731
|
-
|
|
1732
|
-
function $ReverseGetPrice(this$static, symbol) {
|
|
1733
|
-
var bit, i, m = 1, price = 0;
|
|
1734
|
-
for (i = this$static.NumBitLevels; i != 0; --i) {
|
|
1735
|
-
bit = symbol & 1;
|
|
1736
|
-
symbol >>>= 1;
|
|
1737
|
-
price += GetPrice(this$static.Models[m], bit);
|
|
1738
|
-
m = m << 1 | bit;
|
|
1739
|
-
}
|
|
1740
|
-
return price;
|
|
1741
|
-
}
|
|
1742
|
-
|
|
1743
|
-
function ReverseEncode(Models, startIndex, rangeEncoder, NumBitLevels, symbol) {
|
|
1744
|
-
var bit, i, m = 1;
|
|
1745
|
-
for (i = 0; i < NumBitLevels; ++i) {
|
|
1746
|
-
bit = symbol & 1;
|
|
1747
|
-
$Encode_3(rangeEncoder, Models, startIndex + m, bit);
|
|
1748
|
-
m = m << 1 | bit;
|
|
1749
|
-
symbol >>= 1;
|
|
1750
|
-
}
|
|
1751
|
-
}
|
|
1752
|
-
|
|
1753
|
-
function ReverseGetPrice(Models, startIndex, NumBitLevels, symbol) {
|
|
1754
|
-
var bit, i, m = 1, price = 0;
|
|
1755
|
-
for (i = NumBitLevels; i != 0; --i) {
|
|
1756
|
-
bit = symbol & 1;
|
|
1757
|
-
symbol >>>= 1;
|
|
1758
|
-
price += ProbPrices[((Models[startIndex + m] - bit ^ -bit) & 2047) >>> 2];
|
|
1759
|
-
m = m << 1 | bit;
|
|
1760
|
-
}
|
|
1761
|
-
return price;
|
|
1762
|
-
}
|
|
1763
|
-
/** ce */
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
function InitBitModels(probs) {
|
|
1767
|
-
for (var i = probs.length - 1; i >= 0; --i) {
|
|
1768
|
-
probs[i] = 1024;
|
|
1769
|
-
}
|
|
1770
|
-
}
|
|
1771
|
-
/** cs */
|
|
1772
|
-
var ProbPrices = (function () {
|
|
1773
|
-
var end, i, j, start, ProbPrices = [];
|
|
1774
|
-
for (i = 8; i >= 0; --i) {
|
|
1775
|
-
start = 1 << 9 - i - 1;
|
|
1776
|
-
end = 1 << 9 - i;
|
|
1777
|
-
for (j = start; j < end; ++j) {
|
|
1778
|
-
ProbPrices[j] = (i << 6) + (end - j << 6 >>> 9 - i - 1);
|
|
1779
|
-
}
|
|
1780
|
-
}
|
|
1781
|
-
return ProbPrices;
|
|
1782
|
-
}());
|
|
1783
|
-
|
|
1784
|
-
function $Encode_3(this$static, probs, index, symbol) {
|
|
1785
|
-
var newBound, prob = probs[index];
|
|
1786
|
-
newBound = (this$static.Range >>> 11) * prob;
|
|
1787
|
-
if (!symbol) {
|
|
1788
|
-
this$static.Range = newBound;
|
|
1789
|
-
probs[index] = prob + (2048 - prob >>> 5) << 16 >> 16;
|
|
1790
|
-
} else {
|
|
1791
|
-
this$static.Low = add(this$static.Low, and(fromInt(newBound), [4294967295, 0]));
|
|
1792
|
-
this$static.Range -= newBound;
|
|
1793
|
-
probs[index] = prob - (prob >>> 5) << 16 >> 16;
|
|
1794
|
-
}
|
|
1795
|
-
if (!(this$static.Range & -16777216)) {
|
|
1796
|
-
this$static.Range <<= 8;
|
|
1797
|
-
$ShiftLow(this$static);
|
|
1798
|
-
}
|
|
1799
|
-
}
|
|
1800
|
-
|
|
1801
|
-
function $EncodeDirectBits(this$static, v, numTotalBits) {
|
|
1802
|
-
for (var i = numTotalBits - 1; i >= 0; --i) {
|
|
1803
|
-
this$static.Range >>>= 1;
|
|
1804
|
-
if ((v >>> i & 1) == 1) {
|
|
1805
|
-
this$static.Low = add(this$static.Low, fromInt(this$static.Range));
|
|
1806
|
-
}
|
|
1807
|
-
if (!(this$static.Range & -16777216)) {
|
|
1808
|
-
this$static.Range <<= 8;
|
|
1809
|
-
$ShiftLow(this$static);
|
|
1810
|
-
}
|
|
1811
|
-
}
|
|
1812
|
-
}
|
|
1813
|
-
|
|
1814
|
-
function $GetProcessedSizeAdd(this$static) {
|
|
1815
|
-
return add(add(fromInt(this$static._cacheSize), this$static._position), [4, 0]);
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
function $Init_9(this$static) {
|
|
1819
|
-
this$static._position = P0_longLit;
|
|
1820
|
-
this$static.Low = P0_longLit;
|
|
1821
|
-
this$static.Range = -1;
|
|
1822
|
-
this$static._cacheSize = 1;
|
|
1823
|
-
this$static._cache = 0;
|
|
1824
|
-
}
|
|
1825
|
-
|
|
1826
|
-
function $ShiftLow(this$static) {
|
|
1827
|
-
var temp, LowHi = lowBits_0(shru(this$static.Low, 32));
|
|
1828
|
-
if (LowHi != 0 || compare(this$static.Low, [4278190080, 0]) < 0) {
|
|
1829
|
-
this$static._position = add(this$static._position, fromInt(this$static._cacheSize));
|
|
1830
|
-
temp = this$static._cache;
|
|
1831
|
-
do {
|
|
1832
|
-
$write(this$static.Stream, temp + LowHi);
|
|
1833
|
-
temp = 255;
|
|
1834
|
-
} while (--this$static._cacheSize != 0);
|
|
1835
|
-
this$static._cache = lowBits_0(this$static.Low) >>> 24;
|
|
1836
|
-
}
|
|
1837
|
-
++this$static._cacheSize;
|
|
1838
|
-
this$static.Low = shl(and(this$static.Low, [16777215, 0]), 8);
|
|
1839
|
-
}
|
|
1840
|
-
|
|
1841
|
-
function GetPrice(Prob, symbol) {
|
|
1842
|
-
return ProbPrices[((Prob - symbol ^ -symbol) & 2047) >>> 2];
|
|
1843
|
-
}
|
|
1844
|
-
|
|
1845
|
-
/** ce */
|
|
1846
|
-
|
|
1847
|
-
/** cs */
|
|
1848
|
-
function encode(s) {
|
|
1849
|
-
var ch, chars = [], data, elen = 0, i, l = s.length;
|
|
1850
|
-
/// Be able to handle binary arrays and buffers.
|
|
1851
|
-
if (typeof s == "object") {
|
|
1852
|
-
return s;
|
|
1853
|
-
} else {
|
|
1854
|
-
$getChars(s, 0, l, chars, 0);
|
|
1855
|
-
}
|
|
1856
|
-
/// Add extra spaces in the array to break up the unicode symbols.
|
|
1857
|
-
for (i = 0; i < l; ++i) {
|
|
1858
|
-
ch = chars[i];
|
|
1859
|
-
if (ch >= 1 && ch <= 127) {
|
|
1860
|
-
++elen;
|
|
1861
|
-
} else if (!ch || ch >= 128 && ch <= 2047) {
|
|
1862
|
-
elen += 2;
|
|
1863
|
-
} else {
|
|
1864
|
-
elen += 3;
|
|
1865
|
-
}
|
|
1866
|
-
}
|
|
1867
|
-
data = [];
|
|
1868
|
-
elen = 0;
|
|
1869
|
-
for (i = 0; i < l; ++i) {
|
|
1870
|
-
ch = chars[i];
|
|
1871
|
-
if (ch >= 1 && ch <= 127) {
|
|
1872
|
-
data[elen++] = ch << 24 >> 24;
|
|
1873
|
-
} else if (!ch || ch >= 128 && ch <= 2047) {
|
|
1874
|
-
data[elen++] = (192 | ch >> 6 & 31) << 24 >> 24;
|
|
1875
|
-
data[elen++] = (128 | ch & 63) << 24 >> 24;
|
|
1876
|
-
} else {
|
|
1877
|
-
data[elen++] = (224 | ch >> 12 & 15) << 24 >> 24;
|
|
1878
|
-
data[elen++] = (128 | ch >> 6 & 63) << 24 >> 24;
|
|
1879
|
-
data[elen++] = (128 | ch & 63) << 24 >> 24;
|
|
1880
|
-
}
|
|
1881
|
-
}
|
|
1882
|
-
return data;
|
|
1883
|
-
}
|
|
1884
|
-
/** ce */
|
|
1885
|
-
|
|
1886
|
-
function toDouble(a) {
|
|
1887
|
-
return a[1] + a[0];
|
|
1888
|
-
}
|
|
1889
|
-
|
|
1890
|
-
/** cs */
|
|
1891
|
-
function compress(str, mode, on_finish, on_progress) {
|
|
1892
|
-
var this$static = {},
|
|
1893
|
-
percent,
|
|
1894
|
-
cbn, /// A callback number should be supplied instead of on_finish() if we are using Web Workers.
|
|
1895
|
-
sync = typeof on_finish == "undefined" && typeof on_progress == "undefined";
|
|
1896
|
-
|
|
1897
|
-
if (typeof on_finish != "function") {
|
|
1898
|
-
cbn = on_finish;
|
|
1899
|
-
on_finish = on_progress = 0;
|
|
1900
|
-
}
|
|
1901
|
-
|
|
1902
|
-
on_progress = on_progress || function(percent) {
|
|
1903
|
-
if (typeof cbn == "undefined")
|
|
1904
|
-
return;
|
|
1905
|
-
|
|
1906
|
-
return update_progress(percent, cbn);
|
|
1907
|
-
};
|
|
1908
|
-
|
|
1909
|
-
on_finish = on_finish || function(res, err) {
|
|
1910
|
-
if (typeof cbn == "undefined")
|
|
1911
|
-
return;
|
|
1912
|
-
|
|
1913
|
-
return postMessage({
|
|
1914
|
-
action: action_compress,
|
|
1915
|
-
cbn: cbn,
|
|
1916
|
-
result: res,
|
|
1917
|
-
error: err
|
|
1918
|
-
});
|
|
1919
|
-
};
|
|
1920
|
-
|
|
1921
|
-
if (sync) {
|
|
1922
|
-
this$static.c = $LZMAByteArrayCompressor({}, encode(str), get_mode_obj(mode));
|
|
1923
|
-
while ($processChunk(this$static.c.chunker));
|
|
1924
|
-
return $toByteArray(this$static.c.output);
|
|
1925
|
-
}
|
|
1926
|
-
|
|
1927
|
-
try {
|
|
1928
|
-
this$static.c = $LZMAByteArrayCompressor({}, encode(str), get_mode_obj(mode));
|
|
1929
|
-
|
|
1930
|
-
on_progress(0);
|
|
1931
|
-
} catch (err) {
|
|
1932
|
-
return on_finish(null, err);
|
|
1933
|
-
}
|
|
1934
|
-
|
|
1935
|
-
function do_action() {
|
|
1936
|
-
try {
|
|
1937
|
-
var res, start = (new Date()).getTime();
|
|
1938
|
-
|
|
1939
|
-
while ($processChunk(this$static.c.chunker)) {
|
|
1940
|
-
percent = toDouble(this$static.c.chunker.inBytesProcessed) / toDouble(this$static.c.length_0);
|
|
1941
|
-
/// If about 200 miliseconds have passed, update the progress.
|
|
1942
|
-
if ((new Date()).getTime() - start > 200) {
|
|
1943
|
-
on_progress(percent);
|
|
1944
|
-
|
|
1945
|
-
wait(do_action, 0);
|
|
1946
|
-
return 0;
|
|
1947
|
-
}
|
|
1948
|
-
}
|
|
1949
|
-
|
|
1950
|
-
on_progress(1);
|
|
1951
|
-
|
|
1952
|
-
res = $toByteArray(this$static.c.output);
|
|
1953
|
-
|
|
1954
|
-
/// delay so we don’t catch errors from the on_finish handler
|
|
1955
|
-
wait(on_finish.bind(null, res), 0);
|
|
1956
|
-
} catch (err) {
|
|
1957
|
-
on_finish(null, err);
|
|
1958
|
-
}
|
|
1959
|
-
}
|
|
1960
|
-
|
|
1961
|
-
///NOTE: We need to wait to make sure it is always async.
|
|
1962
|
-
wait(do_action, 0);
|
|
1963
|
-
}
|
|
1964
|
-
/** ce */
|
|
1965
|
-
|
|
1966
|
-
/** cs */
|
|
1967
|
-
var get_mode_obj = (function () {
|
|
1968
|
-
/// s is dictionarySize
|
|
1969
|
-
/// f is fb
|
|
1970
|
-
/// m is matchFinder
|
|
1971
|
-
///NOTE: Because some values are always the same, they have been removed.
|
|
1972
|
-
/// lc is always 3
|
|
1973
|
-
/// lp is always 0
|
|
1974
|
-
/// pb is always 2
|
|
1975
|
-
var modes = [
|
|
1976
|
-
{s: 16, f: 64, m: 0},
|
|
1977
|
-
{s: 20, f: 64, m: 0},
|
|
1978
|
-
{s: 19, f: 64, m: 1},
|
|
1979
|
-
{s: 20, f: 64, m: 1},
|
|
1980
|
-
{s: 21, f: 128, m: 1},
|
|
1981
|
-
{s: 22, f: 128, m: 1},
|
|
1982
|
-
{s: 23, f: 128, m: 1},
|
|
1983
|
-
{s: 24, f: 255, m: 1},
|
|
1984
|
-
{s: 25, f: 255, m: 1}
|
|
1985
|
-
];
|
|
1986
|
-
|
|
1987
|
-
return function (mode) {
|
|
1988
|
-
return modes[mode - 1] || modes[6];
|
|
1989
|
-
};
|
|
1990
|
-
}());
|
|
1991
|
-
/** ce */
|
|
1992
|
-
|
|
1993
|
-
/// If we're in a Web Worker, create the onmessage() communication channel.
|
|
1994
|
-
///NOTE: This seems to be the most reliable way to detect this.
|
|
1995
|
-
if (typeof onmessage != "undefined" && (typeof window == "undefined" || typeof window.document == "undefined")) {
|
|
1996
|
-
(function () {
|
|
1997
|
-
/* jshint -W020 */
|
|
1998
|
-
/// Create the global onmessage function.
|
|
1999
|
-
onmessage = function (e) {
|
|
2000
|
-
if (e && e.data) {
|
|
2001
|
-
|
|
2002
|
-
if (e.data.action == action_compress) {
|
|
2003
|
-
LZMA.compress(e.data.data, e.data.mode, e.data.cbn);
|
|
2004
|
-
}
|
|
2005
|
-
/// do:if (e.data.action == action_decompress) {
|
|
2006
|
-
/// do: LZMA.decompress(e.data.data, e.data.cbn);
|
|
2007
|
-
/// do:}
|
|
2008
|
-
}
|
|
2009
|
-
};
|
|
2010
|
-
}());
|
|
2011
|
-
}
|
|
2012
|
-
|
|
2013
|
-
return {
|
|
2014
|
-
|
|
2015
|
-
compress: compress
|
|
2016
|
-
/// do:decompress: decompress
|
|
2017
|
-
};
|
|
2018
|
-
}());
|
|
2019
|
-
|
|
2020
|
-
/// This is used by browsers that do not support web workers (and possibly Node.js).
|
|
2021
|
-
this.LZMA = this.LZMA_WORKER = LZMA;
|