(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-81a47c5e"],{"06c5":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("fb6a"),r("d3b7"),r("25f0"),r("b0c0"),r("a630"),r("3ca3"),r("ac1f"),r("00b4");var n=r("6b75");function i(t,e){if(t){if("string"===typeof t)return Object(n["a"])(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n["a"])(t,e):void 0}}},2909:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var n=r("6b75");function i(t){if(Array.isArray(t))return Object(n["a"])(t)}r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("a630");function o(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}var a=r("06c5");r("d9e2");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t){return i(t)||o(t)||Object(a["a"])(t)||s()}},3835:function(t,e,r){"use strict";function n(t){if(Array.isArray(t))return t}r.d(e,"a",(function(){return s}));r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("14d9");function i(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=r["return"]&&(a=r["return"](),Object(a)!==a))return}finally{if(u)throw i}}return s}}var o=r("06c5");r("d9e2");function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){return n(t)||i(t,e)||Object(o["a"])(t,e)||a()}},"6b75":function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);rr?r:t0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]r&&(r=a,e=o)}if(!e)throw"No largest barcode found";return e},t.prototype.createBarcodeDetectorFormats=function(t){for(var e=[],r=0,n=t;r0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]=i&&(t.isClosed=!0,t.parentElement.removeChild(t.surface),e())}))}))},t.prototype.getCapabilities=function(){return new B(this.getFirstTrackOrFail())},t}(),F=function(){function t(t){this.mediaStream=t}return t.prototype.render=function(t,e,r){return O(this,void 0,void 0,(function(){return N(this,(function(n){return[2,k.create(t,this.mediaStream,e,r)]}))}))},t.create=function(e){return O(this,void 0,void 0,(function(){var r,n;return N(this,(function(i){switch(i.label){case 0:if(!navigator.mediaDevices)throw"navigator.mediaDevices not supported";return r={audio:!1,video:e},[4,navigator.mediaDevices.getUserMedia(r)];case 1:return n=i.sent(),[2,new t(n)]}}))}))},t}(),U=function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function a(t){try{c(n.next(t))}catch(e){o(e)}}function s(t){try{c(n["throw"](t))}catch(e){o(e)}}function c(t){t.done?r(t.value):i(t.value).then(a,s)}c((n=n.apply(t,e||[])).next())}))},j=function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(a=0)),a)try{if(r=1,n&&(i=2&s[0]?n["return"]:s[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]t&&(n.logger.warn("`qrbox.width` or `qrbox` is larger than the width of the root element. The width will be truncated to the width of root element."),e=t),e};a(o.width),a(o.height),o.width=s(o.width)},t.prototype.validateQrboxConfig=function(t){if("number"!==typeof t&&"function"!==typeof t&&(void 0===t.width||void 0===t.height))throw"Invalid instance of QrDimensions passed for 'config.qrbox'. Both 'width' and 'height' should be set."},t.prototype.toQrdimensions=function(t,e,r){if("number"===typeof r)return{width:r,height:r};if("function"===typeof r)try{return r(t,e)}catch(n){throw new Error("qrbox config was passed as a function but it failed with unknown error"+n)}return r},t.prototype.setupUi=function(t,e,r){r.isShadedBoxEnabled()&&this.validateQrboxSize(t,e,r);var n=g(r.qrbox)?{width:t,height:e}:r.qrbox;this.validateQrboxConfig(n);var i=this.toQrdimensions(t,e,n);i.height>e&&this.logger.warn("[Html5Qrcode] config.qrbox has height that isgreater than the height of the video stream. Shading will be ignored");var o=r.isShadedBoxEnabled()&&i.height<=e,a={x:0,y:0,width:t,height:e},s=o?this.getShadedRegionBounds(t,e,i):a,c=this.createCanvasElement(s.width,s.height),u={willReadFrequently:!0},l=c.getContext("2d",u);l.canvas.width=s.width,l.canvas.height=s.height,this.element.append(c),o&&this.possiblyInsertShadingElement(this.element,t,e,i),this.createScannerPausedUiElement(this.element),this.qrRegion=s,this.context=l,this.canvasElement=c},t.prototype.createScannerPausedUiElement=function(t){var e=document.createElement("div");e.innerText=w.scannerPaused(),e.style.display="none",e.style.position="absolute",e.style.top="0px",e.style.zIndex="1",e.style.background="rgba(9, 9, 9, 0.46)",e.style.color="#FFECEC",e.style.textAlign="center",e.style.width="100%",t.appendChild(e),this.scannerPausedUiElement=e},t.prototype.scanContext=function(t,e){var r=this;return this.stateManagerProxy.isPaused()?Promise.resolve(!1):this.qrcode.decodeAsync(this.canvasElement).then((function(e){return t(e.text,h.createFromQrcodeResult(e)),r.possiblyUpdateShaders(!0),!0})).catch((function(t){r.possiblyUpdateShaders(!1);var n=w.codeParseError(t);return e(n,d.createFrom(n)),!1}))},t.prototype.foreverScan=function(t,e,r){var n=this;if(this.shouldScan&&this.renderedCamera){var i=this.renderedCamera.getSurface(),o=i.videoWidth/i.clientWidth,a=i.videoHeight/i.clientHeight;if(!this.qrRegion)throw"qrRegion undefined when localMediaStream is ready.";var s=this.qrRegion.width*o,c=this.qrRegion.height*a,u=this.qrRegion.x*o,l=this.qrRegion.y*a;this.context.drawImage(i,u,l,s,c,0,0,this.qrRegion.width,this.qrRegion.height);var h=function(){n.foreverScanTimeout=setTimeout((function(){n.foreverScan(t,e,r)}),n.getTimeoutFps(t.fps))};this.scanContext(e,r).then((function(i){i||!0===t.disableFlip?h():(n.context.translate(n.context.canvas.width,0),n.context.scale(-1,1),n.scanContext(e,r).finally((function(){h()})))})).catch((function(t){n.logger.logError("Error happend while scanning context",t),h()}))}},t.prototype.createVideoConstraints=function(t){if("string"==typeof t)return{deviceId:{exact:t}};if("object"==typeof t){var e="facingMode",r="deviceId",n={user:!0,environment:!0},i="exact",o=function(t){if(t in n)return!0;throw"config has invalid 'facingMode' value = "+"'".concat(t,"'")},a=Object.keys(t);if(1!==a.length)throw"'cameraIdOrConfig' object should have exactly 1 key,"+" if passed as an object, found ".concat(a.length," keys");var s=Object.keys(t)[0];if(s!==e&&s!==r)throw"Only '".concat(e,"' and '").concat(r,"' ")+" are supported for 'cameraIdOrConfig'";if(s!==e){var c=t.deviceId;if("string"==typeof c)return{deviceId:c};if("object"==typeof c){if(i in c)return{deviceId:{exact:c["".concat(i)]}};throw"'deviceId' should be string or object with"+" ".concat(i," as key.")}var u=typeof c;throw"Invalid type of 'deviceId' = ".concat(u)}var l=t.facingMode;if("string"==typeof l){if(o(l))return{facingMode:l}}else{if("object"!=typeof l){var h=typeof l;throw"Invalid type of 'facingMode' = ".concat(h)}if(!(i in l))throw"'facingMode' should be string or object with"+" ".concat(i," as key.");if(o(l["".concat(i)]))return{facingMode:{exact:l["".concat(i)]}}}}var d=typeof t;throw"Invalid type of 'cameraIdOrConfig' = ".concat(d)},t.prototype.computeCanvasDrawConfig=function(t,e,r,n){if(t<=r&&e<=n){var i=(r-t)/2,o=(n-e)/2;return{x:i,y:o,width:t,height:e}}var a=t,s=e;return t>r&&(e*=r/t,t=r),e>n&&(t*=n/e,e=n),this.logger.log("Image downsampled from "+"".concat(a,"X").concat(s)+" to ".concat(t,"X").concat(e,".")),this.computeCanvasDrawConfig(t,e,r,n)},t.prototype.clearElement=function(){if(this.stateManagerProxy.isScanning())throw"Cannot clear while scan is ongoing, close it first.";var t=document.getElementById(this.elementId);t&&(t.innerHTML="")},t.prototype.possiblyUpdateShaders=function(t){this.qrMatch!==t&&(this.hasBorderShaders&&this.borderShaders&&this.borderShaders.length&&this.borderShaders.forEach((function(e){e.style.backgroundColor=t?Q.BORDER_SHADER_MATCH_COLOR:Q.BORDER_SHADER_DEFAULT_COLOR})),this.qrMatch=t)},t.prototype.possiblyCloseLastScanImageFile=function(){this.lastScanImageFile&&(URL.revokeObjectURL(this.lastScanImageFile),this.lastScanImageFile=null)},t.prototype.createCanvasElement=function(t,e,r){var n=t,i=e,o=document.createElement("canvas");return o.style.width="".concat(n,"px"),o.style.height="".concat(i,"px"),o.style.display="none",o.id=g(r)?"qr-canvas":r,o},t.prototype.getShadedRegionBounds=function(t,e,r){if(r.width>t||r.height>e)throw"'config.qrbox' dimensions should not be greater than the dimensions of the root HTML element.";return{x:(t-r.width)/2,y:(e-r.height)/2,width:r.width,height:r.height}},t.prototype.possiblyInsertShadingElement=function(t,e,r,n){if(!(e-n.width<1||r-n.height<1)){var i=document.createElement("div");i.style.position="absolute";var o=(e-n.width)/2,a=(r-n.height)/2;if(i.style.borderLeft="".concat(o,"px solid rgba(0, 0, 0, 0.48)"),i.style.borderRight="".concat(o,"px solid rgba(0, 0, 0, 0.48)"),i.style.borderTop="".concat(a,"px solid rgba(0, 0, 0, 0.48)"),i.style.borderBottom="".concat(a,"px solid rgba(0, 0, 0, 0.48)"),i.style.boxSizing="border-box",i.style.top="0px",i.style.bottom="0px",i.style.left="0px",i.style.right="0px",i.id="".concat(Q.SHADED_REGION_ELEMENT_ID),e-n.width<11||r-n.height<11)this.hasBorderShaders=!1;else{var s=5,c=40;this.insertShaderBorders(i,c,s,-s,null,0,!0),this.insertShaderBorders(i,c,s,-s,null,0,!1),this.insertShaderBorders(i,c,s,null,-s,0,!0),this.insertShaderBorders(i,c,s,null,-s,0,!1),this.insertShaderBorders(i,s,c+s,-s,null,-s,!0),this.insertShaderBorders(i,s,c+s,null,-s,-s,!0),this.insertShaderBorders(i,s,c+s,-s,null,-s,!1),this.insertShaderBorders(i,s,c+s,null,-s,-s,!1),this.hasBorderShaders=!0}t.append(i)}},t.prototype.insertShaderBorders=function(t,e,r,n,i,o,a){var s=document.createElement("div");s.style.position="absolute",s.style.backgroundColor=Q.BORDER_SHADER_DEFAULT_COLOR,s.style.width="".concat(e,"px"),s.style.height="".concat(r,"px"),null!==n&&(s.style.top="".concat(n,"px")),null!==i&&(s.style.bottom="".concat(i,"px")),a?s.style.left="".concat(o,"px"):s.style.right="".concat(o,"px"),this.borderShaders||(this.borderShaders=[]),this.borderShaders.push(s),t.appendChild(s)},t.prototype.showPausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="block"},t.prototype.hidePausedState=function(){if(!this.scannerPausedUiElement)throw"[internal error] scanner paused UI element not found";this.scannerPausedUiElement.style.display="none"},t.prototype.getTimeoutFps=function(t){return 1e3/t},t}(),J="data:image/svg+xml;base64,",tt=J+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzNzEuNjQzIDM3MS42NDMiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDM3MS42NDMgMzcxLjY0MyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHBhdGggZD0iTTEwNS4wODQgMzguMjcxaDE2My43Njh2MjBIMTA1LjA4NHoiLz48cGF0aCBkPSJNMzExLjU5NiAxOTAuMTg5Yy03LjQ0MS05LjM0Ny0xOC40MDMtMTYuMjA2LTMyLjc0My0yMC41MjJWMzBjMC0xNi41NDItMTMuNDU4LTMwLTMwLTMwSDEyNS4wODRjLTE2LjU0MiAwLTMwIDEzLjQ1OC0zMCAzMHYxMjAuMTQzaC04LjI5NmMtMTYuNTQyIDAtMzAgMTMuNDU4LTMwIDMwdjEuMzMzYTI5LjgwNCAyOS44MDQgMCAwIDAgNC42MDMgMTUuOTM5Yy03LjM0IDUuNDc0LTEyLjEwMyAxNC4yMjEtMTIuMTAzIDI0LjA2MXYxLjMzM2MwIDkuODQgNC43NjMgMTguNTg3IDEyLjEwMyAyNC4wNjJhMjkuODEgMjkuODEgMCAwIDAtNC42MDMgMTUuOTM4djEuMzMzYzAgMTYuNTQyIDEzLjQ1OCAzMCAzMCAzMGg4LjMyNGMuNDI3IDExLjYzMSA3LjUwMyAyMS41ODcgMTcuNTM0IDI2LjE3Ny45MzEgMTAuNTAzIDQuMDg0IDMwLjE4NyAxNC43NjggNDUuNTM3YTkuOTg4IDkuOTg4IDAgMCAwIDguMjE2IDQuMjg4IDkuOTU4IDkuOTU4IDAgMCAwIDUuNzA0LTEuNzkzYzQuNTMzLTMuMTU1IDUuNjUtOS4zODggMi40OTUtMTMuOTIxLTYuNzk4LTkuNzY3LTkuNjAyLTIyLjYwOC0xMC43Ni0zMS40aDgyLjY4NWMuMjcyLjQxNC41NDUuODE4LjgxNSAxLjIxIDMuMTQyIDQuNTQxIDkuMzcyIDUuNjc5IDEzLjkxMyAyLjUzNCA0LjU0Mi0zLjE0MiA1LjY3Ny05LjM3MSAyLjUzNS0xMy45MTMtMTEuOTE5LTE3LjIyOS04Ljc4Ny0zNS44ODQgOS41ODEtNTcuMDEyIDMuMDY3LTIuNjUyIDEyLjMwNy0xMS43MzIgMTEuMjE3LTI0LjAzMy0uODI4LTkuMzQzLTcuMTA5LTE3LjE5NC0xOC42NjktMjMuMzM3YTkuODU3IDkuODU3IDAgMCAwLTEuMDYxLS40ODZjLS40NjYtLjE4Mi0xMS40MDMtNC41NzktOS43NDEtMTUuNzA2IDEuMDA3LTYuNzM3IDE0Ljc2OC04LjI3MyAyMy43NjYtNy42NjYgMjMuMTU2IDEuNTY5IDM5LjY5OCA3LjgwMyA0Ny44MzYgMTguMDI2IDUuNzUyIDcuMjI1IDcuNjA3IDE2LjYyMyA1LjY3MyAyOC43MzMtLjQxMyAyLjU4NS0uODI0IDUuMjQxLTEuMjQ1IDcuOTU5LTUuNzU2IDM3LjE5NC0xMi45MTkgODMuNDgzLTQ5Ljg3IDExNC42NjEtNC4yMjEgMy41NjEtNC43NTYgOS44Ny0xLjE5NCAxNC4wOTJhOS45OCA5Ljk4IDAgMCAwIDcuNjQ4IDMuNTUxIDkuOTU1IDkuOTU1IDAgMCAwIDYuNDQ0LTIuMzU4YzQyLjY3Mi0zNi4wMDUgNTAuODAyLTg4LjUzMyA1Ni43MzctMTI2Ljg4OC40MTUtMi42ODQuODIxLTUuMzA5IDEuMjI5LTcuODYzIDIuODM0LTE3LjcyMS0uNDU1LTMyLjY0MS05Ljc3Mi00NC4zNDV6bS0yMzIuMzA4IDQyLjYyYy01LjUxNCAwLTEwLTQuNDg2LTEwLTEwdi0xLjMzM2MwLTUuNTE0IDQuNDg2LTEwIDEwLTEwaDE1djIxLjMzM2gtMTV6bS0yLjUtNTIuNjY2YzAtNS41MTQgNC40ODYtMTAgMTAtMTBoNy41djIxLjMzM2gtNy41Yy01LjUxNCAwLTEwLTQuNDg2LTEwLTEwdi0xLjMzM3ptMTcuNSA5My45OTloLTcuNWMtNS41MTQgMC0xMC00LjQ4Ni0xMC0xMHYtMS4zMzNjMC01LjUxNCA0LjQ4Ni0xMCAxMC0xMGg3LjV2MjEuMzMzem0zMC43OTYgMjguODg3Yy01LjUxNCAwLTEwLTQuNDg2LTEwLTEwdi04LjI3MWg5MS40NTdjLS44NTEgNi42NjgtLjQzNyAxMi43ODcuNzMxIDE4LjI3MWgtODIuMTg4em03OS40ODItMTEzLjY5OGMtMy4xMjQgMjAuOTA2IDEyLjQyNyAzMy4xODQgMjEuNjI1IDM3LjA0IDUuNDQxIDIuOTY4IDcuNTUxIDUuNjQ3IDcuNzAxIDcuMTg4LjIxIDIuMTUtMi41NTMgNS42ODQtNC40NzcgNy4yNTEtLjQ4Mi4zNzgtLjkyOS44LTEuMzM1IDEuMjYxLTYuOTg3IDcuOTM2LTExLjk4MiAxNS41Mi0xNS40MzIgMjIuNjg4aC05Ny41NjRWMzBjMC01LjUxNCA0LjQ4Ni0xMCAxMC0xMGgxMjMuNzY5YzUuNTE0IDAgMTAgNC40ODYgMTAgMTB2MTM1LjU3OWMtMy4wMzItLjM4MS02LjE1LS42OTQtOS4zODktLjkxNC0yNS4xNTktMS42OTQtNDIuMzcgNy43NDgtNDQuODk4IDI0LjY2NnoiLz48cGF0aCBkPSJNMTc5LjEyOSA4My4xNjdoLTI0LjA2YTUgNSAwIDAgMC01IDV2MjQuMDYxYTUgNSAwIDAgMCA1IDVoMjQuMDZhNSA1IDAgMCAwIDUtNVY4OC4xNjdhNSA1IDAgMCAwLTUtNXpNMTcyLjYyOSAxNDIuODZoLTEyLjU2VjEzMC44YTUgNSAwIDEgMC0xMCAwdjE3LjA2MWE1IDUgMCAwIDAgNSA1aDE3LjU2YTUgNSAwIDEgMCAwLTEwLjAwMXpNMjE2LjU2OCA4My4xNjdoLTI0LjA2YTUgNSAwIDAgMC01IDV2MjQuMDYxYTUgNSAwIDAgMCA1IDVoMjQuMDZhNSA1IDAgMCAwIDUtNVY4OC4xNjdhNSA1IDAgMCAwLTUtNXptLTUgMjQuMDYxaC0xNC4wNlY5My4xNjdoMTQuMDZ2MTQuMDYxek0yMTEuNjY5IDEyNS45MzZIMTk3LjQxYTUgNSAwIDAgMC01IDV2MTQuMjU3YTUgNSAwIDAgMCA1IDVoMTQuMjU5YTUgNSAwIDAgMCA1LTV2LTE0LjI1N2E1IDUgMCAwIDAtNS01eiIvPjwvc3ZnPg==",et=J+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1OS4wMTggNTkuMDE4IiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1OS4wMTggNTkuMDE4IiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJtNTguNzQxIDU0LjgwOS01Ljk2OS02LjI0NGExMC43NCAxMC43NCAwIDAgMCAyLjgyLTcuMjVjMC01Ljk1My00Ljg0My0xMC43OTYtMTAuNzk2LTEwLjc5NlMzNCAzNS4zNjEgMzQgNDEuMzE0IDM4Ljg0MyA1Mi4xMSA0NC43OTYgNTIuMTFjMi40NDEgMCA0LjY4OC0uODI0IDYuNDk5LTIuMTk2bDYuMDAxIDYuMjc3YS45OTguOTk4IDAgMCAwIDEuNDE0LjAzMiAxIDEgMCAwIDAgLjAzMS0xLjQxNHpNMzYgNDEuMzE0YzAtNC44NSAzLjk0Ni04Ljc5NiA4Ljc5Ni04Ljc5NnM4Ljc5NiAzLjk0NiA4Ljc5NiA4Ljc5Ni0zLjk0NiA4Ljc5Ni04Ljc5NiA4Ljc5NlMzNiA0Ni4xNjQgMzYgNDEuMzE0ek0xMC40MzEgMTYuMDg4YzAgMy4wNyAyLjQ5OCA1LjU2OCA1LjU2OSA1LjU2OHM1LjU2OS0yLjQ5OCA1LjU2OS01LjU2OGMwLTMuMDcxLTIuNDk4LTUuNTY5LTUuNTY5LTUuNTY5cy01LjU2OSAyLjQ5OC01LjU2OSA1LjU2OXptOS4xMzggMGMwIDEuOTY4LTEuNjAyIDMuNTY4LTMuNTY5IDMuNTY4cy0zLjU2OS0xLjYwMS0zLjU2OS0zLjU2OCAxLjYwMi0zLjU2OSAzLjU2OS0zLjU2OSAzLjU2OSAxLjYwMSAzLjU2OSAzLjU2OXoiLz48cGF0aCBkPSJtMzAuODgyIDI4Ljk4NyA5LjE4LTEwLjA1NCAxMS4yNjIgMTAuMzIzYTEgMSAwIDAgMCAxLjM1MS0xLjQ3NWwtMTItMTFhMSAxIDAgMCAwLTEuNDE0LjA2M2wtOS43OTQgMTAuNzI3LTQuNzQzLTQuNzQzYTEuMDAzIDEuMDAzIDAgMCAwLTEuMzY4LS4wNDRMNi4zMzkgMzcuNzY4YTEgMSAwIDEgMCAxLjMyMiAxLjUwMWwxNi4zMTMtMTQuMzYyIDcuMzE5IDcuMzE4YS45OTkuOTk5IDAgMSAwIDEuNDE0LTEuNDE0bC0xLjgyNS0xLjgyNHoiLz48cGF0aCBkPSJNMzAgNDYuNTE4SDJ2LTQyaDU0djI4YTEgMSAwIDEgMCAyIDB2LTI5YTEgMSAwIDAgMC0xLTFIMWExIDEgMCAwIDAtMSAxdjQ0YTEgMSAwIDAgMCAxIDFoMjlhMSAxIDAgMSAwIDAtMnoiLz48L3N2Zz4=",rt=J+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NjAgNDYwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0NjAgNDYwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNMjMwIDBDMTAyLjk3NSAwIDAgMTAyLjk3NSAwIDIzMHMxMDIuOTc1IDIzMCAyMzAgMjMwIDIzMC0xMDIuOTc0IDIzMC0yMzBTMzU3LjAyNSAwIDIzMCAwem0zOC4zMzMgMzc3LjM2YzAgOC42NzYtNy4wMzQgMTUuNzEtMTUuNzEgMTUuNzFoLTQzLjEwMWMtOC42NzYgMC0xNS43MS03LjAzNC0xNS43MS0xNS43MVYyMDIuNDc3YzAtOC42NzYgNy4wMzMtMTUuNzEgMTUuNzEtMTUuNzFoNDMuMTAxYzguNjc2IDAgMTUuNzEgNy4wMzMgMTUuNzEgMTUuNzFWMzc3LjM2ek0yMzAgMTU3Yy0yMS41MzkgMC0zOS0xNy40NjEtMzktMzlzMTcuNDYxLTM5IDM5LTM5IDM5IDE3LjQ2MSAzOSAzOS0xNy40NjEgMzktMzkgMzl6Ii8+PC9zdmc+",nt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAAQgAAAEIBarqQRAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAE1SURBVDiNfdI7S0NBEAXgLya1otFgpbYSbISAgpXYi6CmiH9KCAiChaVga6OiWPgfRDQ+0itaGVNosXtluWwcuMzePfM4M3sq8lbHBubwg1dc4m1E/J/N4ghDPOIsfk/4xiEao5KX0McFljN4C9d4QTPXuY99jP3DsIoDPGM6BY5i5yI5R7O4q+ImFkJY2DCh3cAH2klyB+9J1xUMMAG7eCh1a+Mr+k48b5diXrFVwwLuS+BJ9MfR7+G0FHOHhTHhnXNWS87VDF4pcnfQK4Ep7XScNLmPTZgURNKKYENYWDpzW1BhscS1WHS8CDgURFJQrWcoF3c13KKbgg1BYQfy8xZWEzTTw1QZbAoKu8FqJnktdu5hcVSHmchiILzzuaDQvjBzV2m8yohCE1jHfPx/xhU+y4G/D75ELlRJsSYAAAAASUVORK5CYII=",it=function(){function t(){}return t.createDefault=function(){return{hasPermission:!1,lastUsedCameraId:null}},t}(),ot=function(){function t(){this.data=it.createDefault();var e=localStorage.getItem(t.LOCAL_STORAGE_KEY);e?this.data=JSON.parse(e):this.reset()}return t.prototype.hasCameraPermissions=function(){return this.data.hasPermission},t.prototype.getLastUsedCameraId=function(){return this.data.lastUsedCameraId},t.prototype.setHasPermission=function(t){this.data.hasPermission=t,this.flush()},t.prototype.setLastUsedCameraId=function(t){this.data.lastUsedCameraId=t,this.flush()},t.prototype.resetLastUsedCameraId=function(){this.data.lastUsedCameraId=null,this.flush()},t.prototype.reset=function(){this.data=it.createDefault(),this.flush()},t.prototype.flush=function(){localStorage.setItem(t.LOCAL_STORAGE_KEY,JSON.stringify(this.data))},t.LOCAL_STORAGE_KEY="HTML5_QRCODE_DATA",t}(),at=function(){function t(){this.infoDiv=document.createElement("div")}return t.prototype.renderInto=function(t){this.infoDiv.style.position="absolute",this.infoDiv.style.top="10px",this.infoDiv.style.right="10px",this.infoDiv.style.zIndex="2",this.infoDiv.style.display="none",this.infoDiv.style.padding="5pt",this.infoDiv.style.border="1px solid #171717",this.infoDiv.style.fontSize="10pt",this.infoDiv.style.background="rgb(0 0 0 / 69%)",this.infoDiv.style.borderRadius="5px",this.infoDiv.style.textAlign="center",this.infoDiv.style.fontWeight="400",this.infoDiv.style.color="white",this.infoDiv.innerText=E.poweredBy();var e=document.createElement("a");e.innerText="ScanApp",e.href="https://scanapp.org",e.target="new",e.style.color="white",this.infoDiv.appendChild(e);var r=document.createElement("br"),n=document.createElement("br");this.infoDiv.appendChild(r),this.infoDiv.appendChild(n);var i=document.createElement("a");i.innerText=E.reportIssues(),i.href="https://github.com/mebjas/html5-qrcode/issues",i.target="new",i.style.color="white",this.infoDiv.appendChild(i),t.appendChild(this.infoDiv)},t.prototype.show=function(){this.infoDiv.style.display="block"},t.prototype.hide=function(){this.infoDiv.style.display="none"},t}(),st=function(){function t(t,e){this.isShowingInfoIcon=!0,this.onTapIn=t,this.onTapOut=e,this.infoIcon=document.createElement("img")}return t.prototype.renderInto=function(t){var e=this;this.infoIcon.alt="Info icon",this.infoIcon.src=rt,this.infoIcon.style.position="absolute",this.infoIcon.style.top="4px",this.infoIcon.style.right="4px",this.infoIcon.style.opacity="0.6",this.infoIcon.style.cursor="pointer",this.infoIcon.style.zIndex="2",this.infoIcon.style.width="16px",this.infoIcon.style.height="16px",this.infoIcon.onmouseover=function(t){return e.onHoverIn()},this.infoIcon.onmouseout=function(t){return e.onHoverOut()},this.infoIcon.onclick=function(t){return e.onClick()},t.appendChild(this.infoIcon)},t.prototype.onHoverIn=function(){this.isShowingInfoIcon&&(this.infoIcon.style.opacity="1")},t.prototype.onHoverOut=function(){this.isShowingInfoIcon&&(this.infoIcon.style.opacity="0.6")},t.prototype.onClick=function(){this.isShowingInfoIcon?(this.isShowingInfoIcon=!1,this.onTapIn(),this.infoIcon.src=nt,this.infoIcon.style.opacity="1"):(this.isShowingInfoIcon=!0,this.onTapOut(),this.infoIcon.src=rt,this.infoIcon.style.opacity="0.6")},t}(),ct=function(){function t(){var t=this;this.infoDiv=new at,this.infoIcon=new st((function(){t.infoDiv.show()}),(function(){t.infoDiv.hide()}))}return t.prototype.renderInto=function(t){this.infoDiv.renderInto(t),this.infoIcon.renderInto(t)},t}(),ut=function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,o){function a(t){try{c(n.next(t))}catch(e){o(e)}}function s(t){try{c(n["throw"](t))}catch(e){o(e)}}function c(t){t.done?r(t.value):i(t.value).then(a,s)}c((n=n.apply(t,e||[])).next())}))},lt=function(t,e){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(a=0)),a)try{if(r=1,n&&(i=2&s[0]?n["return"]:s[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!(i=i.length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]1},t.prototype.isCameraScanRequired=function(){for(var e=0,r=this.supportedScanTypes;ee)throw"Max ".concat(e," values expected for ")+"supportedScanTypes";for(var r=0,n=t;r0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]e){var r=t.substring(0,8),n=t.length,i=t.substring(n-8,n);t="".concat(r,"....").concat(i)}var o=y.fileSelectionChooseAnother()+" - "+t;this.fileSelectionButton.innerText=o},t.prototype.setInitialValueToButton=function(){var t=y.fileSelectionChooseImage()+" - "+y.fileSelectionNoImageSelected();this.fileSelectionButton.innerText=t},t.prototype.getFileScanInputId=function(){return"html5-qrcode-private-filescan-input"},t.create=function(e,r,n){var i=new t(e,r,n);return i},t}(),Ct=function(){function t(t){this.selectElement=gt.createElement("select",ft.CAMERA_SELECTION_SELECT_ID),this.cameras=t,this.options=[]}return t.prototype.render=function(t){var e=document.createElement("span");e.style.marginRight="10px";var r=this.cameras.length;if(0===r)throw new Error("No cameras found");if(1===r)e.style.display="none";else{var n=y.selectCamera();e.innerText="".concat(n," (").concat(this.cameras.length,") ")}for(var i=1,o=0,a=this.cameras;o0?(t.removeChild(e),n.renderCameraSelection(r)):(n.setHeaderMessage(y.noCameraFound(),G.STATUS_WARNING),i())})).catch((function(t){n.persistedDataManager.setHasPermission(!1),r?r.disabled=!1:i(),n.setHeaderMessage(t,G.STATUS_WARNING),n.showHideScanTypeSwapLink(!0)}))},t.prototype.createPermissionButton=function(t,e){var r=this,n=gt.createElement("button",this.getCameraPermissionButtonId());n.innerText=y.cameraPermissionTitle(),n.addEventListener("click",(function(){n.disabled=!0,r.createCameraListUi(t,e,n)})),e.appendChild(n)},t.prototype.createPermissionsUi=function(t,e){var r=this;dt.isCameraScanType(this.currentScanType)&&this.persistedDataManager.hasCameraPermissions()?ht.hasPermissions().then((function(n){n?r.createCameraListUi(t,e):(r.persistedDataManager.setHasPermission(!1),r.createPermissionButton(t,e))})).catch((function(n){r.persistedDataManager.setHasPermission(!1),r.createPermissionButton(t,e)})):this.createPermissionButton(t,e)},t.prototype.createSectionControlPanel=function(){var t=document.getElementById(this.getDashboardSectionId()),e=document.createElement("div");t.appendChild(e);var r=document.createElement("div");r.id=this.getDashboardSectionCameraScanRegionId(),r.style.display=dt.isCameraScanType(this.currentScanType)?"block":"none",e.appendChild(r);var n=document.createElement("div");n.style.textAlign="center",r.appendChild(n),this.scanTypeSelector.isCameraScanRequired()&&this.createPermissionsUi(r,n),this.renderFileScanUi(e)},t.prototype.renderFileScanUi=function(t){var e=dt.isFileScanType(this.currentScanType),r=this,n=function(t){if(!r.html5Qrcode)throw"html5Qrcode not defined";dt.isFileScanType(r.currentScanType)&&(r.setHeaderMessage(y.loadingImage()),r.html5Qrcode.scanFileV2(t,!0).then((function(t){r.resetHeaderMessage(),r.qrCodeSuccessCallback(t.decodedText,t)})).catch((function(t){r.setHeaderMessage(t,G.STATUS_WARNING),r.qrCodeErrorCallback(t,d.createFrom(t))})))};this.fileSelectionUi=Et.create(t,e,n)},t.prototype.renderCameraSelection=function(t){var e=this,r=this,n=document.getElementById(this.getDashboardSectionCameraScanRegionId());n.style.textAlign="center";var i=At.create(n,!1),o=function(t){var r=t.zoomFeature();if(r.isSupported()){i.setOnCameraZoomValueChangeCallback((function(t){r.apply(t)}));var n=1;e.config.defaultZoomValueIfSupported&&(n=e.config.defaultZoomValueIfSupported),n=p(n,r.min(),r.max()),i.setValues(r.min(),r.max(),n,r.step()),i.show()}},a=Ct.create(n,t),s=document.createElement("span"),c=gt.createElement("button",ft.CAMERA_START_BUTTON_ID);c.innerText=y.scanButtonStartScanningText(),s.appendChild(c);var u,l=gt.createElement("button",ft.CAMERA_STOP_BUTTON_ID);l.innerText=y.scanButtonStopScanningText(),l.style.display="none",l.disabled=!0,s.appendChild(l);var h=function(t){t.torchFeature().isSupported()?(u?u.updateTorchCapability(t.torchFeature()):u=yt.create(s,t.torchFeature(),{display:"none",marginLeft:"5px"},(function(t){r.setHeaderMessage(t,G.STATUS_WARNING)})),u.show()):u&&u.hide()};n.appendChild(s);var d=function(t){t||(c.style.display="none"),c.innerText=y.scanButtonStartScanningText(),c.style.opacity="1",c.disabled=!1,t&&(c.style.display="inline-block")};if(c.addEventListener("click",(function(t){c.innerText=y.scanButtonScanningStarting(),a.disable(),c.disabled=!0,c.style.opacity="0.5",e.scanTypeSelector.hasMoreThanOneScanType()&&r.showHideScanTypeSwapLink(!1),r.resetHeaderMessage();var n=a.getValue();r.persistedDataManager.setLastUsedCameraId(n),r.html5Qrcode.start(n,St(r.config),r.qrCodeSuccessCallback,r.qrCodeErrorCallback).then((function(t){l.disabled=!1,l.style.display="inline-block",d(!1);var n=r.html5Qrcode.getRunningTrackCameraCapabilities();!0===e.config.showTorchButtonIfSupported&&h(n),!0===e.config.showZoomSliderIfSupported&&o(n)})).catch((function(t){r.showHideScanTypeSwapLink(!0),a.enable(),d(!0),r.setHeaderMessage(t,G.STATUS_WARNING)}))})),a.hasSingleItem()&&c.click(),l.addEventListener("click",(function(t){if(!r.html5Qrcode)throw"html5Qrcode not defined";l.disabled=!0,r.html5Qrcode.stop().then((function(t){e.scanTypeSelector.hasMoreThanOneScanType()&&r.showHideScanTypeSwapLink(!0),a.enable(),c.disabled=!1,l.style.display="none",c.style.display="inline-block",u&&(u.reset(),u.hide()),i.removeOnCameraZoomValueChangeCallback(),i.hide(),r.insertCameraScanImageToScanRegion()})).catch((function(t){l.disabled=!1,r.setHeaderMessage(t,G.STATUS_WARNING)}))})),r.persistedDataManager.getLastUsedCameraId()){var f=r.persistedDataManager.getLastUsedCameraId();a.hasValue(f)?(a.setValue(f),c.click()):r.persistedDataManager.resetLastUsedCameraId()}},t.prototype.createSectionSwap=function(){var t=this,e=y.textIfCameraScanSelected(),r=y.textIfFileScanSelected(),n=document.getElementById(this.getDashboardSectionId()),i=document.createElement("div");i.style.textAlign="center";var a=gt.createElement("span",this.getDashboardSectionSwapLinkId());a.style.textDecoration="underline",a.style.cursor="pointer",a.innerText=dt.isCameraScanType(this.currentScanType)?e:r,a.addEventListener("click",(function(){t.sectionSwapAllowed?(t.resetHeaderMessage(),t.fileSelectionUi.resetValue(),t.sectionSwapAllowed=!1,dt.isCameraScanType(t.currentScanType)?(t.clearScanRegion(),t.getCameraScanRegion().style.display="none",t.fileSelectionUi.show(),a.innerText=r,t.currentScanType=o.SCAN_TYPE_FILE,t.insertFileScanImageToScanRegion()):(t.clearScanRegion(),t.getCameraScanRegion().style.display="block",t.fileSelectionUi.hide(),a.innerText=e,t.currentScanType=o.SCAN_TYPE_CAMERA,t.insertCameraScanImageToScanRegion(),t.startCameraScanIfPermissionExistsOnSwap()),t.sectionSwapAllowed=!0):t.verbose&&t.logger.logError("Section swap called when not allowed")})),i.appendChild(a),n.appendChild(i)},t.prototype.startCameraScanIfPermissionExistsOnSwap=function(){var t=this,e=this;this.persistedDataManager.hasCameraPermissions()&&ht.hasPermissions().then((function(r){if(r){var n=document.getElementById(e.getCameraPermissionButtonId());if(!n)throw t.logger.logError("Permission button not found, fail;"),"Permission button not found";n.click()}else e.persistedDataManager.setHasPermission(!1)})).catch((function(t){e.persistedDataManager.setHasPermission(!1)}))},t.prototype.resetHeaderMessage=function(){var t=document.getElementById(this.getHeaderMessageContainerId());t.style.display="none"},t.prototype.setHeaderMessage=function(t,e){e||(e=G.STATUS_DEFAULT);var r=this.getHeaderMessageDiv();switch(r.innerText=t,r.style.display="block",e){case G.STATUS_SUCCESS:r.style.background="rgba(106, 175, 80, 0.26)",r.style.color="#477735";break;case G.STATUS_WARNING:r.style.background="rgba(203, 36, 49, 0.14)",r.style.color="#cb2431";break;case G.STATUS_DEFAULT:default:r.style.background="rgba(0, 0, 0, 0)",r.style.color="rgb(17, 17, 17)";break}},t.prototype.showHideScanTypeSwapLink=function(t){this.scanTypeSelector.hasMoreThanOneScanType()&&(!0!==t&&(t=!1),this.sectionSwapAllowed=t,this.getDashboardSectionSwapLink().style.display=t?"inline-block":"none")},t.prototype.insertCameraScanImageToScanRegion=function(){var t=this,e=document.getElementById(this.getScanRegionId());if(this.cameraScanImage)return e.innerHTML="
",void e.appendChild(this.cameraScanImage);this.cameraScanImage=new Image,this.cameraScanImage.onload=function(r){e.innerHTML="
",e.appendChild(t.cameraScanImage)},this.cameraScanImage.width=64,this.cameraScanImage.style.opacity="0.8",this.cameraScanImage.src=tt,this.cameraScanImage.alt=y.cameraScanAltText()},t.prototype.insertFileScanImageToScanRegion=function(){var t=this,e=document.getElementById(this.getScanRegionId());if(this.fileScanImage)return e.innerHTML="
",void e.appendChild(this.fileScanImage);this.fileScanImage=new Image,this.fileScanImage.onload=function(r){e.innerHTML="
",e.appendChild(t.fileScanImage)},this.fileScanImage.width=64,this.fileScanImage.style.opacity="0.8",this.fileScanImage.src=et,this.fileScanImage.alt=y.fileScanAltText()},t.prototype.clearScanRegion=function(){var t=document.getElementById(this.getScanRegionId());t.innerHTML=""},t.prototype.getDashboardSectionId=function(){return"".concat(this.elementId,"__dashboard_section")},t.prototype.getDashboardSectionCameraScanRegionId=function(){return"".concat(this.elementId,"__dashboard_section_csr")},t.prototype.getDashboardSectionSwapLinkId=function(){return ft.SCAN_TYPE_CHANGE_ANCHOR_ID},t.prototype.getScanRegionId=function(){return"".concat(this.elementId,"__scan_region")},t.prototype.getDashboardId=function(){return"".concat(this.elementId,"__dashboard")},t.prototype.getHeaderMessageContainerId=function(){return"".concat(this.elementId,"__header_message")},t.prototype.getCameraPermissionButtonId=function(){return ft.CAMERA_PERMISSION_BUTTON_ID},t.prototype.getCameraScanRegion=function(){return document.getElementById(this.getDashboardSectionCameraScanRegionId())},t.prototype.getDashboardSectionSwapLink=function(){return document.getElementById(this.getDashboardSectionSwapLinkId())},t.prototype.getHeaderMessageDiv=function(){return document.getElementById(this.getHeaderMessageContainerId())}})()},bb6f:function(t,e,r){t.exports=function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s="fb15")}({"00b4":function(t,e,r){"use strict";r("ac1f");var n=r("23e7"),i=r("c65b"),o=r("1626"),a=r("825a"),s=r("577e"),c=function(){var t=!1,e=/[ac]/;return e.exec=function(){return t=!0,/./.exec.apply(this,arguments)},!0===e.test("abc")&&t}(),u=/./.test;n({target:"RegExp",proto:!0,forced:!c},{test:function(t){var e=a(this),r=s(t),n=e.exec;if(!o(n))return i(u,e,r);var c=i(n,e,r);return null!==c&&(a(c),!0)}})},"00ee":function(t,e,r){"use strict";var n=r("b622"),i=n("toStringTag"),o={};o[i]="z",t.exports="[object z]"===String(o)},"01b4":function(t,e,r){"use strict";var n=function(){this.head=null,this.tail=null};n.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t){var e=this.head=t.next;return null===e&&(this.tail=null),t.item}}},t.exports=n},"0366":function(t,e,r){"use strict";var n=r("4625"),i=r("59ed"),o=r("40d5"),a=n(n.bind);t.exports=function(t,e){return i(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},"04f8":function(t,e,r){"use strict";var n=r("2d00"),i=r("d039"),o=r("da84"),a=o.String;t.exports=!!Object.getOwnPropertySymbols&&!i((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},"0538":function(t,e,r){"use strict";var n=r("e330"),i=r("59ed"),o=r("861d"),a=r("1a2d"),s=r("f36a"),c=r("40d5"),u=Function,l=n([].concat),h=n([].join),d={},f=function(t,e,r){if(!a(d,e)){for(var n=[],i=0;i=r&&parseInt(n[r],10)}function A(){if("object"===("undefined"===typeof window?"undefined":Object(w["a"])(window))){if(y)return;"undefined"!==typeof console&&"function"===typeof console.log&&console.log.apply(console,arguments)}}function S(t,e){E&&console.warn(t+" is deprecated, please use "+e+" instead.")}function v(t){var e={browser:null,version:null};if("undefined"===typeof t||!t.navigator)return e.browser="Not a browser.",e;var r=t.navigator;if(r.mozGetUserMedia)e.browser="firefox",e.version=C(r.userAgent,/Firefox\/(\d+)\./,1);else if(r.webkitGetUserMedia||!1===t.isSecureContext&&t.webkitRTCPeerConnection&&!t.RTCIceGatherer)e.browser="chrome",e.version=C(r.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(r.mediaDevices&&r.userAgent.match(/Edge\/(\d+).(\d+)$/))e.browser="edge",e.version=C(r.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!t.RTCPeerConnection||!r.userAgent.match(/AppleWebKit\/(\d+)\./))return e.browser="Not a supported browser.",e;e.browser="safari",e.version=C(r.userAgent,/AppleWebKit\/(\d+)\./,1),e.supportsUnifiedPlan=t.RTCRtpTransceiver&&"currentDirection"in t.RTCRtpTransceiver.prototype}return e}function b(t){return"[object Object]"===Object.prototype.toString.call(t)}function I(t){return b(t)?Object.keys(t).reduce((function(e,r){var n=b(t[r]),i=n?I(t[r]):t[r],o=n&&!Object.keys(i).length;return void 0===i||o?e:Object.assign(e,a({},r,i))}),{}):t}var _=A;function T(t){var e=t&&t.navigator;if(e.mediaDevices){var r=v(t),n=function(t){if("object"!==Object(w["a"])(t)||t.mandatory||t.optional)return t;var e={};return Object.keys(t).forEach((function(r){if("require"!==r&&"advanced"!==r&&"mediaSource"!==r){var n="object"===Object(w["a"])(t[r])?t[r]:{ideal:t[r]};void 0!==n.exact&&"number"===typeof n.exact&&(n.min=n.max=n.exact);var i=function(t,e){return t?t+e.charAt(0).toUpperCase()+e.slice(1):"deviceId"===e?"sourceId":e};if(void 0!==n.ideal){e.optional=e.optional||[];var o={};"number"===typeof n.ideal?(o[i("min",r)]=n.ideal,e.optional.push(o),o={},o[i("max",r)]=n.ideal,e.optional.push(o)):(o[i("",r)]=n.ideal,e.optional.push(o))}void 0!==n.exact&&"number"!==typeof n.exact?(e.mandatory=e.mandatory||{},e.mandatory[i("",r)]=n.exact):["min","max"].forEach((function(t){void 0!==n[t]&&(e.mandatory=e.mandatory||{},e.mandatory[i(t,r)]=n[t])}))}})),t.advanced&&(e.optional=(e.optional||[]).concat(t.advanced)),e},i=function(t,i){if(r.version>=61)return i(t);if(t=JSON.parse(JSON.stringify(t)),t&&"object"===Object(w["a"])(t.audio)){var o=function(t,e,r){e in t&&!(r in t)&&(t[r]=t[e],delete t[e])};t=JSON.parse(JSON.stringify(t)),o(t.audio,"autoGainControl","googAutoGainControl"),o(t.audio,"noiseSuppression","googNoiseSuppression"),t.audio=n(t.audio)}if(t&&"object"===Object(w["a"])(t.video)){var a=t.video.facingMode;a=a&&("object"===Object(w["a"])(a)?a:{ideal:a});var s,c=r.version<66;if(a&&("user"===a.exact||"environment"===a.exact||"user"===a.ideal||"environment"===a.ideal)&&(!e.mediaDevices.getSupportedConstraints||!e.mediaDevices.getSupportedConstraints().facingMode||c))if(delete t.video.facingMode,"environment"===a.exact||"environment"===a.ideal?s=["back","rear"]:"user"!==a.exact&&"user"!==a.ideal||(s=["front"]),s)return e.mediaDevices.enumerateDevices().then((function(e){e=e.filter((function(t){return"videoinput"===t.kind}));var r=e.find((function(t){return s.some((function(e){return t.label.toLowerCase().includes(e)}))}));return!r&&e.length&&s.includes("back")&&(r=e[e.length-1]),r&&(t.video.deviceId=a.exact?{exact:r.deviceId}:{ideal:r.deviceId}),t.video=n(t.video),_("chrome: "+JSON.stringify(t)),i(t)}));t.video=n(t.video)}return _("chrome: "+JSON.stringify(t)),i(t)},o=function(t){return r.version>=64?t:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[t.name]||t.name,message:t.message,constraint:t.constraint||t.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}},a=function(t,r,n){i(t,(function(t){e.webkitGetUserMedia(t,r,(function(t){n&&n(o(t))}))}))};if(e.getUserMedia=a.bind(e),e.mediaDevices.getUserMedia){var s=e.mediaDevices.getUserMedia.bind(e.mediaDevices);e.mediaDevices.getUserMedia=function(t){return i(t,(function(t){return s(t).then((function(e){if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach((function(t){t.stop()})),new DOMException("","NotFoundError");return e}),(function(t){return Promise.reject(o(t))}))}))}}}}function R(t){var e=t&&t.navigator,r=function(t){return{name:{PermissionDeniedError:"NotAllowedError"}[t.name]||t.name,message:t.message,constraint:t.constraint,toString:function(){return this.name}}},n=e.mediaDevices.getUserMedia.bind(e.mediaDevices);e.mediaDevices.getUserMedia=function(t){return n(t).catch((function(t){return Promise.reject(r(t))}))}}function D(t){var e=v(t),r=t&&t.navigator,n=t&&t.MediaStreamTrack;if(r.getUserMedia=function(t,e,n){S("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(t).then(e,n)},!(e.version>55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){var i=function(t,e,r){e in t&&!(r in t)&&(t[r]=t[e],delete t[e])},o=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(t){return"object"===Object(w["a"])(t)&&"object"===Object(w["a"])(t.audio)&&(t=JSON.parse(JSON.stringify(t)),i(t.audio,"autoGainControl","mozAutoGainControl"),i(t.audio,"noiseSuppression","mozNoiseSuppression")),o(t)},n&&n.prototype.getSettings){var a=n.prototype.getSettings;n.prototype.getSettings=function(){var t=a.apply(this,arguments);return i(t,"mozAutoGainControl","autoGainControl"),i(t,"mozNoiseSuppression","noiseSuppression"),t}}if(n&&n.prototype.applyConstraints){var s=n.prototype.applyConstraints;n.prototype.applyConstraints=function(t){return"audio"===this.kind&&"object"===Object(w["a"])(t)&&(t=JSON.parse(JSON.stringify(t)),i(t,"autoGainControl","mozAutoGainControl"),i(t,"noiseSuppression","mozNoiseSuppression")),s.apply(this,[t])}}}}r("a434");function O(t){var e=t&&t.navigator;if(e.mediaDevices&&e.mediaDevices.getUserMedia){var r=e.mediaDevices,n=r.getUserMedia.bind(r);e.mediaDevices.getUserMedia=function(t){return n(N(t))}}!e.getUserMedia&&e.mediaDevices&&e.mediaDevices.getUserMedia&&(e.getUserMedia=function(t,r,n){e.mediaDevices.getUserMedia(t).then(r,n)}.bind(e))}function N(t){return t&&void 0!==t.video?Object.assign({},t,{video:I(t.video)}):t}var M=function(t){var e=!1,r=void 0;return function(){return e||(r=t.apply(void 0,arguments),e=!0),r}},P=M((function(){var t=v(window),e=t.browser;switch(e){case"chrome":T(window);break;case"firefox":D(window);break;case"edge":R(window);break;case"safari":O(window);break;default:throw new p["c"]}})),L=function(){function t(e,r){Object(f["a"])(this,t),this.videoEl=e,this.stream=r}return Object(g["a"])(t,[{key:"stop",value:function(){var t=this;this.videoEl.srcObject=null,this.stream.getTracks().forEach((function(e){t.stream.removeTrack(e),e.stop()}))}},{key:"getCapabilities",value:function(){var t,e,r=this.stream.getVideoTracks(),n=Object(d["a"])(r,1),i=n[0];return null!==(t=null===i||void 0===i||null===(e=i.getCapabilities)||void 0===e?void 0:e.call(i))&&void 0!==t?t:{}}}])}(),x=function(){var t=Object(l["a"])(Object(u["a"])().mark((function t(e){var r,n,i,o;return Object(u["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r=["OBS Virtual Camera","OBS-Camera","Desk View Camera","Schreibtischansicht-Kamera","Caméra Desk View","Fotocamera di Panoramica Scrivania","Rückseitige Ultra-Weitwinkelkamera","Rückseitige Telefotokamera","Rückseitige Dual-Weitwinkelkamera","Rückseitige Triple-Kamera","Back Dual Wide Camera","Back Triple Camera","Back Ultra Wide Camera","Zadní ultra širokoúhlý fotoaparát","Stolní kamera","Ultrabrede camera aan voorzijde","Front Ultra Wide Camera"],t.next=3,navigator.mediaDevices.enumerateDevices();case 3:if(n=t.sent.filter((function(t){var e=t.kind;return"videoinput"===e})).filter((function(t){var e=t.label;return!r.includes(e)})).filter((function(t){var e=t.label;return!e.includes("infrared")})),!(n.length>2)){t.next=16;break}i=n[0],o=n[n.length-1],t.t0=e,t.next="auto"===t.t0?10:"rear"===t.t0?11:"front"===t.t0?12:13;break;case 10:return t.abrupt("return",{deviceId:{exact:o.deviceId}});case 11:return t.abrupt("return",{deviceId:{exact:o.deviceId}});case 12:return t.abrupt("return",{deviceId:{exact:i.deviceId}});case 13:return t.abrupt("return",void 0);case 14:t.next=23;break;case 16:t.t1=e,t.next="auto"===t.t1?19:"rear"===t.t1?20:"front"===t.t1?21:22;break;case 19:return t.abrupt("return",{facingMode:{ideal:"environment"}});case 20:return t.abrupt("return",{facingMode:{exact:"environment"}});case 21:return t.abrupt("return",{facingMode:{exact:"user"}});case 22:return t.abrupt("return",void 0);case 23:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),B=function(t,e){return k.apply(this,arguments)};function k(){return k=Object(l["a"])(Object(u["a"])().mark((function t(e,r){var n,i,o,a,s,l,h,f,g;return Object(u["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=r.camera,o=r.torch,!0===window.isSecureContext){t.next=3;break}throw new p["b"];case 3:if(void 0!==(null===(n=navigator)||void 0===n||null===(n=n.mediaDevices)||void 0===n?void 0:n.getUserMedia)){t.next=5;break}throw new p["c"];case 5:return t.next=7,P();case 7:return t.t0=c,t.t1={width:{min:360,ideal:640,max:1920},height:{min:240,ideal:480,max:1080}},t.next=11,x(i);case 11:return t.t2=t.sent,t.t3=(0,t.t0)(t.t1,t.t2),a={audio:!1,video:t.t3},t.next=16,navigator.mediaDevices.getUserMedia(a);case 16:return s=t.sent,void 0!==e.srcObject?e.srcObject=s:void 0!==e.mozSrcObject?e.mozSrcObject=s:window.URL.createObjectURL?e.src=window.URL.createObjectURL(s):window.webkitURL?e.src=window.webkitURL.createObjectURL(s):e.src=s,t.next=20,Object(m["a"])(e,"loadeddata");case 20:return t.next=22,Object(m["b"])(500);case 22:return o&&(l=s.getVideoTracks(),h=Object(d["a"])(l,1),f=h[0],g=f.getCapabilities(),g.torch?f.applyConstraints({advanced:[{torch:!0}]}):console.warn("device does not support torch capability")),t.abrupt("return",new L(e,s));case 24:case"end":return t.stop()}}),t)}))),k.apply(this,arguments)}var F=r("b3af"),U={name:"qrcode-stream",mixins:[F["a"]],props:{camera:{type:String,default:"auto",validator:function(t){return["auto","rear","front","off"].includes(t)}},torch:{type:Boolean,default:!1},track:{type:Function},formats:{type:Array,default:function(){return["qr_code"]}}},data:function(){return{cameraInstance:null,destroyed:!1}},computed:{shouldStream:function(){return!1===this.destroyed&&"off"!==this.camera},shouldScan:function(){return!0===this.shouldStream&&null!==this.cameraInstance},scanInterval:function(){return void 0===this.track?500:40}},watch:{shouldStream:function(t){if(!t){var e=this.$refs.pauseFrame,r=e.getContext("2d"),n=this.$refs.video;e.width=n.videoWidth,e.height=n.videoHeight,r.drawImage(n,0,0,n.videoWidth,n.videoHeight)}},shouldScan:function(t){t&&(this.clearCanvas(this.$refs.pauseFrame),this.clearCanvas(this.$refs.trackingLayer),this.startScanning())},torch:function(){this.init()},camera:function(){this.init()}},mounted:function(){this.init()},beforeDestroy:function(){this.beforeResetCamera(),this.destroyed=!0},methods:{init:function(){var t=this,e=Object(l["a"])(Object(u["a"])().mark((function e(){var r;return Object(u["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.beforeResetCamera(),"off"!==t.camera){e.next=6;break}return t.cameraInstance=null,e.abrupt("return",{capabilities:{}});case 6:return e.next=8,B(t.$refs.video,{camera:t.camera,torch:t.torch});case 8:return t.cameraInstance=e.sent,r=t.cameraInstance.getCapabilities(),t.destroyed&&t.cameraInstance.stop(),e.abrupt("return",{capabilities:r});case 12:case"end":return e.stop()}}),e)})))();this.$emit("init",e)},startScanning:function(){var t=this,e=function(e){t.onDetect(Promise.resolve(e))};Object(h["a"])(this.$refs.video,{detectHandler:e,locateHandler:this.onLocate,minDelay:this.scanInterval,formats:this.formats})},beforeResetCamera:function(){null!==this.cameraInstance&&(this.cameraInstance.stop(),this.cameraInstance=null)},onLocate:function(t){var e=this.$refs.trackingLayer,r=this.$refs.video;if(void 0!==e)if(t.length>0&&void 0!==this.track&&void 0!==r){var n=r.offsetWidth,i=r.offsetHeight,o=r.videoWidth,a=r.videoHeight,s=Math.max(n/o,i/a),u=o*s,l=a*s,h=u/o,d=l/a,f=(n-u)/2,g=(i-l)/2,p=function(t){var e=t.x,r=t.y;return{x:Math.floor(e*h),y:Math.floor(r*d)}},m=function(t){var e=t.x,r=t.y;return{x:Math.floor(e+f),y:Math.floor(r+g)}},w=t.map((function(t){var e=t.boundingBox,r=t.cornerPoints,n=m(p({x:e.x,y:e.y})),i=n.x,o=n.y,a=p({x:e.width,y:e.height}),s=a.x,u=a.y;return c(c({},t),{},{cornerPoints:r.map((function(t){return m(p(t))})),boundingBox:DOMRectReadOnly.fromRect({x:i,y:o,width:s,height:u})})}));e.width=r.offsetWidth,e.height=r.offsetHeight;var y=e.getContext("2d");this.track(w,y)}else this.clearCanvas(e)},repaintTrackingLayer:function(t,e,r){var n=this,i=e.getContext("2d");window.requestAnimationFrame((function(){e.width=displayWidth,e.height=displayHeight,n.trackRepaintFunction(coordinatesAdjusted,i)}))},clearCanvas:function(t){var e=t.getContext("2d");e.clearRect(0,0,t.width,t.height)}}},j=U,H=(r("e848"),r("2877")),V=Object(H["a"])(j,n,i,!1,null,"0ee88866",null);e["a"]=V.exports},"0d26":function(t,e,r){"use strict";var n=r("e330"),i=Error,o=n("".replace),a=function(t){return String(new i(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!i.prepareStackTrace)while(e--)t=o(t,s,"");return t}},"0d51":function(t,e,r){"use strict";var n=String;t.exports=function(t){try{return n(t)}catch(e){return"Object"}}},"0eb6":function(t,e,r){"use strict";var n=r("23e7"),i=r("7c37"),o=r("d066"),a=r("d039"),s=r("7c73"),c=r("5c6c"),u=r("9bf2").f,l=r("cb2d"),h=r("edd0"),d=r("1a2d"),f=r("19aa"),g=r("825a"),p=r("aa1f"),m=r("e391"),w=r("cf98"),y=r("0d26"),E=r("69f3"),C=r("83ab"),A=r("c430"),S="DOMException",v="DATA_CLONE_ERR",b=o("Error"),I=o(S)||function(){try{var t=o("MessageChannel")||i("worker_threads").MessageChannel;(new t).port1.postMessage(new WeakMap)}catch(e){if(e.name===v&&25===e.code)return e.constructor}}(),_=I&&I.prototype,T=b.prototype,R=E.set,D=E.getterFor(S),O="stack"in new b(S),N=function(t){return d(w,t)&&w[t].m?w[t].c:0},M=function(){f(this,P);var t=arguments.length,e=m(t<1?void 0:arguments[0]),r=m(t<2?void 0:arguments[1],"Error"),n=N(r);if(R(this,{type:S,name:r,message:e,code:n}),C||(this.name=r,this.message=e,this.code=n),O){var i=new b(e);i.name=S,u(this,"stack",c(1,y(i.stack,1)))}},P=M.prototype=s(T),L=function(t){return{enumerable:!0,configurable:!0,get:t}},x=function(t){return L((function(){return D(this)[t]}))};C&&(h(P,"code",x("code")),h(P,"message",x("message")),h(P,"name",x("name"))),u(P,"constructor",c(1,M));var B=a((function(){return!(new I instanceof b)})),k=B||a((function(){return T.toString!==p||"2: 1"!==String(new I(1,2))})),F=B||a((function(){return 25!==new I(1,"DataCloneError").code})),U=B||25!==I[v]||25!==_[v],j=A?k||F||U:B;n({global:!0,constructor:!0,forced:j},{DOMException:j?M:I});var H=o(S),V=H.prototype;for(var z in k&&(A||I===H)&&l(V,"toString",p),F&&C&&I===H&&h(V,"code",L((function(){return N(g(this).name)}))),w)if(d(w,z)){var W=w[z],G=W.s,Y=c(6,W.c);d(H,G)||u(H,G,Y),d(V,G)||u(V,G,Y)}},"107c":function(t,e,r){"use strict";var n=r("d039"),i=r("da84"),o=i.RegExp;t.exports=n((function(){var t=o("(?b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$c")}))},"131a":function(t,e,r){"use strict";var n=r("23e7"),i=r("d2bb");n({target:"Object",stat:!0},{setPrototypeOf:i})},"13d2":function(t,e,r){"use strict";var n=r("e330"),i=r("d039"),o=r("1626"),a=r("1a2d"),s=r("83ab"),c=r("5e77").CONFIGURABLE,u=r("8925"),l=r("69f3"),h=l.enforce,d=l.get,f=String,g=Object.defineProperty,p=n("".slice),m=n("".replace),w=n([].join),y=s&&!i((function(){return 8!==g((function(){}),"length",{value:8}).length})),E=String(String).split("String"),C=t.exports=function(t,e,r){"Symbol("===p(f(e),0,7)&&(e="["+m(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(s?g(t,"name",{value:e,configurable:!0}):t.name=e),y&&r&&a(r,"arity")&&t.length!==r.arity&&g(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?s&&g(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(i){}var n=h(t);return a(n,"source")||(n.source=w(E,"string"==typeof e?e:"")),t};Function.prototype.toString=C((function(){return o(this)&&d(this).source||u(this)}),"toString")},"13d5":function(t,e,r){"use strict";var n=r("23e7"),i=r("d58f").left,o=r("a640"),a=r("2d00"),s=r("605d"),c=!s&&a>79&&a<83,u=c||!o("reduce");n({target:"Array",proto:!0,forced:u},{reduce:function(t){var e=arguments.length;return i(this,t,e,e>1?arguments[1]:void 0)}})},"14c3":function(t,e,r){"use strict";var n=r("c65b"),i=r("825a"),o=r("1626"),a=r("c6b6"),s=r("9263"),c=TypeError;t.exports=function(t,e){var r=t.exec;if(o(r)){var u=n(r,t,e);return null!==u&&i(u),u}if("RegExp"===a(t))return n(s,t,e);throw new c("RegExp#exec called on incompatible receiver")}},"14d9":function(t,e,r){"use strict";var n=r("23e7"),i=r("7b0b"),o=r("07fa"),a=r("3a34"),s=r("3511"),c=r("d039"),u=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),l=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},h=u||!l();n({target:"Array",proto:!0,arity:1,forced:h},{push:function(t){var e=i(this),r=o(e),n=arguments.length;s(r+n);for(var c=0;c1?arguments[1]:void 0)}},"19aa":function(t,e,r){"use strict";var n=r("3a9b"),i=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new i("Incorrect invocation")}},"1a2d":function(t,e,r){"use strict";var n=r("e330"),i=r("7b0b"),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(i(t),e)}},"1be4":function(t,e,r){"use strict";var n=r("d066");t.exports=n("document","documentElement")},"1c7e":function(t,e,r){"use strict";var n=r("b622"),i=n("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(c){}t.exports=function(t,e){try{if(!e&&!o)return!1}catch(c){return!1}var r=!1;try{var n={};n[i]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(c){}return r}},"1cc0":function(t,e,r){"use strict";r.d(e,"a",(function(){return m})),r.d(e,"c",(function(){return w})),r.d(e,"b",(function(){return y}));var n=r("bee2"),i=r("d4ec");r("4ae1"),r("3410"),r("1f68"),r("131a");function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function a(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(a=function(){return!!t})()}r("d9e2");var s=r("53ca");function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e){if(e&&("object"===Object(s["a"])(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}function l(t,e,r){return e=o(e),u(t,a()?Reflect.construct(e,r||[],o(t).constructor):e.apply(t,r))}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}r("e260"),r("4ec9"),r("d3b7"),r("3ca3"),r("ddb0"),r("25f0");function f(t){try{return-1!==Function.toString.call(t).indexOf("[native code]")}catch(e){return"function"===typeof t}}r("14d9");function g(t,e,r){if(a())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,e);var i=new(t.bind.apply(t,n));return r&&h(i,r.prototype),i}function p(t){var e="function"===typeof Map?new Map:void 0;return p=function(t){if(null===t||!f(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return g(t,arguments,o(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h(r,t)},p(t)}r("b0c0");var m=function(t){function e(){var t;return Object(i["a"])(this,e),t=l(this,e,["can't process cross-origin image"]),t.name="DropImageFetchError",t}return d(e,t),Object(n["a"])(e)}(p(Error)),w=function(t){function e(){var t;return Object(i["a"])(this,e),t=l(this,e,["this browser has no Stream API support"]),t.name="StreamApiNotSupportedError",t}return d(e,t),Object(n["a"])(e)}(p(Error)),y=function(t){function e(){var t;return Object(i["a"])(this,e),t=l(this,e,["camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP."]),t.name="InsecureContextError",t}return d(e,t),Object(n["a"])(e)}(p(Error))},"1cdc":function(t,e,r){"use strict";var n=r("342f");t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},"1d80":function(t,e,r){"use strict";var n=r("7234"),i=TypeError;t.exports=function(t){if(n(t))throw new i("Can't call method on "+t);return t}},"1da1":function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));r("d3b7"),r("e6cf");function n(t,e,r,n,i,o,a){try{var s=t[o](a),c=s.value}catch(u){return void r(u)}s.done?e(c):Promise.resolve(c).then(n,i)}function i(t){return function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function s(t){n(a,i,o,s,c,"next",t)}function c(t){n(a,i,o,s,c,"throw",t)}s(void 0)}))}}},"1dde":function(t,e,r){"use strict";var n=r("d039"),i=r("b622"),o=r("2d00"),a=i("species");t.exports=function(t){return o>=51||!n((function(){var e=[],r=e.constructor={};return r[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1f68":function(t,e,r){"use strict";var n=r("83ab"),i=r("edd0"),o=r("861d"),a=r("1787"),s=r("7b0b"),c=r("1d80"),u=Object.getPrototypeOf,l=Object.setPrototypeOf,h=Object.prototype,d="__proto__";if(n&&u&&l&&!(d in h))try{i(h,d,{configurable:!0,get:function(){return u(s(this))},set:function(t){var e=c(this);a(t)&&o(e)&&l(e,t)}})}catch(f){}},2266:function(t,e,r){"use strict";var n=r("0366"),i=r("c65b"),o=r("825a"),a=r("0d51"),s=r("e95a"),c=r("07fa"),u=r("3a9b"),l=r("9a1f"),h=r("35a1"),d=r("2a62"),f=TypeError,g=function(t,e){this.stopped=t,this.result=e},p=g.prototype;t.exports=function(t,e,r){var m,w,y,E,C,A,S,v=r&&r.that,b=!(!r||!r.AS_ENTRIES),I=!(!r||!r.IS_RECORD),_=!(!r||!r.IS_ITERATOR),T=!(!r||!r.INTERRUPTED),R=n(e,v),D=function(t){return m&&d(m,"normal",t),new g(!0,t)},O=function(t){return b?(o(t),T?R(t[0],t[1],D):R(t[0],t[1])):T?R(t,D):R(t)};if(I)m=t.iterator;else if(_)m=t;else{if(w=h(t),!w)throw new f(a(t)+" is not iterable");if(s(w)){for(y=0,E=c(t);E>y;y++)if(C=O(t[y]),C&&u(p,C))return C;return new g(!1)}m=l(t,w)}A=I?t.next:m.next;while(!(S=i(A,m)).done){try{C=O(S.value)}catch(N){d(m,"throw",N)}if("object"==typeof C&&C&&u(p,C))return C}return new g(!1)}},"23cb":function(t,e,r){"use strict";var n=r("5926"),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},"23dc":function(t,e,r){"use strict";var n=r("d44e");n(Math,"Math",!0)},"23e7":function(t,e,r){"use strict";var n=r("da84"),i=r("06cf").f,o=r("9112"),a=r("cb2d"),s=r("6374"),c=r("e893"),u=r("94ca");t.exports=function(t,e){var r,l,h,d,f,g,p=t.target,m=t.global,w=t.stat;if(l=m?n:w?n[p]||s(p,{}):n[p]&&n[p].prototype,l)for(h in e){if(f=e[h],t.dontCallGetSet?(g=i(l,h),d=g&&g.value):d=l[h],r=u(m?h:p+(w?".":"#")+h,t.forced),!r&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(t.sham||d&&d.sham)&&o(f,"sham",!0),a(l,h,f,t)}}},"241c":function(t,e,r){"use strict";var n=r("ca84"),i=r("7839"),o=i.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},"24fb":function(t,e,r){"use strict";function n(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"===typeof btoa){var o=i(n),a=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[r].concat(a).concat([o]).join("\n")}return[r].join("\n")}function i(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(r," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=n(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"===typeof t&&(t=[[null,t,""]]);var i={};if(n)for(var o=0;o1?arguments[1]:void 0)}})},"25f0":function(t,e,r){"use strict";var n=r("5e77").PROPER,i=r("cb2d"),o=r("825a"),a=r("577e"),s=r("d039"),c=r("90d8"),u="toString",l=RegExp.prototype,h=l[u],d=s((function(){return"/a/b"!==h.call({source:"a",flags:"b"})})),f=n&&h.name!==u;(d||f)&&i(l,u,(function(){var t=o(this),e=a(t.source),r=a(c(t));return"/"+e+"/"+r}),{unsafe:!0})},2626:function(t,e,r){"use strict";var n=r("d066"),i=r("edd0"),o=r("b622"),a=r("83ab"),s=o("species");t.exports=function(t){var e=n(t);a&&e&&!e[s]&&i(e,s,{configurable:!0,get:function(){return this}})}},"271a":function(t,e,r){"use strict";var n=r("cb2d"),i=r("e330"),o=r("577e"),a=r("d6d6"),s=URLSearchParams,c=s.prototype,u=i(c.getAll),l=i(c.has),h=new s("a=1");!h.has("a",2)&&h.has("a",void 0)||n(c,"has",(function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return l(this,t);var n=u(this,t);a(e,1);var i=o(r),s=0;while(s1?arguments[1]:void 0,e.length)),n=s(t);return d(e,r,r+n.length)===n}})},"2cf4":function(t,e,r){"use strict";var n,i,o,a,s=r("da84"),c=r("2ba4"),u=r("0366"),l=r("1626"),h=r("1a2d"),d=r("d039"),f=r("1be4"),g=r("f36a"),p=r("cc12"),m=r("d6d6"),w=r("1cdc"),y=r("605d"),E=s.setImmediate,C=s.clearImmediate,A=s.process,S=s.Dispatch,v=s.Function,b=s.MessageChannel,I=s.String,_=0,T={},R="onreadystatechange";d((function(){n=s.location}));var D=function(t){if(h(T,t)){var e=T[t];delete T[t],e()}},O=function(t){return function(){D(t)}},N=function(t){D(t.data)},M=function(t){s.postMessage(I(t),n.protocol+"//"+n.host)};E&&C||(E=function(t){m(arguments.length,1);var e=l(t)?t:v(t),r=g(arguments,1);return T[++_]=function(){c(e,void 0,r)},i(_),_},C=function(t){delete T[t]},y?i=function(t){A.nextTick(O(t))}:S&&S.now?i=function(t){S.now(O(t))}:b&&!w?(o=new b,a=o.port2,o.port1.onmessage=N,i=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&n&&"file:"!==n.protocol&&!d(M)?(i=M,s.addEventListener("message",N,!1)):i=R in p("script")?function(t){f.appendChild(p("script"))[R]=function(){f.removeChild(this),D(t)}}:function(t){setTimeout(O(t),0)}),t.exports={set:E,clear:C}},"2d00":function(t,e,r){"use strict";var n,i,o=r("da84"),a=r("342f"),s=o.process,c=o.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(n=l.split("."),i=n[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&a&&(n=a.match(/Edge\/(\d+)/),(!n||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/),n&&(i=+n[1]))),t.exports=i},3410:function(t,e,r){"use strict";var n=r("23e7"),i=r("d039"),o=r("7b0b"),a=r("e163"),s=r("e177"),c=i((function(){a(1)}));n({target:"Object",stat:!0,forced:c,sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},"342f":function(t,e,r){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3511:function(t,e,r){"use strict";var n=TypeError,i=9007199254740991;t.exports=function(t){if(t>i)throw n("Maximum allowed index exceeded");return t}},3529:function(t,e,r){"use strict";var n=r("23e7"),i=r("c65b"),o=r("59ed"),a=r("f069"),s=r("e667"),c=r("2266"),u=r("5eed");n({target:"Promise",stat:!0,forced:u},{race:function(t){var e=this,r=a.f(e),n=r.reject,u=s((function(){var a=o(e.resolve);c(t,(function(t){i(a,e,t).then(r.resolve,n)}))}));return u.error&&n(u.value),r.promise}})},"35a1":function(t,e,r){"use strict";var n=r("f5df"),i=r("dc4a"),o=r("7234"),a=r("3f8c"),s=r("b622"),c=s("iterator");t.exports=function(t){if(!o(t))return i(t,c)||i(t,"@@iterator")||a[n(t)]}},"37e8":function(t,e,r){"use strict";var n=r("83ab"),i=r("aed9"),o=r("9bf2"),a=r("825a"),s=r("fc6a"),c=r("df75");e.f=n&&!i?Object.defineProperties:function(t,e){a(t);var r,n=s(e),i=c(e),u=i.length,l=0;while(u>l)o.f(t,r=i[l++],n[r]);return t}},3835:function(t,e,r){"use strict";function n(t){if(Array.isArray(t))return t}r.d(e,"a",(function(){return s}));r("a4d3"),r("e01a"),r("d28b"),r("e260"),r("14d9"),r("d3b7"),r("3ca3"),r("ddb0");function i(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,i,o,a,s=[],c=!0,u=!1;try{if(o=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(s.push(n.value),s.length!==e);c=!0);}catch(t){u=!0,i=t}finally{try{if(!c&&null!=r["return"]&&(a=r["return"](),Object(a)!==a))return}finally{if(u)throw i}}return s}}var o=r("06c5");r("d9e2");function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function s(t,e){return n(t)||i(t,e)||Object(o["a"])(t,e)||a()}},"3a34":function(t,e,r){"use strict";var n=r("83ab"),i=r("e8b5"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(i(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},"3a9b":function(t,e,r){"use strict";var n=r("e330");t.exports=n({}.isPrototypeOf)},"3bbe":function(t,e,r){"use strict";var n=r("1787"),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o("Can't set "+i(t)+" as a prototype")}},"3ca3":function(t,e,r){"use strict";var n=r("6547").charAt,i=r("577e"),o=r("69f3"),a=r("c6d2"),s=r("4754"),c="String Iterator",u=o.set,l=o.getterFor(c);a(String,"String",(function(t){u(this,{type:c,string:i(t),index:0})}),(function(){var t,e=l(this),r=e.string,i=e.index;return i>=r.length?s(void 0,!0):(t=n(r,i),e.index+=t.length,s(t,!1))}))},"3f8c":function(t,e,r){"use strict";t.exports={}},4002:function(t,e,r){"use strict";r("3ca3");var n,i=r("23e7"),o=r("83ab"),a=r("f354"),s=r("da84"),c=r("0366"),u=r("e330"),l=r("cb2d"),h=r("edd0"),d=r("19aa"),f=r("1a2d"),g=r("60da"),p=r("4df4"),m=r("f36a"),w=r("6547").codeAt,y=r("5fb2"),E=r("577e"),C=r("d44e"),A=r("d6d6"),S=r("5352"),v=r("69f3"),b=v.set,I=v.getterFor("URL"),_=S.URLSearchParams,T=S.getState,R=s.URL,D=s.TypeError,O=s.parseInt,N=Math.floor,M=Math.pow,P=u("".charAt),L=u(/./.exec),x=u([].join),B=u(1..toString),k=u([].pop),F=u([].push),U=u("".replace),j=u([].shift),H=u("".split),V=u("".slice),z=u("".toLowerCase),W=u([].unshift),G="Invalid authority",Y="Invalid scheme",X="Invalid host",$="Invalid port",Z=/[a-z]/i,Q=/[\d+-.a-z]/i,q=/\d/,K=/^0x/i,J=/^[0-7]+$/,tt=/^\d+$/,et=/^[\da-f]+$/i,rt=/[\0\t\n\r #%/:<>?@[\\\]^|]/,nt=/[\0\t\n\r #/:<>?@[\\\]^|]/,it=/^[\u0000-\u0020]+/,ot=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,at=/[\t\n\r]/g,st=function(t){var e,r,n,i,o,a,s,c=H(t,".");if(c.length&&""===c[c.length-1]&&c.length--,e=c.length,e>4)return t;for(r=[],n=0;n1&&"0"===P(i,0)&&(o=L(K,i)?16:8,i=V(i,8===o?1:2)),""===i)a=0;else{if(!L(10===o?tt:8===o?J:et,i))return t;a=O(i,o)}F(r,a)}for(n=0;n=M(256,5-e))return null}else if(a>255)return null;for(s=k(r),n=0;n6)return;n=0;while(d()){if(i=null,n>0){if(!("."===d()&&n<4))return;h++}if(!L(q,d()))return;while(L(q,d())){if(o=O(d(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;h++}c[u]=256*c[u]+i,n++,2!==n&&4!==n||u++}if(4!==n)return;break}if(":"===d()){if(h++,!d())return}else if(d())return;c[u++]=e}else{if(null!==l)return;h++,u++,l=u}}if(null!==l){a=u-l,u=7;while(0!==u&&a>0)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s}else if(8!==u)return;return c},ut=function(t){for(var e=null,r=1,n=null,i=0,o=0;o<8;o++)0!==t[o]?(i>r&&(e=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(e=n,r=i),e},lt=function(t){var e,r,n,i;if("number"==typeof t){for(e=[],r=0;r<4;r++)W(e,t%256),t=N(t/256);return x(e,".")}if("object"==typeof t){for(e="",n=ut(t),r=0;r<8;r++)i&&0===t[r]||(i&&(i=!1),n===r?(e+=r?":":"::",i=!0):(e+=B(t[r],16),r<7&&(e+=":")));return"["+e+"]"}return t},ht={},dt=g({},ht,{" ":1,'"':1,"<":1,">":1,"`":1}),ft=g({},dt,{"#":1,"?":1,"{":1,"}":1}),gt=g({},ft,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),pt=function(t,e){var r=w(t,0);return r>32&&r<127&&!f(e,t)?t:encodeURIComponent(t)},mt={ftp:21,file:null,http:80,https:443,ws:80,wss:443},wt=function(t,e){var r;return 2===t.length&&L(Z,P(t,0))&&(":"===(r=P(t,1))||!e&&"|"===r)},yt=function(t){var e;return t.length>1&&wt(V(t,0,2))&&(2===t.length||"/"===(e=P(t,2))||"\\"===e||"?"===e||"#"===e)},Et=function(t){return"."===t||"%2e"===z(t)},Ct=function(t){return t=z(t),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},At={},St={},vt={},bt={},It={},_t={},Tt={},Rt={},Dt={},Ot={},Nt={},Mt={},Pt={},Lt={},xt={},Bt={},kt={},Ft={},Ut={},jt={},Ht={},Vt=function(t,e,r){var n,i,o,a=E(t);if(e){if(i=this.parse(a),i)throw new D(i);this.searchParams=null}else{if(void 0!==r&&(n=new Vt(r,!0)),i=this.parse(a,null,n),i)throw new D(i);o=T(new _),o.bindURL(this),this.searchParams=o}};Vt.prototype={type:"URL",parse:function(t,e,r){var i,o,a,s,c=this,u=e||At,l=0,h="",d=!1,g=!1,w=!1;t=E(t),e||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=U(t,it,""),t=U(t,ot,"$1")),t=U(t,at,""),i=p(t);while(l<=i.length){switch(o=i[l],u){case At:if(!o||!L(Z,o)){if(e)return Y;u=vt;continue}h+=z(o),u=St;break;case St:if(o&&(L(Q,o)||"+"===o||"-"===o||"."===o))h+=z(o);else{if(":"!==o){if(e)return Y;h="",u=vt,l=0;continue}if(e&&(c.isSpecial()!==f(mt,h)||"file"===h&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=h,e)return void(c.isSpecial()&&mt[c.scheme]===c.port&&(c.port=null));h="","file"===c.scheme?u=Lt:c.isSpecial()&&r&&r.scheme===c.scheme?u=bt:c.isSpecial()?u=Rt:"/"===i[l+1]?(u=It,l++):(c.cannotBeABaseURL=!0,F(c.path,""),u=Ut)}break;case vt:if(!r||r.cannotBeABaseURL&&"#"!==o)return Y;if(r.cannotBeABaseURL&&"#"===o){c.scheme=r.scheme,c.path=m(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,u=Ht;break}u="file"===r.scheme?Lt:_t;continue;case bt:if("/"!==o||"/"!==i[l+1]){u=_t;continue}u=Dt,l++;break;case It:if("/"===o){u=Ot;break}u=Ft;continue;case _t:if(c.scheme=r.scheme,o===n)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=m(r.path),c.query=r.query;else if("/"===o||"\\"===o&&c.isSpecial())u=Tt;else if("?"===o)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=m(r.path),c.query="",u=jt;else{if("#"!==o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=m(r.path),c.path.length--,u=Ft;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=m(r.path),c.query=r.query,c.fragment="",u=Ht}break;case Tt:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,u=Ft;continue}u=Ot}else u=Dt;break;case Rt:if(u=Dt,"/"!==o||"/"!==P(h,l+1))continue;l++;break;case Dt:if("/"!==o&&"\\"!==o){u=Ot;continue}break;case Ot:if("@"===o){d&&(h="%40"+h),d=!0,a=p(h);for(var y=0;y65535)return $;c.port=c.isSpecial()&&S===mt[c.scheme]?null:S,h=""}if(e)return;u=kt;continue}return $}h+=o;break;case Lt:if(c.scheme="file","/"===o||"\\"===o)u=xt;else{if(!r||"file"!==r.scheme){u=Ft;continue}switch(o){case n:c.host=r.host,c.path=m(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=m(r.path),c.query="",u=jt;break;case"#":c.host=r.host,c.path=m(r.path),c.query=r.query,c.fragment="",u=Ht;break;default:yt(x(m(i,l),""))||(c.host=r.host,c.path=m(r.path),c.shortenPath()),u=Ft;continue}}break;case xt:if("/"===o||"\\"===o){u=Bt;break}r&&"file"===r.scheme&&!yt(x(m(i,l),""))&&(wt(r.path[0],!0)?F(c.path,r.path[0]):c.host=r.host),u=Ft;continue;case Bt:if(o===n||"/"===o||"\\"===o||"?"===o||"#"===o){if(!e&&wt(h))u=Ft;else if(""===h){if(c.host="",e)return;u=kt}else{if(s=c.parseHost(h),s)return s;if("localhost"===c.host&&(c.host=""),e)return;h="",u=kt}continue}h+=o;break;case kt:if(c.isSpecial()){if(u=Ft,"/"!==o&&"\\"!==o)continue}else if(e||"?"!==o)if(e||"#"!==o){if(o!==n&&(u=Ft,"/"!==o))continue}else c.fragment="",u=Ht;else c.query="",u=jt;break;case Ft:if(o===n||"/"===o||"\\"===o&&c.isSpecial()||!e&&("?"===o||"#"===o)){if(Ct(h)?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||F(c.path,"")):Et(h)?"/"===o||"\\"===o&&c.isSpecial()||F(c.path,""):("file"===c.scheme&&!c.path.length&&wt(h)&&(c.host&&(c.host=""),h=P(h,0)+":"),F(c.path,h)),h="","file"===c.scheme&&(o===n||"?"===o||"#"===o))while(c.path.length>1&&""===c.path[0])j(c.path);"?"===o?(c.query="",u=jt):"#"===o&&(c.fragment="",u=Ht)}else h+=pt(o,ft);break;case Ut:"?"===o?(c.query="",u=jt):"#"===o?(c.fragment="",u=Ht):o!==n&&(c.path[0]+=pt(o,ht));break;case jt:e||"#"!==o?o!==n&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":pt(o,ht)):(c.fragment="",u=Ht);break;case Ht:o!==n&&(c.fragment+=pt(o,dt));break}l++}},parseHost:function(t){var e,r,n;if("["===P(t,0)){if("]"!==P(t,t.length-1))return X;if(e=ct(V(t,1,-1)),!e)return X;this.host=e}else if(this.isSpecial()){if(t=y(t),L(rt,t))return X;if(e=st(t),null===e)return X;this.host=e}else{if(L(nt,t))return X;for(e="",r=p(t),n=0;n1?arguments[1]:void 0,n=b(e,new Vt(t,!1,r));o||(e.href=n.serialize(),e.origin=n.getOrigin(),e.protocol=n.getProtocol(),e.username=n.getUsername(),e.password=n.getPassword(),e.host=n.getHost(),e.hostname=n.getHostname(),e.port=n.getPort(),e.pathname=n.getPathname(),e.search=n.getSearch(),e.searchParams=n.getSearchParams(),e.hash=n.getHash())},Wt=zt.prototype,Gt=function(t,e){return{get:function(){return I(this)[t]()},set:e&&function(t){return I(this)[e](t)},configurable:!0,enumerable:!0}};if(o&&(h(Wt,"href",Gt("serialize","setHref")),h(Wt,"origin",Gt("getOrigin")),h(Wt,"protocol",Gt("getProtocol","setProtocol")),h(Wt,"username",Gt("getUsername","setUsername")),h(Wt,"password",Gt("getPassword","setPassword")),h(Wt,"host",Gt("getHost","setHost")),h(Wt,"hostname",Gt("getHostname","setHostname")),h(Wt,"port",Gt("getPort","setPort")),h(Wt,"pathname",Gt("getPathname","setPathname")),h(Wt,"search",Gt("getSearch","setSearch")),h(Wt,"searchParams",Gt("getSearchParams")),h(Wt,"hash",Gt("getHash","setHash"))),l(Wt,"toJSON",(function(){return I(this).serialize()}),{enumerable:!0}),l(Wt,"toString",(function(){return I(this).serialize()}),{enumerable:!0}),R){var Yt=R.createObjectURL,Xt=R.revokeObjectURL;Yt&&l(zt,"createObjectURL",c(Yt,R)),Xt&&l(zt,"revokeObjectURL",c(Xt,R))}C(zt,"URL"),i({global:!0,constructor:!0,forced:!a,sham:!o},{URL:zt})},"408a":function(t,e,r){"use strict";var n=r("e330");t.exports=n(1..valueOf)},"40d5":function(t,e,r){"use strict";var n=r("d039");t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"428f":function(t,e,r){"use strict";var n=r("da84");t.exports=n},4362:function(t,e,r){e.nextTick=function(t){var e=Array.prototype.slice.call(arguments);e.shift(),setTimeout((function(){t.apply(null,e)}),0)},e.platform=e.arch=e.execPath=e.title="browser",e.pid=1,e.browser=!0,e.env={},e.argv=[],e.binding=function(t){throw new Error("No such module. (Possibly not yet loaded)")},function(){var t,n="/";e.cwd=function(){return n},e.chdir=function(e){t||(t=r("df7c")),n=t.resolve(e,n)}}(),e.exit=e.kill=e.umask=e.dlopen=e.uptime=e.memoryUsage=e.uvCounters=function(){},e.features={}},"44ad":function(t,e,r){"use strict";var n=r("e330"),i=r("d039"),o=r("c6b6"),a=Object,s=n("".split);t.exports=i((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},"44d2":function(t,e,r){"use strict";var n=r("b622"),i=r("7c73"),o=r("9bf2").f,a=n("unscopables"),s=Array.prototype;void 0===s[a]&&o(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},"44de":function(t,e,r){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(r){}}},"44e7":function(t,e,r){"use strict";var n=r("861d"),i=r("c6b6"),o=r("b622"),a=o("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[a])?!!e:"RegExp"===i(t))}},4625:function(t,e,r){"use strict";var n=r("c6b6"),i=r("e330");t.exports=function(t){if("Function"===n(t))return i(t)}},"466d":function(t,e,r){"use strict";var n=r("c65b"),i=r("d784"),o=r("825a"),a=r("7234"),s=r("50c4"),c=r("577e"),u=r("1d80"),l=r("dc4a"),h=r("8aa5"),d=r("14c3");i("match",(function(t,e,r){return[function(e){var r=u(this),i=a(e)?void 0:l(e,t);return i?n(i,e,r):new RegExp(e)[t](c(r))},function(t){var n=o(this),i=c(t),a=r(e,n,i);if(a.done)return a.value;if(!n.global)return d(n,i);var u=n.unicode;n.lastIndex=0;var l,f=[],g=0;while(null!==(l=d(n,i))){var p=c(l[0]);f[g]=p,""===p&&(n.lastIndex=h(i,s(n.lastIndex),u)),g++}return 0===g?null:f}]}))},4738:function(t,e,r){"use strict";var n=r("da84"),i=r("d256"),o=r("1626"),a=r("94ca"),s=r("8925"),c=r("b622"),u=r("6069"),l=r("6c59"),h=r("c430"),d=r("2d00"),f=i&&i.prototype,g=c("species"),p=!1,m=o(n.PromiseRejectionEvent),w=a("Promise",(function(){var t=s(i),e=t!==String(i);if(!e&&66===d)return!0;if(h&&(!f["catch"]||!f["finally"]))return!0;if(!d||d<51||!/native code/.test(t)){var r=new i((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))},o=r.constructor={};if(o[g]=n,p=r.then((function(){}))instanceof n,!p)return!0}return!e&&(u||l)&&!m}));t.exports={CONSTRUCTOR:w,REJECTION_EVENT:m,SUBCLASSING:p}},4754:function(t,e,r){"use strict";t.exports=function(t,e){return{value:t,done:e}}},4840:function(t,e,r){"use strict";var n=r("825a"),i=r("5087"),o=r("7234"),a=r("b622"),s=a("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||o(r=n(a)[s])?e:i(r)}},"485a":function(t,e,r){"use strict";var n=r("c65b"),i=r("1626"),o=r("861d"),a=TypeError;t.exports=function(t,e){var r,s;if("string"===e&&i(r=t.toString)&&!o(s=n(r,t)))return s;if(i(r=t.valueOf)&&!o(s=n(r,t)))return s;if("string"!==e&&i(r=t.toString)&&!o(s=n(r,t)))return s;throw new a("Can't convert object to primitive value")}},"499e":function(t,e,r){"use strict";function n(t,e){for(var r=[],n={},i=0;ir.parts.length&&(n.parts.length=r.parts.length)}else{var a=[];for(i=0;il)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((t||l in s)&&s[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(t,e,r){"use strict";var n=r("23e7"),i=r("b727").filter,o=r("1dde"),a=o("filter");n({target:"Array",proto:!0,forced:!a},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,r){"use strict";var n=r("0366"),i=r("c65b"),o=r("7b0b"),a=r("9bdd"),s=r("e95a"),c=r("68ee"),u=r("07fa"),l=r("8418"),h=r("9a1f"),d=r("35a1"),f=Array;t.exports=function(t){var e=o(t),r=c(this),g=arguments.length,p=g>1?arguments[1]:void 0,m=void 0!==p;m&&(p=n(p,g>2?arguments[2]:void 0));var w,y,E,C,A,S,v=d(e),b=0;if(!v||this===f&&s(v))for(w=u(e),y=r?new this(w):f(w);w>b;b++)S=m?p(e[b],b):e[b],l(y,b,S);else for(y=r?new this:[],C=h(e,v),A=C.next;!(E=i(A,C)).done;b++)S=m?a(C,p,[E.value,b],!0):E.value,l(y,b,S);return y.length=b,y}},"4ec9":function(t,e,r){"use strict";r("6f48")},"4fad":function(t,e,r){"use strict";var n=r("d039"),i=r("861d"),o=r("c6b6"),a=r("d86b"),s=Object.isExtensible,c=n((function(){s(1)}));t.exports=c||a?function(t){return!!i(t)&&((!a||"ArrayBuffer"!==o(t))&&(!s||s(t)))}:s},5087:function(t,e,r){"use strict";var n=r("68ee"),i=r("0d51"),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not a constructor")}},"50c4":function(t,e,r){"use strict";var n=r("5926"),i=Math.min;t.exports=function(t){var e=n(t);return e>0?i(e,9007199254740991):0}},"51eb":function(t,e,r){"use strict";var n=r("825a"),i=r("485a"),o=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return i(this,t)}},5352:function(t,e,r){"use strict";r("e260");var n=r("23e7"),i=r("da84"),o=r("157a"),a=r("c65b"),s=r("e330"),c=r("83ab"),u=r("f354"),l=r("cb2d"),h=r("edd0"),d=r("6964"),f=r("d44e"),g=r("dcc3"),p=r("69f3"),m=r("19aa"),w=r("1626"),y=r("1a2d"),E=r("0366"),C=r("f5df"),A=r("825a"),S=r("861d"),v=r("577e"),b=r("7c73"),I=r("5c6c"),_=r("9a1f"),T=r("35a1"),R=r("4754"),D=r("d6d6"),O=r("b622"),N=r("addb"),M=O("iterator"),P="URLSearchParams",L=P+"Iterator",x=p.set,B=p.getterFor(P),k=p.getterFor(L),F=o("fetch"),U=o("Request"),j=o("Headers"),H=U&&U.prototype,V=j&&j.prototype,z=i.RegExp,W=i.TypeError,G=i.decodeURIComponent,Y=i.encodeURIComponent,X=s("".charAt),$=s([].join),Z=s([].push),Q=s("".replace),q=s([].shift),K=s([].splice),J=s("".split),tt=s("".slice),et=/\+/g,rt=Array(4),nt=function(t){return rt[t-1]||(rt[t-1]=z("((?:%[\\da-f]{2}){"+t+"})","gi"))},it=function(t){try{return G(t)}catch(e){return t}},ot=function(t){var e=Q(t,et," "),r=4;try{return G(e)}catch(n){while(r)e=Q(e,nt(r--),it);return e}},at=/[!'()~]|%20/g,st={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},ct=function(t){return st[t]},ut=function(t){return Q(Y(t),at,ct)},lt=g((function(t,e){x(this,{type:L,target:B(t).entries,index:0,kind:e})}),P,(function(){var t=k(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,R(void 0,!0);var n=e[r];switch(t.kind){case"keys":return R(n.key,!1);case"values":return R(n.value,!1)}return R([n.key,n.value],!1)}),!0),ht=function(t){this.entries=[],this.url=null,void 0!==t&&(S(t)?this.parseObject(t):this.parseQuery("string"==typeof t?"?"===X(t,0)?tt(t,1):t:v(t)))};ht.prototype={type:P,bindURL:function(t){this.url=t,this.update()},parseObject:function(t){var e,r,n,i,o,s,c,u=this.entries,l=T(t);if(l){e=_(t,l),r=e.next;while(!(n=a(r,e)).done){if(i=_(A(n.value)),o=i.next,(s=a(o,i)).done||(c=a(o,i)).done||!a(o,i).done)throw new W("Expected sequence with length 2");Z(u,{key:v(s.value),value:v(c.value)})}}else for(var h in t)y(t,h)&&Z(u,{key:h,value:v(t[h])})},parseQuery:function(t){if(t){var e,r,n=this.entries,i=J(t,"&"),o=0;while(o0?arguments[0]:void 0,e=x(this,new ht(t));c||(this.size=e.entries.length)},ft=dt.prototype;if(d(ft,{append:function(t,e){var r=B(this);D(arguments.length,2),Z(r.entries,{key:v(t),value:v(e)}),c||this.length++,r.updateURL()},delete:function(t){var e=B(this),r=D(arguments.length,1),n=e.entries,i=v(t),o=r<2?void 0:arguments[1],a=void 0===o?o:v(o),s=0;while(se.key?1:-1})),t.updateURL()},forEach:function(t){var e,r=B(this).entries,n=E(t,arguments.length>1?arguments[1]:void 0),i=0;while(i1?mt(arguments[1]):{})}}),w(U)){var wt=function(t){return m(this,H),new U(t,arguments.length>1?mt(arguments[1]):{})};H.constructor=wt,wt.prototype=H,n({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:wt})}}t.exports={URLSearchParams:dt,getState:B}},"53ca":function(t,e,r){"use strict";r.d(e,"a",(function(){return n}));r("a4d3"),r("e01a"),r("d28b"),r("e260"),r("d3b7"),r("3ca3"),r("ddb0");function n(t){return n="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},n(t)}},5494:function(t,e,r){"use strict";var n=r("83ab"),i=r("e330"),o=r("edd0"),a=URLSearchParams.prototype,s=i(a.forEach);n&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},5692:function(t,e,r){"use strict";var n=r("c6cd");t.exports=function(t,e){return n[t]||(n[t]=e||{})}},"56ef":function(t,e,r){"use strict";var n=r("d066"),i=r("e330"),o=r("241c"),a=r("7418"),s=r("825a"),c=i([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(s(t)),r=a.f;return r?c(e,r(t)):e}},"577e":function(t,e,r){"use strict";var n=r("f5df"),i=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return i(t)}},"57b9":function(t,e,r){"use strict";var n=r("c65b"),i=r("d066"),o=r("b622"),a=r("cb2d");t.exports=function(){var t=i("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,s=o("toPrimitive");e&&!e[s]&&a(e,s,(function(t){return n(r,this)}),{arity:1})}},5899:function(t,e,r){"use strict";t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,r){"use strict";var n=r("e330"),i=r("1d80"),o=r("577e"),a=r("5899"),s=n("".replace),c=RegExp("^["+a+"]+"),u=RegExp("(^|[^"+a+"])["+a+"]+$"),l=function(t){return function(e){var r=o(i(e));return 1&t&&(r=s(r,c,"")),2&t&&(r=s(r,u,"$1")),r}};t.exports={start:l(1),end:l(2),trim:l(3)}},5926:function(t,e,r){"use strict";var n=r("b42e");t.exports=function(t){var e=+t;return e!==e||0===e?0:n(e)}},"59ed":function(t,e,r){"use strict";var n=r("1626"),i=r("0d51"),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not a function")}},"5a34":function(t,e,r){"use strict";var n=r("44e7"),i=TypeError;t.exports=function(t){if(n(t))throw new i("The method doesn't accept regular expressions");return t}},"5a47":function(t,e,r){"use strict";var n=r("23e7"),i=r("04f8"),o=r("d039"),a=r("7418"),s=r("7b0b"),c=!i||o((function(){a.f(1)}));n({target:"Object",stat:!0,forced:c},{getOwnPropertySymbols:function(t){var e=a.f;return e?e(s(t)):[]}})},"5c0b":function(t,e,r){"use strict";var n=function(){var t=this,e=t._self._c;return e("input",{attrs:{type:"file",name:"image",accept:"image/*",capture:"environment",multiple:""},on:{change:t.onChangeInput}})},i=[],o=r("2909"),a=(r("d81d"),r("d3b7"),r("159b"),r("a180")),s=r("b3af"),c={name:"qrcode-capture",props:{formats:{type:Array,default:function(){return["qr_code"]}}},mixins:[s["a"]],methods:{onChangeInput:function(t){var e=this,r=Object(o["a"])(t.target.files),n=r.map((function(t){return Object(a["b"])(t,e.formats)}));n.forEach(this.onDetect)}}},u=c,l=r("2877"),h=Object(l["a"])(u,n,i,!1,null,null,null);e["a"]=h.exports},"5c6c":function(t,e,r){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5e77":function(t,e,r){"use strict";var n=r("83ab"),i=r("1a2d"),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,s=i(o,"name"),c=s&&"something"===function(){}.name,u=s&&(!n||n&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},"5e7e":function(t,e,r){"use strict";var n,i,o,a,s=r("23e7"),c=r("c430"),u=r("605d"),l=r("da84"),h=r("c65b"),d=r("cb2d"),f=r("d2bb"),g=r("d44e"),p=r("2626"),m=r("59ed"),w=r("1626"),y=r("861d"),E=r("19aa"),C=r("4840"),A=r("2cf4").set,S=r("b575"),v=r("44de"),b=r("e667"),I=r("01b4"),_=r("69f3"),T=r("d256"),R=r("4738"),D=r("f069"),O="Promise",N=R.CONSTRUCTOR,M=R.REJECTION_EVENT,P=R.SUBCLASSING,L=_.getterFor(O),x=_.set,B=T&&T.prototype,k=T,F=B,U=l.TypeError,j=l.document,H=l.process,V=D.f,z=V,W=!!(j&&j.createEvent&&l.dispatchEvent),G="unhandledrejection",Y="rejectionhandled",X=0,$=1,Z=2,Q=1,q=2,K=function(t){var e;return!(!y(t)||!w(e=t.then))&&e},J=function(t,e){var r,n,i,o=e.value,a=e.state===$,s=a?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{s?(a||(e.rejection===q&&it(e),e.rejection=Q),!0===s?r=o:(l&&l.enter(),r=s(o),l&&(l.exit(),i=!0)),r===t.promise?u(new U("Promise-chain cycle")):(n=K(r))?h(n,r,c,u):c(r)):u(o)}catch(d){l&&!i&&l.exit(),u(d)}},tt=function(t,e){t.notified||(t.notified=!0,S((function(){var r,n=t.reactions;while(r=n.get())J(r,t);t.notified=!1,e&&!t.rejection&&rt(t)})))},et=function(t,e,r){var n,i;W?(n=j.createEvent("Event"),n.promise=e,n.reason=r,n.initEvent(t,!1,!0),l.dispatchEvent(n)):n={promise:e,reason:r},!M&&(i=l["on"+t])?i(n):t===G&&v("Unhandled promise rejection",r)},rt=function(t){h(A,l,(function(){var e,r=t.facade,n=t.value,i=nt(t);if(i&&(e=b((function(){u?H.emit("unhandledRejection",n,r):et(G,r,n)})),t.rejection=u||nt(t)?q:Q,e.error))throw e.value}))},nt=function(t){return t.rejection!==Q&&!t.parent},it=function(t){h(A,l,(function(){var e=t.facade;u?H.emit("rejectionHandled",e):et(Y,e,t.value)}))},ot=function(t,e,r){return function(n){t(e,n,r)}},at=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=Z,tt(t,!0))},st=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw new U("Promise can't be resolved itself");var n=K(e);n?S((function(){var r={done:!1};try{h(n,e,ot(st,r,t),ot(at,r,t))}catch(i){at(r,i,t)}})):(t.value=e,t.state=$,tt(t,!1))}catch(i){at({done:!1},i,t)}}};if(N&&(k=function(t){E(this,F),m(t),h(n,this);var e=L(this);try{t(ot(st,e),ot(at,e))}catch(r){at(e,r)}},F=k.prototype,n=function(t){x(this,{type:O,done:!1,notified:!1,parent:!1,reactions:new I,rejection:!1,state:X,value:void 0})},n.prototype=d(F,"then",(function(t,e){var r=L(this),n=V(C(this,k));return r.parent=!0,n.ok=!w(t)||t,n.fail=w(e)&&e,n.domain=u?H.domain:void 0,r.state===X?r.reactions.add(n):S((function(){J(n,r)})),n.promise})),i=function(){var t=new n,e=L(t);this.promise=t,this.resolve=ot(st,e),this.reject=ot(at,e)},D.f=V=function(t){return t===k||t===o?new i(t):z(t)},!c&&w(T)&&B!==Object.prototype)){a=B.then,P||d(B,"then",(function(t,e){var r=this;return new k((function(t,e){h(a,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete B.constructor}catch(ct){}f&&f(B,F)}s({global:!0,constructor:!0,wrap:!0,forced:N},{Promise:k}),g(k,O,!1,!0),p(O)},"5eed":function(t,e,r){"use strict";var n=r("d256"),i=r("1c7e"),o=r("4738").CONSTRUCTOR;t.exports=o||!i((function(t){n.all(t).then(void 0,(function(){}))}))},"5fb2":function(t,e,r){"use strict";var n=r("e330"),i=2147483647,o=36,a=1,s=26,c=38,u=700,l=72,h=128,d="-",f=/[^\0-\u007E]/,g=/[.\u3002\uFF0E\uFF61]/g,p="Overflow: input needs wider integers to process",m=o-a,w=RangeError,y=n(g.exec),E=Math.floor,C=String.fromCharCode,A=n("".charCodeAt),S=n([].join),v=n([].push),b=n("".replace),I=n("".split),_=n("".toLowerCase),T=function(t){var e=[],r=0,n=t.length;while(r=55296&&i<=56319&&r>1,t+=E(t/e);while(t>m*s>>1)t=E(t/m),n+=o;return E(n+(m+1)*t/(t+c))},O=function(t){var e=[];t=T(t);var r,n,c=t.length,u=h,f=0,g=l;for(r=0;r=u&&nE((i-f)/b))throw new w(p);for(f+=(A-u)*b,u=A,r=0;ri)throw new w(p);if(n===u){var I=f,_=o;while(1){var O=_<=g?a:_>=g+s?s:_-g;if(Ia){var p,m=h(arguments[a++]),w=d?g(s(m),d(m)):s(m),y=w.length,E=0;while(y>E)p=w[E++],n&&!o(f,m,p)||(r[p]=m[p])}return r}:d},6374:function(t,e,r){"use strict";var n=r("da84"),i=Object.defineProperty;t.exports=function(t,e){try{i(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},6547:function(t,e,r){"use strict";var n=r("e330"),i=r("5926"),o=r("577e"),a=r("1d80"),s=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(t){return function(e,r){var n,l,h=o(a(e)),d=i(r),f=h.length;return d<0||d>=f?t?"":void 0:(n=c(h,d),n<55296||n>56319||d+1===f||(l=c(h,d+1))<56320||l>57343?t?s(h,d):n:t?u(h,d,d+2):l-56320+(n-55296<<10)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}},6566:function(t,e,r){"use strict";var n=r("7c73"),i=r("edd0"),o=r("6964"),a=r("0366"),s=r("19aa"),c=r("7234"),u=r("2266"),l=r("c6d2"),h=r("4754"),d=r("2626"),f=r("83ab"),g=r("f183").fastKey,p=r("69f3"),m=p.set,w=p.getterFor;t.exports={getConstructor:function(t,e,r,l){var h=t((function(t,i){s(t,d),m(t,{type:e,index:n(null),first:void 0,last:void 0,size:0}),f||(t.size=0),c(i)||u(i,t[l],{that:t,AS_ENTRIES:r})})),d=h.prototype,p=w(e),y=function(t,e,r){var n,i,o=p(t),a=E(t,e);return a?a.value=r:(o.last=a={index:i=g(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),f?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},E=function(t,e){var r,n=p(t),i=g(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key===e)return r};return o(d,{clear:function(){var t=this,e=p(t),r=e.first;while(r)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),r=r.next;e.first=e.last=void 0,e.index=n(null),f?e.size=0:t.size=0},delete:function(t){var e=this,r=p(e),n=E(e,t);if(n){var i=n.next,o=n.previous;delete r.index[n.index],n.removed=!0,o&&(o.next=i),i&&(i.previous=o),r.first===n&&(r.first=i),r.last===n&&(r.last=o),f?r.size--:e.size--}return!!n},forEach:function(t){var e,r=p(this),n=a(t,arguments.length>1?arguments[1]:void 0);while(e=e?e.next:r.first){n(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!E(this,t)}}),o(d,r?{get:function(t){var e=E(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),f&&i(d,"size",{configurable:!0,get:function(){return p(this).size}}),h},setStrong:function(t,e,r){var n=e+" Iterator",i=w(e),o=w(n);l(t,e,(function(t,e){m(this,{type:n,target:t,state:i(t),kind:e,last:void 0})}),(function(){var t=o(this),e=t.kind,r=t.last;while(r&&r.removed)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?h("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=void 0,h(void 0,!0))}),r?"entries":"values",!r,!0),d(e)}}},"65f0":function(t,e,r){"use strict";var n=r("0b42");t.exports=function(t,e){return new(n(t))(0===e?0:e)}},"68ee":function(t,e,r){"use strict";var n=r("e330"),i=r("d039"),o=r("1626"),a=r("f5df"),s=r("d066"),c=r("8925"),u=function(){},l=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=n(h.exec),f=!h.test(u),g=function(t){if(!o(t))return!1;try{return l(u,[],t),!0}catch(e){return!1}},p=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(h,c(t))}catch(e){return!0}};p.sham=!0,t.exports=!l||i((function(){var t;return g(g.call)||!g(Object)||!g((function(){t=!0}))||t}))?p:g},6964:function(t,e,r){"use strict";var n=r("cb2d");t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},"69f3":function(t,e,r){"use strict";var n,i,o,a=r("cdce"),s=r("da84"),c=r("861d"),u=r("9112"),l=r("1a2d"),h=r("c6cd"),d=r("f772"),f=r("d012"),g="Object already initialized",p=s.TypeError,m=s.WeakMap,w=function(t){return o(t)?i(t):n(t,{})},y=function(t){return function(e){var r;if(!c(e)||(r=i(e)).type!==t)throw new p("Incompatible receiver, "+t+" required");return r}};if(a||h.state){var E=h.state||(h.state=new m);E.get=E.get,E.has=E.has,E.set=E.set,n=function(t,e){if(E.has(t))throw new p(g);return e.facade=t,E.set(t,e),e},i=function(t){return E.get(t)||{}},o=function(t){return E.has(t)}}else{var C=d("state");f[C]=!0,n=function(t,e){if(l(t,C))throw new p(g);return e.facade=t,u(t,C,e),e},i=function(t){return l(t,C)?t[C]:{}},o=function(t){return l(t,C)}}t.exports={set:n,get:i,has:o,enforce:w,getterFor:y}},"6b75":function(t,e,r){"use strict";function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r{if(!e.has(t))throw TypeError("Cannot "+r)},o=(t,e,r)=>(i(t,e,"read from private field"),r?r.call(t):e.get(t)),a=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},s=(t,e,r,n)=>(i(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);const c=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function u(t){return t.join("|")}function l(t){const e=h(t);let r=0,n=c.length-1;for(;r<=n;){const t=Math.floor((r+n)/2),i=c[t],o=h(i);if(o===e)return i;o{const r=t.match(/_(.+?)\.wasm$/);return r?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.4/dist/${r[1]}/${t}`:e+t}};let S=new WeakMap;function v(t,e){var r;const n=S.get(t);if(null!=n&&n.modulePromise&&(void 0===e||Object.is(e,n.moduleOverrides)))return n.modulePromise;const i=null!=(r=null!=e?e:null==n?void 0:n.moduleOverrides)?r:A,o=t({...i});return S.set(t,{moduleOverrides:i,modulePromise:o}),o}async function b(t,e,r=y){const n={...y,...r},i=await v(t),{size:o}=e,a=new Uint8Array(await e.arrayBuffer()),s=i._malloc(o);i.HEAPU8.set(a,s);const c=i.readBarcodesFromImage(s,o,E(i,n));i._free(s);const u=[];for(let l=0;l{var e=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(r={}){var i,o,a=r;a.ready=new Promise((t,e)=>{i=t,o=e});var s=Object.assign({},a),c="./this.program",u="object"==typeof window,l=typeof Bun<"u",h="function"==typeof importScripts;"object"==typeof t&&"object"==typeof t.versions&&t.versions.node;var d,f="";function g(t){return a.locateFile?a.locateFile(t,f):f+t}(u||h||l)&&(h?f=self.location.href:typeof document<"u"&&document.currentScript&&(f=document.currentScript.src),e&&(f=e),f=f.startsWith("blob:")?"":f.substr(0,f.replace(/[?#].*/,"").lastIndexOf("/")+1),h&&(d=t=>{var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var p,m=a.print||console.log.bind(console),w=a.printErr||console.error.bind(console);Object.assign(a,s),s=null,a.arguments&&a.arguments,a.thisProgram&&(c=a.thisProgram),a.quit&&a.quit,a.wasmBinary&&(p=a.wasmBinary),"object"!=typeof WebAssembly&&V("no native wasm support detected");var y,E,C,A,S,v,b,I,_,T=!1;function R(){var t=y.buffer;a.HEAP8=E=new Int8Array(t),a.HEAP16=A=new Int16Array(t),a.HEAPU8=C=new Uint8Array(t),a.HEAPU16=S=new Uint16Array(t),a.HEAP32=v=new Int32Array(t),a.HEAPU32=b=new Uint32Array(t),a.HEAPF32=I=new Float32Array(t),a.HEAPF64=_=new Float64Array(t)}var D=[],O=[],N=[];function M(){if(a.preRun)for("function"==typeof a.preRun&&(a.preRun=[a.preRun]);a.preRun.length;)x(a.preRun.shift());q(D)}function P(){q(O)}function L(){if(a.postRun)for("function"==typeof a.postRun&&(a.postRun=[a.postRun]);a.postRun.length;)k(a.postRun.shift());q(N)}function x(t){D.unshift(t)}function B(t){O.unshift(t)}function k(t){N.unshift(t)}var F=0,U=null;function j(t){var e;F++,null===(e=a.monitorRunDependencies)||void 0===e||e.call(a,F)}function H(t){var e;if(F--,null===(e=a.monitorRunDependencies)||void 0===e||e.call(a,F),0==F&&U){var r=U;U=null,r()}}function V(t){var e;null===(e=a.onAbort)||void 0===e||e.call(a,t),t="Aborted("+t+")",w(t),T=!0,t+=". Build with -sASSERTIONS for more info.";var r=new WebAssembly.RuntimeError(t);throw o(r),r}var z,W="data:application/octet-stream;base64,",G=t=>t.startsWith(W);function Y(t){if(t==z&&p)return new Uint8Array(p);if(d)return d(t);throw"both async and sync fetching of the wasm failed"}function X(t){return!p&&(u||h||l)&&"function"==typeof fetch?fetch(t,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${t}'`;return e.arrayBuffer()}).catch(()=>Y(t)):Promise.resolve().then(()=>Y(t))}function $(t,e,r){return X(t).then(t=>WebAssembly.instantiate(t,e)).then(r,t=>{w("failed to asynchronously prepare wasm: "+t),V(t)})}function Z(t,e,r,n){return t||"function"!=typeof WebAssembly.instantiateStreaming||G(e)||"function"!=typeof fetch?$(e,r,n):fetch(e,{credentials:"same-origin"}).then(t=>{var i=WebAssembly.instantiateStreaming(t,r);return i.then(n,(function(t){return w("wasm streaming compile failed: "+t),w("falling back to ArrayBuffer instantiation"),$(e,r,n)}))})}function Q(){var t={a:nn};function e(t,e){return on=t.exports,y=on.ma,R(),ge=on.qa,B(on.na),H(),on}function r(t){e(t.instance)}if(j(),a.instantiateWasm)try{return a.instantiateWasm(t,e)}catch(n){w("Module.instantiateWasm callback failed with error: "+n),o(n)}return Z(p,z,t,r).catch(o),{}}z="zxing_reader.wasm",G(z)||(z=g(z));var q=t=>{for(;t.length>0;)t.shift()(a)};a.noExitRuntime;var K=[],J=0,tt=t=>{var e=new nt(t);return e.get_caught()||(e.set_caught(!0),J--),e.set_rethrown(!1),K.push(e),gn(e.excPtr),e.get_exception_ptr()},et=0,rt=()=>{un(0,0);var t=K.pop();fn(t.excPtr),et=0};class nt{constructor(t){this.excPtr=t,this.ptr=t-24}set_type(t){b[this.ptr+4>>2]=t}get_type(){return b[this.ptr+4>>2]}set_destructor(t){b[this.ptr+8>>2]=t}get_destructor(){return b[this.ptr+8>>2]}set_caught(t){t=t?1:0,E[this.ptr+12]=t}get_caught(){return 0!=E[this.ptr+12]}set_rethrown(t){t=t?1:0,E[this.ptr+13]=t}get_rethrown(){return 0!=E[this.ptr+13]}init(t,e){this.set_adjusted_ptr(0),this.set_type(t),this.set_destructor(e)}set_adjusted_ptr(t){b[this.ptr+16>>2]=t}get_adjusted_ptr(){return b[this.ptr+16>>2]}get_exception_ptr(){var t=mn(this.get_type());if(t)return b[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var it=t=>{throw et||(et=t),et},ot=t=>{var e=et;if(!e)return ln(0),0;var r=new nt(e);r.set_adjusted_ptr(e);var n=r.get_type();if(!n)return ln(0),e;for(var i in t){var o=t[i];if(0===o||o===n)break;var a=r.ptr+16;if(pn(o,n,a))return ln(o),e}return ln(n),e},at=()=>ot([]),st=t=>ot([t]),ct=(t,e)=>ot([t,e]),ut=()=>{var t=K.pop();t||V("no exception to throw");var e=t.excPtr;throw t.get_rethrown()||(K.push(t),t.set_rethrown(!0),t.set_caught(!1),J++),et=e,et},lt=(t,e,r)=>{var n=new nt(t);throw n.init(e,r),et=t,J++,et},ht=()=>J,dt={},ft=t=>{for(;t.length;){var e=t.pop(),r=t.pop();r(e)}};function gt(t){return this.fromWireType(b[t>>2])}var pt,mt,wt,yt={},Et={},Ct={},At=t=>{throw new pt(t)},St=(t,e,r)=>{function n(e){var n=r(e);n.length!==t.length&&At("Mismatched type converter count");for(var i=0;i{Et.hasOwnProperty(t)?i[e]=Et[t]:(o.push(t),yt.hasOwnProperty(t)||(yt[t]=[]),yt[t].push(()=>{i[e]=Et[t],++a,a===o.length&&n(i)}))}),0===o.length&&n(i)},vt=t=>{var e=dt[t];delete dt[t];var r=e.rawConstructor,n=e.rawDestructor,i=e.fields,o=i.map(t=>t.getterReturnType).concat(i.map(t=>t.setterArgumentType));St([t],o,t=>{var o={};return i.forEach((e,r)=>{var n=e.fieldName,a=t[r],s=e.getter,c=e.getterContext,u=t[r+i.length],l=e.setter,h=e.setterContext;o[n]={read:t=>a.fromWireType(s(c,t)),write:(t,e)=>{var r=[];l(h,t,u.toWireType(r,e)),ft(r)}}}),[{name:e.name,fromWireType:t=>{var e={};for(var r in o)e[r]=o[r].read(t);return n(t),e},toWireType:(t,e)=>{for(var i in o)if(!(i in e))throw new TypeError(`Missing field: "${i}"`);var a=r();for(i in o)o[i].write(a,e[i]);return null!==t&&t.push(n,a),a},argPackAdvance:Nt,readValueFromPointer:gt,destructorFunction:n}]})},bt=(t,e,r,n,i)=>{},It=()=>{for(var t=new Array(256),e=0;e<256;++e)t[e]=String.fromCharCode(e);mt=t},_t=t=>{for(var e="",r=t;C[r];)e+=mt[C[r++]];return e},Tt=t=>{throw new wt(t)};function Rt(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var n=e.name;if(t||Tt(`type "${n}" must have a positive integer typeid pointer`),Et.hasOwnProperty(t)){if(r.ignoreDuplicateRegistrations)return;Tt(`Cannot register type '${n}' twice`)}if(Et[t]=e,delete Ct[t],yt.hasOwnProperty(t)){var i=yt[t];delete yt[t],i.forEach(t=>t())}}function Dt(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Rt(t,e,r)}var Ot,Nt=8,Mt=(t,e,r,n)=>{e=_t(e),Dt(t,{name:e,fromWireType:function(t){return!!t},toWireType:function(t,e){return e?r:n},argPackAdvance:Nt,readValueFromPointer:function(t){return this.fromWireType(C[t])},destructorFunction:null})},Pt=t=>({count:t.count,deleteScheduled:t.deleteScheduled,preservePointerOnDelete:t.preservePointerOnDelete,ptr:t.ptr,ptrType:t.ptrType,smartPtr:t.smartPtr,smartPtrType:t.smartPtrType}),Lt=t=>{function e(t){return t.$$.ptrType.registeredClass.name}Tt(e(t)+" instance already deleted")},xt=!1,Bt=t=>{},kt=t=>{t.smartPtr?t.smartPtrType.rawDestructor(t.smartPtr):t.ptrType.registeredClass.rawDestructor(t.ptr)},Ft=t=>{t.count.value-=1;var e=0===t.count.value;e&&kt(t)},Ut=(t,e,r)=>{if(e===r)return t;if(void 0===r.baseClass)return null;var n=Ut(t,e,r.baseClass);return null===n?null:r.downcast(n)},jt={},Ht=()=>Object.keys(Xt).length,Vt=()=>{var t=[];for(var e in Xt)Xt.hasOwnProperty(e)&&t.push(Xt[e]);return t},zt=[],Wt=()=>{for(;zt.length;){var t=zt.pop();t.$$.deleteScheduled=!1,t.delete()}},Gt=t=>{Ot=t,zt.length&&Ot&&Ot(Wt)},Yt=()=>{a.getInheritedInstanceCount=Ht,a.getLiveInheritedInstances=Vt,a.flushPendingDeletes=Wt,a.setDelayFunction=Gt},Xt={},$t=(t,e)=>{for(void 0===e&&Tt("ptr should not be undefined");t.baseClass;)e=t.upcast(e),t=t.baseClass;return e},Zt=(t,e)=>(e=$t(t,e),Xt[e]),Qt=(t,e)=>{(!e.ptrType||!e.ptr)&&At("makeClassHandle requires ptr and ptrType");var r=!!e.smartPtrType,n=!!e.smartPtr;return r!==n&&At("Both smartPtrType and smartPtr must be specified"),e.count={value:1},Kt(Object.create(t,{$$:{value:e,writable:!0}}))};function qt(t){var e=this.getPointee(t);if(!e)return this.destructor(t),null;var r=Zt(this.registeredClass,e);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=e,r.$$.smartPtr=t,r.clone();var n=r.clone();return this.destructor(t),n}function i(){return this.isSmartPointer?Qt(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:t}):Qt(this.registeredClass.instancePrototype,{ptrType:this,ptr:t})}var o,a=this.registeredClass.getActualType(e),s=jt[a];if(!s)return i.call(this);o=this.isConst?s.constPointerType:s.pointerType;var c=Ut(e,this.registeredClass,o.registeredClass);return null===c?i.call(this):this.isSmartPointer?Qt(o.registeredClass.instancePrototype,{ptrType:o,ptr:c,smartPtrType:this,smartPtr:t}):Qt(o.registeredClass.instancePrototype,{ptrType:o,ptr:c})}var Kt=t=>typeof FinalizationRegistry>"u"?(Kt=t=>t,t):(xt=new FinalizationRegistry(t=>{Ft(t.$$)}),Kt=t=>{var e=t.$$,r=!!e.smartPtr;if(r){var n={$$:e};xt.register(t,n,t)}return t},Bt=t=>xt.unregister(t),Kt(t)),Jt=()=>{Object.assign(te.prototype,{isAliasOf(t){if(!(this instanceof te)||!(t instanceof te))return!1;var e=this.$$.ptrType.registeredClass,r=this.$$.ptr;t.$$=t.$$;for(var n=t.$$.ptrType.registeredClass,i=t.$$.ptr;e.baseClass;)r=e.upcast(r),e=e.baseClass;for(;n.baseClass;)i=n.upcast(i),n=n.baseClass;return e===n&&r===i},clone(){if(this.$$.ptr||Lt(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var t=Kt(Object.create(Object.getPrototypeOf(this),{$$:{value:Pt(this.$$)}}));return t.$$.count.value+=1,t.$$.deleteScheduled=!1,t},delete(){this.$$.ptr||Lt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Tt("Object already scheduled for deletion"),Bt(this),Ft(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Lt(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Tt("Object already scheduled for deletion"),zt.push(this),1===zt.length&&Ot&&Ot(Wt),this.$$.deleteScheduled=!0,this}})};function te(){}var ee=(t,e)=>Object.defineProperty(e,"name",{value:t}),re=(t,e,r)=>{if(void 0===t[e].overloadTable){var n=t[e];t[e]=function(){for(var n=arguments.length,i=new Array(n),o=0;o{a.hasOwnProperty(t)?((void 0===r||void 0!==a[t].overloadTable&&void 0!==a[t].overloadTable[r])&&Tt(`Cannot register public name '${t}' twice`),re(a,t,t),a.hasOwnProperty(r)&&Tt(`Cannot register multiple overloads of a function with the same number of arguments (${r})!`),a[t].overloadTable[r]=e):(a[t]=e,void 0!==r&&(a[t].numArguments=r))},ie=48,oe=57,ae=t=>{if(void 0===t)return"_unknown";t=t.replace(/[^a-zA-Z0-9_]/g,"$");var e=t.charCodeAt(0);return e>=ie&&e<=oe?"_"+t:t};function se(t,e,r,n,i,o,a,s){this.name=t,this.constructor=e,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=i,this.getActualType=o,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}var ce=(t,e,r)=>{for(;e!==r;)e.upcast||Tt(`Expected null or instance of ${r.name}, got an instance of ${e.name}`),t=e.upcast(t),e=e.baseClass;return t};function ue(t,e){if(null===e)return this.isReference&&Tt("null is not a valid "+this.name),0;e.$$||Tt(`Cannot pass "${Ge(e)}" as a ${this.name}`),e.$$.ptr||Tt("Cannot pass deleted object as a pointer of type "+this.name);var r=e.$$.ptrType.registeredClass,n=ce(e.$$.ptr,r,this.registeredClass);return n}function le(t,e){var r;if(null===e)return this.isReference&&Tt("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==t&&t.push(this.rawDestructor,r),r):0;(!e||!e.$$)&&Tt(`Cannot pass "${Ge(e)}" as a ${this.name}`),e.$$.ptr||Tt("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&e.$$.ptrType.isConst&&Tt(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(r=ce(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===e.$$.smartPtr&&Tt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?r=e.$$.smartPtr:Tt(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:r=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)r=e.$$.smartPtr;else{var i=e.clone();r=this.rawShare(r,Fe.toHandle(()=>i.delete())),null!==t&&t.push(this.rawDestructor,r)}break;default:Tt("Unsupporting sharing policy")}return r}function he(t,e){if(null===e)return this.isReference&&Tt("null is not a valid "+this.name),0;e.$$||Tt(`Cannot pass "${Ge(e)}" as a ${this.name}`),e.$$.ptr||Tt("Cannot pass deleted object as a pointer of type "+this.name),e.$$.ptrType.isConst&&Tt(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var r=e.$$.ptrType.registeredClass,n=ce(e.$$.ptr,r,this.registeredClass);return n}var de=()=>{Object.assign(fe.prototype,{getPointee(t){return this.rawGetPointee&&(t=this.rawGetPointee(t)),t},destructor(t){var e;null===(e=this.rawDestructor)||void 0===e||e.call(this,t)},argPackAdvance:Nt,readValueFromPointer:gt,fromWireType:qt})};function fe(t,e,r,n,i,o,a,s,c,u,l){this.name=t,this.registeredClass=e,this.isReference=r,this.isConst=n,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=u,this.rawDestructor=l,i||void 0!==e.baseClass?this.toWireType=le:n?(this.toWireType=ue,this.destructorFunction=null):(this.toWireType=he,this.destructorFunction=null)}var ge,pe,me=(t,e,r)=>{a.hasOwnProperty(t)||At("Replacing nonexistant public symbol"),void 0!==a[t].overloadTable&&void 0!==r?a[t].overloadTable[r]=e:(a[t]=e,a[t].argCount=r)},we=(t,e,r)=>{var n=a["dynCall_"+t];return n(e,...r)},ye=[],Ee=t=>{var e=ye[t];return e||(t>=ye.length&&(ye.length=t+1),ye[t]=e=ge.get(t)),e},Ce=function(t,e){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(t.includes("j"))return we(t,e,r);var n=Ee(e)(...r);return n},Ae=(t,e)=>function(){for(var r=arguments.length,n=new Array(r),i=0;i{function r(){return t.includes("j")?Ae(t,e):Ee(e)}t=_t(t);var n=r();return"function"!=typeof n&&Tt(`unknown function pointer with signature ${t}: ${e}`),n},ve=(t,e)=>{var r=ee(e,(function(t){this.name=e,this.message=t;var r=new Error(t).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(t.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},r},be=t=>{var e=cn(t),r=_t(e);return an(e),r},Ie=(t,e)=>{var r=[],n={};function i(t){if(!n[t]&&!Et[t]){if(Ct[t])return void Ct[t].forEach(i);r.push(t),n[t]=!0}}throw e.forEach(i),new pe(t+": "+r.map(be).join([", "]))},_e=(t,e,r,n,i,o,a,s,c,u,l,h,d)=>{l=_t(l),o=Se(i,o),s&&(s=Se(a,s)),u&&(u=Se(c,u)),d=Se(h,d);var f=ae(l);ne(f,(function(){Ie(`Cannot construct ${l} due to unbound types`,[n])})),St([t,e,r],n?[n]:[],e=>{var r,i;e=e[0],n?(r=e.registeredClass,i=r.instancePrototype):i=te.prototype;var a=ee(l,(function(){if(Object.getPrototypeOf(this)!==c)throw new wt("Use 'new' to construct "+l);if(void 0===p.constructor_body)throw new wt(l+" has no accessible constructor");for(var t=arguments.length,e=new Array(t),r=0;r{for(var r=[],n=0;n>2]);return r};function Re(t){for(var e=1;e{var a=Te(e,r);i=Se(n,i),St([],[t],t=>{t=t[0];var r="constructor "+t.name;if(void 0===t.registeredClass.constructor_body&&(t.registeredClass.constructor_body=[]),void 0!==t.registeredClass.constructor_body[e-1])throw new wt(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${t.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return t.registeredClass.constructor_body[e-1]=()=>{Ie(`Cannot construct ${t.name} due to unbound types`,a)},St([],a,n=>(n.splice(1,0,null),t.registeredClass.constructor_body[e-1]=De(r,n,null,i,o),[])),[]})},Ne=t=>{t=t.trim();const e=t.indexOf("(");return-1!==e?t.substr(0,e):t},Me=(t,e,r,n,i,o,a,s,c)=>{var u=Te(r,n);e=_t(e),e=Ne(e),o=Se(i,o),St([],[t],t=>{t=t[0];var n=`${t.name}.${e}`;function i(){Ie(`Cannot call ${n} due to unbound types`,u)}e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&t.registeredClass.pureVirtualFunctions.push(e);var c=t.registeredClass.instancePrototype,l=c[e];return void 0===l||void 0===l.overloadTable&&l.className!==t.name&&l.argCount===r-2?(i.argCount=r-2,i.className=t.name,c[e]=i):(re(c,e,n),c[e].overloadTable[r-2]=i),St([],u,i=>{var s=De(n,i,t,o,a);return void 0===c[e].overloadTable?(s.argCount=r-2,c[e]=s):c[e].overloadTable[r-2]=s,[]}),[]})},Pe=[],Le=[],xe=t=>{t>9&&0===--Le[t+1]&&(Le[t]=void 0,Pe.push(t))},Be=()=>Le.length/2-5-Pe.length,ke=()=>{Le.push(0,1,void 0,1,null,1,!0,1,!1,1),a.count_emval_handles=Be},Fe={toValue:t=>(t||Tt("Cannot use deleted val. handle = "+t),Le[t]),toHandle:t=>{switch(t){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Pe.pop()||Le.length;return Le[e]=t,Le[e+1]=1,e}}}},Ue={name:"emscripten::val",fromWireType:t=>{var e=Fe.toValue(t);return xe(t),e},toWireType:(t,e)=>Fe.toHandle(e),argPackAdvance:Nt,readValueFromPointer:gt,destructorFunction:null},je=t=>Dt(t,Ue),He=(t,e,r)=>{switch(e){case 1:return r?function(t){return this.fromWireType(E[t])}:function(t){return this.fromWireType(C[t])};case 2:return r?function(t){return this.fromWireType(A[t>>1])}:function(t){return this.fromWireType(S[t>>1])};case 4:return r?function(t){return this.fromWireType(v[t>>2])}:function(t){return this.fromWireType(b[t>>2])};default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},Ve=(t,e,r,n)=>{function i(){}e=_t(e),i.values={},Dt(t,{name:e,constructor:i,fromWireType:function(t){return this.constructor.values[t]},toWireType:(t,e)=>e.value,argPackAdvance:Nt,readValueFromPointer:He(e,r,n),destructorFunction:null}),ne(e,i)},ze=(t,e)=>{var r=Et[t];return void 0===r&&Tt(`${e} has unknown type ${be(t)}`),r},We=(t,e,r)=>{var n=ze(t,"enum");e=_t(e);var i=n.constructor,o=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:ee(`${n.name}_${e}`,(function(){}))}});i.values[r]=o,i[e]=o},Ge=t=>{if(null===t)return"null";var e=typeof t;return"object"===e||"array"===e||"function"===e?t.toString():""+t},Ye=(t,e)=>{switch(e){case 4:return function(t){return this.fromWireType(I[t>>2])};case 8:return function(t){return this.fromWireType(_[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${t}`)}},Xe=(t,e,r)=>{e=_t(e),Dt(t,{name:e,fromWireType:t=>t,toWireType:(t,e)=>e,argPackAdvance:Nt,readValueFromPointer:Ye(e,r),destructorFunction:null})},$e=(t,e,r,n,i,o,a)=>{var s=Te(e,r);t=_t(t),t=Ne(t),i=Se(n,i),ne(t,(function(){Ie(`Cannot call ${t} due to unbound types`,s)}),e-1),St([],s,r=>{var n=[r[0],null].concat(r.slice(1));return me(t,De(t,n,null,i,o),e-1),[]})},Ze=(t,e,r)=>{switch(e){case 1:return r?t=>E[t]:t=>C[t];case 2:return r?t=>A[t>>1]:t=>S[t>>1];case 4:return r?t=>v[t>>2]:t=>b[t>>2];default:throw new TypeError(`invalid integer width (${e}): ${t}`)}},Qe=(t,e,r,n,i)=>{e=_t(e);var o=t=>t;if(0===n){var a=32-8*r;o=t=>t<>>a}var s,c=e.includes("unsigned"),u=(t,e)=>{};s=c?function(t,e){return u(e,this.name),e>>>0}:function(t,e){return u(e,this.name),e},Dt(t,{name:e,fromWireType:o,toWireType:s,argPackAdvance:Nt,readValueFromPointer:Ze(e,r,0!==n),destructorFunction:null})},qe=(t,e,r)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],i=n[e];function o(t){var e=b[t>>2],r=b[t+4>>2];return new i(E.buffer,r,e)}r=_t(r),Dt(t,{name:r,fromWireType:o,argPackAdvance:Nt,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})},Ke=(t,e)=>{je(t)},Je=(t,e,r,n)=>{if(!(n>0))return 0;for(var i=r,o=r+n-1,a=0;a=55296&&s<=57343){var c=t.charCodeAt(++a);s=65536+((1023&s)<<10)|1023&c}if(s<=127){if(r>=o)break;e[r++]=s}else if(s<=2047){if(r+1>=o)break;e[r++]=192|s>>6,e[r++]=128|63&s}else if(s<=65535){if(r+2>=o)break;e[r++]=224|s>>12,e[r++]=128|s>>6&63,e[r++]=128|63&s}else{if(r+3>=o)break;e[r++]=240|s>>18,e[r++]=128|s>>12&63,e[r++]=128|s>>6&63,e[r++]=128|63&s}}return e[r]=0,r-i},tr=(t,e,r)=>Je(t,C,e,r),er=t=>{for(var e=0,r=0;r=55296&&n<=57343?(e+=4,++r):e+=3}return e},rr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,nr=(t,e,r)=>{for(var n=e+r,i=e;t[i]&&!(i>=n);)++i;if(i-e>16&&t.buffer&&rr)return rr.decode(t.subarray(e,i));for(var o="";e>10,56320|1023&u)}}else o+=String.fromCharCode((31&a)<<6|s)}else o+=String.fromCharCode(a)}return o},ir=(t,e)=>t?nr(C,t,e):"",or=(t,e)=>{e=_t(e);var r="std::string"===e;Dt(t,{name:e,fromWireType(t){var e,n=b[t>>2],i=t+4;if(r)for(var o=i,a=0;a<=n;++a){var s=i+a;if(a==n||0==C[s]){var c=s-o,u=ir(o,c);void 0===e?e=u:(e+="\0",e+=u),o=s+1}}else{var l=new Array(n);for(a=0;a>2]=n,r&&i)tr(e,a,n+1);else if(i)for(var s=0;s255&&(an(a),Tt("String has UTF-16 code units that do not fit in 8 bits")),C[a+s]=c}else for(s=0;s{for(var r=t,n=r>>1,i=n+e/2;!(n>=i)&&S[n];)++n;if(r=n<<1,r-t>32&&ar)return ar.decode(C.subarray(t,r));for(var o="",a=0;!(a>=e/2);++a){var s=A[t+2*a>>1];if(0==s)break;o+=String.fromCharCode(s)}return o},cr=(t,e,r)=>{var n;if(null!==(n=r)&&void 0!==n||(r=2147483647),r<2)return 0;r-=2;for(var i=e,o=r<2*t.length?r/2:t.length,a=0;a>1]=s,e+=2}return A[e>>1]=0,e-i},ur=t=>2*t.length,lr=(t,e)=>{for(var r=0,n="";!(r>=e/4);){var i=v[t+4*r>>2];if(0==i)break;if(++r,i>=65536){var o=i-65536;n+=String.fromCharCode(55296|o>>10,56320|1023&o)}else n+=String.fromCharCode(i)}return n},hr=(t,e,r)=>{var n;if(null!==(n=r)&&void 0!==n||(r=2147483647),r<4)return 0;for(var i=e,o=i+r-4,a=0;a=55296&&s<=57343){var c=t.charCodeAt(++a);s=65536+((1023&s)<<10)|1023&c}if(v[e>>2]=s,e+=4,e+4>o)break}return v[e>>2]=0,e-i},dr=t=>{for(var e=0,r=0;r=55296&&n<=57343&&++r,e+=4}return e},fr=(t,e,r)=>{var n,i,o,a;r=_t(r),2===e?(n=sr,i=cr,a=ur,o=t=>S[t>>1]):4===e&&(n=lr,i=hr,a=dr,o=t=>b[t>>2]),Dt(t,{name:r,fromWireType:t=>{for(var r,i=b[t>>2],a=t+4,s=0;s<=i;++s){var c=t+4+s*e;if(s==i||0==o(c)){var u=c-a,l=n(a,u);void 0===r?r=l:(r+="\0",r+=l),a=c+e}}return an(t),r},toWireType:(t,n)=>{"string"!=typeof n&&Tt("Cannot pass non-string to C++ string type "+r);var o=a(n),s=sn(4+o+e);return b[s>>2]=o/e,i(n,s+4,o+e),null!==t&&t.push(an,s),s},argPackAdvance:Nt,readValueFromPointer:gt,destructorFunction(t){an(t)}})},gr=(t,e,r,n,i,o)=>{dt[t]={name:_t(e),rawConstructor:Se(r,n),rawDestructor:Se(i,o),fields:[]}},pr=(t,e,r,n,i,o,a,s,c,u)=>{dt[t].fields.push({fieldName:_t(e),getterReturnType:r,getter:Se(n,i),getterContext:o,setterArgumentType:a,setter:Se(s,c),setterContext:u})},mr=(t,e)=>{e=_t(e),Dt(t,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,e)=>{}})},wr=[],yr=(t,e,r,n)=>(t=wr[t],e=Fe.toValue(e),t(null,e,r,n)),Er={},Cr=t=>{var e=Er[t];return void 0===e?_t(t):e},Ar=()=>{if("object"==typeof globalThis)return globalThis;function t(t){t.$$$embind_global$$$=t;var e="object"==typeof $$$embind_global$$$&&t.$$$embind_global$$$==t;return e||delete t.$$$embind_global$$$,e}if("object"==typeof $$$embind_global$$$||("object"==typeof n&&t(n)?$$$embind_global$$$=n:"object"==typeof self&&t(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$))return $$$embind_global$$$;throw Error("unable to get global object.")},Sr=t=>0===t?Fe.toHandle(Ar()):(t=Cr(t),Fe.toHandle(Ar()[t])),vr=t=>{var e=wr.length;return wr.push(t),e},br=(t,e)=>{for(var r=new Array(t),n=0;n>2],"parameter "+n);return r},Ir=Reflect.construct,_r=(t,e,r)=>{var n=[],i=t.toWireType(n,r);return n.length&&(b[e>>2]=Fe.toHandle(n)),i},Tr=(t,e,r)=>{var n=br(t,e),i=n.shift();t--;var o=new Array(t),a=(e,a,s,c)=>{for(var u=0,l=0;lt.name).join(", ")}) => ${i.name}>`;return vr(ee(s,a))},Rr=t=>{t>9&&(Le[t+1]+=1)},Dr=t=>{var e=Fe.toValue(t);ft(e),xe(t)},Or=(t,e)=>{t=ze(t,"_emval_take_value");var r=t.readValueFromPointer(e);return Fe.toHandle(r)},Nr=()=>{V("")},Mr=(t,e,r)=>C.copyWithin(t,e,e+r),Pr=()=>2147483648,Lr=t=>{var e=y.buffer,r=(t-e.byteLength+65535)/65536;try{return y.grow(r),R(),1}catch{}},xr=t=>{var e=C.length;t>>>=0;var r=Pr();if(t>r)return!1;for(var n=(t,e)=>t+(e-t%e)%e,i=1;i<=4;i*=2){var o=e*(1+.2/i);o=Math.min(o,t+100663296);var a=Math.min(r,n(Math.max(t,o),65536)),s=Lr(a);if(s)return!0}return!1},Br={},kr=()=>c||"./this.program",Fr=()=>{if(!Fr.strings){var t=("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:t,_:kr()};for(var r in Br)void 0===Br[r]?delete e[r]:e[r]=Br[r];var n=[];for(var r in e)n.push(`${r}=${e[r]}`);Fr.strings=n}return Fr.strings},Ur=(t,e)=>{for(var r=0;r{var r=0;return Fr().forEach((n,i)=>{var o=e+r;b[t+4*i>>2]=o,Ur(n,o),r+=n.length+1}),0},Hr=(t,e)=>{var r=Fr();b[t>>2]=r.length;var n=0;return r.forEach(t=>n+=t.length+1),b[e>>2]=n,0},Vr=t=>52;function zr(t,e,r,n,i){return 70}var Wr=[null,[],[]],Gr=(t,e)=>{var r=Wr[t];0===e||10===e?((1===t?m:w)(nr(r,0)),r.length=0):r.push(e)},Yr=(t,e,r,n)=>{for(var i=0,o=0;o>2],s=b[e+4>>2];e+=8;for(var c=0;c>2]=i,0},Xr=t=>t,$r=t=>t%4===0&&(t%100!==0||t%400===0),Zr=(t,e)=>{for(var r=0,n=0;n<=e;r+=t[n++]);return r},Qr=[31,29,31,30,31,30,31,31,30,31,30,31],qr=[31,28,31,30,31,30,31,31,30,31,30,31],Kr=(t,e)=>{for(var r=new Date(t.getTime());e>0;){var n=$r(r.getFullYear()),i=r.getMonth(),o=(n?Qr:qr)[i];if(!(e>o-r.getDate()))return r.setDate(r.getDate()+e),r;e-=o-r.getDate()+1,r.setDate(1),i<11?r.setMonth(i+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1))}return r};function Jr(t,e,r){var n=r>0?r:er(t)+1,i=new Array(n),o=Je(t,i,0,i.length);return e&&(i.length=o),i}var tn=(t,e)=>{E.set(t,e)},en=(t,e,r,n)=>{var i=b[n+40>>2],o={tm_sec:v[n>>2],tm_min:v[n+4>>2],tm_hour:v[n+8>>2],tm_mday:v[n+12>>2],tm_mon:v[n+16>>2],tm_year:v[n+20>>2],tm_wday:v[n+24>>2],tm_yday:v[n+28>>2],tm_isdst:v[n+32>>2],tm_gmtoff:v[n+36>>2],tm_zone:i?ir(i):""},a=ir(r),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var c in s)a=a.replace(new RegExp(c,"g"),s[c]);var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(t,e,r){for(var n="number"==typeof t?t.toString():t||"";n.length0?1:0}var n;return 0===(n=r(t.getFullYear()-e.getFullYear()))&&0===(n=r(t.getMonth()-e.getMonth()))&&(n=r(t.getDate()-e.getDate())),n}function g(t){switch(t.getDay()){case 0:return new Date(t.getFullYear()-1,11,29);case 1:return t;case 2:return new Date(t.getFullYear(),0,3);case 3:return new Date(t.getFullYear(),0,2);case 4:return new Date(t.getFullYear(),0,1);case 5:return new Date(t.getFullYear()-1,11,31);case 6:return new Date(t.getFullYear()-1,11,30)}}function p(t){var e=Kr(new Date(t.tm_year+1900,0,1),t.tm_yday),r=new Date(e.getFullYear(),0,4),n=new Date(e.getFullYear()+1,0,4),i=g(r),o=g(n);return f(i,e)<=0?f(o,e)<=0?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var m={"%a":t=>u[t.tm_wday].substring(0,3),"%A":t=>u[t.tm_wday],"%b":t=>l[t.tm_mon].substring(0,3),"%B":t=>l[t.tm_mon],"%C":t=>{var e=t.tm_year+1900;return d(e/100|0,2)},"%d":t=>d(t.tm_mday,2),"%e":t=>h(t.tm_mday,2," "),"%g":t=>p(t).toString().substring(2),"%G":p,"%H":t=>d(t.tm_hour,2),"%I":t=>{var e=t.tm_hour;return 0==e?e=12:e>12&&(e-=12),d(e,2)},"%j":t=>d(t.tm_mday+Zr($r(t.tm_year+1900)?Qr:qr,t.tm_mon-1),3),"%m":t=>d(t.tm_mon+1,2),"%M":t=>d(t.tm_min,2),"%n":()=>"\n","%p":t=>t.tm_hour>=0&&t.tm_hour<12?"AM":"PM","%S":t=>d(t.tm_sec,2),"%t":()=>"\t","%u":t=>t.tm_wday||7,"%U":t=>{var e=t.tm_yday+7-t.tm_wday;return d(Math.floor(e/7),2)},"%V":t=>{var e=Math.floor((t.tm_yday+7-(t.tm_wday+6)%7)/7);if((t.tm_wday+371-t.tm_yday-2)%7<=2&&e++,e){if(53==e){var r=(t.tm_wday+371-t.tm_yday)%7;4!=r&&(3!=r||!$r(t.tm_year))&&(e=1)}}else{e=52;var n=(t.tm_wday+7-t.tm_yday-1)%7;(4==n||5==n&&$r(t.tm_year%400-1))&&e++}return d(e,2)},"%w":t=>t.tm_wday,"%W":t=>{var e=t.tm_yday+7-(t.tm_wday+6)%7;return d(Math.floor(e/7),2)},"%y":t=>(t.tm_year+1900).toString().substring(2),"%Y":t=>t.tm_year+1900,"%z":t=>{var e=t.tm_gmtoff,r=e>=0;return e=Math.abs(e)/60,e=e/60*100+e%60,(r?"+":"-")+("0000"+e).slice(-4)},"%Z":t=>t.tm_zone,"%%":()=>"%"};for(var c in a=a.replace(/%%/g,"\0\0"),m)a.includes(c)&&(a=a.replace(new RegExp(c,"g"),m[c](o)));a=a.replace(/\0\0/g,"%");var w=Jr(a,!1);return w.length>e?0:(tn(w,t),w.length-1)},rn=(t,e,r,n,i)=>en(t,e,r,n);pt=a.InternalError=class extends Error{constructor(t){super(t),this.name="InternalError"}},It(),wt=a.BindingError=class extends Error{constructor(t){super(t),this.name="BindingError"}},Jt(),Yt(),de(),pe=a.UnboundTypeError=ve(Error,"UnboundTypeError"),ke();var nn={s:tt,u:rt,b:at,g:st,q:ct,K:ut,f:lt,Y:ht,d:it,ha:vt,U:bt,ba:Mt,fa:_e,ea:Oe,w:Me,aa:je,x:Ve,h:We,O:Xe,P:$e,t:Qe,o:qe,ga:Ke,N:or,C:fr,A:gr,ia:pr,ca:mr,E:yr,ka:xe,la:Sr,M:Tr,Q:Rr,R:Dr,da:Or,B:Nr,$:Mr,Z:xr,W:jr,X:Hr,_:Vr,T:zr,L:Yr,F:Ln,D:vn,G:Pn,m:xn,a:En,e:In,p:Sn,k:Mn,I:On,v:Rn,H:Nn,z:kn,S:Un,l:_n,j:bn,c:An,n:Cn,J:Dn,r:Bn,i:Tn,y:Fn,ja:Xr,V:rn},on=Q(),an=a._free=t=>(an=a._free=on.oa)(t),sn=a._malloc=t=>(sn=a._malloc=on.pa)(t),cn=t=>(cn=on.ra)(t),un=(t,e)=>(un=on.sa)(t,e),ln=t=>(ln=on.ta)(t),hn=()=>(hn=on.ua)(),dn=t=>(dn=on.va)(t),fn=t=>(fn=on.wa)(t),gn=t=>(gn=on.xa)(t),pn=(t,e,r)=>(pn=on.ya)(t,e,r),mn=t=>(mn=on.za)(t);a.dynCall_viijii=(t,e,r,n,i,o,s)=>(a.dynCall_viijii=on.Aa)(t,e,r,n,i,o,s),a.dynCall_jiji=(t,e,r,n,i)=>(a.dynCall_jiji=on.Ba)(t,e,r,n,i);var wn,yn=a.dynCall_jiiii=(t,e,r,n,i)=>(yn=a.dynCall_jiiii=on.Ca)(t,e,r,n,i);function En(t,e){var r=hn();try{return Ee(t)(e)}catch(n){if(dn(r),n!==n+0)throw n;un(1,0)}}function Cn(t,e,r,n){var i=hn();try{Ee(t)(e,r,n)}catch(o){if(dn(i),o!==o+0)throw o;un(1,0)}}function An(t,e,r){var n=hn();try{Ee(t)(e,r)}catch(i){if(dn(n),i!==i+0)throw i;un(1,0)}}function Sn(t,e,r,n){var i=hn();try{return Ee(t)(e,r,n)}catch(o){if(dn(i),o!==o+0)throw o;un(1,0)}}function vn(t,e,r,n,i){var o=hn();try{return Ee(t)(e,r,n,i)}catch(a){if(dn(o),a!==a+0)throw a;un(1,0)}}function bn(t,e){var r=hn();try{Ee(t)(e)}catch(n){if(dn(r),n!==n+0)throw n;un(1,0)}}function In(t,e,r){var n=hn();try{return Ee(t)(e,r)}catch(i){if(dn(n),i!==i+0)throw i;un(1,0)}}function _n(t){var e=hn();try{Ee(t)()}catch(r){if(dn(e),r!==r+0)throw r;un(1,0)}}function Tn(t,e,r,n,i,o,a,s,c,u,l){var h=hn();try{Ee(t)(e,r,n,i,o,a,s,c,u,l)}catch(d){if(dn(h),d!==d+0)throw d;un(1,0)}}function Rn(t,e,r,n,i,o,a){var s=hn();try{return Ee(t)(e,r,n,i,o,a)}catch(c){if(dn(s),c!==c+0)throw c;un(1,0)}}function Dn(t,e,r,n,i){var o=hn();try{Ee(t)(e,r,n,i)}catch(a){if(dn(o),a!==a+0)throw a;un(1,0)}}function On(t,e,r,n,i,o){var a=hn();try{return Ee(t)(e,r,n,i,o)}catch(s){if(dn(a),s!==s+0)throw s;un(1,0)}}function Nn(t,e,r,n,i,o,a,s){var c=hn();try{return Ee(t)(e,r,n,i,o,a,s)}catch(u){if(dn(c),u!==u+0)throw u;un(1,0)}}function Mn(t,e,r,n,i){var o=hn();try{return Ee(t)(e,r,n,i)}catch(a){if(dn(o),a!==a+0)throw a;un(1,0)}}function Pn(t,e,r,n){var i=hn();try{return Ee(t)(e,r,n)}catch(o){if(dn(i),o!==o+0)throw o;un(1,0)}}function Ln(t,e,r,n){var i=hn();try{return Ee(t)(e,r,n)}catch(o){if(dn(i),o!==o+0)throw o;un(1,0)}}function xn(t){var e=hn();try{return Ee(t)()}catch(r){if(dn(e),r!==r+0)throw r;un(1,0)}}function Bn(t,e,r,n,i,o,a,s){var c=hn();try{Ee(t)(e,r,n,i,o,a,s)}catch(u){if(dn(c),u!==u+0)throw u;un(1,0)}}function kn(t,e,r,n,i,o,a,s,c,u,l,h){var d=hn();try{return Ee(t)(e,r,n,i,o,a,s,c,u,l,h)}catch(f){if(dn(d),f!==f+0)throw f;un(1,0)}}function Fn(t,e,r,n,i,o,a,s,c,u,l,h,d,f,g,p){var m=hn();try{Ee(t)(e,r,n,i,o,a,s,c,u,l,h,d,f,g,p)}catch(w){if(dn(m),w!==w+0)throw w;un(1,0)}}function Un(t,e,r,n,i){var o=hn();try{return yn(t,e,r,n,i)}catch(a){if(dn(o),a!==a+0)throw a;un(1,0)}}function jn(){function t(){wn||(wn=!0,a.calledRun=!0,!T&&(P(),i(a),a.onRuntimeInitialized&&a.onRuntimeInitialized(),L()))}F>0||(M(),F>0)||(a.setStatus?(a.setStatus("Running..."),setTimeout((function(){setTimeout((function(){a.setStatus("")}),1),t()}),1)):t())}if(a.dynCall_iiiiij=(t,e,r,n,i,o,s)=>(a.dynCall_iiiiij=on.Da)(t,e,r,n,i,o,s),a.dynCall_iiiiijj=(t,e,r,n,i,o,s,c,u)=>(a.dynCall_iiiiijj=on.Ea)(t,e,r,n,i,o,s,c,u),a.dynCall_iiiiiijj=(t,e,r,n,i,o,s,c,u,l)=>(a.dynCall_iiiiiijj=on.Fa)(t,e,r,n,i,o,s,c,u,l),U=function t(){wn||jn(),wn||(U=t)},a.preInit)for("function"==typeof a.preInit&&(a.preInit=[a.preInit]);a.preInit.length>0;)a.preInit.pop()();return jn(),r.ready}})();function T(t){return v(_,t)}async function R(t,e){return b(_,t,e)}async function D(t,e){return I(_,t,e)}const O=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],N=[...O,["unknown"]].map(t=>t[0]),M=new Map(O);function P(t){for(const[e,r]of M)if(t===r)return e;return"unknown"}function L(t){if(x(t))return{width:t.naturalWidth,height:t.naturalHeight};if(B(t))return{width:t.width.baseVal.value,height:t.height.baseVal.value};if(k(t))return{width:t.videoWidth,height:t.videoHeight};if(U(t))return{width:t.width,height:t.height};if(H(t))return{width:t.displayWidth,height:t.displayHeight};if(F(t))return{width:t.width,height:t.height};if(j(t))return{width:t.width,height:t.height};throw new TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}function x(t){try{return t instanceof HTMLImageElement}catch{return!1}}function B(t){try{return t instanceof SVGImageElement}catch{return!1}}function k(t){try{return t instanceof HTMLVideoElement}catch{return!1}}function F(t){try{return t instanceof HTMLCanvasElement}catch{return!1}}function U(t){try{return t instanceof ImageBitmap}catch{return!1}}function j(t){try{return t instanceof OffscreenCanvas}catch{return!1}}function H(t){try{return t instanceof VideoFrame}catch{return!1}}function V(t){try{return t instanceof Blob}catch{return!1}}function z(t){try{return t instanceof ImageData}catch{return!1}}function W(t,e){try{const r=new OffscreenCanvas(t,e);if(r.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return r;throw void 0}catch{const r=document.createElement("canvas");return r.width=t,r.height=e,r}}async function G(t){if(x(t)&&!await Z(t))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(B(t)&&!await Q(t))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(H(t)&&q(t))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(k(t)&&(0===t.readyState||1===t.readyState))throw new DOMException("Invalid element or state.","InvalidStateError");if(U(t)&&J(t))throw new DOMException("The image source is detached.","InvalidStateError");const{width:e,height:r}=L(t);if(0===e||0===r)return null;const n=W(e,r).getContext("2d");n.drawImage(t,0,0);try{return n.getImageData(0,0,e,r)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function Y(t){let e;try{if(globalThis.createImageBitmap)e=await createImageBitmap(t);else{if(!globalThis.Image)return t;{e=new Image;let r="";try{r=URL.createObjectURL(t),e.src=r,await e.decode()}finally{URL.revokeObjectURL(r)}}}}catch{throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}return await G(e)}function X(t){const{width:e,height:r}=t;if(0===e||0===r)return null;const n=t.getContext("2d");try{return n.getImageData(0,0,e,r)}catch{throw new DOMException("Source would taint origin.","SecurityError")}}async function $(t){if(V(t))return await Y(t);if(z(t)){if(K(t))throw new DOMException("The image data has been detached.","InvalidStateError");return t}return F(t)||j(t)?X(t):await G(t)}async function Z(t){try{return await t.decode(),!0}catch{return!1}}async function Q(t){var e;try{return await(null==(e=t.decode)?void 0:e.call(t)),!0}catch{return!1}}function q(t){return null===t.format}function K(t){return 0===t.data.buffer.byteLength}function J(t){return 0===t.width&&0===t.height}function tt(t,e){return t instanceof DOMException?new DOMException(`${e}: ${t.message}`,t.name):t instanceof Error?new t.constructor(`${e}: ${t.message}`):new Error(`${e}: ${t}`)}var et;class rt extends EventTarget{constructor(t={}){var e;super(),a(this,et,void 0);try{const r=null==(e=null==t?void 0:t.formats)?void 0:e.filter(t=>"unknown"!==t);if(0===(null==r?void 0:r.length))throw new TypeError("Hint option provided, but is empty.");for(const t of null!=r?r:[])if(!M.has(t))throw new TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${t}' is not a valid enum value of type BarcodeFormat.`);s(this,et,null!=r?r:[]),T().then(t=>{this.dispatchEvent(new CustomEvent("load",{detail:t}))}).catch(t=>{this.dispatchEvent(new CustomEvent("error",{detail:t}))})}catch(r){throw tt(r,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return N.filter(t=>"unknown"!==t)}async detect(t){try{const r=await $(t);if(null===r)return[];let n;try{n=V(r)?await R(r,{tryHarder:!0,formats:o(this,et).map(t=>M.get(t))}):await D(r,{tryHarder:!0,formats:o(this,et).map(t=>M.get(t))})}catch(e){throw console.error(e),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return n.map(t=>{const{topLeft:{x:e,y:r},topRight:{x:n,y:i},bottomLeft:{x:o,y:a},bottomRight:{x:s,y:c}}=t.position,u=Math.min(e,n,o,s),l=Math.min(r,i,a,c),h=Math.max(e,n,o,s),d=Math.max(r,i,a,c);return{boundingBox:new DOMRectReadOnly(u,l,h-u,d-l),rawValue:t.text,format:P(t.format),cornerPoints:[{x:e,y:r},{x:n,y:i},{x:s,y:c},{x:o,y:a}]}})}catch(r){throw tt(r,"Failed to execute 'detect' on 'BarcodeDetector'")}}}et=new WeakMap}).call(this,r("4362"),r("c8ba"))},"7b0b":function(t,e,r){"use strict";var n=r("1d80"),i=Object;t.exports=function(t){return i(n(t))}},"7c37":function(t,e,r){"use strict";var n=r("605d");t.exports=function(t){try{if(n)return Function('return require("'+t+'")')()}catch(e){}}},"7c73":function(t,e,r){"use strict";var n,i=r("825a"),o=r("37e8"),a=r("7839"),s=r("d012"),c=r("1be4"),u=r("cc12"),l=r("f772"),h=">",d="<",f="prototype",g="script",p=l("IE_PROTO"),m=function(){},w=function(t){return d+g+h+t+d+"/"+g+h},y=function(t){t.write(w("")),t.close();var e=t.parentWindow.Object;return t=null,e},E=function(){var t,e=u("iframe"),r="java"+g+":";return e.style.display="none",c.appendChild(e),e.src=String(r),t=e.contentWindow.document,t.open(),t.write(w("document.F=Object")),t.close(),t.F},C=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}C="undefined"!=typeof document?document.domain&&n?y(n):E():y(n);var t=a.length;while(t--)delete C[f][a[t]];return C()};s[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(m[f]=i(t),r=new m,m[f]=null,r[p]=t):r=C(),void 0===e?r:o.f(r,e)}},"7db0":function(t,e,r){"use strict";var n=r("23e7"),i=r("b727").find,o=r("44d2"),a="find",s=!0;a in[]&&Array(1)[a]((function(){s=!1})),n({target:"Array",proto:!0,forced:s},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(a)},8172:function(t,e,r){"use strict";var n=r("e065"),i=r("57b9");n("toPrimitive"),i()},"825a":function(t,e,r){"use strict";var n=r("861d"),i=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(i(t)+" is not an object")}},"83ab":function(t,e,r){"use strict";var n=r("d039");t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,r){"use strict";var n=r("83ab"),i=r("9bf2"),o=r("5c6c");t.exports=function(t,e,r){n?i.f(t,e,o(0,r)):t[e]=r}},"861d":function(t,e,r){"use strict";var n=r("1626");t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},8875:function(t,e,r){var n,i,o;(function(r,a){i=[],n=a,o="function"===typeof n?n.apply(e,i):n,void 0===o||(t.exports=o)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(f){var r,n,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(f.stack)||a.exec(f.stack),c=s&&s[1]||!1,u=s&&s[2]||!1,l=document.location.href.replace(document.location.hash,""),h=document.getElementsByTagName("script");c===l&&(r=document.documentElement.outerHTML,n=new RegExp("(?:[^\\n]+?\\n){0,"+(u-2)+"}[^<]*