@iccandle/widget-web-trading 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/web-trading-widget.cjs +6 -6
- package/dist/web-trading-widget.css +1 -1
- package/dist/web-trading-widget.js +709 -674
- package/package.json +1 -1
|
@@ -4,10 +4,10 @@ var ml = (e) => {
|
|
|
4
4
|
};
|
|
5
5
|
var Qh = (e, t, n) => t in e ? qh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
6
|
var ft = (e, t, n) => Qh(e, typeof t != "symbol" ? t + "" : t, n), _s = (e, t, n) => t.has(e) || ml("Cannot " + n);
|
|
7
|
-
var P = (e, t, n) => (_s(e, t, "read from private field"), n ? n.call(e) : t.get(e)), le = (e, t, n) => t.has(e) ? ml("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n),
|
|
7
|
+
var P = (e, t, n) => (_s(e, t, "read from private field"), n ? n.call(e) : t.get(e)), le = (e, t, n) => t.has(e) ? ml("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Y = (e, t, n, r) => (_s(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n), _e = (e, t, n) => (_s(e, t, "access private method"), n);
|
|
8
8
|
var Ui = (e, t, n, r) => ({
|
|
9
9
|
set _(i) {
|
|
10
|
-
|
|
10
|
+
Y(e, t, i, n);
|
|
11
11
|
},
|
|
12
12
|
get _() {
|
|
13
13
|
return P(e, t, r);
|
|
@@ -48,19 +48,19 @@ function OE(e) {
|
|
|
48
48
|
}
|
|
49
49
|
const Jh = { symbol: "Symbol", back: "Back", continue: "Continue", error: "Error", selectTradingAccount: "Select trading account", selectAccountDescription: "Choose an account to continue trading on the chart.", loadingAccounts: "Loading accounts…", noTradingAccounts: "No trading accounts available.", selectAccount: "Select account", createAccount: "Create account", ticket: "Ticket", serverTime: "Server time", type: "Type", volume: "Volume", price: "Price", stopLossShort: "S / L", takeProfitShort: "T / P", swap: "Swap", profit: "Profit", comment: "Comment", close: "Close", balance: "Balance", equity: "Equity", margin: "Margin", freeMargin: "Free margin", level: "Level", trade: "Trade", history: "History", terminalPanelTabs: "Terminal panel tabs", closeAll: "Close all", closing: "Closing…", refresh: "Refresh", refreshing: "Refreshing…", refreshDealHistory: "Refresh deal history", notAvailable: "N/A", closePositionTicket: "Close position #{ticket}", closePosition: "Close position", deleteOrderTicket: "Delete order #{ticket}", deleteOrder: "Delete order", resizeTerminalPanel: "Resize terminal panel", loading: "Loading…", noPositions: "You don't have any positions", createNewOrder: "Create New Order", chartSidePanel: "Chart side panel", scanResult: "Scan Result", openTerminal: "Open terminal", orders: "Orders", terminal: "Terminal", closeTerminalPanel: "Close terminal panel", buy: "Buy", sell: "Sell", balanceType: "Balance", credit: "Credit", deal: "Deal", login: "Login", action: "Action", entry: "Entry", time: "Time", localTime: "Local time", entryIn: "IN", entryOut: "OUT", selectAccountForDeals: "Select an account to view deal history", noDealsFound: "No deals found", seeFullDealHistory: "See full deal history", unknownAction: "Action {action}", failedClosePosition: "Failed to close position.", positionClosed: "Position #{ticket} closed at {price}.", closePositionNotConfigured: "Close position is not configured.", onePositionClosed: "1 position closed.", positionsClosed: "{count} positions closed.", failedClosePositions: "Failed to close positions.", closedFailedSummary: "Closed {closed}, failed {failed}.", failedDeleteOrder: "Failed to delete order.", orderDeleted: "Order #{ticket} deleted.", positionUpdated: "Position #{ticket} updated.", stopLoss: "Stop Loss", takeProfit: "Take Profit", stopPrice: "Stop Price", limitPrice: "Limit Price", volumeSetting: "Volume Setting", riskManagement: "Risk Management", expiration: "Expiration", orderExecutionType: "Order execution type", orderExpirationType: "Order expiration type", expirationTime: "Expiration time", expirationDay: "Expiration day", placed: "Placed", closeConfirmation: "Close confirmation", closePositionPanel: "Close position panel", closeOrderPanel: "Close order panel", minimizeToQuickOrder: "Minimize to quick order panel", moveQuickOrderPanel: "Move quick order panel", decreaseVolume: "Decrease volume", increaseVolume: "Increase volume", expandQuickOrderPanel: "Expand quick order panel", collapseQuickOrderPanel: "Collapse quick order panel", searchSymbol: "Search symbol", bid: "Bid", ask: "Ask", lots: "Lots", orderPrice: "Order Price", sellByMarket: "Sell by Market", buyByMarket: "Buy by Market", placeOrder: "Place {label}", selectAccountToTrade: "Select a trading account to start placing orders.", executionMarket: "Market Execution", executionBuyLimit: "Buy Limit", executionSellLimit: "Sell Limit", executionBuyStop: "Buy Stop", executionSellStop: "Sell Stop", executionBuyStopLimit: "Buy Stop Limit", executionSellStopLimit: "Sell Stop Limit", expirationGtc: "GTC", expirationToday: "Today", expirationSpecified: "Specified", expirationSpecifiedDay: "Specified Day", ok: "OK", orderAtPrice: "at {price}", modify: "Modify", failedModifyPosition: "Failed to modify position.", failedModifyOrder: "Failed to modify order.", positionClosedSimple: "Position #{ticket} closed.", orderUpdated: "Order #{ticket} updated.", closePositionDetail: "Close #{ticket} {type} {volume} {symbol} {openPrice} at {closePrice} with Profit {profit}", deleteOrderDetail: "Delete #{ticket} {typeLabel} {volume} {symbol} at {price}", pleaseSelectTradingAccount: "Please select a trading account.", pleaseSetLimitPrice: "Please set a limit price for this order.", pleaseSetOrderPrice: "Please set an order price for pending orders.", pleaseSetStopPrice: "Please set a stop price for stop limit orders.", pleaseSetExpirationDate: "Please set an expiration date for this order.", pleaseSetStopAndLimitPrices: "Please set both stop and limit prices.", failedPlaceOrder: "Failed to place order.", orderNotAccepted: "Order was not accepted.", newOrder: "New Order", selectYourTradingAccount: "Select your trading account", switchingAccount: "Switching account…", activeAccount: "Active" }, eg = {
|
|
50
50
|
WebTrading: Jh
|
|
51
|
-
}, tg = { symbol: "
|
|
51
|
+
}, tg = { symbol: "代码", back: "返回", continue: "继续", error: "错误", selectTradingAccount: "选择交易账户", selectAccountDescription: "选择一个账户以继续在图表上交易。", loadingAccounts: "正在加载账户…", noTradingAccounts: "暂无可用交易账户。", selectAccount: "选择账户", createAccount: "创建账户", ticket: "订单号", serverTime: "服务器时间", type: "类型", volume: "交易量", price: "价格", stopLossShort: "止损", takeProfitShort: "止盈", swap: "隔夜利息", profit: "利润", comment: "备注", close: "关闭", balance: "余额", equity: "净值", margin: "保证金", freeMargin: "可用保证金", level: "等级", trade: "交易", history: "历史", terminalPanelTabs: "终端面板标签", closeAll: "全部关闭", closing: "正在关闭…", refresh: "刷新", refreshing: "正在刷新…", refreshDealHistory: "刷新交易历史", notAvailable: "不适用", closePositionTicket: "关闭仓位 #{ticket}", closePosition: "关闭仓位", deleteOrderTicket: "删除订单 #{ticket}", deleteOrder: "删除订单", resizeTerminalPanel: "调整终端面板大小", loading: "正在加载…", noPositions: "您当前没有任何仓位", createNewOrder: "创建新订单", chartSidePanel: "图表侧边栏", scanResult: "扫描结果", openTerminal: "打开终端", orders: "订单", terminal: "终端", closeTerminalPanel: "关闭终端面板", buy: "买入", sell: "卖出", balanceType: "余额", credit: "信用额", deal: "成交", login: "登录", action: "操作", entry: "入场", time: "时间", localTime: "本地时间", entryIn: "入", entryOut: "出", selectAccountForDeals: "选择一个账户查看交易历史", noDealsFound: "未找到交易记录", seeFullDealHistory: "查看完整交易历史", unknownAction: "操作 {action}", failedClosePosition: "关闭仓位失败。", positionClosed: "仓位 #{ticket} 已在 {price} 关闭。", closePositionNotConfigured: "关闭仓位功能未配置。", onePositionClosed: "已关闭 1 个仓位。", positionsClosed: "已关闭 {count} 个仓位。", failedClosePositions: "关闭仓位失败。", closedFailedSummary: "已关闭 {closed} 个,失败 {failed} 个。", failedDeleteOrder: "删除订单失败。", orderDeleted: "订单 #{ticket} 已删除。", positionUpdated: "仓位 #{ticket} 已更新。", stopLoss: "止损", takeProfit: "止盈", stopPrice: "止损价格", limitPrice: "限价", volumeSetting: "交易量设置", riskManagement: "风险管理", expiration: "到期时间", orderExecutionType: "订单执行类型", orderExpirationType: "订单到期类型", expirationTime: "到期时间", expirationDay: "到期日期", placed: "已提交", closeConfirmation: "关闭确认", closePositionPanel: "关闭仓位面板", closeOrderPanel: "关闭订单面板", minimizeToQuickOrder: "最小化到快速下单面板", moveQuickOrderPanel: "移动快速下单面板", decreaseVolume: "减少交易量", increaseVolume: "增加交易量", expandQuickOrderPanel: "展开快速下单面板", collapseQuickOrderPanel: "收起快速下单面板", searchSymbol: "搜索交易品种", bid: "卖价", ask: "买价", lots: "手数", orderPrice: "订单价格", sellByMarket: "按市价卖出", buyByMarket: "按市价买入", placeOrder: "下单 {label}", selectAccountToTrade: "请选择一个交易账户以开始下单。", executionMarket: "市价执行", executionBuyLimit: "买入限价", executionSellLimit: "卖出限价", executionBuyStop: "买入止损", executionSellStop: "卖出止损", executionBuyStopLimit: "买入止损限价", executionSellStopLimit: "卖出止损限价", expirationGtc: "永久有效", expirationToday: "今天", expirationSpecified: "指定时间", expirationSpecifiedDay: "指定日期", ok: "确定", orderAtPrice: "于 {price}", modify: "修改", failedModifyPosition: "修改仓位失败。", failedModifyOrder: "修改订单失败。", positionClosedSimple: "仓位 #{ticket} 已关闭。", orderUpdated: "订单 #{ticket} 已更新。", closePositionDetail: "关闭 #{ticket} {type} {volume} {symbol} {openPrice} 于 {closePrice},利润为 {profit}", deleteOrderDetail: "删除 #{ticket} {typeLabel} {volume} {symbol} 于 {price}", pleaseSelectTradingAccount: "请选择一个交易账户。", pleaseSetLimitPrice: "请为此订单设置限价。", pleaseSetOrderPrice: "请为挂单设置订单价格。", pleaseSetStopPrice: "请为止损限价单设置止损价格。", pleaseSetExpirationDate: "请为此订单设置到期日期。", pleaseSetStopAndLimitPrices: "请同时设置止损价格和限价。", failedPlaceOrder: "下单失败。", orderNotAccepted: "订单未被接受。", newOrder: "新订单", selectYourTradingAccount: "选择您的交易账户", switchingAccount: "正在切换账户…", activeAccount: "活跃" }, ng = {
|
|
52
52
|
WebTrading: tg
|
|
53
|
-
}, rg = { symbol: "
|
|
53
|
+
}, rg = { symbol: "Ký hiệu", back: "Quay lại", continue: "Tiếp tục", error: "Lỗi", selectTradingAccount: "Chọn tài khoản giao dịch", selectAccountDescription: "Chọn một tài khoản để tiếp tục giao dịch trên biểu đồ.", loadingAccounts: "Đang tải tài khoản…", noTradingAccounts: "Không có tài khoản giao dịch nào khả dụng.", selectAccount: "Chọn tài khoản", createAccount: "Tạo tài khoản", ticket: "Mã lệnh", serverTime: "Thời gian máy chủ", type: "Loại", volume: "Khối lượng", price: "Giá", stopLossShort: "S / L", takeProfitShort: "T / P", swap: "Phí qua đêm", profit: "Lợi nhuận", comment: "Ghi chú", close: "Đóng", balance: "Số dư", equity: "Vốn chủ sở hữu", margin: "Ký quỹ", freeMargin: "Ký quỹ khả dụng", level: "Mức", trade: "Giao dịch", history: "Lịch sử", terminalPanelTabs: "Các tab bảng điều khiển", closeAll: "Đóng tất cả", closing: "Đang đóng…", refresh: "Làm mới", refreshing: "Đang làm mới…", refreshDealHistory: "Làm mới lịch sử giao dịch", notAvailable: "Không có", closePositionTicket: "Đóng vị thế #{ticket}", closePosition: "Đóng vị thế", deleteOrderTicket: "Xóa lệnh #{ticket}", deleteOrder: "Xóa lệnh", resizeTerminalPanel: "Thay đổi kích thước bảng điều khiển", loading: "Đang tải…", noPositions: "Bạn không có vị thế nào", createNewOrder: "Tạo lệnh mới", chartSidePanel: "Bảng bên biểu đồ", scanResult: "Kết quả quét", openTerminal: "Mở bảng giao dịch", orders: "Lệnh", terminal: "Bảng giao dịch", closeTerminalPanel: "Đóng bảng giao dịch", buy: "Mua", sell: "Bán", balanceType: "Số dư", credit: "Tín dụng", deal: "Giao dịch", login: "Đăng nhập", action: "Hành động", entry: "Vào lệnh", time: "Thời gian", localTime: "Giờ địa phương", entryIn: "Vào", entryOut: "Ra", selectAccountForDeals: "Chọn một tài khoản để xem lịch sử giao dịch", noDealsFound: "Không tìm thấy giao dịch nào", seeFullDealHistory: "Xem toàn bộ lịch sử giao dịch", unknownAction: "Hành động {action}", failedClosePosition: "Không thể đóng vị thế.", positionClosed: "Vị thế #{ticket} đã được đóng tại {price}.", closePositionNotConfigured: "Chức năng đóng vị thế chưa được cấu hình.", onePositionClosed: "Đã đóng 1 vị thế.", positionsClosed: "Đã đóng {count} vị thế.", failedClosePositions: "Không thể đóng các vị thế.", closedFailedSummary: "Đã đóng {closed}, thất bại {failed}.", failedDeleteOrder: "Không thể xóa lệnh.", orderDeleted: "Lệnh #{ticket} đã được xóa.", positionUpdated: "Vị thế #{ticket} đã được cập nhật.", stopLoss: "Cắt lỗ", takeProfit: "Chốt lời", stopPrice: "Giá dừng", limitPrice: "Giá giới hạn", volumeSetting: "Cài đặt khối lượng", riskManagement: "Quản lý rủi ro", expiration: "Hết hạn", orderExecutionType: "Loại khớp lệnh", orderExpirationType: "Loại hết hạn của lệnh", expirationTime: "Thời gian hết hạn", expirationDay: "Ngày hết hạn", placed: "Đã đặt", closeConfirmation: "Xác nhận đóng", closePositionPanel: "Bảng đóng vị thế", closeOrderPanel: "Bảng đóng lệnh", minimizeToQuickOrder: "Thu nhỏ thành bảng đặt lệnh nhanh", moveQuickOrderPanel: "Di chuyển bảng đặt lệnh nhanh", decreaseVolume: "Giảm khối lượng", increaseVolume: "Tăng khối lượng", expandQuickOrderPanel: "Mở rộng bảng đặt lệnh nhanh", collapseQuickOrderPanel: "Thu gọn bảng đặt lệnh nhanh", searchSymbol: "Tìm kiếm mã giao dịch", bid: "Giá bán", ask: "Giá mua", lots: "Lot", orderPrice: "Giá đặt lệnh", sellByMarket: "Bán theo giá thị trường", buyByMarket: "Mua theo giá thị trường", placeOrder: "Đặt {label}", selectAccountToTrade: "Chọn một tài khoản giao dịch để bắt đầu đặt lệnh.", executionMarket: "Khớp lệnh thị trường", executionBuyLimit: "Buy Limit", executionSellLimit: "Sell Limit", executionBuyStop: "Buy Stop", executionSellStop: "Sell Stop", executionBuyStopLimit: "Buy Stop Limit", executionSellStopLimit: "Sell Stop Limit", expirationGtc: "GTC", expirationToday: "Hôm nay", expirationSpecified: "Chỉ định", expirationSpecifiedDay: "Ngày chỉ định", ok: "OK", orderAtPrice: "tại {price}", modify: "Chỉnh sửa", failedModifyPosition: "Không thể chỉnh sửa vị thế.", failedModifyOrder: "Không thể chỉnh sửa lệnh.", positionClosedSimple: "Vị thế #{ticket} đã được đóng.", orderUpdated: "Lệnh #{ticket} đã được cập nhật.", closePositionDetail: "Đóng #{ticket} {type} {volume} {symbol} từ {openPrice} tại {closePrice} với lợi nhuận {profit}", deleteOrderDetail: "Xóa #{ticket} {typeLabel} {volume} {symbol} tại {price}", pleaseSelectTradingAccount: "Vui lòng chọn một tài khoản giao dịch.", pleaseSetLimitPrice: "Vui lòng đặt giá giới hạn cho lệnh này.", pleaseSetOrderPrice: "Vui lòng đặt giá cho các lệnh chờ.", pleaseSetStopPrice: "Vui lòng đặt giá dừng cho các lệnh stop limit.", pleaseSetExpirationDate: "Vui lòng đặt ngày hết hạn cho lệnh này.", pleaseSetStopAndLimitPrices: "Vui lòng đặt cả giá dừng và giá giới hạn.", failedPlaceOrder: "Không thể đặt lệnh.", orderNotAccepted: "Lệnh không được chấp nhận.", newOrder: "Lệnh mới", selectYourTradingAccount: "Chọn tài khoản giao dịch của bạn", switchingAccount: "Đang chuyển tài khoản…", activeAccount: "Đang hoạt động" }, ig = {
|
|
54
54
|
WebTrading: rg
|
|
55
|
-
}, og = { symbol: "สัญลักษณ์", back: "กลับ", continue: "ดำเนินการต่อ", error: "ข้อผิดพลาด", selectTradingAccount: "
|
|
55
|
+
}, og = { symbol: "สัญลักษณ์", back: "กลับ", continue: "ดำเนินการต่อ", error: "ข้อผิดพลาด", selectTradingAccount: "เลือกบัญชีซื้อขาย", selectAccountDescription: "เลือกบัญชีเพื่อดำเนินการซื้อขายบนกราฟต่อ", loadingAccounts: "กำลังโหลดบัญชี…", noTradingAccounts: "ไม่มีบัญชีซื้อขายที่ใช้งานได้", selectAccount: "เลือกบัญชี", createAccount: "สร้างบัญชี", ticket: "หมายเลขคำสั่ง", serverTime: "เวลาของเซิร์ฟเวอร์", type: "ประเภท", volume: "ปริมาณ", price: "ราคา", stopLossShort: "S / L", takeProfitShort: "T / P", swap: "สวอป", profit: "กำไร", comment: "หมายเหตุ", close: "ปิด", balance: "ยอดคงเหลือ", equity: "ส่วนของผู้ถือหุ้น", margin: "มาร์จิ้น", freeMargin: "มาร์จิ้นคงเหลือ", level: "ระดับ", trade: "ซื้อขาย", history: "ประวัติ", terminalPanelTabs: "แท็บแผงเทอร์มินัล", closeAll: "ปิดทั้งหมด", closing: "กำลังปิด…", refresh: "รีเฟรช", refreshing: "กำลังรีเฟรช…", refreshDealHistory: "รีเฟรชประวัติการซื้อขาย", notAvailable: "ไม่มีข้อมูล", closePositionTicket: "ปิดสถานะ #{ticket}", closePosition: "ปิดสถานะ", deleteOrderTicket: "ลบคำสั่ง #{ticket}", deleteOrder: "ลบคำสั่ง", resizeTerminalPanel: "ปรับขนาดแผงเทอร์มินัล", loading: "กำลังโหลด…", noPositions: "คุณไม่มีสถานะใด ๆ", createNewOrder: "สร้างคำสั่งใหม่", chartSidePanel: "แผงด้านข้างกราฟ", scanResult: "ผลการสแกน", openTerminal: "เปิดเทอร์มินัล", orders: "คำสั่งซื้อขาย", terminal: "เทอร์มินัล", closeTerminalPanel: "ปิดแผงเทอร์มินัล", buy: "ซื้อ", sell: "ขาย", balanceType: "ยอดคงเหลือ", credit: "เครดิต", deal: "ดีล", login: "เข้าสู่ระบบ", action: "การดำเนินการ", entry: "รายการ", time: "เวลา", localTime: "เวลาท้องถิ่น", entryIn: "เข้า", entryOut: "ออก", selectAccountForDeals: "เลือกบัญชีเพื่อดูประวัติการซื้อขาย", noDealsFound: "ไม่พบรายการซื้อขาย", seeFullDealHistory: "ดูประวัติการซื้อขายทั้งหมด", unknownAction: "การดำเนินการ {action}", failedClosePosition: "ไม่สามารถปิดสถานะได้", positionClosed: "สถานะ #{ticket} ถูกปิดที่ราคา {price}", closePositionNotConfigured: "ยังไม่ได้ตั้งค่าการปิดสถานะ", onePositionClosed: "ปิดสถานะแล้ว 1 รายการ", positionsClosed: "ปิดสถานะแล้ว {count} รายการ", failedClosePositions: "ไม่สามารถปิดสถานะได้", closedFailedSummary: "ปิดแล้ว {closed} รายการ ล้มเหลว {failed} รายการ", failedDeleteOrder: "ไม่สามารถลบคำสั่งได้", orderDeleted: "ลบคำสั่ง #{ticket} แล้ว", positionUpdated: "สถานะ #{ticket} ได้รับการอัปเดตแล้ว", stopLoss: "หยุดขาดทุน", takeProfit: "ทำกำไร", stopPrice: "ราคาหยุด", limitPrice: "ราคาจำกัด", volumeSetting: "การตั้งค่าปริมาณ", riskManagement: "การจัดการความเสี่ยง", expiration: "วันหมดอายุ", orderExecutionType: "ประเภทการดำเนินการคำสั่ง", orderExpirationType: "ประเภทวันหมดอายุของคำสั่ง", expirationTime: "เวลาหมดอายุ", expirationDay: "วันหมดอายุ", placed: "ส่งแล้ว", closeConfirmation: "ยืนยันการปิด", closePositionPanel: "แผงปิดสถานะ", closeOrderPanel: "แผงปิดคำสั่ง", minimizeToQuickOrder: "ย่อเป็นแผงคำสั่งด่วน", moveQuickOrderPanel: "ย้ายแผงคำสั่งด่วน", decreaseVolume: "ลดปริมาณ", increaseVolume: "เพิ่มปริมาณ", expandQuickOrderPanel: "ขยายแผงคำสั่งด่วน", collapseQuickOrderPanel: "ยุบแผงคำสั่งด่วน", searchSymbol: "ค้นหาสัญลักษณ์", bid: "ราคาขาย", ask: "ราคาซื้อ", lots: "ล็อต", orderPrice: "ราคาคำสั่ง", sellByMarket: "ขายตามราคาตลาด", buyByMarket: "ซื้อตามราคาตลาด", placeOrder: "ส่งคำสั่ง {label}", selectAccountToTrade: "เลือกบัญชีซื้อขายเพื่อเริ่มส่งคำสั่ง", executionMarket: "ดำเนินการตามราคาตลาด", executionBuyLimit: "Buy Limit", executionSellLimit: "Sell Limit", executionBuyStop: "Buy Stop", executionSellStop: "Sell Stop", executionBuyStopLimit: "Buy Stop Limit", executionSellStopLimit: "Sell Stop Limit", expirationGtc: "GTC", expirationToday: "วันนี้", expirationSpecified: "กำหนดเอง", expirationSpecifiedDay: "วันที่กำหนด", ok: "ตกลง", orderAtPrice: "ที่ราคา {price}", modify: "แก้ไข", failedModifyPosition: "ไม่สามารถแก้ไขสถานะได้", failedModifyOrder: "ไม่สามารถแก้ไขคำสั่งได้", positionClosedSimple: "สถานะ #{ticket} ถูกปิดแล้ว", orderUpdated: "คำสั่ง #{ticket} ได้รับการอัปเดตแล้ว", closePositionDetail: "ปิด #{ticket} {type} {volume} {symbol} {openPrice} ที่ {closePrice} ด้วยกำไร {profit}", deleteOrderDetail: "ลบ #{ticket} {typeLabel} {volume} {symbol} ที่ราคา {price}", pleaseSelectTradingAccount: "กรุณาเลือกบัญชีซื้อขาย", pleaseSetLimitPrice: "กรุณากำหนดราคาจำกัดสำหรับคำสั่งนี้", pleaseSetOrderPrice: "กรุณากำหนดราคาสำหรับคำสั่งรอดำเนินการ", pleaseSetStopPrice: "กรุณากำหนดราคาหยุดสำหรับคำสั่ง Stop Limit", pleaseSetExpirationDate: "กรุณากำหนดวันหมดอายุสำหรับคำสั่งนี้", pleaseSetStopAndLimitPrices: "กรุณากำหนดทั้งราคาหยุดและราคาจำกัด", failedPlaceOrder: "ไม่สามารถส่งคำสั่งได้", orderNotAccepted: "คำสั่งไม่ได้รับการยอมรับ", newOrder: "คำสั่งใหม่", selectYourTradingAccount: "เลือกบัญชีซื้อขายของคุณ", switchingAccount: "กำลังสลับบัญชี…", activeAccount: "ใช้งานอยู่" }, sg = {
|
|
56
56
|
WebTrading: og
|
|
57
|
-
}, ag = { symbol: "심볼", back: "뒤로", continue: "계속", error: "오류", selectTradingAccount: "거래 계좌 선택", selectAccountDescription: "차트에서 거래를
|
|
57
|
+
}, ag = { symbol: "심볼", back: "뒤로", continue: "계속", error: "오류", selectTradingAccount: "거래 계좌 선택", selectAccountDescription: "차트에서 거래를 계속하려면 계좌를 선택하세요.", loadingAccounts: "계좌를 불러오는 중…", noTradingAccounts: "사용 가능한 거래 계좌가 없습니다.", selectAccount: "계좌 선택", createAccount: "계좌 생성", ticket: "티켓", serverTime: "서버 시간", type: "유형", volume: "거래량", price: "가격", stopLossShort: "손절가", takeProfitShort: "이익실현가", swap: "스왑", profit: "수익", comment: "메모", close: "닫기", balance: "잔액", equity: "순자산", margin: "증거금", freeMargin: "사용 가능 증거금", level: "수준", trade: "거래", history: "내역", terminalPanelTabs: "터미널 패널 탭", closeAll: "모두 닫기", closing: "닫는 중…", refresh: "새로고침", refreshing: "새로고침 중…", refreshDealHistory: "거래 내역 새로고침", notAvailable: "해당 없음", closePositionTicket: "포지션 닫기 #{ticket}", closePosition: "포지션 닫기", deleteOrderTicket: "주문 삭제 #{ticket}", deleteOrder: "주문 삭제", resizeTerminalPanel: "터미널 패널 크기 조정", loading: "불러오는 중…", noPositions: "보유 중인 포지션이 없습니다", createNewOrder: "새 주문 생성", chartSidePanel: "차트 사이드 패널", scanResult: "스캔 결과", openTerminal: "터미널 열기", orders: "주문", terminal: "터미널", closeTerminalPanel: "터미널 패널 닫기", buy: "매수", sell: "매도", balanceType: "잔액", credit: "크레딧", deal: "거래", login: "로그인", action: "작업", entry: "진입", time: "시간", localTime: "현지 시간", entryIn: "진입", entryOut: "청산", selectAccountForDeals: "거래 내역을 보려면 계좌를 선택하세요", noDealsFound: "거래 내역이 없습니다", seeFullDealHistory: "전체 거래 내역 보기", unknownAction: "작업 {action}", failedClosePosition: "포지션을 닫지 못했습니다.", positionClosed: "포지션 #{ticket}이(가) {price}에 청산되었습니다.", closePositionNotConfigured: "포지션 닫기가 구성되지 않았습니다.", onePositionClosed: "1개의 포지션이 청산되었습니다.", positionsClosed: "{count}개의 포지션이 청산되었습니다.", failedClosePositions: "포지션을 닫지 못했습니다.", closedFailedSummary: "{closed}개 청산, {failed}개 실패.", failedDeleteOrder: "주문을 삭제하지 못했습니다.", orderDeleted: "주문 #{ticket}이(가) 삭제되었습니다.", positionUpdated: "포지션 #{ticket}이(가) 업데이트되었습니다.", stopLoss: "손절", takeProfit: "이익실현", stopPrice: "스톱 가격", limitPrice: "지정가", volumeSetting: "거래량 설정", riskManagement: "위험 관리", expiration: "만료", orderExecutionType: "주문 실행 유형", orderExpirationType: "주문 만료 유형", expirationTime: "만료 시간", expirationDay: "만료 날짜", placed: "접수됨", closeConfirmation: "청산 확인", closePositionPanel: "포지션 닫기 패널", closeOrderPanel: "주문 닫기 패널", minimizeToQuickOrder: "빠른 주문 패널로 최소화", moveQuickOrderPanel: "빠른 주문 패널 이동", decreaseVolume: "거래량 감소", increaseVolume: "거래량 증가", expandQuickOrderPanel: "빠른 주문 패널 확장", collapseQuickOrderPanel: "빠른 주문 패널 축소", searchSymbol: "심볼 검색", bid: "매도호가", ask: "매수호가", lots: "랏", orderPrice: "주문 가격", sellByMarket: "시장가 매도", buyByMarket: "시장가 매수", placeOrder: "{label} 주문", selectAccountToTrade: "주문을 시작하려면 거래 계좌를 선택하세요.", executionMarket: "시장가 실행", executionBuyLimit: "매수 지정가", executionSellLimit: "매도 지정가", executionBuyStop: "매수 스톱", executionSellStop: "매도 스톱", executionBuyStopLimit: "매수 스톱 지정가", executionSellStopLimit: "매도 스톱 지정가", expirationGtc: "GTC", expirationToday: "오늘", expirationSpecified: "지정", expirationSpecifiedDay: "지정일", ok: "확인", orderAtPrice: "{price}에서", modify: "수정", failedModifyPosition: "포지션을 수정하지 못했습니다.", failedModifyOrder: "주문을 수정하지 못했습니다.", positionClosedSimple: "포지션 #{ticket}이(가) 청산되었습니다.", orderUpdated: "주문 #{ticket}이(가) 업데이트되었습니다.", closePositionDetail: "#{ticket} {type} {volume} {symbol} {openPrice}를 {closePrice}에서 청산, 수익 {profit}", deleteOrderDetail: "#{ticket} {typeLabel} {volume} {symbol}을 {price}에서 삭제", pleaseSelectTradingAccount: "거래 계좌를 선택하세요.", pleaseSetLimitPrice: "이 주문의 지정가를 설정하세요.", pleaseSetOrderPrice: "대기 주문의 가격을 설정하세요.", pleaseSetStopPrice: "스톱 지정가 주문의 스톱 가격을 설정하세요.", pleaseSetExpirationDate: "이 주문의 만료일을 설정하세요.", pleaseSetStopAndLimitPrices: "스톱 가격과 지정가를 모두 설정하세요.", failedPlaceOrder: "주문을 접수하지 못했습니다.", orderNotAccepted: "주문이 승인되지 않았습니다.", newOrder: "새 주문", selectYourTradingAccount: "거래 계좌 선택", switchingAccount: "계좌 전환 중…", activeAccount: "활성화됨" }, cg = {
|
|
58
58
|
WebTrading: ag
|
|
59
|
-
}, lg = { symbol: "シンボル", back: "戻る", continue: "続行", error: "エラー", selectTradingAccount: "取引口座を選択", selectAccountDescription: "
|
|
59
|
+
}, lg = { symbol: "シンボル", back: "戻る", continue: "続行", error: "エラー", selectTradingAccount: "取引口座を選択", selectAccountDescription: "チャートで取引を続けるための口座を選択してください。", loadingAccounts: "口座を読み込み中…", noTradingAccounts: "利用可能な取引口座がありません。", selectAccount: "口座を選択", createAccount: "口座を作成", ticket: "チケット", serverTime: "サーバー時間", type: "タイプ", volume: "数量", price: "価格", stopLossShort: "損切り", takeProfitShort: "利確", swap: "スワップ", profit: "利益", comment: "コメント", close: "閉じる", balance: "残高", equity: "有効証拠金", margin: "証拠金", freeMargin: "余剰証拠金", level: "レベル", trade: "取引", history: "履歴", terminalPanelTabs: "ターミナルパネルのタブ", closeAll: "すべて閉じる", closing: "閉じています…", refresh: "更新", refreshing: "更新中…", refreshDealHistory: "取引履歴を更新", notAvailable: "該当なし", closePositionTicket: "ポジションを閉じる #{ticket}", closePosition: "ポジションを閉じる", deleteOrderTicket: "注文を削除 #{ticket}", deleteOrder: "注文を削除", resizeTerminalPanel: "ターミナルパネルのサイズを変更", loading: "読み込み中…", noPositions: "保有中のポジションはありません", createNewOrder: "新規注文を作成", chartSidePanel: "チャートサイドパネル", scanResult: "スキャン結果", openTerminal: "ターミナルを開く", orders: "注文", terminal: "ターミナル", closeTerminalPanel: "ターミナルパネルを閉じる", buy: "買い", sell: "売り", balanceType: "残高", credit: "クレジット", deal: "取引", login: "ログイン", action: "操作", entry: "エントリー", time: "時間", localTime: "現地時間", entryIn: "入場", entryOut: "出場", selectAccountForDeals: "取引履歴を表示するには口座を選択してください", noDealsFound: "取引履歴が見つかりません", seeFullDealHistory: "すべての取引履歴を表示", unknownAction: "操作 {action}", failedClosePosition: "ポジションを閉じられませんでした。", positionClosed: "ポジション #{ticket} は {price} で決済されました。", closePositionNotConfigured: "ポジションを閉じる機能が設定されていません。", onePositionClosed: "1件のポジションが決済されました。", positionsClosed: "{count}件のポジションが決済されました。", failedClosePositions: "ポジションを閉じられませんでした。", closedFailedSummary: "{closed}件決済、{failed}件失敗しました。", failedDeleteOrder: "注文を削除できませんでした。", orderDeleted: "注文 #{ticket} が削除されました。", positionUpdated: "ポジション #{ticket} が更新されました。", stopLoss: "損切り", takeProfit: "利確", stopPrice: "ストップ価格", limitPrice: "指値価格", volumeSetting: "数量設定", riskManagement: "リスク管理", expiration: "有効期限", orderExecutionType: "注文執行タイプ", orderExpirationType: "注文の有効期限タイプ", expirationTime: "有効期限時間", expirationDay: "有効期限日", placed: "発注済み", closeConfirmation: "決済確認", closePositionPanel: "ポジション決済パネル", closeOrderPanel: "注文決済パネル", minimizeToQuickOrder: "クイック注文パネルに最小化", moveQuickOrderPanel: "クイック注文パネルを移動", decreaseVolume: "数量を減らす", increaseVolume: "数量を増やす", expandQuickOrderPanel: "クイック注文パネルを展開", collapseQuickOrderPanel: "クイック注文パネルを折りたたむ", searchSymbol: "シンボルを検索", bid: "売値", ask: "買値", lots: "ロット", orderPrice: "注文価格", sellByMarket: "成行売り", buyByMarket: "成行買い", placeOrder: "{label}を発注", selectAccountToTrade: "注文を開始するには取引口座を選択してください。", executionMarket: "成行執行", executionBuyLimit: "買い指値", executionSellLimit: "売り指値", executionBuyStop: "買い逆指値", executionSellStop: "売り逆指値", executionBuyStopLimit: "買い逆指値指値", executionSellStopLimit: "売り逆指値指値", expirationGtc: "GTC", expirationToday: "今日", expirationSpecified: "指定", expirationSpecifiedDay: "指定日", ok: "OK", orderAtPrice: "{price}で", modify: "変更", failedModifyPosition: "ポジションを変更できませんでした。", failedModifyOrder: "注文を変更できませんでした。", positionClosedSimple: "ポジション #{ticket} が決済されました。", orderUpdated: "注文 #{ticket} が更新されました。", closePositionDetail: "#{ticket} {type} {volume} {symbol} {openPrice} を {closePrice} で決済、利益 {profit}", deleteOrderDetail: "#{ticket} {typeLabel} {volume} {symbol} を {price} で削除", pleaseSelectTradingAccount: "取引口座を選択してください。", pleaseSetLimitPrice: "この注文の指値価格を設定してください。", pleaseSetOrderPrice: "保留注文の価格を設定してください。", pleaseSetStopPrice: "逆指値指値注文のストップ価格を設定してください。", pleaseSetExpirationDate: "この注文の有効期限を設定してください。", pleaseSetStopAndLimitPrices: "ストップ価格と指値価格の両方を設定してください。", failedPlaceOrder: "注文を発注できませんでした。", orderNotAccepted: "注文は受け付けられませんでした。", newOrder: "新規注文", selectYourTradingAccount: "取引口座を選択", switchingAccount: "口座を切り替え中…", activeAccount: "有効" }, dg = {
|
|
60
60
|
WebTrading: lg
|
|
61
|
-
}, ug = { symbol: "
|
|
61
|
+
}, ug = { symbol: "Симбол", back: "Буцах", continue: "Үргэлжлүүлэх", error: "Алдаа", selectTradingAccount: "Арилжааны данс сонгох", selectAccountDescription: "График дээр арилжаагаа үргэлжлүүлэхийн тулд данс сонгоно уу.", loadingAccounts: "Дансуудыг ачаалж байна…", noTradingAccounts: "Боломжтой арилжааны данс алга.", selectAccount: "Данс сонгох", createAccount: "Данс үүсгэх", ticket: "Тасалбар", serverTime: "Серверийн цаг", type: "Төрөл", volume: "Хэмжээ", price: "Үнэ", stopLossShort: "S/L", takeProfitShort: "T/P", swap: "Своп", profit: "Ашиг", comment: "Тайлбар", close: "Хаах", balance: "Үлдэгдэл", equity: "Equity", margin: "Маржин", freeMargin: "Free маржин", level: "Түвшин", trade: "Арилжаа", history: "Түүх", terminalPanelTabs: "Терминалын самбарын табууд", closeAll: "Бүгдийг хаах", closing: "Хааж байна…", refresh: "Сэргээх", refreshing: "Сэргээж байна…", refreshDealHistory: "Хэлцлийн түүхийг сэргээх", notAvailable: "Байхгүй", closePositionTicket: "Позици хаах #{ticket}", closePosition: "Позици хаах", deleteOrderTicket: "Захиалга устгах #{ticket}", deleteOrder: "Захиалга устгах", resizeTerminalPanel: "Терминалын самбарын хэмжээг өөрчлөх", loading: "Ачаалж байна…", noPositions: "Танд нээлттэй позици алга", createNewOrder: "Шинэ захиалга үүсгэх", chartSidePanel: "Графикийн хажуугийн самбар", scanResult: "Сканны үр дүн", openTerminal: "Терминал нээх", orders: "Захиалгууд", terminal: "Терминал", closeTerminalPanel: "Терминалын самбарыг хаах", buy: "Худалдан авах", sell: "Зарах", balanceType: "Үлдэгдэл", credit: "Кредит", deal: "Хэлцэл", login: "Нэвтрэх", action: "Үйлдэл", entry: "Нэвтрэлт", time: "Цаг", localTime: "Орон нутгийн цаг", entryIn: "ОРСОН", entryOut: "ГАРСАН", selectAccountForDeals: "Хэлцлийн түүхийг харахын тулд данс сонгоно уу", noDealsFound: "Хэлцэл олдсонгүй", seeFullDealHistory: "Бүтэн хэлцлийн түүхийг харах", unknownAction: "Үйлдэл {action}", failedClosePosition: "Позици хааж чадсангүй.", positionClosed: "Позици #{ticket} {price} үнээр хаагдлаа.", closePositionNotConfigured: "Позици хаах тохиргоо хийгдээгүй байна.", onePositionClosed: "1 позици хаагдлаа.", positionsClosed: "{count} позици хаагдлаа.", failedClosePositions: "Позициудыг хааж чадсангүй.", closedFailedSummary: "{closed} хаагдсан, {failed} амжилтгүй.", failedDeleteOrder: "Захиалга устгаж чадсангүй.", orderDeleted: "Захиалга #{ticket} устгагдлаа.", positionUpdated: "Позици #{ticket} шинэчлэгдлээ.", stopLoss: "Стоп-лосс", takeProfit: "Тейк-профит", stopPrice: "Стоп үнэ", limitPrice: "Лимит үнэ", volumeSetting: "Хэмжээний тохиргоо", riskManagement: "Эрсдэлийн удирдлага", expiration: "Хүчинтэй хугацаа", orderExecutionType: "Захиалга гүйцэтгэх төрөл", orderExpirationType: "Захиалгын хугацааны төрөл", expirationTime: "Дуусах цаг", expirationDay: "Дуусах өдөр", placed: "Илгээгдсэн", closeConfirmation: "Хаах баталгаажуулалт", closePositionPanel: "Позици хаах самбар", closeOrderPanel: "Захиалга хаах самбар", minimizeToQuickOrder: "Хурдан захиалгын самбар болгон жижигрүүлэх", moveQuickOrderPanel: "Хурдан захиалгын самбарыг зөөх", decreaseVolume: "Хэмжээг багасгах", increaseVolume: "Хэмжээг нэмэх", expandQuickOrderPanel: "Хурдан захиалгын самбарыг дэлгэх", collapseQuickOrderPanel: "Хурдан захиалгын самбарыг хумих", searchSymbol: "Симбол хайх", bid: "Bid", ask: "Ask", lots: "Лот", orderPrice: "Захиалгын үнэ", sellByMarket: "Зах зээлийн үнээр зарах", buyByMarket: "Зах зээлийн үнээр худалдаж авах", placeOrder: "{label} байрлуулах", selectAccountToTrade: "Захиалга байршуулж эхлэхийн тулд арилжааны данс сонгоно уу.", executionMarket: "Зах зээлийн гүйцэтгэл", executionBuyLimit: "Худалдан авах лимит", executionSellLimit: "Зарах лимит", executionBuyStop: "Худалдан авах стоп", executionSellStop: "Зарах стоп", executionBuyStopLimit: "Худалдан авах стоп лимит", executionSellStopLimit: "Зарах стоп лимит", expirationGtc: "GTC", expirationToday: "Өнөөдөр", expirationSpecified: "Тодорхой хугацаа", expirationSpecifiedDay: "Тодорхой өдөр", ok: "OK", orderAtPrice: "{price} үнээр", modify: "Засах", failedModifyPosition: "Позици өөрчилж чадсангүй.", failedModifyOrder: "Захиалга өөрчилж чадсангүй.", positionClosedSimple: "Позици #{ticket} хаагдлаа.", orderUpdated: "Захиалга #{ticket} шинэчлэгдлээ.", closePositionDetail: "#{ticket} {type} {volume} {symbol} {openPrice}-ийг {closePrice} үнээр хааж, {profit} ашигтай болсон", deleteOrderDetail: "#{ticket} {typeLabel} {volume} {symbol}-ийг {price} үнээр устгах", pleaseSelectTradingAccount: "Арилжааны данс сонгоно уу.", pleaseSetLimitPrice: "Энэ захиалгад лимит үнэ оруулна уу.", pleaseSetOrderPrice: "Хүлээгдэж буй захиалгад үнэ оруулна уу.", pleaseSetStopPrice: "Стоп лимит захиалгад стоп үнэ оруулна уу.", pleaseSetExpirationDate: "Энэ захиалгад дуусах хугацаа оруулна уу.", pleaseSetStopAndLimitPrices: "Стоп болон лимит үнийг хоёуланг нь оруулна уу.", failedPlaceOrder: "Захиалга байршуулж чадсангүй.", orderNotAccepted: "Захиалгыг зөвшөөрсөнгүй.", newOrder: "Шинэ захиалга", selectYourTradingAccount: "Арилжааны дансаа сонгоно уу", switchingAccount: "Данс сольж байна…", activeAccount: "Идэвхтэй" }, fg = {
|
|
62
62
|
WebTrading: ug
|
|
63
|
-
}, pg = { symbol: "Символ", back: "Назад", continue: "Продолжить", error: "Ошибка", selectTradingAccount: "Выберите торговый
|
|
63
|
+
}, pg = { symbol: "Символ", back: "Назад", continue: "Продолжить", error: "Ошибка", selectTradingAccount: "Выберите торговый счет", selectAccountDescription: "Выберите счет, чтобы продолжить торговлю на графике.", loadingAccounts: "Загрузка счетов…", noTradingAccounts: "Нет доступных торговых счетов.", selectAccount: "Выбрать счет", createAccount: "Создать счет", ticket: "Тикет", serverTime: "Время сервера", type: "Тип", volume: "Объем", price: "Цена", stopLossShort: "S / L", takeProfitShort: "T / P", swap: "Своп", profit: "Прибыль", comment: "Комментарий", close: "Закрыть", balance: "Баланс", equity: "Собственный капитал", margin: "Маржа", freeMargin: "Свободная маржа", level: "Уровень", trade: "Торговля", history: "История", terminalPanelTabs: "Вкладки панели терминала", closeAll: "Закрыть все", closing: "Закрытие…", refresh: "Обновить", refreshing: "Обновление…", refreshDealHistory: "Обновить историю сделок", notAvailable: "Н/Д", closePositionTicket: "Закрыть позицию #{ticket}", closePosition: "Закрыть позицию", deleteOrderTicket: "Удалить ордер #{ticket}", deleteOrder: "Удалить ордер", resizeTerminalPanel: "Изменить размер панели терминала", loading: "Загрузка…", noPositions: "У вас нет открытых позиций", createNewOrder: "Создать новый ордер", chartSidePanel: "Боковая панель графика", scanResult: "Результат сканирования", openTerminal: "Открыть терминал", orders: "Ордеры", terminal: "Терминал", closeTerminalPanel: "Закрыть панель терминала", buy: "Покупка", sell: "Продажа", balanceType: "Баланс", credit: "Кредит", deal: "Сделка", login: "Вход", action: "Действие", entry: "Вход", time: "Время", localTime: "Местное время", entryIn: "ВХОД", entryOut: "ВЫХОД", selectAccountForDeals: "Выберите счет для просмотра истории сделок", noDealsFound: "Сделки не найдены", seeFullDealHistory: "Посмотреть полную историю сделок", unknownAction: "Действие {action}", failedClosePosition: "Не удалось закрыть позицию.", positionClosed: "Позиция #{ticket} закрыта по цене {price}.", closePositionNotConfigured: "Функция закрытия позиции не настроена.", onePositionClosed: "Закрыта 1 позиция.", positionsClosed: "Закрыто {count} позиций.", failedClosePositions: "Не удалось закрыть позиции.", closedFailedSummary: "Закрыто {closed}, не удалось {failed}.", failedDeleteOrder: "Не удалось удалить ордер.", orderDeleted: "Ордер #{ticket} удален.", positionUpdated: "Позиция #{ticket} обновлена.", stopLoss: "Стоп-лосс", takeProfit: "Тейк-профит", stopPrice: "Стоп-цена", limitPrice: "Лимитная цена", volumeSetting: "Настройка объема", riskManagement: "Управление рисками", expiration: "Срок действия", orderExecutionType: "Тип исполнения ордера", orderExpirationType: "Тип истечения ордера", expirationTime: "Время истечения", expirationDay: "Дата истечения", placed: "Размещено", closeConfirmation: "Подтверждение закрытия", closePositionPanel: "Панель закрытия позиции", closeOrderPanel: "Панель закрытия ордера", minimizeToQuickOrder: "Свернуть в панель быстрого ордера", moveQuickOrderPanel: "Переместить панель быстрого ордера", decreaseVolume: "Уменьшить объем", increaseVolume: "Увеличить объем", expandQuickOrderPanel: "Развернуть панель быстрого ордера", collapseQuickOrderPanel: "Свернуть панель быстрого ордера", searchSymbol: "Поиск символа", bid: "Цена Bid", ask: "Цена Ask", lots: "Лоты", orderPrice: "Цена ордера", sellByMarket: "Продать по рынку", buyByMarket: "Купить по рынку", placeOrder: "Разместить {label}", selectAccountToTrade: "Выберите торговый счет для размещения ордеров.", executionMarket: "Рыночное исполнение", executionBuyLimit: "Лимит на покупку", executionSellLimit: "Лимит на продажу", executionBuyStop: "Стоп на покупку", executionSellStop: "Стоп на продажу", executionBuyStopLimit: "Стоп-лимит на покупку", executionSellStopLimit: "Стоп-лимит на продажу", expirationGtc: "GTC", expirationToday: "Сегодня", expirationSpecified: "Указанный", expirationSpecifiedDay: "Указанный день", ok: "OK", orderAtPrice: "по цене {price}", modify: "Изменить", failedModifyPosition: "Не удалось изменить позицию.", failedModifyOrder: "Не удалось изменить ордер.", positionClosedSimple: "Позиция #{ticket} закрыта.", orderUpdated: "Ордер #{ticket} обновлен.", closePositionDetail: "Закрытие #{ticket} {type} {volume} {symbol} {openPrice} по {closePrice} с прибылью {profit}", deleteOrderDetail: "Удалить #{ticket} {typeLabel} {volume} {symbol} по цене {price}", pleaseSelectTradingAccount: "Пожалуйста, выберите торговый счет.", pleaseSetLimitPrice: "Пожалуйста, задайте лимитную цену для этого ордера.", pleaseSetOrderPrice: "Пожалуйста, задайте цену для отложенных ордеров.", pleaseSetStopPrice: "Пожалуйста, задайте стоп-цену для стоп-лимитных ордеров.", pleaseSetExpirationDate: "Пожалуйста, задайте дату истечения для этого ордера.", pleaseSetStopAndLimitPrices: "Пожалуйста, задайте и стоп-цену, и лимитную цену.", failedPlaceOrder: "Не удалось разместить ордер.", orderNotAccepted: "Ордер не был принят.", newOrder: "Новый ордер", selectYourTradingAccount: "Выберите свой торговый счет", switchingAccount: "Переключение счета…", activeAccount: "Активен" }, mg = {
|
|
64
64
|
WebTrading: pg
|
|
65
65
|
}, hl = {
|
|
66
66
|
en: eg,
|
|
@@ -781,17 +781,17 @@ function kg() {
|
|
|
781
781
|
const e = -(/* @__PURE__ */ new Date()).getTimezoneOffset() / 60, t = Eg[e];
|
|
782
782
|
return t && t.length > 0 ? t[0] : "Etc/UTC";
|
|
783
783
|
}
|
|
784
|
-
const ar = "tv:latest-symbol",
|
|
784
|
+
const ar = "tv:latest-symbol", ju = "web-trading-last-account-login";
|
|
785
785
|
function Ag() {
|
|
786
786
|
for (var e = 0, t, n, r = ""; e < arguments.length; )
|
|
787
|
-
(t = arguments[e++]) && (n =
|
|
787
|
+
(t = arguments[e++]) && (n = Hu(t)) && (r && (r += " "), r += n);
|
|
788
788
|
return r;
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function Hu(e) {
|
|
791
791
|
if (typeof e == "string")
|
|
792
792
|
return e;
|
|
793
793
|
for (var t, n = "", r = 0; r < e.length; r++)
|
|
794
|
-
e[r] && (t =
|
|
794
|
+
e[r] && (t = Hu(e[r])) && (n && (n += " "), n += t);
|
|
795
795
|
return n;
|
|
796
796
|
}
|
|
797
797
|
var Xa = "-";
|
|
@@ -1022,9 +1022,9 @@ function Ie(e) {
|
|
|
1022
1022
|
};
|
|
1023
1023
|
return t.isThemeGetter = !0, t;
|
|
1024
1024
|
}
|
|
1025
|
-
var Gu = /^\[(?:([a-z-]+):)?(.+)\]$/i, Vg = /^\d+\/\d+$/,
|
|
1025
|
+
var Gu = /^\[(?:([a-z-]+):)?(.+)\]$/i, Vg = /^\d+\/\d+$/, jg = /* @__PURE__ */ new Set(["px", "full", "screen"]), Hg = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, zg = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Kg = /^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;
|
|
1026
1026
|
function wt(e) {
|
|
1027
|
-
return Pn(e) ||
|
|
1027
|
+
return Pn(e) || jg.has(e) || Vg.test(e) || Xs(e);
|
|
1028
1028
|
}
|
|
1029
1029
|
function Xs(e) {
|
|
1030
1030
|
return qn(e, "length", Xg);
|
|
@@ -1047,7 +1047,7 @@ function Pn(e) {
|
|
|
1047
1047
|
function Yg(e) {
|
|
1048
1048
|
return e.endsWith("%") && Pn(e.slice(0, -1));
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function Hr(e) {
|
|
1051
1051
|
return Tl(e) || qn(e, "number", Tl);
|
|
1052
1052
|
}
|
|
1053
1053
|
function Se(e) {
|
|
@@ -1057,7 +1057,7 @@ function zr() {
|
|
|
1057
1057
|
return !0;
|
|
1058
1058
|
}
|
|
1059
1059
|
function Jt(e) {
|
|
1060
|
-
return
|
|
1060
|
+
return Hg.test(e);
|
|
1061
1061
|
}
|
|
1062
1062
|
function Zg(e) {
|
|
1063
1063
|
return qn(e, "", ey);
|
|
@@ -1090,7 +1090,7 @@ function ty() {
|
|
|
1090
1090
|
return ["auto", Se, t];
|
|
1091
1091
|
}, O = function() {
|
|
1092
1092
|
return [Se, t];
|
|
1093
|
-
},
|
|
1093
|
+
}, j = function() {
|
|
1094
1094
|
return ["", wt];
|
|
1095
1095
|
}, M = function() {
|
|
1096
1096
|
return ["auto", Pn, Se];
|
|
@@ -1121,7 +1121,7 @@ function ty() {
|
|
|
1121
1121
|
borderColor: [e],
|
|
1122
1122
|
borderRadius: ["none", "", "full", Jt, Se],
|
|
1123
1123
|
borderSpacing: O(),
|
|
1124
|
-
borderWidth:
|
|
1124
|
+
borderWidth: j(),
|
|
1125
1125
|
contrast: U(),
|
|
1126
1126
|
grayscale: N(),
|
|
1127
1127
|
hueRotate: G(),
|
|
@@ -1354,7 +1354,7 @@ function ty() {
|
|
|
1354
1354
|
* @see https://tailwindcss.com/docs/z-index
|
|
1355
1355
|
*/
|
|
1356
1356
|
z: [{
|
|
1357
|
-
z: ["auto",
|
|
1357
|
+
z: ["auto", Hr]
|
|
1358
1358
|
}],
|
|
1359
1359
|
// Flexbox and Grid
|
|
1360
1360
|
/**
|
|
@@ -1404,7 +1404,7 @@ function ty() {
|
|
|
1404
1404
|
* @see https://tailwindcss.com/docs/order
|
|
1405
1405
|
*/
|
|
1406
1406
|
order: [{
|
|
1407
|
-
order: ["first", "last", "none",
|
|
1407
|
+
order: ["first", "last", "none", Hr]
|
|
1408
1408
|
}],
|
|
1409
1409
|
/**
|
|
1410
1410
|
* Grid Template Columns
|
|
@@ -1419,7 +1419,7 @@ function ty() {
|
|
|
1419
1419
|
*/
|
|
1420
1420
|
"col-start-end": [{
|
|
1421
1421
|
col: ["auto", {
|
|
1422
|
-
span: ["full",
|
|
1422
|
+
span: ["full", Hr]
|
|
1423
1423
|
}, Se]
|
|
1424
1424
|
}],
|
|
1425
1425
|
/**
|
|
@@ -1449,7 +1449,7 @@ function ty() {
|
|
|
1449
1449
|
*/
|
|
1450
1450
|
"row-start-end": [{
|
|
1451
1451
|
row: ["auto", {
|
|
1452
|
-
span: [
|
|
1452
|
+
span: [Hr]
|
|
1453
1453
|
}, Se]
|
|
1454
1454
|
}],
|
|
1455
1455
|
/**
|
|
@@ -2413,7 +2413,7 @@ function ty() {
|
|
|
2413
2413
|
* @see https://tailwindcss.com/docs/ring-width
|
|
2414
2414
|
*/
|
|
2415
2415
|
"ring-w": [{
|
|
2416
|
-
ring:
|
|
2416
|
+
ring: j()
|
|
2417
2417
|
}],
|
|
2418
2418
|
/**
|
|
2419
2419
|
* Ring Width Inset
|
|
@@ -2740,7 +2740,7 @@ function ty() {
|
|
|
2740
2740
|
* @see https://tailwindcss.com/docs/rotate
|
|
2741
2741
|
*/
|
|
2742
2742
|
rotate: [{
|
|
2743
|
-
rotate: [
|
|
2743
|
+
rotate: [Hr, Se]
|
|
2744
2744
|
}],
|
|
2745
2745
|
/**
|
|
2746
2746
|
* Translate X
|
|
@@ -3230,16 +3230,16 @@ function iy(...e) {
|
|
|
3230
3230
|
};
|
|
3231
3231
|
return n.scopeName = t.scopeName, n;
|
|
3232
3232
|
}
|
|
3233
|
-
var
|
|
3233
|
+
var je = globalThis != null && globalThis.document ? w.useLayoutEffect : () => {
|
|
3234
3234
|
}, oy = w[" useId ".trim().toString()] || (() => {
|
|
3235
3235
|
}), sy = 0;
|
|
3236
3236
|
function mn(e) {
|
|
3237
3237
|
const [t, n] = w.useState(oy());
|
|
3238
|
-
return
|
|
3238
|
+
return je(() => {
|
|
3239
3239
|
n((r) => r ?? String(sy++));
|
|
3240
3240
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
3241
3241
|
}
|
|
3242
|
-
var ay = w[" useInsertionEffect ".trim().toString()] ||
|
|
3242
|
+
var ay = w[" useInsertionEffect ".trim().toString()] || je;
|
|
3243
3243
|
function Vn({
|
|
3244
3244
|
prop: e,
|
|
3245
3245
|
defaultProp: t,
|
|
@@ -3344,7 +3344,7 @@ var fy = "DismissableLayer", Js = "dismissableLayer.update", py = "dismissableLa
|
|
|
3344
3344
|
//
|
|
3345
3345
|
// See https://github.com/radix-ui/primitives/issues/3346
|
|
3346
3346
|
dismissableSurfaces: /* @__PURE__ */ new Set()
|
|
3347
|
-
}),
|
|
3347
|
+
}), jo = w.forwardRef(
|
|
3348
3348
|
(e, t) => {
|
|
3349
3349
|
const {
|
|
3350
3350
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -3408,7 +3408,7 @@ var fy = "DismissableLayer", Js = "dismissableLayer.update", py = "dismissableLa
|
|
|
3408
3408
|
);
|
|
3409
3409
|
}
|
|
3410
3410
|
);
|
|
3411
|
-
|
|
3411
|
+
jo.displayName = fy;
|
|
3412
3412
|
var hy = "DismissableLayerBranch", Yu = w.forwardRef((e, t) => {
|
|
3413
3413
|
const n = w.useContext(Ja), r = w.useRef(null), i = Me(t, r);
|
|
3414
3414
|
return w.useEffect(() => {
|
|
@@ -3523,7 +3523,7 @@ function Zu(e, t, n, { discrete: r }) {
|
|
|
3523
3523
|
const i = n.originalEvent.target, o = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
3524
3524
|
t && i.addEventListener(e, t, { once: !0 }), r ? Qu(i, o) : i.dispatchEvent(o);
|
|
3525
3525
|
}
|
|
3526
|
-
var vy =
|
|
3526
|
+
var vy = jo, wy = Yu, Ss = "focusScope.autoFocusOnMount", Ts = "focusScope.autoFocusOnUnmount", El = { bubbles: !1, cancelable: !0 }, _y = "FocusScope", ec = w.forwardRef((e, t) => {
|
|
3527
3527
|
const {
|
|
3528
3528
|
loop: n = !1,
|
|
3529
3529
|
trapped: r = !1,
|
|
@@ -3652,14 +3652,14 @@ function Ol(e, t) {
|
|
|
3652
3652
|
function Ey(e) {
|
|
3653
3653
|
return e.filter((t) => t.tagName !== "A");
|
|
3654
3654
|
}
|
|
3655
|
-
var ky = "Portal",
|
|
3655
|
+
var ky = "Portal", Ho = w.forwardRef((e, t) => {
|
|
3656
3656
|
var a;
|
|
3657
3657
|
const { container: n, ...r } = e, [i, o] = w.useState(!1);
|
|
3658
|
-
|
|
3658
|
+
je(() => o(!0), []);
|
|
3659
3659
|
const s = n || i && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
|
|
3660
3660
|
return s ? Ir.createPortal(/* @__PURE__ */ u(ve.div, { ...r, ref: t }), s) : null;
|
|
3661
3661
|
});
|
|
3662
|
-
|
|
3662
|
+
Ho.displayName = ky;
|
|
3663
3663
|
function Ay(e, t) {
|
|
3664
3664
|
return w.useReducer((n, r) => t[n][r] ?? n, e);
|
|
3665
3665
|
}
|
|
@@ -3685,13 +3685,13 @@ function Oy(e) {
|
|
|
3685
3685
|
return w.useEffect(() => {
|
|
3686
3686
|
const l = $i(r.current);
|
|
3687
3687
|
o.current = a === "mounted" ? l : "none";
|
|
3688
|
-
}, [a]),
|
|
3688
|
+
}, [a]), je(() => {
|
|
3689
3689
|
const l = r.current, d = i.current;
|
|
3690
3690
|
if (d !== e) {
|
|
3691
3691
|
const m = o.current, p = $i(l);
|
|
3692
3692
|
e ? c("MOUNT") : p === "none" || (l == null ? void 0 : l.display) === "none" ? c("UNMOUNT") : c(d && m !== p ? "ANIMATION_OUT" : "UNMOUNT"), i.current = e;
|
|
3693
3693
|
}
|
|
3694
|
-
}, [e, c]),
|
|
3694
|
+
}, [e, c]), je(() => {
|
|
3695
3695
|
if (t) {
|
|
3696
3696
|
let l;
|
|
3697
3697
|
const d = t.ownerDocument.defaultView ?? window, f = (p) => {
|
|
@@ -3928,16 +3928,16 @@ zo.classNames = {
|
|
|
3928
3928
|
fullWidth: so,
|
|
3929
3929
|
zeroRight: oo
|
|
3930
3930
|
};
|
|
3931
|
-
var
|
|
3931
|
+
var jy = function() {
|
|
3932
3932
|
if (typeof __webpack_nonce__ < "u")
|
|
3933
3933
|
return __webpack_nonce__;
|
|
3934
3934
|
};
|
|
3935
|
-
function
|
|
3935
|
+
function Hy() {
|
|
3936
3936
|
if (!document)
|
|
3937
3937
|
return null;
|
|
3938
3938
|
var e = document.createElement("style");
|
|
3939
3939
|
e.type = "text/css";
|
|
3940
|
-
var t =
|
|
3940
|
+
var t = jy();
|
|
3941
3941
|
return t && e.setAttribute("nonce", t), e;
|
|
3942
3942
|
}
|
|
3943
3943
|
function zy(e, t) {
|
|
@@ -3951,7 +3951,7 @@ var Gy = function() {
|
|
|
3951
3951
|
var e = 0, t = null;
|
|
3952
3952
|
return {
|
|
3953
3953
|
add: function(n) {
|
|
3954
|
-
e == 0 && (t =
|
|
3954
|
+
e == 0 && (t = Hy()) && (zy(t, n), Ky(t)), e++;
|
|
3955
3955
|
},
|
|
3956
3956
|
remove: function() {
|
|
3957
3957
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
@@ -4056,12 +4056,12 @@ var Gy = function() {
|
|
|
4056
4056
|
}, ea = !1;
|
|
4057
4057
|
if (typeof window < "u")
|
|
4058
4058
|
try {
|
|
4059
|
-
var
|
|
4059
|
+
var ji = Object.defineProperty({}, "passive", {
|
|
4060
4060
|
get: function() {
|
|
4061
4061
|
return ea = !0, !0;
|
|
4062
4062
|
}
|
|
4063
4063
|
});
|
|
4064
|
-
window.addEventListener("test",
|
|
4064
|
+
window.addEventListener("test", ji, ji), window.removeEventListener("test", ji, ji);
|
|
4065
4065
|
} catch {
|
|
4066
4066
|
ea = !1;
|
|
4067
4067
|
}
|
|
@@ -4128,7 +4128,7 @@ var Xn = ea ? { passive: !1 } : !1, nb = function(e) {
|
|
|
4128
4128
|
c && (t.contains(a) || t === a)
|
|
4129
4129
|
);
|
|
4130
4130
|
return (d && Math.abs(f) < 1 || !d && Math.abs(m) < 1) && (l = !0), l;
|
|
4131
|
-
},
|
|
4131
|
+
}, Hi = function(e) {
|
|
4132
4132
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
4133
4133
|
}, Ml = function(e) {
|
|
4134
4134
|
return [e.deltaX, e.deltaY];
|
|
@@ -4162,7 +4162,7 @@ function fb(e) {
|
|
|
4162
4162
|
var a = w.useCallback(function(h, g) {
|
|
4163
4163
|
if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
|
|
4164
4164
|
return !s.current.allowPinchZoom;
|
|
4165
|
-
var y =
|
|
4165
|
+
var y = Hi(h), v = n.current, S = "deltaX" in h ? h.deltaX : v[0] - y[0], _ = "deltaY" in h ? h.deltaY : v[1] - y[1], T, x = h.target, A = Math.abs(S) > Math.abs(_) ? "h" : "v";
|
|
4166
4166
|
if ("touches" in h && A === "h" && x.type === "range")
|
|
4167
4167
|
return !1;
|
|
4168
4168
|
var C = window.getSelection(), R = C && C.anchorNode, F = R ? R === x || R.contains(x) : !1;
|
|
@@ -4180,7 +4180,7 @@ function fb(e) {
|
|
|
4180
4180
|
}, []), c = w.useCallback(function(h) {
|
|
4181
4181
|
var g = h;
|
|
4182
4182
|
if (!(!Jn.length || Jn[Jn.length - 1] !== o)) {
|
|
4183
|
-
var y = "deltaY" in g ? Ml(g) :
|
|
4183
|
+
var y = "deltaY" in g ? Ml(g) : Hi(g), v = t.current.filter(function(T) {
|
|
4184
4184
|
return T.name === g.type && (T.target === g.target || g.target === T.shadowParent) && lb(T.delta, y);
|
|
4185
4185
|
})[0];
|
|
4186
4186
|
if (v && v.should) {
|
|
@@ -4202,11 +4202,11 @@ function fb(e) {
|
|
|
4202
4202
|
});
|
|
4203
4203
|
}, 1);
|
|
4204
4204
|
}, []), d = w.useCallback(function(h) {
|
|
4205
|
-
n.current =
|
|
4205
|
+
n.current = Hi(h), r.current = void 0;
|
|
4206
4206
|
}, []), f = w.useCallback(function(h) {
|
|
4207
4207
|
l(h.type, Ml(h), h.target, a(h, e.lockRef.current));
|
|
4208
4208
|
}, []), m = w.useCallback(function(h) {
|
|
4209
|
-
l(h.type,
|
|
4209
|
+
l(h.type, Hi(h), h.target, a(h, e.lockRef.current));
|
|
4210
4210
|
}, []);
|
|
4211
4211
|
w.useEffect(function() {
|
|
4212
4212
|
return Jn.push(o), e.setCallbacks({
|
|
@@ -4340,7 +4340,7 @@ var nc = "DialogPortal", [wb, pf] = df(nc, {
|
|
|
4340
4340
|
forceMount: void 0
|
|
4341
4341
|
}), mf = (e) => {
|
|
4342
4342
|
const { __scopeDialog: t, forceMount: n, children: r, container: i } = e, o = Pt(nc, t);
|
|
4343
|
-
return /* @__PURE__ */ u(wb, { scope: t, forceMount: n, children: w.Children.map(r, (s) => /* @__PURE__ */ u(Yn, { present: n || o.open, children: /* @__PURE__ */ u(
|
|
4343
|
+
return /* @__PURE__ */ u(wb, { scope: t, forceMount: n, children: w.Children.map(r, (s) => /* @__PURE__ */ u(Yn, { present: n || o.open, children: /* @__PURE__ */ u(Ho, { asChild: !0, container: i, children: s }) })) });
|
|
4344
4344
|
};
|
|
4345
4345
|
mf.displayName = nc;
|
|
4346
4346
|
var bo = "DialogOverlay", rc = w.forwardRef(
|
|
@@ -4437,7 +4437,7 @@ var Tb = w.forwardRef(
|
|
|
4437
4437
|
onMountAutoFocus: i,
|
|
4438
4438
|
onUnmountAutoFocus: o,
|
|
4439
4439
|
children: /* @__PURE__ */ u(
|
|
4440
|
-
|
|
4440
|
+
jo,
|
|
4441
4441
|
{
|
|
4442
4442
|
role: "dialog",
|
|
4443
4443
|
id: a.contentId,
|
|
@@ -4863,7 +4863,7 @@ const Bb = 50, Wb = async (e, t, n) => {
|
|
|
4863
4863
|
}, p = uc(i), b = dc(p), h = await s.getDimensions(l), g = p === "y", y = g ? "top" : "left", v = g ? "bottom" : "right", S = g ? "clientHeight" : "clientWidth", _ = o.reference[b] + o.reference[p] - m[p] - o.floating[b], T = m[p] - o.reference[p], x = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
4864
4864
|
let A = x ? x[S] : 0;
|
|
4865
4865
|
(!A || !await (s.isElement == null ? void 0 : s.isElement(x))) && (A = a.floating[S] || o.floating[b]);
|
|
4866
|
-
const C = _ / 2 - T / 2, R = A / 2 - h[b] / 2 - 1, F = yn(f[y], R), B = yn(f[v], R), O = F,
|
|
4866
|
+
const C = _ / 2 - T / 2, R = A / 2 - h[b] / 2 - 1, F = yn(f[y], R), B = yn(f[v], R), O = F, j = A - h[b] - B, M = A / 2 - h[b] / 2 + C, z = ta(O, M, j), E = !c.arrow && Mr(i) != null && M !== z && o.reference[b] / 2 - (M < O ? F : B) - h[b] / 2 < 0, D = E ? M < O ? M - O : M - j : 0;
|
|
4867
4867
|
return {
|
|
4868
4868
|
[p]: m[p] + D,
|
|
4869
4869
|
data: {
|
|
@@ -4930,8 +4930,8 @@ const Bb = 50, Wb = async (e, t, n) => {
|
|
|
4930
4930
|
if (!E)
|
|
4931
4931
|
switch (p) {
|
|
4932
4932
|
case "bestFit": {
|
|
4933
|
-
var
|
|
4934
|
-
const D = (
|
|
4933
|
+
var j;
|
|
4934
|
+
const D = (j = F.filter((L) => {
|
|
4935
4935
|
if (x) {
|
|
4936
4936
|
const N = Mt(L.placement);
|
|
4937
4937
|
return N === v || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -4939,7 +4939,7 @@ const Bb = 50, Wb = async (e, t, n) => {
|
|
|
4939
4939
|
N === "y";
|
|
4940
4940
|
}
|
|
4941
4941
|
return !0;
|
|
4942
|
-
}).map((L) => [L.placement, L.overflows.filter((N) => N > 0).reduce((N, $) => N + $, 0)]).sort((L, N) => L[1] - N[1])[0]) == null ? void 0 :
|
|
4942
|
+
}).map((L) => [L.placement, L.overflows.filter((N) => N > 0).reduce((N, $) => N + $, 0)]).sort((L, N) => L[1] - N[1])[0]) == null ? void 0 : j[0];
|
|
4943
4943
|
D && (E = D);
|
|
4944
4944
|
break;
|
|
4945
4945
|
}
|
|
@@ -4966,10 +4966,10 @@ function Vl(e, t) {
|
|
|
4966
4966
|
left: e.left - t.width
|
|
4967
4967
|
};
|
|
4968
4968
|
}
|
|
4969
|
-
function
|
|
4969
|
+
function jl(e) {
|
|
4970
4970
|
return Ab.some((t) => e[t] >= 0);
|
|
4971
4971
|
}
|
|
4972
|
-
const
|
|
4972
|
+
const jb = function(e) {
|
|
4973
4973
|
return e === void 0 && (e = {}), {
|
|
4974
4974
|
name: "hide",
|
|
4975
4975
|
options: e,
|
|
@@ -4990,7 +4990,7 @@ const Hb = function(e) {
|
|
|
4990
4990
|
return {
|
|
4991
4991
|
data: {
|
|
4992
4992
|
referenceHiddenOffsets: a,
|
|
4993
|
-
referenceHidden:
|
|
4993
|
+
referenceHidden: jl(a)
|
|
4994
4994
|
}
|
|
4995
4995
|
};
|
|
4996
4996
|
}
|
|
@@ -5002,7 +5002,7 @@ const Hb = function(e) {
|
|
|
5002
5002
|
return {
|
|
5003
5003
|
data: {
|
|
5004
5004
|
escapedOffsets: a,
|
|
5005
|
-
escaped:
|
|
5005
|
+
escaped: jl(a)
|
|
5006
5006
|
}
|
|
5007
5007
|
};
|
|
5008
5008
|
}
|
|
@@ -5012,7 +5012,7 @@ const Hb = function(e) {
|
|
|
5012
5012
|
}
|
|
5013
5013
|
};
|
|
5014
5014
|
}, Ef = /* @__PURE__ */ new Set(["left", "top"]);
|
|
5015
|
-
async function
|
|
5015
|
+
async function Hb(e, t) {
|
|
5016
5016
|
const {
|
|
5017
5017
|
placement: n,
|
|
5018
5018
|
platform: r,
|
|
@@ -5050,7 +5050,7 @@ const zb = function(e) {
|
|
|
5050
5050
|
y: o,
|
|
5051
5051
|
placement: s,
|
|
5052
5052
|
middlewareData: a
|
|
5053
|
-
} = t, c = await
|
|
5053
|
+
} = t, c = await Hb(t, e);
|
|
5054
5054
|
return s === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
|
|
5055
5055
|
x: i + c.x,
|
|
5056
5056
|
y: o + c.y,
|
|
@@ -5184,8 +5184,8 @@ const zb = function(e) {
|
|
|
5184
5184
|
const v = h - d.top - d.bottom, S = b - d.left - d.right, _ = yn(h - d[g], v), T = yn(b - d[y], S), x = !t.middlewareData.shift;
|
|
5185
5185
|
let A = _, C = T;
|
|
5186
5186
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = S), (r = t.middlewareData.shift) != null && r.enabled.y && (A = v), x && !m) {
|
|
5187
|
-
const F = lt(d.left, 0), B = lt(d.right, 0), O = lt(d.top, 0),
|
|
5188
|
-
p ? C = b - 2 * (F !== 0 || B !== 0 ? F + B : lt(d.left, d.right)) : A = h - 2 * (O !== 0 ||
|
|
5187
|
+
const F = lt(d.left, 0), B = lt(d.right, 0), O = lt(d.top, 0), j = lt(d.bottom, 0);
|
|
5188
|
+
p ? C = b - 2 * (F !== 0 || B !== 0 ? F + B : lt(d.left, d.right)) : A = h - 2 * (O !== 0 || j !== 0 ? O + j : lt(d.top, d.bottom));
|
|
5189
5189
|
}
|
|
5190
5190
|
await c({
|
|
5191
5191
|
...t,
|
|
@@ -5224,7 +5224,7 @@ function xt(e) {
|
|
|
5224
5224
|
function Qt(e) {
|
|
5225
5225
|
return Go() ? e instanceof HTMLElement || e instanceof dt(e).HTMLElement : !1;
|
|
5226
5226
|
}
|
|
5227
|
-
function
|
|
5227
|
+
function Hl(e) {
|
|
5228
5228
|
return !Go() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof dt(e).ShadowRoot;
|
|
5229
5229
|
}
|
|
5230
5230
|
function Ti(e) {
|
|
@@ -5293,10 +5293,10 @@ function bn(e) {
|
|
|
5293
5293
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
5294
5294
|
e.assignedSlot || // DOM Element detected.
|
|
5295
5295
|
e.parentNode || // ShadowRoot detected.
|
|
5296
|
-
|
|
5296
|
+
Hl(e) && e.host || // Fallback.
|
|
5297
5297
|
Wt(e)
|
|
5298
5298
|
);
|
|
5299
|
-
return
|
|
5299
|
+
return Hl(t) ? t.host : t;
|
|
5300
5300
|
}
|
|
5301
5301
|
function Af(e) {
|
|
5302
5302
|
const t = bn(e);
|
|
@@ -5354,7 +5354,7 @@ function Nf(e) {
|
|
|
5354
5354
|
function ev(e, t, n) {
|
|
5355
5355
|
return t === void 0 && (t = !1), !n || t && n !== dt(e) ? !1 : t;
|
|
5356
5356
|
}
|
|
5357
|
-
function
|
|
5357
|
+
function jn(e, t, n, r) {
|
|
5358
5358
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
5359
5359
|
const i = e.getBoundingClientRect(), o = mc(e);
|
|
5360
5360
|
let s = Ft(1);
|
|
@@ -5378,7 +5378,7 @@ function Hn(e, t, n, r) {
|
|
|
5378
5378
|
}
|
|
5379
5379
|
function Yo(e, t) {
|
|
5380
5380
|
const n = Qo(e).scrollLeft;
|
|
5381
|
-
return t ? t.left + n :
|
|
5381
|
+
return t ? t.left + n : jn(Wt(e)).left + n;
|
|
5382
5382
|
}
|
|
5383
5383
|
function Rf(e, t) {
|
|
5384
5384
|
const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Yo(e, n), i = n.top + t.scrollTop;
|
|
@@ -5403,7 +5403,7 @@ function tv(e) {
|
|
|
5403
5403
|
}, l = Ft(1);
|
|
5404
5404
|
const d = Ft(0), f = Qt(r);
|
|
5405
5405
|
if ((f || !f && !o) && ((Fr(r) !== "body" || Ti(s)) && (c = Qo(r)), f)) {
|
|
5406
|
-
const p =
|
|
5406
|
+
const p = jn(r);
|
|
5407
5407
|
l = lr(r), d.x = p.x + r.clientLeft, d.y = p.y + r.clientTop;
|
|
5408
5408
|
}
|
|
5409
5409
|
const m = s && !f && !o ? Rf(s, c) : Ft(0);
|
|
@@ -5450,7 +5450,7 @@ function iv(e, t) {
|
|
|
5450
5450
|
};
|
|
5451
5451
|
}
|
|
5452
5452
|
function ov(e, t) {
|
|
5453
|
-
const n =
|
|
5453
|
+
const n = jn(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, o = Qt(e) ? lr(e) : Ft(1), s = e.clientWidth * o.x, a = e.clientHeight * o.y, c = i * o.x, l = r * o.y;
|
|
5454
5454
|
return {
|
|
5455
5455
|
width: s,
|
|
5456
5456
|
height: a,
|
|
@@ -5525,7 +5525,7 @@ function cv(e) {
|
|
|
5525
5525
|
};
|
|
5526
5526
|
}
|
|
5527
5527
|
function lv(e, t, n) {
|
|
5528
|
-
const r = Qt(t), i = Wt(t), o = n === "fixed", s =
|
|
5528
|
+
const r = Qt(t), i = Wt(t), o = n === "fixed", s = jn(e, !0, o, t);
|
|
5529
5529
|
let a = {
|
|
5530
5530
|
scrollLeft: 0,
|
|
5531
5531
|
scrollTop: 0
|
|
@@ -5536,7 +5536,7 @@ function lv(e, t, n) {
|
|
|
5536
5536
|
}
|
|
5537
5537
|
if (r || !r && !o)
|
|
5538
5538
|
if ((Fr(t) !== "body" || Ti(i)) && (a = Qo(t)), r) {
|
|
5539
|
-
const p =
|
|
5539
|
+
const p = jn(t, !0, o, t);
|
|
5540
5540
|
c.x = p.x + t.clientLeft, c.y = p.y + t.clientTop;
|
|
5541
5541
|
} else i && l();
|
|
5542
5542
|
o && !r && i && l();
|
|
@@ -5676,10 +5676,10 @@ function mv(e, t, n, r) {
|
|
|
5676
5676
|
(S = p) == null || S.observe(t);
|
|
5677
5677
|
})), n();
|
|
5678
5678
|
}), l && !c && p.observe(l), t && p.observe(t));
|
|
5679
|
-
let b, h = c ?
|
|
5679
|
+
let b, h = c ? jn(e) : null;
|
|
5680
5680
|
c && g();
|
|
5681
5681
|
function g() {
|
|
5682
|
-
const y =
|
|
5682
|
+
const y = jn(e);
|
|
5683
5683
|
h && !If(h, y) && n(), h = y, b = requestAnimationFrame(g);
|
|
5684
5684
|
}
|
|
5685
5685
|
return n(), () => {
|
|
@@ -5689,7 +5689,7 @@ function mv(e, t, n, r) {
|
|
|
5689
5689
|
}), f == null || f(), (y = p) == null || y.disconnect(), p = null, c && cancelAnimationFrame(b);
|
|
5690
5690
|
};
|
|
5691
5691
|
}
|
|
5692
|
-
const hv = zb, gv = Kb, yv = Vb, bv = qb, vv =
|
|
5692
|
+
const hv = zb, gv = Kb, yv = Vb, bv = qb, vv = jb, ql = $b, wv = Gb, _v = (e, t, n) => {
|
|
5693
5693
|
const r = /* @__PURE__ */ new Map(), i = {
|
|
5694
5694
|
platform: fv,
|
|
5695
5695
|
...n
|
|
@@ -5774,7 +5774,7 @@ function xv(e) {
|
|
|
5774
5774
|
L !== x.current && (x.current = L, h(L));
|
|
5775
5775
|
}, []), S = w.useCallback((L) => {
|
|
5776
5776
|
L !== A.current && (A.current = L, y(L));
|
|
5777
|
-
}, []), _ = o || b, T = s || g, x = w.useRef(null), A = w.useRef(null), C = w.useRef(d), R = c != null, F = Os(c), B = Os(i), O = Os(l),
|
|
5777
|
+
}, []), _ = o || b, T = s || g, x = w.useRef(null), A = w.useRef(null), C = w.useRef(d), R = c != null, F = Os(c), B = Os(i), O = Os(l), j = w.useCallback(() => {
|
|
5778
5778
|
if (!x.current || !A.current)
|
|
5779
5779
|
return;
|
|
5780
5780
|
const L = {
|
|
@@ -5808,10 +5808,10 @@ function xv(e) {
|
|
|
5808
5808
|
}), []), ao(() => {
|
|
5809
5809
|
if (_ && (x.current = _), T && (A.current = T), _ && T) {
|
|
5810
5810
|
if (F.current)
|
|
5811
|
-
return F.current(_, T,
|
|
5812
|
-
|
|
5811
|
+
return F.current(_, T, j);
|
|
5812
|
+
j();
|
|
5813
5813
|
}
|
|
5814
|
-
}, [_, T,
|
|
5814
|
+
}, [_, T, j, F, R]);
|
|
5815
5815
|
const z = w.useMemo(() => ({
|
|
5816
5816
|
reference: x,
|
|
5817
5817
|
floating: A,
|
|
@@ -5843,11 +5843,11 @@ function xv(e) {
|
|
|
5843
5843
|
}, [n, a, E.floating, d.x, d.y]);
|
|
5844
5844
|
return w.useMemo(() => ({
|
|
5845
5845
|
...d,
|
|
5846
|
-
update:
|
|
5846
|
+
update: j,
|
|
5847
5847
|
refs: z,
|
|
5848
5848
|
elements: E,
|
|
5849
5849
|
floatingStyles: D
|
|
5850
|
-
}), [d,
|
|
5850
|
+
}), [d, j, z, E, D]);
|
|
5851
5851
|
}
|
|
5852
5852
|
const Cv = (e) => {
|
|
5853
5853
|
function t(n) {
|
|
@@ -5935,7 +5935,7 @@ Ff.displayName = Lv;
|
|
|
5935
5935
|
var Dv = Ff;
|
|
5936
5936
|
function Iv(e) {
|
|
5937
5937
|
const [t, n] = w.useState(void 0);
|
|
5938
|
-
return
|
|
5938
|
+
return je(() => {
|
|
5939
5939
|
if (e) {
|
|
5940
5940
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
5941
5941
|
const r = new ResizeObserver((i) => {
|
|
@@ -5970,7 +5970,7 @@ var hc = "Popper", [Uf, Bf] = Qn(hc), [Mv, Wf] = Uf(hc), $f = (e) => {
|
|
|
5970
5970
|
);
|
|
5971
5971
|
};
|
|
5972
5972
|
$f.displayName = hc;
|
|
5973
|
-
var Vf = "PopperAnchor",
|
|
5973
|
+
var Vf = "PopperAnchor", jf = w.forwardRef(
|
|
5974
5974
|
(e, t) => {
|
|
5975
5975
|
const { __scopePopper: n, virtualRef: r, ...i } = e, o = Wf(Vf, n), s = w.useRef(null), a = o.onAnchorChange, c = w.useCallback(
|
|
5976
5976
|
(b) => {
|
|
@@ -5996,10 +5996,10 @@ var Vf = "PopperAnchor", Hf = w.forwardRef(
|
|
|
5996
5996
|
);
|
|
5997
5997
|
}
|
|
5998
5998
|
);
|
|
5999
|
-
|
|
6000
|
-
var gc = "PopperContent", [Fv, Uv] = Uf(gc),
|
|
5999
|
+
jf.displayName = Vf;
|
|
6000
|
+
var gc = "PopperContent", [Fv, Uv] = Uf(gc), Hf = w.forwardRef(
|
|
6001
6001
|
(e, t) => {
|
|
6002
|
-
var
|
|
6002
|
+
var Q, we, ue, te, de, Le;
|
|
6003
6003
|
const {
|
|
6004
6004
|
__scopePopper: n,
|
|
6005
6005
|
side: r = "bottom",
|
|
@@ -6015,7 +6015,7 @@ var gc = "PopperContent", [Fv, Uv] = Uf(gc), jf = w.forwardRef(
|
|
|
6015
6015
|
updatePositionStrategy: p = "optimized",
|
|
6016
6016
|
onPlaced: b,
|
|
6017
6017
|
...h
|
|
6018
|
-
} = e, g = Wf(gc, n), [y, v] = w.useState(null), S = Me(t, (K) => v(K)), [_, T] = w.useState(null), x = Iv(_), A = (x == null ? void 0 : x.width) ?? 0, C = (x == null ? void 0 : x.height) ?? 0, R = r + (o !== "center" ? "-" + o : ""), F = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, B = Array.isArray(l) ? l : [l], O = B.length > 0,
|
|
6018
|
+
} = e, g = Wf(gc, n), [y, v] = w.useState(null), S = Me(t, (K) => v(K)), [_, T] = w.useState(null), x = Iv(_), A = (x == null ? void 0 : x.width) ?? 0, C = (x == null ? void 0 : x.height) ?? 0, R = r + (o !== "center" ? "-" + o : ""), F = typeof d == "number" ? d : { top: 0, right: 0, bottom: 0, left: 0, ...d }, B = Array.isArray(l) ? l : [l], O = B.length > 0, j = {
|
|
6019
6019
|
padding: F,
|
|
6020
6020
|
boundary: B.filter(Wv),
|
|
6021
6021
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -6036,21 +6036,21 @@ var gc = "PopperContent", [Fv, Uv] = Uf(gc), jf = w.forwardRef(
|
|
|
6036
6036
|
mainAxis: !0,
|
|
6037
6037
|
crossAxis: !1,
|
|
6038
6038
|
limiter: f === "partial" ? kv() : void 0,
|
|
6039
|
-
...
|
|
6039
|
+
...j
|
|
6040
6040
|
}),
|
|
6041
|
-
c && Av({ ...
|
|
6041
|
+
c && Av({ ...j }),
|
|
6042
6042
|
Ov({
|
|
6043
|
-
...
|
|
6043
|
+
...j,
|
|
6044
6044
|
apply: ({ elements: K, rects: Ce, availableWidth: ie, availableHeight: Pe }) => {
|
|
6045
|
-
const { width:
|
|
6046
|
-
vt.setProperty("--radix-popper-available-width", `${ie}px`), vt.setProperty("--radix-popper-available-height", `${Pe}px`), vt.setProperty("--radix-popper-anchor-width", `${
|
|
6045
|
+
const { width: He, height: Ye } = Ce.reference, vt = K.floating.style;
|
|
6046
|
+
vt.setProperty("--radix-popper-available-width", `${ie}px`), vt.setProperty("--radix-popper-available-height", `${Pe}px`), vt.setProperty("--radix-popper-anchor-width", `${He}px`), vt.setProperty("--radix-popper-anchor-height", `${Ye}px`);
|
|
6047
6047
|
}
|
|
6048
6048
|
}),
|
|
6049
6049
|
_ && Rv({ element: _, padding: a }),
|
|
6050
6050
|
$v({ arrowWidth: A, arrowHeight: C }),
|
|
6051
6051
|
m && Nv({
|
|
6052
6052
|
strategy: "referenceHidden",
|
|
6053
|
-
...
|
|
6053
|
+
...j,
|
|
6054
6054
|
// `hide` detects whether the anchor (reference) is clipped, so when
|
|
6055
6055
|
// no explicit `collisionBoundary` is set we fall back to Floating
|
|
6056
6056
|
// UI's default clipping ancestors (e.g. a scrollable menu). This
|
|
@@ -6058,20 +6058,20 @@ var gc = "PopperContent", [Fv, Uv] = Uf(gc), jf = w.forwardRef(
|
|
|
6058
6058
|
// (#3237). The collision/size middlewares deliberately keep the
|
|
6059
6059
|
// viewport-based default to avoid clamping content rendered inside
|
|
6060
6060
|
// transformed or overflow-clipping portal containers.
|
|
6061
|
-
boundary: O ?
|
|
6061
|
+
boundary: O ? j.boundary : void 0
|
|
6062
6062
|
})
|
|
6063
6063
|
]
|
|
6064
6064
|
}), N = g.setPlacementState;
|
|
6065
|
-
|
|
6065
|
+
je(() => (N(E), () => {
|
|
6066
6066
|
N(void 0);
|
|
6067
6067
|
}), [E, N]);
|
|
6068
6068
|
const [$, U] = yc(E), G = Tt(b);
|
|
6069
|
-
|
|
6069
|
+
je(() => {
|
|
6070
6070
|
D && (G == null || G());
|
|
6071
6071
|
}, [D, G]);
|
|
6072
|
-
const X = (
|
|
6073
|
-
return
|
|
6074
|
-
y &&
|
|
6072
|
+
const X = (Q = L.arrow) == null ? void 0 : Q.x, pe = (we = L.arrow) == null ? void 0 : we.y, re = ((ue = L.arrow) == null ? void 0 : ue.centerOffset) !== 0, [W, V] = w.useState();
|
|
6073
|
+
return je(() => {
|
|
6074
|
+
y && V(window.getComputedStyle(y).zIndex);
|
|
6075
6075
|
}, [y]), /* @__PURE__ */ u(
|
|
6076
6076
|
"div",
|
|
6077
6077
|
{
|
|
@@ -6127,7 +6127,7 @@ var gc = "PopperContent", [Fv, Uv] = Uf(gc), jf = w.forwardRef(
|
|
|
6127
6127
|
);
|
|
6128
6128
|
}
|
|
6129
6129
|
);
|
|
6130
|
-
|
|
6130
|
+
Hf.displayName = gc;
|
|
6131
6131
|
var zf = "PopperArrow", Bv = {
|
|
6132
6132
|
top: "bottom",
|
|
6133
6133
|
right: "left",
|
|
@@ -6196,7 +6196,7 @@ function yc(e) {
|
|
|
6196
6196
|
const [t, n = "center"] = e.split("-");
|
|
6197
6197
|
return [t, n];
|
|
6198
6198
|
}
|
|
6199
|
-
var Vv = $f,
|
|
6199
|
+
var Vv = $f, jv = jf, Hv = Hf, zv = Kf;
|
|
6200
6200
|
function Kv(e) {
|
|
6201
6201
|
const t = w.useRef({ value: e, previous: e });
|
|
6202
6202
|
return w.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
@@ -6224,10 +6224,10 @@ var Gf = Object.freeze({
|
|
|
6224
6224
|
)
|
|
6225
6225
|
);
|
|
6226
6226
|
bc.displayName = Gv;
|
|
6227
|
-
var qv = [" ", "Enter", "ArrowUp", "ArrowDown"], Qv = [" ", "Enter"],
|
|
6227
|
+
var qv = [" ", "Enter", "ArrowUp", "ArrowDown"], Qv = [" ", "Enter"], Hn = "Select", [Zo, Xo, Yv] = cc(Hn), [Zn] = Qn(Hn, [
|
|
6228
6228
|
Yv,
|
|
6229
6229
|
Bf
|
|
6230
|
-
]), Jo = Bf(), [Zv, Sn] = Zn(
|
|
6230
|
+
]), Jo = Bf(), [Zv, Sn] = Zn(Hn), [Xv, Jv] = Zn(Hn), ew = "SelectProvider";
|
|
6231
6231
|
function qf(e) {
|
|
6232
6232
|
const {
|
|
6233
6233
|
__scopeSelect: t,
|
|
@@ -6250,13 +6250,13 @@ function qf(e) {
|
|
|
6250
6250
|
prop: r,
|
|
6251
6251
|
defaultProp: i ?? !1,
|
|
6252
6252
|
onChange: o,
|
|
6253
|
-
caller:
|
|
6253
|
+
caller: Hn
|
|
6254
6254
|
}), [F, B] = Vn({
|
|
6255
6255
|
prop: s,
|
|
6256
6256
|
defaultProp: a,
|
|
6257
6257
|
onChange: c,
|
|
6258
|
-
caller:
|
|
6259
|
-
}), O = w.useRef(null),
|
|
6258
|
+
caller: Hn
|
|
6259
|
+
}), O = w.useRef(null), j = y ? !!b || !!y.closest("form") : !0, [M, z] = w.useState(/* @__PURE__ */ new Set()), E = mn(), D = Array.from(M).map((U) => U.props.value).join(";"), L = w.useCallback((U) => {
|
|
6260
6260
|
z((G) => new Set(G).add(U));
|
|
6261
6261
|
}, []), N = w.useCallback((U) => {
|
|
6262
6262
|
z((G) => {
|
|
@@ -6284,7 +6284,7 @@ function qf(e) {
|
|
|
6284
6284
|
form: b,
|
|
6285
6285
|
nativeOptions: M,
|
|
6286
6286
|
nativeSelectKey: D,
|
|
6287
|
-
isFormControl:
|
|
6287
|
+
isFormControl: j
|
|
6288
6288
|
};
|
|
6289
6289
|
return /* @__PURE__ */ u(Vv, { ...g, children: /* @__PURE__ */ u(Zv, { scope: t, ...$, children: /* @__PURE__ */ u(Zo.Provider, { scope: t, children: /* @__PURE__ */ u(
|
|
6290
6290
|
Xv,
|
|
@@ -6316,7 +6316,7 @@ var Qf = (e) => {
|
|
|
6316
6316
|
}
|
|
6317
6317
|
);
|
|
6318
6318
|
};
|
|
6319
|
-
Qf.displayName =
|
|
6319
|
+
Qf.displayName = Hn;
|
|
6320
6320
|
var Yf = "SelectTrigger", vc = w.forwardRef(
|
|
6321
6321
|
(e, t) => {
|
|
6322
6322
|
const { __scopeSelect: n, disabled: r = !1, ...i } = e, o = Jo(n), s = Sn(Yf, n), a = s.disabled || r, c = Me(t, s.onTriggerChange), l = Xo(n), d = w.useRef("touch"), [f, m, p] = yp((h) => {
|
|
@@ -6328,7 +6328,7 @@ var Yf = "SelectTrigger", vc = w.forwardRef(
|
|
|
6328
6328
|
y: Math.round(h.pageY)
|
|
6329
6329
|
});
|
|
6330
6330
|
};
|
|
6331
|
-
return /* @__PURE__ */ u(
|
|
6331
|
+
return /* @__PURE__ */ u(jv, { asChild: !0, ...o, children: /* @__PURE__ */ u(
|
|
6332
6332
|
ve.button,
|
|
6333
6333
|
{
|
|
6334
6334
|
type: "button",
|
|
@@ -6364,7 +6364,7 @@ vc.displayName = Yf;
|
|
|
6364
6364
|
var Zf = "SelectValue", Xf = w.forwardRef(
|
|
6365
6365
|
(e, t) => {
|
|
6366
6366
|
const { __scopeSelect: n, className: r, style: i, children: o, placeholder: s = "", ...a } = e, c = Sn(Zf, n), { onValueNodeHasChildrenChange: l } = c, d = o !== void 0, f = Me(t, c.onValueNodeChange);
|
|
6367
|
-
|
|
6367
|
+
je(() => {
|
|
6368
6368
|
l(d);
|
|
6369
6369
|
}, [l, d]);
|
|
6370
6370
|
const m = es(c.value);
|
|
@@ -6392,13 +6392,13 @@ var ep = "SelectPortal", [nw, rw] = Zn(ep, {
|
|
|
6392
6392
|
forceMount: void 0
|
|
6393
6393
|
}), tp = (e) => {
|
|
6394
6394
|
const { __scopeSelect: t, forceMount: n, ...r } = e;
|
|
6395
|
-
return /* @__PURE__ */ u(nw, { scope: e.__scopeSelect, forceMount: n, children: /* @__PURE__ */ u(
|
|
6395
|
+
return /* @__PURE__ */ u(nw, { scope: e.__scopeSelect, forceMount: n, children: /* @__PURE__ */ u(Ho, { asChild: !0, ...r }) });
|
|
6396
6396
|
};
|
|
6397
6397
|
tp.displayName = ep;
|
|
6398
6398
|
var vn = "SelectContent", wc = w.forwardRef(
|
|
6399
6399
|
(e, t) => {
|
|
6400
6400
|
const n = rw(vn, e.__scopeSelect), { forceMount: r = n.forceMount, ...i } = e, o = Sn(vn, e.__scopeSelect), [s, a] = w.useState();
|
|
6401
|
-
return
|
|
6401
|
+
return je(() => {
|
|
6402
6402
|
a(new DocumentFragment());
|
|
6403
6403
|
}, []), /* @__PURE__ */ u(Yn, { present: r || o.open, children: ({ present: c }) => c ? /* @__PURE__ */ u(ip, { ...i, ref: t }) : /* @__PURE__ */ u(np, { ...i, fragment: s }) });
|
|
6404
6404
|
}
|
|
@@ -6433,17 +6433,17 @@ var _t = 10, [rp, Tn] = Zn(vn), iw = "SelectContentImpl", ow = /* @__PURE__ */ T
|
|
|
6433
6433
|
avoidCollisions: g,
|
|
6434
6434
|
//
|
|
6435
6435
|
...y
|
|
6436
|
-
} = e, v = Sn(vn, n), [S, _] = w.useState(null), [T, x] = w.useState(null), A = Me(t, (
|
|
6436
|
+
} = e, v = Sn(vn, n), [S, _] = w.useState(null), [T, x] = w.useState(null), A = Me(t, (V) => _(V)), [C, R] = w.useState(null), [F, B] = w.useState(
|
|
6437
6437
|
null
|
|
6438
|
-
), O = Xo(n), [
|
|
6438
|
+
), O = Xo(n), [j, M] = w.useState(!1), z = w.useRef(!1);
|
|
6439
6439
|
w.useEffect(() => {
|
|
6440
6440
|
if (S) return lf(S);
|
|
6441
6441
|
}, [S]), Ju();
|
|
6442
6442
|
const E = w.useCallback(
|
|
6443
|
-
(
|
|
6444
|
-
const [
|
|
6445
|
-
for (const de of
|
|
6446
|
-
if (de === te || (de == null || de.scrollIntoView({ block: "nearest" }), de ===
|
|
6443
|
+
(V) => {
|
|
6444
|
+
const [Q, ...we] = O().map((de) => de.ref.current), [ue] = we.slice(-1), te = document.activeElement;
|
|
6445
|
+
for (const de of V)
|
|
6446
|
+
if (de === te || (de == null || de.scrollIntoView({ block: "nearest" }), de === Q && T && (T.scrollTop = 0), de === ue && T && (T.scrollTop = T.scrollHeight), de == null || de.focus(), document.activeElement !== te)) return;
|
|
6447
6447
|
},
|
|
6448
6448
|
[O, T]
|
|
6449
6449
|
), D = w.useCallback(
|
|
@@ -6451,47 +6451,47 @@ var _t = 10, [rp, Tn] = Zn(vn), iw = "SelectContentImpl", ow = /* @__PURE__ */ T
|
|
|
6451
6451
|
[E, C, S]
|
|
6452
6452
|
);
|
|
6453
6453
|
w.useEffect(() => {
|
|
6454
|
-
|
|
6455
|
-
}, [
|
|
6454
|
+
j && D();
|
|
6455
|
+
}, [j, D]);
|
|
6456
6456
|
const { onOpenChange: L, triggerPointerDownPosRef: N } = v;
|
|
6457
6457
|
w.useEffect(() => {
|
|
6458
6458
|
if (S) {
|
|
6459
|
-
let
|
|
6460
|
-
const
|
|
6459
|
+
let V = { x: 0, y: 0 };
|
|
6460
|
+
const Q = (ue) => {
|
|
6461
6461
|
var te, de;
|
|
6462
|
-
|
|
6462
|
+
V = {
|
|
6463
6463
|
x: Math.abs(Math.round(ue.pageX) - (((te = N.current) == null ? void 0 : te.x) ?? 0)),
|
|
6464
6464
|
y: Math.abs(Math.round(ue.pageY) - (((de = N.current) == null ? void 0 : de.y) ?? 0))
|
|
6465
6465
|
};
|
|
6466
6466
|
}, we = (ue) => {
|
|
6467
|
-
|
|
6467
|
+
V.x <= 10 && V.y <= 10 ? ue.preventDefault() : ue.composedPath().includes(S) || L(!1), document.removeEventListener("pointermove", Q), N.current = null;
|
|
6468
6468
|
};
|
|
6469
|
-
return N.current !== null && (document.addEventListener("pointermove",
|
|
6470
|
-
document.removeEventListener("pointermove",
|
|
6469
|
+
return N.current !== null && (document.addEventListener("pointermove", Q), document.addEventListener("pointerup", we, { capture: !0, once: !0 })), () => {
|
|
6470
|
+
document.removeEventListener("pointermove", Q), document.removeEventListener("pointerup", we, { capture: !0 });
|
|
6471
6471
|
};
|
|
6472
6472
|
}
|
|
6473
6473
|
}, [S, L, N]), w.useEffect(() => {
|
|
6474
|
-
const
|
|
6475
|
-
return window.addEventListener("blur",
|
|
6476
|
-
window.removeEventListener("blur",
|
|
6474
|
+
const V = () => L(!1);
|
|
6475
|
+
return window.addEventListener("blur", V), window.addEventListener("resize", V), () => {
|
|
6476
|
+
window.removeEventListener("blur", V), window.removeEventListener("resize", V);
|
|
6477
6477
|
};
|
|
6478
6478
|
}, [L]);
|
|
6479
|
-
const [$, U] = yp((
|
|
6480
|
-
const
|
|
6479
|
+
const [$, U] = yp((V) => {
|
|
6480
|
+
const Q = O().filter((te) => !te.disabled), we = Q.find((te) => te.ref.current === document.activeElement), ue = bp(Q, V, we);
|
|
6481
6481
|
ue && setTimeout(() => {
|
|
6482
6482
|
var te;
|
|
6483
6483
|
return (te = ue.ref.current) == null ? void 0 : te.focus();
|
|
6484
6484
|
});
|
|
6485
6485
|
}), G = w.useCallback(
|
|
6486
|
-
(
|
|
6486
|
+
(V, Q, we) => {
|
|
6487
6487
|
const ue = !z.current && !we;
|
|
6488
|
-
(v.value !== void 0 && v.value ===
|
|
6488
|
+
(v.value !== void 0 && v.value === Q || ue) && (R(V), ue && (z.current = !0));
|
|
6489
6489
|
},
|
|
6490
6490
|
[v.value]
|
|
6491
6491
|
), X = w.useCallback(() => S == null ? void 0 : S.focus(), [S]), pe = w.useCallback(
|
|
6492
|
-
(
|
|
6492
|
+
(V, Q, we) => {
|
|
6493
6493
|
const ue = !z.current && !we;
|
|
6494
|
-
(v.value !== void 0 && v.value ===
|
|
6494
|
+
(v.value !== void 0 && v.value === Q || ue) && B(V);
|
|
6495
6495
|
},
|
|
6496
6496
|
[v.value]
|
|
6497
6497
|
), re = r === "popper" ? ia : op, W = re === ia ? {
|
|
@@ -6520,28 +6520,28 @@ var _t = 10, [rp, Tn] = Zn(vn), iw = "SelectContentImpl", ow = /* @__PURE__ */ T
|
|
|
6520
6520
|
focusSelectedItem: D,
|
|
6521
6521
|
selectedItemText: F,
|
|
6522
6522
|
position: r,
|
|
6523
|
-
isPositioned:
|
|
6523
|
+
isPositioned: j,
|
|
6524
6524
|
searchRef: $,
|
|
6525
6525
|
children: /* @__PURE__ */ u(tc, { as: ow, allowPinchZoom: !0, children: /* @__PURE__ */ u(
|
|
6526
6526
|
ec,
|
|
6527
6527
|
{
|
|
6528
6528
|
asChild: !0,
|
|
6529
6529
|
trapped: v.open,
|
|
6530
|
-
onMountAutoFocus: (
|
|
6531
|
-
|
|
6530
|
+
onMountAutoFocus: (V) => {
|
|
6531
|
+
V.preventDefault();
|
|
6532
6532
|
},
|
|
6533
|
-
onUnmountAutoFocus: be(i, (
|
|
6534
|
-
var
|
|
6535
|
-
(
|
|
6533
|
+
onUnmountAutoFocus: be(i, (V) => {
|
|
6534
|
+
var Q;
|
|
6535
|
+
(Q = v.trigger) == null || Q.focus({ preventScroll: !0 }), V.preventDefault();
|
|
6536
6536
|
}),
|
|
6537
6537
|
children: /* @__PURE__ */ u(
|
|
6538
|
-
|
|
6538
|
+
jo,
|
|
6539
6539
|
{
|
|
6540
6540
|
asChild: !0,
|
|
6541
6541
|
disableOutsidePointerEvents: !0,
|
|
6542
6542
|
onEscapeKeyDown: o,
|
|
6543
6543
|
onPointerDownOutside: s,
|
|
6544
|
-
onFocusOutside: (
|
|
6544
|
+
onFocusOutside: (V) => V.preventDefault(),
|
|
6545
6545
|
onDismiss: () => v.onOpenChange(!1),
|
|
6546
6546
|
children: /* @__PURE__ */ u(
|
|
6547
6547
|
re,
|
|
@@ -6550,7 +6550,7 @@ var _t = 10, [rp, Tn] = Zn(vn), iw = "SelectContentImpl", ow = /* @__PURE__ */ T
|
|
|
6550
6550
|
id: v.contentId,
|
|
6551
6551
|
"data-state": v.open ? "open" : "closed",
|
|
6552
6552
|
dir: v.dir,
|
|
6553
|
-
onContextMenu: (
|
|
6553
|
+
onContextMenu: (V) => V.preventDefault(),
|
|
6554
6554
|
...y,
|
|
6555
6555
|
...W,
|
|
6556
6556
|
onPlaced: () => M(!0),
|
|
@@ -6563,15 +6563,15 @@ var _t = 10, [rp, Tn] = Zn(vn), iw = "SelectContentImpl", ow = /* @__PURE__ */ T
|
|
|
6563
6563
|
outline: "none",
|
|
6564
6564
|
...y.style
|
|
6565
6565
|
},
|
|
6566
|
-
onKeyDown: be(y.onKeyDown, (
|
|
6567
|
-
const
|
|
6568
|
-
if (
|
|
6566
|
+
onKeyDown: be(y.onKeyDown, (V) => {
|
|
6567
|
+
const Q = V.ctrlKey || V.altKey || V.metaKey;
|
|
6568
|
+
if (V.key === "Tab" && V.preventDefault(), !Q && V.key.length === 1 && U(V.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(V.key)) {
|
|
6569
6569
|
let ue = O().filter((te) => !te.disabled).map((te) => te.ref.current);
|
|
6570
|
-
if (["ArrowUp", "End"].includes(
|
|
6571
|
-
const te =
|
|
6570
|
+
if (["ArrowUp", "End"].includes(V.key) && (ue = ue.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(V.key)) {
|
|
6571
|
+
const te = V.target, de = ue.indexOf(te);
|
|
6572
6572
|
ue = ue.slice(de + 1);
|
|
6573
6573
|
}
|
|
6574
|
-
setTimeout(() => E(ue)),
|
|
6574
|
+
setTimeout(() => E(ue)), V.preventDefault();
|
|
6575
6575
|
}
|
|
6576
6576
|
})
|
|
6577
6577
|
}
|
|
@@ -6607,15 +6607,15 @@ var sw = "SelectItemAlignedPosition", op = w.forwardRef((e, t) => {
|
|
|
6607
6607
|
]);
|
|
6608
6608
|
a.style.minWidth = K + "px", a.style.right = Pe + "px";
|
|
6609
6609
|
}
|
|
6610
|
-
const B = m(), O = window.innerHeight - _t * 2,
|
|
6611
|
-
if (
|
|
6610
|
+
const B = m(), O = window.innerHeight - _t * 2, j = h.scrollHeight, M = window.getComputedStyle(l), z = parseInt(M.borderTopWidth, 10), E = parseInt(M.paddingTop, 10), D = parseInt(M.borderBottomWidth, 10), L = parseInt(M.paddingBottom, 10), N = z + E + j + L + D, $ = Math.min(g.offsetHeight * 5, N), U = window.getComputedStyle(h), G = parseInt(U.paddingTop, 10), X = parseInt(U.paddingBottom, 10), pe = A.top + A.height / 2 - _t, re = O - pe, W = g.offsetHeight / 2, V = g.offsetTop + W, Q = z + E + V, we = N - Q;
|
|
6611
|
+
if (Q <= pe) {
|
|
6612
6612
|
const te = B.length > 0 && g === B[B.length - 1].ref.current;
|
|
6613
6613
|
a.style.bottom = "0px";
|
|
6614
6614
|
const de = l.clientHeight - h.offsetTop - h.offsetHeight, Le = Math.max(
|
|
6615
6615
|
re,
|
|
6616
6616
|
W + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
6617
6617
|
(te ? X : 0) + de + D
|
|
6618
|
-
), K =
|
|
6618
|
+
), K = Q + Le;
|
|
6619
6619
|
a.style.height = K + "px";
|
|
6620
6620
|
} else {
|
|
6621
6621
|
const te = B.length > 0 && g === B[0].ref.current;
|
|
@@ -6625,7 +6625,7 @@ var sw = "SelectItemAlignedPosition", op = w.forwardRef((e, t) => {
|
|
|
6625
6625
|
z + h.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
6626
6626
|
(te ? G : 0) + W
|
|
6627
6627
|
) + we;
|
|
6628
|
-
a.style.height = Le + "px", h.scrollTop =
|
|
6628
|
+
a.style.height = Le + "px", h.scrollTop = Q - pe + h.offsetTop;
|
|
6629
6629
|
}
|
|
6630
6630
|
a.style.margin = `${_t}px 0`, a.style.minHeight = $ + "px", a.style.maxHeight = O + "px", r == null || r(), requestAnimationFrame(() => p.current = !0);
|
|
6631
6631
|
}
|
|
@@ -6641,9 +6641,9 @@ var sw = "SelectItemAlignedPosition", op = w.forwardRef((e, t) => {
|
|
|
6641
6641
|
o.dir,
|
|
6642
6642
|
r
|
|
6643
6643
|
]);
|
|
6644
|
-
|
|
6644
|
+
je(() => S(), [S]);
|
|
6645
6645
|
const [_, T] = w.useState();
|
|
6646
|
-
|
|
6646
|
+
je(() => {
|
|
6647
6647
|
l && T(window.getComputedStyle(l).zIndex);
|
|
6648
6648
|
}, [l]);
|
|
6649
6649
|
const x = w.useCallback(
|
|
@@ -6698,7 +6698,7 @@ var aw = "SelectPopperPosition", ia = w.forwardRef((e, t) => {
|
|
|
6698
6698
|
...o
|
|
6699
6699
|
} = e, s = Jo(n);
|
|
6700
6700
|
return /* @__PURE__ */ u(
|
|
6701
|
-
|
|
6701
|
+
Hv,
|
|
6702
6702
|
{
|
|
6703
6703
|
...s,
|
|
6704
6704
|
...o,
|
|
@@ -6880,7 +6880,7 @@ var Yr = "SelectItemText", dp = w.forwardRef(
|
|
|
6880
6880
|
() => /* @__PURE__ */ u("option", { value: c.value, disabled: c.disabled, children: p }, c.value),
|
|
6881
6881
|
[c.disabled, c.value, p]
|
|
6882
6882
|
), { onNativeOptionAdd: h, onNativeOptionRemove: g } = l;
|
|
6883
|
-
return
|
|
6883
|
+
return je(() => (h(b), () => g(b)), [h, g, b]), /* @__PURE__ */ I($e, { children: [
|
|
6884
6884
|
/* @__PURE__ */ u(ve.span, { id: c.textId, ...o, ref: m }),
|
|
6885
6885
|
c.isSelected && s.valueNode && !s.valueNodeHasChildren && !es(s.value) ? Ir.createPortal(o.children, s.valueNode) : null
|
|
6886
6886
|
] });
|
|
@@ -6896,7 +6896,7 @@ var up = "SelectItemIndicator", fp = w.forwardRef(
|
|
|
6896
6896
|
fp.displayName = up;
|
|
6897
6897
|
var sa = "SelectScrollUpButton", xc = w.forwardRef((e, t) => {
|
|
6898
6898
|
const n = Tn(sa, e.__scopeSelect), r = _c(sa, e.__scopeSelect), [i, o] = w.useState(!1), s = Me(t, r.onScrollButtonChange);
|
|
6899
|
-
return
|
|
6899
|
+
return je(() => {
|
|
6900
6900
|
if (n.viewport && n.isPositioned) {
|
|
6901
6901
|
let a = function() {
|
|
6902
6902
|
const l = c.scrollTop > 0;
|
|
@@ -6920,7 +6920,7 @@ var sa = "SelectScrollUpButton", xc = w.forwardRef((e, t) => {
|
|
|
6920
6920
|
xc.displayName = sa;
|
|
6921
6921
|
var aa = "SelectScrollDownButton", Cc = w.forwardRef((e, t) => {
|
|
6922
6922
|
const n = Tn(aa, e.__scopeSelect), r = _c(aa, e.__scopeSelect), [i, o] = w.useState(!1), s = Me(t, r.onScrollButtonChange);
|
|
6923
|
-
return
|
|
6923
|
+
return je(() => {
|
|
6924
6924
|
if (n.viewport && n.isPositioned) {
|
|
6925
6925
|
let a = function() {
|
|
6926
6926
|
const l = c.scrollHeight - c.clientHeight, d = Math.ceil(c.scrollTop) < l;
|
|
@@ -6946,7 +6946,7 @@ var pp = w.forwardRef((e, t) => {
|
|
|
6946
6946
|
const { __scopeSelect: n, onAutoScroll: r, ...i } = e, o = Tn("SelectScrollButton", n), s = w.useRef(null), a = Xo(n), c = w.useCallback(() => {
|
|
6947
6947
|
s.current !== null && (window.clearInterval(s.current), s.current = null);
|
|
6948
6948
|
}, []);
|
|
6949
|
-
return w.useEffect(() => () => c(), [c]),
|
|
6949
|
+
return w.useEffect(() => () => c(), [c]), je(() => {
|
|
6950
6950
|
var d;
|
|
6951
6951
|
const l = a().find((f) => f.ref.current === document.activeElement);
|
|
6952
6952
|
(d = l == null ? void 0 : l.ref.current) == null || d.scrollIntoView({ block: "nearest" });
|
|
@@ -7444,15 +7444,15 @@ function Vw(e) {
|
|
|
7444
7444
|
}
|
|
7445
7445
|
return [...t];
|
|
7446
7446
|
}
|
|
7447
|
-
function
|
|
7447
|
+
function jw(e, t) {
|
|
7448
7448
|
const n = xi(e);
|
|
7449
7449
|
if (n === t)
|
|
7450
7450
|
return !0;
|
|
7451
7451
|
const r = Oc(ns(e));
|
|
7452
7452
|
return r === t && n !== r;
|
|
7453
7453
|
}
|
|
7454
|
-
function
|
|
7455
|
-
if (!
|
|
7454
|
+
function Hw(e, t, n, r, i) {
|
|
7455
|
+
if (!jw(e.symbol, t))
|
|
7456
7456
|
return e;
|
|
7457
7457
|
const o = xi(e.symbol) === t, s = o ? n : e.marketBid ?? e.currentPrice, a = o ? r : e.marketAsk ?? e.currentPrice, c = e.type === "buy" ? s : a, l = e.profitPerPriceUnit !== void 0 ? Math.round(Cp(e.type, e.openPrice, c) * e.profitPerPriceUnit * 100) / 100 : $w(
|
|
7458
7458
|
e.type,
|
|
@@ -7570,14 +7570,14 @@ function zw(e) {
|
|
|
7570
7570
|
function Kw() {
|
|
7571
7571
|
if (typeof window > "u")
|
|
7572
7572
|
return null;
|
|
7573
|
-
const e = localStorage.getItem(
|
|
7573
|
+
const e = localStorage.getItem(ju);
|
|
7574
7574
|
return (e == null ? void 0 : e.trim()) || null;
|
|
7575
7575
|
}
|
|
7576
7576
|
function Yl(e) {
|
|
7577
7577
|
if (typeof window > "u")
|
|
7578
7578
|
return;
|
|
7579
7579
|
const t = e.trim();
|
|
7580
|
-
t && localStorage.setItem(
|
|
7580
|
+
t && localStorage.setItem(ju, t);
|
|
7581
7581
|
}
|
|
7582
7582
|
function Gw(e, t) {
|
|
7583
7583
|
var n;
|
|
@@ -8606,11 +8606,11 @@ const D_ = ls("string"), ot = ls("function"), Wp = ls("number"), Wr = (e) => e !
|
|
|
8606
8606
|
} catch {
|
|
8607
8607
|
return !1;
|
|
8608
8608
|
}
|
|
8609
|
-
}, F_ = Et("Date"), U_ = Et("File"), B_ = (e) => !!(e && typeof e.uri < "u"), W_ = (e) => e && typeof e.getParts < "u", $_ = Et("Blob"), V_ = Et("FileList"),
|
|
8610
|
-
function
|
|
8609
|
+
}, F_ = Et("Date"), U_ = Et("File"), B_ = (e) => !!(e && typeof e.uri < "u"), W_ = (e) => e && typeof e.getParts < "u", $_ = Et("Blob"), V_ = Et("FileList"), j_ = (e) => Wr(e) && ot(e.pipe);
|
|
8610
|
+
function H_() {
|
|
8611
8611
|
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
8612
8612
|
}
|
|
8613
|
-
const dd =
|
|
8613
|
+
const dd = H_(), ud = typeof dd.FormData < "u" ? dd.FormData : void 0, z_ = (e) => {
|
|
8614
8614
|
if (!e) return !1;
|
|
8615
8615
|
if (ud && e instanceof ud) return !0;
|
|
8616
8616
|
const t = Pr(e);
|
|
@@ -8740,14 +8740,14 @@ const X_ = (e, t, n, { allOwnKeys: r } = {}) => (ki(
|
|
|
8740
8740
|
return r;
|
|
8741
8741
|
}, aS = Et("HTMLFormElement"), cS = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(n, r, i) {
|
|
8742
8742
|
return r.toUpperCase() + i;
|
|
8743
|
-
}), { propertyIsEnumerable: lS } = Object.prototype, dS = Et("RegExp"),
|
|
8743
|
+
}), { propertyIsEnumerable: lS } = Object.prototype, dS = Et("RegExp"), jp = (e, t) => {
|
|
8744
8744
|
const n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
8745
8745
|
ki(n, (i, o) => {
|
|
8746
8746
|
let s;
|
|
8747
8747
|
(s = t(i, o, e)) !== !1 && (r[o] = s || i);
|
|
8748
8748
|
}), Object.defineProperties(e, r);
|
|
8749
8749
|
}, uS = (e) => {
|
|
8750
|
-
|
|
8750
|
+
jp(e, (t, n) => {
|
|
8751
8751
|
if (ot(e) && ["arguments", "caller", "callee"].includes(n))
|
|
8752
8752
|
return !1;
|
|
8753
8753
|
const r = e[n];
|
|
@@ -8792,7 +8792,7 @@ const gS = (e) => {
|
|
|
8792
8792
|
return r;
|
|
8793
8793
|
};
|
|
8794
8794
|
return n(e);
|
|
8795
|
-
}, yS = Et("AsyncFunction"), bS = (e) => e && (Wr(e) || ot(e)) && ot(e.then) && ot(e.catch),
|
|
8795
|
+
}, yS = Et("AsyncFunction"), bS = (e) => e && (Wr(e) || ot(e)) && ot(e.then) && ot(e.catch), Hp = ((e, t) => e ? setImmediate : t ? ((n, r) => (En.addEventListener(
|
|
8796
8796
|
"message",
|
|
8797
8797
|
({ source: i, data: o }) => {
|
|
8798
8798
|
i === En && o === n && r.length && r.shift()();
|
|
@@ -8800,7 +8800,7 @@ const gS = (e) => {
|
|
|
8800
8800
|
!1
|
|
8801
8801
|
), (i) => {
|
|
8802
8802
|
r.push(i), En.postMessage(n, "*");
|
|
8803
|
-
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", ot(En.postMessage)), vS = typeof queueMicrotask < "u" ? queueMicrotask.bind(En) : typeof process < "u" && process.nextTick ||
|
|
8803
|
+
}))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(typeof setImmediate == "function", ot(En.postMessage)), vS = typeof queueMicrotask < "u" ? queueMicrotask.bind(En) : typeof process < "u" && process.nextTick || Hp, zp = (e) => e != null && ot(e[Ei]), wS = (e) => e != null && li(e, Ei) && zp(e), k = {
|
|
8804
8804
|
isArray: zn,
|
|
8805
8805
|
isArrayBuffer: Bp,
|
|
8806
8806
|
isBuffer: Br,
|
|
@@ -8824,7 +8824,7 @@ const gS = (e) => {
|
|
|
8824
8824
|
isBlob: $_,
|
|
8825
8825
|
isRegExp: dS,
|
|
8826
8826
|
isFunction: ot,
|
|
8827
|
-
isStream:
|
|
8827
|
+
isStream: j_,
|
|
8828
8828
|
isURLSearchParams: K_,
|
|
8829
8829
|
isTypedArray: iS,
|
|
8830
8830
|
isFileList: V_,
|
|
@@ -8847,7 +8847,7 @@ const gS = (e) => {
|
|
|
8847
8847
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
8848
8848
|
hasOwnInPrototypeChain: li,
|
|
8849
8849
|
getSafeProp: R_,
|
|
8850
|
-
reduceDescriptors:
|
|
8850
|
+
reduceDescriptors: jp,
|
|
8851
8851
|
freezeMethods: uS,
|
|
8852
8852
|
toObjectSet: fS,
|
|
8853
8853
|
toCamelCase: cS,
|
|
@@ -8860,7 +8860,7 @@ const gS = (e) => {
|
|
|
8860
8860
|
toJSONObject: gS,
|
|
8861
8861
|
isAsyncFn: yS,
|
|
8862
8862
|
isThenable: bS,
|
|
8863
|
-
setImmediate:
|
|
8863
|
+
setImmediate: Hp,
|
|
8864
8864
|
asap: vS,
|
|
8865
8865
|
isIterable: zp,
|
|
8866
8866
|
isSafeIterable: wS
|
|
@@ -9139,10 +9139,16 @@ function DS(e, t) {
|
|
|
9139
9139
|
};
|
|
9140
9140
|
return i(e);
|
|
9141
9141
|
}
|
|
9142
|
-
let
|
|
9142
|
+
let q = class Gp extends Error {
|
|
9143
9143
|
static from(t, n, r, i, o, s) {
|
|
9144
9144
|
const a = new Gp(t.message, n || t.code, r, i, o);
|
|
9145
|
-
return
|
|
9145
|
+
return Object.defineProperty(a, "cause", {
|
|
9146
|
+
__proto__: null,
|
|
9147
|
+
value: t,
|
|
9148
|
+
writable: !0,
|
|
9149
|
+
enumerable: !1,
|
|
9150
|
+
configurable: !0
|
|
9151
|
+
}), a.name = t.name, t.status != null && a.status == null && (a.status = t.status), s && Object.assign(a, s), a;
|
|
9146
9152
|
}
|
|
9147
9153
|
/**
|
|
9148
9154
|
* Create an Error with the specified message, config, error code, request and response.
|
|
@@ -9187,20 +9193,20 @@ let Z = class Gp extends Error {
|
|
|
9187
9193
|
};
|
|
9188
9194
|
}
|
|
9189
9195
|
};
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9196
|
+
q.ERR_BAD_OPTION_VALUE = "ERR_BAD_OPTION_VALUE";
|
|
9197
|
+
q.ERR_BAD_OPTION = "ERR_BAD_OPTION";
|
|
9198
|
+
q.ECONNABORTED = "ECONNABORTED";
|
|
9199
|
+
q.ETIMEDOUT = "ETIMEDOUT";
|
|
9200
|
+
q.ECONNREFUSED = "ECONNREFUSED";
|
|
9201
|
+
q.ERR_NETWORK = "ERR_NETWORK";
|
|
9202
|
+
q.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
|
|
9203
|
+
q.ERR_DEPRECATED = "ERR_DEPRECATED";
|
|
9204
|
+
q.ERR_BAD_RESPONSE = "ERR_BAD_RESPONSE";
|
|
9205
|
+
q.ERR_BAD_REQUEST = "ERR_BAD_REQUEST";
|
|
9206
|
+
q.ERR_CANCELED = "ERR_CANCELED";
|
|
9207
|
+
q.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
|
|
9208
|
+
q.ERR_INVALID_URL = "ERR_INVALID_URL";
|
|
9209
|
+
q.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
|
|
9204
9210
|
const IS = null, qp = 100;
|
|
9205
9211
|
function ua(e) {
|
|
9206
9212
|
return k.isPlainObject(e) || k.isArray(e);
|
|
@@ -9244,14 +9250,21 @@ function ds(e, t, n) {
|
|
|
9244
9250
|
if (k.isBoolean(y))
|
|
9245
9251
|
return y.toString();
|
|
9246
9252
|
if (!l && k.isBlob(y))
|
|
9247
|
-
throw new
|
|
9248
|
-
|
|
9253
|
+
throw new q("Blob is not supported. Use a Buffer instead.");
|
|
9254
|
+
if (k.isArrayBuffer(y) || k.isTypedArray(y)) {
|
|
9255
|
+
if (l && typeof a == "function")
|
|
9256
|
+
return new a([y]);
|
|
9257
|
+
if (typeof Buffer < "u")
|
|
9258
|
+
return Buffer.from(y);
|
|
9259
|
+
throw new q("Blob is not supported. Use a Buffer instead.", q.ERR_NOT_SUPPORT);
|
|
9260
|
+
}
|
|
9261
|
+
return y;
|
|
9249
9262
|
}
|
|
9250
9263
|
function m(y) {
|
|
9251
9264
|
if (y > c)
|
|
9252
|
-
throw new
|
|
9265
|
+
throw new q(
|
|
9253
9266
|
"Object is too deeply nested (" + y + " levels). Max depth: " + c,
|
|
9254
|
-
|
|
9267
|
+
q.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
9255
9268
|
);
|
|
9256
9269
|
}
|
|
9257
9270
|
function p(y, v) {
|
|
@@ -9323,9 +9336,7 @@ Yp.append = function(t, n) {
|
|
|
9323
9336
|
this._pairs.push([t, n]);
|
|
9324
9337
|
};
|
|
9325
9338
|
Yp.toString = function(t) {
|
|
9326
|
-
const n = t ?
|
|
9327
|
-
return t.call(this, r, pd);
|
|
9328
|
-
} : pd;
|
|
9339
|
+
const n = t ? (r) => t.call(this, r, pd) : pd;
|
|
9329
9340
|
return this._pairs.map(function(i) {
|
|
9330
9341
|
return n(i[0]) + "=" + n(i[1]);
|
|
9331
9342
|
}, "").join("&");
|
|
@@ -9336,6 +9347,7 @@ function US(e) {
|
|
|
9336
9347
|
function Zp(e, t, n) {
|
|
9337
9348
|
if (!t)
|
|
9338
9349
|
return e;
|
|
9350
|
+
e = e || "";
|
|
9339
9351
|
const r = k.isFunction(n) ? {
|
|
9340
9352
|
serialize: n
|
|
9341
9353
|
} : n, i = k.getSafeProp(r, "encode") || US, o = k.getSafeProp(r, "serialize");
|
|
@@ -9416,12 +9428,12 @@ const $c = {
|
|
|
9416
9428
|
Blob: $S
|
|
9417
9429
|
},
|
|
9418
9430
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
9419
|
-
}, Vc = typeof window < "u" && typeof document < "u", fa = typeof navigator == "object" && navigator || void 0,
|
|
9431
|
+
}, Vc = typeof window < "u" && typeof document < "u", fa = typeof navigator == "object" && navigator || void 0, jS = Vc && (!fa || ["ReactNative", "NativeScript", "NS"].indexOf(fa.product) < 0), HS = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
9420
9432
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", zS = Vc && window.location.href || "http://localhost", KS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9421
9433
|
__proto__: null,
|
|
9422
9434
|
hasBrowserEnv: Vc,
|
|
9423
|
-
hasStandardBrowserEnv:
|
|
9424
|
-
hasStandardBrowserWebWorkerEnv:
|
|
9435
|
+
hasStandardBrowserEnv: jS,
|
|
9436
|
+
hasStandardBrowserWebWorkerEnv: HS,
|
|
9425
9437
|
navigator: fa,
|
|
9426
9438
|
origin: zS
|
|
9427
9439
|
}, Symbol.toStringTag, { value: "Module" })), Qe = {
|
|
@@ -9439,9 +9451,9 @@ function GS(e, t) {
|
|
|
9439
9451
|
const hd = qp;
|
|
9440
9452
|
function Xp(e) {
|
|
9441
9453
|
if (e > hd)
|
|
9442
|
-
throw new
|
|
9454
|
+
throw new q(
|
|
9443
9455
|
"FormData field is too deeply nested (" + e + " levels). Max depth: " + hd,
|
|
9444
|
-
|
|
9456
|
+
q.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
9445
9457
|
);
|
|
9446
9458
|
}
|
|
9447
9459
|
function qS(e) {
|
|
@@ -9529,7 +9541,7 @@ const Ai = {
|
|
|
9529
9541
|
return JSON.parse(t, tr(this, "parseReviver"));
|
|
9530
9542
|
} catch (c) {
|
|
9531
9543
|
if (a)
|
|
9532
|
-
throw c.name === "SyntaxError" ?
|
|
9544
|
+
throw c.name === "SyntaxError" ? q.from(c, q.ERR_BAD_RESPONSE, this, null, tr(this, "response")) : c;
|
|
9533
9545
|
}
|
|
9534
9546
|
}
|
|
9535
9547
|
return t;
|
|
@@ -9571,7 +9583,7 @@ function Us(e, t) {
|
|
|
9571
9583
|
function em(e) {
|
|
9572
9584
|
return !!(e && e.__CANCEL__);
|
|
9573
9585
|
}
|
|
9574
|
-
let Oi = class extends
|
|
9586
|
+
let Oi = class extends q {
|
|
9575
9587
|
/**
|
|
9576
9588
|
* A `CanceledError` is an object that is thrown when an operation is canceled.
|
|
9577
9589
|
*
|
|
@@ -9582,14 +9594,14 @@ let Oi = class extends Z {
|
|
|
9582
9594
|
* @returns {CanceledError} The created error.
|
|
9583
9595
|
*/
|
|
9584
9596
|
constructor(t, n, r) {
|
|
9585
|
-
super(t ?? "canceled",
|
|
9597
|
+
super(t ?? "canceled", q.ERR_CANCELED, n, r), this.name = "CanceledError", this.__CANCEL__ = !0;
|
|
9586
9598
|
}
|
|
9587
9599
|
};
|
|
9588
9600
|
function tm(e, t, n) {
|
|
9589
9601
|
const r = n.config.validateStatus;
|
|
9590
|
-
!n.status || !r || r(n.status) ? e(n) : t(new
|
|
9602
|
+
!n.status || !r || r(n.status) ? e(n) : t(new q(
|
|
9591
9603
|
"Request failed with status code " + n.status,
|
|
9592
|
-
n.status >= 400 && n.status < 500 ?
|
|
9604
|
+
n.status >= 400 && n.status < 500 ? q.ERR_BAD_REQUEST : q.ERR_BAD_RESPONSE,
|
|
9593
9605
|
n.config,
|
|
9594
9606
|
n.request,
|
|
9595
9607
|
n
|
|
@@ -9675,7 +9687,11 @@ const No = (e, t, n = 3) => {
|
|
|
9675
9687
|
for (let n = 0; n < t.length; n++) {
|
|
9676
9688
|
const r = t[n].replace(/^\s+/, ""), i = r.indexOf("=");
|
|
9677
9689
|
if (i !== -1 && r.slice(0, i) === e)
|
|
9678
|
-
|
|
9690
|
+
try {
|
|
9691
|
+
return decodeURIComponent(r.slice(i + 1));
|
|
9692
|
+
} catch {
|
|
9693
|
+
return r.slice(i + 1);
|
|
9694
|
+
}
|
|
9679
9695
|
}
|
|
9680
9696
|
return null;
|
|
9681
9697
|
},
|
|
@@ -9713,9 +9729,9 @@ function aT(e) {
|
|
|
9713
9729
|
}
|
|
9714
9730
|
function bd(e, t) {
|
|
9715
9731
|
if (typeof e == "string" && iT.test(aT(e)))
|
|
9716
|
-
throw new
|
|
9732
|
+
throw new q(
|
|
9717
9733
|
'Invalid URL: missing "//" after protocol',
|
|
9718
|
-
|
|
9734
|
+
q.ERR_INVALID_URL,
|
|
9719
9735
|
t
|
|
9720
9736
|
);
|
|
9721
9737
|
}
|
|
@@ -9726,7 +9742,7 @@ function nm(e, t, n, r) {
|
|
|
9726
9742
|
}
|
|
9727
9743
|
const vd = (e) => e instanceof Je ? { ...e } : e;
|
|
9728
9744
|
function Kn(e, t) {
|
|
9729
|
-
t = t || {};
|
|
9745
|
+
e = e || {}, t = t || {};
|
|
9730
9746
|
const n = /* @__PURE__ */ Object.create(null);
|
|
9731
9747
|
Object.defineProperty(n, "hasOwnProperty", {
|
|
9732
9748
|
// Null-proto descriptor so a polluted Object.prototype.get cannot turn
|
|
@@ -9818,7 +9834,7 @@ function lT(e, t, n) {
|
|
|
9818
9834
|
e.set(t);
|
|
9819
9835
|
return;
|
|
9820
9836
|
}
|
|
9821
|
-
Object.entries(t).forEach(([r, i]) => {
|
|
9837
|
+
Object.entries(t || {}).forEach(([r, i]) => {
|
|
9822
9838
|
cT.includes(r.toLowerCase()) && e.set(r, i);
|
|
9823
9839
|
});
|
|
9824
9840
|
}
|
|
@@ -9838,10 +9854,14 @@ function rm(e) {
|
|
|
9838
9854
|
n("paramsSerializer")
|
|
9839
9855
|
), c) {
|
|
9840
9856
|
const m = k.getSafeProp(c, "username") || "", p = k.getSafeProp(c, "password") || "";
|
|
9841
|
-
|
|
9842
|
-
|
|
9843
|
-
|
|
9844
|
-
|
|
9857
|
+
try {
|
|
9858
|
+
a.set(
|
|
9859
|
+
"Authorization",
|
|
9860
|
+
"Basic " + btoa(m + ":" + (p ? dT(p) : ""))
|
|
9861
|
+
);
|
|
9862
|
+
} catch (b) {
|
|
9863
|
+
throw q.from(b, q.ERR_BAD_OPTION_VALUE, e);
|
|
9864
|
+
}
|
|
9845
9865
|
}
|
|
9846
9866
|
if (k.isFormData(r) && (Qe.hasStandardBrowserEnv || Qe.hasStandardBrowserWebWorkerEnv || k.isReactNative(r) ? a.setContentType(void 0) : k.isFunction(r.getHeaders) && lT(a, r.getHeaders(), n("formDataHeaderPolicy"))), Qe.hasStandardBrowserEnv && (k.isFunction(i) && (i = i(t)), i === !0 || i == null && eT(t.url))) {
|
|
9847
9867
|
const p = o && s && tT.read(s);
|
|
@@ -9886,17 +9906,17 @@ const uT = typeof XMLHttpRequest < "u", fT = uT && function(e) {
|
|
|
9886
9906
|
"onloadend" in g ? g.onloadend = y : g.onreadystatechange = function() {
|
|
9887
9907
|
!g || g.readyState !== 4 || g.status === 0 && !(g.responseURL && g.responseURL.startsWith("file:")) || setTimeout(y);
|
|
9888
9908
|
}, g.onabort = function() {
|
|
9889
|
-
g && (r(new
|
|
9909
|
+
g && (r(new q("Request aborted", q.ECONNABORTED, e, g)), h(), g = null);
|
|
9890
9910
|
}, g.onerror = function(_) {
|
|
9891
|
-
const T = _ && _.message ? _.message : "Network Error", x = new
|
|
9911
|
+
const T = _ && _.message ? _.message : "Network Error", x = new q(T, q.ERR_NETWORK, e, g);
|
|
9892
9912
|
x.event = _ || null, r(x), h(), g = null;
|
|
9893
9913
|
}, g.ontimeout = function() {
|
|
9894
9914
|
let _ = i.timeout ? "timeout of " + i.timeout + "ms exceeded" : "timeout exceeded";
|
|
9895
9915
|
const T = i.transitional || $c;
|
|
9896
9916
|
i.timeoutErrorMessage && (_ = i.timeoutErrorMessage), r(
|
|
9897
|
-
new
|
|
9917
|
+
new q(
|
|
9898
9918
|
_,
|
|
9899
|
-
T.clarifyTimeoutError ?
|
|
9919
|
+
T.clarifyTimeoutError ? q.ETIMEDOUT : q.ECONNABORTED,
|
|
9900
9920
|
e,
|
|
9901
9921
|
g
|
|
9902
9922
|
)
|
|
@@ -9909,12 +9929,12 @@ const uT = typeof XMLHttpRequest < "u", fT = uT && function(e) {
|
|
|
9909
9929
|
const v = ZS(i.url);
|
|
9910
9930
|
if (v && !Qe.protocols.includes(v)) {
|
|
9911
9931
|
r(
|
|
9912
|
-
new
|
|
9932
|
+
new q(
|
|
9913
9933
|
"Unsupported protocol " + v + ":",
|
|
9914
|
-
|
|
9934
|
+
q.ERR_BAD_REQUEST,
|
|
9915
9935
|
e
|
|
9916
9936
|
)
|
|
9917
|
-
);
|
|
9937
|
+
), h();
|
|
9918
9938
|
return;
|
|
9919
9939
|
}
|
|
9920
9940
|
g.send(o || null);
|
|
@@ -9929,19 +9949,19 @@ const uT = typeof XMLHttpRequest < "u", fT = uT && function(e) {
|
|
|
9929
9949
|
r = !0, s();
|
|
9930
9950
|
const l = c instanceof Error ? c : this.reason;
|
|
9931
9951
|
n.abort(
|
|
9932
|
-
l instanceof
|
|
9952
|
+
l instanceof q ? l : new Oi(l instanceof Error ? l.message : l)
|
|
9933
9953
|
);
|
|
9934
9954
|
}
|
|
9935
9955
|
};
|
|
9936
9956
|
let o = t && setTimeout(() => {
|
|
9937
|
-
o = null, i(new
|
|
9957
|
+
o = null, i(new q(`timeout of ${t}ms exceeded`, q.ETIMEDOUT));
|
|
9938
9958
|
}, t);
|
|
9939
9959
|
const s = () => {
|
|
9940
9960
|
e && (o && clearTimeout(o), o = null, e.forEach((c) => {
|
|
9941
9961
|
c.unsubscribe ? c.unsubscribe(i) : c.removeEventListener("abort", i);
|
|
9942
9962
|
}), e = null);
|
|
9943
9963
|
};
|
|
9944
|
-
e.forEach((c) => c.addEventListener("abort", i));
|
|
9964
|
+
e.forEach((c) => c.addEventListener("abort", i, { once: !0 }));
|
|
9945
9965
|
const { signal: a } = n;
|
|
9946
9966
|
return a.unsubscribe = () => k.asap(s), a;
|
|
9947
9967
|
}, mT = function* (e, t) {
|
|
@@ -10043,7 +10063,7 @@ function bT(e) {
|
|
|
10043
10063
|
}
|
|
10044
10064
|
return o;
|
|
10045
10065
|
}
|
|
10046
|
-
const
|
|
10066
|
+
const jc = "1.18.1", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeURIComponent(e).replace(
|
|
10047
10067
|
/%([0-9A-F]{2})/gi,
|
|
10048
10068
|
(t, n) => String.fromCharCode(parseInt(n, 16))
|
|
10049
10069
|
), Sd = (e) => {
|
|
@@ -10097,9 +10117,9 @@ const Hc = "1.18.0", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeU
|
|
|
10097
10117
|
let _ = v && v[y];
|
|
10098
10118
|
if (_)
|
|
10099
10119
|
return _.call(v);
|
|
10100
|
-
throw new
|
|
10120
|
+
throw new q(
|
|
10101
10121
|
`Response type '${y}' is not supported`,
|
|
10102
|
-
|
|
10122
|
+
q.ERR_NOT_SUPPORT,
|
|
10103
10123
|
S
|
|
10104
10124
|
);
|
|
10105
10125
|
});
|
|
@@ -10135,7 +10155,7 @@ const Hc = "1.18.0", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeU
|
|
|
10135
10155
|
responseType: F,
|
|
10136
10156
|
headers: B,
|
|
10137
10157
|
withCredentials: O = "same-origin",
|
|
10138
|
-
fetchOptions:
|
|
10158
|
+
fetchOptions: j,
|
|
10139
10159
|
maxContentLength: M,
|
|
10140
10160
|
maxBodyLength: z
|
|
10141
10161
|
} = rm(y);
|
|
@@ -10150,17 +10170,17 @@ const Hc = "1.18.0", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeU
|
|
|
10150
10170
|
$.unsubscribe();
|
|
10151
10171
|
});
|
|
10152
10172
|
let X, pe = null;
|
|
10153
|
-
const re = () => new
|
|
10173
|
+
const re = () => new q(
|
|
10154
10174
|
"Request body larger than maxBodyLength limit",
|
|
10155
|
-
|
|
10175
|
+
q.ERR_BAD_REQUEST,
|
|
10156
10176
|
y,
|
|
10157
10177
|
U
|
|
10158
10178
|
);
|
|
10159
10179
|
try {
|
|
10160
10180
|
let W;
|
|
10161
|
-
const
|
|
10162
|
-
if (
|
|
10163
|
-
const ie = k.getSafeProp(
|
|
10181
|
+
const V = L("auth");
|
|
10182
|
+
if (V) {
|
|
10183
|
+
const ie = k.getSafeProp(V, "username") || "", Pe = k.getSafeProp(V, "password") || "";
|
|
10164
10184
|
W = {
|
|
10165
10185
|
username: ie,
|
|
10166
10186
|
password: Pe
|
|
@@ -10169,10 +10189,10 @@ const Hc = "1.18.0", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeU
|
|
|
10169
10189
|
if (wT(v)) {
|
|
10170
10190
|
const ie = new URL(v, Qe.origin);
|
|
10171
10191
|
if (!W && (ie.username || ie.password)) {
|
|
10172
|
-
const Pe = Sd(ie.username),
|
|
10192
|
+
const Pe = Sd(ie.username), He = Sd(ie.password);
|
|
10173
10193
|
W = {
|
|
10174
10194
|
username: Pe,
|
|
10175
|
-
password:
|
|
10195
|
+
password: He
|
|
10176
10196
|
};
|
|
10177
10197
|
}
|
|
10178
10198
|
(ie.username || ie.password) && (ie.username = "", ie.password = "", v = ie.href);
|
|
@@ -10181,9 +10201,9 @@ const Hc = "1.18.0", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeU
|
|
|
10181
10201
|
"Authorization",
|
|
10182
10202
|
"Basic " + btoa(vT((W.username || "") + ":" + (W.password || "")))
|
|
10183
10203
|
)), E && typeof v == "string" && v.startsWith("data:") && bT(v) > M)
|
|
10184
|
-
throw new
|
|
10204
|
+
throw new q(
|
|
10185
10205
|
"maxContentLength size of " + M + " exceeded",
|
|
10186
|
-
|
|
10206
|
+
q.ERR_BAD_RESPONSE,
|
|
10187
10207
|
y,
|
|
10188
10208
|
U
|
|
10189
10209
|
);
|
|
@@ -10192,7 +10212,7 @@ const Hc = "1.18.0", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeU
|
|
|
10192
10212
|
if (typeof ie == "number" && isFinite(ie) && (X = ie, ie > z))
|
|
10193
10213
|
throw re();
|
|
10194
10214
|
}
|
|
10195
|
-
const
|
|
10215
|
+
const Q = D && (k.isReadableStream(_) || k.isStream(_)), we = (ie, Pe, He) => wd(
|
|
10196
10216
|
ie,
|
|
10197
10217
|
_d,
|
|
10198
10218
|
(Ye) => {
|
|
@@ -10200,29 +10220,29 @@ const Hc = "1.18.0", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeU
|
|
|
10200
10220
|
throw pe = re();
|
|
10201
10221
|
Pe && Pe(Ye);
|
|
10202
10222
|
},
|
|
10203
|
-
|
|
10223
|
+
He
|
|
10204
10224
|
);
|
|
10205
|
-
if (m && S !== "get" && S !== "head" && (R ||
|
|
10206
|
-
if (X = X ?? await g(B, _), X !== 0 ||
|
|
10225
|
+
if (m && S !== "get" && S !== "head" && (R || Q)) {
|
|
10226
|
+
if (X = X ?? await g(B, _), X !== 0 || Q) {
|
|
10207
10227
|
let ie = new o(v, {
|
|
10208
10228
|
method: "POST",
|
|
10209
10229
|
body: _,
|
|
10210
10230
|
duplex: "half"
|
|
10211
10231
|
}), Pe;
|
|
10212
10232
|
if (k.isFormData(_) && (Pe = ie.headers.get("content-type")) && B.setContentType(Pe), ie.body) {
|
|
10213
|
-
const [
|
|
10233
|
+
const [He, Ye] = R && gd(
|
|
10214
10234
|
X,
|
|
10215
10235
|
No(yd(R))
|
|
10216
10236
|
) || [];
|
|
10217
|
-
_ = we(ie.body,
|
|
10237
|
+
_ = we(ie.body, He, Ye);
|
|
10218
10238
|
}
|
|
10219
10239
|
}
|
|
10220
|
-
} else if (
|
|
10240
|
+
} else if (Q && !c && d && S !== "get" && S !== "head")
|
|
10221
10241
|
_ = we(_);
|
|
10222
|
-
else if (
|
|
10223
|
-
throw new
|
|
10242
|
+
else if (Q && c && !m && S !== "get" && S !== "head")
|
|
10243
|
+
throw new q(
|
|
10224
10244
|
"Stream request bodies are not supported by the current fetch implementation",
|
|
10225
|
-
|
|
10245
|
+
q.ERR_NOT_SUPPORT,
|
|
10226
10246
|
y,
|
|
10227
10247
|
U
|
|
10228
10248
|
);
|
|
@@ -10232,9 +10252,9 @@ const Hc = "1.18.0", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeU
|
|
|
10232
10252
|
const ie = B.getContentType();
|
|
10233
10253
|
ie && /^multipart\/form-data/i.test(ie) && !/boundary=/i.test(ie) && B.delete("content-type");
|
|
10234
10254
|
}
|
|
10235
|
-
B.set("User-Agent", "axios/" +
|
|
10255
|
+
B.set("User-Agent", "axios/" + jc, !1);
|
|
10236
10256
|
const te = {
|
|
10237
|
-
...
|
|
10257
|
+
...j,
|
|
10238
10258
|
signal: $,
|
|
10239
10259
|
method: S.toUpperCase(),
|
|
10240
10260
|
headers: Kp(B.normalize()),
|
|
@@ -10243,14 +10263,14 @@ const Hc = "1.18.0", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeU
|
|
|
10243
10263
|
credentials: ue ? O : void 0
|
|
10244
10264
|
};
|
|
10245
10265
|
U = c && new o(v, te);
|
|
10246
|
-
let de = await (c ? N(U,
|
|
10266
|
+
let de = await (c ? N(U, j) : N(v, te));
|
|
10247
10267
|
const Le = Je.from(de.headers);
|
|
10248
10268
|
if (E) {
|
|
10249
10269
|
const ie = k.toFiniteNumber(Le.getContentLength());
|
|
10250
10270
|
if (ie != null && ie > M)
|
|
10251
|
-
throw new
|
|
10271
|
+
throw new q(
|
|
10252
10272
|
"maxContentLength size of " + M + " exceeded",
|
|
10253
|
-
|
|
10273
|
+
q.ERR_BAD_RESPONSE,
|
|
10254
10274
|
y,
|
|
10255
10275
|
U
|
|
10256
10276
|
);
|
|
@@ -10261,20 +10281,20 @@ const Hc = "1.18.0", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeU
|
|
|
10261
10281
|
["status", "statusText", "headers"].forEach((se) => {
|
|
10262
10282
|
ie[se] = de[se];
|
|
10263
10283
|
});
|
|
10264
|
-
const Pe = k.toFiniteNumber(Le.getContentLength()), [
|
|
10284
|
+
const Pe = k.toFiniteNumber(Le.getContentLength()), [He, Ye] = C && gd(
|
|
10265
10285
|
Pe,
|
|
10266
10286
|
No(yd(C), !0)
|
|
10267
10287
|
) || [];
|
|
10268
10288
|
let vt = 0;
|
|
10269
10289
|
const Vr = (se) => {
|
|
10270
10290
|
if (E && (vt = se, vt > M))
|
|
10271
|
-
throw new
|
|
10291
|
+
throw new q(
|
|
10272
10292
|
"maxContentLength size of " + M + " exceeded",
|
|
10273
|
-
|
|
10293
|
+
q.ERR_BAD_RESPONSE,
|
|
10274
10294
|
y,
|
|
10275
10295
|
U
|
|
10276
10296
|
);
|
|
10277
|
-
|
|
10297
|
+
He && He(se);
|
|
10278
10298
|
};
|
|
10279
10299
|
de = new s(
|
|
10280
10300
|
wd(de.body, _d, Vr, () => {
|
|
@@ -10291,9 +10311,9 @@ const Hc = "1.18.0", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeU
|
|
|
10291
10311
|
if (E && !p && !K) {
|
|
10292
10312
|
let ie;
|
|
10293
10313
|
if (Ce != null && (typeof Ce.byteLength == "number" ? ie = Ce.byteLength : typeof Ce.size == "number" ? ie = Ce.size : typeof Ce == "string" && (ie = typeof r == "function" ? new r().encode(Ce).byteLength : Ce.length)), typeof ie == "number" && ie > M)
|
|
10294
|
-
throw new
|
|
10314
|
+
throw new q(
|
|
10295
10315
|
"maxContentLength size of " + M + " exceeded",
|
|
10296
|
-
|
|
10316
|
+
q.ERR_BAD_RESPONSE,
|
|
10297
10317
|
y,
|
|
10298
10318
|
U
|
|
10299
10319
|
);
|
|
@@ -10309,22 +10329,37 @@ const Hc = "1.18.0", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeU
|
|
|
10309
10329
|
});
|
|
10310
10330
|
});
|
|
10311
10331
|
} catch (W) {
|
|
10312
|
-
if (G && G(), $ && $.aborted && $.reason instanceof
|
|
10313
|
-
const
|
|
10314
|
-
throw
|
|
10332
|
+
if (G && G(), $ && $.aborted && $.reason instanceof q) {
|
|
10333
|
+
const V = $.reason;
|
|
10334
|
+
throw V.config = y, U && (V.request = U), W !== V && Object.defineProperty(V, "cause", {
|
|
10335
|
+
__proto__: null,
|
|
10336
|
+
value: W,
|
|
10337
|
+
writable: !0,
|
|
10338
|
+
enumerable: !1,
|
|
10339
|
+
configurable: !0
|
|
10340
|
+
}), V;
|
|
10315
10341
|
}
|
|
10316
|
-
|
|
10317
|
-
|
|
10342
|
+
if (pe)
|
|
10343
|
+
throw U && !pe.request && (pe.request = U), pe;
|
|
10344
|
+
if (W instanceof q)
|
|
10345
|
+
throw U && !W.request && (W.request = U), W;
|
|
10346
|
+
if (W && W.name === "TypeError" && /Load failed|fetch/i.test(W.message)) {
|
|
10347
|
+
const V = new q(
|
|
10318
10348
|
"Network Error",
|
|
10319
|
-
|
|
10349
|
+
q.ERR_NETWORK,
|
|
10320
10350
|
y,
|
|
10321
10351
|
U,
|
|
10322
10352
|
W && W.response
|
|
10323
|
-
)
|
|
10324
|
-
{
|
|
10325
|
-
|
|
10326
|
-
|
|
10327
|
-
|
|
10353
|
+
);
|
|
10354
|
+
throw Object.defineProperty(V, "cause", {
|
|
10355
|
+
__proto__: null,
|
|
10356
|
+
value: W.cause || W,
|
|
10357
|
+
writable: !0,
|
|
10358
|
+
enumerable: !1,
|
|
10359
|
+
configurable: !0
|
|
10360
|
+
}), V;
|
|
10361
|
+
}
|
|
10362
|
+
throw q.from(W, W && W.code, y, U, W && W.response);
|
|
10328
10363
|
}
|
|
10329
10364
|
};
|
|
10330
10365
|
}, ST = /* @__PURE__ */ new Map(), im = (e) => {
|
|
@@ -10336,14 +10371,14 @@ const Hc = "1.18.0", _d = 64 * 1024, { isFunction: Yi } = k, vT = (e) => encodeU
|
|
|
10336
10371
|
return l;
|
|
10337
10372
|
};
|
|
10338
10373
|
im();
|
|
10339
|
-
const
|
|
10374
|
+
const Hc = {
|
|
10340
10375
|
http: IS,
|
|
10341
10376
|
xhr: fT,
|
|
10342
10377
|
fetch: {
|
|
10343
10378
|
get: im
|
|
10344
10379
|
}
|
|
10345
10380
|
};
|
|
10346
|
-
k.forEach(
|
|
10381
|
+
k.forEach(Hc, (e, t) => {
|
|
10347
10382
|
if (e) {
|
|
10348
10383
|
try {
|
|
10349
10384
|
Object.defineProperty(e, "name", { __proto__: null, value: t });
|
|
@@ -10361,8 +10396,8 @@ function xT(e, t) {
|
|
|
10361
10396
|
for (let s = 0; s < n; s++) {
|
|
10362
10397
|
r = e[s];
|
|
10363
10398
|
let a;
|
|
10364
|
-
if (i = r, !TT(r) && (i =
|
|
10365
|
-
throw new
|
|
10399
|
+
if (i = r, !TT(r) && (i = Hc[(a = String(r)).toLowerCase()], i === void 0))
|
|
10400
|
+
throw new q(`Unknown adapter '${a}'`);
|
|
10366
10401
|
if (i && (k.isFunction(i) || (i = i.get(t))))
|
|
10367
10402
|
break;
|
|
10368
10403
|
o[a || "#" + s] = i;
|
|
@@ -10374,9 +10409,9 @@ function xT(e, t) {
|
|
|
10374
10409
|
let a = n ? s.length > 1 ? `since :
|
|
10375
10410
|
` + s.map(xd).join(`
|
|
10376
10411
|
`) : " " + xd(s[0]) : "as no adapter specified";
|
|
10377
|
-
throw new
|
|
10412
|
+
throw new q(
|
|
10378
10413
|
"There is no suitable adapter to dispatch the request " + a,
|
|
10379
|
-
|
|
10414
|
+
q.ERR_NOT_SUPPORT
|
|
10380
10415
|
);
|
|
10381
10416
|
}
|
|
10382
10417
|
return i;
|
|
@@ -10391,7 +10426,7 @@ const om = {
|
|
|
10391
10426
|
* Exposes all known adapters
|
|
10392
10427
|
* @type {Object<string, Function|Object>}
|
|
10393
10428
|
*/
|
|
10394
|
-
adapters:
|
|
10429
|
+
adapters: Hc
|
|
10395
10430
|
};
|
|
10396
10431
|
function Bs(e) {
|
|
10397
10432
|
if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
|
|
@@ -10435,13 +10470,13 @@ const us = {};
|
|
|
10435
10470
|
const Pd = {};
|
|
10436
10471
|
us.transitional = function(t, n, r) {
|
|
10437
10472
|
function i(o, s) {
|
|
10438
|
-
return "[Axios v" +
|
|
10473
|
+
return "[Axios v" + jc + "] Transitional option '" + o + "'" + s + (r ? ". " + r : "");
|
|
10439
10474
|
}
|
|
10440
10475
|
return (o, s, a) => {
|
|
10441
10476
|
if (t === !1)
|
|
10442
|
-
throw new
|
|
10477
|
+
throw new q(
|
|
10443
10478
|
i(s, " has been removed" + (n ? " in " + n : "")),
|
|
10444
|
-
|
|
10479
|
+
q.ERR_DEPRECATED
|
|
10445
10480
|
);
|
|
10446
10481
|
return n && !Pd[s] && (Pd[s] = !0, console.warn(
|
|
10447
10482
|
i(
|
|
@@ -10455,8 +10490,8 @@ us.spelling = function(t) {
|
|
|
10455
10490
|
return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
|
|
10456
10491
|
};
|
|
10457
10492
|
function CT(e, t, n) {
|
|
10458
|
-
if (typeof e != "object")
|
|
10459
|
-
throw new
|
|
10493
|
+
if (typeof e != "object" || e === null)
|
|
10494
|
+
throw new q("options must be an object", q.ERR_BAD_OPTION_VALUE);
|
|
10460
10495
|
const r = Object.keys(e);
|
|
10461
10496
|
let i = r.length;
|
|
10462
10497
|
for (; i-- > 0; ) {
|
|
@@ -10464,14 +10499,14 @@ function CT(e, t, n) {
|
|
|
10464
10499
|
if (s) {
|
|
10465
10500
|
const a = e[o], c = a === void 0 || s(a, o, e);
|
|
10466
10501
|
if (c !== !0)
|
|
10467
|
-
throw new
|
|
10502
|
+
throw new q(
|
|
10468
10503
|
"option " + o + " must be " + c,
|
|
10469
|
-
|
|
10504
|
+
q.ERR_BAD_OPTION_VALUE
|
|
10470
10505
|
);
|
|
10471
10506
|
continue;
|
|
10472
10507
|
}
|
|
10473
10508
|
if (n !== !0)
|
|
10474
|
-
throw new
|
|
10509
|
+
throw new q("Unknown option " + o, q.ERR_BAD_OPTION);
|
|
10475
10510
|
}
|
|
10476
10511
|
}
|
|
10477
10512
|
const uo = {
|
|
@@ -10798,9 +10833,9 @@ Fe.Axios = Bn;
|
|
|
10798
10833
|
Fe.CanceledError = Oi;
|
|
10799
10834
|
Fe.CancelToken = PT;
|
|
10800
10835
|
Fe.isCancel = em;
|
|
10801
|
-
Fe.VERSION =
|
|
10836
|
+
Fe.VERSION = jc;
|
|
10802
10837
|
Fe.toFormData = ds;
|
|
10803
|
-
Fe.AxiosError =
|
|
10838
|
+
Fe.AxiosError = q;
|
|
10804
10839
|
Fe.Cancel = Fe.CanceledError;
|
|
10805
10840
|
Fe.all = function(t) {
|
|
10806
10841
|
return Promise.all(t);
|
|
@@ -10824,8 +10859,8 @@ const {
|
|
|
10824
10859
|
Cancel: $E,
|
|
10825
10860
|
isAxiosError: cm,
|
|
10826
10861
|
spread: VE,
|
|
10827
|
-
toFormData:
|
|
10828
|
-
AxiosHeaders:
|
|
10862
|
+
toFormData: jE,
|
|
10863
|
+
AxiosHeaders: HE,
|
|
10829
10864
|
HttpStatusCode: zE,
|
|
10830
10865
|
formToJSON: KE,
|
|
10831
10866
|
getAdapter: GE,
|
|
@@ -11030,7 +11065,7 @@ const ge = cs((e) => ({
|
|
|
11030
11065
|
return {
|
|
11031
11066
|
liveQuotes: s,
|
|
11032
11067
|
positions: o.positions.map(
|
|
11033
|
-
(a) =>
|
|
11068
|
+
(a) => Hw(a, i, n, r, s)
|
|
11034
11069
|
),
|
|
11035
11070
|
orders: o.orders.map((a) => {
|
|
11036
11071
|
if (Od(a.symbol) !== i)
|
|
@@ -11071,7 +11106,7 @@ function BT({
|
|
|
11071
11106
|
needsAccountSelection: T,
|
|
11072
11107
|
confirmAccountSelection: x,
|
|
11073
11108
|
placeMarketOrder: A
|
|
11074
|
-
} = r, C = fe((E) => E.setDraft), R = fe((E) => E.clearDraft), F = ge((E) => E.selectedPositionTicket), B = ge((E) => E.selectedOrderTicket), O = F !== null || B !== null,
|
|
11109
|
+
} = r, C = fe((E) => E.setDraft), R = fe((E) => E.clearDraft), F = ge((E) => E.selectedPositionTicket), B = ge((E) => E.selectedOrderTicket), O = F !== null || B !== null, j = Number(Yt(Zt(e))), M = Ur(j);
|
|
11075
11110
|
ae(() => {
|
|
11076
11111
|
if (_ && !O) {
|
|
11077
11112
|
if (m === "closed" || m === "confirmation") {
|
|
@@ -11087,14 +11122,14 @@ function BT({
|
|
|
11087
11122
|
stopLoss: "",
|
|
11088
11123
|
takeProfit: "",
|
|
11089
11124
|
volumeLots: b,
|
|
11090
|
-
digits:
|
|
11125
|
+
digits: j,
|
|
11091
11126
|
priceStep: M
|
|
11092
11127
|
});
|
|
11093
11128
|
}
|
|
11094
11129
|
}, [
|
|
11095
11130
|
R,
|
|
11096
11131
|
b,
|
|
11097
|
-
|
|
11132
|
+
j,
|
|
11098
11133
|
_,
|
|
11099
11134
|
O,
|
|
11100
11135
|
m,
|
|
@@ -11183,7 +11218,7 @@ function $T(e, t) {
|
|
|
11183
11218
|
function VT(e) {
|
|
11184
11219
|
return $T(e.positions, e.orders);
|
|
11185
11220
|
}
|
|
11186
|
-
function
|
|
11221
|
+
function jT() {
|
|
11187
11222
|
const e = ge(VT), t = ge((r) => r.updateQuotes), n = fm();
|
|
11188
11223
|
ae(() => {
|
|
11189
11224
|
if (!e)
|
|
@@ -11225,7 +11260,7 @@ function HT() {
|
|
|
11225
11260
|
}, [e, n, t]);
|
|
11226
11261
|
}
|
|
11227
11262
|
function pm() {
|
|
11228
|
-
return
|
|
11263
|
+
return jT(), null;
|
|
11229
11264
|
}
|
|
11230
11265
|
const ma = (e, t, n) => {
|
|
11231
11266
|
if (!e)
|
|
@@ -11265,8 +11300,8 @@ const ma = (e, t, n) => {
|
|
|
11265
11300
|
return bm(s);
|
|
11266
11301
|
}
|
|
11267
11302
|
return hm[e];
|
|
11268
|
-
}, ym = (e, t, n, r) => (e === "buy" ? n - t : t - n) * r * 100,
|
|
11269
|
-
const t = ym(e.side, e.entryPrice, e.linePrice, e.volumeLots), n = e.side === "buy" ? e.linePrice - e.entryPrice : e.entryPrice - e.linePrice, r =
|
|
11303
|
+
}, ym = (e, t, n, r) => (e === "buy" ? n - t : t - n) * r * 100, HT = (e, t) => !Number.isFinite(t) || t <= 0 ? 0 : Math.round(e / t), zT = (e) => {
|
|
11304
|
+
const t = ym(e.side, e.entryPrice, e.linePrice, e.volumeLots), n = e.side === "buy" ? e.linePrice - e.entryPrice : e.entryPrice - e.linePrice, r = HT(n, e.priceStep), i = e.kind === "takeProfit" ? "TP" : "SL", o = `${t.toFixed(2)} USD`, s = `${r} points`;
|
|
11270
11305
|
return `${i} ${o}, ${s}`;
|
|
11271
11306
|
}, KT = (e, t) => e.toFixed(t), bm = (e) => e > 0 ? Ws.positive : e < 0 ? Ws.negative : Ws.neutral, GT = (e) => {
|
|
11272
11307
|
const t = `${e.side.toUpperCase()} ${e.volumeLots.toFixed(2)}, `, n = `${e.profit.toFixed(2)} USD`;
|
|
@@ -11293,7 +11328,7 @@ const ma = (e, t, n) => {
|
|
|
11293
11328
|
n
|
|
11294
11329
|
);
|
|
11295
11330
|
return i === o;
|
|
11296
|
-
},
|
|
11331
|
+
}, js = (e) => {
|
|
11297
11332
|
e.setUserEditEnabled(!1), e.setSelectionEnabled(!1);
|
|
11298
11333
|
}, Ld = (e, t, n) => {
|
|
11299
11334
|
if (e === "entry")
|
|
@@ -11397,7 +11432,7 @@ const ma = (e, t, n) => {
|
|
|
11397
11432
|
if (X)
|
|
11398
11433
|
try {
|
|
11399
11434
|
const re = N.getShapeById(X);
|
|
11400
|
-
E === "entry" &&
|
|
11435
|
+
E === "entry" && js(re);
|
|
11401
11436
|
const W = (pe = re.getPoints()[0]) == null ? void 0 : pe.price;
|
|
11402
11437
|
if (W !== void 0 && Math.abs(W - D) < L.priceStep / 2) {
|
|
11403
11438
|
re.setProperties({
|
|
@@ -11410,9 +11445,9 @@ const ma = (e, t, n) => {
|
|
|
11410
11445
|
});
|
|
11411
11446
|
return;
|
|
11412
11447
|
}
|
|
11413
|
-
const
|
|
11414
|
-
if (
|
|
11415
|
-
_.current = !0, re.setPoints(
|
|
11448
|
+
const V = re.getPoints();
|
|
11449
|
+
if (V.length > 0) {
|
|
11450
|
+
_.current = !0, re.setPoints(V.map((Q) => ({ ...Q, price: D }))), _.current = !1, re.setProperties({
|
|
11416
11451
|
text: G,
|
|
11417
11452
|
linecolor: $,
|
|
11418
11453
|
textcolor: U,
|
|
@@ -11458,7 +11493,7 @@ const ma = (e, t, n) => {
|
|
|
11458
11493
|
}
|
|
11459
11494
|
if (E === "entry")
|
|
11460
11495
|
try {
|
|
11461
|
-
|
|
11496
|
+
js(N.getShapeById(W));
|
|
11462
11497
|
} catch {
|
|
11463
11498
|
}
|
|
11464
11499
|
g.current[E] = W;
|
|
@@ -11482,14 +11517,14 @@ const ma = (e, t, n) => {
|
|
|
11482
11517
|
ae(() => {
|
|
11483
11518
|
O.current = B;
|
|
11484
11519
|
}, [B]);
|
|
11485
|
-
const
|
|
11520
|
+
const j = oe(() => {
|
|
11486
11521
|
y.current !== null && clearTimeout(y.current), y.current = setTimeout(() => {
|
|
11487
11522
|
y.current = null, O.current();
|
|
11488
11523
|
}, YT);
|
|
11489
|
-
}, []), M = Te(
|
|
11524
|
+
}, []), M = Te(j);
|
|
11490
11525
|
ae(() => {
|
|
11491
|
-
M.current =
|
|
11492
|
-
}, [
|
|
11526
|
+
M.current = j;
|
|
11527
|
+
}, [j]);
|
|
11493
11528
|
const z = r !== null && (c || o.trim() !== "" || s.trim() !== "");
|
|
11494
11529
|
ae(() => {
|
|
11495
11530
|
if (!e || !z)
|
|
@@ -11505,12 +11540,12 @@ const ma = (e, t, n) => {
|
|
|
11505
11540
|
const re = T.current;
|
|
11506
11541
|
if (re.entryPrice !== null)
|
|
11507
11542
|
try {
|
|
11508
|
-
const W = e.activeChart().getShapeById(D),
|
|
11509
|
-
if (
|
|
11510
|
-
const
|
|
11511
|
-
|
|
11543
|
+
const W = e.activeChart().getShapeById(D), V = (X = W.getPoints()[0]) == null ? void 0 : X.price;
|
|
11544
|
+
if (V !== void 0 && Math.abs(V - re.entryPrice) >= re.priceStep / 2) {
|
|
11545
|
+
const Q = W.getPoints();
|
|
11546
|
+
Q.length > 0 && W.setPoints(Q.map((we) => ({ ...we, price: re.entryPrice })));
|
|
11512
11547
|
}
|
|
11513
|
-
|
|
11548
|
+
js(W);
|
|
11514
11549
|
} catch {
|
|
11515
11550
|
}
|
|
11516
11551
|
}
|
|
@@ -11525,9 +11560,9 @@ const ma = (e, t, n) => {
|
|
|
11525
11560
|
const re = e.activeChart().getShapeById(D), W = (pe = re.getPoints()[0]) == null ? void 0 : pe.price;
|
|
11526
11561
|
if (!Number.isFinite(W) || W <= 0)
|
|
11527
11562
|
return;
|
|
11528
|
-
const
|
|
11563
|
+
const V = T.current, Q = N === "stopLoss" ? V.stopLoss : V.takeProfit, we = Vs(Q), ue = we !== void 0 && Math.abs(we - W) < V.priceStep / 2;
|
|
11529
11564
|
if (L === "points_changed" && U) {
|
|
11530
|
-
v.current = N, C(re, N, W,
|
|
11565
|
+
v.current = N, C(re, N, W, V), S.current !== null && clearTimeout(S.current), S.current = setTimeout(() => {
|
|
11531
11566
|
v.current = null;
|
|
11532
11567
|
const Le = Ae(W, T.current.digits);
|
|
11533
11568
|
N === "stopLoss" ? m(Le) : p(Le);
|
|
@@ -11535,10 +11570,10 @@ const ma = (e, t, n) => {
|
|
|
11535
11570
|
return;
|
|
11536
11571
|
}
|
|
11537
11572
|
if (S.current !== null && (clearTimeout(S.current), S.current = null), v.current = null, ue) {
|
|
11538
|
-
C(re, N, W,
|
|
11573
|
+
C(re, N, W, V);
|
|
11539
11574
|
return;
|
|
11540
11575
|
}
|
|
11541
|
-
const te = Ae(W,
|
|
11576
|
+
const te = Ae(W, V.digits), de = N === "stopLoss" ? { ...V, stopLoss: te } : { ...V, takeProfit: te };
|
|
11542
11577
|
N === "stopLoss" ? m(te) : p(te), C(re, N, W, de);
|
|
11543
11578
|
} catch {
|
|
11544
11579
|
v.current = null;
|
|
@@ -11631,7 +11666,7 @@ const ma = (e, t, n) => {
|
|
|
11631
11666
|
E = !0;
|
|
11632
11667
|
};
|
|
11633
11668
|
}, [b, e, r]);
|
|
11634
|
-
},
|
|
11669
|
+
}, Hs = (e) => {
|
|
11635
11670
|
e.setUserEditEnabled(!1), e.setSelectionEnabled(!1);
|
|
11636
11671
|
}, ga = (e, t) => qe(e.symbol).toUpperCase() === t, Dd = (e) => ge.getState().positions.filter((t) => ga(t, e)).map((t) => ({
|
|
11637
11672
|
ticket: t.ticket,
|
|
@@ -11710,7 +11745,7 @@ const ma = (e, t, n) => {
|
|
|
11710
11745
|
}
|
|
11711
11746
|
try {
|
|
11712
11747
|
const B = _.getShapeById(F);
|
|
11713
|
-
B.setProperties(A),
|
|
11748
|
+
B.setProperties(A), Hs(B);
|
|
11714
11749
|
} catch {
|
|
11715
11750
|
}
|
|
11716
11751
|
return F;
|
|
@@ -11727,7 +11762,7 @@ const ma = (e, t, n) => {
|
|
|
11727
11762
|
}), C = i.current.get(_.ticket);
|
|
11728
11763
|
if (C)
|
|
11729
11764
|
try {
|
|
11730
|
-
Id(x.getShapeById(C), _.openPrice, A),
|
|
11765
|
+
Id(x.getShapeById(C), _.openPrice, A), Hs(x.getShapeById(C));
|
|
11731
11766
|
return;
|
|
11732
11767
|
} catch {
|
|
11733
11768
|
i.current.delete(_.ticket);
|
|
@@ -11775,7 +11810,7 @@ const ma = (e, t, n) => {
|
|
|
11775
11810
|
volumeLots: x.volumeLots,
|
|
11776
11811
|
profit: x.profit
|
|
11777
11812
|
});
|
|
11778
|
-
Id(_.getShapeById(A), x.openPrice, C),
|
|
11813
|
+
Id(_.getShapeById(A), x.openPrice, C), Hs(_.getShapeById(A));
|
|
11779
11814
|
} catch {
|
|
11780
11815
|
i.current.delete(x.ticket);
|
|
11781
11816
|
}
|
|
@@ -11881,7 +11916,7 @@ var Ni = class {
|
|
|
11881
11916
|
le(this, An);
|
|
11882
11917
|
le(this, sn);
|
|
11883
11918
|
le(this, dr);
|
|
11884
|
-
|
|
11919
|
+
Y(this, dr, (t) => {
|
|
11885
11920
|
if (typeof window < "u" && window.addEventListener) {
|
|
11886
11921
|
const n = () => t();
|
|
11887
11922
|
return window.addEventListener("visibilitychange", n, !1), () => {
|
|
@@ -11895,16 +11930,16 @@ var Ni = class {
|
|
|
11895
11930
|
}
|
|
11896
11931
|
onUnsubscribe() {
|
|
11897
11932
|
var t;
|
|
11898
|
-
this.hasListeners() || ((t = P(this, sn)) == null || t.call(this),
|
|
11933
|
+
this.hasListeners() || ((t = P(this, sn)) == null || t.call(this), Y(this, sn, void 0));
|
|
11899
11934
|
}
|
|
11900
11935
|
setEventListener(t) {
|
|
11901
11936
|
var n;
|
|
11902
|
-
|
|
11937
|
+
Y(this, dr, t), (n = P(this, sn)) == null || n.call(this), Y(this, sn, t((r) => {
|
|
11903
11938
|
typeof r == "boolean" ? this.setFocused(r) : this.onFocus();
|
|
11904
11939
|
}));
|
|
11905
11940
|
}
|
|
11906
11941
|
setFocused(t) {
|
|
11907
|
-
P(this, An) !== t && (
|
|
11942
|
+
P(this, An) !== t && (Y(this, An, t), this.onFocus());
|
|
11908
11943
|
}
|
|
11909
11944
|
onFocus() {
|
|
11910
11945
|
const t = this.isFocused();
|
|
@@ -11947,16 +11982,16 @@ var Ni = class {
|
|
|
11947
11982
|
process.env.NODE_ENV !== "production" && P(this, On) && e !== P(this, Nt) && console.error(
|
|
11948
11983
|
"[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.",
|
|
11949
11984
|
{ previous: P(this, Nt), provider: e }
|
|
11950
|
-
),
|
|
11985
|
+
), Y(this, Nt, e), process.env.NODE_ENV !== "production" && Y(this, On, !1);
|
|
11951
11986
|
}
|
|
11952
11987
|
setTimeout(e, t) {
|
|
11953
|
-
return process.env.NODE_ENV !== "production" &&
|
|
11988
|
+
return process.env.NODE_ENV !== "production" && Y(this, On, !0), P(this, Nt).setTimeout(e, t);
|
|
11954
11989
|
}
|
|
11955
11990
|
clearTimeout(e) {
|
|
11956
11991
|
P(this, Nt).clearTimeout(e);
|
|
11957
11992
|
}
|
|
11958
11993
|
setInterval(e, t) {
|
|
11959
|
-
return process.env.NODE_ENV !== "production" &&
|
|
11994
|
+
return process.env.NODE_ENV !== "production" && Y(this, On, !0), P(this, Nt).setInterval(e, t);
|
|
11960
11995
|
}
|
|
11961
11996
|
clearInterval(e) {
|
|
11962
11997
|
P(this, Nt).clearInterval(e);
|
|
@@ -12228,7 +12263,7 @@ var Ke = fx(), ur, an, fr, Nu, px = (Nu = class extends Ni {
|
|
|
12228
12263
|
le(this, ur, !0);
|
|
12229
12264
|
le(this, an);
|
|
12230
12265
|
le(this, fr);
|
|
12231
|
-
|
|
12266
|
+
Y(this, fr, (t) => {
|
|
12232
12267
|
if (typeof window < "u" && window.addEventListener) {
|
|
12233
12268
|
const n = () => t(!0), r = () => t(!1);
|
|
12234
12269
|
return window.addEventListener("online", n, !1), window.addEventListener("offline", r, !1), () => {
|
|
@@ -12242,14 +12277,14 @@ var Ke = fx(), ur, an, fr, Nu, px = (Nu = class extends Ni {
|
|
|
12242
12277
|
}
|
|
12243
12278
|
onUnsubscribe() {
|
|
12244
12279
|
var t;
|
|
12245
|
-
this.hasListeners() || ((t = P(this, an)) == null || t.call(this),
|
|
12280
|
+
this.hasListeners() || ((t = P(this, an)) == null || t.call(this), Y(this, an, void 0));
|
|
12246
12281
|
}
|
|
12247
12282
|
setEventListener(t) {
|
|
12248
12283
|
var n;
|
|
12249
|
-
|
|
12284
|
+
Y(this, fr, t), (n = P(this, an)) == null || n.call(this), Y(this, an, t(this.setOnline.bind(this)));
|
|
12250
12285
|
}
|
|
12251
12286
|
setOnline(t) {
|
|
12252
|
-
P(this, ur) !== t && (
|
|
12287
|
+
P(this, ur) !== t && (Y(this, ur, t), this.listeners.forEach((r) => {
|
|
12253
12288
|
r(t);
|
|
12254
12289
|
}));
|
|
12255
12290
|
}
|
|
@@ -12335,7 +12370,7 @@ var Nn, Ru, Cm = (Ru = class {
|
|
|
12335
12370
|
this.clearGcTimeout();
|
|
12336
12371
|
}
|
|
12337
12372
|
scheduleGc() {
|
|
12338
|
-
this.clearGcTimeout(), ya(this.gcTime) &&
|
|
12373
|
+
this.clearGcTimeout(), ya(this.gcTime) && Y(this, Nn, kn.setTimeout(() => {
|
|
12339
12374
|
this.optionalRemove();
|
|
12340
12375
|
}, this.gcTime));
|
|
12341
12376
|
}
|
|
@@ -12346,7 +12381,7 @@ var Nn, Ru, Cm = (Ru = class {
|
|
|
12346
12381
|
);
|
|
12347
12382
|
}
|
|
12348
12383
|
clearGcTimeout() {
|
|
12349
|
-
P(this, Nn) !== void 0 && (kn.clearTimeout(P(this, Nn)),
|
|
12384
|
+
P(this, Nn) !== void 0 && (kn.clearTimeout(P(this, Nn)), Y(this, Nn, void 0));
|
|
12350
12385
|
}
|
|
12351
12386
|
}, Nn = new WeakMap(), Ru);
|
|
12352
12387
|
function hx(e) {
|
|
@@ -12442,7 +12477,7 @@ var pr, Rn, mr, mt, Ln, ze, hi, Dn, at, Pm, $t, Lu, yx = (Lu = class extends Cm
|
|
|
12442
12477
|
le(this, ze);
|
|
12443
12478
|
le(this, hi);
|
|
12444
12479
|
le(this, Dn);
|
|
12445
|
-
|
|
12480
|
+
Y(this, Dn, !1), Y(this, hi, t.defaultOptions), this.setOptions(t.options), this.observers = [], Y(this, Ln, t.client), Y(this, mt, P(this, Ln).getQueryCache()), this.queryKey = t.queryKey, this.queryHash = t.queryHash, Y(this, Rn, Vd(this.options)), this.state = t.state ?? P(this, Rn), this.scheduleGc();
|
|
12446
12481
|
}
|
|
12447
12482
|
get meta() {
|
|
12448
12483
|
return this.options.meta;
|
|
@@ -12455,11 +12490,11 @@ var pr, Rn, mr, mt, Ln, ze, hi, Dn, at, Pm, $t, Lu, yx = (Lu = class extends Cm
|
|
|
12455
12490
|
return (t = P(this, ze)) == null ? void 0 : t.promise;
|
|
12456
12491
|
}
|
|
12457
12492
|
setOptions(t) {
|
|
12458
|
-
if (this.options = { ...P(this, hi), ...t }, t != null && t._type &&
|
|
12493
|
+
if (this.options = { ...P(this, hi), ...t }, t != null && t._type && Y(this, pr, t._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
12459
12494
|
const n = Vd(this.options);
|
|
12460
12495
|
n.data !== void 0 && (this.setState(
|
|
12461
12496
|
$d(n.data, n.dataUpdatedAt)
|
|
12462
|
-
),
|
|
12497
|
+
), Y(this, Rn, n));
|
|
12463
12498
|
}
|
|
12464
12499
|
}
|
|
12465
12500
|
optionalRemove() {
|
|
@@ -12558,7 +12593,7 @@ var pr, Rn, mr, mt, Ln, ze, hi, Dn, at, Pm, $t, Lu, yx = (Lu = class extends Cm
|
|
|
12558
12593
|
const r = new AbortController(), i = (_) => {
|
|
12559
12594
|
Object.defineProperty(_, "signal", {
|
|
12560
12595
|
enumerable: !0,
|
|
12561
|
-
get: () => (
|
|
12596
|
+
get: () => (Y(this, Dn, !0), r.signal)
|
|
12562
12597
|
});
|
|
12563
12598
|
}, o = () => {
|
|
12564
12599
|
const _ = _m(this.options, n), x = (() => {
|
|
@@ -12569,7 +12604,7 @@ var pr, Rn, mr, mt, Ln, ze, hi, Dn, at, Pm, $t, Lu, yx = (Lu = class extends Cm
|
|
|
12569
12604
|
};
|
|
12570
12605
|
return i(A), A;
|
|
12571
12606
|
})();
|
|
12572
|
-
return
|
|
12607
|
+
return Y(this, Dn, !1), this.options.persister ? this.options.persister(
|
|
12573
12608
|
_,
|
|
12574
12609
|
x,
|
|
12575
12610
|
this
|
|
@@ -12587,7 +12622,7 @@ var pr, Rn, mr, mt, Ln, ze, hi, Dn, at, Pm, $t, Lu, yx = (Lu = class extends Cm
|
|
|
12587
12622
|
})(), c = P(this, pr) === "infinite" ? hx(
|
|
12588
12623
|
this.options.pages
|
|
12589
12624
|
) : this.options.behavior;
|
|
12590
|
-
c == null || c.onFetch(a, this),
|
|
12625
|
+
c == null || c.onFetch(a, this), Y(this, mr, this.state), (this.state.fetchStatus === "idle" || this.state.fetchMeta !== ((d = a.fetchOptions) == null ? void 0 : d.meta)) && _e(this, at, $t).call(this, { type: "fetch", meta: (f = a.fetchOptions) == null ? void 0 : f.meta }), Y(this, ze, xm({
|
|
12591
12626
|
initialPromise: n == null ? void 0 : n.initialPromise,
|
|
12592
12627
|
fn: a.fetchFn,
|
|
12593
12628
|
onCancel: (_) => {
|
|
@@ -12687,7 +12722,7 @@ var pr, Rn, mr, mt, Ln, ze, hi, Dn, at, Pm, $t, Lu, yx = (Lu = class extends Cm
|
|
|
12687
12722
|
fetchFailureReason: null
|
|
12688
12723
|
}
|
|
12689
12724
|
};
|
|
12690
|
-
return
|
|
12725
|
+
return Y(this, mr, t.manual ? i : void 0), i;
|
|
12691
12726
|
case "error":
|
|
12692
12727
|
const o = t.error;
|
|
12693
12728
|
return {
|
|
@@ -12758,7 +12793,7 @@ function Vd(e) {
|
|
|
12758
12793
|
fetchStatus: "idle"
|
|
12759
12794
|
};
|
|
12760
12795
|
}
|
|
12761
|
-
var nt, xe, gi, et, In, hr,
|
|
12796
|
+
var nt, xe, gi, et, In, hr, jt, cn, yi, gr, yr, Mn, Fn, ln, br, Re, Xr, xa, Ca, Pa, Ea, ka, Aa, Oa, km, Du, bx = (Du = class extends Ni {
|
|
12762
12797
|
constructor(t, n) {
|
|
12763
12798
|
super();
|
|
12764
12799
|
le(this, Re);
|
|
@@ -12768,7 +12803,7 @@ var nt, xe, gi, et, In, hr, Ht, cn, yi, gr, yr, Mn, Fn, ln, br, Re, Xr, xa, Ca,
|
|
|
12768
12803
|
le(this, et);
|
|
12769
12804
|
le(this, In);
|
|
12770
12805
|
le(this, hr);
|
|
12771
|
-
le(this,
|
|
12806
|
+
le(this, jt);
|
|
12772
12807
|
le(this, cn);
|
|
12773
12808
|
le(this, yi);
|
|
12774
12809
|
le(this, gr);
|
|
@@ -12779,13 +12814,13 @@ var nt, xe, gi, et, In, hr, Ht, cn, yi, gr, yr, Mn, Fn, ln, br, Re, Xr, xa, Ca,
|
|
|
12779
12814
|
le(this, Fn);
|
|
12780
12815
|
le(this, ln);
|
|
12781
12816
|
le(this, br, /* @__PURE__ */ new Set());
|
|
12782
|
-
this.options = n,
|
|
12817
|
+
this.options = n, Y(this, nt, t), Y(this, cn, null), Y(this, jt, Sa()), this.bindMethods(), this.setOptions(n);
|
|
12783
12818
|
}
|
|
12784
12819
|
bindMethods() {
|
|
12785
12820
|
this.refetch = this.refetch.bind(this);
|
|
12786
12821
|
}
|
|
12787
12822
|
onSubscribe() {
|
|
12788
|
-
this.listeners.size === 1 && (P(this, xe).addObserver(this),
|
|
12823
|
+
this.listeners.size === 1 && (P(this, xe).addObserver(this), jd(P(this, xe), this.options) ? _e(this, Re, Xr).call(this) : this.updateResult(), _e(this, Re, Ea).call(this));
|
|
12789
12824
|
}
|
|
12790
12825
|
onUnsubscribe() {
|
|
12791
12826
|
this.hasListeners() || this.destroy();
|
|
@@ -12819,7 +12854,7 @@ var nt, xe, gi, et, In, hr, Ht, cn, yi, gr, yr, Mn, Fn, ln, br, Re, Xr, xa, Ca,
|
|
|
12819
12854
|
observer: this
|
|
12820
12855
|
});
|
|
12821
12856
|
const i = this.hasListeners();
|
|
12822
|
-
i &&
|
|
12857
|
+
i && Hd(
|
|
12823
12858
|
P(this, xe),
|
|
12824
12859
|
r,
|
|
12825
12860
|
this.options,
|
|
@@ -12830,14 +12865,14 @@ var nt, xe, gi, et, In, hr, Ht, cn, yi, gr, yr, Mn, Fn, ln, br, Re, Xr, xa, Ca,
|
|
|
12830
12865
|
}
|
|
12831
12866
|
getOptimisticResult(t) {
|
|
12832
12867
|
const n = P(this, nt).getQueryCache().build(P(this, nt), t), r = this.createResult(n, t);
|
|
12833
|
-
return wx(this, r) && (
|
|
12868
|
+
return wx(this, r) && (Y(this, et, r), Y(this, hr, this.options), Y(this, In, P(this, xe).state)), r;
|
|
12834
12869
|
}
|
|
12835
12870
|
getCurrentResult() {
|
|
12836
12871
|
return P(this, et);
|
|
12837
12872
|
}
|
|
12838
12873
|
trackResult(t, n) {
|
|
12839
12874
|
return new Proxy(t, {
|
|
12840
|
-
get: (r, i) => (this.trackProp(i), n == null || n(i), i === "promise" && (this.trackProp("data"), !this.options.experimental_prefetchInRender && P(this,
|
|
12875
|
+
get: (r, i) => (this.trackProp(i), n == null || n(i), i === "promise" && (this.trackProp("data"), !this.options.experimental_prefetchInRender && P(this, jt).status === "pending" && P(this, jt).reject(
|
|
12841
12876
|
new Error(
|
|
12842
12877
|
"experimental_prefetchInRender feature flag is not enabled"
|
|
12843
12878
|
)
|
|
@@ -12870,7 +12905,7 @@ var nt, xe, gi, et, In, hr, Ht, cn, yi, gr, yr, Mn, Fn, ln, br, Re, Xr, xa, Ca,
|
|
|
12870
12905
|
const r = P(this, xe), i = this.options, o = P(this, et), s = P(this, In), a = P(this, hr), l = t !== r ? t.state : P(this, gi), { state: d } = t;
|
|
12871
12906
|
let f = { ...d }, m = !1, p;
|
|
12872
12907
|
if (n._optimisticResults) {
|
|
12873
|
-
const F = this.hasListeners(), B = !F &&
|
|
12908
|
+
const F = this.hasListeners(), B = !F && jd(t, n), O = F && Hd(t, r, n, i);
|
|
12874
12909
|
(B || O) && (f = {
|
|
12875
12910
|
...f,
|
|
12876
12911
|
...Em(d.data, t.options)
|
|
@@ -12895,9 +12930,9 @@ var nt, xe, gi, et, In, hr, Ht, cn, yi, gr, yr, Mn, Fn, ln, br, Re, Xr, xa, Ca,
|
|
|
12895
12930
|
p = P(this, gr);
|
|
12896
12931
|
else
|
|
12897
12932
|
try {
|
|
12898
|
-
|
|
12933
|
+
Y(this, yi, n.select), p = n.select(p), p = _a(o == null ? void 0 : o.data, p, n), Y(this, gr, p), Y(this, cn, null);
|
|
12899
12934
|
} catch (F) {
|
|
12900
|
-
|
|
12935
|
+
Y(this, cn, F);
|
|
12901
12936
|
}
|
|
12902
12937
|
P(this, cn) && (b = P(this, cn), p = P(this, gr), h = Date.now(), g = "error");
|
|
12903
12938
|
const v = f.fetchStatus === "fetching", S = g === "pending", _ = g === "error", T = S && v, x = p !== void 0, C = {
|
|
@@ -12925,25 +12960,25 @@ var nt, xe, gi, et, In, hr, Ht, cn, yi, gr, yr, Mn, Fn, ln, br, Re, Xr, xa, Ca,
|
|
|
12925
12960
|
isRefetchError: _ && x,
|
|
12926
12961
|
isStale: qc(t, n),
|
|
12927
12962
|
refetch: this.refetch,
|
|
12928
|
-
promise: P(this,
|
|
12963
|
+
promise: P(this, jt),
|
|
12929
12964
|
isEnabled: ct(n.enabled, t) !== !1
|
|
12930
12965
|
};
|
|
12931
12966
|
if (this.options.experimental_prefetchInRender) {
|
|
12932
12967
|
const F = C.data !== void 0, B = C.status === "error" && !F, O = (z) => {
|
|
12933
12968
|
B ? z.reject(C.error) : F && z.resolve(C.data);
|
|
12934
|
-
},
|
|
12935
|
-
const z =
|
|
12969
|
+
}, j = () => {
|
|
12970
|
+
const z = Y(this, jt, C.promise = Sa());
|
|
12936
12971
|
O(z);
|
|
12937
|
-
}, M = P(this,
|
|
12972
|
+
}, M = P(this, jt);
|
|
12938
12973
|
switch (M.status) {
|
|
12939
12974
|
case "pending":
|
|
12940
12975
|
t.queryHash === r.queryHash && O(M);
|
|
12941
12976
|
break;
|
|
12942
12977
|
case "fulfilled":
|
|
12943
|
-
(B || C.data !== M.value) &&
|
|
12978
|
+
(B || C.data !== M.value) && j();
|
|
12944
12979
|
break;
|
|
12945
12980
|
case "rejected":
|
|
12946
|
-
(!B || C.error !== M.reason) &&
|
|
12981
|
+
(!B || C.error !== M.reason) && j();
|
|
12947
12982
|
break;
|
|
12948
12983
|
}
|
|
12949
12984
|
}
|
|
@@ -12951,9 +12986,9 @@ var nt, xe, gi, et, In, hr, Ht, cn, yi, gr, yr, Mn, Fn, ln, br, Re, Xr, xa, Ca,
|
|
|
12951
12986
|
}
|
|
12952
12987
|
updateResult() {
|
|
12953
12988
|
const t = P(this, et), n = this.createResult(P(this, xe), this.options);
|
|
12954
|
-
if (
|
|
12989
|
+
if (Y(this, In, P(this, xe).state), Y(this, hr, this.options), P(this, In).data !== void 0 && Y(this, yr, P(this, xe)), va(n, t))
|
|
12955
12990
|
return;
|
|
12956
|
-
|
|
12991
|
+
Y(this, et, n);
|
|
12957
12992
|
const r = () => {
|
|
12958
12993
|
if (!t)
|
|
12959
12994
|
return !0;
|
|
@@ -12973,7 +13008,7 @@ var nt, xe, gi, et, In, hr, Ht, cn, yi, gr, yr, Mn, Fn, ln, br, Re, Xr, xa, Ca,
|
|
|
12973
13008
|
onQueryUpdate() {
|
|
12974
13009
|
this.updateResult(), this.hasListeners() && _e(this, Re, Ea).call(this);
|
|
12975
13010
|
}
|
|
12976
|
-
}, nt = new WeakMap(), xe = new WeakMap(), gi = new WeakMap(), et = new WeakMap(), In = new WeakMap(), hr = new WeakMap(),
|
|
13011
|
+
}, nt = new WeakMap(), xe = new WeakMap(), gi = new WeakMap(), et = new WeakMap(), In = new WeakMap(), hr = new WeakMap(), jt = new WeakMap(), cn = new WeakMap(), yi = new WeakMap(), gr = new WeakMap(), yr = new WeakMap(), Mn = new WeakMap(), Fn = new WeakMap(), ln = new WeakMap(), br = new WeakMap(), Re = new WeakSet(), Xr = function(t) {
|
|
12977
13012
|
_e(this, Re, Oa).call(this);
|
|
12978
13013
|
let n = P(this, xe).fetch(
|
|
12979
13014
|
this.options,
|
|
@@ -12989,27 +13024,27 @@ var nt, xe, gi, et, In, hr, Ht, cn, yi, gr, yr, Mn, Fn, ln, br, Re, Xr, xa, Ca,
|
|
|
12989
13024
|
if (fi.isServer() || P(this, et).isStale || !ya(t))
|
|
12990
13025
|
return;
|
|
12991
13026
|
const r = wm(P(this, et).dataUpdatedAt, t) + 1;
|
|
12992
|
-
|
|
13027
|
+
Y(this, Mn, kn.setTimeout(() => {
|
|
12993
13028
|
P(this, et).isStale || this.updateResult();
|
|
12994
13029
|
}, r));
|
|
12995
13030
|
}, Ca = function() {
|
|
12996
13031
|
return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(P(this, xe)) : this.options.refetchInterval) ?? !1;
|
|
12997
13032
|
}, Pa = function(t) {
|
|
12998
|
-
_e(this, Re, Aa).call(this),
|
|
13033
|
+
_e(this, Re, Aa).call(this), Y(this, ln, t), !(fi.isServer() || ct(this.options.enabled, P(this, xe)) === !1 || !ya(P(this, ln)) || P(this, ln) === 0) && Y(this, Fn, kn.setInterval(() => {
|
|
12999
13034
|
(this.options.refetchIntervalInBackground || Kc.isFocused()) && _e(this, Re, Xr).call(this);
|
|
13000
13035
|
}, P(this, ln)));
|
|
13001
13036
|
}, Ea = function() {
|
|
13002
13037
|
_e(this, Re, xa).call(this), _e(this, Re, Pa).call(this, _e(this, Re, Ca).call(this));
|
|
13003
13038
|
}, ka = function() {
|
|
13004
|
-
P(this, Mn) !== void 0 && (kn.clearTimeout(P(this, Mn)),
|
|
13039
|
+
P(this, Mn) !== void 0 && (kn.clearTimeout(P(this, Mn)), Y(this, Mn, void 0));
|
|
13005
13040
|
}, Aa = function() {
|
|
13006
|
-
P(this, Fn) !== void 0 && (kn.clearInterval(P(this, Fn)),
|
|
13041
|
+
P(this, Fn) !== void 0 && (kn.clearInterval(P(this, Fn)), Y(this, Fn, void 0));
|
|
13007
13042
|
}, Oa = function() {
|
|
13008
13043
|
const t = P(this, nt).getQueryCache().build(P(this, nt), this.options);
|
|
13009
13044
|
if (t === P(this, xe))
|
|
13010
13045
|
return;
|
|
13011
13046
|
const n = P(this, xe);
|
|
13012
|
-
|
|
13047
|
+
Y(this, xe, t), Y(this, gi, t.state), this.hasListeners() && (n == null || n.removeObserver(this), t.addObserver(this));
|
|
13013
13048
|
}, km = function(t) {
|
|
13014
13049
|
Ke.batch(() => {
|
|
13015
13050
|
t.listeners && this.listeners.forEach((n) => {
|
|
@@ -13023,7 +13058,7 @@ var nt, xe, gi, et, In, hr, Ht, cn, yi, gr, yr, Mn, Fn, ln, br, Re, Xr, xa, Ca,
|
|
|
13023
13058
|
function vx(e, t) {
|
|
13024
13059
|
return ct(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && ct(t.retryOnMount, e) === !1);
|
|
13025
13060
|
}
|
|
13026
|
-
function
|
|
13061
|
+
function jd(e, t) {
|
|
13027
13062
|
return vx(e, t) || e.state.data !== void 0 && Na(e, t, t.refetchOnMount);
|
|
13028
13063
|
}
|
|
13029
13064
|
function Na(e, t, n) {
|
|
@@ -13033,7 +13068,7 @@ function Na(e, t, n) {
|
|
|
13033
13068
|
}
|
|
13034
13069
|
return !1;
|
|
13035
13070
|
}
|
|
13036
|
-
function
|
|
13071
|
+
function Hd(e, t, n, r) {
|
|
13037
13072
|
return (e !== t || ct(r.enabled, e) === !1) && (!n.suspense || e.state.status !== "error") && qc(e, n);
|
|
13038
13073
|
}
|
|
13039
13074
|
function qc(e, t) {
|
|
@@ -13050,7 +13085,7 @@ var bi, Rt, Xe, Un, Lt, tn, Iu, _x = (Iu = class extends Cm {
|
|
|
13050
13085
|
le(this, Rt);
|
|
13051
13086
|
le(this, Xe);
|
|
13052
13087
|
le(this, Un);
|
|
13053
|
-
|
|
13088
|
+
Y(this, bi, t.client), this.mutationId = t.mutationId, Y(this, Xe, t.mutationCache), Y(this, Rt, []), this.state = t.state || Sx(), this.setOptions(t.options), this.scheduleGc();
|
|
13054
13089
|
}
|
|
13055
13090
|
setOptions(t) {
|
|
13056
13091
|
this.options = t, this.updateGcTime(this.options.gcTime);
|
|
@@ -13066,7 +13101,7 @@ var bi, Rt, Xe, Un, Lt, tn, Iu, _x = (Iu = class extends Cm {
|
|
|
13066
13101
|
}));
|
|
13067
13102
|
}
|
|
13068
13103
|
removeObserver(t) {
|
|
13069
|
-
|
|
13104
|
+
Y(this, Rt, P(this, Rt).filter((n) => n !== t)), this.scheduleGc(), P(this, Xe).notify({
|
|
13070
13105
|
type: "observerRemoved",
|
|
13071
13106
|
mutation: this,
|
|
13072
13107
|
observer: t
|
|
@@ -13089,7 +13124,7 @@ var bi, Rt, Xe, Un, Lt, tn, Iu, _x = (Iu = class extends Cm {
|
|
|
13089
13124
|
meta: this.options.meta,
|
|
13090
13125
|
mutationKey: this.options.mutationKey
|
|
13091
13126
|
};
|
|
13092
|
-
|
|
13127
|
+
Y(this, Un, xm({
|
|
13093
13128
|
fn: () => this.options.mutationFn ? this.options.mutationFn(t, r) : Promise.reject(new Error("No mutationFn found")),
|
|
13094
13129
|
onFail: (C, R) => {
|
|
13095
13130
|
_e(this, Lt, tn).call(this, { type: "failed", failureCount: C, error: R });
|
|
@@ -13286,13 +13321,13 @@ function Sx() {
|
|
|
13286
13321
|
submittedAt: 0
|
|
13287
13322
|
};
|
|
13288
13323
|
}
|
|
13289
|
-
var
|
|
13324
|
+
var Ht, St, vi, Mu, Tx = (Mu = class extends Ni {
|
|
13290
13325
|
constructor(t = {}) {
|
|
13291
13326
|
super();
|
|
13292
|
-
le(this,
|
|
13327
|
+
le(this, Ht);
|
|
13293
13328
|
le(this, St);
|
|
13294
13329
|
le(this, vi);
|
|
13295
|
-
this.config = t,
|
|
13330
|
+
this.config = t, Y(this, Ht, /* @__PURE__ */ new Set()), Y(this, St, /* @__PURE__ */ new Map()), Y(this, vi, 0);
|
|
13296
13331
|
}
|
|
13297
13332
|
build(t, n, r) {
|
|
13298
13333
|
const i = new _x({
|
|
@@ -13305,7 +13340,7 @@ var jt, St, vi, Mu, Tx = (Mu = class extends Ni {
|
|
|
13305
13340
|
return this.add(i), i;
|
|
13306
13341
|
}
|
|
13307
13342
|
add(t) {
|
|
13308
|
-
P(this,
|
|
13343
|
+
P(this, Ht).add(t);
|
|
13309
13344
|
const n = Zi(t);
|
|
13310
13345
|
if (typeof n == "string") {
|
|
13311
13346
|
const r = P(this, St).get(n);
|
|
@@ -13314,7 +13349,7 @@ var jt, St, vi, Mu, Tx = (Mu = class extends Ni {
|
|
|
13314
13349
|
this.notify({ type: "added", mutation: t });
|
|
13315
13350
|
}
|
|
13316
13351
|
remove(t) {
|
|
13317
|
-
if (P(this,
|
|
13352
|
+
if (P(this, Ht).delete(t)) {
|
|
13318
13353
|
const n = Zi(t);
|
|
13319
13354
|
if (typeof n == "string") {
|
|
13320
13355
|
const r = P(this, St).get(n);
|
|
@@ -13348,13 +13383,13 @@ var jt, St, vi, Mu, Tx = (Mu = class extends Ni {
|
|
|
13348
13383
|
}
|
|
13349
13384
|
clear() {
|
|
13350
13385
|
Ke.batch(() => {
|
|
13351
|
-
P(this,
|
|
13386
|
+
P(this, Ht).forEach((t) => {
|
|
13352
13387
|
this.notify({ type: "removed", mutation: t });
|
|
13353
|
-
}), P(this,
|
|
13388
|
+
}), P(this, Ht).clear(), P(this, St).clear();
|
|
13354
13389
|
});
|
|
13355
13390
|
}
|
|
13356
13391
|
getAll() {
|
|
13357
|
-
return Array.from(P(this,
|
|
13392
|
+
return Array.from(P(this, Ht));
|
|
13358
13393
|
}
|
|
13359
13394
|
find(t) {
|
|
13360
13395
|
const n = { exact: !0, ...t };
|
|
@@ -13380,7 +13415,7 @@ var jt, St, vi, Mu, Tx = (Mu = class extends Ni {
|
|
|
13380
13415
|
)
|
|
13381
13416
|
);
|
|
13382
13417
|
}
|
|
13383
|
-
},
|
|
13418
|
+
}, Ht = new WeakMap(), St = new WeakMap(), vi = new WeakMap(), Mu);
|
|
13384
13419
|
function Zi(e) {
|
|
13385
13420
|
var t;
|
|
13386
13421
|
return (t = e.options.scope) == null ? void 0 : t.id;
|
|
@@ -13389,7 +13424,7 @@ var Dt, Fu, xx = (Fu = class extends Ni {
|
|
|
13389
13424
|
constructor(t = {}) {
|
|
13390
13425
|
super();
|
|
13391
13426
|
le(this, Dt);
|
|
13392
|
-
this.config = t,
|
|
13427
|
+
this.config = t, Y(this, Dt, /* @__PURE__ */ new Map());
|
|
13393
13428
|
}
|
|
13394
13429
|
build(t, n, r) {
|
|
13395
13430
|
const i = n.queryKey, o = n.queryHash ?? Gc(i, n);
|
|
@@ -13467,18 +13502,18 @@ var Dt, Fu, xx = (Fu = class extends Ni {
|
|
|
13467
13502
|
le(this, fn);
|
|
13468
13503
|
le(this, _r);
|
|
13469
13504
|
le(this, Sr);
|
|
13470
|
-
|
|
13505
|
+
Y(this, Be, e.queryCache || new xx()), Y(this, dn, e.mutationCache || new Tx()), Y(this, un, e.defaultOptions || {}), Y(this, vr, /* @__PURE__ */ new Map()), Y(this, wr, /* @__PURE__ */ new Map()), Y(this, fn, 0);
|
|
13471
13506
|
}
|
|
13472
13507
|
mount() {
|
|
13473
|
-
Ui(this, fn)._++, P(this, fn) === 1 && (
|
|
13508
|
+
Ui(this, fn)._++, P(this, fn) === 1 && (Y(this, _r, Kc.subscribe(async (e) => {
|
|
13474
13509
|
e && (await this.resumePausedMutations(), P(this, Be).onFocus());
|
|
13475
|
-
})),
|
|
13510
|
+
})), Y(this, Sr, Do.subscribe(async (e) => {
|
|
13476
13511
|
e && (await this.resumePausedMutations(), P(this, Be).onOnline());
|
|
13477
13512
|
})));
|
|
13478
13513
|
}
|
|
13479
13514
|
unmount() {
|
|
13480
13515
|
var e, t;
|
|
13481
|
-
Ui(this, fn)._--, P(this, fn) === 0 && ((e = P(this, _r)) == null || e.call(this),
|
|
13516
|
+
Ui(this, fn)._--, P(this, fn) === 0 && ((e = P(this, _r)) == null || e.call(this), Y(this, _r, void 0), (t = P(this, Sr)) == null || t.call(this), Y(this, Sr, void 0));
|
|
13482
13517
|
}
|
|
13483
13518
|
isFetching(e) {
|
|
13484
13519
|
return P(this, Be).findAll({ ...e, fetchStatus: "fetching" }).length;
|
|
@@ -13612,7 +13647,7 @@ var Dt, Fu, xx = (Fu = class extends Ni {
|
|
|
13612
13647
|
return P(this, un);
|
|
13613
13648
|
}
|
|
13614
13649
|
setDefaultOptions(e) {
|
|
13615
|
-
|
|
13650
|
+
Y(this, un, e);
|
|
13616
13651
|
}
|
|
13617
13652
|
setQueryDefaults(e, t) {
|
|
13618
13653
|
P(this, vr).set(di(e), {
|
|
@@ -13804,7 +13839,7 @@ function Wx({
|
|
|
13804
13839
|
function $x() {
|
|
13805
13840
|
return Si(Nm);
|
|
13806
13841
|
}
|
|
13807
|
-
const Qc = "widget-accounts", Yc = "widget-positions", Zc = "widget-orders", Li = "widget-deals", Di = "widget-deals-total", Vx = 2e4,
|
|
13842
|
+
const Qc = "widget-accounts", Yc = "widget-positions", Zc = "widget-orders", Li = "widget-deals", Di = "widget-deals-total", Vx = 2e4, jx = 3e4;
|
|
13808
13843
|
function fo(e) {
|
|
13809
13844
|
const t = String(e.getUTCDate()).padStart(2, "0"), n = String(e.getUTCMonth() + 1).padStart(2, "0"), r = String(e.getUTCHours()).padStart(2, "0"), i = String(e.getUTCMinutes()).padStart(2, "0"), o = String(e.getUTCSeconds()).padStart(2, "0");
|
|
13810
13845
|
return `${n}.${t} ${r}:${i}:${o}`;
|
|
@@ -13893,7 +13928,7 @@ const Lm = [
|
|
|
13893
13928
|
"date",
|
|
13894
13929
|
"Date"
|
|
13895
13930
|
];
|
|
13896
|
-
function
|
|
13931
|
+
function Hx(e) {
|
|
13897
13932
|
return fo(e);
|
|
13898
13933
|
}
|
|
13899
13934
|
const zx = {
|
|
@@ -14114,7 +14149,7 @@ function Dm() {
|
|
|
14114
14149
|
queryKey: [Qc, e.baseUrl, t],
|
|
14115
14150
|
queryFn: () => e.getAccounts(),
|
|
14116
14151
|
enabled: !!t,
|
|
14117
|
-
refetchInterval:
|
|
14152
|
+
refetchInterval: jx
|
|
14118
14153
|
});
|
|
14119
14154
|
return {
|
|
14120
14155
|
accounts: n ?? [],
|
|
@@ -14398,7 +14433,7 @@ function D0({ deal: e, dealActions: t }) {
|
|
|
14398
14433
|
}
|
|
14399
14434
|
),
|
|
14400
14435
|
/* @__PURE__ */ u("td", { className: "web-trading-widget-terminal__cell", children: e.entry === 1 ? n("WebTrading.entryOut") : n("WebTrading.entryIn") }),
|
|
14401
|
-
/* @__PURE__ */ u("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--nowrap", children:
|
|
14436
|
+
/* @__PURE__ */ u("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--nowrap", children: Hx(new Date(e.time * 1e3)) }),
|
|
14402
14437
|
/* @__PURE__ */ u("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--nowrap", children: A0(e.time) }),
|
|
14403
14438
|
/* @__PURE__ */ u("td", { className: "web-trading-widget-terminal__cell web-trading-widget-terminal__cell--truncate", children: e.comment ? O0(e.comment) : "—" })
|
|
14404
14439
|
] });
|
|
@@ -14637,10 +14672,10 @@ function V0() {
|
|
|
14637
14672
|
dismiss: (n) => ri({ type: "DISMISS_TOAST", toastId: n })
|
|
14638
14673
|
};
|
|
14639
14674
|
}
|
|
14640
|
-
function
|
|
14675
|
+
function j0(e) {
|
|
14641
14676
|
return e.type === "buy" ? e.marketBid ?? e.currentPrice : e.marketAsk ?? e.currentPrice;
|
|
14642
14677
|
}
|
|
14643
|
-
function
|
|
14678
|
+
function H0() {
|
|
14644
14679
|
const { t: e } = Ue(), { closePosition: t, deleteOrder: n } = ms(), r = l0(), i = ge((y) => y.removePosition), o = ge((y) => y.removeOrder), s = ge(
|
|
14645
14680
|
(y) => y.setSelectedPositionTicket
|
|
14646
14681
|
), a = ge(
|
|
@@ -14671,7 +14706,7 @@ function j0() {
|
|
|
14671
14706
|
i(y.ticket), s(null), Oe({
|
|
14672
14707
|
description: e("WebTrading.positionClosed", {
|
|
14673
14708
|
ticket: y.ticket,
|
|
14674
|
-
price:
|
|
14709
|
+
price: j0(y).toFixed(y.digits)
|
|
14675
14710
|
})
|
|
14676
14711
|
});
|
|
14677
14712
|
} catch (S) {
|
|
@@ -15038,7 +15073,7 @@ function Bm({
|
|
|
15038
15073
|
} } : m, g = ge((K) => K.selectedLogin), y = ge((K) => K.selectedPositionTicket), v = ge((K) => K.selectedOrderTicket), S = ge((K) => K.setSelectedPositionTicket), _ = ge((K) => K.setSelectedOrderTicket), { isLoading: T } = Mm(
|
|
15039
15074
|
g,
|
|
15040
15075
|
o
|
|
15041
|
-
), x = ge((K) => K.positions), A = ge((K) => K.orders), { closePosition: C, closeAllPositions: R, deleteOrder: F, isClosingAll: B, isRowBusy: O } =
|
|
15076
|
+
), x = ge((K) => K.positions), A = ge((K) => K.orders), { closePosition: C, closeAllPositions: R, deleteOrder: F, isClosingAll: B, isRowBusy: O } = H0(), j = c0(), M = yt(), z = Ux({
|
|
15042
15077
|
predicate: (K) => {
|
|
15043
15078
|
const Ce = K.queryKey;
|
|
15044
15079
|
return g ? (Ce[0] === Li || Ce[0] === Di) && Ce[1] === M.baseUrl && Ce[2] === g : !1;
|
|
@@ -15063,11 +15098,11 @@ function Bm({
|
|
|
15063
15098
|
}, [U]), X = Ne(
|
|
15064
15099
|
() => z0(N, D, G),
|
|
15065
15100
|
[N, D, G]
|
|
15066
|
-
), pe = D.length === 0 && L.length === 0, re = Te(null), W = Te(null),
|
|
15101
|
+
), pe = D.length === 0 && L.length === 0, re = Te(null), W = Te(null), V = Te(null), Q = oe(() => {
|
|
15067
15102
|
R(D);
|
|
15068
15103
|
}, [R, D]), we = oe(() => {
|
|
15069
|
-
g &&
|
|
15070
|
-
}, [
|
|
15104
|
+
g && j(g);
|
|
15105
|
+
}, [j, g]), ue = oe(
|
|
15071
15106
|
(K) => {
|
|
15072
15107
|
const Ce = qw(K, l);
|
|
15073
15108
|
Ce && (n == null || n(Ce));
|
|
@@ -15084,10 +15119,10 @@ function Bm({
|
|
|
15084
15119
|
},
|
|
15085
15120
|
[_, ue]
|
|
15086
15121
|
), Le = oe((K) => {
|
|
15087
|
-
const Ce = re.current, ie = W.current, Pe =
|
|
15122
|
+
const Ce = re.current, ie = W.current, Pe = V.current;
|
|
15088
15123
|
if (!Ce || !ie) return;
|
|
15089
|
-
const
|
|
15090
|
-
K !== "header" && (Ce.scrollLeft =
|
|
15124
|
+
const He = K === "header" ? Ce.scrollLeft : K === "body" ? ie.scrollLeft : (Pe == null ? void 0 : Pe.scrollLeft) ?? 0;
|
|
15125
|
+
K !== "header" && (Ce.scrollLeft = He), K !== "body" && (ie.scrollLeft = He), Pe && K !== "footer" && (Pe.scrollLeft = He);
|
|
15091
15126
|
}, []);
|
|
15092
15127
|
return /* @__PURE__ */ I($e, { children: [
|
|
15093
15128
|
!e && b ? /* @__PURE__ */ u("div", { className: "web-trading-widget-terminal-resize-overlay", "aria-hidden": !0 }) : null,
|
|
@@ -15118,7 +15153,7 @@ function Bm({
|
|
|
15118
15153
|
onTabChange: c,
|
|
15119
15154
|
positionCount: D.length,
|
|
15120
15155
|
isClosingAll: B,
|
|
15121
|
-
onCloseAllPositions:
|
|
15156
|
+
onCloseAllPositions: Q,
|
|
15122
15157
|
isRefetchingDeals: z,
|
|
15123
15158
|
onRefetchDeals: we
|
|
15124
15159
|
}
|
|
@@ -15170,7 +15205,7 @@ function Bm({
|
|
|
15170
15205
|
marginFree: X.marginFree,
|
|
15171
15206
|
marginLevel: X.marginLevel,
|
|
15172
15207
|
totalPnL: X.totalProfit,
|
|
15173
|
-
scrollRef: a === "trade" ?
|
|
15208
|
+
scrollRef: a === "trade" ? V : void 0,
|
|
15174
15209
|
onScroll: a === "trade" ? () => Le("footer") : void 0
|
|
15175
15210
|
}
|
|
15176
15211
|
)
|
|
@@ -15363,7 +15398,7 @@ const Wn = Dr(({ className: e, type: t, ...n }, r) => /* @__PURE__ */ u(
|
|
|
15363
15398
|
}
|
|
15364
15399
|
));
|
|
15365
15400
|
Wn.displayName = "Input";
|
|
15366
|
-
var hs = "Collapsible", [tC, Vm] = Qn(hs), [nC, tl] = tC(hs),
|
|
15401
|
+
var hs = "Collapsible", [tC, Vm] = Qn(hs), [nC, tl] = tC(hs), jm = w.forwardRef(
|
|
15367
15402
|
(e, t) => {
|
|
15368
15403
|
const {
|
|
15369
15404
|
__scopeCollapsible: n,
|
|
@@ -15399,10 +15434,10 @@ var hs = "Collapsible", [tC, Vm] = Qn(hs), [nC, tl] = tC(hs), Hm = w.forwardRef(
|
|
|
15399
15434
|
);
|
|
15400
15435
|
}
|
|
15401
15436
|
);
|
|
15402
|
-
|
|
15403
|
-
var
|
|
15437
|
+
jm.displayName = hs;
|
|
15438
|
+
var Hm = "CollapsibleTrigger", zm = w.forwardRef(
|
|
15404
15439
|
(e, t) => {
|
|
15405
|
-
const { __scopeCollapsible: n, ...r } = e, i = tl(
|
|
15440
|
+
const { __scopeCollapsible: n, ...r } = e, i = tl(Hm, n);
|
|
15406
15441
|
return /* @__PURE__ */ u(
|
|
15407
15442
|
ve.button,
|
|
15408
15443
|
{
|
|
@@ -15419,7 +15454,7 @@ var jm = "CollapsibleTrigger", zm = w.forwardRef(
|
|
|
15419
15454
|
);
|
|
15420
15455
|
}
|
|
15421
15456
|
);
|
|
15422
|
-
zm.displayName =
|
|
15457
|
+
zm.displayName = Hm;
|
|
15423
15458
|
var nl = "CollapsibleContent", Km = w.forwardRef(
|
|
15424
15459
|
(e, t) => {
|
|
15425
15460
|
const { forceMount: n, ...r } = e, i = tl(nl, e.__scopeCollapsible);
|
|
@@ -15432,7 +15467,7 @@ var rC = w.forwardRef((e, t) => {
|
|
|
15432
15467
|
return w.useEffect(() => {
|
|
15433
15468
|
const v = requestAnimationFrame(() => g.current = !1);
|
|
15434
15469
|
return () => cancelAnimationFrame(v);
|
|
15435
|
-
}, []),
|
|
15470
|
+
}, []), je(() => {
|
|
15436
15471
|
const v = l.current;
|
|
15437
15472
|
if (v) {
|
|
15438
15473
|
y.current = y.current || {
|
|
@@ -15463,7 +15498,7 @@ var rC = w.forwardRef((e, t) => {
|
|
|
15463
15498
|
function rl(e) {
|
|
15464
15499
|
return e ? "open" : "closed";
|
|
15465
15500
|
}
|
|
15466
|
-
var iC =
|
|
15501
|
+
var iC = jm, oC = zm, sC = Km, kt = "Accordion", aC = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [il, cC, lC] = cc(kt), [gs] = Qn(kt, [
|
|
15467
15502
|
lC,
|
|
15468
15503
|
Vm
|
|
15469
15504
|
]), ol = Vm(), Gm = w.forwardRef(
|
|
@@ -15752,10 +15787,10 @@ function We({
|
|
|
15752
15787
|
const R = y(), F = Zd(b), B = b.trim() !== "";
|
|
15753
15788
|
let O;
|
|
15754
15789
|
!B || F === null ? O = C === 1 ? R : R - r : O = F + C * r;
|
|
15755
|
-
const
|
|
15756
|
-
if (
|
|
15790
|
+
const j = i !== void 0 ? Math.max(i, O) : O;
|
|
15791
|
+
if (j <= 0)
|
|
15757
15792
|
return;
|
|
15758
|
-
const M = Xd(
|
|
15793
|
+
const M = Xd(j, o);
|
|
15759
15794
|
p(!1), v(M);
|
|
15760
15795
|
}, _ = () => {
|
|
15761
15796
|
p(!0), f(t);
|
|
@@ -15852,7 +15887,7 @@ function SC({
|
|
|
15852
15887
|
onClose: f,
|
|
15853
15888
|
onPlaceOrder: m
|
|
15854
15889
|
}) {
|
|
15855
|
-
const { t: p } = Ue(), [b, h] = J("market"), [g, y] = J(String(r)), [v, S] = J(""), [_, T] = J(""), x = fe((se) => se.stopLoss), A = fe((se) => se.takeProfit), C = fe((se) => se.setStopLoss), R = fe((se) => se.setTakeProfit), F = fe((se) => se.setVolumeLots), B = fe((se) => se.setOrderSide), [O,
|
|
15890
|
+
const { t: p } = Ue(), [b, h] = J("market"), [g, y] = J(String(r)), [v, S] = J(""), [_, T] = J(""), x = fe((se) => se.stopLoss), A = fe((se) => se.takeProfit), C = fe((se) => se.setStopLoss), R = fe((se) => se.setTakeProfit), F = fe((se) => se.setVolumeLots), B = fe((se) => se.setOrderSide), [O, j] = J(""), [M, z] = J(tt.GTC), [E, D] = J(""), [L, N] = J(""), $ = Number(Yt(Zt(e))), U = Ur($), G = Mc(t, n), X = t !== null ? Ae(t, $) : "—", pe = n !== null ? Ae(n, $) : "—", re = os(b), W = Pp(b), V = is(b), Q = p(Ao[b]), we = !re && V.orderType !== null && V.orderType % 2 === 1, ue = Ne(() => G !== null ? G : t ?? n, [n, t, G]), te = (se) => {
|
|
15856
15891
|
y(se);
|
|
15857
15892
|
const At = Number(se);
|
|
15858
15893
|
Number.isFinite(At) && At > 0 && F(At);
|
|
@@ -15880,7 +15915,7 @@ function SC({
|
|
|
15880
15915
|
bid: t,
|
|
15881
15916
|
ask: n
|
|
15882
15917
|
});
|
|
15883
|
-
}, Ce = t !== null && n !== null, ie = re || Ge(v) !== void 0, Pe = !W || Ge(_) !== void 0,
|
|
15918
|
+
}, Ce = t !== null && n !== null, ie = re || Ge(v) !== void 0, Pe = !W || Ge(_) !== void 0, He = re || as(M, E, L), Ye = !s && !a && c !== "" && Ce && ie && Pe && He, vt = !re && Lc(M), Vr = !re && Dc(M);
|
|
15884
15919
|
return /* @__PURE__ */ I("div", { className: "web-trading-widget-market-panel", children: [
|
|
15885
15920
|
/* @__PURE__ */ I("div", { className: "web-trading-widget-market-panel__header", children: [
|
|
15886
15921
|
/* @__PURE__ */ I(xo, { value: b, onValueChange: (se) => h(se), children: [
|
|
@@ -16036,7 +16071,7 @@ function SC({
|
|
|
16036
16071
|
] }),
|
|
16037
16072
|
/* @__PURE__ */ I(rr, { value: "comment", className: "web-trading-widget-market-panel__accordion-item", children: [
|
|
16038
16073
|
/* @__PURE__ */ u(ir, { className: "web-trading-widget-market-panel__accordion-trigger", children: p("WebTrading.comment") }),
|
|
16039
|
-
/* @__PURE__ */ u(or, { className: "web-trading-widget-market-panel__accordion-content", children: /* @__PURE__ */ u(Wn, { value: O, onChange: (se) =>
|
|
16074
|
+
/* @__PURE__ */ u(or, { className: "web-trading-widget-market-panel__accordion-content", children: /* @__PURE__ */ u(Wn, { value: O, onChange: (se) => j(se.target.value), placeholder: "" }) })
|
|
16040
16075
|
] })
|
|
16041
16076
|
] }),
|
|
16042
16077
|
/* @__PURE__ */ I("div", { className: "web-trading-widget-market-panel__footer", children: [
|
|
@@ -16076,14 +16111,14 @@ function SC({
|
|
|
16076
16111
|
className: `web-trading-widget-market-panel__place-btn${we ? "" : " web-trading-widget-market-panel__place-btn--buy"}`,
|
|
16077
16112
|
disabled: !Ye,
|
|
16078
16113
|
onMouseDown: () => {
|
|
16079
|
-
const se =
|
|
16114
|
+
const se = V.orderType !== null && V.orderType % 2 === 1 ? "sell" : "buy";
|
|
16080
16115
|
Le(se);
|
|
16081
16116
|
},
|
|
16082
16117
|
onClick: () => {
|
|
16083
|
-
const se =
|
|
16118
|
+
const se = V.orderType !== null && V.orderType % 2 === 1 ? "sell" : "buy";
|
|
16084
16119
|
K(se);
|
|
16085
16120
|
},
|
|
16086
|
-
children: p("WebTrading.placeOrder", { label:
|
|
16121
|
+
children: p("WebTrading.placeOrder", { label: Q })
|
|
16087
16122
|
}
|
|
16088
16123
|
)
|
|
16089
16124
|
] })
|
|
@@ -16145,7 +16180,7 @@ function ah({
|
|
|
16145
16180
|
order: e,
|
|
16146
16181
|
onClose: t
|
|
16147
16182
|
}) {
|
|
16148
|
-
const { t: n } = Ue(), { deleteOrder: r, modifyOrder: i } = ms(), o = ge((W) => W.removeOrder), s = ge((W) => W.liveQuotes), [a, c] = J(String(e.volumeLots)), [l, d] = J(String(e.orderPrice)), [f, m] = J(e.priceTrigger !== void 0 ? String(e.priceTrigger) : ""), p = fe((W) => W.stopLoss), b = fe((W) => W.takeProfit), h = fe((W) => W.setStopLoss), g = fe((W) => W.setTakeProfit), y = fe((W) => W.setDraft), [v, S] = J(e.comment), [_, T] = J(!1), [x, A] = J(!1), C = Ur(e.digits), R = qe(e.symbol).toUpperCase(), F = s[R], B = (F == null ? void 0 : F.bid) ?? e.marketBid ?? null, O = (F == null ? void 0 : F.ask) ?? e.marketAsk ?? null,
|
|
16183
|
+
const { t: n } = Ue(), { deleteOrder: r, modifyOrder: i } = ms(), o = ge((W) => W.removeOrder), s = ge((W) => W.liveQuotes), [a, c] = J(String(e.volumeLots)), [l, d] = J(String(e.orderPrice)), [f, m] = J(e.priceTrigger !== void 0 ? String(e.priceTrigger) : ""), p = fe((W) => W.stopLoss), b = fe((W) => W.takeProfit), h = fe((W) => W.setStopLoss), g = fe((W) => W.setTakeProfit), y = fe((W) => W.setDraft), [v, S] = J(e.comment), [_, T] = J(!1), [x, A] = J(!1), C = Ur(e.digits), R = qe(e.symbol).toUpperCase(), F = s[R], B = (F == null ? void 0 : F.bid) ?? e.marketBid ?? null, O = (F == null ? void 0 : F.ask) ?? e.marketAsk ?? null, j = B !== null ? Ae(B, e.digits) : "—", M = O !== null ? Ae(O, e.digits) : "—", z = Ne(() => e.orderPrice > 0 ? e.orderPrice : Mc(B, O) ?? B ?? O, [O, B, e.orderPrice]);
|
|
16149
16184
|
ae(() => {
|
|
16150
16185
|
y({
|
|
16151
16186
|
source: "order",
|
|
@@ -16205,8 +16240,8 @@ function ah({
|
|
|
16205
16240
|
description: n("WebTrading.orderUpdated", { ticket: e.ticket })
|
|
16206
16241
|
});
|
|
16207
16242
|
} catch (W) {
|
|
16208
|
-
const
|
|
16209
|
-
Oe({ variant: "destructive", description:
|
|
16243
|
+
const V = W instanceof Error ? W.message : n("WebTrading.failedModifyOrder");
|
|
16244
|
+
Oe({ variant: "destructive", description: V });
|
|
16210
16245
|
} finally {
|
|
16211
16246
|
T(!1);
|
|
16212
16247
|
}
|
|
@@ -16225,8 +16260,8 @@ function ah({
|
|
|
16225
16260
|
description: n("WebTrading.orderDeleted", { ticket: e.ticket })
|
|
16226
16261
|
});
|
|
16227
16262
|
} catch (W) {
|
|
16228
|
-
const
|
|
16229
|
-
Oe({ variant: "destructive", description:
|
|
16263
|
+
const V = W instanceof Error ? W.message : n("WebTrading.failedDeleteOrder");
|
|
16264
|
+
Oe({ variant: "destructive", description: V });
|
|
16230
16265
|
} finally {
|
|
16231
16266
|
A(!1);
|
|
16232
16267
|
}
|
|
@@ -16304,7 +16339,7 @@ function ah({
|
|
|
16304
16339
|
step: C,
|
|
16305
16340
|
decimals: e.digits,
|
|
16306
16341
|
basePrice: B,
|
|
16307
|
-
placeholder:
|
|
16342
|
+
placeholder: j,
|
|
16308
16343
|
clearable: !0
|
|
16309
16344
|
}
|
|
16310
16345
|
),
|
|
@@ -16402,7 +16437,7 @@ function ch({
|
|
|
16402
16437
|
v,
|
|
16403
16438
|
p
|
|
16404
16439
|
]);
|
|
16405
|
-
const R = TC(e, T, x), F = e.volumeLots, B = b || g, O = ei(Ge(l)) !== ei(e.stopLoss) || ei(Ge(d)) !== ei(e.takeProfit),
|
|
16440
|
+
const R = TC(e, T, x), F = e.volumeLots, B = b || g, O = ei(Ge(l)) !== ei(e.stopLoss) || ei(Ge(d)) !== ei(e.takeProfit), j = async () => {
|
|
16406
16441
|
if (O) {
|
|
16407
16442
|
y(!0);
|
|
16408
16443
|
try {
|
|
@@ -16536,7 +16571,7 @@ function ch({
|
|
|
16536
16571
|
variant: "secondary",
|
|
16537
16572
|
className: "web-trading-widget-detail-panel__btn-full",
|
|
16538
16573
|
disabled: B || !O,
|
|
16539
|
-
onClick: () => void
|
|
16574
|
+
onClick: () => void j(),
|
|
16540
16575
|
children: n("WebTrading.modify")
|
|
16541
16576
|
}
|
|
16542
16577
|
),
|
|
@@ -16697,13 +16732,13 @@ function EC({
|
|
|
16697
16732
|
if (h)
|
|
16698
16733
|
return;
|
|
16699
16734
|
if (l === "confirmed") {
|
|
16700
|
-
f && !y.some((
|
|
16735
|
+
f && !y.some((j) => j.login === f) && d("needs-selection");
|
|
16701
16736
|
return;
|
|
16702
16737
|
}
|
|
16703
16738
|
if (l === "needs-selection")
|
|
16704
16739
|
return;
|
|
16705
16740
|
const O = Kw();
|
|
16706
|
-
if (O && y.some((
|
|
16741
|
+
if (O && y.some((j) => j.login === O)) {
|
|
16707
16742
|
m(O), d("confirmed"), i(t);
|
|
16708
16743
|
return;
|
|
16709
16744
|
}
|
|
@@ -16737,9 +16772,9 @@ function EC({
|
|
|
16737
16772
|
s(null), i("mini");
|
|
16738
16773
|
}, []), B = oe(
|
|
16739
16774
|
async (O) => {
|
|
16740
|
-
const
|
|
16775
|
+
const j = fe.getState().clearEntryLinePreview, M = O.login.trim();
|
|
16741
16776
|
if (!M) {
|
|
16742
|
-
|
|
16777
|
+
j(), Oe({
|
|
16743
16778
|
variant: "destructive",
|
|
16744
16779
|
description: n("WebTrading.pleaseSelectTradingAccount")
|
|
16745
16780
|
});
|
|
@@ -16751,14 +16786,14 @@ function EC({
|
|
|
16751
16786
|
);
|
|
16752
16787
|
const D = os(O.executionMode), L = Rc(O.orderType), N = Ge(O.priceOrder), $ = Ge(O.priceTrigger);
|
|
16753
16788
|
if (!D && N === void 0) {
|
|
16754
|
-
|
|
16789
|
+
j(), Oe({
|
|
16755
16790
|
variant: "destructive",
|
|
16756
16791
|
description: n(L ? "WebTrading.pleaseSetLimitPrice" : "WebTrading.pleaseSetOrderPrice")
|
|
16757
16792
|
});
|
|
16758
16793
|
return;
|
|
16759
16794
|
}
|
|
16760
16795
|
if (L && $ === void 0) {
|
|
16761
|
-
|
|
16796
|
+
j(), Oe({
|
|
16762
16797
|
variant: "destructive",
|
|
16763
16798
|
description: n("WebTrading.pleaseSetStopPrice")
|
|
16764
16799
|
});
|
|
@@ -16769,7 +16804,7 @@ function EC({
|
|
|
16769
16804
|
O.expirationDateTime,
|
|
16770
16805
|
O.expirationDay
|
|
16771
16806
|
)) {
|
|
16772
|
-
|
|
16807
|
+
j(), Oe({
|
|
16773
16808
|
variant: "destructive",
|
|
16774
16809
|
description: n("WebTrading.pleaseSetExpirationDate")
|
|
16775
16810
|
});
|
|
@@ -16797,7 +16832,7 @@ function EC({
|
|
|
16797
16832
|
ask: O.ask
|
|
16798
16833
|
});
|
|
16799
16834
|
if (!G.success) {
|
|
16800
|
-
|
|
16835
|
+
j(), Oe({
|
|
16801
16836
|
variant: "destructive",
|
|
16802
16837
|
description: G.message || n("WebTrading.orderNotAccepted")
|
|
16803
16838
|
});
|
|
@@ -16811,7 +16846,7 @@ function EC({
|
|
|
16811
16846
|
price: G.price ?? U
|
|
16812
16847
|
}), i("confirmation");
|
|
16813
16848
|
} catch (G) {
|
|
16814
|
-
|
|
16849
|
+
j();
|
|
16815
16850
|
const X = G instanceof Error ? G.message : n("WebTrading.failedPlaceOrder");
|
|
16816
16851
|
Oe({
|
|
16817
16852
|
variant: "destructive",
|
|
@@ -17509,7 +17544,7 @@ const $C = (e) => {
|
|
|
17509
17544
|
return n && n !== Wa ? n : go(e);
|
|
17510
17545
|
}
|
|
17511
17546
|
return go(e);
|
|
17512
|
-
},
|
|
17547
|
+
}, jC = ({
|
|
17513
17548
|
queryKey: e,
|
|
17514
17549
|
queryFn: t,
|
|
17515
17550
|
...n
|
|
@@ -17619,7 +17654,7 @@ const ee = ke.arrayToEnum([
|
|
|
17619
17654
|
default:
|
|
17620
17655
|
return ee.unknown;
|
|
17621
17656
|
}
|
|
17622
|
-
},
|
|
17657
|
+
}, H = ke.arrayToEnum([
|
|
17623
17658
|
"invalid_type",
|
|
17624
17659
|
"invalid_literal",
|
|
17625
17660
|
"custom",
|
|
@@ -17704,52 +17739,52 @@ Gt.create = (e) => new Gt(e);
|
|
|
17704
17739
|
const $a = (e, t) => {
|
|
17705
17740
|
let n;
|
|
17706
17741
|
switch (e.code) {
|
|
17707
|
-
case
|
|
17742
|
+
case H.invalid_type:
|
|
17708
17743
|
e.received === ee.undefined ? n = "Required" : n = `Expected ${e.expected}, received ${e.received}`;
|
|
17709
17744
|
break;
|
|
17710
|
-
case
|
|
17745
|
+
case H.invalid_literal:
|
|
17711
17746
|
n = `Invalid literal value, expected ${JSON.stringify(e.expected, ke.jsonStringifyReplacer)}`;
|
|
17712
17747
|
break;
|
|
17713
|
-
case
|
|
17748
|
+
case H.unrecognized_keys:
|
|
17714
17749
|
n = `Unrecognized key(s) in object: ${ke.joinValues(e.keys, ", ")}`;
|
|
17715
17750
|
break;
|
|
17716
|
-
case
|
|
17751
|
+
case H.invalid_union:
|
|
17717
17752
|
n = "Invalid input";
|
|
17718
17753
|
break;
|
|
17719
|
-
case
|
|
17754
|
+
case H.invalid_union_discriminator:
|
|
17720
17755
|
n = `Invalid discriminator value. Expected ${ke.joinValues(e.options)}`;
|
|
17721
17756
|
break;
|
|
17722
|
-
case
|
|
17757
|
+
case H.invalid_enum_value:
|
|
17723
17758
|
n = `Invalid enum value. Expected ${ke.joinValues(e.options)}, received '${e.received}'`;
|
|
17724
17759
|
break;
|
|
17725
|
-
case
|
|
17760
|
+
case H.invalid_arguments:
|
|
17726
17761
|
n = "Invalid function arguments";
|
|
17727
17762
|
break;
|
|
17728
|
-
case
|
|
17763
|
+
case H.invalid_return_type:
|
|
17729
17764
|
n = "Invalid function return type";
|
|
17730
17765
|
break;
|
|
17731
|
-
case
|
|
17766
|
+
case H.invalid_date:
|
|
17732
17767
|
n = "Invalid date";
|
|
17733
17768
|
break;
|
|
17734
|
-
case
|
|
17769
|
+
case H.invalid_string:
|
|
17735
17770
|
typeof e.validation == "object" ? "includes" in e.validation ? (n = `Invalid input: must include "${e.validation.includes}"`, typeof e.validation.position == "number" && (n = `${n} at one or more positions greater than or equal to ${e.validation.position}`)) : "startsWith" in e.validation ? n = `Invalid input: must start with "${e.validation.startsWith}"` : "endsWith" in e.validation ? n = `Invalid input: must end with "${e.validation.endsWith}"` : ke.assertNever(e.validation) : e.validation !== "regex" ? n = `Invalid ${e.validation}` : n = "Invalid";
|
|
17736
17771
|
break;
|
|
17737
|
-
case
|
|
17772
|
+
case H.too_small:
|
|
17738
17773
|
e.type === "array" ? n = `Array must contain ${e.exact ? "exactly" : e.inclusive ? "at least" : "more than"} ${e.minimum} element(s)` : e.type === "string" ? n = `String must contain ${e.exact ? "exactly" : e.inclusive ? "at least" : "over"} ${e.minimum} character(s)` : e.type === "number" ? n = `Number must be ${e.exact ? "exactly equal to " : e.inclusive ? "greater than or equal to " : "greater than "}${e.minimum}` : e.type === "bigint" ? n = `Number must be ${e.exact ? "exactly equal to " : e.inclusive ? "greater than or equal to " : "greater than "}${e.minimum}` : e.type === "date" ? n = `Date must be ${e.exact ? "exactly equal to " : e.inclusive ? "greater than or equal to " : "greater than "}${new Date(Number(e.minimum))}` : n = "Invalid input";
|
|
17739
17774
|
break;
|
|
17740
|
-
case
|
|
17775
|
+
case H.too_big:
|
|
17741
17776
|
e.type === "array" ? n = `Array must contain ${e.exact ? "exactly" : e.inclusive ? "at most" : "less than"} ${e.maximum} element(s)` : e.type === "string" ? n = `String must contain ${e.exact ? "exactly" : e.inclusive ? "at most" : "under"} ${e.maximum} character(s)` : e.type === "number" ? n = `Number must be ${e.exact ? "exactly" : e.inclusive ? "less than or equal to" : "less than"} ${e.maximum}` : e.type === "bigint" ? n = `BigInt must be ${e.exact ? "exactly" : e.inclusive ? "less than or equal to" : "less than"} ${e.maximum}` : e.type === "date" ? n = `Date must be ${e.exact ? "exactly" : e.inclusive ? "smaller than or equal to" : "smaller than"} ${new Date(Number(e.maximum))}` : n = "Invalid input";
|
|
17742
17777
|
break;
|
|
17743
|
-
case
|
|
17778
|
+
case H.custom:
|
|
17744
17779
|
n = "Invalid input";
|
|
17745
17780
|
break;
|
|
17746
|
-
case
|
|
17781
|
+
case H.invalid_intersection_types:
|
|
17747
17782
|
n = "Intersection results could not be merged";
|
|
17748
17783
|
break;
|
|
17749
|
-
case
|
|
17784
|
+
case H.not_multiple_of:
|
|
17750
17785
|
n = `Number must be a multiple of ${e.multipleOf}`;
|
|
17751
17786
|
break;
|
|
17752
|
-
case
|
|
17787
|
+
case H.not_finite:
|
|
17753
17788
|
n = "Number must be finite";
|
|
17754
17789
|
break;
|
|
17755
17790
|
default:
|
|
@@ -17757,9 +17792,9 @@ const $a = (e, t) => {
|
|
|
17757
17792
|
}
|
|
17758
17793
|
return { message: n };
|
|
17759
17794
|
};
|
|
17760
|
-
let
|
|
17795
|
+
let HC = $a;
|
|
17761
17796
|
function zC() {
|
|
17762
|
-
return
|
|
17797
|
+
return HC;
|
|
17763
17798
|
}
|
|
17764
17799
|
const KC = (e) => {
|
|
17765
17800
|
const { data: t, path: n, errorMaps: r, issueData: i } = e, o = [...n, ...i.path || []], s = {
|
|
@@ -17782,7 +17817,7 @@ const KC = (e) => {
|
|
|
17782
17817
|
message: a
|
|
17783
17818
|
};
|
|
17784
17819
|
};
|
|
17785
|
-
function
|
|
17820
|
+
function Z(e, t) {
|
|
17786
17821
|
const n = zC(), r = KC({
|
|
17787
17822
|
issueData: t,
|
|
17788
17823
|
data: e.data,
|
|
@@ -18001,7 +18036,7 @@ class Ee {
|
|
|
18001
18036
|
const r = (i) => typeof n == "string" || typeof n > "u" ? { message: n } : typeof n == "function" ? n(i) : n;
|
|
18002
18037
|
return this._refinement((i, o) => {
|
|
18003
18038
|
const s = t(i), a = () => o.addIssue({
|
|
18004
|
-
code:
|
|
18039
|
+
code: H.custom,
|
|
18005
18040
|
...r(i)
|
|
18006
18041
|
});
|
|
18007
18042
|
return typeof Promise < "u" && s instanceof Promise ? s.then((c) => c ? !0 : (a(), !1)) : s ? !0 : (a(), !1);
|
|
@@ -18058,7 +18093,7 @@ class Ee {
|
|
|
18058
18093
|
}
|
|
18059
18094
|
default(t) {
|
|
18060
18095
|
const n = typeof t == "function" ? t : () => t;
|
|
18061
|
-
return new
|
|
18096
|
+
return new Ha({
|
|
18062
18097
|
...ye(this._def),
|
|
18063
18098
|
innerType: this,
|
|
18064
18099
|
defaultValue: n,
|
|
@@ -18141,8 +18176,8 @@ class pn extends Ee {
|
|
|
18141
18176
|
_parse(t) {
|
|
18142
18177
|
if (this._def.coerce && (t.data = String(t.data)), this._getType(t) !== ee.string) {
|
|
18143
18178
|
const o = this._getOrReturnCtx(t);
|
|
18144
|
-
return
|
|
18145
|
-
code:
|
|
18179
|
+
return Z(o, {
|
|
18180
|
+
code: H.invalid_type,
|
|
18146
18181
|
expected: ee.string,
|
|
18147
18182
|
received: o.parsedType
|
|
18148
18183
|
}), me;
|
|
@@ -18151,8 +18186,8 @@ class pn extends Ee {
|
|
|
18151
18186
|
let i;
|
|
18152
18187
|
for (const o of this._def.checks)
|
|
18153
18188
|
if (o.kind === "min")
|
|
18154
|
-
t.data.length < o.value && (i = this._getOrReturnCtx(t, i),
|
|
18155
|
-
code:
|
|
18189
|
+
t.data.length < o.value && (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18190
|
+
code: H.too_small,
|
|
18156
18191
|
minimum: o.value,
|
|
18157
18192
|
type: "string",
|
|
18158
18193
|
inclusive: !0,
|
|
@@ -18160,8 +18195,8 @@ class pn extends Ee {
|
|
|
18160
18195
|
message: o.message
|
|
18161
18196
|
}), r.dirty());
|
|
18162
18197
|
else if (o.kind === "max")
|
|
18163
|
-
t.data.length > o.value && (i = this._getOrReturnCtx(t, i),
|
|
18164
|
-
code:
|
|
18198
|
+
t.data.length > o.value && (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18199
|
+
code: H.too_big,
|
|
18165
18200
|
maximum: o.value,
|
|
18166
18201
|
type: "string",
|
|
18167
18202
|
inclusive: !0,
|
|
@@ -18170,15 +18205,15 @@ class pn extends Ee {
|
|
|
18170
18205
|
}), r.dirty());
|
|
18171
18206
|
else if (o.kind === "length") {
|
|
18172
18207
|
const s = t.data.length > o.value, a = t.data.length < o.value;
|
|
18173
|
-
(s || a) && (i = this._getOrReturnCtx(t, i), s ?
|
|
18174
|
-
code:
|
|
18208
|
+
(s || a) && (i = this._getOrReturnCtx(t, i), s ? Z(i, {
|
|
18209
|
+
code: H.too_big,
|
|
18175
18210
|
maximum: o.value,
|
|
18176
18211
|
type: "string",
|
|
18177
18212
|
inclusive: !0,
|
|
18178
18213
|
exact: !0,
|
|
18179
18214
|
message: o.message
|
|
18180
|
-
}) : a &&
|
|
18181
|
-
code:
|
|
18215
|
+
}) : a && Z(i, {
|
|
18216
|
+
code: H.too_small,
|
|
18182
18217
|
minimum: o.value,
|
|
18183
18218
|
type: "string",
|
|
18184
18219
|
inclusive: !0,
|
|
@@ -18186,108 +18221,108 @@ class pn extends Ee {
|
|
|
18186
18221
|
message: o.message
|
|
18187
18222
|
}), r.dirty());
|
|
18188
18223
|
} else if (o.kind === "email")
|
|
18189
|
-
eP.test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18224
|
+
eP.test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18190
18225
|
validation: "email",
|
|
18191
|
-
code:
|
|
18226
|
+
code: H.invalid_string,
|
|
18192
18227
|
message: o.message
|
|
18193
18228
|
}), r.dirty());
|
|
18194
18229
|
else if (o.kind === "emoji")
|
|
18195
|
-
qs || (qs = new RegExp(tP, "u")), qs.test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18230
|
+
qs || (qs = new RegExp(tP, "u")), qs.test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18196
18231
|
validation: "emoji",
|
|
18197
|
-
code:
|
|
18232
|
+
code: H.invalid_string,
|
|
18198
18233
|
message: o.message
|
|
18199
18234
|
}), r.dirty());
|
|
18200
18235
|
else if (o.kind === "uuid")
|
|
18201
|
-
YC.test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18236
|
+
YC.test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18202
18237
|
validation: "uuid",
|
|
18203
|
-
code:
|
|
18238
|
+
code: H.invalid_string,
|
|
18204
18239
|
message: o.message
|
|
18205
18240
|
}), r.dirty());
|
|
18206
18241
|
else if (o.kind === "nanoid")
|
|
18207
|
-
ZC.test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18242
|
+
ZC.test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18208
18243
|
validation: "nanoid",
|
|
18209
|
-
code:
|
|
18244
|
+
code: H.invalid_string,
|
|
18210
18245
|
message: o.message
|
|
18211
18246
|
}), r.dirty());
|
|
18212
18247
|
else if (o.kind === "cuid")
|
|
18213
|
-
GC.test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18248
|
+
GC.test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18214
18249
|
validation: "cuid",
|
|
18215
|
-
code:
|
|
18250
|
+
code: H.invalid_string,
|
|
18216
18251
|
message: o.message
|
|
18217
18252
|
}), r.dirty());
|
|
18218
18253
|
else if (o.kind === "cuid2")
|
|
18219
|
-
qC.test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18254
|
+
qC.test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18220
18255
|
validation: "cuid2",
|
|
18221
|
-
code:
|
|
18256
|
+
code: H.invalid_string,
|
|
18222
18257
|
message: o.message
|
|
18223
18258
|
}), r.dirty());
|
|
18224
18259
|
else if (o.kind === "ulid")
|
|
18225
|
-
QC.test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18260
|
+
QC.test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18226
18261
|
validation: "ulid",
|
|
18227
|
-
code:
|
|
18262
|
+
code: H.invalid_string,
|
|
18228
18263
|
message: o.message
|
|
18229
18264
|
}), r.dirty());
|
|
18230
18265
|
else if (o.kind === "url")
|
|
18231
18266
|
try {
|
|
18232
18267
|
new URL(t.data);
|
|
18233
18268
|
} catch {
|
|
18234
|
-
i = this._getOrReturnCtx(t, i),
|
|
18269
|
+
i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18235
18270
|
validation: "url",
|
|
18236
|
-
code:
|
|
18271
|
+
code: H.invalid_string,
|
|
18237
18272
|
message: o.message
|
|
18238
18273
|
}), r.dirty();
|
|
18239
18274
|
}
|
|
18240
|
-
else o.kind === "regex" ? (o.regex.lastIndex = 0, o.regex.test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18275
|
+
else o.kind === "regex" ? (o.regex.lastIndex = 0, o.regex.test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18241
18276
|
validation: "regex",
|
|
18242
|
-
code:
|
|
18277
|
+
code: H.invalid_string,
|
|
18243
18278
|
message: o.message
|
|
18244
|
-
}), r.dirty())) : o.kind === "trim" ? t.data = t.data.trim() : o.kind === "includes" ? t.data.includes(o.value, o.position) || (i = this._getOrReturnCtx(t, i),
|
|
18245
|
-
code:
|
|
18279
|
+
}), r.dirty())) : o.kind === "trim" ? t.data = t.data.trim() : o.kind === "includes" ? t.data.includes(o.value, o.position) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18280
|
+
code: H.invalid_string,
|
|
18246
18281
|
validation: { includes: o.value, position: o.position },
|
|
18247
18282
|
message: o.message
|
|
18248
|
-
}), r.dirty()) : o.kind === "toLowerCase" ? t.data = t.data.toLowerCase() : o.kind === "toUpperCase" ? t.data = t.data.toUpperCase() : o.kind === "startsWith" ? t.data.startsWith(o.value) || (i = this._getOrReturnCtx(t, i),
|
|
18249
|
-
code:
|
|
18283
|
+
}), r.dirty()) : o.kind === "toLowerCase" ? t.data = t.data.toLowerCase() : o.kind === "toUpperCase" ? t.data = t.data.toUpperCase() : o.kind === "startsWith" ? t.data.startsWith(o.value) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18284
|
+
code: H.invalid_string,
|
|
18250
18285
|
validation: { startsWith: o.value },
|
|
18251
18286
|
message: o.message
|
|
18252
|
-
}), r.dirty()) : o.kind === "endsWith" ? t.data.endsWith(o.value) || (i = this._getOrReturnCtx(t, i),
|
|
18253
|
-
code:
|
|
18287
|
+
}), r.dirty()) : o.kind === "endsWith" ? t.data.endsWith(o.value) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18288
|
+
code: H.invalid_string,
|
|
18254
18289
|
validation: { endsWith: o.value },
|
|
18255
18290
|
message: o.message
|
|
18256
|
-
}), r.dirty()) : o.kind === "datetime" ? dP(o).test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18257
|
-
code:
|
|
18291
|
+
}), r.dirty()) : o.kind === "datetime" ? dP(o).test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18292
|
+
code: H.invalid_string,
|
|
18258
18293
|
validation: "datetime",
|
|
18259
18294
|
message: o.message
|
|
18260
|
-
}), r.dirty()) : o.kind === "date" ? cP.test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18261
|
-
code:
|
|
18295
|
+
}), r.dirty()) : o.kind === "date" ? cP.test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18296
|
+
code: H.invalid_string,
|
|
18262
18297
|
validation: "date",
|
|
18263
18298
|
message: o.message
|
|
18264
|
-
}), r.dirty()) : o.kind === "time" ? lP(o).test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18265
|
-
code:
|
|
18299
|
+
}), r.dirty()) : o.kind === "time" ? lP(o).test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18300
|
+
code: H.invalid_string,
|
|
18266
18301
|
validation: "time",
|
|
18267
18302
|
message: o.message
|
|
18268
|
-
}), r.dirty()) : o.kind === "duration" ? JC.test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18303
|
+
}), r.dirty()) : o.kind === "duration" ? JC.test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18269
18304
|
validation: "duration",
|
|
18270
|
-
code:
|
|
18305
|
+
code: H.invalid_string,
|
|
18271
18306
|
message: o.message
|
|
18272
|
-
}), r.dirty()) : o.kind === "ip" ? uP(t.data, o.version) || (i = this._getOrReturnCtx(t, i),
|
|
18307
|
+
}), r.dirty()) : o.kind === "ip" ? uP(t.data, o.version) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18273
18308
|
validation: "ip",
|
|
18274
|
-
code:
|
|
18309
|
+
code: H.invalid_string,
|
|
18275
18310
|
message: o.message
|
|
18276
|
-
}), r.dirty()) : o.kind === "jwt" ? fP(t.data, o.alg) || (i = this._getOrReturnCtx(t, i),
|
|
18311
|
+
}), r.dirty()) : o.kind === "jwt" ? fP(t.data, o.alg) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18277
18312
|
validation: "jwt",
|
|
18278
|
-
code:
|
|
18313
|
+
code: H.invalid_string,
|
|
18279
18314
|
message: o.message
|
|
18280
|
-
}), r.dirty()) : o.kind === "cidr" ? pP(t.data, o.version) || (i = this._getOrReturnCtx(t, i),
|
|
18315
|
+
}), r.dirty()) : o.kind === "cidr" ? pP(t.data, o.version) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18281
18316
|
validation: "cidr",
|
|
18282
|
-
code:
|
|
18317
|
+
code: H.invalid_string,
|
|
18283
18318
|
message: o.message
|
|
18284
|
-
}), r.dirty()) : o.kind === "base64" ? sP.test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18319
|
+
}), r.dirty()) : o.kind === "base64" ? sP.test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18285
18320
|
validation: "base64",
|
|
18286
|
-
code:
|
|
18321
|
+
code: H.invalid_string,
|
|
18287
18322
|
message: o.message
|
|
18288
|
-
}), r.dirty()) : o.kind === "base64url" ? aP.test(t.data) || (i = this._getOrReturnCtx(t, i),
|
|
18323
|
+
}), r.dirty()) : o.kind === "base64url" ? aP.test(t.data) || (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18289
18324
|
validation: "base64url",
|
|
18290
|
-
code:
|
|
18325
|
+
code: H.invalid_string,
|
|
18291
18326
|
message: o.message
|
|
18292
18327
|
}), r.dirty()) : ke.assertNever(o);
|
|
18293
18328
|
return { status: r.value, value: t.data };
|
|
@@ -18295,7 +18330,7 @@ class pn extends Ee {
|
|
|
18295
18330
|
_regex(t, n, r) {
|
|
18296
18331
|
return this.refinement((i) => t.test(i), {
|
|
18297
18332
|
validation: n,
|
|
18298
|
-
code:
|
|
18333
|
+
code: H.invalid_string,
|
|
18299
18334
|
...ne.errToObj(r)
|
|
18300
18335
|
});
|
|
18301
18336
|
}
|
|
@@ -18531,8 +18566,8 @@ class Or extends Ee {
|
|
|
18531
18566
|
_parse(t) {
|
|
18532
18567
|
if (this._def.coerce && (t.data = Number(t.data)), this._getType(t) !== ee.number) {
|
|
18533
18568
|
const o = this._getOrReturnCtx(t);
|
|
18534
|
-
return
|
|
18535
|
-
code:
|
|
18569
|
+
return Z(o, {
|
|
18570
|
+
code: H.invalid_type,
|
|
18536
18571
|
expected: ee.number,
|
|
18537
18572
|
received: o.parsedType
|
|
18538
18573
|
}), me;
|
|
@@ -18540,31 +18575,31 @@ class Or extends Ee {
|
|
|
18540
18575
|
let r;
|
|
18541
18576
|
const i = new ut();
|
|
18542
18577
|
for (const o of this._def.checks)
|
|
18543
|
-
o.kind === "int" ? ke.isInteger(t.data) || (r = this._getOrReturnCtx(t, r),
|
|
18544
|
-
code:
|
|
18578
|
+
o.kind === "int" ? ke.isInteger(t.data) || (r = this._getOrReturnCtx(t, r), Z(r, {
|
|
18579
|
+
code: H.invalid_type,
|
|
18545
18580
|
expected: "integer",
|
|
18546
18581
|
received: "float",
|
|
18547
18582
|
message: o.message
|
|
18548
|
-
}), i.dirty()) : o.kind === "min" ? (o.inclusive ? t.data < o.value : t.data <= o.value) && (r = this._getOrReturnCtx(t, r),
|
|
18549
|
-
code:
|
|
18583
|
+
}), i.dirty()) : o.kind === "min" ? (o.inclusive ? t.data < o.value : t.data <= o.value) && (r = this._getOrReturnCtx(t, r), Z(r, {
|
|
18584
|
+
code: H.too_small,
|
|
18550
18585
|
minimum: o.value,
|
|
18551
18586
|
type: "number",
|
|
18552
18587
|
inclusive: o.inclusive,
|
|
18553
18588
|
exact: !1,
|
|
18554
18589
|
message: o.message
|
|
18555
|
-
}), i.dirty()) : o.kind === "max" ? (o.inclusive ? t.data > o.value : t.data >= o.value) && (r = this._getOrReturnCtx(t, r),
|
|
18556
|
-
code:
|
|
18590
|
+
}), i.dirty()) : o.kind === "max" ? (o.inclusive ? t.data > o.value : t.data >= o.value) && (r = this._getOrReturnCtx(t, r), Z(r, {
|
|
18591
|
+
code: H.too_big,
|
|
18557
18592
|
maximum: o.value,
|
|
18558
18593
|
type: "number",
|
|
18559
18594
|
inclusive: o.inclusive,
|
|
18560
18595
|
exact: !1,
|
|
18561
18596
|
message: o.message
|
|
18562
|
-
}), i.dirty()) : o.kind === "multipleOf" ? mP(t.data, o.value) !== 0 && (r = this._getOrReturnCtx(t, r),
|
|
18563
|
-
code:
|
|
18597
|
+
}), i.dirty()) : o.kind === "multipleOf" ? mP(t.data, o.value) !== 0 && (r = this._getOrReturnCtx(t, r), Z(r, {
|
|
18598
|
+
code: H.not_multiple_of,
|
|
18564
18599
|
multipleOf: o.value,
|
|
18565
18600
|
message: o.message
|
|
18566
|
-
}), i.dirty()) : o.kind === "finite" ? Number.isFinite(t.data) || (r = this._getOrReturnCtx(t, r),
|
|
18567
|
-
code:
|
|
18601
|
+
}), i.dirty()) : o.kind === "finite" ? Number.isFinite(t.data) || (r = this._getOrReturnCtx(t, r), Z(r, {
|
|
18602
|
+
code: H.not_finite,
|
|
18568
18603
|
message: o.message
|
|
18569
18604
|
}), i.dirty()) : ke.assertNever(o);
|
|
18570
18605
|
return { status: i.value, value: t.data };
|
|
@@ -18712,20 +18747,20 @@ class pi extends Ee {
|
|
|
18712
18747
|
let r;
|
|
18713
18748
|
const i = new ut();
|
|
18714
18749
|
for (const o of this._def.checks)
|
|
18715
|
-
o.kind === "min" ? (o.inclusive ? t.data < o.value : t.data <= o.value) && (r = this._getOrReturnCtx(t, r),
|
|
18716
|
-
code:
|
|
18750
|
+
o.kind === "min" ? (o.inclusive ? t.data < o.value : t.data <= o.value) && (r = this._getOrReturnCtx(t, r), Z(r, {
|
|
18751
|
+
code: H.too_small,
|
|
18717
18752
|
type: "bigint",
|
|
18718
18753
|
minimum: o.value,
|
|
18719
18754
|
inclusive: o.inclusive,
|
|
18720
18755
|
message: o.message
|
|
18721
|
-
}), i.dirty()) : o.kind === "max" ? (o.inclusive ? t.data > o.value : t.data >= o.value) && (r = this._getOrReturnCtx(t, r),
|
|
18722
|
-
code:
|
|
18756
|
+
}), i.dirty()) : o.kind === "max" ? (o.inclusive ? t.data > o.value : t.data >= o.value) && (r = this._getOrReturnCtx(t, r), Z(r, {
|
|
18757
|
+
code: H.too_big,
|
|
18723
18758
|
type: "bigint",
|
|
18724
18759
|
maximum: o.value,
|
|
18725
18760
|
inclusive: o.inclusive,
|
|
18726
18761
|
message: o.message
|
|
18727
|
-
}), i.dirty()) : o.kind === "multipleOf" ? t.data % o.value !== BigInt(0) && (r = this._getOrReturnCtx(t, r),
|
|
18728
|
-
code:
|
|
18762
|
+
}), i.dirty()) : o.kind === "multipleOf" ? t.data % o.value !== BigInt(0) && (r = this._getOrReturnCtx(t, r), Z(r, {
|
|
18763
|
+
code: H.not_multiple_of,
|
|
18729
18764
|
multipleOf: o.value,
|
|
18730
18765
|
message: o.message
|
|
18731
18766
|
}), i.dirty()) : ke.assertNever(o);
|
|
@@ -18733,8 +18768,8 @@ class pi extends Ee {
|
|
|
18733
18768
|
}
|
|
18734
18769
|
_getInvalidInput(t) {
|
|
18735
18770
|
const n = this._getOrReturnCtx(t);
|
|
18736
|
-
return
|
|
18737
|
-
code:
|
|
18771
|
+
return Z(n, {
|
|
18772
|
+
code: H.invalid_type,
|
|
18738
18773
|
expected: ee.bigint,
|
|
18739
18774
|
received: n.parsedType
|
|
18740
18775
|
}), me;
|
|
@@ -18833,8 +18868,8 @@ class Va extends Ee {
|
|
|
18833
18868
|
_parse(t) {
|
|
18834
18869
|
if (this._def.coerce && (t.data = !!t.data), this._getType(t) !== ee.boolean) {
|
|
18835
18870
|
const r = this._getOrReturnCtx(t);
|
|
18836
|
-
return
|
|
18837
|
-
code:
|
|
18871
|
+
return Z(r, {
|
|
18872
|
+
code: H.invalid_type,
|
|
18838
18873
|
expected: ee.boolean,
|
|
18839
18874
|
received: r.parsedType
|
|
18840
18875
|
}), me;
|
|
@@ -18851,30 +18886,30 @@ class Bo extends Ee {
|
|
|
18851
18886
|
_parse(t) {
|
|
18852
18887
|
if (this._def.coerce && (t.data = new Date(t.data)), this._getType(t) !== ee.date) {
|
|
18853
18888
|
const o = this._getOrReturnCtx(t);
|
|
18854
|
-
return
|
|
18855
|
-
code:
|
|
18889
|
+
return Z(o, {
|
|
18890
|
+
code: H.invalid_type,
|
|
18856
18891
|
expected: ee.date,
|
|
18857
18892
|
received: o.parsedType
|
|
18858
18893
|
}), me;
|
|
18859
18894
|
}
|
|
18860
18895
|
if (Number.isNaN(t.data.getTime())) {
|
|
18861
18896
|
const o = this._getOrReturnCtx(t);
|
|
18862
|
-
return
|
|
18863
|
-
code:
|
|
18897
|
+
return Z(o, {
|
|
18898
|
+
code: H.invalid_date
|
|
18864
18899
|
}), me;
|
|
18865
18900
|
}
|
|
18866
18901
|
const r = new ut();
|
|
18867
18902
|
let i;
|
|
18868
18903
|
for (const o of this._def.checks)
|
|
18869
|
-
o.kind === "min" ? t.data.getTime() < o.value && (i = this._getOrReturnCtx(t, i),
|
|
18870
|
-
code:
|
|
18904
|
+
o.kind === "min" ? t.data.getTime() < o.value && (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18905
|
+
code: H.too_small,
|
|
18871
18906
|
message: o.message,
|
|
18872
18907
|
inclusive: !0,
|
|
18873
18908
|
exact: !1,
|
|
18874
18909
|
minimum: o.value,
|
|
18875
18910
|
type: "date"
|
|
18876
|
-
}), r.dirty()) : o.kind === "max" ? t.data.getTime() > o.value && (i = this._getOrReturnCtx(t, i),
|
|
18877
|
-
code:
|
|
18911
|
+
}), r.dirty()) : o.kind === "max" ? t.data.getTime() > o.value && (i = this._getOrReturnCtx(t, i), Z(i, {
|
|
18912
|
+
code: H.too_big,
|
|
18878
18913
|
message: o.message,
|
|
18879
18914
|
inclusive: !0,
|
|
18880
18915
|
exact: !1,
|
|
@@ -18929,8 +18964,8 @@ class mu extends Ee {
|
|
|
18929
18964
|
_parse(t) {
|
|
18930
18965
|
if (this._getType(t) !== ee.symbol) {
|
|
18931
18966
|
const r = this._getOrReturnCtx(t);
|
|
18932
|
-
return
|
|
18933
|
-
code:
|
|
18967
|
+
return Z(r, {
|
|
18968
|
+
code: H.invalid_type,
|
|
18934
18969
|
expected: ee.symbol,
|
|
18935
18970
|
received: r.parsedType
|
|
18936
18971
|
}), me;
|
|
@@ -18946,8 +18981,8 @@ class hu extends Ee {
|
|
|
18946
18981
|
_parse(t) {
|
|
18947
18982
|
if (this._getType(t) !== ee.undefined) {
|
|
18948
18983
|
const r = this._getOrReturnCtx(t);
|
|
18949
|
-
return
|
|
18950
|
-
code:
|
|
18984
|
+
return Z(r, {
|
|
18985
|
+
code: H.invalid_type,
|
|
18951
18986
|
expected: ee.undefined,
|
|
18952
18987
|
received: r.parsedType
|
|
18953
18988
|
}), me;
|
|
@@ -18963,8 +18998,8 @@ class gu extends Ee {
|
|
|
18963
18998
|
_parse(t) {
|
|
18964
18999
|
if (this._getType(t) !== ee.null) {
|
|
18965
19000
|
const r = this._getOrReturnCtx(t);
|
|
18966
|
-
return
|
|
18967
|
-
code:
|
|
19001
|
+
return Z(r, {
|
|
19002
|
+
code: H.invalid_type,
|
|
18968
19003
|
expected: ee.null,
|
|
18969
19004
|
received: r.parsedType
|
|
18970
19005
|
}), me;
|
|
@@ -19003,8 +19038,8 @@ bu.create = (e) => new bu({
|
|
|
19003
19038
|
class _n extends Ee {
|
|
19004
19039
|
_parse(t) {
|
|
19005
19040
|
const n = this._getOrReturnCtx(t);
|
|
19006
|
-
return
|
|
19007
|
-
code:
|
|
19041
|
+
return Z(n, {
|
|
19042
|
+
code: H.invalid_type,
|
|
19008
19043
|
expected: ee.never,
|
|
19009
19044
|
received: n.parsedType
|
|
19010
19045
|
}), me;
|
|
@@ -19018,8 +19053,8 @@ class vu extends Ee {
|
|
|
19018
19053
|
_parse(t) {
|
|
19019
19054
|
if (this._getType(t) !== ee.undefined) {
|
|
19020
19055
|
const r = this._getOrReturnCtx(t);
|
|
19021
|
-
return
|
|
19022
|
-
code:
|
|
19056
|
+
return Z(r, {
|
|
19057
|
+
code: H.invalid_type,
|
|
19023
19058
|
expected: ee.void,
|
|
19024
19059
|
received: r.parsedType
|
|
19025
19060
|
}), me;
|
|
@@ -19035,15 +19070,15 @@ class Ut extends Ee {
|
|
|
19035
19070
|
_parse(t) {
|
|
19036
19071
|
const { ctx: n, status: r } = this._processInputParams(t), i = this._def;
|
|
19037
19072
|
if (n.parsedType !== ee.array)
|
|
19038
|
-
return
|
|
19039
|
-
code:
|
|
19073
|
+
return Z(n, {
|
|
19074
|
+
code: H.invalid_type,
|
|
19040
19075
|
expected: ee.array,
|
|
19041
19076
|
received: n.parsedType
|
|
19042
19077
|
}), me;
|
|
19043
19078
|
if (i.exactLength !== null) {
|
|
19044
19079
|
const s = n.data.length > i.exactLength.value, a = n.data.length < i.exactLength.value;
|
|
19045
|
-
(s || a) && (
|
|
19046
|
-
code: s ?
|
|
19080
|
+
(s || a) && (Z(n, {
|
|
19081
|
+
code: s ? H.too_big : H.too_small,
|
|
19047
19082
|
minimum: a ? i.exactLength.value : void 0,
|
|
19048
19083
|
maximum: s ? i.exactLength.value : void 0,
|
|
19049
19084
|
type: "array",
|
|
@@ -19052,15 +19087,15 @@ class Ut extends Ee {
|
|
|
19052
19087
|
message: i.exactLength.message
|
|
19053
19088
|
}), r.dirty());
|
|
19054
19089
|
}
|
|
19055
|
-
if (i.minLength !== null && n.data.length < i.minLength.value && (
|
|
19056
|
-
code:
|
|
19090
|
+
if (i.minLength !== null && n.data.length < i.minLength.value && (Z(n, {
|
|
19091
|
+
code: H.too_small,
|
|
19057
19092
|
minimum: i.minLength.value,
|
|
19058
19093
|
type: "array",
|
|
19059
19094
|
inclusive: !0,
|
|
19060
19095
|
exact: !1,
|
|
19061
19096
|
message: i.minLength.message
|
|
19062
|
-
}), r.dirty()), i.maxLength !== null && n.data.length > i.maxLength.value && (
|
|
19063
|
-
code:
|
|
19097
|
+
}), r.dirty()), i.maxLength !== null && n.data.length > i.maxLength.value && (Z(n, {
|
|
19098
|
+
code: H.too_big,
|
|
19064
19099
|
maximum: i.maxLength.value,
|
|
19065
19100
|
type: "array",
|
|
19066
19101
|
inclusive: !0,
|
|
@@ -19133,8 +19168,8 @@ class Ve extends Ee {
|
|
|
19133
19168
|
_parse(t) {
|
|
19134
19169
|
if (this._getType(t) !== ee.object) {
|
|
19135
19170
|
const l = this._getOrReturnCtx(t);
|
|
19136
|
-
return
|
|
19137
|
-
code:
|
|
19171
|
+
return Z(l, {
|
|
19172
|
+
code: H.invalid_type,
|
|
19138
19173
|
expected: ee.object,
|
|
19139
19174
|
received: l.parsedType
|
|
19140
19175
|
}), me;
|
|
@@ -19161,8 +19196,8 @@ class Ve extends Ee {
|
|
|
19161
19196
|
value: { status: "valid", value: i.data[d] }
|
|
19162
19197
|
});
|
|
19163
19198
|
else if (l === "strict")
|
|
19164
|
-
a.length > 0 && (
|
|
19165
|
-
code:
|
|
19199
|
+
a.length > 0 && (Z(i, {
|
|
19200
|
+
code: H.unrecognized_keys,
|
|
19166
19201
|
keys: a
|
|
19167
19202
|
}), r.dirty());
|
|
19168
19203
|
else if (l !== "strip") throw new Error("Internal ZodObject error: invalid unknownKeys value.");
|
|
@@ -19419,8 +19454,8 @@ class Wo extends Ee {
|
|
|
19419
19454
|
if (a.result.status === "dirty")
|
|
19420
19455
|
return n.common.issues.push(...a.ctx.common.issues), a.result;
|
|
19421
19456
|
const s = o.map((a) => new Gt(a.ctx.common.issues));
|
|
19422
|
-
return
|
|
19423
|
-
code:
|
|
19457
|
+
return Z(n, {
|
|
19458
|
+
code: H.invalid_union,
|
|
19424
19459
|
unionErrors: s
|
|
19425
19460
|
}), me;
|
|
19426
19461
|
}
|
|
@@ -19466,8 +19501,8 @@ class Wo extends Ee {
|
|
|
19466
19501
|
if (o)
|
|
19467
19502
|
return n.common.issues.push(...o.ctx.common.issues), o.result;
|
|
19468
19503
|
const a = s.map((c) => new Gt(c));
|
|
19469
|
-
return
|
|
19470
|
-
code:
|
|
19504
|
+
return Z(n, {
|
|
19505
|
+
code: H.invalid_union,
|
|
19471
19506
|
unionErrors: a
|
|
19472
19507
|
}), me;
|
|
19473
19508
|
}
|
|
@@ -19481,14 +19516,14 @@ Wo.create = (e, t) => new Wo({
|
|
|
19481
19516
|
typeName: he.ZodUnion,
|
|
19482
19517
|
...ye(t)
|
|
19483
19518
|
});
|
|
19484
|
-
function
|
|
19519
|
+
function ja(e, t) {
|
|
19485
19520
|
const n = on(e), r = on(t);
|
|
19486
19521
|
if (e === t)
|
|
19487
19522
|
return { valid: !0, data: e };
|
|
19488
19523
|
if (n === ee.object && r === ee.object) {
|
|
19489
19524
|
const i = ke.objectKeys(t), o = ke.objectKeys(e).filter((a) => i.indexOf(a) !== -1), s = { ...e, ...t };
|
|
19490
19525
|
for (const a of o) {
|
|
19491
|
-
const c =
|
|
19526
|
+
const c = ja(e[a], t[a]);
|
|
19492
19527
|
if (!c.valid)
|
|
19493
19528
|
return { valid: !1 };
|
|
19494
19529
|
s[a] = c.data;
|
|
@@ -19499,7 +19534,7 @@ function Ha(e, t) {
|
|
|
19499
19534
|
return { valid: !1 };
|
|
19500
19535
|
const i = [];
|
|
19501
19536
|
for (let o = 0; o < e.length; o++) {
|
|
19502
|
-
const s = e[o], a = t[o], c =
|
|
19537
|
+
const s = e[o], a = t[o], c = ja(s, a);
|
|
19503
19538
|
if (!c.valid)
|
|
19504
19539
|
return { valid: !1 };
|
|
19505
19540
|
i.push(c.data);
|
|
@@ -19512,9 +19547,9 @@ class $o extends Ee {
|
|
|
19512
19547
|
const { status: n, ctx: r } = this._processInputParams(t), i = (o, s) => {
|
|
19513
19548
|
if (uu(o) || uu(s))
|
|
19514
19549
|
return me;
|
|
19515
|
-
const a =
|
|
19516
|
-
return a.valid ? ((fu(o) || fu(s)) && n.dirty(), { status: n.value, value: a.data }) : (
|
|
19517
|
-
code:
|
|
19550
|
+
const a = ja(o.value, s.value);
|
|
19551
|
+
return a.valid ? ((fu(o) || fu(s)) && n.dirty(), { status: n.value, value: a.data }) : (Z(r, {
|
|
19552
|
+
code: H.invalid_intersection_types
|
|
19518
19553
|
}), me);
|
|
19519
19554
|
};
|
|
19520
19555
|
return r.common.async ? Promise.all([
|
|
@@ -19549,21 +19584,21 @@ class Gn extends Ee {
|
|
|
19549
19584
|
_parse(t) {
|
|
19550
19585
|
const { status: n, ctx: r } = this._processInputParams(t);
|
|
19551
19586
|
if (r.parsedType !== ee.array)
|
|
19552
|
-
return
|
|
19553
|
-
code:
|
|
19587
|
+
return Z(r, {
|
|
19588
|
+
code: H.invalid_type,
|
|
19554
19589
|
expected: ee.array,
|
|
19555
19590
|
received: r.parsedType
|
|
19556
19591
|
}), me;
|
|
19557
19592
|
if (r.data.length < this._def.items.length)
|
|
19558
|
-
return
|
|
19559
|
-
code:
|
|
19593
|
+
return Z(r, {
|
|
19594
|
+
code: H.too_small,
|
|
19560
19595
|
minimum: this._def.items.length,
|
|
19561
19596
|
inclusive: !0,
|
|
19562
19597
|
exact: !1,
|
|
19563
19598
|
type: "array"
|
|
19564
19599
|
}), me;
|
|
19565
|
-
!this._def.rest && r.data.length > this._def.items.length && (
|
|
19566
|
-
code:
|
|
19600
|
+
!this._def.rest && r.data.length > this._def.items.length && (Z(r, {
|
|
19601
|
+
code: H.too_big,
|
|
19567
19602
|
maximum: this._def.items.length,
|
|
19568
19603
|
inclusive: !0,
|
|
19569
19604
|
exact: !1,
|
|
@@ -19605,8 +19640,8 @@ class wu extends Ee {
|
|
|
19605
19640
|
_parse(t) {
|
|
19606
19641
|
const { status: n, ctx: r } = this._processInputParams(t);
|
|
19607
19642
|
if (r.parsedType !== ee.map)
|
|
19608
|
-
return
|
|
19609
|
-
code:
|
|
19643
|
+
return Z(r, {
|
|
19644
|
+
code: H.invalid_type,
|
|
19610
19645
|
expected: ee.map,
|
|
19611
19646
|
received: r.parsedType
|
|
19612
19647
|
}), me;
|
|
@@ -19647,21 +19682,21 @@ class mi extends Ee {
|
|
|
19647
19682
|
_parse(t) {
|
|
19648
19683
|
const { status: n, ctx: r } = this._processInputParams(t);
|
|
19649
19684
|
if (r.parsedType !== ee.set)
|
|
19650
|
-
return
|
|
19651
|
-
code:
|
|
19685
|
+
return Z(r, {
|
|
19686
|
+
code: H.invalid_type,
|
|
19652
19687
|
expected: ee.set,
|
|
19653
19688
|
received: r.parsedType
|
|
19654
19689
|
}), me;
|
|
19655
19690
|
const i = this._def;
|
|
19656
|
-
i.minSize !== null && r.data.size < i.minSize.value && (
|
|
19657
|
-
code:
|
|
19691
|
+
i.minSize !== null && r.data.size < i.minSize.value && (Z(r, {
|
|
19692
|
+
code: H.too_small,
|
|
19658
19693
|
minimum: i.minSize.value,
|
|
19659
19694
|
type: "set",
|
|
19660
19695
|
inclusive: !0,
|
|
19661
19696
|
exact: !1,
|
|
19662
19697
|
message: i.minSize.message
|
|
19663
|
-
}), n.dirty()), i.maxSize !== null && r.data.size > i.maxSize.value && (
|
|
19664
|
-
code:
|
|
19698
|
+
}), n.dirty()), i.maxSize !== null && r.data.size > i.maxSize.value && (Z(r, {
|
|
19699
|
+
code: H.too_big,
|
|
19665
19700
|
maximum: i.maxSize.value,
|
|
19666
19701
|
type: "set",
|
|
19667
19702
|
inclusive: !0,
|
|
@@ -19725,9 +19760,9 @@ class Su extends Ee {
|
|
|
19725
19760
|
_parse(t) {
|
|
19726
19761
|
if (t.data !== this._def.value) {
|
|
19727
19762
|
const n = this._getOrReturnCtx(t);
|
|
19728
|
-
return
|
|
19763
|
+
return Z(n, {
|
|
19729
19764
|
received: n.data,
|
|
19730
|
-
code:
|
|
19765
|
+
code: H.invalid_literal,
|
|
19731
19766
|
expected: this._def.value
|
|
19732
19767
|
}), me;
|
|
19733
19768
|
}
|
|
@@ -19753,17 +19788,17 @@ class Nr extends Ee {
|
|
|
19753
19788
|
_parse(t) {
|
|
19754
19789
|
if (typeof t.data != "string") {
|
|
19755
19790
|
const n = this._getOrReturnCtx(t), r = this._def.values;
|
|
19756
|
-
return
|
|
19791
|
+
return Z(n, {
|
|
19757
19792
|
expected: ke.joinValues(r),
|
|
19758
19793
|
received: n.parsedType,
|
|
19759
|
-
code:
|
|
19794
|
+
code: H.invalid_type
|
|
19760
19795
|
}), me;
|
|
19761
19796
|
}
|
|
19762
19797
|
if (this._cache || (this._cache = new Set(this._def.values)), !this._cache.has(t.data)) {
|
|
19763
19798
|
const n = this._getOrReturnCtx(t), r = this._def.values;
|
|
19764
|
-
return
|
|
19799
|
+
return Z(n, {
|
|
19765
19800
|
received: n.data,
|
|
19766
|
-
code:
|
|
19801
|
+
code: H.invalid_enum_value,
|
|
19767
19802
|
options: r
|
|
19768
19803
|
}), me;
|
|
19769
19804
|
}
|
|
@@ -19809,17 +19844,17 @@ class Tu extends Ee {
|
|
|
19809
19844
|
const n = ke.getValidEnumValues(this._def.values), r = this._getOrReturnCtx(t);
|
|
19810
19845
|
if (r.parsedType !== ee.string && r.parsedType !== ee.number) {
|
|
19811
19846
|
const i = ke.objectValues(n);
|
|
19812
|
-
return
|
|
19847
|
+
return Z(r, {
|
|
19813
19848
|
expected: ke.joinValues(i),
|
|
19814
19849
|
received: r.parsedType,
|
|
19815
|
-
code:
|
|
19850
|
+
code: H.invalid_type
|
|
19816
19851
|
}), me;
|
|
19817
19852
|
}
|
|
19818
19853
|
if (this._cache || (this._cache = new Set(ke.getValidEnumValues(this._def.values))), !this._cache.has(t.data)) {
|
|
19819
19854
|
const i = ke.objectValues(n);
|
|
19820
|
-
return
|
|
19855
|
+
return Z(r, {
|
|
19821
19856
|
received: r.data,
|
|
19822
|
-
code:
|
|
19857
|
+
code: H.invalid_enum_value,
|
|
19823
19858
|
options: i
|
|
19824
19859
|
}), me;
|
|
19825
19860
|
}
|
|
@@ -19841,8 +19876,8 @@ class Vo extends Ee {
|
|
|
19841
19876
|
_parse(t) {
|
|
19842
19877
|
const { ctx: n } = this._processInputParams(t);
|
|
19843
19878
|
if (n.parsedType !== ee.promise && n.common.async === !1)
|
|
19844
|
-
return
|
|
19845
|
-
code:
|
|
19879
|
+
return Z(n, {
|
|
19880
|
+
code: H.invalid_type,
|
|
19846
19881
|
expected: ee.promise,
|
|
19847
19882
|
received: n.parsedType
|
|
19848
19883
|
}), me;
|
|
@@ -19868,7 +19903,7 @@ class Rr extends Ee {
|
|
|
19868
19903
|
_parse(t) {
|
|
19869
19904
|
const { status: n, ctx: r } = this._processInputParams(t), i = this._def.effect || null, o = {
|
|
19870
19905
|
addIssue: (s) => {
|
|
19871
|
-
|
|
19906
|
+
Z(r, s), s.fatal ? n.abort() : n.dirty();
|
|
19872
19907
|
},
|
|
19873
19908
|
get path() {
|
|
19874
19909
|
return r.path;
|
|
@@ -19976,7 +20011,7 @@ Lr.create = (e, t) => new Lr({
|
|
|
19976
20011
|
typeName: he.ZodNullable,
|
|
19977
20012
|
...ye(t)
|
|
19978
20013
|
});
|
|
19979
|
-
class
|
|
20014
|
+
class Ha extends Ee {
|
|
19980
20015
|
_parse(t) {
|
|
19981
20016
|
const { ctx: n } = this._processInputParams(t);
|
|
19982
20017
|
let r = n.data;
|
|
@@ -19990,7 +20025,7 @@ class ja extends Ee {
|
|
|
19990
20025
|
return this._def.innerType;
|
|
19991
20026
|
}
|
|
19992
20027
|
}
|
|
19993
|
-
|
|
20028
|
+
Ha.create = (e, t) => new Ha({
|
|
19994
20029
|
innerType: e,
|
|
19995
20030
|
typeName: he.ZodDefault,
|
|
19996
20031
|
defaultValue: typeof t.default == "function" ? t.default : () => t.default,
|
|
@@ -20043,8 +20078,8 @@ class xu extends Ee {
|
|
|
20043
20078
|
_parse(t) {
|
|
20044
20079
|
if (this._getType(t) !== ee.nan) {
|
|
20045
20080
|
const r = this._getOrReturnCtx(t);
|
|
20046
|
-
return
|
|
20047
|
-
code:
|
|
20081
|
+
return Z(r, {
|
|
20082
|
+
code: H.invalid_type,
|
|
20048
20083
|
expected: ee.nan,
|
|
20049
20084
|
received: r.parsedType
|
|
20050
20085
|
}), me;
|
|
@@ -20163,7 +20198,7 @@ async function SP(e) {
|
|
|
20163
20198
|
}
|
|
20164
20199
|
const TP = (e) => {
|
|
20165
20200
|
const t = e == null ? void 0 : e.platformApiBase;
|
|
20166
|
-
return
|
|
20201
|
+
return jC({
|
|
20167
20202
|
queryKey: ["iccandle-user-usage", t],
|
|
20168
20203
|
queryFn: () => SP(t),
|
|
20169
20204
|
...e
|
|
@@ -20215,10 +20250,10 @@ function PP({
|
|
|
20215
20250
|
const B = Te([]), O = Ne(
|
|
20216
20251
|
() => new WC(B, "selector", l, c.tickWebSocketUrl),
|
|
20217
20252
|
[c.tickWebSocketUrl, l]
|
|
20218
|
-
), { data:
|
|
20253
|
+
), { data: j, isLoading: M } = TP({
|
|
20219
20254
|
enabled: !0,
|
|
20220
20255
|
platformApiBase: c.platformApiBase
|
|
20221
|
-
}), z = !M &&
|
|
20256
|
+
}), z = !M && j ? j.perDayUsage >= j.maxPerDayUsage : !1;
|
|
20222
20257
|
ae(() => {
|
|
20223
20258
|
i(_);
|
|
20224
20259
|
}, [_, i]), ae(() => {
|
|
@@ -20364,10 +20399,10 @@ function PP({
|
|
|
20364
20399
|
className: "web-trading-widget-advanced__scan-limit-badge",
|
|
20365
20400
|
children: [
|
|
20366
20401
|
/* @__PURE__ */ u("span", { className: "web-trading-widget-advanced__scan-limit-badge-title", children: "Daily scan limit reached" }),
|
|
20367
|
-
|
|
20368
|
-
|
|
20402
|
+
j && /* @__PURE__ */ I("span", { className: "web-trading-widget-advanced__scan-limit-badge-count", children: [
|
|
20403
|
+
j.perDayUsage,
|
|
20369
20404
|
" of ",
|
|
20370
|
-
|
|
20405
|
+
j.maxPerDayUsage,
|
|
20371
20406
|
" scans used today"
|
|
20372
20407
|
] })
|
|
20373
20408
|
]
|
|
@@ -20417,7 +20452,7 @@ function kP({
|
|
|
20417
20452
|
ae(() => {
|
|
20418
20453
|
y || A(ro(T, 2));
|
|
20419
20454
|
}, [y, T]);
|
|
20420
|
-
const C = Number(Yt(Zt(e))), R = t !== null ? Ae(t, C) : "—", F = n !== null ? Ae(n, C) : "—", O = !s && !a && c !== "" && (t !== null && n !== null),
|
|
20455
|
+
const C = Number(Yt(Zt(e))), R = t !== null ? Ae(t, C) : "—", F = n !== null ? Ae(n, C) : "—", O = !s && !a && c !== "" && (t !== null && n !== null), j = (D) => {
|
|
20421
20456
|
const L = Number(x), N = Number.isFinite(L) && L > 0 ? L : r, $ = Math.max(o, N + D * i), U = ro($, 2);
|
|
20422
20457
|
A(U), _($);
|
|
20423
20458
|
}, M = () => {
|
|
@@ -20489,7 +20524,7 @@ function kP({
|
|
|
20489
20524
|
"aria-label": b("WebTrading.decreaseVolume"),
|
|
20490
20525
|
disabled: !O,
|
|
20491
20526
|
className: "web-trading-widget-mini-order__volume-btn",
|
|
20492
|
-
onClick: () =>
|
|
20527
|
+
onClick: () => j(-1),
|
|
20493
20528
|
children: /* @__PURE__ */ u(
|
|
20494
20529
|
Po,
|
|
20495
20530
|
{
|
|
@@ -20518,7 +20553,7 @@ function kP({
|
|
|
20518
20553
|
"aria-label": b("WebTrading.increaseVolume"),
|
|
20519
20554
|
disabled: !O,
|
|
20520
20555
|
className: "web-trading-widget-mini-order__volume-btn",
|
|
20521
|
-
onClick: () =>
|
|
20556
|
+
onClick: () => j(1),
|
|
20522
20557
|
children: /* @__PURE__ */ u(
|
|
20523
20558
|
ca,
|
|
20524
20559
|
{
|
|
@@ -20606,16 +20641,16 @@ function OP({
|
|
|
20606
20641
|
onClose: m,
|
|
20607
20642
|
onPlaceOrder: p
|
|
20608
20643
|
}) {
|
|
20609
|
-
const { t: b } = Ue(), [h, g] = J(!0), [y, v] = J("market"), S = fe((ce) => ce.volumeLots), [_, T] = J(String(S || r)), [x, A] = J(""), [C, R] = J(""), F = fe((ce) => ce.stopLoss), B = fe((ce) => ce.takeProfit), O = fe((ce) => ce.setStopLoss),
|
|
20644
|
+
const { t: b } = Ue(), [h, g] = J(!0), [y, v] = J("market"), S = fe((ce) => ce.volumeLots), [_, T] = J(String(S || r)), [x, A] = J(""), [C, R] = J(""), F = fe((ce) => ce.stopLoss), B = fe((ce) => ce.takeProfit), O = fe((ce) => ce.setStopLoss), j = fe((ce) => ce.setTakeProfit), M = fe((ce) => ce.setVolumeLots), z = fe((ce) => ce.setOrderSide), [E, D] = J(""), [L, N] = J(tt.GTC), [$, U] = J(""), [G, X] = J(""), [pe, re] = J(() => new Set(AP));
|
|
20610
20645
|
ae(() => {
|
|
20611
20646
|
f();
|
|
20612
20647
|
}, [h, f]);
|
|
20613
|
-
const W = Number(Yt(Zt(e))),
|
|
20648
|
+
const W = Number(Yt(Zt(e))), V = Ur(W), Q = Mc(t, n), we = t !== null ? Ae(t, W) : "—", ue = n !== null ? Ae(n, W) : "—", te = os(y), de = Pp(y), Le = is(y), K = b(Ao[y]), Ce = !te && Le.orderType !== null && Le.orderType % 2 === 1, ie = Ne(() => Q !== null ? Q : t ?? n, [n, t, Q]), Pe = (ce) => {
|
|
20614
20649
|
re((st) => {
|
|
20615
20650
|
const Xt = new Set(st);
|
|
20616
20651
|
return Xt.has(ce) ? Xt.delete(ce) : Xt.add(ce), Xt;
|
|
20617
20652
|
});
|
|
20618
|
-
},
|
|
20653
|
+
}, He = (ce) => {
|
|
20619
20654
|
T(ce);
|
|
20620
20655
|
const st = Number(ce);
|
|
20621
20656
|
Number.isFinite(st) && st > 0 && M(st);
|
|
@@ -20625,8 +20660,8 @@ function OP({
|
|
|
20625
20660
|
}, Vr = (ce) => {
|
|
20626
20661
|
if (t === null || n === null || !c)
|
|
20627
20662
|
return;
|
|
20628
|
-
const st = Math.max(o, Number(_) || o), Xt = la(y, ce),
|
|
20629
|
-
|
|
20663
|
+
const st = Math.max(o, Number(_) || o), Xt = la(y, ce), jr = Ye(ce);
|
|
20664
|
+
jr !== null && z({ side: ce, entryPrice: jr }), p({
|
|
20630
20665
|
login: c,
|
|
20631
20666
|
executionMode: y,
|
|
20632
20667
|
side: ce,
|
|
@@ -20665,8 +20700,8 @@ function OP({
|
|
|
20665
20700
|
isCollapsed: h,
|
|
20666
20701
|
onToggleCollapsed: () => g((ce) => !ce),
|
|
20667
20702
|
onDragHandlePointerDown: d,
|
|
20668
|
-
onPlaceOrder: ({ login: ce, side: st, volumeLots: Xt, bid:
|
|
20669
|
-
|
|
20703
|
+
onPlaceOrder: ({ login: ce, side: st, volumeLots: Xt, bid: jr, ask: pl }) => {
|
|
20704
|
+
jr === null || pl === null || p({
|
|
20670
20705
|
login: ce,
|
|
20671
20706
|
executionMode: "market",
|
|
20672
20707
|
side: st,
|
|
@@ -20680,7 +20715,7 @@ function OP({
|
|
|
20680
20715
|
typeTime: L,
|
|
20681
20716
|
expirationDateTime: "",
|
|
20682
20717
|
expirationDay: "",
|
|
20683
|
-
bid:
|
|
20718
|
+
bid: jr,
|
|
20684
20719
|
ask: pl
|
|
20685
20720
|
});
|
|
20686
20721
|
}
|
|
@@ -20704,7 +20739,7 @@ function OP({
|
|
|
20704
20739
|
{
|
|
20705
20740
|
label: b("WebTrading.lots"),
|
|
20706
20741
|
value: _,
|
|
20707
|
-
onChange:
|
|
20742
|
+
onChange: He,
|
|
20708
20743
|
step: i,
|
|
20709
20744
|
min: o,
|
|
20710
20745
|
decimals: 2
|
|
@@ -20726,10 +20761,10 @@ function OP({
|
|
|
20726
20761
|
label: b("WebTrading.stopPrice"),
|
|
20727
20762
|
value: C,
|
|
20728
20763
|
onChange: R,
|
|
20729
|
-
step:
|
|
20764
|
+
step: V,
|
|
20730
20765
|
decimals: W,
|
|
20731
20766
|
basePrice: ie,
|
|
20732
|
-
placeholder:
|
|
20767
|
+
placeholder: Q !== null ? Ae(Q, W) : "—"
|
|
20733
20768
|
}
|
|
20734
20769
|
),
|
|
20735
20770
|
/* @__PURE__ */ u(
|
|
@@ -20738,10 +20773,10 @@ function OP({
|
|
|
20738
20773
|
label: b("WebTrading.limitPrice"),
|
|
20739
20774
|
value: x,
|
|
20740
20775
|
onChange: A,
|
|
20741
|
-
step:
|
|
20776
|
+
step: V,
|
|
20742
20777
|
decimals: W,
|
|
20743
20778
|
basePrice: ie,
|
|
20744
|
-
placeholder:
|
|
20779
|
+
placeholder: Q !== null ? Ae(Q, W) : "—"
|
|
20745
20780
|
}
|
|
20746
20781
|
)
|
|
20747
20782
|
] }) : /* @__PURE__ */ u(
|
|
@@ -20750,10 +20785,10 @@ function OP({
|
|
|
20750
20785
|
label: b("WebTrading.price"),
|
|
20751
20786
|
value: x,
|
|
20752
20787
|
onChange: A,
|
|
20753
|
-
step:
|
|
20788
|
+
step: V,
|
|
20754
20789
|
decimals: W,
|
|
20755
20790
|
basePrice: ie,
|
|
20756
|
-
placeholder:
|
|
20791
|
+
placeholder: Q !== null ? Ae(Q, W) : "—"
|
|
20757
20792
|
}
|
|
20758
20793
|
)
|
|
20759
20794
|
}
|
|
@@ -20772,7 +20807,7 @@ function OP({
|
|
|
20772
20807
|
label: b("WebTrading.stopLoss"),
|
|
20773
20808
|
value: F,
|
|
20774
20809
|
onChange: O,
|
|
20775
|
-
step:
|
|
20810
|
+
step: V,
|
|
20776
20811
|
decimals: W,
|
|
20777
20812
|
basePrice: t,
|
|
20778
20813
|
placeholder: t !== null ? we : "—",
|
|
@@ -20784,8 +20819,8 @@ function OP({
|
|
|
20784
20819
|
{
|
|
20785
20820
|
label: b("WebTrading.takeProfit"),
|
|
20786
20821
|
value: B,
|
|
20787
|
-
onChange:
|
|
20788
|
-
step:
|
|
20822
|
+
onChange: j,
|
|
20823
|
+
step: V,
|
|
20789
20824
|
decimals: W,
|
|
20790
20825
|
basePrice: n,
|
|
20791
20826
|
placeholder: n !== null ? ue : "—",
|
|
@@ -20898,7 +20933,7 @@ function NP({
|
|
|
20898
20933
|
closePanels: b,
|
|
20899
20934
|
dismissConfirmation: h,
|
|
20900
20935
|
placeMarketOrder: g
|
|
20901
|
-
} = n, y = ge((U) => U.positions), v = ge((U) => U.orders), S = ge((U) => U.selectedPositionTicket), _ = ge((U) => U.selectedOrderTicket), T = ge((U) => U.setSelectedPositionTicket), x = ge((U) => U.setSelectedOrderTicket), A = S !== null ? y.find((U) => U.ticket === S) ?? null : null, C = _ !== null ? v.find((U) => U.ticket === _) ?? null : null, R = A !== null || C !== null, F = p && o === "confirmation" && s !== null, B = p && o !== "confirmation" && o !== "closed" && A === null && C === null, { panelRef: O, position:
|
|
20936
|
+
} = n, y = ge((U) => U.positions), v = ge((U) => U.orders), S = ge((U) => U.selectedPositionTicket), _ = ge((U) => U.selectedOrderTicket), T = ge((U) => U.setSelectedPositionTicket), x = ge((U) => U.setSelectedOrderTicket), A = S !== null ? y.find((U) => U.ticket === S) ?? null : null, C = _ !== null ? v.find((U) => U.ticket === _) ?? null : null, R = A !== null || C !== null, F = p && o === "confirmation" && s !== null, B = p && o !== "confirmation" && o !== "closed" && A === null && C === null, { panelRef: O, position: j, isDragging: M, onDragStart: z, reclamp: E } = Lp({
|
|
20902
20937
|
storageKey: "web-trading-widget-modal-exec-panel-position",
|
|
20903
20938
|
defaultAlign: "top-right",
|
|
20904
20939
|
isActive: B
|
|
@@ -20961,7 +20996,7 @@ function NP({
|
|
|
20961
20996
|
"div",
|
|
20962
20997
|
{
|
|
20963
20998
|
ref: O,
|
|
20964
|
-
style: { left:
|
|
20999
|
+
style: { left: j.x, top: j.y },
|
|
20965
21000
|
className: `web-trading-widget-new-order-overlay web-trading-widget-new-order-overlay--news web-trading-widget-new-order-overlay--draggable web-trading-widget-new-order-overlay--exec-panel${M ? " web-trading-widget-new-order-overlay--dragging" : ""}`,
|
|
20966
21001
|
children: /* @__PURE__ */ u(
|
|
20967
21002
|
OP,
|
|
@@ -21048,10 +21083,10 @@ function VP(e) {
|
|
|
21048
21083
|
const [t] = e.label.split(" · ");
|
|
21049
21084
|
return t ?? e.label;
|
|
21050
21085
|
}
|
|
21051
|
-
function
|
|
21086
|
+
function jP(e) {
|
|
21052
21087
|
return `${MP} ${e.login}`;
|
|
21053
21088
|
}
|
|
21054
|
-
function
|
|
21089
|
+
function HP(e) {
|
|
21055
21090
|
return `${e.label} — ${e.balance.toFixed(2)} ${e.currency}`;
|
|
21056
21091
|
}
|
|
21057
21092
|
function zP(e, t, n) {
|
|
@@ -21068,7 +21103,7 @@ function KP(e) {
|
|
|
21068
21103
|
if (e.isAccountsLoading || e.accountOptions.length === 0)
|
|
21069
21104
|
return "";
|
|
21070
21105
|
const t = cl(e);
|
|
21071
|
-
return t ?
|
|
21106
|
+
return t ? jP(t) : "";
|
|
21072
21107
|
}
|
|
21073
21108
|
function GP(e) {
|
|
21074
21109
|
if (e.isAccountsLoading)
|
|
@@ -21076,7 +21111,7 @@ function GP(e) {
|
|
|
21076
21111
|
if (e.isAccountDataLoading)
|
|
21077
21112
|
return $n(e, "WebTrading.switchingAccount");
|
|
21078
21113
|
const t = cl(e);
|
|
21079
|
-
return t ?
|
|
21114
|
+
return t ? HP(t) : $n(e, "WebTrading.selectYourTradingAccount");
|
|
21080
21115
|
}
|
|
21081
21116
|
function qP(e, t) {
|
|
21082
21117
|
if (!t)
|
|
@@ -21282,8 +21317,8 @@ var xh = "ToastViewport", oE = ["F8"], Ga = "toast.viewportPause", qa = "toast.v
|
|
|
21282
21317
|
(T = l.current) == null || T.focus();
|
|
21283
21318
|
return;
|
|
21284
21319
|
}
|
|
21285
|
-
const O = h({ tabbingDirection: R ? "backwards" : "forwards" }),
|
|
21286
|
-
Ys(O.slice(
|
|
21320
|
+
const O = h({ tabbingDirection: R ? "backwards" : "forwards" }), j = O.findIndex((M) => M === C);
|
|
21321
|
+
Ys(O.slice(j + 1)) ? v.preventDefault() : R ? (x = l.current) == null || x.focus() : (A = d.current) == null || A.focus();
|
|
21287
21322
|
}
|
|
21288
21323
|
};
|
|
21289
21324
|
return g.addEventListener("keydown", y), () => g.removeEventListener("keydown", y);
|
|
@@ -21428,15 +21463,15 @@ var [dE, uE] = Sh(Mi, {
|
|
|
21428
21463
|
}, [h.viewport, T, c, l, O]), w.useEffect(() => {
|
|
21429
21464
|
o && !h.isClosePausedRef.current && O(T);
|
|
21430
21465
|
}, [o, T, h.isClosePausedRef, O]), w.useEffect(() => (R(), () => F()), [R, F]);
|
|
21431
|
-
const
|
|
21466
|
+
const j = w.useMemo(() => g ? Dh(g) : null, [g]);
|
|
21432
21467
|
return h.viewport ? /* @__PURE__ */ I($e, { children: [
|
|
21433
|
-
|
|
21468
|
+
j && /* @__PURE__ */ u(
|
|
21434
21469
|
pE,
|
|
21435
21470
|
{
|
|
21436
21471
|
__scopeToast: n,
|
|
21437
21472
|
role: "status",
|
|
21438
21473
|
"aria-live": r === "foreground" ? "assertive" : "polite",
|
|
21439
|
-
children:
|
|
21474
|
+
children: j
|
|
21440
21475
|
}
|
|
21441
21476
|
),
|
|
21442
21477
|
/* @__PURE__ */ u(dE, { scope: n, onClose: B, children: Ir.createPortal(
|
|
@@ -21502,7 +21537,7 @@ var [dE, uE] = Sh(Mi, {
|
|
|
21502
21537
|
return gE(() => s(!0)), w.useEffect(() => {
|
|
21503
21538
|
const l = window.setTimeout(() => c(!0), 1e3);
|
|
21504
21539
|
return () => window.clearTimeout(l);
|
|
21505
|
-
}, []), a ? null : /* @__PURE__ */ u(
|
|
21540
|
+
}, []), a ? null : /* @__PURE__ */ u(Ho, { asChild: !0, container: i.announcerContainer || void 0, children: /* @__PURE__ */ u(bc, { ...r, children: o && /* @__PURE__ */ I($e, { children: [
|
|
21506
21541
|
i.label,
|
|
21507
21542
|
" ",
|
|
21508
21543
|
n
|
|
@@ -21582,7 +21617,7 @@ var ku = (e, t, n = 0) => {
|
|
|
21582
21617
|
function gE(e = () => {
|
|
21583
21618
|
}) {
|
|
21584
21619
|
const t = Tt(e);
|
|
21585
|
-
|
|
21620
|
+
je(() => {
|
|
21586
21621
|
let n = 0, r = 0;
|
|
21587
21622
|
return n = window.requestAnimationFrame(() => r = window.requestAnimationFrame(t)), () => {
|
|
21588
21623
|
window.cancelAnimationFrame(n), window.cancelAnimationFrame(r);
|
|
@@ -21681,17 +21716,17 @@ const TE = w.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
21681
21716
|
}
|
|
21682
21717
|
));
|
|
21683
21718
|
TE.displayName = vs.displayName;
|
|
21684
|
-
const
|
|
21685
|
-
|
|
21686
|
-
const
|
|
21687
|
-
|
|
21719
|
+
const jh = w.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(Fh, { ref: n, className: De("text-sm font-semibold [&+div]:text-base", e), ...t }));
|
|
21720
|
+
jh.displayName = Fh.displayName;
|
|
21721
|
+
const Hh = w.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(Uh, { ref: n, className: De("text-lg opacity-90 ", e), ...t }));
|
|
21722
|
+
Hh.displayName = Uh.displayName;
|
|
21688
21723
|
function xE() {
|
|
21689
21724
|
const { toasts: e } = V0();
|
|
21690
21725
|
return /* @__PURE__ */ I(wE, { children: [
|
|
21691
21726
|
e.map(({ id: t, title: n, description: r, action: i, ...o }) => /* @__PURE__ */ I($h, { ...o, children: [
|
|
21692
21727
|
/* @__PURE__ */ I("div", { className: "grid gap-1", children: [
|
|
21693
|
-
n ? /* @__PURE__ */ u(
|
|
21694
|
-
r ? /* @__PURE__ */ u(
|
|
21728
|
+
n ? /* @__PURE__ */ u(jh, { children: n }) : null,
|
|
21729
|
+
r ? /* @__PURE__ */ u(Hh, { children: r }) : null
|
|
21695
21730
|
] }),
|
|
21696
21731
|
i,
|
|
21697
21732
|
/* @__PURE__ */ u(Vh, {})
|
|
@@ -21717,38 +21752,38 @@ function PE({
|
|
|
21717
21752
|
const { language: l } = Ue(), d = o !== void 0, f = Ii(), m = EC({
|
|
21718
21753
|
symbols: f,
|
|
21719
21754
|
defaultPanelAfterConfirm: t === "news" ? "market" : "mini"
|
|
21720
|
-
}), p = Te(null), b = Te(null), [h, g] = J(null), y = oe((
|
|
21721
|
-
g(
|
|
21755
|
+
}), p = Te(null), b = Te(null), [h, g] = J(null), y = oe((Q) => {
|
|
21756
|
+
g(Q);
|
|
21722
21757
|
}, []), [v, S] = J(null), [_, T] = J(null), x = d ? o ?? null : v, [A, C] = J(
|
|
21723
21758
|
() => Fo(f)
|
|
21724
21759
|
), [R, F] = J(
|
|
21725
21760
|
n ?? null
|
|
21726
21761
|
), [B, O] = J(
|
|
21727
21762
|
() => n ? "scan" : "trade"
|
|
21728
|
-
),
|
|
21763
|
+
), j = Te(null);
|
|
21729
21764
|
ae(() => {
|
|
21730
21765
|
F(n ?? null);
|
|
21731
21766
|
}, [n]), ae(() => {
|
|
21732
21767
|
O(R ? "scan" : "trade");
|
|
21733
21768
|
}, [R]);
|
|
21734
21769
|
const M = oe(() => {
|
|
21735
|
-
var
|
|
21736
|
-
O("trade"), (
|
|
21770
|
+
var Q;
|
|
21771
|
+
O("trade"), (Q = p.current) == null || Q.open();
|
|
21737
21772
|
}, []), { isLoading: z } = Mm(
|
|
21738
21773
|
m.selectedLogin,
|
|
21739
21774
|
m.hasConfirmedAccount
|
|
21740
21775
|
), E = Te(null), [D, L] = J(
|
|
21741
21776
|
m.selectedLogin
|
|
21742
21777
|
), N = oe(
|
|
21743
|
-
(
|
|
21744
|
-
|
|
21778
|
+
(Q) => {
|
|
21779
|
+
Q !== m.selectedLogin && m.setSelectedLogin(Q);
|
|
21745
21780
|
},
|
|
21746
21781
|
[m.selectedLogin, m.setSelectedLogin]
|
|
21747
|
-
), $ = z && m.selectedLogin !== D, U = oe((
|
|
21748
|
-
C(
|
|
21782
|
+
), $ = z && m.selectedLogin !== D, U = oe((Q) => {
|
|
21783
|
+
C(Q);
|
|
21749
21784
|
}, []), G = oe(
|
|
21750
|
-
(
|
|
21751
|
-
F(
|
|
21785
|
+
(Q) => {
|
|
21786
|
+
F(Q), r == null || r(Q);
|
|
21752
21787
|
},
|
|
21753
21788
|
[r]
|
|
21754
21789
|
), { chartContainer: X } = kC({
|
|
@@ -21758,9 +21793,9 @@ function PE({
|
|
|
21758
21793
|
onSymbolTickerChange: U,
|
|
21759
21794
|
onScanResultUrlChange: G,
|
|
21760
21795
|
selectSymbolTickerRef: b
|
|
21761
|
-
}), pe = d ? X : _, re = oe((
|
|
21796
|
+
}), pe = d ? X : _, re = oe((Q) => {
|
|
21762
21797
|
var we;
|
|
21763
|
-
(we = b.current) == null || we.call(b,
|
|
21798
|
+
(we = b.current) == null || we.call(b, Q);
|
|
21764
21799
|
}, []), W = Ne(
|
|
21765
21800
|
() => ({
|
|
21766
21801
|
controlsRef: p,
|
|
@@ -21793,15 +21828,15 @@ function PE({
|
|
|
21793
21828
|
(ue = E.current) == null || ue.remove(), E.current = null;
|
|
21794
21829
|
return;
|
|
21795
21830
|
}
|
|
21796
|
-
let
|
|
21831
|
+
let Q = !1;
|
|
21797
21832
|
return (async () => {
|
|
21798
21833
|
try {
|
|
21799
21834
|
const te = await tE(
|
|
21800
21835
|
x,
|
|
21801
|
-
() => !
|
|
21836
|
+
() => !Q,
|
|
21802
21837
|
l
|
|
21803
21838
|
);
|
|
21804
|
-
if (
|
|
21839
|
+
if (Q) {
|
|
21805
21840
|
te == null || te.remove();
|
|
21806
21841
|
return;
|
|
21807
21842
|
}
|
|
@@ -21821,7 +21856,7 @@ function PE({
|
|
|
21821
21856
|
}
|
|
21822
21857
|
})(), () => {
|
|
21823
21858
|
var te;
|
|
21824
|
-
|
|
21859
|
+
Q = !0, (te = E.current) == null || te.remove(), E.current = null;
|
|
21825
21860
|
};
|
|
21826
21861
|
}, [
|
|
21827
21862
|
pe,
|
|
@@ -21851,11 +21886,11 @@ function PE({
|
|
|
21851
21886
|
m.isAccountsLoading,
|
|
21852
21887
|
m.selectedLogin
|
|
21853
21888
|
]);
|
|
21854
|
-
const
|
|
21889
|
+
const V = e ?? (d ? null : /* @__PURE__ */ u(CE, {}));
|
|
21855
21890
|
return t === "news" ? /* @__PURE__ */ u(Cu, { value: W, children: /* @__PURE__ */ I(
|
|
21856
21891
|
"div",
|
|
21857
21892
|
{
|
|
21858
|
-
ref:
|
|
21893
|
+
ref: j,
|
|
21859
21894
|
className: "web-trading-widget-trading-layout web-trading-widget-trading-layout--news",
|
|
21860
21895
|
children: [
|
|
21861
21896
|
/* @__PURE__ */ I("div", { className: "web-trading-widget-trading-layout__chart-slot", children: [
|
|
@@ -21877,9 +21912,9 @@ function PE({
|
|
|
21877
21912
|
{
|
|
21878
21913
|
ref: y,
|
|
21879
21914
|
className: "web-trading-widget-trading-layout__host-chart-slot",
|
|
21880
|
-
children:
|
|
21915
|
+
children: V
|
|
21881
21916
|
}
|
|
21882
|
-
) :
|
|
21917
|
+
) : V,
|
|
21883
21918
|
/* @__PURE__ */ u(
|
|
21884
21919
|
NP,
|
|
21885
21920
|
{
|
|
@@ -21893,10 +21928,10 @@ function PE({
|
|
|
21893
21928
|
/* @__PURE__ */ u(
|
|
21894
21929
|
$m,
|
|
21895
21930
|
{
|
|
21896
|
-
containerRef:
|
|
21931
|
+
containerRef: j,
|
|
21897
21932
|
onCreateNewOrder: () => {
|
|
21898
|
-
var
|
|
21899
|
-
return (
|
|
21933
|
+
var Q;
|
|
21934
|
+
return (Q = p.current) == null ? void 0 : Q.open();
|
|
21900
21935
|
},
|
|
21901
21936
|
tradeDataEnabled: m.hasConfirmedAccount
|
|
21902
21937
|
}
|
|
@@ -21923,7 +21958,7 @@ function PE({
|
|
|
21923
21958
|
{
|
|
21924
21959
|
ref: d ? y : void 0,
|
|
21925
21960
|
className: "web-trading-widget-trading-layout__chart-slot",
|
|
21926
|
-
children:
|
|
21961
|
+
children: V
|
|
21927
21962
|
}
|
|
21928
21963
|
)
|
|
21929
21964
|
] }),
|