1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-commission-index"],{"0cfa":function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("a9e3");var n={props:{board:Object,pathType:String,fileType:{type:String,default:"png"},quality:{type:Number,default:1},css:[String,Object],width:[Number,String],height:[Number,String],pixelRatio:Number,customStyle:String,isCanvasToTempFilePath:Boolean,sleep:{type:Number,default:1e3/30},beforeDelay:{type:Number,default:100},afterDelay:{type:Number,default:100},useCORS:Boolean}};e.default=n},1255:function(t,e,i){"use strict";i.d(e,"b",(function(){return o})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={tnNavBar:i("f71b").default,uIcon:i("94f3").default,uPopup:i("a2a6").default,wikePainter:i("7275").default,wikeLoadingPage:i("f6b0").default},o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[i("v-uni-view",{staticStyle:{color:"#000000"}},[i("tn-nav-bar",{attrs:{backgroundColor:"#ffffff",bottomShadow:!1}},[t._v(t._s(t.commission_alias))]),i("v-uni-view",{style:{height:t.tobheight+"px"}})],1),i("v-uni-view",{staticStyle:{width:"100%",height:"100%"}},[i("v-uni-view",{staticClass:"commission-wrap",class:{blur:!t.hasAuth}},[i("v-uni-view",{staticClass:"user-card"},[i("v-uni-view",{staticClass:"card-top u-flex u-row-between"},[i("v-uni-view",{staticClass:"u-flex"},[i("v-uni-view",{staticClass:"head-img-box"},[i("v-uni-image",{staticClass:"head-img",attrs:{src:t.userInfo.avatar?t.userInfo.avatar:"/static/images/head.jpg",mode:""}})],1),i("v-uni-view",{staticClass:"u-flex-col"},[i("v-uni-view",{staticClass:"user-name"},[t._v(t._s(t.userInfo.nickname))]),i("v-uni-view",{staticClass:"user-info-box u-flex"},[i("v-uni-view",{staticClass:"tag-box u-flex"},[i("v-uni-text",{staticClass:"tag-title"},[t._v(t._s(t.commissionLv.name))])],1)],1)],1)],1),i("v-uni-view",{staticClass:"u-flex-col"},[i("v-uni-view",{staticClass:"u-flex-col u-col-center"},[i("v-uni-button",{staticClass:"u-reset-button log-btn u-m-b-20",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toTeam.apply(void 0,arguments)}}},[t._v("明细")]),i("v-uni-button",{staticClass:"u-reset-button look-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showMoney=!t.showMoney}}},[i("u-icon",{attrs:{name:t.showMoney?"eye-fill":"eye-off",color:"#fff",size:"22"}})],1)],1)],1)],1),i("v-uni-view",{staticClass:"card-bottom u-flex"},[i("v-uni-view",{staticClass:"u-flex-1 "},[i("v-uni-view",{staticClass:"item-title"},[t._v("累计收入")]),i("v-uni-view",{staticClass:"item-detail"},[t._v(t._s(t.showMoney?t.money_total||0:"****"))])],1),i("v-uni-view",{staticClass:"u-flex-1 u-col-center"},[i("v-uni-view",{staticClass:"item-title"},[t._v("待入账佣金")]),i("v-uni-view",{staticClass:"item-detail"},[t._v(t._s(t.showMoney?t.on_cashout_money||0:"****"))])],1)],1)],1),i("v-uni-view",{staticClass:"commission-log"},[i("v-uni-scroll-view",{staticClass:"scroll-box log-scroll",attrs:{"scroll-y":"true"},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadMore.apply(void 0,arguments)}}},t._l(t.commissionLog,(function(e){return i("v-uni-view",{key:e.id,staticClass:"log-item-box u-flex u-row-between",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.$u.toast(e.remark)}}},[i("v-uni-view",{staticClass:"log-item-wrap"},[i("v-uni-view",{staticClass:"log-item u-flex u-ellipsis-1 u-col-center"},[i("v-uni-view",{staticClass:"u-flex u-col-center "},[i("v-uni-image",{staticClass:"log-img",attrs:{src:t.appInfo.site_logo_path,mode:""}})],1),i("v-uni-view",{staticClass:"log-text u-ellipsis-1"},[t._v(t._s(e.remark))])],1)],1),i("v-uni-text",{staticClass:"log-time"},[t._v(t._s(e.createtime))])],1)})),1)],1),i("v-uni-view",{staticClass:"menu-box u-flex"},[t._l(t.menuList,(function(e,n){return e.isAgentFrom?t._e():i("v-uni-view",{key:n,staticClass:"menu-item u-flex-col u-col-center",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.jump(e.path)}}},[i("v-uni-image",{staticClass:"item-img",attrs:{src:e.img,mode:""}}),i("v-uni-view",{staticClass:"item-title"},[t._v(t._s(e.title))])],1)})),i("v-uni-view",{staticClass:"menu-item u-flex-col u-col-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.createPoster.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"item-img",attrs:{src:"https://file.shopro.top/imgs/commission/commission_icon5.png",mode:""}}),i("v-uni-view",{staticClass:"item-title"},[t._v("分享海报")])],1),i("v-uni-view",{staticClass:"menu-item u-flex-col u-col-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.sharelink.apply(void 0,arguments)}}},[i("v-uni-image",{staticClass:"item-img",attrs:{src:"https://file.shopro.top/imgs/commission/commission_icon7.png",mode:""}}),i("v-uni-view",{staticClass:"item-title"},[t._v("分享链接")])],1)],2)],1),i("u-popup",{staticClass:"auth-box",attrs:{mask:!1,mode:"center","mask-close-able":!1,"close-icon-pos":"top-left","border-radius":"20"},model:{value:t.showAuthModal,callback:function(e){t.showAuthModal=e},expression:"showAuthModal"}},[i("v-uni-view",{staticClass:"notice-box"},[i("v-uni-view",{staticClass:"img-wrap"},[i("v-uni-image",{staticClass:"notice-img",attrs:{src:t.authNotice.img,mode:""}})],1),i("v-uni-view",{staticClass:"notice-title"},[t._v(t._s(t.authNotice.title))]),i("v-uni-view",{staticClass:"notice-detail"},[t._v(t._s(t.authNotice.detail))]),i("v-uni-button",{staticClass:"u-reset-button notice-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onAuthBtn(t.authNotice.btnPath)}}},[t._v(t._s(t.authNotice.btnText))]),t.authNotice.hideBtn?i("v-uni-button",{staticClass:"u-reset-button back-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.hasAuth=!0}}},[t._v("取消")]):i("v-uni-button",{staticClass:"u-reset-button back-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.back()}}},[t._v("返回")])],1)],1),t.showTerm?i("u-popup",{staticClass:"into-agent-modal",attrs:{bgStyle:{background:"none"},mode:"center",mask:!1,"mask-close-able":!1},model:{value:t.showTerm,callback:function(e){t.showTerm=e},expression:"showTerm"}},[i("v-uni-view",{staticClass:"condition-box u-flex u-row-center u-col-center"},[t.showMoneyTerm?i("v-uni-view",{staticClass:"goods-condition u-flex u-row-between"},[i("v-uni-view",{staticClass:"btn-box u-flex-col u-p-20 u-col-center"},[i("v-uni-button",{staticClass:"u-reset-button buy-btn u-m-b-10",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.$Router.back()}}},[t._v("知道了")]),i("v-uni-view",{staticClass:"tips"},[t._v("* 满足指定消费金额即可成为分销商")])],1)],1):t._e()],1)],1):t._e()],1),i("u-popup",{attrs:{show:t.showPoster,mode:"bottom"},on:{close:function(e){arguments[0]=e=t.$handleEvent(e),t.showPoster=!1}}},[i("v-uni-scroll-view",{style:{maxHeight:t.posterheight+"px"},attrs:{"scroll-y":"true"}},[i("wike-painter",{ref:"painter",attrs:{board:t.posterObj},on:{done:function(e){arguments[0]=e=t.$handleEvent(e),t.posterSuccess.apply(void 0,arguments)}}}),i("v-uni-view",{staticStyle:{height:"78px"}}),i("v-uni-view",{staticClass:"dygbhg"},[i("v-uni-view",{staticClass:"whole",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showPoster=!1}}},[t._v("取消")]),i("v-uni-view",{staticClass:"distinguish",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toSave.apply(void 0,arguments)}}},[t._v("保存/分享")])],1)],1)],1),i("wike-loading-page",{attrs:{isLoading:t.isLoading}})],1)},a=[]},"130c":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("c975"),i("a434"),i("d3b7"),i("ac1f"),i("5319"),i("99af");var o=n(i("c7eb")),a=n(i("1da1")),r=n(i("5530")),s=i("26cb"),c={data:function(){return{isLoading:!0,tobheight:45,platform:this.$platform.get(),showAuthModal:!0,empty:!1,team:[{headimg:"https://dev.iduomi.cc/attachment/headimg_2.jpg?time=1673514485",nickname:"多级火箭好",times:"2020/12/24"},{headimg:"https://dev.iduomi.cc/attachment/headimg_2.jpg?time=1673514485",nickname:"多级火箭好",times:"2020/12/24"},{headimg:"https://dev.iduomi.cc/attachment/headimg_2.jpg?time=1673514485",nickname:"多级火箭好",times:"2020/12/24"}],pages:1,currentTab:0,navbar:[{name:"下一级",type:"shareuid"},{name:"下下级",type:"shareuid_grandpa"}],showShare:!1,showMoney:!0,hasAuth:!0,commissionLv:{name:"合伙人"},commissionWallet:null,agentFrom:null,showLv:!0,commissionLog:[{id:1,oper_type:"gf",oper:"https://file.shopro.top/imgs/commission/commission_icon1.png",remark:"恭喜您成为了合伙人",createtime:1676428876}],loadStatus:"loadmore",currentPage:1,lastPage:1,logMap:{system:this.$IMG_URL+"/imgs/commission/commission_base_notice.png",admin:this.$IMG_URL+"/imgs/commission/commission_base_avatar.png"},showTerm:!0,showGoodsTerm:!1,showMoneyTerm:!1,goodsTermList:[],moneyTermNum:0,authNotice:{},menuList:[{img:"https://file.shopro.top/imgs/commission/commission_icon1.png",title:"我的团队",path:"/pages/user/commission/team"},{img:"https://file.shopro.top/imgs/commission/commission_icon2.png",title:"佣金明细",path:"/pages/user/commission/commission-log"},{img:"https://file.shopro.top/imgs/commission/commission_icon4.png",title:"推广套餐",path:"/pages/user/commission/goods"},{img:"https://file.shopro.top/imgs/commission/commission_icon3.png",title:"提现佣金",path:"/pages/user/commission/withdraw"},{img:"https://file.shopro.top/imgs/commission/commission_icon8.png",title:"提现记录",path:"/pages/user/commission/withdraw-log"}],money_total:"0.00",on_cashout_money:"0.00",showPoster:!1,posterObj:{},posterfff:"您好,我是AI语言模型,可以帮助你做很多事情。例如:\n- 回答你的问题\n- 给你提供某些信息\n- 帮你搜索网页\n- 聊天和闲聊\n- 玩一些小游戏\n- 计算数学题\n- 翻译语言\n- 生成文本\n等等.....\n如果你有任何问题或需要帮助,请随时告诉我。",spmplatform:0,is_examine:1,commission_price:0,info:{},posterheight:0,poster_bg_img_path:"",commission_alias:""}},computed:(0,r.default)({},(0,s.mapGetters)(["appInfo","isLogin","userInfo"])),onLoad:function(){if("wxMiniProgram"==this.platform){var t=uni.getMenuButtonBoundingClientRect().top-uni.getSystemInfoSync().statusBarHeight,e=uni.getSystemInfoSync().statusBarHeight+t;this.tobheight=t+e+uni.getMenuButtonBoundingClientRect().height}this.posterheight=uni.$u.sys().windowHeight-this.tobheight,this.spmplatform=["H5","wxOfficialAccount","wxMiniProgram","App"].indexOf(this.platform)+1,this.commonqrcodePath()},onShow:function(){this.islogin()},methods:{islogin:function(){this.isLogin?this.commission():uni.navigateTo({url:"../user/signin"})},commission:function(){var t=this;t.$http("conf.getGroupConf",{group:"system.commission"}).then((function(e){if(0===e.code){if(t.info=e.data,t.commission_alias=e.data.commission_alias?e.data.commission_alias:"分销中心",e.data.is_examine&&(t.is_examine=e.data.is_examine),e.data.commission_price&&(t.commission_price=e.data.commission_price),1==e.data.is_ranking&&5==t.menuList.length){t.menuList.splice(2,0,{img:"https://file.shopro.top/imgs/commission/commission_icon6.png",title:"排行榜",path:"/pages/user/commission/rankings"})}t.getCheck()}}))},commonqrcodePath:function(){var t=this,e=this.userInfo.id+".1.0."+this.spmplatform+".1";this.$http("common.qrcodePath",{spm:e}).then((function(e){0==e.code&&(t.qrcode=e.data)}))},sharelink:function(){var t=this.userInfo.id+".1.0."+this.spmplatform+".1",e=uni.getStorageSync("uniacid");if(e){var i=window.location.href.split("/h5")[0]+"/h5/?uniacid="+e+"&spm="+t;uni.setClipboardData({data:i,success:function(){uni.showToast({title:"复制链接成功"})}})}else uni.showToast({title:"复制链接失败",icon:"none"})},getdownload:function(t){return new Promise((function(e,i){uni.request({url:t,method:"GET",responseType:"arraybuffer",success:function(t){var i=wx.arrayBufferToBase64(t.data);i="data:image/jpeg;base64,"+i,e(i)},fail:function(t){e("fail")}})}))},posterSuccess:function(){uni.hideLoading()},createPoster:function(t){var e=this;return(0,a.default)((0,o.default)().mark((function t(){var i,n,a;return(0,o.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=e,n="",uni.showLoading({title:"海报渲染中"}),!(i.info.poster_bg_img_path.indexOf("https")<0)){t.next=9;break}return t.next=6,i.getdownload(i.info.poster_bg_img_path.replace("http:","https:"));case 6:n=t.sent,t.next=12;break;case 9:return t.next=11,i.getdownload(i.info.poster_bg_img_path);case 11:n=t.sent;case 12:if("fail"!=n){t.next=16;break}return uni.hideLoading(),uni.showToast({title:"生成失败",icon:"none"}),t.abrupt("return");case 16:a=e.info.poster_bg_width/uni.$u.sys().windowWidth,e.posterObj={width:e.info.poster_bg_width/a+"px",height:e.info.poster_bg_height/a+"px",background:"#fff",borderRadius:"16rpx",views:[{src:n,type:"image",css:{width:e.info.poster_bg_width/a+"px",height:e.info.poster_bg_height/a+"px"}},{type:"view",css:{left:e.info.poster_qrcode_x/a+"px",top:e.info.poster_qrcode_y/a+"px",position:"fixed"},views:[{type:"qrcode",text:e.qrcode,css:{width:e.info.poster_qrcode_width/a+"px",height:e.info.poster_qrcode_width/a+"px",background:"#fff"}}]}]},e.showPoster=!0;case 18:case"end":return t.stop()}}),t)})))()},toSave:function(){var t=this;uni.showLoading({title:"海报生成中"}),this.$refs.painter.canvasToTempFilePathSync({fileType:"jpg",quality:1,success:function(e){t.showPoster=!1,uni.hideLoading(),uni.showModal({confirmColor:"#26B3A0",confirmText:"查看图片",title:"提示",content:"查看图片后长按图片即可保存或分享",success:function(t){t.confirm?uni.previewImage({urls:[e.tempFilePath]}):t.cancel&&(this.showPoster=!0)}})}})},getCheck:function(){var t=this,e=this;e.$http("commission.auth").then((function(i){0==i.code?(t.isLoading=!1,uni.setNavigationBarTitle({title:t.appInfo.site_name}),e.money_total=i.data.money_total>0?i.data.money_total:"0.00",e.on_cashout_money=i.data.on_cashout_money>0?i.data.on_cashout_money:"0.00",e.commissionLog[0].createtime=i.data.create_time,0==i.data.status&&1==e.is_examine&&uni.showModal({confirmText:"确定",showCancel:!1,confirmColor:"#5e49c3",content:"分销商申请已提交,等待后台审核通过",title:"提示",success:function(t){t.confirm&&uni.navigateBack()}}),2==i.data.status&&uni.showModal({confirmText:"联系客服",confirmColor:"#5e49c3",content:"已被禁用,有疑问请咨询客服",title:"提示",success:function(t){t.confirm?uni.navigateTo({url:"/pages/user/public/kefu"}):t.cancel&&uni.navigateBack()}})):uni.redirectTo({url:"/pages/user/commission/apply"})}))},commissionapply:function(){var t=this;t.$http("commission.apply").then((function(e){0==e.code?(uni.showToast({title:"申请成功"}),t.getCheck()):uni.showModal({confirmText:"重新申请",confirmColor:"#5e49c3",content:"合伙人申请失败",title:"提示",success:function(e){e.confirm?t.commissionapply():e.cancel&&uni.navigateBack()}})}))},getInviteList:function(){var t=this,e=this;e.$api("distribution.ulist",{uid:this.userInfo.id,type:this.navbar[this.currentTab].type}).then((function(i){if(i.data.length>0)if(e.team.length>0){var n=t.team;t.team=n.concat(i.data),t.pages++}else t.team=i.data,t.pages++}))},jump:function(t){uni.navigateTo({url:t})},change:function(t){this.currentTab=t,this.team=[],this.pages=1,this.getInviteList()},toTeam:function(){uni.navigateTo({url:"/pages/user/commission/commission-log"})}},onPullDownRefresh:function(){},onReachBottom:function(){}};e.default=c},"231a":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(i("c7eb")),a=n(i("1da1"));i("99af"),i("b64b"),i("e9c4"),i("d3b7"),i("ac1f"),i("d9e2"),i("d401"),i("5319");var r=i("b9a8"),s=n(i("0cfa")),c=i("8cfe"),h=n(i("a626")),d={name:"lime-painter",mixins:[s.default,(0,r.parent)("painter"),{}],data:function(){return{use2dCanvas:!1,canvasHeight:150,canvasWidth:null,parentWidth:0,inited:!1,progress:0,firstRender:0,done:!1}},computed:{styles:function(){return"".concat(this.size).concat(this.customStyle||"",";")},canvasId:function(){return"l-painter".concat(this._uid||this._.uid)},size:function(){if(this.boardWidth&&this.boardHeight)return"width:".concat(this.boardWidth,"px; height: ").concat(this.boardHeight,"px;")},dpr:function(){return this.pixelRatio||uni.getSystemInfoSync().pixelRatio},boardWidth:function(){var t=this.elements&&this.elements.css||this.elements||this,e=t.width,i=void 0===e?0:e,n=(0,c.toPx)(i||this.width);return n||Math.max(n,(0,c.toPx)(this.canvasWidth))},boardHeight:function(){var t=this.elements&&this.elements.css||this.elements||this,e=t.height,i=void 0===e?0:e,n=(0,c.toPx)(i||this.height);return n||Math.max(n,(0,c.toPx)(this.canvasHeight))},hasBoard:function(){return this.board&&Object.keys(this.board).length},elements:function(){return this.hasBoard?this.board:JSON.parse(JSON.stringify(this.el))}},watch:{},created:function(){var t=uni.getSystemInfoSync();t.SDKVersion,t.version,t.platform},mounted:function(){var t=this;return(0,a.default)((0,o.default)().mark((function e(){return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,c.sleep)(30);case 2:return e.next=4,t.getParentWeith();case 4:t.$nextTick((function(){setTimeout((function(){t.$watch("elements",t.watchRender,{deep:!0,immediate:!0})}),30)}));case 5:case"end":return e.stop()}}),e)})))()},methods:{watchRender:function(t,e){var i=this;return(0,a.default)((0,o.default)().mark((function n(){return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(t&&t.views&&(i.firstRender?i.firstRender:t.views.length)&&Object.keys(t).length&&JSON.stringify(t)!=JSON.stringify(e)){n.next=2;break}return n.abrupt("return");case 2:i.firstRender=1,clearTimeout(i.rendertimer),i.rendertimer=setTimeout((function(){i.render(t)}),i.beforeDelay);case 5:case"end":return n.stop()}}),n)})))()},setFilePath:function(t,e){var i=this;return(0,a.default)((0,o.default)().mark((function n(){var a,r,s,h;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=t,r=e||i,s=r.pathType,h=void 0===s?i.pathType:s,"base64"!=h||(0,c.isBase64)(t)){n.next=8;break}return n.next=5,(0,c.pathToBase64)(t);case 5:a=n.sent,n.next=12;break;case 8:if("url"!=h||!(0,c.isBase64)(t)){n.next=12;break}return n.next=11,(0,c.base64ToPath)(t);case 11:a=n.sent;case 12:return e&&e.isEmit&&i.$emit("success",a),n.abrupt("return",a);case 14:case"end":return n.stop()}}),n)})))()},getSize:function(t){var e=this;return(0,a.default)((0,o.default)().mark((function i(){var n,a,r,s;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.css||t,a=n.width,r=t.css||t,s=r.height,e.size){i.next=12;break}if(!a&&!s){i.next=10;break}return e.canvasWidth=a||e.canvasWidth,e.canvasHeight=s||e.canvasHeight,i.next=8,(0,c.sleep)(30);case 8:i.next=12;break;case 10:return i.next=12,e.getParentWeith();case 12:case"end":return i.stop()}}),i)})))()},canvasToTempFilePathSync:function(t){var e=this;this.stopWatch=this.$watch("done",(function(i){i&&(e.canvasToTempFilePath(t),e.stopWatch&&e.stopWatch())}),{immediate:!0})},getParentWeith:function(){var t=this;return new Promise((function(e){uni.createSelectorQuery().in(t).select(".lime-painter").boundingClientRect().exec((function(i){var n=i[0]||{},o=n.width,a=n.height;t.parentWidth=Math.ceil(o||0),t.canvasWidth=t.parentWidth||300,t.canvasHeight=a||t.canvasHeight||150,e(i[0])}))}))},render:function(){var t=arguments,e=this;return(0,a.default)((0,o.default)().mark((function i(){var n,a,r,s,d,u,l,f,g,p,m,v,b,w;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.length>0&&void 0!==t[0]?t[0]:{},Object.keys(n).length){i.next=3;break}return i.abrupt("return",console.error("空对象"));case 3:return e.progress=0,e.done=!1,i.next=7,e.getSize(n);case 7:return i.next=9,e.getContext();case 9:if(a=i.sent,r=e.use2dCanvas,s=e.boardWidth,d=e.boardHeight,u=e.canvas,l=e.afterDelay,!r||u){i.next=13;break}return i.abrupt("return",Promise.reject(new Error("render: fail canvas has not been created")));case 13:return e.boundary={top:0,left:0,width:s,height:d},e.painter=null,e.painter||(f=n.css||n,g=f.width,p=n.css||n,p.height,!g&&e.parentWidth&&Object.assign(n,{width:e.parentWidth}),m={context:a,canvas:u,width:s,height:d,pixelRatio:e.dpr,useCORS:e.useCORS,createImage:c.getImageInfo.bind(e),listen:{onProgress:function(t){e.progress=t,e.$emit("progress",t)},onEffectFail:function(t){e.$emit("faill",t)}}},e.painter=new h.default(m)),i.next=18,e.painter.source(JSON.parse(JSON.stringify(n)));case 18:return v=i.sent,b=v.width,w=v.height,e.boundary.height=e.canvasHeight=w,e.boundary.width=e.canvasWidth=b,i.next=25,(0,c.sleep)(e.sleep);case 25:return e.painter.setContext(e.ctx),i.next=28,e.painter.render();case 28:return i.next=30,new Promise((function(t){return e.$nextTick(t)}));case 30:if(r){i.next=33;break}return i.next=33,e.canvasDraw();case 33:if(!l||!r){i.next=36;break}return i.next=36,(0,c.sleep)(l);case 36:return e.$emit("done"),e.done=!0,e.isCanvasToTempFilePath&&e.canvasToTempFilePath().then((function(t){e.$emit("success",t.tempFilePath)})).catch((function(t){e.$emit("fail",new Error(JSON.stringify(t)))})),i.abrupt("return",Promise.resolve({ctx:a,draw:e.painter,node:e.node}));case 40:case"end":return i.stop()}}),i)})))()},canvasDraw:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return new Promise((function(i,n){return t.ctx.draw(e,(function(){return setTimeout((function(){return i()}),t.afterDelay)}))}))},getContext:function(){var t=this;return(0,a.default)((0,o.default)().mark((function e(){var i,n,a;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t.canvasWidth){e.next=4;break}return t.$emit("fail","painter no size"),console.error("painter no size: 请给画板或父级设置尺寸"),e.abrupt("return",Promise.reject());case 4:if(!t.ctx||!t.inited){e.next=6;break}return e.abrupt("return",Promise.resolve(t.ctx));case 6:if(i=t.type,n=t.use2dCanvas,t.dpr,t.boardWidth,t.boardHeight,a=function(){return new Promise((function(e){uni.createSelectorQuery().in(t).select("#".concat(t.canvasId)).boundingClientRect().exec((function(i){if(i){var n=uni.createCanvasContext(t.canvasId,t);t.inited||(t.inited=!0,t.use2dCanvas=!1,t.canvas=i),t.ctx=n,e(t.ctx)}}))}))},n){e.next=10;break}return e.abrupt("return",a());case 10:return e.abrupt("return",new Promise((function(e){uni.createSelectorQuery().in(t).select("#".concat(t.canvasId)).node().exec((function(n){var o=n[0].node;o||(t.use2dCanvas=!1,e(t.getContext()));var a=o.getContext(i);t.inited||(t.inited=!0,t.use2dCanvas=!0,t.canvas=o),t.ctx=a,e(t.ctx)}))})));case 11:case"end":return e.stop()}}),e)})))()},canvasToTempFilePath:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(){var i=(0,a.default)((0,o.default)().mark((function i(n,r){var s,c,h,d,u,l,f,g,p,m,v,b,w,x,y,S,k;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(s=t.use2dCanvas,c=t.canvasId,h=t.dpr,d=t.fileType,u=t.quality,l=function(){var e=(0,a.default)((0,o.default)().mark((function e(i){var a;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.setFilePath(i.tempFilePath||i);case 3:a=e.sent,n(Object.assign(i,{tempFilePath:a})),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),t.$emit("fail",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),f=t.boundary||t,g=f.top,p=void 0===g?0:g,m=f.left,v=void 0===m?0:m,b=f.width,w=f.height,x=b*h,y=w*h,S=Object.assign({x:v,y:p,width:b,height:w,destWidth:x,destHeight:y,canvasId:c,fileType:d,quality:u,success:l,fail:r},e),!s){i.next=22;break}return i.prev=7,e.pathType||t.pathType||(e.pathType="url"),i.next=11,t.setFilePath(t.canvas.toDataURL("image/".concat(e.fileType||d).replace(/pg/,"peg"),e.quality||u),e);case 11:k=i.sent,e.success&&e.success({tempFilePath:k}),n({tempFilePath:k}),i.next=20;break;case 16:i.prev=16,i.t0=i["catch"](7),e.fail&&e.fail(i.t0),r(i.t0);case 20:i.next=23;break;case 22:uni.canvasToTempFilePath(S,t);case 23:case"end":return i.stop()}}),i,null,[[7,16]])})));return function(t,e){return i.apply(this,arguments)}}())}}};e.default=d},2967:function(t,e,i){"use strict";i.r(e);var n=i("130c"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"364d":function(t,e,i){"use strict";i.r(e);var n=i("231a"),o=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},4019:function(t,e,i){"use strict";i.r(e);var n=i("1255"),o=i("2967");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("b9fa");var r=i("f0c5"),s=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"6e6cae6e",null,!1,n["a"],void 0);e["default"]=s.exports},7275:function(t,e,i){"use strict";i.r(e);var n=i("8b7f"),o=i("364d");for(var a in o)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return o[t]}))}(a);i("970f");var r=i("f0c5"),s=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"0fba428e",null,!1,n["a"],void 0);e["default"]=s.exports},"8b7f":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{ref:"limepainter",staticClass:"lime-painter"},[t.canvasId&&t.size?i("v-uni-view",{style:t.styles},[t.use2dCanvas?i("v-uni-canvas",{staticClass:"lime-painter__canvas",style:t.size,attrs:{id:t.canvasId,type:"2d"}}):i("v-uni-canvas",{staticClass:"lime-painter__canvas",style:t.size,attrs:{"canvas-id":t.canvasId,id:t.canvasId,width:t.boardWidth*t.dpr,height:t.boardHeight*t.dpr}})],1):t._e(),t._t("default")],2)},o=[]},"8cfe":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.base64ToPath=function(t){var e=/^data:image\/(\w+);base64,/.exec(t)||[],i=(0,s.default)(e,2);i[1];return new Promise((function(e,i){for(var n=t.split(",")[0].split(":")[1].split(";")[0],o=atob(t.split(",")[1]),a=new ArrayBuffer(o.length),r=new Uint8Array(a),s=0;s<o.length;s++)r[s]=o.charCodeAt(s);e(URL.createObjectURL(new Blob([r],{type:n})))}))},e.compareVersion=function(t,e){t=t.split("."),e=e.split(".");var i=Math.max(t.length,e.length);while(t.length<i)t.push("0");while(e.length<i)e.push("0");for(var n=0;n<i;n++){var o=parseInt(t[n],10),a=parseInt(e[n],10);if(o>a)return 1;if(o<a)return-1}return 0},e.downloadFile=function(t){return t?new Promise((function(e,i){if(h[t])return i();h[t]=1,uni.downloadFile({url:t,success:function(t){e(t)},fail:function(t){i(t)}})})):Promise.reject({err:"no url"})},e.getImageInfo=function(t,e){var i=this;return new Promise(function(){var n=(0,r.default)((0,o.default)().mark((function n(r,s){var d;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(d=t,!h[t]||!h[t].errMsg){n.next=5;break}r(h[t]),n.next=16;break;case 5:if(n.prev=5,!e){n.next=10;break}return n.next=9,u(t);case 9:d=n.sent;case 10:n.next=15;break;case 12:n.prev=12,n.t0=n["catch"](5),s((0,a.default)((0,a.default)({},n.t0),{},{src:d}));case 15:uni.getImageInfo({src:d,success:function(e){if(e.path=e.path.replace(/^\./,window.location.origin),i.canvas.createImage){var n=i.canvas.createImage();n.src=e.path,n.onload=function(){e.path=n,h[t]=e,r(h[t])},n.onerror=function(e){s({err:e,path:t})}}else c?r(e):(h[t]=e,r(h[t]))},fail:function(e){console.error({err:e,path:t}),s({err:e,path:t})}});case 16:case"end":return n.stop()}}),n,null,[[5,12]])})));return function(t,e){return n.apply(this,arguments)}}())},e.isBase64=void 0,e.isNumber=d,e.networkReg=void 0,e.pathToBase64=u,e.sleep=function(t){return new Promise((function(e){return setTimeout(e,t)}))},e.toPx=function t(e,i){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("number"===typeof e)return e;if(d(e))return 1*e;if("string"===typeof e){var o=/^-?([0-9]+)?([.]{1}[0-9]+){0,1}(em|rpx|px|%)$/g,a=o.exec(e);if(!e||!a)return 0;var r=a[3];e=parseFloat(e);var s=0;return"rpx"===r?s=uni.upx2px(e):"px"===r?s=1*e:"%"===r?s=e*t(i)/100:"em"===r&&(s=e*t(i||14)),n?1*s.toFixed(2):Math.round(s)}return 0};var o=n(i("c7eb")),a=n(i("5530")),r=n(i("1da1")),s=n(i("3835"));i("ac1f"),i("00b4"),i("d3b7"),i("caad"),i("acd8"),i("14d9"),i("e25e"),i("c19f"),i("ace4"),i("c975"),i("5cc6"),i("907a"),i("9a8c"),i("a975"),i("735e"),i("c1ac"),i("d139"),i("3a7b"),i("986a"),i("1d02"),i("d5d6"),i("82f8"),i("e91f"),i("60bd"),i("5f96"),i("3280"),i("3fcc"),i("ca91"),i("25a1"),i("cd26"),i("3c5d"),i("2954"),i("649e"),i("219c"),i("b39a"),i("72f7"),i("5319"),i("d401"),i("81b2"),i("0eb6"),i("b7ef"),i("8bd4"),i("3ca3"),i("ddb0"),i("2b3d"),i("9861");e.networkReg=/^(http|\/\/)/;e.isBase64=function(t){return/^data:image\/(\w+);base64/.test(t)};var c=["devtools"].includes(uni.getSystemInfoSync().platform),h={};function d(t){return/^-?\d+(\.\d+)?$/.test(t)}function u(t){return/^data:/.test(t)?t:new Promise((function(e,i){var n=new Image;n.setAttribute("crossOrigin","Anonymous"),n.onload=function(){var t=document.createElement("canvas");t.width=this.naturalWidth,t.height=this.naturalHeight,t.getContext("2d").drawImage(n,0,0);var i=t.toDataURL("image/png");e(i),t.height=t.width=0},n.src=t+"?v="+Math.random(),n.onerror=function(t){i(t)}}))}},"970f":function(t,e,i){"use strict";var n=i("f148"),o=i.n(n);o.a},a626:function(t,e,i){"use strict";var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Painter=void 0;var o=n(i("53ca"));i("d3b7"),i("a4d3"),i("e01a"),i("d28b"),i("3ca3"),i("ddb0"),i("d9e2"),i("d401"),i("14d9"),i("ac1f"),i("00b4"),i("acd8"),i("2ca0"),i("466d"),i("c975"),i("498a"),i("baa5"),i("7a82"),i("131a"),i("fb6a"),i("a630"),i("caad"),i("2532"),i("4e82"),i("159b"),i("13d5"),i("b64b"),i("d81d"),i("7db0"),i("5319"),i("99af"),i("4ec9"),i("cb29"),i("4de4"),i("e9c4"),i("07ac");var a=function(){return a=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},a.apply(this,arguments)};function r(t,e,i,n){return new(i||(i=Promise))((function(o,a){function r(t){try{c(n.next(t))}catch(t){a(t)}}function s(t){try{c(n.throw(t))}catch(t){a(t)}}function c(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,s)}c((n=n.apply(t,e||[])).next())}))}function s(t,e){var i,n,o,a,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=2&a[0]?n.return:a[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,a[1])).done)return o;switch(n=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,n=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!((o=o.length>0&&o[o.length-1])||6!==a[0]&&2!==a[0])){r=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){r.label=a[1];break}if(6===a[0]&&r.label<o[1]){r.label=o[1],o=a;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(a);break}o[2]&&r.ops.pop(),r.trys.pop();continue}a=e.call(t,r)}catch(t){a=[6,t],n=0}finally{i=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}var c={MP_WEIXIN:"mp-weixin",MP_QQ:"mp-qq",MP_ALIPAY:"mp-alipay",MP_BAIDU:"mp-baidu",MP_TOUTIAO:"mp-toutiao",MP_DINGDING:"mp-dingding",H5:"h5",WEB:"web",PLUS:"plus"},h=["contentSize","clientSize","borderSize","offsetSize"],d="view",u="text",l="image",f="qrcode",g="block",p={display:g,color:"#000000",lineHeight:"1.4em",fontSize:14,fontWeight:400,fontFamily:"sans-serif",lineCap:"butt",flexDirection:"row",flexWrap:"nowrap",textAlign:"left",alignItems:"flex-start",justifyContent:"flex-start",position:"static",transformOrigin:"center center"},m={upx2px:function(t){return window.innerWidth/750*t},getSystemInfoSync:function(){return{screenWidth:window.innerWidth}},getImageInfo:function(t){var e=t.src,i=t.success,n=t.fail,o=new Image;o.onload=function(){i({width:o.naturalWidth,height:o.naturalHeight,path:o.src,src:e})},o.onerror=n,o.src=e}},v="object"==("undefined"===typeof window?"undefined":(0,o.default)(window))?"undefined"==typeof uni||"undefined"!=typeof uni&&!uni.addInterceptor?c.WEB:c.H5:"object"==("undefined"===typeof swan?"undefined":(0,o.default)(swan))?c.MP_BAIDU:"object"==("undefined"===typeof tt?"undefined":(0,o.default)(tt))?c.MP_TOUTIAO:"object"==("undefined"===typeof plus?"undefined":(0,o.default)(plus))?c.PLUS:"object"==("undefined"===typeof wx?"undefined":(0,o.default)(wx))?c.MP_WEIXIN:void 0,b=v==c.MP_WEIXIN?wx:"undefined"!=typeof uni?uni.getImageInfo?{upx2px:function(t){return uni.upx2px(t)},getSystemInfoSync:function(){return uni.getSystemInfoSync()},getImageInfo:function(t){return uni.getImageInfo(t)},downloadFile:function(t){return uni.downloadFile(t)}}:Object.assign(uni,m):"undefined"!=typeof window?m:uni;if(!b.upx2px){var w=((b.getSystemInfoSync&&uni.getSystemInfoSync()).screenWidth||375)/750;b.upx2px=function(t){return w*t}}function x(t){return/^-?\d+(\.\d+)?$/.test(t)}function y(t,e,i){if("number"==typeof t)return t;if(x(t))return 1*t;if("string"==typeof t){var n=/^-?([0-9]+)?([.]{1}[0-9]+){0,1}(em|rpx|px|%)$/g.exec(t);if(!t||!n)return 0;var o=n[3];t=parseFloat(t);var a=0;return"rpx"===o?a=b.upx2px(t):"px"===o?a=1*t:"%"===o&&e?a=t*y(e)/100:"em"===o&&e&&(a=t*y(e||14)),1*a.toFixed(2)}return 0}function S(t){return/%$/.test(t)}function k(t){for(var e=[],i=[],n=0,o=t.substring(0,t.length-1).split("%,");n<o.length;n++){var a=o[n];e.push(a.substring(0,a.lastIndexOf(" ")).trim()),i.push(a.substring(a.lastIndexOf(" "),a.length)/100)}return{colors:e,percents:i}}function _(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function z(){return z=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},z.apply(this,arguments)}function P(t,e){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P(t,e)}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function I(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return C(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?C(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var n=0;return function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function M(t){return"number"==typeof t}function T(t){return"auto"===t||null===t}function B(t){return/%$/.test(t)}var O,R=0,W=function(){function t(){_(this,"elements",[]),_(this,"afterElements",[]),_(this,"beforeElements",[]),_(this,"ids",[]),_(this,"width",0),_(this,"height",0),_(this,"top",0),_(this,"left",0),_(this,"pre",null),_(this,"offsetX",0),_(this,"offsetY",0),R++,this.id=R}var e=t.prototype;return e.fixedBind=function(t,e){void 0===e&&(e=0),this.container=e?t.parent:t.root,this.container.fixedLine=this,this.fixedAdd(t)},e.fixedAdd=function(t){this.elements.push(t);var e=t.computedStyle.zIndex;(void 0===e?0:e)>=0?this.afterElements.push(t):this.beforeElements.push(t),this.refreshLayout()},e.bind=function(t){this.container=t.parent,this.container.line=null,this.container.lines?(this.container.lines.push(this),this.pre=this.getPreLine(),this.top=this.pre.top+this.pre.height,this.left=this.container.contentSize.left):(this.top=this.container.contentSize.top,this.left=this.container.contentSize.left,this.container.lines=[this]),this.isInline=t.isInline(),this.container.line=this,this.outerWidth=t.parent&&t.parent.contentSize.width?t.parent.contentSize.width:1/0,this.add(t)},e.getPreLine=function(){return this.container.lines[this.container.lines.length-2]},e.canIEnter=function(t){return this.outerWidth||t.parent&&t.parent.contentSize.width,!((100*t.offsetSize.width+100*this.width)/100>this.outerWidth)||(this.closeLine(),!1)},e.closeLine=function(){delete this.container.line},e.add=function(t){this.ids.includes(t.id)||(this.ids.push(t.id),this.elements.push(t),this.refreshWidthHeight(t))},e.refreshWidthHeight=function(t){t.offsetSize.height>this.height&&(this.height=t.offsetSize.height),this.width+=t.offsetSize.width||0,(this.container.lineMaxWidth||0)<this.width&&(this.container.lineMaxWidth=this.width)},e.refreshXAlign=function(){if(this.isInline){var t=this.container.contentSize.width-this.width,e=this.container.style.textAlign;"center"===e?t/=2:"left"===e&&(t=0),this.offsetX=t}},e.getOffsetY=function(t){if(!t||!t.style)return 0;var e=(t.style||{}).verticalAlign;return"bottom"===e?this.height-t.contentSize.height:"middle"===e?(this.height-t.contentSize.height)/2:0},e.layout=function(t,e){for(var i in this.refreshXAlign(),this.pre?(this.top=this.pre.top+this.pre.height+this.offsetY,this.left=e+this.offsetX):(this.top=Math.max(this.top,this.container.contentSize.top,t)+this.offsetY,this.left=Math.max(this.left,this.container.contentSize.left,e)+this.offsetX),this.elements){var n=this.elements[i],o=this.elements[i-1],a=this.getOffsetY(n);n.style.top=this.top+a,n.style.left=o?o.offsetSize.left+o.offsetSize.width:this.left,n.getBoxPosition2()}},e.refreshLayout=function(){this.afterElements=this.afterElements.sort((function(t,e){return t.computedStyle.zIndex-e.computedStyle.zIndex})),this.beforeElements=this.beforeElements.sort((function(t,e){return t.computedStyle.zIndex-e.computedStyle.zIndex}))},t}(),L=((O={})["row"]={width:"width",contentWidth:"width",x:"x",y:"y",contentX:"left",height:"height",contentHeight:"height",marginLeft:"marginLeft"},O["column"]={width:"height",contentWidth:"height",x:"y",y:"x",contentX:"top",height:"width",contentHeight:"width",marginLeft:"marginTop"},O),j=function(t){var e,i;function n(){var e;return _(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(e=t.call(this)||this),"outerWidth",0),e.exactValue=0,e.flexTotal=0,e.key=null,e}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,P(e,i);var o=n.prototype;return o.bind=function(t){console.warn("[painter] flex-box 功能未完善谨慎使用"),this.container=t.parent,this.container.line=this,this.container.lines?(this.container.lines.push(this),this.pre=this.getPreLine(),this.top=this.pre.top+this.pre.height,this.left=this.container.contentSize.left):(this.top=this.container.contentSize.top,this.left=this.container.contentSize.left,this.container.lines=[this]),t.parent&&(this.key=L[t.parent.style.flexDirection]),this.initHeight(t),this.outerWidth=t.parent&&t.parent.contentSize[this.key.contentWidth]?t.parent.contentSize[this.key.contentWidth]:1/0,this.add(t)},o.add=function(t){this.ids.push(t.id),M(t.style.flex)?this.flexTotal+=t.style.flex:M(t.style[this.key.width])&&(this.exactValue+=t.contentSize[this.key.width]),this.elements.push(t),this.refreshWidthHeight(t),t.next||this.closeLine()},o.closeLine=function(){this.calcFlex()},o.initHeight=function(t){this[this.key.height]=0},o.calcFlex=function(){var t=this,e=this.container.contentSize[this.key.contentWidth];this.elements.forEach((function(i){var n=i.style.width||0;M(i.style.flex)&&(n=i.style.flex/t.flexTotal*(e-t.exactValue)),i.computedStyle[t.key.width]=n,delete i.line,delete i.lines,delete i.lineMaxWidth,i.getBoxWidthHeight()}))},o.refreshWidthHeight=function(t){this.container.style.alignItems&&!t.style.alignSelf&&(t.style.alignSelf=this.container.style.alignItems),t.contentSize[this.key.height]>this[this.key.height]&&(this[this.key.height]=t.offsetSize[this.key.height]),this[this.key.width]+=t.offsetSize[this.key.width];var e=Math.min(this[this.key.width],this.container.contentSize[this.key.width]);(this.container.lineMaxWidth||0)<e&&(this.container.lineMaxWidth=e)},o.refreshXAlign=function(){var t=this,e=this.elements.reduce((function(e,i){return e+i.offsetSize[t.key.width]}),0),i=this.outerWidth==1/0?0:this.outerWidth-Math.max(this[this.key.width],e),n=this.container.style.justifyContent;"center"===n?i/=2:"flex-start"===n?i=0:["space-between","space-around"].includes(n)&&(function(e,i){void 0===i&&(i=0),i/=t.elements.length+(e?-1:1),t.elements.forEach((function(n,o){var a;e&&!o||(n.style.margin?n.style.margin[t.key.marginLeft]+=i:n.style.margin=((a={})[t.key.marginLeft]=i,a))})),i=0}("space-between"==n,i),i=0),this.offsetX=i||0,this.refreshYAlign()},o.refreshYAlign=function(){if(1==this.container.lines.length)return 0;var t=this.container.lines.reduce((function(t,e){return t+e.height}),0);if("center"===this.container.style.alignItems){var e=(this.container.contentSize[this.key.contentHeight]-t)/(this.container.lines.length+1);this.container.lines.forEach((function(t){t.offsetY=e}))}if("flex-end"===this.container.style.alignItems){var i=this.container.contentSize[this.key.contentHeight]-t;this.container.lines[0].offsetY=i}},o.getOffsetY=function(t){return this.container.lines.length>1?0:"flex-end"===t.style.alignSelf?this.container.contentSize[this.key.contentHeight]-t.contentSize[this.key.height]:"center"===t.style.alignSelf?(this.container.contentSize[this.key.contentHeight]-t.contentSize[this.key.height])/2:0},n}(W),F=l,A=u,$=d,E=f,H="inline-block",N="flex",D="absolute",U="fixed",Y=0,q={left:null,top:null,width:null,height:null},X=function(){function t(t,e,i,n){var o=this;_(this,"id",Y++),_(this,"style",{left:null,top:null,width:null,height:null}),_(this,"computedStyle",{}),_(this,"originStyle",{}),_(this,"children",{}),_(this,"layoutBox",z({},q)),_(this,"contentSize",z({},q)),_(this,"clientSize",z({},q)),_(this,"borderSize",z({},q)),_(this,"offsetSize",z({},q)),this.ctx=n,this.root=i,e&&(this.parent=e),this.name=t.name||t.type,this.attributes=this.getAttributes(t);var a=this.getComputedStyle(t,e&&e.computedStyle);this.isAbsolute=a.position==D,this.isFixed=a.position==U,this.originStyle=a,Object.keys(a).forEach((function(t){Object.defineProperty(o.style,t,{configurable:!0,enumerable:!0,get:function(){return a[t]},set:function(e){a[t]=e}})}));var r={contentSize:z({},this.contentSize),clientSize:z({},this.clientSize),borderSize:z({},this.borderSize),offsetSize:z({},this.offsetSize)};Object.keys(r).forEach((function(t){Object.keys(o[t]).forEach((function(e){Object.defineProperty(o[t],e,{configurable:!0,enumerable:!0,get:function(){return r[t][e]},set:function(i){r[t][e]=i}})}))})),this.computedStyle=this.style}var e=t.prototype;return e.add=function(t){t.parent=this,this.children[t.id]=t},e.getChildren=function(){var t=this;return Object.keys(this.children).map((function(e){return t.children[e]}))},e.getLineRect=function(t,e){var i=e?e.lines:this.parent&&this.parent.lines;return i&&i.find((function(e){return e.ids.includes(t)}))||{width:0,height:0}},e.getComputedStyle=function(t,e){var i=["color","fontSize","lineHeight","verticalAlign","fontWeight","textAlign"],n=t.css,a=void 0===n?{}:n,r=t.type,s=void 0===r?$:r,c=z({},p);if([A,F,E].includes(s)&&!a.display&&(c.display=H),e)for(var h=0;h<i.length;h++){var d=i[h];(a[d]||e[d])&&(a[d]=a[d]||e[d])}for(var u=function(){var t=f[l],e=a[t];if(/-/.test(t)&&(t=t.replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()})),c.key=e),/^(box|text)?shadow$/i.test(t)){var i=[];return e.replace(/((\d+(rpx|px)?\s+?){3})(.+)/,(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];i=e[1].match(/\d+(rpx|px)?/g).map((function(t){return y(t)})).concat(e[4])})),/^text/.test(t)?c.textShadow=i:c.boxShadow=i,"continue"}if(/^border/i.test(t)&&!/radius$/i.test(t)){var n,r=t.match(/^border([BTRLa-z]+)?/)[0],h=t.match(/[W|S|C][a-z]+/),d=e.replace(/([\(,])\s+|\s+([\),])/g,"$1$2").split(" ").map((function(t){return/^\d/.test(t)?y(t,""):t}));return c[r]=((n={})[r+"Width"]=x(d[0])?d[0]:0,n[r+"Style"]=d[1]||"solid",n[r+"Color"]=d[2]||"black",n),1==d.length&&h&&(c[r][r+h[0]]=d[0]),"continue"}if(/^background(color)?$/i.test(t))return c.backgroundColor=e,"continue";if(/^objectPosition$/i.test(t))return c[t]=e.split(" "),"continue";if(/padding|margin|radius/i.test(t)){var u=/radius$/i.test(t),g=u?"borderRadius":t.match(/[a-z]+/)[0],p=[0,0,0,0].map((function(t,e){return u?["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"][e]:[g+"Top",g+"Right",g+"Bottom",g+"Left"][e]})),m="margin";if("padding"===t||t===m||/^(border)?radius$/i.test(t)){var v,b=(""+e).split(" ").map((function(e){return/^\d+(rpx|px)?$/.test(e)?y(e):t!=m&&/auto/.test(e)?0:e}),[])||[0],w=u?"borderRadius":t,S=b[0],k=b[1],_=b[2],z=b[3];c[w]=((v={})[p[0]]=T(S)?0:S,v[p[1]]=x(k)||T(k)?k:S,v[p[2]]=T(x(_)?_:S)?0:x(_)?_:S,v[p[3]]=x(z)?z:k||S,v)}else{var P;"object"==(0,o.default)(c[g])||(c[g]=((P={})[p[0]]=c[g]||0,P[p[1]]=c[g]||0,P[p[2]]=c[g]||0,P[p[3]]=c[g]||0,P)),c[g][t]=g==m&&T(e)||B(e)?e:y(e)}return"continue"}if(/^transform$/i.test(t))return c[t]={},e.replace(/([a-zA-Z]+)\(([0-9,-\.%rpxdeg\s]+)\)/g,(function(e,i,n){var o=n.split(",").map((function(t){return t.replace(/(^\s*)|(\s*$)/g,"")})),r=function(t,e){return t.includes("deg")?1*t:e&&!B(e)?y(t,e):t};i.includes("matrix")?c[t][i]=o.map((function(t){return 1*t})):i.includes("rotate")?c[t][i]=1*n.match(/^-?\d+(\.\d+)?/)[0]:/[X, Y]/.test(i)?c[t][i]=/[X]/.test(i)?r(o[0],a.width):r(o[0],a.height):(c[t][i+"X"]=r(o[0],a.width),c[t][i+"Y"]=r(o[1]||o[0],a.height))})),"continue";/^font$/i.test(t)&&console.warn("font 不支持简写"),/^left|top$/i.test(t)&&![D,U].includes(a.position)?c[t]=0:c[t]=/^[\d\.]+(px|rpx)?$/.test(e)?y(e):/em$/.test(e)&&s==A?y(e,a.fontSize):e},l=0,f=Object.keys(a);l<f.length;l++)u();return c},e.setPosition=function(t,e){var i={left:"width",top:"height",right:"width",bottom:"height"};Object.keys(i).forEach((function(n){var o="right"==n?"left":"top";["right","bottom"].includes(n)&&void 0!==t.style[n]&&"number"!=typeof t.originStyle[o]?t.style[o]=e[i[n]]-t.offsetSize[i[n]]-y(t.style[n],e[i[n]]):t.style[n]=y(t.style[n],e[i[n]])}))},e.getAttributes=function(t){var e=t.attributes||{};return(t.url||t.src)&&(e.src=e.src||t.url||t.src),t.replace&&(e.replace=t.replace),t.text&&(e.text=t.text),e},e.getOffsetSize=function(t,e,i){void 0===i&&(i=h[3]);var n=e||{},o=n.margin,a=(o=void 0===o?{}:o).marginLeft,r=void 0===a?0:a,s=o.marginTop,c=void 0===s?0:s,d=o.marginRight,u=void 0===d?0:d,l=o.marginBottom,f=void 0===l?0:l,g=n.padding,p=(g=void 0===g?{}:g).paddingLeft,m=void 0===p?0:p,v=g.paddingTop,b=void 0===v?0:v,w=g.paddingRight,x=void 0===w?0:w,y=g.paddingBottom,S=void 0===y?0:y,k=n.border,_=(k=void 0===k?{}:k).borderWidth,z=void 0===_?0:_,P=n.borderTop,C=(P=void 0===P?{}:P).borderTopWidth,I=void 0===C?z:C,M=n.borderBottom,T=(M=void 0===M?{}:M).borderBottomWidth,B=void 0===T?z:T,O=n.borderRight,R=(O=void 0===O?{}:O).borderRightWidth,W=void 0===R?z:R,L=n.borderLeft,j=(L=void 0===L?{}:L).borderLeftWidth,F=void 0===j?z:j,A=r<0&&u<0?Math.abs(r+u):0,$=c<0&&f<0?Math.abs(c+f):0,E=r>=0&&u<0,H=c>=0&&f<0;return i==h[0]&&(this[i].left=t.left+r+m+F+(E?2*-u:0),this[i].top=t.top+c+b+I+(H?2*-f:0),this[i].width=t.width+(this[i].widthAdd?0:A),this[i].height=t.height+(this[i].heightAdd?0:$),this[i].widthAdd=A,this[i].heightAdd=$),i==h[1]&&(this[i].left=t.left+r+F+(E<0?-u:0),this[i].top=t.top+c+I+(H?-f:0),this[i].width=t.width+m+x,this[i].height=t.height+b+S),i==h[2]&&(this[i].left=t.left+r+F/2+(E<0?-u:0),this[i].top=t.top+c+I/2+(H?-f:0),this[i].width=t.width+m+x+F/2+W/2,this[i].height=t.height+b+S+B/2+I/2),i==h[3]&&(this[i].left=t.left+(E<0?-u:0),this[i].top=t.top+(H?-f:0),this[i].width=t.width+m+x+F+W+r+u,this[i].height=t.height+b+S+B+I+f+c),this[i]},e.layoutBoxUpdate=function(t,e,i,n){var o=this;if(void 0===i&&(i=-1),"border-box"==e.boxSizing){var a=e||{},r=a.border,s=(r=void 0===r?{}:r).borderWidth,c=void 0===s?0:s,d=a.borderTop,u=(d=void 0===d?{}:d).borderTopWidth,l=void 0===u?c:u,f=a.borderBottom,g=(f=void 0===f?{}:f).borderBottomWidth,p=void 0===g?c:g,m=a.borderRight,v=(m=void 0===m?{}:m).borderRightWidth,b=void 0===v?c:v,w=a.borderLeft,x=(w=void 0===w?{}:w).borderLeftWidth,y=void 0===x?c:x,S=a.padding,k=(S=void 0===S?{}:S).paddingTop,_=void 0===k?0:k,z=S.paddingRight,P=void 0===z?0:z,C=S.paddingBottom,I=void 0===C?0:C,M=S.paddingLeft,T=void 0===M?0:M;i||(t.width-=T+P+b+y),1!==i||n||(t.height-=_+I+l+p)}this.layoutBox&&(h.forEach((function(i){return o.layoutBox[i]=o.getOffsetSize(t,e,i)})),this.layoutBox=Object.assign({},this.layoutBox,this.layoutBox.borderSize))},e.getBoxPosition2=function(){var t=this.computedStyle,e=this.fixedLine,i=this.lines,n=t.left,o=void 0===n?0:n,a=t.top,r=void 0===a?0:a,s=t.padding||{},c=s.paddingBottom,h=void 0===c?0:c,d=s.paddingRight,u=void 0===d?0:d,l=z({},this.contentSize,{left:o,top:r}),f=this.contentSize.top-this.offsetSize.top,g=this.contentSize.left-this.offsetSize.left;if(this.root.fixedLine&&!this.root.isDone){this.root.isDone=!0;for(var p,m=I(this.root.fixedLine.elements);!(p=m()).done;){var v=p.value;v.setPosition(v,this.root.offsetSize),v.getBoxPosition2()}}if(e)for(var b,w=I(e.elements);!(b=w()).done;){var x=b.value;x.setPosition(x,l),x.style.left+=o+g+u,x.style.top+=r+f+h,x.getBoxPosition2()}if(i)for(var y,S=I(i);!(y=S()).done;)y.value.layout(l.top+f,l.left+g);return this.layoutBoxUpdate(l,t),this.layoutBox},e.getBoxState=function(t,e){return this.isBlock(t)||this.isBlock(e)},e.isBlock=function(t){return void 0===t&&(t=this),t&&"block"==t.style.display},e.isFlex=function(t){return void 0===t&&(t=this),t&&t.style.display==N},e.isInFlow=function(){return!(this.isAbsolute||this.isFixed)},e.inFlexBox=function(t){return void 0===t&&(t=this),!!t.isInFlow()&&!!t.parent&&(!(!t.parent||t.parent.style.display!==N)||void 0)},e.isInline=function(t){return void 0===t&&(t=this),t&&t.style.display==H},e.contrastSize=function(t,e,i){var n=t;return i&&(n=Math.min(n,i)),e&&(n=Math.max(n,e)),n},e.measureText=function(t,e){var i=this.ctx.measureText(t),n=i.width,o=i.actualBoundingBoxAscent,a=i.actualBoundingBoxDescent;return{ascent:o,descent:a,width:n,fontHeight:o+a||.7*e+1}},e.getBoxWidthHeight=function(){var t=this,e=this.name,i=this.computedStyle,n=this.attributes,o=this.parent,a=void 0===o?{}:o,r=this.ctx,s=this.getChildren(),c=i.left,h=void 0===c?0:c,d=i.top,u=void 0===d?0:d,l=i.bottom,f=i.right,g=i.width,p=void 0===g?0:g,m=i.minWidth,v=i.maxWidth,b=i.minHeight,w=i.maxHeight,x=i.height,S=void 0===x?0:x,k=i.fontSize,_=void 0===k?14:k,z=i.fontWeight,P=i.fontFamily,C=i.fontStyle,I=i.position,M=i.lineClamp,T=i.lineHeight,O=i.padding,R=void 0===O?{}:O,L=i.margin,E=void 0===L?{}:L,H=i.border,N=(H=void 0===H?{}:H).borderWidth,U=void 0===N?0:N,Y=i.borderRight,q=(Y=void 0===Y?{}:Y).borderRightWidth,X=void 0===q?U:q,J=i.borderLeft,G=(J=void 0===J?{}:J).borderLeftWidth,V=void 0===G?U:G,Q=a.contentSize&&a.contentSize.width,K=a.contentSize&&a.contentSize.height;if(B(p)&&Q&&(p=y(p,Q)),B(p)&&!Q&&(p=null),B(S)&&K&&(S=y(S,K)),B(S)&&!K&&(S=null),B(m)&&Q&&(m=y(m,Q)),B(v)&&Q&&(v=y(v,Q)),B(b)&&K&&(b=y(b,K)),B(w)&&K&&(w=y(w,K)),i.padding&&Q)for(var Z in i.padding)Object.hasOwnProperty.call(i.padding,Z)&&(i.padding[Z]=y(i.padding[Z],Q));var tt=R.paddingRight,et=void 0===tt?0:tt,it=R.paddingLeft,nt=void 0===it?0:it;if(i.margin&&[i.margin.marginLeft,i.margin.marginRight].includes("auto"))if(p){var ot=Q&&Q-p-et-nt-V-X||0;i.margin.marginLeft==i.margin.marginRight?i.margin.marginLeft=i.margin.marginRight=ot/2:"auto"==i.margin.marginLeft?i.margin.marginLeft=ot:i.margin.marginRight=ot}else i.margin.marginLeft=i.margin.marginRight=0;var at=E.marginRight,rt=void 0===at?0:at,st=E.marginLeft,ct={width:p,height:S,left:0,top:0},ht=nt+et+V+X+(void 0===st?0:st)+rt;if(e==A&&!this.attributes.widths){var dt=n.text||"";r.save(),r.setFonts({fontFamily:P,fontSize:_,fontWeight:z,fontStyle:C});var ut=new Map;dt.split("\n").map((function(e){var i=e.split("").map((function(e){var i=ut.get(e);if(i)return i;var n=t.measureText(e,_).width;return ut.set(e,n),n})),n=t.measureText(e,_),o=n.fontHeight,a=n.ascent,r=n.descent;t.attributes.fontHeight=o,t.attributes.ascent=a,t.attributes.descent=r,t.attributes.widths||(t.attributes.widths=[]),t.attributes.widths.push({widths:i,total:i.reduce((function(t,e){return t+e}),0)})})),r.restore()}if(e==F&&null==p){var lt=n.width,ft=n.height;ct.width=this.contrastSize(Math.round(lt*S/ft)||0,m,v),this.layoutBoxUpdate(ct,i,0)}if(e==A&&null==p){var gt=this.attributes.widths,pt=Math.max.apply(Math,gt.map((function(t){return t.total})));a&&Q>0&&(pt>Q||this.isBlock(this))&&!this.isAbsolute&&!this.isFixed&&(pt=Q-ht),ct.width=this.contrastSize(pt,m,v),this.layoutBoxUpdate(ct,i,0)}if(e==A&&(a.style.flex||!this.attributes.lines)){var mt=this.attributes.widths.length;this.attributes.widths.forEach((function(t){return t.widths.reduce((function(t,e,i){return t+e>ct.width?(mt++,e):t+e}),0)})),mt=M&&mt>M?M:mt,this.attributes.lines=mt}if(e==F&&null==S){var vt=n.width,bt=n.height;ct.height=this.contrastSize(y(ct.width*bt/vt)||0,b,w),this.layoutBoxUpdate(ct,i,1)}e==A&&null==S&&(T=y(T,_),ct.height=this.contrastSize(y(this.attributes.lines*T),b,w),this.layoutBoxUpdate(ct,i,1,!0)),a&&a.children&&Q&&([$,A].includes(e)&&this.isFlex()||e==$&&this.isBlock(this)&&this.isInFlow())&&(ct.width=this.contrastSize(Q-ht,m,v),this.layoutBoxUpdate(ct,i)),p&&!B(p)&&(ct.width=this.contrastSize(p,m,v),this.layoutBoxUpdate(ct,i,0)),S&&!B(S)&&(ct.height=this.contrastSize(ct.height,b,w),this.layoutBoxUpdate(ct,i,1));var wt=0;if(s.length){var xt=null;s.forEach((function(e,n){e.getBoxWidthHeight();var o=s[n+1];if(o&&o.isInFlow()&&(e.next=o),e.isInFlow()&&!e.inFlexBox()){var a=t.getBoxState(xt,e);t.line&&t.line.canIEnter(e)&&!a?t.line.add(e):(new W).bind(e),xt=e}else e.inFlexBox()?t.line&&(t.line.canIEnter(e)||"nowrap"==i.flexWrap)?t.line.add(e):(new j).bind(e):e.isFixed?t.root.fixedLine?t.root.fixedLine.fixedAdd(e):(new W).fixedBind(e):t.fixedLine?t.fixedLine.fixedAdd(e):(new W).fixedBind(e,1)})),this.lines&&(wt=this.lines.reduce((function(t,e){return t+e.height}),0))}var yt=0,St=0;if(!p&&(this.isAbsolute||this.isFixed)&&Q){var kt=I==D?Q:this.root.width,_t=kt-(B(h)?y(h,kt):h)-(B(f)?y(f,kt):f);yt=i.left?_t:this.lineMaxWidth}if(!S&&(null!=u?u:this.isAbsolute||this.isFixed&&K)){var zt=I==D?K:this.root.height,Pt=zt-(B(u)?y(u,zt):u)-(B(l)?y(l,zt):l);St=i.top?Pt:0}if(p&&!B(p)||ct.width||(ct.width=yt||this.contrastSize((this.isBlock(this)&&!this.isInFlow()?Q||a.lineMaxWidth:this.lineMaxWidth)||this.lineMaxWidth,m,v),this.layoutBoxUpdate(ct,i,0)),S||!wt&&!St||(ct.height=St||this.contrastSize(wt,b,w),this.layoutBoxUpdate(ct,i)),i.borderRadius&&this.borderSize&&this.borderSize.width)for(var Z in i.borderRadius)Object.hasOwnProperty.call(i.borderRadius,Z)&&(i.borderRadius[Z]=y(i.borderRadius[Z],this.borderSize.width));return this.layoutBox},e.layout=function(){return this.getBoxWidthHeight(),this.root.offsetSize=this.offsetSize,this.getBoxPosition2(),this.offsetSize},t}(),J=function(){var t,e,i,n,o,a,r=[0,11,15,19,23,27,31,16,18,20,22,24,26,28,20,22,24,24,26,28,28,22,24,24,26,26,28,28,24,24,26,26,26,28,28,24,26,26,26,28,28],s=[3220,1468,2713,1235,3062,1890,2119,1549,2344,2936,1117,2583,1330,2470,1667,2249,2028,3780,481,4011,142,3098,831,3445,592,2517,1776,2234,1951,2827,1070,2660,1345,3177],c=[30660,29427,32170,30877,26159,25368,27713,26998,21522,20773,24188,23371,17913,16590,20375,19104,13663,12392,16177,14854,9396,8579,11994,11245,5769,5054,7399,6608,1890,597,3340,2107],h=[1,0,19,7,1,0,16,10,1,0,13,13,1,0,9,17,1,0,34,10,1,0,28,16,1,0,22,22,1,0,16,28,1,0,55,15,1,0,44,26,2,0,17,18,2,0,13,22,1,0,80,20,2,0,32,18,2,0,24,26,4,0,9,16,1,0,108,26,2,0,43,24,2,2,15,18,2,2,11,22,2,0,68,18,4,0,27,16,4,0,19,24,4,0,15,28,2,0,78,20,4,0,31,18,2,4,14,18,4,1,13,26,2,0,97,24,2,2,38,22,4,2,18,22,4,2,14,26,2,0,116,30,3,2,36,22,4,4,16,20,4,4,12,24,2,2,68,18,4,1,43,26,6,2,19,24,6,2,15,28,4,0,81,20,1,4,50,30,4,4,22,28,3,8,12,24,2,2,92,24,6,2,36,22,4,6,20,26,7,4,14,28,4,0,107,26,8,1,37,22,8,4,20,24,12,4,11,22,3,1,115,30,4,5,40,24,11,5,16,20,11,5,12,24,5,1,87,22,5,5,41,24,5,7,24,30,11,7,12,24,5,1,98,24,7,3,45,28,15,2,19,24,3,13,15,30,1,5,107,28,10,1,46,28,1,15,22,28,2,17,14,28,5,1,120,30,9,4,43,26,17,1,22,28,2,19,14,28,3,4,113,28,3,11,44,26,17,4,21,26,9,16,13,26,3,5,107,28,3,13,41,26,15,5,24,30,15,10,15,28,4,4,116,28,17,0,42,26,17,6,22,28,19,6,16,30,2,7,111,28,17,0,46,28,7,16,24,30,34,0,13,24,4,5,121,30,4,14,47,28,11,14,24,30,16,14,15,30,6,4,117,30,6,14,45,28,11,16,24,30,30,2,16,30,8,4,106,26,8,13,47,28,7,22,24,30,22,13,15,30,10,2,114,28,19,4,46,28,28,6,22,28,33,4,16,30,8,4,122,30,22,3,45,28,8,26,23,30,12,28,15,30,3,10,117,30,3,23,45,28,4,31,24,30,11,31,15,30,7,7,116,30,21,7,45,28,1,37,23,30,19,26,15,30,5,10,115,30,19,10,47,28,15,25,24,30,23,25,15,30,13,3,115,30,2,29,46,28,42,1,24,30,23,28,15,30,17,0,115,30,10,23,46,28,10,35,24,30,19,35,15,30,17,1,115,30,14,21,46,28,29,19,24,30,11,46,15,30,13,6,115,30,14,23,46,28,44,7,24,30,59,1,16,30,12,7,121,30,12,26,47,28,39,14,24,30,22,41,15,30,6,14,121,30,6,34,47,28,46,10,24,30,2,64,15,30,17,4,122,30,29,14,46,28,49,10,24,30,24,46,15,30,4,18,122,30,13,32,46,28,48,14,24,30,42,32,15,30,20,4,117,30,40,7,47,28,43,22,24,30,10,67,15,30,19,6,118,30,18,31,47,28,34,34,24,30,20,61,15,30],d=[255,0,1,25,2,50,26,198,3,223,51,238,27,104,199,75,4,100,224,14,52,141,239,129,28,193,105,248,200,8,76,113,5,138,101,47,225,36,15,33,53,147,142,218,240,18,130,69,29,181,194,125,106,39,249,185,201,154,9,120,77,228,114,166,6,191,139,98,102,221,48,253,226,152,37,179,16,145,34,136,54,208,148,206,143,150,219,189,241,210,19,92,131,56,70,64,30,66,182,163,195,72,126,110,107,58,40,84,250,133,186,61,202,94,155,159,10,21,121,43,78,212,229,172,115,243,167,87,7,112,192,247,140,128,99,13,103,74,222,237,49,197,254,24,227,165,153,119,38,184,180,124,17,68,146,217,35,32,137,46,55,63,209,91,149,188,207,205,144,135,151,178,220,252,190,97,242,86,211,171,20,42,93,158,132,60,57,83,71,109,65,162,31,45,67,216,183,123,164,118,196,23,73,236,127,12,111,246,108,161,59,82,41,157,85,170,251,96,134,177,187,204,62,90,203,89,95,176,156,169,160,81,11,245,22,235,122,117,44,215,79,174,213,233,230,231,173,232,116,214,244,234,168,80,88,175],u=[1,2,4,8,16,32,64,128,29,58,116,232,205,135,19,38,76,152,45,90,180,117,234,201,143,3,6,12,24,48,96,192,157,39,78,156,37,74,148,53,106,212,181,119,238,193,159,35,70,140,5,10,20,40,80,160,93,186,105,210,185,111,222,161,95,190,97,194,153,47,94,188,101,202,137,15,30,60,120,240,253,231,211,187,107,214,177,127,254,225,223,163,91,182,113,226,217,175,67,134,17,34,68,136,13,26,52,104,208,189,103,206,129,31,62,124,248,237,199,147,59,118,236,197,151,51,102,204,133,23,46,92,184,109,218,169,79,158,33,66,132,21,42,84,168,77,154,41,82,164,85,170,73,146,57,114,228,213,183,115,230,209,191,99,198,145,63,126,252,229,215,179,123,246,241,255,227,219,171,75,150,49,98,196,149,55,110,220,165,87,174,65,130,25,50,100,200,141,7,14,28,56,112,224,221,167,83,166,81,162,89,178,121,242,249,239,195,155,43,86,172,69,138,9,18,36,72,144,61,122,244,245,247,243,251,235,203,139,11,22,44,88,176,125,250,233,207,131,27,54,108,216,173,71,142,0],l=[],f=[],g=[],p=[],m=[],v=2;function b(t,e){var i;t>e&&(i=t,t=e,e=i),i=e,i*=e,i+=e,i>>=1,p[i+=t]=1}function w(t,i){var n;for(g[t+e*i]=1,n=-2;n<2;n++)g[t+n+e*(i-2)]=1,g[t-2+e*(i+n+1)]=1,g[t+2+e*(i+n)]=1,g[t+n+1+e*(i+2)]=1;for(n=0;n<2;n++)b(t-1,i+n),b(t+1,i-n),b(t-n,i-1),b(t+n,i+1)}function x(t){for(;t>=255;)t=((t-=255)>>8)+(255&t);return t}var y=[];function S(t,e,i,n){var o,a,r;for(o=0;o<n;o++)l[i+o]=0;for(o=0;o<e;o++){if(255!=(r=d[l[t+o]^l[i]]))for(a=1;a<n;a++)l[i+a-1]=l[i+a]^u[x(r+y[n-a])];else for(a=i;a<i+n;a++)l[a]=l[a+1];l[i+n-1]=255==r?0:u[x(r+y[0])]}}function k(t,e){var i;return t>e&&(i=t,t=e,e=i),i=e,i+=e*e,i>>=1,p[i+=t]}function _(t){var i,n,o,a;switch(t){case 0:for(n=0;n<e;n++)for(i=0;i<e;i++)i+n&1||k(i,n)||(g[i+n*e]^=1);break;case 1:for(n=0;n<e;n++)for(i=0;i<e;i++)1&n||k(i,n)||(g[i+n*e]^=1);break;case 2:for(n=0;n<e;n++)for(o=0,i=0;i<e;i++,o++)3==o&&(o=0),o||k(i,n)||(g[i+n*e]^=1);break;case 3:for(a=0,n=0;n<e;n++,a++)for(3==a&&(a=0),o=a,i=0;i<e;i++,o++)3==o&&(o=0),o||k(i,n)||(g[i+n*e]^=1);break;case 4:for(n=0;n<e;n++)for(o=0,a=n>>1&1,i=0;i<e;i++,o++)3==o&&(o=0,a=!a),a||k(i,n)||(g[i+n*e]^=1);break;case 5:for(a=0,n=0;n<e;n++,a++)for(3==a&&(a=0),o=0,i=0;i<e;i++,o++)3==o&&(o=0),(i&n&1)+!(!o|!a)||k(i,n)||(g[i+n*e]^=1);break;case 6:for(a=0,n=0;n<e;n++,a++)for(3==a&&(a=0),o=0,i=0;i<e;i++,o++)3==o&&(o=0),(i&n&1)+(o&&o==a)&1||k(i,n)||(g[i+n*e]^=1);break;case 7:for(a=0,n=0;n<e;n++,a++)for(3==a&&(a=0),o=0,i=0;i<e;i++,o++)3==o&&(o=0),(o&&o==a)+(i+n&1)&1||k(i,n)||(g[i+n*e]^=1)}}function z(t){var e,i=0;for(e=0;e<=t;e++)m[e]>=5&&(i+=3+m[e]-5);for(e=3;e<t-1;e+=2)m[e-2]==m[e+2]&&m[e+2]==m[e-1]&&m[e-1]==m[e+1]&&3*m[e-1]==m[e]&&(0==m[e-3]||e+3>t||3*m[e-3]>=4*m[e]||3*m[e+3]>=4*m[e])&&(i+=40);return i}function P(){var t,i,n,o,a,r=0,s=0;for(i=0;i<e-1;i++)for(t=0;t<e-1;t++)(g[t+e*i]&&g[t+1+e*i]&&g[t+e*(i+1)]&&g[t+1+e*(i+1)]||!(g[t+e*i]||g[t+1+e*i]||g[t+e*(i+1)]||g[t+1+e*(i+1)]))&&(r+=3);for(i=0;i<e;i++){for(m[0]=0,n=o=t=0;t<e;t++)(a=g[t+e*i])==o?m[n]++:m[++n]=1,s+=(o=a)?1:-1;r+=z(n)}s<0&&(s=-s);var c=s,h=0;for(c+=c<<2,c<<=1;c>e*e;)c-=e*e,h++;for(r+=10*h,t=0;t<e;t++){for(m[0]=0,n=o=i=0;i<e;i++)(a=g[t+e*i])==o?m[n]++:m[++n]=1,o=a;r+=z(n)}return r}var C=null;return{api:{get ecclevel(){return v},set ecclevel(t){v=t},get size(){return _size},set size(t){_size=t},get canvas(){return C},set canvas(t){C=t},getFrame:function(m){return function(m){var z,C,I,M,T,B,O,R;M=m.length,t=0;do{if(t++,I=4*(v-1)+16*(t-1),i=h[I++],n=h[I++],o=h[I++],a=h[I],M<=(I=o*(i+n)+n-3+(t<=9)))break}while(t<40);for(e=17+4*t,T=o+(o+a)*(i+n)+n,M=0;M<T;M++)f[M]=0;for(l=m.slice(0),M=0;M<e*e;M++)g[M]=0;for(M=0;M<(e*(e+1)+1)/2;M++)p[M]=0;for(M=0;M<3;M++){for(I=0,C=0,1==M&&(I=e-7),2==M&&(C=e-7),g[C+3+e*(I+3)]=1,z=0;z<6;z++)g[C+z+e*I]=1,g[C+e*(I+z+1)]=1,g[C+6+e*(I+z)]=1,g[C+z+1+e*(I+6)]=1;for(z=1;z<5;z++)b(C+z,I+1),b(C+1,I+z+1),b(C+5,I+z),b(C+z+1,I+5);for(z=2;z<4;z++)g[C+z+e*(I+2)]=1,g[C+2+e*(I+z+1)]=1,g[C+4+e*(I+z)]=1,g[C+z+1+e*(I+4)]=1}if(t>1)for(M=r[t],C=e-7;;){for(z=e-7;z>M-3&&(w(z,C),!(z<M));)z-=M;if(C<=M+9)break;w(6,C-=M),w(C,6)}for(g[8+e*(e-8)]=1,C=0;C<7;C++)b(7,C),b(e-8,C),b(7,C+e-7);for(z=0;z<8;z++)b(z,7),b(z+e-8,7),b(z,e-8);for(z=0;z<9;z++)b(z,8);for(z=0;z<8;z++)b(z+e-8,8),b(8,z);for(C=0;C<7;C++)b(8,C+e-7);for(z=0;z<e-14;z++)1&z?(b(8+z,6),b(6,8+z)):(g[8+z+6*e]=1,g[6+e*(8+z)]=1);if(t>6)for(M=s[t-7],I=17,z=0;z<6;z++)for(C=0;C<3;C++,I--)1&(I>11?t>>I-12:M>>I)?(g[5-z+e*(2-C+e-11)]=1,g[2-C+e-11+e*(5-z)]=1):(b(5-z,2-C+e-11),b(2-C+e-11,5-z));for(C=0;C<e;C++)for(z=0;z<=C;z++)g[z+e*C]&&b(z,C);for(T=l.length,B=0;B<T;B++)f[B]=l.charCodeAt(B);if(l=f.slice(0),T>=(z=o*(i+n)+n)-2&&(T=z-2,t>9&&T--),B=T,t>9){for(l[B+2]=0,l[B+3]=0;B--;)M=l[B],l[B+3]|=255&M<<4,l[B+2]=M>>4;l[2]|=255&T<<4,l[1]=T>>4,l[0]=64|T>>12}else{for(l[B+1]=0,l[B+2]=0;B--;)M=l[B],l[B+2]|=255&M<<4,l[B+1]=M>>4;l[1]|=255&T<<4,l[0]=64|T>>4}for(B=T+3-(t<10);B<z;)l[B++]=236,l[B++]=17;for(y[0]=1,B=0;B<a;B++){for(y[B+1]=1,O=B;O>0;O--)y[O]=y[O]?y[O-1]^u[x(d[y[O]]+B)]:y[O-1];y[0]=u[x(d[y[0]]+B)]}for(B=0;B<=a;B++)y[B]=d[y[B]];for(I=z,C=0,B=0;B<i;B++)S(C,o,I,a),C+=o,I+=a;for(B=0;B<n;B++)S(C,o+1,I,a),C+=o+1,I+=a;for(C=0,B=0;B<o;B++){for(O=0;O<i;O++)f[C++]=l[B+O*o];for(O=0;O<n;O++)f[C++]=l[i*o+B+O*(o+1)]}for(O=0;O<n;O++)f[C++]=l[i*o+B+O*(o+1)];for(B=0;B<a;B++)for(O=0;O<i+n;O++)f[C++]=l[z+B+O*a];for(l=f,z=C=e-1,I=T=1,R=(o+a)*(i+n)+n,B=0;B<R;B++)for(M=l[B],O=0;O<8;O++,M<<=1){128&M&&(g[z+e*C]=1);do{T?z--:(z++,I?0!=C?C--:(I=!I,6==(z-=2)&&(z--,C=9)):C!=e-1?C++:(I=!I,6==(z-=2)&&(z--,C-=8))),T=!T}while(k(z,C))}for(l=g.slice(0),M=0,C=3e4,I=0;I<8&&(_(I),(z=P())<C&&(C=z,M=I),7!=M);I++)g=l.slice(0);for(M!=I&&_(M),C=c[M+(v-1<<3)],I=0;I<8;I++,C>>=1)1&C&&(g[e-1-I+8*e]=1,I<6?g[8+e*I]=1:g[8+e*(I+1)]=1);for(I=0;I<7;I++,C>>=1)1&C&&(g[8+e*(e-7+I)]=1,I?g[6-I+8*e]=1:g[7+8*e]=1);return g}(m)},utf16to8:function(t){var e,i,n,o;for(e="",n=t.length,i=0;i<n;i++)(o=t.charCodeAt(i))>=1&&o<=127?e+=t.charAt(i):o>2047?(e+=String.fromCharCode(224|o>>12&15),e+=String.fromCharCode(128|o>>6&63),e+=String.fromCharCode(128|o>>0&63)):(e+=String.fromCharCode(192|o>>6&31),e+=String.fromCharCode(128|o>>0&63));return e},draw:function(t,i,n,o,a){i.drawView(n,o);var r=i.ctx,s=n.contentSize,c=s.width,h=s.height,d=s.left,u=s.top;o.borderRadius,o.backgroundColor;var l=o.color,f=void 0===l?"#000000":l;if(o.border,n.contentSize.left,n.borderSize.left,n.contentSize.top,n.borderSize.top,v=a||v,r){r.save(),i.setOpacity(o),i.setTransform(n,o);var g=Math.min(c,h);t=this.utf16to8(t);var p=this.getFrame(t),m=g/e;r.setFillStyle(f);for(var b=0;b<e;b++)for(var w=0;w<e;w++)p[w*e+b]&&r.fillRect(d+m*b,u+m*w,m,m);r.restore(),i.setBorder(n,o)}else console.warn("No canvas provided to draw QR code in!")}}}}(),G=u,V=f,Q=d,K="middle",Z=function(){function t(t){var e,i=this;this.v="1.9.3.5",this.id=null,this.pixelRatio=1,this.width=0,this.height=0,this.sleep=1e3/30,this.count=0,this.isRate=!1,this.isDraw=!0,this.isCache=!0,this.fixed="",this.useCORS=!1,this.imageBus=[],this.createImage=function(t,e){return new Promise((function(i,n){if(window){var o=new Image;e&&o.setAttribute("crossOrigin","Anonymous"),o.src=t,o.onload=function(){i({width:o.naturalWidth||o.width,height:o.naturalHeight||o.height,path:o,src:this.src})},o.onerror=function(t){n(t)}}else n({fail:"getImageInfo fail",src:t})}))},this.options=t,Object.assign(this,t),this.ctx=((e=t.context).setFonts=function(t){var i=t.fontFamily,n=void 0===i?"sans-serif":i,o=t.fontSize,a=void 0===o?14:o,r=t.fontWeight,s=void 0===r?"normal":r,h=t.fontStyle,d=void 0===h?"normal":h;v==c.MP_TOUTIAO&&(s="bold"==s?"bold":"",d="italic"==d?"italic":""),e.font="".concat(d," ").concat(s," ").concat(Math.round(a),"px ").concat(n)},e.draw&&e.setFillStyle?e:Object.assign(e,{setStrokeStyle:function(t){e.strokeStyle=t},setLineWidth:function(t){e.lineWidth=t},setLineCap:function(t){e.lineCap=t},setFillStyle:function(t){e.fillStyle=t},setFontSize:function(t){e.font="".concat(String(t),"px sans-serif")},setGlobalAlpha:function(t){e.globalAlpha=t},setLineJoin:function(t){e.lineJoin=t},setTextAlign:function(t){e.textAlign=t},setMiterLimit:function(t){e.miterLimit=t},setShadow:function(t,i,n,o){e.shadowOffsetX=t,e.shadowOffsetY=i,e.shadowBlur=n,e.shadowColor=o},setTextBaseline:function(t){e.textBaseline=t},createCircularGradient:function(){},draw:function(){}})),this.progress=0,this.root={width:t.width,height:t.height,fontSizeRate:1,fixedLine:null},this.size=this.root;var n=0;Object.defineProperty(this,"progress",{configurable:!0,set:function(t){n=t,i.lifecycle("onProgress",t/i.count)},get:function(){return n||0}})}return t.prototype.lifecycle=function(t,e){this.options.listen&&this.options.listen[t]&&this.options.listen[t](e)},t.prototype.setContext=function(t){t&&(this.ctx=t)},t.prototype.init=function(){(this.canvas.height||c.WEB==v)&&(this.canvas.height=this.size.height*this.pixelRatio,this.canvas.width=this.size.width*this.pixelRatio,this.ctx.scale(this.pixelRatio,this.pixelRatio))},t.prototype.clear=function(){this.ctx.clearRect(0,0,this.size.width,this.size.height)},t.prototype.clipPath=function(t,e,i,n,o,a,r){void 0===a&&(a=!1),void 0===r&&(r=!1);var s=this.ctx;if(/polygon/.test(o)){var c=o.match(/-?\d+(rpx|px|%)?\s+-?\d+(rpx|px|%)?/g)||[];s.beginPath(),c.map((function(o){var a=o.split(" "),r=a[0],s=a[1];return[y(r,i)+t,y(s,n)+e]})).forEach((function(t,e){0==e?s.moveTo(t[0],t[1]):s.lineTo(t[0],t[1])})),s.closePath(),r&&s.stroke(),a&&s.fill()}},t.prototype.roundRect=function(t,e,i,n,o,a,r){if(void 0===a&&(a=!1),void 0===r&&(r=!1),!(o<0)){var s=this.ctx;if(s.beginPath(),o){var c=o||{},h=c.borderTopLeftRadius,d=void 0===h?o||0:h,u=c.borderTopRightRadius,l=void 0===u?o||0:u,f=c.borderBottomRightRadius,g=void 0===f?o||0:f,p=c.borderBottomLeftRadius,m=void 0===p?o||0:p;s.arc(t+i-g,e+n-g,g,0,.5*Math.PI),s.lineTo(t+m,e+n),s.arc(t+m,e+n-m,m,.5*Math.PI,Math.PI),s.lineTo(t,e+d),s.arc(t+d,e+d,d,Math.PI,1.5*Math.PI),s.lineTo(t+i-l,e),s.arc(t+i-l,e+l,l,1.5*Math.PI,2*Math.PI),s.lineTo(t+i,e+n-g)}else s.rect(t,e,i,n);s.closePath(),r&&s.stroke(),a&&s.fill()}},t.prototype.setTransform=function(t,e){var i=e.transform,n=e.transformOrigin,o=this.ctx,a=i||{},r=a.scaleX,s=void 0===r?1:r,c=a.scaleY,h=void 0===c?1:c,d=a.translateX,u=void 0===d?0:d,l=a.translateY,f=void 0===l?0:l,g=a.rotate,p=void 0===g?0:g,m=a.skewX,v=void 0===m?0:m,b=a.skewY,w=void 0===b?0:b,S=t.left,k=t.top,_=t.width,z=t.height;u=y(u,_)||0,f=y(f,z)||0;var P={top:y("0%",1),center:y("50%",1),bottom:y("100%",1)},C={left:y("0%",1),center:y("50%",1),right:y("100%",1)};if(n=n.split(" ").filter((function(t,e){return e<2})).reduce((function(t,e){if(/\d+/.test(e)){var i=y(e,1)/(/px|rpx$/.test(e)?x(t.x)?z:_:1);return x(t.x)?Object.assign(t,{y:i}):Object.assign(t,{x:i})}return x(C[e])&&!x(t.x)?Object.assign(t,{x:C[e]}):Object.assign(t,{y:P[e]||.5})}),{}),(u||f)&&o.translate(u,f),(s||h)&&o.scale(s,h),p){var I=S+_*n.x,M=k+z*n.y;o.translate(I,M),o.rotate(p*Math.PI/180),o.translate(-I,-M)}(v||w)&&o.transform(1,Math.tan(w*Math.PI/180),Math.tan(v*Math.PI/180),1,0,0)},t.prototype.setBackground=function(t,e,i,n,o){var a=this.ctx;t&&"transparent"!=t?function(t){return!(!t||!t.startsWith("linear")&&!t.startsWith("radial"))}(t)?function(t,e,i,n,o,a){t.startsWith("linear")?function(t,e,i,n,o,a){for(var r=function(t,e,i,n,o){void 0===n&&(n=0),void 0===o&&(o=0);var a=t.match(/([-]?\d{1,3})deg/),r=a&&a[1]?parseFloat(a[1]):0;if(r>=360&&(r-=360),r<0&&(r+=360),0===(r=Math.round(r)))return{x0:Math.round(e/2)+n,y0:i+o,x1:Math.round(e/2)+n,y1:o};if(180===r)return{x0:Math.round(e/2)+n,y0:o,x1:Math.round(e/2)+n,y1:i+o};if(90===r)return{x0:n,y0:Math.round(i/2)+o,x1:e+n,y1:Math.round(i/2)+o};if(270===r)return{x0:e+n,y0:Math.round(i/2)+o,x1:n,y1:Math.round(i/2)+o};var s=Math.round(180*Math.asin(e/Math.sqrt(Math.pow(e,2)+Math.pow(i,2)))/Math.PI);if(r===s)return{x0:n,y0:i+o,x1:e+n,y1:o};if(r===180-s)return{x0:n,y0:o,x1:e+n,y1:i+o};if(r===180+s)return{x0:e+n,y0:o,x1:n,y1:i+o};if(r===360-s)return{x0:e+n,y0:i+o,x1:n,y1:o};var c,h=0,d=0,u=0,l=0;if(r<s||r>180-s&&r<180||r>180&&r<180+s||r>360-s){var f=r*Math.PI/180,g=r<s||r>360-s?i/2:-i/2,p=Math.tan(f)*g,m=r<s||r>180-s&&r<180?e/2-p:-e/2-p;h=-(u=p+(c=Math.pow(Math.sin(f),2)*m)),d=-(l=g+c/Math.tan(f))}(r>s&&r<90||r>90&&r<90+s||r>180+s&&r<270||r>270&&r<360-s)&&(f=(90-r)*Math.PI/180,p=r>s&&r<90||r>90&&r<90+s?e/2:-e/2,g=Math.tan(f)*p,m=r>s&&r<90||r>270&&r<360-s?i/2-g:-i/2-g,h=-(u=p+(c=Math.pow(Math.sin(f),2)*m)/Math.tan(f)),d=-(l=g+c));return h=Math.round(h+e/2)+n,d=Math.round(i/2-d)+o,u=Math.round(u+e/2)+n,l=Math.round(i/2-l)+o,{x0:h,y0:d,x1:u,y1:l}}(o,t,e,i,n),s=r.x0,c=r.y0,h=r.x1,d=r.y1,u=a.createLinearGradient(s,c,h,d),l=o.match(/linear-gradient\((.+)\)/)[1],f=k(l.substring(l.indexOf(",")+1)),g=0;g<f.colors.length;g++)u.addColorStop(f.percents[g],f.colors[g]);a.setFillStyle(u)}(e,i,n,o,t,a):t.startsWith("radial")&&function(t,e,i,n,o,a){for(var r=k(o.match(/radial-gradient\((.+)\)/)[1]),s=Math.round(t/2)+i,c=Math.round(e/2)+n,h=a.createRadialGradient(s,c,0,s,c,Math.max(t,e)/2),d=0;d<r.colors.length;d++)h.addColorStop(r.percents[d],r.colors[d]);a.setFillStyle(h)}(e,i,n,o,t,a)}(t,e,i,n,o,a):a.setFillStyle(t):[c.MP_TOUTIAO,c.MP_BAIDU].includes(v)?a.setFillStyle("rgba(0,0,0,0)"):a.setFillStyle("transparent")},t.prototype.setShadow=function(t){var e=t.boxShadow,i=void 0===e?[]:e,n=this.ctx;if(i.length){var o=i[0],a=i[1],r=i[2],s=i[3];n.setShadow(o,a,r,s)}},t.prototype.setBorder=function(t,e){var i=this.ctx,n=t.width,o=t.height,a=t.left,r=t.top,s=e.border,c=e.borderBottom,h=e.borderTop,d=e.borderRight,u=e.borderLeft,l=e.borderRadius,f=e.lineCap,g=s||{},p=g.borderWidth,m=void 0===p?0:p,b=g.borderStyle,w=g.borderColor,x=c||{},y=x.borderBottomWidth,S=void 0===y?m:y,k=x.borderBottomStyle,_=void 0===k?b:k,z=x.borderBottomColor,P=void 0===z?w:z,C=h||{},I=C.borderTopWidth,M=void 0===I?m:I,T=C.borderTopStyle,B=void 0===T?b:T,O=C.borderTopColor,R=void 0===O?w:O,W=d||{},L=W.borderRightWidth,j=void 0===L?m:L,F=W.borderRightStyle,A=void 0===F?b:F,$=W.borderRightColor,E=void 0===$?w:$,H=u||{},N=H.borderLeftWidth,D=void 0===N?m:N,U=H.borderLeftStyle,Y=void 0===U?b:U,q=H.borderLeftColor,X=void 0===q?w:q,J=l||{},G=J.borderTopLeftRadius,V=void 0===G?l||0:G,Q=J.borderTopRightRadius,K=void 0===Q?l||0:Q,Z=J.borderBottomRightRadius,tt=void 0===Z?l||0:Z,et=J.borderBottomLeftRadius,it=void 0===et?l||0:et;if(c||u||h||d||s){var nt=function(t,e,n){"dashed"==e?/mp/.test(v)?i.setLineDash([Math.ceil(4*t/3),Math.ceil(4*t/3)]):i.setLineDash([Math.ceil(6*t),Math.ceil(6*t)]):"dotted"==e&&i.setLineDash([t,t]),i.setStrokeStyle(n)},ot=function(t,e,n,o,a,r,s,c,h,d,u,l,g,p,m){i.save(),i.setLineCap(m?"square":f),i.setLineWidth(l),nt(l,g,p),i.beginPath(),i.arc(t,e,s,Math.PI*h,Math.PI*d),i.lineTo(n,o),i.arc(a,r,c,Math.PI*d,Math.PI*u),i.stroke(),i.restore()};if(i.save(),s&&!c&&!u&&!h&&!d)return i.setLineWidth(m),nt(m,b,w),this.roundRect(a,r,n,o,l,!1,!!w),void i.restore();S&&ot(a+n-tt,r+o-tt,a+it,r+o,a+it,r+o-it,tt,it,.25,.5,.75,S,_,P,D&&j),D&&ot(a+it,r+o-it,a,r+V,a+V,r+V,it,V,.75,1,1.25,D,Y,X,M&&S),M&&ot(a+V,r+V,a+n-K,r,a+n-K,r+K,V,K,1.25,1.5,1.75,M,B,R,D&&j),j&&ot(a+n-K,r+K,a+n,r+o-tt,a+n-tt,r+o-tt,K,tt,1.75,2,.25,j,A,E,M&&S)}},t.prototype.setOpacity=function(t){var e=t.opacity,i=void 0===e?1:e;this.ctx.setGlobalAlpha(i)},t.prototype.drawPattern=function(t,e,i){return r(this,void 0,void 0,(function(){var n=this;return s(this,(function(o){return[2,new Promise((function(o,a){n.drawView(e,i,!0,!1,!0);var r=n,s=r.ctx;r.canvas;var c=e.width,h=e.height,d=e.left,u=e.top,l=i||{},f=l.borderRadius,g=void 0===f?0:f,p=l.backgroundImage,m=l.backgroundRepeat,v=void 0===m?"repeat":m;p&&function(t){var a=s.createPattern(t.src,v);s.setFillStyle(a),n.roundRect(d,u,c,h,g,!0,!1),n.setBorder(e,i),o()}(t)}))]}))}))},t.prototype.drawView=function(t,e,i,n,o){void 0===i&&(i=!0),void 0===n&&(n=!0),void 0===o&&(o=!0);var a=this.ctx,r=t.width,s=t.height,c=t.left,h=t.top,d=e||{},u=d.borderRadius,l=void 0===u?0:u,f=d.backgroundColor,g=void 0===f?"transparent":f,p=d.overflow;e.opacity&&this.setOpacity(e),this.setTransform(t,e),o&&(a.save(),this.setShadow(e)),i&&this.setBackground(g,r,s,c,h),e.clipPath?this.clipPath(c,h,r,s,e.clipPath,i,!1):this.roundRect(c,h,r,s,l,i,!1),o&&a.restore(),n&&this.setBorder(t,e),"hidden"==p&&a.clip()},t.prototype.drawImage=function(t,e,i,n){return void 0===e&&(e={}),void 0===i&&(i={}),void 0===n&&(n=!0),r(this,void 0,void 0,(function(){var o=this;return s(this,(function(a){switch(a.label){case 0:return[4,new Promise((function(a,h){return r(o,void 0,void 0,(function(){var o,r,h,d,u,l,f,g,p,m,b,w,x,k,_,z,P,C,I,M,T,B=this;return s(this,(function(s){return o=this.ctx,r=i.borderRadius,h=void 0===r?0:r,d=i.backgroundColor,u=void 0===d?"transparent":d,l=i.objectFit,f=void 0===l?"fill":l,g=i.backgroundSize,p=void 0===g?"fill":g,m=i.objectPosition,b=i.backgroundPosition,w=i.boxShadow,i.backgroundImage&&(f=p,m=b),w&&this.drawView(e,Object.assign(i,{backgroundColor:u||w&&(u||"#ffffff")}),!0,!1,!0),x=e.width,k=e.height,_=e.left,z=e.top,o.save(),P=e.contentSize.left-e.borderSize.left,C=e.contentSize.top-e.borderSize.top,n||(this.setOpacity(i),this.setTransform(e,i),this.setBackground(u,x,k,_,z),this.roundRect(_,z,x,k,h,!!(h||!w&&u),!1)),_+=P,z+=C,o.clip(),I=function(t){if("fill"!==f){var i=function(t,e,i){var n=t.objectFit,o=t.objectPosition,a=e.width/e.height,r=i.width/i.height,s=1;"contain"==n&&a>=r||"cover"==n&&a<r?s=e.height/i.height:("contain"==n&&a<r||"cover"==n&&a>=r)&&(s=e.width/i.width);var c=i.width*s,h=i.height*s,d=o||[],u=d[0],l=d[1],f=/^\d+px|rpx$/.test(u)?y(u,e.width):(e.width-c)*(S(u)?y(u,1):{left:0,center:.5,right:1}[u||"center"]),g=/^\d+px|rpx$/.test(l)?y(l,e.height):(e.height-h)*(S(l)?y(l,1):{top:0,center:.5,bottom:1}[l||"center"]),p=function(t,e){return[(t-f)/s,(e-g)/s]},m=p(0,0),v=m[0],b=m[1],w=p(e.width,e.height),x=w[0],k=w[1];return{sx:Math.max(v,0),sy:Math.max(b,0),sw:Math.min(x-v,i.width),sh:Math.min(k-b,i.height),dx:Math.max(f,0),dy:Math.max(g,0),dw:Math.min(c,e.width),dh:Math.min(h,e.height)}}({objectFit:f,objectPosition:m},e.contentSize,t),n=i.sx,a=i.sy,r=i.sh,s=i.sw,h=i.dx,d=i.dy,u=i.dh,l=i.dw;v==c.MP_BAIDU?o.drawImage(t.src,h+_,d+z,l,u,n,a,s,r):o.drawImage(t.src,n,a,s,r,h+_,d+z,l,u)}else o.drawImage(t.src,_,z,x,k)},M=function(){o.restore(),B.drawView(e,i,!1,!0,!1),a(1)},T=function(t){I(t),M()},T(t),[2]}))}))}))];case 1:return a.sent(),[2]}}))}))},t.prototype.drawText=function(t,e,i,n){var o=this.ctx,a=e.borderSize,r=e.contentSize,s=e.left,c=e.top,h=r.width,d=r.height,u=r.left-a.left,l=r.top-a.top,f=i.color,g=void 0===f?"#000000":f,p=i.lineHeight,m=void 0===p?"1.4em":p,v=i.fontSize,b=void 0===v?14:v,w=i.fontWeight,x=i.fontFamily,S=i.fontStyle,k=i.textAlign,_=void 0===k?"left":k,z=i.verticalAlign,P=void 0===z?K:z,C=i.backgroundColor,I=i.lineClamp,M=i.backgroundClip,T=i.textShadow,B=i.textDecoration;if(this.drawView(e,i,M!=G),m=y(m,b),t){o.save(),this.setShadow({boxShadow:T}),s+=u,c+=l;var O=n.fontHeight,R=n.descent+n.ascent;switch(o.setFonts({fontFamily:x,fontSize:b,fontWeight:w,fontStyle:S}),o.setTextBaseline(R?K:P),o.setTextAlign(_),M?this.setBackground(C,h,d,s,c):o.setFillStyle(g),_){case"left":break;case"center":s+=.5*h;break;case"right":s+=h}var W=n.lines*m,L=Math.ceil((d-W)/2);switch(L<0&&(L=0),P){case"top":break;case K:c+=L;break;case"bottom":c+=2*L}var j=(m-O)/2,F=function(t){var e=o.measureText(t),i=e.actualBoundingBoxDescent,n=void 0===i?0:i,a=e.actualBoundingBoxAscent;return"top"==P?{fix:R?void 0===a?0:a:0,lineY:R?2*j:j}:P==K?{fix:R?m/2+n/4:m/2,lineY:(m-O)/2}:"bottom"==P?{fix:R?m-n:m+j,lineY:0}:{fix:0,height:0,lineY:0}},A=function(t,e,i){var a=t;switch(_){case"left":a+=i;break;case"center":a=(t-=i/2)+i;break;case"right":a=t,t-=i}if(B){o.setLineWidth(b/13),o.beginPath();var r=.1*n.fontHeight;/\bunderline\b/.test(B)&&(o.moveTo(t,e+r),o.lineTo(a,e+r)),/\boverline\b/.test(B)&&(R||(e-=j),o.moveTo(t,e-n.fontHeight-r),o.lineTo(a,e-n.fontHeight-r)),/\bline-through\b/.test(B)&&(o.moveTo(t,e-.5*n.fontHeight),o.lineTo(a,e-.5*n.fontHeight)),o.closePath(),o.setStrokeStyle(g),o.stroke()}};if(!n.widths||1==n.widths.length&&n.widths[0].total<=r.width){var $=F(t),E=$.fix,H=$.lineY;return o.fillText(t,s,c+E),A(s,(c+=m)-H,n&&n.widths&&n.widths[0].total||n.text),o.restore(),void this.setBorder(e,i)}for(var N=t.split(""),D=c,U=s,Y="",q=0,X=0;X<=N.length;X++){var J=N[X]||"",V="\n"===J,Q=""==J,Z=Y+(J=V?"":J),tt=o.measureText(Z).width;if(q>=I)break;if(U=s,tt>r.width||V||Q){if(q++,Y=Q&&tt<=r.width?Z:Y,q===I&&tt>h){for(;o.measureText("".concat(Y,"...")).width>r.width&&!(Y.length<=1);)Y=Y.substring(0,Y.length-1);Y+="..."}var et=F(Y);if(E=et.fix,H=et.lineY,o.fillText(Y,U,c+E),A(U,(c+=m)-H,tt),Y=J,c>D+d)break}else Y=Z}o.restore()}},t.prototype.source=function(t){return r(this,void 0,void 0,(function(){var e,i,n,o=this;return s(this,(function(a){switch(a.label){case 0:if(this.node=null,e=+new Date,"{}"==JSON.stringify(t))return[2];if(!t.type)for(i in t.type=Q,t.css=t.css||{},t)["views","children","type","css"].includes(i)||(t.css[i]=t[i],delete t[i]);return t.css&&!t.css.width&&(t.css||(t.css={})),[4,this.create(t)];case 1:return(n=a.sent())?(this.size=n.layout()||{},this.node=n,this.onEffectFinished().then((function(t){return o.lifecycle("onEffectSuccess",t)})).catch((function(t){return o.lifecycle("onEffectFail",t)})),console.log("布局用时:"+(+new Date-e)+"ms"),[2,this.size]):[2,console.warn("no node")]}}))}))},t.prototype.getImageInfo=function(t){return this.imageBus[t]||(this.imageBus[t]=this.createImage(t,this.useCORS)),this.imageBus[t]},t.prototype.create=function(t,e){return r(this,void 0,void 0,(function(){var i,n,o,r,c,h,d,u,l,f,g,p,m,v,b,w,x;return s(this,(function(s){switch(s.label){case 0:if(i="image"==t.type,n=[G,V].includes(t.type),o=t.css||{},r=o.backgroundImage,c=o.display,i&&!t.src&&!t.url||n&&!t.text)return[2];if("none"==c)return[2];if(n&&(t.text=String(t.text)),!(i||t.type==Q&&r))return[3,4];h=i?t.src:"",d=/url\((.+)\)/.exec(r),r&&d&&d[1]&&(h=d[1]||""),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.getImageInfo(h)];case 2:return u=s.sent(),l=u.width,f=u.height,!(g=u.path)&&i?[2]:(g&&(t.attributes=Object.assign(t.attributes||{},{width:l,height:f,path:g,src:g,naturalSrc:h})),[3,4]);case 3:return p=s.sent(),t.type!=Q?[2]:(this.lifecycle("onEffectFail",a(a({},p),{src:h})),[3,4]);case 4:if(this.count+=1,m=new X(t,e,this.root,this.ctx),!(v=t.views||t.children))return[3,8];b=0,s.label=5;case 5:return b<v.length?(w=v[b],[4,this.create(w,m)]):[3,8];case 6:(x=s.sent())&&m.add(x),s.label=7;case 7:return b++,[3,5];case 8:return[2,m]}}))}))},t.prototype.drawNode=function(t,e){return void 0===e&&(e=!1),r(this,void 0,void 0,(function(){var i,n,o,a,r,c,h,d,u,l,f,g,p,m,v,b,w,x,y,S;return s(this,(function(s){switch(s.label){case 0:return i=t.layoutBox,n=t.computedStyle,o=t.attributes,a=t.name,r=t.children,c=t.fixedLine,h=t.attributes,d=h.src,u=h.text,["fixed"].includes(n.position)&&!e?[2]:(this.ctx.save(),a!==Q?[3,7]:d?n.backgroundRepeat?[4,this.drawPattern(o,i,n)]:[3,2]:[3,5]);case 1:return s.sent(),[3,4];case 2:return[4,this.drawImage(o,i,n,!1)];case 3:s.sent(),s.label=4;case 4:return[3,6];case 5:this.drawView(i,n),s.label=6;case 6:return[3,10];case 7:return"image"===a&&d?[4,this.drawImage(o,i,n,!1)]:[3,9];case 8:return s.sent(),[3,10];case 9:a===G?this.drawText(u,i,n,o):a===V&&J.api&&J.api.draw(u,this,i,n),s.label=10;case 10:if(this.progress+=1,f=(l=c||{}).beforeElements,g=l.afterElements,!f)return[3,14];p=0,m=f,s.label=11;case 11:return p<m.length?(S=m[p],[4,this.drawNode(S)]):[3,14];case 12:s.sent(),s.label=13;case 13:return p++,[3,11];case 14:if(!r)return[3,18];v=Object.values?Object.values(r):Object.keys(r).map((function(t){return r[t]})),b=0,w=v,s.label=15;case 15:return b<w.length?"absolute"===(S=w[b]).computedStyle.position?[3,17]:[4,this.drawNode(S)]:[3,18];case 16:s.sent(),s.label=17;case 17:return b++,[3,15];case 18:if(!g)return[3,22];x=0,y=g,s.label=19;case 19:return x<y.length?(S=y[x],[4,this.drawNode(S)]):[3,22];case 20:s.sent(),s.label=21;case 21:return x++,[3,19];case 22:return this.ctx.restore(),[2]}}))}))},t.prototype.render=function(t){var e=this;return void 0===t&&(t=30),new Promise((function(i,n){return r(e,void 0,void 0,(function(){var e,o,a,r,c,h,d,u,l,f;return s(this,(function(s){switch(s.label){case 0:return e=+new Date,this.init(),[4,(g=t,void 0===g&&(g=0),new Promise((function(t){return setTimeout(t,g)})))];case 1:s.sent(),s.label=2;case 2:if(s.trys.push([2,14,,15]),!this.node)return[3,12];if(o=this.root.fixedLine||{},a=o.beforeElements,r=o.afterElements,!a)return[3,6];c=0,h=a,s.label=3;case 3:return c<h.length?(l=h[c],[4,this.drawNode(l,!0)]):[3,6];case 4:s.sent(),s.label=5;case 5:return c++,[3,3];case 6:return[4,this.drawNode(this.node)];case 7:if(s.sent(),!r)return[3,11];d=0,u=r,s.label=8;case 8:return d<u.length?(l=u[d],[4,this.drawNode(l,!0)]):[3,11];case 9:s.sent(),s.label=10;case 10:return d++,[3,8];case 11:return i(this.node),[3,13];case 12:this.lifecycle("onEffectFail","node is empty"),s.label=13;case 13:return[3,15];case 14:return f=s.sent(),this.lifecycle("onEffectFail",f),n(f),[3,15];case 15:return console.log("渲染用时:"+(+new Date-e-30)+"ms"),[2]}var g}))}))}))},t.prototype.onEffectFinished=function(){var t=this,e=Object.keys(this.imageBus).map((function(e){return t.imageBus[e]}));return Promise.all(e)},t.prototype.destroy=function(){this.node=[]},t.prototype.save=function(t){try{var e=t||{},i=e.fileType,n=void 0===i?"png":i,o=e.quality,a=void 0===o?1:o;return this.canvas.toDataURL("image/".concat(n),a)}catch(t){return this.lifecycle("onEffectFail","image cross domain"),t}},t}();e.default=e.Painter=Z,c.WEB==v&&(window.Painter=Z)},b9a8:function(t,e,i){"use strict";var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.children=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.indexKey;return{inject:(0,r.default)({},t,{default:null}),watch:{el:{handler:function(t,e){JSON.stringify(t)!=JSON.stringify(e)&&this.bindRelation()},deep:!0,immediate:!0},src:{handler:function(t,e){t!=e&&this.bindRelation()},immediate:!0},text:{handler:function(t,e){t!=e&&this.bindRelation()},immediate:!0},css:{handler:function(t,e){t!=e&&(this.el.css=("object"==(0,a.default)(t)?t:t&&Object.assign.apply(Object,(0,o.default)(s(t))))||{})},immediate:!0},replace:{handler:function(t,e){JSON.stringify(t)!=JSON.stringify(e)&&this.bindRelation()},deep:!0,immediate:!0}},created:function(){var e=this;this._uid||(this._uid=this._.uid),Object.defineProperty(this,"parent",{get:function(){return e[t]||[]}}),Object.defineProperty(this,"index",{get:function(){e.bindRelation();var t=e.parent;t=void 0===t?{}:t;var i=t.el;i=void 0===i?{}:i;var n=i.views,o=void 0===n?[]:n;return o.indexOf(e.el)}}),this.el.type=this.type,this.bindRelation()},beforeDestroy:function(){this.removeEl()},methods:{removeEl:function(){var t=this;this.parent&&(this.parent.el.views=this.parent.el.views.filter((function(e){return e._uid!==t._uid})))},bindRelation:function(){var t=this;if(this.el._uid||(this.el._uid=this._uid),["text","qrcode"].includes(this.type)&&(this.el.text=this.$slots&&this.$slots.default&&this.$slots.default[0].text||"".concat(this.text||"").replace(/\\n/g,"\n")),"image"==this.type&&(this.el.src=this.src),this.parent){var e=this.parent.el.views||[];-1!==e.indexOf(this.el)?this.parent.el.views=e.map((function(e){return e._uid==t._uid?t.el:e})):this.parent.el.views=[].concat((0,o.default)(e),[this.el])}}},mounted:function(){}}},e.parent=function(t){return{provide:function(){return(0,r.default)({},t,this)},data:function(){return{el:{css:{},views:[]}}},watch:{css:{handler:function(t){this.canvasId&&(this.el.css=("object"==(0,a.default)(t)?t:t&&Object.assign.apply(Object,(0,o.default)(s(t))))||{},this.canvasWidth=this.el.css&&this.el.css.width||this.canvasWidth,this.canvasHeight=this.el.css&&this.el.css.height||this.canvasHeight)},immediate:!0}}}};var o=n(i("2909")),a=n(i("53ca")),r=n(i("ade3"));i("d81d"),i("4de4"),i("d3b7"),i("ac1f"),i("00b4"),i("fb6a"),i("c975"),i("5319"),i("e9c4"),i("7a82"),i("caad"),i("99af");var s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.split(";").filter((function(t){return t&&!/^[\n\s]+$/.test(t)})).map((function(t){var e=t.slice(0,t.indexOf(":")),i=t.slice(t.indexOf(":")+1);return(0,r.default)({},e.replace(/-([a-z])/g,(function(){return arguments[1].toUpperCase()})).replace(/\s+/g,""),i.replace(/^\s+/,"").replace(/\s+$/,"")||"")}))}},b9fa:function(t,e,i){"use strict";var n=i("e3d8"),o=i.n(n);o.a},baa5:function(t,e,i){var n=i("23e7"),o=i("e58c");n({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},d5b1:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".lime-painter[data-v-0fba428e],\n.lime-painter__canvas[data-v-0fba428e]{\nwidth:100%;\n}",""]),t.exports=e},e3d8:function(t,e,i){var n=i("fba0");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("c23face8",n,!0,{sourceMap:!1,shadowMode:!1})},f148:function(t,e,i){var n=i("d5b1");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=i("4f06").default;o("0c60db80",n,!0,{sourceMap:!1,shadowMode:!1})},fba0:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".commission-wrap[data-v-6e6cae6e]{background:url(http://file.shopro.top/imgs/commission/commission_bg1.jpg) no-repeat;background-size:cover;height:100%;width:100%;position:absolute;background-position:50%;transition:all .3s ease-in-out 0s;overflow:hidden}.progress-box .progress-tip[data-v-6e6cae6e]{font-size:%?24?%;font-weight:500;color:#c7b2ff}.progress-box .progress-num[data-v-6e6cae6e]{font-size:%?24?%;position:absolute;color:#c7b2ff;bottom:%?-30?%;white-space:nowrap}.progress-box .round-wrap[data-v-6e6cae6e]{width:%?30?%;height:%?30?%;border:%?2?% solid #5c3cff;background:linear-gradient(0deg,#a36fff,#846fff);border-radius:50%;position:absolute;bottom:%?-6?%;-webkit-transform:translateY(-50%);transform:translateY(-50%);left:0;margin-left:%?-15?%}.progress-box .round-wrap .round-inner[data-v-6e6cae6e]{width:%?20?%;height:%?20?%;border:%?2?% solid #5c3cff;background:linear-gradient(0deg,#a36fff,#846fff);border-radius:50%;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.blur[data-v-6e6cae6e]{-webkit-filter:blur(%?20?%);filter:blur(%?20?%);transition:all .3s ease-in-out 0s}.auth-box[data-v-6e6cae6e]{width:100%;height:100%;background:none}.auth-box .notice-box[data-v-6e6cae6e]{display:flex;flex-direction:column;justify-content:center;align-items:center;background-color:#fff;width:%?612?%;min-height:%?658?%;background:#fff;padding:%?30?%;border-radius:%?20?%}.auth-box .notice-box .img-wrap[data-v-6e6cae6e]{margin-bottom:%?50?%}.auth-box .notice-box .img-wrap .notice-img[data-v-6e6cae6e]{width:%?180?%;height:%?170?%}.auth-box .notice-box .notice-title[data-v-6e6cae6e]{font-size:%?35?%;font-weight:700;color:#46351b;margin-bottom:%?28?%}.auth-box .notice-box .notice-detail[data-v-6e6cae6e]{font-size:%?28?%;font-weight:400;color:#999;line-height:%?36?%;margin-bottom:%?50?%}.auth-box .notice-box .notice-btn[data-v-6e6cae6e]{width:%?492?%;line-height:%?70?%;background:linear-gradient(-90deg,#a36fff,#5336ff);box-shadow:0 %?7?% %?11?% %?2?% rgba(124,103,214,.34);border-radius:%?35?%;font-size:%?28?%;font-weight:500;color:#fff;margin-bottom:%?10?%}.auth-box .notice-box .back-btn[data-v-6e6cae6e]{width:%?492?%;line-height:%?70?%;font-size:%?28?%;font-weight:500;color:#c5b8fb;background:none}.into-agent-modal .condition-box[data-v-6e6cae6e]{width:%?640?%;height:%?786?%;background:url(http://file.shopro.top/imgs/commission/into_commission.png) no-repeat;background-size:100% 100%}.into-agent-modal .goods-condition[data-v-6e6cae6e]{width:%?484?%;height:%?580?%;padding:%?80?% 0 %?30?%;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative}.into-agent-modal .goods-condition .card-wrap[data-v-6e6cae6e]{width:%?484?%;height:%?460?%;padding:%?10?%;padding-bottom:%?30?%}.into-agent-modal .goods-condition .modal-progress .progress-tip[data-v-6e6cae6e]{font-size:%?24?%}.into-agent-modal .goods-condition .modal-progress .progress-box[data-v-6e6cae6e]{margin-right:%?10?%}.into-agent-modal .goods-condition .modal-progress .progress-box .cu-progress[data-v-6e6cae6e]{width:%?200?%;position:relative}.into-agent-modal .goods-condition .modal-progress .progress-box .cu-progress .round-wrap[data-v-6e6cae6e]{width:%?20?%;height:%?20?%}.into-agent-modal .goods-condition .modal-progress .progress-box .cu-progress .round-inner[data-v-6e6cae6e]{width:%?10?%;height:%?10?%}.into-agent-modal .goods-condition .card-box[data-v-6e6cae6e]{background:rgba(195,182,255,.3);padding:%?10?%;border-radius:%?10?%}.into-agent-modal .goods-condition .card-box .img-wrap[data-v-6e6cae6e]{background:#fff;width:%?110?%;height:%?110?%;border-radius:%?10?%;margin-right:%?20?%}.into-agent-modal .goods-condition .card-box .img-wrap .goods-img[data-v-6e6cae6e]{width:%?110?%;height:%?110?%;border-radius:%?10?%}.into-agent-modal .goods-condition .card-box .detail[data-v-6e6cae6e]{height:%?110?%;width:%?280?%;align-items:flex-start}.into-agent-modal .goods-condition .card-box .detail .title[data-v-6e6cae6e]{font-size:%?20?%;font-weight:500;color:#333;line-height:%?35?%;text-align:left}.into-agent-modal .goods-condition .card-box .detail .sub[data-v-6e6cae6e]{font-size:%?16?%;font-weight:500;color:#9281e2;text-align:left;width:%?280?%}.into-agent-modal .goods-condition .filter-card[data-v-6e6cae6e]{-webkit-filter:grayscale(100%);filter:grayscale(100%);-webkit-filter:grey;filter:gray}.into-agent-modal .goods-condition .btn-box[data-v-6e6cae6e]{background-color:#fff;width:100%;position:absolute;bottom:0}.into-agent-modal .goods-condition .btn-box .buy-btn[data-v-6e6cae6e]{width:%?390?%;line-height:%?60?%;background:linear-gradient(-90deg,#a36fff,#5336ff);box-shadow:0 %?7?% %?11?% %?2?% rgba(124,103,214,.34);border-radius:%?35?%;font-size:%?24?%;font-weight:500;color:#fff}.into-agent-modal .goods-condition .btn-box .tips[data-v-6e6cae6e]{font-size:%?20?%;font-weight:500;color:#9281e2}.user-card[data-v-6e6cae6e]{width:%?690?%;min-height:%?350?%;border-radius:%?14?%;margin:%?30?%;background:url(http://file.shopro.top/imgs/commission/commission_card_bg.png) no-repeat;background-size:100% 100%;padding-top:%?10?%}.user-card .card-top[data-v-6e6cae6e]{padding:%?40?% %?40?% %?30?%;margin-bottom:%?30?%;border-bottom:1px solid hsla(0,0%,100%,.12)}.user-card .card-top .user-name[data-v-6e6cae6e]{font-size:%?26?%;font-weight:500;color:#fff;line-height:%?30?%;margin-bottom:%?20?%}.user-card .card-top .log-btn[data-v-6e6cae6e]{width:%?86?%;line-height:%?41?%;border:%?1?% solid hsla(0,0%,100%,.33);border-radius:%?32?%;font-size:%?22?%;font-weight:400;color:#fff}.user-card .card-top .look-btn[data-v-6e6cae6e]{color:#fff;font-size:%?40?%}.user-card .head-img-box[data-v-6e6cae6e]{margin-right:%?26?%;width:%?76?%;height:%?76?%;border-radius:50px;position:relative;background:#fff;padding:%?10?%;background-clip:padding-box}.user-card .head-img-box .head-img[data-v-6e6cae6e]{width:%?66?%;height:%?66?%;border-radius:50%;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.user-card .user-info-box .tag-box[data-v-6e6cae6e]{background:rgba(0,0,0,.2);border-radius:%?21?%;line-height:%?38?%}.user-card .user-info-box .tag-box .tag-img[data-v-6e6cae6e]{width:%?36?%;height:%?36?%;border-radius:50%}.user-card .user-info-box .tag-box .tag-title[data-v-6e6cae6e]{font-size:%?20?%;padding:0 %?10?%;font-weight:500;color:#fff;line-height:%?36?%}.user-card .card-bottom[data-v-6e6cae6e]{margin:0 %?40?% %?40?%}.user-card .card-bottom .item-title[data-v-6e6cae6e]{font-size:%?24?%;font-weight:400;color:#fff;line-height:%?30?%}.user-card .card-bottom .item-detail[data-v-6e6cae6e]{font-size:%?40?%;font-family:DIN;font-weight:500;color:#fefefe;line-height:%?30?%;margin-top:%?30?%}.commission-log[data-v-6e6cae6e]{min-height:%?400?%;padding:0 %?30?%;margin-top:%?60?%}.commission-log .log-scroll[data-v-6e6cae6e]{height:%?380?%}.commission-log .log-scroll .log-item-box[data-v-6e6cae6e]{height:%?78?%}.commission-log .log-scroll .log-item-box .log-time[data-v-6e6cae6e]{margin-left:%?30?%;font-size:%?22?%;font-weight:500;color:#fefefe;text-align:right}.commission-log .log-scroll .loadmore-wrap[data-v-6e6cae6e]{line-height:%?80?%}.commission-log .log-scroll .log-item[data-v-6e6cae6e]{height:%?48?%;background:rgba(94,73,195,.4);border-radius:%?24?%;padding-left:%?6?%;padding-right:%?20?%}.commission-log .log-scroll .log-item .log-img[data-v-6e6cae6e]{width:%?40?%;height:%?40?%;border-radius:50%;margin-right:%?10?%}.commission-log .log-scroll .log-item .log-text[data-v-6e6cae6e]{font-size:%?22?%;font-weight:500;color:#fefefe;max-width:%?480?%}.commission-bottom-bg[data-v-6e6cae6e]{position:fixed;width:100%;bottom:0;z-index:6}.menu-box[data-v-6e6cae6e]{flex-wrap:wrap;margin:%?30?%;bottom:0;z-index:10}.menu-box .menu-item[data-v-6e6cae6e]{width:%?172.5?%;margin-bottom:%?50?%}.menu-box .menu-item .item-img[data-v-6e6cae6e]{width:%?68?%;height:%?68?%}.menu-box .menu-item .item-title[data-v-6e6cae6e]{font-size:%?24?%;font-weight:600;color:#fff;line-height:%?30?%;margin-top:%?16?%}.bill[data-v-6e6cae6e]{margin:%?30?%;font-weight:700}.u-flex-col[data-v-6e6cae6e]{display:flex;flex-direction:column}.poster[data-v-6e6cae6e]{padding:%?24?% %?40?%}.poster .footer-btn[data-v-6e6cae6e]{margin-top:%?24?%;display:flex;align-items:center;justify-content:space-between}.poster .footer-btn uni-view[data-v-6e6cae6e]{width:%?319?%;height:%?66?%;border-radius:%?40?%;border:1px solid #4070ff;font-size:%?26?%;font-family:PingFangSC-Regular,PingFang SC;font-weight:400;color:#4070ff;line-height:%?66?%;text-align:center}.poster .footer-btn .save[data-v-6e6cae6e]{background:#4070ff;color:#fff}.dygbhg[data-v-6e6cae6e]{background:#fff;border-radius:%?15?% %?15?% 0 0;position:fixed;bottom:0;left:0;width:100%;box-shadow:0 0 10px rgba(0,0,0,.1411764705882353);display:flex;align-items:center;justify-content:space-evenly}.whole[data-v-6e6cae6e]{width:45%;height:%?88?%;display:flex;color:#fff;align-items:center;justify-content:center;background:#f3f3f3;font-weight:700;border-radius:%?60?%;color:#3d7eff}.distinguish[data-v-6e6cae6e]{width:45%;height:%?88?%;display:flex;color:#fff;align-items:center;justify-content:center;background:#3d7eff;font-weight:700;border-radius:%?60?%;margin:%?38?% 0;margin-left:4%}",""]),t.exports=e}}]);
|