qrCode.8bb180e4.js 36 KB

1234567891011121314151617181920
  1. import{M as ht}from"./motion.cda5ea3a.js";import{q as Vt,B as Rt,a2 as Lt,E as he,t as I,L as ye,ar as me,v as R,av as pe,I as Ht,D as we,b7 as be,bo as Ot,aB as ve,r as Dt,o as Ce,n as Ee,H as x,aD as Be,p as Te,S as Ae}from"./index.2530a63f.js";/*!
  2. * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
  3. *
  4. * Copyright (c) 2014-2017, Jon Schlinkert.
  5. * Released under the MIT License.
  6. */function Ft(t){return Object.prototype.toString.call(t)==="[object Object]"}function Se(t){var e,i;return Ft(t)===!1?!1:(e=t.constructor,e===void 0?!0:(i=e.prototype,!(Ft(i)===!1||i.hasOwnProperty("isPrototypeOf")===!1)))}function X(){return X=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},X.apply(this,arguments)}function Jt(t,e){if(t==null)return{};var i,n,r={},o=Object.keys(t);for(n=0;n<o.length;n++)e.indexOf(i=o[n])>=0||(r[i]=t[i]);return r}const Ne={silent:!1,logLevel:"warn"},Ie=["validator"],Kt=Object.prototype,Yt=Kt.toString,Pe=Kt.hasOwnProperty,qt=/^\s*function (\w+)/;function jt(t){var e;const i=(e=t==null?void 0:t.type)!==null&&e!==void 0?e:t;if(i){const n=i.toString().match(qt);return n?n[1]:""}return""}const U=Se,_e=t=>t;let N=_e;const z=(t,e)=>Pe.call(t,e),Me=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t},V=Array.isArray||function(t){return Yt.call(t)==="[object Array]"},H=t=>Yt.call(t)==="[object Function]",st=t=>U(t)&&z(t,"_vueTypes_name"),Qt=t=>U(t)&&(z(t,"type")||["_vueTypes_name","validator","default","required"].some(e=>z(t,e)));function Tt(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function k(t,e,i=!1){let n,r=!0,o="";n=U(t)?t:{type:t};const s=st(n)?n._vueTypes_name+" - ":"";if(Qt(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&e===void 0)return r;V(n.type)?(r=n.type.some(a=>k(a,e,!0)===!0),o=n.type.map(a=>jt(a)).join(" or ")):(o=jt(n),r=o==="Array"?V(e):o==="Object"?U(e):o==="String"||o==="Number"||o==="Boolean"||o==="Function"?function(a){if(a==null)return"";const u=a.constructor.toString().match(qt);return u?u[1]:""}(e)===o:e instanceof n.type)}if(!r){const a=`${s}value "${e}" should be of type "${o}"`;return i===!1?(N(a),!1):a}if(z(n,"validator")&&H(n.validator)){const a=N,u=[];if(N=l=>{u.push(l)},r=n.validator(e),N=a,!r){const l=(u.length>1?"* ":"")+u.join(`
  7. * `);return u.length=0,i===!1?(N(l),r):l}}return r}function _(t,e){const i=Object.defineProperties(e,{_vueTypes_name:{value:t,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(r){return r===void 0?(z(this,"default")&&delete this.default,this):H(r)||k(this,r,!0)===!0?(this.default=V(r)?()=>[...r]:U(r)?()=>Object.assign({},r):r,this):(N(`${this._vueTypes_name} - invalid default value: "${r}"`),this)}}}),{validator:n}=i;return H(n)&&(i.validator=Tt(n,i)),i}function L(t,e){const i=_(t,e);return Object.defineProperty(i,"validate",{value(n){return H(this.validator)&&N(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:
  8. ${JSON.stringify(this)}`),this.validator=Tt(n,this),this}})}function Ut(t,e,i){const n=function(u){const l={};return Object.getOwnPropertyNames(u).forEach(c=>{l[c]=Object.getOwnPropertyDescriptor(u,c)}),Object.defineProperties({},l)}(e);if(n._vueTypes_name=t,!U(i))return n;const{validator:r}=i,o=Jt(i,Ie);if(H(r)){let{validator:u}=n;u&&(u=(a=(s=u).__original)!==null&&a!==void 0?a:s),n.validator=Tt(u?function(l){return u.call(this,l)&&r.call(this,l)}:r,n)}var s,a;return Object.assign(n,o)}function lt(t){return t.replace(/^(?!\s*$)/gm," ")}const Re=()=>L("any",{}),Le=()=>L("function",{type:Function}),Oe=()=>L("boolean",{type:Boolean}),De=()=>L("string",{type:String}),Fe=()=>L("number",{type:Number}),je=()=>L("array",{type:Array}),Ue=()=>L("object",{type:Object}),ke=()=>_("integer",{type:Number,validator:t=>Me(t)}),$e=()=>_("symbol",{validator:t=>typeof t=="symbol"});function ze(t,e="custom validation failed"){if(typeof t!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return _(t.name||"<<anonymous function>>",{type:null,validator(i){const n=t(i);return n||N(`${this._vueTypes_name} - ${e}`),n}})}function Ve(t){if(!V(t))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const e=`oneOf - value should be one of "${t.join('", "')}".`,i=t.reduce((n,r)=>{if(r!=null){const o=r.constructor;n.indexOf(o)===-1&&n.push(o)}return n},[]);return _("oneOf",{type:i.length>0?i:void 0,validator(n){const r=t.indexOf(n)!==-1;return r||N(e),r}})}function He(t){if(!V(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");let e=!1,i=[];for(let r=0;r<t.length;r+=1){const o=t[r];if(Qt(o)){if(st(o)&&o._vueTypes_name==="oneOf"&&o.type){i=i.concat(o.type);continue}if(H(o.validator)&&(e=!0),o.type===!0||!o.type){N('oneOfType - invalid usage of "true" or "null" as types.');continue}i=i.concat(o.type)}else i.push(o)}i=i.filter((r,o)=>i.indexOf(r)===o);const n=i.length>0?i:null;return _("oneOfType",e?{type:n,validator(r){const o=[],s=t.some(a=>{const u=k(st(a)&&a._vueTypes_name==="oneOf"?a.type||null:a,r,!0);return typeof u=="string"&&o.push(u),u===!0});return s||N(`oneOfType - provided value does not match any of the ${o.length} passed-in validators:
  9. ${lt(o.join(`
  10. `))}`),s}}:{type:n})}function Je(t){return _("arrayOf",{type:Array,validator(e){let i="";const n=e.every(r=>(i=k(t,r,!0),i===!0));return n||N(`arrayOf - value validation error:
  11. ${lt(i)}`),n}})}function Ke(t){return _("instanceOf",{type:t})}function Ye(t){return _("objectOf",{type:Object,validator(e){let i="";const n=Object.keys(e).every(r=>(i=k(t,e[r],!0),i===!0));return n||N(`objectOf - value validation error:
  12. ${lt(i)}`),n}})}function qe(t){const e=Object.keys(t),i=e.filter(r=>{var o;return!((o=t[r])===null||o===void 0||!o.required)}),n=_("shape",{type:Object,validator(r){if(!U(r))return!1;const o=Object.keys(r);if(i.length>0&&i.some(s=>o.indexOf(s)===-1)){const s=i.filter(a=>o.indexOf(a)===-1);return N(s.length===1?`shape - required property "${s[0]}" is not defined.`:`shape - required properties "${s.join('", "')}" are not defined.`),!1}return o.every(s=>{if(e.indexOf(s)===-1)return this._vueTypes_isLoose===!0||(N(`shape - shape definition does not include a "${s}" property. Allowed keys: "${e.join('", "')}".`),!1);const a=k(t[s],r[s],!0);return typeof a=="string"&&N(`shape - "${s}" property validation error:
  13. ${lt(a)}`),a===!0})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),n}const Qe=["name","validate","getter"],Ge=(()=>{var t,e;return e=t=class{static get any(){return Re()}static get func(){return Le().def(this.defaults.func)}static get bool(){return Oe().def(this.defaults.bool)}static get string(){return De().def(this.defaults.string)}static get number(){return Fe().def(this.defaults.number)}static get array(){return je().def(this.defaults.array)}static get object(){return Ue().def(this.defaults.object)}static get integer(){return ke().def(this.defaults.integer)}static get symbol(){return $e()}static extend(i){if(V(i))return i.forEach(l=>this.extend(l)),this;const{name:n,validate:r=!1,getter:o=!1}=i,s=Jt(i,Qe);if(z(this,n))throw new TypeError(`[VueTypes error]: Type "${n}" already defined`);const{type:a}=s;if(st(a))return delete s.type,Object.defineProperty(this,n,o?{get:()=>Ut(n,a,s)}:{value(...l){const c=Ut(n,a,s);return c.validator&&(c.validator=c.validator.bind(c,...l)),c}});let u;return u=o?{get(){const l=Object.assign({},s);return r?L(n,l):_(n,l)},enumerable:!0}:{value(...l){const c=Object.assign({},s);let C;return C=r?L(n,c):_(n,c),c.validator&&(C.validator=c.validator.bind(C,...l)),C},enumerable:!0},Object.defineProperty(this,n,u)}},t.defaults={},t.sensibleDefaults=void 0,t.config=Ne,t.custom=ze,t.oneOf=Ve,t.instanceOf=Ke,t.oneOfType=He,t.arrayOf=Je,t.objectOf=Ye,t.shape=qe,t.utils={validate:(i,n)=>k(n,i,!0)===!0,toType:(i,n,r=!1)=>r?L(i,n):_(i,n)},e})();function Gt(t={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var e,i;return i=e=class extends Ge{static get sensibleDefaults(){return X({},this.defaults)}static set sensibleDefaults(n){this.defaults=n!==!1?X({},n!==!0?n:t):{}}},e.defaults=X({},t),i}class Yn extends Gt(){}const W=Gt({func:void 0,bool:void 0,string:void 0,number:void 0,object:void 0,integer:void 0});W.extend([{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VNodeChild",getter:!0,type:void 0}]);var et={},xe=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},xt={},M={};let At;const We=[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];M.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};M.getSymbolTotalCodewords=function(e){return We[e]};M.getBCHDigit=function(t){let e=0;for(;t!==0;)e++,t>>>=1;return e};M.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');At=e};M.isKanjiModeEnabled=function(){return typeof At!="undefined"};M.toSJIS=function(e){return At(e)};var ct={};(function(t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2};function e(i){if(typeof i!="string")throw new Error("Param is not a string");switch(i.toLowerCase()){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+i)}}t.isValid=function(n){return n&&typeof n.bit!="undefined"&&n.bit>=0&&n.bit<4},t.from=function(n,r){if(t.isValid(n))return n;try{return e(n)}catch{return r}}})(ct);function Wt(){this.buffer=[],this.length=0}Wt.prototype={get:function(t){const e=Math.floor(t/8);return(this.buffer[e]>>>7-t%8&1)===1},put:function(t,e){for(let i=0;i<e;i++)this.putBit((t>>>e-i-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(t){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var Xe=Wt;function nt(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=new Uint8Array(t*t),this.reservedBit=new Uint8Array(t*t)}nt.prototype.set=function(t,e,i,n){const r=t*this.size+e;this.data[r]=i,n&&(this.reservedBit[r]=!0)};nt.prototype.get=function(t,e){return this.data[t*this.size+e]};nt.prototype.xor=function(t,e,i){this.data[t*this.size+e]^=i};nt.prototype.isReserved=function(t,e){return this.reservedBit[t*this.size+e]};var Ze=nt,Xt={};(function(t){const e=M.getSymbolSize;t.getRowColCoords=function(n){if(n===1)return[];const r=Math.floor(n/7)+2,o=e(n),s=o===145?26:Math.ceil((o-13)/(2*r-2))*2,a=[o-7];for(let u=1;u<r-1;u++)a[u]=a[u-1]-s;return a.push(6),a.reverse()},t.getPositions=function(n){const r=[],o=t.getRowColCoords(n),s=o.length;for(let a=0;a<s;a++)for(let u=0;u<s;u++)a===0&&u===0||a===0&&u===s-1||a===s-1&&u===0||r.push([o[a],o[u]]);return r}})(Xt);var Zt={};const tn=M.getSymbolSize,kt=7;Zt.getPositions=function(e){const i=tn(e);return[[0,0],[i-kt,0],[0,i-kt]]};var te={};(function(t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};t.isValid=function(r){return r!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},t.from=function(r){return t.isValid(r)?parseInt(r,10):void 0},t.getPenaltyN1=function(r){const o=r.size;let s=0,a=0,u=0,l=null,c=null;for(let C=0;C<o;C++){a=u=0,l=c=null;for(let p=0;p<o;p++){let y=r.get(C,p);y===l?a++:(a>=5&&(s+=e.N1+(a-5)),l=y,a=1),y=r.get(p,C),y===c?u++:(u>=5&&(s+=e.N1+(u-5)),c=y,u=1)}a>=5&&(s+=e.N1+(a-5)),u>=5&&(s+=e.N1+(u-5))}return s},t.getPenaltyN2=function(r){const o=r.size;let s=0;for(let a=0;a<o-1;a++)for(let u=0;u<o-1;u++){const l=r.get(a,u)+r.get(a,u+1)+r.get(a+1,u)+r.get(a+1,u+1);(l===4||l===0)&&s++}return s*e.N2},t.getPenaltyN3=function(r){const o=r.size;let s=0,a=0,u=0;for(let l=0;l<o;l++){a=u=0;for(let c=0;c<o;c++)a=a<<1&2047|r.get(l,c),c>=10&&(a===1488||a===93)&&s++,u=u<<1&2047|r.get(c,l),c>=10&&(u===1488||u===93)&&s++}return s*e.N3},t.getPenaltyN4=function(r){let o=0;const s=r.data.length;for(let u=0;u<s;u++)o+=r.data[u];return Math.abs(Math.ceil(o*100/s/5)-10)*e.N4};function i(n,r,o){switch(n){case t.Patterns.PATTERN000:return(r+o)%2===0;case t.Patterns.PATTERN001:return r%2===0;case t.Patterns.PATTERN010:return o%3===0;case t.Patterns.PATTERN011:return(r+o)%3===0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(o/3))%2===0;case t.Patterns.PATTERN101:return r*o%2+r*o%3===0;case t.Patterns.PATTERN110:return(r*o%2+r*o%3)%2===0;case t.Patterns.PATTERN111:return(r*o%3+(r+o)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}t.applyMask=function(r,o){const s=o.size;for(let a=0;a<s;a++)for(let u=0;u<s;u++)o.isReserved(u,a)||o.xor(u,a,i(r,u,a))},t.getBestMask=function(r,o){const s=Object.keys(t.Patterns).length;let a=0,u=1/0;for(let l=0;l<s;l++){o(l),t.applyMask(l,r);const c=t.getPenaltyN1(r)+t.getPenaltyN2(r)+t.getPenaltyN3(r)+t.getPenaltyN4(r);t.applyMask(l,r),c<u&&(u=c,a=l)}return a}})(te);var ft={};const F=ct,ot=[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],it=[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];ft.getBlocksCount=function(e,i){switch(i){case F.L:return ot[(e-1)*4+0];case F.M:return ot[(e-1)*4+1];case F.Q:return ot[(e-1)*4+2];case F.H:return ot[(e-1)*4+3];default:return}};ft.getTotalCodewordsCount=function(e,i){switch(i){case F.L:return it[(e-1)*4+0];case F.M:return it[(e-1)*4+1];case F.Q:return it[(e-1)*4+2];case F.H:return it[(e-1)*4+3];default:return}};var ee={},dt={};const Z=new Uint8Array(512),at=new Uint8Array(256);(function(){let e=1;for(let i=0;i<255;i++)Z[i]=e,at[e]=i,e<<=1,e&256&&(e^=285);for(let i=255;i<512;i++)Z[i]=Z[i-255]})();dt.log=function(e){if(e<1)throw new Error("log("+e+")");return at[e]};dt.exp=function(e){return Z[e]};dt.mul=function(e,i){return e===0||i===0?0:Z[at[e]+at[i]]};(function(t){const e=dt;t.mul=function(n,r){const o=new Uint8Array(n.length+r.length-1);for(let s=0;s<n.length;s++)for(let a=0;a<r.length;a++)o[s+a]^=e.mul(n[s],r[a]);return o},t.mod=function(n,r){let o=new Uint8Array(n);for(;o.length-r.length>=0;){const s=o[0];for(let u=0;u<r.length;u++)o[u]^=e.mul(r[u],s);let a=0;for(;a<o.length&&o[a]===0;)a++;o=o.slice(a)}return o},t.generateECPolynomial=function(n){let r=new Uint8Array([1]);for(let o=0;o<n;o++)r=t.mul(r,new Uint8Array([1,e.exp(o)]));return r}})(ee);const ne=ee;function St(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}St.prototype.initialize=function(e){this.degree=e,this.genPoly=ne.generateECPolynomial(this.degree)};St.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const i=new Uint8Array(e.length+this.degree);i.set(e);const n=ne.mod(i,this.genPoly),r=this.degree-n.length;if(r>0){const o=new Uint8Array(this.degree);return o.set(n,r),o}return n};var en=St,re={},j={},Nt={};Nt.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var O={};const oe="[0-9]+",nn="[A-Z $%*+\\-./:]+";let tt="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";tt=tt.replace(/u/g,"\\u");const rn="(?:(?![A-Z0-9 $%*+\\-./:]|"+tt+`)(?:.|[\r
  14. ]))+`;O.KANJI=new RegExp(tt,"g");O.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");O.BYTE=new RegExp(rn,"g");O.NUMERIC=new RegExp(oe,"g");O.ALPHANUMERIC=new RegExp(nn,"g");const on=new RegExp("^"+tt+"$"),sn=new RegExp("^"+oe+"$"),an=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");O.testKanji=function(e){return on.test(e)};O.testNumeric=function(e){return sn.test(e)};O.testAlphanumeric=function(e){return an.test(e)};(function(t){const e=Nt,i=O;t.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(o,s){if(!o.ccBits)throw new Error("Invalid mode: "+o);if(!e.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?o.ccBits[0]:s<27?o.ccBits[1]:o.ccBits[2]},t.getBestModeForData=function(o){return i.testNumeric(o)?t.NUMERIC:i.testAlphanumeric(o)?t.ALPHANUMERIC:i.testKanji(o)?t.KANJI:t.BYTE},t.toString=function(o){if(o&&o.id)return o.id;throw new Error("Invalid mode")},t.isValid=function(o){return o&&o.bit&&o.ccBits};function n(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+r)}}t.from=function(o,s){if(t.isValid(o))return o;try{return n(o)}catch{return s}}})(j);(function(t){const e=M,i=ft,n=ct,r=j,o=Nt,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,a=e.getBCHDigit(s);function u(p,y,w){for(let f=1;f<=40;f++)if(y<=t.getCapacity(f,w,p))return f}function l(p,y){return r.getCharCountIndicator(p,y)+4}function c(p,y){let w=0;return p.forEach(function(f){w+=l(f.mode,y)+f.getBitsLength()}),w}function C(p,y){for(let w=1;w<=40;w++)if(c(p,w)<=t.getCapacity(w,y,r.MIXED))return w}t.from=function(y,w){return o.isValid(y)?parseInt(y,10):w},t.getCapacity=function(y,w,f){if(!o.isValid(y))throw new Error("Invalid QR Code version");typeof f=="undefined"&&(f=r.BYTE);const b=e.getSymbolTotalCodewords(y),d=i.getTotalCodewordsCount(y,w),m=(b-d)*8;if(f===r.MIXED)return m;const h=m-l(f,y);switch(f){case r.NUMERIC:return Math.floor(h/10*3);case r.ALPHANUMERIC:return Math.floor(h/11*2);case r.KANJI:return Math.floor(h/13);case r.BYTE:default:return Math.floor(h/8)}},t.getBestVersionForData=function(y,w){let f;const b=n.from(w,n.M);if(Array.isArray(y)){if(y.length>1)return C(y,b);if(y.length===0)return 1;f=y[0]}else f=y;return u(f.mode,f.getLength(),b)},t.getEncodedBits=function(y){if(!o.isValid(y)||y<7)throw new Error("Invalid QR Code version");let w=y<<12;for(;e.getBCHDigit(w)-a>=0;)w^=s<<e.getBCHDigit(w)-a;return y<<12|w}})(re);var ie={};const vt=M,se=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,un=1<<14|1<<12|1<<10|1<<4|1<<1,$t=vt.getBCHDigit(se);ie.getEncodedBits=function(e,i){const n=e.bit<<3|i;let r=n<<10;for(;vt.getBCHDigit(r)-$t>=0;)r^=se<<vt.getBCHDigit(r)-$t;return(n<<10|r)^un};var ae={};const ln=j;function J(t){this.mode=ln.NUMERIC,this.data=t.toString()}J.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};J.prototype.getLength=function(){return this.data.length};J.prototype.getBitsLength=function(){return J.getBitsLength(this.data.length)};J.prototype.write=function(e){let i,n,r;for(i=0;i+3<=this.data.length;i+=3)n=this.data.substr(i,3),r=parseInt(n,10),e.put(r,10);const o=this.data.length-i;o>0&&(n=this.data.substr(i),r=parseInt(n,10),e.put(r,o*3+1))};var cn=J;const fn=j,yt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function K(t){this.mode=fn.ALPHANUMERIC,this.data=t}K.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};K.prototype.getLength=function(){return this.data.length};K.prototype.getBitsLength=function(){return K.getBitsLength(this.data.length)};K.prototype.write=function(e){let i;for(i=0;i+2<=this.data.length;i+=2){let n=yt.indexOf(this.data[i])*45;n+=yt.indexOf(this.data[i+1]),e.put(n,11)}this.data.length%2&&e.put(yt.indexOf(this.data[i]),6)};var dn=K,gn=function(e){for(var i=[],n=e.length,r=0;r<n;r++){var o=e.charCodeAt(r);if(o>=55296&&o<=56319&&n>r+1){var s=e.charCodeAt(r+1);s>=56320&&s<=57343&&(o=(o-55296)*1024+s-56320+65536,r+=1)}if(o<128){i.push(o);continue}if(o<2048){i.push(o>>6|192),i.push(o&63|128);continue}if(o<55296||o>=57344&&o<65536){i.push(o>>12|224),i.push(o>>6&63|128),i.push(o&63|128);continue}if(o>=65536&&o<=1114111){i.push(o>>18|240),i.push(o>>12&63|128),i.push(o>>6&63|128),i.push(o&63|128);continue}i.push(239,191,189)}return new Uint8Array(i).buffer};const hn=gn,yn=j;function Y(t){this.mode=yn.BYTE,this.data=new Uint8Array(hn(t))}Y.getBitsLength=function(e){return e*8};Y.prototype.getLength=function(){return this.data.length};Y.prototype.getBitsLength=function(){return Y.getBitsLength(this.data.length)};Y.prototype.write=function(t){for(let e=0,i=this.data.length;e<i;e++)t.put(this.data[e],8)};var mn=Y;const pn=j,wn=M;function q(t){this.mode=pn.KANJI,this.data=t}q.getBitsLength=function(e){return e*13};q.prototype.getLength=function(){return this.data.length};q.prototype.getBitsLength=function(){return q.getBitsLength(this.data.length)};q.prototype.write=function(t){let e;for(e=0;e<this.data.length;e++){let i=wn.toSJIS(this.data[e]);if(i>=33088&&i<=40956)i-=33088;else if(i>=57408&&i<=60351)i-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
  15. Make sure your charset is UTF-8`);i=(i>>>8&255)*192+(i&255),t.put(i,13)}};var bn=q,ue={exports:{}};(function(t){var e={single_source_shortest_paths:function(i,n,r){var o={},s={};s[n]=0;var a=e.PriorityQueue.make();a.push(n,0);for(var u,l,c,C,p,y,w,f,b;!a.empty();){u=a.pop(),l=u.value,C=u.cost,p=i[l]||{};for(c in p)p.hasOwnProperty(c)&&(y=p[c],w=C+y,f=s[c],b=typeof s[c]=="undefined",(b||f>w)&&(s[c]=w,a.push(c,w),o[c]=l))}if(typeof r!="undefined"&&typeof s[r]=="undefined"){var d=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(d)}return o},extract_shortest_path_from_predecessor_list:function(i,n){for(var r=[],o=n;o;)r.push(o),i[o],o=i[o];return r.reverse(),r},find_path:function(i,n,r){var o=e.single_source_shortest_paths(i,n,r);return e.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(i){var n=e.PriorityQueue,r={},o;i=i||{};for(o in n)n.hasOwnProperty(o)&&(r[o]=n[o]);return r.queue=[],r.sorter=i.sorter||n.default_sorter,r},default_sorter:function(i,n){return i.cost-n.cost},push:function(i,n){var r={value:i,cost:n};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};t.exports=e})(ue);(function(t){const e=j,i=cn,n=dn,r=mn,o=bn,s=O,a=M,u=ue.exports;function l(d){return unescape(encodeURIComponent(d)).length}function c(d,m,h){const g=[];let v;for(;(v=d.exec(h))!==null;)g.push({data:v[0],index:v.index,mode:m,length:v[0].length});return g}function C(d){const m=c(s.NUMERIC,e.NUMERIC,d),h=c(s.ALPHANUMERIC,e.ALPHANUMERIC,d);let g,v;return a.isKanjiModeEnabled()?(g=c(s.BYTE,e.BYTE,d),v=c(s.KANJI,e.KANJI,d)):(g=c(s.BYTE_KANJI,e.BYTE,d),v=[]),m.concat(h,g,v).sort(function(B,P){return B.index-P.index}).map(function(B){return{data:B.data,mode:B.mode,length:B.length}})}function p(d,m){switch(m){case e.NUMERIC:return i.getBitsLength(d);case e.ALPHANUMERIC:return n.getBitsLength(d);case e.KANJI:return o.getBitsLength(d);case e.BYTE:return r.getBitsLength(d)}}function y(d){return d.reduce(function(m,h){const g=m.length-1>=0?m[m.length-1]:null;return g&&g.mode===h.mode?(m[m.length-1].data+=h.data,m):(m.push(h),m)},[])}function w(d){const m=[];for(let h=0;h<d.length;h++){const g=d[h];switch(g.mode){case e.NUMERIC:m.push([g,{data:g.data,mode:e.ALPHANUMERIC,length:g.length},{data:g.data,mode:e.BYTE,length:g.length}]);break;case e.ALPHANUMERIC:m.push([g,{data:g.data,mode:e.BYTE,length:g.length}]);break;case e.KANJI:m.push([g,{data:g.data,mode:e.BYTE,length:l(g.data)}]);break;case e.BYTE:m.push([{data:g.data,mode:e.BYTE,length:l(g.data)}])}}return m}function f(d,m){const h={},g={start:{}};let v=["start"];for(let E=0;E<d.length;E++){const B=d[E],P=[];for(let S=0;S<B.length;S++){const A=B[S],D=""+E+S;P.push(D),h[D]={node:A,lastCount:0},g[D]={};for(let $=0;$<v.length;$++){const T=v[$];h[T]&&h[T].node.mode===A.mode?(g[T][D]=p(h[T].lastCount+A.length,A.mode)-p(h[T].lastCount,A.mode),h[T].lastCount+=A.length):(h[T]&&(h[T].lastCount=A.length),g[T][D]=p(A.length,A.mode)+4+e.getCharCountIndicator(A.mode,m))}}v=P}for(let E=0;E<v.length;E++)g[v[E]].end=0;return{map:g,table:h}}function b(d,m){let h;const g=e.getBestModeForData(d);if(h=e.from(m,g),h!==e.BYTE&&h.bit<g.bit)throw new Error('"'+d+'" cannot be encoded with mode '+e.toString(h)+`.
  16. Suggested mode is: `+e.toString(g));switch(h===e.KANJI&&!a.isKanjiModeEnabled()&&(h=e.BYTE),h){case e.NUMERIC:return new i(d);case e.ALPHANUMERIC:return new n(d);case e.KANJI:return new o(d);case e.BYTE:return new r(d)}}t.fromArray=function(m){return m.reduce(function(h,g){return typeof g=="string"?h.push(b(g,null)):g.data&&h.push(b(g.data,g.mode)),h},[])},t.fromString=function(m,h){const g=C(m,a.isKanjiModeEnabled()),v=w(g),E=f(v,h),B=u.find_path(E.map,"start","end"),P=[];for(let S=1;S<B.length-1;S++)P.push(E.table[B[S]].node);return t.fromArray(y(P))},t.rawSplit=function(m){return t.fromArray(C(m,a.isKanjiModeEnabled()))}})(ae);const gt=M,mt=ct,vn=Xe,Cn=Ze,En=Xt,Bn=Zt,Ct=te,Et=ft,Tn=en,ut=re,An=ie,Sn=j,pt=ae;function Nn(t,e){const i=t.size,n=Bn.getPositions(e);for(let r=0;r<n.length;r++){const o=n[r][0],s=n[r][1];for(let a=-1;a<=7;a++)if(!(o+a<=-1||i<=o+a))for(let u=-1;u<=7;u++)s+u<=-1||i<=s+u||(a>=0&&a<=6&&(u===0||u===6)||u>=0&&u<=6&&(a===0||a===6)||a>=2&&a<=4&&u>=2&&u<=4?t.set(o+a,s+u,!0,!0):t.set(o+a,s+u,!1,!0))}}function In(t){const e=t.size;for(let i=8;i<e-8;i++){const n=i%2===0;t.set(i,6,n,!0),t.set(6,i,n,!0)}}function Pn(t,e){const i=En.getPositions(e);for(let n=0;n<i.length;n++){const r=i[n][0],o=i[n][1];for(let s=-2;s<=2;s++)for(let a=-2;a<=2;a++)s===-2||s===2||a===-2||a===2||s===0&&a===0?t.set(r+s,o+a,!0,!0):t.set(r+s,o+a,!1,!0)}}function _n(t,e){const i=t.size,n=ut.getEncodedBits(e);let r,o,s;for(let a=0;a<18;a++)r=Math.floor(a/3),o=a%3+i-8-3,s=(n>>a&1)===1,t.set(r,o,s,!0),t.set(o,r,s,!0)}function wt(t,e,i){const n=t.size,r=An.getEncodedBits(e,i);let o,s;for(o=0;o<15;o++)s=(r>>o&1)===1,o<6?t.set(o,8,s,!0):o<8?t.set(o+1,8,s,!0):t.set(n-15+o,8,s,!0),o<8?t.set(8,n-o-1,s,!0):o<9?t.set(8,15-o-1+1,s,!0):t.set(8,15-o-1,s,!0);t.set(n-8,8,1,!0)}function Mn(t,e){const i=t.size;let n=-1,r=i-1,o=7,s=0;for(let a=i-1;a>0;a-=2)for(a===6&&a--;;){for(let u=0;u<2;u++)if(!t.isReserved(r,a-u)){let l=!1;s<e.length&&(l=(e[s]>>>o&1)===1),t.set(r,a-u,l),o--,o===-1&&(s++,o=7)}if(r+=n,r<0||i<=r){r-=n,n=-n;break}}}function Rn(t,e,i){const n=new vn;i.forEach(function(u){n.put(u.mode.bit,4),n.put(u.getLength(),Sn.getCharCountIndicator(u.mode,t)),u.write(n)});const r=gt.getSymbolTotalCodewords(t),o=Et.getTotalCodewordsCount(t,e),s=(r-o)*8;for(n.getLengthInBits()+4<=s&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);const a=(s-n.getLengthInBits())/8;for(let u=0;u<a;u++)n.put(u%2?17:236,8);return Ln(n,t,e)}function Ln(t,e,i){const n=gt.getSymbolTotalCodewords(e),r=Et.getTotalCodewordsCount(e,i),o=n-r,s=Et.getBlocksCount(e,i),a=n%s,u=s-a,l=Math.floor(n/s),c=Math.floor(o/s),C=c+1,p=l-c,y=new Tn(p);let w=0;const f=new Array(s),b=new Array(s);let d=0;const m=new Uint8Array(t.buffer);for(let B=0;B<s;B++){const P=B<u?c:C;f[B]=m.slice(w,w+P),b[B]=y.encode(f[B]),w+=P,d=Math.max(d,P)}const h=new Uint8Array(n);let g=0,v,E;for(v=0;v<d;v++)for(E=0;E<s;E++)v<f[E].length&&(h[g++]=f[E][v]);for(v=0;v<p;v++)for(E=0;E<s;E++)h[g++]=b[E][v];return h}function On(t,e,i,n){let r;if(Array.isArray(t))r=pt.fromArray(t);else if(typeof t=="string"){let l=e;if(!l){const c=pt.rawSplit(t);l=ut.getBestVersionForData(c,i)}r=pt.fromString(t,l||40)}else throw new Error("Invalid data");const o=ut.getBestVersionForData(r,i);if(!o)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=o;else if(e<o)throw new Error(`
  17. The chosen QR Code version cannot contain this amount of data.
  18. Minimum version required to store current data is: `+o+`.
  19. `);const s=Rn(e,i,r),a=gt.getSymbolSize(e),u=new Cn(a);return Nn(u,e),In(u),Pn(u,e),wt(u,i,0),e>=7&&_n(u,e),Mn(u,s),isNaN(n)&&(n=Ct.getBestMask(u,wt.bind(null,u,i))),Ct.applyMask(n,u),wt(u,i,n),{modules:u,version:e,errorCorrectionLevel:i,maskPattern:n,segments:r}}xt.create=function(e,i){if(typeof e=="undefined"||e==="")throw new Error("No input text");let n=mt.M,r,o;return typeof i!="undefined"&&(n=mt.from(i.errorCorrectionLevel,mt.M),r=ut.from(i.version),o=Ct.from(i.maskPattern),i.toSJISFunc&&gt.setToSJISFunction(i.toSJISFunc)),On(e,r,n,o)};var le={},It={};(function(t){function e(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(o){return[o,o]}))),n.length===6&&n.push("F","F");const r=parseInt(n.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+n.slice(0,6).join("")}}t.getOptions=function(n){n||(n={}),n.color||(n.color={});const r=typeof n.margin=="undefined"||n.margin===null||n.margin<0?4:n.margin,o=n.width&&n.width>=21?n.width:void 0,s=n.scale||4;return{width:o,scale:o?4:s,margin:r,color:{dark:e(n.color.dark||"#000000ff"),light:e(n.color.light||"#ffffffff")},type:n.type,rendererOpts:n.rendererOpts||{}}},t.getScale=function(n,r){return r.width&&r.width>=n+r.margin*2?r.width/(n+r.margin*2):r.scale},t.getImageWidth=function(n,r){const o=t.getScale(n,r);return Math.floor((n+r.margin*2)*o)},t.qrToImageData=function(n,r,o){const s=r.modules.size,a=r.modules.data,u=t.getScale(s,o),l=Math.floor((s+o.margin*2)*u),c=o.margin*u,C=[o.color.light,o.color.dark];for(let p=0;p<l;p++)for(let y=0;y<l;y++){let w=(p*l+y)*4,f=o.color.light;if(p>=c&&y>=c&&p<l-c&&y<l-c){const b=Math.floor((p-c)/u),d=Math.floor((y-c)/u);f=C[a[b*s+d]?1:0]}n[w++]=f.r,n[w++]=f.g,n[w++]=f.b,n[w]=f.a}}})(It);(function(t){const e=It;function i(r,o,s){r.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=s,o.width=s,o.style.height=s+"px",o.style.width=s+"px"}function n(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}t.render=function(o,s,a){let u=a,l=s;typeof u=="undefined"&&(!s||!s.getContext)&&(u=s,s=void 0),s||(l=n()),u=e.getOptions(u);const c=e.getImageWidth(o.modules.size,u),C=l.getContext("2d"),p=C.createImageData(c,c);return e.qrToImageData(p.data,o,u),i(C,l,c),C.putImageData(p,0,0),l},t.renderToDataURL=function(o,s,a){let u=a;typeof u=="undefined"&&(!s||!s.getContext)&&(u=s,s=void 0),u||(u={});const l=t.render(o,s,u),c=u.type||"image/png",C=u.rendererOpts||{};return l.toDataURL(c,C.quality)}})(le);var ce={};const Dn=It;function zt(t,e){const i=t.a/255,n=e+'="'+t.hex+'"';return i<1?n+" "+e+'-opacity="'+i.toFixed(2).slice(1)+'"':n}function bt(t,e,i){let n=t+e;return typeof i!="undefined"&&(n+=" "+i),n}function Fn(t,e,i){let n="",r=0,o=!1,s=0;for(let a=0;a<t.length;a++){const u=Math.floor(a%e),l=Math.floor(a/e);!u&&!o&&(o=!0),t[a]?(s++,a>0&&u>0&&t[a-1]||(n+=o?bt("M",u+i,.5+l+i):bt("m",r,0),r=0,o=!1),u+1<e&&t[a+1]||(n+=bt("h",s),s=0)):r++}return n}ce.render=function(e,i,n){const r=Dn.getOptions(i),o=e.modules.size,s=e.modules.data,a=o+r.margin*2,u=r.color.light.a?"<path "+zt(r.color.light,"fill")+' d="M0 0h'+a+"v"+a+'H0z"/>':"",l="<path "+zt(r.color.dark,"stroke")+' d="'+Fn(s,o,r.margin)+'"/>',c='viewBox="0 0 '+a+" "+a+'"',C=r.width?'width="'+r.width+'" height="'+r.width+'" ':"",p='<svg xmlns="http://www.w3.org/2000/svg" '+C+c+' shape-rendering="crispEdges">'+u+l+`</svg>
  20. `;return typeof n=="function"&&n(null,p),p};const jn=xe,Bt=xt,fe=le,Un=ce;function Pt(t,e,i,n,r){const o=[].slice.call(arguments,1),s=o.length,a=typeof o[s-1]=="function";if(!a&&!jn())throw new Error("Callback required as last argument");if(a){if(s<2)throw new Error("Too few arguments provided");s===2?(r=i,i=e,e=n=void 0):s===3&&(e.getContext&&typeof r=="undefined"?(r=n,n=void 0):(r=n,n=i,i=e,e=void 0))}else{if(s<1)throw new Error("Too few arguments provided");return s===1?(i=e,e=n=void 0):s===2&&!e.getContext&&(n=i,i=e,e=void 0),new Promise(function(u,l){try{const c=Bt.create(i,n);u(t(c,e,n))}catch(c){l(c)}})}try{const u=Bt.create(i,n);r(null,t(u,e,n))}catch(u){r(u)}}et.create=Bt.create;et.toCanvas=Pt.bind(null,fe.render);et.toDataURL=Pt.bind(null,fe.renderToDataURL);et.toString=Pt.bind(null,function(t,e,i){return Un.render(t,i)});const kn={tag:W.string.validate(t=>["canvas","img"].includes(t)).def("canvas"),text:{type:[String,Array],default:null},options:{type:Object,default:()=>({})},width:W.number.def(200),logo:{type:[String,Object],default:()=>""},disabled:W.bool.def(!1),disabledText:W.string.def("")};var $n=Vt({name:"ReQrcode",props:kn,emits:["done","click","disabled-click"],setup(t,{emit:e}){const{toCanvas:i,toDataURL:n}=et,r=Rt(!0),o=Rt(null),s=Lt(()=>String(t.text)),a=Lt(()=>({width:t.width+"px",height:t.width+"px"})),u=async()=>{await we();const f=be(t.options||{});if(t.tag==="canvas"){f.errorCorrectionLevel=f.errorCorrectionLevel||C(R(s));const b=await c(R(s),f);f.scale=t.width===0?void 0:t.width/b*4;const d=await i(R(o),R(s),f);if(t.logo){const m=await l(d);e("done",m),r.value=!1}else e("done",d.toDataURL()),r.value=!1}else{const b=await n(s.value,{errorCorrectionLevel:"H",width:t.width,...f});R(o).src=b,e("done",b),r.value=!1}};he(()=>s.value,f=>{!f||u()},{deep:!0,immediate:!0});const l=f=>{const b=f.width,d=Object.assign({logoSize:.15,bgColor:"#ffffff",borderSize:.05,crossOrigin:"anonymous",borderRadius:8,logoRadius:0},Ot(t.logo)?{}:t.logo),{logoSize:m=.15,bgColor:h="#ffffff",borderSize:g=.05,crossOrigin:v="anonymous",borderRadius:E=8,logoRadius:B=0}=d,P=Ot(t.logo)?t.logo:t.logo.src,S=b*m,A=b*(1-m)/2,D=b*(m+g),$=b*(1-m-g)/2,T=f.getContext("2d");if(!T)return;p(T)($,$,D,D,E),T.fillStyle=h,T.fill();const Q=new Image;(v||B)&&Q.setAttribute("crossOrigin",v),Q.src=P;const de=G=>{T.drawImage(G,A,A,S,S)},ge=G=>{const rt=document.createElement("canvas");rt.width=A+S,rt.height=A+S;const _t=rt.getContext("2d");if(!_t||!T||(_t.drawImage(G,A,A,S,S),p(T)(A,A,S,S,B),!T))return;const Mt=T.createPattern(rt,"no-repeat");Mt&&(T.fillStyle=Mt,T.fill())};return new Promise(G=>{Q.onload=()=>{B?ge(Q):de(Q),G(f.toDataURL())}})},c=async(f,b)=>{const d=document.createElement("canvas");return await i(d,f,b),d.width},C=f=>f.length>36?"M":f.length>16?"Q":"H",p=f=>(b,d,m,h,g)=>{const v=Math.min(m,h);return g>v/2&&(g=v/2),f.beginPath(),f.moveTo(b+g,d),f.arcTo(b+m,d,b+m,d+h,g),f.arcTo(b+m,d+h,b,d+h,g),f.arcTo(b,d+h,b,d,g),f.arcTo(b,d,b+m,d,g),f.closePath(),f},y=()=>{e("click")},w=()=>{e("disabled-click")};return()=>I(Ht,null,[ye(I("div",{class:"qrcode relative inline-block",style:R(a)},[t.tag==="canvas"?I("canvas",{ref:o,onClick:y},null):I("img",{ref:o,onClick:y},null),t.disabled&&I("div",{class:"qrcode--disabled absolute top-0 left-0 flex w-full h-full items-center justify-center",onClick:w},[I("div",{class:"absolute top-[50%] left-[50%] font-bold"},[I(pe,{class:"cursor-pointer",icon:"refresh-right",width:"30",color:"var(--el-color-primary)"},null),I("div",null,[t.disabledText])])])]),[[me("loading"),R(r)]])])}});const zn=ve($n),Vn=Te("p",{class:"text-gray-500 text-xs"},'\u626B\u7801\u540E\u70B9\u51FB"\u786E\u8BA4"\uFF0C\u5373\u53EF\u5B8C\u6210\u767B\u5F55',-1),Hn=Ae(" \u8FD4\u56DE "),qn=Vt({__name:"qrCode",setup(t){return(e,i)=>{const n=Dt("el-divider"),r=Dt("el-button");return Ce(),Ee(Ht,null,[I(R(ht),{class:"-mt-2 -mb-2"},{default:x(()=>[I(R(zn),{text:"\u6A21\u62DF\u6D4B\u8BD5"})]),_:1}),I(R(ht),{delay:100},{default:x(()=>[I(n,null,{default:x(()=>[Vn]),_:1})]),_:1}),I(R(ht),{delay:150},{default:x(()=>[I(r,{class:"w-full mt-4",onClick:i[0]||(i[0]=o=>R(Be)().SET_CURRENTPAGE(0))},{default:x(()=>[Hn]),_:1})]),_:1})],64)}}});export{qn as default};