From 3293dc139e0fbee69baac427d98a6d0f6f1a373e Mon Sep 17 00:00:00 2001 From: Wahyu Kristianto Date: Mon, 11 Nov 2024 16:43:02 +0700 Subject: [PATCH] Build --- dist/js/field.js | 2 +- dist/js/field.js.LICENSE.txt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/js/field.js b/dist/js/field.js index 87cf897..def22f0 100644 --- a/dist/js/field.js +++ b/dist/js/field.js @@ -1,2 +1,2 @@ /*! For license information please see field.js.LICENSE.txt */ -(()=>{var t={742:(t,e)=>{"use strict";e.byteLength=function(t){var e=l(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=l(t),s=i[0],a=i[1],h=new o(function(t,e,r){return 3*(e+r)/4-r}(0,s,a)),u=0,c=a>0?s-4:s;for(r=0;r>16&255,h[u++]=e>>8&255,h[u++]=255&e;2===a&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,h[u++]=255&e);1===a&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,h[u++]=e>>8&255,h[u++]=255&e);return h},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],s=16383,a=0,l=n-o;al?l:a+s));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,a=i.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function h(t,e,n){for(var o,i,s=[],a=e;a>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},764:(t,e,r)=>{"use strict";var n=r(742),o=r(645),i=r(826);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function d(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return F(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(t).length;default:if(n)return F(t).length;e=(""+e).toLowerCase(),n=!0}}function p(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return _(this,e,r);case"utf8":case"utf-8":return B(this,e,r);case"ascii":return x(this,e,r);case"latin1":case"binary":return S(this,e,r);case"base64":return P(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function y(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=l.from(e,n)),l.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,o);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,o){var i,s=1,a=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,l/=2,r/=2}function h(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var u=-1;for(i=r;ia&&(r=a-l),i=r;i>=0;i--){for(var c=!0,f=0;fo&&(n=o):n=o;var i=e.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var s=0;s>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function P(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function B(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o239?4:h>223?3:h>191?2:1;if(o+c<=r)switch(c){case 1:h<128&&(u=h);break;case 2:128==(192&(i=t[o+1]))&&(l=(31&h)<<6|63&i)>127&&(u=l);break;case 3:i=t[o+1],s=t[o+2],128==(192&i)&&128==(192&s)&&(l=(15&h)<<12|(63&i)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:i=t[o+1],s=t[o+2],a=t[o+3],128==(192&i)&&128==(192&s)&&128==(192&a)&&(l=(15&h)<<18|(63&i)<<12|(63&s)<<6|63&a)>65535&&l<1114112&&(u=l)}null===u?(u=65533,c=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|1023&u),n.push(u),o+=c}return function(t){var e=t.length;if(e<=R)return String.fromCharCode.apply(String,t);var r="",n=0;for(;n0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),""},l.prototype.compare=function(t,e,r,n,o){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0),a=Math.min(i,s),h=this.slice(n,o),u=t.slice(e,r),c=0;co)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return b(this,t,e,r);case"ascii":return A(this,t,e,r);case"latin1":case"binary":return C(this,t,e,r);case"base64":return E(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function x(t,e,r){var n="";r=Math.min(t.length,r);for(var o=e;on)&&(r=n);for(var o="",i=e;ir)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,r,n,o,i){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function I(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o>>8*(n?o:1-o)}function M(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o>>8*(n?o:3-o)&255}function O(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,i){return i||O(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function N(t,e,r,n,i){return i||O(t,0,r,8),o.write(t,e,r,n,52,8),r+8}l.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e0&&(o*=256);)n+=this[t+--e]*o;return n},l.prototype.readUInt8=function(t,e){return e||k(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||k(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||k(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||k(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||k(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||k(t,e,this.length);for(var n=this[t],o=1,i=0;++i=(o*=128)&&(n-=Math.pow(2,8*e)),n},l.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||k(t,e,this.length);for(var n=e,o=1,i=this[t+--n];n>0&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},l.prototype.readInt8=function(t,e){return e||k(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||k(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(t,e){e||k(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(t,e){return e||k(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||k(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||k(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||k(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||k(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||k(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e|=0,r|=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i=0&&(i*=256);)this[e+o]=t/i&255;return e+r},l.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=0,s=1,a=0;for(this[e]=255&t;++i>0)-a&255;return e+r},l.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var o=Math.pow(2,8*r-1);L(this,t,e,r,o-1,-o)}var i=r-1,s=1,a=0;for(this[e+i]=255&t;--i>=0&&(s*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/s>>0)-a&255;return e+r},l.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):I(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):I(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||L(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},l.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e=0;--o)t[o+e]=this[o+r];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Y(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(j,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function $(t,e,r,n){for(var o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}},623:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(879),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".qr-item img{border:thin solid #ddd;padding:5px}",""]);const i=o},227:(t,e,r)=>{"use strict";r.d(e,{Z:()=>i});var n=r(879),o=r.n(n)()((function(t){return t[1]}));o.push([t.id,".qr-item{margin-top:5px}.qr-item img{border:thin solid #ddd;padding:2px}",""]);const i=o},879:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=t(e);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(n)for(var i=0;i{e.read=function(t,e,r,n,o){var i,s,a=8*o-n-1,l=(1<>1,u=-7,c=r?o-1:0,f=r?-1:1,g=t[e+c];for(c+=f,i=g&(1<<-u)-1,g>>=-u,u+=a;u>0;i=256*i+t[e+c],c+=f,u-=8);for(s=i&(1<<-u)-1,i>>=-u,u+=n;u>0;s=256*s+t[e+c],c+=f,u-=8);if(0===i)i=1-h;else{if(i===l)return s?NaN:1/0*(g?-1:1);s+=Math.pow(2,n),i-=h}return(g?-1:1)*s*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var s,a,l,h=8*i-o-1,u=(1<>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:i-1,d=n?1:-1,p=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+c>=1?f/l:f*Math.pow(2,1-c))*l>=2&&(s++,l/=2),s+c>=u?(a=0,s=u):s+c>=1?(a=(e*l-1)*Math.pow(2,o),s+=c):(a=e*Math.pow(2,c-1)*Math.pow(2,o),s=0));o>=8;t[r+g]=255&a,g+=d,a/=256,o-=8);for(s=s<0;t[r+g]=255&s,g+=d,s/=256,h-=8);t[r+g-d]|=128*p}},826:t=>{var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},155:t=>{var e,r,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function s(t){if(e===setTimeout)return setTimeout(t,0);if((e===o||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:o}catch(t){e=o}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(t){r=i}}();var a,l=[],h=!1,u=-1;function c(){h&&a&&(h=!1,a.length?l=a.concat(l):u=-1,l.length&&f())}function f(){if(!h){var t=s(c);h=!0;for(var e=l.length;e;){for(a=l,l=[];++u1)for(var r=1;r{"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var t={};return function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}t[e]=r}return t[e]}}(),s=[];function a(t){for(var e=-1,r=0;r{"use strict";e.Z=(t,e)=>{const r=t.__vccOpts||t;for(const[t,n]of e)r[t]=n;return r}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,exports:{}};return t[n](i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.nc=void 0,(()=>{"use strict";const t=Vue;const e=["src"];function n(t){return""===t?t:"true"===t||"1"==t}const o=function(t,e){return new Promise(((e,r)=>{var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsArrayBuffer(n.response)},n.open("GET",t),n.send()}))};var i=r(155);function s(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function a(t,e){for(var r,n="",o=0,i=-1,s=0,a=0;a<=t.length;++a){if(a2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",o=0):o=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),i=a,s=0;continue}}else if(2===n.length||1===n.length){n="",o=0,i=a,s=0;continue}e&&(n.length>0?n+="/..":n="..",o=2)}else n.length>0?n+="/"+t.slice(i+1,a):n=t.slice(i+1,a),o=a-i-1;i=a,s=0}else 46===r&&-1!==s?++s:s=-1}return n}var l={resolve:function(){for(var t,e="",r=!1,n=arguments.length-1;n>=-1&&!r;n--){var o;n>=0?o=arguments[n]:(void 0===t&&(t=i.cwd()),o=t),s(o),0!==o.length&&(e=o+"/"+e,r=47===o.charCodeAt(0))}return e=a(e,!r),r?e.length>0?"/"+e:"/":e.length>0?e:"."},normalize:function(t){if(s(t),0===t.length)return".";var e=47===t.charCodeAt(0),r=47===t.charCodeAt(t.length-1);return 0!==(t=a(t,!e)).length||e||(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return s(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e0&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":l.normalize(t)},relative:function(t,e){if(s(t),s(e),t===e)return"";if((t=l.resolve(t))===(e=l.resolve(e)))return"";for(var r=1;rh){if(47===e.charCodeAt(i+c))return e.slice(i+c+1);if(0===c)return e.slice(i+c)}else o>h&&(47===t.charCodeAt(r+c)?u=c:0===c&&(u=0));break}var f=t.charCodeAt(r+c);if(f!==e.charCodeAt(i+c))break;47===f&&(u=c)}var g="";for(c=r+u+1;c<=n;++c)c!==n&&47!==t.charCodeAt(c)||(0===g.length?g+="..":g+="/..");return g.length>0?g+e.slice(i+u):(i+=u,47===e.charCodeAt(i)&&++i,e.slice(i))},_makeLong:function(t){return t},dirname:function(t){if(s(t),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,n=-1,o=!0,i=t.length-1;i>=1;--i)if(47===(e=t.charCodeAt(i))){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"//":t.slice(0,n)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');s(t);var r,n=0,o=-1,i=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var a=e.length-1,l=-1;for(r=t.length-1;r>=0;--r){var h=t.charCodeAt(r);if(47===h){if(!i){n=r+1;break}}else-1===l&&(i=!1,l=r+1),a>=0&&(h===e.charCodeAt(a)?-1==--a&&(o=r):(a=-1,o=l))}return n===o?o=l:-1===o&&(o=t.length),t.slice(n,o)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!i){n=r+1;break}}else-1===o&&(i=!1,o=r+1);return-1===o?"":t.slice(n,o)},extname:function(t){s(t);for(var e=-1,r=0,n=-1,o=!0,i=0,a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(47!==l)-1===n&&(o=!1,n=a+1),46===l?-1===e?e=a:1!==i&&(i=1):-1!==e&&(i=-1);else if(!o){r=a+1;break}}return-1===e||-1===n||0===i||1===i&&e===n-1&&e===r+1?"":t.slice(e,n)},format:function(t){if(null===t||"object"!=typeof t)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+t+n:n}("/",t)},parse:function(t){s(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var r,n=t.charCodeAt(0),o=47===n;o?(e.root="/",r=1):r=0;for(var i=-1,a=0,l=-1,h=!0,u=t.length-1,c=0;u>=r;--u)if(47!==(n=t.charCodeAt(u)))-1===l&&(h=!1,l=u+1),46===n?-1===i?i=u:1!==c&&(c=1):-1!==i&&(c=-1);else if(!h){a=u+1;break}return-1===i||-1===l||0===c||1===c&&i===l-1&&i===a+1?-1!==l&&(e.base=e.name=0===a&&o?t.slice(1,l):t.slice(a,l)):(0===a&&o?(e.name=t.slice(1,i),e.base=t.slice(1,l)):(e.name=t.slice(a,i),e.base=t.slice(a,l)),e.ext=t.slice(i,l)),a>0?e.dir=t.slice(0,a-1):o&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l;const h=l.extname,u=l.basename;class c{constructor(){let t=void 0===r.g,e="image/png",n="image/jpeg",o="image/jpeg",i="image/webp",s="application/pdf",a="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:t?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:t?{png:e,jpg:n,jpeg:o,webp:i}:{png:e,jpg:n,jpeg:o,pdf:s,svg:a},mimes:t?{[e]:"png",[n]:"jpg",[i]:"webp"}:{[e]:"png",[n]:"jpg",[s]:"pdf",[a]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}class f{static for(t){return(new f).append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=0|this.crc,r=this.table,n=0,o=0|t.length;n>>8^r[255&(e^t[n])];return this.crc=e,this}}function g(t){let e=new Uint8Array(t),r=new DataView(e.buffer),n={array:e,view:r,size:t,set8:(t,e)=>(r.setUint8(t,e),n),set16:(t,e)=>(r.setUint16(t,e,!0),n),set32:(t,e)=>(r.setUint32(t,e,!0),n),bytes:(t,r)=>(e.set(r,t),n)};return n}f.prototype.table=(()=>{var t,e,r,n=[];for(t=0;t<256;t++){for(r=t,e=0;e<8;e++)r=1&r?r>>>1^3988292384:r>>>1;n[t]=r}return n})();class d{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let r=!e,n=d.encoder.encode(`${this.directory}/${r?"":t}`),o=new Uint8Array(r?0:await e.arrayBuffer()),i=30+n.length,s=i+o.length,{offset:a}=this,l=g(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,f.for(o)).set32(14,o.length).set32(18,o.length).set16(22,n.length);a+=i;let h=g(i+o.length+16).set32(0,67324752).bytes(4,l.array).bytes(30,n).bytes(i,o);a+=o.length,h.set32(s,134695760).bytes(s+4,l.array.slice(10,22)),a+=16,this.files.push({offset:a,folder:r,name:n,header:l,payload:h}),this.offset=a}toBuffer(){let t=this.files.reduce(((t,{name:e})=>46+e.length+t),0),e=g(t+22),r=0;for(var{offset:n,name:o,header:i,folder:s}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,i.array).set8(r+38,s?16:0).set32(r+42,n).bytes(r+46,o),r+=46+o.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let a=new Uint8Array(this.offset+e.size),l=0;for(var{payload:h}of this.files)a.set(h.array,l),l+=h.size;return a.set(e.array,l),a}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}d.encoder=new TextEncoder;const p=(t,e,r,n)=>{if(n){let{width:e,height:r}=t,o=Object.assign(document.createElement("canvas"),{width:e,height:r}),i=o.getContext("2d");i.fillStyle=n,i.fillRect(0,0,e,r),i.drawImage(t,0,0),t=o}return new Promise(((n,o)=>t.toBlob(n,e,r)))},m=(t,e)=>{const r=window.URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",n.href=r,n.setAttribute("download",t),void 0===n.download&&n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout((()=>window.URL.revokeObjectURL(r)),100)},y={asBuffer:(...t)=>p(...t).then((t=>t.arrayBuffer())),asDownload:async(t,e,r,n,o)=>{m(o,await p(t,e,r,n))},asZipDownload:async(t,e,r,n,o,i,s)=>{let a=u(o,".zip")||"archive",l=new d(a);await Promise.all(t.map((async(t,o)=>{let a=(t=>i.replace("{}",String(t+1).padStart(s,"0")))(o);await l.add(a,await p(t,e,r,n))}))),m(`${a}.zip`,l.blob)},atScale:(t,e,r)=>t.map((t=>{if(1==e&&!r)return t.canvas;let n=document.createElement("canvas"),o=n.getContext("2d"),i=t.canvas?t.canvas:t;return n.width=i.width*e,n.height=i.height*e,r&&(o.fillStyle=r,o.fillRect(0,0,n.width,n.height)),o.scale(e,e),o.drawImage(i,0,0),n})),options:function(t,{filename:e="",extension:r="",format:n,page:o,quality:i,matte:s,density:a,outline:l,archive:f}={}){var{fromMime:g,toMime:d,expected:p}=new c,m=(f=f||"canvas",n||r.replace(/@\d+x$/i,"")||h(e)),y=(n=g(d(m)||m),d(n)),w=t.length;if(!m)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!n)throw new Error(`Unsupported file format "${m}" (expected ${p})`);if(!w)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let v,b,A=e.replace(/{(\d*)}/g,((t,e)=>(b=!0,e=parseInt(e,10),v=isFinite(e)?e:isFinite(v)?v:-1,"{}"))),C=o>0?o-1:o<0?w+o:void 0;if(isFinite(C)&&C<0||C>=w)throw new RangeError(1==w?`Canvas only has a ‘page 1’ (${C} is out of bounds)`:`Canvas has pages 1–${w} (${C} is out of bounds)`);if(t=isFinite(C)?[t[C]]:b||"pdf"==n?t:t.slice(-1),void 0===i)i=.92;else if("number"!=typeof i||!isFinite(i)||i<0||i>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(void 0===a){let t=(r||u(e,m)).match(/@(\d+)x$/i);a=t?parseInt(t[1],10):1}else if("number"!=typeof a||!Number.isInteger(a)||a<1)throw new TypeError("The density option must be a non-negative integer");return void 0===l?l=!0:"svg"==n&&(l=!!l),{filename:e,pattern:A,format:n,mime:y,pages:t,padding:v,quality:i,matte:s,density:a,outline:l,archive:f}}},w=y,{asBuffer:v,asDownload:b,asZipDownload:A,atScale:C,options:E}=w,T=Symbol.for("toDataURL");const{CanvasRenderingContext2D:P,CanvasGradient:B,CanvasPattern:R,Image:x,ImageData:S,Path2D:_,DOMMatrix:D,DOMRect:k,DOMPoint:L}=window,I={Canvas:class{constructor(t,e){let r=document.createElement("canvas"),n=[];for(var[o,i]of(Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0}),Object.entries({png:()=>v(r,"image/png"),jpg:()=>v(r,"image/jpeg"),pages:()=>n.concat(r).map((t=>t.getContext("2d")))})))Object.defineProperty(r,o,{get:i});return Object.assign(r,{width:t,height:e,newPage(...t){var{width:e,height:o}=r,i=Object.assign(document.createElement("canvas"),{width:e,height:o});i.getContext("2d").drawImage(r,0,0),n.push(i);var[e,o]=t.length?t:[e,o];return Object.assign(r,{width:e,height:o}).getContext("2d")},saveAs(t,e){e="number"==typeof e?{quality:e}:e;let r=E(this.pages,{filename:t,...e}),{pattern:n,padding:o,mime:i,quality:s,matte:a,density:l,archive:h}=r,u=C(r.pages,l);return null==o?b(u[0],i,s,a,t):A(u,i,s,a,h,n,o)},toBuffer(t="png",e={}){e="number"==typeof e?{quality:e}:e;let r=E(this.pages,{extension:t,...e}),{mime:n,quality:o,matte:i,pages:s,density:a}=r,l=C(s,a,i)[0];return v(l,n,o,i)},[T]:r.toDataURL.bind(r),toDataURL(t="png",e={}){e="number"==typeof e?{quality:e}:e;let n=E(this.pages,{extension:t,...e}),{mime:o,quality:i,matte:s,pages:a,density:l}=n,h=C(a,l,s)[0],u=h[h===r?T:"toDataURL"](o,i);return Promise.resolve(u)}})}},loadImage:t=>new Promise(((e,r)=>Object.assign(new x,{crossOrigin:"Anonymous",onload:e,onerror:r,src:t}))),CanvasRenderingContext2D:P,CanvasGradient:B,CanvasPattern:R,Image:x,ImageData:S,Path2D:_,DOMMatrix:D,DOMRect:k,DOMPoint:L},M=(t,e,r={},n=r)=>{if(Array.isArray(e))e.forEach((e=>M(t,e,r,n)));else if("function"==typeof e)e(t,r,n,M);else{const o=Object.keys(e)[0];Array.isArray(e[o])?(n[o]={},M(t,e[o],r,n[o])):n[o]=e[o](t,r,n,M)}return r},O=(t,e)=>(r,n,o,i)=>{e(r,n,o)&&i(r,t,n,o)},U=(t=0)=>e=>e.data[e.pos+t],N=t=>e=>e.data.subarray(e.pos,e.pos+=t),j=t=>e=>e.data.subarray(e.pos,e.pos+t),z=t=>e=>Array.from(N(t)(e)).map((t=>String.fromCharCode(t))).join(""),F=t=>e=>{const r=N(2)(e);return t?(r[1]<<8)+r[0]:(r[0]<<8)+r[1]},Y=(t,e)=>(r,n,o)=>{const i="function"==typeof e?e(r,n,o):e,s=N(t),a=new Array(i);for(var l=0;le=>{const r=(t=>t.data[t.pos++])(e),n=new Array(8);for(var o=0;o<8;o++)n[7-o]=!!(r&1<{const o=t[r];return o.length?e[r]=((t,e,r)=>{for(var n=0,o=0;o{const e=[],r=t.data.length;for(var n=0,o=(t=>t.data[t.pos++])(t);0!==o&&o;o=(t=>t.data[t.pos++])(t)){if(t.pos+o>=r){const o=r-t.pos;e.push(N(o)(t)),n+=o;break}e.push(N(o)(t)),n+=o}const i=new Uint8Array(n);for(var s=0,a=0;at.data[t.pos++]},{extras:$({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:F(!0)},{transparentColorIndex:t=>t.data[t.pos++]},{terminator:t=>t.data[t.pos++]}]},(t=>{var e=j(2)(t);return 33===e[0]&&249===e[1]})),H=O({image:[{code:t=>t.data[t.pos++]},{descriptor:[{left:F(!0)},{top:F(!0)},{width:F(!0)},{height:F(!0)},{lct:$({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},O({lct:Y(3,((t,e,r)=>Math.pow(2,r.descriptor.lct.size+1)))},((t,e,r)=>r.descriptor.lct.exists)),{data:[{minCodeSize:t=>t.data[t.pos++]},q]}]},(t=>44===U()(t))),Q=O({text:[{codes:N(2)},{blockSize:t=>t.data[t.pos++]},{preData:(t,e,r)=>N(r.text.blockSize)(t)},q]},(t=>{var e=j(2)(t);return 33===e[0]&&1===e[1]})),Z=O({application:[{codes:N(2)},{blockSize:t=>t.data[t.pos++]},{id:(t,e,r)=>z(r.blockSize)(t)},q]},(t=>{var e=j(2)(t);return 33===e[0]&&255===e[1]})),K=O({comment:[{codes:N(2)},q]},(t=>{var e=j(2)(t);return 33===e[0]&&254===e[1]})),X=[{header:[{signature:z(3)},{version:z(3)}]},{lsd:[{width:F(!0)},{height:F(!0)},{gct:$({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:t=>t.data[t.pos++]},{pixelAspectRatio:t=>t.data[t.pos++]}]},O({gct:Y(3,((t,e)=>Math.pow(2,e.lsd.gct.size+1)))},((t,e)=>e.lsd.gct.exists)),{frames:((t,e)=>(r,n,o,i)=>{const s=[];let a=r.pos;for(;e(r,n,o);){const e={};if(i(r,t,n,e),r.pos===a)break;a=r.pos,s.push(e)}return s})([G,Z,K,H,Q],(t=>{var e=U()(t);return 33===e||44===e}))}],V=X,J=t=>{const e=new Uint8Array(t);return M({data:e,pos:0},V)},W=(t,e,r)=>{if(!t.image)return void console.warn("gif frame does not have associated image.");const{image:n}=t,o=n.descriptor.width*n.descriptor.height;var i=((t,e,r)=>{const n=4096,o=r;var i,s,a,l,h,u,c,f,g,d;const p=new Array(r),m=new Array(n),y=new Array(n),w=new Array(4097);for(h=1+(s=1<<(d=t)),i=s+2,c=-1,a=(1<<(l=d+1))-1,f=0;f>=l,b-=l,f>i||f==h)break;if(f==s){a=(1<<(l=d+1))-1,i=s+2,c=-1;continue}if(-1==c){w[C++]=y[f],c=f,A=f;continue}for(u=f,f==i&&(w[C++]=A,f=c);f>s;)w[C++]=y[f],f=m[f];A=255&y[f],w[C++]=A,i{const r=new Array(t.length),n=t.length/e,o=function(n,o){const i=t.slice(o*e,(o+1)*e);r.splice.apply(r,[n*e,e].concat(i))},i=[0,4,2,1],s=[8,8,4,2];for(var a=0,l=0;l<4;l++)for(var h=i[l];h{const e=t.pixels.length,r=new Uint8ClampedArray(4*e);for(var n=0;n65536?(r[0]=240|(1835008&n)>>>18,r[1]=128|(258048&n)>>>12,r[2]=128|(4032&n)>>>6,r[3]=128|63&n):n>2048?(r[0]=224|(61440&n)>>>12,r[1]=128|(4032&n)>>>6,r[2]=128|63&n):n>128?(r[0]=192|(1984&n)>>>6,r[1]=128|63&n):r[0]=n,e.push(r)}this.parsedData=Array.prototype.concat.apply([],e),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}getLength(){return this.parsedData.length}write(t){for(let e=0,r=this.parsedData.length;ect.length)throw new Error("Too long data");return r}(t,this.errorCorrectLevel);else{if(this.typeNumber>40)throw new Error(`Invalid QR version: ${this.typeNumber}`);if(!function(t,e,r){const n=tt(e),o=t-1;let i=0;switch(r){case nt.L:i=ct[o][0];break;case nt.M:i=ct[o][1];break;case nt.Q:i=ct[o][2];break;case nt.H:i=ct[o][3]}return n<=i}(this.typeNumber,t,this.errorCorrectLevel))throw new Error(`Data is too long for QR version: ${this.typeNumber}`)}const e=new et(t);this.dataList.push(e),this.dataCache=void 0}isDark(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(`${t},${e}`);return this.modules[t][e]}getModuleCount(){return this.moduleCount}make(){this.makeImpl(!1,this.getBestMaskPattern())}makeImpl(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(let t=0;t=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=rt.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)}setupPositionProbePattern(t,e){for(let r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(let n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)}getBestMaskPattern(){if(Number.isInteger(this.maskPattern)&&Object.values(it).includes(this.maskPattern))return this.maskPattern;let t=0,e=0;for(let r=0;r<8;r++){this.makeImpl(!0,r);const n=st.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e}setupTimingPattern(){for(let t=8;t>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}}setupTypeInfo(t,e){const r=this.errorCorrectLevel<<3|e,n=st.getBCHTypeInfo(r);for(var o=0;o<15;o++){var i=!t&&1==(n>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!t&&1==(n>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!t}mapData(t,e){let r=-1,n=this.moduleCount-1,o=7,i=0;for(let s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(let r=0;r<2;r++)if(null==this.modules[n][s-r]){let a=!1;i>>o&1));st.getMask(e,n,s-r)&&(a=!a),this.modules[n][s-r]=a,o--,-1==o&&(i++,o=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}static createData(t,e,r){const n=ht.getRSBlocks(t,e),o=new ut;for(var i=0;i8*s)throw new Error(`code length overflow. (${o.getLengthInBits()}>${8*s})`);for(o.getLengthInBits()+4<=8*s&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*s||(o.put(rt.PAD0,8),o.getLengthInBits()>=8*s));)o.put(rt.PAD1,8);return rt.createBytes(o,n)}static createBytes(t,e){let r=0,n=0,o=0;const i=new Array(e.length),s=new Array(e.length);for(var a=0;a=0?f.get(t):0}}let h=0;for(l=0;l=0;)e^=st.G15<=0;)e^=st.G18<>>=1;return e}static getPatternPosition(t){return st.PATTERN_POSITION_TABLE[t-1]}static getMask(t,e,r){switch(t){case it.PATTERN000:return(e+r)%2==0;case it.PATTERN001:return e%2==0;case it.PATTERN010:return r%3==0;case it.PATTERN011:return(e+r)%3==0;case it.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case it.PATTERN101:return e*r%2+e*r%3==0;case it.PATTERN110:return(e*r%2+e*r%3)%2==0;case it.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error(`bad maskPattern:${t}`)}}static getErrorCorrectPolynomial(t){let e=new lt([1],0);for(let r=0;r5&&(r+=3+i-5)}for(n=0;n=256;)t-=255;return at.EXP_TABLE[t]}}at.EXP_TABLE=new Array(256),at.LOG_TABLE=new Array(256),at._constructor=function(){for(var t=0;t<8;t++)at.EXP_TABLE[t]=1<>>7-t%8&1)}put(t,e){for(let r=0;r>>e-r-1&1))}getLengthInBits(){return this.length}putBit(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++}}const ct=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];var ft=100,gt=256,dt=gt-1,pt=4,mt=16,yt=1<>vt,At=yt<>3)*(1<h;)l=s[g++],ch&&((a=r[f--])[0]-=l*(a[0]-n)/Rt,a[1]-=l*(a[1]-o)/Rt,a[2]-=l*(a[2]-i)/Rt)}function h(t,e,n){var s,a,l,h,u,c=~(1<<31),f=c,g=-1,d=g;for(s=0;s>mt-pt))>vt,i[s]-=u,o[s]+=u<>3),t=0;t>Ct;for(w<=1&&(w=0),r=0;r=f&&(v-=f),0===p&&(p=1),++r%p==0)for(m-=m/g,(w=(y-=y/Tt)>>Ct)<=1&&(w=0),c=0;c>=pt,r[t][1]>>=pt,r[t][2]>>=pt,r[t][3]=t}(),function(){var t,e,o,i,s,a,l=0,h=0;for(t=0;t>1,e=l+1;e>1,e=l+1;e<256;e++)n[e]=dt}()},this.getColormap=function(){for(var t=[],e=[],n=0;n=0;)u=l?u=gt:(u++,a<0&&(a=-a),(i=s[0]-t)<0&&(i=-i),(a+=i)=0&&((a=e-(s=r[c])[1])>=l?c=-1:(c--,a<0&&(a=-a),(i=s[0]-t)<0&&(i=-i),(a+=i)=254&&E(e)}function A(t){C(Ot),w=l+2,v=!0,B(l,t)}function C(t){for(var e=0;e0&&(t.writeByte(i),t.writeBytes(d,0,i),i=0)}function T(t){return(1<0?o|=t<=8;)b(255&o,e),o>>=8,y-=8;if((w>s||v)&&(v?(s=T(f=a),v=!1):(++f,s=f==Mt?1<0;)b(255&o,e),o>>=8,y-=8;E(e)}}this.encode=function(r){r.writeByte(g),u=t*e,c=0,function(t,e){var r,n,o,u,c,g,d;for(v=!1,s=T(f=a=t),h=1+(l=1<=0){c=g-o,0===o&&(c=1);do{if((o-=c)<0&&(o+=g),p[o]===r){u=m[o];continue t}}while(p[o]>=0)}B(u,e),u=n,w<1<t+e.length),0));return t.reduce(((t,e)=>(r.set(e,t),t+e.length)),0),r},jt.prototype.writeByte=function(t){this.cursor>=jt.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},jt.prototype.writeUTFBytes=function(t){for(var e=t.length,r=0;r=0&&(this.dispose=t)},Ft.prototype.setRepeat=function(t){this.repeat=t},Ft.prototype.setTransparent=function(t){this.transparent=t},Ft.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},Ft.prototype.finish=function(){this.out.writeByte(59)},Ft.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},Ft.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},Ft.prototype.setGlobalPalette=function(t){this.globalPalette=t},Ft.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},Ft.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},Ft.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new Lt(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},Ft.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var r=0,n=0;n=0&&A+u=0&&C+h>16,(65280&t)>>8,255&t,e)},Ft.prototype.findClosestRGB=function(t,e,r,n){if(null===this.colorTab)return-1;if(this.neuQuant&&!n)return this.neuQuant.lookupRGB(t,e,r);for(var o=0,i=16777216,s=this.colorTab.length,a=0,l=0;a=0&&(e=7&this.dispose),e<<=2,this.out.writeByte(0|e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},Ft.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},Ft.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},Ft.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},Ft.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e>8&255)},Ft.prototype.writePixels=function(){new Nt(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},Ft.prototype.stream=function(){return this.out};const Yt=Ft;var $t=r(764).lW,qt=function(t,e,r,n){return new(r||(r=Promise))((function(o,i){function s(t){try{l(n.next(t))}catch(t){i(t)}}function a(t){try{l(n.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}l((n=n.apply(t,e||[])).next())}))};const{Canvas:Gt}=I,Ht=.4;function Qt(t){if(t)return new Promise((function(r,n){if("data"==t.slice(0,4)){let o=new Image;return o.onload=function(){r(o),e(o)},o.onerror=function(){n("Image load error"),e(o)},void(o.src=t)}let o=new Image;o.setAttribute("crossOrigin","Anonymous"),o.onload=function(){r(o)},o.onerror=function(){n("Image load error")},o.src=t}));function e(t){t.onload=null,t.onerror=null}}class Zt{constructor(t){const e=Object.assign({},t);if(Object.keys(Zt.defaultOptions).forEach((t=>{t in e||Object.defineProperty(e,t,{value:Zt.defaultOptions[t],enumerable:!0,writable:!0})})),e.components?"object"==typeof e.components&&Object.keys(Zt.defaultComponentOptions).forEach((t=>{t in e.components?Object.defineProperty(e.components,t,{value:Object.assign(Object.assign({},Zt.defaultComponentOptions[t]),e.components[t]),enumerable:!0,writable:!0}):Object.defineProperty(e.components,t,{value:Zt.defaultComponentOptions[t],enumerable:!0,writable:!0})})):e.components=Zt.defaultComponentOptions,null!==e.dotScale&&void 0!==e.dotScale){if(e.dotScale<=0||e.dotScale>1)throw new Error("dotScale should be in range (0, 1].");e.components.data.scale=e.dotScale,e.components.timing.scale=e.dotScale,e.components.alignment.scale=e.dotScale}this.options=e,this.canvas=new Gt(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new rt(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}draw(){return new Promise((t=>this._draw().then(t)))}_clear(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}static _prepareRoundedCornerClip(t,e,r,n,o,i){t.beginPath(),t.moveTo(e,r),t.arcTo(e+n,r,e+n,r+o,i),t.arcTo(e+n,r+o,e,r+o,i),t.arcTo(e,r+o,e,r,i),t.arcTo(e,r,e+n,r,i),t.closePath()}static _getAverageRGB(t){const e={r:0,g:0,b:0};let r,n,o=-4;const i={r:0,g:0,b:0};let s=0;n=t.naturalHeight||t.height,r=t.naturalWidth||t.width;const a=new Gt(r,n).getContext("2d");if(!a)return e;let l;a.drawImage(t,0,0);try{l=a.getImageData(0,0,r,n)}catch(t){return e}for(;(o+=20)200||l.data[o+1]>200||l.data[o+2]>200||(++s,i.r+=l.data[o],i.g+=l.data[o+1],i.b+=l.data[o+2]);return i.r=~~(i.r/s),i.g=~~(i.g/s),i.b=~~(i.b/s),i}static _drawDot(t,e,r,n,o=0,i=1){t.fillRect((e+o)*n,(r+o)*n,i*n,i*n)}static _drawAlignProtector(t,e,r,n){t.clearRect((e-2)*n,(r-2)*n,5*n,5*n),t.fillRect((e-2)*n,(r-2)*n,5*n,5*n)}static _drawAlign(t,e,r,n,o=0,i=1,s,a){const l=t.fillStyle;t.fillStyle=s,new Array(4).fill(0).map(((s,a)=>{Zt._drawDot(t,e-2+a,r-2,n,o,i),Zt._drawDot(t,e+2,r-2+a,n,o,i),Zt._drawDot(t,e+2-a,r+2,n,o,i),Zt._drawDot(t,e-2,r+2-a,n,o,i)})),Zt._drawDot(t,e,r,n,o,i),a||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map(((s,a)=>{Zt._drawDot(t,e-1+a,r-1,n,o,i),Zt._drawDot(t,e+1,r-1+a,n,o,i),Zt._drawDot(t,e+1-a,r+1,n,o,i),Zt._drawDot(t,e-1,r+1-a,n,o,i)}))),t.fillStyle=l}_draw(){var t,e,r,n,o,i,s,a,l,h,u,c,f,g,d,p,m,y,w;return qt(this,void 0,void 0,(function*(){const v=null===(t=this.qrCode)||void 0===t?void 0:t.moduleCount,b=this.options.size;let A=this.options.margin;(A<0||2*A>=b)&&(A=0);const C=Math.ceil(A),E=b-2*A,T=this.options.whiteMargin,P=this.options.backgroundDimming,B=Math.ceil(E/v),R=B*v,x=R+2*C,S=new Gt(x,x),_=S.getContext("2d");this._clear(),_.save(),_.translate(C,C);const D=new Gt(x,x),k=D.getContext("2d");let L=null,I=[];if(this.options.gifBackground){const t=J(this.options.gifBackground);if(L=t,O=!0,I=(M=t).frames.filter((t=>t.image)).map((t=>W(t,M.gct,O))),this.options.autoColor){let t=0,e=0,r=0,n=0;for(let o=0;o200||i[1]>200||i[2]>200||(0===i[0]&&0===i[1]&&0===i[2]||(n++,t+=i[0],e+=i[1],r+=i[2]))}t=~~(t/n),e=~~(e/n),r=~~(r/n),this.options.colorDark=`rgb(${t},${e},${r})`}}else if(this.options.backgroundImage){const t=yield Qt(this.options.backgroundImage);if(this.options.autoColor){const e=Zt._getAverageRGB(t);this.options.colorDark=`rgb(${e.r},${e.g},${e.b})`}k.drawImage(t,0,0,t.width,t.height,0,0,x,x),k.rect(0,0,x,x),k.fillStyle=P,k.fill()}else k.rect(0,0,x,x),k.fillStyle=this.options.colorLight,k.fill();var M,O;const U=st.getPatternPosition(this.qrCode.typeNumber),N=(null===(r=null===(e=this.options.components)||void 0===e?void 0:e.data)||void 0===r?void 0:r.scale)||Ht,j=.5*(1-N);for(let t=0;t=v-8)||e>=v-8&&t<8;let o=n||(6==t&&e>=8&&e<=v-8||6==e&&t>=8&&t<=v-8);for(let r=1;r=U[r]-2&&t<=U[r]+2&&e>=U[r]-2&&e<=U[r]+2;const i=e*B+(o?0:j*B),s=t*B+(o?0:j*B);if(_.strokeStyle=r?this.options.colorDark:this.options.colorLight,_.lineWidth=.5,_.fillStyle=r?this.options.colorDark:this.options.colorLight,0===U.length)o||_.fillRect(i,s,(o?1:N)*B,(o?1:N)*B);else{o||e=v-4-5&&t=v-4-5||_.fillRect(i,s,(o?1:N)*B,(o?1:N)*B)}}const z=U[U.length-1],F=this.options.colorLight;if(_.fillStyle=F,_.fillRect(0,0,8*B,8*B),_.fillRect(0,(v-8)*B,8*B,8*B),_.fillRect((v-8)*B,0,8*B,8*B),(null===(o=null===(n=this.options.components)||void 0===n?void 0:n.timing)||void 0===o?void 0:o.protectors)&&(_.fillRect(8*B,6*B,(v-8-8)*B,B),_.fillRect(6*B,8*B,B,(v-8-8)*B)),(null===(s=null===(i=this.options.components)||void 0===i?void 0:i.cornerAlignment)||void 0===s?void 0:s.protectors)&&Zt._drawAlignProtector(_,z,z,B),null===(l=null===(a=this.options.components)||void 0===a?void 0:a.alignment)||void 0===l?void 0:l.protectors)for(let t=0;t=1)&&(e=.2),r<0&&(r=0),n<0&&(n=0);const o=R*e,i=.5*(x-o),s=i;_.restore(),_.fillStyle=this.options.logoBackgroundColor,_.save(),Zt._prepareRoundedCornerClip(_,i-r,s-r,o+2*r,o+2*r,n+r),_.clip();const a=_.globalCompositeOperation;_.globalCompositeOperation="destination-out",_.fill(),_.globalCompositeOperation=a,_.restore(),_.save(),Zt._prepareRoundedCornerClip(_,i,s,o,o,n),_.clip(),_.drawImage(t,i,s,o,o),_.restore(),_.save(),_.translate(C,C)}if(L){let t,e,r,n,o,i;if(I.forEach((function(s){t||(t=new Yt(b,b),t.setDelay(s.delay),t.setRepeat(0));const{width:a,height:l}=s.dims;e||(e=new Gt(a,l),r=e.getContext("2d"),r.rect(0,0,e.width,e.height),r.fillStyle="#ffffff",r.fill()),n&&i&&a===n.width&&l===n.height||(n=new Gt(a,l),o=n.getContext("2d"),i=o.createImageData(a,l)),i.data.set(s.patch),o.putImageData(i,0,0),r.drawImage(n.getContext("2d").canvas,s.dims.left,s.dims.top);const h=new Gt(x,x),u=h.getContext("2d");u.drawImage(e.getContext("2d").canvas,0,0,x,x),u.rect(0,0,x,x),u.fillStyle=P,u.fill(),u.drawImage(S.getContext("2d").canvas,0,0,x,x);const c=new Gt(b,b),f=c.getContext("2d");f.drawImage(h.getContext("2d").canvas,0,0,b,b),t.addFrame(f.getImageData(0,0,c.width,c.height).data)})),!t)throw new Error("No frames.");if(t.finish(),Kt(this.canvas)){const e=t.stream().toFlattenUint8Array().reduce(((t,e)=>t+String.fromCharCode(e)),"");return Promise.resolve(`data:image/gif;base64,${window.btoa(e)}`)}return Promise.resolve($t.from(t.stream().toFlattenUint8Array()))}{k.drawImage(S.getContext("2d").canvas,0,0,x,x),_.drawImage(D.getContext("2d").canvas,-C,-C,x,x);const t=new Gt(b,b);t.getContext("2d").drawImage(S.getContext("2d").canvas,0,0,b,b),this.canvas=t;const e=this.options.gifBackground?"gif":"png";return Kt(this.canvas)?Promise.resolve(this.canvas.toDataURL(e)):Promise.resolve(this.canvas.toBuffer(e))}}))}}function Kt(t){try{return t instanceof HTMLElement}catch(e){return"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument}}Zt.CorrectLevel=nt,Zt.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}},Zt.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:nt.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:Zt.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"};const Xt={props:{text:{type:String,required:!0},qid:{type:String},correctLevel:{type:Number,default:1},size:{type:Number,default:200},margin:{type:Number,default:20},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#FFFFFF"},bgSrc:{type:String,default:void 0},background:{type:String,default:"rgba(0,0,0,0)"},backgroundDimming:{type:String,default:"rgba(0,0,0,0)"},logoSrc:{type:String,default:void 0},logoBackgroundColor:{type:String,default:"rgba(255,255,255,1)"},gifBgSrc:{type:String,default:void 0},logoScale:{type:Number,default:.2},logoMargin:{type:Number,default:0},logoCornerRadius:{type:Number,default:8},whiteMargin:{type:[Boolean,String],default:!0},dotScale:{type:Number,default:1},autoColor:{type:[Boolean,String],default:!0},binarize:{type:[Boolean,String],default:!1},binarizeThreshold:{type:Number,default:128},callback:{type:Function,default:function(){}},bindElement:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},components:{default:function(){return{data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}}}}},name:"vue-qr",data:()=>({imgUrl:""}),watch:{$props:{deep:!0,handler(){this.main()}}},mounted(){this.main()},methods:{async main(){if(this.gifBgSrc){const t=await o(this.gifBgSrc),e=this.logoSrc;return void this.render(void 0,e,t)}const t=this.bgSrc,e=this.logoSrc;this.render(t,e)},async render(t,e,r){const o=this;new Zt({gifBackground:r,text:o.text,size:o.size,margin:o.margin,colorDark:o.colorDark,colorLight:o.colorLight,backgroundColor:o.backgroundColor,backgroundImage:t,backgroundDimming:o.backgroundDimming,logoImage:e,logoScale:o.logoScale,logoBackgroundColor:o.logoBackgroundColor,correctLevel:o.correctLevel,logoMargin:o.logoMargin,logoCornerRadius:o.logoCornerRadius,whiteMargin:n(o.whiteMargin),dotScale:o.dotScale,autoColor:n(o.autoColor),binarize:n(o.binarize),binarizeThreshold:o.binarizeThreshold,components:o.components}).draw().then((t=>{this.imgUrl=t,o.callback&&o.callback(t,o.qid)}))}}};var Vt=r(744);const Jt=(0,Vt.Z)(Xt,[["render",function(r,n,o,i,s,a){return o.bindElement?((0,t.openBlock)(),(0,t.createElementBlock)("img",{key:0,style:{display:"inline-block"},src:s.imgUrl},null,8,e)):(0,t.createCommentVNode)("",!0)}]]),Wt={props:["resourceName","field"],components:{VueQr:Jt}};var te=r(379),ee=r.n(te),re=r(227),ne={insert:"head",singleton:!1};ee()(re.Z,ne);re.Z.locals;const oe=(0,Vt.Z)(Wt,[["render",function(e,r,n,o,i,s){var a=(0,t.resolveComponent)("vue-qr");return(0,t.openBlock)(),(0,t.createElementBlock)("span",null,[(0,t.createVNode)(a,{class:"qr-item",text:this.field.value,size:this.field.indexSize,bgSrc:this.field.background,logoSrc:this.field.logo,margin:this.field.margin},null,8,["text","size","bgSrc","logoSrc","margin"])])}]]);const ie={props:["index","resource","resourceName","resourceId","field"],components:{VueQr:Jt}};var se=r(623),ae={insert:"head",singleton:!1};ee()(se.Z,ae);se.Z.locals;const le=(0,Vt.Z)(ie,[["render",function(e,r,n,o,i,s){var a=(0,t.resolveComponent)("vue-qr"),l=(0,t.resolveComponent)("PanelItem");return(0,t.openBlock)(),(0,t.createBlock)(l,{index:n.index,field:n.field},{value:(0,t.withCtx)((function(){return[(0,t.createVNode)(a,{class:"qr-item",text:n.field.value,size:n.field.detailSize,bgSrc:n.field.background,logoSrc:n.field.logo,margin:n.field.margin},null,8,["text","size","bgSrc","logoSrc","margin"])]})),_:1},8,["index","field"])}]]);Nova.booting((function(t,e){t.component("index-qrcode",oe),t.component("detail-qrcode",le)}))})()})(); \ No newline at end of file +(()=>{var t={779:function(t,e,r){"use strict";var n=r(287).hp,o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]1)throw new Error("dotScale should be in range (0, 1].");r.components.data.scale=r.dotScale,r.components.timing.scale=r.dotScale,r.components.alignment.scale=r.dotScale}this.options=r,this.canvas=u.createCanvas(e.size,e.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new l.QRCodeModel(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}return t.prototype.draw=function(){var t=this;return new Promise((function(e){return t._draw().then(e)}))},t.prototype._clear=function(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)},t._prepareRoundedCornerClip=function(t,e,r,n,o,i){t.beginPath(),t.moveTo(e,r),t.arcTo(e+n,r,e+n,r+o,i),t.arcTo(e+n,r+o,e,r+o,i),t.arcTo(e,r+o,e,r,i),t.arcTo(e,r,e+n,r,i),t.closePath()},t._getAverageRGB=function(t){var e,r,n={r:0,g:0,b:0},o=-4,i={r:0,g:0,b:0},a=0;r=t.naturalHeight||t.height,e=t.naturalWidth||t.width;var s,f=u.createCanvas(e,r).getContext("2d");if(!f)return n;f.drawImage(t,0,0);try{s=f.getImageData(0,0,e,r)}catch(t){return n}for(;(o+=20)200||s.data[o+1]>200||s.data[o+2]>200||(++a,i.r+=s.data[o],i.g+=s.data[o+1],i.b+=s.data[o+2]);return i.r=~~(i.r/a),i.g=~~(i.g/a),i.b=~~(i.b/a),i},t._drawDot=function(t,e,r,n,o,i){void 0===o&&(o=0),void 0===i&&(i=1),t.fillRect((e+o)*n,(r+o)*n,i*n,i*n)},t._drawAlignProtector=function(t,e,r,n){t.clearRect((e-2)*n,(r-2)*n,5*n,5*n),t.fillRect((e-2)*n,(r-2)*n,5*n,5*n)},t._drawAlign=function(e,r,n,o,i,a,s,u){void 0===i&&(i=0),void 0===a&&(a=1);var f=e.fillStyle;e.fillStyle=s,new Array(4).fill(0).map((function(s,u){t._drawDot(e,r-2+u,n-2,o,i,a),t._drawDot(e,r+2,n-2+u,o,i,a),t._drawDot(e,r+2-u,n+2,o,i,a),t._drawDot(e,r-2,n+2-u,o,i,a)})),t._drawDot(e,r,n,o,i,a),u||(e.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((function(s,u){t._drawDot(e,r-1+u,n-1,o,i,a),t._drawDot(e,r+1,n-1+u,o,i,a),t._drawDot(e,r+1-u,n+1,o,i,a),t._drawDot(e,r-1,n+1-u,o,i,a)}))),e.fillStyle=f},t.prototype._draw=function(){var e,r,o,s,p,g,y,m,v,w,b,E,B,x,A,C,L,R,P;return i(this,void 0,void 0,(function(){var i,_,I,k,T,S,O,M,D,U,N,j,F,Q,z,G,$,H,q,Y,V,K,X,J,W,Z,tt,et,rt,nt,ot,it,at,st,ut,ft,lt,ct,ht,pt,dt,gt,yt,mt,vt,wt,bt,Et,Bt,xt,At,Ct,Lt,Rt,Pt,_t,It,kt,Tt,St,Ot,Mt,Dt;return a(this,(function(a){switch(a.label){case 0:if(i=null===(e=this.qrCode)||void 0===e?void 0:e.moduleCount,_=this.options.size,((I=this.options.margin)<0||2*I>=_)&&(I=0),k=Math.ceil(I),T=_-2*I,S=this.options.whiteMargin,O=this.options.backgroundDimming,M=Math.ceil(T/i),U=(D=M*i)+2*k,N=u.createCanvas(U,U),j=N.getContext("2d"),this._clear(),j.save(),j.translate(k,k),F=u.createCanvas(U,U),Q=F.getContext("2d"),z=null,G=[],!this.options.gifBackground)return[3,1];if($=f.parseGIF(this.options.gifBackground),z=$,G=f.decompressFrames($,!0),this.options.autoColor){for(H=0,q=0,Y=0,V=0,yt=0;yt200||K[1]>200||K[2]>200||0===K[0]&&0===K[1]&&0===K[2]||(V++,H+=K[0],q+=K[1],Y+=K[2]);H=~~(H/V),q=~~(q/V),Y=~~(Y/V),this.options.colorDark="rgb("+H+","+q+","+Y+")"}return[3,4];case 1:return this.options.backgroundImage?[4,u.loadImage(this.options.backgroundImage)]:[3,3];case 2:return X=a.sent(),this.options.autoColor&&(J=t._getAverageRGB(X),this.options.colorDark="rgb("+J.r+","+J.g+","+J.b+")"),Q.drawImage(X,0,0,X.width,X.height,0,0,U,U),Q.rect(0,0,U,U),Q.fillStyle=O,Q.fill(),[3,4];case 3:Q.rect(0,0,U,U),Q.fillStyle=this.options.colorLight,Q.fill(),a.label=4;case 4:for(W=l.QRUtil.getPatternPosition(this.qrCode.typeNumber),Z=(null===(o=null===(r=this.options.components)||void 0===r?void 0:r.data)||void 0===o?void 0:o.scale)||h,tt=.5*(1-Z),et=0;et=8&&rt<=i-8||6==rt&&et>=8&&et<=i-8,it=rt<8&&(et<8||et>=i-8)||rt>=i-8&&et<8||ot,yt=1;yt=W[yt]-2&&et<=W[yt]+2&&rt>=W[yt]-2&&rt<=W[yt]+2;at=rt*M+(it?0:tt*M),st=et*M+(it?0:tt*M),j.strokeStyle=nt?this.options.colorDark:this.options.colorLight,j.lineWidth=.5,j.fillStyle=nt?this.options.colorDark:"rgba(255, 255, 255, 0.6)",0===W.length?it||j.fillRect(at,st,(it?1:Z)*M,(it?1:Z)*M):(ut=rt=i-4-5&&et=i-4-5,it||ut||j.fillRect(at,st,(it?1:Z)*M,(it?1:Z)*M))}if(ft=W[W.length-1],j.fillStyle="rgba(255, 255, 255, 0.6)",j.fillRect(0,0,8*M,8*M),j.fillRect(0,(i-8)*M,8*M,8*M),j.fillRect((i-8)*M,0,8*M,8*M),(null===(p=null===(s=this.options.components)||void 0===s?void 0:s.timing)||void 0===p?void 0:p.protectors)&&(j.fillRect(8*M,6*M,(i-8-8)*M,M),j.fillRect(6*M,8*M,M,(i-8-8)*M)),(null===(y=null===(g=this.options.components)||void 0===g?void 0:g.cornerAlignment)||void 0===y?void 0:y.protectors)&&t._drawAlignProtector(j,ft,ft,M),null===(v=null===(m=this.options.components)||void 0===m?void 0:m.alignment)||void 0===v?void 0:v.protectors)for(yt=0;yt=1)&&(Et=.2),Bt<0&&(Bt=0),xt<0&&(xt=0),Lt=Ct=.5*(U-(At=D*Et)),j.restore(),j.fillStyle="#FFFFFF",j.save(),t._prepareRoundedCornerClip(j,Ct-Bt,Lt-Bt,At+2*Bt,At+2*Bt,xt+Bt),j.clip(),Rt=j.globalCompositeOperation,j.globalCompositeOperation="destination-out",j.fill(),j.globalCompositeOperation=Rt,j.restore(),j.save(),t._prepareRoundedCornerClip(j,Ct,Lt,At,At,xt),j.clip(),j.drawImage(bt,Ct,Lt,At,At),j.restore(),j.save(),j.translate(k,k),a.label=6;case 6:if(z){if(G.forEach((function(t){Pt||((Pt=new c.default(_,_)).setDelay(t.delay),Pt.setRepeat(0));var e=t.dims,r=e.width,n=e.height;_t||(_t=u.createCanvas(r,n),(It=_t.getContext("2d")).rect(0,0,_t.width,_t.height),It.fillStyle="#ffffff",It.fill()),kt&&St&&r===kt.width&&n===kt.height||(kt=u.createCanvas(r,n),Tt=kt.getContext("2d"),St=Tt.createImageData(r,n)),St.data.set(t.patch),Tt.putImageData(St,0,0),It.drawImage(kt,t.dims.left,t.dims.top);var o=u.createCanvas(U,U),i=o.getContext("2d");i.drawImage(_t,0,0,U,U),i.rect(0,0,U,U),i.fillStyle=O,i.fill(),i.drawImage(N,0,0,U,U);var a=u.createCanvas(_,_),s=a.getContext("2d");s.drawImage(o,0,0,_,_),Pt.addFrame(s.getImageData(0,0,a.width,a.height).data)})),!Pt)throw new Error("No frames.");return Pt.finish(),d(this.canvas)?(Ot=Pt.stream().toFlattenUint8Array(),Mt=Ot.reduce((function(t,e){return t+String.fromCharCode(e)}),""),[2,Promise.resolve("data:image/gif;base64,"+window.btoa(Mt))]):[2,Promise.resolve(n.from(Pt.stream().toFlattenUint8Array()))]}return Q.drawImage(N,0,0,U,U),j.drawImage(F,-k,-k,U,U),Dt=u.createCanvas(_,_),Dt.getContext("2d").drawImage(N,0,0,_,_),this.canvas=Dt,d(this.canvas)?[2,Promise.resolve(this.canvas.toDataURL())]:[2,Promise.resolve(this.canvas.toBuffer())]}}))}))},t.CorrectLevel=l.QRErrorCorrectLevel,t.defaultComponentOptions={data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}},t.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"#ffffff",correctLevel:l.QRErrorCorrectLevel.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:t.defaultComponentOptions,autoColor:!0},t}();function d(t){try{return t instanceof HTMLElement}catch(e){return"object"==typeof t&&1===t.nodeType&&"object"==typeof t.style&&"object"==typeof t.ownerDocument}}e.AwesomeQR=p},870:(t,e,r)=>{"use strict";var n=r(222),o=r(49);function i(){this.page=-1,this.pages=[],this.newPage()}i.pageSize=4096,i.charMap={};for(var a=0;a<256;a++)i.charMap[a]=String.fromCharCode(a);function s(t,e){this.width=~~t,this.height=~~e,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new i}i.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(i.pageSize),this.cursor=0},i.prototype.getData=function(){for(var t="",e=0;e=i.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},i.prototype.writeUTFBytes=function(t){for(var e=t.length,r=0;r=0&&(this.dispose=t)},s.prototype.setRepeat=function(t){this.repeat=t},s.prototype.setTransparent=function(t){this.transparent=t},s.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},s.prototype.finish=function(){this.out.writeByte(59)},s.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},s.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},s.prototype.setGlobalPalette=function(t){this.globalPalette=t},s.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},s.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},s.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new n(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},s.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var r=0,n=0;n=0&&E+l=0&&B+f>16,(65280&t)>>8,255&t,e)},s.prototype.findClosestRGB=function(t,e,r,n){if(null===this.colorTab)return-1;if(this.neuQuant&&!n)return this.neuQuant.lookupRGB(t,e,r);for(var o=0,i=16777216,a=this.colorTab.length,s=0,u=0;s=0&&(e=7&this.dispose),e<<=2,this.out.writeByte(e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},s.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},s.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},s.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},s.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e>8&255)},s.prototype.writePixels=function(){new o(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},s.prototype.stream=function(){return this.out},t.exports=s},49:t=>{"use strict";var e=5003,r=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];t.exports=function(t,n,o,i){var a,s,u,f,l,c,h,p,d,g=Math.max(2,i),y=new Uint8Array(256),m=new Int32Array(e),v=new Int32Array(e),w=0,b=0,E=!1;function B(t,e){y[s++]=t,s>=254&&C(e)}function x(t){A(e),b=l+2,E=!0,P(l,t)}function A(t){for(var e=0;e0&&(t.writeByte(s),t.writeBytes(y,0,s),s=0)}function L(t){return(1<0?a|=t<=8;)B(255&a,e),a>>=8,w-=8;if((b>u||E)&&(E?(u=L(d=f),E=!1):(++d,u=12==d?4096:L(d))),t==c){for(;w>0;)B(255&a,e),a>>=8,w-=8;C(e)}}this.encode=function(r){r.writeByte(g),h=t*n,p=0,function(t,r){var n,o,i,a,h,p,g;for(E=!1,u=L(d=f=t),c=1+(l=1<=0){h=p-i,0===i&&(h=1);do{if((i-=h)<0&&(i+=p),m[i]===n){a=v[i];continue t}}while(m[i]>=0)}P(a,r),a=o,b<4096?(v[i]=b++,m[i]=n):x(r)}else a=v[i];P(a,r),P(c,r)}(g+1,r),r.writeByte(0)}}},222:t=>{"use strict";var e=256,r=1024,n=1<<18;t.exports=function(t,o){var i,a,s,u,f;function l(t,e,n,o,a){i[e][0]-=t*(i[e][0]-n)/r,i[e][1]-=t*(i[e][1]-o)/r,i[e][2]-=t*(i[e][2]-a)/r}function c(t,r,o,a,s){for(var u,l,c=Math.abs(r-t),h=Math.min(r+t,e),p=r+1,d=r-1,g=1;pc;)l=f[g++],pc&&((u=i[d--])[0]-=l*(u[0]-o)/n,u[1]-=l*(u[1]-a)/n,u[2]-=l*(u[2]-s)/n)}function h(t,r,n){var o,a,f,l,c,h=~(1<<31),p=h,d=-1,g=d;for(o=0;o>12))>10,u[o]-=c,s[o]+=c<<10;return u[d]+=64,s[d]-=65536,g}this.buildColormap=function(){!function(){var t,r;for(i=[],a=new Int32Array(256),s=new Int32Array(e),u=new Int32Array(e),f=new Int32Array(32),t=0;t>6;for(w<=1&&(w=0),e=0;e=p&&(b-=p),0===y&&(y=1),++e%y==0)for(m-=m/d,(w=(v-=v/30)>>6)<=1&&(w=0),u=0;u>=4,i[t][1]>>=4,i[t][2]>>=4,i[t][3]=t}(),function(){var t,r,n,o,s,u,f=0,l=0;for(t=0;t>1,r=f+1;r>1,r=f+1;r<256;r++)a[r]=255}()},this.getColormap=function(){for(var t=[],r=[],n=0;n=0;)c=f?c=e:(c++,u<0&&(u=-u),(o=s[0]-t)<0&&(o=-o),(u+=o)=0&&((u=r-(s=i[h])[1])>=f?h=-1:(h--,u<0&&(u=-u),(o=s[0]-t)<0&&(o=-o),(u+=o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.deinterlace=void 0,e.deinterlace=function(t,e){for(var r=new Array(t.length),n=t.length/e,o=function(n,o){var i=t.slice(o*e,(o+1)*e);r.splice.apply(r,[n*e,e].concat(i))},i=[0,4,2,1],a=[8,8,4,2],s=0,u=0;u<4;u++)for(var f=i[u];f{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lzw=void 0,e.lzw=function(t,e,r){var n,o,i,a,s,u,f,l,c,h,p,d,g,y,m,v,w=4096,b=r,E=new Array(r),B=new Array(w),x=new Array(w),A=new Array(4097);for(s=(o=1<<(h=t))+1,n=o+2,f=-1,i=(1<<(a=h+1))-1,l=0;l>=a,d-=a,l>n||l==s)break;if(l==o){i=(1<<(a=h+1))-1,n=o+2,f=-1;continue}if(-1==f){A[y++]=x[l],f=l,g=l;continue}for(u=l,l==n&&(A[y++]=g,l=f);l>o;)A[y++]=x[l],l=B[l];g=255&x[l],A[y++]=g,n{"use strict";function r(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=Number(t)?3:0)}Object.defineProperty(e,"__esModule",{value:!0}),e.QRMath=e.QRUtil=e.QRMaskPattern=e.QRErrorCorrectLevel=e.QRCodeModel=void 0;var n=function(){function t(t){this.mode=i.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;for(var e=[],r=0,n=this.data.length;r65536?(o[0]=240|(1835008&a)>>>18,o[1]=128|(258048&a)>>>12,o[2]=128|(4032&a)>>>6,o[3]=128|63&a):a>2048?(o[0]=224|(61440&a)>>>12,o[1]=128|(4032&a)>>>6,o[2]=128|63&a):a>128?(o[0]=192|(1984&a)>>>6,o[1]=128|63&a):o[0]=a,e.push(o)}this.parsedData=Array.prototype.concat.apply([],e),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return t.prototype.getLength=function(){return this.parsedData.length},t.prototype.write=function(t){for(var e=0,r=this.parsedData.length;ec.length)throw new Error("Too long data");return o}(t,this.errorCorrectLevel);else{if(this.typeNumber>40)throw new Error("Invalid QR version: "+this.typeNumber);if(!function(t,n,o){var i=r(n),a=t-1,s=0;switch(o){case e.QRErrorCorrectLevel.L:s=c[a][0];break;case e.QRErrorCorrectLevel.M:s=c[a][1];break;case e.QRErrorCorrectLevel.Q:s=c[a][2];break;case e.QRErrorCorrectLevel.H:s=c[a][3]}return i<=s}(this.typeNumber,t,this.errorCorrectLevel))throw new Error("Data is too long for QR version: "+this.typeNumber)}var o=new n(t);this.dataList.push(o),this.dataCache=void 0},t.prototype.isDark=function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error(t+","+e);return this.modules[t][e]},t.prototype.getModuleCount=function(){return this.moduleCount},t.prototype.make=function(){this.makeImpl(!1,this.getBestMaskPattern())},t.prototype.makeImpl=function(e,r){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,r)},t.prototype.setupPositionProbePattern=function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},t.prototype.getBestMaskPattern=function(){if(Number.isInteger(this.maskPattern)&&Object.values(e.QRMaskPattern).includes(this.maskPattern))return this.maskPattern;for(var t=0,r=0,n=0;n<8;n++){this.makeImpl(!0,n);var o=a.getLostPoint(this);(0==n||t>o)&&(t=o,r=n)}return r},t.prototype.setupTimingPattern=function(){for(var t=8;t>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},t.prototype.setupTypeInfo=function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=a.getBCHTypeInfo(r),o=0;o<15;o++){var i=!t&&1==(n>>o&1);o<6?this.modules[o][8]=i:o<8?this.modules[o+1][8]=i:this.modules[this.moduleCount-15+o][8]=i}for(o=0;o<15;o++){i=!t&&1==(n>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=i:o<9?this.modules[8][15-o-1+1]=i:this.modules[8][15-o-1]=i}this.modules[this.moduleCount-8][8]=!t},t.prototype.mapData=function(t,e){for(var r=-1,n=this.moduleCount-1,o=7,i=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var u=0;u<2;u++)if(null==this.modules[n][s-u]){var f=!1;i>>o&1)),a.getMask(e,n,s-u)&&(f=!f),this.modules[n][s-u]=f,-1==--o&&(i++,o=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}},t.createData=function(e,r,n){for(var o=f.getRSBlocks(e,r),i=new l,s=0;s8*c)throw new Error("code length overflow. ("+i.getLengthInBits()+">"+8*c+")");for(i.getLengthInBits()+4<=8*c&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*c||(i.put(t.PAD0,8),i.getLengthInBits()>=8*c));)i.put(t.PAD1,8);return t.createBytes(i,o)},t.createBytes=function(t,e){for(var r=0,n=0,o=0,i=new Array(e.length),s=new Array(e.length),f=0;f=0?d.get(g):0}}var y=0;for(h=0;h=0;)r^=t.G15<=0;)r^=t.G18<>>=1;return e},t.getPatternPosition=function(e){return t.PATTERN_POSITION_TABLE[e-1]},t.getMask=function(t,r,n){switch(t){case e.QRMaskPattern.PATTERN000:return(r+n)%2==0;case e.QRMaskPattern.PATTERN001:return r%2==0;case e.QRMaskPattern.PATTERN010:return n%3==0;case e.QRMaskPattern.PATTERN011:return(r+n)%3==0;case e.QRMaskPattern.PATTERN100:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case e.QRMaskPattern.PATTERN101:return r*n%2+r*n%3==0;case e.QRMaskPattern.PATTERN110:return(r*n%2+r*n%3)%2==0;case e.QRMaskPattern.PATTERN111:return(r*n%3+(r+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},t.getErrorCorrectPolynomial=function(t){for(var e=new u([1],0),r=0;r5&&(r+=3+i-5)}for(n=0;n=256;)e-=255;return t.EXP_TABLE[e]},t.EXP_TABLE=new Array(256),t.LOG_TABLE=new Array(256),t._constructor=function(){for(var e=0;e<8;e++)t.EXP_TABLE[e]=1<>>7-t%8&1)},t.prototype.put=function(t,e){for(var r=0;r>>e-r-1&1))},t.prototype.getLengthInBits=function(){return this.length},t.prototype.putBit=function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++},t}(),c=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]},526:(t,e)=>{"use strict";e.byteLength=function(t){var e=s(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,i=s(t),a=i[0],u=i[1],f=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,u)),l=0,c=u>0?a-4:a;for(r=0;r>16&255,f[l++]=e>>8&255,f[l++]=255&e;2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,f[l++]=255&e);1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,f[l++]=e>>8&255,f[l++]=255&e);return f},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,i=[],a=16383,s=0,f=n-o;sf?f:s+a));1===o?(e=t[n-1],i.push(r[e>>2]+r[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],i.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return i.join("")};for(var r=[],n=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)r[a]=i[a],n[i.charCodeAt(a)]=a;function s(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var o,i,a=[],s=e;s>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},287:(t,e,r)=>{"use strict";const n=r(526),o=r(251),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.hp=u,e.IS=50;const a=2147483647;function s(t){if(t>a)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return c(t)}return f(t,e,r)}function f(t,e,r){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|g(t,e);let n=s(r);const o=n.write(t,e);o!==r&&(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(K(t,Uint8Array)){const e=new Uint8Array(t);return p(e.buffer,e.byteOffset,e.byteLength)}return h(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(K(t,ArrayBuffer)||t&&K(t.buffer,ArrayBuffer))return p(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(K(t,SharedArrayBuffer)||t&&K(t.buffer,SharedArrayBuffer)))return p(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);const o=function(t){if(u.isBuffer(t)){const e=0|d(t.length),r=s(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return"number"!=typeof t.length||X(t.length)?s(0):h(t);if("Buffer"===t.type&&Array.isArray(t.data))return h(t.data)}(t);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function c(t){return l(t),s(t<0?0:0|d(t))}function h(t){const e=t.length<0?0:0|d(t.length),r=s(e);for(let n=0;n=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function g(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||K(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let o=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Y(t).length;default:if(o)return n?-1:q(t).length;e=(""+e).toLowerCase(),o=!0}}function y(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,r);case"utf8":case"utf-8":return L(this,e,r);case"ascii":return P(this,e,r);case"latin1":case"binary":return _(this,e,r);case"base64":return C(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),X(r=+r)&&(r=o?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,o);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,o){let i,a=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,r/=2}function f(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){let n=-1;for(i=r;is&&(r=s-u),i=r;i>=0;i--){let r=!0;for(let n=0;no&&(n=o):n=o;const i=e.length;let a;for(n>i/2&&(n=i/2),a=0;a>8,o=r%256,i.push(o),i.push(n);return i}(e,t.length-r),t,r,n)}function C(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function L(t,e,r){r=Math.min(t.length,r);const n=[];let o=e;for(;o239?4:e>223?3:e>191?2:1;if(o+a<=r){let r,n,s,u;switch(a){case 1:e<128&&(i=e);break;case 2:r=t[o+1],128==(192&r)&&(u=(31&e)<<6|63&r,u>127&&(i=u));break;case 3:r=t[o+1],n=t[o+2],128==(192&r)&&128==(192&n)&&(u=(15&e)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(i=u));break;case 4:r=t[o+1],n=t[o+2],s=t[o+3],128==(192&r)&&128==(192&n)&&128==(192&s)&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&s,u>65535&&u<1114112&&(i=u))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,n.push(i>>>10&1023|55296),i=56320|1023&i),n.push(i),o+=a}return function(t){const e=t.length;if(e<=R)return String.fromCharCode.apply(String,t);let r="",n=0;for(;nn.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(n,o)):Uint8Array.prototype.set.call(n,e,o);else{if(!u.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,o)}o+=e.length}return n},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;er&&(t+=" ... "),""},i&&(u.prototype[i]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,o){if(K(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),e<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&e>=r)return 0;if(n>=o)return-1;if(e>=r)return 1;if(this===t)return 0;let i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0);const s=Math.min(i,a),f=this.slice(n,o),l=t.slice(e,r);for(let t=0;t>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const o=this.length-e;if((void 0===r||r>o)&&(r=o),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let i=!1;for(;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return E(this,t,e,r);case"ascii":case"latin1":case"binary":return B(this,t,e,r);case"base64":return x(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const R=4096;function P(t,e,r){let n="";r=Math.min(t.length,r);for(let o=e;on)&&(r=n);let o="";for(let n=e;nr)throw new RangeError("Trying to access beyond buffer length")}function S(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function O(t,e,r,n,o){z(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i,i>>=8,t[r++]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,a>>=8,t[r++]=a,r}function M(t,e,r,n,o){z(e,n,o,t,r,7);let i=Number(e&BigInt(4294967295));t[r+7]=i,i>>=8,t[r+6]=i,i>>=8,t[r+5]=i,i>>=8,t[r+4]=i;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=a,a>>=8,t[r+2]=a,a>>=8,t[r+1]=a,a>>=8,t[r]=a,r+8}function D(t,e,r,n,o,i){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function U(t,e,r,n,i){return e=+e,r>>>=0,i||D(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function N(t,e,r,n,i){return e=+e,r>>>=0,i||D(t,0,r,8),o.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t],o=1,i=0;for(;++i>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t+--e],o=1;for(;e>0&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||T(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=W((function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||$(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,o=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(o)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||$(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],o=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<>>=0,e>>>=0,r||T(t,e,this.length);let n=this[t],o=1,i=0;for(;++i=o&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||T(t,e,this.length);let n=e,o=1,i=this[t+--n];for(;n>0&&(o*=256);)i+=this[t+--n]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return t>>>=0,e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||T(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||T(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=W((function(t){G(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||$(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||$(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<>>=0,e||T(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||T(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||T(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||T(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){if(t=+t,e>>>=0,r>>>=0,!n){S(this,t,e,r,Math.pow(2,8*r)-1,0)}let o=1,i=0;for(this[e]=255&t;++i>>=0,r>>>=0,!n){S(this,t,e,r,Math.pow(2,8*r)-1,0)}let o=r-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=W((function(t,e=0){return O(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=W((function(t,e=0){return M(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);S(this,t,e,r,n-1,-n)}let o=0,i=1,a=0;for(this[e]=255&t;++o>>=0,!n){const n=Math.pow(2,8*r-1);S(this,t,e,r,n-1,-n)}let o=r-1,i=1,a=0;for(this[e+o]=255&t;--o>=0&&(i*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/i|0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||S(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=W((function(t,e=0){return O(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=W((function(t,e=0){return M(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(t,e,r){return U(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return U(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return N(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return N(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function z(t,e,r,n,o,i){if(t>r||t3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(i+1)}${n}`:`>= -(2${n} ** ${8*(i+1)-1}${n}) and < 2 ** ${8*(i+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new j.ERR_OUT_OF_RANGE("value",o,t)}!function(t,e,r){G(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||$(e,t.length-(r+1))}(n,o,i)}function G(t,e){if("number"!=typeof t)throw new j.ERR_INVALID_ARG_TYPE(e,"number",t)}function $(t,e,r){if(Math.floor(t)!==t)throw G(t,r),new j.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new j.ERR_BUFFER_OUT_OF_BOUNDS;throw new j.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}F("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),F("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),F("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,o=r;return Number.isInteger(r)&&Math.abs(r)>2**32?o=Q(String(r)):"bigint"==typeof r&&(o=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(o=Q(o)),o+="n"),n+=` It must be ${e}. Received ${o}`,n}),RangeError);const H=/[^+/0-9A-Za-z-_]/g;function q(t,e){let r;e=e||1/0;const n=t.length;let o=null;const i=[];for(let a=0;a55295&&r<57344){if(!o){if(r>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(e-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((e-=1)<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function Y(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(H,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,r,n){let o;for(o=0;o=e.length||o>=t.length);++o)e[o+r]=t[o];return o}function K(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}const J=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let o=0;o<16;++o)e[n+o]=t[r]+t[o]}return e}();function W(t){return"undefined"==typeof BigInt?Z:t}function Z(){throw new Error("BigInt not supported")}},793:(t,e,r)=>{const n=r(126);e.parseFont=n,e.createCanvas=function(t,e){return Object.assign(document.createElement("canvas"),{width:t,height:e})},e.createImageData=function(t,e,r){switch(arguments.length){case 0:return new ImageData;case 1:return new ImageData(t);case 2:return new ImageData(t,e);default:return new ImageData(t,e,r)}},e.loadImage=function(t,e){return new Promise((function(r,n){const o=Object.assign(document.createElement("img"),e);function i(){o.onload=null,o.onerror=null}o.onload=function(){i(),r(o)},o.onerror=function(){i(),n(new Error('Failed to load the image "'+t+'"'))},o.src=t}))}},126:t=>{"use strict";const e="'([^']+)'|\"([^\"]+)\"|[\\w\\s-]+",r=new RegExp("(bold|bolder|lighter|[1-9]00) +","i"),n=new RegExp("(italic|oblique) +","i"),o=new RegExp("(small-caps) +","i"),i=new RegExp("(ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded) +","i"),a=new RegExp(`([\\d\\.]+)(px|pt|pc|in|cm|mm|%|em|ex|ch|rem|q) *((?:${e})( *, *(?:${e}))*)`),s={};t.exports=t=>{if(s[t])return s[t];const e=a.exec(t);if(!e)return;const u={weight:"normal",style:"normal",stretch:"normal",variant:"normal",size:parseFloat(e[1]),unit:e[2],family:e[3].replace(/["']/g,"").replace(/ *, */g,",")};let f,l,c,h;const p=t.substring(0,e.index);switch((f=r.exec(p))&&(u.weight=f[1]),(l=n.exec(p))&&(u.style=l[1]),(c=o.exec(p))&&(u.variant=c[1]),(h=i.exec(p))&&(u.stretch=h[1]),u.unit){case"pt":u.size/=.75;break;case"pc":u.size*=16;break;case"in":u.size*=96;break;case"cm":u.size*=96/2.54;break;case"mm":u.size*=96/25.4;break;case"%":break;case"em":case"rem":u.size*=16/.75;break;case"q":u.size*=96/25.4/4}return s[t]=u}},251:(t,e)=>{e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<>1,l=-7,c=r?o-1:0,h=r?-1:1,p=t[e+c];for(c+=h,i=p&(1<<-l)-1,p>>=-l,l+=s;l>0;i=256*i+t[e+c],c+=h,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+t[e+c],c+=h,l-=8);if(0===i)i=1-f;else{if(i===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),i-=f}return(p?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,u,f=8*i-o-1,l=(1<>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:i-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+c>=1?h/u:h*Math.pow(2,1-c))*u>=2&&(a++,u/=2),a+c>=l?(s=0,a=l):a+c>=1?(s=(e*u-1)*Math.pow(2,o),a+=c):(s=e*Math.pow(2,c-1)*Math.pow(2,o),a=0));o>=8;t[r+p]=255&s,p+=d,s/=256,o-=8);for(a=a<0;t[r+p]=255&a,p+=d,a/=256,f-=8);t[r+p-d]|=128*g}},208:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.loop=e.conditional=e.parse=void 0;e.parse=function t(e,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;if(Array.isArray(r))r.forEach((function(r){return t(e,r,n,o)}));else if("function"==typeof r)r(e,n,o,t);else{var i=Object.keys(r)[0];Array.isArray(r[i])?(o[i]={},t(e,r[i],n,o[i])):o[i]=r[i](e,n,o,t)}return n};e.conditional=function(t,e){return function(r,n,o,i){e(r,n,o)&&i(r,t,n,o)}};e.loop=function(t,e){return function(r,n,o,i){for(var a=[],s=r.pos;e(r,n,o);){var u={};if(i(r,t,n,u),r.pos===s)break;s=r.pos,a.push(u)}return a}}},515:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readBits=e.readArray=e.readUnsigned=e.readString=e.peekBytes=e.readBytes=e.peekByte=e.readByte=e.buildStream=void 0;e.buildStream=function(t){return{data:t,pos:0}};var r=function(){return function(t){return t.data[t.pos++]}};e.readByte=r;e.peekByte=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(e){return e.data[e.pos+t]}};var n=function(t){return function(e){return e.data.subarray(e.pos,e.pos+=t)}};e.readBytes=n;e.peekBytes=function(t){return function(e){return e.data.subarray(e.pos,e.pos+t)}};e.readString=function(t){return function(e){return Array.from(n(t)(e)).map((function(t){return String.fromCharCode(t)})).join("")}};e.readUnsigned=function(t){return function(e){var r=n(2)(e);return t?(r[1]<<8)+r[0]:(r[0]<<8)+r[1]}};e.readArray=function(t,e){return function(r,o,i){for(var a="function"==typeof e?e(r,o,i):e,s=n(t),u=new Array(a),f=0;f{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(208),o=r(515),i={blocks:function(t){for(var e=[],r=t.data.length,n=0,i=(0,o.readByte)()(t);0!==i&&i;i=(0,o.readByte)()(t)){if(t.pos+i>=r){var a=r-t.pos;e.push((0,o.readBytes)(a)(t)),n+=a;break}e.push((0,o.readBytes)(i)(t)),n+=i}for(var s=new Uint8Array(n),u=0,f=0;f{"use strict";e.A=(t,e)=>{const r=t.__vccOpts||t;for(const[t,n]of e)r[t]=n;return r}}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}(()=>{"use strict";const t=Vue;var e={ref:"qrContainer",class:"qr-item"};var n=r(216);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(){i=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",f=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),s=new T(n||[]);return a(i,"_invoke",{value:P(t,r,s)}),i}function p(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var d="suspendedStart",g="suspendedYield",y="executing",m="completed",v={};function w(){}function b(){}function E(){}var B={};c(B,u,(function(){return this}));var x=Object.getPrototypeOf,A=x&&x(x(S([])));A&&A!==r&&n.call(A,u)&&(B=A);var C=E.prototype=w.prototype=Object.create(B);function L(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function R(t,e){function r(i,a,s,u){var f=p(t[i],t,a);if("throw"!==f.type){var l=f.arg,c=l.value;return c&&"object"==o(c)&&n.call(c,"__await")?e.resolve(c.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(c).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,u)}))}u(f.arg)}var i;a(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function P(e,r,n){var o=d;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=_(s,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var f=p(e,r,n);if("normal"===f.type){if(o=n.done?m:g,f.arg===v)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o=m,n.method="throw",n.arg=f.arg)}}}function _(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=p(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function S(e){if(e||""===e){var r=e[u];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function r(){for(;++i=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(u&&f){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:S(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function a(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}const s={props:["resourceName","field"],mounted:function(){this.generateQRCode()},methods:{generateQRCode:function(){var t,e=this;return(t=i().mark((function t(){var r,o;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=new n.AwesomeQR({text:e.field.value,size:e.field.indexSize,margin:e.field.indexSize>250?e.field.margin:1,backgroundImage:e.field.background||null,logoImage:e.field.logo||null,logoMargin:e.field.indexSize>250?10:0}),t.next=3,r.draw();case 3:o=t.sent,e.$refs.qrContainer.innerHTML='').concat(e.field.value,'');case 5:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function s(t){a(i,n,o,s,u,"next",t)}function u(t){a(i,n,o,s,u,"throw",t)}s(void 0)}))})()}}};var u=r(262);const f=(0,u.A)(s,[["render",function(r,n,o,i,a,s){return(0,t.openBlock)(),(0,t.createElementBlock)("span",null,[(0,t.createElementVNode)("div",e,null,512)])}]]);var l={ref:"qrContainer",class:"qr-item"},c={class:"flex items-center text-sm mt-3"};function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function p(){p=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof w?e:w,a=Object.create(i.prototype),s=new T(n||[]);return o(a,"_invoke",{value:P(t,r,s)}),a}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",g="suspendedYield",y="executing",m="completed",v={};function w(){}function b(){}function E(){}var B={};f(B,a,(function(){return this}));var x=Object.getPrototypeOf,A=x&&x(x(S([])));A&&A!==r&&n.call(A,a)&&(B=A);var C=E.prototype=w.prototype=Object.create(B);function L(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function R(t,e){function r(o,i,a,s){var u=c(t[o],t,i);if("throw"!==u.type){var f=u.arg,l=f.value;return l&&"object"==h(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(l).then((function(t){f.value=t,a(f)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function P(e,r,n){var o=d;return function(i,a){if(o===y)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var u=_(s,n);if(u){if(u===v)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var f=c(e,r,n);if("normal"===f.type){if(o=n.done?m:g,f.arg===v)continue;return{value:f.arg,done:n.done}}"throw"===f.type&&(o=m,n.method="throw",n.arg=f.arg)}}}function _(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=c(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function I(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(I,this),this.reset(!0)}function S(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),f=n.call(a,"finallyLoc");if(u&&f){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:S(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function d(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return void r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}function g(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){d(i,n,o,a,s,"next",t)}function s(t){d(i,n,o,a,s,"throw",t)}a(void 0)}))}}const y={props:["index","resource","resourceName","resourceId","field"],mounted:function(){this.generateQRCode()},methods:{generateQRCode:function(){var t=this;return g(p().mark((function e(){var r,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new n.AwesomeQR({text:t.field.value,size:t.field.detailSize,margin:t.field.detailSize>250?t.field.margin:1,backgroundImage:t.field.background||null,logoImage:t.field.logo||null,logoMargin:t.field.detailSize>250?10:0}),e.next=3,r.draw();case 3:o=e.sent,t.$refs.qrContainer.innerHTML='').concat(t.field.value,'');case 5:case"end":return e.stop()}}),e)})))()},downloadQrCode:function(){var t=this;return g(p().mark((function e(){var r,o,i;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new n.AwesomeQR({text:t.field.value,size:t.field.detailSize||400,margin:t.field.margin||0,backgroundImage:t.field.background||null,logoImage:t.field.logo||null}),e.next=3,r.draw();case 3:o=e.sent,(i=document.createElement("a")).href=o,i.download="".concat(t.field.value||"qr_code",".png"),i.click();case 8:case"end":return e.stop()}}),e)})))()}}},m=(0,u.A)(y,[["render",function(e,r,n,o,i,a){var s=(0,t.resolveComponent)("PanelItem");return(0,t.openBlock)(),(0,t.createBlock)(s,{index:n.index,field:n.field},{value:(0,t.withCtx)((function(){return[(0,t.createElementVNode)("div",l,null,512),(0,t.createElementVNode)("p",c,[(0,t.createElementVNode)("a",{onClick:r[0]||(r[0]=function(){return a.downloadQrCode&&a.downloadQrCode.apply(a,arguments)}),dusk:"qr-download-link",tabindex:"0",class:"cursor-pointer text-gray-500 inline-flex items-center"},r[1]||(r[1]=[(0,t.createElementVNode)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",width:"16",height:"16",class:"inline-block mr-2",role:"presentation"},[(0,t.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"})],-1),(0,t.createElementVNode)("span",{class:"class mt-1"},"Download",-1)]))])]})),_:1},8,["index","field"])}]]);Nova.booting((function(t,e){t.component("index-qrcode",f),t.component("detail-qrcode",m)}))})()})(); \ No newline at end of file diff --git a/dist/js/field.js.LICENSE.txt b/dist/js/field.js.LICENSE.txt index 671b503..2684fcb 100644 --- a/dist/js/field.js.LICENSE.txt +++ b/dist/js/field.js.LICENSE.txt @@ -1,8 +1,10 @@ /*! * The buffer module from node.js, for the browser. * - * @author Feross Aboukhadijeh + * @author Feross Aboukhadijeh * @license MIT */ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ + +/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */