PageSourceSearch

https://funday.asia/assets/MLM-DO5y4YMl.js

js funday.asia collected 2026-10-03 19:06:59 UTC 31,883 bytes, 9 lines download raw bytes

vendor: 21,786 bytes, lines 1-7
1import{d as Be,k as Ae,Z as ve,u as Re,l as be,a5 as Ne,o as k,c as D,b as E,e as q,w as x,_ as G,N as Ut,F as W,q as at,x as Ft,t as V,n as Pe,ac as Ie,f as X,z as Z,A as H,B as zt,h as tt,i as et,r as nt,aM as Vt,R as Te,g as Me}from"./main-Bpkn1I1I.js";/* empty css             *//* empty css                  */import"./el-tooltip-l0sNRNKZ.js";import{g as Se}from"./token-D_ZQp8Og.js";var O={},lt,Kt;function Le(){return Kt||(Kt=1,lt=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),lt}var ct={},K={},Ht;function J(){if(Ht)return K;Ht=1;let r;const o=[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];return K.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},K.getSymbolTotalCodewords=function(e){return o[e]},K.getBCHDigit=function(i){let e=0;for(;i!==0;)e++,i>>>=1;return e},K.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');r=e},K.isKanjiModeEnabled=function(){return typeof r<"u"},K.toSJIS=function(e){return r(e)},K}var ft={},Jt;function Lt(){return Jt||(Jt=1,function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function o(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+i)}}r.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},r.from=function(e,t){if(r.isValid(e))return e;try{return o(e)}catch{return t}}}(ft)),ft}var dt,Yt;function _e(){if(Yt)return dt;Yt=1;function r(){this.buffer=[],this.length=0}return r.prototype={get:function(o){const i=Math.floor(o/8);return(this.buffer[i]>>>7-o%8&1)===1},put:function(o,i){for(let e=0;e<i;e++)this.putBit((o>>>i-e-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(o){const i=Math.floor(this.length/8);this.buffer.length<=i&&this.buffer.push(0),o&&(this.buffer[i]|=128>>>this.length%8),this.length++}},dt=r,dt}var gt,jt;function ke(){if(jt)return gt;jt=1;function r(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}return r.prototype.set=function(o,i,e,t){const n=o*this.size+i;this.data[n]=e,t&&(this.reservedBit[n]=!0)},r.prototype.get=function(o,i){return this.data[o*this.size+i]},r.prototype.xor=function(o,i,e){this.data[o*this.size+i]^=e},r.prototype.isReserved=function(o,i){return this.reservedBit[o*this.size+i]},gt=r,gt}var ht={},Gt;function De(){return Gt||(Gt=1,function(r){const o=J().getSymbolSize;r.getRowColCoords=function(e){if(e===1)return[];const t=Math.floor(e/7)+2,n=o(e),s=n===145?26:Math.ceil((n-13)/(2*t-2))*2,u=[n-7];for(let a=1;a<t-1;a++)u[a]=u[a-1]-s;return u.push(6),u.reverse()},r.getPositions=function(e){const t=[],n=r.getRowColCoords(e),s=n.length;for(let u=0;u<s;u++)for(let a=0;a<s;a++)u===0&&a===0||u===0&&a===s-1||u===s-1&&a===0||t.push([n[u],n[a]]);return t}}(ht)),ht}var mt={},Ot;function qe(){if(Ot)return mt;Ot=1;const r=J().getSymbolSize,o=7;return mt.getPositions=function(e){const t=r(e);return[[0,0],[t-o,0],[0,t-o]]},mt}var wt={},Qt;function Ue(){return Qt||(Qt=1,function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const o={N1:3,N2:3,N3:40,N4:10};r.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},r.from=function(t){return r.isValid(t)?parseInt(t,10):void 0},r.getPenaltyN1=function(t){const n=t.size;let s=0,u=0,a=0,f=null,g=null;for(let B=0;B<n;B++){u=a=0,f=g=null;for(let p=0;p<n;p++){let d=t.get(B,p);d===f?u++:(u>=5&&(s+=o.N1+(u-5)),f=d,u=1),d=t.get(p,B),d===g?a++:(a>=5&&(s+=o.N1+(a-5)),g=d,a=1)}u>=5&&(s+=o.N1+(u-5)),a>=5&&(s+=o.N1+(a-5))}return s},r.getPenaltyN2=function(t){const n=t.size;let s=0;for(let u=0;u<n-1;u++)for(let a=0;a<n-1;a++){const f=t.get(u,a)+t.get(u,a+1)+t.get(u+1,a)+t.get(u+1,a+1);(f===4||f===0)&&s++}return s*o.N2},r.getPenaltyN3=function(t){const n=t.size;let s=0,u=0,a=0;for(let f=0;f<n;f++){u=a=0;for(let g=0;g<n;g++)u=u<<1&2047|t.get(f,g),g>=10&&(u===1488||u===93)&&s++,a=a<<1&2047|t.get(g,f),g>=10&&(a===1488||a===93)&&s++}return s*o.N3},r.getPenaltyN4=function(t){let n=0;const s=t.data.length;for(let a=0;a<s;a++)n+=t.data[a];return Math.abs(Math.ceil(n*100/s/5)-10)*o.N4};function i(e,t,n){switch(e){case r.Patterns.PATTERN000:return(t+n)%2===0;case r.Patterns.PATTERN001:return t%2===0;case r.Patterns.PATTERN010:return n%3===0;case r.Patterns.PATTERN011:return(t+n)%3===0;case r.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2===0;case r.Patterns.PATTERN101:return t*n%2+t*n%3===0;case r.Patterns.PATTERN110:return(t*n%2+t*n%3)%2===0;case r.Patterns.PATTERN111:return(t*n%3+(t+n)%2)%2===0;default:throw new Error("bad maskPattern:"+e)}}r.applyMask=function(t,n){const s=n.size;for(let u=0;u<s;u++)for(let a=0;a<s;a++)n.isReserved(a,u)||n.xor(a,u,i(t,a,u))},r.getBestMask=function(t,n){const s=Object.keys(r.Patterns).length;let u=0,a=1/0;for(let f=0;f<s;f++){n(f),r.applyMask(f,t);const g=r.getPenaltyN1(t)+r.getPenaltyN2(t)+r.getPenaltyN3(t)+r.getPenaltyN4(t);r.applyMask(f,t),g<a&&(a=g,u=f)}return u}}(wt)),wt}var rt={},$t;function me(){if($t)return rt;$t=1;const r=Lt(),o=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return rt.getBlocksCount=function(t,n){switch(n){case r.L:return o[(t-1)*4+0];case r.M:return o[(t-1)*4+1];case r.Q:return o[(t-1)*4+2];case r.H:return o[(t-1)*4+3];default:return}},rt.getTotalCodewordsCount=function(t,n){switch(n){case r.L:return i[(t-1)*4+0];case r.M:return i[(t-1)*4+1];case r.Q:return i[(t-1)*4+2];case r.H:return i[(t-1)*4+3];default:return}},rt}var pt={},Q={},xt;function Fe(){if(xt)return Q;xt=1;const r=new Uint8Array(512),o=new Uint8Array(256);return function(){let e=1;for(let t=0;t<255;t++)r[t]=e,o[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)r[t]=r[t-255]}(),Q.log=function(e){if(e<1)throw new Error("log("+e+")");return o[e]},Q.exp=function(e){return r[e]},Q.mul=function(e,t){return e===0||t===0?0:r[o[e]+o[t]]},Q}var Wt;function ze(){return Wt||(Wt=1,function(r){const o=Fe();r.mul=function(e,t){const n=new Uint8Array(e.length+t.length-1);for(let s=0;s<e.length;s++)for(let u=0;u<t.length;u++)n[s+u]^=o.mul(e[s],t[u]);return n},r.mod=function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){const s=n[0];for(let a=0;a<t.length;a++)n[a]^=o.mul(t[a],s);let u=0;for(;u<n.length&&n[u]===0;)u++;n=n.slice(u)}return n},r.generateECPolynomial=function(e){let t=new Uint8Array([1]);for(let n=0;n<e;n++)t=r.mul(t,new Uint8Array([1,o.exp(n)]));return t}}(pt)),pt}var yt,Xt;function Ve(){if(Xt)return yt;Xt=1;const r=ze();function o(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(e){this.degree=e,this.genPoly=r.generateECPolynomial(this.degree)},o.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(e.length+this.degree);t.set(e);const n=r.mod(t,this.genPoly),s=this.degree-n.length;if(s>0){const u=new Uint8Array(this.degree);return u.set(n,s),u}return n},yt=o,yt}var Ct={},Et={},Bt={},Zt;function we(){return Zt||(Zt=1,Bt.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),Bt}var U={},te;function pe(){if(te)return U;te=1;const r="[0-9]+",o="[A-Z $%*+\\-./:]+";let i="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";i=i.replace(/u/g,"\\u");const e="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+`)(?:.|[\r
2]))+`;U.KANJI=new RegExp(i,"g"),U.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),U.BYTE=new RegExp(e,"g"),U.NUMERIC=new RegExp(r,"g"),U.ALPHANUMERIC=new RegExp(o,"g");const t=new RegExp("^"+i+"$"),n=new RegExp("^"+r+"$"),s=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return U.testKanji=function(a){return t.test(a)},U.testNumeric=function(a){return n.test(a)},U.testAlphanumeric=function(a){return s.test(a)},U}var ee;function Y(){return ee||(ee=1,function(r){const o=we(),i=pe();r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(n,s){if(!n.ccBits)throw new Error("Invalid mode: "+n);if(!o.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?n.ccBits[0]:s<27?n.ccBits[1]:n.ccBits[2]},r.getBestModeForData=function(n){return i.testNumeric(n)?r.NUMERIC:i.testAlphanumeric(n)?r.ALPHANUMERIC:i.testKanji(n)?r.KANJI:r.BYTE},r.toString=function(n){if(n&&n.id)return n.id;throw new Error("Invalid mode")},r.isValid=function(n){return n&&n.bit&&n.ccBits};function e(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+t)}}r.from=function(n,s){if(r.isValid(n))return n;try{return e(n)}catch{return s}}}(Et)),Et}var ne;function Ke(){return ne||(ne=1,function(r){const o=J(),i=me(),e=Lt(),t=Y(),n=we(),s=7973,u=o.getBCHDigit(s);function a(p,d,P){for(let I=1;I<=40;I++)if(d<=r.getCapacity(I,P,p))return I}function f(p,d){return t.getCharCountIndicator(p,d)+4}function g(p,d){let P=0;return p.forEach(function(I){const S=f(I.mode,d);P+=S+I.getBitsLength()}),P}function B(p,d){for(let P=1;P<=40;P++)if(g(p,P)<=r.getCapacity(P,d,t.MIXED))return P}r.from=function(d,P){return n.isValid(d)?parseInt(d,10):P},r.getCapacity=function(d,P,I){if(!n.isValid(d))throw new Error("Invalid QR Code version");typeof I>"u"&&(I=t.BYTE);const S=o.getSymbolTotalCodewords(d),R=i.getTotalCodewordsCount(d,P),T=(S-R)*8;if(I===t.MIXED)return T;const b=T-f(I,d);switch(I){case t.NUMERIC:return Math.floor(b/10*3);case t.ALPHANUMERIC:return Math.floor(b/11*2);case t.KANJI:return Math.floor(b/13);case t.BYTE:default:return Math.floor(b/8)}},r.getBestVersionForData=function(d,P){let I;const S=e.from(P,e.M);if(Array.isArray(d)){if(d.length>1)return B(d,S);if(d.length===0)return 1;I=d[0]}else I=d;return a(I.mode,I.getLength(),S)},r.getEncodedBits=function(d){if(!n.isValid(d)||d<7)throw new Error("Invalid QR Code version");let P=d<<12;for(;o.getBCHDigit(P)-u>=0;)P^=s<<o.getBCHDigit(P)-u;return d<<12|P}}(Ct)),Ct}var At={},re;function He(){if(re)return At;re=1;const r=J(),o=1335,i=21522,e=r.getBCHDigit(o);return At.getEncodedBits=function(n,s){const u=n.bit<<3|s;let a=u<<10;for(;r.getBCHDigit(a)-e>=0;)a^=o<<r.getBCHDigit(a)-e;return(u<<10|a)^i},At}var vt={},Rt,oe;function Je(){if(oe)return Rt;oe=1;const r=Y();function o(i){this.mode=r.NUMERIC,this.data=i.toString()}return o.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(e){let t,n,s;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),s=parseInt(n,10),e.put(s,10);const u=this.data.length-t;u>0&&(n=this.data.substr(t),s=parseInt(n,10),e.put(s,u*3+1))},Rt=o,Rt}var bt,ie;function Ye(){if(ie)return bt;ie=1;const r=Y(),o=["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 i(e){this.mode=r.ALPHANUMERIC,this.data=e}return i.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let s=o.indexOf(this.data[n])*45;s+=o.indexOf(this.data[n+1]),t.put(s,11)}this.data.length%2&&t.put(o.indexOf(this.data[n]),6)},bt=i,bt}var Nt,se;function je(){if(se)return Nt;se=1;const r=Y();function o(i){this.mode=r.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}return o.getBitsLength=function(e){return e*8},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(i){for(let e=0,t=this.data.length;e<t;e++)i.put(this.data[e],8)},Nt=o,Nt}var Pt,ue;function Ge(){if(ue)return Pt;ue=1;const r=Y(),o=J();function i(e){this.mode=r.KANJI,this.data=e}return i.getBitsLength=function(t){return t*13},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let n=o.toSJIS(this.data[t]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
3Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}},Pt=i,Pt}var It={exports:{}},ae;function Oe(){return ae||(ae=1,function(r){var o={single_source_shortest_paths:function(i,e,t){var n={},s={};s[e]=0;var u=o.PriorityQueue.make();u.push(e,0);for(var a,f,g,B,p,d,P,I,S;!u.empty();){a=u.pop(),f=a.value,B=a.cost,p=i[f]||{};for(g in p)p.hasOwnProperty(g)&&(d=p[g],P=B+d,I=s[g],S=typeof s[g]>"u",(S||I>P)&&(s[g]=P,u.push(g,P),n[g]=f))}if(typeof t<"u"&&typeof s[t]>"u"){var R=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(R)}return n},extract_shortest_path_from_predecessor_list:function(i,e){for(var t=[],n=e;n;)t.push(n),i[n],n=i[n];return t.reverse(),t},find_path:function(i,e,t){var n=o.single_source_shortest_paths(i,e,t);return o.extract_shortest_path_from_predecessor_list(n,t)},PriorityQueue:{make:function(i){var e=o.PriorityQueue,t={},n;i=i||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t.queue=[],t.sorter=i.sorter||e.default_sorter,t},default_sorter:function(i,e){return i.cost-e.cost},push:function(i,e){var t={value:i,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=o}(It)),It.exports}var le;function Qe(){return le||(le=1,function(r){const o=Y(),i=Je(),e=Ye(),t=je(),n=Ge(),s=pe(),u=J(),a=Oe();function f(R){return unescape(encodeURIComponent(R)).length}function g(R,T,b){const A=[];let L;for(;(L=R.exec(b))!==null;)A.push({data:L[0],index:L.index,mode:T,length:L[0].length});return A}function B(R){const T=g(s.NUMERIC,o.NUMERIC,R),b=g(s.ALPHANUMERIC,o.ALPHANUMERIC,R);let A,L;return u.isKanjiModeEnabled()?(A=g(s.BYTE,o.BYTE,R),L=g(s.KANJI,o.KANJI,R)):(A=g(s.BYTE_KANJI,o.BYTE,R),L=[]),T.concat(b,A,L).sort(function(C,y){return C.index-y.index}).map(function(C){return{data:C.data,mode:C.mode,length:C.length}})}function p(R,T){switch(T){case o.NUMERIC:return i.getBitsLength(R);case o.ALPHANUMERIC:return e.getBitsLength(R);case o.KANJI:return n.getBitsLength(R);case o.BYTE:return t.getBitsLength(R)}}function d(R){return R.reduce(function(T,b){const A=T.length-1>=0?T[T.length-1]:null;return A&&A.mode===b.mode?(T[T.length-1].data+=b.data,T):(T.push(b),T)},[])}function P(R){const T=[];for(let b=0;b<R.length;b++){const A=R[b];switch(A.mode){case o.NUMERIC:T.push([A,{data:A.data,mode:o.ALPHANUMERIC,length:A.length},{data:A.data,mode:o.BYTE,length:A.length}]);break;case o.ALPHANUMERIC:T.push([A,{data:A.data,mode:o.BYTE,length:A.length}]);break;case o.KANJI:T.push([A,{data:A.data,mode:o.BYTE,length:f(A.data)}]);break;case o.BYTE:T.push([{data:A.data,mode:o.BYTE,length:f(A.data)}])}}return T}function I(R,T){const b={},A={start:{}};let L=["start"];for(let w=0;w<R.length;w++){const C=R[w],y=[];for(let h=0;h<C.length;h++){const v=C[h],c=""+w+h;y.push(c),b[c]={node:v,lastCount:0},A[c]={};for(let l=0;l<L.length;l++){const m=L[l];b[m]&&b[m].node.mode===v.mode?(A[m][c]=p(b[m].lastCount+v.length,v.mode)-p(b[m].lastCount,v.mode),b[m].lastCount+=v.length):(b[m]&&(b[m].lastCount=v.length),A[m][c]=p(v.length,v.mode)+4+o.getCharCountIndicator(v.mode,T))}}L=y}for(let w=0;w<L.length;w++)A[L[w]].end=0;return{map:A,table:b}}function S(R,T){let b;const A=o.getBestModeForData(R);if(b=o.from(T,A),b!==o.BYTE&&b.bit<A.bit)throw new Error('"'+R+'" cannot be encoded with mode '+o.toString(b)+`.
4 Suggested mode is: `+o.toString(A));switch(b===o.KANJI&&!u.isKanjiModeEnabled()&&(b=o.BYTE),b){case o.NUMERIC:return new i(R);case o.ALPHANUMERIC:return new e(R);case o.KANJI:return new n(R);case o.BYTE:return new t(R)}}r.fromArray=function(T){return T.reduce(function(b,A){return typeof A=="string"?b.push(S(A,null)):A.data&&b.push(S(A.data,A.mode)),b},[])},r.fromString=function(T,b){const A=B(T,u.isKanjiModeEnabled()),L=P(A),w=I(L,b),C=a.find_path(w.map,"start","end"),y=[];for(let h=1;h<C.length-1;h++)y.push(w.table[C[h]].node);return r.fromArray(d(y))},r.rawSplit=function(T){return r.fromArray(B(T,u.isKanjiModeEnabled()))}}(vt)),vt}var ce;function $e(){if(ce)return ct;ce=1;const r=J(),o=Lt(),i=_e(),e=ke(),t=De(),n=qe(),s=Ue(),u=me(),a=Ve(),f=Ke(),g=He(),B=Y(),p=Qe();function d(w,C){const y=w.size,h=n.getPositions(C);for(let v=0;v<h.length;v++){const c=h[v][0],l=h[v][1];for(let m=-1;m<=7;m++)if(!(c+m<=-1||y<=c+m))for(let N=-1;N<=7;N++)l+N<=-1||y<=l+N||(m>=0&&m<=6&&(N===0||N===6)||N>=0&&N<=6&&(m===0||m===6)||m>=2&&m<=4&&N>=2&&N<=4?w.set(c+m,l+N,!0,!0):w.set(c+m,l+N,!1,!0))}}function P(w){const C=w.size;for(let y=8;y<C-8;y++){const h=y%2===0;w.set(y,6,h,!0),w.set(6,y,h,!0)}}function I(w,C){const y=t.getPositions(C);for(let h=0;h<y.length;h++){const v=y[h][0],c=y[h][1];for(let l=-2;l<=2;l++)for(let m=-2;m<=2;m++)l===-2||l===2||m===-2||m===2||l===0&&m===0?w.set(v+l,c+m,!0,!0):w.set(v+l,c+m,!1,!0)}}function S(w,C){const y=w.size,h=f.getEncodedBits(C);let v,c,l;for(let m=0;m<18;m++)v=Math.floor(m/3),c=m%3+y-8-3,l=(h>>m&1)===1,w.set(v,c,l,!0),w.set(c,v,l,!0)}function R(w,C,y){const h=w.size,v=g.getEncodedBits(C,y);let c,l;for(c=0;c<15;c++)l=(v>>c&1)===1,c<6?w.set(c,8,l,!0):c<8?w.set(c+1,8,l,!0):w.set(h-15+c,8,l,!0),c<8?w.set(8,h-c-1,l,!0):c<9?w.set(8,15-c-1+1,l,!0):w.set(8,15-c-1,l,!0);w.set(h-8,8,1,!0)}function T(w,C){const y=w.size;let h=-1,v=y-1,c=7,l=0;for(let m=y-1;m>0;m-=2)for(m===6&&m--;;){for(let N=0;N<2;N++)if(!w.isReserved(v,m-N)){let M=!1;l<C.length&&(M=(C[l]>>>c&1)===1),w.set(v,m-N,M),c--,c===-1&&(l++,c=7)}if(v+=h,v<0||y<=v){v-=h,h=-h;break}}}function b(w,C,y){const h=new i;y.forEach(function(N){h.put(N.mode.bit,4),h.put(N.getLength(),B.getCharCountIndicator(N.mode,w)),N.write(h)});const v=r.getSymbolTotalCodewords(w),c=u.getTotalCodewordsCount(w,C),l=(v-c)*8;for(h.getLengthInBits()+4<=l&&h.put(0,4);h.getLengthInBits()%8!==0;)h.putBit(0);const m=(l-h.getLengthInBits())/8;for(let N=0;N<m;N++)h.put(N%2?17:236,8);return A(h,w,C)}function A(w,C,y){const h=r.getSymbolTotalCodewords(C),v=u.getTotalCodewordsCount(C,y),c=h-v,l=u.getBlocksCount(C,y),m=h%l,N=l-m,M=Math.floor(h/l),_=Math.floor(c/l),_t=_+1,kt=M-_,Ce=new a(kt);let ot=0;const $=new Array(l),Dt=new Array(l);let it=0;const Ee=new Uint8Array(w.buffer);for(let j=0;j<l;j++){const ut=j<N?_:_t;$[j]=Ee.slice(ot,ot+ut),Dt[j]=Ce.encode($[j]),ot+=ut,it=Math.max(it,ut)}const st=new Uint8Array(h);let qt=0,F,z;for(F=0;F<it;F++)for(z=0;z<l;z++)F<$[z].length&&(st[qt++]=$[z][F]);for(F=0;F<kt;F++)for(z=0;z<l;z++)st[qt++]=Dt[z][F];return st}function L(w,C,y,h){let v;if(Array.isArray(w))v=p.fromArray(w);else if(typeof w=="string"){let M=C;if(!M){const _=p.rawSplit(w);M=f.getBestVersionForData(_,y)}v=p.fromString(w,M||40)}else throw new Error("Invalid data");const c=f.getBestVersionForData(v,y);if(!c)throw new Error("The amount of data is too big to be stored in a QR Code");if(!C)C=c;else if(C<c)throw new Error(`
5The chosen QR Code version cannot contain this amount of data.
6Minimum version required to store current data is: `+c+`.
7`);const l=b(C,y,v),m=r.getSymbolSize(C),N=new e(m);return d(N,C),P(N),I(N,C),R(N,y,0),C>=7&&S(N,C),T(N,l),isNaN(h)&&(h=s.getBestMask(N,R.bind(null,N,y))),s.applyMask(h,N),R(N,y,h),{modules:N,version:C,errorCorrectionLevel:y,maskPattern:h,segments:v}}return ct.create=function(C,y){if(typeof C>"u"||C==="")throw new Error("No input text");let h=o.M,v,c;return typeof y<"u"&&(h=o.from(y.errorCorrectionLevel,o.M),v=f.from(y.version),c=s.from(y.maskPattern),y.toSJISFunc&&r.setToSJISFunction(y.toSJISFunc)),L(C,v,h,c)},ct}var Tt={},Mt={},fe;function ye(){return fe||(fe=1,function(r){function o(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="str
7ing")throw new Error("Color should be defined as hex string");let e=i.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+i);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(n){return[n,n]}))),e.length===6&&e.push("F","F");const t=parseInt(e.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+e.slice(0,6).join("")}}r.getOptions=function(e){e||(e={}),e.color||(e.color={});const t=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,n=e.width&&e.width>=21?e.width:void 0,s=e.scale||4;return{width:n,scale:n?4:s,margin:t,color:{dark:o(e.color.dark||"#000000ff"),light:o(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},r.getScale=function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},r.getImageWidth=function(e,t){const n=r.getScale(e,t);return Math.floor((e+t.margin*2)*n)},r.qrToImageData=function(e,t,n){const s=t.modules.size,u=t.modules.data,a=r.getScale(s,n),f=Math.floor((s+n.margin*2)*a),g=n.margin*a,B=[n.color.light,n.color.dark];for(let p=0;p<f;p++)for(let d=0;d<f;d++){let P=(p*f+d)*4,I=n.color.light;if(p>=g&&d>=g&&p<f-g&&d<f-g){const S=Math.floor((p-g)/a),R=Math.floor((d-g)/a);I=B[u[S*s+R]?1:0]}e[P++]=I.r,e[P++]=I.g,e[P++]=I.b,e[P]=I.a}}}(Mt)),Mt}var de;function xe(){return de||(de=1,function(r){const o=ye();function i(t,n,s){t.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 e(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}r.render=function(n,s,u){let a=u,f=s;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),s||(f=e()),a=o.getOptions(a);const g=o.getImageWidth(n.modules.size,a),B=f.getContext("2d"),p=B.createImageData(g,g);return o.qrToImageData(p.data,n,a),i(B,f,g),B.putImageData(p,0,0),f},r.renderToDataURL=function(n,s,u){let a=u;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),a||(a={});const f=r.render(n,s,a),g=a.type||"image/png",B=a.rendererOpts||{};return f.toDataURL(g,B.quality)}}(Tt)),Tt}var St={},ge;function We(){if(ge)return St;ge=1;const r=ye();function o(t,n){const s=t.a/255,u=n+'="'+t.hex+'"';return s<1?u+" "+n+'-opacity="'+s.toFixed(2).slice(1)+'"':u}function i(t,n,s){let u=t+n;return typeof s<"u"&&(u+=" "+s),u}function e(t,n,s){let u="",a=0,f=!1,g=0;for(let B=0;B<t.length;B++){const p=Math.floor(B%n),d=Math.floor(B/n);!p&&!f&&(f=!0),t[B]?(g++,B>0&&p>0&&t[B-1]||(u+=f?i("M",p+s,.5+d+s):i("m",a,0),a=0,f=!1),p+1<n&&t[B+1]||(u+=i("h",g),g=0)):a++}return u}return St.render=function(n,s,u){const a=r.getOptions(s),f=n.modules.size,g=n.modules.data,B=f+a.margin*2,p=a.color.light.a?"<path "+o(a.color.light,"fill")+' d="M0 0h'+B+"v"+B+'H0z"/>':"",d="<path "+o(a.color.dark,"stroke")+' d="'+e(g,f,a.margin)+'"/>',P='viewBox="0 0 '+B+" "+B+'"',S='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+P+' shape-rendering="crispEdges">'+p+d+`</svg>
8`;return typeof u=="function"&&u(null,S),S},St}var he;
8function Xe(){if(he)return O;he=1;const r=Le(),o=$e(),i=xe(),e=We();function t(n,s,u,a,f){const g=[].slice.call(arguments,1),B=g.length,p=typeof g[B-1]=="function";if(!p&&!r())throw new Error("Callback required as last argument");if(p){if(B<2)throw new Error("Too few arguments provided");B===2?(f=u,u=s,s=a=void 0):B===3&&(s.getContext&&typeof f>"u"?(f=a,a=void 0):(f=a,a=u,u=s,s=void 0))}else{if(B<1)throw new Error("Too few arguments provided");return B===1?(u=s,s=a=void 0):B===2&&!s.getContext&&(a=u,u=s,s=void 0),new Promise(function(d,P){try{const I=o.create(u,a);d(n(I,s,a))}catch(I){P(I)}})}try{const d=o.create(u,a);f(null,n(d,s,a))}catch(d){f(d)}}return O.create=o.create,O.toCanvas=t.bind(null,i.render),O.toDataURL=t.bind(null,i.renderToDataURL),O.toString=t.bind(null,function(n,s,u){return e.render(n,u)}),O}var Ze=Xe();const tn=Se(Ze),en={class:"title"},nn=["onClick"],rn={class:"parallax-wrapper"},on={class:"parallax-qrcode"},sn=["src"],un={key:0,class:"parallax-content"},an={key:1,class:"parallax-content"},ln={class:"footer-container"},cn={class:"qna-container"},fn=["innerHTML"],dn={key:1},gn=Be({__name:"MLM",setup(r){const o=[1,2],i=[{title:"Q1.什麼是第一層推薦?",content:"你的朋友使用你的推薦碼訂閱課程,你就可以依照他的訂閱方案獲得對應的獎金。"},{title:"Q2.什麼是第二層推薦?",content:"被你推薦的朋友,又推薦其他人來訂閱時,你可獲得的獎金。"},{title:"Q3.推薦獎金何時會匯入我的帳戶?",content:"被推薦人訂閱三個月後,當系統呈現「已可兌換時」,FUN Coin獎金即匯入你的帳戶,請自行前往系統兌換。"},{title:"Q4.取消訂閱後會影響推薦獎金嗎?",content:"欲領取完整推薦獎金,您需保持付費訂閱狀態;若你的朋友訂閱時您並非付費訂閱會員,則第一層獎金將減半,且無第二層獎金參與資格。"}],e=H(null),t=Ae(),n=ve(),s=Re(),u=H(0),a=H(""),f=H(""),g=H([]),B=H([]),p=H(""),d=zt(()=>g.value.findIndex(c=>c.id===u.value)),P=zt(()=>({backgroundImage:`url(${d.value===0?"/images/bannerBlue.png":d.value===1?"/images/bannerGreen.png":"/images/bannerPurple.png"})`,backgroundPosition:"center 0",backgroundRepeat:"no-repeat",backgroundSize:"cover",transition:"background-image 0.3s ease"})),I=c=>{const{groupId:l}=n.params;if(!Array.isArray(l)){if(l!=="none"){y(Number(l));return}u.value=c,T(c)}},S=async()=>{const c=await tt.newProduct.sellableProductGroupList();if(et(c)){const l=nt(c);g.value=l==null?void 0:l.filter(m=>o.includes(m==null?void 0:m.id)),I(g.value[0].id)}},R=async()=>{const c=await tt.funCoin.mgmCode();if(et(c)){const l=nt(c);a.value=l}},T=async c=>{const l=await tt.newProduct.purchaseKey(c);if(et(l)){const m=nt(l);f.value=`${window.location.origin}/newSubscription?PurchaseKey=${m}`,v(f.value)}},b=async()=>{const c=await tt.newProduct.ruleList();if(et(c)){B.value=nt(c).list;return}B.value=[]},A=()=>{navigator.clipboard.writeText(a.value).then(()=>{Vt({message:"已複製推薦碼",type:"success"})})},L=()=>{navigator.clipboard.writeText(f.value).then(()=>{Vt({message:"已複製推薦連結",type:"success"})})},w=()=>{window.open(f.value)},C=()=>{e.value&&e.value.scrollIntoView({behavior:"smooth",block:"start"})},y=c=>{T(c),u.value=c},h=()=>{s.push({name:Te.BookStore})},v=async c=>{p.value=await tn.toDataURL(c,{color:{dark:d.value===0?"#194CA7":d.value===1?"#05692B":"#B559D0"}})};return be(()=>{S(),R(),b()}),(c,l)=>{const m=Ne("RouterLink"),N=Ie;return k(),D("div",null,[E("header",en,[q(m,{to:"/"},{default:x(()=>[q(G,{class:"logo cursor-pointer",style:{width:"130px"},name:"FUNDAY-mb"})]),_:1}),E("div",{class:"switch-container",style:Ut({borderColor:d.value===0?"#143d86":d.value===1?"#05692b":"#B559D0"})},[(k(!0),D(W,null,at(g.value,(M,_)=>(k(),D("button",{key:M.id,class:Ft({isBlue:_===0,isGreen:_===1,isPurple:_===2,isSelected:u.value===_+1}),onClick:_t=>y(M.id)},V(M.groupName),11,nn))),128))],4),E("button",{class:"header-button",onClick:h},"書店")]),E("section",{style:Ut(P.value)},[E("div",rn,[E("div",on,[E("img",{src:p.value,alt:""},null,8,sn),E("h3",null,V(`${Pe(t).userData.realName}的推薦碼`),1),E("div",null,[E("h3",null,V(a.value),1),q(N,{content:"複製推薦碼",placement:"top"},{default:x(()=>[E("div",{onClick:A},[q(G,{name:"copyTwoPage"})])]),_:1}),q(N,{content:"複製連結",placement:"top"},{default:x(()=>[E("div",{onClick:L},[q(G,{name:"linkClip"})])]),_:1}),q(N,{content:"開啟連結",placement:"top"},{default:x(()=>[E("div",{onClick:w},[q(G,{name:"export"})])]),_:1})])]),u.value!=3?(k(),D("div",un,[l[1]||(l[1]=E("h2",null,[X("想成為FUNDAY推廣大使"),E("br"),X("同時增加被動收入嗎?")],-1)),E("button",{onClick:C},[l[0]||(l[0]=E("span",null,"點我看教學",-1)),q(G,{name:"arrowDownWithBar"})])])):Z("",!0),u.value==3?(k(),D("div",an,[l[3]||(l[3]=E("h2",null,[X("好友專屬優惠"),E("br"),X("立即折 $1000")],-1)),E("button",{onClick:C},[l[2]||(l[2]=E("span",null,"點我看教學",-1)),q(G,{name:"arrowDownWithBar"})])])):Z("",!0)])],4),E("footer",{ref_key:"footerRef",ref:e},[E("div",ln,[u.value!==3?(k(),D(W,{key:0},[E("div",null,[E("h3",{class:Ft(`${d.value%2===0?"text-[#143D86]":" text-[#05692B]"}`)}," 獎金辦法 ",2),l[5]||(l[5]=E("p",{class:"subtitle"}," 使用個人專屬推薦碼,作為「推薦人」成功邀請親友訂閱者,你可獲得第一層或第二層獎金(FUN Coin) ",-1)),E("table",null,[l[4]||(l[4]=E("tr",null,[E("th",null,"項目"),E("th",null,"無推薦人價格"),E("th",null,"推薦人價格"),E("th",null,"第一層獎金"),E("th",null,"第二層獎金")],-1)),(k(!0),D(W,null,at(B.value,M=>(k(),D("tr",null,[E("td",null,V(M.displayName),1),E("td",null,V(M.sellingPrice),1),E("td",null,V(M.sellingPrice-M.discount),1),E("td",null,V(M.layer1ProfitAmount??"X"),1),E("td",null,V(M.layer2ProfitAmount??"X"),1)]))),256))])]),E("div",null,[l[6]||(l[6]=E("h3",null,"常見QA",-1)),E("div",cn,[(k(),D(W,null,at(i,M=>E("div",null,[E("h4",null,V(M.title),1),E("p",{innerHTML:M.content},null,8,fn)])),64))])])],64)):Z("",!0),u.value==3?(k(),D("div",dn,[...l[7]||(l[7]=[E("div",{style:{color:"rgba(181, 89, 208, 1)","font-size":"24px","font-weight":"500"}}," 活動方式 ",-1),E("div",{class:"big-order-description"},[E("div",null,"① 分享你的推薦碼給好友"),E("div",null,"② 好友於下單時輸入推薦碼"),E("div",null,"③ 好友結帳時立即省$1,000")],-1)])])):Z("",!0),l[8]||(l[8]=E("p",{class:"description"}," FUNDAY保有取消、終止、修改、解釋或暫停本活動之權利。 活動參加者必須遵守主辦單位公佈之本活動辦法、相關æ´
8»å‹•規則及注意事項,如有違反視同棄權,主辦單位並得取消其參加活動、領取獎勵之資格。 FUNDAY有權不予事前通知,且無需說明理由而將特定用戶排除於本活動外或取消其活動資格。 ",-1))])],512)])}}}),Cn=Me(gn,[["__scopeId","data-v-aa1fc2e3"]]);export{Cn as default};
9//# sourceMappingURL=MLM-DO5y4YMl.js.map

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.