PageSourceSearch

https://10088.ai/assets/export-e2fba468.js

js 10088.ai collected 2026-10-05 11:48:00 UTC 28,376 bytes, 1 lines download raw bytes

vendor: 4,844 bytes, line 1
1import{C as Ht}from"./aa-chat-input-c6760478.js";import{t as $t}from"./index-8cb6ceac.js";import{d as yt,E as Kt,d1 as Jt,a as Ct,D as Ot,a6 as Yt,o as jt,G as H,H as j,I as k,J as D,K as I,Q as Et,T as G,U as $,M as q,N as Gt,c8 as qt,$ as Qt,O as xt}from"./app-e1fab618.js";import{u as Wt}from"./index-852d251b.js";import{a as Zt,_ as Xt}from"./DrawerContent-08ebcec1.js";import"./aa-html.vue_vue_type_script_setup_true_lang-479626b6.js";import"./aa-image.vue_vue_type_script_setup_true_lang-236f1e91.js";import"./aa-popconfirm.vue_vue_type_script_setup_true_lang-4cead534.js";import"./Popconfirm-5feabc79.js";import"./Grid-2ada5c33.js";import"./ButtonGroup-3e29872f.js";import"./Input-1913136b.js";import"./aa-empty.vue_vue_type_script_setup_true_lang-005bbd44.js";import"./aa-type-form.vue_vue_type_style_index_0_lang-dd4b6737.js";import"./aa-type-form-item-2c90c538.js";import"./components-e3fad6ec.js";import"./Add-cff94365.js";import"./Select-a510aac6.js";import"./CollapseItem-b4ad8dd6.js";import"./ChevronLeft-7181bde5.js";import"./Checkbox-87d96e78.js";import"./Radio-0681625e.js";import"./RadioGroup-4f1b026c.js";import"./Switch-0a23505c.js";import"./utils-40726c2e.js";import"./ColorPicker-cdefa8e6.js";import"./InputGroup-d9966703.js";import"./Upload-2896aeda.js";import"./FormItem-14e5931b.js";import"./ask-18cc8f50.js";import"./aa-skeleton.vue_vue_type_style_index_0_lang-bbd36812.js";import"./Skeleton-fbd2409d.js";import"./aa-footer-cef4c8e9.js";import"./aa-spin.vue_vue_type_script_setup_true_lang-358149a2.js";import"./vision.vue_vue_type_script_setup_true_lang-9fd23ff5.js";import"./p-1dbbed7f.js";var O={},te=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},It={},N={};let gt;const ee=[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];N.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};N.getSymbolTotalCodewords=function(t){return ee[t]};N.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};N.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');gt=t};N.isKanjiModeEnabled=function(){return typeof gt<"u"};N.toSJIS=function(t){return gt(t)};var X={};(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(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},e.from=function(o,n){if(e.isValid(o))return o;try{return t(o)}catch(r){return n}}})(X);function Nt(){this.buffer=[],this.length=0}Nt.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.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var ne=Nt;function Y(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}Y.prototype.set=function(e,t,i,o){const n=e*this.size+t;this.data[n]=i,o&&(this.reservedBit[n]=!0)};Y.prototype.get=function(e,t){return this.data[e*this.size+t]};Y.prototype.xor=function(e,t,i){this.data[e*this.size+t]^=i};Y.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var oe=Y,Tt={};(function(e){const t=N.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const n=Math.floor(o/7)+2,r=t(o),s=r===145?26:Math.ceil((r-13)/(2*n-2))*2,c=[r-7];for(let a=1;a<n-1;a++)c[a]=c[a-1]-s;return c.push(6),c.reverse()},e.getPositions=function(o){const n=[],r=e.getRowColCoords(o),s=r.length;for(let c=0;c<s;c++)for(let a=0;a<s;a++)c===0&&a===0||c===0&&a===s-1||c===s-1&&a===0||n.push([r[c],r[a]]);return n}})(Tt);var Mt={};const re=N.getSymbolSize,Bt=7;Mt.getPositions=function(t){const i=re(t);return[[0,0],[i-Bt,0],[0,i-Bt]]};var bt={};(function(e){e.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const t={N1:3,N2:3,N3:40,N4:10};e.isValid=function(n){return n!=null&&n!==""&&!isNaN(n)&&n>=0&&n<=7},e.from=function(n){return e.isValid(n)?parseInt(n,10):void 0},e.getPenaltyN1=function(n){const r=n.size;let s=0,c=0,a=0,u=null,l=null;for(let E=0;E<r;E++){c=a=0,u=l=null;for(let m=0;m<r;m++){let f=n.get(E,m);f===u?c++:(c>
vendor: 1,173 bytes, line 1
1=5&&(s+=t.N1+(c-5)),u=f,c=1),f=n.get(m,E),f===l?a++:(a>=5&&(s+=t.N1+(a-5)),l=f,a=1)}c>=5&&(s+=t.N1+(c-5)),a>=5&&(s+=t.N1+(a-5))}return s},e.getPenaltyN2=function(n){const r=n.size;let s=0;for(let c=0;c<r-1;c++)for(let a=0;a<r-1;a++){const u=n.get(c,a)+n.get(c,a+1)+n.get(c+1,a)+n.get(c+1,a+1);(u===4||u===0)&&s++}return s*t.N2},e.getPenaltyN3=function(n){const r=n.size;let s=0,c=0,a=0;for(let u=0;u<r;u++){c=a=0;for(let l=0;l<r;l++)c=c<<1&2047|n.get(u,l),l>=10&&(c===1488||c===93)&&s++,a=a<<1&2047|n.get(l,u),l>=10&&(a===1488||a===93)&&s++}return s*t.N3},e.getPenaltyN4=function(n){let r=0;const s=n.data.length;for(let a=0;a<s;a++)r+=n.data[a];return Math.abs(Math.ceil(r*100/s/5)-10)*t.N4};function i(o,n,r){switch(o){case e.Patterns.PATTERN000:return(n+r)%2===0;case e.Patterns.PATTERN001:return n%2===0;case e.Patterns.PATTERN010:return r%3===0;case e.Patterns.PATTERN011:return(n+r)%3===0;case e.Patterns.PATTERN100:return(Math.floor(n/2)+Math.floor(r/3))%2===0;case e.Patterns.PATTERN101:return n*r%2+n*r%3===0;case e.Patterns.PATTERN110:return(n*r%2+n*r%3)%2===0;case e.Patterns.PATTERN111:return(n*r%3+(n+r)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}
vendor: 12,109 bytes, line 1
1e.applyMask=function(n,r){const s=r.size;for(let c=0;c<s;c++)for(let a=0;a<s;a++)r.isReserved(a,c)||r.xor(a,c,i(n,a,c))},e.getBestMask=function(n,r){const s=Object.keys(e.Patterns).length;let c=0,a=1/0;for(let u=0;u<s;u++){r(u),e.applyMask(u,n);const l=e.getPenaltyN1(n)+e.getPenaltyN2(n)+e.getPenaltyN3(n)+e.getPenaltyN4(n);e.applyMask(u,n),l<a&&(a=l,c=u)}return c}})(bt);var tt={};const R=X,Q=[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],x=[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];tt.getBlocksCount=function(t,i){switch(i){case R.L:return Q[(t-1)*4+0];case R.M:return Q[(t-1)*4+1];case R.Q:return Q[(t-1)*4+2];case R.H:return Q[(t-1)*4+3];default:return}};tt.getTotalCodewordsCount=function(t,i){switch(i){case R.L:return x[(t-1)*4+0];case R.M:return x[(t-1)*4+1];case R.Q:return x[(t-1)*4+2];case R.H:return x[(t-1)*4+3];default:return}};var St={},et={};const K=new Uint8Array(512),W=new Uint8Array(256);(function(){let t=1;for(let i=0;i<255;i++)K[i]=t,W[t]=i,t<<=1,t&256&&(t^=285);for(let i=255;i<512;i++)K[i]=K[i-255]})();et.log=function(t){if(t<1)throw new Error("log("+t+")");return W[t]};et.exp=function(t){return K[t]};et.mul=function(t,i){return t===0||i===0?0:K[W[t]+W[i]]};(function(e){const t=et;e.mul=function(o,n){const r=new Uint8Array(o.length+n.length-1);for(let s=0;s<o.length;s++)for(let c=0;c<n.length;c++)r[s+c]^=t.mul(o[s],n[c]);return r},e.mod=function(o,n){let r=new Uint8Array(o);for(;r.length-n.length>=0;){const s=r[0];for(let a=0;a<n.length;a++)r[a]^=t.mul(n[a],s);let c=0;for(;c<r.length&&r[c]===0;)c++;r=r.slice(c)}return r},e.generateECPolynomial=function(o){let n=new Uint8Array([1]);for(let r=0;r<o;r++)n=e.mul(n,new Uint8Array([1,t.exp(r)]));return n}})(St);const Pt=St;function ht(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}ht.prototype.initialize=function(t){this.degree=t,this.genPoly=Pt.generateECPolynomial(this.degree)};ht.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(t.length+this.degree);i.set(t);const o=Pt.mod(i,this.genPoly),n=this.degree-o.length;if(n>0){const r=new Uint8Array(this.degree);return r.set(o,n),r}return o};var ie=ht,Rt={},L={},mt={};mt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var b={};const Lt="[0-9]+",se="[A-Z $%*+\\-./:]+";let J="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";J=J.replace(/u/g,"\\u");const ae="(?:(?![A-Z0-9 $%*+\\-./:]|"+J+")(?:.|[\r\n]))+";b.KANJI=new RegExp(J,"g");b.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");b.BYTE=new RegExp(ae,"g");b.NUMERIC=new RegExp(Lt,"g");b.ALPHANUMERIC=new RegExp(se,"g");const ce=new RegExp("^"+J+"$"),le=new RegExp("^"+Lt+"$"),ue=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");b.testKanji=function(t){return ce.test(t)};b.testNumeric=function(t){return le.test(t)};b.testAlphanumeric=function(t){return ue.test(t)};(function(e){const t=mt,i=b;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,s){if(!r.ccBits)throw new Error("Invalid mode: "+r);if(!t.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?r.ccBits[0]:s<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 o(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.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: "+n)}}e.from=function(r,s){if(e.isValid(r))return r;try{return o(r)}catch(c){return s}}})(L);(function(e){const t=N,i=tt,o=X,n=L,r=mt,s=7973,c=t.getBCHDigit(s);function a(m,f,g){for(let w=1;w<=40;w++)if(f<=e.getCapacity(w,g,m))return w}function u(m,f){return n.getCharCountIndicator(m,f)+4}function l(m,f){let g=0;return m.forEach(function(w){const _=u(w.mode,f);g+=_+w.getBitsLength()}),g}function E(m,f){for(let g=1;g<=40;g++)if(l(m,g)<=e.getCapacity(g,f,n.MIXED))return g}e.from=function(f,g){return r.isValid(f)?parseInt(f,10):g},e.getCapacity=function(f,g,w){if(!r.isValid(f))throw new Error("Invalid QR Code version");typeof w>"u"&&(w=n.BYTE);const _=t.getSymbolTotalCodewords(f),p=i.getTotalCodewordsCount(f,g),y=(_-p)*8;if(w===n.MIXED)return y;const h=y-u(w,f);switch(w){case n.NUMERIC:return Math.floor(h/10*3);case n.ALPHANUMERIC:return Math.floor(h/11*2);case n.KANJI:return Math.floor(h/13);case n.BYTE:default:return Math.floor(h/8)}},e.getBestVersionForData=function(f,g){let w;const _=o.from(g,o.M);if(Array.isArray(f)){if(f.length>1)return E(f,_);if(f.length===0)return 1;w=f[0]}else w=f;return a(w.mode,w.getLength(),_)},e.getEncodedBits=function(f){if(!r.isValid(f)||f<7)throw new Error("Invalid QR Code version");let g=f<<12;for(;t.getBCHDigit(g)-c>=0;)g^=s<<t.getBCHDigit(g)-c;return f<<12|g}})(Rt);var kt={};const lt=N,Dt=1335,fe=21522,_t=lt.getBCHDigit(Dt);kt.getEncodedBits=function(t,i){const o=t.bit<<3|i;let n=o<<10;for(;lt.getBCHDigit(n)-_t>=0;)n^=Dt<<lt.getBCHDigit(n)-_t;return(o<<10|n)^fe};var Ut={};const de=L;function U(e){this.mode=de.NUMERIC,this.data=e.toString()}U.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)};U.prototype.getLength=function(){return this.data.length};U.prototype.getBitsLength=function(){return U.getBitsLength(this.data.length)};U.prototype.write=function(t){let i,o,n;for(i=0;i+3<=this.data.length;i+=3)o=this.data.substr(i,3),n=parseInt(o,10),t.put(n,10);const r=this.data.length-i;r>0&&(o=this.data.substr(i),n=parseInt(o,10),t.put(n,r*3+1))};var ge=U;const he=L,rt=["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 F(e){this.mode=he.ALPHANUMERIC,this.data=e}F.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(t){let i;for(i=0;i+2<=this.data.length;i+=2){let o=rt.indexOf(this.data[i])*45;o+=rt.indexOf(this.data[i+1]),t.put(o,11)}this.data.length%2&&t.put(rt.indexOf(this.data[i]),6)};var me=F;const pe=L;function v(e){this.mode=pe.BYTE,typeof e=="string"?this.data=new TextEncoder().encode(e):this.data=new Uint8Array(e)}v.getBitsLength=function(t){return t*8};v.prototype.getLength=function(){return this.data.length};v.prototype.getBitsLength=function(){return v.getBitsLength(this.data.length)};v.prototype.write=function(e){for(let t=0,i=this.data.length;t<i;t++)e.put(this.data[t],8)};var we=v;const ye=L,Ce=N;function z(e){this.mode=ye.KANJI,this.data=e}z.getBitsLength=function(t){return t*13};z.prototype.getLength=function(){return this.data.length};z.prototype.getBitsLength=function(){return z.getBitsLength(this.data.length)};z.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let i=Ce.toSJIS(this.data[t]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");i=(i>>>8&255)*192+(i&255),e.put(i,13)}};var Ee=z,Ft={exports:{}};(function(e){var t={single_source_shortest_paths:function(i,o,n){var r={},s={};s[o]=0;var c=t.PriorityQueue.make();c.push(o,0);for(var a,u,l,E,m,f,g,w,_;!c.empty();){a=c.pop(),u=a.value,E=a.cost,m=i[u]||{};for(l in m)m.hasOwnProperty(l)&&(f=m[l],g=E+f,w=s[l],_=typeof s[l]>"u",(_||w>g)&&(s[l]=g,c.push(l,g),r[l]=u))}if(typeof n<"u"&&typeof s[n]>"u"){var p=["Could not find a path from ",o," to ",n,"."].join("");throw new Error(p)}return r},extract_shortest_path_from_predecessor_list:function(i,o){for(var n=[],r=o;r;)n.push(r),i[r],r=i[r];return n.reverse(),n},find_path:function(i,o,n){var r=t.single_source_shortest_paths(i,o,n);return t.extract_shortest_path_from_predecessor_list(r,n)},PriorityQueue:{make:function(i){var o=t.PriorityQueue,n={},r;i=i||{};for(r in o)o.hasOwnProperty(r)&&(n[r]=o[r]);return n.queue=[],n.sorter=i.sorter||o.default_sorter,n},default_sorter:function(i,o){return i.cost-o.cost},push:function(i,o){var n={value:i,cost:o};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Ft);var Be=Ft.exports;(function(e){const t=L,i=ge,o=me,n=we,r=Ee,s=b,c=N,a=Be;function u(p){return unescape(encodeURIComponent(p)).length}function l(p,y,h){const d=[];let C;for(;(C=p.exec(h))!==null;)d.push({data:C[0],index:C.index,mode:y,length:C[0].length});return d}function E(p){const y=l(s.NUMERIC,t.NUMERIC,p),h=l(s.ALPHANUMERIC,t.ALPHANUMERIC,p);let d,C;return c.isKanjiModeEnabled()?(d=l(s.BYTE,t.BYTE,p),C=l(s.KANJI,t.KANJI,p)):(d=l(s.BYTE_KANJI,t.BYTE,p),C=[]),y.concat(h,d,C).sort(function(A,T){return A.index-T.index}).map(function(A){return{data:A.data,mode:A.mode,length:A.length}})}function m(p,y){switch(y){case t.NUMERIC:return i.getBitsLength(p);case t.ALPHANUMERIC:return o.getBitsLength(p);case t.KANJI:return r.getBitsLength(p);case t.BYTE:return n.getBitsLength(p)}}function f(p){return p.reduce(function(y,h){const d=y.length-1>=0?y[y.length-1]:null;return d&&d.mode===h.mode?(y[y.length-1].data+=h.data,y):(y.push(h),y)},[])}function g(p){const y=[];for(let h=0;h<p.length;h++){const d=p[h];switch(d.mode){case t.NUMERIC:y.push([d,{data:d.data,mode:t.ALPHANUMERIC,length:d.length},{data:d.data,mode:t.BYTE,length:d.length}]);break;case t.ALPHANUMERIC:y.push([d,{data:d.data,mode:t.BYTE,length:d.length}]);break;case t.KANJI:y.push([d,{data:d.data,mode:t.BYTE,length:u(d.data)}]);break;case t.BYTE:y.push([{data:d.data,mode:t.BYTE,length:u(d.data)}])}}return y}function w(p,y){const h={},d={start:{}};let C=["start"];for(let B=0;B<p.length;B++){const A=p[B],T=[];for(let P=0;P<A.length;P++){const M=A[P],V=""+B+P;T.push(V),h[V]={node:M,lastCount:0},d[V]={};for(let ot=0;ot<C.length;ot++){const S=C[ot];h[S]&&h[S].node.mode===M.mode?(d[S][V]=m(h[S].lastCount+M.length,M.mode)-m(h[S].lastCount,M.mode),h[S].lastCount+=M.length):(h[S]&&(h[S].lastCount=M.length),d[S][V]=m(M.length,M.mode)+4+t.getCharCountIndicator(M.mode,y))}}C=T}for(let B=0;B<C.length;B++)d[C[B]].end=0;return{map:d,table:h}}function _(p,y){let h;const d=t.getBestModeForData(p);if(h=t.from(y,d),h!==t.BYTE&&h.bit<d.bit)throw new Error('"'+p+'" cannot be encoded with mode '+t.toString(h)+".\n Suggested mode is: "+t.toString(d));switch(h===t.KANJI&&!c.isKanjiModeEnabled()&&(h=t.BYTE),h){case t.NUMERIC:return new i(p);case t.ALPHANUMERIC:return new o(p);case t.KANJI:return new r(p);case t.BYTE:return new n(p)}}e.fromArray=function(y){return y.reduce(function(h,d){return typeof d=="str
1ing"?h.push(_(d,null)):d.data&&h.push(_(d.data,d.mode)),h},[])},e.fromString=function(y,h){const d=E(y,c.isKanjiModeEnabled()),C=g(d),B=w(C,h),A=a.find_path(B.map,"start","end"),T=[];for(let P=1;P<A.length-1;P++)T.push(B.table[A[P]].node);return e.fromArray(f(T))},e.rawSplit=function(y){return e.fromArray(E(y,c.isKanjiModeEnabled()))}})(Ut);const nt=N,it=X,_e=ne,Ae=oe,Ie=Tt,Ne=Mt,ut=bt,ft=tt,Te=ie,Z=Rt,Me=kt,be=L,st=Ut;function Se(e,t){const i=e.size,o=Ne.getPositions(t);for(let n=0;n<o.length;n++){const r=o[n][0],s=o[n][1];for(let c=-1;c<=7;c++)if(!(r+c<=-1||i<=r+c))for(let a=-1;a<=7;a++)s+a<=-1||i<=s+a||(c>=0&&c<=6&&(a===0||a===6)||a>=0&&a<=6&&(c===0||c===6)||c>=2&&c<=4&&a>=2&&a<=4?e.set(r+c,s+a,!0,!0):e.set(r+c,s+a,!1,!0))}}function Pe(e){const t=e.size;for(let i=8;i<t-8;i++){const o=i%2===0;e.set(i,6,o,!0),e.set(6,i,o,!0)}}function Re(e,t){const i=Ie.getPositions(t);for(let o=0;o<i.length;o++){const n=i[o][0],r=i[o][1];for(let s=-2;s<=2;s++)for(let c=-2;c<=2;c++)s===-2||s===2||c===-2||c===2||s===0&&c===0?e.set(n+s,r+c,!0,!0):e.set(n+s,r+c,!1,!0)}}function Le(e,t){const i=e.size,o=Z.getEncodedBits(t);let n,r,s;for(let c=0;c<18;c++)n=Math.floor(c/3),r=c%3+i-8-3,s=(o>>c&1)===1,e.set(n,r,s,!0),e.set(r,n,s,!0)}function at(e,t,i){const o=e.size,n=Me.getEncodedBits(t,i);let r,s;for(r=0;r<15;r++)s=(n>>r&1)===1,r<6?e.set(r,8,s,!0):r<8?e.set(r+1,8,s,!0):e.set(o-15+r,8,s,!0),r<8?e.set(8,o-r-1,s,!0):r<9?e.set(8,15-r-1+1,s,!0):e.set(8,15-r-1,s,!0);e.set(o-8,8,1,!0)}function ke(e,t){const i=e.size;let o=-1,n=i-1,r=7,s=0;for(let c=i-1;c>0;c-=2)for(c===6&&c--;;){for(let a=0;a<2;a++)if(!e.isReserved(n,c-a)){let u=!1;s<t.length&&(u=(t[s]>>>r&1)===1),e.set(n,c-a,u),r--,r===-1&&(s++,r=7)}if(n+=o,n<0||i<=n){n-=o,o=-o;break}}}function De(e,t,i){const o=new _e;i.forEach(function(a){o.put(a.mode.bit,4),o.put(a.getLength(),be.getCharCountIndicator(a.mode,e)),a.write(o)});const n=nt.getSymbolTotalCodewords(e),r=ft.getTotalCodewordsCount(e,t),s=(n-r)*8;for(o.getLengthInBits()+4<=s&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const c=(s-o.getLengthInBits())/8;for(let a=0;a<c;a++)o.put(a%2?17:236,8);return Ue(o,e,t)}function Ue(e,t,i){const o=nt.getSymbolTotalCodewords(t),n=ft.getTotalCodewordsCount(t,i),r=o-n,s=ft.getBlocksCount(t,i),c=o%s,a=s-c,u=Math.floor(o/s),l=Math.floor(r/s),E=l+1,m=u-l,f=new Te(m);let g=0;const w=new Array(s),_=new Array(s);let p=0;const y=new Uint8Array(e.buffer);for(let A=0;A<s;A++){const T=A<a?l:E;w[A]=y.slice(g,g+T),_[A]=f.encode(w[A]),g+=T,p=Math.max(p,T)}const h=new Uint8Array(o);let d=0,C,B;for(C=0;C<p;C++)for(B=0;B<s;B++)C<w[B].length&&(h[d++]=w[B][C]);for(C=0;C<m;C++)for(B=0;B<s;B++)h[d++]=_[B][C];return h}function Fe(e,t,i,o){let n;if(Array.isArray(e))n=st.fromArray(e);else if(typeof e=="string"){let u=t;if(!u){const l=st.rawSplit(e);u=Z.getBestVersionForData(l,i)}n=st.fromString(e,u||40)}else throw new Error("Invalid data");const r=Z.getBestVersionForData(n,i);if(!r)throw new Error("The amount of data is too big to be stored in a QR Code");if(!t)t=r;else if(t<r)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+r+".\n");const s=De(t,i,n),c=nt.getSymbolSize(t),a=new Ae(c);return Se(a,t),Pe(a),Re(a,t),at(a,i,0),t>=7&&Le(a,t),ke(a,s),isNaN(o)&&(o=ut.getBestMask(a,at.bind(null,a,i))),ut.applyMask(o,a),at(a,i,o),{modules:a,version:t,errorCorrectionLevel:i,maskPattern:o,segments:n}}It.create=function(t,i){if(typeof t>"u"||t==="")throw new Error("No input text");let o=it.M,n,r;return typeof i<"u"&&(o=it.from(i.errorCorrectionLevel,it.M),n=Z.from(i.version),r=ut.from(i.maskPattern),i.toSJISFunc&&nt.setToSJISFunction(i.toSJISFunc)),Fe(t,n,o,r)};var vt={},pt={};(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 o=i.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+i);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(r){return[r,r]}))),o.length===6&&o.push("F","F");const n=parseInt(o.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:n&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const n=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,r=o.width&&o.width>=21?o.width:void 0,s=o.scale||4;
1return{width:r,scale:r?4:s,margin:n,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,n){return n.width&&n.width>=o+n.margin*2?n.width/(o+n.margin*2):n.scale},e.getImageWidth=function(o,n){const r=e.getScale(o,n);return Math.floor((o+n.margin*2)*r)},e.qrToImageData=function(o,n,r){const s=n.modules.size,c=n.modules.data,a=e.getScale(s,r),u=Math.floor((s+r.margin*2)*a),l=r.margin*a,E=[r.color.light,r.color.dark];for(let m=0;m<u;m++)for(let f=0;f<u;f++){let g=(m*u+f)*4,w=r.color.light;if(m>=l&&f>=l&&m<u-l&&f<u-l){const _=Math.floor((m-l)/a),p=Math.floor((f-l)/a);w=E[c[_*s+p]?1:0]}o[g++]=w.r,o[g++]=w.g,o[g++]=w.b,o[g]=w.a}}})(pt);(function(e){const t=pt;function i(n,r,s){n.clearRect(0,0,r.width,r.height),r.style||(r.style={}),r.height=s,r.width=s,r.style.height=s+"px",r.style.width=s+"px"}function o(){try{return document.createElement("canvas")}catch(n){throw new Error("You need to specify a canvas element")}}e.render=function(r,s,c){let a=c,u=s;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),s||(u=o()),a=t.getOptions(a);const l=t.getImageWidth(r.modules.size,a),E=u.getContext("2d"),m=E.createImageData(l,l);return t.qrToImageData(m.data,r,a),i(E,u,l),E.putImageData(m,0,0),u},e.renderToDataURL=function(r,s,c){let a=c;typeof a>"u"&&(!s||!s.getContext)&&(a=s,s=void 0),a||(a={});const u=e.render(r,s,a),l=a.type||"image/png",E=a.rendererOpts||{};return u.toDataURL(l,E.quality)}})(vt);var zt={};const ve=pt;function At(e,t){const i=e.a/255,o=t+'="'+e.hex+'"';return i<1?o+" "+t+'-opacity="'+i.toFixed(2).slice(1)+'"':o}function ct(e,t,i){let o=e+t;return typeof i<"u"&&(o+=" "+i),o}function ze(e,t,i){let o="",n=0,r=!1,s=0;for(let c=0;c<e.length;c++){const a=Math.floor(c%t),u=Math.floor(c/t);!a&&!r&&(r=!0),e[c]?(s++,c>0&&a>0&&e[c-1]||(o+=r?ct("M",a+i,.5+u+i):ct("m",n,0),n=0,r=!1),a+1<t&&e[c+1]||(o+=ct("h",s),s=0)):n++}return o}zt.render=function(t,i,o){const n=ve.getOptions(i),r=t.modules.size,s=t.modules.data,c=r+n.margin*2,a=n.color.light.a?"<path "+At(n.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+At(n.color.dark,"stroke")+' d="'+ze(s,r,n.margin)+'"/>',l='viewBox="0 0 '+c+" "+c+'"',m='<svg xmlns="http://www.w3.org/2000/svg" '+(n.width?'width="'+n.width+'" height="'+n.width+'" ':"")+l+' shape-rendering="crispEdges">'+a+u+"</svg>\n";return typeof o=="function"&&o(null,m),m};const Ve=te,dt=It,Vt=vt,He=zt;function wt(e,t,i,o,n){const r=[].slice.call(arguments,1),s=r.length,c=typeof r[s-1]=="function";if(!c&&!Ve())throw new Error("Callback required as last argument");if(c){if(s<2)throw new Error("Too few arguments provided");s===2?(n=i,i=t,t=o=void 0):s===3&&(t.getContext&&typeof n>"u"?(n=o,o=void 0):(n=o,o=i,i=t,t=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=t,t=o=void 0):s===2&&!t.getContext&&(o=i,i=t,t=void 0),new Promise(function(a,u){try{const l=dt.create(i,o);a(e(l,t,o))}catch(l){u(l)}})}try{const a=dt.create(i,o);n(null,e(a,t,o))}catch(a){n(a)}}O.create=dt.create;O.toCanvas=wt.bind(null,Vt.render);O.toDataURL=wt.bind(null,Vt.renderToDataURL);O.toString=wt.bind(null,function(e,t,i){return He.render(e,i)});const $e={id:"chat-export-main-box",class:"py-5 select-none w-full"},Ke={class:"flex justify-center items-center w-full"},Je=["src"],Oe={class:"ml-2 flex flex-col flex-shrink-0 whitespace-nowrap text-center"},Ye={class:"font-bold text-base"},je={key:0,class:"text-xs text-muted"},Ge={key:1,class:"ml-2"},qe=["src"],Ln=yt({__name:"export",props:{chats:{type:Array,default:()=>[]},show:{type:Boolean,default:!1},hideModel:{type:Boolean,default:!1}},emits:["update:show"],setup(e,{emit:t}){const i=e;yt({name:"ChatExport"});const o=Kt(),n=Wt(),r=Jt(),s=Ct(!1),c=window.location,a=Ot(),u=Yt(),l=Ct();jt(()=>{o.isDesktop||O.toDataURL("".concat(c.protocol,"//").concat(c.host),{errorCorrectionLevel:"H",version:5,color:{dark:o.primaryColor,light:o.primaryLowColor}}).then(f=>{l.value=f}).catch(f=>{console.error("export qrcode generate error",f)})});function E(){const f=document.getElementById("chat-export-main-box");s.value=!0,$t(f,{backgroundColor:u.darkMode?"#1a2234":"#f1f5f9",cacheBust:!0}).then(function(g){s.value=!1;const w=document.createElement("a");
1w.download=new Date().getTime()+".png",w.href=g,w.click()}).catch(function(g){s.value=!1,a.msg().error(r.t("chat.exportFailErr")+a.getErrMessage(g)),console.error(r.t("chat.exportFail"),g)})}function m(){t("update:show",!1)}return(f,g)=>{const w=qt,_=Qt,p=xt,y=Xt,h=Zt;return H(),j("div",null,[k(h,{show:i.show,width:I(o).mobile?"100%":"60%","onUpdate:show":m,onMaskClick:g[0]||(g[0]=d=>!I(s)),onEsc:g[1]||(g[1]=d=>!I(s))},{default:D(()=>[k(y,{class:"w-full",title:f.$t("chat.export"),closable:!I(s),"body-content-style":"padding:10px"},{footer:D(()=>[k(p,{size:"small"},{default:D(()=>[k(_,{type:"primary",onClick:E,loading:I(s)},{default:D(()=>[Et(G(f.$t("chat.exportPng")),1)]),_:1},8,["loading"]),k(_,{onClick:m,disabled:I(s)},{default:D(()=>[Et(G(f.$t("common.cancel")),1)]),_:1},8,["disabled"])]),_:1})]),default:D(()=>{var d,C,B;return[$("div",$e,[$("div",Ke,[(d=I(o).siteInfo)!=null&&d.logo?(H(),j("img",{key:0,src:(C=I(o).siteInfo)==null?void 0:C.logo,crossOrigin:"anonymous",class:"h-[50px]",alt:"logo"},null,8,Je)):q("",!0),$("div",Oe,[$("span",Ye,G((B=I(o).siteInfo)==null?void 0:B.name),1),I(o).isDesktop?q("",!0):(H(),j("span",je,G("".concat(I(c).protocol,"//").concat(I(c).host)),1))]),I(l)?(H(),j("div",Ge,[$("img",{src:I(l),alt:"qrcode",class:"rounded-xl",width:"100"},null,8,qe)])):q("",!0)]),k(w),i.show?(H(),Gt(Ht,{key:0,mode:I(n).set.layoutMode,class:"w-full",selectable:!1,chats:i.chats,tooltips:!1,"hide-model":e.hideModel},null,8,["mode","chats","hide-model"])):q("",!0)])]}),_:1},8,["title","closable"])]),_:1},8,["show","width"])])}}});export{Ln 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.