@xysfe/actui
Version:
A fantastic mobile ui lib implement by Vue
1 lines • 72.7 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.FigurePic=e():t.FigurePic=e()}("undefined"!=typeof self?self:this,function(){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="../lib",e(e.s=1841)}({0:function(t,e){var r=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=r)},10:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},100:function(t,e,r){t.exports={default:r(101),__esModule:!0}},101:function(t,e,r){r(55),t.exports=r(0).Object.getOwnPropertySymbols},106:function(t,e,r){"use strict";e.__esModule=!0;var n=r(28),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}},107:function(t,e,r){var n=r(26),o=r(3)("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}},11:function(t,e,r){var n=r(47),o=r(29);t.exports=function(t){return n(o(t))}},110:function(t,e,r){var n=r(9),o=r(40),i=r(3)("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)}},111:function(t,e,r){var n,o,i,a=r(38),u=r(146),c=r(60),s=r(41),f=r(2),l=f.process,p=f.setImmediate,d=f.clearImmediate,h=f.MessageChannel,v=f.Dispatch,m=0,y={},g=function(){var t=+this;if(y.hasOwnProperty(t)){var e=y[t];delete y[t],e()}},b=function(t){g.call(t.data)};p&&d||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return y[++m]=function(){u("function"==typeof t?t:Function(t),e)},n(m),m},d=function(t){delete y[t]},"process"==r(26)(l)?n=function(t){l.nextTick(a(g,t,1))}:v&&v.now?n=function(t){v.now(a(g,t,1))}:h?(o=new h,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:d}},112:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},113:function(t,e,r){var n=r(9),o=r(10),i=r(68);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}},114:function(t,e,r){"use strict";function n(t){t.interceptors.response.use(function(t){return t},function(t){var e={403:"请求被拒绝,请联系客服处理",404:"您访问的资源不可用,请联系客服处理",502:"服务器网关出错,请稍后重试",503:"服务器维护中,请稍后重试",504:"服务器请求超时,请稍后重试"},r="";return r=t&&t.response&&t.response.status?e[t.response.status]?e[t.response.status]+"("+t.response.status+")":"请求失败,请稍后重试("+t.response.status+")":t&&t.message&&/timeout/i.test(t.message)?"请求超时,请稍后重试":"请求失败,请稍后重试",u.a.reject(new Error(r))})}function o(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new u.a(function(o,i){var a=s.a.create();n(a),a.request({method:"post",url:t,data:e,timeout:r,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest"}}).then(function(t){o(t)}).catch(function(t){i(t)})})}function i(t){return s.a.get(t).then(function(t){return u.a.resolve(t.data)})}e.a=n,e.d=o,e.c=i;var a=r(52),u=r.n(a),c=r(164),s=r.n(c);e.b=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6e4;return new u.a(function(o,i){var a=s.a.create();n(a),a.request({method:"post",url:t,data:e,timeout:r,withCredentials:!0,headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/x-www-form-urlencoded"},transformRequest:[function(t){function e(t,e){var r=0,n=t.length;if(void 0===n||"[object Function]"===Object.prototype.toString.call(t)){for(var o in t)if(!1===e.call(t[o],o,t[o]))break}else for(var i=t[0];r<n&&!1!==e.call(i,r,i);i=t[++r]);return t}function r(t,n,o){var i=void 0,a="[object Array]"===Object.prototype.toString.call(n),u="[object Object]"===Object.prototype.toString.call(n);e(n,function(e,n){i=Object.prototype.toString.call(n),o&&(e=o+"["+(u||"[object Object]"===i||"[object Array]"===i?e:"")+"]"),!o&&a?t.add(n.name,n.value):"[object Array]"===i||"[object Object]"===i?r(t,n,e):t.add(e,n)})}if(t){return function(t){var e=[];return e.add=function(t,e){"[object Function]"===Object.prototype.toString.call(e)&&(e=e()),null==e&&(e=""),this.push(encodeURIComponent(t)+"="+encodeURIComponent(e))},r(e,t),e.join("&").replace(/%20/g,"+")}(t)}}]}).then(function(t){o(t)}).catch(function(t){i(t)})})}},115:function(t,e,r){var n=r(107),o=r(3)("iterator"),i=r(18);t.exports=r(0).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[n(t)]}},12:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},123:function(t,e,r){var n=r(38),o=r(136),i=r(137),a=r(9),u=r(59),c=r(115),s={},f={},e=t.exports=function(t,e,r,l,p){var d,h,v,m,y=p?function(){return t}:c(t),g=n(r,l,e?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(i(y)){for(d=u(t.length);d>b;b++)if((m=e?g(a(h=t[b])[0],h[1]):g(t[b]))===s||m===f)return m}else for(v=y.call(t);!(h=v.next()).done;)if((m=o(v,g,h.value,e))===s||m===f)return m};e.BREAK=s,e.RETURN=f},125:function(t,e,r){"use strict";t.exports=function(t,e){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return t.apply(e,r)}}},126:function(t,e,r){"use strict";function n(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=r(17);t.exports=function(t,e,r){if(!e)return t;var i;if(r)i=r(e);else if(o.isURLSearchParams(e))i=e.toString();else{var a=[];o.forEach(e,function(t,e){null!==t&&void 0!==t&&(o.isArray(t)?e+="[]":t=[t],o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),a.push(n(e)+"="+n(t))}))}),i=a.join("&")}if(i){var u=t.indexOf("#");-1!==u&&(t=t.slice(0,u)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}},1262:function(t,e,r){t.exports={default:r(1263),__esModule:!0}},1263:function(t,e,r){r(1264),t.exports=r(0).Number.isNaN},1264:function(t,e,r){var n=r(13);n(n.S,"Number",{isNaN:function(t){return t!=t}})},127:function(t,e,r){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},128:function(t,e,r){"use strict";(function(e){function n(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o=r(17),i=r(170),a={"Content-Type":"application/x-www-form-urlencoded"},u={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=r(129):void 0!==e&&"[object process]"===Object.prototype.toString.call(e)&&(t=r(129)),t}(),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(n(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(n(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(t){u.headers[t]={}}),o.forEach(["post","put","patch"],function(t){u.headers[t]=o.merge(a)}),t.exports=u}).call(e,r(153))},129:function(t,e,r){"use strict";var n=r(17),o=r(171),i=r(126),a=r(173),u=r(176),c=r(177),s=r(130);t.exports=function(t){return new Promise(function(e,f){var l=t.data,p=t.headers;n.isFormData(l)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",v=t.auth.password||"";p.Authorization="Basic "+btoa(h+":"+v)}var m=a(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),i(m,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,n=t.responseType&&"text"!==t.responseType?d.response:d.responseText,i={data:n,status:d.status,statusText:d.statusText,headers:r,config:t,request:d};o(e,f,i),d=null}},d.onabort=function(){d&&(f(s("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){f(s("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),f(s(e,t,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var y=r(178),g=(t.withCredentials||c(m))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;g&&(p[t.xsrfHeaderName]=g)}if("setRequestHeader"in d&&n.forEach(p,function(t,e){void 0===l&&"content-type"===e.toLowerCase()?delete p[e]:d.setRequestHeader(e,t)}),n.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){d&&(d.abort(),f(t),d=null)}),void 0===l&&(l=null),d.send(l)})}},13:function(t,e,r){var n=r(2),o=r(0),i=r(38),a=r(7),u=r(6),c=function(t,e,r){var s,f,l,p=t&c.F,d=t&c.G,h=t&c.S,v=t&c.P,m=t&c.B,y=t&c.W,g=d?o:o[e]||(o[e]={}),b=g.prototype,w=d?n:h?n[e]:(n[e]||{}).prototype;d&&(r=e);for(s in r)(f=!p&&w&&void 0!==w[s])&&u(g,s)||(l=f?w[s]:r[s],g[s]=d&&"function"!=typeof w[s]?r[s]:m&&f?i(l,n):y&&w[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},130:function(t,e,r){"use strict";var n=r(172);t.exports=function(t,e,r,o,i){var a=new Error(t);return n(a,e,r,o,i)}},131:function(t,e,r){"use strict";var n=r(17);t.exports=function(t,e){e=e||{};var r={},o=["url","method","params","data"],i=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];n.forEach(o,function(t){void 0!==e[t]&&(r[t]=e[t])}),n.forEach(i,function(o){n.isObject(e[o])?r[o]=n.deepMerge(t[o],e[o]):void 0!==e[o]?r[o]=e[o]:n.isObject(t[o])?r[o]=n.deepMerge(t[o]):void 0!==t[o]&&(r[o]=t[o])}),n.forEach(a,function(n){void 0!==e[n]?r[n]=e[n]:void 0!==t[n]&&(r[n]=t[n])});var u=o.concat(i).concat(a),c=Object.keys(e).filter(function(t){return-1===u.indexOf(t)});return n.forEach(c,function(n){void 0!==e[n]?r[n]=e[n]:void 0!==t[n]&&(r[n]=t[n])}),r}},132:function(t,e,r){"use strict";function n(t){this.message=t}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,t.exports=n},136:function(t,e,r){var n=r(9);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}}},137:function(t,e,r){var n=r(18),o=r(3)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||i[o]===t)}},139: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}},140:function(t,e,r){var n=r(7);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}},141:function(t,e,r){var n=r(3)("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}},142:function(t,e,r){"use strict";var n=r(2),o=r(0),i=r(8),a=r(5),u=r(3)("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}})}},144:function(t,e,r){r(61),r(53),r(56),r(145),r(149),r(150),t.exports=r(0).Promise},145:function(t,e,r){"use strict";var n,o,i,a,u=r(16),c=r(2),s=r(38),f=r(107),l=r(13),p=r(10),d=r(40),h=r(139),v=r(123),m=r(110),y=r(111).set,g=r(147)(),b=r(68),w=r(112),x=r(148),j=r(113),O=c.TypeError,S=c.process,_=S&&S.versions,E=_&&_.v8||"",P=c.Promise,k="process"==f(S),T=function(){},L=o=b.f,A=!!function(){try{var t=P.resolve(1),e=(t.constructor={})[r(3)("species")]=function(t){t(T,T)};return(k||"function"==typeof PromiseRejectionEvent)&&t.then(T)instanceof e&&0!==E.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),I=function(t){var e;return!(!p(t)||"function"!=typeof(e=t.then))&&e},R=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&&C(t),t._h=1),!0===u?r=n:(f&&f.enter(),r=u(n),f&&(f.exit(),a=!0)),r===e.promise?s(O("Promise-chain cycle")):(i=I(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&&M(t)})}},M=function(t){y.call(c,function(){var e,r,n,o=t._v,i=N(t);if(i&&(e=w(function(){k?S.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||N(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},C=function(t){y.call(c,function(){var e;k?S.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},U=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()),R(e,!0))},F=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw O("Promise can't be resolved itself");(e=I(t))?g(function(){var n={_w:r,_d:!1};try{e.call(t,s(F,n,1),s(U,n,1))}catch(t){U.call(n,t)}}):(r._v=t,r._s=1,R(r,!1))}catch(t){U.call({_w:r,_d:!1},t)}}};A||(P=function(t){h(this,P,"Promise","_h"),d(t),n.call(this);try{t(s(F,this,1),s(U,this,1))}catch(t){U.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(140)(P.prototype,{then:function(t,e){var r=L(m(this,P));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=k?S.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&R(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(F,t,1),this.reject=s(U,t,1)},b.f=L=function(t){return t===P||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!A,{Promise:P}),r(27)(P,"Promise"),r(142)("Promise"),a=r(0).Promise,l(l.S+l.F*!A,"Promise",{reject:function(t){var e=L(this);return(0,e.reject)(t),e.promise}}),l(l.S+l.F*(u||!A),"Promise",{resolve:function(t){return j(u&&this===a?P:this,t)}}),l(l.S+l.F*!(A&&r(141)(function(t){P.all(t).catch(T)})),"Promise",{all:function(t){var e=this,r=L(e),n=r.resolve,o=r.reject,i=w(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=L(e),n=r.reject,o=w(function(){v(t,!1,function(t){e.resolve(t).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},146: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)}},147:function(t,e,r){var n=r(2),o=r(111).set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,u=n.Promise,c="process"==r(26)(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}}},148:function(t,e,r){var n=r(2),o=n.navigator;t.exports=o&&o.userAgent||""},149:function(t,e,r){"use strict";var n=r(13),o=r(0),i=r(2),a=r(110),u=r(113);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)}})},15:function(t,e,r){var n=r(50),o=r(33);t.exports=Object.keys||function(t){return n(t,o)}},150:function(t,e,r){"use strict";var n=r(13),o=r(68),i=r(112);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}})},153:function(t,e){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function o(t){if(f===setTimeout)return setTimeout(t,0);if((f===r||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function i(t){if(l===clearTimeout)return clearTimeout(t);if((l===n||!l)&&clearTimeout)return l=clearTimeout,clearTimeout(t);try{return l(t)}catch(e){try{return l.call(null,t)}catch(e){return l.call(this,t)}}}function a(){v&&d&&(v=!1,d.length?h=d.concat(h):m=-1,h.length&&u())}function u(){if(!v){var t=o(a);v=!0;for(var e=h.length;e;){for(d=h,h=[];++m<e;)d&&d[m].run();m=-1,e=h.length}d=null,v=!1,i(t)}}function c(t,e){this.fun=t,this.array=e}function s(){}var f,l,p=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:r}catch(t){f=r}try{l="function"==typeof clearTimeout?clearTimeout:n}catch(t){l=n}}();var d,h=[],v=!1,m=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];h.push(new c(t,e)),1!==h.length||v||o(u)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=s,p.addListener=s,p.once=s,p.off=s,p.removeListener=s,p.removeAllListeners=s,p.emit=s,p.prependListener=s,p.prependOnceListener=s,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},16:function(t,e){t.exports=!0},164:function(t,e,r){t.exports=r(165)},165:function(t,e,r){"use strict";function n(t){var e=new a(t),r=i(a.prototype.request,e);return o.extend(r,a.prototype,e),o.extend(r,e),r}var o=r(17),i=r(125),a=r(166),u=r(131),c=r(128),s=n(c);s.Axios=a,s.create=function(t){return n(u(s.defaults,t))},s.Cancel=r(132),s.CancelToken=r(179),s.isCancel=r(127),s.all=function(t){return Promise.all(t)},s.spread=r(180),t.exports=s,t.exports.default=s},166:function(t,e,r){"use strict";function n(t){this.defaults=t,this.interceptors={request:new a,response:new a}}var o=r(17),i=r(126),a=r(167),u=r(168),c=r(131);n.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=c(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[u,void 0],r=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)r=r.then(e.shift(),e.shift());return r},n.prototype.getUri=function(t){return t=c(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},o.forEach(["delete","get","head","options"],function(t){n.prototype[t]=function(e,r){return this.request(o.merge(r||{},{method:t,url:e}))}}),o.forEach(["post","put","patch"],function(t){n.prototype[t]=function(e,r,n){return this.request(o.merge(n||{},{method:t,url:e,data:r}))}}),t.exports=n},167:function(t,e,r){"use strict";function n(){this.handlers=[]}var o=r(17);n.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){o.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=n},168:function(t,e,r){"use strict";function n(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var o=r(17),i=r(169),a=r(127),u=r(128);t.exports=function(t){return n(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),o.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||u.adapter)(t).then(function(e){return n(t),e.data=i(e.data,e.headers,t.transformResponse),e},function(e){return a(e)||(n(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},169:function(t,e,r){"use strict";var n=r(17);t.exports=function(t,e,r){return n.forEach(r,function(r){t=r(t,e)}),t}},17:function(t,e,r){"use strict";function n(t){return"[object Array]"===_.call(t)}function o(t){return void 0===t}function i(t){return null!==t&&!o(t)&&null!==t.constructor&&!o(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function a(t){return"[object ArrayBuffer]"===_.call(t)}function u(t){return"undefined"!=typeof FormData&&t instanceof FormData}function c(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function s(t){return"string"==typeof t}function f(t){return"number"==typeof t}function l(t){return null!==t&&"object"==typeof t}function p(t){return"[object Date]"===_.call(t)}function d(t){return"[object File]"===_.call(t)}function h(t){return"[object Blob]"===_.call(t)}function v(t){return"[object Function]"===_.call(t)}function m(t){return l(t)&&v(t.pipe)}function y(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function g(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function b(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function w(t,e){if(null!==t&&void 0!==t)if("object"!=typeof t&&(t=[t]),n(t))for(var r=0,o=t.length;r<o;r++)e.call(null,t[r],r,t);else for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.call(null,t[i],i,t)}function x(){function t(t,r){"object"==typeof e[r]&&"object"==typeof t?e[r]=x(e[r],t):e[r]=t}for(var e={},r=0,n=arguments.length;r<n;r++)w(arguments[r],t);return e}function j(){function t(t,r){"object"==typeof e[r]&&"object"==typeof t?e[r]=j(e[r],t):e[r]="object"==typeof t?j({},t):t}for(var e={},r=0,n=arguments.length;r<n;r++)w(arguments[r],t);return e}function O(t,e,r){return w(e,function(e,n){t[n]=r&&"function"==typeof e?S(e,r):e}),t}var S=r(125),_=Object.prototype.toString;t.exports={isArray:n,isArrayBuffer:a,isBuffer:i,isFormData:u,isArrayBufferView:c,isString:s,isNumber:f,isObject:l,isUndefined:o,isDate:p,isFile:d,isBlob:h,isFunction:v,isStream:m,isURLSearchParams:y,isStandardBrowserEnv:b,forEach:w,merge:x,deepMerge:j,extend:O,trim:g}},170:function(t,e,r){"use strict";var n=r(17);t.exports=function(t,e){n.forEach(t,function(r,n){n!==e&&n.toUpperCase()===e.toUpperCase()&&(t[e]=r,delete t[n])})}},171:function(t,e,r){"use strict";var n=r(130);t.exports=function(t,e,r){var o=r.config.validateStatus;!o||o(r.status)?t(r):e(n("Request failed with status code "+r.status,r.config,null,r.request,r))}},172:function(t,e,r){"use strict";t.exports=function(t,e,r,n,o){return t.config=e,r&&(t.code=r),t.request=n,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},173:function(t,e,r){"use strict";var n=r(174),o=r(175);t.exports=function(t,e){return t&&!n(e)?o(t,e):e}},174:function(t,e,r){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},175:function(t,e,r){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},176:function(t,e,r){"use strict";var n=r(17),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,r,i,a={};return t?(n.forEach(t.split("\n"),function(t){if(i=t.indexOf(":"),e=n.trim(t.substr(0,i)).toLowerCase(),r=n.trim(t.substr(i+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([r]):a[e]?a[e]+", "+r:r}}),a):a}},177:function(t,e,r){"use strict";var n=r(17);t.exports=n.isStandardBrowserEnv()?function(){function t(t){var e=t;return r&&(o.setAttribute("href",e),e=o.href),o.setAttribute("href",e),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var e,r=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return e=t(window.location.href),function(r){var o=n.isString(r)?t(r):r;return o.protocol===e.protocol&&o.host===e.host}}():function(){return function(){return!0}}()},178:function(t,e,r){"use strict";var n=r(17);t.exports=n.isStandardBrowserEnv()?function(){return{write:function(t,e,r,o,i,a){var u=[];u.push(t+"="+encodeURIComponent(e)),n.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),n.isString(o)&&u.push("path="+o),n.isString(i)&&u.push("domain="+i),!0===a&&u.push("secure"),document.cookie=u.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},179:function(t,e,r){"use strict";function n(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var r=this;t(function(t){r.reason||(r.reason=new o(t),e(r.reason))})}var o=r(132);n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var t;return{token:new n(function(e){t=e}),cancel:t}},t.exports=n},18:function(t,e){t.exports={}},180:function(t,e,r){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},1841:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(207),o=r.n(n),i=r(208),a=r.n(i),u=r(28),c=r.n(u),s=r(52),f=r.n(s),l=r(378),p=r(255),d=r(1842),h=this,v={type:"face",bizId:1010,compress:!1,compressSize:23},m=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||""})}})})},y=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=c()({},v,t);return m(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,h)}));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,d.a.dataURLtoFile(a);case 4:return e=t.sent,t.next=7,d.a.compressAccurately(e,i.compressSize);case 7:return r=t.sent,t.next=10,d.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,h,[[1,14]])}));return function(){return t.apply(this,arguments)}}();e.default={startPic:m,uploadPic:y}},1842:function(t,e,r){"use strict";var n=r(1262),o=r.n(n),i=r(28),a=r.n(i),u=r(79),c=r.n(u),s=r(207),f=r.n(s),l=r(208),p=r.n(l),d=r(52),h=r.n(d),v=r(214),m=r.n(v),y=function(){function t(e){m()(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 h.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 h.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,d,h,v,m,y,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,d=.5,h=void 0,v=[null,null],m=1;case 28:if(!(m<=7)){t.next=50;break}return t.next=31,this.canvastoDataURL(l,d,u);case 31:if(h=t.sent,y=h.length*p,7!==m){t.next=36;break}return(r.max<y||r.min>y)&&(h=[h].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<y)){t.next=41;break}v[1]=h,d-=Math.pow(.5,m+1),t.next=47;break;case 41:if(!(r.min>y)){t.next=46;break}v[0]=h,d+=Math.pow(.5,m+1),t.next=47;break;case 46:return t.abrupt("break",50);case 47:m++,t.next=28;break;case 50:return t.next=52,this.dataURLtoFile(h,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 y({defaultMimeType:"image/jpeg"})},19:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},2: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)},207:function(t,e,r){t.exports=r(215)},208:function(t,e,r){"use strict";e.__esModule=!0;var n=r(52),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")})}}},214: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")}},215: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(216),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(t){n.regeneratorRuntime=void 0}},216: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 d(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=_;return function(i,a){if(o===P)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===T)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===_)throw o=k,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=P;var s=n(t,e,r);if("normal"===s.type){if(o=r.done?k:E,s.arg===T)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===m){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=m,f(t,e),"throw"===e.method))return T;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return T}var o=n(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,T;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=m),e.delegate=null,T):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,T)}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 d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function h(t){if(t){var e=t[w];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=m,e.done=!0,e};return n.next=n}}return{next:v}}function v(){return{value:m,done:!0}}var m,y=Object.prototype,g=y.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},w=b.iterator||"@@iterator",x=b.asyncIterator||"@@asyncIterator",j=b.toStringTag||"@@toStringTag",O="object"==typeof t,S=e.regeneratorRuntime;if(S)return void(O&&(t.exports=S));S=e.regeneratorRuntime=O?t.exports:{},S.wrap=r;var _="suspendedStart",E="suspendedYield",P="executing",k="completed",T={},L={};L[w]=function(){return this};var A=Object.getPrototypeOf,I=A&&A(A(h([])));I&&I!==y&&g.call(I,w)&&(L=I);var R=a.prototype=o.prototype=Object.create(L);i.prototype=R.constructor=a,a.constructor=i,a[j]=i.displayName="GeneratorFunction",S.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===i||"GeneratorFunction"===(e.displayName||e.name))},S.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,j in t||(t[j]="GeneratorFunction")),t.prototype=Object.create(R),t},S.awrap=function(t){return{__await:t}},u(c.prototype),c.prototype[x]=function(){return this},S.AsyncIterator=c,S.async=function(t,e,n,o){var i=new c(r(t,e,n,o));return S.isGeneratorFunction(e)?i:i.next().then(function(t){return t.done?t.value:i.next()})},u(R),R[j]="Generator",R[w]=function(){return this},R.toString=function(){return"[object Generator]"},S.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}},S.values=h,d.prototype={constructor:d,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=m,this.done=!1,this.delegate=null,this.method="next",this.arg=m,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=m)},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=m),!!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,T):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),T},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),T}},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:h(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=m),T}}}(function(){return this}()||Function("return this")())},23:function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+n).toString(36))}},24:function(t,e,r){var n=r(29);t.exports=function(t){return Object(n(t))}},25:function(t,e){e.f={}.propertyIsEnumerable},255:function(t,e,r){"use strict";function n(t){t="FileUpload前端错误[xxid:"+(a("xxid")||a("cps_xxid"))+"]:"+t;Object(f.b)("/muc/util/reportErr",{errMsg:t}).catch(function(t){})}function o(t,e){var r=t&&t.errMsg,n=!1;if(r&&s.K.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(52),c=r.n(u),s=r(4),f=r(114)},26:function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},27:function(t,e,r){var n=r(8).f,o=r(6),i=r(3)("toStringTag");t.exports=function(t,e,r){t&&!o(t=r?t:t.prototype,i)&&n(t,i,{configurable:!0,value:e})}},28:function(t,e,r){t.exports={default:r(82),__esModule:!0}},29:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},3:function(t,e,r){var n=r(32)("wks"),o=r(23),i=r(2).Symbol,a="function"==typeof i;(t.exports=function(t){return n[t]||(n[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=n},30:function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},31:function(t,e,r){var n=r(32)("keys"),o=r(23);t.exports=function(t){return n[t]||(n[t]=o(t))}},32:function(t,e,r){var n=r(0),o=r(2),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(16)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},33:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},34:function(t,e,r){var n=r(10);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")}},35:function(t,e){e.f=Object.getOwnPropertySymbols},36:function(t,e,r){e.f=r(3)},37:function(t,e,r){var n=r(2),o=r(0),i=r(16),a=r(36),u=r(8).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)})}},378:function(t,e,r){"use strict";function n(t,e){return t=Object(y.a)({},x,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?Object(b.b)(n,h()({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 m.a.resolve({ret:999999,errmsg:Object(w.k)(t)})}):m.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 m.a.resolve({ret:10001,errmsg:"上传的文件大小不能超过"+(t.maxSize||"20")+"MB",data:{}});var u="/platform/file/uploadPicture";t.extParam=t.extParam||{};var c=h()({},t.extParam,{imgdata:r,bizid:t.bizId,name:i});return t.requrestUrl&&(u=t.requrestUrl),Object(b.b)(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(w.A)(n.data)&&n.data.url&&(o.data.url=n.data.url,o.data.origUrl=n.data.url.replace(/\?.*$/,"")),0===n.ret&&Object(w.D)(n.data)&&(o.data.url=n.data,o.data.origUrl=n.data.replace(/\?.*$/,"")),o},function(t){return Object(g.b)("uploadBase64 error "+f()(t)),m.a.resolve({ret:999999,errmsg:Object(w.k)(t),data:{base64:r}})})}function u(t,e,r){var n="/platform/file/uploadWxPicture";t.extParam=t.extParam||{};var o=h()({},t.extParam,{serverid:r,bizid:t.bizId,appid:t.appId});return t.requrestUrl&&(n=t.requrestUrl),Object(b.b)(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(w.A)(o.data)&&o.data.url&&(i.data.url=o.data.url,i.data.origUrl=o.data.url.replace(/\?.*$/,"")),0===o.ret&&Object(w.D)(o.data)&&(i.data.url=o.data,i.data.origUrl=o.data.replace(/\?.*$/,"")),i},function(t){return Object(g.b)("uploadLocalId error "+f()(t)),m.a.resolve({ret:999999,errmsg:Object(w.k)(t),data:{localId:e,serverId:r}})})}function c(t,e){var r=t.maxSize&&1024*t.maxSize*1024||j;if(e.size&&e.size>r)return m.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(w.A)(i))for(var a in i)o.append(a,i[a]);return Object(b.d)(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(g.b)("uploadOtherFile error "+f()(t)),m.a.resolve({ret:999999,errmsg:Object(w.k)(t),data:{}})})}e.a=n,e.b=o;var s=r(58),f=r.n(s),l=r(28),p=r.n(l),d=r(106),h=r.n(d),v=r(52),m=r.n(v),y=r(62),g=r(255),b=r(114),w=r(4),x={appId:"",bizId:""},j=20971520},38:function(t,e,r){var n=r(40);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)}}},4:function(t,e,r){"use strict";function n(t,e){if(t.findIndex)return t.findIndex(e);var r=-1;return t.some(function(t,n,o){var i=e.call(this,t,n,o);if(i)return r=n,i}),r}function o(t){return t?JSON.parse(W()(t)):t}function i(t,e){for(var r in e)t[r]&&"object"===B()(t[r])?i(t[r],e[r]):t[r]=e[r]}function a(t){return Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function u(t){return"[object String]"===Object.prototype.toString.call(t)}function c(t){return"[object Number]"===Object.prototype.toString.call(t)}function s(t){return"[object Object]"===Object.prototype.toString.call(t)}function f(t){return"[object Boolean]"===Object.prototype.toString.call(t)}function l(t){return null===t}function