PageSourceSearch

https://indx.money/v2/assets/history-Bwt3v7n2.js

js indx.money collected 2026-10-09 03:45:40 UTC 36,552 bytes, 21 lines download raw bytes

1import{N as Ut,j as t,u as e,C as Xt,r as Vt,I as xt,p as Ct,J as Yt,g as Kt,_ as Zt,O as nt,P as qt,Q as ft,R as Gt,T as Qt,U as Jt,V as ts}from"./index-CVkPVKMu.js";import{r as f}from"./vendor-react-DJ1oPbzn.js";import{D as jt}from"./date-input-BqqRv01A.js";import"./vendor-libs-CmRAaO7z.js";import"./vendor-chart-C3BTrSSY.js";const ss={12:"https://bscscan.com/tx/",15:"https://tronscan.org/#/transaction/",16:"https://polygonscan.com/tx/",20:"https://scan.kcc.io/tx/",19:"https://snowtrace.io/tx/",26:"https://tonviewer.com/transaction/",27:"https://dogechain.info/tx/",28:"https://cardanoscan.io/transaction/",29:"https://xdcscan.io/tx/",30:"https://suivision.xyz/txblock/",31:"https://stellarchain.io/transactions/"},es={12:"https://bscscan.com/address/",15:"https://tronscan.org/#/address/",16:"https://polygonscan.com/address/",20:"https://scan.kcc.io/address/",19:"https://snowtrace.io/address/",26:"https://tonviewer.com/",27:"https://dogechain.info/address/",28:"https://cardanoscan.io/address/",29:"https://xdcscan.com/address/",30:"https://suivision.xyz/account/",31:"https://stellarchain.io/accounts/"},ns=[118,117,116,115,114,113,109,97,91,90,89,88,87,86,85,84,83,82,81,73,64],as={119:"https://stellarchain.io/transactions/",96:"https://scan.kcc.io/tx/",95:"https://tzkt.io/",94:"https://polygonscan.com/tx/",92:"https://bscscan.com/tx/",80:"https://blockscout.com/etc/mainnet/tx/",78:"https://solana.fm/tx/",76:"https://tronscan.org/#/transaction/",75:"https://iotascan.com/mainnet/tx/",74:"https://whatsonchain.com/tx/",71:"https://live.blockcypher.com/dash/tx/",70:"https://bithomp.com/explorer/",69:"https://live.blockcypher.com/ltc/tx/",68:"https://monerohash.com/explorer/tx/",67:"https://btgexplorer.com/tx/",66:"https://blockchair.com/bitcoin-cash/transaction/",60:"https://blockchain.info/tx/",106:"https://tonviewer.com/transaction/",104:"https://tonviewer.com/transaction/",105:"https://snowtrace.io/tx/",107:"https://dogechain.info/tx/",108:"https://cardanoscan.io/transaction/",112:"https://xdcscan.com/tx/",110:"https://xdcscan.com/tx/",111:"https://suivision.xyz/txblock/",...Object.fromEntries(ns.map(s=>[s,"https://etherscan.io/tx/"]))},is={118:"0xC6a9851def913016074AC089E194F65945343462",117:"0x9B2C171ABB9c732fFa3789724d0aa653C9e0c428",116:"0x292A477E521230FE230C13C93374ADdE8DDec1C1",115:"0x45804880de22913dafe09f4980848ece6ecbaf78",114:"0x6B175474E89094C44Da98b954EedeAC495271d0F",113:"0x3C35b1D861f433A2A2253C2BEf5932436E353980",109:"0x68749665FF8D2d112Fa859AA293F07A622782F38",91:"0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",90:"0x6b3595068778dd592e39a122f4f5a5cf09c90fe2",89:"0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce",88:"0xde4EE8057785A7e8e800Db58F9784845A5C2Cbd6",87:"0x514910771af9ca656af840dff83e8264ecf986ca",86:"0x1f9840a85d5af5bf1d1762f925bdaddc4201f984",85:"0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",84:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",83:"0x4Fabb145d64652a948d72533023f6E7A623C7C53",82:"0xdac17f958d2ee523a2206206994597c13d831ec7",81:"0x0000000000085d4780B73119b644AE5ecd22b376",73:"0x13601888f649c96383812ec45c608b4e7da5e899"},rs={119:"https://stellarchain.io/accounts/",96:"https://scan.kcc.io/address/",95:"https://tzkt.io/",94:"https://polygonscan.com/address/",92:"https://bscscan.com/address/",80:"https://blockscout.com/etc/mainnet/address/",75:"https://iotascan.com/mainnet/account/",78:"https://solana.fm/address/",76:"https://tronscan.org/#/address/",74:"https://whatsonchain.com/address/",71:"https://live.blockcypher.com/dash/address/",70:"https://bithomp.com/explorer/",69:"https://live.blockcypher.com/ltc/address/",60:"https://blockchair.com/bitcoin/address/",66:"https://blockchair.com/bitcoin-cash/address/",64:"https://etherscan.io/address/",67:"https://btgexplorer.com/address/",68:"https://monerohash.com/explorer/search?value=",106:"https://tonviewer.com/",104:"https://tonviewer.com/",105:"https://snowtrace.io/address/",107:"https://dogechain.info/address/",108:"https://cardanoscan.io/address/",110:"https://xdcscan.com/address/",111:"https://suivision.xyz/account/",112:"https://xdcscan.com/token/0x8f9920283470f52128bf11b0c14e798be704fd15?a=",...Object.fromEntries(Object.entries(is).map(([s,n])=>[Number(s),`https://etherscan.io/token/${n}?a=`]))},cs=new Set([10,11,12,13,16,19,20,29]),os=new Set([1,2,3,4,5,6,7,8,9,14,15,17,18,26,27,28,31]),ls=s=>/^(0x|xdc)[0-9a-fA-F]{40}$/.test(s.split(":")[0]),$t=s=>/^[A-Z]\d{12}$/.test(s),bt={60:"x",66:"h",69:"l",74:"h",68:"m"},Lt=(s,n)=>n>0?n===20?96:n===18?95:n===15?76:n===14?78:s:s;function ds(s,n){if(!n||!s||s<=0)return!1;const r=ls(n);return r&&os.has(s)?!0:!r&&cs.has(s)&&!$t(n)}function hs(s,n,r){const a=(r||"").trim(),o=s??-1;if(!a||o===0)return null;if(n!==68&&/^\d+$/.test(a))return bt[n]?`https://wm${bt[n]}.wmtransfer.com/Home/History/?${a}`:null;const d=Lt(n,o);if(a.length>=51&&(d===64||d===73)&&!a.startsWith("0x"))return null;const c=(o>0?ss[o]:void 0)??as[d];return c?c+encodeURIComponent(a):null}function kt(s,n,r){const a=(r||"").trim(),o=s??-1;if(!a||o===0||$t(a)||ds(s,a))return null;const d=Lt(n,o),c=(o>0?es[o]:void 0)??rs[d];if(!c)return null;const l=a.split(":");return c+encodeURIComponent(l.length>1?l[0]:a.replace(/^xdc/,"0x"))}const ps=0,ms=1,us=4,xs=5,J=()=>[{key:"in",label:e("Ввод"),kinds:[ms]},{key:"out",label:e("Вывод"),kinds:[ps,6,7,8]},{key:"buy",label:e("Покупка"),kinds:[us]},{key:"sell",label:e("Продажа"),kinds:[xs]}],fs=[10,20,50,100],js="2010-01-01",gt=3,vt=1e3,Nt=(s,n)=>{const[r,a,o]=s.split("-").map(Number),d=new Date(Date.UTC(r+n,a,0)).getUTCDate(),c=l=>String(l).padStart(2,"0");return`${r+n}-${c(a)}-${c(Math.min(o,d))}`},wt=5,Y=s=>/^[A-Z]\d{12}$/.test(s),St=s=>Y(s)?"WM"+s[0]:"",bs={0:"Webmoney Transfer",1:"Bitcoin",2:"Litecoin",3:"Bitcoin Gold",4:"Bitcoin Cash",5:"Bitcoin Cash SV",6:"Dash",7:"Monero",8:"Ripple",9:"Miota",10:"Ethereum Classic",11:"Ethereum",12:"Binance Smart Chain",13:"Heco",14:"Solana",15:"Tron",16:"Polygon",17:"EOS Network",18:"Tezos",19:"Avalanche C-Chain",20:"KuCoin Community Chain",26:"TON",27:"DogeCoin",28:"C
1ardano",29:"XDC Network",30:"SUI",31:"Stellar"};function ks(s){const n=[...s??[]].sort((a,o)=>(a.stamp??0)-(o.stamp??0)),r=new Map;return n.forEach((a,o)=>r.set(a.id,o+1)),r}const Et=s=>s==null?"":bs[s]??e("Сеть #{0}",s),tt=(s,n=8,r=8)=>s&&s.length>n+r+3?s.slice(0,n)+"…"+s.slice(-r):s,N=s=>isFinite(s)?s.toFixed(8).replace(/\.?0+$/,"")||"0":"—",P=()=>[e("января"),e("февраля"),e("марта"),e("апреля"),e("мая"),e("июня"),e("июля"),e("августа"),e("сентября"),e("октября"),e("ноября"),e("декабря")];function gs(s){const[n,r,a]=s.split(".").map(Number);if(!n||!r||!a)return s;const o=new Date(a,r-1,n),d=new Date;d.setHours(0,0,0,0),new Date(d).setDate(d.getDate()-1);const l=new Date(a,r-1,n),u=Math.round((d.getTime()-l.getTime())/864e5);return u===0?e("Сегодня, {0} {1}",n,P()[r-1]):u===1?e("Вчера, {0} {1}",n,P()[r-1]):u>=2&&u<=6?e("{0} {1} · {2} дня назад",n,P()[r-1],u):o.getFullYear()===d.getFullYear()?`${n} ${P()[r-1]}`:`${n} ${P()[r-1]} ${a}`}function yt(s){if(!Number.isFinite(s))return"0";const n=Math.abs(s)>0&&Math.abs(s)<1e-6?s.toFixed(18).replace(/0+$/,""):String(s),[r,a]=n.split("."),o=r.replace(/\B(?=(\d{3})+(?!\d))/g," ");return a&&Number(a)!==0?`${o}.${a.replace(/0+$/,"")}`:o}function st({href:s,hint:n}){return t.jsx("a",{className:"hist-ext",href:s,target:"_blank",rel:"noopener noreferrer","data-hint":n,"aria-label":n,onClick:r=>r.stopPropagation(),children:t.jsx("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"})})})}function $({value:s,display:n}){const[r,a]=f.useState(!1),[o,d]=f.useState(!1),c=b=>{b.stopPropagation(),s&&ts(s).then(M=>{M?(a(!0),d(!1),setTimeout(()=>a(!1),1500)):(d(!0),setTimeout(()=>d(!1),2e3))})},l="hist-copy-chip"+(r?" copied":"")+(o?" failed":""),u=s+(r?e(" · скопировано"):o?e(" · копирование недоступно (выделите вручную)"):e(" · клик для копирования"));return t.jsxs("button",{type:"button",className:l,onClick:c,"data-hint":u,children:[t.jsx("span",{className:"hist-copy-val",children:n??s}),t.jsx("span",{className:"hist-copy-ico","aria-hidden":"true",children:r?t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M20 6L9 17l-5-5"})}):o?t.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M18 6L6 18M6 6l12 12"})}):t.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("rect",{x:"9",y:"9",width:"11",height:"11",rx:"2"}),t.jsx("path",{d:"M5 15V6a2 2 0 0 1 2-2h9"})]})})]})}function H({kind:s,incoming:n}){const a="hist-op-chip tone-"+(s===4?"buy":s===5?"sell":s===2?"mute":n?"deposit":"withdraw");return s===4?t.jsx("svg",{className:a,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("path",{d:"M7 17L17 7M17 7H9M17 7v8"})}):s===5?t.jsx("svg",{className:a,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("path",{d:"M7 7L17 17M17 17H9M17 17V9"})}):s===2?t.jsx("svg",{className:a,width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:t.jsx("circle",{cx:"12",cy:"12",r:"4"})}):n?t.jsx("svg",{className:a,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("path",{d:"M12 5v14M6 11l6-6 6 6"})}):t.jsx("svg",{className:a,width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("path",{d:"M12 19V5M6 13l6 6 6-6"})})}function vs(s,n,r){if(s.symbolid===0&&s.name)return{pair:`${s.name}/${n}`,quote:n};const a=s.p?r.find(o=>o.symbolid===s.p):void 0;return a?{pair:`${a.base}/${a.quote}`,quote:a.quote}:s.p?{pair:n,quote:""}:{pair:`${n}/WMZ`,quote:"WMZ"}}function Ns(s){if(!(s.kind===0&&!!s.up&&!!s.tct&&!!s.addr&&s.tct===s.addr)||!s.stamp||s.up+15*6e4<Date.now())return null;const r=a=>{const o=Qt(Jt(a)),d=c=>String(c).padStart(2,"0");return`${d(o.h)}:${d(o.mi)} ${d(o.d)}.${d(o.mo)}.${o.y}`};return{from:r(s.stamp),to:r(s.up+15*6e4)}}function ws(s,n,r=[]){const a=s.addr||"",o=s.tct||"",d=St(a)||(s.type===1?"WM"+n.slice(-1):""),c=s.type===1||d!==""&&!o,l=s.cid!=null?Et(s.cid):"";if(s.kind===4||s.kind===5){const{pair:u,quote:b}=vs(s,n,r);return t.jsxs("span",{className:"hist-card",children:[t.jsxs("span",{className:"hist-card-title",children:[t.jsx(H,{kind:s.kind,incoming:s.incoming}),t.jsxs("b",{children:[s.kind===4?e("Покупка"):e("Продажа")," ",e("на бирже")]}),t.jsxs("span",{className:"hist-card-sub",children:["· ",u," ",e("по")," ",t.jsx("b",{children:N(s.price)})," ",b]})]}),t.jsxs("span",{className:"hist-card-meta",children:[t.jsx("span",{className:"hist-meta-time",children:s.time}),s.n!=null&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"hist-sep",children:"·"}),e("операция")," ",t.jsx($,{value:String(s.n),display:`#${s.n}`})]}),s.fee>0&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"hist-sep",children:"·"}),e("комиссия")," ",t.jsx("b",{children:N(s.fee)})," ",b]}),s.t!=null&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"hist-sep",children:"·"}),e("сумма сделки")," ",t.jsx("b",{children:N(s.t)})," ",b]})]})]})}if(s.kind===0||s.kind===1||s.kind===8){const u=s.kind===1?e("Пополнение"):e("Списание"),b=Ns(s),M=s.kind===1?c?"из {0}":"из сети {0}":c?"в {0}":"в сеть {0}
1",[g,w=""]=e(M,"�").split("�"),v=!c&&s.cost>0&&Math.abs(s.cost-Math.abs(s.amount))>1e-9,_=!c&&o&&o!==a?hs(s.cid,s.symbolid,o):null,z=!c&&a?kt(s.cid,s.symbolid,a):null;return t.jsxs("span",{className:"hist-card",children:[t.jsxs("span",{className:"hist-card-title",children:[t.jsx(H,{kind:s.kind,incoming:s.incoming}),t.jsx("b",{children:u}),l&&t.jsxs("span",{className:"hist-card-sub",children:["· ",g,t.jsx("b",{children:l}),w]}),v&&t.jsxs("span",{className:"hist-card-received",children:["→ ",e("дошло")," ",t.jsx("b",{children:N(s.cost)})," ",n]})]}),t.jsxs("span",{className:"hist-card-meta",children:[t.jsx("span",{className:"hist-meta-time",children:s.time}),s.n!=null&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"hist-sep",children:"·"}),e("операция")," ",t.jsx($,{value:String(s.n),display:`#${s.n}`})]}),c&&a&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"hist-sep",children:"·"}),e("кошелёк")," ",t.jsx($,{value:a})]}),!c&&o&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"hist-sep",children:"·"}),e("хэш")," ",t.jsx($,{value:o,display:tt(o)}),_&&t.jsx(st,{href:_,hint:e("Операция в обозревателе блоков")})]}),!c&&a&&a!==o&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"hist-sep",children:"·"}),e("адрес")," ",t.jsx($,{value:a,display:tt(a)}),z&&t.jsx(st,{href:z,hint:e("Адрес в обозревателе блоков")})]})]}),b&&t.jsxs("span",{className:"hist-card-plan",children:[t.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2","aria-hidden":"true",children:[t.jsx("circle",{cx:"12",cy:"12",r:"9"}),t.jsx("path",{d:"M12 7v5l3 2",strokeLinecap:"round"})]}),e("Принята к обработке. Отправка в блокчейн запланирована с {0} по {1}",b.from,b.to)]})]})}return s.kind===6||s.kind===7?t.jsxs("span",{className:"hist-card",children:[t.jsxs("span",{className:"hist-card-title",children:[t.jsx(H,{kind:s.kind,incoming:s.incoming}),t.jsx("b",{children:s.kind===6?e("Подтверждение операции"):e("Отмена операции")}),l&&t.jsxs("span",{className:"hist-card-sub",children:["· ",l]})]}),t.jsxs("span",{className:"hist-card-meta",children:[t.jsx("span",{className:"hist-meta-time",children:s.time}),s.n!=null&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"hist-sep",children:"·"}),e("операция")," ",t.jsx($,{value:String(s.n),display:`#${s.n}`})]}),a&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"hist-sep",children:"·"}),Y(a)?e("кошелёк"):e("адрес")," ",t.jsx($,{value:a,display:Y(a)?a:tt(a)}),(()=>{const u=kt(s.cid,s.symbolid,a);return u&&t.jsx(st,{href:u,hint:e("Адрес в обозревателе блоков")})})()]})]})]}):s.kind===2?t.jsxs("span",{className:"hist-card",children:[t.jsxs("span",{className:"hist-card-title",children:[t.jsx(H,{kind:s.kind,incoming:s.incoming}),t.jsx("b",{children:e("Синхронизация остатка")}),s.price>0&&t.jsxs("span",{className:"hist-card-sub",children:["· ",e("курс")," ",t.jsx("b",{children:N(s.price)})]})]}),t.jsxs("span",{className:"hist-card-meta",children:[t.jsx("span",{className:"hist-meta-time",children:s.time}),s.n!=null&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"hist-sep",children:"·"}),e("операция")," ",t.jsx($,{value:String(s.n),display:`#${s.n}`})]})]})]}):t.jsxs("span",{className:"hist-card",children:[t.jsxs("span",{className:"hist-card-title",children:[t.jsx(H,{kind:s.kind,incoming:s.incoming}),t.jsx("b",{children:s.kindLabel})]}),t.jsxs("span",{className:"hist-card-meta",children:[t.jsx("span",{className:"hist-meta-time",children:s.time}),s.n!=null&&t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"hist-sep",children:"·"}),e("операция")," ",t.jsx($,{value:String(s.n),display:`#${s.n}`})]})]})]})}function Mt(s){const[n,r,a]=s.split(".").map(Number);return!n||!r||!a?null:new Date(a,r-1,n).getTime()}function V(s){if(!s)return null;const[n,r,a]=s.split("-").map(Number);return!n||!r||!a?null:new Date(n,r-1,a).getTime()}function et(s){const n=new Date(s),r=a=>String(a).padStart(2,"0");return`${n.getFullYear()}-${r(n.getMonth()+1)}-${r(n.getDate())}`}const at=s=>s===0?e("Списание"):s===1?e("Пополнение"):s===2?e("Синхронизация остатка"):s===3?e("Операция"):s===4?e("Покупка"):s===5?e("Продажа"):s===6?e("Подтверждение"):s===7?e("Отмена"):s===8?e("Заявка"):e("Операция");function it(s,n){const r=s.addr||"",a=s.tct||"",o=St(r)||(s.type===1?"WM"+n.slice(-1):""),d=s.type===1||o!==""&&!a,c=s.cid!=null?Et(s.cid):"",l=[];if(s.kind===4||s.kind===5){const u=s.name||n,b=u.split("/")[1]??"";l.push(`${s.kind===4?e("Покупка"):e("Продажа")} ${e("на бирже")} · ${u} ${e("по")} ${N(s.price)} ${b}`),s.fee>0&&l.push(e("комиссия {0} {1}",N(s.fee),b)),s.t!=null&&l.push(e("сумма сделки {0} {1}",N(s.t),b))}else if(s.kind===0||s.kind===1||s.kind===8){const u=s.kind===1?e("Пополнение"):e("Списание"),b=s.kind===1?d?e("из {0}",c):e("из сети {0}",c):d?e("в {0}",c):e("в сеть {0}",c);l.push(`${u}${c?" "+b:""}`),!d&&s.cost>0&&Math.abs(s.cost-Math.abs(s.amount))>1e-9&&l.push(e("дошло {0} {1}",N(s.cost),n)),d&&r?l.push(e("кошелёк {0}",r)):(a&&l.push(e("хэш {0}",a)),r&&r!==a&&l.push(e("адрес {0}",r)))}else if(s.kind===6||s.kind===7){const u=s.kind===6?e("Подтверждение операции"):e("Отмена операции");l.push(`${u}${c?" · "+c:""}`),r&&l.push(`${Y(r)?e("кошелёк"):e("адрес")} ${r}`)}else s.kind===2?(l.push(e("Синхронизация остатка")),s.price>0&&l.push(e("курс {0}",N(s.price)))):l.push(s.kindLabel);return l.join(" · ")}function ys(s,n,r){const a=["№",e("Дата"),e("Время ({0})",nt()),e("Тип"),`${e("Сумма")} (${n})`,`${e("Комиссия")} (${n})`,e("Примечание"),`${e("Остаток")} (${n})`],o=["n","date","time","type","amount","fee","remark","rest"],d=s.map((g,w)=>[w+1,g.date,g.time,at(g.kind),(g.incoming?"":"-")+Math.abs(g.amount),g.fee||0,it(g,n),g.rest??""]);let c="",l="txt",u="text/plain;charset=utf-8";r==="csv"?(c="\uFEFF"+[a.join(";"),...d.map(g=>g.map(w=>ft(w,";")).join(";"))].join(`\r
2`),l="csv",u="text/csv;charset=utf-8"):r==="xml"?(c=`<?xml version="1.0" encoding="UTF-8"?>
3<ops>
4`+d.map(g=>"  <op>"+g.map((w,v)=>`<${o[v]}>${Gt(w)}</${o[v]}>`).join("")+"</op>").join(`
5`)+`
6</ops>`,l="xml",u="application/xml;charset=utf-8"):c=[a.join("	"),...d.map(g=>g.map(w=>ft(w,"	")).join("	"))].join(`\r
7`);
7const b=URL.createObjectURL(new Blob([c],{type:u})),M=document.createElement("a");M.href=b,M.download=`indx-history-${n}.${l}`,M.click(),URL.revokeObjectURL(b)}async function Ms(s,n){const r=await Zt(()=>import("./xlsx-D_0l8YDs.js"),[]),a=["№",e("Дата"),e("Время ({0})",nt()),e("Тип"),`${e("Сумма")} (${n})`,`${e("Комиссия")} (${n})`,e("Примечание"),`${e("Остаток")} (${n})`],o=s.map((l,u)=>[u+1,l.date,l.time,at(l.kind),(l.incoming?1:-1)*Math.abs(l.amount),l.fee||0,it(l,n),l.rest??""]),d=r.utils.aoa_to_sheet([a,...o]);d["!cols"]=[{wch:4},{wch:11},{wch:9},{wch:12},{wch:16},{wch:14},{wch:90},{wch:18}];const c=r.utils.book_new();r.utils.book_append_sheet(c,d,`${n} ${e("история")}`),r.writeFile(c,`indx-history-${n}.xlsx`)}function Cs(s,n){const r=c=>c.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),a=s.map((c,l)=>`<tr><td>${l+1}</td><td>${c.date} ${c.time}</td><td class="${c.incoming?"b":"s"}">${r(at(c.kind))}</td><td class="n ${c.incoming?"b":"s"}">${c.incoming?"+":"−"}${N(Math.abs(c.amount))}</td><td class="n">${c.fee?N(c.fee):""}</td><td>${r(it(c,n))}</td><td class="n">${c.rest!=null?N(c.rest):""}</td></tr>`).join(""),o=`<!doctype html><html><head><meta charset="utf-8"><title>INDX · ${n} — ${e("история операций")}</title><style>
8    body{font:11px/1.42 Roboto,Arial,sans-serif;color:#111;margin:16px}h1{font-size:15px;margin:0 0 4px}p{color:#666;margin:0 0 10px;font-size:10px}
9    table{border-collapse:collapse;width:100%;table-layout:fixed}th,td{border:1px solid #ccc;padding:3px 6px;text-align:left;vertical-align:top;word-break:break-word}
10    th{background:#f2f4f7}td.n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}td.b{color:#027C45}td.s{color:#c62828}
11    col.n{width:28px}col.d{width:70px}col.t{width:60px}col.a{width:70px}col.f{width:60px}col.r{width:90px}
12    @media print{@page{size:A4 landscape;margin:8mm}}
13  </style></head><body>
14  <h1>INDX · ${n} — ${e("история операций")} (${s.length})</h1>
15  <p>${e("Сформировано")} ${new Date().toLocaleString(qt[Ct()])}</p>
16  <table>
17    <colgroup><col class="n"><col class="d"><col class="t"><col class="a"><col class="f"><col><col class="r"></colgroup>
18    <thead><tr><th>№</th><th>${e("Дата/Время ({0})",nt())}</th><th>${e("Тип")}</th><th>${e("Сумма")} (${n})</th><th>${e("Комиссия")}</th><th>${e("Примечание")}</th><th>${e("Остаток")} (${n})</th></tr></thead>
19    <tbody>${a}</tbody>
20  </table>
21  <script>window.onload=function(){window.print()}<\/script></body></html>`,d=window.open("","_blank");d&&(d.document.write(o),d.document.close())}const $s=()=>[["xlsx","Excel",e("таблица .xlsx")],["pdf","PDF",e("печатная форма")],["csv","CSV",e("разделитель «;»")],["xml","XML",e("структурированный")],["txt","TXT",e("табуляция")]];function Ws({coin:s,symbolid:n,assets:r,chains:a=[],instruments:o=[],history:d,authed:c,onLoad:l,onCoinChange:u,onDeposit:b,onWithdraw:M,onBack:g,backLabel:w=e("← К активам"),compact:v=!1,onFullHistory:_}){const[z,K]=f.useState(!1),[Ls,Ss]=f.useState("all"),[S,rt]=f.useState({in:!0,out:!0,buy:!0,sell:!0}),[U,A]=f.useState(!1),ct=f.useRef(null);f.useEffect(()=>{if(!U)return;const i=h=>{var j;(j=ct.current)!=null&&j.contains(h.target)||A(!1)},m=h=>{h.key==="Escape"&&A(!1)};return document.addEventListener("mousedown",i),document.addEventListener("keydown",m),()=>{document.removeEventListener("mousedown",i),document.removeEventListener("keydown",m)}},[U]);const[E,X]=f.useState(""),[Z,Es]=f.useState("date"),[ot,Ts]=f.useState("desc"),[Tt,T]=f.useState(1),[D,Dt]=f.useState(v?wt:20),[lt,Ft]=f.useState(et(Date.now()-90*864e5)),[O,It]=f.useState(et(Date.now())),q=[js,Nt(O,-gt)].sort()[1],W=lt<q?q:lt,_t=[et(Date.now()),Nt(W,gt)].sort()[0],G=()=>{if(!c)return;const i=V(W)??void 0,m=(()=>{const h=V(O);return h==null?void 0:h+864e5-1})();l(n,s,i,m),T(1)};f.useEffect(()=>{if(!c)return;const i=V(W)??void 0,m=(()=>{const h=V(O);return h==null?void 0:h+864e5-1})();l(n,s,i,m),T(1)},[n,s,c]);const L=d&&d.symbolid===n?d.ops:null,At=Ct(),[Ot,dt]=f.useState(!1);f.useEffect(()=>{if(v)return;const i=()=>dt(window.scrollY>400);return i(),window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},[v]);const Q=f.useMemo(()=>v?J().filter(i=>i.key==="in"||i.key==="out"):J(),[v,At]),B=f.useMemo(()=>
21{if(!L)return null;const i=new Set;for(const m of Q)S[m.key]&&m.kinds.forEach(h=>i.add(h));return i.size===0?[]:L.filter(m=>i.has(m.kind))},[L,S,Q]),y=f.useMemo(()=>{if(!B)return null;const i=[...B],m=ot==="asc"?1:-1;return Z==="date"?i.sort((h,j)=>{const k=Mt(h.date)??0,p=Mt(j.date)??0;return k!==p?(k-p)*m:h.time.localeCompare(j.time)*m}):Z==="amount"&&i.sort((h,j)=>{const k=h.incoming?Math.abs(h.amount):-Math.abs(h.amount),p=j.incoming?Math.abs(j.amount):-Math.abs(j.amount);return(k-p)*m}),i},[B,Z,ot]),F=(y==null?void 0:y.length)??0,I=Math.max(1,Math.ceil(F/D)),C=Math.min(Tt,I),Wt=v?(y??[]).slice(0,wt):(y??[]).slice((C-1)*D,C*D),ht=(i,m)=>i==="WMZ"||i==="WMG"||a.some(h=>h.ticker===i&&(m==="in"?Yt(h):Kt(h))),pt=f.useMemo(()=>{const i=x=>x==="WMZ",m=new Set(a.filter(x=>x.isin).map(x=>x.ticker)),h=new Set(a.filter(x=>x.isout).map(x=>x.ticker)),j=x=>i(x)||a.length===0||m.has(x)||h.has(x),k=x=>(x.amount||0)+(x.locked||0)+(x.rest||0)>0,p=new Set;return r.forEach(x=>{(j(x.coin)||k(x))&&p.add(x.coin)}),p.add("WMZ"),s&&p.add(s),Array.from(p).sort((x,R)=>x===s?-1:R===s?1:x.localeCompare(R))},[r,a,s]),mt=f.useMemo(()=>{const i=pt.filter(m=>m!==s);return E.trim()?i.filter(m=>Ut(m,E)):i},[pt,E,s]),Bt=f.useMemo(()=>{const i=new Map;return r.forEach(m=>i.set(m.coin,m.symbolid)),i.set("WMZ",0),i},[r]),Rt=f.useMemo(()=>ks(B),[B]),ut=()=>{const i=[];let m="";for(const h of Wt)h.date!==m&&(i.push({label:gs(h.date),items:[]}),m=h.date),i[i.length-1].items.push(h);return t.jsx("div",{className:"hist-tl"+(v?" hist-tl--compact":""),children:i.map((h,j)=>t.jsxs("div",{className:"hist-tl-group",children:[t.jsx("div",{className:"hist-tl-date",children:h.label}),h.items.map(k=>{const p=Rt.get(k.id)??0,x=k.incoming?"+":"−",R=k.kind===4?"buy":k.kind===5?"sell":k.kind===2?"mute":k.incoming?"deposit":"withdraw",zt="tone-"+R;return t.jsxs("div",{className:"hist-tl-row tone-"+R,children:[t.jsx("span",{className:"hist-tl-body",children:ws(k,s,o)}),t.jsxs("span",{className:"hist-tl-money",children:[t.jsxs("b",{className:"hist-tl-amt "+zt,children:[x,yt(Math.abs(k.amount))," ",t.jsx("span",{className:"hist-tl-cur",children:s})]}),k.rest!=null&&t.jsxs("span",{className:"hist-tl-rest","data-hint":e("Остаток после операции: {0} {1}",k.rest,s),children:[e("остаток")," ",t.jsx("b",{children:yt(k.rest)})," ",s]}),t.jsxs("span",{className:"hist-tl-no","data-hint":e("Порядковый номер операции за отобранный период: счёт идёт от самой ранней"),children:["#",p]})]})]},k.id)})]},j))})},Pt=()=>t.jsxs("div",{className:"hist-empty",children:[t.jsx("span",{className:"hist-empty-ico","aria-hidden":"true",children:t.jsxs("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.4",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),t.jsx("path",{d:"M3 10h18"}),t.jsx("path",{d:"M8 4v6"}),t.jsx("path",{d:"M16 4v6"})]})}),t.jsx("div",{className:"hist-empty-title",children:e("Нет операций")}),t.jsx("div",{className:"hist-empty-sub",children:e("В выбранном диапазоне по {0} операций с выбранными фильтрами не найдено.",s)})]}),Ht=()=>{if(F<=0)return null;const i=[],m=p=>{i.includes(p)||i.push(p)};m(1);for(let p=Math.max(2,C-2);p<=Math.min(I-1,C+2);p++)m(p);I>1&&m(I);const h=[];for(let p=0;p<i.length;p++)p>0&&i[p]-i[p-1]>1&&h.push("…"),h.push(i[p]);const j=(C-1)*D+1,k=Math.min(F,C*D);return t.jsxs("div",{className:"hist-pager",children:[t.jsxs("div",{className:"hist-pager-info",children:[e("Показаны")," ",t.jsxs("b",{children:[j,"–",k]})," ",e("из")," ",t.jsx("b",{children:F})]}),t.jsxs("div",{className:"hist-pager-nav",children:[t.jsx("button",{type:"button",className:"hist-pg-btn",disabled:C<=1,onClick:()=>T(p=>Math.max(1,p-1)),"aria-label":e("Предыдущая страница"),children:"‹"}),h.map((p,x)=>p==="…"?t.jsx("span",{className:"hist-pg-el",children:"…"},"e"+x):t.jsx("button",{type:"button",className:"hist-pg-btn"+(p===C?" active":""),onClick:()=>T(p),children:p},p)),t.jsx("button",{type:"button",className:"hist-pg-btn",disabled:C>=I,onClick:()=>T(p=>Math.min(I,p+1)),"aria-label":e("Следующая страница"),children:"›"})]}),t.jsxs("div",{className:"hist-pager-size",children:[t.jsx("label",{className:"dep-lbl",htmlFor:"hist-page-size",children:e("На странице")}),t.jsx("select",{id:"hist-page-size",className:"hist-size-sel",value:D,onChange:p=>{Dt(Number(p.target.value)),T(1)},children:fs.map(p=>t.jsx("option",{value:p,children:p},p))})]})]})};return v?t.jsxs("section",{className:"hist-compact",children:[t.jsxs("div",{className:"hist-compact-head",children:[t.jsxs("div",{className:"hist-compact-title",children:[t.jsx("button",{type:"button",className:"hist-compact-ico",onClick:G,disabled:!c,"aria-label":e("Обновить историю"),"data-hint":e("Обновить историю"),children:t.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("path",{d:"M12 8v5l3 2"}),t.jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7L3 8"}),t.jsx("path",{d:"M3 4v4h4"})]})}),t.jsx("b",{children:e("Последние операции по {0}",s)})]}),t.jsx("div",{className:"hist-tb-chk",role:"group","aria-label":e("Тип операции"),children:Q.map(i=>{const m=i.key==="in"?"deposit":"withdraw";return t.jsxs("label",{className:"hist-chk"+(S[i.key]?" on":""),children:[t.jsx("input",{type:"checkbox",checked:S[i.key],onChange:h=>rt(j=>
21({...j,[i.key]:h.target.checked}))}),t.jsx("span",{className:"hist-chk-dot tone-"+m,"aria-hidden":"true"}),t.jsx("span",{children:i.label})]},i.key)})})]}),c?L?F===0?t.jsx("div",{className:"hist-compact-empty",children:e("За последние 90 дней операций по {0} с выбранными фильтрами не найдено.",s)}):ut():t.jsx("div",{className:"hist-compact-empty",children:e("Загрузка последних операций…")}):t.jsx("div",{className:"hist-compact-empty",children:e("Войдите, чтобы увидеть историю операций по {0}.",s)}),_&&t.jsx("div",{className:"hist-compact-foot",children:t.jsx("button",{type:"button",className:"hist-more-link",onClick:_,children:e("Показать всю историю {0} →",s)})})]}):t.jsxs("div",{className:"content-page assets-page hist-page",children:[g&&t.jsx("button",{className:"dep-back-btn content-back",onClick:g,children:w}),t.jsxs("div",{className:"content-hero hero-assets",children:[t.jsx("span",{className:"content-hero-ico",children:t.jsxs("svg",{width:"26",height:"26",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("path",{d:"M12 8v5l3 2"}),t.jsx("path",{d:"M3 12a9 9 0 1 0 3-6.7L3 8"}),t.jsx("path",{d:"M3 4v4h4"})]})}),t.jsxs("h1",{children:[s," — ",e("история операций")]}),t.jsx(Xt,{current:"history",onDeposit:b&&ht(s,"in")?()=>b(s):void 0,onWithdraw:M&&ht(s,"out")?()=>M(s):void 0})]}),c?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"hist-toolbar",children:[t.jsxs("div",{className:"hist-tb-coin",ref:ct,children:[t.jsx("label",{className:"dep-lbl",children:e("Актив")}),t.jsxs("button",{type:"button",className:"hist-select",onClick:()=>A(i=>!i),"aria-haspopup":"listbox","aria-expanded":U,children:[t.jsxs("span",{className:"hist-select-body",children:[t.jsx(xt,{id:n,code:s,size:20})," ",t.jsx("b",{children:s})]}),t.jsx("span",{className:"hist-select-caret","aria-hidden":"true",children:"▾"})]}),U&&t.jsxs("div",{className:"hist-select-menu",role:"listbox",children:[t.jsxs("div",{className:"hist-coin-search",children:[t.jsx("span",{className:"hist-coin-search-ico","aria-hidden":"true",children:t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("circle",{cx:"11",cy:"11",r:"7"}),t.jsx("path",{d:"M21 21l-4.3-4.3"})]})}),t.jsx("input",{autoFocus:!0,className:"hist-coin-search-inp",type:"text",placeholder:e("Поиск актива"),value:E,onChange:i=>X(i.target.value),onKeyDown:i=>{i.key==="Escape"&&(E?(X(""),i.stopPropagation()):A(!1))}}),E&&t.jsx("button",{type:"button",className:"hist-coin-search-clr",onClick:()=>X(""),"aria-label":e("Сбросить поиск"),"data-hint":e("Сбросить (показать весь список)"),children:"×"})]}),t.jsx("div",{className:"hist-coin-scroll",children:mt.length>0?mt.map(i=>t.jsxs("button",{type:"button",className:"hist-select-opt"+(i===s?" active":""),onClick:()=>{A(!1),X(""),i!==s&&u(i)},children:[t.jsx(xt,{id:Bt.get(i)??0,code:i,size:18})," ",t.jsx("span",{children:i})]},i)):t.jsx("div",{className:"hist-coin-empty",children:e("Ничего не найдено")})})]})]}),t.jsxs("div",{className:"hist-tb-filter",children:[t.jsx("label",{className:"dep-lbl",children:e("Тип операции")}),t.jsx("div",{className:"hist-tb-chk",role:"group","aria-label":e("Тип операции"),children:J().map(i=>{const m=i.key==="in"?"deposit":i.key==="out"?"withdraw":i.key==="buy"?"buy":"sell";return t.jsxs("label",{className:"hist-chk"+(S[i.key]?" on":""),children:[t.jsx("input",{type:"checkbox",checked:S[i.key],onChange:h=>rt(j=>({...j,[i.key]:h.target.checked}))}),t.jsx("span",{className:"hist-chk-dot tone-"+m,"aria-hidden":"true"}),t.jsx("span",{children:i.label})]},i.key)})})]}),t.jsxs("div",{className:"hist-tb-range",children:[t.jsx("label",{className:"dep-lbl",children:e("Период (включительно)")}
21),t.jsxs("div",{className:"hist-dates",children:[t.jsx(jt,{value:W,min:q,max:O,onChange:Ft,ariaLabel:e("Дата с")}),t.jsx("span",{className:"hist-dates-sep","aria-hidden":"true",children:"→"}),t.jsx(jt,{value:O,min:W,max:_t,onChange:It,ariaLabel:e("Дата по")})]})]}),t.jsxs("div",{className:"hist-tb-actions",children:[t.jsx("button",{type:"button",className:"hist-run-btn",onClick:G,disabled:!c,"data-hint":e("Запросить историю за указанный период"),children:e("Отобрать")}),t.jsx("button",{type:"button",className:"hist-refresh-btn",onClick:G,disabled:!c,"aria-label":e("Обновить историю"),"data-hint":e("Обновить историю (без изменения периода)"),children:t.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("path",{d:"M21 12a9 9 0 1 1-2.64-6.36M21 3v5h-5"})})}),t.jsxs("div",{className:"exp-menu",children:[t.jsxs("button",{type:"button",className:"exp-btn",disabled:!y||y.length===0,onClick:()=>K(i=>!i),"data-hint":e("Сохранить отобранные операции файлом"),children:[t.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[t.jsx("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),t.jsx("path",{d:"M7 10l5 5 5-5"}),t.jsx("path",{d:"M12 15V3"})]}),e("Экспорт"),t.jsx("b",{className:"exp-cnt",children:(y==null?void 0:y.length)??0})]}),z&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"dp-back",onClick:()=>K(!1)}),t.jsxs("div",{className:"exp-pop",children:[t.jsx("div",{className:"exp-title",children:e("Формат файла")}),$s().map(([i,m,h])=>t.jsxs("button",{type:"button",onClick:()=>{const j=y??[];i==="xlsx"?Ms(j,s):i==="pdf"?Cs(j,s):ys(j,s,i),K(!1)},children:[t.jsx("b",{children:m}),t.jsx("span",{children:h})]},i))]})]})]})]})]}),L?F>0?t.jsxs(t.Fragment,{children:[ut(),Ht()]}):Pt():t.jsx("div",{className:"content-loading",children:e("Загрузка истории…")}),L&&L.length>=vt&&t.jsx("div",{className:"hist-foot-note",children:e("Показаны последние {0} операций — сузьте период, чтобы увидеть остальные.",vt)}),t.jsx("div",{className:"hist-foot-note",children:e("Период — не длиннее 3 лет и не раньше 1 января 2010 года.")}),Ot&&t.jsx("button",{type:"button",className:"hist-to-top",onClick:()=>{dt(!1),window.scrollTo({top:0,behavior:"smooth"})},"aria-label":e("К началу списка"),"data-hint":e("К началу списка"),children:t.jsxs("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[t.jsx("path",{d:"M12 19V5"}),t.jsx("path",{d:"M5 12l7-7 7 7"})]})})]}):t.jsx(Vt,{text:e("Войдите, чтобы увидеть историю операций.")})]})}export{vt as HISTORY_FETCH_LIMIT,gt as HISTORY_MAX_YEARS,js as HISTORY_MIN_ISO,Ws as HistoryPage,Nt as addYearsIso,vs as dealPair,ks as orderNumbers,Ns as sendWindow};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.