Edit D:\xinhaisoft\crisis_new\m\vant\js\chunk-4c42d159.edb23382.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4c42d159"],{"02de":function(t,e,i){"use strict";function n(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}i.d(e,"a",(function(){return n}))},4598:function(t,e,i){"use strict";(function(t){i.d(e,"c",(function(){return c})),i.d(e,"b",(function(){return l})),i.d(e,"a",(function(){return u}));var n=i("a142"),o=Date.now();function s(t){var e=Date.now(),i=Math.max(0,16-(e-o)),n=setTimeout(t,i);return o=e+i,n}var a=n["g"]?t:window,r=a.requestAnimationFrame||s,h=a.cancelAnimationFrame||a.clearTimeout;function c(t){return r.call(a,t)}function l(t){c((function(){c(t)}))}function u(t){h.call(a,t)}}).call(this,i("c8ba"))},"7c8d":function(t,e,i){ /*! * Compressor.js v1.0.7 * https://fengyuanchen.github.io/compressorjs * * Copyright 2018-present Chen Fengyuan * Released under the MIT license * * Date: 2020-11-28T07:13:17.754Z */ (function(e,i){t.exports=i()})(0,(function(){"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function o(){return o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},o.apply(this,arguments)}function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach((function(e){n(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function r(t,e,i){return i={path:e,exports:{},require:function(t,e){return h(t,void 0===e||null===e?i.path:e)}},t(i,i.exports),i.exports}function h(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var c=r((function(t){"undefined"!==typeof window&&function(e){var i=e.HTMLCanvasElement&&e.HTMLCanvasElement.prototype,n=e.Blob&&function(){try{return Boolean(new Blob)}catch(t){return!1}}(),o=n&&e.Uint8Array&&function(){try{return 100===new Blob([new Uint8Array(100)]).size}catch(t){return!1}}(),s=e.BlobBuilder||e.WebKitBlobBuilder||e.MozBlobBuilder||e.MSBlobBuilder,a=/^data:((.*?)(;charset=.*?)?)(;base64)?,/,r=(n||s)&&e.atob&&e.ArrayBuffer&&e.Uint8Array&&function(t){var e,i,r,h,c,l,u,d,f;if(e=t.match(a),!e)throw new Error("invalid data URI");for(i=e[2]?e[1]:"text/plain"+(e[3]||";charset=US-ASCII"),r=!!e[4],h=t.slice(e[0].length),c=r?atob(h):decodeURIComponent(h),l=new ArrayBuffer(c.length),u=new Uint8Array(l),d=0;d<c.length;d+=1)u[d]=c.charCodeAt(d);return n?new Blob([o?u:l],{type:i}):(f=new s,f.append(l),f.getBlob(i))};e.HTMLCanvasElement&&!i.toBlob&&(i.mozGetAsFile?i.toBlob=function(t,e,n){var o=this;setTimeout((function(){n&&i.toDataURL&&r?t(r(o.toDataURL(e,n))):t(o.mozGetAsFile("blob",e))}))}:i.toDataURL&&r&&(i.msToBlob?i.toBlob=function(t,e,n){var o=this;setTimeout((function(){(e&&"image/png"!==e||n)&&i.toDataURL&&r?t(r(o.toDataURL(e,n))):t(o.msToBlob(e))}))}:i.toBlob=function(t,e,i){var n=this;setTimeout((function(){t(r(n.toDataURL(e,i)))}))})),t.exports?t.exports=r:e.dataURLtoBlob=r}(window)})),l=function(t){return"undefined"!==typeof Blob&&(t instanceof Blob||"[object Blob]"===Object.prototype.toString.call(t))},u={strict:!0,checkOrientation:!0,maxWidth:1/0,maxHeight:1/0,minWidth:0,minHeight:0,width:void 0,height:void 0,quality:.8,mimeType:"auto",convertSize:5e6,beforeDraw:null,drew:null,success:null,error:null},d="undefined"!==typeof window&&"undefined"!==typeof window.document,f=d?window:{},m=Array.prototype.slice;function v(t){return Array.from?Array.from(t):m.call(t)}var p=/^image\/.+$/;function g(t){return p.test(t)}function w(t){var e=g(t)?t.substr(6):"";return"jpeg"===e&&(e="jpg"),".".concat(e)}var y=String.fromCharCode;function b(t,e,i){var n,o="";for(i+=e,n=e;n<i;n+=1)o+=y(t.getUint8(n));return o}var x=f.btoa;function S(t,e){var i=[],n=8192,o=new Uint8Array(t);while(o.length>0)i.push(y.apply(null,v(o.subarray(0,n)))),o=o.subarray(n);return"data:".concat(e,";base64,").concat(x(i.join("")))}function _(t){var e,i=new DataView(t);try{var n,o,s;if(255===i.getUint8(0)&&216===i.getUint8(1)){var a=i.byteLength,r=2;while(r+1<a){if(255===i.getUint8(r)&&225===i.getUint8(r+1)){o=r;break}r+=1}}if(o){var h=o+4,c=o+10;if("Exif"===b(i,h,4)){var l=i.getUint16(c);if(n=18761===l,(n||19789===l)&&42===i.getUint16(c+2,n)){var u=i.getUint32(c+4,n);u>=8&&(s=c+u)}}}if(s){var d,f,m=i.getUint16(s,n);for(f=0;f<m;f+=1)if(d=s+12*f+2,274===i.getUint16(d,n)){d+=8,e=i.getUint16(d,n),i.setUint16(d,1,n);break}}}catch(v){e=1}return e}function T(t){var e=0,i=1,n=1;switch(t){case 2:i=-1;break;case 3:e=-180;break;case 4:n=-1;break;case 5:e=90,n=-1;break;case 6:e=90;break;case 7:e=90,i=-1;break;case 8:e=-90;break}return{rotate:e,scaleX:i,scaleY:n}}var M=/\.\d*(?:0|9){12}\d*$/;function C(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return M.test(t)?Math.round(t*e)/e:t}var P=f.ArrayBuffer,k=f.FileReader,E=f.URL||f.webkitURL,O=/\.\w+$/,D=f.Compressor,z=function(){function e(i,n){t(this,e),this.file=i,this.image=new Image,this.options=a(a({},u),n),this.aborted=!1,this.result=null,this.init()}return i(e,[{key:"init",value:function(){var t=this,e=this.file,i=this.options;if(l(e)){var n=e.type;if(g(n))if(E&&k)if(P||(i.checkOrientation=!1),E&&!i.checkOrientation)this.load({url:E.createObjectURL(e)});else{var s=new k,a=i.checkOrientation&&"image/jpeg"===n;this.reader=s,s.onload=function(i){var s=i.target,r=s.result,h={};if(a){var c=_(r);c>1||!E?(h.url=S(r,n),c>1&&o(h,T(c))):h.url=E.createObjectURL(e)}else h.url=r;t.load(h)},s.onabort=function(){t.fail(new Error("Aborted to read the image with FileReader."))},s.onerror=function(){t.fail(new Error("Failed to read the image with FileReader."))},s.onloadend=function(){t.reader=null},a?s.readAsArrayBuffer(e):s.readAsDataURL(e)}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(t){var e=this,i=this.file,n=this.image;n.onload=function(){e.draw(a(a({},t),{},{naturalWidth:n.naturalWidth,naturalHeight:n.naturalHeight}))},n.onabort=function(){e.fail(new Error("Aborted to load the image."))},n.onerror=function(){e.fail(new Error("Failed to load the image."))},f.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(f.navigator.userAgent)&&(n.crossOrigin="anonymous"),n.alt=i.name,n.src=t.url}},{key:"draw",value:function(t){var e=this,i=t.naturalWidth,n=t.naturalHeight,o=t.rotate,s=void 0===o?0:o,a=t.scaleX,r=void 0===a?1:a,h=t.scaleY,l=void 0===h?1:h,u=this.file,d=this.image,f=this.options,m=document.createElement("canvas"),v=m.getContext("2d"),p=i/n,w=Math.abs(s)%180===90,y=Math.max(f.maxWidth,0)||1/0,b=Math.max(f.maxHeight,0)||1/0,x=Math.max(f.minWidth,0)||0,S=Math.max(f.minHeight,0)||0,_=Math.max(f.width,0)||i,T=Math.max(f.height,0)||n;if(w){var M=[b,y];y=M[0],b=M[1];var P=[S,x];x=P[0],S=P[1];var k=[T,_];_=k[0],T=k[1]}y<1/0&&b<1/0?b*p>y?b=y/p:y=b*p:y<1/0?b=y/p:b<1/0&&(y=b*p),x>0&&S>0?S*p>x?S=x/p:x=S*p:x>0?S=x/p:S>0&&(x=S*p),T*p>_?T=_/p:_=T*p,_=Math.floor(C(Math.min(Math.max(_,x),y))),T=Math.floor(C(Math.min(Math.max(T,S),b)));var E=-_/2,O=-T/2,D=_,z=T;if(w){var L=[T,_];_=L[0],T=L[1]}m.width=_,m.height=T,g(f.mimeType)||(f.mimeType=u.type);var B="transparent";if(u.size>f.convertSize&&"image/png"===f.mimeType&&(B="#fff",f.mimeType="image/jpeg"),v.fillStyle=B,v.fillRect(0,0,_,T),f.beforeDraw&&f.beforeDraw.call(this,v,m),!this.aborted&&(v.save(),v.translate(_/2,T/2),v.rotate(s*Math.PI/180),v.scale(r,l),v.drawImage(d,E,O,D,z),v.restore(),f.drew&&f.drew.call(this,v,m),!this.aborted)){var $=function(t){e.aborted||e.done({naturalWidth:i,naturalHeight:n,result:t})};m.toBlob?m.toBlob($,f.mimeType,f.quality):$(c(m.toDataURL(f.mimeType,f.quality)))}}},{key:"done",value:function(t){var e=t.naturalWidth,i=t.naturalHeight,n=t.result,o=this.file,s=this.image,a=this.options;if(E&&!a.checkOrientation&&E.revokeObjectURL(s.src),n)if(a.strict&&n.size>o.size&&a.mimeType===o.type&&!(a.width>e||a.height>i||a.minWidth>e||a.minHeight>i))n=o;else{var r=new Date;n.lastModified=r.getTime(),n.lastModifiedDate=r,n.name=o.name,n.name&&n.type!==o.type&&(n.name=n.name.replace(O,w(n.type)))}else n=o;this.result=n,a.success&&a.success.call(this,n)}},{key:"fail",value:function(t){var e=this.options;if(!e.error)throw t;e.error.call(this,t)}},{key:"abort",value:function(){this.aborted||(this.aborted=!0,this.reader?this.reader.abort():this.image.complete?this.fail(new Error("The compression process has been aborted.")):(this.image.onload=null,this.image.onabort()))}}],[{key:"noConflict",value:function(){return window.Compressor=D,e}},{key:"setDefaults",value:function(t){o(u,t)}}]),e}();return z}))},"8f80":function(t,e,i){"use strict";var n=i("c31d"),o=i("d282"),s=i("ea8e"),a=i("a142");function r(t){return Array.isArray(t)?t:[t]}function h(t,e){return new Promise((function(i){if("file"!==e){var n=new FileReader;n.onload=function(t){i(t.target.result)},"dataUrl"===e?n.readAsDataURL(t):"text"===e&&n.readAsText(t)}else i(null)}))}function c(t,e){return r(t).some((function(t){return!!t&&(Object(a["d"])(e)?e(t):t.size>e)}))}var l=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function u(t){return l.test(t)}function d(t){return!!t.isImage||(t.file&&t.file.type?0===t.file.type.indexOf("image"):t.url?u(t.url):!!t.content&&0===t.content.indexOf("data:image"))}var f=i("78eb"),m=i("ad06"),v=i("2638"),p=i.n(v),g=Object(o["a"])("image"),w=g[0],y=g[1],b=w({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(a["c"])(this.width)&&(t.width=Object(s["a"])(this.width)),Object(a["c"])(this.height)&&(t.height=Object(s["a"])(this.height)),Object(a["c"])(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(s["a"])(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&a["b"]&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){var e=t.el;e===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){var e=t.el;e!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:y("loading")},[this.slots("loading")||t(m["a"],{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:y("loading-icon")})]):this.error&&this.showError?t("div",{class:y("error")},[this.slots("error")||t(m["a"],{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:y("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:y("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",p()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",p()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){var t=arguments[0];return t("div",{class:y({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}}),x=i("543e"),S=i("2b0e"),_=Object(o["a"])("image-preview"),T=_[0],M=_[1],C=i("6605"),P=i("3875"),k=i("5fbe"),E=i("02de"),O=i("1325"),D=i("4598"),z=i("482d"),L=i("9884"),B=Object(o["a"])("swipe"),$=B[0],j=B[1],A=$({mixins:[P["a"],Object(L["b"])("vanSwipe"),Object(k["a"])((function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var e=this.vertical?"height":"width",i=this.vertical?"width":"height";t[e]=this.trackSize+"px",t[i]=this[i]?this[i]+"px":""}return t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!Object(E["a"])(this.$el)){clearTimeout(this.timer);var e={width:this.$el.offsetWidth,height:this.$el.offsetHeight};this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height,this.offset=this.getTargetOffset(t),this.children.forEach((function(t){t.offset=0})),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(Object(O["c"])(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,i=Date.now()-this.touchStartTime,n=e/i,o=Math.abs(n)>.25||Math.abs(e)>t/2;if(o&&this.isCorrectDirection){var s=this.vertical?this.offsetY:this.offsetX,a=0;a=this.loop?s>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:a,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,i=this.count,n=this.maxCount;return t?this.loop?Object(z["b"])(e+t,-1,i):Object(z["b"])(e+t,0,n):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var i=t*this.size;this.loop||(i=Math.min(i,-this.minOffset));var n=e-i;return this.loop||(n=Object(z["b"])(n,this.minOffset,0)),n},move:function(t){var e=t.pace,i=void 0===e?0:e,n=t.offset,o=void 0===n?0:n,s=t.emitChange,a=this.loop,r=this.count,h=this.active,c=this.children,l=this.trackSize,u=this.minOffset;if(!(r<=1)){var d=this.getTargetActive(i),f=this.getTargetOffset(d,o);if(a){if(c[0]&&f!==u){var m=f<u;c[0].offset=m?l:0}if(c[r-1]&&0!==f){var v=f>0;c[r-1].offset=v?-l:0}}this.active=d,this.offset=f,s&&d!==h&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(D["b"])((function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})}))},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(D["b"])((function(){t.swiping=!1,t.move({pace:1,emitChange:!0})}))},swipeTo:function(t,e){var i=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(D["b"])((function(){var n;n=i.loop&&t===i.count?0===i.active?0:t:t%i.count,e.immediate?Object(D["b"])((function(){i.swiping=!1})):i.swiping=!1,i.move({pace:n-i.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.next(),t.autoPlay()}),e))},genIndicator:function(){var t=this,e=this.$createElement,i=this.count,n=this.activeIndicator,o=this.slots("indicator");return o||(this.showIndicators&&i>1?e("div",{class:j("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(i)).map((function(i,o){return e("i",{class:j("indicator",{active:o===n}),style:o===n?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:j()},[t("div",{ref:"track",style:this.trackStyle,class:j("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}}),U=Object(o["a"])("swipe-item"),I=U[0],R=U[1],W=I({mixins:[Object(L["a"])("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var t=this;this.$nextTick((function(){t.mounted=!0}))},computed:{style:function(){var t={},e=this.parent,i=e.size,n=e.vertical;return i&&(t[n?"height":"width"]=i+"px"),this.offset&&(t.transform="translate"+(n?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.inited,i=this.parent,n=this.mounted;if(!i.lazyRender||e)return!0;if(!n)return!1;var o=i.activeIndicator,s=i.count-1,a=0===o&&i.loop?s:o-1,r=o===s&&i.loop?0:o+1,h=t===o||t===a||t===r;return h&&(this.inited=!0),h}},render:function(){var t=arguments[0];return t("div",{class:R(),style:this.style,on:Object(n["a"])({},this.$listeners)},[this.shouldRender&&this.slots()])}});function F(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}var N,X={mixins:[P["a"]],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var t=this.rootWidth,e=this.rootHeight,i=e/t;return this.imageRatio>i},imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==t){var i=this.moveX/t,n=this.moveY/t;e.transform="scale("+t+", "+t+") translate("+i+"px, "+n+"px)"}return e},maxMoveX:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*t-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*t-this.rootHeight)/2)}return 0}},watch:{active:"resetScale",show:function(t){t||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(t){t=Object(z["b"])(t,+this.minZoom,+this.maxZoom),t!==this.scale&&(this.scale=t,this.$emit("scale",{scale:this.scale,index:this.active}))},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},onTouchStart:function(t){var e=t.touches,i=this.offsetX,n=void 0===i?0:i;this.touchStart(t),this.touchStartTime=new Date,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===e.length&&1!==this.scale,this.zooming=2===e.length&&!n,this.zooming&&(this.startScale=this.scale,this.startDistance=F(t.touches))},onTouchMove:function(t){var e=t.touches;if(this.touchMove(t),(this.moving||this.zooming)&&Object(O["c"])(t,!0),this.moving){var i=this.deltaX+this.startMoveX,n=this.deltaY+this.startMoveY;this.moveX=Object(z["b"])(i,-this.maxMoveX,this.maxMoveX),this.moveY=Object(z["b"])(n,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var o=F(e),s=this.startScale*o/this.startDistance;this.setScale(s)}},onTouchEnd:function(t){var e=!1;(this.moving||this.zooming)&&(e=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.zooming&&(this.moveX=Object(z["b"])(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=Object(z["b"])(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),Object(O["c"])(t,e),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var t=this,e=this.offsetX,i=void 0===e?0:e,n=this.offsetY,o=void 0===n?0:n,s=new Date-this.touchStartTime,a=250,r=10;i<r&&o<r&&s<a&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout((function(){t.$emit("close"),t.doubleTapTimer=null}),a))},onLoad:function(t){var e=t.target,i=e.naturalWidth,n=e.naturalHeight;this.imageRatio=n/i}},render:function(){var t=arguments[0],e={loading:function(){return t(x["a"],{attrs:{type:"spinner"}})}};return t(W,{class:M("swipe-item")},[t(b,{attrs:{src:this.src,fit:"contain"},class:M("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:e,on:{load:this.onLoad}})])}},H=T({mixins:[P["a"],Object(C["a"])({skipToggleEvent:!0}),Object(k["a"])((function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)}))],props:{className:null,closeable:Boolean,asyncClose:Boolean,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},transition:{type:String,default:"van-fade"},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:300},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:M("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(t){var e=this;t?(this.setActive(+this.startPosition),this.$nextTick((function(){e.resize(),e.$refs.swipe.swipeTo(+e.startPosition,{immediate:!0})}))):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var t=this.$el.getBoundingClientRect();this.rootWidth=t.width,this.rootHeight=t.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(t){this.$emit("scale",t)},setActive:function(t){t!==this.active&&(this.active=t,this.$emit("change",t))},genIndex:function(){var t=this.$createElement;if(this.showIndex)return t("div",{class:M("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var t=this.$createElement,e=this.slots("cover");if(e)return t("div",{class:M("cover")},[e])},genImages:function(){var t=this,e=this.$createElement;return e(A,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:M("swipe"),on:{change:this.setActive}},[this.images.map((function(i){return e(X,{attrs:{src:i,show:t.value,active:t.active,maxZoom:t.maxZoom,minZoom:t.minZoom,rootWidth:t.rootWidth,rootHeight:t.rootHeight},on:{scale:t.emitScale,close:t.emitClose}})}))])},genClose:function(){var t=this.$createElement;if(this.closeable)return t(m["a"],{attrs:{role:"button",name:this.closeIcon},class:M("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(t,e){this.$refs.swipe&&this.$refs.swipe.swipeTo(t,e)}},render:function(){var t=arguments[0];return t("transition",{attrs:{name:this.transition},on:{afterLeave:this.onClosed}},[this.shouldRender?t("div",{directives:[{name:"show",value:this.value}],class:[M(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()]):null])}}),Y={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,transition:"van-fade",getContainer:"body",startPosition:0,swipeDuration:300,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},Z=function(){N=new(S["a"].extend(H))({el:document.createElement("div")}),document.body.appendChild(N.$el),N.$on("change",(function(t){N.onChange&&N.onChange(t)})),N.$on("scale",(function(t){N.onScale&&N.onScale(t)}))},q=function(t,e){if(void 0===e&&(e=0),!a["g"]){N||Z();var i=Array.isArray(t)?{images:t,startPosition:e}:t;return Object(n["a"])(N,Y,i),N.$once("input",(function(t){N.value=t})),N.$once("closed",(function(){N.images=[]})),i.onClose&&(N.$off("close"),N.$once("close",i.onClose)),N}};q.Component=H,q.install=function(){S["a"].use(H)};var V=q,J=Object(o["a"])("uploader"),G=J[0],K=J[1];e["a"]=G({inheritAttrs:!1,mixins:[f["a"]],model:{prop:"fileList"},props:{disabled:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String,Function],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Object(s["a"])(this.previewSize)},value:function(){return this.fileList}},methods:{getDetail:function(t){return void 0===t&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var e=this,i=t.target.files;if(!this.disabled&&i.length){if(i=1===i.length?i[0]:[].slice.call(i),this.beforeRead){var n=this.beforeRead(i,this.getDetail());if(!n)return void this.resetInput();if(Object(a["f"])(n))return void n.then((function(t){t?e.readFile(t):e.readFile(i)})).catch(this.resetInput)}this.readFile(i)}},readFile:function(t){var e=this,i=c(t,this.maxSize);if(Array.isArray(t)){var n=this.maxCount-this.fileList.length;t.length>n&&(t=t.slice(0,n)),Promise.all(t.map((function(t){return h(t,e.resultType)}))).then((function(n){var o=t.map((function(t,e){var i={file:t,status:"",message:""};return n[e]&&(i.content=n[e]),i}));e.onAfterRead(o,i)}))}else h(t,this.resultType).then((function(n){var o={file:t,status:"",message:""};n&&(o.content=n),e.onAfterRead(o,i)}))},onAfterRead:function(t,e){var i=this;this.resetInput();var n=t;if(e){var o=t;Array.isArray(t)?(o=[],n=[],t.forEach((function(t){t.file&&(c(t.file,i.maxSize)?o.push(t):n.push(t))}))):n=null,this.$emit("oversize",o,this.getDetail())}var s=Array.isArray(n)?Boolean(n.length):Boolean(n);s&&(this.$emit("input",[].concat(this.fileList,r(n))),this.afterRead&&this.afterRead(n,this.getDetail()))},onDelete:function(t,e){var i,n=this,o=null!=(i=t.beforeDelete)?i:this.beforeDelete;if(o){var s=o(t,this.getDetail(e));if(!s)return;if(Object(a["f"])(s))return void s.then((function(){n.deleteFile(t,e)})).catch(a["h"])}this.deleteFile(t,e)},deleteFile:function(t,e){var i=this.fileList.slice(0);i.splice(e,1),this.$emit("input",i),this.$emit("delete",t,this.getDetail(e))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onPreviewImage:function(t){var e=this;if(this.previewFullImage){var i=this.fileList.filter((function(t){return d(t)})),o=i.map((function(t){return t.content||t.url}));this.imagePreview=V(Object(n["a"])({images:o,startPosition:i.indexOf(t),onClose:function(){e.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var e=this.$createElement,i=t.status,n=t.message;if("uploading"===i||"failed"===i){var o="failed"===i?e(m["a"],{attrs:{name:"close"},class:K("mask-icon")}):e(x["a"],{class:K("loading")}),s=Object(a["c"])(n)&&""!==n;return e("div",{class:K("mask")},[o,s&&e("div",{class:K("mask-message")},[n])])}},genPreviewItem:function(t,e){var i,o,s,a=this,r=this.$createElement,h=null!=(i=t.deletable)?i:this.deletable,c="uploading"!==t.status&&h,l=c&&r("div",{class:K("preview-delete"),on:{click:function(i){i.stopPropagation(),a.onDelete(t,e)}}},[r(m["a"],{attrs:{name:"cross"},class:K("preview-delete-icon")})]),u=this.slots("preview-cover",Object(n["a"])({index:e},t)),f=u&&r("div",{class:K("preview-cover")},[u]),v=null!=(o=t.previewSize)?o:this.previewSize,p=null!=(s=t.imageFit)?s:this.imageFit,g=d(t)?r(b,{attrs:{fit:p,src:t.content||t.url,width:v,height:v,lazyLoad:this.lazyLoad},class:K("preview-image"),on:{click:function(){a.onPreviewImage(t)}}},[f]):r("div",{class:K("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[r(m["a"],{class:K("file-icon"),attrs:{name:"description"}}),r("div",{class:[K("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),f]);return r("div",{class:K("preview"),on:{click:function(){a.$emit("click-preview",t,a.getDetail(e))}}},[g,this.genPreviewMask(t),l])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)&&this.showUpload){var e,i=this.slots(),o=t("input",{attrs:Object(n["a"])({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:K("input"),on:{change:this.onChange}});if(i)return t("div",{class:K("input-wrapper"),key:"input-wrapper"},[i,o]);if(this.previewSize){var s=this.previewSizeWithUnit;e={width:s,height:s}}return t("div",{class:K("upload"),style:e},[t(m["a"],{attrs:{name:this.uploadIcon},class:K("upload-icon")}),this.uploadText&&t("span",{class:K("upload-text")},[this.uploadText]),o])}}},render:function(){var t=arguments[0];return t("div",{class:K()},[t("div",{class:K("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}})},"90e2":function(t,e,i){"use strict"; /*! * Signature Pad v3.0.0-beta.4 | https://github.com/szimek/signature_pad * (c) 2020 Szymon Nowak | Released under the MIT license */class n{constructor(t,e,i){this.x=t,this.y=e,this.time=i||Date.now()}distanceTo(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}equals(t){return this.x===t.x&&this.y===t.y&&this.time===t.time}velocityFrom(t){return this.time!==t.time?this.distanceTo(t)/(this.time-t.time):0}}class o{constructor(t,e,i,n,o,s){this.startPoint=t,this.control2=e,this.control1=i,this.endPoint=n,this.startWidth=o,this.endWidth=s}static fromPoints(t,e){const i=this.calculateControlPoints(t[0],t[1],t[2]).c2,n=this.calculateControlPoints(t[1],t[2],t[3]).c1;return new o(t[1],i,n,t[2],e.start,e.end)}static calculateControlPoints(t,e,i){const o=t.x-e.x,s=t.y-e.y,a=e.x-i.x,r=e.y-i.y,h={x:(t.x+e.x)/2,y:(t.y+e.y)/2},c={x:(e.x+i.x)/2,y:(e.y+i.y)/2},l=Math.sqrt(o*o+s*s),u=Math.sqrt(a*a+r*r),d=h.x-c.x,f=h.y-c.y,m=u/(l+u),v={x:c.x+d*m,y:c.y+f*m},p=e.x-v.x,g=e.y-v.y;return{c1:new n(h.x+p,h.y+g),c2:new n(c.x+p,c.y+g)}}length(){const t=10;let e,i,n=0;for(let o=0;o<=t;o+=1){const s=o/t,a=this.point(s,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),r=this.point(s,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){const t=a-e,o=r-i;n+=Math.sqrt(t*t+o*o)}e=a,i=r}return n}point(t,e,i,n,o){return e*(1-t)*(1-t)*(1-t)+3*i*(1-t)*(1-t)*t+3*n*(1-t)*t*t+o*t*t*t}}function s(t,e=250){let i,n,o,s=0,a=null;const r=()=>{s=Date.now(),a=null,i=t.apply(n,o),a||(n=null,o=[])};return function(...h){const c=Date.now(),l=e-(c-s);return n=this,o=h,l<=0||l>e?(a&&(clearTimeout(a),a=null),s=c,i=t.apply(n,o),a||(n=null,o=[])):a||(a=window.setTimeout(r,l)),i}}class a{constructor(t,e={}){this.canvas=t,this.options=e,this._handleMouseDown=t=>{1===t.which&&(this._mouseButtonDown=!0,this._strokeBegin(t))},this._handleMouseMove=t=>{this._mouseButtonDown&&this._strokeMoveUpdate(t)},this._handleMouseUp=t=>{1===t.which&&this._mouseButtonDown&&(this._mouseButtonDown=!1,this._strokeEnd(t))},this._handleTouchStart=t=>{if(t.preventDefault(),1===t.targetTouches.length){const e=t.changedTouches[0];this._strokeBegin(e)}},this._handleTouchMove=t=>{t.preventDefault();const e=t.targetTouches[0];this._strokeMoveUpdate(e)},this._handleTouchEnd=t=>{const e=t.target===this.canvas;if(e){t.preventDefault();const e=t.changedTouches[0];this._strokeEnd(e)}},this.velocityFilterWeight=e.velocityFilterWeight||.7,this.minWidth=e.minWidth||.5,this.maxWidth=e.maxWidth||2.5,this.throttle="throttle"in e?e.throttle:16,this.minDistance="minDistance"in e?e.minDistance:5,this.dotSize=e.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=e.penColor||"black",this.backgroundColor=e.backgroundColor||"rgba(0,0,0,0)",this.onBegin=e.onBegin,this.onEnd=e.onEnd,this._strokeMoveUpdate=this.throttle?s(a.prototype._strokeUpdate,this.throttle):a.prototype._strokeUpdate,this._ctx=t.getContext("2d"),this.clear(),this.on()}clear(){const{_ctx:t,canvas:e}=this;t.fillStyle=this.backgroundColor,t.clearRect(0,0,e.width,e.height),t.fillRect(0,0,e.width,e.height),this._data=[],this._reset(),this._isEmpty=!0}fromDataURL(t,e={},i){const n=new Image,o=e.ratio||window.devicePixelRatio||1,s=e.width||this.canvas.width/o,a=e.height||this.canvas.height/o;this._reset(),n.onload=()=>{this._ctx.drawImage(n,0,0,s,a),i&&i()},n.onerror=t=>{i&&i(t)},n.src=t,this._isEmpty=!1}toDataURL(t="image/png",e){switch(t){case"image/svg+xml":return this._toSVG();default:return this.canvas.toDataURL(t,e)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",window.PointerEvent?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.removeEventListener("pointerdown",this._handleMouseDown),this.canvas.removeEventListener("pointermove",this._handleMouseMove),document.removeEventListener("pointerup",this._handleMouseUp),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(t){this.clear(),this._fromData(t,({color:t,curve:e})=>this._drawCurve({color:t,curve:e}),({color:t,point:e})=>this._drawDot({color:t,point:e})),this._data=t}toData(){return this._data}_strokeBegin(t){const e={color:this.penColor,points:[]};"function"===typeof this.onBegin&&this.onBegin(t),this._data.push(e),this._reset(),this._strokeUpdate(t)}_strokeUpdate(t){if(0===this._data.length)return void this._strokeBegin(t);const e=t.clientX,i=t.clientY,n=this._createPoint(e,i),o=this._data[this._data.length-1],s=o.points,a=s.length>0&&s[s.length-1],r=!!a&&n.distanceTo(a)<=this.minDistance,h=o.color;if(!a||!a||!r){const t=this._addPoint(n);a?t&&this._drawCurve({color:h,curve:t}):this._drawDot({color:h,point:n}),s.push({time:n.time,x:n.x,y:n.y})}}_strokeEnd(t){this._strokeUpdate(t),"function"===typeof this.onEnd&&this.onEnd(t)}_handlePointerEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("pointerdown",this._handleMouseDown),this.canvas.addEventListener("pointermove",this._handleMouseMove),document.addEventListener("pointerup",this._handleMouseUp)}_handleMouseEvents(){this._mouseButtonDown=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor}_createPoint(t,e){const i=this.canvas.getBoundingClientRect();return new n(t-i.left,e-i.top,(new Date).getTime())}_addPoint(t){const{_lastPoints:e}=this;if(e.push(t),e.length>2){3===e.length&&e.unshift(e[0]);const t=this._calculateCurveWidths(e[1],e[2]),i=o.fromPoints(e,t);return e.shift(),i}return null}_calculateCurveWidths(t,e){const i=this.velocityFilterWeight*e.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,n=this._strokeWidth(i),o={end:n,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=n,o}_strokeWidth(t){return Math.max(this.maxWidth/(t+1),this.minWidth)}_drawCurveSegment(t,e,i){const n=this._ctx;n.moveTo(t,e),n.arc(t,e,i,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve({color:t,curve:e}){const i=this._ctx,n=e.endWidth-e.startWidth,o=2*Math.floor(e.length());i.beginPath(),i.fillStyle=t;for(let s=0;s<o;s+=1){const t=s/o,i=t*t,a=i*t,r=1-t,h=r*r,c=h*r;let l=c*e.startPoint.x;l+=3*h*t*e.control1.x,l+=3*r*i*e.control2.x,l+=a*e.endPoint.x;let u=c*e.startPoint.y;u+=3*h*t*e.control1.y,u+=3*r*i*e.control2.y,u+=a*e.endPoint.y;const d=Math.min(e.startWidth+a*n,this.maxWidth);this._drawCurveSegment(l,u,d)}i.closePath(),i.fill()}_drawDot({color:t,point:e}){const i=this._ctx,n="function"===typeof this.dotSize?this.dotSize():this.dotSize;i.beginPath(),this._drawCurveSegment(e.x,e.y,n),i.closePath(),i.fillStyle=t,i.fill()}_fromData(t,e,i){for(const o of t){const{color:t,points:s}=o;if(s.length>1)for(let i=0;i<s.length;i+=1){const o=s[i],a=new n(o.x,o.y,o.time);this.penColor=t,0===i&&this._reset();const r=this._addPoint(a);r&&e({color:t,curve:r})}else this._reset(),i({color:t,point:s[0]})}}_toSVG(){const t=this._data,e=Math.max(window.devicePixelRatio||1,1),i=0,n=0,o=this.canvas.width/e,s=this.canvas.height/e,a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("width",this.canvas.width.toString()),a.setAttribute("height",this.canvas.height.toString()),this._fromData(t,({color:t,curve:e})=>{const i=document.createElement("path");if(!isNaN(e.control1.x)&&!isNaN(e.control1.y)&&!isNaN(e.control2.x)&&!isNaN(e.control2.y)){const n=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;i.setAttribute("d",n),i.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),i.setAttribute("stroke",t),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","round"),a.appendChild(i)}},({color:t,point:e})=>{const i=document.createElement("circle"),n="function"===typeof this.dotSize?this.dotSize():this.dotSize;i.setAttribute("r",n.toString()),i.setAttribute("cx",e.x.toString()),i.setAttribute("cy",e.y.toString()),i.setAttribute("fill",t),a.appendChild(i)});const r="data:image/svg+xml;base64,",h=`<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="${i} ${n} ${o} ${s}" width="${o}" height="${s}">`;let c=a.innerHTML;if(void 0===c){const t=document.createElement("dummy"),e=a.childNodes;t.innerHTML="";for(let i=0;i<e.length;i+=1)t.appendChild(e[i].cloneNode(!0));c=t.innerHTML}const l="</svg>",u=h+c+l;return r+btoa(u)}}e["a"]=a},a78e:function(t,e,i){var n,o; /*! * JavaScript Cookie v2.2.1 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */(function(s){var a;if(n=s,o="function"===typeof n?n.call(e,i,e,t):n,void 0===o||(t.exports=o),a=!0,t.exports=s(),a=!0,!a){var r=window.Cookies,h=window.Cookies=s();h.noConflict=function(){return window.Cookies=r,h}}})((function(){function t(){for(var t=0,e={};t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(n){function o(){}function s(e,i,s){if("undefined"!==typeof document){s=t({path:"/"},o.defaults,s),"number"===typeof s.expires&&(s.expires=new Date(1*new Date+864e5*s.expires)),s.expires=s.expires?s.expires.toUTCString():"";try{var a=JSON.stringify(i);/^[\{\[]/.test(a)&&(i=a)}catch(c){}i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var r="";for(var h in s)s[h]&&(r+="; "+h,!0!==s[h]&&(r+="="+s[h].split(";")[0]));return document.cookie=e+"="+i+r}}function a(t,i){if("undefined"!==typeof document){for(var o={},s=document.cookie?document.cookie.split("; "):[],a=0;a<s.length;a++){var r=s[a].split("="),h=r.slice(1).join("=");i||'"'!==h.charAt(0)||(h=h.slice(1,-1));try{var c=e(r[0]);if(h=(n.read||n)(h,c)||e(h),i)try{h=JSON.parse(h)}catch(l){}if(o[c]=h,t===c)break}catch(l){}}return t?o[t]:o}}return o.set=s,o.get=function(t){return a(t,!1)},o.getJSON=function(t){return a(t,!0)},o.remove=function(e,i){s(e,"",t(i,{expires:-1}))},o.defaults={},o.withConverter=i,o}return i((function(){}))}))}}]);
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de