1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[817],{2717:(t,e)=>{"use strict";e.Y=function(t,e){return(function(t){return t.split(",").map(function(t){var e=(t=t.trim()).match(r),o=e[1],s=e[2],a=e[3]||"",h={};return h.inverse=!!o&&"not"===o.toLowerCase(),h.type=s?s.toLowerCase():"all",h.expressions=(a=a.match(/\([^\)]+\)/g)||[]).map(function(t){var e=t.match(i),r=e[1].toLowerCase().match(n);return{modifier:r[1],feature:r[2],value:e[2]}}),h})})(t).some(function(t){var r=t.inverse,i="all"===t.type||e.type===t.type;if(i&&r||!(i||r))return!1;var n=t.expressions.every(function(t){var r=t.feature,i=t.modifier,n=t.value,o=e[r];if(!o)return!1;switch(r){case"orientation":case"scan":return o.toLowerCase()===n.toLowerCase();case"width":case"height":case"device-width":case"device-height":n=u(n),o=u(o);break;case"resolution":n=h(n),o=h(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":n=a(n),o=a(o);break;case"grid":case"color":case"color-index":case"monochrome":n=parseInt(n,10)||1,o=parseInt(o,10)||0}switch(i){case"min":return o>=n;case"max":return o<=n;default:return o===n}});return n&&!r||!n&&r})};var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,i=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,n=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,s=/(dpi|dpcm|dppx)?$/;function a(t){var e,r=Number(t);return r||(r=(e=t.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/e[2]),r}function h(t){var e=parseFloat(t);switch(String(t).match(s)[1]){case"dpcm":return e/2.54;case"dppx":return 96*e;default:return e}}function u(t){var e=parseFloat(t);switch(String(t).match(o)[1]){case"em":case"rem":return 16*e;case"cm":return 96*e/2.54;case"mm":return 96*e/2.54/10;case"in":return 96*e;case"pt":return 72*e;case"pc":return 72*e/12;default:return e}}},2758:(t,e,r)=>{t.exports=r(9298)()},2827:(t,e,r)=>{"use strict";r.d(e,{Ub:()=>S});var i=r(2115),n=r(7142),o=r.n(n),s=/[A-Z]/g,a=/^ms-/,h={};function u(t){return"-"+t.toLowerCase()}let d=function(t){if(h.hasOwnProperty(t))return h[t];var e=t.replace(s,u);return h[t]=a.test(e)?"-"+e:e};var l=r(2758),c=r.n(l);let g=c().oneOfType([c().string,c().number]),f={all:c().bool,grid:c().bool,aural:c().bool,braille:c().bool,handheld:c().bool,print:c().bool,projection:c().bool,screen:c().bool,tty:c().bool,tv:c().bool,embossed:c().bool},{type:p,...w}={orientation:c().oneOf(["portrait","landscape"]),scan:c().oneOf(["progressive","interlace"]),aspectRatio:c().string,deviceAspectRatio:c().string,height:g,deviceHeight:g,width:g,deviceWidth:g,color:c().bool,colorIndex:c().bool,monochrome:c().bool,resolution:g,type:Object.keys(f)},m={minAspectRatio:c().string,maxAspectRatio:c().string,minDeviceAspectRatio:c().string,maxDeviceAspectRatio:c().string,minHeight:g,maxHeight:g,minDeviceHeight:g,maxDeviceHeight:g,minWidth:g,maxWidth:g,minDeviceWidth:g,maxDeviceWidth:g,minColor:c().number,maxColor:c().number,minColorIndex:c().number,maxColorIndex:c().number,minMonochrome:c().number,maxMonochrome:c().number,minResolution:g,maxResolution:g,...w};var _={all:{...f,...m}};let v=(0,i.createContext)(void 0),y=t=>{if(t)return Object.keys(t).reduce((e,r)=>(e[d(r)]=t[r],e),{})},b=()=>{let t=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{t.current=!0},[]),t.current},S=(t,e,r)=>{let n=(t=>{let e=(0,i.useContext)(v),r=()=>y(t)||y(e),[n,o]=(0,i.useState)(r);return(0,i.useEffect)(()=>{let t=r();!function(t,e){if(t===e)return!0;if(!t||!e)return!1;let r=Object.keys(t),i=Object.keys(e),n=r.length;if(i.length!==n)return!1;for(let i=0;i<n;i++){let n=r[i];if(t[n]!==e[n]||!Object.prototype.hasOwnProperty.call(e,n))return!1}return!0}(n,t)&&o(t)},[t,e]),n})(e),s=(t=>{let e=()=>(t=>t.query||(t=>{let e=[];return Object.keys(_.all).forEach(r=>{let i=t[r];null!=i&&e.push(((t,e)=>{let r=d(t);if("number"==typeof e&&(e=`${e}px`),!0===e)return r;if(!1===e)return`not ${r}`;return`(${r}: ${e})`})(r,i))}),e.join(" and ")})(t))(t),[r,n]=(0,i.useState)(e);return(0,i.useEffect)(()=>{let t=e();r!==t&&n(t)},[t]),r})(t);if(!s)throw Error("Invalid or missing MediaQuery!");let a=((t,e)=>{let r=()=>o()(t,e||{},!!e),[n,s]=(0,i.useState)(r),a=b();return(0,i.useEffect)(()=>
1{if(a){let t=r();return s(t),()=>{t&&t.dispose()}}},[t,e]),n})(s,n),h=(t=>{let[e,r]=(0,i.useState)(t.matches);return(0,i.useEffect)(()=>{let e=t=>{r(t.matches)};return t.addListener(e),r(t.matches),()=>{t.removeListener(e)}},[t]),e})(a),u=b();return(0,i.useEffect)(()=>{u&&r&&r(h)},[h]),(0,i.useEffect)(()=>()=>{a&&a.dispose()},[]),h}},3341:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5688:(t,e,r)=>{"use strict";var i=r(5704);r(6340);var n=r(2115),o=function(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}(n),s=void 0!==i&&i.env&&!0,a=function(t){return"[object String]"===Object.prototype.toString.call(t)},h=function(){function t(t){var e=void 0===t?{}:t,r=e.name,i=void 0===r?"stylesheet":r,n=e.optimizeForSpeed,o=void 0===n?s:n;u(a(i),"`name` must be a string"),this._name=i,this._deletedRulePlaceholder="#"+i+"-deleted-rule____{}",u("boolean"==typeof o,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=o,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var h="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=h?h.getAttribute("content"):null}var e,r=t.prototype;return r.setOptimizeForSpeed=function(t){u("boolean"==typeof t,"`setOptimizeForSpeed` accepts a boolean"),u(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=t,this.inject()},r.isOptimizeForSpeed=function(){return this._optimizeForSpeed},r.inject=function(){var t=this;if(u(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(e,r){return"number"==typeof r?t._serverSheet.cssRules[r]={cssText:e}:t._serverSheet.cssRules.push({cssText:e}),r},deleteRule:function(e){t._serverSheet.cssRules[e]=null}}},r.getSheetForTag=function(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]},r.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},r.insertRule=function(t,e){if(u(a(t),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof e&&(e=this._serverSheet.cssRules.length),this._serverSheet.insertRule(t,e),this._rulesCount++;if(this._optimizeForSpeed){var r=this.getSheet();"number"!=typeof e&&(e=r.cssRules.length);try{r.insertRule(t,e)}catch(e){return s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var i=this._tags[e];this._tags.push(this.makeStyleTag(this._name,t,i))}return this._rulesCount++},r.replaceRule=function(t,e){if(this._optimizeForSpeed||"undefined"==typeof window){var r="undefined"!=typeof window?this.getSheet():this._serverSheet;if(e.trim()||(e=this._deletedRulePlaceholder),!r.cssRules[t])return t;r.deleteRule(t);try{r.insertRule(e,t)}catch(i){s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),r.insertRule(this._deletedRulePlaceholder,t)}}else{var i=this._tags[t];u(i,"old rule at index `"+t+"` not found"),i.textContent=e}return t},r.deleteRule=function(t){if("undefined"==typeof window)return void this._serverSheet.deleteRule(t);if(this._optimizeForSpeed)this.replaceRule(t,"");else{var e=this._tags[t];u(e,"rule at index `"+t+"` not found"),e.parentNode.removeChild(e),this._tags[t]=null}},r.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
1h(function(t){return t&&t.parentNode.removeChild(t)}),this._tags=[]):this._serverSheet.cssRules=[]},r.cssRules=function(){var t=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(e,r){return r?e=e.concat(Array.prototype.map.call(t.getSheetForTag(r).cssRules,function(e){return e.cssText===t._deletedRulePlaceholder?null:e})):e.push(null),e},[])},r.makeStyleTag=function(t,e,r){e&&u(a(e),"makeStyleTag accepts only strings as second parameter");var i=document.createElement("style");this._nonce&&i.setAttribute("nonce",this._nonce),i.type="text/css",i.setAttribute("data-"+t,""),e&&i.appendChild(document.createTextNode(e));var n=document.head||document.getElementsByTagName("head")[0];return r?n.insertBefore(i,r):n.appendChild(i),i},e=[{key:"length",get:function(){return this._rulesCount}}],function(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}(t.prototype,e),t}();function u(t,e){if(!t)throw Error("StyleSheet: "+e+".")}var d=function(t){for(var e=5381,r=t.length;r;)e=33*e^t.charCodeAt(--r);return e>>>0},l={};function c(t,e){if(!e)return"jsx-"+t;var r=String(e),i=t+r;return l[i]||(l[i]="jsx-"+d(t+"-"+r)),l[i]}function g(t,e){"undefined"==typeof window&&(e=e.replace(/\/style/gi,"\\/style"));var r=t+e;return l[r]||(l[r]=e.replace(/__jsx-style-dynamic-selector/g,t)),l[r]}var f=function(){function t(t){var e=void 0===t?{}:t,r=e.styleSheet,i=void 0===r?null:r,n=e.optimizeForSpeed,o=void 0!==n&&n;this._sheet=i||new h({name:"styled-jsx",optimizeForSpeed:o}),this._sheet.inject(),i&&"boolean"==typeof o&&(this._sheet.setOptimizeForSpeed(o),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var e=t.prototype;return e.add=function(t){var e=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(t.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(t,e){return t[e]=0,t},{}));var r=this.getIdAndRules(t),i=r.styleId,n=r.rules;if(i in this._instancesCounts){this._instancesCounts[i]+=1;return}var o=n.map(function(t){return e._sheet.insertRule(t)}).filter(function(t){return -1!==t});this._indices[i]=o,this._instancesCounts[i]=1},e.remove=function(t){var e=this,r=this.getIdAndRules(t).styleId;if(function(t,e){if(!t)throw Error("StyleSheetRegistry: "+e+".")}(r in this._instancesCounts,"styleId: `"+r+"` not found"),this._instancesCounts[r]-=1,this._instancesCounts[r]<1){var i=this._fromServer&&this._fromServer[r];i?(i.parentNode.removeChild(i),delete this._fromServer[r]):(this._indices[r].forEach(function(t){return e._sheet.deleteRule(t)}),delete this._indices[r]),delete this._instancesCounts[r]}},e.update=function(t,e){this.add(e),this.remove(t)},e.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},e.cssRules=function(){var t=this,e=this._fromServer?Object.keys(this._fromServer).map(function(e){return[e,t._fromServer[e]]}):[],r=this._sheet.cssRules();return e.concat(Object.keys(this._indices).map(function(e){return[e,t._indices[e].map(function(t){return r[t].cssText}).join(t._optimizeForSpeed?"":"\n")]}).filter(function(t){return!!t[1]}))},e.styles=function(t){var e,r;return e=this.cssRules(),void 0===(r=t)&&(r={}),e.map(function(t){var e=t[0],i=t[1];return o.default.createElement("style",{id:"__"+e,key:"__"+e,nonce:r.nonce?r.nonce:void 0,dangerouslySetInnerHTML:{__html:i}})})},e.getIdAndRules=function(t){var e=t.children,r=t.dynamic,i=t.id;if(r){var n=c(i,r);return{styleId:n,rules:Array.isArray(e)?e.map(function(t){return g(n,t)}):[g(n,e)]}}return{styleId:c(i),rules:Array.isArray(e)?e:[e]}},e.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(t,e){return t[e.id.slice(2)]=e,t},{})},t}(),p=n.createContext(null);p.displayName="StyleSheetContext";var w=o.default.useInsertionEffect||o.default.useLayoutEffect,m="undefined"!=typeof window?new f:void 0;function _(t){var e=m||n.useContext(p);return e&&("undefined"==typeof window?e.add(t):w(function(){return e.add(t),function(){e.remove(t)}},[t.id,String(t.dynamic)])),null}_.dynamic=function(t){return t.map(function(t){return c(t[0],t[1])}).join(" ")},e.style=_},6340:()=>{},6429:(t,e,r)=>{"use strict";r.d(e,{Wx:()=>u});var i=r(2115),n=Object.defineProperty,o=new Map,s=new WeakMap,a=0,h=void 0;function u(){var t;let{threshold:e,delay:r,trackVisibility:n,rootMargin:u,root:d,triggerOnce:l,skip:c,initialInView:g,fallbackInView:f,onChange:p}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[w,m]=i.useState(null),_=i.useRef(p),[v,y]=i.useState({inView:!!g,entry:void 0});_.current=p,i.useEffect(()=>{let t;if(!c&&w)return t=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h;if(void 0===window.IntersectionObserver&&void 0!==i){let n=t.getBoundingClientRect();return e(i,{isIntersecting:i,target:t,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:n,intersectionRect:n,rootBounds:n}
1),()=>{}}let{id:n,observer:u,elements:d}=function(t){let e=Object.keys(t).sort().filter(e=>void 0!==t[e]).map(e=>{var r;return"".concat(e,"_").concat("root"===e?(r=t.root)?(s.has(r)||(a+=1,s.set(r,a.toString())),s.get(r)):"0":t[e])}).toString(),r=o.get(e);if(!r){let i,n=new Map,s=new IntersectionObserver(e=>{e.forEach(e=>{var r;let o=e.isIntersecting&&i.some(t=>e.intersectionRatio>=t);t.trackVisibility&&void 0===e.isVisible&&(e.isVisible=o),null==(r=n.get(e.target))||r.forEach(t=>{t(o,e)})})},t);i=s.thresholds||(Array.isArray(t.threshold)?t.threshold:[t.threshold||0]),r={id:e,observer:s,elements:n},o.set(e,r)}return r}(r),l=d.get(t)||[];return d.has(t)||d.set(t,l),l.push(e),u.observe(t),function(){l.splice(l.indexOf(e),1),0===l.length&&(d.delete(t),u.unobserve(t)),0===d.size&&(u.disconnect(),o.delete(n))}}(w,(e,r)=>{y({inView:e,entry:r}),_.current&&_.current(e,r),r.isIntersecting&&l&&t&&(t(),t=void 0)},{root:d,rootMargin:u,threshold:e,trackVisibility:n,delay:r},f),()=>{t&&t()}},[Array.isArray(e)?e.toString():e,w,d,u,l,c,n,f,r]);let b=null==(t=v.entry)?void 0:t.target,S=i.useRef(void 0);w||!b||l||c||S.current===b||(S.current=b,y({inView:!!g,entry:void 0}));let x=[m,v.inView,v.entry];return x.ref=x[0],x.inView=x[1],x.entry=x[2],x}i.Component},7142:(t,e,r)=>{"use strict";var i=r(2717).Y,n="undefined"!=typeof window?window.matchMedia:null;function o(t,e,r){var o,s=this;function a(t){s.matches=t.matches,s.media=t.media}n&&!r&&(o=n.call(window,t)),o?(this.matches=o.matches,this.media=o.media,o.addListener(a)):(this.matches=i(t,e),this.media=t),this.addListener=function(t){o&&o.addListener(t)},this.removeListener=function(t){o&&o.removeListener(t)},this.dispose=function(){o&&o.removeListener(a)}}t.exports=function(t,e,r){return new o(t,e,r)}},8661:(t,e,r)=>{"use strict";t.exports=r(5688).style},9298:(t,e,r)=>{"use strict";var i=r(3341);function n(){}function o(){}
vendor: 5,175 bytes, line 1
1o.resetWarningCache=n,t.exports=function(){function t(t,e,r,n,o,s){if(s!==i){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:o,resetWarningCache:n};return r.PropTypes=r,r}},9851:function(t,e,r){var i=r(5376).Buffer;t.exports=(()=>{var t={873:(t,e)=>{var r,i,n=function(){var t,e,r=function(t,e){var r=t,i=s[e],n=null,o=0,h=null,w=[],m={},v=function(t,e){n=function(t){for(var e=Array(t),r=0;r<t;r+=1){e[r]=Array(t);for(var i=0;i<t;i+=1)e[r][i]=null}return e}(o=4*r+17),y(0,0),y(o-7,0),y(0,o-7),S(),b(),C(t,e),r>=7&&x(t),null==h&&(h=A(r,i,w)),O(h,e)},y=function(t,e){for(var r=-1;r<=7;r+=1)if(!(t+r<=-1||o<=t+r))for(var i=-1;i<=7;i+=1)e+i<=-1||o<=e+i||(n[t+r][e+i]=0<=r&&r<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=i&&i<=4)},b=function(){for(var t=8;t<o-8;t+=1)null==n[t][6]&&(n[t][6]=t%2==0);for(var e=8;e<o-8;e+=1)null==n[6][e]&&(n[6][e]=e%2==0)},S=function(){for(var t=a.getPatternPosition(r),e=0;e<t.length;e+=1)for(var i=0;i<t.length;i+=1){var o=t[e],s=t[i];if(null==n[o][s])for(var h=-2;h<=2;h+=1)for(var u=-2;u<=2;u+=1)n[o+h][s+u]=-2==h||2==h||-2==u||2==u||0==h&&0==u}},x=function(t){for(var e=a.getBCHTypeNumber(r),i=0;i<18;i+=1){var s=!t&&1==(e>>i&1);n[Math.floor(i/3)][i%3+o-8-3]=s}for(i=0;i<18;i+=1)s=!t&&1==(e>>i&1),n[i%3+o-8-3][Math.floor(i/3)]=s},C=function(t,e){for(var r=i<<3|e,s=a.getBCHTypeInfo(r),h=0;h<15;h+=1){var u=!t&&1==(s>>h&1);h<6?n[h][8]=u:h<8?n[h+1][8]=u:n[o-15+h][8]=u}for(h=0;h<15;h+=1)u=!t&&1==(s>>h&1),h<8?n[8][o-h-1]=u:h<9?n[8][15-h-1+1]=u:n[8][15-h-1]=u;n[o-8][8]=!t},O=function(t,e){for(var r=-1,i=o-1,s=7,h=0,u=a.getMaskFunction(e),d=o-1;d>0;d-=2)for(6==d&&(d-=1);;){for(var l=0;l<2;l+=1)if(null==n[i][d-l]){var c=!1;h<t.length&&(c=1==(t[h]>>>s&1)),u(i,d-l)&&(c=!c),n[i][d-l]=c,-1==(s-=1)&&(h+=1,s=7)}if((i+=r)<0||o<=i){i-=r,r=-r;break}}},A=function(t,e,r){for(var i=d.getRSBlocks(t,e),n=l(),o=0;o<r.length;o+=1){var s=r[o];n.put(s.getMode(),4),n.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(n)}var h=0;for(o=0;o<i.length;o+=1)h+=i[o].dataCount;if(n.getLengthInBits()>8*h)throw"code length overflow. ("+n.getLengthInBits()+">"+8*h+")";for(n.getLengthInBits()+4<=8*h&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=8*h||(n.put(236,8),n.getLengthInBits()>=8*h));)n.put(17,8);return function(t,e){for(var r=0,i=0,n=0,o=Array(e.length),s=Array(e.length),h=0;h<e.length;h+=1){var d=e[h].dataCount,l=e[h].totalCount-d;i=Math.max(i,d),n=Math.max(n,l),o[h]=Array(d);for(var c=0;c<o[h].length;c+=1)o[h][c]=255&t.getBuffer()[c+r];r+=d;var g=a.getErrorCorrectPolynomial(l),f=u(o[h],g.getLength()-1).mod(g);for(s[h]=Array(g.getLength()-1),c=0;c<s[h].length;c+=1){var p=c+f.getLength()-s[h].length;s[h][c]=p>=0?f.getAt(p):0}}var w=0;for(c=0;c<e.length;c+=1)w+=e[c].totalCount;var m=Array(w),_=0;for(c=0;c<i;c+=1)for(h=0;h<e.length;h+=1)c<o[h].length&&(m[_]=o[h][c],_+=1);for(c=0;c<n;c+=1)for(h=0;h<e.length;h+=1)c<s[h].length&&(m[_]=s[h][c],_+=1);return m}(n,i)};m.addData=function(t,e){var r=null;switch(e=e||"Byte"){case"Numeric":r=c(t);break;case"Alphanumeric":r=g(t);break;case"Byte":r=f(t);break;case"Kanji":r=p(t);break;default:throw"mode:"+e}w.push(r),h=null},m.isDark=function(t,e){if(t<0||o<=t||e<0||o<=e)throw t+","+e;return n[t][e]},m.getModuleCount=function(){return o},m.make=function(){if(r<1){for(var t=1;t<40;t++){for(var e=d.getRSBlocks(t,i),n=l(),o=0;o<w.length;o++){var s=w[o];n.put(s.getMode(),4),n.put(s.getLength(),a.getLengthInBits(s.getMode(),t)),s.write(n)}var h=0;for(o=0;o<e.length;o++)h+=e[o].dataCount;if(n.getLengthInBits()<=8*h)break}r=t}v(!1,function(){for(var t=0,e=0,r=0;r<8;r+=1){v(!0,r);var i=a.getLostPoint(m);(0==r||t>i)&&(t=i,e=r)}return e}())},m.createTableTag=function(t,e){t=t||2;var r="";r+='<table style=" border-width: 0px; border-style: none; border-collapse: collapse; padding: 0px; margin: '+(e=void 0===e?4*t:e)+'px;"><tbody>';for(var i=0;i<m.getModuleCount();i+=1){r+="<tr>";for(var n=0;n<m.getModuleCount();n+=1)r+='<td style=" border-width: 0px; border-style: none; border-collapse: collapse; padding: 0px; margin: 0px; width: '+t+"px; height: "+t+"px; background-color: "+(m.isDark(i,n)?"#000000":"#ffffff")+';"/>';r+="</tr>"}return(r+="</tbody>")+"</table>"},m.createSvgTag=function(t,e,r,i){var n={};"object"==typeof arguments[0]&&(t=(n=arguments[0]).cellSize,e=n.margin,r=n.alt,i=n.title),t=t||2,e=void 0===e?4*t:e,(r="string"==typeof r?{text:r}:r||{}).text=r.text||null,r.id=r.text?r.id||"qrcode-description":null,(i="string"==typeof i?{text:i}:i||{}).text=i.text||null,i.id=i.text?i.id||"qrcode-title":null;var o,s,a,h,u=m.getModuleCount()*t+2*e,d="";for(h="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",d+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',d+=n.scalable?"":' width="'+u+'px" height="'+u+'px"',d+=' viewB
1ox="0 0 '+u+" "+u+'" ',d+=' preserveAspectRatio="xMinYMin meet"',d+=i.text||r.text?' role="img" aria-labelledby="'+M([i.id,r.id].join(" ").trim())+'"':"",d+=">",d+=i.text?'<title id="'+M(i.id)+'">'+M(i.text)+"</title>":"",d+=r.text?'<description id="'+M(r.id)+'">'+M(r.text)+"</description>":"",d+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',d+='<path d="',s=0;s<m.getModuleCount();s+=1)for(a=s*t+e,o=0;o<m.getModuleCount();o+=1)m.isDark(s,o)&&(d+="M"+(o*t+e)+","+a+h);return(d+='" stroke="transparent" fill="black"/>')+"</svg>"},m.createDataURL=function(t,e){t=t||2,e=void 0===e?4*t:e;var r=m.getModuleCount()*t+2*e,i=e,n=r-e;return _(r,r,function(e,r){if(i<=e&&e<n&&i<=r&&r<n){var o=Math.floor((e-i)/t),s=Math.floor((r-i)/t);return+!m.isDark(s,o)}return 1})},m.createImgTag=function(t,e,r){t=t||2,e=void 0===e?4*t:e;var i=m.getModuleCount()*t+2*e,n="";return n+="<img",n+=' src="',n+=m.createDataURL(t,e),n+='"',n+=' width="',n+=i,n+='"',n+=' height="',n+=i,n+='"',r&&(n+=' alt="',n+=M(r),n+='"'),n+"/>"};var M=function(t){for(var e="",r=0;r<t.length;r+=1){var i=t.charAt(r);switch(i){case"<":e+="<";break;case">":e+=">";break;case"&":e+="&";break;case'"':e+=""";break;default:e+=i}}return e};return m.createASCII=function(t,e){if((t=t||1)<2)return function(t){t=void 0===t?2:t;var e,r,i,n,o,s=+m.getModuleCount()+2*t,a=t,h=s-t,u={"ââ":"â","â ":"â"," â":"â"," ":" "},d={"ââ":"â","â ":"â"," â":" "," ":" "},l="";for(e=0;e<s;e+=2){for(i=Math.floor((e-a)/1),n=Math.floor((e+1-a)/1),r=0;r<s;r+=1)o="â",a<=r&&r<h&&a<=e&&e<h&&m.isDark(i,Math.floor((r-a)/1))&&(o=" "),a<=r&&r<h&&a<=e+1&&e+1<h&&m.isDark(n,Math.floor((r-a)/1))?o+=" ":o+="â",l+=t<1&&e+1>=h?d[o]:u[o];l+="\n"}return s%2&&t>0?l.substring(0,l.length-s-1)+Array(s+1).join("â"):l.substring(0,l.length-1)}(e);t-=1,e=void 0===e?2*t:e;var r,i,n,o,s=m.getModuleCount()*t+2*e,a=e,h=s-e,u=Array(t+1).join("ââ"),d=Array(t+1).join(" "),l="",c="";for(r=0;r<s;r+=1){for(n=Math.floor((r-a)/t),c="",i=0;i<s;i+=1)o=1,a<=i&&i<h&&a<=r&&r<h&&m.isDark(n,Math.floor((i-a)/t))&&(o=0),c+=o?u:d;for(n=0;n<t;n+=1)l+=c+"\n"}return l.substring(0,l.length-1)},m.renderTo2dContext=function(t,e){e=e||2;for(var r=m.getModuleCount(),i=0;i<r;i++)for(var n=0;n<r;n++)t.fillStyle=m.isDark(i,n)?"black":"white",t.fillRect(i*e,n*e,e,e)},m};r.stringToBytes=(r.stringToBytesFuncs={default:function(t){for(var e=[],r=0;r<t.length;r+=1){var i=t.charCodeAt(r);e.push(255&i)}return e}}).default,r.createStringToBytes=function(t,e){var r=function(){for(var r=m(t),i=function(){var t=r.read();if(-1==t)throw"eof";return t},n=0,o={};;){var s=r.read();if(-1==s)break;var a=i(),h=i()<<8|i();o[String.fromCharCode(s<<8|a)]=h,n+=1}if(n!=e)throw n+" != "+e;return o}();return function(t){for(var e=[],i=0;i<t.length;i+=1){var n=t.charCodeAt(i);if(n<128)e.push(n);else{var o=r[t.charAt(i)];"number"==typeof o?(255&o)==o?e.push(o):(e.push(o>>>8),e.push(255&o)):e.push(63)}}return e}};var i,n,o,s={L:1,M:0,Q:3,H:2},a=(i=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],o=function(t){for(var e=0;0!=t;)e+=1,t>>>=1;return e},(n={}).getBCHTypeInfo=function(t){for(var e=t<<10;o(e)-o(1335)>=0;)e^=1335<<o(e)-o(1335);return 21522^(t<<10|e)},n.getBCHTypeNumber=function(t){for(var e=t<<12;o(e)-o(7973)>=0;)e^=7973<<o(e)-o(7973);return t<<12|e},n.getPatternPosition=function(t){return i[t-1]},n.getMaskFunction=function(t){switch(t){case 0:return function(t,e){return(t+e)%2==0};case 1:return function(t,e){return t%2==0};case 2:return function(t,e){return e%3==0};case 3:return function(t,e){return(t+e)%3==0};case 4:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case 5:return function(t,e){return t*e%2+t*e%3==0};case 6:return function(t,e){return(t*e%2+t*e%3)%2==0};case 7:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw"bad maskPattern:"+t}},n.getErrorCorrectPolynomial=function(t){for(var e=u([1],0),r=0;r<t;r+=1)e=e.multiply(u([1,h.gexp(r)],0));return e},n.getLengthInBits=function(t,e){if(1<=e&&e<10)switch(t){case 1:return 10;case 2:return 9;
1case 4:case 8:return 8;default:throw"mode:"+t}if(e<27)switch(t){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+t}if(!(e<41))throw"type:"+e;switch(t){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+t}},n.getLostPoint=function(t){for(var e=t.getModuleCount(),r=0,i=0;i<e;i+=1)for(var n=0;n<e;n+=1){for(var o=0,s=t.isDark(i,n),a=-1;a<=1;a+=1)if(!(i+a<0||e<=i+a))for(var h=-1;h<=1;h+=1)n+h<0||e<=n+h||0==a&&0==h||s==t.isDark(i+a,n+h)&&(o+=1);o>5&&(r+=3+o-5)}for(i=0;i<e-1;i+=1)for(n=0;n<e-1;n+=1){var u=0;t.isDark(i,n)&&(u+=1),t.isDark(i+1,n)&&(u+=1),t.isDark(i,n+1)&&(u+=1),t.isDark(i+1,n+1)&&(u+=1),0!=u&&4!=u||(r+=3)}for(i=0;i<e;i+=1)for(n=0;n<e-6;n+=1)t.isDark(i,n)&&!t.isDark(i,n+1)&&t.isDark(i,n+2)&&t.isDark(i,n+3)&&t.isDark(i,n+4)&&!t.isDark(i,n+5)&&t.isDark(i,n+6)&&(r+=40);for(n=0;n<e;n+=1)for(i=0;i<e-6;i+=1)t.isDark(i,n)&&!t.isDark(i+1,n)&&t.isDark(i+2,n)&&t.isDark(i+3,n)&&t.isDark(i+4,n)&&!t.isDark(i+5,n)&&t.isDark(i+6,n)&&(r+=40);var d=0;for(n=0;n<e;n+=1)for(i=0;i<e;i+=1)t.isDark(i,n)&&(d+=1);return r+Math.abs(100*d/e/e-50)/5*10},n),h=function(){for(var t=Array(256),e=Array(256),r=0;r<8;r+=1)t[r]=1<<r;for(r=8;r<256;r+=1)t[r]=t[r-4]^t[r-5]^t[r-6]^t[r-8];for(r=0;r<255;r+=1)e[t[r]]=r;return{glog:function(t){if(t<1)throw"glog("+t+")";return e[t]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t[e]}}}();function u(t,e){if(void 0===t.length)throw t.length+"/"+e;var r=function(){for(var r=0;r<t.length&&0==t[r];)r+=1;for(var i=Array(t.length-r+e),n=0;n<t.length-r;n+=1)i[n]=t[n+r];return i}(),i={getAt:function(t){return r[t]},getLength:function(){return r.length},multiply:function(t){for(var e=Array(i.getLength()+t.getLength()-1),r=0;r<i.getLength();r+=1)for(var n=0;n<t.getLength();n+=1)e[r+n]^=h.gexp(h.glog(i.getAt(r))+h.glog(t.getAt(n)));return u(e,0)},mod:function(t){if(i.getLength()-t.getLength()<0)return i;for(var e=h.glog(i.getAt(0))-h.glog(t.getAt(0)),r=Array(i.getLength()),n=0;n<i.getLength();n+=1)r[n]=i.getAt(n);for(n=0;n<t.getLength();n+=1)r[n]^=h.gexp(h.glog(t.getAt(n))+e);return u(r,0).mod(t)}};return i}var d=(t=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],e=function(t,e){var r={};return r.totalCount=t,r.dataCount=e,r},{getRSBlocks:function(r,i){var n=function(e,r){switch(r){case s.L:return t[4*(e-1)+0];case s.M:return t[4*(e-1)+1];case s.Q:return t[4*(e-1)+2];case s.H:return t[4*(e-1)+3];default:return}}(r,i);if(void 0===n)throw"bad rs block @ typeNumber:"+r+"/errorCorrectionLevel:"+i;for(var o=n.length/3,a=[],h=0;h<o;h+=1)for(var u=n[3*h+0],d=n[3*h+1],l=n[3*h+2],c=0;c<u;c+=1)a.push(e(d,l));return a}}),l=function(){var t=[],e=0,r={getBuffer:function(){return t},getAt:function(e){return 1==(t[Math.floor(e/8)]>>>7-e%8&1)},put:function(t,e){for(var i=0;i<e;i+=1)r.putBit(1==(t>>>e-i-1&1))},getLengthInBits:function(){return e},putBit:function(r){var i=Math.floor(e/8);t.length<=i&&t.push(0),r&&(t[i]|=128>>>e%8),e+=1}};return r},c=function(t){var e=function(t){for(var e=0,i=0;i<t.length;i+=1)e=10*e+r(t.charAt(i));return e},r=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-48;throw"illegal char :"+t};return{getMode:function(){return 1},getLength:function(e){return t.length},write:function(r){for(var i=0;i+2<t.length;)r.put(e(t.substring(i,i+3)),10),i+=3;i<t.length&&(t.length-i==1?r.put(e(t.substring(i,i+1)),4):t.length-i==2&&r.put(e(t.substring(i,i+2)),7))}}},g=function(t){var e=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-48;if("A"<=t&&t<="Z")return t.charCodeAt(0)-65+10;switch(t){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+t}};return{getMode:function(){return 2},getLength:function(e){return t.length},write:function(r){for(var i=0;i+1<t.length;)r.put(45*e(t.charAt(i))+e(t.charAt(i+1)),11),i+=2;i<t.length&&r.put(e(t.charAt(i)),6)}}},f=function(t){var e=r.stringToBytes(t);return{getMode:function(){return 4},getLength:function(t){return e.length},write:function(t){for(var r=0;r<e.length;r+=1)t.put(e[r],8)}}},p=function(t){var e=r.stringToBytesFuncs.SJIS;if(!e)throw"sjis not supported.";var i=e("å");
1if(2!=i.length||38726!=(i[0]<<8|i[1]))throw"sjis not supported.";var n=e(t);return{getMode:function(){return 8},getLength:function(t){return~~(n.length/2)},write:function(t){for(var e=0;e+1<n.length;){var r=(255&n[e])<<8|255&n[e+1];if(33088<=r&&r<=40956)r-=33088;else{if(!(57408<=r&&r<=60351))throw"illegal char at "+(e+1)+"/"+r;r-=49472}r=192*(r>>>8&255)+(255&r),t.put(r,13),e+=2}if(e<n.length)throw"illegal char at "+(e+1)}}},w=function(){var t=[],e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,r,i){r=r||0,i=i||t.length;for(var n=0;n<i;n+=1)e.writeByte(t[n+r])},writeString:function(t){for(var r=0;r<t.length;r+=1)e.writeByte(t.charCodeAt(r))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var r=0;r<t.length;r+=1)r>0&&(e+=","),e+=t[r];return e+"]"}};return e},m=function(t){var e=0,r=0,i=0,n=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return{read:function(){for(;i<8;){if(e>=t.length){if(0==i)return -1;throw"unexpected end of file./"+i}var o=t.charAt(e);if(e+=1,"="==o)return i=0,-1;o.match(/^\s$/)||(r=r<<6|n(o.charCodeAt(0)),i+=6)}var s=r>>>i-8&255;return i-=8,s}}},_=function(t,e,r){for(var i,n,o,s,a,h,u,d,l,c,g=(i=Array(t*e),n=function(t){for(var e=1<<t,r=1+(1<<t),n=t+1,s=o(),a=0;a<e;a+=1)s.add(String.fromCharCode(a));s.add(String.fromCharCode(e)),s.add(String.fromCharCode(r));var h,u,d=w(),l=(h=0,u=0,{write:function(t,e){if(t>>>e!=0)throw"length over";for(;h+e>=8;)d.writeByte(255&(t<<h|u)),e-=8-h,t>>>=8-h,u=0,h=0;u|=t<<h,h+=e},flush:function(){h>0&&d.writeByte(u)}});l.write(e,n);var c=0,g=String.fromCharCode(i[0]);for(c+=1;c<i.length;){var f=String.fromCharCode(i[c]);c+=1,s.contains(g+f)?g+=f:(l.write(s.indexOf(g),n),4095>s.size()&&(s.size()==1<<n&&(n+=1),s.add(g+f)),g=f)}return l.write(s.indexOf(g),n),l.write(r,n),l.flush(),d.toByteArray()},o=function(){var t={},e=0,r={add:function(i){if(r.contains(i))throw"dup key:"+i;t[i]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return void 0!==t[e]}};return r},{setPixel:function(e,r,n){i[r*t+e]=n},write:function(r){r.writeString("GIF87a"),r.writeShort(t),r.writeShort(e),r.writeByte(128),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(0),r.writeByte(255),r.writeByte(255),r.writeByte(255),r.writeString(","),r.writeShort(0),r.writeShort(0),r.writeShort(t),r.writeShort(e),r.writeByte(0);var i=n(2);r.writeByte(2);for(var o=0;i.length-o>255;)r.writeByte(255),r.writeBytes(i,o,255),o+=255;r.writeByte(i.length-o),r.writeBytes(i,o,i.length-o),r.writeByte(0),r.writeString(";")}}),f=0;f<e;f+=1)for(var p=0;p<t;p+=1)g.setPixel(p,f,r(p,f));var m=w();g.write(m);for(var _=(s=0,a=0,h=0,u="",d={},l=function(t){u+=String.fromCharCode(c(63&t))},c=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t},d.writeByte=function(t){for(s=s<<8|255&t,a+=8,h+=1;a>=6;)l(s>>>a-6),a-=6},d.flush=function(){if(a>0&&(l(s<<6-a),s=0,a=0),h%3!=0)for(var t=3-h%3,e=0;e<t;e+=1)u+="="},d.toString=function(){return u},d),v=m.toByteArray(),y=0;y<v.length;y+=1)_.writeByte(v[y]);return _.flush(),"data:image/gif;base64,"+_};return r}();n.stringToBytesFuncs["UTF-8"]=function(t){for(var e=[],r=0;r<t.length;r++){var i=t.charCodeAt(r);i<128?e.push(i):i<2048?e.push(192|i>>6,128|63&i):i<55296||i>=57344?e.push(224|i>>12,128|i>>6&63,128|63&i):(r++,i=65536+((1023&i)<<10|1023&t.charCodeAt(r)),e.push(240|i>>18,128|i>>12&63,128|i>>6&63,128|63&i))}return e},void 0===(i="function"==typeof(r=function(){return n})?r.apply(e,[]):r)||(t.exports=i)}},e={};function r(i){var n=e[i];if(void 0!==n)return n.exports;var o=e[i]={exports:{}};return t[i](o,o.exports,r),o.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 i in e)r.o(e,i)&&!r.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};return(()=>{"use strict";r.d(n,{default:()=>M});let t=t=>!!t&&"object"==typeof t&&!Array.isArray(t);function e(r,...i){if(!i.length)return r;let n=i.shift();return void 0!==n&&t(r)&&t(n)?(r=Object.assign({}
1,r),Object.keys(n).forEach(i=>{let o=r[i],s=n[i];Array.isArray(o)&&Array.isArray(s)?r[i]=s:t(o)&&t(s)?r[i]=e(Object.assign({},o),s):r[i]=s}),e(r,...i)):r}function o(t,e){let r=document.createElement("a");r.download=e,r.href=t,document.body.appendChild(r),r.click(),document.body.removeChild(r)}let s={L:.07,M:.15,Q:.25,H:.3};class a{constructor({svg:t,type:e,window:r}){this._svg=t,this._type=e,this._window=r}draw(t,e,r,i){let n;switch(this._type){case"dots":n=this._drawDot;break;case"classy":n=this._drawClassy;break;case"classy-rounded":n=this._drawClassyRounded;break;case"rounded":n=this._drawRounded;break;case"extra-rounded":n=this._drawExtraRounded;break;default:n=this._drawSquare}n.call(this,{x:t,y:e,size:r,getNeighbor:i})}_rotateFigure({x:t,y:e,size:r,rotation:i=0,draw:n}){var o;n(),null==(o=this._element)||o.setAttribute("transform",`rotate(${180*i/Math.PI},${t+r/2},${e+r/2})`)}_basicDot(t){let{size:e,x:r,y:i}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(r+e/2)),this._element.setAttribute("cy",String(i+e/2)),this._element.setAttribute("r",String(e/2))}}))}_basicSquare(t){let{size:e,x:r,y:i}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(r)),this._element.setAttribute("y",String(i)),this._element.setAttribute("width",String(e)),this._element.setAttribute("height",String(e))}}))}_basicSideRounded(t){let{size:e,x:r,y:i}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${r} ${i}v ${e}h `+e/2+`a ${e/2} ${e/2}, 0, 0, 0, 0 ${-e}`)}}))}_basicCornerRounded(t){let{size:e,x:r,y:i}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${r} ${i}v ${e}h ${e}v `+-e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${-e/2} ${-e/2}`)}}))}_basicCornerExtraRounded(t){let{size:e,x:r,y:i}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${r} ${i}v ${e}h ${e}a ${e} ${e}, 0, 0, 0, ${-e} ${-e}`)}}))}_basicCornersRounded(t){let{size:e,x:r,y:i}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${r} ${i}v `+e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${e/2} ${e/2}h `+e/2+"v "+-e/2+`a ${e/2} ${e/2}, 0, 0, 0, ${-e/2} ${-e/2}`)}}))}_drawDot({x:t,y:e,size:r}){this._basicDot({x:t,y:e,size:r,rotation:0})}_drawSquare({x:t,y:e,size:r}){this._basicSquare({x:t,y:e,size:r,rotation:0})}_drawRounded({x:t,y:e,size:r,getNeighbor:i}){let n=i?+i(-1,0):0,o=i?+i(1,0):0,s=i?+i(0,-1):0,a=i?+i(0,1):0,h=n+o+s+a;if(0!==h)if(h>2||n&&o||s&&a)this._basicSquare({x:t,y:e,size:r,rotation:0});else{if(2===h){let i=0;return n&&s?i=Math.PI/2:s&&o?i=Math.PI:o&&a&&(i=-Math.PI/2),void this._basicCornerRounded({x:t,y:e,size:r,rotation:i})}if(1===h){let i=0;return s?i=Math.PI/2:o?i=Math.PI:a&&(i=-Math.PI/2),void this._basicSideRounded({x:t,y:e,size:r,rotation:i})}}else this._basicDot({x:t,y:e,size:r,rotation:0})}_drawExtraRounded({x:t,y:e,size:r,getNeighbor:i}){let n=i?+i(-1,0):0,o=i?+i(1,0):0,s=i?+i(0,-1):0,a=i?+i(0,1):0,h=n+o+s+a;if(0!==h)if(h>2||n&&o||s&&a)this._basicSquare({x:t,y:e,size:r,rotation:0});else{if(2===h){let i=0;return n&&s?i=Math.PI/2:s&&o?i=Math.PI:o&&a&&(i=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:e,size:r,rotation:i})}if(1===h){let i=0;return s?i=Math.PI/2:o?i=Math.PI:a&&(i=-Math.PI/2),void this._basicSideRounded({x:t,y:e,size:r,rotation:i})}}else this._basicDot({x:t,y:e,size:r,rotation:0})}_drawClassy({x:t,y:e,size:r,getNeighbor:i}){let n=i?+i(-1,0):0,o=i?+i(1,0):0,s=i?+i(0,-1):0,a=i?+i(0,1):0;0!==n+o+s+a?n||s?o||a?this._basicSquare({x:t,y:e,size:r,rotation:0}):this._basicCornerRounded({x:t,y:e,size:r,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:e,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:e,size:r,rotation:Math.PI/2})}_drawClassyRounded({x:t,y:e,size:r,getNeighbor:i}){let n=i?+i(-1,0):0,o=i?+i(1,0):0,s=i?+i(0,-1):0,a=i?+i(0,1):0;0!==n+o+s+a?n||s?o||a?this._basicSquare({x:t,y:e,size:r,rotation:0}):this._basicCornerExtraRounded({x:t,y:e,size:r,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:e,size:r,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:e,size:r,rotation:Math.PI/2})}}let h={dot:"dot",square:"square",extraRounded:"extra-rounded"},u=Object.values(h);class d{constructor({svg:t,type:e,window:r}){this._svg=t,this._type=e,this._window=r}draw(t,e,r,i){let n;switch(this._type){case h.square:n=this._drawSquare;break;case h.extraRounded:n=this._drawExtraRounded;break;default:n=this._drawDot}n.call(this,{x:t,y:e,size:r,rotation:i})}_rotateFigure({x:t,y:e,size:r,rotation:i=0,draw:n}){var o;n(),null==(o=this._element)||o.setAttribute("transform",`rotate(${180*i/Math.PI},${t+r/2},${e+r/2})`)}_basicDot(t){let{size:e,x:r,y:i}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${r+e/2} ${i}a ${e/2} ${e/2} 0 1 0 0.1 0zm 0 ${n}a ${e/2-n} ${e/2-n} 0 1 1 -0.1 0Z`)}}))}_basicSquare(t){let{size:e,x:r,y:i}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${r} ${i}v ${e}h ${e}v `+-e+"z"+`M ${r+n} ${i+n}h `+(e-2*n)+"v "+(e-2*n)+"h "+(2*n-e)+"z")}}))}_basicExtraRounded(t){let{size:e,x:r,y:i}=t,n=e/7;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${r} ${i+2.5*n}v `+2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*n} ${2.5*n}h `+2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${2.5*n} ${-(2.5*n)}v `+-2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${-(2.5*n)} ${-(2.5*n)}h `+-2*n+`a ${2.5*n} ${2.5*n}, 0, 0, 0, ${-(2.5*n)} ${2.5*n}`+`M ${r+2.5*n} ${i+n}h `+2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*n} ${1.5*n}v `+2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${-(1.5*n)} ${1.5*n}h `+-2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${-(1.5*n)} ${-(1.5*n)}v `+-2*n+`a ${1.5*n} ${1.5*n}, 0, 0, 1, ${1.5*n} ${-(1.5*n)}`)}}))}_drawDot({x:t,y:e,size:r,rotation:i}){this._basicDot({x:t,y:e,size:r,rotation:i})}_drawSquare({x:t,y:e,size:r,rotation:i}){this._basicSquare({x:t,y:e,size:r,rotation:i})}_drawExtraRounded({x:t,y:e,size:r,rotation:i}){this._basicExtraRounded({x:t,y:e,size:r,rotation:i})}}let l={dot:"dot",square:"square"},c=Object.values(l);class g{constructor({svg:t,type:e,window:r}){this._svg=t,this._type=e,this._window=r}draw(t,e,r,i){(this._type===l.square?this._drawSquare:this._drawDot).call(this,{x:t,y:e,size:r,rotation:i})}_rotateFigure({x:t,y:e,size:r,rotation:i=0,draw:n}){var o;n(),null==(o=this._element)||o.setAttribute("transform",`rotate(${180*i/Math.PI},${t+r/2},${e+r/2})`)}_basicDot(t){let{size:e,x:r,y:i}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(r+e/2)),this._element.setAttribute("cy",String(i+e/2)),this._element.setAttribute("r",String(e/2))}}))}_basicSquare(t){let{size:e,x:r,y:i}=t;this._rotateFigure(Object.assign(Object.assign({},t),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(r)),this._element.setAttribute("y",String(i)),this._element.setAttribute("width",String(e)),this._element.setAttribute("height",String(e))}}))}_drawDot({x:t,y:e,size:r,rotation:i}){this._basicDot({x:t,y:e,size:r,rotation:i})}_drawSquare({x:t,y:e,size:r,rotation:i}){this._basicSquare({x:t,y:e,size:r,rotation:i})}}let f="circle",p=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],w=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class m{constructor(t,e){this._roundSize=t=>this._options.dotsOptions.roundSize?Math.floor(t):t,this._window=e,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(t.width)),this._element.setAttribute("height",String(t.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),t.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${t.width} ${t.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=t.image,this._instanceId=m.instanceCount++,this._options=t}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(t){let e=t.getModuleCount(),r=Math.min(this._options.width,this._options.height)-2*this._options.margin,i=this._options.shape===f?r/Math.sqrt(2):r,n=this._roundSize(i/e),o={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=t,this._options.image){if(await this.loadImage(),!this._image)return;let{imageOptions:t,qrOptions:r}=this._options,i=Math.floor(t.imageSize*s[r.errorCorrectionLevel]*e*e);o=function({originalHeight:t,originalWidth:e,maxHiddenDots:r,maxHiddenAxisDots:i,dotSize:n}){let o={x:0,y:0},s={x:0,y:0};if(t<=0||e<=0||r<=0||n<=0)return{height:0,width:0,hideYDots:0,hideXDots:0}
1;let a=t/e;return o.x=Math.floor(Math.sqrt(r/a)),o.x<=0&&(o.x=1),i&&i<o.x&&(o.x=i),o.x%2==0&&o.x--,s.x=o.x*n,o.y=1+2*Math.ceil((o.x*a-1)/2),s.y=Math.round(s.x*a),(o.y*o.x>r||i&&i<o.y)&&(i&&i<o.y?(o.y=i,o.y%2==0&&o.x--):o.y-=2,s.y=o.y*n,o.x=1+2*Math.ceil((o.y/a-1)/2),s.x=Math.round(s.y/a)),{height:s.y,width:s.x,hideYDots:o.y,hideXDots:o.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:i,maxHiddenAxisDots:e-14,dotSize:n})}this.drawBackground(),this.drawDots((t,r)=>{var i,n,s,a,h,u;return!(this._options.imageOptions.hideBackgroundDots&&t>=(e-o.hideYDots)/2&&t<(e+o.hideYDots)/2&&r>=(e-o.hideXDots)/2&&r<(e+o.hideXDots)/2||(null==(i=p[t])?void 0:i[r])||(null==(n=p[t-e+7])?void 0:n[r])||(null==(s=p[t])?void 0:s[r-e+7])||(null==(a=w[t])?void 0:a[r])||(null==(h=w[t-e+7])?void 0:h[r])||(null==(u=w[t])?void 0:u[r-e+7]))}),this.drawCorners(),this._options.image&&await this.drawImage({width:o.width,height:o.height,count:e,dotSize:n})}drawBackground(){var t,e,r;let i=this._element,n=this._options;if(i){let i=null==(t=n.backgroundOptions)?void 0:t.gradient,o=null==(e=n.backgroundOptions)?void 0:e.color,s=n.height,a=n.width;if(i||o){let t=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),(null==(r=n.backgroundOptions)?void 0:r.round)&&(s=a=Math.min(n.width,n.height),t.setAttribute("rx",String(s/2*n.backgroundOptions.round))),t.setAttribute("x",String(this._roundSize((n.width-a)/2))),t.setAttribute("y",String(this._roundSize((n.height-s)/2))),t.setAttribute("width",String(a)),t.setAttribute("height",String(s)),this._backgroundClipPath.appendChild(t),this._createColor({options:i,color:o,additionalRotation:0,x:0,y:0,height:n.height,width:n.width,name:`background-color-${this._instanceId}`})}}}drawDots(t){var e,r;if(!this._qr)throw"QR code is not defined";let i=this._options,n=this._qr.getModuleCount();if(n>i.width||n>i.height)throw"The canvas is too small.";let o=Math.min(i.width,i.height)-2*i.margin,s=i.shape===f?o/Math.sqrt(2):o,h=this._roundSize(s/n),u=this._roundSize((i.width-n*h)/2),d=this._roundSize((i.height-n*h)/2),l=new a({svg:this._element,type:i.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null==(e=i.dotsOptions)?void 0:e.gradient,color:i.dotsOptions.color,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:`dot-color-${this._instanceId}`});for(let e=0;e<n;e++)for(let i=0;i<n;i++)t&&!t(e,i)||(null==(r=this._qr)?void 0:r.isDark(e,i))&&(l.draw(u+i*h,d+e*h,h,(r,o)=>!(i+r<0||e+o<0||i+r>=n||e+o>=n)&&!(t&&!t(e+o,i+r))&&!!this._qr&&this._qr.isDark(e+o,i+r)),l._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(l._element));if(i.shape===f){let t=this._roundSize((o/h-n)/2),e=n+2*t,r=u-t*h,i=d-t*h,s=[],a=this._roundSize(e/2);for(let r=0;r<e;r++){s[r]=[];for(let i=0;i<e;i++)r>=t-1&&r<=e-t&&i>=t-1&&i<=e-t||Math.sqrt((r-a)*(r-a)+(i-a)*(i-a))>a?s[r][i]=0:s[r][i]=+!!this._qr.isDark(i-2*t<0?i:i>=n?i-2*t:i-t,r-2*t<0?r:r>=n?r-2*t:r-t)}for(let t=0;t<e;t++)for(let n=0;n<e;n++)s[t][n]&&(l.draw(r+n*h,i+t*h,h,(e,r)=>{var i;return!!(null==(i=s[t+r])?void 0:i[n+e])}),l._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(l._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";let t=this._element,e=this._options;if(!t)throw"Element code is not defined";let r=this._qr.getModuleCount(),i=Math.min(e.width,e.height)-2*e.margin,n=e.shape===f?i/Math.sqrt(2):i,o=this._roundSize(n/r),s=7*o,h=3*o,l=this._roundSize((e.width-r*o)/2),m=this._roundSize((e.height-r*o)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([t,i,n])=>{var f,_,v,y,b,S,x,C,O,A,M,$,k,z;let R=l+t*o*(r-7),D=m+i*o*(r-7),I=this._dotsClipPath,j=this._dotsClipPath;if(((null==(f=e.cornersSquareOptions)?void 0:f.gradient)||(null==(_=e.cornersSquareOptions)?void 0:_.color))&&((I=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id",`clip-path-corners-square-color-${t}-${i}-${this._instanceId}`),this._defs.appendChild(I),this._cornersSquareClipPath=this._cornersDotClipPath=j=I,this._createColor({options:null==(v=e.cornersSquareOptions)?void 0:v.gradient,color:null==(y=e.cornersSquareOptions)?void 0:y.color,additionalRotation:n,x:R,y:D,height:s,width:s,name:`corners-square-color-${t}-${i}-${this._instanceId}`})),(null==(b=e.cornersSquareOptions)?void 0:b.type)&&u.includes(e.cornersSquareOptions.type)){let t=new d({svg:this._element,type:e.cornersSquareOptions.type,window:this._window});t.draw(R,D,s,n),t._element&&I&&I.appendChild(t._element)}else{let t=new a({svg:this._element,type:(null==(S=e.cornersSquareOptions)?void 0:S.type)||e.dotsOptions.type,window:this._window});for(let e=0;e<p.length;e++)for(let r=0;r<p[e].length;r++)(null==(x=p[e])?void 0:x[r])&&(t.draw(R+r*o,D+e*o,o,(t,i)=>{var n;return!!(null==(n=p[e+i])?void 0:n[r+t])}),t._element&&I&&I.appendChild(t._element))}if(((null==(C=e.cornersDotOptions)?void 0:C.gradient)||(null==(O=e.cornersDotOptions)?void 0:O.color))&&((j=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id",`clip-path-corners-dot-color-${t}-${i}-${this._instanceId}`),this._defs.appendChild(j),this._cornersDotClipPath=j,this._createColor({options:null==(A=e.cornersDotOptions)?void 0:A.gradient,color:null==(M=e.cornersDotOptions)?void 0:M.color,additionalRotation:n,x:R+2*o,y:D+2*o,height:h,width:h,name:`corners-dot-color-${t}-${i}-${this._instanceId}`})),(null==($=e.cornersDotOptions)?void 0:$.type)&&c.includes(e.cornersDotOptions.type)){let t=new g({svg:this._element,type:e.cornersDotOptions.type,window:this._window});t.draw(R+2*o,D+2*o,h,n),t._element&&j&&j.appendChild(t._element)}else{let t=new a({svg:this._element,type:(null==(k=e.cornersDotOptions)?void 0:k.type)||e.dotsOptions.type,window:this._window});for(let e=0;e<w.length;e++)for(let r=0;r<w[e].length;r++)(null==(z=w[e])?void 0:z[r])&&(t.draw(R+r*o,D+e*o,o,(t,i)=>{var n;return!!(null==(n=w[e+i])?void 0:n[r+t])}),t._element&&j&&j.appendChild(t._element))}})}loadImage(){return new Promise((t,e)=>{var r;let i=this._options;if(!i.image)return e("Image is not defined");if(null==(r=i.nodeCanvas)?void 0:r.loadImage)i.nodeCanvas.loadImage(i.image).then(e=>{var r,n;if(this._image=e,this._options.imageOptions.saveAsBlob){let t=null==(r=i.nodeCanvas)?void 0:r.createCanvas(this._image.width,this._image.height);null==(n=null==t?void 0:t.getContext("2d"))||n.drawImage(e,0,0),this._imageUri=null==t?void 0:t.toDataURL()}t()}).catch(e);else{let e=new this._window.Image;"string"==typeof i.imageOptions.crossOrigin&&(e.crossOrigin=i.imageOptions.crossOrigin),this._image=e,e.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(t,e){return new Promise(r=>{let i=new e.XMLHttpRequest;i.onload=function(){let t=new e.FileReader;t.onloadend=function(){r(t.result)}
1,t.readAsDataURL(i.response)},i.open("GET",t),i.responseType="blob",i.send()})}(i.image||"",this._window)),t()},e.src=i.image}})}async drawImage({width:t,height:e,count:r,dotSize:i}){let n=this._options,o=this._roundSize((n.width-r*i)/2),s=this._roundSize((n.height-r*i)/2),a=o+this._roundSize(n.imageOptions.margin+(r*i-t)/2),h=s+this._roundSize(n.imageOptions.margin+(r*i-e)/2),u=t-2*n.imageOptions.margin,d=e-2*n.imageOptions.margin,l=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");l.setAttribute("href",this._imageUri||""),l.setAttribute("xlink:href",this._imageUri||""),l.setAttribute("x",String(a)),l.setAttribute("y",String(h)),l.setAttribute("width",`${u}px`),l.setAttribute("height",`${d}px`),this._element.appendChild(l)}_createColor({options:t,color:e,additionalRotation:r,x:i,y:n,height:o,width:s,name:a}){let h=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(h.setAttribute("x",String(i)),h.setAttribute("y",String(n)),h.setAttribute("height",String(o)),h.setAttribute("width",String(s)),h.setAttribute("clip-path",`url('#clip-path-${a}')`),t){let e;if("radial"===t.type)(e=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",a),e.setAttribute("gradientUnits","userSpaceOnUse"),e.setAttribute("fx",String(i+s/2)),e.setAttribute("fy",String(n+o/2)),e.setAttribute("cx",String(i+s/2)),e.setAttribute("cy",String(n+o/2)),e.setAttribute("r",String((s>o?s:o)/2));else{let h=((t.rotation||0)+r)%(2*Math.PI),u=(h+2*Math.PI)%(2*Math.PI),d=i+s/2,l=n+o/2,c=i+s/2,g=n+o/2;u>=0&&u<=.25*Math.PI||u>1.75*Math.PI&&u<=2*Math.PI?(d-=s/2,l-=o/2*Math.tan(h),c+=s/2,g+=o/2*Math.tan(h)):u>.25*Math.PI&&u<=.75*Math.PI?(l-=o/2,d-=s/2/Math.tan(h),g+=o/2,c+=s/2/Math.tan(h)):u>.75*Math.PI&&u<=1.25*Math.PI?(d+=s/2,l+=o/2*Math.tan(h),c-=s/2,g-=o/2*Math.tan(h)):u>1.25*Math.PI&&u<=1.75*Math.PI&&(l+=o/2,d+=s/2/Math.tan(h),g-=o/2,c-=s/2/Math.tan(h)),(e=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",a),e.setAttribute("gradientUnits","userSpaceOnUse"),e.setAttribute("x1",String(Math.round(d))),e.setAttribute("y1",String(Math.round(l))),e.setAttribute("x2",String(Math.round(c))),e.setAttribute("y2",String(Math.round(g)))}t.colorStops.forEach(({offset:t,color:r})=>{let i=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");i.setAttribute("offset",100*t+"%"),i.setAttribute("stop-color",r),e.appendChild(i)}),h.setAttribute("fill",`url('#${a}')`),this._defs.appendChild(e)}else e&&h.setAttribute("fill",e);this._element.appendChild(h)}}m.instanceCount=0;let _="canvas",v={};for(let t=0;t<=40;t++)v[t]=t;let y={type:_,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:v[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function b(t){let e=Object.assign({},t);if(!e.colorStops||!e.colorStops.length)throw"Field 'colorStops' is required in gradient";return e.rotation?e.rotation=Number(e.rotation):e.rotation=0,e.colorStops=e.colorStops.map(t=>Object.assign(Object.assign({},t),{offset:Number(t.offset)})),e}function S(t){let e=Object.assign({},t);return e.width=Number(e.width),e.height=Number(e.height),e.margin=Number(e.margin),e.imageOptions=Object.assign(Object.assign({},e.imageOptions),{hideBackgroundDots:!!e.imageOptions.hideBackgroundDots,imageSize:Number(e.imageOptions.imageSize),margin:Number(e.imageOptions.margin)}),e.margin>Math.min(e.width,e.height)&&(e.margin=Math.min(e.width,e.height)),e.dotsOptions=Object.assign({},e.dotsOptions),e.dotsOptions.gradient&&(e.dotsOptions.gradient=b(e.dotsOptions.gradient)),e.cornersSquareOptions&&(e.cornersSquareOptions=Object.assign({},e.cornersSquareOptions),e.cornersSquareOptions.gradient&&(e.cornersSquareOptions.gradient=b(e.cornersSquareOptions.gradient))),e.cornersDotOptions&&(e.cornersDotOptions=Object.assign({},e.cornersDotOptions),e.cornersDotOptions.gradient&&(e.cornersDotOptions.gradient=b(e.cornersDotOptions.gradient))),e.backgroundOptions&&(e.backgroundOptions=Object.assign({},e.backgroundOptions),e.backgroundOptions.gradient&&(e.backgroundOptions.gradient=b(e.backgroundOptions.gradient))),e}var x=r(873),C=r.n(x);function O(t){if(!t)throw Error("Extension must be defined");"."===t[0]&&(t=t.substring(1));let e={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",
1jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[t.toLowerCase()];if(!e)throw Error(`Extension "${t}" is not supported`);return e}class A{constructor(t){(null==t?void 0:t.jsdom)?this._window=new t.jsdom("",{resources:"usable"}).window:this._window=window,this._options=t?S(e(y,t)):y,this.update()}static _clearContainer(t){t&&(t.innerHTML="")}_setupSvg(){if(!this._qr)return;let t=new m(this._options,this._window);this._svg=t.getElement(),this._svgDrawingPromise=t.drawQR(this._qr).then(()=>{var e;this._svg&&(null==(e=this._extension)||e.call(this,t.getElement(),this._options))})}_setupCanvas(){var t,e;this._qr&&((null==(t=this._options.nodeCanvas)?void 0:t.createCanvas)?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=null==(e=this._svgDrawingPromise)?void 0:e.then(()=>{var t;if(!this._svg)return;let e=this._svg,r=btoa((new this._window.XMLSerializer).serializeToString(e)),i=`data:${O("svg")};base64,${r}`;if(null==(t=this._options.nodeCanvas)?void 0:t.loadImage)return this._options.nodeCanvas.loadImage(i).then(t=>{var e,r;t.width=this._options.width,t.height=this._options.height,null==(r=null==(e=this._nodeCanvas)?void 0:e.getContext("2d"))||r.drawImage(t,0,0)});{let t=new this._window.Image;return new Promise(e=>{t.onload=()=>{var r,i;null==(i=null==(r=this._domCanvas)?void 0:r.getContext("2d"))||i.drawImage(t,0,0),e()},t.src=i})}}))}async _getElement(t="png"){if(!this._qr)throw"QR code is empty";return"svg"===t.toLowerCase()?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(t){A._clearContainer(this._container),this._options=t?S(e(this._options,t)):this._options,this._options.data&&(this._qr=C()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(t){switch(!0){case/^[0-9]*$/.test(t):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(t):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===_?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(t){if(t){if("function"!=typeof t.appendChild)throw"Container should be a single DOM node";this._options.type===_?this._domCanvas&&t.appendChild(this._domCanvas):this._svg&&t.appendChild(this._svg),this._container=t}}applyExtension(t){if(!t)throw"Extension function should be defined.";this._extension=t,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(t="png"){if(!this._qr)throw"QR code is empty";let e=await this._getElement(t),r=O(t);if(!e)return null;if("svg"===t.toLowerCase()){let t=`<?xml version="1.0" standalone="no"?>\r 2${(new this._window.XMLSerializer).serializeToString(e)}`;return"undefined"==typeof Blob||this._options.jsdom?i.from(t):new Blob([t],{type:r})}return new Promise(t=>{if("toBuffer"in e)if("image/png"===r)t(e.toBuffer(r));else if("image/jpeg"===r)t(e.toBuffer(r));else{if("application/pdf"!==r)throw Error("Unsupported extension");t(e.toBuffer(r))}else"toBlob"in e&&e.toBlob(t,r,1)})}async download(t){if(!this._qr)throw"QR code is empty";if("undefined"==typeof Blob)throw"Cannot download in Node.js, call getRawData instead.";let e="png",r="qr";"string"==typeof t?(e=t,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof t&&null!==t&&(t.name&&(r=t.name),t.extension&&(e=t.extension));let i=await this._getElement(e);if(i)if("svg"===e.toLowerCase()){let t=(new XMLSerializer).serializeToString(i);t='<?xml version="1.0" standalone="no"?>\r\n'+t,o(`data:${O(e)};charset=utf-8,${encodeURIComponent(t)}`,`${r}.svg`)}else o(i.toDataURL(O(e)),`${r}.${e}`)}}let M=A})(),n.default})()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.