(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-my-invite"],{"1de5":function(t,e,r){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"2cca":function(t,e,r){var o=r("d9f3");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var n=r("4f06").default;n("5eb2ab8c",o,!0,{sourceMap:!1,shadowMode:!1})},"30c1":function(t,e,r){"use strict";var o=r("2cca"),n=r.n(o);n.a},"410d3":function(t,e,r){"use strict";r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return n})),r.d(e,"a",(function(){}));var o=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",{staticClass:"erweima"},[e("v-uni-view",{staticClass:"info"},[e("v-uni-image",{attrs:{src:this.userInfo.avatar,mode:"aspectFill"}}),e("v-uni-view",{staticClass:"name"},[this._v(this._s(this.userInfo.nickname))])],1),e("v-uni-view",{staticClass:"content"},[e("v-uni-canvas",{staticStyle:{width:"200px",height:"200px"},attrs:{id:"qrcode","canvas-id":"qrcode"}}),e("v-uni-view",{staticClass:"text"},[this._v("扫一扫上方二维码加入我们吧")])],1)],1)},n=[]},"50ed":function(t,e,r){"use strict";r.r(e);var o=r("410d3"),n=r("8577");for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i);r("30c1");var a=r("f0c5"),u=Object(a["a"])(n["default"],o["b"],o["c"],!1,null,"181a0157",null,!1,o["a"],void 0);e["default"]=u.exports},"5af7":function(t,e,r){"use strict";r("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.userRegister=e.updateUserInfo=e.smsSend=e.smsCheck=e.privacyPolicy=e.payUpGoods=e.orderPay=e.orderDetail=e.logout=e.loginApi=e.getgoodsDetail=e.getWarehouseList=e.getUserProfitStatistic=e.getUserProfitList=e.getUserInfo=e.getUserFansStatistic=e.getUserFansOrderStatistic=e.getUserFansOrderList=e.getUserFansList=e.getUserCommissionStatistic=e.getUserCommissionList=e.getUserCommissionApi=e.getSellerOrderList=e.getGoodsList=e.getBuyerOrderList=e.getArea=e.getAddrList=e.getAddrDesc=e.forgetPsw=e.editAddr=e.deleteAddr=e.createOrder=e.couponList=e.changePassword=e.cancelOrder=e.bindInvitor=e.addAddr=void 0;var o=uni.$u.http;e.smsSend=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/sms/send",t,e)};e.smsCheck=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/sms/check",t,e)};e.userRegister=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/user/register",t,e)};e.loginApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/user/login",t,e)};e.privacyPolicy=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/addons/shopro/data.richtext/index",t,e)};e.forgetPsw=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.post("/api/user/resetpwd",t,e)};e.getUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserinfo",t,e)};e.getAddrList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.address/index",t,e)};e.getArea=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/data.area/index",t,e)};e.addAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.address/add",t,e)};e.editAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.address/edit",t,e)};e.deleteAddr=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.address/delete",t,e)};e.getAddrDesc=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.address/detail",t,e)};e.changePassword=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.user/changePassword",t,e)};e.logout=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/logout",t,e)};e.updateUserInfo=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/updateUserInfo",t,e)};e.couponList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/addons/shopro/user.coupon/index",t,e)};e.getUserCommissionStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserCommissionStatistic",t,e)};e.getUserCommissionApi=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserCommission",t,e)};e.getUserCommissionList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserCommissionList",t,e)};e.getUserFansStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserFansStatistic",t,e)};e.getUserFansList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserFansList",t,e)};e.getUserFansOrderStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserFansOrderStatistic",t,e)};e.getUserFansOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserFansOrderList",t,e)};e.getUserProfitStatistic=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserProfitStatistic",t,e)};e.getUserProfitList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/getUserProfitList",t,e)};e.getWarehouseList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/order/getWarehouseList",t,e)};e.getGoodsList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/order/getGoodsList",t,e)};e.getgoodsDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.get("/api/order/goodsDetail",{params:t},e)};e.getBuyerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.get("/api/order/getBuyerOrderList",{params:t},e)};e.getSellerOrderList=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.get("/api/order/getSellerOrderList",{params:t},e)};e.createOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/order/createOrder",t,e)};e.cancelOrder=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/order/cancelOrder",t,e)};e.orderDetail=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.get("/api/order/orderDetail",{params:t},e)};e.orderPay=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/order/orderPay",t,e)};e.bindInvitor=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/user/bindInvitor",t,e)};e.payUpGoods=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{custom:{auth:!0}};return o.post("/api/order/payUpGoods",t,e)}},"64fb":function(t,e,r){"use strict";r("7a82");var o=r("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=o(r("dc6b")),i=r("5af7"),a={data:function(){return{qrcodeData:"",userInfo:{avatar:"",createtime:null,expires_in:null,expiretime:null,id:null,mobile:null,nickname:null,score:null,token:null,user_id:null,username:null}}},methods:{getUserInfoHandle:function(){var t=this;(0,i.getUserInfo)().then((function(e){t.userInfo=Object.assign((t.userInfo,e.data));var r=new n.default;r.data="https://www.hezhiying.com.cn/pages/register/register?mobile=".concat(t.userInfo.mobile),r.size=200,r.make();var o=uni.createCanvasContext("qrcode",t);r.canvasContext=o,r.drawCanvas()}))}},onLoad:function(){this.getUserInfoHandle();this.qrcodeData="https://www.example.com"}};e.default=a},"6c57":function(t,e,r){var o=r("23e7"),n=r("da84");o({global:!0,forced:n.globalThis!==n},{globalThis:n})},"7ec2":function(t,e,r){r("7a82"),r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("d401"),r("14d9"),r("159b"),r("131a"),r("26e9"),r("fb6a");var o=r("7037")["default"];function n(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=n=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},s=u.iterator||"@@iterator",d=u.asyncIterator||"@@asyncIterator",c=u.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(A){l=function(t,e,r){return t[e]=r}}function g(t,e,r,o){var n=e&&e.prototype instanceof m?e:m,i=Object.create(n.prototype),u=new P(o||[]);return a(i,"_invoke",{value:S(t,r,u)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(A){return{type:"throw",arg:A}}}e.wrap=g;var f={};function m(){}function p(){}function v(){}var b={};l(b,s,(function(){return this}));var y=Object.getPrototypeOf,C=y&&y(y(E([])));C&&C!==r&&i.call(C,s)&&(b=C);var w=v.prototype=m.prototype=Object.create(b);function k(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function I(t,e){var r;a(this,"_invoke",{value:function(n,a){function u(){return new e((function(r,u){(function r(n,a,u,s){var d=h(t[n],t,a);if("throw"!==d.type){var c=d.arg,l=c.value;return l&&"object"==o(l)&&i.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,u,s)}),(function(t){r("throw",t,u,s)})):e.resolve(l).then((function(t){c.value=t,u(c)}),(function(t){return r("throw",t,u,s)}))}s(d.arg)})(n,a,r,u)}))}return r=r?r.then(u,u):u()}})}function S(t,e,r){var o="suspendedStart";return function(n,i){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===n)throw i;return O()}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var u=L(a,r);if(u){if(u===f)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var s=h(t,e,r);if("normal"===s.type){if(o=r.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o="completed",r.method="throw",r.arg=s.arg)}}}function L(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator["return"]&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),f;var n=h(o,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,f;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function E(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--o){var n=this.tryEntries[o],a=n.completion;if("root"===n.tryLoc)return r("end");if(n.tryLoc<=this.prev){var u=i.call(n,"catchLoc"),s=i.call(n,"finallyLoc");if(u&&s){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&i.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),B(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;B(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},8577:function(t,e,r){"use strict";r.r(e);var o=r("64fb"),n=r.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return o[t]}))}(i);e["default"]=n.a},9523:function(t,e,r){r("7a82");var o=r("a395");t.exports=function(t,e,r){return e=o(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t},t.exports.__esModule=!0,t.exports["default"]=t.exports},a2a2:function(t,e,r){t.exports=r.p+"static/img/bg.5183c054.png"},a395:function(t,e,r){var o=r("7037")["default"],n=r("e50d");t.exports=function(t){var e=n(t,"string");return"symbol"===o(e)?e:String(e)},t.exports.__esModule=!0,t.exports["default"]=t.exports},c973:function(t,e,r){function o(t,e,r,o,n,i,a){try{var u=t[i](a),s=u.value}catch(d){return void r(d)}u.done?e(s):Promise.resolve(s).then(o,n)}r("d3b7"),t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(n,i){var a=t.apply(e,r);function u(t){o(a,n,i,u,s,"next",t)}function s(t){o(a,n,i,u,s,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports["default"]=t.exports},cb29:function(t,e,r){var o=r("23e7"),n=r("81d5"),i=r("44d2");o({target:"Array",proto:!0},{fill:n}),i("fill")},d9f3:function(t,e,r){var o=r("24fb"),n=r("1de5"),i=r("a2a2");e=o(!1);var a=n(i);e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 主要颜色 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.erweima[data-v-181a0157]{min-height:calc(100vh - 44px);background:url('+a+");background-size:contain;border-top:1px solid transparent}.erweima .info[data-v-181a0157]{display:flex;align-items:center;flex-direction:column;justify-content:center;margin-top:20%}.erweima .info > uni-image[data-v-181a0157]{height:%?200?%;width:%?200?%;border-radius:50%;border:2px solid #236030}.erweima .info .name[data-v-181a0157]{font-size:%?26?%;color:#fff;margin-top:%?30?%}.erweima .content[data-v-181a0157]{background:#fff;padding:%?50?%;border-radius:10px;width:-webkit-fit-content;width:fit-content;margin:%?20?% auto;text-align:center}.erweima .content .text[data-v-181a0157]{font-size:%?24?%;color:#999;margin-top:%?20?%}",""]),t.exports=e},dc6b:function(t,e,r){(function(o){var n,i,a=r("7ec2").default,u=r("c973").default,s=r("ded3").default,d=r("7037").default;r("6c57"),r("14d9"),r("d9e2"),r("d401"),r("1d1c"),r("a9e3"),r("d3b7"),r("159b"),r("b64b"),r("25f0"),r("caad"),r("2532"),r("cb29"),function(o,a){"object"==d(e)&&"undefined"!=typeof t?t.exports=a():(n=a,i="function"===typeof n?n.call(e,r,e,t):n,void 0===i||(t.exports=i))}("undefined"!==typeof window&&window,(function(){function t(t){this.mode=r.MODE_8BIT_BYTE,this.data=t}function e(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=new Array}t.prototype={getLength:function(t){return this.data.length},write:function(t){for(var e=0;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,r)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var o=-1;o<=7;o++)e+o<=-1||this.moduleCount<=e+o||(this.modules[t+r][e+o]=0<=r&&r<=6&&(0==o||6==o)||0<=o&&o<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=o&&o<=4)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var o=n.getLostPoint(this);(0==r||t>o)&&(t=o,e=r)}return e},createMovieClip:function(t,e,r){var o=t.createEmptyMovieClip(e,r);this.make();for(var n=0;n>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=o}for(r=0;r<18;r++)o=!t&&1==(e>>r&1),this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=o},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,o=n.getBCHTypeInfo(r),i=0;i<15;i++){var a=!t&&1==(o>>i&1);i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(i=0;i<15;i++)a=!t&&1==(o>>i&1),i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a;this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,o=this.moduleCount-1,i=7,a=0,u=this.moduleCount-1;u>0;u-=2)for(6==u&&u--;;){for(var s=0;s<2;s++)if(null==this.modules[o][u-s]){var d=!1;a>>i&1)),n.getMask(e,o,u-s)&&(d=!d),this.modules[o][u-s]=d,-1==--i&&(a++,i=7)}if((o+=r)<0||this.moduleCount<=o){o-=r,r=-r;break}}}},e.PAD0=236,e.PAD1=17,e.createData=function(t,r,o){for(var i=l.getRSBlocks(t,r),a=new g,u=0;u8*d)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*d+")");for(a.getLengthInBits()+4<=8*d&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*d||(a.put(e.PAD0,8),a.getLengthInBits()>=8*d));)a.put(e.PAD1,8);return e.createBytes(a,i)},e.createBytes=function(t,e){for(var r=0,o=0,i=0,a=new Array(e.length),u=new Array(e.length),s=0;s=0?f.get(m):0}}var p=0;for(g=0;g=0;)e^=n.G15<=0;)e^=n.G18<>>=1;return e},getPatternPosition:function(t){return n.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case 0:return(e+r)%2==0;case 1:return e%2==0;case 2:return r%3==0;case 3:return(e+r)%3==0;case 4:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case 5:return e*r%2+e*r%3==0;case 6:return(e*r%2+e*r%3)%2==0;case 7:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new c([1],0),r=0;r5&&(r+=3+i-5)}for(o=0;o=256;)t-=255;return i.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},d=0;d<8;d++)i.EXP_TABLE[d]=1<1?1:t<0?0:t}},foregroundImageWidth:{get:function(){return void 0===g?(this.dynamicSize-2*this.margin)/4:this.useDynamicSize?this.dynamicSize/this.size*g:g},set:function(t){g=Number(t)}},foregroundImageHeight:{get:function(){return void 0===m?(this.dynamicSize-2*this.margin)/4:this.useDynamicSize?this.dynamicSize/this.size*m:m},set:function(t){m=Number(t)}},foregroundImageX:{get:function(){return void 0===p?this.dynamicSize/2-this.foregroundImageWidth/2:this.useDynamicSize?this.dynamicSize/this.size*p:p},set:function(t){p=Number(t)}},foregroundImageY:{get:function(){return void 0===v?this.dynamicSize/2-this.foregroundImageHeight/2:this.useDynamicSize?this.dynamicSize/this.size*v:v},set:function(t){v=Number(t)}},foregroundImagePadding:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*b:b},set:function(t){b=Number(t)}},foregroundImageBorderRadius:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*y:y},set:function(t){y=Number(t)}},foregroundImageShadowOffsetX:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*C:C},set:function(t){C=Number(t)}},foregroundImageShadowOffsetY:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*w:w},set:function(t){w=Number(t)}},foregroundImageShadowBlur:{get:function(){return this.useDynamicSize?this.dynamicSize/this.size*k:k},set:function(t){k=Number(t)}},foregroundPadding:{get:function(){return I},set:function(t){I=t>1?1:t<0?0:t}},positionProbeBackgroundColor:{get:function(){return S||this.backgroundColor},set:function(t){S=t}},positionProbeForegroundColor:{get:function(){return L||this.foregroundColor},set:function(t){L=t}},separatorColor:{get:function(){return x||this.backgroundColor},set:function(t){x=t}},positionAdjustBackgroundColor:{get:function(){return B||this.backgroundColor},set:function(t){B=t}},positionAdjustForegroundColor:{get:function(){return P||this.foregroundColor},set:function(t){P=t}},timingBackgroundColor:{get:function(){return E||this.backgroundColor},set:function(t){E=t}},timingForegroundColor:{get:function(){return O||this.foregroundColor},set:function(t){O=t}},typeNumberBackgroundColor:{get:function(){return A||this.backgroundColor},set:function(t){A=t}},typeNumberForegroundColor:{get:function(){return D||this.foregroundColor},set:function(t){D=t}},darkBlockColor:{get:function(){return _||this.foregroundColor},set:function(t){_=t}},canvasContext:{get:function(){if(void 0===T)throw console.error("[uQRCode]: use drawCanvas, you need to set the canvasContext!"),new f.Error("use drawCanvas, you need to set the canvasContext!");return T},set:function(t){T=h(t)}}}),f.plugins.forEach((function(t){return t(f,r,!1)})),t&&this.setOptions(t),e&&(this.canvasContext=h(e))}return c.prototype={get:function(t){return this.num[t]},getLength:function(){return this.num.length},multiply:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),r=0;r>>7-t%8&1)},put:function(t,e){for(var r=0;r>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}},e.errorCorrectLevel=o,f.errorCorrectLevel=e.errorCorrectLevel,f.Error=function(t){this.errMsg="[uQRCode]: "+t},f.plugins=[],f.use=function(t){"function"==typeof t&&f.plugins.push(t)},f.prototype.loadImage=function(t){return Promise.resolve(t)},f.prototype.setOptions=function(t){var e,r,o,n,i,a,u,d,c,l,g,h,f,m,p,v,b,y,C,w,k,I,S,L,x,B,P,E,O,A,D,_,T,M,N,z,F,R,j,U,H,X,Y,G,W,K,Q,J,q,$,V,Z,tt,et,rt,ot,nt=this;t&&(Object.keys(t).forEach((function(e){nt[e]=t[e]})),function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var n in t=o?e:s({},e),r){var i=r[n];null!=i&&(i.constructor==Object?t[n]=this.deepReplace(t[n],i):i.constructor!=String||i?t[n]=i:t[n]=t[n])}}(this,{data:t.data||t.text,dataEncode:t.dataEncode,size:t.size,useDynamicSize:t.useDynamicSize,typeNumber:t.typeNumber,errorCorrectLevel:t.errorCorrectLevel,margin:t.margin,areaColor:t.areaColor,backgroundColor:t.backgroundColor||(null===(e=t.background)||void 0===e?void 0:e.color),backgroundImageSrc:t.backgroundImageSrc||(null===(r=t.background)||void 0===r||null===(o=r.image)||void 0===o?void 0:o.src),backgroundImageWidth:t.backgroundImageWidth||(null===(n=t.background)||void 0===n||null===(i=n.image)||void 0===i?void 0:i.width),backgroundImageHeight:t.backgroundImageHeight||(null===(a=t.background)||void 0===a||null===(u=a.image)||void 0===u?void 0:u.height),backgroundImageX:t.backgroundImageX||(null===(d=t.background)||void 0===d||null===(c=d.image)||void 0===c?void 0:c.x),backgroundImageY:t.backgroundImageY||(null===(l=t.background)||void 0===l||null===(g=l.image)||void 0===g?void 0:g.y),backgroundImageAlpha:t.backgroundImageAlpha||(null===(h=t.background)||void 0===h||null===(f=h.image)||void 0===f?void 0:f.alpha),backgroundImageBorderRadius:t.backgroundImageBorderRadius||(null===(m=t.background)||void 0===m||null===(p=m.image)||void 0===p?void 0:p.borderRadius),backgroundPadding:t.backgroundPadding,foregroundColor:t.foregroundColor||(null===(v=t.foreground)||void 0===v?void 0:v.color),foregroundImageSrc:t.foregroundImageSrc||(null===(b=t.foreground)||void 0===b||null===(y=b.image)||void 0===y?void 0:y.src),foregroundImageWidth:t.foregroundImageWidth||(null===(C=t.foreground)||void 0===C||null===(w=C.image)||void 0===w?void 0:w.width),foregroundImageHeight:t.foregroundImageHeight||(null===(k=t.foreground)||void 0===k||null===(I=k.image)||void 0===I?void 0:I.height),foregroundImageX:t.foregroundImageX||(null===(S=t.foreground)||void 0===S||null===(L=S.image)||void 0===L?void 0:L.x),foregroundImageY:t.foregroundImageY||(null===(x=t.foreground)||void 0===x||null===(B=x.image)||void 0===B?void 0:B.y),foregroundImagePadding:t.foregroundImagePadding||(null===(P=t.foreground)||void 0===P||null===(E=P.image)||void 0===E?void 0:E.padding),foregroundImageBackgroundColor:t.foregroundImageBackgroundColor||(null===(O=t.foreground)||void 0===O||null===(A=O.image)||void 0===A?void 0:A.backgroundColor),foregroundImageBorderRadius:t.foregroundImageBorderRadius||(null===(D=t.foreground)||void 0===D||null===(_=D.image)||void 0===_?void 0:_.borderRadius),foregroundImageShadowOffsetX:t.foregroundImageShadowOffsetX||(null===(T=t.foreground)||void 0===T||null===(M=T.image)||void 0===M?void 0:M.shadowOffsetX),foregroundImageShadowOffsetY:t.foregroundImageShadowOffsetY||(null===(N=t.foreground)||void 0===N||null===(z=N.image)||void 0===z?void 0:z.shadowOffsetY),foregroundImageShadowBlur:t.foregroundImageShadowBlur||(null===(F=t.foreground)||void 0===F||null===(R=F.image)||void 0===R?void 0:R.shadowBlur),foregroundImageShadowColor:t.foregroundImageShadowColor||(null===(j=t.foreground)||void 0===j||null===(U=j.image)||void 0===U?void 0:U.shadowColor),foregroundPadding:t.foregroundPadding,positionProbeBackgroundColor:t.positionProbeBackgroundColor||(null===(H=t.positionProbe)||void 0===H?void 0:H.backgroundColor)||(null===(X=t.positionDetection)||void 0===X?void 0:X.backgroundColor),positionProbeForegroundColor:t.positionProbeForegroundColor||(null===(Y=t.positionProbe)||void 0===Y?void 0:Y.foregroundColor)||(null===(G=t.positionDetection)||void 0===G?void 0:G.foregroundColor),separatorColor:t.separatorColor||(null===(W=t.separator)||void 0===W?void 0:W.color),positionAdjustBackgroundColor:t.positionAdjustBackgroundColor||(null===(K=t.positionAdjust)||void 0===K?void 0:K.backgroundColor)||(null===(Q=t.alignment)||void 0===Q?void 0:Q.backgroundColor),positionAdjustForegroundColor:t.positionAdjustForegroundColor||(null===(J=t.positionAdjust)||void 0===J?void 0:J.foregroundColor)||(null===(q=t.alignment)||void 0===q?void 0:q.foregroundColor),timingBackgroundColor:t.timingBackgroundColor||(null===($=t.timing)||void 0===$?void 0:$.backgroundColor),timingForegroundColor:t.timingForegroundColor||(null===(V=t.timing)||void 0===V?void 0:V.foregroundColor),typeNumberBackgroundColor:t.typeNumberBackgroundColor||(null===(Z=t.typeNumber)||void 0===Z?void 0:Z.backgroundColor)||(null===(tt=t.versionInformation)||void 0===tt?void 0:tt.backgroundColor),typeNumberForegroundColor:t.typeNumberForegroundColor||(null===(et=t.typeNumber)||void 0===et?void 0:et.foregroundColor)||(null===(rt=t.versionInformation)||void 0===rt?void 0:rt.foregroundColor),darkBlockColor:t.darkBlockColor||(null===(ot=t.darkBlock)||void 0===ot?void 0:ot.color)},!0))},f.prototype.make=function(){var t=this.foregroundColor,r=this.backgroundColor,o=this.typeNumber,n=this.errorCorrectLevel,i=this.data,a=this.dataEncode,u=this.size,s=this.margin,d=this.useDynamicSize;if(t===r)throw console.error("[uQRCode]: foregroundColor and backgroundColor cannot be the same!"),new f.Error("foregroundColor and backgroundColor cannot be the same!");a&&(i=function(t){t=t.toString();for(var e,r="",o=0;o=1&&e<=127?r+=t.charAt(o):e>2047?(r+=String.fromCharCode(224|e>>12&15),r+=String.fromCharCode(128|e>>6&63),r+=String.fromCharCode(128|e>>0&63)):(r+=String.fromCharCode(192|e>>6&31),r+=String.fromCharCode(128|e>>0&63));return r}(i));var c=new e(o,n);c.addData(i),c.make(),this.base=c,this.typeNumber=c.typeNumber,this.modules=c.modules,this.moduleCount=c.moduleCount,this.dynamicSize=d?Math.ceil((u-2*s)/c.moduleCount)*c.moduleCount+2*s:u,function(t){var e=t.dynamicSize,r=t.margin,o=t.backgroundColor,n=t.backgroundPadding,i=t.foregroundColor,a=t.foregroundPadding,u=t.modules,s=t.moduleCount,d=(e-2*r)/s,c=d,l=0;n>0&&(c-=2*(l=c*n/2));var g=d,h=0;a>0&&(g-=2*(h=g*a/2));for(var f=0;fo-9-1&&v<9||v>o-9-1&&p<9||l.forEach((function(t){var e=r[p+t[0]][v+t[1]];e.type.push("positionAdjust"),e.type.includes("timing")?1==t[2]?e.color=a==n?s:a:e.color=a==n&&u==i?d:u:e.color=1==t[2]?a:u}))}}(this),function(t){for(var e=t.modules,r=t.moduleCount,o=t.timingForegroundColor,n=t.timingBackgroundColor,i=r-16,a=0;a0)return this.drawModules;var t=this.drawModules=[],e=this.modules,r=this.moduleCount,o=this.dynamicSize,n=this.areaColor,i=this.backgroundImageSrc,a=this.backgroundImageX,u=this.backgroundImageY,s=this.backgroundImageWidth,d=this.backgroundImageHeight,c=this.backgroundImageAlpha,l=this.backgroundImageBorderRadius,g=this.foregroundImageSrc,h=this.foregroundImageX,f=this.foregroundImageY,m=this.foregroundImageWidth,p=this.foregroundImageHeight,v=this.foregroundImagePadding,b=this.foregroundImageBackgroundColor,y=this.foregroundImageBorderRadius,C=this.foregroundImageShadowOffsetX,w=this.foregroundImageShadowOffsetY,k=this.foregroundImageShadowBlur,I=this.foregroundImageShadowColor;n&&t.push({name:"area",type:"area",color:n,x:0,y:0,width:o,height:o}),i&&t.push({name:"backgroundImage",type:"image",imageSrc:i,mappingName:"backgroundImageSrc",x:a,y:u,width:s,height:d,alpha:c,borderRadius:l});for(var S=0;St||0>e||t>=r||e>=r)&&this.modules[t][e].isBlack},f.prototype.drawCanvas=function(t){var e=this,r=this.isMaked,o=this.canvasContext,n=(this.useDynamicSize,this.dynamicSize,this.foregroundColor,this.foregroundPadding,this.backgroundColor,this.backgroundPadding,this.drawReserve);this.margin;if(!r)return console.error("[uQRCode]: please execute the make method first!"),Promise.reject(new f.Error("please execute the make method first!"));var i=this.getDrawModules(),s=function(){var r=u(a().mark((function r(u,s){var d,c,l,g,h,m,p,v,b,y,C,w,k,I;return a().wrap((function(r){while(1)switch(r.prev=r.next){case 0:r.prev=0,o.draw(t),d=0;case 3:if(!(d0&&(o.beginPath(),o.moveTo(l+v,g),o.arcTo(l+h,g,l+h,g+m,v),o.arcTo(l+h,g+m,l,g+m,v),o.arcTo(l,g+m,l,g,v),o.arcTo(l,g,l+h,g,v),o.closePath(),o.setStrokeStyle("rgba(0,0,0,0)"),o.stroke(),o.clip()),r.prev=16,r.next=19,e.loadImage(c.imageSrc);case 19:p=r.sent,o.drawImage(p,l,g,h,m),r.next=26;break;case 23:throw r.prev=23,r.t1=r["catch"](16),console.error("[uQRCode]: ".concat(c.mappingName," invalid!")),new f.Error("".concat(c.mappingName," invalid!"));case 26:r.next=44;break;case 28:if("foregroundImage"!==c.name){r.next=44;break}return l=Math.round(c.x),g=Math.round(c.y),h=Math.round(c.width),m=Math.round(c.height),b=Math.round(c.padding),h<2*(v=Math.round(c.borderRadius))&&(v=h/2),m<2*v&&(v=m/2),y=l-b,C=g-b,w=h+2*b,k=m+2*b,I=Math.round(w/h*v),w<2*I&&(I=w/2),k<2*I&&(I=k/2),o.save(),o.setShadow(c.shadowOffsetX,c.shadowOffsetY,c.shadowBlur,c.shadowColor),I>0?(o.beginPath(),o.moveTo(y+I,C),o.arcTo(y+w,C,y+w,C+k,I),o.arcTo(y+w,C+k,y,C+k,I),o.arcTo(y,C+k,y,C,I),o.arcTo(y,C,y+w,C,I),o.closePath(),o.setFillStyle(c.backgroundColor),o.fill()):(o.setFillStyle(c.backgroundColor),o.fillRect(y,C,w,k)),o.restore(),o.save(),I>0?(o.beginPath(),o.moveTo(y+I,C),o.arcTo(y+w,C,y+w,C+k,I),o.arcTo(y+w,C+k,y,C+k,I),o.arcTo(y,C+k,y,C,I),o.arcTo(y,C,y+w,C,I),o.closePath(),o.setFillStyle(b>0?c.backgroundColor:"rgba(0,0,0,0)"),o.fill()):(o.setFillStyle(b>0?c.backgroundColor:"rgba(0,0,0,0)"),o.fillRect(y,C,w,k)),o.restore(),v>0&&(o.beginPath(),o.moveTo(l+v,g),o.arcTo(l+h,g,l+h,g+m,v),o.arcTo(l+h,g+m,l,g+m,v),o.arcTo(l,g+m,l,g,v),o.arcTo(l,g,l+h,g,v),o.closePath(),o.setStrokeStyle("rgba(0,0,0,0)"),o.stroke(),o.clip()),r.prev=34,r.next=37,e.loadImage(c.imageSrc);case 37:p=r.sent,o.drawImage(p,l,g,h,m),r.next=44;break;case 41:throw r.prev=41,r.t2=r["catch"](34),console.error("[uQRCode]: ".concat(c.mappingName," invalid!")),new f.Error("".concat(c.mappingName," invalid!"));case 44:n&&o.draw(!0),o.restore();case 45:d++,r.next=3;break;case 48:o.draw(!0),setTimeout(u,150),r.next=54;break;case 51:r.prev=51,r.t3=r["catch"](0),s(r.t3);case 54:case"end":return r.stop()}}),r,null,[[0,51],[16,23],[34,41]])})));return function(t,e){return r.apply(this,arguments)}}();return new Promise((function(t,e){s(t,e)}))},f.prototype.draw=function(t){return this.drawCanvas(t)},f.prototype.register=function(t){t&&t(f,this,!0)},f}))}).call(this,r("c8ba"))},ded3:function(t,e,r){r("b64b"),r("a4d3"),r("4de4"),r("d3b7"),r("e439"),r("14d9"),r("159b"),r("dbb4"),r("1d1c"),r("7a82");var o=r("9523");function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,o)}return r}t.exports=function(t){for(var e=1;e