You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
xxdj1/unpackage/dist/build/h5/static/js/user-pages-coupon-poster.4e...

2 lines
41 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-pages-coupon-poster"],{1290:function(t,e,r){"use strict";r("7a82");var n=r("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r("3835")),i=n(r("5530")),a=n(r("c7eb")),u=n(r("1da1")),l=r("26cb"),s=n(r("d4bb")),c={components:{wxmlToCanvas:s.default},props:{},data:function(){return{src:"",options:""}},computed:(0,l.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo}}),onLoad:function(t){var e=this;return(0,u.default)((0,a.default)().mark((function r(){var n;return(0,a.default)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:e.options=t,e.$util.setNavigationBarColor({bg:e.primaryColor}),e.widget=e.$refs.canvas,e.$util.showLoading(),n=e,setTimeout((function(){n.renderToCanvas()}),1e3);case 6:case"end":return r.stop()}}),r)})))()},methods:(0,i.default)((0,i.default)({},(0,l.mapActions)(["user/report"])),{},{renderToCanvas:function(){var t=this;return(0,u.default)((0,a.default)().mark((function e(){var r,n,o,i,u,l,s,c,f,d,h,p,y;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=t,n=t.userInfo,o=n.nickName,i=n.avatarUrl,u=t.$util.getPage(-1),l=u.qr_code,s=u.detail,c=s.share_img,o=o.substring(0,10),f=12*o.length+33,d=t.configInfo.app_name,h='\n\t\t\t\t<view class="code-img">\n\t\t\t\t\t<image class="cover" src="'+c+'"></image>\n\t\t\t\t<view class="cover abs">\n\t\t\t\t\t<view class="user-info">\n\t\t\t\t\t\t<text class="user-font">'.concat(o,'</text>\n\t\t\t\t\t</view>\n\t\t\t\t\t<image class="avatar" src="')+i+'"></image> \n\t\t\t\t</view>\n\t\t\t\t\t\n\t\t\t\t\t\t<text class="qr-text">'.concat(d,'</text> \n\t\t\t\t\t\t<text class="qr-text">微信扫一扫立即使用</text> \n\t\t\t\t\t<image class="qr" src="')+l+'"></image>\n\t\t\t\t</view>\n\t\t\t\n\t\t\t\t',console.log(h,"wxml"),p={rel:{position:"relative"},abs:{position:"absolute"},codeImg:{width:326,height:482,backgroundColor:"#fff",borderRadius:15},cover:{width:326,height:326,top:0,left:0},userInfo:{top:15,left:27,fontSize:12,color:"#333",width:f,height:27,borderRadius:14,backgroundColor:"#ffffff",textAlign:"center"},userFont:{top:4,left:8},avatar:{width:32,height:32,top:-15,left:15,borderRadius:16},qrText:{top:60,left:25,width:345,height:23,fontSize:14,textAlign:"left",color:"#333"},qr:{width:121,height:121,borderRadius:62,top:-28,left:180}},y=t.widget.renderToCanvas({wxml:h,style:p}),console.log(y,"===========ppppppppp1"),y.then((function(e){console.log("container",e.layoutBox),t.container=e,r.extraImage(),r.$util.hideAll()}));case 13:case"end":return e.stop()}}),e)})))()},extraImage:function(){var t=this;return(0,u.default)((0,a.default)().mark((function e(){var r;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=t.widget.canvasToTempFilePath(),r.then((function(e){t.src=e.tempFilePath}));case 2:case"end":return e.stop()}}),e)})))()},previewImage:function(){var t=this.src;uni.previewImage({current:t,urls:[t]})},saveImage:function(){var t=this;return(0,u.default)((0,a.default)().mark((function e(){var r,n,i,u;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$util.checkAuth({type:"writePhotosAlbum"});case 2:return r=t.src,e.next=5,uni.saveImageToPhotosAlbum({filePath:r});case 5:if(n=e.sent,i=(0,o.default)(n,2),u=i[0],i[1],!u){e.next=11;break}return e.abrupt("return");case 11:uni.showToast({icon:"none",title:"保存成功"});case 12:case"end":return e.stop()}}),e)})))()}})};e.default=c},"148d":function(t,e,r){"use strict";r.r(e);var n=r("7cf3"),o=r.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a},"1ec9":function(t,e,r){"use strict";r.r(e);var n=r("a0c7"),o=r("4784");for(var i in o)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return o[t]}))}(i);r("9e14");var a=r("f0c5"),u=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,"5402fbeb",null,!1,n["a"],void 0);e["default"]=u.exports},"2d0d":function(t,e,r){r("4ae1"),r("d3b7"),r("f8c9");var n=r("36c6"),o=r("6f8f"),i=r("6b58");t.exports=function(t){var e=o();return function(){var r,o=n(t);if(e){var a=n(this).constructor;r=Reflect.construct(o,arguments,a)}else r=o.apply(this,arguments);return i(this,r)}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"36c6":function(t,e,r){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e)}r("131a"),r("3410"),t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},3854:function(t,e,r){r("ac1f"),r("00b4"),r("d81d"),r("498a"),r("acd8"),r("e25e"),r("d401"),r("d3b7"),r("25f0"),r("fb6a");t.exports={hex:function(t){var e=null;return!/^#/.test(t)||7!==t.length&&9!==t.length?null!==(e=/^(rgb|rgba)\((.+)\)/.exec(t))?"#"+e[2].split(",").map((function(t,e){return t=t.trim(),t=3===e?Math.floor(255*parseFloat(t)):parseInt(t,10),t=t.toString(16),1===t.length&&(t="0"+t),t})).join(""):"#00000000":t},splitLineToCamelCase:function(t){return t.split("-").map((function(t,e){return 0===e?t:t[0].toUpperCase()+t.slice(1)})).join("")}}},"3c96":function(t,e,r){r("d9e2"),r("d401"),t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports["default"]=t.exports},4784:function(t,e,r){"use strict";r.r(e);var n=r("1290"),o=r.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a},"47d3":function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=this._self._c||t;return e("v-uni-view",[e("v-uni-canvas",{style:"width: "+this.width+"px; height: "+this.height+"px;",attrs:{id:"canvas",type:"2d"}})],1)},o=[]},"4a4b":function(t,e,r){function n(e,r){return t.exports=n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports["default"]=t.exports,n(e,r)}r("131a"),t.exports=n,t.exports.__esModule=!0,t.exports["default"]=t.exports},"4b55":function(t,e){function r(t){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}r.keys=function(){return[]},r.resolve=r,t.exports=r,r.id="4b55"},"5a43":function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n},t.exports.__esModule=!0,t.exports["default"]=t.exports},"5bc3":function(t,e,r){r("7a82");var n=r("a395");function o(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}t.exports=function(t,e,r){return e&&o(t.prototype,e),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports["default"]=t.exports},63748:function(t,e,r){r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("d9e2"),r("d401");var n=r("6613");t.exports=function(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=n(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){l=!0,a=t},f:function(){try{u||null==r["return"]||r["return"]()}finally{if(l)throw a}}}},t.exports.__esModule=!0,t.exports["default"]=t.exports},6613:function(t,e,r){r("fb6a"),r("d3b7"),r("a630"),r("3ca3"),r("ac1f"),r("00b4");var n=r("5a43");t.exports=function(t,e){if(t){if("string"===typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"6b58":function(t,e,r){r("d9e2"),r("d401");var n=r("7037")["default"],o=r("3c96");t.exports=function(t,e){if(e&&("object"===n(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports["default"]=t.exports},"6f8f":function(t,e,r){r("d3b7"),r("f8c9"),r("4ae1"),t.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports["default"]=t.exports},"7cf3":function(t,e,r){"use strict";r("7a82");var n=r("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r("c7eb")),i=n(r("1da1"));r("a9e3"),r("ac1f"),r("d3b7"),r("d9e2"),r("d401");var a=r("ab15"),u=r("efba"),l=u.Widget,s=r("cf57"),c=s.Draw,f={data:function(){return{}},components:{},props:{width:{type:Number,default:400},height:{type:Number,default:300}},beforeMount:function(){var t=this,e=wx.getSystemInfoSync().pixelRatio,r=this.createSelectorQuery();this.dpr=e,r.select("#canvas").fields({node:!0,size:!0}).exec((function(r){console.log(r,"==res");var n=r[0].node,o=n.getContext("2d");n.width=r[0].width*e,n.height=r[0].height*e,o.scale(e,e),t.ctx=o,t.canvas=n}))},methods:{renderToCanvas:function(t){var e=this;return(0,i.default)((0,o.default)().mark((function r(){var n,i,u,s,f,d,h,p,y;return(0,o.default)().wrap((function(r){while(1)switch(r.prev=r.next){case 0:if(n=t.wxml,i=t.style,u=e.ctx,s=e.canvas,u&&s){r.next=5;break}return r.abrupt("return",Promise.reject(new Error("renderToCanvas: fail canvas has not been created")));case 5:return u.clearRect(0,0,e.width,e.height),f=a(n),d=f.root,h=new l(d,i),p=h.init(),e.boundary={top:p.layoutBox.top,left:p.layoutBox.left,width:p.computedStyle.width,height:p.computedStyle.height},y=new c(s,u),r.next=13,y.drawNode(p);case 13:return r.abrupt("return",Promise.resolve(p));case 14:case"end":return r.stop()}}),r)})))()},canvasToTempFilePath:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(r,n){var o=t.boundary,i=o.top,a=o.left,u=o.width,l=o.height;wx.canvasToTempFilePath({x:a,y:i,width:u,height:l,destWidth:u*t.dpr,destHeight:l*t.dpr,canvas:t.canvas,fileType:e.fileType||"png",quality:e.quality||1,success:r,fail:n})}))}}};e.default=f},"7ec2":function(t,e,r){r("7a82"),r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("d401"),r("14d9"),r("159b"),r("131a"),r("26e9"),r("fb6a");var n=r("7037")["default"];function o(){"use strict";
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=o=function(){return e},t.exports.__esModule=!0,t.exports["default"]=t.exports;var e={},r=Object.prototype,i=r.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},u="function"==typeof Symbol?Symbol:{},l=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",c=u.toStringTag||"@@toStringTag";function f(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(C){f=function(t,e,r){return t[e]=r}}function d(t,e,r,n){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),u=new E(n||[]);return a(i,"_invoke",{value:S(t,r,u)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(C){return{type:"throw",arg:C}}}e.wrap=d;var p={};function y(){}function v(){}function g(){}var b={};f(b,l,(function(){return this}));var m=Object.getPrototypeOf,x=m&&m(m(T([])));x&&x!==r&&i.call(x,l)&&(b=x);var w=g.prototype=y.prototype=Object.create(b);function _(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){var r;a(this,"_invoke",{value:function(o,a){function u(){return new e((function(r,u){(function r(o,a,u,l){var s=h(t[o],t,a);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==n(f)&&i.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,u,l)}),(function(t){r("throw",t,u,l)})):e.resolve(f).then((function(t){c.value=t,u(c)}),(function(t){return r("throw",t,u,l)}))}l(s.arg)})(o,a,r,u)}))}return r=r?r.then(u,u):u()}})}function S(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=L(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=h(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}function L(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator["return"]&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:P}}function P(){return{value:void 0,done:!0}}return v.prototype=g,a(w,"constructor",{value:g,configurable:!0}),a(g,"constructor",{value:v,configurable:!0}),v.displayName=f(g,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,f(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},_(k.prototype),f(k.prototype,s,(function(){return this})),e.AsyncIterator=k,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new k(d(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(w),f(w,c,"Generator"),f(w,l,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(u&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),j(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=o,t.exports.__esModule=!0,t.exports["default"]=t.exports},"970b":function(t,e,r){r("d9e2"),r("d401"),t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports["default"]=t.exports},9838:function(t,e,r){var n=r("f1fb");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=r("4f06").default;o("2cd0ff48",n,!0,{sourceMap:!1,shadowMode:!1})},"9e14":function(t,e,r){"use strict";var n=r("9838"),o=r.n(n);o.a},a0c7:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",[r("v-uni-view",{staticClass:"hideCanvasView"},[r("wxml-to-canvas",{ref:"canvas",staticClass:"hideCanvas",attrs:{width:652,height:964}})],1),t.src?[r("v-uni-image",{staticClass:"code-img",attrs:{src:t.src},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.previewImage.apply(void 0,arguments)}}}),r("v-uni-view",{staticClass:"pd-lg"},[r("v-uni-button",{staticClass:"save-btn flex-center radius",style:{background:t.primaryColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.previewImage.apply(void 0,arguments)}}},[t._v("长按上图保存图片")])],1)]:t._e()],2)},o=[]},ab15:function(t,e,r){r("498a"),r("ac1f"),r("5319"),r("14d9"),r("466d"),r("fb6a"),r("c975"),t.exports=function(t){return t=t.trim(),t=t.replace(/<!--[\s\S]*?-->/g,""),function(){return{declaration:e(),root:r()}}();function e(){var t=i(/^<\?xml\s*/);if(t){var e={attributes:{}};while(!a()&&!u("?>")){var r=n();if(!r)return e;e.attributes[r.name]=r.value}return i(/\?>\s*/),e}}function r(){var t=i(/^<([\w-:.]+)\s*/);if(t){var e,o={name:t[1],attributes:{},children:[]};while(!(a()||u(">")||u("?>")||u("/>"))){var l=n();if(!l)return o;o.attributes[l.name]=l.value}if(i(/^\s*\/>\s*/))return o;i(/\??>\s*/),o.content=function(){var t=i(/^([^<]*)/);return t?t[1]:""}();while(e=r())o.children.push(e);return i(/^<\/[\w-:.]+>\s*/),o}}function n(){var t=i(/([\w:-]+)\s*=\s*("[^"]*"|'[^']*'|\w+)\s*/);if(t)return{name:t[1],value:o(t[2])}}function o(t){return t.replace(/^['"]|['"]$/g,"")}function i(e){var r=t.match(e);if(r)return t=t.slice(r[0].length),r}function a(){return 0==t.length}function u(e){return 0==t.indexOf(e)}}},c575:function(t,e,r){var n,o,i,a=r("7037").default;r("d3b7"),r("159b"),r("b64b"),r("e439"),r("7a82"),r("a4d3"),r("e01a"),r("944a"),r("0c47"),r("23dc"),r("caad"),r("2532"),r("d81d"),t.exports=function(){var t={},e=function(e,n){if(!t[e])return r("4b55")(n);if(!t[e].status){var o={exports:{}};t[e].status=1,t[e].func(t[e].req,o,o.exports),"object"===a(o.exports)?(t[e].m.exports.__proto__=o.exports.__proto__,Object.keys(o.exports).forEach((function(r){t[e].m.exports[r]=o.exports[r];var n=Object.getOwnPropertyDescriptor(o.exports,r);n&&n.configurable&&Object.defineProperty(o.exports,r,{set:function(n){t[e].m.exports[r]=n},get:function(){return t[e].m.exports[r]}})})),o.exports.__esModule&&Object.defineProperty(t[e].m.exports,"__esModule",{value:!0})):t[e].m.exports=o.exports}return t[e].m.exports};return function(e,r,n){t[e]={status:0,func:r,req:n,m:{exports:{}}}}(1572960819414,(function(t,e,r){!function(t,u){"object"==a(r)&&"object"==a(e)?e.exports=u():(o=[],n=u,i="function"===typeof n?n.apply(r,o):n,void 0===i||(e.exports=i))}(0,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==a(t)&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=n(r(1)),i=r(2),a=0,u=function(){function t(e){var r=this;void 0===e&&(e={}),this.parent=null,this.id=t.uuid(),this.style={},this.computedStyle={},this.lastComputedStyle={},this.children={},this.layoutBox={left:0,top:0,width:0,height:0},e=Object.assign(i.getDefaultStyle(),e),this.computedStyle=Object.assign(i.getDefaultStyle(),e),this.lastComputedStyle=Object.assign(i.getDefaultStyle(),e),Object.keys(e).forEach((function(t){Object.defineProperty(r.style,t,{configurable:!0,enumerable:!0,get:function(){return e[t]},set:function(n){n!==e[t]&&void 0!==n&&(r.lastComputedStyle=r.computedStyle[t],e[t]=n,r.computedStyle[t]=n,i.scalableStyles.includes(t)&&r.style.scale&&(r.computedStyle[t]=n*r.style.scale),"scale"===t&&i.scalableStyles.forEach((function(t){e[t]&&(r.computedStyle[t]=e[t]*n)})),"hidden"===t&&(n?i.layoutAffectedStyles.forEach((function(t){r.computedStyle[t]=0})):i.layoutAffectedStyles.forEach((function(t){r.computedStyle[t]=r.lastComputedStyle[t]}))))}})})),this.style.scale&&i.scalableStyles.forEach((function(t){if(r.style[t]){var e=r.style[t]*r.style.scale;r.computedStyle[t]=e}})),e.hidden&&i.layoutAffectedStyles.forEach((function(t){r.computedStyle[t]=0}))}return t.uuid=function(){return a++},t.prototype.getAbsolutePosition=function(t){if(!t)return this.getAbsolutePosition(this);if(!t.parent)return{left:0,top:0};var e=this.getAbsolutePosition(t.parent),r=e.left,n=e.top;return{left:r+t.layoutBox.left,top:n+t.layoutBox.top}},t.prototype.add=function(t){t.parent=this,this.children[t.id]=t},t.prototype.remove=function(t){var e=this;t?this.children[t.id]&&(t.remove(),delete this.children[t.id]):Object.keys(this.children).forEach((function(t){e.children[t].remove(),delete e.children[t]}))},t.prototype.getNodeTree=function(){var t=this;return{id:this.id,style:this.computedStyle,children:Object.keys(this.children).map((function(e){return t.children[e].getNodeTree()}))}},t.prototype.applyLayout=function(t){var e=this;["left","top","width","height"].forEach((function(r){t.layout&&"number"==typeof t.layout[r]&&(e.layoutBox[r]=t.layout[r],!e.parent||"left"!==r&&"top"!==r||(e.layoutBox[r]+=e.parent.layoutBox[r]))})),t.children.forEach((function(t){e.children[t.id].applyLayout(t)}))},t.prototype.layout=function(){var t=this.getNodeTree();o.default(t),this.applyLayout(t)},t}();e.default=u},function(t,e,r){r.r(e);var n=function(){var t,e="inherit",r="row",n="row-reverse",o="column",i="column-reverse",a="flex-start",u="center",l="flex-start",s="center",c="flex-end",f="stretch",d="relative",h="absolute",p={row:"left","row-reverse":"right",column:"top","column-reverse":"bottom"},y={row:"right","row-reverse":"left",column:"bottom","column-reverse":"top"},v={row:"left","row-reverse":"right",column:"top","column-reverse":"bottom"},g={row:"width","row-reverse":"width",column:"height","column-reverse":"height"};function b(t){return void 0===t}function m(t){return t===r||t===n}function x(t,e){if(void 0!==t.style.marginStart&&m(e))return t.style.marginStart;var r=null;switch(e){case"row":r=t.style.marginLeft;break;case"row-reverse":r=t.style.marginRight;break;case"column":r=t.style.marginTop;break;case"column-reverse":r=t.style.marginBottom}return void 0!==r?r:void 0!==t.style.margin?t.style.margin:0}function w(t,e){if(void 0!==t.style.marginEnd&&m(e))return t.style.marginEnd;var r=null;switch(e){case"row":r=t.style.marginRight;break;case"row-reverse":r=t.style.marginLeft;break;case"column":r=t.style.marginBottom;break;case"column-reverse":r=t.style.marginTop}return null!=r?r:void 0!==t.style.margin?t.style.margin:0}function _(t,e){if(void 0!==t.style.borderStartWidth&&t.style.borderStartWidth>=0&&m(e))return t.style.borderStartWidth;var r=null;switch(e){case"row":r=t.style.borderLeftWidth;break;case"row-reverse":r=t.style.borderRightWidth;break;case"column":r=t.style.borderTopWidth;break;case"column-reverse":r=t.style.borderBottomWidth}return null!=r&&r>=0?r:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function k(t,e){if(void 0!==t.style.borderEndWidth&&t.style.borderEndWidth>=0&&m(e))return t.style.borderEndWidth;var r=null;switch(e){case"row":r=t.style.borderRightWidth;break;case"row-reverse":r=t.style.borderLeftWidth;break;case"column":r=t.style.borderBottomWidth;break;case"column-reverse":r=t.style.borderTopWidth}return null!=r&&r>=0?r:void 0!==t.style.borderWidth&&t.style.borderWidth>=0?t.style.borderWidth:0}function S(t,e){return function(t,e){if(void 0!==t.style.paddingStart&&t.style.paddingStart>=0&&m(e))return t.style.paddingStart;var r=null;switch(e){case"row":r=t.style.paddingLeft;break;case"row-reverse":r=t.style.paddingRight;break;case"column":r=t.style.paddingTop;break;case"column-reverse":r=t.style.paddingBottom}return null!=r&&r>=0?r:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+_(t,e)}function L(t,e){return function(t,e){if(void 0!==t.style.paddingEnd&&t.style.paddingEnd>=0&&m(e))return t.style.paddingEnd;var r=null;switch(e){case"row":r=t.style.paddingRight;break;case"row-reverse":r=t.style.paddingLeft;break;case"column":r=t.style.paddingBottom;break;case"column-reverse":r=t.style.paddingTop}return null!=r&&r>=0?r:void 0!==t.style.padding&&t.style.padding>=0?t.style.padding:0}(t,e)+k(t,e)}function O(t,e){return _(t,e)+k(t,e)}function j(t,e){return x(t,e)+w(t,e)}function E(t,e){return S(t,e)+L(t,e)}function T(t,e){return e.style.alignSelf?e.style.alignSelf:t.style.alignItems?t.style.alignItems:"stretch"}function P(t,e){if("rtl"===e){if(t===r)return n;if(t===n)return r}return t}function C(t){return t.style.position?t.style.position:"relative"}function M(t){return C(t)===d&&t.style.flex>0}function W(t,e){return t.layout[g[e]]+j(t,e)}function I(t,e){return void 0!==t.style[g[e]]&&t.style[g[e]]>=0}function A(t,e){return void 0!==t.style[e]}function R(t,e){return void 0!==t.style[e]?t.style[e]:0}function B(t,e,r){var n={row:t.style.minWidth,"row-reverse":t.style.minWidth,column:t.style.minHeight,"column-reverse":t.style.minHeight}[e],o={row:t.style.maxWidth,"row-reverse":t.style.maxWidth,column:t.style.maxHeight,"column-reverse":t.style.maxHeight}[e],i=r;return void 0!==o&&o>=0&&i>o&&(i=o),void 0!==n&&n>=0&&i<n&&(i=n),i}function N(t,e){return t>e?t:e}function F(t,e){void 0===t.layout[g[e]]&&I(t,e)&&(t.layout[g[e]]=N(B(t,e,t.style[g[e]]),E(t,e)))}function D(t,e,r){e.layout[y[r]]=t.layout[g[r]]-e.layout[g[r]]-e.layout[v[r]]}function q(t,e){return void 0!==t.style[p[e]]?R(t,p[e]):-R(t,y[e])}function H(k,H,G){var z=function(t,r){var n;return(n=t.style.direction?t.style.direction:e)===e&&(n=void 0===r?"ltr":r),n}(k,G),U=P(function(t){return t.style.flexDirection?t.style.flexDirection:o}(k),z),V=function(t,e){return function(t){return t===o||t===i}(t)?P(r,e):o}(U,z),J=P(r,z);F(k,U),F(k,V),k.layout.direction=z,k.layout[p[U]]+=x(k,U)+q(k,U),k.layout[y[U]]+=w(k,U)+q(k,U),k.layout[p[V]]+=x(k,V)+q(k,V),k.layout[y[V]]+=w(k,V)+q(k,V);var Y=k.children.length,Q=E(k,J);if(function(t){return void 0!==t.style.measure}(k)){var K=!b(k.layout[g[J]]),X=t;X=I(k,J)?k.style.width:K?k.layout[g[J]]:H-j(k,J),X-=Q;var Z=!I(k,J)&&!K,tt=!I(k,o)&&b(k.layout[g[o]]);if(Z||tt){var et=k.style.measure(X);Z&&(k.layout.width=et.width+Q),tt&&(k.layout.height=et.height+E(k,o))}if(0===Y)return}var rt,nt,ot,it,at=function(t){return"wrap"===t.style.flexWrap}(k),ut=function(t){return t.style.justifyContent?t.style.justifyContent:"flex-start"}(k),lt=S(k,U),st=S(k,V),ct=E(k,U),ft=E(k,V),dt=!b(k.layout[g[U]]),ht=!b(k.layout[g[V]]),pt=m(U),yt=null,vt=null,gt=t;dt&&(gt=k.layout[g[U]]-ct);for(var bt=0,mt=0,xt=0,wt=0,_t=0,kt=0;mt<Y;){var St,Lt=0,Ot=0,jt=0,Et=0,Tt=dt&&ut===a||!dt&&ut!==u,Pt=Tt?Y:bt,Ct=!0,Mt=Y,Wt=null,It=null,At=lt,Rt=0;for(rt=bt;rt<Y;++rt){if((ot=k.children[rt]).lineIndex=kt,ot.nextAbsoluteChild=null,ot.nextFlexChild=null,(zt=T(k,ot))===f&&C(ot)===d&&ht&&!I(ot,V))ot.layout[g[V]]=N(B(ot,V,k.layout[g[V]]-ft-j(ot,V)),E(ot,V));else if(C(ot)===h)for(null===yt&&(yt=ot),null!==vt&&(vt.nextAbsoluteChild=ot),vt=ot,nt=0;nt<2;nt++)it=0!==nt?r:o,!b(k.layout[g[it]])&&!I(ot,it)&&A(ot,p[it])&&A(ot,y[it])&&(ot.layout[g[it]]=N(B(ot,it,k.layout[g[it]]-E(k,it)-j(ot,it)-R(ot,p[it])-R(ot,y[it])),E(ot,it)));var Bt=0;if(dt&&M(ot)?(Ot++,jt+=ot.style.flex,null===Wt&&(Wt=ot),null!==It&&(It.nextFlexChild=ot),It=ot,Bt=E(ot,U)+j(ot,U)):(St=t,pt||(St=I(k,J)?k.layout[g[J]]-Q:H-j(k,J)-Q),0===xt&&$(ot,St,z),C(ot)===d&&(Et++,Bt=W(ot,U))),at&&dt&&Lt+Bt>gt&&rt!==bt){Et--,xt=1;break}Tt&&(C(ot)!==d||M(ot))&&(Tt=!1,Pt=rt),Ct&&(C(ot)!==d||zt!==f&&zt!==l||b(ot.layout[g[V]]))&&(Ct=!1,Mt=rt),Tt&&(ot.layout[v[U]]+=At,dt&&D(k,ot,U),At+=W(ot,U),Rt=N(Rt,B(ot,V,W(ot,V)))),Ct&&(ot.layout[v[V]]+=wt+st,ht&&D(k,ot,V)),xt=0,Lt+=Bt,mt=rt+1}var Nt=0,Ft=0,Dt=0;if(Dt=dt?gt-Lt:N(Lt,0)-Lt,0!==Ot){var qt,Ht,$t=Dt/jt;for(It=Wt;null!==It;)(qt=$t*It.style.flex+E(It,U))!==(Ht=B(It,U,qt))&&(Dt-=Ht,jt-=It.style.flex),It=It.nextFlexChild;for(($t=Dt/jt)<0&&($t=0),It=Wt;null!==It;)It.layout[g[U]]=B(It,U,$t*It.style.flex+E(It,U)),St=t,I(k,J)?St=k.layout[g[J]]-Q:pt||(St=H-j(k,J)-Q),$(It,St,z),ot=It,It=It.nextFlexChild,ot.nextFlexChild=null}else ut!==a&&(ut===u?Nt=Dt/2:"flex-end"===ut?Nt=Dt:"space-between"===ut?(Dt=N(Dt,0),Ft=Ot+Et-1!=0?Dt/(Ot+Et-1):0):"space-around"===ut&&(Nt=(Ft=Dt/(Ot+Et))/2));for(At+=Nt,rt=Pt;rt<mt;++rt)C(ot=k.children[rt])===h&&A(ot,p[U])?ot.layout[v[U]]=R(ot,p[U])+_(k,U)+x(ot,U):(ot.layout[v[U]]+=At,dt&&D(k,ot,U),C(ot)===d&&(At+=Ft+W(ot,U),Rt=N(Rt,B(ot,V,W(ot,V)))));var Gt=k.layout[g[V]];for(ht||(Gt=N(B(k,V,Rt+ft),ft)),rt=Mt;rt<mt;++rt)if(C(ot=k.children[rt])===h&&A(ot,p[V]))ot.layout[v[V]]=R(ot,p[V])+_(k,V)+x(ot,V);else{var zt,Ut=st;if(C(ot)===d)if((zt=T(k,ot))===f)b(ot.layout[g[V]])&&(ot.layout[g[V]]=N(B(ot,V,Gt-ft-j(ot,V)),E(ot,V)));else if(zt!==l){var Vt=Gt-ft-W(ot,V);Ut+=zt===s?Vt/2:Vt}ot.layout[v[V]]+=wt+Ut,ht&&D(k,ot,V)}wt+=Rt,_t=N(_t,At),kt+=1,bt=mt}if(kt>1&&ht){var Jt=k.layout[g[V]]-ft,Yt=Jt-wt,Qt=0,Kt=st,Xt=function(t){return t.style.alignContent?t.style.alignContent:"flex-start"}(k);Xt===c?Kt+=Yt:Xt===s?Kt+=Yt/2:Xt===f&&Jt>wt&&(Qt=Yt/kt);var Zt=0;for(rt=0;rt<kt;++rt){var te=Zt,ee=0;for(nt=te;nt<Y;++nt)if(C(ot=k.children[nt])===d){if(ot.lineIndex!==rt)break;b(ot.layout[g[V]])||(ee=N(ee,ot.layout[g[V]]+j(ot,V)))}for(Zt=nt,ee+=Qt,nt=te;nt<Zt;++nt)if(C(ot=k.children[nt])===d){var re=T(k,ot);if(re===l)ot.layout[v[V]]=Kt+x(ot,V);else if(re===c)ot.layout[v[V]]=Kt+ee-w(ot,V)-ot.layout[g[V]];else if(re===s){var ne=ot.layout[g[V]];ot.layout[v[V]]=Kt+(ee-ne)/2}else re===f&&(ot.layout[v[V]]=Kt+x(ot,V))}Kt+=ee}}var oe=!1,ie=!1;if(dt||(k.layout[g[U]]=N(B(k,U,_t+L(k,U)),ct),U!==n&&U!==i||(oe=!0)),ht||(k.layout[g[V]]=N(B(k,V,wt+ft),ft),V!==n&&V!==i||(ie=!0)),oe||ie)for(rt=0;rt<Y;++rt)ot=k.children[rt],oe&&D(k,ot,U),ie&&D(k,ot,V);for(vt=yt;null!==vt;){for(nt=0;nt<2;nt++)it=0!==nt?r:o,!b(k.layout[g[it]])&&!I(vt,it)&&A(vt,p[it])&&A(vt,y[it])&&(vt.layout[g[it]]=N(B(vt,it,k.layout[g[it]]-O(k,it)-j(vt,it)-R(vt,p[it])-R(vt,y[it])),E(vt,it))),A(vt,y[it])&&!A(vt,p[it])&&(vt.layout[p[it]]=k.layout[g[it]]-vt.layout[g[it]]-R(vt,y[it]));ot=vt,vt=vt.nextAbsoluteChild,ot.nextAbsoluteChild=null}}function $(t,e,r){t.shouldUpdate=!0;var n=t.style.direction||"ltr";!t.isDirty&&t.lastLayout&&t.lastLayout.requestedHeight===t.layout.height&&t.lastLayout.requestedWidth===t.layout.width&&t.lastLayout.parentMaxWidth===e&&t.lastLayout.direction===n?(t.layout.width=t.lastLayout.width,t.layout.height=t.lastLayout.height,t.layout.top=t.lastLayout.top,t.layout.left=t.lastLayout.left):(t.lastLayout||(t.lastLayout={}),t.lastLayout.requestedWidth=t.layout.width,t.lastLayout.requestedHeight=t.layout.height,t.lastLayout.parentMaxWidth=e,t.lastLayout.direction=n,t.children.forEach((function(t){t.layout.width=void 0,t.layout.height=void 0,t.layout.top=0,t.layout.left=0})),H(t,e,r),t.lastLayout.width=t.layout.width,t.lastLayout.height=t.layout.height,t.lastLayout.top=t.layout.top,t.lastLayout.left=t.layout.left)}return{layoutNodeImpl:H,computeLayout:$,fillNodes:function t(e){return e.layout&&!e.isDirty||(e.layout={width:void 0,height:void 0,top:0,left:0,right:0,bottom:0}),e.style||(e.style={}),e.children||(e.children=[]),e.children.forEach(t),e}}}();e.default=function(t){n.fillNodes(t),n.computeLayout(t)}},function(t,e,r){Object.defineProperty(e,"__esModule",{value:!0}),e.textStyles=["color","fontSize","textAlign","fontWeight","lineHeight","lineBreak"],e.scalableStyles=["left","top","right","bottom","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","borderWidth","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],e.layoutAffectedStyles=["margin","marginTop","marginBottom","marginLeft","marginRight","padding","paddingTop","paddingBottom","paddingLeft","paddingRight","width","height"],e.getDefaultStyle=function(){return{left:void 0,top:void 0,right:void 0,bottom:void 0,width:void 0,height:void 0,maxWidth:void 0,maxHeight:void 0,minWidth:void 0,minHeight:void 0,margin:void 0,marginLeft:void 0,marginRight:void 0,marginTop:void 0,marginBottom:void 0,padding:void 0,paddingLeft:void 0,paddingRight:void 0,paddingTop:void 0,paddingBottom:void 0,borderWidth:void 0,flexDirection:void 0,justifyContent:void 0,alignItems:void 0,alignSelf:void 0,flex:void 0,flexWrap:void 0,position:void 0,hidden:!1,scale:1}}}]).default}))}),(function(t){return e({}[t],t)})),e(1572960819414)}()},c973:function(t,e,r){function n(t,e,r,n,o,i,a){try{var u=t[i](a),l=u.value}catch(s){return void r(s)}u.done?e(l):Promise.resolve(l).then(n,o)}r("d3b7"),t.exports=function(t){return function(){var e=this,r=arguments;return new Promise((function(o,i){var a=t.apply(e,r);function u(t){n(a,o,i,u,l,"next",t)}function l(t){n(a,o,i,u,l,"throw",t)}u(void 0)}))}},t.exports.__esModule=!0,t.exports["default"]=t.exports},cb29:function(t,e,r){var n=r("23e7"),o=r("81d5"),i=r("44d2");n({target:"Array",proto:!0},{fill:o}),i("fill")},cf57:function(t,e,r){var n=r("63748").default,o=r("7ec2").default,i=r("c973").default,a=r("970b").default,u=r("5bc3").default;r("cb29"),r("d3b7"),r("acd8"),r("ac1f"),r("5319"),r("07ac");var l=function(){"use strict";function t(e,r){a(this,t),this.canvas=e,this.ctx=r}return u(t,[{key:"roundRect",value:function(t,e,r,n,o){var i=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],a=arguments.length>6&&void 0!==arguments[6]&&arguments[6];if(!(o<0)){var u=this.ctx;u.beginPath(),u.arc(t+o,e+o,o,Math.PI,3*Math.PI/2),u.arc(t+r-o,e+o,o,3*Math.PI/2,0),u.arc(t+r-o,e+n-o,o,0,Math.PI/2),u.arc(t+o,e+n-o,o,Math.PI/2,Math.PI),u.lineTo(t,e+o),a&&u.stroke(),i&&u.fill()}}},{key:"drawView",value:function(t,e){var r=this.ctx,n=t.left,o=t.top,i=t.width,a=t.height,u=e.borderRadius,l=void 0===u?0:u,s=e.borderWidth,c=void 0===s?0:s,f=e.borderColor,d=e.color,h=void 0===d?"#000":d,p=e.backgroundColor,y=void 0===p?"transparent":p;r.save(),c>0&&(r.fillStyle=f||h,this.roundRect(n,o,i,a,l)),r.fillStyle=y;var v=i-2*c,g=a-2*c,b=l-c>=0?l-c:0;this.roundRect(n+c,o+c,v,g,b),r.restore()}},{key:"drawImage",value:function(){var t=i(o().mark((function t(e,r,n){var i=this;return o().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,new Promise((function(t,o){var a=i.ctx,u=i.canvas,l=n.borderRadius,s=void 0===l?0:l,c=r.left,f=r.top,d=r.width,h=r.height;a.save(),i.roundRect(c,f,d,h,s,!1,!1),a.clip();var p=u.createImage();p.onload=function(){a.drawImage(p,c,f,d,h),a.restore(),t()},p.onerror=function(){o()},p.src=e}));case 2:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"drawText",value:function(t,e,r){var o=this.ctx,i=e.left,a=e.top,u=e.width,l=e.height,s=r.color,c=void 0===s?"#000":s,f=r.lineHeight,d=void 0===f?"1.4em":f,h=r.fontSize,p=void 0===h?14:h,y=r.textAlign,v=void 0===y?"left":y,g=r.verticalAlign,b=void 0===g?"top":g,m=r.backgroundColor,x=void 0===m?"transparent":m;if(t&&!(d>l)){switch(o.save(),d&&(d=Math.ceil(parseFloat(d.replace("em"))*p)),o.textBaseline="top",o.font="".concat(p,"px sans-serif"),o.textAlign=v,o.fillStyle=x,this.roundRect(i,a,u,l,0),o.fillStyle=c,v){case"left":break;case"center":i+=.5*u;break;case"right":i+=u;break;default:break}var w=o.measureText(t).width,_=Math.ceil(w/u)*d,k=Math.ceil((l-_)/2);switch(k<0&&(k=0),b){case"top":break;case"middle":a+=k;break;case"bottom":a+=2*k;break;default:break}var S=Math.ceil((d-p)/2);if(w<=u)o.fillText(t,i,a+S);else{var L,O=t.split(""),j=a,E="",T=n(O);try{for(T.s();!(L=T.n()).done;){var P=L.value,C=E+P,M=o.measureText(C).width;if(M>u){if(o.fillText(E,i,a+S),a+=d,E=P,a+d>j+l)break}else E=C}}catch(W){T.e(W)}finally{T.f()}a+d<=j+l&&o.fillText(E,i,a+S),o.restore()}}}},{key:"drawNode",value:function(){var t=i(o().mark((function t(e){var r,n,i,a,u,l,s,c,f,d;return o().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=e.layoutBox,n=e.computedStyle,i=e.name,a=e.attributes,u=a.src,l=a.text,"view"!==i){t.next=6;break}this.drawView(r,n),t.next=12;break;case 6:if("image"!==i){t.next=11;break}return t.next=9,this.drawImage(u,r,n);case 9:t.next=12;break;case 11:"text"===i&&this.drawText(l,r,n);case 12:s=Object.values(e.children),c=0,f=s;case 14:if(!(c<f.length)){t.next=21;break}return d=f[c],t.next=18,this.drawNode(d);case 18:c++,t.next=14;break;case 21:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()}]),t}();t.exports={Draw:l}},d4bb:function(t,e,r){"use strict";r.r(e);var n=r("47d3"),o=r("148d");for(var i in o)["default"].indexOf(i)<0&&function(t){r.d(e,t,(function(){return o[t]}))}(i);var a=r("f0c5"),u=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=u.exports},ed6d:function(t,e,r){r("d9e2"),r("d401"),r("7a82");var n=r("4a4b");t.exports=function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&n(t,e)},t.exports.__esModule=!0,t.exports["default"]=t.exports},efba:function(t,e,r){var n=r("5bc3").default,o=r("970b").default,i=r("ed6d").default,a=r("2d0d").default;r("d3b7"),r("159b"),r("07ac"),r("d81d"),r("498a"),r("b64b");var u=r("c575"),l=r("3854"),s=l.splitLineToCamelCase,c=function(t){"use strict";i(r,t);var e=a(r);function r(t){var n;return o(this,r),n=e.call(this,t.style),n.name=t.name,n.attributes=t.attributes,n}return n(r)}(u),f=function(){"use strict";function t(e,r){o(this,t),this.xom=e,this.style=r,this.inheritProps=["fontSize","lineHeight","textAlign","verticalAlign","color"]}return n(t,[{key:"init",value:function(){return this.container=this.create(this.xom),this.container.layout(),this.inheritStyle(this.container),this.container}},{key:"inheritStyle",value:function(t){var e=this,r=t.parent||null,n=t.children||{},o=t.computedStyle;r&&this.inheritProps.forEach((function(t){o[t]=o[t]||r.computedStyle[t]})),Object.values(n).forEach((function(t){e.inheritStyle(t)}))}},{key:"create",value:function(t){var e=this,r=(t.attributes.class||"").split(" ");r=r.map((function(t){return s(t.trim())}));var n={};r.forEach((function(t){Object.assign(n,e.style[t]||{})}));for(var o={name:t.name,style:n},i=Object.keys(t.attributes),a={},u=0,l=i;u<l.length;u++){var f=l[u],d=t.attributes[f],h=s(f);a[h]=""===d||"true"===d||"false"!==d&&d}a.text=t.content,o.attributes=a;var p=new c(o);return t.children.forEach((function(t){var r=e.create(t);p.add(r)})),p}}]),t}();t.exports={Widget:f}},f1fb:function(t,e,r){var n=r("24fb");e=n(!1),e.push([t.i,".code-img[data-v-5402fbeb]{width:%?652?%;height:%?964?%;margin:%?20?% auto}.save-btn[data-v-5402fbeb]{width:%?490?%;margin:0 auto}.hideCanvasView[data-v-5402fbeb]{position:relative}.hideCanvas[data-v-5402fbeb]{position:absolute;left:%?-9999?%;top:%?-9999?%}",""]),t.exports=e}}]);