UNPKG

@xysfe/actui

Version:

A fantastic mobile ui lib implement by Vue

1 lines 45.2 kB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/assets/utils/post.js"),require("@xysfe/actui/es/assets/utils/assign.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/helpers.js","@xysfe/actui/es/assets/utils/post.js","@xysfe/actui/es/assets/utils/assign.js"],e):"object"==typeof exports?exports.FigurePic=e(require("@xysfe/actui/es/assets/utils/helpers.js"),require("@xysfe/actui/es/assets/utils/post.js"),require("@xysfe/actui/es/assets/utils/assign.js")):t.FigurePic=e(t["@xysfe/actui/es/assets/utils/helpers.js"],t["@xysfe/actui/es/assets/utils/post.js"],t["@xysfe/actui/es/assets/utils/assign.js"])}("undefined"!=typeof self?self:this,function(t,e,r){return function(t){function e(n){if(r[n])return r[n].exports;var o=r[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,n){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(r,"a",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="../es",e(e.s=1667)}({0:function(t,e){var r=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},1:function(t,e,r){var n=r(31)("wks"),o=r(24),i=r(0).Symbol,a="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=n},10:function(t,e,r){var n=r(4),o=r(41),i=r(38),a=Object.defineProperty;e.f=r(3)?Object.defineProperty:function(t,e,r){if(n(t),e=i(e,!0),n(r),o)try{return a(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(t[e]=r.value),t}},100:function(t,e,r){"use strict";var n=r(9),o=r(2),i=r(0),a=r(64),u=r(67);n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then(function(){return r})}:t,r?function(r){return u(e,t()).then(function(){throw r})}:t)}})},101:function(t,e,r){"use strict";var n=r(9),o=r(44),i=r(66);n(n.S,"Promise",{try:function(t){var e=o.f(this),r=i(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},106:function(t,r){t.exports=e},11:function(t,e){t.exports={}},111:function(t,e,r){t.exports={default:r(117),__esModule:!0}},117:function(t,e,r){var n=r(2),o=n.JSON||(n.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},13:function(t,e,r){var n=r(34),o=r(15);t.exports=function(t){return n(o(t))}},14:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},147:function(t,e,r){e.f=r(1)},148:function(t,e,r){var n=r(0),o=r(2),i=r(18),a=r(147),u=r(10).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},15:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},16:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},1667:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(262),o=r.n(n),i=r(263),a=r.n(i),u=r(70),c=r.n(u),s=r(71),f=r.n(s),l=r(944),p=r(873),h=r(1668),d=this,v={type:"face",bizId:1010,compress:!1,compressSize:23},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new f.a(function(e,r){window.kcbJs&&window.kcbJs.invoke({path:"/image/guideShoot",data:{type:t.type},success:function(t){e({ret:0,data:{base64:t||""}})},unsupport:function(){console.log("不支持该拍照api"),e({ret:10088,errmsg:"当前版本不支持该拍照api"})},fail:function(t){Object(p.b)("appGuideShoot[/image/guideShoot] error: "+t),e({ret:10099,errmsg:t.msg||""})}})})},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=c()({},v,t);return y(e).then(function(){var t=a()(o.a.mark(function t(r){var n,i;return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!r||r.ret||!r.data.base64){t.next=10;break}return n=r.data,e.compress&&e.compressSize&&e.beforeCompress&&"function"==typeof e.beforeCompress&&e.beforeCompress(n),t.next=5,g(e,n.base64);case 5:return i=t.sent,e.beforeUpload&&"function"==typeof e.beforeUpload&&e.beforeUpload({base64:i}),t.abrupt("return",Object(l.a)(e,{base64:i}));case 10:return t.abrupt("return",r);case 11:case"end":return t.stop()}},t,d)}));return function(e){return t.apply(this,arguments)}}())},g=function(){var t=a()(o.a.mark(function t(){var e,r,n,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments[1];return o.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!i.compress||!i.compressSize){t.next=18;break}return t.prev=1,t.next=4,h.a.dataURLtoFile(a);case 4:return e=t.sent,t.next=7,h.a.compressAccurately(e,i.compressSize);case 7:return r=t.sent,t.next=10,h.a.filetoDataURL(r);case 10:return n=t.sent,t.abrupt("return",n);case 14:return t.prev=14,t.t0=t.catch(1),console.log(t.t0,"compress error"),t.abrupt("return",a);case 18:return t.abrupt("return",a);case 19:case"end":return t.stop()}},t,d,[[1,14]])}));return function(){return t.apply(this,arguments)}}();e.default={startPic:y,uploadPic:m}},1668:function(t,e,r){"use strict";var n=r(945),o=r.n(n),i=r(70),a=r.n(i),u=r(267),c=r.n(u),s=r(262),f=r.n(s),l=r(263),p=r.n(l),h=r(71),d=r.n(h),v=r(630),y=r.n(v),m=function(){function t(e){y()(this,t),this.defaultMimeType=e.defaultMimeType}return t.prototype.checkImageType=function(t){return["image/png","image/jpeg","image/gif"].some(function(e){return e===t})},t.prototype.dataURLtoImage=function(t){return new d.a(function(e,r){var n=new Image;n.onload=function(){return e(n)},n.onerror=function(){return r(new Error("dataURLtoImage(): dataURL is illegal"))},n.src=t})},t.prototype.filetoDataURL=function(t){return new d.a(function(e){var r=new FileReader;r.onloadend=function(t){return e(t.target.result)},r.readAsDataURL(t)})},t.prototype.imagetoCanvas=function(){function t(t){return e.apply(this,arguments)}var e=p()(f.a.mark(function t(e){var r,n,o,i,a,u,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=document.createElement("canvas"),n=r.getContext("2d"),o=void 0,i=void 0;for(a in c)Object.prototype.hasOwnProperty.call(c,a)&&(c[a]=Number(c[a]));c.scale?(u=c.scale>0&&c.scale<10?c.scale:1,i=e.width*u,o=e.height*u):(i=c.width||c.height*e.width/e.height||e.width,o=c.height||c.width*e.height/e.width||e.height),[5,6,7,8].some(function(t){return t===c.orientation})?(r.height=i,r.width=o):(r.height=o,r.width=i),t.t0=c.orientation,t.next=3===t.t0?10:6===t.t0?13:8===t.t0?16:2===t.t0?19:4===t.t0?23:5===t.t0?28:7===t.t0?33:38;break;case 10:return n.rotate(180*Math.PI/180),n.drawImage(e,-r.width,-r.height,r.width,r.height),t.abrupt("break",39);case 13:return n.rotate(90*Math.PI/180),n.drawImage(e,0,-r.width,r.height,r.width),t.abrupt("break",39);case 16:return n.rotate(270*Math.PI/180),n.drawImage(e,-r.height,0,r.height,r.width),t.abrupt("break",39);case 19:return n.translate(r.width,0),n.scale(-1,1),n.drawImage(e,0,0,r.width,r.height),t.abrupt("break",39);case 23:return n.translate(r.width,0),n.scale(-1,1),n.rotate(180*Math.PI/180),n.drawImage(e,-r.width,-r.height,r.width,r.height),t.abrupt("break",39);case 28:return n.translate(r.width,0),n.scale(-1,1),n.rotate(90*Math.PI/180),n.drawImage(e,0,-r.width,r.height,r.width),t.abrupt("break",39);case 33:return n.translate(r.width,0),n.scale(-1,1),n.rotate(270*Math.PI/180),n.drawImage(e,-r.height,0,r.height,r.width),t.abrupt("break",39);case 38:n.drawImage(e,0,0,r.width,r.height);case 39:return t.abrupt("return",r);case 40:case"end":return t.stop()}},t,this)}));return t}(),t.prototype.dataURLtoFile=function(){function t(t,r){return e.apply(this,arguments)}var e=p()(f.a.mark(function t(e,r){var n,o,i,a,u;return f.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:for(n=e.split(","),o=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,u=new Uint8Array(a);a--;)u[a]=i.charCodeAt(a);return this.checkImageType(r)&&(o=r),t.abrupt("return",new Blob([u],{type:o}));case 8:case"end":return t.stop()}},t,this)}));return t}(),t.prototype.canvastoDataURL=function(){function t(t,r,n){return e.apply(this,arguments)}var e=p()(f.a.mark(function t(e,r,n){return f.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.checkImageType(n)||(n="image/jpeg"),t.abrupt("return",e.toDataURL(n,r));case 2:case"end":return t.stop()}},t,this)}));return t}(),t.prototype.compressAccurately=function(){function t(t){return e.apply(this,arguments)}var e=p()(f.a.mark(function t(e){var r,n,i,u,s,l,p,h,d,v,y,m,g,b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof Blob){t.next=2;break}throw new Error("compressAccurately(): First arg must be a Blob object or a File object.");case 2:if("object"!==(void 0===b?"undefined":c()(b))&&(b=a()({size:b})),b.size=Number(b.size),!o()(b.size)){t.next=6;break}return t.abrupt("return",e);case 6:if(!(1024*b.size>e.size)){t.next=8;break}return t.abrupt("return",e);case 8:return b.accuracy=Number(b.accuracy),(!b.accuracy||b.accuracy<.8||b.accuracy>.99)&&(b.accuracy=.95),r={max:b.size*(2-b.accuracy)*1024,accurate:1024*b.size,min:b.size*b.accuracy*1024},t.next=13,this.filetoDataURL(e);case 13:return n=t.sent,i=n.split(",")[0].match(/:(.*?);/)[1],u="image/jpeg",this.checkImageType(b.type)&&(u=b.type,i=b.type),t.next=19,this.dataURLtoImage(n);case 19:return s=t.sent,t.next=22,this.imagetoCanvas(s,a()({},b));case 22:l=t.sent,p=.75,h=.5,d=void 0,v=[null,null],y=1;case 28:if(!(y<=7)){t.next=50;break}return t.next=31,this.canvastoDataURL(l,h,u);case 31:if(d=t.sent,m=d.length*p,7!==y){t.next=36;break}return(r.max<m||r.min>m)&&(d=[d].concat(v).filter(function(t){return t}).sort(function(t,e){return Math.abs(t.length*p-r.accurate)-Math.abs(e.length*p-r.accurate)})[0]),t.abrupt("break",50);case 36:if(!(r.max<m)){t.next=41;break}v[1]=d,h-=Math.pow(.5,y+1),t.next=47;break;case 41:if(!(r.min>m)){t.next=46;break}v[0]=d,h+=Math.pow(.5,y+1),t.next=47;break;case 46:return t.abrupt("break",50);case 47:y++,t.next=28;break;case 50:return t.next=52,this.dataURLtoFile(d,i);case 52:if(g=t.sent,!(g.size>e.size)){t.next=55;break}return t.abrupt("return",e);case 55:return t.abrupt("return",g);case 56:case"end":return t.stop()}},t,this)}));return t}(),t}();e.a=new m({defaultMimeType:"image/jpeg"})},17:function(t,e,r){var n=r(19);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,o){return t.call(e,r,n,o)}}return function(){return t.apply(e,arguments)}}},177:function(t,e,r){var n=r(42),o=r(32).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},18:function(t,e){t.exports=!0},19:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},195:function(t,e,r){var n=r(24)("meta"),o=r(6),i=r(8),a=r(10).f,u=0,c=Object.isExtensible||function(){return!0},s=!r(12)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,n,{value:{i:"O"+ ++u,w:{}}})},l=function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,n)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[n].i},p=function(t,e){if(!i(t,n)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[n].w},h=function(t){return s&&d.NEED&&c(t)&&!i(t,n)&&f(t),t},d=t.exports={KEY:n,NEED:!1,fastKey:l,getWeak:p,onFreeze:h}},197:function(t,e,r){var n=r(14);t.exports=Array.isArray||function(t){return"Array"==n(t)}},2:function(t,e){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},20:function(t,e,r){var n=r(31)("keys"),o=r(24);t.exports=function(t){return n[t]||(n[t]=o(t))}},22:function(t,e,r){var n=r(6),o=r(0).document,i=n(o)&&n(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},23:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},24:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},262:function(t,e,r){t.exports=r(265)},263:function(t,e,r){"use strict";e.__esModule=!0;var n=r(71),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,r){function n(i,a){try{var u=e[i](a),c=u.value}catch(t){return void r(t)}if(!u.done)return o.default.resolve(c).then(function(t){n("next",t)},function(t){n("throw",t)});t(c)}return n("next")})}}},264:function(t,e){t.exports=r},265:function(t,e,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,t.exports=r(266),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},266:function(t,e){!function(e){"use strict";function r(t,e,r,n){var i=e&&e.prototype instanceof o?e:o,a=Object.create(i.prototype),u=new h(n||[]);return a._invoke=s(t,r,u),a}function n(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}function o(){}function i(){}function a(){}function u(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){function e(r,o,i,a){var u=n(t[r],t,o);if("throw"!==u.type){var c=u.arg,s=c.value;return s&&"object"==typeof s&&g.call(s,"__await")?Promise.resolve(s.__await).then(function(t){e("next",t,i,a)},function(t){e("throw",t,i,a)}):Promise.resolve(s).then(function(t){c.value=t,i(c)},a)}a(u.arg)}function r(t,r){function n(){return new Promise(function(n,o){e(t,r,n,o)})}return o=o?o.then(n,n):n()}var o;this._invoke=r}function s(t,e,r){var o=S;return function(i,a){if(o===L)throw new Error("Generator is already running");if(o===k){if("throw"===i)throw a;return v()}for(r.method=i,r.arg=a;;){var u=r.delegate;if(u){var c=f(u,r);if(c){if(c===E)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===S)throw o=k,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=L;var s=n(t,e,r);if("normal"===s.type){if(o=r.done?k:P,s.arg===E)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(o=k,r.method="throw",r.arg=s.arg)}}}function f(t,e){var r=t.iterator[e.method];if(r===y){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=y,f(t,e),"throw"===e.method))return E;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return E}var o=n(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,E;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=y),e.delegate=null,E):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,E)}function l(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 p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function d(t){if(t){var e=t[x];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(g.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=y,e.done=!0,e};return n.next=n}}return{next:v}}function v(){return{value:y,done:!0}}var y,m=Object.prototype,g=m.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},x=b.iterator||"@@iterator",w=b.asyncIterator||"@@asyncIterator",_=b.toStringTag||"@@toStringTag",j="object"==typeof t,O=e.regeneratorRuntime;if(O)return void(j&&(t.exports=O));O=e.regeneratorRuntime=j?t.exports:{},O.wrap=r;var S="suspendedStart",P="suspendedYield",L="executing",k="completed",E={},M={};M[x]=function(){return this};var I=Object.getPrototypeOf,T=I&&I(I(d([])));T&&T!==m&&g.call(T,x)&&(M=T);var F=a.prototype=o.prototype=Object.create(M);i.prototype=F.constructor=a,a.constructor=i,a[_]=i.displayName="GeneratorFunction",O.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},O.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,_ in t||(t[_]="GeneratorFunction")),t.prototype=Object.create(F),t},O.awrap=function(t){return{__await:t}},u(c.prototype),c.prototype[w]=function(){return this},O.AsyncIterator=c,O.async=function(t,e,n,o){var i=new c(r(t,e,n,o));return O.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},u(F),F[_]="Generator",F[x]=function(){return this},F.toString=function(){return"[object Generator]"},O.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},O.values=d,h.prototype={constructor:h,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=y)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,n){return i.type="throw",i.arg=t,r.next=e,n&&(r.method="next",r.arg=y),!!n}if(this.done)throw t;for(var r=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=g.call(o,"catchLoc"),u=g.call(o,"finallyLoc");if(a&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(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&&g.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 i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,E):this.complete(i)},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),E},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),p(r),E}},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;p(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:d(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=y),E}}}(function(){return this}()||Function("return this")())},267:function(t,e,r){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=r(268),i=n(o),a=r(270),u=n(a),c="function"==typeof u.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":typeof t};e.default="function"==typeof u.default&&"symbol"===c(i.default)?function(t){return void 0===t?"undefined":c(t)}:function(t){return t&&"function"==typeof u.default&&t.constructor===u.default&&t!==u.default.prototype?"symbol":void 0===t?"undefined":c(t)}},268:function(t,e,r){t.exports={default:r(269),__esModule:!0}},269:function(t,e,r){r(48),r(50),t.exports=r(147).f("iterator")},27:function(t,e,r){var n=r(10).f,o=r(8),i=r(1)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},270:function(t,e,r){t.exports={default:r(271),__esModule:!0}},271:function(t,e,r){r(272),r(73),r(276),r(277),t.exports=r(2).Symbol},272:function(t,e,r){"use strict";var n=r(0),o=r(8),i=r(3),a=r(9),u=r(54),c=r(195).KEY,s=r(12),f=r(31),l=r(27),p=r(24),h=r(1),d=r(147),v=r(148),y=r(273),m=r(197),g=r(4),b=r(6),x=r(33),w=r(13),_=r(38),j=r(23),O=r(52),S=r(274),P=r(275),L=r(57),k=r(10),E=r(28),M=P.f,I=k.f,T=S.f,F=n.Symbol,N=n.JSON,R=N&&N.stringify,z=h("_hidden"),A=h("toPrimitive"),U={}.propertyIsEnumerable,C=f("symbol-registry"),D=f("symbols"),G=f("op-symbols"),q=Object.prototype,B="function"==typeof F&&!!L.f,W=n.QObject,J=!W||!W.prototype||!W.prototype.findChild,V=i&&s(function(){return 7!=O(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=M(q,e);n&&delete q[e],I(t,e,r),n&&t!==q&&I(q,e,n)}:I,H=function(t){var e=D[t]=O(F.prototype);return e._k=t,e},K=B&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},$=function(t,e,r){return t===q&&$(G,e,r),g(t),e=_(e,!0),g(r),o(D,e)?(r.enumerable?(o(t,z)&&t[z][e]&&(t[z][e]=!1),r=O(r,{enumerable:j(0,!1)})):(o(t,z)||I(t,z,j(1,{})),t[z][e]=!0),V(t,e,r)):I(t,e,r)},Y=function(t,e){g(t);for(var r,n=y(e=w(e)),o=0,i=n.length;i>o;)$(t,r=n[o++],e[r]);return t},Q=function(t,e){return void 0===e?O(t):Y(O(t),e)},X=function(t){var e=U.call(this,t=_(t,!0));return!(this===q&&o(D,t)&&!o(G,t))&&(!(e||!o(this,t)||!o(D,t)||o(this,z)&&this[z][t])||e)},Z=function(t,e){if(t=w(t),e=_(e,!0),t!==q||!o(D,e)||o(G,e)){var r=M(t,e);return!r||!o(D,e)||o(t,z)&&t[z][e]||(r.enumerable=!0),r}},tt=function(t){for(var e,r=T(w(t)),n=[],i=0;r.length>i;)o(D,e=r[i++])||e==z||e==c||n.push(e);return n},et=function(t){for(var e,r=t===q,n=T(r?G:w(t)),i=[],a=0;n.length>a;)!o(D,e=n[a++])||r&&!o(q,e)||i.push(D[e]);return i};B||(F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(r){this===q&&e.call(G,r),o(this,z)&&o(this[z],t)&&(this[z][t]=!1),V(this,t,j(1,r))};return i&&J&&V(q,t,{configurable:!0,set:e}),H(t)},u(F.prototype,"toString",function(){return this._k}),P.f=Z,k.f=$,r(177).f=S.f=tt,r(51).f=X,L.f=et,i&&!r(18)&&u(q,"propertyIsEnumerable",X,!0),d.f=function(t){return H(h(t))}),a(a.G+a.W+a.F*!B,{Symbol:F});for(var rt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;rt.length>nt;)h(rt[nt++]);for(var ot=E(h.store),it=0;ot.length>it;)v(ot[it++]);a(a.S+a.F*!B,"Symbol",{for:function(t){return o(C,t+="")?C[t]:C[t]=F(t)},keyFor:function(t){if(!K(t))throw TypeError(t+" is not a symbol!");for(var e in C)if(C[e]===t)return e},useSetter:function(){J=!0},useSimple:function(){J=!1}}),a(a.S+a.F*!B,"Object",{create:Q,defineProperty:$,defineProperties:Y,getOwnPropertyDescriptor:Z,getOwnPropertyNames:tt,getOwnPropertySymbols:et});var at=s(function(){L.f(1)});a(a.S+a.F*at,"Object",{getOwnPropertySymbols:function(t){return L.f(x(t))}}),N&&a(a.S+a.F*(!B||s(function(){var t=F();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))})),"JSON",{stringify:function(t){for(var e,r,n=[t],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=e=n[1],(b(e)||void 0!==t)&&!K(t))return m(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!K(e))return e}),n[1]=e,R.apply(N,n)}}),F.prototype[A]||r(5)(F.prototype,A,F.prototype.valueOf),l(F,"Symbol"),l(Math,"Math",!0),l(n.JSON,"JSON",!0)},273:function(t,e,r){var n=r(28),o=r(57),i=r(51);t.exports=function(t){var e=n(t),r=o.f;if(r)for(var a,u=r(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&e.push(a);return e}},274:function(t,e,r){var n=r(13),o=r(177).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?u(t):o(n(t))}},275:function(t,e,r){var n=r(51),o=r(23),i=r(13),a=r(38),u=r(8),c=r(41),s=Object.getOwnPropertyDescriptor;e.f=r(3)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!n.f.call(t,e),t[e])}},276:function(t,e,r){r(148)("asyncIterator")},277:function(t,e,r){r(148)("observable")},28:function(t,e,r){var n=r(42),o=r(32);t.exports=Object.keys||function(t){return n(t,o)}},3:function(t,e,r){t.exports=!r(12)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},31:function(t,e,r){var n=r(2),o=r(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:r(18)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},32:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},33:function(t,e,r){var n=r(15);t.exports=function(t){return Object(n(t))}},34:function(t,e,r){var n=r(14);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},35:function(t,e,r){var n=r(16),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},36:function(t,e,r){"use strict";var n=r(18),o=r(9),i=r(54),a=r(5),u=r(11),c=r(60),s=r(27),f=r(62),l=r(1)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,r,d,v,y,m){c(r,e,d);var g,b,x,w=function(t){if(!p&&t in S)return S[t];switch(t){case"keys":case"values":return function(){return new r(this,t)}}return function(){return new r(this,t)}},_=e+" Iterator",j="values"==v,O=!1,S=t.prototype,P=S[l]||S["@@iterator"]||v&&S[v],L=P||w(v),k=v?j?w("entries"):L:void 0,E="Array"==e?S.entries||P:P;if(E&&(x=f(E.call(new t)))!==Object.prototype&&x.next&&(s(x,_,!0),n||"function"==typeof x[l]||a(x,l,h)),j&&P&&"values"!==P.name&&(O=!0,L=function(){return P.call(this)}),n&&!m||!p&&!O&&S[l]||a(S,l,L),u[e]=L,u[_]=h,v)if(g={values:j?L:w("values"),keys:y?L:w("keys"),entries:k},m)for(b in g)b in S||i(S,b,g[b]);else o(o.P+o.F*(p||O),e,g);return g}},38:function(t,e,r){var n=r(6);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},39:function(e,r){e.exports=t},4:function(t,e,r){var n=r(6);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},41:function(t,e,r){t.exports=!r(3)&&!r(12)(function(){return 7!=Object.defineProperty(r(22)("div"),"a",{get:function(){return 7}}).a})},42:function(t,e,r){var n=r(8),o=r(13),i=r(46)(!1),a=r(20)("IE_PROTO");t.exports=function(t,e){var r,u=o(t),c=0,s=[];for(r in u)r!=a&&n(u,r)&&s.push(r);for(;e.length>c;)n(u,r=e[c++])&&(~i(s,r)||s.push(r));return s}},43:function(t,e,r){var n=r(0).document;t.exports=n&&n.documentElement},44:function(t,e,r){"use strict";function n(t){var e,r;this.promise=new t(function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n}),this.resolve=o(e),this.reject=o(r)}var o=r(19);t.exports.f=function(t){return new n(t)}},45:function(t,e,r){var n=r(14),o=r(1)("toStringTag"),i="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,r,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),o))?r:i?n(e):"Object"==(u=n(e))&&"function"==typeof e.callee?"Arguments":u}},46:function(t,e,r){var n=r(13),o=r(35),i=r(47);t.exports=function(t){return function(e,r,a){var u,c=n(e),s=o(c.length),f=i(a,s);if(t&&r!=r){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}}},47:function(t,e,r){var n=r(16),o=Math.max,i=Math.min;t.exports=function(t,e){return t=n(t),t<0?o(t+e,0):i(t,e)}},48:function(t,e,r){"use strict";var n=r(59)(!0);r(36)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},5:function(t,e,r){var n=r(10),o=r(23);t.exports=r(3)?function(t,e,r){return n.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},50:function(t,e,r){r(68);for(var n=r(0),o=r(5),i=r(11),a=r(1)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<u.length;c++){var s=u[c],f=n[s],l=f&&f.prototype;l&&!l[a]&&o(l,a,s),i[s]=i.Array}},51:function(t,e){e.f={}.propertyIsEnumerable},52:function(t,e,r){var n=r(4),o=r(61),i=r(32),a=r(20)("IE_PROTO"),u=function(){},c=function(){var t,e=r(22)("iframe"),n=i.length;for(e.style.display="none",r(43).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;n--;)delete c.prototype[i[n]];return c()};t.exports=Object.create||function(t,e){var r;return null!==t?(u.prototype=n(t),r=new u,u.prototype=null,r[a]=t):r=c(),void 0===e?r:o(r,e)}},54:function(t,e,r){t.exports=r(5)},56:function(t,e,r){var n=r(45),o=r(1)("iterator"),i=r(11);t.exports=r(2).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},57:function(t,e){e.f=Object.getOwnPropertySymbols},59:function(t,e,r){var n=r(16),o=r(15);t.exports=function(t){return function(e,r){var i,a,u=String(o(e)),c=n(r),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c),i<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536)}}},6:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},60:function(t,e,r){"use strict";var n=r(52),o=r(23),i=r(27),a={};r(5)(a,r(1)("iterator"),function(){return this}),t.exports=function(t,e,r){t.prototype=n(a,{next:o(1,r)}),i(t,e+" Iterator")}},61:function(t,e,r){var n=r(10),o=r(4),i=r(28);t.exports=r(3)?Object.defineProperties:function(t,e){o(t);for(var r,a=i(e),u=a.length,c=0;u>c;)n.f(t,r=a[c++],e[r]);return t}},62:function(t,e,r){var n=r(8),o=r(33),i=r(20)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),n(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},63:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},630:function(t,e,r){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},64:function(t,e,r){var n=r(4),o=r(19),i=r(1)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[i])?e:o(r)}},65:function(t,e,r){var n,o,i,a=r(17),u=r(97),c=r(43),s=r(22),f=r(0),l=f.process,p=f.setImmediate,h=f.clearImmediate,d=f.MessageChannel,v=f.Dispatch,y=0,m={},g=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},b=function(t){g.call(t.data)};p&&h||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return m[++y]=function(){u("function"==typeof t?t:Function(t),e)},n(y),y},h=function(t){delete m[t]},"process"==r(14)(l)?n=function(t){l.nextTick(a(g,t,1))}:v&&v.now?n=function(t){v.now(a(g,t,1))}:d?(o=new d,i=o.port2,o.port1.onmessage=b,n=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(n=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):n="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:p,clear:h}},66:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},67:function(t,e,r){var n=r(4),o=r(6),i=r(44);t.exports=function(t,e){if(n(t),o(e)&&e.constructor===t)return e;var r=i.f(t);return(0,r.resolve)(e),r.promise}},68:function(t,e,r){"use strict";var n=r(69),o=r(63),i=r(11),a=r(13);t.exports=r(36)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,r):"values"==e?o(0,t[r]):o(0,[r,t[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},69:function(t,e){t.exports=function(){}},70:function(t,e,r){t.exports={default:r(79),__esModule:!0}},71:function(t,e,r){t.exports={default:r(95),__esModule:!0}},73:function(t,e){},79:function(t,e,r){r(80),t.exports=r(2).Object.assign},8:function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},80:function(t,e,r){var n=r(9);n(n.S+n.F,"Object",{assign:r(81)})},81:function(t,e,r){"use strict";var n=r(3),o=r(28),i=r(57),a=r(51),u=r(33),c=r(34),s=Object.assign;t.exports=!s||r(12)(function(){var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(t){e[t]=t}),7!=s({},t)[r]||Object.keys(s({},e)).join("")!=n})?function(t,e){for(var r=u(t),s=arguments.length,f=1,l=i.f,p=a.f;s>f;)for(var h,d=c(arguments[f++]),v=l?o(d).concat(l(d)):o(d),y=v.length,m=0;y>m;)h=v[m++],n&&!p.call(d,h)||(r[h]=d[h]);return r}:s},82:function(t,e,r){var n=r(17),o=r(83),i=r(84),a=r(4),u=r(35),c=r(56),s={},f={},e=t.exports=function(t,e,r,l,p){var h,d,v,y,m=p?function(){return t}:c(t),g=n(r,l,e?2:1),b=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(i(m)){for(h=u(t.length);h>b;b++)if((y=e?g(a(d=t[b])[0],d[1]):g(t[b]))===s||y===f)return y}else for(v=m.call(t);!(d=v.next()).done;)if((y=o(v,g,d.value,e))===s||y===f)return y};e.BREAK=s,e.RETURN=f},83:function(t,e,r){var n=r(4);t.exports=function(t,e,r,o){try{return o?e(n(r)[0],r[1]):e(r)}catch(e){var i=t.return;throw void 0!==i&&n(i.call(t)),e}}},84:function(t,e,r){var n=r(11),o=r(1)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},85:function(t,e){t.exports=function(t,e,r,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(r+": incorrect invocation!");return t}},86:function(t,e,r){var n=r(5);t.exports=function(t,e,r){for(var o in e)r&&t[o]?t[o]=e[o]:n(t,o,e[o]);return t}},87:function(t,e,r){var n=r(1)("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var r=!1;try{var i=[7],a=i[n]();a.next=function(){return{done:r=!0}},i[n]=function(){return a},t(i)}catch(t){}return r}},873:function(t,e,r){"use strict";function n(t){t="FileUpload前端错误[xxid:"+(a("xxid")||a("cps_xxid"))+"]:"+t;l()("/muc/util/reportErr",{errMsg:t}).catch(function(t){})}function o(t,e){var r=t&&t.errMsg,n=!1;if(r&&s.ua.isWx){var o="";if(/permission\sdenied/.test(r)){var i=e.sourceType;i.indexOf("album")>-1?o="请在设置-应用-微信-权限中开启存储权限":i.indexOf("camera")>-1&&(o="请在设置-应用-微信-权限中开启相机权限")}else/offline\sverifying/.test(r)&&(o="微信接口注册失败,请刷新页面重试",n=!0);return c.a.reject({ret:999999,errmsg:o,isWxInterfaceFail:n})}return c.a.resolve()}function i(t,e){if(t=t||"0.0.0",e=e||"0.0.0",t===e)return 0;for(var r=t.split("."),n=e.split("."),o=Math.max(r.length,n.length),i=0;i<o;i++){var a=~~n[i],u=~~r[i];if(a<u)return-1;if(a>u)return 1}return-1}function a(t){var e=new RegExp("(?:^|;+|\\s+)"+t+"=([^;]*)"),r=document.cookie.match(e);return r?r[1]:""}e.b=n,e.a=o,e.c=i;var u=r(71),c=r.n(u),s=r(39),f=(r.n(s),r(106)),l=r.n(f)},9:function(t,e,r){var n=r(0),o=r(2),i=r(17),a=r(5),u=r(8),c=function(t,e,r){var s,f,l,p=t&c.F,h=t&c.G,d=t&c.S,v=t&c.P,y=t&c.B,m=t&c.W,g=h?o:o[e]||(o[e]={}),b=g.prototype,x=h?n:d?n[e]:(n[e]||{}).prototype;h&&(r=e);for(s in r)(f=!p&&x&&void 0!==x[s])&&u(g,s)||(l=f?x[s]:r[s],g[s]=h&&"function"!=typeof x[s]?r[s]:y&&f?i(l,n):m&&x[s]==l?function(t){var e=function(e,r,n){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,r)}return new t(e,r,n)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(l):v&&"function"==typeof l?i(Function.call,l):l,v&&((g.virtual||(g.virtual={}))[s]=l,t&c.R&&b&&!b[s]&&a(b,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},91:function(t,e,r){"use strict";var n=r(0),o=r(2),i=r(10),a=r(3),u=r(1)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:n[t];a&&e&&!e[u]&&i.f(e,u,{configurable:!0,get:function(){return this}})}},92:function(t,e,r){"use strict";e.__esModule=!0;var n=r(70),o=function(t){return t&&t.__esModule?t:{default:t}}(n);e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}},944:function(t,e,r){"use strict";function n(t,e){return t=g()({},j,t),i(t,e)}function o(t,e){var r=t.appId,n=t.url,o=t.ext,i=void 0===o?{}:o;return n?w()(n,d()({rawData:e.base64,serverid:e.serverId,appid:r},i)).then(function(t){var r=t.data,n=void 0===r?{}:r;return n.data=p()({},n.data,{dataBase:e.base64,localId:e.localId}),n},function(t){return y.a.resolve({ret:999999,errmsg:Object(_.getErrmsg)(t)})}):y.a.resolve({ret:999999,errmsg:"uploadOcr url is required"})}function i(t,e){return e.base64?a(t,e):e.localId?u(t,e.localId,e.serverId):e.file?c(t,e.file):void 0}function a(t,e){var r=e.base64,n=e.size,o=e.name,i=void 0===o?"":o,a=t.maxSize&&1024*t.maxSize*1024||null;if(a&&n&&n>a)return y.a.resolve({ret:10001,errmsg:"上传的文件大小不能超过"+(t.maxSize||"20")+"MB",data:{}});var u="/platform/file/uploadPicture";t.extParam=t.extParam||{};var c=d()({},t.extParam,{imgdata:r,bizid:t.bizId,name:i});return t.requrestUrl&&(u=t.requrestUrl),w()(u,c,6e5).then(function(t){var e=t.data,n=void 0===e?{}:e,o={ret:n.ret,errmsg:n.errmsg,data:{base64:r,response:n.data}};return Object(_.isObject)(n.data)&&n.data.url&&(o.data.url=n.data.url,o.data.origUrl=n.data.url.replace(/\?.*$/,"")),0===n.ret&&Object(_.isString)(n.data)&&(o.data.url=n.data,o.data.origUrl=n.data.replace(/\?.*$/,"")),o},function(t){return Object(b.b)("uploadBase64 error "+f()(t)),y.a.resolve({ret:999999,errmsg:Object(_.getErrmsg)(t),data:{base64:r}})})}function u(t,e,r){var n="/platform/file/uploadWxPicture";t.extParam=t.extParam||{};var o=d()({},t.extParam,{serverid:r,bizid:t.bizId,appid:t.appId});return t.requrestUrl&&(n=t.requrestUrl),w()(n,o,6e5).then(function(t){var n=t.data,o=void 0===n?{}:n,i={ret:o.ret,errmsg:o.errmsg,data:{localId:e,serverId:r,response:o.data}};return Object(_.isObject)(o.data)&&o.data.url&&(i.data.url=o.data.url,i.data.origUrl=o.data.url.replace(/\?.*$/,"")),0===o.ret&&Object(_.isString)(o.data)&&(i.data.url=o.data,i.data.origUrl=o.data.replace(/\?.*$/,"")),i},function(t){return Object(b.b)("uploadLocalId error "+f()(t)),y.a.resolve({ret:999999,errmsg:Object(_.getErrmsg)(t),data:{localId:e,serverId:r}})})}function c(t,e){var r=t.maxSize&&1024*t.maxSize*1024||O;if(e.size&&e.size>r)return y.a.resolve({ret:10001,errmsg:"上传的文件大小不能超过"+(t.maxSize||"20")+"MB",data:{}});var n="/platform/file/uploadFile";t.url&&(n=t.url);var o=new window.FormData;o.append("file",e),o.append("bizid",t.bizId);var i=t.requestParams;if(Object(_.isObject)(i))for(var a in i)o.append(a,i[a]);return Object(x.upload)(n,o,6e5).then(function(t){var r=t.data,n=void 0===r?{}:r,o={ret:n.ret,errmsg:n.errmsg,data:{name:e.name,type:e.type,size:e.size}};return 0===n.ret&&(n.data.file_url&&(n.data.url=n.data.file_url),o.data.name=n.data.name,o.data.url=n.data.url,o.data.origUrl=n.data.url.replace(/\?.*$/,""),o.data._rawData=n.data),o},function(t){return Object(b.b)("uploadOtherFile error "+f()(t)),y.a.resolve({ret:999999,errmsg:Object(_.getErrmsg)(t),data:{}})})}e.a=n,e.b=o;var s=r(111),f=r.n(s),l=r(70),p=r.n(l),h=r(92),d=r.n(h),v=r(71),y=r.n(v),m=r(264),g=r.n(m),b=r(873),x=r(106),w=r.n(x),_=r(39),j=(r.n(_),{appId:"",bizId:""}),O=20971520},945:function(t,e,r){t.exports={default:r(946),__esModule:!0}},946:function(t,e,r){r(947),t.exports=r(2).Number.isNaN},947:function(t,e,r){var n=r(9);n(n.S,"Number",{isNaN:function(t){return t!=t}})},95:function(t,e,r){r(73),r(48),r(50),r(96),r(100),r(101),t.exports=r(2).Promise},96:function(t,e,r){"use strict";var n,o,i,a,u=r(18),c=r(0),s=r(17),f=r(45),l=r(9),p=r(6),h=r(19),d=r(85),v=r(82),y=r(64),m=r(65).set,g=r(98)(),b=r(44),x=r(66),w=r(99),_=r(67),j=c.TypeError,O=c.process,S=O&&O.versions,P=S&&S.v8||"",L=c.Promise,k="process"==f(O),E=function(){},M=o=b.f,I=!!function(){try{var t=L.resolve(1),e=(t.constructor={})[r(1)("species")]=function(t){t(E,E)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof e&&0!==P.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),T=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},F=function(t,e){if(!t._n){t._n=!0;var r=t._c;g(function(){for(var n=t._v,o=1==t._s,i=0;r.length>i;)!function(e){var r,i,a,u=o?e.ok:e.fail,c=e.resolve,s=e.reject,f=e.domain;try{u?(o||(2==t._h&&z(t),t._h=1),!0===u?r=n:(f&&f.enter(),r=u(n),f&&(f.exit(),a=!0)),r===e.promise?s(j("Promise-chain cycle")):(i=T(r))?i.call(r,c,s):c(r)):s(n)}catch(t){f&&!a&&f.exit(),s(t)}}(r[i++]);t._c=[],t._n=!1,e&&!t._h&&N(t)})}},N=function(t){m.call(c,function(){var e,r,n,o=t._v,i=R(t);if(i&&(e=x(function(){k?O.emit("unhandledRejection",o,t):(r=c.onunhandledrejection)?r({promise:t,reason:o}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",o)}),t._h=k||R(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},z=function(t){m.call(c,function(){var e;k?O.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},A=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),F(e,!0))},U=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw j("Promise can't be resolved itself");(e=T(t))?g(function(){var n={_w:r,_d:!1};try{e.call(t,s(U,n,1),s(A,n,1))}catch(t){A.call(n,t)}}):(r._v=t,r._s=1,F(r,!1))}catch(t){A.call({_w:r,_d:!1},t)}}};I||(L=function(t){d(this,L,"Promise","_h"),h(t),n.call(this);try{t(s(U,this,1),s(A,this,1))}catch(t){A.call(this,t)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r(86)(L.prototype,{then:function(t,e){var r=M(y(this,L));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=k?O.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&F(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n;this.promise=t,this.resolve=s(U,t,1),this.reject=s(A,t,1)},b.f=M=function(t){return t===L||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!I,{Promise:L}),r(27)(L,"Promise"),r(91)("Promise"),a=r(2).Promise,l(l.S+l.F*!I,"Promise",{reject:function(t){var e=M(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(u||!I),"Promise",{resolve:function(t){return _(u&&this===a?L:this,t)}}),l(l.S+l.F*!(I&&r(87)(function(t){L.all(t).catch(E)})),"Promise",{all:function(t){var e=this,r=M(e),n=r.resolve,o=r.reject,i=x(function(){var r=[],i=0,a=1;v(t,!1,function(t){var u=i++,c=!1;r.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,r[u]=t,--a||n(r))},o)}),--a||n(r)});return i.e&&o(i.v),r.promise},race:function(t){var e=this,r=M(e),n=r.reject,o=x(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},97:function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},98:function(t,e,r){var n=r(0),o=r(65).set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,c="process"==r(14)(a);t.exports=function(){var t,e,r,s=function(){var n,o;for(c&&(n=a.domain)&&n.exit();t;){o=t.fn,t=t.next;try{o()}catch(n){throw t?r():e=void 0,n}}e=void 0,n&&n.enter()};if(c)r=function(){a.nextTick(s)};else if(!i||n.navigator&&n.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);r=function(){f.then(s)}}else r=function(){o.call(n,s)};else{var l=!0,p=document.createTextNode("");new i(s).observe(p,{characterData:!0}),r=function(){p.data=l=!l}}return function(n){var o={fn:n,next:void 0};e&&(e.next=o),t||(t=o,r()),e=o}}},99:function(t,e,r){var n=r(0),o=n.navigator;t.exports=o&&o.userAgent||""}})});