!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=192)}([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){varr=Array.isArray;e.e=r},function(e,t,n){functionr(e){vart=typeofe;return!!e&&("object"==t||"function"==t)}e.e=r},function(e,t,n){(function(e,r){varo=n(131),i={"function":!0,object:!0},a=i[typeoft]&&t&&!t.nodeType?t:void0,c=i[typeofe]&&e&&!e.nodeType?e:void0,u=o(a&&c&&"object"==typeofr&&r),s=o(i[typeofself]&&self),f=o(i[typeofwindow]&&window),d=o(i[typeofthis]&&this),l=u||f!==(d&&d.window)&&f||s||d||Function("return this")();e.e=l}).call(t,n(66)(e),function(){returnthis}())},function(e,t,n){functionr(e){return!!e&&"object"==typeofe}e.e=r},function(e,t,n){functionr(e,t){e=a.a.bind()(o(),e),c.a.call(this,e,t)}functiono(){vare={};returnObject.keys(r.CONFIG_KEYS).forEach(function(t){e[t]=r.CONFIG_KEYS[t]["default"]}),e}vari=n(12),a=i&&i.__esModule?function(){returni["default"]}:function(){returni};Object.defineProperty(a,"a",{get:a});varc=n(8),u=Object.assign||function(e){for(vart=1;t<arguments.length;t++){varn=arguments[t];for(varrinn)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}returne},s={CODE_L_START:{value:0},CODE_G_START:{value:10},START_PATTERN:{value:[1,1,1]},STOP_PATTERN:{value:[1,1,1]},MIDDLE_PATTERN:{value:[1,1,1,1,1]},EXTENSION_START_PATTERN:{value:[1,1,2]},CODE_PATTERN:{value:[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2],[1,1,2,3],[1,2,2,2],[2,2,1,2],[1,1,4,1],[2,3,1,1],[1,3,2,1],[4,1,1,1],[2,1,3,1],[3,1,2,1],[2,1,1,3]]},CODE_FREQUENCY:{value:[0,11,13,14,19,25,28,21,22,26]},SINGLE_CODE_ERROR:{value:.7},AVG_CODE_ERROR:{value:.48},FORMAT:{value:"ean_13",writeable:!1}};r.prototype=Object.create(c.a.prototype,s),r.prototype.constructor=r,r.prototype._decodeCode=function(e,t){varn,r,o,i=[0,0,0,0],a=this,c=e,u=!a._row[c],s=0,f={error:Number.MAX_VALUE,code:-1,start:e,end:e};for(t||(t=a.CODE_PATTERN.length),n=c;n<a._row.length;n++)if(a._row[n]^u)i[s]++;else{if(s===i.length-1){for(r=0;t>r;r++)o=a._matchPattern(i,a.CODE_PATTERN[r]),o<f.error&&(f.code=r,f.error=o);returnf.end=n,f.error>a.AVG_CODE_ERROR?null:f}s++,i[s]=1,u=!u}returnnull},r.prototype._findPattern=function(e,t,n,r,o){vari,a,c,u,s=[],f=this,d=0,l={error:Number.MAX_VALUE,code:-1,start:0,end:0};for(t||(t=f._nextSet(f._row)),void0===n&&(n=!1),void0===r&&(r=!0),void0===o&&(o
varm=n(185),y=m&&m.__esModule?function(){returnm["default"]}:function(){returnm};Object.defineProperty(y,"a",{get:y});varb=n(91),_=n(26),w=n(7),C=n(36),E=n(37),S="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol?"symbol":typeofe},T=b.a.bind()();t["default"]=a()},function(e,t,n){varr={clone:n(9),dot:n(40)};t.a={create:function(e,t){functionn(){o(e),i()}functiono(e){u[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])},u={};returnn(),{add:function(e){u[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){functionr(){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()}}}t.a=r},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,u;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++)u=a*this.size.x+c,i=this.get(c,a)*t,o[4*u+0]=i,o[4*u+1]=i,o[4*u+2]=i,o[4*u+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){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(74),o=(n(7),n(83)),i=n(5),a=n(39),c=n(84),u=n(82),s=n(90),f=n(87),d=n(85),l=n(86),p=n(89),h=n(88),v="function"==typeofSymbol&&"symbol"==typeofSymbol.iterator?function(e){returntypeofe}:function(e){returne&&"function"==typeofSymbol&&e.constructor===Symbol?"symbol":typeofe},g={code_128_reader:o.a,ean_reader:i.a,ean_5_reader:l.a,ean_2_reader:d.a,ean_8_reader:f.a,code_39_reader:a.a,code_39_vin_reader:c.a,codabar_reader:u.a,upc_reader:s.a,upc_e_reader:p.a,i2of5_reader:h.a};t.a={create:function(e,t){functionn(){}functiono(){e.readers.forEach(function(e){vart,n={},r=[];"object"===("undefined"==typeofe?"undefined":v(e))?(t=e.format,n=e.config):"string"==typeofe&&(t=e),n.supplements&&(r=n.supplements.map(function(e){returnnewg[e]})),p.push(newg[t](n,r))})}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)
o.iceTransport.addRemoteCandidate(i);vara=r.splitSections(this.remoteDescription.sdp);a[t+1]+=(i.type?e.candidate.trim():"a=end-of-candidates")+"\r\n",this.remoteDescription.sdp=a.join("")}returnarguments.length>1&&"function"==typeofarguments[1]&&window.setTimeout(arguments[1],0),Promise.resolve()},window.RTCPeerConnection.prototype.getStats=function(){vare=[];this.transceivers.forEach(function(t){["rtpSender","rtpReceiver","iceGatherer","iceTransport","dtlsTransport"].forEach(function(n){t[n]&&e.push(t[n].getStats())})});vart=arguments.length>1&&"function"==typeofarguments[1]&&arguments[1];returnnewPromise(function(n){varr={};Promise.all(e).then(function(e){e.forEach(function(e){Object.keys(e).forEach(function(t){r[t]=e[t]})}),t&&window.setTimeout(t,0,r),n(r)})})}},attachMediaStream:function(e,t){o("DEPRECATED, attachMediaStream will soon be removed."),e.srcObject=t},reattachMediaStream:function(e,t){o("DEPRECATED, reattachMediaStream will soon be removed."),e.srcObject=t.srcObject}});e.e={shimPeerConnection:i.shimPeerConnection,attachMediaStream:i.attachMediaStream,reattachMediaStream:i.reattachMediaStream}},function(e,t,n){"use strict";varr=n(0).log,o=n(0).browserDetails,i={shimOnTrack:function(){"object"!=typeofwindow||!window.RTCPeerConnection||"ontrack"inwindow.RTCPeerConnection.prototype||Object.defineProperty(window.RTCPeerConnection.prototype,"ontrack",{get:function(){returnthis._ontrack},set:function(e){this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.getTracks().forEach(function(t){varn=newEvent("track");n.track=t,n.receiver={track:t},n.streams=[e.stream],this.dispatchEvent(n)}.bind(this))}.bind(this))}})},shimSourceObject:function(){"object"==typeofwindow&&(!window.HTMLMediaElement||"srcObject"inwindow.HTMLMediaElement.prototype||Object.defineProperty(window.HTMLMediaElement.prototype,"srcObject",{get:function(){returnthis.mozSrcObject},set:function(e){this.mozSrcObject=e}}))},shimPeerConnection:function(){window.RTCPeerConnection||(window.RTCPeerConnection=function(e,t){if(o.version<38&&e&&e.iceServers){for(varn=[],r=0;r<e.iceServers.length;r++){vari=e.iceServers[r];if(i.hasOwnProperty("urls"))for(vara=0;a<i.urls.length;a++){varc={url:i.urls[a]};0===i.urls[a].indexOf("turn")&&(c.username=i.username,c.credential=i.credential),n.push(c)}elsen.push(e.iceServers[r])}e.iceServers=n}returnnewmozRTCPeerConnection(e,t)},window.RTCPeerConnection.prototype=mozRTCPeerConnection.prototype,mozRTCPeerConnection.generateCertificate&&Object.defineProperty(window.RTCPeerConnection,"generateCertificate",{get:function(){returnarguments.length?mozRTCPeerConnection.generateCertificate.apply(null,arguments):mozRTCPeerConnection.generateCertificate}}),window.RTCSessionDescription=mozRTCSessionDescription,window.RTCIceCandidate=mozRTCIceCandidate)},shimGetUserMedia:function(){vare=function(e,t,n){vari=function(e){if("object"!=typeofe||e.require)returne;vart=[];returnObject.keys(e).forEach(function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){varr=e[n]="object"==typeofe[n]?e[n]:{ideal:e[n]};if(void0===r.min&&void0===r.max&&void0===r.exact||t.push(n),void0!==r.exact&&("number"==typeofr.exact?r.min=r.max=r.exact:e[n]=r.exact,deleter.exact),void0!==r.ideal){e.advanced=e.advanced||[];varo={};"number"==typeofr.ideal?o[n]={min:r.ideal,max:r.ideal}:o[n]=r.ideal,e.advanced.push(o),deleter.ideal,Object.keys(r).length||deletee[n]}}}),t.length&&(e.require=t),e};returno.version<38&&(r("spec: "+JSON.stringify(e)),e.audio&&(e.audio=i(e.audio)),e.video&&(e.video=i(e.video)),r("ff37: "+JSON.stringify(e))),navigator.mozGetUserMedia(e,t,n)};navigator.getUserMedia=e;vart=function(e){returnnewPromise(function(t,n){navigator.getUserMedia(e,t,n)})};if(navigator.mediaDevices||(navigator.mediaDevices={getUserMedia:t,addEventListener:function(){},removeEventListener:function(){}}),navigator.mediaDevices.enume