(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64ec1be6"],{"09bb":function(e,t,r){"use strict";r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return n})),r.d(t,"d",(function(){return o})),r.d(t,"c",(function(){return s}));var i=r("f0e1");function a(e){return Object(i["a"])({url:"qiniu/token",method:"get",params:e})}function n(e){return Object(i["a"])({url:"send_verify_code",method:"get",params:e})}function o(e,t){return Object(i["a"])({url:"worksites/".concat(e),method:"get",params:t})}function s(e){return Object(i["a"])({url:"worksitenodes",method:"get",params:e})}},"7be5":function(e,t,r){"use strict";var i=r("7139");t["a"]={customer:i["a"].baseApi+"api/aftersale/customer/",work:i["a"].baseApi+"worker/",weixin:i["a"].baseUrl+"api/weixin/"}},"7c8d":function(e,t,r){ /*! * Compressor.js v1.2.1 * https://fengyuanchen.github.io/compressorjs * * Copyright 2018-present Chen Fengyuan * Released under the MIT license * * Date: 2023-02-28T14:09:41.732Z */ (function(t,r){e.exports=r()})(0,(function(){"use strict";function e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function t(t){for(var r=1;r0&&e<1/0},g=Array.prototype.slice;function b(e){return Array.from?Array.from(e):g.call(e)}var v=/^image\/.+$/;function w(e){return v.test(e)}function y(e){var t=w(e)?e.substr(6):"";return"jpeg"===t&&(t="jpg"),".".concat(t)}var k=String.fromCharCode;function x(e,t,r){var i,a="";for(r+=t,i=t;i0)r.push(k.apply(null,b(a.subarray(0,i)))),a=a.subarray(i);return"data:".concat(t,";base64,").concat(F(r.join("")))}function T(e){var t,r=new DataView(e);try{var i,a,n;if(255===r.getUint8(0)&&216===r.getUint8(1)){var o=r.byteLength,s=2;while(s+1=8&&(n=c+d)}}}if(n){var h,f,p=r.getUint16(n,i);for(f=0;f1&&void 0!==arguments[1]?arguments[1]:1e11;return D.test(e)?Math.round(e*t)/t:e}function U(e){var t=e.aspectRatio,r=e.height,i=e.width,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",n=m(i),o=m(r);if(n&&o){var s=r*t;("contain"===a||"none"===a)&&s>i||"cover"===a&&s1&&o(c,j(u))),s&&(e.exif=B(l)),c.url=n||s?!_||u>1?O(l,i):_.createObjectURL(t):l,e.load(c)},l.onabort=function(){e.fail(new Error("Aborted to read the image with FileReader."))},l.onerror=function(){e.fail(new Error("Failed to read the image with FileReader."))},l.onloadend=function(){e.reader=null},n||s?l.readAsArrayBuffer(t):l.readAsDataURL(t)}else this.load({url:_.createObjectURL(t)})}else this.fail(new Error("The current browser does not support image compression."));else this.fail(new Error("The first argument must be an image File or Blob object."))}else this.fail(new Error("The first argument must be a File or Blob object."))}},{key:"load",value:function(e){var r=this,i=this.file,a=this.image;a.onload=function(){r.draw(t(t({},e),{},{naturalWidth:a.naturalWidth,naturalHeight:a.naturalHeight}))},a.onabort=function(){r.fail(new Error("Aborted to load the image."))},a.onerror=function(){r.fail(new Error("Failed to load the image."))},p.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(p.navigator.userAgent)&&(a.crossOrigin="anonymous"),a.alt=i.name,a.src=e.url}},{key:"draw",value:function(e){var t=this,r=e.naturalWidth,i=e.naturalHeight,a=e.rotate,n=void 0===a?0:a,o=e.scaleX,s=void 0===o?1:o,l=e.scaleY,c=void 0===l?1:l,d=this.file,h=this.image,f=this.options,p=document.createElement("canvas"),g=p.getContext("2d"),b=Math.abs(n)%180===90,v=("contain"===f.resize||"cover"===f.resize)&&m(f.width)&&m(f.height),y=Math.max(f.maxWidth,0)||1/0,k=Math.max(f.maxHeight,0)||1/0,x=Math.max(f.minWidth,0)||0,F=Math.max(f.minHeight,0)||0,T=r/i,j=f.width,D=f.height;if(b){var B=[k,y];y=B[0],k=B[1];var A=[F,x];x=A[0],F=A[1];var _=[D,j];j=_[0],D=_[1]}v&&(T=j/D);var E=U({aspectRatio:T,width:y,height:k},"contain");y=E.width,k=E.height;var P=U({aspectRatio:T,width:x,height:F},"cover");if(x=P.width,F=P.height,v){var $=U({aspectRatio:T,width:j,height:D},f.resize);j=$.width,D=$.height}else{var S=U({aspectRatio:T,width:j,height:D}),M=S.width;j=void 0===M?r:M;var W=S.height;D=void 0===W?i:W}j=Math.floor(L(Math.min(Math.max(j,x),y))),D=Math.floor(L(Math.min(Math.max(D,F),k)));var z=-j/2,H=-D/2,q=j,I=D,N=[];if(v){var K=0,V=0,G=r,J=i,X=U({aspectRatio:T,width:r,height:i},{contain:"cover",cover:"contain"}[f.resize]);G=X.width,J=X.height,K=(r-G)/2,V=(i-J)/2,N.push(K,V,G,J)}if(N.push(z,H,q,I),b){var Y=[D,j];j=Y[0],D=Y[1]}p.width=j,p.height=D,w(f.mimeType)||(f.mimeType=d.type);var Q="transparent";d.size>f.convertSize&&f.convertTypes.indexOf(f.mimeType)>=0&&(f.mimeType="image/jpeg");var Z="image/jpeg"===f.mimeType;if(Z&&(Q="#fff"),g.fillStyle=Q,g.fillRect(0,0,j,D),f.beforeDraw&&f.beforeDraw.call(this,g,p),!this.aborted&&(g.save(),g.translate(j/2,D/2),g.rotate(n*Math.PI/180),g.scale(s,c),g.drawImage.apply(g,[h].concat(N)),g.restore(),f.drew&&f.drew.call(this,g,p),!this.aborted)){var ee=function(e){if(!t.aborted){var a=function(e){return t.done({naturalWidth:r,naturalHeight:i,result:e})};if(e&&Z&&f.retainExif&&t.exif&&t.exif.length>0){var n=function(e){return a(u(O(C(e,t.exif),f.mimeType)))};if(e.arrayBuffer)e.arrayBuffer().then(n).catch((function(){t.fail(new Error("Failed to read the compressed image with Blob.arrayBuffer()."))}));else{var o=new R;t.reader=o,o.onload=function(e){var t=e.target;n(t.result)},o.onabort=function(){t.fail(new Error("Aborted to read the compressed image with FileReader."))},o.onerror=function(){t.fail(new Error("Failed to read the compressed image with FileReader."))},o.onloadend=function(){t.reader=null},o.readAsArrayBuffer(e)}}else a(e)}};p.toBlob?p.toBlob(ee,f.mimeType,f.quality):ee(u(p.toDataURL(f.mimeType,f.quality)))}}},{key:"done",value:function(e){var t=e.naturalWidth,r=e.naturalHeight,i=e.result,a=this.file,n=this.image,o=this.options;if(_&&0===n.src.indexOf("blob:")&&_.revokeObjectURL(n.src),i)if(o.strict&&!o.retainExif&&i.size>a.size&&o.mimeType===a.type&&!(o.width>t||o.height>r||o.minWidth>t||o.minHeight>r||o.maxWidth