PageSourceSearch

https://www.kiphub.ai/_next/static/chunks/4684.2bd0f3eced758266.js

js kiphub.ai collected 2026-10-05 12:54:52 UTC 18,913 bytes, 53 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4684],{56370:function(e,t,o){o.d(t,{nY:function(){return C}});var r=o(51958),n=o(10913),a=o(23176),s=o(29350),i=o(70498),c=o(15623),l=o(19876),u=o(39157),d=o(97576),k=o(24373),T=o(27321),g=o(76278);let p={async getTokenList(){let e=T.R.state.activeCaipNetwork,t=await k.L.fetchSwapTokens({chainId:e?.caipNetworkId}),o=t?.tokens?.map(e=>({...e,eip2612:!1,quantity:{decimals:"0",numeric:"0"},price:0,value:0}))||[];return o},async fetchGasPrice(){let e=T.R.state.activeCaipNetwork;if(!e)return null;try{if("solana"===e.chainNamespace){let e=(await g.ConnectionController?.estimateGas({chainNamespace:"solana"}))?.toString();return{standard:e,fast:e,instant:e}}return await k.L.fetchGasPrice({chainId:e.caipNetworkId})}catch{return null}},async fetchSwapAllowance({tokenAddress:e,userAddress:t,sourceTokenAmount:o,sourceTokenDecimals:r}){let n=await k.L.fetchSwapAllowance({tokenAddress:e,userAddress:t});if(n?.allowance&&o&&r){let e=g.ConnectionController.parseUnits(o,r)||0,t=BigInt(n.allowance)>=e;return t}return!1},async getMyTokensWithBalance(e){let t=d.AccountController.state.address,o=T.R.state.activeCaipNetwork;if(!t||!o)return[];let r=await k.L.getBalance(t,o.caipNetworkId,e),n=r.balances.filter(e=>"0"!==e.quantity.decimals);return d.AccountController.setTokenBalance(n,T.R.state.activeChain),this.mapBalancesToSwapTokens(n)},mapBalancesToSwapTokens:e=>e?.map(e=>({...e,address:e?.address?e.address:T.R.getActiveNetworkTokenAddress(),decimals:parseInt(e.quantity.decimals,10),logoUri:e.iconUrl,eip2612:!1}))||[]},m={getGasPriceInEther(e,t){let o=Number(t*e)/1e18;return o},getGasPriceInUSD(e,t,o){let r=m.getGasPriceInEther(t,o),n=a.C.bigNumber(e),s=n.times(r);return s.toNumber()},getPriceImpact({sourceTokenAmount:e,sourceTokenPriceInUSD:t,toTokenPriceInUSD:o,toTokenAmount:r}){let n=a.C.bigNumber(e).times(t),s=a.C.bigNumber(r).times(o),i=n.minus(s).div(n).times(100);return i.toNumber()},getMaxSlippage(e,t){let o=a.C.bigNumber(e).div(100),r=a.C.multiply(t,o);return r.toNumber()},getProviderFee(e,t=.0085){let o=a.C.bigNumber(e).times(t);return o.toString()},isInsufficientNetworkTokenForGas(e,t){let o=t||"0";return!!a.C.bigNumber(e).eq(0)||a.C.bigNumber(a.C.bigNumber(o)).gt(e)},isInsufficientSourceTokenForSwap(e,t,o){let r=o?.find(e=>e.address===t)?.quantity?.numeric,n=a.C.bigNumber(r||"0").lt(e);return n},getToTokenAmount({sourceToken:e,toToken:t,sourceTokenPrice:o,toTokenPrice:r,sourceTokenAmount:n}){if("0"===n||!e||!t)return"0";let s=e.decimals,i=t.decimals;if(r<=0)return"0";let c=a.C.bigNumber(n).times(.0085),l=a.C.bigNumber(n).minus(c),u=l.times(a.C.bigNumber(10).pow(s)),d=a.C.bigNumber(o).div(r),k=s-i,T=u.times(d).div(a.C.bigNumber(10).pow(k)),g=T.div(a.C.bigNumber(10).pow(i)),p=g.toFixed(i).toString();return p}};var h=o(8272),w=o(35276),A=o(87163),S=o(75466),b=o(31283);let v={initializing:!1,initialized:!1,loadingPrices:!1,loadingQuote:!1,loadingApprovalTransaction:!1,loadingBuildTransaction:!1,loadingTransaction:!1,fetchError:!1,approvalTransaction:void 0,swapTransaction:void 0,transactionError:void 0,sourceToken:void 0,sourceTokenAmount:"",sourceTokenPriceInUSD:0,toToken:void 0,toTokenAmount:"",toTokenPriceInUSD:0,networkPrice:"0",networkBalanceInUSD:"0",networkTokenSymbol:"",inputError:void 0,slippage:c.bq.CONVERT_SLIPPAGE_TOLERANCE,tokens:void 0,popularTokens:void 0,suggestedTokens:void 0,foundTokens:void 0,myTokensWithBalance:void 0,tokensPriceMap:{},gasFee:"0",gasPriceInUSD:0,priceImpact:void 0,maxSlippage:void 0,providerFee:void 0},f=(0,r.sj)(v),C={state:f,subscribe:e=>(0,r.Ld)(f,()=>e(f)),subscribeKey:(e,t)=>(0,n.VW)(f,e,t),getParams(){let e=T.R.state.activeCaipAddress,t=T.R.state.activeChain,o=l.j.getPlainAddress(e),r=T.R.getActiveNetworkTokenAddress(),n=w.ConnectorController.getConnectorId(t);if(!o)throw Error("No address found to swap the tokens from.");let i=!f.toToken?.address||!f.toToken?.decimals,c=!f.sourceToken?.address||!f.sourceToken?.decimals||!a.C.bigNumber(f.sourceTokenAmount).gt(0),u=!f.sourceTokenAmount;return{networkAddress:r,fromAddress:o,fromCaipAddress:e,sourceTokenAddress:f.sourceToken?.address,toTokenAddress:f.toToken?.address,toTokenAmount:f.toTokenAmount,toTokenDecimals:f.toToken?.decimals,sourceTokenAmount:f.sourceTokenAmount,sourceTokenDecimals:f.sourceToken?.decimals,invalidToToken:i,invalidSourceToken:c,invalidSourceTokenAmount:u,availableToSwap:e&&!i&&!c&&!u,isAuthConnector:n===s.b.CONNECTOR_ID.AUTH}},setSourceToken(e){if(!e){f.sourceToken=e,f.sourceTokenAmount="",f.sourceTokenPriceInUSD=0;return}f.sourceToken=e,this.setTokenPrice(e.address,"sourceToken")},setSourceTokenAmount(e){f.sourceTokenAmount=e},setToToken(e){if(!e){f.toToken=e,f.toTokenAmount="",f.toTokenPriceInUSD=0;return}f.toToken=e,this.setTokenPrice(e.address,"toToken")},setToTokenAmount(e){f.toTokenAmount=e?a.C.formatNumberToLocalString(e,6):""},async setTokenPrice(e,t){let o=f.tokensPriceMap[e]||0;o||(f.loadingPrices=!0,o=await this.getAddressPrice(e)),"sourceToken"===t?f.sourceTokenPriceInUSD=o:"toToken"===t&&(f.toTokenPriceInUSD=o),f.loadingPrices&&(f.loadingPrices=!1),this.getParams().availableToSwap&&this.swapTokens()},switchTokens(){if(f.initializing||!f.initialized)return;let e=f.toToken?{...f.toToken}:void 0,t=f.sourceToken?{...f.sourceToken}:void 0,o=e&&""===f.toTokenAmount?"1":f.toTokenAmount;this.setSourceToken(e),this.setToToken(t),this.setSourceTokenAmount(o),this.setToTokenAmount(""),this.swapTokens()},resetState(){f.myTokensWithBalance=v.myTokensWithBalance,f.tokensPriceMap=v.tokensPriceMap,f.initialized=v.initialized,f.sourceToken=v.sourceToken,f.sourceTokenAmount=v.sourceTokenAmount,f.sourceTokenPriceInUSD=v.sourceTokenPriceInUSD,f.toToken=v.toToken,f.toTokenAmount=v.toTokenAmount,f.toTokenPriceInUSD=v.toTokenPriceInUSD,f.networkPrice=v.networkPrice,f.networkTokenSymbol=v.networkTokenSymbol,f.networkBalanceInUSD=v.networkBalanceInUSD,f.inputError=v.inputError,f.myTokensWithBalance=v.myTokensWithBalance},resetValues(){let{networkAddress:e}=this.getParams(),t=f.tokens?.find(t=>t.address===e);this.setSourceToken(t),this.setToToken(void 0)},getApprovalLoadingState:()=>f.loadingApprovalTransaction,clearError(){f.transactionError=void 0},async initializeState(){if(!f.initializing){if(f.initializing=!0,!f.initialized)try{await this.fetchTokens(),f.initialized=!0}catch(e){f.initialized=!1,b.SnackController.showError("Failed to initialize swap"),S.RouterController.goBack()}f.initializing=!1}},async fetchTokens(){let{networkAddress:e}=this.getParams();await this.getTokenList(),await this.getNetworkTokenPrice(),await this.getMyTokensWithBalance();let t=f.tokens?.find(t=>t.address===e);t&&(f.networkTokenSymbol=t.symbol,this.setSourceToken(t),this.setSourceTokenAmount("1"))},async getTokenList(){let e=await p.getTokenList();f.tokens=e,f.popularTokens=e.sort((e,t)=>
1e.symbol<t.symbol?-1:e.symbol>t.symbol?1:0),f.suggestedTokens=e.filter(e=>!!c.bq.SWAP_SUGGESTED_TOKENS.includes(e.symbol),{})},async getAddressPrice(e){let t=f.tokensPriceMap[e];if(t)return t;let o=await k.L.fetchTokenPrice({addresses:[e]}),r=o?.fungibles||[],n=[...f.tokens||[],...f.myTokensWithBalance||[]],a=n?.find(t=>t.address===e)?.symbol,s=r.find(e=>e.symbol.toLowerCase()===a?.toLowerCase())?.price||0,i=parseFloat(s.toString());return f.tokensPriceMap[e]=i,i},async getNetworkTokenPrice(){let{networkAddress:e}=this.getParams(),t=await k.L.fetchTokenPrice({addresses:[e]}).catch(()=>(b.SnackController.showError("Failed to fetch network token price"),{fungibles:[]})),o=t.fungibles?.[0],r=o?.price.toString()||"0";f.tokensPriceMap[e]=parseFloat(r),f.networkTokenSymbol=o?.symbol||"",f.networkPrice=r},async getMyTokensWithBalance(e){let t=await u.y.getMyTokensWithBalance(e),o=u.y.mapBalancesToSwapTokens(t);o&&(await this.getInitialGasPrice(),this.setBalances(o))},setBalances(e){let{networkAddress:t}=this.getParams(),o=T.R.state.activeCaipNetwork;if(!o)return;let r=e.find(e=>e.address===t);e.forEach(e=>{f.tokensPriceMap[e.address]=e.price||0}),f.myTokensWithBalance=e.filter(e=>e.address.startsWith(o.caipNetworkId)),f.networkBalanceInUSD=r?a.C.multiply(r.quantity.numeric,r.price).toString():"0"},async getInitialGasPrice(){let e=await p.fetchGasPrice();if(!e)return{gasPrice:null,gasPriceInUSD:null};if(T.R.state?.activeCaipNetwork?.chainNamespace==="solana")return f.gasFee=e.standard??"0",f.gasPriceInUSD=a.C.multiply(e.standard,f.networkPrice).div(1e9).toNumber(),{gasPrice:BigInt(f.gasFee),gasPriceInUSD:Number(f.gasPriceInUSD)};{let t=e.standard??"0",o=BigInt(t),r=BigInt(15e4),n=m.getGasPriceInUSD(f.networkPrice,r,o);return f.gasFee=t,f.gasPriceInUSD=n,{gasPrice:o,gasPriceInUSD:n}}},async swapTokens(){let e=d.AccountController.state.address,t=f.sourceToken,o=f.toToken,r=a.C.bigNumber(f.sourceTokenAmount).gt(0);if(r||this.setToTokenAmount(""),!o||!t||f.loadingPrices||!r)return;f.loadingQuote=!0;let n=a.C.bigNumber(f.sourceTokenAmount).times(10**t.decimals).round(0);try{let r=await k.L.fetchSwapQuote({userAddress:e,from:t.address,to:o.address,gasPrice:f.gasFee,amount:n.toString()});f.loadingQuote=!1;let s=r?.quotes?.[0]?.toAmount;if(!s){h.AlertController.open({shortMessage:"Incorrect amount",longMessage:"Please enter a valid amount"},"error");return}let i=a.C.bigNumber(s).div(10**o.decimals).toString();this.setToTokenAmount(i);let c=this.hasInsufficientToken(f.sourceTokenAmount,t.address);c?f.inputError="Insufficient balance":(f.inputError=void 0,this.setTransactionDetails())}catch(e){f.loadingQuote=!1,f.inputError="Insufficient balance"}},async getTransaction(){let{fromCaipAddress:e,availableToSwap:t}=this.getParams(),o=f.sourceToken,r=f.toToken;if(e&&t&&o&&r&&!f.loadingQuote)try{let t;f.loadingBuildTransaction=!0;let r=await p.fetchSwapAllowance({userAddress:e,tokenAddress:o.address,sourceTokenAmount:f.sourceTokenAmount,sourceTokenDecimals:o.decimals});return t=r?await this.createSwapTransaction():await this.createAllowanceTransaction(),f.loadingBuildTransaction=!1,f.fetchError=!1,t}catch(e){S.RouterController.goBack(),b.SnackController.showError("Failed to check allowance"),f.loadingBuildTransaction=!1,f.approvalTransaction=void 0,f.swapTransaction=void 0,f.fetchError=!0;return}},async createAllowanceTransaction(){let{fromCaipAddress:e,sourceTokenAddress:t,fromAddress:o,toTokenAddress:r}=this.getParams();if(e&&r){if(!t)throw Error("createAllowanceTransaction - No source token address found.");try{let n=await k.L.generateApproveCalldata({from:t,to:r,userAddress:e}),a=await g.ConnectionController.estimateGas({chainNamespace:s.b.CHAIN.EVM,address:o,to:l.j.getPlainAddress(n.tx.to),data:n.tx.data}),i={data:n.tx.data,to:l.j.getPlainAddress(n.tx.from),gas:a,gasPrice:BigInt(n.tx.eip155.gasPrice),value:BigInt(n.tx.value),toAmount:f.toTokenAmount};return f.swapTransaction=void 0,f.approvalTransaction={data:i.data,to:i.to,gas:i.gas??BigInt(0),gasPrice:i.gasPrice,value:i.value,toAmount:i.toAmount},{data:i.data,to:i.to,gas:i.gas??BigInt(0),gasPrice:i.gasPrice,value:i.value,toAmount:i.toAmount}}catch(e){S.RouterController.goBack(),b.SnackController.showError("Failed to create approval transaction"),f.approvalTransaction=void 0,f.swapTransaction=void 0,f.fetchError=!0;return}}},async createSwapTransaction(){let{networkAddress:e,fromCaipAddress:t,sourceTokenAmount:o}=this.getParams(),r=f.sourceToken,n=f.toToken;if(!t||!o||!r||!n)return;let a=g.ConnectionController.parseUnits(o,r.decimals)?.toString();try{let o=await k.L.generateSwapCalldata({userAddress:t,from:r.address,to:n.address,amount:a,disableEstimate:!0}),s=r.address===e,i=BigInt(o.tx.eip155.gas),c=BigInt(o.tx.eip155.gasPrice),u={data:o.tx.data,to:l.j.getPlainAddress(o.tx.to),gas:i,gasPrice:c,value:s?BigInt(a??"0"):BigInt("0"),toAmount:f.toTokenAmount};return f.gasPriceInUSD=m.getGasPriceInUSD(f.networkPrice,i,c),f.approvalTransaction=void 0,f.swapTransaction=u,u}catch(e){S.RouterController.goBack(),b.SnackController.showError("Failed to create transaction"),f.approvalTransaction=void 0,f.swapTransaction=void 0,f.fetchError=!0;return}},async sendTransactionForApproval(e){let{fromAddress:t,isAuthConnector:o}=this.getParams();f.loadingApprovalTransaction=!0;let r="Approve limit increase in your wallet";o?S.RouterController.pushTransactionStack({view:null,goBack:!0,onSuccess(){b.SnackController.showLoading(r)}}):b.SnackController.showLoading(r);try{await g.ConnectionController.sendTransaction({address:t,to:e.to,data:e.data,value:e.value,chainNamespace:"eip155"}),await this.swapTokens(),await this.getTransaction(),f.approvalTransaction=void 0,f.loadingApprovalTransaction=!1}catch(e){f.transactionError=e?.shortMessage,f.loadingApprovalTransaction=!1,b.SnackController.showError(e?.shortMessage||"Transaction error"),A.X.sendEvent({type:"track",event:"SWAP_APPROVAL_ERROR",properties:{message:e?.shortMessage||e?.message||"Unknown",network:T.R.state.activeCaipNetwork?.caipNetworkId||"",swapFromToken:this.state.sourceToken?.symbol||"",swapToToken:this.state.toToken?.symbol||"",swapFromAmount:this.state.sourceTokenAmount||"",swapToAmount:this.state.toTokenAmount||"",isSmartAccount:d.AccountController.state.preferredAccountTypes?.eip155===i.y_.ACCOUNT_TYPES.SMART_ACCOUNT}})}},async sendTransactionForSwap(e){if(!e)return;let{fromAddress:t,toTokenAmount:o,isAuthConnector:r}=this.getParams();f.loadingTransaction=!0;let n=`Swapping ${f.sourceToken?.symbol} to ${a.C.formatNumberToLocalString(o,3)} ${f.toToken?.symbol}`,s=`Swapped ${f.sourceToken?.symbol} to ${a.C.formatNumberToLocalString(o,3)} ${f.toToken?.symbol}`;r?S.RouterController.pushTransactionStack({view:"Account",goBack:!1,onSuccess(){b.SnackController.showLoading(n),C.resetState()}}
1):b.SnackController.showLoading("Confirm transaction in your wallet");try{let o=[f.sourceToken?.address,f.toToken?.address].join(","),n=await g.ConnectionController.sendTransaction({address:t,to:e.to,data:e.data,value:e.value,chainNamespace:"eip155"});return f.loadingTransaction=!1,b.SnackController.showSuccess(s),A.X.sendEvent({type:"track",event:"SWAP_SUCCESS",properties:{network:T.R.state.activeCaipNetwork?.caipNetworkId||"",swapFromToken:this.state.sourceToken?.symbol||"",swapToToken:this.state.toToken?.symbol||"",swapFromAmount:this.state.sourceTokenAmount||"",swapToAmount:this.state.toTokenAmount||"",isSmartAccount:d.AccountController.state.preferredAccountTypes?.eip155===i.y_.ACCOUNT_TYPES.SMART_ACCOUNT}}),C.resetState(),r||S.RouterController.replace("Account"),C.getMyTokensWithBalance(o),n}catch(e){f.transactionError=e?.shortMessage,f.loadingTransaction=!1,b.SnackController.showError(e?.shortMessage||"Transaction error"),A.X.sendEvent({type:"track",event:"SWAP_ERROR",properties:{message:e?.shortMessage||e?.message||"Unknown",network:T.R.state.activeCaipNetwork?.caipNetworkId||"",swapFromToken:this.state.sourceToken?.symbol||"",swapToToken:this.state.toToken?.symbol||"",swapFromAmount:this.state.sourceTokenAmount||"",swapToAmount:this.state.toTokenAmount||"",isSmartAccount:d.AccountController.state.preferredAccountTypes?.eip155===i.y_.ACCOUNT_TYPES.SMART_ACCOUNT}});return}},hasInsufficientToken(e,t){let o=m.isInsufficientSourceTokenForSwap(e,t,f.myTokensWithBalance);return d.AccountController.state.preferredAccountTypes?.eip155!==i.y_.ACCOUNT_TYPES.SMART_ACCOUNT&&m.isInsufficientNetworkTokenForGas(f.networkBalanceInUSD,f.gasPriceInUSD)||o},setTransactionDetails(){let{toTokenAddress:e,toTokenDecimals:t}=this.getParams();e&&t&&(f.gasPriceInUSD=m.getGasPriceInUSD(f.networkPrice,BigInt(f.gasFee),BigInt(15e4)),f.priceImpact=m.getPriceImpact({sourceTokenAmount:f.sourceTokenAmount,sourceTokenPriceInUSD:f.sourceTokenPriceInUSD,toTokenPriceInUSD:f.toTokenPriceInUSD,toTokenAmount:f.toTokenAmount}),f.maxSlippage=m.getMaxSlippage(f.slippage,f.toTokenAmount),f.providerFee=m.getProviderFee(f.sourceTokenAmount))}}},72888:function(e,t,o){o(58837)},90438:function(e,t,o){o(84792)},94834:function(e,t,o){var r=o(34954),n=o(41084);o(42545),o(2614);var a=o(6600),s=o(22817);o(11265);var i=r.iv`
2  :host {
3    display: block;
4  }
5
6  :host > button {
7    gap: var(--wui-spacing-xxs);
8    padding: var(--wui-spacing-xs);
9    padding-right: var(--wui-spacing-1xs);
10    height: 40px;
11    border-radius: var(--wui-border-radius-l);
12    background: var(--wui-color-gray-glass-002);
13    border-width: 0px;
14    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-002);
15  }
16
17  :host > button wui-image {
18    width: 24px;
19    height: 24px;
20    border-radius: var(--wui-border-radius-s);
21    box-shadow: inset 0 0 0 1px var(--wui-color-gray-glass-010);
22  }
23`,__decorate=function(e,t,o,r){var n,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(s=(a<3?n(s):a>3?n(t,o,s):n(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s};let c=class extends r.oi{constructor(){super(...arguments),this.text=""}render(){return r.dy`
24      <button>
25        ${this.tokenTemplate()}
26        <wui-text variant="paragraph-600" color="fg-100">${this.text}</wui-text>
27      </button>
28    `}tokenTemplate(){return this.imageSrc?r.dy`<wui-image src=${this.imageSrc}></wui-image>`:r.dy`
29      <wui-icon-box
30        size="sm"
31        iconColor="fg-200"
32        backgroundColor="fg-300"
33        icon="networkPlaceholder"
34      ></wui-icon-box>
35    `}};c.styles=[a.ET,a.ZM,i],__decorate([(0,n.Cb)()],c.prototype,"imageSrc",void 0),__decorate([(0,n.Cb)()],c.prototype,"text",void 0),__decorate([(0,s.M)("wui-token-button")],c)},42545:function(e,t,o){var r=o(34954),n=o(41084),a=o(6600),s=o(22817),i=r.iv`
36  :host {
37    display: block;
38    width: var(--local-width);
39    height: var(--local-height);
40  }
41
42  img {
43    display: block;
44    width: 100%;
45    height: 100%;
46    object-fit: cover;
47    object-position: center center;
48    border-radius: inherit;
49  }
50`,__decorate=function(e,t,o,r){var n,a=arguments.length,s=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,r);else for(var i=e.length-1;i>=0;i--)(n=e[i])&&(s=(a<3?n(s):a>3?n(t,o,s):n(t,o))||s);return a>3&&s&&Object.defineProperty(t,o,s),s};let c=class extends r.oi{constructor(){super(...arguments),this.src="./path/to/image.jpg",this.alt="Image",this.size=void 0}render(){return this.style.cssText=`
51      --local-width: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"};
52      --local-height: ${this.size?`var(--wui-icon-size-${this.size});`:"100%"};
53      `,r.dy`<img src=${this.src} alt=${this.alt} @error=${this.handleImageError} />`}handleImageError(){this.dispatchEvent(new CustomEvent("onLoadError",{bubbles:!0,composed:!0}))}};c.styles=[a.ET,a.Bp,i],__decorate([(0,n.Cb)()],c.prototype,"src",void 0),__decorate([(0,n.Cb)()],c.prototype,"alt",void 0),__decorate([(0,n.Cb)()],c.prototype,"size",void 0),__decorate([(0,s.M)("wui-image")],c)}}]);

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.