!function(e,t){"object"==typeofexports&&"object"==typeofmodule?module.exports=t(t.toString())["default"]:"object"==typeofexports?exports.Quagga=t(t.toString())["default"]:e.Quagga=t(t.toString())["default"]}(this,function(e){returnfunction(e){functiont(r){if(n[r])returnn[r].e;varo=n[r]={e:{},i:r,l:!1};returne[r].call(o.e,o,o.e,t),o.l=!0,o.e}varn={};returnt.m=e,t.c=n,t.p="/",t(t.s=154)}([function(e,t,n){"use strict";varr=!1,o={disableLog:function(e){return"boolean"!=typeofe?newError("Argument type: "+typeofe+". Please use a boolean."):(r=e,e?"adapter.js logging disabled":"adapter.js logging enabled")},log:function(){if("object"==typeofwindow){if(r)return;console.log.apply(console,arguments)}},extractVersion:function(e,t,n){varr=e.match(t);returnr&&r.length>=n&&parseInt(r[n],10)},detectBrowser:function(){vare={};if(e.browser=null,e.version=null,e.minVersion=null,"undefined"==typeofwindow||!window.navigator)returne.browser="Not a browser.",e;if(navigator.mozGetUserMedia)e.browser="firefox",e.version=this.extractVersion(navigator.userAgent,/Firefox\/([0-9]+)\./,1),e.minVersion=31;elseif(navigator.webkitGetUserMedia&&window.webkitRTCPeerConnection)e.browser="chrome",e.version=this.extractVersion(navigator.userAgent,/Chrom(e|ium)\/([0-9]+)\./,2),e.minVersion=38;else{if(!navigator.mediaDevices||!navigator.userAgent.match(/Edge\/(\d+).(\d+)$/))returne.browser="Not a supported browser.",e;e.browser="edge",e.version=this.extractVersion(navigator.userAgent,/Edge\/(\d+).(\d+)$/,2),e.minVersion=10547}returne.version<e.minVersion&&o.log("Browser: "+e.browser+" Version: "+e.version+" < minimum supported version: "+e.minVersion+"\n some things might not work!"),e}};e.e={log:o.log,disableLog:o.disableLog,browserDetails:o.detectBrowser(),extractVersion:o.extractVersion}},function(e,t,n){(function(e,r){varo=n(104),i={"function":!0,object:!0},a=i[typeoft]&&t&&!t.nodeType?t:void0,c=i[typeofe]&&e&&!e.nodeType?e:void0,s=o(a&&c&&"object"==typeofr&&r),u=o(i[typeofself]&&self),f=o(i[typeofwindow]&&window),d=o(i[typeofthis]&&this),l=s||f!==(d&&d.window)&&f||u||d||Function("return this")();e.e=l}).call(t,n(48)(e),function(){returnthis}())},function(e,t,n){functionr(e){vart=typeofe;return!!e&&("object"==t||"function"==t)}e.e=r},function(e,t,n){varr=n(12),o=n(1),i=r(o,"Map");e.e=i},function(e,t,n){varr=Array.isArray;e.e=r},function(e,t,n){functionr(e){returnthis._row=[],this.config=e||{},this}r.prototype._nextUnset=function(e,t){varn;for(void0===t&&(t=0),n=t;n<e.length;n++)if(!e[n])returnn;returne.length},r.prototype._matchPattern=function(e,t){varn,r=0,o=0,i=this.MODULO,a=this.SINGLE_CODE_ERROR||1;for(n=0;n<e.length;n++){if(o=Math.abs(t[n]-e[n]),o>a)returnNumber.MAX_VALUE;r+=o}returnr/i},r.prototype._nextSet=function(e,t){varn;for(t=t||0,n=t;n<e.length;n++)if(e[n])returnn;returne.length},r.prototype._normalize=function(e,t){varn,r,o=this,i=0,a=0,c=[],s=0;for(t||(t=o.MODULO),n=0;n<e.length;n++)1===e[n]?a++:i+=e[n];if(r=i/(t-a),r>1)for(n=0;n<e.length;n++)s=1===e[n]?e[n]:e[n]/r,c.push(s);elsefor(r=(i+a)/t,n=0;n<e.length;n++)s=e[n]/r,c.push(s);returnc},r.prototype._matchTrace=function(e,t){varn,r,o=[],i=this,a=i._nextSet(i._row),c=!i._row[a],s=0,u={error:Number.MAX_VALUE,code:-1,start:0};if(e){for(n=0;n<e.length;n++)o.push(0);for(n=a;n<i._row.length;n++)if(i._row[n]^c)o[s]++;else{if(s===o.length-1)returnr=i._matchPattern(o,e),t>r?(u.start=n-a,u.end=n,u.counter=o,u):null;s++,o[s]=1,c=!c}}elsefor(o.push(0),n=a;n<i._row.length;n++)i._row[n]^c?o[s]++:(s++,o.push(0),o[s]=1,c=!c);returnu.start=a,u.end=i._row.length-1,u.counter=o,u},r.prototype.decodePattern=function(e){vart,n=this;returnn._row=e,t=n._decode(),null===t?(n._row.reverse(),t=n._decode(),t&&(t.direction=r.DIRECTION.REVERSE,t.start=n._row.length-t.start,t.end=n._row.length-t.end)):t.direction=r.DIRECTION.FORWARD,t&&(t.format=n.FORMAT),t},r.prototype._matchRange=function(e,t,n){varr;for(e=0>e?0:e,r=e;t>r;r++)if(this._row[r]!==n)return!1;return!0},r.prototype._fillCounters=function(e,t,n){varr,o=this,i=0,a=[];for(n="undefined"!=typeofn?n:
returnt[n]===e[n]})}):!1}functiono(e,t){return"function"==typeoft?t(e):!0}vari=n(9);t.a={create:function(e){functiont(t){returns&&t&&!r(t,e.blacklist)&&o(t,e.filter)}varn=document.createElement("canvas"),a=n.getContext("2d"),c=[],s=e.capacity||20,u=e.capture===!0;return{addResult:function(e,r,o){varf={};t(o)&&(s--,f.codeResult=o,u&&(n.width=r.x,n.height=r.y,i.a.drawImage(e,r,a),f.frame=n.toDataURL()),c.push(f))},getResults:function(){returnc}}}}},function(e,t,n){varr={clone:n(6),dot:n(31)};t.a={create:function(e,t){functionn(){o(e),i()}functiono(e){s[e.id]=e,a.push(e)}functioni(){vare,t=0;for(e=0;e<a.length;e++)t+=a[e].rad;c.rad=t/a.length,c.vec=r.clone([Math.cos(c.rad),Math.sin(c.rad)])}vara=[],c={rad:0,vec:r.clone([0,0])},s={};returnn(),{add:function(e){s[e.id]||(o(e),i())},fits:function(e){varn=Math.abs(r.dot(e.point.vec,c.vec));returnn>t},getPoints:function(){returna},getCenter:function(){returnc}}},createPoint:function(e,t,n){return{rad:e[n],point:e,id:t}}}},function(e,t,n){t.a=function(){functione(e){returno[e]||(o[e]={subscribers:[]}),o[e]}functiont(){o={}}functionn(e,t){e.async?setTimeout(function(){e.callback(t)},4):e.callback(t)}functionr(t,n,r){varo;if("function"==typeofn)o={callback:n,async:r};elseif(o=n,!o.callback)throw"Callback was not specified on options";e(t).subscribers.push(o)}varo={};return{subscribe:function(e,t,n){returnr(e,t,n)},publish:function(t,r){varo=e(t),i=o.subscribers;o.subscribers=i.filter(function(e){returnn(e,r),!e.once})},once:function(e,t,n){r(e,{callback:t,async:n,once:!0})},unsubscribe:function(n,r){varo;n?(o=e(n),o&&r?o.subscribers=o.subscribers.filter(function(e){returne.callback!==r}):o.subscribers=[]):t()}}}()},function(e,t,n){functionr(e,t,n){n||(n={data:null,size:t}),this.data=n.data,this.originalSize=n.size,this.I=n,this.from=e,this.size=t}r.prototype.show=function(e,t){varn,r,o,i,a,c,s;for(t||(t=1),n=e.getContext("2d"),e.width=this.size.x,e.height=this.size.y,r=n.getImageData(0,0,e.width,e.height),o=r.data,i=0,a=0;a<this.size.y;a++)for(c=0;c<this.size.x;c++)s=a*this.size.x+c,i=this.get(c,a)*t,o[4*s+0]=i,o[4*s+1]=i,o[4*s+2]=i,o[4*s+3]=255;r.data=o,n.putImageData(r,0,0)},r.prototype.get=function(e,t){returnthis.data[(this.from.y+t)*this.originalSize.x+this.from.x+e]},r.prototype.updateData=function(e){this.originalSize=e.size,this.data=e.data},r.prototype.updateFrom=function(e){returnthis.from=e,this},t.a=r},function(e,t){"undefined"!=typeofwindow&&(window.requestAnimFrame=function(){returnwindow.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}()),Math.imul=Math.imul||function(e,t){varn=e>>>16&65535,r=65535&e,o=t>>>16&65535,i=65535&t;returnr*i+(n*i+r*o<<16>>>0)|0}},function(e,t,n){varr=void0;r=n(56),t.a=r},function(e,t,n){e.e={inputStream:{name:"Live",type:"LiveStream",constraints:{width:640,height:480,facingMode:"environment"},area:{top:"0%",right:"0%",left:"0%",bottom:"0%"},singleChannel:!1},locate:!0,numOfWorkers:4,decoder:{readers:["code_128_reader"]},locator:{halfSample:!0,patchSize:"medium"}}},function(e,t,n){varr=n(58),o=(n(9),n(67)),i=n(10),a=n(30),c=n(68),s=n(66),u=n(72),f=n(69),d=n(71),l=n(70),p="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol?"symbol":typeofe},h={code_128_reader:o.a,ean_reader:i.a,ean_8_reader:f.a,code_39_reader:a.a,code_39_vin_reader:c.a,codabar_reader:s.a,upc_reader:u.a,upc_e_reader:d.a,i2of5_reader:l.a};t.a={create:function(e,t){functionn(){}functiono(){e.readers.forEach(function(e){vart,n={};"object"===("undefined"==typeofe?"undefined":p(e))?(t=e.format,n=e.config):"string"==typeofe&&(t=e),v.push(newh[t](n))})}functioni(){}functiona(e,n,r){functiono(t){varr={y:t*Math.sin(n),x:t*Math.cos(n)};e[0].y-=r.y,e[0].x-=r.x,e[1].y+=r.y,e[1].x+=r.x}for(o(r);r>1&&(!t.inImageWithBorder(e[0],0)||!t.inImageWithBorder(e[1],0));)r-=Math.ceil(r/2),o(-r