PageSourceSearch

https://lcmd.cloud/_nuxt/DGUY_PlM.js

js lcmd.cloud collected 2026-10-05 07:04:55 UTC 51,243 bytes, 1 lines download raw bytes

vendor: 21,387 bytes, line 1
1import{h as un,f as dn,i as fn,j as gn,k as ae,l as mn}from"./k9o2YNRP.js";import{c as hn}from"./BZf5LkFb.js";import{e as ge}from"./C6dma9P6.js";import{p as pn,a as wn,m as vn,b as yn,c as _n,d as we,e as lt,s as bn,h as Cn,f as An}from"./BpAcvSsR.js";import{a as $,w as Se,l as Be}from"./BrTNH3B2.js";import{d as ct}from"./B6kSL5oB.js";import{c as ut}from"./DKopkPK9.js";import{y as jt,ae as xn,C as u,F as Q,U as En,w as dt,j as D,c as W,D as Sn,q as Bn,M as Mn,N as ve,af as ft}from"./C-rzekC7.js";var le={},Me,gt;function In(){return gt||(gt=1,Me=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),Me}var Ie={},ee={},mt;function ne(){if(mt)return ee;mt=1;let e;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 ee.getSymbolSize=function(n){if(!n)throw new Error('"version" cannot be null or undefined');if(n<1||n>40)throw new Error('"version" should be in range from 1 to 40');return n*4+17},ee.getSymbolTotalCodewords=function(n){return o[n]},ee.getBCHDigit=function(i){let n=0;for(;i!==0;)n++,i>>>=1;return n},ee.setToSJISFunction=function(n){if(typeof n!="function")throw new Error('"toSJISFunc" is not a valid function.');e=n},ee.isKanjiModeEnabled=function(){return typeof e<"u"},ee.toSJIS=function(n){return e(n)},ee}var Re={},ht;function Xe(){return ht||(ht=1,(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.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 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(n){return n&&typeof n.bit<"u"&&n.bit>=0&&n.bit<4},e.from=function(n,t){if(e.isValid(n))return n;try{return o(n)}catch(r){return t}}})(Re)),Re}var Le,pt;function Rn(){if(pt)return Le;pt=1;function e(){this.buffer=[],this.length=0}return e.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 n=0;n<i;n++)this.putBit((o>>>i-n-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++}},Le=e,Le}var ze,wt;function Ln(){if(wt)return ze;wt=1;function e(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 e.prototype.set=function(o,i,n,t){const r=o*this.size+i;this.data[r]=n,t&&(this.reservedBit[r]=!0)},e.prototype.get=function(o,i){return this.data[o*this.size+i]},e.prototype.xor=function(o,i,n){this.data[o*this.size+i]^=n},e.prototype.isReserved=function(o,i){return this.reservedBit[o*this.size+i]},ze=e,ze}var ke={},vt;function zn(){return vt||(vt=1,(function(e){const o=ne().getSymbolSize;e.getRowColCoords=function(n){if(n===1)return[];const t=Math.floor(n/7)+2,r=o(n),a=r===145?26:Math.ceil((r-13)/(2*t-2))*2,c=[r-7];for(let l=1;l<t-1;l++)c[l]=c[l-1]-a;return c.push(6),c.reverse()},e.getPositions=function(n){const t=[],r=e.getRowColCoords(n),a=r.length;for(let c=0;c<a;c++)for(let l=0;l<a;l++)c===0&&l===0||c===0&&l===a-1||c===a-1&&l===0||t.push([r[c],r[l]]);return t}})(ke)),ke}var Pe={},yt;function kn(){if(yt)return Pe;yt=1;const e=ne().getSymbolSize,o=7;return Pe.getPositions=function(n){const t=e(n);return[[0,0],[t-o,0],[0,t-o]]},Pe}var Ne={},_t;function Pn(){return _t||(_t=1,(function(e){e.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};e.isValid=function(t){return t!=null&&t!==""&&!isNaN(t)&&t>=0&&t<=7},e.from=function(t){return e.isValid(t)?parseInt(t,10):void 0},e.getPenaltyN1=function(t){const r=t.size;let a=0,c=0,l=0,g=null,v=null;for(let R=0;R<r;R++){c=l=0,g=v=null;for(let h=0;h<r;h++){let m=t.get(R,h);m===g?c++:(c>=5&&(a+=o.N1+(c-5)),g=m,c=1),m=t.get(h,R),m===v?l++:(l>=5&&(a+=o.N1+(l-5)),v=m,l=1)}c>=5&&(a+=o.N1+(c-5)),l>=5&&(a+=o.N1+(l-5))}return a},e.getPenaltyN2=function(t){const r=t.size;let a=0;for(let c=0;c<r-1;c++)for(let l=0;l<r-1;l++){const g=t.get(c,l)+t.get(c,l+1)+t.get(c+1,l)+t.get(c+1,l+1);(g===4||g===0)&&a++}return a*o.N2},e.getPenaltyN3=function(t){const r=t.size;let a=0,c=0,l=0;for(let g=0;g<r;g++){c=l=0;for(let v=0;v<r;v++)c=c<<1&2047|t.get(g,v),v>=10&&(c===1488||c===93)&&a++,l=l<<1&2047|t.get(v,g),v>=10&&(l===1488||l===93)&&a++}return a*o.N3},e.getPenaltyN4=function(t){let r=0;const a=t.data.length;for(let l=0;l<a;l++)r+=t.data[l];return Math.abs(Math.ceil(r*100/a/5)-10)*o.N4};function i(n,t,r){switch(n){case e.Patterns.PATTERN000:return(t+r)%2===0;case e.Patterns.PATTERN001:return t%2===0;case e.Patterns.PATTERN010:return r%3===0;case e.Patterns.PATTERN011:return(t+r)%3===0;case e.Patterns.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2===0;case e.Patterns.PATTERN101:return t*r%2+t*r%3===0;case e.Patterns.PATTERN110:return(t*r%2+t*r%3)%2===0;case e.Patterns.PATTERN111:return(t*r%3+(t+r)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}e.applyMask=function(t,r){const a=r.size;for(let c=0;c<a;c++)for(let l=0;l<a;l++)r.isReserved(l,c)||r.xor(l,c,i(t,l,c))},e.getBestMask=function(t,r){const a=Object.keys(e.Patterns).length;let c=0,l=1/0;for(let g=0;g<a;g++){r(g),e.applyMask(g,t);const v=e.getPenaltyN1(t)+e.getPenaltyN2(t)+e.getPenaltyN3(t)+e.getPenaltyN4(t);e.applyMask(g,t),v<l&&(l=v,c=g)}return c}})(Ne)),Ne}var ye={},bt;function Kt(){if(bt)return ye;bt=1;const e=Xe(),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 ye.getBlocksCount=function(t,r){switch(r){case e.L:return o[(t-1)*4+0];case e.M:return o[(t-1)*4+1];case e.Q:return o[(t-1)*4+2];case e.H:return o[(t-1)*4+3];default:return}},ye.getTotalCodewordsCount=function(t,r){switch(r){case e.L:return i[(t-1)*4+0];case e.M:return i[(t-1)*4+1];case e.Q:return i[(t-1)*4+2];case e.H:return i[(t-1)*4+3];default:return}},ye}var Te={},me={},Ct;function Nn(){if(Ct)return me;Ct=1;const e=new Uint8Array(512),o=new Uint8Array(256);return(function(){let n=1;for(let t=0;t<255;t++)e[t]=n,o[n]=t,n<<=1,n&256&&(n^=285);for(let t=255;t<512;t++)e[t]=e[t-255]})(),me.log=function(n){if(n<1)throw new Error("log("+n+")");return o[n]},me.exp=function(n){return e[n]},me.mul=function(n,t){return n===0||t===0?0:e[o[n]+o[t]]},me}var At;function Tn(){return At||(At=1,(function(e){const o=Nn();e.mul=function(n,t){const r=new Uint8Array(n.length+t.length-1);for(let a=0;a<n.length;a++)for(let c=0;c<t.length;c++)r[a+c]^=o.mul(n[a],t[c]);return r},e.mod=function(n,t){let r=new Uint8Array(n);for(;r.length-t.length>=0;){const a=r[0];for(let l=0;l<t.length;l++)r[l]^=o.mul(t[l],a);let c=0;for(;c<r.length&&r[c]===0;)c++;r=r.slice(c)}return r},e.generateECPolynomial=function(n){let t=new Uint8Array([1]);for(let r=0;r<n;r++)t=e.mul(t,new Uint8Array([1,o.exp(r)]));return t}})(Te)),Te}var De,xt;function Dn(){if(xt)return De;xt=1;const e=Tn();function o(i){this.genPoly=void 0,this.degree=i,this.degree&&this.initialize(this.degree)}return o.prototype.initialize=function(n){this.degree=n,this.genPoly=e.generateECPolynomial(this.degree)},o.prototype.encode=function(n){if(!this.genPoly)throw new Error("Encoder not initialized");const t=new Uint8Array(n.length+this.degree);t.set(n);const r=e.mod(t,this.genPoly),a=this.degree-r.length;if(a>0){const c=new Uint8Array(this.degree);return c.set(r,a),c}return r},De=o,De}var Ve={},qe={},Ue={},Et;function Jt(){return Et||(Et=1,Ue.isValid=function(o){return!isNaN(o)&&o>=1&&o<=40}),Ue}var G={},St;function Wt(){if(St)return G;St=1;const e="[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 n="(?:(?![A-Z0-9 $%*+\\-./:]|"+i+")(?:.|[\r\n]))+";G.KANJI=new RegExp(i,"g"),G.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),G.BYTE=new RegExp(n,"g"),G.NUMERIC=new RegExp(e,"g"),G.ALPHANUMERIC=new RegExp(o,"g");const t=new RegExp("^"+i+"$"),r=new RegExp("^"+e+"$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return G.testKanji=function(l){return t.test(l)},G.testNumeric=function(l){return r.test(l)},G.testAlphanumeric=function(l){return a.test(l)},G}var Bt;function re(){return Bt||(Bt=1,(function(e){const o=Jt(),i=Wt();e.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(r,a){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!o.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?r.ccBits[0]:a<27?r.ccBits[1]:r.ccBits[2]},e.getBestModeForData=function(r){return i.testNumeric(r)?e.NUMERIC:i.testAlphanumeric(r)?e.ALPHANUMERIC:i.testKanji(r)?e.KANJI:e.BYTE},e.toString=function(r){if(r&&r.id)return r.id;throw new Error("Invalid mode")},e.isValid=function(r){return r&&r.bit&&r.ccBits};function n(t){if(typeof t!="string")throw new Error("Param is not a string");switch(t.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: "+t)}}e.from=function(r,a){if(e.isValid(r))return r;try{return n(r)}catch(c){return a}}})(qe)),qe}var Mt;function Vn(){return Mt||(Mt=1,(function(e){const o=ne(),i=Kt(),n=Xe(),t=re(),r=Jt(),a=7973,c=o.getBCHDigit(a);function l(h,m,x){for(let k=1;k<=40;k++)if(m<=e.getCapacity(k,x,h))return k}function g(h,m){return t.getCharCountIndicator(h,m)+4}function v(h,m){let x=0;return h.forEach(function(k){const P=g(k.mode,m);x+=P+k.getBitsLength()}),x}function R(h,m){for(let x=1;x<=40;x++)if(v(h,x)<=e.getCapacity(x,m,t.MIXED))return x}e.from=function(m,x){return r.isValid(m)?parseInt(m,10):x},e.getCapacity=function(m,x,k){if(!r.isValid(m))throw new Error("Invalid QR Code version");typeof k>"u"&&(k=t.BYTE);const P=o.getSymbolTotalCodewords(m),E=i.getTotalCodewordsCount(m,x),S=(P-E)*8;if(k===t.MIXED)return S;const I=S-g(k,m);switch(k){case t.NUMERIC:return Math.floor(I/10*3);case t.ALPHANUMERIC:return Math.floor(I/11*2);case t.KANJI:return Math.floor(I/13);case t.BYTE:default:return Math.floor(I/8)}},e.getBestVersionForData=function(m,x){let k;const P=n.from(x,n.M);if(Array.isArray(m)){if(m.length>1)return R(m,P);if(m.length===0)return 1;k=m[0]}else k=m;return l(k.mode,k.getLength(),P)},e.getEncodedBits=function(m){if(!r.isValid(m)||m<7)throw new Error("Invalid QR Code version");let x=m<<12;for(;o.getBCHDigit(x)-c>=0;)x^=a<<o.getBCHDigit(x)-c;return m<<12|x}})(Ve)),Ve}var Oe={},It;function qn(){if(It)return Oe;It=1;const e=ne(),o=1335,i=21522,n=e.getBCHDigit(o);return Oe.getEncodedBits=function(r,a){const c=r.bit<<3|a;let l=c<<10;for(;e.getBCHDigit(l)-n>=0;)l^=o<<e.getBCHDigit(l)-n;return(c<<10|l)^i},Oe}var Fe={},He,Rt;function Un(){if(Rt)return He;Rt=1;const e=re();function o(i){this.mode=e.NUMERIC,this.data=i.toString()}return o.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%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(n){let t,r,a;for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),a=parseInt(r,10),n.put(a,10);const c=this.data.length-t;c>0&&(r=this.data.substr(t),a=parseInt(r,10),n.put(a,c*3+1))},He=o,He}var je,Lt;function On(){if(Lt)return je;Lt=1;const e=re(),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(n){this.mode=e.ALPHANUMERIC,this.data=n}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 r;for(r=0;r+2<=this.data.length;r+=2){let a=o.indexOf(this.data[r])*45;a+=o.indexOf(this.data[r+1]),t.put(a,11)}this.data.length%2&&t.put(o.indexOf(this.data[r]),6)},je=i,je}var Ke,zt;function Fn(){if(zt)return Ke;zt=1;const e=re();function o(i){this.mode=e.BYTE,typeof i=="string"?this.data=new TextEncoder().encode(i):this.data=new Uint8Array(i)}return o.getBitsLength=function(n){return n*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 n=0,t=this.data.length;n<t;n++)i.put(this.data[n],8)},Ke=o,Ke}var Je,kt;function Hn(){if(kt)return Je;kt=1;const e=re(),o=ne();function i(n){this.mode=e.KANJI,this.data=n}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(n){let t;for(t=0;t<this.data.length;t++){let r=o.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r=(r>>>8&255)*192+(r&255),n.put(r,13)}},Je=i,Je}var We={exports:{}},Pt;function jn(){return Pt||(Pt=1,(function(e){var o={single_source_shortest_paths:function(i,n,t){var r={},a={};a[n]=0;var c=o.PriorityQueue.make();c.push(n,0);for(var l,g,v,R,h,m,x,k,P;!c.empty();){l=c.pop(),g=l.value,R=l.cost,h=i[g]||{};for(v in h)h.hasOwnProperty(v)&&(m=h[v],x=R+m,k=a[v],P=typeof a[v]>"u",(P||k>x)&&(a[v]=x,c.push(v,x),r[v]=g))}if(typeof t<"u"&&typeof a[t]>"u"){var E=["Could not find a path from ",n," to ",t,"."].join("");throw new Error(E)}return r},extract_shortest_path_from_predecessor_list:function(i,n){for(var t=[],r=n;r;)t.push(r),i[r],r=i[r];return t.reverse(),t},find_path:function(i,n,t){var r=o.single_source_shortest_paths(i,n,t);return o.extract_shortest_path_from_predecessor_list(r,t)},PriorityQueue:{make:function(i){var n=o.PriorityQueue,t={},r;i=i||{};for(r in n)n.hasOwnProperty(r)&&(t[r]=n[r]);return t.queue=[],t.sorter=i.sorter||n.default_sorter,t},default_sorter:function(i,n){return i.cost-n.cost},push:function(i,n){var t={value:i,cost:n};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=o})(We)),We.exports}var Nt;function Kn(){return Nt||(Nt=1,(function(e){const o=re(),i=Un(),n=On(),t=Fn(),r=Hn(),a=Wt(),c=ne(),l=jn();function g(E){return unescape(encodeURIComponent(E)).length}function v(E,S,I){const B=[];let T;for(;(T=E.exec(I))!==null;)B.push({data:T[0],index:T.index,mode:S,length:T[0].length});return B}function R(E){const S=v(a.NUMERIC,o.NUMERIC,E),I=v(a.ALPHANUMERIC,o.ALPHANUMERIC,E);let B,T;return c.isKanjiModeEnabled()?(B=v(a.BYTE,o.BYTE,E),T=v(a.KANJI,o.KANJI,E)):(B=v(a.BYTE_KANJI,o.BYTE,E),T=[]),S.concat(I,B,T).sort(function(b,C){return b.index-C.index}).map(function(b){return{data:b.data,mode:b.mode,length:b.length}})}function h(E,S){switch(S){case o.NUMERIC:return i.getBitsLength(E);case o.ALPHANUMERIC:return n.getBitsLength(E);case o.KANJI:return r.getBitsLength(E);case o.BYTE:return t.getBitsLength(E)}}function m(E){return E.reduce(function(S,I){const B=S.length-1>=0?S[S.length-1]:null;return B&&B.mode===I.mode?(S[S.length-1].data+=I.data,S):(S.push(I),S)},[])}function x(E){const S=[];for(let I=0;I<E.length;I++){const B=E[I];switch(B.mode){case o.NUMERIC:S.push([B,{data:B.data,mode:o.ALPHANUMERIC,length:B.length},{data:B.data,mode:o.BYTE,length:B.length}]);break;case o.ALPHANUMERIC:S.push([B,{data:B.data,mode:o.BYTE,length:B.length}]);break;case o.KANJI:S.push([B,{data:B.data,mode:o.BYTE,length:g(B.data)}]);break;case o.BYTE:S.push([{data:B.data,mode:o.BYTE,length:g(B.data)}])}}return S}function k(E,S){const I={},B={start:{}};let T=["start"];for(let w=0;w<E.length;w++){const b=E[w],C=[];for(let p=0;p<b.length;p++){const M=b[p],_=""+w+p;C.push(_),I[_]={node:M,lastCount:0},B[_]={};for(let y=0;y<T.length;y++){const A=T[y];I[A]&&I[A].node.mode===M.mode?(B[A][_]=h(I[A].lastCount+M.length,M.mode)-h(I[A].lastCount,M.mode),I[A].lastCount+=M.length):(I[A]&&(I[A].lastCount=M.length),B[A][_]=h(M.length,M.mode)+4+o.getCharCountIndicator(M.mode,S))}}T=C}for(let w=0;w<T.length;w++)B[T[w]].end=0;return{map:B,table:I}}function P(E,S){let I;const B=o.getBestModeForData(E);if(I=o.from(S,B),I!==o.BYTE&&I.bit<B.bit)throw new Error('"'+E+'" cannot be encoded with mode '+o.toString(I)+".\n Suggested mode is: "+o.toString(B));switch(I===o.KANJI&&!c.isKanjiModeEnabled()&&(I=o.BYTE),I){case o.NUMERIC:return new i(E);case o.ALPHANUMERIC:return new n(E);case o.KANJI:return new r(E);case o.BYTE:return new t(E)}}e.fromArray=function(S){return S.reduce(function(I,B){return typeof B=="string"?I.push(P(B,null)):B.data&&I.push(P(B.data,B.mode)),I},[])},e.fromString=function(S,I){const B=R(S,c.isKanjiModeEnabled()),T=x(B),w=k(T,I),b=l.find_path(w.map,"start","end"),C=[];for(let p=1;p<b.length-1;p++)C.push(w.table[b[p]].node);return e.fromArray(m(C))},e.rawSplit=function(S){return e.fromArray(R(S,c.isKanjiModeEnabled()))}})(Fe)),Fe}var Tt;function Jn(){if(Tt)return Ie;Tt=1;const e=ne(),o=Xe(),i=Rn(),n=Ln(),t=zn(),r=kn(),a=Pn(),c=Kt(),l=Dn(),g=Vn(),v=qn(),R=re(),h=Kn();function m(w,b){const C=w.size,p=r.getPositions(b);for(let M=0;M<p.length;M++){const _=p[M][0],y=p[M][1];for(let A=-1;A<=7;A++)if(!(_+A<=-1||C<=_+A))for(let L=-1;L<=7;L++)y+L<=-1||C<=y+L||(A>=0&&A<=6&&(L===0||L===6)||L>=0&&L<=6&&(A===0||A===6)||A>=2&&A<=4&&L>=2&&L<=4?w.set(_+A,y+L,!0,!0):w.set(_+A,y+L,!1,!0))}}function x(w){const b=w.size;for(let C=8;C<b-8;C++){const p=C%2===0;w.set(C,6,p,!0),w.set(6,C,p,!0)}}function k(w,b){const C=t.getPositions(b);for(let p=0;p<C.length;p++){const M=C[p][0],_=C[p][1];for(let y=-2;y<=2;y++)for(let A=-2;A<=2;A++)y===-2||y===2||A===-2||A===2||y===0&&A===0?w.set(M+y,_+A,!0,!0):w.set(M+y,_+A,!1,!0)}}function P(w,b){const C=w.size,p=g.getEncodedBits(b);let M,_,y;for(let A=0;A<18;A++)M=Math.floor(A/3),_=A%3+C-8-3,y=(p>>A&1)===1,w.set(M,_,y,!0),w.set(_,M,y,!0)}function E(w,b,C){const p=w.size,M=v.getEncodedBits(b,C);let _,y;for(_=0;_<15;_++)y=(M>>_&1)===1,_<6?w.set(_,8,y,!0):_<8?w.set(_+1,8,y,!0):w.set(p-15+_,8,y,!0),_<8?w.set(8,p-_-1,y,!0):_<9?w.set(8,15-_-1+1,y,!0):w.set(8,15-_-1,y,!0);w.set(p-8,8,1,!0)}function S(w,b){const C=w.size;let p=-1,M=C-1,_=7,y=0;for(let A=C-1;A>0;A-=2)for(A===6&&A--;;){for(let L=0;L<2;L++)if(!w.isReserved(M,A-L)){let q=!1;y<b.length&&(q=(b[y]>>>_&1)===1),w.set(M,A-L,q),_--,_===-1&&(y++,_=7)}if(M+=p,M<0||C<=M){M-=p,p=-p;break}}}function I(w,b,C){const p=new i;C.forEach(function(L){p.put(L.mode.bit,4),p.put(L.getLength(),R.getCharCountIndicator(L.mode,w)),L.write(p)});const M=e.getSymbolTotalCodewords(w),_=c.getTotalCodewordsCount(w,b),y=(M-_)*8;for(p.getLengthInBits()+4<=y&&p.put(0,4);p.getLengthInBits()%8!==0;)p.putBit(0);const A=(y-p.getLengthInBits())/8;for(let L=0;L<A;L++)p.put(L%2?17:236,8);return B(p,w,b)}function B(w,b,C){const p=e.getSymbolTotalCodewords(b),M=c.getTotalCodewordsCount(b,C),_=p-M,y=c.getBlocksCount(b,C),A=p%y,L=y-A,q=Math.floor(p/y),K=Math.floor(_/y),_e=K+1,pe=q-K,ce=new l(pe);let ue=0;const oe=new Array(y),O=new Array(y);let Y=0;const X=new Uint8Array(w.buffer);for(let U=0;U<y;U++){const te=U<L?K:_e;oe[U]=X.slice(ue,ue+te),O[U]=ce.encode(oe[U]),ue+=te,Y=Math.max(Y,te)}const F=new Uint8Array(p);let j=0,V,J;for(V=0;V<Y;V++)for(J=0;J<y;J++)V<oe[J].length&&(F[j++]=oe[J][V]);for(V=0;V<pe;V++)for(J=0;J<y;J++)F[j++]=O[J][V];return F}function T(w,b,C,p){let M;if(Array.isArray(w))M=h.fromArray(w);else if(typeof w=="string"){let q=b;if(!q){const K=h.rawSplit(w);q=g.getBestVersionForData(K,C)}M=h.fromString(w,q||40)}else throw new Error("Invalid data");const _=g.getBestVersionForData(M,C);if(!_)throw new Error("The amount of data is too big to be stored in a QR Code");if(!b)b=_;else if(b<_)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+_+".\n");const y=I(b,C,M),A=e.getSymbolSize(b),L=new n(A);return m(L,b),x(L),k(L,b),E(L,C,0),b>
1=7&&P(L,b),S(L,y),isNaN(p)&&(p=a.getBestMask(L,E.bind(null,L,C))),a.applyMask(p,L),E(L,C,p),{modules:L,version:b,errorCorrectionLevel:C,maskPattern:p,segments:M}}return Ie.create=function(b,C){if(typeof b>"u"||b==="")throw new Error("No input text");let p=o.M,M,_;return typeof C<"u"&&(p=o.from(C.errorCorrectionLevel,o.M),M=g.from(C.version),_=a.from(C.maskPattern),C.toSJISFunc&&e.setToSJISFunction(C.toSJISFunc)),T(b,M,p,_)},Ie}var Ge={},Qe={},Dt;function Gt(){return Dt||(Dt=1,(function(e){function o(i){if(typeof i=="number"&&(i=i.toString()),typeof i!="string")throw new Error("Color should be defined as hex string");let n=i.slice().replace("#","").split("");if(n.length<3||n.length===5||n.length>8)throw new Error("Invalid hex color: "+i);(n.length===3||n.length===4)&&(n=Array.prototype.concat.apply([],n.map(function(r){return[r,r]}))),n.length===6&&n.push("F","F");const t=parseInt(n.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+n.slice(0,6).join("")}}e.getOptions=function(n){n||(n={}),n.color||(n.color={});const t=typeof n.margin>"u"||n.margin===null||n.margin<0?4:n.margin,r=n.width&&n.width>=21?n.width:void 0,a=n.scale||4;return{width:r,scale:r?4:a,margin:t,color:{dark:o(n.color.dark||"#000000ff"),light:o(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},e.getScale=function(n,t){return t.width&&t.width>=n+t.margin*2?t.width/(n+t.margin*2):t.scale},e.getImageWidth=function(n,t){const r=e.getScale(n,t);return Math.floor((n+t.margin*2)*r)},e.qrToImageData=function(n,t,r){const a=t.modules.size,c=t.modules.data,l=e.getScale(a,r),g=Math.floor((a+r.margin*2)*l),v=r.margin*l,R=[r.color.light,r.color.dark];for(let h=0;h<g;h++)for(let m=0;m<g;m++){let x=(h*g+m)*4,k=r.color.light;if(h>=v&&m>=v&&h<g-v&&m<g-v){const P=Math.floor((h-v)/l),E=Math.floor((m-v)/l);k=R[c[P*a+E]?1:0]}n[x++]=k.r,n[x++]=k.g,n[x++]=k.b,n[x]=k.a}}})(Qe)),Qe}var Vt;function Wn(){return Vt||(Vt=1,(function(e){const o=Gt();function i(t,r,a){t.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=a,r.width=a,r.style.height=a+"px",r.style.width=a+"px"}function n(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}e.render=function(r,a,c){let l=c,g=a;typeof l>"u"&&(!a||!a.getContext)&&(l=a,a=void 0),a||(g=n()),l=o.getOptions(l);const v=o.getImageWidth(r.modules.size,l),R=g.getContext("2d"),h=R.createImageData(v,v);return o.qrToImageData(h.data,r,l),i(R,g,v),R.putImageData(h,0,0),g},e.renderToDataURL=function(r,a,c){let l=c;typeof l>"u"&&(!a||!a.getContext)&&(l=a,a=void 0),l||(l={});const g=e.render(r,a,l),v=l.type||"image/png",R=l.rendererOpts||{};return g.toDataURL(v,R.quality)}})(Ge)),Ge}var Ye={},qt;function Gn(){if(qt)return Ye;qt=1;const e=Gt();function o(t,r){const a=t.a/255,c=r+'="'+t.hex+'"';return a<1?c+" "+r+'-opacity="'+a.toFixed(2).slice(1)+'"':c}function i(t,r,a){let c=t+r;return typeof a<"u"&&(c+=" "+a),c}function n(t,r,a){let c="",l=0,g=!1,v=0;for(let R=0;R<t.length;R++){const h=Math.floor(R%r),m=Math.floor(R/r);!h&&!g&&(g=!0),t[R]?(v++,R>0&&h>0&&t[R-1]||(c+=g?i("M",h+a,.5+m+a):i("m",l,0),l=0,g=!1),h+1<r&&t[R+1]||(c+=i("h",v),v=0)):l++}return c}return Ye.render=function(r,a,c){const l=e.getOptions(a),g=r.modules.size,v=r.modules.data,R=g+l.margin*2,h=l.color.light.a?"<path "+o(l.color.light,"fill")+' d="M0 0h'+R+"v"+R+'H0z"/>':"",m="<path "+o(l.color.dark,"stroke")+' d="'+n(v,g,l.margin)+'"/>',x='viewBox="0 0 '+R+" "+R+'"',P='<svg xmlns="http://www.w3.org/2000/svg" '+(l.width?'width="'+l.width+'" height="'+l.width+'" ':"")+x+' shape-rendering="crispEdges">'+h+m+"</svg>\n";return typeof c=="function"&&c(null,P),P},Ye}var Ut;function Qn(){if(Ut)return le;Ut=1;const e=In(),o=Jn(),i=Wn(),n=Gn();function t(r,a,c,l,g){const v=[].slice.call(arguments,1),R=v.length,h=typeof v[R-1]=="function";if(!h&&!e())throw new Error("Callback required as last argument");if(h){if(R<2)throw new Error("Too few arguments provided");R===2?(g=c,c=a,a=l=void 0):R===3&&(a.getContext&&typeof g>"u"?(g=l,l=void 0):(g=l,l=c,c=a,a=void 0))}else{if(R<1)throw new Error("Too few arguments provided");return R===1?(c=a,a=l=void 0):R===2&&!a.getContext&&(l=c,c=a,a=void 0),new Promise(function(m,x){try{const k=o.create(c,l);m(r(k,a,l))}catch(k){x(k)}})}try{const m=o.create(c,l);g(null,r(m,a,l))}catch(m){g(m)}}return le.create=o.create,le.toCanvas=t.bind(null,i.render),le.toDataURL=t.bind(null,i.renderToDataURL),le.toString=t.bind(null,function(r,a,c){return n.render(r,c)}),le}var Yn=Qn();const Xn=un(Yn),Zn=""+new URL("wechat.BjsWv-3X.png",import.meta.url).href,$n=""+new URL("pc1.DwXVBS6k.png",import.meta.url).href,er=""+new URL("pc1.D1PoDjsd.png",import.meta.url).href,Ot=""+new URL("pc2.ABtAwlMg.png",import.meta.url).href,Ft=""+new URL("pc2.BLny0u_8.png",import.meta.url).href,tr=""+new URL("mobile1.Bz_xSJma.png",import.meta.url).href,nr=""+new URL("mobile1.CCpdiyGz.png",import.meta.url).href,Ht="modal fixed top-[0px] left-[0px] w-[100vw] h-[100vh] bg-[rgba(0,0,0,0.5)] z-[1998]",he=Object.assign(jt({name:"BaseModal",inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},overlayClosable:{type:Boolean,default:!0},overlayClass:{type:String,default:Ht},contentClass:{type:String,default:""}},emits:["close"],setup(e,{emit:o,slots:i}){const n=xn(),t=()=>{o("close")},r=()=>{e.overlayClosable&&t()};return()=>{if(!e.visible)return null;const a=e.overlayClass&&e.overlayClass.trim().length>0?e.overlayClass:Ht,c=e.contentClass,l=i.default?i.default({close:t}):null;return u(Q,null,[u("div",{class:a,onClick:r},null),u("div",En({class:c,role:"dialog","aria-modal":"true"},n),[l])])}}}),{__name:"DialogBaseModal"}),rr=["linux-amd64","linux-arm64","linux-riscv64"],fr=jt({name:"Download",setup(){const{t:e,locale:o}=dn(),i=W(()=>("https://dl.lazycatmicroserver.com".trim()||"https://dl.lazycat.cloud").replace(/\/+$/,"")),n=s=>"".concat(i.value).concat(s.startsWith("/")?s:"/".concat(s)),t=s=>s.startsWith("darwin-")?$:s.startsWith("windows-")?Se:Be,r=s=>rr.includes(s),a={"linux-amd64":"Linux x86_64","linux-arm64":"Linux ARM64","linux-riscv64":"Linux RISC-V 64"},c=ft("view2"),l=ft("view3"),g=D(!1);function v(){var s;(s=c.value)==null||s.scrollIntoView()}function R(){var s;(s=l.value)==null||s.scrollIntoView()}const h=D(null),m=fn("(max-width: 960px)"),x=D(null),k=W(()=>x.value),P=s=>{const d=k.value;return!!d&&s.includes(d)},E=mn(),S=gn(),I=D(""),B=D(!0),T=D(""),w=D(!0),b=D(""),C=D(!0),p=D(""),M=D(""),_=D(!0),y=D(null),A=D(!0),L=D(null),q=D(!1);let K=null;const _e=W(()=>{var s,d;return(d=(s=y.value)==null?void 0:s.artifacts)!=null?d:{}}),pe=W(()=>Object.entries(_e.value).filter(s=>{var d;return r(s[0])&&!!((d=s[1])!=null&&d.name)}).map(([s,d])=>{var f;return{key:s,icon:t(s),label:a[s],name:d.name,sha256:d.sha256,url:n("/hclient-cli/".concat((f=y.value)==null?void 0:f.version,"/").concat(d.name))}})),ce=W(()=>{const s=pe.value.filter(d=>d.key.startsWith("linux-"));return s.length>0?[{title:"Linux",items:s}]:[]}),ue=W(()=>({title:"Server",type:"server",serverGroups:ce.value.map(s=>({title:s.title,items:s.items.map(d=>({key:d.key,label:d.label,url:d.url}))}))})),oe="-en_amd64".trim(),O=W(()=>({Arm64MacOS:n("/client/desktop/stable/lzc-client-desktop_".concat(I.value,"_arm64.dmg")),X64MacOS:n("/client/desktop/stable/lzc-client-desktop_".concat(T.value,"_x64.dmg")),Windows:n("/client/desktop/stable/lzc-client-desktop_".concat(b.value).concat(oe,".exe")),Android:n("/client/android/stable/lzc-client-android-".concat(p.value,".apk")),Linux:'/bin/bash -c "$(curl -fsSL '.concat(n("/client/desktop/linux-install"),')"'),iOS:"https://apps.apple.com/app/6475392451",CLI:"https://gitee.com/lazycatcloud/hclient-cli/blob/master/README.md",Homebrew:"brew install --cask lazycat"})),Y=W(()=>({Arm64MacOS:"curl ".concat(n("/aibrowser/install.sh")," | bash"),X64MacOS:"curl ".concat(n("/aibrowser/install.sh")," | bash"),Windows:n("/aibrowser/lzc-ai-browser-installer.exe"),Android:n("/aibrowser/lzc-ai-browser-".concat(M.value,".apk")),Linux:"curl ".concat(n("/aibrowser/install.sh")," | bash"),iOS:"https://apps.apple.com/app/6475392451",CLI:"https://gitee.com/lazycatcloud/hclient-cli/blob/master/README.md"})),X=D(!1),F=D(""),j=D(!1),V=D(null),J=/lzc-client-android-\.apk$/i,U=W(()=>O.value.Android),te=s=>!(!s||/undefined/i.test(s)||J.test(s));let de=0;const Ze=async()=>{var d;if(typeof window>"u"||!X.value)return;if(await Ae()){const f=(d=U.value)==null?void 0:d.trim();if(!te(f)){F.value="",V.value=e("lzc_site.pages.download.harmony_qr_error","二维码生成失败"),j.value=!1;return}const z=++de;j.value=!0,V.value=null;try{const N=await Xn.toDataURL(f,{margin:1,width:240});if(z!==de)return;F.value=N}catch(N){if(console.error("Failed to generate Harmony QR code",N),z!==de)return;V.value=e("lzc_site.pages.download.harmony_qr_error","二维码生成失败"),F.value=""}finally{z===de&&(j.value=!1)}}else F.value="",V.value=e("lzc_site.pages.download.harmony_qr_error","二维码生成失败"),j.value=!1},Qt=()=>{X.value=!0},be=()=>{X.value&&(X.value=!1,de+=1,F.value="",V.value=null,j.value=!1)},Yt=()=>{const s=U.value;if(!te(s)){S.warning(e("lzc_site.pages.download.messages_fetch_version_failed","获取版本失败"));return}Z(s)};dt(()=>X.value,s=>
1{s?(F.value="",V.value=null,j.value=!0,Ze()):j.value=!1}),dt(()=>U.value,()=>{X.value&&(F.value="",V.value=null,j.value=!0,Ze())});function $e(s){s.key==="Escape"&&(h.value=null,g.value=!1,be(),q.value=!1)}function et(){var d,f;if(typeof navigator>"u")return!1;const s=((d=navigator.userAgent)==null?void 0:d.toLowerCase())||"";return/iphone|ipad|ipod/.test(s)||!!((f=navigator.userAgent)!=null&&f.match(/Mac OS X\s+[^\s)]+.*?Mobile/))}function tt(){if(typeof navigator>"u")return!1;const s=navigator.userAgent;return s.indexOf("Quark")>-1||s.indexOf("UCBrowser")>-1}Sn(()=>{document.addEventListener("keyup",$e),$t()}),Bn(()=>{document.removeEventListener("keyup",$e)});function Ce(){h.value=null,g.value=!1,be(),q.value=!1}function Xt(){if(typeof navigator>"u")return!1;const s=navigator.userAgent||"",d=navigator.vendor||"",f=navigator==null?void 0:navigator.userAgentData,N=(Array.isArray(f==null?void 0:f.brands)?f.brands:[]).some(({brand:se})=>/chrome|chromium/i.test(se)),H=/safari/i.test(s)&&!/chrome|crios|crmo|fxios|edgios/i.test(s),fe=d==="Apple Computer, Inc.";return N?!1:H&&fe}function Zt(s){const d=typeof s=="string"?s:typeof navigator<"u"?navigator.userAgent:"";if(!d||!/mac ?os/i.test(d))return!1;if(/(apple silicon|apple\s?m\d|arm64|aarch64)/i.test(d))return!0;if(!/intel/i.test(d)||typeof window>"u"||typeof document>"u")return!1;try{const z=document.createElement("canvas"),N=z.getContext("webgl2")||z.getContext("webgl")||z.getContext("experimental-webgl");if(!N)return!1;const H=N.getExtension("WEBGL_debug_renderer_info");if(!H)return!1;const fe=N.getParameter(H.UNMASKED_RENDERER_WEBGL);return typeof fe=="string"&&/apple\s?m\d/i.test(fe)}catch(z){return!1}}function $t(){var se,st,at;if(typeof window>"u")return;const{navigator:s}=window;if(!s)return;const d=s.userAgent||"",f=d.toLowerCase(),z=s.platform||"",N=s.userAgentData,H=(at=(st=(se=N==null?void 0:N.platform)==null?void 0:se.toLowerCase)==null?void 0:st.call(se))!=null?at:"";if(f.includes("harmony")){x.value="harmony";return}if(f.includes("byd")){x.value="byd";return}if(/android/i.test(f)){x.value="android";return}if(et()){x.value="ios";return}if(/win/.test(z)||/windows/.test(f)){x.value="windows";return}if(/linux/.test(z)||f.includes("linux")){x.value="linux";return}if(/mac/.test(z.toLowerCase())||f.includes("macintosh")||H.includes("mac")){Zt(d)?x.value="mac-arm":!et()&&Xt()?x.value=null:x.value="mac-x86";return}}async function en(){var s;try{B.value=!0;const d=n("/client/desktop/lzc-client-desktop_arm64.dmg.metadata.json"),f=await ae.get(d),z=(s=f==null?void 0:f.data)==null?void 0:s.buildVersion;return z&&(I.value=z,localStorage==null||localStorage.setItem("Arm64MacOsVersion",I.value)),B.value=!1,z}catch(d){console.error(d),B.value=!1;const f=localStorage==null?void 0:localStorage.getItem("Arm64MacOsVersion");throw f&&(I.value=f),new Error(e("lzc_site.pages.download.messages_error_fetching_version","获取版本失败"))}}async function nt(){var s,d;await hn.write((d=(s=h.value)==null?void 0:s.command)!=null?d:""),S.success(e("lzc_site.pages.download.messages_copy_success","复制成功"))}async function tn(){var s;try{w.value=!0;const d=n("/client/desktop/lzc-client-desktop_x64.dmg.metadata.json"),f=await ae.get(d),z=((s=f==null?void 0:f.data)==null?void 0:s.buildVersion)||(localStorage==null?void 0:localStorage.getItem("X64MacOsVersion"));return z&&(T.value=z,localStorage==null||localStorage.setItem("X64MacOsVersion",T.value)),w.value=!1,z}catch(d){console.error(d),w.value=!1;const f=localStorage==null?void 0:localStorage.getItem("X64MacOsVersion");throw f&&(T.value=f),new Error(e("lzc_site.pages.download.messages_error_fetching_version","获取版本失败"))}}async function rt(){var s;try{C.value=!0;const d=n("/client/desktop/lzc-client-desktop.exe.metadata.json"),f=await ae.get(d),z=((s=f==null?void 0:f.data)==null?void 0:s.buildVersion)||(localStorage==null?void 0:localStorage.getItem("WindowsVersion"));return z&&(b.value=z,localStorage==null||localStorage.setItem("WindowsVersion",b.value)),C.value=!1,z}catch(d){console.error(d),C.value=!1;const f=localStorage==null?void 0:localStorage.getItem("WindowsVersion");throw f&&(b.value=f),new Error(e("lzc_site.pages.download.messages_error_fetching_version","获取版本失败"))}}async function Ae(){var s,d,f;try{_.value=!0;const z=n("/client/android/lzc-client-android.metadata.json"),N=await ae.get(z),H=((f=(d=(s=N==null?void 0:N.data)==null?void 0:s.elements)==null?void 0:d[0])==null?void 0:f.versionName)||(localStorage==null?void 0:localStorage.getItem("AndroidVersion"));return H&&(p.value=H,localStorage==null||localStorage.setItem("AndroidVersion",p.value)),_.value=!1,H}catch(z){console.error(z),_.value=!1;const N=localStorage==null?void 0:localStorage.getItem("AndroidVersion");throw N&&(p.value=N),new Error(e("lzc_site.pages.download.messages_error_fetching_version","获取版本失败"))}}async function nn(){var s;try{const d=n("/aibrowser/lzc-ai-browser.apk.metadata.json"),f=await ae.get(d),z=(s=f==null?void 0:f.data)==null?void 0:s.version;return z&&(M.value=z,localStorage==null||localStorage.setItem("AIBrowserAndroidVersion",z)),z}catch(d){console.error(d);const f=localStorage==null?void 0:localStorage.getItem("AIBrowserAndroidVersion");throw f&&(M.value=f),new Error(e("lzc_site.pages.download.messages_error_fetching_version","Failed to fetch version"))}}async function xe(){return y.value?y.value:K||(K=(async()=>{var s,d;try{A.value=!0,L.value=null;const f=await ae.get(n("/hclient-cli/latest-version.json")),z=(s=f==null?void 0:f.data)==null?void 0:s.version,N=(d=f==null?void 0:f.data)==null?void 0:d.artifacts;if(!z||!N||typeof N!="object")throw new Error("Invalid server manifest");return y.value={version:z,artifacts:N},y.value}catch(f){throw console.error(f),y.value=null,L.value=e("lzc_site.pages.download.messages_server_fetch_failed","获取 server 下载信息失败"),new Error(L.value)}finally{A.value=!1,K=null}})(),K)}Mn(()=>{Promise.all([ge(en),ge(tn),ge(rt),ge(Ae),ge(nn)])});function Z(s){const d=document.createElement("a");d.href=s,document.body.appendChild(d),d.click(),d.remove()}async function rn(){if(m.value){try{await xe()}catch(s){S.warning(L.value||e("lzc_site.pages.download.messages_server_fetch_failed","获取 server 下载信息失败"));return}localStorage==null||localStorage.setItem(ie,JSON.stringify(ue.value)),E.push("/download-server-detail");return}q.value=!0,xe().catch(()=>null)}async function ot(){if(_.value){S.info(e("lzc_site.pages.download.messages_fetching_latest_version","正在获取最新版本"));return}if(!p.value){try{S.info(e("lzc_site.pages.download.messages_fetching_latest_version","正在获取最新版本")),await Ae()?(S.info(e("lzc_site.pages.download.messages_got_latest_version","已获取最新版本")),Z(O.value.Android)):S.warning(e("lzc_site.pages.download.messages_fetch_version_failed","获取版本失败"))}catch(s){console.error(s),S.warning(e("lzc_site.pages.download.messages_fetch_version_failed","获取版本失败"))}return}Z(O.value.Android)}async function on(){if(C.value){S.info(e("lzc_site.pages.download.messages_fetching_latest_version","正在获取最新版本"));return}if(!b.value){try{S.info(e("lzc_site.pages.download.messages_fetching_latest_version","正在获取最新版本")),await rt()?(S.info(e("lzc_site.pages.download.messages_got_latest_version","已获取最新版本")),Z(O.value.Windows)):S.warning(e("lzc_site.pages.download.messages_fetch_version_failed","获取版本失败"))}catch(s){console.error(s),S.warning(e("lzc_site.pages.download.messages_fetch_version_failed","获取版本失败"))}return}Z(O.value.Windows)}function sn(){Z(O.value.Arm64MacOS)}function an(){Z(O.value.X64MacOS)}const ie="instruction",it=()=>{var d;const s=(d=navigator==null?void 0:navigator.userAgent)==null?void 0:d.toLowerCase();return s==null?void 0:s.includes("micromessenger")},Ee=D(!1),ln=W(()=>[{img:$,name:"Mac OS ARM",onClick:sn,isActive:P(["mac-arm"])},{img:$,name:"Mac OS X86",onClick:an,isActive:P(["mac-x86"])},{img:$,name:"Homebrew",onClick:()=>{const s={title:"Homebrew",type:"app",command:O.value.Homebrew};if(m.value)return localStorage==null||localStorage.setItem(ie,JSON.stringify(s)),E.push("/download-detail");h.value=s},isActive:!1},{img:Se,name:"Windows",onClick:on,isActive:P(["windows"])},{img:Be,name:"Linux",onClick:()=>{const s={title:"Linux",type:"app",command:O.value.Linux};if(m.value)return localStorage==null||localStorage.setItem(ie,JSON.stringify(s)),E.push("/download-detail");h.value=s},isActive:P(["linux"])},{img:lt,name:"Android",onClick:ot,isActive:P(["android"])},{img:$,name:"iOS",onClick:()=>{it()&&m.value?Ee.value=!0:window.open(O.value.iOS,"_blank")},isActive:P(["ios"])},{img:bn,name:"Server",onClick:()=>{rn()},isActive:!1},{img:Cn,name:e("lzc_site.pages.download.buttons_harmony_os","鸿蒙"),onClick:()=>{Qt()},isActive:P(["harmony"])},{img:An,name:e("lzc_site.pages.download.buttons_byd_in_car","比亚迪车机"),onClick:ot,isActive:P(["byd"])}]),cn=W(()=>[{img:$,name:"Mac OS ARM",onClick:()=>{const s={title:"Mac OS ARM",type:"browser",command:Y.value.Arm64MacOS};if(m.value)return localStorage==null||localStorage.setItem(ie,JSON.stringify(s)),E.push("/download-detail");h.value=s},isActive:P(["mac-arm"])},{img:$,name:"Mac OS X86",onClick:()=>{const s={title:"Mac OS X86",type:"browser",command:Y.value.X64MacOS};if(m.value)return localStorage==null||localStorage.setItem(ie,JSON.stringify(s)),E.push("/download-detail");h.value=s},isActive:P(["mac-x86"])},{img:Se,name:"Windows",onClick:()=>{Z(Y.value.Windows)},isActive:P(["windows"])},{img:Be,name:"Linux",onClick:()=>{const s={title:"Linux",type:"browser",command:Y.value.Linux};if(m.value)return localStorage==null||localStorage.setItem(ie,JSON.stringify(s)),E.push("/download-detail");h.value=s},isActive:P(["linux"])},{img:lt,name:"Android",onClick:()=>{Z(Y.value.Android)},isActive:P(["android"])},{img:$,name:"iOS",onClick:()=>
1{if(m.value)return E.push({path:"/download-detail",query:{tunedFlag:1}});g.value=!0},isActive:P(["ios"])}]);return()=>u("div",{class:"lzc-cloud-download-container"},[u("div",{class:"top"},[o.value==="zh"&&u("h1",{class:"title"},[ve("随时随地使用懒猫微服")]),o.value==="en"&&u("h1",{class:"title-en"},[ve("Access LCMD MicroServer")]),o.value==="en"&&u("h1",{class:"title-en"},[ve("Anytime, Anywhere")]),u("h1",{class:"title-mobile"},[u("div",null,[e("lzc_site.pages.download.title_mobile_line1","随时随地")]),u("div",null,[e("lzc_site.pages.download.title_mobile_line2","使用懒猫微服")])]),u("div",{class:"sub-heading"},[e("lzc_site.pages.download.sub_heading","懒猫微服支持所有终端平台,适用于 Windows、macOS、Linux、iOS")]),u("div",{class:"level-3-heading"},[e("lzc_site.pages.download.level3_heading","Android、鸿蒙、Server、BYD 车机")]),u("div",{class:"sub-heading-mobile"},[e("lzc_site.pages.download.sub_heading_mobile","懒猫微服支持所有终端平台,适用于")]),u("div",{class:"level-3-heading-mobile"},[e("lzc_site.pages.download.level3_heading_mobile","Windows、macOS、Linux、iOS、Android")]),u("div",{class:"level-4-heading-mobile"},[e("lzc_site.pages.download.level4_heading_mobile","稳定快速")]),u("div",{class:["btn-wrap",{"more-width":o.value==="en"}]},[u("button",{class:"btn",onClick:v},[e("lzc_site.pages.download.buttons_download_client","下载客户端")]),u("button",{class:"btn",onClick:R},[e("lzc_site.pages.download.buttons_download_ai_browser","下载 AI 浏览器")])])]),u("div",{class:"second"},[o.value==="zh"&&u("img",{class:"img-container pc1",src:$n},null),o.value!=="zh"&&u("img",{class:"img-container pc1",src:er},null),o.value==="zh"&&u("img",{class:"img-container-mobile",src:tr,alt:""},null),o.value!=="zh"&&u("img",{class:"img-container-mobile",src:nr,alt:""},null)]),u("div",{class:"third",ref:"view2"},[u("div",{class:"download-wrap"},[u("div",null,[e("lzc_site.pages.download.sections_download_lazycat_client","下载懒猫客户端")]),u("div",null,[e("lzc_site.pages.download.sections_client","客户端")])]),u("div",{class:"apps-wrap"},[ln.value.map(s=>{const d=s.isActive&&x.value==="android"&&tt();return u("div",{class:["app","cursor-pointer",{active:s.isActive&&!d,"active-white":d}],key:s.name,onClick:s.onClick},[u("img",{src:s.img},null),u("div",null,[s.name])])})]),u("div",{class:"version-text text-[#5B6065] text-[14px] my-[32px]"},[e("lzc_site.pages.download.version_text","懒猫微服客户端支持:Windows 10 及以上版本;苹果 x86 平台(macOS 11 及以上版本);Android 8.1 及以上版本;iOS 15.0 及以上版本;")])]),o.value==="zh"&&u(Q,null,[u("img",{class:"img-container pc2",src:Ot},null),u("img",{class:"img-container-mobile mobile2",src:Ot},null)]),o.value!=="zh"&&u(Q,null,[u("img",{class:"img-container pc2",src:Ft},null),u("img",{class:"img-container-mobile mobile2",src:Ft},null)]),u("div",{class:"forth"},[u("img",{class:"pc3-bg",src:pn},null),u("div",{class:"content-container",ref:"view3"},[u("div",{class:"download-ai-browser"},[u("div",null,[e("lzc_site.pages.download.sections_download_lazycat_ai_browser","下载懒猫AI浏览器")]),u("div",null,[e("lzc_site.pages.download.sections_ai_browser","AI浏览器")])]),u("div",{class:"browser-wrap"},[cn.value.map(s=>{const d=s.isActive&&x.value==="android"&&tt();return u("div",{class:["browser","cursor-pointer",{active:s.isActive&&!d,"active-white":d}],key:s.name,onClick:s.onClick},[u("img",{src:s.img},null),u("div",null,[s.name])])})]),u("div",{class:"version-text text-[#5B6065] text-[14px] mt-[32px] mb-[120px]"},[e("lzc_site.pages.download.browser_text","懒猫AI浏览器是去除了 Google 追踪代码的隐私浏览器,AI 功能需
1要购买懒猫 AI 算力舱才能使用")]),o.value==="zh"&&u(Q,null,[u("img",{class:"img-container pc3",src:wn,alt:""},null),u("img",{class:"img-container-mobile mobile3",src:vn,alt:""},null)]),o.value!=="zh"&&u(Q,null,[u("img",{class:"img-container pc3",src:yn,alt:""},null),u("img",{class:"img-container-mobile mobile3",src:_n,alt:""},null)])])]),u(he,{visible:X.value,onClose:be,contentClass:"harmony-guide-modal modal max-w-[95%] w-[960px] bg-[white] rounded-[24px] p-[80px] fixed top-[50%] left-[50%]  z-[2000] flex flex-col gap-[28px]",style:"transform: translate(-50%, -50%)"},{default:({close:s})=>{var d,f;return u(Q,null,[u("img",{class:"absolute right-[16px] top-[16px] cursor-pointer",src:we,onClick:s},null),u("div",{class:"flex flex-col gap-[12px]"},[u("div",{class:"harmony-guide-title text-[28px] md:text-[32px] font-semibold text-[#1E253C]"},[e("lzc_site.pages.download.harmony_install_modal_title","鸿蒙 安装方式")]),u("div",{class:"text-[16px] text-[#5B6065] leading-[22px] md:leading-[24px]"},[e("lzc_site.pages.download.harmony_install_description","鸿蒙系统请先安装卓易通,通过卓易通打开使用")])]),u("div",{class:"flex flex-col gap-[20px]"},[u("div",{class:"harmony-guide-step"},[u("div",{class:"harmony-guide-step-body gap-[12px] w-full"},[u("div",{class:"text-[16px]  font-semibold text-[#1E253C]"},[e("lzc_site.pages.download.harmony_step_download","下载客户端")]),u("button",{type:"button",class:"harmony-download-chip mt-[12px] disabled:opacity-60 disabled:cursor-not-allowed",onClick:Yt,title:U.value,disabled:!te(U.value)},[U.value&&u("span",null,[(f=(d=U.value)==null?void 0:d.split("/"))==null?void 0:f.pop()]),u("img",{class:"harmony-download-icon w-[20px] h-[20px]",src:ct,alt:""},null)])])]),u("div",{class:"harmony-guide-step"},[u("div",{class:"harmony-guide-step-body gap-[12px] w-full"},[u("div",{class:"text-[16px] mb-[32px] font-semibold text-[#1E253C]"},[e("lzc_site.pages.download.harmony_step_scan","扫码下载")]),u("div",{class:"harmony-qr-wrapper flex flex-col gap-[12px] items-center w-full"},[j.value?u("div",{class:"harmony-qr-placeholder"},[e("lzc_site.pages.download.harmony_qr_generating","二维码生成中...")]):V.value?u("div",{class:"harmony-qr-placeholder"},[V.value]):F.value?u("img",{class:"harmony-qr-image",src:F.value,alt:e("lzc_site.pages.download.harmony_qr_alt","鸿蒙安装二维码")},null):u("div",{class:"harmony-qr-placeholder"},[e("lzc_site.pages.download.harmony_qr_generating","二维码生成中...")]),u("div",{class:"harmony-qr-tip text-center font-semibold text-[18px] text-[#292D32] leading-[22px]"},[e("lzc_site.pages.download.harmony_qr_tip","长按保存至相册后\n扫码下载")])])])])])])}}),u(he,{visible:!!h.value,onClose:Ce,contentClass:"modal max-w-[80%] w-[960px] bg-[white] rounded-[16px] p-[80px] fixed top-[50%] left-[50%]  z-[2000]",style:"transform: translate(-50%, -50%)"},{default:({close:s})=>{var d,f,z,N,H;return u(Q,null,[u("img",{class:"absolute right-[16px] top-[16px] cursor-pointer",src:we,onClick:s},null),u("div",{class:"text-[#000000] text-[36px] font-semibold mb-[40px]"},[(d=h.value)==null?void 0:d.title,ve(" "),e("lzc_site.pages.download.modal_install_method","安装方法")]),u("div",{class:"text-[] font-medium leading-[22px] mb-[20px]"},[((f=h.value)==null?void 0:f.type)==="app"?"":e("lzc_site.pages.download.modal_install_ai_browser_method","AI 浏览器安装方法")]),((z=h.value)==null?void 0:z.title)==="Homebrew"?u(Q,null,[u("div",{class:"w-[800px] h-[52px] max-w-[100%] pl-[16px] pr-[56px] bg-[#F8F8FA] rounded-[8px] flex items-center relative"},[u("div",{class:"whitespace-nowrap text-[14px] text-[#55576C] font-[400] w-full overflow-auto"},[(N=h.value)==null?void 0:N.command]),u("img",{class:"absolute top-[50%] notailwind-translate-y right-[16px] cursor-pointer",src:ut,onClick:()=>nt()},null)])]):u("div",{class:"w-[800px] h-[52px] max-w-[100%] pl-[16px] pr-[56px] bg-[#F8F8FA] rounded-[8px] flex items-center relative"},[u("div",{class:"whitespace-nowrap text-[14px] text-[#55576C] font-[400] w-full overflow-auto"},[(H=h.value)==null?void 0:H.command]),u("img",{class:"absolute top-[50%] notailwind-translate-y right-[16px] cursor-pointer",src:ut,onClick:()=>nt()},null)])])}}),u(he,{visible:q.value,onClose:Ce,contentClass:"modal max-w-[80%] w-[960px] bg-[white] rounded-[16px] p-[48px] md:p-[80px] fixed top-[50%] left-[50%] z-[2000]",style:"transform: translate(-50%, -50%)"},{default:({close:s})=>u(Q,null,[u("img",{class:"absolute right-[16px] top-[16px] cursor-pointer",src:we,onClick:s},null),u("div",{class:"text-[#000000] text-[28px] md:text-[36px] font-semibold mb-[12px]"},[e("lzc_site.pages.download.server_modal_title","选择下载平台")]),A.value?u("div",{class:"min-h-[160px] flex items-center justify-center text-[#55576C] text-[14px]"},[e("lzc_site.pages.download.messages_server_fetching_list","正在获取下载列表")]):ce.value.length>0?u("div",{class:"max-h-[60vh] overflow-auto flex flex-col gap-[20px]"},[ce.value.map(d=>u("div",{key:d.title,class:"flex flex-col gap-[12px]"},[u("div",{class:"text-[#1E253C] text-[18px] font-semibold"},[d.title]),u("div",{class:"grid grid-cols-1 md:grid-cols-2 gap-[12px]"},[d.items.map(f=>u("a",{href:f.url,class:"w-full text-left bg-[#F8F8FA] rounded-[12px] px-[16px] py-[16px] flex items-center justify-between gap-[16px]",onClick:()=>{q.value=!1}},[u("div",{class:"min-w-0 flex items-center gap-[12px] flex-1"},[u("img",{class:"w-[32px] h-[32px] shrink-0",src:f.icon,alt:"",style:"filter: brightness(0) saturate(100%);"},null),u("div",{class:"text-[#1E253C] text-[16px] font-semibold"},[f.label])]),u("img",{class:"w-[20px] h-[20px] shrink-0",src:ct,alt:""},null)]))])]))]):u("div",{class:"min-h-[160px] flex flex-col items-center justify-center gap-[16px] text-center"}
1,[u("div",{class:"text-[#55576C] text-[14px]"},[L.value||e("lzc_site.pages.download.messages_server_fetch_failed","获取 server 下载信息失败")]),u("button",{class:"h-[40px] px-[20px] bg-[#1E253C] rounded-[8px] text-white text-[14px] font-medium",onClick:()=>{xe().catch(()=>null)}},[e("lzc_site.pages.download.buttons_server_retry","重新获取")])])])}),u(he,{visible:g.value,onClose:Ce,contentClass:"modal max-w-[80%] w-[960px] bg-[white] rounded-[16px] p-[80px] fixed top-[50%] left-[50%]  z-[2000]",style:"transform: translate(-50%, -50%)"},{default:({close:s})=>u(Q,null,[u("img",{class:"absolute right-[16px] top-[16px] cursor-pointer",src:we,onClick:s},null),u("div",{class:"text-[#000000] text-[36px] font-semibold"},[e("lzc_site.pages.download.tuned","敬请期待")])])}),u(he,{visible:it()&&Ee.value,onClose:()=>{Ee.value=!1},overlayClass:"fixed left-[0px] top-[0px] z-[240] w-[100vw] h-[100vh] bg-[rgba(0,0,0,0.5)]",contentClass:"fixed left-[0px] right-[0px] mx-[auto] top-[0px] z-[245] w-[90vw]"},{default:({close:s})=>u("img",{class:"w-full",src:Zn,alt:"",onClick:s},null)})])}});export{fr as default};

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.