1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3524],{48466:function(t,e,r){r.d(e,{z:function(){return h}});var i=r(91284),s=r(50521),n=r(16126),u=r(33270),a=r(31512),o=r(47768),l=r(71649),h=class extends u.l{constructor(t,e){super(),this.options=e,this.#t=t,this.#e=null,this.#r=(0,a.O)(),this.bindMethods(),this.setOptions(e)}#t;#i=void 0;#s=void 0;#n=void 0;#u;#a;#r;#e;#o;#l;#h;#c;#d;#f;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#i.addObserver(this),c(this.#i,this.options)?this.#m():this.updateResult(),this.#v())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return d(this.#i,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return d(this.#i,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#g(),this.#b(),this.#i.removeObserver(this)}setOptions(t){let e=this.options,r=this.#i;if(this.options=this.#t.defaultQueryOptions(t),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,o.Nc)(this.options.enabled,this.#i))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#y(),this.#i.setOptions(this.options),e._defaulted&&!(0,o.VS)(this.options,e)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#i,observer:this});let i=this.hasListeners();i&&f(this.#i,r,this.options,e)&&this.#m(),this.updateResult(),i&&(this.#i!==r||(0,o.Nc)(this.options.enabled,this.#i)!==(0,o.Nc)(e.enabled,this.#i)||(0,o.KC)(this.options.staleTime,this.#i)!==(0,o.KC)(e.staleTime,this.#i))&&this.#R();let s=this.#I();i&&(this.#i!==r||(0,o.Nc)(this.options.enabled,this.#i)!==(0,o.Nc)(e.enabled,this.#i)||s!==this.#f)&&this.#w(s)}getOptimisticResult(t){let e=this.#t.getQueryCache().build(this.#t,t),r=this.createResult(e,t);return(0,o.VS)(this.getCurrentResult(),r)||(this.#n=r,this.#a=this.options,this.#u=this.#i.state),r}getCurrentResult(){return this.#n}trackResult(t,e){return new Proxy(t,{get:(t,r)=>(this.trackProp(r),e?.(r),"promise"!==r||this.options.experimental_prefetchInRender||"pending"!==this.#r.status||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(t,r))})}trackProp(t){this.#p.add(t)}getCurrentQuery(){return this.#i}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){let e=this.#t.defaultQueryOptions(t),r=this.#t.getQueryCache().build(this.#t,e);return r.fetch().then(()=>this.createResult(r,e))}fetch(t){return this.#m({...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#m(t){this.#y();let e=this.#i.fetch(this.options,t);return t?.throwOnError||(e=e.catch(o.ZT)),e}#R(){this.#g();let t=(0,o.KC)(this.options.staleTime,this.#i);if(o.sk||this.#n.isStale||!(0,o.PN)(t))return;let e=(0,o.Kp)(this.#n.dataUpdatedAt,t);this.#c=l.mr.setTimeout(()=>{this.#n.isStale||this.updateResult()},e+1)}#I(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#i):this.options.refetchInterval)??!1}#w(t){this.#b(),this.#f=t,!o.sk&&!1!==(0,o.Nc)(this.options.enabled,this.#i)&&(0,o.PN)(this.#f)&&0!==this.#f&&(this.#d=l.mr.setInterval(()=>{(this.options.refetchIntervalInBackground||i.j.isFocused())&&this.#m()},this.#f))}#v(){this.#R(),this.#w(this.#I())}#g(){this.#c&&(l.mr.clearTimeout(this.#c),this.#c=void 0)}#b(){this.#d&&(l.mr.clearInterval(this.#d),this.#d=void 0)}createResult(t,e){let r;let i=this.#i,s=this.options,u=this.#n,l=this.#u,h=this.#a,d=t!==i?t.state:this.#s,{state:m}=t,v={...m},g=!1;if(e._optimisticResults){let r=this.hasListeners(),u=!r&&c(t,e),a=r&&f(t,i,e,s);(u||a)&&(v={...v,...(0,n.z)(m.data,t.options)}),"isRestoring"===e._optimisticResults&&(v.fetchStatus="idle")}let{error:b,errorUpdatedAt:y,status:R}=v;r=v.data;let I=!1;if(void 0!==e.placeholderData&&void 0===r&&"pending"===R){let t;u?.isPlaceholderData&&e.placeholderData===h?.placeholderData?(t=u.data,I=!0):t="function"==typeof e.placeholderData?e.placeholderData(this.#h?.state.data,this.#h):e.placeholderData,void 0!==t&&(R="success",r=(0,o.oE)(u?.data,t,e),g=!0)}if(e.select&&void 0!==r&&!I){if(u&&r===l?.data&&e.select===this.#o)r=this.#l;else try{this.#o=e.select,r=e.select(r),r=(0,o.oE)(u?.data,r,e),this.#l=r,this.#e=null}catch(t){this.#e=t}}this.#e&&(b=this.#e,r=this.#l,y=Date.now(),R="error");let w="fetching"===v.fetchStatus,O="pending"===R,N="error"===R,S=O&&w,C=void 0!==r,E={status:R,fetchStatus:v.fetchStatus,isPending:O,isSuccess:"success"===R,isError:N,isInitialLoading:S,isLoading:S,data:r,dataUpdatedAt:v.dataUpdatedAt,error:b,errorUpdatedAt:y,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdate
1Count:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>d.dataUpdateCount||v.errorUpdateCount>d.errorUpdateCount,isFetching:w,isRefetching:w&&!O,isLoadingError:N&&!C,isPaused:"paused"===v.fetchStatus,isPlaceholderData:g,isRefetchError:N&&C,isStale:p(t,e),refetch:this.refetch,promise:this.#r,isEnabled:!1!==(0,o.Nc)(e.enabled,t)};if(this.options.experimental_prefetchInRender){let e=t=>{"error"===E.status?t.reject(E.error):void 0!==E.data&&t.resolve(E.data)},r=()=>{e(this.#r=E.promise=(0,a.O)())},s=this.#r;switch(s.status){case"pending":t.queryHash===i.queryHash&&e(s);break;case"fulfilled":("error"===E.status||E.data!==s.value)&&r();break;case"rejected":("error"!==E.status||E.error!==s.reason)&&r()}}return E}updateResult(){let t=this.#n,e=this.createResult(this.#i,this.options);this.#u=this.#i.state,this.#a=this.options,void 0!==this.#u.data&&(this.#h=this.#i),(0,o.VS)(e,t)||(this.#n=e,this.#O({listeners:(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#p.size)return!0;let i=new Set(r??this.#p);return this.options.throwOnError&&i.add("error"),Object.keys(this.#n).some(e=>this.#n[e]!==t[e]&&i.has(e))})()}))}#y(){let t=this.#t.getQueryCache().build(this.#t,this.options);if(t===this.#i)return;let e=this.#i;this.#i=t,this.#s=t.state,this.hasListeners()&&(e?.removeObserver(this),t.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#v()}#O(t){s.Vr.batch(()=>{t.listeners&&this.listeners.forEach(t=>{t(this.#n)}),this.#t.getQueryCache().notify({query:this.#i,type:"observerResultsUpdated"})})}};function c(t,e){return!1!==(0,o.Nc)(e.enabled,t)&&void 0===t.state.data&&!("error"===t.state.status&&!1===e.retryOnMount)||void 0!==t.state.data&&d(t,e,e.refetchOnMount)}function d(t,e,r){if(!1!==(0,o.Nc)(e.enabled,t)&&"static"!==(0,o.KC)(e.staleTime,t)){let i="function"==typeof r?r(t):r;return"always"===i||!1!==i&&p(t,e)}return!1}function f(t,e,r,i){return(t!==e||!1===(0,o.Nc)(i.enabled,t))&&(!r.suspense||"error"!==t.state.status)&&p(t,r)}function p(t,e){return!1!==(0,o.Nc)(e.enabled,t)&&t.isStaleByTime((0,o.KC)(e.staleTime,t))}},31663:function(t,e,r){let i;r.d(e,{r:function(){return y}});var s=r(50959),n=r(50521),u=r(47768),a=r(98850);r(11527);var o=s.createContext((i=!1,{clearReset:()=>{i=!1},reset:()=>{i=!0},isReset:()=>i})),l=()=>s.useContext(o),h=(t,e)=>{(t.suspense||t.throwOnError||t.experimental_prefetchInRender)&&!e.isReset()&&(t.retryOnMount=!1)},c=t=>{s.useEffect(()=>{t.clearReset()},[t])},d=({result:t,errorResetBoundary:e,throwOnError:r,query:i,suspense:s})=>t.isError&&!e.isReset()&&!t.isFetching&&i&&(s&&void 0===t.data||(0,u.L3)(r,[t.error,i])),f=s.createContext(!1),p=()=>s.useContext(f);f.Provider;var m=t=>{if(t.suspense){let e=t=>"static"===t?t:Math.max(t??1e3,1e3),r=t.staleTime;t.staleTime="function"==typeof r?(...t)=>e(r(...t)):e(r),"number"==typeof t.gcTime&&(t.gcTime=Math.max(t.gcTime,1e3))}},v=(t,e)=>t.isLoading&&t.isFetching&&!e,g=(t,e)=>t?.suspense&&e.isPending,b=(t,e,r)=>e.fetchOptimistic(t).catch(()=>{r.clearReset()});function y(t,e,r){let i=p(),o=l(),f=(0,a.NL)(r),y=f.defaultQueryOptions(t);f.getDefaultOptions().queries?._experimental_beforeQuery?.(y),y._optimisticResults=i?"isRestoring":"optimistic",m(y),h(y,o),c(o);let R=!f.getQueryCache().get(y.queryHash),[I]=s.useState(()=>new e(f,y)),w=I.getOptimisticResult(y),O=!i&&!1!==t.subscribed;if(s.useSyncExternalStore(s.useCallback(t=>{let e=O?I.subscribe(n.Vr.batchCalls(t)):u.ZT;return I.updateResult(),e},[I,O]),()=>I.getCurrentResult(),()=>I.getCurrentResult()),s.useEffect(()=>{I.setOptions(y)},[y,I]),g(y,w))throw b(y,I,o);if(d({result:w,errorResetBoundary:o,throwOnError:y.throwOnError,query:f.getQueryCache().get(y.queryHash),suspense:y.suspense}))throw w.error;if(f.getDefaultOptions().queries?._experimental_afterQuery?.(y,w),y.experimental_prefetchInRender&&!u.sk&&v(w,i)){let t=R?b(y,I,o):f.getQueryCache().get(y.queryHash)?.promise;t?.catch(u.ZT).finally(()=>{I.updateResult()})}return y.notifyOnChangeProps?w:I.trackResult(w)}},20665:function(t,e,r){r.d(e,{N:function(){return a}});var i=r(48466),s=r(42701),n=class extends i.z{constructor(t,e){super(t,e)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(t){super.setOptions({...t,behavior:(0,s.Gm)()})}getOptimisticResult(t){return t.behavior=(0,s.Gm)(),super.getOptimisticResult(t)}
1fetchNextPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(t){return this.fetch({...t,meta:{fetchMore:{direction:"backward"}}})}createResult(t,e){let{state:r}=t,i=super.createResult(t,e),{isFetching:n,isRefetching:u,isError:a,isRefetchError:o}=i,l=r.fetchMeta?.fetchMore?.direction,h=a&&"forward"===l,c=n&&"forward"===l,d=a&&"backward"===l,f=n&&"backward"===l;return{...i,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,s.Qy)(e,r.data),hasPreviousPage:(0,s.ZF)(e,r.data),isFetchNextPageError:h,isFetchingNextPage:c,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:o&&!h&&!d,isRefetching:u&&!c&&!f}}},u=r(31663);function a(t,e){return(0,u.r)(t,n,e)}},90158:function(t,e,r){r.d(e,{D:function(){return h}});var i=r(50959),s=r(43310),n=r(50521),u=r(33270),a=r(47768),o=class extends u.l{#t;#n=void 0;#N;#S;constructor(t,e){super(),this.#t=t,this.setOptions(e),this.bindMethods(),this.#C()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){let e=this.options;this.options=this.#t.defaultMutationOptions(t),(0,a.VS)(this.options,e)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#N,observer:this}),e?.mutationKey&&this.options.mutationKey&&(0,a.Ym)(e.mutationKey)!==(0,a.Ym)(this.options.mutationKey)?this.reset():this.#N?.state.status==="pending"&&this.#N.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#N?.removeObserver(this)}onMutationUpdate(t){this.#C(),this.#O(t)}getCurrentResult(){return this.#n}reset(){this.#N?.removeObserver(this),this.#N=void 0,this.#C(),this.#O()}mutate(t,e){return this.#S=e,this.#N?.removeObserver(this),this.#N=this.#t.getMutationCache().build(this.#t,this.options),this.#N.addObserver(this),this.#N.execute(t)}#C(){let t=this.#N?.state??(0,s.R)();this.#n={...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset}}#O(t){n.Vr.batch(()=>{if(this.#S&&this.hasListeners()){let e=this.#n.variables,r=this.#n.context;t?.type==="success"?(this.#S.onSuccess?.(t.data,e,r),this.#S.onSettled?.(t.data,null,e,r)):t?.type==="error"&&(this.#S.onError?.(t.error,e,r),this.#S.onSettled?.(void 0,t.error,e,r))}this.listeners.forEach(t=>{t(this.#n)})})}},l=r(98850);function h(t,e){let r=(0,l.NL)(e),[s]=i.useState(()=>new o(r,t));i.useEffect(()=>{s.setOptions(t)},[s,t]);let u=i.useSyncExternalStore(i.useCallback(t=>s.subscribe(n.Vr.batchCalls(t)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),h=i.useCallback((t,e)=>{s.mutate(t,e).catch(a.ZT)},[s]);if(u.error&&(0,a.L3)(s.options.throwOnError,[u.error]))throw u.error;return{...u,mutate:h,mutateAsync:u.mutate}}},90623:function(t,e,r){r.d(e,{a:function(){return n}});var i=r(48466),s=r(31663);function n(t,e){return(0,s.r)(t,i.z,e)}},80334:function(t,e,r){function i(t,e,r){for(let i in e){let s=e[i],n=r?r[i]:null;n&&function(t,e,r){let i=e.split("|").map(t=>t.trim());for(let r=0;r<i.length;r++)switch(e){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof t===e)return}let s=Error(`invalid value for type ${e}`);throw s.code="INVALID_ARGUMENT",s.argument=`value.${r}`,s.value=t,s}(s,n,i),Object.defineProperty(t,i,{enumerable:!0,value:s,writable:!1})}}function s(t,e){if(null==t)return"null";if(null==e&&(e=new Set),"object"==typeof t){if(e.has(t))return"[Circular]";e.add(t)}if(Array.isArray(t))return"[ "+t.map(t=>s(t,e)).join(", ")+" ]";if(t instanceof Uint8Array){let e="0123456789abcdef",r="0x";for(let i=0;i<t.length;i++)r+=e[t[i]>>4]+e[15&t[i]];return r}if("object"==typeof t&&"function"==typeof t.toJSON)return s(t.toJSON(),e);switch(typeof t){case"boolean":case"number":case"symbol":return t.toString();case"bigint":return BigInt(t).toString();case"string":return JSON.stringify(t);case"object":{let r=Object.keys(t);return r.sort(),"{ "+r.map(r=>`${s(r,e)}: ${s(t[r],e)}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function n(t,e,r,n){if(!t)throw function(t,e,r){let n,u=t;{let i=[];if(r){if("message"in r||"code"in r||"name"in r)throw Error(`value will over
1write populated values: ${s(r)}`);for(let t in r){if("shortMessage"===t)continue;let e=r[t];i.push(t+"="+s(e))}}i.push(`code=${e}`),i.push("version=6.15.0"),i.length&&(t+=" ("+i.join(", ")+")")}switch(e){case"INVALID_ARGUMENT":n=TypeError(t);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":n=RangeError(t);break;default:n=Error(t)}return i(n,{code:e}),r&&Object.assign(n,r),null==n.shortMessage&&i(n,{shortMessage:u}),n}(e,r,n)}function u(t,e,r,i){n(t,e,"INVALID_ARGUMENT",{argument:r,value:i})}r.d(e,{dF:function(){return S}}),["NFD","NFC","NFKD","NFKC"].reduce((t,e)=>{try{if("test"!=="test".normalize(e))throw Error("bad");if("NFD"===e){let t=String.fromCharCode(233).normalize("NFD"),e=String.fromCharCode(101,769);if(t!==e)throw Error("broken")}t.push(e)}catch(t){}return t},[]);let a=BigInt(0),o=BigInt(1);function l(t,e){let r=d(t,"value"),i=BigInt(p(e,"width"));return(n(r>>i===a,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),r>>i-o)?-((~r&(o<<i)-o)+o):r}function h(t,e){return d(t,"value")&(o<<BigInt(p(e,"bits")))-o}function c(t,e){switch(typeof t){case"bigint":return t;case"number":return u(Number.isInteger(t),"underflow",e||"value",t),u(t>=-9007199254740991&&t<=9007199254740991,"overflow",e||"value",t),BigInt(t);case"string":try{if(""===t)throw Error("empty string");if("-"===t[0]&&"-"!==t[1])return-BigInt(t.substring(1));return BigInt(t)}catch(r){u(!1,`invalid BigNumberish string: ${r.message}`,e||"value",t)}}u(!1,"invalid BigNumberish value",e||"value",t)}function d(t,e){let r=c(t,e);return n(r>=a,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),r}let f="0123456789abcdef";function p(t,e){switch(typeof t){case"bigint":return u(t>=-9007199254740991&&t<=9007199254740991,"overflow",e||"value",t),Number(t);case"number":return u(Number.isInteger(t),"underflow",e||"value",t),u(t>=-9007199254740991&&t<=9007199254740991,"overflow",e||"value",t),t;case"string":try{if(""===t)throw Error("empty string");return p(BigInt(t),e)}catch(r){u(!1,`invalid numeric string: ${r.message}`,e||"value",t)}}u(!1,"invalid numeric value",e||"value",t)}let m=BigInt(-1),v=BigInt(0),g=BigInt(1),b=BigInt(5),y={},R="0000";for(;R.length<80;)R+=R;function I(t){let e=R;for(;e.length<t;)e+=e;return BigInt("1"+e.substring(0,t))}function w(t,e,r){let i=BigInt(e.width);if(e.signed){let e=g<<i-g;n(null==r||t>=-e&&t<e,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:t}),t=t>v?l(h(t,i),i):-l(h(-t,i),i)}else{let e=g<<i;n(null==r||t>=0&&t<e,"overflow","NUMERIC_FAULT",{operation:r,fault:"overflow",value:t}),t=(t%e+e)%e&e-g}return t}function O(t){"number"==typeof t&&(t=`fixed128x${t}`);let e=!0,r=128,i=18;if("string"==typeof t){if("fixed"===t);else if("ufixed"===t)e=!1;else{let s=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);u(s,"invalid fixed format","format",t),e="u"!==s[1],r=parseInt(s[2]),i=parseInt(s[3])}}else if(t){let s=t,n=(t,e,r)=>null==s[t]?r:(u(typeof s[t]===e,"invalid fixed format ("+t+" not "+e+")","format."+t,s[t]),s[t]);e=n("signed","boolean",e),r=n("width","number",r),i=n("decimals","number",i)}u(r%8==0,"invalid FixedNumber width (not byte aligned)","format.width",r),u(i<=80,"invalid FixedNumber decimals (too large)","format.decimals",i);let s=(e?"":"u")+"fixed"+String(r)+"x"+String(i);return{signed:e,width:r,decimals:i,name:s}}class N{format;#E;#U;#Q;_value;constructor(t,e,r){!function(t,e,r){if(null==r&&(r=""),t!==e){let t=r,e="new";r&&(t+=".",e+=" "+r),n(!1,`private constructor; use ${t}from* methods`,"UNSUPPORTED_OPERATION",{operation:e})}}(t,y,"FixedNumber"),this.#U=e,this.#E=r;let s=function(t,e){let r="";t<v&&(r="-",t*=m);let i=t.toString();if(0===e)return r+i;for(;i.length<=e;)i=R+i;let s=i.length-e;for(i=i.substring(0,s)+"."+i.substring(s);"0"===i[0]&&"."!==i[1];)i=i.substring(1);for(;"0"===i[i.length-1]&&"."!==i[i.length-2];)i=i.substring(0,i.length-1);return r+i}(e,r.decimals);i(this,{format:r.name,_value:s}),this.#Q=I(r.decimals)}get signed(){return this.#E.signed}get width(){return this.#E.width}get decimals(){return this.#E.decimals}get value(){return this.#U}#F(t){u(this.format===t.format,"incompatible format; use fixedNumber.toFormat","other",t)}
1#T(t,e){return new N(y,t=w(t,this.#E,e),this.#E)}#x(t,e){return this.#F(t),this.#T(this.#U+t.#U,e)}addUnsafe(t){return this.#x(t)}add(t){return this.#x(t,"add")}#M(t,e){return this.#F(t),this.#T(this.#U-t.#U,e)}subUnsafe(t){return this.#M(t)}sub(t){return this.#M(t,"sub")}#k(t,e){return this.#F(t),this.#T(this.#U*t.#U/this.#Q,e)}mulUnsafe(t){return this.#k(t)}mul(t){return this.#k(t,"mul")}mulSignal(t){this.#F(t);let e=this.#U*t.#U;return n(e%this.#Q===v,"precision lost during signalling mul","NUMERIC_FAULT",{operation:"mulSignal",fault:"underflow",value:this}),this.#T(e/this.#Q,"mulSignal")}#P(t,e){return n(t.#U!==v,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#F(t),this.#T(this.#U*this.#Q/t.#U,e)}divUnsafe(t){return this.#P(t)}div(t){return this.#P(t,"div")}divSignal(t){n(t.#U!==v,"division by zero","NUMERIC_FAULT",{operation:"div",fault:"divide-by-zero",value:this}),this.#F(t);let e=this.#U*this.#Q;return n(e%t.#U===v,"precision lost during signalling div","NUMERIC_FAULT",{operation:"divSignal",fault:"underflow",value:this}),this.#T(e/t.#U,"divSignal")}cmp(t){let e=this.value,r=t.value,i=this.decimals-t.decimals;return(i>0?r*=I(i):i<0&&(e*=I(-i)),e<r)?-1:e>r?1:0}eq(t){return 0===this.cmp(t)}lt(t){return 0>this.cmp(t)}lte(t){return 0>=this.cmp(t)}gt(t){return this.cmp(t)>0}gte(t){return this.cmp(t)>=0}floor(){let t=this.#U;return this.#U<v&&(t-=this.#Q-g),t=this.#U/this.#Q*this.#Q,this.#T(t,"floor")}ceiling(){let t=this.#U;return this.#U>v&&(t+=this.#Q-g),t=this.#U/this.#Q*this.#Q,this.#T(t,"ceiling")}round(t){if(null==t&&(t=0),t>=this.decimals)return this;let e=this.decimals-t,r=b*I(e-1),i=this.value+r,s=I(e);return w(i=i/s*s,this.#E,"round"),new N(y,i,this.#E)}isZero(){return this.#U===v}isNegative(){return this.#U<v}toString(){return this._value}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return N.fromString(this.toString(),t)}static fromValue(t,e,r){let i=null==e?0:p(e),s=O(r),u=c(t,"value"),a=i-s.decimals;if(a>0){let e=I(a);n(u%e===v,"value loses precision for format","NUMERIC_FAULT",{operation:"fromValue",fault:"underflow",value:t}),u/=e}else a<0&&(u*=I(-a));return w(u,s,"fromValue"),new N(y,u,s)}static fromString(t,e){let r=t.match(/^(-?)([0-9]*)\.?([0-9]*)$/);u(r&&r[2].length+r[3].length>0,"invalid FixedNumber string value","value",t);let i=O(e),s=r[2]||"0",a=r[3]||"";for(;a.length<i.decimals;)a+=R;n(a.substring(i.decimals).match(/^0*$/),"too many decimals for format","NUMERIC_FAULT",{operation:"fromString",fault:"underflow",value:t}),a=a.substring(0,i.decimals);let o=BigInt(r[1]+s+a);return w(o,i,"fromString"),new N(y,o,i)}static fromBytes(t,e){let r=function(t){if(t instanceof Uint8Array){let e="0x0";for(let r of t)e+=f[r>>4]+f[15&r];return BigInt(e)}return c(t)}(function(t,e,r){if(t instanceof Uint8Array)return r?new Uint8Array(t):t;if("string"==typeof t&&t.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){let e=new Uint8Array((t.length-2)/2),r=2;for(let i=0;i<e.length;i++)e[i]=parseInt(t.substring(r,r+2),16),r+=2;return e}u(!1,"invalid BytesLike value",e||"value",t)}(t,"value",!1)),i=O(e);
1return i.signed&&(r=l(r,i.width)),w(r,i,"fromBytes"),new N(y,r,i)}}function S(t){let e;return e=18,e=p(18,"unit"),N.fromValue(t,e,{decimals:e,width:512}).toString()}}}]);
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.