(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-admin-order_cancellation-index"],{"0d55":function(t,e,n){"use strict";n.r(e);var r=n("8968"),o=n("5034");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("0e8c");var a=n("828b"),c=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,"f1c6f59e",null,!1,r["a"],void 0);e["default"]=c.exports},"0dcc":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"base-nav-bar",class:{"light-text":t.lightText}},[n("v-uni-view",{staticClass:"nav-bar-wrapper"},[t.showBack?n("v-uni-button",{staticClass:"nav-bar-back",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBack.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"iconfont icon-ic_leftarrow"})],1):t._e(),n("v-uni-view",{staticClass:"base-nav-bar-title overflow-text"},[t._v(t._s(t.title))])],1)],1)},o=[]},"0e8c":function(t,e,n){"use strict";var r=n("ccf8"),o=n.n(r);o.a},"15ab":function(t,e,n){"use strict";var r=n("7658"),o=n("57e7");r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},"18e6":function(t,e,n){"use strict";n.r(e);var r=n("393b"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"1afd":function(t,e,n){"use strict";var r=n("8bdb"),o=n("1c06"),i=n("d0b1").onFreeze,a=n("c238"),c=n("af9e"),u=Object.preventExtensions,s=c((function(){u(1)}));r({target:"Object",stat:!0,forced:s,sham:!a},{preventExtensions:function(t){return u&&o(t)?u(i(t)):t}})},2239:function(t,e,n){"use strict";n("6a54");var r=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n("2634")),i=r(n("2fdc"));n("c223"),n("5c47"),n("0506"),n("5ef2");var a=r(n("690b")),c=r(n("5818")),u=n("aa10"),s=n("a3ed"),f={SCAN:1,INPUT:2},l={components:{BaseContainer:a.default,BaseNavBar:c.default,QrcodeStream:s.QrcodeStream},data:function(){return{qrVisible:!1,domain:u.HTTP_REQUEST_URL,REDEEM_TYPE:f,redeemType:f.SCAN,inputValue:"",verifyCode:"",merId:""}},onLoad:function(t){this.verifyCode=t.verify_code,this.merId=t.mer_id,this.verifyCode&&this.codeChange()},computed:{leftRectVar:function(){return this.getCssVar(!0,this.redeemType===f.SCAN)},rightRectVar:function(){return this.getCssVar(!1,this.redeemType===f.INPUT)}},methods:{getCssVar:function(t,e){return"background-image: url(".concat(u.HTTP_REQUEST_URL,"/static/images/").concat(t?"left":"right","-rect").concat(e?"-active":"",".png)")},handleDetect:function(t){var e=this;return(0,i.default)((0,o.default)().mark((function n(){var r;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.qrVisible=!1,n.next=3,t;case 3:r=n.sent,e.handleScanResult(r.content);case 5:case"end":return n.stop()}}),n)})))()},handleChangeRedeemType:function(t){this.redeemType=t},handleSearchOrder:function(){this.verifyCode=this.inputValue,this.codeChange()},codeChange:function(){return this.verifyCode?/[0-9]/.test(this.verifyCode)?void uni.navigateTo({url:"/pages/admin/cancellate_result/index?cal_code="+this.verifyCode+"&mer_id="+this.merId}):this.$util.Tips({title:"请输入正确的核销码"}):this.$util.Tips({title:"请输入核销码"})},scanCode:function(){var t=this;this.$wechat.isWeixin()?this.$wechat.wechatEvevt("scanQRCode",{needResult:1,scanType:["qrCode","barCode"]}).then((function(e){t.handleScanResult(e.resultStr)})).catch((function(e){t.$util.Tips({title:e})})):this.qrVisible=!0},handleScanResult:function(t){this.verifyCode=this.getDataBetweenStrings(t,"=","&"),uni.navigateTo({url:"/pages/admin/cancellate_result/index?cal_code="+this.verifyCode+"&mer_id="+this.mer_id})},getDataBetweenStrings:function(t,e,n){var r=t.indexOf(e),o=t.indexOf(n);return r>=0&&o>=0&&r1?uni.navigateBack():uni.reLaunch({url:"/pages/index/index"})}}};e.default=r},"49de":function(t,e,n){"use strict";n.r(e);var r=n("dfba"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},5034:function(t,e,n){"use strict";n.r(e);var r=n("2239"),o=n.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},5818:function(t,e,n){"use strict";n.r(e);var r=n("0dcc"),o=n("18e6");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("e686");var a=n("828b"),c=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,"59d785c9",null,!1,r["a"],void 0);e["default"]=c.exports},"5c59":function(t,e,n){var r=n("c86c");e=r(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.base-bg[data-v-f1c6f59e]{background-color:#fff;width:%?3200?%;height:%?3200?%;border-radius:50%;position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);top:%?-2380?%}.flex-center[data-v-f1c6f59e]{display:flex;align-items:center;justify-content:center}.scan-container[data-v-f1c6f59e]{height:%?660?%}.scan-btn[data-v-f1c6f59e]{width:%?400?%;height:%?400?%;border-radius:50%;background:#2291f8;box-shadow:%?0?% %?4?% %?32?% %?0?% rgba(27,102,214,.3)}.scan-btn .iconfont[data-v-f1c6f59e]{font-size:%?120?%;color:#fff}.scan-input-wrapper[data-v-f1c6f59e]{width:%?540?%;height:%?120?%;border-radius:%?100?%;background:#f5f5f5;position:relative}.scan-input[data-v-f1c6f59e]{width:100%;height:100%;font-size:%?48?%;text-align:center;padding:0 %?30?%;box-sizing:border-box}.scan-input.has-padding-right[data-v-f1c6f59e]{padding-right:%?120?%;text-align:left}.search-btn[data-v-f1c6f59e]{position:absolute;width:%?80?%;height:%?80?%;top:%?20?%;right:%?20?%;border-radius:50%;background:#2291f8;z-index:10}.search-btn .iconfont[data-v-f1c6f59e]{font-size:%?32?%;color:#fff}.redeem-type-list[data-v-f1c6f59e]{margin-top:calc(%?126?% - var(--safe-area-inset-top) + %?80?%);display:flex;justify-content:center}.type-btn[data-v-f1c6f59e]{width:%?260?%;height:%?80?%;background-color:#fff;color:#333;font-size:%?28?%;font-weight:500;display:flex;align-items:center;justify-content:center;gap:%?16?%;background:none no-repeat 50%/cover}.type-btn .iconfont[data-v-f1c6f59e]{font-size:%?32?%;color:inherit}.type-btn.active[data-v-f1c6f59e]{color:#fff}.reader-box[data-v-f1c6f59e]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;background-color:rgba(0,0,0,.5)}.close-btn[data-v-f1c6f59e]{position:absolute;top:calc(var(--safe-area-inset-top) + %?20?%);right:%?20?%;width:%?80?%;height:%?80?%;border-radius:50%;background-color:initial;z-index:10;display:flex;align-items:center;justify-content:center}.close-btn .iconfont[data-v-f1c6f59e]{font-size:%?48?%;color:#fff}',""]),t.exports=e},6730:function(t,e,n){"use strict";var r=n("8bdb"),o=n("71e9");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})},6834:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var r=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"base-container",class:{"has-min-height":this.hasMinHeight},style:this.cssVars},[this._t("default")],2)},o=[]},"690b":function(t,e,n){"use strict";n.r(e);var r=n("6834"),o=n("49de");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("c054");var a=n("828b"),c=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,"d8f5a430",null,!1,r["a"],void 0);e["default"]=c.exports},8968:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("BaseContainer",[n("v-uni-view",{staticClass:"base-bg"}),n("BaseNavBar",{attrs:{title:"扫码核销"}}),n("v-uni-view",{staticClass:"scan-container flex-center"},[t.redeemType===t.REDEEM_TYPE.SCAN?n("v-uni-button",{staticClass:"scan-btn flex-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.scanCode.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"iconfont icon-ic_Scan"})],1):n("v-uni-view",{staticClass:"scan-input-wrapper"},[n("v-uni-input",{staticClass:"scan-input",class:{"has-padding-right":t.inputValue.length>10},attrs:{"confirm-type":"search"},on:{confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSearchOrder.apply(void 0,arguments)}},model:{value:t.inputValue,callback:function(e){t.inputValue=e},expression:"inputValue"}}),n("v-uni-button",{staticClass:"search-btn flex-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleSearchOrder.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"iconfont icon-ic_search"})],1)],1)],1),n("v-uni-view",{staticClass:"redeem-type-list"},[n("v-uni-button",{staticClass:"type-btn",class:{active:t.redeemType===t.REDEEM_TYPE.SCAN},style:t.leftRectVar,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleChangeRedeemType(t.REDEEM_TYPE.SCAN)}}},[n("v-uni-text",{staticClass:"iconfont icon-ic_Scan"}),t._v("扫码核销")],1),n("v-uni-button",{staticClass:"type-btn",class:{active:t.redeemType===t.REDEEM_TYPE.INPUT},style:t.rightRectVar,on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handleChangeRedeemType(t.REDEEM_TYPE.INPUT)}}},[n("v-uni-text",{staticClass:"iconfont icon-ic_edit"}),t._v("手动输入")],1)],1),t.qrVisible?n("v-uni-view",{staticClass:"reader-box"},[n("QrcodeStream",{on:{detect:function(e){arguments[0]=e=t.$handleEvent(e),t.handleDetect.apply(void 0,arguments)}}}),n("v-uni-button",{staticClass:"close-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.qrVisible=!1}}},[n("v-uni-text",{staticClass:"iconfont icon-ic_close"})],1)],1):t._e()],1)},o=[]},9327:function(t,e,n){"use strict";var r=n("8bdb"),o=n("9f69"),i=n("1ded").f,a=n("c435"),c=n("9e70"),u=n("b6a1"),s=n("862c"),f=n("0931"),l=n("a734"),d=o("".slice),p=Math.min,h=f("endsWith"),v=!l&&!h&&!!function(){var t=i(String.prototype,"endsWith");return t&&!t.writable}();r({target:"String",proto:!0,forced:!v&&!h},{endsWith:function(t){var e=c(s(this));u(t);var n=arguments.length>1?arguments[1]:void 0,r=e.length,o=void 0===n?r:p(a(n),r),i=c(t);return d(e,o-i.length,o)===i}})},9370:function(t,e,n){"use strict";var r=n("8bdb"),o=n("af9e"),i=n("1099"),a=n("c215"),c=o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));r({target:"Date",proto:!0,arity:1,forced:c},{toJSON:function(t){var e=i(this),n=a(e,"number");return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},"9e26":function(t,e,n){var r=n("26d3");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("967d").default;o("6726af70",r,!0,{sourceMap:!1,shadowMode:!1})},a3ed:function(t,e,n){(function(t){var r,o,i,a=n("dd7e2").default,c=n("bdbb").default;n("6a54"),n("01a2"),n("e39c"),n("bf0f"),n("4e9b"),n("114e"),n("c240"),n("f7a5"),n("c223"),n("7f48"),n("08eb"),n("18f7"),n("5c47"),n("0506"),n("9a2c"),n("dc8a"),n("8f71"),n("aa9c"),n("2797"),n("a644"),n("a03a"),n("844d"),n("de6c"),n("7a76"),n("c9b5"),n("2c10"),n("e966"),n("473f"),n("d4b5"),n("aa77"),n("4626"),n("5ac7"),n("d5c6"),n("5a56"),n("f074"),n("dc89"),n("2425"),n("9370"),n("6730"),n("4100"),n("8a8d"),n("926e"),n("7996"),n("6a88"),n("5ef2"),n("ab80"),n("c1a3"),n("fd3c"),n("23f4"),n("7d2f"),n("9c4e"),n("f555"),n("3efd"),n("a1c1"),n("af8f"),n("9db6"),n("0c26"),n("dfcf"),n("9327"),n("3872e"),n("dc69"),n("dd2b"),n("3710"),n("1afd"),n("4085"),function(n,a){"object"===c(e)&&"object"===c(t)?t.exports=a():(o=[],r=a,i="function"===typeof r?r.apply(e,o):r,void 0===i||(t.exports=i))}("undefined"!==typeof self&&self,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===c(t)&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"00ee":function(t,e,n){var r=n("b622"),o=r("toStringTag"),i={};i[o]="z",t.exports="[object z]"===String(i)},"0366":function(t,e,n){var r=n("1c0b");t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},"0538":function(t,e,n){"use strict";var r=n("1c0b"),o=n("861d"),i=[].slice,a={},c=function(t,e,n){if(!(e in a)){for(var r=[],o=0;o=n&&parseInt(r[n],10)}function m(t){var e={browser:null,version:null};if("undefined"===typeof t||!t.navigator)return e.browser="Not a browser.",e;var n=t.navigator;if(n.mozGetUserMedia)e.browser="firefox",e.version=y(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===t.isSecureContext&&t.webkitRTCPeerConnection&&!t.RTCIceGatherer)e.browser="chrome",e.version=y(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(n.mediaDevices&&n.userAgent.match(/Edge\/(\d+).(\d+)$/))e.browser="edge",e.version=y(n.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!t.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return e.browser="Not a supported browser.",e;e.browser="safari",e.version=y(n.userAgent,/AppleWebKit\/(\d+)\./,1),e.supportsUnifiedPlan=t.RTCRtpTransceiver&&"currentDirection"in t.RTCRtpTransceiver.prototype}return e}function w(t){return"[object Object]"===Object.prototype.toString.call(t)}function x(t){return w(t)?Object.keys(t).reduce((function(e,n){var r=w(t[n]),o=r?x(t[n]):t[n],a=r&&!Object.keys(o).length;return void 0===o||a?e:Object.assign(e,i({},n,o))}),{}):t}var S=function(){if("object"===("undefined"===typeof window?"undefined":Object(b["a"])(window))){if(g)return;"undefined"!==typeof console&&console.log}};function O(t){var e=t&&t.navigator;if(e.mediaDevices&&e.mediaDevices.getUserMedia){var n=e.mediaDevices,r=n.getUserMedia.bind(n);e.mediaDevices.getUserMedia=function(t){return r(function(t){return t&&void 0!==t.video?Object.assign({},t,{video:x(t.video)}):t}(t))}}!e.getUserMedia&&e.mediaDevices&&e.mediaDevices.getUserMedia&&(e.getUserMedia=function(t,n,r){e.mediaDevices.getUserMedia(t).then(n,r)}.bind(e))}n("c975"),n("a434");var E=function(t){var e=!1,n=void 0;return function(){return e||(n=t.apply(void 0,arguments),e=!0),n}}((function(){var t=m(window),e=t.browser;switch(e){case"chrome":(function(t){var e=t&&t.navigator;if(e.mediaDevices){var n=m(t),r=function(t){if("object"!==Object(b["a"])(t)||t.mandatory||t.optional)return t;var e={};return Object.keys(t).forEach((function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var r="object"===Object(b["a"])(t[n])?t[n]:{ideal:t[n]};void 0!==r.exact&&"number"===typeof r.exact&&(r.min=r.max=r.exact);var o=function(t,e){return t?t+e.charAt(0).toUpperCase()+e.slice(1):"deviceId"===e?"sourceId":e};if(void 0!==r.ideal){e.optional=e.optional||[];var i={};"number"===typeof r.ideal?(i[o("min",n)]=r.ideal,e.optional.push(i),i={},i[o("max",n)]=r.ideal,e.optional.push(i)):(i[o("",n)]=r.ideal,e.optional.push(i))}void 0!==r.exact&&"number"!==typeof r.exact?(e.mandatory=e.mandatory||{},e.mandatory[o("",n)]=r.exact):["min","max"].forEach((function(t){void 0!==r[t]&&(e.mandatory=e.mandatory||{},e.mandatory[o(t,n)]=r[t])}))}})),t.advanced&&(e.optional=(e.optional||[]).concat(t.advanced)),e},o=function(t,o){if(n.version>=61)return o(t);if(t=JSON.parse(JSON.stringify(t)),t&&"object"===Object(b["a"])(t.audio)){var i=function(t,e,n){e in t&&!(n in t)&&(t[n]=t[e],delete t[e])};t=JSON.parse(JSON.stringify(t)),i(t.audio,"autoGainControl","googAutoGainControl"),i(t.audio,"noiseSuppression","googNoiseSuppression"),t.audio=r(t.audio)}if(t&&"object"===Object(b["a"])(t.video)){var a=t.video.facingMode;a=a&&("object"===Object(b["a"])(a)?a:{ideal:a});var c,u=n.version<66;if(a&&("user"===a.exact||"environment"===a.exact||"user"===a.ideal||"environment"===a.ideal)&&(!e.mediaDevices.getSupportedConstraints||!e.mediaDevices.getSupportedConstraints().facingMode||u)&&(delete t.video.facingMode,"environment"===a.exact||"environment"===a.ideal?c=["back","rear"]:"user"!==a.exact&&"user"!==a.ideal||(c=["front"]),c))return e.mediaDevices.enumerateDevices().then((function(e){e=e.filter((function(t){return"videoinput"===t.kind}));var n=e.find((function(t){return c.some((function(e){return t.label.toLowerCase().includes(e)}))}));return!n&&e.length&&c.includes("back")&&(n=e[e.length-1]),n&&(t.video.deviceId=a.exact?{exact:n.deviceId}:{ideal:n.deviceId}),t.video=r(t.video),S("chrome: "+JSON.stringify(t)),o(t)}));t.video=r(t.video)}return S("chrome: "+JSON.stringify(t)),o(t)},i=function(t){return n.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}}};if(e.getUserMedia=function(t,n,r){o(t,(function(t){e.webkitGetUserMedia(t,n,(function(t){r&&r(i(t))}))}))}.bind(e),e.mediaDevices.getUserMedia){var a=e.mediaDevices.getUserMedia.bind(e.mediaDevices);e.mediaDevices.getUserMedia=function(t){return o(t,(function(t){return a(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(i(t))}))}))}}}})(window);break;case"firefox":(function(t){var e=m(t),n=t&&t.navigator,r=t&&t.MediaStreamTrack;if(n.getUserMedia=function(t,e,r){n.mediaDevices.getUserMedia(t).then(e,r)},!(e.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){var o=function(t,e,n){e in t&&!(n in t)&&(t[n]=t[e],delete t[e])},i=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(t){return"object"===Object(b["a"])(t)&&"object"===Object(b["a"])(t.audio)&&(t=JSON.parse(JSON.stringify(t)),o(t.audio,"autoGainControl","mozAutoGainControl"),o(t.audio,"noiseSuppression","mozNoiseSuppression")),i(t)},r&&r.prototype.getSettings){var a=r.prototype.getSettings;r.prototype.getSettings=function(){var t=a.apply(this,arguments);return o(t,"mozAutoGainControl","autoGainControl"),o(t,"mozNoiseSuppression","noiseSuppression"),t}}if(r&&r.prototype.applyConstraints){var c=r.prototype.applyConstraints;r.prototype.applyConstraints=function(t){return"audio"===this.kind&&"object"===Object(b["a"])(t)&&(t=JSON.parse(JSON.stringify(t)),o(t,"autoGainControl","mozAutoGainControl"),o(t,"noiseSuppression","mozNoiseSuppression")),c.apply(this,[t])}}}})(window);break;case"edge":(function(t){var e=t&&t.navigator,n=e.mediaDevices.getUserMedia.bind(e.mediaDevices);e.mediaDevices.getUserMedia=function(t){return n(t).catch((function(t){return Promise.reject(function(t){return{name:{PermissionDeniedError:"NotAllowedError"}[t.name]||t.name,message:t.message,constraint:t.constraint,toString:function(){return this.name}}}(t))}))}})(window);break;case"safari":O(window);break;default:throw new p["d"]}})),j=function(){function t(e,n){Object(l["a"])(this,t),this.videoEl=e,this.stream=n}return function(t,e,n){e&&d(t.prototype,e),n&&d(t,n)}(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:"captureFrame",value:function(){return Object(h["c"])(this.videoEl)}},{key:"getCapabilities",value:function(){var t,e,n=this.stream.getVideoTracks(),r=f(n,1),o=r[0];return null!==(t=null===o||void 0===o||null===(e=o.getCapabilities)||void 0===e?void 0:e.call(o))&&void 0!==t?t:{}}}]),t}(),k=function(){var t=Object(r["a"])(a().mark((function t(e){var n,r,o;return a().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,navigator.mediaDevices.enumerateDevices();case 2:if(n=t.sent.filter((function(t){var e=t.kind;return"videoinput"===e})),!(n.length>2)){t.next=15;break}r=n[0],o=n[n.length-1],t.t0=e,t.next="auto"===t.t0?9:"rear"===t.t0?10:"front"===t.t0?11:12;break;case 9:return t.abrupt("return",{deviceId:{exact:o.deviceId}});case 10:return t.abrupt("return",{deviceId:{exact:o.deviceId}});case 11:return t.abrupt("return",{deviceId:{exact:r.deviceId}});case 12:return t.abrupt("return",void 0);case 13:t.next=22;break;case 15:t.t1=e,t.next="auto"===t.t1?18:"rear"===t.t1?19:"front"===t.t1?20:21;break;case 18:return t.abrupt("return",{facingMode:{ideal:"environment"}});case 19:return t.abrupt("return",{facingMode:{exact:"environment"}});case 20:return t.abrupt("return",{facingMode:{exact:"user"}});case 21:return t.abrupt("return",void 0);case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),C=function(t,e){return R.apply(this,arguments)};function R(){return R=Object(r["a"])(a().mark((function t(e,n){var r,o,i,c,s,l,d,h,b,g;return a().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=n.camera,c=n.torch,!0===window.isSecureContext){t.next=3;break}throw new p["c"];case 3:if(void 0!==(null===(r=navigator)||void 0===r||null===(o=r.mediaDevices)||void 0===o?void 0:o.getUserMedia)){t.next=5;break}throw new p["d"];case 5:return t.next=7,E();case 7:return t.t0=u,t.t1={width:{min:360,ideal:640,max:1920},height:{min:240,ideal:480,max:1080}},t.next=11,k(i);case 11:return t.t2=t.sent,t.t3=(0,t.t0)(t.t1,t.t2),s={audio:!1,video:t.t3},t.next=16,navigator.mediaDevices.getUserMedia(s);case 16:return l=t.sent,void 0!==e.srcObject?e.srcObject=l:void 0!==e.mozSrcObject?e.mozSrcObject=l:window.URL.createObjectURL?e.src=window.URL.createObjectURL(l):window.webkitURL?e.src=window.webkitURL.createObjectURL(l):e.src=l,t.next=20,Object(v["a"])(e,"loadeddata");case 20:return t.next=22,Object(v["b"])(500);case 22:return c&&(d=l.getVideoTracks(),h=f(d,1),b=h[0],g=b.getCapabilities(),g.torch&&b.applyConstraints({advanced:[{torch:!0}]})),t.abrupt("return",new j(e,l));case 24:case"end":return t.stop()}}),t)}))),R.apply(this,arguments)}var L=n("b3af"),T=n("3c85"),A={name:"qrcode-stream",mixins:[L["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,Boolean],default:!0},worker:{type:Function,default:T["a"]}},data:function(){return{cameraInstance:null,destroyed:!1,stopScanning:function(){}}},computed:{shouldStream:function(){return!1===this.destroyed&&"off"!==this.camera},shouldScan:function(){return!0===this.shouldStream&&null!==this.cameraInstance},scanInterval:function(){return!1===this.track?500:40},trackRepaintFunction:function(){return!0===this.track?function(t){var e=t.color;return function(t,n){var r=t.topLeftCorner,o=t.topRightCorner,i=t.bottomLeftCorner,a=t.bottomRightCorner;n.strokeStyle=e,n.beginPath(),n.moveTo(r.x,r.y),n.lineTo(i.x,i.y),n.lineTo(a.x,a.y),n.lineTo(o.x,o.y),n.lineTo(r.x,r.y),n.closePath(),n.stroke()}}({color:"#ff0000"}):!1===this.track?void 0:this.track}},watch:{shouldStream:function(t){if(!t){var e=this.cameraInstance.captureFrame();this.paintPauseFrame(e)}},shouldScan:function(t){t?(this.clearPauseFrame(),this.clearTrackingLayer(),this.startScanning()):this.stopScanning()},torch:function(){this.init()},camera:function(){this.init()}},mounted:function(){this.init()},beforeDestroy:function(){this.beforeResetCamera(),this.stopScanning(),this.destroyed=!0},methods:{init:function(){var t=this,e=Object(r["a"])(a().mark((function e(){var n;return 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,C(t.$refs.video,{camera:t.camera,torch:t.torch});case 8:return t.cameraInstance=e.sent,n=t.cameraInstance.getCapabilities(),t.destroyed&&t.cameraInstance.stop(),e.abrupt("return",{capabilities:n});case 12:case"end":return e.stop()}}),e)})))();this.$emit("init",e)},startScanning:function(){var t=this;this.stopScanning=Object(o["a"])(this.worker,this.cameraInstance,{detectHandler:function(e){t.onDetect(Promise.resolve(e))},locateHandler:this.onLocate,minDelay:this.scanInterval})},beforeResetCamera:function(){null!==this.cameraInstance&&(this.cameraInstance.stop(),this.cameraInstance=null)},onLocate:function(t){void 0===this.trackRepaintFunction||null===t?this.clearTrackingLayer():this.repaintTrackingLayer(t)},repaintTrackingLayer:function(t){var e=this,n=this.$refs.video,r=this.$refs.trackingLayer,o=r.getContext("2d"),i=n.offsetWidth,a=n.offsetHeight,c=n.videoWidth,u=n.videoHeight,s=Math.max(i/c,a/u),f=c*s,l=u*s,d=f/c,p=l/u,h=(i-f)/2,v=(a-l)/2,b={};for(var g in t)b[g]={x:Math.floor(t[g].x*d+h),y:Math.floor(t[g].y*p+v)};window.requestAnimationFrame((function(){r.width=i,r.height=a,e.trackRepaintFunction(b,o)}))},clearTrackingLayer:function(){var t=this.$refs.trackingLayer,e=t.getContext("2d");window.requestAnimationFrame((function(){e.clearRect(0,0,t.width,t.height)}))},paintPauseFrame:function(t){var e=this.$refs.pauseFrame,n=e.getContext("2d");window.requestAnimationFrame((function(){e.width=t.width,e.height=t.height,n.putImageData(t,0,0)}))},clearPauseFrame:function(){var t=this.$refs.pauseFrame,e=t.getContext("2d");window.requestAnimationFrame((function(){e.clearRect(0,0,t.width,t.height)}))}}},_=A,P=(n("c244"),n("2877")),I=Object(P["a"])(_,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"qrcode-stream-wrapper"},[n("video",{directives:[{name:"show",rawName:"v-show",value:t.shouldScan,expression:"shouldScan"}],ref:"video",staticClass:"qrcode-stream-camera",attrs:{autoplay:"",muted:"",playsinline:""},domProps:{muted:!0}}),n("canvas",{directives:[{name:"show",rawName:"v-show",value:!t.shouldScan,expression:"!shouldScan"}],ref:"pauseFrame",staticClass:"qrcode-stream-camera"}),n("canvas",{ref:"trackingLayer",staticClass:"qrcode-stream-overlay"}),n("div",{staticClass:"qrcode-stream-overlay"},[t._t("default")],2)])}),[],!1,null,"7a81005d",null);e["a"]=I.exports},"0d3b":function(t,e,n){var r=n("d039"),o=n("b622"),i=n("c430"),a=o("iterator");t.exports=!r((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,n="";return t.pathname="c%20d",e.forEach((function(t,r){e["delete"]("b"),n+=r+t})),i&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},"131a":function(t,e,n){var r=n("23e7"),o=n("d2bb");r({target:"Object",stat:!0},{setPrototypeOf:o})},"13d5":function(t,e,n){"use strict";var r=n("23e7"),o=n("d58f").left,i=n("a640"),a=n("ae40"),c=i("reduce"),u=a("reduce",{1:0});r({target:"Array",proto:!0,forced:!c||!u},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(t,e,n){var r=n("c6b6"),o=n("9263");t.exports=function(t,e){var n=t.exec;if("function"===typeof n){var i=n.call(t,e);if("object"!==c(i))throw TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw TypeError("RegExp#exec called on incompatible receiver");return o.call(t,e)}},"159b":function(t,e,n){var r=n("da84"),o=n("fdbc"),i=n("17c2"),a=n("9112");for(var c in o){var u=r[c],s=u&&u.prototype;if(s&&s.forEach!==i)try{a(s,"forEach",i)}catch(f){s.forEach=i}}},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,o=n("a640"),i=n("ae40"),a=o("forEach"),c=i("forEach");t.exports=a&&c?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"19aa":function(t,e){t.exports=function(t,e,n){if(!(t instanceof e))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return t}},"1be4":function(t,e,n){var r=n("d066");t.exports=r("document","documentElement")},"1c0b":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(t,e,n){var r=n("b622"),o=r("iterator"),i=!1;try{var a=0,c={next:function(){return{done:!!a++}},return:function(){i=!0}};c[o]=function(){return this},Array.from(c,(function(){throw 2}))}catch(u){}t.exports=function(t,e){if(!e&&!i)return!1;var n=!1;try{var r={};r[o]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(u){}return n}},"1cc0":function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return h})),n.d(e,"d",(function(){return v})),n.d(e,"c",(function(){return b})),n("b0c0");var r=n("d4ec");function o(t,e){return o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},o(t,e)}function i(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}}),e&&o(t,e)}function a(t){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},a(t)}function c(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}n("131a"),n("4ae1"),n("3410"),n("d3b7"),n("25f0");var u=n("53ca");function s(t,e){return!e||"object"!==Object(u["a"])(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){var e=c();return function(){var n,r=a(t);if(e){var o=a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function l(t,e,n){return l=c()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=Function.bind.apply(t,r),a=new i;return n&&o(a,n.prototype),a},l.apply(null,arguments)}function d(t){var e="function"===typeof Map?new Map:void 0;return d=function(t){if(null===t||!function(t){return-1!==Function.toString.call(t).indexOf("[native code]")}(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,n)}function n(){return l(t,arguments,a(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),o(n,t)},d(t)}n("e260"),n("4ec9"),n("3ca3"),n("ddb0"),n("c975");var p=function(t){i(n,t);var e=f(n);function n(){var t;return Object(r["a"])(this,n),t=e.call(this,"can't process cross-origin image"),t.name="DropImageFetchError",t}return n}(d(Error)),h=function(t){i(n,t);var e=f(n);function n(){var t;return Object(r["a"])(this,n),t=e.call(this,"drag-and-dropped file is not of type image and can't be decoded"),t.name="DropImageDecodeError",t}return n}(d(Error)),v=function(t){i(n,t);var e=f(n);function n(){var t;return Object(r["a"])(this,n),t=e.call(this,"this browser has no Stream API support"),t.name="StreamApiNotSupportedError",t}return n}(d(Error)),b=function(t){i(n,t);var e=f(n);function n(){var t;return Object(r["a"])(this,n),t=e.call(this,"camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP."),t.name="InsecureContextError",t}return n}(d(Error))},"1cdc":function(t,e,n){var r=n("342f");t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},"1d80":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},"1da1":function(t,e,n){"use strict";function r(t,e,n,r,o,i,a){try{var c=t[i](a),u=c.value}catch(s){return void n(s)}c.done?e(u):Promise.resolve(u).then(r,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function c(t){r(a,o,i,c,u,"next",t)}function u(t){r(a,o,i,c,u,"throw",t)}c(void 0)}))}}n.d(e,"a",(function(){return o})),n("d3b7"),n("e6cf")},"1dde":function(t,e,n){var r=n("d039"),o=n("b622"),i=n("2d00"),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},2266:function(t,e,n){var r=n("825a"),o=n("e95a"),i=n("50c4"),a=n("0366"),u=n("35a1"),s=n("9bdd"),f=function(t,e){this.stopped=t,this.result=e},l=t.exports=function(t,e,n,l,d){var p,h,v,b,g,y,m,w=a(e,n,l?2:1);if(d)p=t;else{if(h=u(t),"function"!=typeof h)throw TypeError("Target is not iterable");if(o(h)){for(v=0,b=i(t.length);b>v;v++)if(g=l?w(r(m=t[v])[0],m[1]):w(t[v]),g&&g instanceof f)return g;return new f(!1)}p=h.call(t)}y=p.next;while(!(m=y.call(p)).done)if(g=s(p,w,m.value,l),"object"==c(g)&&g&&g instanceof f)return g;return new f(!1)};l.stop=function(t){return new f(!0,t)}},"23cb":function(t,e,n){var r=n("a691"),o=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?o(n+e,0):i(n,e)}},"23e7":function(t,e,n){var r=n("da84"),o=n("06cf").f,i=n("9112"),a=n("6eeb"),u=n("ce4e"),s=n("e893"),f=n("94ca");t.exports=function(t,e){var n,l,d,p,h,v,b=t.target,g=t.global,y=t.stat;if(l=g?r:y?r[b]||u(b,{}):(r[b]||{}).prototype,l)for(d in e){if(h=e[d],t.noTargetGet?(v=o(l,d),p=v&&v.value):p=l[d],n=f(g?d:b+(y?".":"#")+d,t.forced),!n&&void 0!==p){if(c(h)===c(p))continue;s(h,p)}(t.sham||p&&p.sham)&&i(h,"sham",!0),a(l,d,h,t)}}},"241c":function(t,e,n){var r=n("ca84"),o=n("7839"),i=o.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},2493:function(t,e,n){var r=n("ede3");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=n("499e").default;o("4c9ea657",r,!0,{sourceMap:!1,shadowMode:!1})},"24fb":function(t,e,n){"use strict";function r(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"===typeof btoa){var o=function(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}(r),i=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(i).concat([o]).join("\n")}return[n].join("\n")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=r(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"===typeof t&&(t=[[null,t,""]]);var o={};if(r)for(var i=0;i1?arguments[1]:void 0)}})},"25f0":function(t,e,n){"use strict";var r=n("6eeb"),o=n("825a"),i=n("d039"),a=n("ad6d"),c="toString",u=RegExp.prototype,s=u[c],f=i((function(){return"/a/b"!=s.call({source:"a",flags:"b"})})),l=s.name!=c;(f||l)&&r(RegExp.prototype,c,(function(){var t=o(this),e=String(t.source),n=t.flags,r=String(void 0===n&&t instanceof RegExp&&!("flags"in u)?a.call(t):n);return"/"+e+"/"+r}),{unsafe:!0})},2626:function(t,e,n){"use strict";var r=n("d066"),o=n("9bf2"),i=n("b622"),a=n("83ab"),c=i("species");t.exports=function(t){var e=r(t),n=o.f;a&&e&&!e[c]&&n(e,c,{configurable:!0,get:function(){return this}})}},2877:function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,c){var u,s="function"===typeof t?t.options:t;if(e&&(s.render=e,s.staticRenderFns=n,s._compiled=!0),r&&(s.functional=!0),i&&(s._scopeId="data-v-"+i),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},s._ssrRegister=u):o&&(u=c?function(){o.call(this,(s.functional?this.parent:this).$root.$options.shadowRoot)}:o),u)if(s.functional){s._injectStyles=u;var f=s.render;s.render=function(t,e){return u.call(e),f(t,e)}}else{var l=s.beforeCreate;s.beforeCreate=l?[].concat(l,u):[u]}return{exports:t,options:s}}n.d(e,"a",(function(){return r}))},2909:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n("6b75");n("a4d3"),n("e01a"),n("d28b"),n("a630"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0");var o=n("06c5");function i(t){return function(t){if(Array.isArray(t))return Object(r["a"])(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Object(o["a"])(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},"2b3d":function(t,e,n){"use strict";n("3ca3");var r,o=n("23e7"),i=n("83ab"),a=n("0d3b"),u=n("da84"),s=n("37e8"),f=n("6eeb"),l=n("19aa"),d=n("5135"),p=n("60da"),h=n("4df4"),v=n("6547").codeAt,b=n("5fb2"),g=n("d44e"),y=n("9861"),m=n("69f3"),w=u.URL,x=y.URLSearchParams,S=y.getState,O=m.set,E=m.getterFor("URL"),j=Math.floor,k=Math.pow,C="Invalid scheme",R="Invalid host",L="Invalid port",T=/[A-Za-z]/,A=/[\d+-.A-Za-z]/,_=/\d/,P=/^(0x|0X)/,I=/^[0-7]+$/,U=/^\d+$/,M=/^[\dA-Fa-f]+$/,D=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,N=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,F=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,B=/[\u0009\u000A\u000D]/g,q=function(t,e){var n,r,o;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return R;if(n=z(e.slice(1,-1)),!n)return R;t.host=n}else if(K(t)){if(e=b(e),D.test(e))return R;if(n=$(e),null===n)return R;t.host=n}else{if(N.test(e))return R;for(n="",r=h(e),o=0;o4)return t;for(n=[],r=0;r1&&"0"==o.charAt(0)&&(i=P.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?U:8==i?I:M).test(o))return t;a=parseInt(o,i)}n.push(a)}for(r=0;r=k(256,5-e))return null}else if(a>255)return null;for(c=n.pop(),r=0;r6)return;r=0;while(d()){if(o=null,r>0){if(!("."==d()&&r<4))return;l++}if(!_.test(d()))return;while(_.test(d())){if(i=parseInt(d(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;l++}u[s]=256*u[s]+o,r++,2!=r&&4!=r||s++}if(4!=r)return;break}if(":"==d()){if(l++,!d())return}else if(d())return;u[s++]=e}else{if(null!==f)return;l++,s++,f=s}}if(null!==f){a=s-f,s=7;while(0!=s&&a>0)c=u[s],u[s--]=u[f+a-1],u[f+--a]=c}else if(8!=s)return;return u},G=function(t){var e,n,r,o;if("number"==typeof t){for(e=[],n=0;n<4;n++)e.unshift(t%256),t=j(t/256);return e.join(".")}if("object"==c(t)){for(e="",r=function(t){for(var e=null,n=1,r=null,o=0,i=0;i<8;i++)0!==t[i]?(o>n&&(e=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(e=r,n=o),e}(t),n=0;n<8;n++)o&&0===t[n]||(o&&(o=!1),r===n?(e+=n?":":"::",o=!0):(e+=t[n].toString(16),n<7&&(e+=":")));return"["+e+"]"}return t},V={},W=p({},V,{" ":1,'"':1,"<":1,">":1,"`":1}),H=p({},W,{"#":1,"?":1,"{":1,"}":1}),J=p({},H,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),Y=function(t,e){var n=v(t,0);return n>32&&n<127&&!d(e,t)?t:encodeURIComponent(t)},Q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},K=function(t){return d(Q,t.scheme)},X=function(t){return""!=t.username||""!=t.password},Z=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},tt=function(t,e){var n;return 2==t.length&&T.test(t.charAt(0))&&(":"==(n=t.charAt(1))||!e&&"|"==n)},et=function(t){var e;return t.length>1&&tt(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},nt=function(t){var e=t.path,n=e.length;!n||"file"==t.scheme&&1==n&&tt(e[0],!0)||e.pop()},rt=function(t){return"."===t||"%2e"===t.toLowerCase()},ot=function(t){return t=t.toLowerCase(),".."===t||"%2e."===t||".%2e"===t||"%2e%2e"===t},it={},at={},ct={},ut={},st={},ft={},lt={},dt={},pt={},ht={},vt={},bt={},gt={},yt={},mt={},wt={},xt={},St={},Ot={},Et={},jt={},kt=function(t,e,n,o){var i,a,c,u,s=n||it,f=0,l="",p=!1,v=!1,b=!1;n||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(F,"")),e=e.replace(B,""),i=h(e);while(f<=i.length){switch(a=i[f],s){case it:if(!a||!T.test(a)){if(n)return C;s=ct;continue}l+=a.toLowerCase(),s=at;break;case at:if(a&&(A.test(a)||"+"==a||"-"==a||"."==a))l+=a.toLowerCase();else{if(":"!=a){if(n)return C;l="",s=ct,f=0;continue}if(n&&(K(t)!=d(Q,l)||"file"==l&&(X(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=l,n)return void(K(t)&&Q[t.scheme]==t.port&&(t.port=null));l="","file"==t.scheme?s=yt:K(t)&&o&&o.scheme==t.scheme?s=ut:K(t)?s=dt:"/"==i[f+1]?(s=st,f++):(t.cannotBeABaseURL=!0,t.path.push(""),s=Ot)}break;case ct:if(!o||o.cannotBeABaseURL&&"#"!=a)return C;if(o.cannotBeABaseURL&&"#"==a){t.scheme=o.scheme,t.path=o.path.slice(),t.query=o.query,t.fragment="",t.cannotBeABaseURL=!0,s=jt;break}s="file"==o.scheme?yt:ft;continue;case ut:if("/"!=a||"/"!=i[f+1]){s=ft;continue}s=pt,f++;break;case st:if("/"==a){s=ht;break}s=St;continue;case ft:if(t.scheme=o.scheme,a==r)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query;else if("/"==a||"\\"==a&&K(t))s=lt;else if("?"==a)t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query="",s=Et;else{if("#"!=a){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.path.pop(),s=St;continue}t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,t.path=o.path.slice(),t.query=o.query,t.fragment="",s=jt}break;case lt:if(!K(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=o.username,t.password=o.password,t.host=o.host,t.port=o.port,s=St;continue}s=ht}else s=pt;break;case dt:if(s=pt,"/"!=a||"/"!=l.charAt(f+1))continue;f++;break;case pt:if("/"!=a&&"\\"!=a){s=ht;continue}break;case ht:if("@"==a){p&&(l="%40"+l),p=!0,c=h(l);for(var g=0;g65535)return L;t.port=K(t)&&w===Q[t.scheme]?null:w,l=""}if(n)return;s=xt;continue}return L}l+=a;break;case yt:if(t.scheme="file","/"==a||"\\"==a)s=mt;else{if(!o||"file"!=o.scheme){s=St;continue}if(a==r)t.host=o.host,t.path=o.path.slice(),t.query=o.query;else if("?"==a)t.host=o.host,t.path=o.path.slice(),t.query="",s=Et;else{if("#"!=a){et(i.slice(f).join(""))||(t.host=o.host,t.path=o.path.slice(),nt(t)),s=St;continue}t.host=o.host,t.path=o.path.slice(),t.query=o.query,t.fragment="",s=jt}}break;case mt:if("/"==a||"\\"==a){s=wt;break}o&&"file"==o.scheme&&!et(i.slice(f).join(""))&&(tt(o.path[0],!0)?t.path.push(o.path[0]):t.host=o.host),s=St;continue;case wt:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&tt(l))s=St;else if(""==l){if(t.host="",n)return;s=xt}else{if(u=q(t,l),u)return u;if("localhost"==t.host&&(t.host=""),n)return;l="",s=xt}continue}l+=a;break;case xt:if(K(t)){if(s=St,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(s=St,"/"!=a))continue}else t.fragment="",s=jt;else t.query="",s=Et;break;case St:if(a==r||"/"==a||"\\"==a&&K(t)||!n&&("?"==a||"#"==a)){if(ot(l)?(nt(t),"/"==a||"\\"==a&&K(t)||t.path.push("")):rt(l)?"/"==a||"\\"==a&&K(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&tt(l)&&(t.host&&(t.host=""),l=l.charAt(0)+":"),t.path.push(l)),l="","file"==t.scheme&&(a==r||"?"==a||"#"==a))while(t.path.length>1&&""===t.path[0])t.path.shift();"?"==a?(t.query="",s=Et):"#"==a&&(t.fragment="",s=jt)}else l+=Y(a,H);break;case Ot:"?"==a?(t.query="",s=Et):"#"==a?(t.fragment="",s=jt):a!=r&&(t.path[0]+=Y(a,V));break;case Et:n||"#"!=a?a!=r&&("'"==a&&K(t)?t.query+="%27":t.query+="#"==a?"%23":Y(a,V)):(t.fragment="",s=jt);break;case jt:a!=r&&(t.fragment+=Y(a,W));break}f++}},Ct=function t(e){var n,r,o=l(this,t,"URL"),a=arguments.length>1?arguments[1]:void 0,c=String(e),u=O(o,{type:"URL"});if(void 0!==a)if(a instanceof t)n=E(a);else if(r=kt(n={},String(a)),r)throw TypeError(r);if(r=kt(u,c,null,n),r)throw TypeError(r);var s=u.searchParams=new x,f=S(s);f.updateSearchParams(u.query),f.updateURL=function(){u.query=String(s)||null},i||(o.href=Lt.call(o),o.origin=Tt.call(o),o.protocol=At.call(o),o.username=_t.call(o),o.password=Pt.call(o),o.host=It.call(o),o.hostname=Ut.call(o),o.port=Mt.call(o),o.pathname=Dt.call(o),o.search=Nt.call(o),o.searchParams=Ft.call(o),o.hash=Bt.call(o))},Rt=Ct.prototype,Lt=function(){var t=E(this),e=t.scheme,n=t.username,r=t.password,o=t.host,i=t.port,a=t.path,c=t.query,u=t.fragment,s=e+":";return null!==o?(s+="//",X(t)&&(s+=n+(r?":"+r:"")+"@"),s+=G(o),null!==i&&(s+=":"+i)):"file"==e&&(s+="//"),s+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==c&&(s+="?"+c),null!==u&&(s+="#"+u),s},Tt=function(){var t=E(this),e=t.scheme,n=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(r){return"null"}return"file"!=e&&K(t)?e+"://"+G(t.host)+(null!==n?":"+n:""):"null"},At=function(){return E(this).scheme+":"},_t=function(){return E(this).username},Pt=function(){return E(this).password},It=function(){var t=E(this),e=t.host,n=t.port;return null===e?"":null===n?G(e):G(e)+":"+n},Ut=function(){var t=E(this).host;return null===t?"":G(t)},Mt=function(){var t=E(this).port;return null===t?"":String(t)},Dt=function(){var t=E(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},Nt=function(){var t=E(this).query;return t?"?"+t:""},Ft=function(){return E(this).searchParams},Bt=function(){var t=E(this).fragment;return t?"#"+t:""},qt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(i&&s(Rt,{href:qt(Lt,(function(t){var e=E(this),n=String(t),r=kt(e,n);if(r)throw TypeError(r);S(e.searchParams).updateSearchParams(e.query)})),origin:qt(Tt),protocol:qt(At,(function(t){var e=E(this);kt(e,String(t)+":",it)})),username:qt(_t,(function(t){var e=E(this),n=h(String(t));if(!Z(e)){e.username="";for(var r=0;r1?arguments[1]:void 0,e.length)),r=String(t);return f?f.call(e,r,n):e.slice(n,n+r.length)===r}})},"2cf4":function(t,e,n){var r,o,i,a=n("da84"),c=n("d039"),u=n("c6b6"),s=n("0366"),f=n("1be4"),l=n("cc12"),d=n("1cdc"),p=a.location,h=a.setImmediate,v=a.clearImmediate,b=a.process,g=a.MessageChannel,y=a.Dispatch,m=0,w={},x="onreadystatechange",S=function(t){if(w.hasOwnProperty(t)){var e=w[t];delete w[t],e()}},O=function(t){return function(){S(t)}},E=function(t){S(t.data)},j=function(t){a.postMessage(t+"",p.protocol+"//"+p.host)};h&&v||(h=function(t){var e=[],n=1;while(arguments.length>n)e.push(arguments[n++]);return w[++m]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},r(m),m},v=function(t){delete w[t]},"process"==u(b)?r=function(t){b.nextTick(O(t))}:y&&y.now?r=function(t){y.now(O(t))}:g&&!d?(o=new g,i=o.port2,o.port1.onmessage=E,r=s(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||c(j)||"file:"===p.protocol?r=x in l("script")?function(t){f.appendChild(l("script"))[x]=function(){f.removeChild(this),S(t)}}:function(t){setTimeout(O(t),0)}:(r=j,a.addEventListener("message",E,!1))),t.exports={set:h,clear:v}},"2d00":function(t,e,n){var r,o,i=n("da84"),a=n("342f"),c=i.process,u=c&&c.versions,s=u&&u.v8;s?(r=s.split("."),o=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(o=r[1]))),t.exports=o&&+o},3410:function(t,e,n){var r=n("23e7"),o=n("d039"),i=n("7b0b"),a=n("e163"),c=n("e177"),u=o((function(){a(1)}));r({target:"Object",stat:!0,forced:u,sham:!c},{getPrototypeOf:function(t){return a(i(t))}})},"342f":function(t,e,n){var r=n("d066");t.exports=r("navigator","userAgent")||""},"35a1":function(t,e,n){var r=n("f5df"),o=n("3f8c"),i=n("b622"),a=i("iterator");t.exports=function(t){if(void 0!=t)return t[a]||t["@@iterator"]||o[r(t)]}},"37e8":function(t,e,n){var r=n("83ab"),o=n("9bf2"),i=n("825a"),a=n("df75");t.exports=r?Object.defineProperties:function(t,e){i(t);var n,r=a(e),c=r.length,u=0;while(c>u)o.f(t,n=r[u++],e[n]);return t}},"3bbe":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},"3c85":function(t,e,n){"use strict";n("e260"),n("d3b7"),n("ac1f"),n("25f0"),n("3ca3"),n("466d"),n("498a"),n("ddb0"),n("2b3d");e["a"]=function(){return function(t){var e=t.toString().trim().match(/^function\s*\w*\s*\([\w\s,]*\)\s*{([\w\W]*?)}$/)[1];return new Worker(URL.createObjectURL(new Blob([e],{type:"text/javascript"})))}((function(){self.importScripts("https://cdn.jsdelivr.net/npm/jsqr@1.3.1/dist/jsQR.min.js"),self.addEventListener("message",(function(t){var e=t.data,n=null;try{n=jsQR(e.data,e.width,e.height)}catch(a){if(!(a instanceof RangeError))throw a}var r=null,o=null;null!==n&&(r=n.data,o=n.location);var i={content:r,location:o,imageData:e};self.postMessage(i,[e.data.buffer])}))}))}},"3ca3":function(t,e,n){"use strict";var r=n("6547").charAt,o=n("69f3"),i=n("7dd0"),a="String Iterator",c=o.set,u=o.getterFor(a);i(String,"String",(function(t){c(this,{type:a,string:String(t),index:0})}),(function(){var t,e=u(this),n=e.string,o=e.index;return o>=n.length?{value:void 0,done:!0}:(t=r(n,o),e.index+=t.length,{value:t,done:!1})}))},"3f8c":function(t,e){t.exports={}},4160:function(t,e,n){"use strict";var r=n("23e7"),o=n("17c2");r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},"428f":function(t,e,n){var r=n("da84");t.exports=r},"44ad":function(t,e,n){var r=n("d039"),o=n("c6b6"),i="".split;t.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},"44d2":function(t,e,n){var r=n("b622"),o=n("7c73"),i=n("9bf2"),a=r("unscopables"),c=Array.prototype;void 0==c[a]&&i.f(c,a,{configurable:!0,value:o(null)}),t.exports=function(t){c[a][t]=!0}},"44de":function(t,e,n){var r=n("da84");t.exports=function(t,e){var n=r.console;n&&n.error&&(1===arguments.length?n.error(t):n.error(t,e))}},"44e7":function(t,e,n){var r=n("861d"),o=n("c6b6"),i=n("b622"),a=i("match");t.exports=function(t){var e;return r(t)&&(void 0!==(e=t[a])?!!e:"RegExp"==o(t))}},"45fc":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").some,i=n("a640"),a=n("ae40"),c=i("some"),u=a("some");r({target:"Array",proto:!0,forced:!c||!u},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"466d":function(t,e,n){"use strict";var r=n("d784"),o=n("825a"),i=n("50c4"),a=n("1d80"),c=n("8aa5"),u=n("14c3");r("match",1,(function(t,e,n){return[function(e){var n=a(this),r=void 0==e?void 0:e[t];return void 0!==r?r.call(e,n):new RegExp(e)[t](String(n))},function(t){var r=n(e,t,this);if(r.done)return r.value;var a=o(t),s=String(this);if(!a.global)return u(a,s);var f=a.unicode;a.lastIndex=0;var l,d=[],p=0;while(null!==(l=u(a,s))){var h=String(l[0]);d[p]=h,""===h&&(a.lastIndex=c(s,i(a.lastIndex),f)),p++}return 0===p?null:d}]}))},4840:function(t,e,n){var r=n("825a"),o=n("1c0b"),i=n("b622"),a=i("species");t.exports=function(t,e){var n,i=r(t).constructor;return void 0===i||void 0==(n=r(i)[a])?e:o(n)}},4930:function(t,e,n){var r=n("d039");t.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"498a":function(t,e,n){"use strict";var r=n("23e7"),o=n("58a8").trim,i=n("c8d2");r({target:"String",proto:!0,forced:i("trim")},{trim:function(){return o(this)}})},"499e":function(t,e,n){"use strict";function r(t,e){for(var n=[],r={},o=0;on.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;of)if(c=u[f++],c!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},"4de4":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").filter,i=n("1dde"),a=n("ae40"),c=i("filter"),u=a("filter");r({target:"Array",proto:!0,forced:!c||!u},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(t,e,n){"use strict";var r=n("0366"),o=n("7b0b"),i=n("9bdd"),a=n("e95a"),c=n("50c4"),u=n("8418"),s=n("35a1");t.exports=function(t){var e,n,f,l,d,p,h=o(t),v="function"==typeof this?this:Array,b=arguments.length,g=b>1?arguments[1]:void 0,y=void 0!==g,m=s(h),w=0;if(y&&(g=r(g,b>2?arguments[2]:void 0,2)),void 0==m||v==Array&&a(m))for(e=c(h.length),n=new v(e);e>w;w++)p=y?g(h[w],w):h[w],u(n,w,p);else for(l=m.call(h),d=l.next,n=new v;!(f=d.call(l)).done;w++)p=y?i(l,g,[f.value,w],!0):f.value,u(n,w,p);return n.length=w,n}},"4ec9":function(t,e,n){"use strict";var r=n("6d61"),o=n("6566");t.exports=r("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),o)},"50c4":function(t,e,n){var r=n("a691"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},5135:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},"53ca":function(t,e,n){"use strict";function r(t){return r="function"===typeof Symbol&&"symbol"===c(Symbol.iterator)?function(t){return c(t)}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":c(t)},r(t)}n.d(e,"a",(function(){return r})),n("a4d3"),n("e01a"),n("d28b"),n("e260"),n("d3b7"),n("3ca3"),n("ddb0")},5692:function(t,e,n){var r=n("c430"),o=n("c6cd");(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(t,e,n){var r=n("d066"),o=n("241c"),i=n("7418"),a=n("825a");t.exports=r("Reflect","ownKeys")||function(t){var e=o.f(a(t)),n=i.f;return n?e.concat(n(t)):e}},5899:function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},"58a8":function(t,e,n){var r=n("1d80"),o=n("5899"),i="["+o+"]",a=RegExp("^"+i+i+"*"),c=RegExp(i+i+"*$"),u=function(t){return function(e){var n=String(r(e));return 1&t&&(n=n.replace(a,"")),2&t&&(n=n.replace(c,"")),n}};t.exports={start:u(1),end:u(2),trim:u(3)}},"5a34":function(t,e,n){var r=n("44e7");t.exports=function(t){if(r(t))throw TypeError("The method doesn't accept regular expressions");return t}},"5c0b":function(t,e,n){"use strict";var r=(n("4160"),n("d81d"),n("159b"),n("96cf"),n("1da1")),o=n("2909"),i=n("a180"),c=n("f718"),u=n("b3af"),s=n("3c85"),f={name:"qrcode-capture",mixins:[u["a"]],props:{worker:{type:Function,default:s["a"]}},methods:{onChangeInput:function(t){var e=Object(o["a"])(t.target.files),n=e.map(this.processFile);n.forEach(this.onDetect)},processFile:function(t){var e=this;return Object(r["a"])(a().mark((function n(){var r,o;return a().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(c["a"])(t);case 2:return r=n.sent,n.next=5,Object(i["b"])(e.worker,r);case 5:return o=n.sent,n.abrupt("return",o);case 7:case"end":return n.stop()}}),n)})))()}}},l=f,d=n("2877"),p=Object(d["a"])(l,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("input",{attrs:{type:"file",name:"image",accept:"image/*",capture:"environment",multiple:""},on:{change:t.onChangeInput}})}),[],!1,null,null,null);e["a"]=p.exports},"5c6c":function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},"5fb2":function(t,e,n){"use strict";var r=2147483647,o=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,a="Overflow: input needs wider integers to process",c=Math.floor,u=String.fromCharCode,s=function(t){return t+22+75*(t<26)},f=function(t,e,n){var r=0;for(t=n?c(t/700):t>>1,t+=c(t/e);t>455;r+=36)t=c(t/35);return c(r+36*t/(t+38))},l=function(t){var e=[];t=function(t){var e=[],n=0,r=t.length;while(n=55296&&o<=56319&&n=l&&oc((r-d)/g))throw RangeError(a);for(d+=(b-l)*g,l=b,n=0;nr)throw RangeError(a);if(o==l){for(var y=d,m=36;;m+=36){var w=m<=p?1:m>=p+26?26:m-p;if(yf){var p,h=s(arguments[f++]),v=l?i(h).concat(l(h)):i(h),b=v.length,g=0;while(b>g)p=v[g++],r&&!d.call(h,p)||(n[p]=h[p])}return n}:f},6547:function(t,e,n){var r=n("a691"),o=n("1d80"),i=function(t){return function(e,n){var i,a,c=String(o(e)),u=r(n),s=c.length;return u<0||u>=s?t?"":void 0:(i=c.charCodeAt(u),i<55296||i>56319||u+1===s||(a=c.charCodeAt(u+1))<56320||a>57343?t?c.charAt(u):i:t?c.slice(u,u+2):a-56320+(i-55296<<10)+65536)}};t.exports={codeAt:i(!1),charAt:i(!0)}},6566:function(t,e,n){"use strict";var r=n("9bf2").f,o=n("7c73"),i=n("e2cc"),a=n("0366"),c=n("19aa"),u=n("2266"),s=n("7dd0"),f=n("2626"),l=n("83ab"),d=n("f183").fastKey,p=n("69f3"),h=p.set,v=p.getterFor;t.exports={getConstructor:function(t,e,n,s){var f=t((function(t,r){c(t,f,e),h(t,{type:e,index:o(null),first:void 0,last:void 0,size:0}),l||(t.size=0),void 0!=r&&u(r,t[s],t,n)})),p=v(e),b=function(t,e,n){var r,o,i=p(t),a=g(t,e);return a?a.value=n:(i.last=a={index:o=d(e,!0),key:e,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),l?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},g=function(t,e){var n,r=p(t),o=d(e);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==e)return n};return i(f.prototype,{clear:function(){var t=p(this),e=t.index,n=t.first;while(n)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete e[n.index],n=n.next;t.first=t.last=void 0,l?t.size=0:this.size=0},delete:function(t){var e=this,n=p(e),r=g(e,t);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),l?n.size--:e.size--}return!!r},forEach:function(t){var e,n=p(this),r=a(t,arguments.length>1?arguments[1]:void 0,3);while(e=e?e.next:n.first){r(e.value,e.key,this);while(e&&e.removed)e=e.previous}},has:function(t){return!!g(this,t)}}),i(f.prototype,n?{get:function(t){var e=g(this,t);return e&&e.value},set:function(t,e){return b(this,0===t?0:t,e)}}:{add:function(t){return b(this,t=0===t?0:t,t)}}),l&&r(f.prototype,"size",{get:function(){return p(this).size}}),f},setStrong:function(t,e,n){var r=e+" Iterator",o=v(e),i=v(r);s(t,e,(function(t,e){h(this,{type:r,target:t,state:o(t),kind:e,last:void 0})}),(function(){var t=i(this),e=t.kind,n=t.last;while(n&&n.removed)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?"keys"==e?{value:n.key,done:!1}:"values"==e?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),f(e)}}},"65f0":function(t,e,n){var r=n("861d"),o=n("e8b5"),i=n("b622"),a=i("species");t.exports=function(t,e){var n;return o(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)?r(n)&&(n=n[a],null===n&&(n=void 0)):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}},"69f3":function(t,e,n){var r,o,i,a=n("7f9a"),c=n("da84"),u=n("861d"),s=n("9112"),f=n("5135"),l=n("f772"),d=n("d012"),p=c.WeakMap;if(a){var h=new p,v=h.get,b=h.has,g=h.set;r=function(t,e){return g.call(h,t,e),e},o=function(t){return v.call(h,t)||{}},i=function(t){return b.call(h,t)}}else{var y=l("state");d[y]=!0,r=function(t,e){return s(t,y,e),e},o=function(t){return f(t,y)?t[y]:{}},i=function(t){return f(t,y)}}t.exports={set:r,get:o,has:i,enforce:function(t){return i(t)?o(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!u(e)||(n=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},"6b75":function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n"+t+""},b=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(e){}b=r?function(t){t.write(v("")),t.close();var e=t.parentWindow.Object;return t=null,e}(r):function(){var t,e=s("iframe");return e.style.display="none",u.appendChild(e),e.src=String("javascript:"),t=e.contentWindow.document,t.open(),t.write(v("document.F=Object")),t.close(),t.F}();var t=a.length;while(t--)delete b[l][a[t]];return b()};c[p]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h[l]=o(t),n=new h,h[l]=null,n[p]=t):n=b(),void 0===e?n:i(n,e)}},"7db0":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").find,i=n("44d2"),a=n("ae40"),c="find",u=!0,s=a(c);c in[]&&Array(1)[c]((function(){u=!1})),r({target:"Array",proto:!0,forced:u||!s},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i(c)},"7dd0":function(t,e,n){"use strict";var r=n("23e7"),o=n("9ed3"),i=n("e163"),a=n("d2bb"),c=n("d44e"),u=n("9112"),s=n("6eeb"),f=n("b622"),l=n("c430"),d=n("3f8c"),p=n("ae93"),h=p.IteratorPrototype,v=p.BUGGY_SAFARI_ITERATORS,b=f("iterator"),g="keys",y="values",m="entries",w=function(){return this};t.exports=function(t,e,n,f,p,x,S){o(n,e,f);var O,E,j,k=function(t){if(t===p&&A)return A;if(!v&&t in L)return L[t];switch(t){case g:return function(){return new n(this,t)};case y:return function(){return new n(this,t)};case m:return function(){return new n(this,t)}}return function(){return new n(this)}},C=e+" Iterator",R=!1,L=t.prototype,T=L[b]||L["@@iterator"]||p&&L[p],A=!v&&T||k(p),_="Array"==e&&L.entries||T;if(_&&(O=i(_.call(new t)),h!==Object.prototype&&O.next&&(l||i(O)===h||(a?a(O,h):"function"!=typeof O[b]&&u(O,b,w)),c(O,C,!0,!0),l&&(d[C]=w))),p==y&&T&&T.name!==y&&(R=!0,A=function(){return T.call(this)}),l&&!S||L[b]===A||u(L,b,A),d[e]=A,p)if(E={values:k(y),keys:x?A:k(g),entries:k(m)},S)for(j in E)(v||R||!(j in L))&&s(L,j,E[j]);else r({target:e,proto:!0,forced:v||R},E);return E}},"7f9a":function(t,e,n){var r=n("da84"),o=n("8925"),i=r.WeakMap;t.exports="function"===typeof i&&/native code/.test(o(i))},"825a":function(t,e,n){var r=n("861d");t.exports=function(t){if(!r(t))throw TypeError(String(t)+" is not an object");return t}},"83ab":function(t,e,n){var r=n("d039");t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8418:function(t,e,n){"use strict";var r=n("c04e"),o=n("9bf2"),i=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},"861d":function(t,e){t.exports=function(t){return"object"===c(t)?null!==t:"function"===typeof t}},8875:function(t,e,n){var r,o,i;(function(n,a){o=[],r=function(){return 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(l){var n,r,o,i=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(l.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(l.stack),a=i&&i[1]||!1,c=i&&i[2]||!1,u=document.location.href.replace(document.location.hash,""),s=document.getElementsByTagName("script");a===u&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(c-2)+"}[^<]*