You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
paopao-ce/web/dist/assets/Wallet.b8e2b626.js

31 lines
34 KiB

import{_ as se}from"./post-skeleton.39a35f5b.js";import{_ as ae}from"./main-nav.9110259b.js";import{co as Lt,cp as It,cq as ue,d as st,I as ce,r as D,s as _t,a1 as kt,aK as le,l as W,m as Z,u as fe,q as Ut,cr as de,y as ge,h as x,z as X,V as P,W as L,Y as S,ah as he,Z as me,ai as pe,ae as _e,a3 as b,a4 as I,cs as we,bp as ye,a2 as tt,a6 as et,aa as St,ab as Tt,aY as Ce,aZ as ve,a9 as $,a8 as at,bM as Ee,bN as Be,ct as be,cu as Ae,cv as Ne,J as Ie,ag as Se,ck as Te,az as Me,a5 as Mt,c3 as Pe,a7 as Re}from"./index.f480f018.js";import{f as Fe}from"./formatTime.02109bf5.js";import{_ as De}from"./List.49bcdf81.js";import{_ as Le}from"./Pagination.1263479e.js";import{a as ke,_ as Ue}from"./Skeleton.57e98fe3.js";var Pt=1/0,ze=17976931348623157e292;function Ve(e){if(!e)return e===0?e:0;if(e=Lt(e),e===Pt||e===-Pt){var t=e<0?-1:1;return t*ze}return e===e?e:0}function xe(e){var t=Ve(e),i=t%1;return t===t?i?t-i:t:0}var $e=ue.isFinite,He=Math.min;function Ke(e){var t=Math[e];return function(i,r){if(i=Lt(i),r=r==null?0:He(xe(r),292),r&&$e(i)){var o=(It(i)+"e").split("e"),n=t(o[0]+"e"+(+o[1]+r));return o=(It(n)+"e").split("e"),+(o[0]+"e"+(+o[1]-r))}return t(i)}}var Oe=Ke("round"),Je=Oe;const Ye=e=>1-Math.pow(1-e,5);function qe(e){const{from:t,to:i,duration:r,onUpdate:o,onFinish:n}=e,s=()=>{const a=performance.now(),c=Math.min(a-u,r),l=t+(i-t)*Ye(c/r);if(c===r){n();return}o(l),requestAnimationFrame(s)},u=performance.now();s()}const je={to:{type:Number,default:0},precision:{type:Number,default:0},showSeparator:Boolean,locale:String,from:{type:Number,default:0},active:{type:Boolean,default:!0},duration:{type:Number,default:2e3}};var Ge=st({name:"NumberAnimation",props:je,setup(e){const{localeRef:t}=ce("name"),{duration:i}=e,r=D(e.from),o=_t(()=>{const{locale:f}=e;return f!==void 0?f:t.value});let n=!1;const s=f=>{r.value=f},u=()=>{r.value=e.to,n=!1},a=(f=e.from,g=e.to)=>{n=!0,r.value=e.from,f!==g&&qe({from:f,to:g,duration:i,onUpdate:s,onFinish:u})},c=_t(()=>{var f;const p=Je(r.value,e.precision).toFixed(e.precision).split("."),_=new Intl.NumberFormat(o.value),E=(f=_.formatToParts(.5).find(d=>d.type==="decimal"))===null||f===void 0?void 0:f.value,m=e.showSeparator?_.format(Number(p[0])):p[0],w=p[1];return{integer:m,decimal:w,decimalSeparator:E}});function l(){n||a()}return kt(()=>{le(()=>{e.active&&a()})}),Object.assign({formattedValue:c},{play:l})},render(){const{formattedValue:{integer:e,decimal:t,decimalSeparator:i}}=this;return[e,t?i:null,t]}}),Qe=W("statistic",[Z("label",`
font-weight: var(--n-label-font-weight);
transition: .3s color var(--n-bezier);
font-size: var(--n-label-font-size);
color: var(--n-label-text-color);
`),W("statistic-value",`
margin-top: 4px;
font-weight: var(--n-value-font-weight);
`,[Z("prefix",`
margin: 0 4px 0 0;
font-size: 24px;
transition: .3s color var(--n-bezier);
color: var(--n-value-prefix-text-color);
`,[W("icon",{verticalAlign:"-0.125em"})]),Z("content",`
font-size: 24px;
transition: .3s color var(--n-bezier);
color: var(--n-value-text-color);
`),Z("suffix",`
margin: 0 0 0 4px;
font-size: 24px;
transition: .3s color var(--n-bezier);
color: var(--n-value-suffix-text-color);
`,[W("icon",{verticalAlign:"-0.125em"})])])]);const We=Object.assign(Object.assign({},Ut.props),{tabularNums:Boolean,label:String,value:[String,Number]});var Ze=st({name:"Statistic",props:We,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:i}=fe(e),r=Ut("Statistic","-statistic",Qe,de,e,t),o=_t(()=>{const{self:{labelFontWeight:s,valueFontWeight:u,valuePrefixTextColor:a,labelTextColor:c,valueSuffixTextColor:l,valueTextColor:y,labelFontSize:f},common:{cubicBezierEaseInOut:g}}=r.value;return{"--n-bezier":g,"--n-label-font-size":f,"--n-label-font-weight":s,"--n-label-text-color":c,"--n-value-font-weight":u,"--n-value-prefix-text-color":a,"--n-value-suffix-text-color":l,"--n-value-text-color":y}}),n=i?ge("statistic",void 0,o,e):void 0;return{mergedClsPrefix:t,cssVars:i?void 0:o,themeClass:n==null?void 0:n.themeClass,onRender:n==null?void 0:n.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:i,label:r,prefix:o,suffix:n}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),x("div",{class:[`${t}-statistic`,this.themeClass],style:this.cssVars},X(r,s=>x("div",{class:`${t}-statistic__label`},this.label||s)),x("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},X(o,s=>s&&x("span",{class:`${t}-statistic-value__prefix`},s)),this.value!==void 0?x("span",{class:`${t}-statistic-value__content`},this.value):X(i,s=>s&&x("span",{class:`${t}-statistic-value__content`},s)),X(n,s=>s&&x("span",{class:`${t}-statistic-value__suffix`},s))))}});const Xe={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},tn=S("path",{d:"M102.41 32C62.38 32 32 64.12 32 103.78v304.45C32 447.86 64.38 480 104.41 480h303.2c40 0 72.39-32.14 72.39-71.77v-3.11c-1.35-.56-115.47-48.57-174.5-76.7c-39.82 48.57-91.18 78-144.5 78c-90.18 0-120.8-78.22-78.1-129.72c9.31-11.22 25.15-21.94 49.73-28c38.45-9.36 99.64 5.85 157 24.61a309.41 309.41 0 0 0 25.46-61.67H138.34V194h91.13v-31.83H119.09v-17.75h110.38V99s0-7.65 7.82-7.65h44.55v53H391v17.75H281.84V194h89.08a359.41 359.41 0 0 1-37.72 94.43c27 9.69 49.31 18.88 67.39 24.89c60.32 20 77.23 22.45 79.41 22.7V103.78C480 64.12 447.6 32 407.61 32h-305.2zM152 274.73q-5.81.06-11.67.63c-11.3 1.13-32.5 6.07-44.09 16.23c-34.74 30-13.94 84.93 56.37 84.93c40.87 0 81.71-25.9 113.79-67.37c-41.36-20-77-34.85-114.4-34.42z",fill:"currentColor"},null,-1),en=[tn];var nn=st({name:"LogoAlipay",render:function(t,i){return P(),L("svg",Xe,en)}}),G={},on=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},zt={},T={};let Et;const rn=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];T.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};T.getSymbolTotalCodewords=function(t){return rn[t]};T.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};T.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Et=t};T.isKanjiModeEnabled=function(){return typeof Et!="undefined"};T.toSJIS=function(t){return Et(t)};var ut={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+i)}}e.isValid=function(r){return r&&typeof r.bit!="undefined"&&r.bit>=0&&r.bit<4},e.from=function(r,o){if(e.isValid(r))return r;try{return t(r)}catch{return o}}})(ut);function Vt(){this.buffer=[],this.length=0}Vt.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let i=0;i<t;i++)this.putBit((e>>>t-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math
]))+`;k.KANJI=new RegExp(j,"g");k.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");k.BYTE=new RegExp(fn,"g");k.NUMERIC=new RegExp(Yt,"g");k.ALPHANUMERIC=new RegExp(ln,"g");const dn=new RegExp("^"+j+"$"),gn=new RegExp("^"+Yt+"$"),hn=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");k.testKanji=function(t){return dn.test(t)};k.testNumeric=function(t){return gn.test(t)};k.testAlphanumeric=function(t){return hn.test(t)};(function(e){const t=bt,i=k;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},e.getBestModeForData=function(n){return i.testNumeric(n)?e.NUMERIC:i.testAlphanumeric(n)?e.ALPHANUMERIC:i.testKanji(n)?e.KANJI:e.BYTE},e.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},e.isValid=function(n){return n&&n.bit&&n.ccBits};function r(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+o)}}e.from=function(n,s){if(e.isValid(n))return n;try{return r(n)}catch{return s}}})(z);(function(e){const t=T,i=ct,r=ut,o=z,n=bt,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,u=t.getBCHDigit(s);function a(f,g,p){for(let _=1;_<=40;_++)if(g<=e.getCapacity(_,p,f))return _}function c(f,g){return o.getCharCountIndicator(f,g)+4}function l(f,g){let p=0;return f.forEach(function(_){p+=c(_.mode,g)+_.getBitsLength()}),p}function y(f,g){for(let p=1;p<=40;p++)if(l(f,p)<=e.getCapacity(p,g,o.MIXED))return p}e.from=function(g,p){return n.isValid(g)?parseInt(g,10):p},e.getCapacity=function(g,p,_){if(!n.isValid(g))throw new Error("Invalid QR Code version");typeof _=="undefined"&&(_=o.BYTE);const E=t.getSymbolTotalCodewords(g),m=i.getTotalCodewordsCount(g,p),w=(E-m)*8;if(_===o.MIXED)return w;const d=w-c(_,g);switch(_){case o.NUMERIC:return Math.floor(d/10*3);case o.ALPHANUMERIC:return Math.floor(d/11*2);case o.KANJI:return Math.floor(d/13);case o.BYTE:default:return Math.floor(d/8)}},e.getBestVersionForData=function(g,p){let _;const E=r.from(p,r.M);if(Array.isArray(g)){if(g.length>1)return y(g,E);if(g.length===0)return 1;_=g[0]}else _=g;return a(_.mode,_.getLength(),E)},e.getEncodedBits=function(g){if(!n.isValid(g)||g<7)throw new Error("Invalid QR Code version");let p=g<<12;for(;t.getBCHDigit(p)-u>=0;)p^=s<<t.getBCHDigit(p)-u;return g<<12|p}})(Jt);var qt={};const wt=T,jt=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,mn=1<<14|1<<12|1<<10|1<<4|1<<1,Ft=wt.getBCHDigit(jt);qt.getEncodedBits=function(t,i){const r=t.bit<<3|i;let o=r<<10;for(;wt.getBCHDigit(o)-Ft>=0;)o^=jt<<wt.getBCHDigit(o)-Ft;return(r<<10|o)^mn};var Gt={};const pn=z;function H(e){this.mode=pn.NUMERIC,this.data=e.toString()}H.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};H.prototype.getLength=function(){return this.data.length};H.prototype.getBitsLength=function(){return H.getBitsLength(this.data.length)};H.prototype.write=function(t){let i,r,o;for(i=0;i+3<=this.data.length;i+=3)r=this.data.substr(i,3),o=parseInt(r,10),t.put(o,10);const n=this.data.length-i;n>0&&(r=this.data.substr(i),o=parseInt(r,10),t.put(o,n*3+1))};var _n=H;const wn=z,dt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function K(e){this.mode=wn.ALPHANUMERIC,this.data=e}K.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};K.prototype.getLength=function(){return this.data.length};K.prototype.getBitsLength=function(){return K.getBitsLength(this.data.length)};K.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let r=dt.indexOf(this.data[i])*45;r+=dt.indexOf(this.data[i+1]),t
Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var Nn=J,Qt={exports:{}};(function(e){var t={single_source_shortest_paths:function(i,r,o){var n={},s={};s[r]=0;var u=t.PriorityQueue.make();u.push(r,0);for(var a,c,l,y,f,g,p,_,E;!u.empty();){a=u.pop(),c=a.value,y=a.cost,f=i[c]||{};for(l in f)f.hasOwnProperty(l)&&(g=f[l],p=y+g,_=s[l],E=typeof s[l]=="undefined",(E||_>p)&&(s[l]=p,u.push(l,p),n[l]=c))}if(typeof o!="undefined"&&typeof s[o]=="undefined"){var m=["Could not find a path from ",r," to ",o,"."].join("");throw new Error(m)}return n},extract_shortest_path_from_predecessor_list:function(i,r){for(var o=[],n=r;n;)o.push(n),n=i[n];return o.reverse(),o},find_path:function(i,r,o){var n=t.single_source_shortest_paths(i,r,o);return t.extract_shortest_path_from_predecessor_list(n,o)},PriorityQueue:{make:function(i){var r=t.PriorityQueue,o={},n;i=i||{};for(n in r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=i.sorter||r.default_sorter,o},default_sorter:function(i,r){return i.cost-r.cost},push:function(i,r){var o={value:i,cost:r};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Qt);(function(e){const t=z,i=_n,r=yn,o=Bn,n=Nn,s=k,u=T,a=Qt.exports;function c(m){return unescape(encodeURIComponent(m)).length}function l(m,w,d){const h=[];let C;for(;(C=m.exec(d))!==null;)h.push({data:C[0],index:C.index,mode:w,length:C[0].length});return h}function y(m){const w=l(s.NUMERIC,t.NUMERIC,m),d=l(s.ALPHANUMERIC,t.ALPHANUMERIC,m);let h,C;return u.isKanjiModeEnabled()?(h=l(s.BYTE,t.BYTE,m),C=l(s.KANJI,t.KANJI,m)):(h=l(s.BYTE_KANJI,t.BYTE,m),C=[]),w.concat(d,h,C).sort(function(B,A){return B.index-A.index}).map(function(B){return{data:B.data,mode:B.mode,length:B.length}})}function f(m,w){switch(w){case t.NUMERIC:return i.getBitsLength(m);case t.ALPHANUMERIC:return r.getBitsLength(m);case t.KANJI:return n.getBitsLength(m);case t.BYTE:return o.getBitsLength(m)}}function g(m){return m.reduce(function(w,d){const h=w.length-1>=0?w[w.length-1]:null;return h&&h.mode===d.mode?(w[w.length-1].data+=d.data,w):(w.push(d),w)},[])}function p(m){const w=[];for(let d=0;d<m.length;d++){const h=m[d];switch(h.mode){case t.NUMERIC:w.push([h,{data:h.data,mode:t.ALPHANUMERIC,length:h.length},{data:h.data,mode:t.BYTE,length:h.length}]);break;case t.ALPHANUMERIC:w.push([h,{data:h.data,mode:t.BYTE,length:h.length}]);break;case t.KANJI:w.push([h,{data:h.data,mode:t.BYTE,length:c(h.data)}]);break;case t.BYTE:w.push([{data:h.data,mode:t.BYTE,length:c(h.data)}])}}return w}function _(m,w){const d={},h={start:{}};let C=["start"];for(let v=0;v<m.length;v++){const B=m[v],A=[];for(let R=0;R<B.length;R++){const M=B[R],V=""+v+R;A.push(V),d[V]={node:M,lastCount:0},h[V]={};for(let Y=0;Y<C.length;Y++){const F=C[Y];d[F]&&d[F].node.mode===M.mode?(h[F][V]=f(d[F].lastCount+M.length,M.mode)-f(d[F].lastCount,M.mode),d[F].lastCount+=M.length):(d[F]&&(d[F].lastCount=M.length),h[F][V]=f(M.length,M.mode)+4+t.getCharCountIndicator(M.mode,w))}}C=A}for(let v=0;v<C.length;v++)h[C[v]].end=0;return{map:h,table:d}}function E(m,w){let d;const h=t.getBestModeForData(m);if(d=t.from(w,h),d!==t.BYTE&&d.bit<h.bit)throw new Error('"'+m+'" cannot be encoded with mode '+t.toString(d)+`.
Suggested mode is: `+t.toString(h));switch(d===t.KANJI&&!u.isKanjiModeEnabled()&&(d=t.BYTE),d){case t.NUMERIC:return new i(m);case t.ALPHANUMERIC:return new r(m);case t.KANJI:return new n(m);case t.BYTE:return new o(m)}}e.fromArray=function(w){return w.reduce(function(d,h){return typeof h=="string"?d.push(E(h,null)):h.data&&d.push(E(h.data,h.mode)),d},[])},e.fromString=function(w,d){const h=y(w,u.isKanjiModeEnabled()),C=p(h),v=_(C,d),B=a.find_path(v.map,"start","end"),A=[];for(let R=1;R<B.length-1;R++)A.push(v.table[B[R]].node);return e.fromArray(g(A))},e.rawSplit=function(w){return e.fromArray(y(w,u.isKanjiModeEnabled()))}})(Gt);const ft=T,gt=ut,In=sn,Sn=an,Tn=xt,Mn=$t,yt=Ht,Ct=ct,Pn=cn,it=Jt,Rn=qt,Fn=z,ht=Gt;function Dn(e,t){const i=e.size,r=Mn.getPositions(t);for(let o=0;o<r.length;o++){const n=r[o][0],s=r[o][1];for(let u=-1;u<=7;u++)if(!(n+u<=-1||i<=n+u))for(let a=-1;a<=7;a++)s+a<=-1||i<=s+a||(u>=0&&u<=6&&(a===0||a===6)||a>=0&&a<=6&&(u===0||u===6)||u>=2&&u<=4&&a>=2&&a<=4?e.set(n+u,s+a,!0,!0):e.set(n+u,s+a,!1,!0))}}function Ln(e){const t=e.size;for(let i=8;i<t-8;i++){const r=i%2===0;e.set(i,6,r,!0),e.set(6,i,r,!0)}}function kn(e,t){const i=Tn.getPositions(t);for(let r=0;r<i.length;r++){const o=i[r][0],n=i[r][1];for(let s=-2;s<=2;s++)for(let u=-2;u<=2;u++)s===-2||s===2||u===-2||u===2||s===0&&u===0?e.set(o+s,n+u,!0,!0):e.set(o+s,n+u,!1,!0)}}function Un(e,t){const i=e.size,r=it.getEncodedBits(t);let o,n,s;for(let u=0;u<18;u++)o=Math.floor(u/3),n=u%3+i-8-3,s=(r>>u&1)===1,e.set(o,n,s,!0),e.set(n,o,s,!0)}function mt(e,t,i){const r=e.size,o=Rn.getEncodedBits(t,i);let n,s;for(n=0;n<15;n++)s=(o>>n&1)===1,n<6?e.set(n,8,s,!0):n<8?e.set(n+1,8,s,!0):e.set(r-15+n,8,s,!0),n<8?e.set(8,r-n-1,s,!0):n<9?e.set(8,15-n-1+1,s,!0):e.set(8,15-n-1,s,!0);e.set(r-8,8,1,!0)}function zn(e,t){const i=e.size;let r=-1,o=i-1,n=7,s=0;for(let u=i-1;u>0;u-=2)for(u===6&&u--;;){for(let a=0;a<2;a++)if(!e.isReserved(o,u-a)){let c=!1;s<t.length&&(c=(t[s]>>>n&1)===1),e.set(o,u-a,c),n--,n===-1&&(s++,n=7)}if(o+=r,o<0||i<=o){o-=r,r=-r;break}}}function Vn(e,t,i){const r=new In;i.forEach(function(a){r.put(a.mode.bit,4),r.put(a.getLength(),Fn.getCharCountIndicator(a.mode,e)),a.write(r)});const o=ft.getSymbolTotalCodewords(e),n=Ct.getTotalCodewordsCount(e,t),s=(o-n)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);const u=(s-r.getLengthInBits())/8;for(let a=0;a<u;a++)r.put(a%2?17:236,8);return xn(r,e,t)}function xn(e,t,i){const r=ft.getSymbolTotalCodewords(t),o=Ct.getTotalCodewordsCount(t,i),n=r-o,s=Ct.getBlocksCount(t,i),u=r%s,a=s-u,c=Math.floor(r/s),l=Math.floor(n/s),y=l+1,f=c-l,g=new Pn(f);let p=0;const _=new Array(s),E=new Array(s);let m=0;const w=new Uint8Array(e.buffer);for(let B=0;B<s;B++){const A=B<a?l:y;_[B]=w.slice(p,p+A),E[B]=g.encode(_[B]),p+=A,m=Math.max(m,A)}const d=new Uint8Array(r);let h=0,C,v;for(C=0;C<m;C++)for(v=0;v<s;v++)C<_[v].length&&(d[h++]=_[v][C]);for(C=0;C<f;C++)for(v=0;v<s;v++)d[h++]=E[v][C];return d}function $n(e,t,i,r){let o;if(Array.isArray(e))o=ht.fromArray(e);else if(typeof e=="string"){let c=t;if(!c){const l=ht.rawSplit(e);c=it.getBestVersionForData(l,i)}o=ht.fromString(e,c||40)}else throw new Error("Invalid data");const n=it.getBestVersionForData(o,i);if(!n)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=n;else if(t<n)throw new Error(`
The chosen QR Code version cannot contain this amount of data.
Minimum version required to store current data is: `+n+`.
`);const s=Vn(t,i,o),u=ft.getSymbolSize(t),a=new Sn(u);return Dn(a,t),Ln(a),kn(a,t),mt(a,i,0),t>=7&&Un(a,t),zn(a,s),isNaN(r)&&(r=yt.getBestMask(a,mt.bind(null,a,i))),yt.applyMask(r,a),mt(a,i,r),{modules:a,version:t,errorCorrectionLevel:i,maskPattern:r,segments:o}}zt.create=function(t,i){if(typeof t=="undefined"||t==="")throw new Error("No input text");let r=gt.M,o,n;return typeof i!="undefined"&&(r=gt.from(i.errorCorrectionLevel,gt.M),o=it.from(i.version),n=yt.from(i.maskPattern),i.toSJISFunc&&ft.setToSJISFunction(i.toSJISFunc)),$n(t,o,r,n)};var Wt={},At={};(function(e){function t(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let r=i.slice().replace("#","").split("");if(r.length<3||r.length===5||r.length>8)throw new Error("Invalid hex color: "+i);(r.length===3||r.length===4)&&(r=Array.prototype.concat.apply([],r.map(function(n){return[n,n]}))),r.length===6&&r.push("F","F");const o=parseInt(r.join(""),16);return{r:o>>24&255,g:o>>16&255,b:o>>8&255,a:o&255,hex:"#"+r.slice(0,6).join("")}}e.getOptions=function(r){r||(r={}),r.color||(r.color={});const o=typeof r.margin=="undefined"||r.margin===null||r.margin<0?4:r.margin,n=r.width&&r.width>=21?r.width:void 0,s=r.scale||4;return{width:n,scale:n?4:s,margin:o,color:{dark:t(r.color.dark||"#000000ff"),light:t(r.color.light||"#ffffffff")},type:r.type,rendererOpts:r.rendererOpts||{}}},e.getScale=function(r,o){return o.width&&o.width>=r+o.margin*2?o.width/(r+o.margin*2):o.scale},e.getImageWidth=function(r,o){const n=e.getScale(r,o);return Math.floor((r+o.margin*2)*n)},e.qrToImageData=function(r,o,n){const s=o.modules.size,u=o.modules.data,a=e.getScale(s,n),c=Math.floor((s+n.margin*2)*a),l=n.margin*a,y=[n.color.light,n.color.dark];for(let f=0;f<c;f++)for(let g=0;g<c;g++){let p=(f*c+g)*4,_=n.color.light;if(f>=l&&g>=l&&f<c-l&&g<c-l){const E=Math.floor((f-l)/a),m=Math.floor((g-l)/a);_=y[u[E*s+m]?1:0]}r[p++]=_.r,r[p++]=_.g,r[p++]=_.b,r[p]=_.a}}})(At);(function(e){const t=At;function i(o,n,s){o.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=s,n.width=s,n.style.height=s+"px",n.style.width=s+"px"}function r(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}e.render=function(n,s,u){let a=u,c=s;typeof a=="undefined"&&(!s||!s.getContext)&&(a=s,s=void 0),s||(c=r()),a=t.getOptions(a);const l=t.getImageWidth(n.modules.size,a),y=c.getContext("2d"),f=y.createImageData(l,l);return t.qrToImageData(f.data,n,a),i(y,c,l),y.putImageData(f,0,0),c},e.renderToDataURL=function(n,s,u){let a=u;typeof a=="undefined"&&(!s||!s.getContext)&&(a=s,s=void 0),a||(a={});const c=e.render(n,s,a),l=a.type||"image/png",y=a.rendererOpts||{};return c.toDataURL(l,y.quality)}})(Wt);var Zt={};const Hn=At;function Dt(e,t){const i=e.a/255,r=t+'="'+e.hex+'"';return i<1?r+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':r}function pt(e,t,i){let r=e+t;return typeof i!="undefined"&&(r+=" "+i),r}function Kn(e,t,i){let r="",o=0,n=!1,s=0;for(let u=0;u<e.length;u++){const a=Math.floor(u%t),c=Math.floor(u/t);!a&&!n&&(n=!0),e[u]?(s++,u>0&&a>0&&e[u-1]||(r+=n?pt("M",a+i,.5+c+i):pt("m",o,0),o=0,n=!1),a+1<t&&e[u+1]||(r+=pt("h",s),s=0)):o++}return r}Zt.render=function(t,i,r){const o=Hn.getOptions(i),n=t.modules.size,s=t.modules.data,u=n+o.margin*2,a=o.color.light.a?"<path "+Dt(o.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",c="<path "+Dt(o.color.dark,"stroke")+' d="'+Kn(s,n,o.margin)+'"/>',l='viewBox="0 0 '+u+" "+u+'"',y=o.width?'width="'+o.width+'" height="'+o.width+'" ':"",f='<svg xmlns="http://www.w3.org/2000/svg" '+y+l+' shape-rendering="crispEdges">'+a+c+`</svg>
`;return typeof r=="function"&&r(null,f),f};const On=on,vt=zt,Xt=Wt,Jn=Zt;function Nt(e,t,i,r,o){const n=[].slice.call(arguments,1),s=n.length,u=typeof n[s-1]=="function";if(!u&&!On())throw new Error("Callback required as last argument");if(u){if(s<2)throw new Error("Too few arguments provided");s===2?(o=i,i=t,t=r=void 0):s===3&&(t.getContext&&typeof o=="undefined"?(o=r,r=void 0):(o=r,r=i,i=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=t,t=r=void 0):s===2&&!t.getContext&&(r=i,i=t,t=void 0),new Promise(function(a,c){try{const l=vt.create(i,r);a(e(l,t,r))}catch(l){c(l)}})}try{const a=vt.create(i,r);o(null,e(a,t,r))}catch(a){o(a)}}G.create=vt.create;G.toCanvas=Nt.bind(null,Xt.render);G.toDataURL=Nt.bind(null,Xt.renderToDataURL);G.toString=Nt.bind(null,function(e,t,i){return Jn.render(e,i)});const te=e=>(Ee("data-v-4ef16ff5"),e=e(),Be(),e),Yn={class:"balance-wrap"},qn={class:"balance-line"},jn={class:"balance-opts"},Gn=at(" \u5145\u503C "),Qn=at(" \u63D0\u73B0 "),Wn={key:0,class:"pagination-wrap"},Zn={key:0,class:"skeleton-wrap"},Xn={key:1},to={key:0,class:"empty-wrap"},eo={class:"bill-line"},no={key:0,class:"amount-options"},oo={key:1,style:{"margin-top":"10px"}},ro=at(" \u524D\u5F80\u652F\u4ED8 "),io={class:"qrcode-wrap"},so=te(()=>S("canvas",{id:"qrcode-container"},null,-1)),ao={class:"pay-tips"},uo={class:"pay-sub-tips"},co=te(()=>S("span",{style:{"margin-left":"6px"}}," \u652F\u4ED8\u7ED3\u679C\u5B9E\u65F6\u540C\u6B65\u4E2D... ",-1)),lo=st({setup(e){const t=me(),i=pe(),r=D(!1),o=D(100),n=D(!1),s=D(""),u=D(!1),a=D([]),c=D(+i.query.p||1),l=D(20),y=D(0),f=D([100,200,300,500,1e3,3e3,5e3,1e4,5e4]),g=()=>{u.value=!0,be({page:c.value,page_size:l.value}).then(d=>{u.value=!1,a.value=d.list,y.value=Math.ceil(d.pager.total_rows/l.value),window.scrollTo(0,0)}).catch(d=>{u.value=!1})},p=d=>{c.value=d,g()},_=()=>{const d=localStorage.getItem("PAOPAO_TOKEN")||"";d?we(d).then(h=>{t.commit("updateUserinfo",h),t.commit("triggerAuth",!1),g()}).catch(h=>{t.commit("triggerAuth",!0),t.commit("userLogout")}):(t.commit("triggerAuth",!0),t.commit("userLogout"))},E=()=>{r.value=!0},m=d=>{n.value=!0,Ae({amount:o.value}).then(h=>{n.value=!1,s.value=h.pay,G.toCanvas(document.querySelector("#qrcode-container"),h.pay,{width:150,margin:2});const C=setInterval(()=>{Ne({id:h.id}).then(v=>{v.status==="TRADE_SUCCESS"&&(clearInterval(C),window.$message.success("\u5145\u503C\u6210\u529F"),r.value=!1,s.value="",_())}).catch(v=>{console.log(v)})},2e3)}).catch(h=>{n.value=!1})},w=()=>{t.state.userInfo.balance==0?window.$message.warning("\u60A8\u6682\u65E0\u53EF\u63D0\u73B0\u8D44\u91D1"):window.$message.warning("\u8BE5\u529F\u80FD\u5373\u5C06\u5F00\u653E")};return kt(()=>{_()}),(d,h)=>{const C=ae,v=Ge,B=Ze,A=Ie,R=Se,M=Le,V=se,Y=ke,F=Ue,ee=De,ne=_e,oe=Te,re=Me,ie=ye;return P(),L("div",null,[b(C,{title:"\u94B1\u5305"}),b(ee,{class:"main-content-wrap",bordered:""},{footer:I(()=>[y.value>1?(P(),L("div",Wn,[b(M,{page:c.value,"onUpdate:page":p,"page-slot":tt(t).state.collapsedRight?5:8,"page-count":y.value},null,8,["page","page-slot","page-count"])])):et("",!0)]),default:I(()=>[S("div",Yn,[S("div",qn,[b(B,{label:"\u8D26\u6237\u4F59\u989D (\u5143)"},{default:I(()=>[b(v,{from:0,to:(tt(t).state.userInfo.balance||0)/100,duration:500,precision:2},null,8,["from","to"])]),_:1}),S("div",jn,[b(R,{vertical:""},{default:I(()=>[b(A,{size:"small",secondary:"",type:"primary",onClick:E},{default:I(()=>[Gn]),_:1}),b(A,{size:"small",secondary:"",type:"tertiary",onClick:w},{default:I(()=>[Qn]),_:1})]),_:1})])])]),u.value?(P(),L("div",Zn,[b(V,{num:l.value},null,8,["num"])])):(P(),L("div",Xn,[a.value.length===0?(P(),L("div",to,[b(Y,{size:"large",description:"\u6682\u65E0\u6570\u636E"})])):et("",!0),(P(!0),L(St,null,Tt(a.value,N=>(P(),Mt(F,{key:N.id},{default:I(()=>[S("div",eo,[S("div",null,"NO."+$(N.id),1),S("div",null,$(N.reason),1),S("div",{class:Pe({income:N.change_amount>=0,out:N.change_amount<0})},$((N.change_amount>0?"+":"")+(N.change_amount/100).toFixed(2)),3),S("div",null,$(tt(Fe)(N.created_on)),1)])]),_:2},1024))),128))]))]),_:1}),b(ie,